@g4rcez/components 3.0.2 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CaretDown.es-Cj7klWI3.js +33 -0
- package/dist/CaretDown.es-Cj7klWI3.js.map +1 -0
- package/dist/CaretRight.es-0-M8D9y8.js +33 -0
- package/dist/CaretRight.es-0-M8D9y8.js.map +1 -0
- package/dist/CheckCircle.es-C6QWLfk_.js +33 -0
- package/dist/CheckCircle.es-C6QWLfk_.js.map +1 -0
- package/dist/File.es-CA-vuPED.js +33 -0
- package/dist/File.es-CA-vuPED.js.map +1 -0
- package/dist/IconBase.es-DJ1oCtpo.js +50 -0
- package/dist/IconBase.es-DJ1oCtpo.js.map +1 -0
- package/dist/Info.es-CrZKs4q4.js +33 -0
- package/dist/Info.es-CrZKs4q4.js.map +1 -0
- package/dist/MotionConfigContext-C7MqlSdv.js.map +1 -1
- package/dist/Warning.es-D_eI6tLe.js +39 -0
- package/dist/Warning.es-D_eI6tLe.js.map +1 -0
- package/dist/X.es-BJ1O93El.js +39 -0
- package/dist/X.es-BJ1O93El.js.map +1 -0
- package/dist/ai/docs/Alert.md +1 -1
- package/dist/ai/docs/AnimatedList.md +3 -3
- package/dist/ai/docs/Button.md +1 -1
- package/dist/ai/docs/CommandPalette.md +7 -7
- package/dist/ai/docs/Dropdown.md +4 -4
- package/dist/ai/docs/Empty.md +9 -9
- package/dist/ai/docs/Expand.md +1 -1
- package/dist/ai/docs/FileUpload.md +2 -2
- package/dist/ai/docs/Input.md +2 -2
- package/dist/ai/docs/InputField.md +2 -2
- package/dist/ai/docs/List.md +3 -3
- package/dist/ai/docs/Menu.md +3 -3
- package/dist/ai/docs/MultiSelect.md +1 -1
- package/dist/ai/docs/PageCalendar.md +1 -1
- package/dist/ai/docs/Select.md +1 -1
- package/dist/ai/docs/Slot.md +1 -1
- package/dist/ai/docs/Stats.md +11 -11
- package/dist/ai/docs/Table.md +1 -1
- package/dist/ai/docs/Tag.md +2 -2
- package/dist/ai/docs/Timeline.md +5 -5
- package/dist/ai/docs/Toolbar.md +2 -2
- package/dist/ai/docs/Tooltip.md +3 -3
- package/dist/ai/docs/TransferList.md +2 -2
- package/dist/{autocomplete-Boida9R7.js → autocomplete-Cn9Z2hLq.js} +48 -48
- package/dist/autocomplete-Cn9Z2hLq.js.map +1 -0
- package/dist/{calendar-BswV66Nx.js → calendar-B5lSd0ID.js} +599 -571
- package/dist/calendar-B5lSd0ID.js.map +1 -0
- package/dist/components/display/alert.js +18 -18
- package/dist/components/display/alert.js.map +1 -1
- package/dist/components/display/calendar.js +4 -4
- package/dist/components/display/card.d.ts +2 -2
- package/dist/components/display/card.d.ts.map +1 -1
- package/dist/components/display/card.js +6 -6
- package/dist/components/display/card.js.map +1 -1
- package/dist/components/display/empty.d.ts +2 -2
- package/dist/components/display/empty.d.ts.map +1 -1
- package/dist/components/display/list.js +15 -15
- package/dist/components/display/list.js.map +1 -1
- package/dist/components/display/notifications.js +5 -5
- package/dist/components/display/tabs.js +1 -1
- package/dist/components/floating/command-palette.d.ts +3 -3
- package/dist/components/floating/command-palette.d.ts.map +1 -1
- package/dist/components/floating/dropdown.js +1 -1
- package/dist/components/floating/expand.js +1 -1
- package/dist/components/floating/menu.d.ts +2 -2
- package/dist/components/floating/menu.d.ts.map +1 -1
- package/dist/components/floating/menu.js +31 -31
- package/dist/components/floating/menu.js.map +1 -1
- package/dist/components/floating/modal.js +35 -35
- package/dist/components/floating/modal.js.map +1 -1
- package/dist/components/floating/tooltip.js +1 -1
- package/dist/components/form/autocomplete.js +5 -5
- package/dist/components/form/date-picker.js +3 -3
- package/dist/components/form/file-upload.d.ts.map +1 -1
- package/dist/components/form/file-upload.js +3 -3
- package/dist/components/form/input-field.d.ts.map +1 -1
- package/dist/components/form/input.js +1 -1
- package/dist/components/form/select.js +29 -29
- package/dist/components/form/select.js.map +1 -1
- package/dist/components/form/task-list.js.map +1 -1
- package/dist/components/form/transfer-list.js +15 -15
- package/dist/components/form/transfer-list.js.map +1 -1
- package/dist/components/page-calendar/calendar-header.d.ts.map +1 -1
- package/dist/components/page-calendar/day-view.d.ts.map +1 -1
- package/dist/components/page-calendar/month-view.d.ts.map +1 -1
- package/dist/components/page-calendar/page-calendar.utils.d.ts +6 -0
- package/dist/components/page-calendar/page-calendar.utils.d.ts.map +1 -1
- package/dist/components/page-calendar/week-view.d.ts.map +1 -1
- package/dist/components/table/table.js +3 -3
- package/dist/config/context.d.ts +2 -0
- package/dist/config/context.d.ts.map +1 -1
- package/dist/context-BFXNJVn2.js.map +1 -1
- package/dist/{date-picker-BxPTdZPy.js → date-picker-DwNo22lx.js} +316 -288
- package/dist/date-picker-DwNo22lx.js.map +1 -0
- package/dist/{file-upload-BB6BdGcE.js → file-upload-Brf2NkLr.js} +1103 -976
- package/dist/file-upload-Brf2NkLr.js.map +1 -0
- package/dist/{floating-ui.react-DycKASR0.js → floating-ui.react-QNHG9W4N.js} +205 -205
- package/dist/{floating-ui.react-DycKASR0.js.map → floating-ui.react-QNHG9W4N.js.map} +1 -1
- package/dist/hooks/use-components-provider.d.ts.map +1 -1
- package/dist/index-0YMC-_Lt.js.map +1 -1
- package/dist/index-BelDtX5M.js +1821 -0
- package/dist/index-BelDtX5M.js.map +1 -0
- package/dist/{index-BtlhELJ3.js → index-C-PuFUZi.js} +136 -136
- package/dist/index-C-PuFUZi.js.map +1 -0
- package/dist/index-Z-fZHxfJ.js +335 -0
- package/dist/index-Z-fZHxfJ.js.map +1 -0
- package/dist/index-t1qLJTt5.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +2583 -2463
- package/dist/index.js.map +1 -1
- package/dist/{input-CoJoHIhd.js → input-CrGrSnUt.js} +2 -2
- package/dist/{input-CoJoHIhd.js.map → input-CrGrSnUt.js.map} +1 -1
- package/dist/input-field-5vYcz5tT.js +166 -0
- package/dist/input-field-5vYcz5tT.js.map +1 -0
- package/dist/notifications-cUdVPs-B.js +2786 -0
- package/dist/notifications-cUdVPs-B.js.map +1 -0
- package/dist/proxy-BZcQiBrp.js.map +1 -1
- package/dist/{slot-CQW8ZzBb.js → slot-CRyweuj0.js} +5 -5
- package/dist/{slot-CQW8ZzBb.js.map → slot-CRyweuj0.js.map} +1 -1
- package/dist/{tabs-ccIA7vMo.js → tabs-S00a8qq8.js} +5 -5
- package/dist/{tabs-ccIA7vMo.js.map → tabs-S00a8qq8.js.map} +1 -1
- package/dist/use-motion-value-eGwNuWuw.js.map +1 -1
- package/package.json +2 -2
- package/dist/autocomplete-Boida9R7.js.map +0 -1
- package/dist/calendar-BswV66Nx.js.map +0 -1
- package/dist/chevron-down-BBFYYzZq.js +0 -6
- package/dist/chevron-down-BBFYYzZq.js.map +0 -1
- package/dist/chevron-right-DvXGOiS_.js +0 -6
- package/dist/chevron-right-DvXGOiS_.js.map +0 -1
- package/dist/circle-check-big-3M5lhTxx.js +0 -9
- package/dist/circle-check-big-3M5lhTxx.js.map +0 -1
- package/dist/createLucideIcon-CP-mMPfa.js +0 -76
- package/dist/createLucideIcon-CP-mMPfa.js.map +0 -1
- package/dist/date-picker-BxPTdZPy.js.map +0 -1
- package/dist/file-CBCP85VI.js +0 -15
- package/dist/file-CBCP85VI.js.map +0 -1
- package/dist/file-upload-BB6BdGcE.js.map +0 -1
- package/dist/index-BJ1ayTam.js +0 -126
- package/dist/index-BJ1ayTam.js.map +0 -1
- package/dist/index-BtlhELJ3.js.map +0 -1
- package/dist/index-ChfR6F8d.js +0 -1590
- package/dist/index-ChfR6F8d.js.map +0 -1
- package/dist/index-DE4shK8D.js +0 -215
- package/dist/index-DE4shK8D.js.map +0 -1
- package/dist/info-N5jWZg2A.js +0 -10
- package/dist/info-N5jWZg2A.js.map +0 -1
- package/dist/input-field-DTeIrwpK.js +0 -146
- package/dist/input-field-DTeIrwpK.js.map +0 -1
- package/dist/notifications-NPuFDsBp.js +0 -2550
- package/dist/notifications-NPuFDsBp.js.map +0 -1
- package/dist/triangle-alert-CHMhQ6yd.js +0 -16
- package/dist/triangle-alert-CHMhQ6yd.js.map +0 -1
- package/dist/x-B9bYxG31.js +0 -9
- package/dist/x-B9bYxG31.js.map +0 -1
|
@@ -1,77 +1,105 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { u as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { jsx as h, jsxs as Y } from "react/jsx-runtime";
|
|
2
|
+
import * as b from "react";
|
|
3
|
+
import { useContext as Ft, useRef as R, useEffect as Ct } from "react";
|
|
4
|
+
import { p as At } from "./IconBase.es-DJ1oCtpo.js";
|
|
5
|
+
import { e as It } from "./CaretRight.es-0-M8D9y8.js";
|
|
6
|
+
import { c as X, I as C } from "./dom-Dl8XH0CK.js";
|
|
7
|
+
import { a as _t, I as qt } from "./input-CrGrSnUt.js";
|
|
8
|
+
import { u as Ht } from "./index-Z-fZHxfJ.js";
|
|
9
|
+
import { C as Lt } from "./context-BFXNJVn2.js";
|
|
10
|
+
import { u as yt } from "./use-translations-BwLKTrZv.js";
|
|
11
|
+
import { u as Rt, a as Xt } from "./fns-D2eyJKd5.js";
|
|
12
|
+
import { A as jt, m as E } from "./proxy-BZcQiBrp.js";
|
|
13
|
+
import { M as Vt } from "./index-0YMC-_Lt.js";
|
|
14
|
+
const Qt = /* @__PURE__ */ new Map([
|
|
15
|
+
[
|
|
16
|
+
"bold",
|
|
17
|
+
/* @__PURE__ */ b.createElement(b.Fragment, null, /* @__PURE__ */ b.createElement("path", { d: "M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z" }))
|
|
18
|
+
],
|
|
19
|
+
[
|
|
20
|
+
"duotone",
|
|
21
|
+
/* @__PURE__ */ b.createElement(b.Fragment, null, /* @__PURE__ */ b.createElement("path", { d: "M160,48V208L80,128Z", opacity: "0.2" }), /* @__PURE__ */ b.createElement("path", { d: "M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z" }))
|
|
22
|
+
],
|
|
23
|
+
[
|
|
24
|
+
"fill",
|
|
25
|
+
/* @__PURE__ */ b.createElement(b.Fragment, null, /* @__PURE__ */ b.createElement("path", { d: "M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z" }))
|
|
26
|
+
],
|
|
27
|
+
[
|
|
28
|
+
"light",
|
|
29
|
+
/* @__PURE__ */ b.createElement(b.Fragment, null, /* @__PURE__ */ b.createElement("path", { d: "M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z" }))
|
|
30
|
+
],
|
|
31
|
+
[
|
|
32
|
+
"regular",
|
|
33
|
+
/* @__PURE__ */ b.createElement(b.Fragment, null, /* @__PURE__ */ b.createElement("path", { d: "M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z" }))
|
|
34
|
+
],
|
|
35
|
+
[
|
|
36
|
+
"thin",
|
|
37
|
+
/* @__PURE__ */ b.createElement(b.Fragment, null, /* @__PURE__ */ b.createElement("path", { d: "M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z" }))
|
|
38
|
+
]
|
|
39
|
+
]), wt = b.forwardRef((t, e) => /* @__PURE__ */ b.createElement(At, { ref: e, ...t, weights: Qt }));
|
|
40
|
+
wt.displayName = "CaretLeftIcon";
|
|
41
|
+
const $t = (t) => {
|
|
42
|
+
const e = Ft(Lt);
|
|
15
43
|
if (t) return t;
|
|
16
44
|
if (e)
|
|
17
45
|
return e.locale || t;
|
|
18
|
-
},
|
|
19
|
-
function
|
|
20
|
-
return typeof t == "function" ? t(e) : t && typeof t == "object" &&
|
|
46
|
+
}, bt = 6048e5, Bt = 864e5, In = 6e4, _n = 36e5, qn = 1e3, it = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
47
|
+
function M(t, e) {
|
|
48
|
+
return typeof t == "function" ? t(e) : t && typeof t == "object" && it in t ? t[it](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
|
|
21
49
|
}
|
|
22
50
|
function y(t, e) {
|
|
23
|
-
return
|
|
51
|
+
return M(e || t, t);
|
|
24
52
|
}
|
|
25
|
-
function
|
|
26
|
-
const
|
|
27
|
-
return isNaN(e) ?
|
|
53
|
+
function Mt(t, e, n) {
|
|
54
|
+
const a = y(t, n?.in);
|
|
55
|
+
return isNaN(e) ? M(n?.in || t, NaN) : (e && a.setDate(a.getDate() + e), a);
|
|
28
56
|
}
|
|
29
|
-
function
|
|
30
|
-
const
|
|
31
|
-
if (isNaN(e)) return
|
|
57
|
+
function pt(t, e, n) {
|
|
58
|
+
const a = y(t, n?.in);
|
|
59
|
+
if (isNaN(e)) return M(t, NaN);
|
|
32
60
|
if (!e)
|
|
33
|
-
return
|
|
34
|
-
const
|
|
35
|
-
o.setMonth(
|
|
61
|
+
return a;
|
|
62
|
+
const r = a.getDate(), o = M(t, a.getTime());
|
|
63
|
+
o.setMonth(a.getMonth() + e + 1, 0);
|
|
36
64
|
const s = o.getDate();
|
|
37
|
-
return
|
|
65
|
+
return r >= s ? o : (a.setFullYear(
|
|
38
66
|
o.getFullYear(),
|
|
39
67
|
o.getMonth(),
|
|
40
|
-
|
|
41
|
-
),
|
|
68
|
+
r
|
|
69
|
+
), a);
|
|
42
70
|
}
|
|
43
|
-
function
|
|
71
|
+
function F(t, e, n) {
|
|
44
72
|
const {
|
|
45
|
-
years:
|
|
46
|
-
months:
|
|
73
|
+
years: a = 0,
|
|
74
|
+
months: r = 0,
|
|
47
75
|
weeks: o = 0,
|
|
48
76
|
days: s = 0,
|
|
49
77
|
hours: c = 0,
|
|
50
78
|
minutes: g = 0,
|
|
51
79
|
seconds: w = 0
|
|
52
|
-
} = e, l = y(t, n?.in),
|
|
53
|
-
return
|
|
80
|
+
} = e, l = y(t, n?.in), f = r || a ? pt(l, r + a * 12) : l, S = s || o ? Mt(f, s + o * 7) : f, V = g + c * 60, J = (w + V * 60) * 1e3;
|
|
81
|
+
return M(t, +S + J);
|
|
54
82
|
}
|
|
55
|
-
let
|
|
56
|
-
function
|
|
57
|
-
return
|
|
83
|
+
let Gt = {};
|
|
84
|
+
function j() {
|
|
85
|
+
return Gt;
|
|
58
86
|
}
|
|
59
|
-
function
|
|
60
|
-
const n =
|
|
61
|
-
return
|
|
87
|
+
function N(t, e) {
|
|
88
|
+
const n = j(), a = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, r = y(t, e?.in), o = r.getDay(), s = (o < a ? 7 : 0) + o - a;
|
|
89
|
+
return r.setDate(r.getDate() - s), r.setHours(0, 0, 0, 0), r;
|
|
62
90
|
}
|
|
63
|
-
function
|
|
64
|
-
return
|
|
91
|
+
function G(t, e) {
|
|
92
|
+
return N(t, { ...e, weekStartsOn: 1 });
|
|
65
93
|
}
|
|
66
|
-
function
|
|
67
|
-
const n = y(t, e?.in),
|
|
68
|
-
|
|
69
|
-
const o =
|
|
70
|
-
s.setFullYear(
|
|
71
|
-
const c =
|
|
72
|
-
return n.getTime() >= o.getTime() ?
|
|
94
|
+
function Dt(t, e) {
|
|
95
|
+
const n = y(t, e?.in), a = n.getFullYear(), r = M(n, 0);
|
|
96
|
+
r.setFullYear(a + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
97
|
+
const o = G(r), s = M(n, 0);
|
|
98
|
+
s.setFullYear(a, 0, 4), s.setHours(0, 0, 0, 0);
|
|
99
|
+
const c = G(s);
|
|
100
|
+
return n.getTime() >= o.getTime() ? a + 1 : n.getTime() >= c.getTime() ? a : a - 1;
|
|
73
101
|
}
|
|
74
|
-
function
|
|
102
|
+
function ct(t) {
|
|
75
103
|
const e = y(t), n = new Date(
|
|
76
104
|
Date.UTC(
|
|
77
105
|
e.getFullYear(),
|
|
@@ -85,72 +113,72 @@ function it(t) {
|
|
|
85
113
|
);
|
|
86
114
|
return n.setUTCFullYear(e.getFullYear()), +t - +n;
|
|
87
115
|
}
|
|
88
|
-
function
|
|
89
|
-
const n =
|
|
116
|
+
function z(t, ...e) {
|
|
117
|
+
const n = M.bind(
|
|
90
118
|
null,
|
|
91
|
-
e.find((
|
|
119
|
+
e.find((a) => typeof a == "object")
|
|
92
120
|
);
|
|
93
121
|
return e.map(n);
|
|
94
122
|
}
|
|
95
|
-
function
|
|
123
|
+
function A(t, e) {
|
|
96
124
|
const n = y(t, e?.in);
|
|
97
125
|
return n.setHours(0, 0, 0, 0), n;
|
|
98
126
|
}
|
|
99
|
-
function
|
|
100
|
-
const [
|
|
127
|
+
function zt(t, e, n) {
|
|
128
|
+
const [a, r] = z(
|
|
101
129
|
n?.in,
|
|
102
130
|
t,
|
|
103
131
|
e
|
|
104
|
-
), o =
|
|
105
|
-
return Math.round((c - g) /
|
|
132
|
+
), o = A(a), s = A(r), c = +o - ct(o), g = +s - ct(s);
|
|
133
|
+
return Math.round((c - g) / Bt);
|
|
106
134
|
}
|
|
107
|
-
function
|
|
108
|
-
const n =
|
|
109
|
-
return
|
|
135
|
+
function Jt(t, e) {
|
|
136
|
+
const n = Dt(t, e), a = M(t, 0);
|
|
137
|
+
return a.setFullYear(n, 0, 4), a.setHours(0, 0, 0, 0), G(a);
|
|
110
138
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
139
|
+
function Kt(t) {
|
|
140
|
+
return M(t, Date.now());
|
|
113
141
|
}
|
|
114
|
-
function
|
|
115
|
-
const [
|
|
142
|
+
function Zt(t, e, n) {
|
|
143
|
+
const [a, r] = z(
|
|
116
144
|
n?.in,
|
|
117
145
|
t,
|
|
118
146
|
e
|
|
119
147
|
);
|
|
120
|
-
return +
|
|
148
|
+
return +A(a) == +A(r);
|
|
121
149
|
}
|
|
122
150
|
function Ut(t) {
|
|
123
151
|
return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
|
|
124
152
|
}
|
|
125
|
-
function
|
|
153
|
+
function te(t) {
|
|
126
154
|
return !(!Ut(t) && typeof t != "number" || isNaN(+y(t)));
|
|
127
155
|
}
|
|
128
|
-
function
|
|
129
|
-
const [n,
|
|
130
|
-
return { start: n, end:
|
|
156
|
+
function ee(t, e) {
|
|
157
|
+
const [n, a] = z(t, e.start, e.end);
|
|
158
|
+
return { start: n, end: a };
|
|
131
159
|
}
|
|
132
|
-
function
|
|
133
|
-
const { start: n, end:
|
|
134
|
-
let
|
|
135
|
-
const o =
|
|
160
|
+
function xt(t, e) {
|
|
161
|
+
const { start: n, end: a } = ee(e?.in, t);
|
|
162
|
+
let r = +n > +a;
|
|
163
|
+
const o = r ? +n : +a, s = r ? a : n;
|
|
136
164
|
s.setHours(0, 0, 0, 0);
|
|
137
165
|
let c = 1;
|
|
138
166
|
const g = [];
|
|
139
167
|
for (; +s <= o; )
|
|
140
|
-
g.push(
|
|
141
|
-
return
|
|
168
|
+
g.push(M(n, s)), s.setDate(s.getDate() + c), s.setHours(0, 0, 0, 0);
|
|
169
|
+
return r ? g.reverse() : g;
|
|
142
170
|
}
|
|
143
|
-
function
|
|
171
|
+
function vt(t, e) {
|
|
144
172
|
const n = y(t, e?.in);
|
|
145
173
|
return n.setDate(1), n.setHours(0, 0, 0, 0), n;
|
|
146
174
|
}
|
|
147
|
-
function
|
|
175
|
+
function ne(t, e) {
|
|
148
176
|
const n = y(t, e?.in);
|
|
149
177
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
150
178
|
}
|
|
151
|
-
function
|
|
152
|
-
const n =
|
|
153
|
-
return
|
|
179
|
+
function ae(t, e) {
|
|
180
|
+
const n = j(), a = n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, r = y(t, e?.in), o = r.getDay(), s = (o < a ? -7 : 0) + 6 - (o - a);
|
|
181
|
+
return r.setDate(r.getDate() + s), r.setHours(23, 59, 59, 999), r;
|
|
154
182
|
}
|
|
155
183
|
const re = {
|
|
156
184
|
lessThanXSeconds: {
|
|
@@ -214,69 +242,69 @@ const re = {
|
|
|
214
242
|
one: "almost 1 year",
|
|
215
243
|
other: "almost {{count}} years"
|
|
216
244
|
}
|
|
217
|
-
},
|
|
218
|
-
let
|
|
219
|
-
const
|
|
220
|
-
return typeof
|
|
245
|
+
}, oe = (t, e, n) => {
|
|
246
|
+
let a;
|
|
247
|
+
const r = re[t];
|
|
248
|
+
return typeof r == "string" ? a = r : e === 1 ? a = r.one : a = r.other.replace("{{count}}", e.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + a : a + " ago" : a;
|
|
221
249
|
};
|
|
222
|
-
function
|
|
250
|
+
function at(t) {
|
|
223
251
|
return (e = {}) => {
|
|
224
252
|
const n = e.width ? String(e.width) : t.defaultWidth;
|
|
225
253
|
return t.formats[n] || t.formats[t.defaultWidth];
|
|
226
254
|
};
|
|
227
255
|
}
|
|
228
|
-
const
|
|
256
|
+
const se = {
|
|
229
257
|
full: "EEEE, MMMM do, y",
|
|
230
258
|
long: "MMMM do, y",
|
|
231
259
|
medium: "MMM d, y",
|
|
232
260
|
short: "MM/dd/yyyy"
|
|
233
|
-
},
|
|
261
|
+
}, ie = {
|
|
234
262
|
full: "h:mm:ss a zzzz",
|
|
235
263
|
long: "h:mm:ss a z",
|
|
236
264
|
medium: "h:mm:ss a",
|
|
237
265
|
short: "h:mm a"
|
|
238
|
-
},
|
|
266
|
+
}, ce = {
|
|
239
267
|
full: "{{date}} 'at' {{time}}",
|
|
240
268
|
long: "{{date}} 'at' {{time}}",
|
|
241
269
|
medium: "{{date}}, {{time}}",
|
|
242
270
|
short: "{{date}}, {{time}}"
|
|
243
|
-
},
|
|
244
|
-
date:
|
|
245
|
-
formats: oe,
|
|
246
|
-
defaultWidth: "full"
|
|
247
|
-
}),
|
|
248
|
-
time: nt({
|
|
271
|
+
}, ue = {
|
|
272
|
+
date: at({
|
|
249
273
|
formats: se,
|
|
250
274
|
defaultWidth: "full"
|
|
251
275
|
}),
|
|
252
|
-
|
|
276
|
+
time: at({
|
|
253
277
|
formats: ie,
|
|
254
278
|
defaultWidth: "full"
|
|
279
|
+
}),
|
|
280
|
+
dateTime: at({
|
|
281
|
+
formats: ce,
|
|
282
|
+
defaultWidth: "full"
|
|
255
283
|
})
|
|
256
|
-
},
|
|
284
|
+
}, de = {
|
|
257
285
|
lastWeek: "'last' eeee 'at' p",
|
|
258
286
|
yesterday: "'yesterday at' p",
|
|
259
287
|
today: "'today at' p",
|
|
260
288
|
tomorrow: "'tomorrow at' p",
|
|
261
289
|
nextWeek: "eeee 'at' p",
|
|
262
290
|
other: "P"
|
|
263
|
-
},
|
|
291
|
+
}, le = (t, e, n, a) => de[t];
|
|
264
292
|
function q(t) {
|
|
265
293
|
return (e, n) => {
|
|
266
|
-
const
|
|
267
|
-
let
|
|
268
|
-
if (
|
|
294
|
+
const a = n?.context ? String(n.context) : "standalone";
|
|
295
|
+
let r;
|
|
296
|
+
if (a === "formatting" && t.formattingValues) {
|
|
269
297
|
const s = t.defaultFormattingWidth || t.defaultWidth, c = n?.width ? String(n.width) : s;
|
|
270
|
-
|
|
298
|
+
r = t.formattingValues[c] || t.formattingValues[s];
|
|
271
299
|
} else {
|
|
272
300
|
const s = t.defaultWidth, c = n?.width ? String(n.width) : t.defaultWidth;
|
|
273
|
-
|
|
301
|
+
r = t.values[c] || t.values[s];
|
|
274
302
|
}
|
|
275
303
|
const o = t.argumentCallback ? t.argumentCallback(e) : e;
|
|
276
|
-
return
|
|
304
|
+
return r[o];
|
|
277
305
|
};
|
|
278
306
|
}
|
|
279
|
-
const
|
|
307
|
+
const me = {
|
|
280
308
|
narrow: ["B", "A"],
|
|
281
309
|
abbreviated: ["BC", "AD"],
|
|
282
310
|
wide: ["Before Christ", "Anno Domini"]
|
|
@@ -314,7 +342,7 @@ const le = {
|
|
|
314
342
|
"November",
|
|
315
343
|
"December"
|
|
316
344
|
]
|
|
317
|
-
},
|
|
345
|
+
}, ge = {
|
|
318
346
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
319
347
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
320
348
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -327,7 +355,7 @@ const le = {
|
|
|
327
355
|
"Friday",
|
|
328
356
|
"Saturday"
|
|
329
357
|
]
|
|
330
|
-
},
|
|
358
|
+
}, ye = {
|
|
331
359
|
narrow: {
|
|
332
360
|
am: "a",
|
|
333
361
|
pm: "p",
|
|
@@ -358,7 +386,7 @@ const le = {
|
|
|
358
386
|
evening: "evening",
|
|
359
387
|
night: "night"
|
|
360
388
|
}
|
|
361
|
-
},
|
|
389
|
+
}, we = {
|
|
362
390
|
narrow: {
|
|
363
391
|
am: "a",
|
|
364
392
|
pm: "p",
|
|
@@ -389,10 +417,10 @@ const le = {
|
|
|
389
417
|
evening: "in the evening",
|
|
390
418
|
night: "at night"
|
|
391
419
|
}
|
|
392
|
-
},
|
|
393
|
-
const n = Number(t),
|
|
394
|
-
if (
|
|
395
|
-
switch (
|
|
420
|
+
}, be = (t, e) => {
|
|
421
|
+
const n = Number(t), a = n % 100;
|
|
422
|
+
if (a > 20 || a < 10)
|
|
423
|
+
switch (a % 10) {
|
|
396
424
|
case 1:
|
|
397
425
|
return n + "st";
|
|
398
426
|
case 2:
|
|
@@ -401,10 +429,10 @@ const le = {
|
|
|
401
429
|
return n + "rd";
|
|
402
430
|
}
|
|
403
431
|
return n + "th";
|
|
404
|
-
},
|
|
405
|
-
ordinalNumber:
|
|
432
|
+
}, Me = {
|
|
433
|
+
ordinalNumber: be,
|
|
406
434
|
era: q({
|
|
407
|
-
values:
|
|
435
|
+
values: me,
|
|
408
436
|
defaultWidth: "wide"
|
|
409
437
|
}),
|
|
410
438
|
quarter: q({
|
|
@@ -417,24 +445,24 @@ const le = {
|
|
|
417
445
|
defaultWidth: "wide"
|
|
418
446
|
}),
|
|
419
447
|
day: q({
|
|
420
|
-
values:
|
|
448
|
+
values: ge,
|
|
421
449
|
defaultWidth: "wide"
|
|
422
450
|
}),
|
|
423
451
|
dayPeriod: q({
|
|
424
|
-
values:
|
|
452
|
+
values: ye,
|
|
425
453
|
defaultWidth: "wide",
|
|
426
|
-
formattingValues:
|
|
454
|
+
formattingValues: we,
|
|
427
455
|
defaultFormattingWidth: "wide"
|
|
428
456
|
})
|
|
429
457
|
};
|
|
430
|
-
function
|
|
458
|
+
function H(t) {
|
|
431
459
|
return (e, n = {}) => {
|
|
432
|
-
const
|
|
460
|
+
const a = n.width, r = a && t.matchPatterns[a] || t.matchPatterns[t.defaultMatchWidth], o = e.match(r);
|
|
433
461
|
if (!o)
|
|
434
462
|
return null;
|
|
435
|
-
const s = o[0], c =
|
|
463
|
+
const s = o[0], c = a && t.parsePatterns[a] || t.parsePatterns[t.defaultParseWidth], g = Array.isArray(c) ? De(c, (f) => f.test(s)) : (
|
|
436
464
|
// [TODO] -- I challenge you to fix the type
|
|
437
|
-
|
|
465
|
+
pe(c, (f) => f.test(s))
|
|
438
466
|
);
|
|
439
467
|
let w;
|
|
440
468
|
w = t.valueCallback ? t.valueCallback(g) : g, w = n.valueCallback ? (
|
|
@@ -445,45 +473,45 @@ function A(t) {
|
|
|
445
473
|
return { value: w, rest: l };
|
|
446
474
|
};
|
|
447
475
|
}
|
|
448
|
-
function
|
|
476
|
+
function pe(t, e) {
|
|
449
477
|
for (const n in t)
|
|
450
478
|
if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
|
|
451
479
|
return n;
|
|
452
480
|
}
|
|
453
|
-
function
|
|
481
|
+
function De(t, e) {
|
|
454
482
|
for (let n = 0; n < t.length; n++)
|
|
455
483
|
if (e(t[n]))
|
|
456
484
|
return n;
|
|
457
485
|
}
|
|
458
|
-
function
|
|
486
|
+
function xe(t) {
|
|
459
487
|
return (e, n = {}) => {
|
|
460
|
-
const
|
|
461
|
-
if (!
|
|
462
|
-
const
|
|
488
|
+
const a = e.match(t.matchPattern);
|
|
489
|
+
if (!a) return null;
|
|
490
|
+
const r = a[0], o = e.match(t.parsePattern);
|
|
463
491
|
if (!o) return null;
|
|
464
492
|
let s = t.valueCallback ? t.valueCallback(o[0]) : o[0];
|
|
465
493
|
s = n.valueCallback ? n.valueCallback(s) : s;
|
|
466
|
-
const c = e.slice(
|
|
494
|
+
const c = e.slice(r.length);
|
|
467
495
|
return { value: s, rest: c };
|
|
468
496
|
};
|
|
469
497
|
}
|
|
470
|
-
const
|
|
498
|
+
const ve = /^(\d+)(th|st|nd|rd)?/i, Se = /\d+/i, ke = {
|
|
471
499
|
narrow: /^(b|a)/i,
|
|
472
500
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
473
501
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
474
|
-
}, ke = {
|
|
475
|
-
any: [/^b/i, /^(a|c)/i]
|
|
476
502
|
}, Oe = {
|
|
503
|
+
any: [/^b/i, /^(a|c)/i]
|
|
504
|
+
}, Pe = {
|
|
477
505
|
narrow: /^[1234]/i,
|
|
478
506
|
abbreviated: /^q[1234]/i,
|
|
479
507
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
480
|
-
}, Pe = {
|
|
481
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
482
508
|
}, Te = {
|
|
509
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
510
|
+
}, Ye = {
|
|
483
511
|
narrow: /^[jfmasond]/i,
|
|
484
512
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
485
513
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
486
|
-
},
|
|
514
|
+
}, Ne = {
|
|
487
515
|
narrow: [
|
|
488
516
|
/^j/i,
|
|
489
517
|
/^f/i,
|
|
@@ -512,18 +540,18 @@ const xe = /^(\d+)(th|st|nd|rd)?/i, ve = /\d+/i, Se = {
|
|
|
512
540
|
/^n/i,
|
|
513
541
|
/^d/i
|
|
514
542
|
]
|
|
515
|
-
},
|
|
543
|
+
}, We = {
|
|
516
544
|
narrow: /^[smtwf]/i,
|
|
517
545
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
518
546
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
519
547
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
520
|
-
},
|
|
548
|
+
}, Ee = {
|
|
521
549
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
522
550
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
523
|
-
},
|
|
551
|
+
}, Fe = {
|
|
524
552
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
525
553
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
526
|
-
},
|
|
554
|
+
}, Ce = {
|
|
527
555
|
any: {
|
|
528
556
|
am: /^a/i,
|
|
529
557
|
pm: /^p/i,
|
|
@@ -534,97 +562,97 @@ const xe = /^(\d+)(th|st|nd|rd)?/i, ve = /\d+/i, Se = {
|
|
|
534
562
|
evening: /evening/i,
|
|
535
563
|
night: /night/i
|
|
536
564
|
}
|
|
537
|
-
},
|
|
538
|
-
ordinalNumber:
|
|
539
|
-
matchPattern:
|
|
540
|
-
parsePattern:
|
|
565
|
+
}, Ae = {
|
|
566
|
+
ordinalNumber: xe({
|
|
567
|
+
matchPattern: ve,
|
|
568
|
+
parsePattern: Se,
|
|
541
569
|
valueCallback: (t) => parseInt(t, 10)
|
|
542
570
|
}),
|
|
543
|
-
era:
|
|
544
|
-
matchPatterns:
|
|
571
|
+
era: H({
|
|
572
|
+
matchPatterns: ke,
|
|
545
573
|
defaultMatchWidth: "wide",
|
|
546
|
-
parsePatterns:
|
|
574
|
+
parsePatterns: Oe,
|
|
547
575
|
defaultParseWidth: "any"
|
|
548
576
|
}),
|
|
549
|
-
quarter:
|
|
550
|
-
matchPatterns:
|
|
577
|
+
quarter: H({
|
|
578
|
+
matchPatterns: Pe,
|
|
551
579
|
defaultMatchWidth: "wide",
|
|
552
|
-
parsePatterns:
|
|
580
|
+
parsePatterns: Te,
|
|
553
581
|
defaultParseWidth: "any",
|
|
554
582
|
valueCallback: (t) => t + 1
|
|
555
583
|
}),
|
|
556
|
-
month:
|
|
557
|
-
matchPatterns:
|
|
584
|
+
month: H({
|
|
585
|
+
matchPatterns: Ye,
|
|
558
586
|
defaultMatchWidth: "wide",
|
|
559
|
-
parsePatterns:
|
|
587
|
+
parsePatterns: Ne,
|
|
560
588
|
defaultParseWidth: "any"
|
|
561
589
|
}),
|
|
562
|
-
day:
|
|
563
|
-
matchPatterns:
|
|
590
|
+
day: H({
|
|
591
|
+
matchPatterns: We,
|
|
564
592
|
defaultMatchWidth: "wide",
|
|
565
|
-
parsePatterns:
|
|
593
|
+
parsePatterns: Ee,
|
|
566
594
|
defaultParseWidth: "any"
|
|
567
595
|
}),
|
|
568
|
-
dayPeriod:
|
|
569
|
-
matchPatterns:
|
|
596
|
+
dayPeriod: H({
|
|
597
|
+
matchPatterns: Fe,
|
|
570
598
|
defaultMatchWidth: "any",
|
|
571
|
-
parsePatterns:
|
|
599
|
+
parsePatterns: Ce,
|
|
572
600
|
defaultParseWidth: "any"
|
|
573
601
|
})
|
|
574
|
-
},
|
|
602
|
+
}, Ie = {
|
|
575
603
|
code: "en-US",
|
|
576
|
-
formatDistance:
|
|
577
|
-
formatLong:
|
|
578
|
-
formatRelative:
|
|
579
|
-
localize:
|
|
580
|
-
match:
|
|
604
|
+
formatDistance: oe,
|
|
605
|
+
formatLong: ue,
|
|
606
|
+
formatRelative: le,
|
|
607
|
+
localize: Me,
|
|
608
|
+
match: Ae,
|
|
581
609
|
options: {
|
|
582
610
|
weekStartsOn: 0,
|
|
583
611
|
firstWeekContainsDate: 1
|
|
584
612
|
}
|
|
585
613
|
};
|
|
586
|
-
function
|
|
614
|
+
function _e(t, e) {
|
|
587
615
|
const n = y(t, e?.in);
|
|
588
|
-
return
|
|
616
|
+
return zt(n, ne(n)) + 1;
|
|
589
617
|
}
|
|
590
618
|
function qe(t, e) {
|
|
591
|
-
const n = y(t, e?.in),
|
|
592
|
-
return Math.round(
|
|
619
|
+
const n = y(t, e?.in), a = +G(n) - +Jt(n);
|
|
620
|
+
return Math.round(a / bt) + 1;
|
|
593
621
|
}
|
|
594
|
-
function
|
|
595
|
-
const n = y(t, e?.in),
|
|
596
|
-
s.setFullYear(
|
|
597
|
-
const c =
|
|
598
|
-
g.setFullYear(
|
|
599
|
-
const w =
|
|
600
|
-
return +n >= +c ?
|
|
601
|
-
}
|
|
602
|
-
function Ae(t, e) {
|
|
603
|
-
const n = X(), r = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, a = xt(t, e), o = b(e?.in || t, 0);
|
|
604
|
-
return o.setFullYear(a, 0, r), o.setHours(0, 0, 0, 0), Y(o, e);
|
|
622
|
+
function St(t, e) {
|
|
623
|
+
const n = y(t, e?.in), a = n.getFullYear(), r = j(), o = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, s = M(e?.in || t, 0);
|
|
624
|
+
s.setFullYear(a + 1, 0, o), s.setHours(0, 0, 0, 0);
|
|
625
|
+
const c = N(s, e), g = M(e?.in || t, 0);
|
|
626
|
+
g.setFullYear(a, 0, o), g.setHours(0, 0, 0, 0);
|
|
627
|
+
const w = N(g, e);
|
|
628
|
+
return +n >= +c ? a + 1 : +n >= +w ? a : a - 1;
|
|
605
629
|
}
|
|
606
630
|
function He(t, e) {
|
|
607
|
-
const n =
|
|
608
|
-
return
|
|
631
|
+
const n = j(), a = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, r = St(t, e), o = M(e?.in || t, 0);
|
|
632
|
+
return o.setFullYear(r, 0, a), o.setHours(0, 0, 0, 0), N(o, e);
|
|
609
633
|
}
|
|
610
|
-
function
|
|
611
|
-
const n = t
|
|
612
|
-
return
|
|
634
|
+
function Le(t, e) {
|
|
635
|
+
const n = y(t, e?.in), a = +N(n, e) - +He(n, e);
|
|
636
|
+
return Math.round(a / bt) + 1;
|
|
613
637
|
}
|
|
614
|
-
|
|
638
|
+
function m(t, e) {
|
|
639
|
+
const n = t < 0 ? "-" : "", a = Math.abs(t).toString().padStart(e, "0");
|
|
640
|
+
return n + a;
|
|
641
|
+
}
|
|
642
|
+
const O = {
|
|
615
643
|
// Year
|
|
616
644
|
y(t, e) {
|
|
617
|
-
const n = t.getFullYear(),
|
|
618
|
-
return
|
|
645
|
+
const n = t.getFullYear(), a = n > 0 ? n : 1 - n;
|
|
646
|
+
return m(e === "yy" ? a % 100 : a, e.length);
|
|
619
647
|
},
|
|
620
648
|
// Month
|
|
621
649
|
M(t, e) {
|
|
622
650
|
const n = t.getMonth();
|
|
623
|
-
return e === "M" ? String(n + 1) :
|
|
651
|
+
return e === "M" ? String(n + 1) : m(n + 1, 2);
|
|
624
652
|
},
|
|
625
653
|
// Day of the month
|
|
626
654
|
d(t, e) {
|
|
627
|
-
return
|
|
655
|
+
return m(t.getDate(), e.length);
|
|
628
656
|
},
|
|
629
657
|
// AM or PM
|
|
630
658
|
a(t, e) {
|
|
@@ -643,72 +671,72 @@ const k = {
|
|
|
643
671
|
},
|
|
644
672
|
// Hour [1-12]
|
|
645
673
|
h(t, e) {
|
|
646
|
-
return
|
|
674
|
+
return m(t.getHours() % 12 || 12, e.length);
|
|
647
675
|
},
|
|
648
676
|
// Hour [0-23]
|
|
649
677
|
H(t, e) {
|
|
650
|
-
return
|
|
678
|
+
return m(t.getHours(), e.length);
|
|
651
679
|
},
|
|
652
680
|
// Minute
|
|
653
681
|
m(t, e) {
|
|
654
|
-
return
|
|
682
|
+
return m(t.getMinutes(), e.length);
|
|
655
683
|
},
|
|
656
684
|
// Second
|
|
657
685
|
s(t, e) {
|
|
658
|
-
return
|
|
686
|
+
return m(t.getSeconds(), e.length);
|
|
659
687
|
},
|
|
660
688
|
// Fraction of second
|
|
661
689
|
S(t, e) {
|
|
662
|
-
const n = e.length,
|
|
663
|
-
|
|
690
|
+
const n = e.length, a = t.getMilliseconds(), r = Math.trunc(
|
|
691
|
+
a * Math.pow(10, n - 3)
|
|
664
692
|
);
|
|
665
|
-
return
|
|
693
|
+
return m(r, e.length);
|
|
666
694
|
}
|
|
667
|
-
},
|
|
695
|
+
}, W = {
|
|
668
696
|
midnight: "midnight",
|
|
669
697
|
noon: "noon",
|
|
670
698
|
morning: "morning",
|
|
671
699
|
afternoon: "afternoon",
|
|
672
700
|
evening: "evening",
|
|
673
701
|
night: "night"
|
|
674
|
-
},
|
|
702
|
+
}, ut = {
|
|
675
703
|
// Era
|
|
676
704
|
G: function(t, e, n) {
|
|
677
|
-
const
|
|
705
|
+
const a = t.getFullYear() > 0 ? 1 : 0;
|
|
678
706
|
switch (e) {
|
|
679
707
|
// AD, BC
|
|
680
708
|
case "G":
|
|
681
709
|
case "GG":
|
|
682
710
|
case "GGG":
|
|
683
|
-
return n.era(
|
|
711
|
+
return n.era(a, { width: "abbreviated" });
|
|
684
712
|
// A, B
|
|
685
713
|
case "GGGGG":
|
|
686
|
-
return n.era(
|
|
714
|
+
return n.era(a, { width: "narrow" });
|
|
687
715
|
default:
|
|
688
|
-
return n.era(
|
|
716
|
+
return n.era(a, { width: "wide" });
|
|
689
717
|
}
|
|
690
718
|
},
|
|
691
719
|
// Year
|
|
692
720
|
y: function(t, e, n) {
|
|
693
721
|
if (e === "yo") {
|
|
694
|
-
const
|
|
695
|
-
return n.ordinalNumber(
|
|
722
|
+
const a = t.getFullYear(), r = a > 0 ? a : 1 - a;
|
|
723
|
+
return n.ordinalNumber(r, { unit: "year" });
|
|
696
724
|
}
|
|
697
|
-
return
|
|
725
|
+
return O.y(t, e);
|
|
698
726
|
},
|
|
699
727
|
// Local week-numbering year
|
|
700
|
-
Y: function(t, e, n,
|
|
701
|
-
const
|
|
728
|
+
Y: function(t, e, n, a) {
|
|
729
|
+
const r = St(t, a), o = r > 0 ? r : 1 - r;
|
|
702
730
|
if (e === "YY") {
|
|
703
731
|
const s = o % 100;
|
|
704
|
-
return
|
|
732
|
+
return m(s, 2);
|
|
705
733
|
}
|
|
706
|
-
return e === "Yo" ? n.ordinalNumber(o, { unit: "year" }) :
|
|
734
|
+
return e === "Yo" ? n.ordinalNumber(o, { unit: "year" }) : m(o, e.length);
|
|
707
735
|
},
|
|
708
736
|
// ISO week-numbering year
|
|
709
737
|
R: function(t, e) {
|
|
710
|
-
const n =
|
|
711
|
-
return
|
|
738
|
+
const n = Dt(t);
|
|
739
|
+
return m(n, e.length);
|
|
712
740
|
},
|
|
713
741
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
714
742
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -721,35 +749,35 @@ const k = {
|
|
|
721
749
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
722
750
|
u: function(t, e) {
|
|
723
751
|
const n = t.getFullYear();
|
|
724
|
-
return
|
|
752
|
+
return m(n, e.length);
|
|
725
753
|
},
|
|
726
754
|
// Quarter
|
|
727
755
|
Q: function(t, e, n) {
|
|
728
|
-
const
|
|
756
|
+
const a = Math.ceil((t.getMonth() + 1) / 3);
|
|
729
757
|
switch (e) {
|
|
730
758
|
// 1, 2, 3, 4
|
|
731
759
|
case "Q":
|
|
732
|
-
return String(
|
|
760
|
+
return String(a);
|
|
733
761
|
// 01, 02, 03, 04
|
|
734
762
|
case "QQ":
|
|
735
|
-
return
|
|
763
|
+
return m(a, 2);
|
|
736
764
|
// 1st, 2nd, 3rd, 4th
|
|
737
765
|
case "Qo":
|
|
738
|
-
return n.ordinalNumber(
|
|
766
|
+
return n.ordinalNumber(a, { unit: "quarter" });
|
|
739
767
|
// Q1, Q2, Q3, Q4
|
|
740
768
|
case "QQQ":
|
|
741
|
-
return n.quarter(
|
|
769
|
+
return n.quarter(a, {
|
|
742
770
|
width: "abbreviated",
|
|
743
771
|
context: "formatting"
|
|
744
772
|
});
|
|
745
773
|
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
746
774
|
case "QQQQQ":
|
|
747
|
-
return n.quarter(
|
|
775
|
+
return n.quarter(a, {
|
|
748
776
|
width: "narrow",
|
|
749
777
|
context: "formatting"
|
|
750
778
|
});
|
|
751
779
|
default:
|
|
752
|
-
return n.quarter(
|
|
780
|
+
return n.quarter(a, {
|
|
753
781
|
width: "wide",
|
|
754
782
|
context: "formatting"
|
|
755
783
|
});
|
|
@@ -757,31 +785,31 @@ const k = {
|
|
|
757
785
|
},
|
|
758
786
|
// Stand-alone quarter
|
|
759
787
|
q: function(t, e, n) {
|
|
760
|
-
const
|
|
788
|
+
const a = Math.ceil((t.getMonth() + 1) / 3);
|
|
761
789
|
switch (e) {
|
|
762
790
|
// 1, 2, 3, 4
|
|
763
791
|
case "q":
|
|
764
|
-
return String(
|
|
792
|
+
return String(a);
|
|
765
793
|
// 01, 02, 03, 04
|
|
766
794
|
case "qq":
|
|
767
|
-
return
|
|
795
|
+
return m(a, 2);
|
|
768
796
|
// 1st, 2nd, 3rd, 4th
|
|
769
797
|
case "qo":
|
|
770
|
-
return n.ordinalNumber(
|
|
798
|
+
return n.ordinalNumber(a, { unit: "quarter" });
|
|
771
799
|
// Q1, Q2, Q3, Q4
|
|
772
800
|
case "qqq":
|
|
773
|
-
return n.quarter(
|
|
801
|
+
return n.quarter(a, {
|
|
774
802
|
width: "abbreviated",
|
|
775
803
|
context: "standalone"
|
|
776
804
|
});
|
|
777
805
|
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
778
806
|
case "qqqqq":
|
|
779
|
-
return n.quarter(
|
|
807
|
+
return n.quarter(a, {
|
|
780
808
|
width: "narrow",
|
|
781
809
|
context: "standalone"
|
|
782
810
|
});
|
|
783
811
|
default:
|
|
784
|
-
return n.quarter(
|
|
812
|
+
return n.quarter(a, {
|
|
785
813
|
width: "wide",
|
|
786
814
|
context: "standalone"
|
|
787
815
|
});
|
|
@@ -789,178 +817,178 @@ const k = {
|
|
|
789
817
|
},
|
|
790
818
|
// Month
|
|
791
819
|
M: function(t, e, n) {
|
|
792
|
-
const
|
|
820
|
+
const a = t.getMonth();
|
|
793
821
|
switch (e) {
|
|
794
822
|
case "M":
|
|
795
823
|
case "MM":
|
|
796
|
-
return
|
|
824
|
+
return O.M(t, e);
|
|
797
825
|
// 1st, 2nd, ..., 12th
|
|
798
826
|
case "Mo":
|
|
799
|
-
return n.ordinalNumber(
|
|
827
|
+
return n.ordinalNumber(a + 1, { unit: "month" });
|
|
800
828
|
// Jan, Feb, ..., Dec
|
|
801
829
|
case "MMM":
|
|
802
|
-
return n.month(
|
|
830
|
+
return n.month(a, {
|
|
803
831
|
width: "abbreviated",
|
|
804
832
|
context: "formatting"
|
|
805
833
|
});
|
|
806
834
|
// J, F, ..., D
|
|
807
835
|
case "MMMMM":
|
|
808
|
-
return n.month(
|
|
836
|
+
return n.month(a, {
|
|
809
837
|
width: "narrow",
|
|
810
838
|
context: "formatting"
|
|
811
839
|
});
|
|
812
840
|
default:
|
|
813
|
-
return n.month(
|
|
841
|
+
return n.month(a, { width: "wide", context: "formatting" });
|
|
814
842
|
}
|
|
815
843
|
},
|
|
816
844
|
// Stand-alone month
|
|
817
845
|
L: function(t, e, n) {
|
|
818
|
-
const
|
|
846
|
+
const a = t.getMonth();
|
|
819
847
|
switch (e) {
|
|
820
848
|
// 1, 2, ..., 12
|
|
821
849
|
case "L":
|
|
822
|
-
return String(
|
|
850
|
+
return String(a + 1);
|
|
823
851
|
// 01, 02, ..., 12
|
|
824
852
|
case "LL":
|
|
825
|
-
return
|
|
853
|
+
return m(a + 1, 2);
|
|
826
854
|
// 1st, 2nd, ..., 12th
|
|
827
855
|
case "Lo":
|
|
828
|
-
return n.ordinalNumber(
|
|
856
|
+
return n.ordinalNumber(a + 1, { unit: "month" });
|
|
829
857
|
// Jan, Feb, ..., Dec
|
|
830
858
|
case "LLL":
|
|
831
|
-
return n.month(
|
|
859
|
+
return n.month(a, {
|
|
832
860
|
width: "abbreviated",
|
|
833
861
|
context: "standalone"
|
|
834
862
|
});
|
|
835
863
|
// J, F, ..., D
|
|
836
864
|
case "LLLLL":
|
|
837
|
-
return n.month(
|
|
865
|
+
return n.month(a, {
|
|
838
866
|
width: "narrow",
|
|
839
867
|
context: "standalone"
|
|
840
868
|
});
|
|
841
869
|
default:
|
|
842
|
-
return n.month(
|
|
870
|
+
return n.month(a, { width: "wide", context: "standalone" });
|
|
843
871
|
}
|
|
844
872
|
},
|
|
845
873
|
// Local week of year
|
|
846
|
-
w: function(t, e, n,
|
|
847
|
-
const
|
|
848
|
-
return e === "wo" ? n.ordinalNumber(
|
|
874
|
+
w: function(t, e, n, a) {
|
|
875
|
+
const r = Le(t, a);
|
|
876
|
+
return e === "wo" ? n.ordinalNumber(r, { unit: "week" }) : m(r, e.length);
|
|
849
877
|
},
|
|
850
878
|
// ISO week of year
|
|
851
879
|
I: function(t, e, n) {
|
|
852
|
-
const
|
|
853
|
-
return e === "Io" ? n.ordinalNumber(
|
|
880
|
+
const a = qe(t);
|
|
881
|
+
return e === "Io" ? n.ordinalNumber(a, { unit: "week" }) : m(a, e.length);
|
|
854
882
|
},
|
|
855
883
|
// Day of the month
|
|
856
884
|
d: function(t, e, n) {
|
|
857
|
-
return e === "do" ? n.ordinalNumber(t.getDate(), { unit: "date" }) :
|
|
885
|
+
return e === "do" ? n.ordinalNumber(t.getDate(), { unit: "date" }) : O.d(t, e);
|
|
858
886
|
},
|
|
859
887
|
// Day of year
|
|
860
888
|
D: function(t, e, n) {
|
|
861
|
-
const
|
|
862
|
-
return e === "Do" ? n.ordinalNumber(
|
|
889
|
+
const a = _e(t);
|
|
890
|
+
return e === "Do" ? n.ordinalNumber(a, { unit: "dayOfYear" }) : m(a, e.length);
|
|
863
891
|
},
|
|
864
892
|
// Day of week
|
|
865
893
|
E: function(t, e, n) {
|
|
866
|
-
const
|
|
894
|
+
const a = t.getDay();
|
|
867
895
|
switch (e) {
|
|
868
896
|
// Tue
|
|
869
897
|
case "E":
|
|
870
898
|
case "EE":
|
|
871
899
|
case "EEE":
|
|
872
|
-
return n.day(
|
|
900
|
+
return n.day(a, {
|
|
873
901
|
width: "abbreviated",
|
|
874
902
|
context: "formatting"
|
|
875
903
|
});
|
|
876
904
|
// T
|
|
877
905
|
case "EEEEE":
|
|
878
|
-
return n.day(
|
|
906
|
+
return n.day(a, {
|
|
879
907
|
width: "narrow",
|
|
880
908
|
context: "formatting"
|
|
881
909
|
});
|
|
882
910
|
// Tu
|
|
883
911
|
case "EEEEEE":
|
|
884
|
-
return n.day(
|
|
912
|
+
return n.day(a, {
|
|
885
913
|
width: "short",
|
|
886
914
|
context: "formatting"
|
|
887
915
|
});
|
|
888
916
|
default:
|
|
889
|
-
return n.day(
|
|
917
|
+
return n.day(a, {
|
|
890
918
|
width: "wide",
|
|
891
919
|
context: "formatting"
|
|
892
920
|
});
|
|
893
921
|
}
|
|
894
922
|
},
|
|
895
923
|
// Local day of week
|
|
896
|
-
e: function(t, e, n,
|
|
897
|
-
const
|
|
924
|
+
e: function(t, e, n, a) {
|
|
925
|
+
const r = t.getDay(), o = (r - a.weekStartsOn + 8) % 7 || 7;
|
|
898
926
|
switch (e) {
|
|
899
927
|
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
900
928
|
case "e":
|
|
901
929
|
return String(o);
|
|
902
930
|
// Padded numerical value
|
|
903
931
|
case "ee":
|
|
904
|
-
return
|
|
932
|
+
return m(o, 2);
|
|
905
933
|
// 1st, 2nd, ..., 7th
|
|
906
934
|
case "eo":
|
|
907
935
|
return n.ordinalNumber(o, { unit: "day" });
|
|
908
936
|
case "eee":
|
|
909
|
-
return n.day(
|
|
937
|
+
return n.day(r, {
|
|
910
938
|
width: "abbreviated",
|
|
911
939
|
context: "formatting"
|
|
912
940
|
});
|
|
913
941
|
// T
|
|
914
942
|
case "eeeee":
|
|
915
|
-
return n.day(
|
|
943
|
+
return n.day(r, {
|
|
916
944
|
width: "narrow",
|
|
917
945
|
context: "formatting"
|
|
918
946
|
});
|
|
919
947
|
// Tu
|
|
920
948
|
case "eeeeee":
|
|
921
|
-
return n.day(
|
|
949
|
+
return n.day(r, {
|
|
922
950
|
width: "short",
|
|
923
951
|
context: "formatting"
|
|
924
952
|
});
|
|
925
953
|
default:
|
|
926
|
-
return n.day(
|
|
954
|
+
return n.day(r, {
|
|
927
955
|
width: "wide",
|
|
928
956
|
context: "formatting"
|
|
929
957
|
});
|
|
930
958
|
}
|
|
931
959
|
},
|
|
932
960
|
// Stand-alone local day of week
|
|
933
|
-
c: function(t, e, n,
|
|
934
|
-
const
|
|
961
|
+
c: function(t, e, n, a) {
|
|
962
|
+
const r = t.getDay(), o = (r - a.weekStartsOn + 8) % 7 || 7;
|
|
935
963
|
switch (e) {
|
|
936
964
|
// Numerical value (same as in `e`)
|
|
937
965
|
case "c":
|
|
938
966
|
return String(o);
|
|
939
967
|
// Padded numerical value
|
|
940
968
|
case "cc":
|
|
941
|
-
return
|
|
969
|
+
return m(o, e.length);
|
|
942
970
|
// 1st, 2nd, ..., 7th
|
|
943
971
|
case "co":
|
|
944
972
|
return n.ordinalNumber(o, { unit: "day" });
|
|
945
973
|
case "ccc":
|
|
946
|
-
return n.day(
|
|
974
|
+
return n.day(r, {
|
|
947
975
|
width: "abbreviated",
|
|
948
976
|
context: "standalone"
|
|
949
977
|
});
|
|
950
978
|
// T
|
|
951
979
|
case "ccccc":
|
|
952
|
-
return n.day(
|
|
980
|
+
return n.day(r, {
|
|
953
981
|
width: "narrow",
|
|
954
982
|
context: "standalone"
|
|
955
983
|
});
|
|
956
984
|
// Tu
|
|
957
985
|
case "cccccc":
|
|
958
|
-
return n.day(
|
|
986
|
+
return n.day(r, {
|
|
959
987
|
width: "short",
|
|
960
988
|
context: "standalone"
|
|
961
989
|
});
|
|
962
990
|
default:
|
|
963
|
-
return n.day(
|
|
991
|
+
return n.day(r, {
|
|
964
992
|
width: "wide",
|
|
965
993
|
context: "standalone"
|
|
966
994
|
});
|
|
@@ -968,37 +996,37 @@ const k = {
|
|
|
968
996
|
},
|
|
969
997
|
// ISO day of week
|
|
970
998
|
i: function(t, e, n) {
|
|
971
|
-
const
|
|
999
|
+
const a = t.getDay(), r = a === 0 ? 7 : a;
|
|
972
1000
|
switch (e) {
|
|
973
1001
|
// 2
|
|
974
1002
|
case "i":
|
|
975
|
-
return String(
|
|
1003
|
+
return String(r);
|
|
976
1004
|
// 02
|
|
977
1005
|
case "ii":
|
|
978
|
-
return
|
|
1006
|
+
return m(r, e.length);
|
|
979
1007
|
// 2nd
|
|
980
1008
|
case "io":
|
|
981
|
-
return n.ordinalNumber(
|
|
1009
|
+
return n.ordinalNumber(r, { unit: "day" });
|
|
982
1010
|
// Tue
|
|
983
1011
|
case "iii":
|
|
984
|
-
return n.day(
|
|
1012
|
+
return n.day(a, {
|
|
985
1013
|
width: "abbreviated",
|
|
986
1014
|
context: "formatting"
|
|
987
1015
|
});
|
|
988
1016
|
// T
|
|
989
1017
|
case "iiiii":
|
|
990
|
-
return n.day(
|
|
1018
|
+
return n.day(a, {
|
|
991
1019
|
width: "narrow",
|
|
992
1020
|
context: "formatting"
|
|
993
1021
|
});
|
|
994
1022
|
// Tu
|
|
995
1023
|
case "iiiiii":
|
|
996
|
-
return n.day(
|
|
1024
|
+
return n.day(a, {
|
|
997
1025
|
width: "short",
|
|
998
1026
|
context: "formatting"
|
|
999
1027
|
});
|
|
1000
1028
|
default:
|
|
1001
|
-
return n.day(
|
|
1029
|
+
return n.day(a, {
|
|
1002
1030
|
width: "wide",
|
|
1003
1031
|
context: "formatting"
|
|
1004
1032
|
});
|
|
@@ -1006,26 +1034,26 @@ const k = {
|
|
|
1006
1034
|
},
|
|
1007
1035
|
// AM or PM
|
|
1008
1036
|
a: function(t, e, n) {
|
|
1009
|
-
const
|
|
1037
|
+
const r = t.getHours() / 12 >= 1 ? "pm" : "am";
|
|
1010
1038
|
switch (e) {
|
|
1011
1039
|
case "a":
|
|
1012
1040
|
case "aa":
|
|
1013
|
-
return n.dayPeriod(
|
|
1041
|
+
return n.dayPeriod(r, {
|
|
1014
1042
|
width: "abbreviated",
|
|
1015
1043
|
context: "formatting"
|
|
1016
1044
|
});
|
|
1017
1045
|
case "aaa":
|
|
1018
|
-
return n.dayPeriod(
|
|
1046
|
+
return n.dayPeriod(r, {
|
|
1019
1047
|
width: "abbreviated",
|
|
1020
1048
|
context: "formatting"
|
|
1021
1049
|
}).toLowerCase();
|
|
1022
1050
|
case "aaaaa":
|
|
1023
|
-
return n.dayPeriod(
|
|
1051
|
+
return n.dayPeriod(r, {
|
|
1024
1052
|
width: "narrow",
|
|
1025
1053
|
context: "formatting"
|
|
1026
1054
|
});
|
|
1027
1055
|
default:
|
|
1028
|
-
return n.dayPeriod(
|
|
1056
|
+
return n.dayPeriod(r, {
|
|
1029
1057
|
width: "wide",
|
|
1030
1058
|
context: "formatting"
|
|
1031
1059
|
});
|
|
@@ -1033,27 +1061,27 @@ const k = {
|
|
|
1033
1061
|
},
|
|
1034
1062
|
// AM, PM, midnight, noon
|
|
1035
1063
|
b: function(t, e, n) {
|
|
1036
|
-
const
|
|
1037
|
-
let
|
|
1038
|
-
switch (
|
|
1064
|
+
const a = t.getHours();
|
|
1065
|
+
let r;
|
|
1066
|
+
switch (a === 12 ? r = W.noon : a === 0 ? r = W.midnight : r = a / 12 >= 1 ? "pm" : "am", e) {
|
|
1039
1067
|
case "b":
|
|
1040
1068
|
case "bb":
|
|
1041
|
-
return n.dayPeriod(
|
|
1069
|
+
return n.dayPeriod(r, {
|
|
1042
1070
|
width: "abbreviated",
|
|
1043
1071
|
context: "formatting"
|
|
1044
1072
|
});
|
|
1045
1073
|
case "bbb":
|
|
1046
|
-
return n.dayPeriod(
|
|
1074
|
+
return n.dayPeriod(r, {
|
|
1047
1075
|
width: "abbreviated",
|
|
1048
1076
|
context: "formatting"
|
|
1049
1077
|
}).toLowerCase();
|
|
1050
1078
|
case "bbbbb":
|
|
1051
|
-
return n.dayPeriod(
|
|
1079
|
+
return n.dayPeriod(r, {
|
|
1052
1080
|
width: "narrow",
|
|
1053
1081
|
context: "formatting"
|
|
1054
1082
|
});
|
|
1055
1083
|
default:
|
|
1056
|
-
return n.dayPeriod(
|
|
1084
|
+
return n.dayPeriod(r, {
|
|
1057
1085
|
width: "wide",
|
|
1058
1086
|
context: "formatting"
|
|
1059
1087
|
});
|
|
@@ -1061,23 +1089,23 @@ const k = {
|
|
|
1061
1089
|
},
|
|
1062
1090
|
// in the morning, in the afternoon, in the evening, at night
|
|
1063
1091
|
B: function(t, e, n) {
|
|
1064
|
-
const
|
|
1065
|
-
let
|
|
1066
|
-
switch (
|
|
1092
|
+
const a = t.getHours();
|
|
1093
|
+
let r;
|
|
1094
|
+
switch (a >= 17 ? r = W.evening : a >= 12 ? r = W.afternoon : a >= 4 ? r = W.morning : r = W.night, e) {
|
|
1067
1095
|
case "B":
|
|
1068
1096
|
case "BB":
|
|
1069
1097
|
case "BBB":
|
|
1070
|
-
return n.dayPeriod(
|
|
1098
|
+
return n.dayPeriod(r, {
|
|
1071
1099
|
width: "abbreviated",
|
|
1072
1100
|
context: "formatting"
|
|
1073
1101
|
});
|
|
1074
1102
|
case "BBBBB":
|
|
1075
|
-
return n.dayPeriod(
|
|
1103
|
+
return n.dayPeriod(r, {
|
|
1076
1104
|
width: "narrow",
|
|
1077
1105
|
context: "formatting"
|
|
1078
1106
|
});
|
|
1079
1107
|
default:
|
|
1080
|
-
return n.dayPeriod(
|
|
1108
|
+
return n.dayPeriod(r, {
|
|
1081
1109
|
width: "wide",
|
|
1082
1110
|
context: "formatting"
|
|
1083
1111
|
});
|
|
@@ -1086,123 +1114,123 @@ const k = {
|
|
|
1086
1114
|
// Hour [1-12]
|
|
1087
1115
|
h: function(t, e, n) {
|
|
1088
1116
|
if (e === "ho") {
|
|
1089
|
-
let
|
|
1090
|
-
return
|
|
1117
|
+
let a = t.getHours() % 12;
|
|
1118
|
+
return a === 0 && (a = 12), n.ordinalNumber(a, { unit: "hour" });
|
|
1091
1119
|
}
|
|
1092
|
-
return
|
|
1120
|
+
return O.h(t, e);
|
|
1093
1121
|
},
|
|
1094
1122
|
// Hour [0-23]
|
|
1095
1123
|
H: function(t, e, n) {
|
|
1096
|
-
return e === "Ho" ? n.ordinalNumber(t.getHours(), { unit: "hour" }) :
|
|
1124
|
+
return e === "Ho" ? n.ordinalNumber(t.getHours(), { unit: "hour" }) : O.H(t, e);
|
|
1097
1125
|
},
|
|
1098
1126
|
// Hour [0-11]
|
|
1099
1127
|
K: function(t, e, n) {
|
|
1100
|
-
const
|
|
1101
|
-
return e === "Ko" ? n.ordinalNumber(
|
|
1128
|
+
const a = t.getHours() % 12;
|
|
1129
|
+
return e === "Ko" ? n.ordinalNumber(a, { unit: "hour" }) : m(a, e.length);
|
|
1102
1130
|
},
|
|
1103
1131
|
// Hour [1-24]
|
|
1104
1132
|
k: function(t, e, n) {
|
|
1105
|
-
let
|
|
1106
|
-
return
|
|
1133
|
+
let a = t.getHours();
|
|
1134
|
+
return a === 0 && (a = 24), e === "ko" ? n.ordinalNumber(a, { unit: "hour" }) : m(a, e.length);
|
|
1107
1135
|
},
|
|
1108
1136
|
// Minute
|
|
1109
1137
|
m: function(t, e, n) {
|
|
1110
|
-
return e === "mo" ? n.ordinalNumber(t.getMinutes(), { unit: "minute" }) :
|
|
1138
|
+
return e === "mo" ? n.ordinalNumber(t.getMinutes(), { unit: "minute" }) : O.m(t, e);
|
|
1111
1139
|
},
|
|
1112
1140
|
// Second
|
|
1113
1141
|
s: function(t, e, n) {
|
|
1114
|
-
return e === "so" ? n.ordinalNumber(t.getSeconds(), { unit: "second" }) :
|
|
1142
|
+
return e === "so" ? n.ordinalNumber(t.getSeconds(), { unit: "second" }) : O.s(t, e);
|
|
1115
1143
|
},
|
|
1116
1144
|
// Fraction of second
|
|
1117
1145
|
S: function(t, e) {
|
|
1118
|
-
return
|
|
1146
|
+
return O.S(t, e);
|
|
1119
1147
|
},
|
|
1120
1148
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
1121
1149
|
X: function(t, e, n) {
|
|
1122
|
-
const
|
|
1123
|
-
if (
|
|
1150
|
+
const a = t.getTimezoneOffset();
|
|
1151
|
+
if (a === 0)
|
|
1124
1152
|
return "Z";
|
|
1125
1153
|
switch (e) {
|
|
1126
1154
|
// Hours and optional minutes
|
|
1127
1155
|
case "X":
|
|
1128
|
-
return
|
|
1156
|
+
return lt(a);
|
|
1129
1157
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
1130
1158
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1131
1159
|
// so this token always has the same output as `XX`
|
|
1132
1160
|
case "XXXX":
|
|
1133
1161
|
case "XX":
|
|
1134
|
-
return
|
|
1162
|
+
return T(a);
|
|
1135
1163
|
// Hours and minutes with `:` delimiter
|
|
1136
1164
|
default:
|
|
1137
|
-
return
|
|
1165
|
+
return T(a, ":");
|
|
1138
1166
|
}
|
|
1139
1167
|
},
|
|
1140
1168
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
1141
1169
|
x: function(t, e, n) {
|
|
1142
|
-
const
|
|
1170
|
+
const a = t.getTimezoneOffset();
|
|
1143
1171
|
switch (e) {
|
|
1144
1172
|
// Hours and optional minutes
|
|
1145
1173
|
case "x":
|
|
1146
|
-
return
|
|
1174
|
+
return lt(a);
|
|
1147
1175
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
1148
1176
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1149
1177
|
// so this token always has the same output as `xx`
|
|
1150
1178
|
case "xxxx":
|
|
1151
1179
|
case "xx":
|
|
1152
|
-
return
|
|
1180
|
+
return T(a);
|
|
1153
1181
|
// Hours and minutes with `:` delimiter
|
|
1154
1182
|
default:
|
|
1155
|
-
return
|
|
1183
|
+
return T(a, ":");
|
|
1156
1184
|
}
|
|
1157
1185
|
},
|
|
1158
1186
|
// Timezone (GMT)
|
|
1159
1187
|
O: function(t, e, n) {
|
|
1160
|
-
const
|
|
1188
|
+
const a = t.getTimezoneOffset();
|
|
1161
1189
|
switch (e) {
|
|
1162
1190
|
// Short
|
|
1163
1191
|
case "O":
|
|
1164
1192
|
case "OO":
|
|
1165
1193
|
case "OOO":
|
|
1166
|
-
return "GMT" +
|
|
1194
|
+
return "GMT" + dt(a, ":");
|
|
1167
1195
|
default:
|
|
1168
|
-
return "GMT" +
|
|
1196
|
+
return "GMT" + T(a, ":");
|
|
1169
1197
|
}
|
|
1170
1198
|
},
|
|
1171
1199
|
// Timezone (specific non-location)
|
|
1172
1200
|
z: function(t, e, n) {
|
|
1173
|
-
const
|
|
1201
|
+
const a = t.getTimezoneOffset();
|
|
1174
1202
|
switch (e) {
|
|
1175
1203
|
// Short
|
|
1176
1204
|
case "z":
|
|
1177
1205
|
case "zz":
|
|
1178
1206
|
case "zzz":
|
|
1179
|
-
return "GMT" +
|
|
1207
|
+
return "GMT" + dt(a, ":");
|
|
1180
1208
|
default:
|
|
1181
|
-
return "GMT" +
|
|
1209
|
+
return "GMT" + T(a, ":");
|
|
1182
1210
|
}
|
|
1183
1211
|
},
|
|
1184
1212
|
// Seconds timestamp
|
|
1185
1213
|
t: function(t, e, n) {
|
|
1186
|
-
const
|
|
1187
|
-
return
|
|
1214
|
+
const a = Math.trunc(+t / 1e3);
|
|
1215
|
+
return m(a, e.length);
|
|
1188
1216
|
},
|
|
1189
1217
|
// Milliseconds timestamp
|
|
1190
1218
|
T: function(t, e, n) {
|
|
1191
|
-
return
|
|
1219
|
+
return m(+t, e.length);
|
|
1192
1220
|
}
|
|
1193
1221
|
};
|
|
1194
|
-
function
|
|
1195
|
-
const n = t > 0 ? "-" : "+",
|
|
1196
|
-
return o === 0 ? n + String(
|
|
1222
|
+
function dt(t, e = "") {
|
|
1223
|
+
const n = t > 0 ? "-" : "+", a = Math.abs(t), r = Math.trunc(a / 60), o = a % 60;
|
|
1224
|
+
return o === 0 ? n + String(r) : n + String(r) + e + m(o, 2);
|
|
1197
1225
|
}
|
|
1198
|
-
function
|
|
1199
|
-
return t % 60 === 0 ? (t > 0 ? "-" : "+") +
|
|
1226
|
+
function lt(t, e) {
|
|
1227
|
+
return t % 60 === 0 ? (t > 0 ? "-" : "+") + m(Math.abs(t) / 60, 2) : T(t, e);
|
|
1200
1228
|
}
|
|
1201
|
-
function
|
|
1202
|
-
const n = t > 0 ? "-" : "+",
|
|
1203
|
-
return n +
|
|
1229
|
+
function T(t, e = "") {
|
|
1230
|
+
const n = t > 0 ? "-" : "+", a = Math.abs(t), r = m(Math.trunc(a / 60), 2), o = m(a % 60, 2);
|
|
1231
|
+
return n + r + e + o;
|
|
1204
1232
|
}
|
|
1205
|
-
const
|
|
1233
|
+
const mt = (t, e) => {
|
|
1206
1234
|
switch (t) {
|
|
1207
1235
|
case "P":
|
|
1208
1236
|
return e.date({ width: "short" });
|
|
@@ -1213,7 +1241,7 @@ const lt = (t, e) => {
|
|
|
1213
1241
|
default:
|
|
1214
1242
|
return e.date({ width: "full" });
|
|
1215
1243
|
}
|
|
1216
|
-
},
|
|
1244
|
+
}, kt = (t, e) => {
|
|
1217
1245
|
switch (t) {
|
|
1218
1246
|
case "p":
|
|
1219
1247
|
return e.time({ width: "short" });
|
|
@@ -1225,11 +1253,11 @@ const lt = (t, e) => {
|
|
|
1225
1253
|
return e.time({ width: "full" });
|
|
1226
1254
|
}
|
|
1227
1255
|
}, Re = (t, e) => {
|
|
1228
|
-
const n = t.match(/(P+)(p+)?/) || [],
|
|
1229
|
-
if (!
|
|
1230
|
-
return
|
|
1256
|
+
const n = t.match(/(P+)(p+)?/) || [], a = n[1], r = n[2];
|
|
1257
|
+
if (!r)
|
|
1258
|
+
return mt(t, e);
|
|
1231
1259
|
let o;
|
|
1232
|
-
switch (
|
|
1260
|
+
switch (a) {
|
|
1233
1261
|
case "P":
|
|
1234
1262
|
o = e.dateTime({ width: "short" });
|
|
1235
1263
|
break;
|
|
@@ -1243,135 +1271,135 @@ const lt = (t, e) => {
|
|
|
1243
1271
|
o = e.dateTime({ width: "full" });
|
|
1244
1272
|
break;
|
|
1245
1273
|
}
|
|
1246
|
-
return o.replace("{{date}}",
|
|
1247
|
-
},
|
|
1248
|
-
p:
|
|
1274
|
+
return o.replace("{{date}}", mt(a, e)).replace("{{time}}", kt(r, e));
|
|
1275
|
+
}, Xe = {
|
|
1276
|
+
p: kt,
|
|
1249
1277
|
P: Re
|
|
1250
|
-
},
|
|
1251
|
-
function
|
|
1252
|
-
return Xe.test(t);
|
|
1253
|
-
}
|
|
1254
|
-
function Ve(t) {
|
|
1278
|
+
}, je = /^D+$/, Ve = /^Y+$/, Qe = ["D", "DD", "YY", "YYYY"];
|
|
1279
|
+
function $e(t) {
|
|
1255
1280
|
return je.test(t);
|
|
1256
1281
|
}
|
|
1257
|
-
function
|
|
1258
|
-
|
|
1259
|
-
if (console.warn(r), Qe.includes(t)) throw new RangeError(r);
|
|
1282
|
+
function Be(t) {
|
|
1283
|
+
return Ve.test(t);
|
|
1260
1284
|
}
|
|
1261
1285
|
function Ge(t, e, n) {
|
|
1262
|
-
const
|
|
1263
|
-
|
|
1286
|
+
const a = ze(t, e, n);
|
|
1287
|
+
if (console.warn(a), Qe.includes(t)) throw new RangeError(a);
|
|
1288
|
+
}
|
|
1289
|
+
function ze(t, e, n) {
|
|
1290
|
+
const a = t[0] === "Y" ? "years" : "days of the month";
|
|
1291
|
+
return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${a} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1264
1292
|
}
|
|
1265
|
-
const
|
|
1266
|
-
function
|
|
1267
|
-
const
|
|
1268
|
-
if (!
|
|
1293
|
+
const Je = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ke = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ze = /^'([^]*?)'?$/, Ue = /''/g, tn = /[a-zA-Z]/;
|
|
1294
|
+
function en(t, e, n) {
|
|
1295
|
+
const a = j(), r = a.locale ?? Ie, o = a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, s = a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, c = y(t, n?.in);
|
|
1296
|
+
if (!te(c))
|
|
1269
1297
|
throw new RangeError("Invalid time value");
|
|
1270
|
-
let g = e.match(
|
|
1271
|
-
const
|
|
1272
|
-
if (
|
|
1273
|
-
const
|
|
1274
|
-
return
|
|
1298
|
+
let g = e.match(Ke).map((l) => {
|
|
1299
|
+
const f = l[0];
|
|
1300
|
+
if (f === "p" || f === "P") {
|
|
1301
|
+
const S = Xe[f];
|
|
1302
|
+
return S(l, r.formatLong);
|
|
1275
1303
|
}
|
|
1276
1304
|
return l;
|
|
1277
|
-
}).join("").match(
|
|
1305
|
+
}).join("").match(Je).map((l) => {
|
|
1278
1306
|
if (l === "''")
|
|
1279
1307
|
return { isToken: !1, value: "'" };
|
|
1280
|
-
const
|
|
1281
|
-
if (
|
|
1282
|
-
return { isToken: !1, value:
|
|
1283
|
-
if (
|
|
1308
|
+
const f = l[0];
|
|
1309
|
+
if (f === "'")
|
|
1310
|
+
return { isToken: !1, value: nn(l) };
|
|
1311
|
+
if (ut[f])
|
|
1284
1312
|
return { isToken: !0, value: l };
|
|
1285
|
-
if (
|
|
1313
|
+
if (f.match(tn))
|
|
1286
1314
|
throw new RangeError(
|
|
1287
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
1315
|
+
"Format string contains an unescaped latin alphabet character `" + f + "`"
|
|
1288
1316
|
);
|
|
1289
1317
|
return { isToken: !1, value: l };
|
|
1290
1318
|
});
|
|
1291
|
-
|
|
1319
|
+
r.localize.preprocessor && (g = r.localize.preprocessor(c, g));
|
|
1292
1320
|
const w = {
|
|
1293
1321
|
firstWeekContainsDate: o,
|
|
1294
1322
|
weekStartsOn: s,
|
|
1295
|
-
locale:
|
|
1323
|
+
locale: r
|
|
1296
1324
|
};
|
|
1297
1325
|
return g.map((l) => {
|
|
1298
1326
|
if (!l.isToken) return l.value;
|
|
1299
|
-
const
|
|
1300
|
-
(
|
|
1301
|
-
const
|
|
1302
|
-
return
|
|
1327
|
+
const f = l.value;
|
|
1328
|
+
(Be(f) || $e(f)) && Ge(f, e, String(t));
|
|
1329
|
+
const S = ut[f[0]];
|
|
1330
|
+
return S(c, f, r.localize, w);
|
|
1303
1331
|
}).join("");
|
|
1304
1332
|
}
|
|
1305
|
-
function
|
|
1306
|
-
const e = t.match(
|
|
1333
|
+
function nn(t) {
|
|
1334
|
+
const e = t.match(Ze);
|
|
1307
1335
|
return e ? e[1].replace(Ue, "'") : t;
|
|
1308
1336
|
}
|
|
1309
|
-
function
|
|
1310
|
-
const n = y(t, e?.in),
|
|
1311
|
-
return o.setFullYear(
|
|
1337
|
+
function an(t, e) {
|
|
1338
|
+
const n = y(t, e?.in), a = n.getFullYear(), r = n.getMonth(), o = M(n, 0);
|
|
1339
|
+
return o.setFullYear(a, r + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
|
|
1312
1340
|
}
|
|
1313
1341
|
function rn(t, e) {
|
|
1314
1342
|
return +y(t) > +y(e);
|
|
1315
1343
|
}
|
|
1316
|
-
function
|
|
1344
|
+
function on(t, e) {
|
|
1317
1345
|
return +y(t) < +y(e);
|
|
1318
1346
|
}
|
|
1319
|
-
function
|
|
1320
|
-
const [
|
|
1347
|
+
function sn(t, e, n) {
|
|
1348
|
+
const [a, r] = z(
|
|
1321
1349
|
n?.in,
|
|
1322
1350
|
t,
|
|
1323
1351
|
e
|
|
1324
1352
|
);
|
|
1325
|
-
return
|
|
1353
|
+
return a.getFullYear() === r.getFullYear() && a.getMonth() === r.getMonth();
|
|
1326
1354
|
}
|
|
1327
|
-
function
|
|
1328
|
-
return
|
|
1329
|
-
|
|
1330
|
-
|
|
1355
|
+
function cn(t, e) {
|
|
1356
|
+
return Zt(
|
|
1357
|
+
M(t, t),
|
|
1358
|
+
Kt(t)
|
|
1331
1359
|
);
|
|
1332
1360
|
}
|
|
1333
|
-
function cn(t, e, n) {
|
|
1334
|
-
return wt(t, -e, n);
|
|
1335
|
-
}
|
|
1336
1361
|
function un(t, e, n) {
|
|
1337
|
-
|
|
1338
|
-
s.setFullYear(a, e, 15), s.setHours(0, 0, 0, 0);
|
|
1339
|
-
const c = nn(s);
|
|
1340
|
-
return r.setMonth(e, Math.min(o, c)), r;
|
|
1362
|
+
return Mt(t, -e, n);
|
|
1341
1363
|
}
|
|
1342
1364
|
function dn(t, e, n) {
|
|
1343
|
-
|
|
1344
|
-
|
|
1365
|
+
const a = y(t, n?.in), r = a.getFullYear(), o = a.getDate(), s = M(t, 0);
|
|
1366
|
+
s.setFullYear(r, e, 15), s.setHours(0, 0, 0, 0);
|
|
1367
|
+
const c = an(s);
|
|
1368
|
+
return a.setMonth(e, Math.min(o, c)), a;
|
|
1345
1369
|
}
|
|
1346
1370
|
function ln(t, e, n) {
|
|
1347
|
-
|
|
1348
|
-
return isNaN(+
|
|
1371
|
+
let a = y(t, n?.in);
|
|
1372
|
+
return isNaN(+a) ? M(t, NaN) : (e.year != null && a.setFullYear(e.year), e.month != null && (a = dn(a, e.month)), e.date != null && a.setDate(e.date), e.hours != null && a.setHours(e.hours), e.minutes != null && a.setMinutes(e.minutes), e.seconds != null && a.setSeconds(e.seconds), e.milliseconds != null && a.setMilliseconds(e.milliseconds), a);
|
|
1373
|
+
}
|
|
1374
|
+
function mn(t, e, n) {
|
|
1375
|
+
const a = y(t, n?.in);
|
|
1376
|
+
return isNaN(+a) ? M(t, NaN) : (a.setFullYear(e), a);
|
|
1349
1377
|
}
|
|
1350
1378
|
function fn(t, e, n) {
|
|
1351
|
-
return
|
|
1379
|
+
return pt(t, -e, n);
|
|
1352
1380
|
}
|
|
1353
|
-
function
|
|
1381
|
+
function L(t, e, n) {
|
|
1354
1382
|
const {
|
|
1355
|
-
years:
|
|
1356
|
-
months:
|
|
1383
|
+
years: a = 0,
|
|
1384
|
+
months: r = 0,
|
|
1357
1385
|
weeks: o = 0,
|
|
1358
1386
|
days: s = 0,
|
|
1359
1387
|
hours: c = 0,
|
|
1360
1388
|
minutes: g = 0,
|
|
1361
1389
|
seconds: w = 0
|
|
1362
|
-
} = e, l = fn(t,
|
|
1363
|
-
return
|
|
1390
|
+
} = e, l = fn(t, r + a * 12, n), f = un(l, s + o * 7, n), S = g + c * 60, Q = (w + S * 60) * 1e3;
|
|
1391
|
+
return M(t, +f - Q);
|
|
1364
1392
|
}
|
|
1365
1393
|
const hn = (t, e = 0) => {
|
|
1366
1394
|
let n;
|
|
1367
|
-
return function(...
|
|
1368
|
-
clearTimeout(n), n = setTimeout(() => t(...
|
|
1395
|
+
return function(...r) {
|
|
1396
|
+
clearTimeout(n), n = setTimeout(() => t(...r), e);
|
|
1369
1397
|
};
|
|
1370
1398
|
};
|
|
1371
|
-
function
|
|
1399
|
+
function gn(t, e) {
|
|
1372
1400
|
return R(hn(t, e)).current;
|
|
1373
1401
|
}
|
|
1374
|
-
function
|
|
1402
|
+
function yn(t, e) {
|
|
1375
1403
|
const n = R(null);
|
|
1376
1404
|
return { onTouchStart: (o) => n.current = o.touches[0].clientX, onTouchEnd: (o) => {
|
|
1377
1405
|
if (n.current === null) return;
|
|
@@ -1379,49 +1407,49 @@ function gn(t, e) {
|
|
|
1379
1407
|
Math.abs(c) > e && t(o, c > 0 ? "right" : "left"), n.current = null;
|
|
1380
1408
|
} };
|
|
1381
1409
|
}
|
|
1382
|
-
const
|
|
1410
|
+
const wn = /^(?<hour>\d\d):(?<min>\d\d)$/, bn = { type: "spring", bounce: 0.3, duration: 0.6 }, ft = (t) => (e = 1) => ({ x: `${100 * t * e}%`, opacity: 0.25 }), Ot = {
|
|
1383
1411
|
enter: ft(1),
|
|
1384
1412
|
exit: ft(-1),
|
|
1385
1413
|
middle: { x: "0%", opacity: 1 }
|
|
1386
|
-
}, ht = { exit: { visibility: "hidden" } },
|
|
1387
|
-
const e =
|
|
1388
|
-
return
|
|
1389
|
-
},
|
|
1390
|
-
const o =
|
|
1391
|
-
return /* @__PURE__ */
|
|
1414
|
+
}, ht = { exit: { visibility: "hidden" } }, Mn = (t) => {
|
|
1415
|
+
const e = N(vt(t));
|
|
1416
|
+
return xt({ start: e, end: F(e, { days: 41 }) });
|
|
1417
|
+
}, Pt = (t, e) => t.toLocaleDateString(e, { month: "long" }), pn = (t, e, n) => Array.from({ length: 12 }).map((a, r) => {
|
|
1418
|
+
const o = vt(new Date(1970, r, 1).setMonth(r)), s = Pt(o, n);
|
|
1419
|
+
return /* @__PURE__ */ h("option", { value: s, "data-index": r, children: s }, `${t}-${s}`);
|
|
1392
1420
|
}), rt = {
|
|
1393
|
-
ArrowLeft: (t, e) => e === "days" ?
|
|
1394
|
-
ArrowRight: (t, e) => e === "days" ?
|
|
1395
|
-
ArrowUp: (t, e) => e === "days" ?
|
|
1396
|
-
ArrowDown: (t, e) => e === "days" ?
|
|
1397
|
-
},
|
|
1398
|
-
const
|
|
1421
|
+
ArrowLeft: (t, e) => e === "days" ? L(t, { days: 1 }) : L(t, { months: 1 }),
|
|
1422
|
+
ArrowRight: (t, e) => e === "days" ? F(t, { days: 1 }) : F(t, { months: 1 }),
|
|
1423
|
+
ArrowUp: (t, e) => e === "days" ? L(t, { weeks: 1 }) : L(t, { years: 1 }),
|
|
1424
|
+
ArrowDown: (t, e) => e === "days" ? F(t, { weeks: 1 }) : F(t, { years: 1 })
|
|
1425
|
+
}, gt = (t, e, n, a = 0) => {
|
|
1426
|
+
const r = n.toISOString(), o = () => {
|
|
1399
1427
|
if (t?.dataset.focustrap) {
|
|
1400
1428
|
const s = e.current?.querySelector(`button[data-focustrap="${t?.dataset.focustrap}"]`);
|
|
1401
|
-
return setTimeout(() => s?.focus({ preventScroll: !0 }),
|
|
1429
|
+
return setTimeout(() => s?.focus({ preventScroll: !0 }), a);
|
|
1402
1430
|
}
|
|
1403
1431
|
if (e.current) {
|
|
1404
|
-
const s = e.current.querySelector(`button[data-date="${
|
|
1432
|
+
const s = e.current.querySelector(`button[data-date="${r}"]`);
|
|
1405
1433
|
if (s) return s.focus({ preventScroll: !0 });
|
|
1406
1434
|
}
|
|
1407
1435
|
};
|
|
1408
|
-
|
|
1409
|
-
},
|
|
1410
|
-
const e =
|
|
1411
|
-
return /* @__PURE__ */
|
|
1412
|
-
const
|
|
1413
|
-
return /* @__PURE__ */
|
|
1414
|
-
const s = o.toISOString(), c = t.rangeMode ? s === t.range?.to?.toISOString() || s === t.range?.from?.toISOString() : s === (t.date ?
|
|
1415
|
-
return /* @__PURE__ */
|
|
1436
|
+
a === 0 && o(), setTimeout(o, a);
|
|
1437
|
+
}, P = (t) => t.getFullYear().toString().padStart(4, "0"), Dn = (t, e, n) => t === void 0 || n === void 0 ? !1 : rn(e, t) && on(e, n), xn = (t) => {
|
|
1438
|
+
const e = yt();
|
|
1439
|
+
return /* @__PURE__ */ h(E.tbody, { layout: !0, variants: Ot, custom: t.direction, onKeyDown: t.onKeyDown, className: X(t.styles?.week), children: t.zip.map((n, a) => {
|
|
1440
|
+
const r = C.function(t.styles?.week) ? t.styles?.week(n) : t.styles?.week;
|
|
1441
|
+
return /* @__PURE__ */ h("tr", { className: r, children: n.map((o) => {
|
|
1442
|
+
const s = o.toISOString(), c = t.rangeMode ? s === t.range?.to?.toISOString() || s === t.range?.from?.toISOString() : s === (t.date ? A(t.date).toISOString() : void 0), g = cn(o) && t.markToday, w = t.disabledDate?.(o) || !1, l = sn(o, t.stateDate), f = !l || w, S = t.rangeMode ? Dn(t.range?.from, o, t.range?.to) : !1;
|
|
1443
|
+
return /* @__PURE__ */ Y(
|
|
1416
1444
|
"td",
|
|
1417
1445
|
{
|
|
1418
1446
|
align: "center",
|
|
1419
|
-
className:
|
|
1447
|
+
className: X(
|
|
1420
1448
|
"relative p-1",
|
|
1421
|
-
|
|
1449
|
+
C.function(t.styles?.dayFrame) ? t.styles?.dayFrame(o) : t.styles?.dayFrame
|
|
1422
1450
|
),
|
|
1423
1451
|
children: [
|
|
1424
|
-
/* @__PURE__ */
|
|
1452
|
+
/* @__PURE__ */ Y(
|
|
1425
1453
|
"button",
|
|
1426
1454
|
{
|
|
1427
1455
|
type: "button",
|
|
@@ -1431,102 +1459,102 @@ const yn = /^(?<hour>\d\d):(?<min>\d\d)$/, wn = { type: "spring", bounce: 0.3, d
|
|
|
1431
1459
|
"data-range": t.rangeMode,
|
|
1432
1460
|
onClick: t.dispatch.onSelectDate,
|
|
1433
1461
|
"data-view": t.stateDate.getMonth().toString(),
|
|
1434
|
-
className:
|
|
1435
|
-
`relative flex size-9 items-center justify-center rounded-full proportional-nums disabled:cursor-not-allowed ${g ? "text-emphasis" : ""} ${
|
|
1436
|
-
|
|
1437
|
-
|
|
1462
|
+
className: X(
|
|
1463
|
+
`relative flex size-9 items-center justify-center rounded-full proportional-nums disabled:cursor-not-allowed ${g ? "text-emphasis" : ""} ${f ? "text-disabled" : ""} ${c ? "bg-primary text-primary-foreground" : ""}`,
|
|
1464
|
+
S && t.markRange ? "size-9 border border-dashed border-card-border" : "",
|
|
1465
|
+
C.function(t.styles?.day) ? t.styles?.day(o) : t.styles?.day
|
|
1438
1466
|
),
|
|
1439
1467
|
children: [
|
|
1440
|
-
/* @__PURE__ */
|
|
1468
|
+
/* @__PURE__ */ h("div", {}),
|
|
1441
1469
|
o.getDate(),
|
|
1442
|
-
c && t.stateRange.from?.toISOString() === s ? /* @__PURE__ */
|
|
1443
|
-
c && t.stateRange.to?.toISOString() === s ? /* @__PURE__ */
|
|
1470
|
+
c && t.stateRange.from?.toISOString() === s ? /* @__PURE__ */ h("span", { className: "absolute -top-2 left-0 h-full w-full", children: /* @__PURE__ */ h("span", { className: "text-xs text-foreground", children: t.labelRange?.from ?? e.calendarFromDate }) }) : null,
|
|
1471
|
+
c && t.stateRange.to?.toISOString() === s ? /* @__PURE__ */ h("span", { className: "absolute -top-2 left-0 h-full w-full", children: /* @__PURE__ */ h("span", { className: "text-xs text-foreground", children: t.labelRange?.to ?? e.calendarToDate }) }) : null
|
|
1444
1472
|
]
|
|
1445
1473
|
}
|
|
1446
1474
|
),
|
|
1447
|
-
t.RenderOnDay ? /* @__PURE__ */
|
|
1475
|
+
t.RenderOnDay ? /* @__PURE__ */ h(t.RenderOnDay, { date: o }) : null
|
|
1448
1476
|
]
|
|
1449
1477
|
},
|
|
1450
1478
|
s
|
|
1451
1479
|
);
|
|
1452
|
-
}) }, `week-${n.length}-${
|
|
1480
|
+
}) }, `week-${n.length}-${a}`);
|
|
1453
1481
|
}) });
|
|
1454
|
-
},
|
|
1482
|
+
}, vn = () => A(/* @__PURE__ */ new Date()), Hn = ({
|
|
1455
1483
|
RenderOnDay: t,
|
|
1456
1484
|
changeOnlyOnClick: e = !1,
|
|
1457
1485
|
labelRange: n,
|
|
1458
|
-
disabledDate:
|
|
1459
|
-
locale:
|
|
1486
|
+
disabledDate: a,
|
|
1487
|
+
locale: r,
|
|
1460
1488
|
markToday: o = !0,
|
|
1461
1489
|
onChangeMonth: s,
|
|
1462
1490
|
onChangeYear: c,
|
|
1463
1491
|
rangeMode: g = !1,
|
|
1464
1492
|
onChange: w,
|
|
1465
1493
|
styles: l,
|
|
1466
|
-
markRange:
|
|
1467
|
-
type:
|
|
1468
|
-
datetimeTitle:
|
|
1494
|
+
markRange: f = !0,
|
|
1495
|
+
type: S = "date",
|
|
1496
|
+
datetimeTitle: V,
|
|
1469
1497
|
...Q
|
|
1470
1498
|
}) => {
|
|
1471
|
-
const
|
|
1499
|
+
const J = R(Rt()), I = yt(), K = $t(r), Z = R(null), { date: $, range: U } = Q, _ = $ || /* @__PURE__ */ new Date(), B = R(null), [x, v] = Ht(
|
|
1472
1500
|
{
|
|
1473
|
-
date:
|
|
1501
|
+
date: _,
|
|
1474
1502
|
isAnimating: !1,
|
|
1475
|
-
year:
|
|
1503
|
+
year: P(_),
|
|
1476
1504
|
direction: void 0,
|
|
1477
1505
|
range: { from: U?.from, to: U?.to },
|
|
1478
|
-
months:
|
|
1506
|
+
months: pn(J.current, _, K),
|
|
1479
1507
|
selectMode: g ? "from" : void 0,
|
|
1480
|
-
week:
|
|
1508
|
+
week: xt({ start: N(_), end: ae(_) })
|
|
1481
1509
|
},
|
|
1482
1510
|
(u) => ({
|
|
1483
1511
|
onChangeYear: (d) => ({ year: d }),
|
|
1484
|
-
onExitComplete: () => (
|
|
1512
|
+
onExitComplete: () => (gt(B.current || null, Z, u.state().date, 200), B.current = null, { isAnimating: !1 }),
|
|
1485
1513
|
date: (d) => {
|
|
1486
1514
|
const i = d(u.state().date);
|
|
1487
|
-
return { date: i, year:
|
|
1515
|
+
return { date: i, year: P(i) };
|
|
1488
1516
|
},
|
|
1489
1517
|
nextMonth: (d) => {
|
|
1490
|
-
d && (
|
|
1518
|
+
d && (B.current = d.currentTarget);
|
|
1491
1519
|
const i = u.state();
|
|
1492
1520
|
if (i.isAnimating) return i;
|
|
1493
|
-
const
|
|
1494
|
-
return { date:
|
|
1521
|
+
const p = F(i.date, { months: 1 });
|
|
1522
|
+
return { date: p, isAnimating: !0, direction: 1, year: P(p) };
|
|
1495
1523
|
},
|
|
1496
1524
|
previousMonth: (d) => {
|
|
1497
|
-
d && (
|
|
1525
|
+
d && (B.current = d.currentTarget);
|
|
1498
1526
|
const i = u.state();
|
|
1499
1527
|
if (i.isAnimating) return i;
|
|
1500
|
-
const
|
|
1501
|
-
return { date:
|
|
1528
|
+
const p = L(i.date, { months: 1 });
|
|
1529
|
+
return { date: p, isAnimating: !0, direction: -1, year: P(p) };
|
|
1502
1530
|
},
|
|
1503
1531
|
onSelectDate: (d) => {
|
|
1504
|
-
const i = u.state(),
|
|
1532
|
+
const i = u.state(), p = d.currentTarget.dataset.range === "true", k = d.currentTarget.dataset.date || "", D = new Date(k);
|
|
1505
1533
|
return {
|
|
1506
|
-
date:
|
|
1507
|
-
year:
|
|
1534
|
+
date: D,
|
|
1535
|
+
year: P(D),
|
|
1508
1536
|
selectMode: i.selectMode === void 0 ? void 0 : i.selectMode === "from" ? "to" : "from",
|
|
1509
|
-
range:
|
|
1510
|
-
from: i.selectMode === "from" ?
|
|
1511
|
-
to: i.selectMode === "to" ?
|
|
1537
|
+
range: p ? {
|
|
1538
|
+
from: i.selectMode === "from" ? D : i.range.from,
|
|
1539
|
+
to: i.selectMode === "to" ? D : i.range.to
|
|
1512
1540
|
} : i.range
|
|
1513
1541
|
};
|
|
1514
1542
|
},
|
|
1515
1543
|
onChangeMonth: (d) => {
|
|
1516
|
-
const i = d.target.value,
|
|
1517
|
-
if (
|
|
1518
|
-
const
|
|
1519
|
-
return
|
|
1544
|
+
const i = d.target.value, k = Array.from(d.target.options).find((et) => et.value === i), D = u.state();
|
|
1545
|
+
if (k) {
|
|
1546
|
+
const et = k.dataset.index || "", nt = new Date(u.state().date);
|
|
1547
|
+
return nt.setMonth(+et), { ...D, date: nt, year: P(nt) };
|
|
1520
1548
|
}
|
|
1521
|
-
return
|
|
1549
|
+
return D;
|
|
1522
1550
|
},
|
|
1523
1551
|
onKeyDown: (d) => {
|
|
1524
|
-
const i = d.key,
|
|
1552
|
+
const i = d.key, p = u.state();
|
|
1525
1553
|
if (i in rt) {
|
|
1526
1554
|
(i === "ArrowUp" || i === "ArrowDown") && d.preventDefault();
|
|
1527
|
-
const
|
|
1528
|
-
if (
|
|
1529
|
-
return
|
|
1555
|
+
const k = u.state().date, D = C.keyof(rt, i) ? rt[i](k, d.shiftKey ? "month" : "days") : null;
|
|
1556
|
+
if (D !== null)
|
|
1557
|
+
return gt(d.target, Z, D), { ...p, date: D, year: P(D) };
|
|
1530
1558
|
}
|
|
1531
1559
|
return u.state();
|
|
1532
1560
|
}
|
|
@@ -1537,183 +1565,183 @@ const yn = /^(?<hour>\d\d):(?<min>\d\d)$/, wn = { type: "spring", bounce: 0.3, d
|
|
|
1537
1565
|
(u, d, i) => ((i.method === "onChangeMonth" || i.method === "previousMonth" || i.method === "nextMonth") && i.props.onChangeMonth?.(u.date), u),
|
|
1538
1566
|
(u, d, i) => (i.method === "onChangeYear" && i.props.onChangeYear?.(u.date), u),
|
|
1539
1567
|
(u, d, i) => {
|
|
1540
|
-
const
|
|
1541
|
-
return g &&
|
|
1568
|
+
const p = i.method === "onSelectDate" || i.method === "setToday" || i.method === "onKeyDown";
|
|
1569
|
+
return g && p && e ? (w?.(u.range), u) : (p && e && w?.(u.date), u);
|
|
1542
1570
|
}
|
|
1543
1571
|
]
|
|
1544
1572
|
}
|
|
1545
|
-
),
|
|
1573
|
+
), ot = Mn(x.date), Tt = Xt(ot, 7), Yt = x.date.toISOString(), tt = Pt(x.date, K);
|
|
1546
1574
|
Ct(() => {
|
|
1547
|
-
e || w?.(
|
|
1548
|
-
}, [
|
|
1549
|
-
const
|
|
1575
|
+
e || w?.(x.date);
|
|
1576
|
+
}, [Yt, e]);
|
|
1577
|
+
const Nt = gn((u) => v.date((d) => mn(new Date(d), +u)), 1200), Wt = (u) => {
|
|
1550
1578
|
const d = u.currentTarget.value;
|
|
1551
|
-
|
|
1552
|
-
},
|
|
1553
|
-
const u =
|
|
1554
|
-
|
|
1579
|
+
v.onChangeYear(d), c?.(new Date(d)), Nt(d);
|
|
1580
|
+
}, st = yn((u, d) => (u.preventDefault(), d === "right" ? v.previousMonth() : v.nextMonth()), 10), Et = () => {
|
|
1581
|
+
const u = vn();
|
|
1582
|
+
v.date(() => u), w?.(u);
|
|
1555
1583
|
};
|
|
1556
|
-
return /* @__PURE__ */
|
|
1584
|
+
return /* @__PURE__ */ h(Vt, { transition: bn, children: /* @__PURE__ */ Y(
|
|
1557
1585
|
"div",
|
|
1558
1586
|
{
|
|
1559
|
-
ref:
|
|
1587
|
+
ref: Z,
|
|
1560
1588
|
"data-component": "calendar",
|
|
1561
|
-
onTouchEnd:
|
|
1562
|
-
onTouchStart:
|
|
1563
|
-
className:
|
|
1589
|
+
onTouchEnd: st.onTouchEnd,
|
|
1590
|
+
onTouchStart: st.onTouchStart,
|
|
1591
|
+
className: X("relative overflow-hidden", C.function(l?.calendar) ? l?.calendar(ot) : l?.calendar),
|
|
1564
1592
|
children: [
|
|
1565
|
-
/* @__PURE__ */
|
|
1566
|
-
/* @__PURE__ */
|
|
1567
|
-
/* @__PURE__ */
|
|
1568
|
-
|
|
1593
|
+
/* @__PURE__ */ h("div", { className: "flex flex-col justify-center rounded text-center", children: /* @__PURE__ */ h(jt, { initial: !1, mode: "popLayout", custom: x.direction, onExitComplete: v.onExitComplete, children: /* @__PURE__ */ Y(E.div, { initial: "enter", animate: "middle", exit: "exit", children: [
|
|
1594
|
+
/* @__PURE__ */ Y("header", { className: "relative flex justify-between", children: [
|
|
1595
|
+
/* @__PURE__ */ h(
|
|
1596
|
+
E.button,
|
|
1569
1597
|
{
|
|
1570
1598
|
layout: !0,
|
|
1571
1599
|
type: "button",
|
|
1572
1600
|
"data-focustrap": "prev",
|
|
1573
1601
|
variants: ht,
|
|
1574
|
-
onClick:
|
|
1575
|
-
title:
|
|
1602
|
+
onClick: v.previousMonth,
|
|
1603
|
+
title: I.calendarBackMonth,
|
|
1576
1604
|
className: "z-calendar rounded-full p-1.5 hover:bg-primary hover:text-primary-foreground",
|
|
1577
|
-
children: /* @__PURE__ */
|
|
1605
|
+
children: /* @__PURE__ */ h(wt, { className: "h-4 w-4" })
|
|
1578
1606
|
}
|
|
1579
1607
|
),
|
|
1580
|
-
/* @__PURE__ */
|
|
1581
|
-
|
|
1608
|
+
/* @__PURE__ */ h(
|
|
1609
|
+
E.span,
|
|
1582
1610
|
{
|
|
1583
1611
|
layout: !0,
|
|
1584
|
-
variants:
|
|
1585
|
-
custom:
|
|
1612
|
+
variants: Ot,
|
|
1613
|
+
custom: x.direction,
|
|
1586
1614
|
className: "absolute inset-0 isolate z-normal flex items-center justify-center font-semibold",
|
|
1587
|
-
children: /* @__PURE__ */
|
|
1588
|
-
/* @__PURE__ */
|
|
1615
|
+
children: /* @__PURE__ */ Y("span", { className: "flex w-fit items-center justify-center gap-0.5 py-1", children: [
|
|
1616
|
+
/* @__PURE__ */ h(
|
|
1589
1617
|
"select",
|
|
1590
1618
|
{
|
|
1591
|
-
value:
|
|
1592
|
-
onChange:
|
|
1593
|
-
"aria-label":
|
|
1594
|
-
style: { width: `${
|
|
1619
|
+
value: tt,
|
|
1620
|
+
onChange: v.onChangeMonth,
|
|
1621
|
+
"aria-label": I.calendarMonthLabel,
|
|
1622
|
+
style: { width: `${tt.length + 1}ch` },
|
|
1595
1623
|
className: "cursor-pointer appearance-none bg-transparent capitalize proportional-nums hover:text-primary",
|
|
1596
|
-
children:
|
|
1624
|
+
children: x.months
|
|
1597
1625
|
}
|
|
1598
1626
|
),
|
|
1599
|
-
/* @__PURE__ */
|
|
1600
|
-
|
|
1627
|
+
/* @__PURE__ */ h(
|
|
1628
|
+
_t,
|
|
1601
1629
|
{
|
|
1602
1630
|
mask: "int",
|
|
1603
1631
|
maxLength: 4,
|
|
1604
1632
|
placeholder: "YYYY",
|
|
1605
|
-
value:
|
|
1606
|
-
onChange:
|
|
1607
|
-
style: { width: `${
|
|
1633
|
+
value: x.year,
|
|
1634
|
+
onChange: Wt,
|
|
1635
|
+
style: { width: `${x.year.length}ch` },
|
|
1608
1636
|
className: "w-16 cursor-pointer appearance-none bg-transparent hover:text-primary"
|
|
1609
1637
|
}
|
|
1610
1638
|
)
|
|
1611
1639
|
] })
|
|
1612
1640
|
}
|
|
1613
1641
|
),
|
|
1614
|
-
/* @__PURE__ */
|
|
1615
|
-
|
|
1642
|
+
/* @__PURE__ */ h(
|
|
1643
|
+
E.button,
|
|
1616
1644
|
{
|
|
1617
1645
|
layout: !0,
|
|
1618
1646
|
type: "button",
|
|
1619
1647
|
"data-focustrap": "next",
|
|
1620
1648
|
variants: ht,
|
|
1621
|
-
onClick:
|
|
1622
|
-
title:
|
|
1649
|
+
onClick: v.nextMonth,
|
|
1650
|
+
title: I.calendarNextMonth,
|
|
1623
1651
|
className: "z-calendar rounded-full p-1.5 hover:bg-primary hover:text-primary-foreground",
|
|
1624
|
-
children: /* @__PURE__ */
|
|
1652
|
+
children: /* @__PURE__ */ h(It, { className: "h-4 w-4" })
|
|
1625
1653
|
}
|
|
1626
1654
|
)
|
|
1627
1655
|
] }),
|
|
1628
|
-
/* @__PURE__ */
|
|
1629
|
-
/* @__PURE__ */
|
|
1656
|
+
/* @__PURE__ */ Y(E.table, { className: "mt-2 table min-w-full table-auto border-0", children: [
|
|
1657
|
+
/* @__PURE__ */ h("thead", { children: /* @__PURE__ */ h("tr", { children: x.week.map((u) => /* @__PURE__ */ h(
|
|
1630
1658
|
"th",
|
|
1631
1659
|
{
|
|
1632
1660
|
role: "columnheader",
|
|
1633
|
-
className:
|
|
1661
|
+
className: X(
|
|
1634
1662
|
"py-2 text-sm font-medium capitalize",
|
|
1635
|
-
|
|
1663
|
+
C.function(l?.weekDay) ? l.weekDay(u) : l?.weekDay
|
|
1636
1664
|
),
|
|
1637
|
-
children: u.toLocaleDateString(
|
|
1665
|
+
children: u.toLocaleDateString(K, { weekday: "short" })
|
|
1638
1666
|
},
|
|
1639
1667
|
u.toString()
|
|
1640
1668
|
)) }) }),
|
|
1641
|
-
/* @__PURE__ */
|
|
1642
|
-
|
|
1669
|
+
/* @__PURE__ */ h(
|
|
1670
|
+
xn,
|
|
1643
1671
|
{
|
|
1644
|
-
zip:
|
|
1672
|
+
zip: Tt,
|
|
1645
1673
|
range: U,
|
|
1646
1674
|
styles: l,
|
|
1647
|
-
date:
|
|
1648
|
-
dispatch:
|
|
1649
|
-
markRange:
|
|
1675
|
+
date: $ || null,
|
|
1676
|
+
dispatch: v,
|
|
1677
|
+
markRange: f,
|
|
1650
1678
|
markToday: o,
|
|
1651
1679
|
rangeMode: g,
|
|
1652
|
-
stateDate:
|
|
1680
|
+
stateDate: x.date,
|
|
1653
1681
|
labelRange: n,
|
|
1654
|
-
stateRange:
|
|
1682
|
+
stateRange: x.range,
|
|
1655
1683
|
RenderOnDay: t,
|
|
1656
|
-
direction:
|
|
1657
|
-
disabledDate:
|
|
1658
|
-
onKeyDown:
|
|
1684
|
+
direction: x.direction,
|
|
1685
|
+
disabledDate: a,
|
|
1686
|
+
onKeyDown: v.onKeyDown
|
|
1659
1687
|
}
|
|
1660
1688
|
)
|
|
1661
1689
|
] })
|
|
1662
|
-
] },
|
|
1663
|
-
|
|
1664
|
-
|
|
1690
|
+
] }, tt) }) }),
|
|
1691
|
+
S === "datetime" ? /* @__PURE__ */ h("section", { className: "my-4 grid items-center", children: /* @__PURE__ */ h(
|
|
1692
|
+
qt,
|
|
1665
1693
|
{
|
|
1666
1694
|
info: null,
|
|
1667
1695
|
mask: "time",
|
|
1668
1696
|
optionalText: " ",
|
|
1669
1697
|
container: "w-full",
|
|
1670
1698
|
reportStatus: !1,
|
|
1671
|
-
defaultValue:
|
|
1672
|
-
title:
|
|
1699
|
+
defaultValue: $ ? en($, "HH:mm") : void 0,
|
|
1700
|
+
title: V || I.calendarDatetimeTitle,
|
|
1673
1701
|
onChange: (u) => {
|
|
1674
|
-
const d = u.target.value, i =
|
|
1702
|
+
const d = u.target.value, i = wn.exec(d);
|
|
1675
1703
|
if (!i) return;
|
|
1676
|
-
const
|
|
1677
|
-
|
|
1704
|
+
const p = i.groups.hour, k = i.groups.min, D = ln(x.date, { hours: Number(p), minutes: Number(k), seconds: 0 });
|
|
1705
|
+
v.date(() => D), w?.(D);
|
|
1678
1706
|
}
|
|
1679
1707
|
}
|
|
1680
1708
|
) }) : null,
|
|
1681
|
-
/* @__PURE__ */
|
|
1709
|
+
/* @__PURE__ */ h("footer", { className: "mt-2 text-center text-primary", children: /* @__PURE__ */ h("button", { type: "button", onClick: Et, className: "transition-transform duration-300 hover:scale-105", children: I.calendarToday }) })
|
|
1682
1710
|
]
|
|
1683
1711
|
}
|
|
1684
1712
|
) });
|
|
1685
1713
|
};
|
|
1686
1714
|
export {
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
E,
|
|
1692
|
-
|
|
1693
|
-
|
|
1715
|
+
Ge as A,
|
|
1716
|
+
$e as B,
|
|
1717
|
+
Hn as C,
|
|
1718
|
+
en as D,
|
|
1719
|
+
A as E,
|
|
1720
|
+
Mt as a,
|
|
1721
|
+
N as b,
|
|
1694
1722
|
fn as c,
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1723
|
+
un as d,
|
|
1724
|
+
pt as e,
|
|
1725
|
+
sn as f,
|
|
1698
1726
|
qe as g,
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1727
|
+
te as h,
|
|
1728
|
+
cn as i,
|
|
1729
|
+
yn as j,
|
|
1730
|
+
j as k,
|
|
1731
|
+
y as l,
|
|
1732
|
+
M as m,
|
|
1733
|
+
_n as n,
|
|
1734
|
+
In as o,
|
|
1707
1735
|
qn as p,
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1736
|
+
St as q,
|
|
1737
|
+
G as r,
|
|
1738
|
+
vt as s,
|
|
1739
|
+
wt as t,
|
|
1740
|
+
$t as u,
|
|
1741
|
+
Le as v,
|
|
1742
|
+
ct as w,
|
|
1743
|
+
Ie as x,
|
|
1744
|
+
Xe as y,
|
|
1745
|
+
Be as z
|
|
1718
1746
|
};
|
|
1719
|
-
//# sourceMappingURL=calendar-
|
|
1747
|
+
//# sourceMappingURL=calendar-B5lSd0ID.js.map
|