@zonos/elements 1.3.4-alpha.0 → 1.3.4-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{cart-cfa5d5fd.js → cart-f31374d4.js} +4 -4
- package/dist/cjs/{getBorderRadius-c3c63ee6.js → getBorderRadius-cd7ef574.js} +1 -1
- package/dist/cjs/{index-0dcccc22.js → index-3ead02fe.js} +56 -22
- package/dist/cjs/index.cjs.js +6 -6
- package/dist/cjs/{isDarkColor-fc8c294a.js → isDarkColor-5eda1323.js} +7 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-4746acf7.js → localization-d43e1540.js} +1 -1
- package/dist/cjs/{submitGtag-ca175427.js → submitGtag-42f29b3a.js} +2 -2
- package/dist/cjs/zonos-address_2.cjs.entry.js +12 -10
- package/dist/cjs/zonos-badge.cjs.entry.js +7 -6
- package/dist/cjs/zonos-banner.cjs.entry.js +4 -3
- package/dist/cjs/zonos-button_2.cjs.entry.js +11 -9
- package/dist/cjs/zonos-card_2.cjs.entry.js +10 -8
- package/dist/cjs/zonos-cart-items_10.cjs.entry.js +36 -26
- package/dist/cjs/zonos-checkout.cjs.entry.js +9 -8
- package/dist/cjs/zonos-component.cjs.entry.js +4 -3
- package/dist/cjs/zonos-controller.cjs.entry.js +9 -8
- package/dist/cjs/zonos-country-flag_4.cjs.entry.js +19 -15
- package/dist/cjs/zonos-elements.cjs.js +2 -2
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +7 -6
- package/dist/cjs/zonos-hello.cjs.entry.js +44 -27
- package/dist/cjs/zonos-icon.cjs.entry.js +4 -3
- package/dist/cjs/zonos-notification.cjs.entry.js +6 -5
- package/dist/cjs/zonos-payment.cjs.entry.js +9 -8
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +6 -5
- package/dist/cjs/zonos-text.cjs.entry.js +4 -3
- package/dist/cjs/{zonosStore-10d1d6ff.js → zonosStore-b88b5671.js} +571 -332
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +1 -1
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
- package/dist/collection/components/common/zonos-card/zonos-card.js +2 -2
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-notification/zonos-notification.js +2 -2
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +1 -1
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +2 -2
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/components/isDarkColor.js +7 -3
- package/dist/components/zonos-address2.js +3 -2
- package/dist/components/zonos-badge2.js +6 -5
- package/dist/components/zonos-banner2.js +3 -2
- package/dist/components/zonos-button2.js +6 -5
- package/dist/components/zonos-card2.js +5 -4
- package/dist/components/zonos-cart-items2.js +3 -2
- package/dist/components/zonos-cart-subtotal2.js +2 -1
- package/dist/components/zonos-checkout-finish2.js +3 -2
- package/dist/components/zonos-checkout-payment2.js +2 -1
- package/dist/components/zonos-checkout.js +2 -1
- package/dist/components/zonos-collapse2.js +5 -4
- package/dist/components/zonos-component.js +3 -2
- package/dist/components/zonos-controller.js +4 -3
- package/dist/components/zonos-country-flag2.js +3 -2
- package/dist/components/zonos-country-select2.js +6 -5
- package/dist/components/zonos-custom-message2.js +5 -4
- package/dist/components/zonos-customer-info2.js +2 -1
- package/dist/components/zonos-dialog2.js +6 -5
- package/dist/components/zonos-hello-dialog-footer2.js +4 -3
- package/dist/components/zonos-hello-dialog2.js +4 -3
- package/dist/components/zonos-hello.js +42 -25
- package/dist/components/zonos-icon2.js +3 -2
- package/dist/components/zonos-link-authentication2.js +3 -2
- package/dist/components/zonos-logo2.js +5 -4
- package/dist/components/zonos-notification2.js +5 -4
- package/dist/components/zonos-payment2.js +3 -2
- package/dist/components/zonos-review2.js +2 -1
- package/dist/components/zonos-shipping-rich-radio2.js +4 -3
- package/dist/components/zonos-shipping2.js +2 -1
- package/dist/components/zonos-spinner2.js +2 -1
- package/dist/components/zonos-text2.js +3 -2
- package/dist/components/zonos-v-stack2.js +5 -4
- package/dist/components/zonosStore.js +571 -331
- package/dist/esm/{cart-d81b92ea.js → cart-c9124cc3.js} +4 -4
- package/dist/esm/{getBorderRadius-77e97943.js → getBorderRadius-9e4cb3b1.js} +1 -1
- package/dist/esm/{index-36ff6342.js → index-81a199ef.js} +56 -22
- package/dist/esm/index.js +6 -6
- package/dist/esm/{isDarkColor-69090b29.js → isDarkColor-8696cb70.js} +7 -3
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{localization-0c5b29fd.js → localization-5d83fde2.js} +1 -1
- package/dist/esm/{submitGtag-8a0fbd41.js → submitGtag-a7d07aec.js} +2 -2
- package/dist/esm/zonos-address_2.entry.js +12 -10
- package/dist/esm/zonos-badge.entry.js +7 -6
- package/dist/esm/zonos-banner.entry.js +4 -3
- package/dist/esm/zonos-button_2.entry.js +11 -9
- package/dist/esm/zonos-card_2.entry.js +10 -8
- package/dist/esm/zonos-cart-items_10.entry.js +36 -26
- package/dist/esm/zonos-checkout.entry.js +9 -8
- package/dist/esm/zonos-component.entry.js +4 -3
- package/dist/esm/zonos-controller.entry.js +9 -8
- package/dist/esm/zonos-country-flag_4.entry.js +19 -15
- package/dist/esm/zonos-elements.js +3 -3
- package/dist/esm/zonos-hello-dialog.entry.js +7 -6
- package/dist/esm/zonos-hello.entry.js +44 -27
- package/dist/esm/zonos-icon.entry.js +4 -3
- package/dist/esm/zonos-notification.entry.js +6 -5
- package/dist/esm/zonos-payment.entry.js +9 -8
- package/dist/esm/zonos-shipping-rich-radio.entry.js +6 -5
- package/dist/esm/zonos-text.entry.js +4 -3
- package/dist/esm/{zonosStore-34f07ee8.js → zonosStore-e59617f8.js} +572 -332
- package/dist/esm-es5/{cart-d81b92ea.js → cart-c9124cc3.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-77e97943.js → getBorderRadius-9e4cb3b1.js} +1 -1
- package/dist/esm-es5/index-81a199ef.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/isDarkColor-8696cb70.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{localization-0c5b29fd.js → localization-5d83fde2.js} +1 -1
- package/dist/esm-es5/{submitGtag-8a0fbd41.js → submitGtag-a7d07aec.js} +1 -1
- package/dist/esm-es5/zonos-address_2.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_2.entry.js +1 -1
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-icon.entry.js +1 -1
- package/dist/esm-es5/zonos-notification.entry.js +1 -1
- package/dist/esm-es5/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonosStore-e59617f8.js +1 -0
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/scripts/zonosBase.js +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-0024f8c2.js +1 -0
- package/dist/zonos-elements/p-027abb50.entry.js +1 -0
- package/dist/zonos-elements/{p-a54d8db3.system.js → p-12ecf765.system.js} +1 -1
- package/dist/zonos-elements/p-139fc767.entry.js +1 -0
- package/dist/zonos-elements/p-1c00ffea.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c1e298d5.system.entry.js → p-21793192.entry.js} +1 -1
- package/dist/zonos-elements/p-26edde4d.system.entry.js +1 -0
- package/dist/zonos-elements/p-28d7b75d.entry.js +1 -0
- package/dist/zonos-elements/p-2ac66cea.system.entry.js +1 -0
- package/dist/zonos-elements/p-39d12bf0.entry.js +1 -0
- package/dist/zonos-elements/p-3d965e88.entry.js +1 -0
- package/dist/zonos-elements/p-410045c5.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c0494ed6.entry.js → p-43220d68.entry.js} +1 -1
- package/dist/zonos-elements/p-4d39efb6.system.js +2 -0
- package/dist/zonos-elements/p-4d8545e1.js +2 -0
- package/dist/zonos-elements/{p-ed074fbf.system.js → p-51a40ddf.system.js} +1 -1
- package/dist/zonos-elements/{p-5bada106.system.entry.js → p-5a0264e8.system.entry.js} +1 -1
- package/dist/zonos-elements/p-5d91e45c.entry.js +1 -0
- package/dist/zonos-elements/p-62851827.system.entry.js +1 -0
- package/dist/zonos-elements/p-73174d0c.system.entry.js +1 -0
- package/dist/zonos-elements/p-741a1402.system.entry.js +1 -0
- package/dist/zonos-elements/p-7748735d.entry.js +1 -0
- package/dist/zonos-elements/p-7cae86a0.system.entry.js +1 -0
- package/dist/zonos-elements/p-7f68c103.system.js +1 -0
- package/dist/zonos-elements/p-83bb8727.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a244579e.js → p-8ebc0b64.js} +1 -1
- package/dist/zonos-elements/p-97e659b7.entry.js +1 -0
- package/dist/zonos-elements/p-9f3cad08.entry.js +1 -0
- package/dist/zonos-elements/{p-ab179c88.system.js → p-a6f2e282.system.js} +1 -1
- package/dist/zonos-elements/p-afed9236.entry.js +1 -0
- package/dist/zonos-elements/{p-24fbe845.system.js → p-b035f9e5.system.js} +1 -1
- package/dist/zonos-elements/{p-3509ffaa.entry.js → p-b1ffb37b.entry.js} +1 -1
- package/dist/zonos-elements/{p-17ef815f.entry.js → p-b494d540.entry.js} +1 -1
- package/dist/zonos-elements/{p-06a332cd.js → p-b87fa3a1.js} +1 -1
- package/dist/zonos-elements/{p-ab00288a.entry.js → p-bd02a65c.entry.js} +1 -1
- package/dist/zonos-elements/p-be23cc91.system.entry.js +1 -0
- package/dist/zonos-elements/p-bea31a7b.system.entry.js +1 -0
- package/dist/zonos-elements/p-c134eecd.system.js +1 -0
- package/dist/zonos-elements/p-d170748c.system.entry.js +1 -0
- package/dist/zonos-elements/p-dc09ca69.system.js +1 -0
- package/dist/zonos-elements/{p-2b41549a.js → p-e59b6648.js} +1 -1
- package/dist/zonos-elements/p-e8da4463.js +1 -0
- package/dist/zonos-elements/{p-ccd1794a.system.entry.js → p-eb96f893.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5066955b.system.js → p-ee8b44c0.system.js} +1 -1
- package/dist/zonos-elements/{p-935fa685.system.entry.js → p-efd1544b.system.entry.js} +1 -1
- package/dist/zonos-elements/p-f2733cc7.js +1 -0
- package/dist/zonos-elements/{p-e6556b0d.entry.js → p-f342e7c7.entry.js} +1 -1
- package/dist/zonos-elements/p-f7b1dfd0.system.entry.js +1 -0
- package/dist/zonos-elements/p-f82e000f.system.entry.js +1 -0
- package/dist/zonos-elements/p-ffc91e42.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +29 -29
- package/dist/esm-es5/index-36ff6342.js +0 -2
- package/dist/esm-es5/isDarkColor-69090b29.js +0 -1
- package/dist/esm-es5/zonosStore-34f07ee8.js +0 -1
- package/dist/zonos-elements/p-02175f85.entry.js +0 -1
- package/dist/zonos-elements/p-124857ae.entry.js +0 -1
- package/dist/zonos-elements/p-18904b7c.system.js +0 -2
- package/dist/zonos-elements/p-1f494581.system.entry.js +0 -1
- package/dist/zonos-elements/p-2e1e9074.js +0 -1
- package/dist/zonos-elements/p-3c8763a7.entry.js +0 -1
- package/dist/zonos-elements/p-3e7444c6.entry.js +0 -1
- package/dist/zonos-elements/p-4b3baf99.js +0 -1
- package/dist/zonos-elements/p-53ea93c2.system.entry.js +0 -1
- package/dist/zonos-elements/p-67154df2.system.entry.js +0 -1
- package/dist/zonos-elements/p-684ed483.entry.js +0 -1
- package/dist/zonos-elements/p-72cfaee2.system.entry.js +0 -1
- package/dist/zonos-elements/p-7730250d.system.js +0 -1
- package/dist/zonos-elements/p-80748529.system.entry.js +0 -1
- package/dist/zonos-elements/p-86f22026.js +0 -1
- package/dist/zonos-elements/p-88600956.entry.js +0 -1
- package/dist/zonos-elements/p-8b1cb8a4.entry.js +0 -1
- package/dist/zonos-elements/p-8bd04aaa.entry.js +0 -1
- package/dist/zonos-elements/p-956efa27.js +0 -2
- package/dist/zonos-elements/p-9c1f19b6.entry.js +0 -1
- package/dist/zonos-elements/p-a063c4b7.entry.js +0 -1
- package/dist/zonos-elements/p-a174d834.system.js +0 -1
- package/dist/zonos-elements/p-b3a71ae4.system.entry.js +0 -1
- package/dist/zonos-elements/p-b3e034bb.system.entry.js +0 -1
- package/dist/zonos-elements/p-bb7de2c4.system.entry.js +0 -1
- package/dist/zonos-elements/p-c1665c4f.system.js +0 -1
- package/dist/zonos-elements/p-c520d819.system.entry.js +0 -1
- package/dist/zonos-elements/p-ca875e60.system.entry.js +0 -1
- package/dist/zonos-elements/p-e2c7adaa.system.entry.js +0 -1
- package/dist/zonos-elements/p-e3bca405.entry.js +0 -1
- package/dist/zonos-elements/p-e58cc024.entry.js +0 -1
- package/dist/zonos-elements/p-f1e9b431.system.entry.js +0 -1
- package/dist/zonos-elements/p-fbc09dae.system.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-3ead02fe.js');
|
|
4
4
|
|
|
5
5
|
const appendToMap = (map, propName, value) => {
|
|
6
6
|
const items = map.get(propName);
|
|
@@ -193,6 +193,8 @@ const createStore = (defaultState, shouldUpdate) => {
|
|
|
193
193
|
return map;
|
|
194
194
|
};
|
|
195
195
|
|
|
196
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
197
|
+
|
|
196
198
|
/**
|
|
197
199
|
* Removes all key-value entries from the list cache.
|
|
198
200
|
*
|
|
@@ -200,12 +202,13 @@ const createStore = (defaultState, shouldUpdate) => {
|
|
|
200
202
|
* @name clear
|
|
201
203
|
* @memberOf ListCache
|
|
202
204
|
*/
|
|
203
|
-
|
|
205
|
+
|
|
206
|
+
function listCacheClear$1() {
|
|
204
207
|
this.__data__ = [];
|
|
205
208
|
this.size = 0;
|
|
206
209
|
}
|
|
207
210
|
|
|
208
|
-
var _listCacheClear = listCacheClear;
|
|
211
|
+
var _listCacheClear = listCacheClear$1;
|
|
209
212
|
|
|
210
213
|
/**
|
|
211
214
|
* Performs a
|
|
@@ -239,11 +242,14 @@ var _listCacheClear = listCacheClear;
|
|
|
239
242
|
* _.eq(NaN, NaN);
|
|
240
243
|
* // => true
|
|
241
244
|
*/
|
|
242
|
-
|
|
245
|
+
|
|
246
|
+
function eq$4(value, other) {
|
|
243
247
|
return value === other || (value !== value && other !== other);
|
|
244
248
|
}
|
|
245
249
|
|
|
246
|
-
var eq_1 = eq;
|
|
250
|
+
var eq_1 = eq$4;
|
|
251
|
+
|
|
252
|
+
var eq$3 = eq_1;
|
|
247
253
|
|
|
248
254
|
/**
|
|
249
255
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
@@ -253,17 +259,19 @@ var eq_1 = eq;
|
|
|
253
259
|
* @param {*} key The key to search for.
|
|
254
260
|
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
255
261
|
*/
|
|
256
|
-
function assocIndexOf(array, key) {
|
|
262
|
+
function assocIndexOf$4(array, key) {
|
|
257
263
|
var length = array.length;
|
|
258
264
|
while (length--) {
|
|
259
|
-
if (
|
|
265
|
+
if (eq$3(array[length][0], key)) {
|
|
260
266
|
return length;
|
|
261
267
|
}
|
|
262
268
|
}
|
|
263
269
|
return -1;
|
|
264
270
|
}
|
|
265
271
|
|
|
266
|
-
var _assocIndexOf = assocIndexOf;
|
|
272
|
+
var _assocIndexOf = assocIndexOf$4;
|
|
273
|
+
|
|
274
|
+
var assocIndexOf$3 = _assocIndexOf;
|
|
267
275
|
|
|
268
276
|
/** Used for built-in method references. */
|
|
269
277
|
var arrayProto = Array.prototype;
|
|
@@ -280,9 +288,9 @@ var splice = arrayProto.splice;
|
|
|
280
288
|
* @param {string} key The key of the value to remove.
|
|
281
289
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
282
290
|
*/
|
|
283
|
-
function listCacheDelete(key) {
|
|
291
|
+
function listCacheDelete$1(key) {
|
|
284
292
|
var data = this.__data__,
|
|
285
|
-
index =
|
|
293
|
+
index = assocIndexOf$3(data, key);
|
|
286
294
|
|
|
287
295
|
if (index < 0) {
|
|
288
296
|
return false;
|
|
@@ -297,7 +305,9 @@ function listCacheDelete(key) {
|
|
|
297
305
|
return true;
|
|
298
306
|
}
|
|
299
307
|
|
|
300
|
-
var _listCacheDelete = listCacheDelete;
|
|
308
|
+
var _listCacheDelete = listCacheDelete$1;
|
|
309
|
+
|
|
310
|
+
var assocIndexOf$2 = _assocIndexOf;
|
|
301
311
|
|
|
302
312
|
/**
|
|
303
313
|
* Gets the list cache value for `key`.
|
|
@@ -308,14 +318,16 @@ var _listCacheDelete = listCacheDelete;
|
|
|
308
318
|
* @param {string} key The key of the value to get.
|
|
309
319
|
* @returns {*} Returns the entry value.
|
|
310
320
|
*/
|
|
311
|
-
function listCacheGet(key) {
|
|
321
|
+
function listCacheGet$1(key) {
|
|
312
322
|
var data = this.__data__,
|
|
313
|
-
index =
|
|
323
|
+
index = assocIndexOf$2(data, key);
|
|
314
324
|
|
|
315
325
|
return index < 0 ? undefined : data[index][1];
|
|
316
326
|
}
|
|
317
327
|
|
|
318
|
-
var _listCacheGet = listCacheGet;
|
|
328
|
+
var _listCacheGet = listCacheGet$1;
|
|
329
|
+
|
|
330
|
+
var assocIndexOf$1 = _assocIndexOf;
|
|
319
331
|
|
|
320
332
|
/**
|
|
321
333
|
* Checks if a list cache value for `key` exists.
|
|
@@ -326,11 +338,13 @@ var _listCacheGet = listCacheGet;
|
|
|
326
338
|
* @param {string} key The key of the entry to check.
|
|
327
339
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
328
340
|
*/
|
|
329
|
-
function listCacheHas(key) {
|
|
330
|
-
return
|
|
341
|
+
function listCacheHas$1(key) {
|
|
342
|
+
return assocIndexOf$1(this.__data__, key) > -1;
|
|
331
343
|
}
|
|
332
344
|
|
|
333
|
-
var _listCacheHas = listCacheHas;
|
|
345
|
+
var _listCacheHas = listCacheHas$1;
|
|
346
|
+
|
|
347
|
+
var assocIndexOf = _assocIndexOf;
|
|
334
348
|
|
|
335
349
|
/**
|
|
336
350
|
* Sets the list cache `key` to `value`.
|
|
@@ -342,9 +356,9 @@ var _listCacheHas = listCacheHas;
|
|
|
342
356
|
* @param {*} value The value to set.
|
|
343
357
|
* @returns {Object} Returns the list cache instance.
|
|
344
358
|
*/
|
|
345
|
-
function listCacheSet(key, value) {
|
|
359
|
+
function listCacheSet$1(key, value) {
|
|
346
360
|
var data = this.__data__,
|
|
347
|
-
index =
|
|
361
|
+
index = assocIndexOf(data, key);
|
|
348
362
|
|
|
349
363
|
if (index < 0) {
|
|
350
364
|
++this.size;
|
|
@@ -355,7 +369,13 @@ function listCacheSet(key, value) {
|
|
|
355
369
|
return this;
|
|
356
370
|
}
|
|
357
371
|
|
|
358
|
-
var _listCacheSet = listCacheSet;
|
|
372
|
+
var _listCacheSet = listCacheSet$1;
|
|
373
|
+
|
|
374
|
+
var listCacheClear = _listCacheClear,
|
|
375
|
+
listCacheDelete = _listCacheDelete,
|
|
376
|
+
listCacheGet = _listCacheGet,
|
|
377
|
+
listCacheHas = _listCacheHas,
|
|
378
|
+
listCacheSet = _listCacheSet;
|
|
359
379
|
|
|
360
380
|
/**
|
|
361
381
|
* Creates an list cache object.
|
|
@@ -364,7 +384,7 @@ var _listCacheSet = listCacheSet;
|
|
|
364
384
|
* @constructor
|
|
365
385
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
366
386
|
*/
|
|
367
|
-
function ListCache(entries) {
|
|
387
|
+
function ListCache$4(entries) {
|
|
368
388
|
var index = -1,
|
|
369
389
|
length = entries == null ? 0 : entries.length;
|
|
370
390
|
|
|
@@ -376,13 +396,15 @@ function ListCache(entries) {
|
|
|
376
396
|
}
|
|
377
397
|
|
|
378
398
|
// Add methods to `ListCache`.
|
|
379
|
-
ListCache.prototype.clear =
|
|
380
|
-
ListCache.prototype['delete'] =
|
|
381
|
-
ListCache.prototype.get =
|
|
382
|
-
ListCache.prototype.has =
|
|
383
|
-
ListCache.prototype.set =
|
|
399
|
+
ListCache$4.prototype.clear = listCacheClear;
|
|
400
|
+
ListCache$4.prototype['delete'] = listCacheDelete;
|
|
401
|
+
ListCache$4.prototype.get = listCacheGet;
|
|
402
|
+
ListCache$4.prototype.has = listCacheHas;
|
|
403
|
+
ListCache$4.prototype.set = listCacheSet;
|
|
404
|
+
|
|
405
|
+
var _ListCache = ListCache$4;
|
|
384
406
|
|
|
385
|
-
var
|
|
407
|
+
var ListCache$3 = _ListCache;
|
|
386
408
|
|
|
387
409
|
/**
|
|
388
410
|
* Removes all key-value entries from the stack.
|
|
@@ -391,12 +413,12 @@ var _ListCache = ListCache;
|
|
|
391
413
|
* @name clear
|
|
392
414
|
* @memberOf Stack
|
|
393
415
|
*/
|
|
394
|
-
function stackClear() {
|
|
395
|
-
this.__data__ = new
|
|
416
|
+
function stackClear$1() {
|
|
417
|
+
this.__data__ = new ListCache$3;
|
|
396
418
|
this.size = 0;
|
|
397
419
|
}
|
|
398
420
|
|
|
399
|
-
var _stackClear = stackClear;
|
|
421
|
+
var _stackClear = stackClear$1;
|
|
400
422
|
|
|
401
423
|
/**
|
|
402
424
|
* Removes `key` and its value from the stack.
|
|
@@ -407,7 +429,8 @@ var _stackClear = stackClear;
|
|
|
407
429
|
* @param {string} key The key of the value to remove.
|
|
408
430
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
409
431
|
*/
|
|
410
|
-
|
|
432
|
+
|
|
433
|
+
function stackDelete$1(key) {
|
|
411
434
|
var data = this.__data__,
|
|
412
435
|
result = data['delete'](key);
|
|
413
436
|
|
|
@@ -415,7 +438,7 @@ function stackDelete(key) {
|
|
|
415
438
|
return result;
|
|
416
439
|
}
|
|
417
440
|
|
|
418
|
-
var _stackDelete = stackDelete;
|
|
441
|
+
var _stackDelete = stackDelete$1;
|
|
419
442
|
|
|
420
443
|
/**
|
|
421
444
|
* Gets the stack value for `key`.
|
|
@@ -426,11 +449,12 @@ var _stackDelete = stackDelete;
|
|
|
426
449
|
* @param {string} key The key of the value to get.
|
|
427
450
|
* @returns {*} Returns the entry value.
|
|
428
451
|
*/
|
|
429
|
-
|
|
452
|
+
|
|
453
|
+
function stackGet$1(key) {
|
|
430
454
|
return this.__data__.get(key);
|
|
431
455
|
}
|
|
432
456
|
|
|
433
|
-
var _stackGet = stackGet;
|
|
457
|
+
var _stackGet = stackGet$1;
|
|
434
458
|
|
|
435
459
|
/**
|
|
436
460
|
* Checks if a stack value for `key` exists.
|
|
@@ -441,45 +465,37 @@ var _stackGet = stackGet;
|
|
|
441
465
|
* @param {string} key The key of the entry to check.
|
|
442
466
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
443
467
|
*/
|
|
444
|
-
|
|
468
|
+
|
|
469
|
+
function stackHas$1(key) {
|
|
445
470
|
return this.__data__.has(key);
|
|
446
471
|
}
|
|
447
472
|
|
|
448
|
-
var _stackHas = stackHas;
|
|
473
|
+
var _stackHas = stackHas$1;
|
|
449
474
|
|
|
450
|
-
|
|
475
|
+
/** Detect free variable `global` from Node.js. */
|
|
451
476
|
|
|
452
|
-
|
|
453
|
-
return module = {
|
|
454
|
-
path: basedir,
|
|
455
|
-
exports: {},
|
|
456
|
-
require: function (path, base) {
|
|
457
|
-
return commonjsRequire();
|
|
458
|
-
}
|
|
459
|
-
}, fn(module, module.exports), module.exports;
|
|
460
|
-
}
|
|
477
|
+
var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
461
478
|
|
|
462
|
-
|
|
463
|
-
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
464
|
-
}
|
|
479
|
+
var _freeGlobal = freeGlobal$1;
|
|
465
480
|
|
|
466
|
-
|
|
467
|
-
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
468
|
-
|
|
469
|
-
var _freeGlobal = freeGlobal;
|
|
481
|
+
var freeGlobal = _freeGlobal;
|
|
470
482
|
|
|
471
483
|
/** Detect free variable `self`. */
|
|
472
484
|
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
473
485
|
|
|
474
486
|
/** Used as a reference to the global object. */
|
|
475
|
-
var root =
|
|
487
|
+
var root$4 = freeGlobal || freeSelf || Function('return this')();
|
|
488
|
+
|
|
489
|
+
var _root = root$4;
|
|
476
490
|
|
|
477
|
-
var
|
|
491
|
+
var root$3 = _root;
|
|
478
492
|
|
|
479
493
|
/** Built-in value references. */
|
|
480
|
-
var Symbol =
|
|
494
|
+
var Symbol$2 = root$3.Symbol;
|
|
481
495
|
|
|
482
|
-
var _Symbol = Symbol;
|
|
496
|
+
var _Symbol = Symbol$2;
|
|
497
|
+
|
|
498
|
+
var Symbol$1 = _Symbol;
|
|
483
499
|
|
|
484
500
|
/** Used for built-in method references. */
|
|
485
501
|
var objectProto$a = Object.prototype;
|
|
@@ -495,7 +511,7 @@ var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
|
|
|
495
511
|
var nativeObjectToString$1 = objectProto$a.toString;
|
|
496
512
|
|
|
497
513
|
/** Built-in value references. */
|
|
498
|
-
var symToStringTag$1 =
|
|
514
|
+
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
499
515
|
|
|
500
516
|
/**
|
|
501
517
|
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
@@ -504,7 +520,7 @@ var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
|
|
|
504
520
|
* @param {*} value The value to query.
|
|
505
521
|
* @returns {string} Returns the raw `toStringTag`.
|
|
506
522
|
*/
|
|
507
|
-
function getRawTag(value) {
|
|
523
|
+
function getRawTag$1(value) {
|
|
508
524
|
var isOwn = hasOwnProperty$8.call(value, symToStringTag$1),
|
|
509
525
|
tag = value[symToStringTag$1];
|
|
510
526
|
|
|
@@ -524,9 +540,10 @@ function getRawTag(value) {
|
|
|
524
540
|
return result;
|
|
525
541
|
}
|
|
526
542
|
|
|
527
|
-
var _getRawTag = getRawTag;
|
|
543
|
+
var _getRawTag = getRawTag$1;
|
|
528
544
|
|
|
529
545
|
/** Used for built-in method references. */
|
|
546
|
+
|
|
530
547
|
var objectProto$9 = Object.prototype;
|
|
531
548
|
|
|
532
549
|
/**
|
|
@@ -543,18 +560,22 @@ var nativeObjectToString = objectProto$9.toString;
|
|
|
543
560
|
* @param {*} value The value to convert.
|
|
544
561
|
* @returns {string} Returns the converted string.
|
|
545
562
|
*/
|
|
546
|
-
function objectToString(value) {
|
|
563
|
+
function objectToString$1(value) {
|
|
547
564
|
return nativeObjectToString.call(value);
|
|
548
565
|
}
|
|
549
566
|
|
|
550
|
-
var _objectToString = objectToString;
|
|
567
|
+
var _objectToString = objectToString$1;
|
|
568
|
+
|
|
569
|
+
var Symbol = _Symbol,
|
|
570
|
+
getRawTag = _getRawTag,
|
|
571
|
+
objectToString = _objectToString;
|
|
551
572
|
|
|
552
573
|
/** `Object#toString` result references. */
|
|
553
574
|
var nullTag = '[object Null]',
|
|
554
575
|
undefinedTag = '[object Undefined]';
|
|
555
576
|
|
|
556
577
|
/** Built-in value references. */
|
|
557
|
-
var symToStringTag =
|
|
578
|
+
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
|
|
558
579
|
|
|
559
580
|
/**
|
|
560
581
|
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
@@ -563,16 +584,16 @@ var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
|
|
|
563
584
|
* @param {*} value The value to query.
|
|
564
585
|
* @returns {string} Returns the `toStringTag`.
|
|
565
586
|
*/
|
|
566
|
-
function baseGetTag(value) {
|
|
587
|
+
function baseGetTag$4(value) {
|
|
567
588
|
if (value == null) {
|
|
568
589
|
return value === undefined ? undefinedTag : nullTag;
|
|
569
590
|
}
|
|
570
591
|
return (symToStringTag && symToStringTag in Object(value))
|
|
571
|
-
?
|
|
572
|
-
:
|
|
592
|
+
? getRawTag(value)
|
|
593
|
+
: objectToString(value);
|
|
573
594
|
}
|
|
574
595
|
|
|
575
|
-
var _baseGetTag = baseGetTag;
|
|
596
|
+
var _baseGetTag = baseGetTag$4;
|
|
576
597
|
|
|
577
598
|
/**
|
|
578
599
|
* Checks if `value` is the
|
|
@@ -599,12 +620,16 @@ var _baseGetTag = baseGetTag;
|
|
|
599
620
|
* _.isObject(null);
|
|
600
621
|
* // => false
|
|
601
622
|
*/
|
|
602
|
-
|
|
623
|
+
|
|
624
|
+
function isObject$7(value) {
|
|
603
625
|
var type = typeof value;
|
|
604
626
|
return value != null && (type == 'object' || type == 'function');
|
|
605
627
|
}
|
|
606
628
|
|
|
607
|
-
var isObject_1 = isObject;
|
|
629
|
+
var isObject_1 = isObject$7;
|
|
630
|
+
|
|
631
|
+
var baseGetTag$3 = _baseGetTag,
|
|
632
|
+
isObject$6 = isObject_1;
|
|
608
633
|
|
|
609
634
|
/** `Object#toString` result references. */
|
|
610
635
|
var asyncTag = '[object AsyncFunction]',
|
|
@@ -629,26 +654,30 @@ var asyncTag = '[object AsyncFunction]',
|
|
|
629
654
|
* _.isFunction(/abc/);
|
|
630
655
|
* // => false
|
|
631
656
|
*/
|
|
632
|
-
function isFunction(value) {
|
|
633
|
-
if (!
|
|
657
|
+
function isFunction$3(value) {
|
|
658
|
+
if (!isObject$6(value)) {
|
|
634
659
|
return false;
|
|
635
660
|
}
|
|
636
661
|
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
637
662
|
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
638
|
-
var tag =
|
|
663
|
+
var tag = baseGetTag$3(value);
|
|
639
664
|
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
640
665
|
}
|
|
641
666
|
|
|
642
|
-
var isFunction_1 = isFunction;
|
|
667
|
+
var isFunction_1 = isFunction$3;
|
|
668
|
+
|
|
669
|
+
var root$2 = _root;
|
|
643
670
|
|
|
644
671
|
/** Used to detect overreaching core-js shims. */
|
|
645
|
-
var coreJsData =
|
|
672
|
+
var coreJsData$1 = root$2['__core-js_shared__'];
|
|
646
673
|
|
|
647
|
-
var _coreJsData = coreJsData;
|
|
674
|
+
var _coreJsData = coreJsData$1;
|
|
675
|
+
|
|
676
|
+
var coreJsData = _coreJsData;
|
|
648
677
|
|
|
649
678
|
/** Used to detect methods masquerading as native. */
|
|
650
679
|
var maskSrcKey = (function() {
|
|
651
|
-
var uid = /[^.]+$/.exec(
|
|
680
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
|
|
652
681
|
return uid ? ('Symbol(src)_1.' + uid) : '';
|
|
653
682
|
}());
|
|
654
683
|
|
|
@@ -659,13 +688,14 @@ var maskSrcKey = (function() {
|
|
|
659
688
|
* @param {Function} func The function to check.
|
|
660
689
|
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
661
690
|
*/
|
|
662
|
-
function isMasked(func) {
|
|
691
|
+
function isMasked$1(func) {
|
|
663
692
|
return !!maskSrcKey && (maskSrcKey in func);
|
|
664
693
|
}
|
|
665
694
|
|
|
666
|
-
var _isMasked = isMasked;
|
|
695
|
+
var _isMasked = isMasked$1;
|
|
667
696
|
|
|
668
697
|
/** Used for built-in method references. */
|
|
698
|
+
|
|
669
699
|
var funcProto$2 = Function.prototype;
|
|
670
700
|
|
|
671
701
|
/** Used to resolve the decompiled source of functions. */
|
|
@@ -678,7 +708,7 @@ var funcToString$2 = funcProto$2.toString;
|
|
|
678
708
|
* @param {Function} func The function to convert.
|
|
679
709
|
* @returns {string} Returns the source code.
|
|
680
710
|
*/
|
|
681
|
-
function toSource(func) {
|
|
711
|
+
function toSource$1(func) {
|
|
682
712
|
if (func != null) {
|
|
683
713
|
try {
|
|
684
714
|
return funcToString$2.call(func);
|
|
@@ -690,7 +720,12 @@ function toSource(func) {
|
|
|
690
720
|
return '';
|
|
691
721
|
}
|
|
692
722
|
|
|
693
|
-
var _toSource = toSource;
|
|
723
|
+
var _toSource = toSource$1;
|
|
724
|
+
|
|
725
|
+
var isFunction$2 = isFunction_1,
|
|
726
|
+
isMasked = _isMasked,
|
|
727
|
+
isObject$5 = isObject_1,
|
|
728
|
+
toSource = _toSource;
|
|
694
729
|
|
|
695
730
|
/**
|
|
696
731
|
* Used to match `RegExp`
|
|
@@ -725,15 +760,15 @@ var reIsNative = RegExp('^' +
|
|
|
725
760
|
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
726
761
|
* else `false`.
|
|
727
762
|
*/
|
|
728
|
-
function baseIsNative(value) {
|
|
729
|
-
if (!
|
|
763
|
+
function baseIsNative$1(value) {
|
|
764
|
+
if (!isObject$5(value) || isMasked(value)) {
|
|
730
765
|
return false;
|
|
731
766
|
}
|
|
732
|
-
var pattern =
|
|
733
|
-
return pattern.test(
|
|
767
|
+
var pattern = isFunction$2(value) ? reIsNative : reIsHostCtor;
|
|
768
|
+
return pattern.test(toSource(value));
|
|
734
769
|
}
|
|
735
770
|
|
|
736
|
-
var _baseIsNative = baseIsNative;
|
|
771
|
+
var _baseIsNative = baseIsNative$1;
|
|
737
772
|
|
|
738
773
|
/**
|
|
739
774
|
* Gets the value at `key` of `object`.
|
|
@@ -743,11 +778,15 @@ var _baseIsNative = baseIsNative;
|
|
|
743
778
|
* @param {string} key The key of the property to get.
|
|
744
779
|
* @returns {*} Returns the property value.
|
|
745
780
|
*/
|
|
746
|
-
|
|
781
|
+
|
|
782
|
+
function getValue$1(object, key) {
|
|
747
783
|
return object == null ? undefined : object[key];
|
|
748
784
|
}
|
|
749
785
|
|
|
750
|
-
var _getValue = getValue;
|
|
786
|
+
var _getValue = getValue$1;
|
|
787
|
+
|
|
788
|
+
var baseIsNative = _baseIsNative,
|
|
789
|
+
getValue = _getValue;
|
|
751
790
|
|
|
752
791
|
/**
|
|
753
792
|
* Gets the native function at `key` of `object`.
|
|
@@ -757,22 +796,29 @@ var _getValue = getValue;
|
|
|
757
796
|
* @param {string} key The key of the method to get.
|
|
758
797
|
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
759
798
|
*/
|
|
760
|
-
function getNative(object, key) {
|
|
761
|
-
var value =
|
|
762
|
-
return
|
|
799
|
+
function getNative$3(object, key) {
|
|
800
|
+
var value = getValue(object, key);
|
|
801
|
+
return baseIsNative(value) ? value : undefined;
|
|
763
802
|
}
|
|
764
803
|
|
|
765
|
-
var _getNative = getNative;
|
|
804
|
+
var _getNative = getNative$3;
|
|
805
|
+
|
|
806
|
+
var getNative$2 = _getNative,
|
|
807
|
+
root$1 = _root;
|
|
766
808
|
|
|
767
809
|
/* Built-in method references that are verified to be native. */
|
|
768
|
-
var Map$
|
|
810
|
+
var Map$3 = getNative$2(root$1, 'Map');
|
|
811
|
+
|
|
812
|
+
var _Map = Map$3;
|
|
769
813
|
|
|
770
|
-
var
|
|
814
|
+
var getNative$1 = _getNative;
|
|
771
815
|
|
|
772
816
|
/* Built-in method references that are verified to be native. */
|
|
773
|
-
var nativeCreate =
|
|
817
|
+
var nativeCreate$4 = getNative$1(Object, 'create');
|
|
774
818
|
|
|
775
|
-
var _nativeCreate = nativeCreate;
|
|
819
|
+
var _nativeCreate = nativeCreate$4;
|
|
820
|
+
|
|
821
|
+
var nativeCreate$3 = _nativeCreate;
|
|
776
822
|
|
|
777
823
|
/**
|
|
778
824
|
* Removes all key-value entries from the hash.
|
|
@@ -781,12 +827,12 @@ var _nativeCreate = nativeCreate;
|
|
|
781
827
|
* @name clear
|
|
782
828
|
* @memberOf Hash
|
|
783
829
|
*/
|
|
784
|
-
function hashClear() {
|
|
785
|
-
this.__data__ =
|
|
830
|
+
function hashClear$1() {
|
|
831
|
+
this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
|
|
786
832
|
this.size = 0;
|
|
787
833
|
}
|
|
788
834
|
|
|
789
|
-
var _hashClear = hashClear;
|
|
835
|
+
var _hashClear = hashClear$1;
|
|
790
836
|
|
|
791
837
|
/**
|
|
792
838
|
* Removes `key` and its value from the hash.
|
|
@@ -798,13 +844,16 @@ var _hashClear = hashClear;
|
|
|
798
844
|
* @param {string} key The key of the value to remove.
|
|
799
845
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
800
846
|
*/
|
|
801
|
-
|
|
847
|
+
|
|
848
|
+
function hashDelete$1(key) {
|
|
802
849
|
var result = this.has(key) && delete this.__data__[key];
|
|
803
850
|
this.size -= result ? 1 : 0;
|
|
804
851
|
return result;
|
|
805
852
|
}
|
|
806
853
|
|
|
807
|
-
var _hashDelete = hashDelete;
|
|
854
|
+
var _hashDelete = hashDelete$1;
|
|
855
|
+
|
|
856
|
+
var nativeCreate$2 = _nativeCreate;
|
|
808
857
|
|
|
809
858
|
/** Used to stand-in for `undefined` hash values. */
|
|
810
859
|
var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
@@ -824,16 +873,18 @@ var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
|
824
873
|
* @param {string} key The key of the value to get.
|
|
825
874
|
* @returns {*} Returns the entry value.
|
|
826
875
|
*/
|
|
827
|
-
function hashGet(key) {
|
|
876
|
+
function hashGet$1(key) {
|
|
828
877
|
var data = this.__data__;
|
|
829
|
-
if (
|
|
878
|
+
if (nativeCreate$2) {
|
|
830
879
|
var result = data[key];
|
|
831
880
|
return result === HASH_UNDEFINED$1 ? undefined : result;
|
|
832
881
|
}
|
|
833
882
|
return hasOwnProperty$6.call(data, key) ? data[key] : undefined;
|
|
834
883
|
}
|
|
835
884
|
|
|
836
|
-
var _hashGet = hashGet;
|
|
885
|
+
var _hashGet = hashGet$1;
|
|
886
|
+
|
|
887
|
+
var nativeCreate$1 = _nativeCreate;
|
|
837
888
|
|
|
838
889
|
/** Used for built-in method references. */
|
|
839
890
|
var objectProto$6 = Object.prototype;
|
|
@@ -850,12 +901,14 @@ var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
|
850
901
|
* @param {string} key The key of the entry to check.
|
|
851
902
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
852
903
|
*/
|
|
853
|
-
function hashHas(key) {
|
|
904
|
+
function hashHas$1(key) {
|
|
854
905
|
var data = this.__data__;
|
|
855
|
-
return
|
|
906
|
+
return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$5.call(data, key);
|
|
856
907
|
}
|
|
857
908
|
|
|
858
|
-
var _hashHas = hashHas;
|
|
909
|
+
var _hashHas = hashHas$1;
|
|
910
|
+
|
|
911
|
+
var nativeCreate = _nativeCreate;
|
|
859
912
|
|
|
860
913
|
/** Used to stand-in for `undefined` hash values. */
|
|
861
914
|
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
@@ -870,14 +923,20 @@ var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
|
870
923
|
* @param {*} value The value to set.
|
|
871
924
|
* @returns {Object} Returns the hash instance.
|
|
872
925
|
*/
|
|
873
|
-
function hashSet(key, value) {
|
|
926
|
+
function hashSet$1(key, value) {
|
|
874
927
|
var data = this.__data__;
|
|
875
928
|
this.size += this.has(key) ? 0 : 1;
|
|
876
|
-
data[key] = (
|
|
929
|
+
data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
|
|
877
930
|
return this;
|
|
878
931
|
}
|
|
879
932
|
|
|
880
|
-
var _hashSet = hashSet;
|
|
933
|
+
var _hashSet = hashSet$1;
|
|
934
|
+
|
|
935
|
+
var hashClear = _hashClear,
|
|
936
|
+
hashDelete = _hashDelete,
|
|
937
|
+
hashGet = _hashGet,
|
|
938
|
+
hashHas = _hashHas,
|
|
939
|
+
hashSet = _hashSet;
|
|
881
940
|
|
|
882
941
|
/**
|
|
883
942
|
* Creates a hash object.
|
|
@@ -886,7 +945,7 @@ var _hashSet = hashSet;
|
|
|
886
945
|
* @constructor
|
|
887
946
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
888
947
|
*/
|
|
889
|
-
function Hash(entries) {
|
|
948
|
+
function Hash$1(entries) {
|
|
890
949
|
var index = -1,
|
|
891
950
|
length = entries == null ? 0 : entries.length;
|
|
892
951
|
|
|
@@ -898,13 +957,17 @@ function Hash(entries) {
|
|
|
898
957
|
}
|
|
899
958
|
|
|
900
959
|
// Add methods to `Hash`.
|
|
901
|
-
Hash.prototype.clear =
|
|
902
|
-
Hash.prototype['delete'] =
|
|
903
|
-
Hash.prototype.get =
|
|
904
|
-
Hash.prototype.has =
|
|
905
|
-
Hash.prototype.set =
|
|
960
|
+
Hash$1.prototype.clear = hashClear;
|
|
961
|
+
Hash$1.prototype['delete'] = hashDelete;
|
|
962
|
+
Hash$1.prototype.get = hashGet;
|
|
963
|
+
Hash$1.prototype.has = hashHas;
|
|
964
|
+
Hash$1.prototype.set = hashSet;
|
|
965
|
+
|
|
966
|
+
var _Hash = Hash$1;
|
|
906
967
|
|
|
907
|
-
var
|
|
968
|
+
var Hash = _Hash,
|
|
969
|
+
ListCache$2 = _ListCache,
|
|
970
|
+
Map$2 = _Map;
|
|
908
971
|
|
|
909
972
|
/**
|
|
910
973
|
* Removes all key-value entries from the map.
|
|
@@ -913,16 +976,16 @@ var _Hash = Hash;
|
|
|
913
976
|
* @name clear
|
|
914
977
|
* @memberOf MapCache
|
|
915
978
|
*/
|
|
916
|
-
function mapCacheClear() {
|
|
979
|
+
function mapCacheClear$1() {
|
|
917
980
|
this.size = 0;
|
|
918
981
|
this.__data__ = {
|
|
919
|
-
'hash': new
|
|
920
|
-
'map': new (
|
|
921
|
-
'string': new
|
|
982
|
+
'hash': new Hash,
|
|
983
|
+
'map': new (Map$2 || ListCache$2),
|
|
984
|
+
'string': new Hash
|
|
922
985
|
};
|
|
923
986
|
}
|
|
924
987
|
|
|
925
|
-
var _mapCacheClear = mapCacheClear;
|
|
988
|
+
var _mapCacheClear = mapCacheClear$1;
|
|
926
989
|
|
|
927
990
|
/**
|
|
928
991
|
* Checks if `value` is suitable for use as unique object key.
|
|
@@ -931,14 +994,17 @@ var _mapCacheClear = mapCacheClear;
|
|
|
931
994
|
* @param {*} value The value to check.
|
|
932
995
|
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
933
996
|
*/
|
|
934
|
-
|
|
997
|
+
|
|
998
|
+
function isKeyable$1(value) {
|
|
935
999
|
var type = typeof value;
|
|
936
1000
|
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
|
|
937
1001
|
? (value !== '__proto__')
|
|
938
1002
|
: (value === null);
|
|
939
1003
|
}
|
|
940
1004
|
|
|
941
|
-
var _isKeyable = isKeyable;
|
|
1005
|
+
var _isKeyable = isKeyable$1;
|
|
1006
|
+
|
|
1007
|
+
var isKeyable = _isKeyable;
|
|
942
1008
|
|
|
943
1009
|
/**
|
|
944
1010
|
* Gets the data for `map`.
|
|
@@ -948,14 +1014,16 @@ var _isKeyable = isKeyable;
|
|
|
948
1014
|
* @param {string} key The reference key.
|
|
949
1015
|
* @returns {*} Returns the map data.
|
|
950
1016
|
*/
|
|
951
|
-
function getMapData(map, key) {
|
|
1017
|
+
function getMapData$4(map, key) {
|
|
952
1018
|
var data = map.__data__;
|
|
953
|
-
return
|
|
1019
|
+
return isKeyable(key)
|
|
954
1020
|
? data[typeof key == 'string' ? 'string' : 'hash']
|
|
955
1021
|
: data.map;
|
|
956
1022
|
}
|
|
957
1023
|
|
|
958
|
-
var _getMapData = getMapData;
|
|
1024
|
+
var _getMapData = getMapData$4;
|
|
1025
|
+
|
|
1026
|
+
var getMapData$3 = _getMapData;
|
|
959
1027
|
|
|
960
1028
|
/**
|
|
961
1029
|
* Removes `key` and its value from the map.
|
|
@@ -966,13 +1034,15 @@ var _getMapData = getMapData;
|
|
|
966
1034
|
* @param {string} key The key of the value to remove.
|
|
967
1035
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
968
1036
|
*/
|
|
969
|
-
function mapCacheDelete(key) {
|
|
970
|
-
var result =
|
|
1037
|
+
function mapCacheDelete$1(key) {
|
|
1038
|
+
var result = getMapData$3(this, key)['delete'](key);
|
|
971
1039
|
this.size -= result ? 1 : 0;
|
|
972
1040
|
return result;
|
|
973
1041
|
}
|
|
974
1042
|
|
|
975
|
-
var _mapCacheDelete = mapCacheDelete;
|
|
1043
|
+
var _mapCacheDelete = mapCacheDelete$1;
|
|
1044
|
+
|
|
1045
|
+
var getMapData$2 = _getMapData;
|
|
976
1046
|
|
|
977
1047
|
/**
|
|
978
1048
|
* Gets the map value for `key`.
|
|
@@ -983,11 +1053,13 @@ var _mapCacheDelete = mapCacheDelete;
|
|
|
983
1053
|
* @param {string} key The key of the value to get.
|
|
984
1054
|
* @returns {*} Returns the entry value.
|
|
985
1055
|
*/
|
|
986
|
-
function mapCacheGet(key) {
|
|
987
|
-
return
|
|
1056
|
+
function mapCacheGet$1(key) {
|
|
1057
|
+
return getMapData$2(this, key).get(key);
|
|
988
1058
|
}
|
|
989
1059
|
|
|
990
|
-
var _mapCacheGet = mapCacheGet;
|
|
1060
|
+
var _mapCacheGet = mapCacheGet$1;
|
|
1061
|
+
|
|
1062
|
+
var getMapData$1 = _getMapData;
|
|
991
1063
|
|
|
992
1064
|
/**
|
|
993
1065
|
* Checks if a map value for `key` exists.
|
|
@@ -998,11 +1070,13 @@ var _mapCacheGet = mapCacheGet;
|
|
|
998
1070
|
* @param {string} key The key of the entry to check.
|
|
999
1071
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1000
1072
|
*/
|
|
1001
|
-
function mapCacheHas(key) {
|
|
1002
|
-
return
|
|
1073
|
+
function mapCacheHas$1(key) {
|
|
1074
|
+
return getMapData$1(this, key).has(key);
|
|
1003
1075
|
}
|
|
1004
1076
|
|
|
1005
|
-
var _mapCacheHas = mapCacheHas;
|
|
1077
|
+
var _mapCacheHas = mapCacheHas$1;
|
|
1078
|
+
|
|
1079
|
+
var getMapData = _getMapData;
|
|
1006
1080
|
|
|
1007
1081
|
/**
|
|
1008
1082
|
* Sets the map `key` to `value`.
|
|
@@ -1014,8 +1088,8 @@ var _mapCacheHas = mapCacheHas;
|
|
|
1014
1088
|
* @param {*} value The value to set.
|
|
1015
1089
|
* @returns {Object} Returns the map cache instance.
|
|
1016
1090
|
*/
|
|
1017
|
-
function mapCacheSet(key, value) {
|
|
1018
|
-
var data =
|
|
1091
|
+
function mapCacheSet$1(key, value) {
|
|
1092
|
+
var data = getMapData(this, key),
|
|
1019
1093
|
size = data.size;
|
|
1020
1094
|
|
|
1021
1095
|
data.set(key, value);
|
|
@@ -1023,7 +1097,13 @@ function mapCacheSet(key, value) {
|
|
|
1023
1097
|
return this;
|
|
1024
1098
|
}
|
|
1025
1099
|
|
|
1026
|
-
var _mapCacheSet = mapCacheSet;
|
|
1100
|
+
var _mapCacheSet = mapCacheSet$1;
|
|
1101
|
+
|
|
1102
|
+
var mapCacheClear = _mapCacheClear,
|
|
1103
|
+
mapCacheDelete = _mapCacheDelete,
|
|
1104
|
+
mapCacheGet = _mapCacheGet,
|
|
1105
|
+
mapCacheHas = _mapCacheHas,
|
|
1106
|
+
mapCacheSet = _mapCacheSet;
|
|
1027
1107
|
|
|
1028
1108
|
/**
|
|
1029
1109
|
* Creates a map cache object to store key-value pairs.
|
|
@@ -1032,7 +1112,7 @@ var _mapCacheSet = mapCacheSet;
|
|
|
1032
1112
|
* @constructor
|
|
1033
1113
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
1034
1114
|
*/
|
|
1035
|
-
function MapCache(entries) {
|
|
1115
|
+
function MapCache$1(entries) {
|
|
1036
1116
|
var index = -1,
|
|
1037
1117
|
length = entries == null ? 0 : entries.length;
|
|
1038
1118
|
|
|
@@ -1044,13 +1124,17 @@ function MapCache(entries) {
|
|
|
1044
1124
|
}
|
|
1045
1125
|
|
|
1046
1126
|
// Add methods to `MapCache`.
|
|
1047
|
-
MapCache.prototype.clear =
|
|
1048
|
-
MapCache.prototype['delete'] =
|
|
1049
|
-
MapCache.prototype.get =
|
|
1050
|
-
MapCache.prototype.has =
|
|
1051
|
-
MapCache.prototype.set =
|
|
1127
|
+
MapCache$1.prototype.clear = mapCacheClear;
|
|
1128
|
+
MapCache$1.prototype['delete'] = mapCacheDelete;
|
|
1129
|
+
MapCache$1.prototype.get = mapCacheGet;
|
|
1130
|
+
MapCache$1.prototype.has = mapCacheHas;
|
|
1131
|
+
MapCache$1.prototype.set = mapCacheSet;
|
|
1052
1132
|
|
|
1053
|
-
var _MapCache = MapCache;
|
|
1133
|
+
var _MapCache = MapCache$1;
|
|
1134
|
+
|
|
1135
|
+
var ListCache$1 = _ListCache,
|
|
1136
|
+
Map$1 = _Map,
|
|
1137
|
+
MapCache = _MapCache;
|
|
1054
1138
|
|
|
1055
1139
|
/** Used as the size to enable large array optimizations. */
|
|
1056
1140
|
var LARGE_ARRAY_SIZE = 200;
|
|
@@ -1065,23 +1149,30 @@ var LARGE_ARRAY_SIZE = 200;
|
|
|
1065
1149
|
* @param {*} value The value to set.
|
|
1066
1150
|
* @returns {Object} Returns the stack cache instance.
|
|
1067
1151
|
*/
|
|
1068
|
-
function stackSet(key, value) {
|
|
1152
|
+
function stackSet$1(key, value) {
|
|
1069
1153
|
var data = this.__data__;
|
|
1070
|
-
if (data instanceof
|
|
1154
|
+
if (data instanceof ListCache$1) {
|
|
1071
1155
|
var pairs = data.__data__;
|
|
1072
|
-
if (!
|
|
1156
|
+
if (!Map$1 || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
|
|
1073
1157
|
pairs.push([key, value]);
|
|
1074
1158
|
this.size = ++data.size;
|
|
1075
1159
|
return this;
|
|
1076
1160
|
}
|
|
1077
|
-
data = this.__data__ = new
|
|
1161
|
+
data = this.__data__ = new MapCache(pairs);
|
|
1078
1162
|
}
|
|
1079
1163
|
data.set(key, value);
|
|
1080
1164
|
this.size = data.size;
|
|
1081
1165
|
return this;
|
|
1082
1166
|
}
|
|
1083
1167
|
|
|
1084
|
-
var _stackSet = stackSet;
|
|
1168
|
+
var _stackSet = stackSet$1;
|
|
1169
|
+
|
|
1170
|
+
var ListCache = _ListCache,
|
|
1171
|
+
stackClear = _stackClear,
|
|
1172
|
+
stackDelete = _stackDelete,
|
|
1173
|
+
stackGet = _stackGet,
|
|
1174
|
+
stackHas = _stackHas,
|
|
1175
|
+
stackSet = _stackSet;
|
|
1085
1176
|
|
|
1086
1177
|
/**
|
|
1087
1178
|
* Creates a stack cache object to store key-value pairs.
|
|
@@ -1090,29 +1181,33 @@ var _stackSet = stackSet;
|
|
|
1090
1181
|
* @constructor
|
|
1091
1182
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
1092
1183
|
*/
|
|
1093
|
-
function Stack(entries) {
|
|
1094
|
-
var data = this.__data__ = new
|
|
1184
|
+
function Stack$1(entries) {
|
|
1185
|
+
var data = this.__data__ = new ListCache(entries);
|
|
1095
1186
|
this.size = data.size;
|
|
1096
1187
|
}
|
|
1097
1188
|
|
|
1098
1189
|
// Add methods to `Stack`.
|
|
1099
|
-
Stack.prototype.clear =
|
|
1100
|
-
Stack.prototype['delete'] =
|
|
1101
|
-
Stack.prototype.get =
|
|
1102
|
-
Stack.prototype.has =
|
|
1103
|
-
Stack.prototype.set =
|
|
1190
|
+
Stack$1.prototype.clear = stackClear;
|
|
1191
|
+
Stack$1.prototype['delete'] = stackDelete;
|
|
1192
|
+
Stack$1.prototype.get = stackGet;
|
|
1193
|
+
Stack$1.prototype.has = stackHas;
|
|
1194
|
+
Stack$1.prototype.set = stackSet;
|
|
1195
|
+
|
|
1196
|
+
var _Stack = Stack$1;
|
|
1104
1197
|
|
|
1105
|
-
var
|
|
1198
|
+
var getNative = _getNative;
|
|
1106
1199
|
|
|
1107
|
-
var defineProperty = (function() {
|
|
1200
|
+
var defineProperty$2 = (function() {
|
|
1108
1201
|
try {
|
|
1109
|
-
var func =
|
|
1202
|
+
var func = getNative(Object, 'defineProperty');
|
|
1110
1203
|
func({}, '', {});
|
|
1111
1204
|
return func;
|
|
1112
1205
|
} catch (e) {}
|
|
1113
1206
|
}());
|
|
1114
1207
|
|
|
1115
|
-
var _defineProperty = defineProperty;
|
|
1208
|
+
var _defineProperty = defineProperty$2;
|
|
1209
|
+
|
|
1210
|
+
var defineProperty$1 = _defineProperty;
|
|
1116
1211
|
|
|
1117
1212
|
/**
|
|
1118
1213
|
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
@@ -1123,9 +1218,9 @@ var _defineProperty = defineProperty;
|
|
|
1123
1218
|
* @param {string} key The key of the property to assign.
|
|
1124
1219
|
* @param {*} value The value to assign.
|
|
1125
1220
|
*/
|
|
1126
|
-
function baseAssignValue(object, key, value) {
|
|
1127
|
-
if (key == '__proto__' &&
|
|
1128
|
-
|
|
1221
|
+
function baseAssignValue$3(object, key, value) {
|
|
1222
|
+
if (key == '__proto__' && defineProperty$1) {
|
|
1223
|
+
defineProperty$1(object, key, {
|
|
1129
1224
|
'configurable': true,
|
|
1130
1225
|
'enumerable': true,
|
|
1131
1226
|
'value': value,
|
|
@@ -1136,7 +1231,10 @@ function baseAssignValue(object, key, value) {
|
|
|
1136
1231
|
}
|
|
1137
1232
|
}
|
|
1138
1233
|
|
|
1139
|
-
var _baseAssignValue = baseAssignValue;
|
|
1234
|
+
var _baseAssignValue = baseAssignValue$3;
|
|
1235
|
+
|
|
1236
|
+
var baseAssignValue$2 = _baseAssignValue,
|
|
1237
|
+
eq$2 = eq_1;
|
|
1140
1238
|
|
|
1141
1239
|
/**
|
|
1142
1240
|
* This function is like `assignValue` except that it doesn't assign
|
|
@@ -1147,14 +1245,14 @@ var _baseAssignValue = baseAssignValue;
|
|
|
1147
1245
|
* @param {string} key The key of the property to assign.
|
|
1148
1246
|
* @param {*} value The value to assign.
|
|
1149
1247
|
*/
|
|
1150
|
-
function assignMergeValue(object, key, value) {
|
|
1151
|
-
if ((value !== undefined && !
|
|
1248
|
+
function assignMergeValue$2(object, key, value) {
|
|
1249
|
+
if ((value !== undefined && !eq$2(object[key], value)) ||
|
|
1152
1250
|
(value === undefined && !(key in object))) {
|
|
1153
|
-
|
|
1251
|
+
baseAssignValue$2(object, key, value);
|
|
1154
1252
|
}
|
|
1155
1253
|
}
|
|
1156
1254
|
|
|
1157
|
-
var _assignMergeValue = assignMergeValue;
|
|
1255
|
+
var _assignMergeValue = assignMergeValue$2;
|
|
1158
1256
|
|
|
1159
1257
|
/**
|
|
1160
1258
|
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
@@ -1163,7 +1261,8 @@ var _assignMergeValue = assignMergeValue;
|
|
|
1163
1261
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
1164
1262
|
* @returns {Function} Returns the new base function.
|
|
1165
1263
|
*/
|
|
1166
|
-
|
|
1264
|
+
|
|
1265
|
+
function createBaseFor$1(fromRight) {
|
|
1167
1266
|
return function(object, iteratee, keysFunc) {
|
|
1168
1267
|
var index = -1,
|
|
1169
1268
|
iterable = Object(object),
|
|
@@ -1180,7 +1279,9 @@ function createBaseFor(fromRight) {
|
|
|
1180
1279
|
};
|
|
1181
1280
|
}
|
|
1182
1281
|
|
|
1183
|
-
var _createBaseFor = createBaseFor;
|
|
1282
|
+
var _createBaseFor = createBaseFor$1;
|
|
1283
|
+
|
|
1284
|
+
var createBaseFor = _createBaseFor;
|
|
1184
1285
|
|
|
1185
1286
|
/**
|
|
1186
1287
|
* The base implementation of `baseForOwn` which iterates over `object`
|
|
@@ -1193,11 +1294,15 @@ var _createBaseFor = createBaseFor;
|
|
|
1193
1294
|
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
1194
1295
|
* @returns {Object} Returns `object`.
|
|
1195
1296
|
*/
|
|
1196
|
-
var baseFor =
|
|
1297
|
+
var baseFor$1 = createBaseFor();
|
|
1298
|
+
|
|
1299
|
+
var _baseFor = baseFor$1;
|
|
1197
1300
|
|
|
1198
|
-
var
|
|
1301
|
+
var _cloneBuffer = {exports: {}};
|
|
1302
|
+
|
|
1303
|
+
(function (module, exports) {
|
|
1304
|
+
var root = _root;
|
|
1199
1305
|
|
|
1200
|
-
var _cloneBuffer = createCommonjsModule(function (module, exports) {
|
|
1201
1306
|
/** Detect free variable `exports`. */
|
|
1202
1307
|
var freeExports = exports && !exports.nodeType && exports;
|
|
1203
1308
|
|
|
@@ -1208,7 +1313,7 @@ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeTy
|
|
|
1208
1313
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
1209
1314
|
|
|
1210
1315
|
/** Built-in value references. */
|
|
1211
|
-
var Buffer = moduleExports ?
|
|
1316
|
+
var Buffer = moduleExports ? root.Buffer : undefined,
|
|
1212
1317
|
allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
|
|
1213
1318
|
|
|
1214
1319
|
/**
|
|
@@ -1231,12 +1336,16 @@ function cloneBuffer(buffer, isDeep) {
|
|
|
1231
1336
|
}
|
|
1232
1337
|
|
|
1233
1338
|
module.exports = cloneBuffer;
|
|
1234
|
-
});
|
|
1339
|
+
}(_cloneBuffer, _cloneBuffer.exports));
|
|
1340
|
+
|
|
1341
|
+
var root = _root;
|
|
1235
1342
|
|
|
1236
1343
|
/** Built-in value references. */
|
|
1237
|
-
var Uint8Array =
|
|
1344
|
+
var Uint8Array$1 = root.Uint8Array;
|
|
1345
|
+
|
|
1346
|
+
var _Uint8Array = Uint8Array$1;
|
|
1238
1347
|
|
|
1239
|
-
var
|
|
1348
|
+
var Uint8Array = _Uint8Array;
|
|
1240
1349
|
|
|
1241
1350
|
/**
|
|
1242
1351
|
* Creates a clone of `arrayBuffer`.
|
|
@@ -1245,13 +1354,15 @@ var _Uint8Array = Uint8Array;
|
|
|
1245
1354
|
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
|
|
1246
1355
|
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
|
1247
1356
|
*/
|
|
1248
|
-
function cloneArrayBuffer(arrayBuffer) {
|
|
1357
|
+
function cloneArrayBuffer$1(arrayBuffer) {
|
|
1249
1358
|
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
1250
|
-
new
|
|
1359
|
+
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
|
1251
1360
|
return result;
|
|
1252
1361
|
}
|
|
1253
1362
|
|
|
1254
|
-
var _cloneArrayBuffer = cloneArrayBuffer;
|
|
1363
|
+
var _cloneArrayBuffer = cloneArrayBuffer$1;
|
|
1364
|
+
|
|
1365
|
+
var cloneArrayBuffer = _cloneArrayBuffer;
|
|
1255
1366
|
|
|
1256
1367
|
/**
|
|
1257
1368
|
* Creates a clone of `typedArray`.
|
|
@@ -1261,12 +1372,12 @@ var _cloneArrayBuffer = cloneArrayBuffer;
|
|
|
1261
1372
|
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1262
1373
|
* @returns {Object} Returns the cloned typed array.
|
|
1263
1374
|
*/
|
|
1264
|
-
function cloneTypedArray(typedArray, isDeep) {
|
|
1265
|
-
var buffer = isDeep ?
|
|
1375
|
+
function cloneTypedArray$1(typedArray, isDeep) {
|
|
1376
|
+
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
1266
1377
|
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
1267
1378
|
}
|
|
1268
1379
|
|
|
1269
|
-
var _cloneTypedArray = cloneTypedArray;
|
|
1380
|
+
var _cloneTypedArray = cloneTypedArray$1;
|
|
1270
1381
|
|
|
1271
1382
|
/**
|
|
1272
1383
|
* Copies the values of `source` to `array`.
|
|
@@ -1276,7 +1387,8 @@ var _cloneTypedArray = cloneTypedArray;
|
|
|
1276
1387
|
* @param {Array} [array=[]] The array to copy values to.
|
|
1277
1388
|
* @returns {Array} Returns `array`.
|
|
1278
1389
|
*/
|
|
1279
|
-
|
|
1390
|
+
|
|
1391
|
+
function copyArray$1(source, array) {
|
|
1280
1392
|
var index = -1,
|
|
1281
1393
|
length = source.length;
|
|
1282
1394
|
|
|
@@ -1287,7 +1399,9 @@ function copyArray(source, array) {
|
|
|
1287
1399
|
return array;
|
|
1288
1400
|
}
|
|
1289
1401
|
|
|
1290
|
-
var _copyArray = copyArray;
|
|
1402
|
+
var _copyArray = copyArray$1;
|
|
1403
|
+
|
|
1404
|
+
var isObject$4 = isObject_1;
|
|
1291
1405
|
|
|
1292
1406
|
/** Built-in value references. */
|
|
1293
1407
|
var objectCreate = Object.create;
|
|
@@ -1300,10 +1414,10 @@ var objectCreate = Object.create;
|
|
|
1300
1414
|
* @param {Object} proto The object to inherit from.
|
|
1301
1415
|
* @returns {Object} Returns the new object.
|
|
1302
1416
|
*/
|
|
1303
|
-
var baseCreate = (function() {
|
|
1417
|
+
var baseCreate$1 = (function() {
|
|
1304
1418
|
function object() {}
|
|
1305
1419
|
return function(proto) {
|
|
1306
|
-
if (!
|
|
1420
|
+
if (!isObject$4(proto)) {
|
|
1307
1421
|
return {};
|
|
1308
1422
|
}
|
|
1309
1423
|
if (objectCreate) {
|
|
@@ -1316,7 +1430,7 @@ var baseCreate = (function() {
|
|
|
1316
1430
|
};
|
|
1317
1431
|
}());
|
|
1318
1432
|
|
|
1319
|
-
var _baseCreate = baseCreate;
|
|
1433
|
+
var _baseCreate = baseCreate$1;
|
|
1320
1434
|
|
|
1321
1435
|
/**
|
|
1322
1436
|
* Creates a unary function that invokes `func` with its argument transformed.
|
|
@@ -1326,20 +1440,24 @@ var _baseCreate = baseCreate;
|
|
|
1326
1440
|
* @param {Function} transform The argument transform.
|
|
1327
1441
|
* @returns {Function} Returns the new function.
|
|
1328
1442
|
*/
|
|
1329
|
-
|
|
1443
|
+
|
|
1444
|
+
function overArg$1(func, transform) {
|
|
1330
1445
|
return function(arg) {
|
|
1331
1446
|
return func(transform(arg));
|
|
1332
1447
|
};
|
|
1333
1448
|
}
|
|
1334
1449
|
|
|
1335
|
-
var _overArg = overArg;
|
|
1450
|
+
var _overArg = overArg$1;
|
|
1451
|
+
|
|
1452
|
+
var overArg = _overArg;
|
|
1336
1453
|
|
|
1337
1454
|
/** Built-in value references. */
|
|
1338
|
-
var getPrototype =
|
|
1455
|
+
var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
|
|
1339
1456
|
|
|
1340
|
-
var _getPrototype = getPrototype;
|
|
1457
|
+
var _getPrototype = getPrototype$2;
|
|
1341
1458
|
|
|
1342
1459
|
/** Used for built-in method references. */
|
|
1460
|
+
|
|
1343
1461
|
var objectProto$5 = Object.prototype;
|
|
1344
1462
|
|
|
1345
1463
|
/**
|
|
@@ -1349,14 +1467,18 @@ var objectProto$5 = Object.prototype;
|
|
|
1349
1467
|
* @param {*} value The value to check.
|
|
1350
1468
|
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
1351
1469
|
*/
|
|
1352
|
-
function isPrototype(value) {
|
|
1470
|
+
function isPrototype$2(value) {
|
|
1353
1471
|
var Ctor = value && value.constructor,
|
|
1354
1472
|
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$5;
|
|
1355
1473
|
|
|
1356
1474
|
return value === proto;
|
|
1357
1475
|
}
|
|
1358
1476
|
|
|
1359
|
-
var _isPrototype = isPrototype;
|
|
1477
|
+
var _isPrototype = isPrototype$2;
|
|
1478
|
+
|
|
1479
|
+
var baseCreate = _baseCreate,
|
|
1480
|
+
getPrototype$1 = _getPrototype,
|
|
1481
|
+
isPrototype$1 = _isPrototype;
|
|
1360
1482
|
|
|
1361
1483
|
/**
|
|
1362
1484
|
* Initializes an object clone.
|
|
@@ -1365,13 +1487,13 @@ var _isPrototype = isPrototype;
|
|
|
1365
1487
|
* @param {Object} object The object to clone.
|
|
1366
1488
|
* @returns {Object} Returns the initialized clone.
|
|
1367
1489
|
*/
|
|
1368
|
-
function initCloneObject(object) {
|
|
1369
|
-
return (typeof object.constructor == 'function' && !
|
|
1370
|
-
?
|
|
1490
|
+
function initCloneObject$1(object) {
|
|
1491
|
+
return (typeof object.constructor == 'function' && !isPrototype$1(object))
|
|
1492
|
+
? baseCreate(getPrototype$1(object))
|
|
1371
1493
|
: {};
|
|
1372
1494
|
}
|
|
1373
1495
|
|
|
1374
|
-
var _initCloneObject = initCloneObject;
|
|
1496
|
+
var _initCloneObject = initCloneObject$1;
|
|
1375
1497
|
|
|
1376
1498
|
/**
|
|
1377
1499
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
@@ -1397,11 +1519,15 @@ var _initCloneObject = initCloneObject;
|
|
|
1397
1519
|
* _.isObjectLike(null);
|
|
1398
1520
|
* // => false
|
|
1399
1521
|
*/
|
|
1400
|
-
|
|
1522
|
+
|
|
1523
|
+
function isObjectLike$5(value) {
|
|
1401
1524
|
return value != null && typeof value == 'object';
|
|
1402
1525
|
}
|
|
1403
1526
|
|
|
1404
|
-
var isObjectLike_1 = isObjectLike;
|
|
1527
|
+
var isObjectLike_1 = isObjectLike$5;
|
|
1528
|
+
|
|
1529
|
+
var baseGetTag$2 = _baseGetTag,
|
|
1530
|
+
isObjectLike$4 = isObjectLike_1;
|
|
1405
1531
|
|
|
1406
1532
|
/** `Object#toString` result references. */
|
|
1407
1533
|
var argsTag$1 = '[object Arguments]';
|
|
@@ -1413,11 +1539,14 @@ var argsTag$1 = '[object Arguments]';
|
|
|
1413
1539
|
* @param {*} value The value to check.
|
|
1414
1540
|
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
1415
1541
|
*/
|
|
1416
|
-
function baseIsArguments(value) {
|
|
1417
|
-
return
|
|
1542
|
+
function baseIsArguments$1(value) {
|
|
1543
|
+
return isObjectLike$4(value) && baseGetTag$2(value) == argsTag$1;
|
|
1418
1544
|
}
|
|
1419
1545
|
|
|
1420
|
-
var _baseIsArguments = baseIsArguments;
|
|
1546
|
+
var _baseIsArguments = baseIsArguments$1;
|
|
1547
|
+
|
|
1548
|
+
var baseIsArguments = _baseIsArguments,
|
|
1549
|
+
isObjectLike$3 = isObjectLike_1;
|
|
1421
1550
|
|
|
1422
1551
|
/** Used for built-in method references. */
|
|
1423
1552
|
var objectProto$4 = Object.prototype;
|
|
@@ -1446,12 +1575,12 @@ var propertyIsEnumerable = objectProto$4.propertyIsEnumerable;
|
|
|
1446
1575
|
* _.isArguments([1, 2, 3]);
|
|
1447
1576
|
* // => false
|
|
1448
1577
|
*/
|
|
1449
|
-
var isArguments =
|
|
1450
|
-
return
|
|
1578
|
+
var isArguments$2 = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
|
1579
|
+
return isObjectLike$3(value) && hasOwnProperty$4.call(value, 'callee') &&
|
|
1451
1580
|
!propertyIsEnumerable.call(value, 'callee');
|
|
1452
1581
|
};
|
|
1453
1582
|
|
|
1454
|
-
var isArguments_1 = isArguments;
|
|
1583
|
+
var isArguments_1 = isArguments$2;
|
|
1455
1584
|
|
|
1456
1585
|
/**
|
|
1457
1586
|
* Checks if `value` is classified as an `Array` object.
|
|
@@ -1476,11 +1605,13 @@ var isArguments_1 = isArguments;
|
|
|
1476
1605
|
* _.isArray(_.noop);
|
|
1477
1606
|
* // => false
|
|
1478
1607
|
*/
|
|
1479
|
-
var isArray = Array.isArray;
|
|
1480
1608
|
|
|
1481
|
-
var
|
|
1609
|
+
var isArray$2 = Array.isArray;
|
|
1610
|
+
|
|
1611
|
+
var isArray_1 = isArray$2;
|
|
1482
1612
|
|
|
1483
1613
|
/** Used as references for various `Number` constants. */
|
|
1614
|
+
|
|
1484
1615
|
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
1485
1616
|
|
|
1486
1617
|
/**
|
|
@@ -1509,12 +1640,15 @@ var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
|
1509
1640
|
* _.isLength('3');
|
|
1510
1641
|
* // => false
|
|
1511
1642
|
*/
|
|
1512
|
-
function isLength(value) {
|
|
1643
|
+
function isLength$2(value) {
|
|
1513
1644
|
return typeof value == 'number' &&
|
|
1514
1645
|
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
|
|
1515
1646
|
}
|
|
1516
1647
|
|
|
1517
|
-
var isLength_1 = isLength;
|
|
1648
|
+
var isLength_1 = isLength$2;
|
|
1649
|
+
|
|
1650
|
+
var isFunction$1 = isFunction_1,
|
|
1651
|
+
isLength$1 = isLength_1;
|
|
1518
1652
|
|
|
1519
1653
|
/**
|
|
1520
1654
|
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
@@ -1541,11 +1675,14 @@ var isLength_1 = isLength;
|
|
|
1541
1675
|
* _.isArrayLike(_.noop);
|
|
1542
1676
|
* // => false
|
|
1543
1677
|
*/
|
|
1544
|
-
function isArrayLike(value) {
|
|
1545
|
-
return value != null &&
|
|
1678
|
+
function isArrayLike$3(value) {
|
|
1679
|
+
return value != null && isLength$1(value.length) && !isFunction$1(value);
|
|
1546
1680
|
}
|
|
1547
1681
|
|
|
1548
|
-
var isArrayLike_1 = isArrayLike;
|
|
1682
|
+
var isArrayLike_1 = isArrayLike$3;
|
|
1683
|
+
|
|
1684
|
+
var isArrayLike$2 = isArrayLike_1,
|
|
1685
|
+
isObjectLike$2 = isObjectLike_1;
|
|
1549
1686
|
|
|
1550
1687
|
/**
|
|
1551
1688
|
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
@@ -1572,11 +1709,13 @@ var isArrayLike_1 = isArrayLike;
|
|
|
1572
1709
|
* _.isArrayLikeObject(_.noop);
|
|
1573
1710
|
* // => false
|
|
1574
1711
|
*/
|
|
1575
|
-
function isArrayLikeObject(value) {
|
|
1576
|
-
return
|
|
1712
|
+
function isArrayLikeObject$1(value) {
|
|
1713
|
+
return isObjectLike$2(value) && isArrayLike$2(value);
|
|
1577
1714
|
}
|
|
1578
1715
|
|
|
1579
|
-
var isArrayLikeObject_1 = isArrayLikeObject;
|
|
1716
|
+
var isArrayLikeObject_1 = isArrayLikeObject$1;
|
|
1717
|
+
|
|
1718
|
+
var isBuffer$2 = {exports: {}};
|
|
1580
1719
|
|
|
1581
1720
|
/**
|
|
1582
1721
|
* This method returns `false`.
|
|
@@ -1591,13 +1730,17 @@ var isArrayLikeObject_1 = isArrayLikeObject;
|
|
|
1591
1730
|
* _.times(2, _.stubFalse);
|
|
1592
1731
|
* // => [false, false]
|
|
1593
1732
|
*/
|
|
1733
|
+
|
|
1594
1734
|
function stubFalse() {
|
|
1595
1735
|
return false;
|
|
1596
1736
|
}
|
|
1597
1737
|
|
|
1598
1738
|
var stubFalse_1 = stubFalse;
|
|
1599
1739
|
|
|
1600
|
-
|
|
1740
|
+
(function (module, exports) {
|
|
1741
|
+
var root = _root,
|
|
1742
|
+
stubFalse = stubFalse_1;
|
|
1743
|
+
|
|
1601
1744
|
/** Detect free variable `exports`. */
|
|
1602
1745
|
var freeExports = exports && !exports.nodeType && exports;
|
|
1603
1746
|
|
|
@@ -1608,7 +1751,7 @@ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeTy
|
|
|
1608
1751
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
1609
1752
|
|
|
1610
1753
|
/** Built-in value references. */
|
|
1611
|
-
var Buffer = moduleExports ?
|
|
1754
|
+
var Buffer = moduleExports ? root.Buffer : undefined;
|
|
1612
1755
|
|
|
1613
1756
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
1614
1757
|
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
@@ -1630,10 +1773,14 @@ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
|
1630
1773
|
* _.isBuffer(new Uint8Array(2));
|
|
1631
1774
|
* // => false
|
|
1632
1775
|
*/
|
|
1633
|
-
var isBuffer = nativeIsBuffer ||
|
|
1776
|
+
var isBuffer = nativeIsBuffer || stubFalse;
|
|
1634
1777
|
|
|
1635
1778
|
module.exports = isBuffer;
|
|
1636
|
-
});
|
|
1779
|
+
}(isBuffer$2, isBuffer$2.exports));
|
|
1780
|
+
|
|
1781
|
+
var baseGetTag$1 = _baseGetTag,
|
|
1782
|
+
getPrototype = _getPrototype,
|
|
1783
|
+
isObjectLike$1 = isObjectLike_1;
|
|
1637
1784
|
|
|
1638
1785
|
/** `Object#toString` result references. */
|
|
1639
1786
|
var objectTag$1 = '[object Object]';
|
|
@@ -1679,11 +1826,11 @@ var objectCtorString = funcToString.call(Object);
|
|
|
1679
1826
|
* _.isPlainObject(Object.create(null));
|
|
1680
1827
|
* // => true
|
|
1681
1828
|
*/
|
|
1682
|
-
function isPlainObject(value) {
|
|
1683
|
-
if (!
|
|
1829
|
+
function isPlainObject$1(value) {
|
|
1830
|
+
if (!isObjectLike$1(value) || baseGetTag$1(value) != objectTag$1) {
|
|
1684
1831
|
return false;
|
|
1685
1832
|
}
|
|
1686
|
-
var proto =
|
|
1833
|
+
var proto = getPrototype(value);
|
|
1687
1834
|
if (proto === null) {
|
|
1688
1835
|
return true;
|
|
1689
1836
|
}
|
|
@@ -1692,7 +1839,11 @@ function isPlainObject(value) {
|
|
|
1692
1839
|
funcToString.call(Ctor) == objectCtorString;
|
|
1693
1840
|
}
|
|
1694
1841
|
|
|
1695
|
-
var isPlainObject_1 = isPlainObject;
|
|
1842
|
+
var isPlainObject_1 = isPlainObject$1;
|
|
1843
|
+
|
|
1844
|
+
var baseGetTag = _baseGetTag,
|
|
1845
|
+
isLength = isLength_1,
|
|
1846
|
+
isObjectLike = isObjectLike_1;
|
|
1696
1847
|
|
|
1697
1848
|
/** `Object#toString` result references. */
|
|
1698
1849
|
var argsTag = '[object Arguments]',
|
|
@@ -1744,12 +1895,12 @@ typedArrayTags[weakMapTag] = false;
|
|
|
1744
1895
|
* @param {*} value The value to check.
|
|
1745
1896
|
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
1746
1897
|
*/
|
|
1747
|
-
function baseIsTypedArray(value) {
|
|
1748
|
-
return
|
|
1749
|
-
|
|
1898
|
+
function baseIsTypedArray$1(value) {
|
|
1899
|
+
return isObjectLike(value) &&
|
|
1900
|
+
isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
1750
1901
|
}
|
|
1751
1902
|
|
|
1752
|
-
var _baseIsTypedArray = baseIsTypedArray;
|
|
1903
|
+
var _baseIsTypedArray = baseIsTypedArray$1;
|
|
1753
1904
|
|
|
1754
1905
|
/**
|
|
1755
1906
|
* The base implementation of `_.unary` without support for storing metadata.
|
|
@@ -1758,15 +1909,20 @@ var _baseIsTypedArray = baseIsTypedArray;
|
|
|
1758
1909
|
* @param {Function} func The function to cap arguments for.
|
|
1759
1910
|
* @returns {Function} Returns the new capped function.
|
|
1760
1911
|
*/
|
|
1761
|
-
|
|
1912
|
+
|
|
1913
|
+
function baseUnary$1(func) {
|
|
1762
1914
|
return function(value) {
|
|
1763
1915
|
return func(value);
|
|
1764
1916
|
};
|
|
1765
1917
|
}
|
|
1766
1918
|
|
|
1767
|
-
var _baseUnary = baseUnary;
|
|
1919
|
+
var _baseUnary = baseUnary$1;
|
|
1920
|
+
|
|
1921
|
+
var _nodeUtil = {exports: {}};
|
|
1922
|
+
|
|
1923
|
+
(function (module, exports) {
|
|
1924
|
+
var freeGlobal = _freeGlobal;
|
|
1768
1925
|
|
|
1769
|
-
var _nodeUtil = createCommonjsModule(function (module, exports) {
|
|
1770
1926
|
/** Detect free variable `exports`. */
|
|
1771
1927
|
var freeExports = exports && !exports.nodeType && exports;
|
|
1772
1928
|
|
|
@@ -1777,7 +1933,7 @@ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeTy
|
|
|
1777
1933
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
1778
1934
|
|
|
1779
1935
|
/** Detect free variable `process` from Node.js. */
|
|
1780
|
-
var freeProcess = moduleExports &&
|
|
1936
|
+
var freeProcess = moduleExports && freeGlobal.process;
|
|
1781
1937
|
|
|
1782
1938
|
/** Used to access faster Node.js helpers. */
|
|
1783
1939
|
var nodeUtil = (function() {
|
|
@@ -1795,10 +1951,14 @@ var nodeUtil = (function() {
|
|
|
1795
1951
|
}());
|
|
1796
1952
|
|
|
1797
1953
|
module.exports = nodeUtil;
|
|
1798
|
-
});
|
|
1954
|
+
}(_nodeUtil, _nodeUtil.exports));
|
|
1955
|
+
|
|
1956
|
+
var baseIsTypedArray = _baseIsTypedArray,
|
|
1957
|
+
baseUnary = _baseUnary,
|
|
1958
|
+
nodeUtil = _nodeUtil.exports;
|
|
1799
1959
|
|
|
1800
1960
|
/* Node.js helper references. */
|
|
1801
|
-
var nodeIsTypedArray =
|
|
1961
|
+
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
1802
1962
|
|
|
1803
1963
|
/**
|
|
1804
1964
|
* Checks if `value` is classified as a typed array.
|
|
@@ -1817,9 +1977,9 @@ var nodeIsTypedArray = _nodeUtil && _nodeUtil.isTypedArray;
|
|
|
1817
1977
|
* _.isTypedArray([]);
|
|
1818
1978
|
* // => false
|
|
1819
1979
|
*/
|
|
1820
|
-
var isTypedArray = nodeIsTypedArray ?
|
|
1980
|
+
var isTypedArray$2 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
1821
1981
|
|
|
1822
|
-
var isTypedArray_1 = isTypedArray;
|
|
1982
|
+
var isTypedArray_1 = isTypedArray$2;
|
|
1823
1983
|
|
|
1824
1984
|
/**
|
|
1825
1985
|
* Gets the value at `key`, unless `key` is "__proto__" or "constructor".
|
|
@@ -1829,7 +1989,8 @@ var isTypedArray_1 = isTypedArray;
|
|
|
1829
1989
|
* @param {string} key The key of the property to get.
|
|
1830
1990
|
* @returns {*} Returns the property value.
|
|
1831
1991
|
*/
|
|
1832
|
-
|
|
1992
|
+
|
|
1993
|
+
function safeGet$2(object, key) {
|
|
1833
1994
|
if (key === 'constructor' && typeof object[key] === 'function') {
|
|
1834
1995
|
return;
|
|
1835
1996
|
}
|
|
@@ -1841,7 +2002,10 @@ function safeGet(object, key) {
|
|
|
1841
2002
|
return object[key];
|
|
1842
2003
|
}
|
|
1843
2004
|
|
|
1844
|
-
var _safeGet = safeGet;
|
|
2005
|
+
var _safeGet = safeGet$2;
|
|
2006
|
+
|
|
2007
|
+
var baseAssignValue$1 = _baseAssignValue,
|
|
2008
|
+
eq$1 = eq_1;
|
|
1845
2009
|
|
|
1846
2010
|
/** Used for built-in method references. */
|
|
1847
2011
|
var objectProto$2 = Object.prototype;
|
|
@@ -1859,15 +2023,18 @@ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
|
1859
2023
|
* @param {string} key The key of the property to assign.
|
|
1860
2024
|
* @param {*} value The value to assign.
|
|
1861
2025
|
*/
|
|
1862
|
-
function assignValue(object, key, value) {
|
|
2026
|
+
function assignValue$1(object, key, value) {
|
|
1863
2027
|
var objValue = object[key];
|
|
1864
|
-
if (!(hasOwnProperty$2.call(object, key) &&
|
|
2028
|
+
if (!(hasOwnProperty$2.call(object, key) && eq$1(objValue, value)) ||
|
|
1865
2029
|
(value === undefined && !(key in object))) {
|
|
1866
|
-
|
|
2030
|
+
baseAssignValue$1(object, key, value);
|
|
1867
2031
|
}
|
|
1868
2032
|
}
|
|
1869
2033
|
|
|
1870
|
-
var _assignValue = assignValue;
|
|
2034
|
+
var _assignValue = assignValue$1;
|
|
2035
|
+
|
|
2036
|
+
var assignValue = _assignValue,
|
|
2037
|
+
baseAssignValue = _baseAssignValue;
|
|
1871
2038
|
|
|
1872
2039
|
/**
|
|
1873
2040
|
* Copies properties of `source` to `object`.
|
|
@@ -1879,7 +2046,7 @@ var _assignValue = assignValue;
|
|
|
1879
2046
|
* @param {Function} [customizer] The function to customize copied values.
|
|
1880
2047
|
* @returns {Object} Returns `object`.
|
|
1881
2048
|
*/
|
|
1882
|
-
function copyObject(source, props, object, customizer) {
|
|
2049
|
+
function copyObject$1(source, props, object, customizer) {
|
|
1883
2050
|
var isNew = !object;
|
|
1884
2051
|
object || (object = {});
|
|
1885
2052
|
|
|
@@ -1897,15 +2064,15 @@ function copyObject(source, props, object, customizer) {
|
|
|
1897
2064
|
newValue = source[key];
|
|
1898
2065
|
}
|
|
1899
2066
|
if (isNew) {
|
|
1900
|
-
|
|
2067
|
+
baseAssignValue(object, key, newValue);
|
|
1901
2068
|
} else {
|
|
1902
|
-
|
|
2069
|
+
assignValue(object, key, newValue);
|
|
1903
2070
|
}
|
|
1904
2071
|
}
|
|
1905
2072
|
return object;
|
|
1906
2073
|
}
|
|
1907
2074
|
|
|
1908
|
-
var _copyObject = copyObject;
|
|
2075
|
+
var _copyObject = copyObject$1;
|
|
1909
2076
|
|
|
1910
2077
|
/**
|
|
1911
2078
|
* The base implementation of `_.times` without support for iteratee shorthands
|
|
@@ -1916,7 +2083,8 @@ var _copyObject = copyObject;
|
|
|
1916
2083
|
* @param {Function} iteratee The function invoked per iteration.
|
|
1917
2084
|
* @returns {Array} Returns the array of results.
|
|
1918
2085
|
*/
|
|
1919
|
-
|
|
2086
|
+
|
|
2087
|
+
function baseTimes$1(n, iteratee) {
|
|
1920
2088
|
var index = -1,
|
|
1921
2089
|
result = Array(n);
|
|
1922
2090
|
|
|
@@ -1926,9 +2094,10 @@ function baseTimes(n, iteratee) {
|
|
|
1926
2094
|
return result;
|
|
1927
2095
|
}
|
|
1928
2096
|
|
|
1929
|
-
var _baseTimes = baseTimes;
|
|
2097
|
+
var _baseTimes = baseTimes$1;
|
|
1930
2098
|
|
|
1931
2099
|
/** Used as references for various `Number` constants. */
|
|
2100
|
+
|
|
1932
2101
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1933
2102
|
|
|
1934
2103
|
/** Used to detect unsigned integer values. */
|
|
@@ -1942,7 +2111,7 @@ var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
|
1942
2111
|
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
1943
2112
|
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
1944
2113
|
*/
|
|
1945
|
-
function isIndex(value, length) {
|
|
2114
|
+
function isIndex$2(value, length) {
|
|
1946
2115
|
var type = typeof value;
|
|
1947
2116
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
1948
2117
|
|
|
@@ -1952,7 +2121,14 @@ function isIndex(value, length) {
|
|
|
1952
2121
|
(value > -1 && value % 1 == 0 && value < length);
|
|
1953
2122
|
}
|
|
1954
2123
|
|
|
1955
|
-
var _isIndex = isIndex;
|
|
2124
|
+
var _isIndex = isIndex$2;
|
|
2125
|
+
|
|
2126
|
+
var baseTimes = _baseTimes,
|
|
2127
|
+
isArguments$1 = isArguments_1,
|
|
2128
|
+
isArray$1 = isArray_1,
|
|
2129
|
+
isBuffer$1 = isBuffer$2.exports,
|
|
2130
|
+
isIndex$1 = _isIndex,
|
|
2131
|
+
isTypedArray$1 = isTypedArray_1;
|
|
1956
2132
|
|
|
1957
2133
|
/** Used for built-in method references. */
|
|
1958
2134
|
var objectProto$1 = Object.prototype;
|
|
@@ -1968,13 +2144,13 @@ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
|
1968
2144
|
* @param {boolean} inherited Specify returning inherited property names.
|
|
1969
2145
|
* @returns {Array} Returns the array of property names.
|
|
1970
2146
|
*/
|
|
1971
|
-
function arrayLikeKeys(value, inherited) {
|
|
1972
|
-
var isArr =
|
|
1973
|
-
isArg = !isArr &&
|
|
1974
|
-
isBuff = !isArr && !isArg &&
|
|
1975
|
-
isType = !isArr && !isArg && !isBuff &&
|
|
2147
|
+
function arrayLikeKeys$1(value, inherited) {
|
|
2148
|
+
var isArr = isArray$1(value),
|
|
2149
|
+
isArg = !isArr && isArguments$1(value),
|
|
2150
|
+
isBuff = !isArr && !isArg && isBuffer$1(value),
|
|
2151
|
+
isType = !isArr && !isArg && !isBuff && isTypedArray$1(value),
|
|
1976
2152
|
skipIndexes = isArr || isArg || isBuff || isType,
|
|
1977
|
-
result = skipIndexes ?
|
|
2153
|
+
result = skipIndexes ? baseTimes(value.length, String) : [],
|
|
1978
2154
|
length = result.length;
|
|
1979
2155
|
|
|
1980
2156
|
for (var key in value) {
|
|
@@ -1987,7 +2163,7 @@ function arrayLikeKeys(value, inherited) {
|
|
|
1987
2163
|
// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
1988
2164
|
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
|
|
1989
2165
|
// Skip index properties.
|
|
1990
|
-
|
|
2166
|
+
isIndex$1(key, length)
|
|
1991
2167
|
))) {
|
|
1992
2168
|
result.push(key);
|
|
1993
2169
|
}
|
|
@@ -1995,7 +2171,7 @@ function arrayLikeKeys(value, inherited) {
|
|
|
1995
2171
|
return result;
|
|
1996
2172
|
}
|
|
1997
2173
|
|
|
1998
|
-
var _arrayLikeKeys = arrayLikeKeys;
|
|
2174
|
+
var _arrayLikeKeys = arrayLikeKeys$1;
|
|
1999
2175
|
|
|
2000
2176
|
/**
|
|
2001
2177
|
* This function is like
|
|
@@ -2006,7 +2182,8 @@ var _arrayLikeKeys = arrayLikeKeys;
|
|
|
2006
2182
|
* @param {Object} object The object to query.
|
|
2007
2183
|
* @returns {Array} Returns the array of property names.
|
|
2008
2184
|
*/
|
|
2009
|
-
|
|
2185
|
+
|
|
2186
|
+
function nativeKeysIn$1(object) {
|
|
2010
2187
|
var result = [];
|
|
2011
2188
|
if (object != null) {
|
|
2012
2189
|
for (var key in Object(object)) {
|
|
@@ -2016,7 +2193,11 @@ function nativeKeysIn(object) {
|
|
|
2016
2193
|
return result;
|
|
2017
2194
|
}
|
|
2018
2195
|
|
|
2019
|
-
var _nativeKeysIn = nativeKeysIn;
|
|
2196
|
+
var _nativeKeysIn = nativeKeysIn$1;
|
|
2197
|
+
|
|
2198
|
+
var isObject$3 = isObject_1,
|
|
2199
|
+
isPrototype = _isPrototype,
|
|
2200
|
+
nativeKeysIn = _nativeKeysIn;
|
|
2020
2201
|
|
|
2021
2202
|
/** Used for built-in method references. */
|
|
2022
2203
|
var objectProto = Object.prototype;
|
|
@@ -2031,11 +2212,11 @@ var hasOwnProperty = objectProto.hasOwnProperty;
|
|
|
2031
2212
|
* @param {Object} object The object to query.
|
|
2032
2213
|
* @returns {Array} Returns the array of property names.
|
|
2033
2214
|
*/
|
|
2034
|
-
function baseKeysIn(object) {
|
|
2035
|
-
if (!
|
|
2036
|
-
return
|
|
2215
|
+
function baseKeysIn$1(object) {
|
|
2216
|
+
if (!isObject$3(object)) {
|
|
2217
|
+
return nativeKeysIn(object);
|
|
2037
2218
|
}
|
|
2038
|
-
var isProto =
|
|
2219
|
+
var isProto = isPrototype(object),
|
|
2039
2220
|
result = [];
|
|
2040
2221
|
|
|
2041
2222
|
for (var key in object) {
|
|
@@ -2046,7 +2227,11 @@ function baseKeysIn(object) {
|
|
|
2046
2227
|
return result;
|
|
2047
2228
|
}
|
|
2048
2229
|
|
|
2049
|
-
var _baseKeysIn = baseKeysIn;
|
|
2230
|
+
var _baseKeysIn = baseKeysIn$1;
|
|
2231
|
+
|
|
2232
|
+
var arrayLikeKeys = _arrayLikeKeys,
|
|
2233
|
+
baseKeysIn = _baseKeysIn,
|
|
2234
|
+
isArrayLike$1 = isArrayLike_1;
|
|
2050
2235
|
|
|
2051
2236
|
/**
|
|
2052
2237
|
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
@@ -2071,11 +2256,14 @@ var _baseKeysIn = baseKeysIn;
|
|
|
2071
2256
|
* _.keysIn(new Foo);
|
|
2072
2257
|
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
2073
2258
|
*/
|
|
2074
|
-
function keysIn(object) {
|
|
2075
|
-
return
|
|
2259
|
+
function keysIn$2(object) {
|
|
2260
|
+
return isArrayLike$1(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
2076
2261
|
}
|
|
2077
2262
|
|
|
2078
|
-
var keysIn_1 = keysIn;
|
|
2263
|
+
var keysIn_1 = keysIn$2;
|
|
2264
|
+
|
|
2265
|
+
var copyObject = _copyObject,
|
|
2266
|
+
keysIn$1 = keysIn_1;
|
|
2079
2267
|
|
|
2080
2268
|
/**
|
|
2081
2269
|
* Converts `value` to a plain object flattening inherited enumerable string
|
|
@@ -2101,11 +2289,27 @@ var keysIn_1 = keysIn;
|
|
|
2101
2289
|
* _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
|
|
2102
2290
|
* // => { 'a': 1, 'b': 2, 'c': 3 }
|
|
2103
2291
|
*/
|
|
2104
|
-
function toPlainObject(value) {
|
|
2105
|
-
return
|
|
2292
|
+
function toPlainObject$1(value) {
|
|
2293
|
+
return copyObject(value, keysIn$1(value));
|
|
2106
2294
|
}
|
|
2107
2295
|
|
|
2108
|
-
var toPlainObject_1 = toPlainObject;
|
|
2296
|
+
var toPlainObject_1 = toPlainObject$1;
|
|
2297
|
+
|
|
2298
|
+
var assignMergeValue$1 = _assignMergeValue,
|
|
2299
|
+
cloneBuffer = _cloneBuffer.exports,
|
|
2300
|
+
cloneTypedArray = _cloneTypedArray,
|
|
2301
|
+
copyArray = _copyArray,
|
|
2302
|
+
initCloneObject = _initCloneObject,
|
|
2303
|
+
isArguments = isArguments_1,
|
|
2304
|
+
isArray = isArray_1,
|
|
2305
|
+
isArrayLikeObject = isArrayLikeObject_1,
|
|
2306
|
+
isBuffer = isBuffer$2.exports,
|
|
2307
|
+
isFunction = isFunction_1,
|
|
2308
|
+
isObject$2 = isObject_1,
|
|
2309
|
+
isPlainObject = isPlainObject_1,
|
|
2310
|
+
isTypedArray = isTypedArray_1,
|
|
2311
|
+
safeGet$1 = _safeGet,
|
|
2312
|
+
toPlainObject = toPlainObject_1;
|
|
2109
2313
|
|
|
2110
2314
|
/**
|
|
2111
2315
|
* A specialized version of `baseMerge` for arrays and objects which performs
|
|
@@ -2122,13 +2326,13 @@ var toPlainObject_1 = toPlainObject;
|
|
|
2122
2326
|
* @param {Object} [stack] Tracks traversed source values and their merged
|
|
2123
2327
|
* counterparts.
|
|
2124
2328
|
*/
|
|
2125
|
-
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
2126
|
-
var objValue =
|
|
2127
|
-
srcValue =
|
|
2329
|
+
function baseMergeDeep$1(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
2330
|
+
var objValue = safeGet$1(object, key),
|
|
2331
|
+
srcValue = safeGet$1(source, key),
|
|
2128
2332
|
stacked = stack.get(srcValue);
|
|
2129
2333
|
|
|
2130
2334
|
if (stacked) {
|
|
2131
|
-
|
|
2335
|
+
assignMergeValue$1(object, key, stacked);
|
|
2132
2336
|
return;
|
|
2133
2337
|
}
|
|
2134
2338
|
var newValue = customizer
|
|
@@ -2138,37 +2342,37 @@ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, sta
|
|
|
2138
2342
|
var isCommon = newValue === undefined;
|
|
2139
2343
|
|
|
2140
2344
|
if (isCommon) {
|
|
2141
|
-
var isArr =
|
|
2142
|
-
isBuff = !isArr &&
|
|
2143
|
-
isTyped = !isArr && !isBuff &&
|
|
2345
|
+
var isArr = isArray(srcValue),
|
|
2346
|
+
isBuff = !isArr && isBuffer(srcValue),
|
|
2347
|
+
isTyped = !isArr && !isBuff && isTypedArray(srcValue);
|
|
2144
2348
|
|
|
2145
2349
|
newValue = srcValue;
|
|
2146
2350
|
if (isArr || isBuff || isTyped) {
|
|
2147
|
-
if (
|
|
2351
|
+
if (isArray(objValue)) {
|
|
2148
2352
|
newValue = objValue;
|
|
2149
2353
|
}
|
|
2150
|
-
else if (
|
|
2151
|
-
newValue =
|
|
2354
|
+
else if (isArrayLikeObject(objValue)) {
|
|
2355
|
+
newValue = copyArray(objValue);
|
|
2152
2356
|
}
|
|
2153
2357
|
else if (isBuff) {
|
|
2154
2358
|
isCommon = false;
|
|
2155
|
-
newValue =
|
|
2359
|
+
newValue = cloneBuffer(srcValue, true);
|
|
2156
2360
|
}
|
|
2157
2361
|
else if (isTyped) {
|
|
2158
2362
|
isCommon = false;
|
|
2159
|
-
newValue =
|
|
2363
|
+
newValue = cloneTypedArray(srcValue, true);
|
|
2160
2364
|
}
|
|
2161
2365
|
else {
|
|
2162
2366
|
newValue = [];
|
|
2163
2367
|
}
|
|
2164
2368
|
}
|
|
2165
|
-
else if (
|
|
2369
|
+
else if (isPlainObject(srcValue) || isArguments(srcValue)) {
|
|
2166
2370
|
newValue = objValue;
|
|
2167
|
-
if (
|
|
2168
|
-
newValue =
|
|
2371
|
+
if (isArguments(objValue)) {
|
|
2372
|
+
newValue = toPlainObject(objValue);
|
|
2169
2373
|
}
|
|
2170
|
-
else if (!
|
|
2171
|
-
newValue =
|
|
2374
|
+
else if (!isObject$2(objValue) || isFunction(objValue)) {
|
|
2375
|
+
newValue = initCloneObject(srcValue);
|
|
2172
2376
|
}
|
|
2173
2377
|
}
|
|
2174
2378
|
else {
|
|
@@ -2181,10 +2385,18 @@ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, sta
|
|
|
2181
2385
|
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
|
2182
2386
|
stack['delete'](srcValue);
|
|
2183
2387
|
}
|
|
2184
|
-
|
|
2388
|
+
assignMergeValue$1(object, key, newValue);
|
|
2185
2389
|
}
|
|
2186
2390
|
|
|
2187
|
-
var _baseMergeDeep = baseMergeDeep;
|
|
2391
|
+
var _baseMergeDeep = baseMergeDeep$1;
|
|
2392
|
+
|
|
2393
|
+
var Stack = _Stack,
|
|
2394
|
+
assignMergeValue = _assignMergeValue,
|
|
2395
|
+
baseFor = _baseFor,
|
|
2396
|
+
baseMergeDeep = _baseMergeDeep,
|
|
2397
|
+
isObject$1 = isObject_1,
|
|
2398
|
+
keysIn = keysIn_1,
|
|
2399
|
+
safeGet = _safeGet;
|
|
2188
2400
|
|
|
2189
2401
|
/**
|
|
2190
2402
|
* The base implementation of `_.merge` without support for multiple sources.
|
|
@@ -2197,29 +2409,29 @@ var _baseMergeDeep = baseMergeDeep;
|
|
|
2197
2409
|
* @param {Object} [stack] Tracks traversed source values and their merged
|
|
2198
2410
|
* counterparts.
|
|
2199
2411
|
*/
|
|
2200
|
-
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
2412
|
+
function baseMerge$1(object, source, srcIndex, customizer, stack) {
|
|
2201
2413
|
if (object === source) {
|
|
2202
2414
|
return;
|
|
2203
2415
|
}
|
|
2204
|
-
|
|
2205
|
-
stack || (stack = new
|
|
2206
|
-
if (
|
|
2207
|
-
|
|
2416
|
+
baseFor(source, function(srcValue, key) {
|
|
2417
|
+
stack || (stack = new Stack);
|
|
2418
|
+
if (isObject$1(srcValue)) {
|
|
2419
|
+
baseMergeDeep(object, source, key, srcIndex, baseMerge$1, customizer, stack);
|
|
2208
2420
|
}
|
|
2209
2421
|
else {
|
|
2210
2422
|
var newValue = customizer
|
|
2211
|
-
? customizer(
|
|
2423
|
+
? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
|
|
2212
2424
|
: undefined;
|
|
2213
2425
|
|
|
2214
2426
|
if (newValue === undefined) {
|
|
2215
2427
|
newValue = srcValue;
|
|
2216
2428
|
}
|
|
2217
|
-
|
|
2429
|
+
assignMergeValue(object, key, newValue);
|
|
2218
2430
|
}
|
|
2219
|
-
},
|
|
2431
|
+
}, keysIn);
|
|
2220
2432
|
}
|
|
2221
2433
|
|
|
2222
|
-
var _baseMerge = baseMerge;
|
|
2434
|
+
var _baseMerge = baseMerge$1;
|
|
2223
2435
|
|
|
2224
2436
|
/**
|
|
2225
2437
|
* This method returns the first argument it receives.
|
|
@@ -2237,11 +2449,12 @@ var _baseMerge = baseMerge;
|
|
|
2237
2449
|
* console.log(_.identity(object) === object);
|
|
2238
2450
|
* // => true
|
|
2239
2451
|
*/
|
|
2240
|
-
|
|
2452
|
+
|
|
2453
|
+
function identity$2(value) {
|
|
2241
2454
|
return value;
|
|
2242
2455
|
}
|
|
2243
2456
|
|
|
2244
|
-
var identity_1 = identity;
|
|
2457
|
+
var identity_1 = identity$2;
|
|
2245
2458
|
|
|
2246
2459
|
/**
|
|
2247
2460
|
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
@@ -2253,7 +2466,8 @@ var identity_1 = identity;
|
|
|
2253
2466
|
* @param {Array} args The arguments to invoke `func` with.
|
|
2254
2467
|
* @returns {*} Returns the result of `func`.
|
|
2255
2468
|
*/
|
|
2256
|
-
|
|
2469
|
+
|
|
2470
|
+
function apply$1(func, thisArg, args) {
|
|
2257
2471
|
switch (args.length) {
|
|
2258
2472
|
case 0: return func.call(thisArg);
|
|
2259
2473
|
case 1: return func.call(thisArg, args[0]);
|
|
@@ -2263,7 +2477,9 @@ function apply(func, thisArg, args) {
|
|
|
2263
2477
|
return func.apply(thisArg, args);
|
|
2264
2478
|
}
|
|
2265
2479
|
|
|
2266
|
-
var _apply = apply;
|
|
2480
|
+
var _apply = apply$1;
|
|
2481
|
+
|
|
2482
|
+
var apply = _apply;
|
|
2267
2483
|
|
|
2268
2484
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
2269
2485
|
var nativeMax = Math.max;
|
|
@@ -2277,7 +2493,7 @@ var nativeMax = Math.max;
|
|
|
2277
2493
|
* @param {Function} transform The rest array transform.
|
|
2278
2494
|
* @returns {Function} Returns the new function.
|
|
2279
2495
|
*/
|
|
2280
|
-
function overRest(func, start, transform) {
|
|
2496
|
+
function overRest$1(func, start, transform) {
|
|
2281
2497
|
start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
|
|
2282
2498
|
return function() {
|
|
2283
2499
|
var args = arguments,
|
|
@@ -2294,11 +2510,11 @@ function overRest(func, start, transform) {
|
|
|
2294
2510
|
otherArgs[index] = args[index];
|
|
2295
2511
|
}
|
|
2296
2512
|
otherArgs[start] = transform(array);
|
|
2297
|
-
return
|
|
2513
|
+
return apply(func, this, otherArgs);
|
|
2298
2514
|
};
|
|
2299
2515
|
}
|
|
2300
2516
|
|
|
2301
|
-
var _overRest = overRest;
|
|
2517
|
+
var _overRest = overRest$1;
|
|
2302
2518
|
|
|
2303
2519
|
/**
|
|
2304
2520
|
* Creates a function that returns `value`.
|
|
@@ -2319,13 +2535,18 @@ var _overRest = overRest;
|
|
|
2319
2535
|
* console.log(objects[0] === objects[1]);
|
|
2320
2536
|
* // => true
|
|
2321
2537
|
*/
|
|
2322
|
-
|
|
2538
|
+
|
|
2539
|
+
function constant$1(value) {
|
|
2323
2540
|
return function() {
|
|
2324
2541
|
return value;
|
|
2325
2542
|
};
|
|
2326
2543
|
}
|
|
2327
2544
|
|
|
2328
|
-
var constant_1 = constant;
|
|
2545
|
+
var constant_1 = constant$1;
|
|
2546
|
+
|
|
2547
|
+
var constant = constant_1,
|
|
2548
|
+
defineProperty = _defineProperty,
|
|
2549
|
+
identity$1 = identity_1;
|
|
2329
2550
|
|
|
2330
2551
|
/**
|
|
2331
2552
|
* The base implementation of `setToString` without support for hot loop shorting.
|
|
@@ -2335,18 +2556,19 @@ var constant_1 = constant;
|
|
|
2335
2556
|
* @param {Function} string The `toString` result.
|
|
2336
2557
|
* @returns {Function} Returns `func`.
|
|
2337
2558
|
*/
|
|
2338
|
-
var baseSetToString = !
|
|
2339
|
-
return
|
|
2559
|
+
var baseSetToString$1 = !defineProperty ? identity$1 : function(func, string) {
|
|
2560
|
+
return defineProperty(func, 'toString', {
|
|
2340
2561
|
'configurable': true,
|
|
2341
2562
|
'enumerable': false,
|
|
2342
|
-
'value':
|
|
2563
|
+
'value': constant(string),
|
|
2343
2564
|
'writable': true
|
|
2344
2565
|
});
|
|
2345
2566
|
};
|
|
2346
2567
|
|
|
2347
|
-
var _baseSetToString = baseSetToString;
|
|
2568
|
+
var _baseSetToString = baseSetToString$1;
|
|
2348
2569
|
|
|
2349
2570
|
/** Used to detect hot functions by number of calls within a span of milliseconds. */
|
|
2571
|
+
|
|
2350
2572
|
var HOT_COUNT = 800,
|
|
2351
2573
|
HOT_SPAN = 16;
|
|
2352
2574
|
|
|
@@ -2362,7 +2584,7 @@ var nativeNow = Date.now;
|
|
|
2362
2584
|
* @param {Function} func The function to restrict.
|
|
2363
2585
|
* @returns {Function} Returns the new shortable function.
|
|
2364
2586
|
*/
|
|
2365
|
-
function shortOut(func) {
|
|
2587
|
+
function shortOut$1(func) {
|
|
2366
2588
|
var count = 0,
|
|
2367
2589
|
lastCalled = 0;
|
|
2368
2590
|
|
|
@@ -2382,7 +2604,10 @@ function shortOut(func) {
|
|
|
2382
2604
|
};
|
|
2383
2605
|
}
|
|
2384
2606
|
|
|
2385
|
-
var _shortOut = shortOut;
|
|
2607
|
+
var _shortOut = shortOut$1;
|
|
2608
|
+
|
|
2609
|
+
var baseSetToString = _baseSetToString,
|
|
2610
|
+
shortOut = _shortOut;
|
|
2386
2611
|
|
|
2387
2612
|
/**
|
|
2388
2613
|
* Sets the `toString` method of `func` to return `string`.
|
|
@@ -2392,9 +2617,13 @@ var _shortOut = shortOut;
|
|
|
2392
2617
|
* @param {Function} string The `toString` result.
|
|
2393
2618
|
* @returns {Function} Returns `func`.
|
|
2394
2619
|
*/
|
|
2395
|
-
var setToString =
|
|
2620
|
+
var setToString$1 = shortOut(baseSetToString);
|
|
2621
|
+
|
|
2622
|
+
var _setToString = setToString$1;
|
|
2396
2623
|
|
|
2397
|
-
var
|
|
2624
|
+
var identity = identity_1,
|
|
2625
|
+
overRest = _overRest,
|
|
2626
|
+
setToString = _setToString;
|
|
2398
2627
|
|
|
2399
2628
|
/**
|
|
2400
2629
|
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
|
|
@@ -2404,11 +2633,16 @@ var _setToString = setToString;
|
|
|
2404
2633
|
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
2405
2634
|
* @returns {Function} Returns the new function.
|
|
2406
2635
|
*/
|
|
2407
|
-
function baseRest(func, start) {
|
|
2408
|
-
return
|
|
2636
|
+
function baseRest$1(func, start) {
|
|
2637
|
+
return setToString(overRest(func, start, identity), func + '');
|
|
2409
2638
|
}
|
|
2410
2639
|
|
|
2411
|
-
var _baseRest = baseRest;
|
|
2640
|
+
var _baseRest = baseRest$1;
|
|
2641
|
+
|
|
2642
|
+
var eq = eq_1,
|
|
2643
|
+
isArrayLike = isArrayLike_1,
|
|
2644
|
+
isIndex = _isIndex,
|
|
2645
|
+
isObject = isObject_1;
|
|
2412
2646
|
|
|
2413
2647
|
/**
|
|
2414
2648
|
* Checks if the given arguments are from an iteratee call.
|
|
@@ -2420,21 +2654,24 @@ var _baseRest = baseRest;
|
|
|
2420
2654
|
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
|
|
2421
2655
|
* else `false`.
|
|
2422
2656
|
*/
|
|
2423
|
-
function isIterateeCall(value, index, object) {
|
|
2424
|
-
if (!
|
|
2657
|
+
function isIterateeCall$1(value, index, object) {
|
|
2658
|
+
if (!isObject(object)) {
|
|
2425
2659
|
return false;
|
|
2426
2660
|
}
|
|
2427
2661
|
var type = typeof index;
|
|
2428
2662
|
if (type == 'number'
|
|
2429
|
-
? (
|
|
2663
|
+
? (isArrayLike(object) && isIndex(index, object.length))
|
|
2430
2664
|
: (type == 'string' && index in object)
|
|
2431
2665
|
) {
|
|
2432
|
-
return
|
|
2666
|
+
return eq(object[index], value);
|
|
2433
2667
|
}
|
|
2434
2668
|
return false;
|
|
2435
2669
|
}
|
|
2436
2670
|
|
|
2437
|
-
var _isIterateeCall = isIterateeCall;
|
|
2671
|
+
var _isIterateeCall = isIterateeCall$1;
|
|
2672
|
+
|
|
2673
|
+
var baseRest = _baseRest,
|
|
2674
|
+
isIterateeCall = _isIterateeCall;
|
|
2438
2675
|
|
|
2439
2676
|
/**
|
|
2440
2677
|
* Creates a function like `_.assign`.
|
|
@@ -2443,8 +2680,8 @@ var _isIterateeCall = isIterateeCall;
|
|
|
2443
2680
|
* @param {Function} assigner The function to assign values.
|
|
2444
2681
|
* @returns {Function} Returns the new assigner function.
|
|
2445
2682
|
*/
|
|
2446
|
-
function createAssigner(assigner) {
|
|
2447
|
-
return
|
|
2683
|
+
function createAssigner$1(assigner) {
|
|
2684
|
+
return baseRest(function(object, sources) {
|
|
2448
2685
|
var index = -1,
|
|
2449
2686
|
length = sources.length,
|
|
2450
2687
|
customizer = length > 1 ? sources[length - 1] : undefined,
|
|
@@ -2454,7 +2691,7 @@ function createAssigner(assigner) {
|
|
|
2454
2691
|
? (length--, customizer)
|
|
2455
2692
|
: undefined;
|
|
2456
2693
|
|
|
2457
|
-
if (guard &&
|
|
2694
|
+
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
2458
2695
|
customizer = length < 3 ? undefined : customizer;
|
|
2459
2696
|
length = 1;
|
|
2460
2697
|
}
|
|
@@ -2469,7 +2706,10 @@ function createAssigner(assigner) {
|
|
|
2469
2706
|
});
|
|
2470
2707
|
}
|
|
2471
2708
|
|
|
2472
|
-
var _createAssigner = createAssigner;
|
|
2709
|
+
var _createAssigner = createAssigner$1;
|
|
2710
|
+
|
|
2711
|
+
var baseMerge = _baseMerge,
|
|
2712
|
+
createAssigner = _createAssigner;
|
|
2473
2713
|
|
|
2474
2714
|
/**
|
|
2475
2715
|
* This method is like `_.assign` except that it recursively merges own and
|
|
@@ -2502,8 +2742,8 @@ var _createAssigner = createAssigner;
|
|
|
2502
2742
|
* _.merge(object, other);
|
|
2503
2743
|
* // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
|
|
2504
2744
|
*/
|
|
2505
|
-
var merge =
|
|
2506
|
-
|
|
2745
|
+
var merge = createAssigner(function(object, source, srcIndex) {
|
|
2746
|
+
baseMerge(object, source, srcIndex);
|
|
2507
2747
|
});
|
|
2508
2748
|
|
|
2509
2749
|
var merge_1 = merge;
|
|
@@ -2622,7 +2862,6 @@ const zonosStoreFontFamily = () => {
|
|
|
2622
2862
|
exports._baseGetTag = _baseGetTag;
|
|
2623
2863
|
exports._root = _root;
|
|
2624
2864
|
exports.commonjsGlobal = commonjsGlobal;
|
|
2625
|
-
exports.createCommonjsModule = createCommonjsModule;
|
|
2626
2865
|
exports.createStore = createStore;
|
|
2627
2866
|
exports.isObjectLike_1 = isObjectLike_1;
|
|
2628
2867
|
exports.isObject_1 = isObject_1;
|