@box-kite/react 2.2.5 → 2.2.6
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/.claude/rules/box-kite-rules.md +3 -1
- package/.claude/skills/box-kite/SKILL.md +3 -1
- package/.claude/skills/box-kite/references/components.md +34 -0
- package/.cursor/rules/box-kite.mdc +3 -1
- package/AGENTS.md +3 -1
- package/BOX_AI_CONTEXT.md +95 -5
- package/BOX_KITE_AI_CONTEXT.md +95 -5
- package/box.cjs +1 -1
- package/box.mjs +7 -7
- package/catalog.cjs +1 -1
- package/catalog.mjs +521 -0
- package/client.cjs +1 -1
- package/client.mjs +94 -106
- package/components/calendar.cjs +1 -0
- package/components/calendar.d.ts +77 -0
- package/components/calendar.mjs +483 -0
- package/components/dataGrid/components/dataGridBooleanValue.d.ts +11 -0
- package/components/dataGrid/components/dataGridDateParts.d.ts +40 -0
- package/components/dataGrid/components/dataGridDateValue.d.ts +14 -0
- package/components/dataGrid/contracts/dataGridContract.d.ts +38 -11
- package/components/dataGrid/models/columnModel.d.ts +3 -1
- package/components/dataGrid/models/editModel.d.ts +3 -1
- package/components/dataGrid/models/localeText.d.ts +4 -0
- package/components/dataGrid/useDateParts.d.ts +17 -0
- package/components/dataGrid.cjs +3 -3
- package/components/dataGrid.mjs +797 -664
- package/components/dateField.cjs +1 -0
- package/components/dateField.d.ts +78 -0
- package/components/dateField.mjs +313 -0
- package/components/datePicker.cjs +1 -0
- package/components/datePicker.d.ts +120 -0
- package/components/datePicker.mjs +529 -0
- package/components/dateTime.cjs +1 -0
- package/components/dateTime.d.ts +23 -0
- package/components/dateTime.mjs +34 -0
- package/components/dialog.cjs +1 -1
- package/components/dialog.mjs +87 -75
- package/components/overlay.cjs +1 -1
- package/components/overlay.mjs +1 -1
- package/components/semantics.d.ts +29 -29
- package/components/timeZoneSelect.cjs +1 -0
- package/components/timeZoneSelect.d.ts +52 -0
- package/components/timeZoneSelect.mjs +74 -0
- package/components/toaster.cjs +1 -1
- package/components/toaster.mjs +1 -1
- package/dataGridDateParts.cjs +1 -0
- package/dataGridDateParts.mjs +223 -0
- package/dataGridList.cjs +1 -1
- package/dataGridList.mjs +328 -365
- package/dataGridListLayout.cjs +1 -0
- package/dataGridListLayout.mjs +49 -0
- package/date-environment.cjs +1 -0
- package/date-environment.mjs +29 -0
- package/date-input.cjs +1 -0
- package/date-input.mjs +346 -0
- package/date-math.cjs +1 -0
- package/date-math.mjs +317 -0
- package/date.cjs +1 -0
- package/date.d.ts +40 -0
- package/date.mjs +4 -0
- package/dates.cjs +1 -0
- package/dates.mjs +689 -0
- package/docs/components.md +6 -1
- package/package.json +118 -26
- package/react/boxComponent.d.ts +1 -1
- package/react/date/dateChange.d.ts +18 -0
- package/react/date/dateEnvironment.d.ts +34 -0
- package/react-shared.cjs +1 -1
- package/react-shared.mjs +1 -1
- package/ssg.cjs +1 -1
- package/ssg.mjs +1 -1
- package/utils/date/calendar.d.ts +44 -0
- package/utils/date/calendarModel.d.ts +46 -0
- package/utils/date/dateTime.d.ts +144 -0
- package/utils/date/fieldModel.d.ts +74 -0
- package/utils/date/format.d.ts +39 -0
- package/utils/date/iso.d.ts +40 -0
- package/utils/date/locale.d.ts +17 -0
- package/utils/date/parse.d.ts +20 -0
- package/utils/date/settings.d.ts +26 -0
- package/utils/date/value.d.ts +43 -0
- package/utils/date/zoneOptions.d.ts +19 -0
- package/utils/date/zones.d.ts +32 -0
package/date-math.mjs
ADDED
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import { $ as e, A as t, D as n, E as r, G as i, H as a, I as o, J as s, K as c, L as l, Q as u, S as d, T as f, U as p, V as m, W as h, _ as g, c as _, d as v, f as y, g as ee, h as b, j as x, k as te, l as S, m as C, p as w, q as T, u as E } from "./dates.mjs";
|
|
2
|
+
//#region src/utils/date/dateTime.ts
|
|
3
|
+
var D = {
|
|
4
|
+
hours: 36e5,
|
|
5
|
+
minutes: 6e4,
|
|
6
|
+
seconds: 1e3,
|
|
7
|
+
milliseconds: 1
|
|
8
|
+
};
|
|
9
|
+
function O(e) {
|
|
10
|
+
return Object.entries(D).reduce((t, [n, r]) => t + (e[n] ?? 0) * r, 0);
|
|
11
|
+
}
|
|
12
|
+
function k(e, t) {
|
|
13
|
+
let n = (t.years ?? 0) * 12 + (t.months ?? 0), r = p(h(e, n), (t.weeks ?? 0) * 7 + (t.days ?? 0));
|
|
14
|
+
return {
|
|
15
|
+
...e,
|
|
16
|
+
...r
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function A(e) {
|
|
20
|
+
return y(e)?.kind ?? null;
|
|
21
|
+
}
|
|
22
|
+
function j(e, t) {
|
|
23
|
+
let n = y(e);
|
|
24
|
+
return n !== null && (t === void 0 || n.kind === t);
|
|
25
|
+
}
|
|
26
|
+
function M(e) {
|
|
27
|
+
let t = y(e);
|
|
28
|
+
return t && r(t);
|
|
29
|
+
}
|
|
30
|
+
function ne(e, t = {}) {
|
|
31
|
+
let n = y(e, t.disambiguation);
|
|
32
|
+
if (!n) return null;
|
|
33
|
+
let i = E(n, {
|
|
34
|
+
zone: t.from,
|
|
35
|
+
disambiguation: t.disambiguation
|
|
36
|
+
});
|
|
37
|
+
return i === null ? null : r(w(i));
|
|
38
|
+
}
|
|
39
|
+
function N(e, t, n = {}) {
|
|
40
|
+
let i = y(e, n.disambiguation);
|
|
41
|
+
if (!i) return null;
|
|
42
|
+
let a = E(i, {
|
|
43
|
+
zone: n.from,
|
|
44
|
+
disambiguation: n.disambiguation
|
|
45
|
+
});
|
|
46
|
+
return a === null ? null : r(v(a, x(t)));
|
|
47
|
+
}
|
|
48
|
+
function P(e, t = {}) {
|
|
49
|
+
return N(e, "local", t);
|
|
50
|
+
}
|
|
51
|
+
function F(e, t = {}) {
|
|
52
|
+
return _(e, "date", t);
|
|
53
|
+
}
|
|
54
|
+
function I(e, t = {}) {
|
|
55
|
+
return _(e, "time", t);
|
|
56
|
+
}
|
|
57
|
+
function L(e, t = {}) {
|
|
58
|
+
return _(e, "datetime", t);
|
|
59
|
+
}
|
|
60
|
+
function R(e, t = {}) {
|
|
61
|
+
return _(e, "instant", t);
|
|
62
|
+
}
|
|
63
|
+
function z(e, t = {}) {
|
|
64
|
+
let n = y(e, t.disambiguation);
|
|
65
|
+
return n && E(n, t);
|
|
66
|
+
}
|
|
67
|
+
function B(e, t = {}) {
|
|
68
|
+
let n = z(e, t);
|
|
69
|
+
return n === null ? null : new Date(n);
|
|
70
|
+
}
|
|
71
|
+
function V(e, t = {}) {
|
|
72
|
+
let n = y(e);
|
|
73
|
+
if (!n) return null;
|
|
74
|
+
let i = t.kind ?? "instant";
|
|
75
|
+
return r(S(n, i, {
|
|
76
|
+
...t,
|
|
77
|
+
zone: t.zone ?? (i === "instant" ? "utc" : "local")
|
|
78
|
+
}));
|
|
79
|
+
}
|
|
80
|
+
function H(e, t, n = {}) {
|
|
81
|
+
let i = y(e), a = y(t);
|
|
82
|
+
if (!i || !a || i.kind === "time") return null;
|
|
83
|
+
let o = C(i, n.zone), s = C(a, n.zone), c = {
|
|
84
|
+
kind: "datetime",
|
|
85
|
+
fields: {
|
|
86
|
+
...o,
|
|
87
|
+
hour: s.hour,
|
|
88
|
+
minute: s.minute,
|
|
89
|
+
second: s.second,
|
|
90
|
+
millisecond: s.millisecond
|
|
91
|
+
},
|
|
92
|
+
offset: 0
|
|
93
|
+
};
|
|
94
|
+
return n.zone === void 0 ? r(c) : r(S(c, "instant", n));
|
|
95
|
+
}
|
|
96
|
+
function U(e = "local") {
|
|
97
|
+
return r(S(w(Date.now()), "date", { zone: e }));
|
|
98
|
+
}
|
|
99
|
+
function W(e = "local") {
|
|
100
|
+
return r(v(Date.now(), x(e)));
|
|
101
|
+
}
|
|
102
|
+
function G(e = "local") {
|
|
103
|
+
return r(S(w(Date.now()), "time", { zone: e }));
|
|
104
|
+
}
|
|
105
|
+
function K(t, n, i = {}) {
|
|
106
|
+
let o = y(t, i.disambiguation);
|
|
107
|
+
if (!o) return null;
|
|
108
|
+
if (o.kind === "time") {
|
|
109
|
+
let t = u(s(o.fields) + O(n), a);
|
|
110
|
+
return r({
|
|
111
|
+
...o,
|
|
112
|
+
fields: {
|
|
113
|
+
...e(t),
|
|
114
|
+
year: 1970,
|
|
115
|
+
month: 1,
|
|
116
|
+
day: 1
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
if (o.kind === "date") return r({
|
|
121
|
+
...o,
|
|
122
|
+
fields: k(o.fields, n)
|
|
123
|
+
});
|
|
124
|
+
if (o.kind === "datetime") return r({
|
|
125
|
+
...o,
|
|
126
|
+
fields: e(s(k(o.fields, n)) + O(n))
|
|
127
|
+
});
|
|
128
|
+
let c = g(o, i.zone), l = b(o, k(C(o, c), n), {
|
|
129
|
+
...i,
|
|
130
|
+
zone: c
|
|
131
|
+
});
|
|
132
|
+
return r(ee(o, f(l) + O(n), c));
|
|
133
|
+
}
|
|
134
|
+
function q(e, t, n = {}) {
|
|
135
|
+
return K(e, Object.fromEntries(Object.entries(t).map(([e, t]) => [e, -t])), n);
|
|
136
|
+
}
|
|
137
|
+
function J(e, t, n) {
|
|
138
|
+
switch (t) {
|
|
139
|
+
case "year": return {
|
|
140
|
+
...e,
|
|
141
|
+
...m,
|
|
142
|
+
month: 1,
|
|
143
|
+
day: 1
|
|
144
|
+
};
|
|
145
|
+
case "quarter": return {
|
|
146
|
+
...e,
|
|
147
|
+
...m,
|
|
148
|
+
month: Math.floor((e.month - 1) / 3) * 3 + 1,
|
|
149
|
+
day: 1
|
|
150
|
+
};
|
|
151
|
+
case "month": return {
|
|
152
|
+
...e,
|
|
153
|
+
...m,
|
|
154
|
+
day: 1
|
|
155
|
+
};
|
|
156
|
+
case "week": return {
|
|
157
|
+
...e,
|
|
158
|
+
...p(e, -u(i(e) - d(n).firstDay, 7)),
|
|
159
|
+
...m
|
|
160
|
+
};
|
|
161
|
+
case "day": return {
|
|
162
|
+
...e,
|
|
163
|
+
...m
|
|
164
|
+
};
|
|
165
|
+
case "hour": return {
|
|
166
|
+
...e,
|
|
167
|
+
minute: 0,
|
|
168
|
+
second: 0,
|
|
169
|
+
millisecond: 0
|
|
170
|
+
};
|
|
171
|
+
case "minute": return {
|
|
172
|
+
...e,
|
|
173
|
+
second: 0,
|
|
174
|
+
millisecond: 0
|
|
175
|
+
};
|
|
176
|
+
case "second": return {
|
|
177
|
+
...e,
|
|
178
|
+
millisecond: 0
|
|
179
|
+
};
|
|
180
|
+
default: return e;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
var Y = {
|
|
184
|
+
year: { years: 1 },
|
|
185
|
+
quarter: { months: 3 },
|
|
186
|
+
month: { months: 1 },
|
|
187
|
+
week: { weeks: 1 },
|
|
188
|
+
day: { days: 1 },
|
|
189
|
+
hour: { hours: 1 },
|
|
190
|
+
minute: { minutes: 1 },
|
|
191
|
+
second: { seconds: 1 },
|
|
192
|
+
millisecond: { milliseconds: 1 }
|
|
193
|
+
};
|
|
194
|
+
function X(e, t, n = {}) {
|
|
195
|
+
let i = y(e, n.disambiguation);
|
|
196
|
+
if (!i) return null;
|
|
197
|
+
let a = J(C(i, n.zone), t, n.locale ?? o());
|
|
198
|
+
return i.kind === "time" ? r({
|
|
199
|
+
...i,
|
|
200
|
+
fields: {
|
|
201
|
+
...a,
|
|
202
|
+
year: 1970,
|
|
203
|
+
month: 1,
|
|
204
|
+
day: 1
|
|
205
|
+
}
|
|
206
|
+
}) : r(b(i, a, n));
|
|
207
|
+
}
|
|
208
|
+
function re(e, t, n = {}) {
|
|
209
|
+
let r = X(e, t, n), i = r && K(r, Y[t], n);
|
|
210
|
+
return i ? A(i) === "date" ? K(i, { days: -1 }, n) : K(i, { milliseconds: -1 }, n) : null;
|
|
211
|
+
}
|
|
212
|
+
function Z(e, t, n = {}) {
|
|
213
|
+
let r = y(e, n.disambiguation), i = y(t, n.disambiguation);
|
|
214
|
+
return !r || !i ? r ? 1 : i ? -1 : 0 : r.kind === i.kind && r.kind !== "instant" ? Math.sign(s(r.fields) - s(i.fields)) : r.kind === "time" || i.kind === "time" ? Math.sign(s(C(r, n.zone)) % a - s(C(i, n.zone)) % a) : Math.sign((E(r, n) ?? 0) - (E(i, n) ?? 0));
|
|
215
|
+
}
|
|
216
|
+
function ie(e, t, n = {}) {
|
|
217
|
+
return Z(e, t, n) < 0;
|
|
218
|
+
}
|
|
219
|
+
function ae(e, t, n = {}) {
|
|
220
|
+
return Z(e, t, n) > 0;
|
|
221
|
+
}
|
|
222
|
+
function oe(e, t, n = {}) {
|
|
223
|
+
return y(e) !== null && y(t) !== null && Z(e, t, n) === 0;
|
|
224
|
+
}
|
|
225
|
+
function se(e, t, n, r = {}) {
|
|
226
|
+
let i = y(e), a = y(t);
|
|
227
|
+
if (!i || !a) return !1;
|
|
228
|
+
let c = r.locale ?? o();
|
|
229
|
+
return s(J(C(i, r.zone), n, c)) === s(J(C(a, r.zone), n, c));
|
|
230
|
+
}
|
|
231
|
+
function ce(e, t, n, r = {}) {
|
|
232
|
+
return (t == null || Z(e, t, r) >= 0) && (n == null || Z(e, n, r) <= 0);
|
|
233
|
+
}
|
|
234
|
+
function le(e, t, n, r = {}) {
|
|
235
|
+
return t != null && Z(e, t, r) < 0 ? M(t) : n != null && Z(e, n, r) > 0 ? M(n) : M(e);
|
|
236
|
+
}
|
|
237
|
+
var Q = {
|
|
238
|
+
week: 7 * a,
|
|
239
|
+
day: a,
|
|
240
|
+
hour: 36e5,
|
|
241
|
+
minute: 6e4,
|
|
242
|
+
second: 1e3,
|
|
243
|
+
millisecond: 1
|
|
244
|
+
};
|
|
245
|
+
function ue(e, t, n, r = {}) {
|
|
246
|
+
let i = y(e, r.disambiguation), a = y(t, r.disambiguation);
|
|
247
|
+
if (!i || !a) return null;
|
|
248
|
+
let o = i.kind !== "instant" && a.kind !== "instant", c = C(i, r.zone), l = C(a, r.zone);
|
|
249
|
+
if (n === "year" || n === "quarter" || n === "month") {
|
|
250
|
+
let e = (c.year - l.year) * 12 + c.month - l.month, t = s({
|
|
251
|
+
...c,
|
|
252
|
+
year: 1970,
|
|
253
|
+
month: 1
|
|
254
|
+
}), r = s({
|
|
255
|
+
...l,
|
|
256
|
+
year: 1970,
|
|
257
|
+
month: 1
|
|
258
|
+
});
|
|
259
|
+
return e > 0 && t < r && --e, e < 0 && t > r && (e += 1), Math.trunc(e / (n === "year" ? 12 : n === "quarter" ? 3 : 1)) || 0;
|
|
260
|
+
}
|
|
261
|
+
let u = o ? s(c) - s(l) : (E(i, r) ?? 0) - (E(a, r) ?? 0);
|
|
262
|
+
return (n === "day" || n === "week") && i.kind === "date" && a.kind === "date" ? Math.trunc((T(c) - T(l)) / (n === "week" ? 7 : 1)) || 0 : Math.trunc(u / (Q[n] ?? 1)) || 0;
|
|
263
|
+
}
|
|
264
|
+
function de(e, t = {}) {
|
|
265
|
+
let n = y(e);
|
|
266
|
+
if (!n || n.kind === "time") return null;
|
|
267
|
+
let r = C(n, t.zone);
|
|
268
|
+
return c(r.year, r.month);
|
|
269
|
+
}
|
|
270
|
+
function $(e, i = {}) {
|
|
271
|
+
let a = y(e, i.disambiguation);
|
|
272
|
+
if (!a) return null;
|
|
273
|
+
let o = a.kind === "instant" ? g(a, i.zone) : x(i.zone), s = a.kind === "time" ? null : E(a, {
|
|
274
|
+
...i,
|
|
275
|
+
zone: o
|
|
276
|
+
}), c = C(a, o), u = l();
|
|
277
|
+
return {
|
|
278
|
+
value: r(a),
|
|
279
|
+
kind: a.kind,
|
|
280
|
+
zone: o,
|
|
281
|
+
utc: s === null ? null : r(w(s)),
|
|
282
|
+
zoned: s === null ? null : r(v(s, o)),
|
|
283
|
+
local: s === null || a.kind === "date" ? r(a) : r({
|
|
284
|
+
kind: "datetime",
|
|
285
|
+
fields: C(v(s, u), u),
|
|
286
|
+
offset: 0
|
|
287
|
+
}),
|
|
288
|
+
offset: s === null ? null : n(t(o, s)),
|
|
289
|
+
date: s === null ? null : new Date(s),
|
|
290
|
+
epoch: s,
|
|
291
|
+
year: c.year,
|
|
292
|
+
month: c.month,
|
|
293
|
+
day: c.day,
|
|
294
|
+
hour: c.hour,
|
|
295
|
+
minute: c.minute,
|
|
296
|
+
second: c.second,
|
|
297
|
+
millisecond: c.millisecond
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
function fe(e = "local", n = Date.now()) {
|
|
301
|
+
let r = y(n), i = r && E(r, { zone: e });
|
|
302
|
+
return i == null ? null : t(x(e), i);
|
|
303
|
+
}
|
|
304
|
+
function pe(e, t = "local") {
|
|
305
|
+
let n = e ? $(e, { zone: t }) : null;
|
|
306
|
+
return {
|
|
307
|
+
utc: n?.utc ?? null,
|
|
308
|
+
local: n?.local ?? null,
|
|
309
|
+
zoned: n?.zoned ?? null,
|
|
310
|
+
date: n?.date ?? null,
|
|
311
|
+
epoch: n?.epoch ?? null,
|
|
312
|
+
zone: n?.zone ?? te(t) ?? "UTC",
|
|
313
|
+
offset: n?.offset ?? null
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
//#endregion
|
|
317
|
+
export { I as A, q as C, P as D, R as E, N as M, U as N, F as O, X as S, z as T, A as _, G as a, fe as b, ue as c, ae as d, ie as f, j as g, se as h, Z as i, ne as j, L as k, re as l, oe as m, le as n, de as o, ce as p, H as r, $ as s, K as t, V as u, M as v, B as w, pe as x, W as y };
|
package/date.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./dates.cjs"),t=require("./date-math.cjs"),n=require("./date-input.cjs");exports.add=t.t,exports.clamp=t.n,exports.combine=t.r,exports.compare=t.i,exports.configureDates=e.P,exports.currentTime=t.a,exports.dateOrder=n.p,exports.dateSettings=e.F,exports.dayPeriodNames=e.v,exports.daysInMonthOf=t.o,exports.details=t.s,exports.difference=t.c,exports.endOf=t.l,exports.fieldName=e.y,exports.format=e.t,exports.formatOffset=e.D,exports.formatRange=e.n,exports.formatRelative=e.r,exports.formatToParts=e.i,exports.fromDate=t.u,exports.hourCycleOf=e.b,exports.isAfter=t.d,exports.isBefore=t.f,exports.isBetween=t.p,exports.isEqual=t.m,exports.isSame=t.h,exports.isValid=t.g,exports.isValidZone=e.O,exports.kindOf=t._,exports.localZone=e.L,exports.monthNames=e.x,exports.normalize=t.v,exports.normalizeZone=e.k,exports.now=t.y,exports.offsetOf=t.b,exports.parse=n.m,exports.readZoneCookie=e.R,exports.readingsOf=t.x,exports.startOf=t.S,exports.subtract=t.C,exports.systemZone=e.z,exports.timeZones=e.M,exports.toDate=t.w,exports.toEpoch=t.T,exports.toInstant=t.E,exports.toLocal=t.D,exports.toPlainDate=t.O,exports.toPlainDateTime=t.k,exports.toPlainTime=t.A,exports.toUtc=t.j,exports.toZone=t.M,exports.today=t.N,exports.weekInfo=e.S,exports.weekdayNames=e.C,exports.zoneCookie=e.B,exports.zoneName=e.s;
|
package/date.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@box-kite/react/date` — dates, times and time zones, with no dependency and no React.
|
|
3
|
+
*
|
|
4
|
+
* ```ts
|
|
5
|
+
* import { format, toUtc, toLocal, today, parse } from '@box-kite/react/date';
|
|
6
|
+
*
|
|
7
|
+
* toUtc('2026-10-19T14:30:00', { from: 'Europe/Chisinau' }); // '2026-10-19T11:30:00Z'
|
|
8
|
+
* toLocal('2026-10-19T11:30:00Z'); // the reader's wall clock, with its offset
|
|
9
|
+
* format('2026-10-19', { locale: 'ro-MD' }); // '19 oct. 2026'
|
|
10
|
+
* parse('19.10.2026 14:30', { locale: 'ro-MD' }); // '2026-10-19T14:30:00'
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* **Every value is an ISO string, and its shape is its kind.** `2026-10-19` is a date — no time, no zone, the
|
|
14
|
+
* same day everywhere. `14:30:00` is a time. `2026-10-19T14:30:00` is a wall clock with no zone. Anything with
|
|
15
|
+
* an offset (`…+03:00`, `…Z`) is an instant: one moment, the same everywhere, written as one zone sees it. A
|
|
16
|
+
* string is what a form posts, what JSON carries and what a Server Component can hand a client one, so the
|
|
17
|
+
* value never needs converting at a boundary — only when the app asks a question of it.
|
|
18
|
+
*
|
|
19
|
+
* **`'local'` is the reader.** In a browser it is the browser's zone; on a server it is
|
|
20
|
+
* `configureDates({ timeZone })` — the reader's, read off the cookie `zoneCookie()` writes — or the server's
|
|
21
|
+
* own when nothing set it, which `systemZone()` always answers. `'utc'` is UTC, and any IANA name or `+03:00`
|
|
22
|
+
* is that zone.
|
|
23
|
+
*
|
|
24
|
+
* Zones are read through `Intl`, so there is no zone database to ship, and so is every locale: names, orders,
|
|
25
|
+
* weeks and the 12- or 24-hour clock all come from the runtime.
|
|
26
|
+
*/
|
|
27
|
+
export type { DateKind } from './utils/date/iso';
|
|
28
|
+
export type { Disambiguation, ZoneInput } from './utils/date/zones';
|
|
29
|
+
export type { DateInput, ZoneOptions } from './utils/date/value';
|
|
30
|
+
export type { DateReadings, DateTimeDetails, DateUnit, Duration, UnitOptions } from './utils/date/dateTime';
|
|
31
|
+
export type { FormatOptions, RelativeOptions } from './utils/date/format';
|
|
32
|
+
export type { ParseOptions } from './utils/date/parse';
|
|
33
|
+
export type { DateSettings } from './utils/date/settings';
|
|
34
|
+
export type { WeekInfo } from './utils/date/locale';
|
|
35
|
+
export { add, clamp, combine, compare, currentTime, daysInMonthOf, details, difference, endOf, fromDate, isAfter, isBefore, isBetween, isEqual, isSame, isValid, kindOf, normalize, offsetOf, readingsOf, now, startOf, subtract, toDate, toEpoch, toInstant, toLocal, toPlainDate, toPlainDateTime, toPlainTime, today, toUtc, toZone, } from './utils/date/dateTime';
|
|
36
|
+
export { format, formatRange, formatRelative, formatToParts, zoneName } from './utils/date/format';
|
|
37
|
+
export { dateOrder, parse } from './utils/date/parse';
|
|
38
|
+
export { dayPeriodNames, fieldName, hourCycleOf, monthNames, weekdayNames, weekInfo } from './utils/date/locale';
|
|
39
|
+
export { formatOffset, isValidZone, normalizeZone, timeZones } from './utils/date/zones';
|
|
40
|
+
export { configureDates, dateSettings, localZone, readZoneCookie, systemZone, zoneCookie } from './utils/date/settings';
|
package/date.mjs
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { B as e, C as t, D as n, F as r, L as i, M as a, O as o, P as s, R as c, S as l, b as u, i as d, k as f, n as p, r as m, s as h, t as g, v as _, x as v, y, z as b } from "./dates.mjs";
|
|
2
|
+
import { A as x, C as S, D as C, E as w, M as T, N as E, O as D, S as O, T as k, _ as A, a as j, b as M, c as N, d as P, f as F, g as I, h as L, i as R, j as z, k as B, l as V, m as H, n as U, o as W, p as G, r as K, s as q, t as J, u as Y, v as X, w as Z, x as Q, y as $ } from "./date-math.mjs";
|
|
3
|
+
import { m as ee, p as te } from "./date-input.mjs";
|
|
4
|
+
export { J as add, U as clamp, K as combine, R as compare, s as configureDates, j as currentTime, te as dateOrder, r as dateSettings, _ as dayPeriodNames, W as daysInMonthOf, q as details, N as difference, V as endOf, y as fieldName, g as format, n as formatOffset, p as formatRange, m as formatRelative, d as formatToParts, Y as fromDate, u as hourCycleOf, P as isAfter, F as isBefore, G as isBetween, H as isEqual, L as isSame, I as isValid, o as isValidZone, A as kindOf, i as localZone, v as monthNames, X as normalize, f as normalizeZone, $ as now, M as offsetOf, ee as parse, c as readZoneCookie, Q as readingsOf, O as startOf, S as subtract, b as systemZone, a as timeZones, Z as toDate, k as toEpoch, w as toInstant, C as toLocal, D as toPlainDate, B as toPlainDateTime, x as toPlainTime, z as toUtc, T as toZone, E as today, l as weekInfo, t as weekdayNames, e as zoneCookie, h as zoneName };
|
package/dates.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=6e4,t=36e5,n=864e5,r={hour:0,minute:0,second:0,millisecond:0};function i(e,t){return Math.floor(e/t)}function a(e,t){return(e%t+t)%t}function o(e){return e%4==0&&e%100!=0||e%400==0}function s(e,t){return t===2?o(e)?29:28:[31,28,31,30,31,30,31,31,30,31,30,31][t-1]}function c({year:e,month:t,day:n}){let r=e-+(t<=2),a=i(r,400),o=r-a*400,s=i(153*(t+(t>2?-3:9))+2,5)+n-1,c=o*365+i(o,4)-i(o,100)+s;return a*146097+c-719468}function l(e){let t=e+719468,n=i(t,146097),r=t-n*146097,a=i(r-i(r,1460)+i(r,36524)-i(r,146096),365),o=r-(365*a+i(a,4)-i(a,100)),s=i(5*o+2,153),c=s+(s<10?3:-9);return{year:a+n*400+ +(c<=2),month:c,day:o-i(153*s+2,5)+1}}function u(e){return a(c(e)+4,7)}function d(r){return c(r)*n+r.hour*t+r.minute*e+r.second*1e3+r.millisecond}function f(r){let a=i(r,n),o=r-a*n,s=i(o,t);o-=s*t;let c=i(o,e);o-=c*e;let u=i(o,1e3);return{...l(a),hour:s,minute:c,second:u,millisecond:o-u*1e3}}function p(e,t){return l(c(e)+t)}function m(e,t){let n=e.year*12+(e.month-1)+t,r=i(n,12),o=a(n,12)+1;return{year:r,month:o,day:Math.min(e.day,s(r,o))}}function h({year:e,month:t,day:n}){return Number.isInteger(e)&&t>=1&&t<=12&&Number.isInteger(t)&&n>=1&&n<=s(e,t)}function g({hour:e,minute:t,second:n,millisecond:r}){return e>=0&&e<=23&&t>=0&&t<=59&&n>=0&&n<=59&&r>=0&&r<=999}function _(e){let t=c(e)-a(u(e)+6,7)+3,n=l(t).year;return{year:n,week:i(t-c({year:n,month:1,day:1}),7)+1}}var v={},y,b;function ee(e){let t=v;return v={...v,...e},t}function te(){return v}function x(){if(y===void 0)try{y=new Intl.DateTimeFormat().resolvedOptions().timeZone||`UTC`}catch{y=`UTC`}return y}function ne(){return v.timeZone??x()}function re(){if(b===void 0)try{b=new Intl.DateTimeFormat().resolvedOptions().locale||`en-US`}catch{b=`en-US`}return b}function S(){return v.locale??re()}var C=`tz`;function ie(e=x(),t=C){return`${t}=${encodeURIComponent(e)}; path=/; max-age=31536000; samesite=lax`}function ae(e,t=C){if(e)for(let n of e.split(`;`)){let e=n.indexOf(`=`);if(e>0&&n.slice(0,e).trim()===t)try{return decodeURIComponent(n.slice(e+1).trim())||void 0}catch{return}}}var oe=/^([+-])(\d{2}):?(\d{2})(?::?(\d{2}))?$/,w=new Map,T=new Map;function E(e){if(e===`UTC`)return 0;let t=oe.exec(e);if(!t)return;let n=Number(t[2])*60+Number(t[3])+Number(t[4]??0)/60;return t[1]===`-`?-n:n}function D(e){let t=e<0?`-`:`+`,n=Math.round(Math.abs(e)*60),r=e=>String(e).padStart(2,`0`),i=n%60;return`${t}${r(Math.floor(n/3600))}:${r(Math.floor(n/60)%60)}${i?`:${r(i)}`:``}`}function se(e){let t=w.get(e);if(t===void 0){try{t=new Intl.DateTimeFormat(`en-US`,{timeZone:e}).resolvedOptions().timeZone}catch{t=null}w.set(e,t)}return t}function O(e){if(e===void 0||e===`local`)return ne();if(e===`system`)return x();let t=e.trim();if(/^(utc|z|gmt|etc\/utc|etc\/gmt|etc\/uct|uct|universal|zulu|etc\/universal|etc\/zulu)$/i.test(t))return`UTC`;let n=E(t);if(n!==void 0)return n===0?`UTC`:D(n);let r=se(t);return r&&/^(utc|etc\/utc|etc\/gmt)$/i.test(r)?`UTC`:r}function ce(e){return O(e)!==null}function k(e){let t=O(e);if(t===null)throw RangeError(`Unknown time zone: ${String(e)}`);return t}function le(e){let t=T.get(e);return t||(t=new Intl.DateTimeFormat(`en-US`,{timeZone:e,hourCycle:`h23`,era:`short`,year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`}),T.set(e,t)),t}function ue(e,t){let n=le(e).formatToParts(t),r=e=>Number(n.find(t=>t.type===e)?.value??0),a=n.find(e=>e.type===`era`)?.value??`A`,o=r(`year`);return d({year:a.startsWith(`B`)?1-o:o,month:r(`month`),day:r(`day`),hour:r(`hour`)%24,minute:r(`minute`),second:r(`second`),millisecond:0})+(t-i(t,1e3)*1e3)}function A(t,n){let r=E(t);return r===void 0?t===x()?-new Date(n).getTimezoneOffset():(ue(t,n)-n)/e:r}function j(t,n){return f(n+A(t,n)*e)}function M(t,r,i=`compatible`){let a=d(t),o=E(r);if(o!==void 0)return a-o*e;let s=A(r,a-n),c=A(r,a+n),l=[...new Set([a-s*e,a-c*e])].filter(t=>t+A(r,t)*e===a).sort((e,t)=>e-t);return l.length===1?l[0]:i===`reject`?null:l.length===2?i===`later`?l[1]:l[0]:i===`earlier`?a-c*e:a-s*e}var N;function de(){if(!N){let e=Intl.supportedValuesOf;N=[`UTC`,...(e?e(`timeZone`):[]).filter(e=>e!==`UTC`)]}return N}var fe=/^([+-]\d{6}|\d{4})-?(\d{2})-?(\d{2})(?:(?:T|t|\s+)(\d{2})(?::?(\d{2})(?::?(\d{2})(?:[.,](\d{1,9}))?)?)?)?\s*(Z|z|[+-]\d{2}(?::?\d{2}(?::?\d{2})?)?)?(?:\[!?([^\]=]+)\])*$/,pe=/^T?(\d{1,2}):(\d{2})(?::(\d{2})(?:[.,](\d{1,9}))?)?$/;function P(e){return e?Math.floor(Number(`0.${e}`)*1e3):0}function F(t){return d(t.fields)-t.offset*e}function me(t,n=`compatible`){let r=t.trim(),i=pe.exec(r);if(i){let e={year:1970,month:1,day:1,hour:Number(i[1]),minute:Number(i[2]),second:Number(i[3]??0),millisecond:P(i[4])};return g(e)?{kind:`time`,fields:e,offset:0}:null}let a=fe.exec(r);if(!a)return null;let[,o,s,c,l,u,f,m,_,v]=a,y={year:Number(o),month:Number(s),day:Number(c),hour:Number(l??0),minute:Number(u??0),second:Math.min(Number(f??0),59),millisecond:P(m)};if(!h(y)||(y.hour===24&&y.minute===0&&y.second===0&&y.millisecond===0&&(y={...y,...p(y,1),hour:0}),!g(y)))return null;if(l===void 0)return _||v?null:{kind:`date`,fields:y,offset:0};let b=v?O(v)??void 0:void 0;if(v&&!b)return null;if(_){let e=/^z$/i.test(_)?0:E(_.length===3?`${_}:00`:_);return e===void 0?null:{kind:`instant`,fields:y,offset:e,zone:b}}if(b){let t=M(y,b,n);return t===null?null:{kind:`instant`,fields:y,offset:(d(y)-t)/e,zone:b}}return{kind:`datetime`,fields:y,offset:0}}function I(e,t=2){return String(e).padStart(t,`0`)}function he(e){return e>=0&&e<=9999?I(e,4):`${e<0?`-`:`+`}${I(Math.abs(e),6)}`}function L(e){return`${he(e.year)}-${I(e.month)}-${I(e.day)}`}function R(e){let t=`${I(e.hour)}:${I(e.minute)}:${I(e.second)}`;return e.millisecond?`${t}.${I(e.millisecond,3)}`:t}function z(e,t=!1){switch(e.kind){case`date`:return L(e.fields);case`time`:return R(e.fields);case`datetime`:return`${L(e.fields)}T${R(e.fields)}`;default:{let n=e.offset===0&&(e.zone===void 0||e.zone===`UTC`)?`Z`:D(e.offset),r=t&&e.zone&&e.zone!==`UTC`&&E(e.zone)===void 0?`[${e.zone}]`:``;return`${L(e.fields)}T${R(e.fields)}${n}${r}`}}}var ge=new Set(`AG AS BD BR BS BT BW BZ CA CN CO DM DO ET GT GU HK HN ID IL IN JM JP KE KH KR LA MH MM MO MT MX MZ NI NP PA PE PH PK PR PT PY SA SG SV TH TT TW UM US VE VI WS YE ZA ZW`.split(` `)),_e=new Set(`AE AF BH DJ DZ EG IQ IR JO KW LY OM QA SD SY`.split(` `)),ve=new Set(`AE BH DZ EG IQ JO KW LY OM QA SA SD SY YE`.split(` `)),B=new Map;function ye(e){try{let t=new Intl.Locale(e);return t.region??t.maximize().region}catch{return}}function be(e=S()){let t=B.get(e);if(t)return t;try{let n=new Intl.Locale(e),r=n.getWeekInfo?.()??n.weekInfo;r&&(t={firstDay:r.firstDay%7,weekend:r.weekend.map(e=>e%7)})}catch{}if(!t){let n=ye(e)??``;t={firstDay:_e.has(n)?6:+!ge.has(n),weekend:ve.has(n)?[5,6]:[6,0]}}return B.set(e,t),t}var V=new Map;function xe(e=S()){let t=V.get(e);if(!t){let n=new Intl.DateTimeFormat(e,{hour:`numeric`}).resolvedOptions().hourCycle;t=n===`h11`||n===`h12`?12:24,V.set(e,t)}return t}function Se(e=S(),t=`long`){let n=new Intl.DateTimeFormat(e,{month:t,timeZone:`UTC`});return Array.from({length:12},(e,t)=>n.format(Date.UTC(2021,t,15)))}function Ce(e=S(),t=`short`){let n=new Intl.DateTimeFormat(e,{weekday:t,timeZone:`UTC`});return Array.from({length:7},(e,t)=>n.format(Date.UTC(2021,0,3+t)))}function we(e=S()){let t=new Intl.DateTimeFormat(e,{hour:`numeric`,hourCycle:`h12`,timeZone:`UTC`}),n=e=>t.formatToParts(Date.UTC(2021,0,1,e)).find(e=>e.type===`dayPeriod`)?.value,r=e=>e.split(` `).join(` `);return[r(n(9)??`AM`),r(n(21)??`PM`)]}var H=new Map;function Te(e,t=S()){let n=`${t}|${e}`,r=H.get(n);if(r===void 0){try{let n=Intl.DisplayNames;r=n&&new n(t,{type:`dateTimeField`}).of(e)||e}catch{r=e}H.set(n,r)}return r}function U(t,n){let r=A(n,t);return{kind:`instant`,fields:f(t+r*e),offset:r,zone:n}}function W(e,t){if(e==null||e===``)return null;if(e instanceof Date||typeof e==`number`){let t=typeof e==`number`?e:e.getTime();return Number.isFinite(t)?G(t):null}if(typeof e!=`string`)return null;let n=me(e,t);if(n)return n;if(/[a-z]{3}/i.test(e)&&/(gmt|utc|\dz\b|[+-]\d{2}:?\d{2})/i.test(e)){let t=Date.parse(e);if(Number.isFinite(t))return G(t)}return null}function G(e){return{kind:`instant`,fields:f(e),offset:0}}function K(e,t){return t===void 0?e.zone??k(`local`):k(t)}function q(e,t,n){return e.offset===0&&e.zone===void 0?G(t):U(t,n)}function J(e,t,n={}){let{disambiguation:i=`compatible`}=n;if(e.kind===t&&t!==`instant`)return e;if(e.kind===`time`||e.kind===`date`&&t===`time`)return null;if(t===`instant`){let t=k(n.zone),a=e.kind===`instant`?F(e):M(e.kind===`date`?{...e.fields,...r}:e.fields,t,i);return a===null?null:U(a,t)}let a=e.kind===`instant`?j(k(n.zone),F(e)):e.fields;return t===`date`?{kind:t,fields:{...a,...r},offset:0}:t===`time`?{kind:t,fields:{...a,year:1970,month:1,day:1},offset:0}:{kind:t,fields:a,offset:0}}function Ee(e,t,n={}){let r=W(e,n.disambiguation),i=r&&J(r,t,n);return i?z(i):null}function De(e,t={}){if(e.kind===`instant`)return F(e);let n=J(e,`instant`,t);return n?F(n):null}function Oe(e,t){return e.kind===`instant`?j(K(e,t),F(e)):e.fields}function ke(e,t,n={}){if(e.kind!==`instant`)return{...e,fields:t};let r=K(e,n.zone);return q(e,M(t,r,n.disambiguation??`compatible`)??d(t)-(E(r)??0)*6e4,r)}var Ae=[`weekday`,`era`,`year`,`month`,`day`,`dayPeriod`,`hour`,`minute`,`second`,`fractionalSecondDigits`,`dateStyle`,`timeStyle`],Y=new Map;function X(e,t){let n=`${e}|${JSON.stringify(t)}`,r=Y.get(n);return r||(r=new Intl.DateTimeFormat(e,t),Y.set(n,r)),r}function je(e){return e===`date`?{dateStyle:`medium`}:e===`time`?{timeStyle:`short`}:{dateStyle:`medium`,timeStyle:`short`}}var Me=new Set([`timeZone`,`hourCycle`,`hour12`,`calendar`,`numberingSystem`,`localeMatcher`]),Ne={short:{year:`2-digit`,month:`numeric`,day:`numeric`},medium:{year:`numeric`,month:`short`,day:`numeric`},long:{year:`numeric`,month:`long`,day:`numeric`},full:{weekday:`long`,year:`numeric`,month:`long`,day:`numeric`}},Pe={short:{hour:`numeric`,minute:`2-digit`},medium:{hour:`numeric`,minute:`2-digit`,second:`2-digit`},long:{hour:`numeric`,minute:`2-digit`,second:`2-digit`,timeZoneName:`short`},full:{hour:`numeric`,minute:`2-digit`,second:`2-digit`,timeZoneName:`long`}};function Fe(e){let{dateStyle:t,timeStyle:n,...r}=e,i=Object.entries(r).some(([e,t])=>t!==void 0&&!Me.has(e));return!t&&!n||!i?e:{...t?Ne[t]:{},...n?Pe[n]:{},...r}}function Z(t,n){let{locale:r,zone:i,...a}=n,o=Fe(Ae.some(e=>a[e]!==void 0)?a:{...je(t.kind),...a});if(t.kind!==`instant`){let{timeZoneName:e,...n}=o;return{epoch:d(t.fields),options:{...n,timeZone:`UTC`}}}let s=K(t,i??`local`),c=E(s);if(c===void 0||c===0)return{epoch:F(t),options:{...o,timeZone:s}};let{timeZoneName:l,...u}=o;return{epoch:F(t)+c*e,options:{...u,timeZone:`UTC`}}}function Q(e,t={}){let n=W(e);if(!n)return``;let{epoch:r,options:i}=Z(n,t);return $(X(t.locale??S(),i).format(r))}var Ie=` `;function $(e){return e.split(Ie).join(` `)}function Le(e,t={}){let n=W(e);if(!n)return[];let{epoch:r,options:i}=Z(n,t);return X(t.locale??S(),i).formatToParts(r).map(e=>({...e,value:$(e.value)}))}function Re(e,t,n={}){let r=W(e),i=W(t);if(!r||!i)return Q(r?e:t,n);let a=Z(r,n),o=Z(i,n),s=X(n.locale??S(),a.options);return $(s.formatRange?s.formatRange(Math.min(a.epoch,o.epoch),Math.max(a.epoch,o.epoch)):`${s.format(a.epoch)} – ${s.format(o.epoch)}`)}var ze=[[`second`,60],[`minute`,60],[`hour`,24],[`day`,7],[`week`,4.34524],[`month`,12],[`year`,1/0]];function Be(t,n={}){let r=W(t);if(!r||r.kind===`time`)return``;let i=W(n.now??Date.now());if(!i)return``;let a=new Intl.RelativeTimeFormat(n.locale??S(),{numeric:n.numeric??`auto`,style:n.style??`long`}),o=K(i,n.zone??`local`),s=i.kind===`instant`?j(o,F(i)):i.fields;if(r.kind===`date`){let e=c(r.fields)-c(s);if(Math.abs(e)<7)return a.format(e,`day`);if(Math.abs(e)<30)return a.format(Math.trunc(e/7),`week`);let t=(r.fields.year-s.year)*12+r.fields.month-s.month;return Math.abs(t)<12?a.format(t,`month`):a.format(Math.trunc(t/12),`year`)}let l=((r.kind===`instant`?F(r):d(r.fields)-A(o,d(r.fields))*e)-(i.kind===`instant`?F(i):d(i.fields)))/1e3;for(let[e,t]of ze){if(Math.abs(l)<t)return a.format(Math.round(l),e);l/=t}return``}function Ve(e=`local`,t={}){let n=W(t.at??Date.now()),r=n?F(n.kind===`instant`?n:{...n,offset:0}):Date.now(),i=K({kind:`instant`,fields:j(`UTC`,r),offset:0},e),a=t.style??`long`,o=X(t.locale??S(),{timeZone:E(i)!==void 0&&i!==`UTC`?void 0:i,timeZoneName:a}).formatToParts(r);return E(i)!==void 0&&i!==`UTC`?`GMT${i}`:$(o.find(e=>e.type===`timeZoneName`)?.value??i)}Object.defineProperty(exports,"$",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"A",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"B",{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,"C",{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,"D",{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,"E",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"F",{enumerable:!0,get:function(){return te}}),Object.defineProperty(exports,"G",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"H",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"I",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"J",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"K",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"L",{enumerable:!0,get:function(){return ne}}),Object.defineProperty(exports,"M",{enumerable:!0,get:function(){return de}}),Object.defineProperty(exports,"N",{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,"O",{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,"P",{enumerable:!0,get:function(){return ee}}),Object.defineProperty(exports,"Q",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"R",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(exports,"S",{enumerable:!0,get:function(){return be}}),Object.defineProperty(exports,"T",{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,"U",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"V",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"W",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"X",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"Y",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"Z",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return xe}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return ke}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,"j",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"k",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return Re}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,"q",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return Be}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return Ve}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return De}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return we}}),Object.defineProperty(exports,"w",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return Se}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return Te}}),Object.defineProperty(exports,"z",{enumerable:!0,get:function(){return x}});
|