@pie-element/math-templated 5.0.1-esmbeta.3 → 5.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.
@@ -1,10 +1,10 @@
1
1
  import * as mv from '@pie-framework/math-validation';
2
2
 
3
- var commonjsGlobal$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
3
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
 
5
5
  /** Used for built-in method references. */
6
6
 
7
- var objectProto$6 = Object.prototype;
7
+ var objectProto$8 = Object.prototype;
8
8
 
9
9
  /**
10
10
  * Checks if `value` is likely a prototype object.
@@ -15,12 +15,12 @@ var objectProto$6 = Object.prototype;
15
15
  */
16
16
  function isPrototype$2(value) {
17
17
  var Ctor = value && value.constructor,
18
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$6;
18
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$8;
19
19
 
20
20
  return value === proto;
21
21
  }
22
22
 
23
- var _isPrototype$1 = isPrototype$2;
23
+ var _isPrototype = isPrototype$2;
24
24
 
25
25
  /**
26
26
  * Creates a unary function that invokes `func` with its argument transformed.
@@ -37,23 +37,23 @@ function overArg$1(func, transform) {
37
37
  };
38
38
  }
39
39
 
40
- var _overArg$1 = overArg$1;
40
+ var _overArg = overArg$1;
41
41
 
42
- var overArg = _overArg$1;
42
+ var overArg = _overArg;
43
43
 
44
44
  /* Built-in method references for those with the same name as other `lodash` methods. */
45
45
  var nativeKeys$1 = overArg(Object.keys, Object);
46
46
 
47
- var _nativeKeys$1 = nativeKeys$1;
47
+ var _nativeKeys = nativeKeys$1;
48
48
 
49
- var isPrototype$1 = _isPrototype$1,
50
- nativeKeys = _nativeKeys$1;
49
+ var isPrototype$1 = _isPrototype,
50
+ nativeKeys = _nativeKeys;
51
51
 
52
52
  /** Used for built-in method references. */
53
- var objectProto$5 = Object.prototype;
53
+ var objectProto$7 = Object.prototype;
54
54
 
55
55
  /** Used to check objects for own properties. */
56
- var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
56
+ var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
57
57
 
58
58
  /**
59
59
  * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
@@ -68,22 +68,22 @@ function baseKeys$1(object) {
68
68
  }
69
69
  var result = [];
70
70
  for (var key in Object(object)) {
71
- if (hasOwnProperty$4.call(object, key) && key != 'constructor') {
71
+ if (hasOwnProperty$6.call(object, key) && key != 'constructor') {
72
72
  result.push(key);
73
73
  }
74
74
  }
75
75
  return result;
76
76
  }
77
77
 
78
- var _baseKeys$1 = baseKeys$1;
78
+ var _baseKeys = baseKeys$1;
79
79
 
80
80
  /** Detect free variable `global` from Node.js. */
81
81
 
82
- var freeGlobal$1 = typeof commonjsGlobal$1 == 'object' && commonjsGlobal$1 && commonjsGlobal$1.Object === Object && commonjsGlobal$1;
82
+ var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
83
83
 
84
- var _freeGlobal$1 = freeGlobal$1;
84
+ var _freeGlobal = freeGlobal$1;
85
85
 
86
- var freeGlobal = _freeGlobal$1;
86
+ var freeGlobal = _freeGlobal;
87
87
 
88
88
  /** Detect free variable `self`. */
89
89
  var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
@@ -91,32 +91,32 @@ var freeSelf = typeof self == 'object' && self && self.Object === Object && self
91
91
  /** Used as a reference to the global object. */
92
92
  var root$7 = freeGlobal || freeSelf || Function('return this')();
93
93
 
94
- var _root$1 = root$7;
94
+ var _root = root$7;
95
95
 
96
- var root$6 = _root$1;
96
+ var root$6 = _root;
97
97
 
98
98
  /** Built-in value references. */
99
- var Symbol$3 = root$6.Symbol;
99
+ var Symbol$4 = root$6.Symbol;
100
100
 
101
- var _Symbol$1 = Symbol$3;
101
+ var _Symbol = Symbol$4;
102
102
 
103
- var Symbol$2 = _Symbol$1;
103
+ var Symbol$3 = _Symbol;
104
104
 
105
105
  /** Used for built-in method references. */
106
- var objectProto$4 = Object.prototype;
106
+ var objectProto$6 = Object.prototype;
107
107
 
108
108
  /** Used to check objects for own properties. */
109
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
109
+ var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
110
110
 
111
111
  /**
112
112
  * Used to resolve the
113
113
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
114
114
  * of values.
115
115
  */
116
- var nativeObjectToString$1 = objectProto$4.toString;
116
+ var nativeObjectToString$1 = objectProto$6.toString;
117
117
 
118
118
  /** Built-in value references. */
119
- var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : undefined;
119
+ var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : undefined;
120
120
 
121
121
  /**
122
122
  * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
@@ -126,7 +126,7 @@ var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : undefined;
126
126
  * @returns {string} Returns the raw `toStringTag`.
127
127
  */
128
128
  function getRawTag$1(value) {
129
- var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
129
+ var isOwn = hasOwnProperty$5.call(value, symToStringTag$1),
130
130
  tag = value[symToStringTag$1];
131
131
 
132
132
  try {
@@ -145,18 +145,18 @@ function getRawTag$1(value) {
145
145
  return result;
146
146
  }
147
147
 
148
- var _getRawTag$1 = getRawTag$1;
148
+ var _getRawTag = getRawTag$1;
149
149
 
150
150
  /** Used for built-in method references. */
151
151
 
152
- var objectProto$3 = Object.prototype;
152
+ var objectProto$5 = Object.prototype;
153
153
 
154
154
  /**
155
155
  * Used to resolve the
156
156
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
157
157
  * of values.
158
158
  */
159
- var nativeObjectToString = objectProto$3.toString;
159
+ var nativeObjectToString = objectProto$5.toString;
160
160
 
161
161
  /**
162
162
  * Converts `value` to a string using `Object.prototype.toString`.
@@ -169,18 +169,18 @@ function objectToString$1(value) {
169
169
  return nativeObjectToString.call(value);
170
170
  }
171
171
 
172
- var _objectToString$1 = objectToString$1;
172
+ var _objectToString = objectToString$1;
173
173
 
174
- var Symbol$1 = _Symbol$1,
175
- getRawTag = _getRawTag$1,
176
- objectToString = _objectToString$1;
174
+ var Symbol$2 = _Symbol,
175
+ getRawTag = _getRawTag,
176
+ objectToString = _objectToString;
177
177
 
178
178
  /** `Object#toString` result references. */
179
179
  var nullTag = '[object Null]',
180
180
  undefinedTag = '[object Undefined]';
181
181
 
182
182
  /** Built-in value references. */
183
- var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
183
+ var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : undefined;
184
184
 
185
185
  /**
186
186
  * The base implementation of `getTag` without fallbacks for buggy environments.
@@ -198,7 +198,7 @@ function baseGetTag$4(value) {
198
198
  : objectToString(value);
199
199
  }
200
200
 
201
- var _baseGetTag$1 = baseGetTag$4;
201
+ var _baseGetTag = baseGetTag$4;
202
202
 
203
203
  /**
204
204
  * Checks if `value` is the
@@ -231,10 +231,10 @@ function isObject$2(value) {
231
231
  return value != null && (type == 'object' || type == 'function');
232
232
  }
233
233
 
234
- var isObject_1$1 = isObject$2;
234
+ var isObject_1 = isObject$2;
235
235
 
236
- var baseGetTag$3 = _baseGetTag$1,
237
- isObject$1 = isObject_1$1;
236
+ var baseGetTag$3 = _baseGetTag,
237
+ isObject$1 = isObject_1;
238
238
 
239
239
  /** `Object#toString` result references. */
240
240
  var asyncTag = '[object AsyncFunction]',
@@ -269,16 +269,16 @@ function isFunction$2(value) {
269
269
  return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
270
270
  }
271
271
 
272
- var isFunction_1$1 = isFunction$2;
272
+ var isFunction_1 = isFunction$2;
273
273
 
274
- var root$5 = _root$1;
274
+ var root$5 = _root;
275
275
 
276
276
  /** Used to detect overreaching core-js shims. */
277
277
  var coreJsData$1 = root$5['__core-js_shared__'];
278
278
 
279
- var _coreJsData$1 = coreJsData$1;
279
+ var _coreJsData = coreJsData$1;
280
280
 
281
- var coreJsData = _coreJsData$1;
281
+ var coreJsData = _coreJsData;
282
282
 
283
283
  /** Used to detect methods masquerading as native. */
284
284
  var maskSrcKey = (function() {
@@ -297,7 +297,7 @@ function isMasked$1(func) {
297
297
  return !!maskSrcKey && (maskSrcKey in func);
298
298
  }
299
299
 
300
- var _isMasked$1 = isMasked$1;
300
+ var _isMasked = isMasked$1;
301
301
 
302
302
  /** Used for built-in method references. */
303
303
 
@@ -325,12 +325,12 @@ function toSource$2(func) {
325
325
  return '';
326
326
  }
327
327
 
328
- var _toSource$1 = toSource$2;
328
+ var _toSource = toSource$2;
329
329
 
330
- var isFunction$1 = isFunction_1$1,
331
- isMasked = _isMasked$1,
332
- isObject = isObject_1$1,
333
- toSource$1 = _toSource$1;
330
+ var isFunction$1 = isFunction_1,
331
+ isMasked = _isMasked,
332
+ isObject = isObject_1,
333
+ toSource$1 = _toSource;
334
334
 
335
335
  /**
336
336
  * Used to match `RegExp`
@@ -343,17 +343,17 @@ var reIsHostCtor = /^\[object .+?Constructor\]$/;
343
343
 
344
344
  /** Used for built-in method references. */
345
345
  var funcProto = Function.prototype,
346
- objectProto$2 = Object.prototype;
346
+ objectProto$4 = Object.prototype;
347
347
 
348
348
  /** Used to resolve the decompiled source of functions. */
349
349
  var funcToString = funcProto.toString;
350
350
 
351
351
  /** Used to check objects for own properties. */
352
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
352
+ var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
353
353
 
354
354
  /** Used to detect if a method is native. */
355
355
  var reIsNative = RegExp('^' +
356
- funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
356
+ funcToString.call(hasOwnProperty$4).replace(reRegExpChar, '\\$&')
357
357
  .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
358
358
  );
359
359
 
@@ -373,7 +373,7 @@ function baseIsNative$1(value) {
373
373
  return pattern.test(toSource$1(value));
374
374
  }
375
375
 
376
- var _baseIsNative$1 = baseIsNative$1;
376
+ var _baseIsNative = baseIsNative$1;
377
377
 
378
378
  /**
379
379
  * Gets the value at `key` of `object`.
@@ -388,10 +388,10 @@ function getValue$1(object, key) {
388
388
  return object == null ? undefined : object[key];
389
389
  }
390
390
 
391
- var _getValue$1 = getValue$1;
391
+ var _getValue = getValue$1;
392
392
 
393
- var baseIsNative = _baseIsNative$1,
394
- getValue = _getValue$1;
393
+ var baseIsNative = _baseIsNative,
394
+ getValue = _getValue;
395
395
 
396
396
  /**
397
397
  * Gets the native function at `key` of `object`.
@@ -401,60 +401,60 @@ var baseIsNative = _baseIsNative$1,
401
401
  * @param {string} key The key of the method to get.
402
402
  * @returns {*} Returns the function if it's native, else `undefined`.
403
403
  */
404
- function getNative$5(object, key) {
404
+ function getNative$6(object, key) {
405
405
  var value = getValue(object, key);
406
406
  return baseIsNative(value) ? value : undefined;
407
407
  }
408
408
 
409
- var _getNative$1 = getNative$5;
409
+ var _getNative = getNative$6;
410
410
 
411
- var getNative$4 = _getNative$1,
412
- root$4 = _root$1;
411
+ var getNative$5 = _getNative,
412
+ root$4 = _root;
413
413
 
414
414
  /* Built-in method references that are verified to be native. */
415
- var DataView$1 = getNative$4(root$4, 'DataView');
415
+ var DataView$1 = getNative$5(root$4, 'DataView');
416
416
 
417
- var _DataView$1 = DataView$1;
417
+ var _DataView = DataView$1;
418
418
 
419
- var getNative$3 = _getNative$1,
420
- root$3 = _root$1;
419
+ var getNative$4 = _getNative,
420
+ root$3 = _root;
421
421
 
422
422
  /* Built-in method references that are verified to be native. */
423
- var Map$1 = getNative$3(root$3, 'Map');
423
+ var Map$2 = getNative$4(root$3, 'Map');
424
424
 
425
- var _Map$1 = Map$1;
425
+ var _Map = Map$2;
426
426
 
427
- var getNative$2 = _getNative$1,
428
- root$2 = _root$1;
427
+ var getNative$3 = _getNative,
428
+ root$2 = _root;
429
429
 
430
430
  /* Built-in method references that are verified to be native. */
431
- var Promise$2 = getNative$2(root$2, 'Promise');
431
+ var Promise$2 = getNative$3(root$2, 'Promise');
432
432
 
433
- var _Promise$1 = Promise$2;
433
+ var _Promise = Promise$2;
434
434
 
435
- var getNative$1 = _getNative$1,
436
- root$1 = _root$1;
435
+ var getNative$2 = _getNative,
436
+ root$1 = _root;
437
437
 
438
438
  /* Built-in method references that are verified to be native. */
439
- var Set$1 = getNative$1(root$1, 'Set');
439
+ var Set$1 = getNative$2(root$1, 'Set');
440
440
 
441
- var _Set$1 = Set$1;
441
+ var _Set = Set$1;
442
442
 
443
- var getNative = _getNative$1,
444
- root = _root$1;
443
+ var getNative$1 = _getNative,
444
+ root = _root;
445
445
 
446
446
  /* Built-in method references that are verified to be native. */
447
- var WeakMap$1 = getNative(root, 'WeakMap');
447
+ var WeakMap$1 = getNative$1(root, 'WeakMap');
448
448
 
449
- var _WeakMap$1 = WeakMap$1;
449
+ var _WeakMap = WeakMap$1;
450
450
 
451
- var DataView = _DataView$1,
452
- Map = _Map$1,
453
- Promise$1 = _Promise$1,
454
- Set = _Set$1,
455
- WeakMap = _WeakMap$1,
456
- baseGetTag$2 = _baseGetTag$1,
457
- toSource = _toSource$1;
451
+ var DataView = _DataView,
452
+ Map$1 = _Map,
453
+ Promise$1 = _Promise,
454
+ Set = _Set,
455
+ WeakMap = _WeakMap,
456
+ baseGetTag$2 = _baseGetTag,
457
+ toSource = _toSource;
458
458
 
459
459
  /** `Object#toString` result references. */
460
460
  var mapTag$2 = '[object Map]',
@@ -467,7 +467,7 @@ var dataViewTag$1 = '[object DataView]';
467
467
 
468
468
  /** Used to detect maps, sets, and weakmaps. */
469
469
  var dataViewCtorString = toSource(DataView),
470
- mapCtorString = toSource(Map),
470
+ mapCtorString = toSource(Map$1),
471
471
  promiseCtorString = toSource(Promise$1),
472
472
  setCtorString = toSource(Set),
473
473
  weakMapCtorString = toSource(WeakMap);
@@ -483,7 +483,7 @@ var getTag$1 = baseGetTag$2;
483
483
 
484
484
  // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
485
485
  if ((DataView && getTag$1(new DataView(new ArrayBuffer(1))) != dataViewTag$1) ||
486
- (Map && getTag$1(new Map) != mapTag$2) ||
486
+ (Map$1 && getTag$1(new Map$1) != mapTag$2) ||
487
487
  (Promise$1 && getTag$1(Promise$1.resolve()) != promiseTag) ||
488
488
  (Set && getTag$1(new Set) != setTag$2) ||
489
489
  (WeakMap && getTag$1(new WeakMap) != weakMapTag$1)) {
@@ -505,7 +505,7 @@ if ((DataView && getTag$1(new DataView(new ArrayBuffer(1))) != dataViewTag$1) ||
505
505
  };
506
506
  }
507
507
 
508
- var _getTag$1 = getTag$1;
508
+ var _getTag = getTag$1;
509
509
 
510
510
  /**
511
511
  * Checks if `value` is object-like. A value is object-like if it's not `null`
@@ -536,10 +536,10 @@ function isObjectLike$3(value) {
536
536
  return value != null && typeof value == 'object';
537
537
  }
538
538
 
539
- var isObjectLike_1$1 = isObjectLike$3;
539
+ var isObjectLike_1 = isObjectLike$3;
540
540
 
541
- var baseGetTag$1 = _baseGetTag$1,
542
- isObjectLike$2 = isObjectLike_1$1;
541
+ var baseGetTag$1 = _baseGetTag,
542
+ isObjectLike$2 = isObjectLike_1;
543
543
 
544
544
  /** `Object#toString` result references. */
545
545
  var argsTag$1 = '[object Arguments]';
@@ -555,19 +555,19 @@ function baseIsArguments$1(value) {
555
555
  return isObjectLike$2(value) && baseGetTag$1(value) == argsTag$1;
556
556
  }
557
557
 
558
- var _baseIsArguments$1 = baseIsArguments$1;
558
+ var _baseIsArguments = baseIsArguments$1;
559
559
 
560
- var baseIsArguments = _baseIsArguments$1,
561
- isObjectLike$1 = isObjectLike_1$1;
560
+ var baseIsArguments = _baseIsArguments,
561
+ isObjectLike$1 = isObjectLike_1;
562
562
 
563
563
  /** Used for built-in method references. */
564
- var objectProto$1 = Object.prototype;
564
+ var objectProto$3 = Object.prototype;
565
565
 
566
566
  /** Used to check objects for own properties. */
567
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
567
+ var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
568
568
 
569
569
  /** Built-in value references. */
570
- var propertyIsEnumerable = objectProto$1.propertyIsEnumerable;
570
+ var propertyIsEnumerable = objectProto$3.propertyIsEnumerable;
571
571
 
572
572
  /**
573
573
  * Checks if `value` is likely an `arguments` object.
@@ -588,11 +588,11 @@ var propertyIsEnumerable = objectProto$1.propertyIsEnumerable;
588
588
  * // => false
589
589
  */
590
590
  var isArguments$1 = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
591
- return isObjectLike$1(value) && hasOwnProperty$1.call(value, 'callee') &&
591
+ return isObjectLike$1(value) && hasOwnProperty$3.call(value, 'callee') &&
592
592
  !propertyIsEnumerable.call(value, 'callee');
593
593
  };
594
594
 
595
- var isArguments_1$1 = isArguments$1;
595
+ var isArguments_1 = isArguments$1;
596
596
 
597
597
  /**
598
598
  * Checks if `value` is classified as an `Array` object.
@@ -620,7 +620,7 @@ var isArguments_1$1 = isArguments$1;
620
620
 
621
621
  var isArray$1 = Array.isArray;
622
622
 
623
- var isArray_1$1 = isArray$1;
623
+ var isArray_1 = isArray$1;
624
624
 
625
625
  /** Used as references for various `Number` constants. */
626
626
 
@@ -657,10 +657,10 @@ function isLength$2(value) {
657
657
  value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
658
658
  }
659
659
 
660
- var isLength_1$1 = isLength$2;
660
+ var isLength_1 = isLength$2;
661
661
 
662
- var isFunction = isFunction_1$1,
663
- isLength$1 = isLength_1$1;
662
+ var isFunction = isFunction_1,
663
+ isLength$1 = isLength_1;
664
664
 
665
665
  /**
666
666
  * Checks if `value` is array-like. A value is considered array-like if it's
@@ -691,9 +691,9 @@ function isArrayLike$1(value) {
691
691
  return value != null && isLength$1(value.length) && !isFunction(value);
692
692
  }
693
693
 
694
- var isArrayLike_1$1 = isArrayLike$1;
694
+ var isArrayLike_1 = isArrayLike$1;
695
695
 
696
- var isBuffer$2 = {exports: {}};
696
+ var isBuffer$1 = {exports: {}};
697
697
 
698
698
  /**
699
699
  * This method returns `false`.
@@ -713,11 +713,11 @@ function stubFalse() {
713
713
  return false;
714
714
  }
715
715
 
716
- var stubFalse_1$1 = stubFalse;
716
+ var stubFalse_1 = stubFalse;
717
717
 
718
718
  (function (module, exports) {
719
- var root = _root$1,
720
- stubFalse = stubFalse_1$1;
719
+ var root = _root,
720
+ stubFalse = stubFalse_1;
721
721
 
722
722
  /** Detect free variable `exports`. */
723
723
  var freeExports = exports && !exports.nodeType && exports;
@@ -754,11 +754,11 @@ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
754
754
  var isBuffer = nativeIsBuffer || stubFalse;
755
755
 
756
756
  module.exports = isBuffer;
757
- }(isBuffer$2, isBuffer$2.exports));
757
+ }(isBuffer$1, isBuffer$1.exports));
758
758
 
759
- var baseGetTag = _baseGetTag$1,
760
- isLength = isLength_1$1,
761
- isObjectLike = isObjectLike_1$1;
759
+ var baseGetTag = _baseGetTag,
760
+ isLength = isLength_1,
761
+ isObjectLike = isObjectLike_1;
762
762
 
763
763
  /** `Object#toString` result references. */
764
764
  var argsTag = '[object Arguments]',
@@ -815,7 +815,7 @@ function baseIsTypedArray$1(value) {
815
815
  isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
816
816
  }
817
817
 
818
- var _baseIsTypedArray$1 = baseIsTypedArray$1;
818
+ var _baseIsTypedArray = baseIsTypedArray$1;
819
819
 
820
820
  /**
821
821
  * The base implementation of `_.unary` without support for storing metadata.
@@ -831,12 +831,12 @@ function baseUnary$1(func) {
831
831
  };
832
832
  }
833
833
 
834
- var _baseUnary$1 = baseUnary$1;
834
+ var _baseUnary = baseUnary$1;
835
835
 
836
- var _nodeUtil$1 = {exports: {}};
836
+ var _nodeUtil = {exports: {}};
837
837
 
838
838
  (function (module, exports) {
839
- var freeGlobal = _freeGlobal$1;
839
+ var freeGlobal = _freeGlobal;
840
840
 
841
841
  /** Detect free variable `exports`. */
842
842
  var freeExports = exports && !exports.nodeType && exports;
@@ -866,11 +866,11 @@ var nodeUtil = (function() {
866
866
  }());
867
867
 
868
868
  module.exports = nodeUtil;
869
- }(_nodeUtil$1, _nodeUtil$1.exports));
869
+ }(_nodeUtil, _nodeUtil.exports));
870
870
 
871
- var baseIsTypedArray = _baseIsTypedArray$1,
872
- baseUnary = _baseUnary$1,
873
- nodeUtil = _nodeUtil$1.exports;
871
+ var baseIsTypedArray = _baseIsTypedArray,
872
+ baseUnary = _baseUnary,
873
+ nodeUtil = _nodeUtil.exports;
874
874
 
875
875
  /* Node.js helper references. */
876
876
  var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
@@ -894,26 +894,26 @@ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
894
894
  */
895
895
  var isTypedArray$1 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
896
896
 
897
- var isTypedArray_1$1 = isTypedArray$1;
897
+ var isTypedArray_1 = isTypedArray$1;
898
898
 
899
- var baseKeys = _baseKeys$1,
900
- getTag = _getTag$1,
901
- isArguments = isArguments_1$1,
902
- isArray = isArray_1$1,
903
- isArrayLike = isArrayLike_1$1,
904
- isBuffer$1 = isBuffer$2.exports,
905
- isPrototype = _isPrototype$1,
906
- isTypedArray = isTypedArray_1$1;
899
+ var baseKeys = _baseKeys,
900
+ getTag = _getTag,
901
+ isArguments = isArguments_1,
902
+ isArray = isArray_1,
903
+ isArrayLike = isArrayLike_1,
904
+ isBuffer = isBuffer$1.exports,
905
+ isPrototype = _isPrototype,
906
+ isTypedArray = isTypedArray_1;
907
907
 
908
908
  /** `Object#toString` result references. */
909
909
  var mapTag = '[object Map]',
910
910
  setTag = '[object Set]';
911
911
 
912
912
  /** Used for built-in method references. */
913
- var objectProto = Object.prototype;
913
+ var objectProto$2 = Object.prototype;
914
914
 
915
915
  /** Used to check objects for own properties. */
916
- var hasOwnProperty = objectProto.hasOwnProperty;
916
+ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
917
917
 
918
918
  /**
919
919
  * Checks if `value` is an empty object, collection, map, or set.
@@ -954,7 +954,7 @@ function isEmpty(value) {
954
954
  }
955
955
  if (isArrayLike(value) &&
956
956
  (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
957
- isBuffer$1(value) || isTypedArray(value) || isArguments(value))) {
957
+ isBuffer(value) || isTypedArray(value) || isArguments(value))) {
958
958
  return !value.length;
959
959
  }
960
960
  var tag = getTag(value);
@@ -965,32 +965,14 @@ function isEmpty(value) {
965
965
  return !baseKeys(value).length;
966
966
  }
967
967
  for (var key in value) {
968
- if (hasOwnProperty.call(value, key)) {
968
+ if (hasOwnProperty$2.call(value, key)) {
969
969
  return false;
970
970
  }
971
971
  }
972
972
  return true;
973
973
  }
974
974
 
975
- var isEmpty_1$1 = isEmpty;
976
-
977
- function _extends() {
978
- _extends = Object.assign || function (target) {
979
- for (var i = 1; i < arguments.length; i++) {
980
- var source = arguments[i];
981
-
982
- for (var key in source) {
983
- if (Object.prototype.hasOwnProperty.call(source, key)) {
984
- target[key] = source[key];
985
- }
986
- }
987
- }
988
-
989
- return target;
990
- };
991
-
992
- return _extends.apply(this, arguments);
993
- }
975
+ var isEmpty_1 = isEmpty;
994
976
 
995
977
  function _typeof(obj) {
996
978
  "@babel/helpers - typeof";
@@ -1012,7 +994,7 @@ function _toPrimitive(input, hint) {
1012
994
  if (_typeof(input) !== "object" || input === null) return input;
1013
995
  var prim = input[Symbol.toPrimitive];
1014
996
  if (prim !== undefined) {
1015
- var res = prim.call(input, hint);
997
+ var res = prim.call(input, hint || "default");
1016
998
  if (_typeof(res) !== "object") return res;
1017
999
  throw new TypeError("@@toPrimitive must return a primitive value.");
1018
1000
  }
@@ -1137,7 +1119,7 @@ function _toArray(arr) {
1137
1119
  }
1138
1120
 
1139
1121
  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; }
1140
- 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), true).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; }
1122
+ 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; }
1141
1123
  var consoleLogger = {
1142
1124
  type: 'logger',
1143
1125
  log: function log(args) {
@@ -1336,7 +1318,8 @@ function pushPath(object, path, newValue, concat) {
1336
1318
  obj = _getLastOfPath2.obj,
1337
1319
  k = _getLastOfPath2.k;
1338
1320
  obj[k] = obj[k] || [];
1339
- obj[k].push(newValue);
1321
+ if (concat) obj[k] = obj[k].concat(newValue);
1322
+ if (!concat) obj[k].push(newValue);
1340
1323
  }
1341
1324
  function getPath(object, path) {
1342
1325
  var _getLastOfPath3 = getLastOfPath(object, path),
@@ -1444,7 +1427,7 @@ function deepFind(obj, path) {
1444
1427
  }
1445
1428
 
1446
1429
  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; }
1447
- 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), true).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; }
1430
+ 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; }
1448
1431
  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); }; }
1449
1432
  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; } }
1450
1433
  var ResourceStore = function (_EventEmitter) {
@@ -1616,11 +1599,11 @@ var postProcessor = {
1616
1599
  };
1617
1600
 
1618
1601
  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; }
1619
- 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), true).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; }
1602
+ 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; }
1620
1603
  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); }; }
1621
1604
  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; } }
1622
1605
  var checkedLoadedFor = {};
1623
- var Translator = function (_EventEmitter) {
1606
+ var Translator$1 = function (_EventEmitter) {
1624
1607
  _inherits(Translator, _EventEmitter);
1625
1608
  var _super = _createSuper$2(Translator);
1626
1609
  function Translator(services) {
@@ -2427,7 +2410,7 @@ var PluralResolver = function () {
2427
2410
  }();
2428
2411
 
2429
2412
  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; }
2430
- 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), true).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; }
2413
+ 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; }
2431
2414
  function deepFindWithDefaults(data, defaultData, key) {
2432
2415
  var keySeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '.';
2433
2416
  var ignoreJSONStructure = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
@@ -2632,7 +2615,7 @@ var Interpolator = function () {
2632
2615
  }();
2633
2616
 
2634
2617
  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; }
2635
- 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), true).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; }
2618
+ 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; }
2636
2619
  function parseFormatStr(formatStr) {
2637
2620
  var formatName = formatStr.toLowerCase().trim();
2638
2621
  var formatOptions = {};
@@ -2770,7 +2753,7 @@ var Formatter = function () {
2770
2753
  }();
2771
2754
 
2772
2755
  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; }
2773
- 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), true).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; }
2756
+ 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; }
2774
2757
  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); }; }
2775
2758
  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; } }
2776
2759
  function removePending(q, name) {
@@ -3107,7 +3090,7 @@ function transformOptions(options) {
3107
3090
  }
3108
3091
 
3109
3092
  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; }
3110
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), true).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; }
3093
+ 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; }
3111
3094
  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); }; }
3112
3095
  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; } }
3113
3096
  function noop() {}
@@ -3229,7 +3212,7 @@ var I18n = function (_EventEmitter) {
3229
3212
  s.i18nFormat = createClassOnDemand(this.modules.i18nFormat);
3230
3213
  if (s.i18nFormat.init) s.i18nFormat.init(this);
3231
3214
  }
3232
- this.translator = new Translator(this.services, this.options);
3215
+ this.translator = new Translator$1(this.services, this.options);
3233
3216
  this.translator.on('*', function (event) {
3234
3217
  for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
3235
3218
  args[_key2 - 1] = arguments[_key2];
@@ -3589,7 +3572,7 @@ var I18n = function (_EventEmitter) {
3589
3572
  clone.services.utils = {
3590
3573
  hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)
3591
3574
  };
3592
- clone.translator = new Translator(clone.services, clone.options);
3575
+ clone.translator = new Translator$1(clone.services, clone.options);
3593
3576
  clone.translator.on('*', function (event) {
3594
3577
  for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
3595
3578
  args[_key4 - 1] = arguments[_key4];
@@ -3643,20 +3626,23 @@ instance.loadLanguages;
3643
3626
  var en = {
3644
3627
  translation: {
3645
3628
  categorize: {
3646
- limitMaxChoicesPerCategory: "You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",
3647
- maxChoicesPerCategoryRestriction: 'To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].'
3629
+ limitMaxChoicesPerCategory:
3630
+ "You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",
3631
+ maxChoicesPerCategoryRestriction:
3632
+ 'To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].',
3648
3633
  },
3649
3634
  ebsr: {
3650
- part: 'Part {{index}}'
3635
+ part: 'Part {{index}}',
3651
3636
  },
3652
3637
  numberLine: {
3653
3638
  addElementLimit_one: 'You can only add {{count}} element',
3654
3639
  addElementLimit_other: 'You can only add {{count}} elements',
3655
- clearAll: 'Clear all'
3640
+ clearAll: 'Clear all',
3656
3641
  },
3657
3642
  imageClozeAssociation: {
3658
- reachedLimit_one: 'You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.',
3659
- reachedLimit_other: 'Full'
3643
+ reachedLimit_one:
3644
+ 'You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.',
3645
+ reachedLimit_other: 'Full',
3660
3646
  },
3661
3647
  drawingResponse: {
3662
3648
  fillColor: 'Fill color',
@@ -3672,7 +3658,7 @@ var en = {
3672
3658
  green: 'Green',
3673
3659
  white: 'White',
3674
3660
  black: 'Black',
3675
- onDoubleClick: 'Double click to edit this text. Press Enter to submit.'
3661
+ onDoubleClick: 'Double click to edit this text. Press Enter to submit.',
3676
3662
  },
3677
3663
  charting: {
3678
3664
  addCategory: 'Add category',
@@ -3684,8 +3670,8 @@ var en = {
3684
3670
  keyLegend: {
3685
3671
  incorrectAnswer: 'Student incorrect answer',
3686
3672
  correctAnswer: 'Student correct answer',
3687
- correctKeyAnswer: 'Answer key correct'
3688
- }
3673
+ correctKeyAnswer: 'Answer key correct',
3674
+ },
3689
3675
  },
3690
3676
  graphing: {
3691
3677
  point: 'Point',
@@ -3701,24 +3687,25 @@ var en = {
3701
3687
  vector: 'Vector',
3702
3688
  label: 'Label',
3703
3689
  redo: 'Redo',
3704
- reset: 'Reset'
3690
+ reset: 'Reset',
3705
3691
  },
3706
3692
  mathInline: {
3707
- primaryCorrectWithAlternates: '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.'
3693
+ primaryCorrectWithAlternates:
3694
+ '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.',
3708
3695
  },
3709
3696
  multipleChoice: {
3710
3697
  minSelections: 'Select at least {{minSelections}}.',
3711
3698
  maxSelections_one: 'Only {{maxSelections}} answer is allowed.',
3712
3699
  maxSelections_other: 'Only {{maxSelections}} answers are allowed.',
3713
3700
  minmaxSelections_equal: 'Select {{minSelections}}.',
3714
- minmaxSelections_range: 'Select between {{minSelections}} and {{maxSelections}}.'
3701
+ minmaxSelections_range: 'Select between {{minSelections}} and {{maxSelections}}.',
3715
3702
  },
3716
3703
  selectText: {
3717
3704
  correctAnswerSelected: 'Correct',
3718
3705
  correctAnswerNotSelected: 'Correct Answer Not Selected',
3719
3706
  incorrectSelection: 'Incorrect Selection',
3720
- key: 'Key'
3721
- }
3707
+ key: 'Key',
3708
+ },
3722
3709
  },
3723
3710
  common: {
3724
3711
  undo: 'Undo',
@@ -3727,31 +3714,35 @@ var en = {
3727
3714
  incorrect: 'Incorrect',
3728
3715
  showCorrectAnswer: 'Show correct answer',
3729
3716
  hideCorrectAnswer: 'Hide correct answer',
3730
- commonCorrectAnswerWithAlternates: '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.',
3717
+ commonCorrectAnswerWithAlternates:
3718
+ '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.',
3731
3719
  warning: 'Warning',
3732
3720
  showNote: 'Show Note',
3733
3721
  hideNote: 'Hide Note',
3734
- cancel: 'Cancel'
3735
- }
3722
+ cancel: 'Cancel',
3723
+ },
3736
3724
  };
3737
3725
 
3738
3726
  var es = {
3739
3727
  translation: {
3740
3728
  categorize: {
3741
- limitMaxChoicesPerCategory: 'Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',
3742
- maxChoicesPerCategoryRestriction: 'Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta'
3729
+ limitMaxChoicesPerCategory:
3730
+ 'Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',
3731
+ maxChoicesPerCategoryRestriction:
3732
+ 'Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta',
3743
3733
  },
3744
3734
  ebsr: {
3745
- part: 'Parte {{index}}'
3735
+ part: 'Parte {{index}}',
3746
3736
  },
3747
3737
  numberLine: {
3748
3738
  addElementLimit_one: 'Solo puedes agregar {{count}} elemento',
3749
3739
  addElementLimit_other: 'Solo puedes agregar {{count}} elementos',
3750
- clearAll: 'Borrar todo'
3740
+ clearAll: 'Borrar todo',
3751
3741
  },
3752
3742
  imageClozeAssociation: {
3753
- reachedLimit_one: 'Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',
3754
- reachedLimit_other: 'Lleno'
3743
+ reachedLimit_one:
3744
+ 'Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',
3745
+ reachedLimit_other: 'Lleno',
3755
3746
  },
3756
3747
  drawingResponse: {
3757
3748
  fillColor: 'Color de relleno',
@@ -3767,7 +3758,7 @@ var es = {
3767
3758
  green: 'Verde',
3768
3759
  white: 'Blanco',
3769
3760
  black: 'Negro',
3770
- onDoubleClick: 'Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar'
3761
+ onDoubleClick: 'Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar',
3771
3762
  },
3772
3763
  charting: {
3773
3764
  addCategory: 'Añadir categoría',
@@ -3779,8 +3770,8 @@ var es = {
3779
3770
  keyLegend: {
3780
3771
  incorrectAnswer: 'Respuesta incorrecta del estudiante',
3781
3772
  correctAnswer: 'Respuesta correcta del estudiante',
3782
- correctKeyAnswer: 'Clave de respuesta correcta'
3783
- }
3773
+ correctKeyAnswer: 'Clave de respuesta correcta',
3774
+ },
3784
3775
  },
3785
3776
  graphing: {
3786
3777
  point: 'Punto',
@@ -3796,24 +3787,25 @@ var es = {
3796
3787
  vector: 'Vector',
3797
3788
  label: 'Etiqueta',
3798
3789
  redo: 'Rehacer',
3799
- reset: 'Reiniciar'
3790
+ reset: 'Reiniciar',
3800
3791
  },
3801
3792
  mathInline: {
3802
- primaryCorrectWithAlternates: '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.'
3793
+ primaryCorrectWithAlternates:
3794
+ '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.',
3803
3795
  },
3804
3796
  multipleChoice: {
3805
3797
  minSelections: 'Seleccione al menos {{minSelections}}.',
3806
3798
  maxSelections_one: 'Sólo se permite {{maxSelections}} respuesta.',
3807
3799
  maxSelections_other: 'Sólo se permiten {{maxSelections}} respuestas.',
3808
3800
  minmaxSelections_equal: 'Seleccione {{minSelections}}.',
3809
- minmaxSelections_range: 'Seleccione entre {{minSelections}} y {{maxSelections}}.'
3801
+ minmaxSelections_range: 'Seleccione entre {{minSelections}} y {{maxSelections}}.',
3810
3802
  },
3811
3803
  selectText: {
3812
3804
  correctAnswerSelected: 'Respuesta Correcta',
3813
3805
  correctAnswerNotSelected: 'Respuesta Correcta No Seleccionada',
3814
3806
  incorrectSelection: 'Selección Incorrecta',
3815
- key: 'Clave'
3816
- }
3807
+ key: 'Clave',
3808
+ },
3817
3809
  },
3818
3810
  common: {
3819
3811
  undo: 'Deshacer',
@@ -3822,12 +3814,13 @@ var es = {
3822
3814
  incorrect: 'Incorrect',
3823
3815
  showCorrectAnswer: 'Mostrar respuesta correcta',
3824
3816
  hideCorrectAnswer: 'Ocultar respuesta correcta',
3825
- commonCorrectAnswerWithAlternates: '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.',
3817
+ commonCorrectAnswerWithAlternates:
3818
+ '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.',
3826
3819
  warning: 'Advertencia',
3827
3820
  showNote: 'Mostrar Nota',
3828
3821
  hideNote: 'Ocultar Nota',
3829
- cancel: 'Cancelar'
3830
- }
3822
+ cancel: 'Cancelar',
3823
+ },
3831
3824
  };
3832
3825
 
3833
3826
  instance.init({
@@ -3836,15 +3829,15 @@ instance.init({
3836
3829
  debug: true,
3837
3830
  resources: {
3838
3831
  en: en,
3839
- es: es
3840
- }
3832
+ es: es,
3833
+ },
3841
3834
  });
3842
- var index = {
3843
- translator: _extends({}, instance, {
3835
+
3836
+ var Translator = {
3837
+ translator: {
3838
+ ...instance,
3844
3839
  t: (key, options) => {
3845
- const {
3846
- lng
3847
- } = options;
3840
+ const { lng } = options;
3848
3841
 
3849
3842
  switch (lng) {
3850
3843
  // these keys don't work with plurals, don't know why, so I added a workaround to convert them to the correct lng
@@ -3852,7 +3845,6 @@ var index = {
3852
3845
  case 'en-US':
3853
3846
  options.lng = 'en';
3854
3847
  break;
3855
-
3856
3848
  case 'es_ES':
3857
3849
  case 'es-ES':
3858
3850
  case 'es_MX':
@@ -3860,19 +3852,13 @@ var index = {
3860
3852
  options.lng = 'es';
3861
3853
  break;
3862
3854
  }
3863
-
3864
- return instance.t(key, _extends({
3865
- lng
3866
- }, options));
3867
- }
3868
- }),
3869
- languageOptions: [{
3870
- value: 'en_US',
3871
- label: 'English (US)'
3872
- }, {
3873
- value: 'es_ES',
3874
- label: 'Spanish'
3875
- }]
3855
+ return instance.t(key, { lng, ...options });
3856
+ },
3857
+ },
3858
+ languageOptions: [
3859
+ { value: 'en_US', label: 'English (US)' },
3860
+ { value: 'es_ES', label: 'Spanish' },
3861
+ ],
3876
3862
  };
3877
3863
 
3878
3864
  // Should be exactly the same as configure/defaults.js
@@ -3917,816 +3903,159 @@ const enabled = (config, env, defaultValue) => {
3917
3903
  return typeof defaultValue === 'boolean' ? defaultValue : true;
3918
3904
  };
3919
3905
 
3920
- var partialScoring = /*#__PURE__*/Object.freeze({
3921
- __proto__: null,
3922
- enabled: enabled
3923
- });
3906
+ var getNative = _getNative;
3924
3907
 
3925
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
3908
+ /* Built-in method references that are verified to be native. */
3909
+ var nativeCreate$4 = getNative(Object, 'create');
3910
+
3911
+ var _nativeCreate = nativeCreate$4;
3912
+
3913
+ var nativeCreate$3 = _nativeCreate;
3926
3914
 
3927
3915
  /**
3928
- * Checks if `value` is classified as an `Array` object.
3929
- *
3930
- * @static
3931
- * @memberOf _
3932
- * @since 0.1.0
3933
- * @category Lang
3934
- * @param {*} value The value to check.
3935
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
3936
- * @example
3937
- *
3938
- * _.isArray([1, 2, 3]);
3939
- * // => true
3940
- *
3941
- * _.isArray(document.body.children);
3942
- * // => false
3943
- *
3944
- * _.isArray('abc');
3945
- * // => false
3916
+ * Removes all key-value entries from the hash.
3946
3917
  *
3947
- * _.isArray(_.noop);
3948
- * // => false
3918
+ * @private
3919
+ * @name clear
3920
+ * @memberOf Hash
3949
3921
  */
3950
-
3951
- var isArray_1;
3952
- var hasRequiredIsArray;
3953
-
3954
- function requireIsArray () {
3955
- if (hasRequiredIsArray) return isArray_1;
3956
- hasRequiredIsArray = 1;
3957
- var isArray = Array.isArray;
3958
-
3959
- isArray_1 = isArray;
3960
- return isArray_1;
3961
- }
3962
-
3963
- /** Detect free variable `global` from Node.js. */
3964
-
3965
- var _freeGlobal;
3966
- var hasRequired_freeGlobal;
3967
-
3968
- function require_freeGlobal () {
3969
- if (hasRequired_freeGlobal) return _freeGlobal;
3970
- hasRequired_freeGlobal = 1;
3971
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
3972
-
3973
- _freeGlobal = freeGlobal;
3974
- return _freeGlobal;
3922
+ function hashClear$1() {
3923
+ this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
3924
+ this.size = 0;
3975
3925
  }
3976
3926
 
3977
- var _root;
3978
- var hasRequired_root;
3979
-
3980
- function require_root () {
3981
- if (hasRequired_root) return _root;
3982
- hasRequired_root = 1;
3983
- var freeGlobal = require_freeGlobal();
3927
+ var _hashClear = hashClear$1;
3984
3928
 
3985
- /** Detect free variable `self`. */
3986
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
3987
-
3988
- /** Used as a reference to the global object. */
3989
- var root = freeGlobal || freeSelf || Function('return this')();
3929
+ /**
3930
+ * Removes `key` and its value from the hash.
3931
+ *
3932
+ * @private
3933
+ * @name delete
3934
+ * @memberOf Hash
3935
+ * @param {Object} hash The hash to modify.
3936
+ * @param {string} key The key of the value to remove.
3937
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
3938
+ */
3990
3939
 
3991
- _root = root;
3992
- return _root;
3940
+ function hashDelete$1(key) {
3941
+ var result = this.has(key) && delete this.__data__[key];
3942
+ this.size -= result ? 1 : 0;
3943
+ return result;
3993
3944
  }
3994
3945
 
3995
- var _Symbol;
3996
- var hasRequired_Symbol;
3997
-
3998
- function require_Symbol () {
3999
- if (hasRequired_Symbol) return _Symbol;
4000
- hasRequired_Symbol = 1;
4001
- var root = require_root();
3946
+ var _hashDelete = hashDelete$1;
4002
3947
 
4003
- /** Built-in value references. */
4004
- var Symbol = root.Symbol;
3948
+ var nativeCreate$2 = _nativeCreate;
4005
3949
 
4006
- _Symbol = Symbol;
4007
- return _Symbol;
4008
- }
4009
-
4010
- var _getRawTag;
4011
- var hasRequired_getRawTag;
4012
-
4013
- function require_getRawTag () {
4014
- if (hasRequired_getRawTag) return _getRawTag;
4015
- hasRequired_getRawTag = 1;
4016
- var Symbol = require_Symbol();
4017
-
4018
- /** Used for built-in method references. */
4019
- var objectProto = Object.prototype;
4020
-
4021
- /** Used to check objects for own properties. */
4022
- var hasOwnProperty = objectProto.hasOwnProperty;
4023
-
4024
- /**
4025
- * Used to resolve the
4026
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
4027
- * of values.
4028
- */
4029
- var nativeObjectToString = objectProto.toString;
4030
-
4031
- /** Built-in value references. */
4032
- var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
4033
-
4034
- /**
4035
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
4036
- *
4037
- * @private
4038
- * @param {*} value The value to query.
4039
- * @returns {string} Returns the raw `toStringTag`.
4040
- */
4041
- function getRawTag(value) {
4042
- var isOwn = hasOwnProperty.call(value, symToStringTag),
4043
- tag = value[symToStringTag];
4044
-
4045
- try {
4046
- value[symToStringTag] = undefined;
4047
- var unmasked = true;
4048
- } catch (e) {}
4049
-
4050
- var result = nativeObjectToString.call(value);
4051
- if (unmasked) {
4052
- if (isOwn) {
4053
- value[symToStringTag] = tag;
4054
- } else {
4055
- delete value[symToStringTag];
4056
- }
4057
- }
4058
- return result;
4059
- }
4060
-
4061
- _getRawTag = getRawTag;
4062
- return _getRawTag;
4063
- }
3950
+ /** Used to stand-in for `undefined` hash values. */
3951
+ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
4064
3952
 
4065
3953
  /** Used for built-in method references. */
3954
+ var objectProto$1 = Object.prototype;
4066
3955
 
4067
- var _objectToString;
4068
- var hasRequired_objectToString;
4069
-
4070
- function require_objectToString () {
4071
- if (hasRequired_objectToString) return _objectToString;
4072
- hasRequired_objectToString = 1;
4073
- var objectProto = Object.prototype;
4074
-
4075
- /**
4076
- * Used to resolve the
4077
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
4078
- * of values.
4079
- */
4080
- var nativeObjectToString = objectProto.toString;
4081
-
4082
- /**
4083
- * Converts `value` to a string using `Object.prototype.toString`.
4084
- *
4085
- * @private
4086
- * @param {*} value The value to convert.
4087
- * @returns {string} Returns the converted string.
4088
- */
4089
- function objectToString(value) {
4090
- return nativeObjectToString.call(value);
4091
- }
4092
-
4093
- _objectToString = objectToString;
4094
- return _objectToString;
4095
- }
4096
-
4097
- var _baseGetTag;
4098
- var hasRequired_baseGetTag;
4099
-
4100
- function require_baseGetTag () {
4101
- if (hasRequired_baseGetTag) return _baseGetTag;
4102
- hasRequired_baseGetTag = 1;
4103
- var Symbol = require_Symbol(),
4104
- getRawTag = require_getRawTag(),
4105
- objectToString = require_objectToString();
4106
-
4107
- /** `Object#toString` result references. */
4108
- var nullTag = '[object Null]',
4109
- undefinedTag = '[object Undefined]';
4110
-
4111
- /** Built-in value references. */
4112
- var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
4113
-
4114
- /**
4115
- * The base implementation of `getTag` without fallbacks for buggy environments.
4116
- *
4117
- * @private
4118
- * @param {*} value The value to query.
4119
- * @returns {string} Returns the `toStringTag`.
4120
- */
4121
- function baseGetTag(value) {
4122
- if (value == null) {
4123
- return value === undefined ? undefinedTag : nullTag;
4124
- }
4125
- return (symToStringTag && symToStringTag in Object(value))
4126
- ? getRawTag(value)
4127
- : objectToString(value);
4128
- }
4129
-
4130
- _baseGetTag = baseGetTag;
4131
- return _baseGetTag;
4132
- }
3956
+ /** Used to check objects for own properties. */
3957
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
4133
3958
 
4134
3959
  /**
4135
- * Checks if `value` is object-like. A value is object-like if it's not `null`
4136
- * and has a `typeof` result of "object".
4137
- *
4138
- * @static
4139
- * @memberOf _
4140
- * @since 4.0.0
4141
- * @category Lang
4142
- * @param {*} value The value to check.
4143
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
4144
- * @example
4145
- *
4146
- * _.isObjectLike({});
4147
- * // => true
3960
+ * Gets the hash value for `key`.
4148
3961
  *
4149
- * _.isObjectLike([1, 2, 3]);
4150
- * // => true
4151
- *
4152
- * _.isObjectLike(_.noop);
4153
- * // => false
4154
- *
4155
- * _.isObjectLike(null);
4156
- * // => false
3962
+ * @private
3963
+ * @name get
3964
+ * @memberOf Hash
3965
+ * @param {string} key The key of the value to get.
3966
+ * @returns {*} Returns the entry value.
4157
3967
  */
3968
+ function hashGet$1(key) {
3969
+ var data = this.__data__;
3970
+ if (nativeCreate$2) {
3971
+ var result = data[key];
3972
+ return result === HASH_UNDEFINED$1 ? undefined : result;
3973
+ }
3974
+ return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
3975
+ }
4158
3976
 
4159
- var isObjectLike_1;
4160
- var hasRequiredIsObjectLike;
4161
-
4162
- function requireIsObjectLike () {
4163
- if (hasRequiredIsObjectLike) return isObjectLike_1;
4164
- hasRequiredIsObjectLike = 1;
4165
- function isObjectLike(value) {
4166
- return value != null && typeof value == 'object';
4167
- }
3977
+ var _hashGet = hashGet$1;
4168
3978
 
4169
- isObjectLike_1 = isObjectLike;
4170
- return isObjectLike_1;
4171
- }
3979
+ var nativeCreate$1 = _nativeCreate;
4172
3980
 
4173
- var isSymbol_1;
4174
- var hasRequiredIsSymbol;
4175
-
4176
- function requireIsSymbol () {
4177
- if (hasRequiredIsSymbol) return isSymbol_1;
4178
- hasRequiredIsSymbol = 1;
4179
- var baseGetTag = require_baseGetTag(),
4180
- isObjectLike = requireIsObjectLike();
4181
-
4182
- /** `Object#toString` result references. */
4183
- var symbolTag = '[object Symbol]';
4184
-
4185
- /**
4186
- * Checks if `value` is classified as a `Symbol` primitive or object.
4187
- *
4188
- * @static
4189
- * @memberOf _
4190
- * @since 4.0.0
4191
- * @category Lang
4192
- * @param {*} value The value to check.
4193
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
4194
- * @example
4195
- *
4196
- * _.isSymbol(Symbol.iterator);
4197
- * // => true
4198
- *
4199
- * _.isSymbol('abc');
4200
- * // => false
4201
- */
4202
- function isSymbol(value) {
4203
- return typeof value == 'symbol' ||
4204
- (isObjectLike(value) && baseGetTag(value) == symbolTag);
4205
- }
4206
-
4207
- isSymbol_1 = isSymbol;
4208
- return isSymbol_1;
4209
- }
3981
+ /** Used for built-in method references. */
3982
+ var objectProto = Object.prototype;
4210
3983
 
4211
- var _isKey;
4212
- var hasRequired_isKey;
4213
-
4214
- function require_isKey () {
4215
- if (hasRequired_isKey) return _isKey;
4216
- hasRequired_isKey = 1;
4217
- var isArray = requireIsArray(),
4218
- isSymbol = requireIsSymbol();
4219
-
4220
- /** Used to match property names within property paths. */
4221
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
4222
- reIsPlainProp = /^\w*$/;
4223
-
4224
- /**
4225
- * Checks if `value` is a property name and not a property path.
4226
- *
4227
- * @private
4228
- * @param {*} value The value to check.
4229
- * @param {Object} [object] The object to query keys on.
4230
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
4231
- */
4232
- function isKey(value, object) {
4233
- if (isArray(value)) {
4234
- return false;
4235
- }
4236
- var type = typeof value;
4237
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
4238
- value == null || isSymbol(value)) {
4239
- return true;
4240
- }
4241
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
4242
- (object != null && value in Object(object));
4243
- }
4244
-
4245
- _isKey = isKey;
4246
- return _isKey;
4247
- }
3984
+ /** Used to check objects for own properties. */
3985
+ var hasOwnProperty = objectProto.hasOwnProperty;
4248
3986
 
4249
3987
  /**
4250
- * Checks if `value` is the
4251
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
4252
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
4253
- *
4254
- * @static
4255
- * @memberOf _
4256
- * @since 0.1.0
4257
- * @category Lang
4258
- * @param {*} value The value to check.
4259
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
4260
- * @example
3988
+ * Checks if a hash value for `key` exists.
4261
3989
  *
4262
- * _.isObject({});
4263
- * // => true
4264
- *
4265
- * _.isObject([1, 2, 3]);
4266
- * // => true
4267
- *
4268
- * _.isObject(_.noop);
4269
- * // => true
4270
- *
4271
- * _.isObject(null);
4272
- * // => false
3990
+ * @private
3991
+ * @name has
3992
+ * @memberOf Hash
3993
+ * @param {string} key The key of the entry to check.
3994
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
4273
3995
  */
4274
-
4275
- var isObject_1;
4276
- var hasRequiredIsObject;
4277
-
4278
- function requireIsObject () {
4279
- if (hasRequiredIsObject) return isObject_1;
4280
- hasRequiredIsObject = 1;
4281
- function isObject(value) {
4282
- var type = typeof value;
4283
- return value != null && (type == 'object' || type == 'function');
4284
- }
4285
-
4286
- isObject_1 = isObject;
4287
- return isObject_1;
4288
- }
4289
-
4290
- var isFunction_1;
4291
- var hasRequiredIsFunction;
4292
-
4293
- function requireIsFunction () {
4294
- if (hasRequiredIsFunction) return isFunction_1;
4295
- hasRequiredIsFunction = 1;
4296
- var baseGetTag = require_baseGetTag(),
4297
- isObject = requireIsObject();
4298
-
4299
- /** `Object#toString` result references. */
4300
- var asyncTag = '[object AsyncFunction]',
4301
- funcTag = '[object Function]',
4302
- genTag = '[object GeneratorFunction]',
4303
- proxyTag = '[object Proxy]';
4304
-
4305
- /**
4306
- * Checks if `value` is classified as a `Function` object.
4307
- *
4308
- * @static
4309
- * @memberOf _
4310
- * @since 0.1.0
4311
- * @category Lang
4312
- * @param {*} value The value to check.
4313
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
4314
- * @example
4315
- *
4316
- * _.isFunction(_);
4317
- * // => true
4318
- *
4319
- * _.isFunction(/abc/);
4320
- * // => false
4321
- */
4322
- function isFunction(value) {
4323
- if (!isObject(value)) {
4324
- return false;
4325
- }
4326
- // The use of `Object#toString` avoids issues with the `typeof` operator
4327
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
4328
- var tag = baseGetTag(value);
4329
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
4330
- }
4331
-
4332
- isFunction_1 = isFunction;
4333
- return isFunction_1;
4334
- }
4335
-
4336
- var _coreJsData;
4337
- var hasRequired_coreJsData;
4338
-
4339
- function require_coreJsData () {
4340
- if (hasRequired_coreJsData) return _coreJsData;
4341
- hasRequired_coreJsData = 1;
4342
- var root = require_root();
4343
-
4344
- /** Used to detect overreaching core-js shims. */
4345
- var coreJsData = root['__core-js_shared__'];
4346
-
4347
- _coreJsData = coreJsData;
4348
- return _coreJsData;
3996
+ function hashHas$1(key) {
3997
+ var data = this.__data__;
3998
+ return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
4349
3999
  }
4350
4000
 
4351
- var _isMasked;
4352
- var hasRequired_isMasked;
4353
-
4354
- function require_isMasked () {
4355
- if (hasRequired_isMasked) return _isMasked;
4356
- hasRequired_isMasked = 1;
4357
- var coreJsData = require_coreJsData();
4358
-
4359
- /** Used to detect methods masquerading as native. */
4360
- var maskSrcKey = (function() {
4361
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
4362
- return uid ? ('Symbol(src)_1.' + uid) : '';
4363
- }());
4364
-
4365
- /**
4366
- * Checks if `func` has its source masked.
4367
- *
4368
- * @private
4369
- * @param {Function} func The function to check.
4370
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
4371
- */
4372
- function isMasked(func) {
4373
- return !!maskSrcKey && (maskSrcKey in func);
4374
- }
4375
-
4376
- _isMasked = isMasked;
4377
- return _isMasked;
4378
- }
4001
+ var _hashHas = hashHas$1;
4379
4002
 
4380
- /** Used for built-in method references. */
4003
+ var nativeCreate = _nativeCreate;
4381
4004
 
4382
- var _toSource;
4383
- var hasRequired_toSource;
4384
-
4385
- function require_toSource () {
4386
- if (hasRequired_toSource) return _toSource;
4387
- hasRequired_toSource = 1;
4388
- var funcProto = Function.prototype;
4389
-
4390
- /** Used to resolve the decompiled source of functions. */
4391
- var funcToString = funcProto.toString;
4392
-
4393
- /**
4394
- * Converts `func` to its source code.
4395
- *
4396
- * @private
4397
- * @param {Function} func The function to convert.
4398
- * @returns {string} Returns the source code.
4399
- */
4400
- function toSource(func) {
4401
- if (func != null) {
4402
- try {
4403
- return funcToString.call(func);
4404
- } catch (e) {}
4405
- try {
4406
- return (func + '');
4407
- } catch (e) {}
4408
- }
4409
- return '';
4410
- }
4411
-
4412
- _toSource = toSource;
4413
- return _toSource;
4414
- }
4415
-
4416
- var _baseIsNative;
4417
- var hasRequired_baseIsNative;
4418
-
4419
- function require_baseIsNative () {
4420
- if (hasRequired_baseIsNative) return _baseIsNative;
4421
- hasRequired_baseIsNative = 1;
4422
- var isFunction = requireIsFunction(),
4423
- isMasked = require_isMasked(),
4424
- isObject = requireIsObject(),
4425
- toSource = require_toSource();
4426
-
4427
- /**
4428
- * Used to match `RegExp`
4429
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
4430
- */
4431
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
4432
-
4433
- /** Used to detect host constructors (Safari). */
4434
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
4435
-
4436
- /** Used for built-in method references. */
4437
- var funcProto = Function.prototype,
4438
- objectProto = Object.prototype;
4439
-
4440
- /** Used to resolve the decompiled source of functions. */
4441
- var funcToString = funcProto.toString;
4442
-
4443
- /** Used to check objects for own properties. */
4444
- var hasOwnProperty = objectProto.hasOwnProperty;
4445
-
4446
- /** Used to detect if a method is native. */
4447
- var reIsNative = RegExp('^' +
4448
- funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
4449
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
4450
- );
4451
-
4452
- /**
4453
- * The base implementation of `_.isNative` without bad shim checks.
4454
- *
4455
- * @private
4456
- * @param {*} value The value to check.
4457
- * @returns {boolean} Returns `true` if `value` is a native function,
4458
- * else `false`.
4459
- */
4460
- function baseIsNative(value) {
4461
- if (!isObject(value) || isMasked(value)) {
4462
- return false;
4463
- }
4464
- var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
4465
- return pattern.test(toSource(value));
4466
- }
4467
-
4468
- _baseIsNative = baseIsNative;
4469
- return _baseIsNative;
4470
- }
4005
+ /** Used to stand-in for `undefined` hash values. */
4006
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
4471
4007
 
4472
4008
  /**
4473
- * Gets the value at `key` of `object`.
4009
+ * Sets the hash `key` to `value`.
4474
4010
  *
4475
4011
  * @private
4476
- * @param {Object} [object] The object to query.
4477
- * @param {string} key The key of the property to get.
4478
- * @returns {*} Returns the property value.
4012
+ * @name set
4013
+ * @memberOf Hash
4014
+ * @param {string} key The key of the value to set.
4015
+ * @param {*} value The value to set.
4016
+ * @returns {Object} Returns the hash instance.
4479
4017
  */
4480
-
4481
- var _getValue;
4482
- var hasRequired_getValue;
4483
-
4484
- function require_getValue () {
4485
- if (hasRequired_getValue) return _getValue;
4486
- hasRequired_getValue = 1;
4487
- function getValue(object, key) {
4488
- return object == null ? undefined : object[key];
4489
- }
4490
-
4491
- _getValue = getValue;
4492
- return _getValue;
4493
- }
4494
-
4495
- var _getNative;
4496
- var hasRequired_getNative;
4497
-
4498
- function require_getNative () {
4499
- if (hasRequired_getNative) return _getNative;
4500
- hasRequired_getNative = 1;
4501
- var baseIsNative = require_baseIsNative(),
4502
- getValue = require_getValue();
4503
-
4504
- /**
4505
- * Gets the native function at `key` of `object`.
4506
- *
4507
- * @private
4508
- * @param {Object} object The object to query.
4509
- * @param {string} key The key of the method to get.
4510
- * @returns {*} Returns the function if it's native, else `undefined`.
4511
- */
4512
- function getNative(object, key) {
4513
- var value = getValue(object, key);
4514
- return baseIsNative(value) ? value : undefined;
4515
- }
4516
-
4517
- _getNative = getNative;
4518
- return _getNative;
4018
+ function hashSet$1(key, value) {
4019
+ var data = this.__data__;
4020
+ this.size += this.has(key) ? 0 : 1;
4021
+ data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
4022
+ return this;
4519
4023
  }
4520
4024
 
4521
- var _nativeCreate;
4522
- var hasRequired_nativeCreate;
4025
+ var _hashSet = hashSet$1;
4523
4026
 
4524
- function require_nativeCreate () {
4525
- if (hasRequired_nativeCreate) return _nativeCreate;
4526
- hasRequired_nativeCreate = 1;
4527
- var getNative = require_getNative();
4528
-
4529
- /* Built-in method references that are verified to be native. */
4530
- var nativeCreate = getNative(Object, 'create');
4531
-
4532
- _nativeCreate = nativeCreate;
4533
- return _nativeCreate;
4534
- }
4535
-
4536
- var _hashClear;
4537
- var hasRequired_hashClear;
4538
-
4539
- function require_hashClear () {
4540
- if (hasRequired_hashClear) return _hashClear;
4541
- hasRequired_hashClear = 1;
4542
- var nativeCreate = require_nativeCreate();
4543
-
4544
- /**
4545
- * Removes all key-value entries from the hash.
4546
- *
4547
- * @private
4548
- * @name clear
4549
- * @memberOf Hash
4550
- */
4551
- function hashClear() {
4552
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
4553
- this.size = 0;
4554
- }
4555
-
4556
- _hashClear = hashClear;
4557
- return _hashClear;
4558
- }
4027
+ var hashClear = _hashClear,
4028
+ hashDelete = _hashDelete,
4029
+ hashGet = _hashGet,
4030
+ hashHas = _hashHas,
4031
+ hashSet = _hashSet;
4559
4032
 
4560
4033
  /**
4561
- * Removes `key` and its value from the hash.
4034
+ * Creates a hash object.
4562
4035
  *
4563
4036
  * @private
4564
- * @name delete
4565
- * @memberOf Hash
4566
- * @param {Object} hash The hash to modify.
4567
- * @param {string} key The key of the value to remove.
4568
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
4037
+ * @constructor
4038
+ * @param {Array} [entries] The key-value pairs to cache.
4569
4039
  */
4570
-
4571
- var _hashDelete;
4572
- var hasRequired_hashDelete;
4573
-
4574
- function require_hashDelete () {
4575
- if (hasRequired_hashDelete) return _hashDelete;
4576
- hasRequired_hashDelete = 1;
4577
- function hashDelete(key) {
4578
- var result = this.has(key) && delete this.__data__[key];
4579
- this.size -= result ? 1 : 0;
4580
- return result;
4581
- }
4582
-
4583
- _hashDelete = hashDelete;
4584
- return _hashDelete;
4585
- }
4586
-
4587
- var _hashGet;
4588
- var hasRequired_hashGet;
4589
-
4590
- function require_hashGet () {
4591
- if (hasRequired_hashGet) return _hashGet;
4592
- hasRequired_hashGet = 1;
4593
- var nativeCreate = require_nativeCreate();
4594
-
4595
- /** Used to stand-in for `undefined` hash values. */
4596
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
4597
-
4598
- /** Used for built-in method references. */
4599
- var objectProto = Object.prototype;
4600
-
4601
- /** Used to check objects for own properties. */
4602
- var hasOwnProperty = objectProto.hasOwnProperty;
4603
-
4604
- /**
4605
- * Gets the hash value for `key`.
4606
- *
4607
- * @private
4608
- * @name get
4609
- * @memberOf Hash
4610
- * @param {string} key The key of the value to get.
4611
- * @returns {*} Returns the entry value.
4612
- */
4613
- function hashGet(key) {
4614
- var data = this.__data__;
4615
- if (nativeCreate) {
4616
- var result = data[key];
4617
- return result === HASH_UNDEFINED ? undefined : result;
4618
- }
4619
- return hasOwnProperty.call(data, key) ? data[key] : undefined;
4620
- }
4621
-
4622
- _hashGet = hashGet;
4623
- return _hashGet;
4624
- }
4625
-
4626
- var _hashHas;
4627
- var hasRequired_hashHas;
4628
-
4629
- function require_hashHas () {
4630
- if (hasRequired_hashHas) return _hashHas;
4631
- hasRequired_hashHas = 1;
4632
- var nativeCreate = require_nativeCreate();
4633
-
4634
- /** Used for built-in method references. */
4635
- var objectProto = Object.prototype;
4636
-
4637
- /** Used to check objects for own properties. */
4638
- var hasOwnProperty = objectProto.hasOwnProperty;
4639
-
4640
- /**
4641
- * Checks if a hash value for `key` exists.
4642
- *
4643
- * @private
4644
- * @name has
4645
- * @memberOf Hash
4646
- * @param {string} key The key of the entry to check.
4647
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
4648
- */
4649
- function hashHas(key) {
4650
- var data = this.__data__;
4651
- return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
4652
- }
4653
-
4654
- _hashHas = hashHas;
4655
- return _hashHas;
4040
+ function Hash$1(entries) {
4041
+ var index = -1,
4042
+ length = entries == null ? 0 : entries.length;
4043
+
4044
+ this.clear();
4045
+ while (++index < length) {
4046
+ var entry = entries[index];
4047
+ this.set(entry[0], entry[1]);
4048
+ }
4656
4049
  }
4657
4050
 
4658
- var _hashSet;
4659
- var hasRequired_hashSet;
4660
-
4661
- function require_hashSet () {
4662
- if (hasRequired_hashSet) return _hashSet;
4663
- hasRequired_hashSet = 1;
4664
- var nativeCreate = require_nativeCreate();
4665
-
4666
- /** Used to stand-in for `undefined` hash values. */
4667
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
4668
-
4669
- /**
4670
- * Sets the hash `key` to `value`.
4671
- *
4672
- * @private
4673
- * @name set
4674
- * @memberOf Hash
4675
- * @param {string} key The key of the value to set.
4676
- * @param {*} value The value to set.
4677
- * @returns {Object} Returns the hash instance.
4678
- */
4679
- function hashSet(key, value) {
4680
- var data = this.__data__;
4681
- this.size += this.has(key) ? 0 : 1;
4682
- data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
4683
- return this;
4684
- }
4685
-
4686
- _hashSet = hashSet;
4687
- return _hashSet;
4688
- }
4051
+ // Add methods to `Hash`.
4052
+ Hash$1.prototype.clear = hashClear;
4053
+ Hash$1.prototype['delete'] = hashDelete;
4054
+ Hash$1.prototype.get = hashGet;
4055
+ Hash$1.prototype.has = hashHas;
4056
+ Hash$1.prototype.set = hashSet;
4689
4057
 
4690
- var _Hash;
4691
- var hasRequired_Hash;
4692
-
4693
- function require_Hash () {
4694
- if (hasRequired_Hash) return _Hash;
4695
- hasRequired_Hash = 1;
4696
- var hashClear = require_hashClear(),
4697
- hashDelete = require_hashDelete(),
4698
- hashGet = require_hashGet(),
4699
- hashHas = require_hashHas(),
4700
- hashSet = require_hashSet();
4701
-
4702
- /**
4703
- * Creates a hash object.
4704
- *
4705
- * @private
4706
- * @constructor
4707
- * @param {Array} [entries] The key-value pairs to cache.
4708
- */
4709
- function Hash(entries) {
4710
- var index = -1,
4711
- length = entries == null ? 0 : entries.length;
4712
-
4713
- this.clear();
4714
- while (++index < length) {
4715
- var entry = entries[index];
4716
- this.set(entry[0], entry[1]);
4717
- }
4718
- }
4719
-
4720
- // Add methods to `Hash`.
4721
- Hash.prototype.clear = hashClear;
4722
- Hash.prototype['delete'] = hashDelete;
4723
- Hash.prototype.get = hashGet;
4724
- Hash.prototype.has = hashHas;
4725
- Hash.prototype.set = hashSet;
4726
-
4727
- _Hash = Hash;
4728
- return _Hash;
4729
- }
4058
+ var _Hash = Hash$1;
4730
4059
 
4731
4060
  /**
4732
4061
  * Removes all key-value entries from the list cache.
@@ -4736,21 +4065,13 @@ function require_Hash () {
4736
4065
  * @memberOf ListCache
4737
4066
  */
4738
4067
 
4739
- var _listCacheClear;
4740
- var hasRequired_listCacheClear;
4741
-
4742
- function require_listCacheClear () {
4743
- if (hasRequired_listCacheClear) return _listCacheClear;
4744
- hasRequired_listCacheClear = 1;
4745
- function listCacheClear() {
4746
- this.__data__ = [];
4747
- this.size = 0;
4748
- }
4749
-
4750
- _listCacheClear = listCacheClear;
4751
- return _listCacheClear;
4068
+ function listCacheClear$1() {
4069
+ this.__data__ = [];
4070
+ this.size = 0;
4752
4071
  }
4753
4072
 
4073
+ var _listCacheClear = listCacheClear$1;
4074
+
4754
4075
  /**
4755
4076
  * Performs a
4756
4077
  * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
@@ -4784,2033 +4105,475 @@ function require_listCacheClear () {
4784
4105
  * // => true
4785
4106
  */
4786
4107
 
4787
- var eq_1;
4788
- var hasRequiredEq;
4789
-
4790
- function requireEq () {
4791
- if (hasRequiredEq) return eq_1;
4792
- hasRequiredEq = 1;
4793
- function eq(value, other) {
4794
- return value === other || (value !== value && other !== other);
4795
- }
4796
-
4797
- eq_1 = eq;
4798
- return eq_1;
4108
+ function eq$1(value, other) {
4109
+ return value === other || (value !== value && other !== other);
4799
4110
  }
4800
4111
 
4801
- var _assocIndexOf;
4802
- var hasRequired_assocIndexOf;
4803
-
4804
- function require_assocIndexOf () {
4805
- if (hasRequired_assocIndexOf) return _assocIndexOf;
4806
- hasRequired_assocIndexOf = 1;
4807
- var eq = requireEq();
4808
-
4809
- /**
4810
- * Gets the index at which the `key` is found in `array` of key-value pairs.
4811
- *
4812
- * @private
4813
- * @param {Array} array The array to inspect.
4814
- * @param {*} key The key to search for.
4815
- * @returns {number} Returns the index of the matched value, else `-1`.
4816
- */
4817
- function assocIndexOf(array, key) {
4818
- var length = array.length;
4819
- while (length--) {
4820
- if (eq(array[length][0], key)) {
4821
- return length;
4822
- }
4823
- }
4824
- return -1;
4825
- }
4826
-
4827
- _assocIndexOf = assocIndexOf;
4828
- return _assocIndexOf;
4829
- }
4112
+ var eq_1 = eq$1;
4830
4113
 
4831
- var _listCacheDelete;
4832
- var hasRequired_listCacheDelete;
4833
-
4834
- function require_listCacheDelete () {
4835
- if (hasRequired_listCacheDelete) return _listCacheDelete;
4836
- hasRequired_listCacheDelete = 1;
4837
- var assocIndexOf = require_assocIndexOf();
4838
-
4839
- /** Used for built-in method references. */
4840
- var arrayProto = Array.prototype;
4841
-
4842
- /** Built-in value references. */
4843
- var splice = arrayProto.splice;
4844
-
4845
- /**
4846
- * Removes `key` and its value from the list cache.
4847
- *
4848
- * @private
4849
- * @name delete
4850
- * @memberOf ListCache
4851
- * @param {string} key The key of the value to remove.
4852
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
4853
- */
4854
- function listCacheDelete(key) {
4855
- var data = this.__data__,
4856
- index = assocIndexOf(data, key);
4857
-
4858
- if (index < 0) {
4859
- return false;
4860
- }
4861
- var lastIndex = data.length - 1;
4862
- if (index == lastIndex) {
4863
- data.pop();
4864
- } else {
4865
- splice.call(data, index, 1);
4866
- }
4867
- --this.size;
4868
- return true;
4869
- }
4870
-
4871
- _listCacheDelete = listCacheDelete;
4872
- return _listCacheDelete;
4873
- }
4874
-
4875
- var _listCacheGet;
4876
- var hasRequired_listCacheGet;
4877
-
4878
- function require_listCacheGet () {
4879
- if (hasRequired_listCacheGet) return _listCacheGet;
4880
- hasRequired_listCacheGet = 1;
4881
- var assocIndexOf = require_assocIndexOf();
4882
-
4883
- /**
4884
- * Gets the list cache value for `key`.
4885
- *
4886
- * @private
4887
- * @name get
4888
- * @memberOf ListCache
4889
- * @param {string} key The key of the value to get.
4890
- * @returns {*} Returns the entry value.
4891
- */
4892
- function listCacheGet(key) {
4893
- var data = this.__data__,
4894
- index = assocIndexOf(data, key);
4895
-
4896
- return index < 0 ? undefined : data[index][1];
4897
- }
4898
-
4899
- _listCacheGet = listCacheGet;
4900
- return _listCacheGet;
4901
- }
4902
-
4903
- var _listCacheHas;
4904
- var hasRequired_listCacheHas;
4905
-
4906
- function require_listCacheHas () {
4907
- if (hasRequired_listCacheHas) return _listCacheHas;
4908
- hasRequired_listCacheHas = 1;
4909
- var assocIndexOf = require_assocIndexOf();
4910
-
4911
- /**
4912
- * Checks if a list cache value for `key` exists.
4913
- *
4914
- * @private
4915
- * @name has
4916
- * @memberOf ListCache
4917
- * @param {string} key The key of the entry to check.
4918
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
4919
- */
4920
- function listCacheHas(key) {
4921
- return assocIndexOf(this.__data__, key) > -1;
4922
- }
4923
-
4924
- _listCacheHas = listCacheHas;
4925
- return _listCacheHas;
4926
- }
4927
-
4928
- var _listCacheSet;
4929
- var hasRequired_listCacheSet;
4930
-
4931
- function require_listCacheSet () {
4932
- if (hasRequired_listCacheSet) return _listCacheSet;
4933
- hasRequired_listCacheSet = 1;
4934
- var assocIndexOf = require_assocIndexOf();
4935
-
4936
- /**
4937
- * Sets the list cache `key` to `value`.
4938
- *
4939
- * @private
4940
- * @name set
4941
- * @memberOf ListCache
4942
- * @param {string} key The key of the value to set.
4943
- * @param {*} value The value to set.
4944
- * @returns {Object} Returns the list cache instance.
4945
- */
4946
- function listCacheSet(key, value) {
4947
- var data = this.__data__,
4948
- index = assocIndexOf(data, key);
4949
-
4950
- if (index < 0) {
4951
- ++this.size;
4952
- data.push([key, value]);
4953
- } else {
4954
- data[index][1] = value;
4955
- }
4956
- return this;
4957
- }
4958
-
4959
- _listCacheSet = listCacheSet;
4960
- return _listCacheSet;
4961
- }
4114
+ var eq = eq_1;
4962
4115
 
4963
- var _ListCache;
4964
- var hasRequired_ListCache;
4965
-
4966
- function require_ListCache () {
4967
- if (hasRequired_ListCache) return _ListCache;
4968
- hasRequired_ListCache = 1;
4969
- var listCacheClear = require_listCacheClear(),
4970
- listCacheDelete = require_listCacheDelete(),
4971
- listCacheGet = require_listCacheGet(),
4972
- listCacheHas = require_listCacheHas(),
4973
- listCacheSet = require_listCacheSet();
4974
-
4975
- /**
4976
- * Creates an list cache object.
4977
- *
4978
- * @private
4979
- * @constructor
4980
- * @param {Array} [entries] The key-value pairs to cache.
4981
- */
4982
- function ListCache(entries) {
4983
- var index = -1,
4984
- length = entries == null ? 0 : entries.length;
4985
-
4986
- this.clear();
4987
- while (++index < length) {
4988
- var entry = entries[index];
4989
- this.set(entry[0], entry[1]);
4990
- }
4991
- }
4992
-
4993
- // Add methods to `ListCache`.
4994
- ListCache.prototype.clear = listCacheClear;
4995
- ListCache.prototype['delete'] = listCacheDelete;
4996
- ListCache.prototype.get = listCacheGet;
4997
- ListCache.prototype.has = listCacheHas;
4998
- ListCache.prototype.set = listCacheSet;
4999
-
5000
- _ListCache = ListCache;
5001
- return _ListCache;
4116
+ /**
4117
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
4118
+ *
4119
+ * @private
4120
+ * @param {Array} array The array to inspect.
4121
+ * @param {*} key The key to search for.
4122
+ * @returns {number} Returns the index of the matched value, else `-1`.
4123
+ */
4124
+ function assocIndexOf$4(array, key) {
4125
+ var length = array.length;
4126
+ while (length--) {
4127
+ if (eq(array[length][0], key)) {
4128
+ return length;
4129
+ }
4130
+ }
4131
+ return -1;
5002
4132
  }
5003
4133
 
5004
- var _Map;
5005
- var hasRequired_Map;
5006
-
5007
- function require_Map () {
5008
- if (hasRequired_Map) return _Map;
5009
- hasRequired_Map = 1;
5010
- var getNative = require_getNative(),
5011
- root = require_root();
4134
+ var _assocIndexOf = assocIndexOf$4;
5012
4135
 
5013
- /* Built-in method references that are verified to be native. */
5014
- var Map = getNative(root, 'Map');
4136
+ var assocIndexOf$3 = _assocIndexOf;
5015
4137
 
5016
- _Map = Map;
5017
- return _Map;
5018
- }
4138
+ /** Used for built-in method references. */
4139
+ var arrayProto = Array.prototype;
5019
4140
 
5020
- var _mapCacheClear;
5021
- var hasRequired_mapCacheClear;
5022
-
5023
- function require_mapCacheClear () {
5024
- if (hasRequired_mapCacheClear) return _mapCacheClear;
5025
- hasRequired_mapCacheClear = 1;
5026
- var Hash = require_Hash(),
5027
- ListCache = require_ListCache(),
5028
- Map = require_Map();
5029
-
5030
- /**
5031
- * Removes all key-value entries from the map.
5032
- *
5033
- * @private
5034
- * @name clear
5035
- * @memberOf MapCache
5036
- */
5037
- function mapCacheClear() {
5038
- this.size = 0;
5039
- this.__data__ = {
5040
- 'hash': new Hash,
5041
- 'map': new (Map || ListCache),
5042
- 'string': new Hash
5043
- };
5044
- }
5045
-
5046
- _mapCacheClear = mapCacheClear;
5047
- return _mapCacheClear;
5048
- }
4141
+ /** Built-in value references. */
4142
+ var splice = arrayProto.splice;
5049
4143
 
5050
4144
  /**
5051
- * Checks if `value` is suitable for use as unique object key.
4145
+ * Removes `key` and its value from the list cache.
5052
4146
  *
5053
4147
  * @private
5054
- * @param {*} value The value to check.
5055
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
4148
+ * @name delete
4149
+ * @memberOf ListCache
4150
+ * @param {string} key The key of the value to remove.
4151
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
5056
4152
  */
4153
+ function listCacheDelete$1(key) {
4154
+ var data = this.__data__,
4155
+ index = assocIndexOf$3(data, key);
5057
4156
 
5058
- var _isKeyable;
5059
- var hasRequired_isKeyable;
5060
-
5061
- function require_isKeyable () {
5062
- if (hasRequired_isKeyable) return _isKeyable;
5063
- hasRequired_isKeyable = 1;
5064
- function isKeyable(value) {
5065
- var type = typeof value;
5066
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
5067
- ? (value !== '__proto__')
5068
- : (value === null);
5069
- }
5070
-
5071
- _isKeyable = isKeyable;
5072
- return _isKeyable;
5073
- }
5074
-
5075
- var _getMapData;
5076
- var hasRequired_getMapData;
5077
-
5078
- function require_getMapData () {
5079
- if (hasRequired_getMapData) return _getMapData;
5080
- hasRequired_getMapData = 1;
5081
- var isKeyable = require_isKeyable();
5082
-
5083
- /**
5084
- * Gets the data for `map`.
5085
- *
5086
- * @private
5087
- * @param {Object} map The map to query.
5088
- * @param {string} key The reference key.
5089
- * @returns {*} Returns the map data.
5090
- */
5091
- function getMapData(map, key) {
5092
- var data = map.__data__;
5093
- return isKeyable(key)
5094
- ? data[typeof key == 'string' ? 'string' : 'hash']
5095
- : data.map;
5096
- }
5097
-
5098
- _getMapData = getMapData;
5099
- return _getMapData;
5100
- }
5101
-
5102
- var _mapCacheDelete;
5103
- var hasRequired_mapCacheDelete;
5104
-
5105
- function require_mapCacheDelete () {
5106
- if (hasRequired_mapCacheDelete) return _mapCacheDelete;
5107
- hasRequired_mapCacheDelete = 1;
5108
- var getMapData = require_getMapData();
5109
-
5110
- /**
5111
- * Removes `key` and its value from the map.
5112
- *
5113
- * @private
5114
- * @name delete
5115
- * @memberOf MapCache
5116
- * @param {string} key The key of the value to remove.
5117
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
5118
- */
5119
- function mapCacheDelete(key) {
5120
- var result = getMapData(this, key)['delete'](key);
5121
- this.size -= result ? 1 : 0;
5122
- return result;
5123
- }
5124
-
5125
- _mapCacheDelete = mapCacheDelete;
5126
- return _mapCacheDelete;
5127
- }
5128
-
5129
- var _mapCacheGet;
5130
- var hasRequired_mapCacheGet;
5131
-
5132
- function require_mapCacheGet () {
5133
- if (hasRequired_mapCacheGet) return _mapCacheGet;
5134
- hasRequired_mapCacheGet = 1;
5135
- var getMapData = require_getMapData();
5136
-
5137
- /**
5138
- * Gets the map value for `key`.
5139
- *
5140
- * @private
5141
- * @name get
5142
- * @memberOf MapCache
5143
- * @param {string} key The key of the value to get.
5144
- * @returns {*} Returns the entry value.
5145
- */
5146
- function mapCacheGet(key) {
5147
- return getMapData(this, key).get(key);
5148
- }
5149
-
5150
- _mapCacheGet = mapCacheGet;
5151
- return _mapCacheGet;
4157
+ if (index < 0) {
4158
+ return false;
4159
+ }
4160
+ var lastIndex = data.length - 1;
4161
+ if (index == lastIndex) {
4162
+ data.pop();
4163
+ } else {
4164
+ splice.call(data, index, 1);
4165
+ }
4166
+ --this.size;
4167
+ return true;
5152
4168
  }
5153
4169
 
5154
- var _mapCacheHas;
5155
- var hasRequired_mapCacheHas;
5156
-
5157
- function require_mapCacheHas () {
5158
- if (hasRequired_mapCacheHas) return _mapCacheHas;
5159
- hasRequired_mapCacheHas = 1;
5160
- var getMapData = require_getMapData();
5161
-
5162
- /**
5163
- * Checks if a map value for `key` exists.
5164
- *
5165
- * @private
5166
- * @name has
5167
- * @memberOf MapCache
5168
- * @param {string} key The key of the entry to check.
5169
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
5170
- */
5171
- function mapCacheHas(key) {
5172
- return getMapData(this, key).has(key);
5173
- }
5174
-
5175
- _mapCacheHas = mapCacheHas;
5176
- return _mapCacheHas;
5177
- }
4170
+ var _listCacheDelete = listCacheDelete$1;
5178
4171
 
5179
- var _mapCacheSet;
5180
- var hasRequired_mapCacheSet;
5181
-
5182
- function require_mapCacheSet () {
5183
- if (hasRequired_mapCacheSet) return _mapCacheSet;
5184
- hasRequired_mapCacheSet = 1;
5185
- var getMapData = require_getMapData();
5186
-
5187
- /**
5188
- * Sets the map `key` to `value`.
5189
- *
5190
- * @private
5191
- * @name set
5192
- * @memberOf MapCache
5193
- * @param {string} key The key of the value to set.
5194
- * @param {*} value The value to set.
5195
- * @returns {Object} Returns the map cache instance.
5196
- */
5197
- function mapCacheSet(key, value) {
5198
- var data = getMapData(this, key),
5199
- size = data.size;
5200
-
5201
- data.set(key, value);
5202
- this.size += data.size == size ? 0 : 1;
5203
- return this;
5204
- }
5205
-
5206
- _mapCacheSet = mapCacheSet;
5207
- return _mapCacheSet;
5208
- }
4172
+ var assocIndexOf$2 = _assocIndexOf;
5209
4173
 
5210
- var _MapCache;
5211
- var hasRequired_MapCache;
5212
-
5213
- function require_MapCache () {
5214
- if (hasRequired_MapCache) return _MapCache;
5215
- hasRequired_MapCache = 1;
5216
- var mapCacheClear = require_mapCacheClear(),
5217
- mapCacheDelete = require_mapCacheDelete(),
5218
- mapCacheGet = require_mapCacheGet(),
5219
- mapCacheHas = require_mapCacheHas(),
5220
- mapCacheSet = require_mapCacheSet();
5221
-
5222
- /**
5223
- * Creates a map cache object to store key-value pairs.
5224
- *
5225
- * @private
5226
- * @constructor
5227
- * @param {Array} [entries] The key-value pairs to cache.
5228
- */
5229
- function MapCache(entries) {
5230
- var index = -1,
5231
- length = entries == null ? 0 : entries.length;
5232
-
5233
- this.clear();
5234
- while (++index < length) {
5235
- var entry = entries[index];
5236
- this.set(entry[0], entry[1]);
5237
- }
5238
- }
5239
-
5240
- // Add methods to `MapCache`.
5241
- MapCache.prototype.clear = mapCacheClear;
5242
- MapCache.prototype['delete'] = mapCacheDelete;
5243
- MapCache.prototype.get = mapCacheGet;
5244
- MapCache.prototype.has = mapCacheHas;
5245
- MapCache.prototype.set = mapCacheSet;
5246
-
5247
- _MapCache = MapCache;
5248
- return _MapCache;
5249
- }
4174
+ /**
4175
+ * Gets the list cache value for `key`.
4176
+ *
4177
+ * @private
4178
+ * @name get
4179
+ * @memberOf ListCache
4180
+ * @param {string} key The key of the value to get.
4181
+ * @returns {*} Returns the entry value.
4182
+ */
4183
+ function listCacheGet$1(key) {
4184
+ var data = this.__data__,
4185
+ index = assocIndexOf$2(data, key);
5250
4186
 
5251
- var memoize_1;
5252
- var hasRequiredMemoize;
5253
-
5254
- function requireMemoize () {
5255
- if (hasRequiredMemoize) return memoize_1;
5256
- hasRequiredMemoize = 1;
5257
- var MapCache = require_MapCache();
5258
-
5259
- /** Error message constants. */
5260
- var FUNC_ERROR_TEXT = 'Expected a function';
5261
-
5262
- /**
5263
- * Creates a function that memoizes the result of `func`. If `resolver` is
5264
- * provided, it determines the cache key for storing the result based on the
5265
- * arguments provided to the memoized function. By default, the first argument
5266
- * provided to the memoized function is used as the map cache key. The `func`
5267
- * is invoked with the `this` binding of the memoized function.
5268
- *
5269
- * **Note:** The cache is exposed as the `cache` property on the memoized
5270
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
5271
- * constructor with one whose instances implement the
5272
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
5273
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
5274
- *
5275
- * @static
5276
- * @memberOf _
5277
- * @since 0.1.0
5278
- * @category Function
5279
- * @param {Function} func The function to have its output memoized.
5280
- * @param {Function} [resolver] The function to resolve the cache key.
5281
- * @returns {Function} Returns the new memoized function.
5282
- * @example
5283
- *
5284
- * var object = { 'a': 1, 'b': 2 };
5285
- * var other = { 'c': 3, 'd': 4 };
5286
- *
5287
- * var values = _.memoize(_.values);
5288
- * values(object);
5289
- * // => [1, 2]
5290
- *
5291
- * values(other);
5292
- * // => [3, 4]
5293
- *
5294
- * object.a = 2;
5295
- * values(object);
5296
- * // => [1, 2]
5297
- *
5298
- * // Modify the result cache.
5299
- * values.cache.set(object, ['a', 'b']);
5300
- * values(object);
5301
- * // => ['a', 'b']
5302
- *
5303
- * // Replace `_.memoize.Cache`.
5304
- * _.memoize.Cache = WeakMap;
5305
- */
5306
- function memoize(func, resolver) {
5307
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
5308
- throw new TypeError(FUNC_ERROR_TEXT);
5309
- }
5310
- var memoized = function() {
5311
- var args = arguments,
5312
- key = resolver ? resolver.apply(this, args) : args[0],
5313
- cache = memoized.cache;
5314
-
5315
- if (cache.has(key)) {
5316
- return cache.get(key);
5317
- }
5318
- var result = func.apply(this, args);
5319
- memoized.cache = cache.set(key, result) || cache;
5320
- return result;
5321
- };
5322
- memoized.cache = new (memoize.Cache || MapCache);
5323
- return memoized;
5324
- }
5325
-
5326
- // Expose `MapCache`.
5327
- memoize.Cache = MapCache;
5328
-
5329
- memoize_1 = memoize;
5330
- return memoize_1;
4187
+ return index < 0 ? undefined : data[index][1];
5331
4188
  }
5332
4189
 
5333
- var _memoizeCapped;
5334
- var hasRequired_memoizeCapped;
5335
-
5336
- function require_memoizeCapped () {
5337
- if (hasRequired_memoizeCapped) return _memoizeCapped;
5338
- hasRequired_memoizeCapped = 1;
5339
- var memoize = requireMemoize();
5340
-
5341
- /** Used as the maximum memoize cache size. */
5342
- var MAX_MEMOIZE_SIZE = 500;
5343
-
5344
- /**
5345
- * A specialized version of `_.memoize` which clears the memoized function's
5346
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
5347
- *
5348
- * @private
5349
- * @param {Function} func The function to have its output memoized.
5350
- * @returns {Function} Returns the new memoized function.
5351
- */
5352
- function memoizeCapped(func) {
5353
- var result = memoize(func, function(key) {
5354
- if (cache.size === MAX_MEMOIZE_SIZE) {
5355
- cache.clear();
5356
- }
5357
- return key;
5358
- });
5359
-
5360
- var cache = result.cache;
5361
- return result;
5362
- }
5363
-
5364
- _memoizeCapped = memoizeCapped;
5365
- return _memoizeCapped;
5366
- }
4190
+ var _listCacheGet = listCacheGet$1;
5367
4191
 
5368
- var _stringToPath;
5369
- var hasRequired_stringToPath;
5370
-
5371
- function require_stringToPath () {
5372
- if (hasRequired_stringToPath) return _stringToPath;
5373
- hasRequired_stringToPath = 1;
5374
- var memoizeCapped = require_memoizeCapped();
5375
-
5376
- /** Used to match property names within property paths. */
5377
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
5378
-
5379
- /** Used to match backslashes in property paths. */
5380
- var reEscapeChar = /\\(\\)?/g;
5381
-
5382
- /**
5383
- * Converts `string` to a property path array.
5384
- *
5385
- * @private
5386
- * @param {string} string The string to convert.
5387
- * @returns {Array} Returns the property path array.
5388
- */
5389
- var stringToPath = memoizeCapped(function(string) {
5390
- var result = [];
5391
- if (string.charCodeAt(0) === 46 /* . */) {
5392
- result.push('');
5393
- }
5394
- string.replace(rePropName, function(match, number, quote, subString) {
5395
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
5396
- });
5397
- return result;
5398
- });
5399
-
5400
- _stringToPath = stringToPath;
5401
- return _stringToPath;
5402
- }
4192
+ var assocIndexOf$1 = _assocIndexOf;
5403
4193
 
5404
4194
  /**
5405
- * A specialized version of `_.map` for arrays without support for iteratee
5406
- * shorthands.
4195
+ * Checks if a list cache value for `key` exists.
5407
4196
  *
5408
4197
  * @private
5409
- * @param {Array} [array] The array to iterate over.
5410
- * @param {Function} iteratee The function invoked per iteration.
5411
- * @returns {Array} Returns the new mapped array.
4198
+ * @name has
4199
+ * @memberOf ListCache
4200
+ * @param {string} key The key of the entry to check.
4201
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
5412
4202
  */
5413
-
5414
- var _arrayMap;
5415
- var hasRequired_arrayMap;
5416
-
5417
- function require_arrayMap () {
5418
- if (hasRequired_arrayMap) return _arrayMap;
5419
- hasRequired_arrayMap = 1;
5420
- function arrayMap(array, iteratee) {
5421
- var index = -1,
5422
- length = array == null ? 0 : array.length,
5423
- result = Array(length);
5424
-
5425
- while (++index < length) {
5426
- result[index] = iteratee(array[index], index, array);
5427
- }
5428
- return result;
5429
- }
5430
-
5431
- _arrayMap = arrayMap;
5432
- return _arrayMap;
4203
+ function listCacheHas$1(key) {
4204
+ return assocIndexOf$1(this.__data__, key) > -1;
5433
4205
  }
5434
4206
 
5435
- var _baseToString;
5436
- var hasRequired_baseToString;
5437
-
5438
- function require_baseToString () {
5439
- if (hasRequired_baseToString) return _baseToString;
5440
- hasRequired_baseToString = 1;
5441
- var Symbol = require_Symbol(),
5442
- arrayMap = require_arrayMap(),
5443
- isArray = requireIsArray(),
5444
- isSymbol = requireIsSymbol();
5445
-
5446
- /** Used to convert symbols to primitives and strings. */
5447
- var symbolProto = Symbol ? Symbol.prototype : undefined,
5448
- symbolToString = symbolProto ? symbolProto.toString : undefined;
5449
-
5450
- /**
5451
- * The base implementation of `_.toString` which doesn't convert nullish
5452
- * values to empty strings.
5453
- *
5454
- * @private
5455
- * @param {*} value The value to process.
5456
- * @returns {string} Returns the string.
5457
- */
5458
- function baseToString(value) {
5459
- // Exit early for strings to avoid a performance hit in some environments.
5460
- if (typeof value == 'string') {
5461
- return value;
5462
- }
5463
- if (isArray(value)) {
5464
- // Recursively convert values (susceptible to call stack limits).
5465
- return arrayMap(value, baseToString) + '';
5466
- }
5467
- if (isSymbol(value)) {
5468
- return symbolToString ? symbolToString.call(value) : '';
5469
- }
5470
- var result = (value + '');
5471
- return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
5472
- }
5473
-
5474
- _baseToString = baseToString;
5475
- return _baseToString;
5476
- }
4207
+ var _listCacheHas = listCacheHas$1;
5477
4208
 
5478
- var toString_1;
5479
- var hasRequiredToString;
5480
-
5481
- function requireToString () {
5482
- if (hasRequiredToString) return toString_1;
5483
- hasRequiredToString = 1;
5484
- var baseToString = require_baseToString();
5485
-
5486
- /**
5487
- * Converts `value` to a string. An empty string is returned for `null`
5488
- * and `undefined` values. The sign of `-0` is preserved.
5489
- *
5490
- * @static
5491
- * @memberOf _
5492
- * @since 4.0.0
5493
- * @category Lang
5494
- * @param {*} value The value to convert.
5495
- * @returns {string} Returns the converted string.
5496
- * @example
5497
- *
5498
- * _.toString(null);
5499
- * // => ''
5500
- *
5501
- * _.toString(-0);
5502
- * // => '-0'
5503
- *
5504
- * _.toString([1, 2, 3]);
5505
- * // => '1,2,3'
5506
- */
5507
- function toString(value) {
5508
- return value == null ? '' : baseToString(value);
5509
- }
5510
-
5511
- toString_1 = toString;
5512
- return toString_1;
5513
- }
4209
+ var assocIndexOf = _assocIndexOf;
5514
4210
 
5515
- var _castPath;
5516
- var hasRequired_castPath;
5517
-
5518
- function require_castPath () {
5519
- if (hasRequired_castPath) return _castPath;
5520
- hasRequired_castPath = 1;
5521
- var isArray = requireIsArray(),
5522
- isKey = require_isKey(),
5523
- stringToPath = require_stringToPath(),
5524
- toString = requireToString();
5525
-
5526
- /**
5527
- * Casts `value` to a path array if it's not one.
5528
- *
5529
- * @private
5530
- * @param {*} value The value to inspect.
5531
- * @param {Object} [object] The object to query keys on.
5532
- * @returns {Array} Returns the cast property path array.
5533
- */
5534
- function castPath(value, object) {
5535
- if (isArray(value)) {
5536
- return value;
5537
- }
5538
- return isKey(value, object) ? [value] : stringToPath(toString(value));
5539
- }
5540
-
5541
- _castPath = castPath;
5542
- return _castPath;
5543
- }
5544
-
5545
- var _toKey;
5546
- var hasRequired_toKey;
5547
-
5548
- function require_toKey () {
5549
- if (hasRequired_toKey) return _toKey;
5550
- hasRequired_toKey = 1;
5551
- var isSymbol = requireIsSymbol();
5552
-
5553
- /**
5554
- * Converts `value` to a string key if it's not a string or symbol.
5555
- *
5556
- * @private
5557
- * @param {*} value The value to inspect.
5558
- * @returns {string|symbol} Returns the key.
5559
- */
5560
- function toKey(value) {
5561
- if (typeof value == 'string' || isSymbol(value)) {
5562
- return value;
5563
- }
5564
- var result = (value + '');
5565
- return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
5566
- }
5567
-
5568
- _toKey = toKey;
5569
- return _toKey;
5570
- }
4211
+ /**
4212
+ * Sets the list cache `key` to `value`.
4213
+ *
4214
+ * @private
4215
+ * @name set
4216
+ * @memberOf ListCache
4217
+ * @param {string} key The key of the value to set.
4218
+ * @param {*} value The value to set.
4219
+ * @returns {Object} Returns the list cache instance.
4220
+ */
4221
+ function listCacheSet$1(key, value) {
4222
+ var data = this.__data__,
4223
+ index = assocIndexOf(data, key);
5571
4224
 
5572
- var _baseGet;
5573
- var hasRequired_baseGet;
5574
-
5575
- function require_baseGet () {
5576
- if (hasRequired_baseGet) return _baseGet;
5577
- hasRequired_baseGet = 1;
5578
- var castPath = require_castPath(),
5579
- toKey = require_toKey();
5580
-
5581
- /**
5582
- * The base implementation of `_.get` without support for default values.
5583
- *
5584
- * @private
5585
- * @param {Object} object The object to query.
5586
- * @param {Array|string} path The path of the property to get.
5587
- * @returns {*} Returns the resolved value.
5588
- */
5589
- function baseGet(object, path) {
5590
- path = castPath(path, object);
5591
-
5592
- var index = 0,
5593
- length = path.length;
5594
-
5595
- while (object != null && index < length) {
5596
- object = object[toKey(path[index++])];
5597
- }
5598
- return (index && index == length) ? object : undefined;
5599
- }
5600
-
5601
- _baseGet = baseGet;
5602
- return _baseGet;
4225
+ if (index < 0) {
4226
+ ++this.size;
4227
+ data.push([key, value]);
4228
+ } else {
4229
+ data[index][1] = value;
4230
+ }
4231
+ return this;
5603
4232
  }
5604
4233
 
5605
- var get_1;
5606
- var hasRequiredGet;
5607
-
5608
- function requireGet () {
5609
- if (hasRequiredGet) return get_1;
5610
- hasRequiredGet = 1;
5611
- var baseGet = require_baseGet();
5612
-
5613
- /**
5614
- * Gets the value at `path` of `object`. If the resolved value is
5615
- * `undefined`, the `defaultValue` is returned in its place.
5616
- *
5617
- * @static
5618
- * @memberOf _
5619
- * @since 3.7.0
5620
- * @category Object
5621
- * @param {Object} object The object to query.
5622
- * @param {Array|string} path The path of the property to get.
5623
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
5624
- * @returns {*} Returns the resolved value.
5625
- * @example
5626
- *
5627
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
5628
- *
5629
- * _.get(object, 'a[0].b.c');
5630
- * // => 3
5631
- *
5632
- * _.get(object, ['a', '0', 'b', 'c']);
5633
- * // => 3
5634
- *
5635
- * _.get(object, 'a.b.c', 'default');
5636
- * // => 'default'
5637
- */
5638
- function get(object, path, defaultValue) {
5639
- var result = object == null ? undefined : baseGet(object, path);
5640
- return result === undefined ? defaultValue : result;
5641
- }
5642
-
5643
- get_1 = get;
5644
- return get_1;
5645
- }
4234
+ var _listCacheSet = listCacheSet$1;
5646
4235
 
5647
- requireGet();
4236
+ var listCacheClear = _listCacheClear,
4237
+ listCacheDelete = _listCacheDelete,
4238
+ listCacheGet = _listCacheGet,
4239
+ listCacheHas = _listCacheHas,
4240
+ listCacheSet = _listCacheSet;
5648
4241
 
5649
4242
  /**
5650
- * Copies the values of `source` to `array`.
4243
+ * Creates an list cache object.
5651
4244
  *
5652
4245
  * @private
5653
- * @param {Array} source The array to copy values from.
5654
- * @param {Array} [array=[]] The array to copy values to.
5655
- * @returns {Array} Returns `array`.
4246
+ * @constructor
4247
+ * @param {Array} [entries] The key-value pairs to cache.
5656
4248
  */
5657
-
5658
- var _copyArray;
5659
- var hasRequired_copyArray;
5660
-
5661
- function require_copyArray () {
5662
- if (hasRequired_copyArray) return _copyArray;
5663
- hasRequired_copyArray = 1;
5664
- function copyArray(source, array) {
5665
- var index = -1,
5666
- length = source.length;
5667
-
5668
- array || (array = Array(length));
5669
- while (++index < length) {
5670
- array[index] = source[index];
5671
- }
5672
- return array;
5673
- }
5674
-
5675
- _copyArray = copyArray;
5676
- return _copyArray;
5677
- }
5678
-
5679
- /* Built-in method references for those with the same name as other `lodash` methods. */
5680
-
5681
- var _baseRandom;
5682
- var hasRequired_baseRandom;
5683
-
5684
- function require_baseRandom () {
5685
- if (hasRequired_baseRandom) return _baseRandom;
5686
- hasRequired_baseRandom = 1;
5687
- var nativeFloor = Math.floor,
5688
- nativeRandom = Math.random;
5689
-
5690
- /**
5691
- * The base implementation of `_.random` without support for returning
5692
- * floating-point numbers.
5693
- *
5694
- * @private
5695
- * @param {number} lower The lower bound.
5696
- * @param {number} upper The upper bound.
5697
- * @returns {number} Returns the random number.
5698
- */
5699
- function baseRandom(lower, upper) {
5700
- return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
5701
- }
5702
-
5703
- _baseRandom = baseRandom;
5704
- return _baseRandom;
4249
+ function ListCache$1(entries) {
4250
+ var index = -1,
4251
+ length = entries == null ? 0 : entries.length;
4252
+
4253
+ this.clear();
4254
+ while (++index < length) {
4255
+ var entry = entries[index];
4256
+ this.set(entry[0], entry[1]);
4257
+ }
5705
4258
  }
5706
4259
 
5707
- var _shuffleSelf;
5708
- var hasRequired_shuffleSelf;
5709
-
5710
- function require_shuffleSelf () {
5711
- if (hasRequired_shuffleSelf) return _shuffleSelf;
5712
- hasRequired_shuffleSelf = 1;
5713
- var baseRandom = require_baseRandom();
5714
-
5715
- /**
5716
- * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
5717
- *
5718
- * @private
5719
- * @param {Array} array The array to shuffle.
5720
- * @param {number} [size=array.length] The size of `array`.
5721
- * @returns {Array} Returns `array`.
5722
- */
5723
- function shuffleSelf(array, size) {
5724
- var index = -1,
5725
- length = array.length,
5726
- lastIndex = length - 1;
5727
-
5728
- size = size === undefined ? length : size;
5729
- while (++index < size) {
5730
- var rand = baseRandom(index, lastIndex),
5731
- value = array[rand];
5732
-
5733
- array[rand] = array[index];
5734
- array[index] = value;
5735
- }
5736
- array.length = size;
5737
- return array;
5738
- }
5739
-
5740
- _shuffleSelf = shuffleSelf;
5741
- return _shuffleSelf;
5742
- }
4260
+ // Add methods to `ListCache`.
4261
+ ListCache$1.prototype.clear = listCacheClear;
4262
+ ListCache$1.prototype['delete'] = listCacheDelete;
4263
+ ListCache$1.prototype.get = listCacheGet;
4264
+ ListCache$1.prototype.has = listCacheHas;
4265
+ ListCache$1.prototype.set = listCacheSet;
5743
4266
 
5744
- var _arrayShuffle;
5745
- var hasRequired_arrayShuffle;
5746
-
5747
- function require_arrayShuffle () {
5748
- if (hasRequired_arrayShuffle) return _arrayShuffle;
5749
- hasRequired_arrayShuffle = 1;
5750
- var copyArray = require_copyArray(),
5751
- shuffleSelf = require_shuffleSelf();
5752
-
5753
- /**
5754
- * A specialized version of `_.shuffle` for arrays.
5755
- *
5756
- * @private
5757
- * @param {Array} array The array to shuffle.
5758
- * @returns {Array} Returns the new shuffled array.
5759
- */
5760
- function arrayShuffle(array) {
5761
- return shuffleSelf(copyArray(array));
5762
- }
5763
-
5764
- _arrayShuffle = arrayShuffle;
5765
- return _arrayShuffle;
5766
- }
4267
+ var _ListCache = ListCache$1;
5767
4268
 
5768
- var _baseValues;
5769
- var hasRequired_baseValues;
5770
-
5771
- function require_baseValues () {
5772
- if (hasRequired_baseValues) return _baseValues;
5773
- hasRequired_baseValues = 1;
5774
- var arrayMap = require_arrayMap();
5775
-
5776
- /**
5777
- * The base implementation of `_.values` and `_.valuesIn` which creates an
5778
- * array of `object` property values corresponding to the property names
5779
- * of `props`.
5780
- *
5781
- * @private
5782
- * @param {Object} object The object to query.
5783
- * @param {Array} props The property names to get values for.
5784
- * @returns {Object} Returns the array of property values.
5785
- */
5786
- function baseValues(object, props) {
5787
- return arrayMap(props, function(key) {
5788
- return object[key];
5789
- });
5790
- }
5791
-
5792
- _baseValues = baseValues;
5793
- return _baseValues;
5794
- }
4269
+ var Hash = _Hash,
4270
+ ListCache = _ListCache,
4271
+ Map = _Map;
5795
4272
 
5796
4273
  /**
5797
- * The base implementation of `_.times` without support for iteratee shorthands
5798
- * or max array length checks.
4274
+ * Removes all key-value entries from the map.
5799
4275
  *
5800
4276
  * @private
5801
- * @param {number} n The number of times to invoke `iteratee`.
5802
- * @param {Function} iteratee The function invoked per iteration.
5803
- * @returns {Array} Returns the array of results.
4277
+ * @name clear
4278
+ * @memberOf MapCache
5804
4279
  */
5805
-
5806
- var _baseTimes;
5807
- var hasRequired_baseTimes;
5808
-
5809
- function require_baseTimes () {
5810
- if (hasRequired_baseTimes) return _baseTimes;
5811
- hasRequired_baseTimes = 1;
5812
- function baseTimes(n, iteratee) {
5813
- var index = -1,
5814
- result = Array(n);
5815
-
5816
- while (++index < n) {
5817
- result[index] = iteratee(index);
5818
- }
5819
- return result;
5820
- }
5821
-
5822
- _baseTimes = baseTimes;
5823
- return _baseTimes;
5824
- }
5825
-
5826
- var _baseIsArguments;
5827
- var hasRequired_baseIsArguments;
5828
-
5829
- function require_baseIsArguments () {
5830
- if (hasRequired_baseIsArguments) return _baseIsArguments;
5831
- hasRequired_baseIsArguments = 1;
5832
- var baseGetTag = require_baseGetTag(),
5833
- isObjectLike = requireIsObjectLike();
5834
-
5835
- /** `Object#toString` result references. */
5836
- var argsTag = '[object Arguments]';
5837
-
5838
- /**
5839
- * The base implementation of `_.isArguments`.
5840
- *
5841
- * @private
5842
- * @param {*} value The value to check.
5843
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
5844
- */
5845
- function baseIsArguments(value) {
5846
- return isObjectLike(value) && baseGetTag(value) == argsTag;
5847
- }
5848
-
5849
- _baseIsArguments = baseIsArguments;
5850
- return _baseIsArguments;
5851
- }
5852
-
5853
- var isArguments_1;
5854
- var hasRequiredIsArguments;
5855
-
5856
- function requireIsArguments () {
5857
- if (hasRequiredIsArguments) return isArguments_1;
5858
- hasRequiredIsArguments = 1;
5859
- var baseIsArguments = require_baseIsArguments(),
5860
- isObjectLike = requireIsObjectLike();
5861
-
5862
- /** Used for built-in method references. */
5863
- var objectProto = Object.prototype;
5864
-
5865
- /** Used to check objects for own properties. */
5866
- var hasOwnProperty = objectProto.hasOwnProperty;
5867
-
5868
- /** Built-in value references. */
5869
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
5870
-
5871
- /**
5872
- * Checks if `value` is likely an `arguments` object.
5873
- *
5874
- * @static
5875
- * @memberOf _
5876
- * @since 0.1.0
5877
- * @category Lang
5878
- * @param {*} value The value to check.
5879
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
5880
- * else `false`.
5881
- * @example
5882
- *
5883
- * _.isArguments(function() { return arguments; }());
5884
- * // => true
5885
- *
5886
- * _.isArguments([1, 2, 3]);
5887
- * // => false
5888
- */
5889
- var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
5890
- return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
5891
- !propertyIsEnumerable.call(value, 'callee');
5892
- };
5893
-
5894
- isArguments_1 = isArguments;
5895
- return isArguments_1;
4280
+ function mapCacheClear$1() {
4281
+ this.size = 0;
4282
+ this.__data__ = {
4283
+ 'hash': new Hash,
4284
+ 'map': new (Map || ListCache),
4285
+ 'string': new Hash
4286
+ };
5896
4287
  }
5897
4288
 
5898
- var isBuffer = {exports: {}};
4289
+ var _mapCacheClear = mapCacheClear$1;
5899
4290
 
5900
4291
  /**
5901
- * This method returns `false`.
5902
- *
5903
- * @static
5904
- * @memberOf _
5905
- * @since 4.13.0
5906
- * @category Util
5907
- * @returns {boolean} Returns `false`.
5908
- * @example
4292
+ * Checks if `value` is suitable for use as unique object key.
5909
4293
  *
5910
- * _.times(2, _.stubFalse);
5911
- * // => [false, false]
4294
+ * @private
4295
+ * @param {*} value The value to check.
4296
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
5912
4297
  */
5913
4298
 
5914
- var stubFalse_1;
5915
- var hasRequiredStubFalse;
5916
-
5917
- function requireStubFalse () {
5918
- if (hasRequiredStubFalse) return stubFalse_1;
5919
- hasRequiredStubFalse = 1;
5920
- function stubFalse() {
5921
- return false;
5922
- }
5923
-
5924
- stubFalse_1 = stubFalse;
5925
- return stubFalse_1;
4299
+ function isKeyable$1(value) {
4300
+ var type = typeof value;
4301
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
4302
+ ? (value !== '__proto__')
4303
+ : (value === null);
5926
4304
  }
5927
4305
 
5928
- isBuffer.exports;
5929
-
5930
- var hasRequiredIsBuffer;
5931
-
5932
- function requireIsBuffer () {
5933
- if (hasRequiredIsBuffer) return isBuffer.exports;
5934
- hasRequiredIsBuffer = 1;
5935
- (function (module, exports) {
5936
- var root = require_root(),
5937
- stubFalse = requireStubFalse();
5938
-
5939
- /** Detect free variable `exports`. */
5940
- var freeExports = exports && !exports.nodeType && exports;
5941
-
5942
- /** Detect free variable `module`. */
5943
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
5944
-
5945
- /** Detect the popular CommonJS extension `module.exports`. */
5946
- var moduleExports = freeModule && freeModule.exports === freeExports;
5947
-
5948
- /** Built-in value references. */
5949
- var Buffer = moduleExports ? root.Buffer : undefined;
5950
-
5951
- /* Built-in method references for those with the same name as other `lodash` methods. */
5952
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
5953
-
5954
- /**
5955
- * Checks if `value` is a buffer.
5956
- *
5957
- * @static
5958
- * @memberOf _
5959
- * @since 4.3.0
5960
- * @category Lang
5961
- * @param {*} value The value to check.
5962
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
5963
- * @example
5964
- *
5965
- * _.isBuffer(new Buffer(2));
5966
- * // => true
5967
- *
5968
- * _.isBuffer(new Uint8Array(2));
5969
- * // => false
5970
- */
5971
- var isBuffer = nativeIsBuffer || stubFalse;
5972
-
5973
- module.exports = isBuffer;
5974
- } (isBuffer, isBuffer.exports));
5975
- return isBuffer.exports;
5976
- }
4306
+ var _isKeyable = isKeyable$1;
5977
4307
 
5978
- /** Used as references for various `Number` constants. */
4308
+ var isKeyable = _isKeyable;
5979
4309
 
5980
- var _isIndex;
5981
- var hasRequired_isIndex;
5982
-
5983
- function require_isIndex () {
5984
- if (hasRequired_isIndex) return _isIndex;
5985
- hasRequired_isIndex = 1;
5986
- var MAX_SAFE_INTEGER = 9007199254740991;
5987
-
5988
- /** Used to detect unsigned integer values. */
5989
- var reIsUint = /^(?:0|[1-9]\d*)$/;
5990
-
5991
- /**
5992
- * Checks if `value` is a valid array-like index.
5993
- *
5994
- * @private
5995
- * @param {*} value The value to check.
5996
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
5997
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
5998
- */
5999
- function isIndex(value, length) {
6000
- var type = typeof value;
6001
- length = length == null ? MAX_SAFE_INTEGER : length;
6002
-
6003
- return !!length &&
6004
- (type == 'number' ||
6005
- (type != 'symbol' && reIsUint.test(value))) &&
6006
- (value > -1 && value % 1 == 0 && value < length);
6007
- }
6008
-
6009
- _isIndex = isIndex;
6010
- return _isIndex;
4310
+ /**
4311
+ * Gets the data for `map`.
4312
+ *
4313
+ * @private
4314
+ * @param {Object} map The map to query.
4315
+ * @param {string} key The reference key.
4316
+ * @returns {*} Returns the map data.
4317
+ */
4318
+ function getMapData$4(map, key) {
4319
+ var data = map.__data__;
4320
+ return isKeyable(key)
4321
+ ? data[typeof key == 'string' ? 'string' : 'hash']
4322
+ : data.map;
6011
4323
  }
6012
4324
 
6013
- /** Used as references for various `Number` constants. */
4325
+ var _getMapData = getMapData$4;
6014
4326
 
6015
- var isLength_1;
6016
- var hasRequiredIsLength;
6017
-
6018
- function requireIsLength () {
6019
- if (hasRequiredIsLength) return isLength_1;
6020
- hasRequiredIsLength = 1;
6021
- var MAX_SAFE_INTEGER = 9007199254740991;
6022
-
6023
- /**
6024
- * Checks if `value` is a valid array-like length.
6025
- *
6026
- * **Note:** This method is loosely based on
6027
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
6028
- *
6029
- * @static
6030
- * @memberOf _
6031
- * @since 4.0.0
6032
- * @category Lang
6033
- * @param {*} value The value to check.
6034
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
6035
- * @example
6036
- *
6037
- * _.isLength(3);
6038
- * // => true
6039
- *
6040
- * _.isLength(Number.MIN_VALUE);
6041
- * // => false
6042
- *
6043
- * _.isLength(Infinity);
6044
- * // => false
6045
- *
6046
- * _.isLength('3');
6047
- * // => false
6048
- */
6049
- function isLength(value) {
6050
- return typeof value == 'number' &&
6051
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
6052
- }
6053
-
6054
- isLength_1 = isLength;
6055
- return isLength_1;
6056
- }
6057
-
6058
- var _baseIsTypedArray;
6059
- var hasRequired_baseIsTypedArray;
6060
-
6061
- function require_baseIsTypedArray () {
6062
- if (hasRequired_baseIsTypedArray) return _baseIsTypedArray;
6063
- hasRequired_baseIsTypedArray = 1;
6064
- var baseGetTag = require_baseGetTag(),
6065
- isLength = requireIsLength(),
6066
- isObjectLike = requireIsObjectLike();
6067
-
6068
- /** `Object#toString` result references. */
6069
- var argsTag = '[object Arguments]',
6070
- arrayTag = '[object Array]',
6071
- boolTag = '[object Boolean]',
6072
- dateTag = '[object Date]',
6073
- errorTag = '[object Error]',
6074
- funcTag = '[object Function]',
6075
- mapTag = '[object Map]',
6076
- numberTag = '[object Number]',
6077
- objectTag = '[object Object]',
6078
- regexpTag = '[object RegExp]',
6079
- setTag = '[object Set]',
6080
- stringTag = '[object String]',
6081
- weakMapTag = '[object WeakMap]';
6082
-
6083
- var arrayBufferTag = '[object ArrayBuffer]',
6084
- dataViewTag = '[object DataView]',
6085
- float32Tag = '[object Float32Array]',
6086
- float64Tag = '[object Float64Array]',
6087
- int8Tag = '[object Int8Array]',
6088
- int16Tag = '[object Int16Array]',
6089
- int32Tag = '[object Int32Array]',
6090
- uint8Tag = '[object Uint8Array]',
6091
- uint8ClampedTag = '[object Uint8ClampedArray]',
6092
- uint16Tag = '[object Uint16Array]',
6093
- uint32Tag = '[object Uint32Array]';
6094
-
6095
- /** Used to identify `toStringTag` values of typed arrays. */
6096
- var typedArrayTags = {};
6097
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
6098
- typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
6099
- typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
6100
- typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
6101
- typedArrayTags[uint32Tag] = true;
6102
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
6103
- typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
6104
- typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
6105
- typedArrayTags[errorTag] = typedArrayTags[funcTag] =
6106
- typedArrayTags[mapTag] = typedArrayTags[numberTag] =
6107
- typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
6108
- typedArrayTags[setTag] = typedArrayTags[stringTag] =
6109
- typedArrayTags[weakMapTag] = false;
6110
-
6111
- /**
6112
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
6113
- *
6114
- * @private
6115
- * @param {*} value The value to check.
6116
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
6117
- */
6118
- function baseIsTypedArray(value) {
6119
- return isObjectLike(value) &&
6120
- isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
6121
- }
6122
-
6123
- _baseIsTypedArray = baseIsTypedArray;
6124
- return _baseIsTypedArray;
6125
- }
4327
+ var getMapData$3 = _getMapData;
6126
4328
 
6127
4329
  /**
6128
- * The base implementation of `_.unary` without support for storing metadata.
4330
+ * Removes `key` and its value from the map.
6129
4331
  *
6130
4332
  * @private
6131
- * @param {Function} func The function to cap arguments for.
6132
- * @returns {Function} Returns the new capped function.
4333
+ * @name delete
4334
+ * @memberOf MapCache
4335
+ * @param {string} key The key of the value to remove.
4336
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
6133
4337
  */
6134
-
6135
- var _baseUnary;
6136
- var hasRequired_baseUnary;
6137
-
6138
- function require_baseUnary () {
6139
- if (hasRequired_baseUnary) return _baseUnary;
6140
- hasRequired_baseUnary = 1;
6141
- function baseUnary(func) {
6142
- return function(value) {
6143
- return func(value);
6144
- };
6145
- }
6146
-
6147
- _baseUnary = baseUnary;
6148
- return _baseUnary;
4338
+ function mapCacheDelete$1(key) {
4339
+ var result = getMapData$3(this, key)['delete'](key);
4340
+ this.size -= result ? 1 : 0;
4341
+ return result;
6149
4342
  }
6150
4343
 
6151
- var _nodeUtil = {exports: {}};
6152
-
6153
- _nodeUtil.exports;
6154
-
6155
- var hasRequired_nodeUtil;
6156
-
6157
- function require_nodeUtil () {
6158
- if (hasRequired_nodeUtil) return _nodeUtil.exports;
6159
- hasRequired_nodeUtil = 1;
6160
- (function (module, exports) {
6161
- var freeGlobal = require_freeGlobal();
6162
-
6163
- /** Detect free variable `exports`. */
6164
- var freeExports = exports && !exports.nodeType && exports;
6165
-
6166
- /** Detect free variable `module`. */
6167
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
6168
-
6169
- /** Detect the popular CommonJS extension `module.exports`. */
6170
- var moduleExports = freeModule && freeModule.exports === freeExports;
4344
+ var _mapCacheDelete = mapCacheDelete$1;
6171
4345
 
6172
- /** Detect free variable `process` from Node.js. */
6173
- var freeProcess = moduleExports && freeGlobal.process;
4346
+ var getMapData$2 = _getMapData;
6174
4347
 
6175
- /** Used to access faster Node.js helpers. */
6176
- var nodeUtil = (function() {
6177
- try {
6178
- // Use `util.types` for Node.js 10+.
6179
- var types = freeModule && freeModule.require && freeModule.require('util').types;
6180
-
6181
- if (types) {
6182
- return types;
6183
- }
6184
-
6185
- // Legacy `process.binding('util')` for Node.js < 10.
6186
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
6187
- } catch (e) {}
6188
- }());
6189
-
6190
- module.exports = nodeUtil;
6191
- } (_nodeUtil, _nodeUtil.exports));
6192
- return _nodeUtil.exports;
6193
- }
6194
-
6195
- var isTypedArray_1;
6196
- var hasRequiredIsTypedArray;
6197
-
6198
- function requireIsTypedArray () {
6199
- if (hasRequiredIsTypedArray) return isTypedArray_1;
6200
- hasRequiredIsTypedArray = 1;
6201
- var baseIsTypedArray = require_baseIsTypedArray(),
6202
- baseUnary = require_baseUnary(),
6203
- nodeUtil = require_nodeUtil();
6204
-
6205
- /* Node.js helper references. */
6206
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
6207
-
6208
- /**
6209
- * Checks if `value` is classified as a typed array.
6210
- *
6211
- * @static
6212
- * @memberOf _
6213
- * @since 3.0.0
6214
- * @category Lang
6215
- * @param {*} value The value to check.
6216
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
6217
- * @example
6218
- *
6219
- * _.isTypedArray(new Uint8Array);
6220
- * // => true
6221
- *
6222
- * _.isTypedArray([]);
6223
- * // => false
6224
- */
6225
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
6226
-
6227
- isTypedArray_1 = isTypedArray;
6228
- return isTypedArray_1;
6229
- }
6230
-
6231
- var _arrayLikeKeys;
6232
- var hasRequired_arrayLikeKeys;
6233
-
6234
- function require_arrayLikeKeys () {
6235
- if (hasRequired_arrayLikeKeys) return _arrayLikeKeys;
6236
- hasRequired_arrayLikeKeys = 1;
6237
- var baseTimes = require_baseTimes(),
6238
- isArguments = requireIsArguments(),
6239
- isArray = requireIsArray(),
6240
- isBuffer = requireIsBuffer(),
6241
- isIndex = require_isIndex(),
6242
- isTypedArray = requireIsTypedArray();
6243
-
6244
- /** Used for built-in method references. */
6245
- var objectProto = Object.prototype;
6246
-
6247
- /** Used to check objects for own properties. */
6248
- var hasOwnProperty = objectProto.hasOwnProperty;
6249
-
6250
- /**
6251
- * Creates an array of the enumerable property names of the array-like `value`.
6252
- *
6253
- * @private
6254
- * @param {*} value The value to query.
6255
- * @param {boolean} inherited Specify returning inherited property names.
6256
- * @returns {Array} Returns the array of property names.
6257
- */
6258
- function arrayLikeKeys(value, inherited) {
6259
- var isArr = isArray(value),
6260
- isArg = !isArr && isArguments(value),
6261
- isBuff = !isArr && !isArg && isBuffer(value),
6262
- isType = !isArr && !isArg && !isBuff && isTypedArray(value),
6263
- skipIndexes = isArr || isArg || isBuff || isType,
6264
- result = skipIndexes ? baseTimes(value.length, String) : [],
6265
- length = result.length;
6266
-
6267
- for (var key in value) {
6268
- if ((inherited || hasOwnProperty.call(value, key)) &&
6269
- !(skipIndexes && (
6270
- // Safari 9 has enumerable `arguments.length` in strict mode.
6271
- key == 'length' ||
6272
- // Node.js 0.10 has enumerable non-index properties on buffers.
6273
- (isBuff && (key == 'offset' || key == 'parent')) ||
6274
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
6275
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
6276
- // Skip index properties.
6277
- isIndex(key, length)
6278
- ))) {
6279
- result.push(key);
6280
- }
6281
- }
6282
- return result;
6283
- }
6284
-
6285
- _arrayLikeKeys = arrayLikeKeys;
6286
- return _arrayLikeKeys;
4348
+ /**
4349
+ * Gets the map value for `key`.
4350
+ *
4351
+ * @private
4352
+ * @name get
4353
+ * @memberOf MapCache
4354
+ * @param {string} key The key of the value to get.
4355
+ * @returns {*} Returns the entry value.
4356
+ */
4357
+ function mapCacheGet$1(key) {
4358
+ return getMapData$2(this, key).get(key);
6287
4359
  }
6288
4360
 
6289
- /** Used for built-in method references. */
4361
+ var _mapCacheGet = mapCacheGet$1;
6290
4362
 
6291
- var _isPrototype;
6292
- var hasRequired_isPrototype;
6293
-
6294
- function require_isPrototype () {
6295
- if (hasRequired_isPrototype) return _isPrototype;
6296
- hasRequired_isPrototype = 1;
6297
- var objectProto = Object.prototype;
6298
-
6299
- /**
6300
- * Checks if `value` is likely a prototype object.
6301
- *
6302
- * @private
6303
- * @param {*} value The value to check.
6304
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
6305
- */
6306
- function isPrototype(value) {
6307
- var Ctor = value && value.constructor,
6308
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
6309
-
6310
- return value === proto;
6311
- }
6312
-
6313
- _isPrototype = isPrototype;
6314
- return _isPrototype;
6315
- }
4363
+ var getMapData$1 = _getMapData;
6316
4364
 
6317
4365
  /**
6318
- * Creates a unary function that invokes `func` with its argument transformed.
4366
+ * Checks if a map value for `key` exists.
6319
4367
  *
6320
4368
  * @private
6321
- * @param {Function} func The function to wrap.
6322
- * @param {Function} transform The argument transform.
6323
- * @returns {Function} Returns the new function.
4369
+ * @name has
4370
+ * @memberOf MapCache
4371
+ * @param {string} key The key of the entry to check.
4372
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
6324
4373
  */
6325
-
6326
- var _overArg;
6327
- var hasRequired_overArg;
6328
-
6329
- function require_overArg () {
6330
- if (hasRequired_overArg) return _overArg;
6331
- hasRequired_overArg = 1;
6332
- function overArg(func, transform) {
6333
- return function(arg) {
6334
- return func(transform(arg));
6335
- };
6336
- }
6337
-
6338
- _overArg = overArg;
6339
- return _overArg;
4374
+ function mapCacheHas$1(key) {
4375
+ return getMapData$1(this, key).has(key);
6340
4376
  }
6341
4377
 
6342
- var _nativeKeys;
6343
- var hasRequired_nativeKeys;
4378
+ var _mapCacheHas = mapCacheHas$1;
6344
4379
 
6345
- function require_nativeKeys () {
6346
- if (hasRequired_nativeKeys) return _nativeKeys;
6347
- hasRequired_nativeKeys = 1;
6348
- var overArg = require_overArg();
4380
+ var getMapData = _getMapData;
6349
4381
 
6350
- /* Built-in method references for those with the same name as other `lodash` methods. */
6351
- var nativeKeys = overArg(Object.keys, Object);
6352
-
6353
- _nativeKeys = nativeKeys;
6354
- return _nativeKeys;
6355
- }
6356
-
6357
- var _baseKeys;
6358
- var hasRequired_baseKeys;
6359
-
6360
- function require_baseKeys () {
6361
- if (hasRequired_baseKeys) return _baseKeys;
6362
- hasRequired_baseKeys = 1;
6363
- var isPrototype = require_isPrototype(),
6364
- nativeKeys = require_nativeKeys();
6365
-
6366
- /** Used for built-in method references. */
6367
- var objectProto = Object.prototype;
6368
-
6369
- /** Used to check objects for own properties. */
6370
- var hasOwnProperty = objectProto.hasOwnProperty;
6371
-
6372
- /**
6373
- * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
6374
- *
6375
- * @private
6376
- * @param {Object} object The object to query.
6377
- * @returns {Array} Returns the array of property names.
6378
- */
6379
- function baseKeys(object) {
6380
- if (!isPrototype(object)) {
6381
- return nativeKeys(object);
6382
- }
6383
- var result = [];
6384
- for (var key in Object(object)) {
6385
- if (hasOwnProperty.call(object, key) && key != 'constructor') {
6386
- result.push(key);
6387
- }
6388
- }
6389
- return result;
6390
- }
6391
-
6392
- _baseKeys = baseKeys;
6393
- return _baseKeys;
6394
- }
4382
+ /**
4383
+ * Sets the map `key` to `value`.
4384
+ *
4385
+ * @private
4386
+ * @name set
4387
+ * @memberOf MapCache
4388
+ * @param {string} key The key of the value to set.
4389
+ * @param {*} value The value to set.
4390
+ * @returns {Object} Returns the map cache instance.
4391
+ */
4392
+ function mapCacheSet$1(key, value) {
4393
+ var data = getMapData(this, key),
4394
+ size = data.size;
6395
4395
 
6396
- var isArrayLike_1;
6397
- var hasRequiredIsArrayLike;
6398
-
6399
- function requireIsArrayLike () {
6400
- if (hasRequiredIsArrayLike) return isArrayLike_1;
6401
- hasRequiredIsArrayLike = 1;
6402
- var isFunction = requireIsFunction(),
6403
- isLength = requireIsLength();
6404
-
6405
- /**
6406
- * Checks if `value` is array-like. A value is considered array-like if it's
6407
- * not a function and has a `value.length` that's an integer greater than or
6408
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
6409
- *
6410
- * @static
6411
- * @memberOf _
6412
- * @since 4.0.0
6413
- * @category Lang
6414
- * @param {*} value The value to check.
6415
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
6416
- * @example
6417
- *
6418
- * _.isArrayLike([1, 2, 3]);
6419
- * // => true
6420
- *
6421
- * _.isArrayLike(document.body.children);
6422
- * // => true
6423
- *
6424
- * _.isArrayLike('abc');
6425
- * // => true
6426
- *
6427
- * _.isArrayLike(_.noop);
6428
- * // => false
6429
- */
6430
- function isArrayLike(value) {
6431
- return value != null && isLength(value.length) && !isFunction(value);
6432
- }
6433
-
6434
- isArrayLike_1 = isArrayLike;
6435
- return isArrayLike_1;
4396
+ data.set(key, value);
4397
+ this.size += data.size == size ? 0 : 1;
4398
+ return this;
6436
4399
  }
6437
4400
 
6438
- var keys_1;
6439
- var hasRequiredKeys;
6440
-
6441
- function requireKeys () {
6442
- if (hasRequiredKeys) return keys_1;
6443
- hasRequiredKeys = 1;
6444
- var arrayLikeKeys = require_arrayLikeKeys(),
6445
- baseKeys = require_baseKeys(),
6446
- isArrayLike = requireIsArrayLike();
6447
-
6448
- /**
6449
- * Creates an array of the own enumerable property names of `object`.
6450
- *
6451
- * **Note:** Non-object values are coerced to objects. See the
6452
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
6453
- * for more details.
6454
- *
6455
- * @static
6456
- * @since 0.1.0
6457
- * @memberOf _
6458
- * @category Object
6459
- * @param {Object} object The object to query.
6460
- * @returns {Array} Returns the array of property names.
6461
- * @example
6462
- *
6463
- * function Foo() {
6464
- * this.a = 1;
6465
- * this.b = 2;
6466
- * }
6467
- *
6468
- * Foo.prototype.c = 3;
6469
- *
6470
- * _.keys(new Foo);
6471
- * // => ['a', 'b'] (iteration order is not guaranteed)
6472
- *
6473
- * _.keys('hi');
6474
- * // => ['0', '1']
6475
- */
6476
- function keys(object) {
6477
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
6478
- }
6479
-
6480
- keys_1 = keys;
6481
- return keys_1;
6482
- }
4401
+ var _mapCacheSet = mapCacheSet$1;
6483
4402
 
6484
- var values_1;
6485
- var hasRequiredValues;
6486
-
6487
- function requireValues () {
6488
- if (hasRequiredValues) return values_1;
6489
- hasRequiredValues = 1;
6490
- var baseValues = require_baseValues(),
6491
- keys = requireKeys();
6492
-
6493
- /**
6494
- * Creates an array of the own enumerable string keyed property values of `object`.
6495
- *
6496
- * **Note:** Non-object values are coerced to objects.
6497
- *
6498
- * @static
6499
- * @since 0.1.0
6500
- * @memberOf _
6501
- * @category Object
6502
- * @param {Object} object The object to query.
6503
- * @returns {Array} Returns the array of property values.
6504
- * @example
6505
- *
6506
- * function Foo() {
6507
- * this.a = 1;
6508
- * this.b = 2;
6509
- * }
6510
- *
6511
- * Foo.prototype.c = 3;
6512
- *
6513
- * _.values(new Foo);
6514
- * // => [1, 2] (iteration order is not guaranteed)
6515
- *
6516
- * _.values('hi');
6517
- * // => ['h', 'i']
6518
- */
6519
- function values(object) {
6520
- return object == null ? [] : baseValues(object, keys(object));
6521
- }
6522
-
6523
- values_1 = values;
6524
- return values_1;
6525
- }
4403
+ var mapCacheClear = _mapCacheClear,
4404
+ mapCacheDelete = _mapCacheDelete,
4405
+ mapCacheGet = _mapCacheGet,
4406
+ mapCacheHas = _mapCacheHas,
4407
+ mapCacheSet = _mapCacheSet;
6526
4408
 
6527
- var _baseShuffle;
6528
- var hasRequired_baseShuffle;
6529
-
6530
- function require_baseShuffle () {
6531
- if (hasRequired_baseShuffle) return _baseShuffle;
6532
- hasRequired_baseShuffle = 1;
6533
- var shuffleSelf = require_shuffleSelf(),
6534
- values = requireValues();
6535
-
6536
- /**
6537
- * The base implementation of `_.shuffle`.
6538
- *
6539
- * @private
6540
- * @param {Array|Object} collection The collection to shuffle.
6541
- * @returns {Array} Returns the new shuffled array.
6542
- */
6543
- function baseShuffle(collection) {
6544
- return shuffleSelf(values(collection));
6545
- }
6546
-
6547
- _baseShuffle = baseShuffle;
6548
- return _baseShuffle;
4409
+ /**
4410
+ * Creates a map cache object to store key-value pairs.
4411
+ *
4412
+ * @private
4413
+ * @constructor
4414
+ * @param {Array} [entries] The key-value pairs to cache.
4415
+ */
4416
+ function MapCache$1(entries) {
4417
+ var index = -1,
4418
+ length = entries == null ? 0 : entries.length;
4419
+
4420
+ this.clear();
4421
+ while (++index < length) {
4422
+ var entry = entries[index];
4423
+ this.set(entry[0], entry[1]);
4424
+ }
6549
4425
  }
6550
4426
 
6551
- var shuffle_1;
6552
- var hasRequiredShuffle;
6553
-
6554
- function requireShuffle () {
6555
- if (hasRequiredShuffle) return shuffle_1;
6556
- hasRequiredShuffle = 1;
6557
- var arrayShuffle = require_arrayShuffle(),
6558
- baseShuffle = require_baseShuffle(),
6559
- isArray = requireIsArray();
6560
-
6561
- /**
6562
- * Creates an array of shuffled values, using a version of the
6563
- * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
6564
- *
6565
- * @static
6566
- * @memberOf _
6567
- * @since 0.1.0
6568
- * @category Collection
6569
- * @param {Array|Object} collection The collection to shuffle.
6570
- * @returns {Array} Returns the new shuffled array.
6571
- * @example
6572
- *
6573
- * _.shuffle([1, 2, 3, 4]);
6574
- * // => [4, 1, 3, 2]
6575
- */
6576
- function shuffle(collection) {
6577
- var func = isArray(collection) ? arrayShuffle : baseShuffle;
6578
- return func(collection);
6579
- }
6580
-
6581
- shuffle_1 = shuffle;
6582
- return shuffle_1;
6583
- }
4427
+ // Add methods to `MapCache`.
4428
+ MapCache$1.prototype.clear = mapCacheClear;
4429
+ MapCache$1.prototype['delete'] = mapCacheDelete;
4430
+ MapCache$1.prototype.get = mapCacheGet;
4431
+ MapCache$1.prototype.has = mapCacheHas;
4432
+ MapCache$1.prototype.set = mapCacheSet;
6584
4433
 
6585
- requireShuffle();
4434
+ var _MapCache = MapCache$1;
6586
4435
 
6587
- var _DataView;
6588
- var hasRequired_DataView;
4436
+ var MapCache = _MapCache;
6589
4437
 
6590
- function require_DataView () {
6591
- if (hasRequired_DataView) return _DataView;
6592
- hasRequired_DataView = 1;
6593
- var getNative = require_getNative(),
6594
- root = require_root();
4438
+ /** Error message constants. */
4439
+ var FUNC_ERROR_TEXT = 'Expected a function';
6595
4440
 
6596
- /* Built-in method references that are verified to be native. */
6597
- var DataView = getNative(root, 'DataView');
4441
+ /**
4442
+ * Creates a function that memoizes the result of `func`. If `resolver` is
4443
+ * provided, it determines the cache key for storing the result based on the
4444
+ * arguments provided to the memoized function. By default, the first argument
4445
+ * provided to the memoized function is used as the map cache key. The `func`
4446
+ * is invoked with the `this` binding of the memoized function.
4447
+ *
4448
+ * **Note:** The cache is exposed as the `cache` property on the memoized
4449
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
4450
+ * constructor with one whose instances implement the
4451
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
4452
+ * method interface of `clear`, `delete`, `get`, `has`, and `set`.
4453
+ *
4454
+ * @static
4455
+ * @memberOf _
4456
+ * @since 0.1.0
4457
+ * @category Function
4458
+ * @param {Function} func The function to have its output memoized.
4459
+ * @param {Function} [resolver] The function to resolve the cache key.
4460
+ * @returns {Function} Returns the new memoized function.
4461
+ * @example
4462
+ *
4463
+ * var object = { 'a': 1, 'b': 2 };
4464
+ * var other = { 'c': 3, 'd': 4 };
4465
+ *
4466
+ * var values = _.memoize(_.values);
4467
+ * values(object);
4468
+ * // => [1, 2]
4469
+ *
4470
+ * values(other);
4471
+ * // => [3, 4]
4472
+ *
4473
+ * object.a = 2;
4474
+ * values(object);
4475
+ * // => [1, 2]
4476
+ *
4477
+ * // Modify the result cache.
4478
+ * values.cache.set(object, ['a', 'b']);
4479
+ * values(object);
4480
+ * // => ['a', 'b']
4481
+ *
4482
+ * // Replace `_.memoize.Cache`.
4483
+ * _.memoize.Cache = WeakMap;
4484
+ */
4485
+ function memoize$1(func, resolver) {
4486
+ if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
4487
+ throw new TypeError(FUNC_ERROR_TEXT);
4488
+ }
4489
+ var memoized = function() {
4490
+ var args = arguments,
4491
+ key = resolver ? resolver.apply(this, args) : args[0],
4492
+ cache = memoized.cache;
6598
4493
 
6599
- _DataView = DataView;
6600
- return _DataView;
4494
+ if (cache.has(key)) {
4495
+ return cache.get(key);
4496
+ }
4497
+ var result = func.apply(this, args);
4498
+ memoized.cache = cache.set(key, result) || cache;
4499
+ return result;
4500
+ };
4501
+ memoized.cache = new (memoize$1.Cache || MapCache);
4502
+ return memoized;
6601
4503
  }
6602
4504
 
6603
- var _Promise;
6604
- var hasRequired_Promise;
4505
+ // Expose `MapCache`.
4506
+ memoize$1.Cache = MapCache;
6605
4507
 
6606
- function require_Promise () {
6607
- if (hasRequired_Promise) return _Promise;
6608
- hasRequired_Promise = 1;
6609
- var getNative = require_getNative(),
6610
- root = require_root();
4508
+ var memoize_1 = memoize$1;
6611
4509
 
6612
- /* Built-in method references that are verified to be native. */
6613
- var Promise = getNative(root, 'Promise');
6614
-
6615
- _Promise = Promise;
6616
- return _Promise;
6617
- }
4510
+ var memoize = memoize_1;
6618
4511
 
6619
- var _Set;
6620
- var hasRequired_Set;
4512
+ /** Used as the maximum memoize cache size. */
4513
+ var MAX_MEMOIZE_SIZE = 500;
6621
4514
 
6622
- function require_Set () {
6623
- if (hasRequired_Set) return _Set;
6624
- hasRequired_Set = 1;
6625
- var getNative = require_getNative(),
6626
- root = require_root();
6627
-
6628
- /* Built-in method references that are verified to be native. */
6629
- var Set = getNative(root, 'Set');
4515
+ /**
4516
+ * A specialized version of `_.memoize` which clears the memoized function's
4517
+ * cache when it exceeds `MAX_MEMOIZE_SIZE`.
4518
+ *
4519
+ * @private
4520
+ * @param {Function} func The function to have its output memoized.
4521
+ * @returns {Function} Returns the new memoized function.
4522
+ */
4523
+ function memoizeCapped$1(func) {
4524
+ var result = memoize(func, function(key) {
4525
+ if (cache.size === MAX_MEMOIZE_SIZE) {
4526
+ cache.clear();
4527
+ }
4528
+ return key;
4529
+ });
6630
4530
 
6631
- _Set = Set;
6632
- return _Set;
4531
+ var cache = result.cache;
4532
+ return result;
6633
4533
  }
6634
4534
 
6635
- var _WeakMap;
6636
- var hasRequired_WeakMap;
4535
+ var _memoizeCapped = memoizeCapped$1;
6637
4536
 
6638
- function require_WeakMap () {
6639
- if (hasRequired_WeakMap) return _WeakMap;
6640
- hasRequired_WeakMap = 1;
6641
- var getNative = require_getNative(),
6642
- root = require_root();
4537
+ var memoizeCapped = _memoizeCapped;
6643
4538
 
6644
- /* Built-in method references that are verified to be native. */
6645
- var WeakMap = getNative(root, 'WeakMap');
4539
+ /** Used to match property names within property paths. */
4540
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
6646
4541
 
6647
- _WeakMap = WeakMap;
6648
- return _WeakMap;
6649
- }
4542
+ /** Used to match backslashes in property paths. */
4543
+ var reEscapeChar = /\\(\\)?/g;
6650
4544
 
6651
- var _getTag;
6652
- var hasRequired_getTag;
6653
-
6654
- function require_getTag () {
6655
- if (hasRequired_getTag) return _getTag;
6656
- hasRequired_getTag = 1;
6657
- var DataView = require_DataView(),
6658
- Map = require_Map(),
6659
- Promise = require_Promise(),
6660
- Set = require_Set(),
6661
- WeakMap = require_WeakMap(),
6662
- baseGetTag = require_baseGetTag(),
6663
- toSource = require_toSource();
6664
-
6665
- /** `Object#toString` result references. */
6666
- var mapTag = '[object Map]',
6667
- objectTag = '[object Object]',
6668
- promiseTag = '[object Promise]',
6669
- setTag = '[object Set]',
6670
- weakMapTag = '[object WeakMap]';
6671
-
6672
- var dataViewTag = '[object DataView]';
6673
-
6674
- /** Used to detect maps, sets, and weakmaps. */
6675
- var dataViewCtorString = toSource(DataView),
6676
- mapCtorString = toSource(Map),
6677
- promiseCtorString = toSource(Promise),
6678
- setCtorString = toSource(Set),
6679
- weakMapCtorString = toSource(WeakMap);
6680
-
6681
- /**
6682
- * Gets the `toStringTag` of `value`.
6683
- *
6684
- * @private
6685
- * @param {*} value The value to query.
6686
- * @returns {string} Returns the `toStringTag`.
6687
- */
6688
- var getTag = baseGetTag;
6689
-
6690
- // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
6691
- if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
6692
- (Map && getTag(new Map) != mapTag) ||
6693
- (Promise && getTag(Promise.resolve()) != promiseTag) ||
6694
- (Set && getTag(new Set) != setTag) ||
6695
- (WeakMap && getTag(new WeakMap) != weakMapTag)) {
6696
- getTag = function(value) {
6697
- var result = baseGetTag(value),
6698
- Ctor = result == objectTag ? value.constructor : undefined,
6699
- ctorString = Ctor ? toSource(Ctor) : '';
6700
-
6701
- if (ctorString) {
6702
- switch (ctorString) {
6703
- case dataViewCtorString: return dataViewTag;
6704
- case mapCtorString: return mapTag;
6705
- case promiseCtorString: return promiseTag;
6706
- case setCtorString: return setTag;
6707
- case weakMapCtorString: return weakMapTag;
6708
- }
6709
- }
6710
- return result;
6711
- };
6712
- }
6713
-
6714
- _getTag = getTag;
6715
- return _getTag;
6716
- }
6717
-
6718
- var isEmpty_1;
6719
- var hasRequiredIsEmpty;
6720
-
6721
- function requireIsEmpty () {
6722
- if (hasRequiredIsEmpty) return isEmpty_1;
6723
- hasRequiredIsEmpty = 1;
6724
- var baseKeys = require_baseKeys(),
6725
- getTag = require_getTag(),
6726
- isArguments = requireIsArguments(),
6727
- isArray = requireIsArray(),
6728
- isArrayLike = requireIsArrayLike(),
6729
- isBuffer = requireIsBuffer(),
6730
- isPrototype = require_isPrototype(),
6731
- isTypedArray = requireIsTypedArray();
6732
-
6733
- /** `Object#toString` result references. */
6734
- var mapTag = '[object Map]',
6735
- setTag = '[object Set]';
6736
-
6737
- /** Used for built-in method references. */
6738
- var objectProto = Object.prototype;
6739
-
6740
- /** Used to check objects for own properties. */
6741
- var hasOwnProperty = objectProto.hasOwnProperty;
6742
-
6743
- /**
6744
- * Checks if `value` is an empty object, collection, map, or set.
6745
- *
6746
- * Objects are considered empty if they have no own enumerable string keyed
6747
- * properties.
6748
- *
6749
- * Array-like values such as `arguments` objects, arrays, buffers, strings, or
6750
- * jQuery-like collections are considered empty if they have a `length` of `0`.
6751
- * Similarly, maps and sets are considered empty if they have a `size` of `0`.
6752
- *
6753
- * @static
6754
- * @memberOf _
6755
- * @since 0.1.0
6756
- * @category Lang
6757
- * @param {*} value The value to check.
6758
- * @returns {boolean} Returns `true` if `value` is empty, else `false`.
6759
- * @example
6760
- *
6761
- * _.isEmpty(null);
6762
- * // => true
6763
- *
6764
- * _.isEmpty(true);
6765
- * // => true
6766
- *
6767
- * _.isEmpty(1);
6768
- * // => true
6769
- *
6770
- * _.isEmpty([1, 2, 3]);
6771
- * // => false
6772
- *
6773
- * _.isEmpty({ 'a': 1 });
6774
- * // => false
6775
- */
6776
- function isEmpty(value) {
6777
- if (value == null) {
6778
- return true;
6779
- }
6780
- if (isArrayLike(value) &&
6781
- (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
6782
- isBuffer(value) || isTypedArray(value) || isArguments(value))) {
6783
- return !value.length;
6784
- }
6785
- var tag = getTag(value);
6786
- if (tag == mapTag || tag == setTag) {
6787
- return !value.size;
6788
- }
6789
- if (isPrototype(value)) {
6790
- return !baseKeys(value).length;
6791
- }
6792
- for (var key in value) {
6793
- if (hasOwnProperty.call(value, key)) {
6794
- return false;
6795
- }
6796
- }
6797
- return true;
6798
- }
6799
-
6800
- isEmpty_1 = isEmpty;
6801
- return isEmpty_1;
6802
- }
4545
+ /**
4546
+ * Converts `string` to a property path array.
4547
+ *
4548
+ * @private
4549
+ * @param {string} string The string to convert.
4550
+ * @returns {Array} Returns the property path array.
4551
+ */
4552
+ memoizeCapped(function(string) {
4553
+ var result = [];
4554
+ if (string.charCodeAt(0) === 46 /* . */) {
4555
+ result.push('');
4556
+ }
4557
+ string.replace(rePropName, function(match, number, quote, subString) {
4558
+ result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
4559
+ });
4560
+ return result;
4561
+ });
6803
4562
 
6804
- requireIsEmpty();
4563
+ var Symbol$1 = _Symbol;
6805
4564
 
6806
- const lg = n => console[n].bind(console, 'controller-utils:');
4565
+ /** Used to convert symbols to primitives and strings. */
4566
+ var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined;
4567
+ symbolProto ? symbolProto.toString : undefined;
6807
4568
 
4569
+ // eslint-disable-next-line no-console
4570
+ const lg = (n) => console[n].bind(console, 'controller-utils:');
6808
4571
  lg('debug');
6809
4572
  lg('log');
6810
4573
  lg('warn');
6811
4574
  lg('error');
6812
4575
 
6813
- const { translator } = index;
4576
+ const { translator } = Translator;
6814
4577
 
6815
4578
  const getFeedback = (value) => (value ? 'correct' : 'incorrect');
6816
4579
  const getContent = (html) => (html || '').replace(/(<(?!img|iframe|source)([^>]+)>)/gi, '');
@@ -6889,7 +4652,7 @@ const getCorrectness = (question, env, session) => {
6889
4652
  };
6890
4653
 
6891
4654
  const getPartialScore = (question, session) => {
6892
- if (!session || isEmpty_1$1(session)) {
4655
+ if (!session || isEmpty_1(session)) {
6893
4656
  return 0;
6894
4657
  }
6895
4658
 
@@ -6898,10 +4661,10 @@ const getPartialScore = (question, session) => {
6898
4661
 
6899
4662
  const outcome = (question, session, env) =>
6900
4663
  new Promise((resolve) => {
6901
- if (!session || isEmpty_1$1(session)) {
4664
+ if (!session || isEmpty_1(session)) {
6902
4665
  resolve({ score: 0, empty: true });
6903
4666
  }
6904
- const partialScoringEnabled = partialScoring.enabled(question, env);
4667
+ const partialScoringEnabled = enabled(question, env);
6905
4668
  session = normalizeSession(session);
6906
4669
 
6907
4670
  if (env.mode !== 'evaluate') {
@@ -7063,7 +4826,7 @@ const validate = (model = {}, config = {}) => {
7063
4826
  }
7064
4827
  });
7065
4828
 
7066
- if (!isEmpty_1$1(responseError) || !isEmpty_1$1(alternatesErrors)) {
4829
+ if (!isEmpty_1(responseError) || !isEmpty_1(alternatesErrors)) {
7067
4830
  responsesErrors[index] = { ...responseError, ...alternatesErrors };
7068
4831
  }
7069
4832
  });
@@ -7076,7 +4839,7 @@ const validate = (model = {}, config = {}) => {
7076
4839
  errors.responseAreas = 'There should be at least 1 response area defined.';
7077
4840
  }
7078
4841
 
7079
- if (!isEmpty_1$1(responsesErrors)) {
4842
+ if (!isEmpty_1(responsesErrors)) {
7080
4843
  errors.responses = responsesErrors;
7081
4844
  }
7082
4845