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