@hero-design/rn 8.93.0 → 8.96.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 (119) hide show
  1. package/.turbo/turbo-build.log +7 -2
  2. package/CHANGELOG.md +18 -0
  3. package/es/index.js +2128 -1023
  4. package/lib/index.js +2127 -1021
  5. package/locales/en_AU.js +10 -0
  6. package/locales/en_AU.mjs +8 -0
  7. package/locales/en_CA.js +10 -0
  8. package/locales/en_CA.mjs +8 -0
  9. package/locales/index.js +11 -0
  10. package/locales/index.mjs +9 -0
  11. package/locales/types.js +2 -0
  12. package/locales/types.mjs +1 -0
  13. package/package.json +4 -3
  14. package/rollup.config.mjs +97 -58
  15. package/src/components/DatePicker/DatePickerAndroid.tsx +27 -7
  16. package/src/components/DatePicker/DatePickerCalendar.tsx +23 -4
  17. package/src/components/DatePicker/DatePickerIOS.tsx +27 -8
  18. package/src/components/DatePicker/__tests__/DatePicker.spec.tsx +30 -1
  19. package/src/components/DatePicker/__tests__/DatePickerAndroid.spec.tsx +27 -0
  20. package/src/components/DatePicker/__tests__/DatePickerCalendar.spec.tsx +27 -0
  21. package/src/components/DatePicker/__tests__/DatePickerIOS.spec.tsx +28 -1
  22. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +1 -0
  23. package/src/components/DatePicker/hooks/__tests__/useFormatDate.spec.ts +61 -0
  24. package/src/components/DatePicker/{useCalculateDate.tsx → hooks/useCalculateDate.tsx} +1 -1
  25. package/src/components/DatePicker/hooks/useFormatDate.ts +25 -0
  26. package/src/components/DatePicker/hooks/utils.ts +30 -0
  27. package/src/components/DatePicker/types.ts +15 -1
  28. package/src/components/HeroDesignProvider/index.tsx +19 -6
  29. package/src/components/LocaleProvider/__tests__/utils.specs.ts +12 -0
  30. package/src/components/LocaleProvider/context.ts +7 -0
  31. package/src/components/LocaleProvider/hooks.ts +19 -0
  32. package/src/components/LocaleProvider/index.tsx +27 -0
  33. package/src/components/LocaleProvider/utils.ts +14 -0
  34. package/src/components/{Empty → StatusScreens/Empty}/StyledEmpty.tsx +11 -2
  35. package/src/components/StatusScreens/Empty/__tests__/__snapshots__/index.spec.tsx.snap +468 -0
  36. package/src/components/{Empty → StatusScreens/Empty}/__tests__/index.spec.tsx +16 -2
  37. package/src/components/StatusScreens/Empty/index.tsx +97 -0
  38. package/src/components/{Error → StatusScreens/Error}/StyledError.tsx +4 -4
  39. package/src/components/{Error → StatusScreens/Error}/__tests__/__snapshots__/index.spec.tsx.snap +300 -0
  40. package/src/components/{Error → StatusScreens/Error}/__tests__/index.spec.tsx +13 -3
  41. package/src/components/{Error → StatusScreens/Error}/index.tsx +39 -7
  42. package/src/components/StatusScreens/StatusIcon/__tests__/index.spec.tsx +31 -0
  43. package/src/components/StatusScreens/StatusIcon/assets/Add.tsx +49 -0
  44. package/src/components/StatusScreens/StatusIcon/assets/Boom.tsx +61 -0
  45. package/src/components/StatusScreens/StatusIcon/assets/Build.tsx +45 -0
  46. package/src/components/StatusScreens/StatusIcon/assets/Clock.tsx +38 -0
  47. package/src/components/StatusScreens/StatusIcon/assets/Confetti.tsx +78 -0
  48. package/src/components/StatusScreens/StatusIcon/assets/Connections.tsx +57 -0
  49. package/src/components/StatusScreens/StatusIcon/assets/Error.tsx +55 -0
  50. package/src/components/StatusScreens/StatusIcon/assets/Info.tsx +35 -0
  51. package/src/components/StatusScreens/StatusIcon/assets/List.tsx +37 -0
  52. package/src/components/StatusScreens/StatusIcon/assets/Location.tsx +37 -0
  53. package/src/components/StatusScreens/StatusIcon/assets/Merge.tsx +59 -0
  54. package/src/components/StatusScreens/StatusIcon/assets/Notifications.tsx +26 -0
  55. package/src/components/StatusScreens/StatusIcon/assets/Search.tsx +36 -0
  56. package/src/components/StatusScreens/StatusIcon/assets/Star.tsx +37 -0
  57. package/src/components/StatusScreens/StatusIcon/assets/Success.tsx +41 -0
  58. package/src/components/StatusScreens/StatusIcon/assets/User.tsx +43 -0
  59. package/src/components/StatusScreens/StatusIcon/index.tsx +63 -0
  60. package/src/components/StatusScreens/StatusIcon/types.ts +5 -0
  61. package/src/components/{Success → StatusScreens/Success}/StyledSuccess.tsx +4 -4
  62. package/src/components/{Success → StatusScreens/Success}/__tests__/__snapshots__/index.spec.tsx.snap +263 -0
  63. package/src/components/{Success → StatusScreens/Success}/__tests__/index.spec.tsx +13 -4
  64. package/src/components/{Success → StatusScreens/Success}/index.tsx +38 -7
  65. package/src/index.ts +5 -3
  66. package/src/locales/en_AU.ts +10 -0
  67. package/src/locales/en_CA.ts +10 -0
  68. package/src/locales/index.ts +7 -0
  69. package/src/locales/types.ts +12 -0
  70. package/src/testHelpers/renderWithTheme.tsx +7 -1
  71. package/src/types.ts +4 -0
  72. package/stats/8.94.0/rn-stats.html +4842 -0
  73. package/stats/8.95.0/rn-stats.html +4842 -0
  74. package/stats/8.96.0/rn-stats.html +4842 -0
  75. package/types/components/DatePicker/DatePickerAndroid.d.ts +1 -1
  76. package/types/components/DatePicker/DatePickerCalendar.d.ts +1 -1
  77. package/types/components/DatePicker/DatePickerIOS.d.ts +1 -1
  78. package/types/components/DatePicker/{useCalculateDate.d.ts → hooks/useCalculateDate.d.ts} +1 -1
  79. package/types/components/DatePicker/hooks/useFormatDate.d.ts +10 -0
  80. package/types/components/DatePicker/hooks/utils.d.ts +6 -0
  81. package/types/components/DatePicker/types.d.ts +8 -1
  82. package/types/components/HeroDesignProvider/index.d.ts +5 -1
  83. package/types/components/LocaleProvider/__tests__/utils.specs.d.ts +1 -0
  84. package/types/components/LocaleProvider/context.d.ts +3 -0
  85. package/types/components/LocaleProvider/hooks.d.ts +5 -0
  86. package/types/components/LocaleProvider/index.d.ts +7 -0
  87. package/types/components/LocaleProvider/utils.d.ts +3 -0
  88. package/types/components/{Empty → StatusScreens/Empty}/StyledEmpty.d.ts +9 -3
  89. package/types/components/{Empty → StatusScreens/Empty}/index.d.ts +8 -3
  90. package/types/components/{Error → StatusScreens/Error}/StyledError.d.ts +6 -6
  91. package/types/components/{Error → StatusScreens/Error}/index.d.ts +6 -1
  92. package/types/components/StatusScreens/StatusIcon/assets/Add.d.ts +4 -0
  93. package/types/components/StatusScreens/StatusIcon/assets/Boom.d.ts +4 -0
  94. package/types/components/StatusScreens/StatusIcon/assets/Build.d.ts +4 -0
  95. package/types/components/StatusScreens/StatusIcon/assets/Clock.d.ts +4 -0
  96. package/types/components/StatusScreens/StatusIcon/assets/Confetti.d.ts +4 -0
  97. package/types/components/StatusScreens/StatusIcon/assets/Connections.d.ts +4 -0
  98. package/types/components/StatusScreens/StatusIcon/assets/Error.d.ts +4 -0
  99. package/types/components/StatusScreens/StatusIcon/assets/Info.d.ts +4 -0
  100. package/types/components/StatusScreens/StatusIcon/assets/List.d.ts +4 -0
  101. package/types/components/StatusScreens/StatusIcon/assets/Location.d.ts +4 -0
  102. package/types/components/StatusScreens/StatusIcon/assets/Merge.d.ts +4 -0
  103. package/types/components/StatusScreens/StatusIcon/assets/Notifications.d.ts +4 -0
  104. package/types/components/StatusScreens/StatusIcon/assets/Search.d.ts +4 -0
  105. package/types/components/StatusScreens/StatusIcon/assets/Star.d.ts +4 -0
  106. package/types/components/StatusScreens/StatusIcon/assets/Success.d.ts +4 -0
  107. package/types/components/StatusScreens/StatusIcon/assets/User.d.ts +4 -0
  108. package/types/components/StatusScreens/StatusIcon/index.d.ts +26 -0
  109. package/types/components/StatusScreens/StatusIcon/types.d.ts +5 -0
  110. package/types/components/{Success → StatusScreens/Success}/StyledSuccess.d.ts +5 -5
  111. package/types/components/{Success → StatusScreens/Success}/index.d.ts +6 -1
  112. package/types/index.d.ts +5 -4
  113. package/types/locales/en_AU.d.ts +3 -0
  114. package/types/locales/en_CA.d.ts +3 -0
  115. package/types/locales/index.d.ts +5 -0
  116. package/types/locales/types.d.ts +10 -0
  117. package/types/types.d.ts +2 -1
  118. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +0 -218
  119. package/src/components/Empty/index.tsx +0 -73
package/es/index.js CHANGED
@@ -6,7 +6,7 @@ import { createIconSet } from 'react-native-vector-icons';
6
6
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
7
7
  import { MonthYearPickerViewIOS, MonthYearPickerDialogueAndroid } from '@hero-design/react-native-month-year-picker';
8
8
  import DateTimePicker from '@react-native-community/datetimepicker';
9
- import Svg, { Circle as Circle$1, G } from 'react-native-svg';
9
+ import Svg, { Rect, Line, Path, Mask, Circle as Circle$1, Defs, ClipPath, G } from 'react-native-svg';
10
10
  import RnSlider from '@react-native-community/slider';
11
11
  import MultiSlider from '@ptomasroos/react-native-multi-slider';
12
12
  import { RectButton, GestureHandlerRootView, Swipeable as Swipeable$1 } from 'react-native-gesture-handler';
@@ -557,14 +557,14 @@ function _toPropertyKey(t) {
557
557
  var i = _toPrimitive(t, "string");
558
558
  return "symbol" == typeof i ? i : i + "";
559
559
  }
560
- function _typeof(o) {
560
+ function _typeof$1(o) {
561
561
  "@babel/helpers - typeof";
562
562
 
563
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
563
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
564
564
  return typeof o;
565
565
  } : function (o) {
566
566
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
567
- }, _typeof(o);
567
+ }, _typeof$1(o);
568
568
  }
