@sbb-esta/lyne-elements-experimental-dev 4.7.0-dev.1773388997 → 4.7.0-dev.1773393170
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/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +76 -65
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +52 -72
- package/autocomplete-grid/autocomplete-grid-button.js +6 -3
- package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +17 -2
- package/autocomplete-grid/autocomplete-grid-cell.js +7 -4
- package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +21 -20
- package/autocomplete-grid/autocomplete-grid-optgroup.js +6 -3
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +33 -2
- package/autocomplete-grid/autocomplete-grid-option.js +9 -4
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +22 -2
- package/autocomplete-grid/autocomplete-grid-row.js +7 -4
- package/autocomplete-grid/autocomplete-grid.js +6 -3
- package/autocomplete-grid.js +21 -9
- package/autocomplete-grid.pure.js +15 -7
- package/core/datetime/date-helper.js +191 -2
- package/core/datetime.js +5 -2
- package/core/timetable/access-leg-helper.js +71 -76
- package/core/timetable/timetable-helper.js +11 -9
- package/core/timetable/timetable-properties.js +1 -0
- package/core/timetable.js +7 -3
- package/custom-elements.json +84 -84
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +122 -114
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +70 -92
- package/development/autocomplete-grid/autocomplete-grid-button.js +4 -6
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +29 -2
- package/development/autocomplete-grid/autocomplete-grid-cell.js +5 -7
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +22 -27
- package/development/autocomplete-grid/autocomplete-grid-optgroup.js +4 -6
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +109 -2
- package/development/autocomplete-grid/autocomplete-grid-option.js +7 -7
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +91 -2
- package/development/autocomplete-grid/autocomplete-grid-row.js +5 -7
- package/development/autocomplete-grid/autocomplete-grid.js +4 -6
- package/development/autocomplete-grid.js +14 -10
- package/development/autocomplete-grid.pure.js +13 -4
- package/development/core/datetime/date-helper.js +285 -2
- package/development/core/datetime.js +6 -2
- package/development/core/timetable/access-leg-helper.js +82 -104
- package/development/core/timetable/timetable-helper.js +17 -16
- package/development/core/timetable/timetable-properties.js +2 -0
- package/development/core/timetable.js +8 -3
- package/development/differenceInMinutes-B0dawX-5.js +26 -0
- package/development/format-BMkeaqaF.js +1433 -0
- package/development/isValid-BYRch7pV.js +53 -0
- package/development/journey-summary/journey-summary.component.js +288 -2
- package/development/journey-summary.js +5 -8
- package/development/journey-summary.pure.js +5 -2
- package/development/pearl-chain/pearl-chain.component.js +634 -2
- package/development/pearl-chain-time/pearl-chain-time.component.js +306 -2
- package/development/pearl-chain-time.js +5 -8
- package/development/pearl-chain-time.pure.js +5 -2
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.js +28 -2
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +393 -2
- package/development/pearl-chain-vertical-item.js +5 -8
- package/development/pearl-chain-vertical-item.pure.js +5 -2
- package/development/pearl-chain-vertical.js +5 -8
- package/development/pearl-chain-vertical.pure.js +5 -2
- package/development/pearl-chain.js +5 -8
- package/development/pearl-chain.pure.js +5 -2
- package/development/seat-reservation/common/mapper/icon-mapper.js +71 -168
- package/development/seat-reservation/common/mapper/mapper.js +122 -153
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-bus.js +559 -570
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-decks.js +972 -992
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-giruno.js +20367 -20334
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-others.js +1738 -1731
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-train.js +9782 -9741
- package/development/seat-reservation/common/mapper.js +8 -1
- package/development/seat-reservation/common/svgs.js +46 -2
- package/development/seat-reservation/common/translations/i18n.js +900 -1118
- package/development/seat-reservation/common/translations.js +4 -1
- package/development/seat-reservation/common/types.js +2 -0
- package/development/seat-reservation/common.js +11 -7
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +1230 -1305
- package/development/seat-reservation/seat-reservation/seat-reservation.component.js +859 -2
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +106 -2
- package/development/seat-reservation/seat-reservation-area.js +5 -7
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +34 -35
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +162 -2
- package/development/seat-reservation/seat-reservation-graphic.js +5 -7
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +713 -2
- package/development/seat-reservation/seat-reservation-navigation-coach.js +5 -7
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +131 -2
- package/development/seat-reservation/seat-reservation-navigation-services.js +5 -7
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +601 -2
- package/development/seat-reservation/seat-reservation-place-control.js +5 -7
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +22 -2
- package/development/seat-reservation/seat-reservation-scoped.js +5 -7
- package/development/seat-reservation/seat-reservation.js +6 -7
- package/development/seat-reservation.js +28 -15
- package/development/seat-reservation.pure.js +28 -10
- package/development/timetable-duration/timetable-duration.component.js +108 -2
- package/development/timetable-duration.js +5 -8
- package/development/timetable-duration.pure.js +5 -2
- package/development/timetable-row/timetable-row.component.js +781 -2
- package/development/timetable-row.js +13 -8
- package/development/timetable-row.pure.js +12 -2
- package/development/toDate-BWb6Z1JD.js +24 -0
- package/differenceInMinutes-COvvdYsJ.js +23 -0
- package/format-CmKROkbc.js +1186 -0
- package/isValid-m3_OsPaB.js +45 -0
- package/journey-summary/journey-summary.component.js +194 -2
- package/journey-summary.js +4 -5
- package/journey-summary.pure.js +4 -2
- package/package.json +2 -2
- package/pearl-chain/pearl-chain.component.js +165 -2
- package/pearl-chain-time/pearl-chain-time.component.js +157 -2
- package/pearl-chain-time.js +4 -5
- package/pearl-chain-time.pure.js +4 -2
- package/pearl-chain-vertical/pearl-chain-vertical.component.js +17 -2
- package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +77 -2
- package/pearl-chain-vertical-item.js +4 -5
- package/pearl-chain-vertical-item.pure.js +4 -2
- package/pearl-chain-vertical.js +4 -5
- package/pearl-chain-vertical.pure.js +4 -2
- package/pearl-chain.js +4 -5
- package/pearl-chain.pure.js +4 -2
- package/seat-reservation/common/mapper/icon-mapper.js +71 -71
- package/seat-reservation/common/mapper/mapper.js +89 -95
- package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-bus.js +558 -568
- package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-decks.js +970 -989
- package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-giruno.js +20366 -20332
- package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-others.js +1737 -1729
- package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-train.js +9781 -9739
- package/seat-reservation/common/mapper.js +9 -3
- package/seat-reservation/common/svgs.js +243 -2
- package/seat-reservation/common/translations/i18n.js +891 -1084
- package/seat-reservation/common/translations.js +4 -2
- package/seat-reservation/common/types.js +1 -0
- package/seat-reservation/common.js +15 -9
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +810 -832
- package/seat-reservation/seat-reservation/seat-reservation.component.js +420 -2
- package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +51 -2
- package/seat-reservation/seat-reservation-area.js +7 -4
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +71 -68
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +75 -2
- package/seat-reservation/seat-reservation-graphic.js +7 -4
- package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +234 -2
- package/seat-reservation/seat-reservation-navigation-coach.js +7 -4
- package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +85 -2
- package/seat-reservation/seat-reservation-navigation-services.js +7 -4
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +203 -2
- package/seat-reservation/seat-reservation-place-control.js +7 -4
- package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +13 -2
- package/seat-reservation/seat-reservation-scoped.js +7 -4
- package/seat-reservation/seat-reservation.js +9 -5
- package/seat-reservation.js +39 -17
- package/seat-reservation.pure.js +32 -15
- package/timetable-duration/timetable-duration.component.js +57 -2
- package/timetable-duration.js +4 -5
- package/timetable-duration.pure.js +4 -2
- package/timetable-row/timetable-row.component.js +427 -2
- package/timetable-row.js +13 -6
- package/timetable-row.pure.js +11 -2
- package/toDate-Bw2KTWeq.js +15 -0
- package/autocomplete-grid-cell.component-Dak9wlBr.js +0 -24
- package/autocomplete-grid-option.component-DNRFHOwc.js +0 -37
- package/autocomplete-grid-row.component-DBHZQ0GQ.js +0 -27
- package/date-helper-CGproP5d.js +0 -185
- package/development/autocomplete-grid-cell.component-BBvM4o2H.js +0 -42
- package/development/autocomplete-grid-option.component-QzfM5eIE.js +0 -123
- package/development/autocomplete-grid-row.component-H8sCTCkT.js +0 -104
- package/development/date-helper-8_Y-PuHh.js +0 -520
- package/development/differenceInMinutes-DN_1Rk3O.js +0 -110
- package/development/format-Bbrn2bgo.js +0 -1848
- package/development/isValid-C-HzKv4v.js +0 -178
- package/development/journey-summary.component-uGhZvA4p.js +0 -385
- package/development/pearl-chain-time.component-B8mayTWD.js +0 -415
- package/development/pearl-chain-vertical-item.component-BDzbcIaf.js +0 -435
- package/development/pearl-chain-vertical.component-CswE7b3M.js +0 -39
- package/development/pearl-chain.component-wpsTvoSe.js +0 -704
- package/development/seat-reservation-area.component-BK92ZtFo.js +0 -138
- package/development/seat-reservation-graphic.component-cUnsHh5x.js +0 -193
- package/development/seat-reservation-navigation-coach.component-D6Bglus8.js +0 -828
- package/development/seat-reservation-navigation-services.component-DYJ6Ddkg.js +0 -179
- package/development/seat-reservation-place-control.component-Bg9evKBW.js +0 -726
- package/development/seat-reservation-scoped.component-DRQ_I702.js +0 -31
- package/development/seat-reservation.component-Cq_aJKR0.js +0 -818
- package/development/svgs-C3JMWR26.js +0 -28
- package/development/timetable-duration.component-DI0lET17.js +0 -125
- package/development/timetable-row.component-CAED6Zwc.js +0 -932
- package/development/toDate-Biiv3kyf.js +0 -150
- package/differenceInMinutes-Dr9gRqtu.js +0 -27
- package/format-CM5exOsN.js +0 -1103
- package/isValid-B9oVW3lA.js +0 -36
- package/journey-summary.component-Cq_4kaOp.js +0 -264
- package/pearl-chain-time.component-DGDW5S1c.js +0 -239
- package/pearl-chain-vertical-item.component-G22bWhLU.js +0 -108
- package/pearl-chain-vertical.component-CXIDT5RD.js +0 -21
- package/pearl-chain.component-DmjkVIva.js +0 -194
- package/seat-reservation-area.component-n-9rGn_y.js +0 -75
- package/seat-reservation-graphic.component-YTXRmKt0.js +0 -102
- package/seat-reservation-navigation-coach.component-YJ0vaYmO.js +0 -333
- package/seat-reservation-navigation-services.component-C3xnLJg2.js +0 -127
- package/seat-reservation-place-control.component-DmBAfM6K.js +0 -322
- package/seat-reservation-scoped.component-DPkz6u17.js +0 -17
- package/seat-reservation.component-C_anMkgw.js +0 -364
- package/svgs-D9arBcqr.js +0 -26
- package/timetable-duration.component-DCu8Phts.js +0 -65
- package/timetable-row.component-BVRCB3xK.js +0 -559
- package/toDate-p-Tpkb7t.js +0 -16
package/format-CM5exOsN.js
DELETED
|
@@ -1,1103 +0,0 @@
|
|
|
1
|
-
import { n as e, o as t, t as n } from "./toDate-p-Tpkb7t.js";
|
|
2
|
-
import { n as r, t as i } from "./isValid-B9oVW3lA.js";
|
|
3
|
-
//#region node_modules/date-fns/_lib/defaultOptions.js
|
|
4
|
-
var a = {};
|
|
5
|
-
function o() {
|
|
6
|
-
return a;
|
|
7
|
-
}
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region node_modules/date-fns/startOfWeek.js
|
|
10
|
-
function s(e, t) {
|
|
11
|
-
let r = o(), i = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, a = n(e, t?.in), s = a.getDay(), c = (s < i ? 7 : 0) + s - i;
|
|
12
|
-
return a.setDate(a.getDate() - c), a.setHours(0, 0, 0, 0), a;
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region node_modules/date-fns/startOfISOWeek.js
|
|
16
|
-
function c(e, t) {
|
|
17
|
-
return s(e, {
|
|
18
|
-
...t,
|
|
19
|
-
weekStartsOn: 1
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region node_modules/date-fns/getISOWeekYear.js
|
|
24
|
-
function l(t, r) {
|
|
25
|
-
let i = n(t, r?.in), a = i.getFullYear(), o = e(i, 0);
|
|
26
|
-
o.setFullYear(a + 1, 0, 4), o.setHours(0, 0, 0, 0);
|
|
27
|
-
let s = c(o), l = e(i, 0);
|
|
28
|
-
l.setFullYear(a, 0, 4), l.setHours(0, 0, 0, 0);
|
|
29
|
-
let u = c(l);
|
|
30
|
-
return i.getTime() >= s.getTime() ? a + 1 : i.getTime() >= u.getTime() ? a : a - 1;
|
|
31
|
-
}
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region node_modules/date-fns/startOfISOWeekYear.js
|
|
34
|
-
function u(t, n) {
|
|
35
|
-
let r = l(t, n), i = e(n?.in || t, 0);
|
|
36
|
-
return i.setFullYear(r, 0, 4), i.setHours(0, 0, 0, 0), c(i);
|
|
37
|
-
}
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region node_modules/date-fns/startOfYear.js
|
|
40
|
-
function d(e, t) {
|
|
41
|
-
let r = n(e, t?.in);
|
|
42
|
-
return r.setFullYear(r.getFullYear(), 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
43
|
-
}
|
|
44
|
-
//#endregion
|
|
45
|
-
//#region node_modules/date-fns/locale/en-US/_lib/formatDistance.js
|
|
46
|
-
var f = {
|
|
47
|
-
lessThanXSeconds: {
|
|
48
|
-
one: "less than a second",
|
|
49
|
-
other: "less than {{count}} seconds"
|
|
50
|
-
},
|
|
51
|
-
xSeconds: {
|
|
52
|
-
one: "1 second",
|
|
53
|
-
other: "{{count}} seconds"
|
|
54
|
-
},
|
|
55
|
-
halfAMinute: "half a minute",
|
|
56
|
-
lessThanXMinutes: {
|
|
57
|
-
one: "less than a minute",
|
|
58
|
-
other: "less than {{count}} minutes"
|
|
59
|
-
},
|
|
60
|
-
xMinutes: {
|
|
61
|
-
one: "1 minute",
|
|
62
|
-
other: "{{count}} minutes"
|
|
63
|
-
},
|
|
64
|
-
aboutXHours: {
|
|
65
|
-
one: "about 1 hour",
|
|
66
|
-
other: "about {{count}} hours"
|
|
67
|
-
},
|
|
68
|
-
xHours: {
|
|
69
|
-
one: "1 hour",
|
|
70
|
-
other: "{{count}} hours"
|
|
71
|
-
},
|
|
72
|
-
xDays: {
|
|
73
|
-
one: "1 day",
|
|
74
|
-
other: "{{count}} days"
|
|
75
|
-
},
|
|
76
|
-
aboutXWeeks: {
|
|
77
|
-
one: "about 1 week",
|
|
78
|
-
other: "about {{count}} weeks"
|
|
79
|
-
},
|
|
80
|
-
xWeeks: {
|
|
81
|
-
one: "1 week",
|
|
82
|
-
other: "{{count}} weeks"
|
|
83
|
-
},
|
|
84
|
-
aboutXMonths: {
|
|
85
|
-
one: "about 1 month",
|
|
86
|
-
other: "about {{count}} months"
|
|
87
|
-
},
|
|
88
|
-
xMonths: {
|
|
89
|
-
one: "1 month",
|
|
90
|
-
other: "{{count}} months"
|
|
91
|
-
},
|
|
92
|
-
aboutXYears: {
|
|
93
|
-
one: "about 1 year",
|
|
94
|
-
other: "about {{count}} years"
|
|
95
|
-
},
|
|
96
|
-
xYears: {
|
|
97
|
-
one: "1 year",
|
|
98
|
-
other: "{{count}} years"
|
|
99
|
-
},
|
|
100
|
-
overXYears: {
|
|
101
|
-
one: "over 1 year",
|
|
102
|
-
other: "over {{count}} years"
|
|
103
|
-
},
|
|
104
|
-
almostXYears: {
|
|
105
|
-
one: "almost 1 year",
|
|
106
|
-
other: "almost {{count}} years"
|
|
107
|
-
}
|
|
108
|
-
}, p = (e, t, n) => {
|
|
109
|
-
let r, i = f[e];
|
|
110
|
-
return r = typeof i == "string" ? i : t === 1 ? i.one : i.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
111
|
-
};
|
|
112
|
-
//#endregion
|
|
113
|
-
//#region node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
114
|
-
function m(e) {
|
|
115
|
-
return (t = {}) => {
|
|
116
|
-
let n = t.width ? String(t.width) : e.defaultWidth;
|
|
117
|
-
return e.formats[n] || e.formats[e.defaultWidth];
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
var h = {
|
|
121
|
-
date: m({
|
|
122
|
-
formats: {
|
|
123
|
-
full: "EEEE, MMMM do, y",
|
|
124
|
-
long: "MMMM do, y",
|
|
125
|
-
medium: "MMM d, y",
|
|
126
|
-
short: "MM/dd/yyyy"
|
|
127
|
-
},
|
|
128
|
-
defaultWidth: "full"
|
|
129
|
-
}),
|
|
130
|
-
time: m({
|
|
131
|
-
formats: {
|
|
132
|
-
full: "h:mm:ss a zzzz",
|
|
133
|
-
long: "h:mm:ss a z",
|
|
134
|
-
medium: "h:mm:ss a",
|
|
135
|
-
short: "h:mm a"
|
|
136
|
-
},
|
|
137
|
-
defaultWidth: "full"
|
|
138
|
-
}),
|
|
139
|
-
dateTime: m({
|
|
140
|
-
formats: {
|
|
141
|
-
full: "{{date}} 'at' {{time}}",
|
|
142
|
-
long: "{{date}} 'at' {{time}}",
|
|
143
|
-
medium: "{{date}}, {{time}}",
|
|
144
|
-
short: "{{date}}, {{time}}"
|
|
145
|
-
},
|
|
146
|
-
defaultWidth: "full"
|
|
147
|
-
})
|
|
148
|
-
}, g = {
|
|
149
|
-
lastWeek: "'last' eeee 'at' p",
|
|
150
|
-
yesterday: "'yesterday at' p",
|
|
151
|
-
today: "'today at' p",
|
|
152
|
-
tomorrow: "'tomorrow at' p",
|
|
153
|
-
nextWeek: "eeee 'at' p",
|
|
154
|
-
other: "P"
|
|
155
|
-
}, _ = (e, t, n, r) => g[e];
|
|
156
|
-
//#endregion
|
|
157
|
-
//#region node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
158
|
-
function v(e) {
|
|
159
|
-
return (t, n) => {
|
|
160
|
-
let r = n?.context ? String(n.context) : "standalone", i;
|
|
161
|
-
if (r === "formatting" && e.formattingValues) {
|
|
162
|
-
let t = e.defaultFormattingWidth || e.defaultWidth, r = n?.width ? String(n.width) : t;
|
|
163
|
-
i = e.formattingValues[r] || e.formattingValues[t];
|
|
164
|
-
} else {
|
|
165
|
-
let t = e.defaultWidth, r = n?.width ? String(n.width) : e.defaultWidth;
|
|
166
|
-
i = e.values[r] || e.values[t];
|
|
167
|
-
}
|
|
168
|
-
let a = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
169
|
-
return i[a];
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
var y = {
|
|
173
|
-
ordinalNumber: (e, t) => {
|
|
174
|
-
let n = Number(e), r = n % 100;
|
|
175
|
-
if (r > 20 || r < 10) switch (r % 10) {
|
|
176
|
-
case 1: return n + "st";
|
|
177
|
-
case 2: return n + "nd";
|
|
178
|
-
case 3: return n + "rd";
|
|
179
|
-
}
|
|
180
|
-
return n + "th";
|
|
181
|
-
},
|
|
182
|
-
era: v({
|
|
183
|
-
values: {
|
|
184
|
-
narrow: ["B", "A"],
|
|
185
|
-
abbreviated: ["BC", "AD"],
|
|
186
|
-
wide: ["Before Christ", "Anno Domini"]
|
|
187
|
-
},
|
|
188
|
-
defaultWidth: "wide"
|
|
189
|
-
}),
|
|
190
|
-
quarter: v({
|
|
191
|
-
values: {
|
|
192
|
-
narrow: [
|
|
193
|
-
"1",
|
|
194
|
-
"2",
|
|
195
|
-
"3",
|
|
196
|
-
"4"
|
|
197
|
-
],
|
|
198
|
-
abbreviated: [
|
|
199
|
-
"Q1",
|
|
200
|
-
"Q2",
|
|
201
|
-
"Q3",
|
|
202
|
-
"Q4"
|
|
203
|
-
],
|
|
204
|
-
wide: [
|
|
205
|
-
"1st quarter",
|
|
206
|
-
"2nd quarter",
|
|
207
|
-
"3rd quarter",
|
|
208
|
-
"4th quarter"
|
|
209
|
-
]
|
|
210
|
-
},
|
|
211
|
-
defaultWidth: "wide",
|
|
212
|
-
argumentCallback: (e) => e - 1
|
|
213
|
-
}),
|
|
214
|
-
month: v({
|
|
215
|
-
values: {
|
|
216
|
-
narrow: [
|
|
217
|
-
"J",
|
|
218
|
-
"F",
|
|
219
|
-
"M",
|
|
220
|
-
"A",
|
|
221
|
-
"M",
|
|
222
|
-
"J",
|
|
223
|
-
"J",
|
|
224
|
-
"A",
|
|
225
|
-
"S",
|
|
226
|
-
"O",
|
|
227
|
-
"N",
|
|
228
|
-
"D"
|
|
229
|
-
],
|
|
230
|
-
abbreviated: [
|
|
231
|
-
"Jan",
|
|
232
|
-
"Feb",
|
|
233
|
-
"Mar",
|
|
234
|
-
"Apr",
|
|
235
|
-
"May",
|
|
236
|
-
"Jun",
|
|
237
|
-
"Jul",
|
|
238
|
-
"Aug",
|
|
239
|
-
"Sep",
|
|
240
|
-
"Oct",
|
|
241
|
-
"Nov",
|
|
242
|
-
"Dec"
|
|
243
|
-
],
|
|
244
|
-
wide: [
|
|
245
|
-
"January",
|
|
246
|
-
"February",
|
|
247
|
-
"March",
|
|
248
|
-
"April",
|
|
249
|
-
"May",
|
|
250
|
-
"June",
|
|
251
|
-
"July",
|
|
252
|
-
"August",
|
|
253
|
-
"September",
|
|
254
|
-
"October",
|
|
255
|
-
"November",
|
|
256
|
-
"December"
|
|
257
|
-
]
|
|
258
|
-
},
|
|
259
|
-
defaultWidth: "wide"
|
|
260
|
-
}),
|
|
261
|
-
day: v({
|
|
262
|
-
values: {
|
|
263
|
-
narrow: [
|
|
264
|
-
"S",
|
|
265
|
-
"M",
|
|
266
|
-
"T",
|
|
267
|
-
"W",
|
|
268
|
-
"T",
|
|
269
|
-
"F",
|
|
270
|
-
"S"
|
|
271
|
-
],
|
|
272
|
-
short: [
|
|
273
|
-
"Su",
|
|
274
|
-
"Mo",
|
|
275
|
-
"Tu",
|
|
276
|
-
"We",
|
|
277
|
-
"Th",
|
|
278
|
-
"Fr",
|
|
279
|
-
"Sa"
|
|
280
|
-
],
|
|
281
|
-
abbreviated: [
|
|
282
|
-
"Sun",
|
|
283
|
-
"Mon",
|
|
284
|
-
"Tue",
|
|
285
|
-
"Wed",
|
|
286
|
-
"Thu",
|
|
287
|
-
"Fri",
|
|
288
|
-
"Sat"
|
|
289
|
-
],
|
|
290
|
-
wide: [
|
|
291
|
-
"Sunday",
|
|
292
|
-
"Monday",
|
|
293
|
-
"Tuesday",
|
|
294
|
-
"Wednesday",
|
|
295
|
-
"Thursday",
|
|
296
|
-
"Friday",
|
|
297
|
-
"Saturday"
|
|
298
|
-
]
|
|
299
|
-
},
|
|
300
|
-
defaultWidth: "wide"
|
|
301
|
-
}),
|
|
302
|
-
dayPeriod: v({
|
|
303
|
-
values: {
|
|
304
|
-
narrow: {
|
|
305
|
-
am: "a",
|
|
306
|
-
pm: "p",
|
|
307
|
-
midnight: "mi",
|
|
308
|
-
noon: "n",
|
|
309
|
-
morning: "morning",
|
|
310
|
-
afternoon: "afternoon",
|
|
311
|
-
evening: "evening",
|
|
312
|
-
night: "night"
|
|
313
|
-
},
|
|
314
|
-
abbreviated: {
|
|
315
|
-
am: "AM",
|
|
316
|
-
pm: "PM",
|
|
317
|
-
midnight: "midnight",
|
|
318
|
-
noon: "noon",
|
|
319
|
-
morning: "morning",
|
|
320
|
-
afternoon: "afternoon",
|
|
321
|
-
evening: "evening",
|
|
322
|
-
night: "night"
|
|
323
|
-
},
|
|
324
|
-
wide: {
|
|
325
|
-
am: "a.m.",
|
|
326
|
-
pm: "p.m.",
|
|
327
|
-
midnight: "midnight",
|
|
328
|
-
noon: "noon",
|
|
329
|
-
morning: "morning",
|
|
330
|
-
afternoon: "afternoon",
|
|
331
|
-
evening: "evening",
|
|
332
|
-
night: "night"
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
|
-
defaultWidth: "wide",
|
|
336
|
-
formattingValues: {
|
|
337
|
-
narrow: {
|
|
338
|
-
am: "a",
|
|
339
|
-
pm: "p",
|
|
340
|
-
midnight: "mi",
|
|
341
|
-
noon: "n",
|
|
342
|
-
morning: "in the morning",
|
|
343
|
-
afternoon: "in the afternoon",
|
|
344
|
-
evening: "in the evening",
|
|
345
|
-
night: "at night"
|
|
346
|
-
},
|
|
347
|
-
abbreviated: {
|
|
348
|
-
am: "AM",
|
|
349
|
-
pm: "PM",
|
|
350
|
-
midnight: "midnight",
|
|
351
|
-
noon: "noon",
|
|
352
|
-
morning: "in the morning",
|
|
353
|
-
afternoon: "in the afternoon",
|
|
354
|
-
evening: "in the evening",
|
|
355
|
-
night: "at night"
|
|
356
|
-
},
|
|
357
|
-
wide: {
|
|
358
|
-
am: "a.m.",
|
|
359
|
-
pm: "p.m.",
|
|
360
|
-
midnight: "midnight",
|
|
361
|
-
noon: "noon",
|
|
362
|
-
morning: "in the morning",
|
|
363
|
-
afternoon: "in the afternoon",
|
|
364
|
-
evening: "in the evening",
|
|
365
|
-
night: "at night"
|
|
366
|
-
}
|
|
367
|
-
},
|
|
368
|
-
defaultFormattingWidth: "wide"
|
|
369
|
-
})
|
|
370
|
-
};
|
|
371
|
-
//#endregion
|
|
372
|
-
//#region node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
373
|
-
function b(e) {
|
|
374
|
-
return (t, n = {}) => {
|
|
375
|
-
let r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
|
|
376
|
-
if (!a) return null;
|
|
377
|
-
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? S(s, (e) => e.test(o)) : x(s, (e) => e.test(o)), l;
|
|
378
|
-
l = e.valueCallback ? e.valueCallback(c) : c, l = n.valueCallback ? n.valueCallback(l) : l;
|
|
379
|
-
let u = t.slice(o.length);
|
|
380
|
-
return {
|
|
381
|
-
value: l,
|
|
382
|
-
rest: u
|
|
383
|
-
};
|
|
384
|
-
};
|
|
385
|
-
}
|
|
386
|
-
function x(e, t) {
|
|
387
|
-
for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
|
|
388
|
-
}
|
|
389
|
-
function S(e, t) {
|
|
390
|
-
for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
|
|
391
|
-
}
|
|
392
|
-
//#endregion
|
|
393
|
-
//#region node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
394
|
-
function C(e) {
|
|
395
|
-
return (t, n = {}) => {
|
|
396
|
-
let r = t.match(e.matchPattern);
|
|
397
|
-
if (!r) return null;
|
|
398
|
-
let i = r[0], a = t.match(e.parsePattern);
|
|
399
|
-
if (!a) return null;
|
|
400
|
-
let o = e.valueCallback ? e.valueCallback(a[0]) : a[0];
|
|
401
|
-
o = n.valueCallback ? n.valueCallback(o) : o;
|
|
402
|
-
let s = t.slice(i.length);
|
|
403
|
-
return {
|
|
404
|
-
value: o,
|
|
405
|
-
rest: s
|
|
406
|
-
};
|
|
407
|
-
};
|
|
408
|
-
}
|
|
409
|
-
//#endregion
|
|
410
|
-
//#region node_modules/date-fns/locale/en-US.js
|
|
411
|
-
var w = {
|
|
412
|
-
code: "en-US",
|
|
413
|
-
formatDistance: p,
|
|
414
|
-
formatLong: h,
|
|
415
|
-
formatRelative: _,
|
|
416
|
-
localize: y,
|
|
417
|
-
match: {
|
|
418
|
-
ordinalNumber: C({
|
|
419
|
-
matchPattern: /^(\d+)(th|st|nd|rd)?/i,
|
|
420
|
-
parsePattern: /\d+/i,
|
|
421
|
-
valueCallback: (e) => parseInt(e, 10)
|
|
422
|
-
}),
|
|
423
|
-
era: b({
|
|
424
|
-
matchPatterns: {
|
|
425
|
-
narrow: /^(b|a)/i,
|
|
426
|
-
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
427
|
-
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
428
|
-
},
|
|
429
|
-
defaultMatchWidth: "wide",
|
|
430
|
-
parsePatterns: { any: [/^b/i, /^(a|c)/i] },
|
|
431
|
-
defaultParseWidth: "any"
|
|
432
|
-
}),
|
|
433
|
-
quarter: b({
|
|
434
|
-
matchPatterns: {
|
|
435
|
-
narrow: /^[1234]/i,
|
|
436
|
-
abbreviated: /^q[1234]/i,
|
|
437
|
-
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
438
|
-
},
|
|
439
|
-
defaultMatchWidth: "wide",
|
|
440
|
-
parsePatterns: { any: [
|
|
441
|
-
/1/i,
|
|
442
|
-
/2/i,
|
|
443
|
-
/3/i,
|
|
444
|
-
/4/i
|
|
445
|
-
] },
|
|
446
|
-
defaultParseWidth: "any",
|
|
447
|
-
valueCallback: (e) => e + 1
|
|
448
|
-
}),
|
|
449
|
-
month: b({
|
|
450
|
-
matchPatterns: {
|
|
451
|
-
narrow: /^[jfmasond]/i,
|
|
452
|
-
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
453
|
-
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
454
|
-
},
|
|
455
|
-
defaultMatchWidth: "wide",
|
|
456
|
-
parsePatterns: {
|
|
457
|
-
narrow: [
|
|
458
|
-
/^j/i,
|
|
459
|
-
/^f/i,
|
|
460
|
-
/^m/i,
|
|
461
|
-
/^a/i,
|
|
462
|
-
/^m/i,
|
|
463
|
-
/^j/i,
|
|
464
|
-
/^j/i,
|
|
465
|
-
/^a/i,
|
|
466
|
-
/^s/i,
|
|
467
|
-
/^o/i,
|
|
468
|
-
/^n/i,
|
|
469
|
-
/^d/i
|
|
470
|
-
],
|
|
471
|
-
any: [
|
|
472
|
-
/^ja/i,
|
|
473
|
-
/^f/i,
|
|
474
|
-
/^mar/i,
|
|
475
|
-
/^ap/i,
|
|
476
|
-
/^may/i,
|
|
477
|
-
/^jun/i,
|
|
478
|
-
/^jul/i,
|
|
479
|
-
/^au/i,
|
|
480
|
-
/^s/i,
|
|
481
|
-
/^o/i,
|
|
482
|
-
/^n/i,
|
|
483
|
-
/^d/i
|
|
484
|
-
]
|
|
485
|
-
},
|
|
486
|
-
defaultParseWidth: "any"
|
|
487
|
-
}),
|
|
488
|
-
day: b({
|
|
489
|
-
matchPatterns: {
|
|
490
|
-
narrow: /^[smtwf]/i,
|
|
491
|
-
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
492
|
-
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
493
|
-
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
494
|
-
},
|
|
495
|
-
defaultMatchWidth: "wide",
|
|
496
|
-
parsePatterns: {
|
|
497
|
-
narrow: [
|
|
498
|
-
/^s/i,
|
|
499
|
-
/^m/i,
|
|
500
|
-
/^t/i,
|
|
501
|
-
/^w/i,
|
|
502
|
-
/^t/i,
|
|
503
|
-
/^f/i,
|
|
504
|
-
/^s/i
|
|
505
|
-
],
|
|
506
|
-
any: [
|
|
507
|
-
/^su/i,
|
|
508
|
-
/^m/i,
|
|
509
|
-
/^tu/i,
|
|
510
|
-
/^w/i,
|
|
511
|
-
/^th/i,
|
|
512
|
-
/^f/i,
|
|
513
|
-
/^sa/i
|
|
514
|
-
]
|
|
515
|
-
},
|
|
516
|
-
defaultParseWidth: "any"
|
|
517
|
-
}),
|
|
518
|
-
dayPeriod: b({
|
|
519
|
-
matchPatterns: {
|
|
520
|
-
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
521
|
-
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
522
|
-
},
|
|
523
|
-
defaultMatchWidth: "any",
|
|
524
|
-
parsePatterns: { any: {
|
|
525
|
-
am: /^a/i,
|
|
526
|
-
pm: /^p/i,
|
|
527
|
-
midnight: /^mi/i,
|
|
528
|
-
noon: /^no/i,
|
|
529
|
-
morning: /morning/i,
|
|
530
|
-
afternoon: /afternoon/i,
|
|
531
|
-
evening: /evening/i,
|
|
532
|
-
night: /night/i
|
|
533
|
-
} },
|
|
534
|
-
defaultParseWidth: "any"
|
|
535
|
-
})
|
|
536
|
-
},
|
|
537
|
-
options: {
|
|
538
|
-
weekStartsOn: 0,
|
|
539
|
-
firstWeekContainsDate: 1
|
|
540
|
-
}
|
|
541
|
-
};
|
|
542
|
-
//#endregion
|
|
543
|
-
//#region node_modules/date-fns/getDayOfYear.js
|
|
544
|
-
function T(e, t) {
|
|
545
|
-
let i = n(e, t?.in);
|
|
546
|
-
return r(i, d(i)) + 1;
|
|
547
|
-
}
|
|
548
|
-
//#endregion
|
|
549
|
-
//#region node_modules/date-fns/getISOWeek.js
|
|
550
|
-
function E(e, r) {
|
|
551
|
-
let i = n(e, r?.in), a = c(i) - +u(i);
|
|
552
|
-
return Math.round(a / t) + 1;
|
|
553
|
-
}
|
|
554
|
-
//#endregion
|
|
555
|
-
//#region node_modules/date-fns/getWeekYear.js
|
|
556
|
-
function D(t, r) {
|
|
557
|
-
let i = n(t, r?.in), a = i.getFullYear(), c = o(), l = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? c.firstWeekContainsDate ?? c.locale?.options?.firstWeekContainsDate ?? 1, u = e(r?.in || t, 0);
|
|
558
|
-
u.setFullYear(a + 1, 0, l), u.setHours(0, 0, 0, 0);
|
|
559
|
-
let d = s(u, r), f = e(r?.in || t, 0);
|
|
560
|
-
f.setFullYear(a, 0, l), f.setHours(0, 0, 0, 0);
|
|
561
|
-
let p = s(f, r);
|
|
562
|
-
return +i >= +d ? a + 1 : +i >= +p ? a : a - 1;
|
|
563
|
-
}
|
|
564
|
-
//#endregion
|
|
565
|
-
//#region node_modules/date-fns/startOfWeekYear.js
|
|
566
|
-
function O(t, n) {
|
|
567
|
-
let r = o(), i = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, a = D(t, n), c = e(n?.in || t, 0);
|
|
568
|
-
return c.setFullYear(a, 0, i), c.setHours(0, 0, 0, 0), s(c, n);
|
|
569
|
-
}
|
|
570
|
-
//#endregion
|
|
571
|
-
//#region node_modules/date-fns/getWeek.js
|
|
572
|
-
function k(e, r) {
|
|
573
|
-
let i = n(e, r?.in), a = s(i, r) - +O(i, r);
|
|
574
|
-
return Math.round(a / t) + 1;
|
|
575
|
-
}
|
|
576
|
-
//#endregion
|
|
577
|
-
//#region node_modules/date-fns/_lib/addLeadingZeros.js
|
|
578
|
-
function A(e, t) {
|
|
579
|
-
return (e < 0 ? "-" : "") + Math.abs(e).toString().padStart(t, "0");
|
|
580
|
-
}
|
|
581
|
-
//#endregion
|
|
582
|
-
//#region node_modules/date-fns/_lib/format/lightFormatters.js
|
|
583
|
-
var j = {
|
|
584
|
-
y(e, t) {
|
|
585
|
-
let n = e.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
586
|
-
return A(t === "yy" ? r % 100 : r, t.length);
|
|
587
|
-
},
|
|
588
|
-
M(e, t) {
|
|
589
|
-
let n = e.getMonth();
|
|
590
|
-
return t === "M" ? String(n + 1) : A(n + 1, 2);
|
|
591
|
-
},
|
|
592
|
-
d(e, t) {
|
|
593
|
-
return A(e.getDate(), t.length);
|
|
594
|
-
},
|
|
595
|
-
a(e, t) {
|
|
596
|
-
let n = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
597
|
-
switch (t) {
|
|
598
|
-
case "a":
|
|
599
|
-
case "aa": return n.toUpperCase();
|
|
600
|
-
case "aaa": return n;
|
|
601
|
-
case "aaaaa": return n[0];
|
|
602
|
-
default: return n === "am" ? "a.m." : "p.m.";
|
|
603
|
-
}
|
|
604
|
-
},
|
|
605
|
-
h(e, t) {
|
|
606
|
-
return A(e.getHours() % 12 || 12, t.length);
|
|
607
|
-
},
|
|
608
|
-
H(e, t) {
|
|
609
|
-
return A(e.getHours(), t.length);
|
|
610
|
-
},
|
|
611
|
-
m(e, t) {
|
|
612
|
-
return A(e.getMinutes(), t.length);
|
|
613
|
-
},
|
|
614
|
-
s(e, t) {
|
|
615
|
-
return A(e.getSeconds(), t.length);
|
|
616
|
-
},
|
|
617
|
-
S(e, t) {
|
|
618
|
-
let n = t.length, r = e.getMilliseconds();
|
|
619
|
-
return A(Math.trunc(r * 10 ** (n - 3)), t.length);
|
|
620
|
-
}
|
|
621
|
-
}, M = {
|
|
622
|
-
am: "am",
|
|
623
|
-
pm: "pm",
|
|
624
|
-
midnight: "midnight",
|
|
625
|
-
noon: "noon",
|
|
626
|
-
morning: "morning",
|
|
627
|
-
afternoon: "afternoon",
|
|
628
|
-
evening: "evening",
|
|
629
|
-
night: "night"
|
|
630
|
-
}, N = {
|
|
631
|
-
G: function(e, t, n) {
|
|
632
|
-
let r = e.getFullYear() > 0 ? 1 : 0;
|
|
633
|
-
switch (t) {
|
|
634
|
-
case "G":
|
|
635
|
-
case "GG":
|
|
636
|
-
case "GGG": return n.era(r, { width: "abbreviated" });
|
|
637
|
-
case "GGGGG": return n.era(r, { width: "narrow" });
|
|
638
|
-
default: return n.era(r, { width: "wide" });
|
|
639
|
-
}
|
|
640
|
-
},
|
|
641
|
-
y: function(e, t, n) {
|
|
642
|
-
if (t === "yo") {
|
|
643
|
-
let t = e.getFullYear(), r = t > 0 ? t : 1 - t;
|
|
644
|
-
return n.ordinalNumber(r, { unit: "year" });
|
|
645
|
-
}
|
|
646
|
-
return j.y(e, t);
|
|
647
|
-
},
|
|
648
|
-
Y: function(e, t, n, r) {
|
|
649
|
-
let i = D(e, r), a = i > 0 ? i : 1 - i;
|
|
650
|
-
return t === "YY" ? A(a % 100, 2) : t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : A(a, t.length);
|
|
651
|
-
},
|
|
652
|
-
R: function(e, t) {
|
|
653
|
-
return A(l(e), t.length);
|
|
654
|
-
},
|
|
655
|
-
u: function(e, t) {
|
|
656
|
-
return A(e.getFullYear(), t.length);
|
|
657
|
-
},
|
|
658
|
-
Q: function(e, t, n) {
|
|
659
|
-
let r = Math.ceil((e.getMonth() + 1) / 3);
|
|
660
|
-
switch (t) {
|
|
661
|
-
case "Q": return String(r);
|
|
662
|
-
case "QQ": return A(r, 2);
|
|
663
|
-
case "Qo": return n.ordinalNumber(r, { unit: "quarter" });
|
|
664
|
-
case "QQQ": return n.quarter(r, {
|
|
665
|
-
width: "abbreviated",
|
|
666
|
-
context: "formatting"
|
|
667
|
-
});
|
|
668
|
-
case "QQQQQ": return n.quarter(r, {
|
|
669
|
-
width: "narrow",
|
|
670
|
-
context: "formatting"
|
|
671
|
-
});
|
|
672
|
-
default: return n.quarter(r, {
|
|
673
|
-
width: "wide",
|
|
674
|
-
context: "formatting"
|
|
675
|
-
});
|
|
676
|
-
}
|
|
677
|
-
},
|
|
678
|
-
q: function(e, t, n) {
|
|
679
|
-
let r = Math.ceil((e.getMonth() + 1) / 3);
|
|
680
|
-
switch (t) {
|
|
681
|
-
case "q": return String(r);
|
|
682
|
-
case "qq": return A(r, 2);
|
|
683
|
-
case "qo": return n.ordinalNumber(r, { unit: "quarter" });
|
|
684
|
-
case "qqq": return n.quarter(r, {
|
|
685
|
-
width: "abbreviated",
|
|
686
|
-
context: "standalone"
|
|
687
|
-
});
|
|
688
|
-
case "qqqqq": return n.quarter(r, {
|
|
689
|
-
width: "narrow",
|
|
690
|
-
context: "standalone"
|
|
691
|
-
});
|
|
692
|
-
default: return n.quarter(r, {
|
|
693
|
-
width: "wide",
|
|
694
|
-
context: "standalone"
|
|
695
|
-
});
|
|
696
|
-
}
|
|
697
|
-
},
|
|
698
|
-
M: function(e, t, n) {
|
|
699
|
-
let r = e.getMonth();
|
|
700
|
-
switch (t) {
|
|
701
|
-
case "M":
|
|
702
|
-
case "MM": return j.M(e, t);
|
|
703
|
-
case "Mo": return n.ordinalNumber(r + 1, { unit: "month" });
|
|
704
|
-
case "MMM": return n.month(r, {
|
|
705
|
-
width: "abbreviated",
|
|
706
|
-
context: "formatting"
|
|
707
|
-
});
|
|
708
|
-
case "MMMMM": return n.month(r, {
|
|
709
|
-
width: "narrow",
|
|
710
|
-
context: "formatting"
|
|
711
|
-
});
|
|
712
|
-
default: return n.month(r, {
|
|
713
|
-
width: "wide",
|
|
714
|
-
context: "formatting"
|
|
715
|
-
});
|
|
716
|
-
}
|
|
717
|
-
},
|
|
718
|
-
L: function(e, t, n) {
|
|
719
|
-
let r = e.getMonth();
|
|
720
|
-
switch (t) {
|
|
721
|
-
case "L": return String(r + 1);
|
|
722
|
-
case "LL": return A(r + 1, 2);
|
|
723
|
-
case "Lo": return n.ordinalNumber(r + 1, { unit: "month" });
|
|
724
|
-
case "LLL": return n.month(r, {
|
|
725
|
-
width: "abbreviated",
|
|
726
|
-
context: "standalone"
|
|
727
|
-
});
|
|
728
|
-
case "LLLLL": return n.month(r, {
|
|
729
|
-
width: "narrow",
|
|
730
|
-
context: "standalone"
|
|
731
|
-
});
|
|
732
|
-
default: return n.month(r, {
|
|
733
|
-
width: "wide",
|
|
734
|
-
context: "standalone"
|
|
735
|
-
});
|
|
736
|
-
}
|
|
737
|
-
},
|
|
738
|
-
w: function(e, t, n, r) {
|
|
739
|
-
let i = k(e, r);
|
|
740
|
-
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : A(i, t.length);
|
|
741
|
-
},
|
|
742
|
-
I: function(e, t, n) {
|
|
743
|
-
let r = E(e);
|
|
744
|
-
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : A(r, t.length);
|
|
745
|
-
},
|
|
746
|
-
d: function(e, t, n) {
|
|
747
|
-
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : j.d(e, t);
|
|
748
|
-
},
|
|
749
|
-
D: function(e, t, n) {
|
|
750
|
-
let r = T(e);
|
|
751
|
-
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : A(r, t.length);
|
|
752
|
-
},
|
|
753
|
-
E: function(e, t, n) {
|
|
754
|
-
let r = e.getDay();
|
|
755
|
-
switch (t) {
|
|
756
|
-
case "E":
|
|
757
|
-
case "EE":
|
|
758
|
-
case "EEE": return n.day(r, {
|
|
759
|
-
width: "abbreviated",
|
|
760
|
-
context: "formatting"
|
|
761
|
-
});
|
|
762
|
-
case "EEEEE": return n.day(r, {
|
|
763
|
-
width: "narrow",
|
|
764
|
-
context: "formatting"
|
|
765
|
-
});
|
|
766
|
-
case "EEEEEE": return n.day(r, {
|
|
767
|
-
width: "short",
|
|
768
|
-
context: "formatting"
|
|
769
|
-
});
|
|
770
|
-
default: return n.day(r, {
|
|
771
|
-
width: "wide",
|
|
772
|
-
context: "formatting"
|
|
773
|
-
});
|
|
774
|
-
}
|
|
775
|
-
},
|
|
776
|
-
e: function(e, t, n, r) {
|
|
777
|
-
let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
778
|
-
switch (t) {
|
|
779
|
-
case "e": return String(a);
|
|
780
|
-
case "ee": return A(a, 2);
|
|
781
|
-
case "eo": return n.ordinalNumber(a, { unit: "day" });
|
|
782
|
-
case "eee": return n.day(i, {
|
|
783
|
-
width: "abbreviated",
|
|
784
|
-
context: "formatting"
|
|
785
|
-
});
|
|
786
|
-
case "eeeee": return n.day(i, {
|
|
787
|
-
width: "narrow",
|
|
788
|
-
context: "formatting"
|
|
789
|
-
});
|
|
790
|
-
case "eeeeee": return n.day(i, {
|
|
791
|
-
width: "short",
|
|
792
|
-
context: "formatting"
|
|
793
|
-
});
|
|
794
|
-
default: return n.day(i, {
|
|
795
|
-
width: "wide",
|
|
796
|
-
context: "formatting"
|
|
797
|
-
});
|
|
798
|
-
}
|
|
799
|
-
},
|
|
800
|
-
c: function(e, t, n, r) {
|
|
801
|
-
let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
802
|
-
switch (t) {
|
|
803
|
-
case "c": return String(a);
|
|
804
|
-
case "cc": return A(a, t.length);
|
|
805
|
-
case "co": return n.ordinalNumber(a, { unit: "day" });
|
|
806
|
-
case "ccc": return n.day(i, {
|
|
807
|
-
width: "abbreviated",
|
|
808
|
-
context: "standalone"
|
|
809
|
-
});
|
|
810
|
-
case "ccccc": return n.day(i, {
|
|
811
|
-
width: "narrow",
|
|
812
|
-
context: "standalone"
|
|
813
|
-
});
|
|
814
|
-
case "cccccc": return n.day(i, {
|
|
815
|
-
width: "short",
|
|
816
|
-
context: "standalone"
|
|
817
|
-
});
|
|
818
|
-
default: return n.day(i, {
|
|
819
|
-
width: "wide",
|
|
820
|
-
context: "standalone"
|
|
821
|
-
});
|
|
822
|
-
}
|
|
823
|
-
},
|
|
824
|
-
i: function(e, t, n) {
|
|
825
|
-
let r = e.getDay(), i = r === 0 ? 7 : r;
|
|
826
|
-
switch (t) {
|
|
827
|
-
case "i": return String(i);
|
|
828
|
-
case "ii": return A(i, t.length);
|
|
829
|
-
case "io": return n.ordinalNumber(i, { unit: "day" });
|
|
830
|
-
case "iii": return n.day(r, {
|
|
831
|
-
width: "abbreviated",
|
|
832
|
-
context: "formatting"
|
|
833
|
-
});
|
|
834
|
-
case "iiiii": return n.day(r, {
|
|
835
|
-
width: "narrow",
|
|
836
|
-
context: "formatting"
|
|
837
|
-
});
|
|
838
|
-
case "iiiiii": return n.day(r, {
|
|
839
|
-
width: "short",
|
|
840
|
-
context: "formatting"
|
|
841
|
-
});
|
|
842
|
-
default: return n.day(r, {
|
|
843
|
-
width: "wide",
|
|
844
|
-
context: "formatting"
|
|
845
|
-
});
|
|
846
|
-
}
|
|
847
|
-
},
|
|
848
|
-
a: function(e, t, n) {
|
|
849
|
-
let r = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
850
|
-
switch (t) {
|
|
851
|
-
case "a":
|
|
852
|
-
case "aa": return n.dayPeriod(r, {
|
|
853
|
-
width: "abbreviated",
|
|
854
|
-
context: "formatting"
|
|
855
|
-
});
|
|
856
|
-
case "aaa": return n.dayPeriod(r, {
|
|
857
|
-
width: "abbreviated",
|
|
858
|
-
context: "formatting"
|
|
859
|
-
}).toLowerCase();
|
|
860
|
-
case "aaaaa": return n.dayPeriod(r, {
|
|
861
|
-
width: "narrow",
|
|
862
|
-
context: "formatting"
|
|
863
|
-
});
|
|
864
|
-
default: return n.dayPeriod(r, {
|
|
865
|
-
width: "wide",
|
|
866
|
-
context: "formatting"
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
},
|
|
870
|
-
b: function(e, t, n) {
|
|
871
|
-
let r = e.getHours(), i;
|
|
872
|
-
switch (i = r === 12 ? M.noon : r === 0 ? M.midnight : r / 12 >= 1 ? "pm" : "am", t) {
|
|
873
|
-
case "b":
|
|
874
|
-
case "bb": return n.dayPeriod(i, {
|
|
875
|
-
width: "abbreviated",
|
|
876
|
-
context: "formatting"
|
|
877
|
-
});
|
|
878
|
-
case "bbb": return n.dayPeriod(i, {
|
|
879
|
-
width: "abbreviated",
|
|
880
|
-
context: "formatting"
|
|
881
|
-
}).toLowerCase();
|
|
882
|
-
case "bbbbb": return n.dayPeriod(i, {
|
|
883
|
-
width: "narrow",
|
|
884
|
-
context: "formatting"
|
|
885
|
-
});
|
|
886
|
-
default: return n.dayPeriod(i, {
|
|
887
|
-
width: "wide",
|
|
888
|
-
context: "formatting"
|
|
889
|
-
});
|
|
890
|
-
}
|
|
891
|
-
},
|
|
892
|
-
B: function(e, t, n) {
|
|
893
|
-
let r = e.getHours(), i;
|
|
894
|
-
switch (i = r >= 17 ? M.evening : r >= 12 ? M.afternoon : r >= 4 ? M.morning : M.night, t) {
|
|
895
|
-
case "B":
|
|
896
|
-
case "BB":
|
|
897
|
-
case "BBB": return n.dayPeriod(i, {
|
|
898
|
-
width: "abbreviated",
|
|
899
|
-
context: "formatting"
|
|
900
|
-
});
|
|
901
|
-
case "BBBBB": return n.dayPeriod(i, {
|
|
902
|
-
width: "narrow",
|
|
903
|
-
context: "formatting"
|
|
904
|
-
});
|
|
905
|
-
default: return n.dayPeriod(i, {
|
|
906
|
-
width: "wide",
|
|
907
|
-
context: "formatting"
|
|
908
|
-
});
|
|
909
|
-
}
|
|
910
|
-
},
|
|
911
|
-
h: function(e, t, n) {
|
|
912
|
-
if (t === "ho") {
|
|
913
|
-
let t = e.getHours() % 12;
|
|
914
|
-
return t === 0 && (t = 12), n.ordinalNumber(t, { unit: "hour" });
|
|
915
|
-
}
|
|
916
|
-
return j.h(e, t);
|
|
917
|
-
},
|
|
918
|
-
H: function(e, t, n) {
|
|
919
|
-
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : j.H(e, t);
|
|
920
|
-
},
|
|
921
|
-
K: function(e, t, n) {
|
|
922
|
-
let r = e.getHours() % 12;
|
|
923
|
-
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : A(r, t.length);
|
|
924
|
-
},
|
|
925
|
-
k: function(e, t, n) {
|
|
926
|
-
let r = e.getHours();
|
|
927
|
-
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : A(r, t.length);
|
|
928
|
-
},
|
|
929
|
-
m: function(e, t, n) {
|
|
930
|
-
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : j.m(e, t);
|
|
931
|
-
},
|
|
932
|
-
s: function(e, t, n) {
|
|
933
|
-
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : j.s(e, t);
|
|
934
|
-
},
|
|
935
|
-
S: function(e, t) {
|
|
936
|
-
return j.S(e, t);
|
|
937
|
-
},
|
|
938
|
-
X: function(e, t, n) {
|
|
939
|
-
let r = e.getTimezoneOffset();
|
|
940
|
-
if (r === 0) return "Z";
|
|
941
|
-
switch (t) {
|
|
942
|
-
case "X": return F(r);
|
|
943
|
-
case "XXXX":
|
|
944
|
-
case "XX": return I(r);
|
|
945
|
-
default: return I(r, ":");
|
|
946
|
-
}
|
|
947
|
-
},
|
|
948
|
-
x: function(e, t, n) {
|
|
949
|
-
let r = e.getTimezoneOffset();
|
|
950
|
-
switch (t) {
|
|
951
|
-
case "x": return F(r);
|
|
952
|
-
case "xxxx":
|
|
953
|
-
case "xx": return I(r);
|
|
954
|
-
default: return I(r, ":");
|
|
955
|
-
}
|
|
956
|
-
},
|
|
957
|
-
O: function(e, t, n) {
|
|
958
|
-
let r = e.getTimezoneOffset();
|
|
959
|
-
switch (t) {
|
|
960
|
-
case "O":
|
|
961
|
-
case "OO":
|
|
962
|
-
case "OOO": return "GMT" + P(r, ":");
|
|
963
|
-
default: return "GMT" + I(r, ":");
|
|
964
|
-
}
|
|
965
|
-
},
|
|
966
|
-
z: function(e, t, n) {
|
|
967
|
-
let r = e.getTimezoneOffset();
|
|
968
|
-
switch (t) {
|
|
969
|
-
case "z":
|
|
970
|
-
case "zz":
|
|
971
|
-
case "zzz": return "GMT" + P(r, ":");
|
|
972
|
-
default: return "GMT" + I(r, ":");
|
|
973
|
-
}
|
|
974
|
-
},
|
|
975
|
-
t: function(e, t, n) {
|
|
976
|
-
return A(Math.trunc(e / 1e3), t.length);
|
|
977
|
-
},
|
|
978
|
-
T: function(e, t, n) {
|
|
979
|
-
return A(+e, t.length);
|
|
980
|
-
}
|
|
981
|
-
};
|
|
982
|
-
function P(e, t = "") {
|
|
983
|
-
let n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), a = r % 60;
|
|
984
|
-
return a === 0 ? n + String(i) : n + String(i) + t + A(a, 2);
|
|
985
|
-
}
|
|
986
|
-
function F(e, t) {
|
|
987
|
-
return e % 60 == 0 ? (e > 0 ? "-" : "+") + A(Math.abs(e) / 60, 2) : I(e, t);
|
|
988
|
-
}
|
|
989
|
-
function I(e, t = "") {
|
|
990
|
-
let n = e > 0 ? "-" : "+", r = Math.abs(e), i = A(Math.trunc(r / 60), 2), a = A(r % 60, 2);
|
|
991
|
-
return n + i + t + a;
|
|
992
|
-
}
|
|
993
|
-
//#endregion
|
|
994
|
-
//#region node_modules/date-fns/_lib/format/longFormatters.js
|
|
995
|
-
var L = (e, t) => {
|
|
996
|
-
switch (e) {
|
|
997
|
-
case "P": return t.date({ width: "short" });
|
|
998
|
-
case "PP": return t.date({ width: "medium" });
|
|
999
|
-
case "PPP": return t.date({ width: "long" });
|
|
1000
|
-
default: return t.date({ width: "full" });
|
|
1001
|
-
}
|
|
1002
|
-
}, R = (e, t) => {
|
|
1003
|
-
switch (e) {
|
|
1004
|
-
case "p": return t.time({ width: "short" });
|
|
1005
|
-
case "pp": return t.time({ width: "medium" });
|
|
1006
|
-
case "ppp": return t.time({ width: "long" });
|
|
1007
|
-
default: return t.time({ width: "full" });
|
|
1008
|
-
}
|
|
1009
|
-
}, z = {
|
|
1010
|
-
p: R,
|
|
1011
|
-
P: (e, t) => {
|
|
1012
|
-
let n = e.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
|
|
1013
|
-
if (!i) return L(e, t);
|
|
1014
|
-
let a;
|
|
1015
|
-
switch (r) {
|
|
1016
|
-
case "P":
|
|
1017
|
-
a = t.dateTime({ width: "short" });
|
|
1018
|
-
break;
|
|
1019
|
-
case "PP":
|
|
1020
|
-
a = t.dateTime({ width: "medium" });
|
|
1021
|
-
break;
|
|
1022
|
-
case "PPP":
|
|
1023
|
-
a = t.dateTime({ width: "long" });
|
|
1024
|
-
break;
|
|
1025
|
-
default:
|
|
1026
|
-
a = t.dateTime({ width: "full" });
|
|
1027
|
-
break;
|
|
1028
|
-
}
|
|
1029
|
-
return a.replace("{{date}}", L(r, t)).replace("{{time}}", R(i, t));
|
|
1030
|
-
}
|
|
1031
|
-
}, B = /^D+$/, V = /^Y+$/, H = [
|
|
1032
|
-
"D",
|
|
1033
|
-
"DD",
|
|
1034
|
-
"YY",
|
|
1035
|
-
"YYYY"
|
|
1036
|
-
];
|
|
1037
|
-
function U(e) {
|
|
1038
|
-
return B.test(e);
|
|
1039
|
-
}
|
|
1040
|
-
function W(e) {
|
|
1041
|
-
return V.test(e);
|
|
1042
|
-
}
|
|
1043
|
-
function G(e, t, n) {
|
|
1044
|
-
let r = K(e, t, n);
|
|
1045
|
-
if (console.warn(r), H.includes(e)) throw RangeError(r);
|
|
1046
|
-
}
|
|
1047
|
-
function K(e, t, n) {
|
|
1048
|
-
let r = e[0] === "Y" ? "years" : "days of the month";
|
|
1049
|
-
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1050
|
-
}
|
|
1051
|
-
//#endregion
|
|
1052
|
-
//#region node_modules/date-fns/format.js
|
|
1053
|
-
var q = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, J = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Y = /^'([^]*?)'?$/, X = /''/g, Z = /[a-zA-Z]/;
|
|
1054
|
-
function Q(e, t, r) {
|
|
1055
|
-
let a = o(), s = r?.locale ?? a.locale ?? w, c = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, l = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, u = n(e, r?.in);
|
|
1056
|
-
if (!i(u)) throw RangeError("Invalid time value");
|
|
1057
|
-
let d = t.match(J).map((e) => {
|
|
1058
|
-
let t = e[0];
|
|
1059
|
-
if (t === "p" || t === "P") {
|
|
1060
|
-
let n = z[t];
|
|
1061
|
-
return n(e, s.formatLong);
|
|
1062
|
-
}
|
|
1063
|
-
return e;
|
|
1064
|
-
}).join("").match(q).map((e) => {
|
|
1065
|
-
if (e === "''") return {
|
|
1066
|
-
isToken: !1,
|
|
1067
|
-
value: "'"
|
|
1068
|
-
};
|
|
1069
|
-
let t = e[0];
|
|
1070
|
-
if (t === "'") return {
|
|
1071
|
-
isToken: !1,
|
|
1072
|
-
value: $(e)
|
|
1073
|
-
};
|
|
1074
|
-
if (N[t]) return {
|
|
1075
|
-
isToken: !0,
|
|
1076
|
-
value: e
|
|
1077
|
-
};
|
|
1078
|
-
if (t.match(Z)) throw RangeError("Format string contains an unescaped latin alphabet character `" + t + "`");
|
|
1079
|
-
return {
|
|
1080
|
-
isToken: !1,
|
|
1081
|
-
value: e
|
|
1082
|
-
};
|
|
1083
|
-
});
|
|
1084
|
-
s.localize.preprocessor && (d = s.localize.preprocessor(u, d));
|
|
1085
|
-
let f = {
|
|
1086
|
-
firstWeekContainsDate: c,
|
|
1087
|
-
weekStartsOn: l,
|
|
1088
|
-
locale: s
|
|
1089
|
-
};
|
|
1090
|
-
return d.map((n) => {
|
|
1091
|
-
if (!n.isToken) return n.value;
|
|
1092
|
-
let i = n.value;
|
|
1093
|
-
(!r?.useAdditionalWeekYearTokens && W(i) || !r?.useAdditionalDayOfYearTokens && U(i)) && G(i, t, String(e));
|
|
1094
|
-
let a = N[i[0]];
|
|
1095
|
-
return a(u, i, s.localize, f);
|
|
1096
|
-
}).join("");
|
|
1097
|
-
}
|
|
1098
|
-
function $(e) {
|
|
1099
|
-
let t = e.match(Y);
|
|
1100
|
-
return t ? t[1].replace(X, "'") : e;
|
|
1101
|
-
}
|
|
1102
|
-
//#endregion
|
|
1103
|
-
export { Q as t };
|