brd-ui-kit 0.1.75 → 0.1.76

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 (230) hide show
  1. package/dist/brd-ui-kit.css +1 -1
  2. package/dist/calendar-B5QCV34E.cjs +2 -0
  3. package/dist/{calendar-DReGV_22.cjs.map → calendar-B5QCV34E.cjs.map} +1 -1
  4. package/dist/{calendar-C0DXP3T-.js → calendar-Ba3kHG6w.js} +264 -270
  5. package/dist/{calendar-C0DXP3T-.js.map → calendar-Ba3kHG6w.js.map} +1 -1
  6. package/dist/{calendar-locale-CP2pxhFK.cjs → calendar-locale-BHyNJPb2.cjs} +2 -2
  7. package/dist/{calendar-locale-CP2pxhFK.cjs.map → calendar-locale-BHyNJPb2.cjs.map} +1 -1
  8. package/dist/{calendar-locale-DJf03PI9.js → calendar-locale-DQ9wj0zF.js} +2 -2
  9. package/dist/{calendar-locale-DJf03PI9.js.map → calendar-locale-DQ9wj0zF.js.map} +1 -1
  10. package/dist/chart-9H_9wEfR.cjs +63 -0
  11. package/dist/{chart-C69jBlXa.cjs.map → chart-9H_9wEfR.cjs.map} +1 -1
  12. package/dist/{chart-CAPCe8o5.js → chart-DFbmMKiQ.js} +2956 -2951
  13. package/dist/{chart-CAPCe8o5.js.map → chart-DFbmMKiQ.js.map} +1 -1
  14. package/dist/components/basic-chart/basic-chart.d.ts +1 -1
  15. package/dist/components/basic-table/basic-table.d.ts +5 -5
  16. package/dist/components/data-table/data-table-actions-column.d.ts +3 -3
  17. package/dist/components/data-table/data-table-bulk-actions.d.ts +3 -3
  18. package/dist/components/data-table/data-table-column-visibility.d.ts +2 -2
  19. package/dist/components/data-table/data-table-filter.d.ts +2 -2
  20. package/dist/components/data-table/data-table-row-actions-column.d.ts +3 -3
  21. package/dist/components/data-table/use-data-table-editable-rows.d.ts +5 -5
  22. package/dist/components/input-field/input-field.d.ts +3 -3
  23. package/dist/components/input-phone/input-phone.d.ts +4 -4
  24. package/dist/components/popover-modal/popover-modal.d.ts +4 -4
  25. package/dist/components/select-field/select-field.d.ts +2 -2
  26. package/dist/components/ui/avatar/avatar.d.ts +7 -7
  27. package/dist/components/ui/badge/badge.d.ts +2 -2
  28. package/dist/components/ui/button/button.d.ts +3 -3
  29. package/dist/components/ui/calendar/calendar.d.ts +6 -6
  30. package/dist/components/ui/calendar/calendar.styles.d.ts +1 -1
  31. package/dist/components/ui/card/card.d.ts +13 -13
  32. package/dist/components/ui/chart/chart.d.ts +23 -21
  33. package/dist/components/ui/checkbox/checkbox.d.ts +4 -4
  34. package/dist/components/ui/combobox/combobox.d.ts +6 -6
  35. package/dist/components/ui/dialog/dialog.d.ts +11 -11
  36. package/dist/components/ui/drawer/drawer.d.ts +11 -11
  37. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +40 -40
  38. package/dist/components/ui/icon/icon.d.ts +3 -3
  39. package/dist/components/ui/input/input.d.ts +2 -2
  40. package/dist/components/ui/input-group/input-group.d.ts +7 -7
  41. package/dist/components/ui/label/label.d.ts +4 -4
  42. package/dist/components/ui/pagination/pagination.d.ts +8 -8
  43. package/dist/components/ui/popover/popover.d.ts +8 -8
  44. package/dist/components/ui/progress/progress.d.ts +4 -4
  45. package/dist/components/ui/radio-group/radio-group.d.ts +7 -7
  46. package/dist/components/ui/select/select.d.ts +11 -11
  47. package/dist/components/ui/select-calendar-menu/select-calendar-menu.d.ts +4 -4
  48. package/dist/components/ui/separator/separator.d.ts +4 -4
  49. package/dist/components/ui/switch/switch.d.ts +4 -4
  50. package/dist/components/ui/table/table.d.ts +17 -17
  51. package/dist/components/ui/tabs/tabs.d.ts +8 -8
  52. package/dist/components/ui/tooltip/tooltip.d.ts +8 -8
  53. package/dist/components/ui/typography/typography.d.ts +174 -174
  54. package/dist/components-avatar-uploader-avatar-uploader.cjs +2 -2
  55. package/dist/components-avatar-uploader-avatar-uploader.cjs.map +1 -1
  56. package/dist/components-avatar-uploader-avatar-uploader.js +35 -36
  57. package/dist/components-avatar-uploader-avatar-uploader.js.map +1 -1
  58. package/dist/components-basic-avatar-basic-avatar.cjs +1 -1
  59. package/dist/components-basic-avatar-basic-avatar.js +3 -3
  60. package/dist/components-basic-chart-basic-chart.cjs +2 -2
  61. package/dist/components-basic-chart-basic-chart.cjs.map +1 -1
  62. package/dist/components-basic-chart-basic-chart.js +106 -108
  63. package/dist/components-basic-chart-basic-chart.js.map +1 -1
  64. package/dist/components-basic-table-basic-table.cjs +2 -2
  65. package/dist/components-basic-table-basic-table.cjs.map +1 -1
  66. package/dist/components-basic-table-basic-table.js +232 -231
  67. package/dist/components-basic-table-basic-table.js.map +1 -1
  68. package/dist/components-data-table-data-table-actions-column.cjs +1 -1
  69. package/dist/components-data-table-data-table-actions-column.cjs.map +1 -1
  70. package/dist/components-data-table-data-table-actions-column.js +5 -6
  71. package/dist/components-data-table-data-table-actions-column.js.map +1 -1
  72. package/dist/components-data-table-data-table-bulk-actions.cjs +1 -1
  73. package/dist/components-data-table-data-table-bulk-actions.cjs.map +1 -1
  74. package/dist/components-data-table-data-table-bulk-actions.js +9 -9
  75. package/dist/components-data-table-data-table-bulk-actions.js.map +1 -1
  76. package/dist/components-data-table-data-table-column-visibility.cjs +1 -1
  77. package/dist/components-data-table-data-table-column-visibility.cjs.map +1 -1
  78. package/dist/components-data-table-data-table-column-visibility.js +1 -1
  79. package/dist/components-data-table-data-table-column-visibility.js.map +1 -1
  80. package/dist/components-data-table-data-table-filter.cjs +1 -1
  81. package/dist/components-data-table-data-table-filter.cjs.map +1 -1
  82. package/dist/components-data-table-data-table-filter.js +15 -15
  83. package/dist/components-data-table-data-table-filter.js.map +1 -1
  84. package/dist/components-data-table-data-table-row-actions-column.cjs +1 -1
  85. package/dist/components-data-table-data-table-row-actions-column.cjs.map +1 -1
  86. package/dist/components-data-table-data-table-row-actions-column.js +19 -20
  87. package/dist/components-data-table-data-table-row-actions-column.js.map +1 -1
  88. package/dist/components-data-table-use-data-table-editable-rows.cjs +1 -1
  89. package/dist/components-data-table-use-data-table-editable-rows.cjs.map +1 -1
  90. package/dist/components-data-table-use-data-table-editable-rows.js +88 -90
  91. package/dist/components-data-table-use-data-table-editable-rows.js.map +1 -1
  92. package/dist/components-input-contact-input-contact.cjs +1 -1
  93. package/dist/components-input-contact-input-contact.cjs.map +1 -1
  94. package/dist/components-input-contact-input-contact.js +8 -8
  95. package/dist/components-input-field-input-field.cjs +1 -1
  96. package/dist/components-input-field-input-field.cjs.map +1 -1
  97. package/dist/components-input-field-input-field.js +18 -19
  98. package/dist/components-input-field-input-field.js.map +1 -1
  99. package/dist/components-input-password-input-password.cjs +1 -1
  100. package/dist/components-input-password-input-password.cjs.map +1 -1
  101. package/dist/components-input-password-input-password.js +4 -4
  102. package/dist/components-input-phone-input-phone.cjs.map +1 -1
  103. package/dist/components-input-phone-input-phone.js.map +1 -1
  104. package/dist/components-popover-modal-popover-modal.cjs +1 -1
  105. package/dist/components-popover-modal-popover-modal.cjs.map +1 -1
  106. package/dist/components-popover-modal-popover-modal.js +40 -29
  107. package/dist/components-popover-modal-popover-modal.js.map +1 -1
  108. package/dist/components-select-field-select-field.cjs.map +1 -1
  109. package/dist/components-select-field-select-field.js.map +1 -1
  110. package/dist/components-ui-avatar-avatar.cjs +1 -1
  111. package/dist/components-ui-avatar-avatar.cjs.map +1 -1
  112. package/dist/components-ui-avatar-avatar.js +12 -13
  113. package/dist/components-ui-avatar-avatar.js.map +1 -1
  114. package/dist/components-ui-badge-badge.cjs +1 -1
  115. package/dist/components-ui-badge-badge.cjs.map +1 -1
  116. package/dist/components-ui-badge-badge.js +10 -11
  117. package/dist/components-ui-badge-badge.js.map +1 -1
  118. package/dist/components-ui-button-button.cjs +1 -1
  119. package/dist/components-ui-button-button.cjs.map +1 -1
  120. package/dist/components-ui-button-button.js +10 -11
  121. package/dist/components-ui-button-button.js.map +1 -1
  122. package/dist/components-ui-button-button.styles.cjs +4 -4
  123. package/dist/components-ui-button-button.styles.cjs.map +1 -1
  124. package/dist/components-ui-button-button.styles.js +4 -4
  125. package/dist/components-ui-button-button.styles.js.map +1 -1
  126. package/dist/components-ui-calendar-calendar.cjs +1 -1
  127. package/dist/components-ui-calendar-calendar.js +1 -1
  128. package/dist/components-ui-calendar-calendar.styles.cjs +1 -1
  129. package/dist/components-ui-calendar-calendar.styles.cjs.map +1 -1
  130. package/dist/components-ui-calendar-calendar.styles.js +1 -1
  131. package/dist/components-ui-calendar-calendar.styles.js.map +1 -1
  132. package/dist/components-ui-calendar.cjs +1 -1
  133. package/dist/components-ui-calendar.js +2 -2
  134. package/dist/components-ui-card-card.cjs +1 -1
  135. package/dist/components-ui-card-card.cjs.map +1 -1
  136. package/dist/components-ui-card-card.js +10 -11
  137. package/dist/components-ui-card-card.js.map +1 -1
  138. package/dist/components-ui-chart-chart.cjs +1 -1
  139. package/dist/components-ui-chart-chart.js +1 -1
  140. package/dist/components-ui-chart.cjs +1 -1
  141. package/dist/components-ui-chart.js +1 -1
  142. package/dist/components-ui-checkbox-checkbox.cjs +1 -1
  143. package/dist/components-ui-checkbox-checkbox.cjs.map +1 -1
  144. package/dist/components-ui-checkbox-checkbox.js +11 -12
  145. package/dist/components-ui-checkbox-checkbox.js.map +1 -1
  146. package/dist/components-ui-combobox-combobox.cjs +5 -5
  147. package/dist/components-ui-combobox-combobox.cjs.map +1 -1
  148. package/dist/components-ui-combobox-combobox.js +1477 -1479
  149. package/dist/components-ui-combobox-combobox.js.map +1 -1
  150. package/dist/components-ui-dialog-dialog.cjs +1 -1
  151. package/dist/components-ui-dialog-dialog.cjs.map +1 -1
  152. package/dist/components-ui-dialog-dialog.js +4 -5
  153. package/dist/components-ui-dialog-dialog.js.map +1 -1
  154. package/dist/components-ui-drawer-drawer.cjs +2 -2
  155. package/dist/components-ui-drawer-drawer.cjs.map +1 -1
  156. package/dist/components-ui-drawer-drawer.js +16 -19
  157. package/dist/components-ui-drawer-drawer.js.map +1 -1
  158. package/dist/components-ui-dropdown-menu-dropdown-menu.cjs +2 -2
  159. package/dist/components-ui-dropdown-menu-dropdown-menu.cjs.map +1 -1
  160. package/dist/components-ui-dropdown-menu-dropdown-menu.js +45 -46
  161. package/dist/components-ui-dropdown-menu-dropdown-menu.js.map +1 -1
  162. package/dist/components-ui-icon-icon.cjs +1 -1
  163. package/dist/components-ui-icon-icon.cjs.map +1 -1
  164. package/dist/components-ui-icon-icon.js +54 -61733
  165. package/dist/components-ui-icon-icon.js.map +1 -1
  166. package/dist/components-ui-input-group-input-group.cjs +1 -1
  167. package/dist/components-ui-input-group-input-group.cjs.map +1 -1
  168. package/dist/components-ui-input-group-input-group.js +12 -13
  169. package/dist/components-ui-input-group-input-group.js.map +1 -1
  170. package/dist/components-ui-input-input.cjs +1 -1
  171. package/dist/components-ui-input-input.cjs.map +1 -1
  172. package/dist/components-ui-input-input.js +2 -3
  173. package/dist/components-ui-input-input.js.map +1 -1
  174. package/dist/components-ui-label-label.cjs +1 -1
  175. package/dist/components-ui-label-label.cjs.map +1 -1
  176. package/dist/components-ui-label-label.js +1 -1
  177. package/dist/components-ui-label-label.js.map +1 -1
  178. package/dist/components-ui-pagination-pagination.cjs +1 -1
  179. package/dist/components-ui-pagination-pagination.cjs.map +1 -1
  180. package/dist/components-ui-pagination-pagination.js +0 -1
  181. package/dist/components-ui-pagination-pagination.js.map +1 -1
  182. package/dist/components-ui-popover-popover.cjs +1 -1
  183. package/dist/components-ui-popover-popover.cjs.map +1 -1
  184. package/dist/components-ui-popover-popover.js +14 -19
  185. package/dist/components-ui-popover-popover.js.map +1 -1
  186. package/dist/components-ui-progress-progress.cjs +1 -1
  187. package/dist/components-ui-progress-progress.cjs.map +1 -1
  188. package/dist/components-ui-progress-progress.js +1 -1
  189. package/dist/components-ui-progress-progress.js.map +1 -1
  190. package/dist/components-ui-radio-group-radio-group.cjs +1 -1
  191. package/dist/components-ui-radio-group-radio-group.cjs.map +1 -1
  192. package/dist/components-ui-radio-group-radio-group.js +0 -1
  193. package/dist/components-ui-radio-group-radio-group.js.map +1 -1
  194. package/dist/components-ui-select-calendar-menu-select-calendar-menu.cjs +1 -1
  195. package/dist/components-ui-select-calendar-menu-select-calendar-menu.cjs.map +1 -1
  196. package/dist/components-ui-select-calendar-menu-select-calendar-menu.js +53 -47
  197. package/dist/components-ui-select-calendar-menu-select-calendar-menu.js.map +1 -1
  198. package/dist/components-ui-select-select.cjs +1 -1
  199. package/dist/components-ui-select-select.cjs.map +1 -1
  200. package/dist/components-ui-select-select.js +21 -22
  201. package/dist/components-ui-select-select.js.map +1 -1
  202. package/dist/components-ui-separator-separator.cjs +1 -1
  203. package/dist/components-ui-separator-separator.cjs.map +1 -1
  204. package/dist/components-ui-separator-separator.js +11 -12
  205. package/dist/components-ui-separator-separator.js.map +1 -1
  206. package/dist/components-ui-switch-switch.cjs +1 -1
  207. package/dist/components-ui-switch-switch.cjs.map +1 -1
  208. package/dist/components-ui-switch-switch.js +6 -7
  209. package/dist/components-ui-switch-switch.js.map +1 -1
  210. package/dist/components-ui-table-table.cjs +1 -1
  211. package/dist/components-ui-table-table.cjs.map +1 -1
  212. package/dist/components-ui-table-table.js +0 -1
  213. package/dist/components-ui-table-table.js.map +1 -1
  214. package/dist/components-ui-tabs-tabs.cjs +2 -2
  215. package/dist/components-ui-tabs-tabs.cjs.map +1 -1
  216. package/dist/components-ui-tabs-tabs.js +16 -16
  217. package/dist/components-ui-tabs-tabs.js.map +1 -1
  218. package/dist/components-ui-tooltip-tooltip.cjs +1 -1
  219. package/dist/components-ui-tooltip-tooltip.cjs.map +1 -1
  220. package/dist/components-ui-tooltip-tooltip.js +9 -10
  221. package/dist/components-ui-tooltip-tooltip.js.map +1 -1
  222. package/dist/components-ui-typography-typography.cjs +1 -1
  223. package/dist/components-ui-typography-typography.cjs.map +1 -1
  224. package/dist/components-ui-typography-typography.js +7 -7
  225. package/dist/components-ui-typography-typography.js.map +1 -1
  226. package/dist/index.cjs +1 -1
  227. package/dist/index.js +2 -2
  228. package/package.json +1 -1
  229. package/dist/calendar-DReGV_22.cjs +0 -2
  230. package/dist/chart-C69jBlXa.cjs +0 -63
@@ -1,26 +1,25 @@
1
- import { jsx as G, Fragment as Pn, jsxs as ft } from "react/jsx-runtime";
1
+ import { jsx as G, Fragment as Fn, jsxs as dt } from "react/jsx-runtime";
2
2
  import { cn as Y } from "./lib-utils.js";
3
- import * as ve from "react";
4
- import f, { createContext as Fn, useContext as Bn, useCallback as U, useRef as Te, useLayoutEffect as In, useState as Ue, useEffect as Hn, useMemo as xe } from "react";
5
- import { Button as Nt } from "./components-ui-button-button.js";
6
- import { buttonVariants as ht } from "./components-ui-button-button.styles.js";
3
+ import f, { createContext as St, useContext as Bn, useCallback as U, useRef as ve, useLayoutEffect as In, useState as xe, useEffect as Nt, useMemo as Te, use as Hn } from "react";
4
+ import { Button as Yt } from "./components-ui-button-button.js";
5
+ import { buttonVariants as ft } from "./components-ui-button-button.styles.js";
7
6
  import { Card as An, CardContent as qn, CardFooter as jn } from "./components-ui-card-card.js";
8
7
  import { Icon as je } from "./components-ui-icon-icon.js";
9
8
  import { Typography as Rn } from "./components-ui-typography-typography.js";
10
9
  import { getTypographyClassName as $n } from "./components-ui-typography-typography.styles.js";
11
- import { calendarHiddenClassName as Gn, calendarDisabledClassName as zn, calendarOutsideClassName as Vn, calendarTodayClassName as Qn, calendarRangeEndClassName as Xn, calendarRangeMiddleClassName as Un, calendarRangeStartClassName as Kn, calendarDayVariants as Zn, calendarWeekNumberVariants as Jn, calendarWeekNumberHeaderClassName as Ln, calendarWeekVariants as er, calendarWeekdayVariants as tr, calendarWeekdaysVariants as nr, calendarCaptionLabelVariants as rr, calendarDropdownClassName as or, calendarDropdownRootClassName as ar, calendarDropdownsVariants as sr, calendarMonthCaptionClassName as ir, calendarNavButtonClassName as mt, calendarNavClassName as cr, calendarMonthClassName as ur, calendarMonthsClassName as lr, calendarRootVariants as dr, calendarContentPaddingVariants as fr, calendarFooterVariants as hr, calendarWrapperClassName as mr, calendarTypographyVariantBySize as yr, calendarDayTextVariants as gr, calendarRangeLastClickedClassName as br, calendarTodayButtonIndicatorClassName as wr, calendarDayButtonClassName as pr, calendarWeekNumberCellClassName as Mr, calendarIconClassName as Re } from "./components-ui-calendar-calendar.styles.js";
12
- const Yt = 6048e5, kr = 864e5, yt = /* @__PURE__ */ Symbol.for("constructDateFrom");
10
+ import { calendarHiddenClassName as Gn, calendarDisabledClassName as zn, calendarOutsideClassName as Vn, calendarTodayClassName as Qn, calendarRangeEndClassName as Xn, calendarRangeMiddleClassName as Un, calendarRangeStartClassName as Kn, calendarDayVariants as Zn, calendarWeekNumberVariants as Jn, calendarWeekNumberHeaderClassName as Ln, calendarWeekVariants as er, calendarWeekdayVariants as tr, calendarWeekdaysVariants as nr, calendarCaptionLabelVariants as rr, calendarDropdownClassName as or, calendarDropdownRootClassName as ar, calendarDropdownsVariants as sr, calendarMonthCaptionClassName as ir, calendarNavButtonClassName as ht, calendarNavClassName as cr, calendarMonthClassName as ur, calendarMonthsClassName as lr, calendarRootVariants as dr, calendarContentPaddingVariants as fr, calendarFooterVariants as hr, calendarWrapperClassName as mr, calendarTypographyVariantBySize as yr, calendarDayTextVariants as gr, calendarRangeLastClickedClassName as br, calendarTodayButtonIndicatorClassName as wr, calendarDayButtonClassName as pr, calendarWeekNumberCellClassName as Mr, calendarIconClassName as Re } from "./components-ui-calendar-calendar.styles.js";
11
+ const Tt = 6048e5, kr = 864e5, mt = /* @__PURE__ */ Symbol.for("constructDateFrom");
13
12
  function A(e, t) {
14
- return typeof e == "function" ? e(t) : e && typeof e == "object" && yt in e ? e[yt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
13
+ return typeof e == "function" ? e(t) : e && typeof e == "object" && mt in e ? e[mt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
15
14
  }
16
15
  function B(e, t) {
17
16
  return A(t || e, e);
18
17
  }
19
- function Ze(e, t, n) {
18
+ function Ke(e, t, n) {
20
19
  const r = B(e, n?.in);
21
20
  return isNaN(t) ? A(e, NaN) : (t && r.setDate(r.getDate() + t), r);
22
21
  }
23
- function Tt(e, t, n) {
22
+ function xt(e, t, n) {
24
23
  const r = B(e, n?.in);
25
24
  if (isNaN(t)) return A(e, NaN);
26
25
  if (!t)
@@ -45,7 +44,7 @@ function me(e, t) {
45
44
  function Oe(e, t) {
46
45
  return me(e, { ...t, weekStartsOn: 1 });
47
46
  }
48
- function xt(e, t) {
47
+ function _t(e, t) {
49
48
  const n = B(e, t?.in), r = n.getFullYear(), o = A(n, 0);
50
49
  o.setFullYear(r + 1, 0, 4), o.setHours(0, 0, 0, 0);
51
50
  const s = Oe(o), i = A(n, 0);
@@ -53,7 +52,7 @@ function xt(e, t) {
53
52
  const a = Oe(i);
54
53
  return n.getTime() >= s.getTime() ? r + 1 : n.getTime() >= a.getTime() ? r : r - 1;
55
54
  }
56
- function gt(e) {
55
+ function yt(e) {
57
56
  const t = B(e), n = new Date(
58
57
  Date.UTC(
59
58
  t.getFullYear(),
@@ -78,23 +77,23 @@ function ye(e, t) {
78
77
  const n = B(e, t?.in);
79
78
  return n.setHours(0, 0, 0, 0), n;
80
79
  }
81
- function Je(e, t, n) {
80
+ function Ze(e, t, n) {
82
81
  const [r, o] = ge(
83
82
  n?.in,
84
83
  e,
85
84
  t
86
- ), s = ye(r), i = ye(o), a = +s - gt(s), c = +i - gt(i);
85
+ ), s = ye(r), i = ye(o), a = +s - yt(s), c = +i - yt(i);
87
86
  return Math.round((a - c) / kr);
88
87
  }
89
88
  function vr(e, t) {
90
- const n = xt(e, t), r = A(e, 0);
89
+ const n = _t(e, t), r = A(e, 0);
91
90
  return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), Oe(r);
92
91
  }
93
92
  function Or(e, t, n) {
94
- return Ze(e, t * 7, n);
93
+ return Ke(e, t * 7, n);
95
94
  }
96
95
  function Wr(e, t, n) {
97
- return Tt(e, t * 12, n);
96
+ return xt(e, t * 12, n);
98
97
  }
99
98
  function Cr(e, t) {
100
99
  let n, r = t?.in;
@@ -120,11 +119,11 @@ function Nr(e, t, n) {
120
119
  );
121
120
  return +ye(r) == +ye(o);
122
121
  }
123
- function _t(e) {
122
+ function Pt(e) {
124
123
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
125
124
  }
126
125
  function Yr(e) {
127
- return !(!_t(e) && typeof e != "number" || isNaN(+B(e)));
126
+ return !(!Pt(e) && typeof e != "number" || isNaN(+B(e)));
128
127
  }
129
128
  function Et(e, t, n) {
130
129
  const [r, o] = ge(
@@ -138,12 +137,12 @@ function Tr(e, t) {
138
137
  const n = B(e, t?.in), r = n.getMonth();
139
138
  return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
140
139
  }
141
- function Pt(e, t) {
140
+ function Ft(e, t) {
142
141
  const [n, r] = ge(e, t.start, t.end);
143
142
  return { start: n, end: r };
144
143
  }
145
144
  function xr(e, t) {
146
- const { start: n, end: r } = Pt(t?.in, e);
145
+ const { start: n, end: r } = Ft(t?.in, e);
147
146
  let o = +n > +r;
148
147
  const s = o ? +n : +r, i = o ? r : n;
149
148
  i.setHours(0, 0, 0, 0), i.setDate(1);
@@ -157,16 +156,16 @@ function _r(e, t) {
157
156
  const n = B(e, t?.in);
158
157
  return n.setDate(1), n.setHours(0, 0, 0, 0), n;
159
158
  }
160
- function Er(e, t) {
159
+ function Pr(e, t) {
161
160
  const n = B(e, t?.in), r = n.getFullYear();
162
161
  return n.setFullYear(r + 1, 0, 0), n.setHours(23, 59, 59, 999), n;
163
162
  }
164
- function Ft(e, t) {
163
+ function Bt(e, t) {
165
164
  const n = B(e, t?.in);
166
165
  return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
167
166
  }
168
- function Pr(e, t) {
169
- const { start: n, end: r } = Pt(t?.in, e);
167
+ function Er(e, t) {
168
+ const { start: n, end: r } = Ft(t?.in, e);
170
169
  let o = +n > +r;
171
170
  const s = o ? +n : +r, i = o ? r : n;
172
171
  i.setHours(0, 0, 0, 0), i.setMonth(0, 1);
@@ -176,12 +175,12 @@ function Pr(e, t) {
176
175
  c.push(A(n, i)), i.setFullYear(i.getFullYear() + a);
177
176
  return o ? c.reverse() : c;
178
177
  }
179
- function Bt(e, t) {
178
+ function It(e, t) {
180
179
  const n = We(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, o = B(e, t?.in), s = o.getDay(), i = (s < r ? -7 : 0) + 6 - (s - r);
181
180
  return o.setDate(o.getDate() + i), o.setHours(23, 59, 59, 999), o;
182
181
  }
183
182
  function Fr(e, t) {
184
- return Bt(e, { ...t, weekStartsOn: 1 });
183
+ return It(e, { ...t, weekStartsOn: 1 });
185
184
  }
186
185
  const Br = {
187
186
  lessThanXSeconds: {
@@ -616,13 +615,13 @@ const to = /^(\d+)(th|st|nd|rd)?/i, no = /\d+/i, ro = {
616
615
  };
617
616
  function yo(e, t) {
618
617
  const n = B(e, t?.in);
619
- return Je(n, Ft(n)) + 1;
618
+ return Ze(n, Bt(n)) + 1;
620
619
  }
621
- function Le(e, t) {
620
+ function Je(e, t) {
622
621
  const n = B(e, t?.in), r = +Oe(n) - +vr(n);
623
- return Math.round(r / Yt) + 1;
622
+ return Math.round(r / Tt) + 1;
624
623
  }
625
- function It(e, t) {
624
+ function Ht(e, t) {
626
625
  const n = B(e, t?.in), r = n.getFullYear(), o = We(), s = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, i = A(t?.in || e, 0);
627
626
  i.setFullYear(r + 1, 0, s), i.setHours(0, 0, 0, 0);
628
627
  const a = me(i, t), c = A(t?.in || e, 0);
@@ -631,14 +630,14 @@ function It(e, t) {
631
630
  return +n >= +a ? r + 1 : +n >= +u ? r : r - 1;
632
631
  }
633
632
  function go(e, t) {
634
- const n = We(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, o = It(e, t), s = A(t?.in || e, 0);
633
+ const n = We(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, o = Ht(e, t), s = A(t?.in || e, 0);
635
634
  return s.setFullYear(o, 0, r), s.setHours(0, 0, 0, 0), me(s, t);
636
635
  }
637
- function et(e, t) {
636
+ function Le(e, t) {
638
637
  const n = B(e, t?.in), r = +me(n, t) - +go(n, t);
639
- return Math.round(r / Yt) + 1;
638
+ return Math.round(r / Tt) + 1;
640
639
  }
641
- function P(e, t) {
640
+ function E(e, t) {
642
641
  const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
643
642
  return n + r;
644
643
  }
@@ -646,16 +645,16 @@ const ie = {
646
645
  // Year
647
646
  y(e, t) {
648
647
  const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
649
- return P(t === "yy" ? r % 100 : r, t.length);
648
+ return E(t === "yy" ? r % 100 : r, t.length);
650
649
  },
651
650
  // Month
652
651
  M(e, t) {
653
652
  const n = e.getMonth();
654
- return t === "M" ? String(n + 1) : P(n + 1, 2);
653
+ return t === "M" ? String(n + 1) : E(n + 1, 2);
655
654
  },
656
655
  // Day of the month
657
656
  d(e, t) {
658
- return P(e.getDate(), t.length);
657
+ return E(e.getDate(), t.length);
659
658
  },
660
659
  // AM or PM
661
660
  a(e, t) {
@@ -674,26 +673,26 @@ const ie = {
674
673
  },
675
674
  // Hour [1-12]
676
675
  h(e, t) {
677
- return P(e.getHours() % 12 || 12, t.length);
676
+ return E(e.getHours() % 12 || 12, t.length);
678
677
  },
679
678
  // Hour [0-23]
680
679
  H(e, t) {
681
- return P(e.getHours(), t.length);
680
+ return E(e.getHours(), t.length);
682
681
  },
683
682
  // Minute
684
683
  m(e, t) {
685
- return P(e.getMinutes(), t.length);
684
+ return E(e.getMinutes(), t.length);
686
685
  },
687
686
  // Second
688
687
  s(e, t) {
689
- return P(e.getSeconds(), t.length);
688
+ return E(e.getSeconds(), t.length);
690
689
  },
691
690
  // Fraction of second
692
691
  S(e, t) {
693
692
  const n = t.length, r = e.getMilliseconds(), o = Math.trunc(
694
693
  r * Math.pow(10, n - 3)
695
694
  );
696
- return P(o, t.length);
695
+ return E(o, t.length);
697
696
  }
698
697
  }, de = {
699
698
  midnight: "midnight",
@@ -702,7 +701,7 @@ const ie = {
702
701
  afternoon: "afternoon",
703
702
  evening: "evening",
704
703
  night: "night"
705
- }, bt = {
704
+ }, gt = {
706
705
  // Era
707
706
  G: function(e, t, n) {
708
707
  const r = e.getFullYear() > 0 ? 1 : 0;
@@ -729,17 +728,17 @@ const ie = {
729
728
  },
730
729
  // Local week-numbering year
731
730
  Y: function(e, t, n, r) {
732
- const o = It(e, r), s = o > 0 ? o : 1 - o;
731
+ const o = Ht(e, r), s = o > 0 ? o : 1 - o;
733
732
  if (t === "YY") {
734
733
  const i = s % 100;
735
- return P(i, 2);
734
+ return E(i, 2);
736
735
  }
737
- return t === "Yo" ? n.ordinalNumber(s, { unit: "year" }) : P(s, t.length);
736
+ return t === "Yo" ? n.ordinalNumber(s, { unit: "year" }) : E(s, t.length);
738
737
  },
739
738
  // ISO week-numbering year
740
739
  R: function(e, t) {
741
- const n = xt(e);
742
- return P(n, t.length);
740
+ const n = _t(e);
741
+ return E(n, t.length);
743
742
  },
744
743
  // Extended year. This is a single number designating the year of this calendar system.
745
744
  // The main difference between `y` and `u` localizers are B.C. years:
@@ -752,7 +751,7 @@ const ie = {
752
751
  // while `uu` pads single digit years to 2 characters and returns other years unchanged.
753
752
  u: function(e, t) {
754
753
  const n = e.getFullYear();
755
- return P(n, t.length);
754
+ return E(n, t.length);
756
755
  },
757
756
  // Quarter
758
757
  Q: function(e, t, n) {
@@ -763,7 +762,7 @@ const ie = {
763
762
  return String(r);
764
763
  // 01, 02, 03, 04
765
764
  case "QQ":
766
- return P(r, 2);
765
+ return E(r, 2);
767
766
  // 1st, 2nd, 3rd, 4th
768
767
  case "Qo":
769
768
  return n.ordinalNumber(r, { unit: "quarter" });
@@ -795,7 +794,7 @@ const ie = {
795
794
  return String(r);
796
795
  // 01, 02, 03, 04
797
796
  case "qq":
798
- return P(r, 2);
797
+ return E(r, 2);
799
798
  // 1st, 2nd, 3rd, 4th
800
799
  case "qo":
801
800
  return n.ordinalNumber(r, { unit: "quarter" });
@@ -853,7 +852,7 @@ const ie = {
853
852
  return String(r + 1);
854
853
  // 01, 02, ..., 12
855
854
  case "LL":
856
- return P(r + 1, 2);
855
+ return E(r + 1, 2);
857
856
  // 1st, 2nd, ..., 12th
858
857
  case "Lo":
859
858
  return n.ordinalNumber(r + 1, { unit: "month" });
@@ -875,13 +874,13 @@ const ie = {
875
874
  },
876
875
  // Local week of year
877
876
  w: function(e, t, n, r) {
878
- const o = et(e, r);
879
- return t === "wo" ? n.ordinalNumber(o, { unit: "week" }) : P(o, t.length);
877
+ const o = Le(e, r);
878
+ return t === "wo" ? n.ordinalNumber(o, { unit: "week" }) : E(o, t.length);
880
879
  },
881
880
  // ISO week of year
882
881
  I: function(e, t, n) {
883
- const r = Le(e);
884
- return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : P(r, t.length);
882
+ const r = Je(e);
883
+ return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : E(r, t.length);
885
884
  },
886
885
  // Day of the month
887
886
  d: function(e, t, n) {
@@ -890,7 +889,7 @@ const ie = {
890
889
  // Day of year
891
890
  D: function(e, t, n) {
892
891
  const r = yo(e);
893
- return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : P(r, t.length);
892
+ return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : E(r, t.length);
894
893
  },
895
894
  // Day of week
896
895
  E: function(e, t, n) {
@@ -932,7 +931,7 @@ const ie = {
932
931
  return String(s);
933
932
  // Padded numerical value
934
933
  case "ee":
935
- return P(s, 2);
934
+ return E(s, 2);
936
935
  // 1st, 2nd, ..., 7th
937
936
  case "eo":
938
937
  return n.ordinalNumber(s, { unit: "day" });
@@ -969,7 +968,7 @@ const ie = {
969
968
  return String(s);
970
969
  // Padded numerical value
971
970
  case "cc":
972
- return P(s, t.length);
971
+ return E(s, t.length);
973
972
  // 1st, 2nd, ..., 7th
974
973
  case "co":
975
974
  return n.ordinalNumber(s, { unit: "day" });
@@ -1006,7 +1005,7 @@ const ie = {
1006
1005
  return String(o);
1007
1006
  // 02
1008
1007
  case "ii":
1009
- return P(o, t.length);
1008
+ return E(o, t.length);
1010
1009
  // 2nd
1011
1010
  case "io":
1012
1011
  return n.ordinalNumber(o, { unit: "day" });
@@ -1129,12 +1128,12 @@ const ie = {
1129
1128
  // Hour [0-11]
1130
1129
  K: function(e, t, n) {
1131
1130
  const r = e.getHours() % 12;
1132
- return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : P(r, t.length);
1131
+ return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : E(r, t.length);
1133
1132
  },
1134
1133
  // Hour [1-24]
1135
1134
  k: function(e, t, n) {
1136
1135
  let r = e.getHours();
1137
- return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : P(r, t.length);
1136
+ return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : E(r, t.length);
1138
1137
  },
1139
1138
  // Minute
1140
1139
  m: function(e, t, n) {
@@ -1156,7 +1155,7 @@ const ie = {
1156
1155
  switch (t) {
1157
1156
  // Hours and optional minutes
1158
1157
  case "X":
1159
- return pt(r);
1158
+ return wt(r);
1160
1159
  // Hours, minutes and optional seconds without `:` delimiter
1161
1160
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1162
1161
  // so this token always has the same output as `XX`
@@ -1174,7 +1173,7 @@ const ie = {
1174
1173
  switch (t) {
1175
1174
  // Hours and optional minutes
1176
1175
  case "x":
1177
- return pt(r);
1176
+ return wt(r);
1178
1177
  // Hours, minutes and optional seconds without `:` delimiter
1179
1178
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1180
1179
  // so this token always has the same output as `xx`
@@ -1194,7 +1193,7 @@ const ie = {
1194
1193
  case "O":
1195
1194
  case "OO":
1196
1195
  case "OOO":
1197
- return "GMT" + wt(r, ":");
1196
+ return "GMT" + bt(r, ":");
1198
1197
  default:
1199
1198
  return "GMT" + ue(r, ":");
1200
1199
  }
@@ -1207,7 +1206,7 @@ const ie = {
1207
1206
  case "z":
1208
1207
  case "zz":
1209
1208
  case "zzz":
1210
- return "GMT" + wt(r, ":");
1209
+ return "GMT" + bt(r, ":");
1211
1210
  default:
1212
1211
  return "GMT" + ue(r, ":");
1213
1212
  }
@@ -1215,25 +1214,25 @@ const ie = {
1215
1214
  // Seconds timestamp
1216
1215
  t: function(e, t, n) {
1217
1216
  const r = Math.trunc(+e / 1e3);
1218
- return P(r, t.length);
1217
+ return E(r, t.length);
1219
1218
  },
1220
1219
  // Milliseconds timestamp
1221
1220
  T: function(e, t, n) {
1222
- return P(+e, t.length);
1221
+ return E(+e, t.length);
1223
1222
  }
1224
1223
  };
1225
- function wt(e, t = "") {
1224
+ function bt(e, t = "") {
1226
1225
  const n = e > 0 ? "-" : "+", r = Math.abs(e), o = Math.trunc(r / 60), s = r % 60;
1227
- return s === 0 ? n + String(o) : n + String(o) + t + P(s, 2);
1226
+ return s === 0 ? n + String(o) : n + String(o) + t + E(s, 2);
1228
1227
  }
1229
- function pt(e, t) {
1230
- return e % 60 === 0 ? (e > 0 ? "-" : "+") + P(Math.abs(e) / 60, 2) : ue(e, t);
1228
+ function wt(e, t) {
1229
+ return e % 60 === 0 ? (e > 0 ? "-" : "+") + E(Math.abs(e) / 60, 2) : ue(e, t);
1231
1230
  }
1232
1231
  function ue(e, t = "") {
1233
- const n = e > 0 ? "-" : "+", r = Math.abs(e), o = P(Math.trunc(r / 60), 2), s = P(r % 60, 2);
1232
+ const n = e > 0 ? "-" : "+", r = Math.abs(e), o = E(Math.trunc(r / 60), 2), s = E(r % 60, 2);
1234
1233
  return n + o + t + s;
1235
1234
  }
1236
- const Mt = (e, t) => {
1235
+ const pt = (e, t) => {
1237
1236
  switch (e) {
1238
1237
  case "P":
1239
1238
  return t.date({ width: "short" });
@@ -1244,7 +1243,7 @@ const Mt = (e, t) => {
1244
1243
  default:
1245
1244
  return t.date({ width: "full" });
1246
1245
  }
1247
- }, Ht = (e, t) => {
1246
+ }, At = (e, t) => {
1248
1247
  switch (e) {
1249
1248
  case "p":
1250
1249
  return t.time({ width: "short" });
@@ -1258,7 +1257,7 @@ const Mt = (e, t) => {
1258
1257
  }, bo = (e, t) => {
1259
1258
  const n = e.match(/(P+)(p+)?/) || [], r = n[1], o = n[2];
1260
1259
  if (!o)
1261
- return Mt(e, t);
1260
+ return pt(e, t);
1262
1261
  let s;
1263
1262
  switch (r) {
1264
1263
  case "P":
@@ -1274,9 +1273,9 @@ const Mt = (e, t) => {
1274
1273
  s = t.dateTime({ width: "full" });
1275
1274
  break;
1276
1275
  }
1277
- return s.replace("{{date}}", Mt(r, t)).replace("{{time}}", Ht(o, t));
1276
+ return s.replace("{{date}}", pt(r, t)).replace("{{time}}", At(o, t));
1278
1277
  }, wo = {
1279
- p: Ht,
1278
+ p: At,
1280
1279
  P: bo
1281
1280
  }, po = /^D+$/, Mo = /^Y+$/, ko = ["D", "DD", "YY", "YYYY"];
1282
1281
  function Do(e) {
@@ -1311,7 +1310,7 @@ function ke(e, t, n) {
1311
1310
  const l = d[0];
1312
1311
  if (l === "'")
1313
1312
  return { isToken: !1, value: xo(d) };
1314
- if (bt[l])
1313
+ if (gt[l])
1315
1314
  return { isToken: !0, value: d };
1316
1315
  if (l.match(To))
1317
1316
  throw new RangeError(
@@ -1329,7 +1328,7 @@ function ke(e, t, n) {
1329
1328
  if (!d.isToken) return d.value;
1330
1329
  const l = d.value;
1331
1330
  (!n?.useAdditionalWeekYearTokens && vo(l) || !n?.useAdditionalDayOfYearTokens && Do(l)) && Oo(l, t, String(e));
1332
- const m = bt[l[0]];
1331
+ const m = gt[l[0]];
1333
1332
  return m(a, l, o.localize, u);
1334
1333
  }).join("");
1335
1334
  }
@@ -1341,10 +1340,10 @@ function _o(e, t) {
1341
1340
  const n = B(e, t?.in), r = n.getFullYear(), o = n.getMonth(), s = A(n, 0);
1342
1341
  return s.setFullYear(r, o + 1, 0), s.setHours(0, 0, 0, 0), s.getDate();
1343
1342
  }
1344
- function Eo(e, t) {
1343
+ function Po(e, t) {
1345
1344
  return B(e, t?.in).getMonth();
1346
1345
  }
1347
- function Po(e, t) {
1346
+ function Eo(e, t) {
1348
1347
  return B(e, t?.in).getFullYear();
1349
1348
  }
1350
1349
  function Fo(e, t) {
@@ -1394,22 +1393,22 @@ function le(e, t) {
1394
1393
  timeZone: e,
1395
1394
  timeZoneName: "longOffset"
1396
1395
  }).format))(t).split("GMT")[1];
1397
- return r in De ? De[r] : kt(r, r.split(":"));
1396
+ return r in De ? De[r] : Mt(r, r.split(":"));
1398
1397
  } catch {
1399
1398
  if (e in De) return De[e];
1400
1399
  const n = e?.match(Ro);
1401
- return n ? kt(e, n.slice(1)) : NaN;
1400
+ return n ? Mt(e, n.slice(1)) : NaN;
1402
1401
  }
1403
1402
  }
1404
1403
  const Ro = /([+-]\d\d):?(\d\d)?/;
1405
- function kt(e, t) {
1404
+ function Mt(e, t) {
1406
1405
  const n = +(t[0] || 0), r = +(t[1] || 0), o = +(t[2] || 0) / 60;
1407
1406
  return De[e] = n * 60 + r > 0 ? n * 60 + r + o : n * 60 - r - o;
1408
1407
  }
1409
1408
  class re extends Date {
1410
1409
  //#region static
1411
1410
  constructor(...t) {
1412
- super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(le(this.timeZone, this)) ? this.setTime(NaN) : t.length ? typeof t[0] == "number" && (t.length === 1 || t.length === 2 && typeof t[1] != "number") ? this.setTime(t[0]) : typeof t[0] == "string" ? this.setTime(+new Date(t[0])) : t[0] instanceof Date ? this.setTime(+t[0]) : (this.setTime(+new Date(...t)), At(this), Ke(this)) : this.setTime(Date.now());
1411
+ super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(le(this.timeZone, this)) ? this.setTime(NaN) : t.length ? typeof t[0] == "number" && (t.length === 1 || t.length === 2 && typeof t[1] != "number") ? this.setTime(t[0]) : typeof t[0] == "string" ? this.setTime(+new Date(t[0])) : t[0] instanceof Date ? this.setTime(+t[0]) : (this.setTime(+new Date(...t)), qt(this), Ue(this)) : this.setTime(Date.now());
1413
1412
  }
1414
1413
  static tz(t, ...n) {
1415
1414
  return n.length ? new re(...n, t) : new re(Date.now(), t);
@@ -1426,7 +1425,7 @@ class re extends Date {
1426
1425
  //#endregion
1427
1426
  //#region time
1428
1427
  setTime(t) {
1429
- return Date.prototype.setTime.apply(this, arguments), Ke(this), +this;
1428
+ return Date.prototype.setTime.apply(this, arguments), Ue(this), +this;
1430
1429
  }
1431
1430
  //#endregion
1432
1431
  //#region date-fns integration
@@ -1435,25 +1434,25 @@ class re extends Date {
1435
1434
  }
1436
1435
  //#endregion
1437
1436
  }
1438
- const Dt = /^(get|set)(?!UTC)/;
1437
+ const kt = /^(get|set)(?!UTC)/;
1439
1438
  Object.getOwnPropertyNames(Date.prototype).forEach((e) => {
1440
- if (!Dt.test(e)) return;
1441
- const t = e.replace(Dt, "$1UTC");
1439
+ if (!kt.test(e)) return;
1440
+ const t = e.replace(kt, "$1UTC");
1442
1441
  re.prototype[t] && (e.startsWith("get") ? re.prototype[e] = function() {
1443
1442
  return this.internal[t]();
1444
1443
  } : (re.prototype[e] = function() {
1445
1444
  return Date.prototype[t].apply(this.internal, arguments), $o(this), +this;
1446
1445
  }, re.prototype[t] = function() {
1447
- return Date.prototype[t].apply(this, arguments), Ke(this), +this;
1446
+ return Date.prototype[t].apply(this, arguments), Ue(this), +this;
1448
1447
  }));
1449
1448
  });
1450
- function Ke(e) {
1449
+ function Ue(e) {
1451
1450
  e.internal.setTime(+e), e.internal.setUTCSeconds(e.internal.getUTCSeconds() - Math.round(-le(e.timeZone, e) * 60));
1452
1451
  }
1453
1452
  function $o(e) {
1454
- Date.prototype.setFullYear.call(e, e.internal.getUTCFullYear(), e.internal.getUTCMonth(), e.internal.getUTCDate()), Date.prototype.setHours.call(e, e.internal.getUTCHours(), e.internal.getUTCMinutes(), e.internal.getUTCSeconds(), e.internal.getUTCMilliseconds()), At(e);
1453
+ Date.prototype.setFullYear.call(e, e.internal.getUTCFullYear(), e.internal.getUTCMonth(), e.internal.getUTCDate()), Date.prototype.setHours.call(e, e.internal.getUTCHours(), e.internal.getUTCMinutes(), e.internal.getUTCSeconds(), e.internal.getUTCMilliseconds()), qt(e);
1455
1454
  }
1456
- function At(e) {
1455
+ function qt(e) {
1457
1456
  const t = le(e.timeZone, e), n = t > 0 ? Math.floor(t) : Math.ceil(t), r = /* @__PURE__ */ new Date(+e);
1458
1457
  r.setUTCHours(r.getUTCHours() - 1);
1459
1458
  const o = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset(), s = -(/* @__PURE__ */ new Date(+r)).getTimezoneOffset(), i = o - s, a = Date.prototype.getHours.apply(e) !== e.internal.getUTCHours();
@@ -1527,20 +1526,20 @@ class q extends re {
1527
1526
  }
1528
1527
  //#endregion
1529
1528
  }
1530
- const vt = 5, Go = 4;
1529
+ const Dt = 5, Go = 4;
1531
1530
  function zo(e, t) {
1532
- const n = t.startOfMonth(e), r = n.getDay() > 0 ? n.getDay() : 7, o = t.addDays(e, -r + 1), s = t.addDays(o, vt * 7 - 1);
1533
- return t.getMonth(e) === t.getMonth(s) ? vt : Go;
1531
+ const n = t.startOfMonth(e), r = n.getDay() > 0 ? n.getDay() : 7, o = t.addDays(e, -r + 1), s = t.addDays(o, Dt * 7 - 1);
1532
+ return t.getMonth(e) === t.getMonth(s) ? Dt : Go;
1534
1533
  }
1535
- function qt(e, t) {
1534
+ function jt(e, t) {
1536
1535
  const n = t.startOfMonth(e), r = n.getDay();
1537
1536
  return r === 1 ? n : r === 0 ? t.addDays(n, -6) : t.addDays(n, -1 * (r - 1));
1538
1537
  }
1539
1538
  function Vo(e, t) {
1540
- const n = qt(e, t), r = zo(e, t);
1539
+ const n = jt(e, t), r = zo(e, t);
1541
1540
  return t.addDays(n, r * 7 - 1);
1542
1541
  }
1543
- const jt = {
1542
+ const Rt = {
1544
1543
  ...he,
1545
1544
  labels: {
1546
1545
  labelDayButton: (e, t, n, r) => {
@@ -1580,18 +1579,18 @@ class z {
1580
1579
  * @param overrides Custom overrides for the date library functions.
1581
1580
  */
1582
1581
  constructor(t, n) {
1583
- this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? q.tz(this.options.timeZone) : new this.Date(), this.newDate = (r, o, s) => this.overrides?.newDate ? this.overrides.newDate(r, o, s) : this.options.timeZone ? new q(r, o, s, this.options.timeZone) : new Date(r, o, s), this.addDays = (r, o) => this.overrides?.addDays ? this.overrides.addDays(r, o) : Ze(r, o), this.addMonths = (r, o) => this.overrides?.addMonths ? this.overrides.addMonths(r, o) : Tt(r, o), this.addWeeks = (r, o) => this.overrides?.addWeeks ? this.overrides.addWeeks(r, o) : Or(r, o), this.addYears = (r, o) => this.overrides?.addYears ? this.overrides.addYears(r, o) : Wr(r, o), this.differenceInCalendarDays = (r, o) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(r, o) : Je(r, o), this.differenceInCalendarMonths = (r, o) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(r, o) : Et(r, o), this.eachMonthOfInterval = (r) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(r) : xr(r), this.eachYearOfInterval = (r) => {
1584
- const o = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(r) : Pr(r), s = new Set(o.map((a) => this.getYear(a)));
1582
+ this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? q.tz(this.options.timeZone) : new this.Date(), this.newDate = (r, o, s) => this.overrides?.newDate ? this.overrides.newDate(r, o, s) : this.options.timeZone ? new q(r, o, s, this.options.timeZone) : new Date(r, o, s), this.addDays = (r, o) => this.overrides?.addDays ? this.overrides.addDays(r, o) : Ke(r, o), this.addMonths = (r, o) => this.overrides?.addMonths ? this.overrides.addMonths(r, o) : xt(r, o), this.addWeeks = (r, o) => this.overrides?.addWeeks ? this.overrides.addWeeks(r, o) : Or(r, o), this.addYears = (r, o) => this.overrides?.addYears ? this.overrides.addYears(r, o) : Wr(r, o), this.differenceInCalendarDays = (r, o) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(r, o) : Ze(r, o), this.differenceInCalendarMonths = (r, o) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(r, o) : Et(r, o), this.eachMonthOfInterval = (r) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(r) : xr(r), this.eachYearOfInterval = (r) => {
1583
+ const o = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(r) : Er(r), s = new Set(o.map((a) => this.getYear(a)));
1585
1584
  if (s.size === o.length)
1586
1585
  return o;
1587
1586
  const i = [];
1588
1587
  return s.forEach((a) => {
1589
1588
  i.push(new Date(a, 0, 1));
1590
1589
  }), i;
1591
- }, this.endOfBroadcastWeek = (r) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(r) : Vo(r, this), this.endOfISOWeek = (r) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(r) : Fr(r), this.endOfMonth = (r) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(r) : Tr(r), this.endOfWeek = (r, o) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(r, o) : Bt(r, this.options), this.endOfYear = (r) => this.overrides?.endOfYear ? this.overrides.endOfYear(r) : Er(r), this.format = (r, o, s) => {
1590
+ }, this.endOfBroadcastWeek = (r) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(r) : Vo(r, this), this.endOfISOWeek = (r) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(r) : Fr(r), this.endOfMonth = (r) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(r) : Tr(r), this.endOfWeek = (r, o) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(r, o) : It(r, this.options), this.endOfYear = (r) => this.overrides?.endOfYear ? this.overrides.endOfYear(r) : Pr(r), this.format = (r, o, s) => {
1592
1591
  const i = this.overrides?.format ? this.overrides.format(r, o, this.options) : ke(r, o, this.options);
1593
1592
  return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(i) : i;
1594
- }, this.getISOWeek = (r) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(r) : Le(r), this.getMonth = (r, o) => this.overrides?.getMonth ? this.overrides.getMonth(r, this.options) : Eo(r, this.options), this.getYear = (r, o) => this.overrides?.getYear ? this.overrides.getYear(r, this.options) : Po(r, this.options), this.getWeek = (r, o) => this.overrides?.getWeek ? this.overrides.getWeek(r, this.options) : et(r, this.options), this.isAfter = (r, o) => this.overrides?.isAfter ? this.overrides.isAfter(r, o) : Fo(r, o), this.isBefore = (r, o) => this.overrides?.isBefore ? this.overrides.isBefore(r, o) : Bo(r, o), this.isDate = (r) => this.overrides?.isDate ? this.overrides.isDate(r) : _t(r), this.isSameDay = (r, o) => this.overrides?.isSameDay ? this.overrides.isSameDay(r, o) : Nr(r, o), this.isSameMonth = (r, o) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(r, o) : Io(r, o), this.isSameYear = (r, o) => this.overrides?.isSameYear ? this.overrides.isSameYear(r, o) : Ho(r, o), this.max = (r) => this.overrides?.max ? this.overrides.max(r) : Cr(r), this.min = (r) => this.overrides?.min ? this.overrides.min(r) : Sr(r), this.setMonth = (r, o) => this.overrides?.setMonth ? this.overrides.setMonth(r, o) : Ao(r, o), this.setYear = (r, o) => this.overrides?.setYear ? this.overrides.setYear(r, o) : qo(r, o), this.startOfBroadcastWeek = (r, o) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(r, this) : qt(r, this), this.startOfDay = (r) => this.overrides?.startOfDay ? this.overrides.startOfDay(r) : ye(r), this.startOfISOWeek = (r) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(r) : Oe(r), this.startOfMonth = (r) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(r) : _r(r), this.startOfWeek = (r, o) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(r, this.options) : me(r, this.options), this.startOfYear = (r) => this.overrides?.startOfYear ? this.overrides.startOfYear(r) : Ft(r), this.options = { locale: jt, ...t }, this.overrides = n;
1593
+ }, this.getISOWeek = (r) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(r) : Je(r), this.getMonth = (r, o) => this.overrides?.getMonth ? this.overrides.getMonth(r, this.options) : Po(r, this.options), this.getYear = (r, o) => this.overrides?.getYear ? this.overrides.getYear(r, this.options) : Eo(r, this.options), this.getWeek = (r, o) => this.overrides?.getWeek ? this.overrides.getWeek(r, this.options) : Le(r, this.options), this.isAfter = (r, o) => this.overrides?.isAfter ? this.overrides.isAfter(r, o) : Fo(r, o), this.isBefore = (r, o) => this.overrides?.isBefore ? this.overrides.isBefore(r, o) : Bo(r, o), this.isDate = (r) => this.overrides?.isDate ? this.overrides.isDate(r) : Pt(r), this.isSameDay = (r, o) => this.overrides?.isSameDay ? this.overrides.isSameDay(r, o) : Nr(r, o), this.isSameMonth = (r, o) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(r, o) : Io(r, o), this.isSameYear = (r, o) => this.overrides?.isSameYear ? this.overrides.isSameYear(r, o) : Ho(r, o), this.max = (r) => this.overrides?.max ? this.overrides.max(r) : Cr(r), this.min = (r) => this.overrides?.min ? this.overrides.min(r) : Sr(r), this.setMonth = (r, o) => this.overrides?.setMonth ? this.overrides.setMonth(r, o) : Ao(r, o), this.setYear = (r, o) => this.overrides?.setYear ? this.overrides.setYear(r, o) : qo(r, o), this.startOfBroadcastWeek = (r, o) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(r, this) : jt(r, this), this.startOfDay = (r) => this.overrides?.startOfDay ? this.overrides.startOfDay(r) : ye(r), this.startOfISOWeek = (r) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(r) : Oe(r), this.startOfMonth = (r) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(r) : _r(r), this.startOfWeek = (r, o) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(r, this.options) : me(r, this.options), this.startOfYear = (r) => this.overrides?.startOfYear ? this.overrides.startOfYear(r) : Bt(r), this.options = { locale: Rt, ...t }, this.overrides = n;
1595
1594
  }
1596
1595
  /**
1597
1596
  * Generates a mapping of Arabic digits (0-9) to the target numbering system
@@ -1678,7 +1677,7 @@ z.yearFirstLocales = /* @__PURE__ */ new Set([
1678
1677
  "zh-TW"
1679
1678
  ]);
1680
1679
  const oe = new z();
1681
- class Rt {
1680
+ class $t {
1682
1681
  constructor(t, n, r = oe) {
1683
1682
  this.date = t, this.displayMonth = n, this.outside = !!(n && !r.isSameMonth(t, n)), this.dateLib = r, this.isoDate = r.format(t, "yyyy-MM-dd"), this.displayMonthId = r.format(n, "yyyy-MM"), this.dateMonthId = r.format(t, "yyyy-MM");
1684
1683
  }
@@ -1783,9 +1782,9 @@ function aa(e) {
1783
1782
  function sa(e) {
1784
1783
  return f.createElement("div", { ...e });
1785
1784
  }
1786
- const $t = Fn(void 0);
1785
+ const Gt = St(void 0);
1787
1786
  function Ce() {
1788
- const e = Bn($t);
1787
+ const e = Bn(Gt);
1789
1788
  if (e === void 0)
1790
1789
  throw new Error("useDayPicker() must be used within a custom component.");
1791
1790
  return e;
@@ -1895,22 +1894,22 @@ function ae(e, t, n = !1, r = oe) {
1895
1894
  const { differenceInCalendarDays: i, isSameDay: a } = r;
1896
1895
  return o && s ? (i(s, o) < 0 && ([o, s] = [s, o]), i(t, o) >= (n ? 1 : 0) && i(s, t) >= (n ? 1 : 0)) : !n && s ? a(s, t) : !n && o ? a(o, t) : !1;
1897
1896
  }
1898
- function tt(e) {
1897
+ function et(e) {
1899
1898
  return !!(e && typeof e == "object" && "before" in e && "after" in e);
1900
1899
  }
1901
1900
  function _e(e) {
1902
1901
  return !!(e && typeof e == "object" && "from" in e);
1903
1902
  }
1904
- function nt(e) {
1903
+ function tt(e) {
1905
1904
  return !!(e && typeof e == "object" && "after" in e);
1906
1905
  }
1907
- function rt(e) {
1906
+ function nt(e) {
1908
1907
  return !!(e && typeof e == "object" && "before" in e);
1909
1908
  }
1910
- function Gt(e) {
1909
+ function zt(e) {
1911
1910
  return !!(e && typeof e == "object" && "dayOfWeek" in e);
1912
1911
  }
1913
- function zt(e, t) {
1912
+ function Vt(e, t) {
1914
1913
  return Array.isArray(e) && e.every(t.isDate);
1915
1914
  }
1916
1915
  function se(e, t, n = oe) {
@@ -1920,17 +1919,17 @@ function se(e, t, n = oe) {
1920
1919
  return a;
1921
1920
  if (n.isDate(a))
1922
1921
  return o(e, a);
1923
- if (zt(a, n))
1922
+ if (Vt(a, n))
1924
1923
  return a.some((c) => o(e, c));
1925
1924
  if (_e(a))
1926
1925
  return ae(a, e, !1, n);
1927
- if (Gt(a))
1926
+ if (zt(a))
1928
1927
  return Array.isArray(a.dayOfWeek) ? a.dayOfWeek.includes(e.getDay()) : a.dayOfWeek === e.getDay();
1929
- if (tt(a)) {
1928
+ if (et(a)) {
1930
1929
  const c = s(a.before, e), u = s(a.after, e), d = c > 0, l = u < 0;
1931
1930
  return i(a.before, a.after) ? l && d : d || l;
1932
1931
  }
1933
- return nt(a) ? s(e, a.after) > 0 : rt(a) ? s(a.before, e) > 0 : typeof a == "function" ? a(e) : !1;
1932
+ return tt(a) ? s(e, a.after) > 0 : nt(a) ? s(a.before, e) > 0 : typeof a == "function" ? a(e) : !1;
1934
1933
  });
1935
1934
  }
1936
1935
  function Da(e, t, n, r, o) {
@@ -1942,9 +1941,9 @@ function Da(e, t, n, r, o) {
1942
1941
  [I.today]: []
1943
1942
  }, k = {};
1944
1943
  for (const w of e) {
1945
- const { date: y, displayMonth: C } = w, E = !!(C && !m(y, C)), H = !!(W && O(y, W)), F = !!(h && D(y, h)), V = !!(s && se(y, s, o)), Z = !!(i && se(y, i, o)) || H || F || // Broadcast calendar will show outside days as default
1946
- !u && !c && E || u && c === !1 && E, J = l(y, d);
1947
- E && p.outside.push(w), V && p.disabled.push(w), Z && p.hidden.push(w), J && p.today.push(w), a && Object.keys(a).forEach((T) => {
1944
+ const { date: y, displayMonth: C } = w, P = !!(C && !m(y, C)), H = !!(W && O(y, W)), F = !!(h && D(y, h)), V = !!(s && se(y, s, o)), Z = !!(i && se(y, i, o)) || H || F || // Broadcast calendar will show outside days as default
1945
+ !u && !c && P || u && c === !1 && P, J = l(y, d);
1946
+ P && p.outside.push(w), V && p.disabled.push(w), Z && p.hidden.push(w), J && p.today.push(w), a && Object.keys(a).forEach((T) => {
1948
1947
  const j = a?.[T];
1949
1948
  j && se(y, j, o) && (k[T] ? k[T].push(w) : k[T] = [w]);
1950
1949
  });
@@ -1957,12 +1956,12 @@ function Da(e, t, n, r, o) {
1957
1956
  [I.outside]: !1,
1958
1957
  [I.today]: !1
1959
1958
  }, C = {};
1960
- for (const E in p) {
1961
- const H = p[E];
1962
- y[E] = H.some((F) => F === w);
1959
+ for (const P in p) {
1960
+ const H = p[P];
1961
+ y[P] = H.some((F) => F === w);
1963
1962
  }
1964
- for (const E in k)
1965
- C[E] = k[E].some((H) => H === w);
1963
+ for (const P in k)
1964
+ C[P] = k[P].some((H) => H === w);
1966
1965
  return {
1967
1966
  ...y,
1968
1967
  // custom modifiers should override all the previous ones
@@ -1992,7 +1991,7 @@ function Wa(e) {
1992
1991
  n.startsWith("data-") && (t[n] = r);
1993
1992
  }), t;
1994
1993
  }
1995
- function Vt() {
1994
+ function Qt() {
1996
1995
  const e = {};
1997
1996
  for (const t in g)
1998
1997
  e[g[t]] = `rdp-${g[t]}`;
@@ -2004,10 +2003,10 @@ function Vt() {
2004
2003
  e[$[t]] = `rdp-${$[t]}`;
2005
2004
  return e;
2006
2005
  }
2007
- function Qt(e, t, n) {
2006
+ function Xt(e, t, n) {
2008
2007
  return (n ?? new z(t)).formatMonthYear(e);
2009
2008
  }
2010
- const Ca = Qt;
2009
+ const Ca = Xt;
2011
2010
  function Sa(e, t, n) {
2012
2011
  return (n ?? new z(t)).format(e, "d");
2013
2012
  }
@@ -2023,12 +2022,12 @@ function Ta(e, t = oe) {
2023
2022
  function xa() {
2024
2023
  return "";
2025
2024
  }
2026
- function Xt(e, t = oe) {
2025
+ function Ut(e, t = oe) {
2027
2026
  return t.format(e, "yyyy");
2028
2027
  }
2029
- const _a = Xt, Ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2028
+ const _a = Ut, Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2030
2029
  __proto__: null,
2031
- formatCaption: Qt,
2030
+ formatCaption: Xt,
2032
2031
  formatDay: Sa,
2033
2032
  formatMonthCaption: Ca,
2034
2033
  formatMonthDropdown: Na,
@@ -2036,84 +2035,84 @@ const _a = Xt, Ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2036
2035
  formatWeekNumberHeader: xa,
2037
2036
  formatWeekdayName: Ya,
2038
2037
  formatYearCaption: _a,
2039
- formatYearDropdown: Xt
2038
+ formatYearDropdown: Ut
2040
2039
  }, Symbol.toStringTag, { value: "Module" }));
2041
- function Pa(e) {
2040
+ function Ea(e) {
2042
2041
  return e?.formatMonthCaption && !e.formatCaption && (e.formatCaption = e.formatMonthCaption), e?.formatYearCaption && !e.formatYearDropdown && (e.formatYearDropdown = e.formatYearCaption), {
2043
- ...Ea,
2042
+ ...Pa,
2044
2043
  ...e
2045
2044
  };
2046
2045
  }
2047
- function ot(e, t, n, r) {
2046
+ function rt(e, t, n, r) {
2048
2047
  let o = (r ?? new z(n)).format(e, "PPPP");
2049
2048
  return t.today && (o = `Today, ${o}`), t.selected && (o = `${o}, selected`), o;
2050
2049
  }
2051
- const Fa = ot;
2052
- function at(e, t, n) {
2050
+ const Fa = rt;
2051
+ function ot(e, t, n) {
2053
2052
  return (n ?? new z(t)).formatMonthYear(e);
2054
2053
  }
2055
- const Ba = at;
2056
- function Ut(e, t, n, r) {
2054
+ const Ba = ot;
2055
+ function Kt(e, t, n, r) {
2057
2056
  let o = (r ?? new z(n)).format(e, "PPPP");
2058
2057
  return t?.today && (o = `Today, ${o}`), o;
2059
2058
  }
2060
- function Kt(e) {
2059
+ function Zt(e) {
2061
2060
  return "Choose the Month";
2062
2061
  }
2063
- function Zt() {
2062
+ function Jt() {
2064
2063
  return "";
2065
2064
  }
2066
2065
  const Ia = "Go to the Next Month";
2067
- function Jt(e, t) {
2066
+ function Lt(e, t) {
2068
2067
  return Ia;
2069
2068
  }
2070
- function Lt(e) {
2069
+ function en(e) {
2071
2070
  return "Go to the Previous Month";
2072
2071
  }
2073
- function en(e, t, n) {
2072
+ function tn(e, t, n) {
2074
2073
  return (n ?? new z(t)).format(e, "cccc");
2075
2074
  }
2076
- function tn(e, t) {
2075
+ function nn(e, t) {
2077
2076
  return `Week ${e}`;
2078
2077
  }
2079
- function nn(e) {
2078
+ function rn(e) {
2080
2079
  return "Week Number";
2081
2080
  }
2082
- function rn(e) {
2081
+ function on(e) {
2083
2082
  return "Choose the Year";
2084
2083
  }
2085
2084
  const Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2086
2085
  __proto__: null,
2087
2086
  labelCaption: Ba,
2088
2087
  labelDay: Fa,
2089
- labelDayButton: ot,
2090
- labelGrid: at,
2091
- labelGridcell: Ut,
2092
- labelMonthDropdown: Kt,
2093
- labelNav: Zt,
2094
- labelNext: Jt,
2095
- labelPrevious: Lt,
2096
- labelWeekNumber: tn,
2097
- labelWeekNumberHeader: nn,
2098
- labelWeekday: en,
2099
- labelYearDropdown: rn
2088
+ labelDayButton: rt,
2089
+ labelGrid: ot,
2090
+ labelGridcell: Kt,
2091
+ labelMonthDropdown: Zt,
2092
+ labelNav: Jt,
2093
+ labelNext: Lt,
2094
+ labelPrevious: en,
2095
+ labelWeekNumber: nn,
2096
+ labelWeekNumberHeader: rn,
2097
+ labelWeekday: tn,
2098
+ labelYearDropdown: on
2100
2099
  }, Symbol.toStringTag, { value: "Module" })), L = (e, t, n) => t || (n ? typeof n == "function" ? n : (...r) => n : e);
2101
2100
  function Aa(e, t) {
2102
2101
  const n = t.locale?.labels ?? {};
2103
2102
  return {
2104
2103
  ...Ha,
2105
2104
  ...e ?? {},
2106
- labelDayButton: L(ot, e?.labelDayButton, n.labelDayButton),
2107
- labelMonthDropdown: L(Kt, e?.labelMonthDropdown, n.labelMonthDropdown),
2108
- labelNext: L(Jt, e?.labelNext, n.labelNext),
2109
- labelPrevious: L(Lt, e?.labelPrevious, n.labelPrevious),
2110
- labelWeekNumber: L(tn, e?.labelWeekNumber, n.labelWeekNumber),
2111
- labelYearDropdown: L(rn, e?.labelYearDropdown, n.labelYearDropdown),
2112
- labelGrid: L(at, e?.labelGrid, n.labelGrid),
2113
- labelGridcell: L(Ut, e?.labelGridcell, n.labelGridcell),
2114
- labelNav: L(Zt, e?.labelNav, n.labelNav),
2115
- labelWeekNumberHeader: L(nn, e?.labelWeekNumberHeader, n.labelWeekNumberHeader),
2116
- labelWeekday: L(en, e?.labelWeekday, n.labelWeekday)
2105
+ labelDayButton: L(rt, e?.labelDayButton, n.labelDayButton),
2106
+ labelMonthDropdown: L(Zt, e?.labelMonthDropdown, n.labelMonthDropdown),
2107
+ labelNext: L(Lt, e?.labelNext, n.labelNext),
2108
+ labelPrevious: L(en, e?.labelPrevious, n.labelPrevious),
2109
+ labelWeekNumber: L(nn, e?.labelWeekNumber, n.labelWeekNumber),
2110
+ labelYearDropdown: L(on, e?.labelYearDropdown, n.labelYearDropdown),
2111
+ labelGrid: L(ot, e?.labelGrid, n.labelGrid),
2112
+ labelGridcell: L(Kt, e?.labelGridcell, n.labelGridcell),
2113
+ labelNav: L(Jt, e?.labelNav, n.labelNav),
2114
+ labelWeekNumberHeader: L(rn, e?.labelWeekNumberHeader, n.labelWeekNumberHeader),
2115
+ labelWeekday: L(tn, e?.labelWeekday, n.labelWeekday)
2117
2116
  };
2118
2117
  }
2119
2118
  function qa(e, t, n, r, o) {
@@ -2232,18 +2231,18 @@ function Ga(e, t = {}) {
2232
2231
  },
2233
2232
  getWeek: (a, c) => {
2234
2233
  const u = i(a);
2235
- return et(u, {
2234
+ return Le(u, {
2236
2235
  weekStartsOn: c?.weekStartsOn ?? o,
2237
2236
  firstWeekContainsDate: c?.firstWeekContainsDate ?? r?.options?.firstWeekContainsDate ?? 1
2238
2237
  });
2239
2238
  },
2240
2239
  getISOWeek: (a) => {
2241
2240
  const c = i(a);
2242
- return Le(c);
2241
+ return Je(c);
2243
2242
  },
2244
2243
  differenceInCalendarDays: (a, c) => {
2245
2244
  const u = i(a), d = i(c);
2246
- return Je(u, d);
2245
+ return Ze(u, d);
2247
2246
  },
2248
2247
  differenceInCalendarMonths: (a, c) => {
2249
2248
  const u = i(a), d = i(c);
@@ -2255,7 +2254,7 @@ const Se = (e) => e instanceof HTMLElement ? e : null, ze = (e) => [
2255
2254
  ...e.querySelectorAll("[data-animated-month]") ?? []
2256
2255
  ], za = (e) => Se(e.querySelector("[data-animated-month]")), Ve = (e) => Se(e.querySelector("[data-animated-caption]")), Qe = (e) => Se(e.querySelector("[data-animated-weeks]")), Va = (e) => Se(e.querySelector("[data-animated-nav]")), Qa = (e) => Se(e.querySelector("[data-animated-weekdays]"));
2257
2256
  function Xa(e, t, { classNames: n, months: r, focused: o, dateLib: s }) {
2258
- const i = Te(null), a = Te(r), c = Te(!1);
2257
+ const i = ve(null), a = ve(r), c = ve(!1);
2259
2258
  In(() => {
2260
2259
  const u = a.current;
2261
2260
  if (a.current = r, !t || !e.current || // safety check because the ref can be set to anything by consumers
@@ -2288,14 +2287,14 @@ function Xa(e, t, { classNames: n, months: r, focused: o, dateLib: s }) {
2288
2287
  y && y.classList.add(m);
2289
2288
  const C = Qe(p);
2290
2289
  C && C.classList.add(b);
2291
- const E = () => {
2290
+ const P = () => {
2292
2291
  c.current = !1, e.current && (e.current.style.isolation = ""), h && (h.style.zIndex = ""), y && y.classList.remove(m), C && C.classList.remove(b), p.style.position = "", p.style.overflow = "", p.contains(w) && p.removeChild(w);
2293
2292
  };
2294
2293
  w.style.pointerEvents = "none", w.style.position = "absolute", w.style.overflow = "hidden", w.setAttribute("aria-hidden", "true");
2295
2294
  const H = Qa(w);
2296
2295
  H && (H.style.opacity = "0");
2297
2296
  const F = Ve(w);
2298
- F && (F.classList.add(l ? n[$.caption_before_exit] : n[$.caption_after_exit]), F.addEventListener("animationend", E));
2297
+ F && (F.classList.add(l ? n[$.caption_before_exit] : n[$.caption_after_exit]), F.addEventListener("animationend", P));
2299
2298
  const V = Qe(w);
2300
2299
  V && V.classList.add(l ? n[$.weeks_before_exit] : n[$.weeks_after_exit]), p.insertBefore(w, p.firstChild);
2301
2300
  });
@@ -2303,8 +2302,8 @@ function Xa(e, t, { classNames: n, months: r, focused: o, dateLib: s }) {
2303
2302
  });
2304
2303
  }
2305
2304
  function Ua(e, t, n, r) {
2306
- const o = e[0], s = e[e.length - 1], { ISOWeek: i, fixedWeeks: a, broadcastCalendar: c } = n ?? {}, { addDays: u, differenceInCalendarDays: d, differenceInCalendarMonths: l, endOfBroadcastWeek: m, endOfISOWeek: b, endOfMonth: O, endOfWeek: S, isAfter: D, startOfBroadcastWeek: W, startOfISOWeek: h, startOfWeek: p } = r, k = c ? W(o, r) : i ? h(o) : p(o), w = c ? m(s) : i ? b(O(s)) : S(O(s)), y = t && (c ? m(t) : i ? b(t) : S(t)), C = y && D(w, y) ? y : w, E = d(C, k), H = l(s, o) + 1, F = [];
2307
- for (let J = 0; J <= E; J++) {
2305
+ const o = e[0], s = e[e.length - 1], { ISOWeek: i, fixedWeeks: a, broadcastCalendar: c } = n ?? {}, { addDays: u, differenceInCalendarDays: d, differenceInCalendarMonths: l, endOfBroadcastWeek: m, endOfISOWeek: b, endOfMonth: O, endOfWeek: S, isAfter: D, startOfBroadcastWeek: W, startOfISOWeek: h, startOfWeek: p } = r, k = c ? W(o, r) : i ? h(o) : p(o), w = c ? m(s) : i ? b(O(s)) : S(O(s)), y = t && (c ? m(t) : i ? b(t) : S(t)), C = y && D(w, y) ? y : w, P = d(C, k), H = l(s, o) + 1, F = [];
2306
+ for (let J = 0; J <= P; J++) {
2308
2307
  const T = u(k, J);
2309
2308
  F.push(T);
2310
2309
  }
@@ -2335,7 +2334,7 @@ function Za(e, t, n, r) {
2335
2334
  }
2336
2335
  return s;
2337
2336
  }
2338
- function Ot(e, t, n, r) {
2337
+ function vt(e, t, n, r) {
2339
2338
  const { month: o, defaultMonth: s, today: i = r.today(), numberOfMonths: a = 1 } = e;
2340
2339
  let c = o || s || i;
2341
2340
  const { differenceInCalendarMonths: u, addMonths: d, startOfMonth: l } = r;
@@ -2349,14 +2348,14 @@ function Ja(e, t, n, r) {
2349
2348
  const { addDays: o, endOfBroadcastWeek: s, endOfISOWeek: i, endOfMonth: a, endOfWeek: c, getISOWeek: u, getWeek: d, startOfBroadcastWeek: l, startOfISOWeek: m, startOfWeek: b } = r, O = e.reduce((S, D) => {
2350
2349
  const W = n.broadcastCalendar ? l(D, r) : n.ISOWeek ? m(D) : b(D), h = n.broadcastCalendar ? s(D) : n.ISOWeek ? i(a(D)) : c(a(D)), p = t.filter((C) => C >= W && C <= h), k = n.broadcastCalendar ? 35 : 42;
2351
2350
  if (n.fixedWeeks && p.length < k) {
2352
- const C = t.filter((E) => {
2351
+ const C = t.filter((P) => {
2353
2352
  const H = k - p.length;
2354
- return E > h && E <= o(h, H);
2353
+ return P > h && P <= o(h, H);
2355
2354
  });
2356
2355
  p.push(...C);
2357
2356
  }
2358
- const w = p.reduce((C, E) => {
2359
- const H = n.ISOWeek ? u(E) : d(E), F = C.find((Z) => Z.weekNumber === H), V = new Rt(E, D, r);
2357
+ const w = p.reduce((C, P) => {
2358
+ const H = n.ISOWeek ? u(P) : d(P), F = C.find((Z) => Z.weekNumber === H), V = new $t(P, D, r);
2360
2359
  return F ? F.days.push(V) : C.push(new Xo(H, [V])), C;
2361
2360
  }, []), y = new Qo(D, w);
2362
2361
  return S.push(y), S;
@@ -2395,21 +2394,21 @@ function ns(e) {
2395
2394
  const t = [];
2396
2395
  return e.reduce((n, r) => n.concat(r.weeks.slice()), t.slice());
2397
2396
  }
2398
- function Ee(e, t) {
2399
- const [n, r] = Ue(e);
2397
+ function Pe(e, t) {
2398
+ const [n, r] = xe(e);
2400
2399
  return [t === void 0 ? n : t, r];
2401
2400
  }
2402
2401
  function rs(e, t) {
2403
- const [n, r] = La(e, t), { startOfMonth: o, endOfMonth: s } = t, i = Ot(e, n, r, t), [a, c] = Ee(
2402
+ const [n, r] = La(e, t), { startOfMonth: o, endOfMonth: s } = t, i = vt(e, n, r, t), [a, c] = Pe(
2404
2403
  i,
2405
2404
  // initialMonth is always computed from props.month if provided
2406
2405
  e.month ? i : void 0
2407
2406
  );
2408
- Hn(() => {
2409
- const k = Ot(e, n, r, t);
2407
+ Nt(() => {
2408
+ const k = vt(e, n, r, t);
2410
2409
  c(k);
2411
2410
  }, [e.timeZone]);
2412
- const { months: u, weeks: d, days: l, previousMonth: m, nextMonth: b } = xe(() => {
2411
+ const { months: u, weeks: d, days: l, previousMonth: m, nextMonth: b } = Te(() => {
2413
2412
  const k = Za(a, r, { numberOfMonths: e.numberOfMonths }, t), w = Ua(k, e.endMonth ? s(e.endMonth) : void 0, {
2414
2413
  ISOWeek: e.ISOWeek,
2415
2414
  fixedWeeks: e.fixedWeeks,
@@ -2419,11 +2418,11 @@ function rs(e, t) {
2419
2418
  fixedWeeks: e.fixedWeeks,
2420
2419
  ISOWeek: e.ISOWeek,
2421
2420
  reverseMonths: e.reverseMonths
2422
- }, t), C = ns(y), E = Ka(y), H = ts(a, n, e, t), F = es(a, r, e, t);
2421
+ }, t), C = ns(y), P = Ka(y), H = ts(a, n, e, t), F = es(a, r, e, t);
2423
2422
  return {
2424
2423
  months: y,
2425
2424
  weeks: C,
2426
- days: E,
2425
+ days: P,
2427
2426
  previousMonth: H,
2428
2427
  nextMonth: F
2429
2428
  };
@@ -2464,16 +2463,16 @@ var ne;
2464
2463
  (function(e) {
2465
2464
  e[e.Today = 0] = "Today", e[e.Selected = 1] = "Selected", e[e.LastFocused = 2] = "LastFocused", e[e.FocusedModifier = 3] = "FocusedModifier";
2466
2465
  })(ne || (ne = {}));
2467
- function Wt(e) {
2466
+ function Ot(e) {
2468
2467
  return !e[I.disabled] && !e[I.hidden] && !e[I.outside];
2469
2468
  }
2470
2469
  function os(e, t, n, r) {
2471
2470
  let o, s = -1;
2472
2471
  for (const i of e) {
2473
2472
  const a = t(i);
2474
- Wt(a) && (a[I.focused] && s < ne.FocusedModifier ? (o = i, s = ne.FocusedModifier) : r?.isEqualTo(i) && s < ne.LastFocused ? (o = i, s = ne.LastFocused) : n(i.date) && s < ne.Selected ? (o = i, s = ne.Selected) : a[I.today] && s < ne.Today && (o = i, s = ne.Today));
2473
+ Ot(a) && (a[I.focused] && s < ne.FocusedModifier ? (o = i, s = ne.FocusedModifier) : r?.isEqualTo(i) && s < ne.LastFocused ? (o = i, s = ne.LastFocused) : n(i.date) && s < ne.Selected ? (o = i, s = ne.Selected) : a[I.today] && s < ne.Today && (o = i, s = ne.Today));
2475
2474
  }
2476
- return o || (o = e.find((i) => Wt(t(i)))), o;
2475
+ return o || (o = e.find((i) => Ot(t(i)))), o;
2477
2476
  }
2478
2477
  function as(e, t, n, r, o, s, i) {
2479
2478
  const { ISOWeek: a, broadcastCalendar: c } = s, { addDays: u, addMonths: d, addWeeks: l, addYears: m, endOfBroadcastWeek: b, endOfISOWeek: O, endOfWeek: S, max: D, min: W, startOfBroadcastWeek: h, startOfISOWeek: p, startOfWeek: k } = i;
@@ -2487,14 +2486,14 @@ function as(e, t, n, r, o, s, i) {
2487
2486
  }[e](n, t === "after" ? 1 : -1);
2488
2487
  return t === "before" && r ? y = D([r, y]) : t === "after" && o && (y = W([o, y])), y;
2489
2488
  }
2490
- function on(e, t, n, r, o, s, i, a = 0) {
2489
+ function an(e, t, n, r, o, s, i, a = 0) {
2491
2490
  if (a > 365)
2492
2491
  return;
2493
- const c = as(e, t, n.date, r, o, s, i), u = !!(s.disabled && se(c, s.disabled, i)), d = !!(s.hidden && se(c, s.hidden, i)), l = c, m = new Rt(c, l, i);
2494
- return !u && !d ? m : on(e, t, m, r, o, s, i, a + 1);
2492
+ const c = as(e, t, n.date, r, o, s, i), u = !!(s.disabled && se(c, s.disabled, i)), d = !!(s.hidden && se(c, s.hidden, i)), l = c, m = new $t(c, l, i);
2493
+ return !u && !d ? m : an(e, t, m, r, o, s, i, a + 1);
2495
2494
  }
2496
2495
  function ss(e, t, n, r, o) {
2497
- const { autoFocus: s } = e, [i, a] = Ue(), c = os(t.days, n, r || (() => !1), i), [u, d] = Ue(s ? c : void 0);
2496
+ const { autoFocus: s } = e, [i, a] = xe(), c = os(t.days, n, r || (() => !1), i), [u, d] = xe(s ? c : void 0);
2498
2497
  return {
2499
2498
  isFocusTarget: (S) => !!c?.isEqualTo(S),
2500
2499
  setFocused: d,
@@ -2505,13 +2504,13 @@ function ss(e, t, n, r, o) {
2505
2504
  moveFocus: (S, D) => {
2506
2505
  if (!u)
2507
2506
  return;
2508
- const W = on(S, D, u, t.navStart, t.navEnd, e, o);
2507
+ const W = an(S, D, u, t.navStart, t.navEnd, e, o);
2509
2508
  W && (e.disableNavigation && !t.days.some((p) => p.isEqualTo(W)) || (t.goToDay(W), d(W)));
2510
2509
  }
2511
2510
  };
2512
2511
  }
2513
2512
  function is(e, t) {
2514
- const { selected: n, required: r, onSelect: o } = e, [s, i] = Ee(n, o ? n : void 0), a = o ? n : s, { isSameDay: c } = t, u = (b) => a?.some((O) => c(O, b)) ?? !1, { min: d, max: l } = e;
2513
+ const { selected: n, required: r, onSelect: o } = e, [s, i] = Pe(n, o ? n : void 0), a = o ? n : s, { isSameDay: c } = t, u = (b) => a?.some((O) => c(O, b)) ?? !1, { min: d, max: l } = e;
2515
2514
  return {
2516
2515
  selected: a,
2517
2516
  select: (b, O, S) => {
@@ -2566,15 +2565,15 @@ function us(e, t, n = oe) {
2566
2565
  }
2567
2566
  return !1;
2568
2567
  }
2569
- function Ct(e, t, n = oe) {
2568
+ function Wt(e, t, n = oe) {
2570
2569
  return ae(e, t.from, !1, n) || ae(e, t.to, !1, n) || ae(t, e.from, !1, n) || ae(t, e.to, !1, n);
2571
2570
  }
2572
2571
  function ls(e, t, n = oe) {
2573
2572
  const r = Array.isArray(t) ? t : [t];
2574
- if (r.filter((a) => typeof a != "function").some((a) => typeof a == "boolean" ? a : n.isDate(a) ? ae(e, a, !1, n) : zt(a, n) ? a.some((c) => ae(e, c, !1, n)) : _e(a) ? a.from && a.to ? Ct(e, { from: a.from, to: a.to }, n) : !1 : Gt(a) ? us(e, a.dayOfWeek, n) : tt(a) ? n.isAfter(a.before, a.after) ? Ct(e, {
2573
+ if (r.filter((a) => typeof a != "function").some((a) => typeof a == "boolean" ? a : n.isDate(a) ? ae(e, a, !1, n) : Vt(a, n) ? a.some((c) => ae(e, c, !1, n)) : _e(a) ? a.from && a.to ? Wt(e, { from: a.from, to: a.to }, n) : !1 : zt(a) ? us(e, a.dayOfWeek, n) : et(a) ? n.isAfter(a.before, a.after) ? Wt(e, {
2575
2574
  from: n.addDays(a.after, 1),
2576
2575
  to: n.addDays(a.before, -1)
2577
- }, n) : se(e.from, a, n) || se(e.to, a, n) : nt(a) || rt(a) ? se(e.from, a, n) || se(e.to, a, n) : !1))
2576
+ }, n) : se(e.from, a, n) || se(e.to, a, n) : tt(a) || nt(a) ? se(e.from, a, n) || se(e.to, a, n) : !1))
2578
2577
  return !0;
2579
2578
  const i = r.filter((a) => typeof a == "function");
2580
2579
  if (i.length) {
@@ -2589,7 +2588,7 @@ function ls(e, t, n = oe) {
2589
2588
  return !1;
2590
2589
  }
2591
2590
  function ds(e, t) {
2592
- const { disabled: n, excludeDisabled: r, resetOnSelect: o, selected: s, required: i, onSelect: a } = e, [c, u] = Ee(s, a ? s : void 0), d = a ? s : c;
2591
+ const { disabled: n, excludeDisabled: r, resetOnSelect: o, selected: s, required: i, onSelect: a } = e, [c, u] = Pe(s, a ? s : void 0), d = a ? s : c;
2593
2592
  return {
2594
2593
  selected: d,
2595
2594
  select: (b, O, S) => {
@@ -2605,7 +2604,7 @@ function ds(e, t) {
2605
2604
  };
2606
2605
  }
2607
2606
  function fs(e, t) {
2608
- const { selected: n, required: r, onSelect: o } = e, [s, i] = Ee(n, o ? n : void 0), a = o ? n : s, { isSameDay: c } = t;
2607
+ const { selected: n, required: r, onSelect: o } = e, [s, i] = Pe(n, o ? n : void 0), a = o ? n : s, { isSameDay: c } = t;
2609
2608
  return {
2610
2609
  selected: a,
2611
2610
  select: (l, m, b) => {
@@ -2634,22 +2633,22 @@ function K(e, t) {
2634
2633
  function fe(e, t, n) {
2635
2634
  return K(e, t);
2636
2635
  }
2637
- function St(e, t, n) {
2636
+ function Ct(e, t, n) {
2638
2637
  return typeof e == "boolean" || typeof e == "function" ? e : e instanceof Date ? fe(e, t) : Array.isArray(e) ? e.map((r) => r instanceof Date ? fe(r, t) : r) : _e(e) ? {
2639
2638
  ...e,
2640
2639
  from: e.from ? K(e.from, t) : e.from,
2641
2640
  to: e.to ? K(e.to, t) : e.to
2642
- } : tt(e) ? {
2641
+ } : et(e) ? {
2643
2642
  before: fe(e.before, t),
2644
2643
  after: fe(e.after, t)
2645
- } : nt(e) ? {
2644
+ } : tt(e) ? {
2646
2645
  after: fe(e.after, t)
2647
- } : rt(e) ? {
2646
+ } : nt(e) ? {
2648
2647
  before: fe(e.before, t)
2649
2648
  } : e;
2650
2649
  }
2651
2650
  function Xe(e, t, n) {
2652
- return e && (Array.isArray(e) ? e.map((r) => St(r, t)) : St(e, t));
2651
+ return e && (Array.isArray(e) ? e.map((r) => Ct(r, t)) : Ct(e, t));
2653
2652
  }
2654
2653
  function ms(e) {
2655
2654
  let t = e;
@@ -2666,8 +2665,8 @@ function ms(e) {
2666
2665
  v[_] = Xe(t.modifiers?.[_], n);
2667
2666
  }), t.modifiers = v;
2668
2667
  }
2669
- const { components: r, formatters: o, labels: s, dateLib: i, locale: a, classNames: c } = xe(() => {
2670
- const v = { ...jt, ...t.locale }, _ = t.broadcastCalendar ? 1 : t.weekStartsOn, M = t.noonSafe && t.timeZone ? Ga(t.timeZone, {
2668
+ const { components: r, formatters: o, labels: s, dateLib: i, locale: a, classNames: c } = Te(() => {
2669
+ const v = { ...Rt, ...t.locale }, _ = t.broadcastCalendar ? 1 : t.weekStartsOn, M = t.noonSafe && t.timeZone ? Ga(t.timeZone, {
2671
2670
  weekStartsOn: _,
2672
2671
  locale: v
2673
2672
  }) : void 0, x = t.dateLib && M ? { ...M, ...t.dateLib } : t.dateLib ?? M, R = new z({
@@ -2682,10 +2681,10 @@ function ms(e) {
2682
2681
  return {
2683
2682
  dateLib: R,
2684
2683
  components: Oa(t.components),
2685
- formatters: Pa(t.formatters),
2684
+ formatters: Ea(t.formatters),
2686
2685
  labels: Aa(t.labels, R.options),
2687
2686
  locale: v,
2688
- classNames: { ...Vt(), ...t.classNames }
2687
+ classNames: { ...Qt(), ...t.classNames }
2689
2688
  };
2690
2689
  }, [
2691
2690
  t.locale,
@@ -2704,17 +2703,17 @@ function ms(e) {
2704
2703
  t.classNames
2705
2704
  ]);
2706
2705
  t.today || (t = { ...t, today: i.today() });
2707
- const { captionLayout: u, mode: d, navLayout: l, numberOfMonths: m = 1, onDayBlur: b, onDayClick: O, onDayFocus: S, onDayKeyDown: D, onDayMouseEnter: W, onDayMouseLeave: h, onNextClick: p, onPrevClick: k, showWeekNumber: w, styles: y } = t, { formatCaption: C, formatDay: E, formatMonthDropdown: H, formatWeekNumber: F, formatWeekNumberHeader: V, formatWeekdayName: Z, formatYearDropdown: J } = o, T = rs(t, i), { days: j, months: ce, navStart: be, navEnd: we, previousMonth: Q, nextMonth: X, goToMonth: te } = T, Pe = Da(j, t, be, we, i), { isSelected: Fe, select: Be, selected: Ne } = hs(t, i) ?? {}, { blur: st, focused: it, isFocusTarget: sn, moveFocus: ct, setFocused: Ye } = ss(t, T, Pe, Fe ?? (() => !1), i), { labelDayButton: cn, labelGridcell: un, labelGrid: ln, labelMonthDropdown: dn, labelNav: ut, labelPrevious: fn, labelNext: hn, labelWeekday: mn, labelWeekNumber: yn, labelWeekNumberHeader: gn, labelYearDropdown: bn } = s, wn = xe(() => Ra(i, t.ISOWeek, t.broadcastCalendar, t.today), [i, t.ISOWeek, t.broadcastCalendar, t.today]), lt = d !== void 0 || O !== void 0, Ie = U(() => {
2706
+ const { captionLayout: u, mode: d, navLayout: l, numberOfMonths: m = 1, onDayBlur: b, onDayClick: O, onDayFocus: S, onDayKeyDown: D, onDayMouseEnter: W, onDayMouseLeave: h, onNextClick: p, onPrevClick: k, showWeekNumber: w, styles: y } = t, { formatCaption: C, formatDay: P, formatMonthDropdown: H, formatWeekNumber: F, formatWeekNumberHeader: V, formatWeekdayName: Z, formatYearDropdown: J } = o, T = rs(t, i), { days: j, months: ce, navStart: be, navEnd: we, previousMonth: Q, nextMonth: X, goToMonth: te } = T, Ee = Da(j, t, be, we, i), { isSelected: Fe, select: Be, selected: Ne } = hs(t, i) ?? {}, { blur: at, focused: st, isFocusTarget: cn, moveFocus: it, setFocused: Ye } = ss(t, T, Ee, Fe ?? (() => !1), i), { labelDayButton: un, labelGridcell: ln, labelGrid: dn, labelMonthDropdown: fn, labelNav: ct, labelPrevious: hn, labelNext: mn, labelWeekday: yn, labelWeekNumber: gn, labelWeekNumberHeader: bn, labelYearDropdown: wn } = s, pn = Te(() => Ra(i, t.ISOWeek, t.broadcastCalendar, t.today), [i, t.ISOWeek, t.broadcastCalendar, t.today]), ut = d !== void 0 || O !== void 0, Ie = U(() => {
2708
2707
  Q && (te(Q), k?.(Q));
2709
2708
  }, [Q, te, k]), He = U(() => {
2710
2709
  X && (te(X), p?.(X));
2711
- }, [te, X, p]), pn = U((v, _) => (M) => {
2710
+ }, [te, X, p]), Mn = U((v, _) => (M) => {
2712
2711
  M.preventDefault(), M.stopPropagation(), Ye(v), !_.disabled && (Be?.(v.date, _, M), O?.(v.date, _, M));
2713
- }, [Be, O, Ye]), Mn = U((v, _) => (M) => {
2712
+ }, [Be, O, Ye]), kn = U((v, _) => (M) => {
2714
2713
  Ye(v), S?.(v.date, _, M);
2715
- }, [S, Ye]), kn = U((v, _) => (M) => {
2716
- st(), b?.(v.date, _, M);
2717
- }, [st, b]), Dn = U((v, _) => (M) => {
2714
+ }, [S, Ye]), Dn = U((v, _) => (M) => {
2715
+ at(), b?.(v.date, _, M);
2716
+ }, [at, b]), vn = U((v, _) => (M) => {
2718
2717
  const x = {
2719
2718
  ArrowLeft: [
2720
2719
  M.shiftKey ? "month" : "day",
@@ -2734,30 +2733,30 @@ function ms(e) {
2734
2733
  if (x[M.key]) {
2735
2734
  M.preventDefault(), M.stopPropagation();
2736
2735
  const [R, N] = x[M.key];
2737
- ct(R, N);
2736
+ it(R, N);
2738
2737
  }
2739
2738
  D?.(v.date, _, M);
2740
- }, [ct, D, t.dir]), vn = U((v, _) => (M) => {
2739
+ }, [it, D, t.dir]), On = U((v, _) => (M) => {
2741
2740
  W?.(v.date, _, M);
2742
- }, [W]), On = U((v, _) => (M) => {
2741
+ }, [W]), Wn = U((v, _) => (M) => {
2743
2742
  h?.(v.date, _, M);
2744
- }, [h]), Wn = U((v) => (_) => {
2743
+ }, [h]), Cn = U((v) => (_) => {
2745
2744
  const M = Number(_.target.value), x = i.setMonth(i.startOfMonth(v), M);
2746
2745
  te(x);
2747
- }, [i, te]), Cn = U((v) => (_) => {
2746
+ }, [i, te]), Sn = U((v) => (_) => {
2748
2747
  const M = Number(_.target.value), x = i.setYear(i.startOfMonth(v), M);
2749
2748
  te(x);
2750
- }, [i, te]), { className: Sn, style: Nn } = xe(() => ({
2749
+ }, [i, te]), { className: Nn, style: Yn } = Te(() => ({
2751
2750
  className: [c[g.Root], t.className].filter(Boolean).join(" "),
2752
2751
  style: { ...y?.[g.Root], ...t.style }
2753
- }), [c, t.className, t.style, y]), Yn = Wa(t), dt = Te(null);
2754
- Xa(dt, !!t.animate, {
2752
+ }), [c, t.className, t.style, y]), Tn = Wa(t), lt = ve(null);
2753
+ Xa(lt, !!t.animate, {
2755
2754
  classNames: c,
2756
2755
  months: ce,
2757
- focused: it,
2756
+ focused: st,
2758
2757
  dateLib: i
2759
2758
  });
2760
- const Tn = {
2759
+ const xn = {
2761
2760
  dayPickerProps: t,
2762
2761
  selected: Ne,
2763
2762
  select: Be,
@@ -2766,7 +2765,7 @@ function ms(e) {
2766
2765
  nextMonth: X,
2767
2766
  previousMonth: Q,
2768
2767
  goToMonth: te,
2769
- getModifiers: Pe,
2768
+ getModifiers: Ee,
2770
2769
  components: r,
2771
2770
  classNames: c,
2772
2771
  styles: y,
@@ -2774,15 +2773,15 @@ function ms(e) {
2774
2773
  formatters: o
2775
2774
  };
2776
2775
  return f.createElement(
2777
- $t.Provider,
2778
- { value: Tn },
2776
+ Gt.Provider,
2777
+ { value: xn },
2779
2778
  f.createElement(
2780
2779
  r.Root,
2781
- { rootRef: t.animate ? dt : void 0, className: Sn, style: Nn, dir: t.dir, id: t.id, lang: t.lang ?? a.code, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], "aria-labelledby": t["aria-labelledby"], ...Yn },
2780
+ { rootRef: t.animate ? lt : void 0, className: Nn, style: Yn, dir: t.dir, id: t.id, lang: t.lang ?? a.code, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], "aria-labelledby": t["aria-labelledby"], ...Tn },
2782
2781
  f.createElement(
2783
2782
  r.Months,
2784
2783
  { className: c[g.Months], style: y?.[g.Months] },
2785
- !t.hideNavigation && !l && f.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: c[g.Nav], style: y?.[g.Nav], "aria-label": ut(), onPreviousClick: Ie, onNextClick: He, previousMonth: Q, nextMonth: X }),
2784
+ !t.hideNavigation && !l && f.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: c[g.Nav], style: y?.[g.Nav], "aria-label": ct(), onPreviousClick: Ie, onNextClick: He, previousMonth: Q, nextMonth: X }),
2786
2785
  ce.map((v, _) => f.createElement(
2787
2786
  r.Month,
2788
2787
  {
@@ -2796,14 +2795,14 @@ function ms(e) {
2796
2795
  },
2797
2796
  l === "around" && !t.hideNavigation && _ === 0 && f.createElement(
2798
2797
  r.PreviousMonthButton,
2799
- { type: "button", className: c[g.PreviousMonthButton], tabIndex: Q ? void 0 : -1, "aria-disabled": Q ? void 0 : !0, "aria-label": fn(Q), onClick: Ie, "data-animated-button": t.animate ? "true" : void 0 },
2798
+ { type: "button", className: c[g.PreviousMonthButton], tabIndex: Q ? void 0 : -1, "aria-disabled": Q ? void 0 : !0, "aria-label": hn(Q), onClick: Ie, "data-animated-button": t.animate ? "true" : void 0 },
2800
2799
  f.createElement(r.Chevron, { disabled: Q ? void 0 : !0, className: c[g.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
2801
2800
  ),
2802
2801
  f.createElement(r.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: c[g.MonthCaption], style: y?.[g.MonthCaption], calendarMonth: v, displayIndex: _ }, u?.startsWith("dropdown") ? f.createElement(
2803
2802
  r.DropdownNav,
2804
2803
  { className: c[g.Dropdowns], style: y?.[g.Dropdowns] },
2805
2804
  (() => {
2806
- const M = u === "dropdown" || u === "dropdown-months" ? f.createElement(r.MonthsDropdown, { key: "month", className: c[g.MonthsDropdown], "aria-label": dn(), classNames: c, components: r, disabled: !!t.disableNavigation, onChange: Wn(v.date), options: qa(v.date, be, we, o, i), style: y?.[g.Dropdown], value: i.getMonth(v.date) }) : f.createElement("span", { key: "month" }, H(v.date, i)), x = u === "dropdown" || u === "dropdown-years" ? f.createElement(r.YearsDropdown, { key: "year", className: c[g.YearsDropdown], "aria-label": bn(i.options), classNames: c, components: r, disabled: !!t.disableNavigation, onChange: Cn(v.date), options: $a(be, we, o, i, !!t.reverseYears), style: y?.[g.Dropdown], value: i.getYear(v.date) }) : f.createElement("span", { key: "year" }, J(v.date, i));
2805
+ const M = u === "dropdown" || u === "dropdown-months" ? f.createElement(r.MonthsDropdown, { key: "month", className: c[g.MonthsDropdown], "aria-label": fn(), classNames: c, components: r, disabled: !!t.disableNavigation, onChange: Cn(v.date), options: qa(v.date, be, we, o, i), style: y?.[g.Dropdown], value: i.getMonth(v.date) }) : f.createElement("span", { key: "month" }, H(v.date, i)), x = u === "dropdown" || u === "dropdown-years" ? f.createElement(r.YearsDropdown, { key: "year", className: c[g.YearsDropdown], "aria-label": wn(i.options), classNames: c, components: r, disabled: !!t.disableNavigation, onChange: Sn(v.date), options: $a(be, we, o, i, !!t.reverseYears), style: y?.[g.Dropdown], value: i.getYear(v.date) }) : f.createElement("span", { key: "year" }, J(v.date, i));
2807
2806
  return i.getMonthYearOrder() === "year-first" ? [x, M] : [M, x];
2808
2807
  })(),
2809
2808
  f.createElement("span", { role: "status", "aria-live": "polite", style: {
@@ -2821,33 +2820,33 @@ function ms(e) {
2821
2820
  ) : f.createElement(r.CaptionLabel, { className: c[g.CaptionLabel], role: "status", "aria-live": "polite" }, C(v.date, i.options, i))),
2822
2821
  l === "around" && !t.hideNavigation && _ === m - 1 && f.createElement(
2823
2822
  r.NextMonthButton,
2824
- { type: "button", className: c[g.NextMonthButton], tabIndex: X ? void 0 : -1, "aria-disabled": X ? void 0 : !0, "aria-label": hn(X), onClick: He, "data-animated-button": t.animate ? "true" : void 0 },
2823
+ { type: "button", className: c[g.NextMonthButton], tabIndex: X ? void 0 : -1, "aria-disabled": X ? void 0 : !0, "aria-label": mn(X), onClick: He, "data-animated-button": t.animate ? "true" : void 0 },
2825
2824
  f.createElement(r.Chevron, { disabled: X ? void 0 : !0, className: c[g.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
2826
2825
  ),
2827
- _ === m - 1 && l === "after" && !t.hideNavigation && f.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: c[g.Nav], style: y?.[g.Nav], "aria-label": ut(), onPreviousClick: Ie, onNextClick: He, previousMonth: Q, nextMonth: X }),
2826
+ _ === m - 1 && l === "after" && !t.hideNavigation && f.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: c[g.Nav], style: y?.[g.Nav], "aria-label": ct(), onPreviousClick: Ie, onNextClick: He, previousMonth: Q, nextMonth: X }),
2828
2827
  f.createElement(
2829
2828
  r.MonthGrid,
2830
- { role: "grid", "aria-multiselectable": d === "multiple" || d === "range", "aria-label": ln(v.date, i.options, i) || void 0, className: c[g.MonthGrid], style: y?.[g.MonthGrid] },
2829
+ { role: "grid", "aria-multiselectable": d === "multiple" || d === "range", "aria-label": dn(v.date, i.options, i) || void 0, className: c[g.MonthGrid], style: y?.[g.MonthGrid] },
2831
2830
  !t.hideWeekdays && f.createElement(
2832
2831
  r.Weekdays,
2833
2832
  { "data-animated-weekdays": t.animate ? "true" : void 0, className: c[g.Weekdays], style: y?.[g.Weekdays] },
2834
- w && f.createElement(r.WeekNumberHeader, { "aria-label": gn(i.options), className: c[g.WeekNumberHeader], style: y?.[g.WeekNumberHeader], scope: "col" }, V()),
2835
- wn.map((M) => f.createElement(r.Weekday, { "aria-label": mn(M, i.options, i), className: c[g.Weekday], key: String(M), style: y?.[g.Weekday], scope: "col" }, Z(M, i.options, i)))
2833
+ w && f.createElement(r.WeekNumberHeader, { "aria-label": bn(i.options), className: c[g.WeekNumberHeader], style: y?.[g.WeekNumberHeader], scope: "col" }, V()),
2834
+ pn.map((M) => f.createElement(r.Weekday, { "aria-label": yn(M, i.options, i), className: c[g.Weekday], key: String(M), style: y?.[g.Weekday], scope: "col" }, Z(M, i.options, i)))
2836
2835
  ),
2837
2836
  f.createElement(r.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: c[g.Weeks], style: y?.[g.Weeks] }, v.weeks.map((M) => f.createElement(
2838
2837
  r.Week,
2839
2838
  { className: c[g.Week], key: M.weekNumber, style: y?.[g.Week], week: M },
2840
- w && f.createElement(r.WeekNumber, { week: M, style: y?.[g.WeekNumber], "aria-label": yn(M.weekNumber, {
2839
+ w && f.createElement(r.WeekNumber, { week: M, style: y?.[g.WeekNumber], "aria-label": gn(M.weekNumber, {
2841
2840
  locale: a
2842
2841
  }), className: c[g.WeekNumber], scope: "row", role: "rowheader" }, F(M.weekNumber, i)),
2843
2842
  M.days.map((x) => {
2844
- const { date: R } = x, N = Pe(x);
2845
- if (N[I.focused] = !N.hidden && !!it?.isEqualTo(x), N[ee.selected] = Fe?.(R) || N.selected, _e(Ne)) {
2843
+ const { date: R } = x, N = Ee(x);
2844
+ if (N[I.focused] = !N.hidden && !!st?.isEqualTo(x), N[ee.selected] = Fe?.(R) || N.selected, _e(Ne)) {
2846
2845
  const { from: Ae, to: qe } = Ne;
2847
2846
  N[ee.range_start] = !!(Ae && qe && i.isSameDay(R, Ae)), N[ee.range_end] = !!(Ae && qe && i.isSameDay(R, qe)), N[ee.range_middle] = ae(Ne, R, !0, i);
2848
2847
  }
2849
- const xn = ja(N, y, t.modifiersStyles), _n = va(N, c, t.modifiersClassNames), En = !lt && !N.hidden ? un(R, N, i.options, i) : void 0;
2850
- return f.createElement(r.Day, { key: `${x.isoDate}_${x.displayMonthId}`, day: x, modifiers: N, className: _n.join(" "), style: xn, role: "gridcell", "aria-selected": N.selected || void 0, "aria-label": En, "data-day": x.isoDate, "data-month": x.outside ? x.dateMonthId : void 0, "data-selected": N.selected || void 0, "data-disabled": N.disabled || void 0, "data-hidden": N.hidden || void 0, "data-outside": x.outside || void 0, "data-focused": N.focused || void 0, "data-today": N.today || void 0 }, !N.hidden && lt ? f.createElement(r.DayButton, { className: c[g.DayButton], style: y?.[g.DayButton], type: "button", day: x, modifiers: N, disabled: !N.focused && N.disabled || void 0, "aria-disabled": N.focused && N.disabled || void 0, tabIndex: sn(x) ? 0 : -1, "aria-label": cn(R, N, i.options, i), onClick: pn(x, N), onBlur: kn(x, N), onFocus: Mn(x, N), onKeyDown: Dn(x, N), onMouseEnter: vn(x, N), onMouseLeave: On(x, N) }, E(R, i.options, i)) : !N.hidden && E(x.date, i.options, i));
2848
+ const _n = ja(N, y, t.modifiersStyles), Pn = va(N, c, t.modifiersClassNames), En = !ut && !N.hidden ? ln(R, N, i.options, i) : void 0;
2849
+ return f.createElement(r.Day, { key: `${x.isoDate}_${x.displayMonthId}`, day: x, modifiers: N, className: Pn.join(" "), style: _n, role: "gridcell", "aria-selected": N.selected || void 0, "aria-label": En, "data-day": x.isoDate, "data-month": x.outside ? x.dateMonthId : void 0, "data-selected": N.selected || void 0, "data-disabled": N.disabled || void 0, "data-hidden": N.hidden || void 0, "data-outside": x.outside || void 0, "data-focused": N.focused || void 0, "data-today": N.today || void 0 }, !N.hidden && ut ? f.createElement(r.DayButton, { className: c[g.DayButton], style: y?.[g.DayButton], type: "button", day: x, modifiers: N, disabled: !N.focused && N.disabled || void 0, "aria-disabled": N.focused && N.disabled || void 0, tabIndex: cn(x) ? 0 : -1, "aria-label": un(R, N, i.options, i), onClick: Mn(x, N), onBlur: Dn(x, N), onFocus: kn(x, N), onKeyDown: vn(x, N), onMouseEnter: On(x, N), onMouseLeave: Wn(x, N) }, P(R, i.options, i)) : !N.hidden && P(x.date, i.options, i));
2851
2850
  })
2852
2851
  )))
2853
2852
  )
@@ -2857,7 +2856,7 @@ function ms(e) {
2857
2856
  )
2858
2857
  );
2859
2858
  }
2860
- const an = ve.createContext({
2859
+ const sn = St({
2861
2860
  size: "md"
2862
2861
  });
2863
2862
  function ys({ className: e, rootRef: t, ...n }) {
@@ -2923,17 +2922,17 @@ function Ys({
2923
2922
  onDayClick: D,
2924
2923
  ...W
2925
2924
  }) {
2926
- const h = Vt(), [p, k] = ve.useState(), w = (W.numberOfMonths ?? 1) === 1, y = W.onSelect, C = W.onSelect, E = !!b?.length, H = a === "sm" ? "max-w-[15.5rem]" : a === "md" ? "max-w-[20rem]" : "max-w-[20.5rem]", F = ye(O ?? /* @__PURE__ */ new Date()), V = (T) => {
2925
+ const h = Qt(), [p, k] = xe(), w = (W.numberOfMonths ?? 1) === 1, y = W.onSelect, C = W.onSelect, P = !!b?.length, H = a === "sm" ? "max-w-[15.5rem]" : a === "md" ? "max-w-[20rem]" : "max-w-[20.5rem]", F = ye(O ?? /* @__PURE__ */ new Date()), V = (T) => {
2927
2926
  if (W.mode === "range") {
2928
2927
  const be = F.getTime() <= T.getTime() ? F : T, we = F.getTime() <= T.getTime() ? T : F;
2929
2928
  C?.({ from: be, to: we }, T, {}, {});
2930
2929
  return;
2931
2930
  }
2932
2931
  y?.(T, T, {}, {});
2933
- }, Z = l ?? (E ? /* @__PURE__ */ G(Pn, { children: b.map((T) => {
2934
- const j = Ze(F, T.days);
2932
+ }, Z = l ?? (P ? /* @__PURE__ */ G(Fn, { children: b.map((T) => {
2933
+ const j = Ke(F, T.days);
2935
2934
  return /* @__PURE__ */ G(
2936
- Nt,
2935
+ Yt,
2937
2936
  {
2938
2937
  variant: "outlined",
2939
2938
  size: "xs",
@@ -2946,8 +2945,8 @@ function Ys({
2946
2945
  `${T.text}-${T.days}`
2947
2946
  );
2948
2947
  }) }) : null), J = Z != null || !!m;
2949
- return /* @__PURE__ */ ft(An, { className: Y(mr, n), children: [
2950
- /* @__PURE__ */ G(qn, { className: fr({ size: a }), children: /* @__PURE__ */ G(an, { value: { locale: c, size: a, lastClickedDay: p, mode: W.mode }, children: /* @__PURE__ */ G(
2948
+ return /* @__PURE__ */ dt(An, { className: Y(mr, n), children: [
2949
+ /* @__PURE__ */ G(qn, { className: fr({ size: a }), children: /* @__PURE__ */ G(sn, { value: { locale: c, size: a, lastClickedDay: p, mode: W.mode }, children: /* @__PURE__ */ G(
2951
2950
  ms,
2952
2951
  {
2953
2952
  showOutsideDays: o,
@@ -2964,13 +2963,13 @@ function Ys({
2964
2963
  month: Y(ur, h.month),
2965
2964
  nav: Y(cr, h.nav),
2966
2965
  button_previous: Y(
2967
- ht({ variant: i }),
2968
- mt,
2966
+ ft({ variant: i }),
2967
+ ht,
2969
2968
  h.button_previous
2970
2969
  ),
2971
2970
  button_next: Y(
2972
- ht({ variant: i }),
2973
- mt,
2971
+ ft({ variant: i }),
2972
+ ht,
2974
2973
  h.button_next
2975
2974
  ),
2976
2975
  month_caption: Y(
@@ -3041,13 +3040,13 @@ function Ys({
3041
3040
  ...W
3042
3041
  }
3043
3042
  ) }) }),
3044
- J && /* @__PURE__ */ ft(
3043
+ J && /* @__PURE__ */ dt(
3045
3044
  jn,
3046
3045
  {
3047
3046
  className: Y(
3048
3047
  hr({ size: a }),
3049
- E && "justify-center gap-2.5",
3050
- w && E && H,
3048
+ P && "justify-center gap-2.5",
3049
+ w && P && H,
3051
3050
  r
3052
3051
  ),
3053
3052
  children: [
@@ -3065,16 +3064,11 @@ function ws({
3065
3064
  children: r,
3066
3065
  ...o
3067
3066
  }) {
3068
- const {
3069
- locale: s,
3070
- size: i,
3071
- lastClickedDay: a,
3072
- mode: c
3073
- } = ve.use(an), u = ve.useRef(null);
3074
- return ve.useEffect(() => {
3067
+ const { locale: s, size: i, lastClickedDay: a, mode: c } = Hn(sn), u = ve(null);
3068
+ return Nt(() => {
3075
3069
  n.focused && u.current?.focus();
3076
3070
  }, [n.focused]), /* @__PURE__ */ G(
3077
- Nt,
3071
+ Yt,
3078
3072
  {
3079
3073
  ref: u,
3080
3074
  variant: "ghost",
@@ -3110,9 +3104,9 @@ export {
3110
3104
  $e as b,
3111
3105
  Me as c,
3112
3106
  eo as d,
3113
- jt as e,
3107
+ Rt as e,
3114
3108
  ws as f,
3115
3109
  ge as n,
3116
3110
  me as s
3117
3111
  };
3118
- //# sourceMappingURL=calendar-C0DXP3T-.js.map
3112
+ //# sourceMappingURL=calendar-Ba3kHG6w.js.map