@g4rcez/components 4.1.3 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai/docs/AnimatedList.md +1 -1
- package/ai/docs/Autocomplete.md +2 -2
- package/ai/docs/Button.md +1 -1
- package/ai/docs/Card.md +7 -7
- package/ai/docs/DatePicker.md +2 -2
- package/ai/docs/Dropdown.md +7 -7
- package/ai/docs/Expand.md +5 -5
- package/ai/docs/Input.md +3 -3
- package/ai/docs/InputField.md +24 -14
- package/ai/docs/List.md +1 -1
- package/ai/docs/Modal.md +4 -4
- package/ai/docs/MultiSelect.md +2 -2
- package/ai/docs/PageCalendar.md +2 -2
- package/ai/docs/Polymorph.md +1 -1
- package/ai/docs/Resizable.md +3 -3
- package/ai/docs/Select.md +2 -2
- package/ai/docs/Skeleton.md +1 -1
- package/ai/docs/Slot.md +3 -3
- package/ai/docs/Spinner.md +1 -1
- package/ai/docs/Stats.md +1 -1
- package/ai/docs/Step.md +1 -1
- package/ai/docs/Tabs.md +1 -1
- package/ai/docs/Tag.md +1 -1
- package/ai/docs/TaskList.md +3 -3
- package/ai/docs/Textarea.md +2 -2
- package/ai/docs/Tooltip.md +13 -9
- package/ai/docs/Typography.md +1 -1
- package/ai/docs/index.md +17 -17
- package/dist/CaretDown.es-BXl0Ixp3.js +23 -0
- package/dist/CaretDown.es-BXl0Ixp3.js.map +1 -0
- package/dist/CaretRight.es-B2mpMfqU.js +23 -0
- package/dist/CaretRight.es-B2mpMfqU.js.map +1 -0
- package/dist/CheckCircle.es-BB91gLT-.js +23 -0
- package/dist/CheckCircle.es-BB91gLT-.js.map +1 -0
- package/dist/File.es-CjNVQ00B.js +23 -0
- package/dist/File.es-CjNVQ00B.js.map +1 -0
- package/dist/IconBase.es-BlJQ9IXo.js +27 -0
- package/dist/IconBase.es-BlJQ9IXo.js.map +1 -0
- package/dist/Info.es-Dvln8pws.js +23 -0
- package/dist/Info.es-Dvln8pws.js.map +1 -0
- package/dist/MotionConfig-BLwtdAWy.js +27 -0
- package/dist/MotionConfig-BLwtdAWy.js.map +1 -0
- package/dist/MotionConfigContext-BORpSKe8.js +2571 -0
- package/dist/MotionConfigContext-BORpSKe8.js.map +1 -0
- package/dist/Warning.es-B_xCn-P5.js +23 -0
- package/dist/Warning.es-B_xCn-P5.js.map +1 -0
- package/dist/X.es-Cjq2a_OA.js +23 -0
- package/dist/X.es-Cjq2a_OA.js.map +1 -0
- package/dist/animate-BNYgkk_j.js +387 -0
- package/dist/animate-BNYgkk_j.js.map +1 -0
- package/dist/autocomplete-DVKTP0Il.js +415 -0
- package/dist/autocomplete-DVKTP0Il.js.map +1 -0
- package/dist/calendar-_DZjphH8.js +1678 -0
- package/dist/calendar-_DZjphH8.js.map +1 -0
- package/dist/components/core/button.js +75 -75
- package/dist/components/core/button.js.map +1 -1
- package/dist/components/core/tag.js +66 -66
- package/dist/components/core/tag.js.map +1 -1
- package/dist/components/display/alert.js +133 -95
- package/dist/components/display/alert.js.map +1 -1
- package/dist/components/display/calendar.js +3 -15
- package/dist/components/display/card.js +73 -82
- package/dist/components/display/card.js.map +1 -1
- package/dist/components/display/list.js +153 -93
- package/dist/components/display/list.js.map +1 -1
- package/dist/components/display/notifications.js +3 -15
- package/dist/components/display/stats.js +30 -16
- package/dist/components/display/stats.js.map +1 -1
- package/dist/components/display/tabs.js +3 -12
- package/dist/components/display/timeline.js +47 -28
- package/dist/components/display/timeline.js.map +1 -1
- package/dist/components/floating/dropdown.js +76 -65
- package/dist/components/floating/dropdown.js.map +1 -1
- package/dist/components/floating/expand.js +62 -40
- package/dist/components/floating/expand.js.map +1 -1
- package/dist/components/floating/menu.js +195 -177
- package/dist/components/floating/menu.js.map +1 -1
- package/dist/components/floating/modal.js +3 -301
- package/dist/components/floating/tooltip.js +63 -73
- package/dist/components/floating/tooltip.js.map +1 -1
- package/dist/components/form/autocomplete.js +3 -16
- package/dist/components/form/checkbox.js +34 -44
- package/dist/components/form/checkbox.js.map +1 -1
- package/dist/components/form/date-picker.js +3 -12
- package/dist/components/form/file-upload.js +3 -11
- package/dist/components/form/form.js +16 -7
- package/dist/components/form/form.js.map +1 -1
- package/dist/components/form/input.js +3 -5
- package/dist/components/form/radiobox.js +19 -30
- package/dist/components/form/radiobox.js.map +1 -1
- package/dist/components/form/select.js +77 -106
- package/dist/components/form/select.js.map +1 -1
- package/dist/components/form/switch.js +73 -64
- package/dist/components/form/switch.js.map +1 -1
- package/dist/components/form/task-list.js +3 -68
- package/dist/components/table/table.js +3 -10
- package/dist/date-picker-9q_Ki5Vu.js +1498 -0
- package/dist/date-picker-9q_Ki5Vu.js.map +1 -0
- package/dist/dist-BHFtgf5x.js +2593 -0
- package/dist/dist-BHFtgf5x.js.map +1 -0
- package/dist/dist-Buc00Zls.js +177 -0
- package/dist/dist-Buc00Zls.js.map +1 -0
- package/dist/dist-NmFtbuK4.js +35 -0
- package/dist/dist-NmFtbuK4.js.map +1 -0
- package/dist/dom-Bn4wY_Zx.js +2168 -0
- package/dist/dom-Bn4wY_Zx.js.map +1 -0
- package/dist/file-upload-COk6_Bs5.js +2966 -0
- package/dist/file-upload-COk6_Bs5.js.map +1 -0
- package/dist/floating-ui.react-CwXtBJ_y.js +3381 -0
- package/dist/floating-ui.react-CwXtBJ_y.js.map +1 -0
- package/dist/floating-ui.utils-CUrVRSbA.js +204 -0
- package/dist/floating-ui.utils-CUrVRSbA.js.map +1 -0
- package/dist/fns-KbsWlOTG.js +29 -0
- package/dist/fns-KbsWlOTG.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +7933 -20
- package/dist/index.js.map +1 -1
- package/dist/input-B7jqwPG4.js +473 -0
- package/dist/input-B7jqwPG4.js.map +1 -0
- package/dist/input-field-B_whI66Q.js +137 -0
- package/dist/input-field-B_whI66Q.js.map +1 -0
- package/dist/modal-Cn-OaKRp.js +373 -0
- package/dist/modal-Cn-OaKRp.js.map +1 -0
- package/dist/notifications-l_B9J4Gx.js +2202 -0
- package/dist/notifications-l_B9J4Gx.js.map +1 -0
- package/dist/polymorph-BLXhrn9n.js +14 -0
- package/dist/polymorph-BLXhrn9n.js.map +1 -0
- package/dist/preset/preset.tailwind.d.ts.map +1 -1
- package/dist/preset/preset.tailwind.js +40 -4
- package/dist/preset/src/styles/common.d.ts +0 -2
- package/dist/preset/src/styles/common.d.ts.map +1 -1
- package/dist/preset/src/styles/common.js +0 -9
- package/dist/preset/src/styles/components.d.ts +3 -0
- package/dist/preset/src/styles/components.d.ts.map +1 -0
- package/dist/preset/src/styles/components.js +400 -0
- package/dist/preset/src/styles/dark.d.ts.map +1 -1
- package/dist/preset/src/styles/dark.js +5 -3
- package/dist/preset/src/styles/default-tokens.d.ts +74 -0
- package/dist/preset/src/styles/default-tokens.d.ts.map +1 -0
- package/dist/preset/src/styles/default-tokens.js +44 -0
- package/dist/preset/src/styles/design-tokens.d.ts +1 -1
- package/dist/preset/src/styles/design-tokens.d.ts.map +1 -1
- package/dist/preset/src/styles/design-tokens.js +6 -2
- package/dist/preset/src/styles/light.d.ts.map +1 -1
- package/dist/preset/src/styles/light.js +22 -20
- package/dist/preset/src/styles/theme.types.d.ts +433 -8
- package/dist/preset/src/styles/theme.types.d.ts.map +1 -1
- package/dist/proxy-Drpz0Avo.js +2533 -0
- package/dist/proxy-Drpz0Avo.js.map +1 -0
- package/dist/skeleton-CBYEq3lM.js +26 -0
- package/dist/skeleton-CBYEq3lM.js.map +1 -0
- package/dist/slot-pC8kH9De.js +96 -0
- package/dist/slot-pC8kH9De.js.map +1 -0
- package/dist/{components → src/components}/core/button.d.ts +1 -1
- package/dist/src/components/core/button.d.ts.map +1 -0
- package/dist/{components → src/components}/core/button.jsx +10 -10
- package/dist/src/components/core/heading.d.ts.map +1 -0
- package/dist/src/components/core/polymorph.d.ts.map +1 -0
- package/dist/src/components/core/render-on-view.d.ts.map +1 -0
- package/dist/{components → src/components}/core/render-on-view.jsx +1 -1
- package/dist/src/components/core/resizable.d.ts.map +1 -0
- package/dist/{components → src/components}/core/resizable.jsx +2 -2
- package/dist/src/components/core/slot.d.ts.map +1 -0
- package/dist/src/components/core/tag.d.ts.map +1 -0
- package/dist/{components → src/components}/core/tag.jsx +10 -8
- package/dist/src/components/core/typography.d.ts.map +1 -0
- package/dist/{components → src/components}/core/typography.jsx +8 -6
- package/dist/src/components/display/alert.d.ts.map +1 -0
- package/dist/{components → src/components}/display/alert.jsx +6 -6
- package/dist/src/components/display/calendar.d.ts.map +1 -0
- package/dist/{components → src/components}/display/calendar.jsx +40 -21
- package/dist/src/components/display/card.d.ts.map +1 -0
- package/dist/{components → src/components}/display/card.jsx +10 -10
- package/dist/src/components/display/empty.d.ts.map +1 -0
- package/dist/{components → src/components}/display/empty.jsx +1 -1
- package/dist/src/components/display/list.d.ts.map +1 -0
- package/dist/{components → src/components}/display/list.jsx +15 -11
- package/dist/{components → src/components}/display/notifications.d.ts +1 -1
- package/dist/src/components/display/notifications.d.ts.map +1 -0
- package/dist/{components → src/components}/display/notifications.jsx +13 -9
- package/dist/{components → src/components}/display/progress.d.ts +4 -1
- package/dist/src/components/display/progress.d.ts.map +1 -0
- package/dist/src/components/display/progress.jsx +21 -0
- package/dist/src/components/display/shortcut.d.ts.map +1 -0
- package/dist/{components → src/components}/display/shortcut.jsx +1 -1
- package/dist/src/components/display/skeleton.d.ts.map +1 -0
- package/dist/{components → src/components}/display/skeleton.jsx +3 -3
- package/dist/src/components/display/spinner.d.ts.map +1 -0
- package/dist/{components → src/components}/display/spinner.jsx +2 -2
- package/dist/src/components/display/stats.d.ts.map +1 -0
- package/dist/src/components/display/stats.jsx +16 -0
- package/dist/src/components/display/step.d.ts.map +1 -0
- package/dist/{components → src/components}/display/step.jsx +23 -9
- package/dist/src/components/display/tabs.d.ts.map +1 -0
- package/dist/{components → src/components}/display/tabs.jsx +3 -3
- package/dist/src/components/display/timeline.d.ts.map +1 -0
- package/dist/{components → src/components}/display/timeline.jsx +4 -4
- package/dist/src/components/floating/command-palette.d.ts.map +1 -0
- package/dist/{components → src/components}/floating/command-palette.jsx +49 -23
- package/dist/src/components/floating/dropdown.d.ts.map +1 -0
- package/dist/{components → src/components}/floating/dropdown.jsx +4 -4
- package/dist/src/components/floating/expand.d.ts.map +1 -0
- package/dist/src/components/floating/menu.d.ts.map +1 -0
- package/dist/{components → src/components}/floating/menu.jsx +24 -6
- package/dist/src/components/floating/modal.d.ts.map +1 -0
- package/dist/{components → src/components}/floating/modal.jsx +61 -26
- package/dist/src/components/floating/toolbar.d.ts.map +1 -0
- package/dist/{components → src/components}/floating/toolbar.jsx +1 -1
- package/dist/src/components/floating/tooltip.d.ts.map +1 -0
- package/dist/{components → src/components}/floating/tooltip.jsx +14 -5
- package/dist/src/components/floating/wizard.d.ts.map +1 -0
- package/dist/{components → src/components}/floating/wizard.jsx +10 -6
- package/dist/src/components/form/autocomplete.d.ts.map +1 -0
- package/dist/{components → src/components}/form/autocomplete.jsx +28 -16
- package/dist/src/components/form/checkbox.d.ts.map +1 -0
- package/dist/{components → src/components}/form/checkbox.jsx +3 -3
- package/dist/src/components/form/date-picker.d.ts.map +1 -0
- package/dist/{components → src/components}/form/date-picker.jsx +2 -2
- package/dist/src/components/form/file-upload.d.ts.map +1 -0
- package/dist/{components → src/components}/form/file-upload.jsx +18 -14
- package/dist/src/components/form/form.d.ts.map +1 -0
- package/dist/src/components/form/formReset.d.ts.map +1 -0
- package/dist/src/components/form/free-text.d.ts.map +1 -0
- package/dist/{components → src/components}/form/free-text.jsx +1 -1
- package/dist/src/components/form/input-field.d.ts.map +1 -0
- package/dist/{components → src/components}/form/input-field.jsx +7 -7
- package/dist/src/components/form/input.d.ts.map +1 -0
- package/dist/src/components/form/multi-select.d.ts.map +1 -0
- package/dist/{components → src/components}/form/multi-select.jsx +24 -16
- package/dist/{components → src/components}/form/radiobox.d.ts +1 -1
- package/dist/src/components/form/radiobox.d.ts.map +1 -0
- package/dist/src/components/form/radiobox.jsx +6 -0
- package/dist/src/components/form/select.d.ts.map +1 -0
- package/dist/{components → src/components}/form/select.jsx +5 -3
- package/dist/src/components/form/slider.d.ts.map +1 -0
- package/dist/{components → src/components}/form/slider.jsx +3 -3
- package/dist/src/components/form/switch.d.ts.map +1 -0
- package/dist/{components → src/components}/form/switch.jsx +5 -5
- package/dist/src/components/form/task-list.d.ts.map +1 -0
- package/dist/{components → src/components}/form/task-list.jsx +1 -1
- package/dist/src/components/form/textarea.d.ts +5 -0
- package/dist/src/components/form/textarea.d.ts.map +1 -0
- package/dist/src/components/form/textarea.jsx +26 -0
- package/dist/src/components/index.d.ts.map +1 -0
- package/dist/src/components/page-calendar/calendar-header.d.ts.map +1 -0
- package/dist/{components → src/components}/page-calendar/calendar-header.jsx +14 -14
- package/dist/src/components/page-calendar/day-view.d.ts.map +1 -0
- package/dist/{components → src/components}/page-calendar/day-view.jsx +14 -19
- package/dist/src/components/page-calendar/event-pill.d.ts.map +1 -0
- package/dist/{components → src/components}/page-calendar/event-pill.jsx +2 -2
- package/dist/src/components/page-calendar/index.d.ts.map +1 -0
- package/dist/src/components/page-calendar/month-view.d.ts.map +1 -0
- package/dist/{components → src/components}/page-calendar/month-view.jsx +6 -6
- package/dist/src/components/page-calendar/page-calendar.d.ts.map +1 -0
- package/dist/{components → src/components}/page-calendar/page-calendar.jsx +2 -2
- package/dist/src/components/page-calendar/page-calendar.types.d.ts.map +1 -0
- package/dist/src/components/page-calendar/page-calendar.utils.d.ts.map +1 -0
- package/dist/src/components/page-calendar/week-view.d.ts.map +1 -0
- package/dist/{components → src/components}/page-calendar/week-view.jsx +8 -13
- package/dist/src/components/table/filter.d.ts.map +1 -0
- package/dist/{components → src/components}/table/filter.jsx +39 -11
- package/dist/src/components/table/group.d.ts.map +1 -0
- package/dist/{components → src/components}/table/group.jsx +12 -5
- package/dist/src/components/table/index.d.ts.map +1 -0
- package/dist/{components → src/components}/table/index.jsx +5 -2
- package/dist/src/components/table/inner-table.d.ts.map +1 -0
- package/dist/{components → src/components}/table/inner-table.jsx +5 -5
- package/dist/src/components/table/metadata.d.ts.map +1 -0
- package/dist/{components → src/components}/table/metadata.jsx +7 -7
- package/dist/src/components/table/pagination.d.ts.map +1 -0
- package/dist/{components → src/components}/table/pagination.jsx +4 -4
- package/dist/src/components/table/row.d.ts.map +1 -0
- package/dist/{components → src/components}/table/row.jsx +2 -2
- package/dist/src/components/table/sort.d.ts.map +1 -0
- package/dist/{components → src/components}/table/sort.jsx +4 -4
- package/dist/src/components/table/table-lib.d.ts.map +1 -0
- package/dist/src/components/table/table.context.d.ts.map +1 -0
- package/dist/{components → src/components}/table/table.context.jsx +1 -0
- package/dist/src/components/table/thead.d.ts.map +1 -0
- package/dist/{components → src/components}/table/thead.jsx +7 -7
- package/dist/src/config/context.d.ts.map +1 -0
- package/dist/src/config/default-translations.d.ts.map +1 -0
- package/dist/src/config/default-tweaks.d.ts.map +1 -0
- package/dist/src/constants.d.ts.map +1 -0
- package/dist/src/hooks/use-click-outside.d.ts.map +1 -0
- package/dist/src/hooks/use-color-parser.d.ts.map +1 -0
- package/dist/src/hooks/use-components-provider.d.ts.map +1 -0
- package/dist/src/hooks/use-debounce.d.ts.map +1 -0
- package/dist/src/hooks/use-floating-ref.d.ts.map +1 -0
- package/dist/src/hooks/use-form.d.ts.map +1 -0
- package/dist/{hooks → src/hooks}/use-form.js +2 -2
- package/dist/src/hooks/use-hover.d.ts.map +1 -0
- package/dist/{hooks → src/hooks}/use-hover.js +1 -1
- package/dist/src/hooks/use-input-id.d.ts.map +1 -0
- package/dist/src/hooks/use-is-coarse-device.d.ts.map +1 -0
- package/dist/src/hooks/use-locale.d.ts.map +1 -0
- package/dist/src/hooks/use-media-query.d.ts.map +1 -0
- package/dist/{hooks → src/hooks}/use-media-query.js +1 -1
- package/dist/src/hooks/use-on-event.d.ts.map +1 -0
- package/dist/src/hooks/use-on-event.js +10 -0
- package/dist/src/hooks/use-parent.d.ts.map +1 -0
- package/dist/{hooks → src/hooks}/use-parent.js +1 -1
- package/dist/src/hooks/use-preferences.d.ts.map +1 -0
- package/dist/src/hooks/use-previous.d.ts.map +1 -0
- package/dist/src/hooks/use-reactive.d.ts.map +1 -0
- package/dist/src/hooks/use-remove-scroll.d.ts.map +1 -0
- package/dist/src/hooks/use-resize-observer.d.ts.map +1 -0
- package/dist/src/hooks/use-stable-ref.d.ts.map +1 -0
- package/dist/src/hooks/use-swipe.d.ts.map +1 -0
- package/dist/src/hooks/use-translations.d.ts.map +1 -0
- package/dist/src/hooks/use-tweaks.d.ts.map +1 -0
- package/dist/src/hooks/use-window-size.d.ts.map +1 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +20 -0
- package/dist/src/lib/combi-keys.d.ts.map +1 -0
- package/dist/src/lib/dict.d.ts.map +1 -0
- package/dist/src/lib/dom.d.ts.map +1 -0
- package/dist/src/lib/dom.js +185 -0
- package/dist/src/lib/fns.d.ts.map +1 -0
- package/dist/src/lib/fzf.d.ts.map +1 -0
- package/dist/src/lib/keyboard-area.d.ts.map +1 -0
- package/dist/src/styles/common.d.ts +8 -0
- package/dist/src/styles/common.d.ts.map +1 -0
- package/dist/src/styles/common.js +20 -0
- package/dist/src/styles/components.d.ts +3 -0
- package/dist/src/styles/components.d.ts.map +1 -0
- package/dist/src/styles/components.js +397 -0
- package/dist/src/styles/dark.d.ts +3 -0
- package/dist/src/styles/dark.d.ts.map +1 -0
- package/dist/src/styles/dark.js +217 -0
- package/dist/src/styles/default-tokens.d.ts +74 -0
- package/dist/src/styles/default-tokens.d.ts.map +1 -0
- package/dist/src/styles/default-tokens.js +41 -0
- package/dist/src/styles/design-tokens.d.ts +29 -0
- package/dist/src/styles/design-tokens.d.ts.map +1 -0
- package/dist/src/styles/design-tokens.js +73 -0
- package/dist/src/styles/light.d.ts +3 -0
- package/dist/src/styles/light.d.ts.map +1 -0
- package/dist/src/styles/light.js +217 -0
- package/dist/src/styles/theme.d.ts +3 -0
- package/dist/src/styles/theme.d.ts.map +1 -0
- package/dist/src/styles/theme.js +4 -0
- package/dist/src/styles/theme.types.d.ts +540 -0
- package/dist/src/styles/theme.types.d.ts.map +1 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +1 -0
- package/dist/styles/common.d.ts +0 -2
- package/dist/styles/common.d.ts.map +1 -1
- package/dist/styles/common.js +0 -9
- package/dist/styles/components.d.ts +3 -0
- package/dist/styles/components.d.ts.map +1 -0
- package/dist/styles/components.js +400 -0
- package/dist/styles/dark.d.ts.map +1 -1
- package/dist/styles/dark.js +5 -3
- package/dist/styles/default-tokens.d.ts +74 -0
- package/dist/styles/default-tokens.d.ts.map +1 -0
- package/dist/styles/default-tokens.js +44 -0
- package/dist/styles/design-tokens.d.ts +1 -1
- package/dist/styles/design-tokens.d.ts.map +1 -1
- package/dist/styles/design-tokens.js +6 -2
- package/dist/styles/light.d.ts.map +1 -1
- package/dist/styles/light.js +22 -20
- package/dist/styles/theme.types.d.ts +433 -8
- package/dist/styles/theme.types.d.ts.map +1 -1
- package/dist/table-Dql6Yzag.js +1914 -0
- package/dist/table-Dql6Yzag.js.map +1 -0
- package/dist/tabs-Ciy0l9OF.js +122 -0
- package/dist/tabs-Ciy0l9OF.js.map +1 -0
- package/dist/task-list-tKumO4WH.js +96 -0
- package/dist/task-list-tKumO4WH.js.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/use-motion-value-BqPF1j90.js +15 -0
- package/dist/use-motion-value-BqPF1j90.js.map +1 -0
- package/dist/use-stable-ref-D5LFCx0u.js +12 -0
- package/dist/use-stable-ref-D5LFCx0u.js.map +1 -0
- package/dist/use-translations-DTLfPE3_.js +177 -0
- package/dist/use-translations-DTLfPE3_.js.map +1 -0
- package/dist/with-selector-BAUQ-vKK.js +187 -0
- package/dist/with-selector-BAUQ-vKK.js.map +1 -0
- package/package.json +17 -17
- package/dist/CaretDown.es-Cj7klWI3.js +0 -33
- package/dist/CaretDown.es-Cj7klWI3.js.map +0 -1
- package/dist/CaretRight.es-0-M8D9y8.js +0 -33
- package/dist/CaretRight.es-0-M8D9y8.js.map +0 -1
- package/dist/CheckCircle.es-C6QWLfk_.js +0 -33
- package/dist/CheckCircle.es-C6QWLfk_.js.map +0 -1
- package/dist/File.es-CA-vuPED.js +0 -33
- package/dist/File.es-CA-vuPED.js.map +0 -1
- package/dist/IconBase.es-DJ1oCtpo.js +0 -50
- package/dist/IconBase.es-DJ1oCtpo.js.map +0 -1
- package/dist/Info.es-CrZKs4q4.js +0 -33
- package/dist/Info.es-CrZKs4q4.js.map +0 -1
- package/dist/MotionConfigContext-C7MqlSdv.js +0 -2713
- package/dist/MotionConfigContext-C7MqlSdv.js.map +0 -1
- package/dist/Warning.es-D_eI6tLe.js +0 -39
- package/dist/Warning.es-D_eI6tLe.js.map +0 -1
- package/dist/X.es-BJ1O93El.js +0 -39
- package/dist/X.es-BJ1O93El.js.map +0 -1
- package/dist/autocomplete-DcTNOwyg.js +0 -393
- package/dist/autocomplete-DcTNOwyg.js.map +0 -1
- package/dist/calendar-BJMHRoy2.js +0 -1746
- package/dist/calendar-BJMHRoy2.js.map +0 -1
- package/dist/components/core/button.d.ts.map +0 -1
- package/dist/components/core/heading.d.ts.map +0 -1
- package/dist/components/core/polymorph.d.ts.map +0 -1
- package/dist/components/core/render-on-view.d.ts.map +0 -1
- package/dist/components/core/resizable.d.ts.map +0 -1
- package/dist/components/core/slot.d.ts.map +0 -1
- package/dist/components/core/tag.d.ts.map +0 -1
- package/dist/components/core/typography.d.ts.map +0 -1
- package/dist/components/display/alert.d.ts.map +0 -1
- package/dist/components/display/calendar.d.ts.map +0 -1
- package/dist/components/display/calendar.js.map +0 -1
- package/dist/components/display/card.d.ts.map +0 -1
- package/dist/components/display/empty.d.ts.map +0 -1
- package/dist/components/display/list.d.ts.map +0 -1
- package/dist/components/display/notifications.d.ts.map +0 -1
- package/dist/components/display/notifications.js.map +0 -1
- package/dist/components/display/progress.d.ts.map +0 -1
- package/dist/components/display/progress.jsx +0 -11
- package/dist/components/display/shortcut.d.ts.map +0 -1
- package/dist/components/display/skeleton.d.ts.map +0 -1
- package/dist/components/display/spinner.d.ts.map +0 -1
- package/dist/components/display/stats.d.ts.map +0 -1
- package/dist/components/display/stats.jsx +0 -20
- package/dist/components/display/step.d.ts.map +0 -1
- package/dist/components/display/tabs.d.ts.map +0 -1
- package/dist/components/display/tabs.js.map +0 -1
- package/dist/components/display/timeline.d.ts.map +0 -1
- package/dist/components/floating/command-palette.d.ts.map +0 -1
- package/dist/components/floating/dropdown.d.ts.map +0 -1
- package/dist/components/floating/expand.d.ts.map +0 -1
- package/dist/components/floating/menu.d.ts.map +0 -1
- package/dist/components/floating/modal.d.ts.map +0 -1
- package/dist/components/floating/modal.js.map +0 -1
- package/dist/components/floating/toolbar.d.ts.map +0 -1
- package/dist/components/floating/tooltip.d.ts.map +0 -1
- package/dist/components/floating/wizard.d.ts.map +0 -1
- package/dist/components/form/autocomplete.d.ts.map +0 -1
- package/dist/components/form/autocomplete.js.map +0 -1
- package/dist/components/form/checkbox.d.ts.map +0 -1
- package/dist/components/form/date-picker.d.ts.map +0 -1
- package/dist/components/form/date-picker.js.map +0 -1
- package/dist/components/form/file-upload.d.ts.map +0 -1
- package/dist/components/form/file-upload.js.map +0 -1
- package/dist/components/form/form.d.ts.map +0 -1
- package/dist/components/form/formReset.d.ts.map +0 -1
- package/dist/components/form/free-text.d.ts.map +0 -1
- package/dist/components/form/input-field.d.ts.map +0 -1
- package/dist/components/form/input.d.ts.map +0 -1
- package/dist/components/form/input.js.map +0 -1
- package/dist/components/form/multi-select.d.ts.map +0 -1
- package/dist/components/form/radiobox.d.ts.map +0 -1
- package/dist/components/form/radiobox.jsx +0 -6
- package/dist/components/form/select.d.ts.map +0 -1
- package/dist/components/form/slider.d.ts.map +0 -1
- package/dist/components/form/switch.d.ts.map +0 -1
- package/dist/components/form/task-list.d.ts.map +0 -1
- package/dist/components/form/task-list.js.map +0 -1
- package/dist/components/form/textarea.d.ts +0 -6
- package/dist/components/form/textarea.d.ts.map +0 -1
- package/dist/components/form/textarea.jsx +0 -12
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/page-calendar/calendar-header.d.ts.map +0 -1
- package/dist/components/page-calendar/day-view.d.ts.map +0 -1
- package/dist/components/page-calendar/event-pill.d.ts.map +0 -1
- package/dist/components/page-calendar/index.d.ts.map +0 -1
- package/dist/components/page-calendar/month-view.d.ts.map +0 -1
- package/dist/components/page-calendar/page-calendar.d.ts.map +0 -1
- package/dist/components/page-calendar/page-calendar.types.d.ts.map +0 -1
- package/dist/components/page-calendar/page-calendar.utils.d.ts.map +0 -1
- package/dist/components/page-calendar/week-view.d.ts.map +0 -1
- package/dist/components/table/filter.d.ts.map +0 -1
- package/dist/components/table/group.d.ts.map +0 -1
- package/dist/components/table/index.d.ts.map +0 -1
- package/dist/components/table/inner-table.d.ts.map +0 -1
- package/dist/components/table/metadata.d.ts.map +0 -1
- package/dist/components/table/pagination.d.ts.map +0 -1
- package/dist/components/table/row.d.ts.map +0 -1
- package/dist/components/table/sort.d.ts.map +0 -1
- package/dist/components/table/table-lib.d.ts.map +0 -1
- package/dist/components/table/table.context.d.ts.map +0 -1
- package/dist/components/table/table.js.map +0 -1
- package/dist/components/table/thead.d.ts.map +0 -1
- package/dist/config/context.d.ts.map +0 -1
- package/dist/config/default-translations.d.ts.map +0 -1
- package/dist/config/default-tweaks.d.ts.map +0 -1
- package/dist/constants-r-AHn273.js +0 -6
- package/dist/constants-r-AHn273.js.map +0 -1
- package/dist/constants.d.ts.map +0 -1
- package/dist/date-picker-Bnl07nd8.js +0 -1628
- package/dist/date-picker-Bnl07nd8.js.map +0 -1
- package/dist/dom-CyQHY7ID.js +0 -2838
- package/dist/dom-CyQHY7ID.js.map +0 -1
- package/dist/file-upload-93d5DR4q.js +0 -3255
- package/dist/file-upload-93d5DR4q.js.map +0 -1
- package/dist/floating-ui.react-M2PGXLDp.js +0 -3706
- package/dist/floating-ui.react-M2PGXLDp.js.map +0 -1
- package/dist/fns-C7Dt27Qd.js +0 -33
- package/dist/fns-C7Dt27Qd.js.map +0 -1
- package/dist/hooks/use-click-outside.d.ts.map +0 -1
- package/dist/hooks/use-color-parser.d.ts.map +0 -1
- package/dist/hooks/use-components-provider.d.ts.map +0 -1
- package/dist/hooks/use-debounce.d.ts.map +0 -1
- package/dist/hooks/use-floating-ref.d.ts.map +0 -1
- package/dist/hooks/use-form.d.ts.map +0 -1
- package/dist/hooks/use-hover.d.ts.map +0 -1
- package/dist/hooks/use-input-id.d.ts.map +0 -1
- package/dist/hooks/use-is-coarse-device.d.ts.map +0 -1
- package/dist/hooks/use-locale.d.ts.map +0 -1
- package/dist/hooks/use-media-query.d.ts.map +0 -1
- package/dist/hooks/use-on-event.d.ts.map +0 -1
- package/dist/hooks/use-on-event.js +0 -7
- package/dist/hooks/use-parent.d.ts.map +0 -1
- package/dist/hooks/use-preferences.d.ts.map +0 -1
- package/dist/hooks/use-previous.d.ts.map +0 -1
- package/dist/hooks/use-reactive.d.ts.map +0 -1
- package/dist/hooks/use-remove-scroll.d.ts.map +0 -1
- package/dist/hooks/use-resize-observer.d.ts.map +0 -1
- package/dist/hooks/use-stable-ref.d.ts.map +0 -1
- package/dist/hooks/use-swipe.d.ts.map +0 -1
- package/dist/hooks/use-translations.d.ts.map +0 -1
- package/dist/hooks/use-tweaks.d.ts.map +0 -1
- package/dist/hooks/use-window-size.d.ts.map +0 -1
- package/dist/index-0YMC-_Lt.js +0 -20
- package/dist/index-0YMC-_Lt.js.map +0 -1
- package/dist/index-BJ1ayTam.js +0 -126
- package/dist/index-BJ1ayTam.js.map +0 -1
- package/dist/index-C-PuFUZi.js +0 -3416
- package/dist/index-C-PuFUZi.js.map +0 -1
- package/dist/index-DDeQW0JW.js +0 -1816
- package/dist/index-DDeQW0JW.js.map +0 -1
- package/dist/index-DE4shK8D.js +0 -215
- package/dist/index-DE4shK8D.js.map +0 -1
- package/dist/index-DlJ_2RBL.js +0 -35
- package/dist/index-DlJ_2RBL.js.map +0 -1
- package/dist/index-t1qLJTt5.js +0 -351
- package/dist/index-t1qLJTt5.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.esm-BaIwleSE.js +0 -343
- package/dist/index.esm-BaIwleSE.js.map +0 -1
- package/dist/input-_MVxmIpu.js +0 -443
- package/dist/input-_MVxmIpu.js.map +0 -1
- package/dist/input-field-CDCOODOl.js +0 -182
- package/dist/input-field-CDCOODOl.js.map +0 -1
- package/dist/lib/combi-keys.d.ts.map +0 -1
- package/dist/lib/dict.d.ts.map +0 -1
- package/dist/lib/dom.d.ts.map +0 -1
- package/dist/lib/dom.js +0 -66
- package/dist/lib/fns.d.ts.map +0 -1
- package/dist/lib/fzf.d.ts.map +0 -1
- package/dist/lib/keyboard-area.d.ts.map +0 -1
- package/dist/notifications-Dp0ydKJS.js +0 -2576
- package/dist/notifications-Dp0ydKJS.js.map +0 -1
- package/dist/polymorph-B5n9fs_K.js +0 -10
- package/dist/polymorph-B5n9fs_K.js.map +0 -1
- package/dist/proxy-BZcQiBrp.js +0 -2495
- package/dist/proxy-BZcQiBrp.js.map +0 -1
- package/dist/skeleton-BjJobYYf.js +0 -24
- package/dist/skeleton-BjJobYYf.js.map +0 -1
- package/dist/slot-CRyweuj0.js +0 -79
- package/dist/slot-CRyweuj0.js.map +0 -1
- package/dist/tabs-B0g7YtQv.js +0 -123
- package/dist/tabs-B0g7YtQv.js.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/use-motion-value-eGwNuWuw.js +0 -14
- package/dist/use-motion-value-eGwNuWuw.js.map +0 -1
- package/dist/use-stable-ref-CYh-YkID.js +0 -11
- package/dist/use-stable-ref-CYh-YkID.js.map +0 -1
- package/dist/use-translations-DSltA7H_.js +0 -169
- package/dist/use-translations-DSltA7H_.js.map +0 -1
- /package/dist/{components → src/components}/core/heading.d.ts +0 -0
- /package/dist/{components → src/components}/core/heading.jsx +0 -0
- /package/dist/{components → src/components}/core/polymorph.d.ts +0 -0
- /package/dist/{components → src/components}/core/polymorph.jsx +0 -0
- /package/dist/{components → src/components}/core/render-on-view.d.ts +0 -0
- /package/dist/{components → src/components}/core/resizable.d.ts +0 -0
- /package/dist/{components → src/components}/core/slot.d.ts +0 -0
- /package/dist/{components → src/components}/core/slot.jsx +0 -0
- /package/dist/{components → src/components}/core/tag.d.ts +0 -0
- /package/dist/{components → src/components}/core/typography.d.ts +0 -0
- /package/dist/{components → src/components}/display/alert.d.ts +0 -0
- /package/dist/{components → src/components}/display/calendar.d.ts +0 -0
- /package/dist/{components → src/components}/display/card.d.ts +0 -0
- /package/dist/{components → src/components}/display/empty.d.ts +0 -0
- /package/dist/{components → src/components}/display/list.d.ts +0 -0
- /package/dist/{components → src/components}/display/shortcut.d.ts +0 -0
- /package/dist/{components → src/components}/display/skeleton.d.ts +0 -0
- /package/dist/{components → src/components}/display/spinner.d.ts +0 -0
- /package/dist/{components → src/components}/display/stats.d.ts +0 -0
- /package/dist/{components → src/components}/display/step.d.ts +0 -0
- /package/dist/{components → src/components}/display/tabs.d.ts +0 -0
- /package/dist/{components → src/components}/display/timeline.d.ts +0 -0
- /package/dist/{components → src/components}/floating/command-palette.d.ts +0 -0
- /package/dist/{components → src/components}/floating/dropdown.d.ts +0 -0
- /package/dist/{components → src/components}/floating/expand.d.ts +0 -0
- /package/dist/{components → src/components}/floating/expand.jsx +0 -0
- /package/dist/{components → src/components}/floating/menu.d.ts +0 -0
- /package/dist/{components → src/components}/floating/modal.d.ts +0 -0
- /package/dist/{components → src/components}/floating/toolbar.d.ts +0 -0
- /package/dist/{components → src/components}/floating/tooltip.d.ts +0 -0
- /package/dist/{components → src/components}/floating/wizard.d.ts +0 -0
- /package/dist/{components → src/components}/form/autocomplete.d.ts +0 -0
- /package/dist/{components → src/components}/form/checkbox.d.ts +0 -0
- /package/dist/{components → src/components}/form/date-picker.d.ts +0 -0
- /package/dist/{components → src/components}/form/file-upload.d.ts +0 -0
- /package/dist/{components → src/components}/form/form.d.ts +0 -0
- /package/dist/{components → src/components}/form/form.jsx +0 -0
- /package/dist/{components → src/components}/form/formReset.d.ts +0 -0
- /package/dist/{components → src/components}/form/formReset.jsx +0 -0
- /package/dist/{components → src/components}/form/free-text.d.ts +0 -0
- /package/dist/{components → src/components}/form/input-field.d.ts +0 -0
- /package/dist/{components → src/components}/form/input.d.ts +0 -0
- /package/dist/{components → src/components}/form/input.jsx +0 -0
- /package/dist/{components → src/components}/form/multi-select.d.ts +0 -0
- /package/dist/{components → src/components}/form/select.d.ts +0 -0
- /package/dist/{components → src/components}/form/slider.d.ts +0 -0
- /package/dist/{components → src/components}/form/switch.d.ts +0 -0
- /package/dist/{components → src/components}/form/task-list.d.ts +0 -0
- /package/dist/{components → src/components}/index.d.ts +0 -0
- /package/dist/{components → src/components}/index.js +0 -0
- /package/dist/{components → src/components}/page-calendar/calendar-header.d.ts +0 -0
- /package/dist/{components → src/components}/page-calendar/day-view.d.ts +0 -0
- /package/dist/{components → src/components}/page-calendar/event-pill.d.ts +0 -0
- /package/dist/{components → src/components}/page-calendar/index.d.ts +0 -0
- /package/dist/{components → src/components}/page-calendar/index.js +0 -0
- /package/dist/{components → src/components}/page-calendar/month-view.d.ts +0 -0
- /package/dist/{components → src/components}/page-calendar/page-calendar.d.ts +0 -0
- /package/dist/{components → src/components}/page-calendar/page-calendar.types.d.ts +0 -0
- /package/dist/{components → src/components}/page-calendar/page-calendar.types.js +0 -0
- /package/dist/{components → src/components}/page-calendar/page-calendar.utils.d.ts +0 -0
- /package/dist/{components → src/components}/page-calendar/page-calendar.utils.js +0 -0
- /package/dist/{components → src/components}/page-calendar/week-view.d.ts +0 -0
- /package/dist/{components → src/components}/table/filter.d.ts +0 -0
- /package/dist/{components → src/components}/table/group.d.ts +0 -0
- /package/dist/{components → src/components}/table/index.d.ts +0 -0
- /package/dist/{components → src/components}/table/inner-table.d.ts +0 -0
- /package/dist/{components → src/components}/table/metadata.d.ts +0 -0
- /package/dist/{components → src/components}/table/pagination.d.ts +0 -0
- /package/dist/{components → src/components}/table/row.d.ts +0 -0
- /package/dist/{components → src/components}/table/sort.d.ts +0 -0
- /package/dist/{components → src/components}/table/table-lib.d.ts +0 -0
- /package/dist/{components → src/components}/table/table-lib.js +0 -0
- /package/dist/{components → src/components}/table/table.context.d.ts +0 -0
- /package/dist/{components → src/components}/table/thead.d.ts +0 -0
- /package/dist/{config → src/config}/context.d.ts +0 -0
- /package/dist/{config → src/config}/context.js +0 -0
- /package/dist/{config → src/config}/default-translations.d.ts +0 -0
- /package/dist/{config → src/config}/default-translations.jsx +0 -0
- /package/dist/{config → src/config}/default-tweaks.d.ts +0 -0
- /package/dist/{config → src/config}/default-tweaks.js +0 -0
- /package/dist/{constants.d.ts → src/constants.d.ts} +0 -0
- /package/dist/{constants.js → src/constants.js} +0 -0
- /package/dist/{hooks → src/hooks}/use-click-outside.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-click-outside.js +0 -0
- /package/dist/{hooks → src/hooks}/use-color-parser.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-color-parser.js +0 -0
- /package/dist/{hooks → src/hooks}/use-components-provider.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-components-provider.jsx +0 -0
- /package/dist/{hooks → src/hooks}/use-debounce.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-debounce.js +0 -0
- /package/dist/{hooks → src/hooks}/use-floating-ref.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-floating-ref.js +0 -0
- /package/dist/{hooks → src/hooks}/use-form.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-hover.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-input-id.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-input-id.js +0 -0
- /package/dist/{hooks → src/hooks}/use-is-coarse-device.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-is-coarse-device.js +0 -0
- /package/dist/{hooks → src/hooks}/use-locale.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-locale.js +0 -0
- /package/dist/{hooks → src/hooks}/use-media-query.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-on-event.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-parent.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-preferences.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-preferences.js +0 -0
- /package/dist/{hooks → src/hooks}/use-previous.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-previous.js +0 -0
- /package/dist/{hooks → src/hooks}/use-reactive.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-reactive.js +0 -0
- /package/dist/{hooks → src/hooks}/use-remove-scroll.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-remove-scroll.js +0 -0
- /package/dist/{hooks → src/hooks}/use-resize-observer.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-resize-observer.js +0 -0
- /package/dist/{hooks → src/hooks}/use-stable-ref.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-stable-ref.js +0 -0
- /package/dist/{hooks → src/hooks}/use-swipe.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-swipe.js +0 -0
- /package/dist/{hooks → src/hooks}/use-translations.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-translations.js +0 -0
- /package/dist/{hooks → src/hooks}/use-tweaks.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-tweaks.js +0 -0
- /package/dist/{hooks → src/hooks}/use-window-size.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-window-size.js +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{lib → src/lib}/combi-keys.d.ts +0 -0
- /package/dist/{lib → src/lib}/combi-keys.js +0 -0
- /package/dist/{lib → src/lib}/dict.d.ts +0 -0
- /package/dist/{lib → src/lib}/dict.js +0 -0
- /package/dist/{lib → src/lib}/dom.d.ts +0 -0
- /package/dist/{lib → src/lib}/fns.d.ts +0 -0
- /package/dist/{lib → src/lib}/fns.js +0 -0
- /package/dist/{lib → src/lib}/fzf.d.ts +0 -0
- /package/dist/{lib → src/lib}/fzf.js +0 -0
- /package/dist/{lib → src/lib}/keyboard-area.d.ts +0 -0
- /package/dist/{lib → src/lib}/keyboard-area.js +0 -0
- /package/dist/{types.js → src/styles/theme.types.js} +0 -0
- /package/dist/{types.d.ts → src/types.d.ts} +0 -0
|
@@ -1,1628 +0,0 @@
|
|
|
1
|
-
import { jsx as _, jsxs as $ } from "react/jsx-runtime";
|
|
2
|
-
import * as w from "react";
|
|
3
|
-
import { forwardRef as pe, useId as ye, useMemo as j, useState as Q, useEffect as be, Fragment as U } from "react";
|
|
4
|
-
import { p as xe } from "./IconBase.es-DJ1oCtpo.js";
|
|
5
|
-
import { I as R } from "./dom-CyQHY7ID.js";
|
|
6
|
-
import { k as se, l as P, m as k, n as ge, o as Te, p as He, q as De, b as W, r as ae, v as Me, g as ke, a as oe, w as ie, x as Ve, y as J, z as Pe, A as S, B as ve, u as Ee, h as ee, D as te, C as _e, E as Ie } from "./calendar-BJMHRoy2.js";
|
|
7
|
-
import { u as Oe } from "./use-translations-DSltA7H_.js";
|
|
8
|
-
import { Dropdown as Ye } from "./components/floating/dropdown.js";
|
|
9
|
-
import { I as Ae } from "./input-_MVxmIpu.js";
|
|
10
|
-
const Le = /* @__PURE__ */ new Map([
|
|
11
|
-
[
|
|
12
|
-
"bold",
|
|
13
|
-
/* @__PURE__ */ w.createElement(w.Fragment, null, /* @__PURE__ */ w.createElement("path", { d: "M208,28H188V24a12,12,0,0,0-24,0v4H92V24a12,12,0,0,0-24,0v4H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28ZM68,52a12,12,0,0,0,24,0h72a12,12,0,0,0,24,0h16V76H52V52ZM52,204V100H204V204Zm60-80v56a12,12,0,0,1-24,0V143.32a12,12,0,0,1-9.37-22l16-8A12,12,0,0,1,112,124Zm61.49,33.88L163.9,168H168a12,12,0,0,1,0,24H136a12,12,0,0,1-8.71-20.25L155.45,142a4,4,0,0,0,.55-2,4,4,0,0,0-7.47-2,12,12,0,0,1-20.78-12A28,28,0,0,1,180,140a27.77,27.77,0,0,1-5.64,16.86A10.63,10.63,0,0,1,173.49,157.88Z" }))
|
|
14
|
-
],
|
|
15
|
-
[
|
|
16
|
-
"duotone",
|
|
17
|
-
/* @__PURE__ */ w.createElement(w.Fragment, null, /* @__PURE__ */ w.createElement(
|
|
18
|
-
"path",
|
|
19
|
-
{
|
|
20
|
-
d: "M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",
|
|
21
|
-
opacity: "0.2"
|
|
22
|
-
}
|
|
23
|
-
), /* @__PURE__ */ w.createElement("path", { d: "M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Zm-96-88v64a8,8,0,0,1-16,0V132.94l-4.42,2.22a8,8,0,0,1-7.16-14.32l16-8A8,8,0,0,1,112,120Zm59.16,30.45L152,176h16a8,8,0,0,1,0,16H136a8,8,0,0,1-6.4-12.8l28.78-38.37A8,8,0,1,0,145.07,132a8,8,0,1,1-13.85-8A24,24,0,0,1,176,136,23.76,23.76,0,0,1,171.16,150.45Z" }))
|
|
24
|
-
],
|
|
25
|
-
[
|
|
26
|
-
"fill",
|
|
27
|
-
/* @__PURE__ */ w.createElement(w.Fragment, null, /* @__PURE__ */ w.createElement("path", { d: "M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM112,184a8,8,0,0,1-16,0V132.94l-4.42,2.22a8,8,0,0,1-7.16-14.32l16-8A8,8,0,0,1,112,120Zm56-8a8,8,0,0,1,0,16H136a8,8,0,0,1-6.4-12.8l28.78-38.37A8,8,0,1,0,145.07,132a8,8,0,1,1-13.85-8A24,24,0,0,1,176,136a23.76,23.76,0,0,1-4.84,14.45L152,176ZM48,80V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80Z" }))
|
|
28
|
-
],
|
|
29
|
-
[
|
|
30
|
-
"light",
|
|
31
|
-
/* @__PURE__ */ w.createElement(w.Fragment, null, /* @__PURE__ */ w.createElement("path", { d: "M208,34H182V24a6,6,0,0,0-12,0V34H86V24a6,6,0,0,0-12,0V34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM48,46H74V56a6,6,0,0,0,12,0V46h84V56a6,6,0,0,0,12,0V46h26a2,2,0,0,1,2,2V82H46V48A2,2,0,0,1,48,46ZM208,210H48a2,2,0,0,1-2-2V94H210V208A2,2,0,0,1,208,210Zm-98-90v64a6,6,0,0,1-12,0V129.71l-7.32,3.66a6,6,0,1,1-5.36-10.74l16-8A6,6,0,0,1,110,120Zm59.57,29.25L148,178h20a6,6,0,0,1,0,12H136a6,6,0,0,1-4.8-9.6L160,142a10,10,0,1,0-16.65-11A6,6,0,1,1,133,125a22,22,0,1,1,36.62,24.26Z" }))
|
|
32
|
-
],
|
|
33
|
-
[
|
|
34
|
-
"regular",
|
|
35
|
-
/* @__PURE__ */ w.createElement(w.Fragment, null, /* @__PURE__ */ w.createElement("path", { d: "M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Zm-96-88v64a8,8,0,0,1-16,0V132.94l-4.42,2.22a8,8,0,0,1-7.16-14.32l16-8A8,8,0,0,1,112,120Zm59.16,30.45L152,176h16a8,8,0,0,1,0,16H136a8,8,0,0,1-6.4-12.8l28.78-38.37A8,8,0,1,0,145.07,132a8,8,0,1,1-13.85-8A24,24,0,0,1,176,136,23.76,23.76,0,0,1,171.16,150.45Z" }))
|
|
36
|
-
],
|
|
37
|
-
[
|
|
38
|
-
"thin",
|
|
39
|
-
/* @__PURE__ */ w.createElement(w.Fragment, null, /* @__PURE__ */ w.createElement("path", { d: "M208,36H180V24a4,4,0,0,0-8,0V36H84V24a4,4,0,0,0-8,0V36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM48,44H76V56a4,4,0,0,0,8,0V44h88V56a4,4,0,0,0,8,0V44h28a4,4,0,0,1,4,4V84H44V48A4,4,0,0,1,48,44ZM208,212H48a4,4,0,0,1-4-4V92H212V208A4,4,0,0,1,208,212ZM108,120v64a4,4,0,0,1-8,0V126.47l-10.21,5.11a4,4,0,0,1-3.58-7.16l16-8A4,4,0,0,1,108,120Zm60,28-24,32h24a4,4,0,0,1,0,8H136a4,4,0,0,1-3.2-6.4l28.78-38.37A11.88,11.88,0,0,0,164,136a12,12,0,0,0-22.4-6,4,4,0,0,1-6.92-4A20,20,0,0,1,172,136,19.79,19.79,0,0,1,168,148Z" }))
|
|
40
|
-
]
|
|
41
|
-
]), ce = w.forwardRef((n, e) => /* @__PURE__ */ w.createElement(xe, { ref: e, ...n, weights: Le }));
|
|
42
|
-
ce.displayName = "CalendarIcon";
|
|
43
|
-
function qe() {
|
|
44
|
-
return Object.assign({}, se());
|
|
45
|
-
}
|
|
46
|
-
function Ze(n, e) {
|
|
47
|
-
const r = P(n, e?.in).getDay();
|
|
48
|
-
return r === 0 ? 7 : r;
|
|
49
|
-
}
|
|
50
|
-
function Ne(n, e) {
|
|
51
|
-
const r = Qe(e) ? new e(0) : k(e, 0);
|
|
52
|
-
return r.setFullYear(n.getFullYear(), n.getMonth(), n.getDate()), r.setHours(
|
|
53
|
-
n.getHours(),
|
|
54
|
-
n.getMinutes(),
|
|
55
|
-
n.getSeconds(),
|
|
56
|
-
n.getMilliseconds()
|
|
57
|
-
), r;
|
|
58
|
-
}
|
|
59
|
-
function Qe(n) {
|
|
60
|
-
return typeof n == "function" && n.prototype?.constructor === n;
|
|
61
|
-
}
|
|
62
|
-
const Re = 10;
|
|
63
|
-
class ue {
|
|
64
|
-
subPriority = 0;
|
|
65
|
-
validate(e, r) {
|
|
66
|
-
return !0;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
class Ce extends ue {
|
|
70
|
-
constructor(e, r, t, s, a) {
|
|
71
|
-
super(), this.value = e, this.validateValue = r, this.setValue = t, this.priority = s, a && (this.subPriority = a);
|
|
72
|
-
}
|
|
73
|
-
validate(e, r) {
|
|
74
|
-
return this.validateValue(e, this.value, r);
|
|
75
|
-
}
|
|
76
|
-
set(e, r, t) {
|
|
77
|
-
return this.setValue(e, r, this.value, t);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
class Fe extends ue {
|
|
81
|
-
priority = Re;
|
|
82
|
-
subPriority = -1;
|
|
83
|
-
constructor(e, r) {
|
|
84
|
-
super(), this.context = e || ((t) => k(r, t));
|
|
85
|
-
}
|
|
86
|
-
set(e, r) {
|
|
87
|
-
return r.timestampIsSet ? e : k(e, Ne(e, this.context));
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
class i {
|
|
91
|
-
run(e, r, t, s) {
|
|
92
|
-
const a = this.parse(e, r, t, s);
|
|
93
|
-
return a ? {
|
|
94
|
-
setter: new Ce(
|
|
95
|
-
a.value,
|
|
96
|
-
this.validate,
|
|
97
|
-
this.set,
|
|
98
|
-
this.priority,
|
|
99
|
-
this.subPriority
|
|
100
|
-
),
|
|
101
|
-
rest: a.rest
|
|
102
|
-
} : null;
|
|
103
|
-
}
|
|
104
|
-
validate(e, r, t) {
|
|
105
|
-
return !0;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
class We extends i {
|
|
109
|
-
priority = 140;
|
|
110
|
-
parse(e, r, t) {
|
|
111
|
-
switch (r) {
|
|
112
|
-
// AD, BC
|
|
113
|
-
case "G":
|
|
114
|
-
case "GG":
|
|
115
|
-
case "GGG":
|
|
116
|
-
return t.era(e, { width: "abbreviated" }) || t.era(e, { width: "narrow" });
|
|
117
|
-
// A, B
|
|
118
|
-
case "GGGGG":
|
|
119
|
-
return t.era(e, { width: "narrow" });
|
|
120
|
-
default:
|
|
121
|
-
return t.era(e, { width: "wide" }) || t.era(e, { width: "abbreviated" }) || t.era(e, { width: "narrow" });
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
set(e, r, t) {
|
|
125
|
-
return r.era = t, e.setFullYear(t, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
126
|
-
}
|
|
127
|
-
incompatibleTokens = ["R", "u", "t", "T"];
|
|
128
|
-
}
|
|
129
|
-
const f = {
|
|
130
|
-
month: /^(1[0-2]|0?\d)/,
|
|
131
|
-
// 0 to 12
|
|
132
|
-
date: /^(3[0-1]|[0-2]?\d)/,
|
|
133
|
-
// 0 to 31
|
|
134
|
-
dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
|
|
135
|
-
// 0 to 366
|
|
136
|
-
week: /^(5[0-3]|[0-4]?\d)/,
|
|
137
|
-
// 0 to 53
|
|
138
|
-
hour23h: /^(2[0-3]|[0-1]?\d)/,
|
|
139
|
-
// 0 to 23
|
|
140
|
-
hour24h: /^(2[0-4]|[0-1]?\d)/,
|
|
141
|
-
// 0 to 24
|
|
142
|
-
hour11h: /^(1[0-1]|0?\d)/,
|
|
143
|
-
// 0 to 11
|
|
144
|
-
hour12h: /^(1[0-2]|0?\d)/,
|
|
145
|
-
// 0 to 12
|
|
146
|
-
minute: /^[0-5]?\d/,
|
|
147
|
-
// 0 to 59
|
|
148
|
-
second: /^[0-5]?\d/,
|
|
149
|
-
// 0 to 59
|
|
150
|
-
singleDigit: /^\d/,
|
|
151
|
-
// 0 to 9
|
|
152
|
-
twoDigits: /^\d{1,2}/,
|
|
153
|
-
// 0 to 99
|
|
154
|
-
threeDigits: /^\d{1,3}/,
|
|
155
|
-
// 0 to 999
|
|
156
|
-
fourDigits: /^\d{1,4}/,
|
|
157
|
-
// 0 to 9999
|
|
158
|
-
anyDigitsSigned: /^-?\d+/,
|
|
159
|
-
singleDigitSigned: /^-?\d/,
|
|
160
|
-
// 0 to 9, -0 to -9
|
|
161
|
-
twoDigitsSigned: /^-?\d{1,2}/,
|
|
162
|
-
// 0 to 99, -0 to -99
|
|
163
|
-
threeDigitsSigned: /^-?\d{1,3}/,
|
|
164
|
-
// 0 to 999, -0 to -999
|
|
165
|
-
fourDigitsSigned: /^-?\d{1,4}/
|
|
166
|
-
// 0 to 9999, -0 to -9999
|
|
167
|
-
}, T = {
|
|
168
|
-
basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
|
|
169
|
-
basic: /^([+-])(\d{2})(\d{2})|Z/,
|
|
170
|
-
basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
|
|
171
|
-
extended: /^([+-])(\d{2}):(\d{2})|Z/,
|
|
172
|
-
extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
|
|
173
|
-
};
|
|
174
|
-
function h(n, e) {
|
|
175
|
-
return n && {
|
|
176
|
-
value: e(n.value),
|
|
177
|
-
rest: n.rest
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
function u(n, e) {
|
|
181
|
-
const r = e.match(n);
|
|
182
|
-
return r ? {
|
|
183
|
-
value: parseInt(r[0], 10),
|
|
184
|
-
rest: e.slice(r[0].length)
|
|
185
|
-
} : null;
|
|
186
|
-
}
|
|
187
|
-
function H(n, e) {
|
|
188
|
-
const r = e.match(n);
|
|
189
|
-
if (!r)
|
|
190
|
-
return null;
|
|
191
|
-
if (r[0] === "Z")
|
|
192
|
-
return {
|
|
193
|
-
value: 0,
|
|
194
|
-
rest: e.slice(1)
|
|
195
|
-
};
|
|
196
|
-
const t = r[1] === "+" ? 1 : -1, s = r[2] ? parseInt(r[2], 10) : 0, a = r[3] ? parseInt(r[3], 10) : 0, l = r[5] ? parseInt(r[5], 10) : 0;
|
|
197
|
-
return {
|
|
198
|
-
value: t * (s * ge + a * Te + l * He),
|
|
199
|
-
rest: e.slice(r[0].length)
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
function le(n) {
|
|
203
|
-
return u(f.anyDigitsSigned, n);
|
|
204
|
-
}
|
|
205
|
-
function d(n, e) {
|
|
206
|
-
switch (n) {
|
|
207
|
-
case 1:
|
|
208
|
-
return u(f.singleDigit, e);
|
|
209
|
-
case 2:
|
|
210
|
-
return u(f.twoDigits, e);
|
|
211
|
-
case 3:
|
|
212
|
-
return u(f.threeDigits, e);
|
|
213
|
-
case 4:
|
|
214
|
-
return u(f.fourDigits, e);
|
|
215
|
-
default:
|
|
216
|
-
return u(new RegExp("^\\d{1," + n + "}"), e);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
function N(n, e) {
|
|
220
|
-
switch (n) {
|
|
221
|
-
case 1:
|
|
222
|
-
return u(f.singleDigitSigned, e);
|
|
223
|
-
case 2:
|
|
224
|
-
return u(f.twoDigitsSigned, e);
|
|
225
|
-
case 3:
|
|
226
|
-
return u(f.threeDigitsSigned, e);
|
|
227
|
-
case 4:
|
|
228
|
-
return u(f.fourDigitsSigned, e);
|
|
229
|
-
default:
|
|
230
|
-
return u(new RegExp("^-?\\d{1," + n + "}"), e);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
function B(n) {
|
|
234
|
-
switch (n) {
|
|
235
|
-
case "morning":
|
|
236
|
-
return 4;
|
|
237
|
-
case "evening":
|
|
238
|
-
return 17;
|
|
239
|
-
case "pm":
|
|
240
|
-
case "noon":
|
|
241
|
-
case "afternoon":
|
|
242
|
-
return 12;
|
|
243
|
-
default:
|
|
244
|
-
return 0;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
function de(n, e) {
|
|
248
|
-
const r = e > 0, t = r ? e : 1 - e;
|
|
249
|
-
let s;
|
|
250
|
-
if (t <= 50)
|
|
251
|
-
s = n || 100;
|
|
252
|
-
else {
|
|
253
|
-
const a = t + 50, l = Math.trunc(a / 100) * 100, m = n >= a % 100;
|
|
254
|
-
s = n + l - (m ? 100 : 0);
|
|
255
|
-
}
|
|
256
|
-
return r ? s : 1 - s;
|
|
257
|
-
}
|
|
258
|
-
function we(n) {
|
|
259
|
-
return n % 400 === 0 || n % 4 === 0 && n % 100 !== 0;
|
|
260
|
-
}
|
|
261
|
-
class Be extends i {
|
|
262
|
-
priority = 130;
|
|
263
|
-
incompatibleTokens = ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"];
|
|
264
|
-
parse(e, r, t) {
|
|
265
|
-
const s = (a) => ({
|
|
266
|
-
year: a,
|
|
267
|
-
isTwoDigitYear: r === "yy"
|
|
268
|
-
});
|
|
269
|
-
switch (r) {
|
|
270
|
-
case "y":
|
|
271
|
-
return h(d(4, e), s);
|
|
272
|
-
case "yo":
|
|
273
|
-
return h(
|
|
274
|
-
t.ordinalNumber(e, {
|
|
275
|
-
unit: "year"
|
|
276
|
-
}),
|
|
277
|
-
s
|
|
278
|
-
);
|
|
279
|
-
default:
|
|
280
|
-
return h(d(r.length, e), s);
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
validate(e, r) {
|
|
284
|
-
return r.isTwoDigitYear || r.year > 0;
|
|
285
|
-
}
|
|
286
|
-
set(e, r, t) {
|
|
287
|
-
const s = e.getFullYear();
|
|
288
|
-
if (t.isTwoDigitYear) {
|
|
289
|
-
const l = de(
|
|
290
|
-
t.year,
|
|
291
|
-
s
|
|
292
|
-
);
|
|
293
|
-
return e.setFullYear(l, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
294
|
-
}
|
|
295
|
-
const a = !("era" in r) || r.era === 1 ? t.year : 1 - t.year;
|
|
296
|
-
return e.setFullYear(a, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
class Ge extends i {
|
|
300
|
-
priority = 130;
|
|
301
|
-
parse(e, r, t) {
|
|
302
|
-
const s = (a) => ({
|
|
303
|
-
year: a,
|
|
304
|
-
isTwoDigitYear: r === "YY"
|
|
305
|
-
});
|
|
306
|
-
switch (r) {
|
|
307
|
-
case "Y":
|
|
308
|
-
return h(d(4, e), s);
|
|
309
|
-
case "Yo":
|
|
310
|
-
return h(
|
|
311
|
-
t.ordinalNumber(e, {
|
|
312
|
-
unit: "year"
|
|
313
|
-
}),
|
|
314
|
-
s
|
|
315
|
-
);
|
|
316
|
-
default:
|
|
317
|
-
return h(d(r.length, e), s);
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
validate(e, r) {
|
|
321
|
-
return r.isTwoDigitYear || r.year > 0;
|
|
322
|
-
}
|
|
323
|
-
set(e, r, t, s) {
|
|
324
|
-
const a = De(e, s);
|
|
325
|
-
if (t.isTwoDigitYear) {
|
|
326
|
-
const m = de(
|
|
327
|
-
t.year,
|
|
328
|
-
a
|
|
329
|
-
);
|
|
330
|
-
return e.setFullYear(
|
|
331
|
-
m,
|
|
332
|
-
0,
|
|
333
|
-
s.firstWeekContainsDate
|
|
334
|
-
), e.setHours(0, 0, 0, 0), W(e, s);
|
|
335
|
-
}
|
|
336
|
-
const l = !("era" in r) || r.era === 1 ? t.year : 1 - t.year;
|
|
337
|
-
return e.setFullYear(l, 0, s.firstWeekContainsDate), e.setHours(0, 0, 0, 0), W(e, s);
|
|
338
|
-
}
|
|
339
|
-
incompatibleTokens = [
|
|
340
|
-
"y",
|
|
341
|
-
"R",
|
|
342
|
-
"u",
|
|
343
|
-
"Q",
|
|
344
|
-
"q",
|
|
345
|
-
"M",
|
|
346
|
-
"L",
|
|
347
|
-
"I",
|
|
348
|
-
"d",
|
|
349
|
-
"D",
|
|
350
|
-
"i",
|
|
351
|
-
"t",
|
|
352
|
-
"T"
|
|
353
|
-
];
|
|
354
|
-
}
|
|
355
|
-
class Xe extends i {
|
|
356
|
-
priority = 130;
|
|
357
|
-
parse(e, r) {
|
|
358
|
-
return N(r === "R" ? 4 : r.length, e);
|
|
359
|
-
}
|
|
360
|
-
set(e, r, t) {
|
|
361
|
-
const s = k(e, 0);
|
|
362
|
-
return s.setFullYear(t, 0, 4), s.setHours(0, 0, 0, 0), ae(s);
|
|
363
|
-
}
|
|
364
|
-
incompatibleTokens = [
|
|
365
|
-
"G",
|
|
366
|
-
"y",
|
|
367
|
-
"Y",
|
|
368
|
-
"u",
|
|
369
|
-
"Q",
|
|
370
|
-
"q",
|
|
371
|
-
"M",
|
|
372
|
-
"L",
|
|
373
|
-
"w",
|
|
374
|
-
"d",
|
|
375
|
-
"D",
|
|
376
|
-
"e",
|
|
377
|
-
"c",
|
|
378
|
-
"t",
|
|
379
|
-
"T"
|
|
380
|
-
];
|
|
381
|
-
}
|
|
382
|
-
class ze extends i {
|
|
383
|
-
priority = 130;
|
|
384
|
-
parse(e, r) {
|
|
385
|
-
return N(r === "u" ? 4 : r.length, e);
|
|
386
|
-
}
|
|
387
|
-
set(e, r, t) {
|
|
388
|
-
return e.setFullYear(t, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
389
|
-
}
|
|
390
|
-
incompatibleTokens = ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"];
|
|
391
|
-
}
|
|
392
|
-
class Ke extends i {
|
|
393
|
-
priority = 120;
|
|
394
|
-
parse(e, r, t) {
|
|
395
|
-
switch (r) {
|
|
396
|
-
// 1, 2, 3, 4
|
|
397
|
-
case "Q":
|
|
398
|
-
case "QQ":
|
|
399
|
-
return d(r.length, e);
|
|
400
|
-
// 1st, 2nd, 3rd, 4th
|
|
401
|
-
case "Qo":
|
|
402
|
-
return t.ordinalNumber(e, { unit: "quarter" });
|
|
403
|
-
// Q1, Q2, Q3, Q4
|
|
404
|
-
case "QQQ":
|
|
405
|
-
return t.quarter(e, {
|
|
406
|
-
width: "abbreviated",
|
|
407
|
-
context: "formatting"
|
|
408
|
-
}) || t.quarter(e, {
|
|
409
|
-
width: "narrow",
|
|
410
|
-
context: "formatting"
|
|
411
|
-
});
|
|
412
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
413
|
-
case "QQQQQ":
|
|
414
|
-
return t.quarter(e, {
|
|
415
|
-
width: "narrow",
|
|
416
|
-
context: "formatting"
|
|
417
|
-
});
|
|
418
|
-
default:
|
|
419
|
-
return t.quarter(e, {
|
|
420
|
-
width: "wide",
|
|
421
|
-
context: "formatting"
|
|
422
|
-
}) || t.quarter(e, {
|
|
423
|
-
width: "abbreviated",
|
|
424
|
-
context: "formatting"
|
|
425
|
-
}) || t.quarter(e, {
|
|
426
|
-
width: "narrow",
|
|
427
|
-
context: "formatting"
|
|
428
|
-
});
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
validate(e, r) {
|
|
432
|
-
return r >= 1 && r <= 4;
|
|
433
|
-
}
|
|
434
|
-
set(e, r, t) {
|
|
435
|
-
return e.setMonth((t - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
|
|
436
|
-
}
|
|
437
|
-
incompatibleTokens = [
|
|
438
|
-
"Y",
|
|
439
|
-
"R",
|
|
440
|
-
"q",
|
|
441
|
-
"M",
|
|
442
|
-
"L",
|
|
443
|
-
"w",
|
|
444
|
-
"I",
|
|
445
|
-
"d",
|
|
446
|
-
"D",
|
|
447
|
-
"i",
|
|
448
|
-
"e",
|
|
449
|
-
"c",
|
|
450
|
-
"t",
|
|
451
|
-
"T"
|
|
452
|
-
];
|
|
453
|
-
}
|
|
454
|
-
class $e extends i {
|
|
455
|
-
priority = 120;
|
|
456
|
-
parse(e, r, t) {
|
|
457
|
-
switch (r) {
|
|
458
|
-
// 1, 2, 3, 4
|
|
459
|
-
case "q":
|
|
460
|
-
case "qq":
|
|
461
|
-
return d(r.length, e);
|
|
462
|
-
// 1st, 2nd, 3rd, 4th
|
|
463
|
-
case "qo":
|
|
464
|
-
return t.ordinalNumber(e, { unit: "quarter" });
|
|
465
|
-
// Q1, Q2, Q3, Q4
|
|
466
|
-
case "qqq":
|
|
467
|
-
return t.quarter(e, {
|
|
468
|
-
width: "abbreviated",
|
|
469
|
-
context: "standalone"
|
|
470
|
-
}) || t.quarter(e, {
|
|
471
|
-
width: "narrow",
|
|
472
|
-
context: "standalone"
|
|
473
|
-
});
|
|
474
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
475
|
-
case "qqqqq":
|
|
476
|
-
return t.quarter(e, {
|
|
477
|
-
width: "narrow",
|
|
478
|
-
context: "standalone"
|
|
479
|
-
});
|
|
480
|
-
default:
|
|
481
|
-
return t.quarter(e, {
|
|
482
|
-
width: "wide",
|
|
483
|
-
context: "standalone"
|
|
484
|
-
}) || t.quarter(e, {
|
|
485
|
-
width: "abbreviated",
|
|
486
|
-
context: "standalone"
|
|
487
|
-
}) || t.quarter(e, {
|
|
488
|
-
width: "narrow",
|
|
489
|
-
context: "standalone"
|
|
490
|
-
});
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
validate(e, r) {
|
|
494
|
-
return r >= 1 && r <= 4;
|
|
495
|
-
}
|
|
496
|
-
set(e, r, t) {
|
|
497
|
-
return e.setMonth((t - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
|
|
498
|
-
}
|
|
499
|
-
incompatibleTokens = [
|
|
500
|
-
"Y",
|
|
501
|
-
"R",
|
|
502
|
-
"Q",
|
|
503
|
-
"M",
|
|
504
|
-
"L",
|
|
505
|
-
"w",
|
|
506
|
-
"I",
|
|
507
|
-
"d",
|
|
508
|
-
"D",
|
|
509
|
-
"i",
|
|
510
|
-
"e",
|
|
511
|
-
"c",
|
|
512
|
-
"t",
|
|
513
|
-
"T"
|
|
514
|
-
];
|
|
515
|
-
}
|
|
516
|
-
class je extends i {
|
|
517
|
-
incompatibleTokens = [
|
|
518
|
-
"Y",
|
|
519
|
-
"R",
|
|
520
|
-
"q",
|
|
521
|
-
"Q",
|
|
522
|
-
"L",
|
|
523
|
-
"w",
|
|
524
|
-
"I",
|
|
525
|
-
"D",
|
|
526
|
-
"i",
|
|
527
|
-
"e",
|
|
528
|
-
"c",
|
|
529
|
-
"t",
|
|
530
|
-
"T"
|
|
531
|
-
];
|
|
532
|
-
priority = 110;
|
|
533
|
-
parse(e, r, t) {
|
|
534
|
-
const s = (a) => a - 1;
|
|
535
|
-
switch (r) {
|
|
536
|
-
// 1, 2, ..., 12
|
|
537
|
-
case "M":
|
|
538
|
-
return h(
|
|
539
|
-
u(f.month, e),
|
|
540
|
-
s
|
|
541
|
-
);
|
|
542
|
-
// 01, 02, ..., 12
|
|
543
|
-
case "MM":
|
|
544
|
-
return h(d(2, e), s);
|
|
545
|
-
// 1st, 2nd, ..., 12th
|
|
546
|
-
case "Mo":
|
|
547
|
-
return h(
|
|
548
|
-
t.ordinalNumber(e, {
|
|
549
|
-
unit: "month"
|
|
550
|
-
}),
|
|
551
|
-
s
|
|
552
|
-
);
|
|
553
|
-
// Jan, Feb, ..., Dec
|
|
554
|
-
case "MMM":
|
|
555
|
-
return t.month(e, {
|
|
556
|
-
width: "abbreviated",
|
|
557
|
-
context: "formatting"
|
|
558
|
-
}) || t.month(e, { width: "narrow", context: "formatting" });
|
|
559
|
-
// J, F, ..., D
|
|
560
|
-
case "MMMMM":
|
|
561
|
-
return t.month(e, {
|
|
562
|
-
width: "narrow",
|
|
563
|
-
context: "formatting"
|
|
564
|
-
});
|
|
565
|
-
default:
|
|
566
|
-
return t.month(e, { width: "wide", context: "formatting" }) || t.month(e, {
|
|
567
|
-
width: "abbreviated",
|
|
568
|
-
context: "formatting"
|
|
569
|
-
}) || t.month(e, { width: "narrow", context: "formatting" });
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
validate(e, r) {
|
|
573
|
-
return r >= 0 && r <= 11;
|
|
574
|
-
}
|
|
575
|
-
set(e, r, t) {
|
|
576
|
-
return e.setMonth(t, 1), e.setHours(0, 0, 0, 0), e;
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
class Ue extends i {
|
|
580
|
-
priority = 110;
|
|
581
|
-
parse(e, r, t) {
|
|
582
|
-
const s = (a) => a - 1;
|
|
583
|
-
switch (r) {
|
|
584
|
-
// 1, 2, ..., 12
|
|
585
|
-
case "L":
|
|
586
|
-
return h(
|
|
587
|
-
u(f.month, e),
|
|
588
|
-
s
|
|
589
|
-
);
|
|
590
|
-
// 01, 02, ..., 12
|
|
591
|
-
case "LL":
|
|
592
|
-
return h(d(2, e), s);
|
|
593
|
-
// 1st, 2nd, ..., 12th
|
|
594
|
-
case "Lo":
|
|
595
|
-
return h(
|
|
596
|
-
t.ordinalNumber(e, {
|
|
597
|
-
unit: "month"
|
|
598
|
-
}),
|
|
599
|
-
s
|
|
600
|
-
);
|
|
601
|
-
// Jan, Feb, ..., Dec
|
|
602
|
-
case "LLL":
|
|
603
|
-
return t.month(e, {
|
|
604
|
-
width: "abbreviated",
|
|
605
|
-
context: "standalone"
|
|
606
|
-
}) || t.month(e, { width: "narrow", context: "standalone" });
|
|
607
|
-
// J, F, ..., D
|
|
608
|
-
case "LLLLL":
|
|
609
|
-
return t.month(e, {
|
|
610
|
-
width: "narrow",
|
|
611
|
-
context: "standalone"
|
|
612
|
-
});
|
|
613
|
-
default:
|
|
614
|
-
return t.month(e, { width: "wide", context: "standalone" }) || t.month(e, {
|
|
615
|
-
width: "abbreviated",
|
|
616
|
-
context: "standalone"
|
|
617
|
-
}) || t.month(e, { width: "narrow", context: "standalone" });
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
validate(e, r) {
|
|
621
|
-
return r >= 0 && r <= 11;
|
|
622
|
-
}
|
|
623
|
-
set(e, r, t) {
|
|
624
|
-
return e.setMonth(t, 1), e.setHours(0, 0, 0, 0), e;
|
|
625
|
-
}
|
|
626
|
-
incompatibleTokens = [
|
|
627
|
-
"Y",
|
|
628
|
-
"R",
|
|
629
|
-
"q",
|
|
630
|
-
"Q",
|
|
631
|
-
"M",
|
|
632
|
-
"w",
|
|
633
|
-
"I",
|
|
634
|
-
"D",
|
|
635
|
-
"i",
|
|
636
|
-
"e",
|
|
637
|
-
"c",
|
|
638
|
-
"t",
|
|
639
|
-
"T"
|
|
640
|
-
];
|
|
641
|
-
}
|
|
642
|
-
function Je(n, e, r) {
|
|
643
|
-
const t = P(n, r?.in), s = Me(t, r) - e;
|
|
644
|
-
return t.setDate(t.getDate() - s * 7), P(t, r?.in);
|
|
645
|
-
}
|
|
646
|
-
class Se extends i {
|
|
647
|
-
priority = 100;
|
|
648
|
-
parse(e, r, t) {
|
|
649
|
-
switch (r) {
|
|
650
|
-
case "w":
|
|
651
|
-
return u(f.week, e);
|
|
652
|
-
case "wo":
|
|
653
|
-
return t.ordinalNumber(e, { unit: "week" });
|
|
654
|
-
default:
|
|
655
|
-
return d(r.length, e);
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
validate(e, r) {
|
|
659
|
-
return r >= 1 && r <= 53;
|
|
660
|
-
}
|
|
661
|
-
set(e, r, t, s) {
|
|
662
|
-
return W(Je(e, t, s), s);
|
|
663
|
-
}
|
|
664
|
-
incompatibleTokens = [
|
|
665
|
-
"y",
|
|
666
|
-
"R",
|
|
667
|
-
"u",
|
|
668
|
-
"q",
|
|
669
|
-
"Q",
|
|
670
|
-
"M",
|
|
671
|
-
"L",
|
|
672
|
-
"I",
|
|
673
|
-
"d",
|
|
674
|
-
"D",
|
|
675
|
-
"i",
|
|
676
|
-
"t",
|
|
677
|
-
"T"
|
|
678
|
-
];
|
|
679
|
-
}
|
|
680
|
-
function et(n, e, r) {
|
|
681
|
-
const t = P(n, r?.in), s = ke(t, r) - e;
|
|
682
|
-
return t.setDate(t.getDate() - s * 7), t;
|
|
683
|
-
}
|
|
684
|
-
class tt extends i {
|
|
685
|
-
priority = 100;
|
|
686
|
-
parse(e, r, t) {
|
|
687
|
-
switch (r) {
|
|
688
|
-
case "I":
|
|
689
|
-
return u(f.week, e);
|
|
690
|
-
case "Io":
|
|
691
|
-
return t.ordinalNumber(e, { unit: "week" });
|
|
692
|
-
default:
|
|
693
|
-
return d(r.length, e);
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
validate(e, r) {
|
|
697
|
-
return r >= 1 && r <= 53;
|
|
698
|
-
}
|
|
699
|
-
set(e, r, t) {
|
|
700
|
-
return ae(et(e, t));
|
|
701
|
-
}
|
|
702
|
-
incompatibleTokens = [
|
|
703
|
-
"y",
|
|
704
|
-
"Y",
|
|
705
|
-
"u",
|
|
706
|
-
"q",
|
|
707
|
-
"Q",
|
|
708
|
-
"M",
|
|
709
|
-
"L",
|
|
710
|
-
"w",
|
|
711
|
-
"d",
|
|
712
|
-
"D",
|
|
713
|
-
"e",
|
|
714
|
-
"c",
|
|
715
|
-
"t",
|
|
716
|
-
"T"
|
|
717
|
-
];
|
|
718
|
-
}
|
|
719
|
-
const rt = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], nt = [
|
|
720
|
-
31,
|
|
721
|
-
29,
|
|
722
|
-
31,
|
|
723
|
-
30,
|
|
724
|
-
31,
|
|
725
|
-
30,
|
|
726
|
-
31,
|
|
727
|
-
31,
|
|
728
|
-
30,
|
|
729
|
-
31,
|
|
730
|
-
30,
|
|
731
|
-
31
|
|
732
|
-
];
|
|
733
|
-
class st extends i {
|
|
734
|
-
priority = 90;
|
|
735
|
-
subPriority = 1;
|
|
736
|
-
parse(e, r, t) {
|
|
737
|
-
switch (r) {
|
|
738
|
-
case "d":
|
|
739
|
-
return u(f.date, e);
|
|
740
|
-
case "do":
|
|
741
|
-
return t.ordinalNumber(e, { unit: "date" });
|
|
742
|
-
default:
|
|
743
|
-
return d(r.length, e);
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
validate(e, r) {
|
|
747
|
-
const t = e.getFullYear(), s = we(t), a = e.getMonth();
|
|
748
|
-
return s ? r >= 1 && r <= nt[a] : r >= 1 && r <= rt[a];
|
|
749
|
-
}
|
|
750
|
-
set(e, r, t) {
|
|
751
|
-
return e.setDate(t), e.setHours(0, 0, 0, 0), e;
|
|
752
|
-
}
|
|
753
|
-
incompatibleTokens = [
|
|
754
|
-
"Y",
|
|
755
|
-
"R",
|
|
756
|
-
"q",
|
|
757
|
-
"Q",
|
|
758
|
-
"w",
|
|
759
|
-
"I",
|
|
760
|
-
"D",
|
|
761
|
-
"i",
|
|
762
|
-
"e",
|
|
763
|
-
"c",
|
|
764
|
-
"t",
|
|
765
|
-
"T"
|
|
766
|
-
];
|
|
767
|
-
}
|
|
768
|
-
class at extends i {
|
|
769
|
-
priority = 90;
|
|
770
|
-
subpriority = 1;
|
|
771
|
-
parse(e, r, t) {
|
|
772
|
-
switch (r) {
|
|
773
|
-
case "D":
|
|
774
|
-
case "DD":
|
|
775
|
-
return u(f.dayOfYear, e);
|
|
776
|
-
case "Do":
|
|
777
|
-
return t.ordinalNumber(e, { unit: "date" });
|
|
778
|
-
default:
|
|
779
|
-
return d(r.length, e);
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
validate(e, r) {
|
|
783
|
-
const t = e.getFullYear();
|
|
784
|
-
return we(t) ? r >= 1 && r <= 366 : r >= 1 && r <= 365;
|
|
785
|
-
}
|
|
786
|
-
set(e, r, t) {
|
|
787
|
-
return e.setMonth(0, t), e.setHours(0, 0, 0, 0), e;
|
|
788
|
-
}
|
|
789
|
-
incompatibleTokens = [
|
|
790
|
-
"Y",
|
|
791
|
-
"R",
|
|
792
|
-
"q",
|
|
793
|
-
"Q",
|
|
794
|
-
"M",
|
|
795
|
-
"L",
|
|
796
|
-
"w",
|
|
797
|
-
"I",
|
|
798
|
-
"d",
|
|
799
|
-
"E",
|
|
800
|
-
"i",
|
|
801
|
-
"e",
|
|
802
|
-
"c",
|
|
803
|
-
"t",
|
|
804
|
-
"T"
|
|
805
|
-
];
|
|
806
|
-
}
|
|
807
|
-
function G(n, e, r) {
|
|
808
|
-
const t = se(), s = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? t.weekStartsOn ?? t.locale?.options?.weekStartsOn ?? 0, a = P(n, r?.in), l = a.getDay(), p = (e % 7 + 7) % 7, D = 7 - s, M = e < 0 || e > 6 ? e - (l + D) % 7 : (p + D) % 7 - (l + D) % 7;
|
|
809
|
-
return oe(a, M, r);
|
|
810
|
-
}
|
|
811
|
-
class ot extends i {
|
|
812
|
-
priority = 90;
|
|
813
|
-
parse(e, r, t) {
|
|
814
|
-
switch (r) {
|
|
815
|
-
// Tue
|
|
816
|
-
case "E":
|
|
817
|
-
case "EE":
|
|
818
|
-
case "EEE":
|
|
819
|
-
return t.day(e, {
|
|
820
|
-
width: "abbreviated",
|
|
821
|
-
context: "formatting"
|
|
822
|
-
}) || t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
823
|
-
// T
|
|
824
|
-
case "EEEEE":
|
|
825
|
-
return t.day(e, {
|
|
826
|
-
width: "narrow",
|
|
827
|
-
context: "formatting"
|
|
828
|
-
});
|
|
829
|
-
// Tu
|
|
830
|
-
case "EEEEEE":
|
|
831
|
-
return t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
832
|
-
default:
|
|
833
|
-
return t.day(e, { width: "wide", context: "formatting" }) || t.day(e, {
|
|
834
|
-
width: "abbreviated",
|
|
835
|
-
context: "formatting"
|
|
836
|
-
}) || t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
validate(e, r) {
|
|
840
|
-
return r >= 0 && r <= 6;
|
|
841
|
-
}
|
|
842
|
-
set(e, r, t, s) {
|
|
843
|
-
return e = G(e, t, s), e.setHours(0, 0, 0, 0), e;
|
|
844
|
-
}
|
|
845
|
-
incompatibleTokens = ["D", "i", "e", "c", "t", "T"];
|
|
846
|
-
}
|
|
847
|
-
class it extends i {
|
|
848
|
-
priority = 90;
|
|
849
|
-
parse(e, r, t, s) {
|
|
850
|
-
const a = (l) => {
|
|
851
|
-
const m = Math.floor((l - 1) / 7) * 7;
|
|
852
|
-
return (l + s.weekStartsOn + 6) % 7 + m;
|
|
853
|
-
};
|
|
854
|
-
switch (r) {
|
|
855
|
-
// 3
|
|
856
|
-
case "e":
|
|
857
|
-
case "ee":
|
|
858
|
-
return h(d(r.length, e), a);
|
|
859
|
-
// 3rd
|
|
860
|
-
case "eo":
|
|
861
|
-
return h(
|
|
862
|
-
t.ordinalNumber(e, {
|
|
863
|
-
unit: "day"
|
|
864
|
-
}),
|
|
865
|
-
a
|
|
866
|
-
);
|
|
867
|
-
// Tue
|
|
868
|
-
case "eee":
|
|
869
|
-
return t.day(e, {
|
|
870
|
-
width: "abbreviated",
|
|
871
|
-
context: "formatting"
|
|
872
|
-
}) || t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
873
|
-
// T
|
|
874
|
-
case "eeeee":
|
|
875
|
-
return t.day(e, {
|
|
876
|
-
width: "narrow",
|
|
877
|
-
context: "formatting"
|
|
878
|
-
});
|
|
879
|
-
// Tu
|
|
880
|
-
case "eeeeee":
|
|
881
|
-
return t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
882
|
-
default:
|
|
883
|
-
return t.day(e, { width: "wide", context: "formatting" }) || t.day(e, {
|
|
884
|
-
width: "abbreviated",
|
|
885
|
-
context: "formatting"
|
|
886
|
-
}) || t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
validate(e, r) {
|
|
890
|
-
return r >= 0 && r <= 6;
|
|
891
|
-
}
|
|
892
|
-
set(e, r, t, s) {
|
|
893
|
-
return e = G(e, t, s), e.setHours(0, 0, 0, 0), e;
|
|
894
|
-
}
|
|
895
|
-
incompatibleTokens = [
|
|
896
|
-
"y",
|
|
897
|
-
"R",
|
|
898
|
-
"u",
|
|
899
|
-
"q",
|
|
900
|
-
"Q",
|
|
901
|
-
"M",
|
|
902
|
-
"L",
|
|
903
|
-
"I",
|
|
904
|
-
"d",
|
|
905
|
-
"D",
|
|
906
|
-
"E",
|
|
907
|
-
"i",
|
|
908
|
-
"c",
|
|
909
|
-
"t",
|
|
910
|
-
"T"
|
|
911
|
-
];
|
|
912
|
-
}
|
|
913
|
-
class ct extends i {
|
|
914
|
-
priority = 90;
|
|
915
|
-
parse(e, r, t, s) {
|
|
916
|
-
const a = (l) => {
|
|
917
|
-
const m = Math.floor((l - 1) / 7) * 7;
|
|
918
|
-
return (l + s.weekStartsOn + 6) % 7 + m;
|
|
919
|
-
};
|
|
920
|
-
switch (r) {
|
|
921
|
-
// 3
|
|
922
|
-
case "c":
|
|
923
|
-
case "cc":
|
|
924
|
-
return h(d(r.length, e), a);
|
|
925
|
-
// 3rd
|
|
926
|
-
case "co":
|
|
927
|
-
return h(
|
|
928
|
-
t.ordinalNumber(e, {
|
|
929
|
-
unit: "day"
|
|
930
|
-
}),
|
|
931
|
-
a
|
|
932
|
-
);
|
|
933
|
-
// Tue
|
|
934
|
-
case "ccc":
|
|
935
|
-
return t.day(e, {
|
|
936
|
-
width: "abbreviated",
|
|
937
|
-
context: "standalone"
|
|
938
|
-
}) || t.day(e, { width: "short", context: "standalone" }) || t.day(e, { width: "narrow", context: "standalone" });
|
|
939
|
-
// T
|
|
940
|
-
case "ccccc":
|
|
941
|
-
return t.day(e, {
|
|
942
|
-
width: "narrow",
|
|
943
|
-
context: "standalone"
|
|
944
|
-
});
|
|
945
|
-
// Tu
|
|
946
|
-
case "cccccc":
|
|
947
|
-
return t.day(e, { width: "short", context: "standalone" }) || t.day(e, { width: "narrow", context: "standalone" });
|
|
948
|
-
default:
|
|
949
|
-
return t.day(e, { width: "wide", context: "standalone" }) || t.day(e, {
|
|
950
|
-
width: "abbreviated",
|
|
951
|
-
context: "standalone"
|
|
952
|
-
}) || t.day(e, { width: "short", context: "standalone" }) || t.day(e, { width: "narrow", context: "standalone" });
|
|
953
|
-
}
|
|
954
|
-
}
|
|
955
|
-
validate(e, r) {
|
|
956
|
-
return r >= 0 && r <= 6;
|
|
957
|
-
}
|
|
958
|
-
set(e, r, t, s) {
|
|
959
|
-
return e = G(e, t, s), e.setHours(0, 0, 0, 0), e;
|
|
960
|
-
}
|
|
961
|
-
incompatibleTokens = [
|
|
962
|
-
"y",
|
|
963
|
-
"R",
|
|
964
|
-
"u",
|
|
965
|
-
"q",
|
|
966
|
-
"Q",
|
|
967
|
-
"M",
|
|
968
|
-
"L",
|
|
969
|
-
"I",
|
|
970
|
-
"d",
|
|
971
|
-
"D",
|
|
972
|
-
"E",
|
|
973
|
-
"i",
|
|
974
|
-
"e",
|
|
975
|
-
"t",
|
|
976
|
-
"T"
|
|
977
|
-
];
|
|
978
|
-
}
|
|
979
|
-
function ut(n, e, r) {
|
|
980
|
-
const t = P(n, r?.in), s = Ze(t, r), a = e - s;
|
|
981
|
-
return oe(t, a, r);
|
|
982
|
-
}
|
|
983
|
-
class lt extends i {
|
|
984
|
-
priority = 90;
|
|
985
|
-
parse(e, r, t) {
|
|
986
|
-
const s = (a) => a === 0 ? 7 : a;
|
|
987
|
-
switch (r) {
|
|
988
|
-
// 2
|
|
989
|
-
case "i":
|
|
990
|
-
case "ii":
|
|
991
|
-
return d(r.length, e);
|
|
992
|
-
// 2nd
|
|
993
|
-
case "io":
|
|
994
|
-
return t.ordinalNumber(e, { unit: "day" });
|
|
995
|
-
// Tue
|
|
996
|
-
case "iii":
|
|
997
|
-
return h(
|
|
998
|
-
t.day(e, {
|
|
999
|
-
width: "abbreviated",
|
|
1000
|
-
context: "formatting"
|
|
1001
|
-
}) || t.day(e, {
|
|
1002
|
-
width: "short",
|
|
1003
|
-
context: "formatting"
|
|
1004
|
-
}) || t.day(e, {
|
|
1005
|
-
width: "narrow",
|
|
1006
|
-
context: "formatting"
|
|
1007
|
-
}),
|
|
1008
|
-
s
|
|
1009
|
-
);
|
|
1010
|
-
// T
|
|
1011
|
-
case "iiiii":
|
|
1012
|
-
return h(
|
|
1013
|
-
t.day(e, {
|
|
1014
|
-
width: "narrow",
|
|
1015
|
-
context: "formatting"
|
|
1016
|
-
}),
|
|
1017
|
-
s
|
|
1018
|
-
);
|
|
1019
|
-
// Tu
|
|
1020
|
-
case "iiiiii":
|
|
1021
|
-
return h(
|
|
1022
|
-
t.day(e, {
|
|
1023
|
-
width: "short",
|
|
1024
|
-
context: "formatting"
|
|
1025
|
-
}) || t.day(e, {
|
|
1026
|
-
width: "narrow",
|
|
1027
|
-
context: "formatting"
|
|
1028
|
-
}),
|
|
1029
|
-
s
|
|
1030
|
-
);
|
|
1031
|
-
default:
|
|
1032
|
-
return h(
|
|
1033
|
-
t.day(e, {
|
|
1034
|
-
width: "wide",
|
|
1035
|
-
context: "formatting"
|
|
1036
|
-
}) || t.day(e, {
|
|
1037
|
-
width: "abbreviated",
|
|
1038
|
-
context: "formatting"
|
|
1039
|
-
}) || t.day(e, {
|
|
1040
|
-
width: "short",
|
|
1041
|
-
context: "formatting"
|
|
1042
|
-
}) || t.day(e, {
|
|
1043
|
-
width: "narrow",
|
|
1044
|
-
context: "formatting"
|
|
1045
|
-
}),
|
|
1046
|
-
s
|
|
1047
|
-
);
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
validate(e, r) {
|
|
1051
|
-
return r >= 1 && r <= 7;
|
|
1052
|
-
}
|
|
1053
|
-
set(e, r, t) {
|
|
1054
|
-
return e = ut(e, t), e.setHours(0, 0, 0, 0), e;
|
|
1055
|
-
}
|
|
1056
|
-
incompatibleTokens = [
|
|
1057
|
-
"y",
|
|
1058
|
-
"Y",
|
|
1059
|
-
"u",
|
|
1060
|
-
"q",
|
|
1061
|
-
"Q",
|
|
1062
|
-
"M",
|
|
1063
|
-
"L",
|
|
1064
|
-
"w",
|
|
1065
|
-
"d",
|
|
1066
|
-
"D",
|
|
1067
|
-
"E",
|
|
1068
|
-
"e",
|
|
1069
|
-
"c",
|
|
1070
|
-
"t",
|
|
1071
|
-
"T"
|
|
1072
|
-
];
|
|
1073
|
-
}
|
|
1074
|
-
class dt extends i {
|
|
1075
|
-
priority = 80;
|
|
1076
|
-
parse(e, r, t) {
|
|
1077
|
-
switch (r) {
|
|
1078
|
-
case "a":
|
|
1079
|
-
case "aa":
|
|
1080
|
-
case "aaa":
|
|
1081
|
-
return t.dayPeriod(e, {
|
|
1082
|
-
width: "abbreviated",
|
|
1083
|
-
context: "formatting"
|
|
1084
|
-
}) || t.dayPeriod(e, {
|
|
1085
|
-
width: "narrow",
|
|
1086
|
-
context: "formatting"
|
|
1087
|
-
});
|
|
1088
|
-
case "aaaaa":
|
|
1089
|
-
return t.dayPeriod(e, {
|
|
1090
|
-
width: "narrow",
|
|
1091
|
-
context: "formatting"
|
|
1092
|
-
});
|
|
1093
|
-
default:
|
|
1094
|
-
return t.dayPeriod(e, {
|
|
1095
|
-
width: "wide",
|
|
1096
|
-
context: "formatting"
|
|
1097
|
-
}) || t.dayPeriod(e, {
|
|
1098
|
-
width: "abbreviated",
|
|
1099
|
-
context: "formatting"
|
|
1100
|
-
}) || t.dayPeriod(e, {
|
|
1101
|
-
width: "narrow",
|
|
1102
|
-
context: "formatting"
|
|
1103
|
-
});
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
set(e, r, t) {
|
|
1107
|
-
return e.setHours(B(t), 0, 0, 0), e;
|
|
1108
|
-
}
|
|
1109
|
-
incompatibleTokens = ["b", "B", "H", "k", "t", "T"];
|
|
1110
|
-
}
|
|
1111
|
-
class wt extends i {
|
|
1112
|
-
priority = 80;
|
|
1113
|
-
parse(e, r, t) {
|
|
1114
|
-
switch (r) {
|
|
1115
|
-
case "b":
|
|
1116
|
-
case "bb":
|
|
1117
|
-
case "bbb":
|
|
1118
|
-
return t.dayPeriod(e, {
|
|
1119
|
-
width: "abbreviated",
|
|
1120
|
-
context: "formatting"
|
|
1121
|
-
}) || t.dayPeriod(e, {
|
|
1122
|
-
width: "narrow",
|
|
1123
|
-
context: "formatting"
|
|
1124
|
-
});
|
|
1125
|
-
case "bbbbb":
|
|
1126
|
-
return t.dayPeriod(e, {
|
|
1127
|
-
width: "narrow",
|
|
1128
|
-
context: "formatting"
|
|
1129
|
-
});
|
|
1130
|
-
default:
|
|
1131
|
-
return t.dayPeriod(e, {
|
|
1132
|
-
width: "wide",
|
|
1133
|
-
context: "formatting"
|
|
1134
|
-
}) || t.dayPeriod(e, {
|
|
1135
|
-
width: "abbreviated",
|
|
1136
|
-
context: "formatting"
|
|
1137
|
-
}) || t.dayPeriod(e, {
|
|
1138
|
-
width: "narrow",
|
|
1139
|
-
context: "formatting"
|
|
1140
|
-
});
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
|
-
set(e, r, t) {
|
|
1144
|
-
return e.setHours(B(t), 0, 0, 0), e;
|
|
1145
|
-
}
|
|
1146
|
-
incompatibleTokens = ["a", "B", "H", "k", "t", "T"];
|
|
1147
|
-
}
|
|
1148
|
-
class ft extends i {
|
|
1149
|
-
priority = 80;
|
|
1150
|
-
parse(e, r, t) {
|
|
1151
|
-
switch (r) {
|
|
1152
|
-
case "B":
|
|
1153
|
-
case "BB":
|
|
1154
|
-
case "BBB":
|
|
1155
|
-
return t.dayPeriod(e, {
|
|
1156
|
-
width: "abbreviated",
|
|
1157
|
-
context: "formatting"
|
|
1158
|
-
}) || t.dayPeriod(e, {
|
|
1159
|
-
width: "narrow",
|
|
1160
|
-
context: "formatting"
|
|
1161
|
-
});
|
|
1162
|
-
case "BBBBB":
|
|
1163
|
-
return t.dayPeriod(e, {
|
|
1164
|
-
width: "narrow",
|
|
1165
|
-
context: "formatting"
|
|
1166
|
-
});
|
|
1167
|
-
default:
|
|
1168
|
-
return t.dayPeriod(e, {
|
|
1169
|
-
width: "wide",
|
|
1170
|
-
context: "formatting"
|
|
1171
|
-
}) || t.dayPeriod(e, {
|
|
1172
|
-
width: "abbreviated",
|
|
1173
|
-
context: "formatting"
|
|
1174
|
-
}) || t.dayPeriod(e, {
|
|
1175
|
-
width: "narrow",
|
|
1176
|
-
context: "formatting"
|
|
1177
|
-
});
|
|
1178
|
-
}
|
|
1179
|
-
}
|
|
1180
|
-
set(e, r, t) {
|
|
1181
|
-
return e.setHours(B(t), 0, 0, 0), e;
|
|
1182
|
-
}
|
|
1183
|
-
incompatibleTokens = ["a", "b", "t", "T"];
|
|
1184
|
-
}
|
|
1185
|
-
class ht extends i {
|
|
1186
|
-
priority = 70;
|
|
1187
|
-
parse(e, r, t) {
|
|
1188
|
-
switch (r) {
|
|
1189
|
-
case "h":
|
|
1190
|
-
return u(f.hour12h, e);
|
|
1191
|
-
case "ho":
|
|
1192
|
-
return t.ordinalNumber(e, { unit: "hour" });
|
|
1193
|
-
default:
|
|
1194
|
-
return d(r.length, e);
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
validate(e, r) {
|
|
1198
|
-
return r >= 1 && r <= 12;
|
|
1199
|
-
}
|
|
1200
|
-
set(e, r, t) {
|
|
1201
|
-
const s = e.getHours() >= 12;
|
|
1202
|
-
return s && t < 12 ? e.setHours(t + 12, 0, 0, 0) : !s && t === 12 ? e.setHours(0, 0, 0, 0) : e.setHours(t, 0, 0, 0), e;
|
|
1203
|
-
}
|
|
1204
|
-
incompatibleTokens = ["H", "K", "k", "t", "T"];
|
|
1205
|
-
}
|
|
1206
|
-
class mt extends i {
|
|
1207
|
-
priority = 70;
|
|
1208
|
-
parse(e, r, t) {
|
|
1209
|
-
switch (r) {
|
|
1210
|
-
case "H":
|
|
1211
|
-
return u(f.hour23h, e);
|
|
1212
|
-
case "Ho":
|
|
1213
|
-
return t.ordinalNumber(e, { unit: "hour" });
|
|
1214
|
-
default:
|
|
1215
|
-
return d(r.length, e);
|
|
1216
|
-
}
|
|
1217
|
-
}
|
|
1218
|
-
validate(e, r) {
|
|
1219
|
-
return r >= 0 && r <= 23;
|
|
1220
|
-
}
|
|
1221
|
-
set(e, r, t) {
|
|
1222
|
-
return e.setHours(t, 0, 0, 0), e;
|
|
1223
|
-
}
|
|
1224
|
-
incompatibleTokens = ["a", "b", "h", "K", "k", "t", "T"];
|
|
1225
|
-
}
|
|
1226
|
-
class pt extends i {
|
|
1227
|
-
priority = 70;
|
|
1228
|
-
parse(e, r, t) {
|
|
1229
|
-
switch (r) {
|
|
1230
|
-
case "K":
|
|
1231
|
-
return u(f.hour11h, e);
|
|
1232
|
-
case "Ko":
|
|
1233
|
-
return t.ordinalNumber(e, { unit: "hour" });
|
|
1234
|
-
default:
|
|
1235
|
-
return d(r.length, e);
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1238
|
-
validate(e, r) {
|
|
1239
|
-
return r >= 0 && r <= 11;
|
|
1240
|
-
}
|
|
1241
|
-
set(e, r, t) {
|
|
1242
|
-
return e.getHours() >= 12 && t < 12 ? e.setHours(t + 12, 0, 0, 0) : e.setHours(t, 0, 0, 0), e;
|
|
1243
|
-
}
|
|
1244
|
-
incompatibleTokens = ["h", "H", "k", "t", "T"];
|
|
1245
|
-
}
|
|
1246
|
-
class yt extends i {
|
|
1247
|
-
priority = 70;
|
|
1248
|
-
parse(e, r, t) {
|
|
1249
|
-
switch (r) {
|
|
1250
|
-
case "k":
|
|
1251
|
-
return u(f.hour24h, e);
|
|
1252
|
-
case "ko":
|
|
1253
|
-
return t.ordinalNumber(e, { unit: "hour" });
|
|
1254
|
-
default:
|
|
1255
|
-
return d(r.length, e);
|
|
1256
|
-
}
|
|
1257
|
-
}
|
|
1258
|
-
validate(e, r) {
|
|
1259
|
-
return r >= 1 && r <= 24;
|
|
1260
|
-
}
|
|
1261
|
-
set(e, r, t) {
|
|
1262
|
-
const s = t <= 24 ? t % 24 : t;
|
|
1263
|
-
return e.setHours(s, 0, 0, 0), e;
|
|
1264
|
-
}
|
|
1265
|
-
incompatibleTokens = ["a", "b", "h", "H", "K", "t", "T"];
|
|
1266
|
-
}
|
|
1267
|
-
class bt extends i {
|
|
1268
|
-
priority = 60;
|
|
1269
|
-
parse(e, r, t) {
|
|
1270
|
-
switch (r) {
|
|
1271
|
-
case "m":
|
|
1272
|
-
return u(f.minute, e);
|
|
1273
|
-
case "mo":
|
|
1274
|
-
return t.ordinalNumber(e, { unit: "minute" });
|
|
1275
|
-
default:
|
|
1276
|
-
return d(r.length, e);
|
|
1277
|
-
}
|
|
1278
|
-
}
|
|
1279
|
-
validate(e, r) {
|
|
1280
|
-
return r >= 0 && r <= 59;
|
|
1281
|
-
}
|
|
1282
|
-
set(e, r, t) {
|
|
1283
|
-
return e.setMinutes(t, 0, 0), e;
|
|
1284
|
-
}
|
|
1285
|
-
incompatibleTokens = ["t", "T"];
|
|
1286
|
-
}
|
|
1287
|
-
class xt extends i {
|
|
1288
|
-
priority = 50;
|
|
1289
|
-
parse(e, r, t) {
|
|
1290
|
-
switch (r) {
|
|
1291
|
-
case "s":
|
|
1292
|
-
return u(f.second, e);
|
|
1293
|
-
case "so":
|
|
1294
|
-
return t.ordinalNumber(e, { unit: "second" });
|
|
1295
|
-
default:
|
|
1296
|
-
return d(r.length, e);
|
|
1297
|
-
}
|
|
1298
|
-
}
|
|
1299
|
-
validate(e, r) {
|
|
1300
|
-
return r >= 0 && r <= 59;
|
|
1301
|
-
}
|
|
1302
|
-
set(e, r, t) {
|
|
1303
|
-
return e.setSeconds(t, 0), e;
|
|
1304
|
-
}
|
|
1305
|
-
incompatibleTokens = ["t", "T"];
|
|
1306
|
-
}
|
|
1307
|
-
class gt extends i {
|
|
1308
|
-
priority = 30;
|
|
1309
|
-
parse(e, r) {
|
|
1310
|
-
const t = (s) => Math.trunc(s * Math.pow(10, -r.length + 3));
|
|
1311
|
-
return h(d(r.length, e), t);
|
|
1312
|
-
}
|
|
1313
|
-
set(e, r, t) {
|
|
1314
|
-
return e.setMilliseconds(t), e;
|
|
1315
|
-
}
|
|
1316
|
-
incompatibleTokens = ["t", "T"];
|
|
1317
|
-
}
|
|
1318
|
-
class Tt extends i {
|
|
1319
|
-
priority = 10;
|
|
1320
|
-
parse(e, r) {
|
|
1321
|
-
switch (r) {
|
|
1322
|
-
case "X":
|
|
1323
|
-
return H(
|
|
1324
|
-
T.basicOptionalMinutes,
|
|
1325
|
-
e
|
|
1326
|
-
);
|
|
1327
|
-
case "XX":
|
|
1328
|
-
return H(T.basic, e);
|
|
1329
|
-
case "XXXX":
|
|
1330
|
-
return H(
|
|
1331
|
-
T.basicOptionalSeconds,
|
|
1332
|
-
e
|
|
1333
|
-
);
|
|
1334
|
-
case "XXXXX":
|
|
1335
|
-
return H(
|
|
1336
|
-
T.extendedOptionalSeconds,
|
|
1337
|
-
e
|
|
1338
|
-
);
|
|
1339
|
-
default:
|
|
1340
|
-
return H(T.extended, e);
|
|
1341
|
-
}
|
|
1342
|
-
}
|
|
1343
|
-
set(e, r, t) {
|
|
1344
|
-
return r.timestampIsSet ? e : k(
|
|
1345
|
-
e,
|
|
1346
|
-
e.getTime() - ie(e) - t
|
|
1347
|
-
);
|
|
1348
|
-
}
|
|
1349
|
-
incompatibleTokens = ["t", "T", "x"];
|
|
1350
|
-
}
|
|
1351
|
-
class Ht extends i {
|
|
1352
|
-
priority = 10;
|
|
1353
|
-
parse(e, r) {
|
|
1354
|
-
switch (r) {
|
|
1355
|
-
case "x":
|
|
1356
|
-
return H(
|
|
1357
|
-
T.basicOptionalMinutes,
|
|
1358
|
-
e
|
|
1359
|
-
);
|
|
1360
|
-
case "xx":
|
|
1361
|
-
return H(T.basic, e);
|
|
1362
|
-
case "xxxx":
|
|
1363
|
-
return H(
|
|
1364
|
-
T.basicOptionalSeconds,
|
|
1365
|
-
e
|
|
1366
|
-
);
|
|
1367
|
-
case "xxxxx":
|
|
1368
|
-
return H(
|
|
1369
|
-
T.extendedOptionalSeconds,
|
|
1370
|
-
e
|
|
1371
|
-
);
|
|
1372
|
-
default:
|
|
1373
|
-
return H(T.extended, e);
|
|
1374
|
-
}
|
|
1375
|
-
}
|
|
1376
|
-
set(e, r, t) {
|
|
1377
|
-
return r.timestampIsSet ? e : k(
|
|
1378
|
-
e,
|
|
1379
|
-
e.getTime() - ie(e) - t
|
|
1380
|
-
);
|
|
1381
|
-
}
|
|
1382
|
-
incompatibleTokens = ["t", "T", "X"];
|
|
1383
|
-
}
|
|
1384
|
-
class Dt extends i {
|
|
1385
|
-
priority = 40;
|
|
1386
|
-
parse(e) {
|
|
1387
|
-
return le(e);
|
|
1388
|
-
}
|
|
1389
|
-
set(e, r, t) {
|
|
1390
|
-
return [k(e, t * 1e3), { timestampIsSet: !0 }];
|
|
1391
|
-
}
|
|
1392
|
-
incompatibleTokens = "*";
|
|
1393
|
-
}
|
|
1394
|
-
class Mt extends i {
|
|
1395
|
-
priority = 20;
|
|
1396
|
-
parse(e) {
|
|
1397
|
-
return le(e);
|
|
1398
|
-
}
|
|
1399
|
-
set(e, r, t) {
|
|
1400
|
-
return [k(e, t), { timestampIsSet: !0 }];
|
|
1401
|
-
}
|
|
1402
|
-
incompatibleTokens = "*";
|
|
1403
|
-
}
|
|
1404
|
-
const kt = {
|
|
1405
|
-
G: new We(),
|
|
1406
|
-
y: new Be(),
|
|
1407
|
-
Y: new Ge(),
|
|
1408
|
-
R: new Xe(),
|
|
1409
|
-
u: new ze(),
|
|
1410
|
-
Q: new Ke(),
|
|
1411
|
-
q: new $e(),
|
|
1412
|
-
M: new je(),
|
|
1413
|
-
L: new Ue(),
|
|
1414
|
-
w: new Se(),
|
|
1415
|
-
I: new tt(),
|
|
1416
|
-
d: new st(),
|
|
1417
|
-
D: new at(),
|
|
1418
|
-
E: new ot(),
|
|
1419
|
-
e: new it(),
|
|
1420
|
-
c: new ct(),
|
|
1421
|
-
i: new lt(),
|
|
1422
|
-
a: new dt(),
|
|
1423
|
-
b: new wt(),
|
|
1424
|
-
B: new ft(),
|
|
1425
|
-
h: new ht(),
|
|
1426
|
-
H: new mt(),
|
|
1427
|
-
K: new pt(),
|
|
1428
|
-
k: new yt(),
|
|
1429
|
-
m: new bt(),
|
|
1430
|
-
s: new xt(),
|
|
1431
|
-
S: new gt(),
|
|
1432
|
-
X: new Tt(),
|
|
1433
|
-
x: new Ht(),
|
|
1434
|
-
t: new Dt(),
|
|
1435
|
-
T: new Mt()
|
|
1436
|
-
}, Vt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Pt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, vt = /^'([^]*?)'?$/, Et = /''/g, _t = /\S/, It = /[a-zA-Z]/;
|
|
1437
|
-
function Ot(n, e, r, t) {
|
|
1438
|
-
const s = () => k(r, NaN), a = qe(), l = a.locale ?? Ve, m = a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, p = a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0;
|
|
1439
|
-
if (!e)
|
|
1440
|
-
return n ? s() : P(r, t?.in);
|
|
1441
|
-
const D = {
|
|
1442
|
-
firstWeekContainsDate: m,
|
|
1443
|
-
weekStartsOn: p,
|
|
1444
|
-
locale: l
|
|
1445
|
-
}, M = [new Fe(t?.in, r)], A = e.match(Pt).map((o) => {
|
|
1446
|
-
const c = o[0];
|
|
1447
|
-
if (c in J) {
|
|
1448
|
-
const y = J[c];
|
|
1449
|
-
return y(o, l.formatLong);
|
|
1450
|
-
}
|
|
1451
|
-
return o;
|
|
1452
|
-
}).join("").match(Vt), I = [];
|
|
1453
|
-
for (let o of A) {
|
|
1454
|
-
Pe(o) && S(o, e, n), ve(o) && S(o, e, n);
|
|
1455
|
-
const c = o[0], y = kt[c];
|
|
1456
|
-
if (y) {
|
|
1457
|
-
const { incompatibleTokens: V } = y;
|
|
1458
|
-
if (Array.isArray(V)) {
|
|
1459
|
-
const q = I.find(
|
|
1460
|
-
(E) => V.includes(E.token) || E.token === c
|
|
1461
|
-
);
|
|
1462
|
-
if (q)
|
|
1463
|
-
throw new RangeError(
|
|
1464
|
-
`The format string mustn't contain \`${q.fullToken}\` and \`${o}\` at the same time`
|
|
1465
|
-
);
|
|
1466
|
-
} else if (y.incompatibleTokens === "*" && I.length > 0)
|
|
1467
|
-
throw new RangeError(
|
|
1468
|
-
`The format string mustn't contain \`${o}\` and any other token at the same time`
|
|
1469
|
-
);
|
|
1470
|
-
I.push({ token: c, fullToken: o });
|
|
1471
|
-
const L = y.run(
|
|
1472
|
-
n,
|
|
1473
|
-
o,
|
|
1474
|
-
l.match,
|
|
1475
|
-
D
|
|
1476
|
-
);
|
|
1477
|
-
if (!L)
|
|
1478
|
-
return s();
|
|
1479
|
-
M.push(L.setter), n = L.rest;
|
|
1480
|
-
} else {
|
|
1481
|
-
if (c.match(It))
|
|
1482
|
-
throw new RangeError(
|
|
1483
|
-
"Format string contains an unescaped latin alphabet character `" + c + "`"
|
|
1484
|
-
);
|
|
1485
|
-
if (o === "''" ? o = "'" : c === "'" && (o = Yt(o)), n.indexOf(o) === 0)
|
|
1486
|
-
n = n.slice(o.length);
|
|
1487
|
-
else
|
|
1488
|
-
return s();
|
|
1489
|
-
}
|
|
1490
|
-
}
|
|
1491
|
-
if (n.length > 0 && _t.test(n))
|
|
1492
|
-
return s();
|
|
1493
|
-
const O = M.map((o) => o.priority).sort((o, c) => c - o).filter((o, c, y) => y.indexOf(o) === c).map(
|
|
1494
|
-
(o) => M.filter((c) => c.priority === o).sort((c, y) => y.subPriority - c.subPriority)
|
|
1495
|
-
).map((o) => o[0]);
|
|
1496
|
-
let x = P(r, t?.in);
|
|
1497
|
-
if (isNaN(+x)) return s();
|
|
1498
|
-
const v = {};
|
|
1499
|
-
for (const o of O) {
|
|
1500
|
-
if (!o.validate(x, D))
|
|
1501
|
-
return s();
|
|
1502
|
-
const c = o.set(x, v, D);
|
|
1503
|
-
Array.isArray(c) ? (x = c[0], Object.assign(v, c[1])) : x = c;
|
|
1504
|
-
}
|
|
1505
|
-
return x;
|
|
1506
|
-
}
|
|
1507
|
-
function Yt(n) {
|
|
1508
|
-
return n.match(vt)[1].replace(Et, "'");
|
|
1509
|
-
}
|
|
1510
|
-
const re = new Date(1970, 11, 31), C = {
|
|
1511
|
-
year: () => [/\d/, /\d/, /\d/, /\d/],
|
|
1512
|
-
month: () => [/\d/, /\d/],
|
|
1513
|
-
day: () => [/\d/, /\d/],
|
|
1514
|
-
hour: () => [/\d/, /\d/],
|
|
1515
|
-
minute: () => [/\d/, /\d/],
|
|
1516
|
-
literal: (n) => n.split("")
|
|
1517
|
-
}, ne = {
|
|
1518
|
-
day: () => "dd",
|
|
1519
|
-
hour: () => "HH",
|
|
1520
|
-
month: () => "MM",
|
|
1521
|
-
minute: () => "mm",
|
|
1522
|
-
year: () => "yyyy",
|
|
1523
|
-
literal: (n) => n
|
|
1524
|
-
}, At = {
|
|
1525
|
-
literal: (n, e) => e,
|
|
1526
|
-
year: (n) => n.getFullYear().toString(),
|
|
1527
|
-
day: (n) => n.getDate().toString().padStart(2, "0"),
|
|
1528
|
-
hour: (n) => n.getHours().toString().padStart(2, "0"),
|
|
1529
|
-
minute: (n) => n.getMinutes().toString().padStart(2, "0"),
|
|
1530
|
-
month: (n) => (n.getMonth() + 1).toString().padStart(2, "0")
|
|
1531
|
-
}, F = (n, e) => {
|
|
1532
|
-
try {
|
|
1533
|
-
return n.formatToParts(e).map((r) => r.type === "literal" && r.value === ", " ? { type: r.type, value: " " } : r);
|
|
1534
|
-
} catch {
|
|
1535
|
-
return [];
|
|
1536
|
-
}
|
|
1537
|
-
}, Lt = { day: "numeric", month: "numeric", year: "numeric", hour: "numeric", minute: "numeric" }, qt = { day: "numeric", month: "numeric", year: "numeric" }, Xt = pe(
|
|
1538
|
-
({ date: n, locale: e, disabledDate: r, onChange: t, markToday: s, clickToClose: a, floating: l = !0, type: m, ...p }, D) => {
|
|
1539
|
-
const M = Ee(e), A = ye(), I = Oe(), O = j(() => new Intl.DateTimeFormat(M, m === "datetime" ? Lt : qt), [M, m]), [x, v] = Q(n || void 0), [o, c] = Q(!1), y = F(O, re).flatMap(
|
|
1540
|
-
(b) => R.keyof(C, b.type) ? C[b.type](b.value) : []
|
|
1541
|
-
), V = j(() => F(O, re).reduce(
|
|
1542
|
-
(b, g) => b + (R.keyof(ne, g.type) ? ne[g.type](g.value) : ""),
|
|
1543
|
-
""
|
|
1544
|
-
), [O]), L = n?.toISOString(), [q, E] = Q(
|
|
1545
|
-
x ? F(O, x).reduce(
|
|
1546
|
-
(b, g) => b + (R.keyof(C, g.type) ? At[g.type](x, g.value) : ""),
|
|
1547
|
-
""
|
|
1548
|
-
) : ""
|
|
1549
|
-
), fe = (b) => {
|
|
1550
|
-
const g = b.target.value;
|
|
1551
|
-
if (E(g), y.length === g.length && y.every((Y, Z) => {
|
|
1552
|
-
const K = g.charAt(Z);
|
|
1553
|
-
return typeof Y == "string" ? K === Y : Y.test(K);
|
|
1554
|
-
})) {
|
|
1555
|
-
const Y = Ot(g, V, /* @__PURE__ */ new Date()), Z = m === "datetime" ? Y : Ie(Y);
|
|
1556
|
-
return v(Z), t?.(Z);
|
|
1557
|
-
}
|
|
1558
|
-
return v(void 0), t?.(void 0);
|
|
1559
|
-
};
|
|
1560
|
-
be(() => {
|
|
1561
|
-
ee(n) && (v(n), E(te(n, V)));
|
|
1562
|
-
}, [L, V]);
|
|
1563
|
-
const he = (b) => (v(b), t?.(b), a && c(!1), E(b ? te(b, V) : "")), X = ee(x), z = X ? x.toISOString() : void 0, me = /* @__PURE__ */ _(
|
|
1564
|
-
_e,
|
|
1565
|
-
{
|
|
1566
|
-
...p,
|
|
1567
|
-
type: m,
|
|
1568
|
-
locale: M,
|
|
1569
|
-
changeOnlyOnClick: !0,
|
|
1570
|
-
markToday: s,
|
|
1571
|
-
onChange: he,
|
|
1572
|
-
disabledDate: r,
|
|
1573
|
-
date: X ? x : void 0
|
|
1574
|
-
}
|
|
1575
|
-
);
|
|
1576
|
-
return /* @__PURE__ */ _(U, { children: /* @__PURE__ */ _(
|
|
1577
|
-
Ae,
|
|
1578
|
-
{
|
|
1579
|
-
...p,
|
|
1580
|
-
mask: y,
|
|
1581
|
-
value: q,
|
|
1582
|
-
id: void 0,
|
|
1583
|
-
name: void 0,
|
|
1584
|
-
"data-value": z,
|
|
1585
|
-
formNoValidate: !o,
|
|
1586
|
-
"data-target": p.name,
|
|
1587
|
-
"data-component": "date-picker",
|
|
1588
|
-
onChange: fe,
|
|
1589
|
-
required: p.required ?? !0,
|
|
1590
|
-
error: o ? void 0 : p.error,
|
|
1591
|
-
placeholder: p.placeholder || I.datepickerPlaceholder(V),
|
|
1592
|
-
right: l ? /* @__PURE__ */ $(U, { children: [
|
|
1593
|
-
/* @__PURE__ */ _(
|
|
1594
|
-
"input",
|
|
1595
|
-
{
|
|
1596
|
-
"data-origin": p.name,
|
|
1597
|
-
defaultValue: z,
|
|
1598
|
-
form: p.form,
|
|
1599
|
-
hidden: !0,
|
|
1600
|
-
id: p.name,
|
|
1601
|
-
name: p.name,
|
|
1602
|
-
ref: D,
|
|
1603
|
-
type: "date"
|
|
1604
|
-
}
|
|
1605
|
-
),
|
|
1606
|
-
/* @__PURE__ */ _(
|
|
1607
|
-
Ye,
|
|
1608
|
-
{
|
|
1609
|
-
open: o,
|
|
1610
|
-
onChange: c,
|
|
1611
|
-
buttonProps: { "aria-describedby": A },
|
|
1612
|
-
trigger: /* @__PURE__ */ $("span", { "aria-labelledby": A, children: [
|
|
1613
|
-
/* @__PURE__ */ _("span", { id: A, className: "sr-only", children: I.datePickerCalendarButtonLabel }),
|
|
1614
|
-
/* @__PURE__ */ _(ce, {})
|
|
1615
|
-
] }),
|
|
1616
|
-
children: me
|
|
1617
|
-
}
|
|
1618
|
-
)
|
|
1619
|
-
] }) : null
|
|
1620
|
-
}
|
|
1621
|
-
) });
|
|
1622
|
-
}
|
|
1623
|
-
);
|
|
1624
|
-
export {
|
|
1625
|
-
Xt as D,
|
|
1626
|
-
ce as e
|
|
1627
|
-
};
|
|
1628
|
-
//# sourceMappingURL=date-picker-Bnl07nd8.js.map
|