cloudinary-video-player 3.13.0 → 3.13.1-edge.1

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.
Files changed (63) hide show
  1. package/dist/134.min.js +4 -4
  2. package/dist/19.min.js +6 -0
  3. package/dist/309.min.js +3 -3
  4. package/dist/adaptive-streaming.js +2 -2
  5. package/dist/adaptive-streaming.min.js +2 -2
  6. package/dist/chapters.js +2 -2
  7. package/dist/chapters.min.js +2 -2
  8. package/dist/cld-player-core.js +2 -2
  9. package/dist/cld-player-core.min.js +2 -2
  10. package/dist/cld-video-player-lazy.js +5 -5
  11. package/dist/cld-video-player-lazy.min.js +3 -3
  12. package/dist/cld-video-player.css +2 -2
  13. package/dist/cld-video-player.js +10 -10
  14. package/dist/cld-video-player.light.js +10 -10
  15. package/dist/cld-video-player.light.min.js +4 -4
  16. package/dist/cld-video-player.min.css +2 -2
  17. package/dist/cld-video-player.min.js +4 -4
  18. package/dist/colors.js +2 -2
  19. package/dist/colors.min.js +3 -3
  20. package/dist/dash.js +2 -2
  21. package/dist/dash.min.js +2 -2
  22. package/dist/debug.js +2 -2
  23. package/dist/debug.min.js +2 -2
  24. package/dist/ima.js +2 -2
  25. package/dist/ima.min.js +2 -2
  26. package/dist/interaction-areas.js +2 -2
  27. package/dist/interaction-areas.min.js +3 -3
  28. package/dist/node_modules_lodash_throttle_js.js +2 -2
  29. package/dist/playlist.js +2 -2
  30. package/dist/playlist.min.js +2 -2
  31. package/dist/plugins_cloudinary_url-helpers_js-utils_object_js-utils_querystring_js-utils_utf8Base64_js-vi-555007.js +952 -0
  32. package/dist/recommendations-overlay.js +2 -2
  33. package/dist/recommendations-overlay.min.js +2 -2
  34. package/dist/share.js +2 -2
  35. package/dist/share.min.js +2 -2
  36. package/dist/shoppable.js +2 -2
  37. package/dist/shoppable.min.js +2 -2
  38. package/dist/utils_fetch-config_js.js +3 -47
  39. package/dist/video-player_js.js +13 -949
  40. package/dist/visual-search.js +2 -2
  41. package/dist/visual-search.min.js +2 -2
  42. package/lib/all.js +2 -1
  43. package/lib/chapters.js +2 -1
  44. package/lib/cld-video-player.min.css +2 -2
  45. package/lib/colors.js +2 -1
  46. package/lib/debug.js +2 -1
  47. package/lib/fetch-config.js +11 -3
  48. package/lib/index.js +2 -1
  49. package/lib/interaction-areas.service.js +2 -1
  50. package/lib/object.js +2805 -0
  51. package/lib/player.js +2 -1
  52. package/lib/playlist.js +2 -1
  53. package/lib/recommendations-overlay.js +2 -1
  54. package/lib/share.js +2 -1
  55. package/lib/shoppable-widget.js +3 -2
  56. package/lib/throttle.js +1 -1
  57. package/lib/toNumber.js +2 -2
  58. package/lib/validators-functions.js +3 -366
  59. package/lib/video-player.const.js +367 -0
  60. package/lib/video-player.js +80 -2803
  61. package/lib/videoPlayer.js +2 -1
  62. package/package.json +1 -1
  63. package/lib/querystring.js +0 -81
@@ -1,7 +1,8 @@
1
1
  import { _ as _vjs } from './_videojs-proxy.js';
2
2
  import { g as getDefaultExportFromCjs } from './_commonjsHelpers.js';
3
- import { a as require_root, b as requireIsFunction, r as requireIsObject, c as require_baseGetTag, d as requireIsObjectLike, e as require_freeGlobal, f as requireIsArray, g as require_Symbol, i as isObject$2, h as isString$1, S as SOURCE_PARAMS, j as isFunction$2, C as CROP_MODE, F as FLOATING_TO, P as PRELOAD, k as PLAYER_PARAMS, l as CLOUDINARY_CONFIG_PARAM, m as FLUID_CLASS_NAME, A as AUTO_PLAY_MODE, n as isValidPlayerConfig, o as isValidSourceConfig } from './validators-functions.js';
4
- import { a as appendQueryParams, u as utf8ToBase64, F as FORMAT_MAPPINGS, C as CONTAINER_MIME_TYPES, i as isRawUrl, V as VIDEO_SUFFIX_REMOVAL_PATTERN, D as DEFAULT_VIDEO_PARAMS, b as DEFAULT_POSTER_PARAMS$1, A as ADAPTIVE_SOURCETYPES, R as RENDITIONS, c as DEFAULT_DPR } from './querystring.js';
3
+ import { b as require_getNative, d as require_Map, e as require_toSource, f as requireIsLength, g as requireIsArguments, h as require_baseGet, j as require_ListCache, k as require_MapCache, l as require_assignValue, m as require_baseAssignValue, n as require_isIndex, o as require_arrayPush, q as require_castPath, s as require_toKey, t as require_arrayMap, v as require_flatRest, a as appendQueryParams, u as utf8ToBase64, F as FORMAT_MAPPINGS, C as CONTAINER_MIME_TYPES, i as isRawUrl, V as VIDEO_SUFFIX_REMOVAL_PATTERN, D as DEFAULT_VIDEO_PARAMS, w as DEFAULT_POSTER_PARAMS$1, A as ADAPTIVE_SOURCETYPES, R as RENDITIONS, x as DEFAULT_DPR, y as requireToString, z as require_createCompounder, p as pick, c as convertKeysToSnakeCase } from './object.js';
4
+ import { a as require_root, c as require_baseGetTag, b as requireIsFunction, e as requireIsObjectLike, g as require_freeGlobal, d as requireIsArray, r as requireIsObject, f as require_Symbol, S as SOURCE_PARAMS, h as CROP_MODE, F as FLOATING_TO, P as PRELOAD, i as PLAYER_PARAMS, C as CLOUDINARY_CONFIG_PARAM, j as FLUID_CLASS_NAME, A as AUTO_PLAY_MODE } from './video-player.const.js';
5
+ import { i as isObject$2, a as isString$1, b as isFunction$2, c as isValidPlayerConfig, d as isValidSourceConfig } from './validators-functions.js';
5
6
  import { L as LAYER_KEYWORD_PARAMS, b as LEGACY_CONDITIONAL_OPERATORS, d as LEGACY_PREDEFINED_VARS, O as OFFSET_ANY_PATTERN_RE, R as RANGE_VALUE_RE, u as unsigned_url_prefix, g as getCloudinaryUrlPrefix, e as cssEscape } from './player-api.js';
6
7
 
7
8
  const byteToHex = [];
@@ -167,191 +168,6 @@ function require_baseKeys () {
167
168
  return _baseKeys;
168
169
  }
169
170
 
170
- var _coreJsData;
171
- var hasRequired_coreJsData;
172
-
173
- function require_coreJsData () {
174
- if (hasRequired_coreJsData) return _coreJsData;
175
- hasRequired_coreJsData = 1;
176
- var root = require_root();
177
-
178
- /** Used to detect overreaching core-js shims. */
179
- var coreJsData = root['__core-js_shared__'];
180
-
181
- _coreJsData = coreJsData;
182
- return _coreJsData;
183
- }
184
-
185
- var _isMasked;
186
- var hasRequired_isMasked;
187
-
188
- function require_isMasked () {
189
- if (hasRequired_isMasked) return _isMasked;
190
- hasRequired_isMasked = 1;
191
- var coreJsData = require_coreJsData();
192
-
193
- /** Used to detect methods masquerading as native. */
194
- var maskSrcKey = (function() {
195
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
196
- return uid ? ('Symbol(src)_1.' + uid) : '';
197
- }());
198
-
199
- /**
200
- * Checks if `func` has its source masked.
201
- *
202
- * @private
203
- * @param {Function} func The function to check.
204
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
205
- */
206
- function isMasked(func) {
207
- return !!maskSrcKey && (maskSrcKey in func);
208
- }
209
-
210
- _isMasked = isMasked;
211
- return _isMasked;
212
- }
213
-
214
- /** Used for built-in method references. */
215
-
216
- var _toSource;
217
- var hasRequired_toSource;
218
-
219
- function require_toSource () {
220
- if (hasRequired_toSource) return _toSource;
221
- hasRequired_toSource = 1;
222
- var funcProto = Function.prototype;
223
-
224
- /** Used to resolve the decompiled source of functions. */
225
- var funcToString = funcProto.toString;
226
-
227
- /**
228
- * Converts `func` to its source code.
229
- *
230
- * @private
231
- * @param {Function} func The function to convert.
232
- * @returns {string} Returns the source code.
233
- */
234
- function toSource(func) {
235
- if (func != null) {
236
- try {
237
- return funcToString.call(func);
238
- } catch (e) {}
239
- try {
240
- return (func + '');
241
- } catch (e) {}
242
- }
243
- return '';
244
- }
245
-
246
- _toSource = toSource;
247
- return _toSource;
248
- }
249
-
250
- var _baseIsNative;
251
- var hasRequired_baseIsNative;
252
-
253
- function require_baseIsNative () {
254
- if (hasRequired_baseIsNative) return _baseIsNative;
255
- hasRequired_baseIsNative = 1;
256
- var isFunction = requireIsFunction(),
257
- isMasked = require_isMasked(),
258
- isObject = requireIsObject(),
259
- toSource = require_toSource();
260
-
261
- /**
262
- * Used to match `RegExp`
263
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
264
- */
265
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
266
-
267
- /** Used to detect host constructors (Safari). */
268
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
269
-
270
- /** Used for built-in method references. */
271
- var funcProto = Function.prototype,
272
- objectProto = Object.prototype;
273
-
274
- /** Used to resolve the decompiled source of functions. */
275
- var funcToString = funcProto.toString;
276
-
277
- /** Used to check objects for own properties. */
278
- var hasOwnProperty = objectProto.hasOwnProperty;
279
-
280
- /** Used to detect if a method is native. */
281
- var reIsNative = RegExp('^' +
282
- funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
283
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
284
- );
285
-
286
- /**
287
- * The base implementation of `_.isNative` without bad shim checks.
288
- *
289
- * @private
290
- * @param {*} value The value to check.
291
- * @returns {boolean} Returns `true` if `value` is a native function,
292
- * else `false`.
293
- */
294
- function baseIsNative(value) {
295
- if (!isObject(value) || isMasked(value)) {
296
- return false;
297
- }
298
- var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
299
- return pattern.test(toSource(value));
300
- }
301
-
302
- _baseIsNative = baseIsNative;
303
- return _baseIsNative;
304
- }
305
-
306
- /**
307
- * Gets the value at `key` of `object`.
308
- *
309
- * @private
310
- * @param {Object} [object] The object to query.
311
- * @param {string} key The key of the property to get.
312
- * @returns {*} Returns the property value.
313
- */
314
-
315
- var _getValue;
316
- var hasRequired_getValue;
317
-
318
- function require_getValue () {
319
- if (hasRequired_getValue) return _getValue;
320
- hasRequired_getValue = 1;
321
- function getValue(object, key) {
322
- return object == null ? undefined : object[key];
323
- }
324
-
325
- _getValue = getValue;
326
- return _getValue;
327
- }
328
-
329
- var _getNative;
330
- var hasRequired_getNative;
331
-
332
- function require_getNative () {
333
- if (hasRequired_getNative) return _getNative;
334
- hasRequired_getNative = 1;
335
- var baseIsNative = require_baseIsNative(),
336
- getValue = require_getValue();
337
-
338
- /**
339
- * Gets the native function at `key` of `object`.
340
- *
341
- * @private
342
- * @param {Object} object The object to query.
343
- * @param {string} key The key of the method to get.
344
- * @returns {*} Returns the function if it's native, else `undefined`.
345
- */
346
- function getNative(object, key) {
347
- var value = getValue(object, key);
348
- return baseIsNative(value) ? value : undefined;
349
- }
350
-
351
- _getNative = getNative;
352
- return _getNative;
353
- }
354
-
355
171
  var _DataView;
356
172
  var hasRequired_DataView;
357
173
 
@@ -368,22 +184,6 @@ function require_DataView () {
368
184
  return _DataView;
369
185
  }
370
186
 
371
- var _Map;
372
- var hasRequired_Map;
373
-
374
- function require_Map () {
375
- if (hasRequired_Map) return _Map;
376
- hasRequired_Map = 1;
377
- var getNative = require_getNative(),
378
- root = require_root();
379
-
380
- /* Built-in method references that are verified to be native. */
381
- var Map = getNative(root, 'Map');
382
-
383
- _Map = Map;
384
- return _Map;
385
- }
386
-
387
187
  var _Promise;
388
188
  var hasRequired_Promise;
389
189
 
@@ -499,123 +299,6 @@ function require_getTag () {
499
299
  return _getTag;
500
300
  }
501
301
 
502
- var _baseIsArguments;
503
- var hasRequired_baseIsArguments;
504
-
505
- function require_baseIsArguments () {
506
- if (hasRequired_baseIsArguments) return _baseIsArguments;
507
- hasRequired_baseIsArguments = 1;
508
- var baseGetTag = require_baseGetTag(),
509
- isObjectLike = requireIsObjectLike();
510
-
511
- /** `Object#toString` result references. */
512
- var argsTag = '[object Arguments]';
513
-
514
- /**
515
- * The base implementation of `_.isArguments`.
516
- *
517
- * @private
518
- * @param {*} value The value to check.
519
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
520
- */
521
- function baseIsArguments(value) {
522
- return isObjectLike(value) && baseGetTag(value) == argsTag;
523
- }
524
-
525
- _baseIsArguments = baseIsArguments;
526
- return _baseIsArguments;
527
- }
528
-
529
- var isArguments_1;
530
- var hasRequiredIsArguments;
531
-
532
- function requireIsArguments () {
533
- if (hasRequiredIsArguments) return isArguments_1;
534
- hasRequiredIsArguments = 1;
535
- var baseIsArguments = require_baseIsArguments(),
536
- isObjectLike = requireIsObjectLike();
537
-
538
- /** Used for built-in method references. */
539
- var objectProto = Object.prototype;
540
-
541
- /** Used to check objects for own properties. */
542
- var hasOwnProperty = objectProto.hasOwnProperty;
543
-
544
- /** Built-in value references. */
545
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
546
-
547
- /**
548
- * Checks if `value` is likely an `arguments` object.
549
- *
550
- * @static
551
- * @memberOf _
552
- * @since 0.1.0
553
- * @category Lang
554
- * @param {*} value The value to check.
555
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
556
- * else `false`.
557
- * @example
558
- *
559
- * _.isArguments(function() { return arguments; }());
560
- * // => true
561
- *
562
- * _.isArguments([1, 2, 3]);
563
- * // => false
564
- */
565
- var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
566
- return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
567
- !propertyIsEnumerable.call(value, 'callee');
568
- };
569
-
570
- isArguments_1 = isArguments;
571
- return isArguments_1;
572
- }
573
-
574
- /** Used as references for various `Number` constants. */
575
-
576
- var isLength_1;
577
- var hasRequiredIsLength;
578
-
579
- function requireIsLength () {
580
- if (hasRequiredIsLength) return isLength_1;
581
- hasRequiredIsLength = 1;
582
- var MAX_SAFE_INTEGER = 9007199254740991;
583
-
584
- /**
585
- * Checks if `value` is a valid array-like length.
586
- *
587
- * **Note:** This method is loosely based on
588
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
589
- *
590
- * @static
591
- * @memberOf _
592
- * @since 4.0.0
593
- * @category Lang
594
- * @param {*} value The value to check.
595
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
596
- * @example
597
- *
598
- * _.isLength(3);
599
- * // => true
600
- *
601
- * _.isLength(Number.MIN_VALUE);
602
- * // => false
603
- *
604
- * _.isLength(Infinity);
605
- * // => false
606
- *
607
- * _.isLength('3');
608
- * // => false
609
- */
610
- function isLength(value) {
611
- return typeof value == 'number' &&
612
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
613
- }
614
-
615
- isLength_1 = isLength;
616
- return isLength_1;
617
- }
618
-
619
302
  var isArrayLike_1;
620
303
  var hasRequiredIsArrayLike;
621
304
 
@@ -958,2046 +641,92 @@ function requireIsEmpty () {
958
641
  * // => true
959
642
  *
960
643
  * _.isEmpty(true);
961
- * // => true
962
- *
963
- * _.isEmpty(1);
964
- * // => true
965
- *
966
- * _.isEmpty([1, 2, 3]);
967
- * // => false
968
- *
969
- * _.isEmpty({ 'a': 1 });
970
- * // => false
971
- */
972
- function isEmpty(value) {
973
- if (value == null) {
974
- return true;
975
- }
976
- if (isArrayLike(value) &&
977
- (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
978
- isBuffer(value) || isTypedArray(value) || isArguments(value))) {
979
- return !value.length;
980
- }
981
- var tag = getTag(value);
982
- if (tag == mapTag || tag == setTag) {
983
- return !value.size;
984
- }
985
- if (isPrototype(value)) {
986
- return !baseKeys(value).length;
987
- }
988
- for (var key in value) {
989
- if (hasOwnProperty.call(value, key)) {
990
- return false;
991
- }
992
- }
993
- return true;
994
- }
995
-
996
- isEmpty_1 = isEmpty;
997
- return isEmpty_1;
998
- }
999
-
1000
- var isEmptyExports = requireIsEmpty();
1001
- var isEmpty$1 = /*@__PURE__*/getDefaultExportFromCjs(isEmptyExports);
1002
-
1003
- var isSymbol_1;
1004
- var hasRequiredIsSymbol;
1005
-
1006
- function requireIsSymbol () {
1007
- if (hasRequiredIsSymbol) return isSymbol_1;
1008
- hasRequiredIsSymbol = 1;
1009
- var baseGetTag = require_baseGetTag(),
1010
- isObjectLike = requireIsObjectLike();
1011
-
1012
- /** `Object#toString` result references. */
1013
- var symbolTag = '[object Symbol]';
1014
-
1015
- /**
1016
- * Checks if `value` is classified as a `Symbol` primitive or object.
1017
- *
1018
- * @static
1019
- * @memberOf _
1020
- * @since 4.0.0
1021
- * @category Lang
1022
- * @param {*} value The value to check.
1023
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
1024
- * @example
1025
- *
1026
- * _.isSymbol(Symbol.iterator);
1027
- * // => true
1028
- *
1029
- * _.isSymbol('abc');
1030
- * // => false
1031
- */
1032
- function isSymbol(value) {
1033
- return typeof value == 'symbol' ||
1034
- (isObjectLike(value) && baseGetTag(value) == symbolTag);
1035
- }
1036
-
1037
- isSymbol_1 = isSymbol;
1038
- return isSymbol_1;
1039
- }
1040
-
1041
- var _isKey;
1042
- var hasRequired_isKey;
1043
-
1044
- function require_isKey () {
1045
- if (hasRequired_isKey) return _isKey;
1046
- hasRequired_isKey = 1;
1047
- var isArray = requireIsArray(),
1048
- isSymbol = requireIsSymbol();
1049
-
1050
- /** Used to match property names within property paths. */
1051
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
1052
- reIsPlainProp = /^\w*$/;
1053
-
1054
- /**
1055
- * Checks if `value` is a property name and not a property path.
1056
- *
1057
- * @private
1058
- * @param {*} value The value to check.
1059
- * @param {Object} [object] The object to query keys on.
1060
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
1061
- */
1062
- function isKey(value, object) {
1063
- if (isArray(value)) {
1064
- return false;
1065
- }
1066
- var type = typeof value;
1067
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
1068
- value == null || isSymbol(value)) {
1069
- return true;
1070
- }
1071
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
1072
- (object != null && value in Object(object));
1073
- }
1074
-
1075
- _isKey = isKey;
1076
- return _isKey;
1077
- }
1078
-
1079
- var _nativeCreate;
1080
- var hasRequired_nativeCreate;
1081
-
1082
- function require_nativeCreate () {
1083
- if (hasRequired_nativeCreate) return _nativeCreate;
1084
- hasRequired_nativeCreate = 1;
1085
- var getNative = require_getNative();
1086
-
1087
- /* Built-in method references that are verified to be native. */
1088
- var nativeCreate = getNative(Object, 'create');
1089
-
1090
- _nativeCreate = nativeCreate;
1091
- return _nativeCreate;
1092
- }
1093
-
1094
- var _hashClear;
1095
- var hasRequired_hashClear;
1096
-
1097
- function require_hashClear () {
1098
- if (hasRequired_hashClear) return _hashClear;
1099
- hasRequired_hashClear = 1;
1100
- var nativeCreate = require_nativeCreate();
1101
-
1102
- /**
1103
- * Removes all key-value entries from the hash.
1104
- *
1105
- * @private
1106
- * @name clear
1107
- * @memberOf Hash
1108
- */
1109
- function hashClear() {
1110
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
1111
- this.size = 0;
1112
- }
1113
-
1114
- _hashClear = hashClear;
1115
- return _hashClear;
1116
- }
1117
-
1118
- /**
1119
- * Removes `key` and its value from the hash.
1120
- *
1121
- * @private
1122
- * @name delete
1123
- * @memberOf Hash
1124
- * @param {Object} hash The hash to modify.
1125
- * @param {string} key The key of the value to remove.
1126
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1127
- */
1128
-
1129
- var _hashDelete;
1130
- var hasRequired_hashDelete;
1131
-
1132
- function require_hashDelete () {
1133
- if (hasRequired_hashDelete) return _hashDelete;
1134
- hasRequired_hashDelete = 1;
1135
- function hashDelete(key) {
1136
- var result = this.has(key) && delete this.__data__[key];
1137
- this.size -= result ? 1 : 0;
1138
- return result;
1139
- }
1140
-
1141
- _hashDelete = hashDelete;
1142
- return _hashDelete;
1143
- }
1144
-
1145
- var _hashGet;
1146
- var hasRequired_hashGet;
1147
-
1148
- function require_hashGet () {
1149
- if (hasRequired_hashGet) return _hashGet;
1150
- hasRequired_hashGet = 1;
1151
- var nativeCreate = require_nativeCreate();
1152
-
1153
- /** Used to stand-in for `undefined` hash values. */
1154
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
1155
-
1156
- /** Used for built-in method references. */
1157
- var objectProto = Object.prototype;
1158
-
1159
- /** Used to check objects for own properties. */
1160
- var hasOwnProperty = objectProto.hasOwnProperty;
1161
-
1162
- /**
1163
- * Gets the hash value for `key`.
1164
- *
1165
- * @private
1166
- * @name get
1167
- * @memberOf Hash
1168
- * @param {string} key The key of the value to get.
1169
- * @returns {*} Returns the entry value.
1170
- */
1171
- function hashGet(key) {
1172
- var data = this.__data__;
1173
- if (nativeCreate) {
1174
- var result = data[key];
1175
- return result === HASH_UNDEFINED ? undefined : result;
1176
- }
1177
- return hasOwnProperty.call(data, key) ? data[key] : undefined;
1178
- }
1179
-
1180
- _hashGet = hashGet;
1181
- return _hashGet;
1182
- }
1183
-
1184
- var _hashHas;
1185
- var hasRequired_hashHas;
1186
-
1187
- function require_hashHas () {
1188
- if (hasRequired_hashHas) return _hashHas;
1189
- hasRequired_hashHas = 1;
1190
- var nativeCreate = require_nativeCreate();
1191
-
1192
- /** Used for built-in method references. */
1193
- var objectProto = Object.prototype;
1194
-
1195
- /** Used to check objects for own properties. */
1196
- var hasOwnProperty = objectProto.hasOwnProperty;
1197
-
1198
- /**
1199
- * Checks if a hash value for `key` exists.
1200
- *
1201
- * @private
1202
- * @name has
1203
- * @memberOf Hash
1204
- * @param {string} key The key of the entry to check.
1205
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1206
- */
1207
- function hashHas(key) {
1208
- var data = this.__data__;
1209
- return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
1210
- }
1211
-
1212
- _hashHas = hashHas;
1213
- return _hashHas;
1214
- }
1215
-
1216
- var _hashSet;
1217
- var hasRequired_hashSet;
1218
-
1219
- function require_hashSet () {
1220
- if (hasRequired_hashSet) return _hashSet;
1221
- hasRequired_hashSet = 1;
1222
- var nativeCreate = require_nativeCreate();
1223
-
1224
- /** Used to stand-in for `undefined` hash values. */
1225
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
1226
-
1227
- /**
1228
- * Sets the hash `key` to `value`.
1229
- *
1230
- * @private
1231
- * @name set
1232
- * @memberOf Hash
1233
- * @param {string} key The key of the value to set.
1234
- * @param {*} value The value to set.
1235
- * @returns {Object} Returns the hash instance.
1236
- */
1237
- function hashSet(key, value) {
1238
- var data = this.__data__;
1239
- this.size += this.has(key) ? 0 : 1;
1240
- data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
1241
- return this;
1242
- }
1243
-
1244
- _hashSet = hashSet;
1245
- return _hashSet;
1246
- }
1247
-
1248
- var _Hash;
1249
- var hasRequired_Hash;
1250
-
1251
- function require_Hash () {
1252
- if (hasRequired_Hash) return _Hash;
1253
- hasRequired_Hash = 1;
1254
- var hashClear = require_hashClear(),
1255
- hashDelete = require_hashDelete(),
1256
- hashGet = require_hashGet(),
1257
- hashHas = require_hashHas(),
1258
- hashSet = require_hashSet();
1259
-
1260
- /**
1261
- * Creates a hash object.
1262
- *
1263
- * @private
1264
- * @constructor
1265
- * @param {Array} [entries] The key-value pairs to cache.
1266
- */
1267
- function Hash(entries) {
1268
- var index = -1,
1269
- length = entries == null ? 0 : entries.length;
1270
-
1271
- this.clear();
1272
- while (++index < length) {
1273
- var entry = entries[index];
1274
- this.set(entry[0], entry[1]);
1275
- }
1276
- }
1277
-
1278
- // Add methods to `Hash`.
1279
- Hash.prototype.clear = hashClear;
1280
- Hash.prototype['delete'] = hashDelete;
1281
- Hash.prototype.get = hashGet;
1282
- Hash.prototype.has = hashHas;
1283
- Hash.prototype.set = hashSet;
1284
-
1285
- _Hash = Hash;
1286
- return _Hash;
1287
- }
1288
-
1289
- /**
1290
- * Removes all key-value entries from the list cache.
1291
- *
1292
- * @private
1293
- * @name clear
1294
- * @memberOf ListCache
1295
- */
1296
-
1297
- var _listCacheClear;
1298
- var hasRequired_listCacheClear;
1299
-
1300
- function require_listCacheClear () {
1301
- if (hasRequired_listCacheClear) return _listCacheClear;
1302
- hasRequired_listCacheClear = 1;
1303
- function listCacheClear() {
1304
- this.__data__ = [];
1305
- this.size = 0;
1306
- }
1307
-
1308
- _listCacheClear = listCacheClear;
1309
- return _listCacheClear;
1310
- }
1311
-
1312
- /**
1313
- * Performs a
1314
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1315
- * comparison between two values to determine if they are equivalent.
1316
- *
1317
- * @static
1318
- * @memberOf _
1319
- * @since 4.0.0
1320
- * @category Lang
1321
- * @param {*} value The value to compare.
1322
- * @param {*} other The other value to compare.
1323
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1324
- * @example
1325
- *
1326
- * var object = { 'a': 1 };
1327
- * var other = { 'a': 1 };
1328
- *
1329
- * _.eq(object, object);
1330
- * // => true
1331
- *
1332
- * _.eq(object, other);
1333
- * // => false
1334
- *
1335
- * _.eq('a', 'a');
1336
- * // => true
1337
- *
1338
- * _.eq('a', Object('a'));
1339
- * // => false
1340
- *
1341
- * _.eq(NaN, NaN);
1342
- * // => true
1343
- */
1344
-
1345
- var eq_1;
1346
- var hasRequiredEq;
1347
-
1348
- function requireEq () {
1349
- if (hasRequiredEq) return eq_1;
1350
- hasRequiredEq = 1;
1351
- function eq(value, other) {
1352
- return value === other || (value !== value && other !== other);
1353
- }
1354
-
1355
- eq_1 = eq;
1356
- return eq_1;
1357
- }
1358
-
1359
- var _assocIndexOf;
1360
- var hasRequired_assocIndexOf;
1361
-
1362
- function require_assocIndexOf () {
1363
- if (hasRequired_assocIndexOf) return _assocIndexOf;
1364
- hasRequired_assocIndexOf = 1;
1365
- var eq = requireEq();
1366
-
1367
- /**
1368
- * Gets the index at which the `key` is found in `array` of key-value pairs.
1369
- *
1370
- * @private
1371
- * @param {Array} array The array to inspect.
1372
- * @param {*} key The key to search for.
1373
- * @returns {number} Returns the index of the matched value, else `-1`.
1374
- */
1375
- function assocIndexOf(array, key) {
1376
- var length = array.length;
1377
- while (length--) {
1378
- if (eq(array[length][0], key)) {
1379
- return length;
1380
- }
1381
- }
1382
- return -1;
1383
- }
1384
-
1385
- _assocIndexOf = assocIndexOf;
1386
- return _assocIndexOf;
1387
- }
1388
-
1389
- var _listCacheDelete;
1390
- var hasRequired_listCacheDelete;
1391
-
1392
- function require_listCacheDelete () {
1393
- if (hasRequired_listCacheDelete) return _listCacheDelete;
1394
- hasRequired_listCacheDelete = 1;
1395
- var assocIndexOf = require_assocIndexOf();
1396
-
1397
- /** Used for built-in method references. */
1398
- var arrayProto = Array.prototype;
1399
-
1400
- /** Built-in value references. */
1401
- var splice = arrayProto.splice;
1402
-
1403
- /**
1404
- * Removes `key` and its value from the list cache.
1405
- *
1406
- * @private
1407
- * @name delete
1408
- * @memberOf ListCache
1409
- * @param {string} key The key of the value to remove.
1410
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1411
- */
1412
- function listCacheDelete(key) {
1413
- var data = this.__data__,
1414
- index = assocIndexOf(data, key);
1415
-
1416
- if (index < 0) {
1417
- return false;
1418
- }
1419
- var lastIndex = data.length - 1;
1420
- if (index == lastIndex) {
1421
- data.pop();
1422
- } else {
1423
- splice.call(data, index, 1);
1424
- }
1425
- --this.size;
1426
- return true;
1427
- }
1428
-
1429
- _listCacheDelete = listCacheDelete;
1430
- return _listCacheDelete;
1431
- }
1432
-
1433
- var _listCacheGet;
1434
- var hasRequired_listCacheGet;
1435
-
1436
- function require_listCacheGet () {
1437
- if (hasRequired_listCacheGet) return _listCacheGet;
1438
- hasRequired_listCacheGet = 1;
1439
- var assocIndexOf = require_assocIndexOf();
1440
-
1441
- /**
1442
- * Gets the list cache value for `key`.
1443
- *
1444
- * @private
1445
- * @name get
1446
- * @memberOf ListCache
1447
- * @param {string} key The key of the value to get.
1448
- * @returns {*} Returns the entry value.
1449
- */
1450
- function listCacheGet(key) {
1451
- var data = this.__data__,
1452
- index = assocIndexOf(data, key);
1453
-
1454
- return index < 0 ? undefined : data[index][1];
1455
- }
1456
-
1457
- _listCacheGet = listCacheGet;
1458
- return _listCacheGet;
1459
- }
1460
-
1461
- var _listCacheHas;
1462
- var hasRequired_listCacheHas;
1463
-
1464
- function require_listCacheHas () {
1465
- if (hasRequired_listCacheHas) return _listCacheHas;
1466
- hasRequired_listCacheHas = 1;
1467
- var assocIndexOf = require_assocIndexOf();
1468
-
1469
- /**
1470
- * Checks if a list cache value for `key` exists.
1471
- *
1472
- * @private
1473
- * @name has
1474
- * @memberOf ListCache
1475
- * @param {string} key The key of the entry to check.
1476
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1477
- */
1478
- function listCacheHas(key) {
1479
- return assocIndexOf(this.__data__, key) > -1;
1480
- }
1481
-
1482
- _listCacheHas = listCacheHas;
1483
- return _listCacheHas;
1484
- }
1485
-
1486
- var _listCacheSet;
1487
- var hasRequired_listCacheSet;
1488
-
1489
- function require_listCacheSet () {
1490
- if (hasRequired_listCacheSet) return _listCacheSet;
1491
- hasRequired_listCacheSet = 1;
1492
- var assocIndexOf = require_assocIndexOf();
1493
-
1494
- /**
1495
- * Sets the list cache `key` to `value`.
1496
- *
1497
- * @private
1498
- * @name set
1499
- * @memberOf ListCache
1500
- * @param {string} key The key of the value to set.
1501
- * @param {*} value The value to set.
1502
- * @returns {Object} Returns the list cache instance.
1503
- */
1504
- function listCacheSet(key, value) {
1505
- var data = this.__data__,
1506
- index = assocIndexOf(data, key);
1507
-
1508
- if (index < 0) {
1509
- ++this.size;
1510
- data.push([key, value]);
1511
- } else {
1512
- data[index][1] = value;
1513
- }
1514
- return this;
1515
- }
1516
-
1517
- _listCacheSet = listCacheSet;
1518
- return _listCacheSet;
1519
- }
1520
-
1521
- var _ListCache;
1522
- var hasRequired_ListCache;
1523
-
1524
- function require_ListCache () {
1525
- if (hasRequired_ListCache) return _ListCache;
1526
- hasRequired_ListCache = 1;
1527
- var listCacheClear = require_listCacheClear(),
1528
- listCacheDelete = require_listCacheDelete(),
1529
- listCacheGet = require_listCacheGet(),
1530
- listCacheHas = require_listCacheHas(),
1531
- listCacheSet = require_listCacheSet();
1532
-
1533
- /**
1534
- * Creates an list cache object.
1535
- *
1536
- * @private
1537
- * @constructor
1538
- * @param {Array} [entries] The key-value pairs to cache.
1539
- */
1540
- function ListCache(entries) {
1541
- var index = -1,
1542
- length = entries == null ? 0 : entries.length;
1543
-
1544
- this.clear();
1545
- while (++index < length) {
1546
- var entry = entries[index];
1547
- this.set(entry[0], entry[1]);
1548
- }
1549
- }
1550
-
1551
- // Add methods to `ListCache`.
1552
- ListCache.prototype.clear = listCacheClear;
1553
- ListCache.prototype['delete'] = listCacheDelete;
1554
- ListCache.prototype.get = listCacheGet;
1555
- ListCache.prototype.has = listCacheHas;
1556
- ListCache.prototype.set = listCacheSet;
1557
-
1558
- _ListCache = ListCache;
1559
- return _ListCache;
1560
- }
1561
-
1562
- var _mapCacheClear;
1563
- var hasRequired_mapCacheClear;
1564
-
1565
- function require_mapCacheClear () {
1566
- if (hasRequired_mapCacheClear) return _mapCacheClear;
1567
- hasRequired_mapCacheClear = 1;
1568
- var Hash = require_Hash(),
1569
- ListCache = require_ListCache(),
1570
- Map = require_Map();
1571
-
1572
- /**
1573
- * Removes all key-value entries from the map.
1574
- *
1575
- * @private
1576
- * @name clear
1577
- * @memberOf MapCache
1578
- */
1579
- function mapCacheClear() {
1580
- this.size = 0;
1581
- this.__data__ = {
1582
- 'hash': new Hash,
1583
- 'map': new (Map || ListCache),
1584
- 'string': new Hash
1585
- };
1586
- }
1587
-
1588
- _mapCacheClear = mapCacheClear;
1589
- return _mapCacheClear;
1590
- }
1591
-
1592
- /**
1593
- * Checks if `value` is suitable for use as unique object key.
1594
- *
1595
- * @private
1596
- * @param {*} value The value to check.
1597
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1598
- */
1599
-
1600
- var _isKeyable;
1601
- var hasRequired_isKeyable;
1602
-
1603
- function require_isKeyable () {
1604
- if (hasRequired_isKeyable) return _isKeyable;
1605
- hasRequired_isKeyable = 1;
1606
- function isKeyable(value) {
1607
- var type = typeof value;
1608
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1609
- ? (value !== '__proto__')
1610
- : (value === null);
1611
- }
1612
-
1613
- _isKeyable = isKeyable;
1614
- return _isKeyable;
1615
- }
1616
-
1617
- var _getMapData;
1618
- var hasRequired_getMapData;
1619
-
1620
- function require_getMapData () {
1621
- if (hasRequired_getMapData) return _getMapData;
1622
- hasRequired_getMapData = 1;
1623
- var isKeyable = require_isKeyable();
1624
-
1625
- /**
1626
- * Gets the data for `map`.
1627
- *
1628
- * @private
1629
- * @param {Object} map The map to query.
1630
- * @param {string} key The reference key.
1631
- * @returns {*} Returns the map data.
1632
- */
1633
- function getMapData(map, key) {
1634
- var data = map.__data__;
1635
- return isKeyable(key)
1636
- ? data[typeof key == 'string' ? 'string' : 'hash']
1637
- : data.map;
1638
- }
1639
-
1640
- _getMapData = getMapData;
1641
- return _getMapData;
1642
- }
1643
-
1644
- var _mapCacheDelete;
1645
- var hasRequired_mapCacheDelete;
1646
-
1647
- function require_mapCacheDelete () {
1648
- if (hasRequired_mapCacheDelete) return _mapCacheDelete;
1649
- hasRequired_mapCacheDelete = 1;
1650
- var getMapData = require_getMapData();
1651
-
1652
- /**
1653
- * Removes `key` and its value from the map.
1654
- *
1655
- * @private
1656
- * @name delete
1657
- * @memberOf MapCache
1658
- * @param {string} key The key of the value to remove.
1659
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1660
- */
1661
- function mapCacheDelete(key) {
1662
- var result = getMapData(this, key)['delete'](key);
1663
- this.size -= result ? 1 : 0;
1664
- return result;
1665
- }
1666
-
1667
- _mapCacheDelete = mapCacheDelete;
1668
- return _mapCacheDelete;
1669
- }
1670
-
1671
- var _mapCacheGet;
1672
- var hasRequired_mapCacheGet;
1673
-
1674
- function require_mapCacheGet () {
1675
- if (hasRequired_mapCacheGet) return _mapCacheGet;
1676
- hasRequired_mapCacheGet = 1;
1677
- var getMapData = require_getMapData();
1678
-
1679
- /**
1680
- * Gets the map value for `key`.
1681
- *
1682
- * @private
1683
- * @name get
1684
- * @memberOf MapCache
1685
- * @param {string} key The key of the value to get.
1686
- * @returns {*} Returns the entry value.
1687
- */
1688
- function mapCacheGet(key) {
1689
- return getMapData(this, key).get(key);
1690
- }
1691
-
1692
- _mapCacheGet = mapCacheGet;
1693
- return _mapCacheGet;
1694
- }
1695
-
1696
- var _mapCacheHas;
1697
- var hasRequired_mapCacheHas;
1698
-
1699
- function require_mapCacheHas () {
1700
- if (hasRequired_mapCacheHas) return _mapCacheHas;
1701
- hasRequired_mapCacheHas = 1;
1702
- var getMapData = require_getMapData();
1703
-
1704
- /**
1705
- * Checks if a map value for `key` exists.
1706
- *
1707
- * @private
1708
- * @name has
1709
- * @memberOf MapCache
1710
- * @param {string} key The key of the entry to check.
1711
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1712
- */
1713
- function mapCacheHas(key) {
1714
- return getMapData(this, key).has(key);
1715
- }
1716
-
1717
- _mapCacheHas = mapCacheHas;
1718
- return _mapCacheHas;
1719
- }
1720
-
1721
- var _mapCacheSet;
1722
- var hasRequired_mapCacheSet;
1723
-
1724
- function require_mapCacheSet () {
1725
- if (hasRequired_mapCacheSet) return _mapCacheSet;
1726
- hasRequired_mapCacheSet = 1;
1727
- var getMapData = require_getMapData();
1728
-
1729
- /**
1730
- * Sets the map `key` to `value`.
1731
- *
1732
- * @private
1733
- * @name set
1734
- * @memberOf MapCache
1735
- * @param {string} key The key of the value to set.
1736
- * @param {*} value The value to set.
1737
- * @returns {Object} Returns the map cache instance.
1738
- */
1739
- function mapCacheSet(key, value) {
1740
- var data = getMapData(this, key),
1741
- size = data.size;
1742
-
1743
- data.set(key, value);
1744
- this.size += data.size == size ? 0 : 1;
1745
- return this;
1746
- }
1747
-
1748
- _mapCacheSet = mapCacheSet;
1749
- return _mapCacheSet;
1750
- }
1751
-
1752
- var _MapCache;
1753
- var hasRequired_MapCache;
1754
-
1755
- function require_MapCache () {
1756
- if (hasRequired_MapCache) return _MapCache;
1757
- hasRequired_MapCache = 1;
1758
- var mapCacheClear = require_mapCacheClear(),
1759
- mapCacheDelete = require_mapCacheDelete(),
1760
- mapCacheGet = require_mapCacheGet(),
1761
- mapCacheHas = require_mapCacheHas(),
1762
- mapCacheSet = require_mapCacheSet();
1763
-
1764
- /**
1765
- * Creates a map cache object to store key-value pairs.
1766
- *
1767
- * @private
1768
- * @constructor
1769
- * @param {Array} [entries] The key-value pairs to cache.
1770
- */
1771
- function MapCache(entries) {
1772
- var index = -1,
1773
- length = entries == null ? 0 : entries.length;
1774
-
1775
- this.clear();
1776
- while (++index < length) {
1777
- var entry = entries[index];
1778
- this.set(entry[0], entry[1]);
1779
- }
1780
- }
1781
-
1782
- // Add methods to `MapCache`.
1783
- MapCache.prototype.clear = mapCacheClear;
1784
- MapCache.prototype['delete'] = mapCacheDelete;
1785
- MapCache.prototype.get = mapCacheGet;
1786
- MapCache.prototype.has = mapCacheHas;
1787
- MapCache.prototype.set = mapCacheSet;
1788
-
1789
- _MapCache = MapCache;
1790
- return _MapCache;
1791
- }
1792
-
1793
- var memoize_1;
1794
- var hasRequiredMemoize;
1795
-
1796
- function requireMemoize () {
1797
- if (hasRequiredMemoize) return memoize_1;
1798
- hasRequiredMemoize = 1;
1799
- var MapCache = require_MapCache();
1800
-
1801
- /** Error message constants. */
1802
- var FUNC_ERROR_TEXT = 'Expected a function';
1803
-
1804
- /**
1805
- * Creates a function that memoizes the result of `func`. If `resolver` is
1806
- * provided, it determines the cache key for storing the result based on the
1807
- * arguments provided to the memoized function. By default, the first argument
1808
- * provided to the memoized function is used as the map cache key. The `func`
1809
- * is invoked with the `this` binding of the memoized function.
1810
- *
1811
- * **Note:** The cache is exposed as the `cache` property on the memoized
1812
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
1813
- * constructor with one whose instances implement the
1814
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
1815
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
1816
- *
1817
- * @static
1818
- * @memberOf _
1819
- * @since 0.1.0
1820
- * @category Function
1821
- * @param {Function} func The function to have its output memoized.
1822
- * @param {Function} [resolver] The function to resolve the cache key.
1823
- * @returns {Function} Returns the new memoized function.
1824
- * @example
1825
- *
1826
- * var object = { 'a': 1, 'b': 2 };
1827
- * var other = { 'c': 3, 'd': 4 };
1828
- *
1829
- * var values = _.memoize(_.values);
1830
- * values(object);
1831
- * // => [1, 2]
1832
- *
1833
- * values(other);
1834
- * // => [3, 4]
1835
- *
1836
- * object.a = 2;
1837
- * values(object);
1838
- * // => [1, 2]
1839
- *
1840
- * // Modify the result cache.
1841
- * values.cache.set(object, ['a', 'b']);
1842
- * values(object);
1843
- * // => ['a', 'b']
1844
- *
1845
- * // Replace `_.memoize.Cache`.
1846
- * _.memoize.Cache = WeakMap;
1847
- */
1848
- function memoize(func, resolver) {
1849
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
1850
- throw new TypeError(FUNC_ERROR_TEXT);
1851
- }
1852
- var memoized = function() {
1853
- var args = arguments,
1854
- key = resolver ? resolver.apply(this, args) : args[0],
1855
- cache = memoized.cache;
1856
-
1857
- if (cache.has(key)) {
1858
- return cache.get(key);
1859
- }
1860
- var result = func.apply(this, args);
1861
- memoized.cache = cache.set(key, result) || cache;
1862
- return result;
1863
- };
1864
- memoized.cache = new (memoize.Cache || MapCache);
1865
- return memoized;
1866
- }
1867
-
1868
- // Expose `MapCache`.
1869
- memoize.Cache = MapCache;
1870
-
1871
- memoize_1 = memoize;
1872
- return memoize_1;
1873
- }
1874
-
1875
- var _memoizeCapped;
1876
- var hasRequired_memoizeCapped;
1877
-
1878
- function require_memoizeCapped () {
1879
- if (hasRequired_memoizeCapped) return _memoizeCapped;
1880
- hasRequired_memoizeCapped = 1;
1881
- var memoize = requireMemoize();
1882
-
1883
- /** Used as the maximum memoize cache size. */
1884
- var MAX_MEMOIZE_SIZE = 500;
1885
-
1886
- /**
1887
- * A specialized version of `_.memoize` which clears the memoized function's
1888
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1889
- *
1890
- * @private
1891
- * @param {Function} func The function to have its output memoized.
1892
- * @returns {Function} Returns the new memoized function.
1893
- */
1894
- function memoizeCapped(func) {
1895
- var result = memoize(func, function(key) {
1896
- if (cache.size === MAX_MEMOIZE_SIZE) {
1897
- cache.clear();
1898
- }
1899
- return key;
1900
- });
1901
-
1902
- var cache = result.cache;
1903
- return result;
1904
- }
1905
-
1906
- _memoizeCapped = memoizeCapped;
1907
- return _memoizeCapped;
1908
- }
1909
-
1910
- var _stringToPath;
1911
- var hasRequired_stringToPath;
1912
-
1913
- function require_stringToPath () {
1914
- if (hasRequired_stringToPath) return _stringToPath;
1915
- hasRequired_stringToPath = 1;
1916
- var memoizeCapped = require_memoizeCapped();
1917
-
1918
- /** Used to match property names within property paths. */
1919
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1920
-
1921
- /** Used to match backslashes in property paths. */
1922
- var reEscapeChar = /\\(\\)?/g;
1923
-
1924
- /**
1925
- * Converts `string` to a property path array.
1926
- *
1927
- * @private
1928
- * @param {string} string The string to convert.
1929
- * @returns {Array} Returns the property path array.
1930
- */
1931
- var stringToPath = memoizeCapped(function(string) {
1932
- var result = [];
1933
- if (string.charCodeAt(0) === 46 /* . */) {
1934
- result.push('');
1935
- }
1936
- string.replace(rePropName, function(match, number, quote, subString) {
1937
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1938
- });
1939
- return result;
1940
- });
1941
-
1942
- _stringToPath = stringToPath;
1943
- return _stringToPath;
1944
- }
1945
-
1946
- /**
1947
- * A specialized version of `_.map` for arrays without support for iteratee
1948
- * shorthands.
1949
- *
1950
- * @private
1951
- * @param {Array} [array] The array to iterate over.
1952
- * @param {Function} iteratee The function invoked per iteration.
1953
- * @returns {Array} Returns the new mapped array.
1954
- */
1955
-
1956
- var _arrayMap;
1957
- var hasRequired_arrayMap;
1958
-
1959
- function require_arrayMap () {
1960
- if (hasRequired_arrayMap) return _arrayMap;
1961
- hasRequired_arrayMap = 1;
1962
- function arrayMap(array, iteratee) {
1963
- var index = -1,
1964
- length = array == null ? 0 : array.length,
1965
- result = Array(length);
1966
-
1967
- while (++index < length) {
1968
- result[index] = iteratee(array[index], index, array);
1969
- }
1970
- return result;
1971
- }
1972
-
1973
- _arrayMap = arrayMap;
1974
- return _arrayMap;
1975
- }
1976
-
1977
- var _baseToString;
1978
- var hasRequired_baseToString;
1979
-
1980
- function require_baseToString () {
1981
- if (hasRequired_baseToString) return _baseToString;
1982
- hasRequired_baseToString = 1;
1983
- var Symbol = require_Symbol(),
1984
- arrayMap = require_arrayMap(),
1985
- isArray = requireIsArray(),
1986
- isSymbol = requireIsSymbol();
1987
-
1988
- /** Used to convert symbols to primitives and strings. */
1989
- var symbolProto = Symbol ? Symbol.prototype : undefined,
1990
- symbolToString = symbolProto ? symbolProto.toString : undefined;
1991
-
1992
- /**
1993
- * The base implementation of `_.toString` which doesn't convert nullish
1994
- * values to empty strings.
1995
- *
1996
- * @private
1997
- * @param {*} value The value to process.
1998
- * @returns {string} Returns the string.
1999
- */
2000
- function baseToString(value) {
2001
- // Exit early for strings to avoid a performance hit in some environments.
2002
- if (typeof value == 'string') {
2003
- return value;
2004
- }
2005
- if (isArray(value)) {
2006
- // Recursively convert values (susceptible to call stack limits).
2007
- return arrayMap(value, baseToString) + '';
2008
- }
2009
- if (isSymbol(value)) {
2010
- return symbolToString ? symbolToString.call(value) : '';
2011
- }
2012
- var result = (value + '');
2013
- return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
2014
- }
2015
-
2016
- _baseToString = baseToString;
2017
- return _baseToString;
2018
- }
2019
-
2020
- var toString_1;
2021
- var hasRequiredToString;
2022
-
2023
- function requireToString () {
2024
- if (hasRequiredToString) return toString_1;
2025
- hasRequiredToString = 1;
2026
- var baseToString = require_baseToString();
2027
-
2028
- /**
2029
- * Converts `value` to a string. An empty string is returned for `null`
2030
- * and `undefined` values. The sign of `-0` is preserved.
2031
- *
2032
- * @static
2033
- * @memberOf _
2034
- * @since 4.0.0
2035
- * @category Lang
2036
- * @param {*} value The value to convert.
2037
- * @returns {string} Returns the converted string.
2038
- * @example
2039
- *
2040
- * _.toString(null);
2041
- * // => ''
2042
- *
2043
- * _.toString(-0);
2044
- * // => '-0'
2045
- *
2046
- * _.toString([1, 2, 3]);
2047
- * // => '1,2,3'
2048
- */
2049
- function toString(value) {
2050
- return value == null ? '' : baseToString(value);
2051
- }
2052
-
2053
- toString_1 = toString;
2054
- return toString_1;
2055
- }
2056
-
2057
- var _castPath;
2058
- var hasRequired_castPath;
2059
-
2060
- function require_castPath () {
2061
- if (hasRequired_castPath) return _castPath;
2062
- hasRequired_castPath = 1;
2063
- var isArray = requireIsArray(),
2064
- isKey = require_isKey(),
2065
- stringToPath = require_stringToPath(),
2066
- toString = requireToString();
2067
-
2068
- /**
2069
- * Casts `value` to a path array if it's not one.
2070
- *
2071
- * @private
2072
- * @param {*} value The value to inspect.
2073
- * @param {Object} [object] The object to query keys on.
2074
- * @returns {Array} Returns the cast property path array.
2075
- */
2076
- function castPath(value, object) {
2077
- if (isArray(value)) {
2078
- return value;
2079
- }
2080
- return isKey(value, object) ? [value] : stringToPath(toString(value));
2081
- }
2082
-
2083
- _castPath = castPath;
2084
- return _castPath;
2085
- }
2086
-
2087
- var _toKey;
2088
- var hasRequired_toKey;
2089
-
2090
- function require_toKey () {
2091
- if (hasRequired_toKey) return _toKey;
2092
- hasRequired_toKey = 1;
2093
- var isSymbol = requireIsSymbol();
2094
-
2095
- /**
2096
- * Converts `value` to a string key if it's not a string or symbol.
2097
- *
2098
- * @private
2099
- * @param {*} value The value to inspect.
2100
- * @returns {string|symbol} Returns the key.
2101
- */
2102
- function toKey(value) {
2103
- if (typeof value == 'string' || isSymbol(value)) {
2104
- return value;
2105
- }
2106
- var result = (value + '');
2107
- return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
2108
- }
2109
-
2110
- _toKey = toKey;
2111
- return _toKey;
2112
- }
2113
-
2114
- var _baseGet;
2115
- var hasRequired_baseGet;
2116
-
2117
- function require_baseGet () {
2118
- if (hasRequired_baseGet) return _baseGet;
2119
- hasRequired_baseGet = 1;
2120
- var castPath = require_castPath(),
2121
- toKey = require_toKey();
2122
-
2123
- /**
2124
- * The base implementation of `_.get` without support for default values.
2125
- *
2126
- * @private
2127
- * @param {Object} object The object to query.
2128
- * @param {Array|string} path The path of the property to get.
2129
- * @returns {*} Returns the resolved value.
2130
- */
2131
- function baseGet(object, path) {
2132
- path = castPath(path, object);
2133
-
2134
- var index = 0,
2135
- length = path.length;
2136
-
2137
- while (object != null && index < length) {
2138
- object = object[toKey(path[index++])];
2139
- }
2140
- return (index && index == length) ? object : undefined;
2141
- }
2142
-
2143
- _baseGet = baseGet;
2144
- return _baseGet;
2145
- }
2146
-
2147
- var get_1;
2148
- var hasRequiredGet;
2149
-
2150
- function requireGet () {
2151
- if (hasRequiredGet) return get_1;
2152
- hasRequiredGet = 1;
2153
- var baseGet = require_baseGet();
2154
-
2155
- /**
2156
- * Gets the value at `path` of `object`. If the resolved value is
2157
- * `undefined`, the `defaultValue` is returned in its place.
2158
- *
2159
- * @static
2160
- * @memberOf _
2161
- * @since 3.7.0
2162
- * @category Object
2163
- * @param {Object} object The object to query.
2164
- * @param {Array|string} path The path of the property to get.
2165
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
2166
- * @returns {*} Returns the resolved value.
2167
- * @example
2168
- *
2169
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
2170
- *
2171
- * _.get(object, 'a[0].b.c');
2172
- * // => 3
2173
- *
2174
- * _.get(object, ['a', '0', 'b', 'c']);
2175
- * // => 3
2176
- *
2177
- * _.get(object, 'a.b.c', 'default');
2178
- * // => 'default'
2179
- */
2180
- function get(object, path, defaultValue) {
2181
- var result = object == null ? undefined : baseGet(object, path);
2182
- return result === undefined ? defaultValue : result;
2183
- }
2184
-
2185
- get_1 = get;
2186
- return get_1;
2187
- }
2188
-
2189
- var getExports = requireGet();
2190
- var get = /*@__PURE__*/getDefaultExportFromCjs(getExports);
2191
-
2192
- var _defineProperty;
2193
- var hasRequired_defineProperty;
2194
-
2195
- function require_defineProperty () {
2196
- if (hasRequired_defineProperty) return _defineProperty;
2197
- hasRequired_defineProperty = 1;
2198
- var getNative = require_getNative();
2199
-
2200
- var defineProperty = (function() {
2201
- try {
2202
- var func = getNative(Object, 'defineProperty');
2203
- func({}, '', {});
2204
- return func;
2205
- } catch (e) {}
2206
- }());
2207
-
2208
- _defineProperty = defineProperty;
2209
- return _defineProperty;
2210
- }
2211
-
2212
- var _baseAssignValue;
2213
- var hasRequired_baseAssignValue;
2214
-
2215
- function require_baseAssignValue () {
2216
- if (hasRequired_baseAssignValue) return _baseAssignValue;
2217
- hasRequired_baseAssignValue = 1;
2218
- var defineProperty = require_defineProperty();
2219
-
2220
- /**
2221
- * The base implementation of `assignValue` and `assignMergeValue` without
2222
- * value checks.
2223
- *
2224
- * @private
2225
- * @param {Object} object The object to modify.
2226
- * @param {string} key The key of the property to assign.
2227
- * @param {*} value The value to assign.
2228
- */
2229
- function baseAssignValue(object, key, value) {
2230
- if (key == '__proto__' && defineProperty) {
2231
- defineProperty(object, key, {
2232
- 'configurable': true,
2233
- 'enumerable': true,
2234
- 'value': value,
2235
- 'writable': true
2236
- });
2237
- } else {
2238
- object[key] = value;
2239
- }
2240
- }
2241
-
2242
- _baseAssignValue = baseAssignValue;
2243
- return _baseAssignValue;
2244
- }
2245
-
2246
- var _assignValue;
2247
- var hasRequired_assignValue;
2248
-
2249
- function require_assignValue () {
2250
- if (hasRequired_assignValue) return _assignValue;
2251
- hasRequired_assignValue = 1;
2252
- var baseAssignValue = require_baseAssignValue(),
2253
- eq = requireEq();
2254
-
2255
- /** Used for built-in method references. */
2256
- var objectProto = Object.prototype;
2257
-
2258
- /** Used to check objects for own properties. */
2259
- var hasOwnProperty = objectProto.hasOwnProperty;
2260
-
2261
- /**
2262
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
2263
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
2264
- * for equality comparisons.
2265
- *
2266
- * @private
2267
- * @param {Object} object The object to modify.
2268
- * @param {string} key The key of the property to assign.
2269
- * @param {*} value The value to assign.
2270
- */
2271
- function assignValue(object, key, value) {
2272
- var objValue = object[key];
2273
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
2274
- (value === undefined && !(key in object))) {
2275
- baseAssignValue(object, key, value);
2276
- }
2277
- }
2278
-
2279
- _assignValue = assignValue;
2280
- return _assignValue;
2281
- }
2282
-
2283
- /** Used as references for various `Number` constants. */
2284
-
2285
- var _isIndex;
2286
- var hasRequired_isIndex;
2287
-
2288
- function require_isIndex () {
2289
- if (hasRequired_isIndex) return _isIndex;
2290
- hasRequired_isIndex = 1;
2291
- var MAX_SAFE_INTEGER = 9007199254740991;
2292
-
2293
- /** Used to detect unsigned integer values. */
2294
- var reIsUint = /^(?:0|[1-9]\d*)$/;
2295
-
2296
- /**
2297
- * Checks if `value` is a valid array-like index.
2298
- *
2299
- * @private
2300
- * @param {*} value The value to check.
2301
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
2302
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
2303
- */
2304
- function isIndex(value, length) {
2305
- var type = typeof value;
2306
- length = length == null ? MAX_SAFE_INTEGER : length;
2307
-
2308
- return !!length &&
2309
- (type == 'number' ||
2310
- (type != 'symbol' && reIsUint.test(value))) &&
2311
- (value > -1 && value % 1 == 0 && value < length);
2312
- }
2313
-
2314
- _isIndex = isIndex;
2315
- return _isIndex;
2316
- }
2317
-
2318
- var _baseSet;
2319
- var hasRequired_baseSet;
2320
-
2321
- function require_baseSet () {
2322
- if (hasRequired_baseSet) return _baseSet;
2323
- hasRequired_baseSet = 1;
2324
- var assignValue = require_assignValue(),
2325
- castPath = require_castPath(),
2326
- isIndex = require_isIndex(),
2327
- isObject = requireIsObject(),
2328
- toKey = require_toKey();
2329
-
2330
- /**
2331
- * The base implementation of `_.set`.
2332
- *
2333
- * @private
2334
- * @param {Object} object The object to modify.
2335
- * @param {Array|string} path The path of the property to set.
2336
- * @param {*} value The value to set.
2337
- * @param {Function} [customizer] The function to customize path creation.
2338
- * @returns {Object} Returns `object`.
2339
- */
2340
- function baseSet(object, path, value, customizer) {
2341
- if (!isObject(object)) {
2342
- return object;
2343
- }
2344
- path = castPath(path, object);
2345
-
2346
- var index = -1,
2347
- length = path.length,
2348
- lastIndex = length - 1,
2349
- nested = object;
2350
-
2351
- while (nested != null && ++index < length) {
2352
- var key = toKey(path[index]),
2353
- newValue = value;
2354
-
2355
- if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
2356
- return object;
2357
- }
2358
-
2359
- if (index != lastIndex) {
2360
- var objValue = nested[key];
2361
- newValue = customizer ? customizer(objValue, key, nested) : undefined;
2362
- if (newValue === undefined) {
2363
- newValue = isObject(objValue)
2364
- ? objValue
2365
- : (isIndex(path[index + 1]) ? [] : {});
2366
- }
2367
- }
2368
- assignValue(nested, key, newValue);
2369
- nested = nested[key];
2370
- }
2371
- return object;
2372
- }
2373
-
2374
- _baseSet = baseSet;
2375
- return _baseSet;
2376
- }
2377
-
2378
- var _basePickBy;
2379
- var hasRequired_basePickBy;
2380
-
2381
- function require_basePickBy () {
2382
- if (hasRequired_basePickBy) return _basePickBy;
2383
- hasRequired_basePickBy = 1;
2384
- var baseGet = require_baseGet(),
2385
- baseSet = require_baseSet(),
2386
- castPath = require_castPath();
2387
-
2388
- /**
2389
- * The base implementation of `_.pickBy` without support for iteratee shorthands.
2390
- *
2391
- * @private
2392
- * @param {Object} object The source object.
2393
- * @param {string[]} paths The property paths to pick.
2394
- * @param {Function} predicate The function invoked per property.
2395
- * @returns {Object} Returns the new object.
2396
- */
2397
- function basePickBy(object, paths, predicate) {
2398
- var index = -1,
2399
- length = paths.length,
2400
- result = {};
2401
-
2402
- while (++index < length) {
2403
- var path = paths[index],
2404
- value = baseGet(object, path);
2405
-
2406
- if (predicate(value, path)) {
2407
- baseSet(result, castPath(path, object), value);
2408
- }
2409
- }
2410
- return result;
2411
- }
2412
-
2413
- _basePickBy = basePickBy;
2414
- return _basePickBy;
2415
- }
2416
-
2417
- /**
2418
- * The base implementation of `_.hasIn` without support for deep paths.
2419
- *
2420
- * @private
2421
- * @param {Object} [object] The object to query.
2422
- * @param {Array|string} key The key to check.
2423
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
2424
- */
2425
-
2426
- var _baseHasIn;
2427
- var hasRequired_baseHasIn;
2428
-
2429
- function require_baseHasIn () {
2430
- if (hasRequired_baseHasIn) return _baseHasIn;
2431
- hasRequired_baseHasIn = 1;
2432
- function baseHasIn(object, key) {
2433
- return object != null && key in Object(object);
2434
- }
2435
-
2436
- _baseHasIn = baseHasIn;
2437
- return _baseHasIn;
2438
- }
2439
-
2440
- var _hasPath;
2441
- var hasRequired_hasPath;
2442
-
2443
- function require_hasPath () {
2444
- if (hasRequired_hasPath) return _hasPath;
2445
- hasRequired_hasPath = 1;
2446
- var castPath = require_castPath(),
2447
- isArguments = requireIsArguments(),
2448
- isArray = requireIsArray(),
2449
- isIndex = require_isIndex(),
2450
- isLength = requireIsLength(),
2451
- toKey = require_toKey();
2452
-
2453
- /**
2454
- * Checks if `path` exists on `object`.
2455
- *
2456
- * @private
2457
- * @param {Object} object The object to query.
2458
- * @param {Array|string} path The path to check.
2459
- * @param {Function} hasFunc The function to check properties.
2460
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
2461
- */
2462
- function hasPath(object, path, hasFunc) {
2463
- path = castPath(path, object);
2464
-
2465
- var index = -1,
2466
- length = path.length,
2467
- result = false;
2468
-
2469
- while (++index < length) {
2470
- var key = toKey(path[index]);
2471
- if (!(result = object != null && hasFunc(object, key))) {
2472
- break;
2473
- }
2474
- object = object[key];
2475
- }
2476
- if (result || ++index != length) {
2477
- return result;
2478
- }
2479
- length = object == null ? 0 : object.length;
2480
- return !!length && isLength(length) && isIndex(key, length) &&
2481
- (isArray(object) || isArguments(object));
2482
- }
2483
-
2484
- _hasPath = hasPath;
2485
- return _hasPath;
2486
- }
2487
-
2488
- var hasIn_1;
2489
- var hasRequiredHasIn;
2490
-
2491
- function requireHasIn () {
2492
- if (hasRequiredHasIn) return hasIn_1;
2493
- hasRequiredHasIn = 1;
2494
- var baseHasIn = require_baseHasIn(),
2495
- hasPath = require_hasPath();
2496
-
2497
- /**
2498
- * Checks if `path` is a direct or inherited property of `object`.
2499
- *
2500
- * @static
2501
- * @memberOf _
2502
- * @since 4.0.0
2503
- * @category Object
2504
- * @param {Object} object The object to query.
2505
- * @param {Array|string} path The path to check.
2506
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
2507
- * @example
2508
- *
2509
- * var object = _.create({ 'a': _.create({ 'b': 2 }) });
2510
- *
2511
- * _.hasIn(object, 'a');
2512
- * // => true
2513
- *
2514
- * _.hasIn(object, 'a.b');
2515
- * // => true
2516
- *
2517
- * _.hasIn(object, ['a', 'b']);
2518
- * // => true
2519
- *
2520
- * _.hasIn(object, 'b');
2521
- * // => false
2522
- */
2523
- function hasIn(object, path) {
2524
- return object != null && hasPath(object, path, baseHasIn);
2525
- }
2526
-
2527
- hasIn_1 = hasIn;
2528
- return hasIn_1;
2529
- }
2530
-
2531
- var _basePick;
2532
- var hasRequired_basePick;
2533
-
2534
- function require_basePick () {
2535
- if (hasRequired_basePick) return _basePick;
2536
- hasRequired_basePick = 1;
2537
- var basePickBy = require_basePickBy(),
2538
- hasIn = requireHasIn();
2539
-
2540
- /**
2541
- * The base implementation of `_.pick` without support for individual
2542
- * property identifiers.
2543
- *
2544
- * @private
2545
- * @param {Object} object The source object.
2546
- * @param {string[]} paths The property paths to pick.
2547
- * @returns {Object} Returns the new object.
2548
- */
2549
- function basePick(object, paths) {
2550
- return basePickBy(object, paths, function(value, path) {
2551
- return hasIn(object, path);
2552
- });
2553
- }
2554
-
2555
- _basePick = basePick;
2556
- return _basePick;
2557
- }
2558
-
2559
- /**
2560
- * Appends the elements of `values` to `array`.
2561
- *
2562
- * @private
2563
- * @param {Array} array The array to modify.
2564
- * @param {Array} values The values to append.
2565
- * @returns {Array} Returns `array`.
2566
- */
2567
-
2568
- var _arrayPush;
2569
- var hasRequired_arrayPush;
2570
-
2571
- function require_arrayPush () {
2572
- if (hasRequired_arrayPush) return _arrayPush;
2573
- hasRequired_arrayPush = 1;
2574
- function arrayPush(array, values) {
2575
- var index = -1,
2576
- length = values.length,
2577
- offset = array.length;
2578
-
2579
- while (++index < length) {
2580
- array[offset + index] = values[index];
2581
- }
2582
- return array;
2583
- }
2584
-
2585
- _arrayPush = arrayPush;
2586
- return _arrayPush;
2587
- }
2588
-
2589
- var _isFlattenable;
2590
- var hasRequired_isFlattenable;
2591
-
2592
- function require_isFlattenable () {
2593
- if (hasRequired_isFlattenable) return _isFlattenable;
2594
- hasRequired_isFlattenable = 1;
2595
- var Symbol = require_Symbol(),
2596
- isArguments = requireIsArguments(),
2597
- isArray = requireIsArray();
2598
-
2599
- /** Built-in value references. */
2600
- var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
2601
-
2602
- /**
2603
- * Checks if `value` is a flattenable `arguments` object or array.
2604
- *
2605
- * @private
2606
- * @param {*} value The value to check.
2607
- * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
2608
- */
2609
- function isFlattenable(value) {
2610
- return isArray(value) || isArguments(value) ||
2611
- !!(spreadableSymbol && value && value[spreadableSymbol]);
2612
- }
2613
-
2614
- _isFlattenable = isFlattenable;
2615
- return _isFlattenable;
2616
- }
2617
-
2618
- var _baseFlatten;
2619
- var hasRequired_baseFlatten;
2620
-
2621
- function require_baseFlatten () {
2622
- if (hasRequired_baseFlatten) return _baseFlatten;
2623
- hasRequired_baseFlatten = 1;
2624
- var arrayPush = require_arrayPush(),
2625
- isFlattenable = require_isFlattenable();
2626
-
2627
- /**
2628
- * The base implementation of `_.flatten` with support for restricting flattening.
2629
- *
2630
- * @private
2631
- * @param {Array} array The array to flatten.
2632
- * @param {number} depth The maximum recursion depth.
2633
- * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
2634
- * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
2635
- * @param {Array} [result=[]] The initial result value.
2636
- * @returns {Array} Returns the new flattened array.
2637
- */
2638
- function baseFlatten(array, depth, predicate, isStrict, result) {
2639
- var index = -1,
2640
- length = array.length;
2641
-
2642
- predicate || (predicate = isFlattenable);
2643
- result || (result = []);
2644
-
2645
- while (++index < length) {
2646
- var value = array[index];
2647
- if (depth > 0 && predicate(value)) {
2648
- if (depth > 1) {
2649
- // Recursively flatten arrays (susceptible to call stack limits).
2650
- baseFlatten(value, depth - 1, predicate, isStrict, result);
2651
- } else {
2652
- arrayPush(result, value);
2653
- }
2654
- } else if (!isStrict) {
2655
- result[result.length] = value;
2656
- }
2657
- }
2658
- return result;
2659
- }
2660
-
2661
- _baseFlatten = baseFlatten;
2662
- return _baseFlatten;
2663
- }
2664
-
2665
- var flatten_1;
2666
- var hasRequiredFlatten;
2667
-
2668
- function requireFlatten () {
2669
- if (hasRequiredFlatten) return flatten_1;
2670
- hasRequiredFlatten = 1;
2671
- var baseFlatten = require_baseFlatten();
2672
-
2673
- /**
2674
- * Flattens `array` a single level deep.
2675
- *
2676
- * @static
2677
- * @memberOf _
2678
- * @since 0.1.0
2679
- * @category Array
2680
- * @param {Array} array The array to flatten.
2681
- * @returns {Array} Returns the new flattened array.
2682
- * @example
2683
- *
2684
- * _.flatten([1, [2, [3, [4]], 5]]);
2685
- * // => [1, 2, [3, [4]], 5]
2686
- */
2687
- function flatten(array) {
2688
- var length = array == null ? 0 : array.length;
2689
- return length ? baseFlatten(array, 1) : [];
2690
- }
2691
-
2692
- flatten_1 = flatten;
2693
- return flatten_1;
2694
- }
2695
-
2696
- /**
2697
- * A faster alternative to `Function#apply`, this function invokes `func`
2698
- * with the `this` binding of `thisArg` and the arguments of `args`.
2699
- *
2700
- * @private
2701
- * @param {Function} func The function to invoke.
2702
- * @param {*} thisArg The `this` binding of `func`.
2703
- * @param {Array} args The arguments to invoke `func` with.
2704
- * @returns {*} Returns the result of `func`.
2705
- */
2706
-
2707
- var _apply;
2708
- var hasRequired_apply;
2709
-
2710
- function require_apply () {
2711
- if (hasRequired_apply) return _apply;
2712
- hasRequired_apply = 1;
2713
- function apply(func, thisArg, args) {
2714
- switch (args.length) {
2715
- case 0: return func.call(thisArg);
2716
- case 1: return func.call(thisArg, args[0]);
2717
- case 2: return func.call(thisArg, args[0], args[1]);
2718
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
2719
- }
2720
- return func.apply(thisArg, args);
2721
- }
2722
-
2723
- _apply = apply;
2724
- return _apply;
2725
- }
2726
-
2727
- var _overRest;
2728
- var hasRequired_overRest;
2729
-
2730
- function require_overRest () {
2731
- if (hasRequired_overRest) return _overRest;
2732
- hasRequired_overRest = 1;
2733
- var apply = require_apply();
2734
-
2735
- /* Built-in method references for those with the same name as other `lodash` methods. */
2736
- var nativeMax = Math.max;
2737
-
2738
- /**
2739
- * A specialized version of `baseRest` which transforms the rest array.
2740
- *
2741
- * @private
2742
- * @param {Function} func The function to apply a rest parameter to.
2743
- * @param {number} [start=func.length-1] The start position of the rest parameter.
2744
- * @param {Function} transform The rest array transform.
2745
- * @returns {Function} Returns the new function.
2746
- */
2747
- function overRest(func, start, transform) {
2748
- start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
2749
- return function() {
2750
- var args = arguments,
2751
- index = -1,
2752
- length = nativeMax(args.length - start, 0),
2753
- array = Array(length);
2754
-
2755
- while (++index < length) {
2756
- array[index] = args[start + index];
2757
- }
2758
- index = -1;
2759
- var otherArgs = Array(start + 1);
2760
- while (++index < start) {
2761
- otherArgs[index] = args[index];
2762
- }
2763
- otherArgs[start] = transform(array);
2764
- return apply(func, this, otherArgs);
2765
- };
2766
- }
2767
-
2768
- _overRest = overRest;
2769
- return _overRest;
2770
- }
2771
-
2772
- /**
2773
- * Creates a function that returns `value`.
2774
- *
2775
- * @static
2776
- * @memberOf _
2777
- * @since 2.4.0
2778
- * @category Util
2779
- * @param {*} value The value to return from the new function.
2780
- * @returns {Function} Returns the new constant function.
2781
- * @example
2782
- *
2783
- * var objects = _.times(2, _.constant({ 'a': 1 }));
2784
- *
2785
- * console.log(objects);
2786
- * // => [{ 'a': 1 }, { 'a': 1 }]
2787
- *
2788
- * console.log(objects[0] === objects[1]);
2789
- * // => true
2790
- */
2791
-
2792
- var constant_1;
2793
- var hasRequiredConstant;
2794
-
2795
- function requireConstant () {
2796
- if (hasRequiredConstant) return constant_1;
2797
- hasRequiredConstant = 1;
2798
- function constant(value) {
2799
- return function() {
2800
- return value;
2801
- };
2802
- }
2803
-
2804
- constant_1 = constant;
2805
- return constant_1;
2806
- }
2807
-
2808
- /**
2809
- * This method returns the first argument it receives.
2810
- *
2811
- * @static
2812
- * @since 0.1.0
2813
- * @memberOf _
2814
- * @category Util
2815
- * @param {*} value Any value.
2816
- * @returns {*} Returns `value`.
2817
- * @example
2818
- *
2819
- * var object = { 'a': 1 };
2820
- *
2821
- * console.log(_.identity(object) === object);
2822
- * // => true
2823
- */
2824
-
2825
- var identity_1;
2826
- var hasRequiredIdentity;
2827
-
2828
- function requireIdentity () {
2829
- if (hasRequiredIdentity) return identity_1;
2830
- hasRequiredIdentity = 1;
2831
- function identity(value) {
2832
- return value;
2833
- }
2834
-
2835
- identity_1 = identity;
2836
- return identity_1;
2837
- }
2838
-
2839
- var _baseSetToString;
2840
- var hasRequired_baseSetToString;
2841
-
2842
- function require_baseSetToString () {
2843
- if (hasRequired_baseSetToString) return _baseSetToString;
2844
- hasRequired_baseSetToString = 1;
2845
- var constant = requireConstant(),
2846
- defineProperty = require_defineProperty(),
2847
- identity = requireIdentity();
2848
-
2849
- /**
2850
- * The base implementation of `setToString` without support for hot loop shorting.
2851
- *
2852
- * @private
2853
- * @param {Function} func The function to modify.
2854
- * @param {Function} string The `toString` result.
2855
- * @returns {Function} Returns `func`.
2856
- */
2857
- var baseSetToString = !defineProperty ? identity : function(func, string) {
2858
- return defineProperty(func, 'toString', {
2859
- 'configurable': true,
2860
- 'enumerable': false,
2861
- 'value': constant(string),
2862
- 'writable': true
2863
- });
2864
- };
2865
-
2866
- _baseSetToString = baseSetToString;
2867
- return _baseSetToString;
2868
- }
2869
-
2870
- /** Used to detect hot functions by number of calls within a span of milliseconds. */
2871
-
2872
- var _shortOut;
2873
- var hasRequired_shortOut;
2874
-
2875
- function require_shortOut () {
2876
- if (hasRequired_shortOut) return _shortOut;
2877
- hasRequired_shortOut = 1;
2878
- var HOT_COUNT = 800,
2879
- HOT_SPAN = 16;
2880
-
2881
- /* Built-in method references for those with the same name as other `lodash` methods. */
2882
- var nativeNow = Date.now;
2883
-
2884
- /**
2885
- * Creates a function that'll short out and invoke `identity` instead
2886
- * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
2887
- * milliseconds.
2888
- *
2889
- * @private
2890
- * @param {Function} func The function to restrict.
2891
- * @returns {Function} Returns the new shortable function.
2892
- */
2893
- function shortOut(func) {
2894
- var count = 0,
2895
- lastCalled = 0;
2896
-
2897
- return function() {
2898
- var stamp = nativeNow(),
2899
- remaining = HOT_SPAN - (stamp - lastCalled);
2900
-
2901
- lastCalled = stamp;
2902
- if (remaining > 0) {
2903
- if (++count >= HOT_COUNT) {
2904
- return arguments[0];
2905
- }
2906
- } else {
2907
- count = 0;
2908
- }
2909
- return func.apply(undefined, arguments);
2910
- };
2911
- }
2912
-
2913
- _shortOut = shortOut;
2914
- return _shortOut;
2915
- }
2916
-
2917
- var _setToString;
2918
- var hasRequired_setToString;
2919
-
2920
- function require_setToString () {
2921
- if (hasRequired_setToString) return _setToString;
2922
- hasRequired_setToString = 1;
2923
- var baseSetToString = require_baseSetToString(),
2924
- shortOut = require_shortOut();
2925
-
2926
- /**
2927
- * Sets the `toString` method of `func` to return `string`.
644
+ * // => true
2928
645
  *
2929
- * @private
2930
- * @param {Function} func The function to modify.
2931
- * @param {Function} string The `toString` result.
2932
- * @returns {Function} Returns `func`.
2933
- */
2934
- var setToString = shortOut(baseSetToString);
2935
-
2936
- _setToString = setToString;
2937
- return _setToString;
2938
- }
2939
-
2940
- var _flatRest;
2941
- var hasRequired_flatRest;
2942
-
2943
- function require_flatRest () {
2944
- if (hasRequired_flatRest) return _flatRest;
2945
- hasRequired_flatRest = 1;
2946
- var flatten = requireFlatten(),
2947
- overRest = require_overRest(),
2948
- setToString = require_setToString();
2949
-
2950
- /**
2951
- * A specialized version of `baseRest` which flattens the rest array.
646
+ * _.isEmpty(1);
647
+ * // => true
2952
648
  *
2953
- * @private
2954
- * @param {Function} func The function to apply a rest parameter to.
2955
- * @returns {Function} Returns the new function.
649
+ * _.isEmpty([1, 2, 3]);
650
+ * // => false
651
+ *
652
+ * _.isEmpty({ 'a': 1 });
653
+ * // => false
2956
654
  */
2957
- function flatRest(func) {
2958
- return setToString(overRest(func, undefined, flatten), func + '');
655
+ function isEmpty(value) {
656
+ if (value == null) {
657
+ return true;
658
+ }
659
+ if (isArrayLike(value) &&
660
+ (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
661
+ isBuffer(value) || isTypedArray(value) || isArguments(value))) {
662
+ return !value.length;
663
+ }
664
+ var tag = getTag(value);
665
+ if (tag == mapTag || tag == setTag) {
666
+ return !value.size;
667
+ }
668
+ if (isPrototype(value)) {
669
+ return !baseKeys(value).length;
670
+ }
671
+ for (var key in value) {
672
+ if (hasOwnProperty.call(value, key)) {
673
+ return false;
674
+ }
675
+ }
676
+ return true;
2959
677
  }
2960
678
 
2961
- _flatRest = flatRest;
2962
- return _flatRest;
679
+ isEmpty_1 = isEmpty;
680
+ return isEmpty_1;
2963
681
  }
2964
682
 
2965
- var pick_1;
2966
- var hasRequiredPick;
683
+ var isEmptyExports = requireIsEmpty();
684
+ var isEmpty$1 = /*@__PURE__*/getDefaultExportFromCjs(isEmptyExports);
685
+
686
+ var get_1;
687
+ var hasRequiredGet;
2967
688
 
2968
- function requirePick () {
2969
- if (hasRequiredPick) return pick_1;
2970
- hasRequiredPick = 1;
2971
- var basePick = require_basePick(),
2972
- flatRest = require_flatRest();
689
+ function requireGet () {
690
+ if (hasRequiredGet) return get_1;
691
+ hasRequiredGet = 1;
692
+ var baseGet = require_baseGet();
2973
693
 
2974
694
  /**
2975
- * Creates an object composed of the picked `object` properties.
695
+ * Gets the value at `path` of `object`. If the resolved value is
696
+ * `undefined`, the `defaultValue` is returned in its place.
2976
697
  *
2977
698
  * @static
2978
- * @since 0.1.0
2979
699
  * @memberOf _
700
+ * @since 3.7.0
2980
701
  * @category Object
2981
- * @param {Object} object The source object.
2982
- * @param {...(string|string[])} [paths] The property paths to pick.
2983
- * @returns {Object} Returns the new object.
702
+ * @param {Object} object The object to query.
703
+ * @param {Array|string} path The path of the property to get.
704
+ * @param {*} [defaultValue] The value returned for `undefined` resolved values.
705
+ * @returns {*} Returns the resolved value.
2984
706
  * @example
2985
707
  *
2986
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
708
+ * var object = { 'a': [{ 'b': { 'c': 3 } }] };
709
+ *
710
+ * _.get(object, 'a[0].b.c');
711
+ * // => 3
712
+ *
713
+ * _.get(object, ['a', '0', 'b', 'c']);
714
+ * // => 3
2987
715
  *
2988
- * _.pick(object, ['a', 'c']);
2989
- * // => { 'a': 1, 'c': 3 }
716
+ * _.get(object, 'a.b.c', 'default');
717
+ * // => 'default'
2990
718
  */
2991
- var pick = flatRest(function(object, paths) {
2992
- return object == null ? {} : basePick(object, paths);
2993
- });
719
+ function get(object, path, defaultValue) {
720
+ var result = object == null ? undefined : baseGet(object, path);
721
+ return result === undefined ? defaultValue : result;
722
+ }
2994
723
 
2995
- pick_1 = pick;
2996
- return pick_1;
724
+ get_1 = get;
725
+ return get_1;
2997
726
  }
2998
727
 
2999
- var pickExports = requirePick();
3000
- var pick = /*@__PURE__*/getDefaultExportFromCjs(pickExports);
728
+ var getExports = requireGet();
729
+ var get = /*@__PURE__*/getDefaultExportFromCjs(getExports);
3001
730
 
3002
731
  const PLAYER_EVENT = {
3003
732
  READY: 'ready',
@@ -5136,7 +2865,7 @@ function smartEscape(string, unsafe = /([^a-zA-Z0-9_.\-\/:]+)/g) {
5136
2865
  * Converts string to snake case
5137
2866
  * @param {string} str
5138
2867
  */
5139
- const snakeCase$1 = (str) => str.replace(/[A-Z]/g, letter => `_${letter.toLowerCase()}`);
2868
+ const snakeCase = (str) => str.replace(/[A-Z]/g, letter => `_${letter.toLowerCase()}`);
5140
2869
 
5141
2870
  class Layer {
5142
2871
  /**
@@ -5150,7 +2879,7 @@ class Layer {
5150
2879
  ["resourceType", "type", "publicId", "format"].forEach((key) => {
5151
2880
  var ref;
5152
2881
  // @ts-ignore
5153
- return this.options[key] = (ref = options[key]) != null ? ref : options[snakeCase$1(key)];
2882
+ return this.options[key] = (ref = options[key]) != null ? ref : options[snakeCase(key)];
5154
2883
  });
5155
2884
  }
5156
2885
  }
@@ -5250,7 +2979,7 @@ class TextLayer extends Layer {
5250
2979
  keys.forEach((key) => {
5251
2980
  var ref;
5252
2981
  // @ts-ignore
5253
- return this.options[key] = (ref = options[key]) != null ? ref : options[snakeCase$1(key)];
2982
+ return this.options[key] = (ref = options[key]) != null ? ref : options[snakeCase(key)];
5254
2983
  });
5255
2984
  }
5256
2985
  this.options.resourceType = "text";
@@ -8308,7 +6037,7 @@ class TransformationBase {
8308
6037
  results = [];
8309
6038
  for (key in trans) {
8310
6039
  if (key != null) {
8311
- results.push(key.match(VAR_NAME_RE) ? key : snakeCase$1(key));
6040
+ results.push(key.match(VAR_NAME_RE) ? key : snakeCase(key));
8312
6041
  }
8313
6042
  }
8314
6043
  return results;
@@ -8512,7 +6241,7 @@ class TransformationBase {
8512
6241
  let snakeCaseKey;
8513
6242
  Object.keys(this.otherOptions).forEach(key => {
8514
6243
  value = this.otherOptions[key];
8515
- snakeCaseKey = snakeCase$1(key);
6244
+ snakeCaseKey = snakeCase(key);
8516
6245
  if (!contains(PARAM_NAMES, snakeCaseKey) && !contains(URL_KEYS, snakeCaseKey)) {
8517
6246
  attrName = /^html_/.test(key) ? key.slice(5) : key;
8518
6247
  options[attrName] = value;
@@ -9029,7 +6758,7 @@ const methods = [
9029
6758
  *
9030
6759
  * The list of parameters is a combination of `Transformation::methods` and `Configuration::CONFIG_PARAMS`
9031
6760
  */
9032
- const PARAM_NAMES = methods.map(snakeCase$1).concat(CONFIG_PARAMS);
6761
+ const PARAM_NAMES = methods.map(snakeCase).concat(CONFIG_PARAMS);
9033
6762
 
9034
6763
  /**
9035
6764
  * Process DPR value. If input is 1 returns 1.0
@@ -9552,7 +7281,7 @@ class TitleBar extends Component {
9552
7281
  const metadataUrl = appendQueryParams(`${urlPrefix}/_applet_/video_service/video_metadata/${deliveryType}/${utf8ToBase64(publicId)}.json`, source.queryParams());
9553
7282
  fetch(metadataUrl, {
9554
7283
  headers: {
9555
- 'X-Cld-Video-Player-Version': "3.13.0"
7284
+ 'X-Cld-Video-Player-Version': "3.13.1-edge.1"
9556
7285
  }
9557
7286
  }).then(response => {
9558
7287
  if (!response.ok) throw new Error(`HTTP ${response.status}`);
@@ -11620,8 +9349,6 @@ class BaseSource {
11620
9349
  }
11621
9350
  }
11622
9351
 
11623
- const COMMON_IMAGE_FORMATS = ['jpg', 'png', 'gif', 'webp'];
11624
- const IMAGE_SUFFIX_REMOVAL_PATTERN = RegExp(`\\.(${COMMON_IMAGE_FORMATS.join('|')})$$`);
11625
9352
  const DEFAULT_IMAGE_PARAMS = {
11626
9353
  resource_type: 'image',
11627
9354
  type: 'upload',
@@ -11634,7 +9361,6 @@ class ImageSource extends BaseSource {
11634
9361
  publicId,
11635
9362
  options
11636
9363
  } = normalizeOptions(publicId, options));
11637
- publicId = publicId.replace(IMAGE_SUFFIX_REMOVAL_PATTERN, '');
11638
9364
  options = Object.assign({}, DEFAULT_IMAGE_PARAMS, options);
11639
9365
  super(publicId, options);
11640
9366
  this._type = 'ImageSource';
@@ -12189,7 +9915,7 @@ class CloudinaryContext {
12189
9915
  hasUserPosterOptions: hasUserPosterOptions || null
12190
9916
  });
12191
9917
  options.queryParams = Object.assign(options.queryParams || {}, options.allowUsageReport ? {
12192
- _s: `vp-${"3.13.0"}`
9918
+ _s: `vp-${"3.13.1-edge.1"}`
12193
9919
  } : {});
12194
9920
  if (options.sourceTypes.indexOf('audio') > -1) {
12195
9921
  builtSrc = new AudioSource(publicId, options);
@@ -12472,7 +10198,7 @@ class CloudinaryAnalytics {
12472
10198
  }, {
12473
10199
  ...(isPlainObject(this.analyticsOptions) ? this.analyticsOptions : {}),
12474
10200
  videoPlayerType: 'cloudinary video player',
12475
- videoPlayerVersion: "3.13.0"
10201
+ videoPlayerVersion: "3.13.1-edge.1"
12476
10202
  });
12477
10203
  } else if (this.currentVideoMetadata.cloudName !== metadata.cloudName || this.currentVideoMetadata.publicId !== metadata.publicId) {
12478
10204
  this.cloudinaryAnalytics.stopManualTracking();
@@ -13143,7 +10869,7 @@ const contextMenuContent = player => {
13143
10869
  const isFullscreen = player.isFullscreen();
13144
10870
  const aboutMenuItem = {
13145
10871
  class: 'player-version',
13146
- label: 'Cloudinary Player v' + "3.13.0"
10872
+ label: 'Cloudinary Player v' + "3.13.1-edge.1"
13147
10873
  };
13148
10874
  if (!player.controls()) {
13149
10875
  return [aboutMenuItem];
@@ -14527,406 +12253,6 @@ function requireCapitalize () {
14527
12253
  return capitalize_1;
14528
12254
  }
14529
12255
 
14530
- /**
14531
- * A specialized version of `_.reduce` for arrays without support for
14532
- * iteratee shorthands.
14533
- *
14534
- * @private
14535
- * @param {Array} [array] The array to iterate over.
14536
- * @param {Function} iteratee The function invoked per iteration.
14537
- * @param {*} [accumulator] The initial value.
14538
- * @param {boolean} [initAccum] Specify using the first element of `array` as
14539
- * the initial value.
14540
- * @returns {*} Returns the accumulated value.
14541
- */
14542
-
14543
- var _arrayReduce;
14544
- var hasRequired_arrayReduce;
14545
-
14546
- function require_arrayReduce () {
14547
- if (hasRequired_arrayReduce) return _arrayReduce;
14548
- hasRequired_arrayReduce = 1;
14549
- function arrayReduce(array, iteratee, accumulator, initAccum) {
14550
- var index = -1,
14551
- length = array == null ? 0 : array.length;
14552
-
14553
- if (initAccum && length) {
14554
- accumulator = array[++index];
14555
- }
14556
- while (++index < length) {
14557
- accumulator = iteratee(accumulator, array[index], index, array);
14558
- }
14559
- return accumulator;
14560
- }
14561
-
14562
- _arrayReduce = arrayReduce;
14563
- return _arrayReduce;
14564
- }
14565
-
14566
- /**
14567
- * The base implementation of `_.propertyOf` without support for deep paths.
14568
- *
14569
- * @private
14570
- * @param {Object} object The object to query.
14571
- * @returns {Function} Returns the new accessor function.
14572
- */
14573
-
14574
- var _basePropertyOf;
14575
- var hasRequired_basePropertyOf;
14576
-
14577
- function require_basePropertyOf () {
14578
- if (hasRequired_basePropertyOf) return _basePropertyOf;
14579
- hasRequired_basePropertyOf = 1;
14580
- function basePropertyOf(object) {
14581
- return function(key) {
14582
- return object == null ? undefined : object[key];
14583
- };
14584
- }
14585
-
14586
- _basePropertyOf = basePropertyOf;
14587
- return _basePropertyOf;
14588
- }
14589
-
14590
- var _deburrLetter;
14591
- var hasRequired_deburrLetter;
14592
-
14593
- function require_deburrLetter () {
14594
- if (hasRequired_deburrLetter) return _deburrLetter;
14595
- hasRequired_deburrLetter = 1;
14596
- var basePropertyOf = require_basePropertyOf();
14597
-
14598
- /** Used to map Latin Unicode letters to basic Latin letters. */
14599
- var deburredLetters = {
14600
- // Latin-1 Supplement block.
14601
- '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
14602
- '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
14603
- '\xc7': 'C', '\xe7': 'c',
14604
- '\xd0': 'D', '\xf0': 'd',
14605
- '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
14606
- '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
14607
- '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
14608
- '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
14609
- '\xd1': 'N', '\xf1': 'n',
14610
- '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
14611
- '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
14612
- '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
14613
- '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
14614
- '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
14615
- '\xc6': 'Ae', '\xe6': 'ae',
14616
- '\xde': 'Th', '\xfe': 'th',
14617
- '\xdf': 'ss',
14618
- // Latin Extended-A block.
14619
- '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
14620
- '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
14621
- '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
14622
- '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
14623
- '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
14624
- '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
14625
- '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
14626
- '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
14627
- '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
14628
- '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
14629
- '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
14630
- '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
14631
- '\u0134': 'J', '\u0135': 'j',
14632
- '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
14633
- '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
14634
- '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
14635
- '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
14636
- '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
14637
- '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
14638
- '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
14639
- '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
14640
- '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
14641
- '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
14642
- '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
14643
- '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
14644
- '\u0163': 't', '\u0165': 't', '\u0167': 't',
14645
- '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
14646
- '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
14647
- '\u0174': 'W', '\u0175': 'w',
14648
- '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
14649
- '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
14650
- '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
14651
- '\u0132': 'IJ', '\u0133': 'ij',
14652
- '\u0152': 'Oe', '\u0153': 'oe',
14653
- '\u0149': "'n", '\u017f': 's'
14654
- };
14655
-
14656
- /**
14657
- * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
14658
- * letters to basic Latin letters.
14659
- *
14660
- * @private
14661
- * @param {string} letter The matched letter to deburr.
14662
- * @returns {string} Returns the deburred letter.
14663
- */
14664
- var deburrLetter = basePropertyOf(deburredLetters);
14665
-
14666
- _deburrLetter = deburrLetter;
14667
- return _deburrLetter;
14668
- }
14669
-
14670
- var deburr_1;
14671
- var hasRequiredDeburr;
14672
-
14673
- function requireDeburr () {
14674
- if (hasRequiredDeburr) return deburr_1;
14675
- hasRequiredDeburr = 1;
14676
- var deburrLetter = require_deburrLetter(),
14677
- toString = requireToString();
14678
-
14679
- /** Used to match Latin Unicode letters (excluding mathematical operators). */
14680
- var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
14681
-
14682
- /** Used to compose unicode character classes. */
14683
- var rsComboMarksRange = '\\u0300-\\u036f',
14684
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
14685
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
14686
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
14687
-
14688
- /** Used to compose unicode capture groups. */
14689
- var rsCombo = '[' + rsComboRange + ']';
14690
-
14691
- /**
14692
- * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
14693
- * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
14694
- */
14695
- var reComboMark = RegExp(rsCombo, 'g');
14696
-
14697
- /**
14698
- * Deburrs `string` by converting
14699
- * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
14700
- * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
14701
- * letters to basic Latin letters and removing
14702
- * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
14703
- *
14704
- * @static
14705
- * @memberOf _
14706
- * @since 3.0.0
14707
- * @category String
14708
- * @param {string} [string=''] The string to deburr.
14709
- * @returns {string} Returns the deburred string.
14710
- * @example
14711
- *
14712
- * _.deburr('déjà vu');
14713
- * // => 'deja vu'
14714
- */
14715
- function deburr(string) {
14716
- string = toString(string);
14717
- return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
14718
- }
14719
-
14720
- deburr_1 = deburr;
14721
- return deburr_1;
14722
- }
14723
-
14724
- /** Used to match words composed of alphanumeric characters. */
14725
-
14726
- var _asciiWords;
14727
- var hasRequired_asciiWords;
14728
-
14729
- function require_asciiWords () {
14730
- if (hasRequired_asciiWords) return _asciiWords;
14731
- hasRequired_asciiWords = 1;
14732
- var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
14733
-
14734
- /**
14735
- * Splits an ASCII `string` into an array of its words.
14736
- *
14737
- * @private
14738
- * @param {string} The string to inspect.
14739
- * @returns {Array} Returns the words of `string`.
14740
- */
14741
- function asciiWords(string) {
14742
- return string.match(reAsciiWord) || [];
14743
- }
14744
-
14745
- _asciiWords = asciiWords;
14746
- return _asciiWords;
14747
- }
14748
-
14749
- /** Used to detect strings that need a more robust regexp to match words. */
14750
-
14751
- var _hasUnicodeWord;
14752
- var hasRequired_hasUnicodeWord;
14753
-
14754
- function require_hasUnicodeWord () {
14755
- if (hasRequired_hasUnicodeWord) return _hasUnicodeWord;
14756
- hasRequired_hasUnicodeWord = 1;
14757
- var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
14758
-
14759
- /**
14760
- * Checks if `string` contains a word composed of Unicode symbols.
14761
- *
14762
- * @private
14763
- * @param {string} string The string to inspect.
14764
- * @returns {boolean} Returns `true` if a word is found, else `false`.
14765
- */
14766
- function hasUnicodeWord(string) {
14767
- return reHasUnicodeWord.test(string);
14768
- }
14769
-
14770
- _hasUnicodeWord = hasUnicodeWord;
14771
- return _hasUnicodeWord;
14772
- }
14773
-
14774
- /** Used to compose unicode character classes. */
14775
-
14776
- var _unicodeWords;
14777
- var hasRequired_unicodeWords;
14778
-
14779
- function require_unicodeWords () {
14780
- if (hasRequired_unicodeWords) return _unicodeWords;
14781
- hasRequired_unicodeWords = 1;
14782
- var rsAstralRange = '\\ud800-\\udfff',
14783
- rsComboMarksRange = '\\u0300-\\u036f',
14784
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
14785
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
14786
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
14787
- rsDingbatRange = '\\u2700-\\u27bf',
14788
- rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
14789
- rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
14790
- rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
14791
- rsPunctuationRange = '\\u2000-\\u206f',
14792
- rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
14793
- rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
14794
- rsVarRange = '\\ufe0e\\ufe0f',
14795
- rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
14796
-
14797
- /** Used to compose unicode capture groups. */
14798
- var rsApos = "['\u2019]",
14799
- rsBreak = '[' + rsBreakRange + ']',
14800
- rsCombo = '[' + rsComboRange + ']',
14801
- rsDigits = '\\d+',
14802
- rsDingbat = '[' + rsDingbatRange + ']',
14803
- rsLower = '[' + rsLowerRange + ']',
14804
- rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
14805
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
14806
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
14807
- rsNonAstral = '[^' + rsAstralRange + ']',
14808
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
14809
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
14810
- rsUpper = '[' + rsUpperRange + ']',
14811
- rsZWJ = '\\u200d';
14812
-
14813
- /** Used to compose unicode regexes. */
14814
- var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
14815
- rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
14816
- rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
14817
- rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
14818
- reOptMod = rsModifier + '?',
14819
- rsOptVar = '[' + rsVarRange + ']?',
14820
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
14821
- rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
14822
- rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
14823
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
14824
- rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;
14825
-
14826
- /** Used to match complex or compound words. */
14827
- var reUnicodeWord = RegExp([
14828
- rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
14829
- rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
14830
- rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
14831
- rsUpper + '+' + rsOptContrUpper,
14832
- rsOrdUpper,
14833
- rsOrdLower,
14834
- rsDigits,
14835
- rsEmoji
14836
- ].join('|'), 'g');
14837
-
14838
- /**
14839
- * Splits a Unicode `string` into an array of its words.
14840
- *
14841
- * @private
14842
- * @param {string} The string to inspect.
14843
- * @returns {Array} Returns the words of `string`.
14844
- */
14845
- function unicodeWords(string) {
14846
- return string.match(reUnicodeWord) || [];
14847
- }
14848
-
14849
- _unicodeWords = unicodeWords;
14850
- return _unicodeWords;
14851
- }
14852
-
14853
- var words_1;
14854
- var hasRequiredWords;
14855
-
14856
- function requireWords () {
14857
- if (hasRequiredWords) return words_1;
14858
- hasRequiredWords = 1;
14859
- var asciiWords = require_asciiWords(),
14860
- hasUnicodeWord = require_hasUnicodeWord(),
14861
- toString = requireToString(),
14862
- unicodeWords = require_unicodeWords();
14863
-
14864
- /**
14865
- * Splits `string` into an array of its words.
14866
- *
14867
- * @static
14868
- * @memberOf _
14869
- * @since 3.0.0
14870
- * @category String
14871
- * @param {string} [string=''] The string to inspect.
14872
- * @param {RegExp|string} [pattern] The pattern to match words.
14873
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
14874
- * @returns {Array} Returns the words of `string`.
14875
- * @example
14876
- *
14877
- * _.words('fred, barney, & pebbles');
14878
- * // => ['fred', 'barney', 'pebbles']
14879
- *
14880
- * _.words('fred, barney, & pebbles', /[^, ]+/g);
14881
- * // => ['fred', 'barney', '&', 'pebbles']
14882
- */
14883
- function words(string, pattern, guard) {
14884
- string = toString(string);
14885
- pattern = guard ? undefined : pattern;
14886
-
14887
- if (pattern === undefined) {
14888
- return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
14889
- }
14890
- return string.match(pattern) || [];
14891
- }
14892
-
14893
- words_1 = words;
14894
- return words_1;
14895
- }
14896
-
14897
- var _createCompounder;
14898
- var hasRequired_createCompounder;
14899
-
14900
- function require_createCompounder () {
14901
- if (hasRequired_createCompounder) return _createCompounder;
14902
- hasRequired_createCompounder = 1;
14903
- var arrayReduce = require_arrayReduce(),
14904
- deburr = requireDeburr(),
14905
- words = requireWords();
14906
-
14907
- /** Used to compose unicode capture groups. */
14908
- var rsApos = "['\u2019]";
14909
-
14910
- /** Used to match apostrophes. */
14911
- var reApos = RegExp(rsApos, 'g');
14912
-
14913
- /**
14914
- * Creates a function like `_.camelCase`.
14915
- *
14916
- * @private
14917
- * @param {Function} callback The function to combine each word.
14918
- * @returns {Function} Returns the new compounder function.
14919
- */
14920
- function createCompounder(callback) {
14921
- return function(string) {
14922
- return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
14923
- };
14924
- }
14925
-
14926
- _createCompounder = createCompounder;
14927
- return _createCompounder;
14928
- }
14929
-
14930
12256
  var camelCase_1;
14931
12257
  var hasRequiredCamelCase;
14932
12258
 
@@ -15093,55 +12419,6 @@ const setupEventMethods = (player, videojsInstance) => {
15093
12419
  };
15094
12420
  };
15095
12421
 
15096
- var snakeCase_1;
15097
- var hasRequiredSnakeCase;
15098
-
15099
- function requireSnakeCase () {
15100
- if (hasRequiredSnakeCase) return snakeCase_1;
15101
- hasRequiredSnakeCase = 1;
15102
- var createCompounder = require_createCompounder();
15103
-
15104
- /**
15105
- * Converts `string` to
15106
- * [snake case](https://en.wikipedia.org/wiki/Snake_case).
15107
- *
15108
- * @static
15109
- * @memberOf _
15110
- * @since 3.0.0
15111
- * @category String
15112
- * @param {string} [string=''] The string to convert.
15113
- * @returns {string} Returns the snake cased string.
15114
- * @example
15115
- *
15116
- * _.snakeCase('Foo Bar');
15117
- * // => 'foo_bar'
15118
- *
15119
- * _.snakeCase('fooBar');
15120
- * // => 'foo_bar'
15121
- *
15122
- * _.snakeCase('--FOO-BAR--');
15123
- * // => 'foo_bar'
15124
- */
15125
- var snakeCase = createCompounder(function(result, word, index) {
15126
- return result + (index ? '_' : '') + word.toLowerCase();
15127
- });
15128
-
15129
- snakeCase_1 = snakeCase;
15130
- return snakeCase_1;
15131
- }
15132
-
15133
- var snakeCaseExports = requireSnakeCase();
15134
- var snakeCase = /*@__PURE__*/getDefaultExportFromCjs(snakeCaseExports);
15135
-
15136
- const convertKeysToSnakeCase = obj => {
15137
- let snakeCaseObj = {};
15138
- for (const key of Object.keys(obj)) {
15139
- const snakeCaseKey = snakeCase(key);
15140
- snakeCaseObj[snakeCaseKey] = obj[key];
15141
- }
15142
- return snakeCaseObj;
15143
- };
15144
-
15145
12422
  const addMetadataTrack = (videoJs, vttSource) => {
15146
12423
  return videoJs.addRemoteTextTrack({
15147
12424
  kind: 'metadata',
@@ -15511,7 +12788,7 @@ class VideoPlayer {
15511
12788
  const analyticsData = getAnalyticsFromPlayerOptions(options);
15512
12789
  const analyticsParams = new URLSearchParams(analyticsData).toString();
15513
12790
  const baseParams = new URLSearchParams({
15514
- vpVersion: "3.13.0",
12791
+ vpVersion: "3.13.1-edge.1",
15515
12792
  vpInstanceId: this.getVPInstanceId(),
15516
12793
  cloudName: options.cloudinary.cloud_name,
15517
12794
  ...internalAnalyticsMetadata
@@ -16284,4 +13561,4 @@ var videoPlayer = /*#__PURE__*/Object.freeze({
16284
13561
  default: VideoPlayer
16285
13562
  });
16286
13563
 
16287
- export { ImageSource as I, PLAYER_EVENT as P, VideoSource as V, get as a, addEventListener as b, addMetadataTrack as c, createElement as d, elementsCreator as e, componentUtils as f, getCloudinaryUrl as g, find as h, isLight as i, isPlainObject as j, camelCase as k, sliceProperties as l, skinClassPrefix as m, createPlayerWithConfig as n, omit as o, playerClassPrefix as p, createVideoPlayer as q, requireIsSymbol as r, styleElement as s, videoPlayer as v };
13564
+ export { ImageSource as I, PLAYER_EVENT as P, VideoSource as V, get as a, addEventListener as b, addMetadataTrack as c, createElement as d, elementsCreator as e, componentUtils as f, getCloudinaryUrl as g, find as h, isLight as i, isPlainObject as j, camelCase as k, sliceProperties as l, skinClassPrefix as m, createPlayerWithConfig as n, omit as o, playerClassPrefix as p, createVideoPlayer as q, styleElement as s, videoPlayer as v };