@sigtes/ui 0.4.1 → 0.4.2
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/{Button-5NOkO3IC.js → Button-4bFnDFTG.js} +143 -163
- package/dist/Button-BZQNLEhf.cjs +6 -0
- package/dist/components/form/Form.d.ts +23 -0
- package/dist/components.cjs.js +134 -46
- package/dist/components.es.js +9568 -3984
- package/dist/globals.css +1 -1
- package/dist/pages.cjs.js +2 -18
- package/dist/pages.es.js +473 -534
- package/package.json +1 -1
- package/dist/Button-CfO2renX.cjs +0 -22
package/dist/pages.es.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as
|
|
3
|
-
import
|
|
2
|
+
import { j as w, B as ae } from "./Button-4bFnDFTG.js";
|
|
3
|
+
import Qe, { useEffect as ke, createContext as De, useContext as Je } from "react";
|
|
4
4
|
import "next-themes";
|
|
5
|
-
function
|
|
5
|
+
function hr({
|
|
6
6
|
error: n,
|
|
7
7
|
reset: t,
|
|
8
8
|
router: r
|
|
9
9
|
}) {
|
|
10
|
-
return
|
|
10
|
+
return ke(() => {
|
|
11
11
|
console.error(n);
|
|
12
|
-
}, [n]), /* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */
|
|
12
|
+
}, [n]), /* @__PURE__ */ w.jsx("div", { className: "h-screen w-screen flex", children: /* @__PURE__ */ w.jsxs("div", { className: "m-auto flex flex-col gap-3", children: [
|
|
13
|
+
/* @__PURE__ */ w.jsxs("div", { className: "inline-flex gap-5 items-center", children: [
|
|
14
|
+
/* @__PURE__ */ w.jsx("h1", { className: "text-2xl border-r-1 p-4", children: "500" }),
|
|
15
|
+
/* @__PURE__ */ w.jsx("h1", { children: "Um erro ocorreu!" })
|
|
16
16
|
] }),
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
|
|
17
|
+
/* @__PURE__ */ w.jsx(
|
|
18
|
+
ae,
|
|
19
19
|
{
|
|
20
20
|
onClick: () => {
|
|
21
21
|
t(), r.replace("/");
|
|
@@ -25,21 +25,11 @@ function mr({
|
|
|
25
25
|
)
|
|
26
26
|
] }) });
|
|
27
27
|
}
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
34
|
-
*
|
|
35
|
-
* This source code is licensed under the MIT license found in the
|
|
36
|
-
* LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/
|
|
38
|
-
var me;
|
|
39
|
-
function Ke() {
|
|
40
|
-
if (me) return I;
|
|
41
|
-
me = 1;
|
|
42
|
-
var n = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
28
|
+
var ne = { exports: {} }, q = {}, le;
|
|
29
|
+
function Ve() {
|
|
30
|
+
if (le) return q;
|
|
31
|
+
le = 1;
|
|
32
|
+
var n = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
43
33
|
function r(e, a, o) {
|
|
44
34
|
var s = null;
|
|
45
35
|
if (o !== void 0 && (s = "" + o), a.key !== void 0 && (s = "" + a.key), "key" in a) {
|
|
@@ -55,56 +45,46 @@ function Ke() {
|
|
|
55
45
|
props: o
|
|
56
46
|
};
|
|
57
47
|
}
|
|
58
|
-
return
|
|
59
|
-
}
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
* react-jsx-runtime.development.js
|
|
64
|
-
*
|
|
65
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
66
|
-
*
|
|
67
|
-
* This source code is licensed under the MIT license found in the
|
|
68
|
-
* LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/
|
|
70
|
-
var fe;
|
|
71
|
-
function et() {
|
|
72
|
-
return fe || (fe = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
48
|
+
return q.Fragment = t, q.jsx = r, q.jsxs = r, q;
|
|
49
|
+
}
|
|
50
|
+
var X = {}, he;
|
|
51
|
+
function Ke() {
|
|
52
|
+
return he || (he = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
73
53
|
function n(i) {
|
|
74
54
|
if (i == null) return null;
|
|
75
55
|
if (typeof i == "function")
|
|
76
|
-
return i.$$typeof ===
|
|
56
|
+
return i.$$typeof === Xe ? null : i.displayName || i.name || null;
|
|
77
57
|
if (typeof i == "string") return i;
|
|
78
58
|
switch (i) {
|
|
79
|
-
case
|
|
59
|
+
case j:
|
|
80
60
|
return "Fragment";
|
|
81
|
-
case
|
|
61
|
+
case G:
|
|
82
62
|
return "Profiler";
|
|
83
|
-
case
|
|
63
|
+
case E:
|
|
84
64
|
return "StrictMode";
|
|
85
|
-
case
|
|
65
|
+
case _e:
|
|
86
66
|
return "Suspense";
|
|
87
|
-
case
|
|
67
|
+
case Ae:
|
|
88
68
|
return "SuspenseList";
|
|
89
|
-
case
|
|
69
|
+
case Be:
|
|
90
70
|
return "Activity";
|
|
91
71
|
}
|
|
92
72
|
if (typeof i == "object")
|
|
93
73
|
switch (typeof i.tag == "number" && console.error(
|
|
94
74
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
95
75
|
), i.$$typeof) {
|
|
96
|
-
case
|
|
76
|
+
case R:
|
|
97
77
|
return "Portal";
|
|
98
|
-
case
|
|
99
|
-
return
|
|
100
|
-
case
|
|
78
|
+
case Ue:
|
|
79
|
+
return i.displayName || "Context";
|
|
80
|
+
case L:
|
|
101
81
|
return (i._context.displayName || "Context") + ".Consumer";
|
|
102
|
-
case
|
|
82
|
+
case Ie:
|
|
103
83
|
var c = i.render;
|
|
104
84
|
return i = i.displayName, i || (i = c.displayName || c.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
|
|
105
85
|
case Ze:
|
|
106
86
|
return c = i.displayName || null, c !== null ? c : n(i.type) || "Memo";
|
|
107
|
-
case
|
|
87
|
+
case Q:
|
|
108
88
|
c = i._payload, i = i._init;
|
|
109
89
|
try {
|
|
110
90
|
return n(i(c));
|
|
@@ -125,17 +105,17 @@ function et() {
|
|
|
125
105
|
}
|
|
126
106
|
if (c) {
|
|
127
107
|
c = console;
|
|
128
|
-
var g = c.error,
|
|
108
|
+
var g = c.error, y = typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object";
|
|
129
109
|
return g.call(
|
|
130
110
|
c,
|
|
131
111
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
132
|
-
|
|
112
|
+
y
|
|
133
113
|
), t(i);
|
|
134
114
|
}
|
|
135
115
|
}
|
|
136
116
|
function e(i) {
|
|
137
|
-
if (i ===
|
|
138
|
-
if (typeof i == "object" && i !== null && i.$$typeof ===
|
|
117
|
+
if (i === j) return "<>";
|
|
118
|
+
if (typeof i == "object" && i !== null && i.$$typeof === Q)
|
|
139
119
|
return "<...>";
|
|
140
120
|
try {
|
|
141
121
|
var c = n(i);
|
|
@@ -145,14 +125,14 @@ function et() {
|
|
|
145
125
|
}
|
|
146
126
|
}
|
|
147
127
|
function a() {
|
|
148
|
-
var i =
|
|
128
|
+
var i = J.A;
|
|
149
129
|
return i === null ? null : i.getOwner();
|
|
150
130
|
}
|
|
151
131
|
function o() {
|
|
152
132
|
return Error("react-stack-top-frame");
|
|
153
133
|
}
|
|
154
134
|
function s(i) {
|
|
155
|
-
if (
|
|
135
|
+
if (oe.call(i, "key")) {
|
|
156
136
|
var c = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
157
137
|
if (c && c.isReactWarning) return !1;
|
|
158
138
|
}
|
|
@@ -160,7 +140,7 @@ function et() {
|
|
|
160
140
|
}
|
|
161
141
|
function u(i, c) {
|
|
162
142
|
function g() {
|
|
163
|
-
|
|
143
|
+
ie || (ie = !0, console.error(
|
|
164
144
|
"%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)",
|
|
165
145
|
c
|
|
166
146
|
));
|
|
@@ -172,18 +152,19 @@ function et() {
|
|
|
172
152
|
}
|
|
173
153
|
function h() {
|
|
174
154
|
var i = n(this.type);
|
|
175
|
-
return
|
|
155
|
+
return se[i] || (se[i] = !0, console.error(
|
|
176
156
|
"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."
|
|
177
157
|
)), i = this.props.ref, i !== void 0 ? i : null;
|
|
178
158
|
}
|
|
179
|
-
function v(i, c, g,
|
|
180
|
-
|
|
181
|
-
|
|
159
|
+
function v(i, c, g, y, K, ee) {
|
|
160
|
+
var b = g.ref;
|
|
161
|
+
return i = {
|
|
162
|
+
$$typeof: B,
|
|
182
163
|
type: i,
|
|
183
164
|
key: c,
|
|
184
|
-
props:
|
|
185
|
-
_owner:
|
|
186
|
-
}, (
|
|
165
|
+
props: g,
|
|
166
|
+
_owner: y
|
|
167
|
+
}, (b !== void 0 ? b : null) !== null ? Object.defineProperty(i, "ref", {
|
|
187
168
|
enumerable: !1,
|
|
188
169
|
get: h
|
|
189
170
|
}) : Object.defineProperty(i, "ref", { enumerable: !1, value: null }), i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
@@ -200,120 +181,117 @@ function et() {
|
|
|
200
181
|
configurable: !1,
|
|
201
182
|
enumerable: !1,
|
|
202
183
|
writable: !0,
|
|
203
|
-
value:
|
|
184
|
+
value: K
|
|
204
185
|
}), Object.defineProperty(i, "_debugTask", {
|
|
205
186
|
configurable: !1,
|
|
206
187
|
enumerable: !1,
|
|
207
188
|
writable: !0,
|
|
208
|
-
value:
|
|
189
|
+
value: ee
|
|
209
190
|
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
210
191
|
}
|
|
211
|
-
function f(i, c, g,
|
|
212
|
-
var
|
|
213
|
-
if (
|
|
214
|
-
if (
|
|
215
|
-
if (Re(
|
|
216
|
-
for (
|
|
217
|
-
m(
|
|
218
|
-
Object.freeze && Object.freeze(
|
|
192
|
+
function f(i, c, g, y, K, ee) {
|
|
193
|
+
var b = c.children;
|
|
194
|
+
if (b !== void 0)
|
|
195
|
+
if (y)
|
|
196
|
+
if (Re(b)) {
|
|
197
|
+
for (y = 0; y < b.length; y++)
|
|
198
|
+
m(b[y]);
|
|
199
|
+
Object.freeze && Object.freeze(b);
|
|
219
200
|
} else
|
|
220
201
|
console.error(
|
|
221
202
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
222
203
|
);
|
|
223
|
-
else m(
|
|
224
|
-
if (
|
|
225
|
-
|
|
226
|
-
var
|
|
227
|
-
return
|
|
204
|
+
else m(b);
|
|
205
|
+
if (oe.call(c, "key")) {
|
|
206
|
+
b = n(i);
|
|
207
|
+
var C = Object.keys(c).filter(function(Ge) {
|
|
208
|
+
return Ge !== "key";
|
|
228
209
|
});
|
|
229
|
-
|
|
210
|
+
y = 0 < C.length ? "{key: someKey, " + C.join(": ..., ") + ": ...}" : "{key: someKey}", de[b + y] || (C = 0 < C.length ? "{" + C.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
230
211
|
`A props object containing a "key" prop is being spread into JSX:
|
|
231
212
|
let props = %s;
|
|
232
213
|
<%s {...props} />
|
|
233
214
|
React keys must be passed directly to JSX without using spread:
|
|
234
215
|
let props = %s;
|
|
235
216
|
<%s key={someKey} {...props} />`,
|
|
217
|
+
y,
|
|
236
218
|
b,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
), he[w + b] = !0);
|
|
219
|
+
C,
|
|
220
|
+
b
|
|
221
|
+
), de[b + y] = !0);
|
|
241
222
|
}
|
|
242
|
-
if (
|
|
223
|
+
if (b = null, g !== void 0 && (r(g), b = "" + g), s(c) && (r(c.key), b = "" + c.key), "key" in c) {
|
|
243
224
|
g = {};
|
|
244
|
-
for (var
|
|
245
|
-
|
|
225
|
+
for (var te in c)
|
|
226
|
+
te !== "key" && (g[te] = c[te]);
|
|
246
227
|
} else g = c;
|
|
247
|
-
return
|
|
228
|
+
return b && u(
|
|
248
229
|
g,
|
|
249
230
|
typeof i == "function" ? i.displayName || i.name || "Unknown" : i
|
|
250
231
|
), v(
|
|
251
232
|
i,
|
|
252
|
-
|
|
253
|
-
S,
|
|
254
|
-
T,
|
|
255
|
-
a(),
|
|
233
|
+
b,
|
|
256
234
|
g,
|
|
257
|
-
|
|
258
|
-
|
|
235
|
+
a(),
|
|
236
|
+
K,
|
|
237
|
+
ee
|
|
259
238
|
);
|
|
260
239
|
}
|
|
261
240
|
function m(i) {
|
|
262
|
-
typeof i == "object" && i !== null && i.$$typeof ===
|
|
241
|
+
M(i) ? i._store && (i._store.validated = 1) : typeof i == "object" && i !== null && i.$$typeof === Q && (i._payload.status === "fulfilled" ? M(i._payload.value) && i._payload.value._store && (i._payload.value._store.validated = 1) : i._store && (i._store.validated = 1));
|
|
242
|
+
}
|
|
243
|
+
function M(i) {
|
|
244
|
+
return typeof i == "object" && i !== null && i.$$typeof === B;
|
|
263
245
|
}
|
|
264
|
-
var
|
|
246
|
+
var O = Qe, B = /* @__PURE__ */ Symbol.for("react.transitional.element"), R = /* @__PURE__ */ Symbol.for("react.portal"), j = /* @__PURE__ */ Symbol.for("react.fragment"), E = /* @__PURE__ */ Symbol.for("react.strict_mode"), G = /* @__PURE__ */ Symbol.for("react.profiler"), L = /* @__PURE__ */ Symbol.for("react.consumer"), Ue = /* @__PURE__ */ Symbol.for("react.context"), Ie = /* @__PURE__ */ Symbol.for("react.forward_ref"), _e = /* @__PURE__ */ Symbol.for("react.suspense"), Ae = /* @__PURE__ */ Symbol.for("react.suspense_list"), Ze = /* @__PURE__ */ Symbol.for("react.memo"), Q = /* @__PURE__ */ Symbol.for("react.lazy"), Be = /* @__PURE__ */ Symbol.for("react.activity"), Xe = /* @__PURE__ */ Symbol.for("react.client.reference"), J = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, oe = Object.prototype.hasOwnProperty, Re = Array.isArray, V = console.createTask ? console.createTask : function() {
|
|
265
247
|
return null;
|
|
266
248
|
};
|
|
267
|
-
|
|
249
|
+
O = {
|
|
268
250
|
react_stack_bottom_frame: function(i) {
|
|
269
251
|
return i();
|
|
270
252
|
}
|
|
271
253
|
};
|
|
272
|
-
var
|
|
273
|
-
|
|
254
|
+
var ie, se = {}, ue = O.react_stack_bottom_frame.bind(
|
|
255
|
+
O,
|
|
274
256
|
o
|
|
275
|
-
)(),
|
|
276
|
-
|
|
277
|
-
var
|
|
257
|
+
)(), ce = V(e(o)), de = {};
|
|
258
|
+
X.Fragment = j, X.jsx = function(i, c, g) {
|
|
259
|
+
var y = 1e4 > J.recentlyCreatedOwnerStacks++;
|
|
278
260
|
return f(
|
|
279
261
|
i,
|
|
280
262
|
c,
|
|
281
263
|
g,
|
|
282
264
|
!1,
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
S ? Error("react-stack-top-frame") : de,
|
|
286
|
-
S ? K(e(i)) : le
|
|
265
|
+
y ? Error("react-stack-top-frame") : ue,
|
|
266
|
+
y ? V(e(i)) : ce
|
|
287
267
|
);
|
|
288
|
-
},
|
|
289
|
-
var
|
|
268
|
+
}, X.jsxs = function(i, c, g) {
|
|
269
|
+
var y = 1e4 > J.recentlyCreatedOwnerStacks++;
|
|
290
270
|
return f(
|
|
291
271
|
i,
|
|
292
272
|
c,
|
|
293
273
|
g,
|
|
294
274
|
!0,
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
S ? Error("react-stack-top-frame") : de,
|
|
298
|
-
S ? K(e(i)) : le
|
|
275
|
+
y ? Error("react-stack-top-frame") : ue,
|
|
276
|
+
y ? V(e(i)) : ce
|
|
299
277
|
);
|
|
300
278
|
};
|
|
301
|
-
})()),
|
|
279
|
+
})()), X;
|
|
302
280
|
}
|
|
303
|
-
var
|
|
304
|
-
function
|
|
305
|
-
return
|
|
281
|
+
var me;
|
|
282
|
+
function et() {
|
|
283
|
+
return me || (me = 1, process.env.NODE_ENV === "production" ? ne.exports = Ve() : ne.exports = Ke()), ne.exports;
|
|
306
284
|
}
|
|
307
|
-
|
|
308
|
-
const
|
|
285
|
+
et();
|
|
286
|
+
const tt = {
|
|
309
287
|
id: "",
|
|
310
288
|
username: "",
|
|
311
289
|
email: "",
|
|
312
290
|
created_at: null,
|
|
313
291
|
updated_at: null,
|
|
314
292
|
features: []
|
|
315
|
-
},
|
|
316
|
-
user:
|
|
293
|
+
}, nt = De({
|
|
294
|
+
user: tt,
|
|
317
295
|
isLoading: !0,
|
|
318
296
|
fetchUser: async () => {
|
|
319
297
|
},
|
|
@@ -321,16 +299,16 @@ const nt = {
|
|
|
321
299
|
},
|
|
322
300
|
login: async () => !1
|
|
323
301
|
});
|
|
324
|
-
function
|
|
325
|
-
return
|
|
302
|
+
function rt() {
|
|
303
|
+
return Je(nt);
|
|
326
304
|
}
|
|
327
|
-
function
|
|
305
|
+
function H(n) {
|
|
328
306
|
return (t = {}) => {
|
|
329
307
|
const r = t.width ? String(t.width) : n.defaultWidth;
|
|
330
308
|
return n.formats[r] || n.formats[n.defaultWidth];
|
|
331
309
|
};
|
|
332
310
|
}
|
|
333
|
-
function
|
|
311
|
+
function S(n) {
|
|
334
312
|
return (t, r) => {
|
|
335
313
|
const e = r?.context ? String(r.context) : "standalone";
|
|
336
314
|
let a;
|
|
@@ -345,14 +323,14 @@ function k(n) {
|
|
|
345
323
|
return a[o];
|
|
346
324
|
};
|
|
347
325
|
}
|
|
348
|
-
function
|
|
326
|
+
function k(n) {
|
|
349
327
|
return (t, r = {}) => {
|
|
350
328
|
const e = r.width, a = e && n.matchPatterns[e] || n.matchPatterns[n.defaultMatchWidth], o = t.match(a);
|
|
351
329
|
if (!o)
|
|
352
330
|
return null;
|
|
353
|
-
const s = o[0], u = e && n.parsePatterns[e] || n.parsePatterns[n.defaultParseWidth], h = Array.isArray(u) ?
|
|
331
|
+
const s = o[0], u = e && n.parsePatterns[e] || n.parsePatterns[n.defaultParseWidth], h = Array.isArray(u) ? ot(u, (m) => m.test(s)) : (
|
|
354
332
|
// [TODO] -- I challenge you to fix the type
|
|
355
|
-
|
|
333
|
+
at(u, (m) => m.test(s))
|
|
356
334
|
);
|
|
357
335
|
let v;
|
|
358
336
|
v = n.valueCallback ? n.valueCallback(h) : h, v = r.valueCallback ? (
|
|
@@ -363,17 +341,17 @@ function D(n) {
|
|
|
363
341
|
return { value: v, rest: f };
|
|
364
342
|
};
|
|
365
343
|
}
|
|
366
|
-
function
|
|
344
|
+
function at(n, t) {
|
|
367
345
|
for (const r in n)
|
|
368
346
|
if (Object.prototype.hasOwnProperty.call(n, r) && t(n[r]))
|
|
369
347
|
return r;
|
|
370
348
|
}
|
|
371
|
-
function
|
|
349
|
+
function ot(n, t) {
|
|
372
350
|
for (let r = 0; r < n.length; r++)
|
|
373
351
|
if (t(n[r]))
|
|
374
352
|
return r;
|
|
375
353
|
}
|
|
376
|
-
function
|
|
354
|
+
function xe(n) {
|
|
377
355
|
return (t, r = {}) => {
|
|
378
356
|
const e = t.match(n.matchPattern);
|
|
379
357
|
if (!e) return null;
|
|
@@ -385,29 +363,29 @@ function Pe(n) {
|
|
|
385
363
|
return { value: s, rest: u };
|
|
386
364
|
};
|
|
387
365
|
}
|
|
388
|
-
const
|
|
366
|
+
const Oe = 6048e5, it = 864e5, fe = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
389
367
|
function p(n, t) {
|
|
390
|
-
return typeof n == "function" ? n(t) : n && typeof n == "object" &&
|
|
368
|
+
return typeof n == "function" ? n(t) : n && typeof n == "object" && fe in n ? n[fe](t) : n instanceof Date ? new n.constructor(t) : new Date(t);
|
|
391
369
|
}
|
|
392
|
-
function
|
|
370
|
+
function z(n, ...t) {
|
|
393
371
|
const r = p.bind(
|
|
394
372
|
null,
|
|
395
373
|
t.find((e) => typeof e == "object")
|
|
396
374
|
);
|
|
397
375
|
return t.map(r);
|
|
398
376
|
}
|
|
399
|
-
let
|
|
400
|
-
function
|
|
401
|
-
return
|
|
377
|
+
let st = {};
|
|
378
|
+
function Z() {
|
|
379
|
+
return st;
|
|
402
380
|
}
|
|
403
381
|
function l(n, t) {
|
|
404
382
|
return p(t || n, n);
|
|
405
383
|
}
|
|
406
|
-
function
|
|
407
|
-
const r =
|
|
384
|
+
function $(n, t) {
|
|
385
|
+
const r = Z(), e = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, a = l(n, t?.in), o = a.getDay(), s = (o < e ? 7 : 0) + o - e;
|
|
408
386
|
return a.setDate(a.getDate() - s), a.setHours(0, 0, 0, 0), a;
|
|
409
387
|
}
|
|
410
|
-
const
|
|
388
|
+
const ut = {
|
|
411
389
|
lessThanXSeconds: {
|
|
412
390
|
one: "less than a second",
|
|
413
391
|
other: "less than {{count}} seconds"
|
|
@@ -469,26 +447,26 @@ const ct = {
|
|
|
469
447
|
one: "almost 1 year",
|
|
470
448
|
other: "almost {{count}} years"
|
|
471
449
|
}
|
|
472
|
-
},
|
|
450
|
+
}, ct = (n, t, r) => {
|
|
473
451
|
let e;
|
|
474
|
-
const a =
|
|
452
|
+
const a = ut[n];
|
|
475
453
|
return typeof a == "string" ? e = a : t === 1 ? e = a.one : e = a.other.replace("{{count}}", t.toString()), r?.addSuffix ? r.comparison && r.comparison > 0 ? "in " + e : e + " ago" : e;
|
|
476
|
-
},
|
|
454
|
+
}, dt = {
|
|
477
455
|
lastWeek: "'last' eeee 'at' p",
|
|
478
456
|
yesterday: "'yesterday at' p",
|
|
479
457
|
today: "'today at' p",
|
|
480
458
|
tomorrow: "'tomorrow at' p",
|
|
481
459
|
nextWeek: "eeee 'at' p",
|
|
482
460
|
other: "P"
|
|
483
|
-
},
|
|
461
|
+
}, lt = (n, t, r, e) => dt[n], ht = {
|
|
484
462
|
narrow: ["B", "A"],
|
|
485
463
|
abbreviated: ["BC", "AD"],
|
|
486
464
|
wide: ["Before Christ", "Anno Domini"]
|
|
487
|
-
},
|
|
465
|
+
}, mt = {
|
|
488
466
|
narrow: ["1", "2", "3", "4"],
|
|
489
467
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
490
468
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
491
|
-
},
|
|
469
|
+
}, ft = {
|
|
492
470
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
493
471
|
abbreviated: [
|
|
494
472
|
"Jan",
|
|
@@ -518,7 +496,7 @@ const ct = {
|
|
|
518
496
|
"November",
|
|
519
497
|
"December"
|
|
520
498
|
]
|
|
521
|
-
},
|
|
499
|
+
}, gt = {
|
|
522
500
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
523
501
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
524
502
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -531,7 +509,7 @@ const ct = {
|
|
|
531
509
|
"Friday",
|
|
532
510
|
"Saturday"
|
|
533
511
|
]
|
|
534
|
-
},
|
|
512
|
+
}, pt = {
|
|
535
513
|
narrow: {
|
|
536
514
|
am: "a",
|
|
537
515
|
pm: "p",
|
|
@@ -562,7 +540,7 @@ const ct = {
|
|
|
562
540
|
evening: "evening",
|
|
563
541
|
night: "night"
|
|
564
542
|
}
|
|
565
|
-
},
|
|
543
|
+
}, yt = {
|
|
566
544
|
narrow: {
|
|
567
545
|
am: "a",
|
|
568
546
|
pm: "p",
|
|
@@ -593,7 +571,7 @@ const ct = {
|
|
|
593
571
|
evening: "in the evening",
|
|
594
572
|
night: "at night"
|
|
595
573
|
}
|
|
596
|
-
},
|
|
574
|
+
}, bt = (n, t) => {
|
|
597
575
|
const r = Number(n), e = r % 100;
|
|
598
576
|
if (e > 20 || e < 10)
|
|
599
577
|
switch (e % 10) {
|
|
@@ -605,44 +583,44 @@ const ct = {
|
|
|
605
583
|
return r + "rd";
|
|
606
584
|
}
|
|
607
585
|
return r + "th";
|
|
608
|
-
},
|
|
609
|
-
ordinalNumber:
|
|
610
|
-
era:
|
|
611
|
-
values:
|
|
586
|
+
}, wt = {
|
|
587
|
+
ordinalNumber: bt,
|
|
588
|
+
era: S({
|
|
589
|
+
values: ht,
|
|
612
590
|
defaultWidth: "wide"
|
|
613
591
|
}),
|
|
614
|
-
quarter:
|
|
615
|
-
values:
|
|
592
|
+
quarter: S({
|
|
593
|
+
values: mt,
|
|
616
594
|
defaultWidth: "wide",
|
|
617
595
|
argumentCallback: (n) => n - 1
|
|
618
596
|
}),
|
|
619
|
-
month:
|
|
620
|
-
values:
|
|
597
|
+
month: S({
|
|
598
|
+
values: ft,
|
|
621
599
|
defaultWidth: "wide"
|
|
622
600
|
}),
|
|
623
|
-
day:
|
|
624
|
-
values:
|
|
601
|
+
day: S({
|
|
602
|
+
values: gt,
|
|
625
603
|
defaultWidth: "wide"
|
|
626
604
|
}),
|
|
627
|
-
dayPeriod:
|
|
628
|
-
values:
|
|
605
|
+
dayPeriod: S({
|
|
606
|
+
values: pt,
|
|
629
607
|
defaultWidth: "wide",
|
|
630
|
-
formattingValues:
|
|
608
|
+
formattingValues: yt,
|
|
631
609
|
defaultFormattingWidth: "wide"
|
|
632
610
|
})
|
|
633
|
-
},
|
|
611
|
+
}, vt = /^(\d+)(th|st|nd|rd)?/i, Mt = /\d+/i, St = {
|
|
634
612
|
narrow: /^(b|a)/i,
|
|
635
613
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
636
614
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
637
|
-
},
|
|
615
|
+
}, kt = {
|
|
638
616
|
any: [/^b/i, /^(a|c)/i]
|
|
639
|
-
},
|
|
617
|
+
}, Dt = {
|
|
640
618
|
narrow: /^[1234]/i,
|
|
641
619
|
abbreviated: /^q[1234]/i,
|
|
642
620
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
643
|
-
},
|
|
621
|
+
}, xt = {
|
|
644
622
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
645
|
-
},
|
|
623
|
+
}, Ot = {
|
|
646
624
|
narrow: /^[jfmasond]/i,
|
|
647
625
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
648
626
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
@@ -675,18 +653,18 @@ const ct = {
|
|
|
675
653
|
/^n/i,
|
|
676
654
|
/^d/i
|
|
677
655
|
]
|
|
678
|
-
},
|
|
656
|
+
}, Pt = {
|
|
679
657
|
narrow: /^[smtwf]/i,
|
|
680
658
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
681
659
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
682
660
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
683
|
-
},
|
|
661
|
+
}, Wt = {
|
|
684
662
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
685
663
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
686
|
-
},
|
|
664
|
+
}, Nt = {
|
|
687
665
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
688
666
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
689
|
-
},
|
|
667
|
+
}, jt = {
|
|
690
668
|
any: {
|
|
691
669
|
am: /^a/i,
|
|
692
670
|
pm: /^p/i,
|
|
@@ -697,83 +675,83 @@ const ct = {
|
|
|
697
675
|
evening: /evening/i,
|
|
698
676
|
night: /night/i
|
|
699
677
|
}
|
|
700
|
-
},
|
|
701
|
-
ordinalNumber:
|
|
702
|
-
matchPattern:
|
|
703
|
-
parsePattern:
|
|
678
|
+
}, Ct = {
|
|
679
|
+
ordinalNumber: xe({
|
|
680
|
+
matchPattern: vt,
|
|
681
|
+
parsePattern: Mt,
|
|
704
682
|
valueCallback: (n) => parseInt(n, 10)
|
|
705
683
|
}),
|
|
706
|
-
era:
|
|
707
|
-
matchPatterns:
|
|
684
|
+
era: k({
|
|
685
|
+
matchPatterns: St,
|
|
708
686
|
defaultMatchWidth: "wide",
|
|
709
|
-
parsePatterns:
|
|
687
|
+
parsePatterns: kt,
|
|
710
688
|
defaultParseWidth: "any"
|
|
711
689
|
}),
|
|
712
|
-
quarter:
|
|
713
|
-
matchPatterns:
|
|
690
|
+
quarter: k({
|
|
691
|
+
matchPatterns: Dt,
|
|
714
692
|
defaultMatchWidth: "wide",
|
|
715
|
-
parsePatterns:
|
|
693
|
+
parsePatterns: xt,
|
|
716
694
|
defaultParseWidth: "any",
|
|
717
695
|
valueCallback: (n) => n + 1
|
|
718
696
|
}),
|
|
719
|
-
month:
|
|
720
|
-
matchPatterns:
|
|
697
|
+
month: k({
|
|
698
|
+
matchPatterns: Ot,
|
|
721
699
|
defaultMatchWidth: "wide",
|
|
722
700
|
parsePatterns: Tt,
|
|
723
701
|
defaultParseWidth: "any"
|
|
724
702
|
}),
|
|
725
|
-
day:
|
|
726
|
-
matchPatterns:
|
|
703
|
+
day: k({
|
|
704
|
+
matchPatterns: Pt,
|
|
727
705
|
defaultMatchWidth: "wide",
|
|
728
|
-
parsePatterns:
|
|
706
|
+
parsePatterns: Wt,
|
|
729
707
|
defaultParseWidth: "any"
|
|
730
708
|
}),
|
|
731
|
-
dayPeriod:
|
|
732
|
-
matchPatterns:
|
|
709
|
+
dayPeriod: k({
|
|
710
|
+
matchPatterns: Nt,
|
|
733
711
|
defaultMatchWidth: "any",
|
|
734
|
-
parsePatterns:
|
|
712
|
+
parsePatterns: jt,
|
|
735
713
|
defaultParseWidth: "any"
|
|
736
714
|
})
|
|
737
|
-
},
|
|
715
|
+
}, Yt = {
|
|
738
716
|
full: "EEEE, MMMM do, y",
|
|
739
717
|
long: "MMMM do, y",
|
|
740
718
|
medium: "MMM d, y",
|
|
741
719
|
short: "MM/dd/yyyy"
|
|
742
|
-
},
|
|
720
|
+
}, Ft = {
|
|
743
721
|
full: "h:mm:ss a zzzz",
|
|
744
722
|
long: "h:mm:ss a z",
|
|
745
723
|
medium: "h:mm:ss a",
|
|
746
724
|
short: "h:mm a"
|
|
747
|
-
},
|
|
725
|
+
}, Ht = {
|
|
748
726
|
full: "{{date}} 'at' {{time}}",
|
|
749
727
|
long: "{{date}} 'at' {{time}}",
|
|
750
728
|
medium: "{{date}}, {{time}}",
|
|
751
729
|
short: "{{date}}, {{time}}"
|
|
752
|
-
},
|
|
753
|
-
date:
|
|
754
|
-
formats:
|
|
730
|
+
}, $t = {
|
|
731
|
+
date: H({
|
|
732
|
+
formats: Yt,
|
|
755
733
|
defaultWidth: "full"
|
|
756
734
|
}),
|
|
757
|
-
time:
|
|
758
|
-
formats:
|
|
735
|
+
time: H({
|
|
736
|
+
formats: Ft,
|
|
759
737
|
defaultWidth: "full"
|
|
760
738
|
}),
|
|
761
|
-
dateTime:
|
|
762
|
-
formats:
|
|
739
|
+
dateTime: H({
|
|
740
|
+
formats: Ht,
|
|
763
741
|
defaultWidth: "full"
|
|
764
742
|
})
|
|
765
|
-
},
|
|
743
|
+
}, F = {
|
|
766
744
|
code: "en-US",
|
|
767
|
-
formatDistance:
|
|
768
|
-
formatLong:
|
|
769
|
-
formatRelative:
|
|
770
|
-
localize:
|
|
771
|
-
match:
|
|
745
|
+
formatDistance: ct,
|
|
746
|
+
formatLong: $t,
|
|
747
|
+
formatRelative: lt,
|
|
748
|
+
localize: wt,
|
|
749
|
+
match: Ct,
|
|
772
750
|
options: {
|
|
773
751
|
weekStartsOn: 0,
|
|
774
752
|
firstWeekContainsDate: 1
|
|
775
753
|
}
|
|
776
|
-
},
|
|
754
|
+
}, zt = {
|
|
777
755
|
lessThanXSeconds: {
|
|
778
756
|
one: "menos de um segundo",
|
|
779
757
|
other: "menos de {{count}} segundos"
|
|
@@ -835,39 +813,39 @@ const ct = {
|
|
|
835
813
|
one: "quase 1 ano",
|
|
836
814
|
other: "quase {{count}} anos"
|
|
837
815
|
}
|
|
838
|
-
},
|
|
816
|
+
}, Et = (n, t, r) => {
|
|
839
817
|
let e;
|
|
840
|
-
const a =
|
|
818
|
+
const a = zt[n];
|
|
841
819
|
return typeof a == "string" ? e = a : t === 1 ? e = a.one : e = a.other.replace("{{count}}", String(t)), r?.addSuffix ? r.comparison && r.comparison > 0 ? "em " + e : "há " + e : e;
|
|
842
|
-
},
|
|
820
|
+
}, Lt = {
|
|
843
821
|
full: "EEEE, d 'de' MMMM 'de' y",
|
|
844
822
|
long: "d 'de' MMMM 'de' y",
|
|
845
823
|
medium: "d MMM y",
|
|
846
824
|
short: "dd/MM/yyyy"
|
|
847
|
-
},
|
|
825
|
+
}, qt = {
|
|
848
826
|
full: "HH:mm:ss zzzz",
|
|
849
827
|
long: "HH:mm:ss z",
|
|
850
828
|
medium: "HH:mm:ss",
|
|
851
829
|
short: "HH:mm"
|
|
852
|
-
},
|
|
830
|
+
}, Ut = {
|
|
853
831
|
full: "{{date}} 'às' {{time}}",
|
|
854
832
|
long: "{{date}} 'às' {{time}}",
|
|
855
833
|
medium: "{{date}}, {{time}}",
|
|
856
834
|
short: "{{date}}, {{time}}"
|
|
857
|
-
},
|
|
858
|
-
date:
|
|
859
|
-
formats:
|
|
835
|
+
}, It = {
|
|
836
|
+
date: H({
|
|
837
|
+
formats: Lt,
|
|
860
838
|
defaultWidth: "full"
|
|
861
839
|
}),
|
|
862
|
-
time:
|
|
863
|
-
formats:
|
|
840
|
+
time: H({
|
|
841
|
+
formats: qt,
|
|
864
842
|
defaultWidth: "full"
|
|
865
843
|
}),
|
|
866
|
-
dateTime:
|
|
867
|
-
formats:
|
|
844
|
+
dateTime: H({
|
|
845
|
+
formats: Ut,
|
|
868
846
|
defaultWidth: "full"
|
|
869
847
|
})
|
|
870
|
-
},
|
|
848
|
+
}, _t = {
|
|
871
849
|
lastWeek: (n) => {
|
|
872
850
|
const t = n.getDay();
|
|
873
851
|
return "'" + (t === 0 || t === 6 ? "último" : "última") + "' eeee 'às' p";
|
|
@@ -877,18 +855,18 @@ const ct = {
|
|
|
877
855
|
tomorrow: "'amanhã às' p",
|
|
878
856
|
nextWeek: "eeee 'às' p",
|
|
879
857
|
other: "P"
|
|
880
|
-
},
|
|
881
|
-
const a =
|
|
858
|
+
}, At = (n, t, r, e) => {
|
|
859
|
+
const a = _t[n];
|
|
882
860
|
return typeof a == "function" ? a(t) : a;
|
|
883
861
|
}, Zt = {
|
|
884
862
|
narrow: ["AC", "DC"],
|
|
885
863
|
abbreviated: ["AC", "DC"],
|
|
886
864
|
wide: ["antes de cristo", "depois de cristo"]
|
|
887
|
-
},
|
|
865
|
+
}, Bt = {
|
|
888
866
|
narrow: ["1", "2", "3", "4"],
|
|
889
867
|
abbreviated: ["T1", "T2", "T3", "T4"],
|
|
890
868
|
wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"]
|
|
891
|
-
},
|
|
869
|
+
}, Xt = {
|
|
892
870
|
narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
|
|
893
871
|
abbreviated: [
|
|
894
872
|
"jan",
|
|
@@ -939,7 +917,7 @@ const ct = {
|
|
|
939
917
|
"sexta-feira",
|
|
940
918
|
"sábado"
|
|
941
919
|
]
|
|
942
|
-
},
|
|
920
|
+
}, Gt = {
|
|
943
921
|
narrow: {
|
|
944
922
|
am: "a",
|
|
945
923
|
pm: "p",
|
|
@@ -970,7 +948,7 @@ const ct = {
|
|
|
970
948
|
evening: "tarde",
|
|
971
949
|
night: "noite"
|
|
972
950
|
}
|
|
973
|
-
},
|
|
951
|
+
}, Qt = {
|
|
974
952
|
narrow: {
|
|
975
953
|
am: "a",
|
|
976
954
|
pm: "p",
|
|
@@ -1001,52 +979,52 @@ const ct = {
|
|
|
1001
979
|
evening: "da tarde",
|
|
1002
980
|
night: "da noite"
|
|
1003
981
|
}
|
|
1004
|
-
},
|
|
982
|
+
}, Jt = (n, t) => {
|
|
1005
983
|
const r = Number(n);
|
|
1006
984
|
return t?.unit === "week" ? r + "ª" : r + "º";
|
|
1007
|
-
},
|
|
1008
|
-
ordinalNumber:
|
|
1009
|
-
era:
|
|
985
|
+
}, Vt = {
|
|
986
|
+
ordinalNumber: Jt,
|
|
987
|
+
era: S({
|
|
1010
988
|
values: Zt,
|
|
1011
989
|
defaultWidth: "wide"
|
|
1012
990
|
}),
|
|
1013
|
-
quarter:
|
|
1014
|
-
values:
|
|
991
|
+
quarter: S({
|
|
992
|
+
values: Bt,
|
|
1015
993
|
defaultWidth: "wide",
|
|
1016
994
|
argumentCallback: (n) => n - 1
|
|
1017
995
|
}),
|
|
1018
|
-
month:
|
|
1019
|
-
values:
|
|
996
|
+
month: S({
|
|
997
|
+
values: Xt,
|
|
1020
998
|
defaultWidth: "wide"
|
|
1021
999
|
}),
|
|
1022
|
-
day:
|
|
1000
|
+
day: S({
|
|
1023
1001
|
values: Rt,
|
|
1024
1002
|
defaultWidth: "wide"
|
|
1025
1003
|
}),
|
|
1026
|
-
dayPeriod:
|
|
1027
|
-
values:
|
|
1004
|
+
dayPeriod: S({
|
|
1005
|
+
values: Gt,
|
|
1028
1006
|
defaultWidth: "wide",
|
|
1029
|
-
formattingValues:
|
|
1007
|
+
formattingValues: Qt,
|
|
1030
1008
|
defaultFormattingWidth: "wide"
|
|
1031
1009
|
})
|
|
1032
|
-
},
|
|
1010
|
+
}, Kt = /^(\d+)[ºªo]?/i, en = /\d+/i, tn = {
|
|
1033
1011
|
narrow: /^(ac|dc|a|d)/i,
|
|
1034
1012
|
abbreviated: /^(a\.?\s?c\.?|d\.?\s?c\.?)/i,
|
|
1035
1013
|
wide: /^(antes de cristo|depois de cristo)/i
|
|
1036
|
-
},
|
|
1014
|
+
}, nn = {
|
|
1037
1015
|
any: [/^ac/i, /^dc/i],
|
|
1038
1016
|
wide: [/^antes de cristo/i, /^depois de cristo/i]
|
|
1039
|
-
},
|
|
1017
|
+
}, rn = {
|
|
1040
1018
|
narrow: /^[1234]/i,
|
|
1041
1019
|
abbreviated: /^T[1234]/i,
|
|
1042
1020
|
wide: /^[1234](º)? trimestre/i
|
|
1043
|
-
},
|
|
1021
|
+
}, an = {
|
|
1044
1022
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1045
|
-
},
|
|
1023
|
+
}, on = {
|
|
1046
1024
|
narrow: /^[jfmajsond]/i,
|
|
1047
1025
|
abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,
|
|
1048
1026
|
wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i
|
|
1049
|
-
},
|
|
1027
|
+
}, sn = {
|
|
1050
1028
|
narrow: [
|
|
1051
1029
|
/^j/i,
|
|
1052
1030
|
/^f/i,
|
|
@@ -1075,19 +1053,19 @@ const ct = {
|
|
|
1075
1053
|
/^nov/i,
|
|
1076
1054
|
/^dez/i
|
|
1077
1055
|
]
|
|
1078
|
-
},
|
|
1056
|
+
}, un = {
|
|
1079
1057
|
narrow: /^(dom|[23456]ª?|s[aá]b)/i,
|
|
1080
1058
|
short: /^(dom|[23456]ª?|s[aá]b)/i,
|
|
1081
1059
|
abbreviated: /^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,
|
|
1082
1060
|
wide: /^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i
|
|
1083
|
-
},
|
|
1061
|
+
}, cn = {
|
|
1084
1062
|
short: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i],
|
|
1085
1063
|
narrow: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i],
|
|
1086
1064
|
any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[aá]b/i]
|
|
1087
|
-
},
|
|
1065
|
+
}, dn = {
|
|
1088
1066
|
narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i,
|
|
1089
1067
|
any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i
|
|
1090
|
-
},
|
|
1068
|
+
}, ln = {
|
|
1091
1069
|
any: {
|
|
1092
1070
|
am: /^a/i,
|
|
1093
1071
|
pm: /^p/i,
|
|
@@ -1098,56 +1076,56 @@ const ct = {
|
|
|
1098
1076
|
evening: /tarde/i,
|
|
1099
1077
|
night: /noite/i
|
|
1100
1078
|
}
|
|
1101
|
-
},
|
|
1102
|
-
ordinalNumber:
|
|
1103
|
-
matchPattern:
|
|
1104
|
-
parsePattern:
|
|
1079
|
+
}, hn = {
|
|
1080
|
+
ordinalNumber: xe({
|
|
1081
|
+
matchPattern: Kt,
|
|
1082
|
+
parsePattern: en,
|
|
1105
1083
|
valueCallback: (n) => parseInt(n, 10)
|
|
1106
1084
|
}),
|
|
1107
|
-
era:
|
|
1108
|
-
matchPatterns:
|
|
1085
|
+
era: k({
|
|
1086
|
+
matchPatterns: tn,
|
|
1109
1087
|
defaultMatchWidth: "wide",
|
|
1110
|
-
parsePatterns:
|
|
1088
|
+
parsePatterns: nn,
|
|
1111
1089
|
defaultParseWidth: "any"
|
|
1112
1090
|
}),
|
|
1113
|
-
quarter:
|
|
1114
|
-
matchPatterns:
|
|
1091
|
+
quarter: k({
|
|
1092
|
+
matchPatterns: rn,
|
|
1115
1093
|
defaultMatchWidth: "wide",
|
|
1116
|
-
parsePatterns:
|
|
1094
|
+
parsePatterns: an,
|
|
1117
1095
|
defaultParseWidth: "any",
|
|
1118
1096
|
valueCallback: (n) => n + 1
|
|
1119
1097
|
}),
|
|
1120
|
-
month:
|
|
1121
|
-
matchPatterns:
|
|
1098
|
+
month: k({
|
|
1099
|
+
matchPatterns: on,
|
|
1122
1100
|
defaultMatchWidth: "wide",
|
|
1123
|
-
parsePatterns:
|
|
1101
|
+
parsePatterns: sn,
|
|
1124
1102
|
defaultParseWidth: "any"
|
|
1125
1103
|
}),
|
|
1126
|
-
day:
|
|
1127
|
-
matchPatterns:
|
|
1104
|
+
day: k({
|
|
1105
|
+
matchPatterns: un,
|
|
1128
1106
|
defaultMatchWidth: "wide",
|
|
1129
|
-
parsePatterns:
|
|
1107
|
+
parsePatterns: cn,
|
|
1130
1108
|
defaultParseWidth: "any"
|
|
1131
1109
|
}),
|
|
1132
|
-
dayPeriod:
|
|
1133
|
-
matchPatterns:
|
|
1110
|
+
dayPeriod: k({
|
|
1111
|
+
matchPatterns: dn,
|
|
1134
1112
|
defaultMatchWidth: "any",
|
|
1135
|
-
parsePatterns:
|
|
1113
|
+
parsePatterns: ln,
|
|
1136
1114
|
defaultParseWidth: "any"
|
|
1137
1115
|
})
|
|
1138
|
-
},
|
|
1116
|
+
}, mn = {
|
|
1139
1117
|
code: "pt-BR",
|
|
1140
|
-
formatDistance:
|
|
1141
|
-
formatLong:
|
|
1142
|
-
formatRelative:
|
|
1143
|
-
localize:
|
|
1144
|
-
match:
|
|
1118
|
+
formatDistance: Et,
|
|
1119
|
+
formatLong: It,
|
|
1120
|
+
formatRelative: At,
|
|
1121
|
+
localize: Vt,
|
|
1122
|
+
match: hn,
|
|
1145
1123
|
options: {
|
|
1146
1124
|
weekStartsOn: 0,
|
|
1147
1125
|
firstWeekContainsDate: 1
|
|
1148
1126
|
}
|
|
1149
1127
|
};
|
|
1150
|
-
function
|
|
1128
|
+
function fn(n, t, r = "long") {
|
|
1151
1129
|
return new Intl.DateTimeFormat("en-US", {
|
|
1152
1130
|
// Enforces engine to render the time. Without the option JavaScriptCore omits it.
|
|
1153
1131
|
hour: "numeric",
|
|
@@ -1155,74 +1133,74 @@ function gn(n, t, r = "long") {
|
|
|
1155
1133
|
timeZoneName: r
|
|
1156
1134
|
}).format(t).split(/\s/g).slice(2).join(" ");
|
|
1157
1135
|
}
|
|
1158
|
-
const
|
|
1159
|
-
function
|
|
1136
|
+
const gn = {}, U = {};
|
|
1137
|
+
function W(n, t) {
|
|
1160
1138
|
try {
|
|
1161
|
-
const r = (
|
|
1139
|
+
const r = (gn[n] ||= new Intl.DateTimeFormat("en-US", {
|
|
1162
1140
|
timeZone: n,
|
|
1163
1141
|
timeZoneName: "longOffset"
|
|
1164
1142
|
}).format)(t).split("GMT")[1];
|
|
1165
|
-
return r in
|
|
1143
|
+
return r in U ? U[r] : ge(r, r.split(":"));
|
|
1166
1144
|
} catch {
|
|
1167
|
-
if (n in
|
|
1168
|
-
const r = n?.match(
|
|
1169
|
-
return r ?
|
|
1145
|
+
if (n in U) return U[n];
|
|
1146
|
+
const r = n?.match(pn);
|
|
1147
|
+
return r ? ge(n, r.slice(1)) : NaN;
|
|
1170
1148
|
}
|
|
1171
1149
|
}
|
|
1172
|
-
const
|
|
1173
|
-
function
|
|
1150
|
+
const pn = /([+-]\d\d):?(\d\d)?/;
|
|
1151
|
+
function ge(n, t) {
|
|
1174
1152
|
const r = +(t[0] || 0), e = +(t[1] || 0), a = +(t[2] || 0) / 60;
|
|
1175
|
-
return
|
|
1153
|
+
return U[n] = r * 60 + e > 0 ? r * 60 + e + a : r * 60 - e - a;
|
|
1176
1154
|
}
|
|
1177
|
-
class
|
|
1155
|
+
class D extends Date {
|
|
1178
1156
|
//#region static
|
|
1179
1157
|
constructor(...t) {
|
|
1180
|
-
super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(
|
|
1158
|
+
super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(W(this.timeZone, this)) ? this.setTime(NaN) : t.length ? typeof t[0] == "number" && (t.length === 1 || t.length === 2 && typeof t[1] != "number") ? this.setTime(t[0]) : typeof t[0] == "string" ? this.setTime(+new Date(t[0])) : t[0] instanceof Date ? this.setTime(+t[0]) : (this.setTime(+new Date(...t)), Te(this), re(this)) : this.setTime(Date.now());
|
|
1181
1159
|
}
|
|
1182
1160
|
static tz(t, ...r) {
|
|
1183
|
-
return r.length ? new
|
|
1161
|
+
return r.length ? new D(...r, t) : new D(Date.now(), t);
|
|
1184
1162
|
}
|
|
1185
1163
|
//#endregion
|
|
1186
1164
|
//#region time zone
|
|
1187
1165
|
withTimeZone(t) {
|
|
1188
|
-
return new
|
|
1166
|
+
return new D(+this, t);
|
|
1189
1167
|
}
|
|
1190
1168
|
getTimezoneOffset() {
|
|
1191
|
-
const t = -
|
|
1169
|
+
const t = -W(this.timeZone, this);
|
|
1192
1170
|
return t > 0 ? Math.floor(t) : Math.ceil(t);
|
|
1193
1171
|
}
|
|
1194
1172
|
//#endregion
|
|
1195
1173
|
//#region time
|
|
1196
1174
|
setTime(t) {
|
|
1197
|
-
return Date.prototype.setTime.apply(this, arguments),
|
|
1175
|
+
return Date.prototype.setTime.apply(this, arguments), re(this), +this;
|
|
1198
1176
|
}
|
|
1199
1177
|
//#endregion
|
|
1200
1178
|
//#region date-fns integration
|
|
1201
|
-
[Symbol.for("constructDateFrom")](t) {
|
|
1202
|
-
return new
|
|
1179
|
+
[/* @__PURE__ */ Symbol.for("constructDateFrom")](t) {
|
|
1180
|
+
return new D(+new Date(t), this.timeZone);
|
|
1203
1181
|
}
|
|
1204
1182
|
//#endregion
|
|
1205
1183
|
}
|
|
1206
|
-
const
|
|
1184
|
+
const pe = /^(get|set)(?!UTC)/;
|
|
1207
1185
|
Object.getOwnPropertyNames(Date.prototype).forEach((n) => {
|
|
1208
|
-
if (!
|
|
1209
|
-
const t = n.replace(
|
|
1210
|
-
|
|
1186
|
+
if (!pe.test(n)) return;
|
|
1187
|
+
const t = n.replace(pe, "$1UTC");
|
|
1188
|
+
D.prototype[t] && (n.startsWith("get") ? D.prototype[n] = function() {
|
|
1211
1189
|
return this.internal[t]();
|
|
1212
|
-
} : (
|
|
1213
|
-
return Date.prototype[t].apply(this.internal, arguments),
|
|
1214
|
-
},
|
|
1215
|
-
return Date.prototype[t].apply(this, arguments),
|
|
1190
|
+
} : (D.prototype[n] = function() {
|
|
1191
|
+
return Date.prototype[t].apply(this.internal, arguments), yn(this), +this;
|
|
1192
|
+
}, D.prototype[t] = function() {
|
|
1193
|
+
return Date.prototype[t].apply(this, arguments), re(this), +this;
|
|
1216
1194
|
}));
|
|
1217
1195
|
});
|
|
1218
|
-
function
|
|
1219
|
-
n.internal.setTime(+n), n.internal.setUTCSeconds(n.internal.getUTCSeconds() - Math.round(-
|
|
1196
|
+
function re(n) {
|
|
1197
|
+
n.internal.setTime(+n), n.internal.setUTCSeconds(n.internal.getUTCSeconds() - Math.round(-W(n.timeZone, n) * 60));
|
|
1220
1198
|
}
|
|
1221
|
-
function
|
|
1222
|
-
Date.prototype.setFullYear.call(n, n.internal.getUTCFullYear(), n.internal.getUTCMonth(), n.internal.getUTCDate()), Date.prototype.setHours.call(n, n.internal.getUTCHours(), n.internal.getUTCMinutes(), n.internal.getUTCSeconds(), n.internal.getUTCMilliseconds()),
|
|
1199
|
+
function yn(n) {
|
|
1200
|
+
Date.prototype.setFullYear.call(n, n.internal.getUTCFullYear(), n.internal.getUTCMonth(), n.internal.getUTCDate()), Date.prototype.setHours.call(n, n.internal.getUTCHours(), n.internal.getUTCMinutes(), n.internal.getUTCSeconds(), n.internal.getUTCMilliseconds()), Te(n);
|
|
1223
1201
|
}
|
|
1224
|
-
function
|
|
1225
|
-
const t =
|
|
1202
|
+
function Te(n) {
|
|
1203
|
+
const t = W(n.timeZone, n), r = t > 0 ? Math.floor(t) : Math.ceil(t), e = /* @__PURE__ */ new Date(+n);
|
|
1226
1204
|
e.setUTCHours(e.getUTCHours() - 1);
|
|
1227
1205
|
const a = -(/* @__PURE__ */ new Date(+n)).getTimezoneOffset(), o = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset(), s = a - o, u = Date.prototype.getHours.apply(n) !== n.internal.getUTCHours();
|
|
1228
1206
|
s && u && n.internal.setUTCMinutes(n.internal.getUTCMinutes() + s);
|
|
@@ -1230,19 +1208,19 @@ function We(n) {
|
|
|
1230
1208
|
h && Date.prototype.setUTCMinutes.call(n, Date.prototype.getUTCMinutes.call(n) + h);
|
|
1231
1209
|
const v = /* @__PURE__ */ new Date(+n);
|
|
1232
1210
|
v.setUTCSeconds(0);
|
|
1233
|
-
const f = a > 0 ? v.getSeconds() : (v.getSeconds() - 60) % 60, m = Math.round(-(
|
|
1211
|
+
const f = a > 0 ? v.getSeconds() : (v.getSeconds() - 60) % 60, m = Math.round(-(W(n.timeZone, n) * 60)) % 60;
|
|
1234
1212
|
(m || f) && (n.internal.setUTCSeconds(n.internal.getUTCSeconds() + m), Date.prototype.setUTCSeconds.call(n, Date.prototype.getUTCSeconds.call(n) + m + f));
|
|
1235
|
-
const M =
|
|
1236
|
-
if (
|
|
1237
|
-
Date.prototype.setUTCMinutes.call(n, Date.prototype.getUTCMinutes.call(n) +
|
|
1238
|
-
const
|
|
1239
|
-
|
|
1213
|
+
const M = W(n.timeZone, n), O = M > 0 ? Math.floor(M) : Math.ceil(M), B = -(/* @__PURE__ */ new Date(+n)).getTimezoneOffset() - O, R = O !== r, j = B - h;
|
|
1214
|
+
if (R && j) {
|
|
1215
|
+
Date.prototype.setUTCMinutes.call(n, Date.prototype.getUTCMinutes.call(n) + j);
|
|
1216
|
+
const E = W(n.timeZone, n), G = E > 0 ? Math.floor(E) : Math.ceil(E), L = O - G;
|
|
1217
|
+
L && (n.internal.setUTCMinutes(n.internal.getUTCMinutes() + L), Date.prototype.setUTCMinutes.call(n, Date.prototype.getUTCMinutes.call(n) + L));
|
|
1240
1218
|
}
|
|
1241
1219
|
}
|
|
1242
|
-
class
|
|
1220
|
+
class N extends D {
|
|
1243
1221
|
//#region static
|
|
1244
1222
|
static tz(t, ...r) {
|
|
1245
|
-
return r.length ? new
|
|
1223
|
+
return r.length ? new N(...r, t) : new N(Date.now(), t);
|
|
1246
1224
|
}
|
|
1247
1225
|
//#endregion
|
|
1248
1226
|
//#region representation
|
|
@@ -1259,7 +1237,7 @@ class j extends x {
|
|
|
1259
1237
|
}
|
|
1260
1238
|
toTimeString() {
|
|
1261
1239
|
const t = this.internal.toUTCString().split(" ")[4], [r, e, a] = this.tzComponents();
|
|
1262
|
-
return `${t} GMT${r}${e}${a} (${
|
|
1240
|
+
return `${t} GMT${r}${e}${a} (${fn(this.timeZone, this)})`;
|
|
1263
1241
|
}
|
|
1264
1242
|
toLocaleString(t, r) {
|
|
1265
1243
|
return Date.prototype.toLocaleString.call(this, t, {
|
|
@@ -1287,19 +1265,19 @@ class j extends x {
|
|
|
1287
1265
|
}
|
|
1288
1266
|
//#endregion
|
|
1289
1267
|
withTimeZone(t) {
|
|
1290
|
-
return new
|
|
1268
|
+
return new N(+this, t);
|
|
1291
1269
|
}
|
|
1292
1270
|
//#region date-fns integration
|
|
1293
|
-
[Symbol.for("constructDateFrom")](t) {
|
|
1294
|
-
return new
|
|
1271
|
+
[/* @__PURE__ */ Symbol.for("constructDateFrom")](t) {
|
|
1272
|
+
return new N(+new Date(t), this.timeZone);
|
|
1295
1273
|
}
|
|
1296
1274
|
//#endregion
|
|
1297
1275
|
}
|
|
1298
|
-
function
|
|
1276
|
+
function Pe(n, t, r) {
|
|
1299
1277
|
const e = l(n, r?.in);
|
|
1300
1278
|
return isNaN(t) ? p(n, NaN) : (t && e.setDate(e.getDate() + t), e);
|
|
1301
1279
|
}
|
|
1302
|
-
function
|
|
1280
|
+
function We(n, t, r) {
|
|
1303
1281
|
const e = l(n, r?.in);
|
|
1304
1282
|
if (isNaN(t)) return p(n, NaN);
|
|
1305
1283
|
if (!t)
|
|
@@ -1313,18 +1291,18 @@ function je(n, t, r) {
|
|
|
1313
1291
|
a
|
|
1314
1292
|
), e);
|
|
1315
1293
|
}
|
|
1316
|
-
function
|
|
1317
|
-
return
|
|
1294
|
+
function _(n, t) {
|
|
1295
|
+
return $(n, { ...t, weekStartsOn: 1 });
|
|
1318
1296
|
}
|
|
1319
|
-
function
|
|
1297
|
+
function Ne(n, t) {
|
|
1320
1298
|
const r = l(n, t?.in), e = r.getFullYear(), a = p(r, 0);
|
|
1321
1299
|
a.setFullYear(e + 1, 0, 4), a.setHours(0, 0, 0, 0);
|
|
1322
|
-
const o =
|
|
1300
|
+
const o = _(a), s = p(r, 0);
|
|
1323
1301
|
s.setFullYear(e, 0, 4), s.setHours(0, 0, 0, 0);
|
|
1324
|
-
const u =
|
|
1302
|
+
const u = _(s);
|
|
1325
1303
|
return r.getTime() >= o.getTime() ? e + 1 : r.getTime() >= u.getTime() ? e : e - 1;
|
|
1326
1304
|
}
|
|
1327
|
-
function
|
|
1305
|
+
function ye(n) {
|
|
1328
1306
|
const t = l(n), r = new Date(
|
|
1329
1307
|
Date.UTC(
|
|
1330
1308
|
t.getFullYear(),
|
|
@@ -1338,29 +1316,29 @@ function we(n) {
|
|
|
1338
1316
|
);
|
|
1339
1317
|
return r.setUTCFullYear(t.getFullYear()), +n - +r;
|
|
1340
1318
|
}
|
|
1341
|
-
function
|
|
1319
|
+
function A(n, t) {
|
|
1342
1320
|
const r = l(n, t?.in);
|
|
1343
1321
|
return r.setHours(0, 0, 0, 0), r;
|
|
1344
1322
|
}
|
|
1345
|
-
function
|
|
1346
|
-
const [e, a] =
|
|
1323
|
+
function je(n, t, r) {
|
|
1324
|
+
const [e, a] = z(
|
|
1347
1325
|
r?.in,
|
|
1348
1326
|
n,
|
|
1349
1327
|
t
|
|
1350
|
-
), o =
|
|
1351
|
-
return Math.round((u - h) /
|
|
1328
|
+
), o = A(e), s = A(a), u = +o - ye(o), h = +s - ye(s);
|
|
1329
|
+
return Math.round((u - h) / it);
|
|
1352
1330
|
}
|
|
1353
|
-
function
|
|
1354
|
-
const r =
|
|
1355
|
-
return e.setFullYear(r, 0, 4), e.setHours(0, 0, 0, 0),
|
|
1331
|
+
function bn(n, t) {
|
|
1332
|
+
const r = Ne(n, t), e = p(n, 0);
|
|
1333
|
+
return e.setFullYear(r, 0, 4), e.setHours(0, 0, 0, 0), _(e);
|
|
1356
1334
|
}
|
|
1357
|
-
function
|
|
1358
|
-
return
|
|
1335
|
+
function wn(n, t, r) {
|
|
1336
|
+
return Pe(n, t * 7, r);
|
|
1359
1337
|
}
|
|
1360
|
-
function
|
|
1361
|
-
return
|
|
1338
|
+
function vn(n, t, r) {
|
|
1339
|
+
return We(n, t * 12, r);
|
|
1362
1340
|
}
|
|
1363
|
-
function
|
|
1341
|
+
function Mn(n, t) {
|
|
1364
1342
|
let r, e = t?.in;
|
|
1365
1343
|
return n.forEach((a) => {
|
|
1366
1344
|
!e && typeof a == "object" && (e = p.bind(null, a));
|
|
@@ -1368,7 +1346,7 @@ function Sn(n, t) {
|
|
|
1368
1346
|
(!r || r < o || isNaN(+o)) && (r = o);
|
|
1369
1347
|
}), p(e, r || NaN);
|
|
1370
1348
|
}
|
|
1371
|
-
function
|
|
1349
|
+
function Sn(n, t) {
|
|
1372
1350
|
let r, e = t?.in;
|
|
1373
1351
|
return n.forEach((a) => {
|
|
1374
1352
|
!e && typeof a == "object" && (e = p.bind(null, a));
|
|
@@ -1376,38 +1354,38 @@ function kn(n, t) {
|
|
|
1376
1354
|
(!r || r > o || isNaN(+o)) && (r = o);
|
|
1377
1355
|
}), p(e, r || NaN);
|
|
1378
1356
|
}
|
|
1379
|
-
function
|
|
1380
|
-
const [e, a] =
|
|
1357
|
+
function kn(n, t, r) {
|
|
1358
|
+
const [e, a] = z(
|
|
1381
1359
|
r?.in,
|
|
1382
1360
|
n,
|
|
1383
1361
|
t
|
|
1384
1362
|
);
|
|
1385
|
-
return +
|
|
1363
|
+
return +A(e) == +A(a);
|
|
1386
1364
|
}
|
|
1387
|
-
function
|
|
1365
|
+
function Ce(n) {
|
|
1388
1366
|
return n instanceof Date || typeof n == "object" && Object.prototype.toString.call(n) === "[object Date]";
|
|
1389
1367
|
}
|
|
1390
|
-
function
|
|
1391
|
-
return !(!
|
|
1368
|
+
function Dn(n) {
|
|
1369
|
+
return !(!Ce(n) && typeof n != "number" || isNaN(+l(n)));
|
|
1392
1370
|
}
|
|
1393
|
-
function
|
|
1394
|
-
const [e, a] =
|
|
1371
|
+
function xn(n, t, r) {
|
|
1372
|
+
const [e, a] = z(
|
|
1395
1373
|
r?.in,
|
|
1396
1374
|
n,
|
|
1397
1375
|
t
|
|
1398
1376
|
), o = e.getFullYear() - a.getFullYear(), s = e.getMonth() - a.getMonth();
|
|
1399
1377
|
return o * 12 + s;
|
|
1400
1378
|
}
|
|
1401
|
-
function
|
|
1379
|
+
function On(n, t) {
|
|
1402
1380
|
const r = l(n, t?.in), e = r.getMonth();
|
|
1403
1381
|
return r.setFullYear(r.getFullYear(), e + 1, 0), r.setHours(23, 59, 59, 999), r;
|
|
1404
1382
|
}
|
|
1405
|
-
function
|
|
1406
|
-
const [r, e] =
|
|
1383
|
+
function Ye(n, t) {
|
|
1384
|
+
const [r, e] = z(n, t.start, t.end);
|
|
1407
1385
|
return { start: r, end: e };
|
|
1408
1386
|
}
|
|
1409
1387
|
function Tn(n, t) {
|
|
1410
|
-
const { start: r, end: e } =
|
|
1388
|
+
const { start: r, end: e } = Ye(t?.in, n);
|
|
1411
1389
|
let a = +r > +e;
|
|
1412
1390
|
const o = a ? +r : +e, s = a ? e : r;
|
|
1413
1391
|
s.setHours(0, 0, 0, 0), s.setDate(1);
|
|
@@ -1417,20 +1395,20 @@ function Tn(n, t) {
|
|
|
1417
1395
|
h.push(p(r, s)), s.setMonth(s.getMonth() + u);
|
|
1418
1396
|
return a ? h.reverse() : h;
|
|
1419
1397
|
}
|
|
1420
|
-
function
|
|
1398
|
+
function Pn(n, t) {
|
|
1421
1399
|
const r = l(n, t?.in);
|
|
1422
1400
|
return r.setDate(1), r.setHours(0, 0, 0, 0), r;
|
|
1423
1401
|
}
|
|
1424
|
-
function
|
|
1402
|
+
function Wn(n, t) {
|
|
1425
1403
|
const r = l(n, t?.in), e = r.getFullYear();
|
|
1426
1404
|
return r.setFullYear(e + 1, 0, 0), r.setHours(23, 59, 59, 999), r;
|
|
1427
1405
|
}
|
|
1428
|
-
function
|
|
1406
|
+
function Fe(n, t) {
|
|
1429
1407
|
const r = l(n, t?.in);
|
|
1430
1408
|
return r.setFullYear(r.getFullYear(), 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
1431
1409
|
}
|
|
1432
|
-
function
|
|
1433
|
-
const { start: r, end: e } =
|
|
1410
|
+
function Nn(n, t) {
|
|
1411
|
+
const { start: r, end: e } = Ye(t?.in, n);
|
|
1434
1412
|
let a = +r > +e;
|
|
1435
1413
|
const o = a ? +r : +e, s = a ? e : r;
|
|
1436
1414
|
s.setHours(0, 0, 0, 0), s.setMonth(0, 1);
|
|
@@ -1441,41 +1419,41 @@ function jn(n, t) {
|
|
|
1441
1419
|
return a ? h.reverse() : h;
|
|
1442
1420
|
}
|
|
1443
1421
|
function He(n, t) {
|
|
1444
|
-
const r =
|
|
1422
|
+
const r = Z(), e = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, a = l(n, t?.in), o = a.getDay(), s = (o < e ? -7 : 0) + 6 - (o - e);
|
|
1445
1423
|
return a.setDate(a.getDate() + s), a.setHours(23, 59, 59, 999), a;
|
|
1446
1424
|
}
|
|
1447
|
-
function
|
|
1425
|
+
function jn(n, t) {
|
|
1448
1426
|
return He(n, { ...t, weekStartsOn: 1 });
|
|
1449
1427
|
}
|
|
1450
|
-
function
|
|
1428
|
+
function Cn(n, t) {
|
|
1451
1429
|
const r = l(n, t?.in);
|
|
1452
|
-
return
|
|
1430
|
+
return je(r, Fe(r)) + 1;
|
|
1453
1431
|
}
|
|
1454
1432
|
function $e(n, t) {
|
|
1455
|
-
const r = l(n, t?.in), e = +
|
|
1456
|
-
return Math.round(e /
|
|
1433
|
+
const r = l(n, t?.in), e = +_(r) - +bn(r);
|
|
1434
|
+
return Math.round(e / Oe) + 1;
|
|
1457
1435
|
}
|
|
1458
|
-
function
|
|
1459
|
-
const r = l(n, t?.in), e = r.getFullYear(), a =
|
|
1436
|
+
function ze(n, t) {
|
|
1437
|
+
const r = l(n, t?.in), e = r.getFullYear(), a = Z(), o = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, s = p(t?.in || n, 0);
|
|
1460
1438
|
s.setFullYear(e + 1, 0, o), s.setHours(0, 0, 0, 0);
|
|
1461
|
-
const u =
|
|
1439
|
+
const u = $(s, t), h = p(t?.in || n, 0);
|
|
1462
1440
|
h.setFullYear(e, 0, o), h.setHours(0, 0, 0, 0);
|
|
1463
|
-
const v =
|
|
1441
|
+
const v = $(h, t);
|
|
1464
1442
|
return +r >= +u ? e + 1 : +r >= +v ? e : e - 1;
|
|
1465
1443
|
}
|
|
1466
|
-
function
|
|
1467
|
-
const r =
|
|
1468
|
-
return o.setFullYear(a, 0, e), o.setHours(0, 0, 0, 0),
|
|
1444
|
+
function Yn(n, t) {
|
|
1445
|
+
const r = Z(), e = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, a = ze(n, t), o = p(t?.in || n, 0);
|
|
1446
|
+
return o.setFullYear(a, 0, e), o.setHours(0, 0, 0, 0), $(o, t);
|
|
1469
1447
|
}
|
|
1470
|
-
function
|
|
1471
|
-
const r = l(n, t?.in), e =
|
|
1472
|
-
return Math.round(e /
|
|
1448
|
+
function Ee(n, t) {
|
|
1449
|
+
const r = l(n, t?.in), e = +$(r, t) - +Yn(r, t);
|
|
1450
|
+
return Math.round(e / Oe) + 1;
|
|
1473
1451
|
}
|
|
1474
1452
|
function d(n, t) {
|
|
1475
1453
|
const r = n < 0 ? "-" : "", e = Math.abs(n).toString().padStart(t, "0");
|
|
1476
1454
|
return r + e;
|
|
1477
1455
|
}
|
|
1478
|
-
const
|
|
1456
|
+
const T = {
|
|
1479
1457
|
// Year
|
|
1480
1458
|
y(n, t) {
|
|
1481
1459
|
const r = n.getFullYear(), e = r > 0 ? r : 1 - r;
|
|
@@ -1501,7 +1479,6 @@ const P = {
|
|
|
1501
1479
|
return r;
|
|
1502
1480
|
case "aaaaa":
|
|
1503
1481
|
return r[0];
|
|
1504
|
-
case "aaaa":
|
|
1505
1482
|
default:
|
|
1506
1483
|
return r === "am" ? "a.m." : "p.m.";
|
|
1507
1484
|
}
|
|
@@ -1529,14 +1506,14 @@ const P = {
|
|
|
1529
1506
|
);
|
|
1530
1507
|
return d(a, t.length);
|
|
1531
1508
|
}
|
|
1532
|
-
},
|
|
1509
|
+
}, Y = {
|
|
1533
1510
|
midnight: "midnight",
|
|
1534
1511
|
noon: "noon",
|
|
1535
1512
|
morning: "morning",
|
|
1536
1513
|
afternoon: "afternoon",
|
|
1537
1514
|
evening: "evening",
|
|
1538
1515
|
night: "night"
|
|
1539
|
-
},
|
|
1516
|
+
}, be = {
|
|
1540
1517
|
// Era
|
|
1541
1518
|
G: function(n, t, r) {
|
|
1542
1519
|
const e = n.getFullYear() > 0 ? 1 : 0;
|
|
@@ -1549,8 +1526,6 @@ const P = {
|
|
|
1549
1526
|
// A, B
|
|
1550
1527
|
case "GGGGG":
|
|
1551
1528
|
return r.era(e, { width: "narrow" });
|
|
1552
|
-
// Anno Domini, Before Christ
|
|
1553
|
-
case "GGGG":
|
|
1554
1529
|
default:
|
|
1555
1530
|
return r.era(e, { width: "wide" });
|
|
1556
1531
|
}
|
|
@@ -1561,11 +1536,11 @@ const P = {
|
|
|
1561
1536
|
const e = n.getFullYear(), a = e > 0 ? e : 1 - e;
|
|
1562
1537
|
return r.ordinalNumber(a, { unit: "year" });
|
|
1563
1538
|
}
|
|
1564
|
-
return
|
|
1539
|
+
return T.y(n, t);
|
|
1565
1540
|
},
|
|
1566
1541
|
// Local week-numbering year
|
|
1567
1542
|
Y: function(n, t, r, e) {
|
|
1568
|
-
const a =
|
|
1543
|
+
const a = ze(n, e), o = a > 0 ? a : 1 - a;
|
|
1569
1544
|
if (t === "YY") {
|
|
1570
1545
|
const s = o % 100;
|
|
1571
1546
|
return d(s, 2);
|
|
@@ -1574,7 +1549,7 @@ const P = {
|
|
|
1574
1549
|
},
|
|
1575
1550
|
// ISO week-numbering year
|
|
1576
1551
|
R: function(n, t) {
|
|
1577
|
-
const r =
|
|
1552
|
+
const r = Ne(n);
|
|
1578
1553
|
return d(r, t.length);
|
|
1579
1554
|
},
|
|
1580
1555
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -1615,8 +1590,6 @@ const P = {
|
|
|
1615
1590
|
width: "narrow",
|
|
1616
1591
|
context: "formatting"
|
|
1617
1592
|
});
|
|
1618
|
-
// 1st quarter, 2nd quarter, ...
|
|
1619
|
-
case "QQQQ":
|
|
1620
1593
|
default:
|
|
1621
1594
|
return r.quarter(e, {
|
|
1622
1595
|
width: "wide",
|
|
@@ -1649,8 +1622,6 @@ const P = {
|
|
|
1649
1622
|
width: "narrow",
|
|
1650
1623
|
context: "standalone"
|
|
1651
1624
|
});
|
|
1652
|
-
// 1st quarter, 2nd quarter, ...
|
|
1653
|
-
case "qqqq":
|
|
1654
1625
|
default:
|
|
1655
1626
|
return r.quarter(e, {
|
|
1656
1627
|
width: "wide",
|
|
@@ -1664,7 +1635,7 @@ const P = {
|
|
|
1664
1635
|
switch (t) {
|
|
1665
1636
|
case "M":
|
|
1666
1637
|
case "MM":
|
|
1667
|
-
return
|
|
1638
|
+
return T.M(n, t);
|
|
1668
1639
|
// 1st, 2nd, ..., 12th
|
|
1669
1640
|
case "Mo":
|
|
1670
1641
|
return r.ordinalNumber(e + 1, { unit: "month" });
|
|
@@ -1680,8 +1651,6 @@ const P = {
|
|
|
1680
1651
|
width: "narrow",
|
|
1681
1652
|
context: "formatting"
|
|
1682
1653
|
});
|
|
1683
|
-
// January, February, ..., December
|
|
1684
|
-
case "MMMM":
|
|
1685
1654
|
default:
|
|
1686
1655
|
return r.month(e, { width: "wide", context: "formatting" });
|
|
1687
1656
|
}
|
|
@@ -1711,15 +1680,13 @@ const P = {
|
|
|
1711
1680
|
width: "narrow",
|
|
1712
1681
|
context: "standalone"
|
|
1713
1682
|
});
|
|
1714
|
-
// January, February, ..., December
|
|
1715
|
-
case "LLLL":
|
|
1716
1683
|
default:
|
|
1717
1684
|
return r.month(e, { width: "wide", context: "standalone" });
|
|
1718
1685
|
}
|
|
1719
1686
|
},
|
|
1720
1687
|
// Local week of year
|
|
1721
1688
|
w: function(n, t, r, e) {
|
|
1722
|
-
const a =
|
|
1689
|
+
const a = Ee(n, e);
|
|
1723
1690
|
return t === "wo" ? r.ordinalNumber(a, { unit: "week" }) : d(a, t.length);
|
|
1724
1691
|
},
|
|
1725
1692
|
// ISO week of year
|
|
@@ -1729,11 +1696,11 @@ const P = {
|
|
|
1729
1696
|
},
|
|
1730
1697
|
// Day of the month
|
|
1731
1698
|
d: function(n, t, r) {
|
|
1732
|
-
return t === "do" ? r.ordinalNumber(n.getDate(), { unit: "date" }) :
|
|
1699
|
+
return t === "do" ? r.ordinalNumber(n.getDate(), { unit: "date" }) : T.d(n, t);
|
|
1733
1700
|
},
|
|
1734
1701
|
// Day of year
|
|
1735
1702
|
D: function(n, t, r) {
|
|
1736
|
-
const e =
|
|
1703
|
+
const e = Cn(n);
|
|
1737
1704
|
return t === "Do" ? r.ordinalNumber(e, { unit: "dayOfYear" }) : d(e, t.length);
|
|
1738
1705
|
},
|
|
1739
1706
|
// Day of week
|
|
@@ -1760,8 +1727,6 @@ const P = {
|
|
|
1760
1727
|
width: "short",
|
|
1761
1728
|
context: "formatting"
|
|
1762
1729
|
});
|
|
1763
|
-
// Tuesday
|
|
1764
|
-
case "EEEE":
|
|
1765
1730
|
default:
|
|
1766
1731
|
return r.day(e, {
|
|
1767
1732
|
width: "wide",
|
|
@@ -1799,8 +1764,6 @@ const P = {
|
|
|
1799
1764
|
width: "short",
|
|
1800
1765
|
context: "formatting"
|
|
1801
1766
|
});
|
|
1802
|
-
// Tuesday
|
|
1803
|
-
case "eeee":
|
|
1804
1767
|
default:
|
|
1805
1768
|
return r.day(a, {
|
|
1806
1769
|
width: "wide",
|
|
@@ -1838,8 +1801,6 @@ const P = {
|
|
|
1838
1801
|
width: "short",
|
|
1839
1802
|
context: "standalone"
|
|
1840
1803
|
});
|
|
1841
|
-
// Tuesday
|
|
1842
|
-
case "cccc":
|
|
1843
1804
|
default:
|
|
1844
1805
|
return r.day(a, {
|
|
1845
1806
|
width: "wide",
|
|
@@ -1878,8 +1839,6 @@ const P = {
|
|
|
1878
1839
|
width: "short",
|
|
1879
1840
|
context: "formatting"
|
|
1880
1841
|
});
|
|
1881
|
-
// Tuesday
|
|
1882
|
-
case "iiii":
|
|
1883
1842
|
default:
|
|
1884
1843
|
return r.day(e, {
|
|
1885
1844
|
width: "wide",
|
|
@@ -1907,7 +1866,6 @@ const P = {
|
|
|
1907
1866
|
width: "narrow",
|
|
1908
1867
|
context: "formatting"
|
|
1909
1868
|
});
|
|
1910
|
-
case "aaaa":
|
|
1911
1869
|
default:
|
|
1912
1870
|
return r.dayPeriod(e, {
|
|
1913
1871
|
width: "wide",
|
|
@@ -1919,7 +1877,7 @@ const P = {
|
|
|
1919
1877
|
b: function(n, t, r) {
|
|
1920
1878
|
const e = n.getHours();
|
|
1921
1879
|
let a;
|
|
1922
|
-
switch (e === 12 ? a =
|
|
1880
|
+
switch (e === 12 ? a = Y.noon : e === 0 ? a = Y.midnight : a = e / 12 >= 1 ? "pm" : "am", t) {
|
|
1923
1881
|
case "b":
|
|
1924
1882
|
case "bb":
|
|
1925
1883
|
return r.dayPeriod(a, {
|
|
@@ -1936,7 +1894,6 @@ const P = {
|
|
|
1936
1894
|
width: "narrow",
|
|
1937
1895
|
context: "formatting"
|
|
1938
1896
|
});
|
|
1939
|
-
case "bbbb":
|
|
1940
1897
|
default:
|
|
1941
1898
|
return r.dayPeriod(a, {
|
|
1942
1899
|
width: "wide",
|
|
@@ -1948,7 +1905,7 @@ const P = {
|
|
|
1948
1905
|
B: function(n, t, r) {
|
|
1949
1906
|
const e = n.getHours();
|
|
1950
1907
|
let a;
|
|
1951
|
-
switch (e >= 17 ? a =
|
|
1908
|
+
switch (e >= 17 ? a = Y.evening : e >= 12 ? a = Y.afternoon : e >= 4 ? a = Y.morning : a = Y.night, t) {
|
|
1952
1909
|
case "B":
|
|
1953
1910
|
case "BB":
|
|
1954
1911
|
case "BBB":
|
|
@@ -1961,7 +1918,6 @@ const P = {
|
|
|
1961
1918
|
width: "narrow",
|
|
1962
1919
|
context: "formatting"
|
|
1963
1920
|
});
|
|
1964
|
-
case "BBBB":
|
|
1965
1921
|
default:
|
|
1966
1922
|
return r.dayPeriod(a, {
|
|
1967
1923
|
width: "wide",
|
|
@@ -1975,11 +1931,11 @@ const P = {
|
|
|
1975
1931
|
let e = n.getHours() % 12;
|
|
1976
1932
|
return e === 0 && (e = 12), r.ordinalNumber(e, { unit: "hour" });
|
|
1977
1933
|
}
|
|
1978
|
-
return
|
|
1934
|
+
return T.h(n, t);
|
|
1979
1935
|
},
|
|
1980
1936
|
// Hour [0-23]
|
|
1981
1937
|
H: function(n, t, r) {
|
|
1982
|
-
return t === "Ho" ? r.ordinalNumber(n.getHours(), { unit: "hour" }) :
|
|
1938
|
+
return t === "Ho" ? r.ordinalNumber(n.getHours(), { unit: "hour" }) : T.H(n, t);
|
|
1983
1939
|
},
|
|
1984
1940
|
// Hour [0-11]
|
|
1985
1941
|
K: function(n, t, r) {
|
|
@@ -1993,15 +1949,15 @@ const P = {
|
|
|
1993
1949
|
},
|
|
1994
1950
|
// Minute
|
|
1995
1951
|
m: function(n, t, r) {
|
|
1996
|
-
return t === "mo" ? r.ordinalNumber(n.getMinutes(), { unit: "minute" }) :
|
|
1952
|
+
return t === "mo" ? r.ordinalNumber(n.getMinutes(), { unit: "minute" }) : T.m(n, t);
|
|
1997
1953
|
},
|
|
1998
1954
|
// Second
|
|
1999
1955
|
s: function(n, t, r) {
|
|
2000
|
-
return t === "so" ? r.ordinalNumber(n.getSeconds(), { unit: "second" }) :
|
|
1956
|
+
return t === "so" ? r.ordinalNumber(n.getSeconds(), { unit: "second" }) : T.s(n, t);
|
|
2001
1957
|
},
|
|
2002
1958
|
// Fraction of second
|
|
2003
1959
|
S: function(n, t) {
|
|
2004
|
-
return
|
|
1960
|
+
return T.S(n, t);
|
|
2005
1961
|
},
|
|
2006
1962
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
2007
1963
|
X: function(n, t, r) {
|
|
@@ -2011,21 +1967,16 @@ const P = {
|
|
|
2011
1967
|
switch (t) {
|
|
2012
1968
|
// Hours and optional minutes
|
|
2013
1969
|
case "X":
|
|
2014
|
-
return
|
|
1970
|
+
return ve(e);
|
|
2015
1971
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
2016
1972
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
2017
1973
|
// so this token always has the same output as `XX`
|
|
2018
1974
|
case "XXXX":
|
|
2019
1975
|
case "XX":
|
|
2020
|
-
return
|
|
2021
|
-
// Hours, minutes and optional seconds with `:` delimiter
|
|
2022
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
2023
|
-
// so this token always has the same output as `XXX`
|
|
2024
|
-
case "XXXXX":
|
|
2025
|
-
case "XXX":
|
|
1976
|
+
return P(e);
|
|
2026
1977
|
// Hours and minutes with `:` delimiter
|
|
2027
1978
|
default:
|
|
2028
|
-
return
|
|
1979
|
+
return P(e, ":");
|
|
2029
1980
|
}
|
|
2030
1981
|
},
|
|
2031
1982
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
@@ -2034,21 +1985,16 @@ const P = {
|
|
|
2034
1985
|
switch (t) {
|
|
2035
1986
|
// Hours and optional minutes
|
|
2036
1987
|
case "x":
|
|
2037
|
-
return
|
|
1988
|
+
return ve(e);
|
|
2038
1989
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
2039
1990
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
2040
1991
|
// so this token always has the same output as `xx`
|
|
2041
1992
|
case "xxxx":
|
|
2042
1993
|
case "xx":
|
|
2043
|
-
return
|
|
2044
|
-
// Hours, minutes and optional seconds with `:` delimiter
|
|
2045
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
2046
|
-
// so this token always has the same output as `xxx`
|
|
2047
|
-
case "xxxxx":
|
|
2048
|
-
case "xxx":
|
|
1994
|
+
return P(e);
|
|
2049
1995
|
// Hours and minutes with `:` delimiter
|
|
2050
1996
|
default:
|
|
2051
|
-
return
|
|
1997
|
+
return P(e, ":");
|
|
2052
1998
|
}
|
|
2053
1999
|
},
|
|
2054
2000
|
// Timezone (GMT)
|
|
@@ -2059,11 +2005,9 @@ const P = {
|
|
|
2059
2005
|
case "O":
|
|
2060
2006
|
case "OO":
|
|
2061
2007
|
case "OOO":
|
|
2062
|
-
return "GMT" +
|
|
2063
|
-
// Long
|
|
2064
|
-
case "OOOO":
|
|
2008
|
+
return "GMT" + we(e, ":");
|
|
2065
2009
|
default:
|
|
2066
|
-
return "GMT" +
|
|
2010
|
+
return "GMT" + P(e, ":");
|
|
2067
2011
|
}
|
|
2068
2012
|
},
|
|
2069
2013
|
// Timezone (specific non-location)
|
|
@@ -2074,11 +2018,9 @@ const P = {
|
|
|
2074
2018
|
case "z":
|
|
2075
2019
|
case "zz":
|
|
2076
2020
|
case "zzz":
|
|
2077
|
-
return "GMT" +
|
|
2078
|
-
// Long
|
|
2079
|
-
case "zzzz":
|
|
2021
|
+
return "GMT" + we(e, ":");
|
|
2080
2022
|
default:
|
|
2081
|
-
return "GMT" +
|
|
2023
|
+
return "GMT" + P(e, ":");
|
|
2082
2024
|
}
|
|
2083
2025
|
},
|
|
2084
2026
|
// Seconds timestamp
|
|
@@ -2091,18 +2033,18 @@ const P = {
|
|
|
2091
2033
|
return d(+n, t.length);
|
|
2092
2034
|
}
|
|
2093
2035
|
};
|
|
2094
|
-
function
|
|
2036
|
+
function we(n, t = "") {
|
|
2095
2037
|
const r = n > 0 ? "-" : "+", e = Math.abs(n), a = Math.trunc(e / 60), o = e % 60;
|
|
2096
2038
|
return o === 0 ? r + String(a) : r + String(a) + t + d(o, 2);
|
|
2097
2039
|
}
|
|
2098
|
-
function
|
|
2099
|
-
return n % 60 === 0 ? (n > 0 ? "-" : "+") + d(Math.abs(n) / 60, 2) :
|
|
2040
|
+
function ve(n, t) {
|
|
2041
|
+
return n % 60 === 0 ? (n > 0 ? "-" : "+") + d(Math.abs(n) / 60, 2) : P(n, t);
|
|
2100
2042
|
}
|
|
2101
|
-
function
|
|
2043
|
+
function P(n, t = "") {
|
|
2102
2044
|
const r = n > 0 ? "-" : "+", e = Math.abs(n), a = d(Math.trunc(e / 60), 2), o = d(e % 60, 2);
|
|
2103
2045
|
return r + a + t + o;
|
|
2104
2046
|
}
|
|
2105
|
-
const
|
|
2047
|
+
const Me = (n, t) => {
|
|
2106
2048
|
switch (n) {
|
|
2107
2049
|
case "P":
|
|
2108
2050
|
return t.date({ width: "short" });
|
|
@@ -2110,11 +2052,10 @@ const ke = (n, t) => {
|
|
|
2110
2052
|
return t.date({ width: "medium" });
|
|
2111
2053
|
case "PPP":
|
|
2112
2054
|
return t.date({ width: "long" });
|
|
2113
|
-
case "PPPP":
|
|
2114
2055
|
default:
|
|
2115
2056
|
return t.date({ width: "full" });
|
|
2116
2057
|
}
|
|
2117
|
-
},
|
|
2058
|
+
}, Le = (n, t) => {
|
|
2118
2059
|
switch (n) {
|
|
2119
2060
|
case "p":
|
|
2120
2061
|
return t.time({ width: "short" });
|
|
@@ -2122,14 +2063,13 @@ const ke = (n, t) => {
|
|
|
2122
2063
|
return t.time({ width: "medium" });
|
|
2123
2064
|
case "ppp":
|
|
2124
2065
|
return t.time({ width: "long" });
|
|
2125
|
-
case "pppp":
|
|
2126
2066
|
default:
|
|
2127
2067
|
return t.time({ width: "full" });
|
|
2128
2068
|
}
|
|
2129
|
-
},
|
|
2069
|
+
}, Fn = (n, t) => {
|
|
2130
2070
|
const r = n.match(/(P+)(p+)?/) || [], e = r[1], a = r[2];
|
|
2131
2071
|
if (!a)
|
|
2132
|
-
return
|
|
2072
|
+
return Me(n, t);
|
|
2133
2073
|
let o;
|
|
2134
2074
|
switch (e) {
|
|
2135
2075
|
case "P":
|
|
@@ -2141,51 +2081,50 @@ const ke = (n, t) => {
|
|
|
2141
2081
|
case "PPP":
|
|
2142
2082
|
o = t.dateTime({ width: "long" });
|
|
2143
2083
|
break;
|
|
2144
|
-
case "PPPP":
|
|
2145
2084
|
default:
|
|
2146
2085
|
o = t.dateTime({ width: "full" });
|
|
2147
2086
|
break;
|
|
2148
2087
|
}
|
|
2149
|
-
return o.replace("{{date}}",
|
|
2150
|
-
},
|
|
2151
|
-
p:
|
|
2152
|
-
P:
|
|
2153
|
-
},
|
|
2088
|
+
return o.replace("{{date}}", Me(e, t)).replace("{{time}}", Le(a, t));
|
|
2089
|
+
}, Hn = {
|
|
2090
|
+
p: Le,
|
|
2091
|
+
P: Fn
|
|
2092
|
+
}, $n = /^D+$/, zn = /^Y+$/, En = ["D", "DD", "YY", "YYYY"];
|
|
2093
|
+
function Ln(n) {
|
|
2094
|
+
return $n.test(n);
|
|
2095
|
+
}
|
|
2154
2096
|
function qn(n) {
|
|
2155
|
-
return
|
|
2097
|
+
return zn.test(n);
|
|
2156
2098
|
}
|
|
2157
|
-
function Un(n) {
|
|
2158
|
-
|
|
2099
|
+
function Un(n, t, r) {
|
|
2100
|
+
const e = In(n, t, r);
|
|
2101
|
+
if (console.warn(e), En.includes(n)) throw new RangeError(e);
|
|
2159
2102
|
}
|
|
2160
2103
|
function In(n, t, r) {
|
|
2161
|
-
const e = An(n, t, r);
|
|
2162
|
-
if (console.warn(e), Ln.includes(n)) throw new RangeError(e);
|
|
2163
|
-
}
|
|
2164
|
-
function An(n, t, r) {
|
|
2165
2104
|
const e = n[0] === "Y" ? "years" : "days of the month";
|
|
2166
2105
|
return `Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${e} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
2167
2106
|
}
|
|
2168
|
-
const
|
|
2169
|
-
function
|
|
2170
|
-
const e =
|
|
2171
|
-
if (!
|
|
2107
|
+
const _n = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, An = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Zn = /^'([^]*?)'?$/, Bn = /''/g, Xn = /[a-zA-Z]/;
|
|
2108
|
+
function I(n, t, r) {
|
|
2109
|
+
const e = Z(), a = r?.locale ?? e.locale ?? F, o = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? e.firstWeekContainsDate ?? e.locale?.options?.firstWeekContainsDate ?? 1, s = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? e.weekStartsOn ?? e.locale?.options?.weekStartsOn ?? 0, u = l(n, r?.in);
|
|
2110
|
+
if (!Dn(u))
|
|
2172
2111
|
throw new RangeError("Invalid time value");
|
|
2173
|
-
let h = t.match(
|
|
2112
|
+
let h = t.match(An).map((f) => {
|
|
2174
2113
|
const m = f[0];
|
|
2175
2114
|
if (m === "p" || m === "P") {
|
|
2176
|
-
const M =
|
|
2115
|
+
const M = Hn[m];
|
|
2177
2116
|
return M(f, a.formatLong);
|
|
2178
2117
|
}
|
|
2179
2118
|
return f;
|
|
2180
|
-
}).join("").match(
|
|
2119
|
+
}).join("").match(_n).map((f) => {
|
|
2181
2120
|
if (f === "''")
|
|
2182
2121
|
return { isToken: !1, value: "'" };
|
|
2183
2122
|
const m = f[0];
|
|
2184
2123
|
if (m === "'")
|
|
2185
2124
|
return { isToken: !1, value: Rn(f) };
|
|
2186
|
-
if (
|
|
2125
|
+
if (be[m])
|
|
2187
2126
|
return { isToken: !0, value: f };
|
|
2188
|
-
if (m.match(
|
|
2127
|
+
if (m.match(Xn))
|
|
2189
2128
|
throw new RangeError(
|
|
2190
2129
|
"Format string contains an unescaped latin alphabet character `" + m + "`"
|
|
2191
2130
|
);
|
|
@@ -2200,76 +2139,76 @@ function B(n, t, r) {
|
|
|
2200
2139
|
return h.map((f) => {
|
|
2201
2140
|
if (!f.isToken) return f.value;
|
|
2202
2141
|
const m = f.value;
|
|
2203
|
-
(!r?.useAdditionalWeekYearTokens &&
|
|
2204
|
-
const M =
|
|
2142
|
+
(!r?.useAdditionalWeekYearTokens && qn(m) || !r?.useAdditionalDayOfYearTokens && Ln(m)) && Un(m, t, String(n));
|
|
2143
|
+
const M = be[m[0]];
|
|
2205
2144
|
return M(u, m, a.localize, v);
|
|
2206
2145
|
}).join("");
|
|
2207
2146
|
}
|
|
2208
2147
|
function Rn(n) {
|
|
2209
2148
|
const t = n.match(Zn);
|
|
2210
|
-
return t ? t[1].replace(
|
|
2149
|
+
return t ? t[1].replace(Bn, "'") : n;
|
|
2211
2150
|
}
|
|
2212
|
-
function
|
|
2151
|
+
function Gn(n, t) {
|
|
2213
2152
|
const r = l(n, t?.in), e = r.getFullYear(), a = r.getMonth(), o = p(r, 0);
|
|
2214
2153
|
return o.setFullYear(e, a + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
|
|
2215
2154
|
}
|
|
2216
|
-
function
|
|
2155
|
+
function Qn(n, t) {
|
|
2217
2156
|
return l(n, t?.in).getMonth();
|
|
2218
2157
|
}
|
|
2219
|
-
function
|
|
2158
|
+
function Jn(n, t) {
|
|
2220
2159
|
return l(n, t?.in).getFullYear();
|
|
2221
2160
|
}
|
|
2222
|
-
function
|
|
2161
|
+
function Vn(n, t) {
|
|
2223
2162
|
return +l(n) > +l(t);
|
|
2224
2163
|
}
|
|
2225
|
-
function
|
|
2164
|
+
function Kn(n, t) {
|
|
2226
2165
|
return +l(n) < +l(t);
|
|
2227
2166
|
}
|
|
2228
|
-
function
|
|
2229
|
-
const [e, a] =
|
|
2167
|
+
function er(n, t, r) {
|
|
2168
|
+
const [e, a] = z(
|
|
2230
2169
|
r?.in,
|
|
2231
2170
|
n,
|
|
2232
2171
|
t
|
|
2233
2172
|
);
|
|
2234
2173
|
return e.getFullYear() === a.getFullYear() && e.getMonth() === a.getMonth();
|
|
2235
2174
|
}
|
|
2236
|
-
function
|
|
2237
|
-
const [e, a] =
|
|
2175
|
+
function tr(n, t, r) {
|
|
2176
|
+
const [e, a] = z(
|
|
2238
2177
|
r?.in,
|
|
2239
2178
|
n,
|
|
2240
2179
|
t
|
|
2241
2180
|
);
|
|
2242
2181
|
return e.getFullYear() === a.getFullYear();
|
|
2243
2182
|
}
|
|
2244
|
-
function
|
|
2183
|
+
function nr(n, t, r) {
|
|
2245
2184
|
const e = l(n, r?.in), a = e.getFullYear(), o = e.getDate(), s = p(n, 0);
|
|
2246
2185
|
s.setFullYear(a, t, 15), s.setHours(0, 0, 0, 0);
|
|
2247
|
-
const u =
|
|
2186
|
+
const u = Gn(s);
|
|
2248
2187
|
return e.setMonth(t, Math.min(o, u)), e;
|
|
2249
2188
|
}
|
|
2250
|
-
function
|
|
2189
|
+
function rr(n, t, r) {
|
|
2251
2190
|
const e = l(n, r?.in);
|
|
2252
2191
|
return isNaN(+e) ? p(n, NaN) : (e.setFullYear(t), e);
|
|
2253
2192
|
}
|
|
2254
|
-
const
|
|
2255
|
-
function
|
|
2256
|
-
const r = t.startOfMonth(n), e = r.getDay() > 0 ? r.getDay() : 7, a = t.addDays(n, -e + 1), o = t.addDays(a,
|
|
2257
|
-
return t.getMonth(n) === t.getMonth(o) ?
|
|
2193
|
+
const Se = 5, ar = 4;
|
|
2194
|
+
function or(n, t) {
|
|
2195
|
+
const r = t.startOfMonth(n), e = r.getDay() > 0 ? r.getDay() : 7, a = t.addDays(n, -e + 1), o = t.addDays(a, Se * 7 - 1);
|
|
2196
|
+
return t.getMonth(n) === t.getMonth(o) ? Se : ar;
|
|
2258
2197
|
}
|
|
2259
|
-
function
|
|
2198
|
+
function qe(n, t) {
|
|
2260
2199
|
const r = t.startOfMonth(n), e = r.getDay();
|
|
2261
2200
|
return e === 1 ? r : e === 0 ? t.addDays(r, -6) : t.addDays(r, -1 * (e - 1));
|
|
2262
2201
|
}
|
|
2263
|
-
function
|
|
2264
|
-
const r =
|
|
2202
|
+
function ir(n, t) {
|
|
2203
|
+
const r = qe(n, t), e = or(n, t);
|
|
2265
2204
|
return t.addDays(r, e * 7 - 1);
|
|
2266
2205
|
}
|
|
2267
|
-
const
|
|
2268
|
-
...
|
|
2206
|
+
const sr = {
|
|
2207
|
+
...F,
|
|
2269
2208
|
labels: {
|
|
2270
2209
|
labelDayButton: (n, t, r, e) => {
|
|
2271
2210
|
let a;
|
|
2272
|
-
e && typeof e.format == "function" ? a = e.format.bind(e) : a = (s, u) =>
|
|
2211
|
+
e && typeof e.format == "function" ? a = e.format.bind(e) : a = (s, u) => I(s, u, { locale: F, ...r });
|
|
2273
2212
|
let o = a(n, "PPPP");
|
|
2274
2213
|
return t.today && (o = `Today, ${o}`), t.selected && (o = `${o}, selected`), o;
|
|
2275
2214
|
},
|
|
@@ -2280,11 +2219,11 @@ const ur = {
|
|
|
2280
2219
|
labelYearDropdown: "Choose the Year",
|
|
2281
2220
|
labelGrid: (n, t, r) => {
|
|
2282
2221
|
let e;
|
|
2283
|
-
return r && typeof r.format == "function" ? e = r.format.bind(r) : e = (a, o) =>
|
|
2222
|
+
return r && typeof r.format == "function" ? e = r.format.bind(r) : e = (a, o) => I(a, o, { locale: F, ...t }), e(n, "LLLL yyyy");
|
|
2284
2223
|
},
|
|
2285
2224
|
labelGridcell: (n, t, r, e) => {
|
|
2286
2225
|
let a;
|
|
2287
|
-
e && typeof e.format == "function" ? a = e.format.bind(e) : a = (s, u) =>
|
|
2226
|
+
e && typeof e.format == "function" ? a = e.format.bind(e) : a = (s, u) => I(s, u, { locale: F, ...r });
|
|
2288
2227
|
let o = a(n, "PPPP");
|
|
2289
2228
|
return t?.today && (o = `Today, ${o}`), o;
|
|
2290
2229
|
},
|
|
@@ -2292,11 +2231,11 @@ const ur = {
|
|
|
2292
2231
|
labelWeekNumberHeader: "Week Number",
|
|
2293
2232
|
labelWeekday: (n, t, r) => {
|
|
2294
2233
|
let e;
|
|
2295
|
-
return r && typeof r.format == "function" ? e = r.format.bind(r) : e = (a, o) =>
|
|
2234
|
+
return r && typeof r.format == "function" ? e = r.format.bind(r) : e = (a, o) => I(a, o, { locale: F, ...t }), e(n, "cccc");
|
|
2296
2235
|
}
|
|
2297
2236
|
}
|
|
2298
2237
|
};
|
|
2299
|
-
class
|
|
2238
|
+
class x {
|
|
2300
2239
|
/**
|
|
2301
2240
|
* Creates an instance of `DateLib`.
|
|
2302
2241
|
*
|
|
@@ -2304,18 +2243,18 @@ class O {
|
|
|
2304
2243
|
* @param overrides Custom overrides for the date library functions.
|
|
2305
2244
|
*/
|
|
2306
2245
|
constructor(t, r) {
|
|
2307
|
-
this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ?
|
|
2308
|
-
const a = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(e) :
|
|
2246
|
+
this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? N.tz(this.options.timeZone) : new this.Date(), this.newDate = (e, a, o) => this.overrides?.newDate ? this.overrides.newDate(e, a, o) : this.options.timeZone ? new N(e, a, o, this.options.timeZone) : new Date(e, a, o), this.addDays = (e, a) => this.overrides?.addDays ? this.overrides.addDays(e, a) : Pe(e, a), this.addMonths = (e, a) => this.overrides?.addMonths ? this.overrides.addMonths(e, a) : We(e, a), this.addWeeks = (e, a) => this.overrides?.addWeeks ? this.overrides.addWeeks(e, a) : wn(e, a), this.addYears = (e, a) => this.overrides?.addYears ? this.overrides.addYears(e, a) : vn(e, a), this.differenceInCalendarDays = (e, a) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(e, a) : je(e, a), this.differenceInCalendarMonths = (e, a) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(e, a) : xn(e, a), this.eachMonthOfInterval = (e) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(e) : Tn(e), this.eachYearOfInterval = (e) => {
|
|
2247
|
+
const a = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(e) : Nn(e), o = new Set(a.map((u) => this.getYear(u)));
|
|
2309
2248
|
if (o.size === a.length)
|
|
2310
2249
|
return a;
|
|
2311
2250
|
const s = [];
|
|
2312
2251
|
return o.forEach((u) => {
|
|
2313
2252
|
s.push(new Date(u, 0, 1));
|
|
2314
2253
|
}), s;
|
|
2315
|
-
}, this.endOfBroadcastWeek = (e) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(e) :
|
|
2316
|
-
const s = this.overrides?.format ? this.overrides.format(e, a, this.options) :
|
|
2254
|
+
}, this.endOfBroadcastWeek = (e) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(e) : ir(e, this), this.endOfISOWeek = (e) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(e) : jn(e), this.endOfMonth = (e) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(e) : On(e), this.endOfWeek = (e, a) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(e, a) : He(e, this.options), this.endOfYear = (e) => this.overrides?.endOfYear ? this.overrides.endOfYear(e) : Wn(e), this.format = (e, a, o) => {
|
|
2255
|
+
const s = this.overrides?.format ? this.overrides.format(e, a, this.options) : I(e, a, this.options);
|
|
2317
2256
|
return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(s) : s;
|
|
2318
|
-
}, this.getISOWeek = (e) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(e) : $e(e), this.getMonth = (e, a) => this.overrides?.getMonth ? this.overrides.getMonth(e, this.options) :
|
|
2257
|
+
}, this.getISOWeek = (e) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(e) : $e(e), this.getMonth = (e, a) => this.overrides?.getMonth ? this.overrides.getMonth(e, this.options) : Qn(e, this.options), this.getYear = (e, a) => this.overrides?.getYear ? this.overrides.getYear(e, this.options) : Jn(e, this.options), this.getWeek = (e, a) => this.overrides?.getWeek ? this.overrides.getWeek(e, this.options) : Ee(e, this.options), this.isAfter = (e, a) => this.overrides?.isAfter ? this.overrides.isAfter(e, a) : Vn(e, a), this.isBefore = (e, a) => this.overrides?.isBefore ? this.overrides.isBefore(e, a) : Kn(e, a), this.isDate = (e) => this.overrides?.isDate ? this.overrides.isDate(e) : Ce(e), this.isSameDay = (e, a) => this.overrides?.isSameDay ? this.overrides.isSameDay(e, a) : kn(e, a), this.isSameMonth = (e, a) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(e, a) : er(e, a), this.isSameYear = (e, a) => this.overrides?.isSameYear ? this.overrides.isSameYear(e, a) : tr(e, a), this.max = (e) => this.overrides?.max ? this.overrides.max(e) : Mn(e), this.min = (e) => this.overrides?.min ? this.overrides.min(e) : Sn(e), this.setMonth = (e, a) => this.overrides?.setMonth ? this.overrides.setMonth(e, a) : nr(e, a), this.setYear = (e, a) => this.overrides?.setYear ? this.overrides.setYear(e, a) : rr(e, a), this.startOfBroadcastWeek = (e, a) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(e, this) : qe(e, this), this.startOfDay = (e) => this.overrides?.startOfDay ? this.overrides.startOfDay(e) : A(e), this.startOfISOWeek = (e) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(e) : _(e), this.startOfMonth = (e) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(e) : Pn(e), this.startOfWeek = (e, a) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(e, this.options) : $(e, this.options), this.startOfYear = (e) => this.overrides?.startOfYear ? this.overrides.startOfYear(e) : Fe(e), this.options = { locale: sr, ...t }, this.overrides = r;
|
|
2319
2258
|
}
|
|
2320
2259
|
/**
|
|
2321
2260
|
* Generates a mapping of Arabic digits (0-9) to the target numbering system
|
|
@@ -2359,7 +2298,7 @@ class O {
|
|
|
2359
2298
|
*/
|
|
2360
2299
|
getMonthYearOrder() {
|
|
2361
2300
|
const t = this.options.locale?.code;
|
|
2362
|
-
return t &&
|
|
2301
|
+
return t && x.yearFirstLocales.has(t) ? "year-first" : "month-first";
|
|
2363
2302
|
}
|
|
2364
2303
|
/**
|
|
2365
2304
|
* Formats the month/year pair respecting locale conventions.
|
|
@@ -2368,7 +2307,7 @@ class O {
|
|
|
2368
2307
|
*/
|
|
2369
2308
|
formatMonthYear(t) {
|
|
2370
2309
|
const { locale: r, timeZone: e, numerals: a } = this.options, o = r?.code;
|
|
2371
|
-
if (o &&
|
|
2310
|
+
if (o && x.yearFirstLocales.has(o))
|
|
2372
2311
|
try {
|
|
2373
2312
|
return new Intl.DateTimeFormat(o, {
|
|
2374
2313
|
month: "long",
|
|
@@ -2382,7 +2321,7 @@ class O {
|
|
|
2382
2321
|
return this.format(t, s);
|
|
2383
2322
|
}
|
|
2384
2323
|
}
|
|
2385
|
-
|
|
2324
|
+
x.yearFirstLocales = /* @__PURE__ */ new Set([
|
|
2386
2325
|
"eu",
|
|
2387
2326
|
"hu",
|
|
2388
2327
|
"ja",
|
|
@@ -2401,12 +2340,12 @@ O.yearFirstLocales = /* @__PURE__ */ new Set([
|
|
|
2401
2340
|
"zh-HK",
|
|
2402
2341
|
"zh-TW"
|
|
2403
2342
|
]);
|
|
2404
|
-
new
|
|
2405
|
-
const
|
|
2406
|
-
...
|
|
2343
|
+
new x();
|
|
2344
|
+
const ur = {
|
|
2345
|
+
...mn,
|
|
2407
2346
|
labels: {
|
|
2408
2347
|
labelDayButton: (n, t, r, e) => {
|
|
2409
|
-
let a = (e ?? new
|
|
2348
|
+
let a = (e ?? new x(r)).format(n, "PPPP");
|
|
2410
2349
|
return t.today && (a = `Hoje, ${a}`), t.selected && (a = `${a}, selecionado`), a;
|
|
2411
2350
|
},
|
|
2412
2351
|
labelMonthDropdown: "Escolha o mês",
|
|
@@ -2414,30 +2353,30 @@ const cr = {
|
|
|
2414
2353
|
labelPrevious: "Ir para o mês anterior",
|
|
2415
2354
|
labelWeekNumber: (n) => `Semana ${n}`,
|
|
2416
2355
|
labelYearDropdown: "Escolha o ano",
|
|
2417
|
-
labelGrid: (n, t, r) => (r ?? new
|
|
2356
|
+
labelGrid: (n, t, r) => (r ?? new x(t)).formatMonthYear(n),
|
|
2418
2357
|
labelGridcell: (n, t, r, e) => {
|
|
2419
|
-
let a = (e ?? new
|
|
2358
|
+
let a = (e ?? new x(r)).format(n, "PPPP");
|
|
2420
2359
|
return t?.today && (a = `Hoje, ${a}`), a;
|
|
2421
2360
|
},
|
|
2422
2361
|
labelNav: "Barra de navegação",
|
|
2423
2362
|
labelWeekNumberHeader: "Número da semana",
|
|
2424
|
-
labelWeekday: (n, t, r) => (r ?? new
|
|
2363
|
+
labelWeekday: (n, t, r) => (r ?? new x(t)).format(n, "cccc")
|
|
2425
2364
|
}
|
|
2426
2365
|
};
|
|
2427
|
-
|
|
2428
|
-
locale:
|
|
2366
|
+
De({
|
|
2367
|
+
locale: ur
|
|
2429
2368
|
});
|
|
2430
|
-
function
|
|
2431
|
-
const { user: t, logout: r } =
|
|
2432
|
-
return
|
|
2369
|
+
function mr({ router: n }) {
|
|
2370
|
+
const { user: t, logout: r } = rt();
|
|
2371
|
+
return ke(() => {
|
|
2433
2372
|
t.id === "" && n.push("/login");
|
|
2434
|
-
}), /* @__PURE__ */
|
|
2435
|
-
/* @__PURE__ */
|
|
2436
|
-
/* @__PURE__ */
|
|
2437
|
-
/* @__PURE__ */
|
|
2373
|
+
}), /* @__PURE__ */ w.jsx("div", { className: "h-screen w-screen flex", children: /* @__PURE__ */ w.jsxs("div", { className: "m-auto flex flex-col gap-3", children: [
|
|
2374
|
+
/* @__PURE__ */ w.jsxs("div", { className: "inline-flex gap-5 items-center", children: [
|
|
2375
|
+
/* @__PURE__ */ w.jsx("h1", { className: "text-2xl border-r-1 p-4", children: "403" }),
|
|
2376
|
+
/* @__PURE__ */ w.jsx("h1", { children: "Acesso Negado" })
|
|
2438
2377
|
] }),
|
|
2439
|
-
/* @__PURE__ */
|
|
2440
|
-
|
|
2378
|
+
/* @__PURE__ */ w.jsx(
|
|
2379
|
+
ae,
|
|
2441
2380
|
{
|
|
2442
2381
|
variant: "destructive",
|
|
2443
2382
|
onClick: () => {
|
|
@@ -2448,17 +2387,17 @@ function fr({ router: n }) {
|
|
|
2448
2387
|
)
|
|
2449
2388
|
] }) });
|
|
2450
2389
|
}
|
|
2451
|
-
function
|
|
2452
|
-
return /* @__PURE__ */
|
|
2453
|
-
/* @__PURE__ */
|
|
2454
|
-
/* @__PURE__ */
|
|
2455
|
-
/* @__PURE__ */
|
|
2390
|
+
function fr({ router: n }) {
|
|
2391
|
+
return /* @__PURE__ */ w.jsx("div", { className: "h-screen w-screen flex", children: /* @__PURE__ */ w.jsxs("div", { className: "m-auto flex flex-col gap-3", children: [
|
|
2392
|
+
/* @__PURE__ */ w.jsxs("div", { className: "inline-flex gap-5 items-center", children: [
|
|
2393
|
+
/* @__PURE__ */ w.jsx("h1", { className: "text-2xl border-r-1 p-4", children: "404" }),
|
|
2394
|
+
/* @__PURE__ */ w.jsx("h1", { children: "Página não encontrada" })
|
|
2456
2395
|
] }),
|
|
2457
|
-
/* @__PURE__ */
|
|
2396
|
+
/* @__PURE__ */ w.jsx(ae, { onClick: () => n.replace("/"), children: "Voltar ao Início" })
|
|
2458
2397
|
] }) });
|
|
2459
2398
|
}
|
|
2460
2399
|
export {
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2400
|
+
hr as Error,
|
|
2401
|
+
mr as Forbidden,
|
|
2402
|
+
fr as NotFoundPage
|
|
2464
2403
|
};
|