8
0
Просмотр исходного кода

Merge pull request #252 from ckeditor/t/251

Other: Removed `lodash` library from this package. Closes #251.
Szymon Cofalik 7 лет назад
Родитель
Сommit
c66c9d2a49
100 измененных файлов с 7 добавлено и 2465 удалено
  1. 2 1
      packages/ckeditor5-utils/package.json
  2. 1 1
      packages/ckeditor5-utils/src/config.js
  3. 1 1
      packages/ckeditor5-utils/src/dom/createelement.js
  4. 1 1
      packages/ckeditor5-utils/src/dom/emittermixin.js
  5. 1 1
      packages/ckeditor5-utils/src/dom/position.js
  6. 1 1
      packages/ckeditor5-utils/src/dom/rect.js
  7. 0 7
      packages/ckeditor5-utils/src/lib/lodash/_DataView.js
  8. 0 32
      packages/ckeditor5-utils/src/lib/lodash/_Hash.js
  9. 0 28
      packages/ckeditor5-utils/src/lib/lodash/_LazyWrapper.js
  10. 0 32
      packages/ckeditor5-utils/src/lib/lodash/_ListCache.js
  11. 0 22
      packages/ckeditor5-utils/src/lib/lodash/_LodashWrapper.js
  12. 0 7
      packages/ckeditor5-utils/src/lib/lodash/_Map.js
  13. 0 32
      packages/ckeditor5-utils/src/lib/lodash/_MapCache.js
  14. 0 7
      packages/ckeditor5-utils/src/lib/lodash/_Promise.js
  15. 0 6
      packages/ckeditor5-utils/src/lib/lodash/_Reflect.js
  16. 0 7
      packages/ckeditor5-utils/src/lib/lodash/_Set.js
  17. 0 27
      packages/ckeditor5-utils/src/lib/lodash/_SetCache.js
  18. 0 26
      packages/ckeditor5-utils/src/lib/lodash/_Stack.js
  19. 0 6
      packages/ckeditor5-utils/src/lib/lodash/_Symbol.js
  20. 0 6
      packages/ckeditor5-utils/src/lib/lodash/_Uint8Array.js
  21. 0 7
      packages/ckeditor5-utils/src/lib/lodash/_WeakMap.js
  22. 0 15
      packages/ckeditor5-utils/src/lib/lodash/_addMapEntry.js
  23. 0 14
      packages/ckeditor5-utils/src/lib/lodash/_addSetEntry.js
  24. 0 22
      packages/ckeditor5-utils/src/lib/lodash/_apply.js
  25. 0 22
      packages/ckeditor5-utils/src/lib/lodash/_arrayAggregator.js
  26. 0 22
      packages/ckeditor5-utils/src/lib/lodash/_arrayEach.js
  27. 0 21
      packages/ckeditor5-utils/src/lib/lodash/_arrayEachRight.js
  28. 0 23
      packages/ckeditor5-utils/src/lib/lodash/_arrayEvery.js
  29. 0 25
      packages/ckeditor5-utils/src/lib/lodash/_arrayFilter.js
  30. 0 16
      packages/ckeditor5-utils/src/lib/lodash/_arrayIncludes.js
  31. 0 22
      packages/ckeditor5-utils/src/lib/lodash/_arrayIncludesWith.js
  32. 0 21
      packages/ckeditor5-utils/src/lib/lodash/_arrayMap.js
  33. 0 20
      packages/ckeditor5-utils/src/lib/lodash/_arrayPush.js
  34. 0 26
      packages/ckeditor5-utils/src/lib/lodash/_arrayReduce.js
  35. 0 24
      packages/ckeditor5-utils/src/lib/lodash/_arrayReduceRight.js
  36. 0 23
      packages/ckeditor5-utils/src/lib/lodash/_arraySome.js
  37. 0 27
      packages/ckeditor5-utils/src/lib/lodash/_assignInDefaults.js
  38. 0 19
      packages/ckeditor5-utils/src/lib/lodash/_assignMergeValue.js
  39. 0 27
      packages/ckeditor5-utils/src/lib/lodash/_assignValue.js
  40. 0 21
      packages/ckeditor5-utils/src/lib/lodash/_assocIndexOf.js
  41. 0 21
      packages/ckeditor5-utils/src/lib/lodash/_baseAggregator.js
  42. 0 17
      packages/ckeditor5-utils/src/lib/lodash/_baseAssign.js
  43. 0 23
      packages/ckeditor5-utils/src/lib/lodash/_baseAt.js
  44. 0 22
      packages/ckeditor5-utils/src/lib/lodash/_baseClamp.js
  45. 0 139
      packages/ckeditor5-utils/src/lib/lodash/_baseClone.js
  46. 0 33
      packages/ckeditor5-utils/src/lib/lodash/_baseConforms.js
  47. 0 18
      packages/ckeditor5-utils/src/lib/lodash/_baseCreate.js
  48. 0 21
      packages/ckeditor5-utils/src/lib/lodash/_baseDelay.js
  49. 0 67
      packages/ckeditor5-utils/src/lib/lodash/_baseDifference.js
  50. 0 14
      packages/ckeditor5-utils/src/lib/lodash/_baseEach.js
  51. 0 14
      packages/ckeditor5-utils/src/lib/lodash/_baseEachRight.js
  52. 0 21
      packages/ckeditor5-utils/src/lib/lodash/_baseEvery.js
  53. 0 32
      packages/ckeditor5-utils/src/lib/lodash/_baseExtremum.js
  54. 0 32
      packages/ckeditor5-utils/src/lib/lodash/_baseFill.js
  55. 0 21
      packages/ckeditor5-utils/src/lib/lodash/_baseFilter.js
  56. 0 25
      packages/ckeditor5-utils/src/lib/lodash/_baseFind.js
  57. 0 23
      packages/ckeditor5-utils/src/lib/lodash/_baseFindIndex.js
  58. 0 38
      packages/ckeditor5-utils/src/lib/lodash/_baseFlatten.js
  59. 0 16
      packages/ckeditor5-utils/src/lib/lodash/_baseFor.js
  60. 0 16
      packages/ckeditor5-utils/src/lib/lodash/_baseForOwn.js
  61. 0 16
      packages/ckeditor5-utils/src/lib/lodash/_baseForOwnRight.js
  62. 0 15
      packages/ckeditor5-utils/src/lib/lodash/_baseForRight.js
  63. 0 19
      packages/ckeditor5-utils/src/lib/lodash/_baseFunctions.js
  64. 0 25
      packages/ckeditor5-utils/src/lib/lodash/_baseGet.js
  65. 0 20
      packages/ckeditor5-utils/src/lib/lodash/_baseGetAllKeys.js
  66. 0 14
      packages/ckeditor5-utils/src/lib/lodash/_baseGt.js
  67. 0 25
      packages/ckeditor5-utils/src/lib/lodash/_baseHas.js
  68. 0 13
      packages/ckeditor5-utils/src/lib/lodash/_baseHasIn.js
  69. 0 18
      packages/ckeditor5-utils/src/lib/lodash/_baseInRange.js
  70. 0 27
      packages/ckeditor5-utils/src/lib/lodash/_baseIndexOf.js
  71. 0 23
      packages/ckeditor5-utils/src/lib/lodash/_baseIndexOfWith.js
  72. 0 74
      packages/ckeditor5-utils/src/lib/lodash/_baseIntersection.js
  73. 0 21
      packages/ckeditor5-utils/src/lib/lodash/_baseInverter.js
  74. 0 28
      packages/ckeditor5-utils/src/lib/lodash/_baseInvoke.js
  75. 0 30
      packages/ckeditor5-utils/src/lib/lodash/_baseIsEqual.js
  76. 0 82
      packages/ckeditor5-utils/src/lib/lodash/_baseIsEqualDeep.js
  77. 0 62
      packages/ckeditor5-utils/src/lib/lodash/_baseIsMatch.js
  78. 0 31
      packages/ckeditor5-utils/src/lib/lodash/_baseIteratee.js
  79. 0 16
      packages/ckeditor5-utils/src/lib/lodash/_baseKeys.js
  80. 0 36
      packages/ckeditor5-utils/src/lib/lodash/_baseKeysIn.js
  81. 0 10
      packages/ckeditor5-utils/src/lib/lodash/_baseLodash.js
  82. 0 14
      packages/ckeditor5-utils/src/lib/lodash/_baseLt.js
  83. 0 22
      packages/ckeditor5-utils/src/lib/lodash/_baseMap.js
  84. 0 22
      packages/ckeditor5-utils/src/lib/lodash/_baseMatches.js
  85. 0 33
      packages/ckeditor5-utils/src/lib/lodash/_baseMatchesProperty.js
  86. 0 20
      packages/ckeditor5-utils/src/lib/lodash/_baseMean.js
  87. 0 50
      packages/ckeditor5-utils/src/lib/lodash/_baseMerge.js
  88. 0 83
      packages/ckeditor5-utils/src/lib/lodash/_baseMergeDeep.js
  89. 0 20
      packages/ckeditor5-utils/src/lib/lodash/_baseNth.js
  90. 0 34
      packages/ckeditor5-utils/src/lib/lodash/_baseOrderBy.js
  91. 0 22
      packages/ckeditor5-utils/src/lib/lodash/_basePick.js
  92. 0 28
      packages/ckeditor5-utils/src/lib/lodash/_basePickBy.js
  93. 0 14
      packages/ckeditor5-utils/src/lib/lodash/_baseProperty.js
  94. 0 16
      packages/ckeditor5-utils/src/lib/lodash/_basePropertyDeep.js
  95. 0 47
      packages/ckeditor5-utils/src/lib/lodash/_basePullAll.js
  96. 0 50
      packages/ckeditor5-utils/src/lib/lodash/_basePullAt.js
  97. 0 18
      packages/ckeditor5-utils/src/lib/lodash/_baseRandom.js
  98. 0 28
      packages/ckeditor5-utils/src/lib/lodash/_baseRange.js
  99. 0 23
      packages/ckeditor5-utils/src/lib/lodash/_baseReduce.js
  100. 0 35
      packages/ckeditor5-utils/src/lib/lodash/_baseRepeat.js

+ 2 - 1
packages/ckeditor5-utils/package.json

