@revolist/revogrid 4.9.21 → 4.9.23
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/{column.drag.plugin-9841e68f.js → column.drag.plugin-eb1db875.js} +48 -53
- package/dist/cjs/column.drag.plugin-eb1db875.js.map +1 -0
- package/dist/cjs/{column.service-2471e4f3.js → column.service-6089b047.js} +9 -19
- package/dist/cjs/column.service-6089b047.js.map +1 -0
- package/dist/{esm/debounce-e8e9464a.js → cjs/debounce-ec7a04b4.js} +36 -78
- package/dist/cjs/debounce-ec7a04b4.js.map +1 -0
- package/dist/cjs/{edit.utils-eef92df0.js → edit.utils-093fe9cd.js} +2 -2
- package/dist/cjs/{edit.utils-eef92df0.js.map → edit.utils-093fe9cd.js.map} +1 -1
- package/dist/cjs/{header-cell-renderer-751067c0.js → header-cell-renderer-2d56e8f5.js} +2 -2
- package/dist/cjs/{header-cell-renderer-751067c0.js.map → header-cell-renderer-2d56e8f5.js.map} +1 -1
- package/dist/cjs/{index-8bceed03.js → index-a9ee8eef.js} +289 -853
- package/dist/cjs/index-a9ee8eef.js.map +1 -0
- package/dist/cjs/index.cjs.js +8 -8
- package/dist/cjs/{key.utils-f548f37c.js → key.utils-1438f2ac.js} +2 -2
- package/dist/cjs/{key.utils-f548f37c.js.map → key.utils-1438f2ac.js.map} +1 -1
- package/dist/cjs/revo-grid.cjs.entry.js +41 -72
- package/dist/cjs/revo-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-attribution_6.cjs.entry.js +9 -9
- package/dist/cjs/revogr-attribution_6.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js +6 -6
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-data_4.cjs.entry.js +21 -44
- package/dist/cjs/revogr-data_4.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-filter-panel.cjs.entry.js +2 -2
- package/dist/cjs/revogr-filter-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/{row-header-utils-5d0d3fab.js → row-header-utils-eb5949b3.js} +7 -9
- package/dist/cjs/row-header-utils-eb5949b3.js.map +1 -0
- package/dist/cjs/{text-editor-f066d388.js → text-editor-ea3badef.js} +3 -3
- package/dist/cjs/{text-editor-f066d388.js.map → text-editor-ea3badef.js.map} +1 -1
- package/dist/cjs/{throttle-216690f1.js → throttle-6fecba1e.js} +6 -11
- package/dist/cjs/throttle-6fecba1e.js.map +1 -0
- package/dist/collection/components/revoGrid/revo-grid.js +9 -13
- package/dist/collection/components/revoGrid/revo-grid.js.map +1 -1
- package/dist/collection/services/dimension.provider.js +4 -3
- package/dist/collection/services/dimension.provider.js.map +1 -1
- package/dist/collection/store/dimension/dimension.store.js +19 -6
- package/dist/collection/store/dimension/dimension.store.js.map +1 -1
- package/dist/collection/store/vp/viewport.store.js +5 -7
- package/dist/collection/store/vp/viewport.store.js.map +1 -1
- package/dist/esm/{column.drag.plugin-c9787a50.js → column.drag.plugin-cb25a5e1.js} +45 -50
- package/dist/esm/column.drag.plugin-cb25a5e1.js.map +1 -0
- package/dist/esm/{column.service-a6682d9d.js → column.service-407956dd.js} +6 -16
- package/dist/esm/column.service-407956dd.js.map +1 -0
- package/dist/{cjs/debounce-cb5f4e35.js → esm/debounce-7b511afc.js} +26 -88
- package/dist/esm/debounce-7b511afc.js.map +1 -0
- package/dist/esm/{edit.utils-c358c970.js → edit.utils-1eeabeab.js} +2 -2
- package/dist/esm/{edit.utils-c358c970.js.map → edit.utils-1eeabeab.js.map} +1 -1
- package/dist/esm/{header-cell-renderer-52d9d6ba.js → header-cell-renderer-da468bd2.js} +2 -2
- package/dist/esm/{header-cell-renderer-52d9d6ba.js.map → header-cell-renderer-da468bd2.js.map} +1 -1
- package/dist/esm/{index-6c437a0d.js → index-b6586f9b.js} +269 -833
- package/dist/esm/index-b6586f9b.js.map +1 -0
- package/dist/esm/index.js +8 -8
- package/dist/esm/{key.utils-5a827d12.js → key.utils-562c749e.js} +2 -2
- package/dist/esm/{key.utils-5a827d12.js.map → key.utils-562c749e.js.map} +1 -1
- package/dist/esm/revo-grid.entry.js +37 -68
- package/dist/esm/revo-grid.entry.js.map +1 -1
- package/dist/esm/revogr-attribution_6.entry.js +9 -9
- package/dist/esm/revogr-attribution_6.entry.js.map +1 -1
- package/dist/esm/revogr-clipboard_3.entry.js +6 -6
- package/dist/esm/revogr-clipboard_3.entry.js.map +1 -1
- package/dist/esm/revogr-data_4.entry.js +17 -40
- package/dist/esm/revogr-data_4.entry.js.map +1 -1
- package/dist/esm/revogr-filter-panel.entry.js +2 -2
- package/dist/esm/revogr-filter-panel.entry.js.map +1 -1
- package/dist/esm/{row-header-utils-f5b04d1a.js → row-header-utils-e043f744.js} +7 -9
- package/dist/esm/row-header-utils-e043f744.js.map +1 -0
- package/dist/esm/{text-editor-79a617b5.js → text-editor-654f5d53.js} +3 -3
- package/dist/esm/{text-editor-79a617b5.js.map → text-editor-654f5d53.js.map} +1 -1
- package/dist/esm/{throttle-b94844de.js → throttle-bb3169c7.js} +4 -9
- package/dist/esm/throttle-bb3169c7.js.map +1 -0
- package/dist/revo-grid/column.drag.plugin-cb25a5e1.js +5 -0
- package/dist/revo-grid/column.drag.plugin-cb25a5e1.js.map +1 -0
- package/dist/revo-grid/column.service-407956dd.js +5 -0
- package/dist/revo-grid/column.service-407956dd.js.map +1 -0
- package/dist/revo-grid/debounce-7b511afc.js +5 -0
- package/dist/revo-grid/debounce-7b511afc.js.map +1 -0
- package/dist/revo-grid/{edit.utils-c358c970.js → edit.utils-1eeabeab.js} +2 -2
- package/dist/revo-grid/{header-cell-renderer-52d9d6ba.js → header-cell-renderer-da468bd2.js} +2 -2
- package/dist/revo-grid/index-b6586f9b.js +5 -0
- package/dist/revo-grid/index-b6586f9b.js.map +1 -0
- package/dist/revo-grid/index.esm.js +1 -1
- package/dist/revo-grid/{key.utils-5a827d12.js → key.utils-562c749e.js} +2 -2
- package/dist/revo-grid/revo-grid.entry.js +1 -1
- package/dist/revo-grid/revo-grid.entry.js.map +1 -1
- package/dist/revo-grid/revogr-attribution_6.entry.js +1 -1
- package/dist/revo-grid/revogr-clipboard_3.entry.js +1 -1
- package/dist/revo-grid/revogr-data_4.entry.js +1 -1
- package/dist/revo-grid/revogr-data_4.entry.js.map +1 -1
- package/dist/revo-grid/revogr-filter-panel.entry.js +1 -1
- package/dist/revo-grid/row-header-utils-e043f744.js +5 -0
- package/dist/revo-grid/row-header-utils-e043f744.js.map +1 -0
- package/dist/revo-grid/{text-editor-79a617b5.js → text-editor-654f5d53.js} +2 -2
- package/dist/revo-grid/throttle-bb3169c7.js +5 -0
- package/dist/revo-grid/throttle-bb3169c7.js.map +1 -0
- package/dist/types/store/dimension/dimension.store.d.ts +2 -1
- package/dist/types/store/vp/viewport.store.d.ts +0 -1
- package/hydrate/index.js +412 -1103
- package/hydrate/index.mjs +412 -1103
- package/package.json +3 -3
- package/standalone/column.service.js +5 -16
- package/standalone/column.service.js.map +1 -1
- package/standalone/debounce.js +7 -16
- package/standalone/debounce.js.map +1 -1
- package/standalone/dimension.helpers.js +15 -45
- package/standalone/dimension.helpers.js.map +1 -1
- package/standalone/index.js +0 -2
- package/standalone/index.js.map +1 -1
- package/standalone/index2.js +0 -2
- package/standalone/index2.js.map +1 -1
- package/standalone/reduce.js +1319 -474
- package/standalone/reduce.js.map +1 -1
- package/standalone/revo-grid.js +74 -111
- package/standalone/revo-grid.js.map +1 -1
- package/standalone/revogr-data2.js +0 -2
- package/standalone/revogr-data2.js.map +1 -1
- package/standalone/revogr-filter-panel.js +2 -2
- package/standalone/revogr-filter-panel.js.map +1 -1
- package/standalone/revogr-focus2.js +0 -2
- package/standalone/revogr-focus2.js.map +1 -1
- package/standalone/revogr-header2.js +12 -37
- package/standalone/revogr-header2.js.map +1 -1
- package/standalone/revogr-order-editor2.js +2 -4
- package/standalone/revogr-order-editor2.js.map +1 -1
- package/standalone/revogr-overlay-selection2.js +2 -4
- package/standalone/revogr-overlay-selection2.js.map +1 -1
- package/standalone/revogr-row-headers2.js +5 -9
- package/standalone/revogr-row-headers2.js.map +1 -1
- package/standalone/revogr-temp-range2.js +2 -2
- package/standalone/revogr-temp-range2.js.map +1 -1
- package/standalone/revogr-viewport-scroll2.js +2 -2
- package/standalone/revogr-viewport-scroll2.js.map +1 -1
- package/standalone/selection.utils.js +0 -2
- package/standalone/selection.utils.js.map +1 -1
- package/standalone/throttle.js +3 -8
- package/standalone/throttle.js.map +1 -1
- package/standalone/toNumber.js +165 -22
- package/standalone/toNumber.js.map +1 -1
- package/dist/cjs/column.drag.plugin-9841e68f.js.map +0 -1
- package/dist/cjs/column.service-2471e4f3.js.map +0 -1
- package/dist/cjs/debounce-cb5f4e35.js.map +0 -1
- package/dist/cjs/index-8bceed03.js.map +0 -1
- package/dist/cjs/row-header-utils-5d0d3fab.js.map +0 -1
- package/dist/cjs/throttle-216690f1.js.map +0 -1
- package/dist/esm/column.drag.plugin-c9787a50.js.map +0 -1
- package/dist/esm/column.service-a6682d9d.js.map +0 -1
- package/dist/esm/debounce-e8e9464a.js.map +0 -1
- package/dist/esm/index-6c437a0d.js.map +0 -1
- package/dist/esm/row-header-utils-f5b04d1a.js.map +0 -1
- package/dist/esm/throttle-b94844de.js.map +0 -1
- package/dist/revo-grid/column.drag.plugin-c9787a50.js +0 -5
- package/dist/revo-grid/column.drag.plugin-c9787a50.js.map +0 -1
- package/dist/revo-grid/column.service-a6682d9d.js +0 -5
- package/dist/revo-grid/column.service-a6682d9d.js.map +0 -1
- package/dist/revo-grid/debounce-e8e9464a.js +0 -5
- package/dist/revo-grid/debounce-e8e9464a.js.map +0 -1
- package/dist/revo-grid/index-6c437a0d.js +0 -5
- package/dist/revo-grid/index-6c437a0d.js.map +0 -1
- package/dist/revo-grid/row-header-utils-f5b04d1a.js +0 -5
- package/dist/revo-grid/row-header-utils-f5b04d1a.js.map +0 -1
- package/dist/revo-grid/throttle-b94844de.js +0 -5
- package/dist/revo-grid/throttle-b94844de.js.map +0 -1
- package/standalone/_stringToPath.js +0 -1389
- package/standalone/_stringToPath.js.map +0 -1
- package/standalone/isObjectLike.js +0 -195
- package/standalone/isObjectLike.js.map +0 -1
- /package/dist/revo-grid/{edit.utils-c358c970.js.map → edit.utils-1eeabeab.js.map} +0 -0
- /package/dist/revo-grid/{header-cell-renderer-52d9d6ba.js.map → header-cell-renderer-da468bd2.js.map} +0 -0
- /package/dist/revo-grid/{key.utils-5a827d12.js.map → key.utils-562c749e.js.map} +0 -0
- /package/dist/revo-grid/{text-editor-79a617b5.js.map → text-editor-654f5d53.js.map} +0 -0
package/hydrate/index.mjs
CHANGED
|
@@ -1436,7 +1436,7 @@ var serverSideConnected = (elm) => {
|
|
|
1436
1436
|
};
|
|
1437
1437
|
|
|
1438
1438
|
// src/runtime/set-value.ts
|
|
1439
|
-
var getValue$
|
|
1439
|
+
var getValue$1 = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1440
1440
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1441
1441
|
const hostRef = getHostRef(ref);
|
|
1442
1442
|
if (!hostRef) {
|
|
@@ -1486,7 +1486,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1486
1486
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1487
1487
|
Object.defineProperty(prototype, memberName, {
|
|
1488
1488
|
get() {
|
|
1489
|
-
return getValue$
|
|
1489
|
+
return getValue$1(this, memberName);
|
|
1490
1490
|
},
|
|
1491
1491
|
set(newValue) {
|
|
1492
1492
|
setValue(this, memberName, newValue, cmpMeta);
|
|
@@ -1901,7 +1901,7 @@ function proxyHostElement(elm, cmpMeta) {
|
|
|
1901
1901
|
}
|
|
1902
1902
|
Object.defineProperty(elm, memberName, {
|
|
1903
1903
|
get() {
|
|
1904
|
-
return getValue$
|
|
1904
|
+
return getValue$1(this, memberName);
|
|
1905
1905
|
},
|
|
1906
1906
|
set(newValue) {
|
|
1907
1907
|
setValue(this, memberName, newValue, cmpMeta);
|
|
@@ -2435,8 +2435,6 @@ class Clipboard {
|
|
|
2435
2435
|
}; }
|
|
2436
2436
|
}
|
|
2437
2437
|
|
|
2438
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2439
|
-
|
|
2440
2438
|
/**
|
|
2441
2439
|
* Checks if `value` is the
|
|
2442
2440
|
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
@@ -2462,31 +2460,23 @@ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof win
|
|
|
2462
2460
|
* _.isObject(null);
|
|
2463
2461
|
* // => false
|
|
2464
2462
|
*/
|
|
2465
|
-
|
|
2466
|
-
function isObject$7(value) {
|
|
2463
|
+
function isObject(value) {
|
|
2467
2464
|
var type = typeof value;
|
|
2468
2465
|
return value != null && (type == 'object' || type == 'function');
|
|
2469
2466
|
}
|
|
2470
2467
|
|
|
2471
|
-
var isObject_1 = isObject$7;
|
|
2472
|
-
|
|
2473
2468
|
/** Detect free variable `global` from Node.js. */
|
|
2469
|
+
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
2474
2470
|
|
|
2475
|
-
var freeGlobal$1 =
|
|
2476
|
-
|
|
2477
|
-
var _freeGlobal = freeGlobal$1;
|
|
2478
|
-
|
|
2479
|
-
var freeGlobal = _freeGlobal;
|
|
2471
|
+
var freeGlobal$1 = freeGlobal;
|
|
2480
2472
|
|
|
2481
2473
|
/** Detect free variable `self`. */
|
|
2482
2474
|
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
2483
2475
|
|
|
2484
2476
|
/** Used as a reference to the global object. */
|
|
2485
|
-
var root
|
|
2486
|
-
|
|
2487
|
-
var _root = root$9;
|
|
2477
|
+
var root = freeGlobal$1 || freeSelf || Function('return this')();
|
|
2488
2478
|
|
|
2489
|
-
var root$
|
|
2479
|
+
var root$1 = root;
|
|
2490
2480
|
|
|
2491
2481
|
/**
|
|
2492
2482
|
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
@@ -2504,14 +2494,13 @@ var root$8 = _root;
|
|
|
2504
2494
|
* }, _.now());
|
|
2505
2495
|
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
2506
2496
|
*/
|
|
2507
|
-
var now
|
|
2508
|
-
return root$
|
|
2497
|
+
var now = function() {
|
|
2498
|
+
return root$1.Date.now();
|
|
2509
2499
|
};
|
|
2510
2500
|
|
|
2511
|
-
var
|
|
2501
|
+
var now$1 = now;
|
|
2512
2502
|
|
|
2513
2503
|
/** Used to match a single whitespace character. */
|
|
2514
|
-
|
|
2515
2504
|
var reWhitespace = /\s/;
|
|
2516
2505
|
|
|
2517
2506
|
/**
|
|
@@ -2522,17 +2511,13 @@ var reWhitespace = /\s/;
|
|
|
2522
2511
|
* @param {string} string The string to inspect.
|
|
2523
2512
|
* @returns {number} Returns the index of the last non-whitespace character.
|
|
2524
2513
|
*/
|
|
2525
|
-
function trimmedEndIndex
|
|
2514
|
+
function trimmedEndIndex(string) {
|
|
2526
2515
|
var index = string.length;
|
|
2527
2516
|
|
|
2528
2517
|
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
2529
2518
|
return index;
|
|
2530
2519
|
}
|
|
2531
2520
|
|
|
2532
|
-
var _trimmedEndIndex = trimmedEndIndex$1;
|
|
2533
|
-
|
|
2534
|
-
var trimmedEndIndex = _trimmedEndIndex;
|
|
2535
|
-
|
|
2536
2521
|
/** Used to match leading whitespace. */
|
|
2537
2522
|
var reTrimStart = /^\s+/;
|
|
2538
2523
|
|
|
@@ -2543,22 +2528,16 @@ var reTrimStart = /^\s+/;
|
|
|
2543
2528
|
* @param {string} string The string to trim.
|
|
2544
2529
|
* @returns {string} Returns the trimmed string.
|
|
2545
2530
|
*/
|
|
2546
|
-
function baseTrim
|
|
2531
|
+
function baseTrim(string) {
|
|
2547
2532
|
return string
|
|
2548
2533
|
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
|
2549
2534
|
: string;
|
|
2550
2535
|
}
|
|
2551
2536
|
|
|
2552
|
-
var _baseTrim = baseTrim$1;
|
|
2553
|
-
|
|
2554
|
-
var root$7 = _root;
|
|
2555
|
-
|
|
2556
2537
|
/** Built-in value references. */
|
|
2557
|
-
var Symbol
|
|
2538
|
+
var Symbol = root$1.Symbol;
|
|
2558
2539
|
|
|
2559
|
-
var
|
|
2560
|
-
|
|
2561
|
-
var Symbol$3 = _Symbol;
|
|
2540
|
+
var Symbol$1 = Symbol;
|
|
2562
2541
|
|
|
2563
2542
|
/** Used for built-in method references. */
|
|
2564
2543
|
var objectProto$b = Object.prototype;
|
|
@@ -2574,7 +2553,7 @@ var hasOwnProperty$8 = objectProto$b.hasOwnProperty;
|
|
|
2574
2553
|
var nativeObjectToString$1 = objectProto$b.toString;
|
|
2575
2554
|
|
|
2576
2555
|
/** Built-in value references. */
|
|
2577
|
-
var symToStringTag$1 = Symbol$
|
|
2556
|
+
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
2578
2557
|
|
|
2579
2558
|
/**
|
|
2580
2559
|
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
@@ -2583,7 +2562,7 @@ var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : undefined;
|
|
|
2583
2562
|
* @param {*} value The value to query.
|
|
2584
2563
|
* @returns {string} Returns the raw `toStringTag`.
|
|
2585
2564
|
*/
|
|
2586
|
-
function getRawTag
|
|
2565
|
+
function getRawTag(value) {
|
|
2587
2566
|
var isOwn = hasOwnProperty$8.call(value, symToStringTag$1),
|
|
2588
2567
|
tag = value[symToStringTag$1];
|
|
2589
2568
|
|
|
@@ -2603,10 +2582,7 @@ function getRawTag$1(value) {
|
|
|
2603
2582
|
return result;
|
|
2604
2583
|
}
|
|
2605
2584
|
|
|
2606
|
-
var _getRawTag = getRawTag$1;
|
|
2607
|
-
|
|
2608
2585
|
/** Used for built-in method references. */
|
|
2609
|
-
|
|
2610
2586
|
var objectProto$a = Object.prototype;
|
|
2611
2587
|
|
|
2612
2588
|
/**
|
|
@@ -2623,22 +2599,16 @@ var nativeObjectToString = objectProto$a.toString;
|
|
|
2623
2599
|
* @param {*} value The value to convert.
|
|
2624
2600
|
* @returns {string} Returns the converted string.
|
|
2625
2601
|
*/
|
|
2626
|
-
function objectToString
|
|
2602
|
+
function objectToString(value) {
|
|
2627
2603
|
return nativeObjectToString.call(value);
|
|
2628
2604
|
}
|
|
2629
2605
|
|
|
2630
|
-
var _objectToString = objectToString$1;
|
|
2631
|
-
|
|
2632
|
-
var Symbol$2 = _Symbol,
|
|
2633
|
-
getRawTag = _getRawTag,
|
|
2634
|
-
objectToString = _objectToString;
|
|
2635
|
-
|
|
2636
2606
|
/** `Object#toString` result references. */
|
|
2637
2607
|
var nullTag = '[object Null]',
|
|
2638
2608
|
undefinedTag = '[object Undefined]';
|
|
2639
2609
|
|
|
2640
2610
|
/** Built-in value references. */
|
|
2641
|
-
var symToStringTag = Symbol$
|
|
2611
|
+
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
2642
2612
|
|
|
2643
2613
|
/**
|
|
2644
2614
|
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
@@ -2647,7 +2617,7 @@ var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : undefined;
|
|
|
2647
2617
|
* @param {*} value The value to query.
|
|
2648
2618
|
* @returns {string} Returns the `toStringTag`.
|
|
2649
2619
|
*/
|
|
2650
|
-
function baseGetTag
|
|
2620
|
+
function baseGetTag(value) {
|
|
2651
2621
|
if (value == null) {
|
|
2652
2622
|
return value === undefined ? undefinedTag : nullTag;
|
|
2653
2623
|
}
|
|
@@ -2656,8 +2626,6 @@ function baseGetTag$6(value) {
|
|
|
2656
2626
|
: objectToString(value);
|
|
2657
2627
|
}
|
|
2658
2628
|
|
|
2659
|
-
var _baseGetTag = baseGetTag$6;
|
|
2660
|
-
|
|
2661
2629
|
/**
|
|
2662
2630
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
2663
2631
|
* and has a `typeof` result of "object".
|
|
@@ -2682,16 +2650,10 @@ var _baseGetTag = baseGetTag$6;
|
|
|
2682
2650
|
* _.isObjectLike(null);
|
|
2683
2651
|
* // => false
|
|
2684
2652
|
*/
|
|
2685
|
-
|
|
2686
|
-
function isObjectLike$6(value) {
|
|
2653
|
+
function isObjectLike(value) {
|
|
2687
2654
|
return value != null && typeof value == 'object';
|
|
2688
2655
|
}
|
|
2689
2656
|
|
|
2690
|
-
var isObjectLike_1 = isObjectLike$6;
|
|
2691
|
-
|
|
2692
|
-
var baseGetTag$5 = _baseGetTag,
|
|
2693
|
-
isObjectLike$5 = isObjectLike_1;
|
|
2694
|
-
|
|
2695
2657
|
/** `Object#toString` result references. */
|
|
2696
2658
|
var symbolTag$1 = '[object Symbol]';
|
|
2697
2659
|
|
|
@@ -2712,17 +2674,11 @@ var symbolTag$1 = '[object Symbol]';
|
|
|
2712
2674
|
* _.isSymbol('abc');
|
|
2713
2675
|
* // => false
|
|
2714
2676
|
*/
|
|
2715
|
-
function isSymbol
|
|
2677
|
+
function isSymbol(value) {
|
|
2716
2678
|
return typeof value == 'symbol' ||
|
|
2717
|
-
(isObjectLike
|
|
2679
|
+
(isObjectLike(value) && baseGetTag(value) == symbolTag$1);
|
|
2718
2680
|
}
|
|
2719
2681
|
|
|
2720
|
-
var isSymbol_1 = isSymbol$6;
|
|
2721
|
-
|
|
2722
|
-
var baseTrim = _baseTrim,
|
|
2723
|
-
isObject$6 = isObject_1,
|
|
2724
|
-
isSymbol$5 = isSymbol_1;
|
|
2725
|
-
|
|
2726
2682
|
/** Used as references for various `Number` constants. */
|
|
2727
2683
|
var NAN = 0 / 0;
|
|
2728
2684
|
|
|
@@ -2761,16 +2717,16 @@ var freeParseInt = parseInt;
|
|
|
2761
2717
|
* _.toNumber('3.2');
|
|
2762
2718
|
* // => 3.2
|
|
2763
2719
|
*/
|
|
2764
|
-
function toNumber
|
|
2720
|
+
function toNumber(value) {
|
|
2765
2721
|
if (typeof value == 'number') {
|
|
2766
2722
|
return value;
|
|
2767
2723
|
}
|
|
2768
|
-
if (isSymbol
|
|
2724
|
+
if (isSymbol(value)) {
|
|
2769
2725
|
return NAN;
|
|
2770
2726
|
}
|
|
2771
|
-
if (isObject
|
|
2727
|
+
if (isObject(value)) {
|
|
2772
2728
|
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
2773
|
-
value = isObject
|
|
2729
|
+
value = isObject(other) ? (other + '') : other;
|
|
2774
2730
|
}
|
|
2775
2731
|
if (typeof value != 'string') {
|
|
2776
2732
|
return value === 0 ? value : +value;
|
|
@@ -2782,12 +2738,6 @@ function toNumber$2(value) {
|
|
|
2782
2738
|
: (reIsBadHex.test(value) ? NAN : +value);
|
|
2783
2739
|
}
|
|
2784
2740
|
|
|
2785
|
-
var toNumber_1 = toNumber$2;
|
|
2786
|
-
|
|
2787
|
-
var isObject$5 = isObject_1,
|
|
2788
|
-
now = now_1,
|
|
2789
|
-
toNumber$1 = toNumber_1;
|
|
2790
|
-
|
|
2791
2741
|
/** Error message constants. */
|
|
2792
2742
|
var FUNC_ERROR_TEXT$2 = 'Expected a function';
|
|
2793
2743
|
|
|
@@ -2849,7 +2799,7 @@ var nativeMax$2 = Math.max,
|
|
|
2849
2799
|
* // Cancel the trailing debounced invocation.
|
|
2850
2800
|
* jQuery(window).on('popstate', debounced.cancel);
|
|
2851
2801
|
*/
|
|
2852
|
-
function debounce$
|
|
2802
|
+
function debounce$1(func, wait, options) {
|
|
2853
2803
|
var lastArgs,
|
|
2854
2804
|
lastThis,
|
|
2855
2805
|
maxWait,
|
|
@@ -2864,11 +2814,11 @@ function debounce$2(func, wait, options) {
|
|
|
2864
2814
|
if (typeof func != 'function') {
|
|
2865
2815
|
throw new TypeError(FUNC_ERROR_TEXT$2);
|
|
2866
2816
|
}
|
|
2867
|
-
wait = toNumber
|
|
2868
|
-
if (isObject
|
|
2817
|
+
wait = toNumber(wait) || 0;
|
|
2818
|
+
if (isObject(options)) {
|
|
2869
2819
|
leading = !!options.leading;
|
|
2870
2820
|
maxing = 'maxWait' in options;
|
|
2871
|
-
maxWait = maxing ? nativeMax$2(toNumber
|
|
2821
|
+
maxWait = maxing ? nativeMax$2(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
2872
2822
|
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
2873
2823
|
}
|
|
2874
2824
|
|
|
@@ -2913,7 +2863,7 @@ function debounce$2(func, wait, options) {
|
|
|
2913
2863
|
}
|
|
2914
2864
|
|
|
2915
2865
|
function timerExpired() {
|
|
2916
|
-
var time = now();
|
|
2866
|
+
var time = now$1();
|
|
2917
2867
|
if (shouldInvoke(time)) {
|
|
2918
2868
|
return trailingEdge(time);
|
|
2919
2869
|
}
|
|
@@ -2942,11 +2892,11 @@ function debounce$2(func, wait, options) {
|
|
|
2942
2892
|
}
|
|
2943
2893
|
|
|
2944
2894
|
function flush() {
|
|
2945
|
-
return timerId === undefined ? result : trailingEdge(now());
|
|
2895
|
+
return timerId === undefined ? result : trailingEdge(now$1());
|
|
2946
2896
|
}
|
|
2947
2897
|
|
|
2948
2898
|
function debounced() {
|
|
2949
|
-
var time = now(),
|
|
2899
|
+
var time = now$1(),
|
|
2950
2900
|
isInvoking = shouldInvoke(time);
|
|
2951
2901
|
|
|
2952
2902
|
lastArgs = arguments;
|
|
@@ -2974,8 +2924,6 @@ function debounce$2(func, wait, options) {
|
|
|
2974
2924
|
return debounced;
|
|
2975
2925
|
}
|
|
2976
2926
|
|
|
2977
|
-
var debounce_1 = debounce$2;
|
|
2978
|
-
|
|
2979
2927
|
const FILTER_BUTTON_CLASS = 'rv-filter';
|
|
2980
2928
|
const FILTER_BUTTON_ACTIVE = 'active';
|
|
2981
2929
|
const FILTER_PROP = 'hasFilter';
|
|
@@ -3053,7 +3001,7 @@ class FilterPanel {
|
|
|
3053
3001
|
and: 'and',
|
|
3054
3002
|
or: 'or',
|
|
3055
3003
|
};
|
|
3056
|
-
this.debouncedApplyFilter =
|
|
3004
|
+
this.debouncedApplyFilter = debounce$1(() => {
|
|
3057
3005
|
this.filterChange.emit(this.filterItems);
|
|
3058
3006
|
}, 400);
|
|
3059
3007
|
this.isFilterIdSet = false;
|
|
@@ -3381,8 +3329,7 @@ function isProxy(k) {
|
|
|
3381
3329
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
3382
3330
|
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
3383
3331
|
*/
|
|
3384
|
-
|
|
3385
|
-
function baseFindIndex$1(array, predicate, fromIndex, fromRight) {
|
|
3332
|
+
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
3386
3333
|
var length = array.length,
|
|
3387
3334
|
index = fromIndex + (fromRight ? 1 : -1);
|
|
3388
3335
|
|
|
@@ -3394,8 +3341,6 @@ function baseFindIndex$1(array, predicate, fromIndex, fromRight) {
|
|
|
3394
3341
|
return -1;
|
|
3395
3342
|
}
|
|
3396
3343
|
|
|
3397
|
-
var _baseFindIndex = baseFindIndex$1;
|
|
3398
|
-
|
|
3399
3344
|
/**
|
|
3400
3345
|
* Removes all key-value entries from the list cache.
|
|
3401
3346
|
*
|
|
@@ -3403,14 +3348,11 @@ var _baseFindIndex = baseFindIndex$1;
|
|
|
3403
3348
|
* @name clear
|
|
3404
3349
|
* @memberOf ListCache
|
|
3405
3350
|
*/
|
|
3406
|
-
|
|
3407
|
-
function listCacheClear$1() {
|
|
3351
|
+
function listCacheClear() {
|
|
3408
3352
|
this.__data__ = [];
|
|
3409
3353
|
this.size = 0;
|
|
3410
3354
|
}
|
|
3411
3355
|
|
|
3412
|
-
var _listCacheClear = listCacheClear$1;
|
|
3413
|
-
|
|
3414
3356
|
/**
|
|
3415
3357
|
* Performs a
|
|
3416
3358
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -3443,15 +3385,10 @@ var _listCacheClear = listCacheClear$1;
|
|
|
3443
3385
|
* _.eq(NaN, NaN);
|
|
3444
3386
|
* // => true
|
|
3445
3387
|
*/
|
|
3446
|
-
|
|
3447
|
-
function eq$4(value, other) {
|
|
3388
|
+
function eq$1(value, other) {
|
|
3448
3389
|
return value === other || (value !== value && other !== other);
|
|
3449
3390
|
}
|
|
3450
3391
|
|
|
3451
|
-
var eq_1 = eq$4;
|
|
3452
|
-
|
|
3453
|
-
var eq$3 = eq_1;
|
|
3454
|
-
|
|
3455
3392
|
/**
|
|
3456
3393
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
3457
3394
|
*
|
|
@@ -3460,20 +3397,16 @@ var eq$3 = eq_1;
|
|
|
3460
3397
|
* @param {*} key The key to search for.
|
|
3461
3398
|
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
3462
3399
|
*/
|
|
3463
|
-
function assocIndexOf
|
|
3400
|
+
function assocIndexOf(array, key) {
|
|
3464
3401
|
var length = array.length;
|
|
3465
3402
|
while (length--) {
|
|
3466
|
-
if (eq$
|
|
3403
|
+
if (eq$1(array[length][0], key)) {
|
|
3467
3404
|
return length;
|
|
3468
3405
|
}
|
|
3469
3406
|
}
|
|
3470
3407
|
return -1;
|
|
3471
3408
|
}
|
|
3472
3409
|
|
|
3473
|
-
var _assocIndexOf = assocIndexOf$4;
|
|
3474
|
-
|
|
3475
|
-
var assocIndexOf$3 = _assocIndexOf;
|
|
3476
|
-
|
|
3477
3410
|
/** Used for built-in method references. */
|
|
3478
3411
|
var arrayProto = Array.prototype;
|
|
3479
3412
|
|
|
@@ -3489,9 +3422,9 @@ var splice = arrayProto.splice;
|
|
|
3489
3422
|
* @param {string} key The key of the value to remove.
|
|
3490
3423
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
3491
3424
|
*/
|
|
3492
|
-
function listCacheDelete
|
|
3425
|
+
function listCacheDelete(key) {
|
|
3493
3426
|
var data = this.__data__,
|
|
3494
|
-
index = assocIndexOf
|
|
3427
|
+
index = assocIndexOf(data, key);
|
|
3495
3428
|
|
|
3496
3429
|
if (index < 0) {
|
|
3497
3430
|
return false;
|
|
@@ -3506,10 +3439,6 @@ function listCacheDelete$1(key) {
|
|
|
3506
3439
|
return true;
|
|
3507
3440
|
}
|
|
3508
3441
|
|
|
3509
|
-
var _listCacheDelete = listCacheDelete$1;
|
|
3510
|
-
|
|
3511
|
-
var assocIndexOf$2 = _assocIndexOf;
|
|
3512
|
-
|
|
3513
3442
|
/**
|
|
3514
3443
|
* Gets the list cache value for `key`.
|
|
3515
3444
|
*
|
|
@@ -3519,17 +3448,13 @@ var assocIndexOf$2 = _assocIndexOf;
|
|
|
3519
3448
|
* @param {string} key The key of the value to get.
|
|
3520
3449
|
* @returns {*} Returns the entry value.
|
|
3521
3450
|
*/
|
|
3522
|
-
function listCacheGet
|
|
3451
|
+
function listCacheGet(key) {
|
|
3523
3452
|
var data = this.__data__,
|
|
3524
|
-
index = assocIndexOf
|
|
3453
|
+
index = assocIndexOf(data, key);
|
|
3525
3454
|
|
|
3526
3455
|
return index < 0 ? undefined : data[index][1];
|
|
3527
3456
|
}
|
|
3528
3457
|
|
|
3529
|
-
var _listCacheGet = listCacheGet$1;
|
|
3530
|
-
|
|
3531
|
-
var assocIndexOf$1 = _assocIndexOf;
|
|
3532
|
-
|
|
3533
3458
|
/**
|
|
3534
3459
|
* Checks if a list cache value for `key` exists.
|
|
3535
3460
|
*
|
|
@@ -3539,14 +3464,10 @@ var assocIndexOf$1 = _assocIndexOf;
|
|
|
3539
3464
|
* @param {string} key The key of the entry to check.
|
|
3540
3465
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
3541
3466
|
*/
|
|
3542
|
-
function listCacheHas
|
|
3543
|
-
return assocIndexOf
|
|
3467
|
+
function listCacheHas(key) {
|
|
3468
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
3544
3469
|
}
|
|
3545
3470
|
|
|
3546
|
-
var _listCacheHas = listCacheHas$1;
|
|
3547
|
-
|
|
3548
|
-
var assocIndexOf = _assocIndexOf;
|
|
3549
|
-
|
|
3550
3471
|
/**
|
|
3551
3472
|
* Sets the list cache `key` to `value`.
|
|
3552
3473
|
*
|
|
@@ -3557,7 +3478,7 @@ var assocIndexOf = _assocIndexOf;
|
|
|
3557
3478
|
* @param {*} value The value to set.
|
|
3558
3479
|
* @returns {Object} Returns the list cache instance.
|
|
3559
3480
|
*/
|
|
3560
|
-
function listCacheSet
|
|
3481
|
+
function listCacheSet(key, value) {
|
|
3561
3482
|
var data = this.__data__,
|
|
3562
3483
|
index = assocIndexOf(data, key);
|
|
3563
3484
|
|
|
@@ -3570,14 +3491,6 @@ function listCacheSet$1(key, value) {
|
|
|
3570
3491
|
return this;
|
|
3571
3492
|
}
|
|
3572
3493
|
|
|
3573
|
-
var _listCacheSet = listCacheSet$1;
|
|
3574
|
-
|
|
3575
|
-
var listCacheClear = _listCacheClear,
|
|
3576
|
-
listCacheDelete = _listCacheDelete,
|
|
3577
|
-
listCacheGet = _listCacheGet,
|
|
3578
|
-
listCacheHas = _listCacheHas,
|
|
3579
|
-
listCacheSet = _listCacheSet;
|
|
3580
|
-
|
|
3581
3494
|
/**
|
|
3582
3495
|
* Creates an list cache object.
|
|
3583
3496
|
*
|
|
@@ -3585,7 +3498,7 @@ var listCacheClear = _listCacheClear,
|
|
|
3585
3498
|
* @constructor
|
|
3586
3499
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
3587
3500
|
*/
|
|
3588
|
-
function ListCache
|
|
3501
|
+
function ListCache(entries) {
|
|
3589
3502
|
var index = -1,
|
|
3590
3503
|
length = entries == null ? 0 : entries.length;
|
|
3591
3504
|
|
|
@@ -3597,15 +3510,11 @@ function ListCache$4(entries) {
|
|
|
3597
3510
|
}
|
|
3598
3511
|
|
|
3599
3512
|
// Add methods to `ListCache`.
|
|
3600
|
-
ListCache
|
|
3601
|
-
ListCache
|
|
3602
|
-
ListCache
|
|
3603
|
-
ListCache
|
|
3604
|
-
ListCache
|
|
3605
|
-
|
|
3606
|
-
var _ListCache = ListCache$4;
|
|
3607
|
-
|
|
3608
|
-
var ListCache$3 = _ListCache;
|
|
3513
|
+
ListCache.prototype.clear = listCacheClear;
|
|
3514
|
+
ListCache.prototype['delete'] = listCacheDelete;
|
|
3515
|
+
ListCache.prototype.get = listCacheGet;
|
|
3516
|
+
ListCache.prototype.has = listCacheHas;
|
|
3517
|
+
ListCache.prototype.set = listCacheSet;
|
|
3609
3518
|
|
|
3610
3519
|
/**
|
|
3611
3520
|
* Removes all key-value entries from the stack.
|
|
@@ -3614,13 +3523,11 @@ var ListCache$3 = _ListCache;
|
|
|
3614
3523
|
* @name clear
|
|
3615
3524
|
* @memberOf Stack
|
|
3616
3525
|
*/
|
|
3617
|
-
function stackClear
|
|
3618
|
-
this.__data__ = new ListCache
|
|
3526
|
+
function stackClear() {
|
|
3527
|
+
this.__data__ = new ListCache;
|
|
3619
3528
|
this.size = 0;
|
|
3620
3529
|
}
|
|
3621
3530
|
|
|
3622
|
-
var _stackClear = stackClear$1;
|
|
3623
|
-
|
|
3624
3531
|
/**
|
|
3625
3532
|
* Removes `key` and its value from the stack.
|
|
3626
3533
|
*
|
|
@@ -3630,8 +3537,7 @@ var _stackClear = stackClear$1;
|
|
|
3630
3537
|
* @param {string} key The key of the value to remove.
|
|
3631
3538
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
3632
3539
|
*/
|
|
3633
|
-
|
|
3634
|
-
function stackDelete$1(key) {
|
|
3540
|
+
function stackDelete(key) {
|
|
3635
3541
|
var data = this.__data__,
|
|
3636
3542
|
result = data['delete'](key);
|
|
3637
3543
|
|
|
@@ -3639,8 +3545,6 @@ function stackDelete$1(key) {
|
|
|
3639
3545
|
return result;
|
|
3640
3546
|
}
|
|
3641
3547
|
|
|
3642
|
-
var _stackDelete = stackDelete$1;
|
|
3643
|
-
|
|
3644
3548
|
/**
|
|
3645
3549
|
* Gets the stack value for `key`.
|
|
3646
3550
|
*
|
|
@@ -3650,13 +3554,10 @@ var _stackDelete = stackDelete$1;
|
|
|
3650
3554
|
* @param {string} key The key of the value to get.
|
|
3651
3555
|
* @returns {*} Returns the entry value.
|
|
3652
3556
|
*/
|
|
3653
|
-
|
|
3654
|
-
function stackGet$1(key) {
|
|
3557
|
+
function stackGet(key) {
|
|
3655
3558
|
return this.__data__.get(key);
|
|
3656
3559
|
}
|
|
3657
3560
|
|
|
3658
|
-
var _stackGet = stackGet$1;
|
|
3659
|
-
|
|
3660
3561
|
/**
|
|
3661
3562
|
* Checks if a stack value for `key` exists.
|
|
3662
3563
|
*
|
|
@@ -3666,16 +3567,10 @@ var _stackGet = stackGet$1;
|
|
|
3666
3567
|
* @param {string} key The key of the entry to check.
|
|
3667
3568
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
3668
3569
|
*/
|
|
3669
|
-
|
|
3670
|
-
function stackHas$1(key) {
|
|
3570
|
+
function stackHas(key) {
|
|
3671
3571
|
return this.__data__.has(key);
|
|
3672
3572
|
}
|
|
3673
3573
|
|
|
3674
|
-
var _stackHas = stackHas$1;
|
|
3675
|
-
|
|
3676
|
-
var baseGetTag$4 = _baseGetTag,
|
|
3677
|
-
isObject$4 = isObject_1;
|
|
3678
|
-
|
|
3679
3574
|
/** `Object#toString` result references. */
|
|
3680
3575
|
var asyncTag = '[object AsyncFunction]',
|
|
3681
3576
|
funcTag$1 = '[object Function]',
|
|
@@ -3699,30 +3594,24 @@ var asyncTag = '[object AsyncFunction]',
|
|
|
3699
3594
|
* _.isFunction(/abc/);
|
|
3700
3595
|
* // => false
|
|
3701
3596
|
*/
|
|
3702
|
-
function isFunction
|
|
3703
|
-
if (!isObject
|
|
3597
|
+
function isFunction(value) {
|
|
3598
|
+
if (!isObject(value)) {
|
|
3704
3599
|
return false;
|
|
3705
3600
|
}
|
|
3706
3601
|
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
3707
3602
|
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
3708
|
-
var tag = baseGetTag
|
|
3603
|
+
var tag = baseGetTag(value);
|
|
3709
3604
|
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
3710
3605
|
}
|
|
3711
3606
|
|
|
3712
|
-
var isFunction_1 = isFunction$2;
|
|
3713
|
-
|
|
3714
|
-
var root$6 = _root;
|
|
3715
|
-
|
|
3716
3607
|
/** Used to detect overreaching core-js shims. */
|
|
3717
|
-
var coreJsData
|
|
3608
|
+
var coreJsData = root$1['__core-js_shared__'];
|
|
3718
3609
|
|
|
3719
|
-
var
|
|
3720
|
-
|
|
3721
|
-
var coreJsData = _coreJsData;
|
|
3610
|
+
var coreJsData$1 = coreJsData;
|
|
3722
3611
|
|
|
3723
3612
|
/** Used to detect methods masquerading as native. */
|
|
3724
3613
|
var maskSrcKey = (function() {
|
|
3725
|
-
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
|
|
3614
|
+
var uid = /[^.]+$/.exec(coreJsData$1 && coreJsData$1.keys && coreJsData$1.keys.IE_PROTO || '');
|
|
3726
3615
|
return uid ? ('Symbol(src)_1.' + uid) : '';
|
|
3727
3616
|
}());
|
|
3728
3617
|
|
|
@@ -3733,14 +3622,11 @@ var maskSrcKey = (function() {
|
|
|
3733
3622
|
* @param {Function} func The function to check.
|
|
3734
3623
|
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
3735
3624
|
*/
|
|
3736
|
-
function isMasked
|
|
3625
|
+
function isMasked(func) {
|
|
3737
3626
|
return !!maskSrcKey && (maskSrcKey in func);
|
|
3738
3627
|
}
|
|
3739
3628
|
|
|
3740
|
-
var _isMasked = isMasked$1;
|
|
3741
|
-
|
|
3742
3629
|
/** Used for built-in method references. */
|
|
3743
|
-
|
|
3744
3630
|
var funcProto$1 = Function.prototype;
|
|
3745
3631
|
|
|
3746
3632
|
/** Used to resolve the decompiled source of functions. */
|
|
@@ -3753,7 +3639,7 @@ var funcToString$1 = funcProto$1.toString;
|
|
|
3753
3639
|
* @param {Function} func The function to convert.
|
|
3754
3640
|
* @returns {string} Returns the source code.
|
|
3755
3641
|
*/
|
|
3756
|
-
function toSource
|
|
3642
|
+
function toSource(func) {
|
|
3757
3643
|
if (func != null) {
|
|
3758
3644
|
try {
|
|
3759
3645
|
return funcToString$1.call(func);
|
|
@@ -3765,13 +3651,6 @@ function toSource$2(func) {
|
|
|
3765
3651
|
return '';
|
|
3766
3652
|
}
|
|
3767
3653
|
|
|
3768
|
-
var _toSource = toSource$2;
|
|
3769
|
-
|
|
3770
|
-
var isFunction$1 = isFunction_1,
|
|
3771
|
-
isMasked = _isMasked,
|
|
3772
|
-
isObject$3 = isObject_1,
|
|
3773
|
-
toSource$1 = _toSource;
|
|
3774
|
-
|
|
3775
3654
|
/**
|
|
3776
3655
|
* Used to match `RegExp`
|
|
3777
3656
|
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
@@ -3805,16 +3684,14 @@ var reIsNative = RegExp('^' +
|
|
|
3805
3684
|
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
3806
3685
|
* else `false`.
|
|
3807
3686
|
*/
|
|
3808
|
-
function baseIsNative
|
|
3809
|
-
if (!isObject
|
|
3687
|
+
function baseIsNative(value) {
|
|
3688
|
+
if (!isObject(value) || isMasked(value)) {
|
|
3810
3689
|
return false;
|
|
3811
3690
|
}
|
|
3812
|
-
var pattern = isFunction
|
|
3813
|
-
return pattern.test(toSource
|
|
3691
|
+
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
|
3692
|
+
return pattern.test(toSource(value));
|
|
3814
3693
|
}
|
|
3815
3694
|
|
|
3816
|
-
var _baseIsNative = baseIsNative$1;
|
|
3817
|
-
|
|
3818
3695
|
/**
|
|
3819
3696
|
* Gets the value at `key` of `object`.
|
|
3820
3697
|
*
|
|
@@ -3823,16 +3700,10 @@ var _baseIsNative = baseIsNative$1;
|
|
|
3823
3700
|
* @param {string} key The key of the property to get.
|
|
3824
3701
|
* @returns {*} Returns the property value.
|
|
3825
3702
|
*/
|
|
3826
|
-
|
|
3827
|
-
function getValue$1(object, key) {
|
|
3703
|
+
function getValue(object, key) {
|
|
3828
3704
|
return object == null ? undefined : object[key];
|
|
3829
3705
|
}
|
|
3830
3706
|
|
|
3831
|
-
var _getValue = getValue$1;
|
|
3832
|
-
|
|
3833
|
-
var baseIsNative = _baseIsNative,
|
|
3834
|
-
getValue = _getValue;
|
|
3835
|
-
|
|
3836
3707
|
/**
|
|
3837
3708
|
* Gets the native function at `key` of `object`.
|
|
3838
3709
|
*
|
|
@@ -3841,29 +3712,20 @@ var baseIsNative = _baseIsNative,
|
|
|
3841
3712
|
* @param {string} key The key of the method to get.
|
|
3842
3713
|
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
3843
3714
|
*/
|
|
3844
|
-
function getNative
|
|
3715
|
+
function getNative(object, key) {
|
|
3845
3716
|
var value = getValue(object, key);
|
|
3846
3717
|
return baseIsNative(value) ? value : undefined;
|
|
3847
3718
|
}
|
|
3848
3719
|
|
|
3849
|
-
var _getNative = getNative$7;
|
|
3850
|
-
|
|
3851
|
-
var getNative$6 = _getNative,
|
|
3852
|
-
root$5 = _root;
|
|
3853
|
-
|
|
3854
3720
|
/* Built-in method references that are verified to be native. */
|
|
3855
|
-
var Map$
|
|
3856
|
-
|
|
3857
|
-
var _Map = Map$4;
|
|
3721
|
+
var Map$1 = getNative(root$1, 'Map');
|
|
3858
3722
|
|
|
3859
|
-
var
|
|
3723
|
+
var Map$2 = Map$1;
|
|
3860
3724
|
|
|
3861
3725
|
/* Built-in method references that are verified to be native. */
|
|
3862
|
-
var nativeCreate
|
|
3863
|
-
|
|
3864
|
-
var _nativeCreate = nativeCreate$4;
|
|
3726
|
+
var nativeCreate = getNative(Object, 'create');
|
|
3865
3727
|
|
|
3866
|
-
var nativeCreate$
|
|
3728
|
+
var nativeCreate$1 = nativeCreate;
|
|
3867
3729
|
|
|
3868
3730
|
/**
|
|
3869
3731
|
* Removes all key-value entries from the hash.
|
|
@@ -3872,13 +3734,11 @@ var nativeCreate$3 = _nativeCreate;
|
|
|
3872
3734
|
* @name clear
|
|
3873
3735
|
* @memberOf Hash
|
|
3874
3736
|
*/
|
|
3875
|
-
function hashClear
|
|
3876
|
-
this.__data__ = nativeCreate$
|
|
3737
|
+
function hashClear() {
|
|
3738
|
+
this.__data__ = nativeCreate$1 ? nativeCreate$1(null) : {};
|
|
3877
3739
|
this.size = 0;
|
|
3878
3740
|
}
|
|
3879
3741
|
|
|
3880
|
-
var _hashClear = hashClear$1;
|
|
3881
|
-
|
|
3882
3742
|
/**
|
|
3883
3743
|
* Removes `key` and its value from the hash.
|
|
3884
3744
|
*
|
|
@@ -3889,17 +3749,12 @@ var _hashClear = hashClear$1;
|
|
|
3889
3749
|
* @param {string} key The key of the value to remove.
|
|
3890
3750
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
3891
3751
|
*/
|
|
3892
|
-
|
|
3893
|
-
function hashDelete$1(key) {
|
|
3752
|
+
function hashDelete(key) {
|
|
3894
3753
|
var result = this.has(key) && delete this.__data__[key];
|
|
3895
3754
|
this.size -= result ? 1 : 0;
|
|
3896
3755
|
return result;
|
|
3897
3756
|
}
|
|
3898
3757
|
|
|
3899
|
-
var _hashDelete = hashDelete$1;
|
|
3900
|
-
|
|
3901
|
-
var nativeCreate$2 = _nativeCreate;
|
|
3902
|
-
|
|
3903
3758
|
/** Used to stand-in for `undefined` hash values. */
|
|
3904
3759
|
var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
|
|
3905
3760
|
|
|
@@ -3918,19 +3773,15 @@ var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
|
|
|
3918
3773
|
* @param {string} key The key of the value to get.
|
|
3919
3774
|
* @returns {*} Returns the entry value.
|
|
3920
3775
|
*/
|
|
3921
|
-
function hashGet
|
|
3776
|
+
function hashGet(key) {
|
|
3922
3777
|
var data = this.__data__;
|
|
3923
|
-
if (nativeCreate$
|
|
3778
|
+
if (nativeCreate$1) {
|
|
3924
3779
|
var result = data[key];
|
|
3925
3780
|
return result === HASH_UNDEFINED$2 ? undefined : result;
|
|
3926
3781
|
}
|
|
3927
3782
|
return hasOwnProperty$6.call(data, key) ? data[key] : undefined;
|
|
3928
3783
|
}
|
|
3929
3784
|
|
|
3930
|
-
var _hashGet = hashGet$1;
|
|
3931
|
-
|
|
3932
|
-
var nativeCreate$1 = _nativeCreate;
|
|
3933
|
-
|
|
3934
3785
|
/** Used for built-in method references. */
|
|
3935
3786
|
var objectProto$7 = Object.prototype;
|
|
3936
3787
|
|
|
@@ -3946,15 +3797,11 @@ var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
|
|
|
3946
3797
|
* @param {string} key The key of the entry to check.
|
|
3947
3798
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
3948
3799
|
*/
|
|
3949
|
-
function hashHas
|
|
3800
|
+
function hashHas(key) {
|
|
3950
3801
|
var data = this.__data__;
|
|
3951
3802
|
return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$5.call(data, key);
|
|
3952
3803
|
}
|
|
3953
3804
|
|
|
3954
|
-
var _hashHas = hashHas$1;
|
|
3955
|
-
|
|
3956
|
-
var nativeCreate = _nativeCreate;
|
|
3957
|
-
|
|
3958
3805
|
/** Used to stand-in for `undefined` hash values. */
|
|
3959
3806
|
var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
3960
3807
|
|
|
@@ -3968,21 +3815,13 @@ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
|
3968
3815
|
* @param {*} value The value to set.
|
|
3969
3816
|
* @returns {Object} Returns the hash instance.
|
|
3970
3817
|
*/
|
|
3971
|
-
function hashSet
|
|
3818
|
+
function hashSet(key, value) {
|
|
3972
3819
|
var data = this.__data__;
|
|
3973
3820
|
this.size += this.has(key) ? 0 : 1;
|
|
3974
|
-
data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED$1 : value;
|
|
3821
|
+
data[key] = (nativeCreate$1 && value === undefined) ? HASH_UNDEFINED$1 : value;
|
|
3975
3822
|
return this;
|
|
3976
3823
|
}
|
|
3977
3824
|
|
|
3978
|
-
var _hashSet = hashSet$1;
|
|
3979
|
-
|
|
3980
|
-
var hashClear = _hashClear,
|
|
3981
|
-
hashDelete = _hashDelete,
|
|
3982
|
-
hashGet = _hashGet,
|
|
3983
|
-
hashHas = _hashHas,
|
|
3984
|
-
hashSet = _hashSet;
|
|
3985
|
-
|
|
3986
3825
|
/**
|
|
3987
3826
|
* Creates a hash object.
|
|
3988
3827
|
*
|
|
@@ -3990,7 +3829,7 @@ var hashClear = _hashClear,
|
|
|
3990
3829
|
* @constructor
|
|
3991
3830
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
3992
3831
|
*/
|
|
3993
|
-
function Hash
|
|
3832
|
+
function Hash(entries) {
|
|
3994
3833
|
var index = -1,
|
|
3995
3834
|
length = entries == null ? 0 : entries.length;
|
|
3996
3835
|
|
|
@@ -4002,17 +3841,11 @@ function Hash$1(entries) {
|
|
|
4002
3841
|
}
|
|
4003
3842
|
|
|
4004
3843
|
// Add methods to `Hash`.
|
|
4005
|
-
Hash
|
|
4006
|
-
Hash
|
|
4007
|
-
Hash
|
|
4008
|
-
Hash
|
|
4009
|
-
Hash
|
|
4010
|
-
|
|
4011
|
-
var _Hash = Hash$1;
|
|
4012
|
-
|
|
4013
|
-
var Hash = _Hash,
|
|
4014
|
-
ListCache$2 = _ListCache,
|
|
4015
|
-
Map$3 = _Map;
|
|
3844
|
+
Hash.prototype.clear = hashClear;
|
|
3845
|
+
Hash.prototype['delete'] = hashDelete;
|
|
3846
|
+
Hash.prototype.get = hashGet;
|
|
3847
|
+
Hash.prototype.has = hashHas;
|
|
3848
|
+
Hash.prototype.set = hashSet;
|
|
4016
3849
|
|
|
4017
3850
|
/**
|
|
4018
3851
|
* Removes all key-value entries from the map.
|
|
@@ -4021,17 +3854,15 @@ var Hash = _Hash,
|
|
|
4021
3854
|
* @name clear
|
|
4022
3855
|
* @memberOf MapCache
|
|
4023
3856
|
*/
|
|
4024
|
-
function mapCacheClear
|
|
3857
|
+
function mapCacheClear() {
|
|
4025
3858
|
this.size = 0;
|
|
4026
3859
|
this.__data__ = {
|
|
4027
3860
|
'hash': new Hash,
|
|
4028
|
-
'map': new (Map$
|
|
3861
|
+
'map': new (Map$2 || ListCache),
|
|
4029
3862
|
'string': new Hash
|
|
4030
3863
|
};
|
|
4031
3864
|
}
|
|
4032
3865
|
|
|
4033
|
-
var _mapCacheClear = mapCacheClear$1;
|
|
4034
|
-
|
|
4035
3866
|
/**
|
|
4036
3867
|
* Checks if `value` is suitable for use as unique object key.
|
|
4037
3868
|
*
|
|
@@ -4039,18 +3870,13 @@ var _mapCacheClear = mapCacheClear$1;
|
|
|
4039
3870
|
* @param {*} value The value to check.
|
|
4040
3871
|
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
4041
3872
|
*/
|
|
4042
|
-
|
|
4043
|
-
function isKeyable$1(value) {
|
|
3873
|
+
function isKeyable(value) {
|
|
4044
3874
|
var type = typeof value;
|
|
4045
3875
|
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
|
|
4046
3876
|
? (value !== '__proto__')
|
|
4047
3877
|
: (value === null);
|
|
4048
3878
|
}
|
|
4049
3879
|
|
|
4050
|
-
var _isKeyable = isKeyable$1;
|
|
4051
|
-
|
|
4052
|
-
var isKeyable = _isKeyable;
|
|
4053
|
-
|
|
4054
3880
|
/**
|
|
4055
3881
|
* Gets the data for `map`.
|
|
4056
3882
|
*
|
|
@@ -4059,17 +3885,13 @@ var isKeyable = _isKeyable;
|
|
|
4059
3885
|
* @param {string} key The reference key.
|
|
4060
3886
|
* @returns {*} Returns the map data.
|
|
4061
3887
|
*/
|
|
4062
|
-
function getMapData
|
|
3888
|
+
function getMapData(map, key) {
|
|
4063
3889
|
var data = map.__data__;
|
|
4064
3890
|
return isKeyable(key)
|
|
4065
3891
|
? data[typeof key == 'string' ? 'string' : 'hash']
|
|
4066
3892
|
: data.map;
|
|
4067
3893
|
}
|
|
4068
3894
|
|
|
4069
|
-
var _getMapData = getMapData$4;
|
|
4070
|
-
|
|
4071
|
-
var getMapData$3 = _getMapData;
|
|
4072
|
-
|
|
4073
3895
|
/**
|
|
4074
3896
|
* Removes `key` and its value from the map.
|
|
4075
3897
|
*
|
|
@@ -4079,16 +3901,12 @@ var getMapData$3 = _getMapData;
|
|
|
4079
3901
|
* @param {string} key The key of the value to remove.
|
|
4080
3902
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
4081
3903
|
*/
|
|
4082
|
-
function mapCacheDelete
|
|
4083
|
-
var result = getMapData
|
|
3904
|
+
function mapCacheDelete(key) {
|
|
3905
|
+
var result = getMapData(this, key)['delete'](key);
|
|
4084
3906
|
this.size -= result ? 1 : 0;
|
|
4085
3907
|
return result;
|
|
4086
3908
|
}
|
|
4087
3909
|
|
|
4088
|
-
var _mapCacheDelete = mapCacheDelete$1;
|
|
4089
|
-
|
|
4090
|
-
var getMapData$2 = _getMapData;
|
|
4091
|
-
|
|
4092
3910
|
/**
|
|
4093
3911
|
* Gets the map value for `key`.
|
|
4094
3912
|
*
|
|
@@ -4098,14 +3916,10 @@ var getMapData$2 = _getMapData;
|
|
|
4098
3916
|
* @param {string} key The key of the value to get.
|
|
4099
3917
|
* @returns {*} Returns the entry value.
|
|
4100
3918
|
*/
|
|
4101
|
-
function mapCacheGet
|
|
4102
|
-
return getMapData
|
|
3919
|
+
function mapCacheGet(key) {
|
|
3920
|
+
return getMapData(this, key).get(key);
|
|
4103
3921
|
}
|
|
4104
3922
|
|
|
4105
|
-
var _mapCacheGet = mapCacheGet$1;
|
|
4106
|
-
|
|
4107
|
-
var getMapData$1 = _getMapData;
|
|
4108
|
-
|
|
4109
3923
|
/**
|
|
4110
3924
|
* Checks if a map value for `key` exists.
|
|
4111
3925
|
*
|
|
@@ -4115,14 +3929,10 @@ var getMapData$1 = _getMapData;
|
|
|
4115
3929
|
* @param {string} key The key of the entry to check.
|
|
4116
3930
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
4117
3931
|
*/
|
|
4118
|
-
function mapCacheHas
|
|
4119
|
-
return getMapData
|
|
3932
|
+
function mapCacheHas(key) {
|
|
3933
|
+
return getMapData(this, key).has(key);
|
|
4120
3934
|
}
|
|
4121
3935
|
|
|
4122
|
-
var _mapCacheHas = mapCacheHas$1;
|
|
4123
|
-
|
|
4124
|
-
var getMapData = _getMapData;
|
|
4125
|
-
|
|
4126
3936
|
/**
|
|
4127
3937
|
* Sets the map `key` to `value`.
|
|
4128
3938
|
*
|
|
@@ -4133,7 +3943,7 @@ var getMapData = _getMapData;
|
|
|
4133
3943
|
* @param {*} value The value to set.
|
|
4134
3944
|
* @returns {Object} Returns the map cache instance.
|
|
4135
3945
|
*/
|
|
4136
|
-
function mapCacheSet
|
|
3946
|
+
function mapCacheSet(key, value) {
|
|
4137
3947
|
var data = getMapData(this, key),
|
|
4138
3948
|
size = data.size;
|
|
4139
3949
|
|
|
@@ -4142,14 +3952,6 @@ function mapCacheSet$1(key, value) {
|
|
|
4142
3952
|
return this;
|
|
4143
3953
|
}
|
|
4144
3954
|
|
|
4145
|
-
var _mapCacheSet = mapCacheSet$1;
|
|
4146
|
-
|
|
4147
|
-
var mapCacheClear = _mapCacheClear,
|
|
4148
|
-
mapCacheDelete = _mapCacheDelete,
|
|
4149
|
-
mapCacheGet = _mapCacheGet,
|
|
4150
|
-
mapCacheHas = _mapCacheHas,
|
|
4151
|
-
mapCacheSet = _mapCacheSet;
|
|
4152
|
-
|
|
4153
3955
|
/**
|
|
4154
3956
|
* Creates a map cache object to store key-value pairs.
|
|
4155
3957
|
*
|
|
@@ -4157,7 +3959,7 @@ var mapCacheClear = _mapCacheClear,
|
|
|
4157
3959
|
* @constructor
|
|
4158
3960
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
4159
3961
|
*/
|
|
4160
|
-
function MapCache
|
|
3962
|
+
function MapCache(entries) {
|
|
4161
3963
|
var index = -1,
|
|
4162
3964
|
length = entries == null ? 0 : entries.length;
|
|
4163
3965
|
|
|
@@ -4169,17 +3971,11 @@ function MapCache$3(entries) {
|
|
|
4169
3971
|
}
|
|
4170
3972
|
|
|
4171
3973
|
// Add methods to `MapCache`.
|
|
4172
|
-
MapCache
|
|
4173
|
-
MapCache
|
|
4174
|
-
MapCache
|
|
4175
|
-
MapCache
|
|
4176
|
-
MapCache
|
|
4177
|
-
|
|
4178
|
-
var _MapCache = MapCache$3;
|
|
4179
|
-
|
|
4180
|
-
var ListCache$1 = _ListCache,
|
|
4181
|
-
Map$2 = _Map,
|
|
4182
|
-
MapCache$2 = _MapCache;
|
|
3974
|
+
MapCache.prototype.clear = mapCacheClear;
|
|
3975
|
+
MapCache.prototype['delete'] = mapCacheDelete;
|
|
3976
|
+
MapCache.prototype.get = mapCacheGet;
|
|
3977
|
+
MapCache.prototype.has = mapCacheHas;
|
|
3978
|
+
MapCache.prototype.set = mapCacheSet;
|
|
4183
3979
|
|
|
4184
3980
|
/** Used as the size to enable large array optimizations. */
|
|
4185
3981
|
var LARGE_ARRAY_SIZE = 200;
|
|
@@ -4194,31 +3990,22 @@ var LARGE_ARRAY_SIZE = 200;
|
|
|
4194
3990
|
* @param {*} value The value to set.
|
|
4195
3991
|
* @returns {Object} Returns the stack cache instance.
|
|
4196
3992
|
*/
|
|
4197
|
-
function stackSet
|
|
3993
|
+
function stackSet(key, value) {
|
|
4198
3994
|
var data = this.__data__;
|
|
4199
|
-
if (data instanceof ListCache
|
|
3995
|
+
if (data instanceof ListCache) {
|
|
4200
3996
|
var pairs = data.__data__;
|
|
4201
3997
|
if (!Map$2 || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
|
|
4202
3998
|
pairs.push([key, value]);
|
|
4203
3999
|
this.size = ++data.size;
|
|
4204
4000
|
return this;
|
|
4205
4001
|
}
|
|
4206
|
-
data = this.__data__ = new MapCache
|
|
4002
|
+
data = this.__data__ = new MapCache(pairs);
|
|
4207
4003
|
}
|
|
4208
4004
|
data.set(key, value);
|
|
4209
4005
|
this.size = data.size;
|
|
4210
4006
|
return this;
|
|
4211
4007
|
}
|
|
4212
4008
|
|
|
4213
|
-
var _stackSet = stackSet$1;
|
|
4214
|
-
|
|
4215
|
-
var ListCache = _ListCache,
|
|
4216
|
-
stackClear = _stackClear,
|
|
4217
|
-
stackDelete = _stackDelete,
|
|
4218
|
-
stackGet = _stackGet,
|
|
4219
|
-
stackHas = _stackHas,
|
|
4220
|
-
stackSet = _stackSet;
|
|
4221
|
-
|
|
4222
4009
|
/**
|
|
4223
4010
|
* Creates a stack cache object to store key-value pairs.
|
|
4224
4011
|
*
|
|
@@ -4226,22 +4013,19 @@ var ListCache = _ListCache,
|
|
|
4226
4013
|
* @constructor
|
|
4227
4014
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
4228
4015
|
*/
|
|
4229
|
-
function Stack
|
|
4016
|
+
function Stack(entries) {
|
|
4230
4017
|
var data = this.__data__ = new ListCache(entries);
|
|
4231
4018
|
this.size = data.size;
|
|
4232
4019
|
}
|
|
4233
4020
|
|
|
4234
4021
|
// Add methods to `Stack`.
|
|
4235
|
-
Stack
|
|
4236
|
-
Stack
|
|
4237
|
-
Stack
|
|
4238
|
-
Stack
|
|
4239
|
-
Stack
|
|
4240
|
-
|
|
4241
|
-
var _Stack = Stack$2;
|
|
4022
|
+
Stack.prototype.clear = stackClear;
|
|
4023
|
+
Stack.prototype['delete'] = stackDelete;
|
|
4024
|
+
Stack.prototype.get = stackGet;
|
|
4025
|
+
Stack.prototype.has = stackHas;
|
|
4026
|
+
Stack.prototype.set = stackSet;
|
|
4242
4027
|
|
|
4243
4028
|
/** Used to stand-in for `undefined` hash values. */
|
|
4244
|
-
|
|
4245
4029
|
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
4246
4030
|
|
|
4247
4031
|
/**
|
|
@@ -4254,13 +4038,11 @@ var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
|
4254
4038
|
* @param {*} value The value to cache.
|
|
4255
4039
|
* @returns {Object} Returns the cache instance.
|
|
4256
4040
|
*/
|
|
4257
|
-
function setCacheAdd
|
|
4041
|
+
function setCacheAdd(value) {
|
|
4258
4042
|
this.__data__.set(value, HASH_UNDEFINED);
|
|
4259
4043
|
return this;
|
|
4260
4044
|
}
|
|
4261
4045
|
|
|
4262
|
-
var _setCacheAdd = setCacheAdd$1;
|
|
4263
|
-
|
|
4264
4046
|
/**
|
|
4265
4047
|
* Checks if `value` is in the array cache.
|
|
4266
4048
|
*
|
|
@@ -4270,17 +4052,10 @@ var _setCacheAdd = setCacheAdd$1;
|
|
|
4270
4052
|
* @param {*} value The value to search for.
|
|
4271
4053
|
* @returns {number} Returns `true` if `value` is found, else `false`.
|
|
4272
4054
|
*/
|
|
4273
|
-
|
|
4274
|
-
function setCacheHas$1(value) {
|
|
4055
|
+
function setCacheHas(value) {
|
|
4275
4056
|
return this.__data__.has(value);
|
|
4276
4057
|
}
|
|
4277
4058
|
|
|
4278
|
-
var _setCacheHas = setCacheHas$1;
|
|
4279
|
-
|
|
4280
|
-
var MapCache$1 = _MapCache,
|
|
4281
|
-
setCacheAdd = _setCacheAdd,
|
|
4282
|
-
setCacheHas = _setCacheHas;
|
|
4283
|
-
|
|
4284
4059
|
/**
|
|
4285
4060
|
*
|
|
4286
4061
|
* Creates an array cache object to store unique values.
|
|
@@ -4289,21 +4064,19 @@ var MapCache$1 = _MapCache,
|
|
|
4289
4064
|
* @constructor
|
|
4290
4065
|
* @param {Array} [values] The values to cache.
|
|
4291
4066
|
*/
|
|
4292
|
-
function SetCache
|
|
4067
|
+
function SetCache(values) {
|
|
4293
4068
|
var index = -1,
|
|
4294
4069
|
length = values == null ? 0 : values.length;
|
|
4295
4070
|
|
|
4296
|
-
this.__data__ = new MapCache
|
|
4071
|
+
this.__data__ = new MapCache;
|
|
4297
4072
|
while (++index < length) {
|
|
4298
4073
|
this.add(values[index]);
|
|
4299
4074
|
}
|
|
4300
4075
|
}
|
|
4301
4076
|
|
|
4302
4077
|
// Add methods to `SetCache`.
|
|
4303
|
-
SetCache
|
|
4304
|
-
SetCache
|
|
4305
|
-
|
|
4306
|
-
var _SetCache = SetCache$1;
|
|
4078
|
+
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
4079
|
+
SetCache.prototype.has = setCacheHas;
|
|
4307
4080
|
|
|
4308
4081
|
/**
|
|
4309
4082
|
* A specialized version of `_.some` for arrays without support for iteratee
|
|
@@ -4315,8 +4088,7 @@ var _SetCache = SetCache$1;
|
|
|
4315
4088
|
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
|
4316
4089
|
* else `false`.
|
|
4317
4090
|
*/
|
|
4318
|
-
|
|
4319
|
-
function arraySome$1(array, predicate) {
|
|
4091
|
+
function arraySome(array, predicate) {
|
|
4320
4092
|
var index = -1,
|
|
4321
4093
|
length = array == null ? 0 : array.length;
|
|
4322
4094
|
|
|
@@ -4328,8 +4100,6 @@ function arraySome$1(array, predicate) {
|
|
|
4328
4100
|
return false;
|
|
4329
4101
|
}
|
|
4330
4102
|
|
|
4331
|
-
var _arraySome = arraySome$1;
|
|
4332
|
-
|
|
4333
4103
|
/**
|
|
4334
4104
|
* Checks if a `cache` value for `key` exists.
|
|
4335
4105
|
*
|
|
@@ -4338,17 +4108,10 @@ var _arraySome = arraySome$1;
|
|
|
4338
4108
|
* @param {string} key The key of the entry to check.
|
|
4339
4109
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
4340
4110
|
*/
|
|
4341
|
-
|
|
4342
|
-
function cacheHas$1(cache, key) {
|
|
4111
|
+
function cacheHas(cache, key) {
|
|
4343
4112
|
return cache.has(key);
|
|
4344
4113
|
}
|
|
4345
4114
|
|
|
4346
|
-
var _cacheHas = cacheHas$1;
|
|
4347
|
-
|
|
4348
|
-
var SetCache = _SetCache,
|
|
4349
|
-
arraySome = _arraySome,
|
|
4350
|
-
cacheHas = _cacheHas;
|
|
4351
|
-
|
|
4352
4115
|
/** Used to compose bitmasks for value comparisons. */
|
|
4353
4116
|
var COMPARE_PARTIAL_FLAG$5 = 1,
|
|
4354
4117
|
COMPARE_UNORDERED_FLAG$3 = 2;
|
|
@@ -4366,7 +4129,7 @@ var COMPARE_PARTIAL_FLAG$5 = 1,
|
|
|
4366
4129
|
* @param {Object} stack Tracks traversed `array` and `other` objects.
|
|
4367
4130
|
* @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
|
|
4368
4131
|
*/
|
|
4369
|
-
function equalArrays
|
|
4132
|
+
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
4370
4133
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5,
|
|
4371
4134
|
arrLength = array.length,
|
|
4372
4135
|
othLength = other.length;
|
|
@@ -4428,14 +4191,10 @@ function equalArrays$2(array, other, bitmask, customizer, equalFunc, stack) {
|
|
|
4428
4191
|
return result;
|
|
4429
4192
|
}
|
|
4430
4193
|
|
|
4431
|
-
var _equalArrays = equalArrays$2;
|
|
4432
|
-
|
|
4433
|
-
var root$4 = _root;
|
|
4434
|
-
|
|
4435
4194
|
/** Built-in value references. */
|
|
4436
|
-
var Uint8Array
|
|
4195
|
+
var Uint8Array = root$1.Uint8Array;
|
|
4437
4196
|
|
|
4438
|
-
var
|
|
4197
|
+
var Uint8Array$1 = Uint8Array;
|
|
4439
4198
|
|
|
4440
4199
|
/**
|
|
4441
4200
|
* Converts `map` to its key-value pairs.
|
|
@@ -4444,8 +4203,7 @@ var _Uint8Array = Uint8Array$1;
|
|
|
4444
4203
|
* @param {Object} map The map to convert.
|
|
4445
4204
|
* @returns {Array} Returns the key-value pairs.
|
|
4446
4205
|
*/
|
|
4447
|
-
|
|
4448
|
-
function mapToArray$1(map) {
|
|
4206
|
+
function mapToArray(map) {
|
|
4449
4207
|
var index = -1,
|
|
4450
4208
|
result = Array(map.size);
|
|
4451
4209
|
|
|
@@ -4455,8 +4213,6 @@ function mapToArray$1(map) {
|
|
|
4455
4213
|
return result;
|
|
4456
4214
|
}
|
|
4457
4215
|
|
|
4458
|
-
var _mapToArray = mapToArray$1;
|
|
4459
|
-
|
|
4460
4216
|
/**
|
|
4461
4217
|
* Converts `set` to an array of its values.
|
|
4462
4218
|
*
|
|
@@ -4464,8 +4220,7 @@ var _mapToArray = mapToArray$1;
|
|
|
4464
4220
|
* @param {Object} set The set to convert.
|
|
4465
4221
|
* @returns {Array} Returns the values.
|
|
4466
4222
|
*/
|
|
4467
|
-
|
|
4468
|
-
function setToArray$1(set) {
|
|
4223
|
+
function setToArray(set) {
|
|
4469
4224
|
var index = -1,
|
|
4470
4225
|
result = Array(set.size);
|
|
4471
4226
|
|
|
@@ -4475,15 +4230,6 @@ function setToArray$1(set) {
|
|
|
4475
4230
|
return result;
|
|
4476
4231
|
}
|
|
4477
4232
|
|
|
4478
|
-
var _setToArray = setToArray$1;
|
|
4479
|
-
|
|
4480
|
-
var Symbol$1 = _Symbol,
|
|
4481
|
-
Uint8Array = _Uint8Array,
|
|
4482
|
-
eq$2 = eq_1,
|
|
4483
|
-
equalArrays$1 = _equalArrays,
|
|
4484
|
-
mapToArray = _mapToArray,
|
|
4485
|
-
setToArray = _setToArray;
|
|
4486
|
-
|
|
4487
4233
|
/** Used to compose bitmasks for value comparisons. */
|
|
4488
4234
|
var COMPARE_PARTIAL_FLAG$4 = 1,
|
|
4489
4235
|
COMPARE_UNORDERED_FLAG$2 = 2;
|
|
@@ -4523,7 +4269,7 @@ var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : undefined,
|
|
|
4523
4269
|
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
4524
4270
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
4525
4271
|
*/
|
|
4526
|
-
function equalByTag
|
|
4272
|
+
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
4527
4273
|
switch (tag) {
|
|
4528
4274
|
case dataViewTag$2:
|
|
4529
4275
|
if ((object.byteLength != other.byteLength) ||
|
|
@@ -4535,7 +4281,7 @@ function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack)
|
|
|
4535
4281
|
|
|
4536
4282
|
case arrayBufferTag$1:
|
|
4537
4283
|
if ((object.byteLength != other.byteLength) ||
|
|
4538
|
-
!equalFunc(new Uint8Array(object), new Uint8Array(other))) {
|
|
4284
|
+
!equalFunc(new Uint8Array$1(object), new Uint8Array$1(other))) {
|
|
4539
4285
|
return false;
|
|
4540
4286
|
}
|
|
4541
4287
|
return true;
|
|
@@ -4545,7 +4291,7 @@ function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack)
|
|
|
4545
4291
|
case numberTag$1:
|
|
4546
4292
|
// Coerce booleans to `1` or `0` and dates to milliseconds.
|
|
4547
4293
|
// Invalid dates are coerced to `NaN`.
|
|
4548
|
-
return eq$
|
|
4294
|
+
return eq$1(+object, +other);
|
|
4549
4295
|
|
|
4550
4296
|
case errorTag$1:
|
|
4551
4297
|
return object.name == other.name && object.message == other.message;
|
|
@@ -4576,7 +4322,7 @@ function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack)
|
|
|
4576
4322
|
|
|
4577
4323
|
// Recursively compare objects (susceptible to call stack limits).
|
|
4578
4324
|
stack.set(object, other);
|
|
4579
|
-
var result = equalArrays
|
|
4325
|
+
var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
4580
4326
|
stack['delete'](object);
|
|
4581
4327
|
return result;
|
|
4582
4328
|
|
|
@@ -4588,8 +4334,6 @@ function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack)
|
|
|
4588
4334
|
return false;
|
|
4589
4335
|
}
|
|
4590
4336
|
|
|
4591
|
-
var _equalByTag = equalByTag$1;
|
|
4592
|
-
|
|
4593
4337
|
/**
|
|
4594
4338
|
* Appends the elements of `values` to `array`.
|
|
4595
4339
|
*
|
|
@@ -4598,8 +4342,7 @@ var _equalByTag = equalByTag$1;
|
|
|
4598
4342
|
* @param {Array} values The values to append.
|
|
4599
4343
|
* @returns {Array} Returns `array`.
|
|
4600
4344
|
*/
|
|
4601
|
-
|
|
4602
|
-
function arrayPush$1(array, values) {
|
|
4345
|
+
function arrayPush(array, values) {
|
|
4603
4346
|
var index = -1,
|
|
4604
4347
|
length = values.length,
|
|
4605
4348
|
offset = array.length;
|
|
@@ -4610,8 +4353,6 @@ function arrayPush$1(array, values) {
|
|
|
4610
4353
|
return array;
|
|
4611
4354
|
}
|
|
4612
4355
|
|
|
4613
|
-
var _arrayPush = arrayPush$1;
|
|
4614
|
-
|
|
4615
4356
|
/**
|
|
4616
4357
|
* Checks if `value` is classified as an `Array` object.
|
|
4617
4358
|
*
|
|
@@ -4635,13 +4376,9 @@ var _arrayPush = arrayPush$1;
|
|
|
4635
4376
|
* _.isArray(_.noop);
|
|
4636
4377
|
* // => false
|
|
4637
4378
|
*/
|
|
4379
|
+
var isArray = Array.isArray;
|
|
4638
4380
|
|
|
4639
|
-
var isArray$
|
|
4640
|
-
|
|
4641
|
-
var isArray_1 = isArray$c;
|
|
4642
|
-
|
|
4643
|
-
var arrayPush = _arrayPush,
|
|
4644
|
-
isArray$b = isArray_1;
|
|
4381
|
+
var isArray$1 = isArray;
|
|
4645
4382
|
|
|
4646
4383
|
/**
|
|
4647
4384
|
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
@@ -4654,13 +4391,11 @@ var arrayPush = _arrayPush,
|
|
|
4654
4391
|
* @param {Function} symbolsFunc The function to get the symbols of `object`.
|
|
4655
4392
|
* @returns {Array} Returns the array of property names and symbols.
|
|
4656
4393
|
*/
|
|
4657
|
-
function baseGetAllKeys
|
|
4394
|
+
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
4658
4395
|
var result = keysFunc(object);
|
|
4659
|
-
return isArray$
|
|
4396
|
+
return isArray$1(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
4660
4397
|
}
|
|
4661
4398
|
|
|
4662
|
-
var _baseGetAllKeys = baseGetAllKeys$1;
|
|
4663
|
-
|
|
4664
4399
|
/**
|
|
4665
4400
|
* A specialized version of `_.filter` for arrays without support for
|
|
4666
4401
|
* iteratee shorthands.
|
|
@@ -4670,8 +4405,7 @@ var _baseGetAllKeys = baseGetAllKeys$1;
|
|
|
4670
4405
|
* @param {Function} predicate The function invoked per iteration.
|
|
4671
4406
|
* @returns {Array} Returns the new filtered array.
|
|
4672
4407
|
*/
|
|
4673
|
-
|
|
4674
|
-
function arrayFilter$1(array, predicate) {
|
|
4408
|
+
function arrayFilter(array, predicate) {
|
|
4675
4409
|
var index = -1,
|
|
4676
4410
|
length = array == null ? 0 : array.length,
|
|
4677
4411
|
resIndex = 0,
|
|
@@ -4686,8 +4420,6 @@ function arrayFilter$1(array, predicate) {
|
|
|
4686
4420
|
return result;
|
|
4687
4421
|
}
|
|
4688
4422
|
|
|
4689
|
-
var _arrayFilter = arrayFilter$1;
|
|
4690
|
-
|
|
4691
4423
|
/**
|
|
4692
4424
|
* This method returns a new empty array.
|
|
4693
4425
|
*
|
|
@@ -4706,16 +4438,10 @@ var _arrayFilter = arrayFilter$1;
|
|
|
4706
4438
|
* console.log(arrays[0] === arrays[1]);
|
|
4707
4439
|
* // => false
|
|
4708
4440
|
*/
|
|
4709
|
-
|
|
4710
|
-
function stubArray$1() {
|
|
4441
|
+
function stubArray() {
|
|
4711
4442
|
return [];
|
|
4712
4443
|
}
|
|
4713
4444
|
|
|
4714
|
-
var stubArray_1 = stubArray$1;
|
|
4715
|
-
|
|
4716
|
-
var arrayFilter = _arrayFilter,
|
|
4717
|
-
stubArray = stubArray_1;
|
|
4718
|
-
|
|
4719
4445
|
/** Used for built-in method references. */
|
|
4720
4446
|
var objectProto$6 = Object.prototype;
|
|
4721
4447
|
|
|
@@ -4732,7 +4458,7 @@ var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
|
4732
4458
|
* @param {Object} object The object to query.
|
|
4733
4459
|
* @returns {Array} Returns the array of symbols.
|
|
4734
4460
|
*/
|
|
4735
|
-
var getSymbols
|
|
4461
|
+
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
4736
4462
|
if (object == null) {
|
|
4737
4463
|
return [];
|
|
4738
4464
|
}
|
|
@@ -4742,7 +4468,7 @@ var getSymbols$1 = !nativeGetSymbols ? stubArray : function(object) {
|
|
|
4742
4468
|
});
|
|
4743
4469
|
};
|
|
4744
4470
|
|
|
4745
|
-
var
|
|
4471
|
+
var getSymbols$1 = getSymbols;
|
|
4746
4472
|
|
|
4747
4473
|
/**
|
|
4748
4474
|
* The base implementation of `_.times` without support for iteratee shorthands
|
|
@@ -4753,8 +4479,7 @@ var _getSymbols = getSymbols$1;
|
|
|
4753
4479
|
* @param {Function} iteratee The function invoked per iteration.
|
|
4754
4480
|
* @returns {Array} Returns the array of results.
|
|
4755
4481
|
*/
|
|
4756
|
-
|
|
4757
|
-
function baseTimes$1(n, iteratee) {
|
|
4482
|
+
function baseTimes(n, iteratee) {
|
|
4758
4483
|
var index = -1,
|
|
4759
4484
|
result = Array(n);
|
|
4760
4485
|
|
|
@@ -4764,11 +4489,6 @@ function baseTimes$1(n, iteratee) {
|
|
|
4764
4489
|
return result;
|
|
4765
4490
|
}
|
|
4766
4491
|
|
|
4767
|
-
var _baseTimes = baseTimes$1;
|
|
4768
|
-
|
|
4769
|
-
var baseGetTag$3 = _baseGetTag,
|
|
4770
|
-
isObjectLike$4 = isObjectLike_1;
|
|
4771
|
-
|
|
4772
4492
|
/** `Object#toString` result references. */
|
|
4773
4493
|
var argsTag$2 = '[object Arguments]';
|
|
4774
4494
|
|
|
@@ -4779,15 +4499,10 @@ var argsTag$2 = '[object Arguments]';
|
|
|
4779
4499
|
* @param {*} value The value to check.
|
|
4780
4500
|
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
4781
4501
|
*/
|
|
4782
|
-
function baseIsArguments
|
|
4783
|
-
return isObjectLike
|
|
4502
|
+
function baseIsArguments(value) {
|
|
4503
|
+
return isObjectLike(value) && baseGetTag(value) == argsTag$2;
|
|
4784
4504
|
}
|
|
4785
4505
|
|
|
4786
|
-
var _baseIsArguments = baseIsArguments$1;
|
|
4787
|
-
|
|
4788
|
-
var baseIsArguments = _baseIsArguments,
|
|
4789
|
-
isObjectLike$3 = isObjectLike_1;
|
|
4790
|
-
|
|
4791
4506
|
/** Used for built-in method references. */
|
|
4792
4507
|
var objectProto$5 = Object.prototype;
|
|
4793
4508
|
|
|
@@ -4815,14 +4530,12 @@ var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
|
|
|
4815
4530
|
* _.isArguments([1, 2, 3]);
|
|
4816
4531
|
* // => false
|
|
4817
4532
|
*/
|
|
4818
|
-
var isArguments
|
|
4819
|
-
return isObjectLike
|
|
4533
|
+
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
|
4534
|
+
return isObjectLike(value) && hasOwnProperty$4.call(value, 'callee') &&
|
|
4820
4535
|
!propertyIsEnumerable.call(value, 'callee');
|
|
4821
4536
|
};
|
|
4822
4537
|
|
|
4823
|
-
var
|
|
4824
|
-
|
|
4825
|
-
var isBuffer$2 = {exports: {}};
|
|
4538
|
+
var isArguments$1 = isArguments;
|
|
4826
4539
|
|
|
4827
4540
|
/**
|
|
4828
4541
|
* This method returns `false`.
|
|
@@ -4837,28 +4550,21 @@ var isBuffer$2 = {exports: {}};
|
|
|
4837
4550
|
* _.times(2, _.stubFalse);
|
|
4838
4551
|
* // => [false, false]
|
|
4839
4552
|
*/
|
|
4840
|
-
|
|
4841
4553
|
function stubFalse() {
|
|
4842
4554
|
return false;
|
|
4843
4555
|
}
|
|
4844
4556
|
|
|
4845
|
-
var stubFalse_1 = stubFalse;
|
|
4846
|
-
|
|
4847
|
-
(function (module, exports) {
|
|
4848
|
-
var root = _root,
|
|
4849
|
-
stubFalse = stubFalse_1;
|
|
4850
|
-
|
|
4851
4557
|
/** Detect free variable `exports`. */
|
|
4852
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
4558
|
+
var freeExports$1 = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
|
4853
4559
|
|
|
4854
4560
|
/** Detect free variable `module`. */
|
|
4855
|
-
var freeModule = freeExports &&
|
|
4561
|
+
var freeModule$1 = freeExports$1 && typeof module == 'object' && module && !module.nodeType && module;
|
|
4856
4562
|
|
|
4857
4563
|
/** Detect the popular CommonJS extension `module.exports`. */
|
|
4858
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
4564
|
+
var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
|
|
4859
4565
|
|
|
4860
4566
|
/** Built-in value references. */
|
|
4861
|
-
var Buffer = moduleExports ? root.Buffer : undefined;
|
|
4567
|
+
var Buffer = moduleExports$1 ? root$1.Buffer : undefined;
|
|
4862
4568
|
|
|
4863
4569
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4864
4570
|
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
@@ -4882,11 +4588,9 @@ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
|
4882
4588
|
*/
|
|
4883
4589
|
var isBuffer = nativeIsBuffer || stubFalse;
|
|
4884
4590
|
|
|
4885
|
-
|
|
4886
|
-
}(isBuffer$2, isBuffer$2.exports));
|
|
4591
|
+
var isBuffer$1 = isBuffer;
|
|
4887
4592
|
|
|
4888
4593
|
/** Used as references for various `Number` constants. */
|
|
4889
|
-
|
|
4890
4594
|
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
4891
4595
|
|
|
4892
4596
|
/** Used to detect unsigned integer values. */
|
|
@@ -4900,7 +4604,7 @@ var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
|
4900
4604
|
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
4901
4605
|
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
4902
4606
|
*/
|
|
4903
|
-
function isIndex
|
|
4607
|
+
function isIndex(value, length) {
|
|
4904
4608
|
var type = typeof value;
|
|
4905
4609
|
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
4906
4610
|
|
|
@@ -4910,10 +4614,7 @@ function isIndex$3(value, length) {
|
|
|
4910
4614
|
(value > -1 && value % 1 == 0 && value < length);
|
|
4911
4615
|
}
|
|
4912
4616
|
|
|
4913
|
-
var _isIndex = isIndex$3;
|
|
4914
|
-
|
|
4915
4617
|
/** Used as references for various `Number` constants. */
|
|
4916
|
-
|
|
4917
4618
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
4918
4619
|
|
|
4919
4620
|
/**
|
|
@@ -4942,17 +4643,11 @@ var MAX_SAFE_INTEGER = 9007199254740991;
|
|
|
4942
4643
|
* _.isLength('3');
|
|
4943
4644
|
* // => false
|
|
4944
4645
|
*/
|
|
4945
|
-
function isLength
|
|
4646
|
+
function isLength(value) {
|
|
4946
4647
|
return typeof value == 'number' &&
|
|
4947
4648
|
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
4948
4649
|
}
|
|
4949
4650
|
|
|
4950
|
-
var isLength_1 = isLength$3;
|
|
4951
|
-
|
|
4952
|
-
var baseGetTag$2 = _baseGetTag,
|
|
4953
|
-
isLength$2 = isLength_1,
|
|
4954
|
-
isObjectLike$2 = isObjectLike_1;
|
|
4955
|
-
|
|
4956
4651
|
/** `Object#toString` result references. */
|
|
4957
4652
|
var argsTag$1 = '[object Arguments]',
|
|
4958
4653
|
arrayTag$1 = '[object Array]',
|
|
@@ -5003,13 +4698,11 @@ typedArrayTags[weakMapTag$1] = false;
|
|
|
5003
4698
|
* @param {*} value The value to check.
|
|
5004
4699
|
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
5005
4700
|
*/
|
|
5006
|
-
function baseIsTypedArray
|
|
5007
|
-
return isObjectLike
|
|
5008
|
-
isLength
|
|
4701
|
+
function baseIsTypedArray(value) {
|
|
4702
|
+
return isObjectLike(value) &&
|
|
4703
|
+
isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
5009
4704
|
}
|
|
5010
4705
|
|
|
5011
|
-
var _baseIsTypedArray = baseIsTypedArray$1;
|
|
5012
|
-
|
|
5013
4706
|
/**
|
|
5014
4707
|
* The base implementation of `_.unary` without support for storing metadata.
|
|
5015
4708
|
*
|
|
@@ -5017,31 +4710,23 @@ var _baseIsTypedArray = baseIsTypedArray$1;
|
|
|
5017
4710
|
* @param {Function} func The function to cap arguments for.
|
|
5018
4711
|
* @returns {Function} Returns the new capped function.
|
|
5019
4712
|
*/
|
|
5020
|
-
|
|
5021
|
-
function baseUnary$1(func) {
|
|
4713
|
+
function baseUnary(func) {
|
|
5022
4714
|
return function(value) {
|
|
5023
4715
|
return func(value);
|
|
5024
4716
|
};
|
|
5025
4717
|
}
|
|
5026
4718
|
|
|
5027
|
-
var _baseUnary = baseUnary$1;
|
|
5028
|
-
|
|
5029
|
-
var _nodeUtil = {exports: {}};
|
|
5030
|
-
|
|
5031
|
-
(function (module, exports) {
|
|
5032
|
-
var freeGlobal = _freeGlobal;
|
|
5033
|
-
|
|
5034
4719
|
/** Detect free variable `exports`. */
|
|
5035
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
4720
|
+
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
|
5036
4721
|
|
|
5037
4722
|
/** Detect free variable `module`. */
|
|
5038
|
-
var freeModule = freeExports &&
|
|
4723
|
+
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
|
|
5039
4724
|
|
|
5040
4725
|
/** Detect the popular CommonJS extension `module.exports`. */
|
|
5041
4726
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
5042
4727
|
|
|
5043
4728
|
/** Detect free variable `process` from Node.js. */
|
|
5044
|
-
var freeProcess = moduleExports && freeGlobal.process;
|
|
4729
|
+
var freeProcess = moduleExports && freeGlobal$1.process;
|
|
5045
4730
|
|
|
5046
4731
|
/** Used to access faster Node.js helpers. */
|
|
5047
4732
|
var nodeUtil = (function() {
|
|
@@ -5058,15 +4743,10 @@ var nodeUtil = (function() {
|
|
|
5058
4743
|
} catch (e) {}
|
|
5059
4744
|
}());
|
|
5060
4745
|
|
|
5061
|
-
|
|
5062
|
-
}(_nodeUtil, _nodeUtil.exports));
|
|
5063
|
-
|
|
5064
|
-
var baseIsTypedArray = _baseIsTypedArray,
|
|
5065
|
-
baseUnary = _baseUnary,
|
|
5066
|
-
nodeUtil = _nodeUtil.exports;
|
|
4746
|
+
var nodeUtil$1 = nodeUtil;
|
|
5067
4747
|
|
|
5068
4748
|
/* Node.js helper references. */
|
|
5069
|
-
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
4749
|
+
var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray;
|
|
5070
4750
|
|
|
5071
4751
|
/**
|
|
5072
4752
|
* Checks if `value` is classified as a typed array.
|
|
@@ -5085,16 +4765,9 @@ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
|
5085
4765
|
* _.isTypedArray([]);
|
|
5086
4766
|
* // => false
|
|
5087
4767
|
*/
|
|
5088
|
-
var isTypedArray
|
|
4768
|
+
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
5089
4769
|
|
|
5090
|
-
var
|
|
5091
|
-
|
|
5092
|
-
var baseTimes = _baseTimes,
|
|
5093
|
-
isArguments$1 = isArguments_1,
|
|
5094
|
-
isArray$a = isArray_1,
|
|
5095
|
-
isBuffer$1 = isBuffer$2.exports,
|
|
5096
|
-
isIndex$2 = _isIndex,
|
|
5097
|
-
isTypedArray$1 = isTypedArray_1;
|
|
4770
|
+
var isTypedArray$1 = isTypedArray;
|
|
5098
4771
|
|
|
5099
4772
|
/** Used for built-in method references. */
|
|
5100
4773
|
var objectProto$4 = Object.prototype;
|
|
@@ -5110,8 +4783,8 @@ var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
|
|
|
5110
4783
|
* @param {boolean} inherited Specify returning inherited property names.
|
|
5111
4784
|
* @returns {Array} Returns the array of property names.
|
|
5112
4785
|
*/
|
|
5113
|
-
function arrayLikeKeys
|
|
5114
|
-
var isArr = isArray$
|
|
4786
|
+
function arrayLikeKeys(value, inherited) {
|
|
4787
|
+
var isArr = isArray$1(value),
|
|
5115
4788
|
isArg = !isArr && isArguments$1(value),
|
|
5116
4789
|
isBuff = !isArr && !isArg && isBuffer$1(value),
|
|
5117
4790
|
isType = !isArr && !isArg && !isBuff && isTypedArray$1(value),
|
|
@@ -5129,7 +4802,7 @@ function arrayLikeKeys$1(value, inherited) {
|
|
|
5129
4802
|
// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
5130
4803
|
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
|
|
5131
4804
|
// Skip index properties.
|
|
5132
|
-
isIndex
|
|
4805
|
+
isIndex(key, length)
|
|
5133
4806
|
))) {
|
|
5134
4807
|
result.push(key);
|
|
5135
4808
|
}
|
|
@@ -5137,10 +4810,7 @@ function arrayLikeKeys$1(value, inherited) {
|
|
|
5137
4810
|
return result;
|
|
5138
4811
|
}
|
|
5139
4812
|
|
|
5140
|
-
var _arrayLikeKeys = arrayLikeKeys$1;
|
|
5141
|
-
|
|
5142
4813
|
/** Used for built-in method references. */
|
|
5143
|
-
|
|
5144
4814
|
var objectProto$3 = Object.prototype;
|
|
5145
4815
|
|
|
5146
4816
|
/**
|
|
@@ -5150,15 +4820,13 @@ var objectProto$3 = Object.prototype;
|
|
|
5150
4820
|
* @param {*} value The value to check.
|
|
5151
4821
|
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
5152
4822
|
*/
|
|
5153
|
-
function isPrototype
|
|
4823
|
+
function isPrototype(value) {
|
|
5154
4824
|
var Ctor = value && value.constructor,
|
|
5155
4825
|
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$3;
|
|
5156
4826
|
|
|
5157
4827
|
return value === proto;
|
|
5158
4828
|
}
|
|
5159
4829
|
|
|
5160
|
-
var _isPrototype = isPrototype$1;
|
|
5161
|
-
|
|
5162
4830
|
/**
|
|
5163
4831
|
* Creates a unary function that invokes `func` with its argument transformed.
|
|
5164
4832
|
*
|
|
@@ -5167,24 +4835,16 @@ var _isPrototype = isPrototype$1;
|
|
|
5167
4835
|
* @param {Function} transform The argument transform.
|
|
5168
4836
|
* @returns {Function} Returns the new function.
|
|
5169
4837
|
*/
|
|
5170
|
-
|
|
5171
|
-
function overArg$1(func, transform) {
|
|
4838
|
+
function overArg(func, transform) {
|
|
5172
4839
|
return function(arg) {
|
|
5173
4840
|
return func(transform(arg));
|
|
5174
4841
|
};
|
|
5175
4842
|
}
|
|
5176
4843
|
|
|
5177
|
-
var _overArg = overArg$1;
|
|
5178
|
-
|
|
5179
|
-
var overArg = _overArg;
|
|
5180
|
-
|
|
5181
4844
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
5182
|
-
var nativeKeys
|
|
4845
|
+
var nativeKeys = overArg(Object.keys, Object);
|
|
5183
4846
|
|
|
5184
|
-
var
|
|
5185
|
-
|
|
5186
|
-
var isPrototype = _isPrototype,
|
|
5187
|
-
nativeKeys = _nativeKeys;
|
|
4847
|
+
var nativeKeys$1 = nativeKeys;
|
|
5188
4848
|
|
|
5189
4849
|
/** Used for built-in method references. */
|
|
5190
4850
|
var objectProto$2 = Object.prototype;
|
|
@@ -5199,9 +4859,9 @@ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
|
5199
4859
|
* @param {Object} object The object to query.
|
|
5200
4860
|
* @returns {Array} Returns the array of property names.
|
|
5201
4861
|
*/
|
|
5202
|
-
function baseKeys
|
|
4862
|
+
function baseKeys(object) {
|
|
5203
4863
|
if (!isPrototype(object)) {
|
|
5204
|
-
return nativeKeys(object);
|
|
4864
|
+
return nativeKeys$1(object);
|
|
5205
4865
|
}
|
|
5206
4866
|
var result = [];
|
|
5207
4867
|
for (var key in Object(object)) {
|
|
@@ -5212,11 +4872,6 @@ function baseKeys$2(object) {
|
|
|
5212
4872
|
return result;
|
|
5213
4873
|
}
|
|
5214
4874
|
|
|
5215
|
-
var _baseKeys = baseKeys$2;
|
|
5216
|
-
|
|
5217
|
-
var isFunction = isFunction_1,
|
|
5218
|
-
isLength$1 = isLength_1;
|
|
5219
|
-
|
|
5220
4875
|
/**
|
|
5221
4876
|
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
5222
4877
|
* not a function and has a `value.length` that's an integer greater than or
|
|
@@ -5242,16 +4897,10 @@ var isFunction = isFunction_1,
|
|
|
5242
4897
|
* _.isArrayLike(_.noop);
|
|
5243
4898
|
* // => false
|
|
5244
4899
|
*/
|
|
5245
|
-
function isArrayLike
|
|
5246
|
-
return value != null && isLength
|
|
4900
|
+
function isArrayLike(value) {
|
|
4901
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
5247
4902
|
}
|
|
5248
4903
|
|
|
5249
|
-
var isArrayLike_1 = isArrayLike$4;
|
|
5250
|
-
|
|
5251
|
-
var arrayLikeKeys = _arrayLikeKeys,
|
|
5252
|
-
baseKeys$1 = _baseKeys,
|
|
5253
|
-
isArrayLike$3 = isArrayLike_1;
|
|
5254
|
-
|
|
5255
4904
|
/**
|
|
5256
4905
|
* Creates an array of the own enumerable property names of `object`.
|
|
5257
4906
|
*
|
|
@@ -5280,16 +4929,10 @@ var arrayLikeKeys = _arrayLikeKeys,
|
|
|
5280
4929
|
* _.keys('hi');
|
|
5281
4930
|
* // => ['0', '1']
|
|
5282
4931
|
*/
|
|
5283
|
-
function keys
|
|
5284
|
-
return isArrayLike
|
|
4932
|
+
function keys(object) {
|
|
4933
|
+
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
5285
4934
|
}
|
|
5286
4935
|
|
|
5287
|
-
var keys_1 = keys$3;
|
|
5288
|
-
|
|
5289
|
-
var baseGetAllKeys = _baseGetAllKeys,
|
|
5290
|
-
getSymbols = _getSymbols,
|
|
5291
|
-
keys$2 = keys_1;
|
|
5292
|
-
|
|
5293
4936
|
/**
|
|
5294
4937
|
* Creates an array of own enumerable property names and symbols of `object`.
|
|
5295
4938
|
*
|
|
@@ -5297,14 +4940,10 @@ var baseGetAllKeys = _baseGetAllKeys,
|
|
|
5297
4940
|
* @param {Object} object The object to query.
|
|
5298
4941
|
* @returns {Array} Returns the array of property names and symbols.
|
|
5299
4942
|
*/
|
|
5300
|
-
function getAllKeys
|
|
5301
|
-
return baseGetAllKeys(object, keys
|
|
4943
|
+
function getAllKeys(object) {
|
|
4944
|
+
return baseGetAllKeys(object, keys, getSymbols$1);
|
|
5302
4945
|
}
|
|
5303
4946
|
|
|
5304
|
-
var _getAllKeys = getAllKeys$1;
|
|
5305
|
-
|
|
5306
|
-
var getAllKeys = _getAllKeys;
|
|
5307
|
-
|
|
5308
4947
|
/** Used to compose bitmasks for value comparisons. */
|
|
5309
4948
|
var COMPARE_PARTIAL_FLAG$3 = 1;
|
|
5310
4949
|
|
|
@@ -5327,7 +4966,7 @@ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
|
5327
4966
|
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
5328
4967
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
5329
4968
|
*/
|
|
5330
|
-
function equalObjects
|
|
4969
|
+
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
5331
4970
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3,
|
|
5332
4971
|
objProps = getAllKeys(object),
|
|
5333
4972
|
objLength = objProps.length,
|
|
@@ -5392,47 +5031,25 @@ function equalObjects$1(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
5392
5031
|
return result;
|
|
5393
5032
|
}
|
|
5394
5033
|
|
|
5395
|
-
var _equalObjects = equalObjects$1;
|
|
5396
|
-
|
|
5397
|
-
var getNative$4 = _getNative,
|
|
5398
|
-
root$3 = _root;
|
|
5399
|
-
|
|
5400
5034
|
/* Built-in method references that are verified to be native. */
|
|
5401
|
-
var DataView
|
|
5035
|
+
var DataView = getNative(root$1, 'DataView');
|
|
5402
5036
|
|
|
5403
|
-
var
|
|
5404
|
-
|
|
5405
|
-
var getNative$3 = _getNative,
|
|
5406
|
-
root$2 = _root;
|
|
5037
|
+
var DataView$1 = DataView;
|
|
5407
5038
|
|
|
5408
5039
|
/* Built-in method references that are verified to be native. */
|
|
5409
|
-
var Promise$
|
|
5410
|
-
|
|
5411
|
-
var _Promise = Promise$2;
|
|
5040
|
+
var Promise$1 = getNative(root$1, 'Promise');
|
|
5412
5041
|
|
|
5413
|
-
var
|
|
5414
|
-
root$1 = _root;
|
|
5042
|
+
var Promise$2 = Promise$1;
|
|
5415
5043
|
|
|
5416
5044
|
/* Built-in method references that are verified to be native. */
|
|
5417
|
-
var Set$
|
|
5418
|
-
|
|
5419
|
-
var _Set = Set$2;
|
|
5045
|
+
var Set$1 = getNative(root$1, 'Set');
|
|
5420
5046
|
|
|
5421
|
-
var
|
|
5422
|
-
root = _root;
|
|
5047
|
+
var Set$2 = Set$1;
|
|
5423
5048
|
|
|
5424
5049
|
/* Built-in method references that are verified to be native. */
|
|
5425
|
-
var WeakMap$
|
|
5050
|
+
var WeakMap$1 = getNative(root$1, 'WeakMap');
|
|
5426
5051
|
|
|
5427
|
-
var
|
|
5428
|
-
|
|
5429
|
-
var DataView = _DataView,
|
|
5430
|
-
Map$1 = _Map,
|
|
5431
|
-
Promise$1 = _Promise,
|
|
5432
|
-
Set$1 = _Set,
|
|
5433
|
-
WeakMap$1 = _WeakMap,
|
|
5434
|
-
baseGetTag$1 = _baseGetTag,
|
|
5435
|
-
toSource = _toSource;
|
|
5052
|
+
var WeakMap$2 = WeakMap$1;
|
|
5436
5053
|
|
|
5437
5054
|
/** `Object#toString` result references. */
|
|
5438
5055
|
var mapTag$1 = '[object Map]',
|
|
@@ -5444,11 +5061,11 @@ var mapTag$1 = '[object Map]',
|
|
|
5444
5061
|
var dataViewTag = '[object DataView]';
|
|
5445
5062
|
|
|
5446
5063
|
/** Used to detect maps, sets, and weakmaps. */
|
|
5447
|
-
var dataViewCtorString = toSource(DataView),
|
|
5448
|
-
mapCtorString = toSource(Map$
|
|
5449
|
-
promiseCtorString = toSource(Promise$
|
|
5450
|
-
setCtorString = toSource(Set$
|
|
5451
|
-
weakMapCtorString = toSource(WeakMap$
|
|
5064
|
+
var dataViewCtorString = toSource(DataView$1),
|
|
5065
|
+
mapCtorString = toSource(Map$2),
|
|
5066
|
+
promiseCtorString = toSource(Promise$2),
|
|
5067
|
+
setCtorString = toSource(Set$2),
|
|
5068
|
+
weakMapCtorString = toSource(WeakMap$2);
|
|
5452
5069
|
|
|
5453
5070
|
/**
|
|
5454
5071
|
* Gets the `toStringTag` of `value`.
|
|
@@ -5457,16 +5074,16 @@ var dataViewCtorString = toSource(DataView),
|
|
|
5457
5074
|
* @param {*} value The value to query.
|
|
5458
5075
|
* @returns {string} Returns the `toStringTag`.
|
|
5459
5076
|
*/
|
|
5460
|
-
var getTag
|
|
5077
|
+
var getTag = baseGetTag;
|
|
5461
5078
|
|
|
5462
5079
|
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
|
5463
|
-
if ((DataView && getTag
|
|
5464
|
-
(Map$
|
|
5465
|
-
(Promise$
|
|
5466
|
-
(Set$
|
|
5467
|
-
(WeakMap$
|
|
5468
|
-
getTag
|
|
5469
|
-
var result = baseGetTag
|
|
5080
|
+
if ((DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag) ||
|
|
5081
|
+
(Map$2 && getTag(new Map$2) != mapTag$1) ||
|
|
5082
|
+
(Promise$2 && getTag(Promise$2.resolve()) != promiseTag) ||
|
|
5083
|
+
(Set$2 && getTag(new Set$2) != setTag$1) ||
|
|
5084
|
+
(WeakMap$2 && getTag(new WeakMap$2) != weakMapTag)) {
|
|
5085
|
+
getTag = function(value) {
|
|
5086
|
+
var result = baseGetTag(value),
|
|
5470
5087
|
Ctor = result == objectTag$1 ? value.constructor : undefined,
|
|
5471
5088
|
ctorString = Ctor ? toSource(Ctor) : '';
|
|
5472
5089
|
|
|
@@ -5483,16 +5100,7 @@ if ((DataView && getTag$2(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|
|
5483
5100
|
};
|
|
5484
5101
|
}
|
|
5485
5102
|
|
|
5486
|
-
var
|
|
5487
|
-
|
|
5488
|
-
var Stack$1 = _Stack,
|
|
5489
|
-
equalArrays = _equalArrays,
|
|
5490
|
-
equalByTag = _equalByTag,
|
|
5491
|
-
equalObjects = _equalObjects,
|
|
5492
|
-
getTag$1 = _getTag,
|
|
5493
|
-
isArray$9 = isArray_1,
|
|
5494
|
-
isBuffer = isBuffer$2.exports,
|
|
5495
|
-
isTypedArray = isTypedArray_1;
|
|
5103
|
+
var getTag$1 = getTag;
|
|
5496
5104
|
|
|
5497
5105
|
/** Used to compose bitmasks for value comparisons. */
|
|
5498
5106
|
var COMPARE_PARTIAL_FLAG$2 = 1;
|
|
@@ -5522,9 +5130,9 @@ var hasOwnProperty = objectProto.hasOwnProperty;
|
|
|
5522
5130
|
* @param {Object} [stack] Tracks traversed `object` and `other` objects.
|
|
5523
5131
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
5524
5132
|
*/
|
|
5525
|
-
function baseIsEqualDeep
|
|
5526
|
-
var objIsArr = isArray$
|
|
5527
|
-
othIsArr = isArray$
|
|
5133
|
+
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
5134
|
+
var objIsArr = isArray$1(object),
|
|
5135
|
+
othIsArr = isArray$1(other),
|
|
5528
5136
|
objTag = objIsArr ? arrayTag : getTag$1(object),
|
|
5529
5137
|
othTag = othIsArr ? arrayTag : getTag$1(other);
|
|
5530
5138
|
|
|
@@ -5535,16 +5143,16 @@ function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack)
|
|
|
5535
5143
|
othIsObj = othTag == objectTag,
|
|
5536
5144
|
isSameTag = objTag == othTag;
|
|
5537
5145
|
|
|
5538
|
-
if (isSameTag && isBuffer(object)) {
|
|
5539
|
-
if (!isBuffer(other)) {
|
|
5146
|
+
if (isSameTag && isBuffer$1(object)) {
|
|
5147
|
+
if (!isBuffer$1(other)) {
|
|
5540
5148
|
return false;
|
|
5541
5149
|
}
|
|
5542
5150
|
objIsArr = true;
|
|
5543
5151
|
objIsObj = false;
|
|
5544
5152
|
}
|
|
5545
5153
|
if (isSameTag && !objIsObj) {
|
|
5546
|
-
stack || (stack = new Stack
|
|
5547
|
-
return (objIsArr || isTypedArray(object))
|
|
5154
|
+
stack || (stack = new Stack);
|
|
5155
|
+
return (objIsArr || isTypedArray$1(object))
|
|
5548
5156
|
? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
|
|
5549
5157
|
: equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
5550
5158
|
}
|
|
@@ -5556,22 +5164,17 @@ function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack)
|
|
|
5556
5164
|
var objUnwrapped = objIsWrapped ? object.value() : object,
|
|
5557
5165
|
othUnwrapped = othIsWrapped ? other.value() : other;
|
|
5558
5166
|
|
|
5559
|
-
stack || (stack = new Stack
|
|
5167
|
+
stack || (stack = new Stack);
|
|
5560
5168
|
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
5561
5169
|
}
|
|
5562
5170
|
}
|
|
5563
5171
|
if (!isSameTag) {
|
|
5564
5172
|
return false;
|
|
5565
5173
|
}
|
|
5566
|
-
stack || (stack = new Stack
|
|
5174
|
+
stack || (stack = new Stack);
|
|
5567
5175
|
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
5568
5176
|
}
|
|
5569
5177
|
|
|
5570
|
-
var _baseIsEqualDeep = baseIsEqualDeep$1;
|
|
5571
|
-
|
|
5572
|
-
var baseIsEqualDeep = _baseIsEqualDeep,
|
|
5573
|
-
isObjectLike$1 = isObjectLike_1;
|
|
5574
|
-
|
|
5575
5178
|
/**
|
|
5576
5179
|
* The base implementation of `_.isEqual` which supports partial comparisons
|
|
5577
5180
|
* and tracks traversed objects.
|
|
@@ -5586,21 +5189,16 @@ var baseIsEqualDeep = _baseIsEqualDeep,
|
|
|
5586
5189
|
* @param {Object} [stack] Tracks traversed `value` and `other` objects.
|
|
5587
5190
|
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
5588
5191
|
*/
|
|
5589
|
-
function baseIsEqual
|
|
5192
|
+
function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
5590
5193
|
if (value === other) {
|
|
5591
5194
|
return true;
|
|
5592
5195
|
}
|
|
5593
|
-
if (value == null || other == null || (!isObjectLike
|
|
5196
|
+
if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
|
|
5594
5197
|
return value !== value && other !== other;
|
|
5595
5198
|
}
|
|
5596
|
-
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual
|
|
5199
|
+
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
5597
5200
|
}
|
|
5598
5201
|
|
|
5599
|
-
var _baseIsEqual = baseIsEqual$2;
|
|
5600
|
-
|
|
5601
|
-
var Stack = _Stack,
|
|
5602
|
-
baseIsEqual$1 = _baseIsEqual;
|
|
5603
|
-
|
|
5604
5202
|
/** Used to compose bitmasks for value comparisons. */
|
|
5605
5203
|
var COMPARE_PARTIAL_FLAG$1 = 1,
|
|
5606
5204
|
COMPARE_UNORDERED_FLAG$1 = 2;
|
|
@@ -5615,7 +5213,7 @@ var COMPARE_PARTIAL_FLAG$1 = 1,
|
|
|
5615
5213
|
* @param {Function} [customizer] The function to customize comparisons.
|
|
5616
5214
|
* @returns {boolean} Returns `true` if `object` is a match, else `false`.
|
|
5617
5215
|
*/
|
|
5618
|
-
function baseIsMatch
|
|
5216
|
+
function baseIsMatch(object, source, matchData, customizer) {
|
|
5619
5217
|
var index = matchData.length,
|
|
5620
5218
|
length = index,
|
|
5621
5219
|
noCustomizer = !customizer;
|
|
@@ -5649,7 +5247,7 @@ function baseIsMatch$1(object, source, matchData, customizer) {
|
|
|
5649
5247
|
var result = customizer(objValue, srcValue, key, object, source, stack);
|
|
5650
5248
|
}
|
|
5651
5249
|
if (!(result === undefined
|
|
5652
|
-
? baseIsEqual
|
|
5250
|
+
? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack)
|
|
5653
5251
|
: result
|
|
5654
5252
|
)) {
|
|
5655
5253
|
return false;
|
|
@@ -5659,10 +5257,6 @@ function baseIsMatch$1(object, source, matchData, customizer) {
|
|
|
5659
5257
|
return true;
|
|
5660
5258
|
}
|
|
5661
5259
|
|
|
5662
|
-
var _baseIsMatch = baseIsMatch$1;
|
|
5663
|
-
|
|
5664
|
-
var isObject$2 = isObject_1;
|
|
5665
|
-
|
|
5666
5260
|
/**
|
|
5667
5261
|
* Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
|
|
5668
5262
|
*
|
|
@@ -5671,15 +5265,10 @@ var isObject$2 = isObject_1;
|
|
|
5671
5265
|
* @returns {boolean} Returns `true` if `value` if suitable for strict
|
|
5672
5266
|
* equality comparisons, else `false`.
|
|
5673
5267
|
*/
|
|
5674
|
-
function isStrictComparable
|
|
5675
|
-
return value === value && !isObject
|
|
5268
|
+
function isStrictComparable(value) {
|
|
5269
|
+
return value === value && !isObject(value);
|
|
5676
5270
|
}
|
|
5677
5271
|
|
|
5678
|
-
var _isStrictComparable = isStrictComparable$2;
|
|
5679
|
-
|
|
5680
|
-
var isStrictComparable$1 = _isStrictComparable,
|
|
5681
|
-
keys$1 = keys_1;
|
|
5682
|
-
|
|
5683
5272
|
/**
|
|
5684
5273
|
* Gets the property names, values, and compare flags of `object`.
|
|
5685
5274
|
*
|
|
@@ -5687,21 +5276,19 @@ var isStrictComparable$1 = _isStrictComparable,
|
|
|
5687
5276
|
* @param {Object} object The object to query.
|
|
5688
5277
|
* @returns {Array} Returns the match data of `object`.
|
|
5689
5278
|
*/
|
|
5690
|
-
function getMatchData
|
|
5691
|
-
var result = keys
|
|
5279
|
+
function getMatchData(object) {
|
|
5280
|
+
var result = keys(object),
|
|
5692
5281
|
length = result.length;
|
|
5693
5282
|
|
|
5694
5283
|
while (length--) {
|
|
5695
5284
|
var key = result[length],
|
|
5696
5285
|
value = object[key];
|
|
5697
5286
|
|
|
5698
|
-
result[length] = [key, value, isStrictComparable
|
|
5287
|
+
result[length] = [key, value, isStrictComparable(value)];
|
|
5699
5288
|
}
|
|
5700
5289
|
return result;
|
|
5701
5290
|
}
|
|
5702
5291
|
|
|
5703
|
-
var _getMatchData = getMatchData$1;
|
|
5704
|
-
|
|
5705
5292
|
/**
|
|
5706
5293
|
* A specialized version of `matchesProperty` for source values suitable
|
|
5707
5294
|
* for strict equality comparisons, i.e. `===`.
|
|
@@ -5711,8 +5298,7 @@ var _getMatchData = getMatchData$1;
|
|
|
5711
5298
|
* @param {*} srcValue The value to match.
|
|
5712
5299
|
* @returns {Function} Returns the new spec function.
|
|
5713
5300
|
*/
|
|
5714
|
-
|
|
5715
|
-
function matchesStrictComparable$2(key, srcValue) {
|
|
5301
|
+
function matchesStrictComparable(key, srcValue) {
|
|
5716
5302
|
return function(object) {
|
|
5717
5303
|
if (object == null) {
|
|
5718
5304
|
return false;
|
|
@@ -5722,12 +5308,6 @@ function matchesStrictComparable$2(key, srcValue) {
|
|
|
5722
5308
|
};
|
|
5723
5309
|
}
|
|
5724
5310
|
|
|
5725
|
-
var _matchesStrictComparable = matchesStrictComparable$2;
|
|
5726
|
-
|
|
5727
|
-
var baseIsMatch = _baseIsMatch,
|
|
5728
|
-
getMatchData = _getMatchData,
|
|
5729
|
-
matchesStrictComparable$1 = _matchesStrictComparable;
|
|
5730
|
-
|
|
5731
5311
|
/**
|
|
5732
5312
|
* The base implementation of `_.matches` which doesn't clone `source`.
|
|
5733
5313
|
*
|
|
@@ -5735,21 +5315,16 @@ var baseIsMatch = _baseIsMatch,
|
|
|
5735
5315
|
* @param {Object} source The object of property values to match.
|
|
5736
5316
|
* @returns {Function} Returns the new spec function.
|
|
5737
5317
|
*/
|
|
5738
|
-
function baseMatches
|
|
5318
|
+
function baseMatches(source) {
|
|
5739
5319
|
var matchData = getMatchData(source);
|
|
5740
5320
|
if (matchData.length == 1 && matchData[0][2]) {
|
|
5741
|
-
return matchesStrictComparable
|
|
5321
|
+
return matchesStrictComparable(matchData[0][0], matchData[0][1]);
|
|
5742
5322
|
}
|
|
5743
5323
|
return function(object) {
|
|
5744
5324
|
return object === source || baseIsMatch(object, source, matchData);
|
|
5745
5325
|
};
|
|
5746
5326
|
}
|
|
5747
5327
|
|
|
5748
|
-
var _baseMatches = baseMatches$1;
|
|
5749
|
-
|
|
5750
|
-
var isArray$8 = isArray_1,
|
|
5751
|
-
isSymbol$4 = isSymbol_1;
|
|
5752
|
-
|
|
5753
5328
|
/** Used to match property names within property paths. */
|
|
5754
5329
|
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
5755
5330
|
reIsPlainProp = /^\w*$/;
|
|
@@ -5762,23 +5337,19 @@ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
|
5762
5337
|
* @param {Object} [object] The object to query keys on.
|
|
5763
5338
|
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
5764
5339
|
*/
|
|
5765
|
-
function isKey
|
|
5766
|
-
if (isArray$
|
|
5340
|
+
function isKey(value, object) {
|
|
5341
|
+
if (isArray$1(value)) {
|
|
5767
5342
|
return false;
|
|
5768
5343
|
}
|
|
5769
5344
|
var type = typeof value;
|
|
5770
5345
|
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
|
|
5771
|
-
value == null || isSymbol
|
|
5346
|
+
value == null || isSymbol(value)) {
|
|
5772
5347
|
return true;
|
|
5773
5348
|
}
|
|
5774
5349
|
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
|
|
5775
5350
|
(object != null && value in Object(object));
|
|
5776
5351
|
}
|
|
5777
5352
|
|
|
5778
|
-
var _isKey = isKey$3;
|
|
5779
|
-
|
|
5780
|
-
var MapCache = _MapCache;
|
|
5781
|
-
|
|
5782
5353
|
/** Error message constants. */
|
|
5783
5354
|
var FUNC_ERROR_TEXT$1 = 'Expected a function';
|
|
5784
5355
|
|
|
@@ -5826,7 +5397,7 @@ var FUNC_ERROR_TEXT$1 = 'Expected a function';
|
|
|
5826
5397
|
* // Replace `_.memoize.Cache`.
|
|
5827
5398
|
* _.memoize.Cache = WeakMap;
|
|
5828
5399
|
*/
|
|
5829
|
-
function memoize
|
|
5400
|
+
function memoize(func, resolver) {
|
|
5830
5401
|
if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
|
|
5831
5402
|
throw new TypeError(FUNC_ERROR_TEXT$1);
|
|
5832
5403
|
}
|
|
@@ -5842,16 +5413,12 @@ function memoize$1(func, resolver) {
|
|
|
5842
5413
|
memoized.cache = cache.set(key, result) || cache;
|
|
5843
5414
|
return result;
|
|
5844
5415
|
};
|
|
5845
|
-
memoized.cache = new (memoize
|
|
5416
|
+
memoized.cache = new (memoize.Cache || MapCache);
|
|
5846
5417
|
return memoized;
|
|
5847
5418
|
}
|
|
5848
5419
|
|
|
5849
5420
|
// Expose `MapCache`.
|
|
5850
|
-
memoize
|
|
5851
|
-
|
|
5852
|
-
var memoize_1 = memoize$1;
|
|
5853
|
-
|
|
5854
|
-
var memoize = memoize_1;
|
|
5421
|
+
memoize.Cache = MapCache;
|
|
5855
5422
|
|
|
5856
5423
|
/** Used as the maximum memoize cache size. */
|
|
5857
5424
|
var MAX_MEMOIZE_SIZE = 500;
|
|
@@ -5864,7 +5431,7 @@ var MAX_MEMOIZE_SIZE = 500;
|
|
|
5864
5431
|
* @param {Function} func The function to have its output memoized.
|
|
5865
5432
|
* @returns {Function} Returns the new memoized function.
|
|
5866
5433
|
*/
|
|
5867
|
-
function memoizeCapped
|
|
5434
|
+
function memoizeCapped(func) {
|
|
5868
5435
|
var result = memoize(func, function(key) {
|
|
5869
5436
|
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
5870
5437
|
cache.clear();
|
|
@@ -5876,10 +5443,6 @@ function memoizeCapped$1(func) {
|
|
|
5876
5443
|
return result;
|
|
5877
5444
|
}
|
|
5878
5445
|
|
|
5879
|
-
var _memoizeCapped = memoizeCapped$1;
|
|
5880
|
-
|
|
5881
|
-
var memoizeCapped = _memoizeCapped;
|
|
5882
|
-
|
|
5883
5446
|
/** Used to match property names within property paths. */
|
|
5884
5447
|
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
5885
5448
|
|
|
@@ -5893,7 +5456,7 @@ var reEscapeChar = /\\(\\)?/g;
|
|
|
5893
5456
|
* @param {string} string The string to convert.
|
|
5894
5457
|
* @returns {Array} Returns the property path array.
|
|
5895
5458
|
*/
|
|
5896
|
-
var stringToPath
|
|
5459
|
+
var stringToPath = memoizeCapped(function(string) {
|
|
5897
5460
|
var result = [];
|
|
5898
5461
|
if (string.charCodeAt(0) === 46 /* . */) {
|
|
5899
5462
|
result.push('');
|
|
@@ -5904,7 +5467,7 @@ var stringToPath$1 = memoizeCapped(function(string) {
|
|
|
5904
5467
|
return result;
|
|
5905
5468
|
});
|
|
5906
5469
|
|
|
5907
|
-
var
|
|
5470
|
+
var stringToPath$1 = stringToPath;
|
|
5908
5471
|
|
|
5909
5472
|
/**
|
|
5910
5473
|
* A specialized version of `_.map` for arrays without support for iteratee
|
|
@@ -5915,8 +5478,7 @@ var _stringToPath = stringToPath$1;
|
|
|
5915
5478
|
* @param {Function} iteratee The function invoked per iteration.
|
|
5916
5479
|
* @returns {Array} Returns the new mapped array.
|
|
5917
5480
|
*/
|
|
5918
|
-
|
|
5919
|
-
function arrayMap$1(array, iteratee) {
|
|
5481
|
+
function arrayMap(array, iteratee) {
|
|
5920
5482
|
var index = -1,
|
|
5921
5483
|
length = array == null ? 0 : array.length,
|
|
5922
5484
|
result = Array(length);
|
|
@@ -5927,18 +5489,11 @@ function arrayMap$1(array, iteratee) {
|
|
|
5927
5489
|
return result;
|
|
5928
5490
|
}
|
|
5929
5491
|
|
|
5930
|
-
var _arrayMap = arrayMap$1;
|
|
5931
|
-
|
|
5932
|
-
var Symbol = _Symbol,
|
|
5933
|
-
arrayMap = _arrayMap,
|
|
5934
|
-
isArray$7 = isArray_1,
|
|
5935
|
-
isSymbol$3 = isSymbol_1;
|
|
5936
|
-
|
|
5937
5492
|
/** Used as references for various `Number` constants. */
|
|
5938
5493
|
var INFINITY$2 = 1 / 0;
|
|
5939
5494
|
|
|
5940
5495
|
/** Used to convert symbols to primitives and strings. */
|
|
5941
|
-
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
5496
|
+
var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined,
|
|
5942
5497
|
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
5943
5498
|
|
|
5944
5499
|
/**
|
|
@@ -5949,26 +5504,22 @@ var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
|
5949
5504
|
* @param {*} value The value to process.
|
|
5950
5505
|
* @returns {string} Returns the string.
|
|
5951
5506
|
*/
|
|
5952
|
-
function baseToString
|
|
5507
|
+
function baseToString(value) {
|
|
5953
5508
|
// Exit early for strings to avoid a performance hit in some environments.
|
|
5954
5509
|
if (typeof value == 'string') {
|
|
5955
5510
|
return value;
|
|
5956
5511
|
}
|
|
5957
|
-
if (isArray$
|
|
5512
|
+
if (isArray$1(value)) {
|
|
5958
5513
|
// Recursively convert values (susceptible to call stack limits).
|
|
5959
|
-
return arrayMap(value, baseToString
|
|
5514
|
+
return arrayMap(value, baseToString) + '';
|
|
5960
5515
|
}
|
|
5961
|
-
if (isSymbol
|
|
5516
|
+
if (isSymbol(value)) {
|
|
5962
5517
|
return symbolToString ? symbolToString.call(value) : '';
|
|
5963
5518
|
}
|
|
5964
5519
|
var result = (value + '');
|
|
5965
5520
|
return (result == '0' && (1 / value) == -INFINITY$2) ? '-0' : result;
|
|
5966
5521
|
}
|
|
5967
5522
|
|
|
5968
|
-
var _baseToString = baseToString$1;
|
|
5969
|
-
|
|
5970
|
-
var baseToString = _baseToString;
|
|
5971
|
-
|
|
5972
5523
|
/**
|
|
5973
5524
|
* Converts `value` to a string. An empty string is returned for `null`
|
|
5974
5525
|
* and `undefined` values. The sign of `-0` is preserved.
|
|
@@ -5990,17 +5541,10 @@ var baseToString = _baseToString;
|
|
|
5990
5541
|
* _.toString([1, 2, 3]);
|
|
5991
5542
|
* // => '1,2,3'
|
|
5992
5543
|
*/
|
|
5993
|
-
function toString
|
|
5544
|
+
function toString(value) {
|
|
5994
5545
|
return value == null ? '' : baseToString(value);
|
|
5995
5546
|
}
|
|
5996
5547
|
|
|
5997
|
-
var toString_1 = toString$1;
|
|
5998
|
-
|
|
5999
|
-
var isArray$6 = isArray_1,
|
|
6000
|
-
isKey$2 = _isKey,
|
|
6001
|
-
stringToPath = _stringToPath,
|
|
6002
|
-
toString = toString_1;
|
|
6003
|
-
|
|
6004
5548
|
/**
|
|
6005
5549
|
* Casts `value` to a path array if it's not one.
|
|
6006
5550
|
*
|
|
@@ -6009,17 +5553,13 @@ var isArray$6 = isArray_1,
|
|
|
6009
5553
|
* @param {Object} [object] The object to query keys on.
|
|
6010
5554
|
* @returns {Array} Returns the cast property path array.
|
|
6011
5555
|
*/
|
|
6012
|
-
function castPath
|
|
6013
|
-
if (isArray$
|
|
5556
|
+
function castPath(value, object) {
|
|
5557
|
+
if (isArray$1(value)) {
|
|
6014
5558
|
return value;
|
|
6015
5559
|
}
|
|
6016
|
-
return isKey
|
|
5560
|
+
return isKey(value, object) ? [value] : stringToPath$1(toString(value));
|
|
6017
5561
|
}
|
|
6018
5562
|
|
|
6019
|
-
var _castPath = castPath$2;
|
|
6020
|
-
|
|
6021
|
-
var isSymbol$2 = isSymbol_1;
|
|
6022
|
-
|
|
6023
5563
|
/** Used as references for various `Number` constants. */
|
|
6024
5564
|
var INFINITY$1 = 1 / 0;
|
|
6025
5565
|
|
|
@@ -6030,19 +5570,14 @@ var INFINITY$1 = 1 / 0;
|
|
|
6030
5570
|
* @param {*} value The value to inspect.
|
|
6031
5571
|
* @returns {string|symbol} Returns the key.
|
|
6032
5572
|
*/
|
|
6033
|
-
function toKey
|
|
6034
|
-
if (typeof value == 'string' || isSymbol
|
|
5573
|
+
function toKey(value) {
|
|
5574
|
+
if (typeof value == 'string' || isSymbol(value)) {
|
|
6035
5575
|
return value;
|
|
6036
5576
|
}
|
|
6037
5577
|
var result = (value + '');
|
|
6038
5578
|
return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
|
|
6039
5579
|
}
|
|
6040
5580
|
|
|
6041
|
-
var _toKey = toKey$4;
|
|
6042
|
-
|
|
6043
|
-
var castPath$1 = _castPath,
|
|
6044
|
-
toKey$3 = _toKey;
|
|
6045
|
-
|
|
6046
5581
|
/**
|
|
6047
5582
|
* The base implementation of `_.get` without support for default values.
|
|
6048
5583
|
*
|
|
@@ -6051,22 +5586,18 @@ var castPath$1 = _castPath,
|
|
|
6051
5586
|
* @param {Array|string} path The path of the property to get.
|
|
6052
5587
|
* @returns {*} Returns the resolved value.
|
|
6053
5588
|
*/
|
|
6054
|
-
function baseGet
|
|
6055
|
-
path = castPath
|
|
5589
|
+
function baseGet(object, path) {
|
|
5590
|
+
path = castPath(path, object);
|
|
6056
5591
|
|
|
6057
5592
|
var index = 0,
|
|
6058
5593
|
length = path.length;
|
|
6059
5594
|
|
|
6060
5595
|
while (object != null && index < length) {
|
|
6061
|
-
object = object[toKey
|
|
5596
|
+
object = object[toKey(path[index++])];
|
|
6062
5597
|
}
|
|
6063
5598
|
return (index && index == length) ? object : undefined;
|
|
6064
5599
|
}
|
|
6065
5600
|
|
|
6066
|
-
var _baseGet = baseGet$2;
|
|
6067
|
-
|
|
6068
|
-
var baseGet$1 = _baseGet;
|
|
6069
|
-
|
|
6070
5601
|
/**
|
|
6071
5602
|
* Gets the value at `path` of `object`. If the resolved value is
|
|
6072
5603
|
* `undefined`, the `defaultValue` is returned in its place.
|
|
@@ -6092,13 +5623,11 @@ var baseGet$1 = _baseGet;
|
|
|
6092
5623
|
* _.get(object, 'a.b.c', 'default');
|
|
6093
5624
|
* // => 'default'
|
|
6094
5625
|
*/
|
|
6095
|
-
function get
|
|
6096
|
-
var result = object == null ? undefined : baseGet
|
|
5626
|
+
function get(object, path, defaultValue) {
|
|
5627
|
+
var result = object == null ? undefined : baseGet(object, path);
|
|
6097
5628
|
return result === undefined ? defaultValue : result;
|
|
6098
5629
|
}
|
|
6099
5630
|
|
|
6100
|
-
var get_1 = get$1;
|
|
6101
|
-
|
|
6102
5631
|
/**
|
|
6103
5632
|
* The base implementation of `_.hasIn` without support for deep paths.
|
|
6104
5633
|
*
|
|
@@ -6107,20 +5636,10 @@ var get_1 = get$1;
|
|
|
6107
5636
|
* @param {Array|string} key The key to check.
|
|
6108
5637
|
* @returns {boolean} Returns `true` if `key` exists, else `false`.
|
|
6109
5638
|
*/
|
|
6110
|
-
|
|
6111
|
-
function baseHasIn$1(object, key) {
|
|
5639
|
+
function baseHasIn(object, key) {
|
|
6112
5640
|
return object != null && key in Object(object);
|
|
6113
5641
|
}
|
|
6114
5642
|
|
|
6115
|
-
var _baseHasIn = baseHasIn$1;
|
|
6116
|
-
|
|
6117
|
-
var castPath = _castPath,
|
|
6118
|
-
isArguments = isArguments_1,
|
|
6119
|
-
isArray$5 = isArray_1,
|
|
6120
|
-
isIndex$1 = _isIndex,
|
|
6121
|
-
isLength = isLength_1,
|
|
6122
|
-
toKey$2 = _toKey;
|
|
6123
|
-
|
|
6124
5643
|
/**
|
|
6125
5644
|
* Checks if `path` exists on `object`.
|
|
6126
5645
|
*
|
|
@@ -6130,7 +5649,7 @@ var castPath = _castPath,
|
|
|
6130
5649
|
* @param {Function} hasFunc The function to check properties.
|
|
6131
5650
|
* @returns {boolean} Returns `true` if `path` exists, else `false`.
|
|
6132
5651
|
*/
|
|
6133
|
-
function hasPath
|
|
5652
|
+
function hasPath(object, path, hasFunc) {
|
|
6134
5653
|
path = castPath(path, object);
|
|
6135
5654
|
|
|
6136
5655
|
var index = -1,
|
|
@@ -6138,7 +5657,7 @@ function hasPath$1(object, path, hasFunc) {
|
|
|
6138
5657
|
result = false;
|
|
6139
5658
|
|
|
6140
5659
|
while (++index < length) {
|
|
6141
|
-
var key = toKey
|
|
5660
|
+
var key = toKey(path[index]);
|
|
6142
5661
|
if (!(result = object != null && hasFunc(object, key))) {
|
|
6143
5662
|
break;
|
|
6144
5663
|
}
|
|
@@ -6148,15 +5667,10 @@ function hasPath$1(object, path, hasFunc) {
|
|
|
6148
5667
|
return result;
|
|
6149
5668
|
}
|
|
6150
5669
|
length = object == null ? 0 : object.length;
|
|
6151
|
-
return !!length && isLength(length) && isIndex
|
|
6152
|
-
(isArray$
|
|
5670
|
+
return !!length && isLength(length) && isIndex(key, length) &&
|
|
5671
|
+
(isArray$1(object) || isArguments$1(object));
|
|
6153
5672
|
}
|
|
6154
5673
|
|
|
6155
|
-
var _hasPath = hasPath$1;
|
|
6156
|
-
|
|
6157
|
-
var baseHasIn = _baseHasIn,
|
|
6158
|
-
hasPath = _hasPath;
|
|
6159
|
-
|
|
6160
5674
|
/**
|
|
6161
5675
|
* Checks if `path` is a direct or inherited property of `object`.
|
|
6162
5676
|
*
|
|
@@ -6183,20 +5697,10 @@ var baseHasIn = _baseHasIn,
|
|
|
6183
5697
|
* _.hasIn(object, 'b');
|
|
6184
5698
|
* // => false
|
|
6185
5699
|
*/
|
|
6186
|
-
function hasIn
|
|
5700
|
+
function hasIn(object, path) {
|
|
6187
5701
|
return object != null && hasPath(object, path, baseHasIn);
|
|
6188
5702
|
}
|
|
6189
5703
|
|
|
6190
|
-
var hasIn_1 = hasIn$1;
|
|
6191
|
-
|
|
6192
|
-
var baseIsEqual = _baseIsEqual,
|
|
6193
|
-
get = get_1,
|
|
6194
|
-
hasIn = hasIn_1,
|
|
6195
|
-
isKey$1 = _isKey,
|
|
6196
|
-
isStrictComparable = _isStrictComparable,
|
|
6197
|
-
matchesStrictComparable = _matchesStrictComparable,
|
|
6198
|
-
toKey$1 = _toKey;
|
|
6199
|
-
|
|
6200
5704
|
/** Used to compose bitmasks for value comparisons. */
|
|
6201
5705
|
var COMPARE_PARTIAL_FLAG = 1,
|
|
6202
5706
|
COMPARE_UNORDERED_FLAG = 2;
|
|
@@ -6209,9 +5713,9 @@ var COMPARE_PARTIAL_FLAG = 1,
|
|
|
6209
5713
|
* @param {*} srcValue The value to match.
|
|
6210
5714
|
* @returns {Function} Returns the new spec function.
|
|
6211
5715
|
*/
|
|
6212
|
-
function baseMatchesProperty
|
|
6213
|
-
if (isKey
|
|
6214
|
-
return matchesStrictComparable(toKey
|
|
5716
|
+
function baseMatchesProperty(path, srcValue) {
|
|
5717
|
+
if (isKey(path) && isStrictComparable(srcValue)) {
|
|
5718
|
+
return matchesStrictComparable(toKey(path), srcValue);
|
|
6215
5719
|
}
|
|
6216
5720
|
return function(object) {
|
|
6217
5721
|
var objValue = get(object, path);
|
|
@@ -6221,8 +5725,6 @@ function baseMatchesProperty$1(path, srcValue) {
|
|
|
6221
5725
|
};
|
|
6222
5726
|
}
|
|
6223
5727
|
|
|
6224
|
-
var _baseMatchesProperty = baseMatchesProperty$1;
|
|
6225
|
-
|
|
6226
5728
|
/**
|
|
6227
5729
|
* This method returns the first argument it receives.
|
|
6228
5730
|
*
|
|
@@ -6239,13 +5741,10 @@ var _baseMatchesProperty = baseMatchesProperty$1;
|
|
|
6239
5741
|
* console.log(_.identity(object) === object);
|
|
6240
5742
|
* // => true
|
|
6241
5743
|
*/
|
|
6242
|
-
|
|
6243
|
-
function identity$3(value) {
|
|
5744
|
+
function identity(value) {
|
|
6244
5745
|
return value;
|
|
6245
5746
|
}
|
|
6246
5747
|
|
|
6247
|
-
var identity_1 = identity$3;
|
|
6248
|
-
|
|
6249
5748
|
/**
|
|
6250
5749
|
* The base implementation of `_.property` without support for deep paths.
|
|
6251
5750
|
*
|
|
@@ -6253,17 +5752,12 @@ var identity_1 = identity$3;
|
|
|
6253
5752
|
* @param {string} key The key of the property to get.
|
|
6254
5753
|
* @returns {Function} Returns the new accessor function.
|
|
6255
5754
|
*/
|
|
6256
|
-
|
|
6257
|
-
function baseProperty$2(key) {
|
|
5755
|
+
function baseProperty(key) {
|
|
6258
5756
|
return function(object) {
|
|
6259
5757
|
return object == null ? undefined : object[key];
|
|
6260
5758
|
};
|
|
6261
5759
|
}
|
|
6262
5760
|
|
|
6263
|
-
var _baseProperty = baseProperty$2;
|
|
6264
|
-
|
|
6265
|
-
var baseGet = _baseGet;
|
|
6266
|
-
|
|
6267
5761
|
/**
|
|
6268
5762
|
* A specialized version of `baseProperty` which supports deep paths.
|
|
6269
5763
|
*
|
|
@@ -6271,19 +5765,12 @@ var baseGet = _baseGet;
|
|
|
6271
5765
|
* @param {Array|string} path The path of the property to get.
|
|
6272
5766
|
* @returns {Function} Returns the new accessor function.
|
|
6273
5767
|
*/
|
|
6274
|
-
function basePropertyDeep
|
|
5768
|
+
function basePropertyDeep(path) {
|
|
6275
5769
|
return function(object) {
|
|
6276
5770
|
return baseGet(object, path);
|
|
6277
5771
|
};
|
|
6278
5772
|
}
|
|
6279
5773
|
|
|
6280
|
-
var _basePropertyDeep = basePropertyDeep$1;
|
|
6281
|
-
|
|
6282
|
-
var baseProperty$1 = _baseProperty,
|
|
6283
|
-
basePropertyDeep = _basePropertyDeep,
|
|
6284
|
-
isKey = _isKey,
|
|
6285
|
-
toKey = _toKey;
|
|
6286
|
-
|
|
6287
5774
|
/**
|
|
6288
5775
|
* Creates a function that returns the value at `path` of a given object.
|
|
6289
5776
|
*
|
|
@@ -6306,18 +5793,10 @@ var baseProperty$1 = _baseProperty,
|
|
|
6306
5793
|
* _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
|
|
6307
5794
|
* // => [1, 2]
|
|
6308
5795
|
*/
|
|
6309
|
-
function property
|
|
6310
|
-
return isKey(path) ? baseProperty
|
|
5796
|
+
function property(path) {
|
|
5797
|
+
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
|
|
6311
5798
|
}
|
|
6312
5799
|
|
|
6313
|
-
var property_1 = property$1;
|
|
6314
|
-
|
|
6315
|
-
var baseMatches = _baseMatches,
|
|
6316
|
-
baseMatchesProperty = _baseMatchesProperty,
|
|
6317
|
-
identity$2 = identity_1,
|
|
6318
|
-
isArray$4 = isArray_1,
|
|
6319
|
-
property = property_1;
|
|
6320
|
-
|
|
6321
5800
|
/**
|
|
6322
5801
|
* The base implementation of `_.iteratee`.
|
|
6323
5802
|
*
|
|
@@ -6325,27 +5804,23 @@ var baseMatches = _baseMatches,
|
|
|
6325
5804
|
* @param {*} [value=_.identity] The value to convert to an iteratee.
|
|
6326
5805
|
* @returns {Function} Returns the iteratee.
|
|
6327
5806
|
*/
|
|
6328
|
-
function baseIteratee
|
|
5807
|
+
function baseIteratee(value) {
|
|
6329
5808
|
// Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
|
|
6330
5809
|
// See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
|
|
6331
5810
|
if (typeof value == 'function') {
|
|
6332
5811
|
return value;
|
|
6333
5812
|
}
|
|
6334
5813
|
if (value == null) {
|
|
6335
|
-
return identity
|
|
5814
|
+
return identity;
|
|
6336
5815
|
}
|
|
6337
5816
|
if (typeof value == 'object') {
|
|
6338
|
-
return isArray$
|
|
5817
|
+
return isArray$1(value)
|
|
6339
5818
|
? baseMatchesProperty(value[0], value[1])
|
|
6340
5819
|
: baseMatches(value);
|
|
6341
5820
|
}
|
|
6342
5821
|
return property(value);
|
|
6343
5822
|
}
|
|
6344
5823
|
|
|
6345
|
-
var _baseIteratee = baseIteratee$3;
|
|
6346
|
-
|
|
6347
|
-
var toNumber = toNumber_1;
|
|
6348
|
-
|
|
6349
5824
|
/** Used as references for various `Number` constants. */
|
|
6350
5825
|
var INFINITY = 1 / 0,
|
|
6351
5826
|
MAX_INTEGER = 1.7976931348623157e+308;
|
|
@@ -6373,7 +5848,7 @@ var INFINITY = 1 / 0,
|
|
|
6373
5848
|
* _.toFinite('3.2');
|
|
6374
5849
|
* // => 3.2
|
|
6375
5850
|
*/
|
|
6376
|
-
function toFinite
|
|
5851
|
+
function toFinite(value) {
|
|
6377
5852
|
if (!value) {
|
|
6378
5853
|
return value === 0 ? value : 0;
|
|
6379
5854
|
}
|
|
@@ -6385,10 +5860,6 @@ function toFinite$2(value) {
|
|
|
6385
5860
|
return value === value ? value : 0;
|
|
6386
5861
|
}
|
|
6387
5862
|
|
|
6388
|
-
var toFinite_1 = toFinite$2;
|
|
6389
|
-
|
|
6390
|
-
var toFinite$1 = toFinite_1;
|
|
6391
|
-
|
|
6392
5863
|
/**
|
|
6393
5864
|
* Converts `value` to an integer.
|
|
6394
5865
|
*
|
|
@@ -6415,19 +5886,13 @@ var toFinite$1 = toFinite_1;
|
|
|
6415
5886
|
* _.toInteger('3.2');
|
|
6416
5887
|
* // => 3
|
|
6417
5888
|
*/
|
|
6418
|
-
function toInteger
|
|
6419
|
-
var result = toFinite
|
|
5889
|
+
function toInteger(value) {
|
|
5890
|
+
var result = toFinite(value),
|
|
6420
5891
|
remainder = result % 1;
|
|
6421
5892
|
|
|
6422
5893
|
return result === result ? (remainder ? result - remainder : result) : 0;
|
|
6423
5894
|
}
|
|
6424
5895
|
|
|
6425
|
-
var toInteger_1 = toInteger$4;
|
|
6426
|
-
|
|
6427
|
-
var baseFindIndex = _baseFindIndex,
|
|
6428
|
-
baseIteratee$2 = _baseIteratee,
|
|
6429
|
-
toInteger$3 = toInteger_1;
|
|
6430
|
-
|
|
6431
5896
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
6432
5897
|
var nativeMax$1 = Math.max;
|
|
6433
5898
|
|
|
@@ -6471,17 +5936,14 @@ function findIndex(array, predicate, fromIndex) {
|
|
|
6471
5936
|
if (!length) {
|
|
6472
5937
|
return -1;
|
|
6473
5938
|
}
|
|
6474
|
-
var index = fromIndex == null ? 0 : toInteger
|
|
5939
|
+
var index = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
6475
5940
|
if (index < 0) {
|
|
6476
5941
|
index = nativeMax$1(length + index, 0);
|
|
6477
5942
|
}
|
|
6478
|
-
return baseFindIndex(array, baseIteratee
|
|
5943
|
+
return baseFindIndex(array, baseIteratee(predicate), index);
|
|
6479
5944
|
}
|
|
6480
5945
|
|
|
6481
|
-
var findIndex_1 = findIndex;
|
|
6482
|
-
|
|
6483
5946
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
6484
|
-
|
|
6485
5947
|
var nativeCeil = Math.ceil,
|
|
6486
5948
|
nativeMax = Math.max;
|
|
6487
5949
|
|
|
@@ -6496,7 +5958,7 @@ var nativeCeil = Math.ceil,
|
|
|
6496
5958
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
6497
5959
|
* @returns {Array} Returns the range of numbers.
|
|
6498
5960
|
*/
|
|
6499
|
-
function baseRange
|
|
5961
|
+
function baseRange(start, end, step, fromRight) {
|
|
6500
5962
|
var index = -1,
|
|
6501
5963
|
length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
|
|
6502
5964
|
result = Array(length);
|
|
@@ -6508,13 +5970,6 @@ function baseRange$1(start, end, step, fromRight) {
|
|
|
6508
5970
|
return result;
|
|
6509
5971
|
}
|
|
6510
5972
|
|
|
6511
|
-
var _baseRange = baseRange$1;
|
|
6512
|
-
|
|
6513
|
-
var eq$1 = eq_1,
|
|
6514
|
-
isArrayLike$2 = isArrayLike_1,
|
|
6515
|
-
isIndex = _isIndex,
|
|
6516
|
-
isObject$1 = isObject_1;
|
|
6517
|
-
|
|
6518
5973
|
/**
|
|
6519
5974
|
* Checks if the given arguments are from an iteratee call.
|
|
6520
5975
|
*
|
|
@@ -6525,13 +5980,13 @@ var eq$1 = eq_1,
|
|
|
6525
5980
|
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
|
|
6526
5981
|
* else `false`.
|
|
6527
5982
|
*/
|
|
6528
|
-
function isIterateeCall
|
|
6529
|
-
if (!isObject
|
|
5983
|
+
function isIterateeCall(value, index, object) {
|
|
5984
|
+
if (!isObject(object)) {
|
|
6530
5985
|
return false;
|
|
6531
5986
|
}
|
|
6532
5987
|
var type = typeof index;
|
|
6533
5988
|
if (type == 'number'
|
|
6534
|
-
? (isArrayLike
|
|
5989
|
+
? (isArrayLike(object) && isIndex(index, object.length))
|
|
6535
5990
|
: (type == 'string' && index in object)
|
|
6536
5991
|
) {
|
|
6537
5992
|
return eq$1(object[index], value);
|
|
@@ -6539,12 +5994,6 @@ function isIterateeCall$3(value, index, object) {
|
|
|
6539
5994
|
return false;
|
|
6540
5995
|
}
|
|
6541
5996
|
|
|
6542
|
-
var _isIterateeCall = isIterateeCall$3;
|
|
6543
|
-
|
|
6544
|
-
var baseRange = _baseRange,
|
|
6545
|
-
isIterateeCall$2 = _isIterateeCall,
|
|
6546
|
-
toFinite = toFinite_1;
|
|
6547
|
-
|
|
6548
5997
|
/**
|
|
6549
5998
|
* Creates a `_.range` or `_.rangeRight` function.
|
|
6550
5999
|
*
|
|
@@ -6552,9 +6001,9 @@ var baseRange = _baseRange,
|
|
|
6552
6001
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
6553
6002
|
* @returns {Function} Returns the new range function.
|
|
6554
6003
|
*/
|
|
6555
|
-
function createRange
|
|
6004
|
+
function createRange(fromRight) {
|
|
6556
6005
|
return function(start, end, step) {
|
|
6557
|
-
if (step && typeof step != 'number' && isIterateeCall
|
|
6006
|
+
if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
|
|
6558
6007
|
end = step = undefined;
|
|
6559
6008
|
}
|
|
6560
6009
|
// Ensure the sign of `-0` is preserved.
|
|
@@ -6570,10 +6019,6 @@ function createRange$1(fromRight) {
|
|
|
6570
6019
|
};
|
|
6571
6020
|
}
|
|
6572
6021
|
|
|
6573
|
-
var _createRange = createRange$1;
|
|
6574
|
-
|
|
6575
|
-
var createRange = _createRange;
|
|
6576
|
-
|
|
6577
6022
|
/**
|
|
6578
6023
|
* Creates an array of numbers (positive and/or negative) progressing from
|
|
6579
6024
|
* `start` up to, but not including, `end`. A step of `-1` is used if a negative
|
|
@@ -6617,7 +6062,7 @@ var createRange = _createRange;
|
|
|
6617
6062
|
*/
|
|
6618
6063
|
var range = createRange();
|
|
6619
6064
|
|
|
6620
|
-
var
|
|
6065
|
+
var range$1 = range;
|
|
6621
6066
|
|
|
6622
6067
|
const appendToMap = (map, propName, value) => {
|
|
6623
6068
|
const items = map.get(propName);
|
|
@@ -6628,7 +6073,7 @@ const appendToMap = (map, propName, value) => {
|
|
|
6628
6073
|
items.push(value);
|
|
6629
6074
|
}
|
|
6630
6075
|
};
|
|
6631
|
-
const debounce
|
|
6076
|
+
const debounce = (fn, ms) => {
|
|
6632
6077
|
let timeoutId;
|
|
6633
6078
|
return (...args) => {
|
|
6634
6079
|
if (timeoutId) {
|
|
@@ -6651,7 +6096,7 @@ const debounce$1 = (fn, ms) => {
|
|
|
6651
6096
|
* Better leak in Edge than to be useless.
|
|
6652
6097
|
*/
|
|
6653
6098
|
const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
|
|
6654
|
-
const cleanupElements = debounce
|
|
6099
|
+
const cleanupElements = debounce((map) => {
|
|
6655
6100
|
for (let key of map.keys()) {
|
|
6656
6101
|
map.set(key, map.get(key).filter(isConnected));
|
|
6657
6102
|
}
|
|
@@ -6880,7 +6325,7 @@ class DataStore {
|
|
|
6880
6325
|
}
|
|
6881
6326
|
// clear items
|
|
6882
6327
|
this.store.set('items', []);
|
|
6883
|
-
const items =
|
|
6328
|
+
const items = range$1(0, (source === null || source === void 0 ? void 0 : source.length) || 0);
|
|
6884
6329
|
// set proxy first
|
|
6885
6330
|
setStore(this.store, {
|
|
6886
6331
|
source,
|
|
@@ -6962,7 +6407,7 @@ function setItems(store, items) {
|
|
|
6962
6407
|
function getSourceItemVirtualIndexByProp(store, prop) {
|
|
6963
6408
|
const items = store.get('items');
|
|
6964
6409
|
const source = store.get('source');
|
|
6965
|
-
const physicalIndex =
|
|
6410
|
+
const physicalIndex = findIndex(source, { prop });
|
|
6966
6411
|
return items.indexOf(physicalIndex);
|
|
6967
6412
|
}
|
|
6968
6413
|
|
|
@@ -6978,8 +6423,7 @@ function getSourceItemVirtualIndexByProp(store, prop) {
|
|
|
6978
6423
|
* the initial value.
|
|
6979
6424
|
* @returns {*} Returns the accumulated value.
|
|
6980
6425
|
*/
|
|
6981
|
-
|
|
6982
|
-
function arrayReduce$1(array, iteratee, accumulator, initAccum) {
|
|
6426
|
+
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
6983
6427
|
var index = -1,
|
|
6984
6428
|
length = array == null ? 0 : array.length;
|
|
6985
6429
|
|
|
@@ -6992,8 +6436,6 @@ function arrayReduce$1(array, iteratee, accumulator, initAccum) {
|
|
|
6992
6436
|
return accumulator;
|
|
6993
6437
|
}
|
|
6994
6438
|
|
|
6995
|
-
var _arrayReduce = arrayReduce$1;
|
|
6996
|
-
|
|
6997
6439
|
/**
|
|
6998
6440
|
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
6999
6441
|
*
|
|
@@ -7001,8 +6443,7 @@ var _arrayReduce = arrayReduce$1;
|
|
|
7001
6443
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
7002
6444
|
* @returns {Function} Returns the new base function.
|
|
7003
6445
|
*/
|
|
7004
|
-
|
|
7005
|
-
function createBaseFor$1(fromRight) {
|
|
6446
|
+
function createBaseFor(fromRight) {
|
|
7006
6447
|
return function(object, iteratee, keysFunc) {
|
|
7007
6448
|
var index = -1,
|
|
7008
6449
|
iterable = Object(object),
|
|
@@ -7019,10 +6460,6 @@ function createBaseFor$1(fromRight) {
|
|
|
7019
6460
|
};
|
|
7020
6461
|
}
|
|
7021
6462
|
|
|
7022
|
-
var _createBaseFor = createBaseFor$1;
|
|
7023
|
-
|
|
7024
|
-
var createBaseFor = _createBaseFor;
|
|
7025
|
-
|
|
7026
6463
|
/**
|
|
7027
6464
|
* The base implementation of `baseForOwn` which iterates over `object`
|
|
7028
6465
|
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
|
@@ -7034,12 +6471,9 @@ var createBaseFor = _createBaseFor;
|
|
|
7034
6471
|
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
7035
6472
|
* @returns {Object} Returns `object`.
|
|
7036
6473
|
*/
|
|
7037
|
-
var baseFor
|
|
7038
|
-
|
|
7039
|
-
var _baseFor = baseFor$1;
|
|
6474
|
+
var baseFor = createBaseFor();
|
|
7040
6475
|
|
|
7041
|
-
var baseFor =
|
|
7042
|
-
keys = keys_1;
|
|
6476
|
+
var baseFor$1 = baseFor;
|
|
7043
6477
|
|
|
7044
6478
|
/**
|
|
7045
6479
|
* The base implementation of `_.forOwn` without support for iteratee shorthands.
|
|
@@ -7049,14 +6483,10 @@ var baseFor = _baseFor,
|
|
|
7049
6483
|
* @param {Function} iteratee The function invoked per iteration.
|
|
7050
6484
|
* @returns {Object} Returns `object`.
|
|
7051
6485
|
*/
|
|
7052
|
-
function baseForOwn
|
|
7053
|
-
return object && baseFor(object, iteratee, keys);
|
|
6486
|
+
function baseForOwn(object, iteratee) {
|
|
6487
|
+
return object && baseFor$1(object, iteratee, keys);
|
|
7054
6488
|
}
|
|
7055
6489
|
|
|
7056
|
-
var _baseForOwn = baseForOwn$1;
|
|
7057
|
-
|
|
7058
|
-
var isArrayLike$1 = isArrayLike_1;
|
|
7059
|
-
|
|
7060
6490
|
/**
|
|
7061
6491
|
* Creates a `baseEach` or `baseEachRight` function.
|
|
7062
6492
|
*
|
|
@@ -7065,12 +6495,12 @@ var isArrayLike$1 = isArrayLike_1;
|
|
|
7065
6495
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
7066
6496
|
* @returns {Function} Returns the new base function.
|
|
7067
6497
|
*/
|
|
7068
|
-
function createBaseEach
|
|
6498
|
+
function createBaseEach(eachFunc, fromRight) {
|
|
7069
6499
|
return function(collection, iteratee) {
|
|
7070
6500
|
if (collection == null) {
|
|
7071
6501
|
return collection;
|
|
7072
6502
|
}
|
|
7073
|
-
if (!isArrayLike
|
|
6503
|
+
if (!isArrayLike(collection)) {
|
|
7074
6504
|
return eachFunc(collection, iteratee);
|
|
7075
6505
|
}
|
|
7076
6506
|
var length = collection.length,
|
|
@@ -7086,11 +6516,6 @@ function createBaseEach$1(eachFunc, fromRight) {
|
|
|
7086
6516
|
};
|
|
7087
6517
|
}
|
|
7088
6518
|
|
|
7089
|
-
var _createBaseEach = createBaseEach$1;
|
|
7090
|
-
|
|
7091
|
-
var baseForOwn = _baseForOwn,
|
|
7092
|
-
createBaseEach = _createBaseEach;
|
|
7093
|
-
|
|
7094
6519
|
/**
|
|
7095
6520
|
* The base implementation of `_.forEach` without support for iteratee shorthands.
|
|
7096
6521
|
*
|
|
@@ -7099,9 +6524,9 @@ var baseForOwn = _baseForOwn,
|
|
|
7099
6524
|
* @param {Function} iteratee The function invoked per iteration.
|
|
7100
6525
|
* @returns {Array|Object} Returns `collection`.
|
|
7101
6526
|
*/
|
|
7102
|
-
var baseEach
|
|
6527
|
+
var baseEach = createBaseEach(baseForOwn);
|
|
7103
6528
|
|
|
7104
|
-
var
|
|
6529
|
+
var baseEach$1 = baseEach;
|
|
7105
6530
|
|
|
7106
6531
|
/**
|
|
7107
6532
|
* The base implementation of `_.reduce` and `_.reduceRight`, without support
|
|
@@ -7116,8 +6541,7 @@ var _baseEach = baseEach$3;
|
|
|
7116
6541
|
* @param {Function} eachFunc The function to iterate over `collection`.
|
|
7117
6542
|
* @returns {*} Returns the accumulated value.
|
|
7118
6543
|
*/
|
|
7119
|
-
|
|
7120
|
-
function baseReduce$1(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
6544
|
+
function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
7121
6545
|
eachFunc(collection, function(value, index, collection) {
|
|
7122
6546
|
accumulator = initAccum
|
|
7123
6547
|
? (initAccum = false, value)
|
|
@@ -7126,14 +6550,6 @@ function baseReduce$1(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
|
7126
6550
|
return accumulator;
|
|
7127
6551
|
}
|
|
7128
6552
|
|
|
7129
|
-
var _baseReduce = baseReduce$1;
|
|
7130
|
-
|
|
7131
|
-
var arrayReduce = _arrayReduce,
|
|
7132
|
-
baseEach$2 = _baseEach,
|
|
7133
|
-
baseIteratee$1 = _baseIteratee,
|
|
7134
|
-
baseReduce = _baseReduce,
|
|
7135
|
-
isArray$3 = isArray_1;
|
|
7136
|
-
|
|
7137
6553
|
/**
|
|
7138
6554
|
* Reduces `collection` to a value which is the accumulated result of running
|
|
7139
6555
|
* each element in `collection` thru `iteratee`, where each successive
|
|
@@ -7172,14 +6588,12 @@ var arrayReduce = _arrayReduce,
|
|
|
7172
6588
|
* // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
|
|
7173
6589
|
*/
|
|
7174
6590
|
function reduce(collection, iteratee, accumulator) {
|
|
7175
|
-
var func = isArray$
|
|
6591
|
+
var func = isArray$1(collection) ? arrayReduce : baseReduce,
|
|
7176
6592
|
initAccum = arguments.length < 3;
|
|
7177
6593
|
|
|
7178
|
-
return func(collection, baseIteratee
|
|
6594
|
+
return func(collection, baseIteratee(iteratee), accumulator, initAccum, baseEach$1);
|
|
7179
6595
|
}
|
|
7180
6596
|
|
|
7181
|
-
var reduce_1 = reduce;
|
|
7182
|
-
|
|
7183
6597
|
/**
|
|
7184
6598
|
* A specialized version of `_.forEach` for arrays without support for
|
|
7185
6599
|
* iteratee shorthands.
|
|
@@ -7189,8 +6603,7 @@ var reduce_1 = reduce;
|
|
|
7189
6603
|
* @param {Function} iteratee The function invoked per iteration.
|
|
7190
6604
|
* @returns {Array} Returns `array`.
|
|
7191
6605
|
*/
|
|
7192
|
-
|
|
7193
|
-
function arrayEach$1(array, iteratee) {
|
|
6606
|
+
function arrayEach(array, iteratee) {
|
|
7194
6607
|
var index = -1,
|
|
7195
6608
|
length = array == null ? 0 : array.length;
|
|
7196
6609
|
|
|
@@ -7202,10 +6615,6 @@ function arrayEach$1(array, iteratee) {
|
|
|
7202
6615
|
return array;
|
|
7203
6616
|
}
|
|
7204
6617
|
|
|
7205
|
-
var _arrayEach = arrayEach$1;
|
|
7206
|
-
|
|
7207
|
-
var identity$1 = identity_1;
|
|
7208
|
-
|
|
7209
6618
|
/**
|
|
7210
6619
|
* Casts `value` to `identity` if it's not a function.
|
|
7211
6620
|
*
|
|
@@ -7213,17 +6622,10 @@ var identity$1 = identity_1;
|
|
|
7213
6622
|
* @param {*} value The value to inspect.
|
|
7214
6623
|
* @returns {Function} Returns cast function.
|
|
7215
6624
|
*/
|
|
7216
|
-
function castFunction
|
|
7217
|
-
return typeof value == 'function' ? value : identity
|
|
6625
|
+
function castFunction(value) {
|
|
6626
|
+
return typeof value == 'function' ? value : identity;
|
|
7218
6627
|
}
|
|
7219
6628
|
|
|
7220
|
-
var _castFunction = castFunction$1;
|
|
7221
|
-
|
|
7222
|
-
var arrayEach = _arrayEach,
|
|
7223
|
-
baseEach$1 = _baseEach,
|
|
7224
|
-
castFunction = _castFunction,
|
|
7225
|
-
isArray$2 = isArray_1;
|
|
7226
|
-
|
|
7227
6629
|
/**
|
|
7228
6630
|
* Iterates over elements of `collection` and invokes `iteratee` for each element.
|
|
7229
6631
|
* The iteratee is invoked with three arguments: (value, index|key, collection).
|
|
@@ -7255,16 +6657,10 @@ var arrayEach = _arrayEach,
|
|
|
7255
6657
|
* // => Logs 'a' then 'b' (iteration order is not guaranteed).
|
|
7256
6658
|
*/
|
|
7257
6659
|
function forEach(collection, iteratee) {
|
|
7258
|
-
var func = isArray$
|
|
6660
|
+
var func = isArray$1(collection) ? arrayEach : baseEach$1;
|
|
7259
6661
|
return func(collection, castFunction(iteratee));
|
|
7260
6662
|
}
|
|
7261
6663
|
|
|
7262
|
-
var forEach_1 = forEach;
|
|
7263
|
-
|
|
7264
|
-
var each = forEach_1;
|
|
7265
|
-
|
|
7266
|
-
var isSymbol$1 = isSymbol_1;
|
|
7267
|
-
|
|
7268
6664
|
/** Used as references for the maximum length and index of an array. */
|
|
7269
6665
|
var MAX_ARRAY_LENGTH$2 = 4294967295,
|
|
7270
6666
|
MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH$2 - 1;
|
|
@@ -7286,7 +6682,7 @@ var nativeFloor = Math.floor,
|
|
|
7286
6682
|
* @returns {number} Returns the index at which `value` should be inserted
|
|
7287
6683
|
* into `array`.
|
|
7288
6684
|
*/
|
|
7289
|
-
function baseSortedIndexBy
|
|
6685
|
+
function baseSortedIndexBy(array, value, iteratee, retHighest) {
|
|
7290
6686
|
var low = 0,
|
|
7291
6687
|
high = array == null ? 0 : array.length;
|
|
7292
6688
|
if (high === 0) {
|
|
@@ -7296,7 +6692,7 @@ function baseSortedIndexBy$1(array, value, iteratee, retHighest) {
|
|
|
7296
6692
|
value = iteratee(value);
|
|
7297
6693
|
var valIsNaN = value !== value,
|
|
7298
6694
|
valIsNull = value === null,
|
|
7299
|
-
valIsSymbol = isSymbol
|
|
6695
|
+
valIsSymbol = isSymbol(value),
|
|
7300
6696
|
valIsUndefined = value === undefined;
|
|
7301
6697
|
|
|
7302
6698
|
while (low < high) {
|
|
@@ -7305,7 +6701,7 @@ function baseSortedIndexBy$1(array, value, iteratee, retHighest) {
|
|
|
7305
6701
|
othIsDefined = computed !== undefined,
|
|
7306
6702
|
othIsNull = computed === null,
|
|
7307
6703
|
othIsReflexive = computed === computed,
|
|
7308
|
-
othIsSymbol = isSymbol
|
|
6704
|
+
othIsSymbol = isSymbol(computed);
|
|
7309
6705
|
|
|
7310
6706
|
if (valIsNaN) {
|
|
7311
6707
|
var setLow = retHighest || othIsReflexive;
|
|
@@ -7329,12 +6725,6 @@ function baseSortedIndexBy$1(array, value, iteratee, retHighest) {
|
|
|
7329
6725
|
return nativeMin(high, MAX_ARRAY_INDEX);
|
|
7330
6726
|
}
|
|
7331
6727
|
|
|
7332
|
-
var _baseSortedIndexBy = baseSortedIndexBy$1;
|
|
7333
|
-
|
|
7334
|
-
var baseSortedIndexBy = _baseSortedIndexBy,
|
|
7335
|
-
identity = identity_1,
|
|
7336
|
-
isSymbol = isSymbol_1;
|
|
7337
|
-
|
|
7338
6728
|
/** Used as references for the maximum length and index of an array. */
|
|
7339
6729
|
var MAX_ARRAY_LENGTH$1 = 4294967295,
|
|
7340
6730
|
HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH$1 >>> 1;
|
|
@@ -7351,7 +6741,7 @@ var MAX_ARRAY_LENGTH$1 = 4294967295,
|
|
|
7351
6741
|
* @returns {number} Returns the index at which `value` should be inserted
|
|
7352
6742
|
* into `array`.
|
|
7353
6743
|
*/
|
|
7354
|
-
function baseSortedIndex
|
|
6744
|
+
function baseSortedIndex(array, value, retHighest) {
|
|
7355
6745
|
var low = 0,
|
|
7356
6746
|
high = array == null ? low : array.length;
|
|
7357
6747
|
|
|
@@ -7372,10 +6762,6 @@ function baseSortedIndex$1(array, value, retHighest) {
|
|
|
7372
6762
|
return baseSortedIndexBy(array, value, identity, retHighest);
|
|
7373
6763
|
}
|
|
7374
6764
|
|
|
7375
|
-
var _baseSortedIndex = baseSortedIndex$1;
|
|
7376
|
-
|
|
7377
|
-
var baseSortedIndex = _baseSortedIndex;
|
|
7378
|
-
|
|
7379
6765
|
/**
|
|
7380
6766
|
* Uses a binary search to determine the lowest index at which `value`
|
|
7381
6767
|
* should be inserted into `array` in order to maintain its sort order.
|
|
@@ -7397,8 +6783,6 @@ function sortedIndex(array, value) {
|
|
|
7397
6783
|
return baseSortedIndex(array, value);
|
|
7398
6784
|
}
|
|
7399
6785
|
|
|
7400
|
-
var sortedIndex_1 = sortedIndex;
|
|
7401
|
-
|
|
7402
6786
|
/**
|
|
7403
6787
|
* Pre-calculation
|
|
7404
6788
|
* Dimension custom sizes for each cell
|
|
@@ -7412,12 +6796,12 @@ function calculateDimensionData(originItemSize, newSizes = {}) {
|
|
|
7412
6796
|
const sizes = Object.assign({}, newSizes);
|
|
7413
6797
|
// prepare order sorted new sizes and calculate changed real size
|
|
7414
6798
|
let newIndexes = [];
|
|
7415
|
-
|
|
6799
|
+
forEach(newSizes, (_, i) => {
|
|
7416
6800
|
const index = parseInt(i, 10);
|
|
7417
|
-
newIndexes[
|
|
6801
|
+
newIndexes[sortedIndex(newIndexes, index)] = index;
|
|
7418
6802
|
});
|
|
7419
6803
|
// fill new coordinates based on what is changed
|
|
7420
|
-
|
|
6804
|
+
reduce(newIndexes, (previous, itemIndex, i) => {
|
|
7421
6805
|
const newItem = {
|
|
7422
6806
|
itemIndex,
|
|
7423
6807
|
start: 0,
|
|
@@ -7453,7 +6837,7 @@ const getItemByPosition = ({ indexes, positionIndexes, originItemSize, positionI
|
|
|
7453
6837
|
start: 0,
|
|
7454
6838
|
end: 0,
|
|
7455
6839
|
};
|
|
7456
|
-
const currentPlace = indexes.length ?
|
|
6840
|
+
const currentPlace = indexes.length ? sortedIndex(positionIndexes, pos) : 0;
|
|
7457
6841
|
// not found or first index
|
|
7458
6842
|
if (!currentPlace) {
|
|
7459
6843
|
item.itemIndex = Math.floor(pos / originItemSize);
|
|
@@ -7485,7 +6869,7 @@ function getItemByIndex(dimension, index) {
|
|
|
7485
6869
|
return dimension.indexToItem[index];
|
|
7486
6870
|
}
|
|
7487
6871
|
const currentPlace = dimension.indexes.length
|
|
7488
|
-
?
|
|
6872
|
+
? sortedIndex(dimension.indexes, index)
|
|
7489
6873
|
: 0;
|
|
7490
6874
|
// not found or first index
|
|
7491
6875
|
if (!currentPlace) {
|
|
@@ -7533,20 +6917,32 @@ const trimmedPlugin = (store) => {
|
|
|
7533
6917
|
},
|
|
7534
6918
|
};
|
|
7535
6919
|
};
|
|
7536
|
-
|
|
6920
|
+
/**
|
|
6921
|
+
* Plugin which recalculates realSize on changes of sizes, originItemSize and count
|
|
6922
|
+
*/
|
|
6923
|
+
const recalculateRealSizePlugin = (storeService) => {
|
|
6924
|
+
/**
|
|
6925
|
+
* Recalculates realSize if size, origin size or count changes
|
|
6926
|
+
*/
|
|
7537
6927
|
return {
|
|
6928
|
+
/**
|
|
6929
|
+
* Reacts on changes of count, sizes and originItemSize
|
|
6930
|
+
*/
|
|
7538
6931
|
set(k) {
|
|
7539
6932
|
switch (k) {
|
|
7540
6933
|
case 'count':
|
|
7541
6934
|
case 'sizes':
|
|
7542
6935
|
case 'originItemSize':
|
|
6936
|
+
// recalculate realSize
|
|
7543
6937
|
let realSize = 0;
|
|
7544
|
-
const count =
|
|
6938
|
+
const count = storeService.store.get('count');
|
|
7545
6939
|
for (let i = 0; i < count; i++) {
|
|
7546
6940
|
realSize +=
|
|
7547
|
-
|
|
6941
|
+
storeService.store.get('sizes')[i] ||
|
|
6942
|
+
storeService.store.get('originItemSize');
|
|
7548
6943
|
}
|
|
7549
|
-
|
|
6944
|
+
storeService.setStore({ realSize });
|
|
6945
|
+
break;
|
|
7550
6946
|
}
|
|
7551
6947
|
},
|
|
7552
6948
|
};
|
|
@@ -7576,15 +6972,16 @@ function initialState$1() {
|
|
|
7576
6972
|
originItemSize: 0 });
|
|
7577
6973
|
}
|
|
7578
6974
|
class DimensionStore {
|
|
7579
|
-
constructor() {
|
|
6975
|
+
constructor(type) {
|
|
6976
|
+
this.type = type;
|
|
7580
6977
|
this.store = createStore(initialState$1());
|
|
7581
6978
|
this.store.use(trimmedPlugin(this));
|
|
7582
|
-
this.store.use(
|
|
6979
|
+
this.store.use(recalculateRealSizePlugin(this));
|
|
7583
6980
|
}
|
|
7584
6981
|
getCurrentState() {
|
|
7585
6982
|
const state = initialState$1();
|
|
7586
6983
|
const keys = Object.keys(state);
|
|
7587
|
-
return
|
|
6984
|
+
return reduce(keys, (r, k) => {
|
|
7588
6985
|
const data = this.store.get(k);
|
|
7589
6986
|
r[k] = data;
|
|
7590
6987
|
return r;
|
|
@@ -8321,10 +7718,6 @@ class ViewportStore {
|
|
|
8321
7718
|
// last coordinate for store position restore
|
|
8322
7719
|
this.lastKnownScroll = 0;
|
|
8323
7720
|
this.store = createStore(initialState());
|
|
8324
|
-
// drop items on real size change, require a new item set
|
|
8325
|
-
this.store.onChange('realCount', () => this.clearItems());
|
|
8326
|
-
// drop items on virtual size change, require a new item set
|
|
8327
|
-
this.store.onChange('virtualSize', () => this.clearItems());
|
|
8328
7721
|
}
|
|
8329
7722
|
/**
|
|
8330
7723
|
* Render viewport based on coordinate
|
|
@@ -8426,11 +7819,13 @@ class ViewportStore {
|
|
|
8426
7819
|
};
|
|
8427
7820
|
}
|
|
8428
7821
|
setViewport(data) {
|
|
7822
|
+
// drop items on virtual size change, require a new item set
|
|
7823
|
+
// drop items on real size change, require a new item set
|
|
7824
|
+
if (typeof data.realCount === 'number' || typeof data.virtualSize === 'number') {
|
|
7825
|
+
data = Object.assign(Object.assign({}, data), { items: data.items || [] });
|
|
7826
|
+
}
|
|
8429
7827
|
setStore(this.store, data);
|
|
8430
7828
|
}
|
|
8431
|
-
clearItems() {
|
|
8432
|
-
this.store.set('items', []);
|
|
8433
|
-
}
|
|
8434
7829
|
}
|
|
8435
7830
|
|
|
8436
7831
|
const rowTypes = ['rowPinStart', 'rgRow', 'rowPinEnd'];
|
|
@@ -8546,7 +7941,7 @@ class OrderEditor {
|
|
|
8546
7941
|
this.rowMouseMove = createEvent(this, "rowdragmousemove", 7);
|
|
8547
7942
|
this.rowDropped = createEvent(this, "rowdropinit", 7);
|
|
8548
7943
|
this.events = [];
|
|
8549
|
-
this.rowMoveFunc =
|
|
7944
|
+
this.rowMoveFunc = debounce$1((y) => {
|
|
8550
7945
|
const rgRow = this.rowOrderService.move(y, this.getData());
|
|
8551
7946
|
if (rgRow !== null) {
|
|
8552
7947
|
this.rowDrag.emit(rgRow);
|
|
@@ -8705,7 +8100,7 @@ function getColumns(columns, level = 0, types) {
|
|
|
8705
8100
|
// sorting
|
|
8706
8101
|
sort: {},
|
|
8707
8102
|
};
|
|
8708
|
-
return
|
|
8103
|
+
return reduce(columns, (res, colData) => {
|
|
8709
8104
|
// Grouped column
|
|
8710
8105
|
if (isColGrouping(colData)) {
|
|
8711
8106
|
return gatherGroup(res, colData, getColumns(colData.children, level + 1, types), level);
|
|
@@ -8742,7 +8137,7 @@ function gatherGroup(res, colData, collection, level = 0) {
|
|
|
8742
8137
|
const resultItem = res.columns[key];
|
|
8743
8138
|
const collectionItem = collection.columns[key];
|
|
8744
8139
|
// if column data
|
|
8745
|
-
if (
|
|
8140
|
+
if (isArray$1(resultItem) && isArray$1(collectionItem)) {
|
|
8746
8141
|
// fill columns
|
|
8747
8142
|
resultItem.push(...collectionItem);
|
|
8748
8143
|
// fill grouping
|
|
@@ -9079,8 +8474,7 @@ function isSameGroup(currentGroup, currentModel, nextModel) {
|
|
|
9079
8474
|
* @param {number} [end=array.length] The end position.
|
|
9080
8475
|
* @returns {Array} Returns the slice of `array`.
|
|
9081
8476
|
*/
|
|
9082
|
-
|
|
9083
|
-
function baseSlice$1(array, start, end) {
|
|
8477
|
+
function baseSlice(array, start, end) {
|
|
9084
8478
|
var index = -1,
|
|
9085
8479
|
length = array.length;
|
|
9086
8480
|
|
|
@@ -9101,12 +8495,6 @@ function baseSlice$1(array, start, end) {
|
|
|
9101
8495
|
return result;
|
|
9102
8496
|
}
|
|
9103
8497
|
|
|
9104
|
-
var _baseSlice = baseSlice$1;
|
|
9105
|
-
|
|
9106
|
-
var baseSlice = _baseSlice,
|
|
9107
|
-
isIterateeCall$1 = _isIterateeCall,
|
|
9108
|
-
toInteger$2 = toInteger_1;
|
|
9109
|
-
|
|
9110
8498
|
/**
|
|
9111
8499
|
* Creates a slice of `array` from `start` up to, but not including, `end`.
|
|
9112
8500
|
*
|
|
@@ -9128,19 +8516,17 @@ function slice(array, start, end) {
|
|
|
9128
8516
|
if (!length) {
|
|
9129
8517
|
return [];
|
|
9130
8518
|
}
|
|
9131
|
-
if (end && typeof end != 'number' && isIterateeCall
|
|
8519
|
+
if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
|
|
9132
8520
|
start = 0;
|
|
9133
8521
|
end = length;
|
|
9134
8522
|
}
|
|
9135
8523
|
else {
|
|
9136
|
-
start = start == null ? 0 : toInteger
|
|
9137
|
-
end = end === undefined ? length : toInteger
|
|
8524
|
+
start = start == null ? 0 : toInteger(start);
|
|
8525
|
+
end = end === undefined ? length : toInteger(end);
|
|
9138
8526
|
}
|
|
9139
8527
|
return baseSlice(array, start, end);
|
|
9140
8528
|
}
|
|
9141
8529
|
|
|
9142
|
-
var slice_1 = slice;
|
|
9143
|
-
|
|
9144
8530
|
class ColumnService {
|
|
9145
8531
|
get columns() {
|
|
9146
8532
|
return getVisibleSourceItem(this.source);
|
|
@@ -9375,7 +8761,7 @@ class ColumnService {
|
|
|
9375
8761
|
}
|
|
9376
8762
|
copyRangeArray(range, store) {
|
|
9377
8763
|
const cols = [...this.columns];
|
|
9378
|
-
const props =
|
|
8764
|
+
const props = slice(cols, range.x, range.x1 + 1).map(v => v.prop);
|
|
9379
8765
|
const toCopy = [];
|
|
9380
8766
|
const mapping = {};
|
|
9381
8767
|
// rows indexes
|
|
@@ -9813,7 +9199,7 @@ class AutoFillService {
|
|
|
9813
9199
|
selectionMouseMove(e) {
|
|
9814
9200
|
// initiate mouse move debounce if not present
|
|
9815
9201
|
if (!this.onMouseMoveAutofill) {
|
|
9816
|
-
this.onMouseMoveAutofill =
|
|
9202
|
+
this.onMouseMoveAutofill = debounce$1((e, data) => this.doAutofillMouseMove(e, data), 5);
|
|
9817
9203
|
}
|
|
9818
9204
|
if (this.isAutoFill) {
|
|
9819
9205
|
this.onMouseMoveAutofill(e, this.sv.getData());
|
|
@@ -10756,7 +10142,7 @@ class ColumnDataProvider {
|
|
|
10756
10142
|
return getSourceItem(this.dataSources[type].store, virtualIndex);
|
|
10757
10143
|
}
|
|
10758
10144
|
getRawColumns() {
|
|
10759
|
-
return
|
|
10145
|
+
return reduce(this.dataSources, (result, item, type) => {
|
|
10760
10146
|
result[type] = item.store.get('source');
|
|
10761
10147
|
return result;
|
|
10762
10148
|
}, {
|
|
@@ -10857,14 +10243,14 @@ class ColumnDataProvider {
|
|
|
10857
10243
|
return column;
|
|
10858
10244
|
}
|
|
10859
10245
|
clearSorting() {
|
|
10860
|
-
const types =
|
|
10246
|
+
const types = reduce(this.sorting, (r, c) => {
|
|
10861
10247
|
const k = getColumnType(c);
|
|
10862
10248
|
r[k] = true;
|
|
10863
10249
|
return r;
|
|
10864
10250
|
}, {});
|
|
10865
|
-
|
|
10251
|
+
forEach(types, (_, type) => {
|
|
10866
10252
|
const cols = this.dataSources[type].store.get('source');
|
|
10867
|
-
|
|
10253
|
+
forEach(cols, (c) => (c.order = undefined));
|
|
10868
10254
|
this.dataSources[type].setData({ source: [...cols] });
|
|
10869
10255
|
});
|
|
10870
10256
|
this.sorting = {};
|
|
@@ -10877,7 +10263,7 @@ class ColumnDataProvider {
|
|
|
10877
10263
|
class DataProvider {
|
|
10878
10264
|
constructor(dimensionProvider) {
|
|
10879
10265
|
this.dimensionProvider = dimensionProvider;
|
|
10880
|
-
this.stores =
|
|
10266
|
+
this.stores = reduce(rowTypes, (sources, k) => {
|
|
10881
10267
|
sources[k] = new DataStore(k);
|
|
10882
10268
|
return sources;
|
|
10883
10269
|
}, {});
|
|
@@ -10944,10 +10330,10 @@ class DataProvider {
|
|
|
10944
10330
|
class DimensionProvider {
|
|
10945
10331
|
constructor(viewports, config) {
|
|
10946
10332
|
this.viewports = viewports;
|
|
10947
|
-
const sizeChanged =
|
|
10948
|
-
this.stores =
|
|
10949
|
-
sources[
|
|
10950
|
-
sources[
|
|
10333
|
+
const sizeChanged = debounce$1((k) => config.realSizeChanged(k), RESIZE_INTERVAL);
|
|
10334
|
+
this.stores = reduce([...rowTypes, ...columnTypes], (sources, t) => {
|
|
10335
|
+
sources[t] = new DimensionStore(t);
|
|
10336
|
+
sources[t].store.onChange('realSize', () => sizeChanged(t));
|
|
10951
10337
|
return sources;
|
|
10952
10338
|
}, {});
|
|
10953
10339
|
}
|
|
@@ -11029,6 +10415,7 @@ class DimensionProvider {
|
|
|
11029
10415
|
if (noVirtual) {
|
|
11030
10416
|
vpUpdate.virtualSize = this.stores[type].getCurrentState().realSize;
|
|
11031
10417
|
}
|
|
10418
|
+
// if virtualSize present this would trigger viewport clear
|
|
11032
10419
|
this.viewports.stores[type].setViewport(vpUpdate);
|
|
11033
10420
|
this.setViewPortCoordinate({
|
|
11034
10421
|
coordinate: this.viewports.stores[type].lastCoordinate,
|
|
@@ -11082,7 +10469,7 @@ class DimensionProvider {
|
|
|
11082
10469
|
|
|
11083
10470
|
class ViewportProvider {
|
|
11084
10471
|
constructor() {
|
|
11085
|
-
this.stores =
|
|
10472
|
+
this.stores = reduce([...rowTypes, ...columnTypes], (sources, k) => {
|
|
11086
10473
|
sources[k] = new ViewportStore(k);
|
|
11087
10474
|
return sources;
|
|
11088
10475
|
}, {});
|
|
@@ -11328,9 +10715,9 @@ class AutoSizeColumnPlugin extends BasePlugin {
|
|
|
11328
10715
|
}
|
|
11329
10716
|
}
|
|
11330
10717
|
// calculate sizes
|
|
11331
|
-
|
|
10718
|
+
forEach(autoSize, (_v, type) => {
|
|
11332
10719
|
const sizes = {};
|
|
11333
|
-
|
|
10720
|
+
forEach(autoSize[type], rgCol => {
|
|
11334
10721
|
// calculate size
|
|
11335
10722
|
rgCol.size = sizes[rgCol.index] = source.reduce((prev, rgRow) => Math.max(prev, this.getLength(rgRow[rgCol.prop])), this.getLength(rgCol.name || ''));
|
|
11336
10723
|
});
|
|
@@ -11364,12 +10751,12 @@ class AutoSizeColumnPlugin extends BasePlugin {
|
|
|
11364
10751
|
else {
|
|
11365
10752
|
data = { 0: { [e.prop]: e.val } };
|
|
11366
10753
|
}
|
|
11367
|
-
|
|
10754
|
+
forEach(this.autoSizeColumns, (columns, type) => {
|
|
11368
10755
|
const sizes = {};
|
|
11369
|
-
|
|
10756
|
+
forEach(columns, rgCol => {
|
|
11370
10757
|
var _a;
|
|
11371
10758
|
// calculate size
|
|
11372
|
-
const size =
|
|
10759
|
+
const size = reduce(data, (prev, rgRow) => {
|
|
11373
10760
|
if (typeof rgRow[rgCol.prop] === 'undefined') {
|
|
11374
10761
|
return prev;
|
|
11375
10762
|
}
|
|
@@ -11385,14 +10772,14 @@ class AutoSizeColumnPlugin extends BasePlugin {
|
|
|
11385
10772
|
afterEditAll(e) {
|
|
11386
10773
|
const props = {};
|
|
11387
10774
|
if (this.isRangeEdit(e)) {
|
|
11388
|
-
|
|
10775
|
+
forEach(e.data, r => forEach(r, (_v, p) => (props[p] = true)));
|
|
11389
10776
|
}
|
|
11390
10777
|
else {
|
|
11391
10778
|
props[e.prop] = true;
|
|
11392
10779
|
}
|
|
11393
|
-
|
|
10780
|
+
forEach(this.autoSizeColumns, (columns, type) => {
|
|
11394
10781
|
const sizes = {};
|
|
11395
|
-
|
|
10782
|
+
forEach(columns, rgCol => {
|
|
11396
10783
|
if (props[rgCol.prop]) {
|
|
11397
10784
|
const size = this.getColumnSize(rgCol.index, type);
|
|
11398
10785
|
if (size) {
|
|
@@ -11409,8 +10796,8 @@ class AutoSizeColumnPlugin extends BasePlugin {
|
|
|
11409
10796
|
if (!rgCol) {
|
|
11410
10797
|
return 0;
|
|
11411
10798
|
}
|
|
11412
|
-
return
|
|
11413
|
-
const perStore =
|
|
10799
|
+
return reduce(this.providers.data.stores, (r, s) => {
|
|
10800
|
+
const perStore = reduce(s.store.get('items'), (prev, _row, i) => {
|
|
11414
10801
|
const item = getSourceItem(s.store, i);
|
|
11415
10802
|
return Math.max(prev || 0, this.getLength(item === null || item === void 0 ? void 0 : item[rgCol.prop]));
|
|
11416
10803
|
}, 0);
|
|
@@ -11706,7 +11093,7 @@ class FilterPlugin extends BasePlugin {
|
|
|
11706
11093
|
}
|
|
11707
11094
|
}
|
|
11708
11095
|
if (config.collection) {
|
|
11709
|
-
this.filterCollection =
|
|
11096
|
+
this.filterCollection = reduce(config.collection, (result, item, prop) => {
|
|
11710
11097
|
if (this.filterFunctionsIndexedByType[item.type]) {
|
|
11711
11098
|
result[prop] = item;
|
|
11712
11099
|
}
|
|
@@ -11934,10 +11321,6 @@ class FilterPlugin extends BasePlugin {
|
|
|
11934
11321
|
}
|
|
11935
11322
|
}
|
|
11936
11323
|
|
|
11937
|
-
var baseGetTag = _baseGetTag,
|
|
11938
|
-
isArray$1 = isArray_1,
|
|
11939
|
-
isObjectLike = isObjectLike_1;
|
|
11940
|
-
|
|
11941
11324
|
/** `Object#toString` result references. */
|
|
11942
11325
|
var stringTag = '[object String]';
|
|
11943
11326
|
|
|
@@ -11958,15 +11341,11 @@ var stringTag = '[object String]';
|
|
|
11958
11341
|
* _.isString(1);
|
|
11959
11342
|
* // => false
|
|
11960
11343
|
*/
|
|
11961
|
-
function isString
|
|
11344
|
+
function isString(value) {
|
|
11962
11345
|
return typeof value == 'string' ||
|
|
11963
11346
|
(!isArray$1(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
|
|
11964
11347
|
}
|
|
11965
11348
|
|
|
11966
|
-
var isString_1 = isString$1;
|
|
11967
|
-
|
|
11968
|
-
var baseProperty = _baseProperty;
|
|
11969
|
-
|
|
11970
11349
|
/**
|
|
11971
11350
|
* Gets the size of an ASCII `string`.
|
|
11972
11351
|
*
|
|
@@ -11974,12 +11353,11 @@ var baseProperty = _baseProperty;
|
|
|
11974
11353
|
* @param {string} string The string inspect.
|
|
11975
11354
|
* @returns {number} Returns the string size.
|
|
11976
11355
|
*/
|
|
11977
|
-
var asciiSize
|
|
11356
|
+
var asciiSize = baseProperty('length');
|
|
11978
11357
|
|
|
11979
|
-
var
|
|
11358
|
+
var asciiSize$1 = asciiSize;
|
|
11980
11359
|
|
|
11981
11360
|
/** Used to compose unicode character classes. */
|
|
11982
|
-
|
|
11983
11361
|
var rsAstralRange$1 = '\\ud800-\\udfff',
|
|
11984
11362
|
rsComboMarksRange$1 = '\\u0300-\\u036f',
|
|
11985
11363
|
reComboHalfMarksRange$1 = '\\ufe20-\\ufe2f',
|
|
@@ -12000,14 +11378,11 @@ var reHasUnicode = RegExp('[' + rsZWJ$1 + rsAstralRange$1 + rsComboRange$1 + rs
|
|
|
12000
11378
|
* @param {string} string The string to inspect.
|
|
12001
11379
|
* @returns {boolean} Returns `true` if a symbol is found, else `false`.
|
|
12002
11380
|
*/
|
|
12003
|
-
function hasUnicode
|
|
11381
|
+
function hasUnicode(string) {
|
|
12004
11382
|
return reHasUnicode.test(string);
|
|
12005
11383
|
}
|
|
12006
11384
|
|
|
12007
|
-
var _hasUnicode = hasUnicode$1;
|
|
12008
|
-
|
|
12009
11385
|
/** Used to compose unicode character classes. */
|
|
12010
|
-
|
|
12011
11386
|
var rsAstralRange = '\\ud800-\\udfff',
|
|
12012
11387
|
rsComboMarksRange = '\\u0300-\\u036f',
|
|
12013
11388
|
reComboHalfMarksRange = '\\ufe20-\\ufe2f',
|
|
@@ -12042,7 +11417,7 @@ var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
|
|
|
12042
11417
|
* @param {string} string The string inspect.
|
|
12043
11418
|
* @returns {number} Returns the string size.
|
|
12044
11419
|
*/
|
|
12045
|
-
function unicodeSize
|
|
11420
|
+
function unicodeSize(string) {
|
|
12046
11421
|
var result = reUnicode.lastIndex = 0;
|
|
12047
11422
|
while (reUnicode.test(string)) {
|
|
12048
11423
|
++result;
|
|
@@ -12050,12 +11425,6 @@ function unicodeSize$1(string) {
|
|
|
12050
11425
|
return result;
|
|
12051
11426
|
}
|
|
12052
11427
|
|
|
12053
|
-
var _unicodeSize = unicodeSize$1;
|
|
12054
|
-
|
|
12055
|
-
var asciiSize = _asciiSize,
|
|
12056
|
-
hasUnicode = _hasUnicode,
|
|
12057
|
-
unicodeSize = _unicodeSize;
|
|
12058
|
-
|
|
12059
11428
|
/**
|
|
12060
11429
|
* Gets the number of symbols in `string`.
|
|
12061
11430
|
*
|
|
@@ -12063,20 +11432,12 @@ var asciiSize = _asciiSize,
|
|
|
12063
11432
|
* @param {string} string The string to inspect.
|
|
12064
11433
|
* @returns {number} Returns the string size.
|
|
12065
11434
|
*/
|
|
12066
|
-
function stringSize
|
|
11435
|
+
function stringSize(string) {
|
|
12067
11436
|
return hasUnicode(string)
|
|
12068
11437
|
? unicodeSize(string)
|
|
12069
|
-
: asciiSize(string);
|
|
11438
|
+
: asciiSize$1(string);
|
|
12070
11439
|
}
|
|
12071
11440
|
|
|
12072
|
-
var _stringSize = stringSize$1;
|
|
12073
|
-
|
|
12074
|
-
var baseKeys = _baseKeys,
|
|
12075
|
-
getTag = _getTag,
|
|
12076
|
-
isArrayLike = isArrayLike_1,
|
|
12077
|
-
isString = isString_1,
|
|
12078
|
-
stringSize = _stringSize;
|
|
12079
|
-
|
|
12080
11441
|
/** `Object#toString` result references. */
|
|
12081
11442
|
var mapTag = '[object Map]',
|
|
12082
11443
|
setTag = '[object Set]';
|
|
@@ -12109,15 +11470,13 @@ function size$1(collection) {
|
|
|
12109
11470
|
if (isArrayLike(collection)) {
|
|
12110
11471
|
return isString(collection) ? stringSize(collection) : collection.length;
|
|
12111
11472
|
}
|
|
12112
|
-
var tag = getTag(collection);
|
|
11473
|
+
var tag = getTag$1(collection);
|
|
12113
11474
|
if (tag == mapTag || tag == setTag) {
|
|
12114
11475
|
return collection.size;
|
|
12115
11476
|
}
|
|
12116
11477
|
return baseKeys(collection).length;
|
|
12117
11478
|
}
|
|
12118
11479
|
|
|
12119
|
-
var size_1 = size$1;
|
|
12120
|
-
|
|
12121
11480
|
/**
|
|
12122
11481
|
* Lifecycle
|
|
12123
11482
|
* 1. @event `beforesorting` - Triggered when sorting just starts. Nothing has happened yet. This can be triggered from a column or from the source. If the type is from rows, the column will be undefined.
|
|
@@ -12138,7 +11497,7 @@ class SortingPlugin extends BasePlugin {
|
|
|
12138
11497
|
super(revogrid, providers);
|
|
12139
11498
|
this.revogrid = revogrid;
|
|
12140
11499
|
this.sortingPromise = null;
|
|
12141
|
-
this.postponeSort =
|
|
11500
|
+
this.postponeSort = debounce$1(async (order, comparison) => this.runSorting(order, comparison), 50);
|
|
12142
11501
|
const beforeanysource = async ({ detail: { type }, }) => {
|
|
12143
11502
|
// if sorting was provided - sort data
|
|
12144
11503
|
if (!!this.sorting && this.sortingFunc) {
|
|
@@ -12221,7 +11580,7 @@ class SortingPlugin extends BasePlugin {
|
|
|
12221
11580
|
this.sorting = Object.assign(Object.assign({}, this.sorting), sorting);
|
|
12222
11581
|
// extend sorting function with new sorting for multiple columns sorting
|
|
12223
11582
|
this.sortingFunc = Object.assign(Object.assign({}, this.sortingFunc), sortingFunc);
|
|
12224
|
-
if (column.prop in sorting &&
|
|
11583
|
+
if (column.prop in sorting && size$1(sorting) > 1 && order === undefined) {
|
|
12225
11584
|
delete sorting[column.prop];
|
|
12226
11585
|
delete sortingFunc[column.prop];
|
|
12227
11586
|
}
|
|
@@ -12253,7 +11612,7 @@ class SortingPlugin extends BasePlugin {
|
|
|
12253
11612
|
*/
|
|
12254
11613
|
async sort(sorting, sortingFunc, types = ['rgRow', 'rowPinStart', 'rowPinEnd']) {
|
|
12255
11614
|
// if no sorting - reset
|
|
12256
|
-
if (!
|
|
11615
|
+
if (!size$1(sorting)) {
|
|
12257
11616
|
this.sorting = undefined;
|
|
12258
11617
|
this.sortingFunc = undefined;
|
|
12259
11618
|
for (let type of types) {
|
|
@@ -12261,7 +11620,7 @@ class SortingPlugin extends BasePlugin {
|
|
|
12261
11620
|
// row data
|
|
12262
11621
|
const source = store.get('source');
|
|
12263
11622
|
// row indexes
|
|
12264
|
-
const proxyItems =
|
|
11623
|
+
const proxyItems = range$1(0, source.length);
|
|
12265
11624
|
setStore(store, {
|
|
12266
11625
|
proxyItems,
|
|
12267
11626
|
source: [...source],
|
|
@@ -12348,8 +11707,7 @@ class SortingPlugin extends BasePlugin {
|
|
|
12348
11707
|
* @param {number} upper The upper bound.
|
|
12349
11708
|
* @returns {number} Returns the clamped number.
|
|
12350
11709
|
*/
|
|
12351
|
-
|
|
12352
|
-
function baseClamp$1(number, lower, upper) {
|
|
11710
|
+
function baseClamp(number, lower, upper) {
|
|
12353
11711
|
if (number === number) {
|
|
12354
11712
|
if (upper !== undefined) {
|
|
12355
11713
|
number = number <= upper ? number : upper;
|
|
@@ -12361,11 +11719,6 @@ function baseClamp$1(number, lower, upper) {
|
|
|
12361
11719
|
return number;
|
|
12362
11720
|
}
|
|
12363
11721
|
|
|
12364
|
-
var _baseClamp = baseClamp$1;
|
|
12365
|
-
|
|
12366
|
-
var baseClamp = _baseClamp,
|
|
12367
|
-
toInteger$1 = toInteger_1;
|
|
12368
|
-
|
|
12369
11722
|
/** Used as references for the maximum length and index of an array. */
|
|
12370
11723
|
var MAX_ARRAY_LENGTH = 4294967295;
|
|
12371
11724
|
|
|
@@ -12396,15 +11749,10 @@ var MAX_ARRAY_LENGTH = 4294967295;
|
|
|
12396
11749
|
* _.toLength('3.2');
|
|
12397
11750
|
* // => 3
|
|
12398
11751
|
*/
|
|
12399
|
-
function toLength
|
|
12400
|
-
return value ? baseClamp(toInteger
|
|
11752
|
+
function toLength(value) {
|
|
11753
|
+
return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
|
|
12401
11754
|
}
|
|
12402
11755
|
|
|
12403
|
-
var toLength_1 = toLength$1;
|
|
12404
|
-
|
|
12405
|
-
var toInteger = toInteger_1,
|
|
12406
|
-
toLength = toLength_1;
|
|
12407
|
-
|
|
12408
11756
|
/**
|
|
12409
11757
|
* The base implementation of `_.fill` without an iteratee call guard.
|
|
12410
11758
|
*
|
|
@@ -12415,7 +11763,7 @@ var toInteger = toInteger_1,
|
|
|
12415
11763
|
* @param {number} [end=array.length] The end position.
|
|
12416
11764
|
* @returns {Array} Returns `array`.
|
|
12417
11765
|
*/
|
|
12418
|
-
function baseFill
|
|
11766
|
+
function baseFill(array, value, start, end) {
|
|
12419
11767
|
var length = array.length;
|
|
12420
11768
|
|
|
12421
11769
|
start = toInteger(start);
|
|
@@ -12433,11 +11781,6 @@ function baseFill$1(array, value, start, end) {
|
|
|
12433
11781
|
return array;
|
|
12434
11782
|
}
|
|
12435
11783
|
|
|
12436
|
-
var _baseFill = baseFill$1;
|
|
12437
|
-
|
|
12438
|
-
var baseFill = _baseFill,
|
|
12439
|
-
isIterateeCall = _isIterateeCall;
|
|
12440
|
-
|
|
12441
11784
|
/**
|
|
12442
11785
|
* Fills elements of `array` with `value` from `start` up to, but not
|
|
12443
11786
|
* including, `end`.
|
|
@@ -12479,8 +11822,6 @@ function fill(array, value, start, end) {
|
|
|
12479
11822
|
return baseFill(array, value, start, end);
|
|
12480
11823
|
}
|
|
12481
11824
|
|
|
12482
|
-
var fill_1 = fill;
|
|
12483
|
-
|
|
12484
11825
|
const INITIAL = {
|
|
12485
11826
|
mime: 'text/csv',
|
|
12486
11827
|
fileKind: 'csv',
|
|
@@ -12654,7 +11995,7 @@ class ExportFilePlugin extends BasePlugin {
|
|
|
12654
11995
|
}
|
|
12655
11996
|
getGroupHeaders(depth, groups, items, visibleItems) {
|
|
12656
11997
|
const rows = [];
|
|
12657
|
-
const template =
|
|
11998
|
+
const template = fill(new Array(items.length), '');
|
|
12658
11999
|
for (let d = 0; d < depth; d++) {
|
|
12659
12000
|
const rgRow = [...template];
|
|
12660
12001
|
rows.push(rgRow);
|
|
@@ -13226,7 +12567,7 @@ class ViewportService {
|
|
|
13226
12567
|
onColumnResize(type, { detail }, store) {
|
|
13227
12568
|
var _a;
|
|
13228
12569
|
(_a = this.config.dimensionProvider) === null || _a === void 0 ? void 0 : _a.setCustomSizes(type, detail, true);
|
|
13229
|
-
const changedItems =
|
|
12570
|
+
const changedItems = reduce(detail || {}, (r, size, i) => {
|
|
13230
12571
|
const index = parseInt(i, 10);
|
|
13231
12572
|
const item = getSourceItem(store, index);
|
|
13232
12573
|
if (item) {
|
|
@@ -13522,7 +12863,7 @@ class StretchColumn extends BasePlugin {
|
|
|
13522
12863
|
this.dropChanges();
|
|
13523
12864
|
// calculate grid size
|
|
13524
12865
|
let sizeDifference = this.revogrid.clientWidth - 1;
|
|
13525
|
-
|
|
12866
|
+
forEach(columns, (_, type) => {
|
|
13526
12867
|
const realSize = this.providers.dimension.stores[type].store.get('realSize');
|
|
13527
12868
|
sizeDifference -= realSize;
|
|
13528
12869
|
});
|
|
@@ -13988,7 +13329,7 @@ class ColumnPlugin extends BasePlugin {
|
|
|
13988
13329
|
super(revogrid, providers);
|
|
13989
13330
|
this.revogrid = revogrid;
|
|
13990
13331
|
this.providers = providers;
|
|
13991
|
-
this.moveFunc =
|
|
13332
|
+
this.moveFunc = debounce$1((e) => this.doMove(e), 5);
|
|
13992
13333
|
this.staticDragData = null;
|
|
13993
13334
|
this.dragData = null;
|
|
13994
13335
|
this.localSubscriptions = {};
|
|
@@ -14096,7 +13437,7 @@ class ColumnPlugin extends BasePlugin {
|
|
|
14096
13437
|
this.clearOrder();
|
|
14097
13438
|
}
|
|
14098
13439
|
clearLocalSubscriptions() {
|
|
14099
|
-
|
|
13440
|
+
forEach(this.localSubscriptions, ({ target, callback }, key) => target.removeEventListener(key, callback));
|
|
14100
13441
|
}
|
|
14101
13442
|
clearOrder() {
|
|
14102
13443
|
this.staticDragData = null;
|
|
@@ -14753,7 +14094,7 @@ class RevoGridComponent {
|
|
|
14753
14094
|
vals: after,
|
|
14754
14095
|
oldVals: before,
|
|
14755
14096
|
});
|
|
14756
|
-
// apply new
|
|
14097
|
+
// apply new values
|
|
14757
14098
|
const newRows = rowDefinitionByType(newVal);
|
|
14758
14099
|
// clear current defs
|
|
14759
14100
|
if (oldVal) {
|
|
@@ -14768,18 +14109,14 @@ class RevoGridComponent {
|
|
|
14768
14109
|
}
|
|
14769
14110
|
}
|
|
14770
14111
|
}
|
|
14771
|
-
|
|
14772
|
-
|
|
14773
|
-
this.dimensionProvider.setCustomSizes('rgRow', {});
|
|
14774
|
-
}
|
|
14775
|
-
else {
|
|
14776
|
-
return;
|
|
14777
|
-
}
|
|
14778
|
-
}
|
|
14779
|
-
Object.entries(newRows).forEach(([k, r]) => {
|
|
14112
|
+
// set new sizes
|
|
14113
|
+
rowTypes.forEach((t) => {
|
|
14780
14114
|
var _a;
|
|
14781
|
-
const
|
|
14782
|
-
|
|
14115
|
+
const newSizes = newRows[t];
|
|
14116
|
+
// apply new sizes or force update
|
|
14117
|
+
if (newSizes || forceUpdate) {
|
|
14118
|
+
(_a = this.dimensionProvider) === null || _a === void 0 ? void 0 : _a.setCustomSizes(t, (newSizes === null || newSizes === void 0 ? void 0 : newSizes.sizes) || {});
|
|
14119
|
+
}
|
|
14783
14120
|
});
|
|
14784
14121
|
}
|
|
14785
14122
|
trimmedRowsChanged(newVal = {}) {
|
|
@@ -15583,9 +14920,6 @@ class RevogrFocus$1 {
|
|
|
15583
14920
|
}; }
|
|
15584
14921
|
}
|
|
15585
14922
|
|
|
15586
|
-
var debounce = debounce_1,
|
|
15587
|
-
isObject = isObject_1;
|
|
15588
|
-
|
|
15589
14923
|
/** Error message constants. */
|
|
15590
14924
|
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
15591
14925
|
|
|
@@ -15644,15 +14978,13 @@ function throttle(func, wait, options) {
|
|
|
15644
14978
|
leading = 'leading' in options ? !!options.leading : leading;
|
|
15645
14979
|
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
15646
14980
|
}
|
|
15647
|
-
return debounce(func, wait, {
|
|
14981
|
+
return debounce$1(func, wait, {
|
|
15648
14982
|
'leading': leading,
|
|
15649
14983
|
'maxWait': wait,
|
|
15650
14984
|
'trailing': trailing
|
|
15651
14985
|
});
|
|
15652
14986
|
}
|
|
15653
14987
|
|
|
15654
|
-
var throttle_1 = throttle;
|
|
15655
|
-
|
|
15656
14988
|
const revogrTempRangeStyleCss = ".revo-drag-icon{width:11px;opacity:0.8}.revo-drag-icon::before{content:\"::\"}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#009037;border:1px solid #00772d}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:1px solid #cedefa;line-height:32px;background:none;color:#000;box-shadow:none}.temp-bg-range{display:block !important;position:absolute;pointer-events:none;z-index:9;border:1px solid rgb(255, 94, 0);box-sizing:border-box}.temp-bg-range.Selection{border:1px dashed gray}.temp-bg-range>div{width:1px;height:1px;position:absolute}.temp-bg-range>div.top{top:-1px}.temp-bg-range>div.bottom{bottom:-1px}.temp-bg-range>div.left{left:-1px}.temp-bg-range>div.right{right:-1px}";
|
|
15657
14989
|
var RevogrTempRangeStyle0 = revogrTempRangeStyleCss;
|
|
15658
14990
|
|
|
@@ -15662,7 +14994,7 @@ var RevogrTempRangeStyle0 = revogrTempRangeStyleCss;
|
|
|
15662
14994
|
class RevogrFocus {
|
|
15663
14995
|
constructor(hostRef) {
|
|
15664
14996
|
registerInstance(this, hostRef);
|
|
15665
|
-
this.onChange =
|
|
14997
|
+
this.onChange = throttle((e) => this.doChange(e), 300);
|
|
15666
14998
|
this.selectionStore = undefined;
|
|
15667
14999
|
this.dimensionRow = undefined;
|
|
15668
15000
|
this.dimensionCol = undefined;
|
|
@@ -15729,9 +15061,7 @@ class RevogrFocus {
|
|
|
15729
15061
|
}; }
|
|
15730
15062
|
}
|
|
15731
15063
|
|
|
15732
|
-
var
|
|
15733
|
-
|
|
15734
|
-
var defineProperty$1 = (function() {
|
|
15064
|
+
var defineProperty = (function() {
|
|
15735
15065
|
try {
|
|
15736
15066
|
var func = getNative(Object, 'defineProperty');
|
|
15737
15067
|
func({}, '', {});
|
|
@@ -15739,9 +15069,7 @@ var defineProperty$1 = (function() {
|
|
|
15739
15069
|
} catch (e) {}
|
|
15740
15070
|
}());
|
|
15741
15071
|
|
|
15742
|
-
var
|
|
15743
|
-
|
|
15744
|
-
var defineProperty = _defineProperty;
|
|
15072
|
+
var defineProperty$1 = defineProperty;
|
|
15745
15073
|
|
|
15746
15074
|
/**
|
|
15747
15075
|
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
@@ -15752,9 +15080,9 @@ var defineProperty = _defineProperty;
|
|
|
15752
15080
|
* @param {string} key The key of the property to assign.
|
|
15753
15081
|
* @param {*} value The value to assign.
|
|
15754
15082
|
*/
|
|
15755
|
-
function baseAssignValue
|
|
15756
|
-
if (key == '__proto__' && defineProperty) {
|
|
15757
|
-
defineProperty(object, key, {
|
|
15083
|
+
function baseAssignValue(object, key, value) {
|
|
15084
|
+
if (key == '__proto__' && defineProperty$1) {
|
|
15085
|
+
defineProperty$1(object, key, {
|
|
15758
15086
|
'configurable': true,
|
|
15759
15087
|
'enumerable': true,
|
|
15760
15088
|
'value': value,
|
|
@@ -15765,8 +15093,6 @@ function baseAssignValue$1(object, key, value) {
|
|
|
15765
15093
|
}
|
|
15766
15094
|
}
|
|
15767
15095
|
|
|
15768
|
-
var _baseAssignValue = baseAssignValue$1;
|
|
15769
|
-
|
|
15770
15096
|
/**
|
|
15771
15097
|
* A specialized version of `baseAggregator` for arrays.
|
|
15772
15098
|
*
|
|
@@ -15777,8 +15103,7 @@ var _baseAssignValue = baseAssignValue$1;
|
|
|
15777
15103
|
* @param {Object} accumulator The initial aggregated object.
|
|
15778
15104
|
* @returns {Function} Returns `accumulator`.
|
|
15779
15105
|
*/
|
|
15780
|
-
|
|
15781
|
-
function arrayAggregator$1(array, setter, iteratee, accumulator) {
|
|
15106
|
+
function arrayAggregator(array, setter, iteratee, accumulator) {
|
|
15782
15107
|
var index = -1,
|
|
15783
15108
|
length = array == null ? 0 : array.length;
|
|
15784
15109
|
|
|
@@ -15789,10 +15114,6 @@ function arrayAggregator$1(array, setter, iteratee, accumulator) {
|
|
|
15789
15114
|
return accumulator;
|
|
15790
15115
|
}
|
|
15791
15116
|
|
|
15792
|
-
var _arrayAggregator = arrayAggregator$1;
|
|
15793
|
-
|
|
15794
|
-
var baseEach = _baseEach;
|
|
15795
|
-
|
|
15796
15117
|
/**
|
|
15797
15118
|
* Aggregates elements of `collection` on `accumulator` with keys transformed
|
|
15798
15119
|
* by `iteratee` and values set by `setter`.
|
|
@@ -15804,20 +15125,13 @@ var baseEach = _baseEach;
|
|
|
15804
15125
|
* @param {Object} accumulator The initial aggregated object.
|
|
15805
15126
|
* @returns {Function} Returns `accumulator`.
|
|
15806
15127
|
*/
|
|
15807
|
-
function baseAggregator
|
|
15808
|
-
baseEach(collection, function(value, key, collection) {
|
|
15128
|
+
function baseAggregator(collection, setter, iteratee, accumulator) {
|
|
15129
|
+
baseEach$1(collection, function(value, key, collection) {
|
|
15809
15130
|
setter(accumulator, value, iteratee(value), collection);
|
|
15810
15131
|
});
|
|
15811
15132
|
return accumulator;
|
|
15812
15133
|
}
|
|
15813
15134
|
|
|
15814
|
-
var _baseAggregator = baseAggregator$1;
|
|
15815
|
-
|
|
15816
|
-
var arrayAggregator = _arrayAggregator,
|
|
15817
|
-
baseAggregator = _baseAggregator,
|
|
15818
|
-
baseIteratee = _baseIteratee,
|
|
15819
|
-
isArray = isArray_1;
|
|
15820
|
-
|
|
15821
15135
|
/**
|
|
15822
15136
|
* Creates a function like `_.groupBy`.
|
|
15823
15137
|
*
|
|
@@ -15826,20 +15140,15 @@ var arrayAggregator = _arrayAggregator,
|
|
|
15826
15140
|
* @param {Function} [initializer] The accumulator object initializer.
|
|
15827
15141
|
* @returns {Function} Returns the new aggregator function.
|
|
15828
15142
|
*/
|
|
15829
|
-
function createAggregator
|
|
15143
|
+
function createAggregator(setter, initializer) {
|
|
15830
15144
|
return function(collection, iteratee) {
|
|
15831
|
-
var func = isArray(collection) ? arrayAggregator : baseAggregator,
|
|
15145
|
+
var func = isArray$1(collection) ? arrayAggregator : baseAggregator,
|
|
15832
15146
|
accumulator = initializer ? initializer() : {};
|
|
15833
15147
|
|
|
15834
15148
|
return func(collection, setter, baseIteratee(iteratee), accumulator);
|
|
15835
15149
|
};
|
|
15836
15150
|
}
|
|
15837
15151
|
|
|
15838
|
-
var _createAggregator = createAggregator$1;
|
|
15839
|
-
|
|
15840
|
-
var baseAssignValue = _baseAssignValue,
|
|
15841
|
-
createAggregator = _createAggregator;
|
|
15842
|
-
|
|
15843
15152
|
/**
|
|
15844
15153
|
* Creates an object composed of keys generated from the results of running
|
|
15845
15154
|
* each element of `collection` thru `iteratee`. The corresponding value of
|
|
@@ -15872,7 +15181,7 @@ var keyBy = createAggregator(function(result, value, key) {
|
|
|
15872
15181
|
baseAssignValue(result, key, value);
|
|
15873
15182
|
});
|
|
15874
15183
|
|
|
15875
|
-
var
|
|
15184
|
+
var keyBy$1 = keyBy;
|
|
15876
15185
|
|
|
15877
15186
|
const SortingSign = ({ column }) => {
|
|
15878
15187
|
var _a;
|
|
@@ -15959,7 +15268,7 @@ const ColumnGroupsRenderer = ({ additionalData, providers, depth, groups, visibl
|
|
|
15959
15268
|
for (let group of groups[i]) {
|
|
15960
15269
|
// if group in visible range
|
|
15961
15270
|
// find first visible group prop in visible columns range
|
|
15962
|
-
const indexFirstVisibleCol =
|
|
15271
|
+
const indexFirstVisibleCol = findIndex(group.ids, id => typeof visibleProps[id] === 'number');
|
|
15963
15272
|
if (indexFirstVisibleCol > -1) {
|
|
15964
15273
|
const colVisibleIndex = visibleProps[group.ids[indexFirstVisibleCol]]; // get column index
|
|
15965
15274
|
const groupStartIndex = colVisibleIndex - indexFirstVisibleCol; // first column index in group
|
|
@@ -16011,7 +15320,7 @@ class RevogrHeaderComponent {
|
|
|
16011
15320
|
}
|
|
16012
15321
|
onResizeGroup(changedX, startIndex, endIndex) {
|
|
16013
15322
|
const sizes = {};
|
|
16014
|
-
const cols =
|
|
15323
|
+
const cols = keyBy$1(this.viewportCol.get('items'), 'itemIndex');
|
|
16015
15324
|
const change = changedX / (endIndex - startIndex + 1);
|
|
16016
15325
|
for (let i = startIndex; i <= endIndex; i++) {
|
|
16017
15326
|
const item = cols[i];
|
|
@@ -16496,7 +15805,7 @@ class GridResizeService {
|
|
|
16496
15805
|
constructor(el, events) {
|
|
16497
15806
|
this.events = events;
|
|
16498
15807
|
this.resizeObserver = null;
|
|
16499
|
-
this.resize =
|
|
15808
|
+
this.resize = throttle((e, o) => { var _a; return (_a = this.events) === null || _a === void 0 ? void 0 : _a.resize(e, o); }, 10);
|
|
16500
15809
|
this.init(el);
|
|
16501
15810
|
}
|
|
16502
15811
|
async init(el) {
|