elcrm 0.4.1 → 0.4.2

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