569
569
  function _unsupportedIterableToArray(r, a) {
570
570
  if (r) {
@@ -6089,7 +6089,7 @@ function requireCamelize() {
6089
6089
  return walk(obj);
6090
6090
  };
6091
6091
  function walk(obj) {
6092
- if (!obj || _typeof(obj) !== 'object') return obj;
6092
+ if (!obj || _typeof$1(obj) !== 'object') return obj;
6093
6093
  if (isDate(obj) || isRegex(obj)) return obj;
6094
6094
  if (isArray(obj)) return map(obj, walk);
6095
6095
  return reduce(objectKeys(obj), function (acc, key) {
@@ -6452,7 +6452,7 @@ function requireCssToReactNative() {
6452
6452
  value: true
6453
6453
  });
6454
6454
  function _interopDefault(ex) {
6455
- return ex && _typeof(ex) === 'object' && 'default' in ex ? ex['default'] : ex;
6455
+ return ex && _typeof$1(ex) === 'object' && 'default' in ex ? ex['default'] : ex;
6456
6456
  }
6457
6457
  var parse = requireLib$1();
6458
6458
  var parse__default = _interopDefault(parse);
@@ -7176,7 +7176,7 @@ var generated = {};
7176
7176
  var buffer = '';
7177
7177
  var lastType;
7178
7178
  function handleInterpolation(interpolation, i, arr) {
7179
- var type = _typeof(interpolation);
7179
+ var type = _typeof$1(interpolation);
7180
7180
  if (type === 'string') {
7181
7181
  // strip comments
7182
7182
  interpolation = interpolation.replace(/\/\*[\s\S]*?\*\/|\/\/.*$/gm, '');
@@ -10776,12 +10776,59 @@ var BottomSheet$1 = Object.assign(BottomSheet, {
10776
10776
  ScrollView: BottomSheetScrollView
10777
10777
  });
10778
10778
 
10779
+ function _typeof(o) {
10780
+ "@babel/helpers - typeof";
10781
+
10782
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
10783
+ return typeof o;
10784
+ } : function (o) {
10785
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
10786
+ }, _typeof(o);
10787
+ }
10788
+
10779
10789
  function requiredArgs(required, args) {
10780
10790
  if (args.length < required) {
10781
10791
  throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
10782
10792
  }
10783
10793
  }
10784
10794
 
10795
+ /**
10796
+ * @name isDate
10797
+ * @category Common Helpers
10798
+ * @summary Is the given value a date?
10799
+ *
10800
+ * @description
10801
+ * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
10802
+ *
10803
+ * @param {*} value - the value to check
10804
+ * @returns {boolean} true if the given value is a date
10805
+ * @throws {TypeError} 1 arguments required
10806
+ *
10807
+ * @example
10808
+ * // For a valid date:
10809
+ * const result = isDate(new Date())
10810
+ * //=> true
10811
+ *
10812
+ * @example
10813
+ * // For an invalid date:
10814
+ * const result = isDate(new Date(NaN))
10815
+ * //=> true
10816
+ *
10817
+ * @example
10818
+ * // For some value:
10819
+ * const result = isDate('2014-02-31')
10820
+ * //=> false
10821
+ *
10822
+ * @example
10823
+ * // For an object:
10824
+ * const result = isDate({})
10825
+ * //=> false
10826
+ */
10827
+ function isDate(value) {
10828
+ requiredArgs(1, arguments);
10829
+ return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
10830
+ }
10831
+
10785
10832
  /**
10786
10833
  * @name toDate
10787
10834
  * @category Common Helpers
@@ -10812,11 +10859,11 @@ function requiredArgs(required, args) {
10812
10859
  * const result = toDate(1392098430000)
10813
10860
  * //=> Tue Feb 11 2014 11:30:30
10814
10861
  */
10815
-
10816
10862
  function toDate(argument) {
10817
10863
  requiredArgs(1, arguments);
10818
- var argStr = Object.prototype.toString.call(argument); // Clone the date
10864
+ var argStr = Object.prototype.toString.call(argument);
10819
10865
 
10866
+ // Clone the date
10820
10867
  if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {
10821
10868
  // Prevent the date to lose the milliseconds when passed to new Date() in IE10
10822
10869
  return new Date(argument.getTime());
@@ -10825,8 +10872,8 @@ function toDate(argument) {
10825
10872
  } else {
10826
10873
  if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
10827
10874
  // eslint-disable-next-line no-console
10828
- 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
10829
-
10875
+ 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");
10876
+ // eslint-disable-next-line no-console
10830
10877
  console.warn(new Error().stack);
10831
10878
  }
10832
10879
  return new Date(NaN);
@@ -10845,544 +10892,34 @@ function toDate(argument) {
10845
10892
  *
10846
10893
  * Time value of Date: http://es5.github.io/#x15.9.1.1
10847
10894
  *
10848
- * ### v2.0.0 breaking changes:
10849
- *
10850
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
10851
- *
10852
- * - Now `isValid` doesn't throw an exception
10853
- * if the first argument is not an instance of Date.
10854
- * Instead, argument is converted beforehand using `toDate`.
10855
- *
10856
- * Examples:
10857
- *
10858
- * | `isValid` argument | Before v2.0.0 | v2.0.0 onward |
10859
- * |---------------------------|---------------|---------------|
10860
- * | `new Date()` | `true` | `true` |
10861
- * | `new Date('2016-01-01')` | `true` | `true` |
10862
- * | `new Date('')` | `false` | `false` |
10863
- * | `new Date(1488370835081)` | `true` | `true` |
10864
- * | `new Date(NaN)` | `false` | `false` |
10865
- * | `'2016-01-01'` | `TypeError` | `false` |
10866
- * | `''` | `TypeError` | `false` |
10867
- * | `1488370835081` | `TypeError` | `true` |
10868
- * | `NaN` | `TypeError` | `false` |
10869
- *
10870
- * We introduce this change to make *date-fns* consistent with ECMAScript behavior
10871
- * that try to coerce arguments to the expected type
10872
- * (which is also the case with other *date-fns* functions).
10873
- *
10874
10895
  * @param {*} date - the date to check
10875
10896
  * @returns {Boolean} the date is valid
10876
10897
  * @throws {TypeError} 1 argument required
10877
10898
  *
10878
10899
  * @example
10879
10900
  * // For the valid date:
10880
- * var result = isValid(new Date(2014, 1, 31))
10901
+ * const result = isValid(new Date(2014, 1, 31))
10881
10902
  * //=> true
10882
10903
  *
10883
10904
  * @example
10884
10905
  * // For the value, convertable into a date:
10885
- * var result = isValid(1393804800000)
10906
+ * const result = isValid(1393804800000)
10886
10907
  * //=> true
10887
10908
  *
10888
10909
  * @example
10889
10910
  * // For the invalid date:
10890
- * var result = isValid(new Date(''))
10911
+ * const result = isValid(new Date(''))
10891
10912
  * //=> false
10892
10913
  */
10893
-
10894
10914
  function isValid(dirtyDate) {
10895
10915
  requiredArgs(1, arguments);
10896
- var date = toDate(dirtyDate);
10897
- return !isNaN(date);
10898
- }
10899
-
10900
- var formatDistanceLocale = {
10901
- lessThanXSeconds: {
10902
- one: 'less than a second',
10903
- other: 'less than {{count}} seconds'
10904
- },
10905
- xSeconds: {
10906
- one: '1 second',
10907
- other: '{{count}} seconds'
10908
- },
10909
- halfAMinute: 'half a minute',
10910
- lessThanXMinutes: {
10911
- one: 'less than a minute',
10912
- other: 'less than {{count}} minutes'
10913
- },
10914
- xMinutes: {
10915
- one: '1 minute',
10916
- other: '{{count}} minutes'
10917
- },
10918
- aboutXHours: {
10919
- one: 'about 1 hour',
10920
- other: 'about {{count}} hours'
10921
- },
10922
- xHours: {
10923
- one: '1 hour',
10924
- other: '{{count}} hours'
10925
- },
10926
- xDays: {
10927
- one: '1 day',
10928
- other: '{{count}} days'
10929
- },
10930
- aboutXWeeks: {
10931
- one: 'about 1 week',
10932
- other: 'about {{count}} weeks'
10933
- },
10934
- xWeeks: {
10935
- one: '1 week',
10936
- other: '{{count}} weeks'
10937
- },
10938
- aboutXMonths: {
10939
- one: 'about 1 month',
10940
- other: 'about {{count}} months'
10941
- },
10942
- xMonths: {
10943
- one: '1 month',
10944
- other: '{{count}} months'
10945
- },
10946
- aboutXYears: {
10947
- one: 'about 1 year',
10948
- other: 'about {{count}} years'
10949
- },
10950
- xYears: {
10951
- one: '1 year',
10952
- other: '{{count}} years'
10953
- },
10954
- overXYears: {
10955
- one: 'over 1 year',
10956
- other: 'over {{count}} years'
10957
- },
10958
- almostXYears: {
10959
- one: 'almost 1 year',
10960
- other: 'almost {{count}} years'
10961
- }
10962
- };
10963
- function formatDistance(token, count, options) {
10964
- options = options || {};
10965
- var result;
10966
- if (typeof formatDistanceLocale[token] === 'string') {
10967
- result = formatDistanceLocale[token];
10968
- } else if (count === 1) {
10969
- result = formatDistanceLocale[token].one;
10970
- } else {
10971
- result = formatDistanceLocale[token].other.replace('{{count}}', count);
10972
- }
10973
- if (options.addSuffix) {
10974
- if (options.comparison > 0) {
10975
- return 'in ' + result;
10976
- } else {
10977
- return result + ' ago';
10978
- }
10979
- }
10980
- return result;
10981
- }
10982
-
10983
- function buildFormatLongFn(args) {
10984
- return function (dirtyOptions) {
10985
- var options = dirtyOptions || {};
10986
- var width = options.width ? String(options.width) : args.defaultWidth;
10987
- var format = args.formats[width] || args.formats[args.defaultWidth];
10988
- return format;
10989
- };
10990
- }
10991
-
10992
- var dateFormats = {
10993
- full: 'EEEE, MMMM do, y',
10994
- "long": 'MMMM do, y',
10995
- medium: 'MMM d, y',
10996
- "short": 'MM/dd/yyyy'
10997
- };
10998
- var timeFormats = {
10999
- full: 'h:mm:ss a zzzz',
11000
- "long": 'h:mm:ss a z',
11001
- medium: 'h:mm:ss a',
11002
- "short": 'h:mm a'
11003
- };
11004
- var dateTimeFormats = {
11005
- full: "{{date}} 'at' {{time}}",
11006
- "long": "{{date}} 'at' {{time}}",
11007
- medium: '{{date}}, {{time}}',
11008
- "short": '{{date}}, {{time}}'
11009
- };
11010
- var formatLong = {
11011
- date: buildFormatLongFn({
11012
- formats: dateFormats,
11013
- defaultWidth: 'full'
11014
- }),
11015
- time: buildFormatLongFn({
11016
- formats: timeFormats,
11017
- defaultWidth: 'full'
11018
- }),
11019
- dateTime: buildFormatLongFn({
11020
- formats: dateTimeFormats,
11021
- defaultWidth: 'full'
11022
- })
11023
- };
11024
-
11025
- var formatRelativeLocale = {
11026
- lastWeek: "'last' eeee 'at' p",
11027
- yesterday: "'yesterday at' p",
11028
- today: "'today at' p",
11029
- tomorrow: "'tomorrow at' p",
11030
- nextWeek: "eeee 'at' p",
11031
- other: 'P'
11032
- };
11033
- function formatRelative(token, _date, _baseDate, _options) {
11034
- return formatRelativeLocale[token];
11035
- }
11036
-
11037
- function buildLocalizeFn(args) {
11038
- return function (dirtyIndex, dirtyOptions) {
11039
- var options = dirtyOptions || {};
11040
- var context = options.context ? String(options.context) : 'standalone';
11041
- var valuesArray;
11042
- if (context === 'formatting' && args.formattingValues) {
11043
- var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
11044
- var width = options.width ? String(options.width) : defaultWidth;
11045
- valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
11046
- } else {
11047
- var _defaultWidth = args.defaultWidth;
11048
- var _width = options.width ? String(options.width) : args.defaultWidth;
11049
- valuesArray = args.values[_width] || args.values[_defaultWidth];
11050
- }
11051
- var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;
11052
- return valuesArray[index];
11053
- };
11054
- }
11055
-
11056
- var eraValues = {
11057
- narrow: ['B', 'A'],
11058
- abbreviated: ['BC', 'AD'],
11059
- wide: ['Before Christ', 'Anno Domini']
11060
- };
11061
- var quarterValues = {
11062
- narrow: ['1', '2', '3', '4'],
11063
- abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
11064
- wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter'] // Note: in English, the names of days of the week and months are capitalized.
11065
- // If you are making a new locale based on this one, check if the same is true for the language you're working on.
11066
- // Generally, formatted dates should look like they are in the middle of a sentence,
11067
- // e.g. in Spanish language the weekdays and months should be in the lowercase.
11068
- };
11069
-
11070
- var monthValues = {
11071
- narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
11072
- abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
11073
- wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
11074
- };
11075
- var dayValues = {
11076
- narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
11077
- "short": ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
11078
- abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
11079
- wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
11080
- };
11081
- var dayPeriodValues = {
11082
- narrow: {
11083
- am: 'a',
11084
- pm: 'p',
11085
- midnight: 'mi',
11086
- noon: 'n',
11087
- morning: 'morning',
11088
- afternoon: 'afternoon',
11089
- evening: 'evening',
11090
- night: 'night'
11091
- },
11092
- abbreviated: {
11093
- am: 'AM',
11094
- pm: 'PM',
11095
- midnight: 'midnight',
11096
- noon: 'noon',
11097
- morning: 'morning',
11098
- afternoon: 'afternoon',
11099
- evening: 'evening',
11100
- night: 'night'
11101
- },
11102
- wide: {
11103
- am: 'a.m.',
11104
- pm: 'p.m.',
11105
- midnight: 'midnight',
11106
- noon: 'noon',
11107
- morning: 'morning',
11108
- afternoon: 'afternoon',
11109
- evening: 'evening',
11110
- night: 'night'
11111
- }
11112
- };
11113
- var formattingDayPeriodValues = {
11114
- narrow: {
11115
- am: 'a',
11116
- pm: 'p',
11117
- midnight: 'mi',
11118
- noon: 'n',
11119
- morning: 'in the morning',
11120
- afternoon: 'in the afternoon',
11121
- evening: 'in the evening',
11122
- night: 'at night'
11123
- },
11124
- abbreviated: {
11125
- am: 'AM',
11126
- pm: 'PM',
11127
- midnight: 'midnight',
11128
- noon: 'noon',
11129
- morning: 'in the morning',
11130
- afternoon: 'in the afternoon',
11131
- evening: 'in the evening',
11132
- night: 'at night'
11133
- },
11134
- wide: {
11135
- am: 'a.m.',
11136
- pm: 'p.m.',
11137
- midnight: 'midnight',
11138
- noon: 'noon',
11139
- morning: 'in the morning',
11140
- afternoon: 'in the afternoon',
11141
- evening: 'in the evening',
11142
- night: 'at night'
11143
- }
11144
- };
11145
- function ordinalNumber(dirtyNumber, _dirtyOptions) {
11146
- var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
11147
- // if they are different for different grammatical genders,
11148
- // use `options.unit`:
11149
- //
11150
- // var options = dirtyOptions || {}
11151
- // var unit = String(options.unit)
11152
- //
11153
- // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
11154
- // 'day', 'hour', 'minute', 'second'
11155
-
11156
- var rem100 = number % 100;
11157
- if (rem100 > 20 || rem100 < 10) {
11158
- switch (rem100 % 10) {
11159
- case 1:
11160
- return number + 'st';
11161
- case 2:
11162
- return number + 'nd';
11163
- case 3:
11164
- return number + 'rd';
11165
- }
11166
- }
11167
- return number + 'th';
11168
- }
11169
- var localize = {
11170
- ordinalNumber: ordinalNumber,
11171
- era: buildLocalizeFn({
11172
- values: eraValues,
11173
- defaultWidth: 'wide'
11174
- }),
11175
- quarter: buildLocalizeFn({
11176
- values: quarterValues,
11177
- defaultWidth: 'wide',
11178
- argumentCallback: function argumentCallback(quarter) {
11179
- return Number(quarter) - 1;
11180
- }
11181
- }),
11182
- month: buildLocalizeFn({
11183
- values: monthValues,
11184
- defaultWidth: 'wide'
11185
- }),
11186
- day: buildLocalizeFn({
11187
- values: dayValues,
11188
- defaultWidth: 'wide'
11189
- }),
11190
- dayPeriod: buildLocalizeFn({
11191
- values: dayPeriodValues,
11192
- defaultWidth: 'wide',
11193
- formattingValues: formattingDayPeriodValues,
11194
- defaultFormattingWidth: 'wide'
11195
- })
11196
- };
11197
-
11198
- function buildMatchPatternFn(args) {
11199
- return function (dirtyString, dirtyOptions) {
11200
- var string = String(dirtyString);
11201
- var options = dirtyOptions || {};
11202
- var matchResult = string.match(args.matchPattern);
11203
- if (!matchResult) {
11204
- return null;
11205
- }
11206
- var matchedString = matchResult[0];
11207
- var parseResult = string.match(args.parsePattern);
11208
- if (!parseResult) {
11209
- return null;
11210
- }
11211
- var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
11212
- value = options.valueCallback ? options.valueCallback(value) : value;
11213
- return {
11214
- value: value,
11215
- rest: string.slice(matchedString.length)
11216
- };
11217
- };
11218
- }
11219
-
11220
- function buildMatchFn(args) {
11221
- return function (dirtyString, dirtyOptions) {
11222
- var string = String(dirtyString);
11223
- var options = dirtyOptions || {};
11224
- var width = options.width;
11225
- var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
11226
- var matchResult = string.match(matchPattern);
11227
- if (!matchResult) {
11228
- return null;
11229
- }
11230
- var matchedString = matchResult[0];
11231
- var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
11232
- var value;
11233
- if (Object.prototype.toString.call(parsePatterns) === '[object Array]') {
11234
- value = findIndex(parsePatterns, function (pattern) {
11235
- return pattern.test(matchedString);
11236
- });
11237
- } else {
11238
- value = findKey(parsePatterns, function (pattern) {
11239
- return pattern.test(matchedString);
11240
- });
11241
- }
11242
- value = args.valueCallback ? args.valueCallback(value) : value;
11243
- value = options.valueCallback ? options.valueCallback(value) : value;
11244
- return {
11245
- value: value,
11246
- rest: string.slice(matchedString.length)
11247
- };
11248
- };
11249
- }
11250
- function findKey(object, predicate) {
11251
- for (var key in object) {
11252
- if (object.hasOwnProperty(key) && predicate(object[key])) {
11253
- return key;
11254
- }
11255
- }
11256
- }
11257
- function findIndex(array, predicate) {
11258
- for (var key = 0; key < array.length; key++) {
11259
- if (predicate(array[key])) {
11260
- return key;
11261
- }
10916
+ if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {
10917
+ return false;
11262
10918
  }
10919
+ var date = toDate(dirtyDate);
10920
+ return !isNaN(Number(date));
11263
10921
  }
11264
10922
 
11265
- var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
11266
- var parseOrdinalNumberPattern = /\d+/i;
11267
- var matchEraPatterns = {
11268
- narrow: /^(b|a)/i,
11269
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
11270
- wide: /^(before christ|before common era|anno domini|common era)/i
11271
- };
11272
- var parseEraPatterns = {
11273
- any: [/^b/i, /^(a|c)/i]
11274
- };
11275
- var matchQuarterPatterns = {
11276
- narrow: /^[1234]/i,
11277
- abbreviated: /^q[1234]/i,
11278
- wide: /^[1234](th|st|nd|rd)? quarter/i
11279
- };
11280
- var parseQuarterPatterns = {
11281
- any: [/1/i, /2/i, /3/i, /4/i]
11282
- };
11283
- var matchMonthPatterns = {
11284
- narrow: /^[jfmasond]/i,
11285
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
11286
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
11287
- };
11288
- var parseMonthPatterns = {
11289
- 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],
11290
- 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]
11291
- };
11292
- var matchDayPatterns = {
11293
- narrow: /^[smtwf]/i,
11294
- "short": /^(su|mo|tu|we|th|fr|sa)/i,
11295
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
11296
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
11297
- };
11298
- var parseDayPatterns = {
11299
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
11300
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
11301
- };
11302
- var matchDayPeriodPatterns = {
11303
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
11304
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
11305
- };
11306
- var parseDayPeriodPatterns = {
11307
- any: {
11308
- am: /^a/i,
11309
- pm: /^p/i,
11310
- midnight: /^mi/i,
11311
- noon: /^no/i,
11312
- morning: /morning/i,
11313
- afternoon: /afternoon/i,
11314
- evening: /evening/i,
11315
- night: /night/i
11316
- }
11317
- };
11318
- var match = {
11319
- ordinalNumber: buildMatchPatternFn({
11320
- matchPattern: matchOrdinalNumberPattern,
11321
- parsePattern: parseOrdinalNumberPattern,
11322
- valueCallback: function valueCallback(value) {
11323
- return parseInt(value, 10);
11324
- }
11325
- }),
11326
- era: buildMatchFn({
11327
- matchPatterns: matchEraPatterns,
11328
- defaultMatchWidth: 'wide',
11329
- parsePatterns: parseEraPatterns,
11330
- defaultParseWidth: 'any'
11331
- }),
11332
- quarter: buildMatchFn({
11333
- matchPatterns: matchQuarterPatterns,
11334
- defaultMatchWidth: 'wide',
11335
- parsePatterns: parseQuarterPatterns,
11336
- defaultParseWidth: 'any',
11337
- valueCallback: function valueCallback(index) {
11338
- return index + 1;
11339
- }
11340
- }),
11341
- month: buildMatchFn({
11342
- matchPatterns: matchMonthPatterns,
11343
- defaultMatchWidth: 'wide',
11344
- parsePatterns: parseMonthPatterns,
11345
- defaultParseWidth: 'any'
11346
- }),
11347
- day: buildMatchFn({
11348
- matchPatterns: matchDayPatterns,
11349
- defaultMatchWidth: 'wide',
11350
- parsePatterns: parseDayPatterns,
11351
- defaultParseWidth: 'any'
11352
- }),
11353
- dayPeriod: buildMatchFn({
11354
- matchPatterns: matchDayPeriodPatterns,
11355
- defaultMatchWidth: 'any',
11356
- parsePatterns: parseDayPeriodPatterns,
11357
- defaultParseWidth: 'any'
11358
- })
11359
- };
11360
-
11361
- /**
11362
- * @type {Locale}
11363
- * @category Locales
11364
- * @summary English locale (United States).
11365
- * @language English
11366
- * @iso-639-2 eng
11367
- * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
11368
- * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
11369
- */
11370
-
11371
- var locale = {
11372
- code: 'en-US',
11373
- formatDistance: formatDistance,
11374
- formatLong: formatLong,
11375
- formatRelative: formatRelative,
11376
- localize: localize,
11377
- match: match,
11378
- options: {
11379
- weekStartsOn: 0
11380
- /* Sunday */,
11381
-
11382
- firstWeekContainsDate: 1
11383
- }
11384
- };
11385
-
11386
10923
  function toInteger(dirtyNumber) {
11387
10924
  if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
11388
10925
  return NaN;
@@ -11402,10 +10939,6 @@ function toInteger(dirtyNumber) {
11402
10939
  * @description
11403
10940
  * Add the specified number of milliseconds to the given date.
11404
10941
  *
11405
- * ### v2.0.0 breaking changes:
11406
- *
11407
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
11408
- *
11409
10942
  * @param {Date|Number} date - the date to be changed
11410
10943
  * @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`.
11411
10944
  * @returns {Date} the new date with the milliseconds added
@@ -11413,10 +10946,9 @@ function toInteger(dirtyNumber) {
11413
10946
  *
11414
10947
  * @example
11415
10948
  * // Add 750 milliseconds to 10 July 2014 12:45:30.000:
11416
- * var result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
10949
+ * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
11417
10950
  * //=> Thu Jul 10 2014 12:45:30.750
11418
10951
  */
11419
-
11420
10952
  function addMilliseconds(dirtyDate, dirtyAmount) {
11421
10953
  requiredArgs(2, arguments);
11422
10954
  var timestamp = toDate(dirtyDate).getTime();
@@ -11432,10 +10964,6 @@ function addMilliseconds(dirtyDate, dirtyAmount) {
11432
10964
  * @description
11433
10965
  * Subtract the specified number of milliseconds from the given date.
11434
10966
  *
11435
- * ### v2.0.0 breaking changes:
11436
- *
11437
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
11438
- *
11439
10967
  * @param {Date|Number} date - the date to be changed
11440
10968
  * @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`.
11441
10969
  * @returns {Date} the new date with the milliseconds subtracted
@@ -11443,119 +10971,27 @@ function addMilliseconds(dirtyDate, dirtyAmount) {
11443
10971
  *
11444
10972
  * @example
11445
10973
  * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000:
11446
- * var result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
10974
+ * const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
11447
10975
  * //=> Thu Jul 10 2014 12:45:29.250
11448
10976
  */
11449
-
11450
10977
  function subMilliseconds(dirtyDate, dirtyAmount) {
11451
10978
  requiredArgs(2, arguments);
11452
10979
  var amount = toInteger(dirtyAmount);
11453
10980
  return addMilliseconds(dirtyDate, -amount);
11454
10981
  }
11455
10982
 
11456
- function addLeadingZeros(number, targetLength) {
11457
- var sign = number < 0 ? '-' : '';
11458
- var output = Math.abs(number).toString();
11459
- while (output.length < targetLength) {
11460
- output = '0' + output;
11461
- }
11462
- return sign + output;
10983
+ var MILLISECONDS_IN_DAY = 86400000;
10984
+ function getUTCDayOfYear(dirtyDate) {
10985
+ requiredArgs(1, arguments);
10986
+ var date = toDate(dirtyDate);
10987
+ var timestamp = date.getTime();
10988
+ date.setUTCMonth(0, 1);
10989
+ date.setUTCHours(0, 0, 0, 0);
10990
+ var startOfYearTimestamp = date.getTime();
10991
+ var difference = timestamp - startOfYearTimestamp;
10992
+ return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;
11463
10993
  }
11464
10994
 
11465
- /*
11466
- * | | Unit | | Unit |
11467
- * |-----|--------------------------------|-----|--------------------------------|
11468
- * | a | AM, PM | A* | |
11469
- * | d | Day of month | D | |
11470
- * | h | Hour [1-12] | H | Hour [0-23] |
11471
- * | m | Minute | M | Month |
11472
- * | s | Second | S | Fraction of second |
11473
- * | y | Year (abs) | Y | |
11474
- *
11475
- * Letters marked by * are not implemented but reserved by Unicode standard.
11476
- */
11477
-
11478
- var formatters$1 = {
11479
- // Year
11480
- y: function y(date, token) {
11481
- // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
11482
- // | Year | y | yy | yyy | yyyy | yyyyy |
11483
- // |----------|-------|----|-------|-------|-------|
11484
- // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
11485
- // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
11486
- // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
11487
- // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
11488
- // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
11489
- var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
11490
-
11491
- var year = signedYear > 0 ? signedYear : 1 - signedYear;
11492
- return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
11493
- },
11494
- // Month
11495
- M: function M(date, token) {
11496
- var month = date.getUTCMonth();
11497
- return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
11498
- },
11499
- // Day of the month
11500
- d: function d(date, token) {
11501
- return addLeadingZeros(date.getUTCDate(), token.length);
11502
- },
11503
- // AM or PM
11504
- a: function a(date, token) {
11505
- var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
11506
- switch (token) {
11507
- case 'a':
11508
- case 'aa':
11509
- case 'aaa':
11510
- return dayPeriodEnumValue.toUpperCase();
11511
- case 'aaaaa':
11512
- return dayPeriodEnumValue[0];
11513
- case 'aaaa':
11514
- default:
11515
- return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
11516
- }
11517
- },
11518
- // Hour [1-12]
11519
- h: function h(date, token) {
11520
- return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
11521
- },
11522
- // Hour [0-23]
11523
- H: function H(date, token) {
11524
- return addLeadingZeros(date.getUTCHours(), token.length);
11525
- },
11526
- // Minute
11527
- m: function m(date, token) {
11528
- return addLeadingZeros(date.getUTCMinutes(), token.length);
11529
- },
11530
- // Second
11531
- s: function s(date, token) {
11532
- return addLeadingZeros(date.getUTCSeconds(), token.length);
11533
- },
11534
- // Fraction of second
11535
- S: function S(date, token) {
11536
- var numberOfDigits = token.length;
11537
- var milliseconds = date.getUTCMilliseconds();
11538
- var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
11539
- return addLeadingZeros(fractionalSeconds, token.length);
11540
- }
11541
- };
11542
-
11543
- var MILLISECONDS_IN_DAY = 86400000; // This function will be a part of public API when UTC function will be implemented.
11544
- // See issue: https://github.com/date-fns/date-fns/issues/376
11545
-
11546
- function getUTCDayOfYear(dirtyDate) {
11547
- requiredArgs(1, arguments);
11548
- var date = toDate(dirtyDate);
11549
- var timestamp = date.getTime();
11550
- date.setUTCMonth(0, 1);
11551
- date.setUTCHours(0, 0, 0, 0);
11552
- var startOfYearTimestamp = date.getTime();
11553
- var difference = timestamp - startOfYearTimestamp;
11554
- return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;
11555
- }
11556
-
11557
- // See issue: https://github.com/date-fns/date-fns/issues/376
11558
-
11559
10995
  function startOfUTCISOWeek(dirtyDate) {
11560
10996
  requiredArgs(1, arguments);
11561
10997
  var weekStartsOn = 1;
@@ -11567,8 +11003,6 @@ function startOfUTCISOWeek(dirtyDate) {
11567
11003
  return date;
11568
11004
  }
11569
11005
 
11570
- // See issue: https://github.com/date-fns/date-fns/issues/376
11571
-
11572
11006
  function getUTCISOWeekYear(dirtyDate) {
11573
11007
  requiredArgs(1, arguments);
11574
11008
  var date = toDate(dirtyDate);
@@ -11590,8 +11024,6 @@ function getUTCISOWeekYear(dirtyDate) {
11590
11024
  }
11591
11025
  }
11592
11026
 
11593
- // See issue: https://github.com/date-fns/date-fns/issues/376
11594
-
11595
11027
  function startOfUTCISOWeekYear(dirtyDate) {
11596
11028
  requiredArgs(1, arguments);
11597
11029
  var year = getUTCISOWeekYear(dirtyDate);
@@ -11602,29 +11034,33 @@ function startOfUTCISOWeekYear(dirtyDate) {
11602
11034
  return date;
11603
11035
  }
11604
11036
 
11605
- var MILLISECONDS_IN_WEEK$1 = 604800000; // This function will be a part of public API when UTC function will be implemented.
11606
- // See issue: https://github.com/date-fns/date-fns/issues/376
11607
-
11037
+ var MILLISECONDS_IN_WEEK$1 = 604800000;
11608
11038
  function getUTCISOWeek(dirtyDate) {
11609
11039
  requiredArgs(1, arguments);
11610
11040
  var date = toDate(dirtyDate);
11611
- var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime(); // Round the number of days to the nearest integer
11041
+ var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime();
11042
+
11043
+ // Round the number of days to the nearest integer
11612
11044
  // because the number of milliseconds in a week is not constant
11613
11045
  // (e.g. it's different in the week of the daylight saving time clock shift)
11614
-
11615
11046
  return Math.round(diff / MILLISECONDS_IN_WEEK$1) + 1;
11616
11047
  }
11617
11048
 
11618
- // See issue: https://github.com/date-fns/date-fns/issues/376
11049
+ var defaultOptions = {};
11050
+ function getDefaultOptions() {
11051
+ return defaultOptions;
11052
+ }
11053
+ function setDefaultOptions$1(newOptions) {
11054
+ defaultOptions = newOptions;
11055
+ }
11619
11056
 
11620
- function startOfUTCWeek(dirtyDate, dirtyOptions) {
11057
+ function startOfUTCWeek(dirtyDate, options) {
11058
+ var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
11621
11059
  requiredArgs(1, arguments);
11622
- var options = dirtyOptions || {};
11623
- var locale = options.locale;
11624
- var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
11625
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);
11626
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
11060
+ var defaultOptions = getDefaultOptions();
11061
+ 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);
11627
11062
 
11063
+ // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
11628
11064
  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
11629
11065
  throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
11630
11066
  }
@@ -11636,29 +11072,26 @@ function startOfUTCWeek(dirtyDate, dirtyOptions) {
11636
11072
  return date;
11637
11073
  }
11638
11074
 
11639
- // See issue: https://github.com/date-fns/date-fns/issues/376
11640
-
11641
- function getUTCWeekYear(dirtyDate, dirtyOptions) {
11075
+ function getUTCWeekYear(dirtyDate, options) {
11076
+ var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
11642
11077
  requiredArgs(1, arguments);
11643
- var date = toDate(dirtyDate, dirtyOptions);
11078
+ var date = toDate(dirtyDate);
11644
11079
  var year = date.getUTCFullYear();
11645
- var options = dirtyOptions || {};
11646
- var locale = options.locale;
11647
- var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate;
11648
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
11649
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
11080
+ var defaultOptions = getDefaultOptions();
11081
+ 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);
11650
11082
 
11083
+ // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
11651
11084
  if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
11652
11085
  throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
11653
11086
  }
11654
11087
  var firstWeekOfNextYear = new Date(0);
11655
11088
  firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);
11656
11089
  firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);
11657
- var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, dirtyOptions);
11090
+ var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, options);
11658
11091
  var firstWeekOfThisYear = new Date(0);
11659
11092
  firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);
11660
11093
  firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);
11661
- var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, dirtyOptions);
11094
+ var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, options);
11662
11095
  if (date.getTime() >= startOfNextYear.getTime()) {
11663
11096
  return year + 1;
11664
11097
  } else if (date.getTime() >= startOfThisYear.getTime()) {
@@ -11668,36 +11101,119 @@ function getUTCWeekYear(dirtyDate, dirtyOptions) {
11668
11101
  }
11669
11102
  }
11670
11103
 
11671
- // See issue: https://github.com/date-fns/date-fns/issues/376
11672
-
11673
- function startOfUTCWeekYear(dirtyDate, dirtyOptions) {
11104
+ function startOfUTCWeekYear(dirtyDate, options) {
11105
+ var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
11674
11106
  requiredArgs(1, arguments);
11675
- var options = dirtyOptions || {};
11676
- var locale = options.locale;
11677
- var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate;
11678
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
11679
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate);
11680
- var year = getUTCWeekYear(dirtyDate, dirtyOptions);
11107
+ var defaultOptions = getDefaultOptions();
11108
+ 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);
11109
+ var year = getUTCWeekYear(dirtyDate, options);
11681
11110
  var firstWeek = new Date(0);
11682
11111
  firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);
11683
11112
  firstWeek.setUTCHours(0, 0, 0, 0);
11684
- var date = startOfUTCWeek(firstWeek, dirtyOptions);
11113
+ var date = startOfUTCWeek(firstWeek, options);
11685
11114
  return date;
11686
11115
  }
11687
11116
 
11688
- var MILLISECONDS_IN_WEEK = 604800000; // This function will be a part of public API when UTC function will be implemented.
11689
- // See issue: https://github.com/date-fns/date-fns/issues/376
11690
-
11117
+ var MILLISECONDS_IN_WEEK = 604800000;
11691
11118
  function getUTCWeek(dirtyDate, options) {
11692
11119
  requiredArgs(1, arguments);
11693
11120
  var date = toDate(dirtyDate);
11694
- var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime(); // Round the number of days to the nearest integer
11121
+ var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime();
11122
+
11123
+ // Round the number of days to the nearest integer
11695
11124
  // because the number of milliseconds in a week is not constant
11696
11125
  // (e.g. it's different in the week of the daylight saving time clock shift)
11697
-
11698
11126
  return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
11699
11127
  }
11700
11128
 
11129
+ function addLeadingZeros(number, targetLength) {
11130
+ var sign = number < 0 ? '-' : '';
11131
+ var output = Math.abs(number).toString();
11132
+ while (output.length < targetLength) {
11133
+ output = '0' + output;
11134
+ }
11135
+ return sign + output;
11136
+ }
11137
+
11138
+ /*
11139
+ * | | Unit | | Unit |
11140
+ * |-----|--------------------------------|-----|--------------------------------|
11141
+ * | a | AM, PM | A* | |
11142
+ * | d | Day of month | D | |
11143
+ * | h | Hour [1-12] | H | Hour [0-23] |
11144
+ * | m | Minute | M | Month |
11145
+ * | s | Second | S | Fraction of second |
11146
+ * | y | Year (abs) | Y | |
11147
+ *
11148
+ * Letters marked by * are not implemented but reserved by Unicode standard.
11149
+ */
11150
+ var formatters$1 = {
11151
+ // Year
11152
+ y: function y(date, token) {
11153
+ // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
11154
+ // | Year | y | yy | yyy | yyyy | yyyyy |
11155
+ // |----------|-------|----|-------|-------|-------|
11156
+ // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
11157
+ // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
11158
+ // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
11159
+ // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
11160
+ // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
11161
+
11162
+ var signedYear = date.getUTCFullYear();
11163
+ // Returns 1 for 1 BC (which is year 0 in JavaScript)
11164
+ var year = signedYear > 0 ? signedYear : 1 - signedYear;
11165
+ return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
11166
+ },
11167
+ // Month
11168
+ M: function M(date, token) {
11169
+ var month = date.getUTCMonth();
11170
+ return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
11171
+ },
11172
+ // Day of the month
11173
+ d: function d(date, token) {
11174
+ return addLeadingZeros(date.getUTCDate(), token.length);
11175
+ },
11176
+ // AM or PM
11177
+ a: function a(date, token) {
11178
+ var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
11179
+ switch (token) {
11180
+ case 'a':
11181
+ case 'aa':
11182
+ return dayPeriodEnumValue.toUpperCase();
11183
+ case 'aaa':
11184
+ return dayPeriodEnumValue;
11185
+ case 'aaaaa':
11186
+ return dayPeriodEnumValue[0];
11187
+ case 'aaaa':
11188
+ default:
11189
+ return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
11190
+ }
11191
+ },
11192
+ // Hour [1-12]
11193
+ h: function h(date, token) {
11194
+ return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
11195
+ },
11196
+ // Hour [0-23]
11197
+ H: function H(date, token) {
11198
+ return addLeadingZeros(date.getUTCHours(), token.length);
11199
+ },
11200
+ // Minute
11201
+ m: function m(date, token) {
11202
+ return addLeadingZeros(date.getUTCMinutes(), token.length);
11203
+ },
11204
+ // Second
11205
+ s: function s(date, token) {
11206
+ return addLeadingZeros(date.getUTCSeconds(), token.length);
11207
+ },
11208
+ // Fraction of second
11209
+ S: function S(date, token) {
11210
+ var numberOfDigits = token.length;
11211
+ var milliseconds = date.getUTCMilliseconds();
11212
+ var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
11213
+ return addLeadingZeros(fractionalSeconds, token.length);
11214
+ }
11215
+ };
11216
+
11701
11217
  var dayPeriodEnum = {
11702
11218
  am: 'am',
11703
11219
  pm: 'pm',
@@ -11707,52 +11223,52 @@ var dayPeriodEnum = {
11707
11223
  afternoon: 'afternoon',
11708
11224
  evening: 'evening',
11709
11225
  night: 'night'
11710
- /*
11711
- * | | Unit | | Unit |
11712
- * |-----|--------------------------------|-----|--------------------------------|
11713
- * | a | AM, PM | A* | Milliseconds in day |
11714
- * | b | AM, PM, noon, midnight | B | Flexible day period |
11715
- * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
11716
- * | d | Day of month | D | Day of year |
11717
- * | e | Local day of week | E | Day of week |
11718
- * | f | | F* | Day of week in month |
11719
- * | g* | Modified Julian day | G | Era |
11720
- * | h | Hour [1-12] | H | Hour [0-23] |
11721
- * | i! | ISO day of week | I! | ISO week of year |
11722
- * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
11723
- * | k | Hour [1-24] | K | Hour [0-11] |
11724
- * | l* | (deprecated) | L | Stand-alone month |
11725
- * | m | Minute | M | Month |
11726
- * | n | | N | |
11727
- * | o! | Ordinal number modifier | O | Timezone (GMT) |
11728
- * | p! | Long localized time | P! | Long localized date |
11729
- * | q | Stand-alone quarter | Q | Quarter |
11730
- * | r* | Related Gregorian year | R! | ISO week-numbering year |
11731
- * | s | Second | S | Fraction of second |
11732
- * | t! | Seconds timestamp | T! | Milliseconds timestamp |
11733
- * | u | Extended year | U* | Cyclic year |
11734
- * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
11735
- * | w | Local week of year | W* | Week of month |
11736
- * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
11737
- * | y | Year (abs) | Y | Local week-numbering year |
11738
- * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
11739
- *
11740
- * Letters marked by * are not implemented but reserved by Unicode standard.
11741
- *
11742
- * Letters marked by ! are non-standard, but implemented by date-fns:
11743
- * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)
11744
- * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
11745
- * i.e. 7 for Sunday, 1 for Monday, etc.
11746
- * - `I` is ISO week of year, as opposed to `w` which is local week of year.
11747
- * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
11748
- * `R` is supposed to be used in conjunction with `I` and `i`
11749
- * for universal ISO week-numbering date, whereas
11750
- * `Y` is supposed to be used in conjunction with `w` and `e`
11751
- * for week-numbering date specific to the locale.
11752
- * - `P` is long localized date format
11753
- * - `p` is long localized time format
11754
- */
11755
11226
  };
11227
+ /*
11228
+ * | | Unit | | Unit |
11229
+ * |-----|--------------------------------|-----|--------------------------------|
11230
+ * | a | AM, PM | A* | Milliseconds in day |
11231
+ * | b | AM, PM, noon, midnight | B | Flexible day period |
11232
+ * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
11233
+ * | d | Day of month | D | Day of year |
11234
+ * | e | Local day of week | E | Day of week |
11235
+ * | f | | F* | Day of week in month |
11236
+ * | g* | Modified Julian day | G | Era |
11237
+ * | h | Hour [1-12] | H | Hour [0-23] |
11238
+ * | i! | ISO day of week | I! | ISO week of year |
11239
+ * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
11240
+ * | k | Hour [1-24] | K | Hour [0-11] |
11241
+ * | l* | (deprecated) | L | Stand-alone month |
11242
+ * | m | Minute | M | Month |
11243
+ * | n | | N | |
11244
+ * | o! | Ordinal number modifier | O | Timezone (GMT) |
11245
+ * | p! | Long localized time | P! | Long localized date |
11246
+ * | q | Stand-alone quarter | Q | Quarter |
11247
+ * | r* | Related Gregorian year | R! | ISO week-numbering year |
11248
+ * | s | Second | S | Fraction of second |
11249
+ * | t! | Seconds timestamp | T! | Milliseconds timestamp |
11250
+ * | u | Extended year | U* | Cyclic year |
11251
+ * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
11252
+ * | w | Local week of year | W* | Week of month |
11253
+ * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
11254
+ * | y | Year (abs) | Y | Local week-numbering year |
11255
+ * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
11256
+ *
11257
+ * Letters marked by * are not implemented but reserved by Unicode standard.
11258
+ *
11259
+ * Letters marked by ! are non-standard, but implemented by date-fns:
11260
+ * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)
11261
+ * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
11262
+ * i.e. 7 for Sunday, 1 for Monday, etc.
11263
+ * - `I` is ISO week of year, as opposed to `w` which is local week of year.
11264
+ * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
11265
+ * `R` is supposed to be used in conjunction with `I` and `i`
11266
+ * for universal ISO week-numbering date, whereas
11267
+ * `Y` is supposed to be used in conjunction with `w` and `e`
11268
+ * for week-numbering date specific to the locale.
11269
+ * - `P` is long localized date format
11270
+ * - `p` is long localized time format
11271
+ */
11756
11272
 
11757
11273
  var formatters = {
11758
11274
  // Era
@@ -11767,13 +11283,11 @@ var formatters = {
11767
11283
  width: 'abbreviated'
11768
11284
  });
11769
11285
  // A, B
11770
-
11771
11286
  case 'GGGGG':
11772
11287
  return localize.era(era, {
11773
11288
  width: 'narrow'
11774
11289
  });
11775
11290
  // Anno Domini, Before Christ
11776
-
11777
11291
  case 'GGGG':
11778
11292
  default:
11779
11293
  return localize.era(era, {
@@ -11785,8 +11299,8 @@ var formatters = {
11785
11299
  y: function y(date, token, localize) {
11786
11300
  // Ordinal number
11787
11301
  if (token === 'yo') {
11788
- var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
11789
-
11302
+ var signedYear = date.getUTCFullYear();
11303
+ // Returns 1 for 1 BC (which is year 0 in JavaScript)
11790
11304
  var year = signedYear > 0 ? signedYear : 1 - signedYear;
11791
11305
  return localize.ordinalNumber(year, {
11792
11306
  unit: 'year'
@@ -11796,27 +11310,31 @@ var formatters = {
11796
11310
  },
11797
11311
  // Local week-numbering year
11798
11312
  Y: function Y(date, token, localize, options) {
11799
- var signedWeekYear = getUTCWeekYear(date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript)
11800
-
11801
- var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year
11313
+ var signedWeekYear = getUTCWeekYear(date, options);
11314
+ // Returns 1 for 1 BC (which is year 0 in JavaScript)
11315
+ var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;
11802
11316
 
11317
+ // Two digit year
11803
11318
  if (token === 'YY') {
11804
11319
  var twoDigitYear = weekYear % 100;
11805
11320
  return addLeadingZeros(twoDigitYear, 2);
11806
- } // Ordinal number
11321
+ }
11807
11322
 
11323
+ // Ordinal number
11808
11324
  if (token === 'Yo') {
11809
11325
  return localize.ordinalNumber(weekYear, {
11810
11326
  unit: 'year'
11811
11327
  });
11812
- } // Padding
11328
+ }
11813
11329
 
11330
+ // Padding
11814
11331
  return addLeadingZeros(weekYear, token.length);
11815
11332
  },
11816
11333
  // ISO week-numbering year
11817
11334
  R: function R(date, token) {
11818
- var isoWeekYear = getUTCISOWeekYear(date); // Padding
11335
+ var isoWeekYear = getUTCISOWeekYear(date);
11819
11336
 
11337
+ // Padding
11820
11338
  return addLeadingZeros(isoWeekYear, token.length);
11821
11339
  },
11822
11340
  // Extended year. This is a single number designating the year of this calendar system.
@@ -11840,31 +11358,26 @@ var formatters = {
11840
11358
  case 'Q':
11841
11359
  return String(quarter);
11842
11360
  // 01, 02, 03, 04
11843
-
11844
11361
  case 'QQ':
11845
11362
  return addLeadingZeros(quarter, 2);
11846
11363
  // 1st, 2nd, 3rd, 4th
11847
-
11848
11364
  case 'Qo':
11849
11365
  return localize.ordinalNumber(quarter, {
11850
11366
  unit: 'quarter'
11851
11367
  });
11852
11368
  // Q1, Q2, Q3, Q4
11853
-
11854
11369
  case 'QQQ':
11855
11370
  return localize.quarter(quarter, {
11856
11371
  width: 'abbreviated',
11857
11372
  context: 'formatting'
11858
11373
  });
11859
11374
  // 1, 2, 3, 4 (narrow quarter; could be not numerical)
11860
-
11861
11375
  case 'QQQQQ':
11862
11376
  return localize.quarter(quarter, {
11863
11377
  width: 'narrow',
11864
11378
  context: 'formatting'
11865
11379
  });
11866
11380
  // 1st quarter, 2nd quarter, ...
11867
-
11868
11381
  case 'QQQQ':
11869
11382
  default:
11870
11383
  return localize.quarter(quarter, {
@@ -11881,31 +11394,26 @@ var formatters = {
11881
11394
  case 'q':
11882
11395
  return String(quarter);
11883
11396
  // 01, 02, 03, 04
11884
-
11885
11397
  case 'qq':
11886
11398
  return addLeadingZeros(quarter, 2);
11887
11399
  // 1st, 2nd, 3rd, 4th
11888
-
11889
11400
  case 'qo':
11890
11401
  return localize.ordinalNumber(quarter, {
11891
11402
  unit: 'quarter'
11892
11403
  });
11893
11404
  // Q1, Q2, Q3, Q4
11894
-
11895
11405
  case 'qqq':
11896
11406
  return localize.quarter(quarter, {
11897
11407
  width: 'abbreviated',
11898
11408
  context: 'standalone'
11899
11409
  });
11900
11410
  // 1, 2, 3, 4 (narrow quarter; could be not numerical)
11901
-
11902
11411
  case 'qqqqq':
11903
11412
  return localize.quarter(quarter, {
11904
11413
  width: 'narrow',
11905
11414
  context: 'standalone'
11906
11415
  });
11907
11416
  // 1st quarter, 2nd quarter, ...
11908
-
11909
11417
  case 'qqqq':
11910
11418
  default:
11911
11419
  return localize.quarter(quarter, {
@@ -11922,27 +11430,23 @@ var formatters = {
11922
11430
  case 'MM':
11923
11431
  return formatters$1.M(date, token);
11924
11432
  // 1st, 2nd, ..., 12th
11925
-
11926
11433
  case 'Mo':
11927
11434
  return localize.ordinalNumber(month + 1, {
11928
11435
  unit: 'month'
11929
11436
  });
11930
11437
  // Jan, Feb, ..., Dec
11931
-
11932
11438
  case 'MMM':
11933
11439
  return localize.month(month, {
11934
11440
  width: 'abbreviated',
11935
11441
  context: 'formatting'
11936
11442
  });
11937
11443
  // J, F, ..., D
11938
-
11939
11444
  case 'MMMMM':
11940
11445
  return localize.month(month, {
11941
11446
  width: 'narrow',
11942
11447
  context: 'formatting'
11943
11448
  });
11944
11449
  // January, February, ..., December
11945
-
11946
11450
  case 'MMMM':
11947
11451
  default:
11948
11452
  return localize.month(month, {
@@ -11959,31 +11463,26 @@ var formatters = {
11959
11463
  case 'L':
11960
11464
  return String(month + 1);
11961
11465
  // 01, 02, ..., 12
11962
-
11963
11466
  case 'LL':
11964
11467
  return addLeadingZeros(month + 1, 2);
11965
11468
  // 1st, 2nd, ..., 12th
11966
-
11967
11469
  case 'Lo':
11968
11470
  return localize.ordinalNumber(month + 1, {
11969
11471
  unit: 'month'
11970
11472
  });
11971
11473
  // Jan, Feb, ..., Dec
11972
-
11973
11474
  case 'LLL':
11974
11475
  return localize.month(month, {
11975
11476
  width: 'abbreviated',
11976
11477
  context: 'standalone'
11977
11478
  });
11978
11479
  // J, F, ..., D
11979
-
11980
11480
  case 'LLLLL':
11981
11481
  return localize.month(month, {
11982
11482
  width: 'narrow',
11983
11483
  context: 'standalone'
11984
11484
  });
11985
11485
  // January, February, ..., December
11986
-
11987
11486
  case 'LLLL':
11988
11487
  default:
11989
11488
  return localize.month(month, {
@@ -12044,21 +11543,18 @@ var formatters = {
12044
11543
  context: 'formatting'
12045
11544
  });
12046
11545
  // T
12047
-
12048
11546
  case 'EEEEE':
12049
11547
  return localize.day(dayOfWeek, {
12050
11548
  width: 'narrow',
12051
11549
  context: 'formatting'
12052
11550
  });
12053
11551
  // Tu
12054
-
12055
11552
  case 'EEEEEE':
12056
11553
  return localize.day(dayOfWeek, {
12057
11554
  width: 'short',
12058
11555
  context: 'formatting'
12059
11556
  });
12060
11557
  // Tuesday
12061
-
12062
11558
  case 'EEEE':
12063
11559
  default:
12064
11560
  return localize.day(dayOfWeek, {
@@ -12076,11 +11572,9 @@ var formatters = {
12076
11572
  case 'e':
12077
11573
  return String(localDayOfWeek);
12078
11574
  // Padded numerical value
12079
-
12080
11575
  case 'ee':
12081
11576
  return addLeadingZeros(localDayOfWeek, 2);
12082
11577
  // 1st, 2nd, ..., 7th
12083
-
12084
11578
  case 'eo':
12085
11579
  return localize.ordinalNumber(localDayOfWeek, {
12086
11580
  unit: 'day'
@@ -12091,21 +11585,18 @@ var formatters = {
12091
11585
  context: 'formatting'
12092
11586
  });
12093
11587
  // T
12094
-
12095
11588
  case 'eeeee':
12096
11589
  return localize.day(dayOfWeek, {
12097
11590
  width: 'narrow',
12098
11591
  context: 'formatting'
12099
11592
  });
12100
11593
  // Tu
12101
-
12102
11594
  case 'eeeeee':
12103
11595
  return localize.day(dayOfWeek, {
12104
11596
  width: 'short',
12105
11597
  context: 'formatting'
12106
11598
  });
12107
11599
  // Tuesday
12108
-
12109
11600
  case 'eeee':
12110
11601
  default:
12111
11602
  return localize.day(dayOfWeek, {
@@ -12123,11 +11614,9 @@ var formatters = {
12123
11614
  case 'c':
12124
11615
  return String(localDayOfWeek);
12125
11616
  // Padded numerical value
12126
-
12127
11617
  case 'cc':
12128
11618
  return addLeadingZeros(localDayOfWeek, token.length);
12129
11619
  // 1st, 2nd, ..., 7th
12130
-
12131
11620
  case 'co':
12132
11621
  return localize.ordinalNumber(localDayOfWeek, {
12133
11622
  unit: 'day'
@@ -12138,21 +11627,18 @@ var formatters = {
12138
11627
  context: 'standalone'
12139
11628
  });
12140
11629
  // T
12141
-
12142
11630
  case 'ccccc':
12143
11631
  return localize.day(dayOfWeek, {
12144
11632
  width: 'narrow',
12145
11633
  context: 'standalone'
12146
11634
  });
12147
11635
  // Tu
12148
-
12149
11636
  case 'cccccc':
12150
11637
  return localize.day(dayOfWeek, {
12151
11638
  width: 'short',
12152
11639
  context: 'standalone'
12153
11640
  });
12154
11641
  // Tuesday
12155
-
12156
11642
  case 'cccc':
12157
11643
  default:
12158
11644
  return localize.day(dayOfWeek, {
@@ -12170,38 +11656,32 @@ var formatters = {
12170
11656
  case 'i':
12171
11657
  return String(isoDayOfWeek);
12172
11658
  // 02
12173
-
12174
11659
  case 'ii':
12175
11660
  return addLeadingZeros(isoDayOfWeek, token.length);
12176
11661
  // 2nd
12177
-
12178
11662
  case 'io':
12179
11663
  return localize.ordinalNumber(isoDayOfWeek, {
12180
11664
  unit: 'day'
12181
11665
  });
12182
11666
  // Tue
12183
-
12184
11667
  case 'iii':
12185
11668
  return localize.day(dayOfWeek, {
12186
11669
  width: 'abbreviated',
12187
11670
  context: 'formatting'
12188
11671
  });
12189
11672
  // T
12190
-
12191
11673
  case 'iiiii':
12192
11674
  return localize.day(dayOfWeek, {
12193
11675
  width: 'narrow',
12194
11676
  context: 'formatting'
12195
11677
  });
12196
11678
  // Tu
12197
-
12198
11679
  case 'iiiiii':
12199
11680
  return localize.day(dayOfWeek, {
12200
11681
  width: 'short',
12201
11682
  context: 'formatting'
12202
11683
  });
12203
11684
  // Tuesday
12204
-
12205
11685
  case 'iiii':
12206
11686
  default:
12207
11687
  return localize.day(dayOfWeek, {
@@ -12217,11 +11697,15 @@ var formatters = {
12217
11697
  switch (token) {
12218
11698
  case 'a':
12219
11699
  case 'aa':
12220
- case 'aaa':
12221
11700
  return localize.dayPeriod(dayPeriodEnumValue, {
12222
11701
  width: 'abbreviated',
12223
11702
  context: 'formatting'
12224
11703
  });
11704
+ case 'aaa':
11705
+ return localize.dayPeriod(dayPeriodEnumValue, {
11706
+ width: 'abbreviated',
11707
+ context: 'formatting'
11708
+ }).toLowerCase();
12225
11709
  case 'aaaaa':
12226
11710
  return localize.dayPeriod(dayPeriodEnumValue, {
12227
11711
  width: 'narrow',
@@ -12249,11 +11733,15 @@ var formatters = {
12249
11733
  switch (token) {
12250
11734
  case 'b':
12251
11735
  case 'bb':
12252
- case 'bbb':
12253
11736
  return localize.dayPeriod(dayPeriodEnumValue, {
12254
11737
  width: 'abbreviated',
12255
11738
  context: 'formatting'
12256
11739
  });
11740
+ case 'bbb':
11741
+ return localize.dayPeriod(dayPeriodEnumValue, {
11742
+ width: 'abbreviated',
11743
+ context: 'formatting'
11744
+ }).toLowerCase();
12257
11745
  case 'bbbbb':
12258
11746
  return localize.dayPeriod(dayPeriodEnumValue, {
12259
11747
  width: 'narrow',
@@ -12375,21 +11863,20 @@ var formatters = {
12375
11863
  // Hours and optional minutes
12376
11864
  case 'X':
12377
11865
  return formatTimezoneWithOptionalMinutes(timezoneOffset);
11866
+
12378
11867
  // Hours, minutes and optional seconds without `:` delimiter
12379
11868
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
12380
11869
  // so this token always has the same output as `XX`
12381
-
12382
11870
  case 'XXXX':
12383
11871
  case 'XX':
12384
11872
  // Hours and minutes without `:` delimiter
12385
11873
  return formatTimezone(timezoneOffset);
11874
+
12386
11875
  // Hours, minutes and optional seconds with `:` delimiter
12387
11876
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
12388
11877
  // so this token always has the same output as `XXX`
12389
-
12390
11878
  case 'XXXXX':
12391
11879
  case 'XXX': // Hours and minutes with `:` delimiter
12392
-
12393
11880
  default:
12394
11881
  return formatTimezone(timezoneOffset, ':');
12395
11882
  }
@@ -12402,21 +11889,20 @@ var formatters = {
12402
11889
  // Hours and optional minutes
12403
11890
  case 'x':
12404
11891
  return formatTimezoneWithOptionalMinutes(timezoneOffset);
11892
+
12405
11893
  // Hours, minutes and optional seconds without `:` delimiter
12406
11894
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
12407
11895
  // so this token always has the same output as `xx`
12408
-
12409
11896
  case 'xxxx':
12410
11897
  case 'xx':
12411
11898
  // Hours and minutes without `:` delimiter
12412
11899
  return formatTimezone(timezoneOffset);
11900
+
12413
11901
  // Hours, minutes and optional seconds with `:` delimiter
12414
11902
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
12415
11903
  // so this token always has the same output as `xxx`
12416
-
12417
11904
  case 'xxxxx':
12418
11905
  case 'xxx': // Hours and minutes with `:` delimiter
12419
-
12420
11906
  default:
12421
11907
  return formatTimezone(timezoneOffset, ':');
12422
11908
  }
@@ -12432,7 +11918,6 @@ var formatters = {
12432
11918
  case 'OOO':
12433
11919
  return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
12434
11920
  // Long
12435
-
12436
11921
  case 'OOOO':
12437
11922
  default:
12438
11923
  return 'GMT' + formatTimezone(timezoneOffset, ':');
@@ -12449,7 +11934,6 @@ var formatters = {
12449
11934
  case 'zzz':
12450
11935
  return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
12451
11936
  // Long
12452
-
12453
11937
  case 'zzzz':
12454
11938
  default:
12455
11939
  return 'GMT' + formatTimezone(timezoneOffset, ':');
@@ -12495,7 +11979,7 @@ function formatTimezone(offset, dirtyDelimiter) {
12495
11979
  return sign + hours + delimiter + minutes;
12496
11980
  }
12497
11981
 
12498
- function dateLongFormatter(pattern, formatLong) {
11982
+ var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
12499
11983
  switch (pattern) {
12500
11984
  case 'P':
12501
11985
  return formatLong.date({
@@ -12515,8 +11999,8 @@ function dateLongFormatter(pattern, formatLong) {
12515
11999
  width: 'full'
12516
12000
  });
12517
12001
  }
12518
- }
12519
- function timeLongFormatter(pattern, formatLong) {
12002
+ };
12003
+ var timeLongFormatter = function timeLongFormatter(pattern, formatLong) {
12520
12004
  switch (pattern) {
12521
12005
  case 'p':
12522
12006
  return formatLong.time({
@@ -12536,9 +12020,9 @@ function timeLongFormatter(pattern, formatLong) {
12536
12020
  width: 'full'
12537
12021
  });
12538
12022
  }
12539
- }
12540
- function dateTimeLongFormatter(pattern, formatLong) {
12541
- var matchResult = pattern.match(/(P+)(p+)?/);
12023
+ };
12024
+ var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) {
12025
+ var matchResult = pattern.match(/(P+)(p+)?/) || [];
12542
12026
  var datePattern = matchResult[1];
12543
12027
  var timePattern = matchResult[2];
12544
12028
  if (!timePattern) {
@@ -12569,16 +12053,12 @@ function dateTimeLongFormatter(pattern, formatLong) {
12569
12053
  break;
12570
12054
  }
12571
12055
  return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong));
12572
- }
12056
+ };
12573
12057
  var longFormatters = {
12574
12058
  p: timeLongFormatter,
12575
12059
  P: dateTimeLongFormatter
12576
12060
  };
12577
12061
 
12578
- var MILLISECONDS_IN_MINUTE = 60000;
12579
- function getDateMillisecondsPart(date) {
12580
- return date.getTime() % MILLISECONDS_IN_MINUTE;
12581
- }
12582
12062
  /**
12583
12063
  * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
12584
12064
  * They usually appear for dates that denote time before the timezones were introduced
@@ -12590,14 +12070,10 @@ function getDateMillisecondsPart(date) {
12590
12070
  *
12591
12071
  * This function returns the timezone offset in milliseconds that takes seconds in account.
12592
12072
  */
12593
-
12594
- function getTimezoneOffsetInMilliseconds(dirtyDate) {
12595
- var date = new Date(dirtyDate.getTime());
12596
- var baseTimezoneOffset = Math.ceil(date.getTimezoneOffset());
12597
- date.setSeconds(0, 0);
12598
- var hasNegativeUTCOffset = baseTimezoneOffset > 0;
12599
- var millisecondsPartOfTimezoneOffset = hasNegativeUTCOffset ? (MILLISECONDS_IN_MINUTE + getDateMillisecondsPart(date)) % MILLISECONDS_IN_MINUTE : getDateMillisecondsPart(date);
12600
- return baseTimezoneOffset * MILLISECONDS_IN_MINUTE + millisecondsPartOfTimezoneOffset;
12073
+ function getTimezoneOffsetInMilliseconds(date) {
12074
+ var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
12075
+ utcDate.setUTCFullYear(date.getFullYear());
12076
+ return date.getTime() - utcDate.getTime();
12601
12077
  }
12602
12078
 
12603
12079
  var protectedDayOfYearTokens = ['D', 'DD'];
@@ -12610,16 +12086,494 @@ function isProtectedWeekYearToken(token) {
12610
12086
  }
12611
12087
  function throwProtectedError(token, format, input) {
12612
12088
  if (token === 'YYYY') {
12613
- throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://git.io/fxCyr"));
12089
+ 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"));
12614
12090
  } else if (token === 'YY') {
12615
- throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://git.io/fxCyr"));
12091
+ 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"));
12616
12092
  } else if (token === 'D') {
12617
- 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"));
12093
+ 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"));
12618
12094
  } else if (token === 'DD') {
12619
- 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"));
12095
+ 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"));
12096
+ }
12097
+ }
12098
+
12099
+ var formatDistanceLocale$1 = {
12100
+ lessThanXSeconds: {
12101
+ one: 'less than a second',
12102
+ other: 'less than {{count}} seconds'
12103
+ },
12104
+ xSeconds: {
12105
+ one: '1 second',
12106
+ other: '{{count}} seconds'
12107
+ },
12108
+ halfAMinute: 'half a minute',
12109
+ lessThanXMinutes: {
12110
+ one: 'less than a minute',
12111
+ other: 'less than {{count}} minutes'
12112
+ },
12113
+ xMinutes: {
12114
+ one: '1 minute',
12115
+ other: '{{count}} minutes'
12116
+ },
12117
+ aboutXHours: {
12118
+ one: 'about 1 hour',
12119
+ other: 'about {{count}} hours'
12120
+ },
12121
+ xHours: {
12122
+ one: '1 hour',
12123
+ other: '{{count}} hours'
12124
+ },
12125
+ xDays: {
12126
+ one: '1 day',
12127
+ other: '{{count}} days'
12128
+ },
12129
+ aboutXWeeks: {
12130
+ one: 'about 1 week',
12131
+ other: 'about {{count}} weeks'
12132
+ },
12133
+ xWeeks: {
12134
+ one: '1 week',
12135
+ other: '{{count}} weeks'
12136
+ },
12137
+ aboutXMonths: {
12138
+ one: 'about 1 month',
12139
+ other: 'about {{count}} months'
12140
+ },
12141
+ xMonths: {
12142
+ one: '1 month',
12143
+ other: '{{count}} months'
12144
+ },
12145
+ aboutXYears: {
12146
+ one: 'about 1 year',
12147
+ other: 'about {{count}} years'
12148
+ },
12149
+ xYears: {
12150
+ one: '1 year',
12151
+ other: '{{count}} years'
12152
+ },
12153
+ overXYears: {
12154
+ one: 'over 1 year',
12155
+ other: 'over {{count}} years'
12156
+ },
12157
+ almostXYears: {
12158
+ one: 'almost 1 year',
12159
+ other: 'almost {{count}} years'
12160
+ }
12161
+ };
12162
+ var formatDistance$1 = function formatDistance(token, count, options) {
12163
+ var result;
12164
+ var tokenValue = formatDistanceLocale$1[token];
12165
+ if (typeof tokenValue === 'string') {
12166
+ result = tokenValue;
12167
+ } else if (count === 1) {
12168
+ result = tokenValue.one;
12169
+ } else {
12170
+ result = tokenValue.other.replace('{{count}}', count.toString());
12171
+ }
12172
+ if (options !== null && options !== void 0 && options.addSuffix) {
12173
+ if (options.comparison && options.comparison > 0) {
12174
+ return 'in ' + result;
12175
+ } else {
12176
+ return result + ' ago';
12177
+ }
12178
+ }
12179
+ return result;
12180
+ };
12181
+
12182
+ function buildFormatLongFn(args) {
12183
+ return function () {
12184
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
12185
+ // TODO: Remove String()
12186
+ var width = options.width ? String(options.width) : args.defaultWidth;
12187
+ var format = args.formats[width] || args.formats[args.defaultWidth];
12188
+ return format;
12189
+ };
12190
+ }
12191
+
12192
+ var dateFormats$2 = {
12193
+ full: 'EEEE, MMMM do, y',
12194
+ "long": 'MMMM do, y',
12195
+ medium: 'MMM d, y',
12196
+ "short": 'MM/dd/yyyy'
12197
+ };
12198
+ var timeFormats$2 = {
12199
+ full: 'h:mm:ss a zzzz',
12200
+ "long": 'h:mm:ss a z',
12201
+ medium: 'h:mm:ss a',
12202
+ "short": 'h:mm a'
12203
+ };
12204
+ var dateTimeFormats$2 = {
12205
+ full: "{{date}} 'at' {{time}}",
12206
+ "long": "{{date}} 'at' {{time}}",
12207
+ medium: '{{date}}, {{time}}',
12208
+ "short": '{{date}}, {{time}}'
12209
+ };
12210
+ var formatLong$2 = {
12211
+ date: buildFormatLongFn({
12212
+ formats: dateFormats$2,
12213
+ defaultWidth: 'full'
12214
+ }),
12215
+ time: buildFormatLongFn({
12216
+ formats: timeFormats$2,
12217
+ defaultWidth: 'full'
12218
+ }),
12219
+ dateTime: buildFormatLongFn({
12220
+ formats: dateTimeFormats$2,
12221
+ defaultWidth: 'full'
12222
+ })
12223
+ };
12224
+
12225
+ var formatRelativeLocale = {
12226
+ lastWeek: "'last' eeee 'at' p",
12227
+ yesterday: "'yesterday at' p",
12228
+ today: "'today at' p",
12229
+ tomorrow: "'tomorrow at' p",
12230
+ nextWeek: "eeee 'at' p",
12231
+ other: 'P'
12232
+ };
12233
+ var formatRelative = function formatRelative(token, _date, _baseDate, _options) {
12234
+ return formatRelativeLocale[token];
12235
+ };
12236
+
12237
+ function buildLocalizeFn(args) {
12238
+ return function (dirtyIndex, options) {
12239
+ var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone';
12240
+ var valuesArray;
12241
+ if (context === 'formatting' && args.formattingValues) {
12242
+ var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
12243
+ var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
12244
+ valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
12245
+ } else {
12246
+ var _defaultWidth = args.defaultWidth;
12247
+ var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
12248
+ valuesArray = args.values[_width] || args.values[_defaultWidth];
12249
+ }
12250
+ var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;
12251
+ // @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!
12252
+ return valuesArray[index];
12253
+ };
12254
+ }
12255
+
12256
+ var eraValues = {
12257
+ narrow: ['B', 'A'],
12258
+ abbreviated: ['BC', 'AD'],
12259
+ wide: ['Before Christ', 'Anno Domini']
12260
+ };
12261
+ var quarterValues = {
12262
+ narrow: ['1', '2', '3', '4'],
12263
+ abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
12264
+ wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
12265
+ };
12266
+
12267
+ // Note: in English, the names of days of the week and months are capitalized.
12268
+ // If you are making a new locale based on this one, check if the same is true for the language you're working on.
12269
+ // Generally, formatted dates should look like they are in the middle of a sentence,
12270
+ // e.g. in Spanish language the weekdays and months should be in the lowercase.
12271
+ var monthValues = {
12272
+ narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
12273
+ abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
12274
+ wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
12275
+ };
12276
+ var dayValues = {
12277
+ narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
12278
+ "short": ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
12279
+ abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
12280
+ wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
12281
+ };
12282
+ var dayPeriodValues = {
12283
+ narrow: {
12284
+ am: 'a',
12285
+ pm: 'p',
12286
+ midnight: 'mi',
12287
+ noon: 'n',
12288
+ morning: 'morning',
12289
+ afternoon: 'afternoon',
12290
+ evening: 'evening',
12291
+ night: 'night'
12292
+ },
12293
+ abbreviated: {
12294
+ am: 'AM',
12295
+ pm: 'PM',
12296
+ midnight: 'midnight',
12297
+ noon: 'noon',
12298
+ morning: 'morning',
12299
+ afternoon: 'afternoon',
12300
+ evening: 'evening',
12301
+ night: 'night'
12302
+ },
12303
+ wide: {
12304
+ am: 'a.m.',
12305
+ pm: 'p.m.',
12306
+ midnight: 'midnight',
12307
+ noon: 'noon',
12308
+ morning: 'morning',
12309
+ afternoon: 'afternoon',
12310
+ evening: 'evening',
12311
+ night: 'night'
12312
+ }
12313
+ };
12314
+ var formattingDayPeriodValues = {
12315
+ narrow: {
12316
+ am: 'a',
12317
+ pm: 'p',
12318
+ midnight: 'mi',
12319
+ noon: 'n',
12320
+ morning: 'in the morning',
12321
+ afternoon: 'in the afternoon',
12322
+ evening: 'in the evening',
12323
+ night: 'at night'
12324
+ },
12325
+ abbreviated: {
12326
+ am: 'AM',
12327
+ pm: 'PM',
12328
+ midnight: 'midnight',
12329
+ noon: 'noon',
12330
+ morning: 'in the morning',
12331
+ afternoon: 'in the afternoon',
12332
+ evening: 'in the evening',
12333
+ night: 'at night'
12334
+ },
12335
+ wide: {
12336
+ am: 'a.m.',
12337
+ pm: 'p.m.',
12338
+ midnight: 'midnight',
12339
+ noon: 'noon',
12340
+ morning: 'in the morning',
12341
+ afternoon: 'in the afternoon',
12342
+ evening: 'in the evening',
12343
+ night: 'at night'
12344
+ }
12345
+ };
12346
+ var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
12347
+ var number = Number(dirtyNumber);
12348
+
12349
+ // If ordinal numbers depend on context, for example,
12350
+ // if they are different for different grammatical genders,
12351
+ // use `options.unit`.
12352
+ //
12353
+ // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
12354
+ // 'day', 'hour', 'minute', 'second'.
12355
+
12356
+ var rem100 = number % 100;
12357
+ if (rem100 > 20 || rem100 < 10) {
12358
+ switch (rem100 % 10) {
12359
+ case 1:
12360
+ return number + 'st';
12361
+ case 2:
12362
+ return number + 'nd';
12363
+ case 3:
12364
+ return number + 'rd';
12365
+ }
12366
+ }
12367
+ return number + 'th';
12368
+ };
12369
+ var localize = {
12370
+ ordinalNumber: ordinalNumber,
12371
+ era: buildLocalizeFn({
12372
+ values: eraValues,
12373
+ defaultWidth: 'wide'
12374
+ }),
12375
+ quarter: buildLocalizeFn({
12376
+ values: quarterValues,
12377
+ defaultWidth: 'wide',
12378
+ argumentCallback: function argumentCallback(quarter) {
12379
+ return quarter - 1;
12380
+ }
12381
+ }),
12382
+ month: buildLocalizeFn({
12383
+ values: monthValues,
12384
+ defaultWidth: 'wide'
12385
+ }),
12386
+ day: buildLocalizeFn({
12387
+ values: dayValues,
12388
+ defaultWidth: 'wide'
12389
+ }),
12390
+ dayPeriod: buildLocalizeFn({
12391
+ values: dayPeriodValues,
12392
+ defaultWidth: 'wide',
12393
+ formattingValues: formattingDayPeriodValues,
12394
+ defaultFormattingWidth: 'wide'
12395
+ })
12396
+ };
12397
+
12398
+ function buildMatchFn(args) {
12399
+ return function (string) {
12400
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
12401
+ var width = options.width;
12402
+ var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
12403
+ var matchResult = string.match(matchPattern);
12404
+ if (!matchResult) {
12405
+ return null;
12406
+ }
12407
+ var matchedString = matchResult[0];
12408
+ var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
12409
+ var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {
12410
+ return pattern.test(matchedString);
12411
+ }) : findKey(parsePatterns, function (pattern) {
12412
+ return pattern.test(matchedString);
12413
+ });
12414
+ var value;
12415
+ value = args.valueCallback ? args.valueCallback(key) : key;
12416
+ value = options.valueCallback ? options.valueCallback(value) : value;
12417
+ var rest = string.slice(matchedString.length);
12418
+ return {
12419
+ value: value,
12420
+ rest: rest
12421
+ };
12422
+ };
12423
+ }
12424
+ function findKey(object, predicate) {
12425
+ for (var key in object) {
12426
+ if (object.hasOwnProperty(key) && predicate(object[key])) {
12427
+ return key;
12428
+ }
12429
+ }
12430
+ return undefined;
12431
+ }
12432
+ function findIndex(array, predicate) {
12433
+ for (var key = 0; key < array.length; key++) {
12434
+ if (predicate(array[key])) {
12435
+ return key;
12436
+ }
12620
12437
  }
12438
+ return undefined;
12439
+ }
12440
+
12441
+ function buildMatchPatternFn(args) {
12442
+ return function (string) {
12443
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
12444
+ var matchResult = string.match(args.matchPattern);
12445
+ if (!matchResult) return null;
12446
+ var matchedString = matchResult[0];
12447
+ var parseResult = string.match(args.parsePattern);
12448
+ if (!parseResult) return null;
12449
+ var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
12450
+ value = options.valueCallback ? options.valueCallback(value) : value;
12451
+ var rest = string.slice(matchedString.length);
12452
+ return {
12453
+ value: value,
12454
+ rest: rest
12455
+ };
12456
+ };
12621
12457
  }
12622
12458
 
12459
+ var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
12460
+ var parseOrdinalNumberPattern = /\d+/i;
12461
+ var matchEraPatterns = {
12462
+ narrow: /^(b|a)/i,
12463
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
12464
+ wide: /^(before christ|before common era|anno domini|common era)/i
12465
+ };
12466
+ var parseEraPatterns = {
12467
+ any: [/^b/i, /^(a|c)/i]
12468
+ };
12469
+ var matchQuarterPatterns = {
12470
+ narrow: /^[1234]/i,
12471
+ abbreviated: /^q[1234]/i,
12472
+ wide: /^[1234](th|st|nd|rd)? quarter/i
12473
+ };
12474
+ var parseQuarterPatterns = {
12475
+ any: [/1/i, /2/i, /3/i, /4/i]
12476
+ };
12477
+ var matchMonthPatterns = {
12478
+ narrow: /^[jfmasond]/i,
12479
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
12480
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
12481
+ };
12482
+ var parseMonthPatterns = {
12483
+ 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],
12484
+ 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]
12485
+ };
12486
+ var matchDayPatterns = {
12487
+ narrow: /^[smtwf]/i,
12488
+ "short": /^(su|mo|tu|we|th|fr|sa)/i,
12489
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
12490
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
12491
+ };
12492
+ var parseDayPatterns = {
12493
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
12494
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
12495
+ };
12496
+ var matchDayPeriodPatterns = {
12497
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
12498
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
12499
+ };
12500
+ var parseDayPeriodPatterns = {
12501
+ any: {
12502
+ am: /^a/i,
12503
+ pm: /^p/i,
12504
+ midnight: /^mi/i,
12505
+ noon: /^no/i,
12506
+ morning: /morning/i,
12507
+ afternoon: /afternoon/i,
12508
+ evening: /evening/i,
12509
+ night: /night/i
12510
+ }
12511
+ };
12512
+ var match = {
12513
+ ordinalNumber: buildMatchPatternFn({
12514
+ matchPattern: matchOrdinalNumberPattern,
12515
+ parsePattern: parseOrdinalNumberPattern,
12516
+ valueCallback: function valueCallback(value) {
12517
+ return parseInt(value, 10);
12518
+ }
12519
+ }),
12520
+ era: buildMatchFn({
12521
+ matchPatterns: matchEraPatterns,
12522
+ defaultMatchWidth: 'wide',
12523
+ parsePatterns: parseEraPatterns,
12524
+ defaultParseWidth: 'any'
12525
+ }),
12526
+ quarter: buildMatchFn({
12527
+ matchPatterns: matchQuarterPatterns,
12528
+ defaultMatchWidth: 'wide',
12529
+ parsePatterns: parseQuarterPatterns,
12530
+ defaultParseWidth: 'any',
12531
+ valueCallback: function valueCallback(index) {
12532
+ return index + 1;
12533
+ }
12534
+ }),
12535
+ month: buildMatchFn({
12536
+ matchPatterns: matchMonthPatterns,
12537
+ defaultMatchWidth: 'wide',
12538
+ parsePatterns: parseMonthPatterns,
12539
+ defaultParseWidth: 'any'
12540
+ }),
12541
+ day: buildMatchFn({
12542
+ matchPatterns: matchDayPatterns,
12543
+ defaultMatchWidth: 'wide',
12544
+ parsePatterns: parseDayPatterns,
12545
+ defaultParseWidth: 'any'
12546
+ }),
12547
+ dayPeriod: buildMatchFn({
12548
+ matchPatterns: matchDayPeriodPatterns,
12549
+ defaultMatchWidth: 'any',
12550
+ parsePatterns: parseDayPeriodPatterns,
12551
+ defaultParseWidth: 'any'
12552
+ })
12553
+ };
12554
+
12555
+ /**
12556
+ * @type {Locale}
12557
+ * @category Locales
12558
+ * @summary English locale (United States).
12559
+ * @language English
12560
+ * @iso-639-2 eng
12561
+ * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
12562
+ * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
12563
+ */
12564
+ var locale$4 = {
12565
+ code: 'en-US',
12566
+ formatDistance: formatDistance$1,
12567
+ formatLong: formatLong$2,
12568
+ formatRelative: formatRelative,
12569
+ localize: localize,
12570
+ match: match,
12571
+ options: {
12572
+ weekStartsOn: 0 /* Sunday */,
12573
+ firstWeekContainsDate: 1
12574
+ }
12575
+ };
12576
+
12623
12577
  // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
12624
12578
  // (one of the certain letters followed by `o`)
12625
12579
  // - (\w)\1* matches any sequences of the same letter
@@ -12630,14 +12584,15 @@ function throwProtectedError(token, format, input) {
12630
12584
  // If there is no matching single quote
12631
12585
  // then the sequence will continue until the end of the string.
12632
12586
  // - . matches any single character unmatched by previous parts of the RegExps
12587
+ var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
12633
12588
 
12634
- var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
12589
+ // This RegExp catches symbols escaped by quotes, and also
12635
12590
  // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
12636
-
12637
12591
  var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
12638
12592
  var escapedStringRegExp = /^'([^]*?)'?$/;
12639
12593
  var doubleQuoteRegExp = /''/g;
12640
12594
  var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
12595
+
12641
12596
  /**
12642
12597
  * @name format
12643
12598
  * @category Common Helpers
@@ -12647,7 +12602,7 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
12647
12602
  * Return the formatted date string in the given format. The result may vary by locale.
12648
12603
  *
12649
12604
  * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
12650
- * > See: https://git.io/fxCyr
12605
+ * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
12651
12606
  *
12652
12607
  * The characters wrapped between two single quotes characters (') are escaped.
12653
12608
  * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
@@ -12726,32 +12681,34 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
12726
12681
  * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |
12727
12682
  * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
12728
12683
  * | | EEEEE | M, T, W, T, F, S, S | |
12729
- * | | EEEEEE | Mo, Tu, We, Th, Fr, Su, Sa | |
12684
+ * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
12730
12685
  * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |
12731
12686
  * | | io | 1st, 2nd, ..., 7th | 7 |
12732
12687
  * | | ii | 01, 02, ..., 07 | 7 |
12733
12688
  * | | iii | Mon, Tue, Wed, ..., Sun | 7 |
12734
12689
  * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |
12735
12690
  * | | iiiii | M, T, W, T, F, S, S | 7 |
12736
- * | | iiiiii | Mo, Tu, We, Th, Fr, Su, Sa | 7 |
12691
+ * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |
12737
12692
  * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |
12738
12693
  * | | eo | 2nd, 3rd, ..., 1st | 7 |
12739
12694
  * | | ee | 02, 03, ..., 01 | |
12740
12695
  * | | eee | Mon, Tue, Wed, ..., Sun | |
12741
12696
  * | | eeee | Monday, Tuesday, ..., Sunday | 2 |
12742
12697
  * | | eeeee | M, T, W, T, F, S, S | |
12743
- * | | eeeeee | Mo, Tu, We, Th, Fr, Su, Sa | |
12698
+ * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
12744
12699
  * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |
12745
12700
  * | | co | 2nd, 3rd, ..., 1st | 7 |
12746
12701
  * | | cc | 02, 03, ..., 01 | |
12747
12702
  * | | ccc | Mon, Tue, Wed, ..., Sun | |
12748
12703
  * | | cccc | Monday, Tuesday, ..., Sunday | 2 |
12749
12704
  * | | ccccc | M, T, W, T, F, S, S | |
12750
- * | | cccccc | Mo, Tu, We, Th, Fr, Su, Sa | |
12751
- * | AM, PM | a..aaa | AM, PM | |
12705
+ * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
12706
+ * | AM, PM | a..aa | AM, PM | |
12707
+ * | | aaa | am, pm | |
12752
12708
  * | | aaaa | a.m., p.m. | 2 |
12753
12709
  * | | aaaaa | a, p | |
12754
- * | AM, PM, noon, midnight | b..bbb | AM, PM, noon, midnight | |
12710
+ * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |
12711
+ * | | bbb | am, pm, noon, midnight | |
12755
12712
  * | | bbbb | a.m., p.m., noon, midnight | 2 |
12756
12713
  * | | bbbbb | a, p, n, mi | |
12757
12714
  * | Flexible day period | B..BBB | at night, in the morning, ... | |
@@ -12777,7 +12734,7 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
12777
12734
  * | | ss | 00, 01, ..., 59 | |
12778
12735
  * | Fraction of second | S | 0, 1, ..., 9 | |
12779
12736
  * | | SS | 00, 01, ..., 99 | |
12780
- * | | SSS | 000, 0001, ..., 999 | |
12737
+ * | | SSS | 000, 001, ..., 999 | |
12781
12738
  * | | SSSS | ... | 3 |
12782
12739
  * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |
12783
12740
  * | | XX | -0800, +0530, Z | |
@@ -12797,18 +12754,18 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
12797
12754
  * | | tt | ... | 3,7 |
12798
12755
  * | Milliseconds timestamp | T | 512969520900 | 7 |
12799
12756
  * | | TT | ... | 3,7 |
12800
- * | Long localized date | P | 05/29/1453 | 7 |
12801
- * | | PP | May 29, 1453 | 7 |
12802
- * | | PPP | May 29th, 1453 | 7 |
12803
- * | | PPPP | Sunday, May 29th, 1453 | 2,7 |
12757
+ * | Long localized date | P | 04/29/1453 | 7 |
12758
+ * | | PP | Apr 29, 1453 | 7 |
12759
+ * | | PPP | April 29th, 1453 | 7 |
12760
+ * | | PPPP | Friday, April 29th, 1453 | 2,7 |
12804
12761
  * | Long localized time | p | 12:00 AM | 7 |
12805
12762
  * | | pp | 12:00:00 AM | 7 |
12806
12763
  * | | ppp | 12:00:00 AM GMT+2 | 7 |
12807
12764
  * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |
12808
- * | Combination of date and time | Pp | 05/29/1453, 12:00 AM | 7 |
12809
- * | | PPpp | May 29, 1453, 12:00:00 AM | 7 |
12810
- * | | PPPppp | May 29th, 1453 at ... | 7 |
12811
- * | | PPPPpppp| Sunday, May 29th, 1453 at ... | 2,7 |
12765
+ * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |
12766
+ * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |
12767
+ * | | PPPppp | April 29th, 1453 at ... | 7 |
12768
+ * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |
12812
12769
  * Notes:
12813
12770
  * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
12814
12771
  * are the same as "stand-alone" units, but are different in some languages.
@@ -12881,30 +12838,10 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
12881
12838
  * - `p`: long localized time
12882
12839
  *
12883
12840
  * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
12884
- * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr
12885
- *
12886
- * 9. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.
12887
- * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr
12888
- *
12889
- * ### v2.0.0 breaking changes:
12890
- *
12891
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
12841
+ * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
12892
12842
  *
12893
- * - The second argument is now required for the sake of explicitness.
12894
- *
12895
- * ```javascript
12896
- * // Before v2.0.0
12897
- * format(new Date(2016, 0, 1))
12898
- *
12899
- * // v2.0.0 onward
12900
- * format(new Date(2016, 0, 1), "yyyy-MM-dd'T'HH:mm:ss.SSSxxx")
12901
- * ```
12902
- *
12903
- * - New format string API for `format` function
12904
- * which is based on [Unicode Technical Standard #35](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table).
12905
- * See [this post](https://blog.date-fns.org/post/unicode-tokens-in-date-fns-v2-sreatyki91jg) for more details.
12906
- *
12907
- * - Characters are now escaped using single quote symbols (`'`) instead of square brackets.
12843
+ * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
12844
+ * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
12908
12845
  *
12909
12846
  * @param {Date|Number} date - the original date
12910
12847
  * @param {String} format - the string of tokens
@@ -12913,9 +12850,9 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
12913
12850
  * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
12914
12851
  * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is
12915
12852
  * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
12916
- * see: https://git.io/fxCyr
12853
+ * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
12917
12854
  * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
12918
- * see: https://git.io/fxCyr
12855
+ * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
12919
12856
  * @returns {String} the formatted date string
12920
12857
  * @throws {TypeError} 2 arguments required
12921
12858
  * @throws {RangeError} `date` must not be Invalid Date
@@ -12923,76 +12860,76 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
12923
12860
  * @throws {RangeError} `options.locale` must contain `formatLong` property
12924
12861
  * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
12925
12862
  * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
12926
- * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
12927
- * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
12928
- * @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
12929
- * @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
12863
+ * @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
12864
+ * @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
12865
+ * @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
12866
+ * @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
12930
12867
  * @throws {RangeError} format string contains an unescaped latin alphabet character
12931
12868
  *
12932
12869
  * @example
12933
12870
  * // Represent 11 February 2014 in middle-endian format:
12934
- * var result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')
12871
+ * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')
12935
12872
  * //=> '02/11/2014'
12936
12873
  *
12937
12874
  * @example
12938
12875
  * // Represent 2 July 2014 in Esperanto:
12939
12876
  * import { eoLocale } from 'date-fns/locale/eo'
12940
- * var result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", {
12877
+ * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", {
12941
12878
  * locale: eoLocale
12942
12879
  * })
12943
12880
  * //=> '2-a de julio 2014'
12944
12881
  *
12945
12882
  * @example
12946
12883
  * // Escape string by single quote characters:
12947
- * var result = format(new Date(2014, 6, 2, 15), "h 'o''clock'")
12884
+ * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'")
12948
12885
  * //=> "3 o'clock"
12949
12886
  */
12950
12887
 
12951
- function format$1(dirtyDate, dirtyFormatStr, dirtyOptions) {
12888
+ function format(dirtyDate, dirtyFormatStr, options) {
12889
+ 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;
12952
12890
  requiredArgs(2, arguments);
12953
12891
  var formatStr = String(dirtyFormatStr);
12954
- var options = dirtyOptions || {};
12955
- var locale$1 = options.locale || locale;
12956
- var localeFirstWeekContainsDate = locale$1.options && locale$1.options.firstWeekContainsDate;
12957
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
12958
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
12892
+ var defaultOptions = getDefaultOptions();
12893
+ 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 : locale$4;
12894
+ 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);
12959
12895
 
12896
+ // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
12960
12897
  if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
12961
12898
  throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
12962
12899
  }
12963
- var localeWeekStartsOn = locale$1.options && locale$1.options.weekStartsOn;
12964
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);
12965
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
12900
+ 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);
12966
12901
 
12902
+ // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
12967
12903
  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
12968
12904
  throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
12969
12905
  }
12970
- if (!locale$1.localize) {
12906
+ if (!locale.localize) {
12971
12907
  throw new RangeError('locale must contain localize property');
12972
12908
  }
12973
- if (!locale$1.formatLong) {
12909
+ if (!locale.formatLong) {
12974
12910
  throw new RangeError('locale must contain formatLong property');
12975
12911
  }
12976
12912
  var originalDate = toDate(dirtyDate);
12977
12913
  if (!isValid(originalDate)) {
12978
12914
  throw new RangeError('Invalid time value');
12979
- } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
12915
+ }
12916
+
12917
+ // Convert the date in system timezone to the same date in UTC+00:00 timezone.
12980
12918
  // This ensures that when UTC functions will be implemented, locales will be compatible with them.
12981
12919
  // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376
12982
-
12983
12920
  var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);
12984
12921
  var utcDate = subMilliseconds(originalDate, timezoneOffset);
12985
12922
  var formatterOptions = {
12986
12923
  firstWeekContainsDate: firstWeekContainsDate,
12987
12924
  weekStartsOn: weekStartsOn,
12988
- locale: locale$1,
12925
+ locale: locale,
12989
12926
  _originalDate: originalDate
12990
12927
  };
12991
12928
  var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {
12992
12929
  var firstCharacter = substring[0];
12993
12930
  if (firstCharacter === 'p' || firstCharacter === 'P') {
12994
12931
  var longFormatter = longFormatters[firstCharacter];
12995
- return longFormatter(substring, locale$1.formatLong, formatterOptions);
12932
+ return longFormatter(substring, locale.formatLong);
12996
12933
  }
12997
12934
  return substring;
12998
12935
  }).join('').match(formattingTokensRegExp).map(function (substring) {
@@ -13006,13 +12943,13 @@ function format$1(dirtyDate, dirtyFormatStr, dirtyOptions) {
13006
12943
  }
13007
12944
  var formatter = formatters[firstCharacter];
13008
12945
  if (formatter) {
13009
- if (!options.useAdditionalWeekYearTokens && isProtectedWeekYearToken(substring)) {
13010
- throwProtectedError(substring, dirtyFormatStr, dirtyDate);
12946
+ if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {
12947
+ throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
13011
12948
  }
13012
- if (!options.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken(substring)) {
13013
- throwProtectedError(substring, dirtyFormatStr, dirtyDate);
12949
+ if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {
12950
+ throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
13014
12951
  }
13015
- return formatter(utcDate, substring, locale$1.localize, formatterOptions);
12952
+ return formatter(utcDate, substring, locale.localize, formatterOptions);
13016
12953
  }
13017
12954
  if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
13018
12955
  throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
@@ -13022,22 +12959,28 @@ function format$1(dirtyDate, dirtyFormatStr, dirtyOptions) {
13022
12959
  return result;
13023
12960
  }
13024
12961
  function cleanEscapedString(input) {
13025
- return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
12962
+ var matched = input.match(escapedStringRegExp);
12963
+ if (!matched) {
12964
+ return input;
12965
+ }
12966
+ return matched[1].replace(doubleQuoteRegExp, "'");
13026
12967
  }
13027
12968
 
13028
- function convertToFP(fn, arity, a) {
13029
- a = a || [];
12969
+ function convertToFP(fn, arity) {
12970
+ var a = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
13030
12971
  if (a.length >= arity) {
13031
12972
  return fn.apply(null, a.slice(0, arity).reverse());
13032
12973
  }
13033
12974
  return function () {
13034
- var args = Array.prototype.slice.call(arguments);
12975
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
12976
+ args[_key] = arguments[_key];
12977
+ }
13035
12978
  return convertToFP(fn, arity, a.concat(args));
13036
12979
  };
13037
12980
  }
13038
12981
 
13039
- // This file is generated automatically by `scripts/build/fp.js`. Please, don't change it.
13040
- var format = convertToFP(format$1, 2);
12982
+ // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it.
12983
+ var formatTime = convertToFP(format, 2);
13041
12984
 
13042
12985
  var Wrapper = index$a(View)(function () {
13043
12986
  return {
@@ -13457,7 +13400,7 @@ var CalendarRange = function CalendarRange(_ref) {
13457
13400
  return /*#__PURE__*/React__default.createElement(StyledContainer$7, {
13458
13401
  testID: testID
13459
13402
  }, /*#__PURE__*/React__default.createElement(StyledCalendarHeader, null, /*#__PURE__*/React__default.createElement(ContentNavigator, {
13460
- value: !useMonthPicker ? format('MMMM yyyy', visibleDate) : /*#__PURE__*/React__default.createElement(TouchableOpacity, {
13403
+ value: !useMonthPicker ? formatTime('MMMM yyyy', visibleDate) : /*#__PURE__*/React__default.createElement(TouchableOpacity, {
13461
13404
  testID: "calendar-month-picker",
13462
13405
  onPress: function onPress() {
13463
13406
  onToggleMonthPicker === null || onToggleMonthPicker === void 0 || onToggleMonthPicker(!monthPickerVisible);
@@ -13473,7 +13416,7 @@ var CalendarRange = function CalendarRange(_ref) {
13473
13416
  textAlign: 'center',
13474
13417
  marginRight: theme.__hd__.calendar.space.headerMarginRight
13475
13418
  }
13476
- }, format('MMMM yyyy', visibleDate)), /*#__PURE__*/React__default.createElement(Icon, {
13419
+ }, formatTime('MMMM yyyy', visibleDate)), /*#__PURE__*/React__default.createElement(Icon, {
13477
13420
  icon: monthPickerVisible ? 'arrow-up' : 'arrow-down',
13478
13421
  size: "small"
13479
13422
  }))),
@@ -13624,7 +13567,7 @@ var Calendar = function Calendar(_ref) {
13624
13567
  return /*#__PURE__*/React__default.createElement(StyledContainer$7, {
13625
13568
  testID: testID
13626
13569
  }, /*#__PURE__*/React__default.createElement(StyledCalendarHeader, null, /*#__PURE__*/React__default.createElement(ContentNavigator, {
13627
- value: !useMonthPicker ? format('MMMM yyyy', visibleDate) : /*#__PURE__*/React__default.createElement(TouchableOpacity, {
13570
+ value: !useMonthPicker ? formatTime('MMMM yyyy', visibleDate) : /*#__PURE__*/React__default.createElement(TouchableOpacity, {
13628
13571
  testID: "calendar-month-picker",
13629
13572
  onPress: function onPress() {
13630
13573
  onToggleMonthPicker === null || onToggleMonthPicker === void 0 || onToggleMonthPicker(!monthPickerVisible);
@@ -13640,7 +13583,7 @@ var Calendar = function Calendar(_ref) {
13640
13583
  textAlign: 'center',
13641
13584
  marginRight: theme.__hd__.calendar.space.headerMarginRight
13642
13585
  }
13643
- }, format('MMMM yyyy', visibleDate)), /*#__PURE__*/React__default.createElement(Icon, {
13586
+ }, formatTime('MMMM yyyy', visibleDate)), /*#__PURE__*/React__default.createElement(Icon, {
13644
13587
  icon: monthPickerVisible ? 'arrow-up' : 'arrow-down',
13645
13588
  size: "small"
13646
13589
  }))),
@@ -14154,7 +14097,7 @@ var StyledPageControlWrapper = index$a(View)(function (_ref7) {
14154
14097
  });
14155
14098
 
14156
14099
  function isCarouselImageProps(image) {
14157
- return _typeof(image) === 'object';
14100
+ return _typeof$1(image) === 'object';
14158
14101
  }
14159
14102
  var CarouselItem = function CarouselItem(_ref) {
14160
14103
  var width = _ref.width,
@@ -15075,6 +15018,82 @@ var useCalculateDate = function useCalculateDate(_ref) {
15075
15018
  }, [maxDate, minDate, value]);
15076
15019
  };
15077
15020
 
15021
+ var locale$3 = {
15022
+ lang: 'en-AU',
15023
+ dateTimeFormats: {
15024
+ fullDate: 'dd/MM/yyyy'
15025
+ }
15026
+ };
15027
+
15028
+ var LocaleContext = /*#__PURE__*/createContext(locale$3);
15029
+
15030
+ var useLocale = function useLocale() {
15031
+ var context = useContext(LocaleContext);
15032
+ if (!context) return locale$3;
15033
+ return context;
15034
+ };
15035
+ var useDateTimeFormat = function useDateTimeFormat() {
15036
+ var _useLocale = useLocale(),
15037
+ dateTimeFormats = _useLocale.dateTimeFormats;
15038
+ var localizeDateTime = useCallback(function (key) {
15039
+ return dateTimeFormats === null || dateTimeFormats === void 0 ? void 0 : dateTimeFormats[key];
15040
+ }, [dateTimeFormats]);
15041
+ return {
15042
+ localizeDateTime: localizeDateTime
15043
+ };
15044
+ };
15045
+
15046
+ var locale$2 = {
15047
+ lang: 'en-CA',
15048
+ dateTimeFormats: {
15049
+ fullDate: 'MMM dd, yyyy'
15050
+ }
15051
+ };
15052
+
15053
+ var locales = {
15054
+ 'en-AU': locale$3,
15055
+ 'en-CA': locale$2
15056
+ };
15057
+
15058
+ // Function to get the date format based on the displayFormat and locale,
15059
+ // if no displayFormat or locale is provided, use the default fullDate format
15060
+ var getDateFormat = function getDateFormat(_ref) {
15061
+ var displayFormat = _ref.displayFormat,
15062
+ locale = _ref.locale,
15063
+ localizeDateTime = _ref.localizeDateTime;
15064
+ // Prioritise displayFormat
15065
+ if (displayFormat) {
15066
+ return displayFormat;
15067
+ }
15068
+ // If locale is provided, find the corresponding locale in the locales object
15069
+ if (locale && locales[locale]) {
15070
+ var localeObject = locales[locale];
15071
+ if (localeObject) {
15072
+ return localeObject.dateTimeFormats.fullDate;
15073
+ }
15074
+ }
15075
+ // If no displayFormat or locale is provided, use the default fullDate format
15076
+ return localizeDateTime('fullDate');
15077
+ };
15078
+
15079
+ var useFormatDate = function useFormatDate(_ref) {
15080
+ var displayFormat = _ref.displayFormat,
15081
+ locale = _ref.locale,
15082
+ value = _ref.value;
15083
+ var _useDateTimeFormat = useDateTimeFormat(),
15084
+ localizeDateTime = _useDateTimeFormat.localizeDateTime;
15085
+ var format = getDateFormat({
15086
+ displayFormat: displayFormat,
15087
+ locale: locale,
15088
+ localizeDateTime: localizeDateTime
15089
+ });
15090
+ var displayValue = value ? formatTime(format, value) : '';
15091
+ return {
15092
+ displayValue: displayValue,
15093
+ format: format
15094
+ };
15095
+ };
15096
+
15078
15097
  var DatePickerAndroid = function DatePickerAndroid(_ref) {
15079
15098
  var value = _ref.value,
15080
15099
  minDate = _ref.minDate,
@@ -15082,8 +15101,7 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
15082
15101
  label = _ref.label,
15083
15102
  placeholder = _ref.placeholder,
15084
15103
  _onChange = _ref.onChange,
15085
- _ref$displayFormat = _ref.displayFormat,
15086
- displayFormat = _ref$displayFormat === void 0 ? 'dd/MM/yyyy' : _ref$displayFormat,
15104
+ displayFormat = _ref.displayFormat,
15087
15105
  _ref$disabled = _ref.disabled,
15088
15106
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
15089
15107
  required = _ref.required,
@@ -15092,19 +15110,27 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
15092
15110
  style = _ref.style,
15093
15111
  testID = _ref.testID,
15094
15112
  _ref$variant = _ref.variant,
15095
- variant = _ref$variant === void 0 ? 'default' : _ref$variant;
15113
+ variant = _ref$variant === void 0 ? 'default' : _ref$variant,
15114
+ renderSelectedValue = _ref.renderSelectedValue,
15115
+ locale = _ref.locale;
15096
15116
  var _useState = useState(false),
15097
15117
  _useState2 = _slicedToArray(_useState, 2),
15098
15118
  open = _useState2[0],
15099
15119
  setOpen = _useState2[1];
15100
- var displayValue = value ? format(displayFormat, value) : '';
15101
- var pickerInitValue = value || new Date();
15120
+ var _useFormatDate = useFormatDate({
15121
+ displayFormat: displayFormat,
15122
+ locale: locale,
15123
+ value: value
15124
+ }),
15125
+ displayValue = _useFormatDate.displayValue,
15126
+ format = _useFormatDate.format;
15102
15127
  useCalculateDate({
15103
15128
  minDate: minDate,
15104
15129
  maxDate: maxDate,
15105
15130
  onChange: _onChange,
15106
15131
  value: value
15107
15132
  });
15133
+ var pickerInitValue = value || new Date();
15108
15134
  var theme = useTheme();
15109
15135
  return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
15110
15136
  onPress: function onPress() {
@@ -15118,13 +15144,19 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
15118
15144
  label: label,
15119
15145
  value: displayValue,
15120
15146
  suffix: "calendar-dates-outlined",
15121
- placeholder: placeholder || displayFormat,
15147
+ placeholder: placeholder || format,
15122
15148
  disabled: disabled,
15123
15149
  error: error,
15124
15150
  required: required,
15125
15151
  helpText: helpText,
15126
15152
  style: style,
15127
- testID: testID
15153
+ testID: testID,
15154
+ renderInputValue: renderSelectedValue !== undefined && !!value ? function (props) {
15155
+ return renderSelectedValue({
15156
+ date: value,
15157
+ formattedDateString: displayValue
15158
+ }, props);
15159
+ } : undefined
15128
15160
  })), open && variant === 'month-year' ? /*#__PURE__*/React__default.createElement(MonthYearPickerDialogueAndroid, {
15129
15161
  themeVariant: theme.themeMode === 'dark' ? 'dark' : 'light',
15130
15162
  value: value,
@@ -15204,8 +15236,7 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
15204
15236
  placeholder = _ref2.placeholder,
15205
15237
  onChange = _ref2.onChange,
15206
15238
  confirmLabel = _ref2.confirmLabel,
15207
- _ref2$displayFormat = _ref2.displayFormat,
15208
- displayFormat = _ref2$displayFormat === void 0 ? 'dd/MM/yyyy' : _ref2$displayFormat,
15239
+ displayFormat = _ref2.displayFormat,
15209
15240
  _ref2$disabled = _ref2.disabled,
15210
15241
  disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
15211
15242
  required = _ref2.required,
@@ -15216,7 +15247,9 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
15216
15247
  monthPickerConfirmLabel = _ref2.monthPickerConfirmLabel,
15217
15248
  monthPickerCancelLabel = _ref2.monthPickerCancelLabel,
15218
15249
  _ref2$supportedOrient = _ref2.supportedOrientations,
15219
- supportedOrientations = _ref2$supportedOrient === void 0 ? ['portrait'] : _ref2$supportedOrient;
15250
+ supportedOrientations = _ref2$supportedOrient === void 0 ? ['portrait'] : _ref2$supportedOrient,
15251
+ renderSelectedValue = _ref2.renderSelectedValue,
15252
+ locale = _ref2.locale;
15220
15253
  var _useState5 = useState(false),
15221
15254
  _useState6 = _slicedToArray(_useState5, 2),
15222
15255
  open = _useState6[0],
@@ -15230,7 +15263,12 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
15230
15263
  _useState10 = _slicedToArray(_useState9, 2),
15231
15264
  selectingDate = _useState10[0],
15232
15265
  setSelectingDate = _useState10[1];
15233
- var displayValue = value ? format(displayFormat, value) : '';
15266
+ var _useFormatDate = useFormatDate({
15267
+ value: value,
15268
+ displayFormat: displayFormat,
15269
+ locale: locale
15270
+ }),
15271
+ displayValue = _useFormatDate.displayValue;
15234
15272
  useCalculateDate({
15235
15273
  minDate: minDate,
15236
15274
  maxDate: maxDate,
@@ -15255,7 +15293,13 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
15255
15293
  required: required,
15256
15294
  helpText: helpText,
15257
15295
  testID: testID,
15258
- style: style
15296
+ style: style,
15297
+ renderInputValue: renderSelectedValue !== undefined && !!value ? function (props) {
15298
+ return renderSelectedValue({
15299
+ date: value,
15300
+ formattedDateString: displayValue
15301
+ }, props);
15302
+ } : undefined
15259
15303
  })), /*#__PURE__*/React__default.createElement(BottomSheet$1, {
15260
15304
  open: open,
15261
15305
  onRequestClose: function onRequestClose() {
@@ -15301,8 +15345,7 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
15301
15345
  placeholder = _ref.placeholder,
15302
15346
  onChange = _ref.onChange,
15303
15347
  confirmLabel = _ref.confirmLabel,
15304
- _ref$displayFormat = _ref.displayFormat,
15305
- displayFormat = _ref$displayFormat === void 0 ? 'dd/MM/yyyy' : _ref$displayFormat,
15348
+ displayFormat = _ref.displayFormat,
15306
15349
  _ref$disabled = _ref.disabled,
15307
15350
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
15308
15351
  required = _ref.required,
@@ -15314,7 +15357,9 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
15314
15357
  supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta,
15315
15358
  _ref$variant = _ref.variant,
15316
15359
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
15317
- locale = _ref.locale;
15360
+ locale = _ref.locale,
15361
+ renderSelectedValue = _ref.renderSelectedValue;
15362
+ var theme = useTheme();
15318
15363
  var _useState = useState(getDateValue(value || new Date(), minDate, maxDate)),
15319
15364
  _useState2 = _slicedToArray(_useState, 2),
15320
15365
  selectingDate = _useState2[0],
@@ -15323,8 +15368,15 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
15323
15368
  _useState4 = _slicedToArray(_useState3, 2),
15324
15369
  open = _useState4[0],
15325
15370
  setOpen = _useState4[1];
15326
- var displayValue = value ? format(displayFormat, value) : '';
15327
- var theme = useTheme();
15371
+ var _useLocale = useLocale(),
15372
+ defaultLocale = _useLocale.lang;
15373
+ var _useFormatDate = useFormatDate({
15374
+ displayFormat: displayFormat,
15375
+ locale: locale,
15376
+ value: value
15377
+ }),
15378
+ displayValue = _useFormatDate.displayValue,
15379
+ format = _useFormatDate.format;
15328
15380
  useCalculateDate({
15329
15381
  minDate: minDate,
15330
15382
  maxDate: maxDate,
@@ -15343,13 +15395,19 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
15343
15395
  label: label,
15344
15396
  value: displayValue,
15345
15397
  suffix: "calendar-dates-outlined",
15346
- placeholder: placeholder || displayFormat,
15398
+ placeholder: placeholder || format,
15347
15399
  disabled: disabled,
15348
15400
  error: error,
15349
15401
  required: required,
15350
15402
  helpText: helpText,
15351
15403
  testID: testID,
15352
- style: style
15404
+ style: style,
15405
+ renderInputValue: renderSelectedValue !== undefined && !!value ? function (props) {
15406
+ return renderSelectedValue({
15407
+ date: value,
15408
+ formattedDateString: displayValue
15409
+ }, props);
15410
+ } : undefined
15353
15411
  })), /*#__PURE__*/React__default.createElement(BottomSheet$1, {
15354
15412
  open: open,
15355
15413
  onRequestClose: function onRequestClose() {
@@ -15369,7 +15427,7 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
15369
15427
  supportedOrientations: supportedOrientations
15370
15428
  }, /*#__PURE__*/React__default.createElement(StyledPickerWrapper$1, null, variant === 'month-year' ? /*#__PURE__*/React__default.createElement(MonthYearPickerViewIOS, {
15371
15429
  value: value,
15372
- locale: locale,
15430
+ locale: locale || defaultLocale,
15373
15431
  minimumDate: minDate,
15374
15432
  textColor: theme.colors.onDefaultGlobalSurface,
15375
15433
  maximumDate: maxDate,
@@ -15382,7 +15440,7 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
15382
15440
  flex: 1
15383
15441
  }
15384
15442
  }) : null, variant === 'default' ? /*#__PURE__*/React__default.createElement(DateTimePicker, {
15385
- locale: locale,
15443
+ locale: locale || defaultLocale,
15386
15444
  testID: "datePickerIOS",
15387
15445
  value: selectingDate,
15388
15446
  minimumDate: minDate,
@@ -15707,6 +15765,701 @@ var index$7 = Object.assign(Drawer, {
15707
15765
  Dragable: DragableDrawer
15708
15766
  });
15709
15767
 
15768
+ var Add = function Add(_ref) {
15769
+ var stroke = _ref.stroke,
15770
+ fill = _ref.fill,
15771
+ testID = _ref.testID;
15772
+ return /*#__PURE__*/React__default.createElement(Svg, {
15773
+ width: "73",
15774
+ height: "72",
15775
+ viewBox: "0 0 73 72",
15776
+ testID: testID
15777
+ }, /*#__PURE__*/React__default.createElement(Rect, {
15778
+ x: "0.100098",
15779
+ y: "11.3684",
15780
+ width: "60.6316",
15781
+ height: "60.6316",
15782
+ rx: "20",
15783
+ fill: fill,
15784
+ stroke: "transparent"
15785
+ }), /*#__PURE__*/React__default.createElement(Line, {
15786
+ x1: "30.1001",
15787
+ y1: "30",
15788
+ x2: "53.1001",
15789
+ y2: "30",
15790
+ stroke: stroke,
15791
+ strokeWidth: "4",
15792
+ strokeLinecap: "round"
15793
+ }), /*#__PURE__*/React__default.createElement(Line, {
15794
+ x1: "41.6001",
15795
+ y1: "18.5",
15796
+ x2: "41.6001",
15797
+ y2: "41.5",
15798
+ stroke: stroke,
15799
+ strokeWidth: "4",
15800
+ strokeLinecap: "round"
15801
+ }), /*#__PURE__*/React__default.createElement(Rect, {
15802
+ x: "13.4685",
15803
+ y: "2",
15804
+ width: "56.6316",
15805
+ height: "56.6316",
15806
+ rx: "18",
15807
+ stroke: stroke,
15808
+ fill: "transparent",
15809
+ strokeWidth: "4"
15810
+ }));
15811
+ };
15812
+
15813
+ var Boom = function Boom(_ref) {
15814
+ var stroke = _ref.stroke,
15815
+ fill = _ref.fill,
15816
+ testID = _ref.testID;
15817
+ return /*#__PURE__*/React__default.createElement(Svg, {
15818
+ width: 74,
15819
+ height: 79,
15820
+ viewBox: "0 0 74 79",
15821
+ testID: testID
15822
+ }, /*#__PURE__*/React__default.createElement(Path, {
15823
+ d: "M17.762 51.247v12.16L2.996 41.693v-3.91l2.172-2.17h3.474l-.868-2.172-1.738-6.515 2.606-2.605 2.606-2.172-.434-6.514 4.343-1.303 3.908 1.303 3.475-2.606h4.343l6.514 9.989h-5.646c-3.33 9.265-9.989 27.882-9.989 28.229z",
15824
+ fill: fill
15825
+ }), /*#__PURE__*/React__default.createElement(Mask, {
15826
+ id: "a",
15827
+ maskUnits: "userSpaceOnUse",
15828
+ x: 0,
15829
+ y: 10.4197,
15830
+ width: 74,
15831
+ height: 68,
15832
+ fill: "#000"
15833
+ }, /*#__PURE__*/React__default.createElement(Path, {
15834
+ fill: "#fff",
15835
+ d: "M0 10.4197H74V78.4197H0z"
15836
+ }), /*#__PURE__*/React__default.createElement(Path, {
15837
+ d: "M6.684 50.157c.67 1.054 1.425 2.303 2.257 3.66 3.266 5.374 7.329 12.056 10.944 15.345.266.245.542.453.81.67 2.999 3.275 6.912 5.515 10.585 6.704 2.71.882 5.316 1.308 7.818 1.308 7.238 0 13.572-3.637 18.566-10.758a9.692 9.692 0 011.9-2.004l11.314-9.035a5.593 5.593 0 002.094-3.845 5.582 5.582 0 00-1.298-4.18c-1.945-2.316-5.537-2.606-7.99-.647l-6.46 5.166c-.244.186-.556.222-.682.14-.068-.045-.15-.185-.2-.438v-.778c.037-.371.127-.833.326-1.426l3.045-9.436h-.014l4.158-12.866c.959-2.954-.67-6.139-3.624-7.098a5.492 5.492 0 00-3.556.059c.29-1.276.15-2.606-.461-3.778a5.572 5.572 0 00-3.289-2.791c-2.954-.959-6.139.67-7.098 3.624l-.407 1.262a5.558 5.558 0 00-2.814-2.072c-2.954-.95-6.139.67-7.098 3.623l-.832 2.584-5.791-9.116c-1.67-2.62-5.153-3.407-7.781-1.737a5.618 5.618 0 00-2.235 2.777c-.8-1.031-1.91-1.773-3.208-2.063a5.608 5.608 0 00-4.252.743c-2.62 1.669-3.407 5.152-1.737 7.78l.705 1.118a5.608 5.608 0 00-3.393.846 5.583 5.583 0 00-2.479 3.533 5.608 5.608 0 00.742 4.253l1.76 2.768a5.61 5.61 0 00-3.393.846 5.583 5.583 0 00-2.479 3.534 5.608 5.608 0 00.742 4.252l4.805 7.473zM4.892 36.816a3.331 3.331 0 012.502-.44c.869.2 1.597.707 2.072 1.462l6.75 10.622c.172.267.43.44.719.511-.683 2.57-1.172 5.004-1.276 7.008-.081 1.67.06 3.23.349 4.714-1.819-2.687-3.601-5.605-5.094-8.07-.833-1.367-1.597-2.63-2.28-3.697L3.86 41.412a3.331 3.331 0 01-.439-2.502 3.291 3.291 0 011.47-2.094zm1.91-9.31c.198-.87.705-1.598 1.46-2.073a3.314 3.314 0 014.574 1.018l7.483 11.78c-.892 2.584-1.855 5.411-2.674 8.175L11.42 36.6l-4.18-6.592a3.264 3.264 0 01-.439-2.502zm5.88-11.812a3.331 3.331 0 012.502-.44c.869.2 1.597.707 2.072 1.462l6.682 10.527-2.085 6.438c-.173.543-.372 1.122-.58 1.75l-6.487-10.215-3.13-4.949c-.973-1.538-.525-3.6 1.026-4.573zm9.673-1.462c1.538-.986 3.6-.52 4.587 1.018l3.904 6.148c-1.172-.185-2.375-.022-3.452.534a5.534 5.534 0 00-2.465 2.538l-3.592-5.65a3.342 3.342 0 011.018-4.588zM54.9 47.958l-.439 1.357a9.392 9.392 0 00-.43 2.005c.014.348.014.696 0 1.04.118 1.09.593 1.715 1.01 2.072.045.045.104.09.149.127.276.199.592.325.927.393.833.186 1.774-.022 2.56-.624l6.452-5.153c1.484-1.18 3.623-1.031 4.772.326.58.697.856 1.565.765 2.466a3.301 3.301 0 01-1.226 2.27l-11.314 9.035a11.756 11.756 0 00-2.353 2.488c-6.17 8.803-14.173 11.685-23.786 8.582-.2-.068-.407-.14-.602-.222a23.216 23.216 0 01-4.253-2.013c-1.75-1.054-3.429-2.375-4.854-3.963-2.723-3.045-4.542-7.066-4.306-12.056.126-2.687 1.09-6.415 2.248-10.156.29-.95.602-1.91.914-2.85.267-.801.534-1.575.787-2.34.163-.474.326-.95.488-1.401.09-.276.2-.557.29-.824.068-.199.127-.38.199-.579.439-1.298.855-2.488 1.194-3.533l1.493-4.61.923-2.868.326-.986a3.308 3.308 0 011.647-1.937 3.321 3.321 0 014.682 3.963l-.303.95-1.701 5.28-.462 1.434-.51 1.43-.937 2.881c-.023.09-.023.172-.037.267-.045.52.254 1.031.778 1.194a1.161 1.161 0 001.462-.742l.117-.357.326-.995.29-.905.036-.09.045-.14.461-1.426.082-.253 2.524-7.804.045-.15.014-.022.453-1.411v-.023l.452-1.412.013-.022 1.425-4.402a3.34 3.34 0 014.18-2.144 3.34 3.34 0 012.145 4.18l-3.117 9.636-.461 1.434-.453 1.389-1.47 4.528-.778 2.42a1.161 1.161 0 001.1 1.52c.022 0 .035-.013.058-.013.045 0 .09-.014.14-.023a.9.9 0 00.267-.081c.045-.023.09-.045.127-.068.081-.045.15-.104.222-.172.036-.036.067-.059.09-.09.09-.105.163-.231.208-.371l1.018-3.14.905-2.778.37-1.135.372-1.158 1.203-3.705 1.226-3.8 1.194-3.683.172-.534.602-1.854 1.031-3.185a3.34 3.34 0 014.18-2.145c.846.276 1.53.855 1.937 1.647.407.787.475 1.692.208 2.538l-.728 2.248-.43 1.308-.068.208-.439 1.357-1.841 5.687-2.895 8.962-1.679 5.198a1.161 1.161 0 001.1 1.52 1.16 1.16 0 001.099-.801l.325-1.018.037-.127 1.538-4.772 2.352-7.261.326-.996.914-2.814 1.122-3.487.244-.751a3.32 3.32 0 014.18-2.131 3.325 3.325 0 012.13 4.18L57.426 40.21l-1.737 5.375-.2.624-.588 1.75z"
15838
+ })), /*#__PURE__*/React__default.createElement(Path, {
15839
+ d: "M6.684 50.157c.67 1.054 1.425 2.303 2.257 3.66 3.266 5.374 7.329 12.056 10.944 15.345.266.245.542.453.81.67 2.999 3.275 6.912 5.515 10.585 6.704 2.71.882 5.316 1.308 7.818 1.308 7.238 0 13.572-3.637 18.566-10.758a9.692 9.692 0 011.9-2.004l11.314-9.035a5.593 5.593 0 002.094-3.845 5.582 5.582 0 00-1.298-4.18c-1.945-2.316-5.537-2.606-7.99-.647l-6.46 5.166c-.244.186-.556.222-.682.14-.068-.045-.15-.185-.2-.438v-.778c.037-.371.127-.833.326-1.426l3.045-9.436h-.014l4.158-12.866c.959-2.954-.67-6.139-3.624-7.098a5.492 5.492 0 00-3.556.059c.29-1.276.15-2.606-.461-3.778a5.572 5.572 0 00-3.289-2.791c-2.954-.959-6.139.67-7.098 3.624l-.407 1.262a5.558 5.558 0 00-2.814-2.072c-2.954-.95-6.139.67-7.098 3.623l-.832 2.584-5.791-9.116c-1.67-2.62-5.153-3.407-7.781-1.737a5.618 5.618 0 00-2.235 2.777c-.8-1.031-1.91-1.773-3.208-2.063a5.608 5.608 0 00-4.252.743c-2.62 1.669-3.407 5.152-1.737 7.78l.705 1.118a5.608 5.608 0 00-3.393.846 5.583 5.583 0 00-2.479 3.533 5.608 5.608 0 00.742 4.253l1.76 2.768a5.61 5.61 0 00-3.393.846 5.583 5.583 0 00-2.479 3.534 5.608 5.608 0 00.742 4.252l4.805 7.473zM4.892 36.816a3.331 3.331 0 012.502-.44c.869.2 1.597.707 2.072 1.462l6.75 10.622c.172.267.43.44.719.511-.683 2.57-1.172 5.004-1.276 7.008-.081 1.67.06 3.23.349 4.714-1.819-2.687-3.601-5.605-5.094-8.07-.833-1.367-1.597-2.63-2.28-3.697L3.86 41.412a3.331 3.331 0 01-.439-2.502 3.291 3.291 0 011.47-2.094zm1.91-9.31c.198-.87.705-1.598 1.46-2.073a3.314 3.314 0 014.574 1.018l7.483 11.78c-.892 2.584-1.855 5.411-2.674 8.175L11.42 36.6l-4.18-6.592a3.264 3.264 0 01-.439-2.502zm5.88-11.812a3.331 3.331 0 012.502-.44c.869.2 1.597.707 2.072 1.462l6.682 10.527-2.085 6.438c-.173.543-.372 1.122-.58 1.75l-6.487-10.215-3.13-4.949c-.973-1.538-.525-3.6 1.026-4.573zm9.673-1.462c1.538-.986 3.6-.52 4.587 1.018l3.904 6.148c-1.172-.185-2.375-.022-3.452.534a5.534 5.534 0 00-2.465 2.538l-3.592-5.65a3.342 3.342 0 011.018-4.588zM54.9 47.958l-.439 1.357a9.392 9.392 0 00-.43 2.005c.014.348.014.696 0 1.04.118 1.09.593 1.715 1.01 2.072.045.045.104.09.149.127.276.199.592.325.927.393.833.186 1.774-.022 2.56-.624l6.452-5.153c1.484-1.18 3.623-1.031 4.772.326.58.697.856 1.565.765 2.466a3.301 3.301 0 01-1.226 2.27l-11.314 9.035a11.756 11.756 0 00-2.353 2.488c-6.17 8.803-14.173 11.685-23.786 8.582-.2-.068-.407-.14-.602-.222a23.216 23.216 0 01-4.253-2.013c-1.75-1.054-3.429-2.375-4.854-3.963-2.723-3.045-4.542-7.066-4.306-12.056.126-2.687 1.09-6.415 2.248-10.156.29-.95.602-1.91.914-2.85.267-.801.534-1.575.787-2.34.163-.474.326-.95.488-1.401.09-.276.2-.557.29-.824.068-.199.127-.38.199-.579.439-1.298.855-2.488 1.194-3.533l1.493-4.61.923-2.868.326-.986a3.308 3.308 0 011.647-1.937 3.321 3.321 0 014.682 3.963l-.303.95-1.701 5.28-.462 1.434-.51 1.43-.937 2.881c-.023.09-.023.172-.037.267-.045.52.254 1.031.778 1.194a1.161 1.161 0 001.462-.742l.117-.357.326-.995.29-.905.036-.09.045-.14.461-1.426.082-.253 2.524-7.804.045-.15.014-.022.453-1.411v-.023l.452-1.412.013-.022 1.425-4.402a3.34 3.34 0 014.18-2.144 3.34 3.34 0 012.145 4.18l-3.117 9.636-.461 1.434-.453 1.389-1.47 4.528-.778 2.42a1.161 1.161 0 001.1 1.52c.022 0 .035-.013.058-.013.045 0 .09-.014.14-.023a.9.9 0 00.267-.081c.045-.023.09-.045.127-.068.081-.045.15-.104.222-.172.036-.036.067-.059.09-.09.09-.105.163-.231.208-.371l1.018-3.14.905-2.778.37-1.135.372-1.158 1.203-3.705 1.226-3.8 1.194-3.683.172-.534.602-1.854 1.031-3.185a3.34 3.34 0 014.18-2.145c.846.276 1.53.855 1.937 1.647.407.787.475 1.692.208 2.538l-.728 2.248-.43 1.308-.068.208-.439 1.357-1.841 5.687-2.895 8.962-1.679 5.198a1.161 1.161 0 001.1 1.52 1.16 1.16 0 001.099-.801l.325-1.018.037-.127 1.538-4.772 2.352-7.261.326-.996.914-2.814 1.122-3.487.244-.751a3.32 3.32 0 014.18-2.131 3.325 3.325 0 012.13 4.18L57.426 40.21l-1.737 5.375-.2.624-.588 1.75z",
15840
+ fill: stroke
15841
+ }), /*#__PURE__*/React__default.createElement(Path, {
15842
+ d: "M6.684 50.157c.67 1.054 1.425 2.303 2.257 3.66 3.266 5.374 7.329 12.056 10.944 15.345.266.245.542.453.81.67 2.999 3.275 6.912 5.515 10.585 6.704 2.71.882 5.316 1.308 7.818 1.308 7.238 0 13.572-3.637 18.566-10.758a9.692 9.692 0 011.9-2.004l11.314-9.035a5.593 5.593 0 002.094-3.845 5.582 5.582 0 00-1.298-4.18c-1.945-2.316-5.537-2.606-7.99-.647l-6.46 5.166c-.244.186-.556.222-.682.14-.068-.045-.15-.185-.2-.438v-.778c.037-.371.127-.833.326-1.426l3.045-9.436h-.014l4.158-12.866c.959-2.954-.67-6.139-3.624-7.098a5.492 5.492 0 00-3.556.059c.29-1.276.15-2.606-.461-3.778a5.572 5.572 0 00-3.289-2.791c-2.954-.959-6.139.67-7.098 3.624l-.407 1.262a5.558 5.558 0 00-2.814-2.072c-2.954-.95-6.139.67-7.098 3.623l-.832 2.584-5.791-9.116c-1.67-2.62-5.153-3.407-7.781-1.737a5.618 5.618 0 00-2.235 2.777c-.8-1.031-1.91-1.773-3.208-2.063a5.608 5.608 0 00-4.252.743c-2.62 1.669-3.407 5.152-1.737 7.78l.705 1.118a5.608 5.608 0 00-3.393.846 5.583 5.583 0 00-2.479 3.533 5.608 5.608 0 00.742 4.253l1.76 2.768a5.61 5.61 0 00-3.393.846 5.583 5.583 0 00-2.479 3.534 5.608 5.608 0 00.742 4.252l4.805 7.473zM4.892 36.816a3.331 3.331 0 012.502-.44c.869.2 1.597.707 2.072 1.462l6.75 10.622c.172.267.43.44.719.511-.683 2.57-1.172 5.004-1.276 7.008-.081 1.67.06 3.23.349 4.714-1.819-2.687-3.601-5.605-5.094-8.07-.833-1.367-1.597-2.63-2.28-3.697L3.86 41.412a3.331 3.331 0 01-.439-2.502 3.291 3.291 0 011.47-2.094zm1.91-9.31c.198-.87.705-1.598 1.46-2.073a3.314 3.314 0 014.574 1.018l7.483 11.78c-.892 2.584-1.855 5.411-2.674 8.175L11.42 36.6l-4.18-6.592a3.264 3.264 0 01-.439-2.502zm5.88-11.812a3.331 3.331 0 012.502-.44c.869.2 1.597.707 2.072 1.462l6.682 10.527-2.085 6.438c-.173.543-.372 1.122-.58 1.75l-6.487-10.215-3.13-4.949c-.973-1.538-.525-3.6 1.026-4.573zm9.673-1.462c1.538-.986 3.6-.52 4.587 1.018l3.904 6.148c-1.172-.185-2.375-.022-3.452.534a5.534 5.534 0 00-2.465 2.538l-3.592-5.65a3.342 3.342 0 011.018-4.588zM54.9 47.958l-.439 1.357a9.392 9.392 0 00-.43 2.005c.014.348.014.696 0 1.04.118 1.09.593 1.715 1.01 2.072.045.045.104.09.149.127.276.199.592.325.927.393.833.186 1.774-.022 2.56-.624l6.452-5.153c1.484-1.18 3.623-1.031 4.772.326.58.697.856 1.565.765 2.466a3.301 3.301 0 01-1.226 2.27l-11.314 9.035a11.756 11.756 0 00-2.353 2.488c-6.17 8.803-14.173 11.685-23.786 8.582-.2-.068-.407-.14-.602-.222a23.216 23.216 0 01-4.253-2.013c-1.75-1.054-3.429-2.375-4.854-3.963-2.723-3.045-4.542-7.066-4.306-12.056.126-2.687 1.09-6.415 2.248-10.156.29-.95.602-1.91.914-2.85.267-.801.534-1.575.787-2.34.163-.474.326-.95.488-1.401.09-.276.2-.557.29-.824.068-.199.127-.38.199-.579.439-1.298.855-2.488 1.194-3.533l1.493-4.61.923-2.868.326-.986a3.308 3.308 0 011.647-1.937 3.321 3.321 0 014.682 3.963l-.303.95-1.701 5.28-.462 1.434-.51 1.43-.937 2.881c-.023.09-.023.172-.037.267-.045.52.254 1.031.778 1.194a1.161 1.161 0 001.462-.742l.117-.357.326-.995.29-.905.036-.09.045-.14.461-1.426.082-.253 2.524-7.804.045-.15.014-.022.453-1.411v-.023l.452-1.412.013-.022 1.425-4.402a3.34 3.34 0 014.18-2.144 3.34 3.34 0 012.145 4.18l-3.117 9.636-.461 1.434-.453 1.389-1.47 4.528-.778 2.42a1.161 1.161 0 001.1 1.52c.022 0 .035-.013.058-.013.045 0 .09-.014.14-.023a.9.9 0 00.267-.081c.045-.023.09-.045.127-.068.081-.045.15-.104.222-.172.036-.036.067-.059.09-.09.09-.105.163-.231.208-.371l1.018-3.14.905-2.778.37-1.135.372-1.158 1.203-3.705 1.226-3.8 1.194-3.683.172-.534.602-1.854 1.031-3.185a3.34 3.34 0 014.18-2.145c.846.276 1.53.855 1.937 1.647.407.787.475 1.692.208 2.538l-.728 2.248-.43 1.308-.068.208-.439 1.357-1.841 5.687-2.895 8.962-1.679 5.198a1.161 1.161 0 001.1 1.52 1.16 1.16 0 001.099-.801l.325-1.018.037-.127 1.538-4.772 2.352-7.261.326-.996.914-2.814 1.122-3.487.244-.751a3.32 3.32 0 014.18-2.131 3.325 3.325 0 012.13 4.18L57.426 40.21l-1.737 5.375-.2.624-.588 1.75z",
15843
+ stroke: stroke,
15844
+ mask: "url(#a)"
15845
+ }), /*#__PURE__*/React__default.createElement(Rect, {
15846
+ x: 37.6458,
15847
+ width: 2.60578,
15848
+ height: 7.81735,
15849
+ rx: 1.30289,
15850
+ transform: "rotate(2.496 37.646 0)",
15851
+ fill: stroke
15852
+ }), /*#__PURE__*/React__default.createElement(Rect, {
15853
+ x: 45.5715,
15854
+ y: 2.60578,
15855
+ width: 2.60578,
15856
+ height: 7.81734,
15857
+ rx: 1.30289,
15858
+ transform: "rotate(23 45.572 2.606)",
15859
+ fill: stroke
15860
+ }), /*#__PURE__*/React__default.createElement(Rect, {
15861
+ width: 2.60578,
15862
+ height: 7.81735,
15863
+ rx: 1.30289,
15864
+ transform: "scale(-1 1) rotate(23 -22.347 -77.062)",
15865
+ fill: stroke
15866
+ }));
15867
+ };
15868
+
15869
+ var Build = function Build(_ref) {
15870
+ var stroke = _ref.stroke,
15871
+ fill = _ref.fill,
15872
+ testID = _ref.testID;
15873
+ return /*#__PURE__*/React__default.createElement(Svg, {
15874
+ width: "73",
15875
+ height: "72",
15876
+ viewBox: "0 0 73 72",
15877
+ testID: testID
15878
+ }, /*#__PURE__*/React__default.createElement(Rect, {
15879
+ x: "0.615723",
15880
+ y: "11.3684",
15881
+ width: "60.6316",
15882
+ height: "60.6316",
15883
+ rx: "20",
15884
+ fill: fill,
15885
+ stroke: "transparent"
15886
+ }), /*#__PURE__*/React__default.createElement(Rect, {
15887
+ x: "13.9841",
15888
+ y: "2",
15889
+ width: "56.6316",
15890
+ height: "56.6316",
15891
+ rx: "18",
15892
+ strokeWidth: "4",
15893
+ stroke: stroke,
15894
+ fill: "transparent"
15895
+ }), /*#__PURE__*/React__default.createElement(Path, {
15896
+ fillRule: "evenodd",
15897
+ clipRule: "evenodd",
15898
+ d: "M33.0369 42.8913C32.7714 42.9823 32.4958 43.0278 32.2152 43.0278C31.3833 43.0278 30.602 42.6258 30.1141 41.9507C29.6286 41.2756 29.4971 40.4059 29.7626 39.617L34.9407 24.0827C35.1961 23.3115 35.8004 22.7047 36.5715 22.4443L52.1059 17.2662C53.0364 16.9552 54.0629 17.198 54.7556 17.8932C55.4484 18.5861 55.6911 19.6126 55.3801 20.543L50.202 36.0774C49.9467 36.8485 49.3424 37.4553 48.5712 37.7132L33.0369 42.8913Z",
15899
+ stroke: stroke,
15900
+ fill: stroke
15901
+ }), /*#__PURE__*/React__default.createElement(Circle$1, {
15902
+ cx: "43.0267",
15903
+ cy: "29.589",
15904
+ r: "3.94521",
15905
+ stroke: stroke,
15906
+ fill: fill
15907
+ }));
15908
+ };
15909
+
15910
+ var Clock = function Clock(_ref) {
15911
+ var stroke = _ref.stroke,
15912
+ fill = _ref.fill,
15913
+ testID = _ref.testID;
15914
+ return /*#__PURE__*/React__default.createElement(Svg, {
15915
+ width: "73",
15916
+ height: "73",
15917
+ viewBox: "0 0 73 73",
15918
+ testID: testID
15919
+ }, /*#__PURE__*/React__default.createElement(Rect, {
15920
+ x: "0.384277",
15921
+ y: "12.3684",
15922
+ width: "60.6316",
15923
+ height: "60.6316",
15924
+ rx: "20",
15925
+ fill: fill
15926
+ }), /*#__PURE__*/React__default.createElement(Path, {
15927
+ fillRule: "evenodd",
15928
+ clipRule: "evenodd",
15929
+ d: "M30.6916 57.4391C33.3944 57.6293 36.8359 57.6316 41.7001 57.6316C46.5643 57.6316 50.0057 57.6293 52.7085 57.4391C55.3738 57.2516 57.0177 56.8957 58.3216 56.3366C62.0954 54.7183 65.1026 51.7111 66.7209 47.9374C67.28 46.6334 67.6358 44.9895 67.8234 42.3242C68.0136 39.6215 68.0159 36.18 68.0159 31.3158C68.0159 26.4516 68.0136 23.0101 67.8234 20.3073C67.6358 17.6421 67.28 15.9982 66.7209 14.6942C65.1026 10.9204 62.0954 7.91326 58.3216 6.29499C57.0177 5.73584 55.3738 5.38001 52.7085 5.19248C50.0057 5.0023 46.5643 5 41.7001 5C36.8359 5 33.3944 5.0023 30.6916 5.19248C28.0264 5.38001 26.3824 5.73584 25.0785 6.29499C21.3047 7.91326 18.2975 10.9204 16.6793 14.6942C16.1201 15.9982 15.7643 17.6421 15.5768 20.3073C15.3866 23.0101 15.3843 26.4516 15.3843 31.3158C15.3843 36.18 15.3866 39.6215 15.5768 42.3242C15.7643 44.9895 16.1201 46.6334 16.6793 47.9374C18.2975 51.7111 21.3047 54.7183 25.0785 56.3366C26.3824 56.8957 28.0264 57.2516 30.6916 57.4391ZM13.003 13.1178C11.3843 16.8927 11.3843 21.7004 11.3843 31.3158C11.3843 40.9312 11.3843 45.7389 13.003 49.5138C15.0259 54.231 18.7848 57.99 23.5021 60.0128C27.2769 61.6316 32.0847 61.6316 41.7001 61.6316C51.3155 61.6316 56.1232 61.6316 59.8981 60.0128C64.6153 57.99 68.3743 54.231 70.3971 49.5138C72.0159 45.7389 72.0159 40.9312 72.0159 31.3158C72.0159 21.7004 72.0159 16.8927 70.3971 13.1178C68.3743 8.40056 64.6153 4.64158 59.8981 2.61874C56.1232 1 51.3155 1 41.7001 1C32.0847 1 27.2769 1 23.5021 2.61874C18.7848 4.64158 15.0259 8.40056 13.003 13.1178Z",
15930
+ fill: stroke
15931
+ }), /*#__PURE__*/React__default.createElement(Path, {
15932
+ d: "M41.3843 14.8C32.4514 14.8 25.1843 22.0668 25.1843 31C25.1843 39.9332 32.4511 47.2 41.3843 47.2C50.3175 47.2 57.5843 39.9332 57.5843 31C57.5843 22.0668 50.3175 14.8 41.3843 14.8ZM41.3843 43.6011C34.4369 43.6011 28.7829 37.9474 28.7829 30.9996C28.7829 24.0509 34.4365 18.3982 41.3843 18.3982C48.332 18.3982 53.9857 24.0519 53.9857 30.9996C53.9857 37.9474 48.332 43.6011 41.3843 43.6011Z",
15933
+ fill: stroke,
15934
+ stroke: stroke,
15935
+ strokeWidth: "0.4"
15936
+ }), /*#__PURE__*/React__default.createElement(Path, {
15937
+ d: "M40.1357 32.5728L40.136 32.5731L45.0853 37.0085L45.0853 37.0085C45.4289 37.3162 45.8587 37.4677 46.2863 37.4677C46.7793 37.4677 47.2717 37.2663 47.6266 36.8693C48.2902 36.1289 48.2276 34.992 47.4874 34.3283L47.4874 34.3283L43.1717 30.46C43.1784 30.4064 43.1836 30.3487 43.1836 30.289V23.3144C43.1836 22.3209 42.3777 21.5151 41.3843 21.5151C40.3909 21.5151 39.585 22.3209 39.585 23.3144V30.289C39.585 30.2924 39.585 30.2968 39.585 30.302C39.5847 30.4004 39.5837 30.8131 39.6409 31.2636C39.671 31.5006 39.7179 31.7543 39.7923 31.9815C39.8651 32.2043 39.9717 32.4253 40.1357 32.5728Z",
15938
+ fill: stroke,
15939
+ stroke: stroke,
15940
+ strokeWidth: "0.4"
15941
+ }));
15942
+ };
15943
+
15944
+ var Confetti = function Confetti(_ref) {
15945
+ var stroke = _ref.stroke,
15946
+ fill = _ref.fill,
15947
+ testID = _ref.testID;
15948
+ return /*#__PURE__*/React__default.createElement(Svg, {
15949
+ width: "73",
15950
+ height: "72",
15951
+ viewBox: "0 0 73 72",
15952
+ testID: testID
15953
+ }, /*#__PURE__*/React__default.createElement(Defs, null, /*#__PURE__*/React__default.createElement(ClipPath, {
15954
+ id: "clip0_19647_1699"
15955
+ }, /*#__PURE__*/React__default.createElement(Rect, {
15956
+ width: "72",
15957
+ height: "72",
15958
+ fill: "white",
15959
+ transform: "translate(0.100098)"
15960
+ }))), /*#__PURE__*/React__default.createElement(G, {
15961
+ clipPath: "url(#clip0_19647_1699)"
15962
+ }, /*#__PURE__*/React__default.createElement(Rect, {
15963
+ x: "0.100098",
15964
+ y: "11.3684",
15965
+ width: "60.6316",
15966
+ height: "60.6316",
15967
+ rx: "20",
15968
+ fill: fill
15969
+ }), /*#__PURE__*/React__default.createElement(Rect, {
15970
+ x: "13.4685",
15971
+ y: "2",
15972
+ width: "56.6316",
15973
+ height: "56.6316",
15974
+ rx: "18",
15975
+ stroke: stroke,
15976
+ strokeWidth: "4",
15977
+ fill: "transparent"
15978
+ }), /*#__PURE__*/React__default.createElement(Path, {
15979
+ d: "M37.2714 23.8504L37.2714 23.8504L37.2699 23.8489C36.7659 23.3552 36.0534 23.1375 35.3412 23.3024C34.6474 23.458 34.0906 23.965 33.8538 24.634L33.8534 24.6351L28.0143 41.4536L28.014 41.4544C27.7561 42.2073 27.9423 43.0243 28.5095 43.5915L28.6509 43.4501L28.5095 43.5915C28.9011 43.9831 29.4275 44.2005 29.9662 44.2005C30.1958 44.2005 30.4216 44.1587 30.6425 44.0884L30.7818 44.0441V44.0309L47.4658 38.2476L47.467 38.2472C48.1359 38.0105 48.6428 37.4538 48.7985 36.7601C48.9632 36.0588 48.7562 35.3352 48.2504 34.8294L48.1089 34.9708L48.2504 34.8294L37.2714 23.8504ZM30.2858 41.8149L33.2962 33.1643L38.9363 38.8044L30.2858 41.8149ZM46.4171 36.2111L41.3149 37.9868L34.1227 30.7856L35.8895 25.6835L46.4171 36.2111Z",
15980
+ fill: stroke,
15981
+ stroke: stroke,
15982
+ strokeWidth: "0.4"
15983
+ }), /*#__PURE__*/React__default.createElement(Path, {
15984
+ d: "M43.5303 23.2622L43.5303 23.2623L42.3083 24.483C42.3083 24.483 42.3083 24.483 42.3083 24.4831C42.0872 24.7041 41.7966 24.8144 41.507 24.8144C41.2171 24.8144 40.9277 24.704 40.7068 24.4831C40.2638 24.0401 40.2635 23.3234 40.707 22.8813L41.9287 21.6608C41.9287 21.6608 41.9287 21.6607 41.9288 21.6607C43.03 20.5584 43.2426 18.8537 42.4463 17.5132L43.5303 23.2622ZM43.5303 23.2622C45.365 21.4275 45.7215 18.586 44.3933 16.3537L44.3932 16.3535M43.5303 23.2622L44.3932 16.3535M44.3932 16.3535C44.0734 15.8173 43.3796 15.6386 42.8401 15.9599L44.3932 16.3535ZM42.8401 15.96C42.3018 16.2801 42.1265 16.9754 42.4462 17.5131L42.8401 15.96Z",
15985
+ fill: stroke,
15986
+ stroke: stroke,
15987
+ strokeWidth: "0.4"
15988
+ }), /*#__PURE__*/React__default.createElement(Path, {
15989
+ d: "M55.7471 27.7085L55.7469 27.7084C53.5124 26.3791 50.6732 26.7343 48.8384 28.5715C48.8384 28.5715 48.8384 28.5715 48.8384 28.5715L47.6177 29.7934C47.6176 29.7934 47.6176 29.7934 47.6176 29.7934C47.6176 29.7935 47.6176 29.7935 47.6176 29.7935C47.1748 30.2364 47.1744 30.9529 47.6177 31.395C47.8387 31.6161 48.1294 31.7264 48.419 31.7264C48.7087 31.7264 48.9994 31.6161 49.2204 31.395L49.2205 31.3949L50.4411 30.1731C51.5448 29.0705 53.2505 28.8581 54.5886 29.6554L54.5891 29.6557C55.1289 29.9751 55.823 29.7989 56.142 29.2616L56.1423 29.261C56.4591 28.7236 56.2841 28.0288 55.7471 27.7085Z",
15990
+ fill: stroke,
15991
+ stroke: stroke,
15992
+ strokeWidth: "0.4"
15993
+ }), /*#__PURE__*/React__default.createElement(Path, {
15994
+ d: "M44.1614 27.9388L44.1616 27.939C44.3826 28.1601 44.6733 28.2704 44.963 28.2704C45.2526 28.2704 45.5433 28.1601 45.7643 27.939C45.7643 27.939 45.7643 27.939 45.7643 27.939L51.2223 22.481C51.6654 22.0379 51.6654 21.3225 51.2223 20.8794C50.7792 20.4363 50.0638 20.4363 49.6207 20.8794L44.163 26.3372L44.3041 26.4788L44.1627 26.3374L44.1628 26.3373C43.7195 26.7794 43.7199 27.4959 44.1614 27.9388Z",
15995
+ fill: stroke,
15996
+ stroke: stroke,
15997
+ strokeWidth: "0.4"
15998
+ }), /*#__PURE__*/React__default.createElement(Path, {
15999
+ d: "M51.6867 32.7765C51.6867 33.1416 51.8257 33.43 52.0454 33.6252C52.2614 33.8171 52.5437 33.9087 52.8195 33.9087C53.0953 33.9087 53.3776 33.8171 53.5936 33.6252C53.8133 33.43 53.9523 33.1416 53.9523 32.7765C53.9523 32.4112 53.8134 32.1226 53.5937 31.9272C53.3777 31.7352 53.0954 31.6434 52.8195 31.6434C52.5437 31.6434 52.2613 31.7352 52.0453 31.9272C51.8256 32.1226 51.6867 32.4112 51.6867 32.7765Z",
16000
+ fill: stroke,
16001
+ stroke: stroke,
16002
+ strokeWidth: "0.4"
16003
+ }), /*#__PURE__*/React__default.createElement(Path, {
16004
+ d: "M38.1892 19.2869C38.1892 19.6519 38.3281 19.9404 38.5478 20.1356C38.7638 20.3275 39.0462 20.4191 39.322 20.4191C39.5977 20.4191 39.8801 20.3275 40.0961 20.1356C40.3158 19.9404 40.4548 19.6519 40.4548 19.2869C40.4548 18.9216 40.3158 18.6329 40.0962 18.4376C39.8802 18.2455 39.5978 18.1538 39.322 18.1538C39.0461 18.1538 38.7638 18.2455 38.5478 18.4376C38.3281 18.6329 38.1892 18.9216 38.1892 19.2869Z",
16005
+ fill: stroke,
16006
+ stroke: stroke,
16007
+ strokeWidth: "0.4"
16008
+ })));
16009
+ };
16010
+
16011
+ var Connections = function Connections(_ref) {
16012
+ var stroke = _ref.stroke,
16013
+ fill = _ref.fill,
16014
+ testID = _ref.testID;
16015
+ return /*#__PURE__*/React__default.createElement(Svg, {
16016
+ width: "72",
16017
+ height: "73",
16018
+ viewBox: "0 0 72 73",
16019
+ testID: testID
16020
+ }, /*#__PURE__*/React__default.createElement(Rect, {
16021
+ y: "12.2122",
16022
+ width: "60.6316",
16023
+ height: "60.6316",
16024
+ rx: "20",
16025
+ fill: fill,
16026
+ stroke: "transparent"
16027
+ }), /*#__PURE__*/React__default.createElement(Rect, {
16028
+ x: "13.3684",
16029
+ y: "2.84375",
16030
+ width: "56.6316",
16031
+ height: "56.6316",
16032
+ rx: "18",
16033
+ stroke: stroke,
16034
+ fill: "transparent",
16035
+ strokeWidth: "4"
16036
+ }), /*#__PURE__*/React__default.createElement(G, null, /*#__PURE__*/React__default.createElement(Path, {
16037
+ d: "M36.1528 44.2908C34.083 44.2996 32.0953 43.4778 30.6377 42.0086C29.1729 40.5438 28.3496 38.5574 28.3496 36.486C28.3496 34.4132 29.1728 32.427 30.6377 30.9622L32.8408 28.7591C33.1338 28.4632 33.5337 28.2962 33.9497 28.2962C34.3657 28.2962 34.7656 28.4632 35.0586 28.7591L43.8872 37.5877C44.1831 37.8807 44.3501 38.2806 44.3501 38.6966C44.3501 39.1126 44.1831 39.5125 43.8872 39.8055L41.6841 42.0086C40.2163 43.4734 38.2256 44.2938 36.1528 44.2908ZM33.9497 32.0711L32.8408 33.1653C31.0069 34.9993 31.0069 37.9713 32.8408 39.8054C34.6748 41.6396 37.6468 41.6394 39.481 39.8054L40.5752 38.6966L33.9497 32.0711Z",
16038
+ fill: stroke,
16039
+ strokeWidth: "4"
16040
+ }), /*#__PURE__*/React__default.createElement(Path, {
16041
+ d: "M49.4961 33.6341C49.0786 33.6326 48.6802 33.4642 48.3872 33.1653L39.481 24.3367C39.1851 24.0437 39.0181 23.6438 39.0181 23.2278C39.0181 22.8118 39.1851 22.4119 39.481 22.119L41.6841 19.9158C43.1401 18.4085 45.1396 17.5486 47.236 17.5311C49.3307 17.512 51.3463 18.3367 52.8272 19.8192C54.3096 21.3001 55.1343 23.3157 55.1153 25.4104C55.0977 27.5066 54.2379 29.5062 52.7305 30.9623L50.5274 33.1654C50.255 33.4452 49.8872 33.6121 49.4961 33.6341ZM42.793 23.2278L49.4961 29.8533L50.605 28.7591H50.6064C51.4883 27.8802 51.9849 26.6849 51.9849 25.4383C51.9849 24.1932 51.4883 22.9978 50.6064 22.1189C48.7431 20.3538 45.8282 20.3538 43.9648 22.1189L42.793 23.2278Z",
16042
+ fill: stroke
16043
+ }), /*#__PURE__*/React__default.createElement(Path, {
16044
+ d: "M36.1527 33.634C35.7411 33.6282 35.3471 33.4597 35.0585 33.1653C34.4535 32.5559 34.4535 31.5715 35.0585 30.9622L38.3719 27.6502C38.9916 27.1184 39.9159 27.1551 40.493 27.7322C41.0702 28.3094 41.1053 29.2322 40.575 29.8533L37.2616 33.1653C36.9701 33.4641 36.5702 33.6326 36.1527 33.634Z",
16045
+ fill: stroke
16046
+ }), /*#__PURE__*/React__default.createElement(Path, {
16047
+ d: "M40.5752 38.0565C40.1621 38.0506 39.7696 37.8822 39.481 37.5877C38.8745 36.9784 38.8745 35.994 39.481 35.3846L42.793 32.0726V32.0712C43.414 31.5409 44.3369 31.576 44.914 32.1532C45.4912 32.7303 45.5278 33.6546 44.9961 34.2743L41.6841 37.5877C41.3911 37.8851 40.9927 38.0536 40.5752 38.0565Z",
16048
+ fill: stroke
16049
+ }), /*#__PURE__*/React__default.createElement(Path, {
16050
+ d: "M51.6216 22.5877C51.2056 22.5892 50.8071 22.4266 50.5127 22.1336C50.2168 21.8406 50.0498 21.4407 50.0498 21.0247C50.0498 20.6087 50.2168 20.2088 50.5127 19.9159L56.9815 13.4471C57.5938 12.8333 58.5869 12.8333 59.1992 13.4471C59.813 14.0594 59.813 15.0526 59.1992 15.6649L52.7305 22.1336C52.4361 22.4266 52.0376 22.5892 51.6216 22.5877Z",
16051
+ fill: stroke
16052
+ }), /*#__PURE__*/React__default.createElement(Path, {
16053
+ d: "M26.0586 48.1491C25.644 48.1521 25.2441 47.9895 24.9497 47.6965C24.6538 47.4036 24.4868 47.0036 24.4868 46.5876C24.4868 46.1702 24.6538 45.7717 24.9497 45.4773L30.6377 39.7893V39.7908C31.25 39.177 32.2432 39.177 32.8555 39.7908C33.4693 40.4031 33.4693 41.3962 32.8555 42.0086L27.169 47.6966C26.8731 47.9895 26.4746 48.1521 26.0586 48.1491Z",
16054
+ fill: stroke
16055
+ })));
16056
+ };
16057
+
16058
+ var ErrorIcon = function ErrorIcon(_ref) {
16059
+ var stroke = _ref.stroke,
16060
+ fill = _ref.fill,
16061
+ testID = _ref.testID;
16062
+ return /*#__PURE__*/React__default.createElement(Svg, {
16063
+ width: "72",
16064
+ height: "72",
16065
+ viewBox: "0 0 72 72",
16066
+ testID: testID
16067
+ }, /*#__PURE__*/React__default.createElement(Defs, null, /*#__PURE__*/React__default.createElement(ClipPath, {
16068
+ id: "clip0_19647_1720"
16069
+ }, /*#__PURE__*/React__default.createElement(Rect, {
16070
+ width: "71.6316",
16071
+ height: "72",
16072
+ fill: "white"
16073
+ }))), /*#__PURE__*/React__default.createElement(Rect, {
16074
+ y: "11.3684",
16075
+ width: "60.6316",
16076
+ height: "60.6316",
16077
+ rx: "20",
16078
+ fill: fill,
16079
+ stroke: "transparent"
16080
+ }), /*#__PURE__*/React__default.createElement(Rect, {
16081
+ x: "13",
16082
+ y: "2",
16083
+ width: "56.6316",
16084
+ height: "56.6316",
16085
+ rx: "18",
16086
+ stroke: stroke,
16087
+ fill: "transparent",
16088
+ strokeWidth: "4"
16089
+ }), /*#__PURE__*/React__default.createElement(Rect, {
16090
+ x: "38.8",
16091
+ y: "15.8",
16092
+ width: "4.4",
16093
+ height: "21.4",
16094
+ rx: "1.2",
16095
+ fill: stroke,
16096
+ stroke: stroke,
16097
+ strokeWidth: "0.4"
16098
+ }), /*#__PURE__*/React__default.createElement(Rect, {
16099
+ x: "38.8",
16100
+ y: "40.8",
16101
+ width: "4.4",
16102
+ height: "4.4",
16103
+ rx: "1.2",
16104
+ fill: stroke,
16105
+ stroke: stroke,
16106
+ strokeWidth: "0.4"
16107
+ }));
16108
+ };
16109
+
16110
+ var Info = function Info(_ref) {
16111
+ var stroke = _ref.stroke,
16112
+ fill = _ref.fill,
16113
+ testID = _ref.testID;
16114
+ return /*#__PURE__*/React__default.createElement(Svg, {
16115
+ width: "73",
16116
+ height: "72",
16117
+ viewBox: "0 0 73 72",
16118
+ testID: testID
16119
+ }, /*#__PURE__*/React__default.createElement(Rect, {
16120
+ x: "0.799805",
16121
+ y: "11.3684",
16122
+ width: "60.6316",
16123
+ height: "60.6316",
16124
+ rx: "20",
16125
+ fill: fill,
16126
+ stroke: "transparent"
16127
+ }), /*#__PURE__*/React__default.createElement(Rect, {
16128
+ x: "13.7998",
16129
+ y: "2",
16130
+ width: "56.6316",
16131
+ height: "56.6316",
16132
+ rx: "18",
16133
+ stroke: stroke,
16134
+ fill: "transparent",
16135
+ strokeWidth: "4"
16136
+ }), /*#__PURE__*/React__default.createElement(Path, {
16137
+ d: "M49.1021 17.6145L49.1018 17.6137L49.0596 17.5759C46.6814 15.4509 43.6028 14.4854 40.3885 14.8514L40.3882 14.8515C37.9096 15.138 35.5658 16.2835 33.7948 18.0612C32.0167 19.8461 30.904 22.1971 30.6572 24.6761C30.4511 26.5531 30.7238 28.4444 31.4371 30.1375L31.4373 30.1379C32.1233 31.7564 33.2083 33.2013 34.5796 34.3203C35.389 35.0195 35.8306 35.9376 35.8306 36.902C35.8306 36.9343 35.8329 36.965 35.8345 36.9863C35.8363 37.0109 35.8371 37.023 35.8371 37.0325V41.2545C35.8371 43.4251 37.5993 45.2245 39.7811 45.2245H43.5657C45.7397 45.2245 47.5097 43.4394 47.5097 41.2675V41.2671L47.5032 37.0652C47.5032 36.0799 47.9445 35.1119 48.683 34.4765C51.2707 32.3271 52.7627 29.1914 52.7627 25.8745L52.7627 25.874C52.756 22.7112 51.4274 19.7113 49.1021 17.6145ZM46.9725 32.4155L46.9643 32.4223L46.9568 32.4298C46.9416 32.445 46.9297 32.4607 46.9206 32.475C46.0459 33.2353 45.4139 34.2392 45.0849 35.3722H43.0073V29.3904C43.6033 29.2588 44.0513 28.7269 44.0513 28.0926C44.0513 27.3553 43.4549 26.7588 42.7175 26.7588H40.6294C39.8921 26.7588 39.2957 27.3553 39.2957 28.0926C39.2957 28.7334 39.7442 29.2601 40.3397 29.3906V35.3722H38.2855C37.9624 34.166 37.2877 33.1393 36.3257 32.3112C36.3232 32.3078 36.3199 32.3035 36.3161 32.2987C36.3118 32.2936 36.306 32.2869 36.2988 32.2797L36.2905 32.2714L36.2815 32.2641C35.2398 31.4192 34.414 30.3202 33.8999 29.1016C33.3542 27.807 33.1566 26.4097 33.3095 24.958L33.3107 24.9462V24.9344V24.9327C33.7029 21.0834 36.8018 17.9543 40.6943 17.5033C43.1443 17.2234 45.4881 17.9548 47.2919 19.5684L47.2921 19.5685C49.0709 21.1567 50.0946 23.451 50.0948 25.8669C50.0884 28.3832 48.9577 30.7739 46.9725 32.4155ZM43.5658 42.5499H39.7812C39.0814 42.5499 38.5048 41.9573 38.5048 41.2475V38.0398H41.4386C41.456 38.0398 41.4767 38.0427 41.5191 38.0498L41.5242 38.0506C41.5603 38.0567 41.6154 38.0659 41.6735 38.0659C41.7318 38.0659 41.7887 38.0566 41.8258 38.0505L41.8296 38.0499C41.8748 38.0425 41.8944 38.0398 41.9084 38.0398H44.836L44.8421 41.2739C44.8421 41.274 44.8421 41.2741 44.8421 41.2743C44.8419 41.9788 44.2705 42.5499 43.5658 42.5499Z",
16138
+ fill: stroke
16139
+ }));
16140
+ };
16141
+
16142
+ var List$1 = function List(_ref) {
16143
+ var stroke = _ref.stroke,
16144
+ fill = _ref.fill,
16145
+ testID = _ref.testID;
16146
+ return /*#__PURE__*/React__default.createElement(Svg, {
16147
+ width: "73",
16148
+ height: "72",
16149
+ viewBox: "0 0 73 72",
16150
+ testID: testID
16151
+ }, /*#__PURE__*/React__default.createElement(Rect, {
16152
+ x: "0.199951",
16153
+ y: "11.3684",
16154
+ width: "60.6316",
16155
+ height: "60.6316",
16156
+ rx: "20",
16157
+ fill: fill,
16158
+ stroke: "transparent"
16159
+ }), /*#__PURE__*/React__default.createElement(Rect, {
16160
+ x: "13.5684",
16161
+ y: "2",
16162
+ width: "56.6316",
16163
+ height: "56.6316",
16164
+ rx: "18",
16165
+ stroke: stroke,
16166
+ fill: "transparent",
16167
+ strokeWidth: "4"
16168
+ }), /*#__PURE__*/React__default.createElement(Path, {
16169
+ fillRule: "evenodd",
16170
+ clipRule: "evenodd",
16171
+ d: "M33.0421 20C31.4724 20 30.2 21.2725 30.2 22.8421C30.2 24.4118 31.4724 25.6842 33.0421 25.6842C34.6117 25.6842 35.8842 24.4118 35.8842 22.8421C35.8842 21.2725 34.6117 20 33.0421 20ZM39.6736 20.9474C38.6272 20.9474 37.7789 21.7957 37.7789 22.8421C37.7789 23.8885 38.6272 24.7368 39.6736 24.7368H51.0421C52.0885 24.7368 52.9368 23.8885 52.9368 22.8421C52.9368 21.7957 52.0885 20.9474 51.0421 20.9474H39.6736ZM39.6737 28.5263C38.6272 28.5263 37.7789 29.3746 37.7789 30.421C37.7789 31.4675 38.6272 32.3158 39.6737 32.3158H51.0421C52.0885 32.3158 52.9368 31.4675 52.9368 30.421C52.9368 29.3746 52.0885 28.5263 51.0421 28.5263H39.6737ZM37.7789 38C37.7789 36.9536 38.6272 36.1053 39.6736 36.1053H51.0421C52.0885 36.1053 52.9368 36.9536 52.9368 38C52.9368 39.0464 52.0885 39.8947 51.0421 39.8947H39.6736C38.6272 39.8947 37.7789 39.0464 37.7789 38ZM30.2 30.4211C30.2 28.8514 31.4724 27.5789 33.0421 27.5789C34.6117 27.5789 35.8842 28.8514 35.8842 30.4211C35.8842 31.9907 34.6117 33.2632 33.0421 33.2632C31.4724 33.2632 30.2 31.9907 30.2 30.4211ZM33.0421 35.1579C31.4724 35.1579 30.2 36.4304 30.2 38C30.2 39.5697 31.4724 40.8421 33.0421 40.8421C34.6117 40.8421 35.8842 39.5697 35.8842 38C35.8842 36.4304 34.6117 35.1579 33.0421 35.1579Z",
16172
+ fill: stroke
16173
+ }));
16174
+ };
16175
+
16176
+ var Location = function Location(_ref) {
16177
+ var stroke = _ref.stroke,
16178
+ fill = _ref.fill,
16179
+ testID = _ref.testID;
16180
+ return /*#__PURE__*/React__default.createElement(Svg, {
16181
+ width: "73",
16182
+ height: "73",
16183
+ viewBox: "0 0 73 73",
16184
+ testID: testID
16185
+ }, /*#__PURE__*/React__default.createElement(Rect, {
16186
+ x: "0.615723",
16187
+ y: "12.2122",
16188
+ width: "60.6316",
16189
+ height: "60.6316",
16190
+ rx: "20",
16191
+ fill: fill,
16192
+ stroke: "transparent"
16193
+ }), /*#__PURE__*/React__default.createElement(Rect, {
16194
+ x: "13.9841",
16195
+ y: "2.84375",
16196
+ width: "56.6316",
16197
+ height: "56.6316",
16198
+ rx: "18",
16199
+ stroke: stroke,
16200
+ fill: "transparent",
16201
+ strokeWidth: "4"
16202
+ }), /*#__PURE__*/React__default.createElement(Path, {
16203
+ d: "M42.4699 46.0151L42.6157 46.1392L42.7615 46.0151C46.7952 42.5827 49.8178 39.3865 51.8208 36.4261C53.8234 33.4663 54.8407 30.7039 54.8407 28.1437C54.8407 24.3408 53.615 21.2897 51.1495 19.0159C48.697 16.754 45.8493 15.6188 42.6157 15.6188C39.3821 15.6188 36.5344 16.754 34.0819 19.0159C31.6165 21.2897 30.3907 24.3408 30.3907 28.1437C30.3907 30.7039 31.4081 33.4663 33.4106 36.4261C35.4136 39.3865 38.4362 42.5827 42.4699 46.0151ZM42.6157 31.0688C43.5009 31.0688 44.2642 30.751 44.8936 30.1216C45.5229 29.4922 45.8407 28.7289 45.8407 27.8438C45.8407 26.9586 45.5229 26.1953 44.8936 25.5659C44.2642 24.9365 43.5009 24.6187 42.6157 24.6187C41.7306 24.6187 40.9672 24.9365 40.3379 25.5659C39.7085 26.1953 39.3907 26.9586 39.3907 27.8438C39.3907 28.7289 39.7085 29.4922 40.3379 30.1216C40.9672 30.751 41.7306 31.0688 42.6157 31.0688ZM49.2141 34.1156C47.7779 36.343 45.581 38.8254 42.6157 41.5629C39.6504 38.8254 37.4536 36.343 36.0173 34.1156C34.5542 31.8464 33.8407 29.8582 33.8407 28.1437C33.8407 25.4713 34.6906 23.2996 36.3811 21.6091C38.0751 19.9151 40.1486 19.0687 42.6157 19.0687C45.0829 19.0687 47.1564 19.9151 48.8504 21.6091C50.5409 23.2996 51.3907 25.4713 51.3907 28.1437C51.3907 29.8582 50.6773 31.8464 49.2141 34.1156Z",
16204
+ fill: stroke,
16205
+ stroke: stroke,
16206
+ strokeWidth: "0.45"
16207
+ }));
16208
+ };
16209
+
16210
+ var Merge = function Merge(_ref) {
16211
+ var stroke = _ref.stroke,
16212
+ fill = _ref.fill,
16213
+ testID = _ref.testID;
16214
+ return /*#__PURE__*/React__default.createElement(Svg, {
16215
+ width: "73",
16216
+ height: "73",
16217
+ viewBox: "0 0 73 73",
16218
+ testID: testID
16219
+ }, /*#__PURE__*/React__default.createElement(Rect, {
16220
+ x: "0.100098",
16221
+ y: "12.2122",
16222
+ width: "60.6316",
16223
+ height: "60.6316",
16224
+ rx: "20",
16225
+ fill: fill,
16226
+ stroke: "transparent"
16227
+ }), /*#__PURE__*/React__default.createElement(Rect, {
16228
+ x: "13.4685",
16229
+ y: "2.84375",
16230
+ width: "56.6316",
16231
+ height: "56.6316",
16232
+ rx: "18",
16233
+ stroke: stroke,
16234
+ fill: "transparent",
16235
+ strokeWidth: "4"
16236
+ }), /*#__PURE__*/React__default.createElement(Rect, {
16237
+ x: "1.41239",
16238
+ y: "2.44635",
16239
+ width: "16.2083",
16240
+ height: "16.1187",
16241
+ rx: "2",
16242
+ transform: "matrix(0.966256 0.257583 -0.26006 0.965592 40.0996 23.1208)",
16243
+ stroke: stroke,
16244
+ fill: "transparent",
16245
+ strokeWidth: "4"
16246
+ }), /*#__PURE__*/React__default.createElement(Path, {
16247
+ fillRule: "evenodd",
16248
+ clipRule: "evenodd",
16249
+ d: "M47.1946 25.4544L48.3756 29.8395C48.9501 31.9726 47.6854 34.1632 45.5508 34.7322L35.6831 37.3627L38.4064 27.2513C38.9809 25.1182 41.1771 23.8502 43.3117 24.4193L47.1946 25.4544Z",
16250
+ fill: stroke
16251
+ }), /*#__PURE__*/React__default.createElement(Rect, {
16252
+ x: "2.45263",
16253
+ y: "1.41602",
16254
+ width: "16.2083",
16255
+ height: "16.1187",
16256
+ rx: "2",
16257
+ transform: "matrix(0.966256 -0.257583 0.26006 0.965592 24.341 20.1727)",
16258
+ stroke: stroke,
16259
+ fill: "transparent",
16260
+ strokeWidth: "4"
16261
+ }));
16262
+ };
16263
+
16264
+ var Notifications = function Notifications(_ref) {
16265
+ var stroke = _ref.stroke,
16266
+ fill = _ref.fill,
16267
+ testID = _ref.testID;
16268
+ return /*#__PURE__*/React__default.createElement(Svg, {
16269
+ width: "72",
16270
+ height: "73",
16271
+ viewBox: "0 0 72 73",
16272
+ testID: testID
16273
+ }, /*#__PURE__*/React__default.createElement(Rect, {
16274
+ y: "12.3684",
16275
+ width: "60.6316",
16276
+ height: "60.6316",
16277
+ rx: "20",
16278
+ fill: fill,
16279
+ stroke: "transparent"
16280
+ }), /*#__PURE__*/React__default.createElement(Path, {
16281
+ fillRule: "evenodd",
16282
+ clipRule: "evenodd",
16283
+ d: "M41.3158 57.6316C36.4516 57.6316 33.0101 57.6293 30.3073 57.4391C27.6421 57.2516 25.9982 56.8957 24.6942 56.3366C20.9204 54.7183 17.9133 51.7111 16.295 47.9374C15.7358 46.6334 15.38 44.9895 15.1925 42.3242C15.0023 39.6215 15 36.18 15 31.3158C15 26.4516 15.0023 23.0101 15.1925 20.3073C15.38 17.6421 15.7358 15.9982 16.295 14.6942C17.9133 10.9204 20.9204 7.91326 24.6942 6.29499C25.9982 5.73584 27.6421 5.38001 30.3073 5.19248C33.0101 5.0023 36.4516 5 41.3158 5C46.18 5 49.6215 5.0023 52.3242 5.19248C54.9895 5.38001 56.6334 5.73584 57.9374 6.29499C61.7111 7.91326 64.7183 10.9204 66.3366 14.6942C66.8957 15.9982 67.2516 17.6421 67.4391 20.3073C67.6293 23.0101 67.6316 26.4516 67.6316 31.3158C67.6316 36.18 67.6293 39.6215 67.4391 42.3242C67.2516 44.9895 66.8957 46.6334 66.3366 47.9374C64.7183 51.7111 61.7111 54.7183 57.9374 56.3366C56.6334 56.8957 54.9895 57.2516 52.3242 57.4391C49.6215 57.6293 46.18 57.6316 41.3158 57.6316ZM11 31.3158C11 21.7004 11 16.8927 12.6187 13.1178C14.6416 8.40056 18.4006 4.64158 23.1178 2.61874C26.8927 1 31.7004 1 41.3158 1C50.9312 1 55.7389 1 59.5138 2.61874C64.231 4.64158 67.99 8.40056 70.0128 13.1178C71.6316 16.8927 71.6316 21.7004 71.6316 31.3158C71.6316 40.9312 71.6316 45.7389 70.0128 49.5138C67.99 54.231 64.231 57.99 59.5138 60.0128C55.7389 61.6316 50.9312 61.6316 41.3158 61.6316C31.7004 61.6316 26.8927 61.6316 23.1178 60.0128C18.4006 57.99 14.6416 54.231 12.6187 49.5138C11 45.7389 11 40.9312 11 31.3158ZM49.1787 28.1109C49.1798 28.1439 49.1803 28.1771 49.1803 28.2103V34.4277C49.1803 34.4429 49.1802 34.4581 49.18 34.4733H50.6539C51.4678 34.4733 52.1276 35.1331 52.1276 35.947C52.1276 36.7609 51.4678 37.4206 50.6539 37.4206H31.4737C30.6598 37.4206 30 36.7609 30 35.947C30 35.1331 30.6598 34.4733 31.4737 34.4733H33.7073C33.7071 34.4581 33.7069 34.4429 33.7069 34.4277V28.2103C33.7069 28.1771 33.7075 28.1439 33.7085 28.111C33.7075 28.05 33.7069 27.9889 33.7069 27.9277C33.7069 23.5781 36.6526 19 41.4436 19C46.2346 19 49.1803 23.5781 49.1803 27.9277C49.1803 27.9889 49.1798 28.05 49.1787 28.1109ZM36.6521 34.4277V28.2105L36.6574 28.2103C36.6539 28.1167 36.6521 28.0225 36.6521 27.9277C36.6521 27.833 36.6539 27.7388 36.6574 27.6451C36.7765 24.4987 38.8738 21.993 41.4436 21.993C44.0134 21.993 46.1107 24.4987 46.2298 27.6451C46.2334 27.7388 46.2352 27.833 46.2352 27.9277C46.2352 28.0225 46.2334 28.1167 46.2298 28.2103L46.2352 28.2105V34.4277H36.6521ZM41.1865 45C38.8173 45 36.8684 43.2009 36.6314 40.8943H39.1591C39.3734 41.8157 40.1998 42.5023 41.1865 42.5023C42.1731 42.5023 42.9995 41.8157 43.2138 40.8943H45.7415C45.5045 43.2009 43.5556 45 41.1865 45Z",
16284
+ fill: stroke
16285
+ }));
16286
+ };
16287
+
16288
+ var Search$1 = function Search(_ref) {
16289
+ var stroke = _ref.stroke,
16290
+ fill = _ref.fill,
16291
+ testID = _ref.testID;
16292
+ return /*#__PURE__*/React__default.createElement(Svg, {
16293
+ width: "72",
16294
+ height: "72",
16295
+ viewBox: "0 0 72 72",
16296
+ testID: testID
16297
+ }, /*#__PURE__*/React__default.createElement(Rect, {
16298
+ y: "11.3684",
16299
+ width: "60.6316",
16300
+ height: "60.6316",
16301
+ rx: "20",
16302
+ fill: fill,
16303
+ stroke: "transparent"
16304
+ }), /*#__PURE__*/React__default.createElement(Rect, {
16305
+ x: "13.3684",
16306
+ y: "2",
16307
+ width: "56.6316",
16308
+ height: "56.6316",
16309
+ rx: "18",
16310
+ stroke: stroke,
16311
+ fill: "transparent",
16312
+ strokeWidth: "4"
16313
+ }), /*#__PURE__*/React__default.createElement(Path, {
16314
+ d: "M52.8697 41.5015L52.8705 41.5007C53.5138 40.8559 53.5137 39.8753 52.869 39.2306C52.869 39.2306 52.869 39.2306 52.869 39.2306L46.1982 32.5588C47.1965 31.1525 47.751 29.3916 47.751 27.514C47.751 22.6035 43.7947 18.6474 38.8841 18.6474C33.9734 18.6474 30.0159 22.6047 30.0159 27.5152C30.0159 32.4258 33.9722 36.3819 38.8828 36.3819C40.7683 36.3819 42.4693 35.823 43.9243 34.8256L50.5999 41.5009C50.9175 41.8186 51.323 41.9842 51.7351 41.9842C52.1475 41.9842 52.5514 41.8183 52.8697 41.5015ZM38.8841 33.1463C35.7542 33.1463 33.2529 30.645 33.2529 27.5152C33.2529 24.3855 35.7542 21.8842 38.8841 21.8842C42.0139 21.8842 44.5153 24.3855 44.5153 27.5152C44.5153 30.6437 42.0127 33.1463 38.8841 33.1463Z",
16315
+ fill: stroke,
16316
+ stroke: stroke,
16317
+ strokeWidth: "0.6"
16318
+ }));
16319
+ };
16320
+
16321
+ var Star = function Star(_ref) {
16322
+ var stroke = _ref.stroke,
16323
+ fill = _ref.fill,
16324
+ testID = _ref.testID;
16325
+ return /*#__PURE__*/React__default.createElement(Svg, {
16326
+ width: "73",
16327
+ height: "73",
16328
+ viewBox: "0 0 73 73",
16329
+ testID: testID
16330
+ }, /*#__PURE__*/React__default.createElement(Rect, {
16331
+ x: "0.199951",
16332
+ y: "12.2122",
16333
+ width: "60.6316",
16334
+ height: "60.6316",
16335
+ rx: "20",
16336
+ fill: fill,
16337
+ stroke: "transparent"
16338
+ }), /*#__PURE__*/React__default.createElement(Rect, {
16339
+ x: "13.5684",
16340
+ y: "2.84375",
16341
+ width: "56.6316",
16342
+ height: "56.6316",
16343
+ rx: "18",
16344
+ stroke: stroke,
16345
+ fill: "transparent",
16346
+ strokeWidth: "4"
16347
+ }), /*#__PURE__*/React__default.createElement(Path, {
16348
+ d: "M47.3478 43.1168L47.3612 43.1205L47.3748 43.1225C47.5985 43.1559 47.7728 43.1811 47.8971 43.198C48.0112 43.2134 48.1035 43.225 48.1452 43.225C48.9231 43.225 49.6046 42.9321 50.1801 42.3595C50.7616 41.781 51.0409 41.0649 51.017 40.2273C51.017 40.2271 51.0169 40.227 51.0169 40.2269L50.8848 34.8358L54.5252 29.6994C54.5255 29.699 54.5258 29.6986 54.5262 29.6981C54.7183 29.4349 54.8588 29.1566 54.9448 28.8633C55.0287 28.5769 55.0711 28.289 55.0711 28C55.0711 27.3755 54.8891 26.8027 54.5278 26.2875C54.1632 25.7676 53.6637 25.411 53.0384 25.219L47.4099 23.3415L43.7012 18.5646C43.7008 18.5641 43.7005 18.5637 43.7002 18.5633C43.412 18.1813 43.0652 17.8952 42.6593 17.7117C42.2618 17.5319 41.8449 17.4417 41.4107 17.4417C40.9765 17.4417 40.5596 17.5319 40.1621 17.7117C39.7563 17.8952 39.4094 18.1813 39.1212 18.5633L35.4115 23.3415L29.7804 25.2199L29.7804 25.2199L29.7783 25.2206C29.1547 25.4354 28.6614 25.803 28.3084 26.3237C27.9603 26.8372 27.7838 27.3976 27.7838 28C27.7838 28.289 27.8262 28.5769 27.9101 28.8633C27.9961 29.1565 28.1365 29.4349 28.3287 29.698C28.329 29.6985 28.3294 29.699 28.3297 29.6994L31.9366 34.8023L31.8045 40.2269C31.8045 40.227 31.8044 40.2272 31.8044 40.2274C31.7805 41.065 32.0599 41.7811 32.6413 42.3595C33.2168 42.9321 33.8983 43.225 34.6762 43.225C34.7952 43.225 34.9244 43.2191 35.0634 43.2076L35.0448 42.9833L35.0634 43.2076C35.2125 43.1952 35.3534 43.1645 35.4847 43.1137L41.4107 41.4669L47.3478 43.1168ZM37.2593 26.0471L37.3253 26.0254L37.3676 25.9703L41.4107 20.7029L45.4538 25.9703L45.4954 26.0245L45.5602 26.0465L51.7749 28.1499L47.7937 33.8038L47.7511 33.8642L47.7527 33.938L47.8804 40.0353L41.4711 38.2499L41.4112 38.2332L41.3513 38.2496L34.941 40.0035L35.0687 33.9381L35.0703 33.8649L35.0284 33.8048L31.0466 28.0862L37.2593 26.0471Z",
16349
+ fill: stroke,
16350
+ stroke: stroke,
16351
+ strokeWidth: "0.45"
16352
+ }));
16353
+ };
16354
+
16355
+ var User = function User(_ref) {
16356
+ var stroke = _ref.stroke,
16357
+ fill = _ref.fill,
16358
+ testID = _ref.testID;
16359
+ return /*#__PURE__*/React__default.createElement(Svg, {
16360
+ width: "73",
16361
+ height: "72",
16362
+ viewBox: "0 0 73 72",
16363
+ testID: testID
16364
+ }, /*#__PURE__*/React__default.createElement(Rect, {
16365
+ x: "0.799805",
16366
+ y: "11.3684",
16367
+ width: "60.6316",
16368
+ height: "60.6316",
16369
+ rx: "20",
16370
+ fill: fill,
16371
+ stroke: "transparent"
16372
+ }), /*#__PURE__*/React__default.createElement(Rect, {
16373
+ x: "13.7998",
16374
+ y: "2",
16375
+ width: "56.6316",
16376
+ height: "56.6316",
16377
+ rx: "18",
16378
+ stroke: stroke,
16379
+ fill: "transparent",
16380
+ strokeWidth: "4"
16381
+ }), /*#__PURE__*/React__default.createElement(Path, {
16382
+ fillRule: "evenodd",
16383
+ clipRule: "evenodd",
16384
+ d: "M39.6629 34.967C37.551 34.967 35.839 36.679 35.839 38.7909C35.839 39.4337 36.36 39.9547 37.0028 39.9547H47.6433C48.2861 39.9547 48.8071 39.4337 48.8071 38.7909C48.8071 36.679 47.0951 34.967 44.9832 34.967H39.6629ZM51.7998 38.7909C51.7998 41.0865 49.9389 42.9474 47.6433 42.9474H37.0028C34.7072 42.9474 32.8463 41.0865 32.8463 38.7909C32.8463 35.0262 35.8982 31.9743 39.6629 31.9743H44.9832C48.7479 31.9743 51.7998 35.0262 51.7998 38.7909Z",
16385
+ fill: stroke
16386
+ }), /*#__PURE__*/React__default.createElement(Path, {
16387
+ fillRule: "evenodd",
16388
+ clipRule: "evenodd",
16389
+ d: "M42.3231 21.0012C40.9457 21.0012 39.8292 22.1178 39.8292 23.4951C39.8292 24.8724 40.9457 25.989 42.3231 25.989C43.7004 25.989 44.8169 24.8724 44.8169 23.4951C44.8169 22.1178 43.7004 21.0012 42.3231 21.0012ZM36.8365 23.4951C36.8365 20.465 39.2929 18.0086 42.3231 18.0086C45.3532 18.0086 47.8096 20.465 47.8096 23.4951C47.8096 26.5252 45.3532 28.9816 42.3231 28.9816C39.2929 28.9816 36.8365 26.5252 36.8365 23.4951Z",
16390
+ fill: stroke
16391
+ }));
16392
+ };
16393
+
16394
+ var Success$1 = function Success(_ref) {
16395
+ var stroke = _ref.stroke,
16396
+ fill = _ref.fill,
16397
+ testID = _ref.testID;
16398
+ return /*#__PURE__*/React__default.createElement(Svg, {
16399
+ width: "72",
16400
+ height: "72",
16401
+ viewBox: "0 0 72 72",
16402
+ testID: testID
16403
+ }, /*#__PURE__*/React__default.createElement(Defs, null, /*#__PURE__*/React__default.createElement(ClipPath, {
16404
+ id: "clip0_19647_1726"
16405
+ }, /*#__PURE__*/React__default.createElement(Rect, {
16406
+ width: "71.6316",
16407
+ height: "72",
16408
+ fill: "white"
16409
+ }))), /*#__PURE__*/React__default.createElement(Rect, {
16410
+ y: "11.3684",
16411
+ width: "60.6316",
16412
+ height: "60.6316",
16413
+ rx: "20",
16414
+ fill: fill,
16415
+ stroke: "transparent"
16416
+ }), /*#__PURE__*/React__default.createElement(Path, {
16417
+ fillRule: "evenodd",
16418
+ clipRule: "evenodd",
16419
+ d: "M53.5235 19.5692L53.5265 19.5662C52.9085 19.6113 52.3367 19.8945 51.934 20.3553L38.3475 35.8072L31.977 29.3614H31.9739C31.5435 28.9306 30.9563 28.6836 30.3383 28.6776C29.7234 28.6716 29.13 28.9065 28.6903 29.3312C27.7834 30.2047 27.768 31.6355 28.6565 32.53L36.776 40.7468C37.228 41.2047 37.8582 41.4547 38.5069 41.4366C39.1587 41.4185 39.7706 41.1324 40.1948 40.6505L55.4381 23.3039V23.3009C56.2713 22.3551 56.1668 20.9214 55.1983 20.1021C54.7341 19.7166 54.1314 19.5238 53.5258 19.569L53.5235 19.5692Z",
16420
+ fill: stroke
16421
+ }), /*#__PURE__*/React__default.createElement(Rect, {
16422
+ x: "13",
16423
+ y: "2",
16424
+ width: "56.6316",
16425
+ height: "56.6316",
16426
+ rx: "18",
16427
+ stroke: stroke,
16428
+ fill: "transparent",
16429
+ strokeWidth: "4"
16430
+ }));
16431
+ };
16432
+
16433
+ var StatusIcons = {
16434
+ add: Add,
16435
+ boom: Boom,
16436
+ build: Build,
16437
+ clock: Clock,
16438
+ connections: Connections,
16439
+ list: List$1,
16440
+ location: Location,
16441
+ merge: Merge,
16442
+ notifications: Notifications,
16443
+ search: Search$1,
16444
+ star: Star,
16445
+ user: User,
16446
+ confetti: Confetti,
16447
+ error: ErrorIcon,
16448
+ info: Info,
16449
+ success: Success$1
16450
+ };
16451
+ var StatusIcon = function StatusIcon(_ref) {
16452
+ var icon = _ref.icon,
16453
+ testID = _ref.testID;
16454
+ var Icon = StatusIcons[icon];
16455
+ var theme = useTheme();
16456
+ return Icon && /*#__PURE__*/React__default.createElement(Icon, {
16457
+ stroke: theme.colors.primary,
16458
+ fill: theme.colors.decorativeSecondarySurface,
16459
+ testID: testID
16460
+ });
16461
+ };
16462
+
15710
16463
  var StyledWrapper$7 = index$a(View)(function (_ref) {
15711
16464
  var theme = _ref.theme;
15712
16465
  return {
@@ -15735,24 +16488,45 @@ var StyledDescription = index$a(Typography.Body)(function (_ref3) {
15735
16488
  color: themeVariant === 'dark' ? theme.__hd__.empty.colors.invertedSubduedText : theme.__hd__.empty.colors.subduedText
15736
16489
  };
15737
16490
  });
16491
+ var StyledEmptyImageContainer = index$a(View)(function (_ref4) {
16492
+ var theme = _ref4.theme;
16493
+ return {
16494
+ marginBottom: theme.__hd__.empty.space.imageMargin
16495
+ };
16496
+ });
15738
16497
 
15739
- var Empty = function Empty(_ref) {
16498
+ var renderImageOrIcon$2 = function renderImageOrIcon(_ref) {
15740
16499
  var image = _ref.image,
15741
- title = _ref.title,
15742
- description = _ref.description,
15743
- style = _ref.style,
15744
- testID = _ref.testID,
15745
- _ref$variant = _ref.variant,
15746
- variant = _ref$variant === void 0 ? 'light' : _ref$variant;
15747
- var theme = useTheme();
16500
+ icon = _ref.icon;
16501
+ if (icon) {
16502
+ return /*#__PURE__*/React__default.createElement(StyledEmptyImageContainer, null, /*#__PURE__*/React__default.createElement(StatusIcon, {
16503
+ icon: icon,
16504
+ testID: "empty-icon"
16505
+ }));
16506
+ }
16507
+ if (image) {
16508
+ return /*#__PURE__*/React__default.createElement(StyledEmptyImageContainer, {
16509
+ testID: "empty-image"
16510
+ }, image);
16511
+ }
16512
+ return null;
16513
+ };
16514
+ var Empty = function Empty(_ref2) {
16515
+ var image = _ref2.image,
16516
+ title = _ref2.title,
16517
+ description = _ref2.description,
16518
+ style = _ref2.style,
16519
+ testID = _ref2.testID,
16520
+ _ref2$variant = _ref2.variant,
16521
+ variant = _ref2$variant === void 0 ? 'light' : _ref2$variant,
16522
+ icon = _ref2.icon;
15748
16523
  return /*#__PURE__*/React__default.createElement(StyledWrapper$7, {
15749
16524
  style: style,
15750
16525
  testID: testID
15751
- }, image !== undefined && /*#__PURE__*/React__default.cloneElement(image, _objectSpread2(_objectSpread2({}, image.props), {}, {
15752
- style: [{
15753
- marginBottom: theme.__hd__.empty.space.imageMargin
15754
- }, image.props.style]
15755
- })), /*#__PURE__*/React__default.createElement(StyledTitle, {
16526
+ }, renderImageOrIcon$2({
16527
+ image: image,
16528
+ icon: icon
16529
+ }), /*#__PURE__*/React__default.createElement(StyledTitle, {
15756
16530
  themeVariant: variant,
15757
16531
  level: "h4",
15758
16532
  typeface: "playful"
@@ -16171,7 +16945,7 @@ var StyledErrorDescription = index$a(Typography.Body)(function (_ref9) {
16171
16945
  };
16172
16946
  });
16173
16947
 
16174
- var _excluded$o = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
16948
+ var _excluded$o = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress", "icon"],
16175
16949
  _excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
16176
16950
  var renderImage$1 = function renderImage(image) {
16177
16951
  if ( /*#__PURE__*/isValidElement(image)) {
@@ -16186,25 +16960,43 @@ var renderImage$1 = function renderImage(image) {
16186
16960
  testID: "error-image"
16187
16961
  });
16188
16962
  };
16189
- var ErrorPage = function ErrorPage(_ref) {
16190
- var _ref$variant = _ref.variant,
16191
- variant = _ref$variant === void 0 ? 'in-page' : _ref$variant,
16192
- title = _ref.title,
16193
- description = _ref.description,
16194
- image = _ref.image,
16195
- testID = _ref.testID,
16196
- ctaText = _ref.ctaText,
16197
- onCtaPress = _ref.onCtaPress,
16198
- secondaryCtaText = _ref.secondaryCtaText,
16199
- onSecondaryCtaPress = _ref.onSecondaryCtaPress,
16200
- nativeProps = _objectWithoutProperties(_ref, _excluded$o);
16963
+ var renderImageOrIcon$1 = function renderImageOrIcon(_ref) {
16964
+ var image = _ref.image,
16965
+ icon = _ref.icon;
16966
+ if (icon) {
16967
+ return /*#__PURE__*/React__default.createElement(StyledErrorImageContainer, null, /*#__PURE__*/React__default.createElement(StatusIcon, {
16968
+ icon: icon,
16969
+ testID: "error-icon"
16970
+ }));
16971
+ }
16972
+ if (image) {
16973
+ return /*#__PURE__*/React__default.createElement(StyledErrorImageContainer, null, renderImage$1(image));
16974
+ }
16975
+ return null;
16976
+ };
16977
+ var ErrorPage = function ErrorPage(_ref2) {
16978
+ var _ref2$variant = _ref2.variant,
16979
+ variant = _ref2$variant === void 0 ? 'in-page' : _ref2$variant,
16980
+ title = _ref2.title,
16981
+ description = _ref2.description,
16982
+ image = _ref2.image,
16983
+ testID = _ref2.testID,
16984
+ ctaText = _ref2.ctaText,
16985
+ onCtaPress = _ref2.onCtaPress,
16986
+ secondaryCtaText = _ref2.secondaryCtaText,
16987
+ onSecondaryCtaPress = _ref2.onSecondaryCtaPress,
16988
+ icon = _ref2.icon,
16989
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$o);
16201
16990
  var showCta = ctaText && onCtaPress !== undefined;
16202
16991
  var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
16203
16992
  var showButtonContainer = showCta || showSecondaryCta;
16204
16993
  return /*#__PURE__*/React__default.createElement(StyledErrorContainer$1, _extends$1({
16205
16994
  testID: testID,
16206
16995
  themeVariant: variant
16207
- }, nativeProps), /*#__PURE__*/React__default.createElement(StyledErrorContent, null, image && /*#__PURE__*/React__default.createElement(StyledErrorImageContainer, null, renderImage$1(image)), /*#__PURE__*/React__default.createElement(StyledErrorTitle, {
16996
+ }, nativeProps), /*#__PURE__*/React__default.createElement(StyledErrorContent, null, renderImageOrIcon$1({
16997
+ image: image,
16998
+ icon: icon
16999
+ }), /*#__PURE__*/React__default.createElement(StyledErrorTitle, {
16208
17000
  level: "h4",
16209
17001
  typeface: "playful"
16210
17002
  }, title), description && /*#__PURE__*/React__default.createElement(StyledErrorDescription, {
@@ -16225,20 +17017,20 @@ var ErrorPage = function ErrorPage(_ref) {
16225
17017
  * @param {ErrorProps}
16226
17018
  * @return {*} {ReactElement}
16227
17019
  */
16228
- var ErrorComponent = function ErrorComponent(_ref2) {
16229
- var _ref2$visible = _ref2.visible,
16230
- visible = _ref2$visible === void 0 ? true : _ref2$visible,
16231
- _ref2$variant = _ref2.variant,
16232
- variant = _ref2$variant === void 0 ? 'in-page' : _ref2$variant,
16233
- title = _ref2.title,
16234
- description = _ref2.description,
16235
- image = _ref2.image,
16236
- testID = _ref2.testID,
16237
- ctaText = _ref2.ctaText,
16238
- onCtaPress = _ref2.onCtaPress,
16239
- secondaryCtaText = _ref2.secondaryCtaText,
16240
- onSecondaryCtaPress = _ref2.onSecondaryCtaPress,
16241
- nativeProps = _objectWithoutProperties(_ref2, _excluded2);
17020
+ var ErrorComponent = function ErrorComponent(_ref3) {
17021
+ var _ref3$visible = _ref3.visible,
17022
+ visible = _ref3$visible === void 0 ? true : _ref3$visible,
17023
+ _ref3$variant = _ref3.variant,
17024
+ variant = _ref3$variant === void 0 ? 'in-page' : _ref3$variant,
17025
+ title = _ref3.title,
17026
+ description = _ref3.description,
17027
+ image = _ref3.image,
17028
+ testID = _ref3.testID,
17029
+ ctaText = _ref3.ctaText,
17030
+ onCtaPress = _ref3.onCtaPress,
17031
+ secondaryCtaText = _ref3.secondaryCtaText,
17032
+ onSecondaryCtaPress = _ref3.onSecondaryCtaPress,
17033
+ nativeProps = _objectWithoutProperties(_ref3, _excluded2);
16242
17034
  useDeprecation("Visible prop is deprecated. Use conditional rendering instead", visible);
16243
17035
  var _useState = useState(visible),
16244
17036
  _useState2 = _slicedToArray(_useState, 2),
@@ -17145,12 +17937,307 @@ var Toast = {
17145
17937
  useToast: useToast
17146
17938
  };
17147
17939
 
17940
+ /**
17941
+ * @name setDefaultOptions
17942
+ * @category Common Helpers
17943
+ * @summary Set default options including locale.
17944
+ * @pure false
17945
+ *
17946
+ * @description
17947
+ * Sets the defaults for
17948
+ * `options.locale`, `options.weekStartsOn` and `options.firstWeekContainsDate`
17949
+ * arguments for all functions.
17950
+ *
17951
+ * @param {Object} newOptions - an object with options.
17952
+ * @param {Locale} [newOptions.locale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
17953
+ * @param {0|1|2|3|4|5|6} [newOptions.weekStartsOn] - the index of the first day of the week (0 - Sunday)
17954
+ * @param {1|2|3|4|5|6|7} [newOptions.firstWeekContainsDate] - the day of January, which is always in the first week of the year
17955
+ * @throws {TypeError} 1 argument required
17956
+ *
17957
+ * @example
17958
+ * // Set global locale:
17959
+ * import { es } from 'date-fns/locale'
17960
+ * setDefaultOptions({ locale: es })
17961
+ * const result = format(new Date(2014, 8, 2), 'PPPP')
17962
+ * //=> 'martes, 2 de septiembre de 2014'
17963
+ *
17964
+ * @example
17965
+ * // Start of the week for 2 September 2014:
17966
+ * const result = startOfWeek(new Date(2014, 8, 2))
17967
+ * //=> Sun Aug 31 2014 00:00:00
17968
+ *
17969
+ * @example
17970
+ * // Start of the week for 2 September 2014,
17971
+ * // when we set that week starts on Monday by default:
17972
+ * setDefaultOptions({ weekStartsOn: 1 })
17973
+ * const result = startOfWeek(new Date(2014, 8, 2))
17974
+ * //=> Mon Sep 01 2014 00:00:00
17975
+ *
17976
+ * @example
17977
+ * // Manually set options take priority over default options:
17978
+ * setDefaultOptions({ weekStartsOn: 1 })
17979
+ * const result = startOfWeek(new Date(2014, 8, 2), { weekStartsOn: 0 })
17980
+ * //=> Sun Aug 31 2014 00:00:00
17981
+ *
17982
+ * @example
17983
+ * // Remove the option by setting it to `undefined`:
17984
+ * setDefaultOptions({ weekStartsOn: 1 })
17985
+ * setDefaultOptions({ weekStartsOn: undefined })
17986
+ * const result = startOfWeek(new Date(2014, 8, 2))
17987
+ * //=> Sun Aug 31 2014 00:00:00
17988
+ */
17989
+ function setDefaultOptions(newOptions) {
17990
+ requiredArgs(1, arguments);
17991
+ var result = {};
17992
+ var defaultOptions = getDefaultOptions();
17993
+ for (var property in defaultOptions) {
17994
+ if (Object.prototype.hasOwnProperty.call(defaultOptions, property)) {
17995
+ result[property] = defaultOptions[property];
17996
+ }
17997
+ }
17998
+ for (var _property in newOptions) {
17999
+ if (Object.prototype.hasOwnProperty.call(newOptions, _property)) {
18000
+ if (newOptions[_property] === undefined) {
18001
+ delete result[_property];
18002
+ } else {
18003
+ result[_property] = newOptions[_property];
18004
+ }
18005
+ }
18006
+ }
18007
+ setDefaultOptions$1(result);
18008
+ }
18009
+
18010
+ var dateFormats$1 = {
18011
+ full: 'EEEE, d MMMM yyyy',
18012
+ "long": 'd MMMM yyyy',
18013
+ medium: 'd MMM yyyy',
18014
+ "short": 'dd/MM/yyyy'
18015
+ };
18016
+ var timeFormats$1 = {
18017
+ full: 'h:mm:ss a zzzz',
18018
+ "long": 'h:mm:ss a z',
18019
+ medium: 'h:mm:ss a',
18020
+ "short": 'h:mm a'
18021
+ };
18022
+ var dateTimeFormats$1 = {
18023
+ full: "{{date}} 'at' {{time}}",
18024
+ "long": "{{date}} 'at' {{time}}",
18025
+ medium: '{{date}}, {{time}}',
18026
+ "short": '{{date}}, {{time}}'
18027
+ };
18028
+ var formatLong$1 = {
18029
+ date: buildFormatLongFn({
18030
+ formats: dateFormats$1,
18031
+ defaultWidth: 'full'
18032
+ }),
18033
+ time: buildFormatLongFn({
18034
+ formats: timeFormats$1,
18035
+ defaultWidth: 'full'
18036
+ }),
18037
+ dateTime: buildFormatLongFn({
18038
+ formats: dateTimeFormats$1,
18039
+ defaultWidth: 'full'
18040
+ })
18041
+ };
18042
+
18043
+ /**
18044
+ * @type {Locale}
18045
+ * @category Locales
18046
+ * @summary English locale (Australia).
18047
+ * @language English
18048
+ * @iso-639-2 eng
18049
+ * @author Julien Malige [@JulienMalige]{@link https://github.com/JulienMalige}
18050
+ */
18051
+ var locale$1 = {
18052
+ code: 'en-AU',
18053
+ formatDistance: formatDistance$1,
18054
+ formatLong: formatLong$1,
18055
+ formatRelative: formatRelative,
18056
+ localize: localize,
18057
+ match: match,
18058
+ options: {
18059
+ weekStartsOn: 1 /* Monday */,
18060
+ firstWeekContainsDate: 4
18061
+ }
18062
+ };
18063
+
18064
+ var formatDistanceLocale = {
18065
+ lessThanXSeconds: {
18066
+ one: 'less than a second',
18067
+ other: 'less than {{count}} seconds'
18068
+ },
18069
+ xSeconds: {
18070
+ one: 'a second',
18071
+ other: '{{count}} seconds'
18072
+ },
18073
+ halfAMinute: 'half a minute',
18074
+ lessThanXMinutes: {
18075
+ one: 'less than a minute',
18076
+ other: 'less than {{count}} minutes'
18077
+ },
18078
+ xMinutes: {
18079
+ one: 'a minute',
18080
+ other: '{{count}} minutes'
18081
+ },
18082
+ aboutXHours: {
18083
+ one: 'about an hour',
18084
+ other: 'about {{count}} hours'
18085
+ },
18086
+ xHours: {
18087
+ one: 'an hour',
18088
+ other: '{{count}} hours'
18089
+ },
18090
+ xDays: {
18091
+ one: 'a day',
18092
+ other: '{{count}} days'
18093
+ },
18094
+ aboutXWeeks: {
18095
+ one: 'about a week',
18096
+ other: 'about {{count}} weeks'
18097
+ },
18098
+ xWeeks: {
18099
+ one: 'a week',
18100
+ other: '{{count}} weeks'
18101
+ },
18102
+ aboutXMonths: {
18103
+ one: 'about a month',
18104
+ other: 'about {{count}} months'
18105
+ },
18106
+ xMonths: {
18107
+ one: 'a month',
18108
+ other: '{{count}} months'
18109
+ },
18110
+ aboutXYears: {
18111
+ one: 'about a year',
18112
+ other: 'about {{count}} years'
18113
+ },
18114
+ xYears: {
18115
+ one: 'a year',
18116
+ other: '{{count}} years'
18117
+ },
18118
+ overXYears: {
18119
+ one: 'over a year',
18120
+ other: 'over {{count}} years'
18121
+ },
18122
+ almostXYears: {
18123
+ one: 'almost a year',
18124
+ other: 'almost {{count}} years'
18125
+ }
18126
+ };
18127
+ var formatDistance = function formatDistance(token, count, options) {
18128
+ var result;
18129
+ var tokenValue = formatDistanceLocale[token];
18130
+ if (typeof tokenValue === 'string') {
18131
+ result = tokenValue;
18132
+ } else if (count === 1) {
18133
+ result = tokenValue.one;
18134
+ } else {
18135
+ result = tokenValue.other.replace('{{count}}', count.toString());
18136
+ }
18137
+ if (options !== null && options !== void 0 && options.addSuffix) {
18138
+ if (options.comparison && options.comparison > 0) {
18139
+ return 'in ' + result;
18140
+ } else {
18141
+ return result + ' ago';
18142
+ }
18143
+ }
18144
+ return result;
18145
+ };
18146
+
18147
+ var dateFormats = {
18148
+ full: 'EEEE, MMMM do, yyyy',
18149
+ "long": 'MMMM do, yyyy',
18150
+ medium: 'MMM d, yyyy',
18151
+ "short": 'yyyy-MM-dd'
18152
+ };
18153
+ var timeFormats = {
18154
+ full: 'h:mm:ss a zzzz',
18155
+ "long": 'h:mm:ss a z',
18156
+ medium: 'h:mm:ss a',
18157
+ "short": 'h:mm a'
18158
+ };
18159
+ var dateTimeFormats = {
18160
+ full: "{{date}} 'at' {{time}}",
18161
+ "long": "{{date}} 'at' {{time}}",
18162
+ medium: '{{date}}, {{time}}',
18163
+ "short": '{{date}}, {{time}}'
18164
+ };
18165
+ var formatLong = {
18166
+ date: buildFormatLongFn({
18167
+ formats: dateFormats,
18168
+ defaultWidth: 'full'
18169
+ }),
18170
+ time: buildFormatLongFn({
18171
+ formats: timeFormats,
18172
+ defaultWidth: 'full'
18173
+ }),
18174
+ dateTime: buildFormatLongFn({
18175
+ formats: dateTimeFormats,
18176
+ defaultWidth: 'full'
18177
+ })
18178
+ };
18179
+
18180
+ /**
18181
+ * @type {Locale}
18182
+ * @category Locales
18183
+ * @summary English locale (Canada).
18184
+ * @language English
18185
+ * @iso-639-2 eng
18186
+ * @author Mark Owsiak [@markowsiak]{@link https://github.com/markowsiak}
18187
+ * @author Marco Imperatore [@mimperatore]{@link https://github.com/mimperatore}
18188
+ */
18189
+ var locale = {
18190
+ code: 'en-CA',
18191
+ formatDistance: formatDistance,
18192
+ formatLong: formatLong,
18193
+ formatRelative: formatRelative,
18194
+ localize: localize,
18195
+ match: match,
18196
+ options: {
18197
+ weekStartsOn: 0 /* Sunday */,
18198
+ firstWeekContainsDate: 1
18199
+ }
18200
+ };
18201
+
18202
+ var Locales = {
18203
+ 'en-AU': locale$1,
18204
+ 'en-CA': locale
18205
+ };
18206
+ function getDateFnsLocale(locale) {
18207
+ var fallbackLocale = Locales['en-AU'];
18208
+ return Locales[locale] || fallbackLocale;
18209
+ }
18210
+
18211
+ var LocaleProvider = function LocaleProvider(props) {
18212
+ var locale = props.locale,
18213
+ children = props.children;
18214
+ var code = (locale === null || locale === void 0 ? void 0 : locale['lang']) || 'en-AU';
18215
+ // setDefaultOptions here instead of inside useEffect for first rendering
18216
+ setDefaultOptions({
18217
+ locale: getDateFnsLocale(code)
18218
+ });
18219
+ useEffect(function () {
18220
+ return function () {
18221
+ return setDefaultOptions({
18222
+ locale: getDateFnsLocale('en-AU')
18223
+ });
18224
+ };
18225
+ }, []);
18226
+ return /*#__PURE__*/React__default.createElement(LocaleContext.Provider, {
18227
+ value: locale
18228
+ }, children);
18229
+ };
18230
+
17148
18231
  var HeroDesignProvider = function HeroDesignProvider(_ref) {
17149
18232
  var theme = _ref.theme,
18233
+ _ref$locale = _ref.locale,
18234
+ locale = _ref$locale === void 0 ? locale$3 : _ref$locale,
17150
18235
  children = _ref.children;
17151
- return /*#__PURE__*/React__default.createElement(ThemeProvider, {
18236
+ return /*#__PURE__*/React__default.createElement(LocaleProvider, {
18237
+ locale: locale
18238
+ }, /*#__PURE__*/React__default.createElement(ThemeProvider, {
17152
18239
  theme: theme
17153
- }, /*#__PURE__*/React__default.createElement(Toast.Provider, null, /*#__PURE__*/React__default.createElement(Portal$1.Provider, null, children)));
18240
+ }, /*#__PURE__*/React__default.createElement(Toast.Provider, null, /*#__PURE__*/React__default.createElement(Portal$1.Provider, null, children))));
17154
18241
  };
17155
18242
 
17156
18243
  var StyledContainer$3 = index$a(View)(function (_ref) {
@@ -18657,7 +19744,7 @@ var deepCompareValue = function deepCompareValue(a, b) {
18657
19744
  // If either is null or undefined (but they are not strictly equal), return false
18658
19745
  if (a == null || b == null) return false;
18659
19746
  // If types don't match, they can't be equal
18660
- if (_typeof(a) !== _typeof(b)) return false;
19747
+ if (_typeof$1(a) !== _typeof$1(b)) return false;
18661
19748
  // Handle array comparison
18662
19749
  if (Array.isArray(a) && Array.isArray(b)) {
18663
19750
  if (a.length !== b.length) return false;
@@ -18668,7 +19755,7 @@ var deepCompareValue = function deepCompareValue(a, b) {
18668
19755
  // If one is array and the other isn't, return false
18669
19756
  if (Array.isArray(a) !== Array.isArray(b)) return false;
18670
19757
  // Handle object comparison
18671
- if (_typeof(a) === 'object' && _typeof(b) === 'object') {
19758
+ if (_typeof$1(a) === 'object' && _typeof$1(b) === 'object') {
18672
19759
  var keysA = Object.keys(a);
18673
19760
  var keysB = Object.keys(b);
18674
19761
  if (keysA.length !== keysB.length) return false;
@@ -19342,7 +20429,7 @@ var StyledSuccessModal = index$a(ModalWrapper)({
19342
20429
  width: '100%'
19343
20430
  });
19344
20431
 
19345
- var _excluded$a = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
20432
+ var _excluded$a = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress", "icon"];
19346
20433
  var renderImage = function renderImage(image) {
19347
20434
  if ( /*#__PURE__*/isValidElement(image)) {
19348
20435
  return /*#__PURE__*/React__default.cloneElement(image, {
@@ -19356,24 +20443,42 @@ var renderImage = function renderImage(image) {
19356
20443
  testID: "success-image"
19357
20444
  });
19358
20445
  };
19359
- var SuccessPage = function SuccessPage(_ref) {
19360
- var _ref$variant = _ref.variant,
19361
- variant = _ref$variant === void 0 ? 'in-page' : _ref$variant,
19362
- title = _ref.title,
19363
- description = _ref.description,
19364
- image = _ref.image,
19365
- testID = _ref.testID,
19366
- ctaText = _ref.ctaText,
19367
- _ref$onCtaPress = _ref.onCtaPress,
19368
- onCtaPress = _ref$onCtaPress === void 0 ? noop$1 : _ref$onCtaPress,
19369
- secondaryCtaText = _ref.secondaryCtaText,
19370
- onSecondaryCtaPress = _ref.onSecondaryCtaPress,
19371
- nativeProps = _objectWithoutProperties(_ref, _excluded$a);
20446
+ var renderImageOrIcon = function renderImageOrIcon(_ref) {
20447
+ var image = _ref.image,
20448
+ icon = _ref.icon;
20449
+ if (icon) {
20450
+ return /*#__PURE__*/React__default.createElement(StyledSuccessImageContainer, null, /*#__PURE__*/React__default.createElement(StatusIcon, {
20451
+ icon: icon,
20452
+ testID: "success-icon"
20453
+ }));
20454
+ }
20455
+ if (image) {
20456
+ return /*#__PURE__*/React__default.createElement(StyledSuccessImageContainer, null, renderImage(image));
20457
+ }
20458
+ return null;
20459
+ };
20460
+ var SuccessPage = function SuccessPage(_ref2) {
20461
+ var _ref2$variant = _ref2.variant,
20462
+ variant = _ref2$variant === void 0 ? 'in-page' : _ref2$variant,
20463
+ title = _ref2.title,
20464
+ description = _ref2.description,
20465
+ image = _ref2.image,
20466
+ testID = _ref2.testID,
20467
+ ctaText = _ref2.ctaText,
20468
+ _ref2$onCtaPress = _ref2.onCtaPress,
20469
+ onCtaPress = _ref2$onCtaPress === void 0 ? noop$1 : _ref2$onCtaPress,
20470
+ secondaryCtaText = _ref2.secondaryCtaText,
20471
+ onSecondaryCtaPress = _ref2.onSecondaryCtaPress,
20472
+ icon = _ref2.icon,
20473
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$a);
19372
20474
  var showSecondaryButton = secondaryCtaText && onSecondaryCtaPress;
19373
20475
  return /*#__PURE__*/React__default.createElement(StyledSuccessContainer, _extends$1({
19374
20476
  testID: testID,
19375
20477
  themeVariant: variant
19376
- }, nativeProps), /*#__PURE__*/React__default.createElement(StyledSuccessContent, null, !!image && /*#__PURE__*/React__default.createElement(StyledSuccessImageContainer, null, renderImage(image)), /*#__PURE__*/React__default.createElement(StyledSuccessTitle, {
20478
+ }, nativeProps), /*#__PURE__*/React__default.createElement(StyledSuccessContent, null, renderImageOrIcon({
20479
+ image: image,
20480
+ icon: icon
20481
+ }), /*#__PURE__*/React__default.createElement(StyledSuccessTitle, {
19377
20482
  level: "h4",
19378
20483
  typeface: "playful"
19379
20484
  }, title), typeof description === 'string' ? /*#__PURE__*/React__default.createElement(StyledSuccessDescription, null, description) : description), !!ctaText && /*#__PURE__*/React__default.createElement(StyledSuccessButtonContainer, null, /*#__PURE__*/React__default.createElement(StyledSuccessButtonPrimary, {
@@ -20432,7 +21537,7 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
20432
21537
  open = _useState2[0],
20433
21538
  setOpen = _useState2[1];
20434
21539
  var is12Hour = displayFormat.includes('hh');
20435
- var displayValue = value ? format(displayFormat, value) : '';
21540
+ var displayValue = value ? formatTime(displayFormat, value) : '';
20436
21541
  var pickerInitValue = value || new Date();
20437
21542
  return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
20438
21543
  onPress: function onPress() {
@@ -20503,7 +21608,7 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
20503
21608
  open = _useState4[0],
20504
21609
  setOpen = _useState4[1];
20505
21610
  var is12Hour = displayFormat.includes('hh');
20506
- var displayValue = value ? format(displayFormat, value) : '';
21611
+ var displayValue = value ? formatTime(displayFormat, value) : '';
20507
21612
  var theme = useTheme();
20508
21613
  useEffect(function () {
20509
21614
  setSelectingDate(value || new Date());
@@ -21245,7 +22350,7 @@ function requireScheduler_production_min() {
21245
22350
  var c = a.sortIndex - b.sortIndex;
21246
22351
  return 0 !== c ? c : a.id - b.id;
21247
22352
  }
21248
- if ("object" === (typeof performance === "undefined" ? "undefined" : _typeof(performance)) && "function" === typeof performance.now) {
22353
+ if ("object" === (typeof performance === "undefined" ? "undefined" : _typeof$1(performance)) && "function" === typeof performance.now) {
21249
22354
  var l = performance;
21250
22355
  exports.unstable_now = function () {
21251
22356
  return l.now();
@@ -21416,7 +22521,7 @@ function requireScheduler_production_min() {
21416
22521
  };
21417
22522
  exports.unstable_scheduleCallback = function (a, b, c) {
21418
22523
  var d = exports.unstable_now();
21419
- "object" === _typeof(c) && null !== c ? (c = c.delay, c = "number" === typeof c && 0 < c ? d + c : d) : c = d;
22524
+ "object" === _typeof$1(c) && null !== c ? (c = c.delay, c = "number" === typeof c && 0 < c ? d + c : d) : c = d;
21420
22525
  switch (a) {
21421
22526
  case 1:
21422
22527
  var e = -1;
@@ -21506,7 +22611,7 @@ function requireReactDom_production_min() {
21506
22611
  }
21507
22612
  function pa(a, b, c, d) {
21508
22613
  if (null !== c && 0 === c.type) return !1;
21509
- switch (_typeof(b)) {
22614
+ switch (_typeof$1(b)) {
21510
22615
  case "function":
21511
22616
  case "symbol":
21512
22617
  return !0;
@@ -21616,7 +22721,7 @@ function requireReactDom_production_min() {
21616
22721
  var Ia = Symbol["for"]("react.offscreen");
21617
22722
  var Ja = Symbol.iterator;
21618
22723
  function Ka(a) {
21619
- if (null === a || "object" !== _typeof(a)) return null;
22724
+ if (null === a || "object" !== _typeof$1(a)) return null;
21620
22725
  a = Ja && a[Ja] || a["@@iterator"];
21621
22726
  return "function" === typeof a ? a : null;
21622
22727
  }
@@ -21645,7 +22750,7 @@ function requireReactDom_production_min() {
21645
22750
  set: function set() {
21646
22751
  throw Error();
21647
22752
  }
21648
- }), "object" === (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && Reflect.construct) {
22753
+ }), "object" === (typeof Reflect === "undefined" ? "undefined" : _typeof$1(Reflect)) && Reflect.construct) {
21649
22754
  try {
21650
22755
  Reflect.construct(b, []);
21651
22756
  } catch (l) {
@@ -21727,7 +22832,7 @@ function requireReactDom_production_min() {
21727
22832
  case Fa:
21728
22833
  return "SuspenseList";
21729
22834
  }
21730
- if ("object" === _typeof(a)) switch (a.$$typeof) {
22835
+ if ("object" === _typeof$1(a)) switch (a.$$typeof) {
21731
22836
  case Ca:
21732
22837
  return (a.displayName || "Context") + ".Consumer";
21733
22838
  case Ba:
@@ -21799,7 +22904,7 @@ function requireReactDom_production_min() {
21799
22904
  return null;
21800
22905
  }
21801
22906
  function Sa(a) {
21802
- switch (_typeof(a)) {
22907
+ switch (_typeof$1(a)) {
21803
22908
  case "boolean":
21804
22909
  case "number":
21805
22910
  case "string":
@@ -22110,9 +23215,9 @@ function requireReactDom_production_min() {
22110
23215
  if (tb[a] && (null != b.children || null != b.dangerouslySetInnerHTML)) throw Error(p(137, a));
22111
23216
  if (null != b.dangerouslySetInnerHTML) {
22112
23217
  if (null != b.children) throw Error(p(60));
22113
- if ("object" !== _typeof(b.dangerouslySetInnerHTML) || !("__html" in b.dangerouslySetInnerHTML)) throw Error(p(61));
23218
+ if ("object" !== _typeof$1(b.dangerouslySetInnerHTML) || !("__html" in b.dangerouslySetInnerHTML)) throw Error(p(61));
22114
23219
  }
22115
- if (null != b.style && "object" !== _typeof(b.style)) throw Error(p(62));
23220
+ if (null != b.style && "object" !== _typeof$1(b.style)) throw Error(p(62));
22116
23221
  }
22117
23222
  }
22118
23223
  function vb(a, b) {
@@ -22198,7 +23303,7 @@ function requireReactDom_production_min() {
22198
23303
  a = !1;
22199
23304
  }
22200
23305
  if (a) return null;
22201
- if (c && "function" !== typeof c) throw Error(p(231, b, _typeof(c)));
23306
+ if (c && "function" !== typeof c) throw Error(p(231, b, _typeof$1(c)));
22202
23307
  return c;
22203
23308
  }
22204
23309
  var Lb = !1;
@@ -23112,7 +24217,7 @@ function requireReactDom_production_min() {
23112
24217
  }
23113
24218
  function he(a) {
23114
24219
  a = a.detail;
23115
- return "object" === _typeof(a) && "data" in a ? a.data : null;
24220
+ return "object" === _typeof$1(a) && "data" in a ? a.data : null;
23116
24221
  }
23117
24222
  var ie = !1;
23118
24223
  function je(a, b) {
@@ -23229,7 +24334,7 @@ function requireReactDom_production_min() {
23229
24334
  var He = "function" === typeof Object.is ? Object.is : Ge;
23230
24335
  function Ie(a, b) {
23231
24336
  if (He(a, b)) return !0;
23232
- if ("object" !== _typeof(a) || null === a || "object" !== _typeof(b) || null === b) return !1;
24337
+ if ("object" !== _typeof$1(a) || null === a || "object" !== _typeof$1(b) || null === b) return !1;
23233
24338
  var c = Object.keys(a),
23234
24339
  d = Object.keys(b);
23235
24340
  if (c.length !== d.length) return !1;
@@ -23756,7 +24861,7 @@ function requireReactDom_production_min() {
23756
24861
  var Cf = null,
23757
24862
  Df = null;
23758
24863
  function Ef(a, b) {
23759
- return "textarea" === a || "noscript" === a || "string" === typeof b.children || "number" === typeof b.children || "object" === _typeof(b.dangerouslySetInnerHTML) && null !== b.dangerouslySetInnerHTML && null != b.dangerouslySetInnerHTML.__html;
24864
+ 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;
23760
24865
  }
23761
24866
  var Ff = "function" === typeof setTimeout ? setTimeout : void 0,
23762
24867
  Gf = "function" === typeof clearTimeout ? clearTimeout : void 0,
@@ -24404,7 +25509,7 @@ function requireReactDom_production_min() {
24404
25509
  var d = !1,
24405
25510
  e = Vf;
24406
25511
  var f = b.contextType;
24407
- "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);
25512
+ "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);
24408
25513
  b = new b(c, f);
24409
25514
  a.memoizedState = null !== b.state && void 0 !== b.state ? b.state : null;
24410
25515
  b.updater = nh;
@@ -24426,7 +25531,7 @@ function requireReactDom_production_min() {
24426
25531
  e.refs = jh;
24427
25532
  ah(a);
24428
25533
  var f = b.contextType;
24429
- "object" === _typeof(f) && null !== f ? e.context = Vg(f) : (f = Zf(b) ? Xf : H.current, e.context = Yf(a, f));
25534
+ "object" === _typeof$1(f) && null !== f ? e.context = Vg(f) : (f = Zf(b) ? Xf : H.current, e.context = Yf(a, f));
24430
25535
  e.state = a.memoizedState;
24431
25536
  f = b.getDerivedStateFromProps;
24432
25537
  "function" === typeof f && (kh(a, b, f, c), e.state = a.memoizedState);
@@ -24435,7 +25540,7 @@ function requireReactDom_production_min() {
24435
25540
  }
24436
25541
  function sh(a, b, c) {
24437
25542
  a = c.ref;
24438
- if (null !== a && "function" !== typeof a && "object" !== _typeof(a)) {
25543
+ if (null !== a && "function" !== typeof a && "object" !== _typeof$1(a)) {
24439
25544
  if (c._owner) {
24440
25545
  c = c._owner;
24441
25546
  if (c) {
@@ -24510,7 +25615,7 @@ function requireReactDom_production_min() {
24510
25615
  function k(a, b, c, d) {
24511
25616
  var f = c.type;
24512
25617
  if (f === ya) return m(a, b, c.props.children, d, c.key);
24513
- 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;
25618
+ 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;
24514
25619
  d = yh(c.type, c.key, c.props, null, a.mode, d);
24515
25620
  d.ref = sh(a, b, c);
24516
25621
  d["return"] = a;
@@ -24530,7 +25635,7 @@ function requireReactDom_production_min() {
24530
25635
  }
24531
25636
  function q(a, b, c) {
24532
25637
  if ("string" === typeof b && "" !== b || "number" === typeof b) return b = xh("" + b, a.mode, c), b["return"] = a, b;
24533
- if ("object" === _typeof(b) && null !== b) {
25638
+ if ("object" === _typeof$1(b) && null !== b) {
24534
25639
  switch (b.$$typeof) {
24535
25640
  case va:
24536
25641
  return c = yh(b.type, b.key, b.props, null, a.mode, c), c.ref = sh(a, null, b), c["return"] = a, c;
@@ -24548,7 +25653,7 @@ function requireReactDom_production_min() {
24548
25653
  function r(a, b, c, d) {
24549
25654
  var e = null !== b ? b.key : null;
24550
25655
  if ("string" === typeof c && "" !== c || "number" === typeof c) return null !== e ? null : h(a, b, "" + c, d);
24551
- if ("object" === _typeof(c) && null !== c) {
25656
+ if ("object" === _typeof$1(c) && null !== c) {
24552
25657
  switch (c.$$typeof) {
24553
25658
  case va:
24554
25659
  return c.key === e ? k(a, b, c, d) : null;
@@ -24564,7 +25669,7 @@ function requireReactDom_production_min() {
24564
25669
  }
24565
25670
  function y(a, b, c, d, e) {
24566
25671
  if ("string" === typeof d && "" !== d || "number" === typeof d) return a = a.get(c) || null, h(b, a, "" + d, e);
24567
- if ("object" === _typeof(d) && null !== d) {
25672
+ if ("object" === _typeof$1(d) && null !== d) {
24568
25673
  switch (d.$$typeof) {
24569
25674
  case va:
24570
25675
  return a = a.get(null === d.key ? c : d.key) || null, k(b, a, d, e);
@@ -24638,8 +25743,8 @@ function requireReactDom_production_min() {
24638
25743
  return l;
24639
25744
  }
24640
25745
  function J(a, d, f, h) {
24641
- "object" === _typeof(f) && null !== f && f.type === ya && null === f.key && (f = f.props.children);
24642
- if ("object" === _typeof(f) && null !== f) {
25746
+ "object" === _typeof$1(f) && null !== f && f.type === ya && null === f.key && (f = f.props.children);
25747
+ if ("object" === _typeof$1(f) && null !== f) {
24643
25748
  switch (f.$$typeof) {
24644
25749
  case va:
24645
25750
  a: {
@@ -24654,7 +25759,7 @@ function requireReactDom_production_min() {
24654
25759
  a = d;
24655
25760
  break a;
24656
25761
  }
24657
- } else if (l.elementType === k || "object" === _typeof(k) && null !== k && k.$$typeof === Ha && uh(k) === l.type) {
25762
+ } else if (l.elementType === k || "object" === _typeof$1(k) && null !== k && k.$$typeof === Ha && uh(k) === l.type) {
24658
25763
  c(a, l.sibling);
24659
25764
  d = e(l, f.props);
24660
25765
  d.ref = sh(a, l, f);
@@ -25539,7 +26644,7 @@ function requireReactDom_production_min() {
25539
26644
  g.props = h;
25540
26645
  var k = g.context,
25541
26646
  l = c.contextType;
25542
- "object" === _typeof(l) && null !== l ? l = Vg(l) : (l = Zf(c) ? Xf : H.current, l = Yf(b, l));
26647
+ "object" === _typeof$1(l) && null !== l ? l = Vg(l) : (l = Zf(c) ? Xf : H.current, l = Yf(b, l));
25543
26648
  var m = c.getDerivedStateFromProps,
25544
26649
  q = "function" === typeof m || "function" === typeof g.getSnapshotBeforeUpdate;
25545
26650
  q || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (h !== d || k !== l) && qh(b, g, d, l);
@@ -25558,7 +26663,7 @@ function requireReactDom_production_min() {
25558
26663
  q = b.pendingProps;
25559
26664
  r = g.context;
25560
26665
  k = c.contextType;
25561
- "object" === _typeof(k) && null !== k ? k = Vg(k) : (k = Zf(c) ? Xf : H.current, k = Yf(b, k));
26666
+ "object" === _typeof$1(k) && null !== k ? k = Vg(k) : (k = Zf(c) ? Xf : H.current, k = Yf(b, k));
25562
26667
  var y = c.getDerivedStateFromProps;
25563
26668
  (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);
25564
26669
  $g = !1;
@@ -27471,7 +28576,7 @@ function requireReactDom_production_min() {
27471
28576
  k = b;
27472
28577
  b = Z;
27473
28578
  h.flags |= 32768;
27474
- if (null !== k && "object" === _typeof(k) && "function" === typeof k.then) {
28579
+ if (null !== k && "object" === _typeof$1(k) && "function" === typeof k.then) {
27475
28580
  var l = k,
27476
28581
  m = h,
27477
28582
  q = m.tag;
@@ -27892,7 +28997,7 @@ function requireReactDom_production_min() {
27892
28997
  e = Xh(null, b, d, a, e, c);
27893
28998
  var f = bi();
27894
28999
  b.flags |= 1;
27895
- "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);
29000
+ "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);
27896
29001
  return b;
27897
29002
  case 16:
27898
29003
  d = b.elementType;
@@ -28133,7 +29238,7 @@ function requireReactDom_production_min() {
28133
29238
  case Ia:
28134
29239
  return qj(c, e, f, b);
28135
29240
  default:
28136
- if ("object" === _typeof(a) && null !== a) switch (a.$$typeof) {
29241
+ if ("object" === _typeof$1(a) && null !== a) switch (a.$$typeof) {
28137
29242
  case Ba:
28138
29243
  g = 10;
28139
29244
  break a;
@@ -28151,7 +29256,7 @@ function requireReactDom_production_min() {
28151
29256
  d = null;
28152
29257
  break a;
28153
29258
  }
28154
- throw Error(p(130, null == a ? a : _typeof(a), ""));
29259
+ throw Error(p(130, null == a ? a : _typeof$1(a), ""));
28155
29260
  }
28156
29261
  b = Bg(g, c, b, e);
28157
29262
  b.elementType = a;
@@ -28799,7 +29904,7 @@ function requireLib() {
28799
29904
  };
28800
29905
  },
28801
29906
  380: function _(e, t, r) {
28802
- var n = "object" == _typeof(r.g) && r.g && r.g.Object === Object && r.g;
29907
+ var n = "object" == _typeof$1(r.g) && r.g && r.g.Object === Object && r.g;
28803
29908
  e.exports = n;
28804
29909
  },
28805
29910
  903: function _(e, t, r) {
@@ -28827,7 +29932,7 @@ function requireLib() {
28827
29932
  },
28828
29933
  433: function _(e, t, r) {
28829
29934
  var n = r(380),
28830
- u = "object" == (typeof self === "undefined" ? "undefined" : _typeof(self)) && self && self.Object === Object && self,
29935
+ u = "object" == (typeof self === "undefined" ? "undefined" : _typeof$1(self)) && self && self.Object === Object && self,
28831
29936
  o = n || u || Function("return this")();
28832
29937
  e.exports = o;
28833
29938
  },
@@ -28896,20 +30001,20 @@ function requireLib() {
28896
30001
  },
28897
30002
  953: function _(e) {
28898
30003
  e.exports = function (e) {
28899
- var t = _typeof(e);
30004
+ var t = _typeof$1(e);
28900
30005
  return null != e && ("object" == t || "function" == t);
28901
30006
  };
28902
30007
  },
28903
30008
  934: function _(e) {
28904
30009
  e.exports = function (e) {
28905
- return null != e && "object" == _typeof(e);
30010
+ return null != e && "object" == _typeof$1(e);
28906
30011
  };
28907
30012
  },
28908
30013
  414: function _(e, t, r) {
28909
30014
  var n = r(148),
28910
30015
  u = r(934);
28911
30016
  e.exports = function (e) {
28912
- return "symbol" == _typeof(e) || u(e) && "[object Symbol]" == n(e);
30017
+ return "symbol" == _typeof$1(e) || u(e) && "[object Symbol]" == n(e);
28913
30018
  };
28914
30019
  },
28915
30020
  664: function _(e, t, r) {
@@ -28986,11 +30091,11 @@ function requireLib() {
28986
30091
  get: t[r]
28987
30092
  });
28988
30093
  }, u.g = function () {
28989
- if ("object" == (typeof globalThis === "undefined" ? "undefined" : _typeof(globalThis))) return globalThis;
30094
+ if ("object" == (typeof globalThis === "undefined" ? "undefined" : _typeof$1(globalThis))) return globalThis;
28990
30095
  try {
28991
30096
  return this || new Function("return this")();
28992
30097
  } catch (e) {
28993
- if ("object" == (typeof window === "undefined" ? "undefined" : _typeof(window))) return window;
30098
+ if ("object" == (typeof window === "undefined" ? "undefined" : _typeof$1(window))) return window;
28994
30099
  }
28995
30100
  }(), u.o = function (e, t) {
28996
30101
  return Object.prototype.hasOwnProperty.call(e, t);
@@ -29112,7 +30217,7 @@ function requireLib() {
29112
30217
  }
29113
30218
  var h = Object.prototype.constructor.toString();
29114
30219
  function p(e) {
29115
- if (!e || "object" != _typeof(e)) return !1;
30220
+ if (!e || "object" != _typeof$1(e)) return !1;
29116
30221
  var t = c(e);
29117
30222
  if (null === t) return !0;
29118
30223
  var r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
@@ -29409,7 +30514,7 @@ function requireLib() {
29409
30514
  }
29410
30515
  return k(_u4, r), R(n, _u4);
29411
30516
  }
29412
- if (!e || "object" != _typeof(e)) {
30517
+ if (!e || "object" != _typeof$1(e)) {
29413
30518
  if (n = t(e), void 0 === n && (n = e), n === a && (n = void 0), _this.autoFreeze_ && E(n, !0), r) {
29414
30519
  var _t6 = [],
29415
30520
  _u5 = [];
@@ -29687,10 +30792,10 @@ function requireLib() {
29687
30792
  }
29688
30793
  };
29689
30794
  function se(e) {
29690
- return se = "function" == typeof Symbol && "symbol" == _typeof(Symbol.iterator) ? function (e) {
29691
- return _typeof(e);
30795
+ return se = "function" == typeof Symbol && "symbol" == _typeof$1(Symbol.iterator) ? function (e) {
30796
+ return _typeof$1(e);
29692
30797
  } : function (e) {
29693
- return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : _typeof(e);
30798
+ return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : _typeof$1(e);
29694
30799
  }, se(e);
29695
30800
  }
29696
30801
  function le(e, t, r) {
@@ -34374,7 +35479,7 @@ function requireLib() {
34374
35479
  Jt = u(858),
34375
35480
  Yt = u.n(Jt);
34376
35481
  var Zt = function Zt(e) {
34377
- return "object" == _typeof(e) && null != e && 1 === e.nodeType;
35482
+ return "object" == _typeof$1(e) && null != e && 1 === e.nodeType;
34378
35483
  },
34379
35484
  Gt = function Gt(e, t) {
34380
35485
  return (!t || "hidden" !== e) && "visible" !== e && "clip" !== e;
@@ -34594,10 +35699,10 @@ function requireLib() {
34594
35699
  "undefined" != typeof navigator && /Safari/.test(navigator.userAgent) && /Version\/(\d+)/.test(navigator.userAgent) && null !== (nr = navigator.userAgent.match(/Version\/(\d+)/)) && void 0 !== nr && nr[1] && parseInt(null === (ur = navigator.userAgent.match(/Version\/(\d+)/)) || void 0 === ur ? void 0 : ur[1], 10);
34595
35700
  var Tr = (!Or || !xr) && !Ar && "undefined" != typeof globalThis && globalThis.InputEvent && "function" == typeof globalThis.InputEvent.prototype.getTargetRanges;
34596
35701
  function Mr(e) {
34597
- return Mr = "function" == typeof Symbol && "symbol" == _typeof(Symbol.iterator) ? function (e) {
34598
- return _typeof(e);
35702
+ return Mr = "function" == typeof Symbol && "symbol" == _typeof$1(Symbol.iterator) ? function (e) {
35703
+ return _typeof$1(e);
34599
35704
  } : function (e) {
34600
- return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : _typeof(e);
35705
+ return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : _typeof$1(e);
34601
35706
  }, Mr(e);
34602
35707
  }
34603
35708
  function Rr(e, t, r) {
@@ -35670,10 +36775,10 @@ function requireLib() {
35670
36775
  return u;
35671
36776
  }
35672
36777
  function mu(e) {
35673
- return mu = "function" == typeof Symbol && "symbol" == _typeof(Symbol.iterator) ? function (e) {
35674
- return _typeof(e);
36778
+ return mu = "function" == typeof Symbol && "symbol" == _typeof$1(Symbol.iterator) ? function (e) {
36779
+ return _typeof$1(e);
35675
36780
  } : function (e) {
35676
- return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : _typeof(e);
36781
+ return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : _typeof$1(e);
35677
36782
  }, mu(e);
35678
36783
  }
35679
36784
  function yu(e, t, r) {
@@ -37425,7 +38530,7 @@ function requireLib() {
37425
38530
  };
37426
38531
  }(e);
37427
38532
  if (function (e) {
37428
- return "object" == _typeof(e) && "function" == typeof e.behavior;
38533
+ return "object" == _typeof$1(e) && "function" == typeof e.behavior;
37429
38534
  }(t)) return t.behavior(rr(e, t));
37430
38535
  var n = "boolean" == typeof t || null == t ? void 0 : t.behavior;
37431
38536
  var _iterator47 = _createForOfIteratorHelper(rr(e, function (e) {
@@ -40541,4 +41646,4 @@ var FloatingIsland = function FloatingIsland(_ref2) {
40541
41646
  }));
40542
41647
  };
40543
41648
 
40544
- export { Accordion, Alert, AppCue, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar$1 as Calendar, Card$1 as Card, index$8 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, ErrorComponent as Error, FAB, FlatListWithFAB, FloatingIsland, HeroDesignProvider, Icon, Image, List, index$6 as MapPin, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, ScrollViewWithFAB, Search, 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, ehJobsSystemPalette, ehWorkDarkSystemPalette, ehWorkSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagLightJobsSystemPalette, swagSystemPalette$1 as swagLightSystemPalette, swagSystemPalette$2 as swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
41649
+ export { Accordion, Alert, AppCue, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar$1 as Calendar, Card$1 as Card, index$8 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, ErrorComponent as Error, FAB, FlatListWithFAB, FloatingIsland, HeroDesignProvider, Icon, Image, List, LocaleProvider, index$6 as MapPin, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, ScrollViewWithFAB, Search, 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, ehJobsSystemPalette, ehWorkDarkSystemPalette, ehWorkSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagLightJobsSystemPalette, swagSystemPalette$1 as swagLightSystemPalette, swagSystemPalette$2 as swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };