@uzum-tech/ui 1.13.2 → 1.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/dist/index.js +1848 -1664
  2. package/dist/index.prod.js +3 -3
  3. package/es/_mixins/use-css-vars-class.js +5 -3
  4. package/es/_mixins/use-rtl.js +5 -2
  5. package/es/_mixins/use-style.js +4 -2
  6. package/es/_mixins/use-theme.js +4 -2
  7. package/es/auto-complete/src/AutoComplete.d.ts +70 -0
  8. package/es/auto-complete/styles/light.d.ts +7 -0
  9. package/es/chat/src/Chat.d.ts +70 -0
  10. package/es/chat/src/ChatListItems.d.ts +77 -0
  11. package/es/chat/src/ChatMessages.d.ts +77 -0
  12. package/es/chat/src/ChatParts/MainArea.js +47 -54
  13. package/es/chat/src/ChatParts/Sidebar.d.ts +7 -0
  14. package/es/chat/src/styles/index.cssr.js +12 -7
  15. package/es/chat/styles/dark.d.ts +7 -0
  16. package/es/chat/styles/light.d.ts +7 -0
  17. package/es/color-picker/src/ColorInputUnit.d.ts +7 -0
  18. package/es/color-picker/src/ColorPicker.d.ts +63 -0
  19. package/es/color-picker/styles/light.d.ts +7 -0
  20. package/es/config-provider/src/ConfigProvider.d.ts +3 -0
  21. package/es/config-provider/src/ConfigProvider.js +4 -1
  22. package/es/config-provider/src/internal-interface.d.ts +1 -0
  23. package/es/data-table/src/DataTable.d.ts +58 -0
  24. package/es/data-table/src/DataTable.js +71 -4
  25. package/es/data-table/src/HeaderButton/FilterButton.d.ts +14 -0
  26. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +14 -0
  27. package/es/data-table/src/TableParts/Body.d.ts +14 -0
  28. package/es/data-table/src/TableParts/Body.js +6 -2
  29. package/es/data-table/src/TableParts/Header.d.ts +14 -0
  30. package/es/data-table/src/TableParts/Header.js +17 -5
  31. package/es/data-table/src/interface.d.ts +34 -0
  32. package/es/data-table/src/interface.js +1 -1
  33. package/es/data-table/src/use-resizable.d.ts +1 -0
  34. package/es/data-table/src/use-resizable.js +2 -1
  35. package/es/data-table/src/use-sorter.d.ts +1 -0
  36. package/es/data-table/src/use-sorter.js +2 -1
  37. package/es/data-table/src/use-table-data.d.ts +3 -2
  38. package/es/data-table/src/use-table-data.js +5 -1
  39. package/es/data-table/src/use-table-storage.d.ts +4 -0
  40. package/es/data-table/src/use-table-storage.js +43 -0
  41. package/es/data-table/src/utils.js +39 -5
  42. package/es/data-table/styles/light.d.ts +7 -0
  43. package/es/date-picker/src/DatePicker.d.ts +147 -0
  44. package/es/date-picker/src/panel/date.d.ts +21 -0
  45. package/es/date-picker/src/panel/daterange.d.ts +21 -0
  46. package/es/date-picker/src/panel/datetime.d.ts +21 -0
  47. package/es/date-picker/src/panel/datetimerange.d.ts +21 -0
  48. package/es/date-picker/src/panel/panelMonth.d.ts +42 -0
  49. package/es/date-picker/src/panel/panelMonthContent.d.ts +21 -0
  50. package/es/date-picker/src/panel/panelYear.d.ts +42 -0
  51. package/es/date-picker/src/panel/panelYearContent.d.ts +21 -0
  52. package/es/date-picker/src/panel/use-calendar.d.ts +21 -0
  53. package/es/date-picker/src/panel/use-dual-calendar.d.ts +21 -0
  54. package/es/date-picker/src/panel/use-panel-common.d.ts +21 -0
  55. package/es/date-picker/styles/light.d.ts +14 -0
  56. package/es/date-picker-v2/src/DatePickerV2.d.ts +70 -0
  57. package/es/date-picker-v2/styles/dark.d.ts +7 -0
  58. package/es/date-picker-v2/styles/light.d.ts +7 -0
  59. package/es/dynamic-input/src/DynamicInput.d.ts +70 -0
  60. package/es/dynamic-input/src/InputPreset.d.ts +7 -0
  61. package/es/dynamic-input/src/PairPreset.d.ts +7 -0
  62. package/es/dynamic-input/styles/light.d.ts +7 -0
  63. package/es/dynamic-tags/src/DynamicTags.d.ts +70 -0
  64. package/es/dynamic-tags/styles/light.d.ts +7 -0
  65. package/es/input/src/Input.d.ts +77 -0
  66. package/es/input/src/Input.js +9 -1
  67. package/es/input/src/InputGroupLabel.d.ts +63 -0
  68. package/es/input/src/styles/input.cssr.js +1 -1
  69. package/es/input/styles/light.d.ts +7 -0
  70. package/es/input/styles/light.js +11 -1
  71. package/es/input-number/src/InputNumber.d.ts +70 -0
  72. package/es/input-number/styles/light.d.ts +7 -0
  73. package/es/input-otp/src/InputOtp.d.ts +70 -0
  74. package/es/input-otp/styles/light.d.ts +7 -0
  75. package/es/legacy-transfer/src/Transfer.d.ts +70 -0
  76. package/es/legacy-transfer/src/TransferFilter.d.ts +7 -0
  77. package/es/legacy-transfer/src/TransferList.d.ts +7 -0
  78. package/es/legacy-transfer/src/TransferListItem.d.ts +7 -0
  79. package/es/legacy-transfer/styles/light.d.ts +7 -0
  80. package/es/locales/date/enUS.js +1 -1
  81. package/es/mention/src/Mention.d.ts +70 -0
  82. package/es/mention/styles/light.d.ts +7 -0
  83. package/es/pagination/src/Pagination.d.ts +70 -0
  84. package/es/pagination/styles/light.d.ts +7 -0
  85. package/es/time-picker/src/Panel.d.ts +7 -0
  86. package/es/time-picker/src/TimePicker.d.ts +70 -0
  87. package/es/time-picker/styles/light.d.ts +7 -0
  88. package/es/transfer/src/Transfer.d.ts +70 -0
  89. package/es/transfer/src/TransferFilter.d.ts +7 -0
  90. package/es/transfer/src/TransferList.d.ts +7 -0
  91. package/es/transfer/src/TransferListItem.d.ts +7 -0
  92. package/es/transfer/styles/light.d.ts +7 -0
  93. package/es/version.d.ts +1 -1
  94. package/es/version.js +1 -1
  95. package/lib/_mixins/use-css-vars-class.js +5 -3
  96. package/lib/_mixins/use-rtl.js +4 -1
  97. package/lib/_mixins/use-style.js +4 -2
  98. package/lib/_mixins/use-theme.js +4 -2
  99. package/lib/auto-complete/src/AutoComplete.d.ts +70 -0
  100. package/lib/auto-complete/styles/light.d.ts +7 -0
  101. package/lib/chat/src/Chat.d.ts +70 -0
  102. package/lib/chat/src/ChatListItems.d.ts +77 -0
  103. package/lib/chat/src/ChatMessages.d.ts +77 -0
  104. package/lib/chat/src/ChatParts/MainArea.js +47 -54
  105. package/lib/chat/src/ChatParts/Sidebar.d.ts +7 -0
  106. package/lib/chat/src/styles/index.cssr.js +12 -7
  107. package/lib/chat/styles/dark.d.ts +7 -0
  108. package/lib/chat/styles/light.d.ts +7 -0
  109. package/lib/color-picker/src/ColorInputUnit.d.ts +7 -0
  110. package/lib/color-picker/src/ColorPicker.d.ts +63 -0
  111. package/lib/color-picker/styles/light.d.ts +7 -0
  112. package/lib/config-provider/src/ConfigProvider.d.ts +3 -0
  113. package/lib/config-provider/src/ConfigProvider.js +4 -1
  114. package/lib/config-provider/src/internal-interface.d.ts +1 -0
  115. package/lib/data-table/src/DataTable.d.ts +58 -0
  116. package/lib/data-table/src/DataTable.js +70 -3
  117. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +14 -0
  118. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +14 -0
  119. package/lib/data-table/src/TableParts/Body.d.ts +14 -0
  120. package/lib/data-table/src/TableParts/Body.js +6 -2
  121. package/lib/data-table/src/TableParts/Header.d.ts +14 -0
  122. package/lib/data-table/src/TableParts/Header.js +16 -4
  123. package/lib/data-table/src/interface.d.ts +34 -0
  124. package/lib/data-table/src/interface.js +1 -1
  125. package/lib/data-table/src/use-resizable.d.ts +1 -0
  126. package/lib/data-table/src/use-resizable.js +2 -1
  127. package/lib/data-table/src/use-sorter.d.ts +1 -0
  128. package/lib/data-table/src/use-sorter.js +2 -1
  129. package/lib/data-table/src/use-table-data.d.ts +3 -2
  130. package/lib/data-table/src/use-table-data.js +5 -1
  131. package/lib/data-table/src/use-table-storage.d.ts +4 -0
  132. package/lib/data-table/src/use-table-storage.js +48 -0
  133. package/lib/data-table/src/utils.js +39 -5
  134. package/lib/data-table/styles/light.d.ts +7 -0
  135. package/lib/date-picker/src/DatePicker.d.ts +147 -0
  136. package/lib/date-picker/src/panel/date.d.ts +21 -0
  137. package/lib/date-picker/src/panel/daterange.d.ts +21 -0
  138. package/lib/date-picker/src/panel/datetime.d.ts +21 -0
  139. package/lib/date-picker/src/panel/datetimerange.d.ts +21 -0
  140. package/lib/date-picker/src/panel/panelMonth.d.ts +42 -0
  141. package/lib/date-picker/src/panel/panelMonthContent.d.ts +21 -0
  142. package/lib/date-picker/src/panel/panelYear.d.ts +42 -0
  143. package/lib/date-picker/src/panel/panelYearContent.d.ts +21 -0
  144. package/lib/date-picker/src/panel/use-calendar.d.ts +21 -0
  145. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +21 -0
  146. package/lib/date-picker/src/panel/use-panel-common.d.ts +21 -0
  147. package/lib/date-picker/styles/light.d.ts +14 -0
  148. package/lib/date-picker-v2/src/DatePickerV2.d.ts +70 -0
  149. package/lib/date-picker-v2/styles/dark.d.ts +7 -0
  150. package/lib/date-picker-v2/styles/light.d.ts +7 -0
  151. package/lib/dynamic-input/src/DynamicInput.d.ts +70 -0
  152. package/lib/dynamic-input/src/InputPreset.d.ts +7 -0
  153. package/lib/dynamic-input/src/PairPreset.d.ts +7 -0
  154. package/lib/dynamic-input/styles/light.d.ts +7 -0
  155. package/lib/dynamic-tags/src/DynamicTags.d.ts +70 -0
  156. package/lib/dynamic-tags/styles/light.d.ts +7 -0
  157. package/lib/input/src/Input.d.ts +77 -0
  158. package/lib/input/src/Input.js +9 -1
  159. package/lib/input/src/InputGroupLabel.d.ts +63 -0
  160. package/lib/input/src/styles/input.cssr.js +1 -1
  161. package/lib/input/styles/light.d.ts +7 -0
  162. package/lib/input/styles/light.js +11 -1
  163. package/lib/input-number/src/InputNumber.d.ts +70 -0
  164. package/lib/input-number/styles/light.d.ts +7 -0
  165. package/lib/input-otp/src/InputOtp.d.ts +70 -0
  166. package/lib/input-otp/styles/light.d.ts +7 -0
  167. package/lib/legacy-transfer/src/Transfer.d.ts +70 -0
  168. package/lib/legacy-transfer/src/TransferFilter.d.ts +7 -0
  169. package/lib/legacy-transfer/src/TransferList.d.ts +7 -0
  170. package/lib/legacy-transfer/src/TransferListItem.d.ts +7 -0
  171. package/lib/legacy-transfer/styles/light.d.ts +7 -0
  172. package/lib/locales/date/enUS.js +2 -2
  173. package/lib/mention/src/Mention.d.ts +70 -0
  174. package/lib/mention/styles/light.d.ts +7 -0
  175. package/lib/pagination/src/Pagination.d.ts +70 -0
  176. package/lib/pagination/styles/light.d.ts +7 -0
  177. package/lib/time-picker/src/Panel.d.ts +7 -0
  178. package/lib/time-picker/src/TimePicker.d.ts +70 -0
  179. package/lib/time-picker/styles/light.d.ts +7 -0
  180. package/lib/transfer/src/Transfer.d.ts +70 -0
  181. package/lib/transfer/src/TransferFilter.d.ts +7 -0
  182. package/lib/transfer/src/TransferList.d.ts +7 -0
  183. package/lib/transfer/src/TransferListItem.d.ts +7 -0
  184. package/lib/transfer/styles/light.d.ts +7 -0
  185. package/lib/version.d.ts +1 -1
  186. package/lib/version.js +1 -1
  187. package/package.json +1 -1
  188. package/web-types.json +18 -1
package/dist/index.js CHANGED
@@ -15182,14 +15182,16 @@
15182
15182
  bPrefix: clsPrefix ? `.${clsPrefix}-` : void 0
15183
15183
  },
15184
15184
  anchorMetaName: cssrAnchorMetaName,
15185
- ssr: ssrAdapter
15185
+ ssr: ssrAdapter,
15186
+ parent: UConfigProvider?.styleMountTarget
15186
15187
  });
15187
15188
  if (!UConfigProvider?.preflightStyleDisabled) {
15188
15189
  globalStyle.mount({
15189
15190
  id: "u-global",
15190
15191
  head: true,
15191
15192
  anchorMetaName: cssrAnchorMetaName,
15192
- ssr: ssrAdapter
15193
+ ssr: ssrAdapter,
15194
+ parent: UConfigProvider?.styleMountTarget
15193
15195
  });
15194
15196
  }
15195
15197
  };
@@ -15275,7 +15277,7 @@
15275
15277
  return UConfigProvider ? UConfigProvider.mergedClsPrefixRef : vue.shallowRef(defaultClsPrefix);
15276
15278
  }
15277
15279
 
