@hero-design/rn 8.63.1-alpha.0 → 8.63.2-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/CHANGELOG.md +5 -11
  2. package/es/index.js +943 -898
  3. package/lib/index.js +943 -898
  4. package/package.json +21 -21
  5. package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +0 -21
  6. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +0 -12
  7. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +0 -12
  8. package/src/components/Error/index.tsx +2 -2
  9. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +0 -7
  10. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +1 -1
  11. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +4 -4
  12. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +4 -16
  13. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +4 -4
  14. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +3 -15
  15. package/src/components/Tabs/ScrollableTabs.tsx +5 -3
  16. package/src/components/Tabs/StyledScrollableTabs.tsx +0 -6
  17. package/src/components/Tabs/StyledTabs.tsx +0 -8
  18. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +12 -9
  19. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +2 -2
  20. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +9 -6
  21. package/src/components/Tabs/index.tsx +6 -3
  22. package/types/components/Accordion/StyledAccordion.d.ts +0 -1
  23. package/types/components/Alert/StyledAlert.d.ts +0 -1
  24. package/types/components/Attachment/StyledAttachment.d.ts +0 -1
  25. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -1
  26. package/types/components/Avatar/StyledAvatar.d.ts +0 -1
  27. package/types/components/Avatar/index.d.ts +0 -1
  28. package/types/components/Badge/StyledBadge.d.ts +0 -1
  29. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -1
  30. package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -1
  31. package/types/components/BottomSheet/ScrollView.d.ts +0 -1
  32. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -1
  33. package/types/components/Box/StyledBox.d.ts +0 -1
  34. package/types/components/Box/types.d.ts +0 -1
  35. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -1
  36. package/types/components/Button/StyledButton.d.ts +0 -1
  37. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -1
  38. package/types/components/Calendar/StyledCalendar.d.ts +1 -2
  39. package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -1
  40. package/types/components/Card/StyledCard.d.ts +0 -1
  41. package/types/components/Carousel/StyledCardCarousel.d.ts +0 -1
  42. package/types/components/Carousel/StyledCarousel.d.ts +0 -1
  43. package/types/components/Checkbox/StyledCheckbox.d.ts +0 -1
  44. package/types/components/Chip/StyledChip.d.ts +0 -1
  45. package/types/components/Collapse/StyledCollapse.d.ts +0 -1
  46. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -1
  47. package/types/components/DatePicker/StyledDatePicker.d.ts +0 -1
  48. package/types/components/Divider/StyledDivider.d.ts +0 -1
  49. package/types/components/Drawer/StyledDrawer.d.ts +0 -1
  50. package/types/components/Empty/StyledEmpty.d.ts +0 -1
  51. package/types/components/Error/StyledError.d.ts +0 -1
  52. package/types/components/Error/index.d.ts +2 -2
  53. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -1
  54. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -1
  55. package/types/components/FAB/StyledFAB.d.ts +0 -1
  56. package/types/components/FAB/index.d.ts +0 -1
  57. package/types/components/Icon/HeroIcon/index.d.ts +0 -1
  58. package/types/components/Icon/utils.d.ts +1 -1
  59. package/types/components/Image/index.d.ts +0 -1
  60. package/types/components/List/StyledBasicListItem.d.ts +0 -1
  61. package/types/components/List/StyledListItem.d.ts +0 -1
  62. package/types/components/PageControl/StyledPageControl.d.ts +0 -1
  63. package/types/components/PinInput/StyledPinInput.d.ts +0 -1
  64. package/types/components/Progress/ProgressBar.d.ts +0 -1
  65. package/types/components/Progress/StyledProgressBar.d.ts +0 -1
  66. package/types/components/Progress/StyledProgressCircle.d.ts +0 -1
  67. package/types/components/Progress/index.d.ts +0 -1
  68. package/types/components/Radio/StyledRadio.d.ts +0 -1
  69. package/types/components/Radio/index.d.ts +0 -1
  70. package/types/components/Rate/StyledRate.d.ts +0 -1
  71. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -1
  72. package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -1
  73. package/types/components/RichTextEditor/index.d.ts +0 -1
  74. package/types/components/SectionHeading/StyledHeading.d.ts +0 -1
  75. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -1
  76. package/types/components/Select/StyledSelect.d.ts +0 -1
  77. package/types/components/Select/index.d.ts +0 -1
  78. package/types/components/Skeleton/StyledSkeleton.d.ts +0 -1
  79. package/types/components/Spinner/StyledSpinner.d.ts +0 -1
  80. package/types/components/Success/StyledSuccess.d.ts +0 -1
  81. package/types/components/Swipeable/StyledSwipeable.d.ts +0 -1
  82. package/types/components/Swipeable/index.d.ts +2 -2
  83. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -1
  84. package/types/components/Switch/StyledSwitch.d.ts +0 -1
  85. package/types/components/Tabs/StyledScrollableTabs.d.ts +1 -9
  86. package/types/components/Tabs/StyledTabs.d.ts +1 -7
  87. package/types/components/Tag/StyledTag.d.ts +0 -1
  88. package/types/components/TextInput/StyledTextInput.d.ts +0 -1
  89. package/types/components/TextInput/index.d.ts +3 -3
  90. package/types/components/TimePicker/StyledTimePicker.d.ts +0 -1
  91. package/types/components/Toast/StyledToast.d.ts +0 -1
  92. package/types/components/Toast/Toast.d.ts +0 -1
  93. package/types/components/Toast/ToastContext.d.ts +0 -1
  94. package/types/components/Toast/index.d.ts +0 -1
  95. package/types/components/Toolbar/StyledToolbar.d.ts +0 -1
  96. package/types/components/Typography/Body/StyledBody.d.ts +0 -1
  97. package/types/components/Typography/Caption/StyledCaption.d.ts +0 -1
  98. package/types/components/Typography/Label/StyledLabel.d.ts +0 -1
  99. package/types/components/Typography/Text/StyledText.d.ts +0 -1
  100. package/types/components/Typography/Title/StyledTitle.d.ts +0 -1
  101. package/types/testHelpers/renderWithTheme.d.ts +0 -1
  102. package/types/theme/ThemeProvider.d.ts +0 -1
  103. package/.turbo/turbo-build.log +0 -5
package/es/index.js CHANGED
@@ -362,14 +362,14 @@ function _regeneratorRuntime() {
362
362
  }
363
363
  }, e;
364
364
  }
365
- function _typeof$1(o) {
365
+ function _typeof(o) {
366
366
  "@babel/helpers - typeof";
367
367
 
368
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
368
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
369
369
  return typeof o;
370
370
  } : function (o) {
371
371
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
372
- }, _typeof$1(o);
372
+ }, _typeof(o);
373
373
  }