@@ -9,7 +9,8 @@
     "ckeditor5-lib"
   ],
   "dependencies": {
-    "ckeditor5": "^11.0.1"
+    "ckeditor5": "^11.0.1",
+    "lodash-es": "^4.17.10"
   },
   "devDependencies": {
     "@ckeditor/ckeditor5-core": "^11.0.0",

+ 1 - 1
packages/ckeditor5-utils/src/config.js

@@ -7,7 +7,7 @@
  * @module utils/config
  */
 
-import isPlainObject from './lib/lodash/isPlainObject';
+import { isPlainObject } from 'lodash-es';
 
 /**
  * Handles a configuration dictionary.

+ 1 - 1
packages/ckeditor5-utils/src/dom/createelement.js

@@ -7,8 +7,8 @@
  * @module utils/dom/createelement
  */
 
-import isString from '../lib/lodash/isString';
 import isIterable from '../isiterable';
+import { isString } from 'lodash-es';
 
 /**
  * Creates element with attributes and children.

+ 1 - 1
packages/ckeditor5-utils/src/dom/emittermixin.js

@@ -9,9 +9,9 @@
 
 import { default as EmitterMixin, _getEmitterListenedTo, _setEmitterId } from '../emittermixin';
 import uid from '../uid';
-import extend from '../lib/lodash/extend';
 import isNode from './isnode';
 import isWindow from './iswindow';
+import { extend } from 'lodash-es';
 
 /**
  * Mixin that injects the DOM events API into its host. It provides the API

+ 1 - 1
packages/ckeditor5-utils/src/dom/position.js

@@ -11,7 +11,7 @@ import global from './global';
 import Rect from './rect';
 import getPositionedAncestor from './getpositionedancestor';
 import getBorderWidths from './getborderwidths';
-import isFunction from '../lib/lodash/isFunction';
+import { isFunction } from 'lodash-es';
 
 /**
  * Calculates the `position: absolute` coordinates of a given element so it can be positioned with respect to the

+ 1 - 1
packages/ckeditor5-utils/src/dom/rect.js

@@ -9,10 +9,10 @@
 
 import isRange from './isrange';
 import isWindow from './iswindow';
-import isElement from '../lib/lodash/isElement';
 import getBorderWidths from './getborderwidths';
 import log from '../log';
 import isText from './istext';
+import { isElement } from 'lodash-es';
 
 /**
  * A helper class representing a `ClientRect` object, e.g. value returned by

+ 0 - 7
packages/ckeditor5-utils/src/lib/lodash/_DataView.js

@@ -1,7 +0,0 @@
-import getNative from './_getNative';
-import root from './_root';
-
-/* Built-in method references that are verified to be native. */
-var DataView = getNative(root, 'DataView');
-
-export default DataView;

+ 0 - 32
packages/ckeditor5-utils/src/lib/lodash/_Hash.js

@@ -1,32 +0,0 @@
-import hashClear from './_hashClear';
-import hashDelete from './_hashDelete';
-import hashGet from './_hashGet';
-import hashHas from './_hashHas';
-import hashSet from './_hashSet';
-
-/**
- * Creates a hash object.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
-function Hash(entries) {
-  var index = -1,
-      length = entries ? entries.length : 0;
-
-  this.clear();
-  while (++index < length) {
-    var entry = entries[index];
-    this.set(entry[0], entry[1]);
-  }
-}
-
-// Add methods to `Hash`.
-Hash.prototype.clear = hashClear;
-Hash.prototype['delete'] = hashDelete;
-Hash.prototype.get = hashGet;
-Hash.prototype.has = hashHas;
-Hash.prototype.set = hashSet;
-
-export default Hash;

+ 0 - 28
packages/ckeditor5-utils/src/lib/lodash/_LazyWrapper.js

@@ -1,28 +0,0 @@
-import baseCreate from './_baseCreate';
-import baseLodash from './_baseLodash';
-
-/** Used as references for the maximum length and index of an array. */
-var MAX_ARRAY_LENGTH = 4294967295;
-
-/**
- * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
- *
- * @private
- * @constructor
- * @param {*} value The value to wrap.
- */
-function LazyWrapper(value) {
-  this.__wrapped__ = value;
-  this.__actions__ = [];
-  this.__dir__ = 1;
-  this.__filtered__ = false;
-  this.__iteratees__ = [];
-  this.__takeCount__ = MAX_ARRAY_LENGTH;
-  this.__views__ = [];
-}
-
-// Ensure `LazyWrapper` is an instance of `baseLodash`.
-LazyWrapper.prototype = baseCreate(baseLodash.prototype);
-LazyWrapper.prototype.constructor = LazyWrapper;
-
-export default LazyWrapper;

+ 0 - 32
packages/ckeditor5-utils/src/lib/lodash/_ListCache.js

@@ -1,32 +0,0 @@
-import listCacheClear from './_listCacheClear';
-import listCacheDelete from './_listCacheDelete';
-import listCacheGet from './_listCacheGet';
-import listCacheHas from './_listCacheHas';
-import listCacheSet from './_listCacheSet';
-
-/**
- * Creates an list cache object.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
-function ListCache(entries) {
-  var index = -1,
-      length = entries ? entries.length : 0;
-
-  this.clear();
-  while (++index < length) {
-    var entry = entries[index];
-    this.set(entry[0], entry[1]);
-  }
-}
-
-// Add methods to `ListCache`.
-ListCache.prototype.clear = listCacheClear;
-ListCache.prototype['delete'] = listCacheDelete;
-ListCache.prototype.get = listCacheGet;
-ListCache.prototype.has = listCacheHas;
-ListCache.prototype.set = listCacheSet;
-
-export default ListCache;

+ 0 - 22
packages/ckeditor5-utils/src/lib/lodash/_LodashWrapper.js

@@ -1,22 +0,0 @@
-import baseCreate from './_baseCreate';
-import baseLodash from './_baseLodash';
-
-/**
- * The base constructor for creating `lodash` wrapper objects.
- *
- * @private
- * @param {*} value The value to wrap.
- * @param {boolean} [chainAll] Enable explicit method chain sequences.
- */
-function LodashWrapper(value, chainAll) {
-  this.__wrapped__ = value;
-  this.__actions__ = [];
-  this.__chain__ = !!chainAll;
-  this.__index__ = 0;
-  this.__values__ = undefined;
-}
-
-LodashWrapper.prototype = baseCreate(baseLodash.prototype);
-LodashWrapper.prototype.constructor = LodashWrapper;
-
-export default LodashWrapper;

+ 0 - 7
packages/ckeditor5-utils/src/lib/lodash/_Map.js

@@ -1,7 +0,0 @@
-import getNative from './_getNative';
-import root from './_root';
-
-/* Built-in method references that are verified to be native. */
-var Map = getNative(root, 'Map');
-
-export default Map;

+ 0 - 32
packages/ckeditor5-utils/src/lib/lodash/_MapCache.js

@@ -1,32 +0,0 @@
-import mapCacheClear from './_mapCacheClear';
-import mapCacheDelete from './_mapCacheDelete';
-import mapCacheGet from './_mapCacheGet';
-import mapCacheHas from './_mapCacheHas';
-import mapCacheSet from './_mapCacheSet';
-
-/**
- * Creates a map cache object to store key-value pairs.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
-function MapCache(entries) {
-  var index = -1,
-      length = entries ? entries.length : 0;
-
-  this.clear();
-  while (++index < length) {
-    var entry = entries[index];
-    this.set(entry[0], entry[1]);
-  }
-}
-
-// Add methods to `MapCache`.
-MapCache.prototype.clear = mapCacheClear;
-MapCache.prototype['delete'] = mapCacheDelete;
-MapCache.prototype.get = mapCacheGet;
-MapCache.prototype.has = mapCacheHas;
-MapCache.prototype.set = mapCacheSet;
-
-export default MapCache;

+ 0 - 7
packages/ckeditor5-utils/src/lib/lodash/_Promise.js

@@ -1,7 +0,0 @@
-import getNative from './_getNative';
-import root from './_root';
-
-/* Built-in method references that are verified to be native. */
-var Promise = getNative(root, 'Promise');
-
-export default Promise;

+ 0 - 6
packages/ckeditor5-utils/src/lib/lodash/_Reflect.js

@@ -1,6 +0,0 @@
-import root from './_root';
-
-/** Built-in value references. */
-var Reflect = root.Reflect;
-
-export default Reflect;

+ 0 - 7
packages/ckeditor5-utils/src/lib/lodash/_Set.js

@@ -1,7 +0,0 @@
-import getNative from './_getNative';
-import root from './_root';
-
-/* Built-in method references that are verified to be native. */
-var Set = getNative(root, 'Set');
-
-export default Set;

+ 0 - 27
packages/ckeditor5-utils/src/lib/lodash/_SetCache.js

@@ -1,27 +0,0 @@
-import MapCache from './_MapCache';
-import setCacheAdd from './_setCacheAdd';
-import setCacheHas from './_setCacheHas';
-
-/**
- *
- * Creates an array cache object to store unique values.
- *
- * @private
- * @constructor
- * @param {Array} [values] The values to cache.
- */
-function SetCache(values) {
-  var index = -1,
-      length = values ? values.length : 0;
-
-  this.__data__ = new MapCache;
-  while (++index < length) {
-    this.add(values[index]);
-  }
-}
-
-// Add methods to `SetCache`.
-SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
-SetCache.prototype.has = setCacheHas;
-
-export default SetCache;

+ 0 - 26
packages/ckeditor5-utils/src/lib/lodash/_Stack.js

@@ -1,26 +0,0 @@
-import ListCache from './_ListCache';
-import stackClear from './_stackClear';
-import stackDelete from './_stackDelete';
-import stackGet from './_stackGet';
-import stackHas from './_stackHas';
-import stackSet from './_stackSet';
-
-/**
- * Creates a stack cache object to store key-value pairs.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
-function Stack(entries) {
-  this.__data__ = new ListCache(entries);
-}
-
-// Add methods to `Stack`.
-Stack.prototype.clear = stackClear;
-Stack.prototype['delete'] = stackDelete;
-Stack.prototype.get = stackGet;
-Stack.prototype.has = stackHas;
-Stack.prototype.set = stackSet;
-
-export default Stack;

+ 0 - 6
packages/ckeditor5-utils/src/lib/lodash/_Symbol.js

@@ -1,6 +0,0 @@
-import root from './_root';
-
-/** Built-in value references. */
-var Symbol = root.Symbol;
-
-export default Symbol;

+ 0 - 6
packages/ckeditor5-utils/src/lib/lodash/_Uint8Array.js

@@ -1,6 +0,0 @@
-import root from './_root';
-
-/** Built-in value references. */
-var Uint8Array = root.Uint8Array;
-
-export default Uint8Array;

+ 0 - 7
packages/ckeditor5-utils/src/lib/lodash/_WeakMap.js

@@ -1,7 +0,0 @@
-import getNative from './_getNative';
-import root from './_root';
-
-/* Built-in method references that are verified to be native. */
-var WeakMap = getNative(root, 'WeakMap');
-
-export default WeakMap;

+ 0 - 15
packages/ckeditor5-utils/src/lib/lodash/_addMapEntry.js

@@ -1,15 +0,0 @@
-/**
- * Adds the key-value `pair` to `map`.
- *
- * @private
- * @param {Object} map The map to modify.
- * @param {Array} pair The key-value pair to add.
- * @returns {Object} Returns `map`.
- */
-function addMapEntry(map, pair) {
-  // Don't return `Map#set` because it doesn't return the map instance in IE 11.
-  map.set(pair[0], pair[1]);
-  return map;
-}
-
-export default addMapEntry;

+ 0 - 14
packages/ckeditor5-utils/src/lib/lodash/_addSetEntry.js

@@ -1,14 +0,0 @@
-/**
- * Adds `value` to `set`.
- *
- * @private
- * @param {Object} set The set to modify.
- * @param {*} value The value to add.
- * @returns {Object} Returns `set`.
- */
-function addSetEntry(set, value) {
-  set.add(value);
-  return set;
-}
-
-export default addSetEntry;

+ 0 - 22
packages/ckeditor5-utils/src/lib/lodash/_apply.js

@@ -1,22 +0,0 @@
-/**
- * A faster alternative to `Function#apply`, this function invokes `func`
- * with the `this` binding of `thisArg` and the arguments of `args`.
- *
- * @private
- * @param {Function} func The function to invoke.
- * @param {*} thisArg The `this` binding of `func`.
- * @param {Array} args The arguments to invoke `func` with.
- * @returns {*} Returns the result of `func`.
- */
-function apply(func, thisArg, args) {
-  var length = args.length;
-  switch (length) {
-    case 0: return func.call(thisArg);
-    case 1: return func.call(thisArg, args[0]);
-    case 2: return func.call(thisArg, args[0], args[1]);
-    case 3: return func.call(thisArg, args[0], args[1], args[2]);
-  }
-  return func.apply(thisArg, args);
-}
-
-export default apply;

+ 0 - 22
packages/ckeditor5-utils/src/lib/lodash/_arrayAggregator.js

@@ -1,22 +0,0 @@
-/**
- * A specialized version of `baseAggregator` for arrays.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} setter The function to set `accumulator` values.
- * @param {Function} iteratee The iteratee to transform keys.
- * @param {Object} accumulator The initial aggregated object.
- * @returns {Function} Returns `accumulator`.
- */
-function arrayAggregator(array, setter, iteratee, accumulator) {
-  var index = -1,
-      length = array.length;
-
-  while (++index < length) {
-    var value = array[index];
-    setter(accumulator, value, iteratee(value), array);
-  }
-  return accumulator;
-}
-
-export default arrayAggregator;

+ 0 - 22
packages/ckeditor5-utils/src/lib/lodash/_arrayEach.js

@@ -1,22 +0,0 @@
-/**
- * A specialized version of `_.forEach` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns `array`.
- */
-function arrayEach(array, iteratee) {
-  var index = -1,
-      length = array.length;
-
-  while (++index < length) {
-    if (iteratee(array[index], index, array) === false) {
-      break;
-    }
-  }
-  return array;
-}
-
-export default arrayEach;

+ 0 - 21
packages/ckeditor5-utils/src/lib/lodash/_arrayEachRight.js

@@ -1,21 +0,0 @@
-/**
- * A specialized version of `_.forEachRight` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns `array`.
- */
-function arrayEachRight(array, iteratee) {
-  var length = array.length;
-
-  while (length--) {
-    if (iteratee(array[length], length, array) === false) {
-      break;
-    }
-  }
-  return array;
-}
-
-export default arrayEachRight;

+ 0 - 23
packages/ckeditor5-utils/src/lib/lodash/_arrayEvery.js

@@ -1,23 +0,0 @@
-/**
- * A specialized version of `_.every` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if all elements pass the predicate check,
- *  else `false`.
- */
-function arrayEvery(array, predicate) {
-  var index = -1,
-      length = array.length;
-
-  while (++index < length) {
-    if (!predicate(array[index], index, array)) {
-      return false;
-    }
-  }
-  return true;
-}
-
-export default arrayEvery;

+ 0 - 25
packages/ckeditor5-utils/src/lib/lodash/_arrayFilter.js

@@ -1,25 +0,0 @@
-/**
- * A specialized version of `_.filter` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- */
-function arrayFilter(array, predicate) {
-  var index = -1,
-      length = array.length,
-      resIndex = 0,
-      result = [];
-
-  while (++index < length) {
-    var value = array[index];
-    if (predicate(value, index, array)) {
-      result[resIndex++] = value;
-    }
-  }
-  return result;
-}
-
-export default arrayFilter;

+ 0 - 16
packages/ckeditor5-utils/src/lib/lodash/_arrayIncludes.js

@@ -1,16 +0,0 @@
-import baseIndexOf from './_baseIndexOf';
-
-/**
- * A specialized version of `_.includes` for arrays without support for
- * specifying an index to search from.
- *
- * @private
- * @param {Array} array The array to search.
- * @param {*} target The value to search for.
- * @returns {boolean} Returns `true` if `target` is found, else `false`.
- */
-function arrayIncludes(array, value) {
-  return !!array.length && baseIndexOf(array, value, 0) > -1;
-}
-
-export default arrayIncludes;

+ 0 - 22
packages/ckeditor5-utils/src/lib/lodash/_arrayIncludesWith.js

@@ -1,22 +0,0 @@
-/**
- * This function is like `arrayIncludes` except that it accepts a comparator.
- *
- * @private
- * @param {Array} array The array to search.
- * @param {*} target The value to search for.
- * @param {Function} comparator The comparator invoked per element.
- * @returns {boolean} Returns `true` if `target` is found, else `false`.
- */
-function arrayIncludesWith(array, value, comparator) {
-  var index = -1,
-      length = array.length;
-
-  while (++index < length) {
-    if (comparator(value, array[index])) {
-      return true;
-    }
-  }
-  return false;
-}
-
-export default arrayIncludesWith;

+ 0 - 21
packages/ckeditor5-utils/src/lib/lodash/_arrayMap.js

@@ -1,21 +0,0 @@
-/**
- * A specialized version of `_.map` for arrays without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
- */
-function arrayMap(array, iteratee) {
-  var index = -1,
-      length = array.length,
-      result = Array(length);
-
-  while (++index < length) {
-    result[index] = iteratee(array[index], index, array);
-  }
-  return result;
-}
-
-export default arrayMap;

+ 0 - 20
packages/ckeditor5-utils/src/lib/lodash/_arrayPush.js

@@ -1,20 +0,0 @@
-/**
- * Appends the elements of `values` to `array`.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {Array} values The values to append.
- * @returns {Array} Returns `array`.
- */
-function arrayPush(array, values) {
-  var index = -1,
-      length = values.length,
-      offset = array.length;
-
-  while (++index < length) {
-    array[offset + index] = values[index];
-  }
-  return array;
-}
-
-export default arrayPush;

+ 0 - 26
packages/ckeditor5-utils/src/lib/lodash/_arrayReduce.js

@@ -1,26 +0,0 @@
-/**
- * A specialized version of `_.reduce` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {*} [accumulator] The initial value.
- * @param {boolean} [initAccum] Specify using the first element of `array` as
- *  the initial value.
- * @returns {*} Returns the accumulated value.
- */
-function arrayReduce(array, iteratee, accumulator, initAccum) {
-  var index = -1,
-      length = array.length;
-
-  if (initAccum && length) {
-    accumulator = array[++index];
-  }
-  while (++index < length) {
-    accumulator = iteratee(accumulator, array[index], index, array);
-  }
-  return accumulator;
-}
-
-export default arrayReduce;

+ 0 - 24
packages/ckeditor5-utils/src/lib/lodash/_arrayReduceRight.js

@@ -1,24 +0,0 @@
-/**
- * A specialized version of `_.reduceRight` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {*} [accumulator] The initial value.
- * @param {boolean} [initAccum] Specify using the last element of `array` as
- *  the initial value.
- * @returns {*} Returns the accumulated value.
- */
-function arrayReduceRight(array, iteratee, accumulator, initAccum) {
-  var length = array.length;
-  if (initAccum && length) {
-    accumulator = array[--length];
-  }
-  while (length--) {
-    accumulator = iteratee(accumulator, array[length], length, array);
-  }
-  return accumulator;
-}
-
-export default arrayReduceRight;

+ 0 - 23
packages/ckeditor5-utils/src/lib/lodash/_arraySome.js

@@ -1,23 +0,0 @@
-/**
- * A specialized version of `_.some` for arrays without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if any element passes the predicate check,
- *  else `false`.
- */
-function arraySome(array, predicate) {
-  var index = -1,
-      length = array.length;
-
-  while (++index < length) {
-    if (predicate(array[index], index, array)) {
-      return true;
-    }
-  }
-  return false;
-}
-
-export default arraySome;

+ 0 - 27
packages/ckeditor5-utils/src/lib/lodash/_assignInDefaults.js

@@ -1,27 +0,0 @@
-import eq from './eq';
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Used by `_.defaults` to customize its `_.assignIn` use.
- *
- * @private
- * @param {*} objValue The destination value.
- * @param {*} srcValue The source value.
- * @param {string} key The key of the property to assign.
- * @param {Object} object The parent object of `objValue`.
- * @returns {*} Returns the value to assign.
- */
-function assignInDefaults(objValue, srcValue, key, object) {
-  if (objValue === undefined ||
-      (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
-    return srcValue;
-  }
-  return objValue;
-}
-
-export default assignInDefaults;

+ 0 - 19
packages/ckeditor5-utils/src/lib/lodash/_assignMergeValue.js

@@ -1,19 +0,0 @@
-import eq from './eq';
-
-/**
- * This function is like `assignValue` except that it doesn't assign
- * `undefined` values.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {string} key The key of the property to assign.
- * @param {*} value The value to assign.
- */
-function assignMergeValue(object, key, value) {
-  if ((value !== undefined && !eq(object[key], value)) ||
-      (typeof key == 'number' && value === undefined && !(key in object))) {
-    object[key] = value;
-  }
-}
-
-export default assignMergeValue;

+ 0 - 27
packages/ckeditor5-utils/src/lib/lodash/_assignValue.js

@@ -1,27 +0,0 @@
-import eq from './eq';
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {string} key The key of the property to assign.
- * @param {*} value The value to assign.
- */
-function assignValue(object, key, value) {
-  var objValue = object[key];
-  if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
-      (value === undefined && !(key in object))) {
-    object[key] = value;
-  }
-}
-
-export default assignValue;

+ 0 - 21
packages/ckeditor5-utils/src/lib/lodash/_assocIndexOf.js

@@ -1,21 +0,0 @@
-import eq from './eq';
-
-/**
- * Gets the index at which the `key` is found in `array` of key-value pairs.
- *
- * @private
- * @param {Array} array The array to search.
- * @param {*} key The key to search for.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
-function assocIndexOf(array, key) {
-  var length = array.length;
-  while (length--) {
-    if (eq(array[length][0], key)) {
-      return length;
-    }
-  }
-  return -1;
-}
-
-export default assocIndexOf;

+ 0 - 21
packages/ckeditor5-utils/src/lib/lodash/_baseAggregator.js

@@ -1,21 +0,0 @@
-import baseEach from './_baseEach';
-
-/**
- * Aggregates elements of `collection` on `accumulator` with keys transformed
- * by `iteratee` and values set by `setter`.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} setter The function to set `accumulator` values.
- * @param {Function} iteratee The iteratee to transform keys.
- * @param {Object} accumulator The initial aggregated object.
- * @returns {Function} Returns `accumulator`.
- */
-function baseAggregator(collection, setter, iteratee, accumulator) {
-  baseEach(collection, function(value, key, collection) {
-    setter(accumulator, value, iteratee(value), collection);
-  });
-  return accumulator;
-}
-
-export default baseAggregator;

+ 0 - 17
packages/ckeditor5-utils/src/lib/lodash/_baseAssign.js

@@ -1,17 +0,0 @@
-import copyObject from './_copyObject';
-import keys from './keys';
-
-/**
- * The base implementation of `_.assign` without support for multiple sources
- * or `customizer` functions.
- *
- * @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @returns {Object} Returns `object`.
- */
-function baseAssign(object, source) {
-  return object && copyObject(source, keys(source), object);
-}
-
-export default baseAssign;

+ 0 - 23
packages/ckeditor5-utils/src/lib/lodash/_baseAt.js

@@ -1,23 +0,0 @@
-import get from './get';
-
-/**
- * The base implementation of `_.at` without support for individual paths.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {string[]} paths The property paths of elements to pick.
- * @returns {Array} Returns the picked elements.
- */
-function baseAt(object, paths) {
-  var index = -1,
-      isNil = object == null,
-      length = paths.length,
-      result = Array(length);
-
-  while (++index < length) {
-    result[index] = isNil ? undefined : get(object, paths[index]);
-  }
-  return result;
-}
-
-export default baseAt;

+ 0 - 22
packages/ckeditor5-utils/src/lib/lodash/_baseClamp.js

@@ -1,22 +0,0 @@
-/**
- * The base implementation of `_.clamp` which doesn't coerce arguments to numbers.
- *
- * @private
- * @param {number} number The number to clamp.
- * @param {number} [lower] The lower bound.
- * @param {number} upper The upper bound.
- * @returns {number} Returns the clamped number.
- */
-function baseClamp(number, lower, upper) {
-  if (number === number) {
-    if (upper !== undefined) {
-      number = number <= upper ? number : upper;
-    }
-    if (lower !== undefined) {
-      number = number >= lower ? number : lower;
-    }
-  }
-  return number;
-}
-
-export default baseClamp;

+ 0 - 139
packages/ckeditor5-utils/src/lib/lodash/_baseClone.js

@@ -1,139 +0,0 @@
-import Stack from './_Stack';
-import arrayEach from './_arrayEach';
-import assignValue from './_assignValue';
-import baseAssign from './_baseAssign';
-import cloneBuffer from './_cloneBuffer';
-import copyArray from './_copyArray';
-import copySymbols from './_copySymbols';
-import getAllKeys from './_getAllKeys';
-import getTag from './_getTag';
-import initCloneArray from './_initCloneArray';
-import initCloneByTag from './_initCloneByTag';
-import initCloneObject from './_initCloneObject';
-import isArray from './isArray';
-import isBuffer from './isBuffer';
-import isHostObject from './_isHostObject';
-import isObject from './isObject';
-import keys from './keys';
-
-/** `Object#toString` result references. */
-var argsTag = '[object Arguments]',
-    arrayTag = '[object Array]',
-    boolTag = '[object Boolean]',
-    dateTag = '[object Date]',
-    errorTag = '[object Error]',
-    funcTag = '[object Function]',
-    genTag = '[object GeneratorFunction]',
-    mapTag = '[object Map]',
-    numberTag = '[object Number]',
-    objectTag = '[object Object]',
-    regexpTag = '[object RegExp]',
-    setTag = '[object Set]',
-    stringTag = '[object String]',
-    symbolTag = '[object Symbol]',
-    weakMapTag = '[object WeakMap]';
-
-var arrayBufferTag = '[object ArrayBuffer]',
-    dataViewTag = '[object DataView]',
-    float32Tag = '[object Float32Array]',
-    float64Tag = '[object Float64Array]',
-    int8Tag = '[object Int8Array]',
-    int16Tag = '[object Int16Array]',
-    int32Tag = '[object Int32Array]',
-    uint8Tag = '[object Uint8Array]',
-    uint8ClampedTag = '[object Uint8ClampedArray]',
-    uint16Tag = '[object Uint16Array]',
-    uint32Tag = '[object Uint32Array]';
-
-/** Used to identify `toStringTag` values supported by `_.clone`. */
-var cloneableTags = {};
-cloneableTags[argsTag] = cloneableTags[arrayTag] =
-cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
-cloneableTags[boolTag] = cloneableTags[dateTag] =
-cloneableTags[float32Tag] = cloneableTags[float64Tag] =
-cloneableTags[int8Tag] = cloneableTags[int16Tag] =
-cloneableTags[int32Tag] = cloneableTags[mapTag] =
-cloneableTags[numberTag] = cloneableTags[objectTag] =
-cloneableTags[regexpTag] = cloneableTags[setTag] =
-cloneableTags[stringTag] = cloneableTags[symbolTag] =
-cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
-cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
-cloneableTags[errorTag] = cloneableTags[funcTag] =
-cloneableTags[weakMapTag] = false;
-
-/**
- * The base implementation of `_.clone` and `_.cloneDeep` which tracks
- * traversed objects.
- *
- * @private
- * @param {*} value The value to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @param {boolean} [isFull] Specify a clone including symbols.
- * @param {Function} [customizer] The function to customize cloning.
- * @param {string} [key] The key of `value`.
- * @param {Object} [object] The parent object of `value`.
- * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
- * @returns {*} Returns the cloned value.
- */
-function baseClone(value, isDeep, isFull, customizer, key, object, stack) {
-  var result;
-  if (customizer) {
-    result = object ? customizer(value, key, object, stack) : customizer(value);
-  }
-  if (result !== undefined) {
-    return result;
-  }
-  if (!isObject(value)) {
-    return value;
-  }
-  var isArr = isArray(value);
-  if (isArr) {
-    result = initCloneArray(value);
-    if (!isDeep) {
-      return copyArray(value, result);
-    }
-  } else {
-    var tag = getTag(value),
-        isFunc = tag == funcTag || tag == genTag;
-
-    if (isBuffer(value)) {
-      return cloneBuffer(value, isDeep);
-    }
-    if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
-      if (isHostObject(value)) {
-        return object ? value : {};
-      }
-      result = initCloneObject(isFunc ? {} : value);
-      if (!isDeep) {
-        return copySymbols(value, baseAssign(result, value));
-      }
-    } else {
-      if (!cloneableTags[tag]) {
-        return object ? value : {};
-      }
-      result = initCloneByTag(value, tag, baseClone, isDeep);
-    }
-  }
-  // Check for circular references and return its corresponding clone.
-  stack || (stack = new Stack);
-  var stacked = stack.get(value);
-  if (stacked) {
-    return stacked;
-  }
-  stack.set(value, result);
-
-  if (!isArr) {
-    var props = isFull ? getAllKeys(value) : keys(value);
-  }
-  // Recursively populate clone (susceptible to call stack limits).
-  arrayEach(props || value, function(subValue, key) {
-    if (props) {
-      key = subValue;
-      subValue = value[key];
-    }
-    assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack));
-  });
-  return result;
-}
-
-export default baseClone;

+ 0 - 33
packages/ckeditor5-utils/src/lib/lodash/_baseConforms.js

@@ -1,33 +0,0 @@
-import keys from './keys';
-
-/**
- * The base implementation of `_.conforms` which doesn't clone `source`.
- *
- * @private
- * @param {Object} source The object of property predicates to conform to.
- * @returns {Function} Returns the new spec function.
- */
-function baseConforms(source) {
-  var props = keys(source),
-      length = props.length;
-
-  return function(object) {
-    if (object == null) {
-      return !length;
-    }
-    var index = length;
-    while (index--) {
-      var key = props[index],
-          predicate = source[key],
-          value = object[key];
-
-      if ((value === undefined &&
-          !(key in Object(object))) || !predicate(value)) {
-        return false;
-      }
-    }
-    return true;
-  };
-}
-
-export default baseConforms;

+ 0 - 18
packages/ckeditor5-utils/src/lib/lodash/_baseCreate.js

@@ -1,18 +0,0 @@
-import isObject from './isObject';
-
-/** Built-in value references. */
-var objectCreate = Object.create;
-
-/**
- * The base implementation of `_.create` without support for assigning
- * properties to the created object.
- *
- * @private
- * @param {Object} prototype The object to inherit from.
- * @returns {Object} Returns the new object.
- */
-function baseCreate(proto) {
-  return isObject(proto) ? objectCreate(proto) : {};
-}
-
-export default baseCreate;

+ 0 - 21
packages/ckeditor5-utils/src/lib/lodash/_baseDelay.js

@@ -1,21 +0,0 @@
-/** Used as the `TypeError` message for "Functions" methods. */
-var FUNC_ERROR_TEXT = 'Expected a function';
-
-/**
- * The base implementation of `_.delay` and `_.defer` which accepts an array
- * of `func` arguments.
- *
- * @private
- * @param {Function} func The function to delay.
- * @param {number} wait The number of milliseconds to delay invocation.
- * @param {Object} args The arguments to provide to `func`.
- * @returns {number} Returns the timer id.
- */
-function baseDelay(func, wait, args) {
-  if (typeof func != 'function') {
-    throw new TypeError(FUNC_ERROR_TEXT);
-  }
-  return setTimeout(function() { func.apply(undefined, args); }, wait);
-}
-
-export default baseDelay;

+ 0 - 67
packages/ckeditor5-utils/src/lib/lodash/_baseDifference.js

@@ -1,67 +0,0 @@
-import SetCache from './_SetCache';
-import arrayIncludes from './_arrayIncludes';
-import arrayIncludesWith from './_arrayIncludesWith';
-import arrayMap from './_arrayMap';
-import baseUnary from './_baseUnary';
-import cacheHas from './_cacheHas';
-
-/** Used as the size to enable large array optimizations. */
-var LARGE_ARRAY_SIZE = 200;
-
-/**
- * The base implementation of methods like `_.difference` without support
- * for excluding multiple arrays or iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {Array} values The values to exclude.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of filtered values.
- */
-function baseDifference(array, values, iteratee, comparator) {
-  var index = -1,
-      includes = arrayIncludes,
-      isCommon = true,
-      length = array.length,
-      result = [],
-      valuesLength = values.length;
-
-  if (!length) {
-    return result;
-  }
-  if (iteratee) {
-    values = arrayMap(values, baseUnary(iteratee));
-  }
-  if (comparator) {
-    includes = arrayIncludesWith;
-    isCommon = false;
-  }
-  else if (values.length >= LARGE_ARRAY_SIZE) {
-    includes = cacheHas;
-    isCommon = false;
-    values = new SetCache(values);
-  }
-  outer:
-  while (++index < length) {
-    var value = array[index],
-        computed = iteratee ? iteratee(value) : value;
-
-    value = (comparator || value !== 0) ? value : 0;
-    if (isCommon && computed === computed) {
-      var valuesIndex = valuesLength;
-      while (valuesIndex--) {
-        if (values[valuesIndex] === computed) {
-          continue outer;
-        }
-      }
-      result.push(value);
-    }
-    else if (!includes(values, computed, comparator)) {
-      result.push(value);
-    }
-  }
-  return result;
-}
-
-export default baseDifference;

