@moda/om 18.2.0 → 18.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -496,11 +496,7 @@ breakpoints.breakpoints = {
496
496
 
497
497
  var helpers = {};
498
498
 
499
- var colorStringExports = {};
500
- var colorString = {
501
- get exports(){ return colorStringExports; },
502
- set exports(v){ colorStringExports = v; },
503
- };
499
+ var colorString = {exports: {}};
504
500
 
505
501
  var colorName = {
506
502
  "aliceblue": [240, 248, 255],
@@ -653,11 +649,7 @@ var colorName = {
653
649
  "yellowgreen": [154, 205, 50]
654
650
  };
655
651
 
656
- var simpleSwizzleExports = {};
657
- var simpleSwizzle = {
658
- get exports(){ return simpleSwizzleExports; },
659
- set exports(v){ simpleSwizzleExports = v; },
660
- };
652
+ var simpleSwizzle = {exports: {}};
661
653
 
662
654
  var isArrayish$1 = function isArrayish(obj) {
663
655
  if (!obj || typeof obj === 'string') {
@@ -687,6 +679,7 @@ swizzle$1.wrap = function (fn) {
687
679
  return fn(swizzle$1(arguments));
688
680
  };
689
681
  };
682
+ var simpleSwizzleExports = simpleSwizzle.exports;
690
683
 
691
684
  /* MIT license */
692
685
  var colorNames = colorName;
@@ -878,6 +871,7 @@ function hexDouble(num) {
878
871
  var str = Math.round(num).toString(16).toUpperCase();
879
872
  return str.length < 2 ? '0' + str : str;
880
873
  }
874
+ var colorStringExports = colorString.exports;
881
875
 
882
876
  (function (exports) {
883
877
 
@@ -885,9 +879,7 @@ function hexDouble(num) {
885
879
  __assign = Object.assign || function (t) {
886
880
  for (var s, i = 1, n = arguments.length; i < n; i++) {
887
881
  s = arguments[i];
888
- for (var p in s) {
889
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
890
- }
882
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
891
883
  }
892
884
  return t;
893
885
  };
@@ -966,9 +958,7 @@ function hexDouble(num) {
966
958
  o[k2] = m[k];
967
959
  });
968
960
  var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function (m, exports) {
969
- for (var p in m) {
970
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
971
- }
961
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
972
962
  };
973
963
  Object.defineProperty(exports, "__esModule", {
974
964
  value: true
@@ -1053,17 +1043,17 @@ function _objectSpread2(target) {
1053
1043
  }
1054
1044
  return target;
1055
1045
  }
1056
- function _typeof(obj) {
1046
+ function _typeof$1(obj) {
1057
1047
  "@babel/helpers - typeof";
1058
1048
 
1059
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1049
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1060
1050
  return typeof obj;
1061
1051
  } : function (obj) {
1062
1052
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1063
- }, _typeof(obj);
1053
+ }, _typeof$1(obj);
1064
1054
  }
1065
1055
  function _defineProperty$1(obj, key, value) {
1066
- key = _toPropertyKey(key);
1056
+ key = _toPropertyKey$1(key);
1067
1057
  if (key in obj) {
1068
1058
  Object.defineProperty(obj, key, {
1069
1059
  value: value,
@@ -1154,7 +1144,58 @@ function _nonIterableSpread() {
1154
1144
  function _nonIterableRest() {
1155
1145
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1156
1146
  }
1157
- function _toPrimitive(input, hint) {
1147
+ function _createForOfIteratorHelper(o, allowArrayLike) {
1148
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
1149
+ if (!it) {
1150
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
1151
+ if (it) o = it;
1152
+ var i = 0;
1153
+ var F = function () {};
1154
+ return {
1155
+ s: F,
1156
+ n: function () {
1157
+ if (i >= o.length) return {
1158
+ done: true
1159
+ };
1160
+ return {
1161
+ done: false,
1162
+ value: o[i++]
1163
+ };
1164
+ },
1165
+ e: function (e) {
1166
+ throw e;
1167
+ },
1168
+ f: F
1169
+ };
1170
+ }
1171
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1172
+ }
1173
+ var normalCompletion = true,
1174
+ didErr = false,
1175
+ err;
1176
+ return {
1177
+ s: function () {
1178
+ it = it.call(o);
1179
+ },
1180
+ n: function () {
1181
+ var step = it.next();
1182
+ normalCompletion = step.done;
1183
+ return step;
1184
+ },
1185
+ e: function (e) {
1186
+ didErr = true;
1187
+ err = e;
1188
+ },
1189
+ f: function () {
1190
+ try {
1191
+ if (!normalCompletion && it.return != null) it.return();
1192
+ } finally {
1193
+ if (didErr) throw err;
1194
+ }
1195
+ }
1196
+ };
1197
+ }
1198
+ function _toPrimitive$1(input, hint) {
1158
1199
  if (typeof input !== "object" || input === null) return input;
1159
1200
  var prim = input[Symbol.toPrimitive];
1160
1201
  if (prim !== undefined) {
@@ -1164,8 +1205,8 @@ function _toPrimitive(input, hint) {
1164
1205
  }
1165
1206
  return (hint === "string" ? String : Number)(input);
1166
1207
  }
1167
- function _toPropertyKey(arg) {
1168
- var key = _toPrimitive(arg, "string");
1208
+ function _toPropertyKey$1(arg) {
1209
+ var key = _toPrimitive$1(arg, "string");
1169
1210
  return typeof key === "symbol" ? key : String(key);
1170
1211
  }
1171
1212
 
@@ -1173,11 +1214,7 @@ var isRenderProps = function isRenderProps(children) {
1173
1214
  return typeof children === 'function';
1174
1215
  };
1175
1216
 
1176
- var classnamesExports = {};
1177
- var classnames = {
1178
- get exports(){ return classnamesExports; },
1179
- set exports(v){ classnamesExports = v; },
1180
- };
1217
+ var classnames = {exports: {}};
1181
1218
 
1182
1219
  (function (module) {
1183
1220
  /* global define */
@@ -1190,7 +1227,7 @@ var classnames = {
1190
1227
  for (var i = 0; i < arguments.length; i++) {
1191
1228
  var arg = arguments[i];
1192
1229
  if (!arg) continue;
1193
- var argType = _typeof(arg);
1230
+ var argType = _typeof$1(arg);
1194
1231
  if (argType === 'string' || argType === 'number') {
1195
1232
  classes.push(arg);
1196
1233
  } else if (Array.isArray(arg)) {
@@ -1222,7 +1259,8 @@ var classnames = {
1222
1259
  }
1223
1260
  })();
1224
1261
  })(classnames);
1225
- var classNames = classnamesExports;
1262
+ var classnamesExports = classnames.exports;
1263
+ var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
1226
1264
 
1227
1265
  var _excluded$F = ["className", "children", "space", "direction", "alignItems", "justifyContent", "style"];
1228
1266
  var Stack = function Stack(_ref) {
@@ -1278,7 +1316,7 @@ var stringifyProps = function stringifyProps(props) {
1278
1316
  if (typeof value === 'function') return "".concat(memo, " ").concat(key, "={fn}");
1279
1317
  if (typeof value === 'boolean') return "".concat(memo, " ").concat(key).concat(value ? '' : '={false}');
1280
1318
  if (typeof value === 'number') return "".concat(memo, " ").concat(key, "={").concat(value, "}");
1281
- if (_typeof(value) === 'object') return "".concat(memo, " ").concat(key, "={...}");
1319
+ if (_typeof$1(value) === 'object') return "".concat(memo, " ").concat(key, "={...}");
1282
1320
  return "".concat(memo, " ").concat(key, "=").concat(value);
1283
1321
  }, '');
1284
1322
  return stringifiedProps.trim();
@@ -1286,9 +1324,7 @@ var stringifyProps = function stringifyProps(props) {
1286
1324
 
1287
1325
  /* eslint-disable @typescript-eslint/no-explicit-any */
1288
1326
 
1289
- /* eslint-enable @typescript-eslint/no-explicit-any */
1290
-
1291
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1327
+ /* eslint-enable @typescript-eslint/no-explicit-any */ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1292
1328
  var isEmpty = function isEmpty(obj) {
1293
1329
  return Object.entries(obj || {}).length === 0;
1294
1330
  };
@@ -1339,9 +1375,7 @@ var _assign = function __assign() {
1339
1375
  _assign = Object.assign || function __assign(t) {
1340
1376
  for (var s, i = 1, n = arguments.length; i < n; i++) {
1341
1377
  s = arguments[i];
1342
- for (var p in s) {
1343
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
1344
- }
1378
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
1345
1379
  }
1346
1380
  return t;
1347
1381
  };
@@ -1349,9 +1383,7 @@ var _assign = function __assign() {
1349
1383
  };
1350
1384
  function __rest$a(s, e) {
1351
1385
  var t = {};
1352
- for (var p in s) {
1353
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
1354
- }
1386
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
1355
1387
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1356
1388
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
1357
1389
  }
@@ -1360,14 +1392,8 @@ function __rest$a(s, e) {
1360
1392
 
1361
1393
  /** @deprecated */
1362
1394
  function __spreadArrays() {
1363
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) {
1364
- s += arguments[i].length;
1365
- }
1366
- for (var r = Array(s), k = 0, i = 0; i < il; i++) {
1367
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {
1368
- r[k] = a[j];
1369
- }
1370
- }
1395
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
1396
+ 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];
1371
1397
  return r;
1372
1398
  }
1373
1399
  function __spreadArray(to, from, pack) {
@@ -1661,17 +1687,9 @@ function _extends() {
1661
1687
  return _extends.apply(this, arguments);
1662
1688
  }
1663
1689
 
1664
- var propTypesExports = {};
1665
- var propTypes = {
1666
- get exports(){ return propTypesExports; },
1667
- set exports(v){ propTypesExports = v; },
1668
- };
1690
+ var propTypes = {exports: {}};
1669
1691
 
1670
- var reactIsExports = {};
1671
- var reactIs = {
1672
- get exports(){ return reactIsExports; },
1673
- set exports(v){ reactIsExports = v; },
1674
- };
1692
+ var reactIs = {exports: {}};
1675
1693
 
1676
1694
  var reactIs_production_min = {};
1677
1695
 
@@ -1699,7 +1717,7 @@ function requireReactIs_production_min() {
1699
1717
  x = b ? Symbol["for"]("react.responder") : 60118,
1700
1718
  y = b ? Symbol["for"]("react.scope") : 60119;
1701
1719
  function z(a) {
1702
- if ("object" === _typeof(a) && null !== a) {
1720
+ if ("object" === _typeof$1(a) && null !== a) {
1703
1721
  var u = a.$$typeof;
1704
1722
  switch (u) {
1705
1723
  case c:
@@ -1755,7 +1773,7 @@ function requireReactIs_production_min() {
1755
1773
  return z(a) === h;
1756
1774
  };
1757
1775
  reactIs_production_min.isElement = function (a) {
1758
- return "object" === _typeof(a) && null !== a && a.$$typeof === c;
1776
+ return "object" === _typeof$1(a) && null !== a && a.$$typeof === c;
1759
1777
  };
1760
1778
  reactIs_production_min.isForwardRef = function (a) {
1761
1779
  return z(a) === n;
@@ -1782,7 +1800,7 @@ function requireReactIs_production_min() {
1782
1800
  return z(a) === p;
1783
1801
  };
1784
1802
  reactIs_production_min.isValidElementType = function (a) {
1785
- 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);
1803
+ 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);
1786
1804
  };
1787
1805
  reactIs_production_min.typeOf = z;
1788
1806
  return reactIs_production_min;
@@ -1823,10 +1841,10 @@ function requireReactIs_development() {
1823
1841
  function isValidElementType(type) {
1824
1842
  return typeof type === 'string' || typeof type === 'function' ||
1825
1843
  // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1826
- 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);
1844
+ 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);
1827
1845
  }
1828
1846
  function typeOf(object) {
1829
- if (_typeof(object) === 'object' && object !== null) {
1847
+ if (_typeof$1(object) === 'object' && object !== null) {
1830
1848
  var $$typeof = object.$$typeof;
1831
1849
  switch ($$typeof) {
1832
1850
  case REACT_ELEMENT_TYPE:
@@ -1894,7 +1912,7 @@ function requireReactIs_development() {
1894
1912
  return typeOf(object) === REACT_PROVIDER_TYPE;
1895
1913
  }
1896
1914
  function isElement(object) {
1897
- return _typeof(object) === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1915
+ return _typeof$1(object) === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1898
1916
  }
1899
1917
  function isForwardRef(object) {
1900
1918
  return typeOf(object) === REACT_FORWARD_REF_TYPE;
@@ -1955,17 +1973,14 @@ function requireReactIs_development() {
1955
1973
 
1956
1974
  var hasRequiredReactIs;
1957
1975
  function requireReactIs() {
1958
- if (hasRequiredReactIs) return reactIsExports;
1976
+ if (hasRequiredReactIs) return reactIs.exports;
1959
1977
  hasRequiredReactIs = 1;
1960
- (function (module) {
1961
-
1962
- if (process.env.NODE_ENV === 'production') {
1963
- module.exports = requireReactIs_production_min();
1964
- } else {
1965
- module.exports = requireReactIs_development();
1966
- }
1967
- })(reactIs);
1968
- return reactIsExports;
1978
+ if (process.env.NODE_ENV === 'production') {
1979
+ reactIs.exports = requireReactIs_production_min();
1980
+ } else {
1981
+ reactIs.exports = requireReactIs_development();
1982
+ }
1983
+ return reactIs.exports;
1969
1984
  }
1970
1985
 
1971
1986
  /*
@@ -2126,7 +2141,7 @@ function requireCheckPropTypes() {
2126
2141
  // This is intentionally an invariant that gets caught. It's the same
2127
2142
  // behavior as without this statement except with a better message.
2128
2143
  if (typeof typeSpecs[typeSpecName] !== 'function') {
2129
- 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`.');
2144
+ 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`.');
2130
2145
  err.name = 'Invariant Violation';
2131
2146
  throw err;
2132
2147
  }
@@ -2135,7 +2150,7 @@ function requireCheckPropTypes() {
2135
2150
  error = ex;
2136
2151
  }
2137
2152
  if (error && !(error instanceof Error)) {
2138
- 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).');
2153
+ 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).');
2139
2154
  }
2140
2155
  if (error instanceof Error && !(error.message in loggedTypeFailures)) {
2141
2156
  // Only monitor this failure once because there tends to be a lot of the
@@ -2317,7 +2332,7 @@ function requireFactoryWithTypeCheckers() {
2317
2332
  */
2318
2333
  function PropTypeError(message, data) {
2319
2334
  this.message = message;
2320
- this.data = data && _typeof(data) === 'object' ? data : {};
2335
+ this.data = data && _typeof$1(data) === 'object' ? data : {};
2321
2336
  this.stack = '';
2322
2337
  }
2323
2338
  // Make `instanceof Error` still work for returned errors.
@@ -2577,7 +2592,7 @@ function requireFactoryWithTypeCheckers() {
2577
2592
  return createChainableTypeChecker(validate);
2578
2593
  }
2579
2594
  function isNode(propValue) {
2580
- switch (_typeof(propValue)) {
2595
+ switch (_typeof$1(propValue)) {
2581
2596
  case 'number':
2582
2597
  case 'string':
2583
2598
  case 'undefined':
@@ -2645,7 +2660,7 @@ function requireFactoryWithTypeCheckers() {
2645
2660
 
2646
2661
  // Equivalent of `typeof` but with special handling for array and regexp.
2647
2662
  function getPropType(propValue) {
2648
- var propType = _typeof(propValue);
2663
+ var propType = _typeof$1(propValue);
2649
2664
  if (Array.isArray(propValue)) {
2650
2665
  return 'array';
2651
2666
  }
@@ -2788,6 +2803,8 @@ if (process.env.NODE_ENV !== 'production') {
2788
2803
  // http://fb.me/prop-types-in-prod
2789
2804
  propTypes.exports = requireFactoryWithThrowingShims()();
2790
2805
  }
2806
+ var propTypesExports = propTypes.exports;
2807
+ var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
2791
2808
 
2792
2809
  /**
2793
2810
  * defines a focus group
@@ -2822,7 +2839,7 @@ var hiddenGuard = {
2822
2839
  left: '1px'
2823
2840
  };
2824
2841
  process.env.NODE_ENV !== "production" ? {
2825
- children: propTypesExports.node
2842
+ children: PropTypes.node
2826
2843
  } : {};
2827
2844
 
2828
2845
  var mediumFocus = createMedium({}, function (_ref) {
@@ -2900,7 +2917,7 @@ var FocusLock = /*#__PURE__*/React.forwardRef(function FocusLockUI(props, parent
2900
2917
  if (returnFocusTo && returnFocusTo.focus) {
2901
2918
  var howToReturnFocus = typeof shouldReturnFocus === 'function' ? shouldReturnFocus(returnFocusTo) : shouldReturnFocus;
2902
2919
  if (howToReturnFocus) {
2903
- var returnFocusOptions = _typeof(howToReturnFocus) === 'object' ? howToReturnFocus : undefined;
2920
+ var returnFocusOptions = _typeof$1(howToReturnFocus) === 'object' ? howToReturnFocus : undefined;
2904
2921
  originalFocusedElement.current = null;
2905
2922
  if (allowDefer) {
2906
2923
  // React might return focus after update
@@ -3066,18 +3083,20 @@ var FocusOn$1 = /*#__PURE__*/React.forwardRef(function (props, parentRef) {
3066
3083
  preventScrollOnFocus = props.preventScrollOnFocus,
3067
3084
  style = props.style,
3068
3085
  as = props.as,
3069
- rest = __rest$a(props, ["children", "autoFocus", "shards", "enabled", "scrollLock", "focusLock", "returnFocus", "inert", "allowPinchZoom", "sideCar", "className", "shouldIgnore", "preventScrollOnFocus", "style", "as"]);
3086
+ gapMode = props.gapMode,
3087
+ rest = __rest$a(props, ["children", "autoFocus", "shards", "enabled", "scrollLock", "focusLock", "returnFocus", "inert", "allowPinchZoom", "sideCar", "className", "shouldIgnore", "preventScrollOnFocus", "style", "as", "gapMode"]);
3070
3088
  var SideCar = sideCar;
3071
3089
  var onActivation = lockProps.onActivation,
3072
3090
  onDeactivation = lockProps.onDeactivation,
3073
3091
  restProps = __rest$a(lockProps, ["onActivation", "onDeactivation"]);
3074
3092
  var appliedLockProps = _assign(_assign({}, restProps), {
3093
+ as: as,
3094
+ style: style,
3075
3095
  sideCar: sideCar,
3076
3096
  shards: shards,
3077
3097
  allowPinchZoom: allowPinchZoom,
3078
- as: as,
3098
+ gapMode: gapMode,
3079
3099
  inert: inert,
3080
- style: style,
3081
3100
  enabled: enabled && scrollLock
3082
3101
  });
3083
3102
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FocusLockUI, {
@@ -3117,7 +3136,34 @@ function _inheritsLoose(subClass, superClass) {
3117
3136
  _setPrototypeOf(subClass, superClass);
3118
3137
  }
3119
3138
 
3139
+ function _typeof(obj) {
3140
+ "@babel/helpers - typeof";
3141
+
3142
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
3143
+ return typeof obj;
3144
+ } : function (obj) {
3145
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
3146
+ }, _typeof(obj);
3147
+ }
3148
+
3149
+ function _toPrimitive(input, hint) {
3150
+ if (_typeof(input) !== "object" || input === null) return input;
3151
+ var prim = input[Symbol.toPrimitive];
3152
+ if (prim !== undefined) {
3153
+ var res = prim.call(input, hint || "default");
3154
+ if (_typeof(res) !== "object") return res;
3155
+ throw new TypeError("@@toPrimitive must return a primitive value.");
3156
+ }
3157
+ return (hint === "string" ? String : Number)(input);
3158
+ }
3159
+
3160
+ function _toPropertyKey(arg) {
3161
+ var key = _toPrimitive(arg, "string");
3162
+ return _typeof(key) === "symbol" ? key : String(key);
3163
+ }
3164
+
3120
3165
  function _defineProperty(obj, key, value) {
3166
+ key = _toPropertyKey(key);
3121
3167
  if (key in obj) {
3122
3168
  Object.defineProperty(obj, key, {
3123
3169
  value: value,
@@ -3819,9 +3865,6 @@ var setFocus = function setFocus(topNode, lastNode, options) {
3819
3865
  }
3820
3866
  };
3821
3867
 
3822
- var moveFocusInside = setFocus;
3823
- //
3824
-
3825
3868
  /* eslint-disable no-mixed-operators */
3826
3869
  var focusOnBody = function focusOnBody() {
3827
3870
  return document && document.activeElement === document.body;
@@ -3921,7 +3964,7 @@ var activateTrap = function activateTrap() {
3921
3964
  }
3922
3965
  document.body.focus();
3923
3966
  } else {
3924
- result = moveFocusInside(workingArea, lastActiveFocus, {
3967
+ result = setFocus(workingArea, lastActiveFocus, {
3925
3968
  focusOptions: focusOptions
3926
3969
  });
3927
3970
  lastPortaledElement = {};
@@ -3978,7 +4021,7 @@ var FocusWatcher = function FocusWatcher() {
3978
4021
  return null;
3979
4022
  };
3980
4023
  process.env.NODE_ENV !== "production" ? {
3981
- children: propTypesExports.node.isRequired
4024
+ children: PropTypes.node.isRequired
3982
4025
  } : {};
3983
4026
  var onWindowBlur = function onWindowBlur() {
3984
4027
  focusWasOutsideWindow = 'just'; // using setTimeout to set this variable after React/sidecar reaction
@@ -4039,7 +4082,7 @@ mediumFocus.assignSyncMedium(onFocus);
4039
4082
  mediumBlur.assignMedium(onBlur);
4040
4083
  mediumEffect.assignMedium(function (cb) {
4041
4084
  return cb({
4042
- moveFocusInside: moveFocusInside,
4085
+ moveFocusInside: setFocus,
4043
4086
  focusInside: focusInside
4044
4087
  });
4045
4088
  });
@@ -4047,7 +4090,11 @@ var FocusTrap = withSideEffect(reducePropsToState, handleStateChangeOnClient)(Fo
4047
4090
 
4048
4091
  exportSidecar(mediumSidecar, FocusTrap);
4049
4092
 
4093
+ var currentNonce;
4050
4094
  var getNonce = function getNonce() {
4095
+ if (currentNonce) {
4096
+ return currentNonce;
4097
+ }
4051
4098
  if (typeof __webpack_nonce__ !== 'undefined') {
4052
4099
  return __webpack_nonce__;
4053
4100
  }
@@ -4766,9 +4813,7 @@ var scale = {};
4766
4813
  __assign = Object.assign || function (t) {
4767
4814
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4768
4815
  s = arguments[i];
4769
- for (var p in s) {
4770
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
4771
- }
4816
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
4772
4817
  }
4773
4818
  return t;
4774
4819
  };
@@ -4776,9 +4821,7 @@ var scale = {};
4776
4821
  };
4777
4822
  var __rest = commonjsGlobal && commonjsGlobal.__rest || function (s, e) {
4778
4823
  var t = {};
4779
- for (var p in s) {
4780
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
4781
- }
4824
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
4782
4825
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
4783
4826
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
4784
4827
  }
@@ -4838,9 +4881,7 @@ var scale = {};
4838
4881
  o[k2] = m[k];
4839
4882
  });
4840
4883
  var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function (m, exports) {
4841
- for (var p in m) {
4842
- if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
4843
- }
4884
+ for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
4844
4885
  };
4845
4886
  Object.defineProperty(exports, "__esModule", {
4846
4887
  value: true
@@ -4852,34 +4893,65 @@ var _excluded$C = ["aspectWidth", "aspectHeight", "maxWidth", "maxHeight", "outl
4852
4893
  var DEFAULT_PRODUCT_ASPECT_WIDTH = 128;
4853
4894
  var DEFAULT_PRODUCT_ASPECT_HEIGHT = 205;
4854
4895
  var DEFAULT_PRODUCT_ASPECT_RATIO = DEFAULT_PRODUCT_ASPECT_HEIGHT / DEFAULT_PRODUCT_ASPECT_WIDTH;
4855
- var AspectRatioBox = /*#__PURE__*/React__default.forwardRef(function (_ref, forwardedRef) {
4856
- var _ref$aspectWidth = _ref.aspectWidth,
4857
- aspectWidth = _ref$aspectWidth === void 0 ? DEFAULT_PRODUCT_ASPECT_WIDTH : _ref$aspectWidth,
4858
- _ref$aspectHeight = _ref.aspectHeight,
4859
- aspectHeight = _ref$aspectHeight === void 0 ? DEFAULT_PRODUCT_ASPECT_HEIGHT : _ref$aspectHeight,
4896
+ var scaleDimensions = function scaleDimensions(_ref) {
4897
+ var width = _ref.width,
4898
+ height = _ref.height,
4860
4899
  maxWidth = _ref.maxWidth,
4861
- maxHeight = _ref.maxHeight,
4862
- _ref$outlined = _ref.outlined,
4863
- outlined = _ref$outlined === void 0 ? false : _ref$outlined,
4864
- children = _ref.children,
4865
- className = _ref.className,
4866
- rest = _objectWithoutProperties(_ref, _excluded$C);
4867
- var _scale = dist$3.scale({
4900
+ maxHeight = _ref.maxHeight;
4901
+ if (maxWidth && maxHeight) return dist$3.scale({
4902
+ width: width,
4903
+ height: height,
4904
+ maxWidth: maxWidth,
4905
+ maxHeight: maxHeight
4906
+ });
4907
+ if (maxWidth) return dist$3.scale({
4908
+ width: width,
4909
+ height: height,
4910
+ maxWidth: maxWidth
4911
+ });
4912
+ if (maxHeight) return dist$3.scale({
4913
+ width: width,
4914
+ height: height,
4915
+ maxHeight: maxHeight
4916
+ });
4917
+ return {
4918
+ width: width,
4919
+ height: height,
4920
+ paddingBottom: dist$3.paddingBottom({
4921
+ width: width,
4922
+ height: height
4923
+ }),
4924
+ scale: 1
4925
+ };
4926
+ };
4927
+ var AspectRatioBox = /*#__PURE__*/React__default.forwardRef(function (_ref2, forwardedRef) {
4928
+ var _ref2$aspectWidth = _ref2.aspectWidth,
4929
+ aspectWidth = _ref2$aspectWidth === void 0 ? DEFAULT_PRODUCT_ASPECT_WIDTH : _ref2$aspectWidth,
4930
+ _ref2$aspectHeight = _ref2.aspectHeight,
4931
+ aspectHeight = _ref2$aspectHeight === void 0 ? DEFAULT_PRODUCT_ASPECT_HEIGHT : _ref2$aspectHeight,
4932
+ maxWidth = _ref2.maxWidth,
4933
+ maxHeight = _ref2.maxHeight,
4934
+ _ref2$outlined = _ref2.outlined,
4935
+ outlined = _ref2$outlined === void 0 ? false : _ref2$outlined,
4936
+ children = _ref2.children,
4937
+ className = _ref2.className,
4938
+ rest = _objectWithoutProperties(_ref2, _excluded$C);
4939
+ var _scaleDimensions = scaleDimensions({
4868
4940
  width: aspectWidth,
4869
4941
  height: aspectHeight,
4870
4942
  maxWidth: maxWidth,
4871
4943
  maxHeight: maxHeight
4872
4944
  }),
4873
- width = _scale.width,
4874
- paddingBottom = _scale.paddingBottom;
4945
+ width = _scaleDimensions.width,
4946
+ paddingBottom = _scaleDimensions.paddingBottom;
4875
4947
  return /*#__PURE__*/React__default.createElement("div", _extends$1({
4876
4948
  ref: forwardedRef,
4877
4949
  className: classNames('AspectRatioBox', {
4878
4950
  'AspectRatioBox--outlined': outlined
4879
4951
  }, className),
4880
- style: {
4952
+ style: maxWidth || maxHeight ? {
4881
4953
  maxWidth: "".concat(width, "px")
4882
- }
4954
+ } : undefined
4883
4955
  }, rest), /*#__PURE__*/React__default.createElement("div", {
4884
4956
  className: "AspectRatioBox__wrapper",
4885
4957
  style: {
@@ -5022,7 +5094,7 @@ var T = function T() {
5022
5094
  var otherwise = T;
5023
5095
 
5024
5096
  function _isPlaceholder(a) {
5025
- return a != null && _typeof(a) === 'object' && a['@@functional/placeholder'] === true;
5097
+ return a != null && _typeof$1(a) === 'object' && a['@@functional/placeholder'] === true;
5026
5098
  }
5027
5099
 
5028
5100
  /**
@@ -5322,257 +5394,99 @@ var _xfBase = {
5322
5394
  }
5323
5395
  };
5324
5396
 
5325
- /**
5326
- * Returns the larger of its two arguments.
5327
- *
5328
- * @func
5329
- * @memberOf R
5330
- * @since v0.1.0
5331
- * @category Relation
5332
- * @sig Ord a => a -> a -> a
5333
- * @param {*} a
5334
- * @param {*} b
5335
- * @return {*}
5336
- * @see R.maxBy, R.min
5337
- * @example
5338
- *
5339
- * R.max(789, 123); //=> 789
5340
- * R.max('a', 'b'); //=> 'b'
5341
- */
5342
-
5343
- var max = /*#__PURE__*/
5344
- _curry2(function max(a, b) {
5345
- return b > a ? b : a;
5346
- });
5397
+ function _arrayFromIterator(iter) {
5398
+ var list = [];
5399
+ var next;
5400
+ while (!(next = iter.next()).done) {
5401
+ list.push(next.value);
5402
+ }
5403
+ return list;
5404
+ }
5347
5405
 
5348
- function _map(fn, functor) {
5406
+ function _includesWith(pred, x, list) {
5349
5407
  var idx = 0;
5350
- var len = functor.length;
5351
- var result = Array(len);
5408
+ var len = list.length;
5352
5409
  while (idx < len) {
5353
- result[idx] = fn(functor[idx]);
5410
+ if (pred(x, list[idx])) {
5411
+ return true;
5412
+ }
5354
5413
  idx += 1;
5355
5414
  }
5356
- return result;
5415
+ return false;
5357
5416
  }
5358
5417
 
5359
- function _isString(x) {
5360
- return Object.prototype.toString.call(x) === '[object String]';
5418
+ function _functionName(f) {
5419
+ // String(x => x) evaluates to "x => x", so the pattern may not match.
5420
+ var match = String(f).match(/^function (\w*)/);
5421
+ return match == null ? '' : match[1];
5361
5422
  }
5362
5423
 
5363
- /**
5364
- * Tests whether or not an object is similar to an array.
5365
- *
5366
- * @private
5367
- * @category Type
5368
- * @category List
5369
- * @sig * -> Boolean
5370
- * @param {*} x The object to test.
5371
- * @return {Boolean} `true` if `x` has a numeric length property and extreme indices defined; `false` otherwise.
5372
- * @example
5373
- *
5374
- * _isArrayLike([]); //=> true
5375
- * _isArrayLike(true); //=> false
5376
- * _isArrayLike({}); //=> false
5377
- * _isArrayLike({length: 10}); //=> false
5378
- * _isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true
5379
- * _isArrayLike({nodeType: 1, length: 1}) // => false
5380
- */
5424
+ function _has(prop, obj) {
5425
+ return Object.prototype.hasOwnProperty.call(obj, prop);
5426
+ }
5381
5427
 
5382
- var _isArrayLike = /*#__PURE__*/
5383
- _curry1(function isArrayLike(x) {
5384
- if (_isArray(x)) {
5385
- return true;
5386
- }
5387
- if (!x) {
5388
- return false;
5389
- }
5390
- if (_typeof(x) !== 'object') {
5391
- return false;
5392
- }
5393
- if (_isString(x)) {
5394
- return false;
5395
- }
5396
- if (x.length === 0) {
5397
- return true;
5398
- }
5399
- if (x.length > 0) {
5400
- return x.hasOwnProperty(0) && x.hasOwnProperty(x.length - 1);
5428
+ // Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
5429
+ function _objectIs(a, b) {
5430
+ // SameValue algorithm
5431
+ if (a === b) {
5432
+ // Steps 1-5, 7-10
5433
+ // Steps 6.b-6.e: +0 != -0
5434
+ return a !== 0 || 1 / a === 1 / b;
5435
+ } else {
5436
+ // Step 6.a: NaN == NaN
5437
+ return a !== a && b !== b;
5401
5438
  }
5402
- return false;
5403
- });
5439
+ }
5440
+ var _objectIs$1 = typeof Object.is === 'function' ? Object.is : _objectIs;
5404
5441
 
5405
- var XWrap = /*#__PURE__*/
5442
+ var toString$1 = Object.prototype.toString;
5443
+ var _isArguments = /*#__PURE__*/
5406
5444
  function () {
5407
- function XWrap(fn) {
5408
- this.f = fn;
5409
- }
5410
- XWrap.prototype['@@transducer/init'] = function () {
5411
- throw new Error('init not implemented on XWrap');
5412
- };
5413
- XWrap.prototype['@@transducer/result'] = function (acc) {
5414
- return acc;
5415
- };
5416
- XWrap.prototype['@@transducer/step'] = function (acc, x) {
5417
- return this.f(acc, x);
5445
+ return toString$1.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
5446
+ return toString$1.call(x) === '[object Arguments]';
5447
+ } : function _isArguments(x) {
5448
+ return _has('callee', x);
5418
5449
  };
5419
- return XWrap;
5420
5450
  }();
5421
- function _xwrap(fn) {
5422
- return new XWrap(fn);
5423
- }
5424
5451
 
5452
+ var hasEnumBug = ! /*#__PURE__*/
5453
+ {
5454
+ toString: null
5455
+ }.propertyIsEnumerable('toString');
5456
+ var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString']; // Safari bug
5457
+
5458
+ var hasArgsEnumBug = /*#__PURE__*/
5459
+ function () {
5460
+
5461
+ return arguments.propertyIsEnumerable('length');
5462
+ }();
5463
+ var contains = function contains(list, item) {
5464
+ var idx = 0;
5465
+ while (idx < list.length) {
5466
+ if (list[idx] === item) {
5467
+ return true;
5468
+ }
5469
+ idx += 1;
5470
+ }
5471
+ return false;
5472
+ };
5425
5473
  /**
5426
- * Creates a function that is bound to a context.
5427
- * Note: `R.bind` does not provide the additional argument-binding capabilities of
5428
- * [Function.prototype.bind](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).
5474
+ * Returns a list containing the names of all the enumerable own properties of
5475
+ * the supplied object.
5476
+ * Note that the order of the output array is not guaranteed to be consistent
5477
+ * across different JS platforms.
5429
5478
  *
5430
5479
  * @func
5431
5480
  * @memberOf R
5432
- * @since v0.6.0
5433
- * @category Function
5481
+ * @since v0.1.0
5434
5482
  * @category Object
5435
- * @sig (* -> *) -> {*} -> (* -> *)
5436
- * @param {Function} fn The function to bind to context
5437
- * @param {Object} thisObj The context to bind `fn` to
5438
- * @return {Function} A function that will execute in the context of `thisObj`.
5439
- * @see R.partial
5483
+ * @sig {k: v} -> [k]
5484
+ * @param {Object} obj The object to extract properties from
5485
+ * @return {Array} An array of the object's own properties.
5486
+ * @see R.keysIn, R.values, R.toPairs
5440
5487
  * @example
5441
5488
  *
5442
- * const log = R.bind(console.log, console);
5443
- * R.pipe(R.assoc('a', 2), R.tap(log), R.assoc('a', 3))({a: 1}); //=> {a: 3}
5444
- * // logs {a: 2}
5445
- * @symb R.bind(f, o)(a, b) = f.call(o, a, b)
5446
- */
5447
-
5448
- var bind = /*#__PURE__*/
5449
- _curry2(function bind(fn, thisObj) {
5450
- return _arity(fn.length, function () {
5451
- return fn.apply(thisObj, arguments);
5452
- });
5453
- });
5454
-
5455
- function _arrayReduce(xf, acc, list) {
5456
- var idx = 0;
5457
- var len = list.length;
5458
- while (idx < len) {
5459
- acc = xf['@@transducer/step'](acc, list[idx]);
5460
- if (acc && acc['@@transducer/reduced']) {
5461
- acc = acc['@@transducer/value'];
5462
- break;
5463
- }
5464
- idx += 1;
5465
- }
5466
- return xf['@@transducer/result'](acc);
5467
- }
5468
- function _iterableReduce(xf, acc, iter) {
5469
- var step = iter.next();
5470
- while (!step.done) {
5471
- acc = xf['@@transducer/step'](acc, step.value);
5472
- if (acc && acc['@@transducer/reduced']) {
5473
- acc = acc['@@transducer/value'];
5474
- break;
5475
- }
5476
- step = iter.next();
5477
- }
5478
- return xf['@@transducer/result'](acc);
5479
- }
5480
- function _methodReduce(xf, acc, obj, methodName) {
5481
- return xf['@@transducer/result'](obj[methodName](bind(xf['@@transducer/step'], xf), acc));
5482
- }
5483
- var symIterator = typeof Symbol !== 'undefined' ? Symbol.iterator : '@@iterator';
5484
- function _reduce(fn, acc, list) {
5485
- if (typeof fn === 'function') {
5486
- fn = _xwrap(fn);
5487
- }
5488
- if (_isArrayLike(list)) {
5489
- return _arrayReduce(fn, acc, list);
5490
- }
5491
- if (typeof list['fantasy-land/reduce'] === 'function') {
5492
- return _methodReduce(fn, acc, list, 'fantasy-land/reduce');
5493
- }
5494
- if (list[symIterator] != null) {
5495
- return _iterableReduce(fn, acc, list[symIterator]());
5496
- }
5497
- if (typeof list.next === 'function') {
5498
- return _iterableReduce(fn, acc, list);
5499
- }
5500
- if (typeof list.reduce === 'function') {
5501
- return _methodReduce(fn, acc, list, 'reduce');
5502
- }
5503
- throw new TypeError('reduce: list must be array or iterable');
5504
- }
5505
-
5506
- var XMap = /*#__PURE__*/
5507
- function () {
5508
- function XMap(f, xf) {
5509
- this.xf = xf;
5510
- this.f = f;
5511
- }
5512
- XMap.prototype['@@transducer/init'] = _xfBase.init;
5513
- XMap.prototype['@@transducer/result'] = _xfBase.result;
5514
- XMap.prototype['@@transducer/step'] = function (result, input) {
5515
- return this.xf['@@transducer/step'](result, this.f(input));
5516
- };
5517
- return XMap;
5518
- }();
5519
- var _xmap = /*#__PURE__*/
5520
- _curry2(function _xmap(f, xf) {
5521
- return new XMap(f, xf);
5522
- });
5523
-
5524
- function _has(prop, obj) {
5525
- return Object.prototype.hasOwnProperty.call(obj, prop);
5526
- }
5527
-
5528
- var toString = Object.prototype.toString;
5529
- var _isArguments = /*#__PURE__*/
5530
- function () {
5531
- return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
5532
- return toString.call(x) === '[object Arguments]';
5533
- } : function _isArguments(x) {
5534
- return _has('callee', x);
5535
- };
5536
- }();
5537
-
5538
- var hasEnumBug = ! /*#__PURE__*/
5539
- {
5540
- toString: null
5541
- }.propertyIsEnumerable('toString');
5542
- var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString']; // Safari bug
5543
-
5544
- var hasArgsEnumBug = /*#__PURE__*/
5545
- function () {
5546
-
5547
- return arguments.propertyIsEnumerable('length');
5548
- }();
5549
- var contains = function contains(list, item) {
5550
- var idx = 0;
5551
- while (idx < list.length) {
5552
- if (list[idx] === item) {
5553
- return true;
5554
- }
5555
- idx += 1;
5556
- }
5557
- return false;
5558
- };
5559
- /**
5560
- * Returns a list containing the names of all the enumerable own properties of
5561
- * the supplied object.
5562
- * Note that the order of the output array is not guaranteed to be consistent
5563
- * across different JS platforms.
5564
- *
5565
- * @func
5566
- * @memberOf R
5567
- * @since v0.1.0
5568
- * @category Object
5569
- * @sig {k: v} -> [k]
5570
- * @param {Object} obj The object to extract properties from
5571
- * @return {Array} An array of the object's own properties.
5572
- * @see R.keysIn, R.values, R.toPairs
5573
- * @example
5574
- *
5575
- * R.keys({a: 1, b: 2, c: 3}); //=> ['a', 'b', 'c']
5489
+ * R.keys({a: 1, b: 2, c: 3}); //=> ['a', 'b', 'c']
5576
5490
  */
5577
5491
 
5578
5492
  var keys = typeof Object.keys === 'function' && !hasArgsEnumBug ? /*#__PURE__*/
@@ -5604,110 +5518,6 @@ _curry1(function keys(obj) {
5604
5518
  return ks;
5605
5519
  });
5606
5520
 
5607
- /**
5608
- * Takes a function and
5609
- * a [functor](https://github.com/fantasyland/fantasy-land#functor),
5610
- * applies the function to each of the functor's values, and returns
5611
- * a functor of the same shape.
5612
- *
5613
- * Ramda provides suitable `map` implementations for `Array` and `Object`,
5614
- * so this function may be applied to `[1, 2, 3]` or `{x: 1, y: 2, z: 3}`.
5615
- *
5616
- * Dispatches to the `map` method of the second argument, if present.
5617
- *
5618
- * Acts as a transducer if a transformer is given in list position.
5619
- *
5620
- * Also treats functions as functors and will compose them together.
5621
- *
5622
- * @func
5623
- * @memberOf R
5624
- * @since v0.1.0
5625
- * @category List
5626
- * @sig Functor f => (a -> b) -> f a -> f b
5627
- * @param {Function} fn The function to be called on every element of the input `list`.
5628
- * @param {Array} list The list to be iterated over.
5629
- * @return {Array} The new list.
5630
- * @see R.transduce, R.addIndex, R.pluck, R.project
5631
- * @example
5632
- *
5633
- * const double = x => x * 2;
5634
- *
5635
- * R.map(double, [1, 2, 3]); //=> [2, 4, 6]
5636
- *
5637
- * R.map(double, {x: 1, y: 2, z: 3}); //=> {x: 2, y: 4, z: 6}
5638
- * @symb R.map(f, [a, b]) = [f(a), f(b)]
5639
- * @symb R.map(f, { x: a, y: b }) = { x: f(a), y: f(b) }
5640
- * @symb R.map(f, functor_o) = functor_o.map(f)
5641
- */
5642
-
5643
- var map = /*#__PURE__*/
5644
- _curry2( /*#__PURE__*/
5645
- _dispatchable(['fantasy-land/map', 'map'], _xmap, function map(fn, functor) {
5646
- switch (Object.prototype.toString.call(functor)) {
5647
- case '[object Function]':
5648
- return curryN(functor.length, function () {
5649
- return fn.call(this, functor.apply(this, arguments));
5650
- });
5651
- case '[object Object]':
5652
- return _reduce(function (acc, key) {
5653
- acc[key] = fn(functor[key]);
5654
- return acc;
5655
- }, {}, keys(functor));
5656
- default:
5657
- return _map(fn, functor);
5658
- }
5659
- }));
5660
-
5661
- /**
5662
- * Returns a single item by iterating through the list, successively calling
5663
- * the iterator function and passing it an accumulator value and the current
5664
- * value from the array, and then passing the result to the next call.
5665
- *
5666
- * The iterator function receives two values: *(acc, value)*. It may use
5667
- * [`R.reduced`](#reduced) to shortcut the iteration.
5668
- *
5669
- * The arguments' order of [`reduceRight`](#reduceRight)'s iterator function
5670
- * is *(value, acc)*.
5671
- *
5672
- * Note: `R.reduce` does not skip deleted or unassigned indices (sparse
5673
- * arrays), unlike the native `Array.prototype.reduce` method. For more details
5674
- * on this behavior, see:
5675
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce#Description
5676
- *
5677
- * Dispatches to the `reduce` method of the third argument, if present. When
5678
- * doing so, it is up to the user to handle the [`R.reduced`](#reduced)
5679
- * shortcuting, as this is not implemented by `reduce`.
5680
- *
5681
- * @func
5682
- * @memberOf R
5683
- * @since v0.1.0
5684
- * @category List
5685
- * @sig ((a, b) -> a) -> a -> [b] -> a
5686
- * @param {Function} fn The iterator function. Receives two values, the accumulator and the
5687
- * current element from the array.
5688
- * @param {*} acc The accumulator value.
5689
- * @param {Array} list The list to iterate over.
5690
- * @return {*} The final, accumulated value.
5691
- * @see R.reduced, R.addIndex, R.reduceRight
5692
- * @example
5693
- *
5694
- * R.reduce(R.subtract, 0, [1, 2, 3, 4]) // => ((((0 - 1) - 2) - 3) - 4) = -10
5695
- * // - -10
5696
- * // / \ / \
5697
- * // - 4 -6 4
5698
- * // / \ / \
5699
- * // - 3 ==> -3 3
5700
- * // / \ / \
5701
- * // - 2 -1 2
5702
- * // / \ / \
5703
- * // 0 1 0 1
5704
- *
5705
- * @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)
5706
- */
5707
-
5708
- var reduce = /*#__PURE__*/
5709
- _curry3(_reduce);
5710
-
5711
5521
  /**
5712
5522
  * Gives a single-word string description of the (native) type of a value,
5713
5523
  * returning such answers as 'Object', 'Number', 'Array', or 'Null'. Does not
@@ -5718,7 +5528,7 @@ _curry3(_reduce);
5718
5528
  * @memberOf R
5719
5529
  * @since v0.8.0
5720
5530
  * @category Type
5721
- * @sig (* -> {*}) -> String
5531
+ * @sig * -> String
5722
5532
  * @param {*} val The value to test
5723
5533
  * @return {String}
5724
5534
  * @example
@@ -5739,95 +5549,27 @@ _curry1(function type(val) {
5739
5549
  return val === null ? 'Null' : val === undefined ? 'Undefined' : Object.prototype.toString.call(val).slice(8, -1);
5740
5550
  });
5741
5551
 
5742
- function _identity(x) {
5743
- return x;
5744
- }
5745
-
5746
5552
  /**
5747
- * A function that does nothing but return the parameter supplied to it. Good
5748
- * as a default or placeholder function.
5749
- *
5750
- * @func
5751
- * @memberOf R
5752
- * @since v0.1.0
5753
- * @category Function
5754
- * @sig a -> a
5755
- * @param {*} x The value to return.
5756
- * @return {*} The input value, `x`.
5757
- * @example
5758
- *
5759
- * R.identity(1); //=> 1
5553
+ * private _uniqContentEquals function.
5554
+ * That function is checking equality of 2 iterator contents with 2 assumptions
5555
+ * - iterators lengths are the same
5556
+ * - iterators values are unique
5760
5557
  *
5761
- * const obj = {};
5762
- * R.identity(obj) === obj; //=> true
5763
- * @symb R.identity(a) = a
5764
- */
5558
+ * false-positive result will be returned for comparison of, e.g.
5559
+ * - [1,2,3] and [1,2,3,4]
5560
+ * - [1,1,1] and [1,2,3]
5561
+ * */
5765
5562
 
5766
- var identity = /*#__PURE__*/
5767
- _curry1(_identity);
5563
+ function _uniqContentEquals(aIterator, bIterator, stackA, stackB) {
5564
+ var a = _arrayFromIterator(aIterator);
5565
+ var b = _arrayFromIterator(bIterator);
5566
+ function eq(_a, _b) {
5567
+ return _equals(_a, _b, stackA.slice(), stackB.slice());
5568
+ } // if *a* array contains any element that is not included in *b*
5768
5569
 
5769
- function _arrayFromIterator(iter) {
5770
- var list = [];
5771
- var next;
5772
- while (!(next = iter.next()).done) {
5773
- list.push(next.value);
5774
- }
5775
- return list;
5776
- }
5777
-
5778
- function _includesWith(pred, x, list) {
5779
- var idx = 0;
5780
- var len = list.length;
5781
- while (idx < len) {
5782
- if (pred(x, list[idx])) {
5783
- return true;
5784
- }
5785
- idx += 1;
5786
- }
5787
- return false;
5788
- }
5789
-
5790
- function _functionName(f) {
5791
- // String(x => x) evaluates to "x => x", so the pattern may not match.
5792
- var match = String(f).match(/^function (\w*)/);
5793
- return match == null ? '' : match[1];
5794
- }
5795
-
5796
- // Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
5797
- function _objectIs(a, b) {
5798
- // SameValue algorithm
5799
- if (a === b) {
5800
- // Steps 1-5, 7-10
5801
- // Steps 6.b-6.e: +0 != -0
5802
- return a !== 0 || 1 / a === 1 / b;
5803
- } else {
5804
- // Step 6.a: NaN == NaN
5805
- return a !== a && b !== b;
5806
- }
5807
- }
5808
- var _objectIs$1 = typeof Object.is === 'function' ? Object.is : _objectIs;
5809
-
5810
- /**
5811
- * private _uniqContentEquals function.
5812
- * That function is checking equality of 2 iterator contents with 2 assumptions
5813
- * - iterators lengths are the same
5814
- * - iterators values are unique
5815
- *
5816
- * false-positive result will be returned for comparison of, e.g.
5817
- * - [1,2,3] and [1,2,3,4]
5818
- * - [1,1,1] and [1,2,3]
5819
- * */
5820
-
5821
- function _uniqContentEquals(aIterator, bIterator, stackA, stackB) {
5822
- var a = _arrayFromIterator(aIterator);
5823
- var b = _arrayFromIterator(bIterator);
5824
- function eq(_a, _b) {
5825
- return _equals(_a, _b, stackA.slice(), stackB.slice());
5826
- } // if *a* array contains any element that is not included in *b*
5827
-
5828
- return !_includesWith(function (b, aItem) {
5829
- return !_includesWith(eq, aItem, b);
5830
- }, b, a);
5570
+ return !_includesWith(function (b, aItem) {
5571
+ return !_includesWith(eq, aItem, b);
5572
+ }, b, a);
5831
5573
  }
5832
5574
  function _equals(a, b, stackA, stackB) {
5833
5575
  if (_objectIs$1(a, b)) {
@@ -5854,7 +5596,7 @@ function _equals(a, b, stackA, stackB) {
5854
5596
  case 'Boolean':
5855
5597
  case 'Number':
5856
5598
  case 'String':
5857
- if (!(_typeof(a) === _typeof(b) && _objectIs$1(a.valueOf(), b.valueOf()))) {
5599
+ if (!(_typeof$1(a) === _typeof$1(b) && _objectIs$1(a.valueOf(), b.valueOf()))) {
5858
5600
  return false;
5859
5601
  }
5860
5602
  break;
@@ -5909,115 +5651,711 @@ function _equals(a, b, stackA, stackB) {
5909
5651
  case 'Float64Array':
5910
5652
  case 'ArrayBuffer':
5911
5653
  break;
5912
- default:
5913
- // Values of other types are only equal if identical.
5914
- return false;
5915
- }
5916
- var keysA = keys(a);
5917
- if (keysA.length !== keys(b).length) {
5918
- return false;
5919
- }
5920
- var extendedStackA = stackA.concat([a]);
5921
- var extendedStackB = stackB.concat([b]);
5922
- idx = keysA.length - 1;
5923
- while (idx >= 0) {
5924
- var key = keysA[idx];
5925
- if (!(_has(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) {
5926
- return false;
5654
+ default:
5655
+ // Values of other types are only equal if identical.
5656
+ return false;
5657
+ }
5658
+ var keysA = keys(a);
5659
+ if (keysA.length !== keys(b).length) {
5660
+ return false;
5661
+ }
5662
+ var extendedStackA = stackA.concat([a]);
5663
+ var extendedStackB = stackB.concat([b]);
5664
+ idx = keysA.length - 1;
5665
+ while (idx >= 0) {
5666
+ var key = keysA[idx];
5667
+ if (!(_has(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) {
5668
+ return false;
5669
+ }
5670
+ idx -= 1;
5671
+ }
5672
+ return true;
5673
+ }
5674
+
5675
+ /**
5676
+ * Returns `true` if its arguments are equivalent, `false` otherwise. Handles
5677
+ * cyclical data structures.
5678
+ *
5679
+ * Dispatches symmetrically to the `equals` methods of both arguments, if
5680
+ * present.
5681
+ *
5682
+ * @func
5683
+ * @memberOf R
5684
+ * @since v0.15.0
5685
+ * @category Relation
5686
+ * @sig a -> b -> Boolean
5687
+ * @param {*} a
5688
+ * @param {*} b
5689
+ * @return {Boolean}
5690
+ * @example
5691
+ *
5692
+ * R.equals(1, 1); //=> true
5693
+ * R.equals(1, '1'); //=> false
5694
+ * R.equals([1, 2, 3], [1, 2, 3]); //=> true
5695
+ *
5696
+ * const a = {}; a.v = a;
5697
+ * const b = {}; b.v = b;
5698
+ * R.equals(a, b); //=> true
5699
+ */
5700
+
5701
+ var equals = /*#__PURE__*/
5702
+ _curry2(function equals(a, b) {
5703
+ return _equals(a, b, [], []);
5704
+ });
5705
+
5706
+ function _indexOf(list, a, idx) {
5707
+ var inf, item; // Array.prototype.indexOf doesn't exist below IE9
5708
+
5709
+ if (typeof list.indexOf === 'function') {
5710
+ switch (_typeof$1(a)) {
5711
+ case 'number':
5712
+ if (a === 0) {
5713
+ // manually crawl the list to distinguish between +0 and -0
5714
+ inf = 1 / a;
5715
+ while (idx < list.length) {
5716
+ item = list[idx];
5717
+ if (item === 0 && 1 / item === inf) {
5718
+ return idx;
5719
+ }
5720
+ idx += 1;
5721
+ }
5722
+ return -1;
5723
+ } else if (a !== a) {
5724
+ // NaN
5725
+ while (idx < list.length) {
5726
+ item = list[idx];
5727
+ if (typeof item === 'number' && item !== item) {
5728
+ return idx;
5729
+ }
5730
+ idx += 1;
5731
+ }
5732
+ return -1;
5733
+ } // non-zero numbers can utilise Set
5734
+
5735
+ return list.indexOf(a, idx);
5736
+ // all these types can utilise Set
5737
+
5738
+ case 'string':
5739
+ case 'boolean':
5740
+ case 'function':
5741
+ case 'undefined':
5742
+ return list.indexOf(a, idx);
5743
+ case 'object':
5744
+ if (a === null) {
5745
+ // null can utilise Set
5746
+ return list.indexOf(a, idx);
5747
+ }
5748
+ }
5749
+ } // anything else not covered above, defer to R.equals
5750
+
5751
+ while (idx < list.length) {
5752
+ if (equals(list[idx], a)) {
5753
+ return idx;
5754
+ }
5755
+ idx += 1;
5756
+ }
5757
+ return -1;
5758
+ }
5759
+
5760
+ function _includes(a, list) {
5761
+ return _indexOf(list, a, 0) >= 0;
5762
+ }
5763
+
5764
+ function _map(fn, functor) {
5765
+ var idx = 0;
5766
+ var len = functor.length;
5767
+ var result = Array(len);
5768
+ while (idx < len) {
5769
+ result[idx] = fn(functor[idx]);
5770
+ idx += 1;
5771
+ }
5772
+ return result;
5773
+ }
5774
+
5775
+ function _quote(s) {
5776
+ var escaped = s.replace(/\\/g, '\\\\').replace(/[\b]/g, '\\b') // \b matches word boundary; [\b] matches backspace
5777
+ .replace(/\f/g, '\\f').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/\t/g, '\\t').replace(/\v/g, '\\v').replace(/\0/g, '\\0');
5778
+ return '"' + escaped.replace(/"/g, '\\"') + '"';
5779
+ }
5780
+
5781
+ /**
5782
+ * Polyfill from <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString>.
5783
+ */
5784
+ var pad = function pad(n) {
5785
+ return (n < 10 ? '0' : '') + n;
5786
+ };
5787
+ var _toISOString = typeof Date.prototype.toISOString === 'function' ? function _toISOString(d) {
5788
+ return d.toISOString();
5789
+ } : function _toISOString(d) {
5790
+ 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';
5791
+ };
5792
+
5793
+ function _complement(f) {
5794
+ return function () {
5795
+ return !f.apply(this, arguments);
5796
+ };
5797
+ }
5798
+
5799
+ function _arrayReduce(reducer, acc, list) {
5800
+ var index = 0;
5801
+ var length = list.length;
5802
+ while (index < length) {
5803
+ acc = reducer(acc, list[index]);
5804
+ index += 1;
5805
+ }
5806
+ return acc;
5807
+ }
5808
+
5809
+ function _filter(fn, list) {
5810
+ var idx = 0;
5811
+ var len = list.length;
5812
+ var result = [];
5813
+ while (idx < len) {
5814
+ if (fn(list[idx])) {
5815
+ result[result.length] = list[idx];
5816
+ }
5817
+ idx += 1;
5818
+ }
5819
+ return result;
5820
+ }
5821
+
5822
+ function _isObject(x) {
5823
+ return Object.prototype.toString.call(x) === '[object Object]';
5824
+ }
5825
+
5826
+ var XFilter = /*#__PURE__*/
5827
+ function () {
5828
+ function XFilter(f, xf) {
5829
+ this.xf = xf;
5830
+ this.f = f;
5831
+ }
5832
+ XFilter.prototype['@@transducer/init'] = _xfBase.init;
5833
+ XFilter.prototype['@@transducer/result'] = _xfBase.result;
5834
+ XFilter.prototype['@@transducer/step'] = function (result, input) {
5835
+ return this.f(input) ? this.xf['@@transducer/step'](result, input) : result;
5836
+ };
5837
+ return XFilter;
5838
+ }();
5839
+ function _xfilter(f) {
5840
+ return function (xf) {
5841
+ return new XFilter(f, xf);
5842
+ };
5843
+ }
5844
+
5845
+ /**
5846
+ * Takes a predicate and a `Filterable`, and returns a new filterable of the
5847
+ * same type containing the members of the given filterable which satisfy the
5848
+ * given predicate. Filterable objects include plain objects or any object
5849
+ * that has a filter method such as `Array`.
5850
+ *
5851
+ * Dispatches to the `filter` method of the second argument, if present.
5852
+ *
5853
+ * Acts as a transducer if a transformer is given in list position.
5854
+ *
5855
+ * @func
5856
+ * @memberOf R
5857
+ * @since v0.1.0
5858
+ * @category List
5859
+ * @category Object
5860
+ * @sig Filterable f => (a -> Boolean) -> f a -> f a
5861
+ * @param {Function} pred
5862
+ * @param {Array} filterable
5863
+ * @return {Array} Filterable
5864
+ * @see R.reject, R.transduce, R.addIndex
5865
+ * @example
5866
+ *
5867
+ * const isEven = n => n % 2 === 0;
5868
+ *
5869
+ * R.filter(isEven, [1, 2, 3, 4]); //=> [2, 4]
5870
+ *
5871
+ * R.filter(isEven, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
5872
+ */
5873
+
5874
+ var filter = /*#__PURE__*/
5875
+ _curry2( /*#__PURE__*/
5876
+ _dispatchable(['fantasy-land/filter', 'filter'], _xfilter, function (pred, filterable) {
5877
+ return _isObject(filterable) ? _arrayReduce(function (acc, key) {
5878
+ if (pred(filterable[key])) {
5879
+ acc[key] = filterable[key];
5880
+ }
5881
+ return acc;
5882
+ }, {}, keys(filterable)) :
5883
+ // else
5884
+ _filter(pred, filterable);
5885
+ }));
5886
+
5887
+ /**
5888
+ * The complement of [`filter`](#filter).
5889
+ *
5890
+ * Acts as a transducer if a transformer is given in list position. Filterable
5891
+ * objects include plain objects or any object that has a filter method such
5892
+ * as `Array`.
5893
+ *
5894
+ * @func
5895
+ * @memberOf R
5896
+ * @since v0.1.0
5897
+ * @category List
5898
+ * @sig Filterable f => (a -> Boolean) -> f a -> f a
5899
+ * @param {Function} pred
5900
+ * @param {Array} filterable
5901
+ * @return {Array}
5902
+ * @see R.filter, R.transduce, R.addIndex
5903
+ * @example
5904
+ *
5905
+ * const isOdd = (n) => n % 2 !== 0;
5906
+ *
5907
+ * R.reject(isOdd, [1, 2, 3, 4]); //=> [2, 4]
5908
+ *
5909
+ * R.reject(isOdd, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
5910
+ */
5911
+
5912
+ var reject = /*#__PURE__*/
5913
+ _curry2(function reject(pred, filterable) {
5914
+ return filter(_complement(pred), filterable);
5915
+ });
5916
+
5917
+ function _toString(x, seen) {
5918
+ var recur = function recur(y) {
5919
+ var xs = seen.concat([x]);
5920
+ return _includes(y, xs) ? '<Circular>' : _toString(y, xs);
5921
+ }; // mapPairs :: (Object, [String]) -> [String]
5922
+
5923
+ var mapPairs = function mapPairs(obj, keys) {
5924
+ return _map(function (k) {
5925
+ return _quote(k) + ': ' + recur(obj[k]);
5926
+ }, keys.slice().sort());
5927
+ };
5928
+ switch (Object.prototype.toString.call(x)) {
5929
+ case '[object Arguments]':
5930
+ return '(function() { return arguments; }(' + _map(recur, x).join(', ') + '))';
5931
+ case '[object Array]':
5932
+ return '[' + _map(recur, x).concat(mapPairs(x, reject(function (k) {
5933
+ return /^\d+$/.test(k);
5934
+ }, keys(x)))).join(', ') + ']';
5935
+ case '[object Boolean]':
5936
+ return _typeof$1(x) === 'object' ? 'new Boolean(' + recur(x.valueOf()) + ')' : x.toString();
5937
+ case '[object Date]':
5938
+ return 'new Date(' + (isNaN(x.valueOf()) ? recur(NaN) : _quote(_toISOString(x))) + ')';
5939
+ case '[object Map]':
5940
+ return 'new Map(' + recur(Array.from(x)) + ')';
5941
+ case '[object Null]':
5942
+ return 'null';
5943
+ case '[object Number]':
5944
+ return _typeof$1(x) === 'object' ? 'new Number(' + recur(x.valueOf()) + ')' : 1 / x === -Infinity ? '-0' : x.toString(10);
5945
+ case '[object Set]':
5946
+ return 'new Set(' + recur(Array.from(x).sort()) + ')';
5947
+ case '[object String]':
5948
+ return _typeof$1(x) === 'object' ? 'new String(' + recur(x.valueOf()) + ')' : _quote(x);
5949
+ case '[object Undefined]':
5950
+ return 'undefined';
5951
+ default:
5952
+ if (typeof x.toString === 'function') {
5953
+ var repr = x.toString();
5954
+ if (repr !== '[object Object]') {
5955
+ return repr;
5956
+ }
5957
+ }
5958
+ return '{' + mapPairs(x, keys(x)).join(', ') + '}';
5959
+ }
5960
+ }
5961
+
5962
+ /**
5963
+ * Returns the string representation of the given value. `eval`'ing the output
5964
+ * should result in a value equivalent to the input value. Many of the built-in
5965
+ * `toString` methods do not satisfy this requirement.
5966
+ *
5967
+ * If the given value is an `[object Object]` with a `toString` method other
5968
+ * than `Object.prototype.toString`, this method is invoked with no arguments
5969
+ * to produce the return value. This means user-defined constructor functions
5970
+ * can provide a suitable `toString` method. For example:
5971
+ *
5972
+ * function Point(x, y) {
5973
+ * this.x = x;
5974
+ * this.y = y;
5975
+ * }
5976
+ *
5977
+ * Point.prototype.toString = function() {
5978
+ * return 'new Point(' + this.x + ', ' + this.y + ')';
5979
+ * };
5980
+ *
5981
+ * R.toString(new Point(1, 2)); //=> 'new Point(1, 2)'
5982
+ *
5983
+ * @func
5984
+ * @memberOf R
5985
+ * @since v0.14.0
5986
+ * @category String
5987
+ * @sig * -> String
5988
+ * @param {*} val
5989
+ * @return {String}
5990
+ * @example
5991
+ *
5992
+ * R.toString(42); //=> '42'
5993
+ * R.toString('abc'); //=> '"abc"'
5994
+ * R.toString([1, 2, 3]); //=> '[1, 2, 3]'
5995
+ * R.toString({foo: 1, bar: 2, baz: 3}); //=> '{"bar": 2, "baz": 3, "foo": 1}'
5996
+ * R.toString(new Date('2001-02-03T04:05:06Z')); //=> 'new Date("2001-02-03T04:05:06.000Z")'
5997
+ */
5998
+
5999
+ var toString = /*#__PURE__*/
6000
+ _curry1(function toString(val) {
6001
+ return _toString(val, []);
6002
+ });
6003
+
6004
+ /**
6005
+ * Returns the larger of its two arguments.
6006
+ *
6007
+ * @func
6008
+ * @memberOf R
6009
+ * @since v0.1.0
6010
+ * @category Relation
6011
+ * @sig Ord a => a -> a -> a
6012
+ * @param {*} a
6013
+ * @param {*} b
6014
+ * @return {*}
6015
+ * @see R.maxBy, R.min
6016
+ * @example
6017
+ *
6018
+ * R.max(789, 123); //=> 789
6019
+ * R.max('a', 'b'); //=> 'b'
6020
+ */
6021
+
6022
+ var max = /*#__PURE__*/
6023
+ _curry2(function max(a, b) {
6024
+ if (a === b) {
6025
+ return b;
6026
+ }
6027
+ function safeMax(x, y) {
6028
+ if (x > y !== y > x) {
6029
+ return y > x ? y : x;
6030
+ }
6031
+ return undefined;
6032
+ }
6033
+ var maxByValue = safeMax(a, b);
6034
+ if (maxByValue !== undefined) {
6035
+ return maxByValue;
6036
+ }
6037
+ var maxByType = safeMax(_typeof$1(a), _typeof$1(b));
6038
+ if (maxByType !== undefined) {
6039
+ return maxByType === _typeof$1(a) ? a : b;
6040
+ }
6041
+ var stringA = toString(a);
6042
+ var maxByStringValue = safeMax(stringA, toString(b));
6043
+ if (maxByStringValue !== undefined) {
6044
+ return maxByStringValue === stringA ? a : b;
6045
+ }
6046
+ return b;
6047
+ });
6048
+
6049
+ var XMap = /*#__PURE__*/
6050
+ function () {
6051
+ function XMap(f, xf) {
6052
+ this.xf = xf;
6053
+ this.f = f;
6054
+ }
6055
+ XMap.prototype['@@transducer/init'] = _xfBase.init;
6056
+ XMap.prototype['@@transducer/result'] = _xfBase.result;
6057
+ XMap.prototype['@@transducer/step'] = function (result, input) {
6058
+ return this.xf['@@transducer/step'](result, this.f(input));
6059
+ };
6060
+ return XMap;
6061
+ }();
6062
+ var _xmap = function _xmap(f) {
6063
+ return function (xf) {
6064
+ return new XMap(f, xf);
6065
+ };
6066
+ };
6067
+
6068
+ /**
6069
+ * Takes a function and
6070
+ * a [functor](https://github.com/fantasyland/fantasy-land#functor),
6071
+ * applies the function to each of the functor's values, and returns
6072
+ * a functor of the same shape.
6073
+ *
6074
+ * Ramda provides suitable `map` implementations for `Array` and `Object`,
6075
+ * so this function may be applied to `[1, 2, 3]` or `{x: 1, y: 2, z: 3}`.
6076
+ *
6077
+ * Dispatches to the `map` method of the second argument, if present.
6078
+ *
6079
+ * Acts as a transducer if a transformer is given in list position.
6080
+ *
6081
+ * Also treats functions as functors and will compose them together.
6082
+ *
6083
+ * @func
6084
+ * @memberOf R
6085
+ * @since v0.1.0
6086
+ * @category List
6087
+ * @sig Functor f => (a -> b) -> f a -> f b
6088
+ * @param {Function} fn The function to be called on every element of the input `list`.
6089
+ * @param {Array} list The list to be iterated over.
6090
+ * @return {Array} The new list.
6091
+ * @see R.transduce, R.addIndex, R.pluck, R.project
6092
+ * @example
6093
+ *
6094
+ * const double = x => x * 2;
6095
+ *
6096
+ * R.map(double, [1, 2, 3]); //=> [2, 4, 6]
6097
+ *
6098
+ * R.map(double, {x: 1, y: 2, z: 3}); //=> {x: 2, y: 4, z: 6}
6099
+ * @symb R.map(f, [a, b]) = [f(a), f(b)]
6100
+ * @symb R.map(f, { x: a, y: b }) = { x: f(a), y: f(b) }
6101
+ * @symb R.map(f, functor_o) = functor_o.map(f)
6102
+ */
6103
+
6104
+ var map = /*#__PURE__*/
6105
+ _curry2( /*#__PURE__*/
6106
+ _dispatchable(['fantasy-land/map', 'map'], _xmap, function map(fn, functor) {
6107
+ switch (Object.prototype.toString.call(functor)) {
6108
+ case '[object Function]':
6109
+ return curryN(functor.length, function () {
6110
+ return fn.call(this, functor.apply(this, arguments));
6111
+ });
6112
+ case '[object Object]':
6113
+ return _arrayReduce(function (acc, key) {
6114
+ acc[key] = fn(functor[key]);
6115
+ return acc;
6116
+ }, {}, keys(functor));
6117
+ default:
6118
+ return _map(fn, functor);
6119
+ }
6120
+ }));
6121
+
6122
+ function _isString(x) {
6123
+ return Object.prototype.toString.call(x) === '[object String]';
6124
+ }
6125
+
6126
+ /**
6127
+ * Tests whether or not an object is similar to an array.
6128
+ *
6129
+ * @private
6130
+ * @category Type
6131
+ * @category List
6132
+ * @sig * -> Boolean
6133
+ * @param {*} x The object to test.
6134
+ * @return {Boolean} `true` if `x` has a numeric length property and extreme indices defined; `false` otherwise.
6135
+ * @example
6136
+ *
6137
+ * _isArrayLike([]); //=> true
6138
+ * _isArrayLike(true); //=> false
6139
+ * _isArrayLike({}); //=> false
6140
+ * _isArrayLike({length: 10}); //=> false
6141
+ * _isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true
6142
+ * _isArrayLike({nodeType: 1, length: 1}) // => false
6143
+ */
6144
+
6145
+ var _isArrayLike = /*#__PURE__*/
6146
+ _curry1(function isArrayLike(x) {
6147
+ if (_isArray(x)) {
6148
+ return true;
6149
+ }
6150
+ if (!x) {
6151
+ return false;
6152
+ }
6153
+ if (_typeof$1(x) !== 'object') {
6154
+ return false;
6155
+ }
6156
+ if (_isString(x)) {
6157
+ return false;
6158
+ }
6159
+ if (x.length === 0) {
6160
+ return true;
6161
+ }
6162
+ if (x.length > 0) {
6163
+ return x.hasOwnProperty(0) && x.hasOwnProperty(x.length - 1);
6164
+ }
6165
+ return false;
6166
+ });
6167
+
6168
+ var symIterator = typeof Symbol !== 'undefined' ? Symbol.iterator : '@@iterator';
6169
+ function _createReduce(arrayReduce, methodReduce, iterableReduce) {
6170
+ return function _reduce(xf, acc, list) {
6171
+ if (_isArrayLike(list)) {
6172
+ return arrayReduce(xf, acc, list);
6173
+ }
6174
+ if (list == null) {
6175
+ return acc;
6176
+ }
6177
+ if (typeof list['fantasy-land/reduce'] === 'function') {
6178
+ return methodReduce(xf, acc, list, 'fantasy-land/reduce');
6179
+ }
6180
+ if (list[symIterator] != null) {
6181
+ return iterableReduce(xf, acc, list[symIterator]());
6182
+ }
6183
+ if (typeof list.next === 'function') {
6184
+ return iterableReduce(xf, acc, list);
6185
+ }
6186
+ if (typeof list.reduce === 'function') {
6187
+ return methodReduce(xf, acc, list, 'reduce');
6188
+ }
6189
+ throw new TypeError('reduce: list must be array or iterable');
6190
+ };
6191
+ }
6192
+
6193
+ function _xArrayReduce(xf, acc, list) {
6194
+ var idx = 0;
6195
+ var len = list.length;
6196
+ while (idx < len) {
6197
+ acc = xf['@@transducer/step'](acc, list[idx]);
6198
+ if (acc && acc['@@transducer/reduced']) {
6199
+ acc = acc['@@transducer/value'];
6200
+ break;
6201
+ }
6202
+ idx += 1;
6203
+ }
6204
+ return xf['@@transducer/result'](acc);
6205
+ }
6206
+
6207
+ /**
6208
+ * Creates a function that is bound to a context.
6209
+ * Note: `R.bind` does not provide the additional argument-binding capabilities of
6210
+ * [Function.prototype.bind](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).
6211
+ *
6212
+ * @func
6213
+ * @memberOf R
6214
+ * @since v0.6.0
6215
+ * @category Function
6216
+ * @category Object
6217
+ * @sig (* -> *) -> {*} -> (* -> *)
6218
+ * @param {Function} fn The function to bind to context
6219
+ * @param {Object} thisObj The context to bind `fn` to
6220
+ * @return {Function} A function that will execute in the context of `thisObj`.
6221
+ * @see R.partial
6222
+ * @example
6223
+ *
6224
+ * const log = R.bind(console.log, console);
6225
+ * R.pipe(R.assoc('a', 2), R.tap(log), R.assoc('a', 3))({a: 1}); //=> {a: 3}
6226
+ * // logs {a: 2}
6227
+ * @symb R.bind(f, o)(a, b) = f.call(o, a, b)
6228
+ */
6229
+
6230
+ var bind = /*#__PURE__*/
6231
+ _curry2(function bind(fn, thisObj) {
6232
+ return _arity(fn.length, function () {
6233
+ return fn.apply(thisObj, arguments);
6234
+ });
6235
+ });
6236
+
6237
+ function _xIterableReduce(xf, acc, iter) {
6238
+ var step = iter.next();
6239
+ while (!step.done) {
6240
+ acc = xf['@@transducer/step'](acc, step.value);
6241
+ if (acc && acc['@@transducer/reduced']) {
6242
+ acc = acc['@@transducer/value'];
6243
+ break;
5927
6244
  }
5928
- idx -= 1;
6245
+ step = iter.next();
5929
6246
  }
5930
- return true;
6247
+ return xf['@@transducer/result'](acc);
6248
+ }
6249
+ function _xMethodReduce(xf, acc, obj, methodName) {
6250
+ return xf['@@transducer/result'](obj[methodName](bind(xf['@@transducer/step'], xf), acc));
6251
+ }
6252
+ var _xReduce = /*#__PURE__*/
6253
+ _createReduce(_xArrayReduce, _xMethodReduce, _xIterableReduce);
6254
+
6255
+ var XWrap = /*#__PURE__*/
6256
+ function () {
6257
+ function XWrap(fn) {
6258
+ this.f = fn;
6259
+ }
6260
+ XWrap.prototype['@@transducer/init'] = function () {
6261
+ throw new Error('init not implemented on XWrap');
6262
+ };
6263
+ XWrap.prototype['@@transducer/result'] = function (acc) {
6264
+ return acc;
6265
+ };
6266
+ XWrap.prototype['@@transducer/step'] = function (acc, x) {
6267
+ return this.f(acc, x);
6268
+ };
6269
+ return XWrap;
6270
+ }();
6271
+ function _xwrap(fn) {
6272
+ return new XWrap(fn);
5931
6273
  }
5932
6274
 
5933
6275
  /**
5934
- * Returns `true` if its arguments are equivalent, `false` otherwise. Handles
5935
- * cyclical data structures.
6276
+ * Returns a single item by iterating through the list, successively calling
6277
+ * the iterator function and passing it an accumulator value and the current
6278
+ * value from the array, and then passing the result to the next call.
5936
6279
  *
5937
- * Dispatches symmetrically to the `equals` methods of both arguments, if
5938
- * present.
6280
+ * The iterator function receives two values: *(acc, value)*. It may use
6281
+ * [`R.reduced`](#reduced) to shortcut the iteration.
6282
+ *
6283
+ * The arguments' order of [`reduceRight`](#reduceRight)'s iterator function
6284
+ * is *(value, acc)*.
6285
+ *
6286
+ * Note: `R.reduce` does not skip deleted or unassigned indices (sparse
6287
+ * arrays), unlike the native `Array.prototype.reduce` method. For more details
6288
+ * on this behavior, see:
6289
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce#Description
6290
+ *
6291
+ * Be cautious of mutating and returning the accumulator. If you reuse it across
6292
+ * invocations, it will continue to accumulate onto the same value. The general
6293
+ * recommendation is to always return a new value. If you can't do so for
6294
+ * performance reasons, then be sure to reinitialize the accumulator on each
6295
+ * invocation.
6296
+ *
6297
+ * Dispatches to the `reduce` method of the third argument, if present. When
6298
+ * doing so, it is up to the user to handle the [`R.reduced`](#reduced)
6299
+ * shortcuting, as this is not implemented by `reduce`.
5939
6300
  *
5940
6301
  * @func
5941
6302
  * @memberOf R
5942
- * @since v0.15.0
5943
- * @category Relation
5944
- * @sig a -> b -> Boolean
5945
- * @param {*} a
5946
- * @param {*} b
5947
- * @return {Boolean}
6303
+ * @since v0.1.0
6304
+ * @category List
6305
+ * @sig ((a, b) -> a) -> a -> [b] -> a
6306
+ * @param {Function} fn The iterator function. Receives two values, the accumulator and the
6307
+ * current element from the array.
6308
+ * @param {*} acc The accumulator value.
6309
+ * @param {Array} list The list to iterate over.
6310
+ * @return {*} The final, accumulated value.
6311
+ * @see R.reduced, R.addIndex, R.reduceRight
5948
6312
  * @example
5949
6313
  *
5950
- * R.equals(1, 1); //=> true
5951
- * R.equals(1, '1'); //=> false
5952
- * R.equals([1, 2, 3], [1, 2, 3]); //=> true
6314
+ * R.reduce(R.subtract, 0, [1, 2, 3, 4]) // => ((((0 - 1) - 2) - 3) - 4) = -10
6315
+ * // - -10
6316
+ * // / \ / \
6317
+ * // - 4 -6 4
6318
+ * // / \ / \
6319
+ * // - 3 ==> -3 3
6320
+ * // / \ / \
6321
+ * // - 2 -1 2
6322
+ * // / \ / \
6323
+ * // 0 1 0 1
5953
6324
  *
5954
- * const a = {}; a.v = a;
5955
- * const b = {}; b.v = b;
5956
- * R.equals(a, b); //=> true
6325
+ * @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)
5957
6326
  */
5958
6327
 
5959
- var equals = /*#__PURE__*/
5960
- _curry2(function equals(a, b) {
5961
- return _equals(a, b, [], []);
6328
+ var reduce = /*#__PURE__*/
6329
+ _curry3(function (xf, acc, list) {
6330
+ return _xReduce(typeof xf === 'function' ? _xwrap(xf) : xf, acc, list);
5962
6331
  });
5963
6332
 
5964
- function _indexOf(list, a, idx) {
5965
- var inf, item; // Array.prototype.indexOf doesn't exist below IE9
5966
-
5967
- if (typeof list.indexOf === 'function') {
5968
- switch (_typeof(a)) {
5969
- case 'number':
5970
- if (a === 0) {
5971
- // manually crawl the list to distinguish between +0 and -0
5972
- inf = 1 / a;
5973
- while (idx < list.length) {
5974
- item = list[idx];
5975
- if (item === 0 && 1 / item === inf) {
5976
- return idx;
5977
- }
5978
- idx += 1;
5979
- }
5980
- return -1;
5981
- } else if (a !== a) {
5982
- // NaN
5983
- while (idx < list.length) {
5984
- item = list[idx];
5985
- if (typeof item === 'number' && item !== item) {
5986
- return idx;
5987
- }
5988
- idx += 1;
5989
- }
5990
- return -1;
5991
- } // non-zero numbers can utilise Set
5992
-
5993
- return list.indexOf(a, idx);
5994
- // all these types can utilise Set
5995
-
5996
- case 'string':
5997
- case 'boolean':
5998
- case 'function':
5999
- case 'undefined':
6000
- return list.indexOf(a, idx);
6001
- case 'object':
6002
- if (a === null) {
6003
- // null can utilise Set
6004
- return list.indexOf(a, idx);
6005
- }
6006
- }
6007
- } // anything else not covered above, defer to R.equals
6008
-
6009
- while (idx < list.length) {
6010
- if (equals(list[idx], a)) {
6011
- return idx;
6012
- }
6013
- idx += 1;
6014
- }
6015
- return -1;
6333
+ function _identity(x) {
6334
+ return x;
6016
6335
  }
6017
6336
 
6018
- function _includes(a, list) {
6019
- return _indexOf(list, a, 0) >= 0;
6020
- }
6337
+ /**
6338
+ * A function that does nothing but return the parameter supplied to it. Good
6339
+ * as a default or placeholder function.
6340
+ *
6341
+ * @func
6342
+ * @memberOf R
6343
+ * @since v0.1.0
6344
+ * @category Function
6345
+ * @sig a -> a
6346
+ * @param {*} x The value to return.
6347
+ * @return {*} The input value, `x`.
6348
+ * @example
6349
+ *
6350
+ * R.identity(1); //=> 1
6351
+ *
6352
+ * const obj = {};
6353
+ * R.identity(obj) === obj; //=> true
6354
+ * @symb R.identity(a) = a
6355
+ */
6356
+
6357
+ var identity = /*#__PURE__*/
6358
+ _curry1(_identity);
6021
6359
 
6022
6360
  /**
6023
6361
  * Returns a function, `fn`, which encapsulates `if/else, if/else, ...` logic.
@@ -6103,7 +6441,7 @@ function () {
6103
6441
  return _Set;
6104
6442
  }();
6105
6443
  function hasOrAdd(item, shouldAdd, set) {
6106
- var type = _typeof(item);
6444
+ var type = _typeof$1(item);
6107
6445
  var prevSize, newSize;
6108
6446
  switch (type) {
6109
6447
  case 'string':
@@ -6247,10 +6585,11 @@ function () {
6247
6585
  };
6248
6586
  return XUniqBy;
6249
6587
  }();
6250
- var _xuniqBy = /*#__PURE__*/
6251
- _curry2(function _xuniqBy(f, xf) {
6252
- return new XUniqBy(f, xf);
6253
- });
6588
+ function _xuniqBy(f) {
6589
+ return function (xf) {
6590
+ return new XUniqBy(f, xf);
6591
+ };
6592
+ }
6254
6593
 
6255
6594
  /**
6256
6595
  * Returns a new list containing only one copy of each element in the original
@@ -6290,6 +6629,7 @@ _dispatchable([], _xuniqBy, function (fn, list) {
6290
6629
  }
6291
6630
  return result;
6292
6631
  }));
6632
+ var uniqBy$1 = uniqBy;
6293
6633
 
6294
6634
  /**
6295
6635
  * Returns a new list containing only one copy of each element in the original
@@ -6310,7 +6650,7 @@ _dispatchable([], _xuniqBy, function (fn, list) {
6310
6650
  */
6311
6651
 
6312
6652
  var uniq = /*#__PURE__*/
6313
- uniqBy(identity);
6653
+ uniqBy$1(identity);
6314
6654
  var uniq$1 = uniq;
6315
6655
 
6316
6656
  function _isNumber(x) {
@@ -6534,9 +6874,7 @@ var __assign$a = undefined && undefined.__assign || function () {
6534
6874
  __assign$a = Object.assign || function (t) {
6535
6875
  for (var s, i = 1, n = arguments.length; i < n; i++) {
6536
6876
  s = arguments[i];
6537
- for (var p in s) {
6538
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
6539
- }
6877
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
6540
6878
  }
6541
6879
  return t;
6542
6880
  };
@@ -6544,9 +6882,7 @@ var __assign$a = undefined && undefined.__assign || function () {
6544
6882
  };
6545
6883
  var __rest$9 = undefined && undefined.__rest || function (s, e) {
6546
6884
  var t = {};
6547
- for (var p in s) {
6548
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
6549
- }
6885
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
6550
6886
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
6551
6887
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
6552
6888
  }
@@ -6591,9 +6927,7 @@ var __assign$9 = undefined && undefined.__assign || function () {
6591
6927
  __assign$9 = Object.assign || function (t) {
6592
6928
  for (var s, i = 1, n = arguments.length; i < n; i++) {
6593
6929
  s = arguments[i];
6594
- for (var p in s) {
6595
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
6596
- }
6930
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
6597
6931
  }
6598
6932
  return t;
6599
6933
  };
@@ -6601,9 +6935,7 @@ var __assign$9 = undefined && undefined.__assign || function () {
6601
6935
  };
6602
6936
  var __rest$8 = undefined && undefined.__rest || function (s, e) {
6603
6937
  var t = {};
6604
- for (var p in s) {
6605
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
6606
- }
6938
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
6607
6939
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
6608
6940
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
6609
6941
  }
@@ -6829,11 +7161,7 @@ var ExceedConstrain = function ExceedConstrain(_ref) {
6829
7161
  }, rest), children);
6830
7162
  };
6831
7163
 
6832
- var reactInputMaskExports = {};
6833
- var reactInputMask = {
6834
- get exports(){ return reactInputMaskExports; },
6835
- set exports(v){ reactInputMaskExports = v; },
6836
- };
7164
+ var reactInputMask = {exports: {}};
6837
7165
 
6838
7166
  var reactInputMask_production_min;
6839
7167
  var hasRequiredReactInputMask_production_min;
@@ -6841,7 +7169,7 @@ function requireReactInputMask_production_min() {
6841
7169
  if (hasRequiredReactInputMask_production_min) return reactInputMask_production_min;
6842
7170
  hasRequiredReactInputMask_production_min = 1;
6843
7171
  function _interopDefault(e) {
6844
- return e && "object" == _typeof(e) && "default" in e ? e["default"] : e;
7172
+ return e && "object" == _typeof$1(e) && "default" in e ? e["default"] : e;
6845
7173
  }
6846
7174
  var React = _interopDefault(React__default),
6847
7175
  reactDom = require$$1;
@@ -6857,9 +7185,7 @@ function requireReactInputMask_production_min() {
6857
7185
  return (_extends = Object.assign || function (e) {
6858
7186
  for (var t = 1; t < arguments.length; t++) {
6859
7187
  var n = arguments[t];
6860
- for (var a in n) {
6861
- Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
6862
- }
7188
+ for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
6863
7189
  }
6864
7190
  return e;
6865
7191
  }).apply(this, arguments);
@@ -6873,9 +7199,7 @@ function requireReactInputMask_production_min() {
6873
7199
  a,
6874
7200
  i = {},
6875
7201
  r = Object.keys(e);
6876
- for (a = 0; a < r.length; a++) {
6877
- n = r[a], 0 <= t.indexOf(n) || (i[n] = e[n]);
6878
- }
7202
+ for (a = 0; a < r.length; a++) n = r[a], 0 <= t.indexOf(n) || (i[n] = e[n]);
6879
7203
  return i;
6880
7204
  }
6881
7205
  function _assertThisInitialized(e) {
@@ -6966,9 +7290,7 @@ function requireReactInputMask_production_min() {
6966
7290
  var n = e.maskChar,
6967
7291
  a = e.prefix;
6968
7292
  if (!n) {
6969
- for (; t.length > a.length && isPermanentCharacter(e, t.length - 1);) {
6970
- t = t.slice(0, t.length - 1);
6971
- }
7293
+ for (; t.length > a.length && isPermanentCharacter(e, t.length - 1);) t = t.slice(0, t.length - 1);
6972
7294
  return t.length;
6973
7295
  }
6974
7296
  for (var i = a.length, r = t.length; r >= a.length; r--) {
@@ -6988,15 +7310,11 @@ function requireReactInputMask_production_min() {
6988
7310
  a = e.mask,
6989
7311
  i = e.prefix;
6990
7312
  if (!n) {
6991
- for ((t = insertString(e, "", t, 0)).length < i.length && (t = i); t.length < a.length && isPermanentCharacter(e, t.length);) {
6992
- t += a[t.length];
6993
- }
7313
+ for ((t = insertString(e, "", t, 0)).length < i.length && (t = i); t.length < a.length && isPermanentCharacter(e, t.length);) t += a[t.length];
6994
7314
  return t;
6995
7315
  }
6996
7316
  if (t) return insertString(e, formatValue(e, ""), t, 0);
6997
- for (var r = 0; r < a.length; r++) {
6998
- isPermanentCharacter(e, r) ? t += a[r] : t += n;
6999
- }
7317
+ for (var r = 0; r < a.length; r++) isPermanentCharacter(e, r) ? t += a[r] : t += n;
7000
7318
  return t;
7001
7319
  }
7002
7320
  function clearRange(n, e, a, t) {
@@ -7008,9 +7326,7 @@ function requireReactInputMask_production_min() {
7008
7326
  if (r) return l.map(function (e, t) {
7009
7327
  return t < a || i <= t ? e : isPermanentCharacter(n, t) ? o[t] : r;
7010
7328
  }).join("");
7011
- for (var u = i; u < l.length; u++) {
7012
- isPermanentCharacter(n, u) && (l[u] = "");
7013
- }
7329
+ for (var u = i; u < l.length; u++) isPermanentCharacter(n, u) && (l[u] = "");
7014
7330
  return a = Math.max(s.length, a), l.splice(a, i - a), e = l.join(""), formatValue(n, e);
7015
7331
  }
7016
7332
  function insertString(r, o, e, s) {
@@ -7034,23 +7350,17 @@ function requireReactInputMask_production_min() {
7034
7350
  n = t.split(""),
7035
7351
  s = i;
7036
7352
  return n.every(function (e) {
7037
- for (; n = e, isPermanentCharacter(a, t = i) && n !== r[t];) {
7038
- if (++i >= r.length) return !1;
7039
- }
7353
+ for (; n = e, isPermanentCharacter(a, t = i) && n !== r[t];) if (++i >= r.length) return !1;
7040
7354
  var t, n;
7041
7355
  return (isAllowedCharacter(a, i, e) || e === o) && i++, i < r.length;
7042
7356
  }), i - s;
7043
7357
  }
7044
7358
  function getLeftEditablePosition(e, t) {
7045
- for (var n = t; 0 <= n; --n) {
7046
- if (!isPermanentCharacter(e, n)) return n;
7047
- }
7359
+ for (var n = t; 0 <= n; --n) if (!isPermanentCharacter(e, n)) return n;
7048
7360
  return null;
7049
7361
  }
7050
7362
  function getRightEditablePosition(e, t) {
7051
- for (var n = e.mask, a = t; a < n.length; ++a) {
7052
- if (!isPermanentCharacter(e, a)) return a;
7053
- }
7363
+ for (var n = e.mask, a = t; a < n.length; ++a) if (!isPermanentCharacter(e, a)) return a;
7054
7364
  return null;
7055
7365
  }
7056
7366
  function getStringValue(e) {
@@ -7480,7 +7790,7 @@ function requireReactInputMask_development() {
7480
7790
  if (hasRequiredReactInputMask_development) return reactInputMask_development;
7481
7791
  hasRequiredReactInputMask_development = 1;
7482
7792
  function _interopDefault(ex) {
7483
- return ex && _typeof(ex) === 'object' && 'default' in ex ? ex['default'] : ex;
7793
+ return ex && _typeof$1(ex) === 'object' && 'default' in ex ? ex['default'] : ex;
7484
7794
  }
7485
7795
  var React = _interopDefault(React__default);
7486
7796
  var reactDom = require$$1;
@@ -8412,13 +8722,12 @@ function requireReactInputMask_development() {
8412
8722
  return reactInputMask_development;
8413
8723
  }
8414
8724
 
8415
- (function (module) {
8416
- if (process.env.NODE_ENV === 'production') {
8417
- module.exports = requireReactInputMask_production_min();
8418
- } else {
8419
- module.exports = requireReactInputMask_development();
8420
- }
8421
- })(reactInputMask);
8725
+ if (process.env.NODE_ENV === 'production') {
8726
+ reactInputMask.exports = requireReactInputMask_production_min();
8727
+ } else {
8728
+ reactInputMask.exports = requireReactInputMask_development();
8729
+ }
8730
+ var reactInputMaskExports = reactInputMask.exports;
8422
8731
  var InputMask = /*@__PURE__*/getDefaultExportFromCjs(reactInputMaskExports);
8423
8732
 
8424
8733
  var cardTypes$1 = {
@@ -8682,9 +8991,7 @@ var __assign$8 = commonjsGlobal && commonjsGlobal.__assign || function () {
8682
8991
  __assign$8 = Object.assign || function (t) {
8683
8992
  for (var s, i = 1, n = arguments.length; i < n; i++) {
8684
8993
  s = arguments[i];
8685
- for (var p in s) {
8686
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8687
- }
8994
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8688
8995
  }
8689
8996
  return t;
8690
8997
  };
@@ -8785,14 +9092,13 @@ creditCardType.resetModifications = function () {
8785
9092
  };
8786
9093
  creditCardType.types = cardNames;
8787
9094
  var dist$2 = creditCardType;
9095
+ var creditCardType$1 = /*@__PURE__*/getDefaultExportFromCjs(dist$2);
8788
9096
 
8789
9097
  var __assign$7 = undefined && undefined.__assign || function () {
8790
9098
  __assign$7 = Object.assign || function (t) {
8791
9099
  for (var s, i = 1, n = arguments.length; i < n; i++) {
8792
9100
  s = arguments[i];
8793
- for (var p in s) {
8794
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8795
- }
9101
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8796
9102
  }
8797
9103
  return t;
8798
9104
  };
@@ -8800,9 +9106,7 @@ var __assign$7 = undefined && undefined.__assign || function () {
8800
9106
  };
8801
9107
  var __rest$7 = undefined && undefined.__rest || function (s, e) {
8802
9108
  var t = {};
8803
- for (var p in s) {
8804
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
8805
- }
9109
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
8806
9110
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8807
9111
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
8808
9112
  }
@@ -8876,9 +9180,7 @@ var __assign$6 = undefined && undefined.__assign || function () {
8876
9180
  __assign$6 = Object.assign || function (t) {
8877
9181
  for (var s, i = 1, n = arguments.length; i < n; i++) {
8878
9182
  s = arguments[i];
8879
- for (var p in s) {
8880
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8881
- }
9183
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8882
9184
  }
8883
9185
  return t;
8884
9186
  };
@@ -8886,9 +9188,7 @@ var __assign$6 = undefined && undefined.__assign || function () {
8886
9188
  };
8887
9189
  var __rest$6 = undefined && undefined.__rest || function (s, e) {
8888
9190
  var t = {};
8889
- for (var p in s) {
8890
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
8891
- }
9191
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
8892
9192
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8893
9193
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
8894
9194
  }
@@ -8933,9 +9233,7 @@ var __assign$5 = undefined && undefined.__assign || function () {
8933
9233
  __assign$5 = Object.assign || function (t) {
8934
9234
  for (var s, i = 1, n = arguments.length; i < n; i++) {
8935
9235
  s = arguments[i];
8936
- for (var p in s) {
8937
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8938
- }
9236
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8939
9237
  }
8940
9238
  return t;
8941
9239
  };
@@ -8943,9 +9241,7 @@ var __assign$5 = undefined && undefined.__assign || function () {
8943
9241
  };
8944
9242
  var __rest$5 = undefined && undefined.__rest || function (s, e) {
8945
9243
  var t = {};
8946
- for (var p in s) {
8947
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
8948
- }
9244
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
8949
9245
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8950
9246
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
8951
9247
  }
@@ -9004,9 +9300,7 @@ mapCursorToMax.mapCursorToMax = function (cursor, max) {
9004
9300
  (function (exports) {
9005
9301
 
9006
9302
  function __export(m) {
9007
- for (var p in m) {
9008
- if (!exports.hasOwnProperty(p)) exports[p] = m[p];
9009
- }
9303
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
9010
9304
  }
9011
9305
  Object.defineProperty(exports, "__esModule", {
9012
9306
  value: true
@@ -9202,9 +9496,7 @@ var __assign$4 = undefined && undefined.__assign || function () {
9202
9496
  __assign$4 = Object.assign || function (t) {
9203
9497
  for (var s, i = 1, n = arguments.length; i < n; i++) {
9204
9498
  s = arguments[i];
9205
- for (var p in s) {
9206
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9207
- }
9499
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9208
9500
  }
9209
9501
  return t;
9210
9502
  };
@@ -9212,9 +9504,7 @@ var __assign$4 = undefined && undefined.__assign || function () {
9212
9504
  };
9213
9505
  var __rest$4 = undefined && undefined.__rest || function (s, e) {
9214
9506
  var t = {};
9215
- for (var p in s) {
9216
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
9217
- }
9507
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
9218
9508
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
9219
9509
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
9220
9510
  }
@@ -9265,9 +9555,7 @@ var __assign$3 = undefined && undefined.__assign || function () {
9265
9555
  __assign$3 = Object.assign || function (t) {
9266
9556
  for (var s, i = 1, n = arguments.length; i < n; i++) {
9267
9557
  s = arguments[i];
9268
- for (var p in s) {
9269
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9270
- }
9558
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9271
9559
  }
9272
9560
  return t;
9273
9561
  };
@@ -9275,9 +9563,7 @@ var __assign$3 = undefined && undefined.__assign || function () {
9275
9563
  };
9276
9564
  var __rest$3 = undefined && undefined.__rest || function (s, e) {
9277
9565
  var t = {};
9278
- for (var p in s) {
9279
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
9280
- }
9566
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
9281
9567
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
9282
9568
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
9283
9569
  }
@@ -9369,109 +9655,110 @@ var SearchInput = function SearchInput(_ref) {
9369
9655
  }, /*#__PURE__*/React__default.createElement(Exit20, null)));
9370
9656
  };
9371
9657
 
9372
- var e = function e(_e) {
9373
- return "object" == _typeof(_e) && null != _e && 1 === _e.nodeType;
9658
+ var t$1 = function t(_t) {
9659
+ return "object" == _typeof$1(_t) && null != _t && 1 === _t.nodeType;
9374
9660
  },
9375
- t$1 = function t(e, _t) {
9376
- return (!_t || "hidden" !== e) && "visible" !== e && "clip" !== e;
9661
+ e = function e(t, _e) {
9662
+ return (!_e || "hidden" !== t) && "visible" !== t && "clip" !== t;
9377
9663
  },
9378
- n = function n(e, _n) {
9379
- if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
9380
- var _l = getComputedStyle(e, null);
9381
- return t$1(_l.overflowY, _n) || t$1(_l.overflowX, _n) || function (e) {
9382
- var t = function (e) {
9383
- if (!e.ownerDocument || !e.ownerDocument.defaultView) return null;
9664
+ n = function n(t, _n) {
9665
+ if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) {
9666
+ var _l = getComputedStyle(t, null);
9667
+ return e(_l.overflowY, _n) || e(_l.overflowX, _n) || function (t) {
9668
+ var e = function (t) {
9669
+ if (!t.ownerDocument || !t.ownerDocument.defaultView) return null;
9384
9670
  try {
9385
- return e.ownerDocument.defaultView.frameElement;
9386
- } catch (e) {
9671
+ return t.ownerDocument.defaultView.frameElement;
9672
+ } catch (t) {
9387
9673
  return null;
9388
9674
  }
9389
- }(e);
9390
- return !!t && (t.clientHeight < e.scrollHeight || t.clientWidth < e.scrollWidth);
9391
- }(e);
9675
+ }(t);
9676
+ return !!e && (e.clientHeight < t.scrollHeight || e.clientWidth < t.scrollWidth);
9677
+ }(t);
9392
9678
  }
9393
9679
  return !1;
9394
9680
  },
9395
- l = function l(e, t, n, _l2, i, o, r, d) {
9396
- 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;
9681
+ l = function l(t, e, n, _l2, i, o, r, d) {
9682
+ 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;
9397
9683
  },
9398
- i = function i(e) {
9399
- var t = e.parentElement;
9400
- return null == t ? e.getRootNode().host || null : t;
9401
- };
9402
- var o$1 = function o(t, _o2) {
9403
- var r, d, h, f, u, s;
9404
- if ("undefined" == typeof document) return [];
9405
- var a = _o2.scrollMode,
9406
- c = _o2.block,
9407
- g = _o2.inline,
9408
- m = _o2.boundary,
9409
- p = _o2.skipOverflowHiddenElements,
9410
- w = "function" == typeof m ? m : function (e) {
9411
- return e !== m;
9412
- };
9413
- if (!e(t)) throw new TypeError("Invalid target");
9414
- var W = document.scrollingElement || document.documentElement,
9415
- H = [],
9416
- b = t;
9417
- for (; e(b) && w(b);) {
9418
- if (b = i(b), b === W) {
9419
- H.push(b);
9420
- break;
9684
+ i = function i(t) {
9685
+ var e = t.parentElement;
9686
+ return null == e ? t.getRootNode().host || null : e;
9687
+ },
9688
+ o$1 = function o(e, _o2) {
9689
+ var r, d, h, f;
9690
+ if ("undefined" == typeof document) return [];
9691
+ var u = _o2.scrollMode,
9692
+ s = _o2.block,
9693
+ c = _o2.inline,
9694
+ a = _o2.boundary,
9695
+ g = _o2.skipOverflowHiddenElements,
9696
+ m = "function" == typeof a ? a : function (t) {
9697
+ return t !== a;
9698
+ };
9699
+ if (!t$1(e)) throw new TypeError("Invalid target");
9700
+ var p = document.scrollingElement || document.documentElement,
9701
+ w = [],
9702
+ W = e;
9703
+ for (; t$1(W) && m(W);) {
9704
+ if (W = i(W), W === p) {
9705
+ w.push(W);
9706
+ break;
9707
+ }
9708
+ null != W && W === document.body && n(W) && !n(document.documentElement) || null != W && n(W, g) && w.push(W);
9709
+ }
9710
+ var H = null != (d = null == (r = window.visualViewport) ? void 0 : r.width) ? d : innerWidth,
9711
+ b = null != (f = null == (h = window.visualViewport) ? void 0 : h.height) ? f : innerHeight,
9712
+ _window = window,
9713
+ v = _window.scrollX,
9714
+ y = _window.scrollY,
9715
+ _e$getBoundingClientR = e.getBoundingClientRect(),
9716
+ E = _e$getBoundingClientR.height,
9717
+ M = _e$getBoundingClientR.width,
9718
+ x = _e$getBoundingClientR.top,
9719
+ I = _e$getBoundingClientR.right,
9720
+ C = _e$getBoundingClientR.bottom,
9721
+ R = _e$getBoundingClientR.left,
9722
+ T = "start" === s || "nearest" === s ? x : "end" === s ? C : x + E / 2,
9723
+ V = "center" === c ? R + M / 2 : "end" === c ? I : R,
9724
+ k = [];
9725
+ for (var _t2 = 0; _t2 < w.length; _t2++) {
9726
+ var _e2 = w[_t2],
9727
+ _e$getBoundingClientR2 = _e2.getBoundingClientRect(),
9728
+ _n2 = _e$getBoundingClientR2.height,
9729
+ _i = _e$getBoundingClientR2.width,
9730
+ _o = _e$getBoundingClientR2.top,
9731
+ _r = _e$getBoundingClientR2.right,
9732
+ _d = _e$getBoundingClientR2.bottom,
9733
+ _h = _e$getBoundingClientR2.left;
9734
+ if ("if-needed" === u && x >= 0 && R >= 0 && C <= b && I <= H && x >= _o && C <= _d && R >= _h && I <= _r) return k;
9735
+ var _f = getComputedStyle(_e2),
9736
+ _a = parseInt(_f.borderLeftWidth, 10),
9737
+ _g = parseInt(_f.borderTopWidth, 10),
9738
+ _m = parseInt(_f.borderRightWidth, 10),
9739
+ _W = parseInt(_f.borderBottomWidth, 10),
9740
+ B = 0,
9741
+ D = 0,
9742
+ L = "offsetWidth" in _e2 ? _e2.offsetWidth - _e2.clientWidth - _a - _m : 0,
9743
+ S = "offsetHeight" in _e2 ? _e2.offsetHeight - _e2.clientHeight - _g - _W : 0,
9744
+ X = "offsetWidth" in _e2 ? 0 === _e2.offsetWidth ? 0 : _i / _e2.offsetWidth : 0,
9745
+ Y = "offsetHeight" in _e2 ? 0 === _e2.offsetHeight ? 0 : _n2 / _e2.offsetHeight : 0;
9746
+ 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 {
9747
+ 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);
9748
+ var _t3 = _e2.scrollLeft,
9749
+ _f2 = _e2.scrollTop;
9750
+ 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;
9751
+ }
9752
+ k.push({
9753
+ el: _e2,
9754
+ top: B,
9755
+ left: D
9756
+ });
9421
9757
  }
9422
- null != b && b === document.body && n(b) && !n(document.documentElement) || null != b && n(b, p) && H.push(b);
9423
- }
9424
- var v = null != (d = null == (r = window.visualViewport) ? void 0 : r.width) ? d : innerWidth,
9425
- y = null != (f = null == (h = window.visualViewport) ? void 0 : h.height) ? f : innerHeight,
9426
- E = null != (u = window.scrollX) ? u : pageXOffset,
9427
- M = null != (s = window.scrollY) ? s : pageYOffset,
9428
- _t$getBoundingClientR = t.getBoundingClientRect(),
9429
- x = _t$getBoundingClientR.height,
9430
- I = _t$getBoundingClientR.width,
9431
- C = _t$getBoundingClientR.top,
9432
- R = _t$getBoundingClientR.right,
9433
- T = _t$getBoundingClientR.bottom,
9434
- V = _t$getBoundingClientR.left,
9435
- k = "start" === c || "nearest" === c ? C : "end" === c ? T : C + x / 2,
9436
- B = "center" === g ? V + I / 2 : "end" === g ? R : V,
9437
- D = [];
9438
- for (var _e2 = 0; _e2 < H.length; _e2++) {
9439
- var _t2 = H[_e2],
9440
- _t2$getBoundingClient = _t2.getBoundingClientRect(),
9441
- _n2 = _t2$getBoundingClient.height,
9442
- _i = _t2$getBoundingClient.width,
9443
- _o = _t2$getBoundingClient.top,
9444
- _r = _t2$getBoundingClient.right,
9445
- _d = _t2$getBoundingClient.bottom,
9446
- _h = _t2$getBoundingClient.left;
9447
- if ("if-needed" === a && C >= 0 && V >= 0 && T <= y && R <= v && C >= _o && T <= _d && V >= _h && R <= _r) return D;
9448
- var _f = getComputedStyle(_t2),
9449
- _u = parseInt(_f.borderLeftWidth, 10),
9450
- _s = parseInt(_f.borderTopWidth, 10),
9451
- _m = parseInt(_f.borderRightWidth, 10),
9452
- _p = parseInt(_f.borderBottomWidth, 10),
9453
- _w = 0,
9454
- _b = 0,
9455
- O = "offsetWidth" in _t2 ? _t2.offsetWidth - _t2.clientWidth - _u - _m : 0,
9456
- X = "offsetHeight" in _t2 ? _t2.offsetHeight - _t2.clientHeight - _s - _p : 0,
9457
- Y = "offsetWidth" in _t2 ? 0 === _t2.offsetWidth ? 0 : _i / _t2.offsetWidth : 0,
9458
- L = "offsetHeight" in _t2 ? 0 === _t2.offsetHeight ? 0 : _n2 / _t2.offsetHeight : 0;
9459
- 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 {
9460
- _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);
9461
- var _e3 = _t2.scrollLeft,
9462
- _f2 = _t2.scrollTop;
9463
- _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;
9464
- }
9465
- D.push({
9466
- el: _t2,
9467
- top: _w,
9468
- left: _b
9469
- });
9470
- }
9471
- return D;
9472
- };
9758
+ return k;
9759
+ };
9473
9760
 
9474
- var t = function t(e) {
9761
+ var o = function o(e) {
9475
9762
  return !1 === e ? {
9476
9763
  block: "end",
9477
9764
  inline: "nearest"
@@ -9482,25 +9769,38 @@ var t = function t(e) {
9482
9769
  inline: "nearest"
9483
9770
  };
9484
9771
  };
9485
- function o(o, l) {
9486
- var n = o.isConnected || o.ownerDocument.documentElement.contains(o);
9772
+ function t(t, n) {
9773
+ if (!t.isConnected || !function (e) {
9774
+ var o = e;
9775
+ for (; o && o.parentNode;) {
9776
+ if (o.parentNode === document) return !0;
9777
+ o = o.parentNode instanceof ShadowRoot ? o.parentNode.host : o.parentNode;
9778
+ }
9779
+ return !1;
9780
+ }(t)) return;
9487
9781
  if (function (e) {
9488
- return "object" == _typeof(e) && "function" == typeof e.behavior;
9489
- }(l)) return l.behavior(n ? o$1(o, l) : []);
9490
- if (!n) return;
9491
- var r = t(l),
9492
- c = o$1(o, r),
9493
- i = ("scrollBehavior" in document.body.style);
9494
- c.forEach(function (e) {
9495
- var t = e.el,
9496
- o = e.top,
9497
- l = e.left;
9498
- t.scroll && i ? t.scroll({
9499
- top: o,
9500
- left: l,
9501
- behavior: r.behavior
9502
- }) : (t.scrollTop = o, t.scrollLeft = l);
9503
- });
9782
+ return "object" == _typeof$1(e) && "function" == typeof e.behavior;
9783
+ }(n)) return n.behavior(o$1(t, n));
9784
+ var r = "boolean" == typeof n || null == n ? void 0 : n.behavior;
9785
+ var _iterator = _createForOfIteratorHelper(o$1(t, o(n))),
9786
+ _step;
9787
+ try {
9788
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
9789
+ var _step$value = _step.value,
9790
+ i = _step$value.el,
9791
+ a = _step$value.top,
9792
+ l = _step$value.left;
9793
+ i.scroll({
9794
+ top: a,
9795
+ left: l,
9796
+ behavior: r
9797
+ });
9798
+ }
9799
+ } catch (err) {
9800
+ _iterator.e(err);
9801
+ } finally {
9802
+ _iterator.f();
9803
+ }
9504
9804
  }
9505
9805
 
9506
9806
  var SelectOption = function SelectOption(_ref) {
@@ -9517,7 +9817,7 @@ var SelectOption = function SelectOption(_ref) {
9517
9817
  }, [onClick, option]);
9518
9818
  useEffect(function () {
9519
9819
  if (active && ref.current) {
9520
- o(ref.current, {
9820
+ t(ref.current, {
9521
9821
  scrollMode: 'if-needed',
9522
9822
  block: 'nearest'
9523
9823
  });
@@ -9636,11 +9936,11 @@ var useClickOutside = function useClickOutside(ref, onClickOutside) {
9636
9936
  });
9637
9937
  };
9638
9938
 
9639
- var Mode$1;
9640
- (function (Mode) {
9939
+ var Mode$1 = /*#__PURE__*/function (Mode) {
9641
9940
  Mode[Mode["Resting"] = 0] = "Resting";
9642
9941
  Mode[Mode["Open"] = 1] = "Open";
9643
- })(Mode$1 || (Mode$1 = {}));
9942
+ return Mode;
9943
+ }(Mode$1 || {});
9644
9944
  var reducer = function reducer(state, action) {
9645
9945
  switch (action.type) {
9646
9946
  case 'OPEN':
@@ -9670,7 +9970,7 @@ var useSelect = function useSelect(_ref) {
9670
9970
  var initialValue = value !== null && value !== void 0 ? value : defaultValue;
9671
9971
  var _useReducer = useReducer(reducer, {
9672
9972
  value: initialValue,
9673
- focused: _typeof(initialValue) == 'object' ? initialValue === null || initialValue === void 0 ? void 0 : initialValue[0] : initialValue,
9973
+ focused: _typeof$1(initialValue) == 'object' ? initialValue === null || initialValue === void 0 ? void 0 : initialValue[0] : initialValue,
9674
9974
  mode: Mode$1.Resting
9675
9975
  }),
9676
9976
  _useReducer2 = _slicedToArray(_useReducer, 2),
@@ -9851,9 +10151,7 @@ var __assign$2 = undefined && undefined.__assign || function () {
9851
10151
  __assign$2 = Object.assign || function (t) {
9852
10152
  for (var s, i = 1, n = arguments.length; i < n; i++) {
9853
10153
  s = arguments[i];
9854
- for (var p in s) {
9855
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9856
- }
10154
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9857
10155
  }
9858
10156
  return t;
9859
10157
  };
@@ -9861,9 +10159,7 @@ var __assign$2 = undefined && undefined.__assign || function () {
9861
10159
  };
9862
10160
  var __rest$2 = undefined && undefined.__rest || function (s, e) {
9863
10161
  var t = {};
9864
- for (var p in s) {
9865
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
9866
- }
10162
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
9867
10163
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
9868
10164
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
9869
10165
  }
@@ -10080,7 +10376,7 @@ var CreditCardNumberInput = function CreditCardNumberInput(_ref) {
10080
10376
  value = _useState2[0],
10081
10377
  setValue = _useState2[1];
10082
10378
  var mask = useMemo(function () {
10083
- var cardType = dist$2(value)[0];
10379
+ var cardType = creditCardType$1(value)[0];
10084
10380
  if (!cardType) return DEFAULT_MASK;
10085
10381
  var gaps = cardType.gaps,
10086
10382
  lengths = cardType.lengths;
@@ -10267,9 +10563,7 @@ useCursor.useCursor = function (_a) {
10267
10563
  (function (exports) {
10268
10564
 
10269
10565
  function __export(m) {
10270
- for (var p in m) {
10271
- if (!exports.hasOwnProperty(p)) exports[p] = m[p];
10272
- }
10566
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
10273
10567
  }
10274
10568
  Object.defineProperty(exports, "__esModule", {
10275
10569
  value: true
@@ -10614,9 +10908,7 @@ var __assign$1 = undefined && undefined.__assign || function () {
10614
10908
  __assign$1 = Object.assign || function (t) {
10615
10909
  for (var s, i = 1, n = arguments.length; i < n; i++) {
10616
10910
  s = arguments[i];
10617
- for (var p in s) {
10618
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
10619
- }
10911
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
10620
10912
  }
10621
10913
  return t;
10622
10914
  };
@@ -10624,9 +10916,7 @@ var __assign$1 = undefined && undefined.__assign || function () {
10624
10916
  };
10625
10917
  var __rest$1 = undefined && undefined.__rest || function (s, e) {
10626
10918
  var t = {};
10627
- for (var p in s) {
10628
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
10629
- }
10919
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
10630
10920
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
10631
10921
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
10632
10922
  }
@@ -10678,9 +10968,7 @@ var __assign = undefined && undefined.__assign || function () {
10678
10968
  __assign = Object.assign || function (t) {
10679
10969
  for (var s, i = 1, n = arguments.length; i < n; i++) {
10680
10970
  s = arguments[i];
10681
- for (var p in s) {
10682
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
10683
- }
10971
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
10684
10972
  }
10685
10973
  return t;
10686
10974
  };
@@ -10688,9 +10976,7 @@ var __assign = undefined && undefined.__assign || function () {
10688
10976
  };
10689
10977
  var __rest = undefined && undefined.__rest || function (s, e) {
10690
10978
  var t = {};
10691
- for (var p in s) {
10692
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
10693
- }
10979
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
10694
10980
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
10695
10981
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
10696
10982
  }
@@ -10826,15 +11112,15 @@ var POPOVER_MOUSEOUT_DELAY_MS = 200;
10826
11112
  var THREE_QUARTER_SECOND_DELAY = 750;
10827
11113
  var ONE_SECOND_DELAY = 1000;
10828
11114
  var FIVE_SECOND_DELAY = 5000;
10829
- var Mode;
10830
- (function (Mode) {
11115
+ var Mode = /*#__PURE__*/function (Mode) {
10831
11116
  Mode["Opening"] = "opening";
10832
11117
  Mode["Open"] = "open";
10833
11118
  Mode["Closing"] = "closing";
10834
11119
  Mode["AutoOpening"] = "autoOpening";
10835
11120
  Mode["AutoOpen"] = "autoOpen";
10836
11121
  Mode["Closed"] = "closed";
10837
- })(Mode || (Mode = {}));
11122
+ return Mode;
11123
+ }(Mode || {});
10838
11124
  var Popover = function Popover(_ref) {
10839
11125
  var className = _ref.className,
10840
11126
  children = _ref.children,