@geekmidas/constructs 3.0.14 → 3.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 (126) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/AWSScheduledFunction-B3cHQSdp.cjs +255 -0
  3. package/dist/AWSScheduledFunction-B3cHQSdp.cjs.map +1 -0
  4. package/dist/AWSScheduledFunction-BRGjgD-i.mjs +243 -0
  5. package/dist/AWSScheduledFunction-BRGjgD-i.mjs.map +1 -0
  6. package/dist/AWSScheduledFunction-BnYDnzsF.d.mts +117 -0
  7. package/dist/AWSScheduledFunction-BnYDnzsF.d.mts.map +1 -0
  8. package/dist/AWSScheduledFunction-vjanLO3-.d.cts +117 -0
  9. package/dist/AWSScheduledFunction-vjanLO3-.d.cts.map +1 -0
  10. package/dist/{Construct-D0n7QTaI.d.mts → Construct-BY0NBQLj.d.mts} +1 -1
  11. package/dist/{Construct-D0n7QTaI.d.mts.map → Construct-BY0NBQLj.d.mts.map} +1 -1
  12. package/dist/{Construct-CdJY2DJS.mjs → Construct-CLIPPqUP.mjs} +3 -28
  13. package/dist/{Construct-CdJY2DJS.mjs.map → Construct-CLIPPqUP.mjs.map} +1 -1
  14. package/dist/{Construct-CXqvzglu.d.cts → Construct-cjIs74Gb.d.cts} +1 -1
  15. package/dist/{Construct-CXqvzglu.d.cts.map → Construct-cjIs74Gb.d.cts.map} +1 -1
  16. package/dist/{Endpoint-NvjIednd.d.mts → Endpoint-4gVYt12g.d.mts} +5 -5
  17. package/dist/{Endpoint-NvjIednd.d.mts.map → Endpoint-4gVYt12g.d.mts.map} +1 -1
  18. package/dist/{Endpoint-CE7qHX5S.d.cts → Endpoint-BlMZIwBY.d.cts} +4 -4
  19. package/dist/{Endpoint-CE7qHX5S.d.cts.map → Endpoint-BlMZIwBY.d.cts.map} +1 -1
  20. package/dist/{HonoEndpointAdaptor-DyYv0IoU.mjs → HonoEndpointAdaptor-6k-rI44C.mjs} +5 -4
  21. package/dist/{HonoEndpointAdaptor-DyYv0IoU.mjs.map → HonoEndpointAdaptor-6k-rI44C.mjs.map} +1 -1
  22. package/dist/{HonoEndpointAdaptor-DFdgCwYU.cjs → HonoEndpointAdaptor-CNIsjEw-.cjs} +6 -5
  23. package/dist/{HonoEndpointAdaptor-DFdgCwYU.cjs.map → HonoEndpointAdaptor-CNIsjEw-.cjs.map} +1 -1
  24. package/dist/{Subscriber-D8WkA8np.d.cts → Subscriber-C6YXAmTp.d.cts} +3 -3
  25. package/dist/{Subscriber-D8WkA8np.d.cts.map → Subscriber-C6YXAmTp.d.cts.map} +1 -1
  26. package/dist/{Subscriber-Tft61-YG.d.mts → Subscriber-CjOHxO0l.d.mts} +3 -3
  27. package/dist/{Subscriber-Tft61-YG.d.mts.map → Subscriber-CjOHxO0l.d.mts.map} +1 -1
  28. package/dist/adaptors/aws.cjs +12 -209
  29. package/dist/adaptors/aws.cjs.map +1 -1
  30. package/dist/adaptors/aws.d.cts +11 -66
  31. package/dist/adaptors/aws.d.cts.map +1 -1
  32. package/dist/adaptors/aws.d.mts +11 -66
  33. package/dist/adaptors/aws.d.mts.map +1 -1
  34. package/dist/adaptors/aws.mjs +11 -208
  35. package/dist/adaptors/aws.mjs.map +1 -1
  36. package/dist/adaptors/hono.cjs +6 -4
  37. package/dist/adaptors/hono.d.cts +4 -4
  38. package/dist/adaptors/hono.d.mts +4 -4
  39. package/dist/adaptors/hono.mjs +7 -5
  40. package/dist/adaptors/middy.cjs +120 -0
  41. package/dist/adaptors/middy.cjs.map +1 -0
  42. package/dist/adaptors/middy.d.cts +139 -0
  43. package/dist/adaptors/middy.d.cts.map +1 -0
  44. package/dist/adaptors/middy.d.mts +139 -0
  45. package/dist/adaptors/middy.d.mts.map +1 -0
  46. package/dist/adaptors/middy.mjs +118 -0
  47. package/dist/adaptors/middy.mjs.map +1 -0
  48. package/dist/adaptors/testing.cjs +9 -7
  49. package/dist/adaptors/testing.cjs.map +1 -1
  50. package/dist/adaptors/testing.d.cts +6 -6
  51. package/dist/adaptors/testing.d.mts +6 -6
  52. package/dist/adaptors/testing.mjs +7 -5
  53. package/dist/adaptors/testing.mjs.map +1 -1
  54. package/dist/chunk-B4qE4VCv.mjs +27 -0
  55. package/dist/crons/index.cjs +4 -1
  56. package/dist/crons/index.cjs.map +1 -1
  57. package/dist/crons/index.d.cts +6 -22
  58. package/dist/crons/index.d.cts.map +1 -1
  59. package/dist/crons/index.d.mts +5 -21
  60. package/dist/crons/index.d.mts.map +1 -1
  61. package/dist/crons/index.mjs +6 -3
  62. package/dist/crons/index.mjs.map +1 -1
  63. package/dist/endpoints/index.cjs +5 -3
  64. package/dist/endpoints/index.cjs.map +1 -1
  65. package/dist/endpoints/index.d.cts +7 -7
  66. package/dist/endpoints/index.d.mts +5 -5
  67. package/dist/endpoints/index.mjs +6 -3
  68. package/dist/endpoints/index.mjs.map +1 -1
  69. package/dist/functions/index.cjs +1 -1
  70. package/dist/functions/index.d.cts +2 -2
  71. package/dist/functions/index.d.mts +2 -2
  72. package/dist/functions/index.mjs +2 -2
  73. package/dist/{functions-GmSHFbpr.mjs → functions-BMR-1CIQ.mjs} +1639 -1638
  74. package/dist/functions-BMR-1CIQ.mjs.map +1 -0
  75. package/dist/{functions-CX21wstW.cjs → functions-_OAiwGYh.cjs} +1637 -1637
  76. package/dist/functions-_OAiwGYh.cjs.map +1 -0
  77. package/dist/{index-CzIMpK-e.d.cts → index-Dj3uvqCO.d.cts} +39 -38
  78. package/dist/index-Dj3uvqCO.d.cts.map +1 -0
  79. package/dist/{index-Cq4fz8uM.d.mts → index-DoiHTgUQ.d.mts} +35 -34
  80. package/dist/index-DoiHTgUQ.d.mts.map +1 -0
  81. package/dist/index.d.cts +3 -3
  82. package/dist/index.d.mts +3 -3
  83. package/dist/index.mjs +1 -1
  84. package/dist/{lazyAccessors-zNy6P6Cg.cjs → lazyAccessors-B4rtX68K.cjs} +6 -889
  85. package/dist/lazyAccessors-B4rtX68K.cjs.map +1 -0
  86. package/dist/{lazyAccessors-5h-aWohM.mjs → lazyAccessors-D-UHg0YJ.mjs} +9 -873
  87. package/dist/lazyAccessors-D-UHg0YJ.mjs.map +1 -0
  88. package/dist/lodash-CM4k4sZD.cjs +836 -0
  89. package/dist/lodash-CM4k4sZD.cjs.map +1 -0
  90. package/dist/lodash-DiUeLbQy.mjs +831 -0
  91. package/dist/lodash-DiUeLbQy.mjs.map +1 -0
  92. package/dist/{processAudits-B0PbJf1Z.mjs → processAudits-BEiSkgH3.mjs} +1 -1
  93. package/dist/{processAudits-B0PbJf1Z.mjs.map → processAudits-BEiSkgH3.mjs.map} +1 -1
  94. package/dist/{processAudits-B_a9bDPs.cjs → processAudits-CPcACKCA.cjs} +1 -1
  95. package/dist/{processAudits-B_a9bDPs.cjs.map → processAudits-CPcACKCA.cjs.map} +1 -1
  96. package/dist/publisher-BZgcrVPy.cjs +53 -0
  97. package/dist/publisher-BZgcrVPy.cjs.map +1 -0
  98. package/dist/publisher-CnpeMv-r.mjs +41 -0
  99. package/dist/publisher-CnpeMv-r.mjs.map +1 -0
  100. package/dist/subscribers/index.d.cts +2 -2
  101. package/dist/subscribers/index.d.mts +2 -2
  102. package/dist/subscribers/index.mjs +1 -1
  103. package/dist/{telemetry-COvVBKBM.d.mts → telemetry-Bp4DLvdQ.d.mts} +1 -1
  104. package/dist/{telemetry-Bt0vK4ma.d.cts.map → telemetry-Bp4DLvdQ.d.mts.map} +1 -1
  105. package/dist/{telemetry-Bt0vK4ma.d.cts → telemetry-Dqx-D3F7.d.cts} +1 -1
  106. package/dist/{telemetry-COvVBKBM.d.mts.map → telemetry-Dqx-D3F7.d.cts.map} +1 -1
  107. package/dist/{types-B8YlI4cx.d.cts → types-BdAaYDvd.d.cts} +1 -1
  108. package/dist/{types-B8YlI4cx.d.cts.map → types-BdAaYDvd.d.cts.map} +1 -1
  109. package/dist/{types-BA3eK4xj.d.mts → types-j0ti0JTY.d.mts} +1 -1
  110. package/dist/{types-BA3eK4xj.d.mts.map → types-j0ti0JTY.d.mts.map} +1 -1
  111. package/dist/types.d.cts +1 -1
  112. package/dist/types.d.mts +1 -1
  113. package/package.json +21 -11
  114. package/src/adaptors/__tests__/middy.spec.ts +212 -0
  115. package/src/adaptors/aws.ts +1 -0
  116. package/src/adaptors/middy.ts +225 -0
  117. package/src/crons/AWSScheduledFunction.ts +72 -0
  118. package/src/crons/__tests__/AWSScheduledFunction.spec.ts +152 -0
  119. package/src/crons/index.ts +1 -0
  120. package/tsdown.config.ts +1 -0
  121. package/dist/functions-CX21wstW.cjs.map +0 -1
  122. package/dist/functions-GmSHFbpr.mjs.map +0 -1
  123. package/dist/index-Cq4fz8uM.d.mts.map +0 -1
  124. package/dist/index-CzIMpK-e.d.cts.map +0 -1
  125. package/dist/lazyAccessors-5h-aWohM.mjs.map +0 -1
  126. package/dist/lazyAccessors-zNy6P6Cg.cjs.map +0 -1
@@ -1,11 +1,11 @@
1
1
  const require_chunk = require('./chunk-DWy1uDak.cjs');
2
2
  const require_Construct = require('./Construct-DXfLPGwg.cjs');
3
- const __geekmidas_logger_console = require_chunk.__toESM(require("@geekmidas/logger/console"));
4
3
  const __geekmidas_errors = require_chunk.__toESM(require("@geekmidas/errors"));
4
+ const __geekmidas_logger_console = require_chunk.__toESM(require("@geekmidas/logger/console"));
5
5
  const __geekmidas_schema_parser = require_chunk.__toESM(require("@geekmidas/schema/parser"));
6
6
 
7
- //#region ../../node_modules/.pnpm/lodash.get@4.4.2/node_modules/lodash.get/index.js
8
- var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash.get@4.4.2/node_modules/lodash.get/index.js"(exports, module) {
7
+ //#region ../../node_modules/.pnpm/lodash.uniqby@4.7.0/node_modules/lodash.uniqby/index.js
8
+ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash.uniqby@4.7.0/node_modules/lodash.uniqby/index.js"(exports, module) {
9
9
  /**
10
10
  * lodash (Custom Build) <https://lodash.com/>
11
11
  * Build: `lodash modularize exports="npm" -o ./`
@@ -14,14 +14,19 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
14
14
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
15
15
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
16
16
  */
17
+ /** Used as the size to enable large array optimizations. */
18
+ var LARGE_ARRAY_SIZE = 200;
17
19
  /** Used as the `TypeError` message for "Functions" methods. */
18
20
  var FUNC_ERROR_TEXT$1 = "Expected a function";
19
21
  /** Used to stand-in for `undefined` hash values. */
20
22
  var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
23
+ /** Used to compose bitmasks for comparison styles. */
24
+ var UNORDERED_COMPARE_FLAG = 1, PARTIAL_COMPARE_FLAG = 2;
21
25
  /** Used as references for various `Number` constants. */
22
- var INFINITY$1 = Infinity;
26
+ var INFINITY$1 = Infinity, MAX_SAFE_INTEGER = 9007199254740991;
23
27
  /** `Object#toString` result references. */
24
- var funcTag$1 = "[object Function]", genTag$1 = "[object GeneratorFunction]", symbolTag$1 = "[object Symbol]";
28
+ var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag$1 = "[object Function]", genTag$1 = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", promiseTag = "[object Promise]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag$1 = "[object Symbol]", weakMapTag = "[object WeakMap]";
29
+ var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
25
30
  /** Used to match property names within property paths. */
26
31
  var reIsDeepProp$1 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp$1 = /^\w*$/, reLeadingDot$1 = /^\./, rePropName$1 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
27
32
  /**
@@ -33,12 +38,165 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
33
38
  var reEscapeChar$1 = /\\(\\)?/g;
34
39
  /** Used to detect host constructors (Safari). */
35
40
  var reIsHostCtor$1 = /^\[object .+?Constructor\]$/;
41
+ /** Used to detect unsigned integer values. */
42
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
43
+ /** Used to identify `toStringTag` values of typed arrays. */
44
+ var typedArrayTags = {};
45
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
46
+ typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
36
47
  /** Detect free variable `global` from Node.js. */
37
48
  var freeGlobal$1 = typeof global == "object" && global && global.Object === Object && global;
38
49
  /** Detect free variable `self`. */
39
50
  var freeSelf$1 = typeof self == "object" && self && self.Object === Object && self;
40
51
  /** Used as a reference to the global object. */
41
52
  var root$1 = freeGlobal$1 || freeSelf$1 || Function("return this")();
53
+ /** Detect free variable `exports`. */
54
+ var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
55
+ /** Detect free variable `module`. */
56
+ var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
57
+ /** Detect the popular CommonJS extension `module.exports`. */
58
+ var moduleExports = freeModule && freeModule.exports === freeExports;
59
+ /** Detect free variable `process` from Node.js. */
60
+ var freeProcess = moduleExports && freeGlobal$1.process;
61
+ /** Used to access faster Node.js helpers. */
62
+ var nodeUtil = function() {
63
+ try {
64
+ return freeProcess && freeProcess.binding("util");
65
+ } catch (e) {}
66
+ }();
67
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
68
+ /**
69
+ * A specialized version of `_.includes` for arrays without support for
70
+ * specifying an index to search from.
71
+ *
72
+ * @private
73
+ * @param {Array} [array] The array to inspect.
74
+ * @param {*} target The value to search for.
75
+ * @returns {boolean} Returns `true` if `target` is found, else `false`.
76
+ */
77
+ function arrayIncludes(array, value) {
78
+ var length = array ? array.length : 0;
79
+ return !!length && baseIndexOf(array, value, 0) > -1;
80
+ }
81
+ /**
82
+ * This function is like `arrayIncludes` except that it accepts a comparator.
83
+ *
84
+ * @private
85
+ * @param {Array} [array] The array to inspect.
86
+ * @param {*} target The value to search for.
87
+ * @param {Function} comparator The comparator invoked per element.
88
+ * @returns {boolean} Returns `true` if `target` is found, else `false`.
89
+ */
90
+ function arrayIncludesWith(array, value, comparator) {
91
+ var index = -1, length = array ? array.length : 0;
92
+ while (++index < length) if (comparator(value, array[index])) return true;
93
+ return false;
94
+ }
95
+ /**
96
+ * A specialized version of `_.some` for arrays without support for iteratee
97
+ * shorthands.
98
+ *
99
+ * @private
100
+ * @param {Array} [array] The array to iterate over.
101
+ * @param {Function} predicate The function invoked per iteration.
102
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
103
+ * else `false`.
104
+ */
105
+ function arraySome(array, predicate) {
106
+ var index = -1, length = array ? array.length : 0;
107
+ while (++index < length) if (predicate(array[index], index, array)) return true;
108
+ return false;
109
+ }
110
+ /**
111
+ * The base implementation of `_.findIndex` and `_.findLastIndex` without
112
+ * support for iteratee shorthands.
113
+ *
114
+ * @private
115
+ * @param {Array} array The array to inspect.
116
+ * @param {Function} predicate The function invoked per iteration.
117
+ * @param {number} fromIndex The index to search from.
118
+ * @param {boolean} [fromRight] Specify iterating from right to left.
119
+ * @returns {number} Returns the index of the matched value, else `-1`.
120
+ */
121
+ function baseFindIndex(array, predicate, fromIndex, fromRight) {
122
+ var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
123
+ while (fromRight ? index-- : ++index < length) if (predicate(array[index], index, array)) return index;
124
+ return -1;
125
+ }
126
+ /**
127
+ * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
128
+ *
129
+ * @private
130
+ * @param {Array} array The array to inspect.
131
+ * @param {*} value The value to search for.
132
+ * @param {number} fromIndex The index to search from.
133
+ * @returns {number} Returns the index of the matched value, else `-1`.
134
+ */
135
+ function baseIndexOf(array, value, fromIndex) {
136
+ if (value !== value) return baseFindIndex(array, baseIsNaN, fromIndex);
137
+ var index = fromIndex - 1, length = array.length;
138
+ while (++index < length) if (array[index] === value) return index;
139
+ return -1;
140
+ }
141
+ /**
142
+ * The base implementation of `_.isNaN` without support for number objects.
143
+ *
144
+ * @private
145
+ * @param {*} value The value to check.
146
+ * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
147
+ */
148
+ function baseIsNaN(value) {
149
+ return value !== value;
150
+ }
151
+ /**
152
+ * The base implementation of `_.property` without support for deep paths.
153
+ *
154
+ * @private
155
+ * @param {string} key The key of the property to get.
156
+ * @returns {Function} Returns the new accessor function.
157
+ */
158
+ function baseProperty(key) {
159
+ return function(object) {
160
+ return object == null ? void 0 : object[key];
161
+ };
162
+ }
163
+ /**
164
+ * The base implementation of `_.times` without support for iteratee shorthands
165
+ * or max array length checks.
166
+ *
167
+ * @private
168
+ * @param {number} n The number of times to invoke `iteratee`.
169
+ * @param {Function} iteratee The function invoked per iteration.
170
+ * @returns {Array} Returns the array of results.
171
+ */
172
+ function baseTimes(n, iteratee) {
173
+ var index = -1, result = Array(n);
174
+ while (++index < n) result[index] = iteratee(index);
175
+ return result;
176
+ }
177
+ /**
178
+ * The base implementation of `_.unary` without support for storing metadata.
179
+ *
180
+ * @private
181
+ * @param {Function} func The function to cap arguments for.
182
+ * @returns {Function} Returns the new capped function.
183
+ */
184
+ function baseUnary(func) {
185
+ return function(value) {
186
+ return func(value);
187
+ };
188
+ }
189
+ /**
190
+ * Checks if a cache value for `key` exists.
191
+ *
192
+ * @private
193
+ * @param {Object} cache The cache to query.
194
+ * @param {string} key The key of the entry to check.
195
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
196
+ */
197
+ function cacheHas(cache, key) {
198
+ return cache.has(key);
199
+ }
42
200
  /**
43
201
  * Gets the value at `key` of `object`.
44
202
  *
@@ -64,6 +222,47 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
64
222
  } catch (e) {}
65
223
  return result;
66
224
  }
225
+ /**
226
+ * Converts `map` to its key-value pairs.
227
+ *
228
+ * @private
229
+ * @param {Object} map The map to convert.
230
+ * @returns {Array} Returns the key-value pairs.
231
+ */
232
+ function mapToArray(map) {
233
+ var index = -1, result = Array(map.size);
234
+ map.forEach(function(value, key) {
235
+ result[++index] = [key, value];
236
+ });
237
+ return result;
238
+ }
239
+ /**
240
+ * Creates a unary function that invokes `func` with its argument transformed.
241
+ *
242
+ * @private
243
+ * @param {Function} func The function to wrap.
244
+ * @param {Function} transform The argument transform.
245
+ * @returns {Function} Returns the new function.
246
+ */
247
+ function overArg(func, transform) {
248
+ return function(arg) {
249
+ return func(transform(arg));
250
+ };
251
+ }
252
+ /**
253
+ * Converts `set` to an array of its values.
254
+ *
255
+ * @private
256
+ * @param {Object} set The set to convert.
257
+ * @returns {Array} Returns the values.
258
+ */
259
+ function setToArray(set) {
260
+ var index = -1, result = Array(set.size);
261
+ set.forEach(function(value) {
262
+ result[++index] = value;
263
+ });
264
+ return result;
265
+ }
67
266
  /** Used for built-in method references. */
68
267
  var arrayProto$1 = Array.prototype, funcProto$1 = Function.prototype, objectProto$1 = Object.prototype;
69
268
  /** Used to detect overreaching core-js shims. */
@@ -86,10 +285,13 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
86
285
  /** Used to detect if a method is native. */
87
286
  var reIsNative$1 = RegExp("^" + funcToString$1.call(hasOwnProperty$1).replace(reRegExpChar$1, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
88
287
  /** Built-in value references. */
89
- var Symbol$1 = root$1.Symbol, splice$1 = arrayProto$1.splice;
90
- var Map$1 = getNative$1(root$1, "Map"), nativeCreate$1 = getNative$1(Object, "create");
288
+ var Symbol$1 = root$1.Symbol, Uint8Array = root$1.Uint8Array, propertyIsEnumerable = objectProto$1.propertyIsEnumerable, splice$1 = arrayProto$1.splice;
289
+ var nativeKeys = overArg(Object.keys, Object);
290
+ var DataView = getNative$1(root$1, "DataView"), Map$1 = getNative$1(root$1, "Map"), Promise$1 = getNative$1(root$1, "Promise"), Set = getNative$1(root$1, "Set"), WeakMap = getNative$1(root$1, "WeakMap"), nativeCreate$1 = getNative$1(Object, "create");
291
+ /** Used to detect maps, sets, and weakmaps. */
292
+ var dataViewCtorString = toSource$1(DataView), mapCtorString = toSource$1(Map$1), promiseCtorString = toSource$1(Promise$1), setCtorString = toSource$1(Set), weakMapCtorString = toSource$1(WeakMap);
91
293
  /** Used to convert symbols to primitives and strings. */
92
- var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString$1 = symbolProto$1 ? symbolProto$1.toString : void 0;
294
+ var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto$1 ? symbolProto$1.valueOf : void 0, symbolToString$1 = symbolProto$1 ? symbolProto$1.toString : void 0;
93
295
  /**
94
296
  * Creates a hash object.
95
297
  *
@@ -351,1732 +553,1768 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
351
553
  MapCache$1.prototype.has = mapCacheHas$1;
352
554
  MapCache$1.prototype.set = mapCacheSet$1;
353
555
  /**
354
- * Gets the index at which the `key` is found in `array` of key-value pairs.
556
+ *
557
+ * Creates an array cache object to store unique values.
355
558
  *
356
559
  * @private
357
- * @param {Array} array The array to inspect.
358
- * @param {*} key The key to search for.
359
- * @returns {number} Returns the index of the matched value, else `-1`.
560
+ * @constructor
561
+ * @param {Array} [values] The values to cache.
360
562
  */
361
- function assocIndexOf$1(array, key) {
362
- var length = array.length;
363
- while (length--) if (eq$1(array[length][0], key)) return length;
364
- return -1;
563
+ function SetCache(values) {
564
+ var index = -1, length = values ? values.length : 0;
565
+ this.__data__ = new MapCache$1();
566
+ while (++index < length) this.add(values[index]);
365
567
  }
366
568
  /**
367
- * The base implementation of `_.get` without support for default values.
569
+ * Adds `value` to the array cache.
368
570
  *
369
571
  * @private
370
- * @param {Object} object The object to query.
371
- * @param {Array|string} path The path of the property to get.
372
- * @returns {*} Returns the resolved value.
572
+ * @name add
573
+ * @memberOf SetCache
574
+ * @alias push
575
+ * @param {*} value The value to cache.
576
+ * @returns {Object} Returns the cache instance.
373
577
  */
374
- function baseGet$1(object, path) {
375
- path = isKey$1(path, object) ? [path] : castPath$1(path);
376
- var index = 0, length = path.length;
377
- while (object != null && index < length) object = object[toKey$1(path[index++])];
378
- return index && index == length ? object : void 0;
578
+ function setCacheAdd(value) {
579
+ this.__data__.set(value, HASH_UNDEFINED$1);
580
+ return this;
379
581
  }
380
582
  /**
381
- * The base implementation of `_.isNative` without bad shim checks.
583
+ * Checks if `value` is in the array cache.
382
584
  *
383
585
  * @private
384
- * @param {*} value The value to check.
385
- * @returns {boolean} Returns `true` if `value` is a native function,
386
- * else `false`.
586
+ * @name has
587
+ * @memberOf SetCache
588
+ * @param {*} value The value to search for.
589
+ * @returns {number} Returns `true` if `value` is found, else `false`.
387
590
  */
388
- function baseIsNative$1(value) {
389
- if (!isObject$1(value) || isMasked$1(value)) return false;
390
- var pattern = isFunction$1(value) || isHostObject$1(value) ? reIsNative$1 : reIsHostCtor$1;
391
- return pattern.test(toSource$1(value));
591
+ function setCacheHas(value) {
592
+ return this.__data__.has(value);
392
593
  }
594
+ SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
595
+ SetCache.prototype.has = setCacheHas;
393
596
  /**
394
- * The base implementation of `_.toString` which doesn't convert nullish
395
- * values to empty strings.
597
+ * Creates a stack cache object to store key-value pairs.
396
598
  *
397
599
  * @private
398
- * @param {*} value The value to process.
399
- * @returns {string} Returns the string.
600
+ * @constructor
601
+ * @param {Array} [entries] The key-value pairs to cache.
400
602
  */
401
- function baseToString$1(value) {
402
- if (typeof value == "string") return value;
403
- if (isSymbol$1(value)) return symbolToString$1 ? symbolToString$1.call(value) : "";
404
- var result = value + "";
405
- return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
603
+ function Stack(entries) {
604
+ this.__data__ = new ListCache$1(entries);
406
605
  }
407
606
  /**
408
- * Casts `value` to a path array if it's not one.
607
+ * Removes all key-value entries from the stack.
409
608
  *
410
609
  * @private
411
- * @param {*} value The value to inspect.
412
- * @returns {Array} Returns the cast property path array.
610
+ * @name clear
611
+ * @memberOf Stack
413
612
  */
414
- function castPath$1(value) {
415
- return isArray$1(value) ? value : stringToPath$1(value);
613
+ function stackClear() {
614
+ this.__data__ = new ListCache$1();
416
615
  }
417
616
  /**
418
- * Gets the data for `map`.
617
+ * Removes `key` and its value from the stack.
419
618
  *
420
619
  * @private
421
- * @param {Object} map The map to query.
422
- * @param {string} key The reference key.
423
- * @returns {*} Returns the map data.
620
+ * @name delete
621
+ * @memberOf Stack
622
+ * @param {string} key The key of the value to remove.
623
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
424
624
  */
425
- function getMapData$1(map, key) {
426
- var data = map.__data__;
427
- return isKeyable$1(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
625
+ function stackDelete(key) {
626
+ return this.__data__["delete"](key);
428
627
  }
429
628
  /**
430
- * Gets the native function at `key` of `object`.
629
+ * Gets the stack value for `key`.
431
630
  *
432
631
  * @private
433
- * @param {Object} object The object to query.
434
- * @param {string} key The key of the method to get.
435
- * @returns {*} Returns the function if it's native, else `undefined`.
632
+ * @name get
633
+ * @memberOf Stack
634
+ * @param {string} key The key of the value to get.
635
+ * @returns {*} Returns the entry value.
436
636
  */
437
- function getNative$1(object, key) {
438
- var value = getValue$1(object, key);
439
- return baseIsNative$1(value) ? value : void 0;
637
+ function stackGet(key) {
638
+ return this.__data__.get(key);
440
639
  }
441
640
  /**
442
- * Checks if `value` is a property name and not a property path.
641
+ * Checks if a stack value for `key` exists.
443
642
  *
444
643
  * @private
445
- * @param {*} value The value to check.
446
- * @param {Object} [object] The object to query keys on.
447
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
644
+ * @name has
645
+ * @memberOf Stack
646
+ * @param {string} key The key of the entry to check.
647
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
448
648
  */
449
- function isKey$1(value, object) {
450
- if (isArray$1(value)) return false;
451
- var type = typeof value;
452
- if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol$1(value)) return true;
453
- return reIsPlainProp$1.test(value) || !reIsDeepProp$1.test(value) || object != null && value in Object(object);
649
+ function stackHas(key) {
650
+ return this.__data__.has(key);
454
651
  }
455
652
  /**
456
- * Checks if `value` is suitable for use as unique object key.
653
+ * Sets the stack `key` to `value`.
457
654
  *
458
655
  * @private
459
- * @param {*} value The value to check.
460
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
656
+ * @name set
657
+ * @memberOf Stack
658
+ * @param {string} key The key of the value to set.
659
+ * @param {*} value The value to set.
660
+ * @returns {Object} Returns the stack cache instance.
461
661
  */
462
- function isKeyable$1(value) {
463
- var type = typeof value;
464
- return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
662
+ function stackSet(key, value) {
663
+ var cache = this.__data__;
664
+ if (cache instanceof ListCache$1) {
665
+ var pairs = cache.__data__;
666
+ if (!Map$1 || pairs.length < LARGE_ARRAY_SIZE - 1) {
667
+ pairs.push([key, value]);
668
+ return this;
669
+ }
670
+ cache = this.__data__ = new MapCache$1(pairs);
671
+ }
672
+ cache.set(key, value);
673
+ return this;
465
674
  }
675
+ Stack.prototype.clear = stackClear;
676
+ Stack.prototype["delete"] = stackDelete;
677
+ Stack.prototype.get = stackGet;
678
+ Stack.prototype.has = stackHas;
679
+ Stack.prototype.set = stackSet;
466
680
  /**
467
- * Checks if `func` has its source masked.
681
+ * Creates an array of the enumerable property names of the array-like `value`.
468
682
  *
469
683
  * @private
470
- * @param {Function} func The function to check.
471
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
684
+ * @param {*} value The value to query.
685
+ * @param {boolean} inherited Specify returning inherited property names.
686
+ * @returns {Array} Returns the array of property names.
472
687
  */
473
- function isMasked$1(func) {
474
- return !!maskSrcKey$1 && maskSrcKey$1 in func;
688
+ function arrayLikeKeys(value, inherited) {
689
+ var result = isArray$1(value) || isArguments(value) ? baseTimes(value.length, String) : [];
690
+ var length = result.length, skipIndexes = !!length;
691
+ for (var key in value) if ((inherited || hasOwnProperty$1.call(value, key)) && !(skipIndexes && (key == "length" || isIndex(key, length)))) result.push(key);
692
+ return result;
475
693
  }
476
694
  /**
477
- * Converts `string` to a property path array.
695
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
478
696
  *
479
697
  * @private
480
- * @param {string} string The string to convert.
481
- * @returns {Array} Returns the property path array.
698
+ * @param {Array} array The array to inspect.
699
+ * @param {*} key The key to search for.
700
+ * @returns {number} Returns the index of the matched value, else `-1`.
482
701
  */
483
- var stringToPath$1 = memoize$1(function(string) {
484
- string = toString$1(string);
485
- var result = [];
486
- if (reLeadingDot$1.test(string)) result.push("");
487
- string.replace(rePropName$1, function(match, number, quote, string$1) {
488
- result.push(quote ? string$1.replace(reEscapeChar$1, "$1") : number || match);
489
- });
490
- return result;
491
- });
702
+ function assocIndexOf$1(array, key) {
703
+ var length = array.length;
704
+ while (length--) if (eq$1(array[length][0], key)) return length;
705
+ return -1;
706
+ }
492
707
  /**
493
- * Converts `value` to a string key if it's not a string or symbol.
708
+ * The base implementation of `_.get` without support for default values.
494
709
  *
495
710
  * @private
496
- * @param {*} value The value to inspect.
497
- * @returns {string|symbol} Returns the key.
711
+ * @param {Object} object The object to query.
712
+ * @param {Array|string} path The path of the property to get.
713
+ * @returns {*} Returns the resolved value.
498
714
  */
499
- function toKey$1(value) {
500
- if (typeof value == "string" || isSymbol$1(value)) return value;
501
- var result = value + "";
502
- return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
715
+ function baseGet$1(object, path) {
716
+ path = isKey$1(path, object) ? [path] : castPath$1(path);
717
+ var index = 0, length = path.length;
718
+ while (object != null && index < length) object = object[toKey$1(path[index++])];
719
+ return index && index == length ? object : void 0;
503
720
  }
504
721
  /**
505
- * Converts `func` to its source code.
722
+ * The base implementation of `getTag`.
506
723
  *
507
724
  * @private
508
- * @param {Function} func The function to process.
509
- * @returns {string} Returns the source code.
725
+ * @param {*} value The value to query.
726
+ * @returns {string} Returns the `toStringTag`.
510
727
  */
511
- function toSource$1(func) {
512
- if (func != null) {
513
- try {
514
- return funcToString$1.call(func);
515
- } catch (e) {}
516
- try {
517
- return func + "";
518
- } catch (e) {}
519
- }
520
- return "";
728
+ function baseGetTag(value) {
729
+ return objectToString$1.call(value);
521
730
  }
522
731
  /**
523
- * Creates a function that memoizes the result of `func`. If `resolver` is
524
- * provided, it determines the cache key for storing the result based on the
525
- * arguments provided to the memoized function. By default, the first argument
526
- * provided to the memoized function is used as the map cache key. The `func`
527
- * is invoked with the `this` binding of the memoized function.
528
- *
529
- * **Note:** The cache is exposed as the `cache` property on the memoized
530
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
531
- * constructor with one whose instances implement the
532
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
533
- * method interface of `delete`, `get`, `has`, and `set`.
534
- *
535
- * @static
536
- * @memberOf _
537
- * @since 0.1.0
538
- * @category Function
539
- * @param {Function} func The function to have its output memoized.
540
- * @param {Function} [resolver] The function to resolve the cache key.
541
- * @returns {Function} Returns the new memoized function.
542
- * @example
543
- *
544
- * var object = { 'a': 1, 'b': 2 };
545
- * var other = { 'c': 3, 'd': 4 };
546
- *
547
- * var values = _.memoize(_.values);
548
- * values(object);
549
- * // => [1, 2]
550
- *
551
- * values(other);
552
- * // => [3, 4]
553
- *
554
- * object.a = 2;
555
- * values(object);
556
- * // => [1, 2]
557
- *
558
- * // Modify the result cache.
559
- * values.cache.set(object, ['a', 'b']);
560
- * values(object);
561
- * // => ['a', 'b']
732
+ * The base implementation of `_.hasIn` without support for deep paths.
562
733
  *
563
- * // Replace `_.memoize.Cache`.
564
- * _.memoize.Cache = WeakMap;
734
+ * @private
735
+ * @param {Object} [object] The object to query.
736
+ * @param {Array|string} key The key to check.
737
+ * @returns {boolean} Returns `true` if `key` exists, else `false`.
565
738
  */
566
- function memoize$1(func, resolver) {
567
- if (typeof func != "function" || resolver && typeof resolver != "function") throw new TypeError(FUNC_ERROR_TEXT$1);
568
- var memoized = function() {
569
- var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
570
- if (cache.has(key)) return cache.get(key);
571
- var result = func.apply(this, args);
572
- memoized.cache = cache.set(key, result);
573
- return result;
574
- };
575
- memoized.cache = new (memoize$1.Cache || MapCache$1)();
576
- return memoized;
739
+ function baseHasIn(object, key) {
740
+ return object != null && key in Object(object);
577
741
  }
578
- memoize$1.Cache = MapCache$1;
579
742
  /**
580
- * Performs a
581
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
582
- * comparison between two values to determine if they are equivalent.
743
+ * The base implementation of `_.isEqual` which supports partial comparisons
744
+ * and tracks traversed objects.
583
745
  *
584
- * @static
585
- * @memberOf _
586
- * @since 4.0.0
587
- * @category Lang
746
+ * @private
588
747
  * @param {*} value The value to compare.
589
748
  * @param {*} other The other value to compare.
749
+ * @param {Function} [customizer] The function to customize comparisons.
750
+ * @param {boolean} [bitmask] The bitmask of comparison flags.
751
+ * The bitmask may be composed of the following flags:
752
+ * 1 - Unordered comparison
753
+ * 2 - Partial comparison
754
+ * @param {Object} [stack] Tracks traversed `value` and `other` objects.
590
755
  * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
591
- * @example
592
- *
593
- * var object = { 'a': 1 };
594
- * var other = { 'a': 1 };
595
- *
596
- * _.eq(object, object);
597
- * // => true
598
- *
599
- * _.eq(object, other);
600
- * // => false
601
- *
602
- * _.eq('a', 'a');
603
- * // => true
604
- *
605
- * _.eq('a', Object('a'));
606
- * // => false
607
- *
608
- * _.eq(NaN, NaN);
609
- * // => true
610
756
  */
611
- function eq$1(value, other) {
612
- return value === other || value !== value && other !== other;
757
+ function baseIsEqual(value, other, customizer, bitmask, stack) {
758
+ if (value === other) return true;
759
+ if (value == null || other == null || !isObject$1(value) && !isObjectLike$1(other)) return value !== value && other !== other;
760
+ return baseIsEqualDeep(value, other, baseIsEqual, customizer, bitmask, stack);
613
761
  }
614
762
  /**
615
- * Checks if `value` is classified as an `Array` object.
616
- *
617
- * @static
618
- * @memberOf _
619
- * @since 0.1.0
620
- * @category Lang
621
- * @param {*} value The value to check.
622
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
623
- * @example
624
- *
625
- * _.isArray([1, 2, 3]);
626
- * // => true
627
- *
628
- * _.isArray(document.body.children);
629
- * // => false
630
- *
631
- * _.isArray('abc');
632
- * // => false
763
+ * A specialized version of `baseIsEqual` for arrays and objects which performs
764
+ * deep comparisons and tracks traversed objects enabling objects with circular
765
+ * references to be compared.
633
766
  *
634
- * _.isArray(_.noop);
635
- * // => false
767
+ * @private
768
+ * @param {Object} object The object to compare.
769
+ * @param {Object} other The other object to compare.
770
+ * @param {Function} equalFunc The function to determine equivalents of values.
771
+ * @param {Function} [customizer] The function to customize comparisons.
772
+ * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual`
773
+ * for more details.
774
+ * @param {Object} [stack] Tracks traversed `object` and `other` objects.
775
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
636
776
  */
637
- var isArray$1 = Array.isArray;
777
+ function baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) {
778
+ var objIsArr = isArray$1(object), othIsArr = isArray$1(other), objTag = arrayTag, othTag = arrayTag;
779
+ if (!objIsArr) {
780
+ objTag = getTag(object);
781
+ objTag = objTag == argsTag ? objectTag : objTag;
782
+ }
783
+ if (!othIsArr) {
784
+ othTag = getTag(other);
785
+ othTag = othTag == argsTag ? objectTag : othTag;
786
+ }
787
+ var objIsObj = objTag == objectTag && !isHostObject$1(object), othIsObj = othTag == objectTag && !isHostObject$1(other), isSameTag = objTag == othTag;
788
+ if (isSameTag && !objIsObj) {
789
+ stack || (stack = new Stack());
790
+ return objIsArr || isTypedArray(object) ? equalArrays(object, other, equalFunc, customizer, bitmask, stack) : equalByTag(object, other, objTag, equalFunc, customizer, bitmask, stack);
791
+ }
792
+ if (!(bitmask & PARTIAL_COMPARE_FLAG)) {
793
+ var objIsWrapped = objIsObj && hasOwnProperty$1.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$1.call(other, "__wrapped__");
794
+ if (objIsWrapped || othIsWrapped) {
795
+ var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
796
+ stack || (stack = new Stack());
797
+ return equalFunc(objUnwrapped, othUnwrapped, customizer, bitmask, stack);
798
+ }
799
+ }
800
+ if (!isSameTag) return false;
801
+ stack || (stack = new Stack());
802
+ return equalObjects(object, other, equalFunc, customizer, bitmask, stack);
803
+ }
638
804
  /**
639
- * Checks if `value` is classified as a `Function` object.
640
- *
641
- * @static
642
- * @memberOf _
643
- * @since 0.1.0
644
- * @category Lang
645
- * @param {*} value The value to check.
646
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
647
- * @example
648
- *
649
- * _.isFunction(_);
650
- * // => true
805
+ * The base implementation of `_.isMatch` without support for iteratee shorthands.
651
806
  *
652
- * _.isFunction(/abc/);
653
- * // => false
807
+ * @private
808
+ * @param {Object} object The object to inspect.
809
+ * @param {Object} source The object of property values to match.
810
+ * @param {Array} matchData The property names, values, and compare flags to match.
811
+ * @param {Function} [customizer] The function to customize comparisons.
812
+ * @returns {boolean} Returns `true` if `object` is a match, else `false`.
654
813
  */
655
- function isFunction$1(value) {
656
- var tag = isObject$1(value) ? objectToString$1.call(value) : "";
657
- return tag == funcTag$1 || tag == genTag$1;
814
+ function baseIsMatch(object, source, matchData, customizer) {
815
+ var index = matchData.length, length = index, noCustomizer = !customizer;
816
+ if (object == null) return !length;
817
+ object = Object(object);
818
+ while (index--) {
819
+ var data = matchData[index];
820
+ if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) return false;
821
+ }
822
+ while (++index < length) {
823
+ data = matchData[index];
824
+ var key = data[0], objValue = object[key], srcValue = data[1];
825
+ if (noCustomizer && data[2]) {
826
+ if (objValue === void 0 && !(key in object)) return false;
827
+ } else {
828
+ var stack = new Stack();
829
+ if (customizer) var result = customizer(objValue, srcValue, key, object, source, stack);
830
+ if (!(result === void 0 ? baseIsEqual(srcValue, objValue, customizer, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG, stack) : result)) return false;
831
+ }
832
+ }
833
+ return true;
658
834
  }
659
835
  /**
660
- * Checks if `value` is the
661
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
662
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
836
+ * The base implementation of `_.isNative` without bad shim checks.
663
837
  *
664
- * @static
665
- * @memberOf _
666
- * @since 0.1.0
667
- * @category Lang
838
+ * @private
668
839
  * @param {*} value The value to check.
669
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
670
- * @example
671
- *
672
- * _.isObject({});
673
- * // => true
674
- *
675
- * _.isObject([1, 2, 3]);
676
- * // => true
677
- *
678
- * _.isObject(_.noop);
679
- * // => true
680
- *
681
- * _.isObject(null);
682
- * // => false
840
+ * @returns {boolean} Returns `true` if `value` is a native function,
841
+ * else `false`.
683
842
  */
684
- function isObject$1(value) {
685
- var type = typeof value;
686
- return !!value && (type == "object" || type == "function");
843
+ function baseIsNative$1(value) {
844
+ if (!isObject$1(value) || isMasked$1(value)) return false;
845
+ var pattern = isFunction$1(value) || isHostObject$1(value) ? reIsNative$1 : reIsHostCtor$1;
846
+ return pattern.test(toSource$1(value));
687
847
  }
688
848
  /**
689
- * Checks if `value` is object-like. A value is object-like if it's not `null`
690
- * and has a `typeof` result of "object".
849
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
691
850
  *
692
- * @static
693
- * @memberOf _
694
- * @since 4.0.0
695
- * @category Lang
851
+ * @private
696
852
  * @param {*} value The value to check.
697
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
698
- * @example
699
- *
700
- * _.isObjectLike({});
701
- * // => true
702
- *
703
- * _.isObjectLike([1, 2, 3]);
704
- * // => true
853
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
854
+ */
855
+ function baseIsTypedArray(value) {
856
+ return isObjectLike$1(value) && isLength(value.length) && !!typedArrayTags[objectToString$1.call(value)];
857
+ }
858
+ /**
859
+ * The base implementation of `_.iteratee`.
705
860
  *
706
- * _.isObjectLike(_.noop);
707
- * // => false
861
+ * @private
862
+ * @param {*} [value=_.identity] The value to convert to an iteratee.
863
+ * @returns {Function} Returns the iteratee.
864
+ */
865
+ function baseIteratee(value) {
866
+ if (typeof value == "function") return value;
867
+ if (value == null) return identity;
868
+ if (typeof value == "object") return isArray$1(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
869
+ return property(value);
870
+ }
871
+ /**
872
+ * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
708
873
  *
709
- * _.isObjectLike(null);
710
- * // => false
874
+ * @private
875
+ * @param {Object} object The object to query.
876
+ * @returns {Array} Returns the array of property names.
711
877
  */
712
- function isObjectLike$1(value) {
713
- return !!value && typeof value == "object";
878
+ function baseKeys(object) {
879
+ if (!isPrototype(object)) return nativeKeys(object);
880
+ var result = [];
881
+ for (var key in Object(object)) if (hasOwnProperty$1.call(object, key) && key != "constructor") result.push(key);
882
+ return result;
714
883
  }
715
884
  /**
716
- * Checks if `value` is classified as a `Symbol` primitive or object.
885
+ * The base implementation of `_.matches` which doesn't clone `source`.
717
886
  *
718
- * @static
719
- * @memberOf _
720
- * @since 4.0.0
721
- * @category Lang
722
- * @param {*} value The value to check.
723
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
724
- * @example
887
+ * @private
888
+ * @param {Object} source The object of property values to match.
889
+ * @returns {Function} Returns the new spec function.
890
+ */
891
+ function baseMatches(source) {
892
+ var matchData = getMatchData(source);
893
+ if (matchData.length == 1 && matchData[0][2]) return matchesStrictComparable(matchData[0][0], matchData[0][1]);
894
+ return function(object) {
895
+ return object === source || baseIsMatch(object, source, matchData);
896
+ };
897
+ }
898
+ /**
899
+ * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
725
900
  *
726
- * _.isSymbol(Symbol.iterator);
727
- * // => true
901
+ * @private
902
+ * @param {string} path The path of the property to get.
903
+ * @param {*} srcValue The value to match.
904
+ * @returns {Function} Returns the new spec function.
905
+ */
906
+ function baseMatchesProperty(path, srcValue) {
907
+ if (isKey$1(path) && isStrictComparable(srcValue)) return matchesStrictComparable(toKey$1(path), srcValue);
908
+ return function(object) {
909
+ var objValue = get$2(object, path);
910
+ return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, void 0, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG);
911
+ };
912
+ }
913
+ /**
914
+ * A specialized version of `baseProperty` which supports deep paths.
728
915
  *
729
- * _.isSymbol('abc');
730
- * // => false
916
+ * @private
917
+ * @param {Array|string} path The path of the property to get.
918
+ * @returns {Function} Returns the new accessor function.
731
919
  */
732
- function isSymbol$1(value) {
733
- return typeof value == "symbol" || isObjectLike$1(value) && objectToString$1.call(value) == symbolTag$1;
920
+ function basePropertyDeep(path) {
921
+ return function(object) {
922
+ return baseGet$1(object, path);
923
+ };
734
924
  }
735
925
  /**
736
- * Converts `value` to a string. An empty string is returned for `null`
737
- * and `undefined` values. The sign of `-0` is preserved.
926
+ * The base implementation of `_.toString` which doesn't convert nullish
927
+ * values to empty strings.
738
928
  *
739
- * @static
740
- * @memberOf _
741
- * @since 4.0.0
742
- * @category Lang
929
+ * @private
743
930
  * @param {*} value The value to process.
744
931
  * @returns {string} Returns the string.
745
- * @example
746
- *
747
- * _.toString(null);
748
- * // => ''
749
- *
750
- * _.toString(-0);
751
- * // => '-0'
752
- *
753
- * _.toString([1, 2, 3]);
754
- * // => '1,2,3'
755
932
  */
756
- function toString$1(value) {
757
- return value == null ? "" : baseToString$1(value);
933
+ function baseToString$1(value) {
934
+ if (typeof value == "string") return value;
935
+ if (isSymbol$1(value)) return symbolToString$1 ? symbolToString$1.call(value) : "";
936
+ var result = value + "";
937
+ return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
758
938
  }
759
939
  /**
760
- * Gets the value at `path` of `object`. If the resolved value is
761
- * `undefined`, the `defaultValue` is returned in its place.
940
+ * The base implementation of `_.uniqBy` without support for iteratee shorthands.
762
941
  *
763
- * @static
764
- * @memberOf _
765
- * @since 3.7.0
766
- * @category Object
767
- * @param {Object} object The object to query.
768
- * @param {Array|string} path The path of the property to get.
769
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
770
- * @returns {*} Returns the resolved value.
771
- * @example
772
- *
773
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
774
- *
775
- * _.get(object, 'a[0].b.c');
776
- * // => 3
777
- *
778
- * _.get(object, ['a', '0', 'b', 'c']);
779
- * // => 3
780
- *
781
- * _.get(object, 'a.b.c', 'default');
782
- * // => 'default'
942
+ * @private
943
+ * @param {Array} array The array to inspect.
944
+ * @param {Function} [iteratee] The iteratee invoked per element.
945
+ * @param {Function} [comparator] The comparator invoked per element.
946
+ * @returns {Array} Returns the new duplicate free array.
783
947
  */
784
- function get$2(object, path, defaultValue) {
785
- var result = object == null ? void 0 : baseGet$1(object, path);
786
- return result === void 0 ? defaultValue : result;
787
- }
788
- module.exports = get$2;
789
- } });
790
-
791
- //#endregion
792
- //#region src/functions/BaseFunctionBuilder.ts
793
- var import_lodash$2 = require_chunk.__toESM(require_lodash$1(), 1);
794
- const DEFAULT_LOGGER$2 = new __geekmidas_logger_console.ConsoleLogger();
795
- var BaseFunctionBuilder = class BaseFunctionBuilder {
796
- inputSchema;
797
- outputSchema;
798
- _timeout;
799
- _services = [];
800
- _logger = DEFAULT_LOGGER$2;
801
- _events = [];
802
- _publisher;
803
- _auditorStorage;
804
- _databaseService;
805
- static isStandardSchemaV1(s) {
806
- const schema = s["~standard"];
807
- return schema && typeof schema.validate === "function";
808
- }
809
- static async parseComposableStandardSchema(data, schema) {
810
- if (BaseFunctionBuilder.isStandardSchemaV1(schema)) {
811
- const validated = await schema["~standard"].validate(data);
812
- if (validated.issues) throw validated.issues;
813
- return validated.value;
814
- }
815
- const result = {};
816
- for (const key in schema) {
817
- const item = schema[key];
818
- if (BaseFunctionBuilder.isStandardSchemaV1(item)) {
819
- const value = (0, import_lodash$2.default)(data, key);
820
- const validated = await item["~standard"].validate(value);
821
- if (validated.issues) throw validated.issues;
822
- result[key] = validated.value;
948
+ function baseUniq(array, iteratee, comparator) {
949
+ var index = -1, includes = arrayIncludes, length = array.length, isCommon = true, result = [], seen = result;
950
+ if (comparator) {
951
+ isCommon = false;
952
+ includes = arrayIncludesWith;
953
+ } else if (length >= LARGE_ARRAY_SIZE) {
954
+ var set = iteratee ? null : createSet(array);
955
+ if (set) return setToArray(set);
956
+ isCommon = false;
957
+ includes = cacheHas;
958
+ seen = new SetCache();
959
+ } else seen = iteratee ? [] : result;
960
+ outer: while (++index < length) {
961
+ var value = array[index], computed = iteratee ? iteratee(value) : value;
962
+ value = comparator || value !== 0 ? value : 0;
963
+ if (isCommon && computed === computed) {
964
+ var seenIndex = seen.length;
965
+ while (seenIndex--) if (seen[seenIndex] === computed) continue outer;
966
+ if (iteratee) seen.push(computed);
967
+ result.push(value);
968
+ } else if (!includes(seen, computed, comparator)) {
969
+ if (seen !== result) seen.push(computed);
970
+ result.push(value);
823
971
  }
824
972
  }
825
973
  return result;
826
974
  }
827
- constructor(type = require_Construct.ConstructType.Function) {
828
- this.type = type;
829
- }
830
- timeout(timeout) {
831
- this._timeout = timeout;
832
- return this;
833
- }
834
- event(event) {
835
- this._events.push(event);
836
- return this;
837
- }
838
- publisher(publisher) {
839
- this._publisher = publisher;
840
- return this;
841
- }
842
- auditor(storage) {
843
- this._auditorStorage = storage;
844
- return this;
845
- }
846
- /**
847
- * Set the database service for this function.
848
- * The database will be available in the handler context as `db`.
849
- */
850
- database(service) {
851
- this._databaseService = service;
852
- return this;
853
- }
854
- };
855
-
856
- //#endregion
857
- //#region ../../node_modules/.pnpm/lodash.uniqby@4.7.0/node_modules/lodash.uniqby/index.js
858
- var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash.uniqby@4.7.0/node_modules/lodash.uniqby/index.js"(exports, module) {
859
- /**
860
- * lodash (Custom Build) <https://lodash.com/>
861
- * Build: `lodash modularize exports="npm" -o ./`
862
- * Copyright jQuery Foundation and other contributors <https://jquery.org/>
863
- * Released under MIT license <https://lodash.com/license>
864
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
865
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
866
- */
867
- /** Used as the size to enable large array optimizations. */
868
- var LARGE_ARRAY_SIZE = 200;
869
- /** Used as the `TypeError` message for "Functions" methods. */
870
- var FUNC_ERROR_TEXT = "Expected a function";
871
- /** Used to stand-in for `undefined` hash values. */
872
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
873
- /** Used to compose bitmasks for comparison styles. */
874
- var UNORDERED_COMPARE_FLAG = 1, PARTIAL_COMPARE_FLAG = 2;
875
- /** Used as references for various `Number` constants. */
876
- var INFINITY = Infinity, MAX_SAFE_INTEGER = 9007199254740991;
877
- /** `Object#toString` result references. */
878
- var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", promiseTag = "[object Promise]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
879
- var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
880
- /** Used to match property names within property paths. */
881
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, reLeadingDot = /^\./, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
882
- /**
883
- * Used to match `RegExp`
884
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
885
- */
886
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
887
- /** Used to match backslashes in property paths. */
888
- var reEscapeChar = /\\(\\)?/g;
889
- /** Used to detect host constructors (Safari). */
890
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
891
- /** Used to detect unsigned integer values. */
892
- var reIsUint = /^(?:0|[1-9]\d*)$/;
893
- /** Used to identify `toStringTag` values of typed arrays. */
894
- var typedArrayTags = {};
895
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
896
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
897
- /** Detect free variable `global` from Node.js. */
898
- var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
899
- /** Detect free variable `self`. */
900
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
901
- /** Used as a reference to the global object. */
902
- var root = freeGlobal || freeSelf || Function("return this")();
903
- /** Detect free variable `exports`. */
904
- var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
905
- /** Detect free variable `module`. */
906
- var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
907
- /** Detect the popular CommonJS extension `module.exports`. */
908
- var moduleExports = freeModule && freeModule.exports === freeExports;
909
- /** Detect free variable `process` from Node.js. */
910
- var freeProcess = moduleExports && freeGlobal.process;
911
- /** Used to access faster Node.js helpers. */
912
- var nodeUtil = function() {
913
- try {
914
- return freeProcess && freeProcess.binding("util");
915
- } catch (e) {}
916
- }();
917
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
918
- /**
919
- * A specialized version of `_.includes` for arrays without support for
920
- * specifying an index to search from.
921
- *
922
- * @private
923
- * @param {Array} [array] The array to inspect.
924
- * @param {*} target The value to search for.
925
- * @returns {boolean} Returns `true` if `target` is found, else `false`.
926
- */
927
- function arrayIncludes(array, value) {
928
- var length = array ? array.length : 0;
929
- return !!length && baseIndexOf(array, value, 0) > -1;
930
- }
931
- /**
932
- * This function is like `arrayIncludes` except that it accepts a comparator.
933
- *
934
- * @private
935
- * @param {Array} [array] The array to inspect.
936
- * @param {*} target The value to search for.
937
- * @param {Function} comparator The comparator invoked per element.
938
- * @returns {boolean} Returns `true` if `target` is found, else `false`.
939
- */
940
- function arrayIncludesWith(array, value, comparator) {
941
- var index = -1, length = array ? array.length : 0;
942
- while (++index < length) if (comparator(value, array[index])) return true;
943
- return false;
944
- }
945
975
  /**
946
- * A specialized version of `_.some` for arrays without support for iteratee
947
- * shorthands.
976
+ * Casts `value` to a path array if it's not one.
948
977
  *
949
978
  * @private
950
- * @param {Array} [array] The array to iterate over.
951
- * @param {Function} predicate The function invoked per iteration.
952
- * @returns {boolean} Returns `true` if any element passes the predicate check,
953
- * else `false`.
979
+ * @param {*} value The value to inspect.
980
+ * @returns {Array} Returns the cast property path array.
954
981
  */
955
- function arraySome(array, predicate) {
956
- var index = -1, length = array ? array.length : 0;
957
- while (++index < length) if (predicate(array[index], index, array)) return true;
958
- return false;
982
+ function castPath$1(value) {
983
+ return isArray$1(value) ? value : stringToPath$1(value);
959
984
  }
960
985
  /**
961
- * The base implementation of `_.findIndex` and `_.findLastIndex` without
962
- * support for iteratee shorthands.
986
+ * Creates a set object of `values`.
963
987
  *
964
988
  * @private
965
- * @param {Array} array The array to inspect.
966
- * @param {Function} predicate The function invoked per iteration.
967
- * @param {number} fromIndex The index to search from.
968
- * @param {boolean} [fromRight] Specify iterating from right to left.
969
- * @returns {number} Returns the index of the matched value, else `-1`.
989
+ * @param {Array} values The values to add to the set.
990
+ * @returns {Object} Returns the new set.
970
991
  */
971
- function baseFindIndex(array, predicate, fromIndex, fromRight) {
972
- var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
973
- while (fromRight ? index-- : ++index < length) if (predicate(array[index], index, array)) return index;
974
- return -1;
975
- }
992
+ var createSet = !(Set && 1 / setToArray(new Set([, -0]))[1] == INFINITY$1) ? noop : function(values) {
993
+ return new Set(values);
994
+ };
976
995
  /**
977
- * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
996
+ * A specialized version of `baseIsEqualDeep` for arrays with support for
997
+ * partial deep comparisons.
978
998
  *
979
999
  * @private
980
- * @param {Array} array The array to inspect.
981
- * @param {*} value The value to search for.
982
- * @param {number} fromIndex The index to search from.
983
- * @returns {number} Returns the index of the matched value, else `-1`.
1000
+ * @param {Array} array The array to compare.
1001
+ * @param {Array} other The other array to compare.
1002
+ * @param {Function} equalFunc The function to determine equivalents of values.
1003
+ * @param {Function} customizer The function to customize comparisons.
1004
+ * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
1005
+ * for more details.
1006
+ * @param {Object} stack Tracks traversed `array` and `other` objects.
1007
+ * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
984
1008
  */
985
- function baseIndexOf(array, value, fromIndex) {
986
- if (value !== value) return baseFindIndex(array, baseIsNaN, fromIndex);
987
- var index = fromIndex - 1, length = array.length;
988
- while (++index < length) if (array[index] === value) return index;
989
- return -1;
1009
+ function equalArrays(array, other, equalFunc, customizer, bitmask, stack) {
1010
+ var isPartial = bitmask & PARTIAL_COMPARE_FLAG, arrLength = array.length, othLength = other.length;
1011
+ if (arrLength != othLength && !(isPartial && othLength > arrLength)) return false;
1012
+ var stacked = stack.get(array);
1013
+ if (stacked && stack.get(other)) return stacked == other;
1014
+ var index = -1, result = true, seen = bitmask & UNORDERED_COMPARE_FLAG ? new SetCache() : void 0;
1015
+ stack.set(array, other);
1016
+ stack.set(other, array);
1017
+ while (++index < arrLength) {
1018
+ var arrValue = array[index], othValue = other[index];
1019
+ if (customizer) var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
1020
+ if (compared !== void 0) {
1021
+ if (compared) continue;
1022
+ result = false;
1023
+ break;
1024
+ }
1025
+ if (seen) {
1026
+ if (!arraySome(other, function(othValue$1, othIndex) {
1027
+ if (!seen.has(othIndex) && (arrValue === othValue$1 || equalFunc(arrValue, othValue$1, customizer, bitmask, stack))) return seen.add(othIndex);
1028
+ })) {
1029
+ result = false;
1030
+ break;
1031
+ }
1032
+ } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) {
1033
+ result = false;
1034
+ break;
1035
+ }
1036
+ }
1037
+ stack["delete"](array);
1038
+ stack["delete"](other);
1039
+ return result;
990
1040
  }
991
1041
  /**
992
- * The base implementation of `_.isNaN` without support for number objects.
1042
+ * A specialized version of `baseIsEqualDeep` for comparing objects of
1043
+ * the same `toStringTag`.
993
1044
  *
994
- * @private
995
- * @param {*} value The value to check.
996
- * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
997
- */
998
- function baseIsNaN(value) {
999
- return value !== value;
1000
- }
1001
- /**
1002
- * The base implementation of `_.property` without support for deep paths.
1045
+ * **Note:** This function only supports comparing values with tags of
1046
+ * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
1003
1047
  *
1004
1048
  * @private
1005
- * @param {string} key The key of the property to get.
1006
- * @returns {Function} Returns the new accessor function.
1049
+ * @param {Object} object The object to compare.
1050
+ * @param {Object} other The other object to compare.
1051
+ * @param {string} tag The `toStringTag` of the objects to compare.
1052
+ * @param {Function} equalFunc The function to determine equivalents of values.
1053
+ * @param {Function} customizer The function to customize comparisons.
1054
+ * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
1055
+ * for more details.
1056
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
1057
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
1007
1058
  */
1008
- function baseProperty(key) {
1009
- return function(object) {
1010
- return object == null ? void 0 : object[key];
1011
- };
1059
+ function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) {
1060
+ switch (tag) {
1061
+ case dataViewTag:
1062
+ if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) return false;
1063
+ object = object.buffer;
1064
+ other = other.buffer;
1065
+ case arrayBufferTag:
1066
+ if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) return false;
1067
+ return true;
1068
+ case boolTag:
1069
+ case dateTag:
1070
+ case numberTag: return eq$1(+object, +other);
1071
+ case errorTag: return object.name == other.name && object.message == other.message;
1072
+ case regexpTag:
1073
+ case stringTag: return object == other + "";
1074
+ case mapTag: var convert = mapToArray;
1075
+ case setTag:
1076
+ var isPartial = bitmask & PARTIAL_COMPARE_FLAG;
1077
+ convert || (convert = setToArray);
1078
+ if (object.size != other.size && !isPartial) return false;
1079
+ var stacked = stack.get(object);
1080
+ if (stacked) return stacked == other;
1081
+ bitmask |= UNORDERED_COMPARE_FLAG;
1082
+ stack.set(object, other);
1083
+ var result = equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask, stack);
1084
+ stack["delete"](object);
1085
+ return result;
1086
+ case symbolTag$1: if (symbolValueOf) return symbolValueOf.call(object) == symbolValueOf.call(other);
1087
+ }
1088
+ return false;
1012
1089
  }
1013
1090
  /**
1014
- * The base implementation of `_.times` without support for iteratee shorthands
1015
- * or max array length checks.
1091
+ * A specialized version of `baseIsEqualDeep` for objects with support for
1092
+ * partial deep comparisons.
1016
1093
  *
1017
1094
  * @private
1018
- * @param {number} n The number of times to invoke `iteratee`.
1019
- * @param {Function} iteratee The function invoked per iteration.
1020
- * @returns {Array} Returns the array of results.
1095
+ * @param {Object} object The object to compare.
1096
+ * @param {Object} other The other object to compare.
1097
+ * @param {Function} equalFunc The function to determine equivalents of values.
1098
+ * @param {Function} customizer The function to customize comparisons.
1099
+ * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
1100
+ * for more details.
1101
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
1102
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
1021
1103
  */
1022
- function baseTimes(n, iteratee) {
1023
- var index = -1, result = Array(n);
1024
- while (++index < n) result[index] = iteratee(index);
1104
+ function equalObjects(object, other, equalFunc, customizer, bitmask, stack) {
1105
+ var isPartial = bitmask & PARTIAL_COMPARE_FLAG, objProps = keys(object), objLength = objProps.length, othProps = keys(other), othLength = othProps.length;
1106
+ if (objLength != othLength && !isPartial) return false;
1107
+ var index = objLength;
1108
+ while (index--) {
1109
+ var key = objProps[index];
1110
+ if (!(isPartial ? key in other : hasOwnProperty$1.call(other, key))) return false;
1111
+ }
1112
+ var stacked = stack.get(object);
1113
+ if (stacked && stack.get(other)) return stacked == other;
1114
+ var result = true;
1115
+ stack.set(object, other);
1116
+ stack.set(other, object);
1117
+ var skipCtor = isPartial;
1118
+ while (++index < objLength) {
1119
+ key = objProps[index];
1120
+ var objValue = object[key], othValue = other[key];
1121
+ if (customizer) var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
1122
+ if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, customizer, bitmask, stack) : compared)) {
1123
+ result = false;
1124
+ break;
1125
+ }
1126
+ skipCtor || (skipCtor = key == "constructor");
1127
+ }
1128
+ if (result && !skipCtor) {
1129
+ var objCtor = object.constructor, othCtor = other.constructor;
1130
+ if (objCtor != othCtor && "constructor" in object && "constructor" in other && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) result = false;
1131
+ }
1132
+ stack["delete"](object);
1133
+ stack["delete"](other);
1025
1134
  return result;
1026
1135
  }
1027
1136
  /**
1028
- * The base implementation of `_.unary` without support for storing metadata.
1137
+ * Gets the data for `map`.
1029
1138
  *
1030
1139
  * @private
1031
- * @param {Function} func The function to cap arguments for.
1032
- * @returns {Function} Returns the new capped function.
1140
+ * @param {Object} map The map to query.
1141
+ * @param {string} key The reference key.
1142
+ * @returns {*} Returns the map data.
1033
1143
  */
1034
- function baseUnary(func) {
1035
- return function(value) {
1036
- return func(value);
1037
- };
1144
+ function getMapData$1(map, key) {
1145
+ var data = map.__data__;
1146
+ return isKeyable$1(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
1038
1147
  }
1039
1148
  /**
1040
- * Checks if a cache value for `key` exists.
1149
+ * Gets the property names, values, and compare flags of `object`.
1041
1150
  *
1042
1151
  * @private
1043
- * @param {Object} cache The cache to query.
1044
- * @param {string} key The key of the entry to check.
1045
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1152
+ * @param {Object} object The object to query.
1153
+ * @returns {Array} Returns the match data of `object`.
1046
1154
  */
1047
- function cacheHas(cache, key) {
1048
- return cache.has(key);
1155
+ function getMatchData(object) {
1156
+ var result = keys(object), length = result.length;
1157
+ while (length--) {
1158
+ var key = result[length], value = object[key];
1159
+ result[length] = [
1160
+ key,
1161
+ value,
1162
+ isStrictComparable(value)
1163
+ ];
1164
+ }
1165
+ return result;
1049
1166
  }
1050
1167
  /**
1051
- * Gets the value at `key` of `object`.
1168
+ * Gets the native function at `key` of `object`.
1052
1169
  *
1053
1170
  * @private
1054
- * @param {Object} [object] The object to query.
1055
- * @param {string} key The key of the property to get.
1056
- * @returns {*} Returns the property value.
1171
+ * @param {Object} object The object to query.
1172
+ * @param {string} key The key of the method to get.
1173
+ * @returns {*} Returns the function if it's native, else `undefined`.
1057
1174
  */
1058
- function getValue(object, key) {
1059
- return object == null ? void 0 : object[key];
1175
+ function getNative$1(object, key) {
1176
+ var value = getValue$1(object, key);
1177
+ return baseIsNative$1(value) ? value : void 0;
1060
1178
  }
1061
1179
  /**
1062
- * Checks if `value` is a host object in IE < 9.
1180
+ * Gets the `toStringTag` of `value`.
1063
1181
  *
1064
1182
  * @private
1065
- * @param {*} value The value to check.
1066
- * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
1183
+ * @param {*} value The value to query.
1184
+ * @returns {string} Returns the `toStringTag`.
1067
1185
  */
1068
- function isHostObject(value) {
1069
- var result = false;
1070
- if (value != null && typeof value.toString != "function") try {
1071
- result = !!(value + "");
1072
- } catch (e) {}
1186
+ var getTag = baseGetTag;
1187
+ if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map$1 && getTag(new Map$1()) != mapTag || Promise$1 && getTag(Promise$1.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) getTag = function(value) {
1188
+ var result = objectToString$1.call(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource$1(Ctor) : void 0;
1189
+ if (ctorString) switch (ctorString) {
1190
+ case dataViewCtorString: return dataViewTag;
1191
+ case mapCtorString: return mapTag;
1192
+ case promiseCtorString: return promiseTag;
1193
+ case setCtorString: return setTag;
1194
+ case weakMapCtorString: return weakMapTag;
1195
+ }
1073
1196
  return result;
1074
- }
1197
+ };
1075
1198
  /**
1076
- * Converts `map` to its key-value pairs.
1199
+ * Checks if `path` exists on `object`.
1077
1200
  *
1078
1201
  * @private
1079
- * @param {Object} map The map to convert.
1080
- * @returns {Array} Returns the key-value pairs.
1202
+ * @param {Object} object The object to query.
1203
+ * @param {Array|string} path The path to check.
1204
+ * @param {Function} hasFunc The function to check properties.
1205
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
1081
1206
  */
1082
- function mapToArray(map) {
1083
- var index = -1, result = Array(map.size);
1084
- map.forEach(function(value, key) {
1085
- result[++index] = [key, value];
1086
- });
1087
- return result;
1207
+ function hasPath(object, path, hasFunc) {
1208
+ path = isKey$1(path, object) ? [path] : castPath$1(path);
1209
+ var result, index = -1, length = path.length;
1210
+ while (++index < length) {
1211
+ var key = toKey$1(path[index]);
1212
+ if (!(result = object != null && hasFunc(object, key))) break;
1213
+ object = object[key];
1214
+ }
1215
+ if (result) return result;
1216
+ var length = object ? object.length : 0;
1217
+ return !!length && isLength(length) && isIndex(key, length) && (isArray$1(object) || isArguments(object));
1088
1218
  }
1089
1219
  /**
1090
- * Creates a unary function that invokes `func` with its argument transformed.
1220
+ * Checks if `value` is a valid array-like index.
1091
1221
  *
1092
1222
  * @private
1093
- * @param {Function} func The function to wrap.
1094
- * @param {Function} transform The argument transform.
1095
- * @returns {Function} Returns the new function.
1223
+ * @param {*} value The value to check.
1224
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
1225
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
1096
1226
  */
1097
- function overArg(func, transform) {
1098
- return function(arg) {
1099
- return func(transform(arg));
1100
- };
1227
+ function isIndex(value, length) {
1228
+ length = length == null ? MAX_SAFE_INTEGER : length;
1229
+ return !!length && (typeof value == "number" || reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
1101
1230
  }
1102
1231
  /**
1103
- * Converts `set` to an array of its values.
1232
+ * Checks if `value` is a property name and not a property path.
1104
1233
  *
1105
1234
  * @private
1106
- * @param {Object} set The set to convert.
1107
- * @returns {Array} Returns the values.
1235
+ * @param {*} value The value to check.
1236
+ * @param {Object} [object] The object to query keys on.
1237
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
1108
1238
  */
1109
- function setToArray(set) {
1110
- var index = -1, result = Array(set.size);
1111
- set.forEach(function(value) {
1112
- result[++index] = value;
1113
- });
1114
- return result;
1239
+ function isKey$1(value, object) {
1240
+ if (isArray$1(value)) return false;
1241
+ var type = typeof value;
1242
+ if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol$1(value)) return true;
1243
+ return reIsPlainProp$1.test(value) || !reIsDeepProp$1.test(value) || object != null && value in Object(object);
1115
1244
  }
1116
- /** Used for built-in method references. */
1117
- var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto = Object.prototype;
1118
- /** Used to detect overreaching core-js shims. */
1119
- var coreJsData = root["__core-js_shared__"];
1120
- /** Used to detect methods masquerading as native. */
1121
- var maskSrcKey = function() {
1122
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
1123
- return uid ? "Symbol(src)_1." + uid : "";
1124
- }();
1125
- /** Used to resolve the decompiled source of functions. */
1126
- var funcToString = funcProto.toString;
1127
- /** Used to check objects for own properties. */
1128
- var hasOwnProperty = objectProto.hasOwnProperty;
1129
- /**
1130
- * Used to resolve the
1131
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1132
- * of values.
1133
- */
1134
- var objectToString = objectProto.toString;
1135
- /** Used to detect if a method is native. */
1136
- var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
1137
- /** Built-in value references. */
1138
- var Symbol = root.Symbol, Uint8Array = root.Uint8Array, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice;
1139
- var nativeKeys = overArg(Object.keys, Object);
1140
- var DataView = getNative(root, "DataView"), Map = getNative(root, "Map"), Promise$1 = getNative(root, "Promise"), Set = getNative(root, "Set"), WeakMap = getNative(root, "WeakMap"), nativeCreate = getNative(Object, "create");
1141
- /** Used to detect maps, sets, and weakmaps. */
1142
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
1143
- /** Used to convert symbols to primitives and strings. */
1144
- var symbolProto = Symbol ? Symbol.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
1145
1245
  /**
1146
- * Creates a hash object.
1246
+ * Checks if `value` is suitable for use as unique object key.
1147
1247
  *
1148
1248
  * @private
1149
- * @constructor
1150
- * @param {Array} [entries] The key-value pairs to cache.
1249
+ * @param {*} value The value to check.
1250
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1151
1251
  */
1152
- function Hash(entries) {
1153
- var index = -1, length = entries ? entries.length : 0;
1154
- this.clear();
1155
- while (++index < length) {
1156
- var entry = entries[index];
1157
- this.set(entry[0], entry[1]);
1158
- }
1252
+ function isKeyable$1(value) {
1253
+ var type = typeof value;
1254
+ return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
1159
1255
  }
1160
1256
  /**
1161
- * Removes all key-value entries from the hash.
1257
+ * Checks if `func` has its source masked.
1162
1258
  *
1163
1259
  * @private
1164
- * @name clear
1165
- * @memberOf Hash
1260
+ * @param {Function} func The function to check.
1261
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
1166
1262
  */
1167
- function hashClear() {
1168
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
1263
+ function isMasked$1(func) {
1264
+ return !!maskSrcKey$1 && maskSrcKey$1 in func;
1169
1265
  }
1170
1266
  /**
1171
- * Removes `key` and its value from the hash.
1267
+ * Checks if `value` is likely a prototype object.
1172
1268
  *
1173
1269
  * @private
1174
- * @name delete
1175
- * @memberOf Hash
1176
- * @param {Object} hash The hash to modify.
1177
- * @param {string} key The key of the value to remove.
1178
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1270
+ * @param {*} value The value to check.
1271
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
1179
1272
  */
1180
- function hashDelete(key) {
1181
- return this.has(key) && delete this.__data__[key];
1273
+ function isPrototype(value) {
1274
+ var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$1;
1275
+ return value === proto;
1182
1276
  }
1183
1277
  /**
1184
- * Gets the hash value for `key`.
1278
+ * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
1185
1279
  *
1186
1280
  * @private
1187
- * @name get
1188
- * @memberOf Hash
1189
- * @param {string} key The key of the value to get.
1190
- * @returns {*} Returns the entry value.
1281
+ * @param {*} value The value to check.
1282
+ * @returns {boolean} Returns `true` if `value` if suitable for strict
1283
+ * equality comparisons, else `false`.
1191
1284
  */
1192
- function hashGet(key) {
1193
- var data = this.__data__;
1194
- if (nativeCreate) {
1195
- var result = data[key];
1196
- return result === HASH_UNDEFINED ? void 0 : result;
1197
- }
1198
- return hasOwnProperty.call(data, key) ? data[key] : void 0;
1285
+ function isStrictComparable(value) {
1286
+ return value === value && !isObject$1(value);
1199
1287
  }
1200
1288
  /**
1201
- * Checks if a hash value for `key` exists.
1289
+ * A specialized version of `matchesProperty` for source values suitable
1290
+ * for strict equality comparisons, i.e. `===`.
1202
1291
  *
1203
1292
  * @private
1204
- * @name has
1205
- * @memberOf Hash
1206
- * @param {string} key The key of the entry to check.
1207
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1293
+ * @param {string} key The key of the property to get.
1294
+ * @param {*} srcValue The value to match.
1295
+ * @returns {Function} Returns the new spec function.
1208
1296
  */
1209
- function hashHas(key) {
1210
- var data = this.__data__;
1211
- return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
1297
+ function matchesStrictComparable(key, srcValue) {
1298
+ return function(object) {
1299
+ if (object == null) return false;
1300
+ return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
1301
+ };
1212
1302
  }
1213
1303
  /**
1214
- * Sets the hash `key` to `value`.
1304
+ * Converts `string` to a property path array.
1215
1305
  *
1216
1306
  * @private
1217
- * @name set
1218
- * @memberOf Hash
1219
- * @param {string} key The key of the value to set.
1220
- * @param {*} value The value to set.
1221
- * @returns {Object} Returns the hash instance.
1307
+ * @param {string} string The string to convert.
1308
+ * @returns {Array} Returns the property path array.
1222
1309
  */
1223
- function hashSet(key, value) {
1224
- var data = this.__data__;
1225
- data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
1226
- return this;
1227
- }
1228
- Hash.prototype.clear = hashClear;
1229
- Hash.prototype["delete"] = hashDelete;
1230
- Hash.prototype.get = hashGet;
1231
- Hash.prototype.has = hashHas;
1232
- Hash.prototype.set = hashSet;
1310
+ var stringToPath$1 = memoize$1(function(string) {
1311
+ string = toString$1(string);
1312
+ var result = [];
1313
+ if (reLeadingDot$1.test(string)) result.push("");
1314
+ string.replace(rePropName$1, function(match, number, quote, string$1) {
1315
+ result.push(quote ? string$1.replace(reEscapeChar$1, "$1") : number || match);
1316
+ });
1317
+ return result;
1318
+ });
1233
1319
  /**
1234
- * Creates an list cache object.
1320
+ * Converts `value` to a string key if it's not a string or symbol.
1235
1321
  *
1236
1322
  * @private
1237
- * @constructor
1238
- * @param {Array} [entries] The key-value pairs to cache.
1323
+ * @param {*} value The value to inspect.
1324
+ * @returns {string|symbol} Returns the key.
1239
1325
  */
1240
- function ListCache(entries) {
1241
- var index = -1, length = entries ? entries.length : 0;
1242
- this.clear();
1243
- while (++index < length) {
1244
- var entry = entries[index];
1245
- this.set(entry[0], entry[1]);
1246
- }
1326
+ function toKey$1(value) {
1327
+ if (typeof value == "string" || isSymbol$1(value)) return value;
1328
+ var result = value + "";
1329
+ return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
1247
1330
  }
1248
1331
  /**
1249
- * Removes all key-value entries from the list cache.
1332
+ * Converts `func` to its source code.
1250
1333
  *
1251
1334
  * @private
1252
- * @name clear
1253
- * @memberOf ListCache
1335
+ * @param {Function} func The function to process.
1336
+ * @returns {string} Returns the source code.
1254
1337
  */
1255
- function listCacheClear() {
1256
- this.__data__ = [];
1338
+ function toSource$1(func) {
1339
+ if (func != null) {
1340
+ try {
1341
+ return funcToString$1.call(func);
1342
+ } catch (e) {}
1343
+ try {
1344
+ return func + "";
1345
+ } catch (e) {}
1346
+ }
1347
+ return "";
1257
1348
  }
1258
1349
  /**
1259
- * Removes `key` and its value from the list cache.
1350
+ * This method is like `_.uniq` except that it accepts `iteratee` which is
1351
+ * invoked for each element in `array` to generate the criterion by which
1352
+ * uniqueness is computed. The iteratee is invoked with one argument: (value).
1260
1353
  *
1261
- * @private
1262
- * @name delete
1263
- * @memberOf ListCache
1264
- * @param {string} key The key of the value to remove.
1265
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1354
+ * @static
1355
+ * @memberOf _
1356
+ * @since 4.0.0
1357
+ * @category Array
1358
+ * @param {Array} array The array to inspect.
1359
+ * @param {Function} [iteratee=_.identity]
1360
+ * The iteratee invoked per element.
1361
+ * @returns {Array} Returns the new duplicate free array.
1362
+ * @example
1363
+ *
1364
+ * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
1365
+ * // => [2.1, 1.2]
1366
+ *
1367
+ * // The `_.property` iteratee shorthand.
1368
+ * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
1369
+ * // => [{ 'x': 1 }, { 'x': 2 }]
1266
1370
  */
1267
- function listCacheDelete(key) {
1268
- var data = this.__data__, index = assocIndexOf(data, key);
1269
- if (index < 0) return false;
1270
- var lastIndex = data.length - 1;
1271
- if (index == lastIndex) data.pop();
1272
- else splice.call(data, index, 1);
1273
- return true;
1371
+ function uniqBy$2(array, iteratee) {
1372
+ return array && array.length ? baseUniq(array, baseIteratee(iteratee, 2)) : [];
1274
1373
  }
1275
1374
  /**
1276
- * Gets the list cache value for `key`.
1375
+ * Creates a function that memoizes the result of `func`. If `resolver` is
1376
+ * provided, it determines the cache key for storing the result based on the
1377
+ * arguments provided to the memoized function. By default, the first argument
1378
+ * provided to the memoized function is used as the map cache key. The `func`
1379
+ * is invoked with the `this` binding of the memoized function.
1277
1380
  *
1278
- * @private
1279
- * @name get
1280
- * @memberOf ListCache
1281
- * @param {string} key The key of the value to get.
1282
- * @returns {*} Returns the entry value.
1381
+ * **Note:** The cache is exposed as the `cache` property on the memoized
1382
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
1383
+ * constructor with one whose instances implement the
1384
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
1385
+ * method interface of `delete`, `get`, `has`, and `set`.
1386
+ *
1387
+ * @static
1388
+ * @memberOf _
1389
+ * @since 0.1.0
1390
+ * @category Function
1391
+ * @param {Function} func The function to have its output memoized.
1392
+ * @param {Function} [resolver] The function to resolve the cache key.
1393
+ * @returns {Function} Returns the new memoized function.
1394
+ * @example
1395
+ *
1396
+ * var object = { 'a': 1, 'b': 2 };
1397
+ * var other = { 'c': 3, 'd': 4 };
1398
+ *
1399
+ * var values = _.memoize(_.values);
1400
+ * values(object);
1401
+ * // => [1, 2]
1402
+ *
1403
+ * values(other);
1404
+ * // => [3, 4]
1405
+ *
1406
+ * object.a = 2;
1407
+ * values(object);
1408
+ * // => [1, 2]
1409
+ *
1410
+ * // Modify the result cache.
1411
+ * values.cache.set(object, ['a', 'b']);
1412
+ * values(object);
1413
+ * // => ['a', 'b']
1414
+ *
1415
+ * // Replace `_.memoize.Cache`.
1416
+ * _.memoize.Cache = WeakMap;
1283
1417
  */
1284
- function listCacheGet(key) {
1285
- var data = this.__data__, index = assocIndexOf(data, key);
1286
- return index < 0 ? void 0 : data[index][1];
1418
+ function memoize$1(func, resolver) {
1419
+ if (typeof func != "function" || resolver && typeof resolver != "function") throw new TypeError(FUNC_ERROR_TEXT$1);
1420
+ var memoized = function() {
1421
+ var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
1422
+ if (cache.has(key)) return cache.get(key);
1423
+ var result = func.apply(this, args);
1424
+ memoized.cache = cache.set(key, result);
1425
+ return result;
1426
+ };
1427
+ memoized.cache = new (memoize$1.Cache || MapCache$1)();
1428
+ return memoized;
1287
1429
  }
1430
+ memoize$1.Cache = MapCache$1;
1288
1431
  /**
1289
- * Checks if a list cache value for `key` exists.
1432
+ * Performs a
1433
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1434
+ * comparison between two values to determine if they are equivalent.
1290
1435
  *
1291
- * @private
1292
- * @name has
1293
- * @memberOf ListCache
1294
- * @param {string} key The key of the entry to check.
1295
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1436
+ * @static
1437
+ * @memberOf _
1438
+ * @since 4.0.0
1439
+ * @category Lang
1440
+ * @param {*} value The value to compare.
1441
+ * @param {*} other The other value to compare.
1442
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1443
+ * @example
1444
+ *
1445
+ * var object = { 'a': 1 };
1446
+ * var other = { 'a': 1 };
1447
+ *
1448
+ * _.eq(object, object);
1449
+ * // => true
1450
+ *
1451
+ * _.eq(object, other);
1452
+ * // => false
1453
+ *
1454
+ * _.eq('a', 'a');
1455
+ * // => true
1456
+ *
1457
+ * _.eq('a', Object('a'));
1458
+ * // => false
1459
+ *
1460
+ * _.eq(NaN, NaN);
1461
+ * // => true
1296
1462
  */
1297
- function listCacheHas(key) {
1298
- return assocIndexOf(this.__data__, key) > -1;
1463
+ function eq$1(value, other) {
1464
+ return value === other || value !== value && other !== other;
1299
1465
  }
1300
1466
  /**
1301
- * Sets the list cache `key` to `value`.
1467
+ * Checks if `value` is likely an `arguments` object.
1302
1468
  *
1303
- * @private
1304
- * @name set
1305
- * @memberOf ListCache
1306
- * @param {string} key The key of the value to set.
1307
- * @param {*} value The value to set.
1308
- * @returns {Object} Returns the list cache instance.
1469
+ * @static
1470
+ * @memberOf _
1471
+ * @since 0.1.0
1472
+ * @category Lang
1473
+ * @param {*} value The value to check.
1474
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1475
+ * else `false`.
1476
+ * @example
1477
+ *
1478
+ * _.isArguments(function() { return arguments; }());
1479
+ * // => true
1480
+ *
1481
+ * _.isArguments([1, 2, 3]);
1482
+ * // => false
1309
1483
  */
1310
- function listCacheSet(key, value) {
1311
- var data = this.__data__, index = assocIndexOf(data, key);
1312
- if (index < 0) data.push([key, value]);
1313
- else data[index][1] = value;
1314
- return this;
1484
+ function isArguments(value) {
1485
+ return isArrayLikeObject(value) && hasOwnProperty$1.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString$1.call(value) == argsTag);
1315
1486
  }
1316
- ListCache.prototype.clear = listCacheClear;
1317
- ListCache.prototype["delete"] = listCacheDelete;
1318
- ListCache.prototype.get = listCacheGet;
1319
- ListCache.prototype.has = listCacheHas;
1320
- ListCache.prototype.set = listCacheSet;
1321
1487
  /**
1322
- * Creates a map cache object to store key-value pairs.
1488
+ * Checks if `value` is classified as an `Array` object.
1489
+ *
1490
+ * @static
1491
+ * @memberOf _
1492
+ * @since 0.1.0
1493
+ * @category Lang
1494
+ * @param {*} value The value to check.
1495
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1496
+ * @example
1497
+ *
1498
+ * _.isArray([1, 2, 3]);
1499
+ * // => true
1500
+ *
1501
+ * _.isArray(document.body.children);
1502
+ * // => false
1503
+ *
1504
+ * _.isArray('abc');
1505
+ * // => false
1506
+ *
1507
+ * _.isArray(_.noop);
1508
+ * // => false
1509
+ */
1510
+ var isArray$1 = Array.isArray;
1511
+ /**
1512
+ * Checks if `value` is array-like. A value is considered array-like if it's
1513
+ * not a function and has a `value.length` that's an integer greater than or
1514
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
1323
1515
  *
1324
- * @private
1325
- * @constructor
1326
- * @param {Array} [entries] The key-value pairs to cache.
1516
+ * @static
1517
+ * @memberOf _
1518
+ * @since 4.0.0
1519
+ * @category Lang
1520
+ * @param {*} value The value to check.
1521
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
1522
+ * @example
1523
+ *
1524
+ * _.isArrayLike([1, 2, 3]);
1525
+ * // => true
1526
+ *
1527
+ * _.isArrayLike(document.body.children);
1528
+ * // => true
1529
+ *
1530
+ * _.isArrayLike('abc');
1531
+ * // => true
1532
+ *
1533
+ * _.isArrayLike(_.noop);
1534
+ * // => false
1327
1535
  */
1328
- function MapCache(entries) {
1329
- var index = -1, length = entries ? entries.length : 0;
1330
- this.clear();
1331
- while (++index < length) {
1332
- var entry = entries[index];
1333
- this.set(entry[0], entry[1]);
1334
- }
1536
+ function isArrayLike(value) {
1537
+ return value != null && isLength(value.length) && !isFunction$1(value);
1335
1538
  }
1336
1539
  /**
1337
- * Removes all key-value entries from the map.
1540
+ * This method is like `_.isArrayLike` except that it also checks if `value`
1541
+ * is an object.
1338
1542
  *
1339
- * @private
1340
- * @name clear
1341
- * @memberOf MapCache
1543
+ * @static
1544
+ * @memberOf _
1545
+ * @since 4.0.0
1546
+ * @category Lang
1547
+ * @param {*} value The value to check.
1548
+ * @returns {boolean} Returns `true` if `value` is an array-like object,
1549
+ * else `false`.
1550
+ * @example
1551
+ *
1552
+ * _.isArrayLikeObject([1, 2, 3]);
1553
+ * // => true
1554
+ *
1555
+ * _.isArrayLikeObject(document.body.children);
1556
+ * // => true
1557
+ *
1558
+ * _.isArrayLikeObject('abc');
1559
+ * // => false
1560
+ *
1561
+ * _.isArrayLikeObject(_.noop);
1562
+ * // => false
1342
1563
  */
1343
- function mapCacheClear() {
1344
- this.__data__ = {
1345
- "hash": new Hash(),
1346
- "map": new (Map || ListCache)(),
1347
- "string": new Hash()
1348
- };
1564
+ function isArrayLikeObject(value) {
1565
+ return isObjectLike$1(value) && isArrayLike(value);
1349
1566
  }
1350
1567
  /**
1351
- * Removes `key` and its value from the map.
1568
+ * Checks if `value` is classified as a `Function` object.
1352
1569
  *
1353
- * @private
1354
- * @name delete
1355
- * @memberOf MapCache
1356
- * @param {string} key The key of the value to remove.
1357
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1570
+ * @static
1571
+ * @memberOf _
1572
+ * @since 0.1.0
1573
+ * @category Lang
1574
+ * @param {*} value The value to check.
1575
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
1576
+ * @example
1577
+ *
1578
+ * _.isFunction(_);
1579
+ * // => true
1580
+ *
1581
+ * _.isFunction(/abc/);
1582
+ * // => false
1358
1583
  */
1359
- function mapCacheDelete(key) {
1360
- return getMapData(this, key)["delete"](key);
1584
+ function isFunction$1(value) {
1585
+ var tag = isObject$1(value) ? objectToString$1.call(value) : "";
1586
+ return tag == funcTag$1 || tag == genTag$1;
1361
1587
  }
1362
1588
  /**
1363
- * Gets the map value for `key`.
1589
+ * Checks if `value` is a valid array-like length.
1364
1590
  *
1365
- * @private
1366
- * @name get
1367
- * @memberOf MapCache
1368
- * @param {string} key The key of the value to get.
1369
- * @returns {*} Returns the entry value.
1591
+ * **Note:** This method is loosely based on
1592
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
1593
+ *
1594
+ * @static
1595
+ * @memberOf _
1596
+ * @since 4.0.0
1597
+ * @category Lang
1598
+ * @param {*} value The value to check.
1599
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
1600
+ * @example
1601
+ *
1602
+ * _.isLength(3);
1603
+ * // => true
1604
+ *
1605
+ * _.isLength(Number.MIN_VALUE);
1606
+ * // => false
1607
+ *
1608
+ * _.isLength(Infinity);
1609
+ * // => false
1610
+ *
1611
+ * _.isLength('3');
1612
+ * // => false
1370
1613
  */
1371
- function mapCacheGet(key) {
1372
- return getMapData(this, key).get(key);
1614
+ function isLength(value) {
1615
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
1373
1616
  }
1374
1617
  /**
1375
- * Checks if a map value for `key` exists.
1618
+ * Checks if `value` is the
1619
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1620
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1376
1621
  *
1377
- * @private
1378
- * @name has
1379
- * @memberOf MapCache
1380
- * @param {string} key The key of the entry to check.
1381
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1622
+ * @static
1623
+ * @memberOf _
1624
+ * @since 0.1.0
1625
+ * @category Lang
1626
+ * @param {*} value The value to check.
1627
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1628
+ * @example
1629
+ *
1630
+ * _.isObject({});
1631
+ * // => true
1632
+ *
1633
+ * _.isObject([1, 2, 3]);
1634
+ * // => true
1635
+ *
1636
+ * _.isObject(_.noop);
1637
+ * // => true
1638
+ *
1639
+ * _.isObject(null);
1640
+ * // => false
1382
1641
  */
1383
- function mapCacheHas(key) {
1384
- return getMapData(this, key).has(key);
1642
+ function isObject$1(value) {
1643
+ var type = typeof value;
1644
+ return !!value && (type == "object" || type == "function");
1385
1645
  }
1386
1646
  /**
1387
- * Sets the map `key` to `value`.
1647
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
1648
+ * and has a `typeof` result of "object".
1388
1649
  *
1389
- * @private
1390
- * @name set
1391
- * @memberOf MapCache
1392
- * @param {string} key The key of the value to set.
1393
- * @param {*} value The value to set.
1394
- * @returns {Object} Returns the map cache instance.
1650
+ * @static
1651
+ * @memberOf _
1652
+ * @since 4.0.0
1653
+ * @category Lang
1654
+ * @param {*} value The value to check.
1655
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
1656
+ * @example
1657
+ *
1658
+ * _.isObjectLike({});
1659
+ * // => true
1660
+ *
1661
+ * _.isObjectLike([1, 2, 3]);
1662
+ * // => true
1663
+ *
1664
+ * _.isObjectLike(_.noop);
1665
+ * // => false
1666
+ *
1667
+ * _.isObjectLike(null);
1668
+ * // => false
1395
1669
  */
1396
- function mapCacheSet(key, value) {
1397
- getMapData(this, key).set(key, value);
1398
- return this;
1670
+ function isObjectLike$1(value) {
1671
+ return !!value && typeof value == "object";
1399
1672
  }
1400
- MapCache.prototype.clear = mapCacheClear;
1401
- MapCache.prototype["delete"] = mapCacheDelete;
1402
- MapCache.prototype.get = mapCacheGet;
1403
- MapCache.prototype.has = mapCacheHas;
1404
- MapCache.prototype.set = mapCacheSet;
1405
1673
  /**
1674
+ * Checks if `value` is classified as a `Symbol` primitive or object.
1406
1675
  *
1407
- * Creates an array cache object to store unique values.
1676
+ * @static
1677
+ * @memberOf _
1678
+ * @since 4.0.0
1679
+ * @category Lang
1680
+ * @param {*} value The value to check.
1681
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
1682
+ * @example
1408
1683
  *
1409
- * @private
1410
- * @constructor
1411
- * @param {Array} [values] The values to cache.
1684
+ * _.isSymbol(Symbol.iterator);
1685
+ * // => true
1686
+ *
1687
+ * _.isSymbol('abc');
1688
+ * // => false
1412
1689
  */
1413
- function SetCache(values) {
1414
- var index = -1, length = values ? values.length : 0;
1415
- this.__data__ = new MapCache();
1416
- while (++index < length) this.add(values[index]);
1690
+ function isSymbol$1(value) {
1691
+ return typeof value == "symbol" || isObjectLike$1(value) && objectToString$1.call(value) == symbolTag$1;
1417
1692
  }
1418
1693
  /**
1419
- * Adds `value` to the array cache.
1694
+ * Checks if `value` is classified as a typed array.
1420
1695
  *
1421
- * @private
1422
- * @name add
1423
- * @memberOf SetCache
1424
- * @alias push
1425
- * @param {*} value The value to cache.
1426
- * @returns {Object} Returns the cache instance.
1696
+ * @static
1697
+ * @memberOf _
1698
+ * @since 3.0.0
1699
+ * @category Lang
1700
+ * @param {*} value The value to check.
1701
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1702
+ * @example
1703
+ *
1704
+ * _.isTypedArray(new Uint8Array);
1705
+ * // => true
1706
+ *
1707
+ * _.isTypedArray([]);
1708
+ * // => false
1427
1709
  */
1428
- function setCacheAdd(value) {
1429
- this.__data__.set(value, HASH_UNDEFINED);
1430
- return this;
1431
- }
1710
+ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
1432
1711
  /**
1433
- * Checks if `value` is in the array cache.
1712
+ * Converts `value` to a string. An empty string is returned for `null`
1713
+ * and `undefined` values. The sign of `-0` is preserved.
1714
+ *
1715
+ * @static
1716
+ * @memberOf _
1717
+ * @since 4.0.0
1718
+ * @category Lang
1719
+ * @param {*} value The value to process.
1720
+ * @returns {string} Returns the string.
1721
+ * @example
1722
+ *
1723
+ * _.toString(null);
1724
+ * // => ''
1434
1725
  *
1435
- * @private
1436
- * @name has
1437
- * @memberOf SetCache
1438
- * @param {*} value The value to search for.
1439
- * @returns {number} Returns `true` if `value` is found, else `false`.
1726
+ * _.toString(-0);
1727
+ * // => '-0'
1728
+ *
1729
+ * _.toString([1, 2, 3]);
1730
+ * // => '1,2,3'
1440
1731
  */
1441
- function setCacheHas(value) {
1442
- return this.__data__.has(value);
1732
+ function toString$1(value) {
1733
+ return value == null ? "" : baseToString$1(value);
1443
1734
  }
1444
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
1445
- SetCache.prototype.has = setCacheHas;
1446
1735
  /**
1447
- * Creates a stack cache object to store key-value pairs.
1736
+ * Gets the value at `path` of `object`. If the resolved value is
1737
+ * `undefined`, the `defaultValue` is returned in its place.
1448
1738
  *
1449
- * @private
1450
- * @constructor
1451
- * @param {Array} [entries] The key-value pairs to cache.
1739
+ * @static
1740
+ * @memberOf _
1741
+ * @since 3.7.0
1742
+ * @category Object
1743
+ * @param {Object} object The object to query.
1744
+ * @param {Array|string} path The path of the property to get.
1745
+ * @param {*} [defaultValue] The value returned for `undefined` resolved values.
1746
+ * @returns {*} Returns the resolved value.
1747
+ * @example
1748
+ *
1749
+ * var object = { 'a': [{ 'b': { 'c': 3 } }] };
1750
+ *
1751
+ * _.get(object, 'a[0].b.c');
1752
+ * // => 3
1753
+ *
1754
+ * _.get(object, ['a', '0', 'b', 'c']);
1755
+ * // => 3
1756
+ *
1757
+ * _.get(object, 'a.b.c', 'default');
1758
+ * // => 'default'
1452
1759
  */
1453
- function Stack(entries) {
1454
- this.__data__ = new ListCache(entries);
1760
+ function get$2(object, path, defaultValue) {
1761
+ var result = object == null ? void 0 : baseGet$1(object, path);
1762
+ return result === void 0 ? defaultValue : result;
1455
1763
  }
1456
1764
  /**
1457
- * Removes all key-value entries from the stack.
1765
+ * Checks if `path` is a direct or inherited property of `object`.
1458
1766
  *
1459
- * @private
1460
- * @name clear
1461
- * @memberOf Stack
1767
+ * @static
1768
+ * @memberOf _
1769
+ * @since 4.0.0
1770
+ * @category Object
1771
+ * @param {Object} object The object to query.
1772
+ * @param {Array|string} path The path to check.
1773
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
1774
+ * @example
1775
+ *
1776
+ * var object = _.create({ 'a': _.create({ 'b': 2 }) });
1777
+ *
1778
+ * _.hasIn(object, 'a');
1779
+ * // => true
1780
+ *
1781
+ * _.hasIn(object, 'a.b');
1782
+ * // => true
1783
+ *
1784
+ * _.hasIn(object, ['a', 'b']);
1785
+ * // => true
1786
+ *
1787
+ * _.hasIn(object, 'b');
1788
+ * // => false
1462
1789
  */
1463
- function stackClear() {
1464
- this.__data__ = new ListCache();
1790
+ function hasIn(object, path) {
1791
+ return object != null && hasPath(object, path, baseHasIn);
1465
1792
  }
1466
1793
  /**
1467
- * Removes `key` and its value from the stack.
1794
+ * Creates an array of the own enumerable property names of `object`.
1468
1795
  *
1469
- * @private
1470
- * @name delete
1471
- * @memberOf Stack
1472
- * @param {string} key The key of the value to remove.
1473
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1796
+ * **Note:** Non-object values are coerced to objects. See the
1797
+ * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
1798
+ * for more details.
1799
+ *
1800
+ * @static
1801
+ * @since 0.1.0
1802
+ * @memberOf _
1803
+ * @category Object
1804
+ * @param {Object} object The object to query.
1805
+ * @returns {Array} Returns the array of property names.
1806
+ * @example
1807
+ *
1808
+ * function Foo() {
1809
+ * this.a = 1;
1810
+ * this.b = 2;
1811
+ * }
1812
+ *
1813
+ * Foo.prototype.c = 3;
1814
+ *
1815
+ * _.keys(new Foo);
1816
+ * // => ['a', 'b'] (iteration order is not guaranteed)
1817
+ *
1818
+ * _.keys('hi');
1819
+ * // => ['0', '1']
1474
1820
  */
1475
- function stackDelete(key) {
1476
- return this.__data__["delete"](key);
1821
+ function keys(object) {
1822
+ return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
1477
1823
  }
1478
1824
  /**
1479
- * Gets the stack value for `key`.
1825
+ * This method returns the first argument it receives.
1480
1826
  *
1481
- * @private
1482
- * @name get
1483
- * @memberOf Stack
1484
- * @param {string} key The key of the value to get.
1485
- * @returns {*} Returns the entry value.
1827
+ * @static
1828
+ * @since 0.1.0
1829
+ * @memberOf _
1830
+ * @category Util
1831
+ * @param {*} value Any value.
1832
+ * @returns {*} Returns `value`.
1833
+ * @example
1834
+ *
1835
+ * var object = { 'a': 1 };
1836
+ *
1837
+ * console.log(_.identity(object) === object);
1838
+ * // => true
1486
1839
  */
1487
- function stackGet(key) {
1488
- return this.__data__.get(key);
1840
+ function identity(value) {
1841
+ return value;
1489
1842
  }
1490
1843
  /**
1491
- * Checks if a stack value for `key` exists.
1844
+ * This method returns `undefined`.
1492
1845
  *
1493
- * @private
1494
- * @name has
1495
- * @memberOf Stack
1496
- * @param {string} key The key of the entry to check.
1497
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1846
+ * @static
1847
+ * @memberOf _
1848
+ * @since 2.3.0
1849
+ * @category Util
1850
+ * @example
1851
+ *
1852
+ * _.times(2, _.noop);
1853
+ * // => [undefined, undefined]
1498
1854
  */
1499
- function stackHas(key) {
1500
- return this.__data__.has(key);
1501
- }
1855
+ function noop() {}
1502
1856
  /**
1503
- * Sets the stack `key` to `value`.
1857
+ * Creates a function that returns the value at `path` of a given object.
1504
1858
  *
1505
- * @private
1506
- * @name set
1507
- * @memberOf Stack
1508
- * @param {string} key The key of the value to set.
1509
- * @param {*} value The value to set.
1510
- * @returns {Object} Returns the stack cache instance.
1859
+ * @static
1860
+ * @memberOf _
1861
+ * @since 2.4.0
1862
+ * @category Util
1863
+ * @param {Array|string} path The path of the property to get.
1864
+ * @returns {Function} Returns the new accessor function.
1865
+ * @example
1866
+ *
1867
+ * var objects = [
1868
+ * { 'a': { 'b': 2 } },
1869
+ * { 'a': { 'b': 1 } }
1870
+ * ];
1871
+ *
1872
+ * _.map(objects, _.property('a.b'));
1873
+ * // => [2, 1]
1874
+ *
1875
+ * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
1876
+ * // => [1, 2]
1511
1877
  */
1512
- function stackSet(key, value) {
1513
- var cache = this.__data__;
1514
- if (cache instanceof ListCache) {
1515
- var pairs = cache.__data__;
1516
- if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
1517
- pairs.push([key, value]);
1518
- return this;
1519
- }
1520
- cache = this.__data__ = new MapCache(pairs);
1521
- }
1522
- cache.set(key, value);
1523
- return this;
1878
+ function property(path) {
1879
+ return isKey$1(path) ? baseProperty(toKey$1(path)) : basePropertyDeep(path);
1524
1880
  }
1525
- Stack.prototype.clear = stackClear;
1526
- Stack.prototype["delete"] = stackDelete;
1527
- Stack.prototype.get = stackGet;
1528
- Stack.prototype.has = stackHas;
1529
- Stack.prototype.set = stackSet;
1881
+ module.exports = uniqBy$2;
1882
+ } });
1883
+
1884
+ //#endregion
1885
+ //#region ../../node_modules/.pnpm/lodash.get@4.4.2/node_modules/lodash.get/index.js
1886
+ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash.get@4.4.2/node_modules/lodash.get/index.js"(exports, module) {
1530
1887
  /**
1531
- * Creates an array of the enumerable property names of the array-like `value`.
1532
- *
1533
- * @private
1534
- * @param {*} value The value to query.
1535
- * @param {boolean} inherited Specify returning inherited property names.
1536
- * @returns {Array} Returns the array of property names.
1888
+ * lodash (Custom Build) <https://lodash.com/>
1889
+ * Build: `lodash modularize exports="npm" -o ./`
1890
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
1891
+ * Released under MIT license <https://lodash.com/license>
1892
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1893
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1537
1894
  */
1538
- function arrayLikeKeys(value, inherited) {
1539
- var result = isArray(value) || isArguments(value) ? baseTimes(value.length, String) : [];
1540
- var length = result.length, skipIndexes = !!length;
1541
- for (var key in value) if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isIndex(key, length)))) result.push(key);
1542
- return result;
1543
- }
1895
+ /** Used as the `TypeError` message for "Functions" methods. */
1896
+ var FUNC_ERROR_TEXT = "Expected a function";
1897
+ /** Used to stand-in for `undefined` hash values. */
1898
+ var HASH_UNDEFINED = "__lodash_hash_undefined__";
1899
+ /** Used as references for various `Number` constants. */
1900
+ var INFINITY = Infinity;
1901
+ /** `Object#toString` result references. */
1902
+ var funcTag = "[object Function]", genTag = "[object GeneratorFunction]", symbolTag = "[object Symbol]";
1903
+ /** Used to match property names within property paths. */
1904
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, reLeadingDot = /^\./, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1544
1905
  /**
1545
- * Gets the index at which the `key` is found in `array` of key-value pairs.
1546
- *
1547
- * @private
1548
- * @param {Array} array The array to inspect.
1549
- * @param {*} key The key to search for.
1550
- * @returns {number} Returns the index of the matched value, else `-1`.
1906
+ * Used to match `RegExp`
1907
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
1551
1908
  */
1552
- function assocIndexOf(array, key) {
1553
- var length = array.length;
1554
- while (length--) if (eq(array[length][0], key)) return length;
1555
- return -1;
1556
- }
1909
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
1910
+ /** Used to match backslashes in property paths. */
1911
+ var reEscapeChar = /\\(\\)?/g;
1912
+ /** Used to detect host constructors (Safari). */
1913
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
1914
+ /** Detect free variable `global` from Node.js. */
1915
+ var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
1916
+ /** Detect free variable `self`. */
1917
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
1918
+ /** Used as a reference to the global object. */
1919
+ var root = freeGlobal || freeSelf || Function("return this")();
1557
1920
  /**
1558
- * The base implementation of `_.get` without support for default values.
1921
+ * Gets the value at `key` of `object`.
1559
1922
  *
1560
1923
  * @private
1561
- * @param {Object} object The object to query.
1562
- * @param {Array|string} path The path of the property to get.
1563
- * @returns {*} Returns the resolved value.
1924
+ * @param {Object} [object] The object to query.
1925
+ * @param {string} key The key of the property to get.
1926
+ * @returns {*} Returns the property value.
1564
1927
  */
1565
- function baseGet(object, path) {
1566
- path = isKey(path, object) ? [path] : castPath(path);
1567
- var index = 0, length = path.length;
1568
- while (object != null && index < length) object = object[toKey(path[index++])];
1569
- return index && index == length ? object : void 0;
1928
+ function getValue(object, key) {
1929
+ return object == null ? void 0 : object[key];
1570
1930
  }
1571
1931
  /**
1572
- * The base implementation of `getTag`.
1932
+ * Checks if `value` is a host object in IE < 9.
1573
1933
  *
1574
1934
  * @private
1575
- * @param {*} value The value to query.
1576
- * @returns {string} Returns the `toStringTag`.
1935
+ * @param {*} value The value to check.
1936
+ * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
1577
1937
  */
1578
- function baseGetTag(value) {
1579
- return objectToString.call(value);
1938
+ function isHostObject(value) {
1939
+ var result = false;
1940
+ if (value != null && typeof value.toString != "function") try {
1941
+ result = !!(value + "");
1942
+ } catch (e) {}
1943
+ return result;
1580
1944
  }
1945
+ /** Used for built-in method references. */
1946
+ var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto = Object.prototype;
1947
+ /** Used to detect overreaching core-js shims. */
1948
+ var coreJsData = root["__core-js_shared__"];
1949
+ /** Used to detect methods masquerading as native. */
1950
+ var maskSrcKey = function() {
1951
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
1952
+ return uid ? "Symbol(src)_1." + uid : "";
1953
+ }();
1954
+ /** Used to resolve the decompiled source of functions. */
1955
+ var funcToString = funcProto.toString;
1956
+ /** Used to check objects for own properties. */
1957
+ var hasOwnProperty = objectProto.hasOwnProperty;
1581
1958
  /**
1582
- * The base implementation of `_.hasIn` without support for deep paths.
1959
+ * Used to resolve the
1960
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1961
+ * of values.
1962
+ */
1963
+ var objectToString = objectProto.toString;
1964
+ /** Used to detect if a method is native. */
1965
+ var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
1966
+ /** Built-in value references. */
1967
+ var Symbol = root.Symbol, splice = arrayProto.splice;
1968
+ var Map = getNative(root, "Map"), nativeCreate = getNative(Object, "create");
1969
+ /** Used to convert symbols to primitives and strings. */
1970
+ var symbolProto = Symbol ? Symbol.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
1971
+ /**
1972
+ * Creates a hash object.
1583
1973
  *
1584
1974
  * @private
1585
- * @param {Object} [object] The object to query.
1586
- * @param {Array|string} key The key to check.
1587
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
1975
+ * @constructor
1976
+ * @param {Array} [entries] The key-value pairs to cache.
1588
1977
  */
1589
- function baseHasIn(object, key) {
1590
- return object != null && key in Object(object);
1978
+ function Hash(entries) {
1979
+ var index = -1, length = entries ? entries.length : 0;
1980
+ this.clear();
1981
+ while (++index < length) {
1982
+ var entry = entries[index];
1983
+ this.set(entry[0], entry[1]);
1984
+ }
1591
1985
  }
1592
1986
  /**
1593
- * The base implementation of `_.isEqual` which supports partial comparisons
1594
- * and tracks traversed objects.
1987
+ * Removes all key-value entries from the hash.
1595
1988
  *
1596
1989
  * @private
1597
- * @param {*} value The value to compare.
1598
- * @param {*} other The other value to compare.
1599
- * @param {Function} [customizer] The function to customize comparisons.
1600
- * @param {boolean} [bitmask] The bitmask of comparison flags.
1601
- * The bitmask may be composed of the following flags:
1602
- * 1 - Unordered comparison
1603
- * 2 - Partial comparison
1604
- * @param {Object} [stack] Tracks traversed `value` and `other` objects.
1605
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1990
+ * @name clear
1991
+ * @memberOf Hash
1606
1992
  */
1607
- function baseIsEqual(value, other, customizer, bitmask, stack) {
1608
- if (value === other) return true;
1609
- if (value == null || other == null || !isObject(value) && !isObjectLike(other)) return value !== value && other !== other;
1610
- return baseIsEqualDeep(value, other, baseIsEqual, customizer, bitmask, stack);
1993
+ function hashClear() {
1994
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
1611
1995
  }
1612
1996
  /**
1613
- * A specialized version of `baseIsEqual` for arrays and objects which performs
1614
- * deep comparisons and tracks traversed objects enabling objects with circular
1615
- * references to be compared.
1997
+ * Removes `key` and its value from the hash.
1616
1998
  *
1617
1999
  * @private
1618
- * @param {Object} object The object to compare.
1619
- * @param {Object} other The other object to compare.
1620
- * @param {Function} equalFunc The function to determine equivalents of values.
1621
- * @param {Function} [customizer] The function to customize comparisons.
1622
- * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual`
1623
- * for more details.
1624
- * @param {Object} [stack] Tracks traversed `object` and `other` objects.
1625
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2000
+ * @name delete
2001
+ * @memberOf Hash
2002
+ * @param {Object} hash The hash to modify.
2003
+ * @param {string} key The key of the value to remove.
2004
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1626
2005
  */
1627
- function baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) {
1628
- var objIsArr = isArray(object), othIsArr = isArray(other), objTag = arrayTag, othTag = arrayTag;
1629
- if (!objIsArr) {
1630
- objTag = getTag(object);
1631
- objTag = objTag == argsTag ? objectTag : objTag;
1632
- }
1633
- if (!othIsArr) {
1634
- othTag = getTag(other);
1635
- othTag = othTag == argsTag ? objectTag : othTag;
1636
- }
1637
- var objIsObj = objTag == objectTag && !isHostObject(object), othIsObj = othTag == objectTag && !isHostObject(other), isSameTag = objTag == othTag;
1638
- if (isSameTag && !objIsObj) {
1639
- stack || (stack = new Stack());
1640
- return objIsArr || isTypedArray(object) ? equalArrays(object, other, equalFunc, customizer, bitmask, stack) : equalByTag(object, other, objTag, equalFunc, customizer, bitmask, stack);
1641
- }
1642
- if (!(bitmask & PARTIAL_COMPARE_FLAG)) {
1643
- var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
1644
- if (objIsWrapped || othIsWrapped) {
1645
- var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
1646
- stack || (stack = new Stack());
1647
- return equalFunc(objUnwrapped, othUnwrapped, customizer, bitmask, stack);
1648
- }
1649
- }
1650
- if (!isSameTag) return false;
1651
- stack || (stack = new Stack());
1652
- return equalObjects(object, other, equalFunc, customizer, bitmask, stack);
2006
+ function hashDelete(key) {
2007
+ return this.has(key) && delete this.__data__[key];
1653
2008
  }
1654
2009
  /**
1655
- * The base implementation of `_.isMatch` without support for iteratee shorthands.
2010
+ * Gets the hash value for `key`.
1656
2011
  *
1657
2012
  * @private
1658
- * @param {Object} object The object to inspect.
1659
- * @param {Object} source The object of property values to match.
1660
- * @param {Array} matchData The property names, values, and compare flags to match.
1661
- * @param {Function} [customizer] The function to customize comparisons.
1662
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
2013
+ * @name get
2014
+ * @memberOf Hash
2015
+ * @param {string} key The key of the value to get.
2016
+ * @returns {*} Returns the entry value.
1663
2017
  */
1664
- function baseIsMatch(object, source, matchData, customizer) {
1665
- var index = matchData.length, length = index, noCustomizer = !customizer;
1666
- if (object == null) return !length;
1667
- object = Object(object);
1668
- while (index--) {
1669
- var data = matchData[index];
1670
- if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) return false;
1671
- }
1672
- while (++index < length) {
1673
- data = matchData[index];
1674
- var key = data[0], objValue = object[key], srcValue = data[1];
1675
- if (noCustomizer && data[2]) {
1676
- if (objValue === void 0 && !(key in object)) return false;
1677
- } else {
1678
- var stack = new Stack();
1679
- if (customizer) var result = customizer(objValue, srcValue, key, object, source, stack);
1680
- if (!(result === void 0 ? baseIsEqual(srcValue, objValue, customizer, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG, stack) : result)) return false;
1681
- }
2018
+ function hashGet(key) {
2019
+ var data = this.__data__;
2020
+ if (nativeCreate) {
2021
+ var result = data[key];
2022
+ return result === HASH_UNDEFINED ? void 0 : result;
1682
2023
  }
1683
- return true;
2024
+ return hasOwnProperty.call(data, key) ? data[key] : void 0;
1684
2025
  }
1685
2026
  /**
1686
- * The base implementation of `_.isNative` without bad shim checks.
2027
+ * Checks if a hash value for `key` exists.
1687
2028
  *
1688
2029
  * @private
1689
- * @param {*} value The value to check.
1690
- * @returns {boolean} Returns `true` if `value` is a native function,
1691
- * else `false`.
2030
+ * @name has
2031
+ * @memberOf Hash
2032
+ * @param {string} key The key of the entry to check.
2033
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1692
2034
  */
1693
- function baseIsNative(value) {
1694
- if (!isObject(value) || isMasked(value)) return false;
1695
- var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
1696
- return pattern.test(toSource(value));
2035
+ function hashHas(key) {
2036
+ var data = this.__data__;
2037
+ return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
1697
2038
  }
1698
2039
  /**
1699
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
2040
+ * Sets the hash `key` to `value`.
1700
2041
  *
1701
2042
  * @private
1702
- * @param {*} value The value to check.
1703
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
2043
+ * @name set
2044
+ * @memberOf Hash
2045
+ * @param {string} key The key of the value to set.
2046
+ * @param {*} value The value to set.
2047
+ * @returns {Object} Returns the hash instance.
1704
2048
  */
1705
- function baseIsTypedArray(value) {
1706
- return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[objectToString.call(value)];
2049
+ function hashSet(key, value) {
2050
+ var data = this.__data__;
2051
+ data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
2052
+ return this;
1707
2053
  }
2054
+ Hash.prototype.clear = hashClear;
2055
+ Hash.prototype["delete"] = hashDelete;
2056
+ Hash.prototype.get = hashGet;
2057
+ Hash.prototype.has = hashHas;
2058
+ Hash.prototype.set = hashSet;
1708
2059
  /**
1709
- * The base implementation of `_.iteratee`.
2060
+ * Creates an list cache object.
1710
2061
  *
1711
2062
  * @private
1712
- * @param {*} [value=_.identity] The value to convert to an iteratee.
1713
- * @returns {Function} Returns the iteratee.
2063
+ * @constructor
2064
+ * @param {Array} [entries] The key-value pairs to cache.
1714
2065
  */
1715
- function baseIteratee(value) {
1716
- if (typeof value == "function") return value;
1717
- if (value == null) return identity;
1718
- if (typeof value == "object") return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
1719
- return property(value);
2066
+ function ListCache(entries) {
2067
+ var index = -1, length = entries ? entries.length : 0;
2068
+ this.clear();
2069
+ while (++index < length) {
2070
+ var entry = entries[index];
2071
+ this.set(entry[0], entry[1]);
2072
+ }
1720
2073
  }
1721
2074
  /**
1722
- * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
2075
+ * Removes all key-value entries from the list cache.
1723
2076
  *
1724
2077
  * @private
1725
- * @param {Object} object The object to query.
1726
- * @returns {Array} Returns the array of property names.
2078
+ * @name clear
2079
+ * @memberOf ListCache
1727
2080
  */
1728
- function baseKeys(object) {
1729
- if (!isPrototype(object)) return nativeKeys(object);
1730
- var result = [];
1731
- for (var key in Object(object)) if (hasOwnProperty.call(object, key) && key != "constructor") result.push(key);
1732
- return result;
2081
+ function listCacheClear() {
2082
+ this.__data__ = [];
1733
2083
  }
1734
2084
  /**
1735
- * The base implementation of `_.matches` which doesn't clone `source`.
2085
+ * Removes `key` and its value from the list cache.
1736
2086
  *
1737
2087
  * @private
1738
- * @param {Object} source The object of property values to match.
1739
- * @returns {Function} Returns the new spec function.
2088
+ * @name delete
2089
+ * @memberOf ListCache
2090
+ * @param {string} key The key of the value to remove.
2091
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1740
2092
  */
1741
- function baseMatches(source) {
1742
- var matchData = getMatchData(source);
1743
- if (matchData.length == 1 && matchData[0][2]) return matchesStrictComparable(matchData[0][0], matchData[0][1]);
1744
- return function(object) {
1745
- return object === source || baseIsMatch(object, source, matchData);
1746
- };
2093
+ function listCacheDelete(key) {
2094
+ var data = this.__data__, index = assocIndexOf(data, key);
2095
+ if (index < 0) return false;
2096
+ var lastIndex = data.length - 1;
2097
+ if (index == lastIndex) data.pop();
2098
+ else splice.call(data, index, 1);
2099
+ return true;
1747
2100
  }
1748
2101
  /**
1749
- * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
2102
+ * Gets the list cache value for `key`.
1750
2103
  *
1751
2104
  * @private
1752
- * @param {string} path The path of the property to get.
1753
- * @param {*} srcValue The value to match.
1754
- * @returns {Function} Returns the new spec function.
2105
+ * @name get
2106
+ * @memberOf ListCache
2107
+ * @param {string} key The key of the value to get.
2108
+ * @returns {*} Returns the entry value.
1755
2109
  */
1756
- function baseMatchesProperty(path, srcValue) {
1757
- if (isKey(path) && isStrictComparable(srcValue)) return matchesStrictComparable(toKey(path), srcValue);
1758
- return function(object) {
1759
- var objValue = get(object, path);
1760
- return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, void 0, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG);
1761
- };
2110
+ function listCacheGet(key) {
2111
+ var data = this.__data__, index = assocIndexOf(data, key);
2112
+ return index < 0 ? void 0 : data[index][1];
1762
2113
  }
1763
2114
  /**
1764
- * A specialized version of `baseProperty` which supports deep paths.
2115
+ * Checks if a list cache value for `key` exists.
1765
2116
  *
1766
2117
  * @private
1767
- * @param {Array|string} path The path of the property to get.
1768
- * @returns {Function} Returns the new accessor function.
2118
+ * @name has
2119
+ * @memberOf ListCache
2120
+ * @param {string} key The key of the entry to check.
2121
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1769
2122
  */
1770
- function basePropertyDeep(path) {
1771
- return function(object) {
1772
- return baseGet(object, path);
1773
- };
2123
+ function listCacheHas(key) {
2124
+ return assocIndexOf(this.__data__, key) > -1;
1774
2125
  }
1775
2126
  /**
1776
- * The base implementation of `_.toString` which doesn't convert nullish
1777
- * values to empty strings.
2127
+ * Sets the list cache `key` to `value`.
1778
2128
  *
1779
2129
  * @private
1780
- * @param {*} value The value to process.
1781
- * @returns {string} Returns the string.
2130
+ * @name set
2131
+ * @memberOf ListCache
2132
+ * @param {string} key The key of the value to set.
2133
+ * @param {*} value The value to set.
2134
+ * @returns {Object} Returns the list cache instance.
1782
2135
  */
1783
- function baseToString(value) {
1784
- if (typeof value == "string") return value;
1785
- if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : "";
1786
- var result = value + "";
1787
- return result == "0" && 1 / value == -INFINITY ? "-0" : result;
2136
+ function listCacheSet(key, value) {
2137
+ var data = this.__data__, index = assocIndexOf(data, key);
2138
+ if (index < 0) data.push([key, value]);
2139
+ else data[index][1] = value;
2140
+ return this;
1788
2141
  }
2142
+ ListCache.prototype.clear = listCacheClear;
2143
+ ListCache.prototype["delete"] = listCacheDelete;
2144
+ ListCache.prototype.get = listCacheGet;
2145
+ ListCache.prototype.has = listCacheHas;
2146
+ ListCache.prototype.set = listCacheSet;
1789
2147
  /**
1790
- * The base implementation of `_.uniqBy` without support for iteratee shorthands.
2148
+ * Creates a map cache object to store key-value pairs.
1791
2149
  *
1792
2150
  * @private
1793
- * @param {Array} array The array to inspect.
1794
- * @param {Function} [iteratee] The iteratee invoked per element.
1795
- * @param {Function} [comparator] The comparator invoked per element.
1796
- * @returns {Array} Returns the new duplicate free array.
2151
+ * @constructor
2152
+ * @param {Array} [entries] The key-value pairs to cache.
1797
2153
  */
1798
- function baseUniq(array, iteratee, comparator) {
1799
- var index = -1, includes = arrayIncludes, length = array.length, isCommon = true, result = [], seen = result;
1800
- if (comparator) {
1801
- isCommon = false;
1802
- includes = arrayIncludesWith;
1803
- } else if (length >= LARGE_ARRAY_SIZE) {
1804
- var set = iteratee ? null : createSet(array);
1805
- if (set) return setToArray(set);
1806
- isCommon = false;
1807
- includes = cacheHas;
1808
- seen = new SetCache();
1809
- } else seen = iteratee ? [] : result;
1810
- outer: while (++index < length) {
1811
- var value = array[index], computed = iteratee ? iteratee(value) : value;
1812
- value = comparator || value !== 0 ? value : 0;
1813
- if (isCommon && computed === computed) {
1814
- var seenIndex = seen.length;
1815
- while (seenIndex--) if (seen[seenIndex] === computed) continue outer;
1816
- if (iteratee) seen.push(computed);
1817
- result.push(value);
1818
- } else if (!includes(seen, computed, comparator)) {
1819
- if (seen !== result) seen.push(computed);
1820
- result.push(value);
1821
- }
2154
+ function MapCache(entries) {
2155
+ var index = -1, length = entries ? entries.length : 0;
2156
+ this.clear();
2157
+ while (++index < length) {
2158
+ var entry = entries[index];
2159
+ this.set(entry[0], entry[1]);
1822
2160
  }
1823
- return result;
1824
2161
  }
1825
2162
  /**
1826
- * Casts `value` to a path array if it's not one.
2163
+ * Removes all key-value entries from the map.
1827
2164
  *
1828
2165
  * @private
1829
- * @param {*} value The value to inspect.
1830
- * @returns {Array} Returns the cast property path array.
2166
+ * @name clear
2167
+ * @memberOf MapCache
1831
2168
  */
1832
- function castPath(value) {
1833
- return isArray(value) ? value : stringToPath(value);
2169
+ function mapCacheClear() {
2170
+ this.__data__ = {
2171
+ "hash": new Hash(),
2172
+ "map": new (Map || ListCache)(),
2173
+ "string": new Hash()
2174
+ };
1834
2175
  }
1835
2176
  /**
1836
- * Creates a set object of `values`.
2177
+ * Removes `key` and its value from the map.
1837
2178
  *
1838
2179
  * @private
1839
- * @param {Array} values The values to add to the set.
1840
- * @returns {Object} Returns the new set.
2180
+ * @name delete
2181
+ * @memberOf MapCache
2182
+ * @param {string} key The key of the value to remove.
2183
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1841
2184
  */
1842
- var createSet = !(Set && 1 / setToArray(new Set([, -0]))[1] == INFINITY) ? noop : function(values) {
1843
- return new Set(values);
1844
- };
2185
+ function mapCacheDelete(key) {
2186
+ return getMapData(this, key)["delete"](key);
2187
+ }
1845
2188
  /**
1846
- * A specialized version of `baseIsEqualDeep` for arrays with support for
1847
- * partial deep comparisons.
2189
+ * Gets the map value for `key`.
1848
2190
  *
1849
2191
  * @private
1850
- * @param {Array} array The array to compare.
1851
- * @param {Array} other The other array to compare.
1852
- * @param {Function} equalFunc The function to determine equivalents of values.
1853
- * @param {Function} customizer The function to customize comparisons.
1854
- * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
1855
- * for more details.
1856
- * @param {Object} stack Tracks traversed `array` and `other` objects.
1857
- * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
2192
+ * @name get
2193
+ * @memberOf MapCache
2194
+ * @param {string} key The key of the value to get.
2195
+ * @returns {*} Returns the entry value.
1858
2196
  */
1859
- function equalArrays(array, other, equalFunc, customizer, bitmask, stack) {
1860
- var isPartial = bitmask & PARTIAL_COMPARE_FLAG, arrLength = array.length, othLength = other.length;
1861
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) return false;
1862
- var stacked = stack.get(array);
1863
- if (stacked && stack.get(other)) return stacked == other;
1864
- var index = -1, result = true, seen = bitmask & UNORDERED_COMPARE_FLAG ? new SetCache() : void 0;
1865
- stack.set(array, other);
1866
- stack.set(other, array);
1867
- while (++index < arrLength) {
1868
- var arrValue = array[index], othValue = other[index];
1869
- if (customizer) var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
1870
- if (compared !== void 0) {
1871
- if (compared) continue;
1872
- result = false;
1873
- break;
1874
- }
1875
- if (seen) {
1876
- if (!arraySome(other, function(othValue$1, othIndex) {
1877
- if (!seen.has(othIndex) && (arrValue === othValue$1 || equalFunc(arrValue, othValue$1, customizer, bitmask, stack))) return seen.add(othIndex);
1878
- })) {
1879
- result = false;
1880
- break;
1881
- }
1882
- } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) {
1883
- result = false;
1884
- break;
1885
- }
1886
- }
1887
- stack["delete"](array);
1888
- stack["delete"](other);
1889
- return result;
2197
+ function mapCacheGet(key) {
2198
+ return getMapData(this, key).get(key);
1890
2199
  }
1891
2200
  /**
1892
- * A specialized version of `baseIsEqualDeep` for comparing objects of
1893
- * the same `toStringTag`.
1894
- *
1895
- * **Note:** This function only supports comparing values with tags of
1896
- * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
2201
+ * Checks if a map value for `key` exists.
1897
2202
  *
1898
2203
  * @private
1899
- * @param {Object} object The object to compare.
1900
- * @param {Object} other The other object to compare.
1901
- * @param {string} tag The `toStringTag` of the objects to compare.
1902
- * @param {Function} equalFunc The function to determine equivalents of values.
1903
- * @param {Function} customizer The function to customize comparisons.
1904
- * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
1905
- * for more details.
1906
- * @param {Object} stack Tracks traversed `object` and `other` objects.
1907
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2204
+ * @name has
2205
+ * @memberOf MapCache
2206
+ * @param {string} key The key of the entry to check.
2207
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1908
2208
  */
1909
- function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) {
1910
- switch (tag) {
1911
- case dataViewTag:
1912
- if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) return false;
1913
- object = object.buffer;
1914
- other = other.buffer;
1915
- case arrayBufferTag:
1916
- if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) return false;
1917
- return true;
1918
- case boolTag:
1919
- case dateTag:
1920
- case numberTag: return eq(+object, +other);
1921
- case errorTag: return object.name == other.name && object.message == other.message;
1922
- case regexpTag:
1923
- case stringTag: return object == other + "";
1924
- case mapTag: var convert = mapToArray;
1925
- case setTag:
1926
- var isPartial = bitmask & PARTIAL_COMPARE_FLAG;
1927
- convert || (convert = setToArray);
1928
- if (object.size != other.size && !isPartial) return false;
1929
- var stacked = stack.get(object);
1930
- if (stacked) return stacked == other;
1931
- bitmask |= UNORDERED_COMPARE_FLAG;
1932
- stack.set(object, other);
1933
- var result = equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask, stack);
1934
- stack["delete"](object);
1935
- return result;
1936
- case symbolTag: if (symbolValueOf) return symbolValueOf.call(object) == symbolValueOf.call(other);
1937
- }
1938
- return false;
2209
+ function mapCacheHas(key) {
2210
+ return getMapData(this, key).has(key);
1939
2211
  }
1940
2212
  /**
1941
- * A specialized version of `baseIsEqualDeep` for objects with support for
1942
- * partial deep comparisons.
2213
+ * Sets the map `key` to `value`.
1943
2214
  *
1944
2215
  * @private
1945
- * @param {Object} object The object to compare.
1946
- * @param {Object} other The other object to compare.
1947
- * @param {Function} equalFunc The function to determine equivalents of values.
1948
- * @param {Function} customizer The function to customize comparisons.
1949
- * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
1950
- * for more details.
1951
- * @param {Object} stack Tracks traversed `object` and `other` objects.
1952
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2216
+ * @name set
2217
+ * @memberOf MapCache
2218
+ * @param {string} key The key of the value to set.
2219
+ * @param {*} value The value to set.
2220
+ * @returns {Object} Returns the map cache instance.
1953
2221
  */
1954
- function equalObjects(object, other, equalFunc, customizer, bitmask, stack) {
1955
- var isPartial = bitmask & PARTIAL_COMPARE_FLAG, objProps = keys(object), objLength = objProps.length, othProps = keys(other), othLength = othProps.length;
1956
- if (objLength != othLength && !isPartial) return false;
1957
- var index = objLength;
1958
- while (index--) {
1959
- var key = objProps[index];
1960
- if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) return false;
1961
- }
1962
- var stacked = stack.get(object);
1963
- if (stacked && stack.get(other)) return stacked == other;
1964
- var result = true;
1965
- stack.set(object, other);
1966
- stack.set(other, object);
1967
- var skipCtor = isPartial;
1968
- while (++index < objLength) {
1969
- key = objProps[index];
1970
- var objValue = object[key], othValue = other[key];
1971
- if (customizer) var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
1972
- if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, customizer, bitmask, stack) : compared)) {
1973
- result = false;
1974
- break;
1975
- }
1976
- skipCtor || (skipCtor = key == "constructor");
1977
- }
1978
- if (result && !skipCtor) {
1979
- var objCtor = object.constructor, othCtor = other.constructor;
1980
- if (objCtor != othCtor && "constructor" in object && "constructor" in other && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) result = false;
1981
- }
1982
- stack["delete"](object);
1983
- stack["delete"](other);
1984
- return result;
2222
+ function mapCacheSet(key, value) {
2223
+ getMapData(this, key).set(key, value);
2224
+ return this;
1985
2225
  }
2226
+ MapCache.prototype.clear = mapCacheClear;
2227
+ MapCache.prototype["delete"] = mapCacheDelete;
2228
+ MapCache.prototype.get = mapCacheGet;
2229
+ MapCache.prototype.has = mapCacheHas;
2230
+ MapCache.prototype.set = mapCacheSet;
1986
2231
  /**
1987
- * Gets the data for `map`.
2232
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
1988
2233
  *
1989
2234
  * @private
1990
- * @param {Object} map The map to query.
1991
- * @param {string} key The reference key.
1992
- * @returns {*} Returns the map data.
2235
+ * @param {Array} array The array to inspect.
2236
+ * @param {*} key The key to search for.
2237
+ * @returns {number} Returns the index of the matched value, else `-1`.
1993
2238
  */
1994
- function getMapData(map, key) {
1995
- var data = map.__data__;
1996
- return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
2239
+ function assocIndexOf(array, key) {
2240
+ var length = array.length;
2241
+ while (length--) if (eq(array[length][0], key)) return length;
2242
+ return -1;
1997
2243
  }
1998
2244
  /**
1999
- * Gets the property names, values, and compare flags of `object`.
2245
+ * The base implementation of `_.get` without support for default values.
2000
2246
  *
2001
2247
  * @private
2002
2248
  * @param {Object} object The object to query.
2003
- * @returns {Array} Returns the match data of `object`.
2249
+ * @param {Array|string} path The path of the property to get.
2250
+ * @returns {*} Returns the resolved value.
2004
2251
  */
2005
- function getMatchData(object) {
2006
- var result = keys(object), length = result.length;
2007
- while (length--) {
2008
- var key = result[length], value = object[key];
2009
- result[length] = [
2010
- key,
2011
- value,
2012
- isStrictComparable(value)
2013
- ];
2014
- }
2015
- return result;
2252
+ function baseGet(object, path) {
2253
+ path = isKey(path, object) ? [path] : castPath(path);
2254
+ var index = 0, length = path.length;
2255
+ while (object != null && index < length) object = object[toKey(path[index++])];
2256
+ return index && index == length ? object : void 0;
2016
2257
  }
2017
2258
  /**
2018
- * Gets the native function at `key` of `object`.
2259
+ * The base implementation of `_.isNative` without bad shim checks.
2019
2260
  *
2020
2261
  * @private
2021
- * @param {Object} object The object to query.
2022
- * @param {string} key The key of the method to get.
2023
- * @returns {*} Returns the function if it's native, else `undefined`.
2262
+ * @param {*} value The value to check.
2263
+ * @returns {boolean} Returns `true` if `value` is a native function,
2264
+ * else `false`.
2024
2265
  */
2025
- function getNative(object, key) {
2026
- var value = getValue(object, key);
2027
- return baseIsNative(value) ? value : void 0;
2266
+ function baseIsNative(value) {
2267
+ if (!isObject(value) || isMasked(value)) return false;
2268
+ var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
2269
+ return pattern.test(toSource(value));
2028
2270
  }
2029
2271
  /**
2030
- * Gets the `toStringTag` of `value`.
2272
+ * The base implementation of `_.toString` which doesn't convert nullish
2273
+ * values to empty strings.
2031
2274
  *
2032
2275
  * @private
2033
- * @param {*} value The value to query.
2034
- * @returns {string} Returns the `toStringTag`.
2276
+ * @param {*} value The value to process.
2277
+ * @returns {string} Returns the string.
2035
2278
  */
2036
- var getTag = baseGetTag;
2037
- if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise$1 && getTag(Promise$1.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) getTag = function(value) {
2038
- var result = objectToString.call(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : void 0;
2039
- if (ctorString) switch (ctorString) {
2040
- case dataViewCtorString: return dataViewTag;
2041
- case mapCtorString: return mapTag;
2042
- case promiseCtorString: return promiseTag;
2043
- case setCtorString: return setTag;
2044
- case weakMapCtorString: return weakMapTag;
2045
- }
2046
- return result;
2047
- };
2279
+ function baseToString(value) {
2280
+ if (typeof value == "string") return value;
2281
+ if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : "";
2282
+ var result = value + "";
2283
+ return result == "0" && 1 / value == -INFINITY ? "-0" : result;
2284
+ }
2048
2285
  /**
2049
- * Checks if `path` exists on `object`.
2286
+ * Casts `value` to a path array if it's not one.
2050
2287
  *
2051
2288
  * @private
2052
- * @param {Object} object The object to query.
2053
- * @param {Array|string} path The path to check.
2054
- * @param {Function} hasFunc The function to check properties.
2055
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
2289
+ * @param {*} value The value to inspect.
2290
+ * @returns {Array} Returns the cast property path array.
2056
2291
  */
2057
- function hasPath(object, path, hasFunc) {
2058
- path = isKey(path, object) ? [path] : castPath(path);
2059
- var result, index = -1, length = path.length;
2060
- while (++index < length) {
2061
- var key = toKey(path[index]);
2062
- if (!(result = object != null && hasFunc(object, key))) break;
2063
- object = object[key];
2064
- }
2065
- if (result) return result;
2066
- var length = object ? object.length : 0;
2067
- return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object));
2292
+ function castPath(value) {
2293
+ return isArray(value) ? value : stringToPath(value);
2068
2294
  }
2069
2295
  /**
2070
- * Checks if `value` is a valid array-like index.
2296
+ * Gets the data for `map`.
2071
2297
  *
2072
2298
  * @private
2073
- * @param {*} value The value to check.
2074
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
2075
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
2299
+ * @param {Object} map The map to query.
2300
+ * @param {string} key The reference key.
2301
+ * @returns {*} Returns the map data.
2076
2302
  */
2077
- function isIndex(value, length) {
2078
- length = length == null ? MAX_SAFE_INTEGER : length;
2079
- return !!length && (typeof value == "number" || reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
2303
+ function getMapData(map, key) {
2304
+ var data = map.__data__;
2305
+ return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
2306
+ }
2307
+ /**
2308
+ * Gets the native function at `key` of `object`.
2309
+ *
2310
+ * @private
2311
+ * @param {Object} object The object to query.
2312
+ * @param {string} key The key of the method to get.
2313
+ * @returns {*} Returns the function if it's native, else `undefined`.
2314
+ */
2315
+ function getNative(object, key) {
2316
+ var value = getValue(object, key);
2317
+ return baseIsNative(value) ? value : void 0;
2080
2318
  }
2081
2319
  /**
2082
2320
  * Checks if `value` is a property name and not a property path.
@@ -2114,43 +2352,6 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
2114
2352
  return !!maskSrcKey && maskSrcKey in func;
2115
2353
  }
2116
2354
  /**
2117
- * Checks if `value` is likely a prototype object.
2118
- *
2119
- * @private
2120
- * @param {*} value The value to check.
2121
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
2122
- */
2123
- function isPrototype(value) {
2124
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
2125
- return value === proto;
2126
- }
2127
- /**
2128
- * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
2129
- *
2130
- * @private
2131
- * @param {*} value The value to check.
2132
- * @returns {boolean} Returns `true` if `value` if suitable for strict
2133
- * equality comparisons, else `false`.
2134
- */
2135
- function isStrictComparable(value) {
2136
- return value === value && !isObject(value);
2137
- }
2138
- /**
2139
- * A specialized version of `matchesProperty` for source values suitable
2140
- * for strict equality comparisons, i.e. `===`.
2141
- *
2142
- * @private
2143
- * @param {string} key The key of the property to get.
2144
- * @param {*} srcValue The value to match.
2145
- * @returns {Function} Returns the new spec function.
2146
- */
2147
- function matchesStrictComparable(key, srcValue) {
2148
- return function(object) {
2149
- if (object == null) return false;
2150
- return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
2151
- };
2152
- }
2153
- /**
2154
2355
  * Converts `string` to a property path array.
2155
2356
  *
2156
2357
  * @private
@@ -2197,31 +2398,6 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
2197
2398
  return "";
2198
2399
  }
2199
2400
  /**
2200
- * This method is like `_.uniq` except that it accepts `iteratee` which is
2201
- * invoked for each element in `array` to generate the criterion by which
2202
- * uniqueness is computed. The iteratee is invoked with one argument: (value).
2203
- *
2204
- * @static
2205
- * @memberOf _
2206
- * @since 4.0.0
2207
- * @category Array
2208
- * @param {Array} array The array to inspect.
2209
- * @param {Function} [iteratee=_.identity]
2210
- * The iteratee invoked per element.
2211
- * @returns {Array} Returns the new duplicate free array.
2212
- * @example
2213
- *
2214
- * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
2215
- * // => [2.1, 1.2]
2216
- *
2217
- * // The `_.property` iteratee shorthand.
2218
- * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
2219
- * // => [{ 'x': 1 }, { 'x': 2 }]
2220
- */
2221
- function uniqBy$2(array, iteratee) {
2222
- return array && array.length ? baseUniq(array, baseIteratee(iteratee, 2)) : [];
2223
- }
2224
- /**
2225
2401
  * Creates a function that memoizes the result of `func`. If `resolver` is
2226
2402
  * provided, it determines the cache key for storing the result based on the
2227
2403
  * arguments provided to the memoized function. By default, the first argument
@@ -2293,127 +2469,50 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
2293
2469
  * @example
2294
2470
  *
2295
2471
  * var object = { 'a': 1 };
2296
- * var other = { 'a': 1 };
2297
- *
2298
- * _.eq(object, object);
2299
- * // => true
2300
- *
2301
- * _.eq(object, other);
2302
- * // => false
2303
- *
2304
- * _.eq('a', 'a');
2305
- * // => true
2306
- *
2307
- * _.eq('a', Object('a'));
2308
- * // => false
2309
- *
2310
- * _.eq(NaN, NaN);
2311
- * // => true
2312
- */
2313
- function eq(value, other) {
2314
- return value === other || value !== value && other !== other;
2315
- }
2316
- /**
2317
- * Checks if `value` is likely an `arguments` object.
2318
- *
2319
- * @static
2320
- * @memberOf _
2321
- * @since 0.1.0
2322
- * @category Lang
2323
- * @param {*} value The value to check.
2324
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
2325
- * else `false`.
2326
- * @example
2327
- *
2328
- * _.isArguments(function() { return arguments; }());
2329
- * // => true
2330
- *
2331
- * _.isArguments([1, 2, 3]);
2332
- * // => false
2333
- */
2334
- function isArguments(value) {
2335
- return isArrayLikeObject(value) && hasOwnProperty.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString.call(value) == argsTag);
2336
- }
2337
- /**
2338
- * Checks if `value` is classified as an `Array` object.
2339
- *
2340
- * @static
2341
- * @memberOf _
2342
- * @since 0.1.0
2343
- * @category Lang
2344
- * @param {*} value The value to check.
2345
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
2346
- * @example
2347
- *
2348
- * _.isArray([1, 2, 3]);
2349
- * // => true
2350
- *
2351
- * _.isArray(document.body.children);
2352
- * // => false
2353
- *
2354
- * _.isArray('abc');
2355
- * // => false
2356
- *
2357
- * _.isArray(_.noop);
2358
- * // => false
2359
- */
2360
- var isArray = Array.isArray;
2361
- /**
2362
- * Checks if `value` is array-like. A value is considered array-like if it's
2363
- * not a function and has a `value.length` that's an integer greater than or
2364
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
2365
- *
2366
- * @static
2367
- * @memberOf _
2368
- * @since 4.0.0
2369
- * @category Lang
2370
- * @param {*} value The value to check.
2371
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
2372
- * @example
2472
+ * var other = { 'a': 1 };
2373
2473
  *
2374
- * _.isArrayLike([1, 2, 3]);
2474
+ * _.eq(object, object);
2375
2475
  * // => true
2376
2476
  *
2377
- * _.isArrayLike(document.body.children);
2378
- * // => true
2477
+ * _.eq(object, other);
2478
+ * // => false
2379
2479
  *
2380
- * _.isArrayLike('abc');
2480
+ * _.eq('a', 'a');
2381
2481
  * // => true
2382
2482
  *
2383
- * _.isArrayLike(_.noop);
2483
+ * _.eq('a', Object('a'));
2384
2484
  * // => false
2485
+ *
2486
+ * _.eq(NaN, NaN);
2487
+ * // => true
2385
2488
  */
2386
- function isArrayLike(value) {
2387
- return value != null && isLength(value.length) && !isFunction(value);
2489
+ function eq(value, other) {
2490
+ return value === other || value !== value && other !== other;
2388
2491
  }
2389
2492
  /**
2390
- * This method is like `_.isArrayLike` except that it also checks if `value`
2391
- * is an object.
2493
+ * Checks if `value` is classified as an `Array` object.
2392
2494
  *
2393
2495
  * @static
2394
2496
  * @memberOf _
2395
- * @since 4.0.0
2497
+ * @since 0.1.0
2396
2498
  * @category Lang
2397
2499
  * @param {*} value The value to check.
2398
- * @returns {boolean} Returns `true` if `value` is an array-like object,
2399
- * else `false`.
2500
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
2400
2501
  * @example
2401
2502
  *
2402
- * _.isArrayLikeObject([1, 2, 3]);
2503
+ * _.isArray([1, 2, 3]);
2403
2504
  * // => true
2404
2505
  *
2405
- * _.isArrayLikeObject(document.body.children);
2406
- * // => true
2506
+ * _.isArray(document.body.children);
2507
+ * // => false
2407
2508
  *
2408
- * _.isArrayLikeObject('abc');
2509
+ * _.isArray('abc');
2409
2510
  * // => false
2410
2511
  *
2411
- * _.isArrayLikeObject(_.noop);
2512
+ * _.isArray(_.noop);
2412
2513
  * // => false
2413
2514
  */
2414
- function isArrayLikeObject(value) {
2415
- return isObjectLike(value) && isArrayLike(value);
2416
- }
2515
+ var isArray = Array.isArray;
2417
2516
  /**
2418
2517
  * Checks if `value` is classified as a `Function` object.
2419
2518
  *
@@ -2436,35 +2535,6 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
2436
2535
  return tag == funcTag || tag == genTag;
2437
2536
  }
2438
2537
  /**
2439
- * Checks if `value` is a valid array-like length.
2440
- *
2441
- * **Note:** This method is loosely based on
2442
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
2443
- *
2444
- * @static
2445
- * @memberOf _
2446
- * @since 4.0.0
2447
- * @category Lang
2448
- * @param {*} value The value to check.
2449
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
2450
- * @example
2451
- *
2452
- * _.isLength(3);
2453
- * // => true
2454
- *
2455
- * _.isLength(Number.MIN_VALUE);
2456
- * // => false
2457
- *
2458
- * _.isLength(Infinity);
2459
- * // => false
2460
- *
2461
- * _.isLength('3');
2462
- * // => false
2463
- */
2464
- function isLength(value) {
2465
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
2466
- }
2467
- /**
2468
2538
  * Checks if `value` is the
2469
2539
  * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
2470
2540
  * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
@@ -2541,24 +2611,6 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
2541
2611
  return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
2542
2612
  }
2543
2613
  /**
2544
- * Checks if `value` is classified as a typed array.
2545
- *
2546
- * @static
2547
- * @memberOf _
2548
- * @since 3.0.0
2549
- * @category Lang
2550
- * @param {*} value The value to check.
2551
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
2552
- * @example
2553
- *
2554
- * _.isTypedArray(new Uint8Array);
2555
- * // => true
2556
- *
2557
- * _.isTypedArray([]);
2558
- * // => false
2559
- */
2560
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
2561
- /**
2562
2614
  * Converts `value` to a string. An empty string is returned for `null`
2563
2615
  * and `undefined` values. The sign of `-0` is preserved.
2564
2616
  *
@@ -2607,133 +2659,81 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
2607
2659
  * _.get(object, 'a.b.c', 'default');
2608
2660
  * // => 'default'
2609
2661
  */
2610
- function get(object, path, defaultValue) {
2662
+ function get$1(object, path, defaultValue) {
2611
2663
  var result = object == null ? void 0 : baseGet(object, path);
2612
2664
  return result === void 0 ? defaultValue : result;
2613
2665
  }
2614
- /**
2615
- * Checks if `path` is a direct or inherited property of `object`.
2616
- *
2617
- * @static
2618
- * @memberOf _
2619
- * @since 4.0.0
2620
- * @category Object
2621
- * @param {Object} object The object to query.
2622
- * @param {Array|string} path The path to check.
2623
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
2624
- * @example
2625
- *
2626
- * var object = _.create({ 'a': _.create({ 'b': 2 }) });
2627
- *
2628
- * _.hasIn(object, 'a');
2629
- * // => true
2630
- *
2631
- * _.hasIn(object, 'a.b');
2632
- * // => true
2633
- *
2634
- * _.hasIn(object, ['a', 'b']);
2635
- * // => true
2636
- *
2637
- * _.hasIn(object, 'b');
2638
- * // => false
2639
- */
2640
- function hasIn(object, path) {
2641
- return object != null && hasPath(object, path, baseHasIn);
2666
+ module.exports = get$1;
2667
+ } });
2668
+
2669
+ //#endregion
2670
+ //#region src/functions/BaseFunctionBuilder.ts
2671
+ var import_lodash$2 = require_chunk.__toESM(require_lodash(), 1);
2672
+ const DEFAULT_LOGGER$2 = new __geekmidas_logger_console.ConsoleLogger();
2673
+ var BaseFunctionBuilder = class BaseFunctionBuilder {
2674
+ inputSchema;
2675
+ outputSchema;
2676
+ _timeout;
2677
+ _services = [];
2678
+ _logger = DEFAULT_LOGGER$2;
2679
+ _events = [];
2680
+ _publisher;
2681
+ _auditorStorage;
2682
+ _databaseService;
2683
+ static isStandardSchemaV1(s) {
2684
+ const schema = s["~standard"];
2685
+ return schema && typeof schema.validate === "function";
2642
2686
  }
2643
- /**
2644
- * Creates an array of the own enumerable property names of `object`.
2645
- *
2646
- * **Note:** Non-object values are coerced to objects. See the
2647
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
2648
- * for more details.
2649
- *
2650
- * @static
2651
- * @since 0.1.0
2652
- * @memberOf _
2653
- * @category Object
2654
- * @param {Object} object The object to query.
2655
- * @returns {Array} Returns the array of property names.
2656
- * @example
2657
- *
2658
- * function Foo() {
2659
- * this.a = 1;
2660
- * this.b = 2;
2661
- * }
2662
- *
2663
- * Foo.prototype.c = 3;
2664
- *
2665
- * _.keys(new Foo);
2666
- * // => ['a', 'b'] (iteration order is not guaranteed)
2667
- *
2668
- * _.keys('hi');
2669
- * // => ['0', '1']
2670
- */
2671
- function keys(object) {
2672
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
2687
+ static async parseComposableStandardSchema(data, schema) {
2688
+ if (BaseFunctionBuilder.isStandardSchemaV1(schema)) {
2689
+ const validated = await schema["~standard"].validate(data);
2690
+ if (validated.issues) throw validated.issues;
2691
+ return validated.value;
2692
+ }
2693
+ const result = {};
2694
+ for (const key in schema) {
2695
+ const item = schema[key];
2696
+ if (BaseFunctionBuilder.isStandardSchemaV1(item)) {
2697
+ const value = (0, import_lodash$2.default)(data, key);
2698
+ const validated = await item["~standard"].validate(value);
2699
+ if (validated.issues) throw validated.issues;
2700
+ result[key] = validated.value;
2701
+ }
2702
+ }
2703
+ return result;
2673
2704
  }
2674
- /**
2675
- * This method returns the first argument it receives.
2676
- *
2677
- * @static
2678
- * @since 0.1.0
2679
- * @memberOf _
2680
- * @category Util
2681
- * @param {*} value Any value.
2682
- * @returns {*} Returns `value`.
2683
- * @example
2684
- *
2685
- * var object = { 'a': 1 };
2686
- *
2687
- * console.log(_.identity(object) === object);
2688
- * // => true
2689
- */
2690
- function identity(value) {
2691
- return value;
2705
+ constructor(type = require_Construct.ConstructType.Function) {
2706
+ this.type = type;
2707
+ }
2708
+ timeout(timeout) {
2709
+ this._timeout = timeout;
2710
+ return this;
2711
+ }
2712
+ event(event) {
2713
+ this._events.push(event);
2714
+ return this;
2715
+ }
2716
+ publisher(publisher) {
2717
+ this._publisher = publisher;
2718
+ return this;
2719
+ }
2720
+ auditor(storage) {
2721
+ this._auditorStorage = storage;
2722
+ return this;
2692
2723
  }
2693
2724
  /**
2694
- * This method returns `undefined`.
2695
- *
2696
- * @static
2697
- * @memberOf _
2698
- * @since 2.3.0
2699
- * @category Util
2700
- * @example
2701
- *
2702
- * _.times(2, _.noop);
2703
- * // => [undefined, undefined]
2704
- */
2705
- function noop() {}
2706
- /**
2707
- * Creates a function that returns the value at `path` of a given object.
2708
- *
2709
- * @static
2710
- * @memberOf _
2711
- * @since 2.4.0
2712
- * @category Util
2713
- * @param {Array|string} path The path of the property to get.
2714
- * @returns {Function} Returns the new accessor function.
2715
- * @example
2716
- *
2717
- * var objects = [
2718
- * { 'a': { 'b': 2 } },
2719
- * { 'a': { 'b': 1 } }
2720
- * ];
2721
- *
2722
- * _.map(objects, _.property('a.b'));
2723
- * // => [2, 1]
2724
- *
2725
- * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
2726
- * // => [1, 2]
2725
+ * Set the database service for this function.
2726
+ * The database will be available in the handler context as `db`.
2727
2727
  */
2728
- function property(path) {
2729
- return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
2728
+ database(service) {
2729
+ this._databaseService = service;
2730
+ return this;
2730
2731
  }
2731
- module.exports = uniqBy$2;
2732
- } });
2732
+ };
2733
2733
 
2734
2734
  //#endregion
2735
2735
  //#region src/functions/Function.ts
2736
- var import_lodash$1 = require_chunk.__toESM(require_lodash(), 1);
2736
+ var import_lodash$1 = require_chunk.__toESM(require_lodash$1(), 1);
2737
2737
  const DEFAULT_LOGGER$1 = new __geekmidas_logger_console.ConsoleLogger();
2738
2738
  var Function$1 = class Function$1 extends require_Construct.Construct {
2739
2739
  __IS_FUNCTION__ = true;
@@ -2785,7 +2785,7 @@ var Function$1 = class Function$1 extends require_Construct.Construct {
2785
2785
 
2786
2786
  //#endregion
2787
2787
  //#region src/functions/FunctionBuilder.ts
2788
- var import_lodash = require_chunk.__toESM(require_lodash(), 1);
2788
+ var import_lodash = require_chunk.__toESM(require_lodash$1(), 1);
2789
2789
  const DEFAULT_LOGGER = new __geekmidas_logger_console.ConsoleLogger();
2790
2790
  var FunctionBuilder = class extends BaseFunctionBuilder {
2791
2791
  _memorySize;
@@ -2888,7 +2888,7 @@ Object.defineProperty(exports, 'f', {
2888
2888
  Object.defineProperty(exports, 'require_lodash', {
2889
2889
  enumerable: true,
2890
2890
  get: function () {
2891
- return require_lodash;
2891
+ return require_lodash$1;
2892
2892
  }
2893
2893
  });
2894
- //# sourceMappingURL=functions-CX21wstW.cjs.map
2894
+ //# sourceMappingURL=functions-_OAiwGYh.cjs.map