@pie-element/explicit-constructed-response 9.0.1-esmbeta.3 → 9.0.1-next.4
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/CHANGELOG.md +8 -0
- package/configure/CHANGELOG.md +8 -0
- package/configure/package.json +3 -3
- package/controller/CHANGELOG.md +8 -0
- package/controller/package.json +3 -3
- package/module/controller.js +430 -3330
- package/module/element.js +1 -1
- package/module/index.html +1 -1
- package/module/manifest.json +5 -1
- package/module/print.html +1 -1
- package/module/print.js +1 -1
- package/package.json +9 -27
- package/esm/configure.js +0 -59695
- package/esm/configure.js.map +0 -1
- package/esm/controller.js +0 -5144
- package/esm/controller.js.map +0 -1
- package/esm/element.js +0 -38117
- package/esm/element.js.map +0 -1
- package/esm/package.json +0 -4
- package/esm/print.js +0 -38801
- package/esm/print.js.map +0 -1
package/module/controller.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var commonjsGlobal
|
|
1
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A specialized version of `_.map` for arrays without support for iteratee
|
|
@@ -21,7 +21,7 @@ function arrayMap$2(array, iteratee) {
|
|
|
21
21
|
return result;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
var _arrayMap
|
|
24
|
+
var _arrayMap = arrayMap$2;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Removes all key-value entries from the list cache.
|
|
@@ -36,7 +36,7 @@ function listCacheClear$1() {
|
|
|
36
36
|
this.size = 0;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
var _listCacheClear
|
|
39
|
+
var _listCacheClear = listCacheClear$1;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* Performs a
|
|
@@ -75,9 +75,9 @@ function eq$2(value, other) {
|
|
|
75
75
|
return value === other || (value !== value && other !== other);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
var eq_1
|
|
78
|
+
var eq_1 = eq$2;
|
|
79
79
|
|
|
80
|
-
var eq$1 = eq_1
|
|
80
|
+
var eq$1 = eq_1;
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
83
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
@@ -97,9 +97,9 @@ function assocIndexOf$4(array, key) {
|
|
|
97
97
|
return -1;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
var _assocIndexOf
|
|
100
|
+
var _assocIndexOf = assocIndexOf$4;
|
|
101
101
|
|
|
102
|
-
var assocIndexOf$3 = _assocIndexOf
|
|
102
|
+
var assocIndexOf$3 = _assocIndexOf;
|
|
103
103
|
|
|
104
104
|
/** Used for built-in method references. */
|
|
105
105
|
var arrayProto = Array.prototype;
|
|
@@ -133,9 +133,9 @@ function listCacheDelete$1(key) {
|
|
|
133
133
|
return true;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
var _listCacheDelete
|
|
136
|
+
var _listCacheDelete = listCacheDelete$1;
|
|
137
137
|
|
|
138
|
-
var assocIndexOf$2 = _assocIndexOf
|
|
138
|
+
var assocIndexOf$2 = _assocIndexOf;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* Gets the list cache value for `key`.
|
|
@@ -153,9 +153,9 @@ function listCacheGet$1(key) {
|
|
|
153
153
|
return index < 0 ? undefined : data[index][1];
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
var _listCacheGet
|
|
156
|
+
var _listCacheGet = listCacheGet$1;
|
|
157
157
|
|
|
158
|
-
var assocIndexOf$1 = _assocIndexOf
|
|
158
|
+
var assocIndexOf$1 = _assocIndexOf;
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
161
|
* Checks if a list cache value for `key` exists.
|
|
@@ -170,9 +170,9 @@ function listCacheHas$1(key) {
|
|
|
170
170
|
return assocIndexOf$1(this.__data__, key) > -1;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
var _listCacheHas
|
|
173
|
+
var _listCacheHas = listCacheHas$1;
|
|
174
174
|
|
|
175
|
-
var assocIndexOf = _assocIndexOf
|
|
175
|
+
var assocIndexOf = _assocIndexOf;
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
178
|
* Sets the list cache `key` to `value`.
|
|
@@ -197,13 +197,13 @@ function listCacheSet$1(key, value) {
|
|
|
197
197
|
return this;
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
var _listCacheSet
|
|
200
|
+
var _listCacheSet = listCacheSet$1;
|
|
201
201
|
|
|
202
|
-
var listCacheClear = _listCacheClear
|
|
203
|
-
listCacheDelete = _listCacheDelete
|
|
204
|
-
listCacheGet = _listCacheGet
|
|
205
|
-
listCacheHas = _listCacheHas
|
|
206
|
-
listCacheSet = _listCacheSet
|
|
202
|
+
var listCacheClear = _listCacheClear,
|
|
203
|
+
listCacheDelete = _listCacheDelete,
|
|
204
|
+
listCacheGet = _listCacheGet,
|
|
205
|
+
listCacheHas = _listCacheHas,
|
|
206
|
+
listCacheSet = _listCacheSet;
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
209
|
* Creates an list cache object.
|
|
@@ -230,9 +230,9 @@ ListCache$4.prototype.get = listCacheGet;
|
|
|
230
230
|
ListCache$4.prototype.has = listCacheHas;
|
|
231
231
|
ListCache$4.prototype.set = listCacheSet;
|
|
232
232
|
|
|
233
|
-
var _ListCache
|
|
233
|
+
var _ListCache = ListCache$4;
|
|
234
234
|
|
|
235
|
-
var ListCache$3 = _ListCache
|
|
235
|
+
var ListCache$3 = _ListCache;
|
|
236
236
|
|
|
237
237
|
/**
|
|
238
238
|
* Removes all key-value entries from the stack.
|
|
@@ -302,11 +302,11 @@ var _stackHas = stackHas$1;
|
|
|
302
302
|
|
|
303
303
|
/** Detect free variable `global` from Node.js. */
|
|
304
304
|
|
|
305
|
-
var freeGlobal$1 = typeof commonjsGlobal
|
|
305
|
+
var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
306
306
|
|
|
307
|
-
var _freeGlobal
|
|
307
|
+
var _freeGlobal = freeGlobal$1;
|
|
308
308
|
|
|
309
|
-
var freeGlobal = _freeGlobal
|
|
309
|
+
var freeGlobal = _freeGlobal;
|
|
310
310
|
|
|
311
311
|
/** Detect free variable `self`. */
|
|
312
312
|
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
@@ -314,16 +314,16 @@ var freeSelf = typeof self == 'object' && self && self.Object === Object && self
|
|
|
314
314
|
/** Used as a reference to the global object. */
|
|
315
315
|
var root$8 = freeGlobal || freeSelf || Function('return this')();
|
|
316
316
|
|
|
317
|
-
var _root
|
|
317
|
+
var _root = root$8;
|
|
318
318
|
|
|
319
|
-
var root$7 = _root
|
|
319
|
+
var root$7 = _root;
|
|
320
320
|
|
|
321
321
|
/** Built-in value references. */
|
|
322
322
|
var Symbol$5 = root$7.Symbol;
|
|
323
323
|
|
|
324
|
-
var _Symbol
|
|
324
|
+
var _Symbol = Symbol$5;
|
|
325
325
|
|
|
326
|
-
var Symbol$4 = _Symbol
|
|
326
|
+
var Symbol$4 = _Symbol;
|
|
327
327
|
|
|
328
328
|
/** Used for built-in method references. */
|
|
329
329
|
var objectProto$c = Object.prototype;
|
|
@@ -368,7 +368,7 @@ function getRawTag$1(value) {
|
|
|
368
368
|
return result;
|
|
369
369
|
}
|
|
370
370
|
|
|
371
|
-
var _getRawTag
|
|
371
|
+
var _getRawTag = getRawTag$1;
|
|
372
372
|
|
|
373
373
|
/** Used for built-in method references. */
|
|
374
374
|
|
|
@@ -392,11 +392,11 @@ function objectToString$1(value) {
|
|
|
392
392
|
return nativeObjectToString.call(value);
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
-
var _objectToString
|
|
395
|
+
var _objectToString = objectToString$1;
|
|
396
396
|
|
|
397
|
-
var Symbol$3 = _Symbol
|
|
398
|
-
getRawTag = _getRawTag
|
|
399
|
-
objectToString = _objectToString
|
|
397
|
+
var Symbol$3 = _Symbol,
|
|
398
|
+
getRawTag = _getRawTag,
|
|
399
|
+
objectToString = _objectToString;
|
|
400
400
|
|
|
401
401
|
/** `Object#toString` result references. */
|
|
402
402
|
var nullTag = '[object Null]',
|
|
@@ -421,7 +421,7 @@ function baseGetTag$5(value) {
|
|
|
421
421
|
: objectToString(value);
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
-
var _baseGetTag
|
|
424
|
+
var _baseGetTag = baseGetTag$5;
|
|
425
425
|
|
|
426
426
|
/**
|
|
427
427
|
* Checks if `value` is the
|
|
@@ -454,10 +454,10 @@ function isObject$4(value) {
|
|
|
454
454
|
return value != null && (type == 'object' || type == 'function');
|
|
455
455
|
}
|
|
456
456
|
|
|
457
|
-
var isObject_1
|
|
457
|
+
var isObject_1 = isObject$4;
|
|
458
458
|
|
|
459
|
-
var baseGetTag$4 = _baseGetTag
|
|
460
|
-
isObject$3 = isObject_1
|
|
459
|
+
var baseGetTag$4 = _baseGetTag,
|
|
460
|
+
isObject$3 = isObject_1;
|
|
461
461
|
|
|
462
462
|
/** `Object#toString` result references. */
|
|
463
463
|
var asyncTag = '[object AsyncFunction]',
|
|
@@ -492,16 +492,16 @@ function isFunction$2(value) {
|
|
|
492
492
|
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
493
493
|
}
|
|
494
494
|
|
|
495
|
-
var isFunction_1
|
|
495
|
+
var isFunction_1 = isFunction$2;
|
|
496
496
|
|
|
497
|
-
var root$6 = _root
|
|
497
|
+
var root$6 = _root;
|
|
498
498
|
|
|
499
499
|
/** Used to detect overreaching core-js shims. */
|
|
500
500
|
var coreJsData$1 = root$6['__core-js_shared__'];
|
|
501
501
|
|
|
502
|
-
var _coreJsData
|
|
502
|
+
var _coreJsData = coreJsData$1;
|
|
503
503
|
|
|
504
|
-
var coreJsData = _coreJsData
|
|
504
|
+
var coreJsData = _coreJsData;
|
|
505
505
|
|
|
506
506
|
/** Used to detect methods masquerading as native. */
|
|
507
507
|
var maskSrcKey = (function() {
|
|
@@ -520,7 +520,7 @@ function isMasked$1(func) {
|
|
|
520
520
|
return !!maskSrcKey && (maskSrcKey in func);
|
|
521
521
|
}
|
|
522
522
|
|
|
523
|
-
var _isMasked
|
|
523
|
+
var _isMasked = isMasked$1;
|
|
524
524
|
|
|
525
525
|
/** Used for built-in method references. */
|
|
526
526
|
|
|
@@ -548,12 +548,12 @@ function toSource$2(func) {
|
|
|
548
548
|
return '';
|
|
549
549
|
}
|
|
550
550
|
|
|
551
|
-
var _toSource
|
|
551
|
+
var _toSource = toSource$2;
|
|
552
552
|
|
|
553
|
-
var isFunction$1 = isFunction_1
|
|
554
|
-
isMasked = _isMasked
|
|
555
|
-
isObject$2 = isObject_1
|
|
556
|
-
toSource$1 = _toSource
|
|
553
|
+
var isFunction$1 = isFunction_1,
|
|
554
|
+
isMasked = _isMasked,
|
|
555
|
+
isObject$2 = isObject_1,
|
|
556
|
+
toSource$1 = _toSource;
|
|
557
557
|
|
|
558
558
|
/**
|
|
559
559
|
* Used to match `RegExp`
|
|
@@ -596,7 +596,7 @@ function baseIsNative$1(value) {
|
|
|
596
596
|
return pattern.test(toSource$1(value));
|
|
597
597
|
}
|
|
598
598
|
|
|
599
|
-
var _baseIsNative
|
|
599
|
+
var _baseIsNative = baseIsNative$1;
|
|
600
600
|
|
|
601
601
|
/**
|
|
602
602
|
* Gets the value at `key` of `object`.
|
|
@@ -611,10 +611,10 @@ function getValue$1(object, key) {
|
|
|
611
611
|
return object == null ? undefined : object[key];
|
|
612
612
|
}
|
|
613
613
|
|
|
614
|
-
var _getValue
|
|
614
|
+
var _getValue = getValue$1;
|
|
615
615
|
|
|
616
|
-
var baseIsNative = _baseIsNative
|
|
617
|
-
getValue = _getValue
|
|
616
|
+
var baseIsNative = _baseIsNative,
|
|
617
|
+
getValue = _getValue;
|
|
618
618
|
|
|
619
619
|
/**
|
|
620
620
|
* Gets the native function at `key` of `object`.
|
|
@@ -629,24 +629,24 @@ function getNative$6(object, key) {
|
|
|
629
629
|
return baseIsNative(value) ? value : undefined;
|
|
630
630
|
}
|
|
631
631
|
|
|
632
|
-
var _getNative
|
|
632
|
+
var _getNative = getNative$6;
|
|
633
633
|
|
|
634
|
-
var getNative$5 = _getNative
|
|
635
|
-
root$5 = _root
|
|
634
|
+
var getNative$5 = _getNative,
|
|
635
|
+
root$5 = _root;
|
|
636
636
|
|
|
637
637
|
/* Built-in method references that are verified to be native. */
|
|
638
638
|
var Map$3 = getNative$5(root$5, 'Map');
|
|
639
639
|
|
|
640
|
-
var _Map
|
|
640
|
+
var _Map = Map$3;
|
|
641
641
|
|
|
642
|
-
var getNative$4 = _getNative
|
|
642
|
+
var getNative$4 = _getNative;
|
|
643
643
|
|
|
644
644
|
/* Built-in method references that are verified to be native. */
|
|
645
645
|
var nativeCreate$4 = getNative$4(Object, 'create');
|
|
646
646
|
|
|
647
|
-
var _nativeCreate
|
|
647
|
+
var _nativeCreate = nativeCreate$4;
|
|
648
648
|
|
|
649
|
-
var nativeCreate$3 = _nativeCreate
|
|
649
|
+
var nativeCreate$3 = _nativeCreate;
|
|
650
650
|
|
|
651
651
|
/**
|
|
652
652
|
* Removes all key-value entries from the hash.
|
|
@@ -660,7 +660,7 @@ function hashClear$1() {
|
|
|
660
660
|
this.size = 0;
|
|
661
661
|
}
|
|
662
662
|
|
|
663
|
-
var _hashClear
|
|
663
|
+
var _hashClear = hashClear$1;
|
|
664
664
|
|
|
665
665
|
/**
|
|
666
666
|
* Removes `key` and its value from the hash.
|
|
@@ -679,9 +679,9 @@ function hashDelete$1(key) {
|
|
|
679
679
|
return result;
|
|
680
680
|
}
|
|
681
681
|
|
|
682
|
-
var _hashDelete
|
|
682
|
+
var _hashDelete = hashDelete$1;
|
|
683
683
|
|
|
684
|
-
var nativeCreate$2 = _nativeCreate
|
|
684
|
+
var nativeCreate$2 = _nativeCreate;
|
|
685
685
|
|
|
686
686
|
/** Used to stand-in for `undefined` hash values. */
|
|
687
687
|
var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
|
|
@@ -710,9 +710,9 @@ function hashGet$1(key) {
|
|
|
710
710
|
return hasOwnProperty$7.call(data, key) ? data[key] : undefined;
|
|
711
711
|
}
|
|
712
712
|
|
|
713
|
-
var _hashGet
|
|
713
|
+
var _hashGet = hashGet$1;
|
|
714
714
|
|
|
715
|
-
var nativeCreate$1 = _nativeCreate
|
|
715
|
+
var nativeCreate$1 = _nativeCreate;
|
|
716
716
|
|
|
717
717
|
/** Used for built-in method references. */
|
|
718
718
|
var objectProto$8 = Object.prototype;
|
|
@@ -734,9 +734,9 @@ function hashHas$1(key) {
|
|
|
734
734
|
return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$6.call(data, key);
|
|
735
735
|
}
|
|
736
736
|
|
|
737
|
-
var _hashHas
|
|
737
|
+
var _hashHas = hashHas$1;
|
|
738
738
|
|
|
739
|
-
var nativeCreate = _nativeCreate
|
|
739
|
+
var nativeCreate = _nativeCreate;
|
|
740
740
|
|
|
741
741
|
/** Used to stand-in for `undefined` hash values. */
|
|
742
742
|
var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
@@ -758,13 +758,13 @@ function hashSet$1(key, value) {
|
|
|
758
758
|
return this;
|
|
759
759
|
}
|
|
760
760
|
|
|
761
|
-
var _hashSet
|
|
761
|
+
var _hashSet = hashSet$1;
|
|
762
762
|
|
|
763
|
-
var hashClear = _hashClear
|
|
764
|
-
hashDelete = _hashDelete
|
|
765
|
-
hashGet = _hashGet
|
|
766
|
-
hashHas = _hashHas
|
|
767
|
-
hashSet = _hashSet
|
|
763
|
+
var hashClear = _hashClear,
|
|
764
|
+
hashDelete = _hashDelete,
|
|
765
|
+
hashGet = _hashGet,
|
|
766
|
+
hashHas = _hashHas,
|
|
767
|
+
hashSet = _hashSet;
|
|
768
768
|
|
|
769
769
|
/**
|
|
770
770
|
* Creates a hash object.
|
|
@@ -791,11 +791,11 @@ Hash$1.prototype.get = hashGet;
|
|
|
791
791
|
Hash$1.prototype.has = hashHas;
|
|
792
792
|
Hash$1.prototype.set = hashSet;
|
|
793
793
|
|
|
794
|
-
var _Hash
|
|
794
|
+
var _Hash = Hash$1;
|
|
795
795
|
|
|
796
|
-
var Hash = _Hash
|
|
797
|
-
ListCache$2 = _ListCache
|
|
798
|
-
Map$2 = _Map
|
|
796
|
+
var Hash = _Hash,
|
|
797
|
+
ListCache$2 = _ListCache,
|
|
798
|
+
Map$2 = _Map;
|
|
799
799
|
|
|
800
800
|
/**
|
|
801
801
|
* Removes all key-value entries from the map.
|
|
@@ -813,7 +813,7 @@ function mapCacheClear$1() {
|
|
|
813
813
|
};
|
|
814
814
|
}
|
|
815
815
|
|
|
816
|
-
var _mapCacheClear
|
|
816
|
+
var _mapCacheClear = mapCacheClear$1;
|
|
817
817
|
|
|
818
818
|
/**
|
|
819
819
|
* Checks if `value` is suitable for use as unique object key.
|
|
@@ -830,9 +830,9 @@ function isKeyable$1(value) {
|
|
|
830
830
|
: (value === null);
|
|
831
831
|
}
|
|
832
832
|
|
|
833
|
-
var _isKeyable
|
|
833
|
+
var _isKeyable = isKeyable$1;
|
|
834
834
|
|
|
835
|
-
var isKeyable = _isKeyable
|
|
835
|
+
var isKeyable = _isKeyable;
|
|
836
836
|
|
|
837
837
|
/**
|
|
838
838
|
* Gets the data for `map`.
|
|
@@ -849,9 +849,9 @@ function getMapData$4(map, key) {
|
|
|
849
849
|
: data.map;
|
|
850
850
|
}
|
|
851
851
|
|
|
852
|
-
var _getMapData
|
|
852
|
+
var _getMapData = getMapData$4;
|
|
853
853
|
|
|
854
|
-
var getMapData$3 = _getMapData
|
|
854
|
+
var getMapData$3 = _getMapData;
|
|
855
855
|
|
|
856
856
|
/**
|
|
857
857
|
* Removes `key` and its value from the map.
|
|
@@ -868,9 +868,9 @@ function mapCacheDelete$1(key) {
|
|
|
868
868
|
return result;
|
|
869
869
|
}
|
|
870
870
|
|
|
871
|
-
var _mapCacheDelete
|
|
871
|
+
var _mapCacheDelete = mapCacheDelete$1;
|
|
872
872
|
|
|
873
|
-
var getMapData$2 = _getMapData
|
|
873
|
+
var getMapData$2 = _getMapData;
|
|
874
874
|
|
|
875
875
|
/**
|
|
876
876
|
* Gets the map value for `key`.
|
|
@@ -885,9 +885,9 @@ function mapCacheGet$1(key) {
|
|
|
885
885
|
return getMapData$2(this, key).get(key);
|
|
886
886
|
}
|
|
887
887
|
|
|
888
|
-
var _mapCacheGet
|
|
888
|
+
var _mapCacheGet = mapCacheGet$1;
|
|
889
889
|
|
|
890
|
-
var getMapData$1 = _getMapData
|
|
890
|
+
var getMapData$1 = _getMapData;
|
|
891
891
|
|
|
892
892
|
/**
|
|
893
893
|
* Checks if a map value for `key` exists.
|
|
@@ -902,9 +902,9 @@ function mapCacheHas$1(key) {
|
|
|
902
902
|
return getMapData$1(this, key).has(key);
|
|
903
903
|
}
|
|
904
904
|
|
|
905
|
-
var _mapCacheHas
|
|
905
|
+
var _mapCacheHas = mapCacheHas$1;
|
|
906
906
|
|
|
907
|
-
var getMapData = _getMapData
|
|
907
|
+
var getMapData = _getMapData;
|
|
908
908
|
|
|
909
909
|
/**
|
|
910
910
|
* Sets the map `key` to `value`.
|
|
@@ -925,13 +925,13 @@ function mapCacheSet$1(key, value) {
|
|
|
925
925
|
return this;
|
|
926
926
|
}
|
|
927
927
|
|
|
928
|
-
var _mapCacheSet
|
|
928
|
+
var _mapCacheSet = mapCacheSet$1;
|
|
929
929
|
|
|
930
|
-
var mapCacheClear = _mapCacheClear
|
|
931
|
-
mapCacheDelete = _mapCacheDelete
|
|
932
|
-
mapCacheGet = _mapCacheGet
|
|
933
|
-
mapCacheHas = _mapCacheHas
|
|
934
|
-
mapCacheSet = _mapCacheSet
|
|
930
|
+
var mapCacheClear = _mapCacheClear,
|
|
931
|
+
mapCacheDelete = _mapCacheDelete,
|
|
932
|
+
mapCacheGet = _mapCacheGet,
|
|
933
|
+
mapCacheHas = _mapCacheHas,
|
|
934
|
+
mapCacheSet = _mapCacheSet;
|
|
935
935
|
|
|
936
936
|
/**
|
|
937
937
|
* Creates a map cache object to store key-value pairs.
|
|
@@ -958,11 +958,11 @@ MapCache$3.prototype.get = mapCacheGet;
|
|
|
958
958
|
MapCache$3.prototype.has = mapCacheHas;
|
|
959
959
|
MapCache$3.prototype.set = mapCacheSet;
|
|
960
960
|
|
|
961
|
-
var _MapCache
|
|
961
|
+
var _MapCache = MapCache$3;
|
|
962
962
|
|
|
963
|
-
var ListCache$1 = _ListCache
|
|
964
|
-
Map$1 = _Map
|
|
965
|
-
MapCache$2 = _MapCache
|
|
963
|
+
var ListCache$1 = _ListCache,
|
|
964
|
+
Map$1 = _Map,
|
|
965
|
+
MapCache$2 = _MapCache;
|
|
966
966
|
|
|
967
967
|
/** Used as the size to enable large array optimizations. */
|
|
968
968
|
var LARGE_ARRAY_SIZE = 200;
|
|
@@ -995,7 +995,7 @@ function stackSet$1(key, value) {
|
|
|
995
995
|
|
|
996
996
|
var _stackSet = stackSet$1;
|
|
997
997
|
|
|
998
|
-
var ListCache = _ListCache
|
|
998
|
+
var ListCache = _ListCache,
|
|
999
999
|
stackClear = _stackClear,
|
|
1000
1000
|
stackDelete = _stackDelete,
|
|
1001
1001
|
stackGet = _stackGet,
|
|
@@ -1060,7 +1060,7 @@ function setCacheHas$1(value) {
|
|
|
1060
1060
|
|
|
1061
1061
|
var _setCacheHas = setCacheHas$1;
|
|
1062
1062
|
|
|
1063
|
-
var MapCache$1 = _MapCache
|
|
1063
|
+
var MapCache$1 = _MapCache,
|
|
1064
1064
|
setCacheAdd = _setCacheAdd,
|
|
1065
1065
|
setCacheHas = _setCacheHas;
|
|
1066
1066
|
|
|
@@ -1213,7 +1213,7 @@ function equalArrays$2(array, other, bitmask, customizer, equalFunc, stack) {
|
|
|
1213
1213
|
|
|
1214
1214
|
var _equalArrays = equalArrays$2;
|
|
1215
1215
|
|
|
1216
|
-
var root$4 = _root
|
|
1216
|
+
var root$4 = _root;
|
|
1217
1217
|
|
|
1218
1218
|
/** Built-in value references. */
|
|
1219
1219
|
var Uint8Array$1 = root$4.Uint8Array;
|
|
@@ -1260,9 +1260,9 @@ function setToArray$1(set) {
|
|
|
1260
1260
|
|
|
1261
1261
|
var _setToArray = setToArray$1;
|
|
1262
1262
|
|
|
1263
|
-
var Symbol$2 = _Symbol
|
|
1263
|
+
var Symbol$2 = _Symbol,
|
|
1264
1264
|
Uint8Array = _Uint8Array,
|
|
1265
|
-
eq = eq_1
|
|
1265
|
+
eq = eq_1,
|
|
1266
1266
|
equalArrays$1 = _equalArrays,
|
|
1267
1267
|
mapToArray = _mapToArray,
|
|
1268
1268
|
setToArray = _setToArray;
|
|
@@ -1421,10 +1421,10 @@ var _arrayPush = arrayPush$1;
|
|
|
1421
1421
|
|
|
1422
1422
|
var isArray$b = Array.isArray;
|
|
1423
1423
|
|
|
1424
|
-
var isArray_1
|
|
1424
|
+
var isArray_1 = isArray$b;
|
|
1425
1425
|
|
|
1426
1426
|
var arrayPush = _arrayPush,
|
|
1427
|
-
isArray$a = isArray_1
|
|
1427
|
+
isArray$a = isArray_1;
|
|
1428
1428
|
|
|
1429
1429
|
/**
|
|
1430
1430
|
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
@@ -1547,7 +1547,7 @@ function baseTimes$1(n, iteratee) {
|
|
|
1547
1547
|
return result;
|
|
1548
1548
|
}
|
|
1549
1549
|
|
|
1550
|
-
var _baseTimes
|
|
1550
|
+
var _baseTimes = baseTimes$1;
|
|
1551
1551
|
|
|
1552
1552
|
/**
|
|
1553
1553
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
@@ -1578,10 +1578,10 @@ function isObjectLike$5(value) {
|
|
|
1578
1578
|
return value != null && typeof value == 'object';
|
|
1579
1579
|
}
|
|
1580
1580
|
|
|
1581
|
-
var isObjectLike_1
|
|
1581
|
+
var isObjectLike_1 = isObjectLike$5;
|
|
1582
1582
|
|
|
1583
|
-
var baseGetTag$3 = _baseGetTag
|
|
1584
|
-
isObjectLike$4 = isObjectLike_1
|
|
1583
|
+
var baseGetTag$3 = _baseGetTag,
|
|
1584
|
+
isObjectLike$4 = isObjectLike_1;
|
|
1585
1585
|
|
|
1586
1586
|
/** `Object#toString` result references. */
|
|
1587
1587
|
var argsTag$2 = '[object Arguments]';
|
|
@@ -1597,10 +1597,10 @@ function baseIsArguments$1(value) {
|
|
|
1597
1597
|
return isObjectLike$4(value) && baseGetTag$3(value) == argsTag$2;
|
|
1598
1598
|
}
|
|
1599
1599
|
|
|
1600
|
-
var _baseIsArguments
|
|
1600
|
+
var _baseIsArguments = baseIsArguments$1;
|
|
1601
1601
|
|
|
1602
|
-
var baseIsArguments = _baseIsArguments
|
|
1603
|
-
isObjectLike$3 = isObjectLike_1
|
|
1602
|
+
var baseIsArguments = _baseIsArguments,
|
|
1603
|
+
isObjectLike$3 = isObjectLike_1;
|
|
1604
1604
|
|
|
1605
1605
|
/** Used for built-in method references. */
|
|
1606
1606
|
var objectProto$6 = Object.prototype;
|
|
@@ -1634,9 +1634,9 @@ var isArguments$3 = baseIsArguments(function() { return arguments; }()) ? baseIs
|
|
|
1634
1634
|
!propertyIsEnumerable.call(value, 'callee');
|
|
1635
1635
|
};
|
|
1636
1636
|
|
|
1637
|
-
var isArguments_1
|
|
1637
|
+
var isArguments_1 = isArguments$3;
|
|
1638
1638
|
|
|
1639
|
-
var isBuffer$
|
|
1639
|
+
var isBuffer$3 = {exports: {}};
|
|
1640
1640
|
|
|
1641
1641
|
/**
|
|
1642
1642
|
* This method returns `false`.
|
|
@@ -1656,11 +1656,11 @@ function stubFalse() {
|
|
|
1656
1656
|
return false;
|
|
1657
1657
|
}
|
|
1658
1658
|
|
|
1659
|
-
var stubFalse_1
|
|
1659
|
+
var stubFalse_1 = stubFalse;
|
|
1660
1660
|
|
|
1661
1661
|
(function (module, exports) {
|
|
1662
|
-
var root = _root
|
|
1663
|
-
stubFalse = stubFalse_1
|
|
1662
|
+
var root = _root,
|
|
1663
|
+
stubFalse = stubFalse_1;
|
|
1664
1664
|
|
|
1665
1665
|
/** Detect free variable `exports`. */
|
|
1666
1666
|
var freeExports = exports && !exports.nodeType && exports;
|
|
@@ -1697,7 +1697,7 @@ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
|
1697
1697
|
var isBuffer = nativeIsBuffer || stubFalse;
|
|
1698
1698
|
|
|
1699
1699
|
module.exports = isBuffer;
|
|
1700
|
-
}(isBuffer$
|
|
1700
|
+
}(isBuffer$3, isBuffer$3.exports));
|
|
1701
1701
|
|
|
1702
1702
|
/** Used as references for various `Number` constants. */
|
|
1703
1703
|
|
|
@@ -1724,7 +1724,7 @@ function isIndex$2(value, length) {
|
|
|
1724
1724
|
(value > -1 && value % 1 == 0 && value < length);
|
|
1725
1725
|
}
|
|
1726
1726
|
|
|
1727
|
-
var _isIndex
|
|
1727
|
+
var _isIndex = isIndex$2;
|
|
1728
1728
|
|
|
1729
1729
|
/** Used as references for various `Number` constants. */
|
|
1730
1730
|
|
|
@@ -1761,11 +1761,11 @@ function isLength$3(value) {
|
|
|
1761
1761
|
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
1762
1762
|
}
|
|
1763
1763
|
|
|
1764
|
-
var isLength_1
|
|
1764
|
+
var isLength_1 = isLength$3;
|
|
1765
1765
|
|
|
1766
|
-
var baseGetTag$2 = _baseGetTag
|
|
1767
|
-
isLength$2 = isLength_1
|
|
1768
|
-
isObjectLike$2 = isObjectLike_1
|
|
1766
|
+
var baseGetTag$2 = _baseGetTag,
|
|
1767
|
+
isLength$2 = isLength_1,
|
|
1768
|
+
isObjectLike$2 = isObjectLike_1;
|
|
1769
1769
|
|
|
1770
1770
|
/** `Object#toString` result references. */
|
|
1771
1771
|
var argsTag$1 = '[object Arguments]',
|
|
@@ -1822,7 +1822,7 @@ function baseIsTypedArray$1(value) {
|
|
|
1822
1822
|
isLength$2(value.length) && !!typedArrayTags[baseGetTag$2(value)];
|
|
1823
1823
|
}
|
|
1824
1824
|
|
|
1825
|
-
var _baseIsTypedArray
|
|
1825
|
+
var _baseIsTypedArray = baseIsTypedArray$1;
|
|
1826
1826
|
|
|
1827
1827
|
/**
|
|
1828
1828
|
* The base implementation of `_.unary` without support for storing metadata.
|
|
@@ -1838,12 +1838,12 @@ function baseUnary$1(func) {
|
|
|
1838
1838
|
};
|
|
1839
1839
|
}
|
|
1840
1840
|
|
|
1841
|
-
var _baseUnary
|
|
1841
|
+
var _baseUnary = baseUnary$1;
|
|
1842
1842
|
|
|
1843
|
-
var _nodeUtil
|
|
1843
|
+
var _nodeUtil = {exports: {}};
|
|
1844
1844
|
|
|
1845
1845
|
(function (module, exports) {
|
|
1846
|
-
var freeGlobal = _freeGlobal
|
|
1846
|
+
var freeGlobal = _freeGlobal;
|
|
1847
1847
|
|
|
1848
1848
|
/** Detect free variable `exports`. */
|
|
1849
1849
|
var freeExports = exports && !exports.nodeType && exports;
|
|
@@ -1873,11 +1873,11 @@ var nodeUtil = (function() {
|
|
|
1873
1873
|
}());
|
|
1874
1874
|
|
|
1875
1875
|
module.exports = nodeUtil;
|
|
1876
|
-
}(_nodeUtil
|
|
1876
|
+
}(_nodeUtil, _nodeUtil.exports));
|
|
1877
1877
|
|
|
1878
|
-
var baseIsTypedArray = _baseIsTypedArray
|
|
1879
|
-
baseUnary = _baseUnary
|
|
1880
|
-
nodeUtil = _nodeUtil
|
|
1878
|
+
var baseIsTypedArray = _baseIsTypedArray,
|
|
1879
|
+
baseUnary = _baseUnary,
|
|
1880
|
+
nodeUtil = _nodeUtil.exports;
|
|
1881
1881
|
|
|
1882
1882
|
/* Node.js helper references. */
|
|
1883
1883
|
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
@@ -1901,14 +1901,14 @@ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
|
1901
1901
|
*/
|
|
1902
1902
|
var isTypedArray$3 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
1903
1903
|
|
|
1904
|
-
var isTypedArray_1
|
|
1904
|
+
var isTypedArray_1 = isTypedArray$3;
|
|
1905
1905
|
|
|
1906
|
-
var baseTimes = _baseTimes
|
|
1907
|
-
isArguments$2 = isArguments_1
|
|
1908
|
-
isArray$9 = isArray_1
|
|
1909
|
-
isBuffer$
|
|
1910
|
-
isIndex$1 = _isIndex
|
|
1911
|
-
isTypedArray$2 = isTypedArray_1
|
|
1906
|
+
var baseTimes = _baseTimes,
|
|
1907
|
+
isArguments$2 = isArguments_1,
|
|
1908
|
+
isArray$9 = isArray_1,
|
|
1909
|
+
isBuffer$2 = isBuffer$3.exports,
|
|
1910
|
+
isIndex$1 = _isIndex,
|
|
1911
|
+
isTypedArray$2 = isTypedArray_1;
|
|
1912
1912
|
|
|
1913
1913
|
/** Used for built-in method references. */
|
|
1914
1914
|
var objectProto$5 = Object.prototype;
|
|
@@ -1927,7 +1927,7 @@ var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
|
|
|
1927
1927
|
function arrayLikeKeys$1(value, inherited) {
|
|
1928
1928
|
var isArr = isArray$9(value),
|
|
1929
1929
|
isArg = !isArr && isArguments$2(value),
|
|
1930
|
-
isBuff = !isArr && !isArg && isBuffer$
|
|
1930
|
+
isBuff = !isArr && !isArg && isBuffer$2(value),
|
|
1931
1931
|
isType = !isArr && !isArg && !isBuff && isTypedArray$2(value),
|
|
1932
1932
|
skipIndexes = isArr || isArg || isBuff || isType,
|
|
1933
1933
|
result = skipIndexes ? baseTimes(value.length, String) : [],
|
|
@@ -1951,7 +1951,7 @@ function arrayLikeKeys$1(value, inherited) {
|
|
|
1951
1951
|
return result;
|
|
1952
1952
|
}
|
|
1953
1953
|
|
|
1954
|
-
var _arrayLikeKeys
|
|
1954
|
+
var _arrayLikeKeys = arrayLikeKeys$1;
|
|
1955
1955
|
|
|
1956
1956
|
/** Used for built-in method references. */
|
|
1957
1957
|
|
|
@@ -1971,7 +1971,7 @@ function isPrototype$2(value) {
|
|
|
1971
1971
|
return value === proto;
|
|
1972
1972
|
}
|
|
1973
1973
|
|
|
1974
|
-
var _isPrototype
|
|
1974
|
+
var _isPrototype = isPrototype$2;
|
|
1975
1975
|
|
|
1976
1976
|
/**
|
|
1977
1977
|
* Creates a unary function that invokes `func` with its argument transformed.
|
|
@@ -1988,17 +1988,17 @@ function overArg$1(func, transform) {
|
|
|
1988
1988
|
};
|
|
1989
1989
|
}
|
|
1990
1990
|
|
|
1991
|
-
var _overArg
|
|
1991
|
+
var _overArg = overArg$1;
|
|
1992
1992
|
|
|
1993
|
-
var overArg = _overArg
|
|
1993
|
+
var overArg = _overArg;
|
|
1994
1994
|
|
|
1995
1995
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
1996
1996
|
var nativeKeys$1 = overArg(Object.keys, Object);
|
|
1997
1997
|
|
|
1998
|
-
var _nativeKeys
|
|
1998
|
+
var _nativeKeys = nativeKeys$1;
|
|
1999
1999
|
|
|
2000
|
-
var isPrototype$1 = _isPrototype
|
|
2001
|
-
nativeKeys = _nativeKeys
|
|
2000
|
+
var isPrototype$1 = _isPrototype,
|
|
2001
|
+
nativeKeys = _nativeKeys;
|
|
2002
2002
|
|
|
2003
2003
|
/** Used for built-in method references. */
|
|
2004
2004
|
var objectProto$3 = Object.prototype;
|
|
@@ -2026,10 +2026,10 @@ function baseKeys$2(object) {
|
|
|
2026
2026
|
return result;
|
|
2027
2027
|
}
|
|
2028
2028
|
|
|
2029
|
-
var _baseKeys
|
|
2029
|
+
var _baseKeys = baseKeys$2;
|
|
2030
2030
|
|
|
2031
|
-
var isFunction = isFunction_1
|
|
2032
|
-
isLength$1 = isLength_1
|
|
2031
|
+
var isFunction = isFunction_1,
|
|
2032
|
+
isLength$1 = isLength_1;
|
|
2033
2033
|
|
|
2034
2034
|
/**
|
|
2035
2035
|
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
@@ -2060,11 +2060,11 @@ function isArrayLike$5(value) {
|
|
|
2060
2060
|
return value != null && isLength$1(value.length) && !isFunction(value);
|
|
2061
2061
|
}
|
|
2062
2062
|
|
|
2063
|
-
var isArrayLike_1
|
|
2063
|
+
var isArrayLike_1 = isArrayLike$5;
|
|
2064
2064
|
|
|
2065
|
-
var arrayLikeKeys = _arrayLikeKeys
|
|
2066
|
-
baseKeys$1 = _baseKeys
|
|
2067
|
-
isArrayLike$4 = isArrayLike_1
|
|
2065
|
+
var arrayLikeKeys = _arrayLikeKeys,
|
|
2066
|
+
baseKeys$1 = _baseKeys,
|
|
2067
|
+
isArrayLike$4 = isArrayLike_1;
|
|
2068
2068
|
|
|
2069
2069
|
/**
|
|
2070
2070
|
* Creates an array of the own enumerable property names of `object`.
|
|
@@ -2098,11 +2098,11 @@ function keys$4(object) {
|
|
|
2098
2098
|
return isArrayLike$4(object) ? arrayLikeKeys(object) : baseKeys$1(object);
|
|
2099
2099
|
}
|
|
2100
2100
|
|
|
2101
|
-
var keys_1
|
|
2101
|
+
var keys_1 = keys$4;
|
|
2102
2102
|
|
|
2103
2103
|
var baseGetAllKeys = _baseGetAllKeys,
|
|
2104
2104
|
getSymbols = _getSymbols,
|
|
2105
|
-
keys$3 = keys_1
|
|
2105
|
+
keys$3 = keys_1;
|
|
2106
2106
|
|
|
2107
2107
|
/**
|
|
2108
2108
|
* Creates an array of own enumerable property names and symbols of `object`.
|
|
@@ -2208,45 +2208,45 @@ function equalObjects$1(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
2208
2208
|
|
|
2209
2209
|
var _equalObjects = equalObjects$1;
|
|
2210
2210
|
|
|
2211
|
-
var getNative$3 = _getNative
|
|
2212
|
-
root$3 = _root
|
|
2211
|
+
var getNative$3 = _getNative,
|
|
2212
|
+
root$3 = _root;
|
|
2213
2213
|
|
|
2214
2214
|
/* Built-in method references that are verified to be native. */
|
|
2215
2215
|
var DataView$1 = getNative$3(root$3, 'DataView');
|
|
2216
2216
|
|
|
2217
|
-
var _DataView
|
|
2217
|
+
var _DataView = DataView$1;
|
|
2218
2218
|
|
|
2219
|
-
var getNative$2 = _getNative
|
|
2220
|
-
root$2 = _root
|
|
2219
|
+
var getNative$2 = _getNative,
|
|
2220
|
+
root$2 = _root;
|
|
2221
2221
|
|
|
2222
2222
|
/* Built-in method references that are verified to be native. */
|
|
2223
2223
|
var Promise$2 = getNative$2(root$2, 'Promise');
|
|
2224
2224
|
|
|
2225
|
-
var _Promise
|
|
2225
|
+
var _Promise = Promise$2;
|
|
2226
2226
|
|
|
2227
|
-
var getNative$1 = _getNative
|
|
2228
|
-
root$1 = _root
|
|
2227
|
+
var getNative$1 = _getNative,
|
|
2228
|
+
root$1 = _root;
|
|
2229
2229
|
|
|
2230
2230
|
/* Built-in method references that are verified to be native. */
|
|
2231
2231
|
var Set$1 = getNative$1(root$1, 'Set');
|
|
2232
2232
|
|
|
2233
|
-
var _Set
|
|
2233
|
+
var _Set = Set$1;
|
|
2234
2234
|
|
|
2235
|
-
var getNative = _getNative
|
|
2236
|
-
root = _root
|
|
2235
|
+
var getNative = _getNative,
|
|
2236
|
+
root = _root;
|
|
2237
2237
|
|
|
2238
2238
|
/* Built-in method references that are verified to be native. */
|
|
2239
2239
|
var WeakMap$1 = getNative(root, 'WeakMap');
|
|
2240
2240
|
|
|
2241
|
-
var _WeakMap
|
|
2241
|
+
var _WeakMap = WeakMap$1;
|
|
2242
2242
|
|
|
2243
|
-
var DataView = _DataView
|
|
2244
|
-
Map = _Map
|
|
2245
|
-
Promise$1 = _Promise
|
|
2246
|
-
Set = _Set
|
|
2247
|
-
WeakMap = _WeakMap
|
|
2248
|
-
baseGetTag$1 = _baseGetTag
|
|
2249
|
-
toSource = _toSource
|
|
2243
|
+
var DataView = _DataView,
|
|
2244
|
+
Map = _Map,
|
|
2245
|
+
Promise$1 = _Promise,
|
|
2246
|
+
Set = _Set,
|
|
2247
|
+
WeakMap = _WeakMap,
|
|
2248
|
+
baseGetTag$1 = _baseGetTag,
|
|
2249
|
+
toSource = _toSource;
|
|
2250
2250
|
|
|
2251
2251
|
/** `Object#toString` result references. */
|
|
2252
2252
|
var mapTag$1 = '[object Map]',
|
|
@@ -2297,16 +2297,16 @@ if ((DataView && getTag$2(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|
|
2297
2297
|
};
|
|
2298
2298
|
}
|
|
2299
2299
|
|
|
2300
|
-
var _getTag
|
|
2300
|
+
var _getTag = getTag$2;
|
|
2301
2301
|
|
|
2302
2302
|
var Stack$1 = _Stack,
|
|
2303
2303
|
equalArrays = _equalArrays,
|
|
2304
2304
|
equalByTag = _equalByTag,
|
|
2305
2305
|
equalObjects = _equalObjects,
|
|
2306
|
-
getTag$1 = _getTag
|
|
2307
|
-
isArray$8 = isArray_1
|
|
2308
|
-
isBuffer$
|
|
2309
|
-
isTypedArray$1 = isTypedArray_1
|
|
2306
|
+
getTag$1 = _getTag,
|
|
2307
|
+
isArray$8 = isArray_1,
|
|
2308
|
+
isBuffer$1 = isBuffer$3.exports,
|
|
2309
|
+
isTypedArray$1 = isTypedArray_1;
|
|
2310
2310
|
|
|
2311
2311
|
/** Used to compose bitmasks for value comparisons. */
|
|
2312
2312
|
var COMPARE_PARTIAL_FLAG$2 = 1;
|
|
@@ -2349,8 +2349,8 @@ function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack)
|
|
|
2349
2349
|
othIsObj = othTag == objectTag,
|
|
2350
2350
|
isSameTag = objTag == othTag;
|
|
2351
2351
|
|
|
2352
|
-
if (isSameTag && isBuffer$
|
|
2353
|
-
if (!isBuffer$
|
|
2352
|
+
if (isSameTag && isBuffer$1(object)) {
|
|
2353
|
+
if (!isBuffer$1(other)) {
|
|
2354
2354
|
return false;
|
|
2355
2355
|
}
|
|
2356
2356
|
objIsArr = true;
|
|
@@ -2384,7 +2384,7 @@ function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack)
|
|
|
2384
2384
|
var _baseIsEqualDeep = baseIsEqualDeep$1;
|
|
2385
2385
|
|
|
2386
2386
|
var baseIsEqualDeep = _baseIsEqualDeep,
|
|
2387
|
-
isObjectLike$1 = isObjectLike_1
|
|
2387
|
+
isObjectLike$1 = isObjectLike_1;
|
|
2388
2388
|
|
|
2389
2389
|
/**
|
|
2390
2390
|
* The base implementation of `_.isEqual` which supports partial comparisons
|
|
@@ -2475,7 +2475,7 @@ function baseIsMatch$1(object, source, matchData, customizer) {
|
|
|
2475
2475
|
|
|
2476
2476
|
var _baseIsMatch = baseIsMatch$1;
|
|
2477
2477
|
|
|
2478
|
-
var isObject$1 = isObject_1
|
|
2478
|
+
var isObject$1 = isObject_1;
|
|
2479
2479
|
|
|
2480
2480
|
/**
|
|
2481
2481
|
* Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
|
|
@@ -2492,7 +2492,7 @@ function isStrictComparable$2(value) {
|
|
|
2492
2492
|
var _isStrictComparable = isStrictComparable$2;
|
|
2493
2493
|
|
|
2494
2494
|
var isStrictComparable$1 = _isStrictComparable,
|
|
2495
|
-
keys$2 = keys_1
|
|
2495
|
+
keys$2 = keys_1;
|
|
2496
2496
|
|
|
2497
2497
|
/**
|
|
2498
2498
|
* Gets the property names, values, and compare flags of `object`.
|
|
@@ -2561,8 +2561,8 @@ function baseMatches$1(source) {
|
|
|
2561
2561
|
|
|
2562
2562
|
var _baseMatches = baseMatches$1;
|
|
2563
2563
|
|
|
2564
|
-
var baseGetTag = _baseGetTag
|
|
2565
|
-
isObjectLike = isObjectLike_1
|
|
2564
|
+
var baseGetTag = _baseGetTag,
|
|
2565
|
+
isObjectLike = isObjectLike_1;
|
|
2566
2566
|
|
|
2567
2567
|
/** `Object#toString` result references. */
|
|
2568
2568
|
var symbolTag = '[object Symbol]';
|
|
@@ -2589,10 +2589,10 @@ function isSymbol$4(value) {
|
|
|
2589
2589
|
(isObjectLike(value) && baseGetTag(value) == symbolTag);
|
|
2590
2590
|
}
|
|
2591
2591
|
|
|
2592
|
-
var isSymbol_1
|
|
2592
|
+
var isSymbol_1 = isSymbol$4;
|
|
2593
2593
|
|
|
2594
|
-
var isArray$7 = isArray_1
|
|
2595
|
-
isSymbol$3 = isSymbol_1
|
|
2594
|
+
var isArray$7 = isArray_1,
|
|
2595
|
+
isSymbol$3 = isSymbol_1;
|
|
2596
2596
|
|
|
2597
2597
|
/** Used to match property names within property paths. */
|
|
2598
2598
|
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
@@ -2619,9 +2619,9 @@ function isKey$3(value, object) {
|
|
|
2619
2619
|
(object != null && value in Object(object));
|
|
2620
2620
|
}
|
|
2621
2621
|
|
|
2622
|
-
var _isKey
|
|
2622
|
+
var _isKey = isKey$3;
|
|
2623
2623
|
|
|
2624
|
-
var MapCache = _MapCache
|
|
2624
|
+
var MapCache = _MapCache;
|
|
2625
2625
|
|
|
2626
2626
|
/** Error message constants. */
|
|
2627
2627
|
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
@@ -2693,9 +2693,9 @@ function memoize$1(func, resolver) {
|
|
|
2693
2693
|
// Expose `MapCache`.
|
|
2694
2694
|
memoize$1.Cache = MapCache;
|
|
2695
2695
|
|
|
2696
|
-
var memoize_1
|
|
2696
|
+
var memoize_1 = memoize$1;
|
|
2697
2697
|
|
|
2698
|
-
var memoize = memoize_1
|
|
2698
|
+
var memoize = memoize_1;
|
|
2699
2699
|
|
|
2700
2700
|
/** Used as the maximum memoize cache size. */
|
|
2701
2701
|
var MAX_MEMOIZE_SIZE = 500;
|
|
@@ -2720,9 +2720,9 @@ function memoizeCapped$1(func) {
|
|
|
2720
2720
|
return result;
|
|
2721
2721
|
}
|
|
2722
2722
|
|
|
2723
|
-
var _memoizeCapped
|
|
2723
|
+
var _memoizeCapped = memoizeCapped$1;
|
|
2724
2724
|
|
|
2725
|
-
var memoizeCapped = _memoizeCapped
|
|
2725
|
+
var memoizeCapped = _memoizeCapped;
|
|
2726
2726
|
|
|
2727
2727
|
/** Used to match property names within property paths. */
|
|
2728
2728
|
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
@@ -2748,12 +2748,12 @@ var stringToPath$1 = memoizeCapped(function(string) {
|
|
|
2748
2748
|
return result;
|
|
2749
2749
|
});
|
|
2750
2750
|
|
|
2751
|
-
var _stringToPath
|
|
2751
|
+
var _stringToPath = stringToPath$1;
|
|
2752
2752
|
|
|
2753
|
-
var Symbol$1 = _Symbol
|
|
2754
|
-
arrayMap$1 = _arrayMap
|
|
2755
|
-
isArray$6 = isArray_1
|
|
2756
|
-
isSymbol$2 = isSymbol_1
|
|
2753
|
+
var Symbol$1 = _Symbol,
|
|
2754
|
+
arrayMap$1 = _arrayMap,
|
|
2755
|
+
isArray$6 = isArray_1,
|
|
2756
|
+
isSymbol$2 = isSymbol_1;
|
|
2757
2757
|
|
|
2758
2758
|
/** Used as references for various `Number` constants. */
|
|
2759
2759
|
var INFINITY$2 = 1 / 0;
|
|
@@ -2786,9 +2786,9 @@ function baseToString$1(value) {
|
|
|
2786
2786
|
return (result == '0' && (1 / value) == -INFINITY$2) ? '-0' : result;
|
|
2787
2787
|
}
|
|
2788
2788
|
|
|
2789
|
-
var _baseToString
|
|
2789
|
+
var _baseToString = baseToString$1;
|
|
2790
2790
|
|
|
2791
|
-
var baseToString = _baseToString
|
|
2791
|
+
var baseToString = _baseToString;
|
|
2792
2792
|
|
|
2793
2793
|
/**
|
|
2794
2794
|
* Converts `value` to a string. An empty string is returned for `null`
|
|
@@ -2815,12 +2815,12 @@ function toString$1(value) {
|
|
|
2815
2815
|
return value == null ? '' : baseToString(value);
|
|
2816
2816
|
}
|
|
2817
2817
|
|
|
2818
|
-
var toString_1
|
|
2818
|
+
var toString_1 = toString$1;
|
|
2819
2819
|
|
|
2820
|
-
var isArray$5 = isArray_1
|
|
2821
|
-
isKey$2 = _isKey
|
|
2822
|
-
stringToPath = _stringToPath
|
|
2823
|
-
toString = toString_1
|
|
2820
|
+
var isArray$5 = isArray_1,
|
|
2821
|
+
isKey$2 = _isKey,
|
|
2822
|
+
stringToPath = _stringToPath,
|
|
2823
|
+
toString = toString_1;
|
|
2824
2824
|
|
|
2825
2825
|
/**
|
|
2826
2826
|
* Casts `value` to a path array if it's not one.
|
|
@@ -2837,9 +2837,9 @@ function castPath$2(value, object) {
|
|
|
2837
2837
|
return isKey$2(value, object) ? [value] : stringToPath(toString(value));
|
|
2838
2838
|
}
|
|
2839
2839
|
|
|
2840
|
-
var _castPath
|
|
2840
|
+
var _castPath = castPath$2;
|
|
2841
2841
|
|
|
2842
|
-
var isSymbol$1 = isSymbol_1
|
|
2842
|
+
var isSymbol$1 = isSymbol_1;
|
|
2843
2843
|
|
|
2844
2844
|
/** Used as references for various `Number` constants. */
|
|
2845
2845
|
var INFINITY$1 = 1 / 0;
|
|
@@ -2859,10 +2859,10 @@ function toKey$4(value) {
|
|
|
2859
2859
|
return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
|
|
2860
2860
|
}
|
|
2861
2861
|
|
|
2862
|
-
var _toKey
|
|
2862
|
+
var _toKey = toKey$4;
|
|
2863
2863
|
|
|
2864
|
-
var castPath$1 = _castPath
|
|
2865
|
-
toKey$3 = _toKey
|
|
2864
|
+
var castPath$1 = _castPath,
|
|
2865
|
+
toKey$3 = _toKey;
|
|
2866
2866
|
|
|
2867
2867
|
/**
|
|
2868
2868
|
* The base implementation of `_.get` without support for default values.
|
|
@@ -2884,9 +2884,9 @@ function baseGet$2(object, path) {
|
|
|
2884
2884
|
return (index && index == length) ? object : undefined;
|
|
2885
2885
|
}
|
|
2886
2886
|
|
|
2887
|
-
var _baseGet
|
|
2887
|
+
var _baseGet = baseGet$2;
|
|
2888
2888
|
|
|
2889
|
-
var baseGet$1 = _baseGet
|
|
2889
|
+
var baseGet$1 = _baseGet;
|
|
2890
2890
|
|
|
2891
2891
|
/**
|
|
2892
2892
|
* Gets the value at `path` of `object`. If the resolved value is
|
|
@@ -2918,7 +2918,7 @@ function get$2(object, path, defaultValue) {
|
|
|
2918
2918
|
return result === undefined ? defaultValue : result;
|
|
2919
2919
|
}
|
|
2920
2920
|
|
|
2921
|
-
var get_1
|
|
2921
|
+
var get_1 = get$2;
|
|
2922
2922
|
|
|
2923
2923
|
/**
|
|
2924
2924
|
* The base implementation of `_.hasIn` without support for deep paths.
|
|
@@ -2935,12 +2935,12 @@ function baseHasIn$1(object, key) {
|
|
|
2935
2935
|
|
|
2936
2936
|
var _baseHasIn = baseHasIn$1;
|
|
2937
2937
|
|
|
2938
|
-
var castPath = _castPath
|
|
2939
|
-
isArguments$1 = isArguments_1
|
|
2940
|
-
isArray$4 = isArray_1
|
|
2941
|
-
isIndex = _isIndex
|
|
2942
|
-
isLength = isLength_1
|
|
2943
|
-
toKey$2 = _toKey
|
|
2938
|
+
var castPath = _castPath,
|
|
2939
|
+
isArguments$1 = isArguments_1,
|
|
2940
|
+
isArray$4 = isArray_1,
|
|
2941
|
+
isIndex = _isIndex,
|
|
2942
|
+
isLength = isLength_1,
|
|
2943
|
+
toKey$2 = _toKey;
|
|
2944
2944
|
|
|
2945
2945
|
/**
|
|
2946
2946
|
* Checks if `path` exists on `object`.
|
|
@@ -3011,12 +3011,12 @@ function hasIn$1(object, path) {
|
|
|
3011
3011
|
var hasIn_1 = hasIn$1;
|
|
3012
3012
|
|
|
3013
3013
|
var baseIsEqual = _baseIsEqual,
|
|
3014
|
-
get$1 = get_1
|
|
3014
|
+
get$1 = get_1,
|
|
3015
3015
|
hasIn = hasIn_1,
|
|
3016
|
-
isKey$1 = _isKey
|
|
3016
|
+
isKey$1 = _isKey,
|
|
3017
3017
|
isStrictComparable = _isStrictComparable,
|
|
3018
3018
|
matchesStrictComparable = _matchesStrictComparable,
|
|
3019
|
-
toKey$1 = _toKey
|
|
3019
|
+
toKey$1 = _toKey;
|
|
3020
3020
|
|
|
3021
3021
|
/** Used to compose bitmasks for value comparisons. */
|
|
3022
3022
|
var COMPARE_PARTIAL_FLAG = 1,
|
|
@@ -3083,7 +3083,7 @@ function baseProperty$1(key) {
|
|
|
3083
3083
|
|
|
3084
3084
|
var _baseProperty = baseProperty$1;
|
|
3085
3085
|
|
|
3086
|
-
var baseGet = _baseGet
|
|
3086
|
+
var baseGet = _baseGet;
|
|
3087
3087
|
|
|
3088
3088
|
/**
|
|
3089
3089
|
* A specialized version of `baseProperty` which supports deep paths.
|
|
@@ -3102,8 +3102,8 @@ var _basePropertyDeep = basePropertyDeep$1;
|
|
|
3102
3102
|
|
|
3103
3103
|
var baseProperty = _baseProperty,
|
|
3104
3104
|
basePropertyDeep = _basePropertyDeep,
|
|
3105
|
-
isKey = _isKey
|
|
3106
|
-
toKey = _toKey
|
|
3105
|
+
isKey = _isKey,
|
|
3106
|
+
toKey = _toKey;
|
|
3107
3107
|
|
|
3108
3108
|
/**
|
|
3109
3109
|
* Creates a function that returns the value at `path` of a given object.
|
|
@@ -3136,7 +3136,7 @@ var property_1 = property$1;
|
|
|
3136
3136
|
var baseMatches = _baseMatches,
|
|
3137
3137
|
baseMatchesProperty = _baseMatchesProperty,
|
|
3138
3138
|
identity = identity_1,
|
|
3139
|
-
isArray$3 = isArray_1
|
|
3139
|
+
isArray$3 = isArray_1,
|
|
3140
3140
|
property = property_1;
|
|
3141
3141
|
|
|
3142
3142
|
/**
|
|
@@ -3210,7 +3210,7 @@ var baseFor$1 = createBaseFor();
|
|
|
3210
3210
|
var _baseFor = baseFor$1;
|
|
3211
3211
|
|
|
3212
3212
|
var baseFor = _baseFor,
|
|
3213
|
-
keys$1 = keys_1
|
|
3213
|
+
keys$1 = keys_1;
|
|
3214
3214
|
|
|
3215
3215
|
/**
|
|
3216
3216
|
* The base implementation of `_.forOwn` without support for iteratee shorthands.
|
|
@@ -3226,7 +3226,7 @@ function baseForOwn$1(object, iteratee) {
|
|
|
3226
3226
|
|
|
3227
3227
|
var _baseForOwn = baseForOwn$1;
|
|
3228
3228
|
|
|
3229
|
-
var isArrayLike$3 = isArrayLike_1
|
|
3229
|
+
var isArrayLike$3 = isArrayLike_1;
|
|
3230
3230
|
|
|
3231
3231
|
/**
|
|
3232
3232
|
* Creates a `baseEach` or `baseEachRight` function.
|
|
@@ -3275,7 +3275,7 @@ var baseEach$2 = createBaseEach(baseForOwn);
|
|
|
3275
3275
|
var _baseEach = baseEach$2;
|
|
3276
3276
|
|
|
3277
3277
|
var baseEach$1 = _baseEach,
|
|
3278
|
-
isArrayLike$2 = isArrayLike_1
|
|
3278
|
+
isArrayLike$2 = isArrayLike_1;
|
|
3279
3279
|
|
|
3280
3280
|
/**
|
|
3281
3281
|
* The base implementation of `_.map` without support for iteratee shorthands.
|
|
@@ -3297,10 +3297,10 @@ function baseMap$1(collection, iteratee) {
|
|
|
3297
3297
|
|
|
3298
3298
|
var _baseMap = baseMap$1;
|
|
3299
3299
|
|
|
3300
|
-
var arrayMap = _arrayMap
|
|
3300
|
+
var arrayMap = _arrayMap,
|
|
3301
3301
|
baseIteratee$3 = _baseIteratee,
|
|
3302
3302
|
baseMap = _baseMap,
|
|
3303
|
-
isArray$2 = isArray_1
|
|
3303
|
+
isArray$2 = isArray_1;
|
|
3304
3304
|
|
|
3305
3305
|
/**
|
|
3306
3306
|
* Creates an array of values by running each element in `collection` thru
|
|
@@ -3408,7 +3408,7 @@ var arrayReduce = _arrayReduce,
|
|
|
3408
3408
|
baseEach = _baseEach,
|
|
3409
3409
|
baseIteratee$2 = _baseIteratee,
|
|
3410
3410
|
baseReduce = _baseReduce,
|
|
3411
|
-
isArray$1 = isArray_1
|
|
3411
|
+
isArray$1 = isArray_1;
|
|
3412
3412
|
|
|
3413
3413
|
/**
|
|
3414
3414
|
* Reduces `collection` to a value which is the accumulated result of running
|
|
@@ -3457,8 +3457,8 @@ function reduce(collection, iteratee, accumulator) {
|
|
|
3457
3457
|
var reduce_1 = reduce;
|
|
3458
3458
|
|
|
3459
3459
|
var baseIteratee$1 = _baseIteratee,
|
|
3460
|
-
isArrayLike$1 = isArrayLike_1
|
|
3461
|
-
keys = keys_1
|
|
3460
|
+
isArrayLike$1 = isArrayLike_1,
|
|
3461
|
+
keys = keys_1;
|
|
3462
3462
|
|
|
3463
3463
|
/**
|
|
3464
3464
|
* Creates a `_.find` or `_.findLast` function.
|
|
@@ -3550,8 +3550,8 @@ function baseTrim$1(string) {
|
|
|
3550
3550
|
var _baseTrim = baseTrim$1;
|
|
3551
3551
|
|
|
3552
3552
|
var baseTrim = _baseTrim,
|
|
3553
|
-
isObject = isObject_1
|
|
3554
|
-
isSymbol = isSymbol_1
|
|
3553
|
+
isObject = isObject_1,
|
|
3554
|
+
isSymbol = isSymbol_1;
|
|
3555
3555
|
|
|
3556
3556
|
/** Used as references for various `Number` constants. */
|
|
3557
3557
|
var NAN = 0 / 0;
|
|
@@ -3793,14 +3793,14 @@ var find = createFind(findIndex);
|
|
|
3793
3793
|
|
|
3794
3794
|
var find_1 = find;
|
|
3795
3795
|
|
|
3796
|
-
var baseKeys = _baseKeys
|
|
3797
|
-
getTag = _getTag
|
|
3798
|
-
isArguments = isArguments_1
|
|
3799
|
-
isArray = isArray_1
|
|
3800
|
-
isArrayLike = isArrayLike_1
|
|
3801
|
-
isBuffer
|
|
3802
|
-
isPrototype = _isPrototype
|
|
3803
|
-
isTypedArray = isTypedArray_1
|
|
3796
|
+
var baseKeys = _baseKeys,
|
|
3797
|
+
getTag = _getTag,
|
|
3798
|
+
isArguments = isArguments_1,
|
|
3799
|
+
isArray = isArray_1,
|
|
3800
|
+
isArrayLike = isArrayLike_1,
|
|
3801
|
+
isBuffer = isBuffer$3.exports,
|
|
3802
|
+
isPrototype = _isPrototype,
|
|
3803
|
+
isTypedArray = isTypedArray_1;
|
|
3804
3804
|
|
|
3805
3805
|
/** `Object#toString` result references. */
|
|
3806
3806
|
var mapTag = '[object Map]',
|
|
@@ -3851,7 +3851,7 @@ function isEmpty(value) {
|
|
|
3851
3851
|
}
|
|
3852
3852
|
if (isArrayLike(value) &&
|
|
3853
3853
|
(isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
|
|
3854
|
-
isBuffer
|
|
3854
|
+
isBuffer(value) || isTypedArray(value) || isArguments(value))) {
|
|
3855
3855
|
return !value.length;
|
|
3856
3856
|
}
|
|
3857
3857
|
var tag = getTag(value);
|
|
@@ -3869,7 +3869,7 @@ function isEmpty(value) {
|
|
|
3869
3869
|
return true;
|
|
3870
3870
|
}
|
|
3871
3871
|
|
|
3872
|
-
var isEmpty_1
|
|
3872
|
+
var isEmpty_1 = isEmpty;
|
|
3873
3873
|
|
|
3874
3874
|
var he = {exports: {}};
|
|
3875
3875
|
|
|
@@ -3887,7 +3887,7 @@ var he = {exports: {}};
|
|
|
3887
3887
|
|
|
3888
3888
|
// Detect free variable `global`, from Node.js or Browserified code,
|
|
3889
3889
|
// and use it as `root`.
|
|
3890
|
-
var freeGlobal = typeof commonjsGlobal
|
|
3890
|
+
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal;
|
|
3891
3891
|
if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {
|
|
3892
3892
|
root = freeGlobal;
|
|
3893
3893
|
}
|
|
@@ -4211,7 +4211,7 @@ var he = {exports: {}};
|
|
|
4211
4211
|
root.he = he;
|
|
4212
4212
|
}
|
|
4213
4213
|
|
|
4214
|
-
}(commonjsGlobal
|
|
4214
|
+
}(commonjsGlobal));
|
|
4215
4215
|
}(he, he.exports));
|
|
4216
4216
|
|
|
4217
4217
|
const enabled = (config, env, defaultValue) => {
|
|
@@ -4234,3042 +4234,138 @@ const enabled = (config, env, defaultValue) => {
|
|
|
4234
4234
|
return typeof defaultValue === 'boolean' ? defaultValue : true;
|
|
4235
4235
|
};
|
|
4236
4236
|
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
/**
|
|
4245
|
-
* Checks if `value` is classified as an `Array` object.
|
|
4246
|
-
*
|
|
4247
|
-
* @static
|
|
4248
|
-
* @memberOf _
|
|
4249
|
-
* @since 0.1.0
|
|
4250
|
-
* @category Lang
|
|
4251
|
-
* @param {*} value The value to check.
|
|
4252
|
-
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
4253
|
-
* @example
|
|
4254
|
-
*
|
|
4255
|
-
* _.isArray([1, 2, 3]);
|
|
4256
|
-
* // => true
|
|
4257
|
-
*
|
|
4258
|
-
* _.isArray(document.body.children);
|
|
4259
|
-
* // => false
|
|
4260
|
-
*
|
|
4261
|
-
* _.isArray('abc');
|
|
4262
|
-
* // => false
|
|
4263
|
-
*
|
|
4264
|
-
* _.isArray(_.noop);
|
|
4265
|
-
* // => false
|
|
4266
|
-
*/
|
|
4267
|
-
|
|
4268
|
-
var isArray_1;
|
|
4269
|
-
var hasRequiredIsArray;
|
|
4237
|
+
// eslint-disable-next-line no-console
|
|
4238
|
+
const lg = (n) => console[n].bind(console, 'controller-utils:');
|
|
4239
|
+
lg('debug');
|
|
4240
|
+
lg('log');
|
|
4241
|
+
lg('warn');
|
|
4242
|
+
lg('error');
|
|
4270
4243
|
|
|
4271
|
-
function
|
|
4272
|
-
|
|
4273
|
-
hasRequiredIsArray = 1;
|
|
4274
|
-
var isArray = Array.isArray;
|
|
4244
|
+
function _typeof(obj) {
|
|
4245
|
+
"@babel/helpers - typeof";
|
|
4275
4246
|
|
|
4276
|
-
|
|
4277
|
-
|
|
4247
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
4248
|
+
return typeof obj;
|
|
4249
|
+
} : function (obj) {
|
|
4250
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
4251
|
+
}, _typeof(obj);
|
|
4278
4252
|
}
|
|
4279
4253
|
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
function require_freeGlobal () {
|
|
4286
|
-
if (hasRequired_freeGlobal) return _freeGlobal;
|
|
4287
|
-
hasRequired_freeGlobal = 1;
|
|
4288
|
-
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
4289
|
-
|
|
4290
|
-
_freeGlobal = freeGlobal;
|
|
4291
|
-
return _freeGlobal;
|
|
4254
|
+
function _classCallCheck(instance, Constructor) {
|
|
4255
|
+
if (!(instance instanceof Constructor)) {
|
|
4256
|
+
throw new TypeError("Cannot call a class as a function");
|
|
4257
|
+
}
|
|
4292
4258
|
}
|
|
4293
4259
|
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
4304
|
-
|
|
4305
|
-
/** Used as a reference to the global object. */
|
|
4306
|
-
var root = freeGlobal || freeSelf || Function('return this')();
|
|
4307
|
-
|
|
4308
|
-
_root = root;
|
|
4309
|
-
return _root;
|
|
4260
|
+
function _toPrimitive(input, hint) {
|
|
4261
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
4262
|
+
var prim = input[Symbol.toPrimitive];
|
|
4263
|
+
if (prim !== undefined) {
|
|
4264
|
+
var res = prim.call(input, hint || "default");
|
|
4265
|
+
if (_typeof(res) !== "object") return res;
|
|
4266
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
4267
|
+
}
|
|
4268
|
+
return (hint === "string" ? String : Number)(input);
|
|
4310
4269
|
}
|
|
4311
4270
|
|
|
4312
|
-
|
|
4313
|
-
var
|
|
4314
|
-
|
|
4315
|
-
function require_Symbol () {
|
|
4316
|
-
if (hasRequired_Symbol) return _Symbol;
|
|
4317
|
-
hasRequired_Symbol = 1;
|
|
4318
|
-
var root = require_root();
|
|
4319
|
-
|
|
4320
|
-
/** Built-in value references. */
|
|
4321
|
-
var Symbol = root.Symbol;
|
|
4322
|
-
|
|
4323
|
-
_Symbol = Symbol;
|
|
4324
|
-
return _Symbol;
|
|
4271
|
+
function _toPropertyKey(arg) {
|
|
4272
|
+
var key = _toPrimitive(arg, "string");
|
|
4273
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
4325
4274
|
}
|
|
4326
4275
|
|
|
4327
|
-
|
|
4328
|
-
var
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
/** Used for built-in method references. */
|
|
4336
|
-
var objectProto = Object.prototype;
|
|
4337
|
-
|
|
4338
|
-
/** Used to check objects for own properties. */
|
|
4339
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
4340
|
-
|
|
4341
|
-
/**
|
|
4342
|
-
* Used to resolve the
|
|
4343
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
4344
|
-
* of values.
|
|
4345
|
-
*/
|
|
4346
|
-
var nativeObjectToString = objectProto.toString;
|
|
4347
|
-
|
|
4348
|
-
/** Built-in value references. */
|
|
4349
|
-
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
|
|
4350
|
-
|
|
4351
|
-
/**
|
|
4352
|
-
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
4353
|
-
*
|
|
4354
|
-
* @private
|
|
4355
|
-
* @param {*} value The value to query.
|
|
4356
|
-
* @returns {string} Returns the raw `toStringTag`.
|
|
4357
|
-
*/
|
|
4358
|
-
function getRawTag(value) {
|
|
4359
|
-
var isOwn = hasOwnProperty.call(value, symToStringTag),
|
|
4360
|
-
tag = value[symToStringTag];
|
|
4361
|
-
|
|
4362
|
-
try {
|
|
4363
|
-
value[symToStringTag] = undefined;
|
|
4364
|
-
var unmasked = true;
|
|
4365
|
-
} catch (e) {}
|
|
4366
|
-
|
|
4367
|
-
var result = nativeObjectToString.call(value);
|
|
4368
|
-
if (unmasked) {
|
|
4369
|
-
if (isOwn) {
|
|
4370
|
-
value[symToStringTag] = tag;
|
|
4371
|
-
} else {
|
|
4372
|
-
delete value[symToStringTag];
|
|
4373
|
-
}
|
|
4374
|
-
}
|
|
4375
|
-
return result;
|
|
4376
|
-
}
|
|
4377
|
-
|
|
4378
|
-
_getRawTag = getRawTag;
|
|
4379
|
-
return _getRawTag;
|
|
4276
|
+
function _defineProperties(target, props) {
|
|
4277
|
+
for (var i = 0; i < props.length; i++) {
|
|
4278
|
+
var descriptor = props[i];
|
|
4279
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
4280
|
+
descriptor.configurable = true;
|
|
4281
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
4282
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
4283
|
+
}
|
|
4380
4284
|
}
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
if (hasRequired_objectToString) return _objectToString;
|
|
4389
|
-
hasRequired_objectToString = 1;
|
|
4390
|
-
var objectProto = Object.prototype;
|
|
4391
|
-
|
|
4392
|
-
/**
|
|
4393
|
-
* Used to resolve the
|
|
4394
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
4395
|
-
* of values.
|
|
4396
|
-
*/
|
|
4397
|
-
var nativeObjectToString = objectProto.toString;
|
|
4398
|
-
|
|
4399
|
-
/**
|
|
4400
|
-
* Converts `value` to a string using `Object.prototype.toString`.
|
|
4401
|
-
*
|
|
4402
|
-
* @private
|
|
4403
|
-
* @param {*} value The value to convert.
|
|
4404
|
-
* @returns {string} Returns the converted string.
|
|
4405
|
-
*/
|
|
4406
|
-
function objectToString(value) {
|
|
4407
|
-
return nativeObjectToString.call(value);
|
|
4408
|
-
}
|
|
4409
|
-
|
|
4410
|
-
_objectToString = objectToString;
|
|
4411
|
-
return _objectToString;
|
|
4412
|
-
}
|
|
4413
|
-
|
|
4414
|
-
var _baseGetTag;
|
|
4415
|
-
var hasRequired_baseGetTag;
|
|
4416
|
-
|
|
4417
|
-
function require_baseGetTag () {
|
|
4418
|
-
if (hasRequired_baseGetTag) return _baseGetTag;
|
|
4419
|
-
hasRequired_baseGetTag = 1;
|
|
4420
|
-
var Symbol = require_Symbol(),
|
|
4421
|
-
getRawTag = require_getRawTag(),
|
|
4422
|
-
objectToString = require_objectToString();
|
|
4423
|
-
|
|
4424
|
-
/** `Object#toString` result references. */
|
|
4425
|
-
var nullTag = '[object Null]',
|
|
4426
|
-
undefinedTag = '[object Undefined]';
|
|
4427
|
-
|
|
4428
|
-
/** Built-in value references. */
|
|
4429
|
-
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
|
|
4430
|
-
|
|
4431
|
-
/**
|
|
4432
|
-
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
4433
|
-
*
|
|
4434
|
-
* @private
|
|
4435
|
-
* @param {*} value The value to query.
|
|
4436
|
-
* @returns {string} Returns the `toStringTag`.
|
|
4437
|
-
*/
|
|
4438
|
-
function baseGetTag(value) {
|
|
4439
|
-
if (value == null) {
|
|
4440
|
-
return value === undefined ? undefinedTag : nullTag;
|
|
4441
|
-
}
|
|
4442
|
-
return (symToStringTag && symToStringTag in Object(value))
|
|
4443
|
-
? getRawTag(value)
|
|
4444
|
-
: objectToString(value);
|
|
4445
|
-
}
|
|
4446
|
-
|
|
4447
|
-
_baseGetTag = baseGetTag;
|
|
4448
|
-
return _baseGetTag;
|
|
4285
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
4286
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
4287
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
4288
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
4289
|
+
writable: false
|
|
4290
|
+
});
|
|
4291
|
+
return Constructor;
|
|
4449
4292
|
}
|
|
4450
4293
|
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
* @memberOf _
|
|
4457
|
-
* @since 4.0.0
|
|
4458
|
-
* @category Lang
|
|
4459
|
-
* @param {*} value The value to check.
|
|
4460
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
4461
|
-
* @example
|
|
4462
|
-
*
|
|
4463
|
-
* _.isObjectLike({});
|
|
4464
|
-
* // => true
|
|
4465
|
-
*
|
|
4466
|
-
* _.isObjectLike([1, 2, 3]);
|
|
4467
|
-
* // => true
|
|
4468
|
-
*
|
|
4469
|
-
* _.isObjectLike(_.noop);
|
|
4470
|
-
* // => false
|
|
4471
|
-
*
|
|
4472
|
-
* _.isObjectLike(null);
|
|
4473
|
-
* // => false
|
|
4474
|
-
*/
|
|
4475
|
-
|
|
4476
|
-
var isObjectLike_1;
|
|
4477
|
-
var hasRequiredIsObjectLike;
|
|
4478
|
-
|
|
4479
|
-
function requireIsObjectLike () {
|
|
4480
|
-
if (hasRequiredIsObjectLike) return isObjectLike_1;
|
|
4481
|
-
hasRequiredIsObjectLike = 1;
|
|
4482
|
-
function isObjectLike(value) {
|
|
4483
|
-
return value != null && typeof value == 'object';
|
|
4484
|
-
}
|
|
4485
|
-
|
|
4486
|
-
isObjectLike_1 = isObjectLike;
|
|
4487
|
-
return isObjectLike_1;
|
|
4488
|
-
}
|
|
4489
|
-
|
|
4490
|
-
var isSymbol_1;
|
|
4491
|
-
var hasRequiredIsSymbol;
|
|
4492
|
-
|
|
4493
|
-
function requireIsSymbol () {
|
|
4494
|
-
if (hasRequiredIsSymbol) return isSymbol_1;
|
|
4495
|
-
hasRequiredIsSymbol = 1;
|
|
4496
|
-
var baseGetTag = require_baseGetTag(),
|
|
4497
|
-
isObjectLike = requireIsObjectLike();
|
|
4498
|
-
|
|
4499
|
-
/** `Object#toString` result references. */
|
|
4500
|
-
var symbolTag = '[object Symbol]';
|
|
4501
|
-
|
|
4502
|
-
/**
|
|
4503
|
-
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
4504
|
-
*
|
|
4505
|
-
* @static
|
|
4506
|
-
* @memberOf _
|
|
4507
|
-
* @since 4.0.0
|
|
4508
|
-
* @category Lang
|
|
4509
|
-
* @param {*} value The value to check.
|
|
4510
|
-
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
4511
|
-
* @example
|
|
4512
|
-
*
|
|
4513
|
-
* _.isSymbol(Symbol.iterator);
|
|
4514
|
-
* // => true
|
|
4515
|
-
*
|
|
4516
|
-
* _.isSymbol('abc');
|
|
4517
|
-
* // => false
|
|
4518
|
-
*/
|
|
4519
|
-
function isSymbol(value) {
|
|
4520
|
-
return typeof value == 'symbol' ||
|
|
4521
|
-
(isObjectLike(value) && baseGetTag(value) == symbolTag);
|
|
4522
|
-
}
|
|
4523
|
-
|
|
4524
|
-
isSymbol_1 = isSymbol;
|
|
4525
|
-
return isSymbol_1;
|
|
4526
|
-
}
|
|
4527
|
-
|
|
4528
|
-
var _isKey;
|
|
4529
|
-
var hasRequired_isKey;
|
|
4530
|
-
|
|
4531
|
-
function require_isKey () {
|
|
4532
|
-
if (hasRequired_isKey) return _isKey;
|
|
4533
|
-
hasRequired_isKey = 1;
|
|
4534
|
-
var isArray = requireIsArray(),
|
|
4535
|
-
isSymbol = requireIsSymbol();
|
|
4536
|
-
|
|
4537
|
-
/** Used to match property names within property paths. */
|
|
4538
|
-
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
4539
|
-
reIsPlainProp = /^\w*$/;
|
|
4540
|
-
|
|
4541
|
-
/**
|
|
4542
|
-
* Checks if `value` is a property name and not a property path.
|
|
4543
|
-
*
|
|
4544
|
-
* @private
|
|
4545
|
-
* @param {*} value The value to check.
|
|
4546
|
-
* @param {Object} [object] The object to query keys on.
|
|
4547
|
-
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
4548
|
-
*/
|
|
4549
|
-
function isKey(value, object) {
|
|
4550
|
-
if (isArray(value)) {
|
|
4551
|
-
return false;
|
|
4552
|
-
}
|
|
4553
|
-
var type = typeof value;
|
|
4554
|
-
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
|
|
4555
|
-
value == null || isSymbol(value)) {
|
|
4556
|
-
return true;
|
|
4557
|
-
}
|
|
4558
|
-
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
|
|
4559
|
-
(object != null && value in Object(object));
|
|
4560
|
-
}
|
|
4561
|
-
|
|
4562
|
-
_isKey = isKey;
|
|
4563
|
-
return _isKey;
|
|
4294
|
+
function _assertThisInitialized(self) {
|
|
4295
|
+
if (self === void 0) {
|
|
4296
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4297
|
+
}
|
|
4298
|
+
return self;
|
|
4564
4299
|
}
|
|
4565
4300
|
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
* @memberOf _
|
|
4573
|
-
* @since 0.1.0
|
|
4574
|
-
* @category Lang
|
|
4575
|
-
* @param {*} value The value to check.
|
|
4576
|
-
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
4577
|
-
* @example
|
|
4578
|
-
*
|
|
4579
|
-
* _.isObject({});
|
|
4580
|
-
* // => true
|
|
4581
|
-
*
|
|
4582
|
-
* _.isObject([1, 2, 3]);
|
|
4583
|
-
* // => true
|
|
4584
|
-
*
|
|
4585
|
-
* _.isObject(_.noop);
|
|
4586
|
-
* // => true
|
|
4587
|
-
*
|
|
4588
|
-
* _.isObject(null);
|
|
4589
|
-
* // => false
|
|
4590
|
-
*/
|
|
4591
|
-
|
|
4592
|
-
var isObject_1;
|
|
4593
|
-
var hasRequiredIsObject;
|
|
4594
|
-
|
|
4595
|
-
function requireIsObject () {
|
|
4596
|
-
if (hasRequiredIsObject) return isObject_1;
|
|
4597
|
-
hasRequiredIsObject = 1;
|
|
4598
|
-
function isObject(value) {
|
|
4599
|
-
var type = typeof value;
|
|
4600
|
-
return value != null && (type == 'object' || type == 'function');
|
|
4601
|
-
}
|
|
4602
|
-
|
|
4603
|
-
isObject_1 = isObject;
|
|
4604
|
-
return isObject_1;
|
|
4605
|
-
}
|
|
4606
|
-
|
|
4607
|
-
var isFunction_1;
|
|
4608
|
-
var hasRequiredIsFunction;
|
|
4609
|
-
|
|
4610
|
-
function requireIsFunction () {
|
|
4611
|
-
if (hasRequiredIsFunction) return isFunction_1;
|
|
4612
|
-
hasRequiredIsFunction = 1;
|
|
4613
|
-
var baseGetTag = require_baseGetTag(),
|
|
4614
|
-
isObject = requireIsObject();
|
|
4615
|
-
|
|
4616
|
-
/** `Object#toString` result references. */
|
|
4617
|
-
var asyncTag = '[object AsyncFunction]',
|
|
4618
|
-
funcTag = '[object Function]',
|
|
4619
|
-
genTag = '[object GeneratorFunction]',
|
|
4620
|
-
proxyTag = '[object Proxy]';
|
|
4621
|
-
|
|
4622
|
-
/**
|
|
4623
|
-
* Checks if `value` is classified as a `Function` object.
|
|
4624
|
-
*
|
|
4625
|
-
* @static
|
|
4626
|
-
* @memberOf _
|
|
4627
|
-
* @since 0.1.0
|
|
4628
|
-
* @category Lang
|
|
4629
|
-
* @param {*} value The value to check.
|
|
4630
|
-
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
4631
|
-
* @example
|
|
4632
|
-
*
|
|
4633
|
-
* _.isFunction(_);
|
|
4634
|
-
* // => true
|
|
4635
|
-
*
|
|
4636
|
-
* _.isFunction(/abc/);
|
|
4637
|
-
* // => false
|
|
4638
|
-
*/
|
|
4639
|
-
function isFunction(value) {
|
|
4640
|
-
if (!isObject(value)) {
|
|
4641
|
-
return false;
|
|
4642
|
-
}
|
|
4643
|
-
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
4644
|
-
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
4645
|
-
var tag = baseGetTag(value);
|
|
4646
|
-
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
4647
|
-
}
|
|
4648
|
-
|
|
4649
|
-
isFunction_1 = isFunction;
|
|
4650
|
-
return isFunction_1;
|
|
4301
|
+
function _setPrototypeOf(o, p) {
|
|
4302
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
4303
|
+
o.__proto__ = p;
|
|
4304
|
+
return o;
|
|
4305
|
+
};
|
|
4306
|
+
return _setPrototypeOf(o, p);
|
|
4651
4307
|
}
|
|
4652
4308
|
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4309
|
+
function _inherits(subClass, superClass) {
|
|
4310
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
4311
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
4312
|
+
}
|
|
4313
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
4314
|
+
constructor: {
|
|
4315
|
+
value: subClass,
|
|
4316
|
+
writable: true,
|
|
4317
|
+
configurable: true
|
|
4318
|
+
}
|
|
4319
|
+
});
|
|
4320
|
+
Object.defineProperty(subClass, "prototype", {
|
|
4321
|
+
writable: false
|
|
4322
|
+
});
|
|
4323
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
4666
4324
|
}
|
|
4667
4325
|
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
/** Used to detect methods masquerading as native. */
|
|
4677
|
-
var maskSrcKey = (function() {
|
|
4678
|
-
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
|
|
4679
|
-
return uid ? ('Symbol(src)_1.' + uid) : '';
|
|
4680
|
-
}());
|
|
4681
|
-
|
|
4682
|
-
/**
|
|
4683
|
-
* Checks if `func` has its source masked.
|
|
4684
|
-
*
|
|
4685
|
-
* @private
|
|
4686
|
-
* @param {Function} func The function to check.
|
|
4687
|
-
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
4688
|
-
*/
|
|
4689
|
-
function isMasked(func) {
|
|
4690
|
-
return !!maskSrcKey && (maskSrcKey in func);
|
|
4691
|
-
}
|
|
4692
|
-
|
|
4693
|
-
_isMasked = isMasked;
|
|
4694
|
-
return _isMasked;
|
|
4326
|
+
function _possibleConstructorReturn(self, call) {
|
|
4327
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
4328
|
+
return call;
|
|
4329
|
+
} else if (call !== void 0) {
|
|
4330
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
4331
|
+
}
|
|
4332
|
+
return _assertThisInitialized(self);
|
|
4695
4333
|
}
|
|
4696
4334
|
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
function require_toSource () {
|
|
4703
|
-
if (hasRequired_toSource) return _toSource;
|
|
4704
|
-
hasRequired_toSource = 1;
|
|
4705
|
-
var funcProto = Function.prototype;
|
|
4706
|
-
|
|
4707
|
-
/** Used to resolve the decompiled source of functions. */
|
|
4708
|
-
var funcToString = funcProto.toString;
|
|
4709
|
-
|
|
4710
|
-
/**
|
|
4711
|
-
* Converts `func` to its source code.
|
|
4712
|
-
*
|
|
4713
|
-
* @private
|
|
4714
|
-
* @param {Function} func The function to convert.
|
|
4715
|
-
* @returns {string} Returns the source code.
|
|
4716
|
-
*/
|
|
4717
|
-
function toSource(func) {
|
|
4718
|
-
if (func != null) {
|
|
4719
|
-
try {
|
|
4720
|
-
return funcToString.call(func);
|
|
4721
|
-
} catch (e) {}
|
|
4722
|
-
try {
|
|
4723
|
-
return (func + '');
|
|
4724
|
-
} catch (e) {}
|
|
4725
|
-
}
|
|
4726
|
-
return '';
|
|
4727
|
-
}
|
|
4728
|
-
|
|
4729
|
-
_toSource = toSource;
|
|
4730
|
-
return _toSource;
|
|
4731
|
-
}
|
|
4732
|
-
|
|
4733
|
-
var _baseIsNative;
|
|
4734
|
-
var hasRequired_baseIsNative;
|
|
4735
|
-
|
|
4736
|
-
function require_baseIsNative () {
|
|
4737
|
-
if (hasRequired_baseIsNative) return _baseIsNative;
|
|
4738
|
-
hasRequired_baseIsNative = 1;
|
|
4739
|
-
var isFunction = requireIsFunction(),
|
|
4740
|
-
isMasked = require_isMasked(),
|
|
4741
|
-
isObject = requireIsObject(),
|
|
4742
|
-
toSource = require_toSource();
|
|
4743
|
-
|
|
4744
|
-
/**
|
|
4745
|
-
* Used to match `RegExp`
|
|
4746
|
-
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
4747
|
-
*/
|
|
4748
|
-
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
4749
|
-
|
|
4750
|
-
/** Used to detect host constructors (Safari). */
|
|
4751
|
-
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
4752
|
-
|
|
4753
|
-
/** Used for built-in method references. */
|
|
4754
|
-
var funcProto = Function.prototype,
|
|
4755
|
-
objectProto = Object.prototype;
|
|
4756
|
-
|
|
4757
|
-
/** Used to resolve the decompiled source of functions. */
|
|
4758
|
-
var funcToString = funcProto.toString;
|
|
4759
|
-
|
|
4760
|
-
/** Used to check objects for own properties. */
|
|
4761
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
4762
|
-
|
|
4763
|
-
/** Used to detect if a method is native. */
|
|
4764
|
-
var reIsNative = RegExp('^' +
|
|
4765
|
-
funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
|
|
4766
|
-
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
4767
|
-
);
|
|
4768
|
-
|
|
4769
|
-
/**
|
|
4770
|
-
* The base implementation of `_.isNative` without bad shim checks.
|
|
4771
|
-
*
|
|
4772
|
-
* @private
|
|
4773
|
-
* @param {*} value The value to check.
|
|
4774
|
-
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
4775
|
-
* else `false`.
|
|
4776
|
-
*/
|
|
4777
|
-
function baseIsNative(value) {
|
|
4778
|
-
if (!isObject(value) || isMasked(value)) {
|
|
4779
|
-
return false;
|
|
4780
|
-
}
|
|
4781
|
-
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
|
4782
|
-
return pattern.test(toSource(value));
|
|
4783
|
-
}
|
|
4784
|
-
|
|
4785
|
-
_baseIsNative = baseIsNative;
|
|
4786
|
-
return _baseIsNative;
|
|
4335
|
+
function _getPrototypeOf(o) {
|
|
4336
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
4337
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
4338
|
+
};
|
|
4339
|
+
return _getPrototypeOf(o);
|
|
4787
4340
|
}
|
|
4788
4341
|
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
if (hasRequired_getValue) return _getValue;
|
|
4803
|
-
hasRequired_getValue = 1;
|
|
4804
|
-
function getValue(object, key) {
|
|
4805
|
-
return object == null ? undefined : object[key];
|
|
4806
|
-
}
|
|
4807
|
-
|
|
4808
|
-
_getValue = getValue;
|
|
4809
|
-
return _getValue;
|
|
4810
|
-
}
|
|
4811
|
-
|
|
4812
|
-
var _getNative;
|
|
4813
|
-
var hasRequired_getNative;
|
|
4814
|
-
|
|
4815
|
-
function require_getNative () {
|
|
4816
|
-
if (hasRequired_getNative) return _getNative;
|
|
4817
|
-
hasRequired_getNative = 1;
|
|
4818
|
-
var baseIsNative = require_baseIsNative(),
|
|
4819
|
-
getValue = require_getValue();
|
|
4820
|
-
|
|
4821
|
-
/**
|
|
4822
|
-
* Gets the native function at `key` of `object`.
|
|
4823
|
-
*
|
|
4824
|
-
* @private
|
|
4825
|
-
* @param {Object} object The object to query.
|
|
4826
|
-
* @param {string} key The key of the method to get.
|
|
4827
|
-
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
4828
|
-
*/
|
|
4829
|
-
function getNative(object, key) {
|
|
4830
|
-
var value = getValue(object, key);
|
|
4831
|
-
return baseIsNative(value) ? value : undefined;
|
|
4832
|
-
}
|
|
4833
|
-
|
|
4834
|
-
_getNative = getNative;
|
|
4835
|
-
return _getNative;
|
|
4342
|
+
function _defineProperty(obj, key, value) {
|
|
4343
|
+
key = _toPropertyKey(key);
|
|
4344
|
+
if (key in obj) {
|
|
4345
|
+
Object.defineProperty(obj, key, {
|
|
4346
|
+
value: value,
|
|
4347
|
+
enumerable: true,
|
|
4348
|
+
configurable: true,
|
|
4349
|
+
writable: true
|
|
4350
|
+
});
|
|
4351
|
+
} else {
|
|
4352
|
+
obj[key] = value;
|
|
4353
|
+
}
|
|
4354
|
+
return obj;
|
|
4836
4355
|
}
|
|
4837
4356
|
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
function require_nativeCreate () {
|
|
4842
|
-
if (hasRequired_nativeCreate) return _nativeCreate;
|
|
4843
|
-
hasRequired_nativeCreate = 1;
|
|
4844
|
-
var getNative = require_getNative();
|
|
4845
|
-
|
|
4846
|
-
/* Built-in method references that are verified to be native. */
|
|
4847
|
-
var nativeCreate = getNative(Object, 'create');
|
|
4848
|
-
|
|
4849
|
-
_nativeCreate = nativeCreate;
|
|
4850
|
-
return _nativeCreate;
|
|
4357
|
+
function _arrayWithHoles(arr) {
|
|
4358
|
+
if (Array.isArray(arr)) return arr;
|
|
4851
4359
|
}
|
|
4852
4360
|
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
function require_hashClear () {
|
|
4857
|
-
if (hasRequired_hashClear) return _hashClear;
|
|
4858
|
-
hasRequired_hashClear = 1;
|
|
4859
|
-
var nativeCreate = require_nativeCreate();
|
|
4860
|
-
|
|
4861
|
-
/**
|
|
4862
|
-
* Removes all key-value entries from the hash.
|
|
4863
|
-
*
|
|
4864
|
-
* @private
|
|
4865
|
-
* @name clear
|
|
4866
|
-
* @memberOf Hash
|
|
4867
|
-
*/
|
|
4868
|
-
function hashClear() {
|
|
4869
|
-
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
4870
|
-
this.size = 0;
|
|
4871
|
-
}
|
|
4361
|
+
function _iterableToArray(iter) {
|
|
4362
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
4363
|
+
}
|
|
4872
4364
|
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
/**
|
|
4878
|
-
* Removes `key` and its value from the hash.
|
|
4879
|
-
*
|
|
4880
|
-
* @private
|
|
4881
|
-
* @name delete
|
|
4882
|
-
* @memberOf Hash
|
|
4883
|
-
* @param {Object} hash The hash to modify.
|
|
4884
|
-
* @param {string} key The key of the value to remove.
|
|
4885
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
4886
|
-
*/
|
|
4887
|
-
|
|
4888
|
-
var _hashDelete;
|
|
4889
|
-
var hasRequired_hashDelete;
|
|
4890
|
-
|
|
4891
|
-
function require_hashDelete () {
|
|
4892
|
-
if (hasRequired_hashDelete) return _hashDelete;
|
|
4893
|
-
hasRequired_hashDelete = 1;
|
|
4894
|
-
function hashDelete(key) {
|
|
4895
|
-
var result = this.has(key) && delete this.__data__[key];
|
|
4896
|
-
this.size -= result ? 1 : 0;
|
|
4897
|
-
return result;
|
|
4898
|
-
}
|
|
4899
|
-
|
|
4900
|
-
_hashDelete = hashDelete;
|
|
4901
|
-
return _hashDelete;
|
|
4902
|
-
}
|
|
4903
|
-
|
|
4904
|
-
var _hashGet;
|
|
4905
|
-
var hasRequired_hashGet;
|
|
4906
|
-
|
|
4907
|
-
function require_hashGet () {
|
|
4908
|
-
if (hasRequired_hashGet) return _hashGet;
|
|
4909
|
-
hasRequired_hashGet = 1;
|
|
4910
|
-
var nativeCreate = require_nativeCreate();
|
|
4911
|
-
|
|
4912
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
4913
|
-
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
4914
|
-
|
|
4915
|
-
/** Used for built-in method references. */
|
|
4916
|
-
var objectProto = Object.prototype;
|
|
4917
|
-
|
|
4918
|
-
/** Used to check objects for own properties. */
|
|
4919
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
4920
|
-
|
|
4921
|
-
/**
|
|
4922
|
-
* Gets the hash value for `key`.
|
|
4923
|
-
*
|
|
4924
|
-
* @private
|
|
4925
|
-
* @name get
|
|
4926
|
-
* @memberOf Hash
|
|
4927
|
-
* @param {string} key The key of the value to get.
|
|
4928
|
-
* @returns {*} Returns the entry value.
|
|
4929
|
-
*/
|
|
4930
|
-
function hashGet(key) {
|
|
4931
|
-
var data = this.__data__;
|
|
4932
|
-
if (nativeCreate) {
|
|
4933
|
-
var result = data[key];
|
|
4934
|
-
return result === HASH_UNDEFINED ? undefined : result;
|
|
4935
|
-
}
|
|
4936
|
-
return hasOwnProperty.call(data, key) ? data[key] : undefined;
|
|
4937
|
-
}
|
|
4938
|
-
|
|
4939
|
-
_hashGet = hashGet;
|
|
4940
|
-
return _hashGet;
|
|
4941
|
-
}
|
|
4942
|
-
|
|
4943
|
-
var _hashHas;
|
|
4944
|
-
var hasRequired_hashHas;
|
|
4945
|
-
|
|
4946
|
-
function require_hashHas () {
|
|
4947
|
-
if (hasRequired_hashHas) return _hashHas;
|
|
4948
|
-
hasRequired_hashHas = 1;
|
|
4949
|
-
var nativeCreate = require_nativeCreate();
|
|
4950
|
-
|
|
4951
|
-
/** Used for built-in method references. */
|
|
4952
|
-
var objectProto = Object.prototype;
|
|
4953
|
-
|
|
4954
|
-
/** Used to check objects for own properties. */
|
|
4955
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
4956
|
-
|
|
4957
|
-
/**
|
|
4958
|
-
* Checks if a hash value for `key` exists.
|
|
4959
|
-
*
|
|
4960
|
-
* @private
|
|
4961
|
-
* @name has
|
|
4962
|
-
* @memberOf Hash
|
|
4963
|
-
* @param {string} key The key of the entry to check.
|
|
4964
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
4965
|
-
*/
|
|
4966
|
-
function hashHas(key) {
|
|
4967
|
-
var data = this.__data__;
|
|
4968
|
-
return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
|
|
4969
|
-
}
|
|
4970
|
-
|
|
4971
|
-
_hashHas = hashHas;
|
|
4972
|
-
return _hashHas;
|
|
4973
|
-
}
|
|
4974
|
-
|
|
4975
|
-
var _hashSet;
|
|
4976
|
-
var hasRequired_hashSet;
|
|
4977
|
-
|
|
4978
|
-
function require_hashSet () {
|
|
4979
|
-
if (hasRequired_hashSet) return _hashSet;
|
|
4980
|
-
hasRequired_hashSet = 1;
|
|
4981
|
-
var nativeCreate = require_nativeCreate();
|
|
4982
|
-
|
|
4983
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
4984
|
-
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
4985
|
-
|
|
4986
|
-
/**
|
|
4987
|
-
* Sets the hash `key` to `value`.
|
|
4988
|
-
*
|
|
4989
|
-
* @private
|
|
4990
|
-
* @name set
|
|
4991
|
-
* @memberOf Hash
|
|
4992
|
-
* @param {string} key The key of the value to set.
|
|
4993
|
-
* @param {*} value The value to set.
|
|
4994
|
-
* @returns {Object} Returns the hash instance.
|
|
4995
|
-
*/
|
|
4996
|
-
function hashSet(key, value) {
|
|
4997
|
-
var data = this.__data__;
|
|
4998
|
-
this.size += this.has(key) ? 0 : 1;
|
|
4999
|
-
data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
|
|
5000
|
-
return this;
|
|
5001
|
-
}
|
|
5002
|
-
|
|
5003
|
-
_hashSet = hashSet;
|
|
5004
|
-
return _hashSet;
|
|
5005
|
-
}
|
|
5006
|
-
|
|
5007
|
-
var _Hash;
|
|
5008
|
-
var hasRequired_Hash;
|
|
5009
|
-
|
|
5010
|
-
function require_Hash () {
|
|
5011
|
-
if (hasRequired_Hash) return _Hash;
|
|
5012
|
-
hasRequired_Hash = 1;
|
|
5013
|
-
var hashClear = require_hashClear(),
|
|
5014
|
-
hashDelete = require_hashDelete(),
|
|
5015
|
-
hashGet = require_hashGet(),
|
|
5016
|
-
hashHas = require_hashHas(),
|
|
5017
|
-
hashSet = require_hashSet();
|
|
5018
|
-
|
|
5019
|
-
/**
|
|
5020
|
-
* Creates a hash object.
|
|
5021
|
-
*
|
|
5022
|
-
* @private
|
|
5023
|
-
* @constructor
|
|
5024
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
5025
|
-
*/
|
|
5026
|
-
function Hash(entries) {
|
|
5027
|
-
var index = -1,
|
|
5028
|
-
length = entries == null ? 0 : entries.length;
|
|
5029
|
-
|
|
5030
|
-
this.clear();
|
|
5031
|
-
while (++index < length) {
|
|
5032
|
-
var entry = entries[index];
|
|
5033
|
-
this.set(entry[0], entry[1]);
|
|
5034
|
-
}
|
|
5035
|
-
}
|
|
5036
|
-
|
|
5037
|
-
// Add methods to `Hash`.
|
|
5038
|
-
Hash.prototype.clear = hashClear;
|
|
5039
|
-
Hash.prototype['delete'] = hashDelete;
|
|
5040
|
-
Hash.prototype.get = hashGet;
|
|
5041
|
-
Hash.prototype.has = hashHas;
|
|
5042
|
-
Hash.prototype.set = hashSet;
|
|
5043
|
-
|
|
5044
|
-
_Hash = Hash;
|
|
5045
|
-
return _Hash;
|
|
5046
|
-
}
|
|
5047
|
-
|
|
5048
|
-
/**
|
|
5049
|
-
* Removes all key-value entries from the list cache.
|
|
5050
|
-
*
|
|
5051
|
-
* @private
|
|
5052
|
-
* @name clear
|
|
5053
|
-
* @memberOf ListCache
|
|
5054
|
-
*/
|
|
5055
|
-
|
|
5056
|
-
var _listCacheClear;
|
|
5057
|
-
var hasRequired_listCacheClear;
|
|
5058
|
-
|
|
5059
|
-
function require_listCacheClear () {
|
|
5060
|
-
if (hasRequired_listCacheClear) return _listCacheClear;
|
|
5061
|
-
hasRequired_listCacheClear = 1;
|
|
5062
|
-
function listCacheClear() {
|
|
5063
|
-
this.__data__ = [];
|
|
5064
|
-
this.size = 0;
|
|
5065
|
-
}
|
|
5066
|
-
|
|
5067
|
-
_listCacheClear = listCacheClear;
|
|
5068
|
-
return _listCacheClear;
|
|
5069
|
-
}
|
|
5070
|
-
|
|
5071
|
-
/**
|
|
5072
|
-
* Performs a
|
|
5073
|
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
5074
|
-
* comparison between two values to determine if they are equivalent.
|
|
5075
|
-
*
|
|
5076
|
-
* @static
|
|
5077
|
-
* @memberOf _
|
|
5078
|
-
* @since 4.0.0
|
|
5079
|
-
* @category Lang
|
|
5080
|
-
* @param {*} value The value to compare.
|
|
5081
|
-
* @param {*} other The other value to compare.
|
|
5082
|
-
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
5083
|
-
* @example
|
|
5084
|
-
*
|
|
5085
|
-
* var object = { 'a': 1 };
|
|
5086
|
-
* var other = { 'a': 1 };
|
|
5087
|
-
*
|
|
5088
|
-
* _.eq(object, object);
|
|
5089
|
-
* // => true
|
|
5090
|
-
*
|
|
5091
|
-
* _.eq(object, other);
|
|
5092
|
-
* // => false
|
|
5093
|
-
*
|
|
5094
|
-
* _.eq('a', 'a');
|
|
5095
|
-
* // => true
|
|
5096
|
-
*
|
|
5097
|
-
* _.eq('a', Object('a'));
|
|
5098
|
-
* // => false
|
|
5099
|
-
*
|
|
5100
|
-
* _.eq(NaN, NaN);
|
|
5101
|
-
* // => true
|
|
5102
|
-
*/
|
|
5103
|
-
|
|
5104
|
-
var eq_1;
|
|
5105
|
-
var hasRequiredEq;
|
|
5106
|
-
|
|
5107
|
-
function requireEq () {
|
|
5108
|
-
if (hasRequiredEq) return eq_1;
|
|
5109
|
-
hasRequiredEq = 1;
|
|
5110
|
-
function eq(value, other) {
|
|
5111
|
-
return value === other || (value !== value && other !== other);
|
|
5112
|
-
}
|
|
5113
|
-
|
|
5114
|
-
eq_1 = eq;
|
|
5115
|
-
return eq_1;
|
|
5116
|
-
}
|
|
5117
|
-
|
|
5118
|
-
var _assocIndexOf;
|
|
5119
|
-
var hasRequired_assocIndexOf;
|
|
5120
|
-
|
|
5121
|
-
function require_assocIndexOf () {
|
|
5122
|
-
if (hasRequired_assocIndexOf) return _assocIndexOf;
|
|
5123
|
-
hasRequired_assocIndexOf = 1;
|
|
5124
|
-
var eq = requireEq();
|
|
5125
|
-
|
|
5126
|
-
/**
|
|
5127
|
-
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
5128
|
-
*
|
|
5129
|
-
* @private
|
|
5130
|
-
* @param {Array} array The array to inspect.
|
|
5131
|
-
* @param {*} key The key to search for.
|
|
5132
|
-
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
5133
|
-
*/
|
|
5134
|
-
function assocIndexOf(array, key) {
|
|
5135
|
-
var length = array.length;
|
|
5136
|
-
while (length--) {
|
|
5137
|
-
if (eq(array[length][0], key)) {
|
|
5138
|
-
return length;
|
|
5139
|
-
}
|
|
5140
|
-
}
|
|
5141
|
-
return -1;
|
|
5142
|
-
}
|
|
5143
|
-
|
|
5144
|
-
_assocIndexOf = assocIndexOf;
|
|
5145
|
-
return _assocIndexOf;
|
|
5146
|
-
}
|
|
5147
|
-
|
|
5148
|
-
var _listCacheDelete;
|
|
5149
|
-
var hasRequired_listCacheDelete;
|
|
5150
|
-
|
|
5151
|
-
function require_listCacheDelete () {
|
|
5152
|
-
if (hasRequired_listCacheDelete) return _listCacheDelete;
|
|
5153
|
-
hasRequired_listCacheDelete = 1;
|
|
5154
|
-
var assocIndexOf = require_assocIndexOf();
|
|
5155
|
-
|
|
5156
|
-
/** Used for built-in method references. */
|
|
5157
|
-
var arrayProto = Array.prototype;
|
|
5158
|
-
|
|
5159
|
-
/** Built-in value references. */
|
|
5160
|
-
var splice = arrayProto.splice;
|
|
5161
|
-
|
|
5162
|
-
/**
|
|
5163
|
-
* Removes `key` and its value from the list cache.
|
|
5164
|
-
*
|
|
5165
|
-
* @private
|
|
5166
|
-
* @name delete
|
|
5167
|
-
* @memberOf ListCache
|
|
5168
|
-
* @param {string} key The key of the value to remove.
|
|
5169
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
5170
|
-
*/
|
|
5171
|
-
function listCacheDelete(key) {
|
|
5172
|
-
var data = this.__data__,
|
|
5173
|
-
index = assocIndexOf(data, key);
|
|
5174
|
-
|
|
5175
|
-
if (index < 0) {
|
|
5176
|
-
return false;
|
|
5177
|
-
}
|
|
5178
|
-
var lastIndex = data.length - 1;
|
|
5179
|
-
if (index == lastIndex) {
|
|
5180
|
-
data.pop();
|
|
5181
|
-
} else {
|
|
5182
|
-
splice.call(data, index, 1);
|
|
5183
|
-
}
|
|
5184
|
-
--this.size;
|
|
5185
|
-
return true;
|
|
5186
|
-
}
|
|
5187
|
-
|
|
5188
|
-
_listCacheDelete = listCacheDelete;
|
|
5189
|
-
return _listCacheDelete;
|
|
5190
|
-
}
|
|
5191
|
-
|
|
5192
|
-
var _listCacheGet;
|
|
5193
|
-
var hasRequired_listCacheGet;
|
|
5194
|
-
|
|
5195
|
-
function require_listCacheGet () {
|
|
5196
|
-
if (hasRequired_listCacheGet) return _listCacheGet;
|
|
5197
|
-
hasRequired_listCacheGet = 1;
|
|
5198
|
-
var assocIndexOf = require_assocIndexOf();
|
|
5199
|
-
|
|
5200
|
-
/**
|
|
5201
|
-
* Gets the list cache value for `key`.
|
|
5202
|
-
*
|
|
5203
|
-
* @private
|
|
5204
|
-
* @name get
|
|
5205
|
-
* @memberOf ListCache
|
|
5206
|
-
* @param {string} key The key of the value to get.
|
|
5207
|
-
* @returns {*} Returns the entry value.
|
|
5208
|
-
*/
|
|
5209
|
-
function listCacheGet(key) {
|
|
5210
|
-
var data = this.__data__,
|
|
5211
|
-
index = assocIndexOf(data, key);
|
|
5212
|
-
|
|
5213
|
-
return index < 0 ? undefined : data[index][1];
|
|
5214
|
-
}
|
|
5215
|
-
|
|
5216
|
-
_listCacheGet = listCacheGet;
|
|
5217
|
-
return _listCacheGet;
|
|
5218
|
-
}
|
|
5219
|
-
|
|
5220
|
-
var _listCacheHas;
|
|
5221
|
-
var hasRequired_listCacheHas;
|
|
5222
|
-
|
|
5223
|
-
function require_listCacheHas () {
|
|
5224
|
-
if (hasRequired_listCacheHas) return _listCacheHas;
|
|
5225
|
-
hasRequired_listCacheHas = 1;
|
|
5226
|
-
var assocIndexOf = require_assocIndexOf();
|
|
5227
|
-
|
|
5228
|
-
/**
|
|
5229
|
-
* Checks if a list cache value for `key` exists.
|
|
5230
|
-
*
|
|
5231
|
-
* @private
|
|
5232
|
-
* @name has
|
|
5233
|
-
* @memberOf ListCache
|
|
5234
|
-
* @param {string} key The key of the entry to check.
|
|
5235
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
5236
|
-
*/
|
|
5237
|
-
function listCacheHas(key) {
|
|
5238
|
-
return assocIndexOf(this.__data__, key) > -1;
|
|
5239
|
-
}
|
|
5240
|
-
|
|
5241
|
-
_listCacheHas = listCacheHas;
|
|
5242
|
-
return _listCacheHas;
|
|
5243
|
-
}
|
|
5244
|
-
|
|
5245
|
-
var _listCacheSet;
|
|
5246
|
-
var hasRequired_listCacheSet;
|
|
5247
|
-
|
|
5248
|
-
function require_listCacheSet () {
|
|
5249
|
-
if (hasRequired_listCacheSet) return _listCacheSet;
|
|
5250
|
-
hasRequired_listCacheSet = 1;
|
|
5251
|
-
var assocIndexOf = require_assocIndexOf();
|
|
5252
|
-
|
|
5253
|
-
/**
|
|
5254
|
-
* Sets the list cache `key` to `value`.
|
|
5255
|
-
*
|
|
5256
|
-
* @private
|
|
5257
|
-
* @name set
|
|
5258
|
-
* @memberOf ListCache
|
|
5259
|
-
* @param {string} key The key of the value to set.
|
|
5260
|
-
* @param {*} value The value to set.
|
|
5261
|
-
* @returns {Object} Returns the list cache instance.
|
|
5262
|
-
*/
|
|
5263
|
-
function listCacheSet(key, value) {
|
|
5264
|
-
var data = this.__data__,
|
|
5265
|
-
index = assocIndexOf(data, key);
|
|
5266
|
-
|
|
5267
|
-
if (index < 0) {
|
|
5268
|
-
++this.size;
|
|
5269
|
-
data.push([key, value]);
|
|
5270
|
-
} else {
|
|
5271
|
-
data[index][1] = value;
|
|
5272
|
-
}
|
|
5273
|
-
return this;
|
|
5274
|
-
}
|
|
5275
|
-
|
|
5276
|
-
_listCacheSet = listCacheSet;
|
|
5277
|
-
return _listCacheSet;
|
|
5278
|
-
}
|
|
5279
|
-
|
|
5280
|
-
var _ListCache;
|
|
5281
|
-
var hasRequired_ListCache;
|
|
5282
|
-
|
|
5283
|
-
function require_ListCache () {
|
|
5284
|
-
if (hasRequired_ListCache) return _ListCache;
|
|
5285
|
-
hasRequired_ListCache = 1;
|
|
5286
|
-
var listCacheClear = require_listCacheClear(),
|
|
5287
|
-
listCacheDelete = require_listCacheDelete(),
|
|
5288
|
-
listCacheGet = require_listCacheGet(),
|
|
5289
|
-
listCacheHas = require_listCacheHas(),
|
|
5290
|
-
listCacheSet = require_listCacheSet();
|
|
5291
|
-
|
|
5292
|
-
/**
|
|
5293
|
-
* Creates an list cache object.
|
|
5294
|
-
*
|
|
5295
|
-
* @private
|
|
5296
|
-
* @constructor
|
|
5297
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
5298
|
-
*/
|
|
5299
|
-
function ListCache(entries) {
|
|
5300
|
-
var index = -1,
|
|
5301
|
-
length = entries == null ? 0 : entries.length;
|
|
5302
|
-
|
|
5303
|
-
this.clear();
|
|
5304
|
-
while (++index < length) {
|
|
5305
|
-
var entry = entries[index];
|
|
5306
|
-
this.set(entry[0], entry[1]);
|
|
5307
|
-
}
|
|
5308
|
-
}
|
|
5309
|
-
|
|
5310
|
-
// Add methods to `ListCache`.
|
|
5311
|
-
ListCache.prototype.clear = listCacheClear;
|
|
5312
|
-
ListCache.prototype['delete'] = listCacheDelete;
|
|
5313
|
-
ListCache.prototype.get = listCacheGet;
|
|
5314
|
-
ListCache.prototype.has = listCacheHas;
|
|
5315
|
-
ListCache.prototype.set = listCacheSet;
|
|
5316
|
-
|
|
5317
|
-
_ListCache = ListCache;
|
|
5318
|
-
return _ListCache;
|
|
5319
|
-
}
|
|
5320
|
-
|
|
5321
|
-
var _Map;
|
|
5322
|
-
var hasRequired_Map;
|
|
5323
|
-
|
|
5324
|
-
function require_Map () {
|
|
5325
|
-
if (hasRequired_Map) return _Map;
|
|
5326
|
-
hasRequired_Map = 1;
|
|
5327
|
-
var getNative = require_getNative(),
|
|
5328
|
-
root = require_root();
|
|
5329
|
-
|
|
5330
|
-
/* Built-in method references that are verified to be native. */
|
|
5331
|
-
var Map = getNative(root, 'Map');
|
|
5332
|
-
|
|
5333
|
-
_Map = Map;
|
|
5334
|
-
return _Map;
|
|
5335
|
-
}
|
|
5336
|
-
|
|
5337
|
-
var _mapCacheClear;
|
|
5338
|
-
var hasRequired_mapCacheClear;
|
|
5339
|
-
|
|
5340
|
-
function require_mapCacheClear () {
|
|
5341
|
-
if (hasRequired_mapCacheClear) return _mapCacheClear;
|
|
5342
|
-
hasRequired_mapCacheClear = 1;
|
|
5343
|
-
var Hash = require_Hash(),
|
|
5344
|
-
ListCache = require_ListCache(),
|
|
5345
|
-
Map = require_Map();
|
|
5346
|
-
|
|
5347
|
-
/**
|
|
5348
|
-
* Removes all key-value entries from the map.
|
|
5349
|
-
*
|
|
5350
|
-
* @private
|
|
5351
|
-
* @name clear
|
|
5352
|
-
* @memberOf MapCache
|
|
5353
|
-
*/
|
|
5354
|
-
function mapCacheClear() {
|
|
5355
|
-
this.size = 0;
|
|
5356
|
-
this.__data__ = {
|
|
5357
|
-
'hash': new Hash,
|
|
5358
|
-
'map': new (Map || ListCache),
|
|
5359
|
-
'string': new Hash
|
|
5360
|
-
};
|
|
5361
|
-
}
|
|
5362
|
-
|
|
5363
|
-
_mapCacheClear = mapCacheClear;
|
|
5364
|
-
return _mapCacheClear;
|
|
5365
|
-
}
|
|
5366
|
-
|
|
5367
|
-
/**
|
|
5368
|
-
* Checks if `value` is suitable for use as unique object key.
|
|
5369
|
-
*
|
|
5370
|
-
* @private
|
|
5371
|
-
* @param {*} value The value to check.
|
|
5372
|
-
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
5373
|
-
*/
|
|
5374
|
-
|
|
5375
|
-
var _isKeyable;
|
|
5376
|
-
var hasRequired_isKeyable;
|
|
5377
|
-
|
|
5378
|
-
function require_isKeyable () {
|
|
5379
|
-
if (hasRequired_isKeyable) return _isKeyable;
|
|
5380
|
-
hasRequired_isKeyable = 1;
|
|
5381
|
-
function isKeyable(value) {
|
|
5382
|
-
var type = typeof value;
|
|
5383
|
-
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
|
|
5384
|
-
? (value !== '__proto__')
|
|
5385
|
-
: (value === null);
|
|
5386
|
-
}
|
|
5387
|
-
|
|
5388
|
-
_isKeyable = isKeyable;
|
|
5389
|
-
return _isKeyable;
|
|
5390
|
-
}
|
|
5391
|
-
|
|
5392
|
-
var _getMapData;
|
|
5393
|
-
var hasRequired_getMapData;
|
|
5394
|
-
|
|
5395
|
-
function require_getMapData () {
|
|
5396
|
-
if (hasRequired_getMapData) return _getMapData;
|
|
5397
|
-
hasRequired_getMapData = 1;
|
|
5398
|
-
var isKeyable = require_isKeyable();
|
|
5399
|
-
|
|
5400
|
-
/**
|
|
5401
|
-
* Gets the data for `map`.
|
|
5402
|
-
*
|
|
5403
|
-
* @private
|
|
5404
|
-
* @param {Object} map The map to query.
|
|
5405
|
-
* @param {string} key The reference key.
|
|
5406
|
-
* @returns {*} Returns the map data.
|
|
5407
|
-
*/
|
|
5408
|
-
function getMapData(map, key) {
|
|
5409
|
-
var data = map.__data__;
|
|
5410
|
-
return isKeyable(key)
|
|
5411
|
-
? data[typeof key == 'string' ? 'string' : 'hash']
|
|
5412
|
-
: data.map;
|
|
5413
|
-
}
|
|
5414
|
-
|
|
5415
|
-
_getMapData = getMapData;
|
|
5416
|
-
return _getMapData;
|
|
5417
|
-
}
|
|
5418
|
-
|
|
5419
|
-
var _mapCacheDelete;
|
|
5420
|
-
var hasRequired_mapCacheDelete;
|
|
5421
|
-
|
|
5422
|
-
function require_mapCacheDelete () {
|
|
5423
|
-
if (hasRequired_mapCacheDelete) return _mapCacheDelete;
|
|
5424
|
-
hasRequired_mapCacheDelete = 1;
|
|
5425
|
-
var getMapData = require_getMapData();
|
|
5426
|
-
|
|
5427
|
-
/**
|
|
5428
|
-
* Removes `key` and its value from the map.
|
|
5429
|
-
*
|
|
5430
|
-
* @private
|
|
5431
|
-
* @name delete
|
|
5432
|
-
* @memberOf MapCache
|
|
5433
|
-
* @param {string} key The key of the value to remove.
|
|
5434
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
5435
|
-
*/
|
|
5436
|
-
function mapCacheDelete(key) {
|
|
5437
|
-
var result = getMapData(this, key)['delete'](key);
|
|
5438
|
-
this.size -= result ? 1 : 0;
|
|
5439
|
-
return result;
|
|
5440
|
-
}
|
|
5441
|
-
|
|
5442
|
-
_mapCacheDelete = mapCacheDelete;
|
|
5443
|
-
return _mapCacheDelete;
|
|
5444
|
-
}
|
|
5445
|
-
|
|
5446
|
-
var _mapCacheGet;
|
|
5447
|
-
var hasRequired_mapCacheGet;
|
|
5448
|
-
|
|
5449
|
-
function require_mapCacheGet () {
|
|
5450
|
-
if (hasRequired_mapCacheGet) return _mapCacheGet;
|
|
5451
|
-
hasRequired_mapCacheGet = 1;
|
|
5452
|
-
var getMapData = require_getMapData();
|
|
5453
|
-
|
|
5454
|
-
/**
|
|
5455
|
-
* Gets the map value for `key`.
|
|
5456
|
-
*
|
|
5457
|
-
* @private
|
|
5458
|
-
* @name get
|
|
5459
|
-
* @memberOf MapCache
|
|
5460
|
-
* @param {string} key The key of the value to get.
|
|
5461
|
-
* @returns {*} Returns the entry value.
|
|
5462
|
-
*/
|
|
5463
|
-
function mapCacheGet(key) {
|
|
5464
|
-
return getMapData(this, key).get(key);
|
|
5465
|
-
}
|
|
5466
|
-
|
|
5467
|
-
_mapCacheGet = mapCacheGet;
|
|
5468
|
-
return _mapCacheGet;
|
|
5469
|
-
}
|
|
5470
|
-
|
|
5471
|
-
var _mapCacheHas;
|
|
5472
|
-
var hasRequired_mapCacheHas;
|
|
5473
|
-
|
|
5474
|
-
function require_mapCacheHas () {
|
|
5475
|
-
if (hasRequired_mapCacheHas) return _mapCacheHas;
|
|
5476
|
-
hasRequired_mapCacheHas = 1;
|
|
5477
|
-
var getMapData = require_getMapData();
|
|
5478
|
-
|
|
5479
|
-
/**
|
|
5480
|
-
* Checks if a map value for `key` exists.
|
|
5481
|
-
*
|
|
5482
|
-
* @private
|
|
5483
|
-
* @name has
|
|
5484
|
-
* @memberOf MapCache
|
|
5485
|
-
* @param {string} key The key of the entry to check.
|
|
5486
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
5487
|
-
*/
|
|
5488
|
-
function mapCacheHas(key) {
|
|
5489
|
-
return getMapData(this, key).has(key);
|
|
5490
|
-
}
|
|
5491
|
-
|
|
5492
|
-
_mapCacheHas = mapCacheHas;
|
|
5493
|
-
return _mapCacheHas;
|
|
5494
|
-
}
|
|
5495
|
-
|
|
5496
|
-
var _mapCacheSet;
|
|
5497
|
-
var hasRequired_mapCacheSet;
|
|
5498
|
-
|
|
5499
|
-
function require_mapCacheSet () {
|
|
5500
|
-
if (hasRequired_mapCacheSet) return _mapCacheSet;
|
|
5501
|
-
hasRequired_mapCacheSet = 1;
|
|
5502
|
-
var getMapData = require_getMapData();
|
|
5503
|
-
|
|
5504
|
-
/**
|
|
5505
|
-
* Sets the map `key` to `value`.
|
|
5506
|
-
*
|
|
5507
|
-
* @private
|
|
5508
|
-
* @name set
|
|
5509
|
-
* @memberOf MapCache
|
|
5510
|
-
* @param {string} key The key of the value to set.
|
|
5511
|
-
* @param {*} value The value to set.
|
|
5512
|
-
* @returns {Object} Returns the map cache instance.
|
|
5513
|
-
*/
|
|
5514
|
-
function mapCacheSet(key, value) {
|
|
5515
|
-
var data = getMapData(this, key),
|
|
5516
|
-
size = data.size;
|
|
5517
|
-
|
|
5518
|
-
data.set(key, value);
|
|
5519
|
-
this.size += data.size == size ? 0 : 1;
|
|
5520
|
-
return this;
|
|
5521
|
-
}
|
|
5522
|
-
|
|
5523
|
-
_mapCacheSet = mapCacheSet;
|
|
5524
|
-
return _mapCacheSet;
|
|
5525
|
-
}
|
|
5526
|
-
|
|
5527
|
-
var _MapCache;
|
|
5528
|
-
var hasRequired_MapCache;
|
|
5529
|
-
|
|
5530
|
-
function require_MapCache () {
|
|
5531
|
-
if (hasRequired_MapCache) return _MapCache;
|
|
5532
|
-
hasRequired_MapCache = 1;
|
|
5533
|
-
var mapCacheClear = require_mapCacheClear(),
|
|
5534
|
-
mapCacheDelete = require_mapCacheDelete(),
|
|
5535
|
-
mapCacheGet = require_mapCacheGet(),
|
|
5536
|
-
mapCacheHas = require_mapCacheHas(),
|
|
5537
|
-
mapCacheSet = require_mapCacheSet();
|
|
5538
|
-
|
|
5539
|
-
/**
|
|
5540
|
-
* Creates a map cache object to store key-value pairs.
|
|
5541
|
-
*
|
|
5542
|
-
* @private
|
|
5543
|
-
* @constructor
|
|
5544
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
5545
|
-
*/
|
|
5546
|
-
function MapCache(entries) {
|
|
5547
|
-
var index = -1,
|
|
5548
|
-
length = entries == null ? 0 : entries.length;
|
|
5549
|
-
|
|
5550
|
-
this.clear();
|
|
5551
|
-
while (++index < length) {
|
|
5552
|
-
var entry = entries[index];
|
|
5553
|
-
this.set(entry[0], entry[1]);
|
|
5554
|
-
}
|
|
5555
|
-
}
|
|
5556
|
-
|
|
5557
|
-
// Add methods to `MapCache`.
|
|
5558
|
-
MapCache.prototype.clear = mapCacheClear;
|
|
5559
|
-
MapCache.prototype['delete'] = mapCacheDelete;
|
|
5560
|
-
MapCache.prototype.get = mapCacheGet;
|
|
5561
|
-
MapCache.prototype.has = mapCacheHas;
|
|
5562
|
-
MapCache.prototype.set = mapCacheSet;
|
|
5563
|
-
|
|
5564
|
-
_MapCache = MapCache;
|
|
5565
|
-
return _MapCache;
|
|
5566
|
-
}
|
|
5567
|
-
|
|
5568
|
-
var memoize_1;
|
|
5569
|
-
var hasRequiredMemoize;
|
|
5570
|
-
|
|
5571
|
-
function requireMemoize () {
|
|
5572
|
-
if (hasRequiredMemoize) return memoize_1;
|
|
5573
|
-
hasRequiredMemoize = 1;
|
|
5574
|
-
var MapCache = require_MapCache();
|
|
5575
|
-
|
|
5576
|
-
/** Error message constants. */
|
|
5577
|
-
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
5578
|
-
|
|
5579
|
-
/**
|
|
5580
|
-
* Creates a function that memoizes the result of `func`. If `resolver` is
|
|
5581
|
-
* provided, it determines the cache key for storing the result based on the
|
|
5582
|
-
* arguments provided to the memoized function. By default, the first argument
|
|
5583
|
-
* provided to the memoized function is used as the map cache key. The `func`
|
|
5584
|
-
* is invoked with the `this` binding of the memoized function.
|
|
5585
|
-
*
|
|
5586
|
-
* **Note:** The cache is exposed as the `cache` property on the memoized
|
|
5587
|
-
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
|
5588
|
-
* constructor with one whose instances implement the
|
|
5589
|
-
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
|
5590
|
-
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
|
|
5591
|
-
*
|
|
5592
|
-
* @static
|
|
5593
|
-
* @memberOf _
|
|
5594
|
-
* @since 0.1.0
|
|
5595
|
-
* @category Function
|
|
5596
|
-
* @param {Function} func The function to have its output memoized.
|
|
5597
|
-
* @param {Function} [resolver] The function to resolve the cache key.
|
|
5598
|
-
* @returns {Function} Returns the new memoized function.
|
|
5599
|
-
* @example
|
|
5600
|
-
*
|
|
5601
|
-
* var object = { 'a': 1, 'b': 2 };
|
|
5602
|
-
* var other = { 'c': 3, 'd': 4 };
|
|
5603
|
-
*
|
|
5604
|
-
* var values = _.memoize(_.values);
|
|
5605
|
-
* values(object);
|
|
5606
|
-
* // => [1, 2]
|
|
5607
|
-
*
|
|
5608
|
-
* values(other);
|
|
5609
|
-
* // => [3, 4]
|
|
5610
|
-
*
|
|
5611
|
-
* object.a = 2;
|
|
5612
|
-
* values(object);
|
|
5613
|
-
* // => [1, 2]
|
|
5614
|
-
*
|
|
5615
|
-
* // Modify the result cache.
|
|
5616
|
-
* values.cache.set(object, ['a', 'b']);
|
|
5617
|
-
* values(object);
|
|
5618
|
-
* // => ['a', 'b']
|
|
5619
|
-
*
|
|
5620
|
-
* // Replace `_.memoize.Cache`.
|
|
5621
|
-
* _.memoize.Cache = WeakMap;
|
|
5622
|
-
*/
|
|
5623
|
-
function memoize(func, resolver) {
|
|
5624
|
-
if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
|
|
5625
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
5626
|
-
}
|
|
5627
|
-
var memoized = function() {
|
|
5628
|
-
var args = arguments,
|
|
5629
|
-
key = resolver ? resolver.apply(this, args) : args[0],
|
|
5630
|
-
cache = memoized.cache;
|
|
5631
|
-
|
|
5632
|
-
if (cache.has(key)) {
|
|
5633
|
-
return cache.get(key);
|
|
5634
|
-
}
|
|
5635
|
-
var result = func.apply(this, args);
|
|
5636
|
-
memoized.cache = cache.set(key, result) || cache;
|
|
5637
|
-
return result;
|
|
5638
|
-
};
|
|
5639
|
-
memoized.cache = new (memoize.Cache || MapCache);
|
|
5640
|
-
return memoized;
|
|
5641
|
-
}
|
|
5642
|
-
|
|
5643
|
-
// Expose `MapCache`.
|
|
5644
|
-
memoize.Cache = MapCache;
|
|
5645
|
-
|
|
5646
|
-
memoize_1 = memoize;
|
|
5647
|
-
return memoize_1;
|
|
5648
|
-
}
|
|
5649
|
-
|
|
5650
|
-
var _memoizeCapped;
|
|
5651
|
-
var hasRequired_memoizeCapped;
|
|
5652
|
-
|
|
5653
|
-
function require_memoizeCapped () {
|
|
5654
|
-
if (hasRequired_memoizeCapped) return _memoizeCapped;
|
|
5655
|
-
hasRequired_memoizeCapped = 1;
|
|
5656
|
-
var memoize = requireMemoize();
|
|
5657
|
-
|
|
5658
|
-
/** Used as the maximum memoize cache size. */
|
|
5659
|
-
var MAX_MEMOIZE_SIZE = 500;
|
|
5660
|
-
|
|
5661
|
-
/**
|
|
5662
|
-
* A specialized version of `_.memoize` which clears the memoized function's
|
|
5663
|
-
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
|
|
5664
|
-
*
|
|
5665
|
-
* @private
|
|
5666
|
-
* @param {Function} func The function to have its output memoized.
|
|
5667
|
-
* @returns {Function} Returns the new memoized function.
|
|
5668
|
-
*/
|
|
5669
|
-
function memoizeCapped(func) {
|
|
5670
|
-
var result = memoize(func, function(key) {
|
|
5671
|
-
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
5672
|
-
cache.clear();
|
|
5673
|
-
}
|
|
5674
|
-
return key;
|
|
5675
|
-
});
|
|
5676
|
-
|
|
5677
|
-
var cache = result.cache;
|
|
5678
|
-
return result;
|
|
5679
|
-
}
|
|
5680
|
-
|
|
5681
|
-
_memoizeCapped = memoizeCapped;
|
|
5682
|
-
return _memoizeCapped;
|
|
5683
|
-
}
|
|
5684
|
-
|
|
5685
|
-
var _stringToPath;
|
|
5686
|
-
var hasRequired_stringToPath;
|
|
5687
|
-
|
|
5688
|
-
function require_stringToPath () {
|
|
5689
|
-
if (hasRequired_stringToPath) return _stringToPath;
|
|
5690
|
-
hasRequired_stringToPath = 1;
|
|
5691
|
-
var memoizeCapped = require_memoizeCapped();
|
|
5692
|
-
|
|
5693
|
-
/** Used to match property names within property paths. */
|
|
5694
|
-
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
5695
|
-
|
|
5696
|
-
/** Used to match backslashes in property paths. */
|
|
5697
|
-
var reEscapeChar = /\\(\\)?/g;
|
|
5698
|
-
|
|
5699
|
-
/**
|
|
5700
|
-
* Converts `string` to a property path array.
|
|
5701
|
-
*
|
|
5702
|
-
* @private
|
|
5703
|
-
* @param {string} string The string to convert.
|
|
5704
|
-
* @returns {Array} Returns the property path array.
|
|
5705
|
-
*/
|
|
5706
|
-
var stringToPath = memoizeCapped(function(string) {
|
|
5707
|
-
var result = [];
|
|
5708
|
-
if (string.charCodeAt(0) === 46 /* . */) {
|
|
5709
|
-
result.push('');
|
|
5710
|
-
}
|
|
5711
|
-
string.replace(rePropName, function(match, number, quote, subString) {
|
|
5712
|
-
result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
|
|
5713
|
-
});
|
|
5714
|
-
return result;
|
|
5715
|
-
});
|
|
5716
|
-
|
|
5717
|
-
_stringToPath = stringToPath;
|
|
5718
|
-
return _stringToPath;
|
|
5719
|
-
}
|
|
5720
|
-
|
|
5721
|
-
/**
|
|
5722
|
-
* A specialized version of `_.map` for arrays without support for iteratee
|
|
5723
|
-
* shorthands.
|
|
5724
|
-
*
|
|
5725
|
-
* @private
|
|
5726
|
-
* @param {Array} [array] The array to iterate over.
|
|
5727
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
5728
|
-
* @returns {Array} Returns the new mapped array.
|
|
5729
|
-
*/
|
|
5730
|
-
|
|
5731
|
-
var _arrayMap;
|
|
5732
|
-
var hasRequired_arrayMap;
|
|
5733
|
-
|
|
5734
|
-
function require_arrayMap () {
|
|
5735
|
-
if (hasRequired_arrayMap) return _arrayMap;
|
|
5736
|
-
hasRequired_arrayMap = 1;
|
|
5737
|
-
function arrayMap(array, iteratee) {
|
|
5738
|
-
var index = -1,
|
|
5739
|
-
length = array == null ? 0 : array.length,
|
|
5740
|
-
result = Array(length);
|
|
5741
|
-
|
|
5742
|
-
while (++index < length) {
|
|
5743
|
-
result[index] = iteratee(array[index], index, array);
|
|
5744
|
-
}
|
|
5745
|
-
return result;
|
|
5746
|
-
}
|
|
5747
|
-
|
|
5748
|
-
_arrayMap = arrayMap;
|
|
5749
|
-
return _arrayMap;
|
|
5750
|
-
}
|
|
5751
|
-
|
|
5752
|
-
var _baseToString;
|
|
5753
|
-
var hasRequired_baseToString;
|
|
5754
|
-
|
|
5755
|
-
function require_baseToString () {
|
|
5756
|
-
if (hasRequired_baseToString) return _baseToString;
|
|
5757
|
-
hasRequired_baseToString = 1;
|
|
5758
|
-
var Symbol = require_Symbol(),
|
|
5759
|
-
arrayMap = require_arrayMap(),
|
|
5760
|
-
isArray = requireIsArray(),
|
|
5761
|
-
isSymbol = requireIsSymbol();
|
|
5762
|
-
|
|
5763
|
-
/** Used to convert symbols to primitives and strings. */
|
|
5764
|
-
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
5765
|
-
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
5766
|
-
|
|
5767
|
-
/**
|
|
5768
|
-
* The base implementation of `_.toString` which doesn't convert nullish
|
|
5769
|
-
* values to empty strings.
|
|
5770
|
-
*
|
|
5771
|
-
* @private
|
|
5772
|
-
* @param {*} value The value to process.
|
|
5773
|
-
* @returns {string} Returns the string.
|
|
5774
|
-
*/
|
|
5775
|
-
function baseToString(value) {
|
|
5776
|
-
// Exit early for strings to avoid a performance hit in some environments.
|
|
5777
|
-
if (typeof value == 'string') {
|
|
5778
|
-
return value;
|
|
5779
|
-
}
|
|
5780
|
-
if (isArray(value)) {
|
|
5781
|
-
// Recursively convert values (susceptible to call stack limits).
|
|
5782
|
-
return arrayMap(value, baseToString) + '';
|
|
5783
|
-
}
|
|
5784
|
-
if (isSymbol(value)) {
|
|
5785
|
-
return symbolToString ? symbolToString.call(value) : '';
|
|
5786
|
-
}
|
|
5787
|
-
var result = (value + '');
|
|
5788
|
-
return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
|
|
5789
|
-
}
|
|
5790
|
-
|
|
5791
|
-
_baseToString = baseToString;
|
|
5792
|
-
return _baseToString;
|
|
5793
|
-
}
|
|
5794
|
-
|
|
5795
|
-
var toString_1;
|
|
5796
|
-
var hasRequiredToString;
|
|
5797
|
-
|
|
5798
|
-
function requireToString () {
|
|
5799
|
-
if (hasRequiredToString) return toString_1;
|
|
5800
|
-
hasRequiredToString = 1;
|
|
5801
|
-
var baseToString = require_baseToString();
|
|
5802
|
-
|
|
5803
|
-
/**
|
|
5804
|
-
* Converts `value` to a string. An empty string is returned for `null`
|
|
5805
|
-
* and `undefined` values. The sign of `-0` is preserved.
|
|
5806
|
-
*
|
|
5807
|
-
* @static
|
|
5808
|
-
* @memberOf _
|
|
5809
|
-
* @since 4.0.0
|
|
5810
|
-
* @category Lang
|
|
5811
|
-
* @param {*} value The value to convert.
|
|
5812
|
-
* @returns {string} Returns the converted string.
|
|
5813
|
-
* @example
|
|
5814
|
-
*
|
|
5815
|
-
* _.toString(null);
|
|
5816
|
-
* // => ''
|
|
5817
|
-
*
|
|
5818
|
-
* _.toString(-0);
|
|
5819
|
-
* // => '-0'
|
|
5820
|
-
*
|
|
5821
|
-
* _.toString([1, 2, 3]);
|
|
5822
|
-
* // => '1,2,3'
|
|
5823
|
-
*/
|
|
5824
|
-
function toString(value) {
|
|
5825
|
-
return value == null ? '' : baseToString(value);
|
|
5826
|
-
}
|
|
5827
|
-
|
|
5828
|
-
toString_1 = toString;
|
|
5829
|
-
return toString_1;
|
|
5830
|
-
}
|
|
5831
|
-
|
|
5832
|
-
var _castPath;
|
|
5833
|
-
var hasRequired_castPath;
|
|
5834
|
-
|
|
5835
|
-
function require_castPath () {
|
|
5836
|
-
if (hasRequired_castPath) return _castPath;
|
|
5837
|
-
hasRequired_castPath = 1;
|
|
5838
|
-
var isArray = requireIsArray(),
|
|
5839
|
-
isKey = require_isKey(),
|
|
5840
|
-
stringToPath = require_stringToPath(),
|
|
5841
|
-
toString = requireToString();
|
|
5842
|
-
|
|
5843
|
-
/**
|
|
5844
|
-
* Casts `value` to a path array if it's not one.
|
|
5845
|
-
*
|
|
5846
|
-
* @private
|
|
5847
|
-
* @param {*} value The value to inspect.
|
|
5848
|
-
* @param {Object} [object] The object to query keys on.
|
|
5849
|
-
* @returns {Array} Returns the cast property path array.
|
|
5850
|
-
*/
|
|
5851
|
-
function castPath(value, object) {
|
|
5852
|
-
if (isArray(value)) {
|
|
5853
|
-
return value;
|
|
5854
|
-
}
|
|
5855
|
-
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
5856
|
-
}
|
|
5857
|
-
|
|
5858
|
-
_castPath = castPath;
|
|
5859
|
-
return _castPath;
|
|
5860
|
-
}
|
|
5861
|
-
|
|
5862
|
-
var _toKey;
|
|
5863
|
-
var hasRequired_toKey;
|
|
5864
|
-
|
|
5865
|
-
function require_toKey () {
|
|
5866
|
-
if (hasRequired_toKey) return _toKey;
|
|
5867
|
-
hasRequired_toKey = 1;
|
|
5868
|
-
var isSymbol = requireIsSymbol();
|
|
5869
|
-
|
|
5870
|
-
/**
|
|
5871
|
-
* Converts `value` to a string key if it's not a string or symbol.
|
|
5872
|
-
*
|
|
5873
|
-
* @private
|
|
5874
|
-
* @param {*} value The value to inspect.
|
|
5875
|
-
* @returns {string|symbol} Returns the key.
|
|
5876
|
-
*/
|
|
5877
|
-
function toKey(value) {
|
|
5878
|
-
if (typeof value == 'string' || isSymbol(value)) {
|
|
5879
|
-
return value;
|
|
5880
|
-
}
|
|
5881
|
-
var result = (value + '');
|
|
5882
|
-
return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
|
|
5883
|
-
}
|
|
5884
|
-
|
|
5885
|
-
_toKey = toKey;
|
|
5886
|
-
return _toKey;
|
|
5887
|
-
}
|
|
5888
|
-
|
|
5889
|
-
var _baseGet;
|
|
5890
|
-
var hasRequired_baseGet;
|
|
5891
|
-
|
|
5892
|
-
function require_baseGet () {
|
|
5893
|
-
if (hasRequired_baseGet) return _baseGet;
|
|
5894
|
-
hasRequired_baseGet = 1;
|
|
5895
|
-
var castPath = require_castPath(),
|
|
5896
|
-
toKey = require_toKey();
|
|
5897
|
-
|
|
5898
|
-
/**
|
|
5899
|
-
* The base implementation of `_.get` without support for default values.
|
|
5900
|
-
*
|
|
5901
|
-
* @private
|
|
5902
|
-
* @param {Object} object The object to query.
|
|
5903
|
-
* @param {Array|string} path The path of the property to get.
|
|
5904
|
-
* @returns {*} Returns the resolved value.
|
|
5905
|
-
*/
|
|
5906
|
-
function baseGet(object, path) {
|
|
5907
|
-
path = castPath(path, object);
|
|
5908
|
-
|
|
5909
|
-
var index = 0,
|
|
5910
|
-
length = path.length;
|
|
5911
|
-
|
|
5912
|
-
while (object != null && index < length) {
|
|
5913
|
-
object = object[toKey(path[index++])];
|
|
5914
|
-
}
|
|
5915
|
-
return (index && index == length) ? object : undefined;
|
|
5916
|
-
}
|
|
5917
|
-
|
|
5918
|
-
_baseGet = baseGet;
|
|
5919
|
-
return _baseGet;
|
|
5920
|
-
}
|
|
5921
|
-
|
|
5922
|
-
var get_1;
|
|
5923
|
-
var hasRequiredGet;
|
|
5924
|
-
|
|
5925
|
-
function requireGet () {
|
|
5926
|
-
if (hasRequiredGet) return get_1;
|
|
5927
|
-
hasRequiredGet = 1;
|
|
5928
|
-
var baseGet = require_baseGet();
|
|
5929
|
-
|
|
5930
|
-
/**
|
|
5931
|
-
* Gets the value at `path` of `object`. If the resolved value is
|
|
5932
|
-
* `undefined`, the `defaultValue` is returned in its place.
|
|
5933
|
-
*
|
|
5934
|
-
* @static
|
|
5935
|
-
* @memberOf _
|
|
5936
|
-
* @since 3.7.0
|
|
5937
|
-
* @category Object
|
|
5938
|
-
* @param {Object} object The object to query.
|
|
5939
|
-
* @param {Array|string} path The path of the property to get.
|
|
5940
|
-
* @param {*} [defaultValue] The value returned for `undefined` resolved values.
|
|
5941
|
-
* @returns {*} Returns the resolved value.
|
|
5942
|
-
* @example
|
|
5943
|
-
*
|
|
5944
|
-
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
|
|
5945
|
-
*
|
|
5946
|
-
* _.get(object, 'a[0].b.c');
|
|
5947
|
-
* // => 3
|
|
5948
|
-
*
|
|
5949
|
-
* _.get(object, ['a', '0', 'b', 'c']);
|
|
5950
|
-
* // => 3
|
|
5951
|
-
*
|
|
5952
|
-
* _.get(object, 'a.b.c', 'default');
|
|
5953
|
-
* // => 'default'
|
|
5954
|
-
*/
|
|
5955
|
-
function get(object, path, defaultValue) {
|
|
5956
|
-
var result = object == null ? undefined : baseGet(object, path);
|
|
5957
|
-
return result === undefined ? defaultValue : result;
|
|
5958
|
-
}
|
|
5959
|
-
|
|
5960
|
-
get_1 = get;
|
|
5961
|
-
return get_1;
|
|
5962
|
-
}
|
|
5963
|
-
|
|
5964
|
-
requireGet();
|
|
5965
|
-
|
|
5966
|
-
/**
|
|
5967
|
-
* Copies the values of `source` to `array`.
|
|
5968
|
-
*
|
|
5969
|
-
* @private
|
|
5970
|
-
* @param {Array} source The array to copy values from.
|
|
5971
|
-
* @param {Array} [array=[]] The array to copy values to.
|
|
5972
|
-
* @returns {Array} Returns `array`.
|
|
5973
|
-
*/
|
|
5974
|
-
|
|
5975
|
-
var _copyArray;
|
|
5976
|
-
var hasRequired_copyArray;
|
|
5977
|
-
|
|
5978
|
-
function require_copyArray () {
|
|
5979
|
-
if (hasRequired_copyArray) return _copyArray;
|
|
5980
|
-
hasRequired_copyArray = 1;
|
|
5981
|
-
function copyArray(source, array) {
|
|
5982
|
-
var index = -1,
|
|
5983
|
-
length = source.length;
|
|
5984
|
-
|
|
5985
|
-
array || (array = Array(length));
|
|
5986
|
-
while (++index < length) {
|
|
5987
|
-
array[index] = source[index];
|
|
5988
|
-
}
|
|
5989
|
-
return array;
|
|
5990
|
-
}
|
|
5991
|
-
|
|
5992
|
-
_copyArray = copyArray;
|
|
5993
|
-
return _copyArray;
|
|
5994
|
-
}
|
|
5995
|
-
|
|
5996
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
5997
|
-
|
|
5998
|
-
var _baseRandom;
|
|
5999
|
-
var hasRequired_baseRandom;
|
|
6000
|
-
|
|
6001
|
-
function require_baseRandom () {
|
|
6002
|
-
if (hasRequired_baseRandom) return _baseRandom;
|
|
6003
|
-
hasRequired_baseRandom = 1;
|
|
6004
|
-
var nativeFloor = Math.floor,
|
|
6005
|
-
nativeRandom = Math.random;
|
|
6006
|
-
|
|
6007
|
-
/**
|
|
6008
|
-
* The base implementation of `_.random` without support for returning
|
|
6009
|
-
* floating-point numbers.
|
|
6010
|
-
*
|
|
6011
|
-
* @private
|
|
6012
|
-
* @param {number} lower The lower bound.
|
|
6013
|
-
* @param {number} upper The upper bound.
|
|
6014
|
-
* @returns {number} Returns the random number.
|
|
6015
|
-
*/
|
|
6016
|
-
function baseRandom(lower, upper) {
|
|
6017
|
-
return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
|
|
6018
|
-
}
|
|
6019
|
-
|
|
6020
|
-
_baseRandom = baseRandom;
|
|
6021
|
-
return _baseRandom;
|
|
6022
|
-
}
|
|
6023
|
-
|
|
6024
|
-
var _shuffleSelf;
|
|
6025
|
-
var hasRequired_shuffleSelf;
|
|
6026
|
-
|
|
6027
|
-
function require_shuffleSelf () {
|
|
6028
|
-
if (hasRequired_shuffleSelf) return _shuffleSelf;
|
|
6029
|
-
hasRequired_shuffleSelf = 1;
|
|
6030
|
-
var baseRandom = require_baseRandom();
|
|
6031
|
-
|
|
6032
|
-
/**
|
|
6033
|
-
* A specialized version of `_.shuffle` which mutates and sets the size of `array`.
|
|
6034
|
-
*
|
|
6035
|
-
* @private
|
|
6036
|
-
* @param {Array} array The array to shuffle.
|
|
6037
|
-
* @param {number} [size=array.length] The size of `array`.
|
|
6038
|
-
* @returns {Array} Returns `array`.
|
|
6039
|
-
*/
|
|
6040
|
-
function shuffleSelf(array, size) {
|
|
6041
|
-
var index = -1,
|
|
6042
|
-
length = array.length,
|
|
6043
|
-
lastIndex = length - 1;
|
|
6044
|
-
|
|
6045
|
-
size = size === undefined ? length : size;
|
|
6046
|
-
while (++index < size) {
|
|
6047
|
-
var rand = baseRandom(index, lastIndex),
|
|
6048
|
-
value = array[rand];
|
|
6049
|
-
|
|
6050
|
-
array[rand] = array[index];
|
|
6051
|
-
array[index] = value;
|
|
6052
|
-
}
|
|
6053
|
-
array.length = size;
|
|
6054
|
-
return array;
|
|
6055
|
-
}
|
|
6056
|
-
|
|
6057
|
-
_shuffleSelf = shuffleSelf;
|
|
6058
|
-
return _shuffleSelf;
|
|
6059
|
-
}
|
|
6060
|
-
|
|
6061
|
-
var _arrayShuffle;
|
|
6062
|
-
var hasRequired_arrayShuffle;
|
|
6063
|
-
|
|
6064
|
-
function require_arrayShuffle () {
|
|
6065
|
-
if (hasRequired_arrayShuffle) return _arrayShuffle;
|
|
6066
|
-
hasRequired_arrayShuffle = 1;
|
|
6067
|
-
var copyArray = require_copyArray(),
|
|
6068
|
-
shuffleSelf = require_shuffleSelf();
|
|
6069
|
-
|
|
6070
|
-
/**
|
|
6071
|
-
* A specialized version of `_.shuffle` for arrays.
|
|
6072
|
-
*
|
|
6073
|
-
* @private
|
|
6074
|
-
* @param {Array} array The array to shuffle.
|
|
6075
|
-
* @returns {Array} Returns the new shuffled array.
|
|
6076
|
-
*/
|
|
6077
|
-
function arrayShuffle(array) {
|
|
6078
|
-
return shuffleSelf(copyArray(array));
|
|
6079
|
-
}
|
|
6080
|
-
|
|
6081
|
-
_arrayShuffle = arrayShuffle;
|
|
6082
|
-
return _arrayShuffle;
|
|
6083
|
-
}
|
|
6084
|
-
|
|
6085
|
-
var _baseValues;
|
|
6086
|
-
var hasRequired_baseValues;
|
|
6087
|
-
|
|
6088
|
-
function require_baseValues () {
|
|
6089
|
-
if (hasRequired_baseValues) return _baseValues;
|
|
6090
|
-
hasRequired_baseValues = 1;
|
|
6091
|
-
var arrayMap = require_arrayMap();
|
|
6092
|
-
|
|
6093
|
-
/**
|
|
6094
|
-
* The base implementation of `_.values` and `_.valuesIn` which creates an
|
|
6095
|
-
* array of `object` property values corresponding to the property names
|
|
6096
|
-
* of `props`.
|
|
6097
|
-
*
|
|
6098
|
-
* @private
|
|
6099
|
-
* @param {Object} object The object to query.
|
|
6100
|
-
* @param {Array} props The property names to get values for.
|
|
6101
|
-
* @returns {Object} Returns the array of property values.
|
|
6102
|
-
*/
|
|
6103
|
-
function baseValues(object, props) {
|
|
6104
|
-
return arrayMap(props, function(key) {
|
|
6105
|
-
return object[key];
|
|
6106
|
-
});
|
|
6107
|
-
}
|
|
6108
|
-
|
|
6109
|
-
_baseValues = baseValues;
|
|
6110
|
-
return _baseValues;
|
|
6111
|
-
}
|
|
6112
|
-
|
|
6113
|
-
/**
|
|
6114
|
-
* The base implementation of `_.times` without support for iteratee shorthands
|
|
6115
|
-
* or max array length checks.
|
|
6116
|
-
*
|
|
6117
|
-
* @private
|
|
6118
|
-
* @param {number} n The number of times to invoke `iteratee`.
|
|
6119
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
6120
|
-
* @returns {Array} Returns the array of results.
|
|
6121
|
-
*/
|
|
6122
|
-
|
|
6123
|
-
var _baseTimes;
|
|
6124
|
-
var hasRequired_baseTimes;
|
|
6125
|
-
|
|
6126
|
-
function require_baseTimes () {
|
|
6127
|
-
if (hasRequired_baseTimes) return _baseTimes;
|
|
6128
|
-
hasRequired_baseTimes = 1;
|
|
6129
|
-
function baseTimes(n, iteratee) {
|
|
6130
|
-
var index = -1,
|
|
6131
|
-
result = Array(n);
|
|
6132
|
-
|
|
6133
|
-
while (++index < n) {
|
|
6134
|
-
result[index] = iteratee(index);
|
|
6135
|
-
}
|
|
6136
|
-
return result;
|
|
6137
|
-
}
|
|
6138
|
-
|
|
6139
|
-
_baseTimes = baseTimes;
|
|
6140
|
-
return _baseTimes;
|
|
6141
|
-
}
|
|
6142
|
-
|
|
6143
|
-
var _baseIsArguments;
|
|
6144
|
-
var hasRequired_baseIsArguments;
|
|
6145
|
-
|
|
6146
|
-
function require_baseIsArguments () {
|
|
6147
|
-
if (hasRequired_baseIsArguments) return _baseIsArguments;
|
|
6148
|
-
hasRequired_baseIsArguments = 1;
|
|
6149
|
-
var baseGetTag = require_baseGetTag(),
|
|
6150
|
-
isObjectLike = requireIsObjectLike();
|
|
6151
|
-
|
|
6152
|
-
/** `Object#toString` result references. */
|
|
6153
|
-
var argsTag = '[object Arguments]';
|
|
6154
|
-
|
|
6155
|
-
/**
|
|
6156
|
-
* The base implementation of `_.isArguments`.
|
|
6157
|
-
*
|
|
6158
|
-
* @private
|
|
6159
|
-
* @param {*} value The value to check.
|
|
6160
|
-
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
6161
|
-
*/
|
|
6162
|
-
function baseIsArguments(value) {
|
|
6163
|
-
return isObjectLike(value) && baseGetTag(value) == argsTag;
|
|
6164
|
-
}
|
|
6165
|
-
|
|
6166
|
-
_baseIsArguments = baseIsArguments;
|
|
6167
|
-
return _baseIsArguments;
|
|
6168
|
-
}
|
|
6169
|
-
|
|
6170
|
-
var isArguments_1;
|
|
6171
|
-
var hasRequiredIsArguments;
|
|
6172
|
-
|
|
6173
|
-
function requireIsArguments () {
|
|
6174
|
-
if (hasRequiredIsArguments) return isArguments_1;
|
|
6175
|
-
hasRequiredIsArguments = 1;
|
|
6176
|
-
var baseIsArguments = require_baseIsArguments(),
|
|
6177
|
-
isObjectLike = requireIsObjectLike();
|
|
6178
|
-
|
|
6179
|
-
/** Used for built-in method references. */
|
|
6180
|
-
var objectProto = Object.prototype;
|
|
6181
|
-
|
|
6182
|
-
/** Used to check objects for own properties. */
|
|
6183
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
6184
|
-
|
|
6185
|
-
/** Built-in value references. */
|
|
6186
|
-
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
6187
|
-
|
|
6188
|
-
/**
|
|
6189
|
-
* Checks if `value` is likely an `arguments` object.
|
|
6190
|
-
*
|
|
6191
|
-
* @static
|
|
6192
|
-
* @memberOf _
|
|
6193
|
-
* @since 0.1.0
|
|
6194
|
-
* @category Lang
|
|
6195
|
-
* @param {*} value The value to check.
|
|
6196
|
-
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
6197
|
-
* else `false`.
|
|
6198
|
-
* @example
|
|
6199
|
-
*
|
|
6200
|
-
* _.isArguments(function() { return arguments; }());
|
|
6201
|
-
* // => true
|
|
6202
|
-
*
|
|
6203
|
-
* _.isArguments([1, 2, 3]);
|
|
6204
|
-
* // => false
|
|
6205
|
-
*/
|
|
6206
|
-
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
|
6207
|
-
return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
|
|
6208
|
-
!propertyIsEnumerable.call(value, 'callee');
|
|
6209
|
-
};
|
|
6210
|
-
|
|
6211
|
-
isArguments_1 = isArguments;
|
|
6212
|
-
return isArguments_1;
|
|
6213
|
-
}
|
|
6214
|
-
|
|
6215
|
-
var isBuffer = {exports: {}};
|
|
6216
|
-
|
|
6217
|
-
/**
|
|
6218
|
-
* This method returns `false`.
|
|
6219
|
-
*
|
|
6220
|
-
* @static
|
|
6221
|
-
* @memberOf _
|
|
6222
|
-
* @since 4.13.0
|
|
6223
|
-
* @category Util
|
|
6224
|
-
* @returns {boolean} Returns `false`.
|
|
6225
|
-
* @example
|
|
6226
|
-
*
|
|
6227
|
-
* _.times(2, _.stubFalse);
|
|
6228
|
-
* // => [false, false]
|
|
6229
|
-
*/
|
|
6230
|
-
|
|
6231
|
-
var stubFalse_1;
|
|
6232
|
-
var hasRequiredStubFalse;
|
|
6233
|
-
|
|
6234
|
-
function requireStubFalse () {
|
|
6235
|
-
if (hasRequiredStubFalse) return stubFalse_1;
|
|
6236
|
-
hasRequiredStubFalse = 1;
|
|
6237
|
-
function stubFalse() {
|
|
6238
|
-
return false;
|
|
6239
|
-
}
|
|
6240
|
-
|
|
6241
|
-
stubFalse_1 = stubFalse;
|
|
6242
|
-
return stubFalse_1;
|
|
6243
|
-
}
|
|
6244
|
-
|
|
6245
|
-
isBuffer.exports;
|
|
6246
|
-
|
|
6247
|
-
var hasRequiredIsBuffer;
|
|
6248
|
-
|
|
6249
|
-
function requireIsBuffer () {
|
|
6250
|
-
if (hasRequiredIsBuffer) return isBuffer.exports;
|
|
6251
|
-
hasRequiredIsBuffer = 1;
|
|
6252
|
-
(function (module, exports) {
|
|
6253
|
-
var root = require_root(),
|
|
6254
|
-
stubFalse = requireStubFalse();
|
|
6255
|
-
|
|
6256
|
-
/** Detect free variable `exports`. */
|
|
6257
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
6258
|
-
|
|
6259
|
-
/** Detect free variable `module`. */
|
|
6260
|
-
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
6261
|
-
|
|
6262
|
-
/** Detect the popular CommonJS extension `module.exports`. */
|
|
6263
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
6264
|
-
|
|
6265
|
-
/** Built-in value references. */
|
|
6266
|
-
var Buffer = moduleExports ? root.Buffer : undefined;
|
|
6267
|
-
|
|
6268
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
6269
|
-
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
6270
|
-
|
|
6271
|
-
/**
|
|
6272
|
-
* Checks if `value` is a buffer.
|
|
6273
|
-
*
|
|
6274
|
-
* @static
|
|
6275
|
-
* @memberOf _
|
|
6276
|
-
* @since 4.3.0
|
|
6277
|
-
* @category Lang
|
|
6278
|
-
* @param {*} value The value to check.
|
|
6279
|
-
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
6280
|
-
* @example
|
|
6281
|
-
*
|
|
6282
|
-
* _.isBuffer(new Buffer(2));
|
|
6283
|
-
* // => true
|
|
6284
|
-
*
|
|
6285
|
-
* _.isBuffer(new Uint8Array(2));
|
|
6286
|
-
* // => false
|
|
6287
|
-
*/
|
|
6288
|
-
var isBuffer = nativeIsBuffer || stubFalse;
|
|
6289
|
-
|
|
6290
|
-
module.exports = isBuffer;
|
|
6291
|
-
} (isBuffer, isBuffer.exports));
|
|
6292
|
-
return isBuffer.exports;
|
|
6293
|
-
}
|
|
6294
|
-
|
|
6295
|
-
/** Used as references for various `Number` constants. */
|
|
6296
|
-
|
|
6297
|
-
var _isIndex;
|
|
6298
|
-
var hasRequired_isIndex;
|
|
6299
|
-
|
|
6300
|
-
function require_isIndex () {
|
|
6301
|
-
if (hasRequired_isIndex) return _isIndex;
|
|
6302
|
-
hasRequired_isIndex = 1;
|
|
6303
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
6304
|
-
|
|
6305
|
-
/** Used to detect unsigned integer values. */
|
|
6306
|
-
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
6307
|
-
|
|
6308
|
-
/**
|
|
6309
|
-
* Checks if `value` is a valid array-like index.
|
|
6310
|
-
*
|
|
6311
|
-
* @private
|
|
6312
|
-
* @param {*} value The value to check.
|
|
6313
|
-
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
6314
|
-
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
6315
|
-
*/
|
|
6316
|
-
function isIndex(value, length) {
|
|
6317
|
-
var type = typeof value;
|
|
6318
|
-
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
6319
|
-
|
|
6320
|
-
return !!length &&
|
|
6321
|
-
(type == 'number' ||
|
|
6322
|
-
(type != 'symbol' && reIsUint.test(value))) &&
|
|
6323
|
-
(value > -1 && value % 1 == 0 && value < length);
|
|
6324
|
-
}
|
|
6325
|
-
|
|
6326
|
-
_isIndex = isIndex;
|
|
6327
|
-
return _isIndex;
|
|
6328
|
-
}
|
|
6329
|
-
|
|
6330
|
-
/** Used as references for various `Number` constants. */
|
|
6331
|
-
|
|
6332
|
-
var isLength_1;
|
|
6333
|
-
var hasRequiredIsLength;
|
|
6334
|
-
|
|
6335
|
-
function requireIsLength () {
|
|
6336
|
-
if (hasRequiredIsLength) return isLength_1;
|
|
6337
|
-
hasRequiredIsLength = 1;
|
|
6338
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
6339
|
-
|
|
6340
|
-
/**
|
|
6341
|
-
* Checks if `value` is a valid array-like length.
|
|
6342
|
-
*
|
|
6343
|
-
* **Note:** This method is loosely based on
|
|
6344
|
-
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
6345
|
-
*
|
|
6346
|
-
* @static
|
|
6347
|
-
* @memberOf _
|
|
6348
|
-
* @since 4.0.0
|
|
6349
|
-
* @category Lang
|
|
6350
|
-
* @param {*} value The value to check.
|
|
6351
|
-
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
6352
|
-
* @example
|
|
6353
|
-
*
|
|
6354
|
-
* _.isLength(3);
|
|
6355
|
-
* // => true
|
|
6356
|
-
*
|
|
6357
|
-
* _.isLength(Number.MIN_VALUE);
|
|
6358
|
-
* // => false
|
|
6359
|
-
*
|
|
6360
|
-
* _.isLength(Infinity);
|
|
6361
|
-
* // => false
|
|
6362
|
-
*
|
|
6363
|
-
* _.isLength('3');
|
|
6364
|
-
* // => false
|
|
6365
|
-
*/
|
|
6366
|
-
function isLength(value) {
|
|
6367
|
-
return typeof value == 'number' &&
|
|
6368
|
-
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
6369
|
-
}
|
|
6370
|
-
|
|
6371
|
-
isLength_1 = isLength;
|
|
6372
|
-
return isLength_1;
|
|
6373
|
-
}
|
|
6374
|
-
|
|
6375
|
-
var _baseIsTypedArray;
|
|
6376
|
-
var hasRequired_baseIsTypedArray;
|
|
6377
|
-
|
|
6378
|
-
function require_baseIsTypedArray () {
|
|
6379
|
-
if (hasRequired_baseIsTypedArray) return _baseIsTypedArray;
|
|
6380
|
-
hasRequired_baseIsTypedArray = 1;
|
|
6381
|
-
var baseGetTag = require_baseGetTag(),
|
|
6382
|
-
isLength = requireIsLength(),
|
|
6383
|
-
isObjectLike = requireIsObjectLike();
|
|
6384
|
-
|
|
6385
|
-
/** `Object#toString` result references. */
|
|
6386
|
-
var argsTag = '[object Arguments]',
|
|
6387
|
-
arrayTag = '[object Array]',
|
|
6388
|
-
boolTag = '[object Boolean]',
|
|
6389
|
-
dateTag = '[object Date]',
|
|
6390
|
-
errorTag = '[object Error]',
|
|
6391
|
-
funcTag = '[object Function]',
|
|
6392
|
-
mapTag = '[object Map]',
|
|
6393
|
-
numberTag = '[object Number]',
|
|
6394
|
-
objectTag = '[object Object]',
|
|
6395
|
-
regexpTag = '[object RegExp]',
|
|
6396
|
-
setTag = '[object Set]',
|
|
6397
|
-
stringTag = '[object String]',
|
|
6398
|
-
weakMapTag = '[object WeakMap]';
|
|
6399
|
-
|
|
6400
|
-
var arrayBufferTag = '[object ArrayBuffer]',
|
|
6401
|
-
dataViewTag = '[object DataView]',
|
|
6402
|
-
float32Tag = '[object Float32Array]',
|
|
6403
|
-
float64Tag = '[object Float64Array]',
|
|
6404
|
-
int8Tag = '[object Int8Array]',
|
|
6405
|
-
int16Tag = '[object Int16Array]',
|
|
6406
|
-
int32Tag = '[object Int32Array]',
|
|
6407
|
-
uint8Tag = '[object Uint8Array]',
|
|
6408
|
-
uint8ClampedTag = '[object Uint8ClampedArray]',
|
|
6409
|
-
uint16Tag = '[object Uint16Array]',
|
|
6410
|
-
uint32Tag = '[object Uint32Array]';
|
|
6411
|
-
|
|
6412
|
-
/** Used to identify `toStringTag` values of typed arrays. */
|
|
6413
|
-
var typedArrayTags = {};
|
|
6414
|
-
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
|
|
6415
|
-
typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
|
|
6416
|
-
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
|
|
6417
|
-
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
|
|
6418
|
-
typedArrayTags[uint32Tag] = true;
|
|
6419
|
-
typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
|
|
6420
|
-
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
|
|
6421
|
-
typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
|
|
6422
|
-
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
|
|
6423
|
-
typedArrayTags[mapTag] = typedArrayTags[numberTag] =
|
|
6424
|
-
typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
|
|
6425
|
-
typedArrayTags[setTag] = typedArrayTags[stringTag] =
|
|
6426
|
-
typedArrayTags[weakMapTag] = false;
|
|
6427
|
-
|
|
6428
|
-
/**
|
|
6429
|
-
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
6430
|
-
*
|
|
6431
|
-
* @private
|
|
6432
|
-
* @param {*} value The value to check.
|
|
6433
|
-
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
6434
|
-
*/
|
|
6435
|
-
function baseIsTypedArray(value) {
|
|
6436
|
-
return isObjectLike(value) &&
|
|
6437
|
-
isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
6438
|
-
}
|
|
6439
|
-
|
|
6440
|
-
_baseIsTypedArray = baseIsTypedArray;
|
|
6441
|
-
return _baseIsTypedArray;
|
|
6442
|
-
}
|
|
6443
|
-
|
|
6444
|
-
/**
|
|
6445
|
-
* The base implementation of `_.unary` without support for storing metadata.
|
|
6446
|
-
*
|
|
6447
|
-
* @private
|
|
6448
|
-
* @param {Function} func The function to cap arguments for.
|
|
6449
|
-
* @returns {Function} Returns the new capped function.
|
|
6450
|
-
*/
|
|
6451
|
-
|
|
6452
|
-
var _baseUnary;
|
|
6453
|
-
var hasRequired_baseUnary;
|
|
6454
|
-
|
|
6455
|
-
function require_baseUnary () {
|
|
6456
|
-
if (hasRequired_baseUnary) return _baseUnary;
|
|
6457
|
-
hasRequired_baseUnary = 1;
|
|
6458
|
-
function baseUnary(func) {
|
|
6459
|
-
return function(value) {
|
|
6460
|
-
return func(value);
|
|
6461
|
-
};
|
|
6462
|
-
}
|
|
6463
|
-
|
|
6464
|
-
_baseUnary = baseUnary;
|
|
6465
|
-
return _baseUnary;
|
|
6466
|
-
}
|
|
6467
|
-
|
|
6468
|
-
var _nodeUtil = {exports: {}};
|
|
6469
|
-
|
|
6470
|
-
_nodeUtil.exports;
|
|
6471
|
-
|
|
6472
|
-
var hasRequired_nodeUtil;
|
|
6473
|
-
|
|
6474
|
-
function require_nodeUtil () {
|
|
6475
|
-
if (hasRequired_nodeUtil) return _nodeUtil.exports;
|
|
6476
|
-
hasRequired_nodeUtil = 1;
|
|
6477
|
-
(function (module, exports) {
|
|
6478
|
-
var freeGlobal = require_freeGlobal();
|
|
6479
|
-
|
|
6480
|
-
/** Detect free variable `exports`. */
|
|
6481
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
6482
|
-
|
|
6483
|
-
/** Detect free variable `module`. */
|
|
6484
|
-
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
6485
|
-
|
|
6486
|
-
/** Detect the popular CommonJS extension `module.exports`. */
|
|
6487
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
6488
|
-
|
|
6489
|
-
/** Detect free variable `process` from Node.js. */
|
|
6490
|
-
var freeProcess = moduleExports && freeGlobal.process;
|
|
6491
|
-
|
|
6492
|
-
/** Used to access faster Node.js helpers. */
|
|
6493
|
-
var nodeUtil = (function() {
|
|
6494
|
-
try {
|
|
6495
|
-
// Use `util.types` for Node.js 10+.
|
|
6496
|
-
var types = freeModule && freeModule.require && freeModule.require('util').types;
|
|
6497
|
-
|
|
6498
|
-
if (types) {
|
|
6499
|
-
return types;
|
|
6500
|
-
}
|
|
6501
|
-
|
|
6502
|
-
// Legacy `process.binding('util')` for Node.js < 10.
|
|
6503
|
-
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
|
6504
|
-
} catch (e) {}
|
|
6505
|
-
}());
|
|
6506
|
-
|
|
6507
|
-
module.exports = nodeUtil;
|
|
6508
|
-
} (_nodeUtil, _nodeUtil.exports));
|
|
6509
|
-
return _nodeUtil.exports;
|
|
6510
|
-
}
|
|
6511
|
-
|
|
6512
|
-
var isTypedArray_1;
|
|
6513
|
-
var hasRequiredIsTypedArray;
|
|
6514
|
-
|
|
6515
|
-
function requireIsTypedArray () {
|
|
6516
|
-
if (hasRequiredIsTypedArray) return isTypedArray_1;
|
|
6517
|
-
hasRequiredIsTypedArray = 1;
|
|
6518
|
-
var baseIsTypedArray = require_baseIsTypedArray(),
|
|
6519
|
-
baseUnary = require_baseUnary(),
|
|
6520
|
-
nodeUtil = require_nodeUtil();
|
|
6521
|
-
|
|
6522
|
-
/* Node.js helper references. */
|
|
6523
|
-
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
6524
|
-
|
|
6525
|
-
/**
|
|
6526
|
-
* Checks if `value` is classified as a typed array.
|
|
6527
|
-
*
|
|
6528
|
-
* @static
|
|
6529
|
-
* @memberOf _
|
|
6530
|
-
* @since 3.0.0
|
|
6531
|
-
* @category Lang
|
|
6532
|
-
* @param {*} value The value to check.
|
|
6533
|
-
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
6534
|
-
* @example
|
|
6535
|
-
*
|
|
6536
|
-
* _.isTypedArray(new Uint8Array);
|
|
6537
|
-
* // => true
|
|
6538
|
-
*
|
|
6539
|
-
* _.isTypedArray([]);
|
|
6540
|
-
* // => false
|
|
6541
|
-
*/
|
|
6542
|
-
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
6543
|
-
|
|
6544
|
-
isTypedArray_1 = isTypedArray;
|
|
6545
|
-
return isTypedArray_1;
|
|
6546
|
-
}
|
|
6547
|
-
|
|
6548
|
-
var _arrayLikeKeys;
|
|
6549
|
-
var hasRequired_arrayLikeKeys;
|
|
6550
|
-
|
|
6551
|
-
function require_arrayLikeKeys () {
|
|
6552
|
-
if (hasRequired_arrayLikeKeys) return _arrayLikeKeys;
|
|
6553
|
-
hasRequired_arrayLikeKeys = 1;
|
|
6554
|
-
var baseTimes = require_baseTimes(),
|
|
6555
|
-
isArguments = requireIsArguments(),
|
|
6556
|
-
isArray = requireIsArray(),
|
|
6557
|
-
isBuffer = requireIsBuffer(),
|
|
6558
|
-
isIndex = require_isIndex(),
|
|
6559
|
-
isTypedArray = requireIsTypedArray();
|
|
6560
|
-
|
|
6561
|
-
/** Used for built-in method references. */
|
|
6562
|
-
var objectProto = Object.prototype;
|
|
6563
|
-
|
|
6564
|
-
/** Used to check objects for own properties. */
|
|
6565
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
6566
|
-
|
|
6567
|
-
/**
|
|
6568
|
-
* Creates an array of the enumerable property names of the array-like `value`.
|
|
6569
|
-
*
|
|
6570
|
-
* @private
|
|
6571
|
-
* @param {*} value The value to query.
|
|
6572
|
-
* @param {boolean} inherited Specify returning inherited property names.
|
|
6573
|
-
* @returns {Array} Returns the array of property names.
|
|
6574
|
-
*/
|
|
6575
|
-
function arrayLikeKeys(value, inherited) {
|
|
6576
|
-
var isArr = isArray(value),
|
|
6577
|
-
isArg = !isArr && isArguments(value),
|
|
6578
|
-
isBuff = !isArr && !isArg && isBuffer(value),
|
|
6579
|
-
isType = !isArr && !isArg && !isBuff && isTypedArray(value),
|
|
6580
|
-
skipIndexes = isArr || isArg || isBuff || isType,
|
|
6581
|
-
result = skipIndexes ? baseTimes(value.length, String) : [],
|
|
6582
|
-
length = result.length;
|
|
6583
|
-
|
|
6584
|
-
for (var key in value) {
|
|
6585
|
-
if ((inherited || hasOwnProperty.call(value, key)) &&
|
|
6586
|
-
!(skipIndexes && (
|
|
6587
|
-
// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
6588
|
-
key == 'length' ||
|
|
6589
|
-
// Node.js 0.10 has enumerable non-index properties on buffers.
|
|
6590
|
-
(isBuff && (key == 'offset' || key == 'parent')) ||
|
|
6591
|
-
// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
6592
|
-
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
|
|
6593
|
-
// Skip index properties.
|
|
6594
|
-
isIndex(key, length)
|
|
6595
|
-
))) {
|
|
6596
|
-
result.push(key);
|
|
6597
|
-
}
|
|
6598
|
-
}
|
|
6599
|
-
return result;
|
|
6600
|
-
}
|
|
6601
|
-
|
|
6602
|
-
_arrayLikeKeys = arrayLikeKeys;
|
|
6603
|
-
return _arrayLikeKeys;
|
|
6604
|
-
}
|
|
6605
|
-
|
|
6606
|
-
/** Used for built-in method references. */
|
|
6607
|
-
|
|
6608
|
-
var _isPrototype;
|
|
6609
|
-
var hasRequired_isPrototype;
|
|
6610
|
-
|
|
6611
|
-
function require_isPrototype () {
|
|
6612
|
-
if (hasRequired_isPrototype) return _isPrototype;
|
|
6613
|
-
hasRequired_isPrototype = 1;
|
|
6614
|
-
var objectProto = Object.prototype;
|
|
6615
|
-
|
|
6616
|
-
/**
|
|
6617
|
-
* Checks if `value` is likely a prototype object.
|
|
6618
|
-
*
|
|
6619
|
-
* @private
|
|
6620
|
-
* @param {*} value The value to check.
|
|
6621
|
-
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
6622
|
-
*/
|
|
6623
|
-
function isPrototype(value) {
|
|
6624
|
-
var Ctor = value && value.constructor,
|
|
6625
|
-
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
|
|
6626
|
-
|
|
6627
|
-
return value === proto;
|
|
6628
|
-
}
|
|
6629
|
-
|
|
6630
|
-
_isPrototype = isPrototype;
|
|
6631
|
-
return _isPrototype;
|
|
6632
|
-
}
|
|
6633
|
-
|
|
6634
|
-
/**
|
|
6635
|
-
* Creates a unary function that invokes `func` with its argument transformed.
|
|
6636
|
-
*
|
|
6637
|
-
* @private
|
|
6638
|
-
* @param {Function} func The function to wrap.
|
|
6639
|
-
* @param {Function} transform The argument transform.
|
|
6640
|
-
* @returns {Function} Returns the new function.
|
|
6641
|
-
*/
|
|
6642
|
-
|
|
6643
|
-
var _overArg;
|
|
6644
|
-
var hasRequired_overArg;
|
|
6645
|
-
|
|
6646
|
-
function require_overArg () {
|
|
6647
|
-
if (hasRequired_overArg) return _overArg;
|
|
6648
|
-
hasRequired_overArg = 1;
|
|
6649
|
-
function overArg(func, transform) {
|
|
6650
|
-
return function(arg) {
|
|
6651
|
-
return func(transform(arg));
|
|
6652
|
-
};
|
|
6653
|
-
}
|
|
6654
|
-
|
|
6655
|
-
_overArg = overArg;
|
|
6656
|
-
return _overArg;
|
|
6657
|
-
}
|
|
6658
|
-
|
|
6659
|
-
var _nativeKeys;
|
|
6660
|
-
var hasRequired_nativeKeys;
|
|
6661
|
-
|
|
6662
|
-
function require_nativeKeys () {
|
|
6663
|
-
if (hasRequired_nativeKeys) return _nativeKeys;
|
|
6664
|
-
hasRequired_nativeKeys = 1;
|
|
6665
|
-
var overArg = require_overArg();
|
|
6666
|
-
|
|
6667
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
6668
|
-
var nativeKeys = overArg(Object.keys, Object);
|
|
6669
|
-
|
|
6670
|
-
_nativeKeys = nativeKeys;
|
|
6671
|
-
return _nativeKeys;
|
|
6672
|
-
}
|
|
6673
|
-
|
|
6674
|
-
var _baseKeys;
|
|
6675
|
-
var hasRequired_baseKeys;
|
|
6676
|
-
|
|
6677
|
-
function require_baseKeys () {
|
|
6678
|
-
if (hasRequired_baseKeys) return _baseKeys;
|
|
6679
|
-
hasRequired_baseKeys = 1;
|
|
6680
|
-
var isPrototype = require_isPrototype(),
|
|
6681
|
-
nativeKeys = require_nativeKeys();
|
|
6682
|
-
|
|
6683
|
-
/** Used for built-in method references. */
|
|
6684
|
-
var objectProto = Object.prototype;
|
|
6685
|
-
|
|
6686
|
-
/** Used to check objects for own properties. */
|
|
6687
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
6688
|
-
|
|
6689
|
-
/**
|
|
6690
|
-
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
6691
|
-
*
|
|
6692
|
-
* @private
|
|
6693
|
-
* @param {Object} object The object to query.
|
|
6694
|
-
* @returns {Array} Returns the array of property names.
|
|
6695
|
-
*/
|
|
6696
|
-
function baseKeys(object) {
|
|
6697
|
-
if (!isPrototype(object)) {
|
|
6698
|
-
return nativeKeys(object);
|
|
6699
|
-
}
|
|
6700
|
-
var result = [];
|
|
6701
|
-
for (var key in Object(object)) {
|
|
6702
|
-
if (hasOwnProperty.call(object, key) && key != 'constructor') {
|
|
6703
|
-
result.push(key);
|
|
6704
|
-
}
|
|
6705
|
-
}
|
|
6706
|
-
return result;
|
|
6707
|
-
}
|
|
6708
|
-
|
|
6709
|
-
_baseKeys = baseKeys;
|
|
6710
|
-
return _baseKeys;
|
|
6711
|
-
}
|
|
6712
|
-
|
|
6713
|
-
var isArrayLike_1;
|
|
6714
|
-
var hasRequiredIsArrayLike;
|
|
6715
|
-
|
|
6716
|
-
function requireIsArrayLike () {
|
|
6717
|
-
if (hasRequiredIsArrayLike) return isArrayLike_1;
|
|
6718
|
-
hasRequiredIsArrayLike = 1;
|
|
6719
|
-
var isFunction = requireIsFunction(),
|
|
6720
|
-
isLength = requireIsLength();
|
|
6721
|
-
|
|
6722
|
-
/**
|
|
6723
|
-
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
6724
|
-
* not a function and has a `value.length` that's an integer greater than or
|
|
6725
|
-
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
6726
|
-
*
|
|
6727
|
-
* @static
|
|
6728
|
-
* @memberOf _
|
|
6729
|
-
* @since 4.0.0
|
|
6730
|
-
* @category Lang
|
|
6731
|
-
* @param {*} value The value to check.
|
|
6732
|
-
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
6733
|
-
* @example
|
|
6734
|
-
*
|
|
6735
|
-
* _.isArrayLike([1, 2, 3]);
|
|
6736
|
-
* // => true
|
|
6737
|
-
*
|
|
6738
|
-
* _.isArrayLike(document.body.children);
|
|
6739
|
-
* // => true
|
|
6740
|
-
*
|
|
6741
|
-
* _.isArrayLike('abc');
|
|
6742
|
-
* // => true
|
|
6743
|
-
*
|
|
6744
|
-
* _.isArrayLike(_.noop);
|
|
6745
|
-
* // => false
|
|
6746
|
-
*/
|
|
6747
|
-
function isArrayLike(value) {
|
|
6748
|
-
return value != null && isLength(value.length) && !isFunction(value);
|
|
6749
|
-
}
|
|
6750
|
-
|
|
6751
|
-
isArrayLike_1 = isArrayLike;
|
|
6752
|
-
return isArrayLike_1;
|
|
6753
|
-
}
|
|
6754
|
-
|
|
6755
|
-
var keys_1;
|
|
6756
|
-
var hasRequiredKeys;
|
|
6757
|
-
|
|
6758
|
-
function requireKeys () {
|
|
6759
|
-
if (hasRequiredKeys) return keys_1;
|
|
6760
|
-
hasRequiredKeys = 1;
|
|
6761
|
-
var arrayLikeKeys = require_arrayLikeKeys(),
|
|
6762
|
-
baseKeys = require_baseKeys(),
|
|
6763
|
-
isArrayLike = requireIsArrayLike();
|
|
6764
|
-
|
|
6765
|
-
/**
|
|
6766
|
-
* Creates an array of the own enumerable property names of `object`.
|
|
6767
|
-
*
|
|
6768
|
-
* **Note:** Non-object values are coerced to objects. See the
|
|
6769
|
-
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
6770
|
-
* for more details.
|
|
6771
|
-
*
|
|
6772
|
-
* @static
|
|
6773
|
-
* @since 0.1.0
|
|
6774
|
-
* @memberOf _
|
|
6775
|
-
* @category Object
|
|
6776
|
-
* @param {Object} object The object to query.
|
|
6777
|
-
* @returns {Array} Returns the array of property names.
|
|
6778
|
-
* @example
|
|
6779
|
-
*
|
|
6780
|
-
* function Foo() {
|
|
6781
|
-
* this.a = 1;
|
|
6782
|
-
* this.b = 2;
|
|
6783
|
-
* }
|
|
6784
|
-
*
|
|
6785
|
-
* Foo.prototype.c = 3;
|
|
6786
|
-
*
|
|
6787
|
-
* _.keys(new Foo);
|
|
6788
|
-
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
6789
|
-
*
|
|
6790
|
-
* _.keys('hi');
|
|
6791
|
-
* // => ['0', '1']
|
|
6792
|
-
*/
|
|
6793
|
-
function keys(object) {
|
|
6794
|
-
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
6795
|
-
}
|
|
6796
|
-
|
|
6797
|
-
keys_1 = keys;
|
|
6798
|
-
return keys_1;
|
|
6799
|
-
}
|
|
6800
|
-
|
|
6801
|
-
var values_1;
|
|
6802
|
-
var hasRequiredValues;
|
|
6803
|
-
|
|
6804
|
-
function requireValues () {
|
|
6805
|
-
if (hasRequiredValues) return values_1;
|
|
6806
|
-
hasRequiredValues = 1;
|
|
6807
|
-
var baseValues = require_baseValues(),
|
|
6808
|
-
keys = requireKeys();
|
|
6809
|
-
|
|
6810
|
-
/**
|
|
6811
|
-
* Creates an array of the own enumerable string keyed property values of `object`.
|
|
6812
|
-
*
|
|
6813
|
-
* **Note:** Non-object values are coerced to objects.
|
|
6814
|
-
*
|
|
6815
|
-
* @static
|
|
6816
|
-
* @since 0.1.0
|
|
6817
|
-
* @memberOf _
|
|
6818
|
-
* @category Object
|
|
6819
|
-
* @param {Object} object The object to query.
|
|
6820
|
-
* @returns {Array} Returns the array of property values.
|
|
6821
|
-
* @example
|
|
6822
|
-
*
|
|
6823
|
-
* function Foo() {
|
|
6824
|
-
* this.a = 1;
|
|
6825
|
-
* this.b = 2;
|
|
6826
|
-
* }
|
|
6827
|
-
*
|
|
6828
|
-
* Foo.prototype.c = 3;
|
|
6829
|
-
*
|
|
6830
|
-
* _.values(new Foo);
|
|
6831
|
-
* // => [1, 2] (iteration order is not guaranteed)
|
|
6832
|
-
*
|
|
6833
|
-
* _.values('hi');
|
|
6834
|
-
* // => ['h', 'i']
|
|
6835
|
-
*/
|
|
6836
|
-
function values(object) {
|
|
6837
|
-
return object == null ? [] : baseValues(object, keys(object));
|
|
6838
|
-
}
|
|
6839
|
-
|
|
6840
|
-
values_1 = values;
|
|
6841
|
-
return values_1;
|
|
6842
|
-
}
|
|
6843
|
-
|
|
6844
|
-
var _baseShuffle;
|
|
6845
|
-
var hasRequired_baseShuffle;
|
|
6846
|
-
|
|
6847
|
-
function require_baseShuffle () {
|
|
6848
|
-
if (hasRequired_baseShuffle) return _baseShuffle;
|
|
6849
|
-
hasRequired_baseShuffle = 1;
|
|
6850
|
-
var shuffleSelf = require_shuffleSelf(),
|
|
6851
|
-
values = requireValues();
|
|
6852
|
-
|
|
6853
|
-
/**
|
|
6854
|
-
* The base implementation of `_.shuffle`.
|
|
6855
|
-
*
|
|
6856
|
-
* @private
|
|
6857
|
-
* @param {Array|Object} collection The collection to shuffle.
|
|
6858
|
-
* @returns {Array} Returns the new shuffled array.
|
|
6859
|
-
*/
|
|
6860
|
-
function baseShuffle(collection) {
|
|
6861
|
-
return shuffleSelf(values(collection));
|
|
6862
|
-
}
|
|
6863
|
-
|
|
6864
|
-
_baseShuffle = baseShuffle;
|
|
6865
|
-
return _baseShuffle;
|
|
6866
|
-
}
|
|
6867
|
-
|
|
6868
|
-
var shuffle_1;
|
|
6869
|
-
var hasRequiredShuffle;
|
|
6870
|
-
|
|
6871
|
-
function requireShuffle () {
|
|
6872
|
-
if (hasRequiredShuffle) return shuffle_1;
|
|
6873
|
-
hasRequiredShuffle = 1;
|
|
6874
|
-
var arrayShuffle = require_arrayShuffle(),
|
|
6875
|
-
baseShuffle = require_baseShuffle(),
|
|
6876
|
-
isArray = requireIsArray();
|
|
6877
|
-
|
|
6878
|
-
/**
|
|
6879
|
-
* Creates an array of shuffled values, using a version of the
|
|
6880
|
-
* [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
|
|
6881
|
-
*
|
|
6882
|
-
* @static
|
|
6883
|
-
* @memberOf _
|
|
6884
|
-
* @since 0.1.0
|
|
6885
|
-
* @category Collection
|
|
6886
|
-
* @param {Array|Object} collection The collection to shuffle.
|
|
6887
|
-
* @returns {Array} Returns the new shuffled array.
|
|
6888
|
-
* @example
|
|
6889
|
-
*
|
|
6890
|
-
* _.shuffle([1, 2, 3, 4]);
|
|
6891
|
-
* // => [4, 1, 3, 2]
|
|
6892
|
-
*/
|
|
6893
|
-
function shuffle(collection) {
|
|
6894
|
-
var func = isArray(collection) ? arrayShuffle : baseShuffle;
|
|
6895
|
-
return func(collection);
|
|
6896
|
-
}
|
|
6897
|
-
|
|
6898
|
-
shuffle_1 = shuffle;
|
|
6899
|
-
return shuffle_1;
|
|
6900
|
-
}
|
|
6901
|
-
|
|
6902
|
-
requireShuffle();
|
|
6903
|
-
|
|
6904
|
-
var _DataView;
|
|
6905
|
-
var hasRequired_DataView;
|
|
6906
|
-
|
|
6907
|
-
function require_DataView () {
|
|
6908
|
-
if (hasRequired_DataView) return _DataView;
|
|
6909
|
-
hasRequired_DataView = 1;
|
|
6910
|
-
var getNative = require_getNative(),
|
|
6911
|
-
root = require_root();
|
|
6912
|
-
|
|
6913
|
-
/* Built-in method references that are verified to be native. */
|
|
6914
|
-
var DataView = getNative(root, 'DataView');
|
|
6915
|
-
|
|
6916
|
-
_DataView = DataView;
|
|
6917
|
-
return _DataView;
|
|
6918
|
-
}
|
|
6919
|
-
|
|
6920
|
-
var _Promise;
|
|
6921
|
-
var hasRequired_Promise;
|
|
6922
|
-
|
|
6923
|
-
function require_Promise () {
|
|
6924
|
-
if (hasRequired_Promise) return _Promise;
|
|
6925
|
-
hasRequired_Promise = 1;
|
|
6926
|
-
var getNative = require_getNative(),
|
|
6927
|
-
root = require_root();
|
|
6928
|
-
|
|
6929
|
-
/* Built-in method references that are verified to be native. */
|
|
6930
|
-
var Promise = getNative(root, 'Promise');
|
|
6931
|
-
|
|
6932
|
-
_Promise = Promise;
|
|
6933
|
-
return _Promise;
|
|
6934
|
-
}
|
|
6935
|
-
|
|
6936
|
-
var _Set;
|
|
6937
|
-
var hasRequired_Set;
|
|
6938
|
-
|
|
6939
|
-
function require_Set () {
|
|
6940
|
-
if (hasRequired_Set) return _Set;
|
|
6941
|
-
hasRequired_Set = 1;
|
|
6942
|
-
var getNative = require_getNative(),
|
|
6943
|
-
root = require_root();
|
|
6944
|
-
|
|
6945
|
-
/* Built-in method references that are verified to be native. */
|
|
6946
|
-
var Set = getNative(root, 'Set');
|
|
6947
|
-
|
|
6948
|
-
_Set = Set;
|
|
6949
|
-
return _Set;
|
|
6950
|
-
}
|
|
6951
|
-
|
|
6952
|
-
var _WeakMap;
|
|
6953
|
-
var hasRequired_WeakMap;
|
|
6954
|
-
|
|
6955
|
-
function require_WeakMap () {
|
|
6956
|
-
if (hasRequired_WeakMap) return _WeakMap;
|
|
6957
|
-
hasRequired_WeakMap = 1;
|
|
6958
|
-
var getNative = require_getNative(),
|
|
6959
|
-
root = require_root();
|
|
6960
|
-
|
|
6961
|
-
/* Built-in method references that are verified to be native. */
|
|
6962
|
-
var WeakMap = getNative(root, 'WeakMap');
|
|
6963
|
-
|
|
6964
|
-
_WeakMap = WeakMap;
|
|
6965
|
-
return _WeakMap;
|
|
6966
|
-
}
|
|
6967
|
-
|
|
6968
|
-
var _getTag;
|
|
6969
|
-
var hasRequired_getTag;
|
|
6970
|
-
|
|
6971
|
-
function require_getTag () {
|
|
6972
|
-
if (hasRequired_getTag) return _getTag;
|
|
6973
|
-
hasRequired_getTag = 1;
|
|
6974
|
-
var DataView = require_DataView(),
|
|
6975
|
-
Map = require_Map(),
|
|
6976
|
-
Promise = require_Promise(),
|
|
6977
|
-
Set = require_Set(),
|
|
6978
|
-
WeakMap = require_WeakMap(),
|
|
6979
|
-
baseGetTag = require_baseGetTag(),
|
|
6980
|
-
toSource = require_toSource();
|
|
6981
|
-
|
|
6982
|
-
/** `Object#toString` result references. */
|
|
6983
|
-
var mapTag = '[object Map]',
|
|
6984
|
-
objectTag = '[object Object]',
|
|
6985
|
-
promiseTag = '[object Promise]',
|
|
6986
|
-
setTag = '[object Set]',
|
|
6987
|
-
weakMapTag = '[object WeakMap]';
|
|
6988
|
-
|
|
6989
|
-
var dataViewTag = '[object DataView]';
|
|
6990
|
-
|
|
6991
|
-
/** Used to detect maps, sets, and weakmaps. */
|
|
6992
|
-
var dataViewCtorString = toSource(DataView),
|
|
6993
|
-
mapCtorString = toSource(Map),
|
|
6994
|
-
promiseCtorString = toSource(Promise),
|
|
6995
|
-
setCtorString = toSource(Set),
|
|
6996
|
-
weakMapCtorString = toSource(WeakMap);
|
|
6997
|
-
|
|
6998
|
-
/**
|
|
6999
|
-
* Gets the `toStringTag` of `value`.
|
|
7000
|
-
*
|
|
7001
|
-
* @private
|
|
7002
|
-
* @param {*} value The value to query.
|
|
7003
|
-
* @returns {string} Returns the `toStringTag`.
|
|
7004
|
-
*/
|
|
7005
|
-
var getTag = baseGetTag;
|
|
7006
|
-
|
|
7007
|
-
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
|
7008
|
-
if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|
7009
|
-
(Map && getTag(new Map) != mapTag) ||
|
|
7010
|
-
(Promise && getTag(Promise.resolve()) != promiseTag) ||
|
|
7011
|
-
(Set && getTag(new Set) != setTag) ||
|
|
7012
|
-
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
|
|
7013
|
-
getTag = function(value) {
|
|
7014
|
-
var result = baseGetTag(value),
|
|
7015
|
-
Ctor = result == objectTag ? value.constructor : undefined,
|
|
7016
|
-
ctorString = Ctor ? toSource(Ctor) : '';
|
|
7017
|
-
|
|
7018
|
-
if (ctorString) {
|
|
7019
|
-
switch (ctorString) {
|
|
7020
|
-
case dataViewCtorString: return dataViewTag;
|
|
7021
|
-
case mapCtorString: return mapTag;
|
|
7022
|
-
case promiseCtorString: return promiseTag;
|
|
7023
|
-
case setCtorString: return setTag;
|
|
7024
|
-
case weakMapCtorString: return weakMapTag;
|
|
7025
|
-
}
|
|
7026
|
-
}
|
|
7027
|
-
return result;
|
|
7028
|
-
};
|
|
7029
|
-
}
|
|
7030
|
-
|
|
7031
|
-
_getTag = getTag;
|
|
7032
|
-
return _getTag;
|
|
7033
|
-
}
|
|
7034
|
-
|
|
7035
|
-
var isEmpty_1;
|
|
7036
|
-
var hasRequiredIsEmpty;
|
|
7037
|
-
|
|
7038
|
-
function requireIsEmpty () {
|
|
7039
|
-
if (hasRequiredIsEmpty) return isEmpty_1;
|
|
7040
|
-
hasRequiredIsEmpty = 1;
|
|
7041
|
-
var baseKeys = require_baseKeys(),
|
|
7042
|
-
getTag = require_getTag(),
|
|
7043
|
-
isArguments = requireIsArguments(),
|
|
7044
|
-
isArray = requireIsArray(),
|
|
7045
|
-
isArrayLike = requireIsArrayLike(),
|
|
7046
|
-
isBuffer = requireIsBuffer(),
|
|
7047
|
-
isPrototype = require_isPrototype(),
|
|
7048
|
-
isTypedArray = requireIsTypedArray();
|
|
7049
|
-
|
|
7050
|
-
/** `Object#toString` result references. */
|
|
7051
|
-
var mapTag = '[object Map]',
|
|
7052
|
-
setTag = '[object Set]';
|
|
7053
|
-
|
|
7054
|
-
/** Used for built-in method references. */
|
|
7055
|
-
var objectProto = Object.prototype;
|
|
7056
|
-
|
|
7057
|
-
/** Used to check objects for own properties. */
|
|
7058
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
7059
|
-
|
|
7060
|
-
/**
|
|
7061
|
-
* Checks if `value` is an empty object, collection, map, or set.
|
|
7062
|
-
*
|
|
7063
|
-
* Objects are considered empty if they have no own enumerable string keyed
|
|
7064
|
-
* properties.
|
|
7065
|
-
*
|
|
7066
|
-
* Array-like values such as `arguments` objects, arrays, buffers, strings, or
|
|
7067
|
-
* jQuery-like collections are considered empty if they have a `length` of `0`.
|
|
7068
|
-
* Similarly, maps and sets are considered empty if they have a `size` of `0`.
|
|
7069
|
-
*
|
|
7070
|
-
* @static
|
|
7071
|
-
* @memberOf _
|
|
7072
|
-
* @since 0.1.0
|
|
7073
|
-
* @category Lang
|
|
7074
|
-
* @param {*} value The value to check.
|
|
7075
|
-
* @returns {boolean} Returns `true` if `value` is empty, else `false`.
|
|
7076
|
-
* @example
|
|
7077
|
-
*
|
|
7078
|
-
* _.isEmpty(null);
|
|
7079
|
-
* // => true
|
|
7080
|
-
*
|
|
7081
|
-
* _.isEmpty(true);
|
|
7082
|
-
* // => true
|
|
7083
|
-
*
|
|
7084
|
-
* _.isEmpty(1);
|
|
7085
|
-
* // => true
|
|
7086
|
-
*
|
|
7087
|
-
* _.isEmpty([1, 2, 3]);
|
|
7088
|
-
* // => false
|
|
7089
|
-
*
|
|
7090
|
-
* _.isEmpty({ 'a': 1 });
|
|
7091
|
-
* // => false
|
|
7092
|
-
*/
|
|
7093
|
-
function isEmpty(value) {
|
|
7094
|
-
if (value == null) {
|
|
7095
|
-
return true;
|
|
7096
|
-
}
|
|
7097
|
-
if (isArrayLike(value) &&
|
|
7098
|
-
(isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
|
|
7099
|
-
isBuffer(value) || isTypedArray(value) || isArguments(value))) {
|
|
7100
|
-
return !value.length;
|
|
7101
|
-
}
|
|
7102
|
-
var tag = getTag(value);
|
|
7103
|
-
if (tag == mapTag || tag == setTag) {
|
|
7104
|
-
return !value.size;
|
|
7105
|
-
}
|
|
7106
|
-
if (isPrototype(value)) {
|
|
7107
|
-
return !baseKeys(value).length;
|
|
7108
|
-
}
|
|
7109
|
-
for (var key in value) {
|
|
7110
|
-
if (hasOwnProperty.call(value, key)) {
|
|
7111
|
-
return false;
|
|
7112
|
-
}
|
|
7113
|
-
}
|
|
7114
|
-
return true;
|
|
7115
|
-
}
|
|
7116
|
-
|
|
7117
|
-
isEmpty_1 = isEmpty;
|
|
7118
|
-
return isEmpty_1;
|
|
7119
|
-
}
|
|
7120
|
-
|
|
7121
|
-
requireIsEmpty();
|
|
7122
|
-
|
|
7123
|
-
const lg = n => console[n].bind(console, 'controller-utils:');
|
|
7124
|
-
|
|
7125
|
-
lg('debug');
|
|
7126
|
-
lg('log');
|
|
7127
|
-
lg('warn');
|
|
7128
|
-
lg('error');
|
|
7129
|
-
|
|
7130
|
-
function _extends() {
|
|
7131
|
-
_extends = Object.assign || function (target) {
|
|
7132
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
7133
|
-
var source = arguments[i];
|
|
7134
|
-
|
|
7135
|
-
for (var key in source) {
|
|
7136
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7137
|
-
target[key] = source[key];
|
|
7138
|
-
}
|
|
7139
|
-
}
|
|
7140
|
-
}
|
|
7141
|
-
|
|
7142
|
-
return target;
|
|
7143
|
-
};
|
|
7144
|
-
|
|
7145
|
-
return _extends.apply(this, arguments);
|
|
7146
|
-
}
|
|
7147
|
-
|
|
7148
|
-
function _typeof(obj) {
|
|
7149
|
-
"@babel/helpers - typeof";
|
|
7150
|
-
|
|
7151
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
7152
|
-
return typeof obj;
|
|
7153
|
-
} : function (obj) {
|
|
7154
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
7155
|
-
}, _typeof(obj);
|
|
7156
|
-
}
|
|
7157
|
-
|
|
7158
|
-
function _classCallCheck(instance, Constructor) {
|
|
7159
|
-
if (!(instance instanceof Constructor)) {
|
|
7160
|
-
throw new TypeError("Cannot call a class as a function");
|
|
7161
|
-
}
|
|
7162
|
-
}
|
|
7163
|
-
|
|
7164
|
-
function _toPrimitive(input, hint) {
|
|
7165
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
7166
|
-
var prim = input[Symbol.toPrimitive];
|
|
7167
|
-
if (prim !== undefined) {
|
|
7168
|
-
var res = prim.call(input, hint);
|
|
7169
|
-
if (_typeof(res) !== "object") return res;
|
|
7170
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
7171
|
-
}
|
|
7172
|
-
return (hint === "string" ? String : Number)(input);
|
|
7173
|
-
}
|
|
7174
|
-
|
|
7175
|
-
function _toPropertyKey(arg) {
|
|
7176
|
-
var key = _toPrimitive(arg, "string");
|
|
7177
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
7178
|
-
}
|
|
7179
|
-
|
|
7180
|
-
function _defineProperties(target, props) {
|
|
7181
|
-
for (var i = 0; i < props.length; i++) {
|
|
7182
|
-
var descriptor = props[i];
|
|
7183
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
7184
|
-
descriptor.configurable = true;
|
|
7185
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
7186
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
7187
|
-
}
|
|
7188
|
-
}
|
|
7189
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
7190
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
7191
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
7192
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
7193
|
-
writable: false
|
|
7194
|
-
});
|
|
7195
|
-
return Constructor;
|
|
7196
|
-
}
|
|
7197
|
-
|
|
7198
|
-
function _assertThisInitialized(self) {
|
|
7199
|
-
if (self === void 0) {
|
|
7200
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7201
|
-
}
|
|
7202
|
-
return self;
|
|
7203
|
-
}
|
|
7204
|
-
|
|
7205
|
-
function _setPrototypeOf(o, p) {
|
|
7206
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
7207
|
-
o.__proto__ = p;
|
|
7208
|
-
return o;
|
|
7209
|
-
};
|
|
7210
|
-
return _setPrototypeOf(o, p);
|
|
7211
|
-
}
|
|
7212
|
-
|
|
7213
|
-
function _inherits(subClass, superClass) {
|
|
7214
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
7215
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
7216
|
-
}
|
|
7217
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
7218
|
-
constructor: {
|
|
7219
|
-
value: subClass,
|
|
7220
|
-
writable: true,
|
|
7221
|
-
configurable: true
|
|
7222
|
-
}
|
|
7223
|
-
});
|
|
7224
|
-
Object.defineProperty(subClass, "prototype", {
|
|
7225
|
-
writable: false
|
|
7226
|
-
});
|
|
7227
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
7228
|
-
}
|
|
7229
|
-
|
|
7230
|
-
function _possibleConstructorReturn(self, call) {
|
|
7231
|
-
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
7232
|
-
return call;
|
|
7233
|
-
} else if (call !== void 0) {
|
|
7234
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
7235
|
-
}
|
|
7236
|
-
return _assertThisInitialized(self);
|
|
7237
|
-
}
|
|
7238
|
-
|
|
7239
|
-
function _getPrototypeOf(o) {
|
|
7240
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
7241
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
7242
|
-
};
|
|
7243
|
-
return _getPrototypeOf(o);
|
|
7244
|
-
}
|
|
7245
|
-
|
|
7246
|
-
function _defineProperty(obj, key, value) {
|
|
7247
|
-
key = _toPropertyKey(key);
|
|
7248
|
-
if (key in obj) {
|
|
7249
|
-
Object.defineProperty(obj, key, {
|
|
7250
|
-
value: value,
|
|
7251
|
-
enumerable: true,
|
|
7252
|
-
configurable: true,
|
|
7253
|
-
writable: true
|
|
7254
|
-
});
|
|
7255
|
-
} else {
|
|
7256
|
-
obj[key] = value;
|
|
7257
|
-
}
|
|
7258
|
-
return obj;
|
|
7259
|
-
}
|
|
7260
|
-
|
|
7261
|
-
function _arrayWithHoles(arr) {
|
|
7262
|
-
if (Array.isArray(arr)) return arr;
|
|
7263
|
-
}
|
|
7264
|
-
|
|
7265
|
-
function _iterableToArray(iter) {
|
|
7266
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
7267
|
-
}
|
|
7268
|
-
|
|
7269
|
-
function _arrayLikeToArray(arr, len) {
|
|
7270
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
7271
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
7272
|
-
return arr2;
|
|
4365
|
+
function _arrayLikeToArray(arr, len) {
|
|
4366
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
4367
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
4368
|
+
return arr2;
|
|
7273
4369
|
}
|
|
7274
4370
|
|
|
7275
4371
|
function _unsupportedIterableToArray(o, minLen) {
|
|
@@ -7290,7 +4386,7 @@ function _toArray(arr) {
|
|
|
7290
4386
|
}
|
|
7291
4387
|
|
|
7292
4388
|
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7293
|
-
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source),
|
|
4389
|
+
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7294
4390
|
var consoleLogger = {
|
|
7295
4391
|
type: 'logger',
|
|
7296
4392
|
log: function log(args) {
|
|
@@ -7489,7 +4585,8 @@ function pushPath(object, path, newValue, concat) {
|
|
|
7489
4585
|
obj = _getLastOfPath2.obj,
|
|
7490
4586
|
k = _getLastOfPath2.k;
|
|
7491
4587
|
obj[k] = obj[k] || [];
|
|
7492
|
-
obj[k].
|
|
4588
|
+
if (concat) obj[k] = obj[k].concat(newValue);
|
|
4589
|
+
if (!concat) obj[k].push(newValue);
|
|
7493
4590
|
}
|
|
7494
4591
|
function getPath(object, path) {
|
|
7495
4592
|
var _getLastOfPath3 = getLastOfPath(object, path),
|
|
@@ -7597,7 +4694,7 @@ function deepFind(obj, path) {
|
|
|
7597
4694
|
}
|
|
7598
4695
|
|
|
7599
4696
|
function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7600
|
-
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source),
|
|
4697
|
+
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7601
4698
|
function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7602
4699
|
function _isNativeReflectConstruct$3() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7603
4700
|
var ResourceStore = function (_EventEmitter) {
|
|
@@ -7769,11 +4866,11 @@ var postProcessor = {
|
|
|
7769
4866
|
};
|
|
7770
4867
|
|
|
7771
4868
|
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7772
|
-
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source),
|
|
4869
|
+
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7773
4870
|
function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7774
4871
|
function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7775
4872
|
var checkedLoadedFor = {};
|
|
7776
|
-
var Translator = function (_EventEmitter) {
|
|
4873
|
+
var Translator$1 = function (_EventEmitter) {
|
|
7777
4874
|
_inherits(Translator, _EventEmitter);
|
|
7778
4875
|
var _super = _createSuper$2(Translator);
|
|
7779
4876
|
function Translator(services) {
|
|
@@ -8580,7 +5677,7 @@ var PluralResolver = function () {
|
|
|
8580
5677
|
}();
|
|
8581
5678
|
|
|
8582
5679
|
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
8583
|
-
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source),
|
|
5680
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8584
5681
|
function deepFindWithDefaults(data, defaultData, key) {
|
|
8585
5682
|
var keySeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '.';
|
|
8586
5683
|
var ignoreJSONStructure = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
|
|
@@ -8785,7 +5882,7 @@ var Interpolator = function () {
|
|
|
8785
5882
|
}();
|
|
8786
5883
|
|
|
8787
5884
|
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
8788
|
-
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source),
|
|
5885
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8789
5886
|
function parseFormatStr(formatStr) {
|
|
8790
5887
|
var formatName = formatStr.toLowerCase().trim();
|
|
8791
5888
|
var formatOptions = {};
|
|
@@ -8923,7 +6020,7 @@ var Formatter = function () {
|
|
|
8923
6020
|
}();
|
|
8924
6021
|
|
|
8925
6022
|
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
8926
|
-
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source),
|
|
6023
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8927
6024
|
function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8928
6025
|
function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
8929
6026
|
function removePending(q, name) {
|
|
@@ -9260,7 +6357,7 @@ function transformOptions(options) {
|
|
|
9260
6357
|
}
|
|
9261
6358
|
|
|
9262
6359
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
9263
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source),
|
|
6360
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
9264
6361
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9265
6362
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
9266
6363
|
function noop() {}
|
|
@@ -9382,7 +6479,7 @@ var I18n = function (_EventEmitter) {
|
|
|
9382
6479
|
s.i18nFormat = createClassOnDemand(this.modules.i18nFormat);
|
|
9383
6480
|
if (s.i18nFormat.init) s.i18nFormat.init(this);
|
|
9384
6481
|
}
|
|
9385
|
-
this.translator = new Translator(this.services, this.options);
|
|
6482
|
+
this.translator = new Translator$1(this.services, this.options);
|
|
9386
6483
|
this.translator.on('*', function (event) {
|
|
9387
6484
|
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
9388
6485
|
args[_key2 - 1] = arguments[_key2];
|
|
@@ -9742,7 +6839,7 @@ var I18n = function (_EventEmitter) {
|
|
|
9742
6839
|
clone.services.utils = {
|
|
9743
6840
|
hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)
|
|
9744
6841
|
};
|
|
9745
|
-
clone.translator = new Translator(clone.services, clone.options);
|
|
6842
|
+
clone.translator = new Translator$1(clone.services, clone.options);
|
|
9746
6843
|
clone.translator.on('*', function (event) {
|
|
9747
6844
|
for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
|
|
9748
6845
|
args[_key4 - 1] = arguments[_key4];
|
|
@@ -9796,20 +6893,23 @@ instance.loadLanguages;
|
|
|
9796
6893
|
var en = {
|
|
9797
6894
|
translation: {
|
|
9798
6895
|
categorize: {
|
|
9799
|
-
limitMaxChoicesPerCategory:
|
|
9800
|
-
|
|
6896
|
+
limitMaxChoicesPerCategory:
|
|
6897
|
+
"You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",
|
|
6898
|
+
maxChoicesPerCategoryRestriction:
|
|
6899
|
+
'To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].',
|
|
9801
6900
|
},
|
|
9802
6901
|
ebsr: {
|
|
9803
|
-
part: 'Part {{index}}'
|
|
6902
|
+
part: 'Part {{index}}',
|
|
9804
6903
|
},
|
|
9805
6904
|
numberLine: {
|
|
9806
6905
|
addElementLimit_one: 'You can only add {{count}} element',
|
|
9807
6906
|
addElementLimit_other: 'You can only add {{count}} elements',
|
|
9808
|
-
clearAll: 'Clear all'
|
|
6907
|
+
clearAll: 'Clear all',
|
|
9809
6908
|
},
|
|
9810
6909
|
imageClozeAssociation: {
|
|
9811
|
-
reachedLimit_one:
|
|
9812
|
-
|
|
6910
|
+
reachedLimit_one:
|
|
6911
|
+
'You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.',
|
|
6912
|
+
reachedLimit_other: 'Full',
|
|
9813
6913
|
},
|
|
9814
6914
|
drawingResponse: {
|
|
9815
6915
|
fillColor: 'Fill color',
|
|
@@ -9825,7 +6925,7 @@ var en = {
|
|
|
9825
6925
|
green: 'Green',
|
|
9826
6926
|
white: 'White',
|
|
9827
6927
|
black: 'Black',
|
|
9828
|
-
onDoubleClick: 'Double click to edit this text. Press Enter to submit.'
|
|
6928
|
+
onDoubleClick: 'Double click to edit this text. Press Enter to submit.',
|
|
9829
6929
|
},
|
|
9830
6930
|
charting: {
|
|
9831
6931
|
addCategory: 'Add category',
|
|
@@ -9837,8 +6937,8 @@ var en = {
|
|
|
9837
6937
|
keyLegend: {
|
|
9838
6938
|
incorrectAnswer: 'Student incorrect answer',
|
|
9839
6939
|
correctAnswer: 'Student correct answer',
|
|
9840
|
-
correctKeyAnswer: 'Answer key correct'
|
|
9841
|
-
}
|
|
6940
|
+
correctKeyAnswer: 'Answer key correct',
|
|
6941
|
+
},
|
|
9842
6942
|
},
|
|
9843
6943
|
graphing: {
|
|
9844
6944
|
point: 'Point',
|
|
@@ -9854,24 +6954,25 @@ var en = {
|
|
|
9854
6954
|
vector: 'Vector',
|
|
9855
6955
|
label: 'Label',
|
|
9856
6956
|
redo: 'Redo',
|
|
9857
|
-
reset: 'Reset'
|
|
6957
|
+
reset: 'Reset',
|
|
9858
6958
|
},
|
|
9859
6959
|
mathInline: {
|
|
9860
|
-
primaryCorrectWithAlternates:
|
|
6960
|
+
primaryCorrectWithAlternates:
|
|
6961
|
+
'Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct.',
|
|
9861
6962
|
},
|
|
9862
6963
|
multipleChoice: {
|
|
9863
6964
|
minSelections: 'Select at least {{minSelections}}.',
|
|
9864
6965
|
maxSelections_one: 'Only {{maxSelections}} answer is allowed.',
|
|
9865
6966
|
maxSelections_other: 'Only {{maxSelections}} answers are allowed.',
|
|
9866
6967
|
minmaxSelections_equal: 'Select {{minSelections}}.',
|
|
9867
|
-
minmaxSelections_range: 'Select between {{minSelections}} and {{maxSelections}}.'
|
|
6968
|
+
minmaxSelections_range: 'Select between {{minSelections}} and {{maxSelections}}.',
|
|
9868
6969
|
},
|
|
9869
6970
|
selectText: {
|
|
9870
6971
|
correctAnswerSelected: 'Correct',
|
|
9871
6972
|
correctAnswerNotSelected: 'Correct Answer Not Selected',
|
|
9872
6973
|
incorrectSelection: 'Incorrect Selection',
|
|
9873
|
-
key: 'Key'
|
|
9874
|
-
}
|
|
6974
|
+
key: 'Key',
|
|
6975
|
+
},
|
|
9875
6976
|
},
|
|
9876
6977
|
common: {
|
|
9877
6978
|
undo: 'Undo',
|
|
@@ -9880,31 +6981,35 @@ var en = {
|
|
|
9880
6981
|
incorrect: 'Incorrect',
|
|
9881
6982
|
showCorrectAnswer: 'Show correct answer',
|
|
9882
6983
|
hideCorrectAnswer: 'Hide correct answer',
|
|
9883
|
-
commonCorrectAnswerWithAlternates:
|
|
6984
|
+
commonCorrectAnswerWithAlternates:
|
|
6985
|
+
'Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.',
|
|
9884
6986
|
warning: 'Warning',
|
|
9885
6987
|
showNote: 'Show Note',
|
|
9886
6988
|
hideNote: 'Hide Note',
|
|
9887
|
-
cancel: 'Cancel'
|
|
9888
|
-
}
|
|
6989
|
+
cancel: 'Cancel',
|
|
6990
|
+
},
|
|
9889
6991
|
};
|
|
9890
6992
|
|
|
9891
6993
|
var es = {
|
|
9892
6994
|
translation: {
|
|
9893
6995
|
categorize: {
|
|
9894
|
-
limitMaxChoicesPerCategory:
|
|
9895
|
-
|
|
6996
|
+
limitMaxChoicesPerCategory:
|
|
6997
|
+
'Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',
|
|
6998
|
+
maxChoicesPerCategoryRestriction:
|
|
6999
|
+
'Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta',
|
|
9896
7000
|
},
|
|
9897
7001
|
ebsr: {
|
|
9898
|
-
part: 'Parte {{index}}'
|
|
7002
|
+
part: 'Parte {{index}}',
|
|
9899
7003
|
},
|
|
9900
7004
|
numberLine: {
|
|
9901
7005
|
addElementLimit_one: 'Solo puedes agregar {{count}} elemento',
|
|
9902
7006
|
addElementLimit_other: 'Solo puedes agregar {{count}} elementos',
|
|
9903
|
-
clearAll: 'Borrar todo'
|
|
7007
|
+
clearAll: 'Borrar todo',
|
|
9904
7008
|
},
|
|
9905
7009
|
imageClozeAssociation: {
|
|
9906
|
-
reachedLimit_one:
|
|
9907
|
-
|
|
7010
|
+
reachedLimit_one:
|
|
7011
|
+
'Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',
|
|
7012
|
+
reachedLimit_other: 'Lleno',
|
|
9908
7013
|
},
|
|
9909
7014
|
drawingResponse: {
|
|
9910
7015
|
fillColor: 'Color de relleno',
|
|
@@ -9920,7 +7025,7 @@ var es = {
|
|
|
9920
7025
|
green: 'Verde',
|
|
9921
7026
|
white: 'Blanco',
|
|
9922
7027
|
black: 'Negro',
|
|
9923
|
-
onDoubleClick: 'Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar'
|
|
7028
|
+
onDoubleClick: 'Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar',
|
|
9924
7029
|
},
|
|
9925
7030
|
charting: {
|
|
9926
7031
|
addCategory: 'Añadir categoría',
|
|
@@ -9932,8 +7037,8 @@ var es = {
|
|
|
9932
7037
|
keyLegend: {
|
|
9933
7038
|
incorrectAnswer: 'Respuesta incorrecta del estudiante',
|
|
9934
7039
|
correctAnswer: 'Respuesta correcta del estudiante',
|
|
9935
|
-
correctKeyAnswer: 'Clave de respuesta correcta'
|
|
9936
|
-
}
|
|
7040
|
+
correctKeyAnswer: 'Clave de respuesta correcta',
|
|
7041
|
+
},
|
|
9937
7042
|
},
|
|
9938
7043
|
graphing: {
|
|
9939
7044
|
point: 'Punto',
|
|
@@ -9949,24 +7054,25 @@ var es = {
|
|
|
9949
7054
|
vector: 'Vector',
|
|
9950
7055
|
label: 'Etiqueta',
|
|
9951
7056
|
redo: 'Rehacer',
|
|
9952
|
-
reset: 'Reiniciar'
|
|
7057
|
+
reset: 'Reiniciar',
|
|
9953
7058
|
},
|
|
9954
7059
|
mathInline: {
|
|
9955
|
-
primaryCorrectWithAlternates:
|
|
7060
|
+
primaryCorrectWithAlternates:
|
|
7061
|
+
'Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas.',
|
|
9956
7062
|
},
|
|
9957
7063
|
multipleChoice: {
|
|
9958
7064
|
minSelections: 'Seleccione al menos {{minSelections}}.',
|
|
9959
7065
|
maxSelections_one: 'Sólo se permite {{maxSelections}} respuesta.',
|
|
9960
7066
|
maxSelections_other: 'Sólo se permiten {{maxSelections}} respuestas.',
|
|
9961
7067
|
minmaxSelections_equal: 'Seleccione {{minSelections}}.',
|
|
9962
|
-
minmaxSelections_range: 'Seleccione entre {{minSelections}} y {{maxSelections}}.'
|
|
7068
|
+
minmaxSelections_range: 'Seleccione entre {{minSelections}} y {{maxSelections}}.',
|
|
9963
7069
|
},
|
|
9964
7070
|
selectText: {
|
|
9965
7071
|
correctAnswerSelected: 'Respuesta Correcta',
|
|
9966
7072
|
correctAnswerNotSelected: 'Respuesta Correcta No Seleccionada',
|
|
9967
7073
|
incorrectSelection: 'Selección Incorrecta',
|
|
9968
|
-
key: 'Clave'
|
|
9969
|
-
}
|
|
7074
|
+
key: 'Clave',
|
|
7075
|
+
},
|
|
9970
7076
|
},
|
|
9971
7077
|
common: {
|
|
9972
7078
|
undo: 'Deshacer',
|
|
@@ -9975,12 +7081,13 @@ var es = {
|
|
|
9975
7081
|
incorrect: 'Incorrect',
|
|
9976
7082
|
showCorrectAnswer: 'Mostrar respuesta correcta',
|
|
9977
7083
|
hideCorrectAnswer: 'Ocultar respuesta correcta',
|
|
9978
|
-
commonCorrectAnswerWithAlternates:
|
|
7084
|
+
commonCorrectAnswerWithAlternates:
|
|
7085
|
+
'Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.',
|
|
9979
7086
|
warning: 'Advertencia',
|
|
9980
7087
|
showNote: 'Mostrar Nota',
|
|
9981
7088
|
hideNote: 'Ocultar Nota',
|
|
9982
|
-
cancel: 'Cancelar'
|
|
9983
|
-
}
|
|
7089
|
+
cancel: 'Cancelar',
|
|
7090
|
+
},
|
|
9984
7091
|
};
|
|
9985
7092
|
|
|
9986
7093
|
instance.init({
|
|
@@ -9989,15 +7096,15 @@ instance.init({
|
|
|
9989
7096
|
debug: true,
|
|
9990
7097
|
resources: {
|
|
9991
7098
|
en: en,
|
|
9992
|
-
es: es
|
|
9993
|
-
}
|
|
7099
|
+
es: es,
|
|
7100
|
+
},
|
|
9994
7101
|
});
|
|
9995
|
-
|
|
9996
|
-
|
|
7102
|
+
|
|
7103
|
+
var Translator = {
|
|
7104
|
+
translator: {
|
|
7105
|
+
...instance,
|
|
9997
7106
|
t: (key, options) => {
|
|
9998
|
-
const {
|
|
9999
|
-
lng
|
|
10000
|
-
} = options;
|
|
7107
|
+
const { lng } = options;
|
|
10001
7108
|
|
|
10002
7109
|
switch (lng) {
|
|
10003
7110
|
// these keys don't work with plurals, don't know why, so I added a workaround to convert them to the correct lng
|
|
@@ -10005,7 +7112,6 @@ var index = {
|
|
|
10005
7112
|
case 'en-US':
|
|
10006
7113
|
options.lng = 'en';
|
|
10007
7114
|
break;
|
|
10008
|
-
|
|
10009
7115
|
case 'es_ES':
|
|
10010
7116
|
case 'es-ES':
|
|
10011
7117
|
case 'es_MX':
|
|
@@ -10013,19 +7119,13 @@ var index = {
|
|
|
10013
7119
|
options.lng = 'es';
|
|
10014
7120
|
break;
|
|
10015
7121
|
}
|
|
10016
|
-
|
|
10017
|
-
|
|
10018
|
-
|
|
10019
|
-
|
|
10020
|
-
}
|
|
10021
|
-
|
|
10022
|
-
|
|
10023
|
-
value: 'en_US',
|
|
10024
|
-
label: 'English (US)'
|
|
10025
|
-
}, {
|
|
10026
|
-
value: 'es_ES',
|
|
10027
|
-
label: 'Spanish'
|
|
10028
|
-
}]
|
|
7122
|
+
return instance.t(key, { lng, ...options });
|
|
7123
|
+
},
|
|
7124
|
+
},
|
|
7125
|
+
languageOptions: [
|
|
7126
|
+
{ value: 'en_US', label: 'English (US)' },
|
|
7127
|
+
{ value: 'es_ES', label: 'Spanish' },
|
|
7128
|
+
],
|
|
10029
7129
|
};
|
|
10030
7130
|
|
|
10031
7131
|
var defaults = {
|
|
@@ -10045,7 +7145,7 @@ var defaults = {
|
|
|
10045
7145
|
toolbarEditorPosition: 'bottom',
|
|
10046
7146
|
};
|
|
10047
7147
|
|
|
10048
|
-
const { translator } =
|
|
7148
|
+
const { translator } = Translator;
|
|
10049
7149
|
|
|
10050
7150
|
const prepareChoice = (mode, defaultFeedback) => (choice) => {
|
|
10051
7151
|
const out = {
|
|
@@ -10152,7 +7252,7 @@ function model(question, session, env) {
|
|
|
10152
7252
|
(obj, respArea, key) => {
|
|
10153
7253
|
const chosenValue = value && value[key];
|
|
10154
7254
|
const val =
|
|
10155
|
-
!isEmpty_1
|
|
7255
|
+
!isEmpty_1(chosenValue) && find_1(respArea, (c) => prepareVal(c.label) === prepareVal(chosenValue));
|
|
10156
7256
|
|
|
10157
7257
|
obj[key] = getFeedback(val);
|
|
10158
7258
|
|
|
@@ -10226,7 +7326,7 @@ const prepareVal = (html) => {
|
|
|
10226
7326
|
const getScore = (config, session) => {
|
|
10227
7327
|
const { value } = session || {};
|
|
10228
7328
|
|
|
10229
|
-
if (!session || isEmpty_1
|
|
7329
|
+
if (!session || isEmpty_1(session) || !value) {
|
|
10230
7330
|
return 0;
|
|
10231
7331
|
}
|
|
10232
7332
|
|
|
@@ -10237,7 +7337,7 @@ const getScore = (config, session) => {
|
|
|
10237
7337
|
(total, respArea, key) => {
|
|
10238
7338
|
const chosenValue = value && value[key];
|
|
10239
7339
|
|
|
10240
|
-
if (isEmpty_1
|
|
7340
|
+
if (isEmpty_1(chosenValue) || !find_1(respArea, (c) => prepareVal(c.label) === prepareVal(chosenValue))) {
|
|
10241
7341
|
return total;
|
|
10242
7342
|
}
|
|
10243
7343
|
|
|
@@ -10264,10 +7364,10 @@ const getScore = (config, session) => {
|
|
|
10264
7364
|
*/
|
|
10265
7365
|
function outcome(model, session, env = {}) {
|
|
10266
7366
|
return new Promise((resolve) => {
|
|
10267
|
-
const partialScoringEnabled =
|
|
7367
|
+
const partialScoringEnabled = enabled(model, env);
|
|
10268
7368
|
const score = getScore(model, session);
|
|
10269
7369
|
|
|
10270
|
-
resolve({ score: partialScoringEnabled ? score : score === 1 ? 1 : 0, empty: isEmpty_1
|
|
7370
|
+
resolve({ score: partialScoringEnabled ? score : score === 1 ? 1 : 0, empty: isEmpty_1(session) });
|
|
10271
7371
|
});
|
|
10272
7372
|
}
|
|
10273
7373
|
|
|
@@ -10337,7 +7437,7 @@ const validate = (model = {}, config = {}) => {
|
|
|
10337
7437
|
}
|
|
10338
7438
|
});
|
|
10339
7439
|
|
|
10340
|
-
if (!isEmpty_1
|
|
7440
|
+
if (!isEmpty_1(choicesErrors)) {
|
|
10341
7441
|
allChoicesErrors[key] = choicesErrors;
|
|
10342
7442
|
}
|
|
10343
7443
|
});
|
|
@@ -10350,7 +7450,7 @@ const validate = (model = {}, config = {}) => {
|
|
|
10350
7450
|
errors.responseAreas = 'There should be at least 1 response area defined.';
|
|
10351
7451
|
}
|
|
10352
7452
|
|
|
10353
|
-
if (!isEmpty_1
|
|
7453
|
+
if (!isEmpty_1(allChoicesErrors)) {
|
|
10354
7454
|
errors.choices = allChoicesErrors;
|
|
10355
7455
|
}
|
|
10356
7456
|
|