374
374
  function _classCallCheck(instance, Constructor) {
375
375
  if (!(instance instanceof Constructor)) {
@@ -1293,9 +1293,7 @@ var BASE_COLORS = {
1293
1293
  theatreGold: '#a56822',
1294
1294
  uniformGreen: '#4d4628',
1295
1295
  yellow: '#fadb14',
1296
- windsorGrey: '#606065',
1297
- mist: '#e8e9f8',
1298
- cloud: '#ccd9f5'
1296
+ windsorGrey: '#606065'
1299
1297
  };
1300
1298
  var colorScales = Object.entries(BASE_COLORS).reduce(function (acc, _ref16) {
1301
1299
  var _ref17 = _slicedToArray(_ref16, 2),
@@ -1304,17 +1302,15 @@ var colorScales = Object.entries(BASE_COLORS).reduce(function (acc, _ref16) {
1304
1302
  return Object.assign(Object.assign({}, acc), _defineProperty({}, key, createColorScales(value)));
1305
1303
  }, {});
1306
1304
  var blue$1 = colorScales.blue,
1307
- cloud = colorScales.cloud,
1308
- deepSaffron$2 = colorScales.deepSaffron,
1305
+ ultramarineBlue$2 = colorScales.ultramarineBlue,
1309
1306
  green$1 = colorScales.green,
1310
1307
  grey$2 = colorScales.grey,
1311
1308
  grotesqueGreen = colorScales.grotesqueGreen,
1312
- mist = colorScales.mist,
1309
+ deepSaffron$2 = colorScales.deepSaffron,
1313
1310
  pink$1 = colorScales.pink,
1314
1311
  purple$1 = colorScales.purple,
1315
- smalt = colorScales.smalt,
1316
- ultramarineBlue$2 = colorScales.ultramarineBlue,
1317
1312
  vermilion$2 = colorScales.vermilion,
1313
+ smalt = colorScales.smalt,
1318
1314
  violet$1 = colorScales.violet,
1319
1315
  yellow$1 = colorScales.yellow;
1320
1316
  var palette$b = {
@@ -1333,11 +1329,9 @@ var palette$b = {
1333
1329
  blueLight60: blue$1.lighten60,
1334
1330
  blueLight75: blue$1.lighten75,
1335
1331
  blueLight90: blue$1.lighten90,
1336
- cloudLight90: cloud.lighten90,
1337
1332
  dodgerBlue: ultramarineBlue$2.base,
1338
1333
  dodgerBlueDark15: ultramarineBlue$2.darken15,
1339
1334
  dodgerBlueDark30: ultramarineBlue$2.darken30,
1340
- dodgerBlueDark60: ultramarineBlue$2.darken60,
1341
1335
  dodgerBlueLight30: ultramarineBlue$2.lighten30,
1342
1336
  dodgerBlueLight45: ultramarineBlue$2.lighten45,
1343
1337
  dodgerBlueLight60: ultramarineBlue$2.lighten60,
@@ -1346,7 +1340,6 @@ var palette$b = {
1346
1340
  green: green$1.base,
1347
1341
  greenDark15: green$1.darken15,
1348
1342
  greenDark30: green$1.darken30,
1349
- greenDark60: green$1.darken60,
1350
1343
  greenDark75: green$1.darken75,
1351
1344
  greenLight30: green$1.lighten30,
1352
1345
  greenLight75: green$1.lighten75,
@@ -1357,7 +1350,6 @@ var palette$b = {
1357
1350
  greyDark45: grey$2.darken45,
1358
1351
  greyDark60: grey$2.darken60,
1359
1352
  greyDark75: grey$2.darken75,
1360
- greyLight30: grey$2.lighten30,
1361
1353
  greyLight45: grey$2.lighten45,
1362
1354
  greyLight60: grey$2.lighten60,
1363
1355
  greyLight75: grey$2.lighten75,
@@ -1371,27 +1363,20 @@ var palette$b = {
1371
1363
  grotesqueGreenLight60: grotesqueGreen.lighten60,
1372
1364
  grotesqueGreenLight75: grotesqueGreen.lighten75,
1373
1365
  grotesqueGreenLight90: grotesqueGreen.lighten90,
1374
- mistLight30: mist.lighten30,
1375
- mistLight60: mist.lighten60,
1376
- mistLight90: mist.lighten90,
1377
1366
  orange: deepSaffron$2.base,
1378
1367
  orangeDark15: deepSaffron$2.darken15,
1379
1368
  orangeDark30: deepSaffron$2.darken30,
1380
- orangeDark60: deepSaffron$2.darken60,
1381
1369
  orangeDark75: deepSaffron$2.darken75,
1382
1370
  orangeLight30: deepSaffron$2.lighten30,
1383
- orangeLight60: deepSaffron$2.lighten60,
1384
1371
  orangeLight75: deepSaffron$2.lighten75,
1385
1372
  orangeLight90: deepSaffron$2.lighten90,
1386
1373
  pink: pink$1.base,
1387
1374
  pinkDark15: pink$1.darken15,
1388
1375
  pinkDark30: pink$1.darken30,
1389
1376
  pinkDark45: pink$1.darken45,
1390
- pinkDark60: pink$1.darken60,
1391
1377
  pinkDark75: pink$1.darken75,
1392
1378
  pinkLight30: pink$1.lighten30,
1393
1379
  pinkLight45: pink$1.lighten45,
1394
- pinkLight60: pink$1.lighten60,
1395
1380
  pinkLight75: pink$1.lighten75,
1396
1381
  pinkLight90: pink$1.lighten90,
1397
1382
  purple: purple$1.base,
@@ -1434,7 +1419,6 @@ var palette$b = {
1434
1419
  yellow: yellow$1.base,
1435
1420
  yellowDark15: yellow$1.darken15,
1436
1421
  yellowDark30: yellow$1.darken30,
1437
- yellowDark45: yellow$1.darken45,
1438
1422
  yellowDark75: yellow$1.darken75,
1439
1423
  yellowLight30: yellow$1.lighten30,
1440
1424
  yellowLight45: yellow$1.lighten45,
@@ -5352,8 +5336,8 @@ var camelize = function camelize(obj) {
5352
5336
  return walk(obj);
5353
5337
  };
5354
5338
  function walk(obj) {
5355
- if (!obj || _typeof$1(obj) !== 'object') return obj;
5356
- if (isDate$1(obj) || isRegex(obj)) return obj;
5339
+ if (!obj || _typeof(obj) !== 'object') return obj;
5340
+ if (isDate(obj) || isRegex(obj)) return obj;
5357
5341
  if (isArray(obj)) return map(obj, walk);
5358
5342
  return reduce(objectKeys(obj), function (acc, key) {
5359
5343
  var camel = camelCase(key);
@@ -5369,7 +5353,7 @@ function camelCase(str) {
5369
5353
  var isArray = Array.isArray || function (obj) {
5370
5354
  return Object.prototype.toString.call(obj) === '[object Array]';
5371
5355
  };
5372
- var isDate$1 = function isDate(obj) {
5356
+ var isDate = function isDate(obj) {
5373
5357
  return Object.prototype.toString.call(obj) === '[object Date]';
5374
5358
  };
5375
5359
  var isRegex = function isRegex(obj) {
@@ -5702,7 +5686,7 @@ var cssColorKeywords = require$$0;
5702
5686
  value: true
5703
5687
  });
5704
5688
  function _interopDefault(ex) {
5705
- return ex && _typeof$1(ex) === 'object' && 'default' in ex ? ex['default'] : ex;
5689
+ return ex && _typeof(ex) === 'object' && 'default' in ex ? ex['default'] : ex;
5706
5690
  }
5707
5691
  var parse = lib$1;
5708
5692
  var parse__default = _interopDefault(parse);
@@ -6422,7 +6406,7 @@ var generated = {};
6422
6406
  var buffer = '';
6423
6407
  var lastType;
6424
6408
  function handleInterpolation(interpolation, i, arr) {
6425
- var type = _typeof$1(interpolation);
6409
+ var type = _typeof(interpolation);
6426
6410
  if (type === 'string') {
6427
6411
  // strip comments
6428
6412
  interpolation = interpolation.replace(/\/\*[\s\S]*?\*\/|\/\/.*$/gm, '');
@@ -8439,7 +8423,7 @@ var BottomNavigationContainer = index$9(View)({
8439
8423
  flex: 1,
8440
8424
  overflow: 'hidden'
8441
8425
  });
8442
- var ContentWrapper$2 = index$9(View)({
8426
+ var ContentWrapper = index$9(View)({
8443
8427
  flex: 1
8444
8428
  });
8445
8429
  var BottomBarWrapper = index$9(View)(function (_ref2) {
@@ -8502,7 +8486,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
8502
8486
  return [].concat(_toConsumableArray(loadedState), [selectedTabKey]);
8503
8487
  });
8504
8488
  }
8505
- return /*#__PURE__*/React__default.createElement(BottomNavigationContainer, nativeProps, /*#__PURE__*/React__default.createElement(ContentWrapper$2, null, tabs.map(function (tab) {
8489
+ return /*#__PURE__*/React__default.createElement(BottomNavigationContainer, nativeProps, /*#__PURE__*/React__default.createElement(ContentWrapper, null, tabs.map(function (tab) {
8506
8490
  var key = tab.key,
8507
8491
  component = tab.component,
8508
8492
  testID = tab.testID;
@@ -9314,59 +9298,12 @@ var BottomSheet$1 = Object.assign(BottomSheet, {
9314
9298
  ScrollView: BottomSheetScrollView
9315
9299
  });
9316
9300
 
9317
- function _typeof(o) {
9318
- "@babel/helpers - typeof";
9319
-
9320
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
9321
- return typeof o;
9322
- } : function (o) {
9323
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
9324
- }, _typeof(o);
9325
- }
9326
-
9327
9301
  function requiredArgs(required, args) {
9328
9302
  if (args.length < required) {
9329
9303
  throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
9330
9304
  }
9331
9305
  }
9332
9306
 
9333
- /**
9334
- * @name isDate
9335
- * @category Common Helpers
9336
- * @summary Is the given value a date?
9337
- *
9338
- * @description
9339
- * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
9340
- *
9341
- * @param {*} value - the value to check
9342
- * @returns {boolean} true if the given value is a date
9343
- * @throws {TypeError} 1 arguments required
9344
- *
9345
- * @example
9346
- * // For a valid date:
9347
- * const result = isDate(new Date())
9348
- * //=> true
9349
- *
9350
- * @example
9351
- * // For an invalid date:
9352
- * const result = isDate(new Date(NaN))
9353
- * //=> true
9354
- *
9355
- * @example
9356
- * // For some value:
9357
- * const result = isDate('2014-02-31')
9358
- * //=> false
9359
- *
9360
- * @example
9361
- * // For an object:
9362
- * const result = isDate({})
9363
- * //=> false
9364
- */
9365
- function isDate(value) {
9366
- requiredArgs(1, arguments);
9367
- return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
9368
- }
9369
-
9370
9307
  /**
9371
9308
  * @name toDate
9372
9309
  * @category Common Helpers
@@ -9397,11 +9334,11 @@ function isDate(value) {
9397
9334
  * const result = toDate(1392098430000)
9398
9335
  * //=> Tue Feb 11 2014 11:30:30
9399
9336
  */
9337
+
9400
9338
  function toDate(argument) {
9401
9339
  requiredArgs(1, arguments);
9402
- var argStr = Object.prototype.toString.call(argument);
9340
+ var argStr = Object.prototype.toString.call(argument); // Clone the date
9403
9341
 
9404
- // Clone the date
9405
9342
  if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {
9406
9343
  // Prevent the date to lose the milliseconds when passed to new Date() in IE10
9407
9344
  return new Date(argument.getTime());
@@ -9410,8 +9347,8 @@ function toDate(argument) {
9410
9347
  } else {
9411
9348
  if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
9412
9349
  // eslint-disable-next-line no-console
9413
- console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");
9414
- // eslint-disable-next-line no-console
9350
+ console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"); // eslint-disable-next-line no-console
9351
+
9415
9352
  console.warn(new Error().stack);
9416
9353
  }
9417
9354
  return new Date(NaN);
@@ -9430,34 +9367,548 @@ function toDate(argument) {
9430
9367
  *
9431
9368
  * Time value of Date: http://es5.github.io/#x15.9.1.1
9432
9369
  *
9370
+ * ### v2.0.0 breaking changes:
9371
+ *
9372
+ * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
9373
+ *
9374
+ * - Now `isValid` doesn't throw an exception
9375
+ * if the first argument is not an instance of Date.
9376
+ * Instead, argument is converted beforehand using `toDate`.
9377
+ *
9378
+ * Examples:
9379
+ *
9380
+ * | `isValid` argument | Before v2.0.0 | v2.0.0 onward |
9381
+ * |---------------------------|---------------|---------------|
9382
+ * | `new Date()` | `true` | `true` |
9383
+ * | `new Date('2016-01-01')` | `true` | `true` |
9384
+ * | `new Date('')` | `false` | `false` |
9385
+ * | `new Date(1488370835081)` | `true` | `true` |
9386
+ * | `new Date(NaN)` | `false` | `false` |
9387
+ * | `'2016-01-01'` | `TypeError` | `false` |
9388
+ * | `''` | `TypeError` | `false` |
9389
+ * | `1488370835081` | `TypeError` | `true` |
9390
+ * | `NaN` | `TypeError` | `false` |
9391
+ *
9392
+ * We introduce this change to make *date-fns* consistent with ECMAScript behavior
9393
+ * that try to coerce arguments to the expected type
9394
+ * (which is also the case with other *date-fns* functions).
9395
+ *
9433
9396
  * @param {*} date - the date to check
9434
9397
  * @returns {Boolean} the date is valid
9435
9398
  * @throws {TypeError} 1 argument required
9436
9399
  *
9437
9400
  * @example
9438
9401
  * // For the valid date:
9439
- * const result = isValid(new Date(2014, 1, 31))
9402
+ * var result = isValid(new Date(2014, 1, 31))
9440
9403
  * //=> true
9441
9404
  *
9442
9405
  * @example
9443
9406
  * // For the value, convertable into a date:
9444
- * const result = isValid(1393804800000)
9407
+ * var result = isValid(1393804800000)
9445
9408
  * //=> true
9446
9409
  *
9447
9410
  * @example
9448
9411
  * // For the invalid date:
9449
- * const result = isValid(new Date(''))
9412
+ * var result = isValid(new Date(''))
9450
9413
  * //=> false
9451
9414
  */
9415
+
9452
9416
  function isValid(dirtyDate) {
9453
9417
  requiredArgs(1, arguments);
9454
- if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {
9455
- return false;
9456
- }
9457
9418
  var date = toDate(dirtyDate);
9458
- return !isNaN(Number(date));
9419
+ return !isNaN(date);
9420
+ }
9421
+
9422
+ var formatDistanceLocale = {
9423
+ lessThanXSeconds: {
9424
+ one: 'less than a second',
9425
+ other: 'less than {{count}} seconds'
9426
+ },
9427
+ xSeconds: {
9428
+ one: '1 second',
9429
+ other: '{{count}} seconds'
9430
+ },
9431
+ halfAMinute: 'half a minute',
9432
+ lessThanXMinutes: {
9433
+ one: 'less than a minute',
9434
+ other: 'less than {{count}} minutes'
9435
+ },
9436
+ xMinutes: {
9437
+ one: '1 minute',
9438
+ other: '{{count}} minutes'
9439
+ },
9440
+ aboutXHours: {
9441
+ one: 'about 1 hour',
9442
+ other: 'about {{count}} hours'
9443
+ },
9444
+ xHours: {
9445
+ one: '1 hour',
9446
+ other: '{{count}} hours'
9447
+ },
9448
+ xDays: {
9449
+ one: '1 day',
9450
+ other: '{{count}} days'
9451
+ },
9452
+ aboutXWeeks: {
9453
+ one: 'about 1 week',
9454
+ other: 'about {{count}} weeks'
9455
+ },
9456
+ xWeeks: {
9457
+ one: '1 week',
9458
+ other: '{{count}} weeks'
9459
+ },
9460
+ aboutXMonths: {
9461
+ one: 'about 1 month',
9462
+ other: 'about {{count}} months'
9463
+ },
9464
+ xMonths: {
9465
+ one: '1 month',
9466
+ other: '{{count}} months'
9467
+ },
9468
+ aboutXYears: {
9469
+ one: 'about 1 year',
9470
+ other: 'about {{count}} years'
9471
+ },
9472
+ xYears: {
9473
+ one: '1 year',
9474
+ other: '{{count}} years'
9475
+ },
9476
+ overXYears: {
9477
+ one: 'over 1 year',
9478
+ other: 'over {{count}} years'
9479
+ },
9480
+ almostXYears: {
9481
+ one: 'almost 1 year',
9482
+ other: 'almost {{count}} years'
9483
+ }
9484
+ };
9485
+ function formatDistance(token, count, options) {
9486
+ options = options || {};
9487
+ var result;
9488
+ if (typeof formatDistanceLocale[token] === 'string') {
9489
+ result = formatDistanceLocale[token];
9490
+ } else if (count === 1) {
9491
+ result = formatDistanceLocale[token].one;
9492
+ } else {
9493
+ result = formatDistanceLocale[token].other.replace('{{count}}', count);
9494
+ }
9495
+ if (options.addSuffix) {
9496
+ if (options.comparison > 0) {
9497
+ return 'in ' + result;
9498
+ } else {
9499
+ return result + ' ago';
9500
+ }
9501
+ }
9502
+ return result;
9503
+ }
9504
+
9505
+ function buildFormatLongFn(args) {
9506
+ return function (dirtyOptions) {
9507
+ var options = dirtyOptions || {};
9508
+ var width = options.width ? String(options.width) : args.defaultWidth;
9509
+ var format = args.formats[width] || args.formats[args.defaultWidth];
9510
+ return format;
9511
+ };
9512
+ }
9513
+
9514
+ var dateFormats = {
9515
+ full: 'EEEE, MMMM do, y',
9516
+ "long": 'MMMM do, y',
9517
+ medium: 'MMM d, y',
9518
+ "short": 'MM/dd/yyyy'
9519
+ };
9520
+ var timeFormats = {
9521
+ full: 'h:mm:ss a zzzz',
9522
+ "long": 'h:mm:ss a z',
9523
+ medium: 'h:mm:ss a',
9524
+ "short": 'h:mm a'
9525
+ };
9526
+ var dateTimeFormats = {
9527
+ full: "{{date}} 'at' {{time}}",
9528
+ "long": "{{date}} 'at' {{time}}",
9529
+ medium: '{{date}}, {{time}}',
9530
+ "short": '{{date}}, {{time}}'
9531
+ };
9532
+ var formatLong = {
9533
+ date: buildFormatLongFn({
9534
+ formats: dateFormats,
9535
+ defaultWidth: 'full'
9536
+ }),
9537
+ time: buildFormatLongFn({
9538
+ formats: timeFormats,
9539
+ defaultWidth: 'full'
9540
+ }),
9541
+ dateTime: buildFormatLongFn({
9542
+ formats: dateTimeFormats,
9543
+ defaultWidth: 'full'
9544
+ })
9545
+ };
9546
+ var formatLong$1 = formatLong;
9547
+
9548
+ var formatRelativeLocale = {
9549
+ lastWeek: "'last' eeee 'at' p",
9550
+ yesterday: "'yesterday at' p",
9551
+ today: "'today at' p",
9552
+ tomorrow: "'tomorrow at' p",
9553
+ nextWeek: "eeee 'at' p",
9554
+ other: 'P'
9555
+ };
9556
+ function formatRelative(token, _date, _baseDate, _options) {
9557
+ return formatRelativeLocale[token];
9558
+ }
9559
+
9560
+ function buildLocalizeFn(args) {
9561
+ return function (dirtyIndex, dirtyOptions) {
9562
+ var options = dirtyOptions || {};
9563
+ var context = options.context ? String(options.context) : 'standalone';
9564
+ var valuesArray;
9565
+ if (context === 'formatting' && args.formattingValues) {
9566
+ var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
9567
+ var width = options.width ? String(options.width) : defaultWidth;
9568
+ valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
9569
+ } else {
9570
+ var _defaultWidth = args.defaultWidth;
9571
+ var _width = options.width ? String(options.width) : args.defaultWidth;
9572
+ valuesArray = args.values[_width] || args.values[_defaultWidth];
9573
+ }
9574
+ var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;
9575
+ return valuesArray[index];
9576
+ };
9459
9577
  }
9460
9578
 
9579
+ var eraValues = {
9580
+ narrow: ['B', 'A'],
9581
+ abbreviated: ['BC', 'AD'],
9582
+ wide: ['Before Christ', 'Anno Domini']
9583
+ };
9584
+ var quarterValues = {
9585
+ narrow: ['1', '2', '3', '4'],
9586
+ abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
9587
+ wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter'] // Note: in English, the names of days of the week and months are capitalized.
9588
+ // If you are making a new locale based on this one, check if the same is true for the language you're working on.
9589
+ // Generally, formatted dates should look like they are in the middle of a sentence,
9590
+ // e.g. in Spanish language the weekdays and months should be in the lowercase.
9591
+ };
9592
+
9593
+ var monthValues = {
9594
+ narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
9595
+ abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
9596
+ wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
9597
+ };
9598
+ var dayValues = {
9599
+ narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
9600
+ "short": ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
9601
+ abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
9602
+ wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
9603
+ };
9604
+ var dayPeriodValues = {
9605
+ narrow: {
9606
+ am: 'a',
9607
+ pm: 'p',
9608
+ midnight: 'mi',
9609
+ noon: 'n',
9610
+ morning: 'morning',
9611
+ afternoon: 'afternoon',
9612
+ evening: 'evening',
9613
+ night: 'night'
9614
+ },
9615
+ abbreviated: {
9616
+ am: 'AM',
9617
+ pm: 'PM',
9618
+ midnight: 'midnight',
9619
+ noon: 'noon',
9620
+ morning: 'morning',
9621
+ afternoon: 'afternoon',
9622
+ evening: 'evening',
9623
+ night: 'night'
9624
+ },
9625
+ wide: {
9626
+ am: 'a.m.',
9627
+ pm: 'p.m.',
9628
+ midnight: 'midnight',
9629
+ noon: 'noon',
9630
+ morning: 'morning',
9631
+ afternoon: 'afternoon',
9632
+ evening: 'evening',
9633
+ night: 'night'
9634
+ }
9635
+ };
9636
+ var formattingDayPeriodValues = {
9637
+ narrow: {
9638
+ am: 'a',
9639
+ pm: 'p',
9640
+ midnight: 'mi',
9641
+ noon: 'n',
9642
+ morning: 'in the morning',
9643
+ afternoon: 'in the afternoon',
9644
+ evening: 'in the evening',
9645
+ night: 'at night'
9646
+ },
9647
+ abbreviated: {
9648
+ am: 'AM',
9649
+ pm: 'PM',
9650
+ midnight: 'midnight',
9651
+ noon: 'noon',
9652
+ morning: 'in the morning',
9653
+ afternoon: 'in the afternoon',
9654
+ evening: 'in the evening',
9655
+ night: 'at night'
9656
+ },
9657
+ wide: {
9658
+ am: 'a.m.',
9659
+ pm: 'p.m.',
9660
+ midnight: 'midnight',
9661
+ noon: 'noon',
9662
+ morning: 'in the morning',
9663
+ afternoon: 'in the afternoon',
9664
+ evening: 'in the evening',
9665
+ night: 'at night'
9666
+ }
9667
+ };
9668
+ function ordinalNumber(dirtyNumber, _dirtyOptions) {
9669
+ var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
9670
+ // if they are different for different grammatical genders,
9671
+ // use `options.unit`:
9672
+ //
9673
+ // var options = dirtyOptions || {}
9674
+ // var unit = String(options.unit)
9675
+ //
9676
+ // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
9677
+ // 'day', 'hour', 'minute', 'second'
9678
+
9679
+ var rem100 = number % 100;
9680
+ if (rem100 > 20 || rem100 < 10) {
9681
+ switch (rem100 % 10) {
9682
+ case 1:
9683
+ return number + 'st';
9684
+ case 2:
9685
+ return number + 'nd';
9686
+ case 3:
9687
+ return number + 'rd';
9688
+ }
9689
+ }
9690
+ return number + 'th';
9691
+ }
9692
+ var localize = {
9693
+ ordinalNumber: ordinalNumber,
9694
+ era: buildLocalizeFn({
9695
+ values: eraValues,
9696
+ defaultWidth: 'wide'
9697
+ }),
9698
+ quarter: buildLocalizeFn({
9699
+ values: quarterValues,
9700
+ defaultWidth: 'wide',
9701
+ argumentCallback: function argumentCallback(quarter) {
9702
+ return Number(quarter) - 1;
9703
+ }
9704
+ }),
9705
+ month: buildLocalizeFn({
9706
+ values: monthValues,
9707
+ defaultWidth: 'wide'
9708
+ }),
9709
+ day: buildLocalizeFn({
9710
+ values: dayValues,
9711
+ defaultWidth: 'wide'
9712
+ }),
9713
+ dayPeriod: buildLocalizeFn({
9714
+ values: dayPeriodValues,
9715
+ defaultWidth: 'wide',
9716
+ formattingValues: formattingDayPeriodValues,
9717
+ defaultFormattingWidth: 'wide'
9718
+ })
9719
+ };
9720
+ var localize$1 = localize;
9721
+
9722
+ function buildMatchPatternFn(args) {
9723
+ return function (dirtyString, dirtyOptions) {
9724
+ var string = String(dirtyString);
9725
+ var options = dirtyOptions || {};
9726
+ var matchResult = string.match(args.matchPattern);
9727
+ if (!matchResult) {
9728
+ return null;
9729
+ }
9730
+ var matchedString = matchResult[0];
9731
+ var parseResult = string.match(args.parsePattern);
9732
+ if (!parseResult) {
9733
+ return null;
9734
+ }
9735
+ var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
9736
+ value = options.valueCallback ? options.valueCallback(value) : value;
9737
+ return {
9738
+ value: value,
9739
+ rest: string.slice(matchedString.length)
9740
+ };
9741
+ };
9742
+ }
9743
+
9744
+ function buildMatchFn(args) {
9745
+ return function (dirtyString, dirtyOptions) {
9746
+ var string = String(dirtyString);
9747
+ var options = dirtyOptions || {};
9748
+ var width = options.width;
9749
+ var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
9750
+ var matchResult = string.match(matchPattern);
9751
+ if (!matchResult) {
9752
+ return null;
9753
+ }
9754
+ var matchedString = matchResult[0];
9755
+ var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
9756
+ var value;
9757
+ if (Object.prototype.toString.call(parsePatterns) === '[object Array]') {
9758
+ value = findIndex(parsePatterns, function (pattern) {
9759
+ return pattern.test(matchedString);
9760
+ });
9761
+ } else {
9762
+ value = findKey(parsePatterns, function (pattern) {
9763
+ return pattern.test(matchedString);
9764
+ });
9765
+ }
9766
+ value = args.valueCallback ? args.valueCallback(value) : value;
9767
+ value = options.valueCallback ? options.valueCallback(value) : value;
9768
+ return {
9769
+ value: value,
9770
+ rest: string.slice(matchedString.length)
9771
+ };
9772
+ };
9773
+ }
9774
+ function findKey(object, predicate) {
9775
+ for (var key in object) {
9776
+ if (object.hasOwnProperty(key) && predicate(object[key])) {
9777
+ return key;
9778
+ }
9779
+ }
9780
+ }
9781
+ function findIndex(array, predicate) {
9782
+ for (var key = 0; key < array.length; key++) {
9783
+ if (predicate(array[key])) {
9784
+ return key;
9785
+ }
9786
+ }
9787
+ }
9788
+
9789
+ var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
9790
+ var parseOrdinalNumberPattern = /\d+/i;
9791
+ var matchEraPatterns = {
9792
+ narrow: /^(b|a)/i,
9793
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
9794
+ wide: /^(before christ|before common era|anno domini|common era)/i
9795
+ };
9796
+ var parseEraPatterns = {
9797
+ any: [/^b/i, /^(a|c)/i]
9798
+ };
9799
+ var matchQuarterPatterns = {
9800
+ narrow: /^[1234]/i,
9801
+ abbreviated: /^q[1234]/i,
9802
+ wide: /^[1234](th|st|nd|rd)? quarter/i
9803
+ };
9804
+ var parseQuarterPatterns = {
9805
+ any: [/1/i, /2/i, /3/i, /4/i]
9806
+ };
9807
+ var matchMonthPatterns = {
9808
+ narrow: /^[jfmasond]/i,
9809
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
9810
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
9811
+ };
9812
+ var parseMonthPatterns = {
9813
+ narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
9814
+ any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
9815
+ };
9816
+ var matchDayPatterns = {
9817
+ narrow: /^[smtwf]/i,
9818
+ "short": /^(su|mo|tu|we|th|fr|sa)/i,
9819
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
9820
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
9821
+ };
9822
+ var parseDayPatterns = {
9823
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
9824
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
9825
+ };
9826
+ var matchDayPeriodPatterns = {
9827
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
9828
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
9829
+ };
9830
+ var parseDayPeriodPatterns = {
9831
+ any: {
9832
+ am: /^a/i,
9833
+ pm: /^p/i,
9834
+ midnight: /^mi/i,
9835
+ noon: /^no/i,
9836
+ morning: /morning/i,
9837
+ afternoon: /afternoon/i,
9838
+ evening: /evening/i,
9839
+ night: /night/i
9840
+ }
9841
+ };
9842
+ var match = {
9843
+ ordinalNumber: buildMatchPatternFn({
9844
+ matchPattern: matchOrdinalNumberPattern,
9845
+ parsePattern: parseOrdinalNumberPattern,
9846
+ valueCallback: function valueCallback(value) {
9847
+ return parseInt(value, 10);
9848
+ }
9849
+ }),
9850
+ era: buildMatchFn({
9851
+ matchPatterns: matchEraPatterns,
9852
+ defaultMatchWidth: 'wide',
9853
+ parsePatterns: parseEraPatterns,
9854
+ defaultParseWidth: 'any'
9855
+ }),
9856
+ quarter: buildMatchFn({
9857
+ matchPatterns: matchQuarterPatterns,
9858
+ defaultMatchWidth: 'wide',
9859
+ parsePatterns: parseQuarterPatterns,
9860
+ defaultParseWidth: 'any',
9861
+ valueCallback: function valueCallback(index) {
9862
+ return index + 1;
9863
+ }
9864
+ }),
9865
+ month: buildMatchFn({
9866
+ matchPatterns: matchMonthPatterns,
9867
+ defaultMatchWidth: 'wide',
9868
+ parsePatterns: parseMonthPatterns,
9869
+ defaultParseWidth: 'any'
9870
+ }),
9871
+ day: buildMatchFn({
9872
+ matchPatterns: matchDayPatterns,
9873
+ defaultMatchWidth: 'wide',
9874
+ parsePatterns: parseDayPatterns,
9875
+ defaultParseWidth: 'any'
9876
+ }),
9877
+ dayPeriod: buildMatchFn({
9878
+ matchPatterns: matchDayPeriodPatterns,
9879
+ defaultMatchWidth: 'any',
9880
+ parsePatterns: parseDayPeriodPatterns,
9881
+ defaultParseWidth: 'any'
9882
+ })
9883
+ };
9884
+ var match$1 = match;
9885
+
9886
+ /**
9887
+ * @type {Locale}
9888
+ * @category Locales
9889
+ * @summary English locale (United States).
9890
+ * @language English
9891
+ * @iso-639-2 eng
9892
+ * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
9893
+ * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
9894
+ */
9895
+
9896
+ var locale = {
9897
+ code: 'en-US',
9898
+ formatDistance: formatDistance,
9899
+ formatLong: formatLong$1,
9900
+ formatRelative: formatRelative,
9901
+ localize: localize$1,
9902
+ match: match$1,
9903
+ options: {
9904
+ weekStartsOn: 0
9905
+ /* Sunday */,
9906
+
9907
+ firstWeekContainsDate: 1
9908
+ }
9909
+ };
9910
+ var defaultLocale = locale;
9911
+
9461
9912
  function toInteger(dirtyNumber) {
9462
9913
  if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
9463
9914
  return NaN;
@@ -9477,6 +9928,10 @@ function toInteger(dirtyNumber) {
9477
9928
  * @description
9478
9929
  * Add the specified number of milliseconds to the given date.
9479
9930
  *
9931
+ * ### v2.0.0 breaking changes:
9932
+ *
9933
+ * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
9934
+ *
9480
9935
  * @param {Date|Number} date - the date to be changed
9481
9936
  * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
9482
9937
  * @returns {Date} the new date with the milliseconds added
@@ -9484,9 +9939,10 @@ function toInteger(dirtyNumber) {
9484
9939
  *
9485
9940
  * @example
9486
9941
  * // Add 750 milliseconds to 10 July 2014 12:45:30.000:
9487
- * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
9942
+ * var result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
9488
9943
  * //=> Thu Jul 10 2014 12:45:30.750
9489
9944
  */
9945
+
9490
9946
  function addMilliseconds(dirtyDate, dirtyAmount) {
9491
9947
  requiredArgs(2, arguments);
9492
9948
  var timestamp = toDate(dirtyDate).getTime();
@@ -9502,6 +9958,10 @@ function addMilliseconds(dirtyDate, dirtyAmount) {
9502
9958
  * @description
9503
9959
  * Subtract the specified number of milliseconds from the given date.
9504
9960
  *
9961
+ * ### v2.0.0 breaking changes:
9962
+ *
9963
+ * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
9964
+ *
9505
9965
  * @param {Date|Number} date - the date to be changed
9506
9966
  * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
9507
9967
  * @returns {Date} the new date with the milliseconds subtracted
@@ -9509,16 +9969,107 @@ function addMilliseconds(dirtyDate, dirtyAmount) {
9509
9969
  *
9510
9970
  * @example
9511
9971
  * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000:
9512
- * const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
9972
+ * var result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
9513
9973
  * //=> Thu Jul 10 2014 12:45:29.250
9514
9974
  */
9975
+
9515
9976
  function subMilliseconds(dirtyDate, dirtyAmount) {
9516
9977
  requiredArgs(2, arguments);
9517
9978
  var amount = toInteger(dirtyAmount);
9518
9979
  return addMilliseconds(dirtyDate, -amount);
9519
9980
  }
9520
9981
 
9521
- var MILLISECONDS_IN_DAY = 86400000;
9982
+ function addLeadingZeros(number, targetLength) {
9983
+ var sign = number < 0 ? '-' : '';
9984
+ var output = Math.abs(number).toString();
9985
+ while (output.length < targetLength) {
9986
+ output = '0' + output;
9987
+ }
9988
+ return sign + output;
9989
+ }
9990
+
9991
+ /*
9992
+ * | | Unit | | Unit |
9993
+ * |-----|--------------------------------|-----|--------------------------------|
9994
+ * | a | AM, PM | A* | |
9995
+ * | d | Day of month | D | |
9996
+ * | h | Hour [1-12] | H | Hour [0-23] |
9997
+ * | m | Minute | M | Month |
9998
+ * | s | Second | S | Fraction of second |
9999
+ * | y | Year (abs) | Y | |
10000
+ *
10001
+ * Letters marked by * are not implemented but reserved by Unicode standard.
10002
+ */
10003
+
10004
+ var formatters$2 = {
10005
+ // Year
10006
+ y: function y(date, token) {
10007
+ // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
10008
+ // | Year | y | yy | yyy | yyyy | yyyyy |
10009
+ // |----------|-------|----|-------|-------|-------|
10010
+ // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
10011
+ // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
10012
+ // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
10013
+ // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
10014
+ // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
10015
+ var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
10016
+
10017
+ var year = signedYear > 0 ? signedYear : 1 - signedYear;
10018
+ return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
10019
+ },
10020
+ // Month
10021
+ M: function M(date, token) {
10022
+ var month = date.getUTCMonth();
10023
+ return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
10024
+ },
10025
+ // Day of the month
10026
+ d: function d(date, token) {
10027
+ return addLeadingZeros(date.getUTCDate(), token.length);
10028
+ },
10029
+ // AM or PM
10030
+ a: function a(date, token) {
10031
+ var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
10032
+ switch (token) {
10033
+ case 'a':
10034
+ case 'aa':
10035
+ case 'aaa':
10036
+ return dayPeriodEnumValue.toUpperCase();
10037
+ case 'aaaaa':
10038
+ return dayPeriodEnumValue[0];
10039
+ case 'aaaa':
10040
+ default:
10041
+ return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
10042
+ }
10043
+ },
10044
+ // Hour [1-12]
10045
+ h: function h(date, token) {
10046
+ return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
10047
+ },
10048
+ // Hour [0-23]
10049
+ H: function H(date, token) {
10050
+ return addLeadingZeros(date.getUTCHours(), token.length);
10051
+ },
10052
+ // Minute
10053
+ m: function m(date, token) {
10054
+ return addLeadingZeros(date.getUTCMinutes(), token.length);
10055
+ },
10056
+ // Second
10057
+ s: function s(date, token) {
10058
+ return addLeadingZeros(date.getUTCSeconds(), token.length);
10059
+ },
10060
+ // Fraction of second
10061
+ S: function S(date, token) {
10062
+ var numberOfDigits = token.length;
10063
+ var milliseconds = date.getUTCMilliseconds();
10064
+ var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
10065
+ return addLeadingZeros(fractionalSeconds, token.length);
10066
+ }
10067
+ };
10068
+ var lightFormatters = formatters$2;
10069
+
10070
+ var MILLISECONDS_IN_DAY = 86400000; // This function will be a part of public API when UTC function will be implemented.
10071
+ // See issue: https://github.com/date-fns/date-fns/issues/376
10072
+
9522
10073
  function getUTCDayOfYear(dirtyDate) {
9523
10074
  requiredArgs(1, arguments);
9524
10075
  var date = toDate(dirtyDate);
@@ -9530,6 +10081,8 @@ function getUTCDayOfYear(dirtyDate) {
9530
10081
  return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;
9531
10082
  }
9532
10083
 
10084
+ // See issue: https://github.com/date-fns/date-fns/issues/376
10085
+
9533
10086
  function startOfUTCISOWeek(dirtyDate) {
9534
10087
  requiredArgs(1, arguments);
9535
10088
  var weekStartsOn = 1;
@@ -9541,6 +10094,8 @@ function startOfUTCISOWeek(dirtyDate) {
9541
10094
  return date;
9542
10095
  }
9543
10096
 
10097
+ // See issue: https://github.com/date-fns/date-fns/issues/376
10098
+
9544
10099
  function getUTCISOWeekYear(dirtyDate) {
9545
10100
  requiredArgs(1, arguments);
9546
10101
  var date = toDate(dirtyDate);
@@ -9562,6 +10117,8 @@ function getUTCISOWeekYear(dirtyDate) {
9562
10117
  }
9563
10118
  }
9564
10119
 
10120
+ // See issue: https://github.com/date-fns/date-fns/issues/376
10121
+
9565
10122
  function startOfUTCISOWeekYear(dirtyDate) {
9566
10123
  requiredArgs(1, arguments);
9567
10124
  var year = getUTCISOWeekYear(dirtyDate);
@@ -9572,30 +10129,29 @@ function startOfUTCISOWeekYear(dirtyDate) {
9572
10129
  return date;
9573
10130
  }
9574
10131
 
9575
- var MILLISECONDS_IN_WEEK$1 = 604800000;
10132
+ var MILLISECONDS_IN_WEEK$1 = 604800000; // This function will be a part of public API when UTC function will be implemented.
10133
+ // See issue: https://github.com/date-fns/date-fns/issues/376
10134
+
9576
10135
  function getUTCISOWeek(dirtyDate) {
9577
10136
  requiredArgs(1, arguments);
9578
10137
  var date = toDate(dirtyDate);
9579
- var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime();
9580
-
9581
- // Round the number of days to the nearest integer
10138
+ var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime(); // Round the number of days to the nearest integer
9582
10139
  // because the number of milliseconds in a week is not constant
9583
10140
  // (e.g. it's different in the week of the daylight saving time clock shift)
10141
+
9584
10142
  return Math.round(diff / MILLISECONDS_IN_WEEK$1) + 1;
9585
10143
  }
9586
10144
 
9587
- var defaultOptions = {};
9588
- function getDefaultOptions() {
9589
- return defaultOptions;
9590
- }
10145
+ // See issue: https://github.com/date-fns/date-fns/issues/376
9591
10146
 
9592
- function startOfUTCWeek(dirtyDate, options) {
9593
- var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
10147
+ function startOfUTCWeek(dirtyDate, dirtyOptions) {
9594
10148
  requiredArgs(1, arguments);
9595
- var defaultOptions = getDefaultOptions();
9596
- var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);
10149
+ var options = dirtyOptions || {};
10150
+ var locale = options.locale;
10151
+ var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
10152
+ var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);
10153
+ var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
9597
10154
 
9598
- // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
9599
10155
  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
9600
10156
  throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
9601
10157
  }
@@ -9607,26 +10163,29 @@ function startOfUTCWeek(dirtyDate, options) {
9607
10163
  return date;
9608
10164
  }
9609
10165
 
9610
- function getUTCWeekYear(dirtyDate, options) {
9611
- var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
10166
+ // See issue: https://github.com/date-fns/date-fns/issues/376
10167
+
10168
+ function getUTCWeekYear(dirtyDate, dirtyOptions) {
9612
10169
  requiredArgs(1, arguments);
9613
- var date = toDate(dirtyDate);
10170
+ var date = toDate(dirtyDate, dirtyOptions);
9614
10171
  var year = date.getUTCFullYear();
9615
- var defaultOptions = getDefaultOptions();
9616
- var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);
10172
+ var options = dirtyOptions || {};
10173
+ var locale = options.locale;
10174
+ var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate;
10175
+ var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
10176
+ var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
9617
10177
 
9618
- // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
9619
10178
  if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
9620
10179
  throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
9621
10180
  }
9622
10181
  var firstWeekOfNextYear = new Date(0);
9623
10182
  firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);
9624
10183
  firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);
9625
- var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, options);
10184
+ var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, dirtyOptions);
9626
10185
  var firstWeekOfThisYear = new Date(0);
9627
10186
  firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);
9628
10187
  firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);
9629
- var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, options);
10188
+ var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, dirtyOptions);
9630
10189
  if (date.getTime() >= startOfNextYear.getTime()) {
9631
10190
  return year + 1;
9632
10191
  } else if (date.getTime() >= startOfThisYear.getTime()) {
@@ -9636,120 +10195,36 @@ function getUTCWeekYear(dirtyDate, options) {
9636
10195
  }
9637
10196
  }
9638
10197
 
9639
- function startOfUTCWeekYear(dirtyDate, options) {
9640
- var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
10198
+ // See issue: https://github.com/date-fns/date-fns/issues/376
10199
+
10200
+ function startOfUTCWeekYear(dirtyDate, dirtyOptions) {
9641
10201
  requiredArgs(1, arguments);
9642
- var defaultOptions = getDefaultOptions();
9643
- var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);
9644
- var year = getUTCWeekYear(dirtyDate, options);
10202
+ var options = dirtyOptions || {};
10203
+ var locale = options.locale;
10204
+ var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate;
10205
+ var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
10206
+ var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate);
10207
+ var year = getUTCWeekYear(dirtyDate, dirtyOptions);
9645
10208
  var firstWeek = new Date(0);
9646
10209
  firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);
9647
10210
  firstWeek.setUTCHours(0, 0, 0, 0);
9648
- var date = startOfUTCWeek(firstWeek, options);
10211
+ var date = startOfUTCWeek(firstWeek, dirtyOptions);
9649
10212
  return date;
9650
10213
  }
9651
10214
 
9652
- var MILLISECONDS_IN_WEEK = 604800000;
10215
+ var MILLISECONDS_IN_WEEK = 604800000; // This function will be a part of public API when UTC function will be implemented.
10216
+ // See issue: https://github.com/date-fns/date-fns/issues/376
10217
+
9653
10218
  function getUTCWeek(dirtyDate, options) {
9654
10219
  requiredArgs(1, arguments);
9655
10220
  var date = toDate(dirtyDate);
9656
- var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime();
9657
-
9658
- // Round the number of days to the nearest integer
10221
+ var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime(); // Round the number of days to the nearest integer
9659
10222
  // because the number of milliseconds in a week is not constant
9660
10223
  // (e.g. it's different in the week of the daylight saving time clock shift)
9661
- return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
9662
- }
9663
10224
 
9664
- function addLeadingZeros(number, targetLength) {
9665
- var sign = number < 0 ? '-' : '';
9666
- var output = Math.abs(number).toString();
9667
- while (output.length < targetLength) {
9668
- output = '0' + output;
9669
- }
9670
- return sign + output;
10225
+ return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
9671
10226
  }
9672
10227
 
9673
- /*
9674
- * | | Unit | | Unit |
9675
- * |-----|--------------------------------|-----|--------------------------------|
9676
- * | a | AM, PM | A* | |
9677
- * | d | Day of month | D | |
9678
- * | h | Hour [1-12] | H | Hour [0-23] |
9679
- * | m | Minute | M | Month |
9680
- * | s | Second | S | Fraction of second |
9681
- * | y | Year (abs) | Y | |
9682
- *
9683
- * Letters marked by * are not implemented but reserved by Unicode standard.
9684
- */
9685
- var formatters$2 = {
9686
- // Year
9687
- y: function y(date, token) {
9688
- // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
9689
- // | Year | y | yy | yyy | yyyy | yyyyy |
9690
- // |----------|-------|----|-------|-------|-------|
9691
- // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
9692
- // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
9693
- // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
9694
- // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
9695
- // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
9696
-
9697
- var signedYear = date.getUTCFullYear();
9698
- // Returns 1 for 1 BC (which is year 0 in JavaScript)
9699
- var year = signedYear > 0 ? signedYear : 1 - signedYear;
9700
- return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
9701
- },
9702
- // Month
9703
- M: function M(date, token) {
9704
- var month = date.getUTCMonth();
9705
- return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
9706
- },
9707
- // Day of the month
9708
- d: function d(date, token) {
9709
- return addLeadingZeros(date.getUTCDate(), token.length);
9710
- },
9711
- // AM or PM
9712
- a: function a(date, token) {
9713
- var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
9714
- switch (token) {
9715
- case 'a':
9716
- case 'aa':
9717
- return dayPeriodEnumValue.toUpperCase();
9718
- case 'aaa':
9719
- return dayPeriodEnumValue;
9720
- case 'aaaaa':
9721
- return dayPeriodEnumValue[0];
9722
- case 'aaaa':
9723
- default:
9724
- return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
9725
- }
9726
- },
9727
- // Hour [1-12]
9728
- h: function h(date, token) {
9729
- return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
9730
- },
9731
- // Hour [0-23]
9732
- H: function H(date, token) {
9733
- return addLeadingZeros(date.getUTCHours(), token.length);
9734
- },
9735
- // Minute
9736
- m: function m(date, token) {
9737
- return addLeadingZeros(date.getUTCMinutes(), token.length);
9738
- },
9739
- // Second
9740
- s: function s(date, token) {
9741
- return addLeadingZeros(date.getUTCSeconds(), token.length);
9742
- },
9743
- // Fraction of second
9744
- S: function S(date, token) {
9745
- var numberOfDigits = token.length;
9746
- var milliseconds = date.getUTCMilliseconds();
9747
- var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
9748
- return addLeadingZeros(fractionalSeconds, token.length);
9749
- }
9750
- };
9751
- var lightFormatters = formatters$2;
9752
-
9753
10228
  var dayPeriodEnum = {
9754
10229
  am: 'am',
9755
10230
  pm: 'pm',
@@ -9759,52 +10234,52 @@ var dayPeriodEnum = {
9759
10234
  afternoon: 'afternoon',
9760
10235
  evening: 'evening',
9761
10236
  night: 'night'
10237
+ /*
10238
+ * | | Unit | | Unit |
10239
+ * |-----|--------------------------------|-----|--------------------------------|
10240
+ * | a | AM, PM | A* | Milliseconds in day |
10241
+ * | b | AM, PM, noon, midnight | B | Flexible day period |
10242
+ * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
10243
+ * | d | Day of month | D | Day of year |
10244
+ * | e | Local day of week | E | Day of week |
10245
+ * | f | | F* | Day of week in month |
10246
+ * | g* | Modified Julian day | G | Era |
10247
+ * | h | Hour [1-12] | H | Hour [0-23] |
10248
+ * | i! | ISO day of week | I! | ISO week of year |
10249
+ * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
10250
+ * | k | Hour [1-24] | K | Hour [0-11] |
10251
+ * | l* | (deprecated) | L | Stand-alone month |
10252
+ * | m | Minute | M | Month |
10253
+ * | n | | N | |
10254
+ * | o! | Ordinal number modifier | O | Timezone (GMT) |
10255
+ * | p! | Long localized time | P! | Long localized date |
10256
+ * | q | Stand-alone quarter | Q | Quarter |
10257
+ * | r* | Related Gregorian year | R! | ISO week-numbering year |
10258
+ * | s | Second | S | Fraction of second |
10259
+ * | t! | Seconds timestamp | T! | Milliseconds timestamp |
10260
+ * | u | Extended year | U* | Cyclic year |
10261
+ * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
10262
+ * | w | Local week of year | W* | Week of month |
10263
+ * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
10264
+ * | y | Year (abs) | Y | Local week-numbering year |
10265
+ * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
10266
+ *
10267
+ * Letters marked by * are not implemented but reserved by Unicode standard.
10268
+ *
10269
+ * Letters marked by ! are non-standard, but implemented by date-fns:
10270
+ * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)
10271
+ * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
10272
+ * i.e. 7 for Sunday, 1 for Monday, etc.
10273
+ * - `I` is ISO week of year, as opposed to `w` which is local week of year.
10274
+ * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
10275
+ * `R` is supposed to be used in conjunction with `I` and `i`
10276
+ * for universal ISO week-numbering date, whereas
10277
+ * `Y` is supposed to be used in conjunction with `w` and `e`
10278
+ * for week-numbering date specific to the locale.
10279
+ * - `P` is long localized date format
10280
+ * - `p` is long localized time format
10281
+ */
9762
10282
  };
9763
- /*
9764
- * | | Unit | | Unit |
9765
- * |-----|--------------------------------|-----|--------------------------------|
9766
- * | a | AM, PM | A* | Milliseconds in day |
9767
- * | b | AM, PM, noon, midnight | B | Flexible day period |
9768
- * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
9769
- * | d | Day of month | D | Day of year |
9770
- * | e | Local day of week | E | Day of week |
9771
- * | f | | F* | Day of week in month |
9772
- * | g* | Modified Julian day | G | Era |
9773
- * | h | Hour [1-12] | H | Hour [0-23] |
9774
- * | i! | ISO day of week | I! | ISO week of year |
9775
- * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
9776
- * | k | Hour [1-24] | K | Hour [0-11] |
9777
- * | l* | (deprecated) | L | Stand-alone month |
9778
- * | m | Minute | M | Month |
9779
- * | n | | N | |
9780
- * | o! | Ordinal number modifier | O | Timezone (GMT) |
9781
- * | p! | Long localized time | P! | Long localized date |
9782
- * | q | Stand-alone quarter | Q | Quarter |
9783
- * | r* | Related Gregorian year | R! | ISO week-numbering year |
9784
- * | s | Second | S | Fraction of second |
9785
- * | t! | Seconds timestamp | T! | Milliseconds timestamp |
9786
- * | u | Extended year | U* | Cyclic year |
9787
- * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
9788
- * | w | Local week of year | W* | Week of month |
9789
- * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
9790
- * | y | Year (abs) | Y | Local week-numbering year |
9791
- * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
9792
- *
9793
- * Letters marked by * are not implemented but reserved by Unicode standard.
9794
- *
9795
- * Letters marked by ! are non-standard, but implemented by date-fns:
9796
- * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)
9797
- * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
9798
- * i.e. 7 for Sunday, 1 for Monday, etc.
9799
- * - `I` is ISO week of year, as opposed to `w` which is local week of year.
9800
- * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
9801
- * `R` is supposed to be used in conjunction with `I` and `i`
9802
- * for universal ISO week-numbering date, whereas
9803
- * `Y` is supposed to be used in conjunction with `w` and `e`
9804
- * for week-numbering date specific to the locale.
9805
- * - `P` is long localized date format
9806
- * - `p` is long localized time format
9807
- */
9808
10283
 
9809
10284
  var formatters = {
9810
10285
  // Era
@@ -9819,11 +10294,13 @@ var formatters = {
9819
10294
  width: 'abbreviated'
9820
10295
  });
9821
10296
  // A, B
10297
+
9822
10298
  case 'GGGGG':
9823
10299
  return localize.era(era, {
9824
10300
  width: 'narrow'
9825
10301
  });
9826
10302
  // Anno Domini, Before Christ
10303
+
9827
10304
  case 'GGGG':
9828
10305
  default:
9829
10306
  return localize.era(era, {
@@ -9835,8 +10312,8 @@ var formatters = {
9835
10312
  y: function y(date, token, localize) {
9836
10313
  // Ordinal number
9837
10314
  if (token === 'yo') {
9838
- var signedYear = date.getUTCFullYear();
9839
- // Returns 1 for 1 BC (which is year 0 in JavaScript)
10315
+ var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
10316
+
9840
10317
  var year = signedYear > 0 ? signedYear : 1 - signedYear;
9841
10318
  return localize.ordinalNumber(year, {
9842
10319
  unit: 'year'
@@ -9846,31 +10323,27 @@ var formatters = {
9846
10323
  },
9847
10324
  // Local week-numbering year
9848
10325
  Y: function Y(date, token, localize, options) {
9849
- var signedWeekYear = getUTCWeekYear(date, options);
9850
- // Returns 1 for 1 BC (which is year 0 in JavaScript)
9851
- var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;
10326
+ var signedWeekYear = getUTCWeekYear(date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript)
10327
+
10328
+ var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year
9852
10329
 
9853
- // Two digit year
9854
10330
  if (token === 'YY') {
9855
10331
  var twoDigitYear = weekYear % 100;
9856
10332
  return addLeadingZeros(twoDigitYear, 2);
9857
- }
10333
+ } // Ordinal number
9858
10334
 
9859
- // Ordinal number
9860
10335
  if (token === 'Yo') {
9861
10336
  return localize.ordinalNumber(weekYear, {
9862
10337
  unit: 'year'
9863
10338
  });
9864
- }
10339
+ } // Padding
9865
10340
 
9866
- // Padding
9867
10341
  return addLeadingZeros(weekYear, token.length);
9868
10342
  },
9869
10343
  // ISO week-numbering year
9870
10344
  R: function R(date, token) {
9871
- var isoWeekYear = getUTCISOWeekYear(date);
10345
+ var isoWeekYear = getUTCISOWeekYear(date); // Padding
9872
10346
 
9873
- // Padding
9874
10347
  return addLeadingZeros(isoWeekYear, token.length);
9875
10348
  },
9876
10349
  // Extended year. This is a single number designating the year of this calendar system.
@@ -9894,26 +10367,31 @@ var formatters = {
9894
10367
  case 'Q':
9895
10368
  return String(quarter);
9896
10369
  // 01, 02, 03, 04
10370
+
9897
10371
  case 'QQ':
9898
10372
  return addLeadingZeros(quarter, 2);
9899
10373
  // 1st, 2nd, 3rd, 4th
10374
+
9900
10375
  case 'Qo':
9901
10376
  return localize.ordinalNumber(quarter, {
9902
10377
  unit: 'quarter'
9903
10378
  });
9904
10379
  // Q1, Q2, Q3, Q4
10380
+
9905
10381
  case 'QQQ':
9906
10382
  return localize.quarter(quarter, {
9907
10383
  width: 'abbreviated',
9908
10384
  context: 'formatting'
9909
10385
  });
9910
10386
  // 1, 2, 3, 4 (narrow quarter; could be not numerical)
10387
+
9911
10388
  case 'QQQQQ':
9912
10389
  return localize.quarter(quarter, {
9913
10390
  width: 'narrow',
9914
10391
  context: 'formatting'
9915
10392
  });
9916
10393
  // 1st quarter, 2nd quarter, ...
10394
+
9917
10395
  case 'QQQQ':
9918
10396
  default:
9919
10397
  return localize.quarter(quarter, {
@@ -9930,26 +10408,31 @@ var formatters = {
9930
10408
  case 'q':
9931
10409
  return String(quarter);
9932
10410
  // 01, 02, 03, 04
10411
+
9933
10412
  case 'qq':
9934
10413
  return addLeadingZeros(quarter, 2);
9935
10414
  // 1st, 2nd, 3rd, 4th
10415
+
9936
10416
  case 'qo':
9937
10417
  return localize.ordinalNumber(quarter, {
9938
10418
  unit: 'quarter'
9939
10419
  });
9940
10420
  // Q1, Q2, Q3, Q4
10421
+
9941
10422
  case 'qqq':
9942
10423
  return localize.quarter(quarter, {
9943
10424
  width: 'abbreviated',
9944
10425
  context: 'standalone'
9945
10426
  });
9946
10427
  // 1, 2, 3, 4 (narrow quarter; could be not numerical)
10428
+
9947
10429
  case 'qqqqq':
9948
10430
  return localize.quarter(quarter, {
9949
10431
  width: 'narrow',
9950
10432
  context: 'standalone'
9951
10433
  });
9952
10434
  // 1st quarter, 2nd quarter, ...
10435
+
9953
10436
  case 'qqqq':
9954
10437
  default:
9955
10438
  return localize.quarter(quarter, {
@@ -9966,23 +10449,27 @@ var formatters = {
9966
10449
  case 'MM':
9967
10450
  return lightFormatters.M(date, token);
9968
10451
  // 1st, 2nd, ..., 12th
10452
+
9969
10453
  case 'Mo':
9970
10454
  return localize.ordinalNumber(month + 1, {
9971
10455
  unit: 'month'
9972
10456
  });
9973
10457
  // Jan, Feb, ..., Dec
10458
+
9974
10459
  case 'MMM':
9975
10460
  return localize.month(month, {
9976
10461
  width: 'abbreviated',
9977
10462
  context: 'formatting'
9978
10463
  });
9979
10464
  // J, F, ..., D
10465
+
9980
10466
  case 'MMMMM':
9981
10467
  return localize.month(month, {
9982
10468
  width: 'narrow',
9983
10469
  context: 'formatting'
9984
10470
  });
9985
10471
  // January, February, ..., December
10472
+
9986
10473
  case 'MMMM':
9987
10474
  default:
9988
10475
  return localize.month(month, {
@@ -9999,26 +10486,31 @@ var formatters = {
9999
10486
  case 'L':
10000
10487
  return String(month + 1);
10001
10488
  // 01, 02, ..., 12
10489
+
10002
10490
  case 'LL':
10003
10491
  return addLeadingZeros(month + 1, 2);
10004
10492
  // 1st, 2nd, ..., 12th
10493
+
10005
10494
  case 'Lo':
10006
10495
  return localize.ordinalNumber(month + 1, {
10007
10496
  unit: 'month'
10008
10497
  });
10009
10498
  // Jan, Feb, ..., Dec
10499
+
10010
10500
  case 'LLL':
10011
10501
  return localize.month(month, {
10012
10502
  width: 'abbreviated',
10013
10503
  context: 'standalone'
10014
10504
  });
10015
10505
  // J, F, ..., D
10506
+
10016
10507
  case 'LLLLL':
10017
10508
  return localize.month(month, {
10018
10509
  width: 'narrow',
10019
10510
  context: 'standalone'
10020
10511
  });
10021
10512
  // January, February, ..., December
10513
+
10022
10514
  case 'LLLL':
10023
10515
  default:
10024
10516
  return localize.month(month, {
@@ -10079,18 +10571,21 @@ var formatters = {
10079
10571
  context: 'formatting'
10080
10572
  });
10081
10573
  // T
10574
+
10082
10575
  case 'EEEEE':
10083
10576
  return localize.day(dayOfWeek, {
10084
10577
  width: 'narrow',
10085
10578
  context: 'formatting'
10086
10579
  });
10087
10580
  // Tu
10581
+
10088
10582
  case 'EEEEEE':
10089
10583
  return localize.day(dayOfWeek, {
10090
10584
  width: 'short',
10091
10585
  context: 'formatting'
10092
10586
  });
10093
10587
  // Tuesday
10588
+
10094
10589
  case 'EEEE':
10095
10590
  default:
10096
10591
  return localize.day(dayOfWeek, {
@@ -10108,9 +10603,11 @@ var formatters = {
10108
10603
  case 'e':
10109
10604
  return String(localDayOfWeek);
10110
10605
  // Padded numerical value
10606
+
10111
10607
  case 'ee':
10112
10608
  return addLeadingZeros(localDayOfWeek, 2);
10113
10609
  // 1st, 2nd, ..., 7th
10610
+
10114
10611
  case 'eo':
10115
10612
  return localize.ordinalNumber(localDayOfWeek, {
10116
10613
  unit: 'day'
@@ -10121,18 +10618,21 @@ var formatters = {
10121
10618
  context: 'formatting'
10122
10619
  });
10123
10620
  // T
10621
+
10124
10622
  case 'eeeee':
10125
10623
  return localize.day(dayOfWeek, {
10126
10624
  width: 'narrow',
10127
10625
  context: 'formatting'
10128
10626
  });
10129
10627
  // Tu
10628
+
10130
10629
  case 'eeeeee':
10131
10630
  return localize.day(dayOfWeek, {
10132
10631
  width: 'short',
10133
10632
  context: 'formatting'
10134
10633
  });
10135
10634
  // Tuesday
10635
+
10136
10636
  case 'eeee':
10137
10637
  default:
10138
10638
  return localize.day(dayOfWeek, {
@@ -10150,9 +10650,11 @@ var formatters = {
10150
10650
  case 'c':
10151
10651
  return String(localDayOfWeek);
10152
10652
  // Padded numerical value
10653
+
10153
10654
  case 'cc':
10154
10655
  return addLeadingZeros(localDayOfWeek, token.length);
10155
10656
  // 1st, 2nd, ..., 7th
10657
+
10156
10658
  case 'co':
10157
10659
  return localize.ordinalNumber(localDayOfWeek, {
10158
10660
  unit: 'day'
@@ -10163,18 +10665,21 @@ var formatters = {
10163
10665
  context: 'standalone'
10164
10666
  });
10165
10667
  // T
10668
+
10166
10669
  case 'ccccc':
10167
10670
  return localize.day(dayOfWeek, {
10168
10671
  width: 'narrow',
10169
10672
  context: 'standalone'
10170
10673
  });
10171
10674
  // Tu
10675
+
10172
10676
  case 'cccccc':
10173
10677
  return localize.day(dayOfWeek, {
10174
10678
  width: 'short',
10175
10679
  context: 'standalone'
10176
10680
  });
10177
10681
  // Tuesday
10682
+
10178
10683
  case 'cccc':
10179
10684
  default:
10180
10685
  return localize.day(dayOfWeek, {
@@ -10192,32 +10697,38 @@ var formatters = {
10192
10697
  case 'i':
10193
10698
  return String(isoDayOfWeek);
10194
10699
  // 02
10700
+
10195
10701
  case 'ii':
10196
10702
  return addLeadingZeros(isoDayOfWeek, token.length);
10197
10703
  // 2nd
10704
+
10198
10705
  case 'io':
10199
10706
  return localize.ordinalNumber(isoDayOfWeek, {
10200
10707
  unit: 'day'
10201
10708
  });
10202
10709
  // Tue
10710
+
10203
10711
  case 'iii':
10204
10712
  return localize.day(dayOfWeek, {
10205
10713
  width: 'abbreviated',
10206
10714
  context: 'formatting'
10207
10715
  });
10208
10716
  // T
10717
+
10209
10718
  case 'iiiii':
10210
10719
  return localize.day(dayOfWeek, {
10211
10720
  width: 'narrow',
10212
10721
  context: 'formatting'
10213
10722
  });
10214
10723
  // Tu
10724
+
10215
10725
  case 'iiiiii':
10216
10726
  return localize.day(dayOfWeek, {
10217
10727
  width: 'short',
10218
10728
  context: 'formatting'
10219
10729
  });
10220
10730
  // Tuesday
10731
+
10221
10732
  case 'iiii':
10222
10733
  default:
10223
10734
  return localize.day(dayOfWeek, {
@@ -10233,15 +10744,11 @@ var formatters = {
10233
10744
  switch (token) {
10234
10745
  case 'a':
10235
10746
  case 'aa':
10236
- return localize.dayPeriod(dayPeriodEnumValue, {
10237
- width: 'abbreviated',
10238
- context: 'formatting'
10239
- });
10240
10747
  case 'aaa':
10241
10748
  return localize.dayPeriod(dayPeriodEnumValue, {
10242
10749
  width: 'abbreviated',
10243
10750
  context: 'formatting'
10244
- }).toLowerCase();
10751
+ });
10245
10752
  case 'aaaaa':
10246
10753
  return localize.dayPeriod(dayPeriodEnumValue, {
10247
10754
  width: 'narrow',
@@ -10269,15 +10776,11 @@ var formatters = {
10269
10776
  switch (token) {
10270
10777
  case 'b':
10271
10778
  case 'bb':
10272
- return localize.dayPeriod(dayPeriodEnumValue, {
10273
- width: 'abbreviated',
10274
- context: 'formatting'
10275
- });
10276
10779
  case 'bbb':
10277
10780
  return localize.dayPeriod(dayPeriodEnumValue, {
10278
10781
  width: 'abbreviated',
10279
10782
  context: 'formatting'
10280
- }).toLowerCase();
10783
+ });
10281
10784
  case 'bbbbb':
10282
10785
  return localize.dayPeriod(dayPeriodEnumValue, {
10283
10786
  width: 'narrow',
@@ -10399,20 +10902,21 @@ var formatters = {
10399
10902
  // Hours and optional minutes
10400
10903
  case 'X':
10401
10904
  return formatTimezoneWithOptionalMinutes(timezoneOffset);
10402
-
10403
10905
  // Hours, minutes and optional seconds without `:` delimiter
10404
10906
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
10405
10907
  // so this token always has the same output as `XX`
10908
+
10406
10909
  case 'XXXX':
10407
10910
  case 'XX':
10408
10911
  // Hours and minutes without `:` delimiter
10409
10912
  return formatTimezone(timezoneOffset);
10410
-
10411
10913
  // Hours, minutes and optional seconds with `:` delimiter
10412
10914
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
10413
10915
  // so this token always has the same output as `XXX`
10916
+
10414
10917
  case 'XXXXX':
10415
10918
  case 'XXX': // Hours and minutes with `:` delimiter
10919
+
10416
10920
  default:
10417
10921
  return formatTimezone(timezoneOffset, ':');
10418
10922
  }
@@ -10425,20 +10929,21 @@ var formatters = {
10425
10929
  // Hours and optional minutes
10426
10930
  case 'x':
10427
10931
  return formatTimezoneWithOptionalMinutes(timezoneOffset);
10428
-
10429
10932
  // Hours, minutes and optional seconds without `:` delimiter
10430
10933
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
10431
10934
  // so this token always has the same output as `xx`
10935
+
10432
10936
  case 'xxxx':
10433
10937
  case 'xx':
10434
10938
  // Hours and minutes without `:` delimiter
10435
10939
  return formatTimezone(timezoneOffset);
10436
-
10437
10940
  // Hours, minutes and optional seconds with `:` delimiter
10438
10941
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
10439
10942
  // so this token always has the same output as `xxx`
10943
+
10440
10944
  case 'xxxxx':
10441
10945
  case 'xxx': // Hours and minutes with `:` delimiter
10946
+
10442
10947
  default:
10443
10948
  return formatTimezone(timezoneOffset, ':');
10444
10949
  }
@@ -10454,6 +10959,7 @@ var formatters = {
10454
10959
  case 'OOO':
10455
10960
  return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
10456
10961
  // Long
10962
+
10457
10963
  case 'OOOO':
10458
10964
  default:
10459
10965
  return 'GMT' + formatTimezone(timezoneOffset, ':');
@@ -10470,6 +10976,7 @@ var formatters = {
10470
10976
  case 'zzz':
10471
10977
  return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
10472
10978
  // Long
10979
+
10473
10980
  case 'zzzz':
10474
10981
  default:
10475
10982
  return 'GMT' + formatTimezone(timezoneOffset, ':');
@@ -10516,7 +11023,7 @@ function formatTimezone(offset, dirtyDelimiter) {
10516
11023
  }
10517
11024
  var formatters$1 = formatters;
10518
11025
 
10519
- var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
11026
+ function dateLongFormatter(pattern, formatLong) {
10520
11027
  switch (pattern) {
10521
11028
  case 'P':
10522
11029
  return formatLong.date({
@@ -10536,8 +11043,8 @@ var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
10536
11043
  width: 'full'
10537
11044
  });
10538
11045
  }
10539
- };
10540
- var timeLongFormatter = function timeLongFormatter(pattern, formatLong) {
11046
+ }
11047
+ function timeLongFormatter(pattern, formatLong) {
10541
11048
  switch (pattern) {
10542
11049
  case 'p':
10543
11050
  return formatLong.time({
@@ -10557,9 +11064,9 @@ var timeLongFormatter = function timeLongFormatter(pattern, formatLong) {
10557
11064
  width: 'full'
10558
11065
  });
10559
11066
  }
10560
- };
10561
- var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) {
10562
- var matchResult = pattern.match(/(P+)(p+)?/) || [];
11067
+ }
11068
+ function dateTimeLongFormatter(pattern, formatLong) {
11069
+ var matchResult = pattern.match(/(P+)(p+)?/);
10563
11070
  var datePattern = matchResult[1];
10564
11071
  var timePattern = matchResult[2];
10565
11072
  if (!timePattern) {
@@ -10590,13 +11097,17 @@ var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong)
10590
11097
  break;
10591
11098
  }
10592
11099
  return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong));
10593
- };
11100
+ }
10594
11101
  var longFormatters = {
10595
11102
  p: timeLongFormatter,
10596
11103
  P: dateTimeLongFormatter
10597
11104
  };
10598
11105
  var longFormatters$1 = longFormatters;
10599
11106
 
11107
+ var MILLISECONDS_IN_MINUTE = 60000;
11108
+ function getDateMillisecondsPart(date) {
11109
+ return date.getTime() % MILLISECONDS_IN_MINUTE;
11110
+ }
10600
11111
  /**
10601
11112
  * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
10602
11113
  * They usually appear for dates that denote time before the timezones were introduced
@@ -10608,10 +11119,14 @@ var longFormatters$1 = longFormatters;
10608
11119
  *
10609
11120
  * This function returns the timezone offset in milliseconds that takes seconds in account.
10610
11121
  */
10611
- function getTimezoneOffsetInMilliseconds(date) {
10612
- var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
10613
- utcDate.setUTCFullYear(date.getFullYear());
10614
- return date.getTime() - utcDate.getTime();
11122
+
11123
+ function getTimezoneOffsetInMilliseconds(dirtyDate) {
11124
+ var date = new Date(dirtyDate.getTime());
11125
+ var baseTimezoneOffset = Math.ceil(date.getTimezoneOffset());
11126
+ date.setSeconds(0, 0);
11127
+ var hasNegativeUTCOffset = baseTimezoneOffset > 0;
11128
+ var millisecondsPartOfTimezoneOffset = hasNegativeUTCOffset ? (MILLISECONDS_IN_MINUTE + getDateMillisecondsPart(date)) % MILLISECONDS_IN_MINUTE : getDateMillisecondsPart(date);
11129
+ return baseTimezoneOffset * MILLISECONDS_IN_MINUTE + millisecondsPartOfTimezoneOffset;
10615
11130
  }
10616
11131
 
10617
11132
  var protectedDayOfYearTokens = ['D', 'DD'];
@@ -10624,500 +11139,16 @@ function isProtectedWeekYearToken(token) {
10624
11139
  }
10625
11140
  function throwProtectedError(token, format, input) {
10626
11141
  if (token === 'YYYY') {
10627
- throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
11142
+ throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://git.io/fxCyr"));
10628
11143
  } else if (token === 'YY') {
10629
- throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
11144
+ throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://git.io/fxCyr"));
10630
11145
  } else if (token === 'D') {
10631
- throw new RangeError("Use `d` instead of `D` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
11146
+ throw new RangeError("Use `d` instead of `D` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://git.io/fxCyr"));
10632
11147
  } else if (token === 'DD') {
10633
- throw new RangeError("Use `dd` instead of `DD` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
10634
- }
10635
- }
10636
-
10637
- var formatDistanceLocale = {
10638
- lessThanXSeconds: {
10639
- one: 'less than a second',
10640
- other: 'less than {{count}} seconds'
10641
- },
10642
- xSeconds: {
10643
- one: '1 second',
10644
- other: '{{count}} seconds'
10645
- },
10646
- halfAMinute: 'half a minute',
10647
- lessThanXMinutes: {
10648
- one: 'less than a minute',
10649
- other: 'less than {{count}} minutes'
10650
- },
10651
- xMinutes: {
10652
- one: '1 minute',
10653
- other: '{{count}} minutes'
10654
- },
10655
- aboutXHours: {
10656
- one: 'about 1 hour',
10657
- other: 'about {{count}} hours'
10658
- },
10659
- xHours: {
10660
- one: '1 hour',
10661
- other: '{{count}} hours'
10662
- },
10663
- xDays: {
10664
- one: '1 day',
10665
- other: '{{count}} days'
10666
- },
10667
- aboutXWeeks: {
10668
- one: 'about 1 week',
10669
- other: 'about {{count}} weeks'
10670
- },
10671
- xWeeks: {
10672
- one: '1 week',
10673
- other: '{{count}} weeks'
10674
- },
10675
- aboutXMonths: {
10676
- one: 'about 1 month',
10677
- other: 'about {{count}} months'
10678
- },
10679
- xMonths: {
10680
- one: '1 month',
10681
- other: '{{count}} months'
10682
- },
10683
- aboutXYears: {
10684
- one: 'about 1 year',
10685
- other: 'about {{count}} years'
10686
- },
10687
- xYears: {
10688
- one: '1 year',
10689
- other: '{{count}} years'
10690
- },
10691
- overXYears: {
10692
- one: 'over 1 year',
10693
- other: 'over {{count}} years'
10694
- },
10695
- almostXYears: {
10696
- one: 'almost 1 year',
10697
- other: 'almost {{count}} years'
10698
- }
10699
- };
10700
- var formatDistance = function formatDistance(token, count, options) {
10701
- var result;
10702
- var tokenValue = formatDistanceLocale[token];
10703
- if (typeof tokenValue === 'string') {
10704
- result = tokenValue;
10705
- } else if (count === 1) {
10706
- result = tokenValue.one;
10707
- } else {
10708
- result = tokenValue.other.replace('{{count}}', count.toString());
10709
- }
10710
- if (options !== null && options !== void 0 && options.addSuffix) {
10711
- if (options.comparison && options.comparison > 0) {
10712
- return 'in ' + result;
10713
- } else {
10714
- return result + ' ago';
10715
- }
11148
+ throw new RangeError("Use `dd` instead of `DD` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://git.io/fxCyr"));
10716
11149
  }
10717
- return result;
10718
- };
10719
- var formatDistance$1 = formatDistance;
10720
-
10721
- function buildFormatLongFn(args) {
10722
- return function () {
10723
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
10724
- // TODO: Remove String()
10725
- var width = options.width ? String(options.width) : args.defaultWidth;
10726
- var format = args.formats[width] || args.formats[args.defaultWidth];
10727
- return format;
10728
- };
10729
11150
  }
10730
11151
 
10731
- var dateFormats = {
10732
- full: 'EEEE, MMMM do, y',
10733
- "long": 'MMMM do, y',
10734
- medium: 'MMM d, y',
10735
- "short": 'MM/dd/yyyy'
10736
- };
10737
- var timeFormats = {
10738
- full: 'h:mm:ss a zzzz',
10739
- "long": 'h:mm:ss a z',
10740
- medium: 'h:mm:ss a',
10741
- "short": 'h:mm a'
10742
- };
10743
- var dateTimeFormats = {
10744
- full: "{{date}} 'at' {{time}}",
10745
- "long": "{{date}} 'at' {{time}}",
10746
- medium: '{{date}}, {{time}}',
10747
- "short": '{{date}}, {{time}}'
10748
- };
10749
- var formatLong = {
10750
- date: buildFormatLongFn({
10751
- formats: dateFormats,
10752
- defaultWidth: 'full'
10753
- }),
10754
- time: buildFormatLongFn({
10755
- formats: timeFormats,
10756
- defaultWidth: 'full'
10757
- }),
10758
- dateTime: buildFormatLongFn({
10759
- formats: dateTimeFormats,
10760
- defaultWidth: 'full'
10761
- })
10762
- };
10763
- var formatLong$1 = formatLong;
10764
-
10765
- var formatRelativeLocale = {
10766
- lastWeek: "'last' eeee 'at' p",
10767
- yesterday: "'yesterday at' p",
10768
- today: "'today at' p",
10769
- tomorrow: "'tomorrow at' p",
10770
- nextWeek: "eeee 'at' p",
10771
- other: 'P'
10772
- };
10773
- var formatRelative = function formatRelative(token, _date, _baseDate, _options) {
10774
- return formatRelativeLocale[token];
10775
- };
10776
- var formatRelative$1 = formatRelative;
10777
-
10778
- function buildLocalizeFn(args) {
10779
- return function (dirtyIndex, options) {
10780
- var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone';
10781
- var valuesArray;
10782
- if (context === 'formatting' && args.formattingValues) {
10783
- var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
10784
- var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
10785
- valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
10786
- } else {
10787
- var _defaultWidth = args.defaultWidth;
10788
- var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
10789
- valuesArray = args.values[_width] || args.values[_defaultWidth];
10790
- }
10791
- var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;
10792
- // @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
10793
- return valuesArray[index];
10794
- };
10795
- }
10796
-
10797
- var eraValues = {
10798
- narrow: ['B', 'A'],
10799
- abbreviated: ['BC', 'AD'],
10800
- wide: ['Before Christ', 'Anno Domini']
10801
- };
10802
- var quarterValues = {
10803
- narrow: ['1', '2', '3', '4'],
10804
- abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
10805
- wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
10806
- };
10807
-
10808
- // Note: in English, the names of days of the week and months are capitalized.
10809
- // If you are making a new locale based on this one, check if the same is true for the language you're working on.
10810
- // Generally, formatted dates should look like they are in the middle of a sentence,
10811
- // e.g. in Spanish language the weekdays and months should be in the lowercase.
10812
- var monthValues = {
10813
- narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
10814
- abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
10815
- wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
10816
- };
10817
- var dayValues = {
10818
- narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
10819
- "short": ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
10820
- abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
10821
- wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
10822
- };
10823
- var dayPeriodValues = {
10824
- narrow: {
10825
- am: 'a',
10826
- pm: 'p',
10827
- midnight: 'mi',
10828
- noon: 'n',
10829
- morning: 'morning',
10830
- afternoon: 'afternoon',
10831
- evening: 'evening',
10832
- night: 'night'
10833
- },
10834
- abbreviated: {
10835
- am: 'AM',
10836
- pm: 'PM',
10837
- midnight: 'midnight',
10838
- noon: 'noon',
10839
- morning: 'morning',
10840
- afternoon: 'afternoon',
10841
- evening: 'evening',
10842
- night: 'night'
10843
- },
10844
- wide: {
10845
- am: 'a.m.',
10846
- pm: 'p.m.',
10847
- midnight: 'midnight',
10848
- noon: 'noon',
10849
- morning: 'morning',
10850
- afternoon: 'afternoon',
10851
- evening: 'evening',
10852
- night: 'night'
10853
- }
10854
- };
10855
- var formattingDayPeriodValues = {
10856
- narrow: {
10857
- am: 'a',
10858
- pm: 'p',
10859
- midnight: 'mi',
10860
- noon: 'n',
10861
- morning: 'in the morning',
10862
- afternoon: 'in the afternoon',
10863
- evening: 'in the evening',
10864
- night: 'at night'
10865
- },
10866
- abbreviated: {
10867
- am: 'AM',
10868
- pm: 'PM',
10869
- midnight: 'midnight',
10870
- noon: 'noon',
10871
- morning: 'in the morning',
10872
- afternoon: 'in the afternoon',
10873
- evening: 'in the evening',
10874
- night: 'at night'
10875
- },
10876
- wide: {
10877
- am: 'a.m.',
10878
- pm: 'p.m.',
10879
- midnight: 'midnight',
10880
- noon: 'noon',
10881
- morning: 'in the morning',
10882
- afternoon: 'in the afternoon',
10883
- evening: 'in the evening',
10884
- night: 'at night'
10885
- }
10886
- };
10887
- var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
10888
- var number = Number(dirtyNumber);
10889
-
10890
- // If ordinal numbers depend on context, for example,
10891
- // if they are different for different grammatical genders,
10892
- // use `options.unit`.
10893
- //
10894
- // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
10895
- // 'day', 'hour', 'minute', 'second'.
10896
-
10897
- var rem100 = number % 100;
10898
- if (rem100 > 20 || rem100 < 10) {
10899
- switch (rem100 % 10) {
10900
- case 1:
10901
- return number + 'st';
10902
- case 2:
10903
- return number + 'nd';
10904
- case 3:
10905
- return number + 'rd';
10906
- }
10907
- }
10908
- return number + 'th';
10909
- };
10910
- var localize = {
10911
- ordinalNumber: ordinalNumber,
10912
- era: buildLocalizeFn({
10913
- values: eraValues,
10914
- defaultWidth: 'wide'
10915
- }),
10916
- quarter: buildLocalizeFn({
10917
- values: quarterValues,
10918
- defaultWidth: 'wide',
10919
- argumentCallback: function argumentCallback(quarter) {
10920
- return quarter - 1;
10921
- }
10922
- }),
10923
- month: buildLocalizeFn({
10924
- values: monthValues,
10925
- defaultWidth: 'wide'
10926
- }),
10927
- day: buildLocalizeFn({
10928
- values: dayValues,
10929
- defaultWidth: 'wide'
10930
- }),
10931
- dayPeriod: buildLocalizeFn({
10932
- values: dayPeriodValues,
10933
- defaultWidth: 'wide',
10934
- formattingValues: formattingDayPeriodValues,
10935
- defaultFormattingWidth: 'wide'
10936
- })
10937
- };
10938
- var localize$1 = localize;
10939
-
10940
- function buildMatchFn(args) {
10941
- return function (string) {
10942
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
10943
- var width = options.width;
10944
- var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
10945
- var matchResult = string.match(matchPattern);
10946
- if (!matchResult) {
10947
- return null;
10948
- }
10949
- var matchedString = matchResult[0];
10950
- var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
10951
- var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {
10952
- return pattern.test(matchedString);
10953
- }) : findKey(parsePatterns, function (pattern) {
10954
- return pattern.test(matchedString);
10955
- });
10956
- var value;
10957
- value = args.valueCallback ? args.valueCallback(key) : key;
10958
- value = options.valueCallback ? options.valueCallback(value) : value;
10959
- var rest = string.slice(matchedString.length);
10960
- return {
10961
- value: value,
10962
- rest: rest
10963
- };
10964
- };
10965
- }
10966
- function findKey(object, predicate) {
10967
- for (var key in object) {
10968
- if (object.hasOwnProperty(key) && predicate(object[key])) {
10969
- return key;
10970
- }
10971
- }
10972
- return undefined;
10973
- }
10974
- function findIndex(array, predicate) {
10975
- for (var key = 0; key < array.length; key++) {
10976
- if (predicate(array[key])) {
10977
- return key;
10978
- }
10979
- }
10980
- return undefined;
10981
- }
10982
-
10983
- function buildMatchPatternFn(args) {
10984
- return function (string) {
10985
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
10986
- var matchResult = string.match(args.matchPattern);
10987
- if (!matchResult) return null;
10988
- var matchedString = matchResult[0];
10989
- var parseResult = string.match(args.parsePattern);
10990
- if (!parseResult) return null;
10991
- var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
10992
- value = options.valueCallback ? options.valueCallback(value) : value;
10993
- var rest = string.slice(matchedString.length);
10994
- return {
10995
- value: value,
10996
- rest: rest
10997
- };
10998
- };
10999
- }
11000
-
11001
- var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
11002
- var parseOrdinalNumberPattern = /\d+/i;
11003
- var matchEraPatterns = {
11004
- narrow: /^(b|a)/i,
11005
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
11006
- wide: /^(before christ|before common era|anno domini|common era)/i
11007
- };
11008
- var parseEraPatterns = {
11009
- any: [/^b/i, /^(a|c)/i]
11010
- };
11011
- var matchQuarterPatterns = {
11012
- narrow: /^[1234]/i,
11013
- abbreviated: /^q[1234]/i,
11014
- wide: /^[1234](th|st|nd|rd)? quarter/i
11015
- };
11016
- var parseQuarterPatterns = {
11017
- any: [/1/i, /2/i, /3/i, /4/i]
11018
- };
11019
- var matchMonthPatterns = {
11020
- narrow: /^[jfmasond]/i,
11021
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
11022
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
11023
- };
11024
- var parseMonthPatterns = {
11025
- narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
11026
- any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
11027
- };
11028
- var matchDayPatterns = {
11029
- narrow: /^[smtwf]/i,
11030
- "short": /^(su|mo|tu|we|th|fr|sa)/i,
11031
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
11032
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
11033
- };
11034
- var parseDayPatterns = {
11035
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
11036
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
11037
- };
11038
- var matchDayPeriodPatterns = {
11039
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
11040
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
11041
- };
11042
- var parseDayPeriodPatterns = {
11043
- any: {
11044
- am: /^a/i,
11045
- pm: /^p/i,
11046
- midnight: /^mi/i,
11047
- noon: /^no/i,
11048
- morning: /morning/i,
11049
- afternoon: /afternoon/i,
11050
- evening: /evening/i,
11051
- night: /night/i
11052
- }
11053
- };
11054
- var match = {
11055
- ordinalNumber: buildMatchPatternFn({
11056
- matchPattern: matchOrdinalNumberPattern,
11057
- parsePattern: parseOrdinalNumberPattern,
11058
- valueCallback: function valueCallback(value) {
11059
- return parseInt(value, 10);
11060
- }
11061
- }),
11062
- era: buildMatchFn({
11063
- matchPatterns: matchEraPatterns,
11064
- defaultMatchWidth: 'wide',
11065
- parsePatterns: parseEraPatterns,
11066
- defaultParseWidth: 'any'
11067
- }),
11068
- quarter: buildMatchFn({
11069
- matchPatterns: matchQuarterPatterns,
11070
- defaultMatchWidth: 'wide',
11071
- parsePatterns: parseQuarterPatterns,
11072
- defaultParseWidth: 'any',
11073
- valueCallback: function valueCallback(index) {
11074
- return index + 1;
11075
- }
11076
- }),
11077
- month: buildMatchFn({
11078
- matchPatterns: matchMonthPatterns,
11079
- defaultMatchWidth: 'wide',
11080
- parsePatterns: parseMonthPatterns,
11081
- defaultParseWidth: 'any'
11082
- }),
11083
- day: buildMatchFn({
11084
- matchPatterns: matchDayPatterns,
11085
- defaultMatchWidth: 'wide',
11086
- parsePatterns: parseDayPatterns,
11087
- defaultParseWidth: 'any'
11088
- }),
11089
- dayPeriod: buildMatchFn({
11090
- matchPatterns: matchDayPeriodPatterns,
11091
- defaultMatchWidth: 'any',
11092
- parsePatterns: parseDayPeriodPatterns,
11093
- defaultParseWidth: 'any'
11094
- })
11095
- };
11096
- var match$1 = match;
11097
-
11098
- /**
11099
- * @type {Locale}
11100
- * @category Locales
11101
- * @summary English locale (United States).
11102
- * @language English
11103
- * @iso-639-2 eng
11104
- * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
11105
- * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
11106
- */
11107
- var locale = {
11108
- code: 'en-US',
11109
- formatDistance: formatDistance$1,
11110
- formatLong: formatLong$1,
11111
- formatRelative: formatRelative$1,
11112
- localize: localize$1,
11113
- match: match$1,
11114
- options: {
11115
- weekStartsOn: 0 /* Sunday */,
11116
- firstWeekContainsDate: 1
11117
- }
11118
- };
11119
- var defaultLocale = locale;
11120
-
11121
11152
  // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
11122
11153
  // (one of the certain letters followed by `o`)
11123
11154
  // - (\w)\1* matches any sequences of the same letter
@@ -11128,15 +11159,14 @@ var defaultLocale = locale;
11128
11159
  // If there is no matching single quote
11129
11160
  // then the sequence will continue until the end of the string.
11130
11161
  // - . matches any single character unmatched by previous parts of the RegExps
11131
- var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
11132
11162
 
11133
- // This RegExp catches symbols escaped by quotes, and also
11163
+ var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
11134
11164
  // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
11165
+
11135
11166
  var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
11136
11167
  var escapedStringRegExp = /^'([^]*?)'?$/;
11137
11168
  var doubleQuoteRegExp = /''/g;
11138
11169
  var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
11139
-
11140
11170
  /**
11141
11171
  * @name format
11142
11172
  * @category Common Helpers
@@ -11146,7 +11176,7 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
11146
11176
  * Return the formatted date string in the given format. The result may vary by locale.
11147
11177
  *
11148
11178
  * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
11149
- * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
11179
+ * > See: https://git.io/fxCyr
11150
11180
  *
11151
11181
  * The characters wrapped between two single quotes characters (') are escaped.
11152
11182
  * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
@@ -11225,34 +11255,32 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
11225
11255
  * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |
11226
11256
  * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
11227
11257
  * | | EEEEE | M, T, W, T, F, S, S | |
11228
- * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
11258
+ * | | EEEEEE | Mo, Tu, We, Th, Fr, Su, Sa | |
11229
11259
  * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |
11230
11260
  * | | io | 1st, 2nd, ..., 7th | 7 |
11231
11261
  * | | ii | 01, 02, ..., 07 | 7 |
11232
11262
  * | | iii | Mon, Tue, Wed, ..., Sun | 7 |
11233
11263
  * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |
11234
11264
  * | | iiiii | M, T, W, T, F, S, S | 7 |
11235
- * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |
11265
+ * | | iiiiii | Mo, Tu, We, Th, Fr, Su, Sa | 7 |
11236
11266
  * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |
11237
11267
  * | | eo | 2nd, 3rd, ..., 1st | 7 |
11238
11268
  * | | ee | 02, 03, ..., 01 | |
11239
11269
  * | | eee | Mon, Tue, Wed, ..., Sun | |
11240
11270
  * | | eeee | Monday, Tuesday, ..., Sunday | 2 |
11241
11271
  * | | eeeee | M, T, W, T, F, S, S | |
11242
- * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
11272
+ * | | eeeeee | Mo, Tu, We, Th, Fr, Su, Sa | |
11243
11273
  * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |
11244
11274
  * | | co | 2nd, 3rd, ..., 1st | 7 |
11245
11275
  * | | cc | 02, 03, ..., 01 | |
11246
11276
  * | | ccc | Mon, Tue, Wed, ..., Sun | |
11247
11277
  * | | cccc | Monday, Tuesday, ..., Sunday | 2 |
11248
11278
  * | | ccccc | M, T, W, T, F, S, S | |
11249
- * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
11250
- * | AM, PM | a..aa | AM, PM | |
11251
- * | | aaa | am, pm | |
11279
+ * | | cccccc | Mo, Tu, We, Th, Fr, Su, Sa | |
11280
+ * | AM, PM | a..aaa | AM, PM | |
11252
11281
  * | | aaaa | a.m., p.m. | 2 |
11253
11282
  * | | aaaaa | a, p | |
11254
- * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |
11255
- * | | bbb | am, pm, noon, midnight | |
11283
+ * | AM, PM, noon, midnight | b..bbb | AM, PM, noon, midnight | |
11256
11284
  * | | bbbb | a.m., p.m., noon, midnight | 2 |
11257
11285
  * | | bbbbb | a, p, n, mi | |
11258
11286
  * | Flexible day period | B..BBB | at night, in the morning, ... | |
@@ -11278,7 +11306,7 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
11278
11306
  * | | ss | 00, 01, ..., 59 | |
11279
11307
  * | Fraction of second | S | 0, 1, ..., 9 | |
11280
11308
  * | | SS | 00, 01, ..., 99 | |
11281
- * | | SSS | 000, 001, ..., 999 | |
11309
+ * | | SSS | 000, 0001, ..., 999 | |
11282
11310
  * | | SSSS | ... | 3 |
11283
11311
  * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |
11284
11312
  * | | XX | -0800, +0530, Z | |
@@ -11298,18 +11326,18 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
11298
11326
  * | | tt | ... | 3,7 |
11299
11327
  * | Milliseconds timestamp | T | 512969520900 | 7 |
11300
11328
  * | | TT | ... | 3,7 |
11301
- * | Long localized date | P | 04/29/1453 | 7 |
11302
- * | | PP | Apr 29, 1453 | 7 |
11303
- * | | PPP | April 29th, 1453 | 7 |
11304
- * | | PPPP | Friday, April 29th, 1453 | 2,7 |
11329
+ * | Long localized date | P | 05/29/1453 | 7 |
11330
+ * | | PP | May 29, 1453 | 7 |
11331
+ * | | PPP | May 29th, 1453 | 7 |
11332
+ * | | PPPP | Sunday, May 29th, 1453 | 2,7 |
11305
11333
  * | Long localized time | p | 12:00 AM | 7 |
11306
11334
  * | | pp | 12:00:00 AM | 7 |
11307
11335
  * | | ppp | 12:00:00 AM GMT+2 | 7 |
11308
11336
  * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |
11309
- * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |
11310
- * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |
11311
- * | | PPPppp | April 29th, 1453 at ... | 7 |
11312
- * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |
11337
+ * | Combination of date and time | Pp | 05/29/1453, 12:00 AM | 7 |
11338
+ * | | PPpp | May 29, 1453, 12:00:00 AM | 7 |
11339
+ * | | PPPppp | May 29th, 1453 at ... | 7 |
11340
+ * | | PPPPpppp| Sunday, May 29th, 1453 at ... | 2,7 |
11313
11341
  * Notes:
11314
11342
  * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
11315
11343
  * are the same as "stand-alone" units, but are different in some languages.
@@ -11382,10 +11410,30 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
11382
11410
  * - `p`: long localized time
11383
11411
  *
11384
11412
  * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
11385
- * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
11413
+ * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr
11414
+ *
11415
+ * 9. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.
11416
+ * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr
11417
+ *
11418
+ * ### v2.0.0 breaking changes:
11419
+ *
11420
+ * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
11421
+ *
11422
+ * - The second argument is now required for the sake of explicitness.
11423
+ *
11424
+ * ```javascript
11425
+ * // Before v2.0.0
11426
+ * format(new Date(2016, 0, 1))
11386
11427
  *
11387
- * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
11388
- * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
11428
+ * // v2.0.0 onward
11429
+ * format(new Date(2016, 0, 1), "yyyy-MM-dd'T'HH:mm:ss.SSSxxx")
11430
+ * ```
11431
+ *
11432
+ * - New format string API for `format` function
11433
+ * which is based on [Unicode Technical Standard #35](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table).
11434
+ * See [this post](https://blog.date-fns.org/post/unicode-tokens-in-date-fns-v2-sreatyki91jg) for more details.
11435
+ *
11436
+ * - Characters are now escaped using single quote symbols (`'`) instead of square brackets.
11389
11437
  *
11390
11438
  * @param {Date|Number} date - the original date
11391
11439
  * @param {String} format - the string of tokens
@@ -11394,9 +11442,9 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
11394
11442
  * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
11395
11443
  * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is
11396
11444
  * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
11397
- * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
11445
+ * see: https://git.io/fxCyr
11398
11446
  * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
11399
- * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
11447
+ * see: https://git.io/fxCyr
11400
11448
  * @returns {String} the formatted date string
11401
11449
  * @throws {TypeError} 2 arguments required
11402
11450
  * @throws {RangeError} `date` must not be Invalid Date
@@ -11404,46 +11452,47 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
11404
11452
  * @throws {RangeError} `options.locale` must contain `formatLong` property
11405
11453
  * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
11406
11454
  * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
11407
- * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
11408
- * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
11409
- * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
11410
- * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
11455
+ * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
11456
+ * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
11457
+ * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr
11458
+ * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr
11411
11459
  * @throws {RangeError} format string contains an unescaped latin alphabet character
11412
11460
  *
11413
11461
  * @example
11414
11462
  * // Represent 11 February 2014 in middle-endian format:
11415
- * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')
11463
+ * var result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')
11416
11464
  * //=> '02/11/2014'
11417
11465
  *
11418
11466
  * @example
11419
11467
  * // Represent 2 July 2014 in Esperanto:
11420
11468
  * import { eoLocale } from 'date-fns/locale/eo'
11421
- * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", {
11469
+ * var result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", {
11422
11470
  * locale: eoLocale
11423
11471
  * })
11424
11472
  * //=> '2-a de julio 2014'
11425
11473
  *
11426
11474
  * @example
11427
11475
  * // Escape string by single quote characters:
11428
- * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'")
11476
+ * var result = format(new Date(2014, 6, 2, 15), "h 'o''clock'")
11429
11477
  * //=> "3 o'clock"
11430
11478
  */
11431
11479
 
11432
- function format(dirtyDate, dirtyFormatStr, options) {
11433
- var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4;
11480
+ function format$1(dirtyDate, dirtyFormatStr, dirtyOptions) {
11434
11481
  requiredArgs(2, arguments);
11435
11482
  var formatStr = String(dirtyFormatStr);
11436
- var defaultOptions = getDefaultOptions();
11437
- var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale;
11438
- var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1);
11483
+ var options = dirtyOptions || {};
11484
+ var locale = options.locale || defaultLocale;
11485
+ var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate;
11486
+ var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
11487
+ var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
11439
11488
 
11440
- // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
11441
11489
  if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
11442
11490
  throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
11443
11491
  }
11444
- var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0);
11492
+ var localeWeekStartsOn = locale.options && locale.options.weekStartsOn;
11493
+ var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);
11494
+ var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
11445
11495
 
11446
- // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
11447
11496
  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
11448
11497
  throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
11449
11498
  }
@@ -11456,11 +11505,10 @@ function format(dirtyDate, dirtyFormatStr, options) {
11456
11505
  var originalDate = toDate(dirtyDate);
11457
11506
  if (!isValid(originalDate)) {
11458
11507
  throw new RangeError('Invalid time value');
11459
- }
11460
-
11461
- // Convert the date in system timezone to the same date in UTC+00:00 timezone.
11508
+ } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
11462
11509
  // This ensures that when UTC functions will be implemented, locales will be compatible with them.
11463
11510
  // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376
11511
+
11464
11512
  var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);
11465
11513
  var utcDate = subMilliseconds(originalDate, timezoneOffset);
11466
11514
  var formatterOptions = {
@@ -11473,7 +11521,7 @@ function format(dirtyDate, dirtyFormatStr, options) {
11473
11521
  var firstCharacter = substring[0];
11474
11522
  if (firstCharacter === 'p' || firstCharacter === 'P') {
11475
11523
  var longFormatter = longFormatters$1[firstCharacter];
11476
- return longFormatter(substring, locale.formatLong);
11524
+ return longFormatter(substring, locale.formatLong, formatterOptions);
11477
11525
  }
11478
11526
  return substring;
11479
11527
  }).join('').match(formattingTokensRegExp).map(function (substring) {
@@ -11487,11 +11535,11 @@ function format(dirtyDate, dirtyFormatStr, options) {
11487
11535
  }
11488
11536
  var formatter = formatters$1[firstCharacter];
11489
11537
  if (formatter) {
11490
- if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {
11491
- throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
11538
+ if (!options.useAdditionalWeekYearTokens && isProtectedWeekYearToken(substring)) {
11539
+ throwProtectedError(substring, dirtyFormatStr, dirtyDate);
11492
11540
  }
11493
- if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {
11494
- throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
11541
+ if (!options.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken(substring)) {
11542
+ throwProtectedError(substring, dirtyFormatStr, dirtyDate);
11495
11543
  }
11496
11544
  return formatter(utcDate, substring, locale.localize, formatterOptions);
11497
11545
  }
@@ -11503,28 +11551,23 @@ function format(dirtyDate, dirtyFormatStr, options) {
11503
11551
  return result;
11504
11552
  }
11505
11553
  function cleanEscapedString(input) {
11506
- var matched = input.match(escapedStringRegExp);
11507
- if (!matched) {
11508
- return input;
11509
- }
11510
- return matched[1].replace(doubleQuoteRegExp, "'");
11554
+ return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
11511
11555
  }
11512
11556
 
11513
- function convertToFP(fn, arity) {
11514
- var a = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
11557
+ function convertToFP(fn, arity, a) {
11558
+ a = a || [];
11515
11559
  if (a.length >= arity) {
11516
11560
  return fn.apply(null, a.slice(0, arity).reverse());
11517
11561
  }
11518
11562
  return function () {
11519
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
11520
- args[_key] = arguments[_key];
11521
- }
11563
+ var args = Array.prototype.slice.call(arguments);
11522
11564
  return convertToFP(fn, arity, a.concat(args));
11523
11565
  };
11524
11566
  }
11525
11567
 
11526
- // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it.
11527
- var formatTime = convertToFP(format, 2);
11568
+ // This file is generated automatically by `scripts/build/fp.js`. Please, don't change it.
11569
+ var format = convertToFP(format$1, 2);
11570
+ var formatTime = format;
11528
11571
 
11529
11572
  var Wrapper = index$9(View)(function () {
11530
11573
  return {
@@ -12290,7 +12333,7 @@ var StyledPageControlWrapper = index$9(View)(function (_ref7) {
12290
12333
  });
12291
12334
 
12292
12335
  function isCarouselImageProps(image) {
12293
- return _typeof$1(image) === 'object';
12336
+ return _typeof(image) === 'object';
12294
12337
  }
12295
12338
  var CarouselItem = function CarouselItem(_ref) {
12296
12339
  var width = _ref.width,
@@ -14298,7 +14341,7 @@ var ErrorPage = function ErrorPage(_ref) {
14298
14341
  * @param {ErrorProps}
14299
14342
  * @return {*} {ReactElement}
14300
14343
  */
14301
- var Error$1 = function Error(_ref2) {
14344
+ var ErrorComponent = function ErrorComponent(_ref2) {
14302
14345
  var _ref2$visible = _ref2.visible,
14303
14346
  visible = _ref2$visible === void 0 ? true : _ref2$visible,
14304
14347
  _ref2$variant = _ref2.variant,
@@ -17331,7 +17374,6 @@ var index$3 = Object.assign(Switch, {
17331
17374
  Selector: SelectorSwitch
17332
17375
  });
17333
17376
 
17334
- var AnimatedPagerView = Animated.createAnimatedComponent(PagerView);
17335
17377
  var TabContainer$1 = index$9(View)({
17336
17378
  flex: 1,
17337
17379
  overflow: 'hidden'
@@ -17356,9 +17398,6 @@ var HeaderTabItem$1 = index$9(View)(function (_ref2) {
17356
17398
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
17357
17399
  };
17358
17400
  });
17359
- var ContentWrapper$1 = index$9(AnimatedPagerView)({
17360
- flex: 1
17361
- });
17362
17401
  index$9(View)({
17363
17402
  flex: 1
17364
17403
  });
@@ -17406,9 +17445,6 @@ var TabContainer = index$9(View)({
17406
17445
  flex: 1,
17407
17446
  overflow: 'hidden'
17408
17447
  });
17409
- var ContentWrapper = index$9(PagerView)({
17410
- flex: 1
17411
- });
17412
17448
  var HeaderTabWrapper = index$9(View)(function (_ref) {
17413
17449
  var themeInsets = _ref.themeInsets;
17414
17450
  return {
@@ -17859,7 +17895,8 @@ var ScrollableTab = function ScrollableTab(_ref) {
17859
17895
  insets: insets,
17860
17896
  testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined,
17861
17897
  variant: variant
17862
- }), /*#__PURE__*/React__default.createElement(ContentWrapper, {
17898
+ }), /*#__PURE__*/React__default.createElement(PagerView, {
17899
+ useNext: false,
17863
17900
  initialPage: selectedTabIndex,
17864
17901
  ref: pagerViewRef,
17865
17902
  onPageScrollStateChanged: function onPageScrollStateChanged(e) {
@@ -17876,7 +17913,10 @@ var ScrollableTab = function ScrollableTab(_ref) {
17876
17913
  });
17877
17914
  }
17878
17915
  },
17879
- scrollEnabled: swipeEnabled
17916
+ scrollEnabled: swipeEnabled,
17917
+ style: {
17918
+ flex: 1
17919
+ }
17880
17920
  }, tabs.map(function (tab, index) {
17881
17921
  var key = tab.key,
17882
17922
  component = tab.component,
@@ -17894,6 +17934,7 @@ var ScrollableTab = function ScrollableTab(_ref) {
17894
17934
  }))));
17895
17935
  };
17896
17936
 
17937
+ var AnimatedPagerView = Animated.createAnimatedComponent(PagerView);
17897
17938
  var getTabItem = function getTabItem(_ref) {
17898
17939
  var item = _ref.item,
17899
17940
  color = _ref.color,
@@ -17991,7 +18032,8 @@ var Tabs = function Tabs(_ref2) {
17991
18032
  scrollOffsetAnimatedValue: scrollOffsetAnimatedValue,
17992
18033
  tabsLength: tabs.length,
17993
18034
  tabsWidth: tabsWidth
17994
- }))), /*#__PURE__*/React__default.createElement(ContentWrapper$1, {
18035
+ }))), /*#__PURE__*/React__default.createElement(AnimatedPagerView, {
18036
+ useNext: false,
17995
18037
  initialPage: selectedTabIndex,
17996
18038
  ref: pagerViewRef,
17997
18039
  onPageSelected: function onPageSelected(e) {
@@ -18009,7 +18051,10 @@ var Tabs = function Tabs(_ref2) {
18009
18051
  }], {
18010
18052
  useNativeDriver: true
18011
18053
  }),
18012
- scrollEnabled: swipeEnabled
18054
+ scrollEnabled: swipeEnabled,
18055
+ style: {
18056
+ flex: 1
18057
+ }
18013
18058
  }, tabs.map(function (tab, index) {
18014
18059
  var key = tab.key,
18015
18060
  component = tab.component,
@@ -18751,7 +18796,7 @@ var scheduler_production_min = {};
18751
18796
  var c = a.sortIndex - b.sortIndex;
18752
18797
  return 0 !== c ? c : a.id - b.id;
18753
18798
  }
18754
- if ("object" === (typeof performance === "undefined" ? "undefined" : _typeof$1(performance)) && "function" === typeof performance.now) {
18799
+ if ("object" === (typeof performance === "undefined" ? "undefined" : _typeof(performance)) && "function" === typeof performance.now) {
18755
18800
  var l = performance;
18756
18801
  exports.unstable_now = function () {
18757
18802
  return l.now();
@@ -18922,7 +18967,7 @@ var scheduler_production_min = {};
18922
18967
  };
18923
18968
  exports.unstable_scheduleCallback = function (a, b, c) {
18924
18969
  var d = exports.unstable_now();
18925
- "object" === _typeof$1(c) && null !== c ? (c = c.delay, c = "number" === typeof c && 0 < c ? d + c : d) : c = d;
18970
+ "object" === _typeof(c) && null !== c ? (c = c.delay, c = "number" === typeof c && 0 < c ? d + c : d) : c = d;
18926
18971
  switch (a) {
18927
18972
  case 1:
18928
18973
  var e = -1;
@@ -19000,7 +19045,7 @@ function oa(a) {
19000
19045
  }
19001
19046
  function pa(a, b, c, d) {
19002
19047
  if (null !== c && 0 === c.type) return !1;
19003
- switch (_typeof$1(b)) {
19048
+ switch (_typeof(b)) {
19004
19049
  case "function":
19005
19050
  case "symbol":
19006
19051
  return !0;
@@ -19110,7 +19155,7 @@ var ua = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
19110
19155
  var Ia = Symbol["for"]("react.offscreen");
19111
19156
  var Ja = Symbol.iterator;
19112
19157
  function Ka(a) {
19113
- if (null === a || "object" !== _typeof$1(a)) return null;
19158
+ if (null === a || "object" !== _typeof(a)) return null;
19114
19159
  a = Ja && a[Ja] || a["@@iterator"];
19115
19160
  return "function" === typeof a ? a : null;
19116
19161
  }
@@ -19139,7 +19184,7 @@ function Oa(a, b) {
19139
19184
  set: function set() {
19140
19185
  throw Error();
19141
19186
  }
19142
- }), "object" === (typeof Reflect === "undefined" ? "undefined" : _typeof$1(Reflect)) && Reflect.construct) {
19187
+ }), "object" === (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && Reflect.construct) {
19143
19188
  try {
19144
19189
  Reflect.construct(b, []);
19145
19190
  } catch (l) {
@@ -19221,7 +19266,7 @@ function Qa(a) {
19221
19266
  case Fa:
19222
19267
  return "SuspenseList";
19223
19268
  }
19224
- if ("object" === _typeof$1(a)) switch (a.$$typeof) {
19269
+ if ("object" === _typeof(a)) switch (a.$$typeof) {
19225
19270
  case Ca:
19226
19271
  return (a.displayName || "Context") + ".Consumer";
19227
19272
  case Ba:
@@ -19293,7 +19338,7 @@ function Ra(a) {
19293
19338
  return null;
19294
19339
  }
19295
19340
  function Sa(a) {
19296
- switch (_typeof$1(a)) {
19341
+ switch (_typeof(a)) {
19297
19342
  case "boolean":
19298
19343
  case "number":
19299
19344
  case "string":
@@ -19604,9 +19649,9 @@ function ub(a, b) {
19604
19649
  if (tb[a] && (null != b.children || null != b.dangerouslySetInnerHTML)) throw Error(p(137, a));
19605
19650
  if (null != b.dangerouslySetInnerHTML) {
19606
19651
  if (null != b.children) throw Error(p(60));
19607
- if ("object" !== _typeof$1(b.dangerouslySetInnerHTML) || !("__html" in b.dangerouslySetInnerHTML)) throw Error(p(61));
19652
+ if ("object" !== _typeof(b.dangerouslySetInnerHTML) || !("__html" in b.dangerouslySetInnerHTML)) throw Error(p(61));
19608
19653
  }
19609
- if (null != b.style && "object" !== _typeof$1(b.style)) throw Error(p(62));
19654
+ if (null != b.style && "object" !== _typeof(b.style)) throw Error(p(62));
19610
19655
  }
19611
19656
  }
19612
19657
  function vb(a, b) {
@@ -19692,7 +19737,7 @@ function Kb(a, b) {
19692
19737
  a = !1;
19693
19738
  }
19694
19739
  if (a) return null;
19695
- if (c && "function" !== typeof c) throw Error(p(231, b, _typeof$1(c)));
19740
+ if (c && "function" !== typeof c) throw Error(p(231, b, _typeof(c)));
19696
19741
  return c;
19697
19742
  }
19698
19743
  var Lb = !1;
@@ -20606,7 +20651,7 @@ function ge(a, b) {
20606
20651
  }
20607
20652
  function he(a) {
20608
20653
  a = a.detail;
20609
- return "object" === _typeof$1(a) && "data" in a ? a.data : null;
20654
+ return "object" === _typeof(a) && "data" in a ? a.data : null;
20610
20655
  }
20611
20656
  var ie = !1;
20612
20657
  function je(a, b) {
@@ -20723,7 +20768,7 @@ function Ge(a, b) {
20723
20768
  var He = "function" === typeof Object.is ? Object.is : Ge;
20724
20769
  function Ie(a, b) {
20725
20770
  if (He(a, b)) return !0;
20726
- if ("object" !== _typeof$1(a) || null === a || "object" !== _typeof$1(b) || null === b) return !1;
20771
+ if ("object" !== _typeof(a) || null === a || "object" !== _typeof(b) || null === b) return !1;
20727
20772
  var c = Object.keys(a),
20728
20773
  d = Object.keys(b);
20729
20774
  if (c.length !== d.length) return !1;
@@ -21250,7 +21295,7 @@ function Bf() {}
21250
21295
  var Cf = null,
21251
21296
  Df = null;
21252
21297
  function Ef(a, b) {
21253
- return "textarea" === a || "noscript" === a || "string" === typeof b.children || "number" === typeof b.children || "object" === _typeof$1(b.dangerouslySetInnerHTML) && null !== b.dangerouslySetInnerHTML && null != b.dangerouslySetInnerHTML.__html;
21298
+ return "textarea" === a || "noscript" === a || "string" === typeof b.children || "number" === typeof b.children || "object" === _typeof(b.dangerouslySetInnerHTML) && null !== b.dangerouslySetInnerHTML && null != b.dangerouslySetInnerHTML.__html;
21254
21299
  }
21255
21300
  var Ff = "function" === typeof setTimeout ? setTimeout : void 0,
21256
21301
  Gf = "function" === typeof clearTimeout ? clearTimeout : void 0,
@@ -21898,7 +21943,7 @@ function ph(a, b, c) {
21898
21943
  var d = !1,
21899
21944
  e = Vf;
21900
21945
  var f = b.contextType;
21901
- "object" === _typeof$1(f) && null !== f ? f = Vg(f) : (e = Zf(b) ? Xf : H.current, d = b.contextTypes, f = (d = null !== d && void 0 !== d) ? Yf(a, e) : Vf);
21946
+ "object" === _typeof(f) && null !== f ? f = Vg(f) : (e = Zf(b) ? Xf : H.current, d = b.contextTypes, f = (d = null !== d && void 0 !== d) ? Yf(a, e) : Vf);
21902
21947
  b = new b(c, f);
21903
21948
  a.memoizedState = null !== b.state && void 0 !== b.state ? b.state : null;
21904
21949
  b.updater = nh;
@@ -21920,7 +21965,7 @@ function rh(a, b, c, d) {
21920
21965
  e.refs = jh;
21921
21966
  ah(a);
21922
21967
  var f = b.contextType;
21923
- "object" === _typeof$1(f) && null !== f ? e.context = Vg(f) : (f = Zf(b) ? Xf : H.current, e.context = Yf(a, f));
21968
+ "object" === _typeof(f) && null !== f ? e.context = Vg(f) : (f = Zf(b) ? Xf : H.current, e.context = Yf(a, f));
21924
21969
  e.state = a.memoizedState;
21925
21970
  f = b.getDerivedStateFromProps;
21926
21971
  "function" === typeof f && (kh(a, b, f, c), e.state = a.memoizedState);
@@ -21929,7 +21974,7 @@ function rh(a, b, c, d) {
21929
21974
  }
21930
21975
  function sh(a, b, c) {
21931
21976
  a = c.ref;
21932
- if (null !== a && "function" !== typeof a && "object" !== _typeof$1(a)) {
21977
+ if (null !== a && "function" !== typeof a && "object" !== _typeof(a)) {
21933
21978
  if (c._owner) {
21934
21979
  c = c._owner;
21935
21980
  if (c) {
@@ -22004,7 +22049,7 @@ function vh(a) {
22004
22049
  function k(a, b, c, d) {
22005
22050
  var f = c.type;
22006
22051
  if (f === ya) return m(a, b, c.props.children, d, c.key);
22007
- if (null !== b && (b.elementType === f || "object" === _typeof$1(f) && null !== f && f.$$typeof === Ha && uh(f) === b.type)) return d = e(b, c.props), d.ref = sh(a, b, c), d["return"] = a, d;
22052
+ if (null !== b && (b.elementType === f || "object" === _typeof(f) && null !== f && f.$$typeof === Ha && uh(f) === b.type)) return d = e(b, c.props), d.ref = sh(a, b, c), d["return"] = a, d;
22008
22053
  d = yh(c.type, c.key, c.props, null, a.mode, d);
22009
22054
  d.ref = sh(a, b, c);
22010
22055
  d["return"] = a;
@@ -22024,7 +22069,7 @@ function vh(a) {
22024
22069
  }
22025
22070
  function q(a, b, c) {
22026
22071
  if ("string" === typeof b && "" !== b || "number" === typeof b) return b = xh("" + b, a.mode, c), b["return"] = a, b;
22027
- if ("object" === _typeof$1(b) && null !== b) {
22072
+ if ("object" === _typeof(b) && null !== b) {
22028
22073
  switch (b.$$typeof) {
22029
22074
  case va:
22030
22075
  return c = yh(b.type, b.key, b.props, null, a.mode, c), c.ref = sh(a, null, b), c["return"] = a, c;
@@ -22042,7 +22087,7 @@ function vh(a) {
22042
22087
  function r(a, b, c, d) {
22043
22088
  var e = null !== b ? b.key : null;
22044
22089
  if ("string" === typeof c && "" !== c || "number" === typeof c) return null !== e ? null : h(a, b, "" + c, d);
22045
- if ("object" === _typeof$1(c) && null !== c) {
22090
+ if ("object" === _typeof(c) && null !== c) {
22046
22091
  switch (c.$$typeof) {
22047
22092
  case va:
22048
22093
  return c.key === e ? k(a, b, c, d) : null;
@@ -22058,7 +22103,7 @@ function vh(a) {
22058
22103
  }
22059
22104
  function y(a, b, c, d, e) {
22060
22105
  if ("string" === typeof d && "" !== d || "number" === typeof d) return a = a.get(c) || null, h(b, a, "" + d, e);
22061
- if ("object" === _typeof$1(d) && null !== d) {
22106
+ if ("object" === _typeof(d) && null !== d) {
22062
22107
  switch (d.$$typeof) {
22063
22108
  case va:
22064
22109
  return a = a.get(null === d.key ? c : d.key) || null, k(b, a, d, e);
@@ -22132,8 +22177,8 @@ function vh(a) {
22132
22177
  return l;
22133
22178
  }
22134
22179
  function J(a, d, f, h) {
22135
- "object" === _typeof$1(f) && null !== f && f.type === ya && null === f.key && (f = f.props.children);
22136
- if ("object" === _typeof$1(f) && null !== f) {
22180
+ "object" === _typeof(f) && null !== f && f.type === ya && null === f.key && (f = f.props.children);
22181
+ if ("object" === _typeof(f) && null !== f) {
22137
22182
  switch (f.$$typeof) {
22138
22183
  case va:
22139
22184
  a: {
@@ -22148,7 +22193,7 @@ function vh(a) {
22148
22193
  a = d;
22149
22194
  break a;
22150
22195
  }
22151
- } else if (l.elementType === k || "object" === _typeof$1(k) && null !== k && k.$$typeof === Ha && uh(k) === l.type) {
22196
+ } else if (l.elementType === k || "object" === _typeof(k) && null !== k && k.$$typeof === Ha && uh(k) === l.type) {
22152
22197
  c(a, l.sibling);
22153
22198
  d = e(l, f.props);
22154
22199
  d.ref = sh(a, l, f);
@@ -23033,7 +23078,7 @@ function ij(a, b, c, d, e) {
23033
23078
  g.props = h;
23034
23079
  var k = g.context,
23035
23080
  l = c.contextType;
23036
- "object" === _typeof$1(l) && null !== l ? l = Vg(l) : (l = Zf(c) ? Xf : H.current, l = Yf(b, l));
23081
+ "object" === _typeof(l) && null !== l ? l = Vg(l) : (l = Zf(c) ? Xf : H.current, l = Yf(b, l));
23037
23082
  var m = c.getDerivedStateFromProps,
23038
23083
  q = "function" === typeof m || "function" === typeof g.getSnapshotBeforeUpdate;
23039
23084
  q || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (h !== d || k !== l) && qh(b, g, d, l);
@@ -23052,7 +23097,7 @@ function ij(a, b, c, d, e) {
23052
23097
  q = b.pendingProps;
23053
23098
  r = g.context;
23054
23099
  k = c.contextType;
23055
- "object" === _typeof$1(k) && null !== k ? k = Vg(k) : (k = Zf(c) ? Xf : H.current, k = Yf(b, k));
23100
+ "object" === _typeof(k) && null !== k ? k = Vg(k) : (k = Zf(c) ? Xf : H.current, k = Yf(b, k));
23056
23101
  var y = c.getDerivedStateFromProps;
23057
23102
  (m = "function" === typeof y || "function" === typeof g.getSnapshotBeforeUpdate) || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (h !== q || r !== k) && qh(b, g, d, k);
23058
23103
  $g = !1;
@@ -24965,7 +25010,7 @@ function Nk(a, b) {
24965
25010
  k = b;
24966
25011
  b = Z;
24967
25012
  h.flags |= 32768;
24968
- if (null !== k && "object" === _typeof$1(k) && "function" === typeof k.then) {
25013
+ if (null !== k && "object" === _typeof(k) && "function" === typeof k.then) {
24969
25014
  var l = k,
24970
25015
  m = h,
24971
25016
  q = m.tag;
@@ -25386,7 +25431,7 @@ Wk = function Wk(a, b, c) {
25386
25431
  e = Xh(null, b, d, a, e, c);
25387
25432
  var f = bi();
25388
25433
  b.flags |= 1;
25389
- "object" === _typeof$1(e) && null !== e && "function" === typeof e.render && void 0 === e.$$typeof ? (b.tag = 1, b.memoizedState = null, b.updateQueue = null, Zf(d) ? (f = !0, cg(b)) : f = !1, b.memoizedState = null !== e.state && void 0 !== e.state ? e.state : null, ah(b), e.updater = nh, b.stateNode = e, e._reactInternals = b, rh(b, d, a, c), b = kj(null, b, d, !0, f, c)) : (b.tag = 0, I && f && vg(b), Yi(null, b, e, c), b = b.child);
25434
+ "object" === _typeof(e) && null !== e && "function" === typeof e.render && void 0 === e.$$typeof ? (b.tag = 1, b.memoizedState = null, b.updateQueue = null, Zf(d) ? (f = !0, cg(b)) : f = !1, b.memoizedState = null !== e.state && void 0 !== e.state ? e.state : null, ah(b), e.updater = nh, b.stateNode = e, e._reactInternals = b, rh(b, d, a, c), b = kj(null, b, d, !0, f, c)) : (b.tag = 0, I && f && vg(b), Yi(null, b, e, c), b = b.child);
25390
25435
  return b;
25391
25436
  case 16:
25392
25437
  d = b.elementType;
@@ -25627,7 +25672,7 @@ function yh(a, b, c, d, e, f) {
25627
25672
  case Ia:
25628
25673
  return qj(c, e, f, b);
25629
25674
  default:
25630
- if ("object" === _typeof$1(a) && null !== a) switch (a.$$typeof) {
25675
+ if ("object" === _typeof(a) && null !== a) switch (a.$$typeof) {
25631
25676
  case Ba:
25632
25677
  g = 10;
25633
25678
  break a;
@@ -25645,7 +25690,7 @@ function yh(a, b, c, d, e, f) {
25645
25690
  d = null;
25646
25691
  break a;
25647
25692
  }
25648
- throw Error(p(130, null == a ? a : _typeof$1(a), ""));
25693
+ throw Error(p(130, null == a ? a : _typeof(a), ""));
25649
25694
  }
25650
25695
  b = Bg(g, c, b, e);
25651
25696
  b.elementType = a;
@@ -26139,7 +26184,7 @@ function checkDCE() {
26139
26184
  });
26140
26185
  }, r.t = function (e, t) {
26141
26186
  if (1 & t && (e = r(e)), 8 & t) return e;
26142
- if (4 & t && "object" == _typeof$1(e) && e && e.__esModule) return e;
26187
+ if (4 & t && "object" == _typeof(e) && e && e.__esModule) return e;
26143
26188
  var n = Object.create(null);
26144
26189
  if (r.r(n), Object.defineProperty(n, "default", {
26145
26190
  enumerable: !0,
@@ -26361,7 +26406,7 @@ function checkDCE() {
26361
26406
  }, t.parseHotkey = c, t.compareHotkey = l, t.toKeyCode = d, t.toKeyName = f;
26362
26407
  }, function (e, t) {
26363
26408
  e.exports = function (e) {
26364
- var t = _typeof$1(e);
26409
+ var t = _typeof(e);
26365
26410
  return null != e && ("object" == t || "function" == t);
26366
26411
  };
26367
26412
  }, function (e, t, r) {
@@ -26389,7 +26434,7 @@ function checkDCE() {
26389
26434
  };
26390
26435
  }, function (e, t, r) {
26391
26436
  var n = r(11),
26392
- u = "object" == (typeof self === "undefined" ? "undefined" : _typeof$1(self)) && self && self.Object === Object && self,
26437
+ u = "object" == (typeof self === "undefined" ? "undefined" : _typeof(self)) && self && self.Object === Object && self,
26393
26438
  o = n || u || Function("return this")();
26394
26439
  e.exports = o;
26395
26440
  }, function (e, t, r) {
@@ -26404,7 +26449,7 @@ function checkDCE() {
26404
26449
  };
26405
26450
  }, function (e, t, r) {
26406
26451
  (function (t) {
26407
- var r = "object" == _typeof$1(t) && t && t.Object === Object && t;
26452
+ var r = "object" == _typeof(t) && t && t.Object === Object && t;
26408
26453
  e.exports = r;
26409
26454
  }).call(this, r(12));
26410
26455
  }, function (e, t) {
@@ -26415,7 +26460,7 @@ function checkDCE() {
26415
26460
  try {
26416
26461
  r = r || new Function("return this")();
26417
26462
  } catch (e) {
26418
- "object" == (typeof window === "undefined" ? "undefined" : _typeof$1(window)) && (r = window);
26463
+ "object" == (typeof window === "undefined" ? "undefined" : _typeof(window)) && (r = window);
26419
26464
  }
26420
26465
  e.exports = r;
26421
26466
  }, function (e, t, r) {
@@ -26442,7 +26487,7 @@ function checkDCE() {
26442
26487
  var n = r(15),
26443
26488
  u = r(18);
26444
26489
  e.exports = function (e) {
26445
- return "symbol" == _typeof$1(e) || u(e) && "[object Symbol]" == n(e);
26490
+ return "symbol" == _typeof(e) || u(e) && "[object Symbol]" == n(e);
26446
26491
  };
26447
26492
  }, function (e, t, r) {
26448
26493
  var n = r(8),
@@ -26475,7 +26520,7 @@ function checkDCE() {
26475
26520
  };
26476
26521
  }, function (e, t) {
26477
26522
  e.exports = function (e) {
26478
- return null != e && "object" == _typeof$1(e);
26523
+ return null != e && "object" == _typeof(e);
26479
26524
  };
26480
26525
  }, function (e, t, r) {
26481
26526
 
@@ -26556,7 +26601,7 @@ function checkDCE() {
26556
26601
  }
26557
26602
  function c(e) {
26558
26603
  return !!e && (function (e) {
26559
- if (!e || "object" != _typeof$1(e)) return !1;
26604
+ if (!e || "object" != _typeof(e)) return !1;
26560
26605
  var t = Object.getPrototypeOf(e);
26561
26606
  if (null === t) return !0;
26562
26607
  var r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
@@ -26565,7 +26610,7 @@ function checkDCE() {
26565
26610
  }
26566
26611
  function l(e, t, r) {
26567
26612
  void 0 === r && (r = !1), 0 === d(e) ? (r ? Object.keys : Z)(e).forEach(function (n) {
26568
- r && "symbol" == _typeof$1(n) || t(n, e[n], e);
26613
+ r && "symbol" == _typeof(n) || t(n, e[n], e);
26569
26614
  }) : e.forEach(function (r, n) {
26570
26615
  return t(n, r, e);
26571
26616
  });
@@ -26621,7 +26666,7 @@ function checkDCE() {
26621
26666
  i(2);
26622
26667
  }
26623
26668
  function b(e) {
26624
- return null == e || "object" != _typeof$1(e) || Object.isFrozen(e);
26669
+ return null == e || "object" != _typeof(e) || Object.isFrozen(e);
26625
26670
  }
26626
26671
  function y(e) {
26627
26672
  var t = Q[e];
@@ -26758,7 +26803,7 @@ function checkDCE() {
26758
26803
  }
26759
26804
  var W,
26760
26805
  V,
26761
- q = "undefined" != typeof Symbol && "symbol" == _typeof$1(Symbol("x")),
26806
+ q = "undefined" != typeof Symbol && "symbol" == _typeof(Symbol("x")),
26762
26807
  H = "undefined" != typeof Map,
26763
26808
  U = "undefined" != typeof Set,
26764
26809
  K = "undefined" != typeof Proxy && void 0 !== Proxy.revocable && "undefined" != typeof Reflect,
@@ -26873,7 +26918,7 @@ function checkDCE() {
26873
26918
  throw w(s), e;
26874
26919
  }) : (F(s, n), k(a, s));
26875
26920
  }
26876
- if (!e || "object" != _typeof$1(e)) {
26921
+ if (!e || "object" != _typeof(e)) {
26877
26922
  if ((a = r(e)) === $) return;
26878
26923
  return void 0 === a && (a = e), t.F && m(a, !0), a;
26879
26924
  }
@@ -31108,7 +31153,7 @@ function checkDCE() {
31108
31153
  Ut = r(6),
31109
31154
  Kt = r.n(Ut);
31110
31155
  function $t(e) {
31111
- return null != e && "object" == _typeof$1(e) && 1 === e.nodeType;
31156
+ return null != e && "object" == _typeof(e) && 1 === e.nodeType;
31112
31157
  }
31113
31158
  function Jt(e, t) {
31114
31159
  return (!t || "hidden" !== e) && "visible" !== e && "clip" !== e;
@@ -35797,4 +35842,4 @@ function SectionListWithFAB(_ref) {
35797
35842
  });
35798
35843
  }
35799
35844
 
35800
- export { Accordion, Alert, Attachment, index$8 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$7 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$6 as Drawer, Empty, Error$1 as Error, FAB, FlatListWithFAB, HeroDesignProvider, Icon, Image, List, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, ScrollViewWithFAB, SectionHeading, SectionListWithFAB, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
35845
+ export { Accordion, Alert, Attachment, index$8 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$7 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$6 as Drawer, Empty, ErrorComponent as Error, FAB, FlatListWithFAB, HeroDesignProvider, Icon, Image, List, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, ScrollViewWithFAB, SectionHeading, SectionListWithFAB, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };