@moda/om 18.3.0 → 18.3.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.cjs.js CHANGED
@@ -516,11 +516,7 @@ breakpoints.breakpoints = {
516
516
 
517
517
  var helpers = {};
518
518
 
519
- var colorStringExports = {};
520
- var colorString = {
521
- get exports(){ return colorStringExports; },
522
- set exports(v){ colorStringExports = v; },
523
- };
519
+ var colorString = {exports: {}};
524
520
 
525
521
  var colorName = {
526
522
  "aliceblue": [240, 248, 255],
@@ -673,11 +669,7 @@ var colorName = {
673
669
  "yellowgreen": [154, 205, 50]
674
670
  };
675
671
 
676
- var simpleSwizzleExports = {};
677
- var simpleSwizzle = {
678
- get exports(){ return simpleSwizzleExports; },
679
- set exports(v){ simpleSwizzleExports = v; },
680
- };
672
+ var simpleSwizzle = {exports: {}};
681
673
 
682
674
  var isArrayish$1 = function isArrayish(obj) {
683
675
  if (!obj || typeof obj === 'string') {
@@ -707,6 +699,7 @@ swizzle$1.wrap = function (fn) {
707
699
  return fn(swizzle$1(arguments));
708
700
  };
709
701
  };
702
+ var simpleSwizzleExports = simpleSwizzle.exports;
710
703
 
711
704
  /* MIT license */
712
705
  var colorNames = colorName;
@@ -898,6 +891,7 @@ function hexDouble(num) {
898
891
  var str = Math.round(num).toString(16).toUpperCase();
899
892
  return str.length < 2 ? '0' + str : str;
900
893
  }
894
+ var colorStringExports = colorString.exports;
901
895
 
902
896
  (function (exports) {
903
897
 
@@ -905,9 +899,7 @@ function hexDouble(num) {
905
899
  __assign = Object.assign || function (t) {
906
900
  for (var s, i = 1, n = arguments.length; i < n; i++) {
907
901
  s = arguments[i];
908
- for (var p in s) {
909
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
910
- }
902
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
911
903
  }
912
904
  return t;
913
905
  };
@@ -986,9 +978,7 @@ function hexDouble(num) {
986
978
  o[k2] = m[k];
987
979
  });
988
980
  var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function (m, exports) {
989
- for (var p in m) {
990
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
991
- }
981
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
992
982
  };
993
983
  Object.defineProperty(exports, "__esModule", {
994
984
  value: true
@@ -1073,17 +1063,17 @@ function _objectSpread2(target) {
1073
1063
  }
1074
1064
  return target;
1075
1065
  }
1076
- function _typeof(obj) {
1066
+ function _typeof$1(obj) {
1077
1067
  "@babel/helpers - typeof";
1078
1068
 
1079
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1069
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1080
1070
  return typeof obj;
1081
1071
  } : function (obj) {
1082
1072
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1083
- }, _typeof(obj);
1073
+ }, _typeof$1(obj);
1084
1074
  }
1085
1075
  function _defineProperty$1(obj, key, value) {
1086
- key = _toPropertyKey(key);
1076
+ key = _toPropertyKey$1(key);
1087
1077
  if (key in obj) {
1088
1078
  Object.defineProperty(obj, key, {
1089
1079
  value: value,
@@ -1174,7 +1164,58 @@ function _nonIterableSpread() {
1174
1164
  function _nonIterableRest() {
1175
1165
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1176
1166
  }
1177
- function _toPrimitive(input, hint) {
1167
+ function _createForOfIteratorHelper(o, allowArrayLike) {
1168
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
1169
+ if (!it) {
1170
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
1171
+ if (it) o = it;
1172
+ var i = 0;
1173
+ var F = function () {};
1174
+ return {
1175
+ s: F,
1176
+ n: function () {
1177
+ if (i >= o.length) return {
1178
+ done: true
1179
+ };
1180
+ return {
1181
+ done: false,
1182
+ value: o[i++]
1183
+ };
1184
+ },
1185
+ e: function (e) {
1186
+ throw e;
1187
+ },
1188
+ f: F
1189
+ };
1190
+ }
1191
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1192
+ }
1193
+ var normalCompletion = true,
1194
+ didErr = false,
1195
+ err;
1196
+ return {
1197
+ s: function () {
1198
+ it = it.call(o);
1199
+ },
1200
+ n: function () {
1201
+ var step = it.next();
1202
+ normalCompletion = step.done;
1203
+ return step;
1204
+ },
1205
+ e: function (e) {
1206
+ didErr = true;
1207
+ err = e;
1208
+ },
1209
+ f: function () {
1210
+ try {
1211
+ if (!normalCompletion && it.return != null) it.return();
1212
+ } finally {
1213
+ if (didErr) throw err;
1214
+ }
1215
+ }
1216
+ };
1217
+ }
1218
+ function _toPrimitive$1(input, hint) {
1178
1219
  if (typeof input !== "object" || input === null) return input;
1179
1220
  var prim = input[Symbol.toPrimitive];
1180
1221
  if (prim !== undefined) {
@@ -1184,8 +1225,8 @@ function _toPrimitive(input, hint) {
1184
1225
  }
1185
1226
  return (hint === "string" ? String : Number)(input);
1186
1227
  }
1187
- function _toPropertyKey(arg) {
1188
- var key = _toPrimitive(arg, "string");
1228
+ function _toPropertyKey$1(arg) {
1229
+ var key = _toPrimitive$1(arg, "string");
1189
1230
  return typeof key === "symbol" ? key : String(key);
1190
1231
  }
1191
1232
 
@@ -1193,11 +1234,7 @@ var isRenderProps = function isRenderProps(children) {
1193
1234
  return typeof children === 'function';
1194
1235
  };
1195
1236
 
1196
- var classnamesExports = {};
1197
- var classnames = {
1198
- get exports(){ return classnamesExports; },
1199
- set exports(v){ classnamesExports = v; },
1200
- };
1237
+ var classnames = {exports: {}};
1201
1238
 
1202
1239
  (function (module) {
1203
1240
  /* global define */
@@ -1210,7 +1247,7 @@ var classnames = {
1210
1247
  for (var i = 0; i < arguments.length; i++) {
1211
1248
  var arg = arguments[i];
1212
1249
  if (!arg) continue;
1213
- var argType = _typeof(arg);
1250
+ var argType = _typeof$1(arg);
1214
1251
  if (argType === 'string' || argType === 'number') {
1215
1252
  classes.push(arg);
1216
1253
  } else if (Array.isArray(arg)) {
@@ -1242,7 +1279,8 @@ var classnames = {
1242
1279
  }
1243
1280
  })();
1244
1281
  })(classnames);
1245
- var classNames = classnamesExports;
1282
+ var classnamesExports = classnames.exports;
1283
+ var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
1246
1284
 
1247
1285
  var _excluded$F = ["className", "children", "space", "direction", "alignItems", "justifyContent", "style"];
1248
1286
  var Stack = function Stack(_ref) {
@@ -1298,7 +1336,7 @@ var stringifyProps = function stringifyProps(props) {
1298
1336
  if (typeof value === 'function') return "".concat(memo, " ").concat(key, "={fn}");
1299
1337
  if (typeof value === 'boolean') return "".concat(memo, " ").concat(key).concat(value ? '' : '={false}');
1300
1338
  if (typeof value === 'number') return "".concat(memo, " ").concat(key, "={").concat(value, "}");
1301
- if (_typeof(value) === 'object') return "".concat(memo, " ").concat(key, "={...}");
1339
+ if (_typeof$1(value) === 'object') return "".concat(memo, " ").concat(key, "={...}");
1302
1340
  return "".concat(memo, " ").concat(key, "=").concat(value);
1303
1341
  }, '');
1304
1342
  return stringifiedProps.trim();
@@ -1306,9 +1344,7 @@ var stringifyProps = function stringifyProps(props) {
1306
1344
 
1307
1345
  /* eslint-disable @typescript-eslint/no-explicit-any */
1308
1346
 
1309
- /* eslint-enable @typescript-eslint/no-explicit-any */
1310
-
1311
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1347
+ /* eslint-enable @typescript-eslint/no-explicit-any */ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1312
1348
  var isEmpty = function isEmpty(obj) {
1313
1349
  return Object.entries(obj || {}).length === 0;
1314
1350
  };
@@ -1359,9 +1395,7 @@ var _assign = function __assign() {
1359
1395
  _assign = Object.assign || function __assign(t) {
1360
1396
  for (var s, i = 1, n = arguments.length; i < n; i++) {
1361
1397
  s = arguments[i];
1362
- for (var p in s) {
1363
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
1364
- }
1398
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
1365
1399
  }
1366
1400
  return t;
1367
1401
  };
@@ -1369,9 +1403,7 @@ var _assign = function __assign() {
1369
1403
  };
1370
1404
  function __rest$a(s, e) {
1371
1405
  var t = {};
1372
- for (var p in s) {
1373
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
1374
- }
1406
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
1375
1407
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1376
1408
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
1377
1409
  }
@@ -1380,14 +1412,8 @@ function __rest$a(s, e) {
1380
1412
 
1381
1413
  /** @deprecated */
1382
1414
  function __spreadArrays() {
1383
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) {
1384
- s += arguments[i].length;
1385
- }
1386
- for (var r = Array(s), k = 0, i = 0; i < il; i++) {
1387
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {
1388
- r[k] = a[j];
1389
- }
1390
- }
1415
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
1416
+ for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j];
1391
1417
  return r;
1392
1418
  }
1393
1419
  function __spreadArray(to, from, pack) {
@@ -1681,17 +1707,9 @@ function _extends() {
1681
1707
  return _extends.apply(this, arguments);
1682
1708
  }
1683
1709
 
1684
- var propTypesExports = {};
1685
- var propTypes = {
1686
- get exports(){ return propTypesExports; },
1687
- set exports(v){ propTypesExports = v; },
1688
- };
1710
+ var propTypes = {exports: {}};
1689
1711
 
1690
- var reactIsExports = {};
1691
- var reactIs = {
1692
- get exports(){ return reactIsExports; },
1693
- set exports(v){ reactIsExports = v; },
1694
- };
1712
+ var reactIs = {exports: {}};
1695
1713
 
1696
1714
  var reactIs_production_min = {};
1697
1715
 
@@ -1719,7 +1737,7 @@ function requireReactIs_production_min() {
1719
1737
  x = b ? Symbol["for"]("react.responder") : 60118,
1720
1738
  y = b ? Symbol["for"]("react.scope") : 60119;
1721
1739
  function z(a) {
1722
- if ("object" === _typeof(a) && null !== a) {
1740
+ if ("object" === _typeof$1(a) && null !== a) {
1723
1741
  var u = a.$$typeof;
1724
1742
  switch (u) {
1725
1743
  case c:
@@ -1775,7 +1793,7 @@ function requireReactIs_production_min() {
1775
1793
  return z(a) === h;
1776
1794
  };
1777
1795
  reactIs_production_min.isElement = function (a) {
1778
- return "object" === _typeof(a) && null !== a && a.$$typeof === c;
1796
+ return "object" === _typeof$1(a) && null !== a && a.$$typeof === c;
1779
1797
  };
1780
1798
  reactIs_production_min.isForwardRef = function (a) {
1781
1799
  return z(a) === n;
@@ -1802,7 +1820,7 @@ function requireReactIs_production_min() {
1802
1820
  return z(a) === p;
1803
1821
  };
1804
1822
  reactIs_production_min.isValidElementType = function (a) {
1805
- return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === _typeof(a) && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
1823
+ return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === _typeof$1(a) && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
1806
1824
  };
1807
1825
  reactIs_production_min.typeOf = z;
1808
1826
  return reactIs_production_min;
@@ -1843,10 +1861,10 @@ function requireReactIs_development() {
1843
1861
  function isValidElementType(type) {
1844
1862
  return typeof type === 'string' || typeof type === 'function' ||
1845
1863
  // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1846
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || _typeof(type) === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
1864
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || _typeof$1(type) === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
1847
1865
  }
1848
1866
  function typeOf(object) {
1849
- if (_typeof(object) === 'object' && object !== null) {
1867
+ if (_typeof$1(object) === 'object' && object !== null) {
1850
1868
  var $$typeof = object.$$typeof;
1851
1869
  switch ($$typeof) {
1852
1870
  case REACT_ELEMENT_TYPE:
@@ -1914,7 +1932,7 @@ function requireReactIs_development() {
1914
1932
  return typeOf(object) === REACT_PROVIDER_TYPE;
1915
1933
  }
1916
1934
  function isElement(object) {
1917
- return _typeof(object) === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1935
+ return _typeof$1(object) === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1918
1936
  }
1919
1937
  function isForwardRef(object) {
1920
1938
  return typeOf(object) === REACT_FORWARD_REF_TYPE;
@@ -1975,17 +1993,14 @@ function requireReactIs_development() {
1975
1993
 
1976
1994
  var hasRequiredReactIs;
1977
1995
  function requireReactIs() {
1978
- if (hasRequiredReactIs) return reactIsExports;
1996
+ if (hasRequiredReactIs) return reactIs.exports;
1979
1997
  hasRequiredReactIs = 1;
1980
- (function (module) {
1981
-
1982
- if (process.env.NODE_ENV === 'production') {
1983
- module.exports = requireReactIs_production_min();
1984
- } else {
1985
- module.exports = requireReactIs_development();
1986
- }
1987
- })(reactIs);
1988
- return reactIsExports;
1998
+ if (process.env.NODE_ENV === 'production') {
1999
+ reactIs.exports = requireReactIs_production_min();
2000
+ } else {
2001
+ reactIs.exports = requireReactIs_development();
2002
+ }
2003
+ return reactIs.exports;
1989
2004
  }
1990
2005
 
1991
2006
  /*
@@ -2146,7 +2161,7 @@ function requireCheckPropTypes() {
2146
2161
  // This is intentionally an invariant that gets caught. It's the same
2147
2162
  // behavior as without this statement except with a better message.
2148
2163
  if (typeof typeSpecs[typeSpecName] !== 'function') {
2149
- var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + _typeof(typeSpecs[typeSpecName]) + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
2164
+ var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + _typeof$1(typeSpecs[typeSpecName]) + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
2150
2165
  err.name = 'Invariant Violation';
2151
2166
  throw err;
2152
2167
  }
@@ -2155,7 +2170,7 @@ function requireCheckPropTypes() {
2155
2170
  error = ex;
2156
2171
  }
2157
2172
  if (error && !(error instanceof Error)) {
2158
- printWarning((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + _typeof(error) + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
2173
+ printWarning((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + _typeof$1(error) + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
2159
2174
  }
2160
2175
  if (error instanceof Error && !(error.message in loggedTypeFailures)) {
2161
2176
  // Only monitor this failure once because there tends to be a lot of the
@@ -2337,7 +2352,7 @@ function requireFactoryWithTypeCheckers() {
2337
2352
  */
2338
2353
  function PropTypeError(message, data) {
2339
2354
  this.message = message;
2340
- this.data = data && _typeof(data) === 'object' ? data : {};
2355
+ this.data = data && _typeof$1(data) === 'object' ? data : {};
2341
2356
  this.stack = '';
2342
2357
  }
2343
2358
  // Make `instanceof Error` still work for returned errors.
@@ -2597,7 +2612,7 @@ function requireFactoryWithTypeCheckers() {
2597
2612
  return createChainableTypeChecker(validate);
2598
2613
  }
2599
2614
  function isNode(propValue) {
2600
- switch (_typeof(propValue)) {
2615
+ switch (_typeof$1(propValue)) {
2601
2616
  case 'number':
2602
2617
  case 'string':
2603
2618
  case 'undefined':
@@ -2665,7 +2680,7 @@ function requireFactoryWithTypeCheckers() {
2665
2680
 
2666
2681
  // Equivalent of `typeof` but with special handling for array and regexp.
2667
2682
  function getPropType(propValue) {
2668
- var propType = _typeof(propValue);
2683
+ var propType = _typeof$1(propValue);
2669
2684
  if (Array.isArray(propValue)) {
2670
2685
  return 'array';
2671
2686
  }
@@ -2808,6 +2823,8 @@ if (process.env.NODE_ENV !== 'production') {
2808
2823
  // http://fb.me/prop-types-in-prod
2809
2824
  propTypes.exports = requireFactoryWithThrowingShims()();
2810
2825
  }
2826
+ var propTypesExports = propTypes.exports;
2827
+ var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
2811
2828
 
2812
2829
  /**
2813
2830
  * defines a focus group
@@ -2842,7 +2859,7 @@ var hiddenGuard = {
2842
2859
  left: '1px'
2843
2860
  };
2844
2861
  process.env.NODE_ENV !== "production" ? {
2845
- children: propTypesExports.node
2862
+ children: PropTypes.node
2846
2863
  } : {};
2847
2864
 
2848
2865
  var mediumFocus = createMedium({}, function (_ref) {
@@ -2920,7 +2937,7 @@ var FocusLock = /*#__PURE__*/React__namespace.forwardRef(function FocusLockUI(pr
2920
2937
  if (returnFocusTo && returnFocusTo.focus) {
2921
2938
  var howToReturnFocus = typeof shouldReturnFocus === 'function' ? shouldReturnFocus(returnFocusTo) : shouldReturnFocus;
2922
2939
  if (howToReturnFocus) {
2923
- var returnFocusOptions = _typeof(howToReturnFocus) === 'object' ? howToReturnFocus : undefined;
2940
+ var returnFocusOptions = _typeof$1(howToReturnFocus) === 'object' ? howToReturnFocus : undefined;
2924
2941
  originalFocusedElement.current = null;
2925
2942
  if (allowDefer) {
2926
2943
  // React might return focus after update
@@ -3086,18 +3103,20 @@ var FocusOn$1 = /*#__PURE__*/React__namespace.forwardRef(function (props, parent
3086
3103
  preventScrollOnFocus = props.preventScrollOnFocus,
3087
3104
  style = props.style,
3088
3105
  as = props.as,
3089
- rest = __rest$a(props, ["children", "autoFocus", "shards", "enabled", "scrollLock", "focusLock", "returnFocus", "inert", "allowPinchZoom", "sideCar", "className", "shouldIgnore", "preventScrollOnFocus", "style", "as"]);
3106
+ gapMode = props.gapMode,
3107
+ rest = __rest$a(props, ["children", "autoFocus", "shards", "enabled", "scrollLock", "focusLock", "returnFocus", "inert", "allowPinchZoom", "sideCar", "className", "shouldIgnore", "preventScrollOnFocus", "style", "as", "gapMode"]);
3090
3108
  var SideCar = sideCar;
3091
3109
  var onActivation = lockProps.onActivation,
3092
3110
  onDeactivation = lockProps.onDeactivation,
3093
3111
  restProps = __rest$a(lockProps, ["onActivation", "onDeactivation"]);
3094
3112
  var appliedLockProps = _assign(_assign({}, restProps), {
3113
+ as: as,
3114
+ style: style,
3095
3115
  sideCar: sideCar,
3096
3116
  shards: shards,
3097
3117
  allowPinchZoom: allowPinchZoom,
3098
- as: as,
3118
+ gapMode: gapMode,
3099
3119
  inert: inert,
3100
- style: style,
3101
3120
  enabled: enabled && scrollLock
3102
3121
  });
3103
3122
  return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(FocusLockUI, {
@@ -3137,7 +3156,34 @@ function _inheritsLoose(subClass, superClass) {
3137
3156
  _setPrototypeOf(subClass, superClass);
3138
3157
  }
3139
3158
 
3159
+ function _typeof(obj) {
3160
+ "@babel/helpers - typeof";
3161
+
3162
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
3163
+ return typeof obj;
3164
+ } : function (obj) {
3165
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
3166
+ }, _typeof(obj);
3167
+ }
3168
+
3169
+ function _toPrimitive(input, hint) {
3170
+ if (_typeof(input) !== "object" || input === null) return input;
3171
+ var prim = input[Symbol.toPrimitive];
3172
+ if (prim !== undefined) {
3173
+ var res = prim.call(input, hint || "default");
3174
+ if (_typeof(res) !== "object") return res;
3175
+ throw new TypeError("@@toPrimitive must return a primitive value.");
3176
+ }
3177
+ return (hint === "string" ? String : Number)(input);
3178
+ }
3179
+
3180
+ function _toPropertyKey(arg) {
3181
+ var key = _toPrimitive(arg, "string");
3182
+ return _typeof(key) === "symbol" ? key : String(key);
3183
+ }
3184
+
3140
3185
  function _defineProperty(obj, key, value) {
3186
+ key = _toPropertyKey(key);
3141
3187
  if (key in obj) {
3142
3188
  Object.defineProperty(obj, key, {
3143
3189
  value: value,
@@ -3839,9 +3885,6 @@ var setFocus = function setFocus(topNode, lastNode, options) {
3839
3885
  }
3840
3886
  };
3841
3887
 
3842
- var moveFocusInside = setFocus;
3843
- //
3844
-
3845
3888
  /* eslint-disable no-mixed-operators */
3846
3889
  var focusOnBody = function focusOnBody() {
3847
3890
  return document && document.activeElement === document.body;
@@ -3941,7 +3984,7 @@ var activateTrap = function activateTrap() {
3941
3984
  }
3942
3985
  document.body.focus();
3943
3986
  } else {
3944
- result = moveFocusInside(workingArea, lastActiveFocus, {
3987
+ result = setFocus(workingArea, lastActiveFocus, {
3945
3988
  focusOptions: focusOptions
3946
3989
  });
3947
3990
  lastPortaledElement = {};
@@ -3998,7 +4041,7 @@ var FocusWatcher = function FocusWatcher() {
3998
4041
  return null;
3999
4042
  };
4000
4043
  process.env.NODE_ENV !== "production" ? {
4001
- children: propTypesExports.node.isRequired
4044
+ children: PropTypes.node.isRequired
4002
4045
  } : {};
4003
4046
  var onWindowBlur = function onWindowBlur() {
4004
4047
  focusWasOutsideWindow = 'just'; // using setTimeout to set this variable after React/sidecar reaction
@@ -4059,7 +4102,7 @@ mediumFocus.assignSyncMedium(onFocus);
4059
4102
  mediumBlur.assignMedium(onBlur);
4060
4103
  mediumEffect.assignMedium(function (cb) {
4061
4104
  return cb({
4062
- moveFocusInside: moveFocusInside,
4105
+ moveFocusInside: setFocus,
4063
4106
  focusInside: focusInside
4064
4107
  });
4065
4108
  });
@@ -4067,7 +4110,11 @@ var FocusTrap = withSideEffect(reducePropsToState, handleStateChangeOnClient)(Fo
4067
4110
 
4068
4111
  exportSidecar(mediumSidecar, FocusTrap);
4069
4112
 
4113
+ var currentNonce;
4070
4114
  var getNonce = function getNonce() {
4115
+ if (currentNonce) {
4116
+ return currentNonce;
4117
+ }
4071
4118
  if (typeof __webpack_nonce__ !== 'undefined') {
4072
4119
  return __webpack_nonce__;
4073
4120
  }
@@ -4786,9 +4833,7 @@ var scale = {};
4786
4833
  __assign = Object.assign || function (t) {
4787
4834
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4788
4835
  s = arguments[i];
4789
- for (var p in s) {
4790
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
4791
- }
4836
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
4792
4837
  }
4793
4838
  return t;
4794
4839
  };
@@ -4796,9 +4841,7 @@ var scale = {};
4796
4841
  };
4797
4842
  var __rest = commonjsGlobal && commonjsGlobal.__rest || function (s, e) {
4798
4843
  var t = {};
4799
- for (var p in s) {
4800
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
4801
- }
4844
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
4802
4845
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
4803
4846
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
4804
4847
  }
@@ -4858,9 +4901,7 @@ var scale = {};
4858
4901
  o[k2] = m[k];
4859
4902
  });
4860
4903
  var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function (m, exports) {
4861
- for (var p in m) {
4862
- if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
4863
- }
4904
+ for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
4864
4905
  };
4865
4906
  Object.defineProperty(exports, "__esModule", {
4866
4907
  value: true
@@ -5073,7 +5114,7 @@ var T = function T() {
5073
5114
  var otherwise = T;
5074
5115
 
5075
5116
  function _isPlaceholder(a) {
5076
- return a != null && _typeof(a) === 'object' && a['@@functional/placeholder'] === true;
5117
+ return a != null && _typeof$1(a) === 'object' && a['@@functional/placeholder'] === true;
5077
5118
  }
5078
5119
 
5079
5120
  /**
@@ -5373,257 +5414,99 @@ var _xfBase = {
5373
5414
  }
5374
5415
  };
5375
5416
 
5376
- /**
5377
- * Returns the larger of its two arguments.
5378
- *
5379
- * @func
5380
- * @memberOf R
5381
- * @since v0.1.0
5382
- * @category Relation
5383
- * @sig Ord a => a -> a -> a
5384
- * @param {*} a
5385
- * @param {*} b
5386
- * @return {*}
5387
- * @see R.maxBy, R.min
5388
- * @example
5389
- *
5390
- * R.max(789, 123); //=> 789
5391
- * R.max('a', 'b'); //=> 'b'
5392
- */
5393
-
5394
- var max = /*#__PURE__*/
5395
- _curry2(function max(a, b) {
5396
- return b > a ? b : a;
5397
- });
5417
+ function _arrayFromIterator(iter) {
5418
+ var list = [];
5419
+ var next;
5420
+ while (!(next = iter.next()).done) {
5421
+ list.push(next.value);
5422
+ }
5423
+ return list;
5424
+ }
5398
5425
 
5399
- function _map(fn, functor) {
5426
+ function _includesWith(pred, x, list) {
5400
5427
  var idx = 0;
5401
- var len = functor.length;
5402
- var result = Array(len);
5428
+ var len = list.length;
5403
5429
  while (idx < len) {
5404
- result[idx] = fn(functor[idx]);
5430
+ if (pred(x, list[idx])) {
5431
+ return true;
5432
+ }
5405
5433
  idx += 1;
5406
5434
  }
5407
- return result;
5435
+ return false;
5408
5436
  }
5409
5437
 
5410
- function _isString(x) {
5411
- return Object.prototype.toString.call(x) === '[object String]';
5438
+ function _functionName(f) {
5439
+ // String(x => x) evaluates to "x => x", so the pattern may not match.
5440
+ var match = String(f).match(/^function (\w*)/);
5441
+ return match == null ? '' : match[1];
5412
5442
  }
5413
5443
 
5414
- /**
5415
- * Tests whether or not an object is similar to an array.
5416
- *
5417
- * @private
5418
- * @category Type
5419
- * @category List
5420
- * @sig * -> Boolean
5421
- * @param {*} x The object to test.
5422
- * @return {Boolean} `true` if `x` has a numeric length property and extreme indices defined; `false` otherwise.
5423
- * @example
5424
- *
5425
- * _isArrayLike([]); //=> true
5426
- * _isArrayLike(true); //=> false
5427
- * _isArrayLike({}); //=> false
5428
- * _isArrayLike({length: 10}); //=> false
5429
- * _isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true
5430
- * _isArrayLike({nodeType: 1, length: 1}) // => false
5431
- */
5444
+ function _has(prop, obj) {
5445
+ return Object.prototype.hasOwnProperty.call(obj, prop);
5446
+ }
5432
5447
 
5433
- var _isArrayLike = /*#__PURE__*/
5434
- _curry1(function isArrayLike(x) {
5435
- if (_isArray(x)) {
5436
- return true;
5437
- }
5438
- if (!x) {
5439
- return false;
5440
- }
5441
- if (_typeof(x) !== 'object') {
5442
- return false;
5443
- }
5444
- if (_isString(x)) {
5445
- return false;
5446
- }
5447
- if (x.length === 0) {
5448
- return true;
5449
- }
5450
- if (x.length > 0) {
5451
- return x.hasOwnProperty(0) && x.hasOwnProperty(x.length - 1);
5448
+ // Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
5449
+ function _objectIs(a, b) {
5450
+ // SameValue algorithm
5451
+ if (a === b) {
5452
+ // Steps 1-5, 7-10
5453
+ // Steps 6.b-6.e: +0 != -0
5454
+ return a !== 0 || 1 / a === 1 / b;
5455
+ } else {
5456
+ // Step 6.a: NaN == NaN
5457
+ return a !== a && b !== b;
5452
5458
  }
5453
- return false;
5454
- });
5459
+ }
5460
+ var _objectIs$1 = typeof Object.is === 'function' ? Object.is : _objectIs;
5455
5461
 
5456
- var XWrap = /*#__PURE__*/
5462
+ var toString$1 = Object.prototype.toString;
5463
+ var _isArguments = /*#__PURE__*/
5457
5464
  function () {
5458
- function XWrap(fn) {
5459
- this.f = fn;
5460
- }
5461
- XWrap.prototype['@@transducer/init'] = function () {
5462
- throw new Error('init not implemented on XWrap');
5463
- };
5464
- XWrap.prototype['@@transducer/result'] = function (acc) {
5465
- return acc;
5466
- };
5467
- XWrap.prototype['@@transducer/step'] = function (acc, x) {
5468
- return this.f(acc, x);
5465
+ return toString$1.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
5466
+ return toString$1.call(x) === '[object Arguments]';
5467
+ } : function _isArguments(x) {
5468
+ return _has('callee', x);
5469
5469
  };
5470
- return XWrap;
5471
5470
  }();
5472
- function _xwrap(fn) {
5473
- return new XWrap(fn);
5474
- }
5475
5471
 
5472
+ var hasEnumBug = ! /*#__PURE__*/
5473
+ {
5474
+ toString: null
5475
+ }.propertyIsEnumerable('toString');
5476
+ var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString']; // Safari bug
5477
+
5478
+ var hasArgsEnumBug = /*#__PURE__*/
5479
+ function () {
5480
+
5481
+ return arguments.propertyIsEnumerable('length');
5482
+ }();
5483
+ var contains = function contains(list, item) {
5484
+ var idx = 0;
5485
+ while (idx < list.length) {
5486
+ if (list[idx] === item) {
5487
+ return true;
5488
+ }
5489
+ idx += 1;
5490
+ }
5491
+ return false;
5492
+ };
5476
5493
  /**
5477
- * Creates a function that is bound to a context.
5478
- * Note: `R.bind` does not provide the additional argument-binding capabilities of
5479
- * [Function.prototype.bind](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).
5494
+ * Returns a list containing the names of all the enumerable own properties of
5495
+ * the supplied object.
5496
+ * Note that the order of the output array is not guaranteed to be consistent
5497
+ * across different JS platforms.
5480
5498
  *
5481
5499
  * @func
5482
5500
  * @memberOf R
5483
- * @since v0.6.0
5484
- * @category Function
5501
+ * @since v0.1.0
5485
5502
  * @category Object
5486
- * @sig (* -> *) -> {*} -> (* -> *)
5487
- * @param {Function} fn The function to bind to context
5488
- * @param {Object} thisObj The context to bind `fn` to
5489
- * @return {Function} A function that will execute in the context of `thisObj`.
5490
- * @see R.partial
5503
+ * @sig {k: v} -> [k]
5504
+ * @param {Object} obj The object to extract properties from
5505
+ * @return {Array} An array of the object's own properties.
5506
+ * @see R.keysIn, R.values, R.toPairs
5491
5507
  * @example
5492
5508
  *
5493
- * const log = R.bind(console.log, console);
5494
- * R.pipe(R.assoc('a', 2), R.tap(log), R.assoc('a', 3))({a: 1}); //=> {a: 3}
5495
- * // logs {a: 2}
5496
- * @symb R.bind(f, o)(a, b) = f.call(o, a, b)
5497
- */
5498
-
5499
- var bind = /*#__PURE__*/
5500
- _curry2(function bind(fn, thisObj) {
5501
- return _arity(fn.length, function () {
5502
- return fn.apply(thisObj, arguments);
5503
- });
5504
- });
5505
-
5506
- function _arrayReduce(xf, acc, list) {
5507
- var idx = 0;
5508
- var len = list.length;
5509
- while (idx < len) {
5510
- acc = xf['@@transducer/step'](acc, list[idx]);
5511
- if (acc && acc['@@transducer/reduced']) {
5512
- acc = acc['@@transducer/value'];
5513
- break;
5514
- }
5515
- idx += 1;
5516
- }
5517
- return xf['@@transducer/result'](acc);
5518
- }
5519
- function _iterableReduce(xf, acc, iter) {
5520
- var step = iter.next();
5521
- while (!step.done) {
5522
- acc = xf['@@transducer/step'](acc, step.value);
5523
- if (acc && acc['@@transducer/reduced']) {
5524
- acc = acc['@@transducer/value'];
5525
- break;
5526
- }
5527
- step = iter.next();
5528
- }
5529
- return xf['@@transducer/result'](acc);
5530
- }
5531
- function _methodReduce(xf, acc, obj, methodName) {
5532
- return xf['@@transducer/result'](obj[methodName](bind(xf['@@transducer/step'], xf), acc));
5533
- }
5534
- var symIterator = typeof Symbol !== 'undefined' ? Symbol.iterator : '@@iterator';
5535
- function _reduce(fn, acc, list) {
5536
- if (typeof fn === 'function') {
5537
- fn = _xwrap(fn);
5538
- }
5539
- if (_isArrayLike(list)) {
5540
- return _arrayReduce(fn, acc, list);
5541
- }
5542
- if (typeof list['fantasy-land/reduce'] === 'function') {
5543
- return _methodReduce(fn, acc, list, 'fantasy-land/reduce');
5544
- }
5545
- if (list[symIterator] != null) {
5546
- return _iterableReduce(fn, acc, list[symIterator]());
5547
- }
5548
- if (typeof list.next === 'function') {
5549
- return _iterableReduce(fn, acc, list);
5550
- }
5551
- if (typeof list.reduce === 'function') {
5552
- return _methodReduce(fn, acc, list, 'reduce');
5553
- }
5554
- throw new TypeError('reduce: list must be array or iterable');
5555
- }
5556
-
5557
- var XMap = /*#__PURE__*/
5558
- function () {
5559
- function XMap(f, xf) {
5560
- this.xf = xf;
5561
- this.f = f;
5562
- }
5563
- XMap.prototype['@@transducer/init'] = _xfBase.init;
5564
- XMap.prototype['@@transducer/result'] = _xfBase.result;
5565
- XMap.prototype['@@transducer/step'] = function (result, input) {
5566
- return this.xf['@@transducer/step'](result, this.f(input));
5567
- };
5568
- return XMap;
5569
- }();
5570
- var _xmap = /*#__PURE__*/
5571
- _curry2(function _xmap(f, xf) {
5572
- return new XMap(f, xf);
5573
- });
5574
-
5575
- function _has(prop, obj) {
5576
- return Object.prototype.hasOwnProperty.call(obj, prop);
5577
- }
5578
-
5579
- var toString = Object.prototype.toString;
5580
- var _isArguments = /*#__PURE__*/
5581
- function () {
5582
- return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
5583
- return toString.call(x) === '[object Arguments]';
5584
- } : function _isArguments(x) {
5585
- return _has('callee', x);
5586
- };
5587
- }();
5588
-
5589
- var hasEnumBug = ! /*#__PURE__*/
5590
- {
5591
- toString: null
5592
- }.propertyIsEnumerable('toString');
5593
- var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString']; // Safari bug
5594
-
5595
- var hasArgsEnumBug = /*#__PURE__*/
5596
- function () {
5597
-
5598
- return arguments.propertyIsEnumerable('length');
5599
- }();
5600
- var contains = function contains(list, item) {
5601
- var idx = 0;
5602
- while (idx < list.length) {
5603
- if (list[idx] === item) {
5604
- return true;
5605
- }
5606
- idx += 1;
5607
- }
5608
- return false;
5609
- };
5610
- /**
5611
- * Returns a list containing the names of all the enumerable own properties of
5612
- * the supplied object.
5613
- * Note that the order of the output array is not guaranteed to be consistent
5614
- * across different JS platforms.
5615
- *
5616
- * @func
5617
- * @memberOf R
5618
- * @since v0.1.0
5619
- * @category Object
5620
- * @sig {k: v} -> [k]
5621
- * @param {Object} obj The object to extract properties from
5622
- * @return {Array} An array of the object's own properties.
5623
- * @see R.keysIn, R.values, R.toPairs
5624
- * @example
5625
- *
5626
- * R.keys({a: 1, b: 2, c: 3}); //=> ['a', 'b', 'c']
5509
+ * R.keys({a: 1, b: 2, c: 3}); //=> ['a', 'b', 'c']
5627
5510
  */
5628
5511
 
5629
5512
  var keys = typeof Object.keys === 'function' && !hasArgsEnumBug ? /*#__PURE__*/
@@ -5655,110 +5538,6 @@ _curry1(function keys(obj) {
5655
5538
  return ks;
5656
5539
  });
5657
5540
 
5658
- /**
5659
- * Takes a function and
5660
- * a [functor](https://github.com/fantasyland/fantasy-land#functor),
5661
- * applies the function to each of the functor's values, and returns
5662
- * a functor of the same shape.
5663
- *
5664
- * Ramda provides suitable `map` implementations for `Array` and `Object`,
5665
- * so this function may be applied to `[1, 2, 3]` or `{x: 1, y: 2, z: 3}`.
5666
- *
5667
- * Dispatches to the `map` method of the second argument, if present.
5668
- *
5669
- * Acts as a transducer if a transformer is given in list position.
5670
- *
5671
- * Also treats functions as functors and will compose them together.
5672
- *
5673
- * @func
5674
- * @memberOf R
5675
- * @since v0.1.0
5676
- * @category List
5677
- * @sig Functor f => (a -> b) -> f a -> f b
5678
- * @param {Function} fn The function to be called on every element of the input `list`.
5679
- * @param {Array} list The list to be iterated over.
5680
- * @return {Array} The new list.
5681
- * @see R.transduce, R.addIndex, R.pluck, R.project
5682
- * @example
5683
- *
5684
- * const double = x => x * 2;
5685
- *
5686
- * R.map(double, [1, 2, 3]); //=> [2, 4, 6]
5687
- *
5688
- * R.map(double, {x: 1, y: 2, z: 3}); //=> {x: 2, y: 4, z: 6}
5689
- * @symb R.map(f, [a, b]) = [f(a), f(b)]
5690
- * @symb R.map(f, { x: a, y: b }) = { x: f(a), y: f(b) }
5691
- * @symb R.map(f, functor_o) = functor_o.map(f)
5692
- */
5693
-
5694
- var map = /*#__PURE__*/
5695
- _curry2( /*#__PURE__*/
5696
- _dispatchable(['fantasy-land/map', 'map'], _xmap, function map(fn, functor) {
5697
- switch (Object.prototype.toString.call(functor)) {
5698
- case '[object Function]':
5699
- return curryN(functor.length, function () {
5700
- return fn.call(this, functor.apply(this, arguments));
5701
- });
5702
- case '[object Object]':
5703
- return _reduce(function (acc, key) {
5704
- acc[key] = fn(functor[key]);
5705
- return acc;
5706
- }, {}, keys(functor));
5707
- default:
5708
- return _map(fn, functor);
5709
- }
5710
- }));
5711
-
5712
- /**
5713
- * Returns a single item by iterating through the list, successively calling
5714
- * the iterator function and passing it an accumulator value and the current
5715
- * value from the array, and then passing the result to the next call.
5716
- *
5717
- * The iterator function receives two values: *(acc, value)*. It may use
5718
- * [`R.reduced`](#reduced) to shortcut the iteration.
5719
- *
5720
- * The arguments' order of [`reduceRight`](#reduceRight)'s iterator function
5721
- * is *(value, acc)*.
5722
- *
5723
- * Note: `R.reduce` does not skip deleted or unassigned indices (sparse
5724
- * arrays), unlike the native `Array.prototype.reduce` method. For more details
5725
- * on this behavior, see:
5726
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce#Description
5727
- *
5728
- * Dispatches to the `reduce` method of the third argument, if present. When
5729
- * doing so, it is up to the user to handle the [`R.reduced`](#reduced)
5730
- * shortcuting, as this is not implemented by `reduce`.
5731
- *
5732
- * @func
5733
- * @memberOf R
5734
- * @since v0.1.0
5735
- * @category List
5736
- * @sig ((a, b) -> a) -> a -> [b] -> a
5737
- * @param {Function} fn The iterator function. Receives two values, the accumulator and the
5738
- * current element from the array.
5739
- * @param {*} acc The accumulator value.
5740
- * @param {Array} list The list to iterate over.
5741
- * @return {*} The final, accumulated value.
5742
- * @see R.reduced, R.addIndex, R.reduceRight
5743
- * @example
5744
- *
5745
- * R.reduce(R.subtract, 0, [1, 2, 3, 4]) // => ((((0 - 1) - 2) - 3) - 4) = -10
5746
- * // - -10
5747
- * // / \ / \
5748
- * // - 4 -6 4
5749
- * // / \ / \
5750
- * // - 3 ==> -3 3
5751
- * // / \ / \
5752
- * // - 2 -1 2
5753
- * // / \ / \
5754
- * // 0 1 0 1
5755
- *
5756
- * @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)
5757
- */
5758
-
5759
- var reduce = /*#__PURE__*/
5760
- _curry3(_reduce);
5761
-
5762
5541
  /**
5763
5542
  * Gives a single-word string description of the (native) type of a value,
5764
5543
  * returning such answers as 'Object', 'Number', 'Array', or 'Null'. Does not
@@ -5769,7 +5548,7 @@ _curry3(_reduce);
5769
5548
  * @memberOf R
5770
5549
  * @since v0.8.0
5771
5550
  * @category Type
5772
- * @sig (* -> {*}) -> String
5551
+ * @sig * -> String
5773
5552
  * @param {*} val The value to test
5774
5553
  * @return {String}
5775
5554
  * @example
@@ -5790,99 +5569,31 @@ _curry1(function type(val) {
5790
5569
  return val === null ? 'Null' : val === undefined ? 'Undefined' : Object.prototype.toString.call(val).slice(8, -1);
5791
5570
  });
5792
5571
 
5793
- function _identity(x) {
5794
- return x;
5795
- }
5796
-
5797
5572
  /**
5798
- * A function that does nothing but return the parameter supplied to it. Good
5799
- * as a default or placeholder function.
5800
- *
5801
- * @func
5802
- * @memberOf R
5803
- * @since v0.1.0
5804
- * @category Function
5805
- * @sig a -> a
5806
- * @param {*} x The value to return.
5807
- * @return {*} The input value, `x`.
5808
- * @example
5809
- *
5810
- * R.identity(1); //=> 1
5573
+ * private _uniqContentEquals function.
5574
+ * That function is checking equality of 2 iterator contents with 2 assumptions
5575
+ * - iterators lengths are the same
5576
+ * - iterators values are unique
5811
5577
  *
5812
- * const obj = {};
5813
- * R.identity(obj) === obj; //=> true
5814
- * @symb R.identity(a) = a
5815
- */
5578
+ * false-positive result will be returned for comparison of, e.g.
5579
+ * - [1,2,3] and [1,2,3,4]
5580
+ * - [1,1,1] and [1,2,3]
5581
+ * */
5816
5582
 
5817
- var identity = /*#__PURE__*/
5818
- _curry1(_identity);
5583
+ function _uniqContentEquals(aIterator, bIterator, stackA, stackB) {
5584
+ var a = _arrayFromIterator(aIterator);
5585
+ var b = _arrayFromIterator(bIterator);
5586
+ function eq(_a, _b) {
5587
+ return _equals(_a, _b, stackA.slice(), stackB.slice());
5588
+ } // if *a* array contains any element that is not included in *b*
5819
5589
 
5820
- function _arrayFromIterator(iter) {
5821
- var list = [];
5822
- var next;
5823
- while (!(next = iter.next()).done) {
5824
- list.push(next.value);
5825
- }
5826
- return list;
5590
+ return !_includesWith(function (b, aItem) {
5591
+ return !_includesWith(eq, aItem, b);
5592
+ }, b, a);
5827
5593
  }
5828
-
5829
- function _includesWith(pred, x, list) {
5830
- var idx = 0;
5831
- var len = list.length;
5832
- while (idx < len) {
5833
- if (pred(x, list[idx])) {
5834
- return true;
5835
- }
5836
- idx += 1;
5837
- }
5838
- return false;
5839
- }
5840
-
5841
- function _functionName(f) {
5842
- // String(x => x) evaluates to "x => x", so the pattern may not match.
5843
- var match = String(f).match(/^function (\w*)/);
5844
- return match == null ? '' : match[1];
5845
- }
5846
-
5847
- // Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
5848
- function _objectIs(a, b) {
5849
- // SameValue algorithm
5850
- if (a === b) {
5851
- // Steps 1-5, 7-10
5852
- // Steps 6.b-6.e: +0 != -0
5853
- return a !== 0 || 1 / a === 1 / b;
5854
- } else {
5855
- // Step 6.a: NaN == NaN
5856
- return a !== a && b !== b;
5857
- }
5858
- }
5859
- var _objectIs$1 = typeof Object.is === 'function' ? Object.is : _objectIs;
5860
-
5861
- /**
5862
- * private _uniqContentEquals function.
5863
- * That function is checking equality of 2 iterator contents with 2 assumptions
5864
- * - iterators lengths are the same
5865
- * - iterators values are unique
5866
- *
5867
- * false-positive result will be returned for comparison of, e.g.
5868
- * - [1,2,3] and [1,2,3,4]
5869
- * - [1,1,1] and [1,2,3]
5870
- * */
5871
-
5872
- function _uniqContentEquals(aIterator, bIterator, stackA, stackB) {
5873
- var a = _arrayFromIterator(aIterator);
5874
- var b = _arrayFromIterator(bIterator);
5875
- function eq(_a, _b) {
5876
- return _equals(_a, _b, stackA.slice(), stackB.slice());
5877
- } // if *a* array contains any element that is not included in *b*
5878
-
5879
- return !_includesWith(function (b, aItem) {
5880
- return !_includesWith(eq, aItem, b);
5881
- }, b, a);
5882
- }
5883
- function _equals(a, b, stackA, stackB) {
5884
- if (_objectIs$1(a, b)) {
5885
- return true;
5594
+ function _equals(a, b, stackA, stackB) {
5595
+ if (_objectIs$1(a, b)) {
5596
+ return true;
5886
5597
  }
5887
5598
  var typeA = type(a);
5888
5599
  if (typeA !== type(b)) {
@@ -5905,7 +5616,7 @@ function _equals(a, b, stackA, stackB) {
5905
5616
  case 'Boolean':
5906
5617
  case 'Number':
5907
5618
  case 'String':
5908
- if (!(_typeof(a) === _typeof(b) && _objectIs$1(a.valueOf(), b.valueOf()))) {
5619
+ if (!(_typeof$1(a) === _typeof$1(b) && _objectIs$1(a.valueOf(), b.valueOf()))) {
5909
5620
  return false;
5910
5621
  }
5911
5622
  break;
@@ -5960,115 +5671,711 @@ function _equals(a, b, stackA, stackB) {
5960
5671
  case 'Float64Array':
5961
5672
  case 'ArrayBuffer':
5962
5673
  break;
5963
- default:
5964
- // Values of other types are only equal if identical.
5965
- return false;
5966
- }
5967
- var keysA = keys(a);
5968
- if (keysA.length !== keys(b).length) {
5969
- return false;
5970
- }
5971
- var extendedStackA = stackA.concat([a]);
5972
- var extendedStackB = stackB.concat([b]);
5973
- idx = keysA.length - 1;
5974
- while (idx >= 0) {
5975
- var key = keysA[idx];
5976
- if (!(_has(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) {
5977
- return false;
5674
+ default:
5675
+ // Values of other types are only equal if identical.
5676
+ return false;
5677
+ }
5678
+ var keysA = keys(a);
5679
+ if (keysA.length !== keys(b).length) {
5680
+ return false;
5681
+ }
5682
+ var extendedStackA = stackA.concat([a]);
5683
+ var extendedStackB = stackB.concat([b]);
5684
+ idx = keysA.length - 1;
5685
+ while (idx >= 0) {
5686
+ var key = keysA[idx];
5687
+ if (!(_has(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) {
5688
+ return false;
5689
+ }
5690
+ idx -= 1;
5691
+ }
5692
+ return true;
5693
+ }
5694
+
5695
+ /**
5696
+ * Returns `true` if its arguments are equivalent, `false` otherwise. Handles
5697
+ * cyclical data structures.
5698
+ *
5699
+ * Dispatches symmetrically to the `equals` methods of both arguments, if
5700
+ * present.
5701
+ *
5702
+ * @func
5703
+ * @memberOf R
5704
+ * @since v0.15.0
5705
+ * @category Relation
5706
+ * @sig a -> b -> Boolean
5707
+ * @param {*} a
5708
+ * @param {*} b
5709
+ * @return {Boolean}
5710
+ * @example
5711
+ *
5712
+ * R.equals(1, 1); //=> true
5713
+ * R.equals(1, '1'); //=> false
5714
+ * R.equals([1, 2, 3], [1, 2, 3]); //=> true
5715
+ *
5716
+ * const a = {}; a.v = a;
5717
+ * const b = {}; b.v = b;
5718
+ * R.equals(a, b); //=> true
5719
+ */
5720
+
5721
+ var equals = /*#__PURE__*/
5722
+ _curry2(function equals(a, b) {
5723
+ return _equals(a, b, [], []);
5724
+ });
5725
+
5726
+ function _indexOf(list, a, idx) {
5727
+ var inf, item; // Array.prototype.indexOf doesn't exist below IE9
5728
+
5729
+ if (typeof list.indexOf === 'function') {
5730
+ switch (_typeof$1(a)) {
5731
+ case 'number':
5732
+ if (a === 0) {
5733
+ // manually crawl the list to distinguish between +0 and -0
5734
+ inf = 1 / a;
5735
+ while (idx < list.length) {
5736
+ item = list[idx];
5737
+ if (item === 0 && 1 / item === inf) {
5738
+ return idx;
5739
+ }
5740
+ idx += 1;
5741
+ }
5742
+ return -1;
5743
+ } else if (a !== a) {
5744
+ // NaN
5745
+ while (idx < list.length) {
5746
+ item = list[idx];
5747
+ if (typeof item === 'number' && item !== item) {
5748
+ return idx;
5749
+ }
5750
+ idx += 1;
5751
+ }
5752
+ return -1;
5753
+ } // non-zero numbers can utilise Set
5754
+
5755
+ return list.indexOf(a, idx);
5756
+ // all these types can utilise Set
5757
+
5758
+ case 'string':
5759
+ case 'boolean':
5760
+ case 'function':
5761
+ case 'undefined':
5762
+ return list.indexOf(a, idx);
5763
+ case 'object':
5764
+ if (a === null) {
5765
+ // null can utilise Set
5766
+ return list.indexOf(a, idx);
5767
+ }
5768
+ }
5769
+ } // anything else not covered above, defer to R.equals
5770
+
5771
+ while (idx < list.length) {
5772
+ if (equals(list[idx], a)) {
5773
+ return idx;
5774
+ }
5775
+ idx += 1;
5776
+ }
5777
+ return -1;
5778
+ }
5779
+
5780
+ function _includes(a, list) {
5781
+ return _indexOf(list, a, 0) >= 0;
5782
+ }
5783
+
5784
+ function _map(fn, functor) {
5785
+ var idx = 0;
5786
+ var len = functor.length;
5787
+ var result = Array(len);
5788
+ while (idx < len) {
5789
+ result[idx] = fn(functor[idx]);
5790
+ idx += 1;
5791
+ }
5792
+ return result;
5793
+ }
5794
+
5795
+ function _quote(s) {
5796
+ var escaped = s.replace(/\\/g, '\\\\').replace(/[\b]/g, '\\b') // \b matches word boundary; [\b] matches backspace
5797
+ .replace(/\f/g, '\\f').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/\t/g, '\\t').replace(/\v/g, '\\v').replace(/\0/g, '\\0');
5798
+ return '"' + escaped.replace(/"/g, '\\"') + '"';
5799
+ }
5800
+
5801
+ /**
5802
+ * Polyfill from <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString>.
5803
+ */
5804
+ var pad = function pad(n) {
5805
+ return (n < 10 ? '0' : '') + n;
5806
+ };
5807
+ var _toISOString = typeof Date.prototype.toISOString === 'function' ? function _toISOString(d) {
5808
+ return d.toISOString();
5809
+ } : function _toISOString(d) {
5810
+ return d.getUTCFullYear() + '-' + pad(d.getUTCMonth() + 1) + '-' + pad(d.getUTCDate()) + 'T' + pad(d.getUTCHours()) + ':' + pad(d.getUTCMinutes()) + ':' + pad(d.getUTCSeconds()) + '.' + (d.getUTCMilliseconds() / 1000).toFixed(3).slice(2, 5) + 'Z';
5811
+ };
5812
+
5813
+ function _complement(f) {
5814
+ return function () {
5815
+ return !f.apply(this, arguments);
5816
+ };
5817
+ }
5818
+
5819
+ function _arrayReduce(reducer, acc, list) {
5820
+ var index = 0;
5821
+ var length = list.length;
5822
+ while (index < length) {
5823
+ acc = reducer(acc, list[index]);
5824
+ index += 1;
5825
+ }
5826
+ return acc;
5827
+ }
5828
+
5829
+ function _filter(fn, list) {
5830
+ var idx = 0;
5831
+ var len = list.length;
5832
+ var result = [];
5833
+ while (idx < len) {
5834
+ if (fn(list[idx])) {
5835
+ result[result.length] = list[idx];
5836
+ }
5837
+ idx += 1;
5838
+ }
5839
+ return result;
5840
+ }
5841
+
5842
+ function _isObject(x) {
5843
+ return Object.prototype.toString.call(x) === '[object Object]';
5844
+ }
5845
+
5846
+ var XFilter = /*#__PURE__*/
5847
+ function () {
5848
+ function XFilter(f, xf) {
5849
+ this.xf = xf;
5850
+ this.f = f;
5851
+ }
5852
+ XFilter.prototype['@@transducer/init'] = _xfBase.init;
5853
+ XFilter.prototype['@@transducer/result'] = _xfBase.result;
5854
+ XFilter.prototype['@@transducer/step'] = function (result, input) {
5855
+ return this.f(input) ? this.xf['@@transducer/step'](result, input) : result;
5856
+ };
5857
+ return XFilter;
5858
+ }();
5859
+ function _xfilter(f) {
5860
+ return function (xf) {
5861
+ return new XFilter(f, xf);
5862
+ };
5863
+ }
5864
+
5865
+ /**
5866
+ * Takes a predicate and a `Filterable`, and returns a new filterable of the
5867
+ * same type containing the members of the given filterable which satisfy the
5868
+ * given predicate. Filterable objects include plain objects or any object
5869
+ * that has a filter method such as `Array`.
5870
+ *
5871
+ * Dispatches to the `filter` method of the second argument, if present.
5872
+ *
5873
+ * Acts as a transducer if a transformer is given in list position.
5874
+ *
5875
+ * @func
5876
+ * @memberOf R
5877
+ * @since v0.1.0
5878
+ * @category List
5879
+ * @category Object
5880
+ * @sig Filterable f => (a -> Boolean) -> f a -> f a
5881
+ * @param {Function} pred
5882
+ * @param {Array} filterable
5883
+ * @return {Array} Filterable
5884
+ * @see R.reject, R.transduce, R.addIndex
5885
+ * @example
5886
+ *
5887
+ * const isEven = n => n % 2 === 0;
5888
+ *
5889
+ * R.filter(isEven, [1, 2, 3, 4]); //=> [2, 4]
5890
+ *
5891
+ * R.filter(isEven, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
5892
+ */
5893
+
5894
+ var filter = /*#__PURE__*/
5895
+ _curry2( /*#__PURE__*/
5896
+ _dispatchable(['fantasy-land/filter', 'filter'], _xfilter, function (pred, filterable) {
5897
+ return _isObject(filterable) ? _arrayReduce(function (acc, key) {
5898
+ if (pred(filterable[key])) {
5899
+ acc[key] = filterable[key];
5900
+ }
5901
+ return acc;
5902
+ }, {}, keys(filterable)) :
5903
+ // else
5904
+ _filter(pred, filterable);
5905
+ }));
5906
+
5907
+ /**
5908
+ * The complement of [`filter`](#filter).
5909
+ *
5910
+ * Acts as a transducer if a transformer is given in list position. Filterable
5911
+ * objects include plain objects or any object that has a filter method such
5912
+ * as `Array`.
5913
+ *
5914
+ * @func
5915
+ * @memberOf R
5916
+ * @since v0.1.0
5917
+ * @category List
5918
+ * @sig Filterable f => (a -> Boolean) -> f a -> f a
5919
+ * @param {Function} pred
5920
+ * @param {Array} filterable
5921
+ * @return {Array}
5922
+ * @see R.filter, R.transduce, R.addIndex
5923
+ * @example
5924
+ *
5925
+ * const isOdd = (n) => n % 2 !== 0;
5926
+ *
5927
+ * R.reject(isOdd, [1, 2, 3, 4]); //=> [2, 4]
5928
+ *
5929
+ * R.reject(isOdd, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
5930
+ */
5931
+
5932
+ var reject = /*#__PURE__*/
5933
+ _curry2(function reject(pred, filterable) {
5934
+ return filter(_complement(pred), filterable);
5935
+ });
5936
+
5937
+ function _toString(x, seen) {
5938
+ var recur = function recur(y) {
5939
+ var xs = seen.concat([x]);
5940
+ return _includes(y, xs) ? '<Circular>' : _toString(y, xs);
5941
+ }; // mapPairs :: (Object, [String]) -> [String]
5942
+
5943
+ var mapPairs = function mapPairs(obj, keys) {
5944
+ return _map(function (k) {
5945
+ return _quote(k) + ': ' + recur(obj[k]);
5946
+ }, keys.slice().sort());
5947
+ };
5948
+ switch (Object.prototype.toString.call(x)) {
5949
+ case '[object Arguments]':
5950
+ return '(function() { return arguments; }(' + _map(recur, x).join(', ') + '))';
5951
+ case '[object Array]':
5952
+ return '[' + _map(recur, x).concat(mapPairs(x, reject(function (k) {
5953
+ return /^\d+$/.test(k);
5954
+ }, keys(x)))).join(', ') + ']';
5955
+ case '[object Boolean]':
5956
+ return _typeof$1(x) === 'object' ? 'new Boolean(' + recur(x.valueOf()) + ')' : x.toString();
5957
+ case '[object Date]':
5958
+ return 'new Date(' + (isNaN(x.valueOf()) ? recur(NaN) : _quote(_toISOString(x))) + ')';
5959
+ case '[object Map]':
5960
+ return 'new Map(' + recur(Array.from(x)) + ')';
5961
+ case '[object Null]':
5962
+ return 'null';
5963
+ case '[object Number]':
5964
+ return _typeof$1(x) === 'object' ? 'new Number(' + recur(x.valueOf()) + ')' : 1 / x === -Infinity ? '-0' : x.toString(10);
5965
+ case '[object Set]':
5966
+ return 'new Set(' + recur(Array.from(x).sort()) + ')';
5967
+ case '[object String]':
5968
+ return _typeof$1(x) === 'object' ? 'new String(' + recur(x.valueOf()) + ')' : _quote(x);
5969
+ case '[object Undefined]':
5970
+ return 'undefined';
5971
+ default:
5972
+ if (typeof x.toString === 'function') {
5973
+ var repr = x.toString();
5974
+ if (repr !== '[object Object]') {
5975
+ return repr;
5976
+ }
5977
+ }
5978
+ return '{' + mapPairs(x, keys(x)).join(', ') + '}';
5979
+ }
5980
+ }
5981
+
5982
+ /**
5983
+ * Returns the string representation of the given value. `eval`'ing the output
5984
+ * should result in a value equivalent to the input value. Many of the built-in
5985
+ * `toString` methods do not satisfy this requirement.
5986
+ *
5987
+ * If the given value is an `[object Object]` with a `toString` method other
5988
+ * than `Object.prototype.toString`, this method is invoked with no arguments
5989
+ * to produce the return value. This means user-defined constructor functions
5990
+ * can provide a suitable `toString` method. For example:
5991
+ *
5992
+ * function Point(x, y) {
5993
+ * this.x = x;
5994
+ * this.y = y;
5995
+ * }
5996
+ *
5997
+ * Point.prototype.toString = function() {
5998
+ * return 'new Point(' + this.x + ', ' + this.y + ')';
5999
+ * };
6000
+ *
6001
+ * R.toString(new Point(1, 2)); //=> 'new Point(1, 2)'
6002
+ *
6003
+ * @func
6004
+ * @memberOf R
6005
+ * @since v0.14.0
6006
+ * @category String
6007
+ * @sig * -> String
6008
+ * @param {*} val
6009
+ * @return {String}
6010
+ * @example
6011
+ *
6012
+ * R.toString(42); //=> '42'
6013
+ * R.toString('abc'); //=> '"abc"'
6014
+ * R.toString([1, 2, 3]); //=> '[1, 2, 3]'
6015
+ * R.toString({foo: 1, bar: 2, baz: 3}); //=> '{"bar": 2, "baz": 3, "foo": 1}'
6016
+ * R.toString(new Date('2001-02-03T04:05:06Z')); //=> 'new Date("2001-02-03T04:05:06.000Z")'
6017
+ */
6018
+
6019
+ var toString = /*#__PURE__*/
6020
+ _curry1(function toString(val) {
6021
+ return _toString(val, []);
6022
+ });
6023
+
6024
+ /**
6025
+ * Returns the larger of its two arguments.
6026
+ *
6027
+ * @func
6028
+ * @memberOf R
6029
+ * @since v0.1.0
6030
+ * @category Relation
6031
+ * @sig Ord a => a -> a -> a
6032
+ * @param {*} a
6033
+ * @param {*} b
6034
+ * @return {*}
6035
+ * @see R.maxBy, R.min
6036
+ * @example
6037
+ *
6038
+ * R.max(789, 123); //=> 789
6039
+ * R.max('a', 'b'); //=> 'b'
6040
+ */
6041
+
6042
+ var max = /*#__PURE__*/
6043
+ _curry2(function max(a, b) {
6044
+ if (a === b) {
6045
+ return b;
6046
+ }
6047
+ function safeMax(x, y) {
6048
+ if (x > y !== y > x) {
6049
+ return y > x ? y : x;
6050
+ }
6051
+ return undefined;
6052
+ }
6053
+ var maxByValue = safeMax(a, b);
6054
+ if (maxByValue !== undefined) {
6055
+ return maxByValue;
6056
+ }
6057
+ var maxByType = safeMax(_typeof$1(a), _typeof$1(b));
6058
+ if (maxByType !== undefined) {
6059
+ return maxByType === _typeof$1(a) ? a : b;
6060
+ }
6061
+ var stringA = toString(a);
6062
+ var maxByStringValue = safeMax(stringA, toString(b));
6063
+ if (maxByStringValue !== undefined) {
6064
+ return maxByStringValue === stringA ? a : b;
6065
+ }
6066
+ return b;
6067
+ });
6068
+
6069
+ var XMap = /*#__PURE__*/
6070
+ function () {
6071
+ function XMap(f, xf) {
6072
+ this.xf = xf;
6073
+ this.f = f;
6074
+ }
6075
+ XMap.prototype['@@transducer/init'] = _xfBase.init;
6076
+ XMap.prototype['@@transducer/result'] = _xfBase.result;
6077
+ XMap.prototype['@@transducer/step'] = function (result, input) {
6078
+ return this.xf['@@transducer/step'](result, this.f(input));
6079
+ };
6080
+ return XMap;
6081
+ }();
6082
+ var _xmap = function _xmap(f) {
6083
+ return function (xf) {
6084
+ return new XMap(f, xf);
6085
+ };
6086
+ };
6087
+
6088
+ /**
6089
+ * Takes a function and
6090
+ * a [functor](https://github.com/fantasyland/fantasy-land#functor),
6091
+ * applies the function to each of the functor's values, and returns
6092
+ * a functor of the same shape.
6093
+ *
6094
+ * Ramda provides suitable `map` implementations for `Array` and `Object`,
6095
+ * so this function may be applied to `[1, 2, 3]` or `{x: 1, y: 2, z: 3}`.
6096
+ *
6097
+ * Dispatches to the `map` method of the second argument, if present.
6098
+ *
6099
+ * Acts as a transducer if a transformer is given in list position.
6100
+ *
6101
+ * Also treats functions as functors and will compose them together.
6102
+ *
6103
+ * @func
6104
+ * @memberOf R
6105
+ * @since v0.1.0
6106
+ * @category List
6107
+ * @sig Functor f => (a -> b) -> f a -> f b
6108
+ * @param {Function} fn The function to be called on every element of the input `list`.
6109
+ * @param {Array} list The list to be iterated over.
6110
+ * @return {Array} The new list.
6111
+ * @see R.transduce, R.addIndex, R.pluck, R.project
6112
+ * @example
6113
+ *
6114
+ * const double = x => x * 2;
6115
+ *
6116
+ * R.map(double, [1, 2, 3]); //=> [2, 4, 6]
6117
+ *
6118
+ * R.map(double, {x: 1, y: 2, z: 3}); //=> {x: 2, y: 4, z: 6}
6119
+ * @symb R.map(f, [a, b]) = [f(a), f(b)]
6120
+ * @symb R.map(f, { x: a, y: b }) = { x: f(a), y: f(b) }
6121
+ * @symb R.map(f, functor_o) = functor_o.map(f)
6122
+ */
6123
+
6124
+ var map = /*#__PURE__*/
6125
+ _curry2( /*#__PURE__*/
6126
+ _dispatchable(['fantasy-land/map', 'map'], _xmap, function map(fn, functor) {
6127
+ switch (Object.prototype.toString.call(functor)) {
6128
+ case '[object Function]':
6129
+ return curryN(functor.length, function () {
6130
+ return fn.call(this, functor.apply(this, arguments));
6131
+ });
6132
+ case '[object Object]':
6133
+ return _arrayReduce(function (acc, key) {
6134
+ acc[key] = fn(functor[key]);
6135
+ return acc;
6136
+ }, {}, keys(functor));
6137
+ default:
6138
+ return _map(fn, functor);
6139
+ }
6140
+ }));
6141
+
6142
+ function _isString(x) {
6143
+ return Object.prototype.toString.call(x) === '[object String]';
6144
+ }
6145
+
6146
+ /**
6147
+ * Tests whether or not an object is similar to an array.
6148
+ *
6149
+ * @private
6150
+ * @category Type
6151
+ * @category List
6152
+ * @sig * -> Boolean
6153
+ * @param {*} x The object to test.
6154
+ * @return {Boolean} `true` if `x` has a numeric length property and extreme indices defined; `false` otherwise.
6155
+ * @example
6156
+ *
6157
+ * _isArrayLike([]); //=> true
6158
+ * _isArrayLike(true); //=> false
6159
+ * _isArrayLike({}); //=> false
6160
+ * _isArrayLike({length: 10}); //=> false
6161
+ * _isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true
6162
+ * _isArrayLike({nodeType: 1, length: 1}) // => false
6163
+ */
6164
+
6165
+ var _isArrayLike = /*#__PURE__*/
6166
+ _curry1(function isArrayLike(x) {
6167
+ if (_isArray(x)) {
6168
+ return true;
6169
+ }
6170
+ if (!x) {
6171
+ return false;
6172
+ }
6173
+ if (_typeof$1(x) !== 'object') {
6174
+ return false;
6175
+ }
6176
+ if (_isString(x)) {
6177
+ return false;
6178
+ }
6179
+ if (x.length === 0) {
6180
+ return true;
6181
+ }
6182
+ if (x.length > 0) {
6183
+ return x.hasOwnProperty(0) && x.hasOwnProperty(x.length - 1);
6184
+ }
6185
+ return false;
6186
+ });
6187
+
6188
+ var symIterator = typeof Symbol !== 'undefined' ? Symbol.iterator : '@@iterator';
6189
+ function _createReduce(arrayReduce, methodReduce, iterableReduce) {
6190
+ return function _reduce(xf, acc, list) {
6191
+ if (_isArrayLike(list)) {
6192
+ return arrayReduce(xf, acc, list);
6193
+ }
6194
+ if (list == null) {
6195
+ return acc;
6196
+ }
6197
+ if (typeof list['fantasy-land/reduce'] === 'function') {
6198
+ return methodReduce(xf, acc, list, 'fantasy-land/reduce');
6199
+ }
6200
+ if (list[symIterator] != null) {
6201
+ return iterableReduce(xf, acc, list[symIterator]());
6202
+ }
6203
+ if (typeof list.next === 'function') {
6204
+ return iterableReduce(xf, acc, list);
6205
+ }
6206
+ if (typeof list.reduce === 'function') {
6207
+ return methodReduce(xf, acc, list, 'reduce');
6208
+ }
6209
+ throw new TypeError('reduce: list must be array or iterable');
6210
+ };
6211
+ }
6212
+
6213
+ function _xArrayReduce(xf, acc, list) {
6214
+ var idx = 0;
6215
+ var len = list.length;
6216
+ while (idx < len) {
6217
+ acc = xf['@@transducer/step'](acc, list[idx]);
6218
+ if (acc && acc['@@transducer/reduced']) {
6219
+ acc = acc['@@transducer/value'];
6220
+ break;
6221
+ }
6222
+ idx += 1;
6223
+ }
6224
+ return xf['@@transducer/result'](acc);
6225
+ }
6226
+
6227
+ /**
6228
+ * Creates a function that is bound to a context.
6229
+ * Note: `R.bind` does not provide the additional argument-binding capabilities of
6230
+ * [Function.prototype.bind](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).
6231
+ *
6232
+ * @func
6233
+ * @memberOf R
6234
+ * @since v0.6.0
6235
+ * @category Function
6236
+ * @category Object
6237
+ * @sig (* -> *) -> {*} -> (* -> *)
6238
+ * @param {Function} fn The function to bind to context
6239
+ * @param {Object} thisObj The context to bind `fn` to
6240
+ * @return {Function} A function that will execute in the context of `thisObj`.
6241
+ * @see R.partial
6242
+ * @example
6243
+ *
6244
+ * const log = R.bind(console.log, console);
6245
+ * R.pipe(R.assoc('a', 2), R.tap(log), R.assoc('a', 3))({a: 1}); //=> {a: 3}
6246
+ * // logs {a: 2}
6247
+ * @symb R.bind(f, o)(a, b) = f.call(o, a, b)
6248
+ */
6249
+
6250
+ var bind = /*#__PURE__*/
6251
+ _curry2(function bind(fn, thisObj) {
6252
+ return _arity(fn.length, function () {
6253
+ return fn.apply(thisObj, arguments);
6254
+ });
6255
+ });
6256
+
6257
+ function _xIterableReduce(xf, acc, iter) {
6258
+ var step = iter.next();
6259
+ while (!step.done) {
6260
+ acc = xf['@@transducer/step'](acc, step.value);
6261
+ if (acc && acc['@@transducer/reduced']) {
6262
+ acc = acc['@@transducer/value'];
6263
+ break;
5978
6264
  }
5979
- idx -= 1;
6265
+ step = iter.next();
5980
6266
  }
5981
- return true;
6267
+ return xf['@@transducer/result'](acc);
6268
+ }
6269
+ function _xMethodReduce(xf, acc, obj, methodName) {
6270
+ return xf['@@transducer/result'](obj[methodName](bind(xf['@@transducer/step'], xf), acc));
6271
+ }
6272
+ var _xReduce = /*#__PURE__*/
6273
+ _createReduce(_xArrayReduce, _xMethodReduce, _xIterableReduce);
6274
+
6275
+ var XWrap = /*#__PURE__*/
6276
+ function () {
6277
+ function XWrap(fn) {
6278
+ this.f = fn;
6279
+ }
6280
+ XWrap.prototype['@@transducer/init'] = function () {
6281
+ throw new Error('init not implemented on XWrap');
6282
+ };
6283
+ XWrap.prototype['@@transducer/result'] = function (acc) {
6284
+ return acc;
6285
+ };
6286
+ XWrap.prototype['@@transducer/step'] = function (acc, x) {
6287
+ return this.f(acc, x);
6288
+ };
6289
+ return XWrap;
6290
+ }();
6291
+ function _xwrap(fn) {
6292
+ return new XWrap(fn);
5982
6293
  }
5983
6294
 
5984
6295
  /**
5985
- * Returns `true` if its arguments are equivalent, `false` otherwise. Handles
5986
- * cyclical data structures.
6296
+ * Returns a single item by iterating through the list, successively calling
6297
+ * the iterator function and passing it an accumulator value and the current
6298
+ * value from the array, and then passing the result to the next call.
5987
6299
  *
5988
- * Dispatches symmetrically to the `equals` methods of both arguments, if
5989
- * present.
6300
+ * The iterator function receives two values: *(acc, value)*. It may use
6301
+ * [`R.reduced`](#reduced) to shortcut the iteration.
6302
+ *
6303
+ * The arguments' order of [`reduceRight`](#reduceRight)'s iterator function
6304
+ * is *(value, acc)*.
6305
+ *
6306
+ * Note: `R.reduce` does not skip deleted or unassigned indices (sparse
6307
+ * arrays), unlike the native `Array.prototype.reduce` method. For more details
6308
+ * on this behavior, see:
6309
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce#Description
6310
+ *
6311
+ * Be cautious of mutating and returning the accumulator. If you reuse it across
6312
+ * invocations, it will continue to accumulate onto the same value. The general
6313
+ * recommendation is to always return a new value. If you can't do so for
6314
+ * performance reasons, then be sure to reinitialize the accumulator on each
6315
+ * invocation.
6316
+ *
6317
+ * Dispatches to the `reduce` method of the third argument, if present. When
6318
+ * doing so, it is up to the user to handle the [`R.reduced`](#reduced)
6319
+ * shortcuting, as this is not implemented by `reduce`.
5990
6320
  *
5991
6321
  * @func
5992
6322
  * @memberOf R
5993
- * @since v0.15.0
5994
- * @category Relation
5995
- * @sig a -> b -> Boolean
5996
- * @param {*} a
5997
- * @param {*} b
5998
- * @return {Boolean}
6323
+ * @since v0.1.0
6324
+ * @category List
6325
+ * @sig ((a, b) -> a) -> a -> [b] -> a
6326
+ * @param {Function} fn The iterator function. Receives two values, the accumulator and the
6327
+ * current element from the array.
6328
+ * @param {*} acc The accumulator value.
6329
+ * @param {Array} list The list to iterate over.
6330
+ * @return {*} The final, accumulated value.
6331
+ * @see R.reduced, R.addIndex, R.reduceRight
5999
6332
  * @example
6000
6333
  *
6001
- * R.equals(1, 1); //=> true
6002
- * R.equals(1, '1'); //=> false
6003
- * R.equals([1, 2, 3], [1, 2, 3]); //=> true
6334
+ * R.reduce(R.subtract, 0, [1, 2, 3, 4]) // => ((((0 - 1) - 2) - 3) - 4) = -10
6335
+ * // - -10
6336
+ * // / \ / \
6337
+ * // - 4 -6 4
6338
+ * // / \ / \
6339
+ * // - 3 ==> -3 3
6340
+ * // / \ / \
6341
+ * // - 2 -1 2
6342
+ * // / \ / \
6343
+ * // 0 1 0 1
6004
6344
  *
6005
- * const a = {}; a.v = a;
6006
- * const b = {}; b.v = b;
6007
- * R.equals(a, b); //=> true
6345
+ * @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)
6008
6346
  */
6009
6347
 
6010
- var equals = /*#__PURE__*/
6011
- _curry2(function equals(a, b) {
6012
- return _equals(a, b, [], []);
6348
+ var reduce = /*#__PURE__*/
6349
+ _curry3(function (xf, acc, list) {
6350
+ return _xReduce(typeof xf === 'function' ? _xwrap(xf) : xf, acc, list);
6013
6351
  });
6014
6352
 
6015
- function _indexOf(list, a, idx) {
6016
- var inf, item; // Array.prototype.indexOf doesn't exist below IE9
6017
-
6018
- if (typeof list.indexOf === 'function') {
6019
- switch (_typeof(a)) {
6020
- case 'number':
6021
- if (a === 0) {
6022
- // manually crawl the list to distinguish between +0 and -0
6023
- inf = 1 / a;
6024
- while (idx < list.length) {
6025
- item = list[idx];
6026
- if (item === 0 && 1 / item === inf) {
6027
- return idx;
6028
- }
6029
- idx += 1;
6030
- }
6031
- return -1;
6032
- } else if (a !== a) {
6033
- // NaN
6034
- while (idx < list.length) {
6035
- item = list[idx];
6036
- if (typeof item === 'number' && item !== item) {
6037
- return idx;
6038
- }
6039
- idx += 1;
6040
- }
6041
- return -1;
6042
- } // non-zero numbers can utilise Set
6043
-
6044
- return list.indexOf(a, idx);
6045
- // all these types can utilise Set
6046
-
6047
- case 'string':
6048
- case 'boolean':
6049
- case 'function':
6050
- case 'undefined':
6051
- return list.indexOf(a, idx);
6052
- case 'object':
6053
- if (a === null) {
6054
- // null can utilise Set
6055
- return list.indexOf(a, idx);
6056
- }
6057
- }
6058
- } // anything else not covered above, defer to R.equals
6059
-
6060
- while (idx < list.length) {
6061
- if (equals(list[idx], a)) {
6062
- return idx;
6063
- }
6064
- idx += 1;
6065
- }
6066
- return -1;
6353
+ function _identity(x) {
6354
+ return x;
6067
6355
  }
6068
6356
 
6069
- function _includes(a, list) {
6070
- return _indexOf(list, a, 0) >= 0;
6071
- }
6357
+ /**
6358
+ * A function that does nothing but return the parameter supplied to it. Good
6359
+ * as a default or placeholder function.
6360
+ *
6361
+ * @func
6362
+ * @memberOf R
6363
+ * @since v0.1.0
6364
+ * @category Function
6365
+ * @sig a -> a
6366
+ * @param {*} x The value to return.
6367
+ * @return {*} The input value, `x`.
6368
+ * @example
6369
+ *
6370
+ * R.identity(1); //=> 1
6371
+ *
6372
+ * const obj = {};
6373
+ * R.identity(obj) === obj; //=> true
6374
+ * @symb R.identity(a) = a
6375
+ */
6376
+
6377
+ var identity = /*#__PURE__*/
6378
+ _curry1(_identity);
6072
6379
 
6073
6380
  /**
6074
6381
  * Returns a function, `fn`, which encapsulates `if/else, if/else, ...` logic.
@@ -6154,7 +6461,7 @@ function () {
6154
6461
  return _Set;
6155
6462
  }();
6156
6463
  function hasOrAdd(item, shouldAdd, set) {
6157
- var type = _typeof(item);
6464
+ var type = _typeof$1(item);
6158
6465
  var prevSize, newSize;
6159
6466
  switch (type) {
6160
6467
  case 'string':
@@ -6298,10 +6605,11 @@ function () {
6298
6605
  };
6299
6606
  return XUniqBy;
6300
6607
  }();
6301
- var _xuniqBy = /*#__PURE__*/
6302
- _curry2(function _xuniqBy(f, xf) {
6303
- return new XUniqBy(f, xf);
6304
- });
6608
+ function _xuniqBy(f) {
6609
+ return function (xf) {
6610
+ return new XUniqBy(f, xf);
6611
+ };
6612
+ }
6305
6613
 
6306
6614
  /**
6307
6615
  * Returns a new list containing only one copy of each element in the original
@@ -6341,6 +6649,7 @@ _dispatchable([], _xuniqBy, function (fn, list) {
6341
6649
  }
6342
6650
  return result;
6343
6651
  }));
6652
+ var uniqBy$1 = uniqBy;
6344
6653
 
6345
6654
  /**
6346
6655
  * Returns a new list containing only one copy of each element in the original
@@ -6361,7 +6670,7 @@ _dispatchable([], _xuniqBy, function (fn, list) {
6361
6670
  */
6362
6671
 
6363
6672
  var uniq = /*#__PURE__*/
6364
- uniqBy(identity);
6673
+ uniqBy$1(identity);
6365
6674
  var uniq$1 = uniq;
6366
6675
 
6367
6676
  function _isNumber(x) {
@@ -6585,9 +6894,7 @@ var __assign$a = undefined && undefined.__assign || function () {
6585
6894
  __assign$a = Object.assign || function (t) {
6586
6895
  for (var s, i = 1, n = arguments.length; i < n; i++) {
6587
6896
  s = arguments[i];
6588
- for (var p in s) {
6589
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
6590
- }
6897
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
6591
6898
  }
6592
6899
  return t;
6593
6900
  };
@@ -6595,9 +6902,7 @@ var __assign$a = undefined && undefined.__assign || function () {
6595
6902
  };
6596
6903
  var __rest$9 = undefined && undefined.__rest || function (s, e) {
6597
6904
  var t = {};
6598
- for (var p in s) {
6599
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
6600
- }
6905
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
6601
6906
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
6602
6907
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
6603
6908
  }
@@ -6642,9 +6947,7 @@ var __assign$9 = undefined && undefined.__assign || function () {
6642
6947
  __assign$9 = Object.assign || function (t) {
6643
6948
  for (var s, i = 1, n = arguments.length; i < n; i++) {
6644
6949
  s = arguments[i];
6645
- for (var p in s) {
6646
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
6647
- }
6950
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
6648
6951
  }
6649
6952
  return t;
6650
6953
  };
@@ -6652,9 +6955,7 @@ var __assign$9 = undefined && undefined.__assign || function () {
6652
6955
  };
6653
6956
  var __rest$8 = undefined && undefined.__rest || function (s, e) {
6654
6957
  var t = {};
6655
- for (var p in s) {
6656
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
6657
- }
6958
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
6658
6959
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
6659
6960
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
6660
6961
  }
@@ -6880,11 +7181,7 @@ var ExceedConstrain = function ExceedConstrain(_ref) {
6880
7181
  }, rest), children);
6881
7182
  };
6882
7183
 
6883
- var reactInputMaskExports = {};
6884
- var reactInputMask = {
6885
- get exports(){ return reactInputMaskExports; },
6886
- set exports(v){ reactInputMaskExports = v; },
6887
- };
7184
+ var reactInputMask = {exports: {}};
6888
7185
 
6889
7186
  var reactInputMask_production_min;
6890
7187
  var hasRequiredReactInputMask_production_min;
@@ -6892,7 +7189,7 @@ function requireReactInputMask_production_min() {
6892
7189
  if (hasRequiredReactInputMask_production_min) return reactInputMask_production_min;
6893
7190
  hasRequiredReactInputMask_production_min = 1;
6894
7191
  function _interopDefault(e) {
6895
- return e && "object" == _typeof(e) && "default" in e ? e["default"] : e;
7192
+ return e && "object" == _typeof$1(e) && "default" in e ? e["default"] : e;
6896
7193
  }
6897
7194
  var React$1 = _interopDefault(React),
6898
7195
  reactDom = require$$1;
@@ -6908,9 +7205,7 @@ function requireReactInputMask_production_min() {
6908
7205
  return (_extends = Object.assign || function (e) {
6909
7206
  for (var t = 1; t < arguments.length; t++) {
6910
7207
  var n = arguments[t];
6911
- for (var a in n) {
6912
- Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
6913
- }
7208
+ for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
6914
7209
  }
6915
7210
  return e;
6916
7211
  }).apply(this, arguments);
@@ -6924,9 +7219,7 @@ function requireReactInputMask_production_min() {
6924
7219
  a,
6925
7220
  i = {},
6926
7221
  r = Object.keys(e);
6927
- for (a = 0; a < r.length; a++) {
6928
- n = r[a], 0 <= t.indexOf(n) || (i[n] = e[n]);
6929
- }
7222
+ for (a = 0; a < r.length; a++) n = r[a], 0 <= t.indexOf(n) || (i[n] = e[n]);
6930
7223
  return i;
6931
7224
  }
6932
7225
  function _assertThisInitialized(e) {
@@ -7017,9 +7310,7 @@ function requireReactInputMask_production_min() {
7017
7310
  var n = e.maskChar,
7018
7311
  a = e.prefix;
7019
7312
  if (!n) {
7020
- for (; t.length > a.length && isPermanentCharacter(e, t.length - 1);) {
7021
- t = t.slice(0, t.length - 1);
7022
- }
7313
+ for (; t.length > a.length && isPermanentCharacter(e, t.length - 1);) t = t.slice(0, t.length - 1);
7023
7314
  return t.length;
7024
7315
  }
7025
7316
  for (var i = a.length, r = t.length; r >= a.length; r--) {
@@ -7039,15 +7330,11 @@ function requireReactInputMask_production_min() {
7039
7330
  a = e.mask,
7040
7331
  i = e.prefix;
7041
7332
  if (!n) {
7042
- for ((t = insertString(e, "", t, 0)).length < i.length && (t = i); t.length < a.length && isPermanentCharacter(e, t.length);) {
7043
- t += a[t.length];
7044
- }
7333
+ for ((t = insertString(e, "", t, 0)).length < i.length && (t = i); t.length < a.length && isPermanentCharacter(e, t.length);) t += a[t.length];
7045
7334
  return t;
7046
7335
  }
7047
7336
  if (t) return insertString(e, formatValue(e, ""), t, 0);
7048
- for (var r = 0; r < a.length; r++) {
7049
- isPermanentCharacter(e, r) ? t += a[r] : t += n;
7050
- }
7337
+ for (var r = 0; r < a.length; r++) isPermanentCharacter(e, r) ? t += a[r] : t += n;
7051
7338
  return t;
7052
7339
  }
7053
7340
  function clearRange(n, e, a, t) {
@@ -7059,9 +7346,7 @@ function requireReactInputMask_production_min() {
7059
7346
  if (r) return l.map(function (e, t) {
7060
7347
  return t < a || i <= t ? e : isPermanentCharacter(n, t) ? o[t] : r;
7061
7348
  }).join("");
7062
- for (var u = i; u < l.length; u++) {
7063
- isPermanentCharacter(n, u) && (l[u] = "");
7064
- }
7349
+ for (var u = i; u < l.length; u++) isPermanentCharacter(n, u) && (l[u] = "");
7065
7350
  return a = Math.max(s.length, a), l.splice(a, i - a), e = l.join(""), formatValue(n, e);
7066
7351
  }
7067
7352
  function insertString(r, o, e, s) {
@@ -7085,23 +7370,17 @@ function requireReactInputMask_production_min() {
7085
7370
  n = t.split(""),
7086
7371
  s = i;
7087
7372
  return n.every(function (e) {
7088
- for (; n = e, isPermanentCharacter(a, t = i) && n !== r[t];) {
7089
- if (++i >= r.length) return !1;
7090
- }
7373
+ for (; n = e, isPermanentCharacter(a, t = i) && n !== r[t];) if (++i >= r.length) return !1;
7091
7374
  var t, n;
7092
7375
  return (isAllowedCharacter(a, i, e) || e === o) && i++, i < r.length;
7093
7376
  }), i - s;
7094
7377
  }
7095
7378
  function getLeftEditablePosition(e, t) {
7096
- for (var n = t; 0 <= n; --n) {
7097
- if (!isPermanentCharacter(e, n)) return n;
7098
- }
7379
+ for (var n = t; 0 <= n; --n) if (!isPermanentCharacter(e, n)) return n;
7099
7380
  return null;
7100
7381
  }
7101
7382
  function getRightEditablePosition(e, t) {
7102
- for (var n = e.mask, a = t; a < n.length; ++a) {
7103
- if (!isPermanentCharacter(e, a)) return a;
7104
- }
7383
+ for (var n = e.mask, a = t; a < n.length; ++a) if (!isPermanentCharacter(e, a)) return a;
7105
7384
  return null;
7106
7385
  }
7107
7386
  function getStringValue(e) {
@@ -7531,7 +7810,7 @@ function requireReactInputMask_development() {
7531
7810
  if (hasRequiredReactInputMask_development) return reactInputMask_development;
7532
7811
  hasRequiredReactInputMask_development = 1;
7533
7812
  function _interopDefault(ex) {
7534
- return ex && _typeof(ex) === 'object' && 'default' in ex ? ex['default'] : ex;
7813
+ return ex && _typeof$1(ex) === 'object' && 'default' in ex ? ex['default'] : ex;
7535
7814
  }
7536
7815
  var React$1 = _interopDefault(React);
7537
7816
  var reactDom = require$$1;
@@ -8463,13 +8742,12 @@ function requireReactInputMask_development() {
8463
8742
  return reactInputMask_development;
8464
8743
  }
8465
8744
 
8466
- (function (module) {
8467
- if (process.env.NODE_ENV === 'production') {
8468
- module.exports = requireReactInputMask_production_min();
8469
- } else {
8470
- module.exports = requireReactInputMask_development();
8471
- }
8472
- })(reactInputMask);
8745
+ if (process.env.NODE_ENV === 'production') {
8746
+ reactInputMask.exports = requireReactInputMask_production_min();
8747
+ } else {
8748
+ reactInputMask.exports = requireReactInputMask_development();
8749
+ }
8750
+ var reactInputMaskExports = reactInputMask.exports;
8473
8751
  var InputMask = /*@__PURE__*/getDefaultExportFromCjs(reactInputMaskExports);
8474
8752
 
8475
8753
  var cardTypes$1 = {
@@ -8733,9 +9011,7 @@ var __assign$8 = commonjsGlobal && commonjsGlobal.__assign || function () {
8733
9011
  __assign$8 = Object.assign || function (t) {
8734
9012
  for (var s, i = 1, n = arguments.length; i < n; i++) {
8735
9013
  s = arguments[i];
8736
- for (var p in s) {
8737
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8738
- }
9014
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8739
9015
  }
8740
9016
  return t;
8741
9017
  };
@@ -8836,14 +9112,13 @@ creditCardType.resetModifications = function () {
8836
9112
  };
8837
9113
  creditCardType.types = cardNames;
8838
9114
  var dist$2 = creditCardType;
9115
+ var creditCardType$1 = /*@__PURE__*/getDefaultExportFromCjs(dist$2);
8839
9116
 
8840
9117
  var __assign$7 = undefined && undefined.__assign || function () {
8841
9118
  __assign$7 = Object.assign || function (t) {
8842
9119
  for (var s, i = 1, n = arguments.length; i < n; i++) {
8843
9120
  s = arguments[i];
8844
- for (var p in s) {
8845
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8846
- }
9121
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8847
9122
  }
8848
9123
  return t;
8849
9124
  };
@@ -8851,9 +9126,7 @@ var __assign$7 = undefined && undefined.__assign || function () {
8851
9126
  };
8852
9127
  var __rest$7 = undefined && undefined.__rest || function (s, e) {
8853
9128
  var t = {};
8854
- for (var p in s) {
8855
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
8856
- }
9129
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
8857
9130
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8858
9131
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
8859
9132
  }
@@ -8927,9 +9200,7 @@ var __assign$6 = undefined && undefined.__assign || function () {
8927
9200
  __assign$6 = Object.assign || function (t) {
8928
9201
  for (var s, i = 1, n = arguments.length; i < n; i++) {
8929
9202
  s = arguments[i];
8930
- for (var p in s) {
8931
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8932
- }
9203
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8933
9204
  }
8934
9205
  return t;
8935
9206
  };
@@ -8937,9 +9208,7 @@ var __assign$6 = undefined && undefined.__assign || function () {
8937
9208
  };
8938
9209
  var __rest$6 = undefined && undefined.__rest || function (s, e) {
8939
9210
  var t = {};
8940
- for (var p in s) {
8941
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
8942
- }
9211
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
8943
9212
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8944
9213
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
8945
9214
  }
@@ -8984,9 +9253,7 @@ var __assign$5 = undefined && undefined.__assign || function () {
8984
9253
  __assign$5 = Object.assign || function (t) {
8985
9254
  for (var s, i = 1, n = arguments.length; i < n; i++) {
8986
9255
  s = arguments[i];
8987
- for (var p in s) {
8988
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8989
- }
9256
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8990
9257
  }
8991
9258
  return t;
8992
9259
  };
@@ -8994,9 +9261,7 @@ var __assign$5 = undefined && undefined.__assign || function () {
8994
9261
  };
8995
9262
  var __rest$5 = undefined && undefined.__rest || function (s, e) {
8996
9263
  var t = {};
8997
- for (var p in s) {
8998
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
8999
- }
9264
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
9000
9265
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
9001
9266
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
9002
9267
  }
@@ -9055,9 +9320,7 @@ mapCursorToMax.mapCursorToMax = function (cursor, max) {
9055
9320
  (function (exports) {
9056
9321
 
9057
9322
  function __export(m) {
9058
- for (var p in m) {
9059
- if (!exports.hasOwnProperty(p)) exports[p] = m[p];
9060
- }
9323
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
9061
9324
  }
9062
9325
  Object.defineProperty(exports, "__esModule", {
9063
9326
  value: true
@@ -9253,9 +9516,7 @@ var __assign$4 = undefined && undefined.__assign || function () {
9253
9516
  __assign$4 = Object.assign || function (t) {
9254
9517
  for (var s, i = 1, n = arguments.length; i < n; i++) {
9255
9518
  s = arguments[i];
9256
- for (var p in s) {
9257
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9258
- }
9519
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9259
9520
  }
9260
9521
  return t;
9261
9522
  };
@@ -9263,9 +9524,7 @@ var __assign$4 = undefined && undefined.__assign || function () {
9263
9524
  };
9264
9525
  var __rest$4 = undefined && undefined.__rest || function (s, e) {
9265
9526
  var t = {};
9266
- for (var p in s) {
9267
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
9268
- }
9527
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
9269
9528
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
9270
9529
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
9271
9530
  }
@@ -9316,9 +9575,7 @@ var __assign$3 = undefined && undefined.__assign || function () {
9316
9575
  __assign$3 = Object.assign || function (t) {
9317
9576
  for (var s, i = 1, n = arguments.length; i < n; i++) {
9318
9577
  s = arguments[i];
9319
- for (var p in s) {
9320
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9321
- }
9578
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9322
9579
  }
9323
9580
  return t;
9324
9581
  };
@@ -9326,9 +9583,7 @@ var __assign$3 = undefined && undefined.__assign || function () {
9326
9583
  };
9327
9584
  var __rest$3 = undefined && undefined.__rest || function (s, e) {
9328
9585
  var t = {};
9329
- for (var p in s) {
9330
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
9331
- }
9586
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
9332
9587
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
9333
9588
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
9334
9589
  }
@@ -9420,109 +9675,110 @@ var SearchInput = function SearchInput(_ref) {
9420
9675
  }, /*#__PURE__*/React.createElement(Exit20, null)));
9421
9676
  };
9422
9677
 
9423
- var e = function e(_e) {
9424
- return "object" == _typeof(_e) && null != _e && 1 === _e.nodeType;
9678
+ var t$1 = function t(_t) {
9679
+ return "object" == _typeof$1(_t) && null != _t && 1 === _t.nodeType;
9425
9680
  },
9426
- t$1 = function t(e, _t) {
9427
- return (!_t || "hidden" !== e) && "visible" !== e && "clip" !== e;
9681
+ e = function e(t, _e) {
9682
+ return (!_e || "hidden" !== t) && "visible" !== t && "clip" !== t;
9428
9683
  },
9429
- n = function n(e, _n) {
9430
- if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
9431
- var _l = getComputedStyle(e, null);
9432
- return t$1(_l.overflowY, _n) || t$1(_l.overflowX, _n) || function (e) {
9433
- var t = function (e) {
9434
- if (!e.ownerDocument || !e.ownerDocument.defaultView) return null;
9684
+ n = function n(t, _n) {
9685
+ if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) {
9686
+ var _l = getComputedStyle(t, null);
9687
+ return e(_l.overflowY, _n) || e(_l.overflowX, _n) || function (t) {
9688
+ var e = function (t) {
9689
+ if (!t.ownerDocument || !t.ownerDocument.defaultView) return null;
9435
9690
  try {
9436
- return e.ownerDocument.defaultView.frameElement;
9437
- } catch (e) {
9691
+ return t.ownerDocument.defaultView.frameElement;
9692
+ } catch (t) {
9438
9693
  return null;
9439
9694
  }
9440
- }(e);
9441
- return !!t && (t.clientHeight < e.scrollHeight || t.clientWidth < e.scrollWidth);
9442
- }(e);
9695
+ }(t);
9696
+ return !!e && (e.clientHeight < t.scrollHeight || e.clientWidth < t.scrollWidth);
9697
+ }(t);
9443
9698
  }
9444
9699
  return !1;
9445
9700
  },
9446
- l = function l(e, t, n, _l2, i, o, r, d) {
9447
- return o < e && r > t || o > e && r < t ? 0 : o <= e && d <= n || r >= t && d >= n ? o - e - _l2 : r > t && d < n || o < e && d > n ? r - t + i : 0;
9701
+ l = function l(t, e, n, _l2, i, o, r, d) {
9702
+ return o < t && r > e || o > t && r < e ? 0 : o <= t && d <= n || r >= e && d >= n ? o - t - _l2 : r > e && d < n || o < t && d > n ? r - e + i : 0;
9448
9703
  },
9449
- i = function i(e) {
9450
- var t = e.parentElement;
9451
- return null == t ? e.getRootNode().host || null : t;
9452
- };
9453
- var o$1 = function o(t, _o2) {
9454
- var r, d, h, f, u, s;
9455
- if ("undefined" == typeof document) return [];
9456
- var a = _o2.scrollMode,
9457
- c = _o2.block,
9458
- g = _o2.inline,
9459
- m = _o2.boundary,
9460
- p = _o2.skipOverflowHiddenElements,
9461
- w = "function" == typeof m ? m : function (e) {
9462
- return e !== m;
9463
- };
9464
- if (!e(t)) throw new TypeError("Invalid target");
9465
- var W = document.scrollingElement || document.documentElement,
9466
- H = [],
9467
- b = t;
9468
- for (; e(b) && w(b);) {
9469
- if (b = i(b), b === W) {
9470
- H.push(b);
9471
- break;
9704
+ i = function i(t) {
9705
+ var e = t.parentElement;
9706
+ return null == e ? t.getRootNode().host || null : e;
9707
+ },
9708
+ o$1 = function o(e, _o2) {
9709
+ var r, d, h, f;
9710
+ if ("undefined" == typeof document) return [];
9711
+ var u = _o2.scrollMode,
9712
+ s = _o2.block,
9713
+ c = _o2.inline,
9714
+ a = _o2.boundary,
9715
+ g = _o2.skipOverflowHiddenElements,
9716
+ m = "function" == typeof a ? a : function (t) {
9717
+ return t !== a;
9718
+ };
9719
+ if (!t$1(e)) throw new TypeError("Invalid target");
9720
+ var p = document.scrollingElement || document.documentElement,
9721
+ w = [],
9722
+ W = e;
9723
+ for (; t$1(W) && m(W);) {
9724
+ if (W = i(W), W === p) {
9725
+ w.push(W);
9726
+ break;
9727
+ }
9728
+ null != W && W === document.body && n(W) && !n(document.documentElement) || null != W && n(W, g) && w.push(W);
9729
+ }
9730
+ var H = null != (d = null == (r = window.visualViewport) ? void 0 : r.width) ? d : innerWidth,
9731
+ b = null != (f = null == (h = window.visualViewport) ? void 0 : h.height) ? f : innerHeight,
9732
+ _window = window,
9733
+ v = _window.scrollX,
9734
+ y = _window.scrollY,
9735
+ _e$getBoundingClientR = e.getBoundingClientRect(),
9736
+ E = _e$getBoundingClientR.height,
9737
+ M = _e$getBoundingClientR.width,
9738
+ x = _e$getBoundingClientR.top,
9739
+ I = _e$getBoundingClientR.right,
9740
+ C = _e$getBoundingClientR.bottom,
9741
+ R = _e$getBoundingClientR.left,
9742
+ T = "start" === s || "nearest" === s ? x : "end" === s ? C : x + E / 2,
9743
+ V = "center" === c ? R + M / 2 : "end" === c ? I : R,
9744
+ k = [];
9745
+ for (var _t2 = 0; _t2 < w.length; _t2++) {
9746
+ var _e2 = w[_t2],
9747
+ _e$getBoundingClientR2 = _e2.getBoundingClientRect(),
9748
+ _n2 = _e$getBoundingClientR2.height,
9749
+ _i = _e$getBoundingClientR2.width,
9750
+ _o = _e$getBoundingClientR2.top,
9751
+ _r = _e$getBoundingClientR2.right,
9752
+ _d = _e$getBoundingClientR2.bottom,
9753
+ _h = _e$getBoundingClientR2.left;
9754
+ if ("if-needed" === u && x >= 0 && R >= 0 && C <= b && I <= H && x >= _o && C <= _d && R >= _h && I <= _r) return k;
9755
+ var _f = getComputedStyle(_e2),
9756
+ _a = parseInt(_f.borderLeftWidth, 10),
9757
+ _g = parseInt(_f.borderTopWidth, 10),
9758
+ _m = parseInt(_f.borderRightWidth, 10),
9759
+ _W = parseInt(_f.borderBottomWidth, 10),
9760
+ B = 0,
9761
+ D = 0,
9762
+ L = "offsetWidth" in _e2 ? _e2.offsetWidth - _e2.clientWidth - _a - _m : 0,
9763
+ S = "offsetHeight" in _e2 ? _e2.offsetHeight - _e2.clientHeight - _g - _W : 0,
9764
+ X = "offsetWidth" in _e2 ? 0 === _e2.offsetWidth ? 0 : _i / _e2.offsetWidth : 0,
9765
+ Y = "offsetHeight" in _e2 ? 0 === _e2.offsetHeight ? 0 : _n2 / _e2.offsetHeight : 0;
9766
+ if (p === _e2) B = "start" === s ? T : "end" === s ? T - b : "nearest" === s ? l(y, y + b, b, _g, _W, y + T, y + T + E, E) : T - b / 2, D = "start" === c ? V : "center" === c ? V - H / 2 : "end" === c ? V - H : l(v, v + H, H, _a, _m, v + V, v + V + M, M), B = Math.max(0, B + y), D = Math.max(0, D + v);else {
9767
+ B = "start" === s ? T - _o - _g : "end" === s ? T - _d + _W + S : "nearest" === s ? l(_o, _d, _n2, _g, _W + S, T, T + E, E) : T - (_o + _n2 / 2) + S / 2, D = "start" === c ? V - _h - _a : "center" === c ? V - (_h + _i / 2) + L / 2 : "end" === c ? V - _r + _m + L : l(_h, _r, _i, _a, _m + L, V, V + M, M);
9768
+ var _t3 = _e2.scrollLeft,
9769
+ _f2 = _e2.scrollTop;
9770
+ B = Math.max(0, Math.min(_f2 + B / Y, _e2.scrollHeight - _n2 / Y + S)), D = Math.max(0, Math.min(_t3 + D / X, _e2.scrollWidth - _i / X + L)), T += _f2 - B, V += _t3 - D;
9771
+ }
9772
+ k.push({
9773
+ el: _e2,
9774
+ top: B,
9775
+ left: D
9776
+ });
9472
9777
  }
9473
- null != b && b === document.body && n(b) && !n(document.documentElement) || null != b && n(b, p) && H.push(b);
9474
- }
9475
- var v = null != (d = null == (r = window.visualViewport) ? void 0 : r.width) ? d : innerWidth,
9476
- y = null != (f = null == (h = window.visualViewport) ? void 0 : h.height) ? f : innerHeight,
9477
- E = null != (u = window.scrollX) ? u : pageXOffset,
9478
- M = null != (s = window.scrollY) ? s : pageYOffset,
9479
- _t$getBoundingClientR = t.getBoundingClientRect(),
9480
- x = _t$getBoundingClientR.height,
9481
- I = _t$getBoundingClientR.width,
9482
- C = _t$getBoundingClientR.top,
9483
- R = _t$getBoundingClientR.right,
9484
- T = _t$getBoundingClientR.bottom,
9485
- V = _t$getBoundingClientR.left,
9486
- k = "start" === c || "nearest" === c ? C : "end" === c ? T : C + x / 2,
9487
- B = "center" === g ? V + I / 2 : "end" === g ? R : V,
9488
- D = [];
9489
- for (var _e2 = 0; _e2 < H.length; _e2++) {
9490
- var _t2 = H[_e2],
9491
- _t2$getBoundingClient = _t2.getBoundingClientRect(),
9492
- _n2 = _t2$getBoundingClient.height,
9493
- _i = _t2$getBoundingClient.width,
9494
- _o = _t2$getBoundingClient.top,
9495
- _r = _t2$getBoundingClient.right,
9496
- _d = _t2$getBoundingClient.bottom,
9497
- _h = _t2$getBoundingClient.left;
9498
- if ("if-needed" === a && C >= 0 && V >= 0 && T <= y && R <= v && C >= _o && T <= _d && V >= _h && R <= _r) return D;
9499
- var _f = getComputedStyle(_t2),
9500
- _u = parseInt(_f.borderLeftWidth, 10),
9501
- _s = parseInt(_f.borderTopWidth, 10),
9502
- _m = parseInt(_f.borderRightWidth, 10),
9503
- _p = parseInt(_f.borderBottomWidth, 10),
9504
- _w = 0,
9505
- _b = 0,
9506
- O = "offsetWidth" in _t2 ? _t2.offsetWidth - _t2.clientWidth - _u - _m : 0,
9507
- X = "offsetHeight" in _t2 ? _t2.offsetHeight - _t2.clientHeight - _s - _p : 0,
9508
- Y = "offsetWidth" in _t2 ? 0 === _t2.offsetWidth ? 0 : _i / _t2.offsetWidth : 0,
9509
- L = "offsetHeight" in _t2 ? 0 === _t2.offsetHeight ? 0 : _n2 / _t2.offsetHeight : 0;
9510
- if (W === _t2) _w = "start" === c ? k : "end" === c ? k - y : "nearest" === c ? l(M, M + y, y, _s, _p, M + k, M + k + x, x) : k - y / 2, _b = "start" === g ? B : "center" === g ? B - v / 2 : "end" === g ? B - v : l(E, E + v, v, _u, _m, E + B, E + B + I, I), _w = Math.max(0, _w + M), _b = Math.max(0, _b + E);else {
9511
- _w = "start" === c ? k - _o - _s : "end" === c ? k - _d + _p + X : "nearest" === c ? l(_o, _d, _n2, _s, _p + X, k, k + x, x) : k - (_o + _n2 / 2) + X / 2, _b = "start" === g ? B - _h - _u : "center" === g ? B - (_h + _i / 2) + O / 2 : "end" === g ? B - _r + _m + O : l(_h, _r, _i, _u, _m + O, B, B + I, I);
9512
- var _e3 = _t2.scrollLeft,
9513
- _f2 = _t2.scrollTop;
9514
- _w = Math.max(0, Math.min(_f2 + _w / L, _t2.scrollHeight - _n2 / L + X)), _b = Math.max(0, Math.min(_e3 + _b / Y, _t2.scrollWidth - _i / Y + O)), k += _f2 - _w, B += _e3 - _b;
9515
- }
9516
- D.push({
9517
- el: _t2,
9518
- top: _w,
9519
- left: _b
9520
- });
9521
- }
9522
- return D;
9523
- };
9778
+ return k;
9779
+ };
9524
9780
 
9525
- var t = function t(e) {
9781
+ var o = function o(e) {
9526
9782
  return !1 === e ? {
9527
9783
  block: "end",
9528
9784
  inline: "nearest"
@@ -9533,25 +9789,38 @@ var t = function t(e) {
9533
9789
  inline: "nearest"
9534
9790
  };
9535
9791
  };
9536
- function o(o, l) {
9537
- var n = o.isConnected || o.ownerDocument.documentElement.contains(o);
9792
+ function t(t, n) {
9793
+ if (!t.isConnected || !function (e) {
9794
+ var o = e;
9795
+ for (; o && o.parentNode;) {
9796
+ if (o.parentNode === document) return !0;
9797
+ o = o.parentNode instanceof ShadowRoot ? o.parentNode.host : o.parentNode;
9798
+ }
9799
+ return !1;
9800
+ }(t)) return;
9538
9801
  if (function (e) {
9539
- return "object" == _typeof(e) && "function" == typeof e.behavior;
9540
- }(l)) return l.behavior(n ? o$1(o, l) : []);
9541
- if (!n) return;
9542
- var r = t(l),
9543
- c = o$1(o, r),
9544
- i = ("scrollBehavior" in document.body.style);
9545
- c.forEach(function (e) {
9546
- var t = e.el,
9547
- o = e.top,
9548
- l = e.left;
9549
- t.scroll && i ? t.scroll({
9550
- top: o,
9551
- left: l,
9552
- behavior: r.behavior
9553
- }) : (t.scrollTop = o, t.scrollLeft = l);
9554
- });
9802
+ return "object" == _typeof$1(e) && "function" == typeof e.behavior;
9803
+ }(n)) return n.behavior(o$1(t, n));
9804
+ var r = "boolean" == typeof n || null == n ? void 0 : n.behavior;
9805
+ var _iterator = _createForOfIteratorHelper(o$1(t, o(n))),
9806
+ _step;
9807
+ try {
9808
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
9809
+ var _step$value = _step.value,
9810
+ i = _step$value.el,
9811
+ a = _step$value.top,
9812
+ l = _step$value.left;
9813
+ i.scroll({
9814
+ top: a,
9815
+ left: l,
9816
+ behavior: r
9817
+ });
9818
+ }
9819
+ } catch (err) {
9820
+ _iterator.e(err);
9821
+ } finally {
9822
+ _iterator.f();
9823
+ }
9555
9824
  }
9556
9825
 
9557
9826
  var SelectOption = function SelectOption(_ref) {
@@ -9568,7 +9837,7 @@ var SelectOption = function SelectOption(_ref) {
9568
9837
  }, [onClick, option]);
9569
9838
  React.useEffect(function () {
9570
9839
  if (active && ref.current) {
9571
- o(ref.current, {
9840
+ t(ref.current, {
9572
9841
  scrollMode: 'if-needed',
9573
9842
  block: 'nearest'
9574
9843
  });
@@ -9687,11 +9956,11 @@ var useClickOutside = function useClickOutside(ref, onClickOutside) {
9687
9956
  });
9688
9957
  };
9689
9958
 
9690
- var Mode$1;
9691
- (function (Mode) {
9959
+ var Mode$1 = /*#__PURE__*/function (Mode) {
9692
9960
  Mode[Mode["Resting"] = 0] = "Resting";
9693
9961
  Mode[Mode["Open"] = 1] = "Open";
9694
- })(Mode$1 || (Mode$1 = {}));
9962
+ return Mode;
9963
+ }(Mode$1 || {});
9695
9964
  var reducer = function reducer(state, action) {
9696
9965
  switch (action.type) {
9697
9966
  case 'OPEN':
@@ -9721,7 +9990,7 @@ var useSelect = function useSelect(_ref) {
9721
9990
  var initialValue = value !== null && value !== void 0 ? value : defaultValue;
9722
9991
  var _useReducer = React.useReducer(reducer, {
9723
9992
  value: initialValue,
9724
- focused: _typeof(initialValue) == 'object' ? initialValue === null || initialValue === void 0 ? void 0 : initialValue[0] : initialValue,
9993
+ focused: _typeof$1(initialValue) == 'object' ? initialValue === null || initialValue === void 0 ? void 0 : initialValue[0] : initialValue,
9725
9994
  mode: Mode$1.Resting
9726
9995
  }),
9727
9996
  _useReducer2 = _slicedToArray(_useReducer, 2),
@@ -9902,9 +10171,7 @@ var __assign$2 = undefined && undefined.__assign || function () {
9902
10171
  __assign$2 = Object.assign || function (t) {
9903
10172
  for (var s, i = 1, n = arguments.length; i < n; i++) {
9904
10173
  s = arguments[i];
9905
- for (var p in s) {
9906
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9907
- }
10174
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9908
10175
  }
9909
10176
  return t;
9910
10177
  };
@@ -9912,9 +10179,7 @@ var __assign$2 = undefined && undefined.__assign || function () {
9912
10179
  };
9913
10180
  var __rest$2 = undefined && undefined.__rest || function (s, e) {
9914
10181
  var t = {};
9915
- for (var p in s) {
9916
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
9917
- }
10182
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
9918
10183
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
9919
10184
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
9920
10185
  }
@@ -10131,7 +10396,7 @@ var CreditCardNumberInput = function CreditCardNumberInput(_ref) {
10131
10396
  value = _useState2[0],
10132
10397
  setValue = _useState2[1];
10133
10398
  var mask = React.useMemo(function () {
10134
- var cardType = dist$2(value)[0];
10399
+ var cardType = creditCardType$1(value)[0];
10135
10400
  if (!cardType) return DEFAULT_MASK;
10136
10401
  var gaps = cardType.gaps,
10137
10402
  lengths = cardType.lengths;
@@ -10318,9 +10583,7 @@ useCursor.useCursor = function (_a) {
10318
10583
  (function (exports) {
10319
10584
 
10320
10585
  function __export(m) {
10321
- for (var p in m) {
10322
- if (!exports.hasOwnProperty(p)) exports[p] = m[p];
10323
- }
10586
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
10324
10587
  }
10325
10588
  Object.defineProperty(exports, "__esModule", {
10326
10589
  value: true
@@ -10665,9 +10928,7 @@ var __assign$1 = undefined && undefined.__assign || function () {
10665
10928
  __assign$1 = Object.assign || function (t) {
10666
10929
  for (var s, i = 1, n = arguments.length; i < n; i++) {
10667
10930
  s = arguments[i];
10668
- for (var p in s) {
10669
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
10670
- }
10931
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
10671
10932
  }
10672
10933
  return t;
10673
10934
  };
@@ -10675,9 +10936,7 @@ var __assign$1 = undefined && undefined.__assign || function () {
10675
10936
  };
10676
10937
  var __rest$1 = undefined && undefined.__rest || function (s, e) {
10677
10938
  var t = {};
10678
- for (var p in s) {
10679
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
10680
- }
10939
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
10681
10940
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
10682
10941
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
10683
10942
  }
@@ -10729,9 +10988,7 @@ var __assign = undefined && undefined.__assign || function () {
10729
10988
  __assign = Object.assign || function (t) {
10730
10989
  for (var s, i = 1, n = arguments.length; i < n; i++) {
10731
10990
  s = arguments[i];
10732
- for (var p in s) {
10733
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
10734
- }
10991
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
10735
10992
  }
10736
10993
  return t;
10737
10994
  };
@@ -10739,9 +10996,7 @@ var __assign = undefined && undefined.__assign || function () {
10739
10996
  };
10740
10997
  var __rest = undefined && undefined.__rest || function (s, e) {
10741
10998
  var t = {};
10742
- for (var p in s) {
10743
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
10744
- }
10999
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
10745
11000
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
10746
11001
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
10747
11002
  }
@@ -10877,15 +11132,15 @@ var POPOVER_MOUSEOUT_DELAY_MS = 200;
10877
11132
  var THREE_QUARTER_SECOND_DELAY = 750;
10878
11133
  var ONE_SECOND_DELAY = 1000;
10879
11134
  var FIVE_SECOND_DELAY = 5000;
10880
- var Mode;
10881
- (function (Mode) {
11135
+ var Mode = /*#__PURE__*/function (Mode) {
10882
11136
  Mode["Opening"] = "opening";
10883
11137
  Mode["Open"] = "open";
10884
11138
  Mode["Closing"] = "closing";
10885
11139
  Mode["AutoOpening"] = "autoOpening";
10886
11140
  Mode["AutoOpen"] = "autoOpen";
10887
11141
  Mode["Closed"] = "closed";
10888
- })(Mode || (Mode = {}));
11142
+ return Mode;
11143
+ }(Mode || {});
10889
11144
  var Popover = function Popover(_ref) {
10890
11145
  var className = _ref.className,
10891
11146
  children = _ref.children,