impact-ui 5.0.0-alpha.1 → 5.0.0-beta.2
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/dist/_virtual/PaletteOutlined.js +4 -0
- package/dist/_virtual/colorManipulator.js +4 -0
- package/dist/_virtual/createStyled.js +4 -0
- package/dist/_virtual/index10.js +6 -0
- package/dist/_virtual/index11.js +6 -0
- package/dist/_virtual/index12.js +6 -0
- package/dist/_virtual/index13.js +4 -0
- package/dist/_virtual/index14.js +4 -0
- package/dist/_virtual/index15.js +4 -0
- package/dist/_virtual/index16.js +4 -0
- package/dist/_virtual/index4.js +4 -2
- package/dist/_virtual/index5.js +4 -2
- package/dist/_virtual/index7.js +4 -2
- package/dist/_virtual/index8.js +4 -2
- package/dist/_virtual/index9.js +6 -0
- package/dist/_virtual/react-is.production.js +4 -0
- package/dist/_virtual/useThemeWithoutDefault.js +4 -0
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/AccordionModern/SortableAccordionComp.js +2 -2
- package/dist/components/AccordionModern/index.d.ts.map +1 -1
- package/dist/components/AccordionModern/index.js +34 -41
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/Badge/filled/filledIconLabelBadges/index.js +1 -1
- package/dist/components/Badge/filled/filledOnlyIconBadges/index.js +1 -1
- package/dist/components/Badge/filled/filledOnlyLabelBadges/index.js +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Badge/stroke/strokeIconLabelBadges/index.js +1 -1
- package/dist/components/Badge/stroke/strokeOnlyIconBadges/index.js +1 -1
- package/dist/components/Badge/stroke/strokeOnlyLabelBadges/index.js +1 -1
- package/dist/components/Badge/subtle/subtleIOnlyIconBadges/index.js +1 -1
- package/dist/components/Badge/subtle/subtleIconLabelBadges/index.js +1 -1
- package/dist/components/Badge/subtle/subtleOnlyLabelBadges/index.js +1 -1
- package/dist/components/BottomSheet/index.js +1 -1
- package/dist/components/Breadcrumbs/HomeIcon.js +1 -1
- package/dist/components/Breadcrumbs/index.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/index.js +8 -2
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +5 -1
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Card/index.js +1 -1
- package/dist/components/Chart/ChartSkeleton.d.ts.map +1 -1
- package/dist/components/Chart/ChartSkeleton.js +24 -17
- package/dist/components/Chart/index.d.ts.map +1 -1
- package/dist/components/Chart/index.js +83 -27
- package/dist/components/Chatbot/bookMarkPanel.d.ts.map +1 -1
- package/dist/components/Chatbot/bookMarkPanel.js +12 -5
- package/dist/components/Chatbot/chatInput.d.ts.map +1 -1
- package/dist/components/Chatbot/chatInput.js +7 -9
- package/dist/components/Chatbot/chatbotModuleMenu.d.ts.map +1 -1
- package/dist/components/Chatbot/chatbotModuleMenu.js +10 -15
- package/dist/components/Chatbot/constant.d.ts.map +1 -1
- package/dist/components/Chatbot/constant.js +12 -12
- package/dist/components/Chatbot/historyPanel.d.ts.map +1 -1
- package/dist/components/Chatbot/historyPanel.js +11 -3
- package/dist/components/Chatbot/index.d.ts.map +1 -1
- package/dist/components/Chatbot/index.js +5 -4
- package/dist/components/Chatbot/newChatComponent.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Chips/chipLeadingIcon.d.ts +6 -0
- package/dist/components/Chips/chipLeadingIcon.d.ts.map +1 -0
- package/dist/components/Chips/chipLeadingIcon.js +46 -0
- package/dist/components/Chips/index.d.ts.map +1 -1
- package/dist/components/Chips/index.js +7 -2
- package/dist/components/CommentsPanel/CommentsContext.d.ts.map +1 -1
- package/dist/components/CommentsPanel/CommentsContext.js +5 -4
- package/dist/components/CommentsPanel/CommentsPanel.impl.d.ts.map +1 -1
- package/dist/components/CommentsPanel/CommentsPanel.impl.js +11 -8
- package/dist/components/CommentsPanel/CommentsPanel.types.d.ts +1 -1
- package/dist/components/CommentsPanel/CommentsPanel.types.d.ts.map +1 -1
- package/dist/components/CreateItemFlow/index.js +1 -1
- package/dist/components/DatePicker/datePickerInput.d.ts.map +1 -1
- package/dist/components/DatePicker/datePickerInput.js +5 -2
- package/dist/components/DatePicker/index.js +2 -2
- package/dist/components/DateRangePicker/dateRangePickerInput.js +6 -7
- package/dist/components/DateRangePicker/index.js +2 -2
- package/dist/components/DynamicLayout/index.js +1 -1
- package/dist/components/EmptyState/index.js +1 -1
- package/dist/components/FileUpload/index.d.ts.map +1 -1
- package/dist/components/FileUpload/index.js +11 -4
- package/dist/components/FilterPanel/index.d.ts.map +1 -1
- package/dist/components/FilterPanel/index.js +67 -43
- package/dist/components/FiltersStrip/FilterSlider.js +1 -1
- package/dist/components/FiltersStrip/index.js +1 -1
- package/dist/components/Header/Header.types.d.ts +16 -4
- package/dist/components/Header/Header.types.d.ts.map +1 -1
- package/dist/components/Header/index.d.ts +1 -1
- package/dist/components/Header/index.d.ts.map +1 -1
- package/dist/components/Header/index.js +72 -45
- package/dist/components/HomePage/HomePage.types.d.ts +3 -2
- package/dist/components/HomePage/HomePage.types.d.ts.map +1 -1
- package/dist/components/HomePage/constants.d.ts.map +1 -1
- package/dist/components/HomePage/constants.js +23 -44
- package/dist/components/HomePage/index.d.ts.map +1 -1
- package/dist/components/HomePage/index.js +9 -20
- package/dist/components/ImpactIcon/index.d.ts +19 -0
- package/dist/components/ImpactIcon/index.d.ts.map +1 -0
- package/dist/components/ImpactIcon/index.js +52 -0
- package/dist/components/Input/HelperText.d.ts.map +1 -1
- package/dist/components/Input/HelperText.js +3 -1
- package/dist/components/Input/InputWithIcon.js +1 -1
- package/dist/components/Input/VanillaInput.js +1 -1
- package/dist/components/Input/index.js +3 -3
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.js +5 -4
- package/dist/components/KeyboardShortCuts/ShortcutModal.js +2 -2
- package/dist/components/KeyboardShortCuts/allSetBox.js +2 -2
- package/dist/components/KeyboardShortCuts/index.js +1 -1
- package/dist/components/KeyboardShortCuts/tutorial.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/tutorial.js +3 -2
- package/dist/components/Loader/index.js +1 -1
- package/dist/components/Menu/IconMenuItem.js +1 -1
- package/dist/components/Menu/MenuHeaderInfo.d.ts.map +1 -1
- package/dist/components/Menu/MenuHeaderInfo.js +10 -2
- package/dist/components/Menu/NestedMenuItem.js +1 -1
- package/dist/components/Menu/index.js +5 -14
- package/dist/components/Menu/nestedMenuItemsFromObject.js +1 -1
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/MonthPicker/index.d.ts.map +1 -1
- package/dist/components/MonthPicker/index.js +10 -4
- package/dist/components/MonthRangePicker/constants.d.ts +4 -0
- package/dist/components/MonthRangePicker/constants.d.ts.map +1 -1
- package/dist/components/MonthRangePicker/constants.js +15 -1
- package/dist/components/MonthRangePicker/index.d.ts.map +1 -1
- package/dist/components/MonthRangePicker/index.js +32 -28
- package/dist/components/NewCreateItemFlow/index.js +1 -1
- package/dist/components/NewDynamicLayout/index.d.ts.map +1 -1
- package/dist/components/NewDynamicLayout/index.js +13 -15
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.js +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.js +12 -16
- package/dist/components/Notification/NotificationHeader.d.ts.map +1 -1
- package/dist/components/Notification/NotificationHeader.js +13 -3
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/OnboardingTour/index.d.ts.map +1 -1
- package/dist/components/OnboardingTour/index.js +10 -4
- package/dist/components/OnboardingTour/productTourList.js +4 -4
- package/dist/components/OnboardingTour/tooltipCard.d.ts.map +1 -1
- package/dist/components/OnboardingTour/tooltipCard.js +2 -2
- package/dist/components/Panel/index.d.ts +1 -1
- package/dist/components/Panel/index.d.ts.map +1 -1
- package/dist/components/Panel/index.js +13 -7
- package/dist/components/Popover/Popover.types.d.ts +5 -0
- package/dist/components/Popover/Popover.types.d.ts.map +1 -1
- package/dist/components/Popover/index.d.ts +1 -1
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js +12 -4
- package/dist/components/ProfileMenu/ProfileMenu.types.d.ts +50 -0
- package/dist/components/ProfileMenu/ProfileMenu.types.d.ts.map +1 -0
- package/dist/components/ProfileMenu/ProfileMenuListItem.d.ts +12 -0
- package/dist/components/ProfileMenu/ProfileMenuListItem.d.ts.map +1 -0
- package/dist/components/ProfileMenu/ProfileMenuListItem.js +42 -0
- package/dist/components/ProfileMenu/index.d.ts +11 -0
- package/dist/components/ProfileMenu/index.d.ts.map +1 -0
- package/dist/components/ProfileMenu/index.js +141 -0
- package/dist/components/ProgressBar/index.js +1 -1
- package/dist/components/Prompt/index.d.ts.map +1 -1
- package/dist/components/Prompt/index.js +10 -2
- package/dist/components/RadioButtonGroup/index.js +1 -1
- package/dist/components/Select/index.js +2 -2
- package/dist/components/Select/menuList.d.ts.map +1 -1
- package/dist/components/Select/menuList.js +2 -1
- package/dist/components/Shortcuts/ShortcutHint.d.ts.map +1 -1
- package/dist/components/Shortcuts/ShortcutHint.js +4 -18
- package/dist/components/Sidebar/SidebarActions.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarActions.js +3 -3
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/Sidebar/index.js +1 -1
- package/dist/components/Skeleton/index.js +1 -1
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/index.js +8 -6
- package/dist/components/Slider/sliderValueLabel.d.ts +7 -0
- package/dist/components/Slider/sliderValueLabel.d.ts.map +1 -0
- package/dist/components/Slider/sliderValueLabel.js +31 -0
- package/dist/components/Stepper/index.d.ts.map +1 -1
- package/dist/components/Stepper/index.js +2 -2
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/Switch/index.js +11 -10
- package/dist/components/TableChat/EmptyContainer.js +1 -1
- package/dist/components/TableChat/TableChatSidePanel.js +1 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatFooterSkeleton.js +1 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatHeaderSkeleton.js +1 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatMessageListSkeleton.js +1 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatSkeleton.js +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.js +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.js +6 -5
- package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderNavigation.js +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.js +19 -37
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.js +13 -21
- package/dist/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/ChatDeletedMessageType.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.js +24 -13
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.js +4 -4
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.js +23 -11
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.js +21 -24
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +5 -6
- package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/FileUploader/FileUploader.js +6 -6
- package/dist/components/TableChat/components/TableChatRightSection/ImageUploader/ImageUploader.js +5 -5
- package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.js +12 -5
- package/dist/components/TableChat/components/TextEditor/EditorToolbar.js +1 -1
- package/dist/components/TableChat/components/TextEditor/Mention.d.ts.map +1 -1
- package/dist/components/TableChat/components/TextEditor/Mention.js +2 -7
- package/dist/components/TableChat/components/TextEditor/MentionList.js +1 -1
- package/dist/components/TableV36/AdvanceSearchModalItem.d.ts.map +1 -1
- package/dist/components/TableV36/AdvanceSortModal.d.ts.map +1 -1
- package/dist/components/TableV36/AdvanceSortModal.js +42 -48
- package/dist/components/TableV36/AgGridHeader.d.ts.map +1 -1
- package/dist/components/TableV36/AgGridHeader.js +21 -11
- package/dist/components/TableV36/CommentsPortal.d.ts.map +1 -1
- package/dist/components/TableV36/CommentsPortal.js +7 -4
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts.map +1 -1
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModal.js +0 -3
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts.map +1 -1
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.js +5 -0
- package/dist/components/TableV36/NoComments.js +1 -1
- package/dist/components/TableV36/Table.types.d.ts +2 -2
- package/dist/components/TableV36/Table.types.d.ts.map +1 -1
- package/dist/components/TableV36/TableSkeletonCell.d.ts.map +1 -1
- package/dist/components/TableV36/TableSkeletonCell.js +3 -15
- package/dist/components/TableV36/index.d.ts.map +1 -1
- package/dist/components/TableV36/index.js +31 -112
- package/dist/components/TableV36/tableFunctions.d.ts.map +1 -1
- package/dist/components/TableV36/tableFunctions.js +37 -26
- package/dist/components/TableV36/tableHeader.d.ts +2 -6
- package/dist/components/TableV36/tableHeader.d.ts.map +1 -1
- package/dist/components/TableV36/tableHeader.js +9 -13
- package/dist/components/TableV36/tableMoreOptions.d.ts +1 -3
- package/dist/components/TableV36/tableMoreOptions.d.ts.map +1 -1
- package/dist/components/TableV36/tableMoreOptions.js +37 -44
- package/dist/components/TableV36/tablePagination.d.ts.map +1 -1
- package/dist/components/TableV36/tablePagination.js +1 -4
- package/dist/components/TableV36/tableSettings.d.ts.map +1 -1
- package/dist/components/TableV36/tableSettings.js +8 -9
- package/dist/components/TableV36/withCommentIcon.d.ts.map +1 -1
- package/dist/components/TableV36/withCommentIcon.js +13 -5
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/Tag/index.js +1 -1
- package/dist/components/TextArea/index.js +3 -3
- package/dist/components/ThemingPanel/AccentColorSection.d.ts +11 -0
- package/dist/components/ThemingPanel/AccentColorSection.d.ts.map +1 -0
- package/dist/components/ThemingPanel/AccentColorSection.js +43 -0
- package/dist/components/ThemingPanel/EnhanceContrastSection.d.ts +11 -0
- package/dist/components/ThemingPanel/EnhanceContrastSection.d.ts.map +1 -0
- package/dist/components/ThemingPanel/EnhanceContrastSection.js +42 -0
- package/dist/components/ThemingPanel/InterfaceThemeSection.d.ts +13 -0
- package/dist/components/ThemingPanel/InterfaceThemeSection.d.ts.map +1 -0
- package/dist/components/ThemingPanel/InterfaceThemeSection.js +118 -0
- package/dist/components/ThemingPanel/StylesSection.d.ts +11 -0
- package/dist/components/ThemingPanel/StylesSection.d.ts.map +1 -0
- package/dist/components/ThemingPanel/StylesSection.js +43 -0
- package/dist/components/ThemingPanel/ThemesTab.d.ts +18 -0
- package/dist/components/ThemingPanel/ThemesTab.d.ts.map +1 -0
- package/dist/components/ThemingPanel/ThemesTab.js +33 -0
- package/dist/components/ThemingPanel/ThemingPanel.d.ts +10 -0
- package/dist/components/ThemingPanel/ThemingPanel.d.ts.map +1 -0
- package/dist/components/ThemingPanel/ThemingPanel.js +178 -0
- package/dist/components/ThemingPanel/ThemingPanel.types.d.ts +21 -0
- package/dist/components/ThemingPanel/ThemingPanel.types.d.ts.map +1 -0
- package/dist/components/ThemingPanel/index.d.ts +9 -0
- package/dist/components/ThemingPanel/index.d.ts.map +1 -0
- package/dist/components/ThemingPanel/themingPanel.constants.d.ts +23 -0
- package/dist/components/ThemingPanel/themingPanel.constants.d.ts.map +1 -0
- package/dist/components/ThemingPanel/themingPanel.constants.js +44 -0
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/common/HelperText/index.js +1 -1
- package/dist/components/common/MentionEditor/MentionList/index.js +1 -1
- package/dist/components/common/MentionEditor/index.js +1 -1
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +42 -0
- package/dist/components/shared/tableColumnSettings/columnsTabV36.d.ts.map +1 -1
- package/dist/components/shared/tableColumnSettings/tableSettingsV36.d.ts.map +1 -1
- package/dist/locales/de-DE.json.d.ts +40 -0
- package/dist/locales/de-DE.json.js +40 -0
- package/dist/locales/en-US.json.d.ts +40 -0
- package/dist/locales/en-US.json.js +40 -0
- package/dist/locales/es-ES.json.d.ts +40 -0
- package/dist/locales/es-ES.json.js +40 -0
- package/dist/mcp-component-registry.json +143 -76
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +4 -4
- package/dist/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +2 -1
- package/dist/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +2 -0
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +1 -1
- package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +448 -335
- package/dist/node_modules/@mui/base/TextareaAutosize/TextareaAutosize.js +21 -15
- package/dist/node_modules/@mui/icons-material/Add.js +2 -3
- package/dist/node_modules/@mui/icons-material/AttachFile.js +2 -3
- package/dist/node_modules/@mui/icons-material/AutoFixHigh.js +2 -3
- package/dist/node_modules/@mui/icons-material/Block.js +2 -3
- package/dist/node_modules/@mui/icons-material/BookmarkBorderOutlined.js +2 -3
- package/dist/node_modules/@mui/icons-material/Brush.js +2 -3
- package/dist/node_modules/@mui/icons-material/Cancel.js +2 -3
- package/dist/node_modules/@mui/icons-material/CheckCircle.js +2 -3
- package/dist/node_modules/@mui/icons-material/ChevronLeft.js +1 -2
- package/dist/node_modules/@mui/icons-material/ChevronLeftOutlined.js +2 -3
- package/dist/node_modules/@mui/icons-material/ChevronRight.js +1 -2
- package/dist/node_modules/@mui/icons-material/ChevronRightOutlined.js +2 -3
- package/dist/node_modules/@mui/icons-material/Clear.js +1 -2
- package/dist/node_modules/@mui/icons-material/Close.js +1 -2
- package/dist/node_modules/@mui/icons-material/CloseOutlined.js +2 -3
- package/dist/node_modules/@mui/icons-material/CloseRounded.js +2 -3
- package/dist/node_modules/@mui/icons-material/DeleteOutlineOutlined.js +2 -3
- package/dist/node_modules/@mui/icons-material/DeleteOutlined.js +2 -3
- package/dist/node_modules/@mui/icons-material/DragIndicator.js +2 -3
- package/dist/node_modules/@mui/icons-material/ErrorOutline.js +2 -3
- package/dist/node_modules/@mui/icons-material/ExpandLess.js +1 -2
- package/dist/node_modules/@mui/icons-material/ExpandLessOutlined.js +2 -3
- package/dist/node_modules/@mui/icons-material/ExpandMore.js +1 -2
- package/dist/node_modules/@mui/icons-material/ExpandMoreOutlined.js +2 -3
- package/dist/node_modules/@mui/icons-material/FileDownloadOutlined.js +2 -3
- package/dist/node_modules/@mui/icons-material/FilterAltOffOutlined.js +2 -3
- package/dist/node_modules/@mui/icons-material/FilterAltOutlined.js +2 -3
- package/dist/node_modules/@mui/icons-material/FilterList.js +2 -3
- package/dist/node_modules/@mui/icons-material/FilterListOutlined.js +2 -3
- package/dist/node_modules/@mui/icons-material/FormatBold.js +2 -3
- package/dist/node_modules/@mui/icons-material/FormatColorTextOutlined.js +2 -3
- package/dist/node_modules/@mui/icons-material/FormatItalic.js +1 -2
- package/dist/node_modules/@mui/icons-material/FormatListBulleted.js +2 -3
- package/dist/node_modules/@mui/icons-material/FormatListNumbered.js +2 -3
- package/dist/node_modules/@mui/icons-material/Image.js +2 -3
- package/dist/node_modules/@mui/icons-material/Info.js +2 -3
- package/dist/node_modules/@mui/icons-material/InfoOutlined.js +2 -3
- package/dist/node_modules/@mui/icons-material/InsertEmoticon.js +2 -3
- package/dist/node_modules/@mui/icons-material/KeyboardArrowDown.js +2 -3
- package/dist/node_modules/@mui/icons-material/KeyboardArrowDownOutlined.js +2 -3
- package/dist/node_modules/@mui/icons-material/KeyboardArrowLeft.js +2 -3
- package/dist/node_modules/@mui/icons-material/KeyboardArrowRight.js +2 -3
- package/dist/node_modules/@mui/icons-material/KeyboardArrowRightOutlined.js +2 -3
- package/dist/node_modules/@mui/icons-material/KeyboardArrowUp.js +1 -2
- package/dist/node_modules/@mui/icons-material/KeyboardRounded.js +2 -3
- package/dist/node_modules/@mui/icons-material/Link.js +2 -3
- package/dist/node_modules/@mui/icons-material/Looks3.js +2 -3
- package/dist/node_modules/@mui/icons-material/Looks4.js +2 -3
- package/dist/node_modules/@mui/icons-material/Looks5.js +2 -3
- package/dist/node_modules/@mui/icons-material/Looks6.js +2 -3
- package/dist/node_modules/@mui/icons-material/LooksOne.js +2 -3
- package/dist/node_modules/@mui/icons-material/LooksTwo.js +2 -3
- package/dist/node_modules/@mui/icons-material/MoreHoriz.js +2 -3
- package/dist/node_modules/@mui/icons-material/MoreHorizOutlined.js +2 -3
- package/dist/node_modules/@mui/icons-material/MoreVert.js +2 -3
- package/dist/node_modules/@mui/icons-material/North.js +2 -3
- package/dist/node_modules/@mui/icons-material/NotificationsOff.js +2 -3
- package/dist/node_modules/@mui/icons-material/PaletteOutlined.js +33 -0
- package/dist/node_modules/@mui/icons-material/RemoveRounded.js +2 -3
- package/dist/node_modules/@mui/icons-material/SaveOutlined.js +2 -3
- package/dist/node_modules/@mui/icons-material/Search.js +2 -3
- package/dist/node_modules/@mui/icons-material/SearchOutlined.js +2 -3
- package/dist/node_modules/@mui/icons-material/SettingsOutlined.js +2 -3
- package/dist/node_modules/@mui/icons-material/StrikethroughS.js +2 -3
- package/dist/node_modules/@mui/icons-material/TableChartOutlined.js +2 -3
- package/dist/node_modules/@mui/icons-material/Tune.js +2 -3
- package/dist/node_modules/@mui/icons-material/ViewColumnOutlined.js +2 -3
- package/dist/node_modules/@mui/icons-material/Warning.js +2 -3
- package/dist/node_modules/@mui/icons-material/esm/AddOutlined.js +1 -1
- package/dist/node_modules/@mui/icons-material/esm/DragIndicator.js +1 -1
- package/dist/node_modules/@mui/icons-material/esm/FileDownload.js +1 -1
- package/dist/node_modules/@mui/icons-material/esm/HighlightOff.js +1 -1
- package/dist/node_modules/@mui/icons-material/esm/KeyboardArrowDown.js +1 -1
- package/dist/node_modules/@mui/icons-material/esm/Replay.js +1 -1
- package/dist/node_modules/@mui/material/Accordion/Accordion.js +82 -43
- package/dist/node_modules/@mui/material/Accordion/accordionClasses.js +2 -2
- package/dist/node_modules/@mui/material/AccordionDetails/AccordionDetails.js +8 -8
- package/dist/node_modules/@mui/material/AccordionDetails/accordionDetailsClasses.js +2 -2
- package/dist/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +35 -29
- package/dist/node_modules/@mui/material/AccordionSummary/accordionSummaryClasses.js +2 -2
- package/dist/node_modules/@mui/material/Alert/Alert.js +88 -66
- package/dist/node_modules/@mui/material/Alert/alertClasses.js +3 -3
- package/dist/node_modules/@mui/material/AlertTitle/AlertTitle.js +8 -8
- package/dist/node_modules/@mui/material/AlertTitle/alertTitleClasses.js +2 -2
- package/dist/node_modules/@mui/material/Avatar/Avatar.js +76 -31
- package/dist/node_modules/@mui/material/Avatar/avatarClasses.js +2 -2
- package/dist/node_modules/@mui/material/Backdrop/Backdrop.js +7 -7
- package/dist/node_modules/@mui/material/Backdrop/backdropClasses.js +2 -2
- package/dist/node_modules/@mui/material/Badge/Badge.js +178 -117
- package/dist/node_modules/@mui/material/Badge/badgeClasses.js +2 -2
- package/dist/node_modules/@mui/material/{node_modules/@mui/base/useBadge → Badge}/useBadge.js +2 -2
- package/dist/node_modules/@mui/material/Box/Box.js +7 -6
- package/dist/node_modules/@mui/material/Box/boxClasses.js +5 -0
- package/dist/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed.js +6 -4
- package/dist/node_modules/@mui/material/Breadcrumbs/Breadcrumbs.js +10 -10
- package/dist/node_modules/@mui/material/Breadcrumbs/breadcrumbsClasses.js +2 -2
- package/dist/node_modules/@mui/material/Button/Button.js +24 -20
- package/dist/node_modules/@mui/material/Button/buttonClasses.js +3 -3
- package/dist/node_modules/@mui/material/ButtonBase/ButtonBase.js +12 -12
- package/dist/node_modules/@mui/material/ButtonBase/Ripple.js +0 -1
- package/dist/node_modules/@mui/material/ButtonBase/TouchRipple.js +10 -17
- package/dist/node_modules/@mui/material/ButtonBase/buttonBaseClasses.js +2 -2
- package/dist/node_modules/@mui/material/ButtonBase/touchRippleClasses.js +1 -1
- package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext.js +8 -0
- package/dist/node_modules/@mui/material/Card/Card.js +8 -8
- package/dist/node_modules/@mui/material/Card/cardClasses.js +2 -2
- package/dist/node_modules/@mui/material/Checkbox/Checkbox.js +15 -14
- package/dist/node_modules/@mui/material/Checkbox/checkboxClasses.js +2 -2
- package/dist/node_modules/@mui/material/Chip/Chip.js +30 -22
- package/dist/node_modules/@mui/material/Chip/chipClasses.js +2 -2
- package/dist/node_modules/@mui/material/CircularProgress/CircularProgress.js +11 -11
- package/dist/node_modules/@mui/material/CircularProgress/circularProgressClasses.js +2 -2
- package/dist/node_modules/@mui/material/{node_modules/@mui/base/ClickAwayListener → ClickAwayListener}/ClickAwayListener.js +12 -15
- package/dist/node_modules/@mui/material/Collapse/Collapse.js +16 -18
- package/dist/node_modules/@mui/material/Collapse/collapseClasses.js +2 -2
- package/dist/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.js +25 -0
- package/dist/node_modules/@mui/material/Dialog/Dialog.js +20 -12
- package/dist/node_modules/@mui/material/Dialog/dialogClasses.js +2 -2
- package/dist/node_modules/@mui/material/DialogActions/DialogActions.js +8 -8
- package/dist/node_modules/@mui/material/DialogActions/dialogActionsClasses.js +2 -2
- package/dist/node_modules/@mui/material/DialogContent/DialogContent.js +7 -7
- package/dist/node_modules/@mui/material/DialogContent/dialogContentClasses.js +2 -2
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText.js +9 -8
- package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses.js +2 -2
- package/dist/node_modules/@mui/material/DialogTitle/DialogTitle.js +7 -7
- package/dist/node_modules/@mui/material/DialogTitle/dialogTitleClasses.js +2 -2
- package/dist/node_modules/@mui/material/Divider/dividerClasses.js +1 -1
- package/dist/node_modules/@mui/material/Drawer/Drawer.js +22 -13
- package/dist/node_modules/@mui/material/Drawer/drawerClasses.js +2 -2
- package/dist/node_modules/@mui/material/Fade/Fade.js +8 -7
- package/dist/node_modules/@mui/material/FormControl/FormControl.js +10 -10
- package/dist/node_modules/@mui/material/FormControl/formControlClasses.js +2 -2
- package/dist/node_modules/@mui/material/FormControlLabel/FormControlLabel.js +10 -11
- package/dist/node_modules/@mui/material/FormControlLabel/formControlLabelClasses.js +2 -2
- package/dist/node_modules/@mui/material/FormGroup/FormGroup.js +7 -7
- package/dist/node_modules/@mui/material/FormGroup/formGroupClasses.js +2 -2
- package/dist/node_modules/@mui/material/FormHelperText/FormHelperText.js +8 -8
- package/dist/node_modules/@mui/material/FormHelperText/formHelperTextClasses.js +2 -2
- package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles.js +4 -4
- package/dist/node_modules/@mui/material/Grow/Grow.js +11 -14
- package/dist/node_modules/@mui/material/IconButton/IconButton.js +15 -15
- package/dist/node_modules/@mui/material/IconButton/iconButtonClasses.js +2 -2
- package/dist/node_modules/@mui/material/InputBase/InputBase.js +18 -18
- package/dist/node_modules/@mui/material/InputBase/inputBaseClasses.js +2 -2
- package/dist/node_modules/@mui/material/LinearProgress/LinearProgress.js +15 -15
- package/dist/node_modules/@mui/material/LinearProgress/linearProgressClasses.js +2 -2
- package/dist/node_modules/@mui/material/Link/Link.js +11 -11
- package/dist/node_modules/@mui/material/Link/getTextDecoration.js +2 -2
- package/dist/node_modules/@mui/material/Link/linkClasses.js +2 -2
- package/dist/node_modules/@mui/material/List/List.js +7 -7
- package/dist/node_modules/@mui/material/List/listClasses.js +2 -2
- package/dist/node_modules/@mui/material/ListItemIcon/ListItemIcon.js +7 -7
- package/dist/node_modules/@mui/material/ListItemIcon/listItemIconClasses.js +2 -2
- package/dist/node_modules/@mui/material/ListItemText/listItemTextClasses.js +1 -1
- package/dist/node_modules/@mui/material/Menu/Menu.js +18 -16
- package/dist/node_modules/@mui/material/Menu/menuClasses.js +2 -2
- package/dist/node_modules/@mui/material/MenuItem/MenuItem.js +16 -15
- package/dist/node_modules/@mui/material/MenuItem/menuItemClasses.js +2 -2
- package/dist/node_modules/@mui/material/MenuList/MenuList.js +13 -11
- package/dist/node_modules/@mui/material/Modal/Modal.js +107 -46
- package/dist/node_modules/@mui/material/{node_modules/@mui/base/unstable_useModal → Modal}/ModalManager.js +3 -3
- package/dist/node_modules/@mui/material/Modal/modalClasses.js +9 -0
- package/dist/node_modules/@mui/material/{node_modules/@mui/base/unstable_useModal → Modal}/useModal.js +12 -11
- package/dist/node_modules/@mui/material/OutlinedInput/NotchedOutline.js +9 -3
- package/dist/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +11 -10
- package/dist/node_modules/@mui/material/OutlinedInput/outlinedInputClasses.js +2 -2
- package/dist/node_modules/@mui/material/Paper/Paper.js +11 -11
- package/dist/node_modules/@mui/material/Paper/paperClasses.js +2 -2
- package/dist/node_modules/@mui/material/Popover/Popover.js +39 -25
- package/dist/node_modules/@mui/material/Popover/popoverClasses.js +2 -2
- package/dist/node_modules/@mui/material/{node_modules/@mui/base/Popper/Popper.js → Popper/BasePopper.js} +24 -19
- package/dist/node_modules/@mui/material/Popper/Popper.js +14 -11
- package/dist/node_modules/@mui/material/Popper/popperClasses.js +9 -0
- package/dist/node_modules/@mui/material/{node_modules/@mui/base/Portal → Portal}/Portal.js +16 -12
- package/dist/node_modules/@mui/material/Radio/Radio.js +19 -17
- package/dist/node_modules/@mui/material/Radio/RadioButtonIcon.js +11 -4
- package/dist/node_modules/@mui/material/Radio/radioClasses.js +3 -3
- package/dist/node_modules/@mui/material/RadioGroup/RadioGroup.js +30 -9
- package/dist/node_modules/@mui/material/RadioGroup/radioGroupClasses.js +9 -0
- package/dist/node_modules/@mui/material/Skeleton/Skeleton.js +9 -9
- package/dist/node_modules/@mui/material/Skeleton/skeletonClasses.js +2 -2
- package/dist/node_modules/@mui/material/Slide/Slide.js +12 -11
- package/dist/node_modules/@mui/material/Slider/Slider.js +434 -320
- package/dist/node_modules/@mui/material/Slider/sliderClasses.js +3 -3
- package/dist/node_modules/@mui/material/{node_modules/@mui/base/useSlider → Slider}/useSlider.js +86 -60
- package/dist/node_modules/@mui/material/Snackbar/Snackbar.js +18 -18
- package/dist/node_modules/@mui/material/Snackbar/snackbarClasses.js +2 -2
- package/dist/node_modules/@mui/material/{node_modules/@mui/base/useSnackbar → Snackbar}/useSnackbar.js +22 -27
- package/dist/node_modules/@mui/material/SnackbarContent/SnackbarContent.js +9 -9
- package/dist/node_modules/@mui/material/SnackbarContent/snackbarContentClasses.js +2 -2
- package/dist/node_modules/@mui/material/Stack/Stack.js +6 -6
- package/dist/node_modules/@mui/material/Step/Step.js +8 -8
- package/dist/node_modules/@mui/material/Step/stepClasses.js +2 -2
- package/dist/node_modules/@mui/material/StepConnector/StepConnector.js +8 -8
- package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses.js +2 -2
- package/dist/node_modules/@mui/material/StepIcon/StepIcon.js +7 -7
- package/dist/node_modules/@mui/material/StepIcon/stepIconClasses.js +2 -2
- package/dist/node_modules/@mui/material/StepLabel/StepLabel.js +7 -7
- package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses.js +2 -2
- package/dist/node_modules/@mui/material/Stepper/Stepper.js +12 -10
- package/dist/node_modules/@mui/material/Stepper/stepperClasses.js +3 -3
- package/dist/node_modules/@mui/material/SvgIcon/SvgIcon.js +10 -10
- package/dist/node_modules/@mui/material/SvgIcon/svgIconClasses.js +2 -2
- package/dist/node_modules/@mui/material/Switch/Switch.js +71 -52
- package/dist/node_modules/@mui/material/Switch/switchClasses.js +2 -2
- package/dist/node_modules/@mui/material/Tab/Tab.js +12 -10
- package/dist/node_modules/@mui/material/Tab/tabClasses.js +2 -2
- package/dist/node_modules/@mui/material/TabScrollButton/TabScrollButton.js +10 -11
- package/dist/node_modules/@mui/material/TabScrollButton/tabScrollButtonClasses.js +2 -2
- package/dist/node_modules/@mui/material/Tabs/ScrollbarSize.js +6 -5
- package/dist/node_modules/@mui/material/Tabs/Tabs.js +46 -27
- package/dist/node_modules/@mui/material/Tabs/tabsClasses.js +2 -2
- package/dist/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js +216 -0
- package/dist/node_modules/@mui/material/ToggleButton/ToggleButton.js +25 -13
- package/dist/node_modules/@mui/material/ToggleButton/toggleButtonClasses.js +3 -3
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.js +94 -52
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +8 -0
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext.js +8 -0
- package/dist/node_modules/@mui/material/ToggleButtonGroup/toggleButtonGroupClasses.js +3 -3
- package/dist/node_modules/@mui/material/Tooltip/Tooltip.js +61 -71
- package/dist/node_modules/@mui/material/Tooltip/tooltipClasses.js +2 -2
- package/dist/node_modules/@mui/material/Typography/Typography.js +8 -8
- package/dist/node_modules/@mui/material/Typography/typographyClasses.js +2 -2
- package/dist/node_modules/@mui/material/{node_modules/@mui/base/FocusTrap → Unstable_TrapFocus}/FocusTrap.js +56 -53
- package/dist/node_modules/@mui/material/internal/SwitchBase.js +12 -7
- package/dist/node_modules/@mui/material/internal/switchBaseClasses.js +2 -2
- package/dist/node_modules/@mui/material/node_modules/@mui/{base/utils → utils/esm/appendOwnerState}/appendOwnerState.js +2 -2
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/clamp/clamp.js +6 -0
- package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/deepmerge/deepmerge.js +6 -5
- package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/elementAcceptingRef/elementAcceptingRef.js +1 -1
- package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/elementTypeAcceptingRef/elementTypeAcceptingRef.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/@mui/{base/utils → utils/esm/extractEventHandlers}/extractEventHandlers.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/getReactElementRef/getReactElementRef.js +11 -0
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/getValidReactChildren/getValidReactChildren.js +7 -0
- package/dist/node_modules/@mui/material/node_modules/@mui/{base/utils → utils/esm/isHostComponent}/isHostComponent.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/@mui/{base/utils → utils/esm/mergeSlotProps}/mergeSlotProps.js +5 -5
- package/dist/node_modules/@mui/material/node_modules/@mui/{base/utils → utils/esm/omitEventHandlers}/omitEventHandlers.js +1 -1
- package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/refType/refType.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/@mui/{base/utils → utils/esm/resolveComponentProps}/resolveComponentProps.js +1 -1
- package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/useControlled/useControlled.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/useLazyRef/useLazyRef.js +12 -0
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/useOnMount/useOnMount.js +8 -0
- package/dist/node_modules/@mui/material/node_modules/@mui/{base/utils → utils/esm/useSlotProps}/useSlotProps.js +5 -5
- package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/useTimeout/useTimeout.js +9 -1
- package/dist/node_modules/@mui/material/styles/ThemeProvider.js +43 -0
- package/dist/node_modules/@mui/material/styles/createPalette.js +7 -7
- package/dist/node_modules/@mui/material/styles/createTheme.js +6 -4
- package/dist/node_modules/@mui/material/styles/createTypography.js +1 -1
- package/dist/node_modules/@mui/material/styles/rootShouldForwardProp.js +5 -0
- package/dist/node_modules/@mui/material/styles/slotShouldForwardProp.js +6 -0
- package/dist/node_modules/@mui/material/styles/styled.js +4 -6
- package/dist/node_modules/@mui/material/{node_modules/@mui/base/utils → utils}/areArraysEqual.js +1 -1
- package/dist/node_modules/@mui/material/utils/capitalize.js +1 -1
- package/dist/node_modules/@mui/material/utils/createChainedFunction.js +1 -1
- package/dist/node_modules/@mui/material/utils/debounce.js +1 -1
- package/dist/node_modules/@mui/material/utils/deprecatedPropType.js +1 -1
- package/dist/node_modules/@mui/material/utils/getScrollbarSize.js +1 -1
- package/dist/node_modules/@mui/material/utils/index.js +17 -17
- package/dist/node_modules/@mui/material/utils/isMuiElement.js +1 -1
- package/dist/node_modules/@mui/material/utils/ownerDocument.js +1 -1
- package/dist/node_modules/@mui/material/utils/ownerWindow.js +1 -1
- package/dist/node_modules/@mui/material/utils/requirePropFactory.js +1 -1
- package/dist/node_modules/@mui/material/utils/setRef.js +1 -1
- package/dist/node_modules/@mui/material/utils/shouldSpreadAdditionalProps.js +1 -1
- package/dist/node_modules/@mui/material/utils/unsupportedProp.js +1 -1
- package/dist/node_modules/@mui/material/utils/useControlled.js +1 -1
- package/dist/node_modules/@mui/material/utils/useEnhancedEffect.js +1 -1
- package/dist/node_modules/@mui/material/utils/useEventCallback.js +1 -1
- package/dist/node_modules/@mui/material/utils/useForkRef.js +1 -1
- package/dist/node_modules/@mui/material/utils/useId.js +1 -1
- package/dist/node_modules/@mui/material/utils/useIsFocusVisible.js +1 -1
- package/dist/node_modules/@mui/material/utils/useSlot.js +55 -0
- package/dist/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js +59 -0
- package/dist/node_modules/@mui/private-theming/ThemeProvider/nested.js +5 -0
- package/dist/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/exactProp/exactProp.js +19 -0
- package/dist/node_modules/@mui/private-theming/useTheme/ThemeContext.js +8 -0
- package/dist/node_modules/@mui/private-theming/useTheme/useTheme.js +12 -0
- package/dist/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +65 -0
- package/dist/node_modules/@mui/styled-engine/index.js +18 -2
- package/dist/node_modules/@mui/system/colorManipulator.js +271 -0
- package/dist/node_modules/@mui/system/createStyled.js +265 -0
- package/dist/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +63 -0
- package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +29 -5
- package/dist/node_modules/@mui/system/esm/RtlProvider/index.js +27 -0
- package/dist/node_modules/@mui/system/esm/Stack/createStack.js +3 -3
- package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +86 -0
- package/dist/node_modules/@mui/system/esm/ThemeProvider/useLayerOrder.js +50 -0
- package/dist/node_modules/@mui/system/esm/borders.js +23 -47
- package/dist/node_modules/@mui/system/esm/breakpoints.js +1 -1
- package/dist/node_modules/@mui/system/esm/colorManipulator.js +5 -78
- package/dist/node_modules/@mui/system/esm/createStyled.js +92 -79
- package/dist/node_modules/@mui/system/esm/createTheme/applyStyles.js +16 -0
- package/dist/node_modules/@mui/system/esm/createTheme/createTheme.js +3 -1
- package/dist/node_modules/@mui/system/esm/createTheme/index.js +8 -0
- package/dist/node_modules/@mui/system/esm/merge.js +1 -1
- package/dist/node_modules/@mui/system/esm/sizing.js +12 -2
- package/dist/node_modules/@mui/system/esm/style.js +1 -1
- package/dist/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +7 -0
- package/dist/node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js +1 -1
- package/dist/node_modules/@mui/system/esm/styleFunctionSx/index.js +9 -0
- package/dist/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +10 -3
- package/dist/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js +1 -1
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +19 -0
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/capitalize/capitalize.js +10 -0
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/capitalize/index.js +4 -0
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/clamp/clamp.js +6 -0
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/clamp/index.js +4 -0
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +25 -0
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +43 -0
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/deepmerge/index.js +5 -0
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/exactProp/exactProp.js +19 -0
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js +10 -0
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/formatMuiErrorMessage/index.js +4 -0
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +23 -0
- package/dist/node_modules/@mui/{utils → system/node_modules/@mui/utils/esm}/getDisplayName/getDisplayName.js +1 -1
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/getDisplayName/index.js +5 -0
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/resolveProps/resolveProps.js +29 -0
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +5 -0
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/useId/useId.js +24 -0
- package/dist/node_modules/@mui/system/useThemeWithoutDefault.js +39 -0
- package/dist/node_modules/@mui/utils/esm/debounce/debounce.js +17 -0
- package/dist/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js +6 -0
- package/dist/node_modules/@mui/utils/esm/ownerWindow/ownerWindow.js +8 -0
- package/dist/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +5 -0
- package/dist/node_modules/@mui/utils/esm/useForkRef/useForkRef.js +42 -0
- package/dist/node_modules/call-bind/index.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +2 -2
- package/dist/node_modules/{@mui/material → hoist-non-react-statics}/node_modules/react-is/cjs/react-is.development.js +32 -60
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +106 -0
- package/dist/node_modules/{@mui/material → hoist-non-react-statics}/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/is-symbol/index.js +1 -1
- package/dist/node_modules/moment/dist/locale/de.js +21 -1
- package/dist/node_modules/moment/dist/moment.js +975 -747
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/{@mui/utils → prop-types}/node_modules/react-is/cjs/react-is.development.js +32 -60
- package/dist/node_modules/{react-is → prop-types/node_modules/react-is}/cjs/react-is.production.min.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +17 -0
- package/dist/node_modules/react-is/cjs/react-is.development.js +88 -148
- package/dist/node_modules/react-is/cjs/react-is.production.js +103 -0
- package/dist/node_modules/react-is/index.js +8 -13
- package/dist/node_modules/react-with-styles-interface-css/dist/index.js +1 -1
- package/dist/node_modules/stylis/src/Parser.js +1 -1
- package/dist/node_modules/stylis/src/Tokenizer.js +1 -1
- package/dist/stories/designTokensStoryHelpers.d.ts +2 -0
- package/dist/stories/designTokensStoryHelpers.d.ts.map +1 -0
- package/dist/stories/tableV36ChatApiMock.d.ts +10 -29
- package/dist/stories/tableV36ChatApiMock.d.ts.map +1 -1
- package/dist/storybook-utils/rootAttributes.d.ts +1 -1
- package/dist/storybook-utils/rootAttributes.d.ts.map +1 -1
- package/dist/styles/style.css +1 -1
- package/dist/styles/tokens/effects.generated.d.ts +59 -0
- package/dist/styles/tokens/effects.generated.d.ts.map +1 -0
- package/dist/styles/tokens/effects.generated.js +79 -0
- package/dist/styles/tokens/tokens.generated.d.ts +428 -0
- package/dist/styles/tokens/tokens.generated.d.ts.map +1 -0
- package/dist/styles/tokens/tokens.generated.js +421 -0
- package/dist/tokens/ImpactUiAppProviders.d.ts +18 -0
- package/dist/tokens/ImpactUiAppProviders.d.ts.map +1 -0
- package/dist/tokens/ImpactUiAppProviders.js +22 -0
- package/dist/tokens/ImpactUiThemeProvider.d.ts +17 -0
- package/dist/tokens/ImpactUiThemeProvider.d.ts.map +1 -0
- package/dist/tokens/ImpactUiThemeProvider.js +68 -0
- package/dist/tokens/createImpactUiMuiTheme.d.ts +13 -0
- package/dist/tokens/createImpactUiMuiTheme.d.ts.map +1 -0
- package/dist/tokens/createImpactUiMuiTheme.js +112 -0
- package/dist/tokens/index.d.ts +16 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/theme.types.d.ts +18 -0
- package/dist/tokens/theme.types.d.ts.map +1 -0
- package/dist/tokens/themeDom.d.ts +30 -0
- package/dist/tokens/themeDom.d.ts.map +1 -0
- package/dist/tokens/themeDom.js +138 -0
- package/dist/tokens/useImpactUiTheme.d.ts +9 -0
- package/dist/tokens/useImpactUiTheme.d.ts.map +1 -0
- package/dist/tokens/useImpactUiTheme.js +43 -0
- package/package.json +11 -3
- package/dist/_virtual/react-is3.production.min.js +0 -4
- package/dist/components/TableV36/TableV36PortalContext.d.ts +0 -6
- package/dist/components/TableV36/TableV36PortalContext.d.ts.map +0 -1
- package/dist/components/TableV36/TableV36PortalContext.js +0 -10
- package/dist/node_modules/@mui/material/node_modules/@mui/base/Modal/Modal.js +0 -250
- package/dist/node_modules/@mui/material/node_modules/@mui/base/Modal/modalClasses.js +0 -9
- package/dist/node_modules/@mui/material/node_modules/@mui/base/Popper/popperClasses.js +0 -9
- package/dist/node_modules/@mui/material/node_modules/@mui/base/TextareaAutosize/TextareaAutosize.js +0 -226
- package/dist/node_modules/@mui/material/node_modules/@mui/base/utils/ClassNameConfigurator.js +0 -20
- package/dist/node_modules/@mui/material/node_modules/react-is/cjs/react-is.production.min.js +0 -109
- package/dist/node_modules/@mui/material/styles/useThemeProps.js +0 -17
- package/dist/node_modules/@mui/system/esm/propsToClassKey.js +0 -23
- package/dist/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.min.js +0 -109
- package/dist/node_modules/@mui/utils/node_modules/react-is/index.js +0 -12
- /package/dist/node_modules/@emotion/{serialize/node_modules/@emotion/unitless → unitless}/dist/emotion-unitless.esm.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/ClassNameGenerator/ClassNameGenerator.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/HTMLElementType/HTMLElementType.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/capitalize/capitalize.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/chainPropTypes/chainPropTypes.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/composeClasses/composeClasses.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/createChainedFunction/createChainedFunction.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/debounce/debounce.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/deprecatedPropType/deprecatedPropType.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/exactProp/exactProp.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/formatMuiErrorMessage/formatMuiErrorMessage.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/generateUtilityClass/generateUtilityClass.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/generateUtilityClasses/generateUtilityClasses.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/getScrollbarSize/getScrollbarSize.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/integerPropType/integerPropType.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/isMuiElement/isMuiElement.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/ownerDocument/ownerDocument.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/ownerWindow/ownerWindow.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/requirePropFactory/requirePropFactory.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/resolveProps/resolveProps.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/scrollLeft/scrollLeft.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/setRef/setRef.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/unsupportedProp/unsupportedProp.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/useEnhancedEffect/useEnhancedEffect.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/useEventCallback/useEventCallback.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/useForkRef/useForkRef.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/useId/useId.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/useIsFocusVisible/useIsFocusVisible.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/usePreviousProps/usePreviousProps.js +0 -0
- /package/dist/node_modules/@mui/{utils → material/node_modules/@mui/utils/esm}/visuallyHidden/visuallyHidden.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//! moment.js
|
|
2
|
-
//! version : 2.
|
|
2
|
+
//! version : 2.31.0
|
|
3
3
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
4
4
|
//! license : MIT
|
|
5
5
|
//! momentjs.com
|
|
@@ -75,6 +75,7 @@ function defaultParsingFlags() {
|
|
|
75
75
|
nullInput: false,
|
|
76
76
|
invalidEra: null,
|
|
77
77
|
invalidMonth: null,
|
|
78
|
+
invalidOffset: null,
|
|
78
79
|
invalidFormat: false,
|
|
79
80
|
userInvalidated: false,
|
|
80
81
|
iso: false,
|
|
@@ -105,23 +106,26 @@ if (Array.prototype.some) {
|
|
|
105
106
|
return false;
|
|
106
107
|
};
|
|
107
108
|
}
|
|
108
|
-
function isValid(m) {
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
function isValid$2(m) {
|
|
110
|
+
var flags = null, parsedParts = false, isNowValid = m._d && !isNaN(m._d.getTime());
|
|
111
|
+
if (isNowValid) {
|
|
112
|
+
flags = getParsingFlags(m);
|
|
113
|
+
parsedParts = some.call(flags.parsedDateParts, function(i) {
|
|
111
114
|
return i != null;
|
|
112
|
-
})
|
|
115
|
+
});
|
|
116
|
+
isNowValid = flags.overflow < 0 && !flags.empty && !flags.invalidEra && !flags.invalidMonth && !flags.invalidOffset && !flags.invalidWeekday && !flags.weekdayMismatch && !flags.nullInput && !flags.invalidFormat && !flags.userInvalidated && (!flags.meridiem || flags.meridiem && parsedParts);
|
|
113
117
|
if (m._strict) {
|
|
114
118
|
isNowValid = isNowValid && flags.charsLeftOver === 0 && flags.unusedTokens.length === 0 && flags.bigHour === void 0;
|
|
115
119
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
}
|
|
121
|
+
if (Object.isFrozen == null || !Object.isFrozen(m)) {
|
|
122
|
+
m._isValid = isNowValid;
|
|
123
|
+
} else {
|
|
124
|
+
return isNowValid;
|
|
121
125
|
}
|
|
122
126
|
return m._isValid;
|
|
123
127
|
}
|
|
124
|
-
function createInvalid(flags) {
|
|
128
|
+
function createInvalid$1(flags) {
|
|
125
129
|
var m = createUTC(NaN);
|
|
126
130
|
if (flags != null) {
|
|
127
131
|
extend(getParsingFlags(m), flags);
|
|
@@ -231,7 +235,7 @@ function deprecateSimple(name, msg) {
|
|
|
231
235
|
hooks.deprecationHandler(name, msg);
|
|
232
236
|
}
|
|
233
237
|
if (!deprecations[name]) {
|
|
234
|
-
warn(msg);
|
|
238
|
+
warn(msg + "\n" + new Error().stack);
|
|
235
239
|
deprecations[name] = true;
|
|
236
240
|
}
|
|
237
241
|
}
|
|
@@ -240,81 +244,106 @@ hooks.deprecationHandler = null;
|
|
|
240
244
|
function isFunction(input) {
|
|
241
245
|
return typeof Function !== "undefined" && input instanceof Function || Object.prototype.toString.call(input) === "[object Function]";
|
|
242
246
|
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
247
|
+
var aliases = {
|
|
248
|
+
D: "date",
|
|
249
|
+
dates: "date",
|
|
250
|
+
date: "date",
|
|
251
|
+
d: "day",
|
|
252
|
+
days: "day",
|
|
253
|
+
day: "day",
|
|
254
|
+
e: "weekday",
|
|
255
|
+
weekdays: "weekday",
|
|
256
|
+
weekday: "weekday",
|
|
257
|
+
E: "isoWeekday",
|
|
258
|
+
isoweekdays: "isoWeekday",
|
|
259
|
+
isoweekday: "isoWeekday",
|
|
260
|
+
DDD: "dayOfYear",
|
|
261
|
+
dayofyears: "dayOfYear",
|
|
262
|
+
dayofyear: "dayOfYear",
|
|
263
|
+
h: "hour",
|
|
264
|
+
hours: "hour",
|
|
265
|
+
hour: "hour",
|
|
266
|
+
ms: "millisecond",
|
|
267
|
+
milliseconds: "millisecond",
|
|
268
|
+
millisecond: "millisecond",
|
|
269
|
+
m: "minute",
|
|
270
|
+
minutes: "minute",
|
|
271
|
+
minute: "minute",
|
|
272
|
+
M: "month",
|
|
273
|
+
months: "month",
|
|
274
|
+
month: "month",
|
|
275
|
+
Q: "quarter",
|
|
276
|
+
quarters: "quarter",
|
|
277
|
+
quarter: "quarter",
|
|
278
|
+
s: "second",
|
|
279
|
+
seconds: "second",
|
|
280
|
+
second: "second",
|
|
281
|
+
gg: "weekYear",
|
|
282
|
+
weekyears: "weekYear",
|
|
283
|
+
weekyear: "weekYear",
|
|
284
|
+
GG: "isoWeekYear",
|
|
285
|
+
isoweekyears: "isoWeekYear",
|
|
286
|
+
isoweekyear: "isoWeekYear",
|
|
287
|
+
w: "week",
|
|
288
|
+
weeks: "week",
|
|
289
|
+
week: "week",
|
|
290
|
+
W: "isoWeek",
|
|
291
|
+
isoweeks: "isoWeek",
|
|
292
|
+
isoweek: "isoWeek",
|
|
293
|
+
y: "year",
|
|
294
|
+
years: "year",
|
|
295
|
+
year: "year"
|
|
296
|
+
};
|
|
297
|
+
function normalizeUnits(units) {
|
|
298
|
+
return typeof units === "string" ? aliases[units] || aliases[units.toLowerCase()] : void 0;
|
|
259
299
|
}
|
|
260
|
-
function
|
|
261
|
-
var
|
|
262
|
-
for (prop in
|
|
263
|
-
if (hasOwnProp(
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
extend(res[prop], childConfig[prop]);
|
|
268
|
-
} else if (childConfig[prop] != null) {
|
|
269
|
-
res[prop] = childConfig[prop];
|
|
270
|
-
} else {
|
|
271
|
-
delete res[prop];
|
|
300
|
+
function normalizeObjectUnits(inputObject) {
|
|
301
|
+
var normalizedInput = {}, normalizedProp, prop;
|
|
302
|
+
for (prop in inputObject) {
|
|
303
|
+
if (hasOwnProp(inputObject, prop)) {
|
|
304
|
+
normalizedProp = normalizeUnits(prop);
|
|
305
|
+
if (normalizedProp) {
|
|
306
|
+
normalizedInput[normalizedProp] = inputObject[prop];
|
|
272
307
|
}
|
|
273
308
|
}
|
|
274
309
|
}
|
|
275
|
-
|
|
276
|
-
if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject(parentConfig[prop])) {
|
|
277
|
-
res[prop] = extend({}, res[prop]);
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
return res;
|
|
281
|
-
}
|
|
282
|
-
function Locale(config) {
|
|
283
|
-
if (config != null) {
|
|
284
|
-
this.set(config);
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
var keys;
|
|
288
|
-
if (Object.keys) {
|
|
289
|
-
keys = Object.keys;
|
|
290
|
-
} else {
|
|
291
|
-
keys = function(obj) {
|
|
292
|
-
var i, res = [];
|
|
293
|
-
for (i in obj) {
|
|
294
|
-
if (hasOwnProp(obj, i)) {
|
|
295
|
-
res.push(i);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
return res;
|
|
299
|
-
};
|
|
310
|
+
return normalizedInput;
|
|
300
311
|
}
|
|
301
|
-
var
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
312
|
+
var priorities = {
|
|
313
|
+
date: 9,
|
|
314
|
+
day: 11,
|
|
315
|
+
weekday: 11,
|
|
316
|
+
isoWeekday: 11,
|
|
317
|
+
dayOfYear: 4,
|
|
318
|
+
hour: 13,
|
|
319
|
+
millisecond: 16,
|
|
320
|
+
minute: 14,
|
|
321
|
+
month: 8,
|
|
322
|
+
quarter: 7,
|
|
323
|
+
second: 15,
|
|
324
|
+
weekYear: 1,
|
|
325
|
+
isoWeekYear: 1,
|
|
326
|
+
week: 5,
|
|
327
|
+
isoWeek: 5,
|
|
328
|
+
year: 1
|
|
308
329
|
};
|
|
309
|
-
function
|
|
310
|
-
var
|
|
311
|
-
|
|
330
|
+
function getPrioritizedUnits(unitsObj) {
|
|
331
|
+
var units = [], u;
|
|
332
|
+
for (u in unitsObj) {
|
|
333
|
+
if (hasOwnProp(unitsObj, u)) {
|
|
334
|
+
units.push({ unit: u, priority: priorities[u] });
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
units.sort(function(a, b) {
|
|
338
|
+
return a.priority - b.priority;
|
|
339
|
+
});
|
|
340
|
+
return units;
|
|
312
341
|
}
|
|
313
342
|
function zeroFill(number, targetLength, forceSign) {
|
|
314
343
|
var absNumber = "" + Math.abs(number), zerosToFill = targetLength - absNumber.length, sign2 = number >= 0;
|
|
315
344
|
return (sign2 ? forceSign ? "+" : "" : "-") + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
|
|
316
345
|
}
|
|
317
|
-
var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, formatFunctions = {}, formatTokenFunctions = {};
|
|
346
|
+
var formattingTokens = /(\[[^\[]*\])|(\\e)|(\\)?(eHHmm|[Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, formatFunctions = {}, formatTokenFunctions = {};
|
|
318
347
|
function addFormatToken(token2, padded, ordinal2, callback) {
|
|
319
348
|
var func = callback;
|
|
320
349
|
if (typeof callback === "string") {
|
|
@@ -367,8 +396,11 @@ function formatMoment(m, format2) {
|
|
|
367
396
|
return m.localeData().invalidDate();
|
|
368
397
|
}
|
|
369
398
|
format2 = expandFormat(format2, m.localeData());
|
|
370
|
-
|
|
371
|
-
|
|
399
|
+
var cacheKey = "$" + format2;
|
|
400
|
+
if (!hasOwnProp(formatFunctions, cacheKey)) {
|
|
401
|
+
formatFunctions[cacheKey] = makeFormatFunction(format2);
|
|
402
|
+
}
|
|
403
|
+
return formatFunctions[cacheKey](m);
|
|
372
404
|
}
|
|
373
405
|
function expandFormat(format2, locale2) {
|
|
374
406
|
var i = 5;
|
|
@@ -386,165 +418,7 @@ function expandFormat(format2, locale2) {
|
|
|
386
418
|
}
|
|
387
419
|
return format2;
|
|
388
420
|
}
|
|
389
|
-
var
|
|
390
|
-
LTS: "h:mm:ss A",
|
|
391
|
-
LT: "h:mm A",
|
|
392
|
-
L: "MM/DD/YYYY",
|
|
393
|
-
LL: "MMMM D, YYYY",
|
|
394
|
-
LLL: "MMMM D, YYYY h:mm A",
|
|
395
|
-
LLLL: "dddd, MMMM D, YYYY h:mm A"
|
|
396
|
-
};
|
|
397
|
-
function longDateFormat(key) {
|
|
398
|
-
var format2 = this._longDateFormat[key], formatUpper = this._longDateFormat[key.toUpperCase()];
|
|
399
|
-
if (format2 || !formatUpper) {
|
|
400
|
-
return format2;
|
|
401
|
-
}
|
|
402
|
-
this._longDateFormat[key] = formatUpper.match(formattingTokens).map(function(tok) {
|
|
403
|
-
if (tok === "MMMM" || tok === "MM" || tok === "DD" || tok === "dddd") {
|
|
404
|
-
return tok.slice(1);
|
|
405
|
-
}
|
|
406
|
-
return tok;
|
|
407
|
-
}).join("");
|
|
408
|
-
return this._longDateFormat[key];
|
|
409
|
-
}
|
|
410
|
-
var defaultInvalidDate = "Invalid date";
|
|
411
|
-
function invalidDate() {
|
|
412
|
-
return this._invalidDate;
|
|
413
|
-
}
|
|
414
|
-
var defaultOrdinal = "%d", defaultDayOfMonthOrdinalParse = /\d{1,2}/;
|
|
415
|
-
function ordinal(number) {
|
|
416
|
-
return this._ordinal.replace("%d", number);
|
|
417
|
-
}
|
|
418
|
-
var defaultRelativeTime = {
|
|
419
|
-
future: "in %s",
|
|
420
|
-
past: "%s ago",
|
|
421
|
-
s: "a few seconds",
|
|
422
|
-
ss: "%d seconds",
|
|
423
|
-
m: "a minute",
|
|
424
|
-
mm: "%d minutes",
|
|
425
|
-
h: "an hour",
|
|
426
|
-
hh: "%d hours",
|
|
427
|
-
d: "a day",
|
|
428
|
-
dd: "%d days",
|
|
429
|
-
w: "a week",
|
|
430
|
-
ww: "%d weeks",
|
|
431
|
-
M: "a month",
|
|
432
|
-
MM: "%d months",
|
|
433
|
-
y: "a year",
|
|
434
|
-
yy: "%d years"
|
|
435
|
-
};
|
|
436
|
-
function relativeTime(number, withoutSuffix, string, isFuture) {
|
|
437
|
-
var output = this._relativeTime[string];
|
|
438
|
-
return isFunction(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number);
|
|
439
|
-
}
|
|
440
|
-
function pastFuture(diff2, output) {
|
|
441
|
-
var format2 = this._relativeTime[diff2 > 0 ? "future" : "past"];
|
|
442
|
-
return isFunction(format2) ? format2(output) : format2.replace(/%s/i, output);
|
|
443
|
-
}
|
|
444
|
-
var aliases = {};
|
|
445
|
-
function addUnitAlias(unit, shorthand) {
|
|
446
|
-
var lowerCase = unit.toLowerCase();
|
|
447
|
-
aliases[lowerCase] = aliases[lowerCase + "s"] = aliases[shorthand] = unit;
|
|
448
|
-
}
|
|
449
|
-
function normalizeUnits(units) {
|
|
450
|
-
return typeof units === "string" ? aliases[units] || aliases[units.toLowerCase()] : void 0;
|
|
451
|
-
}
|
|
452
|
-
function normalizeObjectUnits(inputObject) {
|
|
453
|
-
var normalizedInput = {}, normalizedProp, prop;
|
|
454
|
-
for (prop in inputObject) {
|
|
455
|
-
if (hasOwnProp(inputObject, prop)) {
|
|
456
|
-
normalizedProp = normalizeUnits(prop);
|
|
457
|
-
if (normalizedProp) {
|
|
458
|
-
normalizedInput[normalizedProp] = inputObject[prop];
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
return normalizedInput;
|
|
463
|
-
}
|
|
464
|
-
var priorities = {};
|
|
465
|
-
function addUnitPriority(unit, priority) {
|
|
466
|
-
priorities[unit] = priority;
|
|
467
|
-
}
|
|
468
|
-
function getPrioritizedUnits(unitsObj) {
|
|
469
|
-
var units = [], u;
|
|
470
|
-
for (u in unitsObj) {
|
|
471
|
-
if (hasOwnProp(unitsObj, u)) {
|
|
472
|
-
units.push({ unit: u, priority: priorities[u] });
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
units.sort(function(a, b) {
|
|
476
|
-
return a.priority - b.priority;
|
|
477
|
-
});
|
|
478
|
-
return units;
|
|
479
|
-
}
|
|
480
|
-
function isLeapYear(year) {
|
|
481
|
-
return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
|
|
482
|
-
}
|
|
483
|
-
function absFloor(number) {
|
|
484
|
-
if (number < 0) {
|
|
485
|
-
return Math.ceil(number) || 0;
|
|
486
|
-
} else {
|
|
487
|
-
return Math.floor(number);
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
function toInt(argumentForCoercion) {
|
|
491
|
-
var coercedNumber = +argumentForCoercion, value = 0;
|
|
492
|
-
if (coercedNumber !== 0 && isFinite(coercedNumber)) {
|
|
493
|
-
value = absFloor(coercedNumber);
|
|
494
|
-
}
|
|
495
|
-
return value;
|
|
496
|
-
}
|
|
497
|
-
function makeGetSet(unit, keepTime) {
|
|
498
|
-
return function(value) {
|
|
499
|
-
if (value != null) {
|
|
500
|
-
set$1(this, unit, value);
|
|
501
|
-
hooks.updateOffset(this, keepTime);
|
|
502
|
-
return this;
|
|
503
|
-
} else {
|
|
504
|
-
return get(this, unit);
|
|
505
|
-
}
|
|
506
|
-
};
|
|
507
|
-
}
|
|
508
|
-
function get(mom, unit) {
|
|
509
|
-
return mom.isValid() ? mom._d["get" + (mom._isUTC ? "UTC" : "") + unit]() : NaN;
|
|
510
|
-
}
|
|
511
|
-
function set$1(mom, unit, value) {
|
|
512
|
-
if (mom.isValid() && !isNaN(value)) {
|
|
513
|
-
if (unit === "FullYear" && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) {
|
|
514
|
-
value = toInt(value);
|
|
515
|
-
mom._d["set" + (mom._isUTC ? "UTC" : "") + unit](
|
|
516
|
-
value,
|
|
517
|
-
mom.month(),
|
|
518
|
-
daysInMonth(value, mom.month())
|
|
519
|
-
);
|
|
520
|
-
} else {
|
|
521
|
-
mom._d["set" + (mom._isUTC ? "UTC" : "") + unit](value);
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
function stringGet(units) {
|
|
526
|
-
units = normalizeUnits(units);
|
|
527
|
-
if (isFunction(this[units])) {
|
|
528
|
-
return this[units]();
|
|
529
|
-
}
|
|
530
|
-
return this;
|
|
531
|
-
}
|
|
532
|
-
function stringSet(units, value) {
|
|
533
|
-
if (typeof units === "object") {
|
|
534
|
-
units = normalizeObjectUnits(units);
|
|
535
|
-
var prioritized = getPrioritizedUnits(units), i, prioritizedLen = prioritized.length;
|
|
536
|
-
for (i = 0; i < prioritizedLen; i++) {
|
|
537
|
-
this[prioritized[i].unit](units[prioritized[i].unit]);
|
|
538
|
-
}
|
|
539
|
-
} else {
|
|
540
|
-
units = normalizeUnits(units);
|
|
541
|
-
if (isFunction(this[units])) {
|
|
542
|
-
return this[units](value);
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
return this;
|
|
546
|
-
}
|
|
547
|
-
var match1 = /\d/, match2 = /\d\d/, match3 = /\d{3}/, match4 = /\d{4}/, match6 = /[+-]?\d{6}/, match1to2 = /\d\d?/, match3to4 = /\d\d\d\d?/, match5to6 = /\d\d\d\d\d\d?/, match1to3 = /\d{1,3}/, match1to4 = /\d{1,4}/, match1to6 = /[+-]?\d{1,6}/, matchUnsigned = /\d+/, matchSigned = /[+-]?\d+/, matchOffset = /Z|[+-]\d\d:?\d\d/gi, matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, regexes;
|
|
421
|
+
var match1 = /\d/, match2 = /\d\d/, match3 = /\d{3}/, match4 = /\d{4}/, match6 = /[+-]?\d{6}/, match1to2 = /\d\d?/, match3to4 = /\d\d\d\d?/, match5to6 = /\d\d\d\d\d\d?/, match1to3 = /\d{1,3}/, match1to4 = /\d{1,4}/, match1to6 = /[+-]?\d{1,6}/, matchUnsigned = /\d+/, matchSigned = /[+-]?\d+/, matchOffset = /Z|[+-]\d\d:?\d\d/gi, matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, match1to2NoLeadingZero = /^[1-9]\d?/, match1to2HasZero = /^([1-9]\d|\d)/, regexes;
|
|
548
422
|
regexes = {};
|
|
549
423
|
function addRegexToken(token2, regex, strictRegex) {
|
|
550
424
|
regexes[token2] = isFunction(regex) ? regex : function(isStrict, localeData2) {
|
|
@@ -570,6 +444,20 @@ function unescapeFormat(s) {
|
|
|
570
444
|
function regexEscape(s) {
|
|
571
445
|
return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
572
446
|
}
|
|
447
|
+
function absFloor(number) {
|
|
448
|
+
if (number < 0) {
|
|
449
|
+
return Math.ceil(number) || 0;
|
|
450
|
+
} else {
|
|
451
|
+
return Math.floor(number);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
function toInt(argumentForCoercion) {
|
|
455
|
+
var coercedNumber = +argumentForCoercion, value = 0;
|
|
456
|
+
if (coercedNumber !== 0 && isFinite(coercedNumber)) {
|
|
457
|
+
value = absFloor(coercedNumber);
|
|
458
|
+
}
|
|
459
|
+
return value;
|
|
460
|
+
}
|
|
573
461
|
var tokens = {};
|
|
574
462
|
function addParseToken(token2, callback) {
|
|
575
463
|
var i, func = callback, tokenLen;
|
|
@@ -597,21 +485,147 @@ function addTimeToArrayFromToken(token2, input, config) {
|
|
|
597
485
|
tokens[token2](input, config._a, config, token2);
|
|
598
486
|
}
|
|
599
487
|
}
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
return (n % x + x) % x;
|
|
488
|
+
function isLeapYear(year) {
|
|
489
|
+
return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
|
|
603
490
|
}
|
|
604
|
-
var
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
491
|
+
var YEAR = 0, MONTH = 1, DATE = 2, HOUR = 3, MINUTE = 4, SECOND = 5, MILLISECOND = 6, WEEK = 7, WEEKDAY = 8;
|
|
492
|
+
addFormatToken("Y", 0, 0, function() {
|
|
493
|
+
var y = this.year();
|
|
494
|
+
return y <= 9999 ? zeroFill(y, 4) : "+" + y;
|
|
495
|
+
});
|
|
496
|
+
addFormatToken(0, ["YY", 2], 0, function() {
|
|
497
|
+
return this.year() % 100;
|
|
498
|
+
});
|
|
499
|
+
addFormatToken(0, ["YYYY", 4], 0, "year");
|
|
500
|
+
addFormatToken(0, ["YYYYY", 5], 0, "year");
|
|
501
|
+
addFormatToken(0, ["YYYYYY", 6, true], 0, "year");
|
|
502
|
+
addRegexToken("Y", matchSigned);
|
|
503
|
+
addRegexToken("YY", match1to2, match2);
|
|
504
|
+
addRegexToken("YYYY", match1to4, match4);
|
|
505
|
+
addRegexToken("YYYYY", match1to6, match6);
|
|
506
|
+
addRegexToken("YYYYYY", match1to6, match6);
|
|
507
|
+
addParseToken(["YYYYY", "YYYYYY"], YEAR);
|
|
508
|
+
addParseToken("YYYY", function(input, array) {
|
|
509
|
+
array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
|
|
510
|
+
});
|
|
511
|
+
addParseToken("YY", function(input, array) {
|
|
512
|
+
array[YEAR] = hooks.parseTwoDigitYear(input);
|
|
513
|
+
});
|
|
514
|
+
addParseToken("Y", function(input, array) {
|
|
515
|
+
array[YEAR] = parseInt(input, 10);
|
|
516
|
+
});
|
|
517
|
+
function daysInYear(year) {
|
|
518
|
+
return isLeapYear(year) ? 366 : 365;
|
|
519
|
+
}
|
|
520
|
+
hooks.parseTwoDigitYear = function(input) {
|
|
521
|
+
return toInt(input) + (toInt(input) > 68 ? 1900 : 2e3);
|
|
522
|
+
};
|
|
523
|
+
var getSetYear = makeGetSet("FullYear", true);
|
|
524
|
+
function getIsLeapYear() {
|
|
525
|
+
return isLeapYear(this.year());
|
|
526
|
+
}
|
|
527
|
+
function makeGetSet(unit, keepTime) {
|
|
528
|
+
return function(value) {
|
|
529
|
+
if (value != null) {
|
|
530
|
+
set$1(this, unit, value);
|
|
531
|
+
hooks.updateOffset(this, keepTime);
|
|
532
|
+
return this;
|
|
533
|
+
} else {
|
|
534
|
+
return get$2(this, unit);
|
|
535
|
+
}
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
function get$2(mom, unit) {
|
|
539
|
+
if (!mom.isValid()) {
|
|
540
|
+
return NaN;
|
|
541
|
+
}
|
|
542
|
+
var d = mom._d, isUTC = mom._isUTC;
|
|
543
|
+
switch (unit) {
|
|
544
|
+
case "Milliseconds":
|
|
545
|
+
return isUTC ? d.getUTCMilliseconds() : d.getMilliseconds();
|
|
546
|
+
case "Seconds":
|
|
547
|
+
return isUTC ? d.getUTCSeconds() : d.getSeconds();
|
|
548
|
+
case "Minutes":
|
|
549
|
+
return isUTC ? d.getUTCMinutes() : d.getMinutes();
|
|
550
|
+
case "Hours":
|
|
551
|
+
return isUTC ? d.getUTCHours() : d.getHours();
|
|
552
|
+
case "Date":
|
|
553
|
+
return isUTC ? d.getUTCDate() : d.getDate();
|
|
554
|
+
case "Day":
|
|
555
|
+
return isUTC ? d.getUTCDay() : d.getDay();
|
|
556
|
+
case "Month":
|
|
557
|
+
return isUTC ? d.getUTCMonth() : d.getMonth();
|
|
558
|
+
case "FullYear":
|
|
559
|
+
return isUTC ? d.getUTCFullYear() : d.getFullYear();
|
|
560
|
+
default:
|
|
561
|
+
return NaN;
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
function set$1(mom, unit, value) {
|
|
565
|
+
var d, isUTC, year, month, date;
|
|
566
|
+
if (!mom.isValid() || isNaN(value)) {
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
569
|
+
d = mom._d;
|
|
570
|
+
isUTC = mom._isUTC;
|
|
571
|
+
switch (unit) {
|
|
572
|
+
case "Milliseconds":
|
|
573
|
+
return void (isUTC ? d.setUTCMilliseconds(value) : d.setMilliseconds(value));
|
|
574
|
+
case "Seconds":
|
|
575
|
+
return void (isUTC ? d.setUTCSeconds(value) : d.setSeconds(value));
|
|
576
|
+
case "Minutes":
|
|
577
|
+
return void (isUTC ? d.setUTCMinutes(value) : d.setMinutes(value));
|
|
578
|
+
case "Hours":
|
|
579
|
+
return void (isUTC ? d.setUTCHours(value) : d.setHours(value));
|
|
580
|
+
case "Date":
|
|
581
|
+
return void (isUTC ? d.setUTCDate(value) : d.setDate(value));
|
|
582
|
+
case "FullYear":
|
|
583
|
+
break;
|
|
584
|
+
default:
|
|
585
|
+
return;
|
|
586
|
+
}
|
|
587
|
+
year = value;
|
|
588
|
+
month = mom.month();
|
|
589
|
+
date = mom.date();
|
|
590
|
+
date = date === 29 && month === 1 && !isLeapYear(year) ? 28 : date;
|
|
591
|
+
void (isUTC ? d.setUTCFullYear(year, month, date) : d.setFullYear(year, month, date));
|
|
592
|
+
}
|
|
593
|
+
function stringGet(units) {
|
|
594
|
+
units = normalizeUnits(units);
|
|
595
|
+
if (isFunction(this[units])) {
|
|
596
|
+
return this[units]();
|
|
597
|
+
}
|
|
598
|
+
return this;
|
|
599
|
+
}
|
|
600
|
+
function stringSet(units, value) {
|
|
601
|
+
if (typeof units === "object") {
|
|
602
|
+
units = normalizeObjectUnits(units);
|
|
603
|
+
var prioritized = getPrioritizedUnits(units), i, prioritizedLen = prioritized.length;
|
|
604
|
+
for (i = 0; i < prioritizedLen; i++) {
|
|
605
|
+
this[prioritized[i].unit](units[prioritized[i].unit]);
|
|
606
|
+
}
|
|
607
|
+
} else {
|
|
608
|
+
units = normalizeUnits(units);
|
|
609
|
+
if (isFunction(this[units])) {
|
|
610
|
+
return this[units](value);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
return this;
|
|
614
|
+
}
|
|
615
|
+
function mod$1(n, x) {
|
|
616
|
+
return (n % x + x) % x;
|
|
617
|
+
}
|
|
618
|
+
var indexOf;
|
|
619
|
+
if (Array.prototype.indexOf) {
|
|
620
|
+
indexOf = Array.prototype.indexOf;
|
|
621
|
+
} else {
|
|
622
|
+
indexOf = function(o) {
|
|
623
|
+
var i;
|
|
624
|
+
for (i = 0; i < this.length; ++i) {
|
|
625
|
+
if (this[i] === o) {
|
|
626
|
+
return i;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
615
629
|
return -1;
|
|
616
630
|
};
|
|
617
631
|
}
|
|
@@ -619,7 +633,7 @@ function daysInMonth(year, month) {
|
|
|
619
633
|
if (isNaN(year) || isNaN(month)) {
|
|
620
634
|
return NaN;
|
|
621
635
|
}
|
|
622
|
-
var modMonth = mod(month, 12);
|
|
636
|
+
var modMonth = mod$1(month, 12);
|
|
623
637
|
year += (month - modMonth) / 12;
|
|
624
638
|
return modMonth === 1 ? isLeapYear(year) ? 29 : 28 : 31 - modMonth % 7 % 2;
|
|
625
639
|
}
|
|
@@ -632,9 +646,7 @@ addFormatToken("MMM", 0, 0, function(format2) {
|
|
|
632
646
|
addFormatToken("MMMM", 0, 0, function(format2) {
|
|
633
647
|
return this.localeData().months(this, format2);
|
|
634
648
|
});
|
|
635
|
-
|
|
636
|
-
addUnitPriority("month", 8);
|
|
637
|
-
addRegexToken("M", match1to2);
|
|
649
|
+
addRegexToken("M", match1to2, match1to2NoLeadingZero);
|
|
638
650
|
addRegexToken("MM", match1to2, match2);
|
|
639
651
|
addRegexToken("MMM", function(isStrict, locale2) {
|
|
640
652
|
return locale2.monthsShortRegex(isStrict);
|
|
@@ -655,7 +667,24 @@ addParseToken(["MMM", "MMMM"], function(input, array, config, token2) {
|
|
|
655
667
|
});
|
|
656
668
|
var defaultLocaleMonths = "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
657
669
|
"_"
|
|
658
|
-
), defaultLocaleMonthsShort = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, defaultMonthsShortRegex = matchWord, defaultMonthsRegex = matchWord
|
|
670
|
+
), defaultLocaleMonthsShort = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, defaultMonthsShortRegex = matchWord, defaultMonthsRegex = matchWord, monthsParseProperties = [
|
|
671
|
+
"monthsParse",
|
|
672
|
+
"longMonthsParse",
|
|
673
|
+
"shortMonthsParse",
|
|
674
|
+
"monthsRegex",
|
|
675
|
+
"monthsShortRegex",
|
|
676
|
+
"monthsStrictRegex",
|
|
677
|
+
"monthsShortStrictRegex"
|
|
678
|
+
];
|
|
679
|
+
function clearMonthsParseCache(locale2, config) {
|
|
680
|
+
var i, prop;
|
|
681
|
+
for (i = 0; i < monthsParseProperties.length; i++) {
|
|
682
|
+
prop = monthsParseProperties[i];
|
|
683
|
+
if (!hasOwnProp(config, prop)) {
|
|
684
|
+
delete locale2["_" + prop];
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
}
|
|
659
688
|
function localeMonths(m, format2) {
|
|
660
689
|
if (!m) {
|
|
661
690
|
return isArray(this._months) ? this._months : this._months["standalone"];
|
|
@@ -668,7 +697,7 @@ function localeMonthsShort(m, format2) {
|
|
|
668
697
|
}
|
|
669
698
|
return isArray(this._monthsShort) ? this._monthsShort[m.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format2) ? "format" : "standalone"][m.month()];
|
|
670
699
|
}
|
|
671
|
-
function handleStrictParse(monthName, format2, strict) {
|
|
700
|
+
function handleStrictParse$1(monthName, format2, strict) {
|
|
672
701
|
var i, ii, mom, llc = monthName.toLocaleLowerCase();
|
|
673
702
|
if (!this._monthsParse) {
|
|
674
703
|
this._monthsParse = [];
|
|
@@ -712,7 +741,7 @@ function handleStrictParse(monthName, format2, strict) {
|
|
|
712
741
|
function localeMonthsParse(monthName, format2, strict) {
|
|
713
742
|
var i, mom, regex;
|
|
714
743
|
if (this._monthsParseExact) {
|
|
715
|
-
return handleStrictParse.call(this, monthName, format2, strict);
|
|
744
|
+
return handleStrictParse$1.call(this, monthName, format2, strict);
|
|
716
745
|
}
|
|
717
746
|
if (!this._monthsParse) {
|
|
718
747
|
this._monthsParse = [];
|
|
@@ -745,7 +774,6 @@ function localeMonthsParse(monthName, format2, strict) {
|
|
|
745
774
|
}
|
|
746
775
|
}
|
|
747
776
|
function setMonth(mom, value) {
|
|
748
|
-
var dayOfMonth;
|
|
749
777
|
if (!mom.isValid()) {
|
|
750
778
|
return mom;
|
|
751
779
|
}
|
|
@@ -759,8 +787,9 @@ function setMonth(mom, value) {
|
|
|
759
787
|
}
|
|
760
788
|
}
|
|
761
789
|
}
|
|
762
|
-
|
|
763
|
-
|
|
790
|
+
var month = value, date = mom.date();
|
|
791
|
+
date = date < 29 ? date : Math.min(date, daysInMonth(mom.year(), month));
|
|
792
|
+
void (mom._isUTC ? mom._d.setUTCMonth(month, date) : mom._d.setMonth(month, date));
|
|
764
793
|
return mom;
|
|
765
794
|
}
|
|
766
795
|
function getSetMonth(value) {
|
|
@@ -769,7 +798,7 @@ function getSetMonth(value) {
|
|
|
769
798
|
hooks.updateOffset(this, true);
|
|
770
799
|
return this;
|
|
771
800
|
} else {
|
|
772
|
-
return get(this, "Month");
|
|
801
|
+
return get$2(this, "Month");
|
|
773
802
|
}
|
|
774
803
|
}
|
|
775
804
|
function getDaysInMonth() {
|
|
@@ -813,24 +842,19 @@ function computeMonthsParse() {
|
|
|
813
842
|
function cmpLenRev(a, b) {
|
|
814
843
|
return b.length - a.length;
|
|
815
844
|
}
|
|
816
|
-
var shortPieces = [], longPieces = [], mixedPieces = [], i, mom;
|
|
845
|
+
var shortPieces = [], longPieces = [], mixedPieces = [], i, mom, shortP, longP;
|
|
817
846
|
for (i = 0; i < 12; i++) {
|
|
818
847
|
mom = createUTC([2e3, i]);
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
848
|
+
shortP = regexEscape(this.monthsShort(mom, ""));
|
|
849
|
+
longP = regexEscape(this.months(mom, ""));
|
|
850
|
+
shortPieces.push(shortP);
|
|
851
|
+
longPieces.push(longP);
|
|
852
|
+
mixedPieces.push(longP);
|
|
853
|
+
mixedPieces.push(shortP);
|
|
823
854
|
}
|
|
824
855
|
shortPieces.sort(cmpLenRev);
|
|
825
856
|
longPieces.sort(cmpLenRev);
|
|
826
857
|
mixedPieces.sort(cmpLenRev);
|
|
827
|
-
for (i = 0; i < 12; i++) {
|
|
828
|
-
shortPieces[i] = regexEscape(shortPieces[i]);
|
|
829
|
-
longPieces[i] = regexEscape(longPieces[i]);
|
|
830
|
-
}
|
|
831
|
-
for (i = 0; i < 24; i++) {
|
|
832
|
-
mixedPieces[i] = regexEscape(mixedPieces[i]);
|
|
833
|
-
}
|
|
834
858
|
this._monthsRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i");
|
|
835
859
|
this._monthsShortRegex = this._monthsRegex;
|
|
836
860
|
this._monthsStrictRegex = new RegExp(
|
|
@@ -842,150 +866,6 @@ function computeMonthsParse() {
|
|
|
842
866
|
"i"
|
|
843
867
|
);
|
|
844
868
|
}
|
|
845
|
-
addFormatToken("Y", 0, 0, function() {
|
|
846
|
-
var y = this.year();
|
|
847
|
-
return y <= 9999 ? zeroFill(y, 4) : "+" + y;
|
|
848
|
-
});
|
|
849
|
-
addFormatToken(0, ["YY", 2], 0, function() {
|
|
850
|
-
return this.year() % 100;
|
|
851
|
-
});
|
|
852
|
-
addFormatToken(0, ["YYYY", 4], 0, "year");
|
|
853
|
-
addFormatToken(0, ["YYYYY", 5], 0, "year");
|
|
854
|
-
addFormatToken(0, ["YYYYYY", 6, true], 0, "year");
|
|
855
|
-
addUnitAlias("year", "y");
|
|
856
|
-
addUnitPriority("year", 1);
|
|
857
|
-
addRegexToken("Y", matchSigned);
|
|
858
|
-
addRegexToken("YY", match1to2, match2);
|
|
859
|
-
addRegexToken("YYYY", match1to4, match4);
|
|
860
|
-
addRegexToken("YYYYY", match1to6, match6);
|
|
861
|
-
addRegexToken("YYYYYY", match1to6, match6);
|
|
862
|
-
addParseToken(["YYYYY", "YYYYYY"], YEAR);
|
|
863
|
-
addParseToken("YYYY", function(input, array) {
|
|
864
|
-
array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
|
|
865
|
-
});
|
|
866
|
-
addParseToken("YY", function(input, array) {
|
|
867
|
-
array[YEAR] = hooks.parseTwoDigitYear(input);
|
|
868
|
-
});
|
|
869
|
-
addParseToken("Y", function(input, array) {
|
|
870
|
-
array[YEAR] = parseInt(input, 10);
|
|
871
|
-
});
|
|
872
|
-
function daysInYear(year) {
|
|
873
|
-
return isLeapYear(year) ? 366 : 365;
|
|
874
|
-
}
|
|
875
|
-
hooks.parseTwoDigitYear = function(input) {
|
|
876
|
-
return toInt(input) + (toInt(input) > 68 ? 1900 : 2e3);
|
|
877
|
-
};
|
|
878
|
-
var getSetYear = makeGetSet("FullYear", true);
|
|
879
|
-
function getIsLeapYear() {
|
|
880
|
-
return isLeapYear(this.year());
|
|
881
|
-
}
|
|
882
|
-
function createDate(y, m, d, h, M, s, ms) {
|
|
883
|
-
var date;
|
|
884
|
-
if (y < 100 && y >= 0) {
|
|
885
|
-
date = new Date(y + 400, m, d, h, M, s, ms);
|
|
886
|
-
if (isFinite(date.getFullYear())) {
|
|
887
|
-
date.setFullYear(y);
|
|
888
|
-
}
|
|
889
|
-
} else {
|
|
890
|
-
date = new Date(y, m, d, h, M, s, ms);
|
|
891
|
-
}
|
|
892
|
-
return date;
|
|
893
|
-
}
|
|
894
|
-
function createUTCDate(y) {
|
|
895
|
-
var date, args;
|
|
896
|
-
if (y < 100 && y >= 0) {
|
|
897
|
-
args = Array.prototype.slice.call(arguments);
|
|
898
|
-
args[0] = y + 400;
|
|
899
|
-
date = new Date(Date.UTC.apply(null, args));
|
|
900
|
-
if (isFinite(date.getUTCFullYear())) {
|
|
901
|
-
date.setUTCFullYear(y);
|
|
902
|
-
}
|
|
903
|
-
} else {
|
|
904
|
-
date = new Date(Date.UTC.apply(null, arguments));
|
|
905
|
-
}
|
|
906
|
-
return date;
|
|
907
|
-
}
|
|
908
|
-
function firstWeekOffset(year, dow, doy) {
|
|
909
|
-
var fwd = 7 + dow - doy, fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
|
|
910
|
-
return -fwdlw + fwd - 1;
|
|
911
|
-
}
|
|
912
|
-
function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
|
|
913
|
-
var localWeekday = (7 + weekday - dow) % 7, weekOffset = firstWeekOffset(year, dow, doy), dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, resYear, resDayOfYear;
|
|
914
|
-
if (dayOfYear <= 0) {
|
|
915
|
-
resYear = year - 1;
|
|
916
|
-
resDayOfYear = daysInYear(resYear) + dayOfYear;
|
|
917
|
-
} else if (dayOfYear > daysInYear(year)) {
|
|
918
|
-
resYear = year + 1;
|
|
919
|
-
resDayOfYear = dayOfYear - daysInYear(year);
|
|
920
|
-
} else {
|
|
921
|
-
resYear = year;
|
|
922
|
-
resDayOfYear = dayOfYear;
|
|
923
|
-
}
|
|
924
|
-
return {
|
|
925
|
-
year: resYear,
|
|
926
|
-
dayOfYear: resDayOfYear
|
|
927
|
-
};
|
|
928
|
-
}
|
|
929
|
-
function weekOfYear(mom, dow, doy) {
|
|
930
|
-
var weekOffset = firstWeekOffset(mom.year(), dow, doy), week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, resWeek, resYear;
|
|
931
|
-
if (week < 1) {
|
|
932
|
-
resYear = mom.year() - 1;
|
|
933
|
-
resWeek = week + weeksInYear(resYear, dow, doy);
|
|
934
|
-
} else if (week > weeksInYear(mom.year(), dow, doy)) {
|
|
935
|
-
resWeek = week - weeksInYear(mom.year(), dow, doy);
|
|
936
|
-
resYear = mom.year() + 1;
|
|
937
|
-
} else {
|
|
938
|
-
resYear = mom.year();
|
|
939
|
-
resWeek = week;
|
|
940
|
-
}
|
|
941
|
-
return {
|
|
942
|
-
week: resWeek,
|
|
943
|
-
year: resYear
|
|
944
|
-
};
|
|
945
|
-
}
|
|
946
|
-
function weeksInYear(year, dow, doy) {
|
|
947
|
-
var weekOffset = firstWeekOffset(year, dow, doy), weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
|
|
948
|
-
return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
|
|
949
|
-
}
|
|
950
|
-
addFormatToken("w", ["ww", 2], "wo", "week");
|
|
951
|
-
addFormatToken("W", ["WW", 2], "Wo", "isoWeek");
|
|
952
|
-
addUnitAlias("week", "w");
|
|
953
|
-
addUnitAlias("isoWeek", "W");
|
|
954
|
-
addUnitPriority("week", 5);
|
|
955
|
-
addUnitPriority("isoWeek", 5);
|
|
956
|
-
addRegexToken("w", match1to2);
|
|
957
|
-
addRegexToken("ww", match1to2, match2);
|
|
958
|
-
addRegexToken("W", match1to2);
|
|
959
|
-
addRegexToken("WW", match1to2, match2);
|
|
960
|
-
addWeekParseToken(
|
|
961
|
-
["w", "ww", "W", "WW"],
|
|
962
|
-
function(input, week, config, token2) {
|
|
963
|
-
week[token2.substr(0, 1)] = toInt(input);
|
|
964
|
-
}
|
|
965
|
-
);
|
|
966
|
-
function localeWeek(mom) {
|
|
967
|
-
return weekOfYear(mom, this._week.dow, this._week.doy).week;
|
|
968
|
-
}
|
|
969
|
-
var defaultLocaleWeek = {
|
|
970
|
-
dow: 0,
|
|
971
|
-
// Sunday is the first day of the week.
|
|
972
|
-
doy: 6
|
|
973
|
-
// The week that contains Jan 6th is the first week of the year.
|
|
974
|
-
};
|
|
975
|
-
function localeFirstDayOfWeek() {
|
|
976
|
-
return this._week.dow;
|
|
977
|
-
}
|
|
978
|
-
function localeFirstDayOfYear() {
|
|
979
|
-
return this._week.doy;
|
|
980
|
-
}
|
|
981
|
-
function getSetWeek(input) {
|
|
982
|
-
var week = this.localeData().week(this);
|
|
983
|
-
return input == null ? week : this.add((input - week) * 7, "d");
|
|
984
|
-
}
|
|
985
|
-
function getSetISOWeek(input) {
|
|
986
|
-
var week = weekOfYear(this, 1, 4).week;
|
|
987
|
-
return input == null ? week : this.add((input - week) * 7, "d");
|
|
988
|
-
}
|
|
989
869
|
addFormatToken("d", 0, "do", "day");
|
|
990
870
|
addFormatToken("dd", 0, 0, function(format2) {
|
|
991
871
|
return this.localeData().weekdaysMin(this, format2);
|
|
@@ -998,15 +878,13 @@ addFormatToken("dddd", 0, 0, function(format2) {
|
|
|
998
878
|
});
|
|
999
879
|
addFormatToken("e", 0, 0, "weekday");
|
|
1000
880
|
addFormatToken("E", 0, 0, "isoWeekday");
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
addUnitPriority("day", 11);
|
|
1005
|
-
addUnitPriority("weekday", 11);
|
|
1006
|
-
addUnitPriority("isoWeekday", 11);
|
|
881
|
+
addFormatToken("eHHmm", 0, 0, function() {
|
|
882
|
+
return "" + this.weekday() + zeroFill(this.hours(), 2) + zeroFill(this.minutes(), 2);
|
|
883
|
+
});
|
|
1007
884
|
addRegexToken("d", match1to2);
|
|
1008
885
|
addRegexToken("e", match1to2);
|
|
1009
886
|
addRegexToken("E", match1to2);
|
|
887
|
+
addRegexToken("eHHmm", match5to6);
|
|
1010
888
|
addRegexToken("dd", function(isStrict, locale2) {
|
|
1011
889
|
return locale2.weekdaysMinRegex(isStrict);
|
|
1012
890
|
});
|
|
@@ -1027,6 +905,12 @@ addWeekParseToken(["dd", "ddd", "dddd"], function(input, week, config, token2) {
|
|
|
1027
905
|
addWeekParseToken(["d", "e", "E"], function(input, week, config, token2) {
|
|
1028
906
|
week[token2] = toInt(input);
|
|
1029
907
|
});
|
|
908
|
+
addWeekParseToken("eHHmm", function(input, week, config) {
|
|
909
|
+
var weekdayEnd = input.length - 4;
|
|
910
|
+
week.e = toInt(input.substr(0, weekdayEnd));
|
|
911
|
+
config._a[HOUR] = toInt(input.substr(weekdayEnd, 2));
|
|
912
|
+
config._a[MINUTE] = toInt(input.substr(weekdayEnd + 2));
|
|
913
|
+
});
|
|
1030
914
|
function parseWeekday(input, locale2) {
|
|
1031
915
|
if (typeof input !== "string") {
|
|
1032
916
|
return input;
|
|
@@ -1049,7 +933,27 @@ function parseIsoWeekday(input, locale2) {
|
|
|
1049
933
|
function shiftWeekdays(ws, n) {
|
|
1050
934
|
return ws.slice(n, 7).concat(ws.slice(0, n));
|
|
1051
935
|
}
|
|
1052
|
-
var defaultLocaleWeekdays = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), defaultLocaleWeekdaysShort = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), defaultLocaleWeekdaysMin = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), defaultWeekdaysRegex = matchWord, defaultWeekdaysShortRegex = matchWord, defaultWeekdaysMinRegex = matchWord
|
|
936
|
+
var defaultLocaleWeekdays = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), defaultLocaleWeekdaysShort = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), defaultLocaleWeekdaysMin = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), defaultWeekdaysRegex = matchWord, defaultWeekdaysShortRegex = matchWord, defaultWeekdaysMinRegex = matchWord, weekdaysParseProperties = [
|
|
937
|
+
"weekdaysParse",
|
|
938
|
+
"fullWeekdaysParse",
|
|
939
|
+
"shortWeekdaysParse",
|
|
940
|
+
"minWeekdaysParse",
|
|
941
|
+
"weekdaysRegex",
|
|
942
|
+
"weekdaysShortRegex",
|
|
943
|
+
"weekdaysMinRegex",
|
|
944
|
+
"weekdaysStrictRegex",
|
|
945
|
+
"weekdaysShortStrictRegex",
|
|
946
|
+
"weekdaysMinStrictRegex"
|
|
947
|
+
];
|
|
948
|
+
function clearWeekdaysParseCache(locale2, config) {
|
|
949
|
+
var i, prop;
|
|
950
|
+
for (i = 0; i < weekdaysParseProperties.length; i++) {
|
|
951
|
+
prop = weekdaysParseProperties[i];
|
|
952
|
+
if (!hasOwnProp(config, prop)) {
|
|
953
|
+
delete locale2["_" + prop];
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
}
|
|
1053
957
|
function localeWeekdays(m, format2) {
|
|
1054
958
|
var weekdays = isArray(this._weekdays) ? this._weekdays : this._weekdays[m && m !== true && this._weekdays.isFormat.test(format2) ? "format" : "standalone"];
|
|
1055
959
|
return m === true ? shiftWeekdays(weekdays, this._week.dow) : m ? weekdays[m.day()] : weekdays;
|
|
@@ -1060,7 +964,7 @@ function localeWeekdaysShort(m) {
|
|
|
1060
964
|
function localeWeekdaysMin(m) {
|
|
1061
965
|
return m === true ? shiftWeekdays(this._weekdaysMin, this._week.dow) : m ? this._weekdaysMin[m.day()] : this._weekdaysMin;
|
|
1062
966
|
}
|
|
1063
|
-
function handleStrictParse
|
|
967
|
+
function handleStrictParse(weekdayName, format2, strict) {
|
|
1064
968
|
var i, ii, mom, llc = weekdayName.toLocaleLowerCase();
|
|
1065
969
|
if (!this._weekdaysParse) {
|
|
1066
970
|
this._weekdaysParse = [];
|
|
@@ -1130,7 +1034,7 @@ function handleStrictParse$1(weekdayName, format2, strict) {
|
|
|
1130
1034
|
function localeWeekdaysParse(weekdayName, format2, strict) {
|
|
1131
1035
|
var i, mom, regex;
|
|
1132
1036
|
if (this._weekdaysParseExact) {
|
|
1133
|
-
return handleStrictParse
|
|
1037
|
+
return handleStrictParse.call(this, weekdayName, format2, strict);
|
|
1134
1038
|
}
|
|
1135
1039
|
if (!this._weekdaysParse) {
|
|
1136
1040
|
this._weekdaysParse = [];
|
|
@@ -1173,7 +1077,7 @@ function getSetDayOfWeek(input) {
|
|
|
1173
1077
|
if (!this.isValid()) {
|
|
1174
1078
|
return input != null ? this : NaN;
|
|
1175
1079
|
}
|
|
1176
|
-
var day = this
|
|
1080
|
+
var day = get$2(this, "Day");
|
|
1177
1081
|
if (input != null) {
|
|
1178
1082
|
input = parseWeekday(input, this.localeData());
|
|
1179
1083
|
return this.add(input - day, "d");
|
|
@@ -1181,111 +1085,376 @@ function getSetDayOfWeek(input) {
|
|
|
1181
1085
|
return day;
|
|
1182
1086
|
}
|
|
1183
1087
|
}
|
|
1184
|
-
function getSetLocaleDayOfWeek(input) {
|
|
1185
|
-
if (!this.isValid()) {
|
|
1186
|
-
return input != null ? this : NaN;
|
|
1187
|
-
}
|
|
1188
|
-
var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
|
|
1189
|
-
return input == null ? weekday : this.add(input - weekday, "d");
|
|
1088
|
+
function getSetLocaleDayOfWeek(input) {
|
|
1089
|
+
if (!this.isValid()) {
|
|
1090
|
+
return input != null ? this : NaN;
|
|
1091
|
+
}
|
|
1092
|
+
var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
|
|
1093
|
+
return input == null ? weekday : this.add(input - weekday, "d");
|
|
1094
|
+
}
|
|
1095
|
+
function getSetISODayOfWeek(input) {
|
|
1096
|
+
if (!this.isValid()) {
|
|
1097
|
+
return input != null ? this : NaN;
|
|
1098
|
+
}
|
|
1099
|
+
if (input != null) {
|
|
1100
|
+
var weekday = parseIsoWeekday(input, this.localeData());
|
|
1101
|
+
return this.day(this.day() % 7 ? weekday : weekday - 7);
|
|
1102
|
+
} else {
|
|
1103
|
+
return this.day() || 7;
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
function weekdaysRegex(isStrict) {
|
|
1107
|
+
if (this._weekdaysParseExact) {
|
|
1108
|
+
if (!hasOwnProp(this, "_weekdaysRegex")) {
|
|
1109
|
+
computeWeekdaysParse.call(this);
|
|
1110
|
+
}
|
|
1111
|
+
if (isStrict) {
|
|
1112
|
+
return this._weekdaysStrictRegex;
|
|
1113
|
+
} else {
|
|
1114
|
+
return this._weekdaysRegex;
|
|
1115
|
+
}
|
|
1116
|
+
} else {
|
|
1117
|
+
if (!hasOwnProp(this, "_weekdaysRegex")) {
|
|
1118
|
+
this._weekdaysRegex = defaultWeekdaysRegex;
|
|
1119
|
+
}
|
|
1120
|
+
return this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex;
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
function weekdaysShortRegex(isStrict) {
|
|
1124
|
+
if (this._weekdaysParseExact) {
|
|
1125
|
+
if (!hasOwnProp(this, "_weekdaysRegex")) {
|
|
1126
|
+
computeWeekdaysParse.call(this);
|
|
1127
|
+
}
|
|
1128
|
+
if (isStrict) {
|
|
1129
|
+
return this._weekdaysShortStrictRegex;
|
|
1130
|
+
} else {
|
|
1131
|
+
return this._weekdaysShortRegex;
|
|
1132
|
+
}
|
|
1133
|
+
} else {
|
|
1134
|
+
if (!hasOwnProp(this, "_weekdaysShortRegex")) {
|
|
1135
|
+
this._weekdaysShortRegex = defaultWeekdaysShortRegex;
|
|
1136
|
+
}
|
|
1137
|
+
return this._weekdaysShortStrictRegex && isStrict ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
function weekdaysMinRegex(isStrict) {
|
|
1141
|
+
if (this._weekdaysParseExact) {
|
|
1142
|
+
if (!hasOwnProp(this, "_weekdaysRegex")) {
|
|
1143
|
+
computeWeekdaysParse.call(this);
|
|
1144
|
+
}
|
|
1145
|
+
if (isStrict) {
|
|
1146
|
+
return this._weekdaysMinStrictRegex;
|
|
1147
|
+
} else {
|
|
1148
|
+
return this._weekdaysMinRegex;
|
|
1149
|
+
}
|
|
1150
|
+
} else {
|
|
1151
|
+
if (!hasOwnProp(this, "_weekdaysMinRegex")) {
|
|
1152
|
+
this._weekdaysMinRegex = defaultWeekdaysMinRegex;
|
|
1153
|
+
}
|
|
1154
|
+
return this._weekdaysMinStrictRegex && isStrict ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
function computeWeekdaysParse() {
|
|
1158
|
+
function cmpLenRev(a, b) {
|
|
1159
|
+
return b.length - a.length;
|
|
1160
|
+
}
|
|
1161
|
+
var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [], i, mom, minp, shortp, longp;
|
|
1162
|
+
for (i = 0; i < 7; i++) {
|
|
1163
|
+
mom = createUTC([2e3, 1]).day(i);
|
|
1164
|
+
minp = regexEscape(this.weekdaysMin(mom, ""));
|
|
1165
|
+
shortp = regexEscape(this.weekdaysShort(mom, ""));
|
|
1166
|
+
longp = regexEscape(this.weekdays(mom, ""));
|
|
1167
|
+
minPieces.push(minp);
|
|
1168
|
+
shortPieces.push(shortp);
|
|
1169
|
+
longPieces.push(longp);
|
|
1170
|
+
mixedPieces.push(minp);
|
|
1171
|
+
mixedPieces.push(shortp);
|
|
1172
|
+
mixedPieces.push(longp);
|
|
1173
|
+
}
|
|
1174
|
+
minPieces.sort(cmpLenRev);
|
|
1175
|
+
shortPieces.sort(cmpLenRev);
|
|
1176
|
+
longPieces.sort(cmpLenRev);
|
|
1177
|
+
mixedPieces.sort(cmpLenRev);
|
|
1178
|
+
this._weekdaysRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i");
|
|
1179
|
+
this._weekdaysShortRegex = this._weekdaysRegex;
|
|
1180
|
+
this._weekdaysMinRegex = this._weekdaysRegex;
|
|
1181
|
+
this._weekdaysStrictRegex = new RegExp(
|
|
1182
|
+
"^(" + longPieces.join("|") + ")",
|
|
1183
|
+
"i"
|
|
1184
|
+
);
|
|
1185
|
+
this._weekdaysShortStrictRegex = new RegExp(
|
|
1186
|
+
"^(" + shortPieces.join("|") + ")",
|
|
1187
|
+
"i"
|
|
1188
|
+
);
|
|
1189
|
+
this._weekdaysMinStrictRegex = new RegExp(
|
|
1190
|
+
"^(" + minPieces.join("|") + ")",
|
|
1191
|
+
"i"
|
|
1192
|
+
);
|
|
1193
|
+
}
|
|
1194
|
+
function set(config) {
|
|
1195
|
+
var prop, i;
|
|
1196
|
+
clearMonthsParseCache(this, config);
|
|
1197
|
+
clearWeekdaysParseCache(this, config);
|
|
1198
|
+
for (i in config) {
|
|
1199
|
+
if (hasOwnProp(config, i)) {
|
|
1200
|
+
prop = config[i];
|
|
1201
|
+
if (isFunction(prop)) {
|
|
1202
|
+
this[i] = prop;
|
|
1203
|
+
} else {
|
|
1204
|
+
this["_" + i] = prop;
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
this._config = config;
|
|
1209
|
+
this._dayOfMonthOrdinalParseLenient = new RegExp(
|
|
1210
|
+
(this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
|
|
1211
|
+
);
|
|
1212
|
+
}
|
|
1213
|
+
function mergeConfigs(parentConfig, childConfig) {
|
|
1214
|
+
var res = extend({}, parentConfig), prop;
|
|
1215
|
+
for (prop in childConfig) {
|
|
1216
|
+
if (hasOwnProp(childConfig, prop)) {
|
|
1217
|
+
if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
|
|
1218
|
+
res[prop] = {};
|
|
1219
|
+
extend(res[prop], parentConfig[prop]);
|
|
1220
|
+
extend(res[prop], childConfig[prop]);
|
|
1221
|
+
} else if (childConfig[prop] != null) {
|
|
1222
|
+
res[prop] = childConfig[prop];
|
|
1223
|
+
} else {
|
|
1224
|
+
delete res[prop];
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
for (prop in parentConfig) {
|
|
1229
|
+
if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject(parentConfig[prop])) {
|
|
1230
|
+
res[prop] = extend({}, res[prop]);
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
return res;
|
|
1234
|
+
}
|
|
1235
|
+
function Locale(config) {
|
|
1236
|
+
if (config != null) {
|
|
1237
|
+
this.set(config);
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
var keys;
|
|
1241
|
+
if (Object.keys) {
|
|
1242
|
+
keys = Object.keys;
|
|
1243
|
+
} else {
|
|
1244
|
+
keys = function(obj) {
|
|
1245
|
+
var i, res = [];
|
|
1246
|
+
for (i in obj) {
|
|
1247
|
+
if (hasOwnProp(obj, i)) {
|
|
1248
|
+
res.push(i);
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
return res;
|
|
1252
|
+
};
|
|
1253
|
+
}
|
|
1254
|
+
var defaultCalendar = {
|
|
1255
|
+
sameDay: "[Today at] LT",
|
|
1256
|
+
nextDay: "[Tomorrow at] LT",
|
|
1257
|
+
nextWeek: "dddd [at] LT",
|
|
1258
|
+
lastDay: "[Yesterday at] LT",
|
|
1259
|
+
lastWeek: "[Last] dddd [at] LT",
|
|
1260
|
+
sameElse: "L"
|
|
1261
|
+
};
|
|
1262
|
+
function calendar$1(key, mom, now2) {
|
|
1263
|
+
var output = this._calendar[key] || this._calendar["sameElse"];
|
|
1264
|
+
return isFunction(output) ? output.call(mom, now2) : output;
|
|
1265
|
+
}
|
|
1266
|
+
var defaultLongDateFormat = {
|
|
1267
|
+
LTS: "h:mm:ss A",
|
|
1268
|
+
LT: "h:mm A",
|
|
1269
|
+
L: "MM/DD/YYYY",
|
|
1270
|
+
LL: "MMMM D, YYYY",
|
|
1271
|
+
LLL: "MMMM D, YYYY h:mm A",
|
|
1272
|
+
LLLL: "dddd, MMMM D, YYYY h:mm A"
|
|
1273
|
+
};
|
|
1274
|
+
function longDateFormat(key) {
|
|
1275
|
+
var format2 = this._longDateFormat[key], formatUpper = this._longDateFormat[key.toUpperCase()], formatCache = this._longDateFormatCache;
|
|
1276
|
+
if (format2 || !formatUpper) {
|
|
1277
|
+
return format2;
|
|
1278
|
+
}
|
|
1279
|
+
if (formatCache && formatCache[key] && formatCache[key].formatUpper === formatUpper) {
|
|
1280
|
+
return formatCache[key].format;
|
|
1281
|
+
}
|
|
1282
|
+
format2 = formatUpper.match(formattingTokens).map(function(tok) {
|
|
1283
|
+
if (tok === "MMMM" || tok === "MM" || tok === "DD" || tok === "dddd") {
|
|
1284
|
+
return tok.slice(1);
|
|
1285
|
+
}
|
|
1286
|
+
return tok;
|
|
1287
|
+
}).join("");
|
|
1288
|
+
if (!formatCache) {
|
|
1289
|
+
formatCache = this._longDateFormatCache = {};
|
|
1290
|
+
}
|
|
1291
|
+
formatCache[key] = {
|
|
1292
|
+
formatUpper,
|
|
1293
|
+
format: format2
|
|
1294
|
+
};
|
|
1295
|
+
return format2;
|
|
1296
|
+
}
|
|
1297
|
+
var defaultInvalidDate = "Invalid date";
|
|
1298
|
+
function invalidDate() {
|
|
1299
|
+
return this._invalidDate;
|
|
1300
|
+
}
|
|
1301
|
+
var defaultOrdinal = "%d", defaultDayOfMonthOrdinalParse = /\d{1,2}/;
|
|
1302
|
+
function ordinal(number) {
|
|
1303
|
+
return this._ordinal.replace("%d", number);
|
|
1304
|
+
}
|
|
1305
|
+
var defaultRelativeTime = {
|
|
1306
|
+
future: "in %s",
|
|
1307
|
+
past: "%s ago",
|
|
1308
|
+
s: "a few seconds",
|
|
1309
|
+
ss: "%d seconds",
|
|
1310
|
+
m: "a minute",
|
|
1311
|
+
mm: "%d minutes",
|
|
1312
|
+
h: "an hour",
|
|
1313
|
+
hh: "%d hours",
|
|
1314
|
+
d: "a day",
|
|
1315
|
+
dd: "%d days",
|
|
1316
|
+
w: "a week",
|
|
1317
|
+
ww: "%d weeks",
|
|
1318
|
+
M: "a month",
|
|
1319
|
+
MM: "%d months",
|
|
1320
|
+
y: "a year",
|
|
1321
|
+
yy: "%d years"
|
|
1322
|
+
};
|
|
1323
|
+
function relativeTimeWithoutPostformat(number, withoutSuffix, string, isFuture) {
|
|
1324
|
+
var output = this._relativeTime[string];
|
|
1325
|
+
return isFunction(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number);
|
|
1326
|
+
}
|
|
1327
|
+
function relativeTime$1(number, withoutSuffix, string, isFuture) {
|
|
1328
|
+
return this.postformat(
|
|
1329
|
+
relativeTimeWithoutPostformat.call(
|
|
1330
|
+
this,
|
|
1331
|
+
number,
|
|
1332
|
+
withoutSuffix,
|
|
1333
|
+
string,
|
|
1334
|
+
isFuture
|
|
1335
|
+
)
|
|
1336
|
+
);
|
|
1190
1337
|
}
|
|
1191
|
-
function
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
}
|
|
1195
|
-
if (input != null) {
|
|
1196
|
-
var weekday = parseIsoWeekday(input, this.localeData());
|
|
1197
|
-
return this.day(this.day() % 7 ? weekday : weekday - 7);
|
|
1198
|
-
} else {
|
|
1199
|
-
return this.day() || 7;
|
|
1200
|
-
}
|
|
1338
|
+
function pastFutureWithoutPostformat(diff2, output) {
|
|
1339
|
+
var format2 = this._relativeTime[diff2 > 0 ? "future" : "past"];
|
|
1340
|
+
return isFunction(format2) ? format2(output) : format2.replace(/%s/i, output);
|
|
1201
1341
|
}
|
|
1202
|
-
function
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1342
|
+
function pastFuture(diff2, output) {
|
|
1343
|
+
return this.postformat(
|
|
1344
|
+
pastFutureWithoutPostformat.call(this, diff2, output)
|
|
1345
|
+
);
|
|
1346
|
+
}
|
|
1347
|
+
function createDate(y, m, d, h, M, s, ms) {
|
|
1348
|
+
var date;
|
|
1349
|
+
if (y < 100 && y >= 0) {
|
|
1350
|
+
date = new Date(y + 400, m, d, h, M, s, ms);
|
|
1351
|
+
if (isFinite(date.getFullYear())) {
|
|
1352
|
+
date.setFullYear(y);
|
|
1211
1353
|
}
|
|
1212
1354
|
} else {
|
|
1213
|
-
|
|
1214
|
-
this._weekdaysRegex = defaultWeekdaysRegex;
|
|
1215
|
-
}
|
|
1216
|
-
return this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex;
|
|
1355
|
+
date = new Date(y, m, d, h, M, s, ms);
|
|
1217
1356
|
}
|
|
1357
|
+
return date;
|
|
1218
1358
|
}
|
|
1219
|
-
function
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
return this._weekdaysShortRegex;
|
|
1359
|
+
function createUTCDate(y) {
|
|
1360
|
+
var date, args;
|
|
1361
|
+
if (y < 100 && y >= 0) {
|
|
1362
|
+
args = Array.prototype.slice.call(arguments);
|
|
1363
|
+
args[0] = y + 400;
|
|
1364
|
+
date = new Date(Date.UTC.apply(null, args));
|
|
1365
|
+
if (isFinite(date.getUTCFullYear())) {
|
|
1366
|
+
date.setUTCFullYear(y);
|
|
1228
1367
|
}
|
|
1229
1368
|
} else {
|
|
1230
|
-
|
|
1231
|
-
this._weekdaysShortRegex = defaultWeekdaysShortRegex;
|
|
1232
|
-
}
|
|
1233
|
-
return this._weekdaysShortStrictRegex && isStrict ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
|
|
1369
|
+
date = new Date(Date.UTC.apply(null, arguments));
|
|
1234
1370
|
}
|
|
1371
|
+
return date;
|
|
1235
1372
|
}
|
|
1236
|
-
function
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1373
|
+
function firstWeekOffset(year, dow, doy) {
|
|
1374
|
+
var fwd = 7 + dow - doy, fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
|
|
1375
|
+
return -fwdlw + fwd - 1;
|
|
1376
|
+
}
|
|
1377
|
+
function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
|
|
1378
|
+
var localWeekday = (7 + weekday - dow) % 7, weekOffset = firstWeekOffset(year, dow, doy), dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, resYear, resDayOfYear;
|
|
1379
|
+
if (dayOfYear <= 0) {
|
|
1380
|
+
resYear = year - 1;
|
|
1381
|
+
resDayOfYear = daysInYear(resYear) + dayOfYear;
|
|
1382
|
+
} else if (dayOfYear > daysInYear(year)) {
|
|
1383
|
+
resYear = year + 1;
|
|
1384
|
+
resDayOfYear = dayOfYear - daysInYear(year);
|
|
1246
1385
|
} else {
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
}
|
|
1250
|
-
return this._weekdaysMinStrictRegex && isStrict ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
|
|
1386
|
+
resYear = year;
|
|
1387
|
+
resDayOfYear = dayOfYear;
|
|
1251
1388
|
}
|
|
1389
|
+
return {
|
|
1390
|
+
year: resYear,
|
|
1391
|
+
dayOfYear: resDayOfYear
|
|
1392
|
+
};
|
|
1252
1393
|
}
|
|
1253
|
-
function
|
|
1254
|
-
|
|
1255
|
-
|
|
1394
|
+
function weekOfYearFromDayOfYear(year, dayOfYear, dow, doy) {
|
|
1395
|
+
var weekOffset = firstWeekOffset(year, dow, doy), week = Math.floor((dayOfYear - weekOffset - 1) / 7) + 1, resWeek, resYear;
|
|
1396
|
+
if (week < 1) {
|
|
1397
|
+
resYear = year - 1;
|
|
1398
|
+
resWeek = week + weeksInYear(resYear, dow, doy);
|
|
1399
|
+
} else if (week > weeksInYear(year, dow, doy)) {
|
|
1400
|
+
resWeek = week - weeksInYear(year, dow, doy);
|
|
1401
|
+
resYear = year + 1;
|
|
1402
|
+
} else {
|
|
1403
|
+
resYear = year;
|
|
1404
|
+
resWeek = week;
|
|
1256
1405
|
}
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1406
|
+
return {
|
|
1407
|
+
week: resWeek,
|
|
1408
|
+
year: resYear
|
|
1409
|
+
};
|
|
1410
|
+
}
|
|
1411
|
+
function weekOfYear(mom, dow, doy) {
|
|
1412
|
+
return weekOfYearFromDayOfYear(mom.year(), mom.dayOfYear(), dow, doy);
|
|
1413
|
+
}
|
|
1414
|
+
function weekOfYearFromDate(year, month, date, dow, doy) {
|
|
1415
|
+
var dayOfYear = Math.round(
|
|
1416
|
+
(createUTCDate(year, month, date) - createUTCDate(year, 0, 1)) / 864e5
|
|
1417
|
+
) + 1;
|
|
1418
|
+
return weekOfYearFromDayOfYear(year, dayOfYear, dow, doy);
|
|
1419
|
+
}
|
|
1420
|
+
function weeksInYear(year, dow, doy) {
|
|
1421
|
+
var weekOffset = firstWeekOffset(year, dow, doy), weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
|
|
1422
|
+
return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
|
|
1423
|
+
}
|
|
1424
|
+
addFormatToken("w", ["ww", 2], "wo", "week");
|
|
1425
|
+
addFormatToken("W", ["WW", 2], "Wo", "isoWeek");
|
|
1426
|
+
addRegexToken("w", match1to2, match1to2NoLeadingZero);
|
|
1427
|
+
addRegexToken("ww", match1to2, match2);
|
|
1428
|
+
addRegexToken("W", match1to2, match1to2NoLeadingZero);
|
|
1429
|
+
addRegexToken("WW", match1to2, match2);
|
|
1430
|
+
addWeekParseToken(
|
|
1431
|
+
["w", "ww", "W", "WW"],
|
|
1432
|
+
function(input, week, config, token2) {
|
|
1433
|
+
week[token2.substr(0, 1)] = toInt(input);
|
|
1269
1434
|
}
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
this.
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
);
|
|
1435
|
+
);
|
|
1436
|
+
function localeWeek(mom) {
|
|
1437
|
+
return weekOfYear(mom, this._week.dow, this._week.doy).week;
|
|
1438
|
+
}
|
|
1439
|
+
var defaultLocaleWeek = {
|
|
1440
|
+
dow: 0,
|
|
1441
|
+
// Sunday is the first day of the week.
|
|
1442
|
+
doy: 6
|
|
1443
|
+
// The week that contains Jan 6th is the first week of the year.
|
|
1444
|
+
};
|
|
1445
|
+
function localeFirstDayOfWeek() {
|
|
1446
|
+
return this._week.dow;
|
|
1447
|
+
}
|
|
1448
|
+
function localeFirstDayOfYear() {
|
|
1449
|
+
return this._week.doy;
|
|
1450
|
+
}
|
|
1451
|
+
function getSetWeek(input) {
|
|
1452
|
+
var week = this.localeData().week(this);
|
|
1453
|
+
return input == null ? week : this.add((input - week) * 7, "d");
|
|
1454
|
+
}
|
|
1455
|
+
function getSetISOWeek(input) {
|
|
1456
|
+
var week = weekOfYear(this, 1, 4).week;
|
|
1457
|
+
return input == null ? week : this.add((input - week) * 7, "d");
|
|
1289
1458
|
}
|
|
1290
1459
|
function hFormat() {
|
|
1291
1460
|
return this.hours() % 12 || 12;
|
|
@@ -1319,16 +1488,14 @@ function meridiem(token2, lowercase) {
|
|
|
1319
1488
|
}
|
|
1320
1489
|
meridiem("a", true);
|
|
1321
1490
|
meridiem("A", false);
|
|
1322
|
-
addUnitAlias("hour", "h");
|
|
1323
|
-
addUnitPriority("hour", 13);
|
|
1324
1491
|
function matchMeridiem(isStrict, locale2) {
|
|
1325
1492
|
return locale2._meridiemParse;
|
|
1326
1493
|
}
|
|
1327
1494
|
addRegexToken("a", matchMeridiem);
|
|
1328
1495
|
addRegexToken("A", matchMeridiem);
|
|
1329
|
-
addRegexToken("H", match1to2);
|
|
1330
|
-
addRegexToken("h", match1to2);
|
|
1331
|
-
addRegexToken("k", match1to2);
|
|
1496
|
+
addRegexToken("H", match1to2, match1to2HasZero);
|
|
1497
|
+
addRegexToken("h", match1to2, match1to2NoLeadingZero);
|
|
1498
|
+
addRegexToken("k", match1to2, match1to2NoLeadingZero);
|
|
1332
1499
|
addRegexToken("HH", match1to2, match2);
|
|
1333
1500
|
addRegexToken("hh", match1to2, match2);
|
|
1334
1501
|
addRegexToken("kk", match1to2, match2);
|
|
@@ -1434,21 +1601,30 @@ function chooseLocale(names) {
|
|
|
1434
1601
|
return globalLocale;
|
|
1435
1602
|
}
|
|
1436
1603
|
function isLocaleNameSane(name) {
|
|
1437
|
-
return name
|
|
1604
|
+
return typeof name === "string" && /^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(name);
|
|
1438
1605
|
}
|
|
1439
1606
|
function loadLocale(name) {
|
|
1440
|
-
var oldLocale = null, aliasedRequire;
|
|
1441
|
-
if (locales
|
|
1607
|
+
var oldLocale = null, aliasedRequire, normalizedName;
|
|
1608
|
+
if (hasOwnProp(locales, name)) {
|
|
1609
|
+
return locales[name];
|
|
1610
|
+
}
|
|
1611
|
+
normalizedName = normalizeLocale(name);
|
|
1612
|
+
if (hasOwnProp(locales, normalizedName)) {
|
|
1613
|
+
return locales[normalizedName];
|
|
1614
|
+
}
|
|
1615
|
+
if (typeof module !== "undefined" && module && module.exports && isLocaleNameSane(normalizedName)) {
|
|
1442
1616
|
try {
|
|
1443
1617
|
oldLocale = globalLocale._abbr;
|
|
1444
1618
|
aliasedRequire = require;
|
|
1445
|
-
aliasedRequire("./locale/" +
|
|
1619
|
+
aliasedRequire("./locale/" + normalizedName);
|
|
1446
1620
|
getSetGlobalLocale(oldLocale);
|
|
1447
1621
|
} catch (e) {
|
|
1448
|
-
locales[
|
|
1622
|
+
locales[normalizedName] = null;
|
|
1449
1623
|
}
|
|
1450
1624
|
}
|
|
1451
|
-
|
|
1625
|
+
if (hasOwnProp(locales, normalizedName)) {
|
|
1626
|
+
return locales[normalizedName];
|
|
1627
|
+
}
|
|
1452
1628
|
}
|
|
1453
1629
|
function getSetGlobalLocale(key, values) {
|
|
1454
1630
|
var data;
|
|
@@ -1513,12 +1689,14 @@ function defineLocale(name, config) {
|
|
|
1513
1689
|
}
|
|
1514
1690
|
}
|
|
1515
1691
|
function updateLocale(name, config) {
|
|
1692
|
+
var locale2, tmpLocale = loadLocale(name), parentConfig = baseConfig;
|
|
1693
|
+
if (tmpLocale != null) {
|
|
1694
|
+
name = tmpLocale._abbr;
|
|
1695
|
+
}
|
|
1516
1696
|
if (config != null) {
|
|
1517
|
-
var locale2, tmpLocale, parentConfig = baseConfig;
|
|
1518
1697
|
if (locales[name] != null && locales[name].parentLocale != null) {
|
|
1519
1698
|
locales[name].set(mergeConfigs(locales[name]._config, config));
|
|
1520
1699
|
} else {
|
|
1521
|
-
tmpLocale = loadLocale(name);
|
|
1522
1700
|
if (tmpLocale != null) {
|
|
1523
1701
|
parentConfig = tmpLocale._config;
|
|
1524
1702
|
}
|
|
@@ -1775,8 +1953,38 @@ function defaults(a, b, c) {
|
|
|
1775
1953
|
}
|
|
1776
1954
|
return c;
|
|
1777
1955
|
}
|
|
1778
|
-
function currentDateArray(config) {
|
|
1779
|
-
var
|
|
1956
|
+
function currentDateArray(config, now2, forWeek) {
|
|
1957
|
+
var hadWeekContext = Object.prototype.hasOwnProperty.call(
|
|
1958
|
+
config,
|
|
1959
|
+
"_isDefaultDatePartsForWeek"
|
|
1960
|
+
), weekContext = config._isDefaultDatePartsForWeek;
|
|
1961
|
+
config._isDefaultDatePartsForWeek = !!forWeek;
|
|
1962
|
+
try {
|
|
1963
|
+
return hooks._getDefaultDateParts(config, now2, forWeek);
|
|
1964
|
+
} finally {
|
|
1965
|
+
if (hadWeekContext) {
|
|
1966
|
+
config._isDefaultDatePartsForWeek = weekContext;
|
|
1967
|
+
} else {
|
|
1968
|
+
delete config._isDefaultDatePartsForWeek;
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
function currentDateNow(config) {
|
|
1973
|
+
var now2 = config._defaultDatePartsNow;
|
|
1974
|
+
if (!now2) {
|
|
1975
|
+
return hooks.now();
|
|
1976
|
+
}
|
|
1977
|
+
if (!now2.hasValue) {
|
|
1978
|
+
now2.value = hooks.now();
|
|
1979
|
+
now2.hasValue = true;
|
|
1980
|
+
}
|
|
1981
|
+
return now2.value;
|
|
1982
|
+
}
|
|
1983
|
+
function getDefaultDateParts(config, now2, forWeek) {
|
|
1984
|
+
var useWeekDefaults = forWeek || config._isDefaultDatePartsForWeek, nowValue = useWeekDefaults ? createLocal(now2) : new Date(now2);
|
|
1985
|
+
if (useWeekDefaults) {
|
|
1986
|
+
return [nowValue.year(), nowValue.month(), nowValue.date()];
|
|
1987
|
+
}
|
|
1780
1988
|
if (config._useUTC) {
|
|
1781
1989
|
return [
|
|
1782
1990
|
nowValue.getUTCFullYear(),
|
|
@@ -1786,17 +1994,21 @@ function currentDateArray(config) {
|
|
|
1786
1994
|
}
|
|
1787
1995
|
return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
|
|
1788
1996
|
}
|
|
1997
|
+
hooks._getDefaultDateParts = getDefaultDateParts;
|
|
1789
1998
|
function configFromArray(config) {
|
|
1790
|
-
var i, date, input = [], currentDate, expectedWeekday, yearToUse;
|
|
1999
|
+
var i, date, input = [], now2, currentDate, expectedWeekday, yearToUse, dateIsDefaulted;
|
|
1791
2000
|
if (config._d) {
|
|
1792
2001
|
return;
|
|
1793
2002
|
}
|
|
1794
|
-
|
|
2003
|
+
if (config._a[YEAR] == null || config._a[MONTH] == null || config._a[DATE] == null) {
|
|
2004
|
+
now2 = currentDateNow(config);
|
|
2005
|
+
currentDate = currentDateArray(config, now2);
|
|
2006
|
+
}
|
|
1795
2007
|
if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
|
|
1796
|
-
dayOfYearFromWeekInfo(config);
|
|
2008
|
+
dayOfYearFromWeekInfo(config, currentDateArray(config, now2, true));
|
|
1797
2009
|
}
|
|
1798
2010
|
if (config._dayOfYear != null) {
|
|
1799
|
-
yearToUse =
|
|
2011
|
+
yearToUse = config._a[YEAR] != null ? config._a[YEAR] : currentDate[YEAR];
|
|
1800
2012
|
if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) {
|
|
1801
2013
|
getParsingFlags(config)._overflowDayOfYear = true;
|
|
1802
2014
|
}
|
|
@@ -1804,6 +2016,7 @@ function configFromArray(config) {
|
|
|
1804
2016
|
config._a[MONTH] = date.getUTCMonth();
|
|
1805
2017
|
config._a[DATE] = date.getUTCDate();
|
|
1806
2018
|
}
|
|
2019
|
+
dateIsDefaulted = config._a[YEAR] == null || config._a[MONTH] == null || config._a[DATE] == null;
|
|
1807
2020
|
for (i = 0; i < 3 && config._a[i] == null; ++i) {
|
|
1808
2021
|
config._a[i] = input[i] = currentDate[i];
|
|
1809
2022
|
}
|
|
@@ -1825,11 +2038,11 @@ function configFromArray(config) {
|
|
|
1825
2038
|
if (config._nextDay) {
|
|
1826
2039
|
config._a[HOUR] = 24;
|
|
1827
2040
|
}
|
|
1828
|
-
if (config._w && typeof config._w.d !== "undefined" && config._w.d !== expectedWeekday) {
|
|
2041
|
+
if (config._w && typeof config._w.d !== "undefined" && !dateIsDefaulted && config._w.d !== expectedWeekday) {
|
|
1829
2042
|
getParsingFlags(config).weekdayMismatch = true;
|
|
1830
2043
|
}
|
|
1831
2044
|
}
|
|
1832
|
-
function dayOfYearFromWeekInfo(config) {
|
|
2045
|
+
function dayOfYearFromWeekInfo(config, currentDate) {
|
|
1833
2046
|
var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;
|
|
1834
2047
|
w = config._w;
|
|
1835
2048
|
if (w.GG != null || w.W != null || w.E != null) {
|
|
@@ -1838,7 +2051,13 @@ function dayOfYearFromWeekInfo(config) {
|
|
|
1838
2051
|
weekYear = defaults(
|
|
1839
2052
|
w.GG,
|
|
1840
2053
|
config._a[YEAR],
|
|
1841
|
-
|
|
2054
|
+
weekOfYearFromDate(
|
|
2055
|
+
currentDate[YEAR],
|
|
2056
|
+
currentDate[MONTH],
|
|
2057
|
+
currentDate[DATE],
|
|
2058
|
+
1,
|
|
2059
|
+
4
|
|
2060
|
+
).year
|
|
1842
2061
|
);
|
|
1843
2062
|
week = defaults(w.W, 1);
|
|
1844
2063
|
weekday = defaults(w.E, 1);
|
|
@@ -1848,7 +2067,13 @@ function dayOfYearFromWeekInfo(config) {
|
|
|
1848
2067
|
} else {
|
|
1849
2068
|
dow = config._locale._week.dow;
|
|
1850
2069
|
doy = config._locale._week.doy;
|
|
1851
|
-
curWeek =
|
|
2070
|
+
curWeek = weekOfYearFromDate(
|
|
2071
|
+
currentDate[YEAR],
|
|
2072
|
+
currentDate[MONTH],
|
|
2073
|
+
currentDate[DATE],
|
|
2074
|
+
dow,
|
|
2075
|
+
doy
|
|
2076
|
+
);
|
|
1852
2077
|
weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
|
|
1853
2078
|
week = defaults(w.w, curWeek.week);
|
|
1854
2079
|
if (w.d != null) {
|
|
@@ -1959,7 +2184,7 @@ function meridiemFixWrap(locale2, hour, meridiem2) {
|
|
|
1959
2184
|
}
|
|
1960
2185
|
}
|
|
1961
2186
|
function configFromStringAndArray(config) {
|
|
1962
|
-
var tempConfig, bestMoment, scoreToBeat, i, currentScore, validFormatFound, bestFormatIsValid = false, configfLen = config._f.length;
|
|
2187
|
+
var tempConfig, bestMoment, scoreToBeat, i, currentScore, validFormatFound, bestFormatIsValid = false, defaultDatePartsNow = {}, configfLen = config._f.length;
|
|
1963
2188
|
if (configfLen === 0) {
|
|
1964
2189
|
getParsingFlags(config).invalidFormat = true;
|
|
1965
2190
|
config._d = /* @__PURE__ */ new Date(NaN);
|
|
@@ -1972,9 +2197,10 @@ function configFromStringAndArray(config) {
|
|
|
1972
2197
|
if (config._useUTC != null) {
|
|
1973
2198
|
tempConfig._useUTC = config._useUTC;
|
|
1974
2199
|
}
|
|
2200
|
+
tempConfig._defaultDatePartsNow = defaultDatePartsNow;
|
|
1975
2201
|
tempConfig._f = config._f[i];
|
|
1976
2202
|
configFromStringAndFormat(tempConfig);
|
|
1977
|
-
if (isValid(tempConfig)) {
|
|
2203
|
+
if (isValid$2(tempConfig)) {
|
|
1978
2204
|
validFormatFound = true;
|
|
1979
2205
|
}
|
|
1980
2206
|
currentScore += getParsingFlags(tempConfig).charsLeftOver;
|
|
@@ -2022,7 +2248,7 @@ function prepareConfig(config) {
|
|
|
2022
2248
|
var input = config._i, format2 = config._f;
|
|
2023
2249
|
config._locale = config._locale || getLocale(config._l);
|
|
2024
2250
|
if (input === null || format2 === void 0 && input === "") {
|
|
2025
|
-
return createInvalid({ nullInput: true });
|
|
2251
|
+
return createInvalid$1({ nullInput: true });
|
|
2026
2252
|
}
|
|
2027
2253
|
if (typeof input === "string") {
|
|
2028
2254
|
config._i = input = config._locale.preparse(input);
|
|
@@ -2038,7 +2264,7 @@ function prepareConfig(config) {
|
|
|
2038
2264
|
} else {
|
|
2039
2265
|
configFromInput(config);
|
|
2040
2266
|
}
|
|
2041
|
-
if (!isValid(config)) {
|
|
2267
|
+
if (!isValid$2(config)) {
|
|
2042
2268
|
config._d = null;
|
|
2043
2269
|
}
|
|
2044
2270
|
return config;
|
|
@@ -2095,7 +2321,7 @@ var prototypeMin = deprecate(
|
|
|
2095
2321
|
if (this.isValid() && other.isValid()) {
|
|
2096
2322
|
return other < this ? this : other;
|
|
2097
2323
|
} else {
|
|
2098
|
-
return createInvalid();
|
|
2324
|
+
return createInvalid$1();
|
|
2099
2325
|
}
|
|
2100
2326
|
}
|
|
2101
2327
|
), prototypeMax = deprecate(
|
|
@@ -2105,7 +2331,7 @@ var prototypeMin = deprecate(
|
|
|
2105
2331
|
if (this.isValid() && other.isValid()) {
|
|
2106
2332
|
return other > this ? this : other;
|
|
2107
2333
|
} else {
|
|
2108
|
-
return createInvalid();
|
|
2334
|
+
return createInvalid$1();
|
|
2109
2335
|
}
|
|
2110
2336
|
}
|
|
2111
2337
|
);
|
|
@@ -2117,9 +2343,17 @@ function pickBy(fn, moments) {
|
|
|
2117
2343
|
if (!moments.length) {
|
|
2118
2344
|
return createLocal();
|
|
2119
2345
|
}
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2346
|
+
for (i = 0; i < moments.length; ++i) {
|
|
2347
|
+
if (isMoment(moments[i])) {
|
|
2348
|
+
res = moments[i];
|
|
2349
|
+
break;
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
if (!res) {
|
|
2353
|
+
return createInvalid$1();
|
|
2354
|
+
}
|
|
2355
|
+
for (++i; i < moments.length; ++i) {
|
|
2356
|
+
if (isMoment(moments[i]) && (!moments[i].isValid() || moments[i][fn](res))) {
|
|
2123
2357
|
res = moments[i];
|
|
2124
2358
|
}
|
|
2125
2359
|
}
|
|
@@ -2169,7 +2403,7 @@ function isDurationValid(m) {
|
|
|
2169
2403
|
function isValid$1() {
|
|
2170
2404
|
return this._isValid;
|
|
2171
2405
|
}
|
|
2172
|
-
function createInvalid
|
|
2406
|
+
function createInvalid() {
|
|
2173
2407
|
return createDuration(NaN);
|
|
2174
2408
|
}
|
|
2175
2409
|
function Duration(duration) {
|
|
@@ -2218,8 +2452,12 @@ offset("ZZ", "");
|
|
|
2218
2452
|
addRegexToken("Z", matchShortOffset);
|
|
2219
2453
|
addRegexToken("ZZ", matchShortOffset);
|
|
2220
2454
|
addParseToken(["Z", "ZZ"], function(input, array, config) {
|
|
2455
|
+
var offset2 = offsetFromString(matchShortOffset, input);
|
|
2221
2456
|
config._useUTC = true;
|
|
2222
|
-
config._tzm =
|
|
2457
|
+
config._tzm = offset2;
|
|
2458
|
+
if (offset2 === null) {
|
|
2459
|
+
getParsingFlags(config).invalidOffset = input;
|
|
2460
|
+
}
|
|
2223
2461
|
});
|
|
2224
2462
|
var chunkOffset = /([\+\-]|\d\d)/gi;
|
|
2225
2463
|
function offsetFromString(matcher, string) {
|
|
@@ -2230,6 +2468,9 @@ function offsetFromString(matcher, string) {
|
|
|
2230
2468
|
chunk = matches[matches.length - 1] || [];
|
|
2231
2469
|
parts = (chunk + "").match(chunkOffset) || ["-", 0, 0];
|
|
2232
2470
|
minutes2 = +(parts[1] * 60) + toInt(parts[2]);
|
|
2471
|
+
if (toInt(parts[2]) > 59 || (parts[0] === "+" ? minutes2 > 14 * 60 : minutes2 > 12 * 60)) {
|
|
2472
|
+
return null;
|
|
2473
|
+
}
|
|
2233
2474
|
return minutes2 === 0 ? 0 : parts[0] === "+" ? minutes2 : -minutes2;
|
|
2234
2475
|
}
|
|
2235
2476
|
function cloneWithOffset(input, model) {
|
|
@@ -2273,7 +2514,7 @@ function getSetOffset(input, keepLocalTime, keepMinutes) {
|
|
|
2273
2514
|
}
|
|
2274
2515
|
if (offset2 !== input) {
|
|
2275
2516
|
if (!keepLocalTime || this._changeInProgress) {
|
|
2276
|
-
addSubtract(
|
|
2517
|
+
addSubtract$1(
|
|
2277
2518
|
this,
|
|
2278
2519
|
createDuration(input - offset2, "m"),
|
|
2279
2520
|
1,
|
|
@@ -2420,7 +2661,7 @@ function createDuration(input, key) {
|
|
|
2420
2661
|
return ret;
|
|
2421
2662
|
}
|
|
2422
2663
|
createDuration.fn = Duration.prototype;
|
|
2423
|
-
createDuration.invalid = createInvalid
|
|
2664
|
+
createDuration.invalid = createInvalid;
|
|
2424
2665
|
function parseIso(inp, sign2) {
|
|
2425
2666
|
var res = inp && parseFloat(inp.replace(",", "."));
|
|
2426
2667
|
return (isNaN(res) ? 0 : res) * sign2;
|
|
@@ -2462,21 +2703,21 @@ function createAdder(direction, name) {
|
|
|
2462
2703
|
period = tmp;
|
|
2463
2704
|
}
|
|
2464
2705
|
dur = createDuration(val, period);
|
|
2465
|
-
addSubtract(this, dur, direction);
|
|
2706
|
+
addSubtract$1(this, dur, direction);
|
|
2466
2707
|
return this;
|
|
2467
2708
|
};
|
|
2468
2709
|
}
|
|
2469
|
-
function addSubtract(mom, duration, isAdding, updateOffset) {
|
|
2710
|
+
function addSubtract$1(mom, duration, isAdding, updateOffset) {
|
|
2470
2711
|
var milliseconds2 = duration._milliseconds, days2 = absRound(duration._days), months2 = absRound(duration._months);
|
|
2471
2712
|
if (!mom.isValid()) {
|
|
2472
2713
|
return;
|
|
2473
2714
|
}
|
|
2474
2715
|
updateOffset = updateOffset == null ? true : updateOffset;
|
|
2475
2716
|
if (months2) {
|
|
2476
|
-
setMonth(mom, get(mom, "Month") + months2 * isAdding);
|
|
2717
|
+
setMonth(mom, get$2(mom, "Month") + months2 * isAdding);
|
|
2477
2718
|
}
|
|
2478
2719
|
if (days2) {
|
|
2479
|
-
set$1(mom, "Date", get(mom, "Date") + days2 * isAdding);
|
|
2720
|
+
set$1(mom, "Date", get$2(mom, "Date") + days2 * isAdding);
|
|
2480
2721
|
}
|
|
2481
2722
|
if (milliseconds2) {
|
|
2482
2723
|
mom._d.setTime(mom._d.valueOf() + milliseconds2 * isAdding);
|
|
@@ -2485,7 +2726,7 @@ function addSubtract(mom, duration, isAdding, updateOffset) {
|
|
|
2485
2726
|
hooks.updateOffset(mom, days2 || months2);
|
|
2486
2727
|
}
|
|
2487
2728
|
}
|
|
2488
|
-
var add = createAdder(1, "add"), subtract = createAdder(-1, "subtract");
|
|
2729
|
+
var add$1 = createAdder(1, "add"), subtract$1 = createAdder(-1, "subtract");
|
|
2489
2730
|
function isString(input) {
|
|
2490
2731
|
return typeof input === "string" || input instanceof String;
|
|
2491
2732
|
}
|
|
@@ -2553,7 +2794,7 @@ function getCalendarFormat(myMoment, now2) {
|
|
|
2553
2794
|
var diff2 = myMoment.diff(now2, "days", true);
|
|
2554
2795
|
return diff2 < -6 ? "sameElse" : diff2 < -1 ? "lastWeek" : diff2 < 0 ? "lastDay" : diff2 < 1 ? "sameDay" : diff2 < 2 ? "nextDay" : diff2 < 7 ? "nextWeek" : "sameElse";
|
|
2555
2796
|
}
|
|
2556
|
-
function calendar
|
|
2797
|
+
function calendar(time, formats) {
|
|
2557
2798
|
if (arguments.length === 1) {
|
|
2558
2799
|
if (!arguments[0]) {
|
|
2559
2800
|
time = void 0;
|
|
@@ -2571,7 +2812,7 @@ function calendar$1(time, formats) {
|
|
|
2571
2812
|
output || this.localeData().calendar(format2, this, createLocal(now2))
|
|
2572
2813
|
);
|
|
2573
2814
|
}
|
|
2574
|
-
function clone() {
|
|
2815
|
+
function clone$1() {
|
|
2575
2816
|
return new Moment(this);
|
|
2576
2817
|
}
|
|
2577
2818
|
function isAfter(input, units) {
|
|
@@ -2685,7 +2926,7 @@ hooks.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
|
2685
2926
|
function toString() {
|
|
2686
2927
|
return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
|
|
2687
2928
|
}
|
|
2688
|
-
function toISOString(keepOffset) {
|
|
2929
|
+
function toISOString$1(keepOffset) {
|
|
2689
2930
|
if (!this.isValid()) {
|
|
2690
2931
|
return null;
|
|
2691
2932
|
}
|
|
@@ -2776,7 +3017,7 @@ function localeData() {
|
|
|
2776
3017
|
return this._locale;
|
|
2777
3018
|
}
|
|
2778
3019
|
var MS_PER_SECOND = 1e3, MS_PER_MINUTE = 60 * MS_PER_SECOND, MS_PER_HOUR = 60 * MS_PER_MINUTE, MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
|
|
2779
|
-
function mod
|
|
3020
|
+
function mod(dividend, divisor) {
|
|
2780
3021
|
return (dividend % divisor + divisor) % divisor;
|
|
2781
3022
|
}
|
|
2782
3023
|
function localStartOfDate(y, m, d) {
|
|
@@ -2834,18 +3075,18 @@ function startOf(units) {
|
|
|
2834
3075
|
break;
|
|
2835
3076
|
case "hour":
|
|
2836
3077
|
time = this._d.valueOf();
|
|
2837
|
-
time -= mod
|
|
3078
|
+
time -= mod(
|
|
2838
3079
|
time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
|
|
2839
3080
|
MS_PER_HOUR
|
|
2840
3081
|
);
|
|
2841
3082
|
break;
|
|
2842
3083
|
case "minute":
|
|
2843
3084
|
time = this._d.valueOf();
|
|
2844
|
-
time -= mod
|
|
3085
|
+
time -= mod(time, MS_PER_MINUTE);
|
|
2845
3086
|
break;
|
|
2846
3087
|
case "second":
|
|
2847
3088
|
time = this._d.valueOf();
|
|
2848
|
-
time -= mod
|
|
3089
|
+
time -= mod(time, MS_PER_SECOND);
|
|
2849
3090
|
break;
|
|
2850
3091
|
}
|
|
2851
3092
|
this._d.setTime(time);
|
|
@@ -2893,25 +3134,25 @@ function endOf(units) {
|
|
|
2893
3134
|
break;
|
|
2894
3135
|
case "hour":
|
|
2895
3136
|
time = this._d.valueOf();
|
|
2896
|
-
time += MS_PER_HOUR - mod
|
|
3137
|
+
time += MS_PER_HOUR - mod(
|
|
2897
3138
|
time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
|
|
2898
3139
|
MS_PER_HOUR
|
|
2899
3140
|
) - 1;
|
|
2900
3141
|
break;
|
|
2901
3142
|
case "minute":
|
|
2902
3143
|
time = this._d.valueOf();
|
|
2903
|
-
time += MS_PER_MINUTE - mod
|
|
3144
|
+
time += MS_PER_MINUTE - mod(time, MS_PER_MINUTE) - 1;
|
|
2904
3145
|
break;
|
|
2905
3146
|
case "second":
|
|
2906
3147
|
time = this._d.valueOf();
|
|
2907
|
-
time += MS_PER_SECOND - mod
|
|
3148
|
+
time += MS_PER_SECOND - mod(time, MS_PER_SECOND) - 1;
|
|
2908
3149
|
break;
|
|
2909
3150
|
}
|
|
2910
3151
|
this._d.setTime(time);
|
|
2911
3152
|
hooks.updateOffset(this, true);
|
|
2912
3153
|
return this;
|
|
2913
3154
|
}
|
|
2914
|
-
function valueOf() {
|
|
3155
|
+
function valueOf$1() {
|
|
2915
3156
|
return this._d.valueOf() - (this._offset || 0) * 6e4;
|
|
2916
3157
|
}
|
|
2917
3158
|
function unix() {
|
|
@@ -2947,8 +3188,8 @@ function toObject() {
|
|
|
2947
3188
|
function toJSON() {
|
|
2948
3189
|
return this.isValid() ? this.toISOString() : null;
|
|
2949
3190
|
}
|
|
2950
|
-
function isValid
|
|
2951
|
-
return isValid(this);
|
|
3191
|
+
function isValid() {
|
|
3192
|
+
return isValid$2(this);
|
|
2952
3193
|
}
|
|
2953
3194
|
function parsingFlags() {
|
|
2954
3195
|
return extend({}, getParsingFlags(this));
|
|
@@ -3149,14 +3390,17 @@ function matchEraYearOrdinal(isStrict, locale2) {
|
|
|
3149
3390
|
return locale2._eraYearOrdinalRegex || matchUnsigned;
|
|
3150
3391
|
}
|
|
3151
3392
|
function computeErasParse() {
|
|
3152
|
-
var abbrPieces = [], namePieces = [], narrowPieces = [], mixedPieces = [], i, l, eras = this.eras();
|
|
3393
|
+
var abbrPieces = [], namePieces = [], narrowPieces = [], mixedPieces = [], i, l, erasName, erasAbbr, erasNarrow, eras = this.eras();
|
|
3153
3394
|
for (i = 0, l = eras.length; i < l; ++i) {
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3395
|
+
erasName = regexEscape(eras[i].name);
|
|
3396
|
+
erasAbbr = regexEscape(eras[i].abbr);
|
|
3397
|
+
erasNarrow = regexEscape(eras[i].narrow);
|
|
3398
|
+
namePieces.push(erasName);
|
|
3399
|
+
abbrPieces.push(erasAbbr);
|
|
3400
|
+
narrowPieces.push(erasNarrow);
|
|
3401
|
+
mixedPieces.push(erasName);
|
|
3402
|
+
mixedPieces.push(erasAbbr);
|
|
3403
|
+
mixedPieces.push(erasNarrow);
|
|
3160
3404
|
}
|
|
3161
3405
|
this._erasRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i");
|
|
3162
3406
|
this._erasNameRegex = new RegExp("^(" + namePieces.join("|") + ")", "i");
|
|
@@ -3179,10 +3423,6 @@ addWeekYearFormatToken("gggg", "weekYear");
|
|
|
3179
3423
|
addWeekYearFormatToken("ggggg", "weekYear");
|
|
3180
3424
|
addWeekYearFormatToken("GGGG", "isoWeekYear");
|
|
3181
3425
|
addWeekYearFormatToken("GGGGG", "isoWeekYear");
|
|
3182
|
-
addUnitAlias("weekYear", "gg");
|
|
3183
|
-
addUnitAlias("isoWeekYear", "GG");
|
|
3184
|
-
addUnitPriority("weekYear", 1);
|
|
3185
|
-
addUnitPriority("isoWeekYear", 1);
|
|
3186
3426
|
addRegexToken("G", matchSigned);
|
|
3187
3427
|
addRegexToken("g", matchSigned);
|
|
3188
3428
|
addRegexToken("GG", match1to2, match2);
|
|
@@ -3205,7 +3445,7 @@ function getSetWeekYear(input) {
|
|
|
3205
3445
|
this,
|
|
3206
3446
|
input,
|
|
3207
3447
|
this.week(),
|
|
3208
|
-
this.weekday(),
|
|
3448
|
+
this.weekday() + this.localeData()._week.dow,
|
|
3209
3449
|
this.localeData()._week.dow,
|
|
3210
3450
|
this.localeData()._week.doy
|
|
3211
3451
|
);
|
|
@@ -3254,8 +3494,6 @@ function setWeekAll(weekYear, week, weekday, dow, doy) {
|
|
|
3254
3494
|
return this;
|
|
3255
3495
|
}
|
|
3256
3496
|
addFormatToken("Q", 0, "Qo", "quarter");
|
|
3257
|
-
addUnitAlias("quarter", "Q");
|
|
3258
|
-
addUnitPriority("quarter", 7);
|
|
3259
3497
|
addRegexToken("Q", match1);
|
|
3260
3498
|
addParseToken("Q", function(input, array) {
|
|
3261
3499
|
array[MONTH] = (toInt(input) - 1) * 3;
|
|
@@ -3264,9 +3502,7 @@ function getSetQuarter(input) {
|
|
|
3264
3502
|
return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
|
|
3265
3503
|
}
|
|
3266
3504
|
addFormatToken("D", ["DD", 2], "Do", "date");
|
|
3267
|
-
|
|
3268
|
-
addUnitPriority("date", 9);
|
|
3269
|
-
addRegexToken("D", match1to2);
|
|
3505
|
+
addRegexToken("D", match1to2, match1to2NoLeadingZero);
|
|
3270
3506
|
addRegexToken("DD", match1to2, match2);
|
|
3271
3507
|
addRegexToken("Do", function(isStrict, locale2) {
|
|
3272
3508
|
return isStrict ? locale2._dayOfMonthOrdinalParse || locale2._ordinalParse : locale2._dayOfMonthOrdinalParseLenient;
|
|
@@ -3277,8 +3513,6 @@ addParseToken("Do", function(input, array) {
|
|
|
3277
3513
|
});
|
|
3278
3514
|
var getSetDayOfMonth = makeGetSet("Date", true);
|
|
3279
3515
|
addFormatToken("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
|
|
3280
|
-
addUnitAlias("dayOfYear", "DDD");
|
|
3281
|
-
addUnitPriority("dayOfYear", 4);
|
|
3282
3516
|
addRegexToken("DDD", match1to3);
|
|
3283
3517
|
addRegexToken("DDDD", match3);
|
|
3284
3518
|
addParseToken(["DDD", "DDDD"], function(input, array, config) {
|
|
@@ -3291,16 +3525,12 @@ function getSetDayOfYear(input) {
|
|
|
3291
3525
|
return input == null ? dayOfYear : this.add(input - dayOfYear, "d");
|
|
3292
3526
|
}
|
|
3293
3527
|
addFormatToken("m", ["mm", 2], 0, "minute");
|
|
3294
|
-
|
|
3295
|
-
addUnitPriority("minute", 14);
|
|
3296
|
-
addRegexToken("m", match1to2);
|
|
3528
|
+
addRegexToken("m", match1to2, match1to2HasZero);
|
|
3297
3529
|
addRegexToken("mm", match1to2, match2);
|
|
3298
3530
|
addParseToken(["m", "mm"], MINUTE);
|
|
3299
3531
|
var getSetMinute = makeGetSet("Minutes", false);
|
|
3300
3532
|
addFormatToken("s", ["ss", 2], 0, "second");
|
|
3301
|
-
|
|
3302
|
-
addUnitPriority("second", 15);
|
|
3303
|
-
addRegexToken("s", match1to2);
|
|
3533
|
+
addRegexToken("s", match1to2, match1to2HasZero);
|
|
3304
3534
|
addRegexToken("ss", match1to2, match2);
|
|
3305
3535
|
addParseToken(["s", "ss"], SECOND);
|
|
3306
3536
|
var getSetSecond = makeGetSet("Seconds", false);
|
|
@@ -3329,8 +3559,6 @@ addFormatToken(0, ["SSSSSSSS", 8], 0, function() {
|
|
|
3329
3559
|
addFormatToken(0, ["SSSSSSSSS", 9], 0, function() {
|
|
3330
3560
|
return this.millisecond() * 1e6;
|
|
3331
3561
|
});
|
|
3332
|
-
addUnitAlias("millisecond", "ms");
|
|
3333
|
-
addUnitPriority("millisecond", 16);
|
|
3334
3562
|
addRegexToken("S", match1to3, match1);
|
|
3335
3563
|
addRegexToken("SS", match1to3, match2);
|
|
3336
3564
|
addRegexToken("SSS", match1to3, match3);
|
|
@@ -3353,105 +3581,105 @@ function getZoneAbbr() {
|
|
|
3353
3581
|
function getZoneName() {
|
|
3354
3582
|
return this._isUTC ? "Coordinated Universal Time" : "";
|
|
3355
3583
|
}
|
|
3356
|
-
var proto = Moment.prototype;
|
|
3357
|
-
proto.add = add;
|
|
3358
|
-
proto.calendar = calendar
|
|
3359
|
-
proto.clone = clone;
|
|
3360
|
-
proto.diff = diff;
|
|
3361
|
-
proto.endOf = endOf;
|
|
3362
|
-
proto.format = format;
|
|
3363
|
-
proto.from = from;
|
|
3364
|
-
proto.fromNow = fromNow;
|
|
3365
|
-
proto.to = to;
|
|
3366
|
-
proto.toNow = toNow;
|
|
3367
|
-
proto.get = stringGet;
|
|
3368
|
-
proto.invalidAt = invalidAt;
|
|
3369
|
-
proto.isAfter = isAfter;
|
|
3370
|
-
proto.isBefore = isBefore;
|
|
3371
|
-
proto.isBetween = isBetween;
|
|
3372
|
-
proto.isSame = isSame;
|
|
3373
|
-
proto.isSameOrAfter = isSameOrAfter;
|
|
3374
|
-
proto.isSameOrBefore = isSameOrBefore;
|
|
3375
|
-
proto.isValid = isValid
|
|
3376
|
-
proto.lang = lang;
|
|
3377
|
-
proto.locale = locale;
|
|
3378
|
-
proto.localeData = localeData;
|
|
3379
|
-
proto.max = prototypeMax;
|
|
3380
|
-
proto.min = prototypeMin;
|
|
3381
|
-
proto.parsingFlags = parsingFlags;
|
|
3382
|
-
proto.set = stringSet;
|
|
3383
|
-
proto.startOf = startOf;
|
|
3384
|
-
proto.subtract = subtract;
|
|
3385
|
-
proto.toArray = toArray;
|
|
3386
|
-
proto.toObject = toObject;
|
|
3387
|
-
proto.toDate = toDate;
|
|
3388
|
-
proto.toISOString = toISOString;
|
|
3389
|
-
proto.inspect = inspect;
|
|
3584
|
+
var proto$2 = Moment.prototype;
|
|
3585
|
+
proto$2.add = add$1;
|
|
3586
|
+
proto$2.calendar = calendar;
|
|
3587
|
+
proto$2.clone = clone$1;
|
|
3588
|
+
proto$2.diff = diff;
|
|
3589
|
+
proto$2.endOf = endOf;
|
|
3590
|
+
proto$2.format = format;
|
|
3591
|
+
proto$2.from = from;
|
|
3592
|
+
proto$2.fromNow = fromNow;
|
|
3593
|
+
proto$2.to = to;
|
|
3594
|
+
proto$2.toNow = toNow;
|
|
3595
|
+
proto$2.get = stringGet;
|
|
3596
|
+
proto$2.invalidAt = invalidAt;
|
|
3597
|
+
proto$2.isAfter = isAfter;
|
|
3598
|
+
proto$2.isBefore = isBefore;
|
|
3599
|
+
proto$2.isBetween = isBetween;
|
|
3600
|
+
proto$2.isSame = isSame;
|
|
3601
|
+
proto$2.isSameOrAfter = isSameOrAfter;
|
|
3602
|
+
proto$2.isSameOrBefore = isSameOrBefore;
|
|
3603
|
+
proto$2.isValid = isValid;
|
|
3604
|
+
proto$2.lang = lang;
|
|
3605
|
+
proto$2.locale = locale;
|
|
3606
|
+
proto$2.localeData = localeData;
|
|
3607
|
+
proto$2.max = prototypeMax;
|
|
3608
|
+
proto$2.min = prototypeMin;
|
|
3609
|
+
proto$2.parsingFlags = parsingFlags;
|
|
3610
|
+
proto$2.set = stringSet;
|
|
3611
|
+
proto$2.startOf = startOf;
|
|
3612
|
+
proto$2.subtract = subtract$1;
|
|
3613
|
+
proto$2.toArray = toArray;
|
|
3614
|
+
proto$2.toObject = toObject;
|
|
3615
|
+
proto$2.toDate = toDate;
|
|
3616
|
+
proto$2.toISOString = toISOString$1;
|
|
3617
|
+
proto$2.inspect = inspect;
|
|
3390
3618
|
if (typeof Symbol !== "undefined" && Symbol.for != null) {
|
|
3391
|
-
proto[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
3619
|
+
proto$2[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
3392
3620
|
return "Moment<" + this.format() + ">";
|
|
3393
3621
|
};
|
|
3394
3622
|
}
|
|
3395
|
-
proto.toJSON = toJSON;
|
|
3396
|
-
proto.toString = toString;
|
|
3397
|
-
proto.unix = unix;
|
|
3398
|
-
proto.valueOf = valueOf;
|
|
3399
|
-
proto.creationData = creationData;
|
|
3400
|
-
proto.eraName = getEraName;
|
|
3401
|
-
proto.eraNarrow = getEraNarrow;
|
|
3402
|
-
proto.eraAbbr = getEraAbbr;
|
|
3403
|
-
proto.eraYear = getEraYear;
|
|
3404
|
-
proto.year = getSetYear;
|
|
3405
|
-
proto.isLeapYear = getIsLeapYear;
|
|
3406
|
-
proto.weekYear = getSetWeekYear;
|
|
3407
|
-
proto.isoWeekYear = getSetISOWeekYear;
|
|
3408
|
-
proto.quarter = proto.quarters = getSetQuarter;
|
|
3409
|
-
proto.month = getSetMonth;
|
|
3410
|
-
proto.daysInMonth = getDaysInMonth;
|
|
3411
|
-
proto.week = proto.weeks = getSetWeek;
|
|
3412
|
-
proto.isoWeek = proto.isoWeeks = getSetISOWeek;
|
|
3413
|
-
proto.weeksInYear = getWeeksInYear;
|
|
3414
|
-
proto.weeksInWeekYear = getWeeksInWeekYear;
|
|
3415
|
-
proto.isoWeeksInYear = getISOWeeksInYear;
|
|
3416
|
-
proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
|
|
3417
|
-
proto.date = getSetDayOfMonth;
|
|
3418
|
-
proto.day = proto.days = getSetDayOfWeek;
|
|
3419
|
-
proto.weekday = getSetLocaleDayOfWeek;
|
|
3420
|
-
proto.isoWeekday = getSetISODayOfWeek;
|
|
3421
|
-
proto.dayOfYear = getSetDayOfYear;
|
|
3422
|
-
proto.hour = proto.hours = getSetHour;
|
|
3423
|
-
proto.minute = proto.minutes = getSetMinute;
|
|
3424
|
-
proto.second = proto.seconds = getSetSecond;
|
|
3425
|
-
proto.millisecond = proto.milliseconds = getSetMillisecond;
|
|
3426
|
-
proto.utcOffset = getSetOffset;
|
|
3427
|
-
proto.utc = setOffsetToUTC;
|
|
3428
|
-
proto.local = setOffsetToLocal;
|
|
3429
|
-
proto.parseZone = setOffsetToParsedOffset;
|
|
3430
|
-
proto.hasAlignedHourOffset = hasAlignedHourOffset;
|
|
3431
|
-
proto.isDST = isDaylightSavingTime;
|
|
3432
|
-
proto.isLocal = isLocal;
|
|
3433
|
-
proto.isUtcOffset = isUtcOffset;
|
|
3434
|
-
proto.isUtc = isUtc;
|
|
3435
|
-
proto.isUTC = isUtc;
|
|
3436
|
-
proto.zoneAbbr = getZoneAbbr;
|
|
3437
|
-
proto.zoneName = getZoneName;
|
|
3438
|
-
proto.dates = deprecate(
|
|
3623
|
+
proto$2.toJSON = toJSON;
|
|
3624
|
+
proto$2.toString = toString;
|
|
3625
|
+
proto$2.unix = unix;
|
|
3626
|
+
proto$2.valueOf = valueOf$1;
|
|
3627
|
+
proto$2.creationData = creationData;
|
|
3628
|
+
proto$2.eraName = getEraName;
|
|
3629
|
+
proto$2.eraNarrow = getEraNarrow;
|
|
3630
|
+
proto$2.eraAbbr = getEraAbbr;
|
|
3631
|
+
proto$2.eraYear = getEraYear;
|
|
3632
|
+
proto$2.year = getSetYear;
|
|
3633
|
+
proto$2.isLeapYear = getIsLeapYear;
|
|
3634
|
+
proto$2.weekYear = getSetWeekYear;
|
|
3635
|
+
proto$2.isoWeekYear = getSetISOWeekYear;
|
|
3636
|
+
proto$2.quarter = proto$2.quarters = getSetQuarter;
|
|
3637
|
+
proto$2.month = getSetMonth;
|
|
3638
|
+
proto$2.daysInMonth = getDaysInMonth;
|
|
3639
|
+
proto$2.week = proto$2.weeks = getSetWeek;
|
|
3640
|
+
proto$2.isoWeek = proto$2.isoWeeks = getSetISOWeek;
|
|
3641
|
+
proto$2.weeksInYear = getWeeksInYear;
|
|
3642
|
+
proto$2.weeksInWeekYear = getWeeksInWeekYear;
|
|
3643
|
+
proto$2.isoWeeksInYear = getISOWeeksInYear;
|
|
3644
|
+
proto$2.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
|
|
3645
|
+
proto$2.date = getSetDayOfMonth;
|
|
3646
|
+
proto$2.day = proto$2.days = getSetDayOfWeek;
|
|
3647
|
+
proto$2.weekday = getSetLocaleDayOfWeek;
|
|
3648
|
+
proto$2.isoWeekday = getSetISODayOfWeek;
|
|
3649
|
+
proto$2.dayOfYear = getSetDayOfYear;
|
|
3650
|
+
proto$2.hour = proto$2.hours = getSetHour;
|
|
3651
|
+
proto$2.minute = proto$2.minutes = getSetMinute;
|
|
3652
|
+
proto$2.second = proto$2.seconds = getSetSecond;
|
|
3653
|
+
proto$2.millisecond = proto$2.milliseconds = getSetMillisecond;
|
|
3654
|
+
proto$2.utcOffset = getSetOffset;
|
|
3655
|
+
proto$2.utc = setOffsetToUTC;
|
|
3656
|
+
proto$2.local = setOffsetToLocal;
|
|
3657
|
+
proto$2.parseZone = setOffsetToParsedOffset;
|
|
3658
|
+
proto$2.hasAlignedHourOffset = hasAlignedHourOffset;
|
|
3659
|
+
proto$2.isDST = isDaylightSavingTime;
|
|
3660
|
+
proto$2.isLocal = isLocal;
|
|
3661
|
+
proto$2.isUtcOffset = isUtcOffset;
|
|
3662
|
+
proto$2.isUtc = isUtc;
|
|
3663
|
+
proto$2.isUTC = isUtc;
|
|
3664
|
+
proto$2.zoneAbbr = getZoneAbbr;
|
|
3665
|
+
proto$2.zoneName = getZoneName;
|
|
3666
|
+
proto$2.dates = deprecate(
|
|
3439
3667
|
"dates accessor is deprecated. Use date instead.",
|
|
3440
3668
|
getSetDayOfMonth
|
|
3441
3669
|
);
|
|
3442
|
-
proto.months = deprecate(
|
|
3670
|
+
proto$2.months = deprecate(
|
|
3443
3671
|
"months accessor is deprecated. Use month instead",
|
|
3444
3672
|
getSetMonth
|
|
3445
3673
|
);
|
|
3446
|
-
proto.years = deprecate(
|
|
3674
|
+
proto$2.years = deprecate(
|
|
3447
3675
|
"years accessor is deprecated. Use year instead",
|
|
3448
3676
|
getSetYear
|
|
3449
3677
|
);
|
|
3450
|
-
proto.zone = deprecate(
|
|
3678
|
+
proto$2.zone = deprecate(
|
|
3451
3679
|
"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
|
|
3452
3680
|
getSetZone
|
|
3453
3681
|
);
|
|
3454
|
-
proto.isDSTShifted = deprecate(
|
|
3682
|
+
proto$2.isDSTShifted = deprecate(
|
|
3455
3683
|
"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
|
|
3456
3684
|
isDaylightSavingTimeShifted
|
|
3457
3685
|
);
|
|
@@ -3465,13 +3693,13 @@ function preParsePostFormat(string) {
|
|
|
3465
3693
|
return string;
|
|
3466
3694
|
}
|
|
3467
3695
|
var proto$1 = Locale.prototype;
|
|
3468
|
-
proto$1.calendar = calendar;
|
|
3696
|
+
proto$1.calendar = calendar$1;
|
|
3469
3697
|
proto$1.longDateFormat = longDateFormat;
|
|
3470
3698
|
proto$1.invalidDate = invalidDate;
|
|
3471
3699
|
proto$1.ordinal = ordinal;
|
|
3472
3700
|
proto$1.preparse = preParsePostFormat;
|
|
3473
3701
|
proto$1.postformat = preParsePostFormat;
|
|
3474
|
-
proto$1.relativeTime = relativeTime;
|
|
3702
|
+
proto$1.relativeTime = relativeTime$1;
|
|
3475
3703
|
proto$1.pastFuture = pastFuture;
|
|
3476
3704
|
proto$1.set = set;
|
|
3477
3705
|
proto$1.eras = localeEras;
|
|
@@ -3591,7 +3819,7 @@ hooks.langData = deprecate(
|
|
|
3591
3819
|
getLocale
|
|
3592
3820
|
);
|
|
3593
3821
|
var mathAbs = Math.abs;
|
|
3594
|
-
function abs() {
|
|
3822
|
+
function abs$1() {
|
|
3595
3823
|
var data = this._data;
|
|
3596
3824
|
this._milliseconds = mathAbs(this._milliseconds);
|
|
3597
3825
|
this._days = mathAbs(this._days);
|
|
@@ -3604,18 +3832,18 @@ function abs() {
|
|
|
3604
3832
|
data.years = mathAbs(data.years);
|
|
3605
3833
|
return this;
|
|
3606
3834
|
}
|
|
3607
|
-
function addSubtract
|
|
3835
|
+
function addSubtract(duration, input, value, direction) {
|
|
3608
3836
|
var other = createDuration(input, value);
|
|
3609
3837
|
duration._milliseconds += direction * other._milliseconds;
|
|
3610
3838
|
duration._days += direction * other._days;
|
|
3611
3839
|
duration._months += direction * other._months;
|
|
3612
3840
|
return duration._bubble();
|
|
3613
3841
|
}
|
|
3614
|
-
function add
|
|
3615
|
-
return addSubtract
|
|
3842
|
+
function add(input, value) {
|
|
3843
|
+
return addSubtract(this, input, value, 1);
|
|
3616
3844
|
}
|
|
3617
|
-
function subtract
|
|
3618
|
-
return addSubtract
|
|
3845
|
+
function subtract(input, value) {
|
|
3846
|
+
return addSubtract(this, input, value, -1);
|
|
3619
3847
|
}
|
|
3620
3848
|
function absCeil(number) {
|
|
3621
3849
|
if (number < 0) {
|
|
@@ -3692,22 +3920,16 @@ function as(units) {
|
|
|
3692
3920
|
}
|
|
3693
3921
|
}
|
|
3694
3922
|
}
|
|
3695
|
-
function valueOf$1() {
|
|
3696
|
-
if (!this.isValid()) {
|
|
3697
|
-
return NaN;
|
|
3698
|
-
}
|
|
3699
|
-
return this._milliseconds + this._days * 864e5 + this._months % 12 * 2592e6 + toInt(this._months / 12) * 31536e6;
|
|
3700
|
-
}
|
|
3701
3923
|
function makeAs(alias) {
|
|
3702
3924
|
return function() {
|
|
3703
3925
|
return this.as(alias);
|
|
3704
3926
|
};
|
|
3705
3927
|
}
|
|
3706
|
-
var asMilliseconds = makeAs("ms"), asSeconds = makeAs("s"), asMinutes = makeAs("m"), asHours = makeAs("h"), asDays = makeAs("d"), asWeeks = makeAs("w"), asMonths = makeAs("M"), asQuarters = makeAs("Q"), asYears = makeAs("y");
|
|
3707
|
-
function clone
|
|
3928
|
+
var asMilliseconds = makeAs("ms"), asSeconds = makeAs("s"), asMinutes = makeAs("m"), asHours = makeAs("h"), asDays = makeAs("d"), asWeeks = makeAs("w"), asMonths = makeAs("M"), asQuarters = makeAs("Q"), asYears = makeAs("y"), valueOf = asMilliseconds;
|
|
3929
|
+
function clone() {
|
|
3708
3930
|
return createDuration(this);
|
|
3709
3931
|
}
|
|
3710
|
-
function get
|
|
3932
|
+
function get(units) {
|
|
3711
3933
|
units = normalizeUnits(units);
|
|
3712
3934
|
return this.isValid() ? this[units + "s"]() : NaN;
|
|
3713
3935
|
}
|
|
@@ -3737,9 +3959,15 @@ var round = Math.round, thresholds = {
|
|
|
3737
3959
|
// months to year
|
|
3738
3960
|
};
|
|
3739
3961
|
function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale2) {
|
|
3740
|
-
return
|
|
3962
|
+
return relativeTimeWithoutPostformat.call(
|
|
3963
|
+
locale2,
|
|
3964
|
+
number || 1,
|
|
3965
|
+
!!withoutSuffix,
|
|
3966
|
+
string,
|
|
3967
|
+
isFuture
|
|
3968
|
+
);
|
|
3741
3969
|
}
|
|
3742
|
-
function relativeTime
|
|
3970
|
+
function relativeTime(posNegDuration, withoutSuffix, thresholds2, locale2) {
|
|
3743
3971
|
var duration = createDuration(posNegDuration).abs(), seconds2 = round(duration.as("s")), minutes2 = round(duration.as("m")), hours2 = round(duration.as("h")), days2 = round(duration.as("d")), months2 = round(duration.as("M")), weeks2 = round(duration.as("w")), years2 = round(duration.as("y")), a = seconds2 <= thresholds2.ss && ["s", seconds2] || seconds2 < thresholds2.s && ["ss", seconds2] || minutes2 <= 1 && ["m"] || minutes2 < thresholds2.m && ["mm", minutes2] || hours2 <= 1 && ["h"] || hours2 < thresholds2.h && ["hh", hours2] || days2 <= 1 && ["d"] || days2 < thresholds2.d && ["dd", days2];
|
|
3744
3972
|
if (thresholds2.w != null) {
|
|
3745
3973
|
a = a || weeks2 <= 1 && ["w"] || weeks2 < thresholds2.w && ["ww", weeks2];
|
|
@@ -3786,27 +4014,27 @@ function humanize(argWithSuffix, argThresholds) {
|
|
|
3786
4014
|
withSuffix = argWithSuffix;
|
|
3787
4015
|
}
|
|
3788
4016
|
if (typeof argThresholds === "object") {
|
|
3789
|
-
th =
|
|
4017
|
+
th = extend(extend({}, thresholds), argThresholds || {});
|
|
3790
4018
|
if (argThresholds.s != null && argThresholds.ss == null) {
|
|
3791
4019
|
th.ss = argThresholds.s - 1;
|
|
3792
4020
|
}
|
|
3793
4021
|
}
|
|
3794
4022
|
locale2 = this.localeData();
|
|
3795
|
-
output = relativeTime
|
|
4023
|
+
output = relativeTime(this, !withSuffix, th, locale2);
|
|
3796
4024
|
if (withSuffix) {
|
|
3797
|
-
output =
|
|
4025
|
+
output = pastFutureWithoutPostformat.call(locale2, +this, output);
|
|
3798
4026
|
}
|
|
3799
4027
|
return locale2.postformat(output);
|
|
3800
4028
|
}
|
|
3801
|
-
var abs
|
|
4029
|
+
var abs = Math.abs;
|
|
3802
4030
|
function sign(x) {
|
|
3803
4031
|
return (x > 0) - (x < 0) || +x;
|
|
3804
4032
|
}
|
|
3805
|
-
function toISOString
|
|
4033
|
+
function toISOString() {
|
|
3806
4034
|
if (!this.isValid()) {
|
|
3807
4035
|
return this.localeData().invalidDate();
|
|
3808
4036
|
}
|
|
3809
|
-
var seconds2 = abs
|
|
4037
|
+
var seconds2 = abs(this._milliseconds) / 1e3, days2 = abs(this._days), months2 = abs(this._months), minutes2, hours2, years2, s, total = this.asSeconds(), totalSign, ymSign, daysSign, hmsSign;
|
|
3810
4038
|
if (!total) {
|
|
3811
4039
|
return "P0D";
|
|
3812
4040
|
}
|
|
@@ -3823,44 +4051,44 @@ function toISOString$1() {
|
|
|
3823
4051
|
hmsSign = sign(this._milliseconds) !== sign(total) ? "-" : "";
|
|
3824
4052
|
return totalSign + "P" + (years2 ? ymSign + years2 + "Y" : "") + (months2 ? ymSign + months2 + "M" : "") + (days2 ? daysSign + days2 + "D" : "") + (hours2 || minutes2 || seconds2 ? "T" : "") + (hours2 ? hmsSign + hours2 + "H" : "") + (minutes2 ? hmsSign + minutes2 + "M" : "") + (seconds2 ? hmsSign + s + "S" : "");
|
|
3825
4053
|
}
|
|
3826
|
-
var proto
|
|
3827
|
-
proto
|
|
3828
|
-
proto
|
|
3829
|
-
proto
|
|
3830
|
-
proto
|
|
3831
|
-
proto
|
|
3832
|
-
proto
|
|
3833
|
-
proto
|
|
3834
|
-
proto
|
|
3835
|
-
proto
|
|
3836
|
-
proto
|
|
3837
|
-
proto
|
|
3838
|
-
proto
|
|
3839
|
-
proto
|
|
3840
|
-
proto
|
|
3841
|
-
proto
|
|
3842
|
-
proto
|
|
3843
|
-
proto
|
|
3844
|
-
proto
|
|
3845
|
-
proto
|
|
3846
|
-
proto
|
|
3847
|
-
proto
|
|
3848
|
-
proto
|
|
3849
|
-
proto
|
|
3850
|
-
proto
|
|
3851
|
-
proto
|
|
3852
|
-
proto
|
|
3853
|
-
proto
|
|
3854
|
-
proto
|
|
3855
|
-
proto
|
|
3856
|
-
proto
|
|
3857
|
-
proto
|
|
3858
|
-
proto
|
|
3859
|
-
proto
|
|
4054
|
+
var proto = Duration.prototype;
|
|
4055
|
+
proto.isValid = isValid$1;
|
|
4056
|
+
proto.abs = abs$1;
|
|
4057
|
+
proto.add = add;
|
|
4058
|
+
proto.subtract = subtract;
|
|
4059
|
+
proto.as = as;
|
|
4060
|
+
proto.asMilliseconds = asMilliseconds;
|
|
4061
|
+
proto.asSeconds = asSeconds;
|
|
4062
|
+
proto.asMinutes = asMinutes;
|
|
4063
|
+
proto.asHours = asHours;
|
|
4064
|
+
proto.asDays = asDays;
|
|
4065
|
+
proto.asWeeks = asWeeks;
|
|
4066
|
+
proto.asMonths = asMonths;
|
|
4067
|
+
proto.asQuarters = asQuarters;
|
|
4068
|
+
proto.asYears = asYears;
|
|
4069
|
+
proto.valueOf = valueOf;
|
|
4070
|
+
proto._bubble = bubble;
|
|
4071
|
+
proto.clone = clone;
|
|
4072
|
+
proto.get = get;
|
|
4073
|
+
proto.milliseconds = milliseconds;
|
|
4074
|
+
proto.seconds = seconds;
|
|
4075
|
+
proto.minutes = minutes;
|
|
4076
|
+
proto.hours = hours;
|
|
4077
|
+
proto.days = days;
|
|
4078
|
+
proto.weeks = weeks;
|
|
4079
|
+
proto.months = months;
|
|
4080
|
+
proto.years = years;
|
|
4081
|
+
proto.humanize = humanize;
|
|
4082
|
+
proto.toISOString = toISOString;
|
|
4083
|
+
proto.toString = toISOString;
|
|
4084
|
+
proto.toJSON = toISOString;
|
|
4085
|
+
proto.locale = locale;
|
|
4086
|
+
proto.localeData = localeData;
|
|
4087
|
+
proto.toIsoString = deprecate(
|
|
3860
4088
|
"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
|
|
3861
|
-
toISOString
|
|
4089
|
+
toISOString
|
|
3862
4090
|
);
|
|
3863
|
-
proto
|
|
4091
|
+
proto.lang = lang;
|
|
3864
4092
|
addFormatToken("X", 0, 0, "unix");
|
|
3865
4093
|
addFormatToken("x", 0, 0, "valueOf");
|
|
3866
4094
|
addRegexToken("x", matchSigned);
|
|
@@ -3872,9 +4100,9 @@ addParseToken("x", function(input, array, config) {
|
|
|
3872
4100
|
config._d = new Date(toInt(input));
|
|
3873
4101
|
});
|
|
3874
4102
|
//! moment.js
|
|
3875
|
-
hooks.version = "2.
|
|
4103
|
+
hooks.version = "2.31.0";
|
|
3876
4104
|
setHookCallback(createLocal);
|
|
3877
|
-
hooks.fn = proto;
|
|
4105
|
+
hooks.fn = proto$2;
|
|
3878
4106
|
hooks.min = min;
|
|
3879
4107
|
hooks.max = max;
|
|
3880
4108
|
hooks.now = now;
|
|
@@ -3883,7 +4111,7 @@ hooks.unix = createUnix;
|
|
|
3883
4111
|
hooks.months = listMonths;
|
|
3884
4112
|
hooks.isDate = isDate;
|
|
3885
4113
|
hooks.locale = getSetGlobalLocale;
|
|
3886
|
-
hooks.invalid = createInvalid;
|
|
4114
|
+
hooks.invalid = createInvalid$1;
|
|
3887
4115
|
hooks.duration = createDuration;
|
|
3888
4116
|
hooks.isMoment = isMoment;
|
|
3889
4117
|
hooks.weekdays = listWeekdays;
|
|
@@ -3900,7 +4128,7 @@ hooks.normalizeUnits = normalizeUnits;
|
|
|
3900
4128
|
hooks.relativeTimeRounding = getSetRelativeTimeRounding;
|
|
3901
4129
|
hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
|
|
3902
4130
|
hooks.calendarFormat = getCalendarFormat;
|
|
3903
|
-
hooks.prototype = proto;
|
|
4131
|
+
hooks.prototype = proto$2;
|
|
3904
4132
|
hooks.HTML5_FMT = {
|
|
3905
4133
|
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
3906
4134
|
// <input type="datetime-local" />
|