+ 0 - 14
packages/ckeditor5-utils/src/lib/lodash/_baseEach.js

@@ -1,14 +0,0 @@
-import baseForOwn from './_baseForOwn';
-import createBaseEach from './_createBaseEach';
-
-/**
- * The base implementation of `_.forEach` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- */
-var baseEach = createBaseEach(baseForOwn);
-
-export default baseEach;

+ 0 - 14
packages/ckeditor5-utils/src/lib/lodash/_baseEachRight.js

@@ -1,14 +0,0 @@
-import baseForOwnRight from './_baseForOwnRight';
-import createBaseEach from './_createBaseEach';
-
-/**
- * The base implementation of `_.forEachRight` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- */
-var baseEachRight = createBaseEach(baseForOwnRight, true);
-
-export default baseEachRight;

+ 0 - 21
packages/ckeditor5-utils/src/lib/lodash/_baseEvery.js

@@ -1,21 +0,0 @@
-import baseEach from './_baseEach';
-
-/**
- * The base implementation of `_.every` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if all elements pass the predicate check,
- *  else `false`
- */
-function baseEvery(collection, predicate) {
-  var result = true;
-  baseEach(collection, function(value, index, collection) {
-    result = !!predicate(value, index, collection);
-    return result;
-  });
-  return result;
-}
-
-export default baseEvery;

+ 0 - 32
packages/ckeditor5-utils/src/lib/lodash/_baseExtremum.js

@@ -1,32 +0,0 @@
-import isSymbol from './isSymbol';
-
-/**
- * The base implementation of methods like `_.max` and `_.min` which accepts a
- * `comparator` to determine the extremum value.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The iteratee invoked per iteration.
- * @param {Function} comparator The comparator used to compare values.
- * @returns {*} Returns the extremum value.
- */
-function baseExtremum(array, iteratee, comparator) {
-  var index = -1,
-      length = array.length;
-
-  while (++index < length) {
-    var value = array[index],
-        current = iteratee(value);
-
-    if (current != null && (computed === undefined
-          ? (current === current && !isSymbol(current))
-          : comparator(current, computed)
-        )) {
-      var computed = current,
-          result = value;
-    }
-  }
-  return result;
-}
-
-export default baseExtremum;

+ 0 - 32
packages/ckeditor5-utils/src/lib/lodash/_baseFill.js

@@ -1,32 +0,0 @@
-import toInteger from './toInteger';
-import toLength from './toLength';
-
-/**
- * The base implementation of `_.fill` without an iteratee call guard.
- *
- * @private
- * @param {Array} array The array to fill.
- * @param {*} value The value to fill `array` with.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns `array`.
- */
-function baseFill(array, value, start, end) {
-  var length = array.length;
-
-  start = toInteger(start);
-  if (start < 0) {
-    start = -start > length ? 0 : (length + start);
-  }
-  end = (end === undefined || end > length) ? length : toInteger(end);
-  if (end < 0) {
-    end += length;
-  }
-  end = start > end ? 0 : toLength(end);
-  while (start < end) {
-    array[start++] = value;
-  }
-  return array;
-}
-
-export default baseFill;

+ 0 - 21
packages/ckeditor5-utils/src/lib/lodash/_baseFilter.js

@@ -1,21 +0,0 @@
-import baseEach from './_baseEach';
-
-/**
- * The base implementation of `_.filter` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- */
-function baseFilter(collection, predicate) {
-  var result = [];
-  baseEach(collection, function(value, index, collection) {
-    if (predicate(value, index, collection)) {
-      result.push(value);
-    }
-  });
-  return result;
-}
-
-export default baseFilter;

+ 0 - 25
packages/ckeditor5-utils/src/lib/lodash/_baseFind.js

@@ -1,25 +0,0 @@
-/**
- * The base implementation of methods like `_.find` and `_.findKey`, without
- * support for iteratee shorthands, which iterates over `collection` using
- * `eachFunc`.
- *
- * @private
- * @param {Array|Object} collection The collection to search.
- * @param {Function} predicate The function invoked per iteration.
- * @param {Function} eachFunc The function to iterate over `collection`.
- * @param {boolean} [retKey] Specify returning the key of the found element
- *  instead of the element itself.
- * @returns {*} Returns the found element or its key, else `undefined`.
- */
-function baseFind(collection, predicate, eachFunc, retKey) {
-  var result;
-  eachFunc(collection, function(value, key, collection) {
-    if (predicate(value, key, collection)) {
-      result = retKey ? key : value;
-      return false;
-    }
-  });
-  return result;
-}
-
-export default baseFind;

+ 0 - 23
packages/ckeditor5-utils/src/lib/lodash/_baseFindIndex.js

@@ -1,23 +0,0 @@
-/**
- * The base implementation of `_.findIndex` and `_.findLastIndex` without
- * support for iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to search.
- * @param {Function} predicate The function invoked per iteration.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
-function baseFindIndex(array, predicate, fromRight) {
-  var length = array.length,
-      index = fromRight ? length : -1;
-
-  while ((fromRight ? index-- : ++index < length)) {
-    if (predicate(array[index], index, array)) {
-      return index;
-    }
-  }
-  return -1;
-}
-
-export default baseFindIndex;

+ 0 - 38
packages/ckeditor5-utils/src/lib/lodash/_baseFlatten.js

@@ -1,38 +0,0 @@
-import arrayPush from './_arrayPush';
-import isFlattenable from './_isFlattenable';
-
-/**
- * The base implementation of `_.flatten` with support for restricting flattening.
- *
- * @private
- * @param {Array} array The array to flatten.
- * @param {number} depth The maximum recursion depth.
- * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
- * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
- * @param {Array} [result=[]] The initial result value.
- * @returns {Array} Returns the new flattened array.
- */
-function baseFlatten(array, depth, predicate, isStrict, result) {
-  var index = -1,
-      length = array.length;
-
-  predicate || (predicate = isFlattenable);
-  result || (result = []);
-
-  while (++index < length) {
-    var value = array[index];
-    if (depth > 0 && predicate(value)) {
-      if (depth > 1) {
-        // Recursively flatten arrays (susceptible to call stack limits).
-        baseFlatten(value, depth - 1, predicate, isStrict, result);
-      } else {
-        arrayPush(result, value);
-      }
-    } else if (!isStrict) {
-      result[result.length] = value;
-    }
-  }
-  return result;
-}
-
-export default baseFlatten;

+ 0 - 16
packages/ckeditor5-utils/src/lib/lodash/_baseFor.js

@@ -1,16 +0,0 @@
-import createBaseFor from './_createBaseFor';
-
-/**
- * The base implementation of `baseForOwn` which iterates over `object`
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
- * Iteratee functions may exit iteration early by explicitly returning `false`.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {Function} keysFunc The function to get the keys of `object`.
- * @returns {Object} Returns `object`.
- */
-var baseFor = createBaseFor();
-
-export default baseFor;

+ 0 - 16
packages/ckeditor5-utils/src/lib/lodash/_baseForOwn.js

@@ -1,16 +0,0 @@
-import baseFor from './_baseFor';
-import keys from './keys';
-
-/**
- * The base implementation of `_.forOwn` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Object} Returns `object`.
- */
-function baseForOwn(object, iteratee) {
-  return object && baseFor(object, iteratee, keys);
-}
-
-export default baseForOwn;

+ 0 - 16
packages/ckeditor5-utils/src/lib/lodash/_baseForOwnRight.js

@@ -1,16 +0,0 @@
-import baseForRight from './_baseForRight';
-import keys from './keys';
-
-/**
- * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Object} Returns `object`.
- */
-function baseForOwnRight(object, iteratee) {
-  return object && baseForRight(object, iteratee, keys);
-}
-
-export default baseForOwnRight;

+ 0 - 15
packages/ckeditor5-utils/src/lib/lodash/_baseForRight.js

@@ -1,15 +0,0 @@
-import createBaseFor from './_createBaseFor';
-
-/**
- * This function is like `baseFor` except that it iterates over properties
- * in the opposite order.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {Function} keysFunc The function to get the keys of `object`.
- * @returns {Object} Returns `object`.
- */
-var baseForRight = createBaseFor(true);
-
-export default baseForRight;

+ 0 - 19
packages/ckeditor5-utils/src/lib/lodash/_baseFunctions.js

@@ -1,19 +0,0 @@
-import arrayFilter from './_arrayFilter';
-import isFunction from './isFunction';
-
-/**
- * The base implementation of `_.functions` which creates an array of
- * `object` function property names filtered from `props`.
- *
- * @private
- * @param {Object} object The object to inspect.
- * @param {Array} props The property names to filter.
- * @returns {Array} Returns the function names.
- */
-function baseFunctions(object, props) {
-  return arrayFilter(props, function(key) {
-    return isFunction(object[key]);
-  });
-}
-
-export default baseFunctions;

+ 0 - 25
packages/ckeditor5-utils/src/lib/lodash/_baseGet.js

@@ -1,25 +0,0 @@
-import castPath from './_castPath';
-import isKey from './_isKey';
-import toKey from './_toKey';
-
-/**
- * The base implementation of `_.get` without support for default values.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to get.
- * @returns {*} Returns the resolved value.
- */
-function baseGet(object, path) {
-  path = isKey(path, object) ? [path] : castPath(path);
-
-  var index = 0,
-      length = path.length;
-
-  while (object != null && index < length) {
-    object = object[toKey(path[index++])];
-  }
-  return (index && index == length) ? object : undefined;
-}
-
-export default baseGet;

+ 0 - 20
packages/ckeditor5-utils/src/lib/lodash/_baseGetAllKeys.js

@@ -1,20 +0,0 @@
-import arrayPush from './_arrayPush';
-import isArray from './isArray';
-
-/**
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
- * symbols of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Function} keysFunc The function to get the keys of `object`.
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
- * @returns {Array} Returns the array of property names and symbols.
- */
-function baseGetAllKeys(object, keysFunc, symbolsFunc) {
-  var result = keysFunc(object);
-  return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
-}
-
-export default baseGetAllKeys;

+ 0 - 14
packages/ckeditor5-utils/src/lib/lodash/_baseGt.js

@@ -1,14 +0,0 @@
-/**
- * The base implementation of `_.gt` which doesn't coerce arguments to numbers.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is greater than `other`,
- *  else `false`.
- */
-function baseGt(value, other) {
-  return value > other;
-}
-
-export default baseGt;

+ 0 - 25
packages/ckeditor5-utils/src/lib/lodash/_baseHas.js

@@ -1,25 +0,0 @@
-import getPrototype from './_getPrototype';
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * The base implementation of `_.has` without support for deep paths.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} key The key to check.
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
- */
-function baseHas(object, key) {
-  // Avoid a bug in IE 10-11 where objects with a [[Prototype]] of `null`,
-  // that are composed entirely of index properties, return `false` for
-  // `hasOwnProperty` checks of them.
-  return hasOwnProperty.call(object, key) ||
-    (typeof object == 'object' && key in object && getPrototype(object) === null);
-}
-
-export default baseHas;

+ 0 - 13
packages/ckeditor5-utils/src/lib/lodash/_baseHasIn.js

@@ -1,13 +0,0 @@
-/**
- * The base implementation of `_.hasIn` without support for deep paths.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} key The key to check.
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
- */
-function baseHasIn(object, key) {
-  return key in Object(object);
-}
-
-export default baseHasIn;

+ 0 - 18
packages/ckeditor5-utils/src/lib/lodash/_baseInRange.js

@@ -1,18 +0,0 @@
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMax = Math.max,
-    nativeMin = Math.min;
-
-/**
- * The base implementation of `_.inRange` which doesn't coerce arguments to numbers.
- *
- * @private
- * @param {number} number The number to check.
- * @param {number} start The start of the range.
- * @param {number} end The end of the range.
- * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
- */
-function baseInRange(number, start, end) {
-  return number >= nativeMin(start, end) && number < nativeMax(start, end);
-}
-
-export default baseInRange;

+ 0 - 27
packages/ckeditor5-utils/src/lib/lodash/_baseIndexOf.js

@@ -1,27 +0,0 @@
-import indexOfNaN from './_indexOfNaN';
-
-/**
- * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
- *
- * @private
- * @param {Array} array The array to search.
- * @param {*} value The value to search for.
- * @param {number} fromIndex The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
-function baseIndexOf(array, value, fromIndex) {
-  if (value !== value) {
-    return indexOfNaN(array, fromIndex);
-  }
-  var index = fromIndex - 1,
-      length = array.length;
-
-  while (++index < length) {
-    if (array[index] === value) {
-      return index;
-    }
-  }
-  return -1;
-}
-
-export default baseIndexOf;

+ 0 - 23
packages/ckeditor5-utils/src/lib/lodash/_baseIndexOfWith.js

@@ -1,23 +0,0 @@
-/**
- * This function is like `baseIndexOf` except that it accepts a comparator.
- *
- * @private
- * @param {Array} array The array to search.
- * @param {*} value The value to search for.
- * @param {number} fromIndex The index to search from.
- * @param {Function} comparator The comparator invoked per element.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
-function baseIndexOfWith(array, value, fromIndex, comparator) {
-  var index = fromIndex - 1,
-      length = array.length;
-
-  while (++index < length) {
-    if (comparator(array[index], value)) {
-      return index;
-    }
-  }
-  return -1;
-}
-
-export default baseIndexOfWith;

+ 0 - 74
packages/ckeditor5-utils/src/lib/lodash/_baseIntersection.js

@@ -1,74 +0,0 @@
-import SetCache from './_SetCache';
-import arrayIncludes from './_arrayIncludes';
-import arrayIncludesWith from './_arrayIncludesWith';
-import arrayMap from './_arrayMap';
-import baseUnary from './_baseUnary';
-import cacheHas from './_cacheHas';
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMin = Math.min;
-
-/**
- * The base implementation of methods like `_.intersection`, without support
- * for iteratee shorthands, that accepts an array of arrays to inspect.
- *
- * @private
- * @param {Array} arrays The arrays to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of shared values.
- */
-function baseIntersection(arrays, iteratee, comparator) {
-  var includes = comparator ? arrayIncludesWith : arrayIncludes,
-      length = arrays[0].length,
-      othLength = arrays.length,
-      othIndex = othLength,
-      caches = Array(othLength),
-      maxLength = Infinity,
-      result = [];
-
-  while (othIndex--) {
-    var array = arrays[othIndex];
-    if (othIndex && iteratee) {
-      array = arrayMap(array, baseUnary(iteratee));
-    }
-    maxLength = nativeMin(array.length, maxLength);
-    caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))
-      ? new SetCache(othIndex && array)
-      : undefined;
-  }
-  array = arrays[0];
-
-  var index = -1,
-      seen = caches[0];
-
-  outer:
-  while (++index < length && result.length < maxLength) {
-    var value = array[index],
-        computed = iteratee ? iteratee(value) : value;
-
-    value = (comparator || value !== 0) ? value : 0;
-    if (!(seen
-          ? cacheHas(seen, computed)
-          : includes(result, computed, comparator)
-        )) {
-      othIndex = othLength;
-      while (--othIndex) {
-        var cache = caches[othIndex];
-        if (!(cache
-              ? cacheHas(cache, computed)
-              : includes(arrays[othIndex], computed, comparator))
-            ) {
-          continue outer;
-        }
-      }
-      if (seen) {
-        seen.push(computed);
-      }
-      result.push(value);
-    }
-  }
-  return result;
-}
-
-export default baseIntersection;

+ 0 - 21
packages/ckeditor5-utils/src/lib/lodash/_baseInverter.js

@@ -1,21 +0,0 @@
-import baseForOwn from './_baseForOwn';
-
-/**
- * The base implementation of `_.invert` and `_.invertBy` which inverts
- * `object` with values transformed by `iteratee` and set by `setter`.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} setter The function to set `accumulator` values.
- * @param {Function} iteratee The iteratee to transform values.
- * @param {Object} accumulator The initial inverted object.
- * @returns {Function} Returns `accumulator`.
- */
-function baseInverter(object, setter, iteratee, accumulator) {
-  baseForOwn(object, function(value, key, object) {
-    setter(accumulator, iteratee(value), key, object);
-  });
-  return accumulator;
-}
-
-export default baseInverter;

+ 0 - 28
packages/ckeditor5-utils/src/lib/lodash/_baseInvoke.js

@@ -1,28 +0,0 @@
-import apply from './_apply';
-import castPath from './_castPath';
-import isKey from './_isKey';
-import last from './last';
-import parent from './_parent';
-import toKey from './_toKey';
-
-/**
- * The base implementation of `_.invoke` without support for individual
- * method arguments.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the method to invoke.
- * @param {Array} args The arguments to invoke the method with.
- * @returns {*} Returns the result of the invoked method.
- */
-function baseInvoke(object, path, args) {
-  if (!isKey(path, object)) {
-    path = castPath(path);
-    object = parent(object, path);
-    path = last(path);
-  }
-  var func = object == null ? object : object[toKey(path)];
-  return func == null ? undefined : apply(func, object, args);
-}
-
-export default baseInvoke;

+ 0 - 30
packages/ckeditor5-utils/src/lib/lodash/_baseIsEqual.js

@@ -1,30 +0,0 @@
-import baseIsEqualDeep from './_baseIsEqualDeep';
-import isObject from './isObject';
-import isObjectLike from './isObjectLike';
-
-/**
- * The base implementation of `_.isEqual` which supports partial comparisons
- * and tracks traversed objects.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {boolean} [bitmask] The bitmask of comparison flags.
- *  The bitmask may be composed of the following flags:
- *     1 - Unordered comparison
- *     2 - Partial comparison
- * @param {Object} [stack] Tracks traversed `value` and `other` objects.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- */
-function baseIsEqual(value, other, customizer, bitmask, stack) {
-  if (value === other) {
-    return true;
-  }
-  if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) {
-    return value !== value && other !== other;
-  }
-  return baseIsEqualDeep(value, other, baseIsEqual, customizer, bitmask, stack);
-}
-
-export default baseIsEqual;

+ 0 - 82
packages/ckeditor5-utils/src/lib/lodash/_baseIsEqualDeep.js

@@ -1,82 +0,0 @@
-import Stack from './_Stack';
-import equalArrays from './_equalArrays';
-import equalByTag from './_equalByTag';
-import equalObjects from './_equalObjects';
-import getTag from './_getTag';
-import isArray from './isArray';
-import isHostObject from './_isHostObject';
-import isTypedArray from './isTypedArray';
-
-/** Used to compose bitmasks for comparison styles. */
-var PARTIAL_COMPARE_FLAG = 2;
-
-/** `Object#toString` result references. */
-var argsTag = '[object Arguments]',
-    arrayTag = '[object Array]',
-    objectTag = '[object Object]';
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * A specialized version of `baseIsEqual` for arrays and objects which performs
- * deep comparisons and tracks traversed objects enabling objects with circular
- * references to be compared.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual`
- *  for more details.
- * @param {Object} [stack] Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
-function baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) {
-  var objIsArr = isArray(object),
-      othIsArr = isArray(other),
-      objTag = arrayTag,
-      othTag = arrayTag;
-
-  if (!objIsArr) {
-    objTag = getTag(object);
-    objTag = objTag == argsTag ? objectTag : objTag;
-  }
-  if (!othIsArr) {
-    othTag = getTag(other);
-    othTag = othTag == argsTag ? objectTag : othTag;
-  }
-  var objIsObj = objTag == objectTag && !isHostObject(object),
-      othIsObj = othTag == objectTag && !isHostObject(other),
-      isSameTag = objTag == othTag;
-
-  if (isSameTag && !objIsObj) {
-    stack || (stack = new Stack);
-    return (objIsArr || isTypedArray(object))
-      ? equalArrays(object, other, equalFunc, customizer, bitmask, stack)
-      : equalByTag(object, other, objTag, equalFunc, customizer, bitmask, stack);
-  }
-  if (!(bitmask & PARTIAL_COMPARE_FLAG)) {
-    var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
-        othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
-
-    if (objIsWrapped || othIsWrapped) {
-      var objUnwrapped = objIsWrapped ? object.value() : object,
-          othUnwrapped = othIsWrapped ? other.value() : other;
-
-      stack || (stack = new Stack);
-      return equalFunc(objUnwrapped, othUnwrapped, customizer, bitmask, stack);
-    }
-  }
-  if (!isSameTag) {
-    return false;
-  }
-  stack || (stack = new Stack);
-  return equalObjects(object, other, equalFunc, customizer, bitmask, stack);
-}
-
-export default baseIsEqualDeep;

+ 0 - 62
packages/ckeditor5-utils/src/lib/lodash/_baseIsMatch.js

@@ -1,62 +0,0 @@
-import Stack from './_Stack';
-import baseIsEqual from './_baseIsEqual';
-
-/** Used to compose bitmasks for comparison styles. */
-var UNORDERED_COMPARE_FLAG = 1,
-    PARTIAL_COMPARE_FLAG = 2;
-
-/**
- * The base implementation of `_.isMatch` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to inspect.
- * @param {Object} source The object of property values to match.
- * @param {Array} matchData The property names, values, and compare flags to match.
- * @param {Function} [customizer] The function to customize comparisons.
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
- */
-function baseIsMatch(object, source, matchData, customizer) {
-  var index = matchData.length,
-      length = index,
-      noCustomizer = !customizer;
-
-  if (object == null) {
-    return !length;
-  }
-  object = Object(object);
-  while (index--) {
-    var data = matchData[index];
-    if ((noCustomizer && data[2])
-          ? data[1] !== object[data[0]]
-          : !(data[0] in object)
-        ) {
-      return false;
-    }
-  }
-  while (++index < length) {
-    data = matchData[index];
-    var key = data[0],
-        objValue = object[key],
-        srcValue = data[1];
-
-    if (noCustomizer && data[2]) {
-      if (objValue === undefined && !(key in object)) {
-        return false;
-      }
-    } else {
-      var stack = new Stack;
-      if (customizer) {
-        var result = customizer(objValue, srcValue, key, object, source, stack);
-      }
-      if (!(result === undefined
-            ? baseIsEqual(srcValue, objValue, customizer, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG, stack)
-            : result
-          )) {
-        return false;
-      }
-    }
-  }
-  return true;
-}
-
-export default baseIsMatch;

+ 0 - 31
packages/ckeditor5-utils/src/lib/lodash/_baseIteratee.js

@@ -1,31 +0,0 @@
-import baseMatches from './_baseMatches';
-import baseMatchesProperty from './_baseMatchesProperty';
-import identity from './identity';
-import isArray from './isArray';
-import property from './property';
-
-/**
- * The base implementation of `_.iteratee`.
- *
- * @private
- * @param {*} [value=_.identity] The value to convert to an iteratee.
- * @returns {Function} Returns the iteratee.
- */
-function baseIteratee(value) {
-  // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
-  // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
-  if (typeof value == 'function') {
-    return value;
-  }
-  if (value == null) {
-    return identity;
-  }
-  if (typeof value == 'object') {
-    return isArray(value)
-      ? baseMatchesProperty(value[0], value[1])
-      : baseMatches(value);
-  }
-  return property(value);
-}
-
-export default baseIteratee;

+ 0 - 16
packages/ckeditor5-utils/src/lib/lodash/_baseKeys.js

@@ -1,16 +0,0 @@
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeKeys = Object.keys;
-
-/**
- * The base implementation of `_.keys` which doesn't skip the constructor
- * property of prototypes or treat sparse arrays as dense.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- */
-function baseKeys(object) {
-  return nativeKeys(Object(object));
-}
-
-export default baseKeys;

+ 0 - 36
packages/ckeditor5-utils/src/lib/lodash/_baseKeysIn.js

@@ -1,36 +0,0 @@
-import Reflect from './_Reflect';
-import iteratorToArray from './_iteratorToArray';
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Built-in value references. */
-var enumerate = Reflect ? Reflect.enumerate : undefined,
-    propertyIsEnumerable = objectProto.propertyIsEnumerable;
-
-/**
- * The base implementation of `_.keysIn` which doesn't skip the constructor
- * property of prototypes or treat sparse arrays as dense.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- */
-function baseKeysIn(object) {
-  object = object == null ? object : Object(object);
-
-  var result = [];
-  for (var key in object) {
-    result.push(key);
-  }
-  return result;
-}
-
-// Fallback for IE < 9 with es6-shim.
-if (enumerate && !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf')) {
-  baseKeysIn = function(object) {
-    return iteratorToArray(enumerate(object));
-  };
-}
-
-export default baseKeysIn;

+ 0 - 10
packages/ckeditor5-utils/src/lib/lodash/_baseLodash.js

@@ -1,10 +0,0 @@
-/**
- * The function whose prototype chain sequence wrappers inherit from.
- *
- * @private
- */
-function baseLodash() {
-  // No operation performed.
-}
-
-export default baseLodash;

+ 0 - 14
packages/ckeditor5-utils/src/lib/lodash/_baseLt.js

@@ -1,14 +0,0 @@
-/**
- * The base implementation of `_.lt` which doesn't coerce arguments to numbers.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is less than `other`,
- *  else `false`.
- */
-function baseLt(value, other) {
-  return value < other;
-}
-
-export default baseLt;

+ 0 - 22
packages/ckeditor5-utils/src/lib/lodash/_baseMap.js

@@ -1,22 +0,0 @@
-import baseEach from './_baseEach';
-import isArrayLike from './isArrayLike';
-
-/**
- * The base implementation of `_.map` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
- */
-function baseMap(collection, iteratee) {
-  var index = -1,
-      result = isArrayLike(collection) ? Array(collection.length) : [];
-
-  baseEach(collection, function(value, key, collection) {
-    result[++index] = iteratee(value, key, collection);
-  });
-  return result;
-}
-
-export default baseMap;

+ 0 - 22
packages/ckeditor5-utils/src/lib/lodash/_baseMatches.js

@@ -1,22 +0,0 @@
-import baseIsMatch from './_baseIsMatch';
-import getMatchData from './_getMatchData';
-import matchesStrictComparable from './_matchesStrictComparable';
-
-/**
- * The base implementation of `_.matches` which doesn't clone `source`.
- *
- * @private
- * @param {Object} source The object of property values to match.
- * @returns {Function} Returns the new spec function.
- */
-function baseMatches(source) {
-  var matchData = getMatchData(source);
-  if (matchData.length == 1 && matchData[0][2]) {
-    return matchesStrictComparable(matchData[0][0], matchData[0][1]);
-  }
-  return function(object) {
-    return object === source || baseIsMatch(object, source, matchData);
-  };
-}
-
-export default baseMatches;

+ 0 - 33
packages/ckeditor5-utils/src/lib/lodash/_baseMatchesProperty.js

@@ -1,33 +0,0 @@
-import baseIsEqual from './_baseIsEqual';
-import get from './get';
-import hasIn from './hasIn';
-import isKey from './_isKey';
-import isStrictComparable from './_isStrictComparable';
-import matchesStrictComparable from './_matchesStrictComparable';
-import toKey from './_toKey';
-
-/** Used to compose bitmasks for comparison styles. */
-var UNORDERED_COMPARE_FLAG = 1,
-    PARTIAL_COMPARE_FLAG = 2;
-
-/**
- * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
- *
- * @private
- * @param {string} path The path of the property to get.
- * @param {*} srcValue The value to match.
- * @returns {Function} Returns the new spec function.
- */
-function baseMatchesProperty(path, srcValue) {
-  if (isKey(path) && isStrictComparable(srcValue)) {
-    return matchesStrictComparable(toKey(path), srcValue);
-  }
-  return function(object) {
-    var objValue = get(object, path);
-    return (objValue === undefined && objValue === srcValue)
-      ? hasIn(object, path)
-      : baseIsEqual(srcValue, objValue, undefined, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG);
-  };
-}
-
-export default baseMatchesProperty;

+ 0 - 20
packages/ckeditor5-utils/src/lib/lodash/_baseMean.js

@@ -1,20 +0,0 @@
-import baseSum from './_baseSum';
-
-/** Used as references for various `Number` constants. */
-var NAN = 0 / 0;
-
-/**
- * The base implementation of `_.mean` and `_.meanBy` without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {number} Returns the mean.
- */
-function baseMean(array, iteratee) {
-  var length = array ? array.length : 0;
-  return length ? (baseSum(array, iteratee) / length) : NAN;
-}
-
-export default baseMean;

+ 0 - 50
packages/ckeditor5-utils/src/lib/lodash/_baseMerge.js

@@ -1,50 +0,0 @@
-import Stack from './_Stack';
-import arrayEach from './_arrayEach';
-import assignMergeValue from './_assignMergeValue';
-import baseMergeDeep from './_baseMergeDeep';
-import isArray from './isArray';
-import isObject from './isObject';
-import isTypedArray from './isTypedArray';
-import keysIn from './keysIn';
-
-/**
- * The base implementation of `_.merge` without support for multiple sources.
- *
- * @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @param {number} srcIndex The index of `source`.
- * @param {Function} [customizer] The function to customize merged values.
- * @param {Object} [stack] Tracks traversed source values and their merged
- *  counterparts.
- */
-function baseMerge(object, source, srcIndex, customizer, stack) {
-  if (object === source) {
-    return;
-  }
-  if (!(isArray(source) || isTypedArray(source))) {
-    var props = keysIn(source);
-  }
-  arrayEach(props || source, function(srcValue, key) {
-    if (props) {
-      key = srcValue;
-      srcValue = source[key];
-    }
-    if (isObject(srcValue)) {
-      stack || (stack = new Stack);
-      baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
-    }
-    else {
-      var newValue = customizer
-        ? customizer(object[key], srcValue, (key + ''), object, source, stack)
-        : undefined;
-
-      if (newValue === undefined) {
-        newValue = srcValue;
-      }
-      assignMergeValue(object, key, newValue);
-    }
-  });
-}
-
-export default baseMerge;

+ 0 - 83
packages/ckeditor5-utils/src/lib/lodash/_baseMergeDeep.js

@@ -1,83 +0,0 @@
-import assignMergeValue from './_assignMergeValue';
-import baseClone from './_baseClone';
-import copyArray from './_copyArray';
-import isArguments from './isArguments';
-import isArray from './isArray';
-import isArrayLikeObject from './isArrayLikeObject';
-import isFunction from './isFunction';
-import isObject from './isObject';
-import isPlainObject from './isPlainObject';
-import isTypedArray from './isTypedArray';
-import toPlainObject from './toPlainObject';
-
-/**
- * A specialized version of `baseMerge` for arrays and objects which performs
- * deep merges and tracks traversed objects enabling objects with circular
- * references to be merged.
- *
- * @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @param {string} key The key of the value to merge.
- * @param {number} srcIndex The index of `source`.
- * @param {Function} mergeFunc The function to merge values.
- * @param {Function} [customizer] The function to customize assigned values.
- * @param {Object} [stack] Tracks traversed source values and their merged
- *  counterparts.
- */
-function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
-  var objValue = object[key],
-      srcValue = source[key],
-      stacked = stack.get(srcValue);
-
-  if (stacked) {
-    assignMergeValue(object, key, stacked);
-    return;
-  }
-  var newValue = customizer
-    ? customizer(objValue, srcValue, (key + ''), object, source, stack)
-    : undefined;
-
-  var isCommon = newValue === undefined;
-
-  if (isCommon) {
-    newValue = srcValue;
-    if (isArray(srcValue) || isTypedArray(srcValue)) {
-      if (isArray(objValue)) {
-        newValue = objValue;
-      }
-      else if (isArrayLikeObject(objValue)) {
-        newValue = copyArray(objValue);
-      }
-      else {
-        isCommon = false;
-        newValue = baseClone(srcValue, true);
-      }
-    }
-    else if (isPlainObject(srcValue) || isArguments(srcValue)) {
-      if (isArguments(objValue)) {
-        newValue = toPlainObject(objValue);
-      }
-      else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) {
-        isCommon = false;
-        newValue = baseClone(srcValue, true);
-      }
-      else {
-        newValue = objValue;
-      }
-    }
-    else {
-      isCommon = false;
-    }
-  }
-  stack.set(srcValue, newValue);
-
-  if (isCommon) {
-    // Recursively merge objects and arrays (susceptible to call stack limits).
-    mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
-  }
-  stack['delete'](srcValue);
-  assignMergeValue(object, key, newValue);
-}
-
-export default baseMergeDeep;

+ 0 - 20
packages/ckeditor5-utils/src/lib/lodash/_baseNth.js

@@ -1,20 +0,0 @@
-import isIndex from './_isIndex';
-
-/**
- * The base implementation of `_.nth` which doesn't coerce `n` to an integer.
- *
- * @private
- * @param {Array} array The array to query.
- * @param {number} n The index of the element to return.
- * @returns {*} Returns the nth element of `array`.
- */
-function baseNth(array, n) {
-  var length = array.length;
-  if (!length) {
-    return;
-  }
-  n += n < 0 ? length : 0;
-  return isIndex(n, length) ? array[n] : undefined;
-}
-
-export default baseNth;

+ 0 - 34
packages/ckeditor5-utils/src/lib/lodash/_baseOrderBy.js

@@ -1,34 +0,0 @@
-import arrayMap from './_arrayMap';
-import baseIteratee from './_baseIteratee';
-import baseMap from './_baseMap';
-import baseSortBy from './_baseSortBy';
-import baseUnary from './_baseUnary';
-import compareMultiple from './_compareMultiple';
-import identity from './identity';
-
-/**
- * The base implementation of `_.orderBy` without param guards.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
- * @param {string[]} orders The sort orders of `iteratees`.
- * @returns {Array} Returns the new sorted array.
- */
-function baseOrderBy(collection, iteratees, orders) {
-  var index = -1;
-  iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));
-
-  var result = baseMap(collection, function(value, key, collection) {
-    var criteria = arrayMap(iteratees, function(iteratee) {
-      return iteratee(value);
-    });
-    return { 'criteria': criteria, 'index': ++index, 'value': value };
-  });
-
-  return baseSortBy(result, function(object, other) {
-    return compareMultiple(object, other, orders);
-  });
-}
-
-export default baseOrderBy;

+ 0 - 22
packages/ckeditor5-utils/src/lib/lodash/_basePick.js

@@ -1,22 +0,0 @@
-import arrayReduce from './_arrayReduce';
-
-/**
- * The base implementation of `_.pick` without support for individual
- * property identifiers.
- *
- * @private
- * @param {Object} object The source object.
- * @param {string[]} props The property identifiers to pick.
- * @returns {Object} Returns the new object.
- */
-function basePick(object, props) {
-  object = Object(object);
-  return arrayReduce(props, function(result, key) {
-    if (key in object) {
-      result[key] = object[key];
-    }
-    return result;
-  }, {});
-}
-
-export default basePick;

+ 0 - 28
packages/ckeditor5-utils/src/lib/lodash/_basePickBy.js

@@ -1,28 +0,0 @@
-import getAllKeysIn from './_getAllKeysIn';
-
-/**
- * The base implementation of  `_.pickBy` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The source object.
- * @param {Function} predicate The function invoked per property.
- * @returns {Object} Returns the new object.
- */
-function basePickBy(object, predicate) {
-  var index = -1,
-      props = getAllKeysIn(object),
-      length = props.length,
-      result = {};
-
-  while (++index < length) {
-    var key = props[index],
-        value = object[key];
-
-    if (predicate(value, key)) {
-      result[key] = value;
-    }
-  }
-  return result;
-}
-
-export default basePickBy;

+ 0 - 14
packages/ckeditor5-utils/src/lib/lodash/_baseProperty.js

@@ -1,14 +0,0 @@
-/**
- * The base implementation of `_.property` without support for deep paths.
- *
- * @private
- * @param {string} key The key of the property to get.
- * @returns {Function} Returns the new accessor function.
- */
-function baseProperty(key) {
-  return function(object) {
-    return object == null ? undefined : object[key];
-  };
-}
-
-export default baseProperty;

+ 0 - 16
packages/ckeditor5-utils/src/lib/lodash/_basePropertyDeep.js

@@ -1,16 +0,0 @@
-import baseGet from './_baseGet';
-
-/**
- * A specialized version of `baseProperty` which supports deep paths.
- *
- * @private
- * @param {Array|string} path The path of the property to get.
- * @returns {Function} Returns the new accessor function.
- */
-function basePropertyDeep(path) {
-  return function(object) {
-    return baseGet(object, path);
-  };
-}
-
-export default basePropertyDeep;

+ 0 - 47
packages/ckeditor5-utils/src/lib/lodash/_basePullAll.js

@@ -1,47 +0,0 @@
-import arrayMap from './_arrayMap';
-import baseIndexOf from './_baseIndexOf';
-import baseIndexOfWith from './_baseIndexOfWith';
-import baseUnary from './_baseUnary';
-
-/** Used for built-in method references. */
-var arrayProto = Array.prototype;
-
-/** Built-in value references. */
-var splice = arrayProto.splice;
-
-/**
- * The base implementation of `_.pullAllBy` without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {Array} values The values to remove.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns `array`.
- */
-function basePullAll(array, values, iteratee, comparator) {
-  var indexOf = comparator ? baseIndexOfWith : baseIndexOf,
-      index = -1,
-      length = values.length,
-      seen = array;
-
-  if (iteratee) {
-    seen = arrayMap(array, baseUnary(iteratee));
-  }
-  while (++index < length) {
-    var fromIndex = 0,
-        value = values[index],
-        computed = iteratee ? iteratee(value) : value;
-
-    while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {
-      if (seen !== array) {
-        splice.call(seen, fromIndex, 1);
-      }
-      splice.call(array, fromIndex, 1);
-    }
-  }
-  return array;
-}
-
-export default basePullAll;

+ 0 - 50
packages/ckeditor5-utils/src/lib/lodash/_basePullAt.js

@@ -1,50 +0,0 @@
-import castPath from './_castPath';
-import isIndex from './_isIndex';
-import isKey from './_isKey';
-import last from './last';
-import parent from './_parent';
-import toKey from './_toKey';
-
-/** Used for built-in method references. */
-var arrayProto = Array.prototype;
-
-/** Built-in value references. */
-var splice = arrayProto.splice;
-
-/**
- * The base implementation of `_.pullAt` without support for individual
- * indexes or capturing the removed elements.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {number[]} indexes The indexes of elements to remove.
- * @returns {Array} Returns `array`.
- */
-function basePullAt(array, indexes) {
-  var length = array ? indexes.length : 0,
-      lastIndex = length - 1;
-
-  while (length--) {
-    var index = indexes[length];
-    if (length == lastIndex || index !== previous) {
-      var previous = index;
-      if (isIndex(index)) {
-        splice.call(array, index, 1);
-      }
-      else if (!isKey(index, array)) {
-        var path = castPath(index),
-            object = parent(array, path);
-
-        if (object != null) {
-          delete object[toKey(last(path))];
-        }
-      }
-      else {
-        delete array[toKey(index)];
-      }
-    }
-  }
-  return array;
-}
-
-export default basePullAt;

+ 0 - 18
packages/ckeditor5-utils/src/lib/lodash/_baseRandom.js

@@ -1,18 +0,0 @@
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeFloor = Math.floor,
-    nativeRandom = Math.random;
-
-/**
- * The base implementation of `_.random` without support for returning
- * floating-point numbers.
- *
- * @private
- * @param {number} lower The lower bound.
- * @param {number} upper The upper bound.
- * @returns {number} Returns the random number.
- */
-function baseRandom(lower, upper) {
-  return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
-}
-
-export default baseRandom;

+ 0 - 28
packages/ckeditor5-utils/src/lib/lodash/_baseRange.js

@@ -1,28 +0,0 @@
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeCeil = Math.ceil,
-    nativeMax = Math.max;
-
-/**
- * The base implementation of `_.range` and `_.rangeRight` which doesn't
- * coerce arguments to numbers.
- *
- * @private
- * @param {number} start The start of the range.
- * @param {number} end The end of the range.
- * @param {number} step The value to increment or decrement by.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Array} Returns the range of numbers.
- */
-function baseRange(start, end, step, fromRight) {
-  var index = -1,
-      length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
-      result = Array(length);
-
-  while (length--) {
-    result[fromRight ? length : ++index] = start;
-    start += step;
-  }
-  return result;
-}
-
-export default baseRange;

+ 0 - 23
packages/ckeditor5-utils/src/lib/lodash/_baseReduce.js

@@ -1,23 +0,0 @@
-/**
- * The base implementation of `_.reduce` and `_.reduceRight`, without support
- * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {*} accumulator The initial value.
- * @param {boolean} initAccum Specify using the first or last element of
- *  `collection` as the initial value.
- * @param {Function} eachFunc The function to iterate over `collection`.
- * @returns {*} Returns the accumulated value.
- */
-function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
-  eachFunc(collection, function(value, index, collection) {
-    accumulator = initAccum
-      ? (initAccum = false, value)
-      : iteratee(accumulator, value, index, collection);
-  });
-  return accumulator;
-}
-
-export default baseReduce;

+ 0 - 35
packages/ckeditor5-utils/src/lib/lodash/_baseRepeat.js

@@ -1,35 +0,0 @@
-/** Used as references for various `Number` constants. */
-var MAX_SAFE_INTEGER = 9007199254740991;
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeFloor = Math.floor;
-
-/**
- * The base implementation of `_.repeat` which doesn't coerce arguments.
- *
- * @private
- * @param {string} string The string to repeat.
- * @param {number} n The number of times to repeat the string.
- * @returns {string} Returns the repeated string.
- */
-function baseRepeat(string, n) {
-  var result = '';
-  if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
-    return result;
-  }
-  // Leverage the exponentiation by squaring algorithm for a faster repeat.
-  // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
-  do {
-    if (n % 2) {
-      result += string;
-    }
-    n = nativeFloor(n / 2);
-    if (n) {
-      string += string;
-    }
-  } while (n);
-
-  return result;
-}
-
-export default baseRepeat;

Некоторые файлы не были показаны из-за большого количества измененных файлов