15278
- const enUS$1 = {
15280
+ const enUS$2 = {
15279
15281
  name: "en-US",
15280
15282
  global: {
15281
15283
  undo: "Undo",
@@ -15575,487 +15577,650 @@
15575
15577
  }
15576
15578
  };
15577
15579
 
15578
- var formatDistanceLocale$1 = {
15579
- lessThanXSeconds: {
15580
- one: 'less than a second',
15581
- other: 'less than {{count}} seconds'
15582
- },
15583
- xSeconds: {
15584
- one: '1 second',
15585
- other: '{{count}} seconds'
15586
- },
15587
- halfAMinute: 'half a minute',
15588
- lessThanXMinutes: {
15589
- one: 'less than a minute',
15590
- other: 'less than {{count}} minutes'
15591
- },
15592
- xMinutes: {
15593
- one: '1 minute',
15594
- other: '{{count}} minutes'
15595
- },
15596
- aboutXHours: {
15597
- one: 'about 1 hour',
15598
- other: 'about {{count}} hours'
15599
- },
15600
- xHours: {
15601
- one: '1 hour',
15602
- other: '{{count}} hours'
15603
- },
15604
- xDays: {
15605
- one: '1 day',
15606
- other: '{{count}} days'
15607
- },
15608
- aboutXWeeks: {
15609
- one: 'about 1 week',
15610
- other: 'about {{count}} weeks'
15611
- },
15612
- xWeeks: {
15613
- one: '1 week',
15614
- other: '{{count}} weeks'
15615
- },
15616
- aboutXMonths: {
15617
- one: 'about 1 month',
15618
- other: 'about {{count}} months'
15619
- },
15620
- xMonths: {
15621
- one: '1 month',
15622
- other: '{{count}} months'
15623
- },
15624
- aboutXYears: {
15625
- one: 'about 1 year',
15626
- other: 'about {{count}} years'
15627
- },
15628
- xYears: {
15629
- one: '1 year',
15630
- other: '{{count}} years'
15631
- },
15632
- overXYears: {
15633
- one: 'over 1 year',
15634
- other: 'over {{count}} years'
15635
- },
15636
- almostXYears: {
15637
- one: 'almost 1 year',
15638
- other: 'almost {{count}} years'
15639
- }
15640
- };
15641
- var formatDistance$2 = function (token, count, options) {
15642
- var result;
15643
- var tokenValue = formatDistanceLocale$1[token];
15644
- if (typeof tokenValue === 'string') {
15645
- result = tokenValue;
15646
- } else if (count === 1) {
15647
- result = tokenValue.one;
15648
- } else {
15649
- result = tokenValue.other.replace('{{count}}', count.toString());
15650
- }
15651
- if (options !== null && options !== void 0 && options.addSuffix) {
15652
- if (options.comparison && options.comparison > 0) {
15653
- return 'in ' + result;
15654
- } else {
15655
- return result + ' ago';
15656
- }
15657
- }
15658
- return result;
15659
- };
15580
+ var enUS$1 = {exports: {}};
15660
15581
 
15661
- function buildFormatLongFn$1(args) {
15662
- return function () {
15663
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
15664
- // TODO: Remove String()
15665
- var width = options.width ? String(options.width) : args.defaultWidth;
15666
- var format = args.formats[width] || args.formats[args.defaultWidth];
15667
- return format;
15668
- };
15669
- }
15582
+ var formatDistance$2 = {exports: {}};
15670
15583
 
15671
- var dateFormats$1 = {
15672
- full: 'EEEE, MMMM do, y',
15673
- long: 'MMMM do, y',
15674
- medium: 'MMM d, y',
15675
- short: 'MM/dd/yyyy'
15676
- };
15677
- var timeFormats$1 = {
15678
- full: 'h:mm:ss a zzzz',
15679
- long: 'h:mm:ss a z',
15680
- medium: 'h:mm:ss a',
15681
- short: 'h:mm a'
15682
- };
15683
- var dateTimeFormats$1 = {
15684
- full: "{{date}} 'at' {{time}}",
15685
- long: "{{date}} 'at' {{time}}",
15686
- medium: '{{date}}, {{time}}',
15687
- short: '{{date}}, {{time}}'
15688
- };
15689
- var formatLong$2 = {
15690
- date: buildFormatLongFn$1({
15691
- formats: dateFormats$1,
15692
- defaultWidth: 'full'
15693
- }),
15694
- time: buildFormatLongFn$1({
15695
- formats: timeFormats$1,
15696
- defaultWidth: 'full'
15697
- }),
15698
- dateTime: buildFormatLongFn$1({
15699
- formats: dateTimeFormats$1,
15700
- defaultWidth: 'full'
15701
- })
15702
- };
15584
+ (function (module, exports) {
15703
15585
 
15704
- var formatRelativeLocale$1 = {
15705
- lastWeek: "'last' eeee 'at' p",
15706
- yesterday: "'yesterday at' p",
15707
- today: "'today at' p",
15708
- tomorrow: "'tomorrow at' p",
15709
- nextWeek: "eeee 'at' p",
15710
- other: 'P'
15711
- };
15712
- var formatRelative$2 = function (token, _date, _baseDate, _options) {
15713
- return formatRelativeLocale$1[token];
15714
- };
15586
+ Object.defineProperty(exports, "__esModule", {
15587
+ value: true
15588
+ });
15589
+ exports.default = void 0;
15590
+ var formatDistanceLocale = {
15591
+ lessThanXSeconds: {
15592
+ one: 'less than a second',
15593
+ other: 'less than {{count}} seconds'
15594
+ },
15595
+ xSeconds: {
15596
+ one: '1 second',
15597
+ other: '{{count}} seconds'
15598
+ },
15599
+ halfAMinute: 'half a minute',
15600
+ lessThanXMinutes: {
15601
+ one: 'less than a minute',
15602
+ other: 'less than {{count}} minutes'
15603
+ },
15604
+ xMinutes: {
15605
+ one: '1 minute',
15606
+ other: '{{count}} minutes'
15607
+ },
15608
+ aboutXHours: {
15609
+ one: 'about 1 hour',
15610
+ other: 'about {{count}} hours'
15611
+ },
15612
+ xHours: {
15613
+ one: '1 hour',
15614
+ other: '{{count}} hours'
15615
+ },
15616
+ xDays: {
15617
+ one: '1 day',
15618
+ other: '{{count}} days'
15619
+ },
15620
+ aboutXWeeks: {
15621
+ one: 'about 1 week',
15622
+ other: 'about {{count}} weeks'
15623
+ },
15624
+ xWeeks: {
15625
+ one: '1 week',
15626
+ other: '{{count}} weeks'
15627
+ },
15628
+ aboutXMonths: {
15629
+ one: 'about 1 month',
15630
+ other: 'about {{count}} months'
15631
+ },
15632
+ xMonths: {
15633
+ one: '1 month',
15634
+ other: '{{count}} months'
15635
+ },
15636
+ aboutXYears: {
15637
+ one: 'about 1 year',
15638
+ other: 'about {{count}} years'
15639
+ },
15640
+ xYears: {
15641
+ one: '1 year',
15642
+ other: '{{count}} years'
15643
+ },
15644
+ overXYears: {
15645
+ one: 'over 1 year',
15646
+ other: 'over {{count}} years'
15647
+ },
15648
+ almostXYears: {
15649
+ one: 'almost 1 year',
15650
+ other: 'almost {{count}} years'
15651
+ }
15652
+ };
15653
+ var formatDistance = function (token, count, options) {
15654
+ var result;
15655
+ var tokenValue = formatDistanceLocale[token];
15656
+ if (typeof tokenValue === 'string') {
15657
+ result = tokenValue;
15658
+ } else if (count === 1) {
15659
+ result = tokenValue.one;
15660
+ } else {
15661
+ result = tokenValue.other.replace('{{count}}', count.toString());
15662
+ }
15663
+ if (options !== null && options !== void 0 && options.addSuffix) {
15664
+ if (options.comparison && options.comparison > 0) {
15665
+ return 'in ' + result;
15666
+ } else {
15667
+ return result + ' ago';
15668
+ }
15669
+ }
15670
+ return result;
15671
+ };
15672
+ var _default = formatDistance;
15673
+ exports.default = _default;
15674
+ module.exports = exports.default;
15675
+ } (formatDistance$2, formatDistance$2.exports));
15715
15676
 
15716
- function buildLocalizeFn$1(args) {
15717
- return function (dirtyIndex, dirtyOptions) {
15718
- var options = dirtyOptions || {};
15719
- var context = options.context ? String(options.context) : 'standalone';
15720
- var valuesArray;
15721
- if (context === 'formatting' && args.formattingValues) {
15722
- var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
15723
- var width = options.width ? String(options.width) : defaultWidth;
15724
- valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
15725
- } else {
15726
- var _defaultWidth = args.defaultWidth;
15727
- var _width = options.width ? String(options.width) : args.defaultWidth;
15728
- valuesArray = args.values[_width] || args.values[_defaultWidth];
15729
- }
15730
- var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; // @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!
15677
+ var formatDistanceExports = formatDistance$2.exports;
15678
+
15679
+ var formatLong$2 = {exports: {}};
15680
+
15681
+ var buildFormatLongFn$1 = {exports: {}};
15682
+
15683
+ (function (module, exports) {
15684
+
15685
+ Object.defineProperty(exports, "__esModule", {
15686
+ value: true
15687
+ });
15688
+ exports.default = buildFormatLongFn;
15689
+ function buildFormatLongFn(args) {
15690
+ return function () {
15691
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
15692
+ // TODO: Remove String()
15693
+ var width = options.width ? String(options.width) : args.defaultWidth;
15694
+ var format = args.formats[width] || args.formats[args.defaultWidth];
15695
+ return format;
15696
+ };
15697
+ }
15698
+ module.exports = exports.default;
15699
+ } (buildFormatLongFn$1, buildFormatLongFn$1.exports));
15700
+
15701
+ var buildFormatLongFnExports = buildFormatLongFn$1.exports;
15702
+
15703
+ (function (module, exports) {
15704
+
15705
+ Object.defineProperty(exports, "__esModule", {
15706
+ value: true
15707
+ });
15708
+ exports.default = void 0;
15709
+ var _index = _interopRequireDefault(buildFormatLongFnExports);
15710
+ function _interopRequireDefault(obj) {
15711
+ return obj && obj.__esModule ? obj : {
15712
+ default: obj
15713
+ };
15714
+ }
15715
+ var dateFormats = {
15716
+ full: 'EEEE, MMMM do, y',
15717
+ long: 'MMMM do, y',
15718
+ medium: 'MMM d, y',
15719
+ short: 'MM/dd/yyyy'
15720
+ };
15721
+ var timeFormats = {
15722
+ full: 'h:mm:ss a zzzz',
15723
+ long: 'h:mm:ss a z',
15724
+ medium: 'h:mm:ss a',
15725
+ short: 'h:mm a'
15726
+ };
15727
+ var dateTimeFormats = {
15728
+ full: "{{date}} 'at' {{time}}",
15729
+ long: "{{date}} 'at' {{time}}",
15730
+ medium: '{{date}}, {{time}}',
15731
+ short: '{{date}}, {{time}}'
15732
+ };
15733
+ var formatLong = {
15734
+ date: (0, _index.default)({
15735
+ formats: dateFormats,
15736
+ defaultWidth: 'full'
15737
+ }),
15738
+ time: (0, _index.default)({
15739
+ formats: timeFormats,
15740
+ defaultWidth: 'full'
15741
+ }),
15742
+ dateTime: (0, _index.default)({
15743
+ formats: dateTimeFormats,
15744
+ defaultWidth: 'full'
15745
+ })
15746
+ };
15747
+ var _default = formatLong;
15748
+ exports.default = _default;
15749
+ module.exports = exports.default;
15750
+ } (formatLong$2, formatLong$2.exports));
15751
+
15752
+ var formatLongExports = formatLong$2.exports;
15753
+
15754
+ var formatRelative$2 = {exports: {}};
15755
+
15756
+ (function (module, exports) {
15757
+
15758
+ Object.defineProperty(exports, "__esModule", {
15759
+ value: true
15760
+ });
15761
+ exports.default = void 0;
15762
+ var formatRelativeLocale = {
15763
+ lastWeek: "'last' eeee 'at' p",
15764
+ yesterday: "'yesterday at' p",
15765
+ today: "'today at' p",
15766
+ tomorrow: "'tomorrow at' p",
15767
+ nextWeek: "eeee 'at' p",
15768
+ other: 'P'
15769
+ };
15770
+ var formatRelative = function (token, _date, _baseDate, _options) {
15771
+ return formatRelativeLocale[token];
15772
+ };
15773
+ var _default = formatRelative;
15774
+ exports.default = _default;
15775
+ module.exports = exports.default;
15776
+ } (formatRelative$2, formatRelative$2.exports));
15777
+
15778
+ var formatRelativeExports = formatRelative$2.exports;
15779
+
15780
+ var localize$2 = {exports: {}};
15781
+
15782
+ var buildLocalizeFn$1 = {exports: {}};
15783
+
15784
+ (function (module, exports) {
15785
+
15786
+ Object.defineProperty(exports, "__esModule", {
15787
+ value: true
15788
+ });
15789
+ exports.default = buildLocalizeFn;
15790
+ function buildLocalizeFn(args) {
15791
+ return function (dirtyIndex, dirtyOptions) {
15792
+ var options = dirtyOptions || {};
15793
+ var context = options.context ? String(options.context) : 'standalone';
15794
+ var valuesArray;
15795
+ if (context === 'formatting' && args.formattingValues) {
15796
+ var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
15797
+ var width = options.width ? String(options.width) : defaultWidth;
15798
+ valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
15799
+ } else {
15800
+ var _defaultWidth = args.defaultWidth;
15801
+ var _width = options.width ? String(options.width) : args.defaultWidth;
15802
+ valuesArray = args.values[_width] || args.values[_defaultWidth];
15803
+ }
15804
+ var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; // @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!
15805
+
15806
+ return valuesArray[index];
15807
+ };
15808
+ }
15809
+ module.exports = exports.default;
15810
+ } (buildLocalizeFn$1, buildLocalizeFn$1.exports));
15811
+
15812
+ var buildLocalizeFnExports = buildLocalizeFn$1.exports;
15813
+
15814
+ (function (module, exports) {
15815
+
15816
+ Object.defineProperty(exports, "__esModule", {
15817
+ value: true
15818
+ });
15819
+ exports.default = void 0;
15820
+ var _index = _interopRequireDefault(buildLocalizeFnExports);
15821
+ function _interopRequireDefault(obj) {
15822
+ return obj && obj.__esModule ? obj : {
15823
+ default: obj
15824
+ };
15825
+ }
15826
+ var eraValues = {
15827
+ narrow: ['B', 'A'],
15828
+ abbreviated: ['BC', 'AD'],
15829
+ wide: ['Before Christ', 'Anno Domini']
15830
+ };
15831
+ var quarterValues = {
15832
+ narrow: ['1', '2', '3', '4'],
15833
+ abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
15834
+ wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
15835
+ }; // Note: in English, the names of days of the week and months are capitalized.
15836
+ // If you are making a new locale based on this one, check if the same is true for the language you're working on.
15837
+ // Generally, formatted dates should look like they are in the middle of a sentence,
15838
+ // e.g. in Spanish language the weekdays and months should be in the lowercase.
15839
+
15840
+ var monthValues = {
15841
+ narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
15842
+ abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
15843
+ wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
15844
+ };
15845
+ var dayValues = {
15846
+ narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
15847
+ short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
15848
+ abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
15849
+ wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
15850
+ };
15851
+ var dayPeriodValues = {
15852
+ narrow: {
15853
+ am: 'a',
15854
+ pm: 'p',
15855
+ midnight: 'mi',
15856
+ noon: 'n',
15857
+ morning: 'morning',
15858
+ afternoon: 'afternoon',
15859
+ evening: 'evening',
15860
+ night: 'night'
15861
+ },
15862
+ abbreviated: {
15863
+ am: 'AM',
15864
+ pm: 'PM',
15865
+ midnight: 'midnight',
15866
+ noon: 'noon',
15867
+ morning: 'morning',
15868
+ afternoon: 'afternoon',
15869
+ evening: 'evening',
15870
+ night: 'night'
15871
+ },
15872
+ wide: {
15873
+ am: 'a.m.',
15874
+ pm: 'p.m.',
15875
+ midnight: 'midnight',
15876
+ noon: 'noon',
15877
+ morning: 'morning',
15878
+ afternoon: 'afternoon',
15879
+ evening: 'evening',
15880
+ night: 'night'
15881
+ }
15882
+ };
15883
+ var formattingDayPeriodValues = {
15884
+ narrow: {
15885
+ am: 'a',
15886
+ pm: 'p',
15887
+ midnight: 'mi',
15888
+ noon: 'n',
15889
+ morning: 'in the morning',
15890
+ afternoon: 'in the afternoon',
15891
+ evening: 'in the evening',
15892
+ night: 'at night'
15893
+ },
15894
+ abbreviated: {
15895
+ am: 'AM',
15896
+ pm: 'PM',
15897
+ midnight: 'midnight',
15898
+ noon: 'noon',
15899
+ morning: 'in the morning',
15900
+ afternoon: 'in the afternoon',
15901
+ evening: 'in the evening',
15902
+ night: 'at night'
15903
+ },
15904
+ wide: {
15905
+ am: 'a.m.',
15906
+ pm: 'p.m.',
15907
+ midnight: 'midnight',
15908
+ noon: 'noon',
15909
+ morning: 'in the morning',
15910
+ afternoon: 'in the afternoon',
15911
+ evening: 'in the evening',
15912
+ night: 'at night'
15913
+ }
15914
+ };
15915
+ var ordinalNumber = function (dirtyNumber, _options) {
15916
+ var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
15917
+ // if they are different for different grammatical genders,
15918
+ // use `options.unit`.
15919
+ //
15920
+ // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
15921
+ // 'day', 'hour', 'minute', 'second'.
15922
+
15923
+ var rem100 = number % 100;
15924
+ if (rem100 > 20 || rem100 < 10) {
15925
+ switch (rem100 % 10) {
15926
+ case 1:
15927
+ return number + 'st';
15928
+ case 2:
15929
+ return number + 'nd';
15930
+ case 3:
15931
+ return number + 'rd';
15932
+ }
15933
+ }
15934
+ return number + 'th';
15935
+ };
15936
+ var localize = {
15937
+ ordinalNumber: ordinalNumber,
15938
+ era: (0, _index.default)({
15939
+ values: eraValues,
15940
+ defaultWidth: 'wide'
15941
+ }),
15942
+ quarter: (0, _index.default)({
15943
+ values: quarterValues,
15944
+ defaultWidth: 'wide',
15945
+ argumentCallback: function (quarter) {
15946
+ return quarter - 1;
15947
+ }
15948
+ }),
15949
+ month: (0, _index.default)({
15950
+ values: monthValues,
15951
+ defaultWidth: 'wide'
15952
+ }),
15953
+ day: (0, _index.default)({
15954
+ values: dayValues,
15955
+ defaultWidth: 'wide'
15956
+ }),
15957
+ dayPeriod: (0, _index.default)({
15958
+ values: dayPeriodValues,
15959
+ defaultWidth: 'wide',
15960
+ formattingValues: formattingDayPeriodValues,
15961
+ defaultFormattingWidth: 'wide'
15962
+ })
15963
+ };
15964
+ var _default = localize;
15965
+ exports.default = _default;
15966
+ module.exports = exports.default;
15967
+ } (localize$2, localize$2.exports));
15968
+
15969
+ var localizeExports = localize$2.exports;
15970
+
15971
+ var match$2 = {exports: {}};
15972
+
15973
+ var buildMatchFn$1 = {exports: {}};
15974
+
15975
+ (function (module, exports) {
15976
+
15977
+ Object.defineProperty(exports, "__esModule", {
15978
+ value: true
15979
+ });
15980
+ exports.default = buildMatchFn;
15981
+ function buildMatchFn(args) {
15982
+ return function (string) {
15983
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
15984
+ var width = options.width;
15985
+ var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
15986
+ var matchResult = string.match(matchPattern);
15987
+ if (!matchResult) {
15988
+ return null;
15989
+ }
15990
+ var matchedString = matchResult[0];
15991
+ var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
15992
+ var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {
15993
+ return pattern.test(matchedString);
15994
+ }) : findKey(parsePatterns, function (pattern) {
15995
+ return pattern.test(matchedString);
15996
+ });
15997
+ var value;
15998
+ value = args.valueCallback ? args.valueCallback(key) : key;
15999
+ value = options.valueCallback ? options.valueCallback(value) : value;
16000
+ var rest = string.slice(matchedString.length);
16001
+ return {
16002
+ value: value,
16003
+ rest: rest
16004
+ };
16005
+ };
16006
+ }
16007
+ function findKey(object, predicate) {
16008
+ for (var key in object) {
16009
+ if (object.hasOwnProperty(key) && predicate(object[key])) {
16010
+ return key;
16011
+ }
16012
+ }
16013
+ return undefined;
16014
+ }
16015
+ function findIndex(array, predicate) {
16016
+ for (var key = 0; key < array.length; key++) {
16017
+ if (predicate(array[key])) {
16018
+ return key;
16019
+ }
16020
+ }
16021
+ return undefined;
16022
+ }
16023
+ module.exports = exports.default;
16024
+ } (buildMatchFn$1, buildMatchFn$1.exports));
16025
+
16026
+ var buildMatchFnExports = buildMatchFn$1.exports;
16027
+
16028
+ var buildMatchPatternFn$1 = {exports: {}};
16029
+
16030
+ (function (module, exports) {
16031
+
16032
+ Object.defineProperty(exports, "__esModule", {
16033
+ value: true
16034
+ });
16035
+ exports.default = buildMatchPatternFn;
16036
+ function buildMatchPatternFn(args) {
16037
+ return function (string) {
16038
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
16039
+ var matchResult = string.match(args.matchPattern);
16040
+ if (!matchResult) return null;
16041
+ var matchedString = matchResult[0];
16042
+ var parseResult = string.match(args.parsePattern);
16043
+ if (!parseResult) return null;
16044
+ var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
16045
+ value = options.valueCallback ? options.valueCallback(value) : value;
16046
+ var rest = string.slice(matchedString.length);
16047
+ return {
16048
+ value: value,
16049
+ rest: rest
16050
+ };
16051
+ };
16052
+ }
16053
+ module.exports = exports.default;
16054
+ } (buildMatchPatternFn$1, buildMatchPatternFn$1.exports));
15731
16055
 
15732
- return valuesArray[index];
15733
- };
15734
- }
16056
+ var buildMatchPatternFnExports = buildMatchPatternFn$1.exports;
15735
16057
 
15736
- var eraValues$1 = {
15737
- narrow: ['B', 'A'],
15738
- abbreviated: ['BC', 'AD'],
15739
- wide: ['Before Christ', 'Anno Domini']
15740
- };
15741
- var quarterValues$1 = {
15742
- narrow: ['1', '2', '3', '4'],
15743
- abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
15744
- wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
15745
- }; // Note: in English, the names of days of the week and months are capitalized.
15746
- // If you are making a new locale based on this one, check if the same is true for the language you're working on.
15747
- // Generally, formatted dates should look like they are in the middle of a sentence,
15748
- // e.g. in Spanish language the weekdays and months should be in the lowercase.
16058
+ (function (module, exports) {
15749
16059
 
15750
- var monthValues$1 = {
15751
- narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
15752
- abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
15753
- wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
15754
- };
15755
- var dayValues$1 = {
15756
- narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
15757
- short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
15758
- abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
15759
- wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
15760
- };
15761
- var dayPeriodValues$1 = {
15762
- narrow: {
15763
- am: 'a',
15764
- pm: 'p',
15765
- midnight: 'mi',
15766
- noon: 'n',
15767
- morning: 'morning',
15768
- afternoon: 'afternoon',
15769
- evening: 'evening',
15770
- night: 'night'
15771
- },
15772
- abbreviated: {
15773
- am: 'AM',
15774
- pm: 'PM',
15775
- midnight: 'midnight',
15776
- noon: 'noon',
15777
- morning: 'morning',
15778
- afternoon: 'afternoon',
15779
- evening: 'evening',
15780
- night: 'night'
15781
- },
15782
- wide: {
15783
- am: 'a.m.',
15784
- pm: 'p.m.',
15785
- midnight: 'midnight',
15786
- noon: 'noon',
15787
- morning: 'morning',
15788
- afternoon: 'afternoon',
15789
- evening: 'evening',
15790
- night: 'night'
15791
- }
15792
- };
15793
- var formattingDayPeriodValues$1 = {
15794
- narrow: {
15795
- am: 'a',
15796
- pm: 'p',
15797
- midnight: 'mi',
15798
- noon: 'n',
15799
- morning: 'in the morning',
15800
- afternoon: 'in the afternoon',
15801
- evening: 'in the evening',
15802
- night: 'at night'
15803
- },
15804
- abbreviated: {
15805
- am: 'AM',
15806
- pm: 'PM',
15807
- midnight: 'midnight',
15808
- noon: 'noon',
15809
- morning: 'in the morning',
15810
- afternoon: 'in the afternoon',
15811
- evening: 'in the evening',
15812
- night: 'at night'
15813
- },
15814
- wide: {
15815
- am: 'a.m.',
15816
- pm: 'p.m.',
15817
- midnight: 'midnight',
15818
- noon: 'noon',
15819
- morning: 'in the morning',
15820
- afternoon: 'in the afternoon',
15821
- evening: 'in the evening',
15822
- night: 'at night'
15823
- }
15824
- };
15825
- var ordinalNumber$1 = function (dirtyNumber, _options) {
15826
- var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
15827
- // if they are different for different grammatical genders,
15828
- // use `options.unit`.
15829
- //
15830
- // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
15831
- // 'day', 'hour', 'minute', 'second'.
16060
+ Object.defineProperty(exports, "__esModule", {
16061
+ value: true
16062
+ });
16063
+ exports.default = void 0;
16064
+ var _index = _interopRequireDefault(buildMatchFnExports);
16065
+ var _index2 = _interopRequireDefault(buildMatchPatternFnExports);
16066
+ function _interopRequireDefault(obj) {
16067
+ return obj && obj.__esModule ? obj : {
16068
+ default: obj
16069
+ };
16070
+ }
16071
+ var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
16072
+ var parseOrdinalNumberPattern = /\d+/i;
16073
+ var matchEraPatterns = {
16074
+ narrow: /^(b|a)/i,
16075
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
16076
+ wide: /^(before christ|before common era|anno domini|common era)/i
16077
+ };
16078
+ var parseEraPatterns = {
16079
+ any: [/^b/i, /^(a|c)/i]
16080
+ };
16081
+ var matchQuarterPatterns = {
16082
+ narrow: /^[1234]/i,
16083
+ abbreviated: /^q[1234]/i,
16084
+ wide: /^[1234](th|st|nd|rd)? quarter/i
16085
+ };
16086
+ var parseQuarterPatterns = {
16087
+ any: [/1/i, /2/i, /3/i, /4/i]
16088
+ };
16089
+ var matchMonthPatterns = {
16090
+ narrow: /^[jfmasond]/i,
16091
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
16092
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
16093
+ };
16094
+ var parseMonthPatterns = {
16095
+ 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],
16096
+ 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]
16097
+ };
16098
+ var matchDayPatterns = {
16099
+ narrow: /^[smtwf]/i,
16100
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
16101
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
16102
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
16103
+ };
16104
+ var parseDayPatterns = {
16105
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
16106
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
16107
+ };
16108
+ var matchDayPeriodPatterns = {
16109
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
16110
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
16111
+ };
16112
+ var parseDayPeriodPatterns = {
16113
+ any: {
16114
+ am: /^a/i,
16115
+ pm: /^p/i,
16116
+ midnight: /^mi/i,
16117
+ noon: /^no/i,
16118
+ morning: /morning/i,
16119
+ afternoon: /afternoon/i,
16120
+ evening: /evening/i,
16121
+ night: /night/i
16122
+ }
16123
+ };
16124
+ var match = {
16125
+ ordinalNumber: (0, _index2.default)({
16126
+ matchPattern: matchOrdinalNumberPattern,
16127
+ parsePattern: parseOrdinalNumberPattern,
16128
+ valueCallback: function (value) {
16129
+ return parseInt(value, 10);
16130
+ }
16131
+ }),
16132
+ era: (0, _index.default)({
16133
+ matchPatterns: matchEraPatterns,
16134
+ defaultMatchWidth: 'wide',
16135
+ parsePatterns: parseEraPatterns,
16136
+ defaultParseWidth: 'any'
16137
+ }),
16138
+ quarter: (0, _index.default)({
16139
+ matchPatterns: matchQuarterPatterns,
16140
+ defaultMatchWidth: 'wide',
16141
+ parsePatterns: parseQuarterPatterns,
16142
+ defaultParseWidth: 'any',
16143
+ valueCallback: function (index) {
16144
+ return index + 1;
16145
+ }
16146
+ }),
16147
+ month: (0, _index.default)({
16148
+ matchPatterns: matchMonthPatterns,
16149
+ defaultMatchWidth: 'wide',
16150
+ parsePatterns: parseMonthPatterns,
16151
+ defaultParseWidth: 'any'
16152
+ }),
16153
+ day: (0, _index.default)({
16154
+ matchPatterns: matchDayPatterns,
16155
+ defaultMatchWidth: 'wide',
16156
+ parsePatterns: parseDayPatterns,
16157
+ defaultParseWidth: 'any'
16158
+ }),
16159
+ dayPeriod: (0, _index.default)({
16160
+ matchPatterns: matchDayPeriodPatterns,
16161
+ defaultMatchWidth: 'any',
16162
+ parsePatterns: parseDayPeriodPatterns,
16163
+ defaultParseWidth: 'any'
16164
+ })
16165
+ };
16166
+ var _default = match;
16167
+ exports.default = _default;
16168
+ module.exports = exports.default;
16169
+ } (match$2, match$2.exports));
15832
16170
 
15833
- var rem100 = number % 100;
15834
- if (rem100 > 20 || rem100 < 10) {
15835
- switch (rem100 % 10) {
15836
- case 1:
15837
- return number + 'st';
15838
- case 2:
15839
- return number + 'nd';
15840
- case 3:
15841
- return number + 'rd';
15842
- }
15843
- }
15844
- return number + 'th';
15845
- };
15846
- var localize$2 = {
15847
- ordinalNumber: ordinalNumber$1,
15848
- era: buildLocalizeFn$1({
15849
- values: eraValues$1,
15850
- defaultWidth: 'wide'
15851
- }),
15852
- quarter: buildLocalizeFn$1({
15853
- values: quarterValues$1,
15854
- defaultWidth: 'wide',
15855
- argumentCallback: function (quarter) {
15856
- return quarter - 1;
15857
- }
15858
- }),
15859
- month: buildLocalizeFn$1({
15860
- values: monthValues$1,
15861
- defaultWidth: 'wide'
15862
- }),
15863
- day: buildLocalizeFn$1({
15864
- values: dayValues$1,
15865
- defaultWidth: 'wide'
15866
- }),
15867
- dayPeriod: buildLocalizeFn$1({
15868
- values: dayPeriodValues$1,
15869
- defaultWidth: 'wide',
15870
- formattingValues: formattingDayPeriodValues$1,
15871
- defaultFormattingWidth: 'wide'
15872
- })
15873
- };
16171
+ var matchExports = match$2.exports;
15874
16172
 
15875
- function buildMatchFn$1(args) {
15876
- return function (string) {
15877
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
15878
- var width = options.width;
15879
- var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
15880
- var matchResult = string.match(matchPattern);
15881
- if (!matchResult) {
15882
- return null;
15883
- }
15884
- var matchedString = matchResult[0];
15885
- var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
15886
- var key = Array.isArray(parsePatterns) ? findIndex$1(parsePatterns, function (pattern) {
15887
- return pattern.test(matchedString);
15888
- }) : findKey$1(parsePatterns, function (pattern) {
15889
- return pattern.test(matchedString);
15890
- });
15891
- var value;
15892
- value = args.valueCallback ? args.valueCallback(key) : key;
15893
- value = options.valueCallback ? options.valueCallback(value) : value;
15894
- var rest = string.slice(matchedString.length);
15895
- return {
15896
- value: value,
15897
- rest: rest
15898
- };
15899
- };
15900
- }
15901
- function findKey$1(object, predicate) {
15902
- for (var key in object) {
15903
- if (object.hasOwnProperty(key) && predicate(object[key])) {
15904
- return key;
15905
- }
15906
- }
15907
- return undefined;
15908
- }
15909
- function findIndex$1(array, predicate) {
15910
- for (var key = 0; key < array.length; key++) {
15911
- if (predicate(array[key])) {
15912
- return key;
15913
- }
15914
- }
15915
- return undefined;
15916
- }
16173
+ (function (module, exports) {
15917
16174
 
15918
- function buildMatchPatternFn$1(args) {
15919
- return function (string) {
15920
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
15921
- var matchResult = string.match(args.matchPattern);
15922
- if (!matchResult) return null;
15923
- var matchedString = matchResult[0];
15924
- var parseResult = string.match(args.parsePattern);
15925
- if (!parseResult) return null;
15926
- var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
15927
- value = options.valueCallback ? options.valueCallback(value) : value;
15928
- var rest = string.slice(matchedString.length);
15929
- return {
15930
- value: value,
15931
- rest: rest
15932
- };
15933
- };
15934
- }
16175
+ Object.defineProperty(exports, "__esModule", {
16176
+ value: true
16177
+ });
16178
+ exports.default = void 0;
16179
+ var _index = _interopRequireDefault(formatDistanceExports);
16180
+ var _index2 = _interopRequireDefault(formatLongExports);
16181
+ var _index3 = _interopRequireDefault(formatRelativeExports);
16182
+ var _index4 = _interopRequireDefault(localizeExports);
16183
+ var _index5 = _interopRequireDefault(matchExports);
16184
+ function _interopRequireDefault(obj) {
16185
+ return obj && obj.__esModule ? obj : {
16186
+ default: obj
16187
+ };
16188
+ }
15935
16189
 
15936
- var matchOrdinalNumberPattern$1 = /^(\d+)(th|st|nd|rd)?/i;
15937
- var parseOrdinalNumberPattern$1 = /\d+/i;
15938
- var matchEraPatterns$1 = {
15939
- narrow: /^(b|a)/i,
15940
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
15941
- wide: /^(before christ|before common era|anno domini|common era)/i
15942
- };
15943
- var parseEraPatterns$1 = {
15944
- any: [/^b/i, /^(a|c)/i]
15945
- };
15946
- var matchQuarterPatterns$1 = {
15947
- narrow: /^[1234]/i,
15948
- abbreviated: /^q[1234]/i,
15949
- wide: /^[1234](th|st|nd|rd)? quarter/i
15950
- };
15951
- var parseQuarterPatterns$1 = {
15952
- any: [/1/i, /2/i, /3/i, /4/i]
15953
- };
15954
- var matchMonthPatterns$1 = {
15955
- narrow: /^[jfmasond]/i,
15956
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
15957
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
15958
- };
15959
- var parseMonthPatterns$1 = {
15960
- 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],
15961
- 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]
15962
- };
15963
- var matchDayPatterns$1 = {
15964
- narrow: /^[smtwf]/i,
15965
- short: /^(su|mo|tu|we|th|fr|sa)/i,
15966
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
15967
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
15968
- };
15969
- var parseDayPatterns$1 = {
15970
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
15971
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
15972
- };
15973
- var matchDayPeriodPatterns$1 = {
15974
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
15975
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
15976
- };
15977
- var parseDayPeriodPatterns$1 = {
15978
- any: {
15979
- am: /^a/i,
15980
- pm: /^p/i,
15981
- midnight: /^mi/i,
15982
- noon: /^no/i,
15983
- morning: /morning/i,
15984
- afternoon: /afternoon/i,
15985
- evening: /evening/i,
15986
- night: /night/i
15987
- }
15988
- };
15989
- var match$2 = {
15990
- ordinalNumber: buildMatchPatternFn$1({
15991
- matchPattern: matchOrdinalNumberPattern$1,
15992
- parsePattern: parseOrdinalNumberPattern$1,
15993
- valueCallback: function (value) {
15994
- return parseInt(value, 10);
15995
- }
15996
- }),
15997
- era: buildMatchFn$1({
15998
- matchPatterns: matchEraPatterns$1,
15999
- defaultMatchWidth: 'wide',
16000
- parsePatterns: parseEraPatterns$1,
16001
- defaultParseWidth: 'any'
16002
- }),
16003
- quarter: buildMatchFn$1({
16004
- matchPatterns: matchQuarterPatterns$1,
16005
- defaultMatchWidth: 'wide',
16006
- parsePatterns: parseQuarterPatterns$1,
16007
- defaultParseWidth: 'any',
16008
- valueCallback: function (index) {
16009
- return index + 1;
16010
- }
16011
- }),
16012
- month: buildMatchFn$1({
16013
- matchPatterns: matchMonthPatterns$1,
16014
- defaultMatchWidth: 'wide',
16015
- parsePatterns: parseMonthPatterns$1,
16016
- defaultParseWidth: 'any'
16017
- }),
16018
- day: buildMatchFn$1({
16019
- matchPatterns: matchDayPatterns$1,
16020
- defaultMatchWidth: 'wide',
16021
- parsePatterns: parseDayPatterns$1,
16022
- defaultParseWidth: 'any'
16023
- }),
16024
- dayPeriod: buildMatchFn$1({
16025
- matchPatterns: matchDayPeriodPatterns$1,
16026
- defaultMatchWidth: 'any',
16027
- parsePatterns: parseDayPeriodPatterns$1,
16028
- defaultParseWidth: 'any'
16029
- })
16030
- };
16190
+ /**
16191
+ * @type {Locale}
16192
+ * @category Locales
16193
+ * @summary English locale (United States).
16194
+ * @language English
16195
+ * @iso-639-2 eng
16196
+ * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
16197
+ * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
16198
+ */
16199
+ var locale = {
16200
+ code: 'en-US',
16201
+ formatDistance: _index.default,
16202
+ formatLong: _index2.default,
16203
+ formatRelative: _index3.default,
16204
+ localize: _index4.default,
16205
+ match: _index5.default,
16206
+ options: {
16207
+ weekStartsOn: 0
16208
+ /* Sunday */,
16031
16209
 
16032
- /**
16033
- * @type {Locale}
16034
- * @category Locales
16035
- * @summary English locale (United States).
16036
- * @language English
16037
- * @iso-639-2 eng
16038
- * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
16039
- * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
16040
- */
16041
- var locale$1 = {
16042
- code: 'en-US',
16043
- formatDistance: formatDistance$2,
16044
- formatLong: formatLong$2,
16045
- formatRelative: formatRelative$2,
16046
- localize: localize$2,
16047
- match: match$2,
16048
- options: {
16049
- weekStartsOn: 0
16050
- /* Sunday */,
16210
+ firstWeekContainsDate: 1
16211
+ }
16212
+ };
16213
+ var _default = locale;
16214
+ exports.default = _default;
16215
+ module.exports = exports.default;
16216
+ } (enUS$1, enUS$1.exports));
16051
16217
 
16052
- firstWeekContainsDate: 1
16053
- }
16054
- };
16218
+ var enUSExports = enUS$1.exports;
16219
+ var enUS = /*@__PURE__*/getDefaultExportFromCjs(enUSExports);
16055
16220
 
16056
16221
  const dateEnUs = {
16057
16222
  name: "en-US",
16058
- locale: locale$1
16223
+ locale: enUS
16059
16224
  };
16060
16225
 
16061
16226
  function declension(scheme, count) {
@@ -16095,7 +16260,7 @@
16095
16260
  }
16096
16261
  };
16097
16262
  }
16098
- var formatDistanceLocale = {
16263
+ var formatDistanceLocale$1 = {
16099
16264
  lessThanXSeconds: buildLocalizeTokenFn({
16100
16265
  regular: {
16101
16266
  one: 'меньше секунды',
@@ -16278,35 +16443,45 @@
16278
16443
  };
16279
16444
  function formatDistance$1(token, count, options) {
16280
16445
  options = options || {};
16281
- return formatDistanceLocale[token](count, options);
16446
+ return formatDistanceLocale$1[token](count, options);
16282
16447
  }
16283
16448
 
16284
- var dateFormats = {
16449
+ function buildFormatLongFn(args) {
16450
+ return function () {
16451
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
16452
+ // TODO: Remove String()
16453
+ var width = options.width ? String(options.width) : args.defaultWidth;
16454
+ var format = args.formats[width] || args.formats[args.defaultWidth];
16455
+ return format;
16456
+ };
16457
+ }
16458
+
16459
+ var dateFormats$1 = {
16285
16460
  full: "EEEE, d MMMM y 'г.'",
16286
16461
  long: "d MMMM y 'г.'",
16287
16462
  medium: "d MMM y 'г.'",
16288
16463
  short: 'dd.MM.y'
16289
16464
  };
16290
- var timeFormats = {
16465
+ var timeFormats$1 = {
16291
16466
  full: 'H:mm:ss zzzz',
16292
16467
  long: 'H:mm:ss z',
16293
16468
  medium: 'H:mm:ss',
16294
16469
  short: 'H:mm'
16295
16470
  };
16296
- var dateTimeFormats = {
16471
+ var dateTimeFormats$1 = {
16297
16472
  any: '{{date}}, {{time}}'
16298
16473
  };
16299
16474
  var formatLong$1 = {
16300
- date: buildFormatLongFn$1({
16301
- formats: dateFormats,
16475
+ date: buildFormatLongFn({
16476
+ formats: dateFormats$1,
16302
16477
  defaultWidth: 'full'
16303
16478
  }),
16304
- time: buildFormatLongFn$1({
16305
- formats: timeFormats,
16479
+ time: buildFormatLongFn({
16480
+ formats: timeFormats$1,
16306
16481
  defaultWidth: 'full'
16307
16482
  }),
16308
- dateTime: buildFormatLongFn$1({
16309
- formats: dateTimeFormats,
16483
+ dateTime: buildFormatLongFn({
16484
+ formats: dateTimeFormats$1,
16310
16485
  defaultWidth: 'any'
16311
16486
  })
16312
16487
  };
@@ -16449,7 +16624,7 @@
16449
16624
  return "'в следующую " + weekday + " в' p";
16450
16625
  }
16451
16626
  }
16452
- var formatRelativeLocale = {
16627
+ var formatRelativeLocale$1 = {
16453
16628
  lastWeek: function (date, baseDate, options) {
16454
16629
  var day = date.getUTCDay();
16455
16630
  if (isSameUTCWeek(date, baseDate, options)) {
@@ -16472,24 +16647,44 @@
16472
16647
  other: 'P'
16473
16648
  };
16474
16649
  function formatRelative$1(token, date, baseDate, options) {
16475
- var format = formatRelativeLocale[token];
16650
+ var format = formatRelativeLocale$1[token];
16476
16651
  if (typeof format === 'function') {
16477
16652
  return format(date, baseDate, options);
16478
16653
  }
16479
16654
  return format;
16480
16655
  }
16481
16656
 
16482
- var eraValues = {
16657
+ function buildLocalizeFn(args) {
16658
+ return function (dirtyIndex, dirtyOptions) {
16659
+ var options = dirtyOptions || {};
16660
+ var context = options.context ? String(options.context) : 'standalone';
16661
+ var valuesArray;
16662
+ if (context === 'formatting' && args.formattingValues) {
16663
+ var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
16664
+ var width = options.width ? String(options.width) : defaultWidth;
16665
+ valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
16666
+ } else {
16667
+ var _defaultWidth = args.defaultWidth;
16668
+ var _width = options.width ? String(options.width) : args.defaultWidth;
16669
+ valuesArray = args.values[_width] || args.values[_defaultWidth];
16670
+ }
16671
+ var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; // @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!
16672
+
16673
+ return valuesArray[index];
16674
+ };
16675
+ }
16676
+
16677
+ var eraValues$1 = {
16483
16678
  narrow: ['до н.э.', 'н.э.'],
16484
16679
  abbreviated: ['до н. э.', 'н. э.'],
16485
16680
  wide: ['до нашей эры', 'нашей эры']
16486
16681
  };
16487
- var quarterValues = {
16682
+ var quarterValues$1 = {
16488
16683
  narrow: ['1', '2', '3', '4'],
16489
16684
  abbreviated: ['1-й кв.', '2-й кв.', '3-й кв.', '4-й кв.'],
16490
16685
  wide: ['1-й квартал', '2-й квартал', '3-й квартал', '4-й квартал']
16491
16686
  };
16492
- var monthValues = {
16687
+ var monthValues$1 = {
16493
16688
  narrow: ['Я', 'Ф', 'М', 'А', 'М', 'И', 'И', 'А', 'С', 'О', 'Н', 'Д'],
16494
16689
  abbreviated: ['янв.', 'фев.', 'март', 'апр.', 'май', 'июнь', 'июль', 'авг.', 'сент.', 'окт.', 'нояб.', 'дек.'],
16495
16690
  wide: ['январь', 'февраль', 'март', 'апрель', 'май', 'июнь', 'июль', 'август', 'сентябрь', 'октябрь', 'ноябрь', 'декабрь']
@@ -16499,13 +16694,13 @@
16499
16694
  abbreviated: ['янв.', 'фев.', 'мар.', 'апр.', 'мая', 'июн.', 'июл.', 'авг.', 'сент.', 'окт.', 'нояб.', 'дек.'],
16500
16695
  wide: ['января', 'февраля', 'марта', 'апреля', 'мая', 'июня', 'июля', 'августа', 'сентября', 'октября', 'ноября', 'декабря']
16501
16696
  };
16502
- var dayValues = {
16697
+ var dayValues$1 = {
16503
16698
  narrow: ['В', 'П', 'В', 'С', 'Ч', 'П', 'С'],
16504
16699
  short: ['вс', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'],
16505
16700
  abbreviated: ['вск', 'пнд', 'втр', 'срд', 'чтв', 'птн', 'суб'],
16506
16701
  wide: ['воскресенье', 'понедельник', 'вторник', 'среда', 'четверг', 'пятница', 'суббота']
16507
16702
  };
16508
- var dayPeriodValues = {
16703
+ var dayPeriodValues$1 = {
16509
16704
  narrow: {
16510
16705
  am: 'ДП',
16511
16706
  pm: 'ПП',
@@ -16537,7 +16732,7 @@
16537
16732
  night: 'ночь'
16538
16733
  }
16539
16734
  };
16540
- var formattingDayPeriodValues = {
16735
+ var formattingDayPeriodValues$1 = {
16541
16736
  narrow: {
16542
16737
  am: 'ДП',
16543
16738
  pm: 'ПП',
@@ -16569,7 +16764,7 @@
16569
16764
  night: 'ночи'
16570
16765
  }
16571
16766
  };
16572
- function ordinalNumber(dirtyNumber, dirtyOptions) {
16767
+ function ordinalNumber$1(dirtyNumber, dirtyOptions) {
16573
16768
  var options = dirtyOptions || {};
16574
16769
  var unit = String(options.unit);
16575
16770
  var suffix;
@@ -16583,79 +16778,140 @@
16583
16778
  return dirtyNumber + suffix;
16584
16779
  }
16585
16780
  var localize$1 = {
16586
- ordinalNumber: ordinalNumber,
16587
- era: buildLocalizeFn$1({
16588
- values: eraValues,
16781
+ ordinalNumber: ordinalNumber$1,
16782
+ era: buildLocalizeFn({
16783
+ values: eraValues$1,
16589
16784
  defaultWidth: 'wide'
16590
16785
  }),
16591
- quarter: buildLocalizeFn$1({
16592
- values: quarterValues,
16786
+ quarter: buildLocalizeFn({
16787
+ values: quarterValues$1,
16593
16788
  defaultWidth: 'wide',
16594
16789
  argumentCallback: function (quarter) {
16595
16790
  return Number(quarter) - 1;
16596
16791
  }
16597
16792
  }),
16598
- month: buildLocalizeFn$1({
16599
- values: monthValues,
16793
+ month: buildLocalizeFn({
16794
+ values: monthValues$1,
16600
16795
  defaultWidth: 'wide',
16601
16796
  formattingValues: formattingMonthValues,
16602
16797
  defaultFormattingWidth: 'wide'
16603
16798
  }),
16604
- day: buildLocalizeFn$1({
16605
- values: dayValues,
16799
+ day: buildLocalizeFn({
16800
+ values: dayValues$1,
16606
16801
  defaultWidth: 'wide'
16607
16802
  }),
16608
- dayPeriod: buildLocalizeFn$1({
16609
- values: dayPeriodValues,
16803
+ dayPeriod: buildLocalizeFn({
16804
+ values: dayPeriodValues$1,
16610
16805
  defaultWidth: 'any',
16611
- formattingValues: formattingDayPeriodValues,
16806
+ formattingValues: formattingDayPeriodValues$1,
16612
16807
  defaultFormattingWidth: 'wide'
16613
16808
  })
16614
16809
  };
16615
16810
 
16616
- var matchOrdinalNumberPattern = /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i;
16617
- var parseOrdinalNumberPattern = /\d+/i;
16618
- var matchEraPatterns = {
16811
+ function buildMatchPatternFn(args) {
16812
+ return function (string) {
16813
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
16814
+ var matchResult = string.match(args.matchPattern);
16815
+ if (!matchResult) return null;
16816
+ var matchedString = matchResult[0];
16817
+ var parseResult = string.match(args.parsePattern);
16818
+ if (!parseResult) return null;
16819
+ var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
16820
+ value = options.valueCallback ? options.valueCallback(value) : value;
16821
+ var rest = string.slice(matchedString.length);
16822
+ return {
16823
+ value: value,
16824
+ rest: rest
16825
+ };
16826
+ };
16827
+ }
16828
+
16829
+ function buildMatchFn(args) {
16830
+ return function (string) {
16831
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
16832
+ var width = options.width;
16833
+ var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
16834
+ var matchResult = string.match(matchPattern);
16835
+ if (!matchResult) {
16836
+ return null;
16837
+ }
16838
+ var matchedString = matchResult[0];
16839
+ var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
16840
+ var key = Array.isArray(parsePatterns) ? findIndex$1(parsePatterns, function (pattern) {
16841
+ return pattern.test(matchedString);
16842
+ }) : findKey$1(parsePatterns, function (pattern) {
16843
+ return pattern.test(matchedString);
16844
+ });
16845
+ var value;
16846
+ value = args.valueCallback ? args.valueCallback(key) : key;
16847
+ value = options.valueCallback ? options.valueCallback(value) : value;
16848
+ var rest = string.slice(matchedString.length);
16849
+ return {
16850
+ value: value,
16851
+ rest: rest
16852
+ };
16853
+ };
16854
+ }
16855
+ function findKey$1(object, predicate) {
16856
+ for (var key in object) {
16857
+ if (object.hasOwnProperty(key) && predicate(object[key])) {
16858
+ return key;
16859
+ }
16860
+ }
16861
+ return undefined;
16862
+ }
16863
+ function findIndex$1(array, predicate) {
16864
+ for (var key = 0; key < array.length; key++) {
16865
+ if (predicate(array[key])) {
16866
+ return key;
16867
+ }
16868
+ }
16869
+ return undefined;
16870
+ }
16871
+
16872
+ var matchOrdinalNumberPattern$1 = /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i;
16873
+ var parseOrdinalNumberPattern$1 = /\d+/i;
16874
+ var matchEraPatterns$1 = {
16619
16875
  narrow: /^((до )?н\.?\s?э\.?)/i,
16620
16876
  abbreviated: /^((до )?н\.?\s?э\.?)/i,
16621
16877
  wide: /^(до нашей эры|нашей эры|наша эра)/i
16622
16878
  };
16623
- var parseEraPatterns = {
16879
+ var parseEraPatterns$1 = {
16624
16880
  any: [/^д/i, /^н/i]
16625
16881
  };
16626
- var matchQuarterPatterns = {
16882
+ var matchQuarterPatterns$1 = {
16627
16883
  narrow: /^[1234]/i,
16628
16884
  abbreviated: /^[1234](-?[ыои]?й?)? кв.?/i,
16629
16885
  wide: /^[1234](-?[ыои]?й?)? квартал/i
16630
16886
  };
16631
- var parseQuarterPatterns = {
16887
+ var parseQuarterPatterns$1 = {
16632
16888
  any: [/1/i, /2/i, /3/i, /4/i]
16633
16889
  };
16634
- var matchMonthPatterns = {
16890
+ var matchMonthPatterns$1 = {
16635
16891
  narrow: /^[яфмаисонд]/i,
16636
16892
  abbreviated: /^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,
16637
16893
  wide: /^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i
16638
16894
  };
16639
- var parseMonthPatterns = {
16895
+ var parseMonthPatterns$1 = {
16640
16896
  narrow: [/^я/i, /^ф/i, /^м/i, /^а/i, /^м/i, /^и/i, /^и/i, /^а/i, /^с/i, /^о/i, /^н/i, /^я/i],
16641
16897
  any: [/^я/i, /^ф/i, /^мар/i, /^ап/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^ав/i, /^с/i, /^о/i, /^н/i, /^д/i]
16642
16898
  };
16643
- var matchDayPatterns = {
16899
+ var matchDayPatterns$1 = {
16644
16900
  narrow: /^[впсч]/i,
16645
16901
  short: /^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,
16646
16902
  abbreviated: /^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,
16647
16903
  wide: /^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i
16648
16904
  };
16649
- var parseDayPatterns = {
16905
+ var parseDayPatterns$1 = {
16650
16906
  narrow: [/^в/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i],
16651
16907
  any: [/^в[ос]/i, /^п[он]/i, /^в/i, /^ср/i, /^ч/i, /^п[ят]/i, /^с[уб]/i]
16652
16908
  };
16653
- var matchDayPeriodPatterns = {
16909
+ var matchDayPeriodPatterns$1 = {
16654
16910
  narrow: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,
16655
16911
  abbreviated: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,
16656
16912
  wide: /^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i
16657
16913
  };
16658
- var parseDayPeriodPatterns = {
16914
+ var parseDayPeriodPatterns$1 = {
16659
16915
  any: {
16660
16916
  am: /^дп/i,
16661
16917
  pm: /^пп/i,
@@ -16668,44 +16924,44 @@
16668
16924
  }
16669
16925
  };
16670
16926
  var match$1 = {
16671
- ordinalNumber: buildMatchPatternFn$1({
16672
- matchPattern: matchOrdinalNumberPattern,
16673
- parsePattern: parseOrdinalNumberPattern,
16927
+ ordinalNumber: buildMatchPatternFn({
16928
+ matchPattern: matchOrdinalNumberPattern$1,
16929
+ parsePattern: parseOrdinalNumberPattern$1,
16674
16930
  valueCallback: function (value) {
16675
16931
  return parseInt(value, 10);
16676
16932
  }
16677
16933
  }),
16678
- era: buildMatchFn$1({
16679
- matchPatterns: matchEraPatterns,
16934
+ era: buildMatchFn({
16935
+ matchPatterns: matchEraPatterns$1,
16680
16936
  defaultMatchWidth: 'wide',
16681
- parsePatterns: parseEraPatterns,
16937
+ parsePatterns: parseEraPatterns$1,
16682
16938
  defaultParseWidth: 'any'
16683
16939
  }),
16684
- quarter: buildMatchFn$1({
16685
- matchPatterns: matchQuarterPatterns,
16940
+ quarter: buildMatchFn({
16941
+ matchPatterns: matchQuarterPatterns$1,
16686
16942
  defaultMatchWidth: 'wide',
16687
- parsePatterns: parseQuarterPatterns,
16943
+ parsePatterns: parseQuarterPatterns$1,
16688
16944
  defaultParseWidth: 'any',
16689
16945
  valueCallback: function (index) {
16690
16946
  return index + 1;
16691
16947
  }
16692
16948
  }),
16693
- month: buildMatchFn$1({
16694
- matchPatterns: matchMonthPatterns,
16949
+ month: buildMatchFn({
16950
+ matchPatterns: matchMonthPatterns$1,
16695
16951
  defaultMatchWidth: 'wide',
16696
- parsePatterns: parseMonthPatterns,
16952
+ parsePatterns: parseMonthPatterns$1,
16697
16953
  defaultParseWidth: 'any'
16698
16954
  }),
16699
- day: buildMatchFn$1({
16700
- matchPatterns: matchDayPatterns,
16955
+ day: buildMatchFn({
16956
+ matchPatterns: matchDayPatterns$1,
16701
16957
  defaultMatchWidth: 'wide',
16702
- parsePatterns: parseDayPatterns,
16958
+ parsePatterns: parseDayPatterns$1,
16703
16959
  defaultParseWidth: 'any'
16704
16960
  }),
16705
- dayPeriod: buildMatchFn$1({
16706
- matchPatterns: matchDayPeriodPatterns,
16961
+ dayPeriod: buildMatchFn({
16962
+ matchPatterns: matchDayPeriodPatterns$1,
16707
16963
  defaultMatchWidth: 'wide',
16708
- parsePatterns: parseDayPeriodPatterns,
16964
+ parsePatterns: parseDayPeriodPatterns$1,
16709
16965
  defaultParseWidth: 'any'
16710
16966
  })
16711
16967
  };
@@ -16720,7 +16976,7 @@
16720
16976
  * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
16721
16977
  */
16722
16978
 
16723
- var locale = {
16979
+ var locale$1 = {
16724
16980
  code: 'ru',
16725
16981
  formatDistance: formatDistance$1,
16726
16982
  formatLong: formatLong$1,
@@ -16737,7 +16993,7 @@
16737
16993
 
16738
16994
  const dateRuRU = {
16739
16995
  name: "ru-RU",
16740
- locale: locale
16996
+ locale: locale$1
16741
16997
  };
16742
16998
 
16743
16999
  function createLocale(locale, fallbackLocale) {
@@ -16750,7 +17006,7 @@
16750
17006
  mergedDateLocaleRef
16751
17007
  } = vue.inject(configProviderInjectionKey, null) || {};
16752
17008
  const localeRef = vue.computed(() => {
16753
- return mergedLocaleRef?.value?.[ns] ?? enUS$1[ns];
17009
+ return mergedLocaleRef?.value?.[ns] ?? enUS$2[ns];
16754
17010
  });
16755
17011
  const dateLocaleRef = vue.computed(() => {
16756
17012
  return mergedDateLocaleRef?.value ?? dateEnUs;
@@ -16777,14 +17033,16 @@
16777
17033
  props: {
16778
17034
  bPrefix: clsPrefix ? `.${clsPrefix}-` : void 0
16779
17035
  },
16780
- ssr: ssrAdapter
17036
+ ssr: ssrAdapter,
17037
+ parent: UConfigProvider?.styleMountTarget
16781
17038
  });
16782
17039
  if (!UConfigProvider?.preflightStyleDisabled) {
16783
17040
  globalStyle.mount({
16784
17041
  id: "u-global",
16785
17042
  head: true,
16786
17043
  anchorMetaName: cssrAnchorMetaName,
16787
- ssr: ssrAdapter
17044
+ ssr: ssrAdapter,
17045
+ parent: UConfigProvider?.styleMountTarget
16788
17046
  });
16789
17047
  }
16790
17048
  };
@@ -16820,7 +17078,9 @@
16820
17078
 
16821
17079
  function useThemeClass(componentName, hashRef, cssVarsRef, props) {
16822
17080
  if (!cssVarsRef) throwError("useThemeClass", "cssVarsRef is not passed");
16823
- const mergedThemeHashRef = vue.inject(configProviderInjectionKey, null)?.mergedThemeHashRef;
17081
+ const UConfigProvider = vue.inject(configProviderInjectionKey, null);
17082
+ const mergedThemeHashRef = UConfigProvider?.mergedThemeHashRef;
17083
+ const styleMountTarget = UConfigProvider?.styleMountTarget;
16824
17084
  const themeClassRef = vue.ref("");
16825
17085
  const ssrAdapter = useSsrAdapter();
16826
17086
  let renderCallback;
@@ -16850,7 +17110,8 @@
16850
17110
  }
16851
17111
  c$1(`.${finalThemeHash}`, style).mount({
16852
17112
  id: finalThemeHash,
16853
- ssr: ssrAdapter
17113
+ ssr: ssrAdapter,
17114
+ parent: styleMountTarget
16854
17115
  });
16855
17116
  renderCallback = void 0;
16856
17117
  };
@@ -16882,6 +17143,7 @@
16882
17143
  }
16883
17144
  return componentRtlState;
16884
17145
  });
17146
+ const UConfigProvider = vue.inject(configProviderInjectionKey, null);
16885
17147
  const mountStyle = () => {
16886
17148
  vue.watchEffect(() => {
16887
17149
  const {
@@ -16900,7 +17162,8 @@
16900
17162
  props: {
16901
17163
  bPrefix: clsPrefix ? `.${clsPrefix}-` : void 0
16902
17164
  },
16903
- ssr: ssrAdapter
17165
+ ssr: ssrAdapter,
17166
+ parent: UConfigProvider?.styleMountTarget
16904
17167
  });
16905
17168
  });
16906
17169
  };
@@ -28475,6 +28738,7 @@
28475
28738
  containerPrimary,
28476
28739
  elementsQuaternary,
28477
28740
  elementsPrimary,
28741
+ staticGreen,
28478
28742
  staticOrange,
28479
28743
  staticRed,
28480
28744
  elementsQuinary,
@@ -28528,6 +28792,16 @@
28528
28792
  alpha: 0.1
28529
28793
  })}`,
28530
28794
  loadingColor: elementsPrimary,
28795
+ // success
28796
+ loadingColorSuccess: staticGreen,
28797
+ borderSuccess: `2px solid ${staticGreen}`,
28798
+ borderHoverSuccess: `2px solid ${staticGreen}`,
28799
+ colorFocusSuccess: containerPrimary,
28800
+ borderFocusSuccess: `2px solid ${staticGreen}`,
28801
+ boxShadowFocusSuccess: `0 0 0 4px ${changeColor(staticGreen, {
28802
+ alpha: 0.1
28803
+ })}`,
28804
+ caretColorSuccess: elementsPrimary,
28531
28805
  // warning
28532
28806
  loadingColorWarning: staticOrange,
28533
28807
  borderWarning: `2px solid ${staticOrange}`,
@@ -28941,7 +29215,7 @@
28941
29215
  transition: color .3s var(--u-bezier);
28942
29216
  margin-left: 4px;
28943
29217
  font-variant: tabular-nums;
28944
- `), ["warning", "error"].map(status => cM(`${status}-status`, [cNotM("disabled", [cB("base-loading", `
29218
+ `), ["warning", "error", "success"].map(status => cM(`${status}-status`, [cNotM("disabled", [cB("base-loading", `
28945
29219
  color: var(--u-loading-color-${status})
28946
29220
  `), cE("input-el, textarea-el", `
28947
29221
  caret-color: var(--u-caret-color-${status});
@@ -31787,6 +32061,7 @@
31787
32061
  borderRadius,
31788
32062
  textColor,
31789
32063
  caretColor,
32064
+ caretColorSuccess,
31790
32065
  caretColorError,
31791
32066
  caretColorWarning,
31792
32067
  textDecorationColor,
@@ -31802,6 +32077,11 @@
31802
32077
  textColorDisabled,
31803
32078
  boxShadowFocus,
31804
32079
  iconSize,
32080
+ colorFocusSuccess,
32081
+ boxShadowFocusSuccess,
32082
+ borderSuccess,
32083
+ borderFocusSuccess,
32084
+ borderHoverSuccess,
31805
32085
  colorFocusWarning,
31806
32086
  boxShadowFocusWarning,
31807
32087
  borderWarning,
@@ -31824,6 +32104,7 @@
31824
32104
  iconColorHover,
31825
32105
  iconColorPressed,
31826
32106
  loadingColor,
32107
+ loadingColorSuccess,
31827
32108
  loadingColorError,
31828
32109
  loadingColorWarning,
31829
32110
  selectionColor,
@@ -31862,6 +32143,14 @@
31862
32143
  "--u-text-color-disabled": textColorDisabled,
31863
32144
  "--u-box-shadow-focus": boxShadowFocus,
31864
32145
  "--u-loading-color": loadingColor,
32146
+ // form success
32147
+ "--u-caret-color-success": caretColorSuccess,
32148
+ "--u-color-focus-success": colorFocusSuccess,
32149
+ "--u-box-shadow-focus-success": boxShadowFocusSuccess,
32150
+ "--u-border-success": borderSuccess,
32151
+ "--u-border-focus-success": borderFocusSuccess,
32152
+ "--u-border-hover-success": borderHoverSuccess,
32153
+ "--u-loading-color-success": loadingColorSuccess,
31865
32154
  // form warning
31866
32155
  "--u-caret-color-warning": caretColorWarning,
31867
32156
  "--u-color-focus-warning": colorFocusWarning,
@@ -35345,128 +35634,515 @@
35345
35634
  * //=> Tue Jul 01 2014 00:00:00
35346
35635
  */
35347
35636
 
35348
- function startOfQuarter(dirtyDate) {
35349
- requiredArgs$1(1, arguments);
35350
- var date = toDate$2(dirtyDate);
35351
- var currentMonth = date.getMonth();
35352
- var month = currentMonth - currentMonth % 3;
35353
- date.setMonth(month, 1);
35354
- date.setHours(0, 0, 0, 0);
35355
- return date;
35356
- }
35637
+ function startOfQuarter(dirtyDate) {
35638
+ requiredArgs$1(1, arguments);
35639
+ var date = toDate$2(dirtyDate);
35640
+ var currentMonth = date.getMonth();
35641
+ var month = currentMonth - currentMonth % 3;
35642
+ date.setMonth(month, 1);
35643
+ date.setHours(0, 0, 0, 0);
35644
+ return date;
35645
+ }
35646
+
35647
+ /**
35648
+ * @name startOfMonth
35649
+ * @category Month Helpers
35650
+ * @summary Return the start of a month for the given date.
35651
+ *
35652
+ * @description
35653
+ * Return the start of a month for the given date.
35654
+ * The result will be in the local timezone.
35655
+ *
35656
+ * ### v2.0.0 breaking changes:
35657
+ *
35658
+ * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
35659
+ *
35660
+ * @param {Date|Number} date - the original date
35661
+ * @returns {Date} the start of a month
35662
+ * @throws {TypeError} 1 argument required
35663
+ *
35664
+ * @example
35665
+ * // The start of a month for 2 September 2014 11:55:00:
35666
+ * const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))
35667
+ * //=> Mon Sep 01 2014 00:00:00
35668
+ */
35669
+
35670
+ function startOfMonth(dirtyDate) {
35671
+ requiredArgs$1(1, arguments);
35672
+ var date = toDate$2(dirtyDate);
35673
+ date.setDate(1);
35674
+ date.setHours(0, 0, 0, 0);
35675
+ return date;
35676
+ }
35677
+
35678
+ /**
35679
+ * @name startOfYear
35680
+ * @category Year Helpers
35681
+ * @summary Return the start of a year for the given date.
35682
+ *
35683
+ * @description
35684
+ * Return the start of a year for the given date.
35685
+ * The result will be in the local timezone.
35686
+ *
35687
+ * ### v2.0.0 breaking changes:
35688
+ *
35689
+ * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
35690
+ *
35691
+ * @param {Date|Number} date - the original date
35692
+ * @returns {Date} the start of a year
35693
+ * @throws {TypeError} 1 argument required
35694
+ *
35695
+ * @example
35696
+ * // The start of a year for 2 September 2014 11:55:00:
35697
+ * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))
35698
+ * //=> Wed Jan 01 2014 00:00:00
35699
+ */
35700
+
35701
+ function startOfYear(dirtyDate) {
35702
+ requiredArgs$1(1, arguments);
35703
+ var cleanDate = toDate$2(dirtyDate);
35704
+ var date = new Date(0);
35705
+ date.setFullYear(cleanDate.getFullYear(), 0, 1);
35706
+ date.setHours(0, 0, 0, 0);
35707
+ return date;
35708
+ }
35709
+
35710
+ /**
35711
+ * @name endOfWeek
35712
+ * @category Week Helpers
35713
+ * @summary Return the end of a week for the given date.
35714
+ *
35715
+ * @description
35716
+ * Return the end of a week for the given date.
35717
+ * The result will be in the local timezone.
35718
+ *
35719
+ * ### v2.0.0 breaking changes:
35720
+ *
35721
+ * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
35722
+ *
35723
+ * @param {Date|Number} date - the original date
35724
+ * @param {Object} [options] - an object with options.
35725
+ * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
35726
+ * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
35727
+ * @returns {Date} the end of a week
35728
+ * @throws {TypeError} 1 argument required
35729
+ * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
35730
+ *
35731
+ * @example
35732
+ * // The end of a week for 2 September 2014 11:55:00:
35733
+ * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0))
35734
+ * //=> Sat Sep 06 2014 23:59:59.999
35735
+ *
35736
+ * @example
35737
+ * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00:
35738
+ * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
35739
+ * //=> Sun Sep 07 2014 23:59:59.999
35740
+ */
35741
+ function endOfWeek(dirtyDate, dirtyOptions) {
35742
+ requiredArgs$1(1, arguments);
35743
+ var options = dirtyOptions || {};
35744
+ var locale = options.locale;
35745
+ var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
35746
+ var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger$3(localeWeekStartsOn);
35747
+ var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger$3(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
35748
+
35749
+ if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
35750
+ throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
35751
+ }
35752
+ var date = toDate$2(dirtyDate);
35753
+ var day = date.getDay();
35754
+ var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);
35755
+ date.setDate(date.getDate() + diff);
35756
+ date.setHours(23, 59, 59, 999);
35757
+ return date;
35758
+ }
35759
+
35760
+ var formatDistanceLocale = {
35761
+ lessThanXSeconds: {
35762
+ one: 'less than a second',
35763
+ other: 'less than {{count}} seconds'
35764
+ },
35765
+ xSeconds: {
35766
+ one: '1 second',
35767
+ other: '{{count}} seconds'
35768
+ },
35769
+ halfAMinute: 'half a minute',
35770
+ lessThanXMinutes: {
35771
+ one: 'less than a minute',
35772
+ other: 'less than {{count}} minutes'
35773
+ },
35774
+ xMinutes: {
35775
+ one: '1 minute',
35776
+ other: '{{count}} minutes'
35777
+ },
35778
+ aboutXHours: {
35779
+ one: 'about 1 hour',
35780
+ other: 'about {{count}} hours'
35781
+ },
35782
+ xHours: {
35783
+ one: '1 hour',
35784
+ other: '{{count}} hours'
35785
+ },
35786
+ xDays: {
35787
+ one: '1 day',
35788
+ other: '{{count}} days'
35789
+ },
35790
+ aboutXWeeks: {
35791
+ one: 'about 1 week',
35792
+ other: 'about {{count}} weeks'
35793
+ },
35794
+ xWeeks: {
35795
+ one: '1 week',
35796
+ other: '{{count}} weeks'
35797
+ },
35798
+ aboutXMonths: {
35799
+ one: 'about 1 month',
35800
+ other: 'about {{count}} months'
35801
+ },
35802
+ xMonths: {
35803
+ one: '1 month',
35804
+ other: '{{count}} months'
35805
+ },
35806
+ aboutXYears: {
35807
+ one: 'about 1 year',
35808
+ other: 'about {{count}} years'
35809
+ },
35810
+ xYears: {
35811
+ one: '1 year',
35812
+ other: '{{count}} years'
35813
+ },
35814
+ overXYears: {
35815
+ one: 'over 1 year',
35816
+ other: 'over {{count}} years'
35817
+ },
35818
+ almostXYears: {
35819
+ one: 'almost 1 year',
35820
+ other: 'almost {{count}} years'
35821
+ }
35822
+ };
35823
+ var formatDistance = function (token, count, options) {
35824
+ var result;
35825
+ var tokenValue = formatDistanceLocale[token];
35826
+ if (typeof tokenValue === 'string') {
35827
+ result = tokenValue;
35828
+ } else if (count === 1) {
35829
+ result = tokenValue.one;
35830
+ } else {
35831
+ result = tokenValue.other.replace('{{count}}', count.toString());
35832
+ }
35833
+ if (options !== null && options !== void 0 && options.addSuffix) {
35834
+ if (options.comparison && options.comparison > 0) {
35835
+ return 'in ' + result;
35836
+ } else {
35837
+ return result + ' ago';
35838
+ }
35839
+ }
35840
+ return result;
35841
+ };
35842
+
35843
+ var dateFormats = {
35844
+ full: 'EEEE, MMMM do, y',
35845
+ long: 'MMMM do, y',
35846
+ medium: 'MMM d, y',
35847
+ short: 'MM/dd/yyyy'
35848
+ };
35849
+ var timeFormats = {
35850
+ full: 'h:mm:ss a zzzz',
35851
+ long: 'h:mm:ss a z',
35852
+ medium: 'h:mm:ss a',
35853
+ short: 'h:mm a'
35854
+ };
35855
+ var dateTimeFormats = {
35856
+ full: "{{date}} 'at' {{time}}",
35857
+ long: "{{date}} 'at' {{time}}",
35858
+ medium: '{{date}}, {{time}}',
35859
+ short: '{{date}}, {{time}}'
35860
+ };
35861
+ var formatLong = {
35862
+ date: buildFormatLongFn({
35863
+ formats: dateFormats,
35864
+ defaultWidth: 'full'
35865
+ }),
35866
+ time: buildFormatLongFn({
35867
+ formats: timeFormats,
35868
+ defaultWidth: 'full'
35869
+ }),
35870
+ dateTime: buildFormatLongFn({
35871
+ formats: dateTimeFormats,
35872
+ defaultWidth: 'full'
35873
+ })
35874
+ };
35875
+
35876
+ var formatRelativeLocale = {
35877
+ lastWeek: "'last' eeee 'at' p",
35878
+ yesterday: "'yesterday at' p",
35879
+ today: "'today at' p",
35880
+ tomorrow: "'tomorrow at' p",
35881
+ nextWeek: "eeee 'at' p",
35882
+ other: 'P'
35883
+ };
35884
+ var formatRelative = function (token, _date, _baseDate, _options) {
35885
+ return formatRelativeLocale[token];
35886
+ };
35357
35887
 
35358
- /**
35359
- * @name startOfMonth
35360
- * @category Month Helpers
35361
- * @summary Return the start of a month for the given date.
35362
- *
35363
- * @description
35364
- * Return the start of a month for the given date.
35365
- * The result will be in the local timezone.
35366
- *
35367
- * ### v2.0.0 breaking changes:
35368
- *
35369
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
35370
- *
35371
- * @param {Date|Number} date - the original date
35372
- * @returns {Date} the start of a month
35373
- * @throws {TypeError} 1 argument required
35374
- *
35375
- * @example
35376
- * // The start of a month for 2 September 2014 11:55:00:
35377
- * const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))
35378
- * //=> Mon Sep 01 2014 00:00:00
35379
- */
35888
+ var eraValues = {
35889
+ narrow: ['B', 'A'],
35890
+ abbreviated: ['BC', 'AD'],
35891
+ wide: ['Before Christ', 'Anno Domini']
35892
+ };
35893
+ var quarterValues = {
35894
+ narrow: ['1', '2', '3', '4'],
35895
+ abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
35896
+ wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
35897
+ }; // Note: in English, the names of days of the week and months are capitalized.
35898
+ // If you are making a new locale based on this one, check if the same is true for the language you're working on.
35899
+ // Generally, formatted dates should look like they are in the middle of a sentence,
35900
+ // e.g. in Spanish language the weekdays and months should be in the lowercase.
35380
35901
 
35381
- function startOfMonth(dirtyDate) {
35382
- requiredArgs$1(1, arguments);
35383
- var date = toDate$2(dirtyDate);
35384
- date.setDate(1);
35385
- date.setHours(0, 0, 0, 0);
35386
- return date;
35387
- }
35902
+ var monthValues = {
35903
+ narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
35904
+ abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
35905
+ wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
35906
+ };
35907
+ var dayValues = {
35908
+ narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
35909
+ short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
35910
+ abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
35911
+ wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
35912
+ };
35913
+ var dayPeriodValues = {
35914
+ narrow: {
35915
+ am: 'a',
35916
+ pm: 'p',
35917
+ midnight: 'mi',
35918
+ noon: 'n',
35919
+ morning: 'morning',
35920
+ afternoon: 'afternoon',
35921
+ evening: 'evening',
35922
+ night: 'night'
35923
+ },
35924
+ abbreviated: {
35925
+ am: 'AM',
35926
+ pm: 'PM',
35927
+ midnight: 'midnight',
35928
+ noon: 'noon',
35929
+ morning: 'morning',
35930
+ afternoon: 'afternoon',
35931
+ evening: 'evening',
35932
+ night: 'night'
35933
+ },
35934
+ wide: {
35935
+ am: 'a.m.',
35936
+ pm: 'p.m.',
35937
+ midnight: 'midnight',
35938
+ noon: 'noon',
35939
+ morning: 'morning',
35940
+ afternoon: 'afternoon',
35941
+ evening: 'evening',
35942
+ night: 'night'
35943
+ }
35944
+ };
35945
+ var formattingDayPeriodValues = {
35946
+ narrow: {
35947
+ am: 'a',
35948
+ pm: 'p',
35949
+ midnight: 'mi',
35950
+ noon: 'n',
35951
+ morning: 'in the morning',
35952
+ afternoon: 'in the afternoon',
35953
+ evening: 'in the evening',
35954
+ night: 'at night'
35955
+ },
35956
+ abbreviated: {
35957
+ am: 'AM',
35958
+ pm: 'PM',
35959
+ midnight: 'midnight',
35960
+ noon: 'noon',
35961
+ morning: 'in the morning',
35962
+ afternoon: 'in the afternoon',
35963
+ evening: 'in the evening',
35964
+ night: 'at night'
35965
+ },
35966
+ wide: {
35967
+ am: 'a.m.',
35968
+ pm: 'p.m.',
35969
+ midnight: 'midnight',
35970
+ noon: 'noon',
35971
+ morning: 'in the morning',
35972
+ afternoon: 'in the afternoon',
35973
+ evening: 'in the evening',
35974
+ night: 'at night'
35975
+ }
35976
+ };
35977
+ var ordinalNumber = function (dirtyNumber, _options) {
35978
+ var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
35979
+ // if they are different for different grammatical genders,
35980
+ // use `options.unit`.
35981
+ //
35982
+ // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
35983
+ // 'day', 'hour', 'minute', 'second'.
35388
35984
 
35389
- /**
35390
- * @name startOfYear
35391
- * @category Year Helpers
35392
- * @summary Return the start of a year for the given date.
35393
- *
35394
- * @description
35395
- * Return the start of a year for the given date.
35396
- * The result will be in the local timezone.
35397
- *
35398
- * ### v2.0.0 breaking changes:
35399
- *
35400
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
35401
- *
35402
- * @param {Date|Number} date - the original date
35403
- * @returns {Date} the start of a year
35404
- * @throws {TypeError} 1 argument required
35405
- *
35406
- * @example
35407
- * // The start of a year for 2 September 2014 11:55:00:
35408
- * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))
35409
- * //=> Wed Jan 01 2014 00:00:00
35410
- */
35985
+ var rem100 = number % 100;
35986
+ if (rem100 > 20 || rem100 < 10) {
35987
+ switch (rem100 % 10) {
35988
+ case 1:
35989
+ return number + 'st';
35990
+ case 2:
35991
+ return number + 'nd';
35992
+ case 3:
35993
+ return number + 'rd';
35994
+ }
35995
+ }
35996
+ return number + 'th';
35997
+ };
35998
+ var localize = {
35999
+ ordinalNumber: ordinalNumber,
36000
+ era: buildLocalizeFn({
36001
+ values: eraValues,
36002
+ defaultWidth: 'wide'
36003
+ }),
36004
+ quarter: buildLocalizeFn({
36005
+ values: quarterValues,
36006
+ defaultWidth: 'wide',
36007
+ argumentCallback: function (quarter) {
36008
+ return quarter - 1;
36009
+ }
36010
+ }),
36011
+ month: buildLocalizeFn({
36012
+ values: monthValues,
36013
+ defaultWidth: 'wide'
36014
+ }),
36015
+ day: buildLocalizeFn({
36016
+ values: dayValues,
36017
+ defaultWidth: 'wide'
36018
+ }),
36019
+ dayPeriod: buildLocalizeFn({
36020
+ values: dayPeriodValues,
36021
+ defaultWidth: 'wide',
36022
+ formattingValues: formattingDayPeriodValues,
36023
+ defaultFormattingWidth: 'wide'
36024
+ })
36025
+ };
35411
36026
 
35412
- function startOfYear(dirtyDate) {
35413
- requiredArgs$1(1, arguments);
35414
- var cleanDate = toDate$2(dirtyDate);
35415
- var date = new Date(0);
35416
- date.setFullYear(cleanDate.getFullYear(), 0, 1);
35417
- date.setHours(0, 0, 0, 0);
35418
- return date;
35419
- }
36027
+ var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
36028
+ var parseOrdinalNumberPattern = /\d+/i;
36029
+ var matchEraPatterns = {
36030
+ narrow: /^(b|a)/i,
36031
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
36032
+ wide: /^(before christ|before common era|anno domini|common era)/i
36033
+ };
36034
+ var parseEraPatterns = {
36035
+ any: [/^b/i, /^(a|c)/i]
36036
+ };
36037
+ var matchQuarterPatterns = {
36038
+ narrow: /^[1234]/i,
36039
+ abbreviated: /^q[1234]/i,
36040
+ wide: /^[1234](th|st|nd|rd)? quarter/i
36041
+ };
36042
+ var parseQuarterPatterns = {
36043
+ any: [/1/i, /2/i, /3/i, /4/i]
36044
+ };
36045
+ var matchMonthPatterns = {
36046
+ narrow: /^[jfmasond]/i,
36047
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
36048
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
36049
+ };
36050
+ var parseMonthPatterns = {
36051
+ 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],
36052
+ 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]
36053
+ };
36054
+ var matchDayPatterns = {
36055
+ narrow: /^[smtwf]/i,
36056
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
36057
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
36058
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
36059
+ };
36060
+ var parseDayPatterns = {
36061
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
36062
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
36063
+ };
36064
+ var matchDayPeriodPatterns = {
36065
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
36066
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
36067
+ };
36068
+ var parseDayPeriodPatterns = {
36069
+ any: {
36070
+ am: /^a/i,
36071
+ pm: /^p/i,
36072
+ midnight: /^mi/i,
36073
+ noon: /^no/i,
36074
+ morning: /morning/i,
36075
+ afternoon: /afternoon/i,
36076
+ evening: /evening/i,
36077
+ night: /night/i
36078
+ }
36079
+ };
36080
+ var match = {
36081
+ ordinalNumber: buildMatchPatternFn({
36082
+ matchPattern: matchOrdinalNumberPattern,
36083
+ parsePattern: parseOrdinalNumberPattern,
36084
+ valueCallback: function (value) {
36085
+ return parseInt(value, 10);
36086
+ }
36087
+ }),
36088
+ era: buildMatchFn({
36089
+ matchPatterns: matchEraPatterns,
36090
+ defaultMatchWidth: 'wide',
36091
+ parsePatterns: parseEraPatterns,
36092
+ defaultParseWidth: 'any'
36093
+ }),
36094
+ quarter: buildMatchFn({
36095
+ matchPatterns: matchQuarterPatterns,
36096
+ defaultMatchWidth: 'wide',
36097
+ parsePatterns: parseQuarterPatterns,
36098
+ defaultParseWidth: 'any',
36099
+ valueCallback: function (index) {
36100
+ return index + 1;
36101
+ }
36102
+ }),
36103
+ month: buildMatchFn({
36104
+ matchPatterns: matchMonthPatterns,
36105
+ defaultMatchWidth: 'wide',
36106
+ parsePatterns: parseMonthPatterns,
36107
+ defaultParseWidth: 'any'
36108
+ }),
36109
+ day: buildMatchFn({
36110
+ matchPatterns: matchDayPatterns,
36111
+ defaultMatchWidth: 'wide',
36112
+ parsePatterns: parseDayPatterns,
36113
+ defaultParseWidth: 'any'
36114
+ }),
36115
+ dayPeriod: buildMatchFn({
36116
+ matchPatterns: matchDayPeriodPatterns,
36117
+ defaultMatchWidth: 'any',
36118
+ parsePatterns: parseDayPeriodPatterns,
36119
+ defaultParseWidth: 'any'
36120
+ })
36121
+ };
35420
36122
 
35421
36123
  /**
35422
- * @name endOfWeek
35423
- * @category Week Helpers
35424
- * @summary Return the end of a week for the given date.
35425
- *
35426
- * @description
35427
- * Return the end of a week for the given date.
35428
- * The result will be in the local timezone.
35429
- *
35430
- * ### v2.0.0 breaking changes:
35431
- *
35432
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
35433
- *
35434
- * @param {Date|Number} date - the original date
35435
- * @param {Object} [options] - an object with options.
35436
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
35437
- * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
35438
- * @returns {Date} the end of a week
35439
- * @throws {TypeError} 1 argument required
35440
- * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
35441
- *
35442
- * @example
35443
- * // The end of a week for 2 September 2014 11:55:00:
35444
- * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0))
35445
- * //=> Sat Sep 06 2014 23:59:59.999
35446
- *
35447
- * @example
35448
- * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00:
35449
- * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
35450
- * //=> Sun Sep 07 2014 23:59:59.999
36124
+ * @type {Locale}
36125
+ * @category Locales
36126
+ * @summary English locale (United States).
36127
+ * @language English
36128
+ * @iso-639-2 eng
36129
+ * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
36130
+ * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
35451
36131
  */
35452
- function endOfWeek(dirtyDate, dirtyOptions) {
35453
- requiredArgs$1(1, arguments);
35454
- var options = dirtyOptions || {};
35455
- var locale = options.locale;
35456
- var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
35457
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger$3(localeWeekStartsOn);
35458
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger$3(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
36132
+ var locale = {
36133
+ code: 'en-US',
36134
+ formatDistance: formatDistance,
36135
+ formatLong: formatLong,
36136
+ formatRelative: formatRelative,
36137
+ localize: localize,
36138
+ match: match,
36139
+ options: {
36140
+ weekStartsOn: 0
36141
+ /* Sunday */,
35459
36142
 
35460
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
35461
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
36143
+ firstWeekContainsDate: 1
35462
36144
  }
35463
- var date = toDate$2(dirtyDate);
35464
- var day = date.getDay();
35465
- var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);
35466
- date.setDate(date.getDate() + diff);
35467
- date.setHours(23, 59, 59, 999);
35468
- return date;
35469
- }
36145
+ };
35470
36146
 
35471
36147
  /**
35472
36148
  * @name subMilliseconds
@@ -36961,25 +37637,25 @@
36961
37637
  requiredArgs$1(2, arguments);
36962
37638
  var formatStr = String(dirtyFormatStr);
36963
37639
  var options = dirtyOptions || {};
36964
- var locale = options.locale || locale$1;
36965
- var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate;
37640
+ var locale$1 = options.locale || locale;
37641
+ var localeFirstWeekContainsDate = locale$1.options && locale$1.options.firstWeekContainsDate;
36966
37642
  var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger$3(localeFirstWeekContainsDate);
36967
37643
  var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger$3(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
36968
37644
 
36969
37645
  if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
36970
37646
  throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
36971
37647
  }
36972
- var localeWeekStartsOn = locale.options && locale.options.weekStartsOn;
37648
+ var localeWeekStartsOn = locale$1.options && locale$1.options.weekStartsOn;
36973
37649
  var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger$3(localeWeekStartsOn);
36974
37650
  var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger$3(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
36975
37651
 
36976
37652
  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
36977
37653
  throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
36978
37654
  }
36979
- if (!locale.localize) {
37655
+ if (!locale$1.localize) {
36980
37656
  throw new RangeError('locale must contain localize property');
36981
37657
  }
36982
- if (!locale.formatLong) {
37658
+ if (!locale$1.formatLong) {
36983
37659
  throw new RangeError('locale must contain formatLong property');
36984
37660
  }
36985
37661
  var originalDate = toDate$2(dirtyDate);
@@ -36994,14 +37670,14 @@
36994
37670
  var formatterOptions = {
36995
37671
  firstWeekContainsDate: firstWeekContainsDate,
36996
37672
  weekStartsOn: weekStartsOn,
36997
- locale: locale,
37673
+ locale: locale$1,
36998
37674
  _originalDate: originalDate
36999
37675
  };
37000
37676
  var result = formatStr.match(longFormattingTokensRegExp$1).map(function (substring) {
37001
37677
  var firstCharacter = substring[0];
37002
37678
  if (firstCharacter === 'p' || firstCharacter === 'P') {
37003
37679
  var longFormatter = longFormatters$1[firstCharacter];
37004
- return longFormatter(substring, locale.formatLong, formatterOptions);
37680
+ return longFormatter(substring, locale$1.formatLong, formatterOptions);
37005
37681
  }
37006
37682
  return substring;
37007
37683
  }).join('').match(formattingTokensRegExp$1).map(function (substring) {
@@ -37021,7 +37697,7 @@
37021
37697
  if (!options.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken$1(substring)) {
37022
37698
  throwProtectedError$1(substring, dirtyFormatStr, dirtyDate);
37023
37699
  }
37024
- return formatter(utcDate, substring, locale.localize, formatterOptions);
37700
+ return formatter(utcDate, substring, locale$1.localize, formatterOptions);
37025
37701
  }
37026
37702
  if (firstCharacter.match(unescapedLatinCharacterRegExp$1)) {
37027
37703
  throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
@@ -37209,8 +37885,8 @@
37209
37885
  function formatDistanceStrict(dirtyDate, dirtyBaseDate) {
37210
37886
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
37211
37887
  requiredArgs$1(2, arguments);
37212
- var locale = options.locale || locale$1;
37213
- if (!locale.formatDistance) {
37888
+ var locale$1 = options.locale || locale;
37889
+ if (!locale$1.formatDistance) {
37214
37890
  throw new RangeError('locale must contain localize.formatDistance property');
37215
37891
  }
37216
37892
  var comparison = compareAsc(dirtyDate, dirtyBaseDate);
@@ -37267,22 +37943,22 @@
37267
37943
 
37268
37944
  if (unit === 'second') {
37269
37945
  var seconds = roundingMethodFn(milliseconds / 1000);
37270
- return locale.formatDistance('xSeconds', seconds, localizeOptions); // 1 up to 60 mins
37946
+ return locale$1.formatDistance('xSeconds', seconds, localizeOptions); // 1 up to 60 mins
37271
37947
  } else if (unit === 'minute') {
37272
37948
  var roundedMinutes = roundingMethodFn(minutes);
37273
- return locale.formatDistance('xMinutes', roundedMinutes, localizeOptions); // 1 up to 24 hours
37949
+ return locale$1.formatDistance('xMinutes', roundedMinutes, localizeOptions); // 1 up to 24 hours
37274
37950
  } else if (unit === 'hour') {
37275
37951
  var hours = roundingMethodFn(minutes / 60);
37276
- return locale.formatDistance('xHours', hours, localizeOptions); // 1 up to 30 days
37952
+ return locale$1.formatDistance('xHours', hours, localizeOptions); // 1 up to 30 days
37277
37953
  } else if (unit === 'day') {
37278
37954
  var days = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_DAY);
37279
- return locale.formatDistance('xDays', days, localizeOptions); // 1 up to 12 months
37955
+ return locale$1.formatDistance('xDays', days, localizeOptions); // 1 up to 12 months
37280
37956
  } else if (unit === 'month') {
37281
37957
  var months = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_MONTH);
37282
- return months === 12 && options.unit !== 'month' ? locale.formatDistance('xYears', 1, localizeOptions) : locale.formatDistance('xMonths', months, localizeOptions); // 1 year up to max Date
37958
+ return months === 12 && options.unit !== 'month' ? locale$1.formatDistance('xYears', 1, localizeOptions) : locale$1.formatDistance('xMonths', months, localizeOptions); // 1 year up to max Date
37283
37959
  } else if (unit === 'year') {
37284
37960
  var years = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_YEAR);
37285
- return locale.formatDistance('xYears', years, localizeOptions);
37961
+ return locale$1.formatDistance('xYears', years, localizeOptions);
37286
37962
  }
37287
37963
  throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'");
37288
37964
  }
@@ -39392,18 +40068,18 @@
39392
40068
  var dateString = String(dirtyDateString);
39393
40069
  var formatString = String(dirtyFormatString);
39394
40070
  var options = dirtyOptions || {};
39395
- var locale = options.locale || locale$1;
39396
- if (!locale.match) {
40071
+ var locale$1 = options.locale || locale;
40072
+ if (!locale$1.match) {
39397
40073
  throw new RangeError('locale must contain match property');
39398
40074
  }
39399
- var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate;
40075
+ var localeFirstWeekContainsDate = locale$1.options && locale$1.options.firstWeekContainsDate;
39400
40076
  var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger$3(localeFirstWeekContainsDate);
39401
40077
  var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger$3(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
39402
40078
 
39403
40079
  if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
39404
40080
  throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
39405
40081
  }
39406
- var localeWeekStartsOn = locale.options && locale.options.weekStartsOn;
40082
+ var localeWeekStartsOn = locale$1.options && locale$1.options.weekStartsOn;
39407
40083
  var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger$3(localeWeekStartsOn);
39408
40084
  var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger$3(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
39409
40085
 
@@ -39420,7 +40096,7 @@
39420
40096
  var subFnOptions = {
39421
40097
  firstWeekContainsDate: firstWeekContainsDate,
39422
40098
  weekStartsOn: weekStartsOn,
39423
- locale: locale
40099
+ locale: locale$1
39424
40100
  }; // If timezone isn't specified, it will be set to the system timezone
39425
40101
 
39426
40102
  var setters = [{
@@ -39434,7 +40110,7 @@
39434
40110
  var firstCharacter = substring[0];
39435
40111
  if (firstCharacter === 'p' || firstCharacter === 'P') {
39436
40112
  var longFormatter = longFormatters$1[firstCharacter];
39437
- return longFormatter(substring, locale.formatLong, subFnOptions);
40113
+ return longFormatter(substring, locale$1.formatLong, subFnOptions);
39438
40114
  }
39439
40115
  return substring;
39440
40116
  }).join('').match(formattingTokensRegExp);
@@ -39470,7 +40146,7 @@
39470
40146
  token: firstCharacter,
39471
40147
  fullToken: token
39472
40148
  });
39473
- var parseResult = parser.parse(dateString, token, locale.match, subFnOptions);
40149
+ var parseResult = parser.parse(dateString, token, locale$1.match, subFnOptions);
39474
40150
  if (!parseResult) {
39475
40151
  return new Date(NaN);
39476
40152
  }
@@ -46500,23 +47176,28 @@
46500
47176
  width: 100%;
46501
47177
  padding: 24px 20px 10px 24px;
46502
47178
  flex-shrink: 0;
47179
+ `), cE("header-inner", `
47180
+ display: grid;
47181
+ grid-template-columns: minmax(0, 1fr) auto;
47182
+ align-items: flex-start;
47183
+ gap: 8px;
47184
+ `), cE("header-title-wrap", `
47185
+ min-width: 0;
47186
+ overflow: hidden;
46503
47187
  `), cE("header-title", `
46504
47188
  color: var(--u-header-title-color);
46505
- flex: 1;
46506
- min-width: 0;
47189
+ display: block;
46507
47190
  overflow: hidden;
46508
- text-overflow: ellipsis;
46509
47191
  white-space: nowrap;
46510
- display: block;
46511
- margin-right: 16px;
47192
+ text-overflow: ellipsis;
47193
+ width: 100%;
46512
47194
  `), cE("header-subtitle", `
46513
47195
  display: block;
46514
47196
  color: var(--u-sidebar-item-subtitle-color);
46515
47197
  overflow: hidden;
46516
47198
  text-overflow: ellipsis;
46517
47199
  white-space: nowrap;
46518
- minWidth: 0;
46519
- maxWidth: 100%;
47200
+ width: 100%;
46520
47201
  `), cE("header-actions", `
46521
47202
  padding: 4px;
46522
47203
  flex-shrink: 0;
@@ -56573,150 +57254,153 @@
56573
57254
  return value != null ? String(value) : "";
56574
57255
  };
56575
57256
  const renderHeader = () => {
56576
- return /* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefixRef.value}-chat-main__header` }, /* @__PURE__ */ vue.h(UFlex, { justify: "space-between", align: "flex-start", wrap: false }, {
56577
- default: () => {
56578
- const chat = selectedChatRef.value;
56579
- const keyId = toKeyString(chat?.id);
56580
- const keyTitle = toKeyString(chat?.title);
56581
- return /* @__PURE__ */ vue.h(vue.Fragment, null, /* @__PURE__ */ vue.h(UFlex, { vertical: true, size: [0, 0], justify: 'flex-start"' }, /* @__PURE__ */ vue.h(
56582
- UText,
56583
- {
56584
- key: `${keyId}-${keyTitle}`,
56585
- variant: "heading-s-bold",
56586
- class: `${mergedClsPrefixRef.value}-chat-main__header-title`,
56587
- theme: mergedThemeRef.value.peers.Typography,
56588
- themeOverrides: mergedThemeRef.value.peerOverrides.Typography
56589
- },
56590
- {
56591
- default: () => selectedChatRef.value?.title ?? ""
56592
- }
56593
- ), isTyping.value && /* @__PURE__ */ vue.h(
56594
- UText,
56595
- {
56596
- class: [
56597
- `${mergedClsPrefixRef.value}-chat-main__header-subtitle`,
56598
- "typing"
56599
- ],
56600
- variant: "body-m-medium"
56601
- },
56602
- {
56603
- default: () => typingTextRef.value ?? ""
56604
- }
56605
- )), /* @__PURE__ */ vue.h(
56606
- UFlex,
56607
- {
56608
- align: "center",
56609
- size: "small",
56610
- class: `${mergedClsPrefixRef.value}-chat-main__header-actions`
56611
- },
56612
- {
56613
- default: () => resolveSlot(slots.headerActions, () => {
56614
- const shareButtonProps = {
56615
- ...headerButtonPropsRef.value,
56616
- ...headerShareButtonPropsRef.value
56617
- };
56618
- const profileButtonProps = {
56619
- ...headerButtonPropsRef.value,
56620
- ...headerProfileButtonPropsRef.value
56621
- };
56622
- const closeButtonProps = {
56623
- ...headerButtonPropsRef.value,
56624
- ...headerCloseButtonPropsRef.value
56625
- };
56626
- const shareIconProps = {
56627
- ...headerIconPropsRef.value,
56628
- ...headerShareIconPropsRef.value
56629
- };
56630
- const profileIconProps = {
56631
- ...headerIconPropsRef.value,
56632
- ...headerProfileIconPropsRef.value
56633
- };
56634
- const buttons = [];
56635
- buttons.push(
56636
- /* @__PURE__ */ vue.h(UTooltip, null, {
56637
- trigger: () => /* @__PURE__ */ vue.h(
56638
- Button,
57257
+ const chat = selectedChatRef.value;
57258
+ const keyId = toKeyString(chat?.id);
57259
+ const keyTitle = toKeyString(chat?.title);
57260
+ return /* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefixRef.value}-chat-main__header` }, /* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefixRef.value}-chat-main__header-inner` }, /* @__PURE__ */ vue.h(
57261
+ "div",
57262
+ {
57263
+ class: `${mergedClsPrefixRef.value}-chat-main__header-title-wrap`
57264
+ },
57265
+ /* @__PURE__ */ vue.h(
57266
+ UText,
57267
+ {
57268
+ key: `${keyId}-${keyTitle}`,
57269
+ variant: "heading-s-bold",
57270
+ class: `${mergedClsPrefixRef.value}-chat-main__header-title`,
57271
+ theme: mergedThemeRef.value.peers.Typography,
57272
+ themeOverrides: mergedThemeRef.value.peerOverrides.Typography
57273
+ },
57274
+ {
57275
+ default: () => selectedChatRef.value?.title ?? ""
57276
+ }
57277
+ ),
57278
+ isTyping.value && /* @__PURE__ */ vue.h(
57279
+ UText,
57280
+ {
57281
+ class: [
57282
+ `${mergedClsPrefixRef.value}-chat-main__header-subtitle`,
57283
+ "typing"
57284
+ ],
57285
+ variant: "body-m-medium"
57286
+ },
57287
+ {
57288
+ default: () => typingTextRef.value ?? ""
57289
+ }
57290
+ )
57291
+ ), /* @__PURE__ */ vue.h(
57292
+ UFlex,
57293
+ {
57294
+ align: "center",
57295
+ size: "small",
57296
+ class: `${mergedClsPrefixRef.value}-chat-main__header-actions`
57297
+ },
57298
+ {
57299
+ default: () => resolveSlot(slots.headerActions, () => {
57300
+ const shareButtonProps = {
57301
+ ...headerButtonPropsRef.value,
57302
+ ...headerShareButtonPropsRef.value
57303
+ };
57304
+ const profileButtonProps = {
57305
+ ...headerButtonPropsRef.value,
57306
+ ...headerProfileButtonPropsRef.value
57307
+ };
57308
+ const closeButtonProps = {
57309
+ ...headerButtonPropsRef.value,
57310
+ ...headerCloseButtonPropsRef.value
57311
+ };
57312
+ const shareIconProps = {
57313
+ ...headerIconPropsRef.value,
57314
+ ...headerShareIconPropsRef.value
57315
+ };
57316
+ const profileIconProps = {
57317
+ ...headerIconPropsRef.value,
57318
+ ...headerProfileIconPropsRef.value
57319
+ };
57320
+ const buttons = [];
57321
+ buttons.push(
57322
+ /* @__PURE__ */ vue.h(UTooltip, null, {
57323
+ trigger: () => /* @__PURE__ */ vue.h(
57324
+ Button,
57325
+ {
57326
+ secondary: true,
57327
+ circle: true,
57328
+ size: "large",
57329
+ ...shareButtonProps,
57330
+ theme: mergedThemeRef.value.peers.Button,
57331
+ themeOverrides: mergedThemeRef.value.peerOverrides.Button,
57332
+ onClick: () => onChatShare?.value?.()
57333
+ },
57334
+ {
57335
+ default: () => /* @__PURE__ */ vue.h(
57336
+ UIcon,
56639
57337
  {
56640
- secondary: true,
56641
- circle: true,
56642
- size: "large",
56643
- ...shareButtonProps,
56644
- theme: mergedThemeRef.value.peers.Button,
56645
- themeOverrides: mergedThemeRef.value.peerOverrides.Button,
56646
- onClick: () => onChatShare?.value?.()
57338
+ size: 20,
57339
+ ...shareIconProps,
57340
+ theme: mergedThemeRef.value.peers.HeaderShareIcon,
57341
+ themeOverrides: mergedThemeRef.value.peerOverrides.HeaderShareIcon
56647
57342
  },
56648
57343
  {
56649
- default: () => /* @__PURE__ */ vue.h(
56650
- UIcon,
56651
- {
56652
- size: 20,
56653
- ...shareIconProps,
56654
- theme: mergedThemeRef.value.peers.HeaderShareIcon,
56655
- themeOverrides: mergedThemeRef.value.peerOverrides.HeaderShareIcon
56656
- },
56657
- {
56658
- default: () => /* @__PURE__ */ vue.h(ArrowHookUpRight, null)
56659
- }
56660
- )
57344
+ default: () => /* @__PURE__ */ vue.h(ArrowHookUpRight, null)
56661
57345
  }
56662
- ),
56663
- default: () => shareButtonTooltipRef.value
56664
- })
56665
- );
56666
- buttons.push(
56667
- /* @__PURE__ */ vue.h(UTooltip, null, {
56668
- trigger: () => /* @__PURE__ */ vue.h(
56669
- Button,
57346
+ )
57347
+ }
57348
+ ),
57349
+ default: () => shareButtonTooltipRef.value
57350
+ })
57351
+ );
57352
+ buttons.push(
57353
+ /* @__PURE__ */ vue.h(UTooltip, null, {
57354
+ trigger: () => /* @__PURE__ */ vue.h(
57355
+ Button,
57356
+ {
57357
+ secondary: true,
57358
+ circle: true,
57359
+ size: "large",
57360
+ ...profileButtonProps,
57361
+ theme: mergedThemeRef.value.peers.Button,
57362
+ themeOverrides: mergedThemeRef.value.peerOverrides.Button,
57363
+ onClick: () => onUserProfile?.value?.()
57364
+ },
57365
+ {
57366
+ default: () => /* @__PURE__ */ vue.h(
57367
+ UIcon,
56670
57368
  {
56671
- secondary: true,
56672
- circle: true,
56673
- size: "large",
56674
- ...profileButtonProps,
56675
- theme: mergedThemeRef.value.peers.Button,
56676
- themeOverrides: mergedThemeRef.value.peerOverrides.Button,
56677
- onClick: () => onUserProfile?.value?.()
57369
+ size: 20,
57370
+ ...profileIconProps,
57371
+ theme: mergedThemeRef.value.peers.HeaderProfileIcon,
57372
+ themeOverrides: mergedThemeRef.value.peerOverrides.HeaderProfileIcon
56678
57373
  },
56679
57374
  {
56680
- default: () => /* @__PURE__ */ vue.h(
56681
- UIcon,
56682
- {
56683
- size: 20,
56684
- ...profileIconProps,
56685
- theme: mergedThemeRef.value.peers.HeaderProfileIcon,
56686
- themeOverrides: mergedThemeRef.value.peerOverrides.HeaderProfileIcon
56687
- },
56688
- {
56689
- default: () => /* @__PURE__ */ vue.h(PersonNote, null)
56690
- }
56691
- )
57375
+ default: () => /* @__PURE__ */ vue.h(PersonNote, null)
56692
57376
  }
56693
- ),
56694
- default: () => profileButtonTooltipRef.value
56695
- })
56696
- );
56697
- buttons.push(
56698
- /* @__PURE__ */ vue.h(
56699
- Button,
56700
- {
56701
- type: "primary",
56702
- size: "large",
56703
- round: true,
56704
- ...closeButtonProps,
56705
- theme: mergedThemeRef.value.peers.Button,
56706
- themeOverrides: mergedThemeRef.value.peerOverrides.Button,
56707
- onClick: () => onChatClose?.value?.()
56708
- },
56709
- {
56710
- default: () => closeButtonTextRef.value
56711
- }
56712
- )
56713
- );
56714
- return buttons;
57377
+ )
57378
+ }
57379
+ ),
57380
+ default: () => profileButtonTooltipRef.value
56715
57381
  })
56716
- }
56717
- ));
57382
+ );
57383
+ buttons.push(
57384
+ /* @__PURE__ */ vue.h(
57385
+ Button,
57386
+ {
57387
+ type: "primary",
57388
+ size: "large",
57389
+ round: true,
57390
+ ...closeButtonProps,
57391
+ theme: mergedThemeRef.value.peers.Button,
57392
+ themeOverrides: mergedThemeRef.value.peerOverrides.Button,
57393
+ onClick: () => onChatClose?.value?.()
57394
+ },
57395
+ {
57396
+ default: () => closeButtonTextRef.value
57397
+ }
57398
+ )
57399
+ );
57400
+ return buttons;
57401
+ })
56718
57402
  }
56719
- }));
57403
+ )));
56720
57404
  };
56721
57405
  const renderMessages = () => {
56722
57406
  return /* @__PURE__ */ vue.h(
@@ -62339,6 +63023,7 @@
62339
63023
  default: "desktop-first"
62340
63024
  },
62341
63025
  preflightStyleDisabled: Boolean,
63026
+ styleMountTarget: Object,
62342
63027
  inlineThemeDisabled: {
62343
63028
  type: Boolean,
62344
63029
  default: void 0
@@ -62540,6 +63225,7 @@
62540
63225
  });
62541
63226
  const inlineThemeDisabled = props.inlineThemeDisabled || UConfigProvider?.inlineThemeDisabled;
62542
63227
  const preflightStyleDisabled = props.preflightStyleDisabled || UConfigProvider?.preflightStyleDisabled;
63228
+ const styleMountTarget = props.styleMountTarget || UConfigProvider?.styleMountTarget;
62543
63229
  const mergedThemeHashRef = vue.computed(() => {
62544
63230
  const {
62545
63231
  value: theme
@@ -62604,7 +63290,8 @@
62604
63290
  mergedThemeRef,
62605
63291
  mergedThemeOverridesRef,
62606
63292
  inlineThemeDisabled: inlineThemeDisabled || false,
62607
- preflightStyleDisabled: preflightStyleDisabled || false
63293
+ preflightStyleDisabled: preflightStyleDisabled || false,
63294
+ styleMountTarget
62608
63295
  });
62609
63296
  return {
62610
63297
  mergedClsPrefix: mergedClsPrefixRef,
@@ -64318,6 +65005,7 @@
64318
65005
  default: "current"
64319
65006
  },
64320
65007
  scrollbarProps: Object,
65008
+ localStorageKey: String,
64321
65009
  renderCell: Function,
64322
65010
  defaultEmptyValue: [String, Function],
64323
65011
  renderExpandIcon: Function,
@@ -65140,17 +65828,26 @@
65140
65828
  }
65141
65829
  function createCustomWidthStyle(column, resizedWidth) {
65142
65830
  if (resizedWidth !== void 0) {
65831
+ const numWidth = depx(resizedWidth);
65832
+ const minMaxColumn = column && "minWidth" in column && "maxWidth" in column ? column : null;
65833
+ const clampedNum = minMaxColumn ? clampValueFollowCSSRules(numWidth, minMaxColumn.minWidth, minMaxColumn.maxWidth) : numWidth;
65834
+ const clamped = formatLength(clampedNum);
65143
65835
  return {
65144
- width: resizedWidth,
65145
- minWidth: resizedWidth,
65146
- maxWidth: resizedWidth
65836
+ width: clamped,
65837
+ minWidth: clamped,
65838
+ maxWidth: clamped
65147
65839
  };
65148
65840
  }
65149
- const width = getStringColWidth(column);
65150
- const {
65151
- minWidth,
65152
- maxWidth
65153
- } = column;
65841
+ const explicitNum = getNumberColWidth(column) ?? void 0;
65842
+ const minWidth = column && "minWidth" in column ? column.minWidth : void 0;
65843
+ const maxWidth = column && "maxWidth" in column ? column.maxWidth : void 0;
65844
+ let widthNum = explicitNum;
65845
+ if (widthNum === void 0 && (minWidth !== void 0 || maxWidth !== void 0)) {
65846
+ widthNum = clampValueFollowCSSRules(maxWidth !== void 0 ? typeof maxWidth === "number" ? maxWidth : parseFloat(maxWidth) : minWidth !== void 0 ? typeof minWidth === "number" ? minWidth : parseFloat(minWidth) : 0, minWidth, maxWidth);
65847
+ } else if (widthNum !== void 0 && (minWidth !== void 0 || maxWidth !== void 0)) {
65848
+ widthNum = clampValueFollowCSSRules(widthNum, minWidth, maxWidth);
65849
+ }
65850
+ const width = widthNum !== void 0 ? formatLength(widthNum) : getStringColWidth(column);
65154
65851
  return {
65155
65852
  width,
65156
65853
  minWidth: formatLength(minWidth) || width,
@@ -65702,6 +66399,7 @@
65702
66399
  headerCheckboxDisabledRef,
65703
66400
  sizeRef,
65704
66401
  onUnstableColumnResize,
66402
+ getResizableWidth,
65705
66403
  doUpdateResizableWidth,
65706
66404
  handleTableHeaderScroll,
65707
66405
  deriveNextSorter,
@@ -65733,13 +66431,22 @@
65733
66431
  deriveNextSorter(nextSorter);
65734
66432
  }
65735
66433
  const resizeStartWidthMap = /* @__PURE__ */ new Map();
66434
+ function getColumnStartWidth(column) {
66435
+ const actual = getCellActualWidth(column.key);
66436
+ if (actual !== void 0 && actual > 0) return actual;
66437
+ const resized = getResizableWidth(column.key);
66438
+ if (resized !== void 0 && resized > 0) return resized;
66439
+ return getNumberColWidth(column);
66440
+ }
65736
66441
  function handleColumnResizeStart(column) {
65737
- resizeStartWidthMap.set(column.key, getCellActualWidth(column.key));
66442
+ resizeStartWidthMap.set(column.key, getColumnStartWidth(column));
65738
66443
  }
65739
66444
  function handleColumnResize(column, displacementX) {
65740
- const startWidth = resizeStartWidthMap.get(column.key);
66445
+ let startWidth = resizeStartWidthMap.get(column.key);
65741
66446
  if (startWidth === void 0) {
65742
- return;
66447
+ startWidth = getColumnStartWidth(column);
66448
+ if (startWidth === void 0) return;
66449
+ resizeStartWidthMap.set(column.key, startWidth);
65743
66450
  }
65744
66451
  const widthAfterResize = startWidth + displacementX;
65745
66452
  const limitWidth = clampValueFollowCSSRules(
@@ -84370,6 +85077,7 @@
84370
85077
  emptyPropsRef
84371
85078
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
84372
85079
  } = vue.inject(dataTableInjectionKey);
85080
+ const UConfigProvider = vue.inject(configProviderInjectionKey, null);
84373
85081
  const scrollbarInstRef = vue.ref(null);
84374
85082
  const virtualListRef = vue.ref(null);
84375
85083
  const emptyElRef = vue.ref(null);
@@ -84557,13 +85265,15 @@
84557
85265
  id: `u-${componentId}`,
84558
85266
  force: true,
84559
85267
  props: cProps,
84560
- anchorMetaName: cssrAnchorMetaName
85268
+ anchorMetaName: cssrAnchorMetaName,
85269
+ parent: UConfigProvider?.styleMountTarget
84561
85270
  });
84562
85271
  fixedStyleMounted = true;
84563
85272
  });
84564
85273
  vue.onUnmounted(() => {
84565
85274
  style.unmount({
84566
- id: `u-${componentId}`
85275
+ id: `u-${componentId}`,
85276
+ parent: UConfigProvider?.styleMountTarget
84567
85277
  });
84568
85278
  });
84569
85279
  return {
@@ -85538,7 +86248,8 @@
85538
86248
  sort,
85539
86249
  sortedDataRef,
85540
86250
  mergedSortStateRef,
85541
- deriveNextSorter
86251
+ deriveNextSorter,
86252
+ doUpdateSorter
85542
86253
  };
85543
86254
  }
85544
86255
 
@@ -85667,7 +86378,8 @@
85667
86378
  deriveNextSorter,
85668
86379
  mergedSortStateRef,
85669
86380
  sort,
85670
- clearSorter
86381
+ clearSorter,
86382
+ doUpdateSorter
85671
86383
  } = useSorter(props, {
85672
86384
  dataRelatedColsRef,
85673
86385
  filteredDataRef
@@ -85849,6 +86561,9 @@
85849
86561
  warn$2("data-table", "`filters` is not an object");
85850
86562
  }
85851
86563
  }
86564
+ function restoreSortState(sortState) {
86565
+ doUpdateSorter(sortState);
86566
+ }
85852
86567
  return {
85853
86568
  treeMateRef,
85854
86569
  mergedCurrentPageRef: boundedMergedCurrentPageRef,
@@ -85865,6 +86580,7 @@
85865
86580
  doUpdatePageSize,
85866
86581
  doUpdatePage,
85867
86582
  onUnstableColumnResize,
86583
+ restoreSortState,
85868
86584
  // exported methods
85869
86585
  filter,
85870
86586
  filters,
@@ -86110,7 +86826,8 @@
86110
86826
  return {
86111
86827
  getResizableWidth,
86112
86828
  doUpdateResizableWidth,
86113
- clearResizableWidth
86829
+ clearResizableWidth,
86830
+ resizableWidthsRef
86114
86831
  };
86115
86832
  }
86116
86833
 
@@ -86267,6 +86984,42 @@
86267
86984
  };
86268
86985
  }
86269
86986
 
86987
+ const STORAGE_KEY_PREFIX = "u-data-table:";
86988
+ function getStorageKey(key) {
86989
+ return `${STORAGE_KEY_PREFIX}${key}`;
86990
+ }
86991
+ function loadTableState(localStorageKey) {
86992
+ try {
86993
+ const raw = localStorage.getItem(getStorageKey(localStorageKey));
86994
+ if (!raw) return null;
86995
+ return JSON.parse(raw);
86996
+ } catch {
86997
+ return null;
86998
+ }
86999
+ }
87000
+ function saveTableState(localStorageKey, state) {
87001
+ try {
87002
+ localStorage.setItem(getStorageKey(localStorageKey), JSON.stringify(state));
87003
+ } catch {
87004
+ console.warn(`Could not set localStorage value for ${localStorageKey}`);
87005
+ }
87006
+ }
87007
+ function restoreSortStateFromStored(stored, dataRelatedCols) {
87008
+ if (!stored?.length) return null;
87009
+ const result = [];
87010
+ for (const item of stored) {
87011
+ const column = dataRelatedCols.find(col => col.type !== "selection" && col.type !== "expand" && "key" in col && col.key === item.columnKey && col.sorter !== void 0);
87012
+ if (column?.sorter) {
87013
+ result.push({
87014
+ columnKey: item.columnKey,
87015
+ order: item.order,
87016
+ sorter: column.sorter
87017
+ });
87018
+ }
87019
+ }
87020
+ return result.length ? result : null;
87021
+ }
87022
+
86270
87023
  const fixedColumnStyle = createFixedColumnStyle();
86271
87024
  var style$P = c$1([cB("data-table", `
86272
87025
  width: 100%;
@@ -86736,7 +87489,12 @@
86736
87489
  );
86737
87490
  const bodyWidthRef = vue.ref(null);
86738
87491
  const mainTableInstRef = vue.ref(null);
86739
- const { getResizableWidth, clearResizableWidth, doUpdateResizableWidth } = useResizable();
87492
+ const {
87493
+ getResizableWidth,
87494
+ clearResizableWidth,
87495
+ doUpdateResizableWidth,
87496
+ resizableWidthsRef
87497
+ } = useResizable();
86740
87498
  const { rowsRef, colsRef, dataRelatedColsRef, hasEllipsisRef } = useGroupHeader(props, getResizableWidth);
86741
87499
  const {
86742
87500
  treeMateRef,
@@ -86750,9 +87508,11 @@
86750
87508
  mergedSortStateRef,
86751
87509
  childTriggerColIndexRef,
86752
87510
  doUpdatePage,
87511
+ doUpdatePageSize,
86753
87512
  doUpdateFilters,
86754
87513
  onUnstableColumnResize,
86755
87514
  deriveNextSorter,
87515
+ restoreSortState,
86756
87516
  filter,
86757
87517
  filters,
86758
87518
  clearFilter,
@@ -86766,6 +87526,8 @@
86766
87526
  doUncheckAll,
86767
87527
  doCheck,
86768
87528
  doUncheck,
87529
+ doUpdateCheckedRowKeys,
87530
+ mergedCheckedRowKeysRef,
86769
87531
  headerCheckboxDisabledRef,
86770
87532
  someRowsCheckedRef,
86771
87533
  allRowsCheckedRef,
@@ -86801,6 +87563,68 @@
86801
87563
  mainTableInstRef,
86802
87564
  mergedCurrentPageRef
86803
87565
  });
87566
+ vue.onMounted(() => {
87567
+ const key = props.localStorageKey;
87568
+ if (!key) return;
87569
+ const stored = loadTableState(key);
87570
+ if (!stored) return;
87571
+ if (stored.columnWidths && Object.keys(stored.columnWidths).length > 0) {
87572
+ resizableWidthsRef.value = {
87573
+ ...resizableWidthsRef.value,
87574
+ ...stored.columnWidths
87575
+ };
87576
+ }
87577
+ if (props.pagination && stored.page != null) {
87578
+ doUpdatePage(stored.page);
87579
+ }
87580
+ if (props.pagination && stored.pageSize != null) {
87581
+ doUpdatePageSize(stored.pageSize);
87582
+ }
87583
+ if (stored.filters) {
87584
+ filter(stored.filters);
87585
+ }
87586
+ const sortToRestore = restoreSortStateFromStored(
87587
+ stored.sortState,
87588
+ dataRelatedColsRef.value
87589
+ );
87590
+ if (sortToRestore?.length) {
87591
+ restoreSortState(sortToRestore);
87592
+ }
87593
+ if (stored.checkedRowKeys?.length) {
87594
+ doUpdateCheckedRowKeys(stored.checkedRowKeys, void 0, "check");
87595
+ }
87596
+ if (stored.expandedRowKeys?.length) {
87597
+ doUpdateExpandedRowKeys(stored.expandedRowKeys);
87598
+ }
87599
+ });
87600
+ vue.watch(
87601
+ () => props.localStorageKey ? {
87602
+ key: props.localStorageKey,
87603
+ columnWidths: resizableWidthsRef.value,
87604
+ page: mergedPaginationRef.value?.page,
87605
+ pageSize: mergedPaginationRef.value?.pageSize,
87606
+ filters: mergedFilterStateRef.value,
87607
+ sortState: mergedSortStateRef.value.map((s) => ({
87608
+ columnKey: s.columnKey,
87609
+ order: s.order
87610
+ })),
87611
+ checkedRowKeys: mergedCheckedRowKeysRef.value,
87612
+ expandedRowKeys: mergedExpandedRowKeysRef.value
87613
+ } : null,
87614
+ (state) => {
87615
+ if (!state?.key) return;
87616
+ saveTableState(state.key, {
87617
+ columnWidths: state.columnWidths,
87618
+ page: state.page,
87619
+ pageSize: state.pageSize,
87620
+ filters: state.filters,
87621
+ sortState: state.sortState.length ? state.sortState : void 0,
87622
+ checkedRowKeys: state.checkedRowKeys?.length ? state.checkedRowKeys : void 0,
87623
+ expandedRowKeys: state.expandedRowKeys?.length ? state.expandedRowKeys : void 0
87624
+ });
87625
+ },
87626
+ { deep: true }
87627
+ );
86804
87628
  const { localeRef } = useLocale("DataTable");
86805
87629
  const mergedTableLayoutRef = vue.computed(() => {
86806
87630
  if (props.virtualScroll || props.flexHeight || props.maxHeight !== void 0 || hasEllipsisRef.value) {
@@ -87474,855 +88298,175 @@
87474
88298
  default: obj
87475
88299
  };
87476
88300
  }
87477
- function cloneObject(dirtyObject) {
87478
- return (0, _index.default)({}, dirtyObject);
87479
- }
87480
- module.exports = exports.default;
87481
- } (cloneObject$1, cloneObject$1.exports));
87482
-
87483
- var cloneObjectExports = cloneObject$1.exports;
87484
- var cloneObject = /*@__PURE__*/getDefaultExportFromCjs(cloneObjectExports);
87485
-
87486
- var format$3 = {exports: {}};
87487
-
87488
- var isValid = {exports: {}};
87489
-
87490
- var isDate = {exports: {}};
87491
-
87492
- var requiredArgs = {exports: {}};
87493
-
87494
- (function (module, exports) {
87495
-
87496
- Object.defineProperty(exports, "__esModule", {
87497
- value: true
87498
- });
87499
- exports.default = requiredArgs;
87500
- function requiredArgs(required, args) {
87501
- if (args.length < required) {
87502
- throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
87503
- }
87504
- }
87505
- module.exports = exports.default;
87506
- } (requiredArgs, requiredArgs.exports));
87507
-
87508
- var requiredArgsExports = requiredArgs.exports;
87509
-
87510
- (function (module, exports) {
87511
-
87512
- Object.defineProperty(exports, "__esModule", {
87513
- value: true
87514
- });
87515
- exports.default = isDate;
87516
- var _index = _interopRequireDefault(requiredArgsExports);
87517
- function _interopRequireDefault(obj) {
87518
- return obj && obj.__esModule ? obj : {
87519
- default: obj
87520
- };
87521
- }
87522
-
87523
- /**
87524
- * @name isDate
87525
- * @category Common Helpers
87526
- * @summary Is the given value a date?
87527
- *
87528
- * @description
87529
- * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
87530
- *
87531
- * ### v2.0.0 breaking changes:
87532
- *
87533
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
87534
- *
87535
- * @param {*} value - the value to check
87536
- * @returns {boolean} true if the given value is a date
87537
- * @throws {TypeError} 1 arguments required
87538
- *
87539
- * @example
87540
- * // For a valid date:
87541
- * const result = isDate(new Date())
87542
- * //=> true
87543
- *
87544
- * @example
87545
- * // For an invalid date:
87546
- * const result = isDate(new Date(NaN))
87547
- * //=> true
87548
- *
87549
- * @example
87550
- * // For some value:
87551
- * const result = isDate('2014-02-31')
87552
- * //=> false
87553
- *
87554
- * @example
87555
- * // For an object:
87556
- * const result = isDate({})
87557
- * //=> false
87558
- */
87559
- function isDate(value) {
87560
- (0, _index.default)(1, arguments);
87561
- return value instanceof Date || typeof value === 'object' && Object.prototype.toString.call(value) === '[object Date]';
87562
- }
87563
- module.exports = exports.default;
87564
- } (isDate, isDate.exports));
87565
-
87566
- var isDateExports = isDate.exports;
87567
-
87568
- var toDate$1 = {exports: {}};
87569
-
87570
- (function (module, exports) {
87571
-
87572
- Object.defineProperty(exports, "__esModule", {
87573
- value: true
87574
- });
87575
- exports.default = toDate;
87576
- var _index = _interopRequireDefault(requiredArgsExports);
87577
- function _interopRequireDefault(obj) {
87578
- return obj && obj.__esModule ? obj : {
87579
- default: obj
87580
- };
87581
- }
87582
-
87583
- /**
87584
- * @name toDate
87585
- * @category Common Helpers
87586
- * @summary Convert the given argument to an instance of Date.
87587
- *
87588
- * @description
87589
- * Convert the given argument to an instance of Date.
87590
- *
87591
- * If the argument is an instance of Date, the function returns its clone.
87592
- *
87593
- * If the argument is a number, it is treated as a timestamp.
87594
- *
87595
- * If the argument is none of the above, the function returns Invalid Date.
87596
- *
87597
- * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
87598
- *
87599
- * @param {Date|Number} argument - the value to convert
87600
- * @returns {Date} the parsed date in the local time zone
87601
- * @throws {TypeError} 1 argument required
87602
- *
87603
- * @example
87604
- * // Clone the date:
87605
- * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
87606
- * //=> Tue Feb 11 2014 11:30:30
87607
- *
87608
- * @example
87609
- * // Convert the timestamp to date:
87610
- * const result = toDate(1392098430000)
87611
- * //=> Tue Feb 11 2014 11:30:30
87612
- */
87613
- function toDate(argument) {
87614
- (0, _index.default)(1, arguments);
87615
- var argStr = Object.prototype.toString.call(argument); // Clone the date
87616
-
87617
- if (argument instanceof Date || typeof argument === 'object' && argStr === '[object Date]') {
87618
- // Prevent the date to lose the milliseconds when passed to new Date() in IE10
87619
- return new Date(argument.getTime());
87620
- } else if (typeof argument === 'number' || argStr === '[object Number]') {
87621
- return new Date(argument);
87622
- } else {
87623
- if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
87624
- // eslint-disable-next-line no-console
87625
- 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
87626
-
87627
- console.warn(new Error().stack);
87628
- }
87629
- return new Date(NaN);
87630
- }
87631
- }
87632
- module.exports = exports.default;
87633
- } (toDate$1, toDate$1.exports));
87634
-
87635
- var toDateExports = toDate$1.exports;
87636
-
87637
- (function (module, exports) {
87638
-
87639
- Object.defineProperty(exports, "__esModule", {
87640
- value: true
87641
- });
87642
- exports.default = isValid;
87643
- var _index = _interopRequireDefault(isDateExports);
87644
- var _index2 = _interopRequireDefault(toDateExports);
87645
- var _index3 = _interopRequireDefault(requiredArgsExports);
87646
- function _interopRequireDefault(obj) {
87647
- return obj && obj.__esModule ? obj : {
87648
- default: obj
87649
- };
87650
- }
87651
-
87652
- /**
87653
- * @name isValid
87654
- * @category Common Helpers
87655
- * @summary Is the given date valid?
87656
- *
87657
- * @description
87658
- * Returns false if argument is Invalid Date and true otherwise.
87659
- * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
87660
- * Invalid Date is a Date, whose time value is NaN.
87661
- *
87662
- * Time value of Date: http://es5.github.io/#x15.9.1.1
87663
- *
87664
- * ### v2.0.0 breaking changes:
87665
- *
87666
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
87667
- *
87668
- * - Now `isValid` doesn't throw an exception
87669
- * if the first argument is not an instance of Date.
87670
- * Instead, argument is converted beforehand using `toDate`.
87671
- *
87672
- * Examples:
87673
- *
87674
- * | `isValid` argument | Before v2.0.0 | v2.0.0 onward |
87675
- * |---------------------------|---------------|---------------|
87676
- * | `new Date()` | `true` | `true` |
87677
- * | `new Date('2016-01-01')` | `true` | `true` |
87678
- * | `new Date('')` | `false` | `false` |
87679
- * | `new Date(1488370835081)` | `true` | `true` |
87680
- * | `new Date(NaN)` | `false` | `false` |
87681
- * | `'2016-01-01'` | `TypeError` | `false` |
87682
- * | `''` | `TypeError` | `false` |
87683
- * | `1488370835081` | `TypeError` | `true` |
87684
- * | `NaN` | `TypeError` | `false` |
87685
- *
87686
- * We introduce this change to make *date-fns* consistent with ECMAScript behavior
87687
- * that try to coerce arguments to the expected type
87688
- * (which is also the case with other *date-fns* functions).
87689
- *
87690
- * @param {*} date - the date to check
87691
- * @returns {Boolean} the date is valid
87692
- * @throws {TypeError} 1 argument required
87693
- *
87694
- * @example
87695
- * // For the valid date:
87696
- * const result = isValid(new Date(2014, 1, 31))
87697
- * //=> true
87698
- *
87699
- * @example
87700
- * // For the value, convertable into a date:
87701
- * const result = isValid(1393804800000)
87702
- * //=> true
87703
- *
87704
- * @example
87705
- * // For the invalid date:
87706
- * const result = isValid(new Date(''))
87707
- * //=> false
87708
- */
87709
- function isValid(dirtyDate) {
87710
- (0, _index3.default)(1, arguments);
87711
- if (!(0, _index.default)(dirtyDate) && typeof dirtyDate !== 'number') {
87712
- return false;
87713
- }
87714
- var date = (0, _index2.default)(dirtyDate);
87715
- return !isNaN(Number(date));
87716
- }
87717
- module.exports = exports.default;
87718
- } (isValid, isValid.exports));
87719
-
87720
- var isValidExports = isValid.exports;
87721
-
87722
- var enUS = {exports: {}};
87723
-
87724
- var formatDistance = {exports: {}};
87725
-
87726
- (function (module, exports) {
87727
-
87728
- Object.defineProperty(exports, "__esModule", {
87729
- value: true
87730
- });
87731
- exports.default = void 0;
87732
- var formatDistanceLocale = {
87733
- lessThanXSeconds: {
87734
- one: 'less than a second',
87735
- other: 'less than {{count}} seconds'
87736
- },
87737
- xSeconds: {
87738
- one: '1 second',
87739
- other: '{{count}} seconds'
87740
- },
87741
- halfAMinute: 'half a minute',
87742
- lessThanXMinutes: {
87743
- one: 'less than a minute',
87744
- other: 'less than {{count}} minutes'
87745
- },
87746
- xMinutes: {
87747
- one: '1 minute',
87748
- other: '{{count}} minutes'
87749
- },
87750
- aboutXHours: {
87751
- one: 'about 1 hour',
87752
- other: 'about {{count}} hours'
87753
- },
87754
- xHours: {
87755
- one: '1 hour',
87756
- other: '{{count}} hours'
87757
- },
87758
- xDays: {
87759
- one: '1 day',
87760
- other: '{{count}} days'
87761
- },
87762
- aboutXWeeks: {
87763
- one: 'about 1 week',
87764
- other: 'about {{count}} weeks'
87765
- },
87766
- xWeeks: {
87767
- one: '1 week',
87768
- other: '{{count}} weeks'
87769
- },
87770
- aboutXMonths: {
87771
- one: 'about 1 month',
87772
- other: 'about {{count}} months'
87773
- },
87774
- xMonths: {
87775
- one: '1 month',
87776
- other: '{{count}} months'
87777
- },
87778
- aboutXYears: {
87779
- one: 'about 1 year',
87780
- other: 'about {{count}} years'
87781
- },
87782
- xYears: {
87783
- one: '1 year',
87784
- other: '{{count}} years'
87785
- },
87786
- overXYears: {
87787
- one: 'over 1 year',
87788
- other: 'over {{count}} years'
87789
- },
87790
- almostXYears: {
87791
- one: 'almost 1 year',
87792
- other: 'almost {{count}} years'
87793
- }
87794
- };
87795
- var formatDistance = function (token, count, options) {
87796
- var result;
87797
- var tokenValue = formatDistanceLocale[token];
87798
- if (typeof tokenValue === 'string') {
87799
- result = tokenValue;
87800
- } else if (count === 1) {
87801
- result = tokenValue.one;
87802
- } else {
87803
- result = tokenValue.other.replace('{{count}}', count.toString());
87804
- }
87805
- if (options !== null && options !== void 0 && options.addSuffix) {
87806
- if (options.comparison && options.comparison > 0) {
87807
- return 'in ' + result;
87808
- } else {
87809
- return result + ' ago';
87810
- }
87811
- }
87812
- return result;
87813
- };
87814
- var _default = formatDistance;
87815
- exports.default = _default;
87816
- module.exports = exports.default;
87817
- } (formatDistance, formatDistance.exports));
87818
-
87819
- var formatDistanceExports = formatDistance.exports;
87820
-
87821
- var formatLong = {exports: {}};
87822
-
87823
- var buildFormatLongFn = {exports: {}};
87824
-
87825
- (function (module, exports) {
87826
-
87827
- Object.defineProperty(exports, "__esModule", {
87828
- value: true
87829
- });
87830
- exports.default = buildFormatLongFn;
87831
- function buildFormatLongFn(args) {
87832
- return function () {
87833
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
87834
- // TODO: Remove String()
87835
- var width = options.width ? String(options.width) : args.defaultWidth;
87836
- var format = args.formats[width] || args.formats[args.defaultWidth];
87837
- return format;
87838
- };
87839
- }
87840
- module.exports = exports.default;
87841
- } (buildFormatLongFn, buildFormatLongFn.exports));
87842
-
87843
- var buildFormatLongFnExports = buildFormatLongFn.exports;
87844
-
87845
- (function (module, exports) {
87846
-
87847
- Object.defineProperty(exports, "__esModule", {
87848
- value: true
87849
- });
87850
- exports.default = void 0;
87851
- var _index = _interopRequireDefault(buildFormatLongFnExports);
87852
- function _interopRequireDefault(obj) {
87853
- return obj && obj.__esModule ? obj : {
87854
- default: obj
87855
- };
87856
- }
87857
- var dateFormats = {
87858
- full: 'EEEE, MMMM do, y',
87859
- long: 'MMMM do, y',
87860
- medium: 'MMM d, y',
87861
- short: 'MM/dd/yyyy'
87862
- };
87863
- var timeFormats = {
87864
- full: 'h:mm:ss a zzzz',
87865
- long: 'h:mm:ss a z',
87866
- medium: 'h:mm:ss a',
87867
- short: 'h:mm a'
87868
- };
87869
- var dateTimeFormats = {
87870
- full: "{{date}} 'at' {{time}}",
87871
- long: "{{date}} 'at' {{time}}",
87872
- medium: '{{date}}, {{time}}',
87873
- short: '{{date}}, {{time}}'
87874
- };
87875
- var formatLong = {
87876
- date: (0, _index.default)({
87877
- formats: dateFormats,
87878
- defaultWidth: 'full'
87879
- }),
87880
- time: (0, _index.default)({
87881
- formats: timeFormats,
87882
- defaultWidth: 'full'
87883
- }),
87884
- dateTime: (0, _index.default)({
87885
- formats: dateTimeFormats,
87886
- defaultWidth: 'full'
87887
- })
87888
- };
87889
- var _default = formatLong;
87890
- exports.default = _default;
87891
- module.exports = exports.default;
87892
- } (formatLong, formatLong.exports));
87893
-
87894
- var formatLongExports = formatLong.exports;
87895
-
87896
- var formatRelative = {exports: {}};
87897
-
87898
- (function (module, exports) {
87899
-
87900
- Object.defineProperty(exports, "__esModule", {
87901
- value: true
87902
- });
87903
- exports.default = void 0;
87904
- var formatRelativeLocale = {
87905
- lastWeek: "'last' eeee 'at' p",
87906
- yesterday: "'yesterday at' p",
87907
- today: "'today at' p",
87908
- tomorrow: "'tomorrow at' p",
87909
- nextWeek: "eeee 'at' p",
87910
- other: 'P'
87911
- };
87912
- var formatRelative = function (token, _date, _baseDate, _options) {
87913
- return formatRelativeLocale[token];
87914
- };
87915
- var _default = formatRelative;
87916
- exports.default = _default;
87917
- module.exports = exports.default;
87918
- } (formatRelative, formatRelative.exports));
87919
-
87920
- var formatRelativeExports = formatRelative.exports;
87921
-
87922
- var localize = {exports: {}};
87923
-
87924
- var buildLocalizeFn = {exports: {}};
87925
-
87926
- (function (module, exports) {
87927
-
87928
- Object.defineProperty(exports, "__esModule", {
87929
- value: true
87930
- });
87931
- exports.default = buildLocalizeFn;
87932
- function buildLocalizeFn(args) {
87933
- return function (dirtyIndex, dirtyOptions) {
87934
- var options = dirtyOptions || {};
87935
- var context = options.context ? String(options.context) : 'standalone';
87936
- var valuesArray;
87937
- if (context === 'formatting' && args.formattingValues) {
87938
- var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
87939
- var width = options.width ? String(options.width) : defaultWidth;
87940
- valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
87941
- } else {
87942
- var _defaultWidth = args.defaultWidth;
87943
- var _width = options.width ? String(options.width) : args.defaultWidth;
87944
- valuesArray = args.values[_width] || args.values[_defaultWidth];
87945
- }
87946
- var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; // @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!
87947
-
87948
- return valuesArray[index];
87949
- };
87950
- }
87951
- module.exports = exports.default;
87952
- } (buildLocalizeFn, buildLocalizeFn.exports));
87953
-
87954
- var buildLocalizeFnExports = buildLocalizeFn.exports;
87955
-
87956
- (function (module, exports) {
87957
-
87958
- Object.defineProperty(exports, "__esModule", {
87959
- value: true
87960
- });
87961
- exports.default = void 0;
87962
- var _index = _interopRequireDefault(buildLocalizeFnExports);
87963
- function _interopRequireDefault(obj) {
87964
- return obj && obj.__esModule ? obj : {
87965
- default: obj
87966
- };
87967
- }
87968
- var eraValues = {
87969
- narrow: ['B', 'A'],
87970
- abbreviated: ['BC', 'AD'],
87971
- wide: ['Before Christ', 'Anno Domini']
87972
- };
87973
- var quarterValues = {
87974
- narrow: ['1', '2', '3', '4'],
87975
- abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
87976
- wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
87977
- }; // Note: in English, the names of days of the week and months are capitalized.
87978
- // If you are making a new locale based on this one, check if the same is true for the language you're working on.
87979
- // Generally, formatted dates should look like they are in the middle of a sentence,
87980
- // e.g. in Spanish language the weekdays and months should be in the lowercase.
88301
+ function cloneObject(dirtyObject) {
88302
+ return (0, _index.default)({}, dirtyObject);
88303
+ }
88304
+ module.exports = exports.default;
88305
+ } (cloneObject$1, cloneObject$1.exports));
87981
88306
 
87982
- var monthValues = {
87983
- narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
87984
- abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
87985
- wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
87986
- };
87987
- var dayValues = {
87988
- narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
87989
- short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
87990
- abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
87991
- wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
87992
- };
87993
- var dayPeriodValues = {
87994
- narrow: {
87995
- am: 'a',
87996
- pm: 'p',
87997
- midnight: 'mi',
87998
- noon: 'n',
87999
- morning: 'morning',
88000
- afternoon: 'afternoon',
88001
- evening: 'evening',
88002
- night: 'night'
88003
- },
88004
- abbreviated: {
88005
- am: 'AM',
88006
- pm: 'PM',
88007
- midnight: 'midnight',
88008
- noon: 'noon',
88009
- morning: 'morning',
88010
- afternoon: 'afternoon',
88011
- evening: 'evening',
88012
- night: 'night'
88013
- },
88014
- wide: {
88015
- am: 'a.m.',
88016
- pm: 'p.m.',
88017
- midnight: 'midnight',
88018
- noon: 'noon',
88019
- morning: 'morning',
88020
- afternoon: 'afternoon',
88021
- evening: 'evening',
88022
- night: 'night'
88023
- }
88024
- };
88025
- var formattingDayPeriodValues = {
88026
- narrow: {
88027
- am: 'a',
88028
- pm: 'p',
88029
- midnight: 'mi',
88030
- noon: 'n',
88031
- morning: 'in the morning',
88032
- afternoon: 'in the afternoon',
88033
- evening: 'in the evening',
88034
- night: 'at night'
88035
- },
88036
- abbreviated: {
88037
- am: 'AM',
88038
- pm: 'PM',
88039
- midnight: 'midnight',
88040
- noon: 'noon',
88041
- morning: 'in the morning',
88042
- afternoon: 'in the afternoon',
88043
- evening: 'in the evening',
88044
- night: 'at night'
88045
- },
88046
- wide: {
88047
- am: 'a.m.',
88048
- pm: 'p.m.',
88049
- midnight: 'midnight',
88050
- noon: 'noon',
88051
- morning: 'in the morning',
88052
- afternoon: 'in the afternoon',
88053
- evening: 'in the evening',
88054
- night: 'at night'
88055
- }
88056
- };
88057
- var ordinalNumber = function (dirtyNumber, _options) {
88058
- var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
88059
- // if they are different for different grammatical genders,
88060
- // use `options.unit`.
88061
- //
88062
- // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
88063
- // 'day', 'hour', 'minute', 'second'.
88307
+ var cloneObjectExports = cloneObject$1.exports;
88308
+ var cloneObject = /*@__PURE__*/getDefaultExportFromCjs(cloneObjectExports);
88064
88309
 
88065
- var rem100 = number % 100;
88066
- if (rem100 > 20 || rem100 < 10) {
88067
- switch (rem100 % 10) {
88068
- case 1:
88069
- return number + 'st';
88070
- case 2:
88071
- return number + 'nd';
88072
- case 3:
88073
- return number + 'rd';
88074
- }
88075
- }
88076
- return number + 'th';
88077
- };
88078
- var localize = {
88079
- ordinalNumber: ordinalNumber,
88080
- era: (0, _index.default)({
88081
- values: eraValues,
88082
- defaultWidth: 'wide'
88083
- }),
88084
- quarter: (0, _index.default)({
88085
- values: quarterValues,
88086
- defaultWidth: 'wide',
88087
- argumentCallback: function (quarter) {
88088
- return quarter - 1;
88089
- }
88090
- }),
88091
- month: (0, _index.default)({
88092
- values: monthValues,
88093
- defaultWidth: 'wide'
88094
- }),
88095
- day: (0, _index.default)({
88096
- values: dayValues,
88097
- defaultWidth: 'wide'
88098
- }),
88099
- dayPeriod: (0, _index.default)({
88100
- values: dayPeriodValues,
88101
- defaultWidth: 'wide',
88102
- formattingValues: formattingDayPeriodValues,
88103
- defaultFormattingWidth: 'wide'
88104
- })
88105
- };
88106
- var _default = localize;
88107
- exports.default = _default;
88108
- module.exports = exports.default;
88109
- } (localize, localize.exports));
88310
+ var format$3 = {exports: {}};
88110
88311
 
88111
- var localizeExports = localize.exports;
88312
+ var isValid = {exports: {}};
88112
88313
 
88113
- var match = {exports: {}};
88314
+ var isDate = {exports: {}};
88114
88315
 
88115
- var buildMatchFn = {exports: {}};
88316
+ var requiredArgs = {exports: {}};
88116
88317
 
88117
88318
  (function (module, exports) {
88118
88319
 
88119
88320
  Object.defineProperty(exports, "__esModule", {
88120
88321
  value: true
88121
88322
  });
88122
- exports.default = buildMatchFn;
88123
- function buildMatchFn(args) {
88124
- return function (string) {
88125
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
88126
- var width = options.width;
88127
- var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
88128
- var matchResult = string.match(matchPattern);
88129
- if (!matchResult) {
88130
- return null;
88131
- }
88132
- var matchedString = matchResult[0];
88133
- var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
88134
- var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {
88135
- return pattern.test(matchedString);
88136
- }) : findKey(parsePatterns, function (pattern) {
88137
- return pattern.test(matchedString);
88138
- });
88139
- var value;
88140
- value = args.valueCallback ? args.valueCallback(key) : key;
88141
- value = options.valueCallback ? options.valueCallback(value) : value;
88142
- var rest = string.slice(matchedString.length);
88143
- return {
88144
- value: value,
88145
- rest: rest
88146
- };
88147
- };
88148
- }
88149
- function findKey(object, predicate) {
88150
- for (var key in object) {
88151
- if (object.hasOwnProperty(key) && predicate(object[key])) {
88152
- return key;
88153
- }
88154
- }
88155
- return undefined;
88156
- }
88157
- function findIndex(array, predicate) {
88158
- for (var key = 0; key < array.length; key++) {
88159
- if (predicate(array[key])) {
88160
- return key;
88161
- }
88323
+ exports.default = requiredArgs;
88324
+ function requiredArgs(required, args) {
88325
+ if (args.length < required) {
88326
+ throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
88162
88327
  }
88163
- return undefined;
88164
88328
  }
88165
88329
  module.exports = exports.default;
88166
- } (buildMatchFn, buildMatchFn.exports));
88167
-
88168
- var buildMatchFnExports = buildMatchFn.exports;
88330
+ } (requiredArgs, requiredArgs.exports));
88169
88331
 
88170
- var buildMatchPatternFn = {exports: {}};
88332
+ var requiredArgsExports = requiredArgs.exports;
88171
88333
 
88172
88334
  (function (module, exports) {
88173
88335
 
88174
88336
  Object.defineProperty(exports, "__esModule", {
88175
88337
  value: true
88176
88338
  });
88177
- exports.default = buildMatchPatternFn;
88178
- function buildMatchPatternFn(args) {
88179
- return function (string) {
88180
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
88181
- var matchResult = string.match(args.matchPattern);
88182
- if (!matchResult) return null;
88183
- var matchedString = matchResult[0];
88184
- var parseResult = string.match(args.parsePattern);
88185
- if (!parseResult) return null;
88186
- var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
88187
- value = options.valueCallback ? options.valueCallback(value) : value;
88188
- var rest = string.slice(matchedString.length);
88189
- return {
88190
- value: value,
88191
- rest: rest
88192
- };
88339
+ exports.default = isDate;
88340
+ var _index = _interopRequireDefault(requiredArgsExports);
88341
+ function _interopRequireDefault(obj) {
88342
+ return obj && obj.__esModule ? obj : {
88343
+ default: obj
88193
88344
  };
88194
88345
  }
88346
+
88347
+ /**
88348
+ * @name isDate
88349
+ * @category Common Helpers
88350
+ * @summary Is the given value a date?
88351
+ *
88352
+ * @description
88353
+ * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
88354
+ *
88355
+ * ### v2.0.0 breaking changes:
88356
+ *
88357
+ * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
88358
+ *
88359
+ * @param {*} value - the value to check
88360
+ * @returns {boolean} true if the given value is a date
88361
+ * @throws {TypeError} 1 arguments required
88362
+ *
88363
+ * @example
88364
+ * // For a valid date:
88365
+ * const result = isDate(new Date())
88366
+ * //=> true
88367
+ *
88368
+ * @example
88369
+ * // For an invalid date:
88370
+ * const result = isDate(new Date(NaN))
88371
+ * //=> true
88372
+ *
88373
+ * @example
88374
+ * // For some value:
88375
+ * const result = isDate('2014-02-31')
88376
+ * //=> false
88377
+ *
88378
+ * @example
88379
+ * // For an object:
88380
+ * const result = isDate({})
88381
+ * //=> false
88382
+ */
88383
+ function isDate(value) {
88384
+ (0, _index.default)(1, arguments);
88385
+ return value instanceof Date || typeof value === 'object' && Object.prototype.toString.call(value) === '[object Date]';
88386
+ }
88195
88387
  module.exports = exports.default;
88196
- } (buildMatchPatternFn, buildMatchPatternFn.exports));
88388
+ } (isDate, isDate.exports));
88389
+
88390
+ var isDateExports = isDate.exports;
88197
88391
 
88198
- var buildMatchPatternFnExports = buildMatchPatternFn.exports;
88392
+ var toDate$1 = {exports: {}};
88199
88393
 
88200
88394
  (function (module, exports) {
88201
88395
 
88202
88396
  Object.defineProperty(exports, "__esModule", {
88203
88397
  value: true
88204
88398
  });
88205
- exports.default = void 0;
88206
- var _index = _interopRequireDefault(buildMatchFnExports);
88207
- var _index2 = _interopRequireDefault(buildMatchPatternFnExports);
88399
+ exports.default = toDate;
88400
+ var _index = _interopRequireDefault(requiredArgsExports);
88208
88401
  function _interopRequireDefault(obj) {
88209
88402
  return obj && obj.__esModule ? obj : {
88210
88403
  default: obj
88211
88404
  };
88212
88405
  }
88213
- var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
88214
- var parseOrdinalNumberPattern = /\d+/i;
88215
- var matchEraPatterns = {
88216
- narrow: /^(b|a)/i,
88217
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
88218
- wide: /^(before christ|before common era|anno domini|common era)/i
88219
- };
88220
- var parseEraPatterns = {
88221
- any: [/^b/i, /^(a|c)/i]
88222
- };
88223
- var matchQuarterPatterns = {
88224
- narrow: /^[1234]/i,
88225
- abbreviated: /^q[1234]/i,
88226
- wide: /^[1234](th|st|nd|rd)? quarter/i
88227
- };
88228
- var parseQuarterPatterns = {
88229
- any: [/1/i, /2/i, /3/i, /4/i]
88230
- };
88231
- var matchMonthPatterns = {
88232
- narrow: /^[jfmasond]/i,
88233
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
88234
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
88235
- };
88236
- var parseMonthPatterns = {
88237
- 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],
88238
- 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]
88239
- };
88240
- var matchDayPatterns = {
88241
- narrow: /^[smtwf]/i,
88242
- short: /^(su|mo|tu|we|th|fr|sa)/i,
88243
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
88244
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
88245
- };
88246
- var parseDayPatterns = {
88247
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
88248
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
88249
- };
88250
- var matchDayPeriodPatterns = {
88251
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
88252
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
88253
- };
88254
- var parseDayPeriodPatterns = {
88255
- any: {
88256
- am: /^a/i,
88257
- pm: /^p/i,
88258
- midnight: /^mi/i,
88259
- noon: /^no/i,
88260
- morning: /morning/i,
88261
- afternoon: /afternoon/i,
88262
- evening: /evening/i,
88263
- night: /night/i
88264
- }
88265
- };
88266
- var match = {
88267
- ordinalNumber: (0, _index2.default)({
88268
- matchPattern: matchOrdinalNumberPattern,
88269
- parsePattern: parseOrdinalNumberPattern,
88270
- valueCallback: function (value) {
88271
- return parseInt(value, 10);
88272
- }
88273
- }),
88274
- era: (0, _index.default)({
88275
- matchPatterns: matchEraPatterns,
88276
- defaultMatchWidth: 'wide',
88277
- parsePatterns: parseEraPatterns,
88278
- defaultParseWidth: 'any'
88279
- }),
88280
- quarter: (0, _index.default)({
88281
- matchPatterns: matchQuarterPatterns,
88282
- defaultMatchWidth: 'wide',
88283
- parsePatterns: parseQuarterPatterns,
88284
- defaultParseWidth: 'any',
88285
- valueCallback: function (index) {
88286
- return index + 1;
88406
+
88407
+ /**
88408
+ * @name toDate
88409
+ * @category Common Helpers
88410
+ * @summary Convert the given argument to an instance of Date.
88411
+ *
88412
+ * @description
88413
+ * Convert the given argument to an instance of Date.
88414
+ *
88415
+ * If the argument is an instance of Date, the function returns its clone.
88416
+ *
88417
+ * If the argument is a number, it is treated as a timestamp.
88418
+ *
88419
+ * If the argument is none of the above, the function returns Invalid Date.
88420
+ *
88421
+ * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
88422
+ *
88423
+ * @param {Date|Number} argument - the value to convert
88424
+ * @returns {Date} the parsed date in the local time zone
88425
+ * @throws {TypeError} 1 argument required
88426
+ *
88427
+ * @example
88428
+ * // Clone the date:
88429
+ * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
88430
+ * //=> Tue Feb 11 2014 11:30:30
88431
+ *
88432
+ * @example
88433
+ * // Convert the timestamp to date:
88434
+ * const result = toDate(1392098430000)
88435
+ * //=> Tue Feb 11 2014 11:30:30
88436
+ */
88437
+ function toDate(argument) {
88438
+ (0, _index.default)(1, arguments);
88439
+ var argStr = Object.prototype.toString.call(argument); // Clone the date
88440
+
88441
+ if (argument instanceof Date || typeof argument === 'object' && argStr === '[object Date]') {
88442
+ // Prevent the date to lose the milliseconds when passed to new Date() in IE10
88443
+ return new Date(argument.getTime());
88444
+ } else if (typeof argument === 'number' || argStr === '[object Number]') {
88445
+ return new Date(argument);
88446
+ } else {
88447
+ if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
88448
+ // eslint-disable-next-line no-console
88449
+ 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
88450
+
88451
+ console.warn(new Error().stack);
88287
88452
  }
88288
- }),
88289
- month: (0, _index.default)({
88290
- matchPatterns: matchMonthPatterns,
88291
- defaultMatchWidth: 'wide',
88292
- parsePatterns: parseMonthPatterns,
88293
- defaultParseWidth: 'any'
88294
- }),
88295
- day: (0, _index.default)({
88296
- matchPatterns: matchDayPatterns,
88297
- defaultMatchWidth: 'wide',
88298
- parsePatterns: parseDayPatterns,
88299
- defaultParseWidth: 'any'
88300
- }),
88301
- dayPeriod: (0, _index.default)({
88302
- matchPatterns: matchDayPeriodPatterns,
88303
- defaultMatchWidth: 'any',
88304
- parsePatterns: parseDayPeriodPatterns,
88305
- defaultParseWidth: 'any'
88306
- })
88307
- };
88308
- var _default = match;
88309
- exports.default = _default;
88453
+ return new Date(NaN);
88454
+ }
88455
+ }
88310
88456
  module.exports = exports.default;
88311
- } (match, match.exports));
88457
+ } (toDate$1, toDate$1.exports));
88312
88458
 
88313
- var matchExports = match.exports;
88459
+ var toDateExports = toDate$1.exports;
88314
88460
 
88315
88461
  (function (module, exports) {
88316
88462
 
88317
88463
  Object.defineProperty(exports, "__esModule", {
88318
88464
  value: true
88319
88465
  });
88320
- exports.default = void 0;
88321
- var _index = _interopRequireDefault(formatDistanceExports);
88322
- var _index2 = _interopRequireDefault(formatLongExports);
88323
- var _index3 = _interopRequireDefault(formatRelativeExports);
88324
- var _index4 = _interopRequireDefault(localizeExports);
88325
- var _index5 = _interopRequireDefault(matchExports);
88466
+ exports.default = isValid;
88467
+ var _index = _interopRequireDefault(isDateExports);
88468
+ var _index2 = _interopRequireDefault(toDateExports);
88469
+ var _index3 = _interopRequireDefault(requiredArgsExports);
88326
88470
  function _interopRequireDefault(obj) {
88327
88471
  return obj && obj.__esModule ? obj : {
88328
88472
  default: obj
@@ -88330,34 +88474,74 @@
88330
88474
  }
88331
88475
 
88332
88476
  /**
88333
- * @type {Locale}
88334
- * @category Locales
88335
- * @summary English locale (United States).
88336
- * @language English
88337
- * @iso-639-2 eng
88338
- * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
88339
- * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
88477
+ * @name isValid
88478
+ * @category Common Helpers
88479
+ * @summary Is the given date valid?
88480
+ *
88481
+ * @description
88482
+ * Returns false if argument is Invalid Date and true otherwise.
88483
+ * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
88484
+ * Invalid Date is a Date, whose time value is NaN.
88485
+ *
88486
+ * Time value of Date: http://es5.github.io/#x15.9.1.1
88487
+ *
88488
+ * ### v2.0.0 breaking changes:
88489
+ *
88490
+ * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
88491
+ *
88492
+ * - Now `isValid` doesn't throw an exception
88493
+ * if the first argument is not an instance of Date.
88494
+ * Instead, argument is converted beforehand using `toDate`.
88495
+ *
88496
+ * Examples:
88497
+ *
88498
+ * | `isValid` argument | Before v2.0.0 | v2.0.0 onward |
88499
+ * |---------------------------|---------------|---------------|
88500
+ * | `new Date()` | `true` | `true` |
88501
+ * | `new Date('2016-01-01')` | `true` | `true` |
88502
+ * | `new Date('')` | `false` | `false` |
88503
+ * | `new Date(1488370835081)` | `true` | `true` |
88504
+ * | `new Date(NaN)` | `false` | `false` |
88505
+ * | `'2016-01-01'` | `TypeError` | `false` |
88506
+ * | `''` | `TypeError` | `false` |
88507
+ * | `1488370835081` | `TypeError` | `true` |
88508
+ * | `NaN` | `TypeError` | `false` |
88509
+ *
88510
+ * We introduce this change to make *date-fns* consistent with ECMAScript behavior
88511
+ * that try to coerce arguments to the expected type
88512
+ * (which is also the case with other *date-fns* functions).
88513
+ *
88514
+ * @param {*} date - the date to check
88515
+ * @returns {Boolean} the date is valid
88516
+ * @throws {TypeError} 1 argument required
88517
+ *
88518
+ * @example
88519
+ * // For the valid date:
88520
+ * const result = isValid(new Date(2014, 1, 31))
88521
+ * //=> true
88522
+ *
88523
+ * @example
88524
+ * // For the value, convertable into a date:
88525
+ * const result = isValid(1393804800000)
88526
+ * //=> true
88527
+ *
88528
+ * @example
88529
+ * // For the invalid date:
88530
+ * const result = isValid(new Date(''))
88531
+ * //=> false
88340
88532
  */
88341
- var locale = {
88342
- code: 'en-US',
88343
- formatDistance: _index.default,
88344
- formatLong: _index2.default,
88345
- formatRelative: _index3.default,
88346
- localize: _index4.default,
88347
- match: _index5.default,
88348
- options: {
88349
- weekStartsOn: 0
88350
- /* Sunday */,
88351
-
88352
- firstWeekContainsDate: 1
88533
+ function isValid(dirtyDate) {
88534
+ (0, _index3.default)(1, arguments);
88535
+ if (!(0, _index.default)(dirtyDate) && typeof dirtyDate !== 'number') {
88536
+ return false;
88353
88537
  }
88354
- };
88355
- var _default = locale;
88356
- exports.default = _default;
88538
+ var date = (0, _index2.default)(dirtyDate);
88539
+ return !isNaN(Number(date));
88540
+ }
88357
88541
  module.exports = exports.default;
88358
- } (enUS, enUS.exports));
88542
+ } (isValid, isValid.exports));
88359
88543
 
88360
- var enUSExports = enUS.exports;
88544
+ var isValidExports = isValid.exports;
88361
88545
 
88362
88546
  var subMilliseconds = {exports: {}};
88363
88547
 
@@ -131093,7 +131277,7 @@
131093
131277
  watermarkProps: watermarkProps
131094
131278
  });
131095
131279
 
131096
- var version = "1.13.2";
131280
+ var version = "1.14.1";
131097
131281
 
131098
131282
  function useExposeProxy(targetRef) {
131099
131283
  return new Proxy({}, {
@@ -132245,7 +132429,7 @@
132245
132429
  exports.ellipsisProps = ellipsisProps;
132246
132430
  exports.emptyDark = emptyDark$1;
132247
132431
  exports.emptyProps = emptyProps;
132248
- exports.enUS = enUS$1;
132432
+ exports.enUS = enUS$2;
132249
132433
  exports.equationProps = equationProps;
132250
132434
  exports.flexProps = flexProps;
132251
132435
  exports.formDark = formItemDark;