@moda/om 19.4.1 → 19.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -323,6 +323,7 @@ colors.colors = {
323
323
  "teal": "rgb(0, 111, 98)",
324
324
  "ivory": "rgb(242, 233, 219)",
325
325
  "klein-blue": "rgb(38, 48, 120)",
326
+ "persian-blue": "rgb(30, 34, 170)",
326
327
  "brick": "rgb(147, 58, 32)",
327
328
  "goldenrod": "rgb(186, 145, 46)",
328
329
  "seafoam": "rgb(177, 191, 170)",
@@ -348,6 +349,7 @@ colors.colors = {
348
349
  },
349
350
  "global": {
350
351
  "klein-blue": "rgb(38, 48, 120)",
352
+ "persian-blue": "rgb(30, 34, 170)",
351
353
  "brick": "rgb(147, 58, 32)",
352
354
  "goldenrod": "rgb(186, 145, 46)",
353
355
  "seafoam": "rgb(177, 191, 170)",
@@ -1104,12 +1106,11 @@ function _objectDestructuringEmpty(obj) {
1104
1106
  function _objectWithoutPropertiesLoose(source, excluded) {
1105
1107
  if (source == null) return {};
1106
1108
  var target = {};
1107
- var sourceKeys = Object.keys(source);
1108
- var key, i;
1109
- for (i = 0; i < sourceKeys.length; i++) {
1110
- key = sourceKeys[i];
1111
- if (excluded.indexOf(key) >= 0) continue;
1112
- target[key] = source[key];
1109
+ for (var key in source) {
1110
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
1111
+ if (excluded.indexOf(key) >= 0) continue;
1112
+ target[key] = source[key];
1113
+ }
1113
1114
  }
1114
1115
  return target;
1115
1116
  }
@@ -1165,7 +1166,7 @@ function _nonIterableRest() {
1165
1166
  function _createForOfIteratorHelper(o, allowArrayLike) {
1166
1167
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
1167
1168
  if (!it) {
1168
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
1169
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike ) {
1169
1170
  if (it) o = it;
1170
1171
  var i = 0;
1171
1172
  var F = function () {};
@@ -1524,6 +1525,7 @@ function useCallbackRef(initialValue, callback) {
1524
1525
  return ref.facade;
1525
1526
  }
1526
1527
 
1528
+ var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
1527
1529
  var currentValues = new WeakMap();
1528
1530
  /**
1529
1531
  * Merges two or more refs together providing a single interface to set their value
@@ -1540,13 +1542,13 @@ var currentValues = new WeakMap();
1540
1542
  * }
1541
1543
  */
1542
1544
  function useMergeRefs(refs, defaultValue) {
1543
- var callbackRef = useCallbackRef(defaultValue || null, function (newValue) {
1545
+ var callbackRef = useCallbackRef(null, function (newValue) {
1544
1546
  return refs.forEach(function (ref) {
1545
1547
  return assignRef(ref, newValue);
1546
1548
  });
1547
1549
  });
1548
1550
  // handle refs changes - added or removed
1549
- React.useLayoutEffect(function () {
1551
+ useIsomorphicLayoutEffect(function () {
1550
1552
  var oldValue = currentValues.get(callbackRef);
1551
1553
  if (oldValue) {
1552
1554
  var prevRefs_1 = new Set(oldValue);
@@ -3105,7 +3107,6 @@ FocusLock.propTypes = process.env.NODE_ENV !== "production" ? {
3105
3107
  onDeactivation: propTypesExports.func,
3106
3108
  sideCar: propTypesExports.any.isRequired
3107
3109
  } : {};
3108
- var FocusLockUI = FocusLock;
3109
3110
 
3110
3111
  function deferAction(action) {
3111
3112
  setTimeout(action, 1);
@@ -3160,7 +3161,7 @@ var FocusOn$1 = /*#__PURE__*/React.forwardRef(function (props, parentRef) {
3160
3161
  inert: inert,
3161
3162
  enabled: enabled && scrollLock
3162
3163
  });
3163
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FocusLockUI, {
3164
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FocusLock, {
3164
3165
  ref: parentRef,
3165
3166
  sideCar: sideCar,
3166
3167
  disabled: !(lockProps && enabled && focusLock),
@@ -4047,6 +4048,13 @@ var moveFocusInside = function moveFocusInside(topNode, lastNode, options) {
4047
4048
 
4048
4049
  function weakRef(value) {
4049
4050
  if (!value) return null;
4051
+ // #68 Safari 14.1 dont have it yet
4052
+ // FIXME: remove in 2025
4053
+ if (typeof WeakRef === 'undefined') {
4054
+ return function () {
4055
+ return value || null;
4056
+ };
4057
+ }
4050
4058
  var w = value ? new WeakRef(value) : null;
4051
4059
  return function () {
4052
4060
  return (w === null || w === void 0 ? void 0 : w.deref()) || null;
@@ -4762,9 +4770,9 @@ var handleScroll = function handleScroll(axis, endTarget, event, sourceDelta, no
4762
4770
  // self content
4763
4771
  targetInLock && (endTarget.contains(target) || endTarget === target));
4764
4772
  // handle epsilon around 0 (non standard zoom levels)
4765
- if (isDeltaPositive && (noOverscroll && Math.abs(availableScroll) < 1 || !noOverscroll && delta > availableScroll)) {
4773
+ if (isDeltaPositive && (Math.abs(availableScroll) < 1 || !noOverscroll )) {
4766
4774
  shouldCancelScroll = true;
4767
- } else if (!isDeltaPositive && (noOverscroll && Math.abs(availableScrollTop) < 1 || !noOverscroll && -delta > availableScrollTop)) {
4775
+ } else if (!isDeltaPositive && (Math.abs(availableScrollTop) < 1 || !noOverscroll )) {
4768
4776
  shouldCancelScroll = true;
4769
4777
  }
4770
4778
  return shouldCancelScroll;
@@ -5065,9 +5073,6 @@ var applyAttributeToOthers = function applyAttributeToOthers(originalTarget, par
5065
5073
  * @return {Undo} undo command
5066
5074
  */
5067
5075
  var hideOthers = function hideOthers(originalTarget, parentNode, markerName) {
5068
- if (markerName === void 0) {
5069
- markerName = 'data-aria-hidden';
5070
- }
5071
5076
  var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
5072
5077
  var activeParentNode = parentNode || getDefaultParent(originalTarget);
5073
5078
  if (!activeParentNode) {
@@ -5494,10 +5499,13 @@ var Breadcrumb = function Breadcrumb(_ref) {
5494
5499
  var T = function T() {
5495
5500
  return true;
5496
5501
  };
5497
- var otherwise = T;
5502
+
5503
+ var _placeholder = {
5504
+ '@@functional/placeholder': true
5505
+ };
5498
5506
 
5499
5507
  function _isPlaceholder(a) {
5500
- return a != null && _typeof$1(a) === 'object' && a['@@functional/placeholder'] === true;
5508
+ return a === _placeholder;
5501
5509
  }
5502
5510
 
5503
5511
  /**
@@ -5508,7 +5516,6 @@ function _isPlaceholder(a) {
5508
5516
  * @param {Function} fn The function to curry.
5509
5517
  * @return {Function} The curried function.
5510
5518
  */
5511
-
5512
5519
  function _curry1(fn) {
5513
5520
  return function f1(a) {
5514
5521
  if (arguments.length === 0 || _isPlaceholder(a)) {
@@ -5527,7 +5534,6 @@ function _curry1(fn) {
5527
5534
  * @param {Function} fn The function to curry.
5528
5535
  * @return {Function} The curried function.
5529
5536
  */
5530
-
5531
5537
  function _curry2(fn) {
5532
5538
  return function f2(a, b) {
5533
5539
  switch (arguments.length) {
@@ -5609,7 +5615,6 @@ function _arity(n, fn) {
5609
5615
  * @param {Function} fn The function to curry.
5610
5616
  * @return {Function} The curried function.
5611
5617
  */
5612
-
5613
5618
  function _curryN(length, received, fn) {
5614
5619
  return function () {
5615
5620
  var combined = [];
@@ -5679,9 +5684,7 @@ function _curryN(length, received, fn) {
5679
5684
  * const g = f(3);
5680
5685
  * g(4); //=> 10
5681
5686
  */
5682
-
5683
- var curryN = /*#__PURE__*/
5684
- _curry2(function curryN(length, fn) {
5687
+ var curryN = /*#__PURE__*/_curry2(function curryN(length, fn) {
5685
5688
  if (length === 1) {
5686
5689
  return _curry1(fn);
5687
5690
  }
@@ -5696,7 +5699,6 @@ _curry2(function curryN(length, fn) {
5696
5699
  * @param {Function} fn The function to curry.
5697
5700
  * @return {Function} The curried function.
5698
5701
  */
5699
-
5700
5702
  function _curry3(fn) {
5701
5703
  return function f3(a, b, c) {
5702
5704
  switch (arguments.length) {
@@ -5767,7 +5769,6 @@ function _isTransformer(obj) {
5767
5769
  * @param {Function} fn default ramda implementation
5768
5770
  * @return {Function} A function that dispatches on object in list position
5769
5771
  */
5770
-
5771
5772
  function _dispatchable(methodNames, transducerCreator, fn) {
5772
5773
  return function () {
5773
5774
  if (arguments.length === 0) {
@@ -5846,8 +5847,7 @@ function _objectIs(a, b) {
5846
5847
  var _objectIs$1 = typeof Object.is === 'function' ? Object.is : _objectIs;
5847
5848
 
5848
5849
  var toString$1 = Object.prototype.toString;
5849
- var _isArguments = /*#__PURE__*/
5850
- function () {
5850
+ var _isArguments = /*#__PURE__*/function () {
5851
5851
  return toString$1.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
5852
5852
  return toString$1.call(x) === '[object Arguments]';
5853
5853
  } : function _isArguments(x) {
@@ -5855,14 +5855,13 @@ function () {
5855
5855
  };
5856
5856
  }();
5857
5857
 
5858
- var hasEnumBug = ! /*#__PURE__*/
5859
- {
5858
+ // cover IE < 9 keys issues
5859
+ var hasEnumBug = ! /*#__PURE__*/{
5860
5860
  toString: null
5861
5861
  }.propertyIsEnumerable('toString');
5862
- var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString']; // Safari bug
5863
-
5864
- var hasArgsEnumBug = /*#__PURE__*/
5865
- function () {
5862
+ var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];
5863
+ // Safari bug
5864
+ var hasArgsEnumBug = /*#__PURE__*/function () {
5866
5865
 
5867
5866
  return arguments.propertyIsEnumerable('length');
5868
5867
  }();
@@ -5876,6 +5875,7 @@ var contains = function contains(list, item) {
5876
5875
  }
5877
5876
  return false;
5878
5877
  };
5878
+
5879
5879
  /**
5880
5880
  * Returns a list containing the names of all the enumerable own properties of
5881
5881
  * the supplied object.
@@ -5894,12 +5894,9 @@ var contains = function contains(list, item) {
5894
5894
  *
5895
5895
  * R.keys({a: 1, b: 2, c: 3}); //=> ['a', 'b', 'c']
5896
5896
  */
5897
-
5898
- var keys = typeof Object.keys === 'function' && !hasArgsEnumBug ? /*#__PURE__*/
5899
- _curry1(function keys(obj) {
5897
+ var keys = typeof Object.keys === 'function' && !hasArgsEnumBug ? /*#__PURE__*/_curry1(function keys(obj) {
5900
5898
  return Object(obj) !== obj ? [] : Object.keys(obj);
5901
- }) : /*#__PURE__*/
5902
- _curry1(function keys(obj) {
5899
+ }) : /*#__PURE__*/_curry1(function keys(obj) {
5903
5900
  if (Object(obj) !== obj) {
5904
5901
  return [];
5905
5902
  }
@@ -5949,10 +5946,9 @@ _curry1(function keys(obj) {
5949
5946
  * R.type(() => {}); //=> "Function"
5950
5947
  * R.type(async () => {}); //=> "AsyncFunction"
5951
5948
  * R.type(undefined); //=> "Undefined"
5949
+ * R.type(BigInt(123)); //=> "BigInt"
5952
5950
  */
5953
-
5954
- var type = /*#__PURE__*/
5955
- _curry1(function type(val) {
5951
+ var type = /*#__PURE__*/_curry1(function type(val) {
5956
5952
  return val === null ? 'Null' : val === undefined ? 'Undefined' : Object.prototype.toString.call(val).slice(8, -1);
5957
5953
  });
5958
5954
 
@@ -5972,8 +5968,9 @@ function _uniqContentEquals(aIterator, bIterator, stackA, stackB) {
5972
5968
  var b = _arrayFromIterator(bIterator);
5973
5969
  function eq(_a, _b) {
5974
5970
  return _equals(_a, _b, stackA.slice(), stackB.slice());
5975
- } // if *a* array contains any element that is not included in *b*
5971
+ }
5976
5972
 
5973
+ // if *a* array contains any element that is not included in *b*
5977
5974
  return !_includesWith(function (b, aItem) {
5978
5975
  return !_includesWith(eq, aItem, b);
5979
5976
  }, b, a);
@@ -6104,15 +6101,13 @@ function _equals(a, b, stackA, stackB) {
6104
6101
  * const b = {}; b.v = b;
6105
6102
  * R.equals(a, b); //=> true
6106
6103
  */
6107
-
6108
- var equals = /*#__PURE__*/
6109
- _curry2(function equals(a, b) {
6104
+ var equals = /*#__PURE__*/_curry2(function equals(a, b) {
6110
6105
  return _equals(a, b, [], []);
6111
6106
  });
6112
6107
 
6113
6108
  function _indexOf(list, a, idx) {
6114
- var inf, item; // Array.prototype.indexOf doesn't exist below IE9
6115
-
6109
+ var inf, item;
6110
+ // Array.prototype.indexOf doesn't exist below IE9
6116
6111
  if (typeof list.indexOf === 'function') {
6117
6112
  switch (_typeof$1(a)) {
6118
6113
  case 'number':
@@ -6137,11 +6132,11 @@ function _indexOf(list, a, idx) {
6137
6132
  idx += 1;
6138
6133
  }
6139
6134
  return -1;
6140
- } // non-zero numbers can utilise Set
6141
-
6135
+ }
6136
+ // non-zero numbers can utilise Set
6142
6137
  return list.indexOf(a, idx);
6143
- // all these types can utilise Set
6144
6138
 
6139
+ // all these types can utilise Set
6145
6140
  case 'string':
6146
6141
  case 'boolean':
6147
6142
  case 'function':
@@ -6153,8 +6148,8 @@ function _indexOf(list, a, idx) {
6153
6148
  return list.indexOf(a, idx);
6154
6149
  }
6155
6150
  }
6156
- } // anything else not covered above, defer to R.equals
6157
-
6151
+ }
6152
+ // anything else not covered above, defer to R.equals
6158
6153
  while (idx < list.length) {
6159
6154
  if (equals(list[idx], a)) {
6160
6155
  return idx;
@@ -6230,8 +6225,7 @@ function _isObject(x) {
6230
6225
  return Object.prototype.toString.call(x) === '[object Object]';
6231
6226
  }
6232
6227
 
6233
- var XFilter = /*#__PURE__*/
6234
- function () {
6228
+ var XFilter = /*#__PURE__*/function () {
6235
6229
  function XFilter(f, xf) {
6236
6230
  this.xf = xf;
6237
6231
  this.f = f;
@@ -6277,10 +6271,7 @@ function _xfilter(f) {
6277
6271
  *
6278
6272
  * R.filter(isEven, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
6279
6273
  */
6280
-
6281
- var filter = /*#__PURE__*/
6282
- _curry2( /*#__PURE__*/
6283
- _dispatchable(['fantasy-land/filter', 'filter'], _xfilter, function (pred, filterable) {
6274
+ var filter = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['fantasy-land/filter', 'filter'], _xfilter, function (pred, filterable) {
6284
6275
  return _isObject(filterable) ? _arrayReduce(function (acc, key) {
6285
6276
  if (pred(filterable[key])) {
6286
6277
  acc[key] = filterable[key];
@@ -6315,19 +6306,17 @@ _dispatchable(['fantasy-land/filter', 'filter'], _xfilter, function (pred, filte
6315
6306
  *
6316
6307
  * R.reject(isOdd, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
6317
6308
  */
6318
-
6319
- var reject = /*#__PURE__*/
6320
- _curry2(function reject(pred, filterable) {
6309
+ var reject = /*#__PURE__*/_curry2(function reject(pred, filterable) {
6321
6310
  return filter(_complement(pred), filterable);
6322
6311
  });
6323
- var reject$1 = reject;
6324
6312
 
6325
6313
  function _toString(x, seen) {
6326
6314
  var recur = function recur(y) {
6327
6315
  var xs = seen.concat([x]);
6328
6316
  return _includes(y, xs) ? '<Circular>' : _toString(y, xs);
6329
- }; // mapPairs :: (Object, [String]) -> [String]
6317
+ };
6330
6318
 
6319
+ // mapPairs :: (Object, [String]) -> [String]
6331
6320
  var mapPairs = function mapPairs(obj, keys) {
6332
6321
  return _map(function (k) {
6333
6322
  return _quote(k) + ': ' + recur(obj[k]);
@@ -6337,7 +6326,7 @@ function _toString(x, seen) {
6337
6326
  case '[object Arguments]':
6338
6327
  return '(function() { return arguments; }(' + _map(recur, x).join(', ') + '))';
6339
6328
  case '[object Array]':
6340
- return '[' + _map(recur, x).concat(mapPairs(x, reject$1(function (k) {
6329
+ return '[' + _map(recur, x).concat(mapPairs(x, reject(function (k) {
6341
6330
  return /^\d+$/.test(k);
6342
6331
  }, keys(x)))).join(', ') + ']';
6343
6332
  case '[object Boolean]':
@@ -6403,9 +6392,7 @@ function _toString(x, seen) {
6403
6392
  * R.toString({foo: 1, bar: 2, baz: 3}); //=> '{"bar": 2, "baz": 3, "foo": 1}'
6404
6393
  * R.toString(new Date('2001-02-03T04:05:06Z')); //=> 'new Date("2001-02-03T04:05:06.000Z")'
6405
6394
  */
6406
-
6407
- var toString = /*#__PURE__*/
6408
- _curry1(function toString(val) {
6395
+ var toString = /*#__PURE__*/_curry1(function toString(val) {
6409
6396
  return _toString(val, []);
6410
6397
  });
6411
6398
 
@@ -6426,9 +6413,7 @@ _curry1(function toString(val) {
6426
6413
  * R.max(789, 123); //=> 789
6427
6414
  * R.max('a', 'b'); //=> 'b'
6428
6415
  */
6429
-
6430
- var max = /*#__PURE__*/
6431
- _curry2(function max(a, b) {
6416
+ var max = /*#__PURE__*/_curry2(function max(a, b) {
6432
6417
  if (a === b) {
6433
6418
  return b;
6434
6419
  }
@@ -6453,10 +6438,8 @@ _curry2(function max(a, b) {
6453
6438
  }
6454
6439
  return b;
6455
6440
  });
6456
- var max$1 = max;
6457
6441
 
6458
- var XMap = /*#__PURE__*/
6459
- function () {
6442
+ var XMap = /*#__PURE__*/function () {
6460
6443
  function XMap(f, xf) {
6461
6444
  this.xf = xf;
6462
6445
  this.f = f;
@@ -6473,7 +6456,6 @@ var _xmap = function _xmap(f) {
6473
6456
  return new XMap(f, xf);
6474
6457
  };
6475
6458
  };
6476
- var _xmap$1 = _xmap;
6477
6459
 
6478
6460
  /**
6479
6461
  * Takes a function and
@@ -6510,10 +6492,7 @@ var _xmap$1 = _xmap;
6510
6492
  * @symb R.map(f, { x: a, y: b }) = { x: f(a), y: f(b) }
6511
6493
  * @symb R.map(f, functor_o) = functor_o.map(f)
6512
6494
  */
6513
-
6514
- var map = /*#__PURE__*/
6515
- _curry2( /*#__PURE__*/
6516
- _dispatchable(['fantasy-land/map', 'map'], _xmap$1, function map(fn, functor) {
6495
+ var map = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['fantasy-land/map', 'map'], _xmap, function map(fn, functor) {
6517
6496
  switch (Object.prototype.toString.call(functor)) {
6518
6497
  case '[object Function]':
6519
6498
  return curryN(functor.length, function () {
@@ -6551,9 +6530,7 @@ function _isString(x) {
6551
6530
  * _isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true
6552
6531
  * _isArrayLike({nodeType: 1, length: 1}) // => false
6553
6532
  */
6554
-
6555
- var _isArrayLike = /*#__PURE__*/
6556
- _curry1(function isArrayLike(x) {
6533
+ var _isArrayLike = /*#__PURE__*/_curry1(function isArrayLike(x) {
6557
6534
  if (_isArray(x)) {
6558
6535
  return true;
6559
6536
  }
@@ -6636,9 +6613,7 @@ function _xArrayReduce(xf, acc, list) {
6636
6613
  * // logs {a: 2}
6637
6614
  * @symb R.bind(f, o)(a, b) = f.call(o, a, b)
6638
6615
  */
6639
-
6640
- var bind = /*#__PURE__*/
6641
- _curry2(function bind(fn, thisObj) {
6616
+ var bind = /*#__PURE__*/_curry2(function bind(fn, thisObj) {
6642
6617
  return _arity(fn.length, function () {
6643
6618
  return fn.apply(thisObj, arguments);
6644
6619
  });
@@ -6659,11 +6634,9 @@ function _xIterableReduce(xf, acc, iter) {
6659
6634
  function _xMethodReduce(xf, acc, obj, methodName) {
6660
6635
  return xf['@@transducer/result'](obj[methodName](bind(xf['@@transducer/step'], xf), acc));
6661
6636
  }
6662
- var _xReduce = /*#__PURE__*/
6663
- _createReduce(_xArrayReduce, _xMethodReduce, _xIterableReduce);
6637
+ var _xReduce = /*#__PURE__*/_createReduce(_xArrayReduce, _xMethodReduce, _xIterableReduce);
6664
6638
 
6665
- var XWrap = /*#__PURE__*/
6666
- function () {
6639
+ var XWrap = /*#__PURE__*/function () {
6667
6640
  function XWrap(fn) {
6668
6641
  this.f = fn;
6669
6642
  }
@@ -6734,12 +6707,9 @@ function _xwrap(fn) {
6734
6707
  *
6735
6708
  * @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)
6736
6709
  */
6737
-
6738
- var reduce = /*#__PURE__*/
6739
- _curry3(function (xf, acc, list) {
6710
+ var reduce = /*#__PURE__*/_curry3(function (xf, acc, list) {
6740
6711
  return _xReduce(typeof xf === 'function' ? _xwrap(xf) : xf, acc, list);
6741
6712
  });
6742
- var reduce$1 = reduce;
6743
6713
 
6744
6714
  function _identity(x) {
6745
6715
  return x;
@@ -6764,10 +6734,7 @@ function _identity(x) {
6764
6734
  * R.identity(obj) === obj; //=> true
6765
6735
  * @symb R.identity(a) = a
6766
6736
  */
6767
-
6768
- var identity = /*#__PURE__*/
6769
- _curry1(_identity);
6770
- var identity$1 = identity;
6737
+ var identity = /*#__PURE__*/_curry1(_identity);
6771
6738
 
6772
6739
  /**
6773
6740
  * Returns a function, `fn`, which encapsulates `if/else, if/else, ...` logic.
@@ -6800,10 +6767,8 @@ var identity$1 = identity;
6800
6767
  * fn(50); //=> 'nothing special happens at 50°C'
6801
6768
  * fn(100); //=> 'water boils at 100°C'
6802
6769
  */
6803
-
6804
- var cond = /*#__PURE__*/
6805
- _curry1(function cond(pairs) {
6806
- var arity = reduce$1(max$1, 0, map(function (pair) {
6770
+ var cond = /*#__PURE__*/_curry1(function cond(pairs) {
6771
+ var arity = reduce(max, 0, map(function (pair) {
6807
6772
  return pair[0].length;
6808
6773
  }, pairs));
6809
6774
  return _arity(arity, function () {
@@ -6817,28 +6782,29 @@ _curry1(function cond(pairs) {
6817
6782
  });
6818
6783
  });
6819
6784
 
6820
- var _Set = /*#__PURE__*/
6821
- function () {
6785
+ var _Set = /*#__PURE__*/function () {
6822
6786
  function _Set() {
6823
6787
  /* globals Set */
6824
6788
  this._nativeSet = typeof Set === 'function' ? new Set() : null;
6825
6789
  this._items = {};
6826
6790
  }
6827
-
6828
6791
  // until we figure out why jsdoc chokes on this
6829
6792
  // @param item The item to add to the Set
6830
6793
  // @returns {boolean} true if the item did not exist prior, otherwise false
6831
6794
  //
6832
6795
  _Set.prototype.add = function (item) {
6833
6796
  return !hasOrAdd(item, true, this);
6834
- }; //
6797
+ };
6798
+
6799
+ //
6835
6800
  // @param item The item to check for existence in the Set
6836
6801
  // @returns {boolean} true if the item exists in the Set, otherwise false
6837
6802
  //
6838
-
6839
6803
  _Set.prototype.has = function (item) {
6840
6804
  return hasOrAdd(item, false, this);
6841
- }; //
6805
+ };
6806
+
6807
+ //
6842
6808
  // Combines the logic for checking whether an item is a member of the set and
6843
6809
  // for adding a new item to the set.
6844
6810
  //
@@ -6848,7 +6814,6 @@ function () {
6848
6814
  // @param set The set instance to check or add to.
6849
6815
  // @return {boolean} true if the item already existed, otherwise false.
6850
6816
  //
6851
-
6852
6817
  return _Set;
6853
6818
  }();
6854
6819
  function hasOrAdd(item, shouldAdd, set) {
@@ -6867,8 +6832,8 @@ function hasOrAdd(item, shouldAdd, set) {
6867
6832
  }
6868
6833
  return false;
6869
6834
  }
6870
- } // these types can all utilise the native Set
6871
-
6835
+ }
6836
+ // these types can all utilise the native Set
6872
6837
  if (set._nativeSet !== null) {
6873
6838
  if (shouldAdd) {
6874
6839
  prevSize = set._nativeSet.size;
@@ -6958,9 +6923,7 @@ function hasOrAdd(item, shouldAdd, set) {
6958
6923
  }
6959
6924
  return true;
6960
6925
  }
6961
-
6962
6926
  /* falls through */
6963
-
6964
6927
  default:
6965
6928
  // reduce the search size of heterogeneous sets by creating buckets
6966
6929
  // for each type.
@@ -6970,8 +6933,8 @@ function hasOrAdd(item, shouldAdd, set) {
6970
6933
  set._items[type] = [item];
6971
6934
  }
6972
6935
  return false;
6973
- } // scan through all previously applied items
6974
-
6936
+ }
6937
+ // scan through all previously applied items
6975
6938
  if (!_includes(item, set._items[type])) {
6976
6939
  if (shouldAdd) {
6977
6940
  set._items[type].push(item);
@@ -6980,10 +6943,9 @@ function hasOrAdd(item, shouldAdd, set) {
6980
6943
  }
6981
6944
  return true;
6982
6945
  }
6983
- } // A simple Set type that honours R.equals semantics
6946
+ }
6984
6947
 
6985
- var XUniqBy = /*#__PURE__*/
6986
- function () {
6948
+ var XUniqBy = /*#__PURE__*/function () {
6987
6949
  function XUniqBy(f, xf) {
6988
6950
  this.xf = xf;
6989
6951
  this.f = f;
@@ -7022,10 +6984,7 @@ function _xuniqBy(f) {
7022
6984
  *
7023
6985
  * R.uniqBy(Math.abs, [-1, -5, 2, 10, 1, 2]); //=> [-1, -5, 2, 10]
7024
6986
  */
7025
-
7026
- var uniqBy = /*#__PURE__*/
7027
- _curry2( /*#__PURE__*/
7028
- _dispatchable([], _xuniqBy, function (fn, list) {
6987
+ var uniqBy = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable([], _xuniqBy, function (fn, list) {
7029
6988
  var set = new _Set();
7030
6989
  var result = [];
7031
6990
  var idx = 0;
@@ -7058,9 +7017,7 @@ _dispatchable([], _xuniqBy, function (fn, list) {
7058
7017
  * R.uniq([1, '1']); //=> [1, '1']
7059
7018
  * R.uniq([[42], [42]]); //=> [[42]]
7060
7019
  */
7061
-
7062
- var uniq = /*#__PURE__*/
7063
- uniqBy(identity$1);
7020
+ var uniq = /*#__PURE__*/uniqBy(identity);
7064
7021
 
7065
7022
  function _isNumber(x) {
7066
7023
  return Object.prototype.toString.call(x) === '[object Number]';
@@ -7082,9 +7039,7 @@ function _isNumber(x) {
7082
7039
  *
7083
7040
  * R.omit(['a', 'd'], {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, c: 3}
7084
7041
  */
7085
-
7086
- var omit = /*#__PURE__*/
7087
- _curry2(function omit(names, obj) {
7042
+ var omit = /*#__PURE__*/_curry2(function omit(names, obj) {
7088
7043
  var result = {};
7089
7044
  var index = {};
7090
7045
  var idx = 0;
@@ -7117,17 +7072,16 @@ _curry2(function omit(names, obj) {
7117
7072
  * R.range(1, 5); //=> [1, 2, 3, 4]
7118
7073
  * R.range(50, 53); //=> [50, 51, 52]
7119
7074
  */
7120
-
7121
- var range = /*#__PURE__*/
7122
- _curry2(function range(from, to) {
7075
+ var range = /*#__PURE__*/_curry2(function range(from, to) {
7123
7076
  if (!(_isNumber(from) && _isNumber(to))) {
7124
7077
  throw new TypeError('Both arguments to range must be numbers');
7125
7078
  }
7126
- var result = [];
7127
- var n = from;
7128
- while (n < to) {
7129
- result.push(n);
7130
- n += 1;
7079
+ var result = Array(from < to ? to - from : 0);
7080
+ var finish = from < 0 ? to + Math.abs(from) : to - from;
7081
+ var idx = 0;
7082
+ while (idx < finish) {
7083
+ result[idx] = idx + from;
7084
+ idx += 1;
7131
7085
  }
7132
7086
  return result;
7133
7087
  });
@@ -11626,7 +11580,7 @@ var showAGroupOfPagesCenteredOnTheCurrentPage = function showAGroupOfPagesCenter
11626
11580
  var diff = Math.floor((maxPages - 2) / 2);
11627
11581
  return [1].concat(_toConsumableArray(range(page - diff, page + diff + 1)), [totalPages]);
11628
11582
  };
11629
- var determinePagesToShow = cond([[whenThereAreFewerPagesThanWeDisplay, showAllPages], [whenCurrentPageIsLessThanHalfTheTotal, showFirstNPagesAndLastPage], [whenCurrentPageIsGreaterThanHalfTheTotal, showTheLastNPages], [otherwise, showAGroupOfPagesCenteredOnTheCurrentPage]]);
11583
+ var determinePagesToShow = cond([[whenThereAreFewerPagesThanWeDisplay, showAllPages], [whenCurrentPageIsLessThanHalfTheTotal, showFirstNPagesAndLastPage], [whenCurrentPageIsGreaterThanHalfTheTotal, showTheLastNPages], [T, showAGroupOfPagesCenteredOnTheCurrentPage]]);
11630
11584
  var Paginator = function Paginator(_ref) {
11631
11585
  var selectedPage = _ref.selectedPage,
11632
11586
  totalPages = _ref.totalPages,