@mmb-digital/ds-lilly 1.0.49 → 1.0.50
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/cjs/_virtual/index2.js +1 -1
- package/cjs/_virtual/index3.js +1 -1
- package/cjs/components/Components/ActionBar/ActionBar.js +1 -1
- package/cjs/components/Components/Avatar/Avatar.js +1 -1
- package/cjs/components/Components/Avatar/Avatar.js.map +1 -1
- package/cjs/components/Components/Avatar/_parts_/Handshake.d.ts +4 -0
- package/cjs/components/Components/Avatar/_parts_/Handshake.d.ts.map +1 -0
- package/cjs/components/Components/Avatar/_parts_/Handshake.js +2 -0
- package/cjs/components/Components/Avatar/_parts_/Handshake.js.map +1 -0
- package/cjs/components/Components/Avatar/_parts_/HandshakeFill.d.ts +4 -0
- package/cjs/components/Components/Avatar/_parts_/HandshakeFill.d.ts.map +1 -0
- package/cjs/components/Components/Avatar/_parts_/HandshakeFill.js +2 -0
- package/cjs/components/Components/Avatar/_parts_/HandshakeFill.js.map +1 -0
- package/cjs/components/Components/Avatar/_parts_/index.d.ts +17 -15
- package/cjs/components/Components/Avatar/_parts_/index.d.ts.map +1 -1
- package/cjs/components/Components/Avatar/_parts_/index.js +1 -1
- package/cjs/components/Components/Dropdown/Dropdown.js +1 -1
- package/cjs/components/Components/IconList/IconListItem.js +1 -1
- package/cjs/components/Components/NotificationCard/NotificationCardHeader.js +1 -1
- package/cjs/components/Components/ProductCard/ProductCardHeader.js +1 -1
- package/cjs/components/Components/Tile/Tile.js +1 -1
- package/cjs/components/Components/UserAuth/UserAuth.js +1 -1
- package/cjs/components/Components/{DataTable → dataTable}/DataTable.d.ts.map +1 -1
- package/cjs/components/Components/{DataTable → dataTable}/DataTable.js.map +1 -1
- package/cjs/components/Components/{DataTable → dataTable}/DataTableDivider.d.ts.map +1 -1
- package/cjs/components/Components/{DataTable → dataTable}/DataTableDivider.js.map +1 -1
- package/cjs/components/Components/{DataTable → dataTable}/DataTableItem.d.ts.map +1 -1
- package/cjs/components/Components/{DataTable → dataTable}/DataTableItem.js.map +1 -1
- package/cjs/components/Components/{DataTable → dataTable}/index.d.ts.map +1 -1
- package/cjs/components/Components/index.d.ts +1 -1
- package/cjs/components/Components/index.js +1 -1
- package/cjs/components/Form/Autocomplete/Autocomplete.js +1 -1
- package/cjs/components/Form/Checkbox/CheckboxItem.js +1 -1
- package/cjs/components/Form/DatePicker/DatePicker.js +1 -1
- package/cjs/components/Form/FileUpload/FileUpload.js +1 -1
- package/cjs/components/Form/FileUpload/_parts_/FileList.js +1 -1
- package/cjs/components/Form/Input/Input.js +1 -1
- package/cjs/components/Form/Input/_elements_/ShowPasswordIcon.js +1 -1
- package/cjs/components/Form/Label2/Label2.js +1 -1
- package/cjs/components/Form/Multiselect/Multiselect.js +1 -1
- package/cjs/components/Form/PersonCount/PersonCount.js +1 -1
- package/cjs/components/Form/Radio/Radio.js +1 -1
- package/cjs/components/Form/Select/Select.js +1 -1
- package/cjs/components/Form/Select/_elements_/Select2CategorisedOptions.js +1 -1
- package/cjs/components/Form/Select/_elements_/Select2Options.js +1 -1
- package/cjs/components/Form/Select/_elements_/SelectedOption.js +1 -1
- package/cjs/components/Form/Slider/Slider.js +1 -1
- package/cjs/components/Form/Toggle/Toggle.js +1 -1
- package/cjs/components/Graphs/ChartLegend/_elements_/ChartLegendRow.js +1 -1
- package/cjs/components/Layout/MobilePanel/_elements_/Header.js +1 -1
- package/cjs/components/Navigation/Menu/_elements_/MenuItem.js +1 -1
- package/cjs/components/Navigation/Stepper/_parts_/Step.js +1 -1
- package/cjs/components/Navigation/Tabs/_elements_/TabsBar.js +1 -1
- package/cjs/components/Typography/Amount/Amount.js +1 -1
- package/cjs/components/Typography/Title/Title.js +1 -1
- package/cjs/ds-lilly.css +3 -3
- package/cjs/ext/date-fns/_lib/format/formatters.js +1 -1
- package/cjs/ext/date-fns/_lib/format/formatters.js.map +1 -1
- package/cjs/ext/date-fns/_lib/format/formatters2.js +1 -1
- package/cjs/ext/date-fns/_lib/format/formatters2.js.map +1 -1
- package/cjs/ext/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +1 -1
- package/cjs/ext/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -1
- package/cjs/ext/date-fns/_lib/getTimezoneOffsetInMilliseconds2.js +1 -1
- package/cjs/ext/date-fns/_lib/getTimezoneOffsetInMilliseconds2.js.map +1 -1
- package/cjs/ext/date-fns/add.js +1 -1
- package/cjs/ext/date-fns/add.js.map +1 -1
- package/cjs/ext/date-fns/addBusinessDays.js +1 -1
- package/cjs/ext/date-fns/addBusinessDays.js.map +1 -1
- package/cjs/ext/date-fns/addDays.js +1 -1
- package/cjs/ext/date-fns/addDays.js.map +1 -1
- package/cjs/ext/date-fns/addDays2.js +1 -1
- package/cjs/ext/date-fns/addDays2.js.map +1 -1
- package/cjs/ext/date-fns/addMilliseconds.js +1 -1
- package/cjs/ext/date-fns/addMilliseconds.js.map +1 -1
- package/cjs/ext/date-fns/addMonths.js +1 -1
- package/cjs/ext/date-fns/addMonths.js.map +1 -1
- package/cjs/ext/date-fns/addWeeks.js +1 -1
- package/cjs/ext/date-fns/addWeeks.js.map +1 -1
- package/cjs/ext/date-fns/areIntervalsOverlapping.js +1 -1
- package/cjs/ext/date-fns/areIntervalsOverlapping.js.map +1 -1
- package/cjs/ext/date-fns/closestIndexTo.js +1 -1
- package/cjs/ext/date-fns/closestIndexTo.js.map +1 -1
- package/cjs/ext/date-fns/closestTo.js +1 -1
- package/cjs/ext/date-fns/closestTo.js.map +1 -1
- package/cjs/ext/date-fns/compareAsc.js +1 -1
- package/cjs/ext/date-fns/compareAsc.js.map +1 -1
- package/cjs/ext/date-fns/compareDesc.js +1 -1
- package/cjs/ext/date-fns/compareDesc.js.map +1 -1
- package/cjs/ext/date-fns/differenceInBusinessDays.js +1 -1
- package/cjs/ext/date-fns/differenceInBusinessDays.js.map +1 -1
- package/cjs/ext/date-fns/differenceInCalendarDays.js +1 -1
- package/cjs/ext/date-fns/differenceInCalendarDays.js.map +1 -1
- package/cjs/ext/date-fns/differenceInCalendarDays2.js +1 -1
- package/cjs/ext/date-fns/differenceInCalendarDays2.js.map +1 -1
- package/cjs/ext/date-fns/differenceInCalendarMonths.js +1 -1
- package/cjs/ext/date-fns/differenceInCalendarMonths.js.map +1 -1
- package/cjs/ext/date-fns/differenceInCalendarQuarters.js +1 -1
- package/cjs/ext/date-fns/differenceInCalendarQuarters.js.map +1 -1
- package/cjs/ext/date-fns/differenceInCalendarWeeks.js +1 -1
- package/cjs/ext/date-fns/differenceInCalendarWeeks.js.map +1 -1
- package/cjs/ext/date-fns/differenceInCalendarYears.js +1 -1
- package/cjs/ext/date-fns/differenceInCalendarYears.js.map +1 -1
- package/cjs/ext/date-fns/differenceInDays.js +1 -1
- package/cjs/ext/date-fns/differenceInDays.js.map +1 -1
- package/cjs/ext/date-fns/differenceInISOWeekYears.js +1 -1
- package/cjs/ext/date-fns/differenceInISOWeekYears.js.map +1 -1
- package/cjs/ext/date-fns/differenceInMilliseconds.js +1 -1
- package/cjs/ext/date-fns/differenceInMilliseconds.js.map +1 -1
- package/cjs/ext/date-fns/differenceInMonths.js +1 -1
- package/cjs/ext/date-fns/differenceInMonths.js.map +1 -1
- package/cjs/ext/date-fns/differenceInYears.js +1 -1
- package/cjs/ext/date-fns/differenceInYears.js.map +1 -1
- package/cjs/ext/date-fns/eachDayOfInterval.js +1 -1
- package/cjs/ext/date-fns/eachDayOfInterval.js.map +1 -1
- package/cjs/ext/date-fns/eachDayOfInterval2.js +1 -1
- package/cjs/ext/date-fns/eachDayOfInterval2.js.map +1 -1
- package/cjs/ext/date-fns/eachHourOfInterval.js +1 -1
- package/cjs/ext/date-fns/eachHourOfInterval.js.map +1 -1
- package/cjs/ext/date-fns/eachMinuteOfInterval.js +1 -1
- package/cjs/ext/date-fns/eachMinuteOfInterval.js.map +1 -1
- package/cjs/ext/date-fns/eachMonthOfInterval.js +1 -1
- package/cjs/ext/date-fns/eachMonthOfInterval.js.map +1 -1
- package/cjs/ext/date-fns/eachMonthOfInterval2.js +1 -1
- package/cjs/ext/date-fns/eachMonthOfInterval2.js.map +1 -1
- package/cjs/ext/date-fns/eachQuarterOfInterval.js +1 -1
- package/cjs/ext/date-fns/eachQuarterOfInterval.js.map +1 -1
- package/cjs/ext/date-fns/eachWeekOfInterval.js +1 -1
- package/cjs/ext/date-fns/eachWeekOfInterval.js.map +1 -1
- package/cjs/ext/date-fns/eachWeekendOfYear.js +1 -1
- package/cjs/ext/date-fns/eachWeekendOfYear.js.map +1 -1
- package/cjs/ext/date-fns/eachYearOfInterval.js +1 -1
- package/cjs/ext/date-fns/eachYearOfInterval.js.map +1 -1
- package/cjs/ext/date-fns/endOfDay.js +1 -1
- package/cjs/ext/date-fns/endOfDay.js.map +1 -1
- package/cjs/ext/date-fns/endOfDecade.js +1 -1
- package/cjs/ext/date-fns/endOfDecade.js.map +1 -1
- package/cjs/ext/date-fns/endOfHour.js +1 -1
- package/cjs/ext/date-fns/endOfHour.js.map +1 -1
- package/cjs/ext/date-fns/endOfMinute.js +1 -1
- package/cjs/ext/date-fns/endOfMinute.js.map +1 -1
- package/cjs/ext/date-fns/endOfMonth.js +1 -1
- package/cjs/ext/date-fns/endOfMonth.js.map +1 -1
- package/cjs/ext/date-fns/endOfQuarter.js +1 -1
- package/cjs/ext/date-fns/endOfQuarter.js.map +1 -1
- package/cjs/ext/date-fns/endOfSecond.js +1 -1
- package/cjs/ext/date-fns/endOfSecond.js.map +1 -1
- package/cjs/ext/date-fns/endOfWeek.js +1 -1
- package/cjs/ext/date-fns/endOfWeek.js.map +1 -1
- package/cjs/ext/date-fns/endOfYear.js +1 -1
- package/cjs/ext/date-fns/endOfYear.js.map +1 -1
- package/cjs/ext/date-fns/format.js +1 -1
- package/cjs/ext/date-fns/format.js.map +1 -1
- package/cjs/ext/date-fns/format2.js +1 -1
- package/cjs/ext/date-fns/format2.js.map +1 -1
- package/cjs/ext/date-fns/formatDistance.js +1 -1
- package/cjs/ext/date-fns/formatDistance.js.map +1 -1
- package/cjs/ext/date-fns/formatDistanceStrict.js +1 -1
- package/cjs/ext/date-fns/formatDistanceStrict.js.map +1 -1
- package/cjs/ext/date-fns/formatISO.js +1 -1
- package/cjs/ext/date-fns/formatISO.js.map +1 -1
- package/cjs/ext/date-fns/formatISO9075.js +1 -1
- package/cjs/ext/date-fns/formatISO9075.js.map +1 -1
- package/cjs/ext/date-fns/formatRFC3339.js +1 -1
- package/cjs/ext/date-fns/formatRFC3339.js.map +1 -1
- package/cjs/ext/date-fns/formatRFC7231.js +1 -1
- package/cjs/ext/date-fns/formatRFC7231.js.map +1 -1
- package/cjs/ext/date-fns/formatRelative.js +1 -1
- package/cjs/ext/date-fns/formatRelative.js.map +1 -1
- package/cjs/ext/date-fns/fromUnixTime.js +1 -1
- package/cjs/ext/date-fns/fromUnixTime.js.map +1 -1
- package/cjs/ext/date-fns/getDate.js +1 -1
- package/cjs/ext/date-fns/getDate.js.map +1 -1
- package/cjs/ext/date-fns/getDay.js +1 -1
- package/cjs/ext/date-fns/getDay.js.map +1 -1
- package/cjs/ext/date-fns/getDayOfYear.js +1 -1
- package/cjs/ext/date-fns/getDayOfYear.js.map +1 -1
- package/cjs/ext/date-fns/getDayOfYear2.js +1 -1
- package/cjs/ext/date-fns/getDayOfYear2.js.map +1 -1
- package/cjs/ext/date-fns/getDaysInMonth.js +1 -1
- package/cjs/ext/date-fns/getDaysInMonth.js.map +1 -1
- package/cjs/ext/date-fns/getDaysInYear.js +1 -1
- package/cjs/ext/date-fns/getDaysInYear.js.map +1 -1
- package/cjs/ext/date-fns/getDecade.js +1 -1
- package/cjs/ext/date-fns/getDecade.js.map +1 -1
- package/cjs/ext/date-fns/getHours.js +1 -1
- package/cjs/ext/date-fns/getHours.js.map +1 -1
- package/cjs/ext/date-fns/getISODay.js +1 -1
- package/cjs/ext/date-fns/getISODay.js.map +1 -1
- package/cjs/ext/date-fns/getISODay2.js +1 -1
- package/cjs/ext/date-fns/getISODay2.js.map +1 -1
- package/cjs/ext/date-fns/getISOWeek.js +1 -1
- package/cjs/ext/date-fns/getISOWeek.js.map +1 -1
- package/cjs/ext/date-fns/getISOWeek2.js +1 -1
- package/cjs/ext/date-fns/getISOWeek2.js.map +1 -1
- package/cjs/ext/date-fns/getISOWeekYear.js +1 -1
- package/cjs/ext/date-fns/getISOWeekYear.js.map +1 -1
- package/cjs/ext/date-fns/getISOWeekYear2.js +1 -1
- package/cjs/ext/date-fns/getISOWeekYear2.js.map +1 -1
- package/cjs/ext/date-fns/getMilliseconds.js +1 -1
- package/cjs/ext/date-fns/getMilliseconds.js.map +1 -1
- package/cjs/ext/date-fns/getMinutes.js +1 -1
- package/cjs/ext/date-fns/getMinutes.js.map +1 -1
- package/cjs/ext/date-fns/getMonth.js +1 -1
- package/cjs/ext/date-fns/getMonth.js.map +1 -1
- package/cjs/ext/date-fns/getOverlappingDaysInIntervals.js +1 -1
- package/cjs/ext/date-fns/getOverlappingDaysInIntervals.js.map +1 -1
- package/cjs/ext/date-fns/getQuarter.js +1 -1
- package/cjs/ext/date-fns/getQuarter.js.map +1 -1
- package/cjs/ext/date-fns/getSeconds.js +1 -1
- package/cjs/ext/date-fns/getSeconds.js.map +1 -1
- package/cjs/ext/date-fns/getTime.js +1 -1
- package/cjs/ext/date-fns/getTime.js.map +1 -1
- package/cjs/ext/date-fns/getUnixTime.js +1 -1
- package/cjs/ext/date-fns/getUnixTime.js.map +1 -1
- package/cjs/ext/date-fns/getWeek.js +1 -1
- package/cjs/ext/date-fns/getWeek.js.map +1 -1
- package/cjs/ext/date-fns/getWeek2.js +1 -1
- package/cjs/ext/date-fns/getWeek2.js.map +1 -1
- package/cjs/ext/date-fns/getWeekYear.js +1 -1
- package/cjs/ext/date-fns/getWeekYear.js.map +1 -1
- package/cjs/ext/date-fns/getWeekYear2.js +1 -1
- package/cjs/ext/date-fns/getWeekYear2.js.map +1 -1
- package/cjs/ext/date-fns/getYear.js +1 -1
- package/cjs/ext/date-fns/getYear.js.map +1 -1
- package/cjs/ext/date-fns/index.js +1 -1
- package/cjs/ext/date-fns/index.js.map +1 -1
- package/cjs/ext/date-fns/interval.js +1 -1
- package/cjs/ext/date-fns/interval.js.map +1 -1
- package/cjs/ext/date-fns/intervalToDuration.js +1 -1
- package/cjs/ext/date-fns/intervalToDuration.js.map +1 -1
- package/cjs/ext/date-fns/intlFormat.js +1 -1
- package/cjs/ext/date-fns/intlFormat.js.map +1 -1
- package/cjs/ext/date-fns/intlFormatDistance.js +1 -1
- package/cjs/ext/date-fns/intlFormatDistance.js.map +1 -1
- package/cjs/ext/date-fns/isAfter.js +1 -1
- package/cjs/ext/date-fns/isAfter.js.map +1 -1
- package/cjs/ext/date-fns/isBefore.js +1 -1
- package/cjs/ext/date-fns/isBefore.js.map +1 -1
- package/cjs/ext/date-fns/isDate.js +1 -1
- package/cjs/ext/date-fns/isDate.js.map +1 -1
- package/cjs/ext/date-fns/isDate2.js +1 -1
- package/cjs/ext/date-fns/isDate2.js.map +1 -1
- package/cjs/ext/date-fns/isEqual.js +1 -1
- package/cjs/ext/date-fns/isEqual.js.map +1 -1
- package/cjs/ext/date-fns/isFirstDayOfMonth.js +1 -1
- package/cjs/ext/date-fns/isFirstDayOfMonth.js.map +1 -1
- package/cjs/ext/date-fns/isFriday.js +1 -1
- package/cjs/ext/date-fns/isFriday.js.map +1 -1
- package/cjs/ext/date-fns/isFuture.js +1 -1
- package/cjs/ext/date-fns/isFuture.js.map +1 -1
- package/cjs/ext/date-fns/isLastDayOfMonth.js +1 -1
- package/cjs/ext/date-fns/isLastDayOfMonth.js.map +1 -1
- package/cjs/ext/date-fns/isLeapYear.js +1 -1
- package/cjs/ext/date-fns/isLeapYear.js.map +1 -1
- package/cjs/ext/date-fns/isMonday.js +1 -1
- package/cjs/ext/date-fns/isMonday.js.map +1 -1
- package/cjs/ext/date-fns/isPast.js +1 -1
- package/cjs/ext/date-fns/isPast.js.map +1 -1
- package/cjs/ext/date-fns/isSameDay.js +1 -1
- package/cjs/ext/date-fns/isSameDay.js.map +1 -1
- package/cjs/ext/date-fns/isSameMonth.js +1 -1
- package/cjs/ext/date-fns/isSameMonth.js.map +1 -1
- package/cjs/ext/date-fns/isSameWeek.js +1 -1
- package/cjs/ext/date-fns/isSameWeek.js.map +1 -1
- package/cjs/ext/date-fns/isSameYear.js +1 -1
- package/cjs/ext/date-fns/isSameYear.js.map +1 -1
- package/cjs/ext/date-fns/isSaturday.js +1 -1
- package/cjs/ext/date-fns/isSaturday.js.map +1 -1
- package/cjs/ext/date-fns/isSunday.js +1 -1
- package/cjs/ext/date-fns/isSunday.js.map +1 -1
- package/cjs/ext/date-fns/isThursday.js +1 -1
- package/cjs/ext/date-fns/isThursday.js.map +1 -1
- package/cjs/ext/date-fns/isTomorrow.js +1 -1
- package/cjs/ext/date-fns/isTomorrow.js.map +1 -1
- package/cjs/ext/date-fns/isTuesday.js +1 -1
- package/cjs/ext/date-fns/isTuesday.js.map +1 -1
- package/cjs/ext/date-fns/isValid.js +1 -1
- package/cjs/ext/date-fns/isValid.js.map +1 -1
- package/cjs/ext/date-fns/isValid2.js +1 -1
- package/cjs/ext/date-fns/isValid2.js.map +1 -1
- package/cjs/ext/date-fns/isWednesday.js +1 -1
- package/cjs/ext/date-fns/isWednesday.js.map +1 -1
- package/cjs/ext/date-fns/isWeekend.js +1 -1
- package/cjs/ext/date-fns/isWeekend.js.map +1 -1
- package/cjs/ext/date-fns/isWithinInterval.js +1 -1
- package/cjs/ext/date-fns/isWithinInterval.js.map +1 -1
- package/cjs/ext/date-fns/lastDayOfDecade.js +1 -1
- package/cjs/ext/date-fns/lastDayOfDecade.js.map +1 -1
- package/cjs/ext/date-fns/lastDayOfMonth.js +1 -1
- package/cjs/ext/date-fns/lastDayOfMonth.js.map +1 -1
- package/cjs/ext/date-fns/lastDayOfQuarter.js +1 -1
- package/cjs/ext/date-fns/lastDayOfQuarter.js.map +1 -1
- package/cjs/ext/date-fns/lastDayOfWeek.js +1 -1
- package/cjs/ext/date-fns/lastDayOfWeek.js.map +1 -1
- package/cjs/ext/date-fns/lastDayOfYear.js +1 -1
- package/cjs/ext/date-fns/lastDayOfYear.js.map +1 -1
- package/cjs/ext/date-fns/lightFormat.js +1 -1
- package/cjs/ext/date-fns/lightFormat.js.map +1 -1
- package/cjs/ext/date-fns/max.js +1 -1
- package/cjs/ext/date-fns/max.js.map +1 -1
- package/cjs/ext/date-fns/min.js +1 -1
- package/cjs/ext/date-fns/min.js.map +1 -1
- package/cjs/ext/date-fns/nextDay.js +1 -1
- package/cjs/ext/date-fns/nextDay.js.map +1 -1
- package/cjs/ext/date-fns/parse/_lib/parsers/LocalWeekParser.js +1 -1
- package/cjs/ext/date-fns/parse/_lib/parsers/LocalWeekParser.js.map +1 -1
- package/cjs/ext/date-fns/parse/_lib/parsers/LocalWeekParser2.js +1 -1
- package/cjs/ext/date-fns/parse/_lib/parsers/LocalWeekParser2.js.map +1 -1
- package/cjs/ext/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +1 -1
- package/cjs/ext/date-fns/parse/_lib/parsers/LocalWeekYearParser.js.map +1 -1
- package/cjs/ext/date-fns/parse/_lib/parsers/LocalWeekYearParser2.js +1 -1
- package/cjs/ext/date-fns/parse/_lib/parsers/LocalWeekYearParser2.js.map +1 -1
- package/cjs/ext/date-fns/parse.js +1 -1
- package/cjs/ext/date-fns/parse.js.map +1 -1
- package/cjs/ext/date-fns/parse2.js +1 -1
- package/cjs/ext/date-fns/parse2.js.map +1 -1
- package/cjs/ext/date-fns/roundToNearestHours.js +1 -1
- package/cjs/ext/date-fns/roundToNearestHours.js.map +1 -1
- package/cjs/ext/date-fns/roundToNearestMinutes.js +1 -1
- package/cjs/ext/date-fns/roundToNearestMinutes.js.map +1 -1
- package/cjs/ext/date-fns/set.js +1 -1
- package/cjs/ext/date-fns/set.js.map +1 -1
- package/cjs/ext/date-fns/setDate.js +1 -1
- package/cjs/ext/date-fns/setDate.js.map +1 -1
- package/cjs/ext/date-fns/setDay.js +1 -1
- package/cjs/ext/date-fns/setDay.js.map +1 -1
- package/cjs/ext/date-fns/setDay2.js +1 -1
- package/cjs/ext/date-fns/setDay2.js.map +1 -1
- package/cjs/ext/date-fns/setDayOfYear.js +1 -1
- package/cjs/ext/date-fns/setDayOfYear.js.map +1 -1
- package/cjs/ext/date-fns/setHours.js +1 -1
- package/cjs/ext/date-fns/setHours.js.map +1 -1
- package/cjs/ext/date-fns/setISODay.js +1 -1
- package/cjs/ext/date-fns/setISODay.js.map +1 -1
- package/cjs/ext/date-fns/setISODay2.js +1 -1
- package/cjs/ext/date-fns/setISODay2.js.map +1 -1
- package/cjs/ext/date-fns/setISOWeek.js +1 -1
- package/cjs/ext/date-fns/setISOWeek.js.map +1 -1
- package/cjs/ext/date-fns/setISOWeek2.js +1 -1
- package/cjs/ext/date-fns/setISOWeek2.js.map +1 -1
- package/cjs/ext/date-fns/setISOWeekYear.js +1 -1
- package/cjs/ext/date-fns/setISOWeekYear.js.map +1 -1
- package/cjs/ext/date-fns/setMilliseconds.js +1 -1
- package/cjs/ext/date-fns/setMilliseconds.js.map +1 -1
- package/cjs/ext/date-fns/setMinutes.js +1 -1
- package/cjs/ext/date-fns/setMinutes.js.map +1 -1
- package/cjs/ext/date-fns/setMonth.js +1 -1
- package/cjs/ext/date-fns/setMonth.js.map +1 -1
- package/cjs/ext/date-fns/setQuarter.js +1 -1
- package/cjs/ext/date-fns/setQuarter.js.map +1 -1
- package/cjs/ext/date-fns/setSeconds.js +1 -1
- package/cjs/ext/date-fns/setSeconds.js.map +1 -1
- package/cjs/ext/date-fns/setWeek.js +1 -1
- package/cjs/ext/date-fns/setWeek.js.map +1 -1
- package/cjs/ext/date-fns/setWeek2.js +1 -1
- package/cjs/ext/date-fns/setWeek2.js.map +1 -1
- package/cjs/ext/date-fns/setWeekYear.js +1 -1
- package/cjs/ext/date-fns/setWeekYear.js.map +1 -1
- package/cjs/ext/date-fns/setYear.js +1 -1
- package/cjs/ext/date-fns/setYear.js.map +1 -1
- package/cjs/ext/date-fns/startOfDay.js +1 -1
- package/cjs/ext/date-fns/startOfDay.js.map +1 -1
- package/cjs/ext/date-fns/startOfDay2.js +1 -1
- package/cjs/ext/date-fns/startOfDay2.js.map +1 -1
- package/cjs/ext/date-fns/startOfDecade.js +1 -1
- package/cjs/ext/date-fns/startOfDecade.js.map +1 -1
- package/cjs/ext/date-fns/startOfHour.js +1 -1
- package/cjs/ext/date-fns/startOfHour.js.map +1 -1
- package/cjs/ext/date-fns/startOfISOWeek.js +1 -1
- package/cjs/ext/date-fns/startOfISOWeek.js.map +1 -1
- package/cjs/ext/date-fns/startOfISOWeek2.js +1 -1
- package/cjs/ext/date-fns/startOfISOWeek2.js.map +1 -1
- package/cjs/ext/date-fns/startOfMinute.js +1 -1
- package/cjs/ext/date-fns/startOfMinute.js.map +1 -1
- package/cjs/ext/date-fns/startOfMonth.js +1 -1
- package/cjs/ext/date-fns/startOfMonth.js.map +1 -1
- package/cjs/ext/date-fns/startOfQuarter.js +1 -1
- package/cjs/ext/date-fns/startOfQuarter.js.map +1 -1
- package/cjs/ext/date-fns/startOfSecond.js +1 -1
- package/cjs/ext/date-fns/startOfSecond.js.map +1 -1
- package/cjs/ext/date-fns/startOfToday.js +1 -1
- package/cjs/ext/date-fns/startOfToday.js.map +1 -1
- package/cjs/ext/date-fns/startOfWeek.js +1 -1
- package/cjs/ext/date-fns/startOfWeek.js.map +1 -1
- package/cjs/ext/date-fns/startOfWeek2.js +1 -1
- package/cjs/ext/date-fns/startOfWeek2.js.map +1 -1
- package/cjs/ext/date-fns/startOfWeekYear.js +1 -1
- package/cjs/ext/date-fns/startOfWeekYear.js.map +1 -1
- package/cjs/ext/date-fns/startOfWeekYear2.js +1 -1
- package/cjs/ext/date-fns/startOfWeekYear2.js.map +1 -1
- package/cjs/ext/date-fns/startOfYear.js +1 -1
- package/cjs/ext/date-fns/startOfYear.js.map +1 -1
- package/cjs/ext/date-fns/startOfYear2.js +1 -1
- package/cjs/ext/date-fns/startOfYear2.js.map +1 -1
- package/cjs/ext/date-fns/subDays.js +1 -1
- package/cjs/ext/date-fns/subDays.js.map +1 -1
- package/cjs/ext/date-fns/toDate.js +1 -1
- package/cjs/ext/date-fns/toDate.js.map +1 -1
- package/cjs/ext/date-fns/toDate2.js +1 -1
- package/cjs/ext/date-fns/toDate2.js.map +1 -1
- package/cjs/ext/prop-types/index.js +1 -1
- package/cjs/ext/prop-types/index.js.map +1 -1
- package/cjs/ext/react-datepicker/dist/react-datepicker.min.js +2 -2
- package/cjs/ext/react-datepicker/dist/react-datepicker.min.js.map +1 -1
- package/cjs/ext/react-dropzone/dist/es/index.js +1 -1
- package/cjs/ext/react-dropzone/dist/es/index.js.map +1 -1
- package/cjs/ext/react-is/index.js +1 -1
- package/cjs/index.js +1 -1
- package/cjs/types/iconName.d.ts +1 -1
- package/cjs/types/iconName.d.ts.map +1 -1
- package/components/Components/ActionBar/ActionBar.js +1 -1
- package/components/Components/Avatar/Avatar.js +1 -1
- package/components/Components/Avatar/Avatar.js.map +1 -1
- package/components/Components/Avatar/_parts_/Handshake.d.ts +4 -0
- package/components/Components/Avatar/_parts_/Handshake.d.ts.map +1 -0
- package/components/Components/Avatar/_parts_/Handshake.js +2 -0
- package/components/Components/Avatar/_parts_/Handshake.js.map +1 -0
- package/components/Components/Avatar/_parts_/HandshakeFill.d.ts +4 -0
- package/components/Components/Avatar/_parts_/HandshakeFill.d.ts.map +1 -0
- package/components/Components/Avatar/_parts_/HandshakeFill.js +2 -0
- package/components/Components/Avatar/_parts_/HandshakeFill.js.map +1 -0
- package/components/Components/Avatar/_parts_/index.d.ts +17 -15
- package/components/Components/Avatar/_parts_/index.d.ts.map +1 -1
- package/components/Components/Avatar/_parts_/index.js +1 -1
- package/components/Components/Dropdown/Dropdown.js +1 -1
- package/components/Components/IconList/IconListItem.js +1 -1
- package/components/Components/NotificationCard/NotificationCardHeader.js +1 -1
- package/components/Components/ProductCard/ProductCardHeader.js +1 -1
- package/components/Components/Tile/Tile.js +1 -1
- package/components/Components/UserAuth/UserAuth.js +1 -1
- package/components/Components/{DataTable → dataTable}/DataTable.d.ts.map +1 -1
- package/components/Components/{DataTable → dataTable}/DataTable.js.map +1 -1
- package/components/Components/{DataTable → dataTable}/DataTableDivider.d.ts.map +1 -1
- package/components/Components/{DataTable → dataTable}/DataTableDivider.js.map +1 -1
- package/components/Components/{DataTable → dataTable}/DataTableItem.d.ts.map +1 -1
- package/components/Components/{DataTable → dataTable}/DataTableItem.js.map +1 -1
- package/components/Components/{DataTable → dataTable}/index.d.ts.map +1 -1
- package/components/Components/index.d.ts +1 -1
- package/components/Components/index.js +1 -1
- package/components/Form/Autocomplete/Autocomplete.js +1 -1
- package/components/Form/Checkbox/CheckboxItem.js +1 -1
- package/components/Form/DatePicker/DatePicker.js +1 -1
- package/components/Form/FileUpload/FileUpload.js +1 -1
- package/components/Form/FileUpload/_parts_/FileList.js +1 -1
- package/components/Form/Input/Input.js +1 -1
- package/components/Form/Input/_elements_/ShowPasswordIcon.js +1 -1
- package/components/Form/Label2/Label2.js +1 -1
- package/components/Form/Multiselect/Multiselect.js +1 -1
- package/components/Form/PersonCount/PersonCount.js +1 -1
- package/components/Form/Radio/Radio.js +1 -1
- package/components/Form/Select/Select.js +1 -1
- package/components/Form/Select/_elements_/Select2CategorisedOptions.js +1 -1
- package/components/Form/Select/_elements_/Select2Options.js +1 -1
- package/components/Form/Select/_elements_/SelectedOption.js +1 -1
- package/components/Form/Slider/Slider.js +1 -1
- package/components/Form/Toggle/Toggle.js +1 -1
- package/components/Graphs/ChartLegend/_elements_/ChartLegendRow.js +1 -1
- package/components/Layout/MobilePanel/_elements_/Header.js +1 -1
- package/components/Navigation/Menu/_elements_/MenuItem.js +1 -1
- package/components/Navigation/Stepper/_parts_/Step.js +1 -1
- package/components/Navigation/Tabs/_elements_/TabsBar.js +1 -1
- package/components/Typography/Amount/Amount.js +1 -1
- package/components/Typography/Title/Title.js +1 -1
- package/ds-lilly.css +3 -3
- package/ext/date-fns/_lib/format/formatters.js +1 -1
- package/ext/date-fns/_lib/format/formatters.js.map +1 -1
- package/ext/date-fns/_lib/format/formatters2.js +1 -1
- package/ext/date-fns/_lib/format/formatters2.js.map +1 -1
- package/ext/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +1 -1
- package/ext/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -1
- package/ext/date-fns/_lib/getTimezoneOffsetInMilliseconds2.js +1 -1
- package/ext/date-fns/_lib/getTimezoneOffsetInMilliseconds2.js.map +1 -1
- package/ext/date-fns/add.js +1 -1
- package/ext/date-fns/add.js.map +1 -1
- package/ext/date-fns/addBusinessDays.js +1 -1
- package/ext/date-fns/addBusinessDays.js.map +1 -1
- package/ext/date-fns/addDays.js +1 -1
- package/ext/date-fns/addDays.js.map +1 -1
- package/ext/date-fns/addDays2.js +1 -1
- package/ext/date-fns/addDays2.js.map +1 -1
- package/ext/date-fns/addMilliseconds.js +1 -1
- package/ext/date-fns/addMilliseconds.js.map +1 -1
- package/ext/date-fns/addMonths.js +1 -1
- package/ext/date-fns/addMonths.js.map +1 -1
- package/ext/date-fns/addWeeks.js +1 -1
- package/ext/date-fns/addWeeks.js.map +1 -1
- package/ext/date-fns/areIntervalsOverlapping.js +1 -1
- package/ext/date-fns/areIntervalsOverlapping.js.map +1 -1
- package/ext/date-fns/closestIndexTo.js +1 -1
- package/ext/date-fns/closestIndexTo.js.map +1 -1
- package/ext/date-fns/closestTo.js +1 -1
- package/ext/date-fns/closestTo.js.map +1 -1
- package/ext/date-fns/compareAsc.js +1 -1
- package/ext/date-fns/compareAsc.js.map +1 -1
- package/ext/date-fns/compareDesc.js +1 -1
- package/ext/date-fns/compareDesc.js.map +1 -1
- package/ext/date-fns/differenceInBusinessDays.js +1 -1
- package/ext/date-fns/differenceInBusinessDays.js.map +1 -1
- package/ext/date-fns/differenceInCalendarDays.js +1 -1
- package/ext/date-fns/differenceInCalendarDays.js.map +1 -1
- package/ext/date-fns/differenceInCalendarDays2.js +1 -1
- package/ext/date-fns/differenceInCalendarDays2.js.map +1 -1
- package/ext/date-fns/differenceInCalendarMonths.js +1 -1
- package/ext/date-fns/differenceInCalendarMonths.js.map +1 -1
- package/ext/date-fns/differenceInCalendarQuarters.js +1 -1
- package/ext/date-fns/differenceInCalendarQuarters.js.map +1 -1
- package/ext/date-fns/differenceInCalendarWeeks.js +1 -1
- package/ext/date-fns/differenceInCalendarWeeks.js.map +1 -1
- package/ext/date-fns/differenceInCalendarYears.js +1 -1
- package/ext/date-fns/differenceInCalendarYears.js.map +1 -1
- package/ext/date-fns/differenceInDays.js +1 -1
- package/ext/date-fns/differenceInDays.js.map +1 -1
- package/ext/date-fns/differenceInISOWeekYears.js +1 -1
- package/ext/date-fns/differenceInISOWeekYears.js.map +1 -1
- package/ext/date-fns/differenceInMilliseconds.js +1 -1
- package/ext/date-fns/differenceInMilliseconds.js.map +1 -1
- package/ext/date-fns/differenceInMonths.js +1 -1
- package/ext/date-fns/differenceInMonths.js.map +1 -1
- package/ext/date-fns/differenceInYears.js +1 -1
- package/ext/date-fns/differenceInYears.js.map +1 -1
- package/ext/date-fns/eachDayOfInterval.js +1 -1
- package/ext/date-fns/eachDayOfInterval.js.map +1 -1
- package/ext/date-fns/eachDayOfInterval2.js +1 -1
- package/ext/date-fns/eachDayOfInterval2.js.map +1 -1
- package/ext/date-fns/eachHourOfInterval.js +1 -1
- package/ext/date-fns/eachHourOfInterval.js.map +1 -1
- package/ext/date-fns/eachMinuteOfInterval.js +1 -1
- package/ext/date-fns/eachMinuteOfInterval.js.map +1 -1
- package/ext/date-fns/eachMonthOfInterval.js +1 -1
- package/ext/date-fns/eachMonthOfInterval.js.map +1 -1
- package/ext/date-fns/eachMonthOfInterval2.js +1 -1
- package/ext/date-fns/eachMonthOfInterval2.js.map +1 -1
- package/ext/date-fns/eachQuarterOfInterval.js +1 -1
- package/ext/date-fns/eachQuarterOfInterval.js.map +1 -1
- package/ext/date-fns/eachWeekOfInterval.js +1 -1
- package/ext/date-fns/eachWeekOfInterval.js.map +1 -1
- package/ext/date-fns/eachWeekendOfYear.js +1 -1
- package/ext/date-fns/eachWeekendOfYear.js.map +1 -1
- package/ext/date-fns/eachYearOfInterval.js +1 -1
- package/ext/date-fns/eachYearOfInterval.js.map +1 -1
- package/ext/date-fns/endOfDay.js +1 -1
- package/ext/date-fns/endOfDay.js.map +1 -1
- package/ext/date-fns/endOfDecade.js +1 -1
- package/ext/date-fns/endOfDecade.js.map +1 -1
- package/ext/date-fns/endOfHour.js +1 -1
- package/ext/date-fns/endOfHour.js.map +1 -1
- package/ext/date-fns/endOfMinute.js +1 -1
- package/ext/date-fns/endOfMinute.js.map +1 -1
- package/ext/date-fns/endOfMonth.js +1 -1
- package/ext/date-fns/endOfMonth.js.map +1 -1
- package/ext/date-fns/endOfQuarter.js +1 -1
- package/ext/date-fns/endOfQuarter.js.map +1 -1
- package/ext/date-fns/endOfSecond.js +1 -1
- package/ext/date-fns/endOfSecond.js.map +1 -1
- package/ext/date-fns/endOfWeek.js +1 -1
- package/ext/date-fns/endOfWeek.js.map +1 -1
- package/ext/date-fns/endOfYear.js +1 -1
- package/ext/date-fns/endOfYear.js.map +1 -1
- package/ext/date-fns/format.js +1 -1
- package/ext/date-fns/format.js.map +1 -1
- package/ext/date-fns/format2.js +1 -1
- package/ext/date-fns/format2.js.map +1 -1
- package/ext/date-fns/formatDistance.js +1 -1
- package/ext/date-fns/formatDistance.js.map +1 -1
- package/ext/date-fns/formatDistanceStrict.js +1 -1
- package/ext/date-fns/formatDistanceStrict.js.map +1 -1
- package/ext/date-fns/formatISO.js +1 -1
- package/ext/date-fns/formatISO.js.map +1 -1
- package/ext/date-fns/formatISO9075.js +1 -1
- package/ext/date-fns/formatISO9075.js.map +1 -1
- package/ext/date-fns/formatRFC3339.js +1 -1
- package/ext/date-fns/formatRFC3339.js.map +1 -1
- package/ext/date-fns/formatRFC7231.js +1 -1
- package/ext/date-fns/formatRFC7231.js.map +1 -1
- package/ext/date-fns/formatRelative.js +1 -1
- package/ext/date-fns/formatRelative.js.map +1 -1
- package/ext/date-fns/fromUnixTime.js +1 -1
- package/ext/date-fns/fromUnixTime.js.map +1 -1
- package/ext/date-fns/getDate.js +1 -1
- package/ext/date-fns/getDate.js.map +1 -1
- package/ext/date-fns/getDay.js +1 -1
- package/ext/date-fns/getDay.js.map +1 -1
- package/ext/date-fns/getDayOfYear.js +1 -1
- package/ext/date-fns/getDayOfYear.js.map +1 -1
- package/ext/date-fns/getDayOfYear2.js +1 -1
- package/ext/date-fns/getDayOfYear2.js.map +1 -1
- package/ext/date-fns/getDaysInMonth.js +1 -1
- package/ext/date-fns/getDaysInMonth.js.map +1 -1
- package/ext/date-fns/getDaysInYear.js +1 -1
- package/ext/date-fns/getDaysInYear.js.map +1 -1
- package/ext/date-fns/getDecade.js +1 -1
- package/ext/date-fns/getDecade.js.map +1 -1
- package/ext/date-fns/getHours.js +1 -1
- package/ext/date-fns/getHours.js.map +1 -1
- package/ext/date-fns/getISODay.js +1 -1
- package/ext/date-fns/getISODay.js.map +1 -1
- package/ext/date-fns/getISODay2.js +1 -1
- package/ext/date-fns/getISODay2.js.map +1 -1
- package/ext/date-fns/getISOWeek.js +1 -1
- package/ext/date-fns/getISOWeek.js.map +1 -1
- package/ext/date-fns/getISOWeek2.js +1 -1
- package/ext/date-fns/getISOWeek2.js.map +1 -1
- package/ext/date-fns/getISOWeekYear.js +1 -1
- package/ext/date-fns/getISOWeekYear.js.map +1 -1
- package/ext/date-fns/getISOWeekYear2.js +1 -1
- package/ext/date-fns/getISOWeekYear2.js.map +1 -1
- package/ext/date-fns/getMilliseconds.js +1 -1
- package/ext/date-fns/getMilliseconds.js.map +1 -1
- package/ext/date-fns/getMinutes.js +1 -1
- package/ext/date-fns/getMinutes.js.map +1 -1
- package/ext/date-fns/getMonth.js +1 -1
- package/ext/date-fns/getMonth.js.map +1 -1
- package/ext/date-fns/getOverlappingDaysInIntervals.js +1 -1
- package/ext/date-fns/getOverlappingDaysInIntervals.js.map +1 -1
- package/ext/date-fns/getQuarter.js +1 -1
- package/ext/date-fns/getQuarter.js.map +1 -1
- package/ext/date-fns/getSeconds.js +1 -1
- package/ext/date-fns/getSeconds.js.map +1 -1
- package/ext/date-fns/getTime.js +1 -1
- package/ext/date-fns/getTime.js.map +1 -1
- package/ext/date-fns/getUnixTime.js +1 -1
- package/ext/date-fns/getUnixTime.js.map +1 -1
- package/ext/date-fns/getWeek.js +1 -1
- package/ext/date-fns/getWeek.js.map +1 -1
- package/ext/date-fns/getWeek2.js +1 -1
- package/ext/date-fns/getWeek2.js.map +1 -1
- package/ext/date-fns/getWeekYear.js +1 -1
- package/ext/date-fns/getWeekYear.js.map +1 -1
- package/ext/date-fns/getWeekYear2.js +1 -1
- package/ext/date-fns/getWeekYear2.js.map +1 -1
- package/ext/date-fns/getYear.js +1 -1
- package/ext/date-fns/getYear.js.map +1 -1
- package/ext/date-fns/index.js +1 -1
- package/ext/date-fns/index.js.map +1 -1
- package/ext/date-fns/interval.js +1 -1
- package/ext/date-fns/interval.js.map +1 -1
- package/ext/date-fns/intervalToDuration.js +1 -1
- package/ext/date-fns/intervalToDuration.js.map +1 -1
- package/ext/date-fns/intlFormat.js +1 -1
- package/ext/date-fns/intlFormat.js.map +1 -1
- package/ext/date-fns/intlFormatDistance.js +1 -1
- package/ext/date-fns/intlFormatDistance.js.map +1 -1
- package/ext/date-fns/isAfter.js +1 -1
- package/ext/date-fns/isAfter.js.map +1 -1
- package/ext/date-fns/isBefore.js +1 -1
- package/ext/date-fns/isBefore.js.map +1 -1
- package/ext/date-fns/isDate.js +1 -1
- package/ext/date-fns/isDate.js.map +1 -1
- package/ext/date-fns/isDate2.js +1 -1
- package/ext/date-fns/isDate2.js.map +1 -1
- package/ext/date-fns/isEqual.js +1 -1
- package/ext/date-fns/isEqual.js.map +1 -1
- package/ext/date-fns/isFirstDayOfMonth.js +1 -1
- package/ext/date-fns/isFirstDayOfMonth.js.map +1 -1
- package/ext/date-fns/isFriday.js +1 -1
- package/ext/date-fns/isFriday.js.map +1 -1
- package/ext/date-fns/isFuture.js +1 -1
- package/ext/date-fns/isFuture.js.map +1 -1
- package/ext/date-fns/isLastDayOfMonth.js +1 -1
- package/ext/date-fns/isLastDayOfMonth.js.map +1 -1
- package/ext/date-fns/isLeapYear.js +1 -1
- package/ext/date-fns/isLeapYear.js.map +1 -1
- package/ext/date-fns/isMonday.js +1 -1
- package/ext/date-fns/isMonday.js.map +1 -1
- package/ext/date-fns/isPast.js +1 -1
- package/ext/date-fns/isPast.js.map +1 -1
- package/ext/date-fns/isSameDay.js +1 -1
- package/ext/date-fns/isSameDay.js.map +1 -1
- package/ext/date-fns/isSameMonth.js +1 -1
- package/ext/date-fns/isSameMonth.js.map +1 -1
- package/ext/date-fns/isSameWeek.js +1 -1
- package/ext/date-fns/isSameWeek.js.map +1 -1
- package/ext/date-fns/isSameYear.js +1 -1
- package/ext/date-fns/isSameYear.js.map +1 -1
- package/ext/date-fns/isSaturday.js +1 -1
- package/ext/date-fns/isSaturday.js.map +1 -1
- package/ext/date-fns/isSunday.js +1 -1
- package/ext/date-fns/isSunday.js.map +1 -1
- package/ext/date-fns/isThursday.js +1 -1
- package/ext/date-fns/isThursday.js.map +1 -1
- package/ext/date-fns/isTomorrow.js +1 -1
- package/ext/date-fns/isTomorrow.js.map +1 -1
- package/ext/date-fns/isTuesday.js +1 -1
- package/ext/date-fns/isTuesday.js.map +1 -1
- package/ext/date-fns/isValid.js +1 -1
- package/ext/date-fns/isValid.js.map +1 -1
- package/ext/date-fns/isValid2.js +1 -1
- package/ext/date-fns/isValid2.js.map +1 -1
- package/ext/date-fns/isWednesday.js +1 -1
- package/ext/date-fns/isWednesday.js.map +1 -1
- package/ext/date-fns/isWeekend.js +1 -1
- package/ext/date-fns/isWeekend.js.map +1 -1
- package/ext/date-fns/isWithinInterval.js +1 -1
- package/ext/date-fns/isWithinInterval.js.map +1 -1
- package/ext/date-fns/lastDayOfDecade.js +1 -1
- package/ext/date-fns/lastDayOfDecade.js.map +1 -1
- package/ext/date-fns/lastDayOfMonth.js +1 -1
- package/ext/date-fns/lastDayOfMonth.js.map +1 -1
- package/ext/date-fns/lastDayOfQuarter.js +1 -1
- package/ext/date-fns/lastDayOfQuarter.js.map +1 -1
- package/ext/date-fns/lastDayOfWeek.js +1 -1
- package/ext/date-fns/lastDayOfWeek.js.map +1 -1
- package/ext/date-fns/lastDayOfYear.js +1 -1
- package/ext/date-fns/lastDayOfYear.js.map +1 -1
- package/ext/date-fns/lightFormat.js +1 -1
- package/ext/date-fns/lightFormat.js.map +1 -1
- package/ext/date-fns/max.js +1 -1
- package/ext/date-fns/max.js.map +1 -1
- package/ext/date-fns/min.js +1 -1
- package/ext/date-fns/min.js.map +1 -1
- package/ext/date-fns/nextDay.js +1 -1
- package/ext/date-fns/nextDay.js.map +1 -1
- package/ext/date-fns/parse/_lib/parsers/LocalWeekParser.js +1 -1
- package/ext/date-fns/parse/_lib/parsers/LocalWeekParser.js.map +1 -1
- package/ext/date-fns/parse/_lib/parsers/LocalWeekParser2.js +1 -1
- package/ext/date-fns/parse/_lib/parsers/LocalWeekParser2.js.map +1 -1
- package/ext/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +1 -1
- package/ext/date-fns/parse/_lib/parsers/LocalWeekYearParser.js.map +1 -1
- package/ext/date-fns/parse/_lib/parsers/LocalWeekYearParser2.js +1 -1
- package/ext/date-fns/parse/_lib/parsers/LocalWeekYearParser2.js.map +1 -1
- package/ext/date-fns/parse.js +1 -1
- package/ext/date-fns/parse.js.map +1 -1
- package/ext/date-fns/parse2.js +1 -1
- package/ext/date-fns/parse2.js.map +1 -1
- package/ext/date-fns/roundToNearestHours.js +1 -1
- package/ext/date-fns/roundToNearestHours.js.map +1 -1
- package/ext/date-fns/roundToNearestMinutes.js +1 -1
- package/ext/date-fns/roundToNearestMinutes.js.map +1 -1
- package/ext/date-fns/set.js +1 -1
- package/ext/date-fns/set.js.map +1 -1
- package/ext/date-fns/setDate.js +1 -1
- package/ext/date-fns/setDate.js.map +1 -1
- package/ext/date-fns/setDay.js +1 -1
- package/ext/date-fns/setDay.js.map +1 -1
- package/ext/date-fns/setDay2.js +1 -1
- package/ext/date-fns/setDay2.js.map +1 -1
- package/ext/date-fns/setDayOfYear.js +1 -1
- package/ext/date-fns/setDayOfYear.js.map +1 -1
- package/ext/date-fns/setHours.js +1 -1
- package/ext/date-fns/setHours.js.map +1 -1
- package/ext/date-fns/setISODay.js +1 -1
- package/ext/date-fns/setISODay.js.map +1 -1
- package/ext/date-fns/setISODay2.js +1 -1
- package/ext/date-fns/setISODay2.js.map +1 -1
- package/ext/date-fns/setISOWeek.js +1 -1
- package/ext/date-fns/setISOWeek.js.map +1 -1
- package/ext/date-fns/setISOWeek2.js +1 -1
- package/ext/date-fns/setISOWeek2.js.map +1 -1
- package/ext/date-fns/setISOWeekYear.js +1 -1
- package/ext/date-fns/setISOWeekYear.js.map +1 -1
- package/ext/date-fns/setMilliseconds.js +1 -1
- package/ext/date-fns/setMilliseconds.js.map +1 -1
- package/ext/date-fns/setMinutes.js +1 -1
- package/ext/date-fns/setMinutes.js.map +1 -1
- package/ext/date-fns/setMonth.js +1 -1
- package/ext/date-fns/setMonth.js.map +1 -1
- package/ext/date-fns/setQuarter.js +1 -1
- package/ext/date-fns/setQuarter.js.map +1 -1
- package/ext/date-fns/setSeconds.js +1 -1
- package/ext/date-fns/setSeconds.js.map +1 -1
- package/ext/date-fns/setWeek.js +1 -1
- package/ext/date-fns/setWeek.js.map +1 -1
- package/ext/date-fns/setWeek2.js +1 -1
- package/ext/date-fns/setWeek2.js.map +1 -1
- package/ext/date-fns/setWeekYear.js +1 -1
- package/ext/date-fns/setWeekYear.js.map +1 -1
- package/ext/date-fns/setYear.js +1 -1
- package/ext/date-fns/setYear.js.map +1 -1
- package/ext/date-fns/startOfDay.js +1 -1
- package/ext/date-fns/startOfDay.js.map +1 -1
- package/ext/date-fns/startOfDay2.js +1 -1
- package/ext/date-fns/startOfDay2.js.map +1 -1
- package/ext/date-fns/startOfDecade.js +1 -1
- package/ext/date-fns/startOfDecade.js.map +1 -1
- package/ext/date-fns/startOfHour.js +1 -1
- package/ext/date-fns/startOfHour.js.map +1 -1
- package/ext/date-fns/startOfISOWeek.js +1 -1
- package/ext/date-fns/startOfISOWeek.js.map +1 -1
- package/ext/date-fns/startOfISOWeek2.js +1 -1
- package/ext/date-fns/startOfISOWeek2.js.map +1 -1
- package/ext/date-fns/startOfMinute.js +1 -1
- package/ext/date-fns/startOfMinute.js.map +1 -1
- package/ext/date-fns/startOfMonth.js +1 -1
- package/ext/date-fns/startOfMonth.js.map +1 -1
- package/ext/date-fns/startOfQuarter.js +1 -1
- package/ext/date-fns/startOfQuarter.js.map +1 -1
- package/ext/date-fns/startOfSecond.js +1 -1
- package/ext/date-fns/startOfSecond.js.map +1 -1
- package/ext/date-fns/startOfToday.js +1 -1
- package/ext/date-fns/startOfToday.js.map +1 -1
- package/ext/date-fns/startOfWeek.js +1 -1
- package/ext/date-fns/startOfWeek.js.map +1 -1
- package/ext/date-fns/startOfWeek2.js +1 -1
- package/ext/date-fns/startOfWeek2.js.map +1 -1
- package/ext/date-fns/startOfWeekYear.js +1 -1
- package/ext/date-fns/startOfWeekYear.js.map +1 -1
- package/ext/date-fns/startOfWeekYear2.js +1 -1
- package/ext/date-fns/startOfWeekYear2.js.map +1 -1
- package/ext/date-fns/startOfYear.js +1 -1
- package/ext/date-fns/startOfYear.js.map +1 -1
- package/ext/date-fns/startOfYear2.js +1 -1
- package/ext/date-fns/startOfYear2.js.map +1 -1
- package/ext/date-fns/subDays.js +1 -1
- package/ext/date-fns/subDays.js.map +1 -1
- package/ext/date-fns/toDate.js +1 -1
- package/ext/date-fns/toDate.js.map +1 -1
- package/ext/date-fns/toDate2.js +1 -1
- package/ext/date-fns/toDate2.js.map +1 -1
- package/ext/react-datepicker/dist/react-datepicker.min.js +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
- package/svg/handshake.svg +1 -0
- package/svg/handshakeFill.svg +1 -0
- package/types/iconName.d.ts +1 -1
- package/types/iconName.d.ts.map +1 -1
- package/cjs/_virtual/index5.js +0 -2
- package/cjs/_virtual/index5.js.map +0 -1
- /package/assets/{2d98883f99d0f7ec3f52.eot → 0ec53763d9b72b2517d8.eot} +0 -0
- /package/assets/{1ee5dc213cb621ea5606.svg → 1602ac981e284cdfa4a6.svg} +0 -0
- /package/assets/{d19e65e1ec153bfc5d5c.woff → 474e82aad21ebd4532cd.woff} +0 -0
- /package/assets/{a5c70f5fb66ea49c1746.eot → 761df22901c6b2499239.eot} +0 -0
- /package/assets/{6dda6fbf95b2db5a57e6.ttf → 7859f3694ac6057af3f1.ttf} +0 -0
- /package/assets/{f429977ecd6529d4fdbc.woff → 7b08d2f47ddf004a599d.woff} +0 -0
- /package/assets/{e2b8ee174f3f6c1fdbe3.eot → 84fcbc4df65d05a0d544.eot} +0 -0
- /package/assets/{f70cad1e2c2ba9d6a816.eot → 86c3385513065f881127.eot} +0 -0
- /package/assets/{cf30422ef9a1bc39f091.svg → 91e12b10d063d5642360.svg} +0 -0
- /package/assets/{961e87434f02ac8869ee.gif → af3208b2058483f2049d.gif} +0 -0
- /package/assets/{81b156c4c3ac7131d2f8.ttf → b34b391358fb88451d92.ttf} +0 -0
- /package/assets/{a12336b9ec1c6b42203a.gif → fa76d6255aa5701cc3c0.gif} +0 -0
- /package/cjs/components/Components/{DataTable → dataTable}/DataTable.d.ts +0 -0
- /package/cjs/components/Components/{DataTable → dataTable}/DataTable.js +0 -0
- /package/cjs/components/Components/{DataTable → dataTable}/DataTableDivider.d.ts +0 -0
- /package/cjs/components/Components/{DataTable → dataTable}/DataTableDivider.js +0 -0
- /package/cjs/components/Components/{DataTable → dataTable}/DataTableItem.d.ts +0 -0
- /package/cjs/components/Components/{DataTable → dataTable}/DataTableItem.js +0 -0
- /package/cjs/components/Components/{DataTable → dataTable}/index.d.ts +0 -0
- /package/cjs/components/Components/{DataTable → dataTable}/index.js +0 -0
- /package/cjs/components/Components/{DataTable → dataTable}/index.js.map +0 -0
- /package/components/Components/{DataTable → dataTable}/DataTable.d.ts +0 -0
- /package/components/Components/{DataTable → dataTable}/DataTable.js +0 -0
- /package/components/Components/{DataTable → dataTable}/DataTableDivider.d.ts +0 -0
- /package/components/Components/{DataTable → dataTable}/DataTableDivider.js +0 -0
- /package/components/Components/{DataTable → dataTable}/DataTableItem.d.ts +0 -0
- /package/components/Components/{DataTable → dataTable}/DataTableItem.js +0 -0
- /package/components/Components/{DataTable → dataTable}/index.d.ts +0 -0
- /package/components/Components/{DataTable → dataTable}/index.js +0 -0
- /package/components/Components/{DataTable → dataTable}/index.js.map +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.js","sources":["../../../node_modules/date-fns/parse.mjs"],"sourcesContent":["import { constructFrom } from \"./constructFrom.mjs\";\nimport { getDefaultOptions } from \"./getDefaultOptions.mjs\";\nimport { defaultLocale } from \"./_lib/defaultLocale.mjs\";\nimport { toDate } from \"./toDate.mjs\";\nimport { longFormatters } from \"./_lib/format/longFormatters.mjs\";\nimport {\n isProtectedDayOfYearToken,\n isProtectedWeekYearToken,\n warnOrThrowProtectedError,\n} from \"./_lib/protectedTokens.mjs\";\nimport { parsers } from \"./parse/_lib/parsers.mjs\";\nimport { DateToSystemTimezoneSetter } from \"./parse/_lib/Setter.mjs\";\n\n// Rexports of internal for libraries to use.\n// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874\nexport { longFormatters, parsers };\n\n/**\n * The {@link parse} function options.\n */\n\n// This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nconst formattingTokensRegExp =\n /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nconst longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\nconst escapedStringRegExp = /^'([^]*?)'?$/;\nconst doubleQuoteRegExp = /''/g;\n\nconst notWhitespaceRegExp = /\\S/;\nconst unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\n/**\n * @name parse\n * @category Common Helpers\n * @summary Parse the date.\n *\n * @description\n * Return the date parsed from string using the given format string.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters in the format string wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n *\n * Format of the format string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 5 below the table).\n *\n * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited\n * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:\n *\n * ```javascript\n * parse('23 AM', 'HH a', new Date())\n * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time\n * ```\n *\n * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true\n *\n * Accepted format string patterns:\n * | Unit |Prior| Pattern | Result examples | Notes |\n * |---------------------------------|-----|---------|-----------------------------------|-------|\n * | Era | 140 | G..GGG | AD, BC | |\n * | | | GGGG | Anno Domini, Before Christ | 2 |\n * | | | GGGGG | A, B | |\n * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 |\n * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 |\n * | | | yy | 44, 01, 00, 17 | 4 |\n * | | | yyy | 044, 001, 123, 999 | 4 |\n * | | | yyyy | 0044, 0001, 1900, 2017 | 4 |\n * | | | yyyyy | ... | 2,4 |\n * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 |\n * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 |\n * | | | YY | 44, 01, 00, 17 | 4,6 |\n * | | | YYY | 044, 001, 123, 999 | 4 |\n * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 |\n * | | | YYYYY | ... | 2,4 |\n * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 |\n * | | | RR | -43, 01, 00, 17 | 4,5 |\n * | | | RRR | -043, 001, 123, 999, -999 | 4,5 |\n * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 |\n * | | | RRRRR | ... | 2,4,5 |\n * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 |\n * | | | uu | -43, 01, 99, -99 | 4 |\n * | | | uuu | -043, 001, 123, 999, -999 | 4 |\n * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 |\n * | | | uuuuu | ... | 2,4 |\n * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | |\n * | | | Qo | 1st, 2nd, 3rd, 4th | 5 |\n * | | | QQ | 01, 02, 03, 04 | |\n * | | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | |\n * | | | qo | 1st, 2nd, 3rd, 4th | 5 |\n * | | | qq | 01, 02, 03, 04 | |\n * | | | qqq | Q1, Q2, Q3, Q4 | |\n * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | | qqqqq | 1, 2, 3, 4 | 3 |\n * | Month (formatting) | 110 | M | 1, 2, ..., 12 | |\n * | | | Mo | 1st, 2nd, ..., 12th | 5 |\n * | | | MM | 01, 02, ..., 12 | |\n * | | | MMM | Jan, Feb, ..., Dec | |\n * | | | MMMM | January, February, ..., December | 2 |\n * | | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | |\n * | | | Lo | 1st, 2nd, ..., 12th | 5 |\n * | | | LL | 01, 02, ..., 12 | |\n * | | | LLL | Jan, Feb, ..., Dec | |\n * | | | LLLL | January, February, ..., December | 2 |\n * | | | LLLLL | J, F, ..., D | |\n * | Local week of year | 100 | w | 1, 2, ..., 53 | |\n * | | | wo | 1st, 2nd, ..., 53th | 5 |\n * | | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 |\n * | | | Io | 1st, 2nd, ..., 53th | 5 |\n * | | | II | 01, 02, ..., 53 | 5 |\n * | Day of month | 90 | d | 1, 2, ..., 31 | |\n * | | | do | 1st, 2nd, ..., 31st | 5 |\n * | | | dd | 01, 02, ..., 31 | |\n * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 |\n * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 |\n * | | | DD | 01, 02, ..., 365, 366 | 7 |\n * | | | DDD | 001, 002, ..., 365, 366 | |\n * | | | DDDD | ... | 2 |\n * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | | EEEEE | M, T, W, T, F, S, S | |\n * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |\n * | | | io | 1st, 2nd, ..., 7th | 5 |\n * | | | ii | 01, 02, ..., 07 | 5 |\n * | | | iii | Mon, Tue, Wed, ..., Sun | 5 |\n * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |\n * | | | iiiii | M, T, W, T, F, S, S | 5 |\n * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 |\n * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |\n * | | | eo | 2nd, 3rd, ..., 1st | 5 |\n * | | | ee | 02, 03, ..., 01 | |\n * | | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | | eeeee | M, T, W, T, F, S, S | |\n * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |\n * | | | co | 2nd, 3rd, ..., 1st | 5 |\n * | | | cc | 02, 03, ..., 01 | |\n * | | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | | ccccc | M, T, W, T, F, S, S | |\n * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | AM, PM | 80 | a..aaa | AM, PM | |\n * | | | aaaa | a.m., p.m. | 2 |\n * | | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | |\n * | | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | | bbbbb | a, p, n, mi | |\n * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | |\n * | | | BBBB | at night, in the morning, ... | 2 |\n * | | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | |\n * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 |\n * | | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | |\n * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 |\n * | | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | |\n * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 |\n * | | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | |\n * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 |\n * | | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | 60 | m | 0, 1, ..., 59 | |\n * | | | mo | 0th, 1st, ..., 59th | 5 |\n * | | | mm | 00, 01, ..., 59 | |\n * | Second | 50 | s | 0, 1, ..., 59 | |\n * | | | so | 0th, 1st, ..., 59th | 5 |\n * | | | ss | 00, 01, ..., 59 | |\n * | Seconds timestamp | 40 | t | 512969520 | |\n * | | | tt | ... | 2 |\n * | Fraction of second | 30 | S | 0, 1, ..., 9 | |\n * | | | SS | 00, 01, ..., 99 | |\n * | | | SSS | 000, 001, ..., 999 | |\n * | | | SSSS | ... | 2 |\n * | Milliseconds timestamp | 20 | T | 512969520900 | |\n * | | | TT | ... | 2 |\n * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | |\n * | | | XX | -0800, +0530, Z | |\n * | | | XXX | -08:00, +05:30, Z | |\n * | | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | |\n * | | | xx | -0800, +0530, +0000 | |\n * | | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Long localized date | NA | P | 05/29/1453 | 5,8 |\n * | | | PP | May 29, 1453 | |\n * | | | PPP | May 29th, 1453 | |\n * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 |\n * | Long localized time | NA | p | 12:00 AM | 5,8 |\n * | | | pp | 12:00:00 AM | |\n * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | |\n * | | | PPpp | May 29, 1453, 12:00:00 AM | |\n * | | | PPPpp | May 29th, 1453 at ... | |\n * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular.\n * In `format` function, they will produce different result:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * `parse` will try to match both formatting and stand-alone units interchangably.\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table:\n * - for numerical units (`yyyyyyyy`) `parse` will try to match a number\n * as wide as the sequence\n * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit.\n * These variations are marked with \"2\" in the last column of the table.\n *\n * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 4. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:\n *\n * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00`\n *\n * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00`\n *\n * while `uu` will just assign the year as is:\n *\n * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00`\n *\n * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00`\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [setISOWeekYear](https://date-fns.org/docs/setISOWeekYear)\n * and [setWeekYear](https://date-fns.org/docs/setWeekYear)).\n *\n * 5. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based\n * on the given locale.\n *\n * using `en-US` locale: `P` => `MM/dd/yyyy`\n * using `en-US` locale: `p` => `hh:mm a`\n * using `pt-BR` locale: `P` => `dd/MM/yyyy`\n * using `pt-BR` locale: `p` => `HH:mm`\n *\n * Values will be assigned to the date in the descending order of its unit's priority.\n * Units of an equal priority overwrite each other in the order of appearance.\n *\n * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),\n * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing.\n *\n * `referenceDate` must be passed for correct work of the function.\n * If you're not sure which `referenceDate` to supply, create a new instance of Date:\n * `parse('02/11/2014', 'MM/dd/yyyy', new Date())`\n * In this case parsing will be done in the context of the current date.\n * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`,\n * then `Invalid Date` will be returned.\n *\n * The result may vary by locale.\n *\n * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.\n *\n * If parsing failed, `Invalid Date` will be returned.\n * Invalid Date is a Date, whose time value is NaN.\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateStr - The string to parse\n * @param formatStr - The string of tokens\n * @param referenceDate - defines values missing from the parsed dateString\n * @param options - An object with options.\n * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @returns The parsed date\n *\n * @throws `options.locale` must contain `match` property\n * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws format string contains an unescaped latin alphabet character\n *\n * @example\n * // Parse 11 February 2014 from middle-endian format:\n * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date())\n * //=> Tue Feb 11 2014 00:00:00\n *\n * @example\n * // Parse 28th of February in Esperanto locale in the context of 2010 year:\n * import eo from 'date-fns/locale/eo'\n * var result = parse('28-a de februaro', \"do 'de' MMMM\", new Date(2010, 0, 1), {\n * locale: eo\n * })\n * //=> Sun Feb 28 2010 00:00:00\n */\nexport function parse(dateStr, formatStr, referenceDate, options) {\n const defaultOptions = getDefaultOptions();\n const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale;\n\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n if (formatStr === \"\") {\n if (dateStr === \"\") {\n return toDate(referenceDate);\n } else {\n return constructFrom(referenceDate, NaN);\n }\n }\n\n const subFnOptions = {\n firstWeekContainsDate,\n weekStartsOn,\n locale,\n };\n\n // If timezone isn't specified, it will be set to the system timezone\n const setters = [new DateToSystemTimezoneSetter()];\n\n const tokens = formatStr\n .match(longFormattingTokensRegExp)\n .map((substring) => {\n const firstCharacter = substring[0];\n if (firstCharacter in longFormatters) {\n const longFormatter = longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong);\n }\n return substring;\n })\n .join(\"\")\n .match(formattingTokensRegExp);\n\n const usedTokens = [];\n\n for (let token of tokens) {\n if (\n !options?.useAdditionalWeekYearTokens &&\n isProtectedWeekYearToken(token)\n ) {\n warnOrThrowProtectedError(token, formatStr, dateStr);\n }\n if (\n !options?.useAdditionalDayOfYearTokens &&\n isProtectedDayOfYearToken(token)\n ) {\n warnOrThrowProtectedError(token, formatStr, dateStr);\n }\n\n const firstCharacter = token[0];\n const parser = parsers[firstCharacter];\n if (parser) {\n const { incompatibleTokens } = parser;\n if (Array.isArray(incompatibleTokens)) {\n const incompatibleToken = usedTokens.find(\n (usedToken) =>\n incompatibleTokens.includes(usedToken.token) ||\n usedToken.token === firstCharacter,\n );\n if (incompatibleToken) {\n throw new RangeError(\n `The format string mustn't contain \\`${incompatibleToken.fullToken}\\` and \\`${token}\\` at the same time`,\n );\n }\n } else if (parser.incompatibleTokens === \"*\" && usedTokens.length > 0) {\n throw new RangeError(\n `The format string mustn't contain \\`${token}\\` and any other token at the same time`,\n );\n }\n\n usedTokens.push({ token: firstCharacter, fullToken: token });\n\n const parseResult = parser.run(\n dateStr,\n token,\n locale.match,\n subFnOptions,\n );\n\n if (!parseResult) {\n return constructFrom(referenceDate, NaN);\n }\n\n setters.push(parseResult.setter);\n\n dateStr = parseResult.rest;\n } else {\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError(\n \"Format string contains an unescaped latin alphabet character `\" +\n firstCharacter +\n \"`\",\n );\n }\n\n // Replace two single quote characters with one single quote character\n if (token === \"''\") {\n token = \"'\";\n } else if (firstCharacter === \"'\") {\n token = cleanEscapedString(token);\n }\n\n // Cut token from string, or, if string doesn't match the token, return Invalid Date\n if (dateStr.indexOf(token) === 0) {\n dateStr = dateStr.slice(token.length);\n } else {\n return constructFrom(referenceDate, NaN);\n }\n }\n }\n\n // Check if the remaining input contains something other than whitespace\n if (dateStr.length > 0 && notWhitespaceRegExp.test(dateStr)) {\n return constructFrom(referenceDate, NaN);\n }\n\n const uniquePrioritySetters = setters\n .map((setter) => setter.priority)\n .sort((a, b) => b - a)\n .filter((priority, index, array) => array.indexOf(priority) === index)\n .map((priority) =>\n setters\n .filter((setter) => setter.priority === priority)\n .sort((a, b) => b.subPriority - a.subPriority),\n )\n .map((setterArray) => setterArray[0]);\n\n let date = toDate(referenceDate);\n\n if (isNaN(date.getTime())) {\n return constructFrom(referenceDate, NaN);\n }\n\n const flags = {};\n for (const setter of uniquePrioritySetters) {\n if (!setter.validate(date, subFnOptions)) {\n return constructFrom(referenceDate, NaN);\n }\n\n const result = setter.set(date, flags, subFnOptions);\n // Result is tuple (date, flags)\n if (Array.isArray(result)) {\n date = result[0];\n Object.assign(flags, result[1]);\n // Result is date\n } else {\n date = result;\n }\n }\n\n return constructFrom(referenceDate, date);\n}\n\nfunction cleanEscapedString(input) {\n return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, \"'\");\n}\n\n// Fallback for modularized imports:\nexport default parse;\n"],"names":["formattingTokensRegExp","longFormattingTokensRegExp","escapedStringRegExp","doubleQuoteRegExp","notWhitespaceRegExp","unescapedLatinCharacterRegExp","parse","dateStr","formatStr","referenceDate","options","defaultOptions","getDefaultOptions","locale","defaultLocale","firstWeekContainsDate","weekStartsOn","toDate","constructFrom","NaN","subFnOptions","setters","DateToSystemTimezoneSetter","tokens","match","map","substring","firstCharacter","longFormatters","longFormatter","formatLong","join","usedTokens","token","useAdditionalWeekYearTokens","isProtectedWeekYearToken","warnOrThrowProtectedError","useAdditionalDayOfYearTokens","isProtectedDayOfYearToken","parser","parsers","incompatibleTokens","Array","isArray","incompatibleToken","find","usedToken","includes","RangeError","fullToken","length","push","parseResult","run","setter","rest","replace","indexOf","slice","test","uniquePrioritySetters","priority","sort","a","b","filter","index","array","subPriority","setterArray","date","isNaN","getTime","flags","validate","result","set","Object","assign"],"mappings":"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","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"parse.js","sources":["../../../node_modules/date-fns/parse.mjs"],"sourcesContent":["import { constructFrom } from \"./constructFrom.mjs\";\nimport { getDefaultOptions } from \"./getDefaultOptions.mjs\";\nimport { defaultLocale } from \"./_lib/defaultLocale.mjs\";\nimport { toDate } from \"./toDate.mjs\";\nimport { longFormatters } from \"./_lib/format/longFormatters.mjs\";\nimport {\n isProtectedDayOfYearToken,\n isProtectedWeekYearToken,\n warnOrThrowProtectedError,\n} from \"./_lib/protectedTokens.mjs\";\nimport { parsers } from \"./parse/_lib/parsers.mjs\";\nimport { DateToSystemTimezoneSetter } from \"./parse/_lib/Setter.mjs\";\n\n// Rexports of internal for libraries to use.\n// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874\nexport { longFormatters, parsers };\n\n/**\n * The {@link parse} function options.\n */\n\n// This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nconst formattingTokensRegExp =\n /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nconst longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\nconst escapedStringRegExp = /^'([^]*?)'?$/;\nconst doubleQuoteRegExp = /''/g;\n\nconst notWhitespaceRegExp = /\\S/;\nconst unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\n/**\n * @name parse\n * @category Common Helpers\n * @summary Parse the date.\n *\n * @description\n * Return the date parsed from string using the given format string.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters in the format string wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n *\n * Format of the format string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 5 below the table).\n *\n * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited\n * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:\n *\n * ```javascript\n * parse('23 AM', 'HH a', new Date())\n * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time\n * ```\n *\n * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true\n *\n * Accepted format string patterns:\n * | Unit |Prior| Pattern | Result examples | Notes |\n * |---------------------------------|-----|---------|-----------------------------------|-------|\n * | Era | 140 | G..GGG | AD, BC | |\n * | | | GGGG | Anno Domini, Before Christ | 2 |\n * | | | GGGGG | A, B | |\n * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 |\n * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 |\n * | | | yy | 44, 01, 00, 17 | 4 |\n * | | | yyy | 044, 001, 123, 999 | 4 |\n * | | | yyyy | 0044, 0001, 1900, 2017 | 4 |\n * | | | yyyyy | ... | 2,4 |\n * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 |\n * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 |\n * | | | YY | 44, 01, 00, 17 | 4,6 |\n * | | | YYY | 044, 001, 123, 999 | 4 |\n * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 |\n * | | | YYYYY | ... | 2,4 |\n * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 |\n * | | | RR | -43, 01, 00, 17 | 4,5 |\n * | | | RRR | -043, 001, 123, 999, -999 | 4,5 |\n * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 |\n * | | | RRRRR | ... | 2,4,5 |\n * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 |\n * | | | uu | -43, 01, 99, -99 | 4 |\n * | | | uuu | -043, 001, 123, 999, -999 | 4 |\n * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 |\n * | | | uuuuu | ... | 2,4 |\n * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | |\n * | | | Qo | 1st, 2nd, 3rd, 4th | 5 |\n * | | | QQ | 01, 02, 03, 04 | |\n * | | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | |\n * | | | qo | 1st, 2nd, 3rd, 4th | 5 |\n * | | | qq | 01, 02, 03, 04 | |\n * | | | qqq | Q1, Q2, Q3, Q4 | |\n * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | | qqqqq | 1, 2, 3, 4 | 3 |\n * | Month (formatting) | 110 | M | 1, 2, ..., 12 | |\n * | | | Mo | 1st, 2nd, ..., 12th | 5 |\n * | | | MM | 01, 02, ..., 12 | |\n * | | | MMM | Jan, Feb, ..., Dec | |\n * | | | MMMM | January, February, ..., December | 2 |\n * | | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | |\n * | | | Lo | 1st, 2nd, ..., 12th | 5 |\n * | | | LL | 01, 02, ..., 12 | |\n * | | | LLL | Jan, Feb, ..., Dec | |\n * | | | LLLL | January, February, ..., December | 2 |\n * | | | LLLLL | J, F, ..., D | |\n * | Local week of year | 100 | w | 1, 2, ..., 53 | |\n * | | | wo | 1st, 2nd, ..., 53th | 5 |\n * | | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 |\n * | | | Io | 1st, 2nd, ..., 53th | 5 |\n * | | | II | 01, 02, ..., 53 | 5 |\n * | Day of month | 90 | d | 1, 2, ..., 31 | |\n * | | | do | 1st, 2nd, ..., 31st | 5 |\n * | | | dd | 01, 02, ..., 31 | |\n * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 |\n * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 |\n * | | | DD | 01, 02, ..., 365, 366 | 7 |\n * | | | DDD | 001, 002, ..., 365, 366 | |\n * | | | DDDD | ... | 2 |\n * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | | EEEEE | M, T, W, T, F, S, S | |\n * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |\n * | | | io | 1st, 2nd, ..., 7th | 5 |\n * | | | ii | 01, 02, ..., 07 | 5 |\n * | | | iii | Mon, Tue, Wed, ..., Sun | 5 |\n * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |\n * | | | iiiii | M, T, W, T, F, S, S | 5 |\n * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 |\n * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |\n * | | | eo | 2nd, 3rd, ..., 1st | 5 |\n * | | | ee | 02, 03, ..., 01 | |\n * | | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | | eeeee | M, T, W, T, F, S, S | |\n * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |\n * | | | co | 2nd, 3rd, ..., 1st | 5 |\n * | | | cc | 02, 03, ..., 01 | |\n * | | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | | ccccc | M, T, W, T, F, S, S | |\n * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | AM, PM | 80 | a..aaa | AM, PM | |\n * | | | aaaa | a.m., p.m. | 2 |\n * | | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | |\n * | | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | | bbbbb | a, p, n, mi | |\n * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | |\n * | | | BBBB | at night, in the morning, ... | 2 |\n * | | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | |\n * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 |\n * | | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | |\n * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 |\n * | | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | |\n * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 |\n * | | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | |\n * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 |\n * | | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | 60 | m | 0, 1, ..., 59 | |\n * | | | mo | 0th, 1st, ..., 59th | 5 |\n * | | | mm | 00, 01, ..., 59 | |\n * | Second | 50 | s | 0, 1, ..., 59 | |\n * | | | so | 0th, 1st, ..., 59th | 5 |\n * | | | ss | 00, 01, ..., 59 | |\n * | Seconds timestamp | 40 | t | 512969520 | |\n * | | | tt | ... | 2 |\n * | Fraction of second | 30 | S | 0, 1, ..., 9 | |\n * | | | SS | 00, 01, ..., 99 | |\n * | | | SSS | 000, 001, ..., 999 | |\n * | | | SSSS | ... | 2 |\n * | Milliseconds timestamp | 20 | T | 512969520900 | |\n * | | | TT | ... | 2 |\n * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | |\n * | | | XX | -0800, +0530, Z | |\n * | | | XXX | -08:00, +05:30, Z | |\n * | | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | |\n * | | | xx | -0800, +0530, +0000 | |\n * | | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Long localized date | NA | P | 05/29/1453 | 5,8 |\n * | | | PP | May 29, 1453 | |\n * | | | PPP | May 29th, 1453 | |\n * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 |\n * | Long localized time | NA | p | 12:00 AM | 5,8 |\n * | | | pp | 12:00:00 AM | |\n * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | |\n * | | | PPpp | May 29, 1453, 12:00:00 AM | |\n * | | | PPPpp | May 29th, 1453 at ... | |\n * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular.\n * In `format` function, they will produce different result:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * `parse` will try to match both formatting and stand-alone units interchangably.\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table:\n * - for numerical units (`yyyyyyyy`) `parse` will try to match a number\n * as wide as the sequence\n * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit.\n * These variations are marked with \"2\" in the last column of the table.\n *\n * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 4. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:\n *\n * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00`\n *\n * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00`\n *\n * while `uu` will just assign the year as is:\n *\n * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00`\n *\n * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00`\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [setISOWeekYear](https://date-fns.org/docs/setISOWeekYear)\n * and [setWeekYear](https://date-fns.org/docs/setWeekYear)).\n *\n * 5. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based\n * on the given locale.\n *\n * using `en-US` locale: `P` => `MM/dd/yyyy`\n * using `en-US` locale: `p` => `hh:mm a`\n * using `pt-BR` locale: `P` => `dd/MM/yyyy`\n * using `pt-BR` locale: `p` => `HH:mm`\n *\n * Values will be assigned to the date in the descending order of its unit's priority.\n * Units of an equal priority overwrite each other in the order of appearance.\n *\n * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),\n * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing.\n *\n * `referenceDate` must be passed for correct work of the function.\n * If you're not sure which `referenceDate` to supply, create a new instance of Date:\n * `parse('02/11/2014', 'MM/dd/yyyy', new Date())`\n * In this case parsing will be done in the context of the current date.\n * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`,\n * then `Invalid Date` will be returned.\n *\n * The result may vary by locale.\n *\n * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.\n *\n * If parsing failed, `Invalid Date` will be returned.\n * Invalid Date is a Date, whose time value is NaN.\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateStr - The string to parse\n * @param formatStr - The string of tokens\n * @param referenceDate - defines values missing from the parsed dateString\n * @param options - An object with options.\n * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @returns The parsed date\n *\n * @throws `options.locale` must contain `match` property\n * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws format string contains an unescaped latin alphabet character\n *\n * @example\n * // Parse 11 February 2014 from middle-endian format:\n * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date())\n * //=> Tue Feb 11 2014 00:00:00\n *\n * @example\n * // Parse 28th of February in Esperanto locale in the context of 2010 year:\n * import eo from 'date-fns/locale/eo'\n * var result = parse('28-a de februaro', \"do 'de' MMMM\", new Date(2010, 0, 1), {\n * locale: eo\n * })\n * //=> Sun Feb 28 2010 00:00:00\n */\nexport function parse(dateStr, formatStr, referenceDate, options) {\n const defaultOptions = getDefaultOptions();\n const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale;\n\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n if (formatStr === \"\") {\n if (dateStr === \"\") {\n return toDate(referenceDate);\n } else {\n return constructFrom(referenceDate, NaN);\n }\n }\n\n const subFnOptions = {\n firstWeekContainsDate,\n weekStartsOn,\n locale,\n };\n\n // If timezone isn't specified, it will be set to the system timezone\n const setters = [new DateToSystemTimezoneSetter()];\n\n const tokens = formatStr\n .match(longFormattingTokensRegExp)\n .map((substring) => {\n const firstCharacter = substring[0];\n if (firstCharacter in longFormatters) {\n const longFormatter = longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong);\n }\n return substring;\n })\n .join(\"\")\n .match(formattingTokensRegExp);\n\n const usedTokens = [];\n\n for (let token of tokens) {\n if (\n !options?.useAdditionalWeekYearTokens &&\n isProtectedWeekYearToken(token)\n ) {\n warnOrThrowProtectedError(token, formatStr, dateStr);\n }\n if (\n !options?.useAdditionalDayOfYearTokens &&\n isProtectedDayOfYearToken(token)\n ) {\n warnOrThrowProtectedError(token, formatStr, dateStr);\n }\n\n const firstCharacter = token[0];\n const parser = parsers[firstCharacter];\n if (parser) {\n const { incompatibleTokens } = parser;\n if (Array.isArray(incompatibleTokens)) {\n const incompatibleToken = usedTokens.find(\n (usedToken) =>\n incompatibleTokens.includes(usedToken.token) ||\n usedToken.token === firstCharacter,\n );\n if (incompatibleToken) {\n throw new RangeError(\n `The format string mustn't contain \\`${incompatibleToken.fullToken}\\` and \\`${token}\\` at the same time`,\n );\n }\n } else if (parser.incompatibleTokens === \"*\" && usedTokens.length > 0) {\n throw new RangeError(\n `The format string mustn't contain \\`${token}\\` and any other token at the same time`,\n );\n }\n\n usedTokens.push({ token: firstCharacter, fullToken: token });\n\n const parseResult = parser.run(\n dateStr,\n token,\n locale.match,\n subFnOptions,\n );\n\n if (!parseResult) {\n return constructFrom(referenceDate, NaN);\n }\n\n setters.push(parseResult.setter);\n\n dateStr = parseResult.rest;\n } else {\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError(\n \"Format string contains an unescaped latin alphabet character `\" +\n firstCharacter +\n \"`\",\n );\n }\n\n // Replace two single quote characters with one single quote character\n if (token === \"''\") {\n token = \"'\";\n } else if (firstCharacter === \"'\") {\n token = cleanEscapedString(token);\n }\n\n // Cut token from string, or, if string doesn't match the token, return Invalid Date\n if (dateStr.indexOf(token) === 0) {\n dateStr = dateStr.slice(token.length);\n } else {\n return constructFrom(referenceDate, NaN);\n }\n }\n }\n\n // Check if the remaining input contains something other than whitespace\n if (dateStr.length > 0 && notWhitespaceRegExp.test(dateStr)) {\n return constructFrom(referenceDate, NaN);\n }\n\n const uniquePrioritySetters = setters\n .map((setter) => setter.priority)\n .sort((a, b) => b - a)\n .filter((priority, index, array) => array.indexOf(priority) === index)\n .map((priority) =>\n setters\n .filter((setter) => setter.priority === priority)\n .sort((a, b) => b.subPriority - a.subPriority),\n )\n .map((setterArray) => setterArray[0]);\n\n let date = toDate(referenceDate);\n\n if (isNaN(date.getTime())) {\n return constructFrom(referenceDate, NaN);\n }\n\n const flags = {};\n for (const setter of uniquePrioritySetters) {\n if (!setter.validate(date, subFnOptions)) {\n return constructFrom(referenceDate, NaN);\n }\n\n const result = setter.set(date, flags, subFnOptions);\n // Result is tuple (date, flags)\n if (Array.isArray(result)) {\n date = result[0];\n Object.assign(flags, result[1]);\n // Result is date\n } else {\n date = result;\n }\n }\n\n return constructFrom(referenceDate, date);\n}\n\nfunction cleanEscapedString(input) {\n return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, \"'\");\n}\n\n// Fallback for modularized imports:\nexport default parse;\n"],"names":["formattingTokensRegExp","longFormattingTokensRegExp","escapedStringRegExp","doubleQuoteRegExp","notWhitespaceRegExp","unescapedLatinCharacterRegExp","parse","dateStr","formatStr","referenceDate","options","defaultOptions","getDefaultOptions","locale","defaultLocale","firstWeekContainsDate","weekStartsOn","toDate","constructFrom","NaN","subFnOptions","setters","DateToSystemTimezoneSetter","tokens","match","map","substring","firstCharacter","longFormatters","longFormatter","formatLong","join","usedTokens","token","useAdditionalWeekYearTokens","isProtectedWeekYearToken","warnOrThrowProtectedError","useAdditionalDayOfYearTokens","isProtectedDayOfYearToken","parser","parsers","incompatibleTokens","Array","isArray","incompatibleToken","find","usedToken","includes","RangeError","fullToken","length","push","parseResult","run","setter","rest","replace","indexOf","slice","test","uniquePrioritySetters","priority","sort","a","b","filter","index","array","subPriority","setterArray","date","isNaN","getTime","flags","validate","result","set","Object","assign"],"mappings":"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","x_google_ignoreList":[0]}
|
package/ext/date-fns/parse2.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__exports as t}from"../../_virtual/parse.js";import{__require as e}from"./constructFrom2.js";import{__require as r}from"./getDefaultOptions2.js";import{__require as o}from"./_lib/defaultLocale.js";import{__require as n}from"./
|
|
1
|
+
import{__exports as t}from"../../_virtual/parse.js";import{__require as e}from"./constructFrom2.js";import{__require as r}from"./getDefaultOptions2.js";import{__require as o}from"./_lib/defaultLocale.js";import{__require as n}from"./toDate2.js";import{__require as a}from"./_lib/format/longFormatters2.js";import{__require as s}from"./_lib/protectedTokens2.js";import{__require as i}from"./parse/_lib/parsers2.js";import{__require as c}from"./parse/_lib/Setter2.js";var m;function l(){return m||(m=1,function(t){Object.defineProperty(t,"longFormatters",{enumerable:!0,get:function(){return p.longFormatters}}),t.parse=function(t,e,r,o){const n=(0,l.getDefaultOptions)(),a=o?.locale??n.locale??f.defaultLocale,s=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0;if(""===e)return""===t?(0,u.toDate)(r):(0,m.constructFrom)(r,NaN);const c={firstWeekContainsDate:s,weekStartsOn:i,locale:a},y=[new g.DateToSystemTimezoneSetter],D=e.match(d).map((t=>{const e=t[0];if(e in p.longFormatters){return(0,p.longFormatters[e])(t,a.formatLong)}return t})).join("").match(h),F=[];for(let n of D){!o?.useAdditionalWeekYearTokens&&(0,k.isProtectedWeekYearToken)(n)&&(0,k.warnOrThrowProtectedError)(n,e,t),!o?.useAdditionalDayOfYearTokens&&(0,k.isProtectedDayOfYearToken)(n)&&(0,k.warnOrThrowProtectedError)(n,e,t);const s=n[0],i=_.parsers[s];if(i){const{incompatibleTokens:e}=i;if(Array.isArray(e)){const t=F.find((t=>e.includes(t.token)||t.token===s));if(t)throw new RangeError(`The format string mustn't contain \`${t.fullToken}\` and \`${n}\` at the same time`)}else if("*"===i.incompatibleTokens&&F.length>0)throw new RangeError(`The format string mustn't contain \`${n}\` and any other token at the same time`);F.push({token:s,fullToken:n});const o=i.run(t,n,a.match,c);if(!o)return(0,m.constructFrom)(r,NaN);y.push(o.setter),t=o.rest}else{if(s.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+s+"`");if("''"===n?n="'":"'"===s&&(n=n.match(w)[1].replace(O,"'")),0!==t.indexOf(n))return(0,m.constructFrom)(r,NaN);t=t.slice(n.length)}}if(t.length>0&&T.test(t))return(0,m.constructFrom)(r,NaN);const N=y.map((t=>t.priority)).sort(((t,e)=>e-t)).filter(((t,e,r)=>r.indexOf(t)===e)).map((t=>y.filter((e=>e.priority===t)).sort(((t,e)=>e.subPriority-t.subPriority)))).map((t=>t[0]));let j=(0,u.toDate)(r);if(isNaN(j.getTime()))return(0,m.constructFrom)(r,NaN);const q={};for(const t of N){if(!t.validate(j,c))return(0,m.constructFrom)(r,NaN);const e=t.set(j,q,c);Array.isArray(e)?(j=e[0],Object.assign(q,e[1])):j=e}return(0,m.constructFrom)(r,j)},Object.defineProperty(t,"parsers",{enumerable:!0,get:function(){return _.parsers}});var m=e(),l=r(),f=o(),u=n(),p=a(),k=s(),_=i(),g=c();const h=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,d=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,w=/^'([^]*?)'?$/,O=/''/g,T=/\S/,b=/[a-zA-Z]/}(t)),t}export{l as __require};
|
|
2
2
|
//# sourceMappingURL=parse2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse2.js","sources":["../../../node_modules/date-fns/parse.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"longFormatters\", {\n enumerable: true,\n get: function () {\n return _index5.longFormatters;\n },\n});\nexports.parse = parse;\nObject.defineProperty(exports, \"parsers\", {\n enumerable: true,\n get: function () {\n return _index7.parsers;\n },\n});\nvar _index = require(\"./constructFrom.js\");\nvar _index2 = require(\"./getDefaultOptions.js\");\nvar _index3 = require(\"./_lib/defaultLocale.js\");\nvar _index4 = require(\"./toDate.js\");\n\nvar _index5 = require(\"./_lib/format/longFormatters.js\");\nvar _index6 = require(\"./_lib/protectedTokens.js\");\n\nvar _index7 = require(\"./parse/_lib/parsers.js\");\n\nvar _Setter = require(\"./parse/_lib/Setter.js\");\n\n// Rexports of internal for libraries to use.\n// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874\n\n/**\n * The {@link parse} function options.\n */\n\n// This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nconst formattingTokensRegExp =\n /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nconst longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\nconst escapedStringRegExp = /^'([^]*?)'?$/;\nconst doubleQuoteRegExp = /''/g;\n\nconst notWhitespaceRegExp = /\\S/;\nconst unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\n/**\n * @name parse\n * @category Common Helpers\n * @summary Parse the date.\n *\n * @description\n * Return the date parsed from string using the given format string.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters in the format string wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n *\n * Format of the format string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 5 below the table).\n *\n * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited\n * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:\n *\n * ```javascript\n * parse('23 AM', 'HH a', new Date())\n * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time\n * ```\n *\n * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true\n *\n * Accepted format string patterns:\n * | Unit |Prior| Pattern | Result examples | Notes |\n * |---------------------------------|-----|---------|-----------------------------------|-------|\n * | Era | 140 | G..GGG | AD, BC | |\n * | | | GGGG | Anno Domini, Before Christ | 2 |\n * | | | GGGGG | A, B | |\n * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 |\n * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 |\n * | | | yy | 44, 01, 00, 17 | 4 |\n * | | | yyy | 044, 001, 123, 999 | 4 |\n * | | | yyyy | 0044, 0001, 1900, 2017 | 4 |\n * | | | yyyyy | ... | 2,4 |\n * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 |\n * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 |\n * | | | YY | 44, 01, 00, 17 | 4,6 |\n * | | | YYY | 044, 001, 123, 999 | 4 |\n * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 |\n * | | | YYYYY | ... | 2,4 |\n * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 |\n * | | | RR | -43, 01, 00, 17 | 4,5 |\n * | | | RRR | -043, 001, 123, 999, -999 | 4,5 |\n * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 |\n * | | | RRRRR | ... | 2,4,5 |\n * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 |\n * | | | uu | -43, 01, 99, -99 | 4 |\n * | | | uuu | -043, 001, 123, 999, -999 | 4 |\n * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 |\n * | | | uuuuu | ... | 2,4 |\n * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | |\n * | | | Qo | 1st, 2nd, 3rd, 4th | 5 |\n * | | | QQ | 01, 02, 03, 04 | |\n * | | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | |\n * | | | qo | 1st, 2nd, 3rd, 4th | 5 |\n * | | | qq | 01, 02, 03, 04 | |\n * | | | qqq | Q1, Q2, Q3, Q4 | |\n * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | | qqqqq | 1, 2, 3, 4 | 3 |\n * | Month (formatting) | 110 | M | 1, 2, ..., 12 | |\n * | | | Mo | 1st, 2nd, ..., 12th | 5 |\n * | | | MM | 01, 02, ..., 12 | |\n * | | | MMM | Jan, Feb, ..., Dec | |\n * | | | MMMM | January, February, ..., December | 2 |\n * | | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | |\n * | | | Lo | 1st, 2nd, ..., 12th | 5 |\n * | | | LL | 01, 02, ..., 12 | |\n * | | | LLL | Jan, Feb, ..., Dec | |\n * | | | LLLL | January, February, ..., December | 2 |\n * | | | LLLLL | J, F, ..., D | |\n * | Local week of year | 100 | w | 1, 2, ..., 53 | |\n * | | | wo | 1st, 2nd, ..., 53th | 5 |\n * | | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 |\n * | | | Io | 1st, 2nd, ..., 53th | 5 |\n * | | | II | 01, 02, ..., 53 | 5 |\n * | Day of month | 90 | d | 1, 2, ..., 31 | |\n * | | | do | 1st, 2nd, ..., 31st | 5 |\n * | | | dd | 01, 02, ..., 31 | |\n * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 |\n * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 |\n * | | | DD | 01, 02, ..., 365, 366 | 7 |\n * | | | DDD | 001, 002, ..., 365, 366 | |\n * | | | DDDD | ... | 2 |\n * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | | EEEEE | M, T, W, T, F, S, S | |\n * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |\n * | | | io | 1st, 2nd, ..., 7th | 5 |\n * | | | ii | 01, 02, ..., 07 | 5 |\n * | | | iii | Mon, Tue, Wed, ..., Sun | 5 |\n * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |\n * | | | iiiii | M, T, W, T, F, S, S | 5 |\n * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 |\n * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |\n * | | | eo | 2nd, 3rd, ..., 1st | 5 |\n * | | | ee | 02, 03, ..., 01 | |\n * | | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | | eeeee | M, T, W, T, F, S, S | |\n * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |\n * | | | co | 2nd, 3rd, ..., 1st | 5 |\n * | | | cc | 02, 03, ..., 01 | |\n * | | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | | ccccc | M, T, W, T, F, S, S | |\n * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | AM, PM | 80 | a..aaa | AM, PM | |\n * | | | aaaa | a.m., p.m. | 2 |\n * | | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | |\n * | | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | | bbbbb | a, p, n, mi | |\n * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | |\n * | | | BBBB | at night, in the morning, ... | 2 |\n * | | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | |\n * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 |\n * | | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | |\n * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 |\n * | | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | |\n * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 |\n * | | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | |\n * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 |\n * | | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | 60 | m | 0, 1, ..., 59 | |\n * | | | mo | 0th, 1st, ..., 59th | 5 |\n * | | | mm | 00, 01, ..., 59 | |\n * | Second | 50 | s | 0, 1, ..., 59 | |\n * | | | so | 0th, 1st, ..., 59th | 5 |\n * | | | ss | 00, 01, ..., 59 | |\n * | Seconds timestamp | 40 | t | 512969520 | |\n * | | | tt | ... | 2 |\n * | Fraction of second | 30 | S | 0, 1, ..., 9 | |\n * | | | SS | 00, 01, ..., 99 | |\n * | | | SSS | 000, 001, ..., 999 | |\n * | | | SSSS | ... | 2 |\n * | Milliseconds timestamp | 20 | T | 512969520900 | |\n * | | | TT | ... | 2 |\n * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | |\n * | | | XX | -0800, +0530, Z | |\n * | | | XXX | -08:00, +05:30, Z | |\n * | | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | |\n * | | | xx | -0800, +0530, +0000 | |\n * | | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Long localized date | NA | P | 05/29/1453 | 5,8 |\n * | | | PP | May 29, 1453 | |\n * | | | PPP | May 29th, 1453 | |\n * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 |\n * | Long localized time | NA | p | 12:00 AM | 5,8 |\n * | | | pp | 12:00:00 AM | |\n * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | |\n * | | | PPpp | May 29, 1453, 12:00:00 AM | |\n * | | | PPPpp | May 29th, 1453 at ... | |\n * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular.\n * In `format` function, they will produce different result:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * `parse` will try to match both formatting and stand-alone units interchangably.\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table:\n * - for numerical units (`yyyyyyyy`) `parse` will try to match a number\n * as wide as the sequence\n * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit.\n * These variations are marked with \"2\" in the last column of the table.\n *\n * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 4. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:\n *\n * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00`\n *\n * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00`\n *\n * while `uu` will just assign the year as is:\n *\n * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00`\n *\n * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00`\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [setISOWeekYear](https://date-fns.org/docs/setISOWeekYear)\n * and [setWeekYear](https://date-fns.org/docs/setWeekYear)).\n *\n * 5. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based\n * on the given locale.\n *\n * using `en-US` locale: `P` => `MM/dd/yyyy`\n * using `en-US` locale: `p` => `hh:mm a`\n * using `pt-BR` locale: `P` => `dd/MM/yyyy`\n * using `pt-BR` locale: `p` => `HH:mm`\n *\n * Values will be assigned to the date in the descending order of its unit's priority.\n * Units of an equal priority overwrite each other in the order of appearance.\n *\n * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),\n * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing.\n *\n * `referenceDate` must be passed for correct work of the function.\n * If you're not sure which `referenceDate` to supply, create a new instance of Date:\n * `parse('02/11/2014', 'MM/dd/yyyy', new Date())`\n * In this case parsing will be done in the context of the current date.\n * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`,\n * then `Invalid Date` will be returned.\n *\n * The result may vary by locale.\n *\n * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.\n *\n * If parsing failed, `Invalid Date` will be returned.\n * Invalid Date is a Date, whose time value is NaN.\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateStr - The string to parse\n * @param formatStr - The string of tokens\n * @param referenceDate - defines values missing from the parsed dateString\n * @param options - An object with options.\n * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @returns The parsed date\n *\n * @throws `options.locale` must contain `match` property\n * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws format string contains an unescaped latin alphabet character\n *\n * @example\n * // Parse 11 February 2014 from middle-endian format:\n * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date())\n * //=> Tue Feb 11 2014 00:00:00\n *\n * @example\n * // Parse 28th of February in Esperanto locale in the context of 2010 year:\n * import eo from 'date-fns/locale/eo'\n * var result = parse('28-a de februaro', \"do 'de' MMMM\", new Date(2010, 0, 1), {\n * locale: eo\n * })\n * //=> Sun Feb 28 2010 00:00:00\n */\nfunction parse(dateStr, formatStr, referenceDate, options) {\n const defaultOptions = (0, _index2.getDefaultOptions)();\n const locale =\n options?.locale ?? defaultOptions.locale ?? _index3.defaultLocale;\n\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n if (formatStr === \"\") {\n if (dateStr === \"\") {\n return (0, _index4.toDate)(referenceDate);\n } else {\n return (0, _index.constructFrom)(referenceDate, NaN);\n }\n }\n\n const subFnOptions = {\n firstWeekContainsDate,\n weekStartsOn,\n locale,\n };\n\n // If timezone isn't specified, it will be set to the system timezone\n const setters = [new _Setter.DateToSystemTimezoneSetter()];\n\n const tokens = formatStr\n .match(longFormattingTokensRegExp)\n .map((substring) => {\n const firstCharacter = substring[0];\n if (firstCharacter in _index5.longFormatters) {\n const longFormatter = _index5.longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong);\n }\n return substring;\n })\n .join(\"\")\n .match(formattingTokensRegExp);\n\n const usedTokens = [];\n\n for (let token of tokens) {\n if (\n !options?.useAdditionalWeekYearTokens &&\n (0, _index6.isProtectedWeekYearToken)(token)\n ) {\n (0, _index6.warnOrThrowProtectedError)(token, formatStr, dateStr);\n }\n if (\n !options?.useAdditionalDayOfYearTokens &&\n (0, _index6.isProtectedDayOfYearToken)(token)\n ) {\n (0, _index6.warnOrThrowProtectedError)(token, formatStr, dateStr);\n }\n\n const firstCharacter = token[0];\n const parser = _index7.parsers[firstCharacter];\n if (parser) {\n const { incompatibleTokens } = parser;\n if (Array.isArray(incompatibleTokens)) {\n const incompatibleToken = usedTokens.find(\n (usedToken) =>\n incompatibleTokens.includes(usedToken.token) ||\n usedToken.token === firstCharacter,\n );\n if (incompatibleToken) {\n throw new RangeError(\n `The format string mustn't contain \\`${incompatibleToken.fullToken}\\` and \\`${token}\\` at the same time`,\n );\n }\n } else if (parser.incompatibleTokens === \"*\" && usedTokens.length > 0) {\n throw new RangeError(\n `The format string mustn't contain \\`${token}\\` and any other token at the same time`,\n );\n }\n\n usedTokens.push({ token: firstCharacter, fullToken: token });\n\n const parseResult = parser.run(\n dateStr,\n token,\n locale.match,\n subFnOptions,\n );\n\n if (!parseResult) {\n return (0, _index.constructFrom)(referenceDate, NaN);\n }\n\n setters.push(parseResult.setter);\n\n dateStr = parseResult.rest;\n } else {\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError(\n \"Format string contains an unescaped latin alphabet character `\" +\n firstCharacter +\n \"`\",\n );\n }\n\n // Replace two single quote characters with one single quote character\n if (token === \"''\") {\n token = \"'\";\n } else if (firstCharacter === \"'\") {\n token = cleanEscapedString(token);\n }\n\n // Cut token from string, or, if string doesn't match the token, return Invalid Date\n if (dateStr.indexOf(token) === 0) {\n dateStr = dateStr.slice(token.length);\n } else {\n return (0, _index.constructFrom)(referenceDate, NaN);\n }\n }\n }\n\n // Check if the remaining input contains something other than whitespace\n if (dateStr.length > 0 && notWhitespaceRegExp.test(dateStr)) {\n return (0, _index.constructFrom)(referenceDate, NaN);\n }\n\n const uniquePrioritySetters = setters\n .map((setter) => setter.priority)\n .sort((a, b) => b - a)\n .filter((priority, index, array) => array.indexOf(priority) === index)\n .map((priority) =>\n setters\n .filter((setter) => setter.priority === priority)\n .sort((a, b) => b.subPriority - a.subPriority),\n )\n .map((setterArray) => setterArray[0]);\n\n let date = (0, _index4.toDate)(referenceDate);\n\n if (isNaN(date.getTime())) {\n return (0, _index.constructFrom)(referenceDate, NaN);\n }\n\n const flags = {};\n for (const setter of uniquePrioritySetters) {\n if (!setter.validate(date, subFnOptions)) {\n return (0, _index.constructFrom)(referenceDate, NaN);\n }\n\n const result = setter.set(date, flags, subFnOptions);\n // Result is tuple (date, flags)\n if (Array.isArray(result)) {\n date = result[0];\n Object.assign(flags, result[1]);\n // Result is date\n } else {\n date = result;\n }\n }\n\n return (0, _index.constructFrom)(referenceDate, date);\n}\n\nfunction cleanEscapedString(input) {\n return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, \"'\");\n}\n"],"names":["Object","defineProperty","exports","enumerable","get","_index5","longFormatters","parse","dateStr","formatStr","referenceDate","options","defaultOptions","_index2","getDefaultOptions","locale","_index3","defaultLocale","firstWeekContainsDate","weekStartsOn","_index4","toDate","_index","constructFrom","NaN","subFnOptions","setters","_Setter","DateToSystemTimezoneSetter","tokens","match","longFormattingTokensRegExp","map","substring","firstCharacter","longFormatter","formatLong","join","formattingTokensRegExp","usedTokens","token","useAdditionalWeekYearTokens","_index6","isProtectedWeekYearToken","warnOrThrowProtectedError","useAdditionalDayOfYearTokens","isProtectedDayOfYearToken","parser","_index7","parsers","incompatibleTokens","Array","isArray","incompatibleToken","find","usedToken","includes","RangeError","fullToken","length","push","parseResult","run","setter","rest","unescapedLatinCharacterRegExp","escapedStringRegExp","replace","doubleQuoteRegExp","indexOf","slice","notWhitespaceRegExp","test","uniquePrioritySetters","priority","sort","a","b","filter","index","array","subPriority","setterArray","date","isNaN","getTime","flags","validate","result","set","assign","require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6","require$$7"],"mappings":"+fACAA,OAAOC,eAAeC,EAAS,iBAAkB,CAC/CC,YAAY,EACZC,IAAK,WACH,OAAOC,EAAQC,cAChB,IAEHJ,EAAAK,MA2VA,SAAeC,EAASC,EAAWC,EAAeC,GAChD,MAAMC,GAAiB,EAAIC,EAAQC,qBAC7BC,EACJJ,GAASI,QAAUH,EAAeG,QAAUC,EAAQC,cAEhDC,EACJP,GAASO,uBACTP,GAASI,QAAQJ,SAASO,uBAC1BN,EAAeM,uBACfN,EAAeG,QAAQJ,SAASO,uBAChC,EAEIC,EACJR,GAASQ,cACTR,GAASI,QAAQJ,SAASQ,cAC1BP,EAAeO,cACfP,EAAeG,QAAQJ,SAASQ,cAChC,EAEF,GAAkB,KAAdV,EACF,MAAgB,KAAZD,GACK,EAAIY,EAAQC,QAAQX,IAEpB,EAAIY,EAAOC,eAAeb,EAAec,KAIpD,MAAMC,EAAe,CACnBP,wBACAC,eACAJ,UAIIW,EAAU,CAAC,IAAIC,EAAQC,4BAEvBC,EAASpB,EACZqB,MAAMC,GACNC,KAAKC,IACJ,MAAMC,EAAiBD,EAAU,GACjC,GAAIC,KAAkB7B,EAAQC,eAAgB,CAE5C,OAAO6B,EADe9B,EAAQC,eAAe4B,IACxBD,EAAWlB,EAAOqB,WACxC,CACD,OAAOH,CAAS,IAEjBI,KAAK,IACLP,MAAMQ,GAEHC,EAAa,GAEnB,IAAK,IAAIC,KAASX,EAAQ,EAErBlB,GAAS8B,8BACV,EAAIC,EAAQC,0BAA0BH,KAEtC,EAAIE,EAAQE,2BAA2BJ,EAAO/B,EAAWD,IAGxDG,GAASkC,+BACV,EAAIH,EAAQI,2BAA2BN,KAEvC,EAAIE,EAAQE,2BAA2BJ,EAAO/B,EAAWD,GAG3D,MAAM0B,EAAiBM,EAAM,GACvBO,EAASC,EAAQC,QAAQf,GAC/B,GAAIa,EAAQ,CACV,MAAMG,mBAAEA,GAAuBH,EAC/B,GAAII,MAAMC,QAAQF,GAAqB,CACrC,MAAMG,EAAoBd,EAAWe,MAClCC,GACCL,EAAmBM,SAASD,EAAUf,QACtCe,EAAUf,QAAUN,IAExB,GAAImB,EACF,MAAM,IAAII,WACR,uCAAuCJ,EAAkBK,qBAAqBlB,uBAG1F,MAAa,GAAkC,MAA9BO,EAAOG,oBAA8BX,EAAWoB,OAAS,EAClE,MAAM,IAAIF,WACR,uCAAuCjB,4CAI3CD,EAAWqB,KAAK,CAAEpB,MAAON,EAAgBwB,UAAWlB,IAEpD,MAAMqB,EAAcd,EAAOe,IACzBtD,EACAgC,EACAzB,EAAOe,MACPL,GAGF,IAAKoC,EACH,OAAO,EAAIvC,EAAOC,eAAeb,EAAec,KAGlDE,EAAQkC,KAAKC,EAAYE,QAEzBvD,EAAUqD,EAAYG,IAC5B,KAAW,CACL,GAAI9B,EAAeJ,MAAMmC,GACvB,MAAM,IAAIR,WACR,iEACEvB,EACA,KAYN,GAPc,OAAVM,EACFA,EAAQ,IACoB,MAAnBN,IACTM,EAA2BA,EAuDpBV,MAAMoC,GAAqB,GAAGC,QAAQC,EAAmB,MAnDnC,IAA3B5D,EAAQ6D,QAAQ7B,GAGlB,OAAO,EAAIlB,EAAOC,eAAeb,EAAec,KAFhDhB,EAAUA,EAAQ8D,MAAM9B,EAAMmB,OAIjC,CACF,CAGD,GAAInD,EAAQmD,OAAS,GAAKY,EAAoBC,KAAKhE,GACjD,OAAO,EAAIc,EAAOC,eAAeb,EAAec,KAGlD,MAAMiD,EAAwB/C,EAC3BM,KAAK+B,GAAWA,EAAOW,WACvBC,MAAK,CAACC,EAAGC,IAAMA,EAAID,IACnBE,QAAO,CAACJ,EAAUK,EAAOC,IAAUA,EAAMX,QAAQK,KAAcK,IAC/D/C,KAAK0C,GACJhD,EACGoD,QAAQf,GAAWA,EAAOW,WAAaA,IACvCC,MAAK,CAACC,EAAGC,IAAMA,EAAEI,YAAcL,EAAEK,gBAErCjD,KAAKkD,GAAgBA,EAAY,KAEpC,IAAIC,GAAO,EAAI/D,EAAQC,QAAQX,GAE/B,GAAI0E,MAAMD,EAAKE,WACb,OAAO,EAAI/D,EAAOC,eAAeb,EAAec,KAGlD,MAAM8D,EAAQ,CAAA,EACd,IAAK,MAAMvB,KAAUU,EAAuB,CAC1C,IAAKV,EAAOwB,SAASJ,EAAM1D,GACzB,OAAO,EAAIH,EAAOC,eAAeb,EAAec,KAGlD,MAAMgE,EAASzB,EAAO0B,IAAIN,EAAMG,EAAO7D,GAEnC0B,MAAMC,QAAQoC,IAChBL,EAAOK,EAAO,GACdxF,OAAO0F,OAAOJ,EAAOE,EAAO,KAG5BL,EAAOK,CAEV,CAED,OAAO,EAAIlE,EAAOC,eAAeb,EAAeyE,EACjD,EAjgBDnF,OAAOC,eAAeC,EAAS,UAAW,CACxCC,YAAY,EACZC,IAAK,WACH,OAAO4C,EAAQC,OAChB,IAEH,IAAI3B,EAASqE,IACT9E,EAAU+E,IACV5E,EAAU6E,IACVzE,EAAU0E,IAEVzF,EAAU0F,IACVrD,EAAUsD,IAEVhD,EAAUiD,IAEVtE,EAAUuE,IAoBd,MAAM5D,EACJ,wDAIIP,EAA6B,oCAE7BmC,EAAsB,eACtBE,EAAoB,MAEpBG,EAAsB,KACtBN,EAAgC","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"parse2.js","sources":["../../../node_modules/date-fns/parse.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"longFormatters\", {\n enumerable: true,\n get: function () {\n return _index5.longFormatters;\n },\n});\nexports.parse = parse;\nObject.defineProperty(exports, \"parsers\", {\n enumerable: true,\n get: function () {\n return _index7.parsers;\n },\n});\nvar _index = require(\"./constructFrom.js\");\nvar _index2 = require(\"./getDefaultOptions.js\");\nvar _index3 = require(\"./_lib/defaultLocale.js\");\nvar _index4 = require(\"./toDate.js\");\n\nvar _index5 = require(\"./_lib/format/longFormatters.js\");\nvar _index6 = require(\"./_lib/protectedTokens.js\");\n\nvar _index7 = require(\"./parse/_lib/parsers.js\");\n\nvar _Setter = require(\"./parse/_lib/Setter.js\");\n\n// Rexports of internal for libraries to use.\n// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874\n\n/**\n * The {@link parse} function options.\n */\n\n// This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nconst formattingTokensRegExp =\n /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nconst longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\nconst escapedStringRegExp = /^'([^]*?)'?$/;\nconst doubleQuoteRegExp = /''/g;\n\nconst notWhitespaceRegExp = /\\S/;\nconst unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\n/**\n * @name parse\n * @category Common Helpers\n * @summary Parse the date.\n *\n * @description\n * Return the date parsed from string using the given format string.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters in the format string wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n *\n * Format of the format string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 5 below the table).\n *\n * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited\n * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:\n *\n * ```javascript\n * parse('23 AM', 'HH a', new Date())\n * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time\n * ```\n *\n * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true\n *\n * Accepted format string patterns:\n * | Unit |Prior| Pattern | Result examples | Notes |\n * |---------------------------------|-----|---------|-----------------------------------|-------|\n * | Era | 140 | G..GGG | AD, BC | |\n * | | | GGGG | Anno Domini, Before Christ | 2 |\n * | | | GGGGG | A, B | |\n * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 |\n * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 |\n * | | | yy | 44, 01, 00, 17 | 4 |\n * | | | yyy | 044, 001, 123, 999 | 4 |\n * | | | yyyy | 0044, 0001, 1900, 2017 | 4 |\n * | | | yyyyy | ... | 2,4 |\n * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 |\n * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 |\n * | | | YY | 44, 01, 00, 17 | 4,6 |\n * | | | YYY | 044, 001, 123, 999 | 4 |\n * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 |\n * | | | YYYYY | ... | 2,4 |\n * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 |\n * | | | RR | -43, 01, 00, 17 | 4,5 |\n * | | | RRR | -043, 001, 123, 999, -999 | 4,5 |\n * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 |\n * | | | RRRRR | ... | 2,4,5 |\n * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 |\n * | | | uu | -43, 01, 99, -99 | 4 |\n * | | | uuu | -043, 001, 123, 999, -999 | 4 |\n * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 |\n * | | | uuuuu | ... | 2,4 |\n * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | |\n * | | | Qo | 1st, 2nd, 3rd, 4th | 5 |\n * | | | QQ | 01, 02, 03, 04 | |\n * | | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | |\n * | | | qo | 1st, 2nd, 3rd, 4th | 5 |\n * | | | qq | 01, 02, 03, 04 | |\n * | | | qqq | Q1, Q2, Q3, Q4 | |\n * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | | qqqqq | 1, 2, 3, 4 | 3 |\n * | Month (formatting) | 110 | M | 1, 2, ..., 12 | |\n * | | | Mo | 1st, 2nd, ..., 12th | 5 |\n * | | | MM | 01, 02, ..., 12 | |\n * | | | MMM | Jan, Feb, ..., Dec | |\n * | | | MMMM | January, February, ..., December | 2 |\n * | | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | |\n * | | | Lo | 1st, 2nd, ..., 12th | 5 |\n * | | | LL | 01, 02, ..., 12 | |\n * | | | LLL | Jan, Feb, ..., Dec | |\n * | | | LLLL | January, February, ..., December | 2 |\n * | | | LLLLL | J, F, ..., D | |\n * | Local week of year | 100 | w | 1, 2, ..., 53 | |\n * | | | wo | 1st, 2nd, ..., 53th | 5 |\n * | | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 |\n * | | | Io | 1st, 2nd, ..., 53th | 5 |\n * | | | II | 01, 02, ..., 53 | 5 |\n * | Day of month | 90 | d | 1, 2, ..., 31 | |\n * | | | do | 1st, 2nd, ..., 31st | 5 |\n * | | | dd | 01, 02, ..., 31 | |\n * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 |\n * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 |\n * | | | DD | 01, 02, ..., 365, 366 | 7 |\n * | | | DDD | 001, 002, ..., 365, 366 | |\n * | | | DDDD | ... | 2 |\n * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | | EEEEE | M, T, W, T, F, S, S | |\n * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |\n * | | | io | 1st, 2nd, ..., 7th | 5 |\n * | | | ii | 01, 02, ..., 07 | 5 |\n * | | | iii | Mon, Tue, Wed, ..., Sun | 5 |\n * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |\n * | | | iiiii | M, T, W, T, F, S, S | 5 |\n * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 |\n * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |\n * | | | eo | 2nd, 3rd, ..., 1st | 5 |\n * | | | ee | 02, 03, ..., 01 | |\n * | | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | | eeeee | M, T, W, T, F, S, S | |\n * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |\n * | | | co | 2nd, 3rd, ..., 1st | 5 |\n * | | | cc | 02, 03, ..., 01 | |\n * | | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | | ccccc | M, T, W, T, F, S, S | |\n * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | AM, PM | 80 | a..aaa | AM, PM | |\n * | | | aaaa | a.m., p.m. | 2 |\n * | | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | |\n * | | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | | bbbbb | a, p, n, mi | |\n * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | |\n * | | | BBBB | at night, in the morning, ... | 2 |\n * | | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | |\n * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 |\n * | | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | |\n * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 |\n * | | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | |\n * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 |\n * | | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | |\n * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 |\n * | | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | 60 | m | 0, 1, ..., 59 | |\n * | | | mo | 0th, 1st, ..., 59th | 5 |\n * | | | mm | 00, 01, ..., 59 | |\n * | Second | 50 | s | 0, 1, ..., 59 | |\n * | | | so | 0th, 1st, ..., 59th | 5 |\n * | | | ss | 00, 01, ..., 59 | |\n * | Seconds timestamp | 40 | t | 512969520 | |\n * | | | tt | ... | 2 |\n * | Fraction of second | 30 | S | 0, 1, ..., 9 | |\n * | | | SS | 00, 01, ..., 99 | |\n * | | | SSS | 000, 001, ..., 999 | |\n * | | | SSSS | ... | 2 |\n * | Milliseconds timestamp | 20 | T | 512969520900 | |\n * | | | TT | ... | 2 |\n * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | |\n * | | | XX | -0800, +0530, Z | |\n * | | | XXX | -08:00, +05:30, Z | |\n * | | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | |\n * | | | xx | -0800, +0530, +0000 | |\n * | | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Long localized date | NA | P | 05/29/1453 | 5,8 |\n * | | | PP | May 29, 1453 | |\n * | | | PPP | May 29th, 1453 | |\n * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 |\n * | Long localized time | NA | p | 12:00 AM | 5,8 |\n * | | | pp | 12:00:00 AM | |\n * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | |\n * | | | PPpp | May 29, 1453, 12:00:00 AM | |\n * | | | PPPpp | May 29th, 1453 at ... | |\n * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular.\n * In `format` function, they will produce different result:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * `parse` will try to match both formatting and stand-alone units interchangably.\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table:\n * - for numerical units (`yyyyyyyy`) `parse` will try to match a number\n * as wide as the sequence\n * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit.\n * These variations are marked with \"2\" in the last column of the table.\n *\n * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 4. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:\n *\n * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00`\n *\n * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00`\n *\n * while `uu` will just assign the year as is:\n *\n * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00`\n *\n * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00`\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [setISOWeekYear](https://date-fns.org/docs/setISOWeekYear)\n * and [setWeekYear](https://date-fns.org/docs/setWeekYear)).\n *\n * 5. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based\n * on the given locale.\n *\n * using `en-US` locale: `P` => `MM/dd/yyyy`\n * using `en-US` locale: `p` => `hh:mm a`\n * using `pt-BR` locale: `P` => `dd/MM/yyyy`\n * using `pt-BR` locale: `p` => `HH:mm`\n *\n * Values will be assigned to the date in the descending order of its unit's priority.\n * Units of an equal priority overwrite each other in the order of appearance.\n *\n * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),\n * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing.\n *\n * `referenceDate` must be passed for correct work of the function.\n * If you're not sure which `referenceDate` to supply, create a new instance of Date:\n * `parse('02/11/2014', 'MM/dd/yyyy', new Date())`\n * In this case parsing will be done in the context of the current date.\n * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`,\n * then `Invalid Date` will be returned.\n *\n * The result may vary by locale.\n *\n * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.\n *\n * If parsing failed, `Invalid Date` will be returned.\n * Invalid Date is a Date, whose time value is NaN.\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateStr - The string to parse\n * @param formatStr - The string of tokens\n * @param referenceDate - defines values missing from the parsed dateString\n * @param options - An object with options.\n * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @returns The parsed date\n *\n * @throws `options.locale` must contain `match` property\n * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws format string contains an unescaped latin alphabet character\n *\n * @example\n * // Parse 11 February 2014 from middle-endian format:\n * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date())\n * //=> Tue Feb 11 2014 00:00:00\n *\n * @example\n * // Parse 28th of February in Esperanto locale in the context of 2010 year:\n * import eo from 'date-fns/locale/eo'\n * var result = parse('28-a de februaro', \"do 'de' MMMM\", new Date(2010, 0, 1), {\n * locale: eo\n * })\n * //=> Sun Feb 28 2010 00:00:00\n */\nfunction parse(dateStr, formatStr, referenceDate, options) {\n const defaultOptions = (0, _index2.getDefaultOptions)();\n const locale =\n options?.locale ?? defaultOptions.locale ?? _index3.defaultLocale;\n\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n if (formatStr === \"\") {\n if (dateStr === \"\") {\n return (0, _index4.toDate)(referenceDate);\n } else {\n return (0, _index.constructFrom)(referenceDate, NaN);\n }\n }\n\n const subFnOptions = {\n firstWeekContainsDate,\n weekStartsOn,\n locale,\n };\n\n // If timezone isn't specified, it will be set to the system timezone\n const setters = [new _Setter.DateToSystemTimezoneSetter()];\n\n const tokens = formatStr\n .match(longFormattingTokensRegExp)\n .map((substring) => {\n const firstCharacter = substring[0];\n if (firstCharacter in _index5.longFormatters) {\n const longFormatter = _index5.longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong);\n }\n return substring;\n })\n .join(\"\")\n .match(formattingTokensRegExp);\n\n const usedTokens = [];\n\n for (let token of tokens) {\n if (\n !options?.useAdditionalWeekYearTokens &&\n (0, _index6.isProtectedWeekYearToken)(token)\n ) {\n (0, _index6.warnOrThrowProtectedError)(token, formatStr, dateStr);\n }\n if (\n !options?.useAdditionalDayOfYearTokens &&\n (0, _index6.isProtectedDayOfYearToken)(token)\n ) {\n (0, _index6.warnOrThrowProtectedError)(token, formatStr, dateStr);\n }\n\n const firstCharacter = token[0];\n const parser = _index7.parsers[firstCharacter];\n if (parser) {\n const { incompatibleTokens } = parser;\n if (Array.isArray(incompatibleTokens)) {\n const incompatibleToken = usedTokens.find(\n (usedToken) =>\n incompatibleTokens.includes(usedToken.token) ||\n usedToken.token === firstCharacter,\n );\n if (incompatibleToken) {\n throw new RangeError(\n `The format string mustn't contain \\`${incompatibleToken.fullToken}\\` and \\`${token}\\` at the same time`,\n );\n }\n } else if (parser.incompatibleTokens === \"*\" && usedTokens.length > 0) {\n throw new RangeError(\n `The format string mustn't contain \\`${token}\\` and any other token at the same time`,\n );\n }\n\n usedTokens.push({ token: firstCharacter, fullToken: token });\n\n const parseResult = parser.run(\n dateStr,\n token,\n locale.match,\n subFnOptions,\n );\n\n if (!parseResult) {\n return (0, _index.constructFrom)(referenceDate, NaN);\n }\n\n setters.push(parseResult.setter);\n\n dateStr = parseResult.rest;\n } else {\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError(\n \"Format string contains an unescaped latin alphabet character `\" +\n firstCharacter +\n \"`\",\n );\n }\n\n // Replace two single quote characters with one single quote character\n if (token === \"''\") {\n token = \"'\";\n } else if (firstCharacter === \"'\") {\n token = cleanEscapedString(token);\n }\n\n // Cut token from string, or, if string doesn't match the token, return Invalid Date\n if (dateStr.indexOf(token) === 0) {\n dateStr = dateStr.slice(token.length);\n } else {\n return (0, _index.constructFrom)(referenceDate, NaN);\n }\n }\n }\n\n // Check if the remaining input contains something other than whitespace\n if (dateStr.length > 0 && notWhitespaceRegExp.test(dateStr)) {\n return (0, _index.constructFrom)(referenceDate, NaN);\n }\n\n const uniquePrioritySetters = setters\n .map((setter) => setter.priority)\n .sort((a, b) => b - a)\n .filter((priority, index, array) => array.indexOf(priority) === index)\n .map((priority) =>\n setters\n .filter((setter) => setter.priority === priority)\n .sort((a, b) => b.subPriority - a.subPriority),\n )\n .map((setterArray) => setterArray[0]);\n\n let date = (0, _index4.toDate)(referenceDate);\n\n if (isNaN(date.getTime())) {\n return (0, _index.constructFrom)(referenceDate, NaN);\n }\n\n const flags = {};\n for (const setter of uniquePrioritySetters) {\n if (!setter.validate(date, subFnOptions)) {\n return (0, _index.constructFrom)(referenceDate, NaN);\n }\n\n const result = setter.set(date, flags, subFnOptions);\n // Result is tuple (date, flags)\n if (Array.isArray(result)) {\n date = result[0];\n Object.assign(flags, result[1]);\n // Result is date\n } else {\n date = result;\n }\n }\n\n return (0, _index.constructFrom)(referenceDate, date);\n}\n\nfunction cleanEscapedString(input) {\n return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, \"'\");\n}\n"],"names":["Object","defineProperty","exports","enumerable","get","_index5","longFormatters","parse","dateStr","formatStr","referenceDate","options","defaultOptions","_index2","getDefaultOptions","locale","_index3","defaultLocale","firstWeekContainsDate","weekStartsOn","_index4","toDate","_index","constructFrom","NaN","subFnOptions","setters","_Setter","DateToSystemTimezoneSetter","tokens","match","longFormattingTokensRegExp","map","substring","firstCharacter","longFormatter","formatLong","join","formattingTokensRegExp","usedTokens","token","useAdditionalWeekYearTokens","_index6","isProtectedWeekYearToken","warnOrThrowProtectedError","useAdditionalDayOfYearTokens","isProtectedDayOfYearToken","parser","_index7","parsers","incompatibleTokens","Array","isArray","incompatibleToken","find","usedToken","includes","RangeError","fullToken","length","push","parseResult","run","setter","rest","unescapedLatinCharacterRegExp","escapedStringRegExp","replace","doubleQuoteRegExp","indexOf","slice","notWhitespaceRegExp","test","uniquePrioritySetters","priority","sort","a","b","filter","index","array","subPriority","setterArray","date","isNaN","getTime","flags","validate","result","set","assign","require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6","require$$7"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__exports as r}from"../../_virtual/roundToNearestHours.js";import{__require as o}from"./_lib/getRoundingMethod.js";import{__require as t}from"./constructFrom2.js";import{__require as e}from"./
|
|
1
|
+
import{__exports as r}from"../../_virtual/roundToNearestHours.js";import{__require as o}from"./_lib/getRoundingMethod.js";import{__require as t}from"./constructFrom2.js";import{__require as e}from"./toDate2.js";var s;function n(){if(s)return r;s=1,r.roundToNearestHours=function(r,o){const t=o?.nearestTo??1;if(t<1||t>12)return(0,u.constructFrom)(r,NaN);const e=(0,i.toDate)(r),s=e.getMinutes()/60,a=e.getSeconds()/60/60,c=e.getMilliseconds()/1e3/60/60,_=e.getHours()+s+a+c,d=o?.roundingMethod??"round",m=(0,n.getRoundingMethod)(d)(_/t)*t,g=(0,u.constructFrom)(r,e);return g.setHours(m,0,0,0),g};var n=o(),u=t(),i=e();return r}export{n as __require};
|
|
2
2
|
//# sourceMappingURL=roundToNearestHours.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roundToNearestHours.js","sources":["../../../node_modules/date-fns/roundToNearestHours.js"],"sourcesContent":["\"use strict\";\nexports.roundToNearestHours = roundToNearestHours;\nvar _index = require(\"./_lib/getRoundingMethod.js\");\nvar _index2 = require(\"./constructFrom.js\");\nvar _index3 = require(\"./toDate.js\");\n\n/**\n * The {@link roundToNearestHours} function options.\n */\n\n/**\n * @name roundToNearestHours\n * @category Hour Helpers\n * @summary Rounds the given date to the nearest hour\n *\n * @description\n * Rounds the given date to the nearest hour (or number of hours).\n * Rounds up when the given date is exactly between the nearest round hours.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to round\n * @param options - An object with options.\n *\n * @returns The new date rounded to the closest hour\n *\n * @example\n * // Round 10 July 2014 12:34:56 to nearest hour:\n * const result = roundToNearestHours(new Date(2014, 6, 10, 12, 34, 56))\n * //=> Thu Jul 10 2014 13:00:00\n *\n * @example\n * // Round 10 July 2014 12:34:56 to nearest half hour:\n * const result = roundToNearestHours(new Date(2014, 6, 10, 12, 34, 56), { nearestTo: 6 })\n * //=> Thu Jul 10 2014 12:00:00\n\n * @example\n * // Round 10 July 2014 12:34:56 to nearest half hour:\n * const result = roundToNearestHours(new Date(2014, 6, 10, 12, 34, 56), { nearestTo: 8 })\n * //=> Thu Jul 10 2014 16:00:00\n\n* @example\n * // Floor (rounds down) 10 July 2014 12:34:56 to nearest hour:\n * const result = roundToNearestHours(new Date(2014, 6, 10, 1, 23, 45), { roundingMethod: 'ceil' })\n * //=> Thu Jul 10 2014 02:00:00\n *\n * @example\n * // Ceil (rounds up) 10 July 2014 12:34:56 to nearest quarter hour:\n * const result = roundToNearestHours(new Date(2014, 6, 10, 12, 34, 56), { roundingMethod: 'floor', nearestTo: 8 })\n * //=> Thu Jul 10 2014 08:00:00\n */\nfunction roundToNearestHours(date, options) {\n const nearestTo = options?.nearestTo ?? 1;\n\n if (nearestTo < 1 || nearestTo > 12)\n return (0, _index2.constructFrom)(date, NaN);\n\n const _date = (0, _index3.toDate)(date);\n const fractionalMinutes = _date.getMinutes() / 60;\n const fractionalSeconds = _date.getSeconds() / 60 / 60;\n const fractionalMilliseconds = _date.getMilliseconds() / 1000 / 60 / 60;\n const hours =\n _date.getHours() +\n fractionalMinutes +\n fractionalSeconds +\n fractionalMilliseconds;\n\n // Unlike the `differenceIn*` functions, the default rounding behavior is `round` and not 'trunc'\n const method = options?.roundingMethod ?? \"round\";\n const roundingMethod = (0, _index.getRoundingMethod)(method);\n\n // nearestTo option does not care daylight savings time\n const roundedHours = roundingMethod(hours / nearestTo) * nearestTo;\n\n const result = (0, _index2.constructFrom)(date, _date);\n result.setHours(roundedHours, 0, 0, 0);\n return result;\n}\n"],"names":["roundToNearestHours_1","roundToNearestHours","date","options","nearestTo","_index2","constructFrom","NaN","_date","_index3","toDate","fractionalMinutes","getMinutes","fractionalSeconds","getSeconds","fractionalMilliseconds","getMilliseconds","hours","getHours","method","roundingMethod","roundedHours","_index","getRoundingMethod","result","setHours","require$$0","require$$1","require$$2"],"mappings":"
|
|
1
|
+
{"version":3,"file":"roundToNearestHours.js","sources":["../../../node_modules/date-fns/roundToNearestHours.js"],"sourcesContent":["\"use strict\";\nexports.roundToNearestHours = roundToNearestHours;\nvar _index = require(\"./_lib/getRoundingMethod.js\");\nvar _index2 = require(\"./constructFrom.js\");\nvar _index3 = require(\"./toDate.js\");\n\n/**\n * The {@link roundToNearestHours} function options.\n */\n\n/**\n * @name roundToNearestHours\n * @category Hour Helpers\n * @summary Rounds the given date to the nearest hour\n *\n * @description\n * Rounds the given date to the nearest hour (or number of hours).\n * Rounds up when the given date is exactly between the nearest round hours.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to round\n * @param options - An object with options.\n *\n * @returns The new date rounded to the closest hour\n *\n * @example\n * // Round 10 July 2014 12:34:56 to nearest hour:\n * const result = roundToNearestHours(new Date(2014, 6, 10, 12, 34, 56))\n * //=> Thu Jul 10 2014 13:00:00\n *\n * @example\n * // Round 10 July 2014 12:34:56 to nearest half hour:\n * const result = roundToNearestHours(new Date(2014, 6, 10, 12, 34, 56), { nearestTo: 6 })\n * //=> Thu Jul 10 2014 12:00:00\n\n * @example\n * // Round 10 July 2014 12:34:56 to nearest half hour:\n * const result = roundToNearestHours(new Date(2014, 6, 10, 12, 34, 56), { nearestTo: 8 })\n * //=> Thu Jul 10 2014 16:00:00\n\n* @example\n * // Floor (rounds down) 10 July 2014 12:34:56 to nearest hour:\n * const result = roundToNearestHours(new Date(2014, 6, 10, 1, 23, 45), { roundingMethod: 'ceil' })\n * //=> Thu Jul 10 2014 02:00:00\n *\n * @example\n * // Ceil (rounds up) 10 July 2014 12:34:56 to nearest quarter hour:\n * const result = roundToNearestHours(new Date(2014, 6, 10, 12, 34, 56), { roundingMethod: 'floor', nearestTo: 8 })\n * //=> Thu Jul 10 2014 08:00:00\n */\nfunction roundToNearestHours(date, options) {\n const nearestTo = options?.nearestTo ?? 1;\n\n if (nearestTo < 1 || nearestTo > 12)\n return (0, _index2.constructFrom)(date, NaN);\n\n const _date = (0, _index3.toDate)(date);\n const fractionalMinutes = _date.getMinutes() / 60;\n const fractionalSeconds = _date.getSeconds() / 60 / 60;\n const fractionalMilliseconds = _date.getMilliseconds() / 1000 / 60 / 60;\n const hours =\n _date.getHours() +\n fractionalMinutes +\n fractionalSeconds +\n fractionalMilliseconds;\n\n // Unlike the `differenceIn*` functions, the default rounding behavior is `round` and not 'trunc'\n const method = options?.roundingMethod ?? \"round\";\n const roundingMethod = (0, _index.getRoundingMethod)(method);\n\n // nearestTo option does not care daylight savings time\n const roundedHours = roundingMethod(hours / nearestTo) * nearestTo;\n\n const result = (0, _index2.constructFrom)(date, _date);\n result.setHours(roundedHours, 0, 0, 0);\n return result;\n}\n"],"names":["roundToNearestHours_1","roundToNearestHours","date","options","nearestTo","_index2","constructFrom","NaN","_date","_index3","toDate","fractionalMinutes","getMinutes","fractionalSeconds","getSeconds","fractionalMilliseconds","getMilliseconds","hours","getHours","method","roundingMethod","roundedHours","_index","getRoundingMethod","result","setHours","require$$0","require$$1","require$$2"],"mappings":"wPAC2BA,EAAAC,oBAkD3B,SAA6BC,EAAMC,GACjC,MAAMC,EAAYD,GAASC,WAAa,EAExC,GAAIA,EAAY,GAAKA,EAAY,GAC/B,OAAO,EAAIC,EAAQC,eAAeJ,EAAMK,KAE1C,MAAMC,GAAQ,EAAIC,EAAQC,QAAQR,GAC5BS,EAAoBH,EAAMI,aAAe,GACzCC,EAAoBL,EAAMM,aAAe,GAAK,GAC9CC,EAAyBP,EAAMQ,kBAAoB,IAAO,GAAK,GAC/DC,EACJT,EAAMU,WACNP,EACAE,EACAE,EAGII,EAAShB,GAASiB,gBAAkB,QAIpCC,GAHiB,EAAIC,EAAOC,mBAAmBJ,EAGhCC,CAAeH,EAAQb,GAAaA,EAEnDoB,GAAS,EAAInB,EAAQC,eAAeJ,EAAMM,GAEhD,OADAgB,EAAOC,SAASJ,EAAc,EAAG,EAAG,GAC7BG,CACT,EA3EA,IAAIF,EAASI,IACTrB,EAAUsB,IACVlB,EAAUmB","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__exports as r}from"../../_virtual/roundToNearestMinutes.js";import{__require as t}from"./_lib/getRoundingMethod.js";import{__require as e}from"./constructFrom2.js";import{__require as o}from"./
|
|
1
|
+
import{__exports as r}from"../../_virtual/roundToNearestMinutes.js";import{__require as t}from"./_lib/getRoundingMethod.js";import{__require as e}from"./constructFrom2.js";import{__require as o}from"./toDate2.js";var n;function s(){if(n)return r;n=1,r.roundToNearestMinutes=function(r,t){const e=t?.nearestTo??1;if(e<1||e>30)return(0,u.constructFrom)(r,NaN);const o=(0,i.toDate)(r),n=o.getSeconds()/60,a=o.getMilliseconds()/1e3/60,c=o.getMinutes()+n+a,_=t?.roundingMethod??"round",d=(0,s.getRoundingMethod)(_)(c/e)*e,m=(0,u.constructFrom)(r,o);return m.setMinutes(d,0,0),m};var s=t(),u=e(),i=o();return r}export{s as __require};
|
|
2
2
|
//# sourceMappingURL=roundToNearestMinutes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roundToNearestMinutes.js","sources":["../../../node_modules/date-fns/roundToNearestMinutes.js"],"sourcesContent":["\"use strict\";\nexports.roundToNearestMinutes = roundToNearestMinutes;\nvar _index = require(\"./_lib/getRoundingMethod.js\");\nvar _index2 = require(\"./constructFrom.js\");\nvar _index3 = require(\"./toDate.js\");\n\n/**\n * The {@link roundToNearestMinutes} function options.\n */\n\n/**\n * @name roundToNearestMinutes\n * @category Minute Helpers\n * @summary Rounds the given date to the nearest minute\n *\n * @description\n * Rounds the given date to the nearest minute (or number of minutes).\n * Rounds up when the given date is exactly between the nearest round minutes.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to round\n * @param options - An object with options.\n *\n * @returns The new date rounded to the closest minute\n *\n * @example\n * // Round 10 July 2014 12:12:34 to nearest minute:\n * const result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34))\n * //=> Thu Jul 10 2014 12:13:00\n *\n * @example\n * // Round 10 July 2014 12:12:34 to nearest quarter hour:\n * const result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34), { nearestTo: 15 })\n * //=> Thu Jul 10 2014 12:15:00\n *\n * @example\n * // Floor (rounds down) 10 July 2014 12:12:34 to nearest minute:\n * const result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34), { roundingMethod: 'floor' })\n * //=> Thu Jul 10 2014 12:12:00\n *\n * @example\n * // Ceil (rounds up) 10 July 2014 12:12:34 to nearest half hour:\n * const result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34), { roundingMethod: 'ceil', nearestTo: 30 })\n * //=> Thu Jul 10 2014 12:30:00\n */\nfunction roundToNearestMinutes(date, options) {\n const nearestTo = options?.nearestTo ?? 1;\n\n if (nearestTo < 1 || nearestTo > 30)\n return (0, _index2.constructFrom)(date, NaN);\n\n const _date = (0, _index3.toDate)(date);\n const fractionalSeconds = _date.getSeconds() / 60;\n const fractionalMilliseconds = _date.getMilliseconds() / 1000 / 60;\n const minutes =\n _date.getMinutes() + fractionalSeconds + fractionalMilliseconds;\n\n // Unlike the `differenceIn*` functions, the default rounding behavior is `round` and not 'trunc'\n const method = options?.roundingMethod ?? \"round\";\n const roundingMethod = (0, _index.getRoundingMethod)(method);\n\n const roundedMinutes = roundingMethod(minutes / nearestTo) * nearestTo;\n\n const result = (0, _index2.constructFrom)(date, _date);\n result.setMinutes(roundedMinutes, 0, 0);\n return result;\n}\n"],"names":["roundToNearestMinutes_1","roundToNearestMinutes","date","options","nearestTo","_index2","constructFrom","NaN","_date","_index3","toDate","fractionalSeconds","getSeconds","fractionalMilliseconds","getMilliseconds","minutes","getMinutes","method","roundingMethod","roundedMinutes","_index","getRoundingMethod","result","setMinutes","require$$0","require$$1","require$$2"],"mappings":"
|
|
1
|
+
{"version":3,"file":"roundToNearestMinutes.js","sources":["../../../node_modules/date-fns/roundToNearestMinutes.js"],"sourcesContent":["\"use strict\";\nexports.roundToNearestMinutes = roundToNearestMinutes;\nvar _index = require(\"./_lib/getRoundingMethod.js\");\nvar _index2 = require(\"./constructFrom.js\");\nvar _index3 = require(\"./toDate.js\");\n\n/**\n * The {@link roundToNearestMinutes} function options.\n */\n\n/**\n * @name roundToNearestMinutes\n * @category Minute Helpers\n * @summary Rounds the given date to the nearest minute\n *\n * @description\n * Rounds the given date to the nearest minute (or number of minutes).\n * Rounds up when the given date is exactly between the nearest round minutes.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to round\n * @param options - An object with options.\n *\n * @returns The new date rounded to the closest minute\n *\n * @example\n * // Round 10 July 2014 12:12:34 to nearest minute:\n * const result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34))\n * //=> Thu Jul 10 2014 12:13:00\n *\n * @example\n * // Round 10 July 2014 12:12:34 to nearest quarter hour:\n * const result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34), { nearestTo: 15 })\n * //=> Thu Jul 10 2014 12:15:00\n *\n * @example\n * // Floor (rounds down) 10 July 2014 12:12:34 to nearest minute:\n * const result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34), { roundingMethod: 'floor' })\n * //=> Thu Jul 10 2014 12:12:00\n *\n * @example\n * // Ceil (rounds up) 10 July 2014 12:12:34 to nearest half hour:\n * const result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34), { roundingMethod: 'ceil', nearestTo: 30 })\n * //=> Thu Jul 10 2014 12:30:00\n */\nfunction roundToNearestMinutes(date, options) {\n const nearestTo = options?.nearestTo ?? 1;\n\n if (nearestTo < 1 || nearestTo > 30)\n return (0, _index2.constructFrom)(date, NaN);\n\n const _date = (0, _index3.toDate)(date);\n const fractionalSeconds = _date.getSeconds() / 60;\n const fractionalMilliseconds = _date.getMilliseconds() / 1000 / 60;\n const minutes =\n _date.getMinutes() + fractionalSeconds + fractionalMilliseconds;\n\n // Unlike the `differenceIn*` functions, the default rounding behavior is `round` and not 'trunc'\n const method = options?.roundingMethod ?? \"round\";\n const roundingMethod = (0, _index.getRoundingMethod)(method);\n\n const roundedMinutes = roundingMethod(minutes / nearestTo) * nearestTo;\n\n const result = (0, _index2.constructFrom)(date, _date);\n result.setMinutes(roundedMinutes, 0, 0);\n return result;\n}\n"],"names":["roundToNearestMinutes_1","roundToNearestMinutes","date","options","nearestTo","_index2","constructFrom","NaN","_date","_index3","toDate","fractionalSeconds","getSeconds","fractionalMilliseconds","getMilliseconds","minutes","getMinutes","method","roundingMethod","roundedMinutes","_index","getRoundingMethod","result","setMinutes","require$$0","require$$1","require$$2"],"mappings":"0PAC6BA,EAAAC,sBA6C7B,SAA+BC,EAAMC,GACnC,MAAMC,EAAYD,GAASC,WAAa,EAExC,GAAIA,EAAY,GAAKA,EAAY,GAC/B,OAAO,EAAIC,EAAQC,eAAeJ,EAAMK,KAE1C,MAAMC,GAAQ,EAAIC,EAAQC,QAAQR,GAC5BS,EAAoBH,EAAMI,aAAe,GACzCC,EAAyBL,EAAMM,kBAAoB,IAAO,GAC1DC,EACJP,EAAMQ,aAAeL,EAAoBE,EAGrCI,EAASd,GAASe,gBAAkB,QAGpCC,GAFiB,EAAIC,EAAOC,mBAAmBJ,EAE9BC,CAAeH,EAAUX,GAAaA,EAEvDkB,GAAS,EAAIjB,EAAQC,eAAeJ,EAAMM,GAEhD,OADAc,EAAOC,WAAWJ,EAAgB,EAAG,GAC9BG,CACT,EAjEA,IAAIF,EAASI,IACTnB,EAAUoB,IACVhB,EAAUiB","x_google_ignoreList":[0]}
|
package/ext/date-fns/set.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__exports as e}from"../../_virtual/set.js";import{__require as t}from"./constructFrom2.js";import{__require as s}from"./setMonth.js";import{__require as r}from"./
|
|
1
|
+
import{__exports as e}from"../../_virtual/set.js";import{__require as t}from"./constructFrom2.js";import{__require as s}from"./setMonth.js";import{__require as r}from"./toDate2.js";var o;function n(){if(o)return e;o=1,e.set=function(e,t){let s=(0,l.toDate)(e);if(isNaN(+s))return(0,n.constructFrom)(e,NaN);null!=t.year&&s.setFullYear(t.year);null!=t.month&&(s=(0,u.setMonth)(s,t.month));null!=t.date&&s.setDate(t.date);null!=t.hours&&s.setHours(t.hours);null!=t.minutes&&s.setMinutes(t.minutes);null!=t.seconds&&s.setSeconds(t.seconds);null!=t.milliseconds&&s.setMilliseconds(t.milliseconds);return s};var n=t(),u=s(),l=r();return e}export{n as __require};
|
|
2
2
|
//# sourceMappingURL=set.js.map
|
package/ext/date-fns/set.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set.js","sources":["../../../node_modules/date-fns/set.js"],"sourcesContent":["\"use strict\";\nexports.set = set;\nvar _index = require(\"./constructFrom.js\");\nvar _index2 = require(\"./setMonth.js\");\nvar _index3 = require(\"./toDate.js\");\n\n/**\n * @name set\n * @category Common Helpers\n * @summary Set date values to a given date.\n *\n * @description\n * Set date values to a given date.\n *\n * Sets time values to date from object `values`.\n * A value is not set if it is undefined or null or doesn't exist in `values`.\n *\n * Note about bundle size: `set` does not internally use `setX` functions from date-fns but instead opts\n * to use native `Date#setX` methods. If you use this function, you may not want to include the\n * other `setX` functions that date-fns provides if you are concerned about the bundle size.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param values - The date values to be set\n *\n * @returns The new date with options set\n *\n * @example\n * // Transform 1 September 2014 into 20 October 2015 in a single line:\n * const result = set(new Date(2014, 8, 20), { year: 2015, month: 9, date: 20 })\n * //=> Tue Oct 20 2015 00:00:00\n *\n * @example\n * // Set 12 PM to 1 September 2014 01:23:45 to 1 September 2014 12:00:00:\n * const result = set(new Date(2014, 8, 1, 1, 23, 45), { hours: 12 })\n * //=> Mon Sep 01 2014 12:23:45\n */\n\nfunction set(date, values) {\n let _date = (0, _index3.toDate)(date);\n\n // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date\n if (isNaN(+_date)) {\n return (0, _index.constructFrom)(date, NaN);\n }\n\n if (values.year != null) {\n _date.setFullYear(values.year);\n }\n\n if (values.month != null) {\n _date = (0, _index2.setMonth)(_date, values.month);\n }\n\n if (values.date != null) {\n _date.setDate(values.date);\n }\n\n if (values.hours != null) {\n _date.setHours(values.hours);\n }\n\n if (values.minutes != null) {\n _date.setMinutes(values.minutes);\n }\n\n if (values.seconds != null) {\n _date.setSeconds(values.seconds);\n }\n\n if (values.milliseconds != null) {\n _date.setMilliseconds(values.milliseconds);\n }\n\n return _date;\n}\n"],"names":["set_1","set","date","values","_date","_index3","toDate","isNaN","_index","constructFrom","NaN","year","setFullYear","month","_index2","setMonth","setDate","hours","setHours","minutes","setMinutes","seconds","setSeconds","milliseconds","setMilliseconds","require$$0","require$$1","require$$2"],"mappings":"
|
|
1
|
+
{"version":3,"file":"set.js","sources":["../../../node_modules/date-fns/set.js"],"sourcesContent":["\"use strict\";\nexports.set = set;\nvar _index = require(\"./constructFrom.js\");\nvar _index2 = require(\"./setMonth.js\");\nvar _index3 = require(\"./toDate.js\");\n\n/**\n * @name set\n * @category Common Helpers\n * @summary Set date values to a given date.\n *\n * @description\n * Set date values to a given date.\n *\n * Sets time values to date from object `values`.\n * A value is not set if it is undefined or null or doesn't exist in `values`.\n *\n * Note about bundle size: `set` does not internally use `setX` functions from date-fns but instead opts\n * to use native `Date#setX` methods. If you use this function, you may not want to include the\n * other `setX` functions that date-fns provides if you are concerned about the bundle size.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param values - The date values to be set\n *\n * @returns The new date with options set\n *\n * @example\n * // Transform 1 September 2014 into 20 October 2015 in a single line:\n * const result = set(new Date(2014, 8, 20), { year: 2015, month: 9, date: 20 })\n * //=> Tue Oct 20 2015 00:00:00\n *\n * @example\n * // Set 12 PM to 1 September 2014 01:23:45 to 1 September 2014 12:00:00:\n * const result = set(new Date(2014, 8, 1, 1, 23, 45), { hours: 12 })\n * //=> Mon Sep 01 2014 12:23:45\n */\n\nfunction set(date, values) {\n let _date = (0, _index3.toDate)(date);\n\n // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date\n if (isNaN(+_date)) {\n return (0, _index.constructFrom)(date, NaN);\n }\n\n if (values.year != null) {\n _date.setFullYear(values.year);\n }\n\n if (values.month != null) {\n _date = (0, _index2.setMonth)(_date, values.month);\n }\n\n if (values.date != null) {\n _date.setDate(values.date);\n }\n\n if (values.hours != null) {\n _date.setHours(values.hours);\n }\n\n if (values.minutes != null) {\n _date.setMinutes(values.minutes);\n }\n\n if (values.seconds != null) {\n _date.setSeconds(values.seconds);\n }\n\n if (values.milliseconds != null) {\n _date.setMilliseconds(values.milliseconds);\n }\n\n return _date;\n}\n"],"names":["set_1","set","date","values","_date","_index3","toDate","isNaN","_index","constructFrom","NaN","year","setFullYear","month","_index2","setMonth","setDate","hours","setHours","minutes","setMinutes","seconds","setSeconds","milliseconds","setMilliseconds","require$$0","require$$1","require$$2"],"mappings":"0NACWA,EAAAC,IAsCX,SAAaC,EAAMC,GACjB,IAAIC,GAAQ,EAAIC,EAAQC,QAAQJ,GAGhC,GAAIK,OAAOH,GACT,OAAO,EAAII,EAAOC,eAAeP,EAAMQ,KAGtB,MAAfP,EAAOQ,MACTP,EAAMQ,YAAYT,EAAOQ,MAGP,MAAhBR,EAAOU,QACTT,GAAQ,EAAIU,EAAQC,UAAUX,EAAOD,EAAOU,QAG3B,MAAfV,EAAOD,MACTE,EAAMY,QAAQb,EAAOD,MAGH,MAAhBC,EAAOc,OACTb,EAAMc,SAASf,EAAOc,OAGF,MAAlBd,EAAOgB,SACTf,EAAMgB,WAAWjB,EAAOgB,SAGJ,MAAlBhB,EAAOkB,SACTjB,EAAMkB,WAAWnB,EAAOkB,SAGC,MAAvBlB,EAAOoB,cACTnB,EAAMoB,gBAAgBrB,EAAOoB,cAG/B,OAAOnB,CACT,EA1EA,IAAII,EAASiB,IACTX,EAAUY,IACVrB,EAAUsB","x_google_ignoreList":[0]}
|
package/ext/date-fns/setDate.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__exports as t}from"../../_virtual/setDate.js";import{__require as r}from"./
|
|
1
|
+
import{__exports as t}from"../../_virtual/setDate.js";import{__require as r}from"./toDate2.js";var e;function a(){if(e)return t;e=1,t.setDate=function(t,r){const e=(0,a.toDate)(t);return e.setDate(r),e};var a=r();return t}export{a as __require};
|
|
2
2
|
//# sourceMappingURL=setDate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setDate.js","sources":["../../../node_modules/date-fns/setDate.js"],"sourcesContent":["\"use strict\";\nexports.setDate = setDate;\nvar _index = require(\"./toDate.js\");\n\n/**\n * @name setDate\n * @category Day Helpers\n * @summary Set the day of the month to the given date.\n *\n * @description\n * Set the day of the month to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param dayOfMonth - The day of the month of the new date\n *\n * @returns The new date with the day of the month set\n *\n * @example\n * // Set the 30th day of the month to 1 September 2014:\n * const result = setDate(new Date(2014, 8, 1), 30)\n * //=> Tue Sep 30 2014 00:00:00\n */\nfunction setDate(date, dayOfMonth) {\n const _date = (0, _index.toDate)(date);\n _date.setDate(dayOfMonth);\n return _date;\n}\n"],"names":["setDate_1","setDate","date","dayOfMonth","_date","_index","toDate","require$$0"],"mappings":"
|
|
1
|
+
{"version":3,"file":"setDate.js","sources":["../../../node_modules/date-fns/setDate.js"],"sourcesContent":["\"use strict\";\nexports.setDate = setDate;\nvar _index = require(\"./toDate.js\");\n\n/**\n * @name setDate\n * @category Day Helpers\n * @summary Set the day of the month to the given date.\n *\n * @description\n * Set the day of the month to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param dayOfMonth - The day of the month of the new date\n *\n * @returns The new date with the day of the month set\n *\n * @example\n * // Set the 30th day of the month to 1 September 2014:\n * const result = setDate(new Date(2014, 8, 1), 30)\n * //=> Tue Sep 30 2014 00:00:00\n */\nfunction setDate(date, dayOfMonth) {\n const _date = (0, _index.toDate)(date);\n _date.setDate(dayOfMonth);\n return _date;\n}\n"],"names":["setDate_1","setDate","date","dayOfMonth","_date","_index","toDate","require$$0"],"mappings":"oIACeA,EAAAC,QAuBf,SAAiBC,EAAMC,GACrB,MAAMC,GAAQ,EAAIC,EAAOC,QAAQJ,GAEjC,OADAE,EAAMH,QAAQE,GACPC,CACT,EA1BA,IAAIC,EAASE","x_google_ignoreList":[0]}
|
package/ext/date-fns/setDay.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{addDays as t}from"./
|
|
1
|
+
import{addDays as t}from"./addDays.js";import{toDate as o}from"./toDate.js";import{getDefaultOptions as e}from"./_lib/defaultOptions.js";function a(a,r,s){const n=e(),i=s?.weekStartsOn??s?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,l=o(a),p=l.getDay(),f=7-i;return t(l,r<0||r>6?r-(p+f)%7:((r%7+7)%7+f)%7-(p+f)%7)}export{a as default,a as setDay};
|
|
2
2
|
//# sourceMappingURL=setDay.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setDay.js","sources":["../../../node_modules/date-fns/setDay.mjs"],"sourcesContent":["import { addDays } from \"./addDays.mjs\";\nimport { toDate } from \"./toDate.mjs\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.mjs\";\n\n/**\n * The {@link setDay} function options.\n */\n\n/**\n * @name setDay\n * @category Weekday Helpers\n * @summary Set the day of the week to the given date.\n *\n * @description\n * Set the day of the week to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param day - The day of the week of the new date\n * @param options - An object with options.\n *\n * @returns The new date with the day of the week set\n *\n * @example\n * // Set week day to Sunday, with the default weekStartsOn of Sunday:\n * const result = setDay(new Date(2014, 8, 1), 0)\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // Set week day to Sunday, with a weekStartsOn of Monday:\n * const result = setDay(new Date(2014, 8, 1), 0, { weekStartsOn: 1 })\n * //=> Sun Sep 07 2014 00:00:00\n */\nexport function setDay(date, day, options) {\n const defaultOptions = getDefaultOptions();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const _date = toDate(date);\n const currentDay = _date.getDay();\n\n const remainder = day % 7;\n const dayIndex = (remainder + 7) % 7;\n\n const delta = 7 - weekStartsOn;\n const diff =\n day < 0 || day > 6\n ? day - ((currentDay + delta) % 7)\n : ((dayIndex + delta) % 7) - ((currentDay + delta) % 7);\n return addDays(_date, diff);\n}\n\n// Fallback for modularized imports:\nexport default setDay;\n"],"names":["setDay","date","day","options","defaultOptions","getDefaultOptions","weekStartsOn","locale","_date","toDate","currentDay","getDay","delta","addDays"],"mappings":"
|
|
1
|
+
{"version":3,"file":"setDay.js","sources":["../../../node_modules/date-fns/setDay.mjs"],"sourcesContent":["import { addDays } from \"./addDays.mjs\";\nimport { toDate } from \"./toDate.mjs\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.mjs\";\n\n/**\n * The {@link setDay} function options.\n */\n\n/**\n * @name setDay\n * @category Weekday Helpers\n * @summary Set the day of the week to the given date.\n *\n * @description\n * Set the day of the week to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param day - The day of the week of the new date\n * @param options - An object with options.\n *\n * @returns The new date with the day of the week set\n *\n * @example\n * // Set week day to Sunday, with the default weekStartsOn of Sunday:\n * const result = setDay(new Date(2014, 8, 1), 0)\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // Set week day to Sunday, with a weekStartsOn of Monday:\n * const result = setDay(new Date(2014, 8, 1), 0, { weekStartsOn: 1 })\n * //=> Sun Sep 07 2014 00:00:00\n */\nexport function setDay(date, day, options) {\n const defaultOptions = getDefaultOptions();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const _date = toDate(date);\n const currentDay = _date.getDay();\n\n const remainder = day % 7;\n const dayIndex = (remainder + 7) % 7;\n\n const delta = 7 - weekStartsOn;\n const diff =\n day < 0 || day > 6\n ? day - ((currentDay + delta) % 7)\n : ((dayIndex + delta) % 7) - ((currentDay + delta) % 7);\n return addDays(_date, diff);\n}\n\n// Fallback for modularized imports:\nexport default setDay;\n"],"names":["setDay","date","day","options","defaultOptions","getDefaultOptions","weekStartsOn","locale","_date","toDate","currentDay","getDay","delta","addDays"],"mappings":"yIAkCO,SAASA,EAAOC,EAAMC,EAAKC,GAChC,MAAMC,EAAiBC,IACjBC,EACJH,GAASG,cACTH,GAASI,QAAQJ,SAASG,cAC1BF,EAAeE,cACfF,EAAeG,QAAQJ,SAASG,cAChC,EAEIE,EAAQC,EAAOR,GACfS,EAAaF,EAAMG,SAKnBC,EAAQ,EAAIN,EAKlB,OAAOO,EAAQL,EAHbN,EAAM,GAAKA,EAAM,EACbA,GAAQQ,EAAaE,GAAS,IANlBV,EAAM,EACM,GAAK,EAMhBU,GAAS,GAAOF,EAAaE,GAAS,EAE3D","x_google_ignoreList":[0]}
|
package/ext/date-fns/setDay2.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__exports as t}from"../../_virtual/setDay.js";import{__require as e}from"./
|
|
1
|
+
import{__exports as t}from"../../_virtual/setDay.js";import{__require as e}from"./addDays2.js";import{__require as r}from"./toDate2.js";import{__require as a}from"./_lib/defaultOptions2.js";var o;function s(){if(o)return t;o=1,t.setDay=function(t,e,r){const a=(0,n.getDefaultOptions)(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,u=(0,i.toDate)(t),_=u.getDay(),p=(e%7+7)%7,f=7-o,l=e<0||e>6?e-(_+f)%7:(p+f)%7-(_+f)%7;return(0,s.addDays)(u,l)};var s=e(),i=r(),n=a();return t}export{s as __require};
|
|
2
2
|
//# sourceMappingURL=setDay2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setDay2.js","sources":["../../../node_modules/date-fns/setDay.js"],"sourcesContent":["\"use strict\";\nexports.setDay = setDay;\nvar _index = require(\"./addDays.js\");\nvar _index2 = require(\"./toDate.js\");\n\nvar _index3 = require(\"./_lib/defaultOptions.js\");\n\n/**\n * The {@link setDay} function options.\n */\n\n/**\n * @name setDay\n * @category Weekday Helpers\n * @summary Set the day of the week to the given date.\n *\n * @description\n * Set the day of the week to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param day - The day of the week of the new date\n * @param options - An object with options.\n *\n * @returns The new date with the day of the week set\n *\n * @example\n * // Set week day to Sunday, with the default weekStartsOn of Sunday:\n * const result = setDay(new Date(2014, 8, 1), 0)\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // Set week day to Sunday, with a weekStartsOn of Monday:\n * const result = setDay(new Date(2014, 8, 1), 0, { weekStartsOn: 1 })\n * //=> Sun Sep 07 2014 00:00:00\n */\nfunction setDay(date, day, options) {\n const defaultOptions = (0, _index3.getDefaultOptions)();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const _date = (0, _index2.toDate)(date);\n const currentDay = _date.getDay();\n\n const remainder = day % 7;\n const dayIndex = (remainder + 7) % 7;\n\n const delta = 7 - weekStartsOn;\n const diff =\n day < 0 || day > 6\n ? day - ((currentDay + delta) % 7)\n : ((dayIndex + delta) % 7) - ((currentDay + delta) % 7);\n return (0, _index.addDays)(_date, diff);\n}\n"],"names":["setDay_1","setDay","date","day","options","defaultOptions","_index3","getDefaultOptions","weekStartsOn","locale","_date","_index2","toDate","currentDay","getDay","dayIndex","delta","diff","_index","addDays","require$$0","require$$1","require$$2"],"mappings":"
|
|
1
|
+
{"version":3,"file":"setDay2.js","sources":["../../../node_modules/date-fns/setDay.js"],"sourcesContent":["\"use strict\";\nexports.setDay = setDay;\nvar _index = require(\"./addDays.js\");\nvar _index2 = require(\"./toDate.js\");\n\nvar _index3 = require(\"./_lib/defaultOptions.js\");\n\n/**\n * The {@link setDay} function options.\n */\n\n/**\n * @name setDay\n * @category Weekday Helpers\n * @summary Set the day of the week to the given date.\n *\n * @description\n * Set the day of the week to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param day - The day of the week of the new date\n * @param options - An object with options.\n *\n * @returns The new date with the day of the week set\n *\n * @example\n * // Set week day to Sunday, with the default weekStartsOn of Sunday:\n * const result = setDay(new Date(2014, 8, 1), 0)\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // Set week day to Sunday, with a weekStartsOn of Monday:\n * const result = setDay(new Date(2014, 8, 1), 0, { weekStartsOn: 1 })\n * //=> Sun Sep 07 2014 00:00:00\n */\nfunction setDay(date, day, options) {\n const defaultOptions = (0, _index3.getDefaultOptions)();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const _date = (0, _index2.toDate)(date);\n const currentDay = _date.getDay();\n\n const remainder = day % 7;\n const dayIndex = (remainder + 7) % 7;\n\n const delta = 7 - weekStartsOn;\n const diff =\n day < 0 || day > 6\n ? day - ((currentDay + delta) % 7)\n : ((dayIndex + delta) % 7) - ((currentDay + delta) % 7);\n return (0, _index.addDays)(_date, diff);\n}\n"],"names":["setDay_1","setDay","date","day","options","defaultOptions","_index3","getDefaultOptions","weekStartsOn","locale","_date","_index2","toDate","currentDay","getDay","dayIndex","delta","diff","_index","addDays","require$$0","require$$1","require$$2"],"mappings":"mOACcA,EAAAC,OAoCd,SAAgBC,EAAMC,EAAKC,GACzB,MAAMC,GAAiB,EAAIC,EAAQC,qBAC7BC,EACJJ,GAASI,cACTJ,GAASK,QAAQL,SAASI,cAC1BH,EAAeG,cACfH,EAAeI,QAAQL,SAASI,cAChC,EAEIE,GAAQ,EAAIC,EAAQC,QAAQV,GAC5BW,EAAaH,EAAMI,SAGnBC,GADYZ,EAAM,EACM,GAAK,EAE7Ba,EAAQ,EAAIR,EACZS,EACJd,EAAM,GAAKA,EAAM,EACbA,GAAQU,EAAaG,GAAS,GAC5BD,EAAWC,GAAS,GAAOH,EAAaG,GAAS,EACzD,OAAO,EAAIE,EAAOC,SAAST,EAAOO,EACpC,EAxDA,IAAIC,EAASE,IACTT,EAAUU,IAEVf,EAAUgB","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__exports as r}from"../../_virtual/setDayOfYear.js";import{__require as t}from"./
|
|
1
|
+
import{__exports as r}from"../../_virtual/setDayOfYear.js";import{__require as t}from"./toDate2.js";var e;function a(){if(e)return r;e=1,r.setDayOfYear=function(r,t){const e=(0,a.toDate)(r);return e.setMonth(0),e.setDate(t),e};var a=t();return r}export{a as __require};
|
|
2
2
|
//# sourceMappingURL=setDayOfYear.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setDayOfYear.js","sources":["../../../node_modules/date-fns/setDayOfYear.js"],"sourcesContent":["\"use strict\";\nexports.setDayOfYear = setDayOfYear;\nvar _index = require(\"./toDate.js\");\n\n/**\n * @name setDayOfYear\n * @category Day Helpers\n * @summary Set the day of the year to the given date.\n *\n * @description\n * Set the day of the year to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param dayOfYear - The day of the year of the new date\n *\n * @returns The new date with the day of the year set\n *\n * @example\n * // Set the 2nd day of the year to 2 July 2014:\n * const result = setDayOfYear(new Date(2014, 6, 2), 2)\n * //=> Thu Jan 02 2014 00:00:00\n */\nfunction setDayOfYear(date, dayOfYear) {\n const _date = (0, _index.toDate)(date);\n _date.setMonth(0);\n _date.setDate(dayOfYear);\n return _date;\n}\n"],"names":["setDayOfYear_1","setDayOfYear","date","dayOfYear","_date","_index","toDate","setMonth","setDate","require$$0"],"mappings":"
|
|
1
|
+
{"version":3,"file":"setDayOfYear.js","sources":["../../../node_modules/date-fns/setDayOfYear.js"],"sourcesContent":["\"use strict\";\nexports.setDayOfYear = setDayOfYear;\nvar _index = require(\"./toDate.js\");\n\n/**\n * @name setDayOfYear\n * @category Day Helpers\n * @summary Set the day of the year to the given date.\n *\n * @description\n * Set the day of the year to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param dayOfYear - The day of the year of the new date\n *\n * @returns The new date with the day of the year set\n *\n * @example\n * // Set the 2nd day of the year to 2 July 2014:\n * const result = setDayOfYear(new Date(2014, 6, 2), 2)\n * //=> Thu Jan 02 2014 00:00:00\n */\nfunction setDayOfYear(date, dayOfYear) {\n const _date = (0, _index.toDate)(date);\n _date.setMonth(0);\n _date.setDate(dayOfYear);\n return _date;\n}\n"],"names":["setDayOfYear_1","setDayOfYear","date","dayOfYear","_date","_index","toDate","setMonth","setDate","require$$0"],"mappings":"yIACoBA,EAAAC,aAuBpB,SAAsBC,EAAMC,GAC1B,MAAMC,GAAQ,EAAIC,EAAOC,QAAQJ,GAGjC,OAFAE,EAAMG,SAAS,GACfH,EAAMI,QAAQL,GACPC,CACT,EA3BA,IAAIC,EAASI","x_google_ignoreList":[0]}
|
package/ext/date-fns/setHours.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__exports as r}from"../../_virtual/setHours.js";import{__require as t}from"./
|
|
1
|
+
import{__exports as r}from"../../_virtual/setHours.js";import{__require as t}from"./toDate2.js";var e;function o(){if(e)return r;e=1,r.setHours=function(r,t){const e=(0,o.toDate)(r);return e.setHours(t),e};var o=t();return r}export{o as __require};
|
|
2
2
|
//# sourceMappingURL=setHours.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setHours.js","sources":["../../../node_modules/date-fns/setHours.js"],"sourcesContent":["\"use strict\";\nexports.setHours = setHours;\nvar _index = require(\"./toDate.js\");\n\n/**\n * @name setHours\n * @category Hour Helpers\n * @summary Set the hours to the given date.\n *\n * @description\n * Set the hours to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param hours - The hours of the new date\n *\n * @returns The new date with the hours set\n *\n * @example\n * // Set 4 hours to 1 September 2014 11:30:00:\n * const result = setHours(new Date(2014, 8, 1, 11, 30), 4)\n * //=> Mon Sep 01 2014 04:30:00\n */\nfunction setHours(date, hours) {\n const _date = (0, _index.toDate)(date);\n _date.setHours(hours);\n return _date;\n}\n"],"names":["setHours_1","setHours","date","hours","_date","_index","toDate","require$$0"],"mappings":"
|
|
1
|
+
{"version":3,"file":"setHours.js","sources":["../../../node_modules/date-fns/setHours.js"],"sourcesContent":["\"use strict\";\nexports.setHours = setHours;\nvar _index = require(\"./toDate.js\");\n\n/**\n * @name setHours\n * @category Hour Helpers\n * @summary Set the hours to the given date.\n *\n * @description\n * Set the hours to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param hours - The hours of the new date\n *\n * @returns The new date with the hours set\n *\n * @example\n * // Set 4 hours to 1 September 2014 11:30:00:\n * const result = setHours(new Date(2014, 8, 1, 11, 30), 4)\n * //=> Mon Sep 01 2014 04:30:00\n */\nfunction setHours(date, hours) {\n const _date = (0, _index.toDate)(date);\n _date.setHours(hours);\n return _date;\n}\n"],"names":["setHours_1","setHours","date","hours","_date","_index","toDate","require$$0"],"mappings":"qIACgBA,EAAAC,SAuBhB,SAAkBC,EAAMC,GACtB,MAAMC,GAAQ,EAAIC,EAAOC,QAAQJ,GAEjC,OADAE,EAAMH,SAASE,GACRC,CACT,EA1BA,IAAIC,EAASE","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{addDays as t}from"./
|
|
1
|
+
import{addDays as t}from"./addDays.js";import{getISODay as o}from"./getISODay.js";import{toDate as r}from"./toDate.js";function a(a,m){const s=r(a),e=o(s);return t(s,m-e)}export{a as default,a as setISODay};
|
|
2
2
|
//# sourceMappingURL=setISODay.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setISODay.js","sources":["../../../node_modules/date-fns/setISODay.mjs"],"sourcesContent":["import { addDays } from \"./addDays.mjs\";\nimport { getISODay } from \"./getISODay.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n/**\n * @name setISODay\n * @category Weekday Helpers\n * @summary Set the day of the ISO week to the given date.\n *\n * @description\n * Set the day of the ISO week to the given date.\n * ISO week starts with Monday.\n * 7 is the index of Sunday, 1 is the index of Monday etc.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param day - The day of the ISO week of the new date\n *\n * @returns The new date with the day of the ISO week set\n *\n * @example\n * // Set Sunday to 1 September 2014:\n * const result = setISODay(new Date(2014, 8, 1), 7)\n * //=> Sun Sep 07 2014 00:00:00\n */\nexport function setISODay(date, day) {\n const _date = toDate(date);\n const currentDay = getISODay(_date);\n const diff = day - currentDay;\n return addDays(_date, diff);\n}\n\n// Fallback for modularized imports:\nexport default setISODay;\n"],"names":["setISODay","date","day","_date","toDate","currentDay","getISODay","addDays"],"mappings":"
|
|
1
|
+
{"version":3,"file":"setISODay.js","sources":["../../../node_modules/date-fns/setISODay.mjs"],"sourcesContent":["import { addDays } from \"./addDays.mjs\";\nimport { getISODay } from \"./getISODay.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n/**\n * @name setISODay\n * @category Weekday Helpers\n * @summary Set the day of the ISO week to the given date.\n *\n * @description\n * Set the day of the ISO week to the given date.\n * ISO week starts with Monday.\n * 7 is the index of Sunday, 1 is the index of Monday etc.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param day - The day of the ISO week of the new date\n *\n * @returns The new date with the day of the ISO week set\n *\n * @example\n * // Set Sunday to 1 September 2014:\n * const result = setISODay(new Date(2014, 8, 1), 7)\n * //=> Sun Sep 07 2014 00:00:00\n */\nexport function setISODay(date, day) {\n const _date = toDate(date);\n const currentDay = getISODay(_date);\n const diff = day - currentDay;\n return addDays(_date, diff);\n}\n\n// Fallback for modularized imports:\nexport default setISODay;\n"],"names":["setISODay","date","day","_date","toDate","currentDay","getISODay","addDays"],"mappings":"uHA0BO,SAASA,EAAUC,EAAMC,GAC9B,MAAMC,EAAQC,EAAOH,GACfI,EAAaC,EAAUH,GAE7B,OAAOI,EAAQJ,EADFD,EAAMG,EAErB","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__exports as r}from"../../_virtual/setISODay.js";import{__require as t}from"./
|
|
1
|
+
import{__exports as r}from"../../_virtual/setISODay.js";import{__require as t}from"./addDays2.js";import{__require as e}from"./getISODay2.js";import{__require as a}from"./toDate2.js";var o;function s(){if(o)return r;o=1,r.setISODay=function(r,t){const e=(0,_.toDate)(r),a=(0,i.getISODay)(e),o=t-a;return(0,s.addDays)(e,o)};var s=t(),i=e(),_=a();return r}export{s as __require};
|
|
2
2
|
//# sourceMappingURL=setISODay2.js.map
|