@sigtes/ui 0.2.12 → 0.3.0
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/components.cjs.js +1 -1
- package/dist/components.es.js +2 -41
- package/dist/globals.css +1 -1
- package/dist/pages.cjs.js +1 -1
- package/dist/pages.es.js +1 -1
- package/dist/{providers.es-DkWBRd2l.js → providers.es-Dbo7mSRf.js} +542 -619
- package/dist/providers.es-c63iqHg7.cjs +11 -0
- package/package.json +27 -26
- package/dist/providers.es-DW20XFKL.cjs +0 -43
|
@@ -1,35 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
2
|
+
import Rt, { createContext as Ft, useContext as At } from "react";
|
|
3
3
|
import { Slot as re } from "@radix-ui/react-slot";
|
|
4
4
|
import { cva as ne } from "class-variance-authority";
|
|
5
5
|
import { twMerge as ae } from "tailwind-merge";
|
|
6
6
|
import "next-themes";
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
* @license React
|
|
10
|
-
* react-jsx-runtime.production.js
|
|
11
|
-
*
|
|
12
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
13
|
-
*
|
|
14
|
-
* This source code is licensed under the MIT license found in the
|
|
15
|
-
* LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/
|
|
17
|
-
var St;
|
|
7
|
+
var dt = { exports: {} }, V = {};
|
|
8
|
+
var kt;
|
|
18
9
|
function oe() {
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
10
|
+
if (kt) return V;
|
|
11
|
+
kt = 1;
|
|
12
|
+
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), r = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
22
13
|
function n(t, a, i) {
|
|
23
|
-
var
|
|
24
|
-
if (i !== void 0 && (
|
|
14
|
+
var u = null;
|
|
15
|
+
if (i !== void 0 && (u = "" + i), a.key !== void 0 && (u = "" + a.key), "key" in a) {
|
|
25
16
|
i = {};
|
|
26
|
-
for (var
|
|
27
|
-
|
|
17
|
+
for (var l in a)
|
|
18
|
+
l !== "key" && (i[l] = a[l]);
|
|
28
19
|
} else i = a;
|
|
29
20
|
return a = i.ref, {
|
|
30
21
|
$$typeof: e,
|
|
31
22
|
type: t,
|
|
32
|
-
key:
|
|
23
|
+
key: u,
|
|
33
24
|
ref: a !== void 0 ? a : null,
|
|
34
25
|
props: i
|
|
35
26
|
};
|
|
@@ -37,56 +28,47 @@ function oe() {
|
|
|
37
28
|
return V.Fragment = r, V.jsx = n, V.jsxs = n, V;
|
|
38
29
|
}
|
|
39
30
|
var K = {};
|
|
40
|
-
|
|
41
|
-
* @license React
|
|
42
|
-
* react-jsx-runtime.development.js
|
|
43
|
-
*
|
|
44
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
45
|
-
*
|
|
46
|
-
* This source code is licensed under the MIT license found in the
|
|
47
|
-
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/
|
|
49
|
-
var Mt;
|
|
31
|
+
var St;
|
|
50
32
|
function ie() {
|
|
51
|
-
return
|
|
33
|
+
return St || (St = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
52
34
|
function e(o) {
|
|
53
35
|
if (o == null) return null;
|
|
54
36
|
if (typeof o == "function")
|
|
55
|
-
return o.$$typeof ===
|
|
37
|
+
return o.$$typeof === q ? null : o.displayName || o.name || null;
|
|
56
38
|
if (typeof o == "string") return o;
|
|
57
39
|
switch (o) {
|
|
58
|
-
case
|
|
40
|
+
case x:
|
|
59
41
|
return "Fragment";
|
|
60
|
-
case
|
|
42
|
+
case I:
|
|
61
43
|
return "Profiler";
|
|
62
|
-
case
|
|
44
|
+
case N:
|
|
63
45
|
return "StrictMode";
|
|
64
|
-
case
|
|
46
|
+
case gt:
|
|
65
47
|
return "Suspense";
|
|
66
|
-
case
|
|
48
|
+
case pt:
|
|
67
49
|
return "SuspenseList";
|
|
68
|
-
case
|
|
50
|
+
case yt:
|
|
69
51
|
return "Activity";
|
|
70
52
|
}
|
|
71
53
|
if (typeof o == "object")
|
|
72
54
|
switch (typeof o.tag == "number" && console.error(
|
|
73
55
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
74
56
|
), o.$$typeof) {
|
|
75
|
-
case I:
|
|
76
|
-
return "Portal";
|
|
77
57
|
case E:
|
|
78
|
-
return
|
|
79
|
-
case
|
|
58
|
+
return "Portal";
|
|
59
|
+
case ht:
|
|
60
|
+
return o.displayName || "Context";
|
|
61
|
+
case C:
|
|
80
62
|
return (o._context.displayName || "Context") + ".Consumer";
|
|
81
|
-
case dt:
|
|
82
|
-
var u = o.render;
|
|
83
|
-
return o = o.displayName, o || (o = u.displayName || u.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
84
63
|
case mt:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
64
|
+
var c = o.render;
|
|
65
|
+
return o = o.displayName, o || (o = c.displayName || c.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
66
|
+
case ct:
|
|
67
|
+
return c = o.displayName || null, c !== null ? c : e(o.type) || "Memo";
|
|
68
|
+
case H:
|
|
69
|
+
c = o._payload, o = o._init;
|
|
88
70
|
try {
|
|
89
|
-
return e(o(
|
|
71
|
+
return e(o(c));
|
|
90
72
|
} catch {
|
|
91
73
|
}
|
|
92
74
|
}
|
|
@@ -98,73 +80,74 @@ function ie() {
|
|
|
98
80
|
function n(o) {
|
|
99
81
|
try {
|
|
100
82
|
r(o);
|
|
101
|
-
var
|
|
83
|
+
var c = !1;
|
|
102
84
|
} catch {
|
|
103
|
-
|
|
85
|
+
c = !0;
|
|
104
86
|
}
|
|
105
|
-
if (
|
|
106
|
-
|
|
107
|
-
var
|
|
108
|
-
return
|
|
109
|
-
|
|
87
|
+
if (c) {
|
|
88
|
+
c = console;
|
|
89
|
+
var d = c.error, p = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
90
|
+
return d.call(
|
|
91
|
+
c,
|
|
110
92
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
111
|
-
|
|
93
|
+
p
|
|
112
94
|
), r(o);
|
|
113
95
|
}
|
|
114
96
|
}
|
|
115
97
|
function t(o) {
|
|
116
|
-
if (o ===
|
|
117
|
-
if (typeof o == "object" && o !== null && o.$$typeof ===
|
|
98
|
+
if (o === x) return "<>";
|
|
99
|
+
if (typeof o == "object" && o !== null && o.$$typeof === H)
|
|
118
100
|
return "<...>";
|
|
119
101
|
try {
|
|
120
|
-
var
|
|
121
|
-
return
|
|
102
|
+
var c = e(o);
|
|
103
|
+
return c ? "<" + c + ">" : "<...>";
|
|
122
104
|
} catch {
|
|
123
105
|
return "<...>";
|
|
124
106
|
}
|
|
125
107
|
}
|
|
126
108
|
function a() {
|
|
127
|
-
var o =
|
|
109
|
+
var o = F.A;
|
|
128
110
|
return o === null ? null : o.getOwner();
|
|
129
111
|
}
|
|
130
112
|
function i() {
|
|
131
113
|
return Error("react-stack-top-frame");
|
|
132
114
|
}
|
|
133
|
-
function
|
|
134
|
-
if (
|
|
135
|
-
var
|
|
136
|
-
if (
|
|
115
|
+
function u(o) {
|
|
116
|
+
if (lt.call(o, "key")) {
|
|
117
|
+
var c = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
118
|
+
if (c && c.isReactWarning) return !1;
|
|
137
119
|
}
|
|
138
120
|
return o.key !== void 0;
|
|
139
121
|
}
|
|
140
|
-
function
|
|
141
|
-
function
|
|
122
|
+
function l(o, c) {
|
|
123
|
+
function d() {
|
|
142
124
|
B || (B = !0, console.error(
|
|
143
125
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
144
|
-
|
|
126
|
+
c
|
|
145
127
|
));
|
|
146
128
|
}
|
|
147
|
-
|
|
148
|
-
get:
|
|
129
|
+
d.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
130
|
+
get: d,
|
|
149
131
|
configurable: !0
|
|
150
132
|
});
|
|
151
133
|
}
|
|
152
|
-
function
|
|
134
|
+
function h() {
|
|
153
135
|
var o = e(this.type);
|
|
154
136
|
return G[o] || (G[o] = !0, console.error(
|
|
155
137
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
156
138
|
)), o = this.props.ref, o !== void 0 ? o : null;
|
|
157
139
|
}
|
|
158
|
-
function
|
|
159
|
-
|
|
160
|
-
|
|
140
|
+
function k(o, c, d, p, M, Y) {
|
|
141
|
+
var b = d.ref;
|
|
142
|
+
return o = {
|
|
143
|
+
$$typeof: R,
|
|
161
144
|
type: o,
|
|
162
|
-
key:
|
|
163
|
-
props:
|
|
164
|
-
_owner:
|
|
165
|
-
}, (
|
|
145
|
+
key: c,
|
|
146
|
+
props: d,
|
|
147
|
+
_owner: p
|
|
148
|
+
}, (b !== void 0 ? b : null) !== null ? Object.defineProperty(o, "ref", {
|
|
166
149
|
enumerable: !1,
|
|
167
|
-
get:
|
|
150
|
+
get: h
|
|
168
151
|
}) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
169
152
|
configurable: !1,
|
|
170
153
|
enumerable: !1,
|
|
@@ -179,109 +162,106 @@ function ie() {
|
|
|
179
162
|
configurable: !1,
|
|
180
163
|
enumerable: !1,
|
|
181
164
|
writable: !0,
|
|
182
|
-
value:
|
|
165
|
+
value: M
|
|
183
166
|
}), Object.defineProperty(o, "_debugTask", {
|
|
184
167
|
configurable: !1,
|
|
185
168
|
enumerable: !1,
|
|
186
169
|
writable: !0,
|
|
187
|
-
value:
|
|
170
|
+
value: Y
|
|
188
171
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
189
172
|
}
|
|
190
|
-
function y(o,
|
|
191
|
-
var
|
|
192
|
-
if (
|
|
193
|
-
if (
|
|
194
|
-
if (
|
|
195
|
-
for (
|
|
196
|
-
|
|
197
|
-
Object.freeze && Object.freeze(
|
|
173
|
+
function y(o, c, d, p, M, Y) {
|
|
174
|
+
var b = c.children;
|
|
175
|
+
if (b !== void 0)
|
|
176
|
+
if (p)
|
|
177
|
+
if (Z(b)) {
|
|
178
|
+
for (p = 0; p < b.length; p++)
|
|
179
|
+
m(b[p]);
|
|
180
|
+
Object.freeze && Object.freeze(b);
|
|
198
181
|
} else
|
|
199
182
|
console.error(
|
|
200
183
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
201
184
|
);
|
|
202
|
-
else
|
|
203
|
-
if (
|
|
204
|
-
|
|
205
|
-
var
|
|
206
|
-
return
|
|
185
|
+
else m(b);
|
|
186
|
+
if (lt.call(c, "key")) {
|
|
187
|
+
b = e(o);
|
|
188
|
+
var v = Object.keys(c).filter(function(J) {
|
|
189
|
+
return J !== "key";
|
|
207
190
|
});
|
|
208
|
-
|
|
191
|
+
p = 0 < v.length ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}", s[b + p] || (v = 0 < v.length ? "{" + v.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
209
192
|
`A props object containing a "key" prop is being spread into JSX:
|
|
210
193
|
let props = %s;
|
|
211
194
|
<%s {...props} />
|
|
212
195
|
React keys must be passed directly to JSX without using spread:
|
|
213
196
|
let props = %s;
|
|
214
197
|
<%s key={someKey} {...props} />`,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
),
|
|
198
|
+
p,
|
|
199
|
+
b,
|
|
200
|
+
v,
|
|
201
|
+
b
|
|
202
|
+
), s[b + p] = !0);
|
|
220
203
|
}
|
|
221
|
-
if (
|
|
222
|
-
|
|
223
|
-
for (var
|
|
224
|
-
|
|
225
|
-
} else
|
|
226
|
-
return
|
|
227
|
-
|
|
204
|
+
if (b = null, d !== void 0 && (n(d), b = "" + d), u(c) && (n(c.key), b = "" + c.key), "key" in c) {
|
|
205
|
+
d = {};
|
|
206
|
+
for (var O in c)
|
|
207
|
+
O !== "key" && (d[O] = c[O]);
|
|
208
|
+
} else d = c;
|
|
209
|
+
return b && l(
|
|
210
|
+
d,
|
|
228
211
|
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
229
|
-
),
|
|
212
|
+
), k(
|
|
230
213
|
o,
|
|
231
|
-
f,
|
|
232
214
|
b,
|
|
233
|
-
|
|
215
|
+
d,
|
|
234
216
|
a(),
|
|
235
|
-
|
|
236
|
-
Y
|
|
237
|
-
_
|
|
217
|
+
M,
|
|
218
|
+
Y
|
|
238
219
|
);
|
|
239
220
|
}
|
|
240
|
-
function
|
|
241
|
-
typeof o == "object" && o !== null && o.$$typeof ===
|
|
221
|
+
function m(o) {
|
|
222
|
+
S(o) ? o._store && (o._store.validated = 1) : typeof o == "object" && o !== null && o.$$typeof === H && (o._payload.status === "fulfilled" ? S(o._payload.value) && o._payload.value._store && (o._payload.value._store.validated = 1) : o._store && (o._store.validated = 1));
|
|
223
|
+
}
|
|
224
|
+
function S(o) {
|
|
225
|
+
return typeof o == "object" && o !== null && o.$$typeof === R;
|
|
242
226
|
}
|
|
243
|
-
var
|
|
227
|
+
var T = Rt, R = /* @__PURE__ */ Symbol.for("react.transitional.element"), E = /* @__PURE__ */ Symbol.for("react.portal"), x = /* @__PURE__ */ Symbol.for("react.fragment"), N = /* @__PURE__ */ Symbol.for("react.strict_mode"), I = /* @__PURE__ */ Symbol.for("react.profiler"), C = /* @__PURE__ */ Symbol.for("react.consumer"), ht = /* @__PURE__ */ Symbol.for("react.context"), mt = /* @__PURE__ */ Symbol.for("react.forward_ref"), gt = /* @__PURE__ */ Symbol.for("react.suspense"), pt = /* @__PURE__ */ Symbol.for("react.suspense_list"), ct = /* @__PURE__ */ Symbol.for("react.memo"), H = /* @__PURE__ */ Symbol.for("react.lazy"), yt = /* @__PURE__ */ Symbol.for("react.activity"), q = /* @__PURE__ */ Symbol.for("react.client.reference"), F = T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, lt = Object.prototype.hasOwnProperty, Z = Array.isArray, A = console.createTask ? console.createTask : function() {
|
|
244
228
|
return null;
|
|
245
229
|
};
|
|
246
|
-
|
|
230
|
+
T = {
|
|
247
231
|
react_stack_bottom_frame: function(o) {
|
|
248
232
|
return o();
|
|
249
233
|
}
|
|
250
234
|
};
|
|
251
|
-
var B, G = {}, X =
|
|
252
|
-
|
|
235
|
+
var B, G = {}, X = T.react_stack_bottom_frame.bind(
|
|
236
|
+
T,
|
|
253
237
|
i
|
|
254
|
-
)(), Q =
|
|
255
|
-
K.Fragment =
|
|
256
|
-
var
|
|
238
|
+
)(), Q = A(t(i)), s = {};
|
|
239
|
+
K.Fragment = x, K.jsx = function(o, c, d) {
|
|
240
|
+
var p = 1e4 > F.recentlyCreatedOwnerStacks++;
|
|
257
241
|
return y(
|
|
258
242
|
o,
|
|
259
|
-
|
|
260
|
-
l,
|
|
261
|
-
!1,
|
|
243
|
+
c,
|
|
262
244
|
d,
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
245
|
+
!1,
|
|
246
|
+
p ? Error("react-stack-top-frame") : X,
|
|
247
|
+
p ? A(t(o)) : Q
|
|
266
248
|
);
|
|
267
|
-
}, K.jsxs = function(o,
|
|
268
|
-
var
|
|
249
|
+
}, K.jsxs = function(o, c, d) {
|
|
250
|
+
var p = 1e4 > F.recentlyCreatedOwnerStacks++;
|
|
269
251
|
return y(
|
|
270
252
|
o,
|
|
271
|
-
|
|
272
|
-
l,
|
|
273
|
-
!0,
|
|
253
|
+
c,
|
|
274
254
|
d,
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
255
|
+
!0,
|
|
256
|
+
p ? Error("react-stack-top-frame") : X,
|
|
257
|
+
p ? A(t(o)) : Q
|
|
278
258
|
);
|
|
279
259
|
};
|
|
280
260
|
})()), K;
|
|
281
261
|
}
|
|
282
|
-
var
|
|
262
|
+
var Mt;
|
|
283
263
|
function se() {
|
|
284
|
-
return
|
|
264
|
+
return Mt || (Mt = 1, process.env.NODE_ENV === "production" ? dt.exports = oe() : dt.exports = ie()), dt.exports;
|
|
285
265
|
}
|
|
286
266
|
var ue = se();
|
|
287
267
|
const ce = ne(
|
|
@@ -342,208 +322,190 @@ function Jr({
|
|
|
342
322
|
}
|
|
343
323
|
);
|
|
344
324
|
}
|
|
345
|
-
var
|
|
346
|
-
|
|
347
|
-
* @license React
|
|
348
|
-
* react-jsx-runtime.production.js
|
|
349
|
-
*
|
|
350
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
351
|
-
*
|
|
352
|
-
* This source code is licensed under the MIT license found in the
|
|
353
|
-
* LICENSE file in the root directory of this source tree.
|
|
354
|
-
*/
|
|
355
|
-
var Ot;
|
|
325
|
+
var bt = { exports: {} }, tt = {};
|
|
326
|
+
var Tt;
|
|
356
327
|
function fe() {
|
|
357
|
-
if (
|
|
358
|
-
|
|
359
|
-
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
328
|
+
if (Tt) return tt;
|
|
329
|
+
Tt = 1;
|
|
330
|
+
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), r = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
360
331
|
function n(t, a, i) {
|
|
361
|
-
var
|
|
362
|
-
if (i !== void 0 && (
|
|
332
|
+
var u = null;
|
|
333
|
+
if (i !== void 0 && (u = "" + i), a.key !== void 0 && (u = "" + a.key), "key" in a) {
|
|
363
334
|
i = {};
|
|
364
|
-
for (var
|
|
365
|
-
|
|
335
|
+
for (var l in a)
|
|
336
|
+
l !== "key" && (i[l] = a[l]);
|
|
366
337
|
} else i = a;
|
|
367
338
|
return a = i.ref, {
|
|
368
339
|
$$typeof: e,
|
|
369
340
|
type: t,
|
|
370
|
-
key:
|
|
341
|
+
key: u,
|
|
371
342
|
ref: a !== void 0 ? a : null,
|
|
372
343
|
props: i
|
|
373
344
|
};
|
|
374
345
|
}
|
|
375
346
|
return tt.Fragment = r, tt.jsx = n, tt.jsxs = n, tt;
|
|
376
347
|
}
|
|
377
|
-
var
|
|
378
|
-
|
|
379
|
-
* @license React
|
|
380
|
-
* react-jsx-runtime.development.js
|
|
381
|
-
*
|
|
382
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
383
|
-
*
|
|
384
|
-
* This source code is licensed under the MIT license found in the
|
|
385
|
-
* LICENSE file in the root directory of this source tree.
|
|
386
|
-
*/
|
|
387
|
-
var Dt;
|
|
348
|
+
var ft = {};
|
|
349
|
+
var Ot;
|
|
388
350
|
function he() {
|
|
389
|
-
return
|
|
390
|
-
function e(
|
|
391
|
-
if (
|
|
392
|
-
if (typeof
|
|
393
|
-
return
|
|
394
|
-
if (typeof
|
|
395
|
-
switch (
|
|
396
|
-
case
|
|
351
|
+
return Ot || (Ot = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
352
|
+
function e(s) {
|
|
353
|
+
if (s == null) return null;
|
|
354
|
+
if (typeof s == "function")
|
|
355
|
+
return s.$$typeof === yt ? null : s.displayName || s.name || null;
|
|
356
|
+
if (typeof s == "string") return s;
|
|
357
|
+
switch (s) {
|
|
358
|
+
case E:
|
|
397
359
|
return "Fragment";
|
|
398
|
-
case
|
|
360
|
+
case N:
|
|
399
361
|
return "Profiler";
|
|
400
|
-
case
|
|
362
|
+
case x:
|
|
401
363
|
return "StrictMode";
|
|
402
|
-
case
|
|
364
|
+
case mt:
|
|
403
365
|
return "Suspense";
|
|
404
|
-
case ht:
|
|
405
|
-
return "SuspenseList";
|
|
406
366
|
case gt:
|
|
367
|
+
return "SuspenseList";
|
|
368
|
+
case H:
|
|
407
369
|
return "Activity";
|
|
408
370
|
}
|
|
409
|
-
if (typeof
|
|
410
|
-
switch (typeof
|
|
371
|
+
if (typeof s == "object")
|
|
372
|
+
switch (typeof s.tag == "number" && console.error(
|
|
411
373
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
412
|
-
),
|
|
413
|
-
case
|
|
374
|
+
), s.$$typeof) {
|
|
375
|
+
case R:
|
|
414
376
|
return "Portal";
|
|
415
|
-
case
|
|
416
|
-
return (
|
|
417
|
-
case
|
|
418
|
-
return (
|
|
419
|
-
case
|
|
420
|
-
var
|
|
421
|
-
return
|
|
422
|
-
case
|
|
423
|
-
return
|
|
424
|
-
case
|
|
425
|
-
|
|
377
|
+
case C:
|
|
378
|
+
return (s.displayName || "Context") + ".Provider";
|
|
379
|
+
case I:
|
|
380
|
+
return (s._context.displayName || "Context") + ".Consumer";
|
|
381
|
+
case ht:
|
|
382
|
+
var o = s.render;
|
|
383
|
+
return s = s.displayName, s || (s = o.displayName || o.name || "", s = s !== "" ? "ForwardRef(" + s + ")" : "ForwardRef"), s;
|
|
384
|
+
case pt:
|
|
385
|
+
return o = s.displayName || null, o !== null ? o : e(s.type) || "Memo";
|
|
386
|
+
case ct:
|
|
387
|
+
o = s._payload, s = s._init;
|
|
426
388
|
try {
|
|
427
|
-
return e(o
|
|
389
|
+
return e(s(o));
|
|
428
390
|
} catch {
|
|
429
391
|
}
|
|
430
392
|
}
|
|
431
393
|
return null;
|
|
432
394
|
}
|
|
433
|
-
function r(
|
|
434
|
-
return "" +
|
|
395
|
+
function r(s) {
|
|
396
|
+
return "" + s;
|
|
435
397
|
}
|
|
436
|
-
function n(
|
|
398
|
+
function n(s) {
|
|
437
399
|
try {
|
|
438
|
-
r(
|
|
439
|
-
var
|
|
400
|
+
r(s);
|
|
401
|
+
var o = !1;
|
|
440
402
|
} catch {
|
|
441
|
-
|
|
403
|
+
o = !0;
|
|
442
404
|
}
|
|
443
|
-
if (
|
|
444
|
-
|
|
445
|
-
var
|
|
446
|
-
return
|
|
447
|
-
|
|
405
|
+
if (o) {
|
|
406
|
+
o = console;
|
|
407
|
+
var c = o.error, d = typeof Symbol == "function" && Symbol.toStringTag && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
408
|
+
return c.call(
|
|
409
|
+
o,
|
|
448
410
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
449
411
|
d
|
|
450
|
-
), r(
|
|
412
|
+
), r(s);
|
|
451
413
|
}
|
|
452
414
|
}
|
|
453
|
-
function t(
|
|
454
|
-
if (
|
|
455
|
-
if (typeof
|
|
415
|
+
function t(s) {
|
|
416
|
+
if (s === E) return "<>";
|
|
417
|
+
if (typeof s == "object" && s !== null && s.$$typeof === ct)
|
|
456
418
|
return "<...>";
|
|
457
419
|
try {
|
|
458
|
-
var
|
|
459
|
-
return
|
|
420
|
+
var o = e(s);
|
|
421
|
+
return o ? "<" + o + ">" : "<...>";
|
|
460
422
|
} catch {
|
|
461
423
|
return "<...>";
|
|
462
424
|
}
|
|
463
425
|
}
|
|
464
426
|
function a() {
|
|
465
|
-
var
|
|
466
|
-
return
|
|
427
|
+
var s = q.A;
|
|
428
|
+
return s === null ? null : s.getOwner();
|
|
467
429
|
}
|
|
468
430
|
function i() {
|
|
469
431
|
return Error("react-stack-top-frame");
|
|
470
432
|
}
|
|
471
|
-
function s
|
|
472
|
-
if (
|
|
473
|
-
var
|
|
474
|
-
if (
|
|
433
|
+
function u(s) {
|
|
434
|
+
if (F.call(s, "key")) {
|
|
435
|
+
var o = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
436
|
+
if (o && o.isReactWarning) return !1;
|
|
475
437
|
}
|
|
476
|
-
return
|
|
438
|
+
return s.key !== void 0;
|
|
477
439
|
}
|
|
478
|
-
function
|
|
479
|
-
function
|
|
480
|
-
|
|
440
|
+
function l(s, o) {
|
|
441
|
+
function c() {
|
|
442
|
+
A || (A = !0, console.error(
|
|
481
443
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
482
|
-
|
|
444
|
+
o
|
|
483
445
|
));
|
|
484
446
|
}
|
|
485
|
-
|
|
486
|
-
get:
|
|
447
|
+
c.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
448
|
+
get: c,
|
|
487
449
|
configurable: !0
|
|
488
450
|
});
|
|
489
451
|
}
|
|
490
|
-
function
|
|
491
|
-
var
|
|
492
|
-
return
|
|
452
|
+
function h() {
|
|
453
|
+
var s = e(this.type);
|
|
454
|
+
return B[s] || (B[s] = !0, console.error(
|
|
493
455
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
494
|
-
)),
|
|
456
|
+
)), s = this.props.ref, s !== void 0 ? s : null;
|
|
495
457
|
}
|
|
496
|
-
function
|
|
497
|
-
return
|
|
498
|
-
$$typeof:
|
|
499
|
-
type:
|
|
500
|
-
key:
|
|
501
|
-
props:
|
|
502
|
-
_owner:
|
|
503
|
-
}, (
|
|
458
|
+
function k(s, o, c, d, p, M, Y, b) {
|
|
459
|
+
return c = M.ref, s = {
|
|
460
|
+
$$typeof: T,
|
|
461
|
+
type: s,
|
|
462
|
+
key: o,
|
|
463
|
+
props: M,
|
|
464
|
+
_owner: p
|
|
465
|
+
}, (c !== void 0 ? c : null) !== null ? Object.defineProperty(s, "ref", {
|
|
504
466
|
enumerable: !1,
|
|
505
|
-
get:
|
|
506
|
-
}) : Object.defineProperty(
|
|
467
|
+
get: h
|
|
468
|
+
}) : Object.defineProperty(s, "ref", { enumerable: !1, value: null }), s._store = {}, Object.defineProperty(s._store, "validated", {
|
|
507
469
|
configurable: !1,
|
|
508
470
|
enumerable: !1,
|
|
509
471
|
writable: !0,
|
|
510
472
|
value: 0
|
|
511
|
-
}), Object.defineProperty(
|
|
473
|
+
}), Object.defineProperty(s, "_debugInfo", {
|
|
512
474
|
configurable: !1,
|
|
513
475
|
enumerable: !1,
|
|
514
476
|
writable: !0,
|
|
515
477
|
value: null
|
|
516
|
-
}), Object.defineProperty(
|
|
478
|
+
}), Object.defineProperty(s, "_debugStack", {
|
|
517
479
|
configurable: !1,
|
|
518
480
|
enumerable: !1,
|
|
519
481
|
writable: !0,
|
|
520
482
|
value: Y
|
|
521
|
-
}), Object.defineProperty(
|
|
483
|
+
}), Object.defineProperty(s, "_debugTask", {
|
|
522
484
|
configurable: !1,
|
|
523
485
|
enumerable: !1,
|
|
524
486
|
writable: !0,
|
|
525
|
-
value:
|
|
526
|
-
}), Object.freeze && (Object.freeze(
|
|
487
|
+
value: b
|
|
488
|
+
}), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
|
|
527
489
|
}
|
|
528
|
-
function y(
|
|
529
|
-
var
|
|
530
|
-
if (
|
|
490
|
+
function y(s, o, c, d, p, M, Y, b) {
|
|
491
|
+
var v = o.children;
|
|
492
|
+
if (v !== void 0)
|
|
531
493
|
if (d)
|
|
532
|
-
if (
|
|
533
|
-
for (d = 0; d <
|
|
534
|
-
|
|
535
|
-
Object.freeze && Object.freeze(
|
|
494
|
+
if (lt(v)) {
|
|
495
|
+
for (d = 0; d < v.length; d++)
|
|
496
|
+
m(v[d]);
|
|
497
|
+
Object.freeze && Object.freeze(v);
|
|
536
498
|
} else
|
|
537
499
|
console.error(
|
|
538
500
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
539
501
|
);
|
|
540
|
-
else
|
|
541
|
-
if (
|
|
542
|
-
|
|
543
|
-
var
|
|
544
|
-
return
|
|
502
|
+
else m(v);
|
|
503
|
+
if (F.call(o, "key")) {
|
|
504
|
+
v = e(s);
|
|
505
|
+
var O = Object.keys(o).filter(function(ee) {
|
|
506
|
+
return ee !== "key";
|
|
545
507
|
});
|
|
546
|
-
d = 0 <
|
|
508
|
+
d = 0 < O.length ? "{key: someKey, " + O.join(": ..., ") + ": ...}" : "{key: someKey}", Q[v + d] || (O = 0 < O.length ? "{" + O.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
547
509
|
`A props object containing a "key" prop is being spread into JSX:
|
|
548
510
|
let props = %s;
|
|
549
511
|
<%s {...props} />
|
|
@@ -551,75 +513,75 @@ React keys must be passed directly to JSX without using spread:
|
|
|
551
513
|
let props = %s;
|
|
552
514
|
<%s key={someKey} {...props} />`,
|
|
553
515
|
d,
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
),
|
|
516
|
+
v,
|
|
517
|
+
O,
|
|
518
|
+
v
|
|
519
|
+
), Q[v + d] = !0);
|
|
558
520
|
}
|
|
559
|
-
if (
|
|
560
|
-
|
|
561
|
-
for (var
|
|
562
|
-
|
|
563
|
-
} else
|
|
564
|
-
return
|
|
565
|
-
|
|
566
|
-
typeof
|
|
567
|
-
),
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
521
|
+
if (v = null, c !== void 0 && (n(c), v = "" + c), u(o) && (n(o.key), v = "" + o.key), "key" in o) {
|
|
522
|
+
c = {};
|
|
523
|
+
for (var J in o)
|
|
524
|
+
J !== "key" && (c[J] = o[J]);
|
|
525
|
+
} else c = o;
|
|
526
|
+
return v && l(
|
|
527
|
+
c,
|
|
528
|
+
typeof s == "function" ? s.displayName || s.name || "Unknown" : s
|
|
529
|
+
), k(
|
|
530
|
+
s,
|
|
531
|
+
v,
|
|
532
|
+
M,
|
|
533
|
+
p,
|
|
572
534
|
a(),
|
|
573
|
-
|
|
535
|
+
c,
|
|
574
536
|
Y,
|
|
575
|
-
|
|
537
|
+
b
|
|
576
538
|
);
|
|
577
539
|
}
|
|
578
|
-
function
|
|
579
|
-
typeof
|
|
540
|
+
function m(s) {
|
|
541
|
+
typeof s == "object" && s !== null && s.$$typeof === T && s._store && (s._store.validated = 1);
|
|
580
542
|
}
|
|
581
|
-
var
|
|
543
|
+
var S = Rt, T = /* @__PURE__ */ Symbol.for("react.transitional.element"), R = /* @__PURE__ */ Symbol.for("react.portal"), E = /* @__PURE__ */ Symbol.for("react.fragment"), x = /* @__PURE__ */ Symbol.for("react.strict_mode"), N = /* @__PURE__ */ Symbol.for("react.profiler"), I = /* @__PURE__ */ Symbol.for("react.consumer"), C = /* @__PURE__ */ Symbol.for("react.context"), ht = /* @__PURE__ */ Symbol.for("react.forward_ref"), mt = /* @__PURE__ */ Symbol.for("react.suspense"), gt = /* @__PURE__ */ Symbol.for("react.suspense_list"), pt = /* @__PURE__ */ Symbol.for("react.memo"), ct = /* @__PURE__ */ Symbol.for("react.lazy"), H = /* @__PURE__ */ Symbol.for("react.activity"), yt = /* @__PURE__ */ Symbol.for("react.client.reference"), q = S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, lt = Array.isArray, Z = console.createTask ? console.createTask : function() {
|
|
582
544
|
return null;
|
|
583
545
|
};
|
|
584
|
-
|
|
585
|
-
react_stack_bottom_frame: function(
|
|
586
|
-
return
|
|
546
|
+
S = {
|
|
547
|
+
react_stack_bottom_frame: function(s) {
|
|
548
|
+
return s();
|
|
587
549
|
}
|
|
588
550
|
};
|
|
589
|
-
var
|
|
590
|
-
|
|
551
|
+
var A, B = {}, G = S.react_stack_bottom_frame.bind(
|
|
552
|
+
S,
|
|
591
553
|
i
|
|
592
|
-
)(),
|
|
593
|
-
|
|
594
|
-
var
|
|
554
|
+
)(), X = Z(t(i)), Q = {};
|
|
555
|
+
ft.Fragment = E, ft.jsx = function(s, o, c, d, p) {
|
|
556
|
+
var M = 1e4 > q.recentlyCreatedOwnerStacks++;
|
|
595
557
|
return y(
|
|
558
|
+
s,
|
|
596
559
|
o,
|
|
597
|
-
|
|
598
|
-
l,
|
|
560
|
+
c,
|
|
599
561
|
!1,
|
|
600
562
|
d,
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
563
|
+
p,
|
|
564
|
+
M ? Error("react-stack-top-frame") : G,
|
|
565
|
+
M ? Z(t(s)) : X
|
|
604
566
|
);
|
|
605
|
-
},
|
|
606
|
-
var
|
|
567
|
+
}, ft.jsxs = function(s, o, c, d, p) {
|
|
568
|
+
var M = 1e4 > q.recentlyCreatedOwnerStacks++;
|
|
607
569
|
return y(
|
|
570
|
+
s,
|
|
608
571
|
o,
|
|
609
|
-
|
|
610
|
-
l,
|
|
572
|
+
c,
|
|
611
573
|
!0,
|
|
612
574
|
d,
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
575
|
+
p,
|
|
576
|
+
M ? Error("react-stack-top-frame") : G,
|
|
577
|
+
M ? Z(t(s)) : X
|
|
616
578
|
);
|
|
617
579
|
};
|
|
618
|
-
})()),
|
|
580
|
+
})()), ft;
|
|
619
581
|
}
|
|
620
|
-
var
|
|
582
|
+
var Dt;
|
|
621
583
|
function me() {
|
|
622
|
-
return
|
|
584
|
+
return Dt || (Dt = 1, process.env.NODE_ENV === "production" ? bt.exports = fe() : bt.exports = he()), bt.exports;
|
|
623
585
|
}
|
|
624
586
|
me();
|
|
625
587
|
const ge = {
|
|
@@ -629,7 +591,7 @@ const ge = {
|
|
|
629
591
|
created_at: null,
|
|
630
592
|
updated_at: null,
|
|
631
593
|
features: []
|
|
632
|
-
}, pe =
|
|
594
|
+
}, pe = Ft({
|
|
633
595
|
user: ge,
|
|
634
596
|
isLoading: !0,
|
|
635
597
|
fetchUser: async () => {
|
|
@@ -639,9 +601,9 @@ const ge = {
|
|
|
639
601
|
login: async () => !1
|
|
640
602
|
});
|
|
641
603
|
function Vr() {
|
|
642
|
-
return
|
|
604
|
+
return At(pe);
|
|
643
605
|
}
|
|
644
|
-
function
|
|
606
|
+
function vt(e) {
|
|
645
607
|
return (r = {}) => {
|
|
646
608
|
const n = r.width ? String(r.width) : e.defaultWidth;
|
|
647
609
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
@@ -652,11 +614,11 @@ function et(e) {
|
|
|
652
614
|
const t = n?.context ? String(n.context) : "standalone";
|
|
653
615
|
let a;
|
|
654
616
|
if (t === "formatting" && e.formattingValues) {
|
|
655
|
-
const
|
|
656
|
-
a = e.formattingValues[
|
|
617
|
+
const u = e.defaultFormattingWidth || e.defaultWidth, l = n?.width ? String(n.width) : u;
|
|
618
|
+
a = e.formattingValues[l] || e.formattingValues[u];
|
|
657
619
|
} else {
|
|
658
|
-
const
|
|
659
|
-
a = e.values[
|
|
620
|
+
const u = e.defaultWidth, l = n?.width ? String(n.width) : e.defaultWidth;
|
|
621
|
+
a = e.values[l] || e.values[u];
|
|
660
622
|
}
|
|
661
623
|
const i = e.argumentCallback ? e.argumentCallback(r) : r;
|
|
662
624
|
return a[i];
|
|
@@ -667,17 +629,17 @@ function rt(e) {
|
|
|
667
629
|
const t = n.width, a = t && e.matchPatterns[t] || e.matchPatterns[e.defaultMatchWidth], i = r.match(a);
|
|
668
630
|
if (!i)
|
|
669
631
|
return null;
|
|
670
|
-
const
|
|
632
|
+
const u = i[0], l = t && e.parsePatterns[t] || e.parsePatterns[e.defaultParseWidth], h = Array.isArray(l) ? be(l, (m) => m.test(u)) : (
|
|
671
633
|
// [TODO] -- I challenge you to fix the type
|
|
672
|
-
ye(
|
|
634
|
+
ye(l, (m) => m.test(u))
|
|
673
635
|
);
|
|
674
|
-
let
|
|
675
|
-
|
|
636
|
+
let k;
|
|
637
|
+
k = e.valueCallback ? e.valueCallback(h) : h, k = n.valueCallback ? (
|
|
676
638
|
// [TODO] -- I challenge you to fix the type
|
|
677
|
-
n.valueCallback(
|
|
678
|
-
) :
|
|
679
|
-
const y = r.slice(
|
|
680
|
-
return { value:
|
|
639
|
+
n.valueCallback(k)
|
|
640
|
+
) : k;
|
|
641
|
+
const y = r.slice(u.length);
|
|
642
|
+
return { value: k, rest: y };
|
|
681
643
|
};
|
|
682
644
|
}
|
|
683
645
|
function ye(e, r) {
|
|
@@ -696,18 +658,18 @@ function ve(e) {
|
|
|
696
658
|
if (!t) return null;
|
|
697
659
|
const a = t[0], i = r.match(e.parsePattern);
|
|
698
660
|
if (!i) return null;
|
|
699
|
-
let
|
|
700
|
-
|
|
701
|
-
const
|
|
702
|
-
return { value:
|
|
661
|
+
let u = e.valueCallback ? e.valueCallback(i[0]) : i[0];
|
|
662
|
+
u = n.valueCallback ? n.valueCallback(u) : u;
|
|
663
|
+
const l = r.slice(a.length);
|
|
664
|
+
return { value: u, rest: l };
|
|
703
665
|
};
|
|
704
666
|
}
|
|
705
|
-
const
|
|
706
|
-
function
|
|
707
|
-
return typeof e == "function" ? e(r) : e && typeof e == "object" &&
|
|
667
|
+
const Lt = 6048e5, we = 864e5, xt = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
668
|
+
function w(e, r) {
|
|
669
|
+
return typeof e == "function" ? e(r) : e && typeof e == "object" && xt in e ? e[xt](r) : e instanceof Date ? new e.constructor(r) : new Date(r);
|
|
708
670
|
}
|
|
709
671
|
function U(e, ...r) {
|
|
710
|
-
const n =
|
|
672
|
+
const n = w.bind(
|
|
711
673
|
null,
|
|
712
674
|
r.find((t) => typeof t == "object")
|
|
713
675
|
);
|
|
@@ -717,12 +679,12 @@ let ke = {};
|
|
|
717
679
|
function ut() {
|
|
718
680
|
return ke;
|
|
719
681
|
}
|
|
720
|
-
function
|
|
721
|
-
return
|
|
682
|
+
function g(e, r) {
|
|
683
|
+
return w(r || e, e);
|
|
722
684
|
}
|
|
723
685
|
function z(e, r) {
|
|
724
|
-
const n = ut(), t = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, a =
|
|
725
|
-
return a.setDate(a.getDate() -
|
|
686
|
+
const n = ut(), t = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, a = g(e, r?.in), i = a.getDay(), u = (i < t ? 7 : 0) + i - t;
|
|
687
|
+
return a.setDate(a.getDate() - u), a.setHours(0, 0, 0, 0), a;
|
|
726
688
|
}
|
|
727
689
|
const Se = {
|
|
728
690
|
lessThanXSeconds: {
|
|
@@ -957,9 +919,9 @@ const Se = {
|
|
|
957
919
|
narrow: /^[1234]/i,
|
|
958
920
|
abbreviated: /^q[1234]/i,
|
|
959
921
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
960
|
-
}, Le = {
|
|
961
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
962
922
|
}, $e = {
|
|
923
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
924
|
+
}, Le = {
|
|
963
925
|
narrow: /^[jfmasond]/i,
|
|
964
926
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
965
927
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
@@ -1029,12 +991,12 @@ const Se = {
|
|
|
1029
991
|
quarter: rt({
|
|
1030
992
|
matchPatterns: Ae,
|
|
1031
993
|
defaultMatchWidth: "wide",
|
|
1032
|
-
parsePatterns:
|
|
994
|
+
parsePatterns: $e,
|
|
1033
995
|
defaultParseWidth: "any",
|
|
1034
996
|
valueCallback: (e) => e + 1
|
|
1035
997
|
}),
|
|
1036
998
|
month: rt({
|
|
1037
|
-
matchPatterns:
|
|
999
|
+
matchPatterns: Le,
|
|
1038
1000
|
defaultMatchWidth: "wide",
|
|
1039
1001
|
parsePatterns: ze,
|
|
1040
1002
|
defaultParseWidth: "any"
|
|
@@ -1067,19 +1029,19 @@ const Se = {
|
|
|
1067
1029
|
medium: "{{date}}, {{time}}",
|
|
1068
1030
|
short: "{{date}}, {{time}}"
|
|
1069
1031
|
}, Qe = {
|
|
1070
|
-
date:
|
|
1032
|
+
date: vt({
|
|
1071
1033
|
formats: Be,
|
|
1072
1034
|
defaultWidth: "full"
|
|
1073
1035
|
}),
|
|
1074
|
-
time:
|
|
1036
|
+
time: vt({
|
|
1075
1037
|
formats: Ge,
|
|
1076
1038
|
defaultWidth: "full"
|
|
1077
1039
|
}),
|
|
1078
|
-
dateTime:
|
|
1040
|
+
dateTime: vt({
|
|
1079
1041
|
formats: Xe,
|
|
1080
1042
|
defaultWidth: "full"
|
|
1081
1043
|
})
|
|
1082
|
-
},
|
|
1044
|
+
}, L = {
|
|
1083
1045
|
code: "en-US",
|
|
1084
1046
|
formatDistance: Me,
|
|
1085
1047
|
formatLong: Qe,
|
|
@@ -1100,93 +1062,93 @@ function Je(e, r, n = "long") {
|
|
|
1100
1062
|
}).format(r).split(/\s/g).slice(2).join(" ");
|
|
1101
1063
|
}
|
|
1102
1064
|
const Ve = {}, nt = {};
|
|
1103
|
-
function
|
|
1065
|
+
function j(e, r) {
|
|
1104
1066
|
try {
|
|
1105
1067
|
const n = (Ve[e] ||= new Intl.DateTimeFormat("en-US", {
|
|
1106
1068
|
timeZone: e,
|
|
1107
1069
|
timeZoneName: "longOffset"
|
|
1108
1070
|
}).format)(r).split("GMT")[1];
|
|
1109
|
-
return n in nt ? nt[n] :
|
|
1071
|
+
return n in nt ? nt[n] : Pt(n, n.split(":"));
|
|
1110
1072
|
} catch {
|
|
1111
1073
|
if (e in nt) return nt[e];
|
|
1112
1074
|
const n = e?.match(Ke);
|
|
1113
|
-
return n ?
|
|
1075
|
+
return n ? Pt(e, n.slice(1)) : NaN;
|
|
1114
1076
|
}
|
|
1115
1077
|
}
|
|
1116
1078
|
const Ke = /([+-]\d\d):?(\d\d)?/;
|
|
1117
|
-
function
|
|
1079
|
+
function Pt(e, r) {
|
|
1118
1080
|
const n = +(r[0] || 0), t = +(r[1] || 0), a = +(r[2] || 0) / 60;
|
|
1119
1081
|
return nt[e] = n * 60 + t > 0 ? n * 60 + t + a : n * 60 - t - a;
|
|
1120
1082
|
}
|
|
1121
|
-
class
|
|
1083
|
+
class D extends Date {
|
|
1122
1084
|
//#region static
|
|
1123
1085
|
constructor(...r) {
|
|
1124
|
-
super(), r.length > 1 && typeof r[r.length - 1] == "string" && (this.timeZone = r.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(
|
|
1086
|
+
super(), r.length > 1 && typeof r[r.length - 1] == "string" && (this.timeZone = r.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(j(this.timeZone, this)) ? this.setTime(NaN) : r.length ? typeof r[0] == "number" && (r.length === 1 || r.length === 2 && typeof r[1] != "number") ? this.setTime(r[0]) : typeof r[0] == "string" ? this.setTime(+new Date(r[0])) : r[0] instanceof Date ? this.setTime(+r[0]) : (this.setTime(+new Date(...r)), zt(this), wt(this)) : this.setTime(Date.now());
|
|
1125
1087
|
}
|
|
1126
1088
|
static tz(r, ...n) {
|
|
1127
|
-
return n.length ? new
|
|
1089
|
+
return n.length ? new D(...n, r) : new D(Date.now(), r);
|
|
1128
1090
|
}
|
|
1129
1091
|
//#endregion
|
|
1130
1092
|
//#region time zone
|
|
1131
1093
|
withTimeZone(r) {
|
|
1132
|
-
return new
|
|
1094
|
+
return new D(+this, r);
|
|
1133
1095
|
}
|
|
1134
1096
|
getTimezoneOffset() {
|
|
1135
|
-
const r = -
|
|
1097
|
+
const r = -j(this.timeZone, this);
|
|
1136
1098
|
return r > 0 ? Math.floor(r) : Math.ceil(r);
|
|
1137
1099
|
}
|
|
1138
1100
|
//#endregion
|
|
1139
1101
|
//#region time
|
|
1140
1102
|
setTime(r) {
|
|
1141
|
-
return Date.prototype.setTime.apply(this, arguments),
|
|
1103
|
+
return Date.prototype.setTime.apply(this, arguments), wt(this), +this;
|
|
1142
1104
|
}
|
|
1143
1105
|
//#endregion
|
|
1144
1106
|
//#region date-fns integration
|
|
1145
|
-
[Symbol.for("constructDateFrom")](r) {
|
|
1146
|
-
return new
|
|
1107
|
+
[/* @__PURE__ */ Symbol.for("constructDateFrom")](r) {
|
|
1108
|
+
return new D(+new Date(r), this.timeZone);
|
|
1147
1109
|
}
|
|
1148
1110
|
//#endregion
|
|
1149
1111
|
}
|
|
1150
|
-
const
|
|
1112
|
+
const Et = /^(get|set)(?!UTC)/;
|
|
1151
1113
|
Object.getOwnPropertyNames(Date.prototype).forEach((e) => {
|
|
1152
|
-
if (!
|
|
1153
|
-
const r = e.replace(
|
|
1154
|
-
|
|
1114
|
+
if (!Et.test(e)) return;
|
|
1115
|
+
const r = e.replace(Et, "$1UTC");
|
|
1116
|
+
D.prototype[r] && (e.startsWith("get") ? D.prototype[e] = function() {
|
|
1155
1117
|
return this.internal[r]();
|
|
1156
|
-
} : (
|
|
1118
|
+
} : (D.prototype[e] = function() {
|
|
1157
1119
|
return Date.prototype[r].apply(this.internal, arguments), tr(this), +this;
|
|
1158
|
-
},
|
|
1159
|
-
return Date.prototype[r].apply(this, arguments),
|
|
1120
|
+
}, D.prototype[r] = function() {
|
|
1121
|
+
return Date.prototype[r].apply(this, arguments), wt(this), +this;
|
|
1160
1122
|
}));
|
|
1161
1123
|
});
|
|
1162
|
-
function
|
|
1163
|
-
e.internal.setTime(+e), e.internal.setUTCSeconds(e.internal.getUTCSeconds() - Math.round(-
|
|
1124
|
+
function wt(e) {
|
|
1125
|
+
e.internal.setTime(+e), e.internal.setUTCSeconds(e.internal.getUTCSeconds() - Math.round(-j(e.timeZone, e) * 60));
|
|
1164
1126
|
}
|
|
1165
1127
|
function tr(e) {
|
|
1166
|
-
Date.prototype.setFullYear.call(e, e.internal.getUTCFullYear(), e.internal.getUTCMonth(), e.internal.getUTCDate()), Date.prototype.setHours.call(e, e.internal.getUTCHours(), e.internal.getUTCMinutes(), e.internal.getUTCSeconds(), e.internal.getUTCMilliseconds()),
|
|
1128
|
+
Date.prototype.setFullYear.call(e, e.internal.getUTCFullYear(), e.internal.getUTCMonth(), e.internal.getUTCDate()), Date.prototype.setHours.call(e, e.internal.getUTCHours(), e.internal.getUTCMinutes(), e.internal.getUTCSeconds(), e.internal.getUTCMilliseconds()), zt(e);
|
|
1167
1129
|
}
|
|
1168
|
-
function
|
|
1169
|
-
const r =
|
|
1130
|
+
function zt(e) {
|
|
1131
|
+
const r = j(e.timeZone, e), n = r > 0 ? Math.floor(r) : Math.ceil(r), t = /* @__PURE__ */ new Date(+e);
|
|
1170
1132
|
t.setUTCHours(t.getUTCHours() - 1);
|
|
1171
|
-
const a = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset(), i = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset(),
|
|
1172
|
-
|
|
1173
|
-
const
|
|
1174
|
-
|
|
1175
|
-
const
|
|
1176
|
-
|
|
1177
|
-
const y = a > 0 ?
|
|
1178
|
-
(
|
|
1179
|
-
const
|
|
1180
|
-
if (
|
|
1181
|
-
Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) +
|
|
1182
|
-
const
|
|
1183
|
-
|
|
1133
|
+
const a = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset(), i = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset(), u = a - i, l = Date.prototype.getHours.apply(e) !== e.internal.getUTCHours();
|
|
1134
|
+
u && l && e.internal.setUTCMinutes(e.internal.getUTCMinutes() + u);
|
|
1135
|
+
const h = a - n;
|
|
1136
|
+
h && Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + h);
|
|
1137
|
+
const k = /* @__PURE__ */ new Date(+e);
|
|
1138
|
+
k.setUTCSeconds(0);
|
|
1139
|
+
const y = a > 0 ? k.getSeconds() : (k.getSeconds() - 60) % 60, m = Math.round(-(j(e.timeZone, e) * 60)) % 60;
|
|
1140
|
+
(m || y) && (e.internal.setUTCSeconds(e.internal.getUTCSeconds() + m), Date.prototype.setUTCSeconds.call(e, Date.prototype.getUTCSeconds.call(e) + m + y));
|
|
1141
|
+
const S = j(e.timeZone, e), T = S > 0 ? Math.floor(S) : Math.ceil(S), R = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - T, E = T !== n, x = R - h;
|
|
1142
|
+
if (E && x) {
|
|
1143
|
+
Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + x);
|
|
1144
|
+
const N = j(e.timeZone, e), I = N > 0 ? Math.floor(N) : Math.ceil(N), C = T - I;
|
|
1145
|
+
C && (e.internal.setUTCMinutes(e.internal.getUTCMinutes() + C), Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + C));
|
|
1184
1146
|
}
|
|
1185
1147
|
}
|
|
1186
|
-
class
|
|
1148
|
+
class W extends D {
|
|
1187
1149
|
//#region static
|
|
1188
1150
|
static tz(r, ...n) {
|
|
1189
|
-
return n.length ? new
|
|
1151
|
+
return n.length ? new W(...n, r) : new W(Date.now(), r);
|
|
1190
1152
|
}
|
|
1191
1153
|
//#endregion
|
|
1192
1154
|
//#region representation
|
|
@@ -1231,27 +1193,27 @@ class F extends T {
|
|
|
1231
1193
|
}
|
|
1232
1194
|
//#endregion
|
|
1233
1195
|
withTimeZone(r) {
|
|
1234
|
-
return new
|
|
1196
|
+
return new W(+this, r);
|
|
1235
1197
|
}
|
|
1236
1198
|
//#region date-fns integration
|
|
1237
|
-
[Symbol.for("constructDateFrom")](r) {
|
|
1238
|
-
return new
|
|
1199
|
+
[/* @__PURE__ */ Symbol.for("constructDateFrom")](r) {
|
|
1200
|
+
return new W(+new Date(r), this.timeZone);
|
|
1239
1201
|
}
|
|
1240
1202
|
//#endregion
|
|
1241
1203
|
}
|
|
1242
|
-
function
|
|
1243
|
-
const t =
|
|
1244
|
-
return isNaN(r) ?
|
|
1204
|
+
function Ut(e, r, n) {
|
|
1205
|
+
const t = g(e, n?.in);
|
|
1206
|
+
return isNaN(r) ? w(e, NaN) : (r && t.setDate(t.getDate() + r), t);
|
|
1245
1207
|
}
|
|
1246
|
-
function
|
|
1247
|
-
const t =
|
|
1248
|
-
if (isNaN(r)) return
|
|
1208
|
+
function It(e, r, n) {
|
|
1209
|
+
const t = g(e, n?.in);
|
|
1210
|
+
if (isNaN(r)) return w(e, NaN);
|
|
1249
1211
|
if (!r)
|
|
1250
1212
|
return t;
|
|
1251
|
-
const a = t.getDate(), i =
|
|
1213
|
+
const a = t.getDate(), i = w(e, t.getTime());
|
|
1252
1214
|
i.setMonth(t.getMonth() + r + 1, 0);
|
|
1253
|
-
const
|
|
1254
|
-
return a >=
|
|
1215
|
+
const u = i.getDate();
|
|
1216
|
+
return a >= u ? i : (t.setFullYear(
|
|
1255
1217
|
i.getFullYear(),
|
|
1256
1218
|
i.getMonth(),
|
|
1257
1219
|
a
|
|
@@ -1260,16 +1222,16 @@ function Ht(e, r, n) {
|
|
|
1260
1222
|
function ot(e, r) {
|
|
1261
1223
|
return z(e, { ...r, weekStartsOn: 1 });
|
|
1262
1224
|
}
|
|
1263
|
-
function
|
|
1264
|
-
const n =
|
|
1225
|
+
function Ht(e, r) {
|
|
1226
|
+
const n = g(e, r?.in), t = n.getFullYear(), a = w(n, 0);
|
|
1265
1227
|
a.setFullYear(t + 1, 0, 4), a.setHours(0, 0, 0, 0);
|
|
1266
|
-
const i = ot(a),
|
|
1267
|
-
|
|
1268
|
-
const
|
|
1269
|
-
return n.getTime() >= i.getTime() ? t + 1 : n.getTime() >=
|
|
1228
|
+
const i = ot(a), u = w(n, 0);
|
|
1229
|
+
u.setFullYear(t, 0, 4), u.setHours(0, 0, 0, 0);
|
|
1230
|
+
const l = ot(u);
|
|
1231
|
+
return n.getTime() >= i.getTime() ? t + 1 : n.getTime() >= l.getTime() ? t : t - 1;
|
|
1270
1232
|
}
|
|
1271
|
-
function
|
|
1272
|
-
const r =
|
|
1233
|
+
function Nt(e) {
|
|
1234
|
+
const r = g(e), n = new Date(
|
|
1273
1235
|
Date.UTC(
|
|
1274
1236
|
r.getFullYear(),
|
|
1275
1237
|
r.getMonth(),
|
|
@@ -1283,42 +1245,42 @@ function Ct(e) {
|
|
|
1283
1245
|
return n.setUTCFullYear(r.getFullYear()), +e - +n;
|
|
1284
1246
|
}
|
|
1285
1247
|
function it(e, r) {
|
|
1286
|
-
const n =
|
|
1248
|
+
const n = g(e, r?.in);
|
|
1287
1249
|
return n.setHours(0, 0, 0, 0), n;
|
|
1288
1250
|
}
|
|
1289
|
-
function
|
|
1251
|
+
function qt(e, r, n) {
|
|
1290
1252
|
const [t, a] = U(
|
|
1291
1253
|
n?.in,
|
|
1292
1254
|
e,
|
|
1293
1255
|
r
|
|
1294
|
-
), i = it(t),
|
|
1295
|
-
return Math.round((
|
|
1256
|
+
), i = it(t), u = it(a), l = +i - Nt(i), h = +u - Nt(u);
|
|
1257
|
+
return Math.round((l - h) / we);
|
|
1296
1258
|
}
|
|
1297
1259
|
function er(e, r) {
|
|
1298
|
-
const n =
|
|
1260
|
+
const n = Ht(e, r), t = w(e, 0);
|
|
1299
1261
|
return t.setFullYear(n, 0, 4), t.setHours(0, 0, 0, 0), ot(t);
|
|
1300
1262
|
}
|
|
1301
1263
|
function rr(e, r, n) {
|
|
1302
|
-
return
|
|
1264
|
+
return Ut(e, r * 7, n);
|
|
1303
1265
|
}
|
|
1304
1266
|
function nr(e, r, n) {
|
|
1305
|
-
return
|
|
1267
|
+
return It(e, r * 12, n);
|
|
1306
1268
|
}
|
|
1307
1269
|
function ar(e, r) {
|
|
1308
1270
|
let n, t = r?.in;
|
|
1309
1271
|
return e.forEach((a) => {
|
|
1310
|
-
!t && typeof a == "object" && (t =
|
|
1311
|
-
const i =
|
|
1272
|
+
!t && typeof a == "object" && (t = w.bind(null, a));
|
|
1273
|
+
const i = g(a, t);
|
|
1312
1274
|
(!n || n < i || isNaN(+i)) && (n = i);
|
|
1313
|
-
}),
|
|
1275
|
+
}), w(t, n || NaN);
|
|
1314
1276
|
}
|
|
1315
1277
|
function or(e, r) {
|
|
1316
1278
|
let n, t = r?.in;
|
|
1317
1279
|
return e.forEach((a) => {
|
|
1318
|
-
!t && typeof a == "object" && (t =
|
|
1319
|
-
const i =
|
|
1280
|
+
!t && typeof a == "object" && (t = w.bind(null, a));
|
|
1281
|
+
const i = g(a, t);
|
|
1320
1282
|
(!n || n > i || isNaN(+i)) && (n = i);
|
|
1321
|
-
}),
|
|
1283
|
+
}), w(t, n || NaN);
|
|
1322
1284
|
}
|
|
1323
1285
|
function ir(e, r, n) {
|
|
1324
1286
|
const [t, a] = U(
|
|
@@ -1328,111 +1290,111 @@ function ir(e, r, n) {
|
|
|
1328
1290
|
);
|
|
1329
1291
|
return +it(t) == +it(a);
|
|
1330
1292
|
}
|
|
1331
|
-
function
|
|
1293
|
+
function Zt(e) {
|
|
1332
1294
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
1333
1295
|
}
|
|
1334
1296
|
function sr(e) {
|
|
1335
|
-
return !(!
|
|
1297
|
+
return !(!Zt(e) && typeof e != "number" || isNaN(+g(e)));
|
|
1336
1298
|
}
|
|
1337
1299
|
function ur(e, r, n) {
|
|
1338
1300
|
const [t, a] = U(
|
|
1339
1301
|
n?.in,
|
|
1340
1302
|
e,
|
|
1341
1303
|
r
|
|
1342
|
-
), i = t.getFullYear() - a.getFullYear(),
|
|
1343
|
-
return i * 12 +
|
|
1304
|
+
), i = t.getFullYear() - a.getFullYear(), u = t.getMonth() - a.getMonth();
|
|
1305
|
+
return i * 12 + u;
|
|
1344
1306
|
}
|
|
1345
1307
|
function cr(e, r) {
|
|
1346
|
-
const n =
|
|
1308
|
+
const n = g(e, r?.in), t = n.getMonth();
|
|
1347
1309
|
return n.setFullYear(n.getFullYear(), t + 1, 0), n.setHours(23, 59, 59, 999), n;
|
|
1348
1310
|
}
|
|
1349
|
-
function
|
|
1311
|
+
function Bt(e, r) {
|
|
1350
1312
|
const [n, t] = U(e, r.start, r.end);
|
|
1351
1313
|
return { start: n, end: t };
|
|
1352
1314
|
}
|
|
1353
1315
|
function lr(e, r) {
|
|
1354
|
-
const { start: n, end: t } =
|
|
1316
|
+
const { start: n, end: t } = Bt(r?.in, e);
|
|
1355
1317
|
let a = +n > +t;
|
|
1356
|
-
const i = a ? +n : +t,
|
|
1357
|
-
|
|
1358
|
-
let
|
|
1359
|
-
const
|
|
1360
|
-
for (; +
|
|
1361
|
-
|
|
1362
|
-
return a ?
|
|
1318
|
+
const i = a ? +n : +t, u = a ? t : n;
|
|
1319
|
+
u.setHours(0, 0, 0, 0), u.setDate(1);
|
|
1320
|
+
let l = 1;
|
|
1321
|
+
const h = [];
|
|
1322
|
+
for (; +u <= i; )
|
|
1323
|
+
h.push(w(n, u)), u.setMonth(u.getMonth() + l);
|
|
1324
|
+
return a ? h.reverse() : h;
|
|
1363
1325
|
}
|
|
1364
1326
|
function dr(e, r) {
|
|
1365
|
-
const n =
|
|
1327
|
+
const n = g(e, r?.in);
|
|
1366
1328
|
return n.setDate(1), n.setHours(0, 0, 0, 0), n;
|
|
1367
1329
|
}
|
|
1368
1330
|
function fr(e, r) {
|
|
1369
|
-
const n =
|
|
1331
|
+
const n = g(e, r?.in), t = n.getFullYear();
|
|
1370
1332
|
return n.setFullYear(t + 1, 0, 0), n.setHours(23, 59, 59, 999), n;
|
|
1371
1333
|
}
|
|
1372
|
-
function
|
|
1373
|
-
const n =
|
|
1334
|
+
function Gt(e, r) {
|
|
1335
|
+
const n = g(e, r?.in);
|
|
1374
1336
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
1375
1337
|
}
|
|
1376
1338
|
function hr(e, r) {
|
|
1377
|
-
const { start: n, end: t } =
|
|
1339
|
+
const { start: n, end: t } = Bt(r?.in, e);
|
|
1378
1340
|
let a = +n > +t;
|
|
1379
|
-
const i = a ? +n : +t,
|
|
1380
|
-
|
|
1381
|
-
let
|
|
1382
|
-
const
|
|
1383
|
-
for (; +
|
|
1384
|
-
|
|
1385
|
-
return a ?
|
|
1341
|
+
const i = a ? +n : +t, u = a ? t : n;
|
|
1342
|
+
u.setHours(0, 0, 0, 0), u.setMonth(0, 1);
|
|
1343
|
+
let l = 1;
|
|
1344
|
+
const h = [];
|
|
1345
|
+
for (; +u <= i; )
|
|
1346
|
+
h.push(w(n, u)), u.setFullYear(u.getFullYear() + l);
|
|
1347
|
+
return a ? h.reverse() : h;
|
|
1386
1348
|
}
|
|
1387
|
-
function
|
|
1388
|
-
const n = ut(), t = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, a =
|
|
1389
|
-
return a.setDate(a.getDate() +
|
|
1349
|
+
function Xt(e, r) {
|
|
1350
|
+
const n = ut(), t = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, a = g(e, r?.in), i = a.getDay(), u = (i < t ? -7 : 0) + 6 - (i - t);
|
|
1351
|
+
return a.setDate(a.getDate() + u), a.setHours(23, 59, 59, 999), a;
|
|
1390
1352
|
}
|
|
1391
1353
|
function mr(e, r) {
|
|
1392
|
-
return
|
|
1354
|
+
return Xt(e, { ...r, weekStartsOn: 1 });
|
|
1393
1355
|
}
|
|
1394
1356
|
function gr(e, r) {
|
|
1395
|
-
const n =
|
|
1396
|
-
return
|
|
1357
|
+
const n = g(e, r?.in);
|
|
1358
|
+
return qt(n, Gt(n)) + 1;
|
|
1397
1359
|
}
|
|
1398
|
-
function
|
|
1399
|
-
const n =
|
|
1400
|
-
return Math.round(t /
|
|
1360
|
+
function Qt(e, r) {
|
|
1361
|
+
const n = g(e, r?.in), t = +ot(n) - +er(n);
|
|
1362
|
+
return Math.round(t / Lt) + 1;
|
|
1401
1363
|
}
|
|
1402
|
-
function
|
|
1403
|
-
const n =
|
|
1404
|
-
|
|
1405
|
-
const
|
|
1406
|
-
|
|
1407
|
-
const
|
|
1408
|
-
return +n >= +
|
|
1364
|
+
function Jt(e, r) {
|
|
1365
|
+
const n = g(e, r?.in), t = n.getFullYear(), a = ut(), i = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, u = w(r?.in || e, 0);
|
|
1366
|
+
u.setFullYear(t + 1, 0, i), u.setHours(0, 0, 0, 0);
|
|
1367
|
+
const l = z(u, r), h = w(r?.in || e, 0);
|
|
1368
|
+
h.setFullYear(t, 0, i), h.setHours(0, 0, 0, 0);
|
|
1369
|
+
const k = z(h, r);
|
|
1370
|
+
return +n >= +l ? t + 1 : +n >= +k ? t : t - 1;
|
|
1409
1371
|
}
|
|
1410
1372
|
function pr(e, r) {
|
|
1411
|
-
const n = ut(), t = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, a =
|
|
1373
|
+
const n = ut(), t = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, a = Jt(e, r), i = w(r?.in || e, 0);
|
|
1412
1374
|
return i.setFullYear(a, 0, t), i.setHours(0, 0, 0, 0), z(i, r);
|
|
1413
1375
|
}
|
|
1414
|
-
function
|
|
1415
|
-
const n =
|
|
1416
|
-
return Math.round(t /
|
|
1376
|
+
function Vt(e, r) {
|
|
1377
|
+
const n = g(e, r?.in), t = +z(n, r) - +pr(n, r);
|
|
1378
|
+
return Math.round(t / Lt) + 1;
|
|
1417
1379
|
}
|
|
1418
|
-
function
|
|
1380
|
+
function f(e, r) {
|
|
1419
1381
|
const n = e < 0 ? "-" : "", t = Math.abs(e).toString().padStart(r, "0");
|
|
1420
1382
|
return n + t;
|
|
1421
1383
|
}
|
|
1422
|
-
const
|
|
1384
|
+
const P = {
|
|
1423
1385
|
// Year
|
|
1424
1386
|
y(e, r) {
|
|
1425
1387
|
const n = e.getFullYear(), t = n > 0 ? n : 1 - n;
|
|
1426
|
-
return
|
|
1388
|
+
return f(r === "yy" ? t % 100 : t, r.length);
|
|
1427
1389
|
},
|
|
1428
1390
|
// Month
|
|
1429
1391
|
M(e, r) {
|
|
1430
1392
|
const n = e.getMonth();
|
|
1431
|
-
return r === "M" ? String(n + 1) :
|
|
1393
|
+
return r === "M" ? String(n + 1) : f(n + 1, 2);
|
|
1432
1394
|
},
|
|
1433
1395
|
// Day of the month
|
|
1434
1396
|
d(e, r) {
|
|
1435
|
-
return
|
|
1397
|
+
return f(e.getDate(), r.length);
|
|
1436
1398
|
},
|
|
1437
1399
|
// AM or PM
|
|
1438
1400
|
a(e, r) {
|
|
@@ -1445,42 +1407,41 @@ const x = {
|
|
|
1445
1407
|
return n;
|
|
1446
1408
|
case "aaaaa":
|
|
1447
1409
|
return n[0];
|
|
1448
|
-
case "aaaa":
|
|
1449
1410
|
default:
|
|
1450
1411
|
return n === "am" ? "a.m." : "p.m.";
|
|
1451
1412
|
}
|
|
1452
1413
|
},
|
|
1453
1414
|
// Hour [1-12]
|
|
1454
1415
|
h(e, r) {
|
|
1455
|
-
return
|
|
1416
|
+
return f(e.getHours() % 12 || 12, r.length);
|
|
1456
1417
|
},
|
|
1457
1418
|
// Hour [0-23]
|
|
1458
1419
|
H(e, r) {
|
|
1459
|
-
return
|
|
1420
|
+
return f(e.getHours(), r.length);
|
|
1460
1421
|
},
|
|
1461
1422
|
// Minute
|
|
1462
1423
|
m(e, r) {
|
|
1463
|
-
return
|
|
1424
|
+
return f(e.getMinutes(), r.length);
|
|
1464
1425
|
},
|
|
1465
1426
|
// Second
|
|
1466
1427
|
s(e, r) {
|
|
1467
|
-
return
|
|
1428
|
+
return f(e.getSeconds(), r.length);
|
|
1468
1429
|
},
|
|
1469
1430
|
// Fraction of second
|
|
1470
1431
|
S(e, r) {
|
|
1471
1432
|
const n = r.length, t = e.getMilliseconds(), a = Math.trunc(
|
|
1472
1433
|
t * Math.pow(10, n - 3)
|
|
1473
1434
|
);
|
|
1474
|
-
return
|
|
1435
|
+
return f(a, r.length);
|
|
1475
1436
|
}
|
|
1476
|
-
},
|
|
1437
|
+
}, $ = {
|
|
1477
1438
|
midnight: "midnight",
|
|
1478
1439
|
noon: "noon",
|
|
1479
1440
|
morning: "morning",
|
|
1480
1441
|
afternoon: "afternoon",
|
|
1481
1442
|
evening: "evening",
|
|
1482
1443
|
night: "night"
|
|
1483
|
-
},
|
|
1444
|
+
}, Ct = {
|
|
1484
1445
|
// Era
|
|
1485
1446
|
G: function(e, r, n) {
|
|
1486
1447
|
const t = e.getFullYear() > 0 ? 1 : 0;
|
|
@@ -1493,8 +1454,6 @@ const x = {
|
|
|
1493
1454
|
// A, B
|
|
1494
1455
|
case "GGGGG":
|
|
1495
1456
|
return n.era(t, { width: "narrow" });
|
|
1496
|
-
// Anno Domini, Before Christ
|
|
1497
|
-
case "GGGG":
|
|
1498
1457
|
default:
|
|
1499
1458
|
return n.era(t, { width: "wide" });
|
|
1500
1459
|
}
|
|
@@ -1505,21 +1464,21 @@ const x = {
|
|
|
1505
1464
|
const t = e.getFullYear(), a = t > 0 ? t : 1 - t;
|
|
1506
1465
|
return n.ordinalNumber(a, { unit: "year" });
|
|
1507
1466
|
}
|
|
1508
|
-
return
|
|
1467
|
+
return P.y(e, r);
|
|
1509
1468
|
},
|
|
1510
1469
|
// Local week-numbering year
|
|
1511
1470
|
Y: function(e, r, n, t) {
|
|
1512
|
-
const a =
|
|
1471
|
+
const a = Jt(e, t), i = a > 0 ? a : 1 - a;
|
|
1513
1472
|
if (r === "YY") {
|
|
1514
|
-
const
|
|
1515
|
-
return
|
|
1473
|
+
const u = i % 100;
|
|
1474
|
+
return f(u, 2);
|
|
1516
1475
|
}
|
|
1517
|
-
return r === "Yo" ? n.ordinalNumber(i, { unit: "year" }) :
|
|
1476
|
+
return r === "Yo" ? n.ordinalNumber(i, { unit: "year" }) : f(i, r.length);
|
|
1518
1477
|
},
|
|
1519
1478
|
// ISO week-numbering year
|
|
1520
1479
|
R: function(e, r) {
|
|
1521
|
-
const n =
|
|
1522
|
-
return
|
|
1480
|
+
const n = Ht(e);
|
|
1481
|
+
return f(n, r.length);
|
|
1523
1482
|
},
|
|
1524
1483
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
1525
1484
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -1532,7 +1491,7 @@ const x = {
|
|
|
1532
1491
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
1533
1492
|
u: function(e, r) {
|
|
1534
1493
|
const n = e.getFullYear();
|
|
1535
|
-
return
|
|
1494
|
+
return f(n, r.length);
|
|
1536
1495
|
},
|
|
1537
1496
|
// Quarter
|
|
1538
1497
|
Q: function(e, r, n) {
|
|
@@ -1543,7 +1502,7 @@ const x = {
|
|
|
1543
1502
|
return String(t);
|
|
1544
1503
|
// 01, 02, 03, 04
|
|
1545
1504
|
case "QQ":
|
|
1546
|
-
return
|
|
1505
|
+
return f(t, 2);
|
|
1547
1506
|
// 1st, 2nd, 3rd, 4th
|
|
1548
1507
|
case "Qo":
|
|
1549
1508
|
return n.ordinalNumber(t, { unit: "quarter" });
|
|
@@ -1559,8 +1518,6 @@ const x = {
|
|
|
1559
1518
|
width: "narrow",
|
|
1560
1519
|
context: "formatting"
|
|
1561
1520
|
});
|
|
1562
|
-
// 1st quarter, 2nd quarter, ...
|
|
1563
|
-
case "QQQQ":
|
|
1564
1521
|
default:
|
|
1565
1522
|
return n.quarter(t, {
|
|
1566
1523
|
width: "wide",
|
|
@@ -1577,7 +1534,7 @@ const x = {
|
|
|
1577
1534
|
return String(t);
|
|
1578
1535
|
// 01, 02, 03, 04
|
|
1579
1536
|
case "qq":
|
|
1580
|
-
return
|
|
1537
|
+
return f(t, 2);
|
|
1581
1538
|
// 1st, 2nd, 3rd, 4th
|
|
1582
1539
|
case "qo":
|
|
1583
1540
|
return n.ordinalNumber(t, { unit: "quarter" });
|
|
@@ -1593,8 +1550,6 @@ const x = {
|
|
|
1593
1550
|
width: "narrow",
|
|
1594
1551
|
context: "standalone"
|
|
1595
1552
|
});
|
|
1596
|
-
// 1st quarter, 2nd quarter, ...
|
|
1597
|
-
case "qqqq":
|
|
1598
1553
|
default:
|
|
1599
1554
|
return n.quarter(t, {
|
|
1600
1555
|
width: "wide",
|
|
@@ -1608,7 +1563,7 @@ const x = {
|
|
|
1608
1563
|
switch (r) {
|
|
1609
1564
|
case "M":
|
|
1610
1565
|
case "MM":
|
|
1611
|
-
return
|
|
1566
|
+
return P.M(e, r);
|
|
1612
1567
|
// 1st, 2nd, ..., 12th
|
|
1613
1568
|
case "Mo":
|
|
1614
1569
|
return n.ordinalNumber(t + 1, { unit: "month" });
|
|
@@ -1624,8 +1579,6 @@ const x = {
|
|
|
1624
1579
|
width: "narrow",
|
|
1625
1580
|
context: "formatting"
|
|
1626
1581
|
});
|
|
1627
|
-
// January, February, ..., December
|
|
1628
|
-
case "MMMM":
|
|
1629
1582
|
default:
|
|
1630
1583
|
return n.month(t, { width: "wide", context: "formatting" });
|
|
1631
1584
|
}
|
|
@@ -1639,7 +1592,7 @@ const x = {
|
|
|
1639
1592
|
return String(t + 1);
|
|
1640
1593
|
// 01, 02, ..., 12
|
|
1641
1594
|
case "LL":
|
|
1642
|
-
return
|
|
1595
|
+
return f(t + 1, 2);
|
|
1643
1596
|
// 1st, 2nd, ..., 12th
|
|
1644
1597
|
case "Lo":
|
|
1645
1598
|
return n.ordinalNumber(t + 1, { unit: "month" });
|
|
@@ -1655,30 +1608,28 @@ const x = {
|
|
|
1655
1608
|
width: "narrow",
|
|
1656
1609
|
context: "standalone"
|
|
1657
1610
|
});
|
|
1658
|
-
// January, February, ..., December
|
|
1659
|
-
case "LLLL":
|
|
1660
1611
|
default:
|
|
1661
1612
|
return n.month(t, { width: "wide", context: "standalone" });
|
|
1662
1613
|
}
|
|
1663
1614
|
},
|
|
1664
1615
|
// Local week of year
|
|
1665
1616
|
w: function(e, r, n, t) {
|
|
1666
|
-
const a =
|
|
1667
|
-
return r === "wo" ? n.ordinalNumber(a, { unit: "week" }) :
|
|
1617
|
+
const a = Vt(e, t);
|
|
1618
|
+
return r === "wo" ? n.ordinalNumber(a, { unit: "week" }) : f(a, r.length);
|
|
1668
1619
|
},
|
|
1669
1620
|
// ISO week of year
|
|
1670
1621
|
I: function(e, r, n) {
|
|
1671
|
-
const t =
|
|
1672
|
-
return r === "Io" ? n.ordinalNumber(t, { unit: "week" }) :
|
|
1622
|
+
const t = Qt(e);
|
|
1623
|
+
return r === "Io" ? n.ordinalNumber(t, { unit: "week" }) : f(t, r.length);
|
|
1673
1624
|
},
|
|
1674
1625
|
// Day of the month
|
|
1675
1626
|
d: function(e, r, n) {
|
|
1676
|
-
return r === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) :
|
|
1627
|
+
return r === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : P.d(e, r);
|
|
1677
1628
|
},
|
|
1678
1629
|
// Day of year
|
|
1679
1630
|
D: function(e, r, n) {
|
|
1680
1631
|
const t = gr(e);
|
|
1681
|
-
return r === "Do" ? n.ordinalNumber(t, { unit: "dayOfYear" }) :
|
|
1632
|
+
return r === "Do" ? n.ordinalNumber(t, { unit: "dayOfYear" }) : f(t, r.length);
|
|
1682
1633
|
},
|
|
1683
1634
|
// Day of week
|
|
1684
1635
|
E: function(e, r, n) {
|
|
@@ -1704,8 +1655,6 @@ const x = {
|
|
|
1704
1655
|
width: "short",
|
|
1705
1656
|
context: "formatting"
|
|
1706
1657
|
});
|
|
1707
|
-
// Tuesday
|
|
1708
|
-
case "EEEE":
|
|
1709
1658
|
default:
|
|
1710
1659
|
return n.day(t, {
|
|
1711
1660
|
width: "wide",
|
|
@@ -1722,7 +1671,7 @@ const x = {
|
|
|
1722
1671
|
return String(i);
|
|
1723
1672
|
// Padded numerical value
|
|
1724
1673
|
case "ee":
|
|
1725
|
-
return
|
|
1674
|
+
return f(i, 2);
|
|
1726
1675
|
// 1st, 2nd, ..., 7th
|
|
1727
1676
|
case "eo":
|
|
1728
1677
|
return n.ordinalNumber(i, { unit: "day" });
|
|
@@ -1743,8 +1692,6 @@ const x = {
|
|
|
1743
1692
|
width: "short",
|
|
1744
1693
|
context: "formatting"
|
|
1745
1694
|
});
|
|
1746
|
-
// Tuesday
|
|
1747
|
-
case "eeee":
|
|
1748
1695
|
default:
|
|
1749
1696
|
return n.day(a, {
|
|
1750
1697
|
width: "wide",
|
|
@@ -1761,7 +1708,7 @@ const x = {
|
|
|
1761
1708
|
return String(i);
|
|
1762
1709
|
// Padded numerical value
|
|
1763
1710
|
case "cc":
|
|
1764
|
-
return
|
|
1711
|
+
return f(i, r.length);
|
|
1765
1712
|
// 1st, 2nd, ..., 7th
|
|
1766
1713
|
case "co":
|
|
1767
1714
|
return n.ordinalNumber(i, { unit: "day" });
|
|
@@ -1782,8 +1729,6 @@ const x = {
|
|
|
1782
1729
|
width: "short",
|
|
1783
1730
|
context: "standalone"
|
|
1784
1731
|
});
|
|
1785
|
-
// Tuesday
|
|
1786
|
-
case "cccc":
|
|
1787
1732
|
default:
|
|
1788
1733
|
return n.day(a, {
|
|
1789
1734
|
width: "wide",
|
|
@@ -1800,7 +1745,7 @@ const x = {
|
|
|
1800
1745
|
return String(a);
|
|
1801
1746
|
// 02
|
|
1802
1747
|
case "ii":
|
|
1803
|
-
return
|
|
1748
|
+
return f(a, r.length);
|
|
1804
1749
|
// 2nd
|
|
1805
1750
|
case "io":
|
|
1806
1751
|
return n.ordinalNumber(a, { unit: "day" });
|
|
@@ -1822,8 +1767,6 @@ const x = {
|
|
|
1822
1767
|
width: "short",
|
|
1823
1768
|
context: "formatting"
|
|
1824
1769
|
});
|
|
1825
|
-
// Tuesday
|
|
1826
|
-
case "iiii":
|
|
1827
1770
|
default:
|
|
1828
1771
|
return n.day(t, {
|
|
1829
1772
|
width: "wide",
|
|
@@ -1851,7 +1794,6 @@ const x = {
|
|
|
1851
1794
|
width: "narrow",
|
|
1852
1795
|
context: "formatting"
|
|
1853
1796
|
});
|
|
1854
|
-
case "aaaa":
|
|
1855
1797
|
default:
|
|
1856
1798
|
return n.dayPeriod(t, {
|
|
1857
1799
|
width: "wide",
|
|
@@ -1863,7 +1805,7 @@ const x = {
|
|
|
1863
1805
|
b: function(e, r, n) {
|
|
1864
1806
|
const t = e.getHours();
|
|
1865
1807
|
let a;
|
|
1866
|
-
switch (t === 12 ? a =
|
|
1808
|
+
switch (t === 12 ? a = $.noon : t === 0 ? a = $.midnight : a = t / 12 >= 1 ? "pm" : "am", r) {
|
|
1867
1809
|
case "b":
|
|
1868
1810
|
case "bb":
|
|
1869
1811
|
return n.dayPeriod(a, {
|
|
@@ -1880,7 +1822,6 @@ const x = {
|
|
|
1880
1822
|
width: "narrow",
|
|
1881
1823
|
context: "formatting"
|
|
1882
1824
|
});
|
|
1883
|
-
case "bbbb":
|
|
1884
1825
|
default:
|
|
1885
1826
|
return n.dayPeriod(a, {
|
|
1886
1827
|
width: "wide",
|
|
@@ -1892,7 +1833,7 @@ const x = {
|
|
|
1892
1833
|
B: function(e, r, n) {
|
|
1893
1834
|
const t = e.getHours();
|
|
1894
1835
|
let a;
|
|
1895
|
-
switch (t >= 17 ? a =
|
|
1836
|
+
switch (t >= 17 ? a = $.evening : t >= 12 ? a = $.afternoon : t >= 4 ? a = $.morning : a = $.night, r) {
|
|
1896
1837
|
case "B":
|
|
1897
1838
|
case "BB":
|
|
1898
1839
|
case "BBB":
|
|
@@ -1905,7 +1846,6 @@ const x = {
|
|
|
1905
1846
|
width: "narrow",
|
|
1906
1847
|
context: "formatting"
|
|
1907
1848
|
});
|
|
1908
|
-
case "BBBB":
|
|
1909
1849
|
default:
|
|
1910
1850
|
return n.dayPeriod(a, {
|
|
1911
1851
|
width: "wide",
|
|
@@ -1919,33 +1859,33 @@ const x = {
|
|
|
1919
1859
|
let t = e.getHours() % 12;
|
|
1920
1860
|
return t === 0 && (t = 12), n.ordinalNumber(t, { unit: "hour" });
|
|
1921
1861
|
}
|
|
1922
|
-
return
|
|
1862
|
+
return P.h(e, r);
|
|
1923
1863
|
},
|
|
1924
1864
|
// Hour [0-23]
|
|
1925
1865
|
H: function(e, r, n) {
|
|
1926
|
-
return r === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) :
|
|
1866
|
+
return r === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : P.H(e, r);
|
|
1927
1867
|
},
|
|
1928
1868
|
// Hour [0-11]
|
|
1929
1869
|
K: function(e, r, n) {
|
|
1930
1870
|
const t = e.getHours() % 12;
|
|
1931
|
-
return r === "Ko" ? n.ordinalNumber(t, { unit: "hour" }) :
|
|
1871
|
+
return r === "Ko" ? n.ordinalNumber(t, { unit: "hour" }) : f(t, r.length);
|
|
1932
1872
|
},
|
|
1933
1873
|
// Hour [1-24]
|
|
1934
1874
|
k: function(e, r, n) {
|
|
1935
1875
|
let t = e.getHours();
|
|
1936
|
-
return t === 0 && (t = 24), r === "ko" ? n.ordinalNumber(t, { unit: "hour" }) :
|
|
1876
|
+
return t === 0 && (t = 24), r === "ko" ? n.ordinalNumber(t, { unit: "hour" }) : f(t, r.length);
|
|
1937
1877
|
},
|
|
1938
1878
|
// Minute
|
|
1939
1879
|
m: function(e, r, n) {
|
|
1940
|
-
return r === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) :
|
|
1880
|
+
return r === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : P.m(e, r);
|
|
1941
1881
|
},
|
|
1942
1882
|
// Second
|
|
1943
1883
|
s: function(e, r, n) {
|
|
1944
|
-
return r === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) :
|
|
1884
|
+
return r === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : P.s(e, r);
|
|
1945
1885
|
},
|
|
1946
1886
|
// Fraction of second
|
|
1947
1887
|
S: function(e, r) {
|
|
1948
|
-
return
|
|
1888
|
+
return P.S(e, r);
|
|
1949
1889
|
},
|
|
1950
1890
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
1951
1891
|
X: function(e, r, n) {
|
|
@@ -1955,21 +1895,16 @@ const x = {
|
|
|
1955
1895
|
switch (r) {
|
|
1956
1896
|
// Hours and optional minutes
|
|
1957
1897
|
case "X":
|
|
1958
|
-
return
|
|
1898
|
+
return _t(t);
|
|
1959
1899
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
1960
1900
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1961
1901
|
// so this token always has the same output as `XX`
|
|
1962
1902
|
case "XXXX":
|
|
1963
1903
|
case "XX":
|
|
1964
|
-
return
|
|
1965
|
-
// Hours, minutes and optional seconds with `:` delimiter
|
|
1966
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1967
|
-
// so this token always has the same output as `XXX`
|
|
1968
|
-
case "XXXXX":
|
|
1969
|
-
case "XXX":
|
|
1904
|
+
return _(t);
|
|
1970
1905
|
// Hours and minutes with `:` delimiter
|
|
1971
1906
|
default:
|
|
1972
|
-
return
|
|
1907
|
+
return _(t, ":");
|
|
1973
1908
|
}
|
|
1974
1909
|
},
|
|
1975
1910
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
@@ -1978,21 +1913,16 @@ const x = {
|
|
|
1978
1913
|
switch (r) {
|
|
1979
1914
|
// Hours and optional minutes
|
|
1980
1915
|
case "x":
|
|
1981
|
-
return
|
|
1916
|
+
return _t(t);
|
|
1982
1917
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
1983
1918
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1984
1919
|
// so this token always has the same output as `xx`
|
|
1985
1920
|
case "xxxx":
|
|
1986
1921
|
case "xx":
|
|
1987
|
-
return
|
|
1988
|
-
// Hours, minutes and optional seconds with `:` delimiter
|
|
1989
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1990
|
-
// so this token always has the same output as `xxx`
|
|
1991
|
-
case "xxxxx":
|
|
1992
|
-
case "xxx":
|
|
1922
|
+
return _(t);
|
|
1993
1923
|
// Hours and minutes with `:` delimiter
|
|
1994
1924
|
default:
|
|
1995
|
-
return
|
|
1925
|
+
return _(t, ":");
|
|
1996
1926
|
}
|
|
1997
1927
|
},
|
|
1998
1928
|
// Timezone (GMT)
|
|
@@ -2003,11 +1933,9 @@ const x = {
|
|
|
2003
1933
|
case "O":
|
|
2004
1934
|
case "OO":
|
|
2005
1935
|
case "OOO":
|
|
2006
|
-
return "GMT" +
|
|
2007
|
-
// Long
|
|
2008
|
-
case "OOOO":
|
|
1936
|
+
return "GMT" + Yt(t, ":");
|
|
2009
1937
|
default:
|
|
2010
|
-
return "GMT" +
|
|
1938
|
+
return "GMT" + _(t, ":");
|
|
2011
1939
|
}
|
|
2012
1940
|
},
|
|
2013
1941
|
// Timezone (specific non-location)
|
|
@@ -2018,35 +1946,33 @@ const x = {
|
|
|
2018
1946
|
case "z":
|
|
2019
1947
|
case "zz":
|
|
2020
1948
|
case "zzz":
|
|
2021
|
-
return "GMT" +
|
|
2022
|
-
// Long
|
|
2023
|
-
case "zzzz":
|
|
1949
|
+
return "GMT" + Yt(t, ":");
|
|
2024
1950
|
default:
|
|
2025
|
-
return "GMT" +
|
|
1951
|
+
return "GMT" + _(t, ":");
|
|
2026
1952
|
}
|
|
2027
1953
|
},
|
|
2028
1954
|
// Seconds timestamp
|
|
2029
1955
|
t: function(e, r, n) {
|
|
2030
1956
|
const t = Math.trunc(+e / 1e3);
|
|
2031
|
-
return
|
|
1957
|
+
return f(t, r.length);
|
|
2032
1958
|
},
|
|
2033
1959
|
// Milliseconds timestamp
|
|
2034
1960
|
T: function(e, r, n) {
|
|
2035
|
-
return
|
|
1961
|
+
return f(+e, r.length);
|
|
2036
1962
|
}
|
|
2037
1963
|
};
|
|
2038
|
-
function
|
|
1964
|
+
function Yt(e, r = "") {
|
|
2039
1965
|
const n = e > 0 ? "-" : "+", t = Math.abs(e), a = Math.trunc(t / 60), i = t % 60;
|
|
2040
|
-
return i === 0 ? n + String(a) : n + String(a) + r +
|
|
1966
|
+
return i === 0 ? n + String(a) : n + String(a) + r + f(i, 2);
|
|
2041
1967
|
}
|
|
2042
|
-
function
|
|
2043
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") +
|
|
1968
|
+
function _t(e, r) {
|
|
1969
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + f(Math.abs(e) / 60, 2) : _(e, r);
|
|
2044
1970
|
}
|
|
2045
|
-
function
|
|
2046
|
-
const n = e > 0 ? "-" : "+", t = Math.abs(e), a =
|
|
1971
|
+
function _(e, r = "") {
|
|
1972
|
+
const n = e > 0 ? "-" : "+", t = Math.abs(e), a = f(Math.trunc(t / 60), 2), i = f(t % 60, 2);
|
|
2047
1973
|
return n + a + r + i;
|
|
2048
1974
|
}
|
|
2049
|
-
const
|
|
1975
|
+
const jt = (e, r) => {
|
|
2050
1976
|
switch (e) {
|
|
2051
1977
|
case "P":
|
|
2052
1978
|
return r.date({ width: "short" });
|
|
@@ -2054,11 +1980,10 @@ const Wt = (e, r) => {
|
|
|
2054
1980
|
return r.date({ width: "medium" });
|
|
2055
1981
|
case "PPP":
|
|
2056
1982
|
return r.date({ width: "long" });
|
|
2057
|
-
case "PPPP":
|
|
2058
1983
|
default:
|
|
2059
1984
|
return r.date({ width: "full" });
|
|
2060
1985
|
}
|
|
2061
|
-
},
|
|
1986
|
+
}, Kt = (e, r) => {
|
|
2062
1987
|
switch (e) {
|
|
2063
1988
|
case "p":
|
|
2064
1989
|
return r.time({ width: "short" });
|
|
@@ -2066,14 +1991,13 @@ const Wt = (e, r) => {
|
|
|
2066
1991
|
return r.time({ width: "medium" });
|
|
2067
1992
|
case "ppp":
|
|
2068
1993
|
return r.time({ width: "long" });
|
|
2069
|
-
case "pppp":
|
|
2070
1994
|
default:
|
|
2071
1995
|
return r.time({ width: "full" });
|
|
2072
1996
|
}
|
|
2073
1997
|
}, yr = (e, r) => {
|
|
2074
1998
|
const n = e.match(/(P+)(p+)?/) || [], t = n[1], a = n[2];
|
|
2075
1999
|
if (!a)
|
|
2076
|
-
return
|
|
2000
|
+
return jt(e, r);
|
|
2077
2001
|
let i;
|
|
2078
2002
|
switch (t) {
|
|
2079
2003
|
case "P":
|
|
@@ -2085,14 +2009,13 @@ const Wt = (e, r) => {
|
|
|
2085
2009
|
case "PPP":
|
|
2086
2010
|
i = r.dateTime({ width: "long" });
|
|
2087
2011
|
break;
|
|
2088
|
-
case "PPPP":
|
|
2089
2012
|
default:
|
|
2090
2013
|
i = r.dateTime({ width: "full" });
|
|
2091
2014
|
break;
|
|
2092
2015
|
}
|
|
2093
|
-
return i.replace("{{date}}",
|
|
2016
|
+
return i.replace("{{date}}", jt(t, r)).replace("{{time}}", Kt(a, r));
|
|
2094
2017
|
}, br = {
|
|
2095
|
-
p:
|
|
2018
|
+
p: Kt,
|
|
2096
2019
|
P: yr
|
|
2097
2020
|
}, vr = /^D+$/, wr = /^Y+$/, kr = ["D", "DD", "YY", "YYYY"];
|
|
2098
2021
|
function Sr(e) {
|
|
@@ -2111,42 +2034,42 @@ function Or(e, r, n) {
|
|
|
2111
2034
|
}
|
|
2112
2035
|
const Dr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, xr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Pr = /^'([^]*?)'?$/, Er = /''/g, Nr = /[a-zA-Z]/;
|
|
2113
2036
|
function at(e, r, n) {
|
|
2114
|
-
const t = ut(), a = n?.locale ?? t.locale ??
|
|
2115
|
-
if (!sr(
|
|
2037
|
+
const t = ut(), a = n?.locale ?? t.locale ?? L, i = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? t.firstWeekContainsDate ?? t.locale?.options?.firstWeekContainsDate ?? 1, u = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? t.weekStartsOn ?? t.locale?.options?.weekStartsOn ?? 0, l = g(e, n?.in);
|
|
2038
|
+
if (!sr(l))
|
|
2116
2039
|
throw new RangeError("Invalid time value");
|
|
2117
|
-
let
|
|
2118
|
-
const
|
|
2119
|
-
if (
|
|
2120
|
-
const
|
|
2121
|
-
return
|
|
2040
|
+
let h = r.match(xr).map((y) => {
|
|
2041
|
+
const m = y[0];
|
|
2042
|
+
if (m === "p" || m === "P") {
|
|
2043
|
+
const S = br[m];
|
|
2044
|
+
return S(y, a.formatLong);
|
|
2122
2045
|
}
|
|
2123
2046
|
return y;
|
|
2124
2047
|
}).join("").match(Dr).map((y) => {
|
|
2125
2048
|
if (y === "''")
|
|
2126
2049
|
return { isToken: !1, value: "'" };
|
|
2127
|
-
const
|
|
2128
|
-
if (
|
|
2050
|
+
const m = y[0];
|
|
2051
|
+
if (m === "'")
|
|
2129
2052
|
return { isToken: !1, value: Cr(y) };
|
|
2130
|
-
if (
|
|
2053
|
+
if (Ct[m])
|
|
2131
2054
|
return { isToken: !0, value: y };
|
|
2132
|
-
if (
|
|
2055
|
+
if (m.match(Nr))
|
|
2133
2056
|
throw new RangeError(
|
|
2134
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
2057
|
+
"Format string contains an unescaped latin alphabet character `" + m + "`"
|
|
2135
2058
|
);
|
|
2136
2059
|
return { isToken: !1, value: y };
|
|
2137
2060
|
});
|
|
2138
|
-
a.localize.preprocessor && (
|
|
2139
|
-
const
|
|
2061
|
+
a.localize.preprocessor && (h = a.localize.preprocessor(l, h));
|
|
2062
|
+
const k = {
|
|
2140
2063
|
firstWeekContainsDate: i,
|
|
2141
|
-
weekStartsOn:
|
|
2064
|
+
weekStartsOn: u,
|
|
2142
2065
|
locale: a
|
|
2143
2066
|
};
|
|
2144
|
-
return
|
|
2067
|
+
return h.map((y) => {
|
|
2145
2068
|
if (!y.isToken) return y.value;
|
|
2146
|
-
const
|
|
2147
|
-
(!n?.useAdditionalWeekYearTokens && Mr(
|
|
2148
|
-
const
|
|
2149
|
-
return
|
|
2069
|
+
const m = y.value;
|
|
2070
|
+
(!n?.useAdditionalWeekYearTokens && Mr(m) || !n?.useAdditionalDayOfYearTokens && Sr(m)) && Tr(m, r, String(e));
|
|
2071
|
+
const S = Ct[m[0]];
|
|
2072
|
+
return S(l, m, a.localize, k);
|
|
2150
2073
|
}).join("");
|
|
2151
2074
|
}
|
|
2152
2075
|
function Cr(e) {
|
|
@@ -2154,20 +2077,20 @@ function Cr(e) {
|
|
|
2154
2077
|
return r ? r[1].replace(Er, "'") : e;
|
|
2155
2078
|
}
|
|
2156
2079
|
function Yr(e, r) {
|
|
2157
|
-
const n =
|
|
2080
|
+
const n = g(e, r?.in), t = n.getFullYear(), a = n.getMonth(), i = w(n, 0);
|
|
2158
2081
|
return i.setFullYear(t, a + 1, 0), i.setHours(0, 0, 0, 0), i.getDate();
|
|
2159
2082
|
}
|
|
2160
2083
|
function _r(e, r) {
|
|
2161
|
-
return
|
|
2084
|
+
return g(e, r?.in).getMonth();
|
|
2162
2085
|
}
|
|
2163
2086
|
function jr(e, r) {
|
|
2164
|
-
return
|
|
2087
|
+
return g(e, r?.in).getFullYear();
|
|
2165
2088
|
}
|
|
2166
2089
|
function Wr(e, r) {
|
|
2167
|
-
return +
|
|
2090
|
+
return +g(e) > +g(r);
|
|
2168
2091
|
}
|
|
2169
2092
|
function Rr(e, r) {
|
|
2170
|
-
return +
|
|
2093
|
+
return +g(e) < +g(r);
|
|
2171
2094
|
}
|
|
2172
2095
|
function Fr(e, r, n) {
|
|
2173
2096
|
const [t, a] = U(
|
|
@@ -2185,35 +2108,35 @@ function Ar(e, r, n) {
|
|
|
2185
2108
|
);
|
|
2186
2109
|
return t.getFullYear() === a.getFullYear();
|
|
2187
2110
|
}
|
|
2188
|
-
function Lr(e, r, n) {
|
|
2189
|
-
const t = p(e, n?.in), a = t.getFullYear(), i = t.getDate(), s = v(e, 0);
|
|
2190
|
-
s.setFullYear(a, r, 15), s.setHours(0, 0, 0, 0);
|
|
2191
|
-
const c = Yr(s);
|
|
2192
|
-
return t.setMonth(r, Math.min(i, c)), t;
|
|
2193
|
-
}
|
|
2194
2111
|
function $r(e, r, n) {
|
|
2195
|
-
const t =
|
|
2196
|
-
|
|
2112
|
+
const t = g(e, n?.in), a = t.getFullYear(), i = t.getDate(), u = w(e, 0);
|
|
2113
|
+
u.setFullYear(a, r, 15), u.setHours(0, 0, 0, 0);
|
|
2114
|
+
const l = Yr(u);
|
|
2115
|
+
return t.setMonth(r, Math.min(i, l)), t;
|
|
2116
|
+
}
|
|
2117
|
+
function Lr(e, r, n) {
|
|
2118
|
+
const t = g(e, n?.in);
|
|
2119
|
+
return isNaN(+t) ? w(e, NaN) : (t.setFullYear(r), t);
|
|
2197
2120
|
}
|
|
2198
|
-
const
|
|
2121
|
+
const Wt = 5, zr = 4;
|
|
2199
2122
|
function Ur(e, r) {
|
|
2200
|
-
const n = r.startOfMonth(e), t = n.getDay() > 0 ? n.getDay() : 7, a = r.addDays(e, -t + 1), i = r.addDays(a,
|
|
2201
|
-
return r.getMonth(e) === r.getMonth(i) ?
|
|
2123
|
+
const n = r.startOfMonth(e), t = n.getDay() > 0 ? n.getDay() : 7, a = r.addDays(e, -t + 1), i = r.addDays(a, Wt * 7 - 1);
|
|
2124
|
+
return r.getMonth(e) === r.getMonth(i) ? Wt : zr;
|
|
2202
2125
|
}
|
|
2203
|
-
function
|
|
2126
|
+
function te(e, r) {
|
|
2204
2127
|
const n = r.startOfMonth(e), t = n.getDay();
|
|
2205
2128
|
return t === 1 ? n : t === 0 ? r.addDays(n, -6) : r.addDays(n, -1 * (t - 1));
|
|
2206
2129
|
}
|
|
2207
2130
|
function Ir(e, r) {
|
|
2208
|
-
const n =
|
|
2131
|
+
const n = te(e, r), t = Ur(e, r);
|
|
2209
2132
|
return r.addDays(n, t * 7 - 1);
|
|
2210
2133
|
}
|
|
2211
2134
|
const Hr = {
|
|
2212
|
-
|
|
2135
|
+
...L,
|
|
2213
2136
|
labels: {
|
|
2214
2137
|
labelDayButton: (e, r, n, t) => {
|
|
2215
2138
|
let a;
|
|
2216
|
-
t && typeof t.format == "function" ? a = t.format.bind(t) : a = (
|
|
2139
|
+
t && typeof t.format == "function" ? a = t.format.bind(t) : a = (u, l) => at(u, l, { locale: L, ...n });
|
|
2217
2140
|
let i = a(e, "PPPP");
|
|
2218
2141
|
return r.today && (i = `Today, ${i}`), r.selected && (i = `${i}, selected`), i;
|
|
2219
2142
|
},
|
|
@@ -2224,11 +2147,11 @@ const Hr = {
|
|
|
2224
2147
|
labelYearDropdown: "Choose the Year",
|
|
2225
2148
|
labelGrid: (e, r, n) => {
|
|
2226
2149
|
let t;
|
|
2227
|
-
return n && typeof n.format == "function" ? t = n.format.bind(n) : t = (a, i) => at(a, i, { locale:
|
|
2150
|
+
return n && typeof n.format == "function" ? t = n.format.bind(n) : t = (a, i) => at(a, i, { locale: L, ...r }), t(e, "LLLL yyyy");
|
|
2228
2151
|
},
|
|
2229
2152
|
labelGridcell: (e, r, n, t) => {
|
|
2230
2153
|
let a;
|
|
2231
|
-
t && typeof t.format == "function" ? a = t.format.bind(t) : a = (
|
|
2154
|
+
t && typeof t.format == "function" ? a = t.format.bind(t) : a = (u, l) => at(u, l, { locale: L, ...n });
|
|
2232
2155
|
let i = a(e, "PPPP");
|
|
2233
2156
|
return r?.today && (i = `Today, ${i}`), i;
|
|
2234
2157
|
},
|
|
@@ -2236,7 +2159,7 @@ const Hr = {
|
|
|
2236
2159
|
labelWeekNumberHeader: "Week Number",
|
|
2237
2160
|
labelWeekday: (e, r, n) => {
|
|
2238
2161
|
let t;
|
|
2239
|
-
return n && typeof n.format == "function" ? t = n.format.bind(n) : t = (a, i) => at(a, i, { locale:
|
|
2162
|
+
return n && typeof n.format == "function" ? t = n.format.bind(n) : t = (a, i) => at(a, i, { locale: L, ...r }), t(e, "cccc");
|
|
2240
2163
|
}
|
|
2241
2164
|
}
|
|
2242
2165
|
};
|
|
@@ -2248,18 +2171,18 @@ class st {
|
|
|
2248
2171
|
* @param overrides Custom overrides for the date library functions.
|
|
2249
2172
|
*/
|
|
2250
2173
|
constructor(r, n) {
|
|
2251
|
-
this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ?
|
|
2252
|
-
const a = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(t) : hr(t), i = new Set(a.map((
|
|
2174
|
+
this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? W.tz(this.options.timeZone) : new this.Date(), this.newDate = (t, a, i) => this.overrides?.newDate ? this.overrides.newDate(t, a, i) : this.options.timeZone ? new W(t, a, i, this.options.timeZone) : new Date(t, a, i), this.addDays = (t, a) => this.overrides?.addDays ? this.overrides.addDays(t, a) : Ut(t, a), this.addMonths = (t, a) => this.overrides?.addMonths ? this.overrides.addMonths(t, a) : It(t, a), this.addWeeks = (t, a) => this.overrides?.addWeeks ? this.overrides.addWeeks(t, a) : rr(t, a), this.addYears = (t, a) => this.overrides?.addYears ? this.overrides.addYears(t, a) : nr(t, a), this.differenceInCalendarDays = (t, a) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(t, a) : qt(t, a), this.differenceInCalendarMonths = (t, a) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(t, a) : ur(t, a), this.eachMonthOfInterval = (t) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(t) : lr(t), this.eachYearOfInterval = (t) => {
|
|
2175
|
+
const a = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(t) : hr(t), i = new Set(a.map((l) => this.getYear(l)));
|
|
2253
2176
|
if (i.size === a.length)
|
|
2254
2177
|
return a;
|
|
2255
|
-
const
|
|
2256
|
-
return i.forEach((
|
|
2257
|
-
|
|
2258
|
-
}),
|
|
2259
|
-
}, this.endOfBroadcastWeek = (t) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(t) : Ir(t, this), this.endOfISOWeek = (t) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(t) : mr(t), this.endOfMonth = (t) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(t) : cr(t), this.endOfWeek = (t, a) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(t, a) :
|
|
2260
|
-
const
|
|
2261
|
-
return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(
|
|
2262
|
-
}, this.getISOWeek = (t) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(t) :
|
|
2178
|
+
const u = [];
|
|
2179
|
+
return i.forEach((l) => {
|
|
2180
|
+
u.push(new Date(l, 0, 1));
|
|
2181
|
+
}), u;
|
|
2182
|
+
}, this.endOfBroadcastWeek = (t) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(t) : Ir(t, this), this.endOfISOWeek = (t) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(t) : mr(t), this.endOfMonth = (t) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(t) : cr(t), this.endOfWeek = (t, a) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(t, a) : Xt(t, this.options), this.endOfYear = (t) => this.overrides?.endOfYear ? this.overrides.endOfYear(t) : fr(t), this.format = (t, a, i) => {
|
|
2183
|
+
const u = this.overrides?.format ? this.overrides.format(t, a, this.options) : at(t, a, this.options);
|
|
2184
|
+
return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(u) : u;
|
|
2185
|
+
}, this.getISOWeek = (t) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(t) : Qt(t), this.getMonth = (t, a) => this.overrides?.getMonth ? this.overrides.getMonth(t, this.options) : _r(t, this.options), this.getYear = (t, a) => this.overrides?.getYear ? this.overrides.getYear(t, this.options) : jr(t, this.options), this.getWeek = (t, a) => this.overrides?.getWeek ? this.overrides.getWeek(t, this.options) : Vt(t, this.options), this.isAfter = (t, a) => this.overrides?.isAfter ? this.overrides.isAfter(t, a) : Wr(t, a), this.isBefore = (t, a) => this.overrides?.isBefore ? this.overrides.isBefore(t, a) : Rr(t, a), this.isDate = (t) => this.overrides?.isDate ? this.overrides.isDate(t) : Zt(t), this.isSameDay = (t, a) => this.overrides?.isSameDay ? this.overrides.isSameDay(t, a) : ir(t, a), this.isSameMonth = (t, a) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(t, a) : Fr(t, a), this.isSameYear = (t, a) => this.overrides?.isSameYear ? this.overrides.isSameYear(t, a) : Ar(t, a), this.max = (t) => this.overrides?.max ? this.overrides.max(t) : ar(t), this.min = (t) => this.overrides?.min ? this.overrides.min(t) : or(t), this.setMonth = (t, a) => this.overrides?.setMonth ? this.overrides.setMonth(t, a) : $r(t, a), this.setYear = (t, a) => this.overrides?.setYear ? this.overrides.setYear(t, a) : Lr(t, a), this.startOfBroadcastWeek = (t, a) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(t, this) : te(t, this), this.startOfDay = (t) => this.overrides?.startOfDay ? this.overrides.startOfDay(t) : it(t), this.startOfISOWeek = (t) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(t) : ot(t), this.startOfMonth = (t) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(t) : dr(t), this.startOfWeek = (t, a) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(t, this.options) : z(t, this.options), this.startOfYear = (t) => this.overrides?.startOfYear ? this.overrides.startOfYear(t) : Gt(t), this.options = { locale: Hr, ...r }, this.overrides = n;
|
|
2263
2186
|
}
|
|
2264
2187
|
/**
|
|
2265
2188
|
* Generates a mapping of Arabic digits (0-9) to the target numbering system
|
|
@@ -2322,8 +2245,8 @@ class st {
|
|
|
2322
2245
|
}).format(r);
|
|
2323
2246
|
} catch {
|
|
2324
2247
|
}
|
|
2325
|
-
const
|
|
2326
|
-
return this.format(r,
|
|
2248
|
+
const u = this.getMonthYearOrder() === "year-first" ? "y LLLL" : "LLLL y";
|
|
2249
|
+
return this.format(r, u);
|
|
2327
2250
|
}
|
|
2328
2251
|
}
|
|
2329
2252
|
st.yearFirstLocales = /* @__PURE__ */ new Set([
|
|
@@ -2346,11 +2269,11 @@ st.yearFirstLocales = /* @__PURE__ */ new Set([
|
|
|
2346
2269
|
"zh-TW"
|
|
2347
2270
|
]);
|
|
2348
2271
|
new st();
|
|
2349
|
-
const qr =
|
|
2272
|
+
const qr = Ft({
|
|
2350
2273
|
locale: void 0
|
|
2351
2274
|
});
|
|
2352
2275
|
function Kr() {
|
|
2353
|
-
return
|
|
2276
|
+
return At(qr);
|
|
2354
2277
|
}
|
|
2355
2278
|
export {
|
|
2356
2279
|
Jr as B,
|