gm-datagrid 0.1.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/LICENSE +21 -0
- package/README.md +351 -0
- package/dist/GMDatagrid.d.ts +10 -0
- package/dist/GMDatagridInner.d.ts +4 -0
- package/dist/GMGridContainer.d.ts +19 -0
- package/dist/assets/clipboard.worker-B1pvzQ3O.js +2 -0
- package/dist/cells/EditCell.d.ts +16 -0
- package/dist/cells/ImageCell.d.ts +10 -0
- package/dist/cells/LabelsCell.d.ts +9 -0
- package/dist/cells/ProgressCell.d.ts +10 -0
- package/dist/cells/StatusCell.d.ts +11 -0
- package/dist/cells/ViewCell.d.ts +17 -0
- package/dist/components/GMGridEmptyState.d.ts +12 -0
- package/dist/context/GridContext.d.ts +23 -0
- package/dist/core_engine-Cnhrb_In.js +360 -0
- package/dist/dataset/useGMDataSet.d.ts +34 -0
- package/dist/engine/useEngineSync.d.ts +19 -0
- package/dist/engine/useGridEngine.d.ts +15 -0
- package/dist/features/useClipboard.d.ts +12 -0
- package/dist/features/useColumnResize.d.ts +16 -0
- package/dist/features/useExport.d.ts +12 -0
- package/dist/features/useInlineEdit.d.ts +24 -0
- package/dist/features/useKeyboardNav.d.ts +23 -0
- package/dist/features/useSelection.d.ts +19 -0
- package/dist/features/useVirtualization.d.ts +20 -0
- package/dist/gm-datagrid.js +4391 -0
- package/dist/gm-datagrid.umd.cjs +32 -0
- package/dist/index.d.ts +6 -0
- package/dist/toolbar/GridToolbar.d.ts +20 -0
- package/dist/toolbar/MobileToolbar.d.ts +18 -0
- package/dist/toolbar/ToolbarButtons.d.ts +14 -0
- package/dist/types/index.d.ts +123 -0
- package/dist/wasm/core_engine.d.ts +146 -0
- package/dist/workers/clipboard.worker.d.ts +1 -0
- package/package.json +72 -0
|
@@ -0,0 +1,4391 @@
|
|
|
1
|
+
import ue, { useState as Y, useRef as B, useEffect as ie, useCallback as W, createContext as sa, useContext as aa, forwardRef as Lr, useImperativeHandle as na } from "react";
|
|
2
|
+
import F from "@mui/material/Box";
|
|
3
|
+
import ia from "@mui/material/useMediaQuery";
|
|
4
|
+
import { useTheme as oa } from "@mui/material/styles";
|
|
5
|
+
import la from "@mui/material/LinearProgress";
|
|
6
|
+
import it from "@mui/material/Typography";
|
|
7
|
+
import Ur from "@mui/material/Chip";
|
|
8
|
+
import ua from "@mui/material/Avatar";
|
|
9
|
+
import Hr from "@mui/material/InputAdornment";
|
|
10
|
+
import zr from "@mui/material/TextField";
|
|
11
|
+
import $r from "@mui/icons-material/Search";
|
|
12
|
+
import Br from "@mui/material/CircularProgress";
|
|
13
|
+
import Bt from "@mui/material/Tooltip";
|
|
14
|
+
import St from "@mui/material/IconButton";
|
|
15
|
+
import ca from "@mui/icons-material/Download";
|
|
16
|
+
import da from "@mui/icons-material/Refresh";
|
|
17
|
+
import fa from "@mui/icons-material/DensityMedium";
|
|
18
|
+
import ha from "@mui/material/Collapse";
|
|
19
|
+
import ma from "@mui/icons-material/ExpandMore";
|
|
20
|
+
import Rr from "@mui/material/Button";
|
|
21
|
+
import pa from "@mui/icons-material/Inbox";
|
|
22
|
+
import Zr from "@mui/icons-material/FilterListOff";
|
|
23
|
+
import ya from "@mui/icons-material/Error";
|
|
24
|
+
let E, wu, _u, Kr;
|
|
25
|
+
let __tla = (async () => {
|
|
26
|
+
var gt = {
|
|
27
|
+
exports: {}
|
|
28
|
+
}, vt = {};
|
|
29
|
+
var Pr;
|
|
30
|
+
function wa() {
|
|
31
|
+
if (Pr) return vt;
|
|
32
|
+
Pr = 1;
|
|
33
|
+
var e = Symbol.for("react.fragment");
|
|
34
|
+
return vt.Fragment = e, vt.jsxDEV = void 0, vt;
|
|
35
|
+
}
|
|
36
|
+
var xt = {};
|
|
37
|
+
var Cr;
|
|
38
|
+
function _a() {
|
|
39
|
+
return Cr || (Cr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
40
|
+
function e(c) {
|
|
41
|
+
if (c == null) return null;
|
|
42
|
+
if (typeof c == "function") return c.$$typeof === Qe ? null : c.displayName || c.name || null;
|
|
43
|
+
if (typeof c == "string") return c;
|
|
44
|
+
switch (c) {
|
|
45
|
+
case C:
|
|
46
|
+
return "Fragment";
|
|
47
|
+
case re:
|
|
48
|
+
return "Profiler";
|
|
49
|
+
case J:
|
|
50
|
+
return "StrictMode";
|
|
51
|
+
case Z:
|
|
52
|
+
return "Suspense";
|
|
53
|
+
case U:
|
|
54
|
+
return "SuspenseList";
|
|
55
|
+
case se:
|
|
56
|
+
return "Activity";
|
|
57
|
+
}
|
|
58
|
+
if (typeof c == "object") switch (typeof c.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), c.$$typeof) {
|
|
59
|
+
case T:
|
|
60
|
+
return "Portal";
|
|
61
|
+
case ve:
|
|
62
|
+
return c.displayName || "Context";
|
|
63
|
+
case ge:
|
|
64
|
+
return (c._context.displayName || "Context") + ".Consumer";
|
|
65
|
+
case de:
|
|
66
|
+
var v = c.render;
|
|
67
|
+
return c = c.displayName, c || (c = v.displayName || v.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
|
|
68
|
+
case fe:
|
|
69
|
+
return v = c.displayName || null, v !== null ? v : e(c.type) || "Memo";
|
|
70
|
+
case K:
|
|
71
|
+
v = c._payload, c = c._init;
|
|
72
|
+
try {
|
|
73
|
+
return e(c(v));
|
|
74
|
+
} catch {
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
function t(c) {
|
|
80
|
+
return "" + c;
|
|
81
|
+
}
|
|
82
|
+
function r(c) {
|
|
83
|
+
try {
|
|
84
|
+
t(c);
|
|
85
|
+
var v = false;
|
|
86
|
+
} catch {
|
|
87
|
+
v = true;
|
|
88
|
+
}
|
|
89
|
+
if (v) {
|
|
90
|
+
v = console;
|
|
91
|
+
var V = v.error, L = typeof Symbol == "function" && Symbol.toStringTag && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
92
|
+
return V.call(v, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", L), t(c);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
function s(c) {
|
|
96
|
+
if (c === C) return "<>";
|
|
97
|
+
if (typeof c == "object" && c !== null && c.$$typeof === K) return "<...>";
|
|
98
|
+
try {
|
|
99
|
+
var v = e(c);
|
|
100
|
+
return v ? "<" + v + ">" : "<...>";
|
|
101
|
+
} catch {
|
|
102
|
+
return "<...>";
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
function a() {
|
|
106
|
+
var c = ae.A;
|
|
107
|
+
return c === null ? null : c.getOwner();
|
|
108
|
+
}
|
|
109
|
+
function n() {
|
|
110
|
+
return Error("react-stack-top-frame");
|
|
111
|
+
}
|
|
112
|
+
function i(c) {
|
|
113
|
+
if (et.call(c, "key")) {
|
|
114
|
+
var v = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
115
|
+
if (v && v.isReactWarning) return false;
|
|
116
|
+
}
|
|
117
|
+
return c.key !== void 0;
|
|
118
|
+
}
|
|
119
|
+
function o(c, v) {
|
|
120
|
+
function V() {
|
|
121
|
+
wt || (wt = true, console.error("%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)", v));
|
|
122
|
+
}
|
|
123
|
+
V.isReactWarning = true, Object.defineProperty(c, "key", {
|
|
124
|
+
get: V,
|
|
125
|
+
configurable: true
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
function l() {
|
|
129
|
+
var c = e(this.type);
|
|
130
|
+
return _t[c] || (_t[c] = true, console.error("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.")), c = this.props.ref, c !== void 0 ? c : null;
|
|
131
|
+
}
|
|
132
|
+
function u(c, v, V, L, he, tt) {
|
|
133
|
+
var j = V.ref;
|
|
134
|
+
return c = {
|
|
135
|
+
$$typeof: b,
|
|
136
|
+
type: c,
|
|
137
|
+
key: v,
|
|
138
|
+
props: V,
|
|
139
|
+
_owner: L
|
|
140
|
+
}, (j !== void 0 ? j : null) !== null ? Object.defineProperty(c, "ref", {
|
|
141
|
+
enumerable: false,
|
|
142
|
+
get: l
|
|
143
|
+
}) : Object.defineProperty(c, "ref", {
|
|
144
|
+
enumerable: false,
|
|
145
|
+
value: null
|
|
146
|
+
}), c._store = {}, Object.defineProperty(c._store, "validated", {
|
|
147
|
+
configurable: false,
|
|
148
|
+
enumerable: false,
|
|
149
|
+
writable: true,
|
|
150
|
+
value: 0
|
|
151
|
+
}), Object.defineProperty(c, "_debugInfo", {
|
|
152
|
+
configurable: false,
|
|
153
|
+
enumerable: false,
|
|
154
|
+
writable: true,
|
|
155
|
+
value: null
|
|
156
|
+
}), Object.defineProperty(c, "_debugStack", {
|
|
157
|
+
configurable: false,
|
|
158
|
+
enumerable: false,
|
|
159
|
+
writable: true,
|
|
160
|
+
value: he
|
|
161
|
+
}), Object.defineProperty(c, "_debugTask", {
|
|
162
|
+
configurable: false,
|
|
163
|
+
enumerable: false,
|
|
164
|
+
writable: true,
|
|
165
|
+
value: tt
|
|
166
|
+
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
|
|
167
|
+
}
|
|
168
|
+
function p(c, v, V, L, he, tt) {
|
|
169
|
+
var j = v.children;
|
|
170
|
+
if (j !== void 0) if (L) if (pt(j)) {
|
|
171
|
+
for (L = 0; L < j.length; L++) w(j[L]);
|
|
172
|
+
Object.freeze && Object.freeze(j);
|
|
173
|
+
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
174
|
+
else w(j);
|
|
175
|
+
if (et.call(v, "key")) {
|
|
176
|
+
j = e(c);
|
|
177
|
+
var me = Object.keys(v).filter(function(bt) {
|
|
178
|
+
return bt !== "key";
|
|
179
|
+
});
|
|
180
|
+
L = 0 < me.length ? "{key: someKey, " + me.join(": ..., ") + ": ...}" : "{key: someKey}", Le[j + L] || (me = 0 < me.length ? "{" + me.join(": ..., ") + ": ...}" : "{}", console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
181
|
+
let props = %s;
|
|
182
|
+
<%s {...props} />
|
|
183
|
+
React keys must be passed directly to JSX without using spread:
|
|
184
|
+
let props = %s;
|
|
185
|
+
<%s key={someKey} {...props} />`, L, j, me, j), Le[j + L] = true);
|
|
186
|
+
}
|
|
187
|
+
if (j = null, V !== void 0 && (r(V), j = "" + V), i(v) && (r(v.key), j = "" + v.key), "key" in v) {
|
|
188
|
+
V = {};
|
|
189
|
+
for (var rt in v) rt !== "key" && (V[rt] = v[rt]);
|
|
190
|
+
} else V = v;
|
|
191
|
+
return j && o(V, typeof c == "function" ? c.displayName || c.name || "Unknown" : c), u(c, j, V, a(), he, tt);
|
|
192
|
+
}
|
|
193
|
+
function w(c) {
|
|
194
|
+
_(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof === K && (c._payload.status === "fulfilled" ? _(c._payload.value) && c._payload.value._store && (c._payload.value._store.validated = 1) : c._store && (c._store.validated = 1));
|
|
195
|
+
}
|
|
196
|
+
function _(c) {
|
|
197
|
+
return typeof c == "object" && c !== null && c.$$typeof === b;
|
|
198
|
+
}
|
|
199
|
+
var k = ue, b = Symbol.for("react.transitional.element"), T = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), J = Symbol.for("react.strict_mode"), re = Symbol.for("react.profiler"), ge = Symbol.for("react.consumer"), ve = Symbol.for("react.context"), de = Symbol.for("react.forward_ref"), Z = Symbol.for("react.suspense"), U = Symbol.for("react.suspense_list"), fe = Symbol.for("react.memo"), K = Symbol.for("react.lazy"), se = Symbol.for("react.activity"), Qe = Symbol.for("react.client.reference"), ae = k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, et = Object.prototype.hasOwnProperty, pt = Array.isArray, yt = console.createTask ? console.createTask : function() {
|
|
200
|
+
return null;
|
|
201
|
+
};
|
|
202
|
+
k = {
|
|
203
|
+
react_stack_bottom_frame: function(c) {
|
|
204
|
+
return c();
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
var wt, _t = {}, Ge = k.react_stack_bottom_frame.bind(k, n)(), $t = yt(s(n)), Le = {};
|
|
208
|
+
xt.Fragment = C, xt.jsxDEV = function(c, v, V, L) {
|
|
209
|
+
var he = 1e4 > ae.recentlyCreatedOwnerStacks++;
|
|
210
|
+
return p(c, v, V, L, he ? Error("react-stack-top-frame") : Ge, he ? yt(s(c)) : $t);
|
|
211
|
+
};
|
|
212
|
+
})()), xt;
|
|
213
|
+
}
|
|
214
|
+
var Ir;
|
|
215
|
+
function ba() {
|
|
216
|
+
return Ir || (Ir = 1, process.env.NODE_ENV === "production" ? gt.exports = wa() : gt.exports = _a()), gt.exports;
|
|
217
|
+
}
|
|
218
|
+
var f = ba();
|
|
219
|
+
const ga = 5e3;
|
|
220
|
+
function va() {
|
|
221
|
+
const [e, t] = Y(false), [r, s] = Y(null), a = B(null), [n, i] = Y(0);
|
|
222
|
+
ie(() => {
|
|
223
|
+
let l = false;
|
|
224
|
+
const u = () => Promise.race([
|
|
225
|
+
import("./core_engine-Cnhrb_In.js"),
|
|
226
|
+
new Promise((w, _) => setTimeout(() => _(new Error("Wasm load timeout (5 s)")), ga))
|
|
227
|
+
]);
|
|
228
|
+
return (async () => {
|
|
229
|
+
var _a2;
|
|
230
|
+
s(null), t(false);
|
|
231
|
+
try {
|
|
232
|
+
const w = await u();
|
|
233
|
+
await ((_a2 = w.default) == null ? void 0 : _a2.call(w)), l || (a.current = new w.GridEngine(), t(true));
|
|
234
|
+
} catch (w) {
|
|
235
|
+
l || s(w instanceof Error ? w : new Error(String(w)));
|
|
236
|
+
}
|
|
237
|
+
})(), () => {
|
|
238
|
+
l = true;
|
|
239
|
+
};
|
|
240
|
+
}, [
|
|
241
|
+
n
|
|
242
|
+
]);
|
|
243
|
+
const o = W(() => i((l) => l + 1), []);
|
|
244
|
+
return {
|
|
245
|
+
engine: a.current,
|
|
246
|
+
ready: e,
|
|
247
|
+
error: r,
|
|
248
|
+
retry: o
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
function xa({ engine: e, ready: t, rows: r, columns: s, onSynced: a, page: n, pageSize: i, onPageData: o }) {
|
|
252
|
+
const l = B(0), u = B(-1);
|
|
253
|
+
ie(() => {
|
|
254
|
+
!t || !e || (e.reset(), e.set_columns(JSON.stringify(s)), e.load_data(JSON.stringify(r)), l.current += 1);
|
|
255
|
+
}, [
|
|
256
|
+
t,
|
|
257
|
+
e,
|
|
258
|
+
r,
|
|
259
|
+
s
|
|
260
|
+
]), ie(() => {
|
|
261
|
+
if (!t || !e || l.current === u.current) return;
|
|
262
|
+
u.current = l.current;
|
|
263
|
+
const p = n * i, w = JSON.parse(e.get_page(p, i)), _ = e.get_total_count(), k = JSON.parse(e.get_subtotals());
|
|
264
|
+
o(w), a(_, k);
|
|
265
|
+
}, [
|
|
266
|
+
t,
|
|
267
|
+
e,
|
|
268
|
+
l.current,
|
|
269
|
+
n,
|
|
270
|
+
i,
|
|
271
|
+
o,
|
|
272
|
+
a
|
|
273
|
+
]);
|
|
274
|
+
}
|
|
275
|
+
const qr = sa(null);
|
|
276
|
+
function Jr({ dataset: e, children: t, defaultPageSize: r = 50 }) {
|
|
277
|
+
const { engine: s, ready: a, error: n, retry: i } = va(), [o, l] = Y([]), [u, p] = Y(0), [w, _] = Y({}), [k, b] = Y(0), [T, C] = Y(r), J = W((U, fe) => {
|
|
278
|
+
p(U), _(fe);
|
|
279
|
+
}, []), re = W((U) => {
|
|
280
|
+
l(U);
|
|
281
|
+
}, []);
|
|
282
|
+
xa({
|
|
283
|
+
engine: s,
|
|
284
|
+
ready: a,
|
|
285
|
+
rows: e.rows,
|
|
286
|
+
columns: e.columns,
|
|
287
|
+
page: k,
|
|
288
|
+
pageSize: T,
|
|
289
|
+
onSynced: J,
|
|
290
|
+
onPageData: re
|
|
291
|
+
});
|
|
292
|
+
const ge = B(""), ve = B(""), de = B("");
|
|
293
|
+
if (a && s) {
|
|
294
|
+
const U = JSON.stringify(e.sortStack);
|
|
295
|
+
U !== ge.current && (ge.current = U, s.set_sort_stack(U));
|
|
296
|
+
const fe = JSON.stringify(e.filterGroup);
|
|
297
|
+
fe !== ve.current && (ve.current = fe, e.filterGroup ? s.set_filter_group(JSON.stringify(e.filterGroup)) : s.clear_filters());
|
|
298
|
+
const K = e.quickFilterText;
|
|
299
|
+
K !== de.current && (de.current = K, K ? s.set_quick_filter(K) : s.clear_quick_filter());
|
|
300
|
+
}
|
|
301
|
+
const Z = {
|
|
302
|
+
...e,
|
|
303
|
+
pageRows: o,
|
|
304
|
+
totalCount: u,
|
|
305
|
+
subtotals: w,
|
|
306
|
+
page: k,
|
|
307
|
+
pageSize: T,
|
|
308
|
+
setPage: b,
|
|
309
|
+
setPageSize: C,
|
|
310
|
+
engineReady: a,
|
|
311
|
+
engineError: n,
|
|
312
|
+
retryEngine: i
|
|
313
|
+
};
|
|
314
|
+
return f.jsxDEV(qr.Provider, {
|
|
315
|
+
value: Z,
|
|
316
|
+
children: t
|
|
317
|
+
}, void 0, false, {
|
|
318
|
+
fileName: "/workspace/react-wrapper/src/context/GridContext.tsx",
|
|
319
|
+
lineNumber: 106,
|
|
320
|
+
columnNumber: 10
|
|
321
|
+
}, this);
|
|
322
|
+
}
|
|
323
|
+
Kr = function() {
|
|
324
|
+
const e = aa(qr);
|
|
325
|
+
if (!e) throw new Error("useGMGrid must be used inside <GridProvider>");
|
|
326
|
+
return e;
|
|
327
|
+
};
|
|
328
|
+
function Xr(e) {
|
|
329
|
+
const { columns: t, sourceApi: r, apiParameters: s = {}, localData: a, apiContext: n } = e, [i, o] = Y([]), [l, u] = Y(!a), [p, w] = Y(null), [_, k] = Y(false), [b, T] = Y(s), [C, J] = Y([]), [re, ge] = Y(null), [ve, de] = Y(""), Z = B(true);
|
|
330
|
+
ie(() => (Z.current = true, () => {
|
|
331
|
+
Z.current = false;
|
|
332
|
+
}), []);
|
|
333
|
+
const U = W(async (K) => {
|
|
334
|
+
if (r) {
|
|
335
|
+
u(true), w(null);
|
|
336
|
+
try {
|
|
337
|
+
const se = {
|
|
338
|
+
...K,
|
|
339
|
+
...n
|
|
340
|
+
}, Qe = await r(se);
|
|
341
|
+
Z.current && (o(Qe.data ?? []), k(true));
|
|
342
|
+
} catch (se) {
|
|
343
|
+
Z.current && w(se instanceof Error ? se.message : "Error al cargar datos");
|
|
344
|
+
} finally {
|
|
345
|
+
Z.current && u(false);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}, [
|
|
349
|
+
r,
|
|
350
|
+
n
|
|
351
|
+
]);
|
|
352
|
+
ie(() => {
|
|
353
|
+
a && (o(a), u(false), k(true));
|
|
354
|
+
}, [
|
|
355
|
+
a
|
|
356
|
+
]), ie(() => {
|
|
357
|
+
a || U(b);
|
|
358
|
+
}, [
|
|
359
|
+
b,
|
|
360
|
+
U,
|
|
361
|
+
a
|
|
362
|
+
]);
|
|
363
|
+
const fe = W(() => {
|
|
364
|
+
a || U(b);
|
|
365
|
+
}, [
|
|
366
|
+
U,
|
|
367
|
+
b,
|
|
368
|
+
a
|
|
369
|
+
]);
|
|
370
|
+
return {
|
|
371
|
+
rows: i,
|
|
372
|
+
loading: l,
|
|
373
|
+
error: p,
|
|
374
|
+
ready: _,
|
|
375
|
+
columns: t,
|
|
376
|
+
handleRefresh: fe,
|
|
377
|
+
setApiParameters: T,
|
|
378
|
+
sortStack: C,
|
|
379
|
+
setSortStack: J,
|
|
380
|
+
filterGroup: re,
|
|
381
|
+
setFilterGroup: ge,
|
|
382
|
+
quickFilterText: ve,
|
|
383
|
+
setQuickFilterText: de
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
E = ((e) => (e.STRING = "string", e.NUMBER = "number", e.PRICE = "price", e.TOTAL = "total", e.DISCOUNT = "discount", e.PERCENT = "percent", e.TAX = "tax", e.MARGIN = "margin", e.DATE = "date", e.DATE_TIME = "dateTime", e.STATUS = "status", e.LABELS = "labels", e.IMAGE = "image", e.ACTION = "action", e.MENU_ACTION = "menu-action", e.ID = "id", e.INT = "int", e.CODE = "code", e.ARRAY = "array", e.TEXT = "text", e))(E || {});
|
|
387
|
+
const ka = {
|
|
388
|
+
compact: 36,
|
|
389
|
+
standard: 52,
|
|
390
|
+
comfortable: 72
|
|
391
|
+
};
|
|
392
|
+
function Da({ rows: e, containerRef: t, density: r, overscan: s = 10 }) {
|
|
393
|
+
const a = ka[r], [n, i] = Y({
|
|
394
|
+
visibleStart: 0,
|
|
395
|
+
visibleEnd: Math.min(50, e.length),
|
|
396
|
+
offsetTop: 0,
|
|
397
|
+
totalHeight: e.length * a
|
|
398
|
+
}), o = B(0);
|
|
399
|
+
return ie(() => {
|
|
400
|
+
const l = t.current;
|
|
401
|
+
if (!l) return;
|
|
402
|
+
const u = () => {
|
|
403
|
+
const p = l.scrollTop, w = l.clientHeight, _ = Math.floor(p / a), k = Math.ceil((p + w) / a), b = Math.max(0, _ - s), T = Math.min(e.length, k + s);
|
|
404
|
+
i({
|
|
405
|
+
visibleStart: b,
|
|
406
|
+
visibleEnd: T,
|
|
407
|
+
offsetTop: b * a,
|
|
408
|
+
totalHeight: e.length * a
|
|
409
|
+
}), o.current = requestAnimationFrame(u);
|
|
410
|
+
};
|
|
411
|
+
return o.current = requestAnimationFrame(u), () => cancelAnimationFrame(o.current);
|
|
412
|
+
}, [
|
|
413
|
+
t,
|
|
414
|
+
e.length,
|
|
415
|
+
a,
|
|
416
|
+
s
|
|
417
|
+
]), n;
|
|
418
|
+
}
|
|
419
|
+
function Na({ visibleRows: e, columns: t }) {
|
|
420
|
+
const [r, s] = Y(null), [a, n] = Y(null), [i, o] = Y(false), l = B(null), u = W((b, T) => {
|
|
421
|
+
const C = {
|
|
422
|
+
rowIndex: b,
|
|
423
|
+
colIndex: T
|
|
424
|
+
};
|
|
425
|
+
l.current = C, s({
|
|
426
|
+
start: C,
|
|
427
|
+
end: C
|
|
428
|
+
}), n(C), o(true);
|
|
429
|
+
}, []), p = W((b, T) => {
|
|
430
|
+
if (!i || !l.current) return;
|
|
431
|
+
const C = l.current;
|
|
432
|
+
s({
|
|
433
|
+
start: {
|
|
434
|
+
rowIndex: Math.min(C.rowIndex, b),
|
|
435
|
+
colIndex: Math.min(C.colIndex, T)
|
|
436
|
+
},
|
|
437
|
+
end: {
|
|
438
|
+
rowIndex: Math.max(C.rowIndex, b),
|
|
439
|
+
colIndex: Math.max(C.colIndex, T)
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
}, [
|
|
443
|
+
i
|
|
444
|
+
]), w = W(() => o(false), []);
|
|
445
|
+
ie(() => (document.addEventListener("mouseup", w), () => document.removeEventListener("mouseup", w)), [
|
|
446
|
+
w
|
|
447
|
+
]);
|
|
448
|
+
const _ = W(() => {
|
|
449
|
+
s(null), n(null), l.current = null;
|
|
450
|
+
}, []), k = W((b, T) => r ? b >= r.start.rowIndex && b <= r.end.rowIndex && T >= r.start.colIndex && T <= r.end.colIndex : false, [
|
|
451
|
+
r
|
|
452
|
+
]);
|
|
453
|
+
return {
|
|
454
|
+
range: r,
|
|
455
|
+
focusedCell: a,
|
|
456
|
+
isSelecting: i,
|
|
457
|
+
handleMouseDown: u,
|
|
458
|
+
handleMouseEnter: p,
|
|
459
|
+
handleMouseUp: w,
|
|
460
|
+
setFocusedCell: n,
|
|
461
|
+
clearSelection: _,
|
|
462
|
+
isCellSelected: k
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
function Sa({ range: e, visibleRows: t, columns: r, engine: s, engineReady: a, onPasted: n }) {
|
|
466
|
+
const i = W(async () => {
|
|
467
|
+
var _a2, _b;
|
|
468
|
+
if (!e) return;
|
|
469
|
+
const l = [];
|
|
470
|
+
for (let u = e.start.rowIndex; u <= e.end.rowIndex; u++) {
|
|
471
|
+
const p = [];
|
|
472
|
+
for (let w = e.start.colIndex; w <= e.end.colIndex; w++) {
|
|
473
|
+
const _ = ((_a2 = r[w]) == null ? void 0 : _a2.field) ?? "", k = (_b = t[u]) == null ? void 0 : _b[_];
|
|
474
|
+
p.push(k == null ? "" : String(k));
|
|
475
|
+
}
|
|
476
|
+
l.push(p.join(" "));
|
|
477
|
+
}
|
|
478
|
+
await Ma(l.join(`
|
|
479
|
+
`));
|
|
480
|
+
}, [
|
|
481
|
+
e,
|
|
482
|
+
t,
|
|
483
|
+
r
|
|
484
|
+
]), o = W(async () => {
|
|
485
|
+
}, [
|
|
486
|
+
a,
|
|
487
|
+
s,
|
|
488
|
+
r,
|
|
489
|
+
t,
|
|
490
|
+
n
|
|
491
|
+
]);
|
|
492
|
+
ie(() => {
|
|
493
|
+
const l = (u) => {
|
|
494
|
+
const p = u.ctrlKey || u.metaKey;
|
|
495
|
+
p && u.key === "c" && (u.preventDefault(), i()), p && u.key === "v" && (u.preventDefault(), o());
|
|
496
|
+
};
|
|
497
|
+
return document.addEventListener("keydown", l), () => document.removeEventListener("keydown", l);
|
|
498
|
+
}, [
|
|
499
|
+
i,
|
|
500
|
+
o
|
|
501
|
+
]);
|
|
502
|
+
}
|
|
503
|
+
async function Ma(e) {
|
|
504
|
+
try {
|
|
505
|
+
await navigator.clipboard.writeText(e);
|
|
506
|
+
} catch {
|
|
507
|
+
const t = document.createElement("textarea");
|
|
508
|
+
t.value = e, t.style.position = "fixed", t.style.opacity = "0", document.body.appendChild(t), t.select(), document.execCommand("copy"), document.body.removeChild(t);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
function Ta({ visibleRows: e, columns: t, engine: r, engineReady: s, processRowUpdate: a, onCellError: n }) {
|
|
512
|
+
const [i, o] = Y(null), [l, u] = Y(""), [p, w] = Y({}), _ = W((b, T) => {
|
|
513
|
+
const C = e[b.rowIndex], J = t[b.colIndex];
|
|
514
|
+
if (!C || !J || J.editable === false) return;
|
|
515
|
+
const re = C[J.field];
|
|
516
|
+
u(T ?? (re == null ? "" : String(re))), o(b);
|
|
517
|
+
}, [
|
|
518
|
+
e,
|
|
519
|
+
t
|
|
520
|
+
]), k = W(async (b) => {
|
|
521
|
+
if (!i) return;
|
|
522
|
+
const { rowIndex: T, colIndex: C } = i;
|
|
523
|
+
t[C], e[T], o(null);
|
|
524
|
+
}, [
|
|
525
|
+
i,
|
|
526
|
+
t,
|
|
527
|
+
e,
|
|
528
|
+
l,
|
|
529
|
+
r,
|
|
530
|
+
s,
|
|
531
|
+
a,
|
|
532
|
+
n
|
|
533
|
+
]);
|
|
534
|
+
return {
|
|
535
|
+
editingCell: i,
|
|
536
|
+
editValue: l,
|
|
537
|
+
startEditing: _,
|
|
538
|
+
stopEditing: k,
|
|
539
|
+
setEditValue: u,
|
|
540
|
+
cellErrors: p
|
|
541
|
+
};
|
|
542
|
+
}
|
|
543
|
+
function Ea({ focusedCell: e, setFocusedCell: t, editingCell: r, startEditing: s, stopEditing: a, totalRows: n, columns: i }) {
|
|
544
|
+
const o = W((u, p) => {
|
|
545
|
+
if (!e) return;
|
|
546
|
+
const w = Math.max(0, Math.min(n - 1, e.rowIndex + u)), _ = Math.max(0, Math.min(i.length - 1, e.colIndex + p));
|
|
547
|
+
t({
|
|
548
|
+
rowIndex: w,
|
|
549
|
+
colIndex: _
|
|
550
|
+
});
|
|
551
|
+
}, [
|
|
552
|
+
e,
|
|
553
|
+
t,
|
|
554
|
+
n,
|
|
555
|
+
i.length
|
|
556
|
+
]), l = W((u) => {
|
|
557
|
+
if (e) {
|
|
558
|
+
if (r) {
|
|
559
|
+
u.key === "Escape" && (u.preventDefault(), a(false)), u.key === "Enter" && (u.preventDefault(), a(true).then(() => o(1, 0))), u.key === "Tab" && (u.preventDefault(), a(true).then(() => o(0, u.shiftKey ? -1 : 1)));
|
|
560
|
+
return;
|
|
561
|
+
}
|
|
562
|
+
switch (u.key) {
|
|
563
|
+
case "ArrowUp":
|
|
564
|
+
u.preventDefault(), o(-1, 0);
|
|
565
|
+
break;
|
|
566
|
+
case "ArrowDown":
|
|
567
|
+
u.preventDefault(), o(1, 0);
|
|
568
|
+
break;
|
|
569
|
+
case "ArrowLeft":
|
|
570
|
+
u.preventDefault(), o(0, -1);
|
|
571
|
+
break;
|
|
572
|
+
case "ArrowRight":
|
|
573
|
+
u.preventDefault(), o(0, 1);
|
|
574
|
+
break;
|
|
575
|
+
case "Tab":
|
|
576
|
+
u.preventDefault(), o(0, u.shiftKey ? -1 : 1);
|
|
577
|
+
break;
|
|
578
|
+
case "Enter":
|
|
579
|
+
u.preventDefault(), s(e);
|
|
580
|
+
break;
|
|
581
|
+
case "F2":
|
|
582
|
+
u.preventDefault(), s(e);
|
|
583
|
+
break;
|
|
584
|
+
default:
|
|
585
|
+
u.key.length === 1 && !u.ctrlKey && !u.metaKey && !u.altKey && s(e, u.key);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
}, [
|
|
589
|
+
e,
|
|
590
|
+
r,
|
|
591
|
+
o,
|
|
592
|
+
s,
|
|
593
|
+
a
|
|
594
|
+
]);
|
|
595
|
+
ie(() => (document.addEventListener("keydown", l), () => document.removeEventListener("keydown", l)), [
|
|
596
|
+
l
|
|
597
|
+
]);
|
|
598
|
+
}
|
|
599
|
+
const Oa = "gm-datagrid-col-widths-";
|
|
600
|
+
function Ya({ columns: e, gridTitle: t }) {
|
|
601
|
+
const r = Oa + t, [s, a] = Y(() => {
|
|
602
|
+
try {
|
|
603
|
+
const o = localStorage.getItem(r);
|
|
604
|
+
if (o) return JSON.parse(o);
|
|
605
|
+
} catch {
|
|
606
|
+
}
|
|
607
|
+
const i = {};
|
|
608
|
+
return e.forEach((o) => {
|
|
609
|
+
i[o.field] = o.width ?? o.minWidth ?? 120;
|
|
610
|
+
}), i;
|
|
611
|
+
});
|
|
612
|
+
ie(() => {
|
|
613
|
+
try {
|
|
614
|
+
localStorage.setItem(r, JSON.stringify(s));
|
|
615
|
+
} catch {
|
|
616
|
+
}
|
|
617
|
+
}, [
|
|
618
|
+
s,
|
|
619
|
+
r
|
|
620
|
+
]);
|
|
621
|
+
const n = W((i, o, l) => {
|
|
622
|
+
const u = (w) => {
|
|
623
|
+
var _a2;
|
|
624
|
+
const _ = w.clientX - o, k = ((_a2 = e.find((T) => T.field === i)) == null ? void 0 : _a2.minWidth) ?? 60, b = Math.max(k, l + _);
|
|
625
|
+
a((T) => ({
|
|
626
|
+
...T,
|
|
627
|
+
[i]: b
|
|
628
|
+
}));
|
|
629
|
+
}, p = () => {
|
|
630
|
+
document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", p);
|
|
631
|
+
};
|
|
632
|
+
document.addEventListener("mousemove", u), document.addEventListener("mouseup", p);
|
|
633
|
+
}, [
|
|
634
|
+
e
|
|
635
|
+
]);
|
|
636
|
+
return {
|
|
637
|
+
widths: s,
|
|
638
|
+
onResizeStart: n
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
function Ra({ engineRef: e, title: t }) {
|
|
642
|
+
return {
|
|
643
|
+
handleExport: () => {
|
|
644
|
+
const s = e.current;
|
|
645
|
+
if (!s) return;
|
|
646
|
+
const a = `${t.replace(/\s+/g, "_")}.xlsx`, n = s.export_to_excel(a), i = new Blob([
|
|
647
|
+
n
|
|
648
|
+
], {
|
|
649
|
+
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
650
|
+
}), o = URL.createObjectURL(i), l = document.createElement("a");
|
|
651
|
+
l.href = o, l.download = a, l.click(), URL.revokeObjectURL(o);
|
|
652
|
+
}
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
var Qr;
|
|
656
|
+
function h() {
|
|
657
|
+
return Qr.apply(null, arguments);
|
|
658
|
+
}
|
|
659
|
+
function Pa(e) {
|
|
660
|
+
Qr = e;
|
|
661
|
+
}
|
|
662
|
+
function oe(e) {
|
|
663
|
+
return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
|
|
664
|
+
}
|
|
665
|
+
function Ae(e) {
|
|
666
|
+
return e != null && Object.prototype.toString.call(e) === "[object Object]";
|
|
667
|
+
}
|
|
668
|
+
function S(e, t) {
|
|
669
|
+
return Object.prototype.hasOwnProperty.call(e, t);
|
|
670
|
+
}
|
|
671
|
+
function ir(e) {
|
|
672
|
+
if (Object.getOwnPropertyNames) return Object.getOwnPropertyNames(e).length === 0;
|
|
673
|
+
var t;
|
|
674
|
+
for (t in e) if (S(e, t)) return false;
|
|
675
|
+
return true;
|
|
676
|
+
}
|
|
677
|
+
function $(e) {
|
|
678
|
+
return e === void 0;
|
|
679
|
+
}
|
|
680
|
+
function Ee(e) {
|
|
681
|
+
return typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]";
|
|
682
|
+
}
|
|
683
|
+
function dt(e) {
|
|
684
|
+
return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]";
|
|
685
|
+
}
|
|
686
|
+
function es(e, t) {
|
|
687
|
+
var r = [], s, a = e.length;
|
|
688
|
+
for (s = 0; s < a; ++s) r.push(t(e[s], s));
|
|
689
|
+
return r;
|
|
690
|
+
}
|
|
691
|
+
function Pe(e, t) {
|
|
692
|
+
for (var r in t) S(t, r) && (e[r] = t[r]);
|
|
693
|
+
return S(t, "toString") && (e.toString = t.toString), S(t, "valueOf") && (e.valueOf = t.valueOf), e;
|
|
694
|
+
}
|
|
695
|
+
function _e(e, t, r, s) {
|
|
696
|
+
return ks(e, t, r, s, true).utc();
|
|
697
|
+
}
|
|
698
|
+
function Ca() {
|
|
699
|
+
return {
|
|
700
|
+
empty: false,
|
|
701
|
+
unusedTokens: [],
|
|
702
|
+
unusedInput: [],
|
|
703
|
+
overflow: -2,
|
|
704
|
+
charsLeftOver: 0,
|
|
705
|
+
nullInput: false,
|
|
706
|
+
invalidEra: null,
|
|
707
|
+
invalidMonth: null,
|
|
708
|
+
invalidFormat: false,
|
|
709
|
+
userInvalidated: false,
|
|
710
|
+
iso: false,
|
|
711
|
+
parsedDateParts: [],
|
|
712
|
+
era: null,
|
|
713
|
+
meridiem: null,
|
|
714
|
+
rfc2822: false,
|
|
715
|
+
weekdayMismatch: false
|
|
716
|
+
};
|
|
717
|
+
}
|
|
718
|
+
function g(e) {
|
|
719
|
+
return e._pf == null && (e._pf = Ca()), e._pf;
|
|
720
|
+
}
|
|
721
|
+
var Qt;
|
|
722
|
+
Array.prototype.some ? Qt = Array.prototype.some : Qt = function(e) {
|
|
723
|
+
var t = Object(this), r = t.length >>> 0, s;
|
|
724
|
+
for (s = 0; s < r; s++) if (s in t && e.call(this, t[s], s, t)) return true;
|
|
725
|
+
return false;
|
|
726
|
+
};
|
|
727
|
+
function or(e) {
|
|
728
|
+
var t = null, r = false, s = e._d && !isNaN(e._d.getTime());
|
|
729
|
+
if (s && (t = g(e), r = Qt.call(t.parsedDateParts, function(a) {
|
|
730
|
+
return a != null;
|
|
731
|
+
}), s = t.overflow < 0 && !t.empty && !t.invalidEra && !t.invalidMonth && !t.invalidWeekday && !t.weekdayMismatch && !t.nullInput && !t.invalidFormat && !t.userInvalidated && (!t.meridiem || t.meridiem && r), e._strict && (s = s && t.charsLeftOver === 0 && t.unusedTokens.length === 0 && t.bigHour === void 0)), Object.isFrozen == null || !Object.isFrozen(e)) e._isValid = s;
|
|
732
|
+
else return s;
|
|
733
|
+
return e._isValid;
|
|
734
|
+
}
|
|
735
|
+
function It(e) {
|
|
736
|
+
var t = _e(NaN);
|
|
737
|
+
return e != null ? Pe(g(t), e) : g(t).userInvalidated = true, t;
|
|
738
|
+
}
|
|
739
|
+
var Vr = h.momentProperties = [], Zt = false;
|
|
740
|
+
function lr(e, t) {
|
|
741
|
+
var r, s, a, n = Vr.length;
|
|
742
|
+
if ($(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), $(t._i) || (e._i = t._i), $(t._f) || (e._f = t._f), $(t._l) || (e._l = t._l), $(t._strict) || (e._strict = t._strict), $(t._tzm) || (e._tzm = t._tzm), $(t._isUTC) || (e._isUTC = t._isUTC), $(t._offset) || (e._offset = t._offset), $(t._pf) || (e._pf = g(t)), $(t._locale) || (e._locale = t._locale), n > 0) for (r = 0; r < n; r++) s = Vr[r], a = t[s], $(a) || (e[s] = a);
|
|
743
|
+
return e;
|
|
744
|
+
}
|
|
745
|
+
function ft(e) {
|
|
746
|
+
lr(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), Zt === false && (Zt = true, h.updateOffset(this), Zt = false);
|
|
747
|
+
}
|
|
748
|
+
function le(e) {
|
|
749
|
+
return e instanceof ft || e != null && e._isAMomentObject != null;
|
|
750
|
+
}
|
|
751
|
+
function ts(e) {
|
|
752
|
+
h.suppressDeprecationWarnings === false && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
|
|
753
|
+
}
|
|
754
|
+
function ee(e, t) {
|
|
755
|
+
var r = true;
|
|
756
|
+
return Pe(function() {
|
|
757
|
+
if (h.deprecationHandler != null && h.deprecationHandler(null, e), r) {
|
|
758
|
+
var s = [], a, n, i, o = arguments.length;
|
|
759
|
+
for (n = 0; n < o; n++) {
|
|
760
|
+
if (a = "", typeof arguments[n] == "object") {
|
|
761
|
+
a += `
|
|
762
|
+
[` + n + "] ";
|
|
763
|
+
for (i in arguments[0]) S(arguments[0], i) && (a += i + ": " + arguments[0][i] + ", ");
|
|
764
|
+
a = a.slice(0, -2);
|
|
765
|
+
} else a = arguments[n];
|
|
766
|
+
s.push(a);
|
|
767
|
+
}
|
|
768
|
+
ts(e + `
|
|
769
|
+
Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
770
|
+
` + new Error().stack), r = false;
|
|
771
|
+
}
|
|
772
|
+
return t.apply(this, arguments);
|
|
773
|
+
}, t);
|
|
774
|
+
}
|
|
775
|
+
var Wr = {};
|
|
776
|
+
function rs(e, t) {
|
|
777
|
+
h.deprecationHandler != null && h.deprecationHandler(e, t), Wr[e] || (ts(t), Wr[e] = true);
|
|
778
|
+
}
|
|
779
|
+
h.suppressDeprecationWarnings = false;
|
|
780
|
+
h.deprecationHandler = null;
|
|
781
|
+
function be(e) {
|
|
782
|
+
return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
|
|
783
|
+
}
|
|
784
|
+
function Ia(e) {
|
|
785
|
+
var t, r;
|
|
786
|
+
for (r in e) S(e, r) && (t = e[r], be(t) ? this[r] = t : this["_" + r] = t);
|
|
787
|
+
this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source);
|
|
788
|
+
}
|
|
789
|
+
function er(e, t) {
|
|
790
|
+
var r = Pe({}, e), s;
|
|
791
|
+
for (s in t) S(t, s) && (Ae(e[s]) && Ae(t[s]) ? (r[s] = {}, Pe(r[s], e[s]), Pe(r[s], t[s])) : t[s] != null ? r[s] = t[s] : delete r[s]);
|
|
792
|
+
for (s in e) S(e, s) && !S(t, s) && Ae(e[s]) && (r[s] = Pe({}, r[s]));
|
|
793
|
+
return r;
|
|
794
|
+
}
|
|
795
|
+
function ur(e) {
|
|
796
|
+
e != null && this.set(e);
|
|
797
|
+
}
|
|
798
|
+
var tr;
|
|
799
|
+
Object.keys ? tr = Object.keys : tr = function(e) {
|
|
800
|
+
var t, r = [];
|
|
801
|
+
for (t in e) S(e, t) && r.push(t);
|
|
802
|
+
return r;
|
|
803
|
+
};
|
|
804
|
+
var Va = {
|
|
805
|
+
sameDay: "[Today at] LT",
|
|
806
|
+
nextDay: "[Tomorrow at] LT",
|
|
807
|
+
nextWeek: "dddd [at] LT",
|
|
808
|
+
lastDay: "[Yesterday at] LT",
|
|
809
|
+
lastWeek: "[Last] dddd [at] LT",
|
|
810
|
+
sameElse: "L"
|
|
811
|
+
};
|
|
812
|
+
function Wa(e, t, r) {
|
|
813
|
+
var s = this._calendar[e] || this._calendar.sameElse;
|
|
814
|
+
return be(s) ? s.call(t, r) : s;
|
|
815
|
+
}
|
|
816
|
+
function we(e, t, r) {
|
|
817
|
+
var s = "" + Math.abs(e), a = t - s.length, n = e >= 0;
|
|
818
|
+
return (n ? r ? "+" : "" : "-") + Math.pow(10, Math.max(0, a)).toString().substr(1) + s;
|
|
819
|
+
}
|
|
820
|
+
var cr = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, kt = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, qt = {}, Be = {};
|
|
821
|
+
function y(e, t, r, s) {
|
|
822
|
+
var a = s;
|
|
823
|
+
typeof s == "string" && (a = function() {
|
|
824
|
+
return this[s]();
|
|
825
|
+
}), e && (Be[e] = a), t && (Be[t[0]] = function() {
|
|
826
|
+
return we(a.apply(this, arguments), t[1], t[2]);
|
|
827
|
+
}), r && (Be[r] = function() {
|
|
828
|
+
return this.localeData().ordinal(a.apply(this, arguments), e);
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
function ja(e) {
|
|
832
|
+
return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "");
|
|
833
|
+
}
|
|
834
|
+
function Aa(e) {
|
|
835
|
+
var t = e.match(cr), r, s;
|
|
836
|
+
for (r = 0, s = t.length; r < s; r++) Be[t[r]] ? t[r] = Be[t[r]] : t[r] = ja(t[r]);
|
|
837
|
+
return function(a) {
|
|
838
|
+
var n = "", i;
|
|
839
|
+
for (i = 0; i < s; i++) n += be(t[i]) ? t[i].call(a, e) : t[i];
|
|
840
|
+
return n;
|
|
841
|
+
};
|
|
842
|
+
}
|
|
843
|
+
function Mt(e, t) {
|
|
844
|
+
return e.isValid() ? (t = ss(t, e.localeData()), qt[t] = qt[t] || Aa(t), qt[t](e)) : e.localeData().invalidDate();
|
|
845
|
+
}
|
|
846
|
+
function ss(e, t) {
|
|
847
|
+
var r = 5;
|
|
848
|
+
function s(a) {
|
|
849
|
+
return t.longDateFormat(a) || a;
|
|
850
|
+
}
|
|
851
|
+
for (kt.lastIndex = 0; r >= 0 && kt.test(e); ) e = e.replace(kt, s), kt.lastIndex = 0, r -= 1;
|
|
852
|
+
return e;
|
|
853
|
+
}
|
|
854
|
+
var Fa = {
|
|
855
|
+
LTS: "h:mm:ss A",
|
|
856
|
+
LT: "h:mm A",
|
|
857
|
+
L: "MM/DD/YYYY",
|
|
858
|
+
LL: "MMMM D, YYYY",
|
|
859
|
+
LLL: "MMMM D, YYYY h:mm A",
|
|
860
|
+
LLLL: "dddd, MMMM D, YYYY h:mm A"
|
|
861
|
+
};
|
|
862
|
+
function Ga(e) {
|
|
863
|
+
var t = this._longDateFormat[e], r = this._longDateFormat[e.toUpperCase()];
|
|
864
|
+
return t || !r ? t : (this._longDateFormat[e] = r.match(cr).map(function(s) {
|
|
865
|
+
return s === "MMMM" || s === "MM" || s === "DD" || s === "dddd" ? s.slice(1) : s;
|
|
866
|
+
}).join(""), this._longDateFormat[e]);
|
|
867
|
+
}
|
|
868
|
+
var La = "Invalid date";
|
|
869
|
+
function Ua() {
|
|
870
|
+
return this._invalidDate;
|
|
871
|
+
}
|
|
872
|
+
var Ha = "%d", za = /\d{1,2}/;
|
|
873
|
+
function $a(e) {
|
|
874
|
+
return this._ordinal.replace("%d", e);
|
|
875
|
+
}
|
|
876
|
+
var Ba = {
|
|
877
|
+
future: "in %s",
|
|
878
|
+
past: "%s ago",
|
|
879
|
+
s: "a few seconds",
|
|
880
|
+
ss: "%d seconds",
|
|
881
|
+
m: "a minute",
|
|
882
|
+
mm: "%d minutes",
|
|
883
|
+
h: "an hour",
|
|
884
|
+
hh: "%d hours",
|
|
885
|
+
d: "a day",
|
|
886
|
+
dd: "%d days",
|
|
887
|
+
w: "a week",
|
|
888
|
+
ww: "%d weeks",
|
|
889
|
+
M: "a month",
|
|
890
|
+
MM: "%d months",
|
|
891
|
+
y: "a year",
|
|
892
|
+
yy: "%d years"
|
|
893
|
+
};
|
|
894
|
+
function Za(e, t, r, s) {
|
|
895
|
+
var a = this._relativeTime[r];
|
|
896
|
+
return be(a) ? a(e, t, r, s) : a.replace(/%d/i, e);
|
|
897
|
+
}
|
|
898
|
+
function qa(e, t) {
|
|
899
|
+
var r = this._relativeTime[e > 0 ? "future" : "past"];
|
|
900
|
+
return be(r) ? r(t) : r.replace(/%s/i, t);
|
|
901
|
+
}
|
|
902
|
+
var jr = {
|
|
903
|
+
D: "date",
|
|
904
|
+
dates: "date",
|
|
905
|
+
date: "date",
|
|
906
|
+
d: "day",
|
|
907
|
+
days: "day",
|
|
908
|
+
day: "day",
|
|
909
|
+
e: "weekday",
|
|
910
|
+
weekdays: "weekday",
|
|
911
|
+
weekday: "weekday",
|
|
912
|
+
E: "isoWeekday",
|
|
913
|
+
isoweekdays: "isoWeekday",
|
|
914
|
+
isoweekday: "isoWeekday",
|
|
915
|
+
DDD: "dayOfYear",
|
|
916
|
+
dayofyears: "dayOfYear",
|
|
917
|
+
dayofyear: "dayOfYear",
|
|
918
|
+
h: "hour",
|
|
919
|
+
hours: "hour",
|
|
920
|
+
hour: "hour",
|
|
921
|
+
ms: "millisecond",
|
|
922
|
+
milliseconds: "millisecond",
|
|
923
|
+
millisecond: "millisecond",
|
|
924
|
+
m: "minute",
|
|
925
|
+
minutes: "minute",
|
|
926
|
+
minute: "minute",
|
|
927
|
+
M: "month",
|
|
928
|
+
months: "month",
|
|
929
|
+
month: "month",
|
|
930
|
+
Q: "quarter",
|
|
931
|
+
quarters: "quarter",
|
|
932
|
+
quarter: "quarter",
|
|
933
|
+
s: "second",
|
|
934
|
+
seconds: "second",
|
|
935
|
+
second: "second",
|
|
936
|
+
gg: "weekYear",
|
|
937
|
+
weekyears: "weekYear",
|
|
938
|
+
weekyear: "weekYear",
|
|
939
|
+
GG: "isoWeekYear",
|
|
940
|
+
isoweekyears: "isoWeekYear",
|
|
941
|
+
isoweekyear: "isoWeekYear",
|
|
942
|
+
w: "week",
|
|
943
|
+
weeks: "week",
|
|
944
|
+
week: "week",
|
|
945
|
+
W: "isoWeek",
|
|
946
|
+
isoweeks: "isoWeek",
|
|
947
|
+
isoweek: "isoWeek",
|
|
948
|
+
y: "year",
|
|
949
|
+
years: "year",
|
|
950
|
+
year: "year"
|
|
951
|
+
};
|
|
952
|
+
function te(e) {
|
|
953
|
+
return typeof e == "string" ? jr[e] || jr[e.toLowerCase()] : void 0;
|
|
954
|
+
}
|
|
955
|
+
function dr(e) {
|
|
956
|
+
var t = {}, r, s;
|
|
957
|
+
for (s in e) S(e, s) && (r = te(s), r && (t[r] = e[s]));
|
|
958
|
+
return t;
|
|
959
|
+
}
|
|
960
|
+
var Ja = {
|
|
961
|
+
date: 9,
|
|
962
|
+
day: 11,
|
|
963
|
+
weekday: 11,
|
|
964
|
+
isoWeekday: 11,
|
|
965
|
+
dayOfYear: 4,
|
|
966
|
+
hour: 13,
|
|
967
|
+
millisecond: 16,
|
|
968
|
+
minute: 14,
|
|
969
|
+
month: 8,
|
|
970
|
+
quarter: 7,
|
|
971
|
+
second: 15,
|
|
972
|
+
weekYear: 1,
|
|
973
|
+
isoWeekYear: 1,
|
|
974
|
+
week: 5,
|
|
975
|
+
isoWeek: 5,
|
|
976
|
+
year: 1
|
|
977
|
+
};
|
|
978
|
+
function Ka(e) {
|
|
979
|
+
var t = [], r;
|
|
980
|
+
for (r in e) S(e, r) && t.push({
|
|
981
|
+
unit: r,
|
|
982
|
+
priority: Ja[r]
|
|
983
|
+
});
|
|
984
|
+
return t.sort(function(s, a) {
|
|
985
|
+
return s.priority - a.priority;
|
|
986
|
+
}), t;
|
|
987
|
+
}
|
|
988
|
+
var as = /\d/, q = /\d\d/, ns = /\d{3}/, fr = /\d{4}/, Vt = /[+-]?\d{6}/, P = /\d\d?/, is = /\d\d\d\d?/, os = /\d\d\d\d\d\d?/, Wt = /\d{1,3}/, hr = /\d{1,4}/, jt = /[+-]?\d{1,6}/, Je = /\d+/, At = /[+-]?\d+/, Xa = /Z|[+-]\d\d:?\d\d/gi, Ft = /Z|[+-]\d\d(?::?\d\d)?/gi, Qa = /[+-]?\d+(\.\d{1,3})?/, ht = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, Ke = /^[1-9]\d?/, mr = /^([1-9]\d|\d)/, Ot;
|
|
989
|
+
Ot = {};
|
|
990
|
+
function m(e, t, r) {
|
|
991
|
+
Ot[e] = be(t) ? t : function(s, a) {
|
|
992
|
+
return s && r ? r : t;
|
|
993
|
+
};
|
|
994
|
+
}
|
|
995
|
+
function en(e, t) {
|
|
996
|
+
return S(Ot, e) ? Ot[e](t._strict, t._locale) : new RegExp(tn(e));
|
|
997
|
+
}
|
|
998
|
+
function tn(e) {
|
|
999
|
+
return Me(e.replace("\\", "").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function(t, r, s, a, n) {
|
|
1000
|
+
return r || s || a || n;
|
|
1001
|
+
}));
|
|
1002
|
+
}
|
|
1003
|
+
function Me(e) {
|
|
1004
|
+
return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
1005
|
+
}
|
|
1006
|
+
function Q(e) {
|
|
1007
|
+
return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
|
|
1008
|
+
}
|
|
1009
|
+
function x(e) {
|
|
1010
|
+
var t = +e, r = 0;
|
|
1011
|
+
return t !== 0 && isFinite(t) && (r = Q(t)), r;
|
|
1012
|
+
}
|
|
1013
|
+
var rr = {};
|
|
1014
|
+
function O(e, t) {
|
|
1015
|
+
var r, s = t, a;
|
|
1016
|
+
for (typeof e == "string" && (e = [
|
|
1017
|
+
e
|
|
1018
|
+
]), Ee(t) && (s = function(n, i) {
|
|
1019
|
+
i[t] = x(n);
|
|
1020
|
+
}), a = e.length, r = 0; r < a; r++) rr[e[r]] = s;
|
|
1021
|
+
}
|
|
1022
|
+
function mt(e, t) {
|
|
1023
|
+
O(e, function(r, s, a, n) {
|
|
1024
|
+
a._w = a._w || {}, t(r, a._w, a, n);
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1027
|
+
function rn(e, t, r) {
|
|
1028
|
+
t != null && S(rr, e) && rr[e](t, r._a, r, e);
|
|
1029
|
+
}
|
|
1030
|
+
function Gt(e) {
|
|
1031
|
+
return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
|
|
1032
|
+
}
|
|
1033
|
+
var z = 0, Ne = 1, ye = 2, G = 3, ne = 4, Se = 5, je = 6, sn = 7, an = 8;
|
|
1034
|
+
y("Y", 0, 0, function() {
|
|
1035
|
+
var e = this.year();
|
|
1036
|
+
return e <= 9999 ? we(e, 4) : "+" + e;
|
|
1037
|
+
});
|
|
1038
|
+
y(0, [
|
|
1039
|
+
"YY",
|
|
1040
|
+
2
|
|
1041
|
+
], 0, function() {
|
|
1042
|
+
return this.year() % 100;
|
|
1043
|
+
});
|
|
1044
|
+
y(0, [
|
|
1045
|
+
"YYYY",
|
|
1046
|
+
4
|
|
1047
|
+
], 0, "year");
|
|
1048
|
+
y(0, [
|
|
1049
|
+
"YYYYY",
|
|
1050
|
+
5
|
|
1051
|
+
], 0, "year");
|
|
1052
|
+
y(0, [
|
|
1053
|
+
"YYYYYY",
|
|
1054
|
+
6,
|
|
1055
|
+
true
|
|
1056
|
+
], 0, "year");
|
|
1057
|
+
m("Y", At);
|
|
1058
|
+
m("YY", P, q);
|
|
1059
|
+
m("YYYY", hr, fr);
|
|
1060
|
+
m("YYYYY", jt, Vt);
|
|
1061
|
+
m("YYYYYY", jt, Vt);
|
|
1062
|
+
O([
|
|
1063
|
+
"YYYYY",
|
|
1064
|
+
"YYYYYY"
|
|
1065
|
+
], z);
|
|
1066
|
+
O("YYYY", function(e, t) {
|
|
1067
|
+
t[z] = e.length === 2 ? h.parseTwoDigitYear(e) : x(e);
|
|
1068
|
+
});
|
|
1069
|
+
O("YY", function(e, t) {
|
|
1070
|
+
t[z] = h.parseTwoDigitYear(e);
|
|
1071
|
+
});
|
|
1072
|
+
O("Y", function(e, t) {
|
|
1073
|
+
t[z] = parseInt(e, 10);
|
|
1074
|
+
});
|
|
1075
|
+
function nt(e) {
|
|
1076
|
+
return Gt(e) ? 366 : 365;
|
|
1077
|
+
}
|
|
1078
|
+
h.parseTwoDigitYear = function(e) {
|
|
1079
|
+
return x(e) + (x(e) > 68 ? 1900 : 2e3);
|
|
1080
|
+
};
|
|
1081
|
+
var ls = Xe("FullYear", true);
|
|
1082
|
+
function nn() {
|
|
1083
|
+
return Gt(this.year());
|
|
1084
|
+
}
|
|
1085
|
+
function Xe(e, t) {
|
|
1086
|
+
return function(r) {
|
|
1087
|
+
return r != null ? (us(this, e, r), h.updateOffset(this, t), this) : ot(this, e);
|
|
1088
|
+
};
|
|
1089
|
+
}
|
|
1090
|
+
function ot(e, t) {
|
|
1091
|
+
if (!e.isValid()) return NaN;
|
|
1092
|
+
var r = e._d, s = e._isUTC;
|
|
1093
|
+
switch (t) {
|
|
1094
|
+
case "Milliseconds":
|
|
1095
|
+
return s ? r.getUTCMilliseconds() : r.getMilliseconds();
|
|
1096
|
+
case "Seconds":
|
|
1097
|
+
return s ? r.getUTCSeconds() : r.getSeconds();
|
|
1098
|
+
case "Minutes":
|
|
1099
|
+
return s ? r.getUTCMinutes() : r.getMinutes();
|
|
1100
|
+
case "Hours":
|
|
1101
|
+
return s ? r.getUTCHours() : r.getHours();
|
|
1102
|
+
case "Date":
|
|
1103
|
+
return s ? r.getUTCDate() : r.getDate();
|
|
1104
|
+
case "Day":
|
|
1105
|
+
return s ? r.getUTCDay() : r.getDay();
|
|
1106
|
+
case "Month":
|
|
1107
|
+
return s ? r.getUTCMonth() : r.getMonth();
|
|
1108
|
+
case "FullYear":
|
|
1109
|
+
return s ? r.getUTCFullYear() : r.getFullYear();
|
|
1110
|
+
default:
|
|
1111
|
+
return NaN;
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
function us(e, t, r) {
|
|
1115
|
+
var s, a, n, i, o;
|
|
1116
|
+
if (!(!e.isValid() || isNaN(r))) {
|
|
1117
|
+
switch (s = e._d, a = e._isUTC, t) {
|
|
1118
|
+
case "Milliseconds":
|
|
1119
|
+
return void (a ? s.setUTCMilliseconds(r) : s.setMilliseconds(r));
|
|
1120
|
+
case "Seconds":
|
|
1121
|
+
return void (a ? s.setUTCSeconds(r) : s.setSeconds(r));
|
|
1122
|
+
case "Minutes":
|
|
1123
|
+
return void (a ? s.setUTCMinutes(r) : s.setMinutes(r));
|
|
1124
|
+
case "Hours":
|
|
1125
|
+
return void (a ? s.setUTCHours(r) : s.setHours(r));
|
|
1126
|
+
case "Date":
|
|
1127
|
+
return void (a ? s.setUTCDate(r) : s.setDate(r));
|
|
1128
|
+
case "FullYear":
|
|
1129
|
+
break;
|
|
1130
|
+
default:
|
|
1131
|
+
return;
|
|
1132
|
+
}
|
|
1133
|
+
n = r, i = e.month(), o = e.date(), o = o === 29 && i === 1 && !Gt(n) ? 28 : o, a ? s.setUTCFullYear(n, i, o) : s.setFullYear(n, i, o);
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
function on(e) {
|
|
1137
|
+
return e = te(e), be(this[e]) ? this[e]() : this;
|
|
1138
|
+
}
|
|
1139
|
+
function ln(e, t) {
|
|
1140
|
+
if (typeof e == "object") {
|
|
1141
|
+
e = dr(e);
|
|
1142
|
+
var r = Ka(e), s, a = r.length;
|
|
1143
|
+
for (s = 0; s < a; s++) this[r[s].unit](e[r[s].unit]);
|
|
1144
|
+
} else if (e = te(e), be(this[e])) return this[e](t);
|
|
1145
|
+
return this;
|
|
1146
|
+
}
|
|
1147
|
+
function un(e, t) {
|
|
1148
|
+
return (e % t + t) % t;
|
|
1149
|
+
}
|
|
1150
|
+
var A;
|
|
1151
|
+
Array.prototype.indexOf ? A = Array.prototype.indexOf : A = function(e) {
|
|
1152
|
+
var t;
|
|
1153
|
+
for (t = 0; t < this.length; ++t) if (this[t] === e) return t;
|
|
1154
|
+
return -1;
|
|
1155
|
+
};
|
|
1156
|
+
function pr(e, t) {
|
|
1157
|
+
if (isNaN(e) || isNaN(t)) return NaN;
|
|
1158
|
+
var r = un(t, 12);
|
|
1159
|
+
return e += (t - r) / 12, r === 1 ? Gt(e) ? 29 : 28 : 31 - r % 7 % 2;
|
|
1160
|
+
}
|
|
1161
|
+
y("M", [
|
|
1162
|
+
"MM",
|
|
1163
|
+
2
|
|
1164
|
+
], "Mo", function() {
|
|
1165
|
+
return this.month() + 1;
|
|
1166
|
+
});
|
|
1167
|
+
y("MMM", 0, 0, function(e) {
|
|
1168
|
+
return this.localeData().monthsShort(this, e);
|
|
1169
|
+
});
|
|
1170
|
+
y("MMMM", 0, 0, function(e) {
|
|
1171
|
+
return this.localeData().months(this, e);
|
|
1172
|
+
});
|
|
1173
|
+
m("M", P, Ke);
|
|
1174
|
+
m("MM", P, q);
|
|
1175
|
+
m("MMM", function(e, t) {
|
|
1176
|
+
return t.monthsShortRegex(e);
|
|
1177
|
+
});
|
|
1178
|
+
m("MMMM", function(e, t) {
|
|
1179
|
+
return t.monthsRegex(e);
|
|
1180
|
+
});
|
|
1181
|
+
O([
|
|
1182
|
+
"M",
|
|
1183
|
+
"MM"
|
|
1184
|
+
], function(e, t) {
|
|
1185
|
+
t[Ne] = x(e) - 1;
|
|
1186
|
+
});
|
|
1187
|
+
O([
|
|
1188
|
+
"MMM",
|
|
1189
|
+
"MMMM"
|
|
1190
|
+
], function(e, t, r, s) {
|
|
1191
|
+
var a = r._locale.monthsParse(e, s, r._strict);
|
|
1192
|
+
a != null ? t[Ne] = a : g(r).invalidMonth = e;
|
|
1193
|
+
});
|
|
1194
|
+
var cn = "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), cs = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), ds = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, dn = ht, fn = ht;
|
|
1195
|
+
function hn(e, t) {
|
|
1196
|
+
return e ? oe(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || ds).test(t) ? "format" : "standalone"][e.month()] : oe(this._months) ? this._months : this._months.standalone;
|
|
1197
|
+
}
|
|
1198
|
+
function mn(e, t) {
|
|
1199
|
+
return e ? oe(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[ds.test(t) ? "format" : "standalone"][e.month()] : oe(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
|
|
1200
|
+
}
|
|
1201
|
+
function pn(e, t, r) {
|
|
1202
|
+
var s, a, n, i = e.toLocaleLowerCase();
|
|
1203
|
+
if (!this._monthsParse) for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], s = 0; s < 12; ++s) n = _e([
|
|
1204
|
+
2e3,
|
|
1205
|
+
s
|
|
1206
|
+
]), this._shortMonthsParse[s] = this.monthsShort(n, "").toLocaleLowerCase(), this._longMonthsParse[s] = this.months(n, "").toLocaleLowerCase();
|
|
1207
|
+
return r ? t === "MMM" ? (a = A.call(this._shortMonthsParse, i), a !== -1 ? a : null) : (a = A.call(this._longMonthsParse, i), a !== -1 ? a : null) : t === "MMM" ? (a = A.call(this._shortMonthsParse, i), a !== -1 ? a : (a = A.call(this._longMonthsParse, i), a !== -1 ? a : null)) : (a = A.call(this._longMonthsParse, i), a !== -1 ? a : (a = A.call(this._shortMonthsParse, i), a !== -1 ? a : null));
|
|
1208
|
+
}
|
|
1209
|
+
function yn(e, t, r) {
|
|
1210
|
+
var s, a, n;
|
|
1211
|
+
if (this._monthsParseExact) return pn.call(this, e, t, r);
|
|
1212
|
+
for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), s = 0; s < 12; s++) {
|
|
1213
|
+
if (a = _e([
|
|
1214
|
+
2e3,
|
|
1215
|
+
s
|
|
1216
|
+
]), r && !this._longMonthsParse[s] && (this._longMonthsParse[s] = new RegExp("^" + this.months(a, "").replace(".", "") + "$", "i"), this._shortMonthsParse[s] = new RegExp("^" + this.monthsShort(a, "").replace(".", "") + "$", "i")), !r && !this._monthsParse[s] && (n = "^" + this.months(a, "") + "|^" + this.monthsShort(a, ""), this._monthsParse[s] = new RegExp(n.replace(".", ""), "i")), r && t === "MMMM" && this._longMonthsParse[s].test(e)) return s;
|
|
1217
|
+
if (r && t === "MMM" && this._shortMonthsParse[s].test(e)) return s;
|
|
1218
|
+
if (!r && this._monthsParse[s].test(e)) return s;
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
function fs(e, t) {
|
|
1222
|
+
if (!e.isValid()) return e;
|
|
1223
|
+
if (typeof t == "string") {
|
|
1224
|
+
if (/^\d+$/.test(t)) t = x(t);
|
|
1225
|
+
else if (t = e.localeData().monthsParse(t), !Ee(t)) return e;
|
|
1226
|
+
}
|
|
1227
|
+
var r = t, s = e.date();
|
|
1228
|
+
return s = s < 29 ? s : Math.min(s, pr(e.year(), r)), e._isUTC ? e._d.setUTCMonth(r, s) : e._d.setMonth(r, s), e;
|
|
1229
|
+
}
|
|
1230
|
+
function hs(e) {
|
|
1231
|
+
return e != null ? (fs(this, e), h.updateOffset(this, true), this) : ot(this, "Month");
|
|
1232
|
+
}
|
|
1233
|
+
function wn() {
|
|
1234
|
+
return pr(this.year(), this.month());
|
|
1235
|
+
}
|
|
1236
|
+
function _n(e) {
|
|
1237
|
+
return this._monthsParseExact ? (S(this, "_monthsRegex") || ms.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (S(this, "_monthsShortRegex") || (this._monthsShortRegex = dn), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
|
|
1238
|
+
}
|
|
1239
|
+
function bn(e) {
|
|
1240
|
+
return this._monthsParseExact ? (S(this, "_monthsRegex") || ms.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (S(this, "_monthsRegex") || (this._monthsRegex = fn), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
|
|
1241
|
+
}
|
|
1242
|
+
function ms() {
|
|
1243
|
+
function e(l, u) {
|
|
1244
|
+
return u.length - l.length;
|
|
1245
|
+
}
|
|
1246
|
+
var t = [], r = [], s = [], a, n, i, o;
|
|
1247
|
+
for (a = 0; a < 12; a++) n = _e([
|
|
1248
|
+
2e3,
|
|
1249
|
+
a
|
|
1250
|
+
]), i = Me(this.monthsShort(n, "")), o = Me(this.months(n, "")), t.push(i), r.push(o), s.push(o), s.push(i);
|
|
1251
|
+
t.sort(e), r.sort(e), s.sort(e), this._monthsRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._monthsShortStrictRegex = new RegExp("^(" + t.join("|") + ")", "i");
|
|
1252
|
+
}
|
|
1253
|
+
function gn(e, t, r, s, a, n, i) {
|
|
1254
|
+
var o;
|
|
1255
|
+
return e < 100 && e >= 0 ? (o = new Date(e + 400, t, r, s, a, n, i), isFinite(o.getFullYear()) && o.setFullYear(e)) : o = new Date(e, t, r, s, a, n, i), o;
|
|
1256
|
+
}
|
|
1257
|
+
function lt(e) {
|
|
1258
|
+
var t, r;
|
|
1259
|
+
return e < 100 && e >= 0 ? (r = Array.prototype.slice.call(arguments), r[0] = e + 400, t = new Date(Date.UTC.apply(null, r)), isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e)) : t = new Date(Date.UTC.apply(null, arguments)), t;
|
|
1260
|
+
}
|
|
1261
|
+
function Yt(e, t, r) {
|
|
1262
|
+
var s = 7 + t - r, a = (7 + lt(e, 0, s).getUTCDay() - t) % 7;
|
|
1263
|
+
return -a + s - 1;
|
|
1264
|
+
}
|
|
1265
|
+
function ps(e, t, r, s, a) {
|
|
1266
|
+
var n = (7 + r - s) % 7, i = Yt(e, s, a), o = 1 + 7 * (t - 1) + n + i, l, u;
|
|
1267
|
+
return o <= 0 ? (l = e - 1, u = nt(l) + o) : o > nt(e) ? (l = e + 1, u = o - nt(e)) : (l = e, u = o), {
|
|
1268
|
+
year: l,
|
|
1269
|
+
dayOfYear: u
|
|
1270
|
+
};
|
|
1271
|
+
}
|
|
1272
|
+
function ut(e, t, r) {
|
|
1273
|
+
var s = Yt(e.year(), t, r), a = Math.floor((e.dayOfYear() - s - 1) / 7) + 1, n, i;
|
|
1274
|
+
return a < 1 ? (i = e.year() - 1, n = a + Te(i, t, r)) : a > Te(e.year(), t, r) ? (n = a - Te(e.year(), t, r), i = e.year() + 1) : (i = e.year(), n = a), {
|
|
1275
|
+
week: n,
|
|
1276
|
+
year: i
|
|
1277
|
+
};
|
|
1278
|
+
}
|
|
1279
|
+
function Te(e, t, r) {
|
|
1280
|
+
var s = Yt(e, t, r), a = Yt(e + 1, t, r);
|
|
1281
|
+
return (nt(e) - s + a) / 7;
|
|
1282
|
+
}
|
|
1283
|
+
y("w", [
|
|
1284
|
+
"ww",
|
|
1285
|
+
2
|
|
1286
|
+
], "wo", "week");
|
|
1287
|
+
y("W", [
|
|
1288
|
+
"WW",
|
|
1289
|
+
2
|
|
1290
|
+
], "Wo", "isoWeek");
|
|
1291
|
+
m("w", P, Ke);
|
|
1292
|
+
m("ww", P, q);
|
|
1293
|
+
m("W", P, Ke);
|
|
1294
|
+
m("WW", P, q);
|
|
1295
|
+
mt([
|
|
1296
|
+
"w",
|
|
1297
|
+
"ww",
|
|
1298
|
+
"W",
|
|
1299
|
+
"WW"
|
|
1300
|
+
], function(e, t, r, s) {
|
|
1301
|
+
t[s.substr(0, 1)] = x(e);
|
|
1302
|
+
});
|
|
1303
|
+
function vn(e) {
|
|
1304
|
+
return ut(e, this._week.dow, this._week.doy).week;
|
|
1305
|
+
}
|
|
1306
|
+
var xn = {
|
|
1307
|
+
dow: 0,
|
|
1308
|
+
doy: 6
|
|
1309
|
+
};
|
|
1310
|
+
function kn() {
|
|
1311
|
+
return this._week.dow;
|
|
1312
|
+
}
|
|
1313
|
+
function Dn() {
|
|
1314
|
+
return this._week.doy;
|
|
1315
|
+
}
|
|
1316
|
+
function Nn(e) {
|
|
1317
|
+
var t = this.localeData().week(this);
|
|
1318
|
+
return e == null ? t : this.add((e - t) * 7, "d");
|
|
1319
|
+
}
|
|
1320
|
+
function Sn(e) {
|
|
1321
|
+
var t = ut(this, 1, 4).week;
|
|
1322
|
+
return e == null ? t : this.add((e - t) * 7, "d");
|
|
1323
|
+
}
|
|
1324
|
+
y("d", 0, "do", "day");
|
|
1325
|
+
y("dd", 0, 0, function(e) {
|
|
1326
|
+
return this.localeData().weekdaysMin(this, e);
|
|
1327
|
+
});
|
|
1328
|
+
y("ddd", 0, 0, function(e) {
|
|
1329
|
+
return this.localeData().weekdaysShort(this, e);
|
|
1330
|
+
});
|
|
1331
|
+
y("dddd", 0, 0, function(e) {
|
|
1332
|
+
return this.localeData().weekdays(this, e);
|
|
1333
|
+
});
|
|
1334
|
+
y("e", 0, 0, "weekday");
|
|
1335
|
+
y("E", 0, 0, "isoWeekday");
|
|
1336
|
+
m("d", P);
|
|
1337
|
+
m("e", P);
|
|
1338
|
+
m("E", P);
|
|
1339
|
+
m("dd", function(e, t) {
|
|
1340
|
+
return t.weekdaysMinRegex(e);
|
|
1341
|
+
});
|
|
1342
|
+
m("ddd", function(e, t) {
|
|
1343
|
+
return t.weekdaysShortRegex(e);
|
|
1344
|
+
});
|
|
1345
|
+
m("dddd", function(e, t) {
|
|
1346
|
+
return t.weekdaysRegex(e);
|
|
1347
|
+
});
|
|
1348
|
+
mt([
|
|
1349
|
+
"dd",
|
|
1350
|
+
"ddd",
|
|
1351
|
+
"dddd"
|
|
1352
|
+
], function(e, t, r, s) {
|
|
1353
|
+
var a = r._locale.weekdaysParse(e, s, r._strict);
|
|
1354
|
+
a != null ? t.d = a : g(r).invalidWeekday = e;
|
|
1355
|
+
});
|
|
1356
|
+
mt([
|
|
1357
|
+
"d",
|
|
1358
|
+
"e",
|
|
1359
|
+
"E"
|
|
1360
|
+
], function(e, t, r, s) {
|
|
1361
|
+
t[s] = x(e);
|
|
1362
|
+
});
|
|
1363
|
+
function Mn(e, t) {
|
|
1364
|
+
return typeof e != "string" ? e : isNaN(e) ? (e = t.weekdaysParse(e), typeof e == "number" ? e : null) : parseInt(e, 10);
|
|
1365
|
+
}
|
|
1366
|
+
function Tn(e, t) {
|
|
1367
|
+
return typeof e == "string" ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e;
|
|
1368
|
+
}
|
|
1369
|
+
function yr(e, t) {
|
|
1370
|
+
return e.slice(t, 7).concat(e.slice(0, t));
|
|
1371
|
+
}
|
|
1372
|
+
var En = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), ys = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), On = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), Yn = ht, Rn = ht, Pn = ht;
|
|
1373
|
+
function Cn(e, t) {
|
|
1374
|
+
var r = oe(this._weekdays) ? this._weekdays : this._weekdays[e && e !== true && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
|
|
1375
|
+
return e === true ? yr(r, this._week.dow) : e ? r[e.day()] : r;
|
|
1376
|
+
}
|
|
1377
|
+
function In(e) {
|
|
1378
|
+
return e === true ? yr(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
|
|
1379
|
+
}
|
|
1380
|
+
function Vn(e) {
|
|
1381
|
+
return e === true ? yr(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
|
|
1382
|
+
}
|
|
1383
|
+
function Wn(e, t, r) {
|
|
1384
|
+
var s, a, n, i = e.toLocaleLowerCase();
|
|
1385
|
+
if (!this._weekdaysParse) for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], s = 0; s < 7; ++s) n = _e([
|
|
1386
|
+
2e3,
|
|
1387
|
+
1
|
|
1388
|
+
]).day(s), this._minWeekdaysParse[s] = this.weekdaysMin(n, "").toLocaleLowerCase(), this._shortWeekdaysParse[s] = this.weekdaysShort(n, "").toLocaleLowerCase(), this._weekdaysParse[s] = this.weekdays(n, "").toLocaleLowerCase();
|
|
1389
|
+
return r ? t === "dddd" ? (a = A.call(this._weekdaysParse, i), a !== -1 ? a : null) : t === "ddd" ? (a = A.call(this._shortWeekdaysParse, i), a !== -1 ? a : null) : (a = A.call(this._minWeekdaysParse, i), a !== -1 ? a : null) : t === "dddd" ? (a = A.call(this._weekdaysParse, i), a !== -1 || (a = A.call(this._shortWeekdaysParse, i), a !== -1) ? a : (a = A.call(this._minWeekdaysParse, i), a !== -1 ? a : null)) : t === "ddd" ? (a = A.call(this._shortWeekdaysParse, i), a !== -1 || (a = A.call(this._weekdaysParse, i), a !== -1) ? a : (a = A.call(this._minWeekdaysParse, i), a !== -1 ? a : null)) : (a = A.call(this._minWeekdaysParse, i), a !== -1 || (a = A.call(this._weekdaysParse, i), a !== -1) ? a : (a = A.call(this._shortWeekdaysParse, i), a !== -1 ? a : null));
|
|
1390
|
+
}
|
|
1391
|
+
function jn(e, t, r) {
|
|
1392
|
+
var s, a, n;
|
|
1393
|
+
if (this._weekdaysParseExact) return Wn.call(this, e, t, r);
|
|
1394
|
+
for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), s = 0; s < 7; s++) {
|
|
1395
|
+
if (a = _e([
|
|
1396
|
+
2e3,
|
|
1397
|
+
1
|
|
1398
|
+
]).day(s), r && !this._fullWeekdaysParse[s] && (this._fullWeekdaysParse[s] = new RegExp("^" + this.weekdays(a, "").replace(".", "\\.?") + "$", "i"), this._shortWeekdaysParse[s] = new RegExp("^" + this.weekdaysShort(a, "").replace(".", "\\.?") + "$", "i"), this._minWeekdaysParse[s] = new RegExp("^" + this.weekdaysMin(a, "").replace(".", "\\.?") + "$", "i")), this._weekdaysParse[s] || (n = "^" + this.weekdays(a, "") + "|^" + this.weekdaysShort(a, "") + "|^" + this.weekdaysMin(a, ""), this._weekdaysParse[s] = new RegExp(n.replace(".", ""), "i")), r && t === "dddd" && this._fullWeekdaysParse[s].test(e)) return s;
|
|
1399
|
+
if (r && t === "ddd" && this._shortWeekdaysParse[s].test(e)) return s;
|
|
1400
|
+
if (r && t === "dd" && this._minWeekdaysParse[s].test(e)) return s;
|
|
1401
|
+
if (!r && this._weekdaysParse[s].test(e)) return s;
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
function An(e) {
|
|
1405
|
+
if (!this.isValid()) return e != null ? this : NaN;
|
|
1406
|
+
var t = ot(this, "Day");
|
|
1407
|
+
return e != null ? (e = Mn(e, this.localeData()), this.add(e - t, "d")) : t;
|
|
1408
|
+
}
|
|
1409
|
+
function Fn(e) {
|
|
1410
|
+
if (!this.isValid()) return e != null ? this : NaN;
|
|
1411
|
+
var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
|
|
1412
|
+
return e == null ? t : this.add(e - t, "d");
|
|
1413
|
+
}
|
|
1414
|
+
function Gn(e) {
|
|
1415
|
+
if (!this.isValid()) return e != null ? this : NaN;
|
|
1416
|
+
if (e != null) {
|
|
1417
|
+
var t = Tn(e, this.localeData());
|
|
1418
|
+
return this.day(this.day() % 7 ? t : t - 7);
|
|
1419
|
+
} else return this.day() || 7;
|
|
1420
|
+
}
|
|
1421
|
+
function Ln(e) {
|
|
1422
|
+
return this._weekdaysParseExact ? (S(this, "_weekdaysRegex") || wr.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (S(this, "_weekdaysRegex") || (this._weekdaysRegex = Yn), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex);
|
|
1423
|
+
}
|
|
1424
|
+
function Un(e) {
|
|
1425
|
+
return this._weekdaysParseExact ? (S(this, "_weekdaysRegex") || wr.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (S(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = Rn), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
|
|
1426
|
+
}
|
|
1427
|
+
function Hn(e) {
|
|
1428
|
+
return this._weekdaysParseExact ? (S(this, "_weekdaysRegex") || wr.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (S(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Pn), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
|
|
1429
|
+
}
|
|
1430
|
+
function wr() {
|
|
1431
|
+
function e(p, w) {
|
|
1432
|
+
return w.length - p.length;
|
|
1433
|
+
}
|
|
1434
|
+
var t = [], r = [], s = [], a = [], n, i, o, l, u;
|
|
1435
|
+
for (n = 0; n < 7; n++) i = _e([
|
|
1436
|
+
2e3,
|
|
1437
|
+
1
|
|
1438
|
+
]).day(n), o = Me(this.weekdaysMin(i, "")), l = Me(this.weekdaysShort(i, "")), u = Me(this.weekdays(i, "")), t.push(o), r.push(l), s.push(u), a.push(o), a.push(l), a.push(u);
|
|
1439
|
+
t.sort(e), r.sort(e), s.sort(e), a.sort(e), this._weekdaysRegex = new RegExp("^(" + a.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._weekdaysShortStrictRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._weekdaysMinStrictRegex = new RegExp("^(" + t.join("|") + ")", "i");
|
|
1440
|
+
}
|
|
1441
|
+
function _r() {
|
|
1442
|
+
return this.hours() % 12 || 12;
|
|
1443
|
+
}
|
|
1444
|
+
function zn() {
|
|
1445
|
+
return this.hours() || 24;
|
|
1446
|
+
}
|
|
1447
|
+
y("H", [
|
|
1448
|
+
"HH",
|
|
1449
|
+
2
|
|
1450
|
+
], 0, "hour");
|
|
1451
|
+
y("h", [
|
|
1452
|
+
"hh",
|
|
1453
|
+
2
|
|
1454
|
+
], 0, _r);
|
|
1455
|
+
y("k", [
|
|
1456
|
+
"kk",
|
|
1457
|
+
2
|
|
1458
|
+
], 0, zn);
|
|
1459
|
+
y("hmm", 0, 0, function() {
|
|
1460
|
+
return "" + _r.apply(this) + we(this.minutes(), 2);
|
|
1461
|
+
});
|
|
1462
|
+
y("hmmss", 0, 0, function() {
|
|
1463
|
+
return "" + _r.apply(this) + we(this.minutes(), 2) + we(this.seconds(), 2);
|
|
1464
|
+
});
|
|
1465
|
+
y("Hmm", 0, 0, function() {
|
|
1466
|
+
return "" + this.hours() + we(this.minutes(), 2);
|
|
1467
|
+
});
|
|
1468
|
+
y("Hmmss", 0, 0, function() {
|
|
1469
|
+
return "" + this.hours() + we(this.minutes(), 2) + we(this.seconds(), 2);
|
|
1470
|
+
});
|
|
1471
|
+
function ws(e, t) {
|
|
1472
|
+
y(e, 0, 0, function() {
|
|
1473
|
+
return this.localeData().meridiem(this.hours(), this.minutes(), t);
|
|
1474
|
+
});
|
|
1475
|
+
}
|
|
1476
|
+
ws("a", true);
|
|
1477
|
+
ws("A", false);
|
|
1478
|
+
function _s(e, t) {
|
|
1479
|
+
return t._meridiemParse;
|
|
1480
|
+
}
|
|
1481
|
+
m("a", _s);
|
|
1482
|
+
m("A", _s);
|
|
1483
|
+
m("H", P, mr);
|
|
1484
|
+
m("h", P, Ke);
|
|
1485
|
+
m("k", P, Ke);
|
|
1486
|
+
m("HH", P, q);
|
|
1487
|
+
m("hh", P, q);
|
|
1488
|
+
m("kk", P, q);
|
|
1489
|
+
m("hmm", is);
|
|
1490
|
+
m("hmmss", os);
|
|
1491
|
+
m("Hmm", is);
|
|
1492
|
+
m("Hmmss", os);
|
|
1493
|
+
O([
|
|
1494
|
+
"H",
|
|
1495
|
+
"HH"
|
|
1496
|
+
], G);
|
|
1497
|
+
O([
|
|
1498
|
+
"k",
|
|
1499
|
+
"kk"
|
|
1500
|
+
], function(e, t, r) {
|
|
1501
|
+
var s = x(e);
|
|
1502
|
+
t[G] = s === 24 ? 0 : s;
|
|
1503
|
+
});
|
|
1504
|
+
O([
|
|
1505
|
+
"a",
|
|
1506
|
+
"A"
|
|
1507
|
+
], function(e, t, r) {
|
|
1508
|
+
r._isPm = r._locale.isPM(e), r._meridiem = e;
|
|
1509
|
+
});
|
|
1510
|
+
O([
|
|
1511
|
+
"h",
|
|
1512
|
+
"hh"
|
|
1513
|
+
], function(e, t, r) {
|
|
1514
|
+
t[G] = x(e), g(r).bigHour = true;
|
|
1515
|
+
});
|
|
1516
|
+
O("hmm", function(e, t, r) {
|
|
1517
|
+
var s = e.length - 2;
|
|
1518
|
+
t[G] = x(e.substr(0, s)), t[ne] = x(e.substr(s)), g(r).bigHour = true;
|
|
1519
|
+
});
|
|
1520
|
+
O("hmmss", function(e, t, r) {
|
|
1521
|
+
var s = e.length - 4, a = e.length - 2;
|
|
1522
|
+
t[G] = x(e.substr(0, s)), t[ne] = x(e.substr(s, 2)), t[Se] = x(e.substr(a)), g(r).bigHour = true;
|
|
1523
|
+
});
|
|
1524
|
+
O("Hmm", function(e, t, r) {
|
|
1525
|
+
var s = e.length - 2;
|
|
1526
|
+
t[G] = x(e.substr(0, s)), t[ne] = x(e.substr(s));
|
|
1527
|
+
});
|
|
1528
|
+
O("Hmmss", function(e, t, r) {
|
|
1529
|
+
var s = e.length - 4, a = e.length - 2;
|
|
1530
|
+
t[G] = x(e.substr(0, s)), t[ne] = x(e.substr(s, 2)), t[Se] = x(e.substr(a));
|
|
1531
|
+
});
|
|
1532
|
+
function $n(e) {
|
|
1533
|
+
return (e + "").toLowerCase().charAt(0) === "p";
|
|
1534
|
+
}
|
|
1535
|
+
var Bn = /[ap]\.?m?\.?/i, Zn = Xe("Hours", true);
|
|
1536
|
+
function qn(e, t, r) {
|
|
1537
|
+
return e > 11 ? r ? "pm" : "PM" : r ? "am" : "AM";
|
|
1538
|
+
}
|
|
1539
|
+
var bs = {
|
|
1540
|
+
calendar: Va,
|
|
1541
|
+
longDateFormat: Fa,
|
|
1542
|
+
invalidDate: La,
|
|
1543
|
+
ordinal: Ha,
|
|
1544
|
+
dayOfMonthOrdinalParse: za,
|
|
1545
|
+
relativeTime: Ba,
|
|
1546
|
+
months: cn,
|
|
1547
|
+
monthsShort: cs,
|
|
1548
|
+
week: xn,
|
|
1549
|
+
weekdays: En,
|
|
1550
|
+
weekdaysMin: On,
|
|
1551
|
+
weekdaysShort: ys,
|
|
1552
|
+
meridiemParse: Bn
|
|
1553
|
+
}, I = {}, st = {}, ct;
|
|
1554
|
+
function Jn(e, t) {
|
|
1555
|
+
var r, s = Math.min(e.length, t.length);
|
|
1556
|
+
for (r = 0; r < s; r += 1) if (e[r] !== t[r]) return r;
|
|
1557
|
+
return s;
|
|
1558
|
+
}
|
|
1559
|
+
function Ar(e) {
|
|
1560
|
+
return e && e.toLowerCase().replace("_", "-");
|
|
1561
|
+
}
|
|
1562
|
+
function Kn(e) {
|
|
1563
|
+
for (var t = 0, r, s, a, n; t < e.length; ) {
|
|
1564
|
+
for (n = Ar(e[t]).split("-"), r = n.length, s = Ar(e[t + 1]), s = s ? s.split("-") : null; r > 0; ) {
|
|
1565
|
+
if (a = Lt(n.slice(0, r).join("-")), a) return a;
|
|
1566
|
+
if (s && s.length >= r && Jn(n, s) >= r - 1) break;
|
|
1567
|
+
r--;
|
|
1568
|
+
}
|
|
1569
|
+
t++;
|
|
1570
|
+
}
|
|
1571
|
+
return ct;
|
|
1572
|
+
}
|
|
1573
|
+
function Xn(e) {
|
|
1574
|
+
return !!(e && e.match("^[^/\\\\]*$"));
|
|
1575
|
+
}
|
|
1576
|
+
function Lt(e) {
|
|
1577
|
+
var t = null, r;
|
|
1578
|
+
if (I[e] === void 0 && typeof module < "u" && module && module.exports && Xn(e)) try {
|
|
1579
|
+
t = ct._abbr, r = require, r("./locale/" + e), Ie(t);
|
|
1580
|
+
} catch {
|
|
1581
|
+
I[e] = null;
|
|
1582
|
+
}
|
|
1583
|
+
return I[e];
|
|
1584
|
+
}
|
|
1585
|
+
function Ie(e, t) {
|
|
1586
|
+
var r;
|
|
1587
|
+
return e && ($(t) ? r = Oe(e) : r = br(e, t), r ? ct = r : typeof console < "u" && console.warn && console.warn("Locale " + e + " not found. Did you forget to load it?")), ct._abbr;
|
|
1588
|
+
}
|
|
1589
|
+
function br(e, t) {
|
|
1590
|
+
if (t !== null) {
|
|
1591
|
+
var r, s = bs;
|
|
1592
|
+
if (t.abbr = e, I[e] != null) rs("defineLocaleOverride", "use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."), s = I[e]._config;
|
|
1593
|
+
else if (t.parentLocale != null) if (I[t.parentLocale] != null) s = I[t.parentLocale]._config;
|
|
1594
|
+
else if (r = Lt(t.parentLocale), r != null) s = r._config;
|
|
1595
|
+
else return st[t.parentLocale] || (st[t.parentLocale] = []), st[t.parentLocale].push({
|
|
1596
|
+
name: e,
|
|
1597
|
+
config: t
|
|
1598
|
+
}), null;
|
|
1599
|
+
return I[e] = new ur(er(s, t)), st[e] && st[e].forEach(function(a) {
|
|
1600
|
+
br(a.name, a.config);
|
|
1601
|
+
}), Ie(e), I[e];
|
|
1602
|
+
} else return delete I[e], null;
|
|
1603
|
+
}
|
|
1604
|
+
function Qn(e, t) {
|
|
1605
|
+
if (t != null) {
|
|
1606
|
+
var r, s, a = bs;
|
|
1607
|
+
I[e] != null && I[e].parentLocale != null ? I[e].set(er(I[e]._config, t)) : (s = Lt(e), s != null && (a = s._config), t = er(a, t), s == null && (t.abbr = e), r = new ur(t), r.parentLocale = I[e], I[e] = r), Ie(e);
|
|
1608
|
+
} else I[e] != null && (I[e].parentLocale != null ? (I[e] = I[e].parentLocale, e === Ie() && Ie(e)) : I[e] != null && delete I[e]);
|
|
1609
|
+
return I[e];
|
|
1610
|
+
}
|
|
1611
|
+
function Oe(e) {
|
|
1612
|
+
var t;
|
|
1613
|
+
if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e) return ct;
|
|
1614
|
+
if (!oe(e)) {
|
|
1615
|
+
if (t = Lt(e), t) return t;
|
|
1616
|
+
e = [
|
|
1617
|
+
e
|
|
1618
|
+
];
|
|
1619
|
+
}
|
|
1620
|
+
return Kn(e);
|
|
1621
|
+
}
|
|
1622
|
+
function ei() {
|
|
1623
|
+
return tr(I);
|
|
1624
|
+
}
|
|
1625
|
+
function gr(e) {
|
|
1626
|
+
var t, r = e._a;
|
|
1627
|
+
return r && g(e).overflow === -2 && (t = r[Ne] < 0 || r[Ne] > 11 ? Ne : r[ye] < 1 || r[ye] > pr(r[z], r[Ne]) ? ye : r[G] < 0 || r[G] > 24 || r[G] === 24 && (r[ne] !== 0 || r[Se] !== 0 || r[je] !== 0) ? G : r[ne] < 0 || r[ne] > 59 ? ne : r[Se] < 0 || r[Se] > 59 ? Se : r[je] < 0 || r[je] > 999 ? je : -1, g(e)._overflowDayOfYear && (t < z || t > ye) && (t = ye), g(e)._overflowWeeks && t === -1 && (t = sn), g(e)._overflowWeekday && t === -1 && (t = an), g(e).overflow = t), e;
|
|
1628
|
+
}
|
|
1629
|
+
var ti = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, ri = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, si = /Z|[+-]\d\d(?::?\d\d)?/, Dt = [
|
|
1630
|
+
[
|
|
1631
|
+
"YYYYYY-MM-DD",
|
|
1632
|
+
/[+-]\d{6}-\d\d-\d\d/
|
|
1633
|
+
],
|
|
1634
|
+
[
|
|
1635
|
+
"YYYY-MM-DD",
|
|
1636
|
+
/\d{4}-\d\d-\d\d/
|
|
1637
|
+
],
|
|
1638
|
+
[
|
|
1639
|
+
"GGGG-[W]WW-E",
|
|
1640
|
+
/\d{4}-W\d\d-\d/
|
|
1641
|
+
],
|
|
1642
|
+
[
|
|
1643
|
+
"GGGG-[W]WW",
|
|
1644
|
+
/\d{4}-W\d\d/,
|
|
1645
|
+
false
|
|
1646
|
+
],
|
|
1647
|
+
[
|
|
1648
|
+
"YYYY-DDD",
|
|
1649
|
+
/\d{4}-\d{3}/
|
|
1650
|
+
],
|
|
1651
|
+
[
|
|
1652
|
+
"YYYY-MM",
|
|
1653
|
+
/\d{4}-\d\d/,
|
|
1654
|
+
false
|
|
1655
|
+
],
|
|
1656
|
+
[
|
|
1657
|
+
"YYYYYYMMDD",
|
|
1658
|
+
/[+-]\d{10}/
|
|
1659
|
+
],
|
|
1660
|
+
[
|
|
1661
|
+
"YYYYMMDD",
|
|
1662
|
+
/\d{8}/
|
|
1663
|
+
],
|
|
1664
|
+
[
|
|
1665
|
+
"GGGG[W]WWE",
|
|
1666
|
+
/\d{4}W\d{3}/
|
|
1667
|
+
],
|
|
1668
|
+
[
|
|
1669
|
+
"GGGG[W]WW",
|
|
1670
|
+
/\d{4}W\d{2}/,
|
|
1671
|
+
false
|
|
1672
|
+
],
|
|
1673
|
+
[
|
|
1674
|
+
"YYYYDDD",
|
|
1675
|
+
/\d{7}/
|
|
1676
|
+
],
|
|
1677
|
+
[
|
|
1678
|
+
"YYYYMM",
|
|
1679
|
+
/\d{6}/,
|
|
1680
|
+
false
|
|
1681
|
+
],
|
|
1682
|
+
[
|
|
1683
|
+
"YYYY",
|
|
1684
|
+
/\d{4}/,
|
|
1685
|
+
false
|
|
1686
|
+
]
|
|
1687
|
+
], Jt = [
|
|
1688
|
+
[
|
|
1689
|
+
"HH:mm:ss.SSSS",
|
|
1690
|
+
/\d\d:\d\d:\d\d\.\d+/
|
|
1691
|
+
],
|
|
1692
|
+
[
|
|
1693
|
+
"HH:mm:ss,SSSS",
|
|
1694
|
+
/\d\d:\d\d:\d\d,\d+/
|
|
1695
|
+
],
|
|
1696
|
+
[
|
|
1697
|
+
"HH:mm:ss",
|
|
1698
|
+
/\d\d:\d\d:\d\d/
|
|
1699
|
+
],
|
|
1700
|
+
[
|
|
1701
|
+
"HH:mm",
|
|
1702
|
+
/\d\d:\d\d/
|
|
1703
|
+
],
|
|
1704
|
+
[
|
|
1705
|
+
"HHmmss.SSSS",
|
|
1706
|
+
/\d\d\d\d\d\d\.\d+/
|
|
1707
|
+
],
|
|
1708
|
+
[
|
|
1709
|
+
"HHmmss,SSSS",
|
|
1710
|
+
/\d\d\d\d\d\d,\d+/
|
|
1711
|
+
],
|
|
1712
|
+
[
|
|
1713
|
+
"HHmmss",
|
|
1714
|
+
/\d\d\d\d\d\d/
|
|
1715
|
+
],
|
|
1716
|
+
[
|
|
1717
|
+
"HHmm",
|
|
1718
|
+
/\d\d\d\d/
|
|
1719
|
+
],
|
|
1720
|
+
[
|
|
1721
|
+
"HH",
|
|
1722
|
+
/\d\d/
|
|
1723
|
+
]
|
|
1724
|
+
], ai = /^\/?Date\((-?\d+)/i, ni = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, ii = {
|
|
1725
|
+
UT: 0,
|
|
1726
|
+
GMT: 0,
|
|
1727
|
+
EDT: -240,
|
|
1728
|
+
EST: -300,
|
|
1729
|
+
CDT: -300,
|
|
1730
|
+
CST: -360,
|
|
1731
|
+
MDT: -360,
|
|
1732
|
+
MST: -420,
|
|
1733
|
+
PDT: -420,
|
|
1734
|
+
PST: -480
|
|
1735
|
+
};
|
|
1736
|
+
function gs(e) {
|
|
1737
|
+
var t, r, s = e._i, a = ti.exec(s) || ri.exec(s), n, i, o, l, u = Dt.length, p = Jt.length;
|
|
1738
|
+
if (a) {
|
|
1739
|
+
for (g(e).iso = true, t = 0, r = u; t < r; t++) if (Dt[t][1].exec(a[1])) {
|
|
1740
|
+
i = Dt[t][0], n = Dt[t][2] !== false;
|
|
1741
|
+
break;
|
|
1742
|
+
}
|
|
1743
|
+
if (i == null) {
|
|
1744
|
+
e._isValid = false;
|
|
1745
|
+
return;
|
|
1746
|
+
}
|
|
1747
|
+
if (a[3]) {
|
|
1748
|
+
for (t = 0, r = p; t < r; t++) if (Jt[t][1].exec(a[3])) {
|
|
1749
|
+
o = (a[2] || " ") + Jt[t][0];
|
|
1750
|
+
break;
|
|
1751
|
+
}
|
|
1752
|
+
if (o == null) {
|
|
1753
|
+
e._isValid = false;
|
|
1754
|
+
return;
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
if (!n && o != null) {
|
|
1758
|
+
e._isValid = false;
|
|
1759
|
+
return;
|
|
1760
|
+
}
|
|
1761
|
+
if (a[4]) if (si.exec(a[4])) l = "Z";
|
|
1762
|
+
else {
|
|
1763
|
+
e._isValid = false;
|
|
1764
|
+
return;
|
|
1765
|
+
}
|
|
1766
|
+
e._f = i + (o || "") + (l || ""), xr(e);
|
|
1767
|
+
} else e._isValid = false;
|
|
1768
|
+
}
|
|
1769
|
+
function oi(e, t, r, s, a, n) {
|
|
1770
|
+
var i = [
|
|
1771
|
+
li(e),
|
|
1772
|
+
cs.indexOf(t),
|
|
1773
|
+
parseInt(r, 10),
|
|
1774
|
+
parseInt(s, 10),
|
|
1775
|
+
parseInt(a, 10)
|
|
1776
|
+
];
|
|
1777
|
+
return n && i.push(parseInt(n, 10)), i;
|
|
1778
|
+
}
|
|
1779
|
+
function li(e) {
|
|
1780
|
+
var t = parseInt(e, 10);
|
|
1781
|
+
return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t;
|
|
1782
|
+
}
|
|
1783
|
+
function ui(e) {
|
|
1784
|
+
return e.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
|
|
1785
|
+
}
|
|
1786
|
+
function ci(e, t, r) {
|
|
1787
|
+
if (e) {
|
|
1788
|
+
var s = ys.indexOf(e), a = new Date(t[0], t[1], t[2]).getDay();
|
|
1789
|
+
if (s !== a) return g(r).weekdayMismatch = true, r._isValid = false, false;
|
|
1790
|
+
}
|
|
1791
|
+
return true;
|
|
1792
|
+
}
|
|
1793
|
+
function di(e, t, r) {
|
|
1794
|
+
if (e) return ii[e];
|
|
1795
|
+
if (t) return 0;
|
|
1796
|
+
var s = parseInt(r, 10), a = s % 100, n = (s - a) / 100;
|
|
1797
|
+
return n * 60 + a;
|
|
1798
|
+
}
|
|
1799
|
+
function vs(e) {
|
|
1800
|
+
var t = ni.exec(ui(e._i)), r;
|
|
1801
|
+
if (t) {
|
|
1802
|
+
if (r = oi(t[4], t[3], t[2], t[5], t[6], t[7]), !ci(t[1], r, e)) return;
|
|
1803
|
+
e._a = r, e._tzm = di(t[8], t[9], t[10]), e._d = lt.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), g(e).rfc2822 = true;
|
|
1804
|
+
} else e._isValid = false;
|
|
1805
|
+
}
|
|
1806
|
+
function fi(e) {
|
|
1807
|
+
var t = ai.exec(e._i);
|
|
1808
|
+
if (t !== null) {
|
|
1809
|
+
e._d = /* @__PURE__ */ new Date(+t[1]);
|
|
1810
|
+
return;
|
|
1811
|
+
}
|
|
1812
|
+
if (gs(e), e._isValid === false) delete e._isValid;
|
|
1813
|
+
else return;
|
|
1814
|
+
if (vs(e), e._isValid === false) delete e._isValid;
|
|
1815
|
+
else return;
|
|
1816
|
+
e._strict ? e._isValid = false : h.createFromInputFallback(e);
|
|
1817
|
+
}
|
|
1818
|
+
h.createFromInputFallback = ee("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.", function(e) {
|
|
1819
|
+
e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
|
|
1820
|
+
});
|
|
1821
|
+
function ze(e, t, r) {
|
|
1822
|
+
return e ?? t ?? r;
|
|
1823
|
+
}
|
|
1824
|
+
function hi(e) {
|
|
1825
|
+
var t = new Date(h.now());
|
|
1826
|
+
return e._useUTC ? [
|
|
1827
|
+
t.getUTCFullYear(),
|
|
1828
|
+
t.getUTCMonth(),
|
|
1829
|
+
t.getUTCDate()
|
|
1830
|
+
] : [
|
|
1831
|
+
t.getFullYear(),
|
|
1832
|
+
t.getMonth(),
|
|
1833
|
+
t.getDate()
|
|
1834
|
+
];
|
|
1835
|
+
}
|
|
1836
|
+
function vr(e) {
|
|
1837
|
+
var t, r, s = [], a, n, i;
|
|
1838
|
+
if (!e._d) {
|
|
1839
|
+
for (a = hi(e), e._w && e._a[ye] == null && e._a[Ne] == null && mi(e), e._dayOfYear != null && (i = ze(e._a[z], a[z]), (e._dayOfYear > nt(i) || e._dayOfYear === 0) && (g(e)._overflowDayOfYear = true), r = lt(i, 0, e._dayOfYear), e._a[Ne] = r.getUTCMonth(), e._a[ye] = r.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t) e._a[t] = s[t] = a[t];
|
|
1840
|
+
for (; t < 7; t++) e._a[t] = s[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
|
|
1841
|
+
e._a[G] === 24 && e._a[ne] === 0 && e._a[Se] === 0 && e._a[je] === 0 && (e._nextDay = true, e._a[G] = 0), e._d = (e._useUTC ? lt : gn).apply(null, s), n = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[G] = 24), e._w && typeof e._w.d < "u" && e._w.d !== n && (g(e).weekdayMismatch = true);
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
function mi(e) {
|
|
1845
|
+
var t, r, s, a, n, i, o, l, u;
|
|
1846
|
+
t = e._w, t.GG != null || t.W != null || t.E != null ? (n = 1, i = 4, r = ze(t.GG, e._a[z], ut(R(), 1, 4).year), s = ze(t.W, 1), a = ze(t.E, 1), (a < 1 || a > 7) && (l = true)) : (n = e._locale._week.dow, i = e._locale._week.doy, u = ut(R(), n, i), r = ze(t.gg, e._a[z], u.year), s = ze(t.w, u.week), t.d != null ? (a = t.d, (a < 0 || a > 6) && (l = true)) : t.e != null ? (a = t.e + n, (t.e < 0 || t.e > 6) && (l = true)) : a = n), s < 1 || s > Te(r, n, i) ? g(e)._overflowWeeks = true : l != null ? g(e)._overflowWeekday = true : (o = ps(r, s, a, n, i), e._a[z] = o.year, e._dayOfYear = o.dayOfYear);
|
|
1847
|
+
}
|
|
1848
|
+
h.ISO_8601 = function() {
|
|
1849
|
+
};
|
|
1850
|
+
h.RFC_2822 = function() {
|
|
1851
|
+
};
|
|
1852
|
+
function xr(e) {
|
|
1853
|
+
if (e._f === h.ISO_8601) {
|
|
1854
|
+
gs(e);
|
|
1855
|
+
return;
|
|
1856
|
+
}
|
|
1857
|
+
if (e._f === h.RFC_2822) {
|
|
1858
|
+
vs(e);
|
|
1859
|
+
return;
|
|
1860
|
+
}
|
|
1861
|
+
e._a = [], g(e).empty = true;
|
|
1862
|
+
var t = "" + e._i, r, s, a, n, i, o = t.length, l = 0, u, p;
|
|
1863
|
+
for (a = ss(e._f, e._locale).match(cr) || [], p = a.length, r = 0; r < p; r++) n = a[r], s = (t.match(en(n, e)) || [])[0], s && (i = t.substr(0, t.indexOf(s)), i.length > 0 && g(e).unusedInput.push(i), t = t.slice(t.indexOf(s) + s.length), l += s.length), Be[n] ? (s ? g(e).empty = false : g(e).unusedTokens.push(n), rn(n, s, e)) : e._strict && !s && g(e).unusedTokens.push(n);
|
|
1864
|
+
g(e).charsLeftOver = o - l, t.length > 0 && g(e).unusedInput.push(t), e._a[G] <= 12 && g(e).bigHour === true && e._a[G] > 0 && (g(e).bigHour = void 0), g(e).parsedDateParts = e._a.slice(0), g(e).meridiem = e._meridiem, e._a[G] = pi(e._locale, e._a[G], e._meridiem), u = g(e).era, u !== null && (e._a[z] = e._locale.erasConvertYear(u, e._a[z])), vr(e), gr(e);
|
|
1865
|
+
}
|
|
1866
|
+
function pi(e, t, r) {
|
|
1867
|
+
var s;
|
|
1868
|
+
return r == null ? t : e.meridiemHour != null ? e.meridiemHour(t, r) : (e.isPM != null && (s = e.isPM(r), s && t < 12 && (t += 12), !s && t === 12 && (t = 0)), t);
|
|
1869
|
+
}
|
|
1870
|
+
function yi(e) {
|
|
1871
|
+
var t, r, s, a, n, i, o = false, l = e._f.length;
|
|
1872
|
+
if (l === 0) {
|
|
1873
|
+
g(e).invalidFormat = true, e._d = /* @__PURE__ */ new Date(NaN);
|
|
1874
|
+
return;
|
|
1875
|
+
}
|
|
1876
|
+
for (a = 0; a < l; a++) n = 0, i = false, t = lr({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[a], xr(t), or(t) && (i = true), n += g(t).charsLeftOver, n += g(t).unusedTokens.length * 10, g(t).score = n, o ? n < s && (s = n, r = t) : (s == null || n < s || i) && (s = n, r = t, i && (o = true));
|
|
1877
|
+
Pe(e, r || t);
|
|
1878
|
+
}
|
|
1879
|
+
function wi(e) {
|
|
1880
|
+
if (!e._d) {
|
|
1881
|
+
var t = dr(e._i), r = t.day === void 0 ? t.date : t.day;
|
|
1882
|
+
e._a = es([
|
|
1883
|
+
t.year,
|
|
1884
|
+
t.month,
|
|
1885
|
+
r,
|
|
1886
|
+
t.hour,
|
|
1887
|
+
t.minute,
|
|
1888
|
+
t.second,
|
|
1889
|
+
t.millisecond
|
|
1890
|
+
], function(s) {
|
|
1891
|
+
return s && parseInt(s, 10);
|
|
1892
|
+
}), vr(e);
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
function _i(e) {
|
|
1896
|
+
var t = new ft(gr(xs(e)));
|
|
1897
|
+
return t._nextDay && (t.add(1, "d"), t._nextDay = void 0), t;
|
|
1898
|
+
}
|
|
1899
|
+
function xs(e) {
|
|
1900
|
+
var t = e._i, r = e._f;
|
|
1901
|
+
return e._locale = e._locale || Oe(e._l), t === null || r === void 0 && t === "" ? It({
|
|
1902
|
+
nullInput: true
|
|
1903
|
+
}) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), le(t) ? new ft(gr(t)) : (dt(t) ? e._d = t : oe(r) ? yi(e) : r ? xr(e) : bi(e), or(e) || (e._d = null), e));
|
|
1904
|
+
}
|
|
1905
|
+
function bi(e) {
|
|
1906
|
+
var t = e._i;
|
|
1907
|
+
$(t) ? e._d = new Date(h.now()) : dt(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? fi(e) : oe(t) ? (e._a = es(t.slice(0), function(r) {
|
|
1908
|
+
return parseInt(r, 10);
|
|
1909
|
+
}), vr(e)) : Ae(t) ? wi(e) : Ee(t) ? e._d = new Date(t) : h.createFromInputFallback(e);
|
|
1910
|
+
}
|
|
1911
|
+
function ks(e, t, r, s, a) {
|
|
1912
|
+
var n = {};
|
|
1913
|
+
return (t === true || t === false) && (s = t, t = void 0), (r === true || r === false) && (s = r, r = void 0), (Ae(e) && ir(e) || oe(e) && e.length === 0) && (e = void 0), n._isAMomentObject = true, n._useUTC = n._isUTC = a, n._l = r, n._i = e, n._f = t, n._strict = s, _i(n);
|
|
1914
|
+
}
|
|
1915
|
+
function R(e, t, r, s) {
|
|
1916
|
+
return ks(e, t, r, s, false);
|
|
1917
|
+
}
|
|
1918
|
+
var gi = ee("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/", function() {
|
|
1919
|
+
var e = R.apply(null, arguments);
|
|
1920
|
+
return this.isValid() && e.isValid() ? e < this ? this : e : It();
|
|
1921
|
+
}), vi = ee("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/", function() {
|
|
1922
|
+
var e = R.apply(null, arguments);
|
|
1923
|
+
return this.isValid() && e.isValid() ? e > this ? this : e : It();
|
|
1924
|
+
});
|
|
1925
|
+
function Ds(e, t) {
|
|
1926
|
+
var r, s;
|
|
1927
|
+
if (t.length === 1 && oe(t[0]) && (t = t[0]), !t.length) return R();
|
|
1928
|
+
for (r = t[0], s = 1; s < t.length; ++s) (!t[s].isValid() || t[s][e](r)) && (r = t[s]);
|
|
1929
|
+
return r;
|
|
1930
|
+
}
|
|
1931
|
+
function xi() {
|
|
1932
|
+
var e = [].slice.call(arguments, 0);
|
|
1933
|
+
return Ds("isBefore", e);
|
|
1934
|
+
}
|
|
1935
|
+
function ki() {
|
|
1936
|
+
var e = [].slice.call(arguments, 0);
|
|
1937
|
+
return Ds("isAfter", e);
|
|
1938
|
+
}
|
|
1939
|
+
var Di = function() {
|
|
1940
|
+
return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
|
|
1941
|
+
}, at = [
|
|
1942
|
+
"year",
|
|
1943
|
+
"quarter",
|
|
1944
|
+
"month",
|
|
1945
|
+
"week",
|
|
1946
|
+
"day",
|
|
1947
|
+
"hour",
|
|
1948
|
+
"minute",
|
|
1949
|
+
"second",
|
|
1950
|
+
"millisecond"
|
|
1951
|
+
];
|
|
1952
|
+
function Ni(e) {
|
|
1953
|
+
var t, r = false, s, a = at.length;
|
|
1954
|
+
for (t in e) if (S(e, t) && !(A.call(at, t) !== -1 && (e[t] == null || !isNaN(e[t])))) return false;
|
|
1955
|
+
for (s = 0; s < a; ++s) if (e[at[s]]) {
|
|
1956
|
+
if (r) return false;
|
|
1957
|
+
parseFloat(e[at[s]]) !== x(e[at[s]]) && (r = true);
|
|
1958
|
+
}
|
|
1959
|
+
return true;
|
|
1960
|
+
}
|
|
1961
|
+
function Si() {
|
|
1962
|
+
return this._isValid;
|
|
1963
|
+
}
|
|
1964
|
+
function Mi() {
|
|
1965
|
+
return ce(NaN);
|
|
1966
|
+
}
|
|
1967
|
+
function Ut(e) {
|
|
1968
|
+
var t = dr(e), r = t.year || 0, s = t.quarter || 0, a = t.month || 0, n = t.week || t.isoWeek || 0, i = t.day || 0, o = t.hour || 0, l = t.minute || 0, u = t.second || 0, p = t.millisecond || 0;
|
|
1969
|
+
this._isValid = Ni(t), this._milliseconds = +p + u * 1e3 + l * 6e4 + o * 1e3 * 60 * 60, this._days = +i + n * 7, this._months = +a + s * 3 + r * 12, this._data = {}, this._locale = Oe(), this._bubble();
|
|
1970
|
+
}
|
|
1971
|
+
function Tt(e) {
|
|
1972
|
+
return e instanceof Ut;
|
|
1973
|
+
}
|
|
1974
|
+
function sr(e) {
|
|
1975
|
+
return e < 0 ? Math.round(-1 * e) * -1 : Math.round(e);
|
|
1976
|
+
}
|
|
1977
|
+
function Ti(e, t, r) {
|
|
1978
|
+
var s = Math.min(e.length, t.length), a = Math.abs(e.length - t.length), n = 0, i;
|
|
1979
|
+
for (i = 0; i < s; i++) x(e[i]) !== x(t[i]) && n++;
|
|
1980
|
+
return n + a;
|
|
1981
|
+
}
|
|
1982
|
+
function Ns(e, t) {
|
|
1983
|
+
y(e, 0, 0, function() {
|
|
1984
|
+
var r = this.utcOffset(), s = "+";
|
|
1985
|
+
return r < 0 && (r = -r, s = "-"), s + we(~~(r / 60), 2) + t + we(~~r % 60, 2);
|
|
1986
|
+
});
|
|
1987
|
+
}
|
|
1988
|
+
Ns("Z", ":");
|
|
1989
|
+
Ns("ZZ", "");
|
|
1990
|
+
m("Z", Ft);
|
|
1991
|
+
m("ZZ", Ft);
|
|
1992
|
+
O([
|
|
1993
|
+
"Z",
|
|
1994
|
+
"ZZ"
|
|
1995
|
+
], function(e, t, r) {
|
|
1996
|
+
r._useUTC = true, r._tzm = kr(Ft, e);
|
|
1997
|
+
});
|
|
1998
|
+
var Ei = /([\+\-]|\d\d)/gi;
|
|
1999
|
+
function kr(e, t) {
|
|
2000
|
+
var r = (t || "").match(e), s, a, n;
|
|
2001
|
+
return r === null ? null : (s = r[r.length - 1] || [], a = (s + "").match(Ei) || [
|
|
2002
|
+
"-",
|
|
2003
|
+
0,
|
|
2004
|
+
0
|
|
2005
|
+
], n = +(a[1] * 60) + x(a[2]), n === 0 ? 0 : a[0] === "+" ? n : -n);
|
|
2006
|
+
}
|
|
2007
|
+
function Dr(e, t) {
|
|
2008
|
+
var r, s;
|
|
2009
|
+
return t._isUTC ? (r = t.clone(), s = (le(e) || dt(e) ? e.valueOf() : R(e).valueOf()) - r.valueOf(), r._d.setTime(r._d.valueOf() + s), h.updateOffset(r, false), r) : R(e).local();
|
|
2010
|
+
}
|
|
2011
|
+
function ar(e) {
|
|
2012
|
+
return -Math.round(e._d.getTimezoneOffset());
|
|
2013
|
+
}
|
|
2014
|
+
h.updateOffset = function() {
|
|
2015
|
+
};
|
|
2016
|
+
function Oi(e, t, r) {
|
|
2017
|
+
var s = this._offset || 0, a;
|
|
2018
|
+
if (!this.isValid()) return e != null ? this : NaN;
|
|
2019
|
+
if (e != null) {
|
|
2020
|
+
if (typeof e == "string") {
|
|
2021
|
+
if (e = kr(Ft, e), e === null) return this;
|
|
2022
|
+
} else Math.abs(e) < 16 && !r && (e = e * 60);
|
|
2023
|
+
return !this._isUTC && t && (a = ar(this)), this._offset = e, this._isUTC = true, a != null && this.add(a, "m"), s !== e && (!t || this._changeInProgress ? Ts(this, ce(e - s, "m"), 1, false) : this._changeInProgress || (this._changeInProgress = true, h.updateOffset(this, true), this._changeInProgress = null)), this;
|
|
2024
|
+
} else return this._isUTC ? s : ar(this);
|
|
2025
|
+
}
|
|
2026
|
+
function Yi(e, t) {
|
|
2027
|
+
return e != null ? (typeof e != "string" && (e = -e), this.utcOffset(e, t), this) : -this.utcOffset();
|
|
2028
|
+
}
|
|
2029
|
+
function Ri(e) {
|
|
2030
|
+
return this.utcOffset(0, e);
|
|
2031
|
+
}
|
|
2032
|
+
function Pi(e) {
|
|
2033
|
+
return this._isUTC && (this.utcOffset(0, e), this._isUTC = false, e && this.subtract(ar(this), "m")), this;
|
|
2034
|
+
}
|
|
2035
|
+
function Ci() {
|
|
2036
|
+
if (this._tzm != null) this.utcOffset(this._tzm, false, true);
|
|
2037
|
+
else if (typeof this._i == "string") {
|
|
2038
|
+
var e = kr(Xa, this._i);
|
|
2039
|
+
e != null ? this.utcOffset(e) : this.utcOffset(0, true);
|
|
2040
|
+
}
|
|
2041
|
+
return this;
|
|
2042
|
+
}
|
|
2043
|
+
function Ii(e) {
|
|
2044
|
+
return this.isValid() ? (e = e ? R(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : false;
|
|
2045
|
+
}
|
|
2046
|
+
function Vi() {
|
|
2047
|
+
return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
|
|
2048
|
+
}
|
|
2049
|
+
function Wi() {
|
|
2050
|
+
if (!$(this._isDSTShifted)) return this._isDSTShifted;
|
|
2051
|
+
var e = {}, t;
|
|
2052
|
+
return lr(e, this), e = xs(e), e._a ? (t = e._isUTC ? _e(e._a) : R(e._a), this._isDSTShifted = this.isValid() && Ti(e._a, t.toArray()) > 0) : this._isDSTShifted = false, this._isDSTShifted;
|
|
2053
|
+
}
|
|
2054
|
+
function ji() {
|
|
2055
|
+
return this.isValid() ? !this._isUTC : false;
|
|
2056
|
+
}
|
|
2057
|
+
function Ai() {
|
|
2058
|
+
return this.isValid() ? this._isUTC : false;
|
|
2059
|
+
}
|
|
2060
|
+
function Ss() {
|
|
2061
|
+
return this.isValid() ? this._isUTC && this._offset === 0 : false;
|
|
2062
|
+
}
|
|
2063
|
+
var Fi = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, Gi = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
|
2064
|
+
function ce(e, t) {
|
|
2065
|
+
var r = e, s = null, a, n, i;
|
|
2066
|
+
return Tt(e) ? r = {
|
|
2067
|
+
ms: e._milliseconds,
|
|
2068
|
+
d: e._days,
|
|
2069
|
+
M: e._months
|
|
2070
|
+
} : Ee(e) || !isNaN(+e) ? (r = {}, t ? r[t] = +e : r.milliseconds = +e) : (s = Fi.exec(e)) ? (a = s[1] === "-" ? -1 : 1, r = {
|
|
2071
|
+
y: 0,
|
|
2072
|
+
d: x(s[ye]) * a,
|
|
2073
|
+
h: x(s[G]) * a,
|
|
2074
|
+
m: x(s[ne]) * a,
|
|
2075
|
+
s: x(s[Se]) * a,
|
|
2076
|
+
ms: x(sr(s[je] * 1e3)) * a
|
|
2077
|
+
}) : (s = Gi.exec(e)) ? (a = s[1] === "-" ? -1 : 1, r = {
|
|
2078
|
+
y: We(s[2], a),
|
|
2079
|
+
M: We(s[3], a),
|
|
2080
|
+
w: We(s[4], a),
|
|
2081
|
+
d: We(s[5], a),
|
|
2082
|
+
h: We(s[6], a),
|
|
2083
|
+
m: We(s[7], a),
|
|
2084
|
+
s: We(s[8], a)
|
|
2085
|
+
}) : r == null ? r = {} : typeof r == "object" && ("from" in r || "to" in r) && (i = Li(R(r.from), R(r.to)), r = {}, r.ms = i.milliseconds, r.M = i.months), n = new Ut(r), Tt(e) && S(e, "_locale") && (n._locale = e._locale), Tt(e) && S(e, "_isValid") && (n._isValid = e._isValid), n;
|
|
2086
|
+
}
|
|
2087
|
+
ce.fn = Ut.prototype;
|
|
2088
|
+
ce.invalid = Mi;
|
|
2089
|
+
function We(e, t) {
|
|
2090
|
+
var r = e && parseFloat(e.replace(",", "."));
|
|
2091
|
+
return (isNaN(r) ? 0 : r) * t;
|
|
2092
|
+
}
|
|
2093
|
+
function Fr(e, t) {
|
|
2094
|
+
var r = {};
|
|
2095
|
+
return r.months = t.month() - e.month() + (t.year() - e.year()) * 12, e.clone().add(r.months, "M").isAfter(t) && --r.months, r.milliseconds = +t - +e.clone().add(r.months, "M"), r;
|
|
2096
|
+
}
|
|
2097
|
+
function Li(e, t) {
|
|
2098
|
+
var r;
|
|
2099
|
+
return e.isValid() && t.isValid() ? (t = Dr(t, e), e.isBefore(t) ? r = Fr(e, t) : (r = Fr(t, e), r.milliseconds = -r.milliseconds, r.months = -r.months), r) : {
|
|
2100
|
+
milliseconds: 0,
|
|
2101
|
+
months: 0
|
|
2102
|
+
};
|
|
2103
|
+
}
|
|
2104
|
+
function Ms(e, t) {
|
|
2105
|
+
return function(r, s) {
|
|
2106
|
+
var a, n;
|
|
2107
|
+
return s !== null && !isNaN(+s) && (rs(t, "moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."), n = r, r = s, s = n), a = ce(r, s), Ts(this, a, e), this;
|
|
2108
|
+
};
|
|
2109
|
+
}
|
|
2110
|
+
function Ts(e, t, r, s) {
|
|
2111
|
+
var a = t._milliseconds, n = sr(t._days), i = sr(t._months);
|
|
2112
|
+
e.isValid() && (s = s ?? true, i && fs(e, ot(e, "Month") + i * r), n && us(e, "Date", ot(e, "Date") + n * r), a && e._d.setTime(e._d.valueOf() + a * r), s && h.updateOffset(e, n || i));
|
|
2113
|
+
}
|
|
2114
|
+
var Ui = Ms(1, "add"), Hi = Ms(-1, "subtract");
|
|
2115
|
+
function Es(e) {
|
|
2116
|
+
return typeof e == "string" || e instanceof String;
|
|
2117
|
+
}
|
|
2118
|
+
function zi(e) {
|
|
2119
|
+
return le(e) || dt(e) || Es(e) || Ee(e) || Bi(e) || $i(e) || e === null || e === void 0;
|
|
2120
|
+
}
|
|
2121
|
+
function $i(e) {
|
|
2122
|
+
var t = Ae(e) && !ir(e), r = false, s = [
|
|
2123
|
+
"years",
|
|
2124
|
+
"year",
|
|
2125
|
+
"y",
|
|
2126
|
+
"months",
|
|
2127
|
+
"month",
|
|
2128
|
+
"M",
|
|
2129
|
+
"days",
|
|
2130
|
+
"day",
|
|
2131
|
+
"d",
|
|
2132
|
+
"dates",
|
|
2133
|
+
"date",
|
|
2134
|
+
"D",
|
|
2135
|
+
"hours",
|
|
2136
|
+
"hour",
|
|
2137
|
+
"h",
|
|
2138
|
+
"minutes",
|
|
2139
|
+
"minute",
|
|
2140
|
+
"m",
|
|
2141
|
+
"seconds",
|
|
2142
|
+
"second",
|
|
2143
|
+
"s",
|
|
2144
|
+
"milliseconds",
|
|
2145
|
+
"millisecond",
|
|
2146
|
+
"ms"
|
|
2147
|
+
], a, n, i = s.length;
|
|
2148
|
+
for (a = 0; a < i; a += 1) n = s[a], r = r || S(e, n);
|
|
2149
|
+
return t && r;
|
|
2150
|
+
}
|
|
2151
|
+
function Bi(e) {
|
|
2152
|
+
var t = oe(e), r = false;
|
|
2153
|
+
return t && (r = e.filter(function(s) {
|
|
2154
|
+
return !Ee(s) && Es(e);
|
|
2155
|
+
}).length === 0), t && r;
|
|
2156
|
+
}
|
|
2157
|
+
function Zi(e) {
|
|
2158
|
+
var t = Ae(e) && !ir(e), r = false, s = [
|
|
2159
|
+
"sameDay",
|
|
2160
|
+
"nextDay",
|
|
2161
|
+
"lastDay",
|
|
2162
|
+
"nextWeek",
|
|
2163
|
+
"lastWeek",
|
|
2164
|
+
"sameElse"
|
|
2165
|
+
], a, n;
|
|
2166
|
+
for (a = 0; a < s.length; a += 1) n = s[a], r = r || S(e, n);
|
|
2167
|
+
return t && r;
|
|
2168
|
+
}
|
|
2169
|
+
function qi(e, t) {
|
|
2170
|
+
var r = e.diff(t, "days", true);
|
|
2171
|
+
return r < -6 ? "sameElse" : r < -1 ? "lastWeek" : r < 0 ? "lastDay" : r < 1 ? "sameDay" : r < 2 ? "nextDay" : r < 7 ? "nextWeek" : "sameElse";
|
|
2172
|
+
}
|
|
2173
|
+
function Ji(e, t) {
|
|
2174
|
+
arguments.length === 1 && (arguments[0] ? zi(arguments[0]) ? (e = arguments[0], t = void 0) : Zi(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
|
|
2175
|
+
var r = e || R(), s = Dr(r, this).startOf("day"), a = h.calendarFormat(this, s) || "sameElse", n = t && (be(t[a]) ? t[a].call(this, r) : t[a]);
|
|
2176
|
+
return this.format(n || this.localeData().calendar(a, this, R(r)));
|
|
2177
|
+
}
|
|
2178
|
+
function Ki() {
|
|
2179
|
+
return new ft(this);
|
|
2180
|
+
}
|
|
2181
|
+
function Xi(e, t) {
|
|
2182
|
+
var r = le(e) ? e : R(e);
|
|
2183
|
+
return this.isValid() && r.isValid() ? (t = te(t) || "millisecond", t === "millisecond" ? this.valueOf() > r.valueOf() : r.valueOf() < this.clone().startOf(t).valueOf()) : false;
|
|
2184
|
+
}
|
|
2185
|
+
function Qi(e, t) {
|
|
2186
|
+
var r = le(e) ? e : R(e);
|
|
2187
|
+
return this.isValid() && r.isValid() ? (t = te(t) || "millisecond", t === "millisecond" ? this.valueOf() < r.valueOf() : this.clone().endOf(t).valueOf() < r.valueOf()) : false;
|
|
2188
|
+
}
|
|
2189
|
+
function eo(e, t, r, s) {
|
|
2190
|
+
var a = le(e) ? e : R(e), n = le(t) ? t : R(t);
|
|
2191
|
+
return this.isValid() && a.isValid() && n.isValid() ? (s = s || "()", (s[0] === "(" ? this.isAfter(a, r) : !this.isBefore(a, r)) && (s[1] === ")" ? this.isBefore(n, r) : !this.isAfter(n, r))) : false;
|
|
2192
|
+
}
|
|
2193
|
+
function to(e, t) {
|
|
2194
|
+
var r = le(e) ? e : R(e), s;
|
|
2195
|
+
return this.isValid() && r.isValid() ? (t = te(t) || "millisecond", t === "millisecond" ? this.valueOf() === r.valueOf() : (s = r.valueOf(), this.clone().startOf(t).valueOf() <= s && s <= this.clone().endOf(t).valueOf())) : false;
|
|
2196
|
+
}
|
|
2197
|
+
function ro(e, t) {
|
|
2198
|
+
return this.isSame(e, t) || this.isAfter(e, t);
|
|
2199
|
+
}
|
|
2200
|
+
function so(e, t) {
|
|
2201
|
+
return this.isSame(e, t) || this.isBefore(e, t);
|
|
2202
|
+
}
|
|
2203
|
+
function ao(e, t, r) {
|
|
2204
|
+
var s, a, n;
|
|
2205
|
+
if (!this.isValid()) return NaN;
|
|
2206
|
+
if (s = Dr(e, this), !s.isValid()) return NaN;
|
|
2207
|
+
switch (a = (s.utcOffset() - this.utcOffset()) * 6e4, t = te(t), t) {
|
|
2208
|
+
case "year":
|
|
2209
|
+
n = Et(this, s) / 12;
|
|
2210
|
+
break;
|
|
2211
|
+
case "month":
|
|
2212
|
+
n = Et(this, s);
|
|
2213
|
+
break;
|
|
2214
|
+
case "quarter":
|
|
2215
|
+
n = Et(this, s) / 3;
|
|
2216
|
+
break;
|
|
2217
|
+
case "second":
|
|
2218
|
+
n = (this - s) / 1e3;
|
|
2219
|
+
break;
|
|
2220
|
+
case "minute":
|
|
2221
|
+
n = (this - s) / 6e4;
|
|
2222
|
+
break;
|
|
2223
|
+
case "hour":
|
|
2224
|
+
n = (this - s) / 36e5;
|
|
2225
|
+
break;
|
|
2226
|
+
case "day":
|
|
2227
|
+
n = (this - s - a) / 864e5;
|
|
2228
|
+
break;
|
|
2229
|
+
case "week":
|
|
2230
|
+
n = (this - s - a) / 6048e5;
|
|
2231
|
+
break;
|
|
2232
|
+
default:
|
|
2233
|
+
n = this - s;
|
|
2234
|
+
}
|
|
2235
|
+
return r ? n : Q(n);
|
|
2236
|
+
}
|
|
2237
|
+
function Et(e, t) {
|
|
2238
|
+
if (e.date() < t.date()) return -Et(t, e);
|
|
2239
|
+
var r = (t.year() - e.year()) * 12 + (t.month() - e.month()), s = e.clone().add(r, "months"), a, n;
|
|
2240
|
+
return t - s < 0 ? (a = e.clone().add(r - 1, "months"), n = (t - s) / (s - a)) : (a = e.clone().add(r + 1, "months"), n = (t - s) / (a - s)), -(r + n) || 0;
|
|
2241
|
+
}
|
|
2242
|
+
h.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
|
|
2243
|
+
h.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
2244
|
+
function no() {
|
|
2245
|
+
return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
|
|
2246
|
+
}
|
|
2247
|
+
function io(e) {
|
|
2248
|
+
if (!this.isValid()) return null;
|
|
2249
|
+
var t = e !== true, r = t ? this.clone().utc() : this;
|
|
2250
|
+
return r.year() < 0 || r.year() > 9999 ? Mt(r, t ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ") : be(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", Mt(r, "Z")) : Mt(r, t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ");
|
|
2251
|
+
}
|
|
2252
|
+
function oo() {
|
|
2253
|
+
if (!this.isValid()) return "moment.invalid(/* " + this._i + " */)";
|
|
2254
|
+
var e = "moment", t = "", r, s, a, n;
|
|
2255
|
+
return this.isLocal() || (e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", t = "Z"), r = "[" + e + '("]', s = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", a = "-MM-DD[T]HH:mm:ss.SSS", n = t + '[")]', this.format(r + s + a + n);
|
|
2256
|
+
}
|
|
2257
|
+
function lo(e) {
|
|
2258
|
+
e || (e = this.isUtc() ? h.defaultFormatUtc : h.defaultFormat);
|
|
2259
|
+
var t = Mt(this, e);
|
|
2260
|
+
return this.localeData().postformat(t);
|
|
2261
|
+
}
|
|
2262
|
+
function uo(e, t) {
|
|
2263
|
+
return this.isValid() && (le(e) && e.isValid() || R(e).isValid()) ? ce({
|
|
2264
|
+
to: this,
|
|
2265
|
+
from: e
|
|
2266
|
+
}).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
2267
|
+
}
|
|
2268
|
+
function co(e) {
|
|
2269
|
+
return this.from(R(), e);
|
|
2270
|
+
}
|
|
2271
|
+
function fo(e, t) {
|
|
2272
|
+
return this.isValid() && (le(e) && e.isValid() || R(e).isValid()) ? ce({
|
|
2273
|
+
from: this,
|
|
2274
|
+
to: e
|
|
2275
|
+
}).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
2276
|
+
}
|
|
2277
|
+
function ho(e) {
|
|
2278
|
+
return this.to(R(), e);
|
|
2279
|
+
}
|
|
2280
|
+
function Os(e) {
|
|
2281
|
+
var t;
|
|
2282
|
+
return e === void 0 ? this._locale._abbr : (t = Oe(e), t != null && (this._locale = t), this);
|
|
2283
|
+
}
|
|
2284
|
+
var Ys = ee("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.", function(e) {
|
|
2285
|
+
return e === void 0 ? this.localeData() : this.locale(e);
|
|
2286
|
+
});
|
|
2287
|
+
function Rs() {
|
|
2288
|
+
return this._locale;
|
|
2289
|
+
}
|
|
2290
|
+
var Rt = 1e3, Ze = 60 * Rt, Pt = 60 * Ze, Ps = (365 * 400 + 97) * 24 * Pt;
|
|
2291
|
+
function qe(e, t) {
|
|
2292
|
+
return (e % t + t) % t;
|
|
2293
|
+
}
|
|
2294
|
+
function Cs(e, t, r) {
|
|
2295
|
+
return e < 100 && e >= 0 ? new Date(e + 400, t, r) - Ps : new Date(e, t, r).valueOf();
|
|
2296
|
+
}
|
|
2297
|
+
function Is(e, t, r) {
|
|
2298
|
+
return e < 100 && e >= 0 ? Date.UTC(e + 400, t, r) - Ps : Date.UTC(e, t, r);
|
|
2299
|
+
}
|
|
2300
|
+
function mo(e) {
|
|
2301
|
+
var t, r;
|
|
2302
|
+
if (e = te(e), e === void 0 || e === "millisecond" || !this.isValid()) return this;
|
|
2303
|
+
switch (r = this._isUTC ? Is : Cs, e) {
|
|
2304
|
+
case "year":
|
|
2305
|
+
t = r(this.year(), 0, 1);
|
|
2306
|
+
break;
|
|
2307
|
+
case "quarter":
|
|
2308
|
+
t = r(this.year(), this.month() - this.month() % 3, 1);
|
|
2309
|
+
break;
|
|
2310
|
+
case "month":
|
|
2311
|
+
t = r(this.year(), this.month(), 1);
|
|
2312
|
+
break;
|
|
2313
|
+
case "week":
|
|
2314
|
+
t = r(this.year(), this.month(), this.date() - this.weekday());
|
|
2315
|
+
break;
|
|
2316
|
+
case "isoWeek":
|
|
2317
|
+
t = r(this.year(), this.month(), this.date() - (this.isoWeekday() - 1));
|
|
2318
|
+
break;
|
|
2319
|
+
case "day":
|
|
2320
|
+
case "date":
|
|
2321
|
+
t = r(this.year(), this.month(), this.date());
|
|
2322
|
+
break;
|
|
2323
|
+
case "hour":
|
|
2324
|
+
t = this._d.valueOf(), t -= qe(t + (this._isUTC ? 0 : this.utcOffset() * Ze), Pt);
|
|
2325
|
+
break;
|
|
2326
|
+
case "minute":
|
|
2327
|
+
t = this._d.valueOf(), t -= qe(t, Ze);
|
|
2328
|
+
break;
|
|
2329
|
+
case "second":
|
|
2330
|
+
t = this._d.valueOf(), t -= qe(t, Rt);
|
|
2331
|
+
break;
|
|
2332
|
+
}
|
|
2333
|
+
return this._d.setTime(t), h.updateOffset(this, true), this;
|
|
2334
|
+
}
|
|
2335
|
+
function po(e) {
|
|
2336
|
+
var t, r;
|
|
2337
|
+
if (e = te(e), e === void 0 || e === "millisecond" || !this.isValid()) return this;
|
|
2338
|
+
switch (r = this._isUTC ? Is : Cs, e) {
|
|
2339
|
+
case "year":
|
|
2340
|
+
t = r(this.year() + 1, 0, 1) - 1;
|
|
2341
|
+
break;
|
|
2342
|
+
case "quarter":
|
|
2343
|
+
t = r(this.year(), this.month() - this.month() % 3 + 3, 1) - 1;
|
|
2344
|
+
break;
|
|
2345
|
+
case "month":
|
|
2346
|
+
t = r(this.year(), this.month() + 1, 1) - 1;
|
|
2347
|
+
break;
|
|
2348
|
+
case "week":
|
|
2349
|
+
t = r(this.year(), this.month(), this.date() - this.weekday() + 7) - 1;
|
|
2350
|
+
break;
|
|
2351
|
+
case "isoWeek":
|
|
2352
|
+
t = r(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1;
|
|
2353
|
+
break;
|
|
2354
|
+
case "day":
|
|
2355
|
+
case "date":
|
|
2356
|
+
t = r(this.year(), this.month(), this.date() + 1) - 1;
|
|
2357
|
+
break;
|
|
2358
|
+
case "hour":
|
|
2359
|
+
t = this._d.valueOf(), t += Pt - qe(t + (this._isUTC ? 0 : this.utcOffset() * Ze), Pt) - 1;
|
|
2360
|
+
break;
|
|
2361
|
+
case "minute":
|
|
2362
|
+
t = this._d.valueOf(), t += Ze - qe(t, Ze) - 1;
|
|
2363
|
+
break;
|
|
2364
|
+
case "second":
|
|
2365
|
+
t = this._d.valueOf(), t += Rt - qe(t, Rt) - 1;
|
|
2366
|
+
break;
|
|
2367
|
+
}
|
|
2368
|
+
return this._d.setTime(t), h.updateOffset(this, true), this;
|
|
2369
|
+
}
|
|
2370
|
+
function yo() {
|
|
2371
|
+
return this._d.valueOf() - (this._offset || 0) * 6e4;
|
|
2372
|
+
}
|
|
2373
|
+
function wo() {
|
|
2374
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
2375
|
+
}
|
|
2376
|
+
function _o() {
|
|
2377
|
+
return new Date(this.valueOf());
|
|
2378
|
+
}
|
|
2379
|
+
function bo() {
|
|
2380
|
+
var e = this;
|
|
2381
|
+
return [
|
|
2382
|
+
e.year(),
|
|
2383
|
+
e.month(),
|
|
2384
|
+
e.date(),
|
|
2385
|
+
e.hour(),
|
|
2386
|
+
e.minute(),
|
|
2387
|
+
e.second(),
|
|
2388
|
+
e.millisecond()
|
|
2389
|
+
];
|
|
2390
|
+
}
|
|
2391
|
+
function go() {
|
|
2392
|
+
var e = this;
|
|
2393
|
+
return {
|
|
2394
|
+
years: e.year(),
|
|
2395
|
+
months: e.month(),
|
|
2396
|
+
date: e.date(),
|
|
2397
|
+
hours: e.hours(),
|
|
2398
|
+
minutes: e.minutes(),
|
|
2399
|
+
seconds: e.seconds(),
|
|
2400
|
+
milliseconds: e.milliseconds()
|
|
2401
|
+
};
|
|
2402
|
+
}
|
|
2403
|
+
function vo() {
|
|
2404
|
+
return this.isValid() ? this.toISOString() : null;
|
|
2405
|
+
}
|
|
2406
|
+
function xo() {
|
|
2407
|
+
return or(this);
|
|
2408
|
+
}
|
|
2409
|
+
function ko() {
|
|
2410
|
+
return Pe({}, g(this));
|
|
2411
|
+
}
|
|
2412
|
+
function Do() {
|
|
2413
|
+
return g(this).overflow;
|
|
2414
|
+
}
|
|
2415
|
+
function No() {
|
|
2416
|
+
return {
|
|
2417
|
+
input: this._i,
|
|
2418
|
+
format: this._f,
|
|
2419
|
+
locale: this._locale,
|
|
2420
|
+
isUTC: this._isUTC,
|
|
2421
|
+
strict: this._strict
|
|
2422
|
+
};
|
|
2423
|
+
}
|
|
2424
|
+
y("N", 0, 0, "eraAbbr");
|
|
2425
|
+
y("NN", 0, 0, "eraAbbr");
|
|
2426
|
+
y("NNN", 0, 0, "eraAbbr");
|
|
2427
|
+
y("NNNN", 0, 0, "eraName");
|
|
2428
|
+
y("NNNNN", 0, 0, "eraNarrow");
|
|
2429
|
+
y("y", [
|
|
2430
|
+
"y",
|
|
2431
|
+
1
|
|
2432
|
+
], "yo", "eraYear");
|
|
2433
|
+
y("y", [
|
|
2434
|
+
"yy",
|
|
2435
|
+
2
|
|
2436
|
+
], 0, "eraYear");
|
|
2437
|
+
y("y", [
|
|
2438
|
+
"yyy",
|
|
2439
|
+
3
|
|
2440
|
+
], 0, "eraYear");
|
|
2441
|
+
y("y", [
|
|
2442
|
+
"yyyy",
|
|
2443
|
+
4
|
|
2444
|
+
], 0, "eraYear");
|
|
2445
|
+
m("N", Nr);
|
|
2446
|
+
m("NN", Nr);
|
|
2447
|
+
m("NNN", Nr);
|
|
2448
|
+
m("NNNN", Vo);
|
|
2449
|
+
m("NNNNN", Wo);
|
|
2450
|
+
O([
|
|
2451
|
+
"N",
|
|
2452
|
+
"NN",
|
|
2453
|
+
"NNN",
|
|
2454
|
+
"NNNN",
|
|
2455
|
+
"NNNNN"
|
|
2456
|
+
], function(e, t, r, s) {
|
|
2457
|
+
var a = r._locale.erasParse(e, s, r._strict);
|
|
2458
|
+
a ? g(r).era = a : g(r).invalidEra = e;
|
|
2459
|
+
});
|
|
2460
|
+
m("y", Je);
|
|
2461
|
+
m("yy", Je);
|
|
2462
|
+
m("yyy", Je);
|
|
2463
|
+
m("yyyy", Je);
|
|
2464
|
+
m("yo", jo);
|
|
2465
|
+
O([
|
|
2466
|
+
"y",
|
|
2467
|
+
"yy",
|
|
2468
|
+
"yyy",
|
|
2469
|
+
"yyyy"
|
|
2470
|
+
], z);
|
|
2471
|
+
O([
|
|
2472
|
+
"yo"
|
|
2473
|
+
], function(e, t, r, s) {
|
|
2474
|
+
var a;
|
|
2475
|
+
r._locale._eraYearOrdinalRegex && (a = e.match(r._locale._eraYearOrdinalRegex)), r._locale.eraYearOrdinalParse ? t[z] = r._locale.eraYearOrdinalParse(e, a) : t[z] = parseInt(e, 10);
|
|
2476
|
+
});
|
|
2477
|
+
function So(e, t) {
|
|
2478
|
+
var r, s, a, n = this._eras || Oe("en")._eras;
|
|
2479
|
+
for (r = 0, s = n.length; r < s; ++r) {
|
|
2480
|
+
switch (typeof n[r].since) {
|
|
2481
|
+
case "string":
|
|
2482
|
+
a = h(n[r].since).startOf("day"), n[r].since = a.valueOf();
|
|
2483
|
+
break;
|
|
2484
|
+
}
|
|
2485
|
+
switch (typeof n[r].until) {
|
|
2486
|
+
case "undefined":
|
|
2487
|
+
n[r].until = 1 / 0;
|
|
2488
|
+
break;
|
|
2489
|
+
case "string":
|
|
2490
|
+
a = h(n[r].until).startOf("day").valueOf(), n[r].until = a.valueOf();
|
|
2491
|
+
break;
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
return n;
|
|
2495
|
+
}
|
|
2496
|
+
function Mo(e, t, r) {
|
|
2497
|
+
var s, a, n = this.eras(), i, o, l;
|
|
2498
|
+
for (e = e.toUpperCase(), s = 0, a = n.length; s < a; ++s) if (i = n[s].name.toUpperCase(), o = n[s].abbr.toUpperCase(), l = n[s].narrow.toUpperCase(), r) switch (t) {
|
|
2499
|
+
case "N":
|
|
2500
|
+
case "NN":
|
|
2501
|
+
case "NNN":
|
|
2502
|
+
if (o === e) return n[s];
|
|
2503
|
+
break;
|
|
2504
|
+
case "NNNN":
|
|
2505
|
+
if (i === e) return n[s];
|
|
2506
|
+
break;
|
|
2507
|
+
case "NNNNN":
|
|
2508
|
+
if (l === e) return n[s];
|
|
2509
|
+
break;
|
|
2510
|
+
}
|
|
2511
|
+
else if ([
|
|
2512
|
+
i,
|
|
2513
|
+
o,
|
|
2514
|
+
l
|
|
2515
|
+
].indexOf(e) >= 0) return n[s];
|
|
2516
|
+
}
|
|
2517
|
+
function To(e, t) {
|
|
2518
|
+
var r = e.since <= e.until ? 1 : -1;
|
|
2519
|
+
return t === void 0 ? h(e.since).year() : h(e.since).year() + (t - e.offset) * r;
|
|
2520
|
+
}
|
|
2521
|
+
function Eo() {
|
|
2522
|
+
var e, t, r, s = this.localeData().eras();
|
|
2523
|
+
for (e = 0, t = s.length; e < t; ++e) if (r = this.clone().startOf("day").valueOf(), s[e].since <= r && r <= s[e].until || s[e].until <= r && r <= s[e].since) return s[e].name;
|
|
2524
|
+
return "";
|
|
2525
|
+
}
|
|
2526
|
+
function Oo() {
|
|
2527
|
+
var e, t, r, s = this.localeData().eras();
|
|
2528
|
+
for (e = 0, t = s.length; e < t; ++e) if (r = this.clone().startOf("day").valueOf(), s[e].since <= r && r <= s[e].until || s[e].until <= r && r <= s[e].since) return s[e].narrow;
|
|
2529
|
+
return "";
|
|
2530
|
+
}
|
|
2531
|
+
function Yo() {
|
|
2532
|
+
var e, t, r, s = this.localeData().eras();
|
|
2533
|
+
for (e = 0, t = s.length; e < t; ++e) if (r = this.clone().startOf("day").valueOf(), s[e].since <= r && r <= s[e].until || s[e].until <= r && r <= s[e].since) return s[e].abbr;
|
|
2534
|
+
return "";
|
|
2535
|
+
}
|
|
2536
|
+
function Ro() {
|
|
2537
|
+
var e, t, r, s, a = this.localeData().eras();
|
|
2538
|
+
for (e = 0, t = a.length; e < t; ++e) if (r = a[e].since <= a[e].until ? 1 : -1, s = this.clone().startOf("day").valueOf(), a[e].since <= s && s <= a[e].until || a[e].until <= s && s <= a[e].since) return (this.year() - h(a[e].since).year()) * r + a[e].offset;
|
|
2539
|
+
return this.year();
|
|
2540
|
+
}
|
|
2541
|
+
function Po(e) {
|
|
2542
|
+
return S(this, "_erasNameRegex") || Sr.call(this), e ? this._erasNameRegex : this._erasRegex;
|
|
2543
|
+
}
|
|
2544
|
+
function Co(e) {
|
|
2545
|
+
return S(this, "_erasAbbrRegex") || Sr.call(this), e ? this._erasAbbrRegex : this._erasRegex;
|
|
2546
|
+
}
|
|
2547
|
+
function Io(e) {
|
|
2548
|
+
return S(this, "_erasNarrowRegex") || Sr.call(this), e ? this._erasNarrowRegex : this._erasRegex;
|
|
2549
|
+
}
|
|
2550
|
+
function Nr(e, t) {
|
|
2551
|
+
return t.erasAbbrRegex(e);
|
|
2552
|
+
}
|
|
2553
|
+
function Vo(e, t) {
|
|
2554
|
+
return t.erasNameRegex(e);
|
|
2555
|
+
}
|
|
2556
|
+
function Wo(e, t) {
|
|
2557
|
+
return t.erasNarrowRegex(e);
|
|
2558
|
+
}
|
|
2559
|
+
function jo(e, t) {
|
|
2560
|
+
return t._eraYearOrdinalRegex || Je;
|
|
2561
|
+
}
|
|
2562
|
+
function Sr() {
|
|
2563
|
+
var e = [], t = [], r = [], s = [], a, n, i, o, l, u = this.eras();
|
|
2564
|
+
for (a = 0, n = u.length; a < n; ++a) i = Me(u[a].name), o = Me(u[a].abbr), l = Me(u[a].narrow), t.push(i), e.push(o), r.push(l), s.push(i), s.push(o), s.push(l);
|
|
2565
|
+
this._erasRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + t.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + e.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp("^(" + r.join("|") + ")", "i");
|
|
2566
|
+
}
|
|
2567
|
+
y(0, [
|
|
2568
|
+
"gg",
|
|
2569
|
+
2
|
|
2570
|
+
], 0, function() {
|
|
2571
|
+
return this.weekYear() % 100;
|
|
2572
|
+
});
|
|
2573
|
+
y(0, [
|
|
2574
|
+
"GG",
|
|
2575
|
+
2
|
|
2576
|
+
], 0, function() {
|
|
2577
|
+
return this.isoWeekYear() % 100;
|
|
2578
|
+
});
|
|
2579
|
+
function Ht(e, t) {
|
|
2580
|
+
y(0, [
|
|
2581
|
+
e,
|
|
2582
|
+
e.length
|
|
2583
|
+
], 0, t);
|
|
2584
|
+
}
|
|
2585
|
+
Ht("gggg", "weekYear");
|
|
2586
|
+
Ht("ggggg", "weekYear");
|
|
2587
|
+
Ht("GGGG", "isoWeekYear");
|
|
2588
|
+
Ht("GGGGG", "isoWeekYear");
|
|
2589
|
+
m("G", At);
|
|
2590
|
+
m("g", At);
|
|
2591
|
+
m("GG", P, q);
|
|
2592
|
+
m("gg", P, q);
|
|
2593
|
+
m("GGGG", hr, fr);
|
|
2594
|
+
m("gggg", hr, fr);
|
|
2595
|
+
m("GGGGG", jt, Vt);
|
|
2596
|
+
m("ggggg", jt, Vt);
|
|
2597
|
+
mt([
|
|
2598
|
+
"gggg",
|
|
2599
|
+
"ggggg",
|
|
2600
|
+
"GGGG",
|
|
2601
|
+
"GGGGG"
|
|
2602
|
+
], function(e, t, r, s) {
|
|
2603
|
+
t[s.substr(0, 2)] = x(e);
|
|
2604
|
+
});
|
|
2605
|
+
mt([
|
|
2606
|
+
"gg",
|
|
2607
|
+
"GG"
|
|
2608
|
+
], function(e, t, r, s) {
|
|
2609
|
+
t[s] = h.parseTwoDigitYear(e);
|
|
2610
|
+
});
|
|
2611
|
+
function Ao(e) {
|
|
2612
|
+
return Vs.call(this, e, this.week(), this.weekday() + this.localeData()._week.dow, this.localeData()._week.dow, this.localeData()._week.doy);
|
|
2613
|
+
}
|
|
2614
|
+
function Fo(e) {
|
|
2615
|
+
return Vs.call(this, e, this.isoWeek(), this.isoWeekday(), 1, 4);
|
|
2616
|
+
}
|
|
2617
|
+
function Go() {
|
|
2618
|
+
return Te(this.year(), 1, 4);
|
|
2619
|
+
}
|
|
2620
|
+
function Lo() {
|
|
2621
|
+
return Te(this.isoWeekYear(), 1, 4);
|
|
2622
|
+
}
|
|
2623
|
+
function Uo() {
|
|
2624
|
+
var e = this.localeData()._week;
|
|
2625
|
+
return Te(this.year(), e.dow, e.doy);
|
|
2626
|
+
}
|
|
2627
|
+
function Ho() {
|
|
2628
|
+
var e = this.localeData()._week;
|
|
2629
|
+
return Te(this.weekYear(), e.dow, e.doy);
|
|
2630
|
+
}
|
|
2631
|
+
function Vs(e, t, r, s, a) {
|
|
2632
|
+
var n;
|
|
2633
|
+
return e == null ? ut(this, s, a).year : (n = Te(e, s, a), t > n && (t = n), zo.call(this, e, t, r, s, a));
|
|
2634
|
+
}
|
|
2635
|
+
function zo(e, t, r, s, a) {
|
|
2636
|
+
var n = ps(e, t, r, s, a), i = lt(n.year, 0, n.dayOfYear);
|
|
2637
|
+
return this.year(i.getUTCFullYear()), this.month(i.getUTCMonth()), this.date(i.getUTCDate()), this;
|
|
2638
|
+
}
|
|
2639
|
+
y("Q", 0, "Qo", "quarter");
|
|
2640
|
+
m("Q", as);
|
|
2641
|
+
O("Q", function(e, t) {
|
|
2642
|
+
t[Ne] = (x(e) - 1) * 3;
|
|
2643
|
+
});
|
|
2644
|
+
function $o(e) {
|
|
2645
|
+
return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
|
|
2646
|
+
}
|
|
2647
|
+
y("D", [
|
|
2648
|
+
"DD",
|
|
2649
|
+
2
|
|
2650
|
+
], "Do", "date");
|
|
2651
|
+
m("D", P, Ke);
|
|
2652
|
+
m("DD", P, q);
|
|
2653
|
+
m("Do", function(e, t) {
|
|
2654
|
+
return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
|
|
2655
|
+
});
|
|
2656
|
+
O([
|
|
2657
|
+
"D",
|
|
2658
|
+
"DD"
|
|
2659
|
+
], ye);
|
|
2660
|
+
O("Do", function(e, t) {
|
|
2661
|
+
t[ye] = x(e.match(P)[0]);
|
|
2662
|
+
});
|
|
2663
|
+
var Ws = Xe("Date", true);
|
|
2664
|
+
y("DDD", [
|
|
2665
|
+
"DDDD",
|
|
2666
|
+
3
|
|
2667
|
+
], "DDDo", "dayOfYear");
|
|
2668
|
+
m("DDD", Wt);
|
|
2669
|
+
m("DDDD", ns);
|
|
2670
|
+
O([
|
|
2671
|
+
"DDD",
|
|
2672
|
+
"DDDD"
|
|
2673
|
+
], function(e, t, r) {
|
|
2674
|
+
r._dayOfYear = x(e);
|
|
2675
|
+
});
|
|
2676
|
+
function Bo(e) {
|
|
2677
|
+
var t = Math.round((this.clone().startOf("day") - this.clone().startOf("year")) / 864e5) + 1;
|
|
2678
|
+
return e == null ? t : this.add(e - t, "d");
|
|
2679
|
+
}
|
|
2680
|
+
y("m", [
|
|
2681
|
+
"mm",
|
|
2682
|
+
2
|
|
2683
|
+
], 0, "minute");
|
|
2684
|
+
m("m", P, mr);
|
|
2685
|
+
m("mm", P, q);
|
|
2686
|
+
O([
|
|
2687
|
+
"m",
|
|
2688
|
+
"mm"
|
|
2689
|
+
], ne);
|
|
2690
|
+
var Zo = Xe("Minutes", false);
|
|
2691
|
+
y("s", [
|
|
2692
|
+
"ss",
|
|
2693
|
+
2
|
|
2694
|
+
], 0, "second");
|
|
2695
|
+
m("s", P, mr);
|
|
2696
|
+
m("ss", P, q);
|
|
2697
|
+
O([
|
|
2698
|
+
"s",
|
|
2699
|
+
"ss"
|
|
2700
|
+
], Se);
|
|
2701
|
+
var qo = Xe("Seconds", false);
|
|
2702
|
+
y("S", 0, 0, function() {
|
|
2703
|
+
return ~~(this.millisecond() / 100);
|
|
2704
|
+
});
|
|
2705
|
+
y(0, [
|
|
2706
|
+
"SS",
|
|
2707
|
+
2
|
|
2708
|
+
], 0, function() {
|
|
2709
|
+
return ~~(this.millisecond() / 10);
|
|
2710
|
+
});
|
|
2711
|
+
y(0, [
|
|
2712
|
+
"SSS",
|
|
2713
|
+
3
|
|
2714
|
+
], 0, "millisecond");
|
|
2715
|
+
y(0, [
|
|
2716
|
+
"SSSS",
|
|
2717
|
+
4
|
|
2718
|
+
], 0, function() {
|
|
2719
|
+
return this.millisecond() * 10;
|
|
2720
|
+
});
|
|
2721
|
+
y(0, [
|
|
2722
|
+
"SSSSS",
|
|
2723
|
+
5
|
|
2724
|
+
], 0, function() {
|
|
2725
|
+
return this.millisecond() * 100;
|
|
2726
|
+
});
|
|
2727
|
+
y(0, [
|
|
2728
|
+
"SSSSSS",
|
|
2729
|
+
6
|
|
2730
|
+
], 0, function() {
|
|
2731
|
+
return this.millisecond() * 1e3;
|
|
2732
|
+
});
|
|
2733
|
+
y(0, [
|
|
2734
|
+
"SSSSSSS",
|
|
2735
|
+
7
|
|
2736
|
+
], 0, function() {
|
|
2737
|
+
return this.millisecond() * 1e4;
|
|
2738
|
+
});
|
|
2739
|
+
y(0, [
|
|
2740
|
+
"SSSSSSSS",
|
|
2741
|
+
8
|
|
2742
|
+
], 0, function() {
|
|
2743
|
+
return this.millisecond() * 1e5;
|
|
2744
|
+
});
|
|
2745
|
+
y(0, [
|
|
2746
|
+
"SSSSSSSSS",
|
|
2747
|
+
9
|
|
2748
|
+
], 0, function() {
|
|
2749
|
+
return this.millisecond() * 1e6;
|
|
2750
|
+
});
|
|
2751
|
+
m("S", Wt, as);
|
|
2752
|
+
m("SS", Wt, q);
|
|
2753
|
+
m("SSS", Wt, ns);
|
|
2754
|
+
var Ce, js;
|
|
2755
|
+
for (Ce = "SSSS"; Ce.length <= 9; Ce += "S") m(Ce, Je);
|
|
2756
|
+
function Jo(e, t) {
|
|
2757
|
+
t[je] = x(("0." + e) * 1e3);
|
|
2758
|
+
}
|
|
2759
|
+
for (Ce = "S"; Ce.length <= 9; Ce += "S") O(Ce, Jo);
|
|
2760
|
+
js = Xe("Milliseconds", false);
|
|
2761
|
+
y("z", 0, 0, "zoneAbbr");
|
|
2762
|
+
y("zz", 0, 0, "zoneName");
|
|
2763
|
+
function Ko() {
|
|
2764
|
+
return this._isUTC ? "UTC" : "";
|
|
2765
|
+
}
|
|
2766
|
+
function Xo() {
|
|
2767
|
+
return this._isUTC ? "Coordinated Universal Time" : "";
|
|
2768
|
+
}
|
|
2769
|
+
var d = ft.prototype;
|
|
2770
|
+
d.add = Ui;
|
|
2771
|
+
d.calendar = Ji;
|
|
2772
|
+
d.clone = Ki;
|
|
2773
|
+
d.diff = ao;
|
|
2774
|
+
d.endOf = po;
|
|
2775
|
+
d.format = lo;
|
|
2776
|
+
d.from = uo;
|
|
2777
|
+
d.fromNow = co;
|
|
2778
|
+
d.to = fo;
|
|
2779
|
+
d.toNow = ho;
|
|
2780
|
+
d.get = on;
|
|
2781
|
+
d.invalidAt = Do;
|
|
2782
|
+
d.isAfter = Xi;
|
|
2783
|
+
d.isBefore = Qi;
|
|
2784
|
+
d.isBetween = eo;
|
|
2785
|
+
d.isSame = to;
|
|
2786
|
+
d.isSameOrAfter = ro;
|
|
2787
|
+
d.isSameOrBefore = so;
|
|
2788
|
+
d.isValid = xo;
|
|
2789
|
+
d.lang = Ys;
|
|
2790
|
+
d.locale = Os;
|
|
2791
|
+
d.localeData = Rs;
|
|
2792
|
+
d.max = vi;
|
|
2793
|
+
d.min = gi;
|
|
2794
|
+
d.parsingFlags = ko;
|
|
2795
|
+
d.set = ln;
|
|
2796
|
+
d.startOf = mo;
|
|
2797
|
+
d.subtract = Hi;
|
|
2798
|
+
d.toArray = bo;
|
|
2799
|
+
d.toObject = go;
|
|
2800
|
+
d.toDate = _o;
|
|
2801
|
+
d.toISOString = io;
|
|
2802
|
+
d.inspect = oo;
|
|
2803
|
+
typeof Symbol < "u" && Symbol.for != null && (d[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
2804
|
+
return "Moment<" + this.format() + ">";
|
|
2805
|
+
});
|
|
2806
|
+
d.toJSON = vo;
|
|
2807
|
+
d.toString = no;
|
|
2808
|
+
d.unix = wo;
|
|
2809
|
+
d.valueOf = yo;
|
|
2810
|
+
d.creationData = No;
|
|
2811
|
+
d.eraName = Eo;
|
|
2812
|
+
d.eraNarrow = Oo;
|
|
2813
|
+
d.eraAbbr = Yo;
|
|
2814
|
+
d.eraYear = Ro;
|
|
2815
|
+
d.year = ls;
|
|
2816
|
+
d.isLeapYear = nn;
|
|
2817
|
+
d.weekYear = Ao;
|
|
2818
|
+
d.isoWeekYear = Fo;
|
|
2819
|
+
d.quarter = d.quarters = $o;
|
|
2820
|
+
d.month = hs;
|
|
2821
|
+
d.daysInMonth = wn;
|
|
2822
|
+
d.week = d.weeks = Nn;
|
|
2823
|
+
d.isoWeek = d.isoWeeks = Sn;
|
|
2824
|
+
d.weeksInYear = Uo;
|
|
2825
|
+
d.weeksInWeekYear = Ho;
|
|
2826
|
+
d.isoWeeksInYear = Go;
|
|
2827
|
+
d.isoWeeksInISOWeekYear = Lo;
|
|
2828
|
+
d.date = Ws;
|
|
2829
|
+
d.day = d.days = An;
|
|
2830
|
+
d.weekday = Fn;
|
|
2831
|
+
d.isoWeekday = Gn;
|
|
2832
|
+
d.dayOfYear = Bo;
|
|
2833
|
+
d.hour = d.hours = Zn;
|
|
2834
|
+
d.minute = d.minutes = Zo;
|
|
2835
|
+
d.second = d.seconds = qo;
|
|
2836
|
+
d.millisecond = d.milliseconds = js;
|
|
2837
|
+
d.utcOffset = Oi;
|
|
2838
|
+
d.utc = Ri;
|
|
2839
|
+
d.local = Pi;
|
|
2840
|
+
d.parseZone = Ci;
|
|
2841
|
+
d.hasAlignedHourOffset = Ii;
|
|
2842
|
+
d.isDST = Vi;
|
|
2843
|
+
d.isLocal = ji;
|
|
2844
|
+
d.isUtcOffset = Ai;
|
|
2845
|
+
d.isUtc = Ss;
|
|
2846
|
+
d.isUTC = Ss;
|
|
2847
|
+
d.zoneAbbr = Ko;
|
|
2848
|
+
d.zoneName = Xo;
|
|
2849
|
+
d.dates = ee("dates accessor is deprecated. Use date instead.", Ws);
|
|
2850
|
+
d.months = ee("months accessor is deprecated. Use month instead", hs);
|
|
2851
|
+
d.years = ee("years accessor is deprecated. Use year instead", ls);
|
|
2852
|
+
d.zone = ee("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/", Yi);
|
|
2853
|
+
d.isDSTShifted = ee("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information", Wi);
|
|
2854
|
+
function Qo(e) {
|
|
2855
|
+
return R(e * 1e3);
|
|
2856
|
+
}
|
|
2857
|
+
function el() {
|
|
2858
|
+
return R.apply(null, arguments).parseZone();
|
|
2859
|
+
}
|
|
2860
|
+
function As(e) {
|
|
2861
|
+
return e;
|
|
2862
|
+
}
|
|
2863
|
+
var M = ur.prototype;
|
|
2864
|
+
M.calendar = Wa;
|
|
2865
|
+
M.longDateFormat = Ga;
|
|
2866
|
+
M.invalidDate = Ua;
|
|
2867
|
+
M.ordinal = $a;
|
|
2868
|
+
M.preparse = As;
|
|
2869
|
+
M.postformat = As;
|
|
2870
|
+
M.relativeTime = Za;
|
|
2871
|
+
M.pastFuture = qa;
|
|
2872
|
+
M.set = Ia;
|
|
2873
|
+
M.eras = So;
|
|
2874
|
+
M.erasParse = Mo;
|
|
2875
|
+
M.erasConvertYear = To;
|
|
2876
|
+
M.erasAbbrRegex = Co;
|
|
2877
|
+
M.erasNameRegex = Po;
|
|
2878
|
+
M.erasNarrowRegex = Io;
|
|
2879
|
+
M.months = hn;
|
|
2880
|
+
M.monthsShort = mn;
|
|
2881
|
+
M.monthsParse = yn;
|
|
2882
|
+
M.monthsRegex = bn;
|
|
2883
|
+
M.monthsShortRegex = _n;
|
|
2884
|
+
M.week = vn;
|
|
2885
|
+
M.firstDayOfYear = Dn;
|
|
2886
|
+
M.firstDayOfWeek = kn;
|
|
2887
|
+
M.weekdays = Cn;
|
|
2888
|
+
M.weekdaysMin = Vn;
|
|
2889
|
+
M.weekdaysShort = In;
|
|
2890
|
+
M.weekdaysParse = jn;
|
|
2891
|
+
M.weekdaysRegex = Ln;
|
|
2892
|
+
M.weekdaysShortRegex = Un;
|
|
2893
|
+
M.weekdaysMinRegex = Hn;
|
|
2894
|
+
M.isPM = $n;
|
|
2895
|
+
M.meridiem = qn;
|
|
2896
|
+
function Ct(e, t, r, s) {
|
|
2897
|
+
var a = Oe(), n = _e().set(s, t);
|
|
2898
|
+
return a[r](n, e);
|
|
2899
|
+
}
|
|
2900
|
+
function Fs(e, t, r) {
|
|
2901
|
+
if (Ee(e) && (t = e, e = void 0), e = e || "", t != null) return Ct(e, t, r, "month");
|
|
2902
|
+
var s, a = [];
|
|
2903
|
+
for (s = 0; s < 12; s++) a[s] = Ct(e, s, r, "month");
|
|
2904
|
+
return a;
|
|
2905
|
+
}
|
|
2906
|
+
function Mr(e, t, r, s) {
|
|
2907
|
+
typeof e == "boolean" ? (Ee(t) && (r = t, t = void 0), t = t || "") : (t = e, r = t, e = false, Ee(t) && (r = t, t = void 0), t = t || "");
|
|
2908
|
+
var a = Oe(), n = e ? a._week.dow : 0, i, o = [];
|
|
2909
|
+
if (r != null) return Ct(t, (r + n) % 7, s, "day");
|
|
2910
|
+
for (i = 0; i < 7; i++) o[i] = Ct(t, (i + n) % 7, s, "day");
|
|
2911
|
+
return o;
|
|
2912
|
+
}
|
|
2913
|
+
function tl(e, t) {
|
|
2914
|
+
return Fs(e, t, "months");
|
|
2915
|
+
}
|
|
2916
|
+
function rl(e, t) {
|
|
2917
|
+
return Fs(e, t, "monthsShort");
|
|
2918
|
+
}
|
|
2919
|
+
function sl(e, t, r) {
|
|
2920
|
+
return Mr(e, t, r, "weekdays");
|
|
2921
|
+
}
|
|
2922
|
+
function al(e, t, r) {
|
|
2923
|
+
return Mr(e, t, r, "weekdaysShort");
|
|
2924
|
+
}
|
|
2925
|
+
function nl(e, t, r) {
|
|
2926
|
+
return Mr(e, t, r, "weekdaysMin");
|
|
2927
|
+
}
|
|
2928
|
+
Ie("en", {
|
|
2929
|
+
eras: [
|
|
2930
|
+
{
|
|
2931
|
+
since: "0001-01-01",
|
|
2932
|
+
until: 1 / 0,
|
|
2933
|
+
offset: 1,
|
|
2934
|
+
name: "Anno Domini",
|
|
2935
|
+
narrow: "AD",
|
|
2936
|
+
abbr: "AD"
|
|
2937
|
+
},
|
|
2938
|
+
{
|
|
2939
|
+
since: "0000-12-31",
|
|
2940
|
+
until: -1 / 0,
|
|
2941
|
+
offset: 1,
|
|
2942
|
+
name: "Before Christ",
|
|
2943
|
+
narrow: "BC",
|
|
2944
|
+
abbr: "BC"
|
|
2945
|
+
}
|
|
2946
|
+
],
|
|
2947
|
+
dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
|
|
2948
|
+
ordinal: function(e) {
|
|
2949
|
+
var t = e % 10, r = x(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th";
|
|
2950
|
+
return e + r;
|
|
2951
|
+
}
|
|
2952
|
+
});
|
|
2953
|
+
h.lang = ee("moment.lang is deprecated. Use moment.locale instead.", Ie);
|
|
2954
|
+
h.langData = ee("moment.langData is deprecated. Use moment.localeData instead.", Oe);
|
|
2955
|
+
var ke = Math.abs;
|
|
2956
|
+
function il() {
|
|
2957
|
+
var e = this._data;
|
|
2958
|
+
return this._milliseconds = ke(this._milliseconds), this._days = ke(this._days), this._months = ke(this._months), e.milliseconds = ke(e.milliseconds), e.seconds = ke(e.seconds), e.minutes = ke(e.minutes), e.hours = ke(e.hours), e.months = ke(e.months), e.years = ke(e.years), this;
|
|
2959
|
+
}
|
|
2960
|
+
function Gs(e, t, r, s) {
|
|
2961
|
+
var a = ce(t, r);
|
|
2962
|
+
return e._milliseconds += s * a._milliseconds, e._days += s * a._days, e._months += s * a._months, e._bubble();
|
|
2963
|
+
}
|
|
2964
|
+
function ol(e, t) {
|
|
2965
|
+
return Gs(this, e, t, 1);
|
|
2966
|
+
}
|
|
2967
|
+
function ll(e, t) {
|
|
2968
|
+
return Gs(this, e, t, -1);
|
|
2969
|
+
}
|
|
2970
|
+
function Gr(e) {
|
|
2971
|
+
return e < 0 ? Math.floor(e) : Math.ceil(e);
|
|
2972
|
+
}
|
|
2973
|
+
function ul() {
|
|
2974
|
+
var e = this._milliseconds, t = this._days, r = this._months, s = this._data, a, n, i, o, l;
|
|
2975
|
+
return e >= 0 && t >= 0 && r >= 0 || e <= 0 && t <= 0 && r <= 0 || (e += Gr(nr(r) + t) * 864e5, t = 0, r = 0), s.milliseconds = e % 1e3, a = Q(e / 1e3), s.seconds = a % 60, n = Q(a / 60), s.minutes = n % 60, i = Q(n / 60), s.hours = i % 24, t += Q(i / 24), l = Q(Ls(t)), r += l, t -= Gr(nr(l)), o = Q(r / 12), r %= 12, s.days = t, s.months = r, s.years = o, this;
|
|
2976
|
+
}
|
|
2977
|
+
function Ls(e) {
|
|
2978
|
+
return e * 4800 / 146097;
|
|
2979
|
+
}
|
|
2980
|
+
function nr(e) {
|
|
2981
|
+
return e * 146097 / 4800;
|
|
2982
|
+
}
|
|
2983
|
+
function cl(e) {
|
|
2984
|
+
if (!this.isValid()) return NaN;
|
|
2985
|
+
var t, r, s = this._milliseconds;
|
|
2986
|
+
if (e = te(e), e === "month" || e === "quarter" || e === "year") switch (t = this._days + s / 864e5, r = this._months + Ls(t), e) {
|
|
2987
|
+
case "month":
|
|
2988
|
+
return r;
|
|
2989
|
+
case "quarter":
|
|
2990
|
+
return r / 3;
|
|
2991
|
+
case "year":
|
|
2992
|
+
return r / 12;
|
|
2993
|
+
}
|
|
2994
|
+
else switch (t = this._days + Math.round(nr(this._months)), e) {
|
|
2995
|
+
case "week":
|
|
2996
|
+
return t / 7 + s / 6048e5;
|
|
2997
|
+
case "day":
|
|
2998
|
+
return t + s / 864e5;
|
|
2999
|
+
case "hour":
|
|
3000
|
+
return t * 24 + s / 36e5;
|
|
3001
|
+
case "minute":
|
|
3002
|
+
return t * 1440 + s / 6e4;
|
|
3003
|
+
case "second":
|
|
3004
|
+
return t * 86400 + s / 1e3;
|
|
3005
|
+
case "millisecond":
|
|
3006
|
+
return Math.floor(t * 864e5) + s;
|
|
3007
|
+
default:
|
|
3008
|
+
throw new Error("Unknown unit " + e);
|
|
3009
|
+
}
|
|
3010
|
+
}
|
|
3011
|
+
function Ye(e) {
|
|
3012
|
+
return function() {
|
|
3013
|
+
return this.as(e);
|
|
3014
|
+
};
|
|
3015
|
+
}
|
|
3016
|
+
var Us = Ye("ms"), dl = Ye("s"), fl = Ye("m"), hl = Ye("h"), ml = Ye("d"), pl = Ye("w"), yl = Ye("M"), wl = Ye("Q"), _l = Ye("y"), bl = Us;
|
|
3017
|
+
function gl() {
|
|
3018
|
+
return ce(this);
|
|
3019
|
+
}
|
|
3020
|
+
function vl(e) {
|
|
3021
|
+
return e = te(e), this.isValid() ? this[e + "s"]() : NaN;
|
|
3022
|
+
}
|
|
3023
|
+
function Fe(e) {
|
|
3024
|
+
return function() {
|
|
3025
|
+
return this.isValid() ? this._data[e] : NaN;
|
|
3026
|
+
};
|
|
3027
|
+
}
|
|
3028
|
+
var xl = Fe("milliseconds"), kl = Fe("seconds"), Dl = Fe("minutes"), Nl = Fe("hours"), Sl = Fe("days"), Ml = Fe("months"), Tl = Fe("years");
|
|
3029
|
+
function El() {
|
|
3030
|
+
return Q(this.days() / 7);
|
|
3031
|
+
}
|
|
3032
|
+
var De = Math.round, $e = {
|
|
3033
|
+
ss: 44,
|
|
3034
|
+
s: 45,
|
|
3035
|
+
m: 45,
|
|
3036
|
+
h: 22,
|
|
3037
|
+
d: 26,
|
|
3038
|
+
w: null,
|
|
3039
|
+
M: 11
|
|
3040
|
+
};
|
|
3041
|
+
function Ol(e, t, r, s, a) {
|
|
3042
|
+
return a.relativeTime(t || 1, !!r, e, s);
|
|
3043
|
+
}
|
|
3044
|
+
function Yl(e, t, r, s) {
|
|
3045
|
+
var a = ce(e).abs(), n = De(a.as("s")), i = De(a.as("m")), o = De(a.as("h")), l = De(a.as("d")), u = De(a.as("M")), p = De(a.as("w")), w = De(a.as("y")), _ = n <= r.ss && [
|
|
3046
|
+
"s",
|
|
3047
|
+
n
|
|
3048
|
+
] || n < r.s && [
|
|
3049
|
+
"ss",
|
|
3050
|
+
n
|
|
3051
|
+
] || i <= 1 && [
|
|
3052
|
+
"m"
|
|
3053
|
+
] || i < r.m && [
|
|
3054
|
+
"mm",
|
|
3055
|
+
i
|
|
3056
|
+
] || o <= 1 && [
|
|
3057
|
+
"h"
|
|
3058
|
+
] || o < r.h && [
|
|
3059
|
+
"hh",
|
|
3060
|
+
o
|
|
3061
|
+
] || l <= 1 && [
|
|
3062
|
+
"d"
|
|
3063
|
+
] || l < r.d && [
|
|
3064
|
+
"dd",
|
|
3065
|
+
l
|
|
3066
|
+
];
|
|
3067
|
+
return r.w != null && (_ = _ || p <= 1 && [
|
|
3068
|
+
"w"
|
|
3069
|
+
] || p < r.w && [
|
|
3070
|
+
"ww",
|
|
3071
|
+
p
|
|
3072
|
+
]), _ = _ || u <= 1 && [
|
|
3073
|
+
"M"
|
|
3074
|
+
] || u < r.M && [
|
|
3075
|
+
"MM",
|
|
3076
|
+
u
|
|
3077
|
+
] || w <= 1 && [
|
|
3078
|
+
"y"
|
|
3079
|
+
] || [
|
|
3080
|
+
"yy",
|
|
3081
|
+
w
|
|
3082
|
+
], _[2] = t, _[3] = +e > 0, _[4] = s, Ol.apply(null, _);
|
|
3083
|
+
}
|
|
3084
|
+
function Rl(e) {
|
|
3085
|
+
return e === void 0 ? De : typeof e == "function" ? (De = e, true) : false;
|
|
3086
|
+
}
|
|
3087
|
+
function Pl(e, t) {
|
|
3088
|
+
return $e[e] === void 0 ? false : t === void 0 ? $e[e] : ($e[e] = t, e === "s" && ($e.ss = t - 1), true);
|
|
3089
|
+
}
|
|
3090
|
+
function Cl(e, t) {
|
|
3091
|
+
if (!this.isValid()) return this.localeData().invalidDate();
|
|
3092
|
+
var r = false, s = $e, a, n;
|
|
3093
|
+
return typeof e == "object" && (t = e, e = false), typeof e == "boolean" && (r = e), typeof t == "object" && (s = Object.assign({}, $e, t), t.s != null && t.ss == null && (s.ss = t.s - 1)), a = this.localeData(), n = Yl(this, !r, s, a), r && (n = a.pastFuture(+this, n)), a.postformat(n);
|
|
3094
|
+
}
|
|
3095
|
+
var Kt = Math.abs;
|
|
3096
|
+
function Ue(e) {
|
|
3097
|
+
return (e > 0) - (e < 0) || +e;
|
|
3098
|
+
}
|
|
3099
|
+
function zt() {
|
|
3100
|
+
if (!this.isValid()) return this.localeData().invalidDate();
|
|
3101
|
+
var e = Kt(this._milliseconds) / 1e3, t = Kt(this._days), r = Kt(this._months), s, a, n, i, o = this.asSeconds(), l, u, p, w;
|
|
3102
|
+
return o ? (s = Q(e / 60), a = Q(s / 60), e %= 60, s %= 60, n = Q(r / 12), r %= 12, i = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", l = o < 0 ? "-" : "", u = Ue(this._months) !== Ue(o) ? "-" : "", p = Ue(this._days) !== Ue(o) ? "-" : "", w = Ue(this._milliseconds) !== Ue(o) ? "-" : "", l + "P" + (n ? u + n + "Y" : "") + (r ? u + r + "M" : "") + (t ? p + t + "D" : "") + (a || s || e ? "T" : "") + (a ? w + a + "H" : "") + (s ? w + s + "M" : "") + (e ? w + i + "S" : "")) : "P0D";
|
|
3103
|
+
}
|
|
3104
|
+
var D = Ut.prototype;
|
|
3105
|
+
D.isValid = Si;
|
|
3106
|
+
D.abs = il;
|
|
3107
|
+
D.add = ol;
|
|
3108
|
+
D.subtract = ll;
|
|
3109
|
+
D.as = cl;
|
|
3110
|
+
D.asMilliseconds = Us;
|
|
3111
|
+
D.asSeconds = dl;
|
|
3112
|
+
D.asMinutes = fl;
|
|
3113
|
+
D.asHours = hl;
|
|
3114
|
+
D.asDays = ml;
|
|
3115
|
+
D.asWeeks = pl;
|
|
3116
|
+
D.asMonths = yl;
|
|
3117
|
+
D.asQuarters = wl;
|
|
3118
|
+
D.asYears = _l;
|
|
3119
|
+
D.valueOf = bl;
|
|
3120
|
+
D._bubble = ul;
|
|
3121
|
+
D.clone = gl;
|
|
3122
|
+
D.get = vl;
|
|
3123
|
+
D.milliseconds = xl;
|
|
3124
|
+
D.seconds = kl;
|
|
3125
|
+
D.minutes = Dl;
|
|
3126
|
+
D.hours = Nl;
|
|
3127
|
+
D.days = Sl;
|
|
3128
|
+
D.weeks = El;
|
|
3129
|
+
D.months = Ml;
|
|
3130
|
+
D.years = Tl;
|
|
3131
|
+
D.humanize = Cl;
|
|
3132
|
+
D.toISOString = zt;
|
|
3133
|
+
D.toString = zt;
|
|
3134
|
+
D.toJSON = zt;
|
|
3135
|
+
D.locale = Os;
|
|
3136
|
+
D.localeData = Rs;
|
|
3137
|
+
D.toIsoString = ee("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)", zt);
|
|
3138
|
+
D.lang = Ys;
|
|
3139
|
+
y("X", 0, 0, "unix");
|
|
3140
|
+
y("x", 0, 0, "valueOf");
|
|
3141
|
+
m("x", At);
|
|
3142
|
+
m("X", Qa);
|
|
3143
|
+
O("X", function(e, t, r) {
|
|
3144
|
+
r._d = new Date(parseFloat(e) * 1e3);
|
|
3145
|
+
});
|
|
3146
|
+
O("x", function(e, t, r) {
|
|
3147
|
+
r._d = new Date(x(e));
|
|
3148
|
+
});
|
|
3149
|
+
h.version = "2.30.1";
|
|
3150
|
+
Pa(R);
|
|
3151
|
+
h.fn = d;
|
|
3152
|
+
h.min = xi;
|
|
3153
|
+
h.max = ki;
|
|
3154
|
+
h.now = Di;
|
|
3155
|
+
h.utc = _e;
|
|
3156
|
+
h.unix = Qo;
|
|
3157
|
+
h.months = tl;
|
|
3158
|
+
h.isDate = dt;
|
|
3159
|
+
h.locale = Ie;
|
|
3160
|
+
h.invalid = It;
|
|
3161
|
+
h.duration = ce;
|
|
3162
|
+
h.isMoment = le;
|
|
3163
|
+
h.weekdays = sl;
|
|
3164
|
+
h.parseZone = el;
|
|
3165
|
+
h.localeData = Oe;
|
|
3166
|
+
h.isDuration = Tt;
|
|
3167
|
+
h.monthsShort = rl;
|
|
3168
|
+
h.weekdaysMin = nl;
|
|
3169
|
+
h.defineLocale = br;
|
|
3170
|
+
h.updateLocale = Qn;
|
|
3171
|
+
h.locales = ei;
|
|
3172
|
+
h.weekdaysShort = al;
|
|
3173
|
+
h.normalizeUnits = te;
|
|
3174
|
+
h.relativeTimeRounding = Rl;
|
|
3175
|
+
h.relativeTimeThreshold = Pl;
|
|
3176
|
+
h.calendarFormat = qi;
|
|
3177
|
+
h.prototype = d;
|
|
3178
|
+
h.HTML5_FMT = {
|
|
3179
|
+
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
3180
|
+
DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
|
|
3181
|
+
DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
|
|
3182
|
+
DATE: "YYYY-MM-DD",
|
|
3183
|
+
TIME: "HH:mm",
|
|
3184
|
+
TIME_SECONDS: "HH:mm:ss",
|
|
3185
|
+
TIME_MS: "HH:mm:ss.SSS",
|
|
3186
|
+
WEEK: "GGGG-[W]WW",
|
|
3187
|
+
MONTH: "YYYY-MM"
|
|
3188
|
+
};
|
|
3189
|
+
const Il = ue.memo(function({ value: t }) {
|
|
3190
|
+
const r = typeof t == "number" ? Math.min(100, Math.max(0, t)) : 0;
|
|
3191
|
+
return f.jsxDEV(F, {
|
|
3192
|
+
sx: {
|
|
3193
|
+
display: "flex",
|
|
3194
|
+
alignItems: "center",
|
|
3195
|
+
gap: 1,
|
|
3196
|
+
width: "100%"
|
|
3197
|
+
},
|
|
3198
|
+
children: [
|
|
3199
|
+
f.jsxDEV(F, {
|
|
3200
|
+
sx: {
|
|
3201
|
+
flexGrow: 1
|
|
3202
|
+
},
|
|
3203
|
+
children: f.jsxDEV(la, {
|
|
3204
|
+
variant: "determinate",
|
|
3205
|
+
value: r
|
|
3206
|
+
}, void 0, false, {
|
|
3207
|
+
fileName: "/workspace/react-wrapper/src/cells/ProgressCell.tsx",
|
|
3208
|
+
lineNumber: 19,
|
|
3209
|
+
columnNumber: 9
|
|
3210
|
+
}, this)
|
|
3211
|
+
}, void 0, false, {
|
|
3212
|
+
fileName: "/workspace/react-wrapper/src/cells/ProgressCell.tsx",
|
|
3213
|
+
lineNumber: 18,
|
|
3214
|
+
columnNumber: 7
|
|
3215
|
+
}, this),
|
|
3216
|
+
f.jsxDEV(it, {
|
|
3217
|
+
variant: "caption",
|
|
3218
|
+
sx: {
|
|
3219
|
+
minWidth: 32,
|
|
3220
|
+
textAlign: "right"
|
|
3221
|
+
},
|
|
3222
|
+
children: typeof t == "number" ? `${t.toFixed(1)}%` : "\u2014"
|
|
3223
|
+
}, void 0, false, {
|
|
3224
|
+
fileName: "/workspace/react-wrapper/src/cells/ProgressCell.tsx",
|
|
3225
|
+
lineNumber: 21,
|
|
3226
|
+
columnNumber: 7
|
|
3227
|
+
}, this)
|
|
3228
|
+
]
|
|
3229
|
+
}, void 0, true, {
|
|
3230
|
+
fileName: "/workspace/react-wrapper/src/cells/ProgressCell.tsx",
|
|
3231
|
+
lineNumber: 17,
|
|
3232
|
+
columnNumber: 5
|
|
3233
|
+
}, this);
|
|
3234
|
+
}), Vl = ue.memo(function({ value: t, column: r }) {
|
|
3235
|
+
var _a2;
|
|
3236
|
+
if (!t) return null;
|
|
3237
|
+
const s = (_a2 = r.statusMap) == null ? void 0 : _a2[t], a = (s == null ? void 0 : s.label) ?? t, n = (s == null ? void 0 : s.color) ?? "default";
|
|
3238
|
+
return f.jsxDEV(Ur, {
|
|
3239
|
+
label: a,
|
|
3240
|
+
color: n,
|
|
3241
|
+
size: "small"
|
|
3242
|
+
}, void 0, false, {
|
|
3243
|
+
fileName: "/workspace/react-wrapper/src/cells/StatusCell.tsx",
|
|
3244
|
+
lineNumber: 18,
|
|
3245
|
+
columnNumber: 10
|
|
3246
|
+
}, this);
|
|
3247
|
+
}), Wl = ue.memo(function({ value: t }) {
|
|
3248
|
+
return !Array.isArray(t) || t.length === 0 ? null : f.jsxDEV(F, {
|
|
3249
|
+
sx: {
|
|
3250
|
+
display: "flex",
|
|
3251
|
+
flexWrap: "wrap",
|
|
3252
|
+
gap: 0.5
|
|
3253
|
+
},
|
|
3254
|
+
children: t.map((r, s) => f.jsxDEV(Ur, {
|
|
3255
|
+
label: r,
|
|
3256
|
+
size: "small",
|
|
3257
|
+
variant: "outlined"
|
|
3258
|
+
}, s, false, {
|
|
3259
|
+
fileName: "/workspace/react-wrapper/src/cells/LabelsCell.tsx",
|
|
3260
|
+
lineNumber: 17,
|
|
3261
|
+
columnNumber: 9
|
|
3262
|
+
}, this))
|
|
3263
|
+
}, void 0, false, {
|
|
3264
|
+
fileName: "/workspace/react-wrapper/src/cells/LabelsCell.tsx",
|
|
3265
|
+
lineNumber: 15,
|
|
3266
|
+
columnNumber: 5
|
|
3267
|
+
}, this);
|
|
3268
|
+
}), jl = ue.memo(function({ value: t, alt: r = "" }) {
|
|
3269
|
+
return f.jsxDEV(ua, {
|
|
3270
|
+
src: t ?? void 0,
|
|
3271
|
+
alt: r,
|
|
3272
|
+
sx: {
|
|
3273
|
+
width: 40,
|
|
3274
|
+
height: 40
|
|
3275
|
+
}
|
|
3276
|
+
}, void 0, false, {
|
|
3277
|
+
fileName: "/workspace/react-wrapper/src/cells/ImageCell.tsx",
|
|
3278
|
+
lineNumber: 13,
|
|
3279
|
+
columnNumber: 10
|
|
3280
|
+
}, this);
|
|
3281
|
+
});
|
|
3282
|
+
function Nt(e, t) {
|
|
3283
|
+
const r = Number(e);
|
|
3284
|
+
return isNaN(r) ? "" : r.toLocaleString("es-PE", {
|
|
3285
|
+
minimumFractionDigits: t,
|
|
3286
|
+
maximumFractionDigits: t
|
|
3287
|
+
});
|
|
3288
|
+
}
|
|
3289
|
+
function Al(e, t) {
|
|
3290
|
+
const r = e[t.field];
|
|
3291
|
+
return t.valueGetter ? t.valueGetter(e) : r;
|
|
3292
|
+
}
|
|
3293
|
+
function Fl(e, t) {
|
|
3294
|
+
if (t.valueFormatter) return t.valueFormatter(e);
|
|
3295
|
+
if (e == null) return "";
|
|
3296
|
+
switch (t.type) {
|
|
3297
|
+
case E.NUMBER:
|
|
3298
|
+
return Nt(e, 0);
|
|
3299
|
+
case E.PRICE:
|
|
3300
|
+
return Nt(e, 4);
|
|
3301
|
+
case E.TOTAL:
|
|
3302
|
+
return Nt(e, 2);
|
|
3303
|
+
case E.INT:
|
|
3304
|
+
return Nt(e, 0);
|
|
3305
|
+
case E.DATE:
|
|
3306
|
+
return e ? h(e).format("DD/MM/YYYY") : "";
|
|
3307
|
+
case E.DATE_TIME:
|
|
3308
|
+
return e ? h(e).format("DD/MM/YYYY HH:mm:ss") : "";
|
|
3309
|
+
case E.DISCOUNT:
|
|
3310
|
+
case E.PERCENT:
|
|
3311
|
+
case E.TAX:
|
|
3312
|
+
case E.MARGIN:
|
|
3313
|
+
return String(e);
|
|
3314
|
+
default:
|
|
3315
|
+
return String(e);
|
|
3316
|
+
}
|
|
3317
|
+
}
|
|
3318
|
+
function Gl(e) {
|
|
3319
|
+
return [
|
|
3320
|
+
E.NUMBER,
|
|
3321
|
+
E.PRICE,
|
|
3322
|
+
E.TOTAL,
|
|
3323
|
+
E.INT
|
|
3324
|
+
].includes(e);
|
|
3325
|
+
}
|
|
3326
|
+
const Ll = ue.memo(function({ row: t, column: r, isSelected: s, isFocused: a, onClick: n, onMouseEnter: i, onDoubleClick: o }) {
|
|
3327
|
+
const l = Al(t, r);
|
|
3328
|
+
if (r.type === E.DISCOUNT || r.type === E.PERCENT || r.type === E.TAX || r.type === E.MARGIN) return f.jsxDEV(He, {
|
|
3329
|
+
isSelected: s,
|
|
3330
|
+
isFocused: a,
|
|
3331
|
+
onClick: n,
|
|
3332
|
+
onMouseEnter: i,
|
|
3333
|
+
onDoubleClick: o,
|
|
3334
|
+
align: "left",
|
|
3335
|
+
children: r.renderCell ? r.renderCell({
|
|
3336
|
+
row: t,
|
|
3337
|
+
field: r.field,
|
|
3338
|
+
value: l,
|
|
3339
|
+
colDef: r
|
|
3340
|
+
}) : f.jsxDEV(Il, {
|
|
3341
|
+
value: l
|
|
3342
|
+
}, void 0, false, {
|
|
3343
|
+
fileName: "/workspace/react-wrapper/src/cells/ViewCell.tsx",
|
|
3344
|
+
lineNumber: 105,
|
|
3345
|
+
columnNumber: 15
|
|
3346
|
+
}, this)
|
|
3347
|
+
}, void 0, false, {
|
|
3348
|
+
fileName: "/workspace/react-wrapper/src/cells/ViewCell.tsx",
|
|
3349
|
+
lineNumber: 95,
|
|
3350
|
+
columnNumber: 9
|
|
3351
|
+
}, this);
|
|
3352
|
+
if (r.type === E.STATUS) return f.jsxDEV(He, {
|
|
3353
|
+
isSelected: s,
|
|
3354
|
+
isFocused: a,
|
|
3355
|
+
onClick: n,
|
|
3356
|
+
onMouseEnter: i,
|
|
3357
|
+
onDoubleClick: o,
|
|
3358
|
+
align: "left",
|
|
3359
|
+
children: r.renderCell ? r.renderCell({
|
|
3360
|
+
row: t,
|
|
3361
|
+
field: r.field,
|
|
3362
|
+
value: l,
|
|
3363
|
+
colDef: r
|
|
3364
|
+
}) : f.jsxDEV(Vl, {
|
|
3365
|
+
value: l,
|
|
3366
|
+
column: r
|
|
3367
|
+
}, void 0, false, {
|
|
3368
|
+
fileName: "/workspace/react-wrapper/src/cells/ViewCell.tsx",
|
|
3369
|
+
lineNumber: 122,
|
|
3370
|
+
columnNumber: 15
|
|
3371
|
+
}, this)
|
|
3372
|
+
}, void 0, false, {
|
|
3373
|
+
fileName: "/workspace/react-wrapper/src/cells/ViewCell.tsx",
|
|
3374
|
+
lineNumber: 112,
|
|
3375
|
+
columnNumber: 9
|
|
3376
|
+
}, this);
|
|
3377
|
+
if (r.type === E.LABELS) return f.jsxDEV(He, {
|
|
3378
|
+
isSelected: s,
|
|
3379
|
+
isFocused: a,
|
|
3380
|
+
onClick: n,
|
|
3381
|
+
onMouseEnter: i,
|
|
3382
|
+
onDoubleClick: o,
|
|
3383
|
+
align: "left",
|
|
3384
|
+
children: r.renderCell ? r.renderCell({
|
|
3385
|
+
row: t,
|
|
3386
|
+
field: r.field,
|
|
3387
|
+
value: l,
|
|
3388
|
+
colDef: r
|
|
3389
|
+
}) : f.jsxDEV(Wl, {
|
|
3390
|
+
value: l
|
|
3391
|
+
}, void 0, false, {
|
|
3392
|
+
fileName: "/workspace/react-wrapper/src/cells/ViewCell.tsx",
|
|
3393
|
+
lineNumber: 139,
|
|
3394
|
+
columnNumber: 15
|
|
3395
|
+
}, this)
|
|
3396
|
+
}, void 0, false, {
|
|
3397
|
+
fileName: "/workspace/react-wrapper/src/cells/ViewCell.tsx",
|
|
3398
|
+
lineNumber: 129,
|
|
3399
|
+
columnNumber: 9
|
|
3400
|
+
}, this);
|
|
3401
|
+
if (r.type === E.IMAGE) return f.jsxDEV(He, {
|
|
3402
|
+
isSelected: s,
|
|
3403
|
+
isFocused: a,
|
|
3404
|
+
onClick: n,
|
|
3405
|
+
onMouseEnter: i,
|
|
3406
|
+
onDoubleClick: o,
|
|
3407
|
+
align: "left",
|
|
3408
|
+
children: r.renderCell ? r.renderCell({
|
|
3409
|
+
row: t,
|
|
3410
|
+
field: r.field,
|
|
3411
|
+
value: l,
|
|
3412
|
+
colDef: r
|
|
3413
|
+
}) : f.jsxDEV(jl, {
|
|
3414
|
+
value: l
|
|
3415
|
+
}, void 0, false, {
|
|
3416
|
+
fileName: "/workspace/react-wrapper/src/cells/ViewCell.tsx",
|
|
3417
|
+
lineNumber: 156,
|
|
3418
|
+
columnNumber: 15
|
|
3419
|
+
}, this)
|
|
3420
|
+
}, void 0, false, {
|
|
3421
|
+
fileName: "/workspace/react-wrapper/src/cells/ViewCell.tsx",
|
|
3422
|
+
lineNumber: 146,
|
|
3423
|
+
columnNumber: 9
|
|
3424
|
+
}, this);
|
|
3425
|
+
if (r.type === E.ACTION || r.type === E.MENU_ACTION) return f.jsxDEV(He, {
|
|
3426
|
+
isSelected: s,
|
|
3427
|
+
isFocused: a,
|
|
3428
|
+
onClick: n,
|
|
3429
|
+
onMouseEnter: i,
|
|
3430
|
+
onDoubleClick: o,
|
|
3431
|
+
align: "left",
|
|
3432
|
+
children: r.renderCell ? r.renderCell({
|
|
3433
|
+
row: t,
|
|
3434
|
+
field: r.field,
|
|
3435
|
+
value: l,
|
|
3436
|
+
colDef: r
|
|
3437
|
+
}) : null
|
|
3438
|
+
}, void 0, false, {
|
|
3439
|
+
fileName: "/workspace/react-wrapper/src/cells/ViewCell.tsx",
|
|
3440
|
+
lineNumber: 163,
|
|
3441
|
+
columnNumber: 9
|
|
3442
|
+
}, this);
|
|
3443
|
+
const u = Fl(l, r), p = Gl(r.type) ? "right" : "left";
|
|
3444
|
+
return f.jsxDEV(He, {
|
|
3445
|
+
isSelected: s,
|
|
3446
|
+
isFocused: a,
|
|
3447
|
+
onClick: n,
|
|
3448
|
+
onMouseEnter: i,
|
|
3449
|
+
onDoubleClick: o,
|
|
3450
|
+
align: p,
|
|
3451
|
+
children: r.renderCell ? r.renderCell({
|
|
3452
|
+
row: t,
|
|
3453
|
+
field: r.field,
|
|
3454
|
+
value: l,
|
|
3455
|
+
colDef: r
|
|
3456
|
+
}) : f.jsxDEV("span", {
|
|
3457
|
+
style: {
|
|
3458
|
+
overflow: "hidden",
|
|
3459
|
+
textOverflow: "ellipsis",
|
|
3460
|
+
whiteSpace: "nowrap"
|
|
3461
|
+
},
|
|
3462
|
+
children: u
|
|
3463
|
+
}, void 0, false, {
|
|
3464
|
+
fileName: "/workspace/react-wrapper/src/cells/ViewCell.tsx",
|
|
3465
|
+
lineNumber: 191,
|
|
3466
|
+
columnNumber: 13
|
|
3467
|
+
}, this)
|
|
3468
|
+
}, void 0, false, {
|
|
3469
|
+
fileName: "/workspace/react-wrapper/src/cells/ViewCell.tsx",
|
|
3470
|
+
lineNumber: 181,
|
|
3471
|
+
columnNumber: 7
|
|
3472
|
+
}, this);
|
|
3473
|
+
}, (e, t) => e.row === t.row && e.isSelected === t.isSelected && e.isFocused === t.isFocused && e.column === t.column);
|
|
3474
|
+
function He({ isSelected: e, isFocused: t, align: r, onClick: s, onMouseEnter: a, onDoubleClick: n, children: i }) {
|
|
3475
|
+
return f.jsxDEV("div", {
|
|
3476
|
+
onClick: s,
|
|
3477
|
+
onMouseEnter: a,
|
|
3478
|
+
onDoubleClick: n,
|
|
3479
|
+
style: {
|
|
3480
|
+
display: "flex",
|
|
3481
|
+
alignItems: "center",
|
|
3482
|
+
justifyContent: r === "right" ? "flex-end" : "flex-start",
|
|
3483
|
+
width: "100%",
|
|
3484
|
+
height: "100%",
|
|
3485
|
+
padding: "0 8px",
|
|
3486
|
+
boxSizing: "border-box",
|
|
3487
|
+
overflow: "hidden",
|
|
3488
|
+
cursor: "default",
|
|
3489
|
+
userSelect: "none",
|
|
3490
|
+
backgroundColor: e ? "var(--gm-grid-selection-bg, rgba(25, 118, 210, 0.12))" : "transparent",
|
|
3491
|
+
outline: t ? "2px solid var(--gm-grid-focus-border, #1976d2)" : "none",
|
|
3492
|
+
outlineOffset: "-2px"
|
|
3493
|
+
},
|
|
3494
|
+
children: i
|
|
3495
|
+
}, void 0, false, {
|
|
3496
|
+
fileName: "/workspace/react-wrapper/src/cells/ViewCell.tsx",
|
|
3497
|
+
lineNumber: 223,
|
|
3498
|
+
columnNumber: 5
|
|
3499
|
+
}, this);
|
|
3500
|
+
}
|
|
3501
|
+
const Ul = ue.memo(function({ column: t, editValue: r, onEditValueChange: s, onStopEditing: a }) {
|
|
3502
|
+
const n = B(null), i = (l) => {
|
|
3503
|
+
l.key === "Enter" ? (l.preventDefault(), a(true)) : l.key === "Escape" ? (l.preventDefault(), a(false)) : l.key === "Tab" && (l.preventDefault(), a(true));
|
|
3504
|
+
}, o = t.type === E.NUMBER || t.type === E.PRICE || t.type === E.TOTAL || t.type === E.INT;
|
|
3505
|
+
return f.jsxDEV("input", {
|
|
3506
|
+
ref: n,
|
|
3507
|
+
autoFocus: true,
|
|
3508
|
+
type: o ? "number" : "text",
|
|
3509
|
+
value: r,
|
|
3510
|
+
onChange: (l) => s(l.target.value),
|
|
3511
|
+
onKeyDown: i,
|
|
3512
|
+
onBlur: () => void a(true),
|
|
3513
|
+
style: {
|
|
3514
|
+
width: "100%",
|
|
3515
|
+
height: "100%",
|
|
3516
|
+
border: "none",
|
|
3517
|
+
outline: "2px solid var(--gm-grid-focus-border, #1976d2)",
|
|
3518
|
+
padding: "0 4px",
|
|
3519
|
+
boxSizing: "border-box",
|
|
3520
|
+
fontSize: "inherit",
|
|
3521
|
+
fontFamily: "inherit",
|
|
3522
|
+
background: "var(--gm-grid-edit-bg, #fff)"
|
|
3523
|
+
}
|
|
3524
|
+
}, void 0, false, {
|
|
3525
|
+
fileName: "/workspace/react-wrapper/src/cells/EditCell.tsx",
|
|
3526
|
+
lineNumber: 46,
|
|
3527
|
+
columnNumber: 5
|
|
3528
|
+
}, this);
|
|
3529
|
+
}), Hs = ue.memo(function({ onExport: t, onRefresh: r, onToggleDensity: s, loading: a = false }) {
|
|
3530
|
+
return f.jsxDEV(f.Fragment, {
|
|
3531
|
+
children: [
|
|
3532
|
+
f.jsxDEV(Bt, {
|
|
3533
|
+
title: "Exportar a Excel",
|
|
3534
|
+
children: f.jsxDEV("span", {
|
|
3535
|
+
children: f.jsxDEV(St, {
|
|
3536
|
+
onClick: t,
|
|
3537
|
+
disabled: a,
|
|
3538
|
+
size: "small",
|
|
3539
|
+
children: f.jsxDEV(ca, {
|
|
3540
|
+
fontSize: "small"
|
|
3541
|
+
}, void 0, false, {
|
|
3542
|
+
fileName: "/workspace/react-wrapper/src/toolbar/ToolbarButtons.tsx",
|
|
3543
|
+
lineNumber: 31,
|
|
3544
|
+
columnNumber: 13
|
|
3545
|
+
}, this)
|
|
3546
|
+
}, void 0, false, {
|
|
3547
|
+
fileName: "/workspace/react-wrapper/src/toolbar/ToolbarButtons.tsx",
|
|
3548
|
+
lineNumber: 30,
|
|
3549
|
+
columnNumber: 11
|
|
3550
|
+
}, this)
|
|
3551
|
+
}, void 0, false, {
|
|
3552
|
+
fileName: "/workspace/react-wrapper/src/toolbar/ToolbarButtons.tsx",
|
|
3553
|
+
lineNumber: 29,
|
|
3554
|
+
columnNumber: 9
|
|
3555
|
+
}, this)
|
|
3556
|
+
}, void 0, false, {
|
|
3557
|
+
fileName: "/workspace/react-wrapper/src/toolbar/ToolbarButtons.tsx",
|
|
3558
|
+
lineNumber: 28,
|
|
3559
|
+
columnNumber: 7
|
|
3560
|
+
}, this),
|
|
3561
|
+
f.jsxDEV(Bt, {
|
|
3562
|
+
title: "Actualizar",
|
|
3563
|
+
children: f.jsxDEV("span", {
|
|
3564
|
+
children: f.jsxDEV(St, {
|
|
3565
|
+
onClick: r,
|
|
3566
|
+
disabled: a,
|
|
3567
|
+
size: "small",
|
|
3568
|
+
children: f.jsxDEV(da, {
|
|
3569
|
+
fontSize: "small"
|
|
3570
|
+
}, void 0, false, {
|
|
3571
|
+
fileName: "/workspace/react-wrapper/src/toolbar/ToolbarButtons.tsx",
|
|
3572
|
+
lineNumber: 38,
|
|
3573
|
+
columnNumber: 13
|
|
3574
|
+
}, this)
|
|
3575
|
+
}, void 0, false, {
|
|
3576
|
+
fileName: "/workspace/react-wrapper/src/toolbar/ToolbarButtons.tsx",
|
|
3577
|
+
lineNumber: 37,
|
|
3578
|
+
columnNumber: 11
|
|
3579
|
+
}, this)
|
|
3580
|
+
}, void 0, false, {
|
|
3581
|
+
fileName: "/workspace/react-wrapper/src/toolbar/ToolbarButtons.tsx",
|
|
3582
|
+
lineNumber: 36,
|
|
3583
|
+
columnNumber: 9
|
|
3584
|
+
}, this)
|
|
3585
|
+
}, void 0, false, {
|
|
3586
|
+
fileName: "/workspace/react-wrapper/src/toolbar/ToolbarButtons.tsx",
|
|
3587
|
+
lineNumber: 35,
|
|
3588
|
+
columnNumber: 7
|
|
3589
|
+
}, this),
|
|
3590
|
+
f.jsxDEV(Bt, {
|
|
3591
|
+
title: "Densidad",
|
|
3592
|
+
children: f.jsxDEV(St, {
|
|
3593
|
+
onClick: s,
|
|
3594
|
+
size: "small",
|
|
3595
|
+
children: f.jsxDEV(fa, {
|
|
3596
|
+
fontSize: "small"
|
|
3597
|
+
}, void 0, false, {
|
|
3598
|
+
fileName: "/workspace/react-wrapper/src/toolbar/ToolbarButtons.tsx",
|
|
3599
|
+
lineNumber: 44,
|
|
3600
|
+
columnNumber: 11
|
|
3601
|
+
}, this)
|
|
3602
|
+
}, void 0, false, {
|
|
3603
|
+
fileName: "/workspace/react-wrapper/src/toolbar/ToolbarButtons.tsx",
|
|
3604
|
+
lineNumber: 43,
|
|
3605
|
+
columnNumber: 9
|
|
3606
|
+
}, this)
|
|
3607
|
+
}, void 0, false, {
|
|
3608
|
+
fileName: "/workspace/react-wrapper/src/toolbar/ToolbarButtons.tsx",
|
|
3609
|
+
lineNumber: 42,
|
|
3610
|
+
columnNumber: 7
|
|
3611
|
+
}, this)
|
|
3612
|
+
]
|
|
3613
|
+
}, void 0, true, {
|
|
3614
|
+
fileName: "/workspace/react-wrapper/src/toolbar/ToolbarButtons.tsx",
|
|
3615
|
+
lineNumber: 27,
|
|
3616
|
+
columnNumber: 5
|
|
3617
|
+
}, this);
|
|
3618
|
+
}), Hl = ue.memo(function({ title: t, loading: r, quickFilter: s, quickFilterPlaceholder: a = "Buscar\u2026", onQuickFilterChange: n, onExport: i, onRefresh: o, density: l, onToggleDensity: u, subtotals: p, subtotalFields: w }) {
|
|
3619
|
+
const _ = B(null), k = W((b) => {
|
|
3620
|
+
const T = b.target.value;
|
|
3621
|
+
_.current && clearTimeout(_.current), _.current = setTimeout(() => n(T), 200);
|
|
3622
|
+
}, [
|
|
3623
|
+
n
|
|
3624
|
+
]);
|
|
3625
|
+
return f.jsxDEV(F, {
|
|
3626
|
+
children: [
|
|
3627
|
+
f.jsxDEV(F, {
|
|
3628
|
+
sx: {
|
|
3629
|
+
display: "flex",
|
|
3630
|
+
alignItems: "center",
|
|
3631
|
+
gap: 1,
|
|
3632
|
+
px: 1,
|
|
3633
|
+
py: 0.5,
|
|
3634
|
+
borderBottom: "1px solid var(--gm-grid-border-color, rgba(0,0,0,0.12))"
|
|
3635
|
+
},
|
|
3636
|
+
children: [
|
|
3637
|
+
f.jsxDEV(it, {
|
|
3638
|
+
variant: "subtitle1",
|
|
3639
|
+
sx: {
|
|
3640
|
+
fontWeight: 600,
|
|
3641
|
+
flexGrow: 1
|
|
3642
|
+
},
|
|
3643
|
+
children: t
|
|
3644
|
+
}, void 0, false, {
|
|
3645
|
+
fileName: "/workspace/react-wrapper/src/toolbar/GridToolbar.tsx",
|
|
3646
|
+
lineNumber: 65,
|
|
3647
|
+
columnNumber: 9
|
|
3648
|
+
}, this),
|
|
3649
|
+
r && f.jsxDEV(Br, {
|
|
3650
|
+
size: 16
|
|
3651
|
+
}, void 0, false, {
|
|
3652
|
+
fileName: "/workspace/react-wrapper/src/toolbar/GridToolbar.tsx",
|
|
3653
|
+
lineNumber: 68,
|
|
3654
|
+
columnNumber: 21
|
|
3655
|
+
}, this),
|
|
3656
|
+
s && f.jsxDEV(zr, {
|
|
3657
|
+
size: "small",
|
|
3658
|
+
placeholder: a,
|
|
3659
|
+
onChange: k,
|
|
3660
|
+
slotProps: {
|
|
3661
|
+
input: {
|
|
3662
|
+
startAdornment: f.jsxDEV(Hr, {
|
|
3663
|
+
position: "start",
|
|
3664
|
+
children: f.jsxDEV($r, {
|
|
3665
|
+
fontSize: "small"
|
|
3666
|
+
}, void 0, false, {
|
|
3667
|
+
fileName: "/workspace/react-wrapper/src/toolbar/GridToolbar.tsx",
|
|
3668
|
+
lineNumber: 78,
|
|
3669
|
+
columnNumber: 21
|
|
3670
|
+
}, this)
|
|
3671
|
+
}, void 0, false, {
|
|
3672
|
+
fileName: "/workspace/react-wrapper/src/toolbar/GridToolbar.tsx",
|
|
3673
|
+
lineNumber: 77,
|
|
3674
|
+
columnNumber: 19
|
|
3675
|
+
}, this)
|
|
3676
|
+
}
|
|
3677
|
+
},
|
|
3678
|
+
sx: {
|
|
3679
|
+
maxWidth: 280
|
|
3680
|
+
}
|
|
3681
|
+
}, void 0, false, {
|
|
3682
|
+
fileName: "/workspace/react-wrapper/src/toolbar/GridToolbar.tsx",
|
|
3683
|
+
lineNumber: 70,
|
|
3684
|
+
columnNumber: 11
|
|
3685
|
+
}, this),
|
|
3686
|
+
f.jsxDEV(Hs, {
|
|
3687
|
+
onExport: i,
|
|
3688
|
+
onRefresh: o,
|
|
3689
|
+
onToggleDensity: u,
|
|
3690
|
+
density: l,
|
|
3691
|
+
loading: r
|
|
3692
|
+
}, void 0, false, {
|
|
3693
|
+
fileName: "/workspace/react-wrapper/src/toolbar/GridToolbar.tsx",
|
|
3694
|
+
lineNumber: 86,
|
|
3695
|
+
columnNumber: 9
|
|
3696
|
+
}, this)
|
|
3697
|
+
]
|
|
3698
|
+
}, void 0, true, {
|
|
3699
|
+
fileName: "/workspace/react-wrapper/src/toolbar/GridToolbar.tsx",
|
|
3700
|
+
lineNumber: 55,
|
|
3701
|
+
columnNumber: 7
|
|
3702
|
+
}, this),
|
|
3703
|
+
p && w && w.length > 0 && f.jsxDEV(F, {
|
|
3704
|
+
sx: {
|
|
3705
|
+
display: "flex",
|
|
3706
|
+
gap: 3,
|
|
3707
|
+
px: 2,
|
|
3708
|
+
py: 0.25,
|
|
3709
|
+
bgcolor: "action.hover",
|
|
3710
|
+
borderBottom: "1px solid var(--gm-grid-border-color, rgba(0,0,0,0.12))"
|
|
3711
|
+
},
|
|
3712
|
+
children: w.map((b) => p[b] !== void 0 ? f.jsxDEV(it, {
|
|
3713
|
+
variant: "caption",
|
|
3714
|
+
children: [
|
|
3715
|
+
f.jsxDEV("strong", {
|
|
3716
|
+
children: [
|
|
3717
|
+
b,
|
|
3718
|
+
":"
|
|
3719
|
+
]
|
|
3720
|
+
}, void 0, true, {
|
|
3721
|
+
fileName: "/workspace/react-wrapper/src/toolbar/GridToolbar.tsx",
|
|
3722
|
+
lineNumber: 109,
|
|
3723
|
+
columnNumber: 17
|
|
3724
|
+
}, this),
|
|
3725
|
+
" ",
|
|
3726
|
+
p[b].toLocaleString("es-PE", {
|
|
3727
|
+
minimumFractionDigits: 2
|
|
3728
|
+
})
|
|
3729
|
+
]
|
|
3730
|
+
}, b, true, {
|
|
3731
|
+
fileName: "/workspace/react-wrapper/src/toolbar/GridToolbar.tsx",
|
|
3732
|
+
lineNumber: 108,
|
|
3733
|
+
columnNumber: 15
|
|
3734
|
+
}, this) : null)
|
|
3735
|
+
}, void 0, false, {
|
|
3736
|
+
fileName: "/workspace/react-wrapper/src/toolbar/GridToolbar.tsx",
|
|
3737
|
+
lineNumber: 96,
|
|
3738
|
+
columnNumber: 9
|
|
3739
|
+
}, this)
|
|
3740
|
+
]
|
|
3741
|
+
}, void 0, true, {
|
|
3742
|
+
fileName: "/workspace/react-wrapper/src/toolbar/GridToolbar.tsx",
|
|
3743
|
+
lineNumber: 53,
|
|
3744
|
+
columnNumber: 5
|
|
3745
|
+
}, this);
|
|
3746
|
+
}), zl = ue.memo(function({ title: t, loading: r, quickFilter: s, quickFilterPlaceholder: a = "Buscar\u2026", onQuickFilterChange: n, onExport: i, onRefresh: o, density: l, onToggleDensity: u }) {
|
|
3747
|
+
const [p, w] = Y(false), _ = B(null), k = W((b) => {
|
|
3748
|
+
const T = b.target.value;
|
|
3749
|
+
_.current && clearTimeout(_.current), _.current = setTimeout(() => n(T), 200);
|
|
3750
|
+
}, [
|
|
3751
|
+
n
|
|
3752
|
+
]);
|
|
3753
|
+
return f.jsxDEV(F, {
|
|
3754
|
+
sx: {
|
|
3755
|
+
borderBottom: "1px solid var(--gm-grid-border-color, rgba(0,0,0,0.12))"
|
|
3756
|
+
},
|
|
3757
|
+
children: [
|
|
3758
|
+
f.jsxDEV(F, {
|
|
3759
|
+
sx: {
|
|
3760
|
+
display: "flex",
|
|
3761
|
+
alignItems: "center",
|
|
3762
|
+
px: 1,
|
|
3763
|
+
py: 0.5
|
|
3764
|
+
},
|
|
3765
|
+
children: [
|
|
3766
|
+
f.jsxDEV(it, {
|
|
3767
|
+
variant: "subtitle2",
|
|
3768
|
+
sx: {
|
|
3769
|
+
fontWeight: 600,
|
|
3770
|
+
flexGrow: 1
|
|
3771
|
+
},
|
|
3772
|
+
children: t
|
|
3773
|
+
}, void 0, false, {
|
|
3774
|
+
fileName: "/workspace/react-wrapper/src/toolbar/MobileToolbar.tsx",
|
|
3775
|
+
lineNumber: 60,
|
|
3776
|
+
columnNumber: 9
|
|
3777
|
+
}, this),
|
|
3778
|
+
r && f.jsxDEV(Br, {
|
|
3779
|
+
size: 14,
|
|
3780
|
+
sx: {
|
|
3781
|
+
mr: 1
|
|
3782
|
+
}
|
|
3783
|
+
}, void 0, false, {
|
|
3784
|
+
fileName: "/workspace/react-wrapper/src/toolbar/MobileToolbar.tsx",
|
|
3785
|
+
lineNumber: 63,
|
|
3786
|
+
columnNumber: 21
|
|
3787
|
+
}, this),
|
|
3788
|
+
f.jsxDEV(St, {
|
|
3789
|
+
size: "small",
|
|
3790
|
+
onClick: () => w((b) => !b),
|
|
3791
|
+
children: f.jsxDEV(ma, {
|
|
3792
|
+
fontSize: "small",
|
|
3793
|
+
sx: {
|
|
3794
|
+
transform: p ? "rotate(180deg)" : "rotate(0deg)",
|
|
3795
|
+
transition: "0.2s"
|
|
3796
|
+
}
|
|
3797
|
+
}, void 0, false, {
|
|
3798
|
+
fileName: "/workspace/react-wrapper/src/toolbar/MobileToolbar.tsx",
|
|
3799
|
+
lineNumber: 65,
|
|
3800
|
+
columnNumber: 11
|
|
3801
|
+
}, this)
|
|
3802
|
+
}, void 0, false, {
|
|
3803
|
+
fileName: "/workspace/react-wrapper/src/toolbar/MobileToolbar.tsx",
|
|
3804
|
+
lineNumber: 64,
|
|
3805
|
+
columnNumber: 9
|
|
3806
|
+
}, this)
|
|
3807
|
+
]
|
|
3808
|
+
}, void 0, true, {
|
|
3809
|
+
fileName: "/workspace/react-wrapper/src/toolbar/MobileToolbar.tsx",
|
|
3810
|
+
lineNumber: 59,
|
|
3811
|
+
columnNumber: 7
|
|
3812
|
+
}, this),
|
|
3813
|
+
f.jsxDEV(ha, {
|
|
3814
|
+
in: p,
|
|
3815
|
+
children: f.jsxDEV(F, {
|
|
3816
|
+
sx: {
|
|
3817
|
+
display: "flex",
|
|
3818
|
+
flexDirection: "column",
|
|
3819
|
+
gap: 1,
|
|
3820
|
+
px: 1,
|
|
3821
|
+
pb: 1
|
|
3822
|
+
},
|
|
3823
|
+
children: [
|
|
3824
|
+
s && f.jsxDEV(zr, {
|
|
3825
|
+
size: "small",
|
|
3826
|
+
fullWidth: true,
|
|
3827
|
+
placeholder: a,
|
|
3828
|
+
onChange: k,
|
|
3829
|
+
slotProps: {
|
|
3830
|
+
input: {
|
|
3831
|
+
startAdornment: f.jsxDEV(Hr, {
|
|
3832
|
+
position: "start",
|
|
3833
|
+
children: f.jsxDEV($r, {
|
|
3834
|
+
fontSize: "small"
|
|
3835
|
+
}, void 0, false, {
|
|
3836
|
+
fileName: "/workspace/react-wrapper/src/toolbar/MobileToolbar.tsx",
|
|
3837
|
+
lineNumber: 85,
|
|
3838
|
+
columnNumber: 23
|
|
3839
|
+
}, this)
|
|
3840
|
+
}, void 0, false, {
|
|
3841
|
+
fileName: "/workspace/react-wrapper/src/toolbar/MobileToolbar.tsx",
|
|
3842
|
+
lineNumber: 84,
|
|
3843
|
+
columnNumber: 21
|
|
3844
|
+
}, this)
|
|
3845
|
+
}
|
|
3846
|
+
}
|
|
3847
|
+
}, void 0, false, {
|
|
3848
|
+
fileName: "/workspace/react-wrapper/src/toolbar/MobileToolbar.tsx",
|
|
3849
|
+
lineNumber: 76,
|
|
3850
|
+
columnNumber: 13
|
|
3851
|
+
}, this),
|
|
3852
|
+
f.jsxDEV(F, {
|
|
3853
|
+
sx: {
|
|
3854
|
+
display: "flex",
|
|
3855
|
+
justifyContent: "flex-end"
|
|
3856
|
+
},
|
|
3857
|
+
children: f.jsxDEV(Hs, {
|
|
3858
|
+
onExport: i,
|
|
3859
|
+
onRefresh: o,
|
|
3860
|
+
onToggleDensity: u,
|
|
3861
|
+
density: l,
|
|
3862
|
+
loading: r
|
|
3863
|
+
}, void 0, false, {
|
|
3864
|
+
fileName: "/workspace/react-wrapper/src/toolbar/MobileToolbar.tsx",
|
|
3865
|
+
lineNumber: 93,
|
|
3866
|
+
columnNumber: 13
|
|
3867
|
+
}, this)
|
|
3868
|
+
}, void 0, false, {
|
|
3869
|
+
fileName: "/workspace/react-wrapper/src/toolbar/MobileToolbar.tsx",
|
|
3870
|
+
lineNumber: 92,
|
|
3871
|
+
columnNumber: 11
|
|
3872
|
+
}, this)
|
|
3873
|
+
]
|
|
3874
|
+
}, void 0, true, {
|
|
3875
|
+
fileName: "/workspace/react-wrapper/src/toolbar/MobileToolbar.tsx",
|
|
3876
|
+
lineNumber: 74,
|
|
3877
|
+
columnNumber: 9
|
|
3878
|
+
}, this)
|
|
3879
|
+
}, void 0, false, {
|
|
3880
|
+
fileName: "/workspace/react-wrapper/src/toolbar/MobileToolbar.tsx",
|
|
3881
|
+
lineNumber: 73,
|
|
3882
|
+
columnNumber: 7
|
|
3883
|
+
}, this)
|
|
3884
|
+
]
|
|
3885
|
+
}, void 0, true, {
|
|
3886
|
+
fileName: "/workspace/react-wrapper/src/toolbar/MobileToolbar.tsx",
|
|
3887
|
+
lineNumber: 53,
|
|
3888
|
+
columnNumber: 5
|
|
3889
|
+
}, this);
|
|
3890
|
+
}), $l = {
|
|
3891
|
+
empty: {
|
|
3892
|
+
icon: pa,
|
|
3893
|
+
text: "No hay registros"
|
|
3894
|
+
},
|
|
3895
|
+
filtered: {
|
|
3896
|
+
icon: Zr,
|
|
3897
|
+
text: "Sin resultados para los filtros aplicados"
|
|
3898
|
+
},
|
|
3899
|
+
error: {
|
|
3900
|
+
icon: ya,
|
|
3901
|
+
text: "Error al cargar los datos"
|
|
3902
|
+
}
|
|
3903
|
+
}, Xt = ue.memo(function({ variant: t, message: r, onClear: s, onRetry: a }) {
|
|
3904
|
+
const n = $l[t], i = n.icon;
|
|
3905
|
+
return f.jsxDEV(F, {
|
|
3906
|
+
sx: {
|
|
3907
|
+
display: "flex",
|
|
3908
|
+
flexDirection: "column",
|
|
3909
|
+
alignItems: "center",
|
|
3910
|
+
justifyContent: "center",
|
|
3911
|
+
gap: 2,
|
|
3912
|
+
py: 8,
|
|
3913
|
+
color: "text.secondary"
|
|
3914
|
+
},
|
|
3915
|
+
children: [
|
|
3916
|
+
f.jsxDEV(i, {
|
|
3917
|
+
sx: {
|
|
3918
|
+
fontSize: 48,
|
|
3919
|
+
opacity: 0.4
|
|
3920
|
+
}
|
|
3921
|
+
}, void 0, false, {
|
|
3922
|
+
fileName: "/workspace/react-wrapper/src/components/GMGridEmptyState.tsx",
|
|
3923
|
+
lineNumber: 55,
|
|
3924
|
+
columnNumber: 7
|
|
3925
|
+
}, this),
|
|
3926
|
+
f.jsxDEV(it, {
|
|
3927
|
+
variant: "body2",
|
|
3928
|
+
children: r ?? n.text
|
|
3929
|
+
}, void 0, false, {
|
|
3930
|
+
fileName: "/workspace/react-wrapper/src/components/GMGridEmptyState.tsx",
|
|
3931
|
+
lineNumber: 56,
|
|
3932
|
+
columnNumber: 7
|
|
3933
|
+
}, this),
|
|
3934
|
+
t === "filtered" && s && f.jsxDEV(Rr, {
|
|
3935
|
+
size: "small",
|
|
3936
|
+
startIcon: f.jsxDEV(Zr, {}, void 0, false, {
|
|
3937
|
+
fileName: "/workspace/react-wrapper/src/components/GMGridEmptyState.tsx",
|
|
3938
|
+
lineNumber: 58,
|
|
3939
|
+
columnNumber: 41
|
|
3940
|
+
}, this),
|
|
3941
|
+
onClick: s,
|
|
3942
|
+
children: "Limpiar filtros"
|
|
3943
|
+
}, void 0, false, {
|
|
3944
|
+
fileName: "/workspace/react-wrapper/src/components/GMGridEmptyState.tsx",
|
|
3945
|
+
lineNumber: 58,
|
|
3946
|
+
columnNumber: 9
|
|
3947
|
+
}, this),
|
|
3948
|
+
t === "error" && a && f.jsxDEV(Rr, {
|
|
3949
|
+
size: "small",
|
|
3950
|
+
variant: "outlined",
|
|
3951
|
+
color: "error",
|
|
3952
|
+
onClick: a,
|
|
3953
|
+
children: "Reintentar"
|
|
3954
|
+
}, void 0, false, {
|
|
3955
|
+
fileName: "/workspace/react-wrapper/src/components/GMGridEmptyState.tsx",
|
|
3956
|
+
lineNumber: 63,
|
|
3957
|
+
columnNumber: 9
|
|
3958
|
+
}, this)
|
|
3959
|
+
]
|
|
3960
|
+
}, void 0, true, {
|
|
3961
|
+
fileName: "/workspace/react-wrapper/src/components/GMGridEmptyState.tsx",
|
|
3962
|
+
lineNumber: 44,
|
|
3963
|
+
columnNumber: 5
|
|
3964
|
+
}, this);
|
|
3965
|
+
});
|
|
3966
|
+
function zs({ outerProps: e }) {
|
|
3967
|
+
const { title: t, quickFilter: r = true, quickFilterPlaceholder: s, processRowUpdate: a, rowColorGetter: n, onRowDetail: i, columns: o } = e, l = oa(), u = ia(l.breakpoints.down("sm")), { loading: p, error: w, handleRefresh: _, sortStack: k, setSortStack: b, filterGroup: T, setFilterGroup: C, setQuickFilterText: J, quickFilterText: re, pageRows: ge, totalCount: ve, subtotals: de, engineReady: Z, engineError: U, retryEngine: fe } = Kr(), K = B(null), [se, Qe] = Y("standard"), ae = (o ?? []).filter((N) => !N.hide), et = B(null), { visibleStart: pt, visibleEnd: yt, offsetTop: wt, totalHeight: _t } = Da({
|
|
3968
|
+
rows: ge,
|
|
3969
|
+
containerRef: et,
|
|
3970
|
+
density: se
|
|
3971
|
+
}), Ge = ge.slice(pt, yt + 1), { range: $t, focusedCell: Le, setFocusedCell: c, handleMouseDown: v, handleMouseEnter: V, isCellSelected: L } = Na({
|
|
3972
|
+
visibleRows: Ge,
|
|
3973
|
+
columns: ae
|
|
3974
|
+
}), [he, tt] = Y({}), j = W((N, Re) => {
|
|
3975
|
+
tt((H) => ({
|
|
3976
|
+
...H,
|
|
3977
|
+
[N]: Re
|
|
3978
|
+
}));
|
|
3979
|
+
}, []), { editingCell: me, editValue: rt, startEditing: bt, stopEditing: Tr, setEditValue: $s } = Ta({
|
|
3980
|
+
visibleRows: Ge,
|
|
3981
|
+
columns: ae,
|
|
3982
|
+
engine: null,
|
|
3983
|
+
engineReady: Z,
|
|
3984
|
+
processRowUpdate: a,
|
|
3985
|
+
onCellError: j
|
|
3986
|
+
});
|
|
3987
|
+
Ea({
|
|
3988
|
+
focusedCell: Le,
|
|
3989
|
+
setFocusedCell: c,
|
|
3990
|
+
editingCell: me,
|
|
3991
|
+
startEditing: bt,
|
|
3992
|
+
stopEditing: Tr,
|
|
3993
|
+
totalRows: ve,
|
|
3994
|
+
columns: ae
|
|
3995
|
+
}), Sa({
|
|
3996
|
+
engine: null,
|
|
3997
|
+
engineReady: Z,
|
|
3998
|
+
range: $t,
|
|
3999
|
+
visibleRows: Ge,
|
|
4000
|
+
columns: ae,
|
|
4001
|
+
onPasted: _
|
|
4002
|
+
});
|
|
4003
|
+
const { widths: Er, onResizeStart: Bs } = Ya({
|
|
4004
|
+
columns: ae,
|
|
4005
|
+
gridTitle: t
|
|
4006
|
+
}), { handleExport: Zs } = Ra({
|
|
4007
|
+
engineRef: K,
|
|
4008
|
+
title: t
|
|
4009
|
+
}), qs = W((N, Re) => {
|
|
4010
|
+
const H = k.find((pe) => pe.field === N), X = (H == null ? void 0 : H.dir) === "asc" ? "desc" : "asc";
|
|
4011
|
+
Re.shiftKey ? b(H ? k.map((pe) => pe.field === N ? {
|
|
4012
|
+
...pe,
|
|
4013
|
+
dir: X
|
|
4014
|
+
} : pe) : [
|
|
4015
|
+
...k,
|
|
4016
|
+
{
|
|
4017
|
+
field: N,
|
|
4018
|
+
dir: X
|
|
4019
|
+
}
|
|
4020
|
+
]) : b([
|
|
4021
|
+
{
|
|
4022
|
+
field: N,
|
|
4023
|
+
dir: X
|
|
4024
|
+
}
|
|
4025
|
+
]);
|
|
4026
|
+
}, [
|
|
4027
|
+
k,
|
|
4028
|
+
b
|
|
4029
|
+
]), Js = ae.filter((N) => N.calculateSubTotal).map((N) => N.field), Or = T !== null || re !== "", Ks = !p && ve === 0, Xs = W(() => Qe((N) => N === "compact" ? "standard" : N === "standard" ? "comfortable" : "compact"), []);
|
|
4030
|
+
if (!Z && U && !p) return f.jsxDEV(F, {
|
|
4031
|
+
sx: {
|
|
4032
|
+
border: "1px solid var(--gm-grid-border-color, rgba(0,0,0,0.12))",
|
|
4033
|
+
borderRadius: 1
|
|
4034
|
+
},
|
|
4035
|
+
children: f.jsxDEV(Xt, {
|
|
4036
|
+
variant: "error",
|
|
4037
|
+
message: "No se pudo inicializar el motor de datos",
|
|
4038
|
+
onRetry: fe
|
|
4039
|
+
}, void 0, false, {
|
|
4040
|
+
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4041
|
+
lineNumber: 143,
|
|
4042
|
+
columnNumber: 9
|
|
4043
|
+
}, this)
|
|
4044
|
+
}, void 0, false, {
|
|
4045
|
+
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4046
|
+
lineNumber: 142,
|
|
4047
|
+
columnNumber: 7
|
|
4048
|
+
}, this);
|
|
4049
|
+
const Yr = {
|
|
4050
|
+
title: t,
|
|
4051
|
+
loading: p,
|
|
4052
|
+
quickFilter: r,
|
|
4053
|
+
quickFilterPlaceholder: s,
|
|
4054
|
+
onQuickFilterChange: J,
|
|
4055
|
+
onExport: Zs,
|
|
4056
|
+
onRefresh: _,
|
|
4057
|
+
density: se,
|
|
4058
|
+
onToggleDensity: Xs
|
|
4059
|
+
};
|
|
4060
|
+
return f.jsxDEV(F, {
|
|
4061
|
+
sx: {
|
|
4062
|
+
display: "flex",
|
|
4063
|
+
flexDirection: "column",
|
|
4064
|
+
border: "1px solid var(--gm-grid-border-color, rgba(0,0,0,0.12))",
|
|
4065
|
+
borderRadius: 1,
|
|
4066
|
+
overflow: "hidden",
|
|
4067
|
+
height: "100%"
|
|
4068
|
+
},
|
|
4069
|
+
children: [
|
|
4070
|
+
u ? f.jsxDEV(zl, {
|
|
4071
|
+
...Yr
|
|
4072
|
+
}, void 0, false, {
|
|
4073
|
+
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4074
|
+
lineNumber: 176,
|
|
4075
|
+
columnNumber: 9
|
|
4076
|
+
}, this) : f.jsxDEV(Hl, {
|
|
4077
|
+
...Yr,
|
|
4078
|
+
subtotals: de,
|
|
4079
|
+
subtotalFields: Js
|
|
4080
|
+
}, void 0, false, {
|
|
4081
|
+
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4082
|
+
lineNumber: 178,
|
|
4083
|
+
columnNumber: 9
|
|
4084
|
+
}, this),
|
|
4085
|
+
f.jsxDEV(F, {
|
|
4086
|
+
sx: {
|
|
4087
|
+
display: "flex",
|
|
4088
|
+
borderBottom: "2px solid var(--gm-grid-border-color, rgba(0,0,0,0.18))",
|
|
4089
|
+
bgcolor: "background.paper",
|
|
4090
|
+
position: "sticky",
|
|
4091
|
+
top: 0,
|
|
4092
|
+
zIndex: 2,
|
|
4093
|
+
overflowX: "hidden"
|
|
4094
|
+
},
|
|
4095
|
+
children: ae.map((N) => {
|
|
4096
|
+
const Re = k.find((X) => X.field === N.field), H = Er[N.field] ?? N.width ?? 120;
|
|
4097
|
+
return f.jsxDEV(F, {
|
|
4098
|
+
onClick: (X) => qs(N.field, X),
|
|
4099
|
+
sx: {
|
|
4100
|
+
width: H,
|
|
4101
|
+
minWidth: N.minWidth ?? 60,
|
|
4102
|
+
flexShrink: 0,
|
|
4103
|
+
px: 1,
|
|
4104
|
+
py: 0.5,
|
|
4105
|
+
fontWeight: 700,
|
|
4106
|
+
fontSize: "0.75rem",
|
|
4107
|
+
cursor: "pointer",
|
|
4108
|
+
userSelect: "none",
|
|
4109
|
+
position: "relative",
|
|
4110
|
+
borderRight: "1px solid var(--gm-grid-border-color, rgba(0,0,0,0.08))",
|
|
4111
|
+
display: "flex",
|
|
4112
|
+
alignItems: "center",
|
|
4113
|
+
gap: 0.5
|
|
4114
|
+
},
|
|
4115
|
+
children: [
|
|
4116
|
+
N.headerName ?? N.field,
|
|
4117
|
+
Re && f.jsxDEV("span", {
|
|
4118
|
+
style: {
|
|
4119
|
+
fontSize: 10
|
|
4120
|
+
},
|
|
4121
|
+
children: Re.dir === "asc" ? "\u25B2" : "\u25BC"
|
|
4122
|
+
}, void 0, false, {
|
|
4123
|
+
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4124
|
+
lineNumber: 218,
|
|
4125
|
+
columnNumber: 24
|
|
4126
|
+
}, this),
|
|
4127
|
+
de[N.field] !== void 0 && f.jsxDEV(F, {
|
|
4128
|
+
component: "span",
|
|
4129
|
+
sx: {
|
|
4130
|
+
ml: "auto",
|
|
4131
|
+
fontSize: "0.68rem",
|
|
4132
|
+
color: "text.secondary",
|
|
4133
|
+
fontWeight: 400
|
|
4134
|
+
},
|
|
4135
|
+
children: de[N.field].toLocaleString("es-PE", {
|
|
4136
|
+
minimumFractionDigits: 2,
|
|
4137
|
+
maximumFractionDigits: 2
|
|
4138
|
+
})
|
|
4139
|
+
}, void 0, false, {
|
|
4140
|
+
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4141
|
+
lineNumber: 220,
|
|
4142
|
+
columnNumber: 17
|
|
4143
|
+
}, this),
|
|
4144
|
+
f.jsxDEV(F, {
|
|
4145
|
+
component: "div",
|
|
4146
|
+
onMouseDown: (X) => {
|
|
4147
|
+
X.stopPropagation(), Bs(N.field, X.clientX, H);
|
|
4148
|
+
},
|
|
4149
|
+
sx: {
|
|
4150
|
+
position: "absolute",
|
|
4151
|
+
right: 0,
|
|
4152
|
+
top: 0,
|
|
4153
|
+
bottom: 0,
|
|
4154
|
+
width: 4,
|
|
4155
|
+
cursor: "col-resize",
|
|
4156
|
+
"&:hover": {
|
|
4157
|
+
bgcolor: "primary.main"
|
|
4158
|
+
}
|
|
4159
|
+
}
|
|
4160
|
+
}, void 0, false, {
|
|
4161
|
+
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4162
|
+
lineNumber: 227,
|
|
4163
|
+
columnNumber: 15
|
|
4164
|
+
}, this)
|
|
4165
|
+
]
|
|
4166
|
+
}, N.field, true, {
|
|
4167
|
+
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4168
|
+
lineNumber: 197,
|
|
4169
|
+
columnNumber: 13
|
|
4170
|
+
}, this);
|
|
4171
|
+
})
|
|
4172
|
+
}, void 0, false, {
|
|
4173
|
+
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4174
|
+
lineNumber: 182,
|
|
4175
|
+
columnNumber: 7
|
|
4176
|
+
}, this),
|
|
4177
|
+
f.jsxDEV(F, {
|
|
4178
|
+
ref: et,
|
|
4179
|
+
sx: {
|
|
4180
|
+
flex: 1,
|
|
4181
|
+
overflow: "auto",
|
|
4182
|
+
position: "relative"
|
|
4183
|
+
},
|
|
4184
|
+
children: Ks ? f.jsxDEV(Xt, {
|
|
4185
|
+
variant: Or ? "filtered" : "empty",
|
|
4186
|
+
onClear: Or ? () => {
|
|
4187
|
+
C(null), J("");
|
|
4188
|
+
} : void 0
|
|
4189
|
+
}, void 0, false, {
|
|
4190
|
+
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4191
|
+
lineNumber: 240,
|
|
4192
|
+
columnNumber: 11
|
|
4193
|
+
}, this) : w ? f.jsxDEV(Xt, {
|
|
4194
|
+
variant: "error",
|
|
4195
|
+
message: w,
|
|
4196
|
+
onRetry: _
|
|
4197
|
+
}, void 0, false, {
|
|
4198
|
+
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4199
|
+
lineNumber: 245,
|
|
4200
|
+
columnNumber: 11
|
|
4201
|
+
}, this) : f.jsxDEV("div", {
|
|
4202
|
+
style: {
|
|
4203
|
+
height: _t,
|
|
4204
|
+
position: "relative"
|
|
4205
|
+
},
|
|
4206
|
+
children: f.jsxDEV("div", {
|
|
4207
|
+
style: {
|
|
4208
|
+
position: "absolute",
|
|
4209
|
+
top: wt,
|
|
4210
|
+
left: 0,
|
|
4211
|
+
right: 0
|
|
4212
|
+
},
|
|
4213
|
+
children: Ge.map((N, Re) => {
|
|
4214
|
+
const H = pt + Re, X = n ? n(N) : {}, pe = String(N.id ?? H);
|
|
4215
|
+
return f.jsxDEV("div", {
|
|
4216
|
+
style: {
|
|
4217
|
+
display: "flex",
|
|
4218
|
+
height: se === "compact" ? 36 : se === "comfortable" ? 72 : 52,
|
|
4219
|
+
...X,
|
|
4220
|
+
borderBottom: "1px solid var(--gm-grid-border-color, rgba(0,0,0,0.06))",
|
|
4221
|
+
cursor: i ? "pointer" : "default"
|
|
4222
|
+
},
|
|
4223
|
+
onDoubleClick: i ? () => i(N) : void 0,
|
|
4224
|
+
children: ae.map((xe, Ve) => {
|
|
4225
|
+
const Qs = (me == null ? void 0 : me.rowIndex) === H && (me == null ? void 0 : me.colIndex) === Ve, ea = L(H, Ve), ta = (Le == null ? void 0 : Le.rowIndex) === H && (Le == null ? void 0 : Le.colIndex) === Ve, ra = Er[xe.field] ?? xe.width ?? 120;
|
|
4226
|
+
return f.jsxDEV("div", {
|
|
4227
|
+
style: {
|
|
4228
|
+
width: ra,
|
|
4229
|
+
minWidth: xe.minWidth ?? 60,
|
|
4230
|
+
flexShrink: 0,
|
|
4231
|
+
height: "100%",
|
|
4232
|
+
position: "relative",
|
|
4233
|
+
borderRight: "1px solid var(--gm-grid-border-color, rgba(0,0,0,0.04))"
|
|
4234
|
+
},
|
|
4235
|
+
children: [
|
|
4236
|
+
Qs ? f.jsxDEV(Ul, {
|
|
4237
|
+
rowId: pe,
|
|
4238
|
+
field: xe.field,
|
|
4239
|
+
column: xe,
|
|
4240
|
+
editValue: rt,
|
|
4241
|
+
onEditValueChange: $s,
|
|
4242
|
+
onStopEditing: Tr
|
|
4243
|
+
}, void 0, false, {
|
|
4244
|
+
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4245
|
+
lineNumber: 283,
|
|
4246
|
+
columnNumber: 29
|
|
4247
|
+
}, this) : f.jsxDEV(Ll, {
|
|
4248
|
+
row: N,
|
|
4249
|
+
column: xe,
|
|
4250
|
+
isSelected: ea,
|
|
4251
|
+
isFocused: ta,
|
|
4252
|
+
onClick: () => {
|
|
4253
|
+
v(H, Ve), c({
|
|
4254
|
+
rowIndex: H,
|
|
4255
|
+
colIndex: Ve
|
|
4256
|
+
});
|
|
4257
|
+
},
|
|
4258
|
+
onMouseEnter: () => V(H, Ve),
|
|
4259
|
+
onDoubleClick: () => bt({
|
|
4260
|
+
rowIndex: H,
|
|
4261
|
+
colIndex: Ve
|
|
4262
|
+
})
|
|
4263
|
+
}, void 0, false, {
|
|
4264
|
+
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4265
|
+
lineNumber: 292,
|
|
4266
|
+
columnNumber: 29
|
|
4267
|
+
}, this),
|
|
4268
|
+
he[`${pe}:${xe.field}`] && f.jsxDEV(F, {
|
|
4269
|
+
component: "div",
|
|
4270
|
+
title: he[`${pe}:${xe.field}`],
|
|
4271
|
+
sx: {
|
|
4272
|
+
position: "absolute",
|
|
4273
|
+
top: 2,
|
|
4274
|
+
right: 2,
|
|
4275
|
+
width: 6,
|
|
4276
|
+
height: 6,
|
|
4277
|
+
borderRadius: "50%",
|
|
4278
|
+
bgcolor: "error.main",
|
|
4279
|
+
pointerEvents: "none"
|
|
4280
|
+
}
|
|
4281
|
+
}, void 0, false, {
|
|
4282
|
+
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4283
|
+
lineNumber: 303,
|
|
4284
|
+
columnNumber: 29
|
|
4285
|
+
}, this)
|
|
4286
|
+
]
|
|
4287
|
+
}, xe.field, true, {
|
|
4288
|
+
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4289
|
+
lineNumber: 271,
|
|
4290
|
+
columnNumber: 25
|
|
4291
|
+
}, this);
|
|
4292
|
+
})
|
|
4293
|
+
}, pe, false, {
|
|
4294
|
+
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4295
|
+
lineNumber: 254,
|
|
4296
|
+
columnNumber: 19
|
|
4297
|
+
}, this);
|
|
4298
|
+
})
|
|
4299
|
+
}, void 0, false, {
|
|
4300
|
+
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4301
|
+
lineNumber: 248,
|
|
4302
|
+
columnNumber: 13
|
|
4303
|
+
}, this)
|
|
4304
|
+
}, void 0, false, {
|
|
4305
|
+
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4306
|
+
lineNumber: 247,
|
|
4307
|
+
columnNumber: 11
|
|
4308
|
+
}, this)
|
|
4309
|
+
}, void 0, false, {
|
|
4310
|
+
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4311
|
+
lineNumber: 238,
|
|
4312
|
+
columnNumber: 7
|
|
4313
|
+
}, this)
|
|
4314
|
+
]
|
|
4315
|
+
}, void 0, true, {
|
|
4316
|
+
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4317
|
+
lineNumber: 165,
|
|
4318
|
+
columnNumber: 5
|
|
4319
|
+
}, this);
|
|
4320
|
+
}
|
|
4321
|
+
wu = function(e) {
|
|
4322
|
+
const t = Xr({
|
|
4323
|
+
columns: e.columns,
|
|
4324
|
+
sourceApi: e.sourceApi,
|
|
4325
|
+
apiParameters: e.apiParameters,
|
|
4326
|
+
localData: e.localData,
|
|
4327
|
+
apiContext: e.apiContext
|
|
4328
|
+
});
|
|
4329
|
+
return f.jsxDEV(Jr, {
|
|
4330
|
+
dataset: t,
|
|
4331
|
+
children: f.jsxDEV(zs, {
|
|
4332
|
+
outerProps: e
|
|
4333
|
+
}, void 0, false, {
|
|
4334
|
+
fileName: "/workspace/react-wrapper/src/GMDatagrid.tsx",
|
|
4335
|
+
lineNumber: 24,
|
|
4336
|
+
columnNumber: 7
|
|
4337
|
+
}, this)
|
|
4338
|
+
}, void 0, false, {
|
|
4339
|
+
fileName: "/workspace/react-wrapper/src/GMDatagrid.tsx",
|
|
4340
|
+
lineNumber: 23,
|
|
4341
|
+
columnNumber: 5
|
|
4342
|
+
}, this);
|
|
4343
|
+
};
|
|
4344
|
+
let Bl;
|
|
4345
|
+
Bl = Lr(function(t, r) {
|
|
4346
|
+
const { handleRefresh: s, setApiParameters: a } = Kr();
|
|
4347
|
+
return na(r, () => ({
|
|
4348
|
+
refresh: s,
|
|
4349
|
+
setParams: a
|
|
4350
|
+
})), null;
|
|
4351
|
+
});
|
|
4352
|
+
_u = Lr(function(t, r) {
|
|
4353
|
+
const s = Xr({
|
|
4354
|
+
columns: t.columns,
|
|
4355
|
+
sourceApi: t.sourceApi,
|
|
4356
|
+
apiParameters: t.apiParameters,
|
|
4357
|
+
localData: t.localData,
|
|
4358
|
+
apiContext: t.apiContext
|
|
4359
|
+
});
|
|
4360
|
+
return f.jsxDEV(Jr, {
|
|
4361
|
+
dataset: s,
|
|
4362
|
+
children: [
|
|
4363
|
+
f.jsxDEV(Bl, {
|
|
4364
|
+
ref: r
|
|
4365
|
+
}, void 0, false, {
|
|
4366
|
+
fileName: "/workspace/react-wrapper/src/GMGridContainer.tsx",
|
|
4367
|
+
lineNumber: 53,
|
|
4368
|
+
columnNumber: 9
|
|
4369
|
+
}, this),
|
|
4370
|
+
f.jsxDEV(zs, {
|
|
4371
|
+
outerProps: t
|
|
4372
|
+
}, void 0, false, {
|
|
4373
|
+
fileName: "/workspace/react-wrapper/src/GMGridContainer.tsx",
|
|
4374
|
+
lineNumber: 54,
|
|
4375
|
+
columnNumber: 9
|
|
4376
|
+
}, this)
|
|
4377
|
+
]
|
|
4378
|
+
}, void 0, true, {
|
|
4379
|
+
fileName: "/workspace/react-wrapper/src/GMGridContainer.tsx",
|
|
4380
|
+
lineNumber: 52,
|
|
4381
|
+
columnNumber: 7
|
|
4382
|
+
}, this);
|
|
4383
|
+
});
|
|
4384
|
+
})();
|
|
4385
|
+
export {
|
|
4386
|
+
E as ColumnDataTypesEnum,
|
|
4387
|
+
wu as GMDatagrid,
|
|
4388
|
+
_u as GMGridContainer,
|
|
4389
|
+
__tla,
|
|
4390
|
+
Kr as useGMGrid
|
|
4391
|
+
};
|