@revolist/revogrid 4.9.22 → 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/{app-globals-a6bcda2f.js → app-globals-c0b20747.js} +2 -2
- package/dist/cjs/{app-globals-a6bcda2f.js.map → app-globals-c0b20747.js.map} +1 -1
- package/dist/cjs/{column.drag.plugin-3644bda6.js → column.drag.plugin-eb1db875.js} +50 -55
- package/dist/cjs/column.drag.plugin-eb1db875.js.map +1 -0
- package/dist/cjs/{column.service-caec759a.js → column.service-6089b047.js} +10 -20
- 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-18840bb3.js → edit.utils-093fe9cd.js} +2 -2
- package/dist/cjs/{edit.utils-18840bb3.js.map → edit.utils-093fe9cd.js.map} +1 -1
- package/dist/cjs/{filter.button-1e1e16be.js → filter.button-afb16244.js} +2 -2
- package/dist/cjs/{filter.button-1e1e16be.js.map → filter.button-afb16244.js.map} +1 -1
- package/dist/cjs/{header-cell-renderer-4fd62cec.js → header-cell-renderer-2d56e8f5.js} +3 -3
- package/dist/cjs/{header-cell-renderer-4fd62cec.js.map → header-cell-renderer-2d56e8f5.js.map} +1 -1
- package/dist/cjs/{index-34dfb0db.js → index-10d10c55.js} +14 -20
- package/dist/cjs/index-10d10c55.js.map +1 -0
- package/dist/cjs/{index-71b783e2.js → index-a9ee8eef.js} +290 -854
- package/dist/cjs/index-a9ee8eef.js.map +1 -0
- package/dist/cjs/index.cjs.js +11 -11
- package/dist/cjs/{key.utils-48b178d1.js → key.utils-1438f2ac.js} +2 -2
- package/dist/cjs/{key.utils-48b178d1.js.map → key.utils-1438f2ac.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/revo-grid.cjs.entry.js +43 -74
- package/dist/cjs/revo-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/revo-grid.cjs.js +3 -3
- package/dist/cjs/revo-grid.cjs.js.map +1 -1
- package/dist/cjs/revogr-attribution_6.cjs.entry.js +10 -10
- package/dist/cjs/revogr-attribution_6.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js +7 -7
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-data_4.cjs.entry.js +24 -47
- package/dist/cjs/revogr-data_4.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-filter-panel.cjs.entry.js +4 -4
- package/dist/cjs/revogr-filter-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/{row-header-utils-baf917a2.js → row-header-utils-eb5949b3.js} +7 -9
- package/dist/cjs/row-header-utils-eb5949b3.js.map +1 -0
- package/dist/cjs/{sorting.sign-54938069.js → sorting.sign-8bf92449.js} +2 -2
- package/dist/cjs/{sorting.sign-54938069.js.map → sorting.sign-8bf92449.js.map} +1 -1
- package/dist/cjs/{text-editor-bdc757b1.js → text-editor-ea3badef.js} +3 -3
- package/dist/cjs/{text-editor-bdc757b1.js.map → text-editor-ea3badef.js.map} +1 -1
- package/dist/cjs/{throttle-b5d436ca.js → throttle-6fecba1e.js} +6 -11
- package/dist/cjs/throttle-6fecba1e.js.map +1 -0
- package/dist/collection/collection-manifest.json +1 -1
- 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/{app-globals-43714036.js → app-globals-3a760941.js} +2 -2
- package/dist/esm/{app-globals-43714036.js.map → app-globals-3a760941.js.map} +1 -1
- package/dist/esm/{column.drag.plugin-49737eae.js → column.drag.plugin-cb25a5e1.js} +47 -52
- package/dist/esm/column.drag.plugin-cb25a5e1.js.map +1 -0
- package/dist/esm/{column.service-dc98409c.js → column.service-407956dd.js} +7 -17
- 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-177d6b9e.js → edit.utils-1eeabeab.js} +2 -2
- package/dist/esm/{edit.utils-177d6b9e.js.map → edit.utils-1eeabeab.js.map} +1 -1
- package/dist/esm/{filter.button-91088160.js → filter.button-37373672.js} +2 -2
- package/dist/esm/{filter.button-91088160.js.map → filter.button-37373672.js.map} +1 -1
- package/dist/esm/{header-cell-renderer-07c6f845.js → header-cell-renderer-da468bd2.js} +3 -3
- package/dist/esm/{header-cell-renderer-07c6f845.js.map → header-cell-renderer-da468bd2.js.map} +1 -1
- package/dist/esm/{index-70354f39.js → index-a61f225b.js} +14 -20
- package/dist/esm/index-a61f225b.js.map +1 -0
- package/dist/esm/{index-29a9a87a.js → index-b6586f9b.js} +270 -834
- package/dist/esm/index-b6586f9b.js.map +1 -0
- package/dist/esm/index.js +11 -11
- package/dist/esm/{key.utils-0bbb3bc6.js → key.utils-562c749e.js} +2 -2
- package/dist/esm/{key.utils-0bbb3bc6.js.map → key.utils-562c749e.js.map} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/revo-grid.entry.js +39 -70
- package/dist/esm/revo-grid.entry.js.map +1 -1
- package/dist/esm/revo-grid.js +4 -4
- package/dist/esm/revo-grid.js.map +1 -1
- package/dist/esm/revogr-attribution_6.entry.js +10 -10
- package/dist/esm/revogr-attribution_6.entry.js.map +1 -1
- package/dist/esm/revogr-clipboard_3.entry.js +7 -7
- package/dist/esm/revogr-clipboard_3.entry.js.map +1 -1
- package/dist/esm/revogr-data_4.entry.js +20 -43
- package/dist/esm/revogr-data_4.entry.js.map +1 -1
- package/dist/esm/revogr-filter-panel.entry.js +4 -4
- package/dist/esm/revogr-filter-panel.entry.js.map +1 -1
- package/dist/esm/{row-header-utils-32049c13.js → row-header-utils-e043f744.js} +7 -9
- package/dist/esm/row-header-utils-e043f744.js.map +1 -0
- package/dist/esm/{sorting.sign-569a1f3c.js → sorting.sign-1afddea1.js} +2 -2
- package/dist/esm/{sorting.sign-569a1f3c.js.map → sorting.sign-1afddea1.js.map} +1 -1
- package/dist/esm/{text-editor-b1bb2bd3.js → text-editor-654f5d53.js} +3 -3
- package/dist/esm/{text-editor-b1bb2bd3.js.map → text-editor-654f5d53.js.map} +1 -1
- package/dist/esm/{throttle-c6f34cc0.js → throttle-bb3169c7.js} +4 -9
- package/dist/esm/throttle-bb3169c7.js.map +1 -0
- package/dist/revo-grid/app-globals-3a760941.js +5 -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-177d6b9e.js → edit.utils-1eeabeab.js} +2 -2
- package/dist/revo-grid/{filter.button-91088160.js → filter.button-37373672.js} +2 -2
- package/dist/revo-grid/{header-cell-renderer-07c6f845.js → header-cell-renderer-da468bd2.js} +2 -2
- package/dist/revo-grid/index-a61f225b.js +6 -0
- package/dist/revo-grid/index-a61f225b.js.map +1 -0
- 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-0bbb3bc6.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/revo-grid.esm.js +1 -1
- package/dist/revo-grid/revo-grid.esm.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/{sorting.sign-569a1f3c.js → sorting.sign-1afddea1.js} +2 -2
- package/dist/revo-grid/{text-editor-b1bb2bd3.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.d.ts +4 -4
- package/hydrate/index.js +426 -1128
- package/hydrate/index.mjs +426 -1128
- 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-3644bda6.js.map +0 -1
- package/dist/cjs/column.service-caec759a.js.map +0 -1
- package/dist/cjs/debounce-cb5f4e35.js.map +0 -1
- package/dist/cjs/index-34dfb0db.js.map +0 -1
- package/dist/cjs/index-71b783e2.js.map +0 -1
- package/dist/cjs/row-header-utils-baf917a2.js.map +0 -1
- package/dist/cjs/throttle-b5d436ca.js.map +0 -1
- package/dist/esm/column.drag.plugin-49737eae.js.map +0 -1
- package/dist/esm/column.service-dc98409c.js.map +0 -1
- package/dist/esm/debounce-e8e9464a.js.map +0 -1
- package/dist/esm/index-29a9a87a.js.map +0 -1
- package/dist/esm/index-70354f39.js.map +0 -1
- package/dist/esm/row-header-utils-32049c13.js.map +0 -1
- package/dist/esm/throttle-c6f34cc0.js.map +0 -1
- package/dist/revo-grid/app-globals-43714036.js +0 -5
- package/dist/revo-grid/column.drag.plugin-49737eae.js +0 -5
- package/dist/revo-grid/column.drag.plugin-49737eae.js.map +0 -1
- package/dist/revo-grid/column.service-dc98409c.js +0 -5
- package/dist/revo-grid/column.service-dc98409c.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-29a9a87a.js +0 -5
- package/dist/revo-grid/index-29a9a87a.js.map +0 -1
- package/dist/revo-grid/index-70354f39.js +0 -6
- package/dist/revo-grid/index-70354f39.js.map +0 -1
- package/dist/revo-grid/row-header-utils-32049c13.js +0 -5
- package/dist/revo-grid/row-header-utils-32049c13.js.map +0 -1
- package/dist/revo-grid/throttle-c6f34cc0.js +0 -5
- package/dist/revo-grid/throttle-c6f34cc0.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/{app-globals-43714036.js.map → app-globals-3a760941.js.map} +0 -0
- /package/dist/revo-grid/{edit.utils-177d6b9e.js.map → edit.utils-1eeabeab.js.map} +0 -0
- /package/dist/revo-grid/{filter.button-91088160.js.map → filter.button-37373672.js.map} +0 -0
- /package/dist/revo-grid/{header-cell-renderer-07c6f845.js.map → header-cell-renderer-da468bd2.js.map} +0 -0
- /package/dist/revo-grid/{key.utils-0bbb3bc6.js.map → key.utils-562c749e.js.map} +0 -0
- /package/dist/revo-grid/{sorting.sign-569a1f3c.js.map → sorting.sign-1afddea1.js.map} +0 -0
- /package/dist/revo-grid/{text-editor-b1bb2bd3.js.map → text-editor-654f5d53.js.map} +0 -0
package/hydrate/index.mjs
CHANGED
|
@@ -126,7 +126,7 @@ const NAMESPACE = 'revo-grid';
|
|
|
126
126
|
const BUILD = /* revo-grid */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: false, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: false, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, shadowDomShim: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
127
127
|
|
|
128
128
|
/*
|
|
129
|
-
Stencil Hydrate Platform v4.
|
|
129
|
+
Stencil Hydrate Platform v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
130
130
|
*/
|
|
131
131
|
var __defProp = Object.defineProperty;
|
|
132
132
|
var __export = (target, all) => {
|
|
@@ -580,19 +580,17 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
580
580
|
if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
581
581
|
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
582
582
|
}
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
595
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
583
|
+
const injectStyle = (
|
|
584
|
+
/**
|
|
585
|
+
* we render a scoped component
|
|
586
|
+
*/
|
|
587
|
+
!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) || /**
|
|
588
|
+
* we are using shadow dom and render the style tag within the shadowRoot
|
|
589
|
+
*/
|
|
590
|
+
cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD"
|
|
591
|
+
);
|
|
592
|
+
if (injectStyle) {
|
|
593
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
596
594
|
}
|
|
597
595
|
}
|
|
598
596
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
@@ -674,11 +672,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
674
672
|
if (memberName === "list") {
|
|
675
673
|
isProp = false;
|
|
676
674
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
677
|
-
|
|
678
|
-
elm[memberName] = n;
|
|
679
|
-
} else {
|
|
680
|
-
elm.setAttribute(memberName, n);
|
|
681
|
-
}
|
|
675
|
+
elm[memberName] = n;
|
|
682
676
|
}
|
|
683
677
|
} else {
|
|
684
678
|
elm[memberName] = newValue;
|
|
@@ -1442,7 +1436,7 @@ var serverSideConnected = (elm) => {
|
|
|
1442
1436
|
};
|
|
1443
1437
|
|
|
1444
1438
|
// src/runtime/set-value.ts
|
|
1445
|
-
var getValue$
|
|
1439
|
+
var getValue$1 = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1446
1440
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1447
1441
|
const hostRef = getHostRef(ref);
|
|
1448
1442
|
if (!hostRef) {
|
|
@@ -1492,7 +1486,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1492
1486
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1493
1487
|
Object.defineProperty(prototype, memberName, {
|
|
1494
1488
|
get() {
|
|
1495
|
-
return getValue$
|
|
1489
|
+
return getValue$1(this, memberName);
|
|
1496
1490
|
},
|
|
1497
1491
|
set(newValue) {
|
|
1498
1492
|
setValue(this, memberName, newValue, cmpMeta);
|
|
@@ -1907,7 +1901,7 @@ function proxyHostElement(elm, cmpMeta) {
|
|
|
1907
1901
|
}
|
|
1908
1902
|
Object.defineProperty(elm, memberName, {
|
|
1909
1903
|
get() {
|
|
1910
|
-
return getValue$
|
|
1904
|
+
return getValue$1(this, memberName);
|
|
1911
1905
|
},
|
|
1912
1906
|
set(newValue) {
|
|
1913
1907
|
setValue(this, memberName, newValue, cmpMeta);
|
|
@@ -2441,8 +2435,6 @@ class Clipboard {
|
|
|
2441
2435
|
}; }
|
|
2442
2436
|
}
|
|
2443
2437
|
|
|
2444
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2445
|
-
|
|
2446
2438
|
/**
|
|
2447
2439
|
* Checks if `value` is the
|
|
2448
2440
|
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
@@ -2468,31 +2460,23 @@ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof win
|
|
|
2468
2460
|
* _.isObject(null);
|
|
2469
2461
|
* // => false
|
|
2470
2462
|
*/
|
|
2471
|
-
|
|
2472
|
-
function isObject$7(value) {
|
|
2463
|
+
function isObject(value) {
|
|
2473
2464
|
var type = typeof value;
|
|
2474
2465
|
return value != null && (type == 'object' || type == 'function');
|
|
2475
2466
|
}
|
|
2476
2467
|
|
|
2477
|
-
var isObject_1 = isObject$7;
|
|
2478
|
-
|
|
2479
2468
|
/** Detect free variable `global` from Node.js. */
|
|
2469
|
+
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
2480
2470
|
|
|
2481
|
-
var freeGlobal$1 =
|
|
2482
|
-
|
|
2483
|
-
var _freeGlobal = freeGlobal$1;
|
|
2484
|
-
|
|
2485
|
-
var freeGlobal = _freeGlobal;
|
|
2471
|
+
var freeGlobal$1 = freeGlobal;
|
|
2486
2472
|
|
|
2487
2473
|
/** Detect free variable `self`. */
|
|
2488
2474
|
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
2489
2475
|
|
|
2490
2476
|
/** Used as a reference to the global object. */
|
|
2491
|
-
var root
|
|
2477
|
+
var root = freeGlobal$1 || freeSelf || Function('return this')();
|
|
2492
2478
|
|
|
2493
|
-
var
|
|
2494
|
-
|
|
2495
|
-
var root$8 = _root;
|
|
2479
|
+
var root$1 = root;
|
|
2496
2480
|
|
|
2497
2481
|
/**
|
|
2498
2482
|
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
@@ -2510,14 +2494,13 @@ var root$8 = _root;
|
|
|
2510
2494
|
* }, _.now());
|
|
2511
2495
|
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
2512
2496
|
*/
|
|
2513
|
-
var now
|
|
2514
|
-
return root$
|
|
2497
|
+
var now = function() {
|
|
2498
|
+
return root$1.Date.now();
|
|
2515
2499
|
};
|
|
2516
2500
|
|
|
2517
|
-
var
|
|
2501
|
+
var now$1 = now;
|
|
2518
2502
|
|
|
2519
2503
|
/** Used to match a single whitespace character. */
|
|
2520
|
-
|
|
2521
2504
|
var reWhitespace = /\s/;
|
|
2522
2505
|
|
|
2523
2506
|
/**
|
|
@@ -2528,17 +2511,13 @@ var reWhitespace = /\s/;
|
|
|
2528
2511
|
* @param {string} string The string to inspect.
|
|
2529
2512
|
* @returns {number} Returns the index of the last non-whitespace character.
|
|
2530
2513
|
*/
|
|
2531
|
-
function trimmedEndIndex
|
|
2514
|
+
function trimmedEndIndex(string) {
|
|
2532
2515
|
var index = string.length;
|
|
2533
2516
|
|
|
2534
2517
|
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
2535
2518
|
return index;
|
|
2536
2519
|
}
|
|
2537
2520
|
|
|
2538
|
-
var _trimmedEndIndex = trimmedEndIndex$1;
|
|
2539
|
-
|
|
2540
|
-
var trimmedEndIndex = _trimmedEndIndex;
|
|
2541
|
-
|
|
2542
2521
|
/** Used to match leading whitespace. */
|
|
2543
2522
|
var reTrimStart = /^\s+/;
|
|
2544
2523
|
|
|
@@ -2549,22 +2528,16 @@ var reTrimStart = /^\s+/;
|
|
|
2549
2528
|
* @param {string} string The string to trim.
|
|
2550
2529
|
* @returns {string} Returns the trimmed string.
|
|
2551
2530
|
*/
|
|
2552
|
-
function baseTrim
|
|
2531
|
+
function baseTrim(string) {
|
|
2553
2532
|
return string
|
|
2554
2533
|
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
|
2555
2534
|
: string;
|
|
2556
2535
|
}
|
|
2557
2536
|
|
|
2558
|
-
var _baseTrim = baseTrim$1;
|
|
2559
|
-
|
|
2560
|
-
var root$7 = _root;
|
|
2561
|
-
|
|
2562
2537
|
/** Built-in value references. */
|
|
2563
|
-
var Symbol
|
|
2564
|
-
|
|
2565
|
-
var _Symbol = Symbol$4;
|
|
2538
|
+
var Symbol = root$1.Symbol;
|
|
2566
2539
|
|
|
2567
|
-
var Symbol$
|
|
2540
|
+
var Symbol$1 = Symbol;
|
|
2568
2541
|
|
|
2569
2542
|
/** Used for built-in method references. */
|
|
2570
2543
|
var objectProto$b = Object.prototype;
|
|
@@ -2580,7 +2553,7 @@ var hasOwnProperty$8 = objectProto$b.hasOwnProperty;
|
|
|
2580
2553
|
var nativeObjectToString$1 = objectProto$b.toString;
|
|
2581
2554
|
|
|
2582
2555
|
/** Built-in value references. */
|
|
2583
|
-
var symToStringTag$1 = Symbol$
|
|
2556
|
+
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
2584
2557
|
|
|
2585
2558
|
/**
|
|
2586
2559
|
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
@@ -2589,7 +2562,7 @@ var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : undefined;
|
|
|
2589
2562
|
* @param {*} value The value to query.
|
|
2590
2563
|
* @returns {string} Returns the raw `toStringTag`.
|
|
2591
2564
|
*/
|
|
2592
|
-
function getRawTag
|
|
2565
|
+
function getRawTag(value) {
|
|
2593
2566
|
var isOwn = hasOwnProperty$8.call(value, symToStringTag$1),
|
|
2594
2567
|
tag = value[symToStringTag$1];
|
|
2595
2568
|
|
|
@@ -2609,10 +2582,7 @@ function getRawTag$1(value) {
|
|
|
2609
2582
|
return result;
|
|
2610
2583
|
}
|
|
2611
2584
|
|
|
2612
|
-
var _getRawTag = getRawTag$1;
|
|
2613
|
-
|
|
2614
2585
|
/** Used for built-in method references. */
|
|
2615
|
-
|
|
2616
2586
|
var objectProto$a = Object.prototype;
|
|
2617
2587
|
|
|
2618
2588
|
/**
|
|
@@ -2629,22 +2599,16 @@ var nativeObjectToString = objectProto$a.toString;
|
|
|
2629
2599
|
* @param {*} value The value to convert.
|
|
2630
2600
|
* @returns {string} Returns the converted string.
|
|
2631
2601
|
*/
|
|
2632
|
-
function objectToString
|
|
2602
|
+
function objectToString(value) {
|
|
2633
2603
|
return nativeObjectToString.call(value);
|
|
2634
2604
|
}
|
|
2635
2605
|
|
|
2636
|
-
var _objectToString = objectToString$1;
|
|
2637
|
-
|
|
2638
|
-
var Symbol$2 = _Symbol,
|
|
2639
|
-
getRawTag = _getRawTag,
|
|
2640
|
-
objectToString = _objectToString;
|
|
2641
|
-
|
|
2642
2606
|
/** `Object#toString` result references. */
|
|
2643
2607
|
var nullTag = '[object Null]',
|
|
2644
2608
|
undefinedTag = '[object Undefined]';
|
|
2645
2609
|
|
|
2646
2610
|
/** Built-in value references. */
|
|
2647
|
-
var symToStringTag = Symbol$
|
|
2611
|
+
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
2648
2612
|
|
|
2649
2613
|
/**
|
|
2650
2614
|
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
@@ -2653,7 +2617,7 @@ var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : undefined;
|
|
|
2653
2617
|
* @param {*} value The value to query.
|
|
2654
2618
|
* @returns {string} Returns the `toStringTag`.
|
|
2655
2619
|
*/
|
|
2656
|
-
function baseGetTag
|
|
2620
|
+
function baseGetTag(value) {
|
|
2657
2621
|
if (value == null) {
|
|
2658
2622
|
return value === undefined ? undefinedTag : nullTag;
|
|
2659
2623
|
}
|
|
@@ -2662,8 +2626,6 @@ function baseGetTag$6(value) {
|
|
|
2662
2626
|
: objectToString(value);
|
|
2663
2627
|
}
|
|
2664
2628
|
|
|
2665
|
-
var _baseGetTag = baseGetTag$6;
|
|
2666
|
-
|
|
2667
2629
|
/**
|
|
2668
2630
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
2669
2631
|
* and has a `typeof` result of "object".
|
|
@@ -2688,16 +2650,10 @@ var _baseGetTag = baseGetTag$6;
|
|
|
2688
2650
|
* _.isObjectLike(null);
|
|
2689
2651
|
* // => false
|
|
2690
2652
|
*/
|
|
2691
|
-
|
|
2692
|
-
function isObjectLike$6(value) {
|
|
2653
|
+
function isObjectLike(value) {
|
|
2693
2654
|
return value != null && typeof value == 'object';
|
|
2694
2655
|
}
|
|
2695
2656
|
|
|
2696
|
-
var isObjectLike_1 = isObjectLike$6;
|
|
2697
|
-
|
|
2698
|
-
var baseGetTag$5 = _baseGetTag,
|
|
2699
|
-
isObjectLike$5 = isObjectLike_1;
|
|
2700
|
-
|
|
2701
2657
|
/** `Object#toString` result references. */
|
|
2702
2658
|
var symbolTag$1 = '[object Symbol]';
|
|
2703
2659
|
|
|
@@ -2718,17 +2674,11 @@ var symbolTag$1 = '[object Symbol]';
|
|
|
2718
2674
|
* _.isSymbol('abc');
|
|
2719
2675
|
* // => false
|
|
2720
2676
|
*/
|
|
2721
|
-
function isSymbol
|
|
2677
|
+
function isSymbol(value) {
|
|
2722
2678
|
return typeof value == 'symbol' ||
|
|
2723
|
-
(isObjectLike
|
|
2679
|
+
(isObjectLike(value) && baseGetTag(value) == symbolTag$1);
|
|
2724
2680
|
}
|
|
2725
2681
|
|
|
2726
|
-
var isSymbol_1 = isSymbol$6;
|
|
2727
|
-
|
|
2728
|
-
var baseTrim = _baseTrim,
|
|
2729
|
-
isObject$6 = isObject_1,
|
|
2730
|
-
isSymbol$5 = isSymbol_1;
|
|
2731
|
-
|
|
2732
2682
|
/** Used as references for various `Number` constants. */
|
|
2733
2683
|
var NAN = 0 / 0;
|
|
2734
2684
|
|
|
@@ -2767,16 +2717,16 @@ var freeParseInt = parseInt;
|
|
|
2767
2717
|
* _.toNumber('3.2');
|
|
2768
2718
|
* // => 3.2
|
|
2769
2719
|
*/
|
|
2770
|
-
function toNumber
|
|
2720
|
+
function toNumber(value) {
|
|
2771
2721
|
if (typeof value == 'number') {
|
|
2772
2722
|
return value;
|
|
2773
2723
|
}
|
|
2774
|
-
if (isSymbol
|
|
2724
|
+
if (isSymbol(value)) {
|
|
2775
2725
|
return NAN;
|
|
2776
2726
|
}
|
|
2777
|
-
if (isObject
|
|
2727
|
+
if (isObject(value)) {
|
|
2778
2728
|
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
2779
|
-
value = isObject
|
|
2729
|
+
value = isObject(other) ? (other + '') : other;
|
|
2780
2730
|
}
|
|
2781
2731
|
if (typeof value != 'string') {
|
|
2782
2732
|
return value === 0 ? value : +value;
|
|
@@ -2788,12 +2738,6 @@ function toNumber$2(value) {
|
|
|
2788
2738
|
: (reIsBadHex.test(value) ? NAN : +value);
|
|
2789
2739
|
}
|
|
2790
2740
|
|
|
2791
|
-
var toNumber_1 = toNumber$2;
|
|
2792
|
-
|
|
2793
|
-
var isObject$5 = isObject_1,
|
|
2794
|
-
now = now_1,
|
|
2795
|
-
toNumber$1 = toNumber_1;
|
|
2796
|
-
|
|
2797
2741
|
/** Error message constants. */
|
|
2798
2742
|
var FUNC_ERROR_TEXT$2 = 'Expected a function';
|
|
2799
2743
|
|
|
@@ -2855,7 +2799,7 @@ var nativeMax$2 = Math.max,
|
|
|
2855
2799
|
* // Cancel the trailing debounced invocation.
|
|
2856
2800
|
* jQuery(window).on('popstate', debounced.cancel);
|
|
2857
2801
|
*/
|
|
2858
|
-
function debounce$
|
|
2802
|
+
function debounce$1(func, wait, options) {
|
|
2859
2803
|
var lastArgs,
|
|
2860
2804
|
lastThis,
|
|
2861
2805
|
maxWait,
|
|
@@ -2870,11 +2814,11 @@ function debounce$2(func, wait, options) {
|
|
|
2870
2814
|
if (typeof func != 'function') {
|
|
2871
2815
|
throw new TypeError(FUNC_ERROR_TEXT$2);
|
|
2872
2816
|
}
|
|
2873
|
-
wait = toNumber
|
|
2874
|
-
if (isObject
|
|
2817
|
+
wait = toNumber(wait) || 0;
|
|
2818
|
+
if (isObject(options)) {
|
|
2875
2819
|
leading = !!options.leading;
|
|
2876
2820
|
maxing = 'maxWait' in options;
|
|
2877
|
-
maxWait = maxing ? nativeMax$2(toNumber
|
|
2821
|
+
maxWait = maxing ? nativeMax$2(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
2878
2822
|
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
2879
2823
|
}
|
|
2880
2824
|
|
|
@@ -2919,7 +2863,7 @@ function debounce$2(func, wait, options) {
|
|
|
2919
2863
|
}
|
|
2920
2864
|
|
|
2921
2865
|
function timerExpired() {
|
|
2922
|
-
var time = now();
|
|
2866
|
+
var time = now$1();
|
|
2923
2867
|
if (shouldInvoke(time)) {
|
|
2924
2868
|
return trailingEdge(time);
|
|
2925
2869
|
}
|
|
@@ -2948,11 +2892,11 @@ function debounce$2(func, wait, options) {
|
|
|
2948
2892
|
}
|
|
2949
2893
|
|
|
2950
2894
|
function flush() {
|
|
2951
|
-
return timerId === undefined ? result : trailingEdge(now());
|
|
2895
|
+
return timerId === undefined ? result : trailingEdge(now$1());
|
|
2952
2896
|
}
|
|
2953
2897
|
|
|
2954
2898
|
function debounced() {
|
|
2955
|
-
var time = now(),
|
|
2899
|
+
var time = now$1(),
|
|
2956
2900
|
isInvoking = shouldInvoke(time);
|
|
2957
2901
|
|
|
2958
2902
|
lastArgs = arguments;
|
|
@@ -2980,8 +2924,6 @@ function debounce$2(func, wait, options) {
|
|
|
2980
2924
|
return debounced;
|
|
2981
2925
|
}
|
|
2982
2926
|
|
|
2983
|
-
var debounce_1 = debounce$2;
|
|
2984
|
-
|
|
2985
2927
|
const FILTER_BUTTON_CLASS = 'rv-filter';
|
|
2986
2928
|
const FILTER_BUTTON_ACTIVE = 'active';
|
|
2987
2929
|
const FILTER_PROP = 'hasFilter';
|
|
@@ -3059,7 +3001,7 @@ class FilterPanel {
|
|
|
3059
3001
|
and: 'and',
|
|
3060
3002
|
or: 'or',
|
|
3061
3003
|
};
|
|
3062
|
-
this.debouncedApplyFilter =
|
|
3004
|
+
this.debouncedApplyFilter = debounce$1(() => {
|
|
3063
3005
|
this.filterChange.emit(this.filterItems);
|
|
3064
3006
|
}, 400);
|
|
3065
3007
|
this.isFilterIdSet = false;
|
|
@@ -3387,8 +3329,7 @@ function isProxy(k) {
|
|
|
3387
3329
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
3388
3330
|
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
3389
3331
|
*/
|
|
3390
|
-
|
|
3391
|
-
function baseFindIndex$1(array, predicate, fromIndex, fromRight) {
|
|
3332
|
+
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
3392
3333
|
var length = array.length,
|
|
3393
3334
|
index = fromIndex + (fromRight ? 1 : -1);
|
|
3394
3335
|
|
|
@@ -3400,8 +3341,6 @@ function baseFindIndex$1(array, predicate, fromIndex, fromRight) {
|
|
|
3400
3341
|
return -1;
|
|
3401
3342
|
}
|
|
3402
3343
|
|
|
3403
|
-
var _baseFindIndex = baseFindIndex$1;
|
|
3404
|
-
|
|
3405
3344
|
/**
|
|
3406
3345
|
* Removes all key-value entries from the list cache.
|
|
3407
3346
|
*
|
|
@@ -3409,14 +3348,11 @@ var _baseFindIndex = baseFindIndex$1;
|
|
|
3409
3348
|
* @name clear
|
|
3410
3349
|
* @memberOf ListCache
|
|
3411
3350
|
*/
|
|
3412
|
-
|
|
3413
|
-
function listCacheClear$1() {
|
|
3351
|
+
function listCacheClear() {
|
|
3414
3352
|
this.__data__ = [];
|
|
3415
3353
|
this.size = 0;
|
|
3416
3354
|
}
|
|
3417
3355
|
|
|
3418
|
-
var _listCacheClear = listCacheClear$1;
|
|
3419
|
-
|
|
3420
3356
|
/**
|
|
3421
3357
|
* Performs a
|
|
3422
3358
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -3449,15 +3385,10 @@ var _listCacheClear = listCacheClear$1;
|
|
|
3449
3385
|
* _.eq(NaN, NaN);
|
|
3450
3386
|
* // => true
|
|
3451
3387
|
*/
|
|
3452
|
-
|
|
3453
|
-
function eq$4(value, other) {
|
|
3388
|
+
function eq$1(value, other) {
|
|
3454
3389
|
return value === other || (value !== value && other !== other);
|
|
3455
3390
|
}
|
|
3456
3391
|
|
|
3457
|
-
var eq_1 = eq$4;
|
|
3458
|
-
|
|
3459
|
-
var eq$3 = eq_1;
|
|
3460
|
-
|
|
3461
3392
|
/**
|
|
3462
3393
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
3463
3394
|
*
|
|
@@ -3466,20 +3397,16 @@ var eq$3 = eq_1;
|
|
|
3466
3397
|
* @param {*} key The key to search for.
|
|
3467
3398
|
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
3468
3399
|
*/
|
|
3469
|
-
function assocIndexOf
|
|
3400
|
+
function assocIndexOf(array, key) {
|
|
3470
3401
|
var length = array.length;
|
|
3471
3402
|
while (length--) {
|
|
3472
|
-
if (eq$
|
|
3403
|
+
if (eq$1(array[length][0], key)) {
|
|
3473
3404
|
return length;
|
|
3474
3405
|
}
|
|
3475
3406
|
}
|
|
3476
3407
|
return -1;
|
|
3477
3408
|
}
|
|
3478
3409
|
|
|
3479
|
-
var _assocIndexOf = assocIndexOf$4;
|
|
3480
|
-
|
|
3481
|
-
var assocIndexOf$3 = _assocIndexOf;
|
|
3482
|
-
|
|
3483
3410
|
/** Used for built-in method references. */
|
|
3484
3411
|
var arrayProto = Array.prototype;
|
|
3485
3412
|
|
|
@@ -3495,9 +3422,9 @@ var splice = arrayProto.splice;
|
|
|
3495
3422
|
* @param {string} key The key of the value to remove.
|
|
3496
3423
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
3497
3424
|
*/
|
|
3498
|
-
function listCacheDelete
|
|
3425
|
+
function listCacheDelete(key) {
|
|
3499
3426
|
var data = this.__data__,
|
|
3500
|
-
index = assocIndexOf
|
|
3427
|
+
index = assocIndexOf(data, key);
|
|
3501
3428
|
|
|
3502
3429
|
if (index < 0) {
|
|
3503
3430
|
return false;
|
|
@@ -3512,10 +3439,6 @@ function listCacheDelete$1(key) {
|
|
|
3512
3439
|
return true;
|
|
3513
3440
|
}
|
|
3514
3441
|
|
|
3515
|
-
var _listCacheDelete = listCacheDelete$1;
|
|
3516
|
-
|
|
3517
|
-
var assocIndexOf$2 = _assocIndexOf;
|
|
3518
|
-
|
|
3519
3442
|
/**
|
|
3520
3443
|
* Gets the list cache value for `key`.
|
|
3521
3444
|
*
|
|
@@ -3525,17 +3448,13 @@ var assocIndexOf$2 = _assocIndexOf;
|
|
|
3525
3448
|
* @param {string} key The key of the value to get.
|
|
3526
3449
|
* @returns {*} Returns the entry value.
|
|
3527
3450
|
*/
|
|
3528
|
-
function listCacheGet
|
|
3451
|
+
function listCacheGet(key) {
|
|
3529
3452
|
var data = this.__data__,
|
|
3530
|
-
index = assocIndexOf
|
|
3453
|
+
index = assocIndexOf(data, key);
|
|
3531
3454
|
|
|
3532
3455
|
return index < 0 ? undefined : data[index][1];
|
|
3533
3456
|
}
|
|
3534
3457
|
|
|
3535
|
-
var _listCacheGet = listCacheGet$1;
|
|
3536
|
-
|
|
3537
|
-
var assocIndexOf$1 = _assocIndexOf;
|
|
3538
|
-
|
|
3539
3458
|
/**
|
|
3540
3459
|
* Checks if a list cache value for `key` exists.
|
|
3541
3460
|
*
|
|
@@ -3545,14 +3464,10 @@ var assocIndexOf$1 = _assocIndexOf;
|
|
|
3545
3464
|
* @param {string} key The key of the entry to check.
|
|
3546
3465
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
3547
3466
|
*/
|
|
3548
|
-
function listCacheHas
|
|
3549
|
-
return assocIndexOf
|
|
3467
|
+
function listCacheHas(key) {
|
|
3468
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
3550
3469
|
}
|
|
3551
3470
|
|
|
3552
|
-
var _listCacheHas = listCacheHas$1;
|
|
3553
|
-
|
|
3554
|
-
var assocIndexOf = _assocIndexOf;
|
|
3555
|
-
|
|
3556
3471
|
/**
|
|
3557
3472
|
* Sets the list cache `key` to `value`.
|
|
3558
3473
|
*
|
|
@@ -3563,7 +3478,7 @@ var assocIndexOf = _assocIndexOf;
|
|
|
3563
3478
|
* @param {*} value The value to set.
|
|
3564
3479
|
* @returns {Object} Returns the list cache instance.
|
|
3565
3480
|
*/
|
|
3566
|
-
function listCacheSet
|
|
3481
|
+
function listCacheSet(key, value) {
|
|
3567
3482
|
var data = this.__data__,
|
|
3568
3483
|
index = assocIndexOf(data, key);
|
|
3569
3484
|
|
|
@@ -3576,14 +3491,6 @@ function listCacheSet$1(key, value) {
|
|
|
3576
3491
|
return this;
|
|
3577
3492
|
}
|
|
3578
3493
|
|
|
3579
|
-
var _listCacheSet = listCacheSet$1;
|
|
3580
|
-
|
|
3581
|
-
var listCacheClear = _listCacheClear,
|
|
3582
|
-
listCacheDelete = _listCacheDelete,
|
|
3583
|
-
listCacheGet = _listCacheGet,
|
|
3584
|
-
listCacheHas = _listCacheHas,
|
|
3585
|
-
listCacheSet = _listCacheSet;
|
|
3586
|
-
|
|
3587
3494
|
/**
|
|
3588
3495
|
* Creates an list cache object.
|
|
3589
3496
|
*
|
|
@@ -3591,7 +3498,7 @@ var listCacheClear = _listCacheClear,
|
|
|
3591
3498
|
* @constructor
|
|
3592
3499
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
3593
3500
|
*/
|
|
3594
|
-
function ListCache
|
|
3501
|
+
function ListCache(entries) {
|
|
3595
3502
|
var index = -1,
|
|
3596
3503
|
length = entries == null ? 0 : entries.length;
|
|
3597
3504
|
|
|
@@ -3603,15 +3510,11 @@ function ListCache$4(entries) {
|
|
|
3603
3510
|
}
|
|
3604
3511
|
|
|
3605
3512
|
// Add methods to `ListCache`.
|
|
3606
|
-
ListCache
|
|
3607
|
-
ListCache
|
|
3608
|
-
ListCache
|
|
3609
|
-
ListCache
|
|
3610
|
-
ListCache
|
|
3611
|
-
|
|
3612
|
-
var _ListCache = ListCache$4;
|
|
3613
|
-
|
|
3614
|
-
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;
|
|
3615
3518
|
|
|
3616
3519
|
/**
|
|
3617
3520
|
* Removes all key-value entries from the stack.
|
|
@@ -3620,13 +3523,11 @@ var ListCache$3 = _ListCache;
|
|
|
3620
3523
|
* @name clear
|
|
3621
3524
|
* @memberOf Stack
|
|
3622
3525
|
*/
|
|
3623
|
-
function stackClear
|
|
3624
|
-
this.__data__ = new ListCache
|
|
3526
|
+
function stackClear() {
|
|
3527
|
+
this.__data__ = new ListCache;
|
|
3625
3528
|
this.size = 0;
|
|
3626
3529
|
}
|
|
3627
3530
|
|
|
3628
|
-
var _stackClear = stackClear$1;
|
|
3629
|
-
|
|
3630
3531
|
/**
|
|
3631
3532
|
* Removes `key` and its value from the stack.
|
|
3632
3533
|
*
|
|
@@ -3636,8 +3537,7 @@ var _stackClear = stackClear$1;
|
|
|
3636
3537
|
* @param {string} key The key of the value to remove.
|
|
3637
3538
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
3638
3539
|
*/
|
|
3639
|
-
|
|
3640
|
-
function stackDelete$1(key) {
|
|
3540
|
+
function stackDelete(key) {
|
|
3641
3541
|
var data = this.__data__,
|
|
3642
3542
|
result = data['delete'](key);
|
|
3643
3543
|
|
|
@@ -3645,8 +3545,6 @@ function stackDelete$1(key) {
|
|
|
3645
3545
|
return result;
|
|
3646
3546
|
}
|
|
3647
3547
|
|
|
3648
|
-
var _stackDelete = stackDelete$1;
|
|
3649
|
-
|
|
3650
3548
|
/**
|
|
3651
3549
|
* Gets the stack value for `key`.
|
|
3652
3550
|
*
|
|
@@ -3656,13 +3554,10 @@ var _stackDelete = stackDelete$1;
|
|
|
3656
3554
|
* @param {string} key The key of the value to get.
|
|
3657
3555
|
* @returns {*} Returns the entry value.
|
|
3658
3556
|
*/
|
|
3659
|
-
|
|
3660
|
-
function stackGet$1(key) {
|
|
3557
|
+
function stackGet(key) {
|
|
3661
3558
|
return this.__data__.get(key);
|
|
3662
3559
|
}
|
|
3663
3560
|
|
|
3664
|
-
var _stackGet = stackGet$1;
|
|
3665
|
-
|
|
3666
3561
|
/**
|
|
3667
3562
|
* Checks if a stack value for `key` exists.
|
|
3668
3563
|
*
|
|
@@ -3672,16 +3567,10 @@ var _stackGet = stackGet$1;
|
|
|
3672
3567
|
* @param {string} key The key of the entry to check.
|
|
3673
3568
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
3674
3569
|
*/
|
|
3675
|
-
|
|
3676
|
-
function stackHas$1(key) {
|
|
3570
|
+
function stackHas(key) {
|
|
3677
3571
|
return this.__data__.has(key);
|
|
3678
3572
|
}
|
|
3679
3573
|
|
|
3680
|
-
var _stackHas = stackHas$1;
|
|
3681
|
-
|
|
3682
|
-
var baseGetTag$4 = _baseGetTag,
|
|
3683
|
-
isObject$4 = isObject_1;
|
|
3684
|
-
|
|
3685
3574
|
/** `Object#toString` result references. */
|
|
3686
3575
|
var asyncTag = '[object AsyncFunction]',
|
|
3687
3576
|
funcTag$1 = '[object Function]',
|
|
@@ -3705,30 +3594,24 @@ var asyncTag = '[object AsyncFunction]',
|
|
|
3705
3594
|
* _.isFunction(/abc/);
|
|
3706
3595
|
* // => false
|
|
3707
3596
|
*/
|
|
3708
|
-
function isFunction
|
|
3709
|
-
if (!isObject
|
|
3597
|
+
function isFunction(value) {
|
|
3598
|
+
if (!isObject(value)) {
|
|
3710
3599
|
return false;
|
|
3711
3600
|
}
|
|
3712
3601
|
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
3713
3602
|
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
3714
|
-
var tag = baseGetTag
|
|
3603
|
+
var tag = baseGetTag(value);
|
|
3715
3604
|
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
3716
3605
|
}
|
|
3717
3606
|
|
|
3718
|
-
var isFunction_1 = isFunction$2;
|
|
3719
|
-
|
|
3720
|
-
var root$6 = _root;
|
|
3721
|
-
|
|
3722
3607
|
/** Used to detect overreaching core-js shims. */
|
|
3723
|
-
var coreJsData
|
|
3608
|
+
var coreJsData = root$1['__core-js_shared__'];
|
|
3724
3609
|
|
|
3725
|
-
var
|
|
3726
|
-
|
|
3727
|
-
var coreJsData = _coreJsData;
|
|
3610
|
+
var coreJsData$1 = coreJsData;
|
|
3728
3611
|
|
|
3729
3612
|
/** Used to detect methods masquerading as native. */
|
|
3730
3613
|
var maskSrcKey = (function() {
|
|
3731
|
-
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
|
|
3614
|
+
var uid = /[^.]+$/.exec(coreJsData$1 && coreJsData$1.keys && coreJsData$1.keys.IE_PROTO || '');
|
|
3732
3615
|
return uid ? ('Symbol(src)_1.' + uid) : '';
|
|
3733
3616
|
}());
|
|
3734
3617
|
|
|
@@ -3739,14 +3622,11 @@ var maskSrcKey = (function() {
|
|
|
3739
3622
|
* @param {Function} func The function to check.
|
|
3740
3623
|
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
3741
3624
|
*/
|
|
3742
|
-
function isMasked
|
|
3625
|
+
function isMasked(func) {
|
|
3743
3626
|
return !!maskSrcKey && (maskSrcKey in func);
|
|
3744
3627
|
}
|
|
3745
3628
|
|
|
3746
|
-
var _isMasked = isMasked$1;
|
|
3747
|
-
|
|
3748
3629
|
/** Used for built-in method references. */
|
|
3749
|
-
|
|
3750
3630
|
var funcProto$1 = Function.prototype;
|
|
3751
3631
|
|
|
3752
3632
|
/** Used to resolve the decompiled source of functions. */
|
|
@@ -3759,7 +3639,7 @@ var funcToString$1 = funcProto$1.toString;
|
|
|
3759
3639
|
* @param {Function} func The function to convert.
|
|
3760
3640
|
* @returns {string} Returns the source code.
|
|
3761
3641
|
*/
|
|
3762
|
-
function toSource
|
|
3642
|
+
function toSource(func) {
|
|
3763
3643
|
if (func != null) {
|
|
3764
3644
|
try {
|
|
3765
3645
|
return funcToString$1.call(func);
|
|
@@ -3771,13 +3651,6 @@ function toSource$2(func) {
|
|
|
3771
3651
|
return '';
|
|
3772
3652
|
}
|
|
3773
3653
|
|
|
3774
|
-
var _toSource = toSource$2;
|
|
3775
|
-
|
|
3776
|
-
var isFunction$1 = isFunction_1,
|
|
3777
|
-
isMasked = _isMasked,
|
|
3778
|
-
isObject$3 = isObject_1,
|
|
3779
|
-
toSource$1 = _toSource;
|
|
3780
|
-
|
|
3781
3654
|
/**
|
|
3782
3655
|
* Used to match `RegExp`
|
|
3783
3656
|
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
@@ -3811,16 +3684,14 @@ var reIsNative = RegExp('^' +
|
|
|
3811
3684
|
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
3812
3685
|
* else `false`.
|
|
3813
3686
|
*/
|
|
3814
|
-
function baseIsNative
|
|
3815
|
-
if (!isObject
|
|
3687
|
+
function baseIsNative(value) {
|
|
3688
|
+
if (!isObject(value) || isMasked(value)) {
|
|
3816
3689
|
return false;
|
|
3817
3690
|
}
|
|
3818
|
-
var pattern = isFunction
|
|
3819
|
-
return pattern.test(toSource
|
|
3691
|
+
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
|
3692
|
+
return pattern.test(toSource(value));
|
|
3820
3693
|
}
|
|
3821
3694
|
|
|
3822
|
-
var _baseIsNative = baseIsNative$1;
|
|
3823
|
-
|
|
3824
3695
|
/**
|
|
3825
3696
|
* Gets the value at `key` of `object`.
|
|
3826
3697
|
*
|
|
@@ -3829,16 +3700,10 @@ var _baseIsNative = baseIsNative$1;
|
|
|
3829
3700
|
* @param {string} key The key of the property to get.
|
|
3830
3701
|
* @returns {*} Returns the property value.
|
|
3831
3702
|
*/
|
|
3832
|
-
|
|
3833
|
-
function getValue$1(object, key) {
|
|
3703
|
+
function getValue(object, key) {
|
|
3834
3704
|
return object == null ? undefined : object[key];
|
|
3835
3705
|
}
|
|
3836
3706
|
|
|
3837
|
-
var _getValue = getValue$1;
|
|
3838
|
-
|
|
3839
|
-
var baseIsNative = _baseIsNative,
|
|
3840
|
-
getValue = _getValue;
|
|
3841
|
-
|
|
3842
3707
|
/**
|
|
3843
3708
|
* Gets the native function at `key` of `object`.
|
|
3844
3709
|
*
|
|
@@ -3847,29 +3712,20 @@ var baseIsNative = _baseIsNative,
|
|
|
3847
3712
|
* @param {string} key The key of the method to get.
|
|
3848
3713
|
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
3849
3714
|
*/
|
|
3850
|
-
function getNative
|
|
3715
|
+
function getNative(object, key) {
|
|
3851
3716
|
var value = getValue(object, key);
|
|
3852
3717
|
return baseIsNative(value) ? value : undefined;
|
|
3853
3718
|
}
|
|
3854
3719
|
|
|
3855
|
-
var _getNative = getNative$7;
|
|
3856
|
-
|
|
3857
|
-
var getNative$6 = _getNative,
|
|
3858
|
-
root$5 = _root;
|
|
3859
|
-
|
|
3860
3720
|
/* Built-in method references that are verified to be native. */
|
|
3861
|
-
var Map$
|
|
3721
|
+
var Map$1 = getNative(root$1, 'Map');
|
|
3862
3722
|
|
|
3863
|
-
var
|
|
3864
|
-
|
|
3865
|
-
var getNative$5 = _getNative;
|
|
3723
|
+
var Map$2 = Map$1;
|
|
3866
3724
|
|
|
3867
3725
|
/* Built-in method references that are verified to be native. */
|
|
3868
|
-
var nativeCreate
|
|
3869
|
-
|
|
3870
|
-
var _nativeCreate = nativeCreate$4;
|
|
3726
|
+
var nativeCreate = getNative(Object, 'create');
|
|
3871
3727
|
|
|
3872
|
-
var nativeCreate$
|
|
3728
|
+
var nativeCreate$1 = nativeCreate;
|
|
3873
3729
|
|
|
3874
3730
|
/**
|
|
3875
3731
|
* Removes all key-value entries from the hash.
|
|
@@ -3878,13 +3734,11 @@ var nativeCreate$3 = _nativeCreate;
|
|
|
3878
3734
|
* @name clear
|
|
3879
3735
|
* @memberOf Hash
|
|
3880
3736
|
*/
|
|
3881
|
-
function hashClear
|
|
3882
|
-
this.__data__ = nativeCreate$
|
|
3737
|
+
function hashClear() {
|
|
3738
|
+
this.__data__ = nativeCreate$1 ? nativeCreate$1(null) : {};
|
|
3883
3739
|
this.size = 0;
|
|
3884
3740
|
}
|
|
3885
3741
|
|
|
3886
|
-
var _hashClear = hashClear$1;
|
|
3887
|
-
|
|
3888
3742
|
/**
|
|
3889
3743
|
* Removes `key` and its value from the hash.
|
|
3890
3744
|
*
|
|
@@ -3895,17 +3749,12 @@ var _hashClear = hashClear$1;
|
|
|
3895
3749
|
* @param {string} key The key of the value to remove.
|
|
3896
3750
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
3897
3751
|
*/
|
|
3898
|
-
|
|
3899
|
-
function hashDelete$1(key) {
|
|
3752
|
+
function hashDelete(key) {
|
|
3900
3753
|
var result = this.has(key) && delete this.__data__[key];
|
|
3901
3754
|
this.size -= result ? 1 : 0;
|
|
3902
3755
|
return result;
|
|
3903
3756
|
}
|
|
3904
3757
|
|
|
3905
|
-
var _hashDelete = hashDelete$1;
|
|
3906
|
-
|
|
3907
|
-
var nativeCreate$2 = _nativeCreate;
|
|
3908
|
-
|
|
3909
3758
|
/** Used to stand-in for `undefined` hash values. */
|
|
3910
3759
|
var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
|
|
3911
3760
|
|
|
@@ -3924,19 +3773,15 @@ var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
|
|
|
3924
3773
|
* @param {string} key The key of the value to get.
|
|
3925
3774
|
* @returns {*} Returns the entry value.
|
|
3926
3775
|
*/
|
|
3927
|
-
function hashGet
|
|
3776
|
+
function hashGet(key) {
|
|
3928
3777
|
var data = this.__data__;
|
|
3929
|
-
if (nativeCreate$
|
|
3778
|
+
if (nativeCreate$1) {
|
|
3930
3779
|
var result = data[key];
|
|
3931
3780
|
return result === HASH_UNDEFINED$2 ? undefined : result;
|
|
3932
3781
|
}
|
|
3933
3782
|
return hasOwnProperty$6.call(data, key) ? data[key] : undefined;
|
|
3934
3783
|
}
|
|
3935
3784
|
|
|
3936
|
-
var _hashGet = hashGet$1;
|
|
3937
|
-
|
|
3938
|
-
var nativeCreate$1 = _nativeCreate;
|
|
3939
|
-
|
|
3940
3785
|
/** Used for built-in method references. */
|
|
3941
3786
|
var objectProto$7 = Object.prototype;
|
|
3942
3787
|
|
|
@@ -3952,15 +3797,11 @@ var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
|
|
|
3952
3797
|
* @param {string} key The key of the entry to check.
|
|
3953
3798
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
3954
3799
|
*/
|
|
3955
|
-
function hashHas
|
|
3800
|
+
function hashHas(key) {
|
|
3956
3801
|
var data = this.__data__;
|
|
3957
3802
|
return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$5.call(data, key);
|
|
3958
3803
|
}
|
|
3959
3804
|
|
|
3960
|
-
var _hashHas = hashHas$1;
|
|
3961
|
-
|
|
3962
|
-
var nativeCreate = _nativeCreate;
|
|
3963
|
-
|
|
3964
3805
|
/** Used to stand-in for `undefined` hash values. */
|
|
3965
3806
|
var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
3966
3807
|
|
|
@@ -3974,21 +3815,13 @@ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
|
3974
3815
|
* @param {*} value The value to set.
|
|
3975
3816
|
* @returns {Object} Returns the hash instance.
|
|
3976
3817
|
*/
|
|
3977
|
-
function hashSet
|
|
3818
|
+
function hashSet(key, value) {
|
|
3978
3819
|
var data = this.__data__;
|
|
3979
3820
|
this.size += this.has(key) ? 0 : 1;
|
|
3980
|
-
data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED$1 : value;
|
|
3821
|
+
data[key] = (nativeCreate$1 && value === undefined) ? HASH_UNDEFINED$1 : value;
|
|
3981
3822
|
return this;
|
|
3982
3823
|
}
|
|
3983
3824
|
|
|
3984
|
-
var _hashSet = hashSet$1;
|
|
3985
|
-
|
|
3986
|
-
var hashClear = _hashClear,
|
|
3987
|
-
hashDelete = _hashDelete,
|
|
3988
|
-
hashGet = _hashGet,
|
|
3989
|
-
hashHas = _hashHas,
|
|
3990
|
-
hashSet = _hashSet;
|
|
3991
|
-
|
|
3992
3825
|
/**
|
|
3993
3826
|
* Creates a hash object.
|
|
3994
3827
|
*
|
|
@@ -3996,7 +3829,7 @@ var hashClear = _hashClear,
|
|
|
3996
3829
|
* @constructor
|
|
3997
3830
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
3998
3831
|
*/
|
|
3999
|
-
function Hash
|
|
3832
|
+
function Hash(entries) {
|
|
4000
3833
|
var index = -1,
|
|
4001
3834
|
length = entries == null ? 0 : entries.length;
|
|
4002
3835
|
|
|
@@ -4008,17 +3841,11 @@ function Hash$1(entries) {
|
|
|
4008
3841
|
}
|
|
4009
3842
|
|
|
4010
3843
|
// Add methods to `Hash`.
|
|
4011
|
-
Hash
|
|
4012
|
-
Hash
|
|
4013
|
-
Hash
|
|
4014
|
-
Hash
|
|
4015
|
-
Hash
|
|
4016
|
-
|
|
4017
|
-
var _Hash = Hash$1;
|
|
4018
|
-
|
|
4019
|
-
var Hash = _Hash,
|
|
4020
|
-
ListCache$2 = _ListCache,
|
|
4021
|
-
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;
|
|
4022
3849
|
|
|
4023
3850
|
/**
|
|
4024
3851
|
* Removes all key-value entries from the map.
|
|
@@ -4027,17 +3854,15 @@ var Hash = _Hash,
|
|
|
4027
3854
|
* @name clear
|
|
4028
3855
|
* @memberOf MapCache
|
|
4029
3856
|
*/
|
|
4030
|
-
function mapCacheClear
|
|
3857
|
+
function mapCacheClear() {
|
|
4031
3858
|
this.size = 0;
|
|
4032
3859
|
this.__data__ = {
|
|
4033
3860
|
'hash': new Hash,
|
|
4034
|
-
'map': new (Map$
|
|
3861
|
+
'map': new (Map$2 || ListCache),
|
|
4035
3862
|
'string': new Hash
|
|
4036
3863
|
};
|
|
4037
3864
|
}
|
|
4038
3865
|
|
|
4039
|
-
var _mapCacheClear = mapCacheClear$1;
|
|
4040
|
-
|
|
4041
3866
|
/**
|
|
4042
3867
|
* Checks if `value` is suitable for use as unique object key.
|
|
4043
3868
|
*
|
|
@@ -4045,18 +3870,13 @@ var _mapCacheClear = mapCacheClear$1;
|
|
|
4045
3870
|
* @param {*} value The value to check.
|
|
4046
3871
|
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
4047
3872
|
*/
|
|
4048
|
-
|
|
4049
|
-
function isKeyable$1(value) {
|
|
3873
|
+
function isKeyable(value) {
|
|
4050
3874
|
var type = typeof value;
|
|
4051
3875
|
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
|
|
4052
3876
|
? (value !== '__proto__')
|
|
4053
3877
|
: (value === null);
|
|
4054
3878
|
}
|
|
4055
3879
|
|
|
4056
|
-
var _isKeyable = isKeyable$1;
|
|
4057
|
-
|
|
4058
|
-
var isKeyable = _isKeyable;
|
|
4059
|
-
|
|
4060
3880
|
/**
|
|
4061
3881
|
* Gets the data for `map`.
|
|
4062
3882
|
*
|
|
@@ -4065,17 +3885,13 @@ var isKeyable = _isKeyable;
|
|
|
4065
3885
|
* @param {string} key The reference key.
|
|
4066
3886
|
* @returns {*} Returns the map data.
|
|
4067
3887
|
*/
|
|
4068
|
-
function getMapData
|
|
3888
|
+
function getMapData(map, key) {
|
|
4069
3889
|
var data = map.__data__;
|
|
4070
3890
|
return isKeyable(key)
|
|
4071
3891
|
? data[typeof key == 'string' ? 'string' : 'hash']
|
|
4072
3892
|
: data.map;
|
|
4073
3893
|
}
|
|
4074
3894
|
|
|
4075
|
-
var _getMapData = getMapData$4;
|
|
4076
|
-
|
|
4077
|
-
var getMapData$3 = _getMapData;
|
|
4078
|
-
|
|
4079
3895
|
/**
|
|
4080
3896
|
* Removes `key` and its value from the map.
|
|
4081
3897
|
*
|
|
@@ -4085,16 +3901,12 @@ var getMapData$3 = _getMapData;
|
|
|
4085
3901
|
* @param {string} key The key of the value to remove.
|
|
4086
3902
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
4087
3903
|
*/
|
|
4088
|
-
function mapCacheDelete
|
|
4089
|
-
var result = getMapData
|
|
3904
|
+
function mapCacheDelete(key) {
|
|
3905
|
+
var result = getMapData(this, key)['delete'](key);
|
|
4090
3906
|
this.size -= result ? 1 : 0;
|
|
4091
3907
|
return result;
|
|
4092
3908
|
}
|
|
4093
3909
|
|
|
4094
|
-
var _mapCacheDelete = mapCacheDelete$1;
|
|
4095
|
-
|
|
4096
|
-
var getMapData$2 = _getMapData;
|
|
4097
|
-
|
|
4098
3910
|
/**
|
|
4099
3911
|
* Gets the map value for `key`.
|
|
4100
3912
|
*
|
|
@@ -4104,14 +3916,10 @@ var getMapData$2 = _getMapData;
|
|
|
4104
3916
|
* @param {string} key The key of the value to get.
|
|
4105
3917
|
* @returns {*} Returns the entry value.
|
|
4106
3918
|
*/
|
|
4107
|
-
function mapCacheGet
|
|
4108
|
-
return getMapData
|
|
3919
|
+
function mapCacheGet(key) {
|
|
3920
|
+
return getMapData(this, key).get(key);
|
|
4109
3921
|
}
|
|
4110
3922
|
|
|
4111
|
-
var _mapCacheGet = mapCacheGet$1;
|
|
4112
|
-
|
|
4113
|
-
var getMapData$1 = _getMapData;
|
|
4114
|
-
|
|
4115
3923
|
/**
|
|
4116
3924
|
* Checks if a map value for `key` exists.
|
|
4117
3925
|
*
|
|
@@ -4121,14 +3929,10 @@ var getMapData$1 = _getMapData;
|
|
|
4121
3929
|
* @param {string} key The key of the entry to check.
|
|
4122
3930
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
4123
3931
|
*/
|
|
4124
|
-
function mapCacheHas
|
|
4125
|
-
return getMapData
|
|
3932
|
+
function mapCacheHas(key) {
|
|
3933
|
+
return getMapData(this, key).has(key);
|
|
4126
3934
|
}
|
|
4127
3935
|
|
|
4128
|
-
var _mapCacheHas = mapCacheHas$1;
|
|
4129
|
-
|
|
4130
|
-
var getMapData = _getMapData;
|
|
4131
|
-
|
|
4132
3936
|
/**
|
|
4133
3937
|
* Sets the map `key` to `value`.
|
|
4134
3938
|
*
|
|
@@ -4139,7 +3943,7 @@ var getMapData = _getMapData;
|
|
|
4139
3943
|
* @param {*} value The value to set.
|
|
4140
3944
|
* @returns {Object} Returns the map cache instance.
|
|
4141
3945
|
*/
|
|
4142
|
-
function mapCacheSet
|
|
3946
|
+
function mapCacheSet(key, value) {
|
|
4143
3947
|
var data = getMapData(this, key),
|
|
4144
3948
|
size = data.size;
|
|
4145
3949
|
|
|
@@ -4148,14 +3952,6 @@ function mapCacheSet$1(key, value) {
|
|
|
4148
3952
|
return this;
|
|
4149
3953
|
}
|
|
4150
3954
|
|
|
4151
|
-
var _mapCacheSet = mapCacheSet$1;
|
|
4152
|
-
|
|
4153
|
-
var mapCacheClear = _mapCacheClear,
|
|
4154
|
-
mapCacheDelete = _mapCacheDelete,
|
|
4155
|
-
mapCacheGet = _mapCacheGet,
|
|
4156
|
-
mapCacheHas = _mapCacheHas,
|
|
4157
|
-
mapCacheSet = _mapCacheSet;
|
|
4158
|
-
|
|
4159
3955
|
/**
|
|
4160
3956
|
* Creates a map cache object to store key-value pairs.
|
|
4161
3957
|
*
|
|
@@ -4163,7 +3959,7 @@ var mapCacheClear = _mapCacheClear,
|
|
|
4163
3959
|
* @constructor
|
|
4164
3960
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
4165
3961
|
*/
|
|
4166
|
-
function MapCache
|
|
3962
|
+
function MapCache(entries) {
|
|
4167
3963
|
var index = -1,
|
|
4168
3964
|
length = entries == null ? 0 : entries.length;
|
|
4169
3965
|
|
|
@@ -4175,17 +3971,11 @@ function MapCache$3(entries) {
|
|
|
4175
3971
|
}
|
|
4176
3972
|
|
|
4177
3973
|
// Add methods to `MapCache`.
|
|
4178
|
-
MapCache
|
|
4179
|
-
MapCache
|
|
4180
|
-
MapCache
|
|
4181
|
-
MapCache
|
|
4182
|
-
MapCache
|
|
4183
|
-
|
|
4184
|
-
var _MapCache = MapCache$3;
|
|
4185
|
-
|
|
4186
|
-
var ListCache$1 = _ListCache,
|
|
4187
|
-
Map$2 = _Map,
|
|
4188
|
-
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;
|
|
4189
3979
|
|
|
4190
3980
|
/** Used as the size to enable large array optimizations. */
|
|
4191
3981
|
var LARGE_ARRAY_SIZE = 200;
|
|
@@ -4200,31 +3990,22 @@ var LARGE_ARRAY_SIZE = 200;
|
|
|
4200
3990
|
* @param {*} value The value to set.
|
|
4201
3991
|
* @returns {Object} Returns the stack cache instance.
|
|
4202
3992
|
*/
|
|
4203
|
-
function stackSet
|
|
3993
|
+
function stackSet(key, value) {
|
|
4204
3994
|
var data = this.__data__;
|
|
4205
|
-
if (data instanceof ListCache
|
|
3995
|
+
if (data instanceof ListCache) {
|
|
4206
3996
|
var pairs = data.__data__;
|
|
4207
3997
|
if (!Map$2 || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
|
|
4208
3998
|
pairs.push([key, value]);
|
|
4209
3999
|
this.size = ++data.size;
|
|
4210
4000
|
return this;
|
|
4211
4001
|
}
|
|
4212
|
-
data = this.__data__ = new MapCache
|
|
4002
|
+
data = this.__data__ = new MapCache(pairs);
|
|
4213
4003
|
}
|
|
4214
4004
|
data.set(key, value);
|
|
4215
4005
|
this.size = data.size;
|
|
4216
4006
|
return this;
|
|
4217
4007
|
}
|
|
4218
4008
|
|
|
4219
|
-
var _stackSet = stackSet$1;
|
|
4220
|
-
|
|
4221
|
-
var ListCache = _ListCache,
|
|
4222
|
-
stackClear = _stackClear,
|
|
4223
|
-
stackDelete = _stackDelete,
|
|
4224
|
-
stackGet = _stackGet,
|
|
4225
|
-
stackHas = _stackHas,
|
|
4226
|
-
stackSet = _stackSet;
|
|
4227
|
-
|
|
4228
4009
|
/**
|
|
4229
4010
|
* Creates a stack cache object to store key-value pairs.
|
|
4230
4011
|
*
|
|
@@ -4232,22 +4013,19 @@ var ListCache = _ListCache,
|
|
|
4232
4013
|
* @constructor
|
|
4233
4014
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
4234
4015
|
*/
|
|
4235
|
-
function Stack
|
|
4016
|
+
function Stack(entries) {
|
|
4236
4017
|
var data = this.__data__ = new ListCache(entries);
|
|
4237
4018
|
this.size = data.size;
|
|
4238
4019
|
}
|
|
4239
4020
|
|
|
4240
4021
|
// Add methods to `Stack`.
|
|
4241
|
-
Stack
|
|
4242
|
-
Stack
|
|
4243
|
-
Stack
|
|
4244
|
-
Stack
|
|
4245
|
-
Stack
|
|
4246
|
-
|
|
4247
|
-
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;
|
|
4248
4027
|
|
|
4249
4028
|
/** Used to stand-in for `undefined` hash values. */
|
|
4250
|
-
|
|
4251
4029
|
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
4252
4030
|
|
|
4253
4031
|
/**
|
|
@@ -4260,13 +4038,11 @@ var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
|
4260
4038
|
* @param {*} value The value to cache.
|
|
4261
4039
|
* @returns {Object} Returns the cache instance.
|
|
4262
4040
|
*/
|
|
4263
|
-
function setCacheAdd
|
|
4041
|
+
function setCacheAdd(value) {
|
|
4264
4042
|
this.__data__.set(value, HASH_UNDEFINED);
|
|
4265
4043
|
return this;
|
|
4266
4044
|
}
|
|
4267
4045
|
|
|
4268
|
-
var _setCacheAdd = setCacheAdd$1;
|
|
4269
|
-
|
|
4270
4046
|
/**
|
|
4271
4047
|
* Checks if `value` is in the array cache.
|
|
4272
4048
|
*
|
|
@@ -4276,17 +4052,10 @@ var _setCacheAdd = setCacheAdd$1;
|
|
|
4276
4052
|
* @param {*} value The value to search for.
|
|
4277
4053
|
* @returns {number} Returns `true` if `value` is found, else `false`.
|
|
4278
4054
|
*/
|
|
4279
|
-
|
|
4280
|
-
function setCacheHas$1(value) {
|
|
4055
|
+
function setCacheHas(value) {
|
|
4281
4056
|
return this.__data__.has(value);
|
|
4282
4057
|
}
|
|
4283
4058
|
|
|
4284
|
-
var _setCacheHas = setCacheHas$1;
|
|
4285
|
-
|
|
4286
|
-
var MapCache$1 = _MapCache,
|
|
4287
|
-
setCacheAdd = _setCacheAdd,
|
|
4288
|
-
setCacheHas = _setCacheHas;
|
|
4289
|
-
|
|
4290
4059
|
/**
|
|
4291
4060
|
*
|
|
4292
4061
|
* Creates an array cache object to store unique values.
|
|
@@ -4295,21 +4064,19 @@ var MapCache$1 = _MapCache,
|
|
|
4295
4064
|
* @constructor
|
|
4296
4065
|
* @param {Array} [values] The values to cache.
|
|
4297
4066
|
*/
|
|
4298
|
-
function SetCache
|
|
4067
|
+
function SetCache(values) {
|
|
4299
4068
|
var index = -1,
|
|
4300
4069
|
length = values == null ? 0 : values.length;
|
|
4301
4070
|
|
|
4302
|
-
this.__data__ = new MapCache
|
|
4071
|
+
this.__data__ = new MapCache;
|
|
4303
4072
|
while (++index < length) {
|
|
4304
4073
|
this.add(values[index]);
|
|
4305
4074
|
}
|
|
4306
4075
|
}
|
|
4307
4076
|
|
|
4308
4077
|
// Add methods to `SetCache`.
|
|
4309
|
-
SetCache
|
|
4310
|
-
SetCache
|
|
4311
|
-
|
|
4312
|
-
var _SetCache = SetCache$1;
|
|
4078
|
+
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
4079
|
+
SetCache.prototype.has = setCacheHas;
|
|
4313
4080
|
|
|
4314
4081
|
/**
|
|
4315
4082
|
* A specialized version of `_.some` for arrays without support for iteratee
|
|
@@ -4321,8 +4088,7 @@ var _SetCache = SetCache$1;
|
|
|
4321
4088
|
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
|
4322
4089
|
* else `false`.
|
|
4323
4090
|
*/
|
|
4324
|
-
|
|
4325
|
-
function arraySome$1(array, predicate) {
|
|
4091
|
+
function arraySome(array, predicate) {
|
|
4326
4092
|
var index = -1,
|
|
4327
4093
|
length = array == null ? 0 : array.length;
|
|
4328
4094
|
|
|
@@ -4334,8 +4100,6 @@ function arraySome$1(array, predicate) {
|
|
|
4334
4100
|
return false;
|
|
4335
4101
|
}
|
|
4336
4102
|
|
|
4337
|
-
var _arraySome = arraySome$1;
|
|
4338
|
-
|
|
4339
4103
|
/**
|
|
4340
4104
|
* Checks if a `cache` value for `key` exists.
|
|
4341
4105
|
*
|
|
@@ -4344,17 +4108,10 @@ var _arraySome = arraySome$1;
|
|
|
4344
4108
|
* @param {string} key The key of the entry to check.
|
|
4345
4109
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
4346
4110
|
*/
|
|
4347
|
-
|
|
4348
|
-
function cacheHas$1(cache, key) {
|
|
4111
|
+
function cacheHas(cache, key) {
|
|
4349
4112
|
return cache.has(key);
|
|
4350
4113
|
}
|
|
4351
4114
|
|
|
4352
|
-
var _cacheHas = cacheHas$1;
|
|
4353
|
-
|
|
4354
|
-
var SetCache = _SetCache,
|
|
4355
|
-
arraySome = _arraySome,
|
|
4356
|
-
cacheHas = _cacheHas;
|
|
4357
|
-
|
|
4358
4115
|
/** Used to compose bitmasks for value comparisons. */
|
|
4359
4116
|
var COMPARE_PARTIAL_FLAG$5 = 1,
|
|
4360
4117
|
COMPARE_UNORDERED_FLAG$3 = 2;
|
|
@@ -4372,7 +4129,7 @@ var COMPARE_PARTIAL_FLAG$5 = 1,
|
|
|
4372
4129
|
* @param {Object} stack Tracks traversed `array` and `other` objects.
|
|
4373
4130
|
* @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
|
|
4374
4131
|
*/
|
|
4375
|
-
function equalArrays
|
|
4132
|
+
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
4376
4133
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5,
|
|
4377
4134
|
arrLength = array.length,
|
|
4378
4135
|
othLength = other.length;
|
|
@@ -4434,14 +4191,10 @@ function equalArrays$2(array, other, bitmask, customizer, equalFunc, stack) {
|
|
|
4434
4191
|
return result;
|
|
4435
4192
|
}
|
|
4436
4193
|
|
|
4437
|
-
var _equalArrays = equalArrays$2;
|
|
4438
|
-
|
|
4439
|
-
var root$4 = _root;
|
|
4440
|
-
|
|
4441
4194
|
/** Built-in value references. */
|
|
4442
|
-
var Uint8Array
|
|
4195
|
+
var Uint8Array = root$1.Uint8Array;
|
|
4443
4196
|
|
|
4444
|
-
var
|
|
4197
|
+
var Uint8Array$1 = Uint8Array;
|
|
4445
4198
|
|
|
4446
4199
|
/**
|
|
4447
4200
|
* Converts `map` to its key-value pairs.
|
|
@@ -4450,8 +4203,7 @@ var _Uint8Array = Uint8Array$1;
|
|
|
4450
4203
|
* @param {Object} map The map to convert.
|
|
4451
4204
|
* @returns {Array} Returns the key-value pairs.
|
|
4452
4205
|
*/
|
|
4453
|
-
|
|
4454
|
-
function mapToArray$1(map) {
|
|
4206
|
+
function mapToArray(map) {
|
|
4455
4207
|
var index = -1,
|
|
4456
4208
|
result = Array(map.size);
|
|
4457
4209
|
|
|
@@ -4461,8 +4213,6 @@ function mapToArray$1(map) {
|
|
|
4461
4213
|
return result;
|
|
4462
4214
|
}
|
|
4463
4215
|
|
|
4464
|
-
var _mapToArray = mapToArray$1;
|
|
4465
|
-
|
|
4466
4216
|
/**
|
|
4467
4217
|
* Converts `set` to an array of its values.
|
|
4468
4218
|
*
|
|
@@ -4470,8 +4220,7 @@ var _mapToArray = mapToArray$1;
|
|
|
4470
4220
|
* @param {Object} set The set to convert.
|
|
4471
4221
|
* @returns {Array} Returns the values.
|
|
4472
4222
|
*/
|
|
4473
|
-
|
|
4474
|
-
function setToArray$1(set) {
|
|
4223
|
+
function setToArray(set) {
|
|
4475
4224
|
var index = -1,
|
|
4476
4225
|
result = Array(set.size);
|
|
4477
4226
|
|
|
@@ -4481,15 +4230,6 @@ function setToArray$1(set) {
|
|
|
4481
4230
|
return result;
|
|
4482
4231
|
}
|
|
4483
4232
|
|
|
4484
|
-
var _setToArray = setToArray$1;
|
|
4485
|
-
|
|
4486
|
-
var Symbol$1 = _Symbol,
|
|
4487
|
-
Uint8Array = _Uint8Array,
|
|
4488
|
-
eq$2 = eq_1,
|
|
4489
|
-
equalArrays$1 = _equalArrays,
|
|
4490
|
-
mapToArray = _mapToArray,
|
|
4491
|
-
setToArray = _setToArray;
|
|
4492
|
-
|
|
4493
4233
|
/** Used to compose bitmasks for value comparisons. */
|
|
4494
4234
|
var COMPARE_PARTIAL_FLAG$4 = 1,
|
|
4495
4235
|
COMPARE_UNORDERED_FLAG$2 = 2;
|
|
@@ -4529,7 +4269,7 @@ var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : undefined,
|
|
|
4529
4269
|
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
4530
4270
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
4531
4271
|
*/
|
|
4532
|
-
function equalByTag
|
|
4272
|
+
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
4533
4273
|
switch (tag) {
|
|
4534
4274
|
case dataViewTag$2:
|
|
4535
4275
|
if ((object.byteLength != other.byteLength) ||
|
|
@@ -4541,7 +4281,7 @@ function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack)
|
|
|
4541
4281
|
|
|
4542
4282
|
case arrayBufferTag$1:
|
|
4543
4283
|
if ((object.byteLength != other.byteLength) ||
|
|
4544
|
-
!equalFunc(new Uint8Array(object), new Uint8Array(other))) {
|
|
4284
|
+
!equalFunc(new Uint8Array$1(object), new Uint8Array$1(other))) {
|
|
4545
4285
|
return false;
|
|
4546
4286
|
}
|
|
4547
4287
|
return true;
|
|
@@ -4551,7 +4291,7 @@ function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack)
|
|
|
4551
4291
|
case numberTag$1:
|
|
4552
4292
|
// Coerce booleans to `1` or `0` and dates to milliseconds.
|
|
4553
4293
|
// Invalid dates are coerced to `NaN`.
|
|
4554
|
-
return eq$
|
|
4294
|
+
return eq$1(+object, +other);
|
|
4555
4295
|
|
|
4556
4296
|
case errorTag$1:
|
|
4557
4297
|
return object.name == other.name && object.message == other.message;
|
|
@@ -4582,7 +4322,7 @@ function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack)
|
|
|
4582
4322
|
|
|
4583
4323
|
// Recursively compare objects (susceptible to call stack limits).
|
|
4584
4324
|
stack.set(object, other);
|
|
4585
|
-
var result = equalArrays
|
|
4325
|
+
var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
4586
4326
|
stack['delete'](object);
|
|
4587
4327
|
return result;
|
|
4588
4328
|
|
|
@@ -4594,8 +4334,6 @@ function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack)
|
|
|
4594
4334
|
return false;
|
|
4595
4335
|
}
|
|
4596
4336
|
|
|
4597
|
-
var _equalByTag = equalByTag$1;
|
|
4598
|
-
|
|
4599
4337
|
/**
|
|
4600
4338
|
* Appends the elements of `values` to `array`.
|
|
4601
4339
|
*
|
|
@@ -4604,8 +4342,7 @@ var _equalByTag = equalByTag$1;
|
|
|
4604
4342
|
* @param {Array} values The values to append.
|
|
4605
4343
|
* @returns {Array} Returns `array`.
|
|
4606
4344
|
*/
|
|
4607
|
-
|
|
4608
|
-
function arrayPush$1(array, values) {
|
|
4345
|
+
function arrayPush(array, values) {
|
|
4609
4346
|
var index = -1,
|
|
4610
4347
|
length = values.length,
|
|
4611
4348
|
offset = array.length;
|
|
@@ -4616,8 +4353,6 @@ function arrayPush$1(array, values) {
|
|
|
4616
4353
|
return array;
|
|
4617
4354
|
}
|
|
4618
4355
|
|
|
4619
|
-
var _arrayPush = arrayPush$1;
|
|
4620
|
-
|
|
4621
4356
|
/**
|
|
4622
4357
|
* Checks if `value` is classified as an `Array` object.
|
|
4623
4358
|
*
|
|
@@ -4641,13 +4376,9 @@ var _arrayPush = arrayPush$1;
|
|
|
4641
4376
|
* _.isArray(_.noop);
|
|
4642
4377
|
* // => false
|
|
4643
4378
|
*/
|
|
4379
|
+
var isArray = Array.isArray;
|
|
4644
4380
|
|
|
4645
|
-
var isArray$
|
|
4646
|
-
|
|
4647
|
-
var isArray_1 = isArray$c;
|
|
4648
|
-
|
|
4649
|
-
var arrayPush = _arrayPush,
|
|
4650
|
-
isArray$b = isArray_1;
|
|
4381
|
+
var isArray$1 = isArray;
|
|
4651
4382
|
|
|
4652
4383
|
/**
|
|
4653
4384
|
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
@@ -4660,13 +4391,11 @@ var arrayPush = _arrayPush,
|
|
|
4660
4391
|
* @param {Function} symbolsFunc The function to get the symbols of `object`.
|
|
4661
4392
|
* @returns {Array} Returns the array of property names and symbols.
|
|
4662
4393
|
*/
|
|
4663
|
-
function baseGetAllKeys
|
|
4394
|
+
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
4664
4395
|
var result = keysFunc(object);
|
|
4665
|
-
return isArray$
|
|
4396
|
+
return isArray$1(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
4666
4397
|
}
|
|
4667
4398
|
|
|
4668
|
-
var _baseGetAllKeys = baseGetAllKeys$1;
|
|
4669
|
-
|
|
4670
4399
|
/**
|
|
4671
4400
|
* A specialized version of `_.filter` for arrays without support for
|
|
4672
4401
|
* iteratee shorthands.
|
|
@@ -4676,8 +4405,7 @@ var _baseGetAllKeys = baseGetAllKeys$1;
|
|
|
4676
4405
|
* @param {Function} predicate The function invoked per iteration.
|
|
4677
4406
|
* @returns {Array} Returns the new filtered array.
|
|
4678
4407
|
*/
|
|
4679
|
-
|
|
4680
|
-
function arrayFilter$1(array, predicate) {
|
|
4408
|
+
function arrayFilter(array, predicate) {
|
|
4681
4409
|
var index = -1,
|
|
4682
4410
|
length = array == null ? 0 : array.length,
|
|
4683
4411
|
resIndex = 0,
|
|
@@ -4692,8 +4420,6 @@ function arrayFilter$1(array, predicate) {
|
|
|
4692
4420
|
return result;
|
|
4693
4421
|
}
|
|
4694
4422
|
|
|
4695
|
-
var _arrayFilter = arrayFilter$1;
|
|
4696
|
-
|
|
4697
4423
|
/**
|
|
4698
4424
|
* This method returns a new empty array.
|
|
4699
4425
|
*
|
|
@@ -4712,16 +4438,10 @@ var _arrayFilter = arrayFilter$1;
|
|
|
4712
4438
|
* console.log(arrays[0] === arrays[1]);
|
|
4713
4439
|
* // => false
|
|
4714
4440
|
*/
|
|
4715
|
-
|
|
4716
|
-
function stubArray$1() {
|
|
4441
|
+
function stubArray() {
|
|
4717
4442
|
return [];
|
|
4718
4443
|
}
|
|
4719
4444
|
|
|
4720
|
-
var stubArray_1 = stubArray$1;
|
|
4721
|
-
|
|
4722
|
-
var arrayFilter = _arrayFilter,
|
|
4723
|
-
stubArray = stubArray_1;
|
|
4724
|
-
|
|
4725
4445
|
/** Used for built-in method references. */
|
|
4726
4446
|
var objectProto$6 = Object.prototype;
|
|
4727
4447
|
|
|
@@ -4738,7 +4458,7 @@ var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
|
4738
4458
|
* @param {Object} object The object to query.
|
|
4739
4459
|
* @returns {Array} Returns the array of symbols.
|
|
4740
4460
|
*/
|
|
4741
|
-
var getSymbols
|
|
4461
|
+
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
4742
4462
|
if (object == null) {
|
|
4743
4463
|
return [];
|
|
4744
4464
|
}
|
|
@@ -4748,7 +4468,7 @@ var getSymbols$1 = !nativeGetSymbols ? stubArray : function(object) {
|
|
|
4748
4468
|
});
|
|
4749
4469
|
};
|
|
4750
4470
|
|
|
4751
|
-
var
|
|
4471
|
+
var getSymbols$1 = getSymbols;
|
|
4752
4472
|
|
|
4753
4473
|
/**
|
|
4754
4474
|
* The base implementation of `_.times` without support for iteratee shorthands
|
|
@@ -4759,8 +4479,7 @@ var _getSymbols = getSymbols$1;
|
|
|
4759
4479
|
* @param {Function} iteratee The function invoked per iteration.
|
|
4760
4480
|
* @returns {Array} Returns the array of results.
|
|
4761
4481
|
*/
|
|
4762
|
-
|
|
4763
|
-
function baseTimes$1(n, iteratee) {
|
|
4482
|
+
function baseTimes(n, iteratee) {
|
|
4764
4483
|
var index = -1,
|
|
4765
4484
|
result = Array(n);
|
|
4766
4485
|
|
|
@@ -4770,11 +4489,6 @@ function baseTimes$1(n, iteratee) {
|
|
|
4770
4489
|
return result;
|
|
4771
4490
|
}
|
|
4772
4491
|
|
|
4773
|
-
var _baseTimes = baseTimes$1;
|
|
4774
|
-
|
|
4775
|
-
var baseGetTag$3 = _baseGetTag,
|
|
4776
|
-
isObjectLike$4 = isObjectLike_1;
|
|
4777
|
-
|
|
4778
4492
|
/** `Object#toString` result references. */
|
|
4779
4493
|
var argsTag$2 = '[object Arguments]';
|
|
4780
4494
|
|
|
@@ -4785,15 +4499,10 @@ var argsTag$2 = '[object Arguments]';
|
|
|
4785
4499
|
* @param {*} value The value to check.
|
|
4786
4500
|
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
4787
4501
|
*/
|
|
4788
|
-
function baseIsArguments
|
|
4789
|
-
return isObjectLike
|
|
4502
|
+
function baseIsArguments(value) {
|
|
4503
|
+
return isObjectLike(value) && baseGetTag(value) == argsTag$2;
|
|
4790
4504
|
}
|
|
4791
4505
|
|
|
4792
|
-
var _baseIsArguments = baseIsArguments$1;
|
|
4793
|
-
|
|
4794
|
-
var baseIsArguments = _baseIsArguments,
|
|
4795
|
-
isObjectLike$3 = isObjectLike_1;
|
|
4796
|
-
|
|
4797
4506
|
/** Used for built-in method references. */
|
|
4798
4507
|
var objectProto$5 = Object.prototype;
|
|
4799
4508
|
|
|
@@ -4821,14 +4530,12 @@ var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
|
|
|
4821
4530
|
* _.isArguments([1, 2, 3]);
|
|
4822
4531
|
* // => false
|
|
4823
4532
|
*/
|
|
4824
|
-
var isArguments
|
|
4825
|
-
return isObjectLike
|
|
4533
|
+
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
|
4534
|
+
return isObjectLike(value) && hasOwnProperty$4.call(value, 'callee') &&
|
|
4826
4535
|
!propertyIsEnumerable.call(value, 'callee');
|
|
4827
4536
|
};
|
|
4828
4537
|
|
|
4829
|
-
var
|
|
4830
|
-
|
|
4831
|
-
var isBuffer$2 = {exports: {}};
|
|
4538
|
+
var isArguments$1 = isArguments;
|
|
4832
4539
|
|
|
4833
4540
|
/**
|
|
4834
4541
|
* This method returns `false`.
|
|
@@ -4843,28 +4550,21 @@ var isBuffer$2 = {exports: {}};
|
|
|
4843
4550
|
* _.times(2, _.stubFalse);
|
|
4844
4551
|
* // => [false, false]
|
|
4845
4552
|
*/
|
|
4846
|
-
|
|
4847
4553
|
function stubFalse() {
|
|
4848
4554
|
return false;
|
|
4849
4555
|
}
|
|
4850
4556
|
|
|
4851
|
-
var stubFalse_1 = stubFalse;
|
|
4852
|
-
|
|
4853
|
-
(function (module, exports) {
|
|
4854
|
-
var root = _root,
|
|
4855
|
-
stubFalse = stubFalse_1;
|
|
4856
|
-
|
|
4857
4557
|
/** Detect free variable `exports`. */
|
|
4858
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
4558
|
+
var freeExports$1 = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
|
4859
4559
|
|
|
4860
4560
|
/** Detect free variable `module`. */
|
|
4861
|
-
var freeModule = freeExports &&
|
|
4561
|
+
var freeModule$1 = freeExports$1 && typeof module == 'object' && module && !module.nodeType && module;
|
|
4862
4562
|
|
|
4863
4563
|
/** Detect the popular CommonJS extension `module.exports`. */
|
|
4864
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
4564
|
+
var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
|
|
4865
4565
|
|
|
4866
4566
|
/** Built-in value references. */
|
|
4867
|
-
var Buffer = moduleExports ? root.Buffer : undefined;
|
|
4567
|
+
var Buffer = moduleExports$1 ? root$1.Buffer : undefined;
|
|
4868
4568
|
|
|
4869
4569
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4870
4570
|
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
@@ -4888,11 +4588,9 @@ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
|
4888
4588
|
*/
|
|
4889
4589
|
var isBuffer = nativeIsBuffer || stubFalse;
|
|
4890
4590
|
|
|
4891
|
-
|
|
4892
|
-
}(isBuffer$2, isBuffer$2.exports));
|
|
4591
|
+
var isBuffer$1 = isBuffer;
|
|
4893
4592
|
|
|
4894
4593
|
/** Used as references for various `Number` constants. */
|
|
4895
|
-
|
|
4896
4594
|
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
4897
4595
|
|
|
4898
4596
|
/** Used to detect unsigned integer values. */
|
|
@@ -4906,7 +4604,7 @@ var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
|
4906
4604
|
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
4907
4605
|
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
4908
4606
|
*/
|
|
4909
|
-
function isIndex
|
|
4607
|
+
function isIndex(value, length) {
|
|
4910
4608
|
var type = typeof value;
|
|
4911
4609
|
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
4912
4610
|
|
|
@@ -4916,10 +4614,7 @@ function isIndex$3(value, length) {
|
|
|
4916
4614
|
(value > -1 && value % 1 == 0 && value < length);
|
|
4917
4615
|
}
|
|
4918
4616
|
|
|
4919
|
-
var _isIndex = isIndex$3;
|
|
4920
|
-
|
|
4921
4617
|
/** Used as references for various `Number` constants. */
|
|
4922
|
-
|
|
4923
4618
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
4924
4619
|
|
|
4925
4620
|
/**
|
|
@@ -4948,17 +4643,11 @@ var MAX_SAFE_INTEGER = 9007199254740991;
|
|
|
4948
4643
|
* _.isLength('3');
|
|
4949
4644
|
* // => false
|
|
4950
4645
|
*/
|
|
4951
|
-
function isLength
|
|
4646
|
+
function isLength(value) {
|
|
4952
4647
|
return typeof value == 'number' &&
|
|
4953
4648
|
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
4954
4649
|
}
|
|
4955
4650
|
|
|
4956
|
-
var isLength_1 = isLength$3;
|
|
4957
|
-
|
|
4958
|
-
var baseGetTag$2 = _baseGetTag,
|
|
4959
|
-
isLength$2 = isLength_1,
|
|
4960
|
-
isObjectLike$2 = isObjectLike_1;
|
|
4961
|
-
|
|
4962
4651
|
/** `Object#toString` result references. */
|
|
4963
4652
|
var argsTag$1 = '[object Arguments]',
|
|
4964
4653
|
arrayTag$1 = '[object Array]',
|
|
@@ -5009,13 +4698,11 @@ typedArrayTags[weakMapTag$1] = false;
|
|
|
5009
4698
|
* @param {*} value The value to check.
|
|
5010
4699
|
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
5011
4700
|
*/
|
|
5012
|
-
function baseIsTypedArray
|
|
5013
|
-
return isObjectLike
|
|
5014
|
-
isLength
|
|
4701
|
+
function baseIsTypedArray(value) {
|
|
4702
|
+
return isObjectLike(value) &&
|
|
4703
|
+
isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
5015
4704
|
}
|
|
5016
4705
|
|
|
5017
|
-
var _baseIsTypedArray = baseIsTypedArray$1;
|
|
5018
|
-
|
|
5019
4706
|
/**
|
|
5020
4707
|
* The base implementation of `_.unary` without support for storing metadata.
|
|
5021
4708
|
*
|
|
@@ -5023,31 +4710,23 @@ var _baseIsTypedArray = baseIsTypedArray$1;
|
|
|
5023
4710
|
* @param {Function} func The function to cap arguments for.
|
|
5024
4711
|
* @returns {Function} Returns the new capped function.
|
|
5025
4712
|
*/
|
|
5026
|
-
|
|
5027
|
-
function baseUnary$1(func) {
|
|
4713
|
+
function baseUnary(func) {
|
|
5028
4714
|
return function(value) {
|
|
5029
4715
|
return func(value);
|
|
5030
4716
|
};
|
|
5031
4717
|
}
|
|
5032
4718
|
|
|
5033
|
-
var _baseUnary = baseUnary$1;
|
|
5034
|
-
|
|
5035
|
-
var _nodeUtil = {exports: {}};
|
|
5036
|
-
|
|
5037
|
-
(function (module, exports) {
|
|
5038
|
-
var freeGlobal = _freeGlobal;
|
|
5039
|
-
|
|
5040
4719
|
/** Detect free variable `exports`. */
|
|
5041
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
4720
|
+
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
|
5042
4721
|
|
|
5043
4722
|
/** Detect free variable `module`. */
|
|
5044
|
-
var freeModule = freeExports &&
|
|
4723
|
+
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
|
|
5045
4724
|
|
|
5046
4725
|
/** Detect the popular CommonJS extension `module.exports`. */
|
|
5047
4726
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
5048
4727
|
|
|
5049
4728
|
/** Detect free variable `process` from Node.js. */
|
|
5050
|
-
var freeProcess = moduleExports && freeGlobal.process;
|
|
4729
|
+
var freeProcess = moduleExports && freeGlobal$1.process;
|
|
5051
4730
|
|
|
5052
4731
|
/** Used to access faster Node.js helpers. */
|
|
5053
4732
|
var nodeUtil = (function() {
|
|
@@ -5064,15 +4743,10 @@ var nodeUtil = (function() {
|
|
|
5064
4743
|
} catch (e) {}
|
|
5065
4744
|
}());
|
|
5066
4745
|
|
|
5067
|
-
|
|
5068
|
-
}(_nodeUtil, _nodeUtil.exports));
|
|
5069
|
-
|
|
5070
|
-
var baseIsTypedArray = _baseIsTypedArray,
|
|
5071
|
-
baseUnary = _baseUnary,
|
|
5072
|
-
nodeUtil = _nodeUtil.exports;
|
|
4746
|
+
var nodeUtil$1 = nodeUtil;
|
|
5073
4747
|
|
|
5074
4748
|
/* Node.js helper references. */
|
|
5075
|
-
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
4749
|
+
var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray;
|
|
5076
4750
|
|
|
5077
4751
|
/**
|
|
5078
4752
|
* Checks if `value` is classified as a typed array.
|
|
@@ -5091,16 +4765,9 @@ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
|
5091
4765
|
* _.isTypedArray([]);
|
|
5092
4766
|
* // => false
|
|
5093
4767
|
*/
|
|
5094
|
-
var isTypedArray
|
|
5095
|
-
|
|
5096
|
-
var isTypedArray_1 = isTypedArray$2;
|
|
4768
|
+
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
5097
4769
|
|
|
5098
|
-
var
|
|
5099
|
-
isArguments$1 = isArguments_1,
|
|
5100
|
-
isArray$a = isArray_1,
|
|
5101
|
-
isBuffer$1 = isBuffer$2.exports,
|
|
5102
|
-
isIndex$2 = _isIndex,
|
|
5103
|
-
isTypedArray$1 = isTypedArray_1;
|
|
4770
|
+
var isTypedArray$1 = isTypedArray;
|
|
5104
4771
|
|
|
5105
4772
|
/** Used for built-in method references. */
|
|
5106
4773
|
var objectProto$4 = Object.prototype;
|
|
@@ -5116,8 +4783,8 @@ var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
|
|
|
5116
4783
|
* @param {boolean} inherited Specify returning inherited property names.
|
|
5117
4784
|
* @returns {Array} Returns the array of property names.
|
|
5118
4785
|
*/
|
|
5119
|
-
function arrayLikeKeys
|
|
5120
|
-
var isArr = isArray$
|
|
4786
|
+
function arrayLikeKeys(value, inherited) {
|
|
4787
|
+
var isArr = isArray$1(value),
|
|
5121
4788
|
isArg = !isArr && isArguments$1(value),
|
|
5122
4789
|
isBuff = !isArr && !isArg && isBuffer$1(value),
|
|
5123
4790
|
isType = !isArr && !isArg && !isBuff && isTypedArray$1(value),
|
|
@@ -5135,7 +4802,7 @@ function arrayLikeKeys$1(value, inherited) {
|
|
|
5135
4802
|
// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
5136
4803
|
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
|
|
5137
4804
|
// Skip index properties.
|
|
5138
|
-
isIndex
|
|
4805
|
+
isIndex(key, length)
|
|
5139
4806
|
))) {
|
|
5140
4807
|
result.push(key);
|
|
5141
4808
|
}
|
|
@@ -5143,10 +4810,7 @@ function arrayLikeKeys$1(value, inherited) {
|
|
|
5143
4810
|
return result;
|
|
5144
4811
|
}
|
|
5145
4812
|
|
|
5146
|
-
var _arrayLikeKeys = arrayLikeKeys$1;
|
|
5147
|
-
|
|
5148
4813
|
/** Used for built-in method references. */
|
|
5149
|
-
|
|
5150
4814
|
var objectProto$3 = Object.prototype;
|
|
5151
4815
|
|
|
5152
4816
|
/**
|
|
@@ -5156,15 +4820,13 @@ var objectProto$3 = Object.prototype;
|
|
|
5156
4820
|
* @param {*} value The value to check.
|
|
5157
4821
|
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
5158
4822
|
*/
|
|
5159
|
-
function isPrototype
|
|
4823
|
+
function isPrototype(value) {
|
|
5160
4824
|
var Ctor = value && value.constructor,
|
|
5161
4825
|
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$3;
|
|
5162
4826
|
|
|
5163
4827
|
return value === proto;
|
|
5164
4828
|
}
|
|
5165
4829
|
|
|
5166
|
-
var _isPrototype = isPrototype$1;
|
|
5167
|
-
|
|
5168
4830
|
/**
|
|
5169
4831
|
* Creates a unary function that invokes `func` with its argument transformed.
|
|
5170
4832
|
*
|
|
@@ -5173,24 +4835,16 @@ var _isPrototype = isPrototype$1;
|
|
|
5173
4835
|
* @param {Function} transform The argument transform.
|
|
5174
4836
|
* @returns {Function} Returns the new function.
|
|
5175
4837
|
*/
|
|
5176
|
-
|
|
5177
|
-
function overArg$1(func, transform) {
|
|
4838
|
+
function overArg(func, transform) {
|
|
5178
4839
|
return function(arg) {
|
|
5179
4840
|
return func(transform(arg));
|
|
5180
4841
|
};
|
|
5181
4842
|
}
|
|
5182
4843
|
|
|
5183
|
-
var _overArg = overArg$1;
|
|
5184
|
-
|
|
5185
|
-
var overArg = _overArg;
|
|
5186
|
-
|
|
5187
4844
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
5188
|
-
var nativeKeys
|
|
5189
|
-
|
|
5190
|
-
var _nativeKeys = nativeKeys$1;
|
|
4845
|
+
var nativeKeys = overArg(Object.keys, Object);
|
|
5191
4846
|
|
|
5192
|
-
var
|
|
5193
|
-
nativeKeys = _nativeKeys;
|
|
4847
|
+
var nativeKeys$1 = nativeKeys;
|
|
5194
4848
|
|
|
5195
4849
|
/** Used for built-in method references. */
|
|
5196
4850
|
var objectProto$2 = Object.prototype;
|
|
@@ -5205,9 +4859,9 @@ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
|
5205
4859
|
* @param {Object} object The object to query.
|
|
5206
4860
|
* @returns {Array} Returns the array of property names.
|
|
5207
4861
|
*/
|
|
5208
|
-
function baseKeys
|
|
4862
|
+
function baseKeys(object) {
|
|
5209
4863
|
if (!isPrototype(object)) {
|
|
5210
|
-
return nativeKeys(object);
|
|
4864
|
+
return nativeKeys$1(object);
|
|
5211
4865
|
}
|
|
5212
4866
|
var result = [];
|
|
5213
4867
|
for (var key in Object(object)) {
|
|
@@ -5218,11 +4872,6 @@ function baseKeys$2(object) {
|
|
|
5218
4872
|
return result;
|
|
5219
4873
|
}
|
|
5220
4874
|
|
|
5221
|
-
var _baseKeys = baseKeys$2;
|
|
5222
|
-
|
|
5223
|
-
var isFunction = isFunction_1,
|
|
5224
|
-
isLength$1 = isLength_1;
|
|
5225
|
-
|
|
5226
4875
|
/**
|
|
5227
4876
|
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
5228
4877
|
* not a function and has a `value.length` that's an integer greater than or
|
|
@@ -5248,16 +4897,10 @@ var isFunction = isFunction_1,
|
|
|
5248
4897
|
* _.isArrayLike(_.noop);
|
|
5249
4898
|
* // => false
|
|
5250
4899
|
*/
|
|
5251
|
-
function isArrayLike
|
|
5252
|
-
return value != null && isLength
|
|
4900
|
+
function isArrayLike(value) {
|
|
4901
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
5253
4902
|
}
|
|
5254
4903
|
|
|
5255
|
-
var isArrayLike_1 = isArrayLike$4;
|
|
5256
|
-
|
|
5257
|
-
var arrayLikeKeys = _arrayLikeKeys,
|
|
5258
|
-
baseKeys$1 = _baseKeys,
|
|
5259
|
-
isArrayLike$3 = isArrayLike_1;
|
|
5260
|
-
|
|
5261
4904
|
/**
|
|
5262
4905
|
* Creates an array of the own enumerable property names of `object`.
|
|
5263
4906
|
*
|
|
@@ -5286,16 +4929,10 @@ var arrayLikeKeys = _arrayLikeKeys,
|
|
|
5286
4929
|
* _.keys('hi');
|
|
5287
4930
|
* // => ['0', '1']
|
|
5288
4931
|
*/
|
|
5289
|
-
function keys
|
|
5290
|
-
return isArrayLike
|
|
4932
|
+
function keys(object) {
|
|
4933
|
+
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
5291
4934
|
}
|
|
5292
4935
|
|
|
5293
|
-
var keys_1 = keys$3;
|
|
5294
|
-
|
|
5295
|
-
var baseGetAllKeys = _baseGetAllKeys,
|
|
5296
|
-
getSymbols = _getSymbols,
|
|
5297
|
-
keys$2 = keys_1;
|
|
5298
|
-
|
|
5299
4936
|
/**
|
|
5300
4937
|
* Creates an array of own enumerable property names and symbols of `object`.
|
|
5301
4938
|
*
|
|
@@ -5303,14 +4940,10 @@ var baseGetAllKeys = _baseGetAllKeys,
|
|
|
5303
4940
|
* @param {Object} object The object to query.
|
|
5304
4941
|
* @returns {Array} Returns the array of property names and symbols.
|
|
5305
4942
|
*/
|
|
5306
|
-
function getAllKeys
|
|
5307
|
-
return baseGetAllKeys(object, keys
|
|
4943
|
+
function getAllKeys(object) {
|
|
4944
|
+
return baseGetAllKeys(object, keys, getSymbols$1);
|
|
5308
4945
|
}
|
|
5309
4946
|
|
|
5310
|
-
var _getAllKeys = getAllKeys$1;
|
|
5311
|
-
|
|
5312
|
-
var getAllKeys = _getAllKeys;
|
|
5313
|
-
|
|
5314
4947
|
/** Used to compose bitmasks for value comparisons. */
|
|
5315
4948
|
var COMPARE_PARTIAL_FLAG$3 = 1;
|
|
5316
4949
|
|
|
@@ -5333,7 +4966,7 @@ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
|
5333
4966
|
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
5334
4967
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
5335
4968
|
*/
|
|
5336
|
-
function equalObjects
|
|
4969
|
+
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
5337
4970
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3,
|
|
5338
4971
|
objProps = getAllKeys(object),
|
|
5339
4972
|
objLength = objProps.length,
|
|
@@ -5398,47 +5031,25 @@ function equalObjects$1(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
5398
5031
|
return result;
|
|
5399
5032
|
}
|
|
5400
5033
|
|
|
5401
|
-
var _equalObjects = equalObjects$1;
|
|
5402
|
-
|
|
5403
|
-
var getNative$4 = _getNative,
|
|
5404
|
-
root$3 = _root;
|
|
5405
|
-
|
|
5406
5034
|
/* Built-in method references that are verified to be native. */
|
|
5407
|
-
var DataView
|
|
5408
|
-
|
|
5409
|
-
var _DataView = DataView$1;
|
|
5035
|
+
var DataView = getNative(root$1, 'DataView');
|
|
5410
5036
|
|
|
5411
|
-
var
|
|
5412
|
-
root$2 = _root;
|
|
5037
|
+
var DataView$1 = DataView;
|
|
5413
5038
|
|
|
5414
5039
|
/* Built-in method references that are verified to be native. */
|
|
5415
|
-
var Promise$
|
|
5040
|
+
var Promise$1 = getNative(root$1, 'Promise');
|
|
5416
5041
|
|
|
5417
|
-
var
|
|
5418
|
-
|
|
5419
|
-
var getNative$2 = _getNative,
|
|
5420
|
-
root$1 = _root;
|
|
5042
|
+
var Promise$2 = Promise$1;
|
|
5421
5043
|
|
|
5422
5044
|
/* Built-in method references that are verified to be native. */
|
|
5423
|
-
var Set$
|
|
5424
|
-
|
|
5425
|
-
var _Set = Set$2;
|
|
5045
|
+
var Set$1 = getNative(root$1, 'Set');
|
|
5426
5046
|
|
|
5427
|
-
var
|
|
5428
|
-
root = _root;
|
|
5047
|
+
var Set$2 = Set$1;
|
|
5429
5048
|
|
|
5430
5049
|
/* Built-in method references that are verified to be native. */
|
|
5431
|
-
var WeakMap$
|
|
5432
|
-
|
|
5433
|
-
var _WeakMap = WeakMap$2;
|
|
5050
|
+
var WeakMap$1 = getNative(root$1, 'WeakMap');
|
|
5434
5051
|
|
|
5435
|
-
var
|
|
5436
|
-
Map$1 = _Map,
|
|
5437
|
-
Promise$1 = _Promise,
|
|
5438
|
-
Set$1 = _Set,
|
|
5439
|
-
WeakMap$1 = _WeakMap,
|
|
5440
|
-
baseGetTag$1 = _baseGetTag,
|
|
5441
|
-
toSource = _toSource;
|
|
5052
|
+
var WeakMap$2 = WeakMap$1;
|
|
5442
5053
|
|
|
5443
5054
|
/** `Object#toString` result references. */
|
|
5444
5055
|
var mapTag$1 = '[object Map]',
|
|
@@ -5450,11 +5061,11 @@ var mapTag$1 = '[object Map]',
|
|
|
5450
5061
|
var dataViewTag = '[object DataView]';
|
|
5451
5062
|
|
|
5452
5063
|
/** Used to detect maps, sets, and weakmaps. */
|
|
5453
|
-
var dataViewCtorString = toSource(DataView),
|
|
5454
|
-
mapCtorString = toSource(Map$
|
|
5455
|
-
promiseCtorString = toSource(Promise$
|
|
5456
|
-
setCtorString = toSource(Set$
|
|
5457
|
-
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);
|
|
5458
5069
|
|
|
5459
5070
|
/**
|
|
5460
5071
|
* Gets the `toStringTag` of `value`.
|
|
@@ -5463,16 +5074,16 @@ var dataViewCtorString = toSource(DataView),
|
|
|
5463
5074
|
* @param {*} value The value to query.
|
|
5464
5075
|
* @returns {string} Returns the `toStringTag`.
|
|
5465
5076
|
*/
|
|
5466
|
-
var getTag
|
|
5077
|
+
var getTag = baseGetTag;
|
|
5467
5078
|
|
|
5468
5079
|
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
|
5469
|
-
if ((DataView && getTag
|
|
5470
|
-
(Map$
|
|
5471
|
-
(Promise$
|
|
5472
|
-
(Set$
|
|
5473
|
-
(WeakMap$
|
|
5474
|
-
getTag
|
|
5475
|
-
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),
|
|
5476
5087
|
Ctor = result == objectTag$1 ? value.constructor : undefined,
|
|
5477
5088
|
ctorString = Ctor ? toSource(Ctor) : '';
|
|
5478
5089
|
|
|
@@ -5489,16 +5100,7 @@ if ((DataView && getTag$2(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|
|
5489
5100
|
};
|
|
5490
5101
|
}
|
|
5491
5102
|
|
|
5492
|
-
var
|
|
5493
|
-
|
|
5494
|
-
var Stack$1 = _Stack,
|
|
5495
|
-
equalArrays = _equalArrays,
|
|
5496
|
-
equalByTag = _equalByTag,
|
|
5497
|
-
equalObjects = _equalObjects,
|
|
5498
|
-
getTag$1 = _getTag,
|
|
5499
|
-
isArray$9 = isArray_1,
|
|
5500
|
-
isBuffer = isBuffer$2.exports,
|
|
5501
|
-
isTypedArray = isTypedArray_1;
|
|
5103
|
+
var getTag$1 = getTag;
|
|
5502
5104
|
|
|
5503
5105
|
/** Used to compose bitmasks for value comparisons. */
|
|
5504
5106
|
var COMPARE_PARTIAL_FLAG$2 = 1;
|
|
@@ -5528,9 +5130,9 @@ var hasOwnProperty = objectProto.hasOwnProperty;
|
|
|
5528
5130
|
* @param {Object} [stack] Tracks traversed `object` and `other` objects.
|
|
5529
5131
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
5530
5132
|
*/
|
|
5531
|
-
function baseIsEqualDeep
|
|
5532
|
-
var objIsArr = isArray$
|
|
5533
|
-
othIsArr = isArray$
|
|
5133
|
+
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
5134
|
+
var objIsArr = isArray$1(object),
|
|
5135
|
+
othIsArr = isArray$1(other),
|
|
5534
5136
|
objTag = objIsArr ? arrayTag : getTag$1(object),
|
|
5535
5137
|
othTag = othIsArr ? arrayTag : getTag$1(other);
|
|
5536
5138
|
|
|
@@ -5541,16 +5143,16 @@ function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack)
|
|
|
5541
5143
|
othIsObj = othTag == objectTag,
|
|
5542
5144
|
isSameTag = objTag == othTag;
|
|
5543
5145
|
|
|
5544
|
-
if (isSameTag && isBuffer(object)) {
|
|
5545
|
-
if (!isBuffer(other)) {
|
|
5146
|
+
if (isSameTag && isBuffer$1(object)) {
|
|
5147
|
+
if (!isBuffer$1(other)) {
|
|
5546
5148
|
return false;
|
|
5547
5149
|
}
|
|
5548
5150
|
objIsArr = true;
|
|
5549
5151
|
objIsObj = false;
|
|
5550
5152
|
}
|
|
5551
5153
|
if (isSameTag && !objIsObj) {
|
|
5552
|
-
stack || (stack = new Stack
|
|
5553
|
-
return (objIsArr || isTypedArray(object))
|
|
5154
|
+
stack || (stack = new Stack);
|
|
5155
|
+
return (objIsArr || isTypedArray$1(object))
|
|
5554
5156
|
? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
|
|
5555
5157
|
: equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
5556
5158
|
}
|
|
@@ -5562,22 +5164,17 @@ function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack)
|
|
|
5562
5164
|
var objUnwrapped = objIsWrapped ? object.value() : object,
|
|
5563
5165
|
othUnwrapped = othIsWrapped ? other.value() : other;
|
|
5564
5166
|
|
|
5565
|
-
stack || (stack = new Stack
|
|
5167
|
+
stack || (stack = new Stack);
|
|
5566
5168
|
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
5567
5169
|
}
|
|
5568
5170
|
}
|
|
5569
5171
|
if (!isSameTag) {
|
|
5570
5172
|
return false;
|
|
5571
5173
|
}
|
|
5572
|
-
stack || (stack = new Stack
|
|
5174
|
+
stack || (stack = new Stack);
|
|
5573
5175
|
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
5574
5176
|
}
|
|
5575
5177
|
|
|
5576
|
-
var _baseIsEqualDeep = baseIsEqualDeep$1;
|
|
5577
|
-
|
|
5578
|
-
var baseIsEqualDeep = _baseIsEqualDeep,
|
|
5579
|
-
isObjectLike$1 = isObjectLike_1;
|
|
5580
|
-
|
|
5581
5178
|
/**
|
|
5582
5179
|
* The base implementation of `_.isEqual` which supports partial comparisons
|
|
5583
5180
|
* and tracks traversed objects.
|
|
@@ -5592,21 +5189,16 @@ var baseIsEqualDeep = _baseIsEqualDeep,
|
|
|
5592
5189
|
* @param {Object} [stack] Tracks traversed `value` and `other` objects.
|
|
5593
5190
|
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
5594
5191
|
*/
|
|
5595
|
-
function baseIsEqual
|
|
5192
|
+
function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
5596
5193
|
if (value === other) {
|
|
5597
5194
|
return true;
|
|
5598
5195
|
}
|
|
5599
|
-
if (value == null || other == null || (!isObjectLike
|
|
5196
|
+
if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
|
|
5600
5197
|
return value !== value && other !== other;
|
|
5601
5198
|
}
|
|
5602
|
-
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual
|
|
5199
|
+
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
5603
5200
|
}
|
|
5604
5201
|
|
|
5605
|
-
var _baseIsEqual = baseIsEqual$2;
|
|
5606
|
-
|
|
5607
|
-
var Stack = _Stack,
|
|
5608
|
-
baseIsEqual$1 = _baseIsEqual;
|
|
5609
|
-
|
|
5610
5202
|
/** Used to compose bitmasks for value comparisons. */
|
|
5611
5203
|
var COMPARE_PARTIAL_FLAG$1 = 1,
|
|
5612
5204
|
COMPARE_UNORDERED_FLAG$1 = 2;
|
|
@@ -5621,7 +5213,7 @@ var COMPARE_PARTIAL_FLAG$1 = 1,
|
|
|
5621
5213
|
* @param {Function} [customizer] The function to customize comparisons.
|
|
5622
5214
|
* @returns {boolean} Returns `true` if `object` is a match, else `false`.
|
|
5623
5215
|
*/
|
|
5624
|
-
function baseIsMatch
|
|
5216
|
+
function baseIsMatch(object, source, matchData, customizer) {
|
|
5625
5217
|
var index = matchData.length,
|
|
5626
5218
|
length = index,
|
|
5627
5219
|
noCustomizer = !customizer;
|
|
@@ -5655,7 +5247,7 @@ function baseIsMatch$1(object, source, matchData, customizer) {
|
|
|
5655
5247
|
var result = customizer(objValue, srcValue, key, object, source, stack);
|
|
5656
5248
|
}
|
|
5657
5249
|
if (!(result === undefined
|
|
5658
|
-
? baseIsEqual
|
|
5250
|
+
? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack)
|
|
5659
5251
|
: result
|
|
5660
5252
|
)) {
|
|
5661
5253
|
return false;
|
|
@@ -5665,10 +5257,6 @@ function baseIsMatch$1(object, source, matchData, customizer) {
|
|
|
5665
5257
|
return true;
|
|
5666
5258
|
}
|
|
5667
5259
|
|
|
5668
|
-
var _baseIsMatch = baseIsMatch$1;
|
|
5669
|
-
|
|
5670
|
-
var isObject$2 = isObject_1;
|
|
5671
|
-
|
|
5672
5260
|
/**
|
|
5673
5261
|
* Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
|
|
5674
5262
|
*
|
|
@@ -5677,15 +5265,10 @@ var isObject$2 = isObject_1;
|
|
|
5677
5265
|
* @returns {boolean} Returns `true` if `value` if suitable for strict
|
|
5678
5266
|
* equality comparisons, else `false`.
|
|
5679
5267
|
*/
|
|
5680
|
-
function isStrictComparable
|
|
5681
|
-
return value === value && !isObject
|
|
5268
|
+
function isStrictComparable(value) {
|
|
5269
|
+
return value === value && !isObject(value);
|
|
5682
5270
|
}
|
|
5683
5271
|
|
|
5684
|
-
var _isStrictComparable = isStrictComparable$2;
|
|
5685
|
-
|
|
5686
|
-
var isStrictComparable$1 = _isStrictComparable,
|
|
5687
|
-
keys$1 = keys_1;
|
|
5688
|
-
|
|
5689
5272
|
/**
|
|
5690
5273
|
* Gets the property names, values, and compare flags of `object`.
|
|
5691
5274
|
*
|
|
@@ -5693,21 +5276,19 @@ var isStrictComparable$1 = _isStrictComparable,
|
|
|
5693
5276
|
* @param {Object} object The object to query.
|
|
5694
5277
|
* @returns {Array} Returns the match data of `object`.
|
|
5695
5278
|
*/
|
|
5696
|
-
function getMatchData
|
|
5697
|
-
var result = keys
|
|
5279
|
+
function getMatchData(object) {
|
|
5280
|
+
var result = keys(object),
|
|
5698
5281
|
length = result.length;
|
|
5699
5282
|
|
|
5700
5283
|
while (length--) {
|
|
5701
5284
|
var key = result[length],
|
|
5702
5285
|
value = object[key];
|
|
5703
5286
|
|
|
5704
|
-
result[length] = [key, value, isStrictComparable
|
|
5287
|
+
result[length] = [key, value, isStrictComparable(value)];
|
|
5705
5288
|
}
|
|
5706
5289
|
return result;
|
|
5707
5290
|
}
|
|
5708
5291
|
|
|
5709
|
-
var _getMatchData = getMatchData$1;
|
|
5710
|
-
|
|
5711
5292
|
/**
|
|
5712
5293
|
* A specialized version of `matchesProperty` for source values suitable
|
|
5713
5294
|
* for strict equality comparisons, i.e. `===`.
|
|
@@ -5717,8 +5298,7 @@ var _getMatchData = getMatchData$1;
|
|
|
5717
5298
|
* @param {*} srcValue The value to match.
|
|
5718
5299
|
* @returns {Function} Returns the new spec function.
|
|
5719
5300
|
*/
|
|
5720
|
-
|
|
5721
|
-
function matchesStrictComparable$2(key, srcValue) {
|
|
5301
|
+
function matchesStrictComparable(key, srcValue) {
|
|
5722
5302
|
return function(object) {
|
|
5723
5303
|
if (object == null) {
|
|
5724
5304
|
return false;
|
|
@@ -5728,12 +5308,6 @@ function matchesStrictComparable$2(key, srcValue) {
|
|
|
5728
5308
|
};
|
|
5729
5309
|
}
|
|
5730
5310
|
|
|
5731
|
-
var _matchesStrictComparable = matchesStrictComparable$2;
|
|
5732
|
-
|
|
5733
|
-
var baseIsMatch = _baseIsMatch,
|
|
5734
|
-
getMatchData = _getMatchData,
|
|
5735
|
-
matchesStrictComparable$1 = _matchesStrictComparable;
|
|
5736
|
-
|
|
5737
5311
|
/**
|
|
5738
5312
|
* The base implementation of `_.matches` which doesn't clone `source`.
|
|
5739
5313
|
*
|
|
@@ -5741,21 +5315,16 @@ var baseIsMatch = _baseIsMatch,
|
|
|
5741
5315
|
* @param {Object} source The object of property values to match.
|
|
5742
5316
|
* @returns {Function} Returns the new spec function.
|
|
5743
5317
|
*/
|
|
5744
|
-
function baseMatches
|
|
5318
|
+
function baseMatches(source) {
|
|
5745
5319
|
var matchData = getMatchData(source);
|
|
5746
5320
|
if (matchData.length == 1 && matchData[0][2]) {
|
|
5747
|
-
return matchesStrictComparable
|
|
5321
|
+
return matchesStrictComparable(matchData[0][0], matchData[0][1]);
|
|
5748
5322
|
}
|
|
5749
5323
|
return function(object) {
|
|
5750
5324
|
return object === source || baseIsMatch(object, source, matchData);
|
|
5751
5325
|
};
|
|
5752
5326
|
}
|
|
5753
5327
|
|
|
5754
|
-
var _baseMatches = baseMatches$1;
|
|
5755
|
-
|
|
5756
|
-
var isArray$8 = isArray_1,
|
|
5757
|
-
isSymbol$4 = isSymbol_1;
|
|
5758
|
-
|
|
5759
5328
|
/** Used to match property names within property paths. */
|
|
5760
5329
|
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
5761
5330
|
reIsPlainProp = /^\w*$/;
|
|
@@ -5768,23 +5337,19 @@ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
|
5768
5337
|
* @param {Object} [object] The object to query keys on.
|
|
5769
5338
|
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
5770
5339
|
*/
|
|
5771
|
-
function isKey
|
|
5772
|
-
if (isArray$
|
|
5340
|
+
function isKey(value, object) {
|
|
5341
|
+
if (isArray$1(value)) {
|
|
5773
5342
|
return false;
|
|
5774
5343
|
}
|
|
5775
5344
|
var type = typeof value;
|
|
5776
5345
|
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
|
|
5777
|
-
value == null || isSymbol
|
|
5346
|
+
value == null || isSymbol(value)) {
|
|
5778
5347
|
return true;
|
|
5779
5348
|
}
|
|
5780
5349
|
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
|
|
5781
5350
|
(object != null && value in Object(object));
|
|
5782
5351
|
}
|
|
5783
5352
|
|
|
5784
|
-
var _isKey = isKey$3;
|
|
5785
|
-
|
|
5786
|
-
var MapCache = _MapCache;
|
|
5787
|
-
|
|
5788
5353
|
/** Error message constants. */
|
|
5789
5354
|
var FUNC_ERROR_TEXT$1 = 'Expected a function';
|
|
5790
5355
|
|
|
@@ -5832,7 +5397,7 @@ var FUNC_ERROR_TEXT$1 = 'Expected a function';
|
|
|
5832
5397
|
* // Replace `_.memoize.Cache`.
|
|
5833
5398
|
* _.memoize.Cache = WeakMap;
|
|
5834
5399
|
*/
|
|
5835
|
-
function memoize
|
|
5400
|
+
function memoize(func, resolver) {
|
|
5836
5401
|
if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
|
|
5837
5402
|
throw new TypeError(FUNC_ERROR_TEXT$1);
|
|
5838
5403
|
}
|
|
@@ -5848,16 +5413,12 @@ function memoize$1(func, resolver) {
|
|
|
5848
5413
|
memoized.cache = cache.set(key, result) || cache;
|
|
5849
5414
|
return result;
|
|
5850
5415
|
};
|
|
5851
|
-
memoized.cache = new (memoize
|
|
5416
|
+
memoized.cache = new (memoize.Cache || MapCache);
|
|
5852
5417
|
return memoized;
|
|
5853
5418
|
}
|
|
5854
5419
|
|
|
5855
5420
|
// Expose `MapCache`.
|
|
5856
|
-
memoize
|
|
5857
|
-
|
|
5858
|
-
var memoize_1 = memoize$1;
|
|
5859
|
-
|
|
5860
|
-
var memoize = memoize_1;
|
|
5421
|
+
memoize.Cache = MapCache;
|
|
5861
5422
|
|
|
5862
5423
|
/** Used as the maximum memoize cache size. */
|
|
5863
5424
|
var MAX_MEMOIZE_SIZE = 500;
|
|
@@ -5870,7 +5431,7 @@ var MAX_MEMOIZE_SIZE = 500;
|
|
|
5870
5431
|
* @param {Function} func The function to have its output memoized.
|
|
5871
5432
|
* @returns {Function} Returns the new memoized function.
|
|
5872
5433
|
*/
|
|
5873
|
-
function memoizeCapped
|
|
5434
|
+
function memoizeCapped(func) {
|
|
5874
5435
|
var result = memoize(func, function(key) {
|
|
5875
5436
|
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
5876
5437
|
cache.clear();
|
|
@@ -5882,10 +5443,6 @@ function memoizeCapped$1(func) {
|
|
|
5882
5443
|
return result;
|
|
5883
5444
|
}
|
|
5884
5445
|
|
|
5885
|
-
var _memoizeCapped = memoizeCapped$1;
|
|
5886
|
-
|
|
5887
|
-
var memoizeCapped = _memoizeCapped;
|
|
5888
|
-
|
|
5889
5446
|
/** Used to match property names within property paths. */
|
|
5890
5447
|
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
5891
5448
|
|
|
@@ -5899,7 +5456,7 @@ var reEscapeChar = /\\(\\)?/g;
|
|
|
5899
5456
|
* @param {string} string The string to convert.
|
|
5900
5457
|
* @returns {Array} Returns the property path array.
|
|
5901
5458
|
*/
|
|
5902
|
-
var stringToPath
|
|
5459
|
+
var stringToPath = memoizeCapped(function(string) {
|
|
5903
5460
|
var result = [];
|
|
5904
5461
|
if (string.charCodeAt(0) === 46 /* . */) {
|
|
5905
5462
|
result.push('');
|
|
@@ -5910,7 +5467,7 @@ var stringToPath$1 = memoizeCapped(function(string) {
|
|
|
5910
5467
|
return result;
|
|
5911
5468
|
});
|
|
5912
5469
|
|
|
5913
|
-
var
|
|
5470
|
+
var stringToPath$1 = stringToPath;
|
|
5914
5471
|
|
|
5915
5472
|
/**
|
|
5916
5473
|
* A specialized version of `_.map` for arrays without support for iteratee
|
|
@@ -5921,8 +5478,7 @@ var _stringToPath = stringToPath$1;
|
|
|
5921
5478
|
* @param {Function} iteratee The function invoked per iteration.
|
|
5922
5479
|
* @returns {Array} Returns the new mapped array.
|
|
5923
5480
|
*/
|
|
5924
|
-
|
|
5925
|
-
function arrayMap$1(array, iteratee) {
|
|
5481
|
+
function arrayMap(array, iteratee) {
|
|
5926
5482
|
var index = -1,
|
|
5927
5483
|
length = array == null ? 0 : array.length,
|
|
5928
5484
|
result = Array(length);
|
|
@@ -5933,18 +5489,11 @@ function arrayMap$1(array, iteratee) {
|
|
|
5933
5489
|
return result;
|
|
5934
5490
|
}
|
|
5935
5491
|
|
|
5936
|
-
var _arrayMap = arrayMap$1;
|
|
5937
|
-
|
|
5938
|
-
var Symbol = _Symbol,
|
|
5939
|
-
arrayMap = _arrayMap,
|
|
5940
|
-
isArray$7 = isArray_1,
|
|
5941
|
-
isSymbol$3 = isSymbol_1;
|
|
5942
|
-
|
|
5943
5492
|
/** Used as references for various `Number` constants. */
|
|
5944
5493
|
var INFINITY$2 = 1 / 0;
|
|
5945
5494
|
|
|
5946
5495
|
/** Used to convert symbols to primitives and strings. */
|
|
5947
|
-
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
5496
|
+
var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined,
|
|
5948
5497
|
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
5949
5498
|
|
|
5950
5499
|
/**
|
|
@@ -5955,26 +5504,22 @@ var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
|
5955
5504
|
* @param {*} value The value to process.
|
|
5956
5505
|
* @returns {string} Returns the string.
|
|
5957
5506
|
*/
|
|
5958
|
-
function baseToString
|
|
5507
|
+
function baseToString(value) {
|
|
5959
5508
|
// Exit early for strings to avoid a performance hit in some environments.
|
|
5960
5509
|
if (typeof value == 'string') {
|
|
5961
5510
|
return value;
|
|
5962
5511
|
}
|
|
5963
|
-
if (isArray$
|
|
5512
|
+
if (isArray$1(value)) {
|
|
5964
5513
|
// Recursively convert values (susceptible to call stack limits).
|
|
5965
|
-
return arrayMap(value, baseToString
|
|
5514
|
+
return arrayMap(value, baseToString) + '';
|
|
5966
5515
|
}
|
|
5967
|
-
if (isSymbol
|
|
5516
|
+
if (isSymbol(value)) {
|
|
5968
5517
|
return symbolToString ? symbolToString.call(value) : '';
|
|
5969
5518
|
}
|
|
5970
5519
|
var result = (value + '');
|
|
5971
5520
|
return (result == '0' && (1 / value) == -INFINITY$2) ? '-0' : result;
|
|
5972
5521
|
}
|
|
5973
5522
|
|
|
5974
|
-
var _baseToString = baseToString$1;
|
|
5975
|
-
|
|
5976
|
-
var baseToString = _baseToString;
|
|
5977
|
-
|
|
5978
5523
|
/**
|
|
5979
5524
|
* Converts `value` to a string. An empty string is returned for `null`
|
|
5980
5525
|
* and `undefined` values. The sign of `-0` is preserved.
|
|
@@ -5996,17 +5541,10 @@ var baseToString = _baseToString;
|
|
|
5996
5541
|
* _.toString([1, 2, 3]);
|
|
5997
5542
|
* // => '1,2,3'
|
|
5998
5543
|
*/
|
|
5999
|
-
function toString
|
|
5544
|
+
function toString(value) {
|
|
6000
5545
|
return value == null ? '' : baseToString(value);
|
|
6001
5546
|
}
|
|
6002
5547
|
|
|
6003
|
-
var toString_1 = toString$1;
|
|
6004
|
-
|
|
6005
|
-
var isArray$6 = isArray_1,
|
|
6006
|
-
isKey$2 = _isKey,
|
|
6007
|
-
stringToPath = _stringToPath,
|
|
6008
|
-
toString = toString_1;
|
|
6009
|
-
|
|
6010
5548
|
/**
|
|
6011
5549
|
* Casts `value` to a path array if it's not one.
|
|
6012
5550
|
*
|
|
@@ -6015,17 +5553,13 @@ var isArray$6 = isArray_1,
|
|
|
6015
5553
|
* @param {Object} [object] The object to query keys on.
|
|
6016
5554
|
* @returns {Array} Returns the cast property path array.
|
|
6017
5555
|
*/
|
|
6018
|
-
function castPath
|
|
6019
|
-
if (isArray$
|
|
5556
|
+
function castPath(value, object) {
|
|
5557
|
+
if (isArray$1(value)) {
|
|
6020
5558
|
return value;
|
|
6021
5559
|
}
|
|
6022
|
-
return isKey
|
|
5560
|
+
return isKey(value, object) ? [value] : stringToPath$1(toString(value));
|
|
6023
5561
|
}
|
|
6024
5562
|
|
|
6025
|
-
var _castPath = castPath$2;
|
|
6026
|
-
|
|
6027
|
-
var isSymbol$2 = isSymbol_1;
|
|
6028
|
-
|
|
6029
5563
|
/** Used as references for various `Number` constants. */
|
|
6030
5564
|
var INFINITY$1 = 1 / 0;
|
|
6031
5565
|
|
|
@@ -6036,19 +5570,14 @@ var INFINITY$1 = 1 / 0;
|
|
|
6036
5570
|
* @param {*} value The value to inspect.
|
|
6037
5571
|
* @returns {string|symbol} Returns the key.
|
|
6038
5572
|
*/
|
|
6039
|
-
function toKey
|
|
6040
|
-
if (typeof value == 'string' || isSymbol
|
|
5573
|
+
function toKey(value) {
|
|
5574
|
+
if (typeof value == 'string' || isSymbol(value)) {
|
|
6041
5575
|
return value;
|
|
6042
5576
|
}
|
|
6043
5577
|
var result = (value + '');
|
|
6044
5578
|
return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
|
|
6045
5579
|
}
|
|
6046
5580
|
|
|
6047
|
-
var _toKey = toKey$4;
|
|
6048
|
-
|
|
6049
|
-
var castPath$1 = _castPath,
|
|
6050
|
-
toKey$3 = _toKey;
|
|
6051
|
-
|
|
6052
5581
|
/**
|
|
6053
5582
|
* The base implementation of `_.get` without support for default values.
|
|
6054
5583
|
*
|
|
@@ -6057,22 +5586,18 @@ var castPath$1 = _castPath,
|
|
|
6057
5586
|
* @param {Array|string} path The path of the property to get.
|
|
6058
5587
|
* @returns {*} Returns the resolved value.
|
|
6059
5588
|
*/
|
|
6060
|
-
function baseGet
|
|
6061
|
-
path = castPath
|
|
5589
|
+
function baseGet(object, path) {
|
|
5590
|
+
path = castPath(path, object);
|
|
6062
5591
|
|
|
6063
5592
|
var index = 0,
|
|
6064
5593
|
length = path.length;
|
|
6065
5594
|
|
|
6066
5595
|
while (object != null && index < length) {
|
|
6067
|
-
object = object[toKey
|
|
5596
|
+
object = object[toKey(path[index++])];
|
|
6068
5597
|
}
|
|
6069
5598
|
return (index && index == length) ? object : undefined;
|
|
6070
5599
|
}
|
|
6071
5600
|
|
|
6072
|
-
var _baseGet = baseGet$2;
|
|
6073
|
-
|
|
6074
|
-
var baseGet$1 = _baseGet;
|
|
6075
|
-
|
|
6076
5601
|
/**
|
|
6077
5602
|
* Gets the value at `path` of `object`. If the resolved value is
|
|
6078
5603
|
* `undefined`, the `defaultValue` is returned in its place.
|
|
@@ -6098,13 +5623,11 @@ var baseGet$1 = _baseGet;
|
|
|
6098
5623
|
* _.get(object, 'a.b.c', 'default');
|
|
6099
5624
|
* // => 'default'
|
|
6100
5625
|
*/
|
|
6101
|
-
function get
|
|
6102
|
-
var result = object == null ? undefined : baseGet
|
|
5626
|
+
function get(object, path, defaultValue) {
|
|
5627
|
+
var result = object == null ? undefined : baseGet(object, path);
|
|
6103
5628
|
return result === undefined ? defaultValue : result;
|
|
6104
5629
|
}
|
|
6105
5630
|
|
|
6106
|
-
var get_1 = get$1;
|
|
6107
|
-
|
|
6108
5631
|
/**
|
|
6109
5632
|
* The base implementation of `_.hasIn` without support for deep paths.
|
|
6110
5633
|
*
|
|
@@ -6113,20 +5636,10 @@ var get_1 = get$1;
|
|
|
6113
5636
|
* @param {Array|string} key The key to check.
|
|
6114
5637
|
* @returns {boolean} Returns `true` if `key` exists, else `false`.
|
|
6115
5638
|
*/
|
|
6116
|
-
|
|
6117
|
-
function baseHasIn$1(object, key) {
|
|
5639
|
+
function baseHasIn(object, key) {
|
|
6118
5640
|
return object != null && key in Object(object);
|
|
6119
5641
|
}
|
|
6120
5642
|
|
|
6121
|
-
var _baseHasIn = baseHasIn$1;
|
|
6122
|
-
|
|
6123
|
-
var castPath = _castPath,
|
|
6124
|
-
isArguments = isArguments_1,
|
|
6125
|
-
isArray$5 = isArray_1,
|
|
6126
|
-
isIndex$1 = _isIndex,
|
|
6127
|
-
isLength = isLength_1,
|
|
6128
|
-
toKey$2 = _toKey;
|
|
6129
|
-
|
|
6130
5643
|
/**
|
|
6131
5644
|
* Checks if `path` exists on `object`.
|
|
6132
5645
|
*
|
|
@@ -6136,7 +5649,7 @@ var castPath = _castPath,
|
|
|
6136
5649
|
* @param {Function} hasFunc The function to check properties.
|
|
6137
5650
|
* @returns {boolean} Returns `true` if `path` exists, else `false`.
|
|
6138
5651
|
*/
|
|
6139
|
-
function hasPath
|
|
5652
|
+
function hasPath(object, path, hasFunc) {
|
|
6140
5653
|
path = castPath(path, object);
|
|
6141
5654
|
|
|
6142
5655
|
var index = -1,
|
|
@@ -6144,7 +5657,7 @@ function hasPath$1(object, path, hasFunc) {
|
|
|
6144
5657
|
result = false;
|
|
6145
5658
|
|
|
6146
5659
|
while (++index < length) {
|
|
6147
|
-
var key = toKey
|
|
5660
|
+
var key = toKey(path[index]);
|
|
6148
5661
|
if (!(result = object != null && hasFunc(object, key))) {
|
|
6149
5662
|
break;
|
|
6150
5663
|
}
|
|
@@ -6154,15 +5667,10 @@ function hasPath$1(object, path, hasFunc) {
|
|
|
6154
5667
|
return result;
|
|
6155
5668
|
}
|
|
6156
5669
|
length = object == null ? 0 : object.length;
|
|
6157
|
-
return !!length && isLength(length) && isIndex
|
|
6158
|
-
(isArray$
|
|
5670
|
+
return !!length && isLength(length) && isIndex(key, length) &&
|
|
5671
|
+
(isArray$1(object) || isArguments$1(object));
|
|
6159
5672
|
}
|
|
6160
5673
|
|
|
6161
|
-
var _hasPath = hasPath$1;
|
|
6162
|
-
|
|
6163
|
-
var baseHasIn = _baseHasIn,
|
|
6164
|
-
hasPath = _hasPath;
|
|
6165
|
-
|
|
6166
5674
|
/**
|
|
6167
5675
|
* Checks if `path` is a direct or inherited property of `object`.
|
|
6168
5676
|
*
|
|
@@ -6189,20 +5697,10 @@ var baseHasIn = _baseHasIn,
|
|
|
6189
5697
|
* _.hasIn(object, 'b');
|
|
6190
5698
|
* // => false
|
|
6191
5699
|
*/
|
|
6192
|
-
function hasIn
|
|
5700
|
+
function hasIn(object, path) {
|
|
6193
5701
|
return object != null && hasPath(object, path, baseHasIn);
|
|
6194
5702
|
}
|
|
6195
5703
|
|
|
6196
|
-
var hasIn_1 = hasIn$1;
|
|
6197
|
-
|
|
6198
|
-
var baseIsEqual = _baseIsEqual,
|
|
6199
|
-
get = get_1,
|
|
6200
|
-
hasIn = hasIn_1,
|
|
6201
|
-
isKey$1 = _isKey,
|
|
6202
|
-
isStrictComparable = _isStrictComparable,
|
|
6203
|
-
matchesStrictComparable = _matchesStrictComparable,
|
|
6204
|
-
toKey$1 = _toKey;
|
|
6205
|
-
|
|
6206
5704
|
/** Used to compose bitmasks for value comparisons. */
|
|
6207
5705
|
var COMPARE_PARTIAL_FLAG = 1,
|
|
6208
5706
|
COMPARE_UNORDERED_FLAG = 2;
|
|
@@ -6215,9 +5713,9 @@ var COMPARE_PARTIAL_FLAG = 1,
|
|
|
6215
5713
|
* @param {*} srcValue The value to match.
|
|
6216
5714
|
* @returns {Function} Returns the new spec function.
|
|
6217
5715
|
*/
|
|
6218
|
-
function baseMatchesProperty
|
|
6219
|
-
if (isKey
|
|
6220
|
-
return matchesStrictComparable(toKey
|
|
5716
|
+
function baseMatchesProperty(path, srcValue) {
|
|
5717
|
+
if (isKey(path) && isStrictComparable(srcValue)) {
|
|
5718
|
+
return matchesStrictComparable(toKey(path), srcValue);
|
|
6221
5719
|
}
|
|
6222
5720
|
return function(object) {
|
|
6223
5721
|
var objValue = get(object, path);
|
|
@@ -6227,8 +5725,6 @@ function baseMatchesProperty$1(path, srcValue) {
|
|
|
6227
5725
|
};
|
|
6228
5726
|
}
|
|
6229
5727
|
|
|
6230
|
-
var _baseMatchesProperty = baseMatchesProperty$1;
|
|
6231
|
-
|
|
6232
5728
|
/**
|
|
6233
5729
|
* This method returns the first argument it receives.
|
|
6234
5730
|
*
|
|
@@ -6245,13 +5741,10 @@ var _baseMatchesProperty = baseMatchesProperty$1;
|
|
|
6245
5741
|
* console.log(_.identity(object) === object);
|
|
6246
5742
|
* // => true
|
|
6247
5743
|
*/
|
|
6248
|
-
|
|
6249
|
-
function identity$3(value) {
|
|
5744
|
+
function identity(value) {
|
|
6250
5745
|
return value;
|
|
6251
5746
|
}
|
|
6252
5747
|
|
|
6253
|
-
var identity_1 = identity$3;
|
|
6254
|
-
|
|
6255
5748
|
/**
|
|
6256
5749
|
* The base implementation of `_.property` without support for deep paths.
|
|
6257
5750
|
*
|
|
@@ -6259,17 +5752,12 @@ var identity_1 = identity$3;
|
|
|
6259
5752
|
* @param {string} key The key of the property to get.
|
|
6260
5753
|
* @returns {Function} Returns the new accessor function.
|
|
6261
5754
|
*/
|
|
6262
|
-
|
|
6263
|
-
function baseProperty$2(key) {
|
|
5755
|
+
function baseProperty(key) {
|
|
6264
5756
|
return function(object) {
|
|
6265
5757
|
return object == null ? undefined : object[key];
|
|
6266
5758
|
};
|
|
6267
5759
|
}
|
|
6268
5760
|
|
|
6269
|
-
var _baseProperty = baseProperty$2;
|
|
6270
|
-
|
|
6271
|
-
var baseGet = _baseGet;
|
|
6272
|
-
|
|
6273
5761
|
/**
|
|
6274
5762
|
* A specialized version of `baseProperty` which supports deep paths.
|
|
6275
5763
|
*
|
|
@@ -6277,19 +5765,12 @@ var baseGet = _baseGet;
|
|
|
6277
5765
|
* @param {Array|string} path The path of the property to get.
|
|
6278
5766
|
* @returns {Function} Returns the new accessor function.
|
|
6279
5767
|
*/
|
|
6280
|
-
function basePropertyDeep
|
|
5768
|
+
function basePropertyDeep(path) {
|
|
6281
5769
|
return function(object) {
|
|
6282
5770
|
return baseGet(object, path);
|
|
6283
5771
|
};
|
|
6284
5772
|
}
|
|
6285
5773
|
|
|
6286
|
-
var _basePropertyDeep = basePropertyDeep$1;
|
|
6287
|
-
|
|
6288
|
-
var baseProperty$1 = _baseProperty,
|
|
6289
|
-
basePropertyDeep = _basePropertyDeep,
|
|
6290
|
-
isKey = _isKey,
|
|
6291
|
-
toKey = _toKey;
|
|
6292
|
-
|
|
6293
5774
|
/**
|
|
6294
5775
|
* Creates a function that returns the value at `path` of a given object.
|
|
6295
5776
|
*
|
|
@@ -6312,18 +5793,10 @@ var baseProperty$1 = _baseProperty,
|
|
|
6312
5793
|
* _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
|
|
6313
5794
|
* // => [1, 2]
|
|
6314
5795
|
*/
|
|
6315
|
-
function property
|
|
6316
|
-
return isKey(path) ? baseProperty
|
|
5796
|
+
function property(path) {
|
|
5797
|
+
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
|
|
6317
5798
|
}
|
|
6318
5799
|
|
|
6319
|
-
var property_1 = property$1;
|
|
6320
|
-
|
|
6321
|
-
var baseMatches = _baseMatches,
|
|
6322
|
-
baseMatchesProperty = _baseMatchesProperty,
|
|
6323
|
-
identity$2 = identity_1,
|
|
6324
|
-
isArray$4 = isArray_1,
|
|
6325
|
-
property = property_1;
|
|
6326
|
-
|
|
6327
5800
|
/**
|
|
6328
5801
|
* The base implementation of `_.iteratee`.
|
|
6329
5802
|
*
|
|
@@ -6331,27 +5804,23 @@ var baseMatches = _baseMatches,
|
|
|
6331
5804
|
* @param {*} [value=_.identity] The value to convert to an iteratee.
|
|
6332
5805
|
* @returns {Function} Returns the iteratee.
|
|
6333
5806
|
*/
|
|
6334
|
-
function baseIteratee
|
|
5807
|
+
function baseIteratee(value) {
|
|
6335
5808
|
// Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
|
|
6336
5809
|
// See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
|
|
6337
5810
|
if (typeof value == 'function') {
|
|
6338
5811
|
return value;
|
|
6339
5812
|
}
|
|
6340
5813
|
if (value == null) {
|
|
6341
|
-
return identity
|
|
5814
|
+
return identity;
|
|
6342
5815
|
}
|
|
6343
5816
|
if (typeof value == 'object') {
|
|
6344
|
-
return isArray$
|
|
5817
|
+
return isArray$1(value)
|
|
6345
5818
|
? baseMatchesProperty(value[0], value[1])
|
|
6346
5819
|
: baseMatches(value);
|
|
6347
5820
|
}
|
|
6348
5821
|
return property(value);
|
|
6349
5822
|
}
|
|
6350
5823
|
|
|
6351
|
-
var _baseIteratee = baseIteratee$3;
|
|
6352
|
-
|
|
6353
|
-
var toNumber = toNumber_1;
|
|
6354
|
-
|
|
6355
5824
|
/** Used as references for various `Number` constants. */
|
|
6356
5825
|
var INFINITY = 1 / 0,
|
|
6357
5826
|
MAX_INTEGER = 1.7976931348623157e+308;
|
|
@@ -6379,7 +5848,7 @@ var INFINITY = 1 / 0,
|
|
|
6379
5848
|
* _.toFinite('3.2');
|
|
6380
5849
|
* // => 3.2
|
|
6381
5850
|
*/
|
|
6382
|
-
function toFinite
|
|
5851
|
+
function toFinite(value) {
|
|
6383
5852
|
if (!value) {
|
|
6384
5853
|
return value === 0 ? value : 0;
|
|
6385
5854
|
}
|
|
@@ -6391,10 +5860,6 @@ function toFinite$2(value) {
|
|
|
6391
5860
|
return value === value ? value : 0;
|
|
6392
5861
|
}
|
|
6393
5862
|
|
|
6394
|
-
var toFinite_1 = toFinite$2;
|
|
6395
|
-
|
|
6396
|
-
var toFinite$1 = toFinite_1;
|
|
6397
|
-
|
|
6398
5863
|
/**
|
|
6399
5864
|
* Converts `value` to an integer.
|
|
6400
5865
|
*
|
|
@@ -6421,19 +5886,13 @@ var toFinite$1 = toFinite_1;
|
|
|
6421
5886
|
* _.toInteger('3.2');
|
|
6422
5887
|
* // => 3
|
|
6423
5888
|
*/
|
|
6424
|
-
function toInteger
|
|
6425
|
-
var result = toFinite
|
|
5889
|
+
function toInteger(value) {
|
|
5890
|
+
var result = toFinite(value),
|
|
6426
5891
|
remainder = result % 1;
|
|
6427
5892
|
|
|
6428
5893
|
return result === result ? (remainder ? result - remainder : result) : 0;
|
|
6429
5894
|
}
|
|
6430
5895
|
|
|
6431
|
-
var toInteger_1 = toInteger$4;
|
|
6432
|
-
|
|
6433
|
-
var baseFindIndex = _baseFindIndex,
|
|
6434
|
-
baseIteratee$2 = _baseIteratee,
|
|
6435
|
-
toInteger$3 = toInteger_1;
|
|
6436
|
-
|
|
6437
5896
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
6438
5897
|
var nativeMax$1 = Math.max;
|
|
6439
5898
|
|
|
@@ -6477,17 +5936,14 @@ function findIndex(array, predicate, fromIndex) {
|
|
|
6477
5936
|
if (!length) {
|
|
6478
5937
|
return -1;
|
|
6479
5938
|
}
|
|
6480
|
-
var index = fromIndex == null ? 0 : toInteger
|
|
5939
|
+
var index = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
6481
5940
|
if (index < 0) {
|
|
6482
5941
|
index = nativeMax$1(length + index, 0);
|
|
6483
5942
|
}
|
|
6484
|
-
return baseFindIndex(array, baseIteratee
|
|
5943
|
+
return baseFindIndex(array, baseIteratee(predicate), index);
|
|
6485
5944
|
}
|
|
6486
5945
|
|
|
6487
|
-
var findIndex_1 = findIndex;
|
|
6488
|
-
|
|
6489
5946
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
6490
|
-
|
|
6491
5947
|
var nativeCeil = Math.ceil,
|
|
6492
5948
|
nativeMax = Math.max;
|
|
6493
5949
|
|
|
@@ -6502,7 +5958,7 @@ var nativeCeil = Math.ceil,
|
|
|
6502
5958
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
6503
5959
|
* @returns {Array} Returns the range of numbers.
|
|
6504
5960
|
*/
|
|
6505
|
-
function baseRange
|
|
5961
|
+
function baseRange(start, end, step, fromRight) {
|
|
6506
5962
|
var index = -1,
|
|
6507
5963
|
length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
|
|
6508
5964
|
result = Array(length);
|
|
@@ -6514,13 +5970,6 @@ function baseRange$1(start, end, step, fromRight) {
|
|
|
6514
5970
|
return result;
|
|
6515
5971
|
}
|
|
6516
5972
|
|
|
6517
|
-
var _baseRange = baseRange$1;
|
|
6518
|
-
|
|
6519
|
-
var eq$1 = eq_1,
|
|
6520
|
-
isArrayLike$2 = isArrayLike_1,
|
|
6521
|
-
isIndex = _isIndex,
|
|
6522
|
-
isObject$1 = isObject_1;
|
|
6523
|
-
|
|
6524
5973
|
/**
|
|
6525
5974
|
* Checks if the given arguments are from an iteratee call.
|
|
6526
5975
|
*
|
|
@@ -6531,13 +5980,13 @@ var eq$1 = eq_1,
|
|
|
6531
5980
|
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
|
|
6532
5981
|
* else `false`.
|
|
6533
5982
|
*/
|
|
6534
|
-
function isIterateeCall
|
|
6535
|
-
if (!isObject
|
|
5983
|
+
function isIterateeCall(value, index, object) {
|
|
5984
|
+
if (!isObject(object)) {
|
|
6536
5985
|
return false;
|
|
6537
5986
|
}
|
|
6538
5987
|
var type = typeof index;
|
|
6539
5988
|
if (type == 'number'
|
|
6540
|
-
? (isArrayLike
|
|
5989
|
+
? (isArrayLike(object) && isIndex(index, object.length))
|
|
6541
5990
|
: (type == 'string' && index in object)
|
|
6542
5991
|
) {
|
|
6543
5992
|
return eq$1(object[index], value);
|
|
@@ -6545,12 +5994,6 @@ function isIterateeCall$3(value, index, object) {
|
|
|
6545
5994
|
return false;
|
|
6546
5995
|
}
|
|
6547
5996
|
|
|
6548
|
-
var _isIterateeCall = isIterateeCall$3;
|
|
6549
|
-
|
|
6550
|
-
var baseRange = _baseRange,
|
|
6551
|
-
isIterateeCall$2 = _isIterateeCall,
|
|
6552
|
-
toFinite = toFinite_1;
|
|
6553
|
-
|
|
6554
5997
|
/**
|
|
6555
5998
|
* Creates a `_.range` or `_.rangeRight` function.
|
|
6556
5999
|
*
|
|
@@ -6558,9 +6001,9 @@ var baseRange = _baseRange,
|
|
|
6558
6001
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
6559
6002
|
* @returns {Function} Returns the new range function.
|
|
6560
6003
|
*/
|
|
6561
|
-
function createRange
|
|
6004
|
+
function createRange(fromRight) {
|
|
6562
6005
|
return function(start, end, step) {
|
|
6563
|
-
if (step && typeof step != 'number' && isIterateeCall
|
|
6006
|
+
if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
|
|
6564
6007
|
end = step = undefined;
|
|
6565
6008
|
}
|
|
6566
6009
|
// Ensure the sign of `-0` is preserved.
|
|
@@ -6576,10 +6019,6 @@ function createRange$1(fromRight) {
|
|
|
6576
6019
|
};
|
|
6577
6020
|
}
|
|
6578
6021
|
|
|
6579
|
-
var _createRange = createRange$1;
|
|
6580
|
-
|
|
6581
|
-
var createRange = _createRange;
|
|
6582
|
-
|
|
6583
6022
|
/**
|
|
6584
6023
|
* Creates an array of numbers (positive and/or negative) progressing from
|
|
6585
6024
|
* `start` up to, but not including, `end`. A step of `-1` is used if a negative
|
|
@@ -6623,7 +6062,7 @@ var createRange = _createRange;
|
|
|
6623
6062
|
*/
|
|
6624
6063
|
var range = createRange();
|
|
6625
6064
|
|
|
6626
|
-
var
|
|
6065
|
+
var range$1 = range;
|
|
6627
6066
|
|
|
6628
6067
|
const appendToMap = (map, propName, value) => {
|
|
6629
6068
|
const items = map.get(propName);
|
|
@@ -6634,7 +6073,7 @@ const appendToMap = (map, propName, value) => {
|
|
|
6634
6073
|
items.push(value);
|
|
6635
6074
|
}
|
|
6636
6075
|
};
|
|
6637
|
-
const debounce
|
|
6076
|
+
const debounce = (fn, ms) => {
|
|
6638
6077
|
let timeoutId;
|
|
6639
6078
|
return (...args) => {
|
|
6640
6079
|
if (timeoutId) {
|
|
@@ -6657,7 +6096,7 @@ const debounce$1 = (fn, ms) => {
|
|
|
6657
6096
|
* Better leak in Edge than to be useless.
|
|
6658
6097
|
*/
|
|
6659
6098
|
const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
|
|
6660
|
-
const cleanupElements = debounce
|
|
6099
|
+
const cleanupElements = debounce((map) => {
|
|
6661
6100
|
for (let key of map.keys()) {
|
|
6662
6101
|
map.set(key, map.get(key).filter(isConnected));
|
|
6663
6102
|
}
|
|
@@ -6886,7 +6325,7 @@ class DataStore {
|
|
|
6886
6325
|
}
|
|
6887
6326
|
// clear items
|
|
6888
6327
|
this.store.set('items', []);
|
|
6889
|
-
const items =
|
|
6328
|
+
const items = range$1(0, (source === null || source === void 0 ? void 0 : source.length) || 0);
|
|
6890
6329
|
// set proxy first
|
|
6891
6330
|
setStore(this.store, {
|
|
6892
6331
|
source,
|
|
@@ -6968,7 +6407,7 @@ function setItems(store, items) {
|
|
|
6968
6407
|
function getSourceItemVirtualIndexByProp(store, prop) {
|
|
6969
6408
|
const items = store.get('items');
|
|
6970
6409
|
const source = store.get('source');
|
|
6971
|
-
const physicalIndex =
|
|
6410
|
+
const physicalIndex = findIndex(source, { prop });
|
|
6972
6411
|
return items.indexOf(physicalIndex);
|
|
6973
6412
|
}
|
|
6974
6413
|
|
|
@@ -6984,8 +6423,7 @@ function getSourceItemVirtualIndexByProp(store, prop) {
|
|
|
6984
6423
|
* the initial value.
|
|
6985
6424
|
* @returns {*} Returns the accumulated value.
|
|
6986
6425
|
*/
|
|
6987
|
-
|
|
6988
|
-
function arrayReduce$1(array, iteratee, accumulator, initAccum) {
|
|
6426
|
+
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
6989
6427
|
var index = -1,
|
|
6990
6428
|
length = array == null ? 0 : array.length;
|
|
6991
6429
|
|
|
@@ -6998,8 +6436,6 @@ function arrayReduce$1(array, iteratee, accumulator, initAccum) {
|
|
|
6998
6436
|
return accumulator;
|
|
6999
6437
|
}
|
|
7000
6438
|
|
|
7001
|
-
var _arrayReduce = arrayReduce$1;
|
|
7002
|
-
|
|
7003
6439
|
/**
|
|
7004
6440
|
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
7005
6441
|
*
|
|
@@ -7007,8 +6443,7 @@ var _arrayReduce = arrayReduce$1;
|
|
|
7007
6443
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
7008
6444
|
* @returns {Function} Returns the new base function.
|
|
7009
6445
|
*/
|
|
7010
|
-
|
|
7011
|
-
function createBaseFor$1(fromRight) {
|
|
6446
|
+
function createBaseFor(fromRight) {
|
|
7012
6447
|
return function(object, iteratee, keysFunc) {
|
|
7013
6448
|
var index = -1,
|
|
7014
6449
|
iterable = Object(object),
|
|
@@ -7025,10 +6460,6 @@ function createBaseFor$1(fromRight) {
|
|
|
7025
6460
|
};
|
|
7026
6461
|
}
|
|
7027
6462
|
|
|
7028
|
-
var _createBaseFor = createBaseFor$1;
|
|
7029
|
-
|
|
7030
|
-
var createBaseFor = _createBaseFor;
|
|
7031
|
-
|
|
7032
6463
|
/**
|
|
7033
6464
|
* The base implementation of `baseForOwn` which iterates over `object`
|
|
7034
6465
|
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
|
@@ -7040,12 +6471,9 @@ var createBaseFor = _createBaseFor;
|
|
|
7040
6471
|
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
7041
6472
|
* @returns {Object} Returns `object`.
|
|
7042
6473
|
*/
|
|
7043
|
-
var baseFor
|
|
7044
|
-
|
|
7045
|
-
var _baseFor = baseFor$1;
|
|
6474
|
+
var baseFor = createBaseFor();
|
|
7046
6475
|
|
|
7047
|
-
var baseFor =
|
|
7048
|
-
keys = keys_1;
|
|
6476
|
+
var baseFor$1 = baseFor;
|
|
7049
6477
|
|
|
7050
6478
|
/**
|
|
7051
6479
|
* The base implementation of `_.forOwn` without support for iteratee shorthands.
|
|
@@ -7055,14 +6483,10 @@ var baseFor = _baseFor,
|
|
|
7055
6483
|
* @param {Function} iteratee The function invoked per iteration.
|
|
7056
6484
|
* @returns {Object} Returns `object`.
|
|
7057
6485
|
*/
|
|
7058
|
-
function baseForOwn
|
|
7059
|
-
return object && baseFor(object, iteratee, keys);
|
|
6486
|
+
function baseForOwn(object, iteratee) {
|
|
6487
|
+
return object && baseFor$1(object, iteratee, keys);
|
|
7060
6488
|
}
|
|
7061
6489
|
|
|
7062
|
-
var _baseForOwn = baseForOwn$1;
|
|
7063
|
-
|
|
7064
|
-
var isArrayLike$1 = isArrayLike_1;
|
|
7065
|
-
|
|
7066
6490
|
/**
|
|
7067
6491
|
* Creates a `baseEach` or `baseEachRight` function.
|
|
7068
6492
|
*
|
|
@@ -7071,12 +6495,12 @@ var isArrayLike$1 = isArrayLike_1;
|
|
|
7071
6495
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
7072
6496
|
* @returns {Function} Returns the new base function.
|
|
7073
6497
|
*/
|
|
7074
|
-
function createBaseEach
|
|
6498
|
+
function createBaseEach(eachFunc, fromRight) {
|
|
7075
6499
|
return function(collection, iteratee) {
|
|
7076
6500
|
if (collection == null) {
|
|
7077
6501
|
return collection;
|
|
7078
6502
|
}
|
|
7079
|
-
if (!isArrayLike
|
|
6503
|
+
if (!isArrayLike(collection)) {
|
|
7080
6504
|
return eachFunc(collection, iteratee);
|
|
7081
6505
|
}
|
|
7082
6506
|
var length = collection.length,
|
|
@@ -7092,11 +6516,6 @@ function createBaseEach$1(eachFunc, fromRight) {
|
|
|
7092
6516
|
};
|
|
7093
6517
|
}
|
|
7094
6518
|
|
|
7095
|
-
var _createBaseEach = createBaseEach$1;
|
|
7096
|
-
|
|
7097
|
-
var baseForOwn = _baseForOwn,
|
|
7098
|
-
createBaseEach = _createBaseEach;
|
|
7099
|
-
|
|
7100
6519
|
/**
|
|
7101
6520
|
* The base implementation of `_.forEach` without support for iteratee shorthands.
|
|
7102
6521
|
*
|
|
@@ -7105,9 +6524,9 @@ var baseForOwn = _baseForOwn,
|
|
|
7105
6524
|
* @param {Function} iteratee The function invoked per iteration.
|
|
7106
6525
|
* @returns {Array|Object} Returns `collection`.
|
|
7107
6526
|
*/
|
|
7108
|
-
var baseEach
|
|
6527
|
+
var baseEach = createBaseEach(baseForOwn);
|
|
7109
6528
|
|
|
7110
|
-
var
|
|
6529
|
+
var baseEach$1 = baseEach;
|
|
7111
6530
|
|
|
7112
6531
|
/**
|
|
7113
6532
|
* The base implementation of `_.reduce` and `_.reduceRight`, without support
|
|
@@ -7122,8 +6541,7 @@ var _baseEach = baseEach$3;
|
|
|
7122
6541
|
* @param {Function} eachFunc The function to iterate over `collection`.
|
|
7123
6542
|
* @returns {*} Returns the accumulated value.
|
|
7124
6543
|
*/
|
|
7125
|
-
|
|
7126
|
-
function baseReduce$1(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
6544
|
+
function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
7127
6545
|
eachFunc(collection, function(value, index, collection) {
|
|
7128
6546
|
accumulator = initAccum
|
|
7129
6547
|
? (initAccum = false, value)
|
|
@@ -7132,14 +6550,6 @@ function baseReduce$1(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
|
7132
6550
|
return accumulator;
|
|
7133
6551
|
}
|
|
7134
6552
|
|
|
7135
|
-
var _baseReduce = baseReduce$1;
|
|
7136
|
-
|
|
7137
|
-
var arrayReduce = _arrayReduce,
|
|
7138
|
-
baseEach$2 = _baseEach,
|
|
7139
|
-
baseIteratee$1 = _baseIteratee,
|
|
7140
|
-
baseReduce = _baseReduce,
|
|
7141
|
-
isArray$3 = isArray_1;
|
|
7142
|
-
|
|
7143
6553
|
/**
|
|
7144
6554
|
* Reduces `collection` to a value which is the accumulated result of running
|
|
7145
6555
|
* each element in `collection` thru `iteratee`, where each successive
|
|
@@ -7178,14 +6588,12 @@ var arrayReduce = _arrayReduce,
|
|
|
7178
6588
|
* // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
|
|
7179
6589
|
*/
|
|
7180
6590
|
function reduce(collection, iteratee, accumulator) {
|
|
7181
|
-
var func = isArray$
|
|
6591
|
+
var func = isArray$1(collection) ? arrayReduce : baseReduce,
|
|
7182
6592
|
initAccum = arguments.length < 3;
|
|
7183
6593
|
|
|
7184
|
-
return func(collection, baseIteratee
|
|
6594
|
+
return func(collection, baseIteratee(iteratee), accumulator, initAccum, baseEach$1);
|
|
7185
6595
|
}
|
|
7186
6596
|
|
|
7187
|
-
var reduce_1 = reduce;
|
|
7188
|
-
|
|
7189
6597
|
/**
|
|
7190
6598
|
* A specialized version of `_.forEach` for arrays without support for
|
|
7191
6599
|
* iteratee shorthands.
|
|
@@ -7195,8 +6603,7 @@ var reduce_1 = reduce;
|
|
|
7195
6603
|
* @param {Function} iteratee The function invoked per iteration.
|
|
7196
6604
|
* @returns {Array} Returns `array`.
|
|
7197
6605
|
*/
|
|
7198
|
-
|
|
7199
|
-
function arrayEach$1(array, iteratee) {
|
|
6606
|
+
function arrayEach(array, iteratee) {
|
|
7200
6607
|
var index = -1,
|
|
7201
6608
|
length = array == null ? 0 : array.length;
|
|
7202
6609
|
|
|
@@ -7208,10 +6615,6 @@ function arrayEach$1(array, iteratee) {
|
|
|
7208
6615
|
return array;
|
|
7209
6616
|
}
|
|
7210
6617
|
|
|
7211
|
-
var _arrayEach = arrayEach$1;
|
|
7212
|
-
|
|
7213
|
-
var identity$1 = identity_1;
|
|
7214
|
-
|
|
7215
6618
|
/**
|
|
7216
6619
|
* Casts `value` to `identity` if it's not a function.
|
|
7217
6620
|
*
|
|
@@ -7219,17 +6622,10 @@ var identity$1 = identity_1;
|
|
|
7219
6622
|
* @param {*} value The value to inspect.
|
|
7220
6623
|
* @returns {Function} Returns cast function.
|
|
7221
6624
|
*/
|
|
7222
|
-
function castFunction
|
|
7223
|
-
return typeof value == 'function' ? value : identity
|
|
6625
|
+
function castFunction(value) {
|
|
6626
|
+
return typeof value == 'function' ? value : identity;
|
|
7224
6627
|
}
|
|
7225
6628
|
|
|
7226
|
-
var _castFunction = castFunction$1;
|
|
7227
|
-
|
|
7228
|
-
var arrayEach = _arrayEach,
|
|
7229
|
-
baseEach$1 = _baseEach,
|
|
7230
|
-
castFunction = _castFunction,
|
|
7231
|
-
isArray$2 = isArray_1;
|
|
7232
|
-
|
|
7233
6629
|
/**
|
|
7234
6630
|
* Iterates over elements of `collection` and invokes `iteratee` for each element.
|
|
7235
6631
|
* The iteratee is invoked with three arguments: (value, index|key, collection).
|
|
@@ -7261,16 +6657,10 @@ var arrayEach = _arrayEach,
|
|
|
7261
6657
|
* // => Logs 'a' then 'b' (iteration order is not guaranteed).
|
|
7262
6658
|
*/
|
|
7263
6659
|
function forEach(collection, iteratee) {
|
|
7264
|
-
var func = isArray$
|
|
6660
|
+
var func = isArray$1(collection) ? arrayEach : baseEach$1;
|
|
7265
6661
|
return func(collection, castFunction(iteratee));
|
|
7266
6662
|
}
|
|
7267
6663
|
|
|
7268
|
-
var forEach_1 = forEach;
|
|
7269
|
-
|
|
7270
|
-
var each = forEach_1;
|
|
7271
|
-
|
|
7272
|
-
var isSymbol$1 = isSymbol_1;
|
|
7273
|
-
|
|
7274
6664
|
/** Used as references for the maximum length and index of an array. */
|
|
7275
6665
|
var MAX_ARRAY_LENGTH$2 = 4294967295,
|
|
7276
6666
|
MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH$2 - 1;
|
|
@@ -7292,7 +6682,7 @@ var nativeFloor = Math.floor,
|
|
|
7292
6682
|
* @returns {number} Returns the index at which `value` should be inserted
|
|
7293
6683
|
* into `array`.
|
|
7294
6684
|
*/
|
|
7295
|
-
function baseSortedIndexBy
|
|
6685
|
+
function baseSortedIndexBy(array, value, iteratee, retHighest) {
|
|
7296
6686
|
var low = 0,
|
|
7297
6687
|
high = array == null ? 0 : array.length;
|
|
7298
6688
|
if (high === 0) {
|
|
@@ -7302,7 +6692,7 @@ function baseSortedIndexBy$1(array, value, iteratee, retHighest) {
|
|
|
7302
6692
|
value = iteratee(value);
|
|
7303
6693
|
var valIsNaN = value !== value,
|
|
7304
6694
|
valIsNull = value === null,
|
|
7305
|
-
valIsSymbol = isSymbol
|
|
6695
|
+
valIsSymbol = isSymbol(value),
|
|
7306
6696
|
valIsUndefined = value === undefined;
|
|
7307
6697
|
|
|
7308
6698
|
while (low < high) {
|
|
@@ -7311,7 +6701,7 @@ function baseSortedIndexBy$1(array, value, iteratee, retHighest) {
|
|
|
7311
6701
|
othIsDefined = computed !== undefined,
|
|
7312
6702
|
othIsNull = computed === null,
|
|
7313
6703
|
othIsReflexive = computed === computed,
|
|
7314
|
-
othIsSymbol = isSymbol
|
|
6704
|
+
othIsSymbol = isSymbol(computed);
|
|
7315
6705
|
|
|
7316
6706
|
if (valIsNaN) {
|
|
7317
6707
|
var setLow = retHighest || othIsReflexive;
|
|
@@ -7335,12 +6725,6 @@ function baseSortedIndexBy$1(array, value, iteratee, retHighest) {
|
|
|
7335
6725
|
return nativeMin(high, MAX_ARRAY_INDEX);
|
|
7336
6726
|
}
|
|
7337
6727
|
|
|
7338
|
-
var _baseSortedIndexBy = baseSortedIndexBy$1;
|
|
7339
|
-
|
|
7340
|
-
var baseSortedIndexBy = _baseSortedIndexBy,
|
|
7341
|
-
identity = identity_1,
|
|
7342
|
-
isSymbol = isSymbol_1;
|
|
7343
|
-
|
|
7344
6728
|
/** Used as references for the maximum length and index of an array. */
|
|
7345
6729
|
var MAX_ARRAY_LENGTH$1 = 4294967295,
|
|
7346
6730
|
HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH$1 >>> 1;
|
|
@@ -7357,7 +6741,7 @@ var MAX_ARRAY_LENGTH$1 = 4294967295,
|
|
|
7357
6741
|
* @returns {number} Returns the index at which `value` should be inserted
|
|
7358
6742
|
* into `array`.
|
|
7359
6743
|
*/
|
|
7360
|
-
function baseSortedIndex
|
|
6744
|
+
function baseSortedIndex(array, value, retHighest) {
|
|
7361
6745
|
var low = 0,
|
|
7362
6746
|
high = array == null ? low : array.length;
|
|
7363
6747
|
|
|
@@ -7378,10 +6762,6 @@ function baseSortedIndex$1(array, value, retHighest) {
|
|
|
7378
6762
|
return baseSortedIndexBy(array, value, identity, retHighest);
|
|
7379
6763
|
}
|
|
7380
6764
|
|
|
7381
|
-
var _baseSortedIndex = baseSortedIndex$1;
|
|
7382
|
-
|
|
7383
|
-
var baseSortedIndex = _baseSortedIndex;
|
|
7384
|
-
|
|
7385
6765
|
/**
|
|
7386
6766
|
* Uses a binary search to determine the lowest index at which `value`
|
|
7387
6767
|
* should be inserted into `array` in order to maintain its sort order.
|
|
@@ -7403,8 +6783,6 @@ function sortedIndex(array, value) {
|
|
|
7403
6783
|
return baseSortedIndex(array, value);
|
|
7404
6784
|
}
|
|
7405
6785
|
|
|
7406
|
-
var sortedIndex_1 = sortedIndex;
|
|
7407
|
-
|
|
7408
6786
|
/**
|
|
7409
6787
|
* Pre-calculation
|
|
7410
6788
|
* Dimension custom sizes for each cell
|
|
@@ -7418,12 +6796,12 @@ function calculateDimensionData(originItemSize, newSizes = {}) {
|
|
|
7418
6796
|
const sizes = Object.assign({}, newSizes);
|
|
7419
6797
|
// prepare order sorted new sizes and calculate changed real size
|
|
7420
6798
|
let newIndexes = [];
|
|
7421
|
-
|
|
6799
|
+
forEach(newSizes, (_, i) => {
|
|
7422
6800
|
const index = parseInt(i, 10);
|
|
7423
|
-
newIndexes[
|
|
6801
|
+
newIndexes[sortedIndex(newIndexes, index)] = index;
|
|
7424
6802
|
});
|
|
7425
6803
|
// fill new coordinates based on what is changed
|
|
7426
|
-
|
|
6804
|
+
reduce(newIndexes, (previous, itemIndex, i) => {
|
|
7427
6805
|
const newItem = {
|
|
7428
6806
|
itemIndex,
|
|
7429
6807
|
start: 0,
|
|
@@ -7459,7 +6837,7 @@ const getItemByPosition = ({ indexes, positionIndexes, originItemSize, positionI
|
|
|
7459
6837
|
start: 0,
|
|
7460
6838
|
end: 0,
|
|
7461
6839
|
};
|
|
7462
|
-
const currentPlace = indexes.length ?
|
|
6840
|
+
const currentPlace = indexes.length ? sortedIndex(positionIndexes, pos) : 0;
|
|
7463
6841
|
// not found or first index
|
|
7464
6842
|
if (!currentPlace) {
|
|
7465
6843
|
item.itemIndex = Math.floor(pos / originItemSize);
|
|
@@ -7491,7 +6869,7 @@ function getItemByIndex(dimension, index) {
|
|
|
7491
6869
|
return dimension.indexToItem[index];
|
|
7492
6870
|
}
|
|
7493
6871
|
const currentPlace = dimension.indexes.length
|
|
7494
|
-
?
|
|
6872
|
+
? sortedIndex(dimension.indexes, index)
|
|
7495
6873
|
: 0;
|
|
7496
6874
|
// not found or first index
|
|
7497
6875
|
if (!currentPlace) {
|
|
@@ -7539,20 +6917,32 @@ const trimmedPlugin = (store) => {
|
|
|
7539
6917
|
},
|
|
7540
6918
|
};
|
|
7541
6919
|
};
|
|
7542
|
-
|
|
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
|
+
*/
|
|
7543
6927
|
return {
|
|
6928
|
+
/**
|
|
6929
|
+
* Reacts on changes of count, sizes and originItemSize
|
|
6930
|
+
*/
|
|
7544
6931
|
set(k) {
|
|
7545
6932
|
switch (k) {
|
|
7546
6933
|
case 'count':
|
|
7547
6934
|
case 'sizes':
|
|
7548
6935
|
case 'originItemSize':
|
|
6936
|
+
// recalculate realSize
|
|
7549
6937
|
let realSize = 0;
|
|
7550
|
-
const count =
|
|
6938
|
+
const count = storeService.store.get('count');
|
|
7551
6939
|
for (let i = 0; i < count; i++) {
|
|
7552
6940
|
realSize +=
|
|
7553
|
-
|
|
6941
|
+
storeService.store.get('sizes')[i] ||
|
|
6942
|
+
storeService.store.get('originItemSize');
|
|
7554
6943
|
}
|
|
7555
|
-
|
|
6944
|
+
storeService.setStore({ realSize });
|
|
6945
|
+
break;
|
|
7556
6946
|
}
|
|
7557
6947
|
},
|
|
7558
6948
|
};
|
|
@@ -7582,15 +6972,16 @@ function initialState$1() {
|
|
|
7582
6972
|
originItemSize: 0 });
|
|
7583
6973
|
}
|
|
7584
6974
|
class DimensionStore {
|
|
7585
|
-
constructor() {
|
|
6975
|
+
constructor(type) {
|
|
6976
|
+
this.type = type;
|
|
7586
6977
|
this.store = createStore(initialState$1());
|
|
7587
6978
|
this.store.use(trimmedPlugin(this));
|
|
7588
|
-
this.store.use(
|
|
6979
|
+
this.store.use(recalculateRealSizePlugin(this));
|
|
7589
6980
|
}
|
|
7590
6981
|
getCurrentState() {
|
|
7591
6982
|
const state = initialState$1();
|
|
7592
6983
|
const keys = Object.keys(state);
|
|
7593
|
-
return
|
|
6984
|
+
return reduce(keys, (r, k) => {
|
|
7594
6985
|
const data = this.store.get(k);
|
|
7595
6986
|
r[k] = data;
|
|
7596
6987
|
return r;
|
|
@@ -8327,10 +7718,6 @@ class ViewportStore {
|
|
|
8327
7718
|
// last coordinate for store position restore
|
|
8328
7719
|
this.lastKnownScroll = 0;
|
|
8329
7720
|
this.store = createStore(initialState());
|
|
8330
|
-
// drop items on real size change, require a new item set
|
|
8331
|
-
this.store.onChange('realCount', () => this.clearItems());
|
|
8332
|
-
// drop items on virtual size change, require a new item set
|
|
8333
|
-
this.store.onChange('virtualSize', () => this.clearItems());
|
|
8334
7721
|
}
|
|
8335
7722
|
/**
|
|
8336
7723
|
* Render viewport based on coordinate
|
|
@@ -8432,11 +7819,13 @@ class ViewportStore {
|
|
|
8432
7819
|
};
|
|
8433
7820
|
}
|
|
8434
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
|
+
}
|
|
8435
7827
|
setStore(this.store, data);
|
|
8436
7828
|
}
|
|
8437
|
-
clearItems() {
|
|
8438
|
-
this.store.set('items', []);
|
|
8439
|
-
}
|
|
8440
7829
|
}
|
|
8441
7830
|
|
|
8442
7831
|
const rowTypes = ['rowPinStart', 'rgRow', 'rowPinEnd'];
|
|
@@ -8552,7 +7941,7 @@ class OrderEditor {
|
|
|
8552
7941
|
this.rowMouseMove = createEvent(this, "rowdragmousemove", 7);
|
|
8553
7942
|
this.rowDropped = createEvent(this, "rowdropinit", 7);
|
|
8554
7943
|
this.events = [];
|
|
8555
|
-
this.rowMoveFunc =
|
|
7944
|
+
this.rowMoveFunc = debounce$1((y) => {
|
|
8556
7945
|
const rgRow = this.rowOrderService.move(y, this.getData());
|
|
8557
7946
|
if (rgRow !== null) {
|
|
8558
7947
|
this.rowDrag.emit(rgRow);
|
|
@@ -8711,7 +8100,7 @@ function getColumns(columns, level = 0, types) {
|
|
|
8711
8100
|
// sorting
|
|
8712
8101
|
sort: {},
|
|
8713
8102
|
};
|
|
8714
|
-
return
|
|
8103
|
+
return reduce(columns, (res, colData) => {
|
|
8715
8104
|
// Grouped column
|
|
8716
8105
|
if (isColGrouping(colData)) {
|
|
8717
8106
|
return gatherGroup(res, colData, getColumns(colData.children, level + 1, types), level);
|
|
@@ -8748,7 +8137,7 @@ function gatherGroup(res, colData, collection, level = 0) {
|
|
|
8748
8137
|
const resultItem = res.columns[key];
|
|
8749
8138
|
const collectionItem = collection.columns[key];
|
|
8750
8139
|
// if column data
|
|
8751
|
-
if (
|
|
8140
|
+
if (isArray$1(resultItem) && isArray$1(collectionItem)) {
|
|
8752
8141
|
// fill columns
|
|
8753
8142
|
resultItem.push(...collectionItem);
|
|
8754
8143
|
// fill grouping
|
|
@@ -9085,8 +8474,7 @@ function isSameGroup(currentGroup, currentModel, nextModel) {
|
|
|
9085
8474
|
* @param {number} [end=array.length] The end position.
|
|
9086
8475
|
* @returns {Array} Returns the slice of `array`.
|
|
9087
8476
|
*/
|
|
9088
|
-
|
|
9089
|
-
function baseSlice$1(array, start, end) {
|
|
8477
|
+
function baseSlice(array, start, end) {
|
|
9090
8478
|
var index = -1,
|
|
9091
8479
|
length = array.length;
|
|
9092
8480
|
|
|
@@ -9107,12 +8495,6 @@ function baseSlice$1(array, start, end) {
|
|
|
9107
8495
|
return result;
|
|
9108
8496
|
}
|
|
9109
8497
|
|
|
9110
|
-
var _baseSlice = baseSlice$1;
|
|
9111
|
-
|
|
9112
|
-
var baseSlice = _baseSlice,
|
|
9113
|
-
isIterateeCall$1 = _isIterateeCall,
|
|
9114
|
-
toInteger$2 = toInteger_1;
|
|
9115
|
-
|
|
9116
8498
|
/**
|
|
9117
8499
|
* Creates a slice of `array` from `start` up to, but not including, `end`.
|
|
9118
8500
|
*
|
|
@@ -9134,19 +8516,17 @@ function slice(array, start, end) {
|
|
|
9134
8516
|
if (!length) {
|
|
9135
8517
|
return [];
|
|
9136
8518
|
}
|
|
9137
|
-
if (end && typeof end != 'number' && isIterateeCall
|
|
8519
|
+
if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
|
|
9138
8520
|
start = 0;
|
|
9139
8521
|
end = length;
|
|
9140
8522
|
}
|
|
9141
8523
|
else {
|
|
9142
|
-
start = start == null ? 0 : toInteger
|
|
9143
|
-
end = end === undefined ? length : toInteger
|
|
8524
|
+
start = start == null ? 0 : toInteger(start);
|
|
8525
|
+
end = end === undefined ? length : toInteger(end);
|
|
9144
8526
|
}
|
|
9145
8527
|
return baseSlice(array, start, end);
|
|
9146
8528
|
}
|
|
9147
8529
|
|
|
9148
|
-
var slice_1 = slice;
|
|
9149
|
-
|
|
9150
8530
|
class ColumnService {
|
|
9151
8531
|
get columns() {
|
|
9152
8532
|
return getVisibleSourceItem(this.source);
|
|
@@ -9381,7 +8761,7 @@ class ColumnService {
|
|
|
9381
8761
|
}
|
|
9382
8762
|
copyRangeArray(range, store) {
|
|
9383
8763
|
const cols = [...this.columns];
|
|
9384
|
-
const props =
|
|
8764
|
+
const props = slice(cols, range.x, range.x1 + 1).map(v => v.prop);
|
|
9385
8765
|
const toCopy = [];
|
|
9386
8766
|
const mapping = {};
|
|
9387
8767
|
// rows indexes
|
|
@@ -9819,7 +9199,7 @@ class AutoFillService {
|
|
|
9819
9199
|
selectionMouseMove(e) {
|
|
9820
9200
|
// initiate mouse move debounce if not present
|
|
9821
9201
|
if (!this.onMouseMoveAutofill) {
|
|
9822
|
-
this.onMouseMoveAutofill =
|
|
9202
|
+
this.onMouseMoveAutofill = debounce$1((e, data) => this.doAutofillMouseMove(e, data), 5);
|
|
9823
9203
|
}
|
|
9824
9204
|
if (this.isAutoFill) {
|
|
9825
9205
|
this.onMouseMoveAutofill(e, this.sv.getData());
|
|
@@ -10762,7 +10142,7 @@ class ColumnDataProvider {
|
|
|
10762
10142
|
return getSourceItem(this.dataSources[type].store, virtualIndex);
|
|
10763
10143
|
}
|
|
10764
10144
|
getRawColumns() {
|
|
10765
|
-
return
|
|
10145
|
+
return reduce(this.dataSources, (result, item, type) => {
|
|
10766
10146
|
result[type] = item.store.get('source');
|
|
10767
10147
|
return result;
|
|
10768
10148
|
}, {
|
|
@@ -10863,14 +10243,14 @@ class ColumnDataProvider {
|
|
|
10863
10243
|
return column;
|
|
10864
10244
|
}
|
|
10865
10245
|
clearSorting() {
|
|
10866
|
-
const types =
|
|
10246
|
+
const types = reduce(this.sorting, (r, c) => {
|
|
10867
10247
|
const k = getColumnType(c);
|
|
10868
10248
|
r[k] = true;
|
|
10869
10249
|
return r;
|
|
10870
10250
|
}, {});
|
|
10871
|
-
|
|
10251
|
+
forEach(types, (_, type) => {
|
|
10872
10252
|
const cols = this.dataSources[type].store.get('source');
|
|
10873
|
-
|
|
10253
|
+
forEach(cols, (c) => (c.order = undefined));
|
|
10874
10254
|
this.dataSources[type].setData({ source: [...cols] });
|
|
10875
10255
|
});
|
|
10876
10256
|
this.sorting = {};
|
|
@@ -10883,7 +10263,7 @@ class ColumnDataProvider {
|
|
|
10883
10263
|
class DataProvider {
|
|
10884
10264
|
constructor(dimensionProvider) {
|
|
10885
10265
|
this.dimensionProvider = dimensionProvider;
|
|
10886
|
-
this.stores =
|
|
10266
|
+
this.stores = reduce(rowTypes, (sources, k) => {
|
|
10887
10267
|
sources[k] = new DataStore(k);
|
|
10888
10268
|
return sources;
|
|
10889
10269
|
}, {});
|
|
@@ -10950,10 +10330,10 @@ class DataProvider {
|
|
|
10950
10330
|
class DimensionProvider {
|
|
10951
10331
|
constructor(viewports, config) {
|
|
10952
10332
|
this.viewports = viewports;
|
|
10953
|
-
const sizeChanged =
|
|
10954
|
-
this.stores =
|
|
10955
|
-
sources[
|
|
10956
|
-
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));
|
|
10957
10337
|
return sources;
|
|
10958
10338
|
}, {});
|
|
10959
10339
|
}
|
|
@@ -11035,6 +10415,7 @@ class DimensionProvider {
|
|
|
11035
10415
|
if (noVirtual) {
|
|
11036
10416
|
vpUpdate.virtualSize = this.stores[type].getCurrentState().realSize;
|
|
11037
10417
|
}
|
|
10418
|
+
// if virtualSize present this would trigger viewport clear
|
|
11038
10419
|
this.viewports.stores[type].setViewport(vpUpdate);
|
|
11039
10420
|
this.setViewPortCoordinate({
|
|
11040
10421
|
coordinate: this.viewports.stores[type].lastCoordinate,
|
|
@@ -11088,7 +10469,7 @@ class DimensionProvider {
|
|
|
11088
10469
|
|
|
11089
10470
|
class ViewportProvider {
|
|
11090
10471
|
constructor() {
|
|
11091
|
-
this.stores =
|
|
10472
|
+
this.stores = reduce([...rowTypes, ...columnTypes], (sources, k) => {
|
|
11092
10473
|
sources[k] = new ViewportStore(k);
|
|
11093
10474
|
return sources;
|
|
11094
10475
|
}, {});
|
|
@@ -11334,9 +10715,9 @@ class AutoSizeColumnPlugin extends BasePlugin {
|
|
|
11334
10715
|
}
|
|
11335
10716
|
}
|
|
11336
10717
|
// calculate sizes
|
|
11337
|
-
|
|
10718
|
+
forEach(autoSize, (_v, type) => {
|
|
11338
10719
|
const sizes = {};
|
|
11339
|
-
|
|
10720
|
+
forEach(autoSize[type], rgCol => {
|
|
11340
10721
|
// calculate size
|
|
11341
10722
|
rgCol.size = sizes[rgCol.index] = source.reduce((prev, rgRow) => Math.max(prev, this.getLength(rgRow[rgCol.prop])), this.getLength(rgCol.name || ''));
|
|
11342
10723
|
});
|
|
@@ -11370,12 +10751,12 @@ class AutoSizeColumnPlugin extends BasePlugin {
|
|
|
11370
10751
|
else {
|
|
11371
10752
|
data = { 0: { [e.prop]: e.val } };
|
|
11372
10753
|
}
|
|
11373
|
-
|
|
10754
|
+
forEach(this.autoSizeColumns, (columns, type) => {
|
|
11374
10755
|
const sizes = {};
|
|
11375
|
-
|
|
10756
|
+
forEach(columns, rgCol => {
|
|
11376
10757
|
var _a;
|
|
11377
10758
|
// calculate size
|
|
11378
|
-
const size =
|
|
10759
|
+
const size = reduce(data, (prev, rgRow) => {
|
|
11379
10760
|
if (typeof rgRow[rgCol.prop] === 'undefined') {
|
|
11380
10761
|
return prev;
|
|
11381
10762
|
}
|
|
@@ -11391,14 +10772,14 @@ class AutoSizeColumnPlugin extends BasePlugin {
|
|
|
11391
10772
|
afterEditAll(e) {
|
|
11392
10773
|
const props = {};
|
|
11393
10774
|
if (this.isRangeEdit(e)) {
|
|
11394
|
-
|
|
10775
|
+
forEach(e.data, r => forEach(r, (_v, p) => (props[p] = true)));
|
|
11395
10776
|
}
|
|
11396
10777
|
else {
|
|
11397
10778
|
props[e.prop] = true;
|
|
11398
10779
|
}
|
|
11399
|
-
|
|
10780
|
+
forEach(this.autoSizeColumns, (columns, type) => {
|
|
11400
10781
|
const sizes = {};
|
|
11401
|
-
|
|
10782
|
+
forEach(columns, rgCol => {
|
|
11402
10783
|
if (props[rgCol.prop]) {
|
|
11403
10784
|
const size = this.getColumnSize(rgCol.index, type);
|
|
11404
10785
|
if (size) {
|
|
@@ -11415,8 +10796,8 @@ class AutoSizeColumnPlugin extends BasePlugin {
|
|
|
11415
10796
|
if (!rgCol) {
|
|
11416
10797
|
return 0;
|
|
11417
10798
|
}
|
|
11418
|
-
return
|
|
11419
|
-
const perStore =
|
|
10799
|
+
return reduce(this.providers.data.stores, (r, s) => {
|
|
10800
|
+
const perStore = reduce(s.store.get('items'), (prev, _row, i) => {
|
|
11420
10801
|
const item = getSourceItem(s.store, i);
|
|
11421
10802
|
return Math.max(prev || 0, this.getLength(item === null || item === void 0 ? void 0 : item[rgCol.prop]));
|
|
11422
10803
|
}, 0);
|
|
@@ -11712,7 +11093,7 @@ class FilterPlugin extends BasePlugin {
|
|
|
11712
11093
|
}
|
|
11713
11094
|
}
|
|
11714
11095
|
if (config.collection) {
|
|
11715
|
-
this.filterCollection =
|
|
11096
|
+
this.filterCollection = reduce(config.collection, (result, item, prop) => {
|
|
11716
11097
|
if (this.filterFunctionsIndexedByType[item.type]) {
|
|
11717
11098
|
result[prop] = item;
|
|
11718
11099
|
}
|
|
@@ -11940,10 +11321,6 @@ class FilterPlugin extends BasePlugin {
|
|
|
11940
11321
|
}
|
|
11941
11322
|
}
|
|
11942
11323
|
|
|
11943
|
-
var baseGetTag = _baseGetTag,
|
|
11944
|
-
isArray$1 = isArray_1,
|
|
11945
|
-
isObjectLike = isObjectLike_1;
|
|
11946
|
-
|
|
11947
11324
|
/** `Object#toString` result references. */
|
|
11948
11325
|
var stringTag = '[object String]';
|
|
11949
11326
|
|
|
@@ -11964,15 +11341,11 @@ var stringTag = '[object String]';
|
|
|
11964
11341
|
* _.isString(1);
|
|
11965
11342
|
* // => false
|
|
11966
11343
|
*/
|
|
11967
|
-
function isString
|
|
11344
|
+
function isString(value) {
|
|
11968
11345
|
return typeof value == 'string' ||
|
|
11969
11346
|
(!isArray$1(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
|
|
11970
11347
|
}
|
|
11971
11348
|
|
|
11972
|
-
var isString_1 = isString$1;
|
|
11973
|
-
|
|
11974
|
-
var baseProperty = _baseProperty;
|
|
11975
|
-
|
|
11976
11349
|
/**
|
|
11977
11350
|
* Gets the size of an ASCII `string`.
|
|
11978
11351
|
*
|
|
@@ -11980,12 +11353,11 @@ var baseProperty = _baseProperty;
|
|
|
11980
11353
|
* @param {string} string The string inspect.
|
|
11981
11354
|
* @returns {number} Returns the string size.
|
|
11982
11355
|
*/
|
|
11983
|
-
var asciiSize
|
|
11356
|
+
var asciiSize = baseProperty('length');
|
|
11984
11357
|
|
|
11985
|
-
var
|
|
11358
|
+
var asciiSize$1 = asciiSize;
|
|
11986
11359
|
|
|
11987
11360
|
/** Used to compose unicode character classes. */
|
|
11988
|
-
|
|
11989
11361
|
var rsAstralRange$1 = '\\ud800-\\udfff',
|
|
11990
11362
|
rsComboMarksRange$1 = '\\u0300-\\u036f',
|
|
11991
11363
|
reComboHalfMarksRange$1 = '\\ufe20-\\ufe2f',
|
|
@@ -12006,14 +11378,11 @@ var reHasUnicode = RegExp('[' + rsZWJ$1 + rsAstralRange$1 + rsComboRange$1 + rs
|
|
|
12006
11378
|
* @param {string} string The string to inspect.
|
|
12007
11379
|
* @returns {boolean} Returns `true` if a symbol is found, else `false`.
|
|
12008
11380
|
*/
|
|
12009
|
-
function hasUnicode
|
|
11381
|
+
function hasUnicode(string) {
|
|
12010
11382
|
return reHasUnicode.test(string);
|
|
12011
11383
|
}
|
|
12012
11384
|
|
|
12013
|
-
var _hasUnicode = hasUnicode$1;
|
|
12014
|
-
|
|
12015
11385
|
/** Used to compose unicode character classes. */
|
|
12016
|
-
|
|
12017
11386
|
var rsAstralRange = '\\ud800-\\udfff',
|
|
12018
11387
|
rsComboMarksRange = '\\u0300-\\u036f',
|
|
12019
11388
|
reComboHalfMarksRange = '\\ufe20-\\ufe2f',
|
|
@@ -12048,7 +11417,7 @@ var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
|
|
|
12048
11417
|
* @param {string} string The string inspect.
|
|
12049
11418
|
* @returns {number} Returns the string size.
|
|
12050
11419
|
*/
|
|
12051
|
-
function unicodeSize
|
|
11420
|
+
function unicodeSize(string) {
|
|
12052
11421
|
var result = reUnicode.lastIndex = 0;
|
|
12053
11422
|
while (reUnicode.test(string)) {
|
|
12054
11423
|
++result;
|
|
@@ -12056,12 +11425,6 @@ function unicodeSize$1(string) {
|
|
|
12056
11425
|
return result;
|
|
12057
11426
|
}
|
|
12058
11427
|
|
|
12059
|
-
var _unicodeSize = unicodeSize$1;
|
|
12060
|
-
|
|
12061
|
-
var asciiSize = _asciiSize,
|
|
12062
|
-
hasUnicode = _hasUnicode,
|
|
12063
|
-
unicodeSize = _unicodeSize;
|
|
12064
|
-
|
|
12065
11428
|
/**
|
|
12066
11429
|
* Gets the number of symbols in `string`.
|
|
12067
11430
|
*
|
|
@@ -12069,20 +11432,12 @@ var asciiSize = _asciiSize,
|
|
|
12069
11432
|
* @param {string} string The string to inspect.
|
|
12070
11433
|
* @returns {number} Returns the string size.
|
|
12071
11434
|
*/
|
|
12072
|
-
function stringSize
|
|
11435
|
+
function stringSize(string) {
|
|
12073
11436
|
return hasUnicode(string)
|
|
12074
11437
|
? unicodeSize(string)
|
|
12075
|
-
: asciiSize(string);
|
|
11438
|
+
: asciiSize$1(string);
|
|
12076
11439
|
}
|
|
12077
11440
|
|
|
12078
|
-
var _stringSize = stringSize$1;
|
|
12079
|
-
|
|
12080
|
-
var baseKeys = _baseKeys,
|
|
12081
|
-
getTag = _getTag,
|
|
12082
|
-
isArrayLike = isArrayLike_1,
|
|
12083
|
-
isString = isString_1,
|
|
12084
|
-
stringSize = _stringSize;
|
|
12085
|
-
|
|
12086
11441
|
/** `Object#toString` result references. */
|
|
12087
11442
|
var mapTag = '[object Map]',
|
|
12088
11443
|
setTag = '[object Set]';
|
|
@@ -12115,15 +11470,13 @@ function size$1(collection) {
|
|
|
12115
11470
|
if (isArrayLike(collection)) {
|
|
12116
11471
|
return isString(collection) ? stringSize(collection) : collection.length;
|
|
12117
11472
|
}
|
|
12118
|
-
var tag = getTag(collection);
|
|
11473
|
+
var tag = getTag$1(collection);
|
|
12119
11474
|
if (tag == mapTag || tag == setTag) {
|
|
12120
11475
|
return collection.size;
|
|
12121
11476
|
}
|
|
12122
11477
|
return baseKeys(collection).length;
|
|
12123
11478
|
}
|
|
12124
11479
|
|
|
12125
|
-
var size_1 = size$1;
|
|
12126
|
-
|
|
12127
11480
|
/**
|
|
12128
11481
|
* Lifecycle
|
|
12129
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.
|
|
@@ -12144,7 +11497,7 @@ class SortingPlugin extends BasePlugin {
|
|
|
12144
11497
|
super(revogrid, providers);
|
|
12145
11498
|
this.revogrid = revogrid;
|
|
12146
11499
|
this.sortingPromise = null;
|
|
12147
|
-
this.postponeSort =
|
|
11500
|
+
this.postponeSort = debounce$1(async (order, comparison) => this.runSorting(order, comparison), 50);
|
|
12148
11501
|
const beforeanysource = async ({ detail: { type }, }) => {
|
|
12149
11502
|
// if sorting was provided - sort data
|
|
12150
11503
|
if (!!this.sorting && this.sortingFunc) {
|
|
@@ -12227,7 +11580,7 @@ class SortingPlugin extends BasePlugin {
|
|
|
12227
11580
|
this.sorting = Object.assign(Object.assign({}, this.sorting), sorting);
|
|
12228
11581
|
// extend sorting function with new sorting for multiple columns sorting
|
|
12229
11582
|
this.sortingFunc = Object.assign(Object.assign({}, this.sortingFunc), sortingFunc);
|
|
12230
|
-
if (column.prop in sorting &&
|
|
11583
|
+
if (column.prop in sorting && size$1(sorting) > 1 && order === undefined) {
|
|
12231
11584
|
delete sorting[column.prop];
|
|
12232
11585
|
delete sortingFunc[column.prop];
|
|
12233
11586
|
}
|
|
@@ -12259,7 +11612,7 @@ class SortingPlugin extends BasePlugin {
|
|
|
12259
11612
|
*/
|
|
12260
11613
|
async sort(sorting, sortingFunc, types = ['rgRow', 'rowPinStart', 'rowPinEnd']) {
|
|
12261
11614
|
// if no sorting - reset
|
|
12262
|
-
if (!
|
|
11615
|
+
if (!size$1(sorting)) {
|
|
12263
11616
|
this.sorting = undefined;
|
|
12264
11617
|
this.sortingFunc = undefined;
|
|
12265
11618
|
for (let type of types) {
|
|
@@ -12267,7 +11620,7 @@ class SortingPlugin extends BasePlugin {
|
|
|
12267
11620
|
// row data
|
|
12268
11621
|
const source = store.get('source');
|
|
12269
11622
|
// row indexes
|
|
12270
|
-
const proxyItems =
|
|
11623
|
+
const proxyItems = range$1(0, source.length);
|
|
12271
11624
|
setStore(store, {
|
|
12272
11625
|
proxyItems,
|
|
12273
11626
|
source: [...source],
|
|
@@ -12354,8 +11707,7 @@ class SortingPlugin extends BasePlugin {
|
|
|
12354
11707
|
* @param {number} upper The upper bound.
|
|
12355
11708
|
* @returns {number} Returns the clamped number.
|
|
12356
11709
|
*/
|
|
12357
|
-
|
|
12358
|
-
function baseClamp$1(number, lower, upper) {
|
|
11710
|
+
function baseClamp(number, lower, upper) {
|
|
12359
11711
|
if (number === number) {
|
|
12360
11712
|
if (upper !== undefined) {
|
|
12361
11713
|
number = number <= upper ? number : upper;
|
|
@@ -12367,11 +11719,6 @@ function baseClamp$1(number, lower, upper) {
|
|
|
12367
11719
|
return number;
|
|
12368
11720
|
}
|
|
12369
11721
|
|
|
12370
|
-
var _baseClamp = baseClamp$1;
|
|
12371
|
-
|
|
12372
|
-
var baseClamp = _baseClamp,
|
|
12373
|
-
toInteger$1 = toInteger_1;
|
|
12374
|
-
|
|
12375
11722
|
/** Used as references for the maximum length and index of an array. */
|
|
12376
11723
|
var MAX_ARRAY_LENGTH = 4294967295;
|
|
12377
11724
|
|
|
@@ -12402,15 +11749,10 @@ var MAX_ARRAY_LENGTH = 4294967295;
|
|
|
12402
11749
|
* _.toLength('3.2');
|
|
12403
11750
|
* // => 3
|
|
12404
11751
|
*/
|
|
12405
|
-
function toLength
|
|
12406
|
-
return value ? baseClamp(toInteger
|
|
11752
|
+
function toLength(value) {
|
|
11753
|
+
return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
|
|
12407
11754
|
}
|
|
12408
11755
|
|
|
12409
|
-
var toLength_1 = toLength$1;
|
|
12410
|
-
|
|
12411
|
-
var toInteger = toInteger_1,
|
|
12412
|
-
toLength = toLength_1;
|
|
12413
|
-
|
|
12414
11756
|
/**
|
|
12415
11757
|
* The base implementation of `_.fill` without an iteratee call guard.
|
|
12416
11758
|
*
|
|
@@ -12421,7 +11763,7 @@ var toInteger = toInteger_1,
|
|
|
12421
11763
|
* @param {number} [end=array.length] The end position.
|
|
12422
11764
|
* @returns {Array} Returns `array`.
|
|
12423
11765
|
*/
|
|
12424
|
-
function baseFill
|
|
11766
|
+
function baseFill(array, value, start, end) {
|
|
12425
11767
|
var length = array.length;
|
|
12426
11768
|
|
|
12427
11769
|
start = toInteger(start);
|
|
@@ -12439,11 +11781,6 @@ function baseFill$1(array, value, start, end) {
|
|
|
12439
11781
|
return array;
|
|
12440
11782
|
}
|
|
12441
11783
|
|
|
12442
|
-
var _baseFill = baseFill$1;
|
|
12443
|
-
|
|
12444
|
-
var baseFill = _baseFill,
|
|
12445
|
-
isIterateeCall = _isIterateeCall;
|
|
12446
|
-
|
|
12447
11784
|
/**
|
|
12448
11785
|
* Fills elements of `array` with `value` from `start` up to, but not
|
|
12449
11786
|
* including, `end`.
|
|
@@ -12485,8 +11822,6 @@ function fill(array, value, start, end) {
|
|
|
12485
11822
|
return baseFill(array, value, start, end);
|
|
12486
11823
|
}
|
|
12487
11824
|
|
|
12488
|
-
var fill_1 = fill;
|
|
12489
|
-
|
|
12490
11825
|
const INITIAL = {
|
|
12491
11826
|
mime: 'text/csv',
|
|
12492
11827
|
fileKind: 'csv',
|
|
@@ -12660,7 +11995,7 @@ class ExportFilePlugin extends BasePlugin {
|
|
|
12660
11995
|
}
|
|
12661
11996
|
getGroupHeaders(depth, groups, items, visibleItems) {
|
|
12662
11997
|
const rows = [];
|
|
12663
|
-
const template =
|
|
11998
|
+
const template = fill(new Array(items.length), '');
|
|
12664
11999
|
for (let d = 0; d < depth; d++) {
|
|
12665
12000
|
const rgRow = [...template];
|
|
12666
12001
|
rows.push(rgRow);
|
|
@@ -13232,7 +12567,7 @@ class ViewportService {
|
|
|
13232
12567
|
onColumnResize(type, { detail }, store) {
|
|
13233
12568
|
var _a;
|
|
13234
12569
|
(_a = this.config.dimensionProvider) === null || _a === void 0 ? void 0 : _a.setCustomSizes(type, detail, true);
|
|
13235
|
-
const changedItems =
|
|
12570
|
+
const changedItems = reduce(detail || {}, (r, size, i) => {
|
|
13236
12571
|
const index = parseInt(i, 10);
|
|
13237
12572
|
const item = getSourceItem(store, index);
|
|
13238
12573
|
if (item) {
|
|
@@ -13528,7 +12863,7 @@ class StretchColumn extends BasePlugin {
|
|
|
13528
12863
|
this.dropChanges();
|
|
13529
12864
|
// calculate grid size
|
|
13530
12865
|
let sizeDifference = this.revogrid.clientWidth - 1;
|
|
13531
|
-
|
|
12866
|
+
forEach(columns, (_, type) => {
|
|
13532
12867
|
const realSize = this.providers.dimension.stores[type].store.get('realSize');
|
|
13533
12868
|
sizeDifference -= realSize;
|
|
13534
12869
|
});
|
|
@@ -13994,7 +13329,7 @@ class ColumnPlugin extends BasePlugin {
|
|
|
13994
13329
|
super(revogrid, providers);
|
|
13995
13330
|
this.revogrid = revogrid;
|
|
13996
13331
|
this.providers = providers;
|
|
13997
|
-
this.moveFunc =
|
|
13332
|
+
this.moveFunc = debounce$1((e) => this.doMove(e), 5);
|
|
13998
13333
|
this.staticDragData = null;
|
|
13999
13334
|
this.dragData = null;
|
|
14000
13335
|
this.localSubscriptions = {};
|
|
@@ -14102,7 +13437,7 @@ class ColumnPlugin extends BasePlugin {
|
|
|
14102
13437
|
this.clearOrder();
|
|
14103
13438
|
}
|
|
14104
13439
|
clearLocalSubscriptions() {
|
|
14105
|
-
|
|
13440
|
+
forEach(this.localSubscriptions, ({ target, callback }, key) => target.removeEventListener(key, callback));
|
|
14106
13441
|
}
|
|
14107
13442
|
clearOrder() {
|
|
14108
13443
|
this.staticDragData = null;
|
|
@@ -14759,7 +14094,7 @@ class RevoGridComponent {
|
|
|
14759
14094
|
vals: after,
|
|
14760
14095
|
oldVals: before,
|
|
14761
14096
|
});
|
|
14762
|
-
// apply new
|
|
14097
|
+
// apply new values
|
|
14763
14098
|
const newRows = rowDefinitionByType(newVal);
|
|
14764
14099
|
// clear current defs
|
|
14765
14100
|
if (oldVal) {
|
|
@@ -14774,18 +14109,14 @@ class RevoGridComponent {
|
|
|
14774
14109
|
}
|
|
14775
14110
|
}
|
|
14776
14111
|
}
|
|
14777
|
-
|
|
14778
|
-
|
|
14779
|
-
this.dimensionProvider.setCustomSizes('rgRow', {});
|
|
14780
|
-
}
|
|
14781
|
-
else {
|
|
14782
|
-
return;
|
|
14783
|
-
}
|
|
14784
|
-
}
|
|
14785
|
-
Object.entries(newRows).forEach(([k, r]) => {
|
|
14112
|
+
// set new sizes
|
|
14113
|
+
rowTypes.forEach((t) => {
|
|
14786
14114
|
var _a;
|
|
14787
|
-
const
|
|
14788
|
-
|
|
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
|
+
}
|
|
14789
14120
|
});
|
|
14790
14121
|
}
|
|
14791
14122
|
trimmedRowsChanged(newVal = {}) {
|
|
@@ -15589,9 +14920,6 @@ class RevogrFocus$1 {
|
|
|
15589
14920
|
}; }
|
|
15590
14921
|
}
|
|
15591
14922
|
|
|
15592
|
-
var debounce = debounce_1,
|
|
15593
|
-
isObject = isObject_1;
|
|
15594
|
-
|
|
15595
14923
|
/** Error message constants. */
|
|
15596
14924
|
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
15597
14925
|
|
|
@@ -15650,15 +14978,13 @@ function throttle(func, wait, options) {
|
|
|
15650
14978
|
leading = 'leading' in options ? !!options.leading : leading;
|
|
15651
14979
|
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
15652
14980
|
}
|
|
15653
|
-
return debounce(func, wait, {
|
|
14981
|
+
return debounce$1(func, wait, {
|
|
15654
14982
|
'leading': leading,
|
|
15655
14983
|
'maxWait': wait,
|
|
15656
14984
|
'trailing': trailing
|
|
15657
14985
|
});
|
|
15658
14986
|
}
|
|
15659
14987
|
|
|
15660
|
-
var throttle_1 = throttle;
|
|
15661
|
-
|
|
15662
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}";
|
|
15663
14989
|
var RevogrTempRangeStyle0 = revogrTempRangeStyleCss;
|
|
15664
14990
|
|
|
@@ -15668,7 +14994,7 @@ var RevogrTempRangeStyle0 = revogrTempRangeStyleCss;
|
|
|
15668
14994
|
class RevogrFocus {
|
|
15669
14995
|
constructor(hostRef) {
|
|
15670
14996
|
registerInstance(this, hostRef);
|
|
15671
|
-
this.onChange =
|
|
14997
|
+
this.onChange = throttle((e) => this.doChange(e), 300);
|
|
15672
14998
|
this.selectionStore = undefined;
|
|
15673
14999
|
this.dimensionRow = undefined;
|
|
15674
15000
|
this.dimensionCol = undefined;
|
|
@@ -15735,9 +15061,7 @@ class RevogrFocus {
|
|
|
15735
15061
|
}; }
|
|
15736
15062
|
}
|
|
15737
15063
|
|
|
15738
|
-
var
|
|
15739
|
-
|
|
15740
|
-
var defineProperty$1 = (function() {
|
|
15064
|
+
var defineProperty = (function() {
|
|
15741
15065
|
try {
|
|
15742
15066
|
var func = getNative(Object, 'defineProperty');
|
|
15743
15067
|
func({}, '', {});
|
|
@@ -15745,9 +15069,7 @@ var defineProperty$1 = (function() {
|
|
|
15745
15069
|
} catch (e) {}
|
|
15746
15070
|
}());
|
|
15747
15071
|
|
|
15748
|
-
var
|
|
15749
|
-
|
|
15750
|
-
var defineProperty = _defineProperty;
|
|
15072
|
+
var defineProperty$1 = defineProperty;
|
|
15751
15073
|
|
|
15752
15074
|
/**
|
|
15753
15075
|
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
@@ -15758,9 +15080,9 @@ var defineProperty = _defineProperty;
|
|
|
15758
15080
|
* @param {string} key The key of the property to assign.
|
|
15759
15081
|
* @param {*} value The value to assign.
|
|
15760
15082
|
*/
|
|
15761
|
-
function baseAssignValue
|
|
15762
|
-
if (key == '__proto__' && defineProperty) {
|
|
15763
|
-
defineProperty(object, key, {
|
|
15083
|
+
function baseAssignValue(object, key, value) {
|
|
15084
|
+
if (key == '__proto__' && defineProperty$1) {
|
|
15085
|
+
defineProperty$1(object, key, {
|
|
15764
15086
|
'configurable': true,
|
|
15765
15087
|
'enumerable': true,
|
|
15766
15088
|
'value': value,
|
|
@@ -15771,8 +15093,6 @@ function baseAssignValue$1(object, key, value) {
|
|
|
15771
15093
|
}
|
|
15772
15094
|
}
|
|
15773
15095
|
|
|
15774
|
-
var _baseAssignValue = baseAssignValue$1;
|
|
15775
|
-
|
|
15776
15096
|
/**
|
|
15777
15097
|
* A specialized version of `baseAggregator` for arrays.
|
|
15778
15098
|
*
|
|
@@ -15783,8 +15103,7 @@ var _baseAssignValue = baseAssignValue$1;
|
|
|
15783
15103
|
* @param {Object} accumulator The initial aggregated object.
|
|
15784
15104
|
* @returns {Function} Returns `accumulator`.
|
|
15785
15105
|
*/
|
|
15786
|
-
|
|
15787
|
-
function arrayAggregator$1(array, setter, iteratee, accumulator) {
|
|
15106
|
+
function arrayAggregator(array, setter, iteratee, accumulator) {
|
|
15788
15107
|
var index = -1,
|
|
15789
15108
|
length = array == null ? 0 : array.length;
|
|
15790
15109
|
|
|
@@ -15795,10 +15114,6 @@ function arrayAggregator$1(array, setter, iteratee, accumulator) {
|
|
|
15795
15114
|
return accumulator;
|
|
15796
15115
|
}
|
|
15797
15116
|
|
|
15798
|
-
var _arrayAggregator = arrayAggregator$1;
|
|
15799
|
-
|
|
15800
|
-
var baseEach = _baseEach;
|
|
15801
|
-
|
|
15802
15117
|
/**
|
|
15803
15118
|
* Aggregates elements of `collection` on `accumulator` with keys transformed
|
|
15804
15119
|
* by `iteratee` and values set by `setter`.
|
|
@@ -15810,20 +15125,13 @@ var baseEach = _baseEach;
|
|
|
15810
15125
|
* @param {Object} accumulator The initial aggregated object.
|
|
15811
15126
|
* @returns {Function} Returns `accumulator`.
|
|
15812
15127
|
*/
|
|
15813
|
-
function baseAggregator
|
|
15814
|
-
baseEach(collection, function(value, key, collection) {
|
|
15128
|
+
function baseAggregator(collection, setter, iteratee, accumulator) {
|
|
15129
|
+
baseEach$1(collection, function(value, key, collection) {
|
|
15815
15130
|
setter(accumulator, value, iteratee(value), collection);
|
|
15816
15131
|
});
|
|
15817
15132
|
return accumulator;
|
|
15818
15133
|
}
|
|
15819
15134
|
|
|
15820
|
-
var _baseAggregator = baseAggregator$1;
|
|
15821
|
-
|
|
15822
|
-
var arrayAggregator = _arrayAggregator,
|
|
15823
|
-
baseAggregator = _baseAggregator,
|
|
15824
|
-
baseIteratee = _baseIteratee,
|
|
15825
|
-
isArray = isArray_1;
|
|
15826
|
-
|
|
15827
15135
|
/**
|
|
15828
15136
|
* Creates a function like `_.groupBy`.
|
|
15829
15137
|
*
|
|
@@ -15832,20 +15140,15 @@ var arrayAggregator = _arrayAggregator,
|
|
|
15832
15140
|
* @param {Function} [initializer] The accumulator object initializer.
|
|
15833
15141
|
* @returns {Function} Returns the new aggregator function.
|
|
15834
15142
|
*/
|
|
15835
|
-
function createAggregator
|
|
15143
|
+
function createAggregator(setter, initializer) {
|
|
15836
15144
|
return function(collection, iteratee) {
|
|
15837
|
-
var func = isArray(collection) ? arrayAggregator : baseAggregator,
|
|
15145
|
+
var func = isArray$1(collection) ? arrayAggregator : baseAggregator,
|
|
15838
15146
|
accumulator = initializer ? initializer() : {};
|
|
15839
15147
|
|
|
15840
15148
|
return func(collection, setter, baseIteratee(iteratee), accumulator);
|
|
15841
15149
|
};
|
|
15842
15150
|
}
|
|
15843
15151
|
|
|
15844
|
-
var _createAggregator = createAggregator$1;
|
|
15845
|
-
|
|
15846
|
-
var baseAssignValue = _baseAssignValue,
|
|
15847
|
-
createAggregator = _createAggregator;
|
|
15848
|
-
|
|
15849
15152
|
/**
|
|
15850
15153
|
* Creates an object composed of keys generated from the results of running
|
|
15851
15154
|
* each element of `collection` thru `iteratee`. The corresponding value of
|
|
@@ -15878,7 +15181,7 @@ var keyBy = createAggregator(function(result, value, key) {
|
|
|
15878
15181
|
baseAssignValue(result, key, value);
|
|
15879
15182
|
});
|
|
15880
15183
|
|
|
15881
|
-
var
|
|
15184
|
+
var keyBy$1 = keyBy;
|
|
15882
15185
|
|
|
15883
15186
|
const SortingSign = ({ column }) => {
|
|
15884
15187
|
var _a;
|
|
@@ -15965,7 +15268,7 @@ const ColumnGroupsRenderer = ({ additionalData, providers, depth, groups, visibl
|
|
|
15965
15268
|
for (let group of groups[i]) {
|
|
15966
15269
|
// if group in visible range
|
|
15967
15270
|
// find first visible group prop in visible columns range
|
|
15968
|
-
const indexFirstVisibleCol =
|
|
15271
|
+
const indexFirstVisibleCol = findIndex(group.ids, id => typeof visibleProps[id] === 'number');
|
|
15969
15272
|
if (indexFirstVisibleCol > -1) {
|
|
15970
15273
|
const colVisibleIndex = visibleProps[group.ids[indexFirstVisibleCol]]; // get column index
|
|
15971
15274
|
const groupStartIndex = colVisibleIndex - indexFirstVisibleCol; // first column index in group
|
|
@@ -16017,7 +15320,7 @@ class RevogrHeaderComponent {
|
|
|
16017
15320
|
}
|
|
16018
15321
|
onResizeGroup(changedX, startIndex, endIndex) {
|
|
16019
15322
|
const sizes = {};
|
|
16020
|
-
const cols =
|
|
15323
|
+
const cols = keyBy$1(this.viewportCol.get('items'), 'itemIndex');
|
|
16021
15324
|
const change = changedX / (endIndex - startIndex + 1);
|
|
16022
15325
|
for (let i = startIndex; i <= endIndex; i++) {
|
|
16023
15326
|
const item = cols[i];
|
|
@@ -16502,7 +15805,7 @@ class GridResizeService {
|
|
|
16502
15805
|
constructor(el, events) {
|
|
16503
15806
|
this.events = events;
|
|
16504
15807
|
this.resizeObserver = null;
|
|
16505
|
-
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);
|
|
16506
15809
|
this.init(el);
|
|
16507
15810
|
}
|
|
16508
15811
|
async init(el) {
|
|
@@ -17381,7 +16684,7 @@ exports.hydrateApp = hydrateApp;
|
|
|
17381
16684
|
}
|
|
17382
16685
|
|
|
17383
16686
|
/*
|
|
17384
|
-
Stencil Hydrate Runner v4.
|
|
16687
|
+
Stencil Hydrate Runner v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
17385
16688
|
*/
|
|
17386
16689
|
var __defProp = Object.defineProperty;
|
|
17387
16690
|
var __export = (target, all) => {
|
|
@@ -29362,11 +28665,6 @@ patchPropAttributes(
|
|
|
29362
28665
|
type: "submit"
|
|
29363
28666
|
}
|
|
29364
28667
|
);
|
|
29365
|
-
Object.defineProperty(MockButtonElement.prototype, "form", {
|
|
29366
|
-
get() {
|
|
29367
|
-
return this.hasAttribute("form") ? this.getAttribute("form") : null;
|
|
29368
|
-
}
|
|
29369
|
-
});
|
|
29370
28668
|
var MockImageElement = class extends MockHTMLElement {
|
|
29371
28669
|
constructor(ownerDocument) {
|
|
29372
28670
|
super(ownerDocument, "img");
|