elcrm 0.3.7 → 0.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1104 -971
- package/dist/index.umd.js +11 -11
- package/dist/lib/Api/Api.d.ts +2 -0
- package/dist/lib/Api/index.d.ts +0 -0
- package/dist/lib/Badge/Badge.d.ts +3 -0
- package/dist/lib/Badge/index.d.ts +7 -0
- package/dist/lib/Socket/Socket.d.ts +0 -0
- package/dist/lib/index.d.ts +7 -5
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,343 @@
|
|
|
1
1
|
import './index.css';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import j from "react";
|
|
3
|
+
let w = {};
|
|
4
|
+
const v = {}, P = {}, qe = {}, at = {}, H = {};
|
|
5
|
+
function Dt(e, t) {
|
|
6
|
+
if (w = e, localStorage.getItem("ssid")) {
|
|
7
|
+
let s = sessionStorage.getItem("page");
|
|
8
|
+
s ? (s = w.deCode(s), v.id = s.id, v.tab = s.tab, v.page = s.page, v.module = s.module, v.time = s.time, v.payment = { active: !0 }, v.module_admin = s.module_admin) : (v.id = 0, v.tab = "", v.page = "Main", v.module = v.module || "M05");
|
|
9
|
+
} else
|
|
10
|
+
[
|
|
11
|
+
"ssid",
|
|
12
|
+
"menu",
|
|
13
|
+
"temp",
|
|
14
|
+
"user",
|
|
15
|
+
"sett",
|
|
16
|
+
"qder",
|
|
17
|
+
"c",
|
|
18
|
+
"last",
|
|
19
|
+
"auth",
|
|
20
|
+
"port",
|
|
21
|
+
"mark",
|
|
22
|
+
"sort"
|
|
23
|
+
].forEach((s) => localStorage.removeItem(s)), ["page"].forEach((s) => sessionStorage.removeItem(s)), v.id = 0, v.tab = "", v.page = "Auth", v.module = "M00";
|
|
24
|
+
return t;
|
|
25
|
+
}
|
|
26
|
+
function M() {
|
|
27
|
+
[
|
|
28
|
+
"ssid",
|
|
29
|
+
"menu",
|
|
30
|
+
"temp",
|
|
31
|
+
"user",
|
|
32
|
+
"sett",
|
|
33
|
+
"qder",
|
|
34
|
+
"c",
|
|
35
|
+
"last",
|
|
36
|
+
"auth",
|
|
37
|
+
"port",
|
|
38
|
+
"mark",
|
|
39
|
+
"sort"
|
|
40
|
+
].forEach((e) => localStorage.removeItem(e)), ["page"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
|
|
41
|
+
}
|
|
42
|
+
function zt(e) {
|
|
43
|
+
e = e.split("/"), v.page = "Main", v.module = e[0], v.tab = e[1], v.id = 0, sessionStorage.setItem(
|
|
44
|
+
"page",
|
|
45
|
+
w.enCode({
|
|
46
|
+
module: v.module,
|
|
47
|
+
page: v.page,
|
|
48
|
+
tab: v.tab,
|
|
49
|
+
id: v.id,
|
|
50
|
+
time: (/* @__PURE__ */ new Date()).getTime()
|
|
51
|
+
})
|
|
52
|
+
), P.page(v.page);
|
|
53
|
+
}
|
|
54
|
+
function Ut(e) {
|
|
55
|
+
return localStorage.setItem("ssid", e);
|
|
56
|
+
}
|
|
57
|
+
function Wt() {
|
|
58
|
+
let e = localStorage.getItem("ssid");
|
|
59
|
+
return e !== "" && e !== "undefined" && e !== null ? localStorage.getItem("ssid") : (M(), !1);
|
|
60
|
+
}
|
|
61
|
+
function Yt(e) {
|
|
62
|
+
return localStorage.setItem("auth", e);
|
|
63
|
+
}
|
|
64
|
+
function Bt() {
|
|
65
|
+
let e = localStorage.getItem("auth");
|
|
66
|
+
return e !== "" && e !== "undefined" && e !== null ? e : (M(), !1);
|
|
67
|
+
}
|
|
68
|
+
function Vt(e) {
|
|
69
|
+
localStorage.setItem("port", w.enCode(e));
|
|
70
|
+
}
|
|
71
|
+
function Gt() {
|
|
72
|
+
let e = localStorage.getItem("port");
|
|
73
|
+
if (e !== "" && e !== "undefined" && e !== null) {
|
|
74
|
+
let t = w.deCode(e);
|
|
75
|
+
return t || M(), t;
|
|
76
|
+
} else
|
|
77
|
+
return M(), !1;
|
|
78
|
+
}
|
|
79
|
+
function Ht() {
|
|
80
|
+
const [e, t] = j.useState(st()), n = (s) => {
|
|
81
|
+
t(s);
|
|
82
|
+
};
|
|
83
|
+
return P.page = n, [e];
|
|
84
|
+
}
|
|
85
|
+
function Jt(e) {
|
|
86
|
+
v.page = e, sessionStorage.setItem("page", w.enCode(v)), P.page(e);
|
|
87
|
+
}
|
|
88
|
+
function st() {
|
|
89
|
+
return v.page;
|
|
90
|
+
}
|
|
91
|
+
function Zt() {
|
|
92
|
+
const [e, t] = j.useState(ot()), n = (s) => {
|
|
93
|
+
t(s);
|
|
94
|
+
};
|
|
95
|
+
return P.module = n, [e];
|
|
96
|
+
}
|
|
97
|
+
function Xt(e, t) {
|
|
98
|
+
v.module = e, sessionStorage.setItem("page", w.enCode(v)), t !== "false" && P.module(e);
|
|
99
|
+
}
|
|
100
|
+
function ot() {
|
|
101
|
+
return v.module;
|
|
102
|
+
}
|
|
103
|
+
function qt(e) {
|
|
104
|
+
const [t, n] = j.useState(he() || e), s = (c) => {
|
|
105
|
+
n(c);
|
|
106
|
+
};
|
|
107
|
+
return P.tabs = s, [t];
|
|
108
|
+
}
|
|
109
|
+
function Kt(e, t) {
|
|
110
|
+
v.tab = e, sessionStorage.setItem("page", w.enCode(v)), t !== "false" && P.tabs(e);
|
|
111
|
+
}
|
|
112
|
+
function he() {
|
|
113
|
+
return v.tab;
|
|
114
|
+
}
|
|
115
|
+
function Qt() {
|
|
116
|
+
const [e, t] = j.useState(v.id), n = (s) => {
|
|
117
|
+
t(s);
|
|
118
|
+
};
|
|
119
|
+
return P.id = n, [e];
|
|
120
|
+
}
|
|
121
|
+
function er(e) {
|
|
122
|
+
P.id = e;
|
|
123
|
+
}
|
|
124
|
+
function tr(e, t) {
|
|
125
|
+
v.id = e, sessionStorage.setItem("page", w.enCode(v)), t !== "false" && P.id(e);
|
|
126
|
+
}
|
|
127
|
+
function rr() {
|
|
128
|
+
return v.id;
|
|
129
|
+
}
|
|
130
|
+
function nr(e, t, n) {
|
|
131
|
+
v.module = e, v.id = n, v.tab = t, sessionStorage.setItem("page", w.enCode(v)), P.module(e), P.tabs(t);
|
|
132
|
+
}
|
|
133
|
+
function ar(e, t) {
|
|
134
|
+
qe.data[e] = t, localStorage.setItem("sett", w.enCode(qe.data));
|
|
135
|
+
}
|
|
136
|
+
function sr(e) {
|
|
137
|
+
let t = localStorage.getItem("sett");
|
|
138
|
+
return t === null ? {} : (t = w.deCode(t), t ? e !== void 0 ? t[e] : t : M());
|
|
139
|
+
}
|
|
140
|
+
function or(e) {
|
|
141
|
+
localStorage.setItem("menu", w.enCode({ data: e }));
|
|
142
|
+
}
|
|
143
|
+
function ir() {
|
|
144
|
+
let e = localStorage.getItem("menu");
|
|
145
|
+
if (e !== "" && e !== "undefined" && e !== null) {
|
|
146
|
+
let t = localStorage.getItem("menu"), n = w.deCode(t);
|
|
147
|
+
n || M();
|
|
148
|
+
const s = (m, l) => {
|
|
149
|
+
let d = l + "";
|
|
150
|
+
for (; d.length < m; )
|
|
151
|
+
d = "0" + d;
|
|
152
|
+
return d;
|
|
153
|
+
};
|
|
154
|
+
return n.data.split(",").map((m) => "M" + s(2, m));
|
|
155
|
+
} else
|
|
156
|
+
return M(), !1;
|
|
157
|
+
}
|
|
158
|
+
function cr(e) {
|
|
159
|
+
P.sort = e;
|
|
160
|
+
}
|
|
161
|
+
function it(e) {
|
|
162
|
+
let t = localStorage.getItem("sort");
|
|
163
|
+
t = t === null ? {} : w.deCode(t), t[he()] = e, localStorage.setItem("sort", w.enCode(t));
|
|
164
|
+
}
|
|
165
|
+
function Ce() {
|
|
166
|
+
let e = localStorage.getItem("sort");
|
|
167
|
+
return e === null ? {} : (e = w.deCode(e), e = e[he()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
|
|
168
|
+
}
|
|
169
|
+
function lr(e) {
|
|
170
|
+
localStorage.setItem("c", w.enCode(e));
|
|
171
|
+
}
|
|
172
|
+
function ur(e) {
|
|
173
|
+
let t = localStorage.getItem("c");
|
|
174
|
+
if (t !== "" && t !== "undefined" && t !== null) {
|
|
175
|
+
let n = w.deCode(t);
|
|
176
|
+
return n || M(), e === void 0 ? n : n[e];
|
|
177
|
+
} else
|
|
178
|
+
return M(), !1;
|
|
179
|
+
}
|
|
180
|
+
function dr(e) {
|
|
181
|
+
H.data = e, localStorage.setItem("qder", w.enCode(H.data));
|
|
182
|
+
}
|
|
183
|
+
function fr(e, t) {
|
|
184
|
+
if (!H.data) {
|
|
185
|
+
let n = localStorage.getItem("qder");
|
|
186
|
+
n && (H.data = w.deCode(n));
|
|
187
|
+
}
|
|
188
|
+
return e === void 0 && t === void 0 ? H.data : e !== void 0 && t === void 0 ? H.data[e] : H.data[e][t];
|
|
189
|
+
}
|
|
190
|
+
function mr(e) {
|
|
191
|
+
at.data = e;
|
|
192
|
+
}
|
|
193
|
+
function hr(e) {
|
|
194
|
+
return at.data[e];
|
|
195
|
+
}
|
|
196
|
+
function pr(e) {
|
|
197
|
+
v.payment = e;
|
|
198
|
+
}
|
|
199
|
+
function vr() {
|
|
200
|
+
return v.payment;
|
|
201
|
+
}
|
|
202
|
+
const L = {
|
|
203
|
+
setSSID: Ut,
|
|
204
|
+
getSSID: Wt,
|
|
205
|
+
getPORT: Gt,
|
|
206
|
+
setPORT: Vt,
|
|
207
|
+
setAUTH: Yt,
|
|
208
|
+
getAUTH: Bt,
|
|
209
|
+
Logaut: M,
|
|
210
|
+
Start: zt,
|
|
211
|
+
setSetting: ar,
|
|
212
|
+
getSetting: sr,
|
|
213
|
+
setMenu: or,
|
|
214
|
+
getMenu: ir,
|
|
215
|
+
useSort: cr,
|
|
216
|
+
setSort: it,
|
|
217
|
+
getSort: Ce,
|
|
218
|
+
setCompany: lr,
|
|
219
|
+
getCompany: ur,
|
|
220
|
+
setSelect: dr,
|
|
221
|
+
getSelect: fr,
|
|
222
|
+
setApi: mr,
|
|
223
|
+
getApi: hr,
|
|
224
|
+
setPayment: pr,
|
|
225
|
+
getPayment: vr
|
|
226
|
+
}, ct = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO3ZhciBhPXtCQVNFX1VSTDoiLyIsTU9ERToicHJvZHVjdGlvbiIsREVWOiExLFBST0Q6ITAsU1NSOiExfTtvbm1lc3NhZ2U9YXN5bmMgdD0+e2NvbnNvbGUubG9nKGEuVklURV9VUkwpO3RyeXtsZXQgZT1hLlZJVEVfVVJMPT09ImxvY2FsaG9zdCI/Imh0dHA6Ly9sb2NhbGhvc3Q6MzUzNS8iOiJodHRwczovL2FwaS5lbGNybS5vbmxpbmUvIixzPWF3YWl0IGZldGNoKGAke2V9JHt0LmRhdGEubGlua31gLHttZXRob2Q6IlBPU1QiLGhlYWRlcnM6eyJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgiLHNzaWQ6dC5kYXRhLnNzaWR9LGJvZHk6SlNPTi5zdHJpbmdpZnkodC5kYXRhLmRhdGEpfSk7cG9zdE1lc3NhZ2UoYXdhaXQgcy5qc29uKCkpfWNhdGNoe3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yIn0pfX19KSgpOwo=", gr = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), Ke = typeof window < "u" && window.Blob && new Blob([gr(ct)], { type: "text/javascript;charset=utf-8" });
|
|
227
|
+
function _r(e) {
|
|
228
|
+
let t;
|
|
229
|
+
try {
|
|
230
|
+
if (t = Ke && (window.URL || window.webkitURL).createObjectURL(Ke), !t)
|
|
231
|
+
throw "";
|
|
232
|
+
const n = new Worker(t, {
|
|
233
|
+
name: e == null ? void 0 : e.name
|
|
234
|
+
});
|
|
235
|
+
return n.addEventListener("error", () => {
|
|
236
|
+
(window.URL || window.webkitURL).revokeObjectURL(t);
|
|
237
|
+
}), n;
|
|
238
|
+
} catch {
|
|
239
|
+
return new Worker(
|
|
240
|
+
"data:text/javascript;base64," + ct,
|
|
241
|
+
{
|
|
242
|
+
name: e == null ? void 0 : e.name
|
|
243
|
+
}
|
|
244
|
+
);
|
|
245
|
+
} finally {
|
|
246
|
+
t && (window.URL || window.webkitURL).revokeObjectURL(t);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
const B = {};
|
|
250
|
+
B.url = () => {
|
|
251
|
+
let e = L.getPORT(), t = "", n = "";
|
|
252
|
+
return e.address === "localhost" ? (t = `http://localhost:${e.socket}/documents`, n = `http://localhost:${e.socket}/files`) : (t = "https://" + e.address + "/documents", n = "https://" + e.address + "/files"), {
|
|
253
|
+
documents: t,
|
|
254
|
+
files: n
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
B.audio = (e) => "https://" + L.getPORT().address + "/audio/" + e;
|
|
258
|
+
B.fetch = (e, t = {}, n = L.getAUTH()) => new Promise((s) => {
|
|
259
|
+
const c = new _r();
|
|
260
|
+
c.onmessage = (m) => {
|
|
261
|
+
s(m.data), c.terminate();
|
|
262
|
+
}, c.postMessage({ link: e, data: t, ssid: n });
|
|
263
|
+
});
|
|
264
|
+
B.remoute = async (e, t, n = {}) => {
|
|
265
|
+
try {
|
|
266
|
+
return await (await fetch("https://" + e + "/" + t, {
|
|
267
|
+
method: "POST",
|
|
268
|
+
headers: {
|
|
269
|
+
"Content-type": "application/json;charset=utf-8",
|
|
270
|
+
ssid: L.getAUTH() || ""
|
|
271
|
+
},
|
|
272
|
+
body: JSON.stringify(n)
|
|
273
|
+
})).json();
|
|
274
|
+
} catch {
|
|
275
|
+
return { status: "error" };
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
B.telegram = async (e, t = {}) => {
|
|
279
|
+
try {
|
|
280
|
+
return await (await fetch("https://tb.elcrm.online/v1/" + e, {
|
|
281
|
+
method: "POST",
|
|
282
|
+
headers: {
|
|
283
|
+
"Content-type": "application/json;charset=utf-8",
|
|
284
|
+
ssid: L.getAUTH() || ""
|
|
285
|
+
},
|
|
286
|
+
body: JSON.stringify(t)
|
|
287
|
+
})).json();
|
|
288
|
+
} catch {
|
|
289
|
+
return { status: "error" };
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
B.yandex = async (e, t = {}) => {
|
|
293
|
+
let n = L.getPORT();
|
|
294
|
+
try {
|
|
295
|
+
return await (await fetch("https://" + n.address + "/yandex/" + e, {
|
|
296
|
+
method: "POST",
|
|
297
|
+
headers: {
|
|
298
|
+
"Content-type": "application/json;charset=utf-8",
|
|
299
|
+
ssid: L.getSSID() || ""
|
|
300
|
+
},
|
|
301
|
+
body: JSON.stringify(t)
|
|
302
|
+
})).json();
|
|
303
|
+
} catch {
|
|
304
|
+
return { status: "error" };
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
B.backup = async (e, t = {}) => {
|
|
308
|
+
let n = L.getPORT();
|
|
309
|
+
try {
|
|
310
|
+
return await (await fetch("https://" + n.address + "/backup/" + e, {
|
|
311
|
+
method: "POST",
|
|
312
|
+
headers: {
|
|
313
|
+
"Content-type": "application/json;charset=utf-8",
|
|
314
|
+
ssid: L.getSSID() || ""
|
|
315
|
+
},
|
|
316
|
+
body: JSON.stringify(t)
|
|
317
|
+
})).json();
|
|
318
|
+
} catch {
|
|
319
|
+
return { status: "error" };
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
B.db = async (e, t, n = {}) => {
|
|
323
|
+
let s = L.getPORT();
|
|
324
|
+
try {
|
|
325
|
+
return await (await fetch(
|
|
326
|
+
"https://" + s.address + "/" + e + "/" + t,
|
|
327
|
+
{
|
|
328
|
+
method: "POST",
|
|
329
|
+
headers: {
|
|
330
|
+
"Content-type": "application/json;charset=utf-8",
|
|
331
|
+
ssid: L.getSSID() || ""
|
|
332
|
+
},
|
|
333
|
+
body: JSON.stringify(n)
|
|
334
|
+
}
|
|
335
|
+
)).json();
|
|
336
|
+
} catch {
|
|
337
|
+
return { status: "error" };
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
var we = { exports: {} }, ne = {};
|
|
4
341
|
/**
|
|
5
342
|
* @license React
|
|
6
343
|
* react-jsx-runtime.production.min.js
|
|
@@ -10,25 +347,25 @@ var je = { exports: {} }, te = {};
|
|
|
10
347
|
* This source code is licensed under the MIT license found in the
|
|
11
348
|
* LICENSE file in the root directory of this source tree.
|
|
12
349
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
var e =
|
|
19
|
-
function
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
for (
|
|
23
|
-
s.call(u,
|
|
24
|
-
if (
|
|
25
|
-
for (
|
|
26
|
-
|
|
27
|
-
return { $$typeof:
|
|
350
|
+
var Qe;
|
|
351
|
+
function br() {
|
|
352
|
+
if (Qe)
|
|
353
|
+
return ne;
|
|
354
|
+
Qe = 1;
|
|
355
|
+
var e = j, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, c = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, m = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
356
|
+
function l(d, u, f) {
|
|
357
|
+
var h, b = {}, S = null, T = null;
|
|
358
|
+
f !== void 0 && (S = "" + f), u.key !== void 0 && (S = "" + u.key), u.ref !== void 0 && (T = u.ref);
|
|
359
|
+
for (h in u)
|
|
360
|
+
s.call(u, h) && !m.hasOwnProperty(h) && (b[h] = u[h]);
|
|
361
|
+
if (d && d.defaultProps)
|
|
362
|
+
for (h in u = d.defaultProps, u)
|
|
363
|
+
b[h] === void 0 && (b[h] = u[h]);
|
|
364
|
+
return { $$typeof: t, type: d, key: S, ref: T, props: b, _owner: c.current };
|
|
28
365
|
}
|
|
29
|
-
return
|
|
366
|
+
return ne.Fragment = n, ne.jsx = l, ne.jsxs = l, ne;
|
|
30
367
|
}
|
|
31
|
-
var
|
|
368
|
+
var ae = {};
|
|
32
369
|
/**
|
|
33
370
|
* @license React
|
|
34
371
|
* react-jsx-runtime.development.js
|
|
@@ -38,91 +375,91 @@ var re = {};
|
|
|
38
375
|
* This source code is licensed under the MIT license found in the
|
|
39
376
|
* LICENSE file in the root directory of this source tree.
|
|
40
377
|
*/
|
|
41
|
-
var
|
|
42
|
-
function
|
|
43
|
-
return
|
|
44
|
-
var e =
|
|
45
|
-
function
|
|
46
|
-
if (
|
|
378
|
+
var et;
|
|
379
|
+
function xr() {
|
|
380
|
+
return et || (et = 1, process.env.NODE_ENV !== "production" && function() {
|
|
381
|
+
var e = j, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), N = Symbol.iterator, ee = "@@iterator";
|
|
382
|
+
function $(r) {
|
|
383
|
+
if (r === null || typeof r != "object")
|
|
47
384
|
return null;
|
|
48
|
-
var
|
|
49
|
-
return typeof
|
|
385
|
+
var o = N && r[N] || r[ee];
|
|
386
|
+
return typeof o == "function" ? o : null;
|
|
50
387
|
}
|
|
51
|
-
var
|
|
52
|
-
function R(
|
|
388
|
+
var I = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
389
|
+
function R(r) {
|
|
53
390
|
{
|
|
54
|
-
for (var
|
|
55
|
-
|
|
56
|
-
F("error",
|
|
391
|
+
for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), p = 1; p < o; p++)
|
|
392
|
+
i[p - 1] = arguments[p];
|
|
393
|
+
F("error", r, i);
|
|
57
394
|
}
|
|
58
395
|
}
|
|
59
|
-
function F(
|
|
396
|
+
function F(r, o, i) {
|
|
60
397
|
{
|
|
61
|
-
var p =
|
|
62
|
-
|
|
63
|
-
var
|
|
398
|
+
var p = I.ReactDebugCurrentFrame, x = p.getStackAddendum();
|
|
399
|
+
x !== "" && (o += "%s", i = i.concat([x]));
|
|
400
|
+
var y = i.map(function(_) {
|
|
64
401
|
return String(_);
|
|
65
402
|
});
|
|
66
|
-
|
|
403
|
+
y.unshift("Warning: " + o), Function.prototype.apply.call(console[r], console, y);
|
|
67
404
|
}
|
|
68
405
|
}
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
function
|
|
72
|
-
return !!(typeof
|
|
406
|
+
var z = !1, V = !1, X = !1, ie = !1, dt = !1, Re;
|
|
407
|
+
Re = Symbol.for("react.module.reference");
|
|
408
|
+
function ft(r) {
|
|
409
|
+
return !!(typeof r == "string" || typeof r == "function" || r === s || r === m || dt || r === c || r === f || r === h || ie || r === T || z || V || X || typeof r == "object" && r !== null && (r.$$typeof === S || r.$$typeof === b || r.$$typeof === l || r.$$typeof === d || r.$$typeof === u || // This needs to include all possible module reference object
|
|
73
410
|
// types supported by any Flight configuration anywhere since
|
|
74
411
|
// we don't know which Flight build this will end up being used
|
|
75
412
|
// with.
|
|
76
|
-
|
|
413
|
+
r.$$typeof === Re || r.getModuleId !== void 0));
|
|
77
414
|
}
|
|
78
|
-
function
|
|
79
|
-
var p =
|
|
415
|
+
function mt(r, o, i) {
|
|
416
|
+
var p = r.displayName;
|
|
80
417
|
if (p)
|
|
81
418
|
return p;
|
|
82
|
-
var
|
|
83
|
-
return
|
|
419
|
+
var x = o.displayName || o.name || "";
|
|
420
|
+
return x !== "" ? i + "(" + x + ")" : i;
|
|
84
421
|
}
|
|
85
|
-
function Ee(
|
|
86
|
-
return
|
|
422
|
+
function Ee(r) {
|
|
423
|
+
return r.displayName || "Context";
|
|
87
424
|
}
|
|
88
|
-
function
|
|
89
|
-
if (
|
|
425
|
+
function A(r) {
|
|
426
|
+
if (r == null)
|
|
90
427
|
return null;
|
|
91
|
-
if (typeof
|
|
92
|
-
return
|
|
93
|
-
if (typeof
|
|
94
|
-
return
|
|
95
|
-
switch (
|
|
428
|
+
if (typeof r.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
|
|
429
|
+
return r.displayName || r.name || null;
|
|
430
|
+
if (typeof r == "string")
|
|
431
|
+
return r;
|
|
432
|
+
switch (r) {
|
|
96
433
|
case s:
|
|
97
434
|
return "Fragment";
|
|
98
435
|
case n:
|
|
99
436
|
return "Portal";
|
|
100
|
-
case
|
|
437
|
+
case m:
|
|
101
438
|
return "Profiler";
|
|
102
|
-
case
|
|
439
|
+
case c:
|
|
103
440
|
return "StrictMode";
|
|
104
|
-
case
|
|
441
|
+
case f:
|
|
105
442
|
return "Suspense";
|
|
106
|
-
case
|
|
443
|
+
case h:
|
|
107
444
|
return "SuspenseList";
|
|
108
445
|
}
|
|
109
|
-
if (typeof
|
|
110
|
-
switch (
|
|
111
|
-
case
|
|
112
|
-
var
|
|
113
|
-
return Ee(
|
|
114
|
-
case
|
|
115
|
-
var
|
|
116
|
-
return Ee(
|
|
446
|
+
if (typeof r == "object")
|
|
447
|
+
switch (r.$$typeof) {
|
|
448
|
+
case d:
|
|
449
|
+
var o = r;
|
|
450
|
+
return Ee(o) + ".Consumer";
|
|
451
|
+
case l:
|
|
452
|
+
var i = r;
|
|
453
|
+
return Ee(i._context) + ".Provider";
|
|
117
454
|
case u:
|
|
118
|
-
return
|
|
119
|
-
case
|
|
120
|
-
var p =
|
|
121
|
-
return p !== null ? p :
|
|
122
|
-
case
|
|
123
|
-
var
|
|
455
|
+
return mt(r, r.render, "ForwardRef");
|
|
456
|
+
case b:
|
|
457
|
+
var p = r.displayName || null;
|
|
458
|
+
return p !== null ? p : A(r.type) || "Memo";
|
|
459
|
+
case S: {
|
|
460
|
+
var x = r, y = x._payload, _ = x._init;
|
|
124
461
|
try {
|
|
125
|
-
return
|
|
462
|
+
return A(_(y));
|
|
126
463
|
} catch {
|
|
127
464
|
return null;
|
|
128
465
|
}
|
|
@@ -130,103 +467,103 @@ function Ot() {
|
|
|
130
467
|
}
|
|
131
468
|
return null;
|
|
132
469
|
}
|
|
133
|
-
var
|
|
134
|
-
function
|
|
470
|
+
var G = Object.assign, te = 0, Te, Ie, Pe, Oe, Ne, $e, Fe;
|
|
471
|
+
function Le() {
|
|
135
472
|
}
|
|
136
|
-
|
|
137
|
-
function
|
|
473
|
+
Le.__reactDisabledLog = !0;
|
|
474
|
+
function ht() {
|
|
138
475
|
{
|
|
139
|
-
if (
|
|
140
|
-
|
|
141
|
-
var
|
|
476
|
+
if (te === 0) {
|
|
477
|
+
Te = console.log, Ie = console.info, Pe = console.warn, Oe = console.error, Ne = console.group, $e = console.groupCollapsed, Fe = console.groupEnd;
|
|
478
|
+
var r = {
|
|
142
479
|
configurable: !0,
|
|
143
480
|
enumerable: !0,
|
|
144
|
-
value:
|
|
481
|
+
value: Le,
|
|
145
482
|
writable: !0
|
|
146
483
|
};
|
|
147
484
|
Object.defineProperties(console, {
|
|
148
|
-
info:
|
|
149
|
-
log:
|
|
150
|
-
warn:
|
|
151
|
-
error:
|
|
152
|
-
group:
|
|
153
|
-
groupCollapsed:
|
|
154
|
-
groupEnd:
|
|
485
|
+
info: r,
|
|
486
|
+
log: r,
|
|
487
|
+
warn: r,
|
|
488
|
+
error: r,
|
|
489
|
+
group: r,
|
|
490
|
+
groupCollapsed: r,
|
|
491
|
+
groupEnd: r
|
|
155
492
|
});
|
|
156
493
|
}
|
|
157
|
-
|
|
494
|
+
te++;
|
|
158
495
|
}
|
|
159
496
|
}
|
|
160
|
-
function
|
|
497
|
+
function pt() {
|
|
161
498
|
{
|
|
162
|
-
if (
|
|
163
|
-
var
|
|
499
|
+
if (te--, te === 0) {
|
|
500
|
+
var r = {
|
|
164
501
|
configurable: !0,
|
|
165
502
|
enumerable: !0,
|
|
166
503
|
writable: !0
|
|
167
504
|
};
|
|
168
505
|
Object.defineProperties(console, {
|
|
169
|
-
log:
|
|
170
|
-
value:
|
|
171
|
-
}),
|
|
172
|
-
info: V({}, t, {
|
|
173
|
-
value: Re
|
|
174
|
-
}),
|
|
175
|
-
warn: V({}, t, {
|
|
176
|
-
value: we
|
|
506
|
+
log: G({}, r, {
|
|
507
|
+
value: Te
|
|
177
508
|
}),
|
|
178
|
-
|
|
509
|
+
info: G({}, r, {
|
|
179
510
|
value: Ie
|
|
180
511
|
}),
|
|
181
|
-
|
|
182
|
-
value: Te
|
|
183
|
-
}),
|
|
184
|
-
groupCollapsed: V({}, t, {
|
|
512
|
+
warn: G({}, r, {
|
|
185
513
|
value: Pe
|
|
186
514
|
}),
|
|
187
|
-
|
|
515
|
+
error: G({}, r, {
|
|
516
|
+
value: Oe
|
|
517
|
+
}),
|
|
518
|
+
group: G({}, r, {
|
|
519
|
+
value: Ne
|
|
520
|
+
}),
|
|
521
|
+
groupCollapsed: G({}, r, {
|
|
188
522
|
value: $e
|
|
523
|
+
}),
|
|
524
|
+
groupEnd: G({}, r, {
|
|
525
|
+
value: Fe
|
|
189
526
|
})
|
|
190
527
|
});
|
|
191
528
|
}
|
|
192
|
-
|
|
529
|
+
te < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
530
|
}
|
|
194
531
|
}
|
|
195
|
-
var
|
|
196
|
-
function
|
|
532
|
+
var ve = I.ReactCurrentDispatcher, ge;
|
|
533
|
+
function ce(r, o, i) {
|
|
197
534
|
{
|
|
198
|
-
if (
|
|
535
|
+
if (ge === void 0)
|
|
199
536
|
try {
|
|
200
537
|
throw Error();
|
|
201
|
-
} catch (
|
|
202
|
-
var p =
|
|
203
|
-
|
|
538
|
+
} catch (x) {
|
|
539
|
+
var p = x.stack.trim().match(/\n( *(at )?)/);
|
|
540
|
+
ge = p && p[1] || "";
|
|
204
541
|
}
|
|
205
542
|
return `
|
|
206
|
-
` +
|
|
543
|
+
` + ge + r;
|
|
207
544
|
}
|
|
208
545
|
}
|
|
209
|
-
var
|
|
546
|
+
var _e = !1, le;
|
|
210
547
|
{
|
|
211
|
-
var
|
|
212
|
-
|
|
548
|
+
var vt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
549
|
+
le = new vt();
|
|
213
550
|
}
|
|
214
|
-
function
|
|
215
|
-
if (!
|
|
551
|
+
function Me(r, o) {
|
|
552
|
+
if (!r || _e)
|
|
216
553
|
return "";
|
|
217
554
|
{
|
|
218
|
-
var
|
|
219
|
-
if (
|
|
220
|
-
return
|
|
555
|
+
var i = le.get(r);
|
|
556
|
+
if (i !== void 0)
|
|
557
|
+
return i;
|
|
221
558
|
}
|
|
222
559
|
var p;
|
|
223
|
-
|
|
224
|
-
var
|
|
560
|
+
_e = !0;
|
|
561
|
+
var x = Error.prepareStackTrace;
|
|
225
562
|
Error.prepareStackTrace = void 0;
|
|
226
|
-
var
|
|
227
|
-
|
|
563
|
+
var y;
|
|
564
|
+
y = ve.current, ve.current = null, ht();
|
|
228
565
|
try {
|
|
229
|
-
if (
|
|
566
|
+
if (o) {
|
|
230
567
|
var _ = function() {
|
|
231
568
|
throw Error();
|
|
232
569
|
};
|
|
@@ -237,200 +574,200 @@ function Ot() {
|
|
|
237
574
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
575
|
try {
|
|
239
576
|
Reflect.construct(_, []);
|
|
240
|
-
} catch (
|
|
241
|
-
p =
|
|
577
|
+
} catch (D) {
|
|
578
|
+
p = D;
|
|
242
579
|
}
|
|
243
|
-
Reflect.construct(
|
|
580
|
+
Reflect.construct(r, [], _);
|
|
244
581
|
} else {
|
|
245
582
|
try {
|
|
246
583
|
_.call();
|
|
247
|
-
} catch (
|
|
248
|
-
p =
|
|
584
|
+
} catch (D) {
|
|
585
|
+
p = D;
|
|
249
586
|
}
|
|
250
|
-
|
|
587
|
+
r.call(_.prototype);
|
|
251
588
|
}
|
|
252
589
|
} else {
|
|
253
590
|
try {
|
|
254
591
|
throw Error();
|
|
255
|
-
} catch (
|
|
256
|
-
p =
|
|
592
|
+
} catch (D) {
|
|
593
|
+
p = D;
|
|
257
594
|
}
|
|
258
|
-
|
|
595
|
+
r();
|
|
259
596
|
}
|
|
260
|
-
} catch (
|
|
261
|
-
if (
|
|
262
|
-
for (var g =
|
|
263
|
-
`),
|
|
264
|
-
`),
|
|
265
|
-
|
|
266
|
-
for (;
|
|
267
|
-
if (g[
|
|
268
|
-
if (
|
|
597
|
+
} catch (D) {
|
|
598
|
+
if (D && p && typeof D.stack == "string") {
|
|
599
|
+
for (var g = D.stack.split(`
|
|
600
|
+
`), E = p.stack.split(`
|
|
601
|
+
`), C = g.length - 1, k = E.length - 1; C >= 1 && k >= 0 && g[C] !== E[k]; )
|
|
602
|
+
k--;
|
|
603
|
+
for (; C >= 1 && k >= 0; C--, k--)
|
|
604
|
+
if (g[C] !== E[k]) {
|
|
605
|
+
if (C !== 1 || k !== 1)
|
|
269
606
|
do
|
|
270
|
-
if (
|
|
271
|
-
var
|
|
272
|
-
` + g[
|
|
273
|
-
return
|
|
607
|
+
if (C--, k--, k < 0 || g[C] !== E[k]) {
|
|
608
|
+
var O = `
|
|
609
|
+
` + g[C].replace(" at new ", " at ");
|
|
610
|
+
return r.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", r.displayName)), typeof r == "function" && le.set(r, O), O;
|
|
274
611
|
}
|
|
275
|
-
while (
|
|
612
|
+
while (C >= 1 && k >= 0);
|
|
276
613
|
break;
|
|
277
614
|
}
|
|
278
615
|
}
|
|
279
616
|
} finally {
|
|
280
|
-
|
|
617
|
+
_e = !1, ve.current = y, pt(), Error.prepareStackTrace = x;
|
|
281
618
|
}
|
|
282
|
-
var
|
|
283
|
-
return typeof
|
|
619
|
+
var K = r ? r.displayName || r.name : "", Xe = K ? ce(K) : "";
|
|
620
|
+
return typeof r == "function" && le.set(r, Xe), Xe;
|
|
284
621
|
}
|
|
285
|
-
function
|
|
286
|
-
return
|
|
622
|
+
function gt(r, o, i) {
|
|
623
|
+
return Me(r, !1);
|
|
287
624
|
}
|
|
288
|
-
function
|
|
289
|
-
var
|
|
290
|
-
return !!(
|
|
625
|
+
function _t(r) {
|
|
626
|
+
var o = r.prototype;
|
|
627
|
+
return !!(o && o.isReactComponent);
|
|
291
628
|
}
|
|
292
|
-
function
|
|
293
|
-
if (
|
|
629
|
+
function ue(r, o, i) {
|
|
630
|
+
if (r == null)
|
|
294
631
|
return "";
|
|
295
|
-
if (typeof
|
|
296
|
-
return
|
|
297
|
-
if (typeof
|
|
298
|
-
return
|
|
299
|
-
switch (
|
|
300
|
-
case
|
|
301
|
-
return
|
|
302
|
-
case
|
|
303
|
-
return
|
|
632
|
+
if (typeof r == "function")
|
|
633
|
+
return Me(r, _t(r));
|
|
634
|
+
if (typeof r == "string")
|
|
635
|
+
return ce(r);
|
|
636
|
+
switch (r) {
|
|
637
|
+
case f:
|
|
638
|
+
return ce("Suspense");
|
|
639
|
+
case h:
|
|
640
|
+
return ce("SuspenseList");
|
|
304
641
|
}
|
|
305
|
-
if (typeof
|
|
306
|
-
switch (
|
|
642
|
+
if (typeof r == "object")
|
|
643
|
+
switch (r.$$typeof) {
|
|
307
644
|
case u:
|
|
308
|
-
return
|
|
309
|
-
case
|
|
310
|
-
return
|
|
311
|
-
case
|
|
312
|
-
var p =
|
|
645
|
+
return gt(r.render);
|
|
646
|
+
case b:
|
|
647
|
+
return ue(r.type, o, i);
|
|
648
|
+
case S: {
|
|
649
|
+
var p = r, x = p._payload, y = p._init;
|
|
313
650
|
try {
|
|
314
|
-
return
|
|
651
|
+
return ue(y(x), o, i);
|
|
315
652
|
} catch {
|
|
316
653
|
}
|
|
317
654
|
}
|
|
318
655
|
}
|
|
319
656
|
return "";
|
|
320
657
|
}
|
|
321
|
-
var
|
|
322
|
-
function
|
|
323
|
-
if (
|
|
324
|
-
var
|
|
325
|
-
|
|
658
|
+
var de = Object.prototype.hasOwnProperty, Ae = {}, De = I.ReactDebugCurrentFrame;
|
|
659
|
+
function fe(r) {
|
|
660
|
+
if (r) {
|
|
661
|
+
var o = r._owner, i = ue(r.type, r._source, o ? o.type : null);
|
|
662
|
+
De.setExtraStackFrame(i);
|
|
326
663
|
} else
|
|
327
|
-
|
|
664
|
+
De.setExtraStackFrame(null);
|
|
328
665
|
}
|
|
329
|
-
function
|
|
666
|
+
function bt(r, o, i, p, x) {
|
|
330
667
|
{
|
|
331
|
-
var
|
|
332
|
-
for (var _ in
|
|
333
|
-
if (
|
|
668
|
+
var y = Function.call.bind(de);
|
|
669
|
+
for (var _ in r)
|
|
670
|
+
if (y(r, _)) {
|
|
334
671
|
var g = void 0;
|
|
335
672
|
try {
|
|
336
|
-
if (typeof
|
|
337
|
-
var
|
|
338
|
-
throw
|
|
673
|
+
if (typeof r[_] != "function") {
|
|
674
|
+
var E = Error((p || "React class") + ": " + i + " type `" + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[_] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
675
|
+
throw E.name = "Invariant Violation", E;
|
|
339
676
|
}
|
|
340
|
-
g =
|
|
341
|
-
} catch (
|
|
342
|
-
g =
|
|
677
|
+
g = r[_](o, _, p, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
678
|
+
} catch (C) {
|
|
679
|
+
g = C;
|
|
343
680
|
}
|
|
344
|
-
g && !(g instanceof Error) && (
|
|
681
|
+
g && !(g instanceof Error) && (fe(x), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", i, _, typeof g), fe(null)), g instanceof Error && !(g.message in Ae) && (Ae[g.message] = !0, fe(x), R("Failed %s type: %s", i, g.message), fe(null));
|
|
345
682
|
}
|
|
346
683
|
}
|
|
347
684
|
}
|
|
348
|
-
var
|
|
349
|
-
function
|
|
350
|
-
return
|
|
685
|
+
var xt = Array.isArray;
|
|
686
|
+
function be(r) {
|
|
687
|
+
return xt(r);
|
|
351
688
|
}
|
|
352
|
-
function
|
|
689
|
+
function yt(r) {
|
|
353
690
|
{
|
|
354
|
-
var
|
|
355
|
-
return
|
|
691
|
+
var o = typeof Symbol == "function" && Symbol.toStringTag, i = o && r[Symbol.toStringTag] || r.constructor.name || "Object";
|
|
692
|
+
return i;
|
|
356
693
|
}
|
|
357
694
|
}
|
|
358
|
-
function
|
|
695
|
+
function St(r) {
|
|
359
696
|
try {
|
|
360
|
-
return
|
|
697
|
+
return ze(r), !1;
|
|
361
698
|
} catch {
|
|
362
699
|
return !0;
|
|
363
700
|
}
|
|
364
701
|
}
|
|
365
|
-
function
|
|
366
|
-
return "" +
|
|
702
|
+
function ze(r) {
|
|
703
|
+
return "" + r;
|
|
367
704
|
}
|
|
368
|
-
function
|
|
369
|
-
if (
|
|
370
|
-
return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
705
|
+
function Ue(r) {
|
|
706
|
+
if (St(r))
|
|
707
|
+
return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yt(r)), ze(r);
|
|
371
708
|
}
|
|
372
|
-
var
|
|
709
|
+
var re = I.ReactCurrentOwner, jt = {
|
|
373
710
|
key: !0,
|
|
374
711
|
ref: !0,
|
|
375
712
|
__self: !0,
|
|
376
713
|
__source: !0
|
|
377
|
-
},
|
|
378
|
-
|
|
379
|
-
function
|
|
380
|
-
if (
|
|
381
|
-
var
|
|
382
|
-
if (
|
|
714
|
+
}, We, Ye, xe;
|
|
715
|
+
xe = {};
|
|
716
|
+
function Ct(r) {
|
|
717
|
+
if (de.call(r, "ref")) {
|
|
718
|
+
var o = Object.getOwnPropertyDescriptor(r, "ref").get;
|
|
719
|
+
if (o && o.isReactWarning)
|
|
383
720
|
return !1;
|
|
384
721
|
}
|
|
385
|
-
return
|
|
722
|
+
return r.ref !== void 0;
|
|
386
723
|
}
|
|
387
|
-
function
|
|
388
|
-
if (
|
|
389
|
-
var
|
|
390
|
-
if (
|
|
724
|
+
function wt(r) {
|
|
725
|
+
if (de.call(r, "key")) {
|
|
726
|
+
var o = Object.getOwnPropertyDescriptor(r, "key").get;
|
|
727
|
+
if (o && o.isReactWarning)
|
|
391
728
|
return !1;
|
|
392
729
|
}
|
|
393
|
-
return
|
|
730
|
+
return r.key !== void 0;
|
|
394
731
|
}
|
|
395
|
-
function
|
|
396
|
-
if (typeof
|
|
397
|
-
var
|
|
398
|
-
|
|
732
|
+
function kt(r, o) {
|
|
733
|
+
if (typeof r.ref == "string" && re.current && o && re.current.stateNode !== o) {
|
|
734
|
+
var i = A(re.current.type);
|
|
735
|
+
xe[i] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', A(re.current.type), r.ref), xe[i] = !0);
|
|
399
736
|
}
|
|
400
737
|
}
|
|
401
|
-
function
|
|
738
|
+
function Rt(r, o) {
|
|
402
739
|
{
|
|
403
|
-
var
|
|
404
|
-
|
|
740
|
+
var i = function() {
|
|
741
|
+
We || (We = !0, R("%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://reactjs.org/link/special-props)", o));
|
|
405
742
|
};
|
|
406
|
-
|
|
407
|
-
get:
|
|
743
|
+
i.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
744
|
+
get: i,
|
|
408
745
|
configurable: !0
|
|
409
746
|
});
|
|
410
747
|
}
|
|
411
748
|
}
|
|
412
|
-
function
|
|
749
|
+
function Et(r, o) {
|
|
413
750
|
{
|
|
414
|
-
var
|
|
415
|
-
|
|
751
|
+
var i = function() {
|
|
752
|
+
Ye || (Ye = !0, R("%s: `ref` 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://reactjs.org/link/special-props)", o));
|
|
416
753
|
};
|
|
417
|
-
|
|
418
|
-
get:
|
|
754
|
+
i.isReactWarning = !0, Object.defineProperty(r, "ref", {
|
|
755
|
+
get: i,
|
|
419
756
|
configurable: !0
|
|
420
757
|
});
|
|
421
758
|
}
|
|
422
759
|
}
|
|
423
|
-
var
|
|
760
|
+
var Tt = function(r, o, i, p, x, y, _) {
|
|
424
761
|
var g = {
|
|
425
762
|
// This tag allows us to uniquely identify this as a React Element
|
|
426
|
-
$$typeof:
|
|
763
|
+
$$typeof: t,
|
|
427
764
|
// Built-in properties that belong on the element
|
|
428
|
-
type:
|
|
429
|
-
key:
|
|
430
|
-
ref:
|
|
765
|
+
type: r,
|
|
766
|
+
key: o,
|
|
767
|
+
ref: i,
|
|
431
768
|
props: _,
|
|
432
769
|
// Record the component responsible for creating this element.
|
|
433
|
-
_owner:
|
|
770
|
+
_owner: y
|
|
434
771
|
};
|
|
435
772
|
return g._store = {}, Object.defineProperty(g._store, "validated", {
|
|
436
773
|
configurable: !1,
|
|
@@ -446,260 +783,260 @@ function Ot() {
|
|
|
446
783
|
configurable: !1,
|
|
447
784
|
enumerable: !1,
|
|
448
785
|
writable: !1,
|
|
449
|
-
value:
|
|
786
|
+
value: x
|
|
450
787
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
451
788
|
};
|
|
452
|
-
function
|
|
789
|
+
function It(r, o, i, p, x) {
|
|
453
790
|
{
|
|
454
|
-
var
|
|
455
|
-
|
|
456
|
-
for (
|
|
457
|
-
|
|
458
|
-
if (
|
|
459
|
-
var
|
|
460
|
-
for (
|
|
461
|
-
_[
|
|
791
|
+
var y, _ = {}, g = null, E = null;
|
|
792
|
+
i !== void 0 && (Ue(i), g = "" + i), wt(o) && (Ue(o.key), g = "" + o.key), Ct(o) && (E = o.ref, kt(o, x));
|
|
793
|
+
for (y in o)
|
|
794
|
+
de.call(o, y) && !jt.hasOwnProperty(y) && (_[y] = o[y]);
|
|
795
|
+
if (r && r.defaultProps) {
|
|
796
|
+
var C = r.defaultProps;
|
|
797
|
+
for (y in C)
|
|
798
|
+
_[y] === void 0 && (_[y] = C[y]);
|
|
462
799
|
}
|
|
463
|
-
if (g ||
|
|
464
|
-
var
|
|
465
|
-
g &&
|
|
800
|
+
if (g || E) {
|
|
801
|
+
var k = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
802
|
+
g && Rt(_, k), E && Et(_, k);
|
|
466
803
|
}
|
|
467
|
-
return
|
|
804
|
+
return Tt(r, g, E, x, p, re.current, _);
|
|
468
805
|
}
|
|
469
806
|
}
|
|
470
|
-
var
|
|
471
|
-
function
|
|
472
|
-
if (
|
|
473
|
-
var
|
|
474
|
-
|
|
807
|
+
var ye = I.ReactCurrentOwner, Be = I.ReactDebugCurrentFrame;
|
|
808
|
+
function q(r) {
|
|
809
|
+
if (r) {
|
|
810
|
+
var o = r._owner, i = ue(r.type, r._source, o ? o.type : null);
|
|
811
|
+
Be.setExtraStackFrame(i);
|
|
475
812
|
} else
|
|
476
|
-
|
|
813
|
+
Be.setExtraStackFrame(null);
|
|
477
814
|
}
|
|
478
|
-
var
|
|
479
|
-
|
|
480
|
-
function
|
|
481
|
-
return typeof
|
|
815
|
+
var Se;
|
|
816
|
+
Se = !1;
|
|
817
|
+
function je(r) {
|
|
818
|
+
return typeof r == "object" && r !== null && r.$$typeof === t;
|
|
482
819
|
}
|
|
483
|
-
function
|
|
820
|
+
function Ve() {
|
|
484
821
|
{
|
|
485
|
-
if (
|
|
486
|
-
var
|
|
487
|
-
if (
|
|
822
|
+
if (ye.current) {
|
|
823
|
+
var r = A(ye.current.type);
|
|
824
|
+
if (r)
|
|
488
825
|
return `
|
|
489
826
|
|
|
490
|
-
Check the render method of \`` +
|
|
827
|
+
Check the render method of \`` + r + "`.";
|
|
491
828
|
}
|
|
492
829
|
return "";
|
|
493
830
|
}
|
|
494
831
|
}
|
|
495
|
-
function
|
|
832
|
+
function Pt(r) {
|
|
496
833
|
{
|
|
497
|
-
if (
|
|
498
|
-
var
|
|
834
|
+
if (r !== void 0) {
|
|
835
|
+
var o = r.fileName.replace(/^.*[\\\/]/, ""), i = r.lineNumber;
|
|
499
836
|
return `
|
|
500
837
|
|
|
501
|
-
Check your code at ` +
|
|
838
|
+
Check your code at ` + o + ":" + i + ".";
|
|
502
839
|
}
|
|
503
840
|
return "";
|
|
504
841
|
}
|
|
505
842
|
}
|
|
506
|
-
var
|
|
507
|
-
function
|
|
843
|
+
var Ge = {};
|
|
844
|
+
function Ot(r) {
|
|
508
845
|
{
|
|
509
|
-
var
|
|
510
|
-
if (!
|
|
511
|
-
var
|
|
512
|
-
|
|
846
|
+
var o = Ve();
|
|
847
|
+
if (!o) {
|
|
848
|
+
var i = typeof r == "string" ? r : r.displayName || r.name;
|
|
849
|
+
i && (o = `
|
|
513
850
|
|
|
514
|
-
Check the top-level render call using <` +
|
|
851
|
+
Check the top-level render call using <` + i + ">.");
|
|
515
852
|
}
|
|
516
|
-
return
|
|
853
|
+
return o;
|
|
517
854
|
}
|
|
518
855
|
}
|
|
519
|
-
function
|
|
856
|
+
function He(r, o) {
|
|
520
857
|
{
|
|
521
|
-
if (!
|
|
858
|
+
if (!r._store || r._store.validated || r.key != null)
|
|
522
859
|
return;
|
|
523
|
-
|
|
524
|
-
var
|
|
525
|
-
if (
|
|
860
|
+
r._store.validated = !0;
|
|
861
|
+
var i = Ot(o);
|
|
862
|
+
if (Ge[i])
|
|
526
863
|
return;
|
|
527
|
-
|
|
864
|
+
Ge[i] = !0;
|
|
528
865
|
var p = "";
|
|
529
|
-
|
|
866
|
+
r && r._owner && r._owner !== ye.current && (p = " It was passed a child from " + A(r._owner.type) + "."), q(r), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, p), q(null);
|
|
530
867
|
}
|
|
531
868
|
}
|
|
532
|
-
function
|
|
869
|
+
function Je(r, o) {
|
|
533
870
|
{
|
|
534
|
-
if (typeof
|
|
871
|
+
if (typeof r != "object")
|
|
535
872
|
return;
|
|
536
|
-
if (
|
|
537
|
-
for (var
|
|
538
|
-
var p =
|
|
539
|
-
|
|
873
|
+
if (be(r))
|
|
874
|
+
for (var i = 0; i < r.length; i++) {
|
|
875
|
+
var p = r[i];
|
|
876
|
+
je(p) && He(p, o);
|
|
540
877
|
}
|
|
541
|
-
else if (
|
|
542
|
-
|
|
543
|
-
else if (
|
|
544
|
-
var
|
|
545
|
-
if (typeof
|
|
546
|
-
for (var
|
|
547
|
-
|
|
878
|
+
else if (je(r))
|
|
879
|
+
r._store && (r._store.validated = !0);
|
|
880
|
+
else if (r) {
|
|
881
|
+
var x = $(r);
|
|
882
|
+
if (typeof x == "function" && x !== r.entries)
|
|
883
|
+
for (var y = x.call(r), _; !(_ = y.next()).done; )
|
|
884
|
+
je(_.value) && He(_.value, o);
|
|
548
885
|
}
|
|
549
886
|
}
|
|
550
887
|
}
|
|
551
|
-
function
|
|
888
|
+
function Nt(r) {
|
|
552
889
|
{
|
|
553
|
-
var
|
|
554
|
-
if (
|
|
890
|
+
var o = r.type;
|
|
891
|
+
if (o == null || typeof o == "string")
|
|
555
892
|
return;
|
|
556
|
-
var
|
|
557
|
-
if (typeof
|
|
558
|
-
|
|
559
|
-
else if (typeof
|
|
893
|
+
var i;
|
|
894
|
+
if (typeof o == "function")
|
|
895
|
+
i = o.propTypes;
|
|
896
|
+
else if (typeof o == "object" && (o.$$typeof === u || // Note: Memo only checks outer props here.
|
|
560
897
|
// Inner props are checked in the reconciler.
|
|
561
|
-
|
|
562
|
-
|
|
898
|
+
o.$$typeof === b))
|
|
899
|
+
i = o.propTypes;
|
|
563
900
|
else
|
|
564
901
|
return;
|
|
565
|
-
if (
|
|
566
|
-
var p =
|
|
567
|
-
|
|
568
|
-
} else if (
|
|
569
|
-
|
|
570
|
-
var
|
|
571
|
-
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
902
|
+
if (i) {
|
|
903
|
+
var p = A(o);
|
|
904
|
+
bt(i, r.props, "prop", p, r);
|
|
905
|
+
} else if (o.PropTypes !== void 0 && !Se) {
|
|
906
|
+
Se = !0;
|
|
907
|
+
var x = A(o);
|
|
908
|
+
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", x || "Unknown");
|
|
572
909
|
}
|
|
573
|
-
typeof
|
|
910
|
+
typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
574
911
|
}
|
|
575
912
|
}
|
|
576
|
-
function
|
|
913
|
+
function $t(r) {
|
|
577
914
|
{
|
|
578
|
-
for (var
|
|
579
|
-
var p = i
|
|
915
|
+
for (var o = Object.keys(r.props), i = 0; i < o.length; i++) {
|
|
916
|
+
var p = o[i];
|
|
580
917
|
if (p !== "children" && p !== "key") {
|
|
581
|
-
|
|
918
|
+
q(r), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), q(null);
|
|
582
919
|
break;
|
|
583
920
|
}
|
|
584
921
|
}
|
|
585
|
-
|
|
922
|
+
r.ref !== null && (q(r), R("Invalid attribute `ref` supplied to `React.Fragment`."), q(null));
|
|
586
923
|
}
|
|
587
924
|
}
|
|
588
|
-
function
|
|
925
|
+
function Ze(r, o, i, p, x, y) {
|
|
589
926
|
{
|
|
590
|
-
var _ =
|
|
927
|
+
var _ = ft(r);
|
|
591
928
|
if (!_) {
|
|
592
929
|
var g = "";
|
|
593
|
-
(
|
|
594
|
-
var
|
|
595
|
-
|
|
596
|
-
var
|
|
597
|
-
|
|
930
|
+
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
931
|
+
var E = Pt(x);
|
|
932
|
+
E ? g += E : g += Ve();
|
|
933
|
+
var C;
|
|
934
|
+
r === null ? C = "null" : be(r) ? C = "array" : r !== void 0 && r.$$typeof === t ? (C = "<" + (A(r.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : C = typeof r, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", C, g);
|
|
598
935
|
}
|
|
599
|
-
var
|
|
600
|
-
if (
|
|
601
|
-
return
|
|
936
|
+
var k = It(r, o, i, x, y);
|
|
937
|
+
if (k == null)
|
|
938
|
+
return k;
|
|
602
939
|
if (_) {
|
|
603
|
-
var
|
|
604
|
-
if (
|
|
940
|
+
var O = o.children;
|
|
941
|
+
if (O !== void 0)
|
|
605
942
|
if (p)
|
|
606
|
-
if (
|
|
607
|
-
for (var
|
|
608
|
-
|
|
609
|
-
Object.freeze && Object.freeze(
|
|
943
|
+
if (be(O)) {
|
|
944
|
+
for (var K = 0; K < O.length; K++)
|
|
945
|
+
Je(O[K], r);
|
|
946
|
+
Object.freeze && Object.freeze(O);
|
|
610
947
|
} else
|
|
611
948
|
R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
612
949
|
else
|
|
613
|
-
|
|
950
|
+
Je(O, r);
|
|
614
951
|
}
|
|
615
|
-
return
|
|
952
|
+
return r === s ? $t(k) : Nt(k), k;
|
|
616
953
|
}
|
|
617
954
|
}
|
|
618
|
-
function
|
|
619
|
-
return
|
|
955
|
+
function Ft(r, o, i) {
|
|
956
|
+
return Ze(r, o, i, !0);
|
|
620
957
|
}
|
|
621
|
-
function
|
|
622
|
-
return
|
|
958
|
+
function Lt(r, o, i) {
|
|
959
|
+
return Ze(r, o, i, !1);
|
|
623
960
|
}
|
|
624
|
-
var
|
|
625
|
-
|
|
626
|
-
}()),
|
|
627
|
-
}
|
|
628
|
-
process.env.NODE_ENV === "production" ?
|
|
629
|
-
var a =
|
|
630
|
-
const
|
|
631
|
-
notice:
|
|
632
|
-
error:
|
|
633
|
-
success:
|
|
634
|
-
remark:
|
|
635
|
-
copy:
|
|
961
|
+
var Mt = Lt, At = Ft;
|
|
962
|
+
ae.Fragment = s, ae.jsx = Mt, ae.jsxs = At;
|
|
963
|
+
}()), ae;
|
|
964
|
+
}
|
|
965
|
+
process.env.NODE_ENV === "production" ? we.exports = br() : we.exports = xr();
|
|
966
|
+
var a = we.exports;
|
|
967
|
+
const yr = "_notice_820sc_2", Sr = "_error_820sc_9", jr = "_success_820sc_12", Cr = "_remark_820sc_15", wr = "_copy_820sc_18", kr = {
|
|
968
|
+
notice: yr,
|
|
969
|
+
error: Sr,
|
|
970
|
+
success: jr,
|
|
971
|
+
remark: Cr,
|
|
972
|
+
copy: wr,
|
|
636
973
|
"show-notice": "_show-notice_820sc_1",
|
|
637
974
|
"hide-notice": "_hide-notice_820sc_1"
|
|
638
975
|
};
|
|
639
|
-
let
|
|
640
|
-
function
|
|
641
|
-
let [e,
|
|
642
|
-
return
|
|
643
|
-
|
|
644
|
-
},
|
|
645
|
-
|
|
646
|
-
}, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { className:
|
|
647
|
-
}
|
|
648
|
-
function
|
|
649
|
-
let [
|
|
650
|
-
|
|
976
|
+
let Y = {};
|
|
977
|
+
function Rr() {
|
|
978
|
+
let [e, t] = j.useState([]);
|
|
979
|
+
return Y.set = (n) => {
|
|
980
|
+
t([...e, n]);
|
|
981
|
+
}, Y.del = (n) => {
|
|
982
|
+
t(e.filter((s) => s.key !== n));
|
|
983
|
+
}, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { className: kr.notice, children: e.map((n) => n.item) });
|
|
984
|
+
}
|
|
985
|
+
function oe({ data: e }) {
|
|
986
|
+
let [t, n] = j.useState("show");
|
|
987
|
+
j.useEffect(() => {
|
|
651
988
|
setTimeout(function() {
|
|
652
989
|
n("hide");
|
|
653
990
|
}, 1800), setTimeout(function() {
|
|
654
|
-
|
|
991
|
+
Y.del(e.key);
|
|
655
992
|
}, 2500);
|
|
656
993
|
}, [e.key]);
|
|
657
|
-
let s,
|
|
994
|
+
let s, c;
|
|
658
995
|
switch (e.type) {
|
|
659
996
|
case "error":
|
|
660
|
-
s = /* @__PURE__ */ a.jsx(
|
|
997
|
+
s = /* @__PURE__ */ a.jsx(J.error, {}), c = "Ошибка:";
|
|
661
998
|
break;
|
|
662
999
|
case "success":
|
|
663
|
-
s = /* @__PURE__ */ a.jsx(
|
|
1000
|
+
s = /* @__PURE__ */ a.jsx(J.success, {}), c = "Информация:";
|
|
664
1001
|
break;
|
|
665
1002
|
case "copy":
|
|
666
|
-
s = /* @__PURE__ */ a.jsx(
|
|
1003
|
+
s = /* @__PURE__ */ a.jsx(J.success, {}), c = "Копирование:";
|
|
667
1004
|
break;
|
|
668
1005
|
case "remark":
|
|
669
|
-
s = /* @__PURE__ */ a.jsx(
|
|
1006
|
+
s = /* @__PURE__ */ a.jsx(J.success, {}), c = "Подсказка:";
|
|
670
1007
|
break;
|
|
671
1008
|
default:
|
|
672
|
-
s = /* @__PURE__ */ a.jsx(
|
|
1009
|
+
s = /* @__PURE__ */ a.jsx(J.success, {}), c = "Предупреждение:";
|
|
673
1010
|
break;
|
|
674
1011
|
}
|
|
675
|
-
return /* @__PURE__ */ a.jsxs("li", { className: "item " + e.type, "data-status":
|
|
1012
|
+
return /* @__PURE__ */ a.jsxs("li", { className: "item " + e.type, "data-status": t, children: [
|
|
676
1013
|
s,
|
|
677
|
-
/* @__PURE__ */ a.jsx("b", { children:
|
|
1014
|
+
/* @__PURE__ */ a.jsx("b", { children: c }),
|
|
678
1015
|
/* @__PURE__ */ a.jsx("p", { children: e.text })
|
|
679
1016
|
] });
|
|
680
1017
|
}
|
|
681
|
-
function
|
|
682
|
-
let
|
|
683
|
-
|
|
1018
|
+
function Er(e) {
|
|
1019
|
+
let t = Date.now(), n = { key: t, ...e };
|
|
1020
|
+
Y.set({ item: /* @__PURE__ */ a.jsx(oe, { data: n }, t), key: t });
|
|
684
1021
|
}
|
|
685
|
-
function
|
|
686
|
-
let
|
|
687
|
-
|
|
1022
|
+
function Tr(e) {
|
|
1023
|
+
let t = Date.now(), n = { key: t, text: e, type: "error" };
|
|
1024
|
+
Y.set({ item: /* @__PURE__ */ a.jsx(oe, { data: n }, t), key: t });
|
|
688
1025
|
}
|
|
689
|
-
function
|
|
690
|
-
let
|
|
691
|
-
|
|
1026
|
+
function Ir(e) {
|
|
1027
|
+
let t = Date.now(), n = { key: t, text: e, type: "success" };
|
|
1028
|
+
Y.set({ item: /* @__PURE__ */ a.jsx(oe, { data: n }, t), key: t });
|
|
692
1029
|
}
|
|
693
|
-
function
|
|
694
|
-
let
|
|
695
|
-
|
|
1030
|
+
function Pr(e) {
|
|
1031
|
+
let t = Date.now(), n = { key: t, text: e, type: "remark" };
|
|
1032
|
+
Y.set({ item: /* @__PURE__ */ a.jsx(oe, { data: n }, t), key: t });
|
|
696
1033
|
}
|
|
697
|
-
function
|
|
698
|
-
let
|
|
699
|
-
|
|
1034
|
+
function Or(e) {
|
|
1035
|
+
let t = Date.now(), n = { key: t, text: e, type: "copy" };
|
|
1036
|
+
Y.set({ item: /* @__PURE__ */ a.jsx(oe, { data: n }, t), key: t });
|
|
700
1037
|
}
|
|
701
|
-
const
|
|
702
|
-
|
|
1038
|
+
const J = {};
|
|
1039
|
+
J.error = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
703
1040
|
/* @__PURE__ */ a.jsx(
|
|
704
1041
|
"path",
|
|
705
1042
|
{
|
|
@@ -715,7 +1052,7 @@ U.error = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "non
|
|
|
715
1052
|
}
|
|
716
1053
|
)
|
|
717
1054
|
] });
|
|
718
|
-
|
|
1055
|
+
J.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
719
1056
|
/* @__PURE__ */ a.jsx(
|
|
720
1057
|
"path",
|
|
721
1058
|
{
|
|
@@ -731,20 +1068,20 @@ U.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "n
|
|
|
731
1068
|
}
|
|
732
1069
|
)
|
|
733
1070
|
] });
|
|
734
|
-
const
|
|
735
|
-
alerts:
|
|
736
|
-
menuAnimation:
|
|
737
|
-
menuItemAnimation:
|
|
1071
|
+
const Nr = "_alerts_1e9y0_1", $r = "_menuAnimation_1e9y0_1", Fr = "_menuItemAnimation_1e9y0_1", Lr = "_allert_1e9y0_111", Mr = {
|
|
1072
|
+
alerts: Nr,
|
|
1073
|
+
menuAnimation: $r,
|
|
1074
|
+
menuItemAnimation: Fr,
|
|
738
1075
|
"--body": "_--body_1e9y0_103",
|
|
739
|
-
allert:
|
|
1076
|
+
allert: Lr,
|
|
740
1077
|
"--form": "_--form_1e9y0_111"
|
|
741
1078
|
};
|
|
742
|
-
let
|
|
743
|
-
function
|
|
744
|
-
let [e,
|
|
745
|
-
return
|
|
1079
|
+
let se = {};
|
|
1080
|
+
function Ar() {
|
|
1081
|
+
let [e, t] = j.useState("");
|
|
1082
|
+
return se.set = (n) => t(n), se.del = () => t(""), /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
|
|
746
1083
|
}
|
|
747
|
-
const
|
|
1084
|
+
const Dr = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: Mr.alerts, children: [
|
|
748
1085
|
/* @__PURE__ */ a.jsxs("dl", { children: [
|
|
749
1086
|
/* @__PURE__ */ a.jsx("dt", { children: e.title }),
|
|
750
1087
|
/* @__PURE__ */ a.jsx("dd", { children: e.text }),
|
|
@@ -753,114 +1090,114 @@ const Qt = ({ data: e, callback: r }) => (e.button = e.button === void 0 ? "По
|
|
|
753
1090
|
{
|
|
754
1091
|
"data-color": e.color || "blue",
|
|
755
1092
|
onClick: () => {
|
|
756
|
-
|
|
1093
|
+
t(), se.del();
|
|
757
1094
|
},
|
|
758
1095
|
children: e.button
|
|
759
1096
|
}
|
|
760
1097
|
) })
|
|
761
1098
|
] }),
|
|
762
|
-
/* @__PURE__ */ a.jsx("div", { className: "--body", onClick:
|
|
1099
|
+
/* @__PURE__ */ a.jsx("div", { className: "--body", onClick: se.del })
|
|
763
1100
|
] }));
|
|
764
|
-
function
|
|
765
|
-
|
|
1101
|
+
function zr(e, t) {
|
|
1102
|
+
se.set(/* @__PURE__ */ a.jsx(Dr, { data: e, callback: t }));
|
|
766
1103
|
}
|
|
767
|
-
function
|
|
1104
|
+
function Ur({ children: e }) {
|
|
768
1105
|
return /* @__PURE__ */ a.jsx("div", { className: "l", children: /* @__PURE__ */ a.jsx("ul", { children: e }) });
|
|
769
1106
|
}
|
|
770
|
-
function
|
|
1107
|
+
function Wr({ children: e }) {
|
|
771
1108
|
return /* @__PURE__ */ a.jsx("div", { className: "s", children: e });
|
|
772
1109
|
}
|
|
773
|
-
const
|
|
1110
|
+
const Yr = ({
|
|
774
1111
|
children: e,
|
|
775
|
-
disabled:
|
|
1112
|
+
disabled: t,
|
|
776
1113
|
label: n,
|
|
777
1114
|
onClick: s
|
|
778
1115
|
}) => {
|
|
779
|
-
const
|
|
780
|
-
|
|
1116
|
+
const c = (m) => {
|
|
1117
|
+
t || s && s(m);
|
|
781
1118
|
};
|
|
782
|
-
return /* @__PURE__ */ a.jsx("button", { disabled:
|
|
783
|
-
},
|
|
784
|
-
white:
|
|
785
|
-
black:
|
|
786
|
-
shake:
|
|
787
|
-
modal:
|
|
788
|
-
o:
|
|
789
|
-
w:
|
|
790
|
-
h:
|
|
791
|
-
l:
|
|
792
|
-
t:
|
|
793
|
-
m:
|
|
794
|
-
x:
|
|
795
|
-
s:
|
|
796
|
-
c:
|
|
797
|
-
f:
|
|
798
|
-
btn:
|
|
799
|
-
g:
|
|
1119
|
+
return /* @__PURE__ */ a.jsx("button", { disabled: t, onClick: c, children: n });
|
|
1120
|
+
}, Br = "_white_1iomo_14", Vr = "_black_1iomo_26", Gr = "_shake_1iomo_1", Hr = "_modal_1iomo_73", Jr = "_o_1iomo_83", Zr = "_w_1iomo_14", Xr = "_h_1iomo_106", qr = "_l_1iomo_120", Kr = "_t_1iomo_158", Qr = "_m_1iomo_73", en = "_x_1iomo_166", tn = "_s_1iomo_176", rn = "_c_1iomo_181", nn = "_f_1iomo_186", an = "_btn_1iomo_229", sn = "_g_1iomo_242", on = "_confirm_1iomo_320", cn = "_cancel_1iomo_325", ln = "_disabled_1iomo_330", un = "_active_1iomo_387", dn = "_coincidence_1iomo_393", U = {
|
|
1121
|
+
white: Br,
|
|
1122
|
+
black: Vr,
|
|
1123
|
+
shake: Gr,
|
|
1124
|
+
modal: Hr,
|
|
1125
|
+
o: Jr,
|
|
1126
|
+
w: Zr,
|
|
1127
|
+
h: Xr,
|
|
1128
|
+
l: qr,
|
|
1129
|
+
t: Kr,
|
|
1130
|
+
m: Qr,
|
|
1131
|
+
x: en,
|
|
1132
|
+
s: tn,
|
|
1133
|
+
c: rn,
|
|
1134
|
+
f: nn,
|
|
1135
|
+
btn: an,
|
|
1136
|
+
g: sn,
|
|
800
1137
|
"size-a": "_size-a_1iomo_294",
|
|
801
1138
|
"size-s": "_size-s_1iomo_298",
|
|
802
1139
|
"size-m": "_size-m_1iomo_302",
|
|
803
1140
|
"size-l": "_size-l_1iomo_306",
|
|
804
1141
|
"size-x": "_size-x_1iomo_310",
|
|
805
1142
|
"size-f": "_size-f_1iomo_314",
|
|
806
|
-
confirm:
|
|
807
|
-
cancel:
|
|
808
|
-
disabled:
|
|
1143
|
+
confirm: on,
|
|
1144
|
+
cancel: cn,
|
|
1145
|
+
disabled: ln,
|
|
809
1146
|
await: "_await_1iomo_337",
|
|
810
|
-
active:
|
|
811
|
-
coincidence:
|
|
1147
|
+
active: un,
|
|
1148
|
+
coincidence: dn
|
|
812
1149
|
};
|
|
813
|
-
let
|
|
814
|
-
const
|
|
815
|
-
let [
|
|
816
|
-
return
|
|
1150
|
+
let Q = {};
|
|
1151
|
+
const fn = ({ config: e }) => {
|
|
1152
|
+
let [t, n] = j.useState([]);
|
|
1153
|
+
return Q.x = () => {
|
|
817
1154
|
n([]);
|
|
818
|
-
},
|
|
819
|
-
n([...
|
|
820
|
-
}, /* @__PURE__ */ a.jsx(a.Fragment, { children:
|
|
821
|
-
},
|
|
1155
|
+
}, Q.config = e, Q.add = (s) => {
|
|
1156
|
+
n([...t, s]);
|
|
1157
|
+
}, /* @__PURE__ */ a.jsx(a.Fragment, { children: t.map((s) => s) });
|
|
1158
|
+
}, mn = ({
|
|
822
1159
|
children: e,
|
|
823
|
-
title:
|
|
1160
|
+
title: t,
|
|
824
1161
|
button: n,
|
|
825
1162
|
tabs: s,
|
|
826
|
-
size:
|
|
827
|
-
menu:
|
|
1163
|
+
size: c = "m",
|
|
1164
|
+
menu: m
|
|
828
1165
|
}) => {
|
|
829
|
-
const [
|
|
1166
|
+
const [l, d] = j.useState(!0), u = j.useRef(), f = (b) => {
|
|
830
1167
|
if (n && n.onClick)
|
|
831
|
-
return n.onClick({ closed:
|
|
832
|
-
},
|
|
1168
|
+
return n.onClick({ closed: d, disabled: b });
|
|
1169
|
+
}, h = () => {
|
|
833
1170
|
u.current.setAttribute("shake", !0), setTimeout(() => {
|
|
834
1171
|
u.current.setAttribute("shake", !1);
|
|
835
1172
|
}, 1e3);
|
|
836
1173
|
};
|
|
837
|
-
return /* @__PURE__ */ a.jsx(a.Fragment, { children:
|
|
1174
|
+
return /* @__PURE__ */ a.jsx(a.Fragment, { children: l ? /* @__PURE__ */ a.jsxs(
|
|
838
1175
|
"div",
|
|
839
1176
|
{
|
|
840
|
-
className: `${
|
|
1177
|
+
className: `${U.modal} ${U.white}`,
|
|
841
1178
|
children: [
|
|
842
|
-
/* @__PURE__ */ a.jsx("div", { className:
|
|
843
|
-
/* @__PURE__ */ a.jsxs("div", { className:
|
|
844
|
-
/* @__PURE__ */ a.jsxs("div", { className:
|
|
845
|
-
/* @__PURE__ */ a.jsx("div", { className:
|
|
846
|
-
/* @__PURE__ */ a.jsxs("div", { className:
|
|
847
|
-
s && /* @__PURE__ */ a.jsx("nav", { children: s.map((
|
|
1179
|
+
/* @__PURE__ */ a.jsx("div", { className: U.o, onClick: h }),
|
|
1180
|
+
/* @__PURE__ */ a.jsxs("div", { className: U.w, ref: u, children: [
|
|
1181
|
+
/* @__PURE__ */ a.jsxs("div", { className: U.h, children: [
|
|
1182
|
+
/* @__PURE__ */ a.jsx("div", { className: U.t, children: t }),
|
|
1183
|
+
/* @__PURE__ */ a.jsxs("div", { className: U.m, children: [
|
|
1184
|
+
s && /* @__PURE__ */ a.jsx("nav", { children: s.map((b, S) => /* @__PURE__ */ a.jsx(
|
|
848
1185
|
"span",
|
|
849
1186
|
{
|
|
850
|
-
onClick:
|
|
851
|
-
className:
|
|
852
|
-
children:
|
|
1187
|
+
onClick: b.onClick,
|
|
1188
|
+
className: b.active ? "active" : "",
|
|
1189
|
+
children: b.name
|
|
853
1190
|
},
|
|
854
|
-
|
|
1191
|
+
S
|
|
855
1192
|
)) }),
|
|
856
|
-
|
|
1193
|
+
m
|
|
857
1194
|
] }),
|
|
858
1195
|
/* @__PURE__ */ a.jsx(
|
|
859
1196
|
"div",
|
|
860
1197
|
{
|
|
861
|
-
className:
|
|
1198
|
+
className: U.x,
|
|
862
1199
|
onClick: () => {
|
|
863
|
-
|
|
1200
|
+
d(!1);
|
|
864
1201
|
},
|
|
865
1202
|
children: /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ a.jsx("path", { d: "M19.0005 4.99988L5.00045 18.9999M5.00045 4.99988L19.0005 18.9999", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round", "stroke-linejoin": "round" }) })
|
|
866
1203
|
}
|
|
@@ -868,349 +1205,149 @@ const Er = ({ config: e }) => {
|
|
|
868
1205
|
] }),
|
|
869
1206
|
e,
|
|
870
1207
|
n !== void 0 ? /* @__PURE__ */ a.jsx(
|
|
871
|
-
|
|
1208
|
+
Yr,
|
|
872
1209
|
{
|
|
873
1210
|
label: String(n.name),
|
|
874
|
-
onClick:
|
|
1211
|
+
onClick: f
|
|
875
1212
|
}
|
|
876
1213
|
) : ""
|
|
877
1214
|
] })
|
|
878
1215
|
]
|
|
879
1216
|
}
|
|
880
1217
|
) : "" });
|
|
881
|
-
},
|
|
882
|
-
|
|
883
|
-
},
|
|
884
|
-
let [s,
|
|
885
|
-
return
|
|
886
|
-
|
|
1218
|
+
}, hn = (e) => {
|
|
1219
|
+
Q.add(/* @__PURE__ */ a.jsx(pn, { children: e }, String(Date.now())));
|
|
1220
|
+
}, pn = ({ children: e }) => /* @__PURE__ */ a.jsx(a.Fragment, { children: e }), vn = ({ type: e, name: t, params: n }) => {
|
|
1221
|
+
let [s, c] = j.useState(null);
|
|
1222
|
+
return j.useEffect(() => {
|
|
1223
|
+
Q.config(e, t, n, c);
|
|
887
1224
|
}, [n.id]), /* @__PURE__ */ a.jsx(a.Fragment, { children: s });
|
|
888
|
-
},
|
|
889
|
-
|
|
890
|
-
},
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
if (C = e, localStorage.getItem("ssid")) {
|
|
895
|
-
let s = sessionStorage.getItem("page");
|
|
896
|
-
s ? (s = C.deCode(s), v.id = s.id, v.tab = s.tab, v.page = s.page, v.module = s.module, v.time = s.time, v.payment = { active: !0 }, v.module_admin = s.module_admin) : (v.id = 0, v.tab = "", v.page = "Main", v.module = v.module || "M05");
|
|
897
|
-
} else
|
|
898
|
-
[
|
|
899
|
-
"ssid",
|
|
900
|
-
"menu",
|
|
901
|
-
"temp",
|
|
902
|
-
"user",
|
|
903
|
-
"sett",
|
|
904
|
-
"qder",
|
|
905
|
-
"c",
|
|
906
|
-
"last",
|
|
907
|
-
"auth",
|
|
908
|
-
"port",
|
|
909
|
-
"mark",
|
|
910
|
-
"sort"
|
|
911
|
-
].forEach((s) => localStorage.removeItem(s)), ["page"].forEach((s) => sessionStorage.removeItem(s)), v.id = 0, v.tab = "", v.page = "Auth", v.module = "M00";
|
|
912
|
-
return r;
|
|
913
|
-
}
|
|
914
|
-
function M() {
|
|
915
|
-
[
|
|
916
|
-
"ssid",
|
|
917
|
-
"menu",
|
|
918
|
-
"temp",
|
|
919
|
-
"user",
|
|
920
|
-
"sett",
|
|
921
|
-
"qder",
|
|
922
|
-
"c",
|
|
923
|
-
"last",
|
|
924
|
-
"auth",
|
|
925
|
-
"port",
|
|
926
|
-
"mark",
|
|
927
|
-
"sort"
|
|
928
|
-
].forEach((e) => localStorage.removeItem(e)), ["page"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
|
|
929
|
-
}
|
|
930
|
-
function Nr(e) {
|
|
931
|
-
e = e.split("/"), v.page = "Main", v.module = e[0], v.tab = e[1], v.id = 0, sessionStorage.setItem(
|
|
932
|
-
"page",
|
|
933
|
-
C.enCode({
|
|
934
|
-
module: v.module,
|
|
935
|
-
page: v.page,
|
|
936
|
-
tab: v.tab,
|
|
937
|
-
id: v.id,
|
|
938
|
-
time: (/* @__PURE__ */ new Date()).getTime()
|
|
939
|
-
})
|
|
940
|
-
), P.page(v.page);
|
|
941
|
-
}
|
|
942
|
-
function Or(e) {
|
|
943
|
-
return localStorage.setItem("ssid", e);
|
|
944
|
-
}
|
|
945
|
-
function Fr() {
|
|
946
|
-
let e = localStorage.getItem("ssid");
|
|
947
|
-
return e !== "" && e !== "undefined" && e !== null ? localStorage.getItem("ssid") : (M(), !1);
|
|
948
|
-
}
|
|
949
|
-
function Mr(e) {
|
|
950
|
-
return localStorage.setItem("auth", e);
|
|
951
|
-
}
|
|
952
|
-
function Dr() {
|
|
953
|
-
let e = localStorage.getItem("auth");
|
|
954
|
-
return e !== "" && e !== "undefined" && e !== null ? e : (M(), !1);
|
|
955
|
-
}
|
|
956
|
-
function Ar(e) {
|
|
957
|
-
localStorage.setItem("port", C.enCode(e));
|
|
958
|
-
}
|
|
959
|
-
function Lr() {
|
|
960
|
-
let e = localStorage.getItem("port");
|
|
961
|
-
if (e !== "" && e !== "undefined" && e !== null) {
|
|
962
|
-
let r = C.deCode(e);
|
|
963
|
-
return r || M(), r;
|
|
964
|
-
} else
|
|
965
|
-
return M(), !1;
|
|
966
|
-
}
|
|
967
|
-
function zr() {
|
|
968
|
-
const [e, r] = k.useState(tt()), n = (s) => {
|
|
969
|
-
r(s);
|
|
970
|
-
};
|
|
971
|
-
return P.page = n, [e];
|
|
972
|
-
}
|
|
973
|
-
function Yr(e) {
|
|
974
|
-
v.page = e, sessionStorage.setItem("page", C.enCode(v)), P.page(e);
|
|
975
|
-
}
|
|
976
|
-
function tt() {
|
|
977
|
-
return v.page;
|
|
978
|
-
}
|
|
979
|
-
function Br() {
|
|
980
|
-
const [e, r] = k.useState(rt()), n = (s) => {
|
|
981
|
-
r(s);
|
|
982
|
-
};
|
|
983
|
-
return P.module = n, [e];
|
|
984
|
-
}
|
|
985
|
-
function Wr(e, r) {
|
|
986
|
-
v.module = e, sessionStorage.setItem("page", C.enCode(v)), r !== "false" && P.module(e);
|
|
987
|
-
}
|
|
988
|
-
function rt() {
|
|
989
|
-
return v.module;
|
|
990
|
-
}
|
|
991
|
-
function Vr(e) {
|
|
992
|
-
const [r, n] = k.useState(fe() || e), s = (l) => {
|
|
993
|
-
n(l);
|
|
994
|
-
};
|
|
995
|
-
return P.tabs = s, [r];
|
|
996
|
-
}
|
|
997
|
-
function Ur(e, r) {
|
|
998
|
-
v.tab = e, sessionStorage.setItem("page", C.enCode(v)), r !== "false" && P.tabs(e);
|
|
999
|
-
}
|
|
1000
|
-
function fe() {
|
|
1001
|
-
return v.tab;
|
|
1002
|
-
}
|
|
1003
|
-
function Hr() {
|
|
1004
|
-
const [e, r] = k.useState(v.id), n = (s) => {
|
|
1005
|
-
r(s);
|
|
1006
|
-
};
|
|
1007
|
-
return P.id = n, [e];
|
|
1008
|
-
}
|
|
1009
|
-
function qr(e) {
|
|
1010
|
-
P.id = e;
|
|
1011
|
-
}
|
|
1012
|
-
function Gr(e, r) {
|
|
1013
|
-
v.id = e, sessionStorage.setItem("page", C.enCode(v)), r !== "false" && P.id(e);
|
|
1014
|
-
}
|
|
1015
|
-
function Jr() {
|
|
1016
|
-
return v.id;
|
|
1017
|
-
}
|
|
1018
|
-
function Zr(e, r, n) {
|
|
1019
|
-
v.module = e, v.id = n, v.tab = r, sessionStorage.setItem("page", C.enCode(v)), P.module(e), P.tabs(r);
|
|
1020
|
-
}
|
|
1021
|
-
function Kr(e, r) {
|
|
1022
|
-
Ze.data[e] = r, localStorage.setItem("sett", C.enCode(Ze.data));
|
|
1023
|
-
}
|
|
1024
|
-
function Xr(e) {
|
|
1025
|
-
let r = localStorage.getItem("sett");
|
|
1026
|
-
return r === null ? {} : (r = C.deCode(r), r ? e !== void 0 ? r[e] : r : M());
|
|
1027
|
-
}
|
|
1028
|
-
function Qr(e) {
|
|
1029
|
-
localStorage.setItem("menu", C.enCode({ data: e }));
|
|
1030
|
-
}
|
|
1031
|
-
function en() {
|
|
1032
|
-
let e = localStorage.getItem("menu");
|
|
1033
|
-
if (e !== "" && e !== "undefined" && e !== null) {
|
|
1034
|
-
let r = localStorage.getItem("menu"), n = C.deCode(r);
|
|
1035
|
-
n || M();
|
|
1036
|
-
const s = (h, c) => {
|
|
1037
|
-
let f = c + "";
|
|
1038
|
-
for (; f.length < h; )
|
|
1039
|
-
f = "0" + f;
|
|
1040
|
-
return f;
|
|
1041
|
-
};
|
|
1042
|
-
return n.data.split(",").map((h) => "M" + s(2, h));
|
|
1043
|
-
} else
|
|
1044
|
-
return M(), !1;
|
|
1045
|
-
}
|
|
1046
|
-
function tn(e) {
|
|
1047
|
-
P.sort = e;
|
|
1048
|
-
}
|
|
1049
|
-
function nt(e) {
|
|
1050
|
-
let r = localStorage.getItem("sort");
|
|
1051
|
-
r = r === null ? {} : C.deCode(r), r[fe()] = e, localStorage.setItem("sort", C.enCode(r));
|
|
1052
|
-
}
|
|
1053
|
-
function ye() {
|
|
1054
|
-
let e = localStorage.getItem("sort");
|
|
1055
|
-
return e === null ? {} : (e = C.deCode(e), e = e[fe()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
|
|
1056
|
-
}
|
|
1057
|
-
function rn(e) {
|
|
1058
|
-
localStorage.setItem("c", C.enCode(e));
|
|
1059
|
-
}
|
|
1060
|
-
function nn(e) {
|
|
1061
|
-
let r = localStorage.getItem("c");
|
|
1062
|
-
if (r !== "" && r !== "undefined" && r !== null) {
|
|
1063
|
-
let n = C.deCode(r);
|
|
1064
|
-
return n || M(), e === void 0 ? n : n[e];
|
|
1065
|
-
} else
|
|
1066
|
-
return M(), !1;
|
|
1067
|
-
}
|
|
1068
|
-
function an(e) {
|
|
1069
|
-
H.data = e, localStorage.setItem("qder", C.enCode(H.data));
|
|
1070
|
-
}
|
|
1071
|
-
function sn(e, r) {
|
|
1072
|
-
if (!H.data) {
|
|
1073
|
-
let n = localStorage.getItem("qder");
|
|
1074
|
-
n && (H.data = C.deCode(n));
|
|
1075
|
-
}
|
|
1076
|
-
return e === void 0 && r === void 0 ? H.data : e !== void 0 && r === void 0 ? H.data[e] : H.data[e][r];
|
|
1077
|
-
}
|
|
1078
|
-
function on(e) {
|
|
1079
|
-
et.data = e;
|
|
1080
|
-
}
|
|
1081
|
-
function cn(e) {
|
|
1082
|
-
return et.data[e];
|
|
1083
|
-
}
|
|
1084
|
-
function ln(e) {
|
|
1085
|
-
v.payment = e;
|
|
1086
|
-
}
|
|
1087
|
-
function un() {
|
|
1088
|
-
return v.payment;
|
|
1089
|
-
}
|
|
1090
|
-
const fn = ({ children: e, config: r, crypto: n, ...s }) => $r(n, /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1091
|
-
/* @__PURE__ */ a.jsx(Pr.Init, { config: r.modal }),
|
|
1092
|
-
/* @__PURE__ */ a.jsx(Yt, {}),
|
|
1093
|
-
/* @__PURE__ */ a.jsx(Xt, {}),
|
|
1225
|
+
}, gn = (e, t, n) => {
|
|
1226
|
+
Q.config(e, t, n);
|
|
1227
|
+
}, _n = { List: Ur, Scroll: Wr, Init: fn, Main: mn, Add: hn, Icon: vn, Open: gn }, bn = ({ children: e, config: t, crypto: n, ...s }) => Dt(n, /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1228
|
+
/* @__PURE__ */ a.jsx(_n.Init, { config: t.modal }),
|
|
1229
|
+
/* @__PURE__ */ a.jsx(Rr, {}),
|
|
1230
|
+
/* @__PURE__ */ a.jsx(Ar, {}),
|
|
1094
1231
|
e
|
|
1095
|
-
] })),
|
|
1232
|
+
] })), xn = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("menu", { children: e }), yn = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("header", { children: [
|
|
1096
1233
|
"xz",
|
|
1097
1234
|
e
|
|
1098
|
-
] }),
|
|
1099
|
-
payment:
|
|
1235
|
+
] }), Sn = "_payment_1lxfv_1", jn = {
|
|
1236
|
+
payment: Sn
|
|
1100
1237
|
};
|
|
1101
|
-
function
|
|
1102
|
-
let [e,
|
|
1103
|
-
return !e.active && !e.payment ? "" : /* @__PURE__ */ a.jsx("div", { className:
|
|
1238
|
+
function Cn() {
|
|
1239
|
+
let [e, t] = j.useState({});
|
|
1240
|
+
return !e.active && !e.payment ? "" : /* @__PURE__ */ a.jsx("div", { className: jn.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
|
|
1104
1241
|
}
|
|
1105
|
-
const
|
|
1242
|
+
const ka = ({ children: e, ...t }) => {
|
|
1106
1243
|
let n = {};
|
|
1107
1244
|
return n.enCode = (s) => JSON.stringify(s).toString(), n.deCode = (s) => JSON.parse(s), /* @__PURE__ */ a.jsxs("div", { className: "app", children: [
|
|
1108
|
-
/* @__PURE__ */ a.jsx(
|
|
1109
|
-
/* @__PURE__ */ a.jsx(
|
|
1110
|
-
/* @__PURE__ */ a.jsx(
|
|
1111
|
-
/* @__PURE__ */ a.jsx(
|
|
1245
|
+
/* @__PURE__ */ a.jsx(Cn, {}),
|
|
1246
|
+
/* @__PURE__ */ a.jsx(xn, {}),
|
|
1247
|
+
/* @__PURE__ */ a.jsx(yn, {}),
|
|
1248
|
+
/* @__PURE__ */ a.jsx(bn, { config: { modal: {} }, crypto: n }),
|
|
1112
1249
|
e
|
|
1113
1250
|
] });
|
|
1114
|
-
},
|
|
1115
|
-
|
|
1251
|
+
}, wn = ({ list: e, onClick: t, active: n, size: s, view: c }) => /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [s, c].join(" "), children: e.map((m) => /* @__PURE__ */ a.jsx(
|
|
1252
|
+
kn,
|
|
1116
1253
|
{
|
|
1117
|
-
onClick:
|
|
1254
|
+
onClick: t,
|
|
1118
1255
|
active: n,
|
|
1119
|
-
label:
|
|
1120
|
-
link:
|
|
1256
|
+
label: m.label,
|
|
1257
|
+
link: m.link
|
|
1121
1258
|
},
|
|
1122
|
-
|
|
1123
|
-
)) }) }),
|
|
1124
|
-
|
|
1125
|
-
const
|
|
1259
|
+
m.link
|
|
1260
|
+
)) }) }), kn = ({ onClick: e, label: t, link: n, active: s }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: t });
|
|
1261
|
+
wn.defaultProps = { size: "M", view: "H" };
|
|
1262
|
+
const Rn = ({
|
|
1126
1263
|
title: e = "",
|
|
1127
|
-
button:
|
|
1264
|
+
button: t,
|
|
1128
1265
|
description: n = "",
|
|
1129
1266
|
children: s
|
|
1130
1267
|
}) => /* @__PURE__ */ a.jsxs("fieldset", { children: [
|
|
1131
1268
|
e && /* @__PURE__ */ a.jsxs("legend", { children: [
|
|
1132
1269
|
e,
|
|
1133
|
-
|
|
1270
|
+
t && /* @__PURE__ */ a.jsx(
|
|
1134
1271
|
"div",
|
|
1135
1272
|
{
|
|
1136
1273
|
role: "button-outline",
|
|
1137
|
-
onClick: () =>
|
|
1138
|
-
children:
|
|
1274
|
+
onClick: () => t.onClick(),
|
|
1275
|
+
children: t.label
|
|
1139
1276
|
}
|
|
1140
1277
|
),
|
|
1141
1278
|
" "
|
|
1142
1279
|
] }),
|
|
1143
1280
|
/* @__PURE__ */ a.jsx("ul", { children: s }),
|
|
1144
1281
|
n && /* @__PURE__ */ a.jsx("article", { children: n })
|
|
1145
|
-
] }),
|
|
1146
|
-
setting:
|
|
1147
|
-
},
|
|
1148
|
-
let [n, s] =
|
|
1282
|
+
] }), En = "_setting_1r0pc_2", Tn = {
|
|
1283
|
+
setting: En
|
|
1284
|
+
}, In = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: Tn.setting, children: e }), Pn = ({ label: e, children: t }) => {
|
|
1285
|
+
let [n, s] = j.useState(!1);
|
|
1149
1286
|
return /* @__PURE__ */ a.jsxs("li", { "data-item": "accordion", children: [
|
|
1150
1287
|
/* @__PURE__ */ a.jsxs("dl", { onClick: () => s(!n), children: [
|
|
1151
1288
|
/* @__PURE__ */ a.jsx("dt", { children: e }),
|
|
1152
1289
|
/* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx("div", { "data-close": String(n) }) })
|
|
1153
1290
|
] }),
|
|
1154
|
-
n && /* @__PURE__ */ a.jsx("div", { children:
|
|
1291
|
+
n && /* @__PURE__ */ a.jsx("div", { children: t })
|
|
1155
1292
|
] });
|
|
1156
|
-
},
|
|
1293
|
+
}, On = ({ label: e, onClick: t, button: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
|
|
1157
1294
|
/* @__PURE__ */ a.jsx("dt", { children: e }),
|
|
1158
|
-
/* @__PURE__ */ a.jsx("dd", { role: "button", onClick: () =>
|
|
1159
|
-
] }) }),
|
|
1295
|
+
/* @__PURE__ */ a.jsx("dd", { role: "button", onClick: () => t(), children: n })
|
|
1296
|
+
] }) }), Nn = ({ active: e, onClick: t }) => (console.log(e), e = typeof e == "number" ? !!e : e, /* @__PURE__ */ a.jsx(
|
|
1160
1297
|
"div",
|
|
1161
1298
|
{
|
|
1162
1299
|
role: "switch",
|
|
1163
1300
|
onClick: () => {
|
|
1164
|
-
console.log("Wewew"),
|
|
1301
|
+
console.log("Wewew"), t();
|
|
1165
1302
|
},
|
|
1166
1303
|
"aria-checked": e ? "true" : "false"
|
|
1167
1304
|
}
|
|
1168
|
-
)),
|
|
1305
|
+
)), $n = { Switch: Nn }, Fn = ({ label: e, onClick: t, active: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
|
|
1169
1306
|
/* @__PURE__ */ a.jsx("dt", { children: e }),
|
|
1170
|
-
/* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx(
|
|
1171
|
-
] }) }),
|
|
1307
|
+
/* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx($n.Switch, { onClick: t, active: n }) })
|
|
1308
|
+
] }) }), Ln = ({ label: e, active: t, options: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
|
|
1172
1309
|
/* @__PURE__ */ a.jsx("dt", { children: e }),
|
|
1173
|
-
/* @__PURE__ */ a.jsx("dd", { role: "info", children:
|
|
1174
|
-
] }) }),
|
|
1310
|
+
/* @__PURE__ */ a.jsx("dd", { role: "info", children: t })
|
|
1311
|
+
] }) }), Mn = ({ label: e, info: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
|
|
1175
1312
|
/* @__PURE__ */ a.jsx("dt", { children: e }),
|
|
1176
|
-
/* @__PURE__ */ a.jsx("dd", { role: "info", children:
|
|
1177
|
-
] }) }),
|
|
1313
|
+
/* @__PURE__ */ a.jsx("dd", { role: "info", children: t })
|
|
1314
|
+
] }) }), An = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
|
|
1178
1315
|
/* @__PURE__ */ a.jsx("dt", { children: e }),
|
|
1179
|
-
/* @__PURE__ */ a.jsx("dd", { children:
|
|
1180
|
-
] }) }),
|
|
1316
|
+
/* @__PURE__ */ a.jsx("dd", { children: t })
|
|
1317
|
+
] }) }), Dn = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
|
|
1181
1318
|
/* @__PURE__ */ a.jsx("dt", { children: e }),
|
|
1182
|
-
/* @__PURE__ */ a.jsx("dd", { children:
|
|
1183
|
-
] }) }),
|
|
1184
|
-
function
|
|
1185
|
-
return /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [s,
|
|
1186
|
-
|
|
1319
|
+
/* @__PURE__ */ a.jsx("dd", { children: t })
|
|
1320
|
+
] }) }), zn = { Accordion: Pn, Button: On, Switch: Fn, Info: Mn, Select: Ln, Component: An, Node: Dn };
|
|
1321
|
+
function lt({ list: e, onClick: t, active: n, size: s, view: c }) {
|
|
1322
|
+
return /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [s, c].join(" "), children: e.map((m) => /* @__PURE__ */ a.jsx(
|
|
1323
|
+
Un,
|
|
1187
1324
|
{
|
|
1188
|
-
onClick:
|
|
1325
|
+
onClick: t,
|
|
1189
1326
|
active: n,
|
|
1190
|
-
label:
|
|
1191
|
-
link:
|
|
1327
|
+
label: m.label,
|
|
1328
|
+
link: m.link
|
|
1192
1329
|
},
|
|
1193
|
-
|
|
1330
|
+
m.link
|
|
1194
1331
|
)) }) });
|
|
1195
1332
|
}
|
|
1196
|
-
const
|
|
1197
|
-
|
|
1198
|
-
const
|
|
1199
|
-
h:
|
|
1200
|
-
t:
|
|
1201
|
-
s:
|
|
1202
|
-
u:
|
|
1203
|
-
o:
|
|
1204
|
-
l:
|
|
1205
|
-
hh:
|
|
1206
|
-
},
|
|
1207
|
-
/* @__PURE__ */ a.jsx("div", { className:
|
|
1208
|
-
|
|
1209
|
-
] }),
|
|
1210
|
-
|
|
1333
|
+
const Un = ({ onClick: e, label: t, link: n, active: s }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: t });
|
|
1334
|
+
lt.defaultProps = { size: "M", view: "H" };
|
|
1335
|
+
const Ra = { Section: Rn, Main: In, Item: zn, Tabs: lt }, Wn = "_h_158b4_1", Yn = "_t_158b4_11", Bn = "_s_158b4_31", Vn = "_u_158b4_40", Gn = "_o_158b4_47", Hn = "_l_158b4_56", Jn = "_hh_158b4_63", Z = {
|
|
1336
|
+
h: Wn,
|
|
1337
|
+
t: Yn,
|
|
1338
|
+
s: Bn,
|
|
1339
|
+
u: Vn,
|
|
1340
|
+
o: Gn,
|
|
1341
|
+
l: Hn,
|
|
1342
|
+
hh: Jn
|
|
1343
|
+
}, tt = ({ title: e, children: t }) => /* @__PURE__ */ a.jsxs("div", { className: Z.h, children: [
|
|
1344
|
+
/* @__PURE__ */ a.jsx("div", { className: Z.t, children: e }),
|
|
1345
|
+
t
|
|
1346
|
+
] }), Zn = ({ children: e, title: t }) => /* @__PURE__ */ a.jsxs("div", { className: Z.o, children: [
|
|
1347
|
+
t && /* @__PURE__ */ a.jsx("div", { className: Z.hh, children: t }),
|
|
1211
1348
|
e
|
|
1212
|
-
] }),
|
|
1213
|
-
function
|
|
1349
|
+
] }), Xn = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: Z.u, children: e }), rt = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: Z.s, children: e }), nt = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: Z.l, children: e }), Ea = { Header: tt, Section: rt, List: nt, U: Xn, L: nt, O: Zn, S: rt, H: tt }, Ta = { Send: Er, Error: Tr, Remark: Pr, Success: Ir, Copy: Or }, Ia = { Send: zr };
|
|
1350
|
+
function qn() {
|
|
1214
1351
|
return /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ a.jsx(
|
|
1215
1352
|
"path",
|
|
1216
1353
|
{
|
|
@@ -1219,59 +1356,35 @@ function Wn() {
|
|
|
1219
1356
|
}
|
|
1220
1357
|
) });
|
|
1221
1358
|
}
|
|
1222
|
-
const
|
|
1223
|
-
|
|
1224
|
-
getSSID: Fr,
|
|
1225
|
-
getPORT: Lr,
|
|
1226
|
-
setPORT: Ar,
|
|
1227
|
-
setAUTH: Mr,
|
|
1228
|
-
getAUTH: Dr,
|
|
1229
|
-
Logaut: M,
|
|
1230
|
-
Start: Nr,
|
|
1231
|
-
setSetting: Kr,
|
|
1232
|
-
getSetting: Xr,
|
|
1233
|
-
setMenu: Qr,
|
|
1234
|
-
getMenu: en,
|
|
1235
|
-
useSort: tn,
|
|
1236
|
-
setSort: nt,
|
|
1237
|
-
getSort: ye,
|
|
1238
|
-
setCompany: rn,
|
|
1239
|
-
getCompany: nn,
|
|
1240
|
-
setSelect: an,
|
|
1241
|
-
getSelect: sn,
|
|
1242
|
-
setApi: on,
|
|
1243
|
-
getApi: cn,
|
|
1244
|
-
setPayment: ln,
|
|
1245
|
-
getPayment: un
|
|
1246
|
-
}, Sa = { Path: Zr, setPage: Yr, getPage: tt, usePage: zr, setModule: Wr, getModule: rt, useModule: Br, setTabs: Ur, getTabs: fe, useTabs: Vr, useId: Hr, setId: Gr, subId: qr, getId: Jr }, Vn = "_sort_1yrvt_1", Un = {
|
|
1247
|
-
sort: Vn
|
|
1359
|
+
const Pa = { Logo: qn }, Oa = { Path: nr, setPage: Jt, getPage: st, usePage: Ht, setModule: Xt, getModule: ot, useModule: Zt, setTabs: Kt, getTabs: he, useTabs: qt, useId: Qt, setId: tr, subId: er, getId: rr }, Kn = "_sort_1yrvt_1", Qn = {
|
|
1360
|
+
sort: Kn
|
|
1248
1361
|
};
|
|
1249
|
-
let
|
|
1250
|
-
function
|
|
1251
|
-
switch (
|
|
1362
|
+
let pe = {};
|
|
1363
|
+
function ea(e, t) {
|
|
1364
|
+
switch (t.type) {
|
|
1252
1365
|
case "active":
|
|
1253
1366
|
let n = "<";
|
|
1254
|
-
return e.active ===
|
|
1367
|
+
return e.active === t.data && (n = e.sort === "<" ? ">" : "<"), pe.get({ active: t.data, sort: n }, !1), it({ active: t.data, sort: n }), {
|
|
1255
1368
|
...e,
|
|
1256
|
-
active:
|
|
1369
|
+
active: t.data,
|
|
1257
1370
|
sort: n
|
|
1258
1371
|
};
|
|
1259
1372
|
default:
|
|
1260
1373
|
throw new Error();
|
|
1261
1374
|
}
|
|
1262
1375
|
}
|
|
1263
|
-
function
|
|
1264
|
-
const [e,
|
|
1265
|
-
|
|
1266
|
-
|
|
1376
|
+
function ta() {
|
|
1377
|
+
const [e, t] = j.useReducer(
|
|
1378
|
+
ea,
|
|
1379
|
+
Ce() === void 0 ? { active: 1, sort: "<" } : Ce()
|
|
1267
1380
|
);
|
|
1268
|
-
return /* @__PURE__ */ a.jsxs("div", { className:
|
|
1381
|
+
return /* @__PURE__ */ a.jsxs("div", { className: Qn.sort, children: [
|
|
1269
1382
|
/* @__PURE__ */ a.jsx(
|
|
1270
1383
|
"i",
|
|
1271
1384
|
{
|
|
1272
1385
|
"data-color": e.active === 1 ? "_506290" : "_b5b9cc",
|
|
1273
1386
|
"data-icon": e.active === 1 ? e.sort === "<" ? "F073" : "F072" : "F071",
|
|
1274
|
-
onClick: () =>
|
|
1387
|
+
onClick: () => t({ type: "active", data: 1 })
|
|
1275
1388
|
}
|
|
1276
1389
|
),
|
|
1277
1390
|
/* @__PURE__ */ a.jsx(
|
|
@@ -1279,7 +1392,7 @@ function qn() {
|
|
|
1279
1392
|
{
|
|
1280
1393
|
"data-color": e.active === 2 ? "_506290" : "_b5b9cc",
|
|
1281
1394
|
"data-icon": e.active === 2 ? e.sort === "<" ? "F066" : "F067" : "F074",
|
|
1282
|
-
onClick: () =>
|
|
1395
|
+
onClick: () => t({ type: "active", data: 2 })
|
|
1283
1396
|
}
|
|
1284
1397
|
),
|
|
1285
1398
|
/* @__PURE__ */ a.jsx(
|
|
@@ -1287,22 +1400,22 @@ function qn() {
|
|
|
1287
1400
|
{
|
|
1288
1401
|
"data-color": e.active === 3 ? "_506290" : "_b5b9cc",
|
|
1289
1402
|
"data-icon": e.active === 3 ? e.sort === "<" ? "F068" : "F069" : "F070",
|
|
1290
|
-
onClick: () =>
|
|
1403
|
+
onClick: () => t({ type: "active", data: 3 })
|
|
1291
1404
|
}
|
|
1292
1405
|
)
|
|
1293
1406
|
] });
|
|
1294
1407
|
}
|
|
1295
|
-
function
|
|
1296
|
-
|
|
1408
|
+
function ra(e) {
|
|
1409
|
+
pe.get = e;
|
|
1297
1410
|
}
|
|
1298
|
-
function
|
|
1299
|
-
|
|
1411
|
+
function na(e) {
|
|
1412
|
+
pe.set(e);
|
|
1300
1413
|
}
|
|
1301
|
-
function
|
|
1302
|
-
let s = 1,
|
|
1303
|
-
|
|
1304
|
-
let
|
|
1305
|
-
switch (
|
|
1414
|
+
function aa(e, t, n) {
|
|
1415
|
+
let s = 1, c = 0, m = {}, l = 50;
|
|
1416
|
+
m[s] = [];
|
|
1417
|
+
let d = {}, u = "s1a";
|
|
1418
|
+
switch (d.s1a = (f, h) => h.s1 - f.s1, d.s1d = (f, h) => f.s1 - h.s1, d.s2a = (f, h) => f.s2 - h.s2, d.s2d = (f, h) => h.s2 - f.s2, d.s3a = (f, h) => f.s3.localeCompare(h.s3), d.s3d = (f, h) => h.s3.localeCompare(f.s3), n.active) {
|
|
1306
1419
|
case 1:
|
|
1307
1420
|
u = n.sort === ">" ? "s1d" : "s1a";
|
|
1308
1421
|
break;
|
|
@@ -1313,16 +1426,16 @@ function Zn(e, r, n) {
|
|
|
1313
1426
|
u = n.sort === ">" ? "s3d" : "s3a";
|
|
1314
1427
|
break;
|
|
1315
1428
|
}
|
|
1316
|
-
return
|
|
1317
|
-
|
|
1318
|
-
}), { data:
|
|
1429
|
+
return t.sort(d[u]).forEach((f) => {
|
|
1430
|
+
c++, c <= l || (s++, c = 1, m[s] = []), m[s].push(e[f.id]);
|
|
1431
|
+
}), { data: m };
|
|
1319
1432
|
}
|
|
1320
|
-
function
|
|
1321
|
-
|
|
1433
|
+
function sa(e) {
|
|
1434
|
+
pe.count(e);
|
|
1322
1435
|
}
|
|
1323
|
-
const
|
|
1324
|
-
function
|
|
1325
|
-
|
|
1436
|
+
const Na = { Init: ta, useValue: ra, Set: na, Run: aa, Count: sa };
|
|
1437
|
+
function oa(e, t) {
|
|
1438
|
+
t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
|
|
1326
1439
|
let n = {
|
|
1327
1440
|
yyyy: e.getFullYear(),
|
|
1328
1441
|
yy: ("" + e.getFullYear()).slice(-2),
|
|
@@ -1335,24 +1448,24 @@ function Xn(e, r) {
|
|
|
1335
1448
|
_: " "
|
|
1336
1449
|
};
|
|
1337
1450
|
for (const s in n)
|
|
1338
|
-
|
|
1339
|
-
return
|
|
1340
|
-
}
|
|
1341
|
-
function
|
|
1342
|
-
let
|
|
1343
|
-
return { day: ("" + n.getFullYear()).slice(-2) + "" + ("0" + (n.getMonth() + 1)).slice(-2) + ("0" + n.getDate()).slice(-2), name: n.getDate() + " " +
|
|
1344
|
-
}
|
|
1345
|
-
const
|
|
1346
|
-
function
|
|
1347
|
-
var
|
|
1348
|
-
F = F ?? "",
|
|
1349
|
-
for (var
|
|
1350
|
-
|
|
1351
|
-
return
|
|
1451
|
+
t = t.replace(s, n[s]);
|
|
1452
|
+
return t;
|
|
1453
|
+
}
|
|
1454
|
+
function ia(e) {
|
|
1455
|
+
let t = ["Января", "Февраля", "Марта", "Апреля", "Мая", "Июня", "Июля", "Августа", "Сентября", "Октября", "Ноября", "Декабря"], n = new Date(e);
|
|
1456
|
+
return { day: ("" + n.getFullYear()).slice(-2) + "" + ("0" + (n.getMonth() + 1)).slice(-2) + ("0" + n.getDate()).slice(-2), name: n.getDate() + " " + t[n.getMonth()] };
|
|
1457
|
+
}
|
|
1458
|
+
const ca = (e) => {
|
|
1459
|
+
function t(F, z) {
|
|
1460
|
+
var V, ie, X;
|
|
1461
|
+
F = F ?? "", z = z ?? 1;
|
|
1462
|
+
for (var V = [], X = 0, ie = F.length; X < ie; )
|
|
1463
|
+
V.push(F.slice(X, X += z));
|
|
1464
|
+
return V;
|
|
1352
1465
|
}
|
|
1353
|
-
function n(F,
|
|
1354
|
-
var
|
|
1355
|
-
return
|
|
1466
|
+
function n(F, z) {
|
|
1467
|
+
var V = [2, 0, 1, 1, 1, 2];
|
|
1468
|
+
return z[F > 4 && F < 20 ? 2 : V[Math.min(F, 5)]];
|
|
1356
1469
|
}
|
|
1357
1470
|
var s = {
|
|
1358
1471
|
null: "ноль",
|
|
@@ -1416,43 +1529,43 @@ const ea = (e) => {
|
|
|
1416
1529
|
u3: ["тысяча", "тысячи", "тысяч"],
|
|
1417
1530
|
u2: ["миллион", "миллиона", "миллионов"],
|
|
1418
1531
|
u1: ["миллиард", "миллиарда", "миллиардов"]
|
|
1419
|
-
},
|
|
1420
|
-
|
|
1532
|
+
}, c, m, l, d, $, u, f, ee, h, b, S, T;
|
|
1533
|
+
h = parseFloat(e).toFixed(2).split("."), u = h[0], d = h[1];
|
|
1421
1534
|
var N = 12 - u.length;
|
|
1422
1535
|
if (N < 0)
|
|
1423
1536
|
return !1;
|
|
1424
|
-
for (var
|
|
1425
|
-
|
|
1426
|
-
u =
|
|
1427
|
-
var
|
|
1537
|
+
for (var ee = []; N--; )
|
|
1538
|
+
ee.push("0");
|
|
1539
|
+
u = ee.join("") + u;
|
|
1540
|
+
var $ = [];
|
|
1428
1541
|
if (u > 0) {
|
|
1429
|
-
|
|
1430
|
-
for (var
|
|
1431
|
-
if (
|
|
1432
|
-
s.a20[
|
|
1433
|
-
) :
|
|
1434
|
-
|
|
1435
|
-
),
|
|
1436
|
-
var R = s["u" + (
|
|
1437
|
-
|
|
1542
|
+
b = t(u, 3);
|
|
1543
|
+
for (var I = -1; I < b.length; I++)
|
|
1544
|
+
if (f = b[I], f > 0 && (S = t(f, 1), c = parseInt(S[0]), m = parseInt(S[1]), l = parseInt(S[2]), $.push(s.a100[c - 1]), T = I + 1 == 3 ? "a2" : "a1", m > 1 ? $.push(
|
|
1545
|
+
s.a20[m - 2] + (l > 0 ? " " + s[T][l - 1] : "")
|
|
1546
|
+
) : $.push(
|
|
1547
|
+
m > 0 ? s.a10[l] : s[T][l - 1]
|
|
1548
|
+
), b.length > I + 1)) {
|
|
1549
|
+
var R = s["u" + (I + 1)];
|
|
1550
|
+
$.push(n(f, R));
|
|
1438
1551
|
}
|
|
1439
1552
|
} else
|
|
1440
|
-
|
|
1441
|
-
return
|
|
1553
|
+
$.push(s.null);
|
|
1554
|
+
return $.push(n(u, s.ur)), $.push(d + " " + n(d, s.uc)), $.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
|
|
1442
1555
|
};
|
|
1443
|
-
function
|
|
1444
|
-
let
|
|
1556
|
+
function la(e) {
|
|
1557
|
+
let t = -1, n = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
|
|
1445
1558
|
do
|
|
1446
|
-
e = e / 1024,
|
|
1559
|
+
e = e / 1024, t++;
|
|
1447
1560
|
while (e > 1024);
|
|
1448
|
-
return Math.max(e, 0.1).toFixed(1) + n[
|
|
1561
|
+
return Math.max(e, 0.1).toFixed(1) + n[t];
|
|
1449
1562
|
}
|
|
1450
|
-
function
|
|
1451
|
-
let
|
|
1452
|
-
return
|
|
1563
|
+
function ua(e) {
|
|
1564
|
+
let t = {};
|
|
1565
|
+
return t["application/atom+xml"] = "atom", t["application/json"] = "json", t["application/javascript"] = "js", t["application/ogg"] = "ogg", t["application/pdf"] = "pdf", t["application/soap+xml"] = "soap", t["application/font-woff"] = "woff", t["application/xhtml+xml"] = "xml", t["application/xml-dtd"] = "dtd", t["application/xop+xml"] = "xop", t["application/zip"] = "zip", t["application/gzip"] = "gzip", t["application/x-bittorrent"] = "bittorrent", t["application/x-tex"] = "tex", t["application/xml"] = "xml", t["application/msword"] = "doc", t["image/svg+xml"] = "svg", t[e];
|
|
1453
1566
|
}
|
|
1454
|
-
function
|
|
1455
|
-
let
|
|
1567
|
+
function da(e, t, n, s) {
|
|
1568
|
+
let c = {
|
|
1456
1569
|
sexM: "m",
|
|
1457
1570
|
sexF: "f",
|
|
1458
1571
|
gcaseIm: "nominative",
|
|
@@ -1553,100 +1666,100 @@ function na(e, r, n, s) {
|
|
|
1553
1666
|
this.initialized || (this.prepareRules(), this.initialized = !0);
|
|
1554
1667
|
},
|
|
1555
1668
|
prepareRules: function() {
|
|
1556
|
-
for (var
|
|
1557
|
-
for (var
|
|
1558
|
-
for (var u = 0,
|
|
1559
|
-
this.rules[
|
|
1560
|
-
this.rules[
|
|
1669
|
+
for (var l in this.rules)
|
|
1670
|
+
for (var d in this.rules[l])
|
|
1671
|
+
for (var u = 0, f = this.rules[l][d].length; u < f; u++)
|
|
1672
|
+
this.rules[l][d][u] = this.rule(
|
|
1673
|
+
this.rules[l][d][u]
|
|
1561
1674
|
);
|
|
1562
1675
|
},
|
|
1563
|
-
rule: function(
|
|
1564
|
-
var
|
|
1676
|
+
rule: function(l) {
|
|
1677
|
+
var d = l.match(
|
|
1565
1678
|
/^\s*([fm]?)\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s*$/
|
|
1566
1679
|
);
|
|
1567
|
-
return
|
|
1568
|
-
sex:
|
|
1569
|
-
test:
|
|
1570
|
-
mods: [
|
|
1680
|
+
return d ? {
|
|
1681
|
+
sex: d[1],
|
|
1682
|
+
test: d[2].split(","),
|
|
1683
|
+
mods: [d[3], d[4], d[5], d[6], d[7]]
|
|
1571
1684
|
} : !1;
|
|
1572
1685
|
},
|
|
1573
1686
|
// склоняем слово по указанному набору правил и исключений
|
|
1574
|
-
word: function(
|
|
1575
|
-
if (
|
|
1576
|
-
return
|
|
1577
|
-
if (
|
|
1578
|
-
for (var
|
|
1579
|
-
|
|
1580
|
-
return
|
|
1687
|
+
word: function(l, d, u, f) {
|
|
1688
|
+
if (f === this.gcaseNom)
|
|
1689
|
+
return l;
|
|
1690
|
+
if (l.match(/[-]/)) {
|
|
1691
|
+
for (var h = l.split("-"), b = 0, S = h.length; b < S; b++)
|
|
1692
|
+
h[b] = this.word(h[b], d, u, f);
|
|
1693
|
+
return h.join("-");
|
|
1581
1694
|
}
|
|
1582
|
-
if (
|
|
1583
|
-
return
|
|
1695
|
+
if (l.match(/^[А-ЯЁ]\.?$/i))
|
|
1696
|
+
return l;
|
|
1584
1697
|
this.init();
|
|
1585
|
-
var
|
|
1698
|
+
var T = this.rules[u];
|
|
1586
1699
|
let N;
|
|
1587
|
-
return
|
|
1700
|
+
return T.exceptions && (N = this.pick(l, d, f, T.exceptions, !0), N) ? N : (N = this.pick(l, d, f, T.suffixes, !1), N || l);
|
|
1588
1701
|
},
|
|
1589
1702
|
// выбираем из списка правил первое подходящее и применяем
|
|
1590
|
-
pick: function(
|
|
1591
|
-
let
|
|
1592
|
-
for (var
|
|
1593
|
-
if (this.ruleMatch(
|
|
1594
|
-
return this.applyMod(
|
|
1703
|
+
pick: function(l, d, u, f, h) {
|
|
1704
|
+
let b = l.toLowerCase();
|
|
1705
|
+
for (var S = 0, T = f.length; S < T; S++)
|
|
1706
|
+
if (this.ruleMatch(b, d, f[S], h))
|
|
1707
|
+
return this.applyMod(l, u, f[S]);
|
|
1595
1708
|
return !1;
|
|
1596
1709
|
},
|
|
1597
1710
|
// проверяем, подходит ли правило к слову
|
|
1598
|
-
ruleMatch: function(
|
|
1599
|
-
if (u.sex === this.sexM &&
|
|
1711
|
+
ruleMatch: function(l, d, u, f) {
|
|
1712
|
+
if (u.sex === this.sexM && d === this.sexF || u.sex === this.sexF && d !== this.sexF)
|
|
1600
1713
|
return !1;
|
|
1601
|
-
for (var
|
|
1602
|
-
var
|
|
1603
|
-
Math.max(
|
|
1714
|
+
for (var h = 0, b = u.test.length; h < b; h++) {
|
|
1715
|
+
var S = f ? l : l.substr(
|
|
1716
|
+
Math.max(l.length - u.test[h].length, 0)
|
|
1604
1717
|
);
|
|
1605
|
-
if (
|
|
1718
|
+
if (S === u.test[h])
|
|
1606
1719
|
return !0;
|
|
1607
1720
|
}
|
|
1608
1721
|
return !1;
|
|
1609
1722
|
},
|
|
1610
1723
|
// склоняем слово (правим окончание)
|
|
1611
|
-
applyMod: function(
|
|
1612
|
-
let
|
|
1613
|
-
switch (
|
|
1724
|
+
applyMod: function(l, d, u) {
|
|
1725
|
+
let f;
|
|
1726
|
+
switch (d) {
|
|
1614
1727
|
case this.gcaseNom:
|
|
1615
|
-
|
|
1728
|
+
f = ".";
|
|
1616
1729
|
break;
|
|
1617
1730
|
case this.gcaseGen:
|
|
1618
|
-
|
|
1731
|
+
f = u.mods[0];
|
|
1619
1732
|
break;
|
|
1620
1733
|
case this.gcaseDat:
|
|
1621
|
-
|
|
1734
|
+
f = u.mods[1];
|
|
1622
1735
|
break;
|
|
1623
1736
|
case this.gcaseAcc:
|
|
1624
|
-
|
|
1737
|
+
f = u.mods[2];
|
|
1625
1738
|
break;
|
|
1626
1739
|
case this.gcaseIns:
|
|
1627
|
-
|
|
1740
|
+
f = u.mods[3];
|
|
1628
1741
|
break;
|
|
1629
1742
|
case this.gcasePos:
|
|
1630
|
-
|
|
1743
|
+
f = u.mods[4];
|
|
1631
1744
|
break;
|
|
1632
1745
|
}
|
|
1633
|
-
for (var
|
|
1634
|
-
var
|
|
1635
|
-
switch (
|
|
1746
|
+
for (var h = 0, b = f.length; h < b; h++) {
|
|
1747
|
+
var S = f.substr(h, 1);
|
|
1748
|
+
switch (S) {
|
|
1636
1749
|
case ".":
|
|
1637
1750
|
break;
|
|
1638
1751
|
case "-":
|
|
1639
|
-
|
|
1752
|
+
l = l.substr(0, l.length - 1);
|
|
1640
1753
|
break;
|
|
1641
1754
|
default:
|
|
1642
|
-
|
|
1755
|
+
l += S;
|
|
1643
1756
|
}
|
|
1644
1757
|
}
|
|
1645
|
-
return
|
|
1758
|
+
return l;
|
|
1646
1759
|
},
|
|
1647
1760
|
getSex: () => {
|
|
1648
|
-
if (
|
|
1649
|
-
switch (
|
|
1761
|
+
if (c.mn.length > 2)
|
|
1762
|
+
switch (c.mn.substr(c.mn.length - 2)) {
|
|
1650
1763
|
case "ич":
|
|
1651
1764
|
return "m";
|
|
1652
1765
|
case "на":
|
|
@@ -1654,31 +1767,31 @@ function na(e, r, n, s) {
|
|
|
1654
1767
|
}
|
|
1655
1768
|
return "";
|
|
1656
1769
|
},
|
|
1657
|
-
fullName: (
|
|
1658
|
-
lastName: (
|
|
1659
|
-
firstName: (
|
|
1660
|
-
middleName: (
|
|
1770
|
+
fullName: (l) => ((c.fullNameSurnameLast ? "" : c.lastName(l) + " ") + c.firstName(l) + " " + c.middleName(l) + (c.fullNameSurnameLast ? " " + c.lastName(l) : "")).replace(/^ +| +$/g, ""),
|
|
1771
|
+
lastName: (l) => c.word(c.ln, c.sex, "lastName", l),
|
|
1772
|
+
firstName: (l) => c.word(c.fn, c.sex, "firstName", l),
|
|
1773
|
+
middleName: (l) => c.word(c.mn, c.sex, "middleName", l)
|
|
1661
1774
|
};
|
|
1662
|
-
if (typeof
|
|
1663
|
-
var
|
|
1664
|
-
if (!
|
|
1775
|
+
if (typeof t > "u") {
|
|
1776
|
+
var m = e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);
|
|
1777
|
+
if (!m)
|
|
1665
1778
|
return "Cannot parse supplied name";
|
|
1666
|
-
|
|
1779
|
+
m[5] && m[3].match(/(ич|на)$/) && !m[5].match(/(ич|на)$/) ? (e = m[5], t = m[1], n = m[3], c.fullNameSurnameLast = !0) : (e = m[1], t = m[3], n = m[5]);
|
|
1667
1780
|
}
|
|
1668
|
-
return
|
|
1781
|
+
return c.ln = e, c.fn = t || "", c.mn = n || "", c.sex = s || c.getSex(), c;
|
|
1669
1782
|
}
|
|
1670
|
-
function
|
|
1671
|
-
let
|
|
1672
|
-
switch (
|
|
1783
|
+
function fa(e) {
|
|
1784
|
+
let t = e.split(" ");
|
|
1785
|
+
switch (t.length) {
|
|
1673
1786
|
case 2:
|
|
1674
|
-
return
|
|
1787
|
+
return t[0] + " " + t[1].substring(0, 1) + ".";
|
|
1675
1788
|
case 3:
|
|
1676
|
-
return
|
|
1789
|
+
return t[0] + " " + t[1].substring(0, 1) + "." + t[2].substring(0, 1) + ".";
|
|
1677
1790
|
default:
|
|
1678
1791
|
return e;
|
|
1679
1792
|
}
|
|
1680
1793
|
}
|
|
1681
|
-
function
|
|
1794
|
+
function ma(e) {
|
|
1682
1795
|
return {
|
|
1683
1796
|
1: { val: "01", name: "Январь", names: "Января", abc: "Янв" },
|
|
1684
1797
|
2: { val: "02", name: "Февраль", names: "Февраля", abc: "Февр" },
|
|
@@ -1694,75 +1807,95 @@ function sa(e) {
|
|
|
1694
1807
|
12: { val: "12", name: "Декабрь", names: "Декабря", abc: "Дек" }
|
|
1695
1808
|
}[e];
|
|
1696
1809
|
}
|
|
1697
|
-
function
|
|
1810
|
+
function ha(e) {
|
|
1698
1811
|
return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
|
|
1699
1812
|
}
|
|
1700
|
-
function
|
|
1701
|
-
let n =
|
|
1813
|
+
function pa(e, t) {
|
|
1814
|
+
let n = t + "";
|
|
1702
1815
|
for (; n.length < e; )
|
|
1703
1816
|
n = "0" + n;
|
|
1704
1817
|
return n;
|
|
1705
1818
|
}
|
|
1706
|
-
function
|
|
1707
|
-
let s =
|
|
1819
|
+
function va(e, t, n) {
|
|
1820
|
+
let s = t / e * n;
|
|
1708
1821
|
return (typeof s != "number" || s === 1 / 0) && (s = 0), parseFloat(s).toFixed(1);
|
|
1709
1822
|
}
|
|
1710
|
-
function
|
|
1823
|
+
function ga(e) {
|
|
1711
1824
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
1712
1825
|
}
|
|
1713
|
-
const
|
|
1714
|
-
Date:
|
|
1715
|
-
MoneyString:
|
|
1716
|
-
DateSort:
|
|
1717
|
-
Size:
|
|
1718
|
-
TypeFiles:
|
|
1719
|
-
Cases:
|
|
1720
|
-
Initials:
|
|
1721
|
-
Month:
|
|
1722
|
-
Money:
|
|
1723
|
-
Number:
|
|
1724
|
-
Percent:
|
|
1725
|
-
CapitalizeFirstLetter:
|
|
1726
|
-
},
|
|
1727
|
-
function
|
|
1728
|
-
|
|
1729
|
-
}
|
|
1730
|
-
function
|
|
1731
|
-
|
|
1732
|
-
}
|
|
1733
|
-
const
|
|
1734
|
-
function
|
|
1735
|
-
const [n, s] =
|
|
1736
|
-
return
|
|
1737
|
-
if (
|
|
1738
|
-
return
|
|
1739
|
-
|
|
1826
|
+
const $a = {
|
|
1827
|
+
Date: oa,
|
|
1828
|
+
MoneyString: ca,
|
|
1829
|
+
DateSort: ia,
|
|
1830
|
+
Size: la,
|
|
1831
|
+
TypeFiles: ua,
|
|
1832
|
+
Cases: da,
|
|
1833
|
+
Initials: fa,
|
|
1834
|
+
Month: ma,
|
|
1835
|
+
Money: ha,
|
|
1836
|
+
Number: pa,
|
|
1837
|
+
Percent: va,
|
|
1838
|
+
CapitalizeFirstLetter: ga
|
|
1839
|
+
}, ke = {};
|
|
1840
|
+
function _a(e, t) {
|
|
1841
|
+
ke[e] = t;
|
|
1842
|
+
}
|
|
1843
|
+
function ba(e, t) {
|
|
1844
|
+
ke[e] !== void 0 && ke[e](t);
|
|
1845
|
+
}
|
|
1846
|
+
const W = {};
|
|
1847
|
+
function xa(e, t) {
|
|
1848
|
+
const [n, s] = j.useState(t);
|
|
1849
|
+
return j.useEffect(() => {
|
|
1850
|
+
if (W[e])
|
|
1851
|
+
return W[e].push(s);
|
|
1852
|
+
W[e] = [s];
|
|
1740
1853
|
}, []), [n];
|
|
1741
1854
|
}
|
|
1742
|
-
function
|
|
1743
|
-
if (
|
|
1744
|
-
return
|
|
1745
|
-
|
|
1855
|
+
function ya(e, t) {
|
|
1856
|
+
if (W[e])
|
|
1857
|
+
return W[e].push(t);
|
|
1858
|
+
W[e] = [t];
|
|
1746
1859
|
}
|
|
1747
|
-
function
|
|
1748
|
-
|
|
1860
|
+
function Sa(e, t) {
|
|
1861
|
+
W[e] && W[e].forEach((n) => n(t));
|
|
1862
|
+
}
|
|
1863
|
+
const Fa = { setListener: ba, useListener: _a, setEmitter: Sa, useEmitter: xa, subEmitter: ya }, me = {}, ut = {};
|
|
1864
|
+
function ja(e) {
|
|
1865
|
+
const [t, n] = j.useState({}), s = async (c) => {
|
|
1866
|
+
n(
|
|
1867
|
+
Object.keys(me).reduce((m, l) => (m ? m[l] = me[l].all : m = {}, m), {})
|
|
1868
|
+
);
|
|
1869
|
+
};
|
|
1870
|
+
return j.useEffect(() => {
|
|
1871
|
+
e.forEach((c) => me[c] = { all: 0 }), ut.menu = s, s();
|
|
1872
|
+
}, [e]), t;
|
|
1873
|
+
}
|
|
1874
|
+
function Ca(e, t) {
|
|
1875
|
+
switch (typeof t) {
|
|
1876
|
+
case "number":
|
|
1877
|
+
me[e].all += t, ut.menu();
|
|
1878
|
+
break;
|
|
1879
|
+
}
|
|
1749
1880
|
}
|
|
1750
|
-
const
|
|
1881
|
+
const La = { useMenu: ja, setUpdate: Ca };
|
|
1751
1882
|
export {
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
Ea as
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1883
|
+
$n as Action,
|
|
1884
|
+
Ia as Alert,
|
|
1885
|
+
B as Api,
|
|
1886
|
+
La as Badge,
|
|
1887
|
+
ka as Browser,
|
|
1888
|
+
Yr as Button,
|
|
1889
|
+
Ea as Component,
|
|
1890
|
+
Fa as Event,
|
|
1891
|
+
$a as Format,
|
|
1892
|
+
Pa as Icon,
|
|
1893
|
+
bn as Init,
|
|
1894
|
+
_n as Modal,
|
|
1895
|
+
Ta as Notice,
|
|
1896
|
+
Oa as Router,
|
|
1897
|
+
Ra as Setting,
|
|
1898
|
+
L as Store,
|
|
1899
|
+
wn as Tabs,
|
|
1900
|
+
Na as Triage
|
|
1768
1901
|
};
|