@elcrm/telegram 0.0.57 → 0.0.59

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.
Files changed (47) hide show
  1. package/dist/Action/index.d.ts +0 -1
  2. package/dist/Alert/index.d.ts +0 -1
  3. package/dist/Api/index.d.ts +0 -1
  4. package/dist/Badge/index.d.ts +0 -1
  5. package/dist/Button/Button.d.ts +2 -1
  6. package/dist/Company/Company.d.ts +0 -1
  7. package/dist/Company/index.d.ts +0 -1
  8. package/dist/Component/index.d.ts +0 -1
  9. package/dist/Event/index.d.ts +0 -1
  10. package/dist/Filter/index.d.ts +0 -1
  11. package/dist/Form/RandomIntFromInterval.d.ts +1 -0
  12. package/dist/Form/index.d.ts +0 -1
  13. package/dist/Header/Header.d.ts +0 -1
  14. package/dist/Icon/index.d.ts +0 -1
  15. package/dist/Input/index.d.ts +0 -1
  16. package/dist/List/index.d.ts +0 -1
  17. package/dist/Loading/index.d.ts +0 -1
  18. package/dist/Main/Main.d.ts +0 -1
  19. package/dist/Menu/Menu.d.ts +0 -1
  20. package/dist/Modal/Modal.d.ts +0 -1
  21. package/dist/Modal/index.d.ts +0 -1
  22. package/dist/Notice/index.d.ts +0 -1
  23. package/dist/Notifications/index.d.ts +0 -1
  24. package/dist/Pagination/index.d.ts +0 -1
  25. package/dist/Payment/index.d.ts +0 -1
  26. package/dist/Phone/index.d.ts +0 -1
  27. package/dist/Router/index.d.ts +0 -1
  28. package/dist/Scrolling/index.d.ts +0 -1
  29. package/dist/Search/index.d.ts +0 -1
  30. package/dist/Setting/Item/Accordion.d.ts +0 -1
  31. package/dist/Setting/Item/Button.d.ts +0 -1
  32. package/dist/Setting/Item/index.d.ts +0 -1
  33. package/dist/Setting/Main.d.ts +0 -1
  34. package/dist/Setting/Section.d.ts +0 -1
  35. package/dist/Setting/index.d.ts +0 -1
  36. package/dist/Sistym/index.d.ts +0 -1
  37. package/dist/Socket/index.d.ts +0 -1
  38. package/dist/Store/Store.d.ts +0 -1
  39. package/dist/Store/index.d.ts +0 -1
  40. package/dist/Switch/index.d.ts +0 -1
  41. package/dist/Telegram/index.d.ts +0 -1
  42. package/dist/Triage/index.d.ts +0 -1
  43. package/dist/User/index.d.ts +0 -1
  44. package/dist/index.css +1 -1
  45. package/dist/index.es.js +1038 -1064
  46. package/dist/index.umd.js +13 -13
  47. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,29 +1,29 @@
1
1
  import './index.css';var ur = Object.defineProperty;
2
2
  var dr = (e, t, n) => t in e ? ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var Qe = (e, t, n) => (dr(e, typeof t != "symbol" ? t + "" : t, n), n);
3
+ var Xe = (e, t, n) => dr(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import y from "react";
5
- let ct = {};
5
+ let lt = {};
6
6
  const fr = (e) => {
7
- ct = e;
8
- }, hr = (e) => ct.enCode(e), mr = (e) => ct.deCode(e), I = { enCode: hr, deCode: mr, New: fr }, w = {}, W = {}, ye = {}, tn = {}, te = {};
9
- let ut = "M06";
7
+ lt = e;
8
+ }, hr = (e) => lt.enCode(e), mr = (e) => lt.deCode(e), T = { enCode: hr, deCode: mr, New: fr }, w = {}, U = {}, _e = {}, tn = {}, te = {};
9
+ let ct = "M06";
10
10
  function gr(e) {
11
- ut = e;
11
+ ct = e;
12
12
  }
13
13
  function pr() {
14
- return ut;
14
+ return ct;
15
15
  }
16
16
  function xr(e) {
17
17
  if (localStorage.getItem("d")) {
18
18
  let n = sessionStorage.getItem("f");
19
- n ? (n = I.deCode(n), n || H(), w.id = n.id, w.tab = n.tab, w.page = n.page, w.module = n.module, w.time = n.time, w.payment = { active: !0 }, w.module_admin = n.module_admin) : (w.id = 0, w.tab = "", w.page = "Main", w.module = w.module || ut);
19
+ n ? (n = T.deCode(n), n || Z(), w.id = n.id, w.tab = n.tab, w.page = n.page, w.module = n.module, w.time = n.time, w.payment = { active: !0 }, w.module_admin = n.module_admin) : (w.id = 0, w.tab = "", w.page = "Main", w.module = w.module || ct);
20
20
  } else
21
21
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
22
22
  (n) => localStorage.removeItem(n)
23
23
  ), ["f"].forEach((n) => sessionStorage.removeItem(n)), w.id = 0, w.tab = "", w.page = "Auth", w.module = "M00";
24
24
  return e;
25
25
  }
26
- function H() {
26
+ function Z() {
27
27
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
28
28
  (e) => localStorage.removeItem(e)
29
29
  ), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
@@ -31,51 +31,51 @@ function H() {
31
31
  function vr(e) {
32
32
  e = e.split("/"), w.page = "Main", w.module = e[0], w.tab = e[1], w.id = 0, sessionStorage.setItem(
33
33
  "f",
34
- I.enCode({
34
+ T.enCode({
35
35
  module: w.module,
36
36
  page: w.page,
37
37
  tab: w.tab,
38
38
  id: w.id,
39
39
  time: (/* @__PURE__ */ new Date()).getTime()
40
40
  })
41
- ), W.page(w.page);
41
+ ), U.page(w.page);
42
42
  }
43
- function br(e) {
43
+ function jr(e) {
44
44
  return localStorage.setItem("d", e);
45
45
  }
46
- function jr() {
46
+ function br() {
47
47
  let e = localStorage.getItem("d");
48
48
  return e !== "" && e !== "undefined" && e !== null ? e : "";
49
49
  }
50
50
  function Cr(e) {
51
51
  return localStorage.setItem("a", e);
52
52
  }
53
- function _r() {
53
+ function yr() {
54
54
  let e = localStorage.getItem("a");
55
55
  return e !== "" && e !== "undefined" && e !== null ? e : "";
56
56
  }
57
- function yr(e) {
58
- localStorage.setItem("p", I.enCode(e));
57
+ function _r(e) {
58
+ localStorage.setItem("p", T.enCode(e));
59
59
  }
60
60
  function et() {
61
61
  let e = localStorage.getItem("p");
62
62
  if (e !== "" && e !== "undefined" && e !== null) {
63
- let t = I.deCode(e);
64
- return t || H(), t;
63
+ let t = T.deCode(e);
64
+ return t || Z(), t;
65
65
  } else
66
- return H(), !1;
66
+ return Z(), !1;
67
67
  }
68
68
  function wr(e) {
69
69
  if (typeof e != "function") {
70
70
  const [t, n] = y.useState(e || nn()), s = (a) => {
71
71
  n(a);
72
72
  };
73
- return W.page = s, [t];
73
+ return U.page = s, [t];
74
74
  } else
75
- W.page = e;
75
+ U.page = e;
76
76
  }
77
77
  function kr(e, t = !0) {
78
- w.page = e, sessionStorage.setItem("f", I.enCode(w)), t && W.page(e);
78
+ w.page = e, sessionStorage.setItem("f", T.enCode(w)), t && U.page(e);
79
79
  }
80
80
  function nn() {
81
81
  return w.page;
@@ -88,55 +88,55 @@ function Er(e) {
88
88
  const [t, n] = y.useState(e || rn()), s = (a) => {
89
89
  n(a);
90
90
  };
91
- return W.module = s, [t];
91
+ return U.module = s, [t];
92
92
  } else
93
- W.module = e;
93
+ U.module = e;
94
94
  }
95
- function Tr(e, t = !0) {
96
- w.module = e, sessionStorage.setItem("f", I.enCode(w)), t && W.module(e);
95
+ function Dr(e, t = !0) {
96
+ w.module = e, sessionStorage.setItem("f", T.enCode(w)), t && U.module(e);
97
97
  }
98
98
  function rn() {
99
99
  return w.module;
100
100
  }
101
- function Rr(e) {
101
+ function Mr(e) {
102
102
  return w.module === e;
103
103
  }
104
- function Br(e) {
104
+ function $r(e) {
105
105
  if (typeof e != "function") {
106
106
  const [t, n] = y.useState(e || Ae()), [s, a] = y.useState(!1);
107
107
  return y.useEffect(() => {
108
108
  a(!0);
109
- }, []), W.tabs = n, [t, s];
109
+ }, []), U.tabs = n, [t, s];
110
110
  } else
111
- W.tabs = e;
111
+ U.tabs = e;
112
112
  }
113
- function Nr(e, t = !0) {
114
- if (w.tab = e, sessionStorage.setItem("f", I.enCode(w)), !!t)
115
- if (W.tabs)
116
- W.tabs(e);
113
+ function Rr(e, t = !0) {
114
+ if (w.tab = e, sessionStorage.setItem("f", T.enCode(w)), !!t)
115
+ if (U.tabs)
116
+ U.tabs(e);
117
117
  else
118
118
  throw new Error("useTabs not found");
119
119
  }
120
120
  function Ae() {
121
121
  return w.tab;
122
122
  }
123
- function Ir(e) {
123
+ function Tr(e) {
124
124
  return w.tab === e;
125
125
  }
126
- function Dr(e) {
126
+ function Br(e) {
127
127
  if (typeof e != "function") {
128
128
  const [t, n] = y.useState(e || sn()), s = (a) => {
129
129
  n(a);
130
130
  };
131
- return W.id = s, [t];
131
+ return U.id = s, [t];
132
132
  } else
133
- W.id = e;
133
+ U.id = e;
134
134
  }
135
- function Mr(e) {
136
- W.id = e;
135
+ function Ir(e) {
136
+ U.id = e;
137
137
  }
138
- function $r(e, t = !0) {
139
- w.id = e, sessionStorage.setItem("f", I.enCode(w)), t && W.id(e);
138
+ function Nr(e, t = !0) {
139
+ w.id = e, sessionStorage.setItem("f", T.enCode(w)), t && U.id(e);
140
140
  }
141
141
  function sn() {
142
142
  return w.id;
@@ -145,103 +145,101 @@ function Fr(e) {
145
145
  return Number(w.id) === e;
146
146
  }
147
147
  function Pr(e, t, n) {
148
- w.module = e, w.id = n, w.tab = t, sessionStorage.setItem("f", I.enCode(w)), W.module(e), W.tabs(t);
148
+ w.module = e, w.id = n, w.tab = t, sessionStorage.setItem("f", T.enCode(w)), U.module(e), U.tabs(t);
149
149
  }
150
150
  function Or(e) {
151
- ye.data = e[0], delete ye.data.id, document.body.dataset.theme = ye.data.s15, localStorage.setItem("s", I.enCode(ye.data));
151
+ _e.data = e[0], delete _e.data.id, document.body.dataset.theme = _e.data.s15, localStorage.setItem("s", T.enCode(_e.data));
152
152
  }
153
153
  function Lr(e, t) {
154
- ye.data[e] = t, localStorage.setItem("s", I.enCode(ye.data));
154
+ _e.data[e] = t, localStorage.setItem("s", T.enCode(_e.data));
155
155
  }
156
156
  function Ar(e) {
157
157
  let t = localStorage.getItem("s");
158
- return t === null ? {} : (t = I.deCode(t), t ? e !== void 0 ? t[e] : t : H());
158
+ return t === null ? {} : (t = T.deCode(t), t ? e !== void 0 ? t[e] : t : Z());
159
159
  }
160
160
  function an(e) {
161
- localStorage.setItem("m", I.enCode({ data: e }));
161
+ localStorage.setItem("m", T.enCode({ data: e }));
162
162
  }
163
- function zr() {
163
+ function Wr() {
164
164
  let e = localStorage.getItem("m");
165
165
  if (e !== "" && e !== "undefined" && e !== null) {
166
- let t = localStorage.getItem("m"), n = I.deCode(t);
167
- n || H();
166
+ let t = localStorage.getItem("m"), n = T.deCode(t);
167
+ n || Z();
168
168
  const s = (i, l) => {
169
169
  let c = l + "";
170
- for (; c.length < i; )
171
- c = "0" + c;
170
+ for (; c.length < i; ) c = "0" + c;
172
171
  return c;
173
172
  };
174
173
  return n.data.split(",").map((i) => "M" + s(2, i));
175
174
  } else
176
- return H(), !1;
175
+ return Z(), !1;
177
176
  }
178
- function Wr(e) {
179
- W.sort = e;
177
+ function Ur(e) {
178
+ U.sort = e;
180
179
  }
181
180
  function on(e) {
182
181
  let t = localStorage.getItem("b");
183
- t = t === null ? {} : I.deCode(t), t[Ae()] = e, localStorage.setItem("b", I.enCode(t));
182
+ t = t === null ? {} : T.deCode(t), t[Ae()] = e, localStorage.setItem("b", T.enCode(t));
184
183
  }
185
184
  function tt() {
186
185
  let e = localStorage.getItem("b");
187
- return e === null ? {} : (e = I.deCode(e), e = e[Ae()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
186
+ return e === null ? {} : (e = T.deCode(e), e = e[Ae()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
188
187
  }
189
188
  function ln(e) {
190
- localStorage.setItem("c", I.enCode(e));
189
+ localStorage.setItem("c", T.enCode(e));
191
190
  }
192
- function Zr(e, t) {
191
+ function zr(e, t) {
193
192
  var s;
194
193
  let n = localStorage.getItem("c");
195
194
  if (n !== "" && n !== "undefined" && n !== null) {
196
- let a = I.deCode(n);
197
- return a || H(), e === void 0 ? a : t ? (s = a[e][t]) == null ? void 0 : s.n : a[e];
195
+ let a = T.deCode(n);
196
+ return a || Z(), e === void 0 ? a : t ? (s = a[e][t]) == null ? void 0 : s.n : a[e];
198
197
  } else
199
- return H(), !1;
198
+ return Z(), !1;
200
199
  }
201
- function Ie(e) {
202
- te.data = e, localStorage.setItem("q", I.enCode(te.data));
200
+ function Re(e) {
201
+ te.data = e, localStorage.setItem("q", T.enCode(te.data));
203
202
  }
204
- function Ur(e, t) {
205
- te.data = { ...te.data, [e]: t }, localStorage.setItem("q", I.enCode(te.data));
203
+ function qr(e, t) {
204
+ te.data = { ...te.data, [e]: t }, localStorage.setItem("q", T.enCode(te.data));
206
205
  }
207
206
  function ae(e, t) {
208
207
  if (!te.data) {
209
208
  let n = localStorage.getItem("q");
210
- n && (te.data = I.deCode(n));
209
+ n && (te.data = T.deCode(n));
211
210
  }
212
211
  return e === void 0 && t === void 0 ? te.data : e !== void 0 && t === void 0 ? te.data[e] : te.data[e][t];
213
212
  }
214
- function Yr(e) {
213
+ function Hr(e) {
215
214
  tn.data = e;
216
215
  }
217
216
  function Kr(e) {
218
217
  return tn.data[e];
219
218
  }
220
- function Gr(e) {
219
+ function Yr(e) {
221
220
  w.payment = e;
222
221
  }
223
- function Hr() {
222
+ function Zr() {
224
223
  return w.payment;
225
224
  }
226
225
  function cn(e) {
227
- localStorage.setItem("u", I.enCode(e));
226
+ localStorage.setItem("u", T.enCode(e));
228
227
  }
229
- function qr() {
228
+ function Jr() {
230
229
  let e = localStorage.getItem("u");
231
230
  if (e !== "" && e !== "undefined" && e !== null) {
232
- let t = I.deCode(e);
233
- return t || H(), t;
231
+ let t = T.deCode(e);
232
+ return t || Z(), t;
234
233
  } else
235
- return H(), !1;
234
+ return Z(), !1;
236
235
  }
237
- function Xr(e) {
236
+ function Gr(e) {
238
237
  const t = (n) => {
239
238
  let s = localStorage.getItem(n);
240
239
  if (s !== "" && s !== "undefined" && s !== null)
241
240
  try {
242
- let a = I.deCode(s);
243
- if (!a)
244
- return;
241
+ let a = T.deCode(s);
242
+ if (!a) return;
245
243
  w[n] = { is: !0, time: a.time, data: a.data };
246
244
  } catch {
247
245
  w[n] = { is: !1, time: 0, data: {} };
@@ -251,95 +249,94 @@ function Xr(e) {
251
249
  };
252
250
  e.forEach((n) => t(n));
253
251
  }
254
- function Jr(e) {
252
+ function Xr(e) {
255
253
  return w[e] === void 0 ? (w[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : w[e];
256
254
  }
257
255
  function Qr(e, t) {
258
- w[e] = { data: t.data, time: t.time }, localStorage.setItem(e, I.enCode(w[e]));
256
+ w[e] = { data: t.data, time: t.time }, localStorage.setItem(e, T.enCode(w[e]));
259
257
  }
260
258
  function Vr(e, t, n) {
261
- w[e].time = n, w[e].data[t.item][t.name] = t.value, localStorage.setItem(e, I.enCode(w[e]));
259
+ w[e].time = n, w[e].data[t.item][t.name] = t.value, localStorage.setItem(e, T.enCode(w[e]));
262
260
  }
263
261
  const oe = {
264
- setSSID: br,
265
- getSSID: jr,
262
+ setSSID: jr,
263
+ getSSID: br,
266
264
  getPORT: et,
267
- setPORT: yr,
265
+ setPORT: _r,
268
266
  setAUTH: Cr,
269
- getAUTH: _r,
270
- Logaut: H,
267
+ getAUTH: yr,
268
+ Logaut: Z,
271
269
  Start: vr,
272
270
  setMenu: an,
273
- getMenu: zr,
274
- useSort: Wr,
271
+ getMenu: Wr,
272
+ useSort: Ur,
275
273
  setSort: on,
276
274
  getSort: tt,
277
275
  setCompany: ln,
278
- getCompany: Zr,
279
- setSelect: Ie,
280
- addSelect: Ur,
276
+ getCompany: zr,
277
+ setSelect: Re,
278
+ addSelect: qr,
281
279
  getSelect: ae,
282
- setApi: Yr,
280
+ setApi: Hr,
283
281
  getApi: Kr,
284
- setPayment: Gr,
285
- getPayment: Hr,
282
+ setPayment: Yr,
283
+ getPayment: Zr,
286
284
  setUser: cn,
287
- getUser: qr,
285
+ getUser: Jr,
288
286
  getDefaultModules: pr,
289
- getBase: Jr,
287
+ getBase: Xr,
290
288
  setBase: Qr,
291
289
  editBase: Vr,
292
- loadBase: Xr
293
- }, un = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK", es = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), Ut = typeof window < "u" && window.Blob && new Blob([es(un)], { type: "text/javascript;charset=utf-8" });
290
+ loadBase: Gr
291
+ }, un = '(function(){"use strict";onmessage=async t=>{try{let a=await fetch(`${t.data.host}${t.data.link}`,{method:"POST",headers:{ssid:t.data.ssid,"Content-type":"application/json;charset=utf-8"},body:JSON.stringify(t.data.data)});postMessage(await a.json())}catch(a){postMessage({status:"error",data:"worker",message:a})}}})();\n', qt = typeof self < "u" && self.Blob && new Blob([un], { type: "text/javascript;charset=utf-8" });
294
292
  function dn(e) {
295
293
  let t;
296
294
  try {
297
- if (t = Ut && (window.URL || window.webkitURL).createObjectURL(Ut), !t)
298
- throw "";
295
+ if (t = qt && (self.URL || self.webkitURL).createObjectURL(qt), !t) throw "";
299
296
  const n = new Worker(t, {
300
297
  name: e == null ? void 0 : e.name
301
298
  });
302
299
  return n.addEventListener("error", () => {
303
- (window.URL || window.webkitURL).revokeObjectURL(t);
300
+ (self.URL || self.webkitURL).revokeObjectURL(t);
304
301
  }), n;
305
302
  } catch {
306
303
  return new Worker(
307
- "data:text/javascript;base64," + un,
304
+ "data:text/javascript;charset=utf-8," + encodeURIComponent(un),
308
305
  {
309
306
  name: e == null ? void 0 : e.name
310
307
  }
311
308
  );
312
309
  } finally {
313
- t && (window.URL || window.webkitURL).revokeObjectURL(t);
310
+ t && (self.URL || self.webkitURL).revokeObjectURL(t);
314
311
  }
315
312
  }
316
313
  const ue = {};
317
- function ts(e) {
314
+ function es(e) {
318
315
  return e && (ue.s = e), ue.s;
319
316
  }
320
- function ns(e) {
317
+ function ts(e) {
321
318
  return e && (ue.a = e), ue.a;
322
319
  }
323
- function rs(e) {
320
+ function ns(e) {
324
321
  return e && (ue.c = e), ue.c;
325
322
  }
326
- function ss(e) {
323
+ function rs(e) {
327
324
  return e && (ue.h = e), ue.h;
328
325
  }
329
- const dt = { version: { Api: ns, Server: ts, Client: rs }, Host: ss };
330
- let as = "api", is = "elcrm", os = "online";
331
- function ls() {
326
+ const ut = { version: { Api: ts, Server: es, Client: ns }, Host: rs };
327
+ let ss = "api", as = "elcrm", is = "online";
328
+ function os() {
332
329
  let e = oe.getPORT(), t = "", n = "";
333
330
  return e.address === "localhost" ? (t = `http://localhost:${e.socket}/documents`, n = `http://localhost:${e.socket}/files`) : (t = "https://" + e.address + "/documents", n = "https://" + e.address + "/files"), {
334
331
  documents: t,
335
332
  files: n
336
333
  };
337
334
  }
338
- let fn = `${as}.${is}.${os}`;
339
- function cs(e) {
335
+ let fn = `${ss}.${as}.${is}`;
336
+ function ls(e) {
340
337
  return "https://" + oe.getPORT().address + "/audio/" + e;
341
338
  }
342
- function ze(e, t = {}, n = oe.getAUTH()) {
339
+ function We(e, t = {}, n = oe.getAUTH()) {
343
340
  return new Promise((s) => {
344
341
  const a = new dn();
345
342
  a.onmessage = (i) => {
@@ -348,11 +345,11 @@ function ze(e, t = {}, n = oe.getAUTH()) {
348
345
  link: e,
349
346
  data: t,
350
347
  ssid: n,
351
- host: dt.Host() || `https://${fn}/`
348
+ host: ut.Host() || `https://${fn}/`
352
349
  });
353
350
  });
354
351
  }
355
- function us(e, t = {}, n = oe.getAUTH()) {
352
+ function cs(e, t = {}, n = oe.getAUTH()) {
356
353
  return new Promise((s) => {
357
354
  const a = new dn();
358
355
  a.onmessage = (i) => {
@@ -361,13 +358,13 @@ function us(e, t = {}, n = oe.getAUTH()) {
361
358
  link: e,
362
359
  data: t,
363
360
  ssid: n,
364
- host: dt.Host() + "modules/" || `https://${fn}/modules`
361
+ host: ut.Host() + "modules/" || `https://${fn}/modules`
365
362
  });
366
363
  });
367
364
  }
368
- function ds(e, t = {}, n) {
365
+ function us(e, t = {}, n) {
369
366
  const [s, a] = y.useState({ status: "load" }), i = async (l) => {
370
- let c = await ze(e, l, n);
367
+ let c = await We(e, l, n);
371
368
  a(c);
372
369
  };
373
370
  return y.useEffect(() => {
@@ -378,9 +375,9 @@ let hn = {
378
375
  "Content-type": "application/json;charset=utf-8",
379
376
  ssid: oe.getAUTH() || ""
380
377
  };
381
- async function fs(e, t, n = {}) {
378
+ async function ds(e, t, n = {}) {
382
379
  try {
383
- return await (await ze("https://" + e + "/" + t, {
380
+ return await (await We("https://" + e + "/" + t, {
384
381
  method: "POST",
385
382
  headers: hn,
386
383
  body: JSON.stringify(n)
@@ -389,9 +386,9 @@ async function fs(e, t, n = {}) {
389
386
  return { status: "error" };
390
387
  }
391
388
  }
392
- async function hs(e, t = {}) {
389
+ async function fs(e, t = {}) {
393
390
  try {
394
- return await (await ze("https://tb.elcrm.online/v1/" + e, {
391
+ return await (await We("https://tb.elcrm.online/v1/" + e, {
395
392
  method: "POST",
396
393
  headers: hn,
397
394
  body: JSON.stringify(t)
@@ -400,8 +397,8 @@ async function hs(e, t = {}) {
400
397
  return { status: "error" };
401
398
  }
402
399
  }
403
- const _l = { audio: cs, fetch: ze, modules: us, remoute: fs, url: ls, telegram: hs, use: ds };
404
- var nt = { exports: {} }, Te = {};
400
+ const pl = { audio: ls, fetch: We, modules: cs, remoute: ds, url: os, telegram: fs, use: us };
401
+ var Oe = { exports: {} }, Ee = {};
405
402
  /**
406
403
  * @license React
407
404
  * react-jsx-runtime.production.min.js
@@ -411,25 +408,21 @@ var nt = { exports: {} }, Te = {};
411
408
  * This source code is licensed under the MIT license found in the
412
409
  * LICENSE file in the root directory of this source tree.
413
410
  */
414
- var Yt;
415
- function ms() {
416
- if (Yt)
417
- return Te;
418
- Yt = 1;
411
+ var Ht;
412
+ function hs() {
413
+ if (Ht) return Ee;
414
+ Ht = 1;
419
415
  var e = y, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
420
416
  function l(c, d, u) {
421
417
  var f, g = {}, x = null, h = null;
422
418
  u !== void 0 && (x = "" + u), d.key !== void 0 && (x = "" + d.key), d.ref !== void 0 && (h = d.ref);
423
- for (f in d)
424
- s.call(d, f) && !i.hasOwnProperty(f) && (g[f] = d[f]);
425
- if (c && c.defaultProps)
426
- for (f in d = c.defaultProps, d)
427
- g[f] === void 0 && (g[f] = d[f]);
419
+ for (f in d) s.call(d, f) && !i.hasOwnProperty(f) && (g[f] = d[f]);
420
+ if (c && c.defaultProps) for (f in d = c.defaultProps, d) g[f] === void 0 && (g[f] = d[f]);
428
421
  return { $$typeof: t, type: c, key: x, ref: h, props: g, _owner: a.current };
429
422
  }
430
- return Te.Fragment = n, Te.jsx = l, Te.jsxs = l, Te;
423
+ return Ee.Fragment = n, Ee.jsx = l, Ee.jsxs = l, Ee;
431
424
  }
432
- var Re = {};
425
+ var De = {};
433
426
  /**
434
427
  * @license React
435
428
  * react-jsx-runtime.development.js
@@ -440,17 +433,17 @@ var Re = {};
440
433
  * LICENSE file in the root directory of this source tree.
441
434
  */
442
435
  var Kt;
443
- function gs() {
436
+ function ms() {
444
437
  return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && function() {
445
- var e = y, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), b = Symbol.iterator, C = "@@iterator";
438
+ var e = y, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), j = Symbol.iterator, C = "@@iterator";
446
439
  function m(o) {
447
440
  if (o === null || typeof o != "object")
448
441
  return null;
449
- var v = b && o[b] || o[C];
442
+ var v = j && o[j] || o[C];
450
443
  return typeof v == "function" ? v : null;
451
444
  }
452
445
  var p = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
453
- function j(o) {
446
+ function b(o) {
454
447
  {
455
448
  for (var v = arguments.length, _ = new Array(v > 1 ? v - 1 : 0), k = 1; k < v; k++)
456
449
  _[k - 1] = arguments[k];
@@ -459,37 +452,37 @@ function gs() {
459
452
  }
460
453
  function S(o, v, _) {
461
454
  {
462
- var k = p.ReactDebugCurrentFrame, $ = k.getStackAddendum();
463
- $ !== "" && (v += "%s", _ = _.concat([$]));
464
- var F = _.map(function(N) {
465
- return String(N);
455
+ var k = p.ReactDebugCurrentFrame, N = k.getStackAddendum();
456
+ N !== "" && (v += "%s", _ = _.concat([N]));
457
+ var F = _.map(function(R) {
458
+ return String(R);
466
459
  });
467
460
  F.unshift("Warning: " + v), Function.prototype.apply.call(console[o], console, F);
468
461
  }
469
462
  }
470
- var E = !1, M = !1, R = !1, P = !1, ee = !1, O;
463
+ var E = !1, I = !1, M = !1, P = !1, ee = !1, O;
471
464
  O = Symbol.for("react.module.reference");
472
- function D(o) {
473
- return !!(typeof o == "string" || typeof o == "function" || o === s || o === i || ee || o === a || o === u || o === f || P || o === h || E || M || R || typeof o == "object" && o !== null && (o.$$typeof === x || o.$$typeof === g || o.$$typeof === l || o.$$typeof === c || o.$$typeof === d || // This needs to include all possible module reference object
465
+ function B(o) {
466
+ return !!(typeof o == "string" || typeof o == "function" || o === s || o === i || ee || o === a || o === u || o === f || P || o === h || E || I || M || typeof o == "object" && o !== null && (o.$$typeof === x || o.$$typeof === g || o.$$typeof === l || o.$$typeof === c || o.$$typeof === d || // This needs to include all possible module reference object
474
467
  // types supported by any Flight configuration anywhere since
475
468
  // we don't know which Flight build this will end up being used
476
469
  // with.
477
470
  o.$$typeof === O || o.getModuleId !== void 0));
478
471
  }
479
- function q(o, v, _) {
472
+ function J(o, v, _) {
480
473
  var k = o.displayName;
481
474
  if (k)
482
475
  return k;
483
- var $ = v.displayName || v.name || "";
484
- return $ !== "" ? _ + "(" + $ + ")" : _;
476
+ var N = v.displayName || v.name || "";
477
+ return N !== "" ? _ + "(" + N + ")" : _;
485
478
  }
486
- function je(o) {
479
+ function be(o) {
487
480
  return o.displayName || "Context";
488
481
  }
489
- function U(o) {
482
+ function H(o) {
490
483
  if (o == null)
491
484
  return null;
492
- if (typeof o.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
485
+ if (typeof o.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
493
486
  return o.displayName || o.name || null;
494
487
  if (typeof o == "string")
495
488
  return o;
@@ -511,19 +504,19 @@ function gs() {
511
504
  switch (o.$$typeof) {
512
505
  case c:
513
506
  var v = o;
514
- return je(v) + ".Consumer";
507
+ return be(v) + ".Consumer";
515
508
  case l:
516
509
  var _ = o;
517
- return je(_._context) + ".Provider";
510
+ return be(_._context) + ".Provider";
518
511
  case d:
519
- return q(o, o.render, "ForwardRef");
512
+ return J(o, o.render, "ForwardRef");
520
513
  case g:
521
514
  var k = o.displayName || null;
522
- return k !== null ? k : U(o.type) || "Memo";
515
+ return k !== null ? k : H(o.type) || "Memo";
523
516
  case x: {
524
- var $ = o, F = $._payload, N = $._init;
517
+ var N = o, F = N._payload, R = N._init;
525
518
  try {
526
- return U(N(F));
519
+ return H(R(F));
527
520
  } catch {
528
521
  return null;
529
522
  }
@@ -531,18 +524,18 @@ function gs() {
531
524
  }
532
525
  return null;
533
526
  }
534
- var re = Object.assign, ke = 0, _t, yt, wt, kt, St, Et, Tt;
535
- function Rt() {
527
+ var re = Object.assign, ke = 0, Ct, yt, _t, wt, kt, St, Et;
528
+ function Dt() {
536
529
  }
537
- Rt.__reactDisabledLog = !0;
530
+ Dt.__reactDisabledLog = !0;
538
531
  function Pn() {
539
532
  {
540
533
  if (ke === 0) {
541
- _t = console.log, yt = console.info, wt = console.warn, kt = console.error, St = console.group, Et = console.groupCollapsed, Tt = console.groupEnd;
534
+ Ct = console.log, yt = console.info, _t = console.warn, wt = console.error, kt = console.group, St = console.groupCollapsed, Et = console.groupEnd;
542
535
  var o = {
543
536
  configurable: !0,
544
537
  enumerable: !0,
545
- value: Rt,
538
+ value: Dt,
546
539
  writable: !0
547
540
  };
548
541
  Object.defineProperties(console, {
@@ -568,87 +561,87 @@ function gs() {
568
561
  };
569
562
  Object.defineProperties(console, {
570
563
  log: re({}, o, {
571
- value: _t
564
+ value: Ct
572
565
  }),
573
566
  info: re({}, o, {
574
567
  value: yt
575
568
  }),
576
569
  warn: re({}, o, {
577
- value: wt
570
+ value: _t
578
571
  }),
579
572
  error: re({}, o, {
580
- value: kt
573
+ value: wt
581
574
  }),
582
575
  group: re({}, o, {
583
- value: St
576
+ value: kt
584
577
  }),
585
578
  groupCollapsed: re({}, o, {
586
- value: Et
579
+ value: St
587
580
  }),
588
581
  groupEnd: re({}, o, {
589
- value: Tt
582
+ value: Et
590
583
  })
591
584
  });
592
585
  }
593
- ke < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
586
+ ke < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
594
587
  }
595
588
  }
596
- var Ze = p.ReactCurrentDispatcher, Ue;
597
- function $e(o, v, _) {
589
+ var ze = p.ReactCurrentDispatcher, qe;
590
+ function Ie(o, v, _) {
598
591
  {
599
- if (Ue === void 0)
592
+ if (qe === void 0)
600
593
  try {
601
594
  throw Error();
602
- } catch ($) {
603
- var k = $.stack.trim().match(/\n( *(at )?)/);
604
- Ue = k && k[1] || "";
595
+ } catch (N) {
596
+ var k = N.stack.trim().match(/\n( *(at )?)/);
597
+ qe = k && k[1] || "";
605
598
  }
606
599
  return `
607
- ` + Ue + o;
600
+ ` + qe + o;
608
601
  }
609
602
  }
610
- var Ye = !1, Fe;
603
+ var He = !1, Ne;
611
604
  {
612
605
  var Ln = typeof WeakMap == "function" ? WeakMap : Map;
613
- Fe = new Ln();
606
+ Ne = new Ln();
614
607
  }
615
- function Bt(o, v) {
616
- if (!o || Ye)
608
+ function Mt(o, v) {
609
+ if (!o || He)
617
610
  return "";
618
611
  {
619
- var _ = Fe.get(o);
612
+ var _ = Ne.get(o);
620
613
  if (_ !== void 0)
621
614
  return _;
622
615
  }
623
616
  var k;
624
- Ye = !0;
625
- var $ = Error.prepareStackTrace;
617
+ He = !0;
618
+ var N = Error.prepareStackTrace;
626
619
  Error.prepareStackTrace = void 0;
627
620
  var F;
628
- F = Ze.current, Ze.current = null, Pn();
621
+ F = ze.current, ze.current = null, Pn();
629
622
  try {
630
623
  if (v) {
631
- var N = function() {
624
+ var R = function() {
632
625
  throw Error();
633
626
  };
634
- if (Object.defineProperty(N.prototype, "props", {
627
+ if (Object.defineProperty(R.prototype, "props", {
635
628
  set: function() {
636
629
  throw Error();
637
630
  }
638
631
  }), typeof Reflect == "object" && Reflect.construct) {
639
632
  try {
640
- Reflect.construct(N, []);
633
+ Reflect.construct(R, []);
641
634
  } catch (K) {
642
635
  k = K;
643
636
  }
644
- Reflect.construct(o, [], N);
637
+ Reflect.construct(o, [], R);
645
638
  } else {
646
639
  try {
647
- N.call();
640
+ R.call();
648
641
  } catch (K) {
649
642
  k = K;
650
643
  }
651
- o.call(N.prototype);
644
+ o.call(R.prototype);
652
645
  }
653
646
  } else {
654
647
  try {
@@ -660,124 +653,123 @@ function gs() {
660
653
  }
661
654
  } catch (K) {
662
655
  if (K && k && typeof K.stack == "string") {
663
- for (var B = K.stack.split(`
664
- `), Y = k.stack.split(`
665
- `), L = B.length - 1, z = Y.length - 1; L >= 1 && z >= 0 && B[L] !== Y[z]; )
666
- z--;
667
- for (; L >= 1 && z >= 0; L--, z--)
668
- if (B[L] !== Y[z]) {
669
- if (L !== 1 || z !== 1)
656
+ for (var $ = K.stack.split(`
657
+ `), q = k.stack.split(`
658
+ `), L = $.length - 1, W = q.length - 1; L >= 1 && W >= 0 && $[L] !== q[W]; )
659
+ W--;
660
+ for (; L >= 1 && W >= 0; L--, W--)
661
+ if ($[L] !== q[W]) {
662
+ if (L !== 1 || W !== 1)
670
663
  do
671
- if (L--, z--, z < 0 || B[L] !== Y[z]) {
672
- var X = `
673
- ` + B[L].replace(" at new ", " at ");
674
- return o.displayName && X.includes("<anonymous>") && (X = X.replace("<anonymous>", o.displayName)), typeof o == "function" && Fe.set(o, X), X;
664
+ if (L--, W--, W < 0 || $[L] !== q[W]) {
665
+ var G = `
666
+ ` + $[L].replace(" at new ", " at ");
667
+ return o.displayName && G.includes("<anonymous>") && (G = G.replace("<anonymous>", o.displayName)), typeof o == "function" && Ne.set(o, G), G;
675
668
  }
676
- while (L >= 1 && z >= 0);
669
+ while (L >= 1 && W >= 0);
677
670
  break;
678
671
  }
679
672
  }
680
673
  } finally {
681
- Ye = !1, Ze.current = F, On(), Error.prepareStackTrace = $;
674
+ He = !1, ze.current = F, On(), Error.prepareStackTrace = N;
682
675
  }
683
- var _e = o ? o.displayName || o.name : "", he = _e ? $e(_e) : "";
684
- return typeof o == "function" && Fe.set(o, he), he;
676
+ var ye = o ? o.displayName || o.name : "", he = ye ? Ie(ye) : "";
677
+ return typeof o == "function" && Ne.set(o, he), he;
685
678
  }
686
679
  function An(o, v, _) {
687
- return Bt(o, !1);
680
+ return Mt(o, !1);
688
681
  }
689
- function zn(o) {
682
+ function Wn(o) {
690
683
  var v = o.prototype;
691
684
  return !!(v && v.isReactComponent);
692
685
  }
693
- function Pe(o, v, _) {
686
+ function Fe(o, v, _) {
694
687
  if (o == null)
695
688
  return "";
696
689
  if (typeof o == "function")
697
- return Bt(o, zn(o));
690
+ return Mt(o, Wn(o));
698
691
  if (typeof o == "string")
699
- return $e(o);
692
+ return Ie(o);
700
693
  switch (o) {
701
694
  case u:
702
- return $e("Suspense");
695
+ return Ie("Suspense");
703
696
  case f:
704
- return $e("SuspenseList");
697
+ return Ie("SuspenseList");
705
698
  }
706
699
  if (typeof o == "object")
707
700
  switch (o.$$typeof) {
708
701
  case d:
709
702
  return An(o.render);
710
703
  case g:
711
- return Pe(o.type, v, _);
704
+ return Fe(o.type, v, _);
712
705
  case x: {
713
- var k = o, $ = k._payload, F = k._init;
706
+ var k = o, N = k._payload, F = k._init;
714
707
  try {
715
- return Pe(F($), v, _);
708
+ return Fe(F(N), v, _);
716
709
  } catch {
717
710
  }
718
711
  }
719
712
  }
720
713
  return "";
721
714
  }
722
- var Se = Object.prototype.hasOwnProperty, Nt = {}, It = p.ReactDebugCurrentFrame;
723
- function Oe(o) {
715
+ var Se = Object.prototype.hasOwnProperty, $t = {}, Rt = p.ReactDebugCurrentFrame;
716
+ function Pe(o) {
724
717
  if (o) {
725
- var v = o._owner, _ = Pe(o.type, o._source, v ? v.type : null);
726
- It.setExtraStackFrame(_);
718
+ var v = o._owner, _ = Fe(o.type, o._source, v ? v.type : null);
719
+ Rt.setExtraStackFrame(_);
727
720
  } else
728
- It.setExtraStackFrame(null);
721
+ Rt.setExtraStackFrame(null);
729
722
  }
730
- function Wn(o, v, _, k, $) {
723
+ function Un(o, v, _, k, N) {
731
724
  {
732
725
  var F = Function.call.bind(Se);
733
- for (var N in o)
734
- if (F(o, N)) {
735
- var B = void 0;
726
+ for (var R in o)
727
+ if (F(o, R)) {
728
+ var $ = void 0;
736
729
  try {
737
- if (typeof o[N] != "function") {
738
- var Y = Error((k || "React class") + ": " + _ + " type `" + N + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[N] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
739
- throw Y.name = "Invariant Violation", Y;
730
+ if (typeof o[R] != "function") {
731
+ var q = Error((k || "React class") + ": " + _ + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
732
+ throw q.name = "Invariant Violation", q;
740
733
  }
741
- B = o[N](v, N, k, _, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
734
+ $ = o[R](v, R, k, _, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
742
735
  } catch (L) {
743
- B = L;
736
+ $ = L;
744
737
  }
745
- B && !(B instanceof Error) && (Oe($), j("%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).", k || "React class", _, N, typeof B), Oe(null)), B instanceof Error && !(B.message in Nt) && (Nt[B.message] = !0, Oe($), j("Failed %s type: %s", _, B.message), Oe(null));
738
+ $ && !($ instanceof Error) && (Pe(N), b("%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).", k || "React class", _, R, typeof $), Pe(null)), $ instanceof Error && !($.message in $t) && ($t[$.message] = !0, Pe(N), b("Failed %s type: %s", _, $.message), Pe(null));
746
739
  }
747
740
  }
748
741
  }
749
- var Zn = Array.isArray;
742
+ var zn = Array.isArray;
750
743
  function Ke(o) {
751
- return Zn(o);
744
+ return zn(o);
752
745
  }
753
- function Un(o) {
746
+ function qn(o) {
754
747
  {
755
748
  var v = typeof Symbol == "function" && Symbol.toStringTag, _ = v && o[Symbol.toStringTag] || o.constructor.name || "Object";
756
749
  return _;
757
750
  }
758
751
  }
759
- function Yn(o) {
752
+ function Hn(o) {
760
753
  try {
761
- return Dt(o), !1;
754
+ return Tt(o), !1;
762
755
  } catch {
763
756
  return !0;
764
757
  }
765
758
  }
766
- function Dt(o) {
759
+ function Tt(o) {
767
760
  return "" + o;
768
761
  }
769
- function Mt(o) {
770
- if (Yn(o))
771
- return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Un(o)), Dt(o);
762
+ function Bt(o) {
763
+ if (Hn(o))
764
+ return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qn(o)), Tt(o);
772
765
  }
773
- var Ee = p.ReactCurrentOwner, Kn = {
766
+ var It = p.ReactCurrentOwner, Kn = {
774
767
  key: !0,
775
768
  ref: !0,
776
769
  __self: !0,
777
770
  __source: !0
778
- }, $t, Ft, Ge;
779
- Ge = {};
780
- function Gn(o) {
771
+ }, Nt, Ft;
772
+ function Yn(o) {
781
773
  if (Se.call(o, "ref")) {
782
774
  var v = Object.getOwnPropertyDescriptor(o, "ref").get;
783
775
  if (v && v.isReactWarning)
@@ -785,7 +777,7 @@ function gs() {
785
777
  }
786
778
  return o.ref !== void 0;
787
779
  }
788
- function Hn(o) {
780
+ function Zn(o) {
789
781
  if (Se.call(o, "key")) {
790
782
  var v = Object.getOwnPropertyDescriptor(o, "key").get;
791
783
  if (v && v.isReactWarning)
@@ -793,16 +785,13 @@ function gs() {
793
785
  }
794
786
  return o.key !== void 0;
795
787
  }
796
- function qn(o, v) {
797
- if (typeof o.ref == "string" && Ee.current && v && Ee.current.stateNode !== v) {
798
- var _ = U(Ee.current.type);
799
- Ge[_] || (j('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', U(Ee.current.type), o.ref), Ge[_] = !0);
800
- }
788
+ function Jn(o, v) {
789
+ typeof o.ref == "string" && It.current;
801
790
  }
802
- function Xn(o, v) {
791
+ function Gn(o, v) {
803
792
  {
804
793
  var _ = function() {
805
- $t || ($t = !0, j("%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)", v));
794
+ Nt || (Nt = !0, b("%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)", v));
806
795
  };
807
796
  _.isReactWarning = !0, Object.defineProperty(o, "key", {
808
797
  get: _,
@@ -810,10 +799,10 @@ function gs() {
810
799
  });
811
800
  }
812
801
  }
813
- function Jn(o, v) {
802
+ function Xn(o, v) {
814
803
  {
815
804
  var _ = function() {
816
- Ft || (Ft = !0, j("%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)", v));
805
+ Ft || (Ft = !0, b("%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)", v));
817
806
  };
818
807
  _.isReactWarning = !0, Object.defineProperty(o, "ref", {
819
808
  get: _,
@@ -821,70 +810,70 @@ function gs() {
821
810
  });
822
811
  }
823
812
  }
824
- var Qn = function(o, v, _, k, $, F, N) {
825
- var B = {
813
+ var Qn = function(o, v, _, k, N, F, R) {
814
+ var $ = {
826
815
  // This tag allows us to uniquely identify this as a React Element
827
816
  $$typeof: t,
828
817
  // Built-in properties that belong on the element
829
818
  type: o,
830
819
  key: v,
831
820
  ref: _,
832
- props: N,
821
+ props: R,
833
822
  // Record the component responsible for creating this element.
834
823
  _owner: F
835
824
  };
836
- return B._store = {}, Object.defineProperty(B._store, "validated", {
825
+ return $._store = {}, Object.defineProperty($._store, "validated", {
837
826
  configurable: !1,
838
827
  enumerable: !1,
839
828
  writable: !0,
840
829
  value: !1
841
- }), Object.defineProperty(B, "_self", {
830
+ }), Object.defineProperty($, "_self", {
842
831
  configurable: !1,
843
832
  enumerable: !1,
844
833
  writable: !1,
845
834
  value: k
846
- }), Object.defineProperty(B, "_source", {
835
+ }), Object.defineProperty($, "_source", {
847
836
  configurable: !1,
848
837
  enumerable: !1,
849
838
  writable: !1,
850
- value: $
851
- }), Object.freeze && (Object.freeze(B.props), Object.freeze(B)), B;
839
+ value: N
840
+ }), Object.freeze && (Object.freeze($.props), Object.freeze($)), $;
852
841
  };
853
- function Vn(o, v, _, k, $) {
842
+ function Vn(o, v, _, k, N) {
854
843
  {
855
- var F, N = {}, B = null, Y = null;
856
- _ !== void 0 && (Mt(_), B = "" + _), Hn(v) && (Mt(v.key), B = "" + v.key), Gn(v) && (Y = v.ref, qn(v, $));
844
+ var F, R = {}, $ = null, q = null;
845
+ _ !== void 0 && (Bt(_), $ = "" + _), Zn(v) && (Bt(v.key), $ = "" + v.key), Yn(v) && (q = v.ref, Jn(v, N));
857
846
  for (F in v)
858
- Se.call(v, F) && !Kn.hasOwnProperty(F) && (N[F] = v[F]);
847
+ Se.call(v, F) && !Kn.hasOwnProperty(F) && (R[F] = v[F]);
859
848
  if (o && o.defaultProps) {
860
849
  var L = o.defaultProps;
861
850
  for (F in L)
862
- N[F] === void 0 && (N[F] = L[F]);
851
+ R[F] === void 0 && (R[F] = L[F]);
863
852
  }
864
- if (B || Y) {
865
- var z = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
866
- B && Xn(N, z), Y && Jn(N, z);
853
+ if ($ || q) {
854
+ var W = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
855
+ $ && Gn(R, W), q && Xn(R, W);
867
856
  }
868
- return Qn(o, B, Y, $, k, Ee.current, N);
857
+ return Qn(o, $, q, N, k, It.current, R);
869
858
  }
870
859
  }
871
- var He = p.ReactCurrentOwner, Pt = p.ReactDebugCurrentFrame;
860
+ var Ye = p.ReactCurrentOwner, Pt = p.ReactDebugCurrentFrame;
872
861
  function Ce(o) {
873
862
  if (o) {
874
- var v = o._owner, _ = Pe(o.type, o._source, v ? v.type : null);
863
+ var v = o._owner, _ = Fe(o.type, o._source, v ? v.type : null);
875
864
  Pt.setExtraStackFrame(_);
876
865
  } else
877
866
  Pt.setExtraStackFrame(null);
878
867
  }
879
- var qe;
880
- qe = !1;
881
- function Xe(o) {
868
+ var Ze;
869
+ Ze = !1;
870
+ function Je(o) {
882
871
  return typeof o == "object" && o !== null && o.$$typeof === t;
883
872
  }
884
873
  function Ot() {
885
874
  {
886
- if (He.current) {
887
- var o = U(He.current.type);
875
+ if (Ye.current) {
876
+ var o = H(Ye.current.type);
888
877
  if (o)
889
878
  return `
890
879
 
@@ -919,25 +908,25 @@ Check the top-level render call using <` + _ + ">.");
919
908
  return;
920
909
  Lt[_] = !0;
921
910
  var k = "";
922
- o && o._owner && o._owner !== He.current && (k = " It was passed a child from " + U(o._owner.type) + "."), Ce(o), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', _, k), Ce(null);
911
+ o && o._owner && o._owner !== Ye.current && (k = " It was passed a child from " + H(o._owner.type) + "."), Ce(o), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', _, k), Ce(null);
923
912
  }
924
913
  }
925
- function zt(o, v) {
914
+ function Wt(o, v) {
926
915
  {
927
916
  if (typeof o != "object")
928
917
  return;
929
918
  if (Ke(o))
930
919
  for (var _ = 0; _ < o.length; _++) {
931
920
  var k = o[_];
932
- Xe(k) && At(k, v);
921
+ Je(k) && At(k, v);
933
922
  }
934
- else if (Xe(o))
923
+ else if (Je(o))
935
924
  o._store && (o._store.validated = !0);
936
925
  else if (o) {
937
- var $ = m(o);
938
- if (typeof $ == "function" && $ !== o.entries)
939
- for (var F = $.call(o), N; !(N = F.next()).done; )
940
- Xe(N.value) && At(N.value, v);
926
+ var N = m(o);
927
+ if (typeof N == "function" && N !== o.entries)
928
+ for (var F = N.call(o), R; !(R = F.next()).done; )
929
+ Je(R.value) && At(R.value, v);
941
930
  }
942
931
  }
943
932
  }
@@ -956,14 +945,14 @@ Check the top-level render call using <` + _ + ">.");
956
945
  else
957
946
  return;
958
947
  if (_) {
959
- var k = U(v);
960
- Wn(_, o.props, "prop", k, o);
961
- } else if (v.PropTypes !== void 0 && !qe) {
962
- qe = !0;
963
- var $ = U(v);
964
- j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", $ || "Unknown");
948
+ var k = H(v);
949
+ Un(_, o.props, "prop", k, o);
950
+ } else if (v.PropTypes !== void 0 && !Ze) {
951
+ Ze = !0;
952
+ var N = H(v);
953
+ b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
965
954
  }
966
- typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
955
+ typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
967
956
  }
968
957
  }
969
958
  function rr(o) {
@@ -971,76 +960,79 @@ Check the top-level render call using <` + _ + ">.");
971
960
  for (var v = Object.keys(o.props), _ = 0; _ < v.length; _++) {
972
961
  var k = v[_];
973
962
  if (k !== "children" && k !== "key") {
974
- Ce(o), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", k), Ce(null);
963
+ Ce(o), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", k), Ce(null);
975
964
  break;
976
965
  }
977
966
  }
978
- o.ref !== null && (Ce(o), j("Invalid attribute `ref` supplied to `React.Fragment`."), Ce(null));
967
+ o.ref !== null && (Ce(o), b("Invalid attribute `ref` supplied to `React.Fragment`."), Ce(null));
979
968
  }
980
969
  }
981
- var Wt = {};
982
- function Zt(o, v, _, k, $, F) {
970
+ var Ut = {};
971
+ function zt(o, v, _, k, N, F) {
983
972
  {
984
- var N = D(o);
985
- if (!N) {
986
- var B = "";
987
- (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (B += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
988
- var Y = er();
989
- Y ? B += Y : B += Ot();
973
+ var R = B(o);
974
+ if (!R) {
975
+ var $ = "";
976
+ (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && ($ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
977
+ var q = er();
978
+ q ? $ += q : $ += Ot();
990
979
  var L;
991
- o === null ? L = "null" : Ke(o) ? L = "array" : o !== void 0 && o.$$typeof === t ? (L = "<" + (U(o.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : L = typeof o, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, B);
980
+ o === null ? L = "null" : Ke(o) ? L = "array" : o !== void 0 && o.$$typeof === t ? (L = "<" + (H(o.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : L = typeof o, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, $);
992
981
  }
993
- var z = Vn(o, v, _, $, F);
994
- if (z == null)
995
- return z;
996
- if (N) {
997
- var X = v.children;
998
- if (X !== void 0)
982
+ var W = Vn(o, v, _, N, F);
983
+ if (W == null)
984
+ return W;
985
+ if (R) {
986
+ var G = v.children;
987
+ if (G !== void 0)
999
988
  if (k)
1000
- if (Ke(X)) {
1001
- for (var _e = 0; _e < X.length; _e++)
1002
- zt(X[_e], o);
1003
- Object.freeze && Object.freeze(X);
989
+ if (Ke(G)) {
990
+ for (var ye = 0; ye < G.length; ye++)
991
+ Wt(G[ye], o);
992
+ Object.freeze && Object.freeze(G);
1004
993
  } else
1005
- j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
994
+ b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1006
995
  else
1007
- zt(X, o);
996
+ Wt(G, o);
1008
997
  }
1009
998
  if (Se.call(v, "key")) {
1010
- var he = U(o), K = Object.keys(v).filter(function(cr) {
999
+ var he = H(o), K = Object.keys(v).filter(function(cr) {
1011
1000
  return cr !== "key";
1012
- }), Je = K.length > 0 ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}";
1013
- if (!Wt[he + Je]) {
1001
+ }), Ge = K.length > 0 ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}";
1002
+ if (!Ut[he + Ge]) {
1014
1003
  var lr = K.length > 0 ? "{" + K.join(": ..., ") + ": ...}" : "{}";
1015
- j(`A props object containing a "key" prop is being spread into JSX:
1004
+ b(`A props object containing a "key" prop is being spread into JSX:
1016
1005
  let props = %s;
1017
1006
  <%s {...props} />
1018
1007
  React keys must be passed directly to JSX without using spread:
1019
1008
  let props = %s;
1020
- <%s key={someKey} {...props} />`, Je, he, lr, he), Wt[he + Je] = !0;
1009
+ <%s key={someKey} {...props} />`, Ge, he, lr, he), Ut[he + Ge] = !0;
1021
1010
  }
1022
1011
  }
1023
- return o === s ? rr(z) : nr(z), z;
1012
+ return o === s ? rr(W) : nr(W), W;
1024
1013
  }
1025
1014
  }
1026
1015
  function sr(o, v, _) {
1027
- return Zt(o, v, _, !0);
1016
+ return zt(o, v, _, !0);
1028
1017
  }
1029
1018
  function ar(o, v, _) {
1030
- return Zt(o, v, _, !1);
1019
+ return zt(o, v, _, !1);
1031
1020
  }
1032
1021
  var ir = ar, or = sr;
1033
- Re.Fragment = s, Re.jsx = ir, Re.jsxs = or;
1034
- }()), Re;
1022
+ De.Fragment = s, De.jsx = ir, De.jsxs = or;
1023
+ }()), De;
1035
1024
  }
1036
- process.env.NODE_ENV === "production" ? nt.exports = ms() : nt.exports = gs();
1037
- var r = nt.exports;
1038
- const ps = "_notice_q5jau_1", xs = "_error_q5jau_10", vs = "_success_q5jau_13", bs = "_warning_q5jau_16", js = "_copy_q5jau_19", mn = {
1025
+ var Yt;
1026
+ function gs() {
1027
+ return Yt || (Yt = 1, process.env.NODE_ENV === "production" ? Oe.exports = hs() : Oe.exports = ms()), Oe.exports;
1028
+ }
1029
+ var r = gs();
1030
+ const ps = "_notice_q5jau_1", xs = "_error_q5jau_10", vs = "_success_q5jau_13", js = "_warning_q5jau_16", bs = "_copy_q5jau_19", mn = {
1039
1031
  notice: ps,
1040
1032
  error: xs,
1041
1033
  success: vs,
1042
- warning: bs,
1043
- copy: js,
1034
+ warning: js,
1035
+ copy: bs,
1044
1036
  "show-notice": "_show-notice_q5jau_1",
1045
1037
  "hide-notice": "_hide-notice_q5jau_1"
1046
1038
  };
@@ -1053,7 +1045,7 @@ function Cs() {
1053
1045
  t(e.filter((s) => s.key !== n));
1054
1046
  }, e.length === 0 ? "" : /* @__PURE__ */ r.jsx("ul", { className: mn.notice, children: e.map((n) => n.item) });
1055
1047
  }
1056
- function De({ data: e }) {
1048
+ function Te({ data: e }) {
1057
1049
  let [t, n] = y.useState("show");
1058
1050
  y.useEffect(() => {
1059
1051
  setTimeout(function() {
@@ -1085,25 +1077,25 @@ function De({ data: e }) {
1085
1077
  /* @__PURE__ */ r.jsx("p", { children: e.text })
1086
1078
  ] });
1087
1079
  }
1088
- function _s(e) {
1080
+ function ys(e) {
1089
1081
  let t = Date.now(), n = { key: t, ...e };
1090
- de.set({ item: /* @__PURE__ */ r.jsx(De, { data: n }, t), key: t });
1082
+ de.set({ item: /* @__PURE__ */ r.jsx(Te, { data: n }, t), key: t });
1091
1083
  }
1092
- function ys(e) {
1084
+ function _s(e) {
1093
1085
  let t = Date.now(), n = { key: t, text: e, type: "error" };
1094
- de.set({ item: /* @__PURE__ */ r.jsx(De, { data: n }, t), key: t });
1086
+ de.set({ item: /* @__PURE__ */ r.jsx(Te, { data: n }, t), key: t });
1095
1087
  }
1096
1088
  function ws(e) {
1097
1089
  let t = Date.now(), n = { key: t, text: e, type: "success" };
1098
- de.set({ item: /* @__PURE__ */ r.jsx(De, { data: n }, t), key: t });
1090
+ de.set({ item: /* @__PURE__ */ r.jsx(Te, { data: n }, t), key: t });
1099
1091
  }
1100
1092
  function ks(e) {
1101
1093
  let t = Date.now(), n = { key: t, text: e, type: "remark" };
1102
- de.set({ item: /* @__PURE__ */ r.jsx(De, { data: n }, t), key: t });
1094
+ de.set({ item: /* @__PURE__ */ r.jsx(Te, { data: n }, t), key: t });
1103
1095
  }
1104
1096
  function Ss(e) {
1105
1097
  let t = Date.now(), n = { key: t, text: e, type: "copy" };
1106
- de.set({ item: /* @__PURE__ */ r.jsx(De, { data: n }, t), key: t });
1098
+ de.set({ item: /* @__PURE__ */ r.jsx(Te, { data: n }, t), key: t });
1107
1099
  }
1108
1100
  const ge = {};
1109
1101
  ge.error = () => /* @__PURE__ */ r.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
@@ -1138,21 +1130,17 @@ ge.success = () => /* @__PURE__ */ r.jsxs("svg", { viewBox: "0 0 24 24", fill: "
1138
1130
  }
1139
1131
  )
1140
1132
  ] });
1141
- const Es = "_alerts_1pds5_1", Ts = "_menuAnimation_1pds5_1", Rs = "_menuItemAnimation_1pds5_1", Bs = "_allert_1pds5_111", Ns = "_al_1pds5_1", rt = {
1133
+ const Es = "_alerts_1pds5_1", Ds = "_al_1pds5_1", nt = {
1142
1134
  alerts: Es,
1143
- menuAnimation: Ts,
1144
- menuItemAnimation: Rs,
1145
1135
  "--body": "_--body_1pds5_103",
1146
- allert: Bs,
1147
- "--form": "_--form_1pds5_111",
1148
- al: Ns
1136
+ al: Ds
1149
1137
  };
1150
- let Ne = {};
1151
- function Is() {
1138
+ let $e = {};
1139
+ function Ms() {
1152
1140
  let [e, t] = y.useState("");
1153
- return Ne.set = (n) => t(n), Ne.del = () => t(""), /* @__PURE__ */ r.jsx(r.Fragment, { children: e });
1141
+ return $e.set = (n) => t(n), $e.del = () => t(""), /* @__PURE__ */ r.jsx(r.Fragment, { children: e });
1154
1142
  }
1155
- const Ds = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ r.jsxs("div", { className: rt.alerts, children: [
1143
+ const $s = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ r.jsxs("div", { className: nt.alerts, children: [
1156
1144
  /* @__PURE__ */ r.jsxs("dl", { children: [
1157
1145
  /* @__PURE__ */ r.jsx("dt", { children: e.title }),
1158
1146
  /* @__PURE__ */ r.jsx("dd", { children: e.text }),
@@ -1161,76 +1149,86 @@ const Ds = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "По
1161
1149
  {
1162
1150
  "data-color": e.color || "blue",
1163
1151
  onClick: () => {
1164
- t(), Ne.del();
1152
+ t(), $e.del();
1165
1153
  },
1166
1154
  children: e.button
1167
1155
  }
1168
1156
  ) })
1169
1157
  ] }),
1170
- /* @__PURE__ */ r.jsx("div", { className: rt["--body"], onClick: Ne.del })
1158
+ /* @__PURE__ */ r.jsx("div", { className: nt["--body"], onClick: $e.del })
1171
1159
  ] }));
1172
- function Ms(e, t) {
1173
- Ne.set(/* @__PURE__ */ r.jsx(Ds, { data: e, callback: t }));
1160
+ function Rs(e, t) {
1161
+ $e.set(/* @__PURE__ */ r.jsx($s, { data: e, callback: t }));
1174
1162
  }
1175
- const $s = "_btn_1hz2s_6", Fs = "_confirm_1hz2s_19", Gt = {
1176
- btn: $s,
1177
- confirm: Fs
1163
+ const Ts = "_btn_bf4sc_11", Bs = "_confirm_bf4sc_24", Is = "_disabled_bf4sc_29", Qe = {
1164
+ btn: Ts,
1165
+ confirm: Bs,
1166
+ disabled: Is
1178
1167
  };
1179
- function Ps({ onClick: e, onSend: t, label: n, onRef: s }) {
1180
- let [a, i] = y.useState(!1);
1181
- const l = () => {
1182
- if (e)
1183
- return e();
1184
- a || (i(!0), t && t(i));
1168
+ function Ns({
1169
+ onClick: e,
1170
+ onSend: t,
1171
+ label: n,
1172
+ onRef: s,
1173
+ isDisabled: a
1174
+ }) {
1175
+ let [i, l] = y.useState(!1);
1176
+ const c = () => {
1177
+ if (e) return e();
1178
+ i || (l(!0), t && t(l));
1185
1179
  };
1186
1180
  return /* @__PURE__ */ r.jsx(
1187
1181
  "button",
1188
1182
  {
1189
1183
  ref: s,
1190
- className: [Gt.btn, Gt.confirm].join(" "),
1191
- onClick: l,
1192
- children: a ? "Ожидайте" : n
1184
+ className: [
1185
+ Qe.btn,
1186
+ Qe.confirm,
1187
+ a && Qe.disabled
1188
+ ].join(" "),
1189
+ onClick: c,
1190
+ children: i ? "Ожидайте" : n
1193
1191
  }
1194
1192
  );
1195
1193
  }
1196
- const Os = "_white_11p39_14", Ls = "_black_11p39_26", As = "_shake_11p39_1", zs = "_modal_11p39_73", Ws = "_o_11p39_83", Zs = "_w_11p39_14", Us = "_h_11p39_107", Ys = "_l_11p39_121", Ks = "_t_11p39_159", Gs = "_m_11p39_73", Hs = "_x_11p39_167", qs = "_s_11p39_177", Xs = "_c_11p39_182", Js = "_f_11p39_187", Qs = "_btn_11p39_230", Vs = "_g_11p39_243", ea = "_confirm_11p39_322", ta = "_cancel_11p39_327", na = "_disabled_11p39_332", ra = "_active_11p39_389", sa = "_coincidence_11p39_395", aa = "_sa_11p39_431", ia = "_ss_11p39_435", oa = "_sm_11p39_439", la = "_sl_11p39_443", ca = "_sx_11p39_447", ua = "_sf_11p39_451", Q = {
1197
- white: Os,
1198
- black: Ls,
1199
- shake: As,
1200
- modal: zs,
1201
- o: Ws,
1202
- w: Zs,
1194
+ const Fs = "_white_11p39_14", Ps = "_black_11p39_26", Os = "_shake_11p39_1", Ls = "_modal_11p39_73", As = "_o_11p39_83", Ws = "_w_11p39_14", Us = "_h_11p39_107", zs = "_l_11p39_121", qs = "_t_11p39_159", Hs = "_m_11p39_73", Ks = "_x_11p39_167", Ys = "_s_11p39_177", Zs = "_c_11p39_182", Js = "_f_11p39_187", Gs = "_btn_11p39_230", Xs = "_g_11p39_243", Qs = "_confirm_11p39_322", Vs = "_cancel_11p39_327", ea = "_disabled_11p39_332", ta = "_active_11p39_389", na = "_coincidence_11p39_395", ra = "_sa_11p39_431", sa = "_ss_11p39_435", aa = "_sm_11p39_439", ia = "_sl_11p39_443", oa = "_sx_11p39_447", la = "_sf_11p39_451", Q = {
1195
+ white: Fs,
1196
+ black: Ps,
1197
+ shake: Os,
1198
+ modal: Ls,
1199
+ o: As,
1200
+ w: Ws,
1203
1201
  h: Us,
1204
- l: Ys,
1205
- t: Ks,
1206
- m: Gs,
1207
- x: Hs,
1208
- s: qs,
1209
- c: Xs,
1202
+ l: zs,
1203
+ t: qs,
1204
+ m: Hs,
1205
+ x: Ks,
1206
+ s: Ys,
1207
+ c: Zs,
1210
1208
  f: Js,
1211
- btn: Qs,
1212
- g: Vs,
1209
+ btn: Gs,
1210
+ g: Xs,
1213
1211
  "size-a": "_size-a_11p39_296",
1214
1212
  "size-s": "_size-s_11p39_300",
1215
1213
  "size-m": "_size-m_11p39_304",
1216
1214
  "size-l": "_size-l_11p39_308",
1217
1215
  "size-x": "_size-x_11p39_312",
1218
1216
  "size-f": "_size-f_11p39_316",
1219
- confirm: ea,
1220
- cancel: ta,
1221
- disabled: na,
1217
+ confirm: Qs,
1218
+ cancel: Vs,
1219
+ disabled: ea,
1222
1220
  await: "_await_11p39_339",
1223
- active: ra,
1224
- coincidence: sa,
1225
- sa: aa,
1226
- ss: ia,
1227
- sm: oa,
1228
- sl: la,
1229
- sx: ca,
1230
- sf: ua
1221
+ active: ta,
1222
+ coincidence: na,
1223
+ sa: ra,
1224
+ ss: sa,
1225
+ sm: aa,
1226
+ sl: ia,
1227
+ sx: oa,
1228
+ sf: la
1231
1229
  };
1232
1230
  let xe = {};
1233
- function da({ config: e }) {
1231
+ function ca({ config: e }) {
1234
1232
  let [t, n] = y.useState([]);
1235
1233
  return xe.x = (s) => {
1236
1234
  s || n([]);
@@ -1238,7 +1236,7 @@ function da({ config: e }) {
1238
1236
  n([...t, s]);
1239
1237
  }, /* @__PURE__ */ r.jsx(r.Fragment, { children: t.map((s) => s) });
1240
1238
  }
1241
- function fa({
1239
+ function ua({
1242
1240
  title: e,
1243
1241
  children: t,
1244
1242
  button: n,
@@ -1308,7 +1306,7 @@ function fa({
1308
1306
  )
1309
1307
  ] }),
1310
1308
  t,
1311
- n !== void 0 ? /* @__PURE__ */ r.jsx(Ps, { label: n.label, onSend: u }) : ""
1309
+ n !== void 0 ? /* @__PURE__ */ r.jsx(Ns, { label: n.label, onSend: u }) : ""
1312
1310
  ]
1313
1311
  }
1314
1312
  )
@@ -1316,60 +1314,57 @@ function fa({
1316
1314
  }
1317
1315
  ) : "" });
1318
1316
  }
1319
- function ha(e) {
1320
- xe.add(/* @__PURE__ */ r.jsx(ma, { children: e }, String(Date.now())));
1317
+ function da(e) {
1318
+ xe.add(/* @__PURE__ */ r.jsx(fa, { children: e }, String(Date.now())));
1321
1319
  }
1322
- function ma({ children: e }) {
1320
+ function fa({ children: e }) {
1323
1321
  return /* @__PURE__ */ r.jsx(r.Fragment, { children: e });
1324
1322
  }
1325
- function ga(e) {
1326
- if (e.target.classList[0] !== "modal")
1327
- return;
1323
+ function ha(e) {
1324
+ if (e.target.classList[0] !== "modal") return;
1328
1325
  let t = e.target.children[0];
1329
1326
  t.setAttribute("shake", !0), setTimeout(() => {
1330
1327
  t.setAttribute("shake", !1);
1331
1328
  }, 1e3);
1332
1329
  }
1333
- function pa({ type: e, name: t, params: n }) {
1330
+ function ma({ type: e, name: t, params: n }) {
1334
1331
  let [s, a] = y.useState(null);
1335
1332
  return y.useEffect(() => {
1336
1333
  xe.config(e, t, n, a);
1337
1334
  }, [n.id]), /* @__PURE__ */ r.jsx(r.Fragment, { children: s });
1338
1335
  }
1339
- function xa(e, t) {
1336
+ function ga(e, t) {
1340
1337
  xe.config(e, t);
1341
1338
  }
1342
- function va(e) {
1339
+ function pa(e) {
1343
1340
  xe.x(e);
1344
1341
  }
1345
- const st = {};
1346
- function ba(e, t) {
1347
- st[e] = t;
1342
+ const rt = {};
1343
+ function xa(e, t) {
1344
+ rt[e] = t;
1348
1345
  }
1349
- function ja(e, t) {
1350
- st[e] !== void 0 && st[e](t);
1346
+ function va(e, t) {
1347
+ rt[e] !== void 0 && rt[e](t);
1351
1348
  }
1352
1349
  const le = {};
1353
- function Ca(e, t) {
1350
+ function ja(e, t) {
1354
1351
  const [n, s] = y.useState(t);
1355
1352
  return y.useEffect(() => {
1356
- if (le[e])
1357
- return le[e].push(s);
1353
+ if (le[e]) return le[e].push(s);
1358
1354
  le[e] = [s];
1359
1355
  }, []), [n];
1360
1356
  }
1361
- function _a(e, t) {
1362
- if (le[e])
1363
- return le[e].push(t);
1357
+ function ba(e, t) {
1358
+ if (le[e]) return le[e].push(t);
1364
1359
  le[e] = [t];
1365
1360
  }
1366
- function ya(e, t) {
1361
+ function Ca(e, t) {
1367
1362
  le[e] && le[e].forEach((n) => n(t));
1368
1363
  }
1369
- const ft = { setListener: ja, useListener: ba, setEmitter: ya, useEmitter: Ca, subEmitter: _a };
1370
- function wa() {
1364
+ const dt = { setListener: va, useListener: xa, setEmitter: Ca, useEmitter: ja, subEmitter: ba };
1365
+ function ya() {
1371
1366
  let [e, t] = y.useState([]);
1372
- return ft.useListener("form", (n) => {
1367
+ return dt.useListener("form", (n) => {
1373
1368
  t([n]);
1374
1369
  }), /* @__PURE__ */ r.jsx(r.Fragment, { children: e.map((n) => n) });
1375
1370
  }
@@ -1379,20 +1374,20 @@ const ce = {
1379
1374
  getPage: nn,
1380
1375
  usePage: wr,
1381
1376
  isPage: Sr,
1382
- setModule: Tr,
1377
+ setModule: Dr,
1383
1378
  getModule: rn,
1384
1379
  useModule: Er,
1385
- isModule: Rr,
1386
- setTabs: Nr,
1380
+ isModule: Mr,
1381
+ setTabs: Rr,
1387
1382
  getTabs: Ae,
1388
- useTabs: Br,
1389
- isTabs: Ir,
1390
- useId: Dr,
1391
- setId: $r,
1392
- subId: Mr,
1383
+ useTabs: $r,
1384
+ isTabs: Tr,
1385
+ useId: Br,
1386
+ setId: Nr,
1387
+ subId: Ir,
1393
1388
  getId: sn,
1394
1389
  isId: Fr
1395
- }, at = { Send: _s, Error: ys, Remark: ks, Success: ws, Copy: Ss }, gn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ r.jsx(
1390
+ }, st = { Send: ys, Error: _s, Remark: ks, Success: ws, Copy: Ss }, gn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ r.jsx(
1396
1391
  "div",
1397
1392
  {
1398
1393
  role: "switch",
@@ -1403,8 +1398,7 @@ const ce = {
1403
1398
  function pn({ onClick: e, onSend: t, name: n, onRef: s }) {
1404
1399
  let [a, i] = y.useState(!1);
1405
1400
  const l = () => {
1406
- if (e)
1407
- return e();
1401
+ if (e) return e();
1408
1402
  a || (i(!0), t && t(i));
1409
1403
  };
1410
1404
  return /* @__PURE__ */ r.jsx(
@@ -1444,10 +1438,10 @@ function xn({
1444
1438
  p.keyCode === 16 && (u.current.shift = !0), p.keyCode === 13 && !u.current.shift && (p.preventDefault(), u.current.value.length !== 0 && (p.target.textContent = "", s && s(u.current.value), t && t(u.current.value), u.current.value = "", n(!1)));
1445
1439
  }, h = (p) => {
1446
1440
  p.keyCode === 16 && (u.current.shift = !1);
1447
- }, b = (p) => {
1448
- p.preventDefault(), navigator.clipboard.readText().then((j) => {
1449
- window.document.execCommand("insertText", !1, j);
1450
- }).catch((j) => {
1441
+ }, j = (p) => {
1442
+ p.preventDefault(), navigator.clipboard.readText().then((b) => {
1443
+ window.document.execCommand("insertText", !1, b);
1444
+ }).catch((b) => {
1451
1445
  });
1452
1446
  }, C = () => {
1453
1447
  n(!1);
@@ -1457,7 +1451,7 @@ function xn({
1457
1451
  return d && (m.placeholder = d), l && c && (m.contentEditable = "plaintext-only"), /* @__PURE__ */ r.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ r.jsx(
1458
1452
  "dd",
1459
1453
  {
1460
- onPaste: b,
1454
+ onPaste: j,
1461
1455
  onInput: g,
1462
1456
  onKeyUp: h,
1463
1457
  onKeyDown: x,
@@ -1495,40 +1489,40 @@ function vn(e) {
1495
1489
  )
1496
1490
  ] });
1497
1491
  }
1498
- let be = {};
1499
- be.KeyDown = (e) => {
1492
+ let je = {};
1493
+ je.KeyDown = (e) => {
1500
1494
  e.key === "Enter" && e.preventDefault();
1501
1495
  };
1502
- be.PasteOne = (e) => {
1496
+ je.PasteOne = (e) => {
1503
1497
  e.preventDefault(), navigator.clipboard.readText().then((t) => {
1504
1498
  t = t.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, t);
1505
1499
  }).catch((t) => {
1506
1500
  });
1507
1501
  };
1508
- be.Focus = (e) => {
1502
+ je.Focus = (e) => {
1509
1503
  e.target.textContent.length === 0 && (e.target.innerHTML = "<br>");
1510
1504
  };
1511
- be.Blur = (e) => {
1505
+ je.Blur = (e) => {
1512
1506
  e.target.scrollLeft = 0, e.target.querySelector("br") !== null && e.target.querySelector("br").remove();
1513
1507
  };
1514
- function bn({ value: e, onValue: t, placeholder: n = "", name: s }) {
1515
- let a = (h, b) => Number(Math.round(h + Math.random() * (b - h))), i = y.useRef(null), l = y.useRef(null), c = a(1e4, 99999), d = (h) => {
1508
+ function jn({ value: e, onValue: t, placeholder: n = "", name: s }) {
1509
+ let a = (h, j) => Number(Math.round(h + Math.random() * (j - h))), i = y.useRef(null), l = y.useRef(null), c = a(1e4, 99999), d = (h) => {
1516
1510
  h.key !== "Backspace" && (h.key === "Enter" && h.preventDefault(), h.target.textContent.length === 5 && h.preventDefault(), /\d/.test(h.key) || h.preventDefault());
1517
1511
  }, u = (h) => {
1518
1512
  t({ value: Number(h.target.textContent) === c, name: s });
1519
1513
  }, f = (h) => {
1520
- h.preventDefault(), navigator.clipboard.readText().then((b) => {
1514
+ h.preventDefault(), navigator.clipboard.readText().then((j) => {
1521
1515
  window.document.execCommand(
1522
1516
  "insertText",
1523
1517
  !1,
1524
- b.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
1518
+ j.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
1525
1519
  );
1526
- }).catch((b) => {
1520
+ }).catch((j) => {
1527
1521
  });
1528
1522
  };
1529
1523
  y.useEffect(() => {
1530
- const h = i.current, b = h.getContext("2d");
1531
- b.clearRect(0, 0, h.width, h.height), b.font = "30px brush script mt", b.fillStyle = "#eee", b.textAlign = "center", b.fillText(c, 50, 27), l.current.textContent = "";
1524
+ const h = i.current, j = h.getContext("2d");
1525
+ j.clearRect(0, 0, h.width, h.height), j.font = "30px brush script mt", j.fillStyle = "#eee", j.textAlign = "center", j.fillText(c, 50, 27), l.current.textContent = "";
1532
1526
  }, [c]);
1533
1527
  const g = {};
1534
1528
  g.field = "captcha";
@@ -1540,7 +1534,7 @@ function bn({ value: e, onValue: t, placeholder: n = "", name: s }) {
1540
1534
  ref: l,
1541
1535
  onPaste: f,
1542
1536
  onInput: u,
1543
- onBlur: be.Blur,
1537
+ onBlur: je.Blur,
1544
1538
  onKeyDown: d,
1545
1539
  contentEditable: "plaintext-only",
1546
1540
  suppressContentEditableWarning: !0,
@@ -1550,7 +1544,7 @@ function bn({ value: e, onValue: t, placeholder: n = "", name: s }) {
1550
1544
  /* @__PURE__ */ r.jsx("canvas", { ref: i, width: "100", height: "35" })
1551
1545
  ] });
1552
1546
  }
1553
- function jn(e) {
1547
+ function bn(e) {
1554
1548
  let t = () => e.title ? /* @__PURE__ */ r.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ r.jsx("em", { children: e.error }) : "", s = {
1555
1549
  n1: "",
1556
1550
  n2: "",
@@ -1713,7 +1707,7 @@ function Cn(e) {
1713
1707
  }
1714
1708
  ) });
1715
1709
  }
1716
- function ka(e, t) {
1710
+ function _a(e, t) {
1717
1711
  t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
1718
1712
  let n = {
1719
1713
  yyyy: e.getFullYear(),
@@ -1730,7 +1724,7 @@ function ka(e, t) {
1730
1724
  t = t.replace(s, n[s]);
1731
1725
  return t;
1732
1726
  }
1733
- function Sa(e) {
1727
+ function wa(e) {
1734
1728
  let t = [
1735
1729
  "Января",
1736
1730
  "Февраля",
@@ -1750,17 +1744,17 @@ function Sa(e) {
1750
1744
  name: n.getDate() + " " + t[n.getMonth()]
1751
1745
  };
1752
1746
  }
1753
- const Ea = (e) => {
1747
+ const ka = (e) => {
1754
1748
  function t(S, E) {
1755
- var M, P, R;
1749
+ var I, P, M;
1756
1750
  S = S ?? "", E = E ?? 1;
1757
- for (var M = [], R = 0, P = S.length; R < P; )
1758
- M.push(S.slice(R, R += E));
1759
- return M;
1751
+ for (var I = [], M = 0, P = S.length; M < P; )
1752
+ I.push(S.slice(M, M += E));
1753
+ return I;
1760
1754
  }
1761
1755
  function n(S, E) {
1762
- var M = [2, 0, 1, 1, 1, 2];
1763
- return E[S > 4 && S < 20 ? 2 : M[Math.min(S, 5)]];
1756
+ var I = [2, 0, 1, 1, 1, 2];
1757
+ return E[S > 4 && S < 20 ? 2 : I[Math.min(S, 5)]];
1764
1758
  }
1765
1759
  var s = {
1766
1760
  null: "ноль",
@@ -1826,10 +1820,10 @@ const Ea = (e) => {
1826
1820
  u1: ["миллиард", "миллиарда", "миллиардов"]
1827
1821
  }, a, i, l, c, m, d, u, C, f, g, x, h;
1828
1822
  f = parseFloat(e).toFixed(2).split("."), d = f[0], c = f[1];
1829
- var b = 12 - d.length;
1830
- if (b < 0)
1823
+ var j = 12 - d.length;
1824
+ if (j < 0)
1831
1825
  return !1;
1832
- for (var C = []; b--; )
1826
+ for (var C = []; j--; )
1833
1827
  C.push("0");
1834
1828
  d = C.join("") + d;
1835
1829
  var m = [];
@@ -1841,25 +1835,25 @@ const Ea = (e) => {
1841
1835
  ) : m.push(
1842
1836
  i > 0 ? s.a10[l] : s[h][l - 1]
1843
1837
  ), g.length > p + 1)) {
1844
- var j = s["u" + (p + 1)];
1845
- m.push(n(u, j));
1838
+ var b = s["u" + (p + 1)];
1839
+ m.push(n(u, b));
1846
1840
  }
1847
1841
  } else
1848
1842
  m.push(s.null);
1849
1843
  return m.push(n(d, s.ur)), m.push(c + " " + n(c, s.uc)), m.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1850
1844
  };
1851
- function Ta(e) {
1845
+ function Sa(e) {
1852
1846
  let t = -1, n = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
1853
1847
  do
1854
1848
  e = e / 1024, t++;
1855
1849
  while (e > 1024);
1856
1850
  return Math.max(e, 0.1).toFixed(1) + n[t];
1857
1851
  }
1858
- function Ra(e) {
1852
+ function Ea(e) {
1859
1853
  let t = {};
1860
1854
  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];
1861
1855
  }
1862
- function Ba(e, t, n, s) {
1856
+ function Da(e, t, n, s) {
1863
1857
  let a = {
1864
1858
  sexM: "m",
1865
1859
  sexF: "f",
@@ -1980,19 +1974,17 @@ function Ba(e, t, n, s) {
1980
1974
  },
1981
1975
  // склоняем слово по указанному набору правил и исключений
1982
1976
  word: function(l, c, d, u) {
1983
- if (u === this.gcaseNom)
1984
- return l;
1977
+ if (u === this.gcaseNom) return l;
1985
1978
  if (l.match(/[-]/)) {
1986
1979
  for (var f = l.split("-"), g = 0, x = f.length; g < x; g++)
1987
1980
  f[g] = this.word(f[g], c, d, u);
1988
1981
  return f.join("-");
1989
1982
  }
1990
- if (l.match(/^[А-ЯЁ]\.?$/i))
1991
- return l;
1983
+ if (l.match(/^[А-ЯЁ]\.?$/i)) return l;
1992
1984
  this.init();
1993
1985
  var h = this.rules[d];
1994
- let b;
1995
- return h.exceptions && (b = this.pick(l, c, u, h.exceptions, !0), b) ? b : (b = this.pick(l, c, u, h.suffixes, !1), b || l);
1986
+ let j;
1987
+ return h.exceptions && (j = this.pick(l, c, u, h.exceptions, !0), j) ? j : (j = this.pick(l, c, u, h.suffixes, !1), j || l);
1996
1988
  },
1997
1989
  // выбираем из списка правил первое подходящее и применяем
1998
1990
  pick: function(l, c, d, u, f) {
@@ -2004,14 +1996,12 @@ function Ba(e, t, n, s) {
2004
1996
  },
2005
1997
  // проверяем, подходит ли правило к слову
2006
1998
  ruleMatch: function(l, c, d, u) {
2007
- if (d.sex === this.sexM && c === this.sexF || d.sex === this.sexF && c !== this.sexF)
2008
- return !1;
1999
+ if (d.sex === this.sexM && c === this.sexF || d.sex === this.sexF && c !== this.sexF) return !1;
2009
2000
  for (var f = 0, g = d.test.length; f < g; f++) {
2010
2001
  var x = u ? l : l.substr(
2011
2002
  Math.max(l.length - d.test[f].length, 0)
2012
2003
  );
2013
- if (x === d.test[f])
2014
- return !0;
2004
+ if (x === d.test[f]) return !0;
2015
2005
  }
2016
2006
  return !1;
2017
2007
  },
@@ -2069,13 +2059,12 @@ function Ba(e, t, n, s) {
2069
2059
  };
2070
2060
  if (typeof t > "u") {
2071
2061
  var i = e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);
2072
- if (!i)
2073
- return "Cannot parse supplied name";
2062
+ if (!i) return "Cannot parse supplied name";
2074
2063
  i[5] && i[3].match(/(ич|на)$/) && !i[5].match(/(ич|на)$/) ? (e = i[5], t = i[1], n = i[3], a.fullNameSurnameLast = !0) : (e = i[1], t = i[3], n = i[5]);
2075
2064
  }
2076
2065
  return a.ln = e, a.fn = t || "", a.mn = n || "", a.sex = s || a.getSex(), a;
2077
2066
  }
2078
- function Na(e) {
2067
+ function Ma(e) {
2079
2068
  let t = e.split(" ");
2080
2069
  switch (t.length) {
2081
2070
  case 2:
@@ -2086,7 +2075,7 @@ function Na(e) {
2086
2075
  return e;
2087
2076
  }
2088
2077
  }
2089
- function Ia(e) {
2078
+ function $a(e) {
2090
2079
  return e = typeof e == "number" ? e : new Date(e).getMonth() + 1, {
2091
2080
  1: { val: "01", name: "Январь", names: "Января", abc: "Янв" },
2092
2081
  2: { val: "02", name: "Февраль", names: "Февраля", abc: "Февр" },
@@ -2102,34 +2091,33 @@ function Ia(e) {
2102
2091
  12: { val: "12", name: "Декабрь", names: "Декабря", abc: "Дек" }
2103
2092
  }[e];
2104
2093
  }
2105
- function Da(e, t) {
2094
+ function Ra(e, t) {
2106
2095
  return t && (e = Number(e) / t), parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
2107
2096
  }
2108
- function Ma(e, t) {
2097
+ function Ta(e, t) {
2109
2098
  let n = t + "";
2110
- for (; n.length < e; )
2111
- n = "0" + n;
2099
+ for (; n.length < e; ) n = "0" + n;
2112
2100
  return n;
2113
2101
  }
2114
- function $a(e, t, n) {
2102
+ function Ba(e, t, n) {
2115
2103
  let s = t / e * n;
2116
2104
  return (typeof s != "number" || s === 1 / 0) && (s = 0), parseFloat(s).toFixed(1);
2117
2105
  }
2118
- function Fa(e) {
2106
+ function Ia(e) {
2119
2107
  return e.charAt(0).toUpperCase() + e.slice(1);
2120
2108
  }
2121
- function Pa(e, t) {
2109
+ function Na(e, t) {
2122
2110
  e = Math.abs(e) % 100;
2123
2111
  let n = e % 10;
2124
2112
  return e > 10 && e < 20 ? t[2] : n > 1 && n < 5 ? t[1] : n === 1 ? t[0] : t[2];
2125
2113
  }
2126
- function Oa(e, t, n) {
2114
+ function Fa(e, t, n) {
2127
2115
  return ae(e, t) ? ae(e, t).n : n || "";
2128
2116
  }
2129
- function La(e, t, n, s) {
2117
+ function Pa(e, t, n, s) {
2130
2118
  return ae(e, t) ? ae(e, t)[n] : s || "";
2131
2119
  }
2132
- function Aa(e) {
2120
+ function Oa(e) {
2133
2121
  return {
2134
2122
  0: { name: "Январь", names: "Января", abc: "Янв" },
2135
2123
  1: { name: "Январь", names: "Января", abc: "Янв" },
@@ -2140,16 +2128,16 @@ function Aa(e) {
2140
2128
  6: { name: "Июнь", names: "Июня", abc: "Июнь" }
2141
2129
  }[e];
2142
2130
  }
2143
- function za(e, t) {
2131
+ function La(e, t) {
2144
2132
  return e.reduce(function(n, s) {
2145
2133
  let a = t instanceof Function ? t(s) : s[t];
2146
2134
  return n[a] !== void 0 || (n[a] = {}), n[a][s.id] = s, n;
2147
2135
  }, {});
2148
2136
  }
2149
- function Wa(e) {
2137
+ function Aa(e) {
2150
2138
  return parseInt((Date.now() - new Date(e).getTime()) / 31536e6 + "") + "";
2151
2139
  }
2152
- function Za(e) {
2140
+ function Wa(e) {
2153
2141
  return ["number", "string"].includes(typeof e) ? !isNaN(Number(e)) && !isNaN(parseFloat(e)) : !1;
2154
2142
  }
2155
2143
  function Ua(e) {
@@ -2225,29 +2213,29 @@ function Ua(e) {
2225
2213
  n[e[s]] == null ? t += e[s] : t += n[e[s]];
2226
2214
  return t;
2227
2215
  }
2228
- function Ya(e, t, n = !1) {
2216
+ function za(e, t, n = !1) {
2229
2217
  return n ? e.sort((s, a) => a[t] - s[t]) : e.sort((s, a) => s[t] - a[t]);
2230
2218
  }
2231
- function Ka(e, t) {
2219
+ function qa(e, t) {
2232
2220
  return e.reduce(function(n, s) {
2233
2221
  let a = t instanceof Function ? t(s) : s[t];
2234
2222
  return n[a] !== void 0 || (n[a] = {}), n[a][s.id] = s, n;
2235
2223
  }, {});
2236
2224
  }
2237
- function Ga(e, t, n = !1) {
2225
+ function Ha(e, t, n = !1) {
2238
2226
  return n ? e.sort(
2239
2227
  (s, a) => new Date(a[t]).getTime() - new Date(s[t]).getTime()
2240
2228
  ) : e.sort(
2241
2229
  (s, a) => new Date(s[t]).getTime() - new Date(a[t]).getTime()
2242
2230
  );
2243
2231
  }
2244
- function Ha(e, t) {
2232
+ function Ka(e, t) {
2245
2233
  return e.reduce((n, s) => n + (s[t] || 0), 0);
2246
2234
  }
2247
- function qa(e, t, n, s = !1) {
2235
+ function Ya(e, t, n, s = !1) {
2248
2236
  return s ? e.sort((a, i) => n(i[t]) - n(a[t])) : e.sort((a, i) => n(a[t]) - n(i[t]));
2249
2237
  }
2250
- function Xa(e) {
2238
+ function Za(e) {
2251
2239
  return { style: { background: `var(--color-${e})` } };
2252
2240
  }
2253
2241
  function Ja(e) {
@@ -2262,47 +2250,47 @@ function Ja(e) {
2262
2250
  return "∞";
2263
2251
  }
2264
2252
  }
2265
- function Qa(e) {
2253
+ function Ga(e) {
2266
2254
  const t = /^#{1}\s+[^#].*$/gm, n = /^#{2}\s+[^#].*$/gm, s = /^#{3}\s+[^#].*$/gm, a = /\*\*[^\*\n]+\*\*/gm, i = /[^\*]\*[^\*\n]+\*/gm, l = /\[[\w|\(|\)|\s|\*|\?|\-|\.|\,]*(\]\(){1}[^\)]*\)/gm, c = /^((\s*((\*|\-)|\d(\.|\))) [^\n]+))+$/gm, d = /^[\*|\+|\-]\s.*$/, u = /^\s\s\s*[\*|\+|\-]\s.*$/, f = /^\d\.\s.*$/, g = /^\s\s+\d\.\s.*$/;
2267
2255
  return t.test(e) && e.match(t).forEach((h) => {
2268
- const b = h.slice(1);
2256
+ const j = h.slice(1);
2269
2257
  e = e.replace(
2270
2258
  h,
2271
- "<h1>" + b + "</h1>"
2259
+ "<h1>" + j + "</h1>"
2272
2260
  );
2273
2261
  }), n.test(e) && e.match(n).forEach((h) => {
2274
- const b = h.slice(2);
2262
+ const j = h.slice(2);
2275
2263
  e = e.replace(
2276
2264
  h,
2277
- "<h2>" + b + "</h2>"
2265
+ "<h2>" + j + "</h2>"
2278
2266
  );
2279
2267
  }), s.test(e) && e.match(s).forEach((h) => {
2280
- const b = h.slice(3);
2268
+ const j = h.slice(3);
2281
2269
  e = e.replace(
2282
2270
  h,
2283
- "<h3>" + b + "</h3>"
2271
+ "<h3>" + j + "</h3>"
2284
2272
  );
2285
2273
  }), a.test(e) && e.match(a).forEach((h) => {
2286
- const b = h.slice(2, -2);
2274
+ const j = h.slice(2, -2);
2287
2275
  e = e.replace(
2288
2276
  h,
2289
- "<strong>" + b + "</strong>"
2277
+ "<strong>" + j + "</strong>"
2290
2278
  );
2291
2279
  }), i.test(e) && e.match(i).forEach((h) => {
2292
- const b = h.slice(2, -1);
2280
+ const j = h.slice(2, -1);
2293
2281
  e = e.replace(
2294
2282
  h,
2295
- " <em>" + b + "</em>"
2283
+ " <em>" + j + "</em>"
2296
2284
  );
2297
2285
  }), l.test(e) && e.match(l).forEach((h) => {
2298
- const b = h.match(/^\[.*\]/)[0].slice(1, -1), C = h.match(/\]\(.*\)/)[0].slice(2, -1);
2286
+ const j = h.match(/^\[.*\]/)[0].slice(1, -1), C = h.match(/\]\(.*\)/)[0].slice(2, -1);
2299
2287
  e = e.replace(
2300
2288
  h,
2301
- '<a href="' + C + '">' + b + "</a>"
2289
+ '<a href="' + C + '">' + j + "</a>"
2302
2290
  );
2303
2291
  }), c.test(e) && e.match(c).forEach((h) => {
2304
2292
  const C = h.split(`
2305
- `).map((m, p, j) => (d.test(m) && (m = "<li>" + m.slice(2) + "</li>", !d.test(j[p - 1]) && !u.test(j[p - 1]) && (m = "<ul>" + m), !d.test(j[p + 1]) && !u.test(j[p + 1]) && (m = m + "</ul>"), (u.test(j[p + 1]) || g.test(j[p + 1])) && (m = m.replace("</li>", ""))), u.test(m) && (m = m.trim(), m = "<li>" + m.slice(2) + "</li>", u.test(j[p - 1]) || (m = "<ul>" + m), !u.test(j[p + 1]) && d.test(j[p + 1]) && (m = m + "</ul></li>"), !u.test(j[p + 1]) && !d.test(j[p + 1]) && (m = m + "</ul></li></ul>")), f.test(m) && (m = "<li>" + m.slice(2) + "</li>", !f.test(j[p - 1]) && !g.test(j[p - 1]) && (m = "<ol>" + m), !f.test(j[p + 1]) && !g.test(j[p + 1]) && !f.test(j[p + 1]) && (m = m + "</ol>"), (u.test(j[p + 1]) || g.test(j[p + 1])) && (m = m.replace("</li>", ""))), g.test(m) && (m = m.trim(), m = "<li>" + m.slice(2) + "</li>", g.test(j[p - 1]) || (m = "<ol>" + m), f.test(j[p + 1]) && !g.test(j[p + 1]) && (m = m + "</ol>"), !f.test(j[p + 1]) && !g.test(j[p + 1]) && (m = m + "</ol></li></ol>")), m)).join("");
2293
+ `).map((m, p, b) => (d.test(m) && (m = "<li>" + m.slice(2) + "</li>", !d.test(b[p - 1]) && !u.test(b[p - 1]) && (m = "<ul>" + m), !d.test(b[p + 1]) && !u.test(b[p + 1]) && (m = m + "</ul>"), (u.test(b[p + 1]) || g.test(b[p + 1])) && (m = m.replace("</li>", ""))), u.test(m) && (m = m.trim(), m = "<li>" + m.slice(2) + "</li>", u.test(b[p - 1]) || (m = "<ul>" + m), !u.test(b[p + 1]) && d.test(b[p + 1]) && (m = m + "</ul></li>"), !u.test(b[p + 1]) && !d.test(b[p + 1]) && (m = m + "</ul></li></ul>")), f.test(m) && (m = "<li>" + m.slice(2) + "</li>", !f.test(b[p - 1]) && !g.test(b[p - 1]) && (m = "<ol>" + m), !f.test(b[p + 1]) && !g.test(b[p + 1]) && !f.test(b[p + 1]) && (m = m + "</ol>"), (u.test(b[p + 1]) || g.test(b[p + 1])) && (m = m.replace("</li>", ""))), g.test(m) && (m = m.trim(), m = "<li>" + m.slice(2) + "</li>", g.test(b[p - 1]) || (m = "<ol>" + m), f.test(b[p + 1]) && !g.test(b[p + 1]) && (m = m + "</ol>"), !f.test(b[p + 1]) && !g.test(b[p + 1]) && (m = m + "</ol></li></ol>")), m)).join("");
2306
2294
  e = e.replace(h, C);
2307
2295
  }), e.split(`
2308
2296
  `).map((x) => {
@@ -2310,49 +2298,49 @@ function Qa(e) {
2310
2298
  return x.replace(x, "<p>" + x + "</p>");
2311
2299
  }).join("");
2312
2300
  }
2313
- function Va(e) {
2301
+ function Xa(e) {
2314
2302
  let t = Math.floor(e / 1e3 % 60), n = Math.floor(e / (1e3 * 60) % 60), s = Math.floor(e / (1e3 * 60 * 60) % 24);
2315
2303
  return s = s < 10 ? "0" + s : s, n = n < 10 ? "0" + n : n, t = t < 10 ? "0" + t : t, { hours: s, minutes: n, seconds: t };
2316
2304
  }
2317
- function ei(e, t) {
2305
+ function Qa(e, t) {
2318
2306
  return Math.floor(Math.random() * (t - e + 1) + e);
2319
2307
  }
2320
2308
  const ie = {
2321
- Age: Wa,
2322
- ArraySort: Ya,
2323
- ArrayGroup: Ka,
2324
- ArraySortDate: Ga,
2325
- ArraySortFunction: qa,
2326
- ArraySumma: Ha,
2309
+ Age: Aa,
2310
+ ArraySort: za,
2311
+ ArrayGroup: qa,
2312
+ ArraySortDate: Ha,
2313
+ ArraySortFunction: Ya,
2314
+ ArraySumma: Ka,
2327
2315
  Translit: Ua,
2328
- Date: ka,
2329
- DateSort: Sa,
2330
- DateString: Va,
2331
- ColorBackground: Xa,
2332
- MoneyString: Ea,
2316
+ Date: _a,
2317
+ DateSort: wa,
2318
+ DateString: Xa,
2319
+ ColorBackground: Za,
2320
+ MoneyString: ka,
2333
2321
  CountTime: Ja,
2334
- Size: Ta,
2335
- TypeFiles: Ra,
2336
- Cases: Ba,
2337
- Initials: Na,
2338
- Month: Ia,
2339
- Money: Da,
2340
- MarkdownParse: Qa,
2341
- Number: Ma,
2342
- Percent: $a,
2343
- CapitalizeFirstLetter: Fa,
2344
- RandomIntFromInterval: ei,
2345
- DeclensionWord: Pa,
2346
- Select: Oa,
2347
- SelectParams: La,
2348
- ObjectByArray: za,
2349
- isNumeric: Za,
2350
- Week: Aa
2322
+ Size: Sa,
2323
+ TypeFiles: Ea,
2324
+ Cases: Da,
2325
+ Initials: Ma,
2326
+ Month: $a,
2327
+ Money: Ra,
2328
+ MarkdownParse: Ga,
2329
+ Number: Ta,
2330
+ Percent: Ba,
2331
+ CapitalizeFirstLetter: Ia,
2332
+ RandomIntFromInterval: Qa,
2333
+ DeclensionWord: Na,
2334
+ Select: Fa,
2335
+ SelectParams: Pa,
2336
+ ObjectByArray: La,
2337
+ isNumeric: Wa,
2338
+ Week: Oa
2351
2339
  };
2352
2340
  ie.setFN = (e, t) => {
2353
2341
  ie[e] = t;
2354
2342
  };
2355
- function ht({
2343
+ function ft({
2356
2344
  title: e,
2357
2345
  value: t,
2358
2346
  placeholder: n,
@@ -2361,20 +2349,20 @@ function ht({
2361
2349
  onSave: i,
2362
2350
  className: l
2363
2351
  }) {
2364
- const c = "__.__.____", d = new Set("_"), u = ((p) => Array.from(c, (j, S) => d.has(j) ? p = S + 1 : p))(0), f = [...c].findIndex((p) => d.has(p)), g = new RegExp("\\d", "g"), x = (p) => (p = p.match(g) || [], Array.from(
2352
+ const c = "__.__.____", d = new Set("_"), u = ((p) => Array.from(c, (b, S) => d.has(b) ? p = S + 1 : p))(0), f = [...c].findIndex((p) => d.has(p)), g = new RegExp("\\d", "g"), x = (p) => (p = p.match(g) || [], Array.from(
2365
2353
  c,
2366
- (j) => (p[0] === j || d.has(j)) && p.shift() || j
2354
+ (b) => (p[0] === b || d.has(b)) && p.shift() || b
2367
2355
  )), h = (p) => {
2368
- const [j, S] = [p.target.selectionStart, p.target.selectionEnd].map(
2356
+ const [b, S] = [p.target.selectionStart, p.target.selectionEnd].map(
2369
2357
  (E) => (E = x(p.target.value.slice(0, E)).findIndex(
2370
- (M) => d.has(M)
2358
+ (I) => d.has(I)
2371
2359
  ), E < 0 ? u[u.length - 1] : C ? u[E - 1] || f : E)
2372
2360
  );
2373
- p.target.value = x(p.target.value).join(""), p.target.setSelectionRange(j, S), C = !1, s == null || s({
2361
+ p.target.value = x(p.target.value).join(""), p.target.setSelectionRange(b, S), C = !1, s == null || s({
2374
2362
  name: a,
2375
2363
  value: p.target.value.split(".").reverse().join("-")
2376
2364
  });
2377
- }, b = (p) => {
2365
+ }, j = (p) => {
2378
2366
  p.target.value = x(p.target.value).join(""), i == null || i({
2379
2367
  name: a,
2380
2368
  value: p.target.value.split(".").reverse().join("-")
@@ -2394,37 +2382,37 @@ function ht({
2394
2382
  onKeyDown: (p) => C = p.key === "Backspace",
2395
2383
  onFocus: h,
2396
2384
  defaultValue: ie.Date(t, "dd.mm.yyyy"),
2397
- onBlur: b
2385
+ onBlur: j
2398
2386
  }
2399
2387
  ) })
2400
2388
  ] });
2401
2389
  }
2402
- function ti({ children: e }) {
2390
+ function Va({ children: e }) {
2403
2391
  return /* @__PURE__ */ r.jsx("div", { className: "l", children: /* @__PURE__ */ r.jsx("ul", { children: e }) });
2404
2392
  }
2405
- function ni({ children: e }) {
2393
+ function ei({ children: e }) {
2406
2394
  return /* @__PURE__ */ r.jsx("div", { className: Q.s, children: e });
2407
2395
  }
2408
- function ri({ children: e, className: t }) {
2396
+ function ti({ children: e, className: t }) {
2409
2397
  let n = {};
2410
2398
  return t && (n.className = t), /* @__PURE__ */ r.jsx("div", { "data-form": "outline", ...n, children: /* @__PURE__ */ r.jsx("ul", { children: e }) });
2411
2399
  }
2412
- function si({ children: e }) {
2400
+ function ni({ children: e }) {
2413
2401
  return /* @__PURE__ */ r.jsx("div", { className: Q.c, children: e });
2414
2402
  }
2415
- const _n = {
2416
- List: ti,
2417
- Scroll: ni,
2418
- Main: fa,
2419
- Add: ha,
2420
- Icon: pa,
2421
- Open: xa,
2422
- Shake: ga,
2423
- Form: ri,
2424
- Center: si,
2425
- Close: va
2403
+ const yn = {
2404
+ List: Va,
2405
+ Scroll: ei,
2406
+ Main: ua,
2407
+ Add: da,
2408
+ Icon: ma,
2409
+ Open: ga,
2410
+ Shake: ha,
2411
+ Form: ti,
2412
+ Center: ni,
2413
+ Close: pa
2426
2414
  };
2427
- function mt({
2415
+ function ht({
2428
2416
  value: e,
2429
2417
  onValue: t,
2430
2418
  name: n,
@@ -2439,19 +2427,18 @@ function mt({
2439
2427
  view: g,
2440
2428
  modal: x,
2441
2429
  module: h,
2442
- options: b,
2430
+ options: j,
2443
2431
  className: C
2444
2432
  }) {
2445
- let [m, p] = y.useState(e), j = (M) => {
2446
- if (!(c && u) || !x)
2447
- return;
2448
- let R = x.split(".");
2449
- _n.Open(R[1], {
2433
+ let [m, p] = y.useState(e), b = (I) => {
2434
+ if (!(c && u) || !x) return;
2435
+ let M = x.split(".");
2436
+ yn.Open(M[1], {
2450
2437
  callback: (P) => {
2451
2438
  t && t({ value: P, name: n }), p(P);
2452
2439
  },
2453
2440
  onValue: t,
2454
- options: b,
2441
+ options: j,
2455
2442
  name: n,
2456
2443
  value: e
2457
2444
  });
@@ -2465,7 +2452,7 @@ function mt({
2465
2452
  "dd",
2466
2453
  {
2467
2454
  ...E,
2468
- onClick: j,
2455
+ onClick: b,
2469
2456
  edit: (c && u) + "",
2470
2457
  "data-after": f,
2471
2458
  children: m
@@ -2474,10 +2461,10 @@ function mt({
2474
2461
  i && /* @__PURE__ */ r.jsx("em", { children: i })
2475
2462
  ] });
2476
2463
  }
2477
- function gt(e) {
2464
+ function mt(e) {
2478
2465
  let t = e.value, n = (g) => e.type === "multi" ? g.replace(/[^+\d.+-]/g, "") : g.replace(/[^+\d.]/g, ""), s = (g, x) => {
2479
- let h = document.createRange(), b = window.getSelection();
2480
- h.setStart(x.childNodes[0], g), h.collapse(!0), b.removeAllRanges(), b.addRange(h), x.focus();
2466
+ let h = document.createRange(), j = window.getSelection();
2467
+ h.setStart(x.childNodes[0], g), h.collapse(!0), j.removeAllRanges(), j.addRange(h), x.focus();
2481
2468
  }, a = (g) => {
2482
2469
  e.onValue({
2483
2470
  value: n(g.target.textContent),
@@ -2523,11 +2510,11 @@ function gt(e) {
2523
2510
  }
2524
2511
  );
2525
2512
  }
2526
- const ai = "_o_1kqkq_1", ii = "_c_1kqkq_11", Ht = {
2527
- o: ai,
2528
- c: ii
2513
+ const ri = "_o_1kqkq_1", si = "_c_1kqkq_11", Zt = {
2514
+ o: ri,
2515
+ c: si
2529
2516
  };
2530
- function yn({
2517
+ function _n({
2531
2518
  value: e,
2532
2519
  onValue: t,
2533
2520
  name: n,
@@ -2546,15 +2533,14 @@ function yn({
2546
2533
  let x = (C) => {
2547
2534
  g(C), t && t({ value: C, name: n });
2548
2535
  }, h = (C) => {
2549
- if (!i || !l)
2550
- return;
2551
- const m = C.target.getBoundingClientRect(), p = m.left, j = m.top;
2552
- ft.setListener(
2536
+ if (!i || !l) return;
2537
+ const m = C.target.getBoundingClientRect(), p = m.left, b = m.top;
2538
+ dt.setListener(
2553
2539
  "form",
2554
2540
  /* @__PURE__ */ r.jsx(
2555
- oi,
2541
+ ai,
2556
2542
  {
2557
- position: { x: p, y: j },
2543
+ position: { x: p, y: b },
2558
2544
  onValue: x,
2559
2545
  date: f
2560
2546
  },
@@ -2562,8 +2548,8 @@ function yn({
2562
2548
  )
2563
2549
  );
2564
2550
  };
2565
- const b = {};
2566
- return d && (b.placeholder = d), /* @__PURE__ */ r.jsx(r.Fragment, { children: s === "icon" ? /* @__PURE__ */ r.jsx(
2551
+ const j = {};
2552
+ return d && (j.placeholder = d), /* @__PURE__ */ r.jsx(r.Fragment, { children: s === "icon" ? /* @__PURE__ */ r.jsx(
2567
2553
  "i",
2568
2554
  {
2569
2555
  "data-icon": "F043",
@@ -2578,7 +2564,7 @@ function yn({
2578
2564
  "dd",
2579
2565
  {
2580
2566
  onClick: h,
2581
- ...b,
2567
+ ...j,
2582
2568
  children: ie.Date(f, "mm.yyyy")
2583
2569
  }
2584
2570
  ),
@@ -2587,7 +2573,7 @@ function yn({
2587
2573
  }
2588
2574
  ) });
2589
2575
  }
2590
- const oi = (e) => {
2576
+ const ai = (e) => {
2591
2577
  let [t, n] = y.useState(!0), s = /* @__PURE__ */ new Date(), a = new Date(e.date), i = {
2592
2578
  y: parseInt(s.getFullYear()),
2593
2579
  m: parseInt(s.getMonth()) + 1
@@ -2602,12 +2588,12 @@ const oi = (e) => {
2602
2588
  d(c - 1);
2603
2589
  }, x = (p) => {
2604
2590
  e.onValue(c + "-" + ie.Number(2, p)), u();
2605
- }, h = (p) => i.y === l.y && i.m === p ? "_FFEB3B" : "", b = Array(12).fill("").map((p, j) => j + 1), C = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, m = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
2591
+ }, h = (p) => i.y === l.y && i.m === p ? "_FFEB3B" : "", j = Array(12).fill("").map((p, b) => b + 1), C = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, m = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
2606
2592
  return /* @__PURE__ */ r.jsx(r.Fragment, { children: t ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2607
2593
  /* @__PURE__ */ r.jsx(
2608
2594
  "div",
2609
2595
  {
2610
- className: Ht.o,
2596
+ className: Zt.o,
2611
2597
  onClick: () => u()
2612
2598
  },
2613
2599
  (/* @__PURE__ */ new Date()).getTime()
@@ -2615,7 +2601,7 @@ const oi = (e) => {
2615
2601
  /* @__PURE__ */ r.jsxs(
2616
2602
  "div",
2617
2603
  {
2618
- className: Ht.c,
2604
+ className: Zt.c,
2619
2605
  style: { top: C + "px", left: m + "px" },
2620
2606
  children: [
2621
2607
  /* @__PURE__ */ r.jsxs("s", { children: [
@@ -2626,7 +2612,7 @@ const oi = (e) => {
2626
2612
  /* @__PURE__ */ r.jsx(
2627
2613
  "div",
2628
2614
  {
2629
- children: b.map((p, j) => /* @__PURE__ */ r.jsx(
2615
+ children: j.map((p, b) => /* @__PURE__ */ r.jsx(
2630
2616
  "span",
2631
2617
  {
2632
2618
  onClick: () => {
@@ -2635,7 +2621,7 @@ const oi = (e) => {
2635
2621
  color: h(p),
2636
2622
  children: /* @__PURE__ */ r.jsx("b", { children: ie.Month(p).abc })
2637
2623
  },
2638
- j
2624
+ b
2639
2625
  ))
2640
2626
  }
2641
2627
  )
@@ -2659,10 +2645,10 @@ function wn(e) {
2659
2645
  };
2660
2646
  const h = (m) => {
2661
2647
  e.onSave && e.onSave({ value: m.target.innerText, name: e.name });
2662
- }, b = {};
2663
- b.field = "notes", e.className && (b.className = e.className);
2648
+ }, j = {};
2649
+ j.field = "notes", e.className && (j.className = e.className);
2664
2650
  const C = {};
2665
- return u && (C.placeholder = u), s && (C.open = ""), i && l && (C.edit = ""), d ? /* @__PURE__ */ r.jsx(r.Fragment, {}) : /* @__PURE__ */ r.jsxs("dl", { ...b, children: [
2651
+ return u && (C.placeholder = u), s && (C.open = ""), i && l && (C.edit = ""), d ? /* @__PURE__ */ r.jsx(r.Fragment, {}) : /* @__PURE__ */ r.jsxs("dl", { ...j, children: [
2666
2652
  t(),
2667
2653
  /* @__PURE__ */ r.jsx(
2668
2654
  "dd",
@@ -2680,7 +2666,7 @@ function wn(e) {
2680
2666
  n()
2681
2667
  ] });
2682
2668
  }
2683
- function pt({
2669
+ function gt({
2684
2670
  onValue: e,
2685
2671
  onSave: t,
2686
2672
  value: n,
@@ -2695,7 +2681,7 @@ function pt({
2695
2681
  placeholder: g,
2696
2682
  className: x,
2697
2683
  after: h,
2698
- view: b
2684
+ view: j
2699
2685
  }) {
2700
2686
  l = l !== void 0 ? l : !0, a = a !== void 0 ? a : !0, f = !!(f && (n === "" || n === void 0)) && !(l && a), g = g !== void 0 ? g : "", i = i !== void 0 ? i : 99;
2701
2687
  let m = (S) => {
@@ -2703,8 +2689,8 @@ function pt({
2703
2689
  };
2704
2690
  const p = (S) => {
2705
2691
  t == null || t({ name: s, value: S.currentTarget.value });
2706
- }, j = {};
2707
- return j.field = "input", x && (j.className = x), f ? /* @__PURE__ */ r.jsx(r.Fragment, {}) : /* @__PURE__ */ r.jsxs("dl", { ...j, children: [
2692
+ }, b = {};
2693
+ return b.field = "input", x && (b.className = x), f ? /* @__PURE__ */ r.jsx(r.Fragment, {}) : /* @__PURE__ */ r.jsxs("dl", { ...b, children: [
2708
2694
  c && /* @__PURE__ */ r.jsx("dt", { children: c }),
2709
2695
  /* @__PURE__ */ r.jsx("dd", { children: /* @__PURE__ */ r.jsx(
2710
2696
  "input",
@@ -2752,10 +2738,10 @@ function kn({
2752
2738
  }).catch((p) => {
2753
2739
  });
2754
2740
  };
2755
- const b = {};
2756
- b.field = "password", a && (b.className = a);
2741
+ const j = {};
2742
+ j.field = "password", a && (j.className = a);
2757
2743
  const C = {};
2758
- return s && (C.placeholder = s), /* @__PURE__ */ r.jsxs("dl", { ...b, children: [
2744
+ return s && (C.placeholder = s), /* @__PURE__ */ r.jsxs("dl", { ...j, children: [
2759
2745
  i ? /* @__PURE__ */ r.jsx("dt", { children: i }) : "",
2760
2746
  /* @__PURE__ */ r.jsx(
2761
2747
  "dd",
@@ -2763,7 +2749,7 @@ function kn({
2763
2749
  onPaste: h,
2764
2750
  onInput: g,
2765
2751
  onKeyDown: x,
2766
- onBlur: be.Blur,
2752
+ onBlur: je.Blur,
2767
2753
  contentEditable: c && d ? "plaintext-only" : "false",
2768
2754
  ...C,
2769
2755
  suppressContentEditableWarning: !0,
@@ -2773,7 +2759,7 @@ function kn({
2773
2759
  l ? /* @__PURE__ */ r.jsx("em", { children: l }) : ""
2774
2760
  ] });
2775
2761
  }
2776
- function xt({
2762
+ function pt({
2777
2763
  onValue: e,
2778
2764
  onSave: t,
2779
2765
  value: n,
@@ -2787,22 +2773,22 @@ function xt({
2787
2773
  className: f
2788
2774
  }) {
2789
2775
  i = i !== void 0 ? i : !0, a = a !== void 0 ? a : !0, d = !!(d && (n === "" || n === void 0)) && !(i && a), u = u || "";
2790
- const x = "+7__________", h = new Set("_"), b = ((R) => Array.from(x, (P, ee) => h.has(P) ? R = ee + 1 : R))(0), C = [...x].findIndex((R) => h.has(R)), m = new RegExp("\\d", "g"), p = (R) => (R = R.match(m) || [], Array.from(
2776
+ const x = "+7__________", h = new Set("_"), j = ((M) => Array.from(x, (P, ee) => h.has(P) ? M = ee + 1 : M))(0), C = [...x].findIndex((M) => h.has(M)), m = new RegExp("\\d", "g"), p = (M) => (M = M.match(m) || [], Array.from(
2791
2777
  x,
2792
- (P) => (R[0] === P || h.has(P)) && R.shift() || P
2793
- )), j = (R) => {
2794
- const [P, ee] = [R.target.selectionStart, R.target.selectionEnd].map(
2795
- (O) => (O = p(R.target.value.slice(0, O)).findIndex(
2796
- (D) => h.has(D)
2797
- ), O < 0 ? b[b.length - 1] : E ? b[O - 1] || C : O)
2778
+ (P) => (M[0] === P || h.has(P)) && M.shift() || P
2779
+ )), b = (M) => {
2780
+ const [P, ee] = [M.target.selectionStart, M.target.selectionEnd].map(
2781
+ (O) => (O = p(M.target.value.slice(0, O)).findIndex(
2782
+ (B) => h.has(B)
2783
+ ), O < 0 ? j[j.length - 1] : E ? j[O - 1] || C : O)
2798
2784
  );
2799
- R.target.value = p(R.target.value).join(""), R.target.setSelectionRange(P, ee), E = !1, e == null || e({ name: s, value: R.target.value.match(/\d+/g)[0] });
2800
- }, S = (R) => {
2801
- R.target.value = p(R.target.value).join(""), t == null || t({ name: s, value: R.target.value.match(/\d+/g)[0] });
2785
+ M.target.value = p(M.target.value).join(""), M.target.setSelectionRange(P, ee), E = !1, e == null || e({ name: s, value: M.target.value.match(/\d+/g)[0] });
2786
+ }, S = (M) => {
2787
+ M.target.value = p(M.target.value).join(""), t == null || t({ name: s, value: M.target.value.match(/\d+/g)[0] });
2802
2788
  };
2803
2789
  let E = !1;
2804
- const M = {};
2805
- return M.field = "input", f && (M.className = f), d ? /* @__PURE__ */ r.jsx(r.Fragment, {}) : /* @__PURE__ */ r.jsxs("dl", { ...M, children: [
2790
+ const I = {};
2791
+ return I.field = "input", f && (I.className = f), d ? /* @__PURE__ */ r.jsx(r.Fragment, {}) : /* @__PURE__ */ r.jsxs("dl", { ...I, children: [
2806
2792
  l && /* @__PURE__ */ r.jsx("dt", { children: l }),
2807
2793
  /* @__PURE__ */ r.jsx("dd", { children: /* @__PURE__ */ r.jsx(
2808
2794
  "input",
@@ -2810,8 +2796,8 @@ function xt({
2810
2796
  name: s,
2811
2797
  type: "tel",
2812
2798
  inputMode: "numeric",
2813
- onChange: j,
2814
- onFocus: j,
2799
+ onChange: b,
2800
+ onFocus: b,
2815
2801
  onBlur: S,
2816
2802
  placeholder: u,
2817
2803
  defaultValue: n
@@ -2855,7 +2841,7 @@ const Sn = (e) => {
2855
2841
  }
2856
2842
  );
2857
2843
  };
2858
- function vt({
2844
+ function xt({
2859
2845
  title: e,
2860
2846
  error: t,
2861
2847
  edit: n = !0,
@@ -2870,8 +2856,8 @@ function vt({
2870
2856
  view: g,
2871
2857
  className: x
2872
2858
  }) {
2873
- var j;
2874
- const h = y.useId(), [b, C] = y.useState((j = c[parseInt(i)]) == null ? void 0 : j.n);
2859
+ var b;
2860
+ const h = y.useId(), [j, C] = y.useState((b = c[parseInt(i)]) == null ? void 0 : b.n);
2875
2861
  let m = (S) => {
2876
2862
  C(c[S.target.value].n), l == null || l({ name: u, value: S.target.value });
2877
2863
  };
@@ -2879,7 +2865,7 @@ function vt({
2879
2865
  return p.field = "select", x && (p.className = x), /* @__PURE__ */ r.jsxs("dl", { ...p, children: [
2880
2866
  e ? /* @__PURE__ */ r.jsx("dt", { children: e }) : "",
2881
2867
  /* @__PURE__ */ r.jsxs("dd", { children: [
2882
- b,
2868
+ j,
2883
2869
  /* @__PURE__ */ r.jsx(
2884
2870
  "select",
2885
2871
  {
@@ -2893,7 +2879,7 @@ function vt({
2893
2879
  ] })
2894
2880
  ] });
2895
2881
  }
2896
- function bt({
2882
+ function vt({
2897
2883
  value: e,
2898
2884
  onValue: t,
2899
2885
  name: n,
@@ -2909,34 +2895,33 @@ function bt({
2909
2895
  onSave: x,
2910
2896
  className: h = ""
2911
2897
  }) {
2912
- let b = !!(l && (e === "" || e === void 0)), C = (E) => {
2898
+ let j = !!(l && (e === "" || e === void 0)), C = (E) => {
2913
2899
  t == null || t({ value: E.target.value, name: n });
2914
2900
  }, m = (E) => {
2915
- E.preventDefault(), navigator.clipboard.readText().then((M) => {
2901
+ E.preventDefault(), navigator.clipboard.readText().then((I) => {
2916
2902
  window.document.execCommand(
2917
2903
  "insertText",
2918
2904
  !1,
2919
- M.replace(/(\r\n|\n|\r)/gm, " ")
2905
+ I.replace(/(\r\n|\n|\r)/gm, " ")
2920
2906
  );
2921
- }).catch((M) => {
2907
+ }).catch((I) => {
2922
2908
  });
2923
2909
  }, p = (E) => {
2924
2910
  E.preventDefault(), navigator.clipboard.writeText(E.target.value).then(
2925
2911
  function() {
2926
- at.Copy("Данные в буфер обмене");
2912
+ st.Copy("Данные в буфер обмене");
2927
2913
  },
2928
- function(M) {
2914
+ function(I) {
2929
2915
  }
2930
2916
  );
2931
2917
  };
2932
- if (!(c && d) && !f || !(c && d) && b)
2933
- return "";
2934
- const j = {};
2935
- j.field = "input", h && (j.className = h);
2918
+ if (!(c && d) && !f || !(c && d) && j) return "";
2919
+ const b = {};
2920
+ b.field = "input", h && (b.className = h);
2936
2921
  const S = (E) => {
2937
2922
  x == null || x({ value: E.target.value, name: n });
2938
2923
  };
2939
- return /* @__PURE__ */ r.jsxs("dl", { ...j, children: [
2924
+ return /* @__PURE__ */ r.jsxs("dl", { ...b, children: [
2940
2925
  a ? /* @__PURE__ */ r.jsx("dt", { children: a }) : "",
2941
2926
  /* @__PURE__ */ r.jsx("dd", { children: /* @__PURE__ */ r.jsx(
2942
2927
  "input",
@@ -2962,15 +2947,14 @@ function jt(e) {
2962
2947
  }, [u, f] = y.useState(
2963
2948
  e.default !== void 0 ? e.options[e.default] : e.default
2964
2949
  ), g = (h) => {
2965
- if (!(s && a))
2966
- return;
2967
- const b = h.target.getBoundingClientRect();
2968
- ft.setListener(
2950
+ if (!(s && a)) return;
2951
+ const j = h.target.getBoundingClientRect();
2952
+ dt.setListener(
2969
2953
  "form",
2970
2954
  /* @__PURE__ */ r.jsx(
2971
- li,
2955
+ ii,
2972
2956
  {
2973
- parent: b,
2957
+ parent: j,
2974
2958
  onValue: d,
2975
2959
  view: e.view,
2976
2960
  options: e.options
@@ -3000,7 +2984,7 @@ function jt(e) {
3000
2984
  }
3001
2985
  );
3002
2986
  }
3003
- const li = ({ onValue: e, parent: t, view: n, options: s }) => {
2987
+ const ii = ({ onValue: e, parent: t, view: n, options: s }) => {
3004
2988
  let [a, i] = y.useState(!0), l = () => {
3005
2989
  i(!1);
3006
2990
  }, c = (g) => {
@@ -3038,7 +3022,7 @@ const li = ({ onValue: e, parent: t, view: n, options: s }) => {
3038
3022
  )
3039
3023
  ] }) : "" });
3040
3024
  };
3041
- function it({
3025
+ function at({
3042
3026
  set: e,
3043
3027
  value: t,
3044
3028
  onValue: n,
@@ -3053,14 +3037,14 @@ function it({
3053
3037
  after: g = "",
3054
3038
  view: x,
3055
3039
  module: h,
3056
- item: b,
3040
+ item: j,
3057
3041
  className: C = ""
3058
3042
  }) {
3059
3043
  let m = {};
3060
3044
  switch (e) {
3061
3045
  case "String":
3062
3046
  return /* @__PURE__ */ r.jsx(
3063
- bt,
3047
+ vt,
3064
3048
  {
3065
3049
  title: i,
3066
3050
  show: u,
@@ -3076,8 +3060,8 @@ function it({
3076
3060
  }
3077
3061
  );
3078
3062
  case "Select":
3079
- return b && (m = oe.getSelect(parseInt(b)) ? oe.getSelect(parseInt(b)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ r.jsx(
3080
- vt,
3063
+ return j && (m = oe.getSelect(parseInt(j)) ? oe.getSelect(parseInt(j)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ r.jsx(
3064
+ xt,
3081
3065
  {
3082
3066
  title: i,
3083
3067
  show: u,
@@ -3113,7 +3097,7 @@ function it({
3113
3097
  );
3114
3098
  case "Date":
3115
3099
  return /* @__PURE__ */ r.jsx(
3116
- ht,
3100
+ ft,
3117
3101
  {
3118
3102
  title: i,
3119
3103
  show: u,
@@ -3130,7 +3114,7 @@ function it({
3130
3114
  );
3131
3115
  case "Phone":
3132
3116
  return /* @__PURE__ */ r.jsx(
3133
- xt,
3117
+ pt,
3134
3118
  {
3135
3119
  title: i,
3136
3120
  show: u,
@@ -3147,7 +3131,7 @@ function it({
3147
3131
  );
3148
3132
  case "Number":
3149
3133
  return /* @__PURE__ */ r.jsx(
3150
- pt,
3134
+ gt,
3151
3135
  {
3152
3136
  title: i,
3153
3137
  show: u,
@@ -3164,7 +3148,7 @@ function it({
3164
3148
  );
3165
3149
  case "Money":
3166
3150
  return /* @__PURE__ */ r.jsx(
3167
- gt,
3151
+ mt,
3168
3152
  {
3169
3153
  title: i,
3170
3154
  show: u,
@@ -3181,7 +3165,7 @@ function it({
3181
3165
  );
3182
3166
  case "Modal":
3183
3167
  return /* @__PURE__ */ r.jsx(
3184
- mt,
3168
+ ht,
3185
3169
  {
3186
3170
  title: i,
3187
3171
  show: u,
@@ -3215,19 +3199,18 @@ function En({
3215
3199
  view: g,
3216
3200
  onBlur: x,
3217
3201
  onSave: h,
3218
- className: b = ""
3202
+ className: j = ""
3219
3203
  }) {
3220
3204
  let C = !!(l && (e === "" || e === void 0));
3221
- if (!(c && d) && !f || !(c && d) && C)
3222
- return "";
3205
+ if (!(c && d) && !f || !(c && d) && C) return "";
3223
3206
  let m = (E) => {
3224
3207
  t && t({ value: E.target.innerText, name: n });
3225
3208
  }, p = (E) => {
3226
3209
  h && h({ value: E.target.innerText, name: n });
3227
- }, j = (E) => {
3228
- E.preventDefault(), navigator.clipboard.readText().then((M) => {
3229
- window.document.execCommand("insertText", !1, M);
3230
- }).catch((M) => {
3210
+ }, b = (E) => {
3211
+ E.preventDefault(), navigator.clipboard.readText().then((I) => {
3212
+ window.document.execCommand("insertText", !1, I);
3213
+ }).catch((I) => {
3231
3214
  });
3232
3215
  };
3233
3216
  const S = {};
@@ -3236,7 +3219,7 @@ function En({
3236
3219
  /* @__PURE__ */ r.jsx(
3237
3220
  "dd",
3238
3221
  {
3239
- onPaste: j,
3222
+ onPaste: b,
3240
3223
  onBlur: p,
3241
3224
  onInput: m,
3242
3225
  contentEditable: c && d ? "plaintext-only" : "false",
@@ -3248,7 +3231,7 @@ function En({
3248
3231
  i ?? /* @__PURE__ */ r.jsx("em", { children: i })
3249
3232
  ] });
3250
3233
  }
3251
- function Tn({
3234
+ function Dn({
3252
3235
  value: e,
3253
3236
  onValue: t,
3254
3237
  name: n,
@@ -3263,23 +3246,22 @@ function Tn({
3263
3246
  view: g,
3264
3247
  onBlur: x,
3265
3248
  onSave: h,
3266
- className: b = ""
3249
+ className: j = ""
3267
3250
  }) {
3268
3251
  let C = !!(l && (e === "" || e === void 0));
3269
- if (ie.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), y.useRef(null), !(c && d) && !f || !(c && d) && C)
3270
- return "";
3271
- const m = "__:__", p = new Set("_"), j = ((D) => Array.from(m, (q, je) => p.has(q) ? D = je + 1 : D))(0), S = [...m].findIndex((D) => p.has(D)), E = new RegExp("\\d", "g"), M = (D) => (D = D.match(E) || [], Array.from(
3252
+ if (ie.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), y.useRef(null), !(c && d) && !f || !(c && d) && C) return "";
3253
+ const m = "__:__", p = new Set("_"), b = ((B) => Array.from(m, (J, be) => p.has(J) ? B = be + 1 : B))(0), S = [...m].findIndex((B) => p.has(B)), E = new RegExp("\\d", "g"), I = (B) => (B = B.match(E) || [], Array.from(
3272
3254
  m,
3273
- (q) => (D[0] === q || p.has(q)) && D.shift() || q
3274
- )), R = (D) => {
3275
- const [q, je] = [D.target.selectionStart, D.target.selectionEnd].map(
3276
- (U) => (U = M(D.target.value.slice(0, U)).findIndex(
3255
+ (J) => (B[0] === J || p.has(J)) && B.shift() || J
3256
+ )), M = (B) => {
3257
+ const [J, be] = [B.target.selectionStart, B.target.selectionEnd].map(
3258
+ (H) => (H = I(B.target.value.slice(0, H)).findIndex(
3277
3259
  (re) => p.has(re)
3278
- ), U < 0 ? j[j.length - 1] : O ? j[U - 1] || S : U)
3260
+ ), H < 0 ? b[b.length - 1] : O ? b[H - 1] || S : H)
3279
3261
  );
3280
- D.target.value = M(D.target.value).join(""), D.target.setSelectionRange(q, je), t == null || t({ name: n, value: D.target.value });
3262
+ B.target.value = I(B.target.value).join(""), B.target.setSelectionRange(J, be), t == null || t({ name: n, value: B.target.value });
3281
3263
  }, P = {};
3282
- P.field = "input", b && (P.className = b);
3264
+ P.field = "input", j && (P.className = j);
3283
3265
  const ee = {};
3284
3266
  s && (ee.placeholder = s);
3285
3267
  let O = !1;
@@ -3290,17 +3272,17 @@ function Tn({
3290
3272
  {
3291
3273
  type: "tel",
3292
3274
  placeholder: s,
3293
- onChange: R,
3275
+ onChange: M,
3294
3276
  inputMode: "numeric",
3295
- onKeyDown: (D) => O = D.key === "Backspace",
3296
- onFocus: R,
3297
- onBlur: (D) => D.target.value === m && (D.target.value = "")
3277
+ onKeyDown: (B) => O = B.key === "Backspace",
3278
+ onFocus: M,
3279
+ onBlur: (B) => B.target.value === m && (B.target.value = "")
3298
3280
  }
3299
3281
  ) }),
3300
3282
  i ? /* @__PURE__ */ r.jsx("em", { children: i }) : ""
3301
3283
  ] }) });
3302
3284
  }
3303
- function Rn({
3285
+ function Mn({
3304
3286
  onValue: e,
3305
3287
  label: t,
3306
3288
  value: n,
@@ -3320,7 +3302,7 @@ function Rn({
3320
3302
  /* @__PURE__ */ r.jsx("dd", { ...f, onClick: d })
3321
3303
  ] });
3322
3304
  }
3323
- const Bn = ({ onValue: e, value: t, name: n, item: s }) => {
3305
+ const $n = ({ onValue: e, value: t, name: n, item: s }) => {
3324
3306
  const [a, i] = y.useState(!!t);
3325
3307
  y.useEffect(() => {
3326
3308
  i(!!t);
@@ -3338,7 +3320,7 @@ const Bn = ({ onValue: e, value: t, name: n, item: s }) => {
3338
3320
  }
3339
3321
  );
3340
3322
  };
3341
- function Nn({
3323
+ function Rn({
3342
3324
  value: e,
3343
3325
  onValue: t,
3344
3326
  name: n,
@@ -3353,7 +3335,7 @@ function Nn({
3353
3335
  view: g,
3354
3336
  onBlur: x,
3355
3337
  onSave: h,
3356
- className: b = ""
3338
+ className: j = ""
3357
3339
  }) {
3358
3340
  const [C, m] = y.useState(
3359
3341
  e !== void 0 ? e.split(",") : []
@@ -3363,23 +3345,22 @@ function Nn({
3363
3345
  }, [e]);
3364
3346
  let p = () => {
3365
3347
  m([...C, ""]);
3366
- }, j = (O) => {
3348
+ }, b = (O) => {
3367
3349
  C.splice(O, 1), C.length === 0 && C.push(""), m([...C]), x !== void 0 && x({ value: C.join(","), name: n });
3368
3350
  }, S = !!(l && (e === "" || e === void 0)), E = (O) => {
3369
3351
  };
3370
- if (!(c && d) && !f || !(c && d) && S)
3371
- return "";
3372
- const M = {};
3373
- M.field = "group", b && (M.className = b);
3374
- const R = (O) => {
3375
- be.Blur(O), h && h({ value: O.target.textContent, name: n });
3352
+ if (!(c && d) && !f || !(c && d) && S) return "";
3353
+ const I = {};
3354
+ I.field = "group", j && (I.className = j);
3355
+ const M = (O) => {
3356
+ je.Blur(O), h && h({ value: O.target.textContent, name: n });
3376
3357
  };
3377
- let P = (O, D) => {
3378
- C[D] = O.target.textContent, t !== void 0 && t({ value: C.join(","), name: n });
3358
+ let P = (O, B) => {
3359
+ C[B] = O.target.textContent, t !== void 0 && t({ value: C.join(","), name: n });
3379
3360
  }, ee = (O) => {
3380
3361
  O.key === "Enter" && O.preventDefault();
3381
3362
  };
3382
- return /* @__PURE__ */ r.jsxs("dl", { ...M, children: [
3363
+ return /* @__PURE__ */ r.jsxs("dl", { ...I, children: [
3383
3364
  /* @__PURE__ */ r.jsxs("dt", { children: [
3384
3365
  a,
3385
3366
  /* @__PURE__ */ r.jsx("i", { onClick: p, children: /* @__PURE__ */ r.jsxs(
@@ -3399,27 +3380,27 @@ function Nn({
3399
3380
  }
3400
3381
  ) })
3401
3382
  ] }),
3402
- /* @__PURE__ */ r.jsx("dd", { children: C.map((O, D) => /* @__PURE__ */ r.jsxs("li", { className: "field_group_item", children: [
3383
+ /* @__PURE__ */ r.jsx("dd", { children: C.map((O, B) => /* @__PURE__ */ r.jsxs("li", { className: "field_group_item", children: [
3403
3384
  /* @__PURE__ */ r.jsx(
3404
3385
  "span",
3405
3386
  {
3406
- onInput: (q) => P(q, D),
3387
+ onInput: (J) => P(J, B),
3407
3388
  edit: "true",
3408
3389
  name: n,
3409
3390
  placeholder: s,
3410
3391
  onPaste: E,
3411
3392
  contentEditable: !0,
3412
3393
  onKeyDown: ee,
3413
- onBlur: R,
3394
+ onBlur: M,
3414
3395
  suppressContentEditableWarning: !0,
3415
- children: C[D]
3396
+ children: C[B]
3416
3397
  }
3417
3398
  ),
3418
3399
  /* @__PURE__ */ r.jsx(
3419
3400
  "i",
3420
3401
  {
3421
3402
  onClick: () => {
3422
- j(D);
3403
+ b(B);
3423
3404
  },
3424
3405
  children: /* @__PURE__ */ r.jsxs(
3425
3406
  "svg",
@@ -3439,12 +3420,12 @@ function Nn({
3439
3420
  )
3440
3421
  }
3441
3422
  )
3442
- ] }, D)) }),
3423
+ ] }, B)) }),
3443
3424
  i ? /* @__PURE__ */ r.jsx("em", { children: i }) : ""
3444
3425
  ] });
3445
3426
  }
3446
- const ci = (e) => (e = e !== void 0 && e !== "" ? e.split(",") : [], e.reduce((t, n) => (t[n] = !0, t), {}));
3447
- function In({
3427
+ const oi = (e) => (e = e !== void 0 && e !== "" ? e.split(",") : [], e.reduce((t, n) => (t[n] = !0, t), {}));
3428
+ function Tn({
3448
3429
  value: e,
3449
3430
  onValue: t,
3450
3431
  name: n,
@@ -3459,19 +3440,18 @@ function In({
3459
3440
  view: g,
3460
3441
  modal: x,
3461
3442
  module: h,
3462
- options: b,
3443
+ options: j,
3463
3444
  className: C
3464
3445
  }) {
3465
- const [m, p] = y.useState(ci(e)), j = (M) => {
3466
- if (!(c && u) || !x)
3467
- return;
3468
- let R = x.split(".");
3469
- _n.Open(R[1], {
3446
+ const [m, p] = y.useState(oi(e)), b = (I) => {
3447
+ if (!(c && u) || !x) return;
3448
+ let M = x.split(".");
3449
+ yn.Open(M[1], {
3470
3450
  callback: (P) => {
3471
3451
  t && t({ value: P, name: n }), p(P);
3472
3452
  },
3473
3453
  onValue: t,
3474
- options: b,
3454
+ options: j,
3475
3455
  name: n,
3476
3456
  value: m
3477
3457
  });
@@ -3481,7 +3461,7 @@ function In({
3481
3461
  return s && (E.placeholder = s), l ? /* @__PURE__ */ r.jsx(r.Fragment, {}) : /* @__PURE__ */ r.jsxs("dl", { ...S, children: [
3482
3462
  /* @__PURE__ */ r.jsxs("dt", { children: [
3483
3463
  a,
3484
- /* @__PURE__ */ r.jsx("i", { onClick: j, children: /* @__PURE__ */ r.jsxs(
3464
+ /* @__PURE__ */ r.jsx("i", { onClick: b, children: /* @__PURE__ */ r.jsxs(
3485
3465
  "svg",
3486
3466
  {
3487
3467
  width: "20",
@@ -3506,51 +3486,50 @@ function In({
3506
3486
  onClick: open,
3507
3487
  edit: (c && u) + "",
3508
3488
  "data-after": f,
3509
- children: Object.keys(m).map((M) => {
3510
- var R;
3511
- return /* @__PURE__ */ r.jsx("div", { className: "field_group_item", children: (R = b[M]) == null ? void 0 : R.label }, M);
3489
+ children: Object.keys(m).map((I) => {
3490
+ var M;
3491
+ return /* @__PURE__ */ r.jsx("div", { className: "field_group_item", children: (M = j[I]) == null ? void 0 : M.label }, I);
3512
3492
  })
3513
3493
  }
3514
3494
  ),
3515
3495
  i && /* @__PURE__ */ r.jsx("em", { children: i })
3516
3496
  ] });
3517
3497
  }
3518
- const ui = {
3498
+ const li = {
3519
3499
  Color: Cn,
3520
- Date: ht,
3521
- Code: jn,
3522
- Check: Rn,
3500
+ Date: ft,
3501
+ Code: bn,
3502
+ Check: Mn,
3523
3503
  Switch: gn,
3524
3504
  Button: pn,
3525
3505
  Message: xn,
3526
3506
  Generator: vn,
3527
- Captcha: bn,
3528
- Modal: mt,
3529
- Money: gt,
3530
- Month: yn,
3507
+ Captcha: jn,
3508
+ Modal: ht,
3509
+ Money: mt,
3510
+ Month: _n,
3531
3511
  Notes: wn,
3532
- Number: pt,
3512
+ Number: gt,
3533
3513
  Password: kn,
3534
- Phone: xt,
3514
+ Phone: pt,
3535
3515
  Search: Sn,
3536
- Select: vt,
3537
- Set: it,
3516
+ Select: xt,
3517
+ Set: at,
3538
3518
  Textarea: En,
3539
- Time: Tn,
3519
+ Time: Dn,
3540
3520
  Users: jt,
3541
- String: bt,
3542
- Toogle: Bn,
3543
- Group: Nn,
3544
- Options: In
3545
- }, di = "_debug_ug20b_34", fi = "_b_ug20b_46", hi = "_o_ug20b_50", mi = "_mb_ug20b_55", gi = "_tm_ug20b_66", pi = "_ta_ug20b_133", me = {
3546
- debug: di,
3547
- b: fi,
3548
- o: hi,
3549
- mb: mi,
3550
- tm: gi,
3551
- ta: pi,
3552
- "--body": "_--body_ug20b_143"
3553
- }, T = window.Telegram.WebApp, se = { is: !1, MainButton: {}, BackButton: {} };
3521
+ String: vt,
3522
+ Toogle: $n,
3523
+ Group: Rn,
3524
+ Options: Tn
3525
+ }, ci = "_debug_ug20b_34", ui = "_b_ug20b_46", di = "_o_ug20b_50", fi = "_mb_ug20b_55", hi = "_tm_ug20b_66", mi = "_ta_ug20b_133", me = {
3526
+ debug: ci,
3527
+ b: ui,
3528
+ o: di,
3529
+ mb: fi,
3530
+ tm: hi,
3531
+ ta: mi
3532
+ }, D = window.Telegram.WebApp, se = { is: !1, MainButton: {}, BackButton: {} };
3554
3533
  let pe = {};
3555
3534
  pe.dark = {
3556
3535
  "--tg-theme-bg-color": "#212121",
@@ -3585,35 +3564,35 @@ pe.users = {
3585
3564
  "--tg-theme-button-text-color": "#000000",
3586
3565
  "--tg-theme-secondary-bg-color": "#000000"
3587
3566
  };
3588
- T.getUser = () => {
3567
+ D.getUser = () => {
3589
3568
  var e;
3590
- return ((e = T.initDataUnsafe) == null ? void 0 : e.user) === void 0 ? {} : T.initDataUnsafe;
3569
+ return ((e = D.initDataUnsafe) == null ? void 0 : e.user) === void 0 ? {} : D.initDataUnsafe;
3591
3570
  };
3592
- T.MainButton.callback = [];
3593
- T.MainButton.set = (e) => {
3594
- se.is ? se.MainButton.set(e) : (T.MainButton.callback.forEach((t) => {
3595
- T.MainButton.offClick(t);
3596
- }), T.MainButton.callback = [], typeof e == "boolean" ? T.MainButton.isVisible = !1 : (T.MainButton.text = e.text, e.color && (T.MainButton.color = e.color), e.textColor && (T.MainButton.textColor = e.textColor), T.MainButton.isVisible = !0, T.MainButton.isActive = e.isActive === void 0 ? !0 : e.isActive, T.MainButton.callback.push(() => {
3571
+ D.MainButton.callback = [];
3572
+ D.MainButton.set = (e) => {
3573
+ se.is ? se.MainButton.set(e) : (D.MainButton.callback.forEach((t) => {
3574
+ D.MainButton.offClick(t);
3575
+ }), D.MainButton.callback = [], typeof e == "boolean" ? D.MainButton.isVisible = !1 : (D.MainButton.text = e.text, e.color && (D.MainButton.color = e.color), e.textColor && (D.MainButton.textColor = e.textColor), D.MainButton.isVisible = !0, D.MainButton.isActive = e.isActive === void 0 ? !0 : e.isActive, D.MainButton.callback.push(() => {
3597
3576
  var t;
3598
3577
  e.page === void 0 ? (t = e.callback) == null || t.call(e) : ce.setPage(e.page);
3599
- }), T.MainButton.onClick(T.MainButton.callback[0])));
3578
+ }), D.MainButton.onClick(D.MainButton.callback[0])));
3600
3579
  };
3601
- T.BackButton.state = [!1];
3602
- T.BackButton.listen = [];
3603
- T.BackButton.router = (e) => {
3604
- e === !1 ? (T.BackButton.isVisible = !1, T.BackButton.offClick(T.BackButton.listen[0]), T.BackButton.listen.shift(), T.BackButton.state.length !== 1 && T.BackButton.state.pop()) : (T.BackButton.isVisible = !0, T.BackButton.offClick(T.BackButton.listen[0]), T.BackButton.listen.shift(), T.BackButton.listen.push(() => {
3580
+ D.BackButton.state = [!1];
3581
+ D.BackButton.listen = [];
3582
+ D.BackButton.router = (e) => {
3583
+ e === !1 ? (D.BackButton.isVisible = !1, D.BackButton.offClick(D.BackButton.listen[0]), D.BackButton.listen.shift(), D.BackButton.state.length !== 1 && D.BackButton.state.pop()) : (D.BackButton.isVisible = !0, D.BackButton.offClick(D.BackButton.listen[0]), D.BackButton.listen.shift(), D.BackButton.listen.push(() => {
3605
3584
  var n;
3606
- let t = T.BackButton.state.pop();
3585
+ let t = D.BackButton.state.pop();
3607
3586
  t.page !== void 0 ? ce.setPage(t.page) : (n = t.callback) == null || n.call(t);
3608
- }), T.BackButton.onClick(T.BackButton.listen[0]));
3587
+ }), D.BackButton.onClick(D.BackButton.listen[0]));
3609
3588
  };
3610
- T.BackButton.set = (e) => {
3611
- se.is ? se.BackButton.set(e) : (T.BackButton.state.push(e), T.BackButton.router(e));
3589
+ D.BackButton.set = (e) => {
3590
+ se.is ? se.BackButton.set(e) : (D.BackButton.state.push(e), D.BackButton.router(e));
3612
3591
  };
3613
- T.Notice = (e, t) => {
3614
- t !== void 0 ? (at.Send({ type: e, text: t }), se.is || T.HapticFeedback.notificationOccurred(e)) : (at.Send(e), se.is || T.HapticFeedback.notificationOccurred(e.type));
3592
+ D.Notice = (e, t) => {
3593
+ t !== void 0 ? (st.Send({ type: e, text: t }), se.is || D.HapticFeedback.notificationOccurred(e)) : (st.Send(e), se.is || D.HapticFeedback.notificationOccurred(e.type));
3615
3594
  };
3616
- T.Init = ({ dev: e }) => {
3595
+ D.Init = ({ dev: e }) => {
3617
3596
  if (e) {
3618
3597
  let [t, n] = y.useState(!1), [s, a] = y.useState(!1), [i, l] = y.useState("dark"), [c, d] = y.useState(!1), [u, f] = y.useState(!1);
3619
3598
  se.is = !0, se.MainButton.set = n, se.BackButton.set = a, y.useEffect(() => {
@@ -3624,8 +3603,8 @@ T.Init = ({ dev: e }) => {
3624
3603
  );
3625
3604
  }, []);
3626
3605
  let g = (h) => {
3627
- for (let b in pe[h])
3628
- document.documentElement.style.setProperty(b, pe[h][b]);
3606
+ for (let j in pe[h])
3607
+ document.documentElement.style.setProperty(j, pe[h][j]);
3629
3608
  l(h), d(!1);
3630
3609
  }, x = () => {
3631
3610
  d(!1), f(!0);
@@ -3696,12 +3675,12 @@ T.Init = ({ dev: e }) => {
3696
3675
  /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { onClick: () => d(!c), children: "Closed" }) })
3697
3676
  ] })
3698
3677
  ] }) : "",
3699
- u ? /* @__PURE__ */ r.jsx(xi, { setAuthorization: f }) : ""
3678
+ u ? /* @__PURE__ */ r.jsx(gi, { setAuthorization: f }) : ""
3700
3679
  ] });
3701
3680
  } else
3702
3681
  return /* @__PURE__ */ r.jsx(r.Fragment, {});
3703
3682
  };
3704
- const xi = ({ setAuthorization: e }) => {
3683
+ const gi = ({ setAuthorization: e }) => {
3705
3684
  let t = {}, n = (a) => {
3706
3685
  t = a.value;
3707
3686
  }, s = (a) => {
@@ -3709,7 +3688,7 @@ const xi = ({ setAuthorization: e }) => {
3709
3688
  };
3710
3689
  return /* @__PURE__ */ r.jsx("div", { className: me.ta, children: /* @__PURE__ */ r.jsxs("div", { className: "--body", children: [
3711
3690
  /* @__PURE__ */ r.jsx("fieldset", { children: /* @__PURE__ */ r.jsx(
3712
- ui.Notes,
3691
+ li.Notes,
3713
3692
  {
3714
3693
  label: "Data JSON",
3715
3694
  name: "description",
@@ -3719,17 +3698,17 @@ const xi = ({ setAuthorization: e }) => {
3719
3698
  ) }),
3720
3699
  /* @__PURE__ */ r.jsx("div", { onClick: s, children: " Сщхранить " })
3721
3700
  ] }) });
3722
- }, yl = ({ children: e, config: t }) => (window.location.pathname === "/clear" && (window.history.pushState({}, "", "/"), H()), I.New(t.crypto), t.defaultModule && gr(t.defaultModule), xr(
3701
+ }, xl = ({ children: e, config: t }) => (window.location.pathname === "/clear" && (window.history.pushState({}, "", "/"), Z()), T.New(t.crypto), t.defaultModule && gr(t.defaultModule), xr(
3723
3702
  /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3724
- /* @__PURE__ */ r.jsx(T.Init, { dev: t.dev }),
3725
- /* @__PURE__ */ r.jsx(da, { config: t.modal }),
3703
+ /* @__PURE__ */ r.jsx(D.Init, { dev: t.dev }),
3704
+ /* @__PURE__ */ r.jsx(ca, { config: t.modal }),
3726
3705
  /* @__PURE__ */ r.jsx(Cs, {}),
3727
- /* @__PURE__ */ r.jsx(Is, {}),
3728
- /* @__PURE__ */ r.jsx(wa, {}),
3706
+ /* @__PURE__ */ r.jsx(Ms, {}),
3707
+ /* @__PURE__ */ r.jsx(ya, {}),
3729
3708
  e
3730
3709
  ] })
3731
- )), vi = ({ list: e, onClick: t, active: n, size: s, view: a }) => /* @__PURE__ */ r.jsx("nav", { children: /* @__PURE__ */ r.jsx("ul", { className: [s, a].join(" "), children: e.map((i) => /* @__PURE__ */ r.jsx(
3732
- bi,
3710
+ )), pi = ({ list: e, onClick: t, active: n, size: s, view: a }) => /* @__PURE__ */ r.jsx("nav", { children: /* @__PURE__ */ r.jsx("ul", { className: [s, a].join(" "), children: e.map((i) => /* @__PURE__ */ r.jsx(
3711
+ xi,
3733
3712
  {
3734
3713
  onClick: t,
3735
3714
  active: n,
@@ -3737,9 +3716,9 @@ const xi = ({ setAuthorization: e }) => {
3737
3716
  link: i.link
3738
3717
  },
3739
3718
  i.link
3740
- )) }) }), bi = ({ onClick: e, label: t, link: n, active: s }) => /* @__PURE__ */ r.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: t });
3741
- vi.defaultProps = { size: "M", view: "H" };
3742
- const ji = ({
3719
+ )) }) }), xi = ({ onClick: e, label: t, link: n, active: s }) => /* @__PURE__ */ r.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: t });
3720
+ pi.defaultProps = { size: "M", view: "H" };
3721
+ const vi = ({
3743
3722
  title: e = "",
3744
3723
  button: t,
3745
3724
  description: n = "",
@@ -3759,9 +3738,9 @@ const ji = ({
3759
3738
  ] }),
3760
3739
  /* @__PURE__ */ r.jsx("ul", { children: s }),
3761
3740
  n && /* @__PURE__ */ r.jsx("article", { children: n })
3762
- ] }), Ci = "_setting_dva4m_2", _i = {
3763
- setting: Ci
3764
- }, yi = ({ children: e }) => /* @__PURE__ */ r.jsx("div", { className: _i.setting, children: e }), wi = ({ label: e, children: t }) => {
3741
+ ] }), ji = "_setting_dva4m_2", bi = {
3742
+ setting: ji
3743
+ }, Ci = ({ children: e }) => /* @__PURE__ */ r.jsx("div", { className: bi.setting, children: e }), yi = ({ label: e, children: t }) => {
3765
3744
  let [n, s] = y.useState(!1);
3766
3745
  return /* @__PURE__ */ r.jsxs("li", { "data-item": "accordion", children: [
3767
3746
  /* @__PURE__ */ r.jsxs("dl", { onClick: () => s(!n), children: [
@@ -3770,10 +3749,10 @@ const ji = ({
3770
3749
  ] }),
3771
3750
  n && /* @__PURE__ */ r.jsx("div", { children: t })
3772
3751
  ] });
3773
- }, ki = ({ label: e, onClick: t, button: n }) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs("dl", { children: [
3752
+ }, _i = ({ label: e, onClick: t, button: n }) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs("dl", { children: [
3774
3753
  /* @__PURE__ */ r.jsx("dt", { children: e }),
3775
3754
  /* @__PURE__ */ r.jsx("dd", { role: "button", onClick: () => t(), children: n })
3776
- ] }) }), Si = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ r.jsx(
3755
+ ] }) }), wi = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ r.jsx(
3777
3756
  "div",
3778
3757
  {
3779
3758
  role: "switch",
@@ -3782,25 +3761,25 @@ const ji = ({
3782
3761
  },
3783
3762
  "aria-checked": e ? "true" : "false"
3784
3763
  }
3785
- )), Ei = { Switch: Si }, Ti = ({ label: e, onClick: t, active: n }) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs("dl", { children: [
3764
+ )), ki = { Switch: wi }, Si = ({ label: e, onClick: t, active: n }) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs("dl", { children: [
3786
3765
  /* @__PURE__ */ r.jsx("dt", { children: e }),
3787
- /* @__PURE__ */ r.jsx("dd", { children: /* @__PURE__ */ r.jsx(Ei.Switch, { onClick: t, active: n }) })
3788
- ] }) }), Ri = ({ label: e, active: t, options: n }) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs("dl", { children: [
3766
+ /* @__PURE__ */ r.jsx("dd", { children: /* @__PURE__ */ r.jsx(ki.Switch, { onClick: t, active: n }) })
3767
+ ] }) }), Ei = ({ label: e, active: t, options: n }) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs("dl", { children: [
3789
3768
  /* @__PURE__ */ r.jsx("dt", { children: e }),
3790
3769
  /* @__PURE__ */ r.jsx("dd", { role: "info", children: t })
3791
- ] }) }), Bi = ({ label: e, info: t }) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs("dl", { children: [
3770
+ ] }) }), Di = ({ label: e, info: t }) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs("dl", { children: [
3792
3771
  /* @__PURE__ */ r.jsx("dt", { children: e }),
3793
3772
  /* @__PURE__ */ r.jsx("dd", { role: "info", children: t })
3794
- ] }) }), Ni = ({ label: e, children: t }) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs("dl", { children: [
3773
+ ] }) }), Mi = ({ label: e, children: t }) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs("dl", { children: [
3795
3774
  /* @__PURE__ */ r.jsx("dt", { children: e }),
3796
3775
  /* @__PURE__ */ r.jsx("dd", { children: t })
3797
- ] }) }), Ii = ({ label: e, children: t }) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs("dl", { children: [
3776
+ ] }) }), $i = ({ label: e, children: t }) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs("dl", { children: [
3798
3777
  /* @__PURE__ */ r.jsx("dt", { children: e }),
3799
3778
  /* @__PURE__ */ r.jsx("dd", { children: t })
3800
- ] }) }), Di = { Accordion: wi, Button: ki, Switch: Ti, Info: Bi, Select: Ri, Component: Ni, Node: Ii };
3801
- function Dn({ list: e, onClick: t, active: n, size: s, view: a }) {
3779
+ ] }) }), Ri = { Accordion: yi, Button: _i, Switch: Si, Info: Di, Select: Ei, Component: Mi, Node: $i };
3780
+ function Bn({ list: e, onClick: t, active: n, size: s, view: a }) {
3802
3781
  return /* @__PURE__ */ r.jsx("nav", { children: /* @__PURE__ */ r.jsx("ul", { className: [s, a].join(" "), children: e.map((i) => /* @__PURE__ */ r.jsx(
3803
- Mi,
3782
+ Ti,
3804
3783
  {
3805
3784
  onClick: t,
3806
3785
  active: n,
@@ -3810,10 +3789,10 @@ function Dn({ list: e, onClick: t, active: n, size: s, view: a }) {
3810
3789
  i.link
3811
3790
  )) }) });
3812
3791
  }
3813
- const Mi = ({ onClick: e, label: t, link: n, active: s }) => /* @__PURE__ */ r.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: t });
3814
- Dn.defaultProps = { size: "M", view: "H" };
3815
- const wl = { Section: ji, Main: yi, Item: Di, Tabs: Dn };
3816
- function Mn({ text: e, type: t, button: n }) {
3792
+ const Ti = ({ onClick: e, label: t, link: n, active: s }) => /* @__PURE__ */ r.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: t });
3793
+ Bn.defaultProps = { size: "M", view: "H" };
3794
+ const vl = { Section: vi, Main: Ci, Item: Ri, Tabs: Bn };
3795
+ function In({ text: e, type: t, button: n }) {
3817
3796
  let [s, a] = y.useState(!1), i = { active: t };
3818
3797
  const l = () => {
3819
3798
  if (n) {
@@ -3823,7 +3802,7 @@ function Mn({ text: e, type: t, button: n }) {
3823
3802
  return s ? void 0 : (a(!0), n.onSend(a));
3824
3803
  }
3825
3804
  };
3826
- return /* @__PURE__ */ r.jsxs("div", { className: rt.al, ...i, children: [
3805
+ return /* @__PURE__ */ r.jsxs("div", { className: nt.al, ...i, children: [
3827
3806
  /* @__PURE__ */ r.jsx(
3828
3807
  "svg",
3829
3808
  {
@@ -3845,55 +3824,54 @@ function Mn({ text: e, type: t, button: n }) {
3845
3824
  n && /* @__PURE__ */ r.jsx("button", { onClick: l, children: n.label })
3846
3825
  ] });
3847
3826
  }
3848
- const $i = "_h_1usnu_1", Fi = "_g_1usnu_11", Pi = "_hr_1usnu_16", Oi = "_hl_1usnu_28", Li = "_t_1usnu_40", Ai = "_s_1usnu_60", zi = "_u_1usnu_69", Wi = "_o_1usnu_76", Zi = "_l_1usnu_105", Ui = "_hh_1usnu_115", Yi = "_c_1usnu_128", Ki = "_loadingB_1usnu_1", Gi = "_m_1usnu_180", Hi = "_ul_1usnu_196", qi = "_f_1usnu_226", G = {
3849
- h: $i,
3850
- g: Fi,
3851
- hr: Pi,
3852
- hl: Oi,
3853
- t: Li,
3854
- s: Ai,
3855
- u: zi,
3856
- o: Wi,
3857
- l: Zi,
3827
+ const Bi = "_h_1usnu_1", Ii = "_g_1usnu_11", Ni = "_hr_1usnu_16", Fi = "_hl_1usnu_28", Pi = "_t_1usnu_40", Oi = "_s_1usnu_60", Li = "_u_1usnu_69", Ai = "_o_1usnu_76", Wi = "_l_1usnu_105", Ui = "_hh_1usnu_115", zi = "_c_1usnu_128", qi = "_m_1usnu_180", Hi = "_ul_1usnu_196", Ki = "_f_1usnu_226", Y = {
3828
+ h: Bi,
3829
+ g: Ii,
3830
+ hr: Ni,
3831
+ hl: Fi,
3832
+ t: Pi,
3833
+ s: Oi,
3834
+ u: Li,
3835
+ o: Ai,
3836
+ l: Wi,
3858
3837
  hh: Ui,
3859
- c: Yi,
3860
- loadingB: Ki,
3861
- m: Gi,
3838
+ c: zi,
3839
+ m: qi,
3862
3840
  ul: Hi,
3863
- f: qi
3864
- }, qt = ({ title: e, left: t, right: n, children: s }) => /* @__PURE__ */ r.jsxs("div", { className: G.h, children: [
3865
- /* @__PURE__ */ r.jsx("div", { className: G.t, children: e }),
3866
- t && /* @__PURE__ */ r.jsx("div", { className: G.hl, children: t }),
3867
- n && /* @__PURE__ */ r.jsx("div", { className: G.hr, children: n }),
3841
+ f: Ki
3842
+ }, Jt = ({ title: e, left: t, right: n, children: s }) => /* @__PURE__ */ r.jsxs("div", { className: Y.h, children: [
3843
+ /* @__PURE__ */ r.jsx("div", { className: Y.t, children: e }),
3844
+ t && /* @__PURE__ */ r.jsx("div", { className: Y.hl, children: t }),
3845
+ n && /* @__PURE__ */ r.jsx("div", { className: Y.hr, children: n }),
3868
3846
  s
3869
- ] }), Xt = ({ children: e, ...t }) => /* @__PURE__ */ r.jsx("div", { className: G.l, children: e }), Jt = ({ children: e }) => /* @__PURE__ */ r.jsx("div", { className: G.s, children: e }), Qt = ({ children: e, edit: t }) => {
3847
+ ] }), Gt = ({ children: e, ...t }) => /* @__PURE__ */ r.jsx("div", { className: Y.l, children: e }), Xt = ({ children: e }) => /* @__PURE__ */ r.jsx("div", { className: Y.s, children: e }), Qt = ({ children: e, edit: t }) => {
3870
3848
  const n = {};
3871
- return t && (n.edit = ""), /* @__PURE__ */ r.jsx("div", { ...n, className: G.f, children: e });
3849
+ return t && (n.edit = ""), /* @__PURE__ */ r.jsx("div", { ...n, className: Y.f, children: e });
3872
3850
  };
3873
3851
  function Vt({ children: e }) {
3874
- return /* @__PURE__ */ r.jsx("div", { className: G.g, children: e });
3852
+ return /* @__PURE__ */ r.jsx("div", { className: Y.g, children: e });
3875
3853
  }
3876
- const Xi = ({ children: e, className: t, title: n }) => /* @__PURE__ */ r.jsxs("div", { className: [G.o, t].join(" "), children: [
3877
- n && /* @__PURE__ */ r.jsx("div", { className: G.hh, children: n }),
3854
+ const Yi = ({ children: e, className: t, title: n }) => /* @__PURE__ */ r.jsxs("div", { className: [Y.o, t].join(" "), children: [
3855
+ n && /* @__PURE__ */ r.jsx("div", { className: Y.hh, children: n }),
3878
3856
  e
3879
- ] }), Ji = ({ children: e }) => /* @__PURE__ */ r.jsx("div", { className: G.u, children: e }), Qi = ({ children: e }) => /* @__PURE__ */ r.jsx("div", { className: G.c, children: e }), Vi = ({ children: e }) => /* @__PURE__ */ r.jsx("div", { className: G.m, children: e }), kl = {
3880
- Header: qt,
3881
- Section: Jt,
3857
+ ] }), Zi = ({ children: e }) => /* @__PURE__ */ r.jsx("div", { className: Y.u, children: e }), Ji = ({ children: e }) => /* @__PURE__ */ r.jsx("div", { className: Y.c, children: e }), Gi = ({ children: e }) => /* @__PURE__ */ r.jsx("div", { className: Y.m, children: e }), jl = {
3858
+ Header: Jt,
3859
+ Section: Xt,
3882
3860
  Group: Vt,
3883
3861
  Form: Qt,
3884
- List: Xt,
3885
- A: Mn,
3886
- U: Ji,
3862
+ List: Gt,
3863
+ A: In,
3864
+ U: Zi,
3887
3865
  G: Vt,
3888
- C: Qi,
3889
- L: Xt,
3890
- O: Xi,
3891
- S: Jt,
3892
- H: qt,
3893
- M: Vi,
3866
+ C: Ji,
3867
+ L: Gt,
3868
+ O: Yi,
3869
+ S: Xt,
3870
+ H: Jt,
3871
+ M: Gi,
3894
3872
  F: Qt
3895
- }, Sl = { Send: Ms, Line: Mn };
3896
- function eo() {
3873
+ }, bl = { Send: Rs, Line: In };
3874
+ function Xi() {
3897
3875
  return /* @__PURE__ */ r.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ r.jsx(
3898
3876
  "path",
3899
3877
  {
@@ -3902,15 +3880,15 @@ function eo() {
3902
3880
  }
3903
3881
  ) });
3904
3882
  }
3905
- const to = {};
3906
- function no(e) {
3907
- to.add(e);
3883
+ const Qi = {};
3884
+ function Vi(e) {
3885
+ Qi.add(e);
3908
3886
  }
3909
- function ro({ color: e, size: t, name: n }) {
3887
+ function eo({ color: e, size: t, name: n }) {
3910
3888
  return /* @__PURE__ */ r.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ r.jsx("use", { href: `#${n}` }) });
3911
3889
  }
3912
- const El = { Logo: eo, Sprite: no, Symbol: ro };
3913
- function so() {
3890
+ const Cl = { Logo: Xi, Sprite: Vi, Symbol: eo };
3891
+ function to() {
3914
3892
  return /* @__PURE__ */ r.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
3915
3893
  /* @__PURE__ */ r.jsx(
3916
3894
  "path",
@@ -3945,7 +3923,7 @@ function so() {
3945
3923
  )
3946
3924
  ] });
3947
3925
  }
3948
- function ao() {
3926
+ function no() {
3949
3927
  return /* @__PURE__ */ r.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
3950
3928
  /* @__PURE__ */ r.jsx(
3951
3929
  "path",
@@ -3974,7 +3952,7 @@ function ao() {
3974
3952
  )
3975
3953
  ] });
3976
3954
  }
3977
- function io() {
3955
+ function ro() {
3978
3956
  return /* @__PURE__ */ r.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ r.jsx(
3979
3957
  "path",
3980
3958
  {
@@ -3987,11 +3965,11 @@ function io() {
3987
3965
  }
3988
3966
  ) });
3989
3967
  }
3990
- const oo = "_n_euuvm_1", lo = {
3991
- n: oo
3968
+ const so = "_n_euuvm_1", ao = {
3969
+ n: so
3992
3970
  };
3993
- let Me = {}, Be = [];
3994
- const co = (e, t) => {
3971
+ let Be = {}, Me = [];
3972
+ const io = (e, t) => {
3995
3973
  switch (t.type) {
3996
3974
  case "open":
3997
3975
  return {
@@ -4032,7 +4010,7 @@ const co = (e, t) => {
4032
4010
  s = { ...e.take, ...s }, e.active = !1;
4033
4011
  for (let a in s)
4034
4012
  s[a] !== "999" && (e.active = !0);
4035
- return Me.get(s, e.active), {
4013
+ return Be.get(s, e.active), {
4036
4014
  ...e,
4037
4015
  take: s,
4038
4016
  active: e.active
@@ -4043,35 +4021,35 @@ const co = (e, t) => {
4043
4021
  throw new Error();
4044
4022
  }
4045
4023
  };
4046
- function uo(e) {
4047
- Me.fn({ action: "add", data: e });
4024
+ function oo(e) {
4025
+ Be.fn({ action: "add", data: e });
4048
4026
  }
4049
- function fo(e) {
4050
- Me.fn({ action: "add", data: e });
4027
+ function lo(e) {
4028
+ Be.fn({ action: "add", data: e });
4051
4029
  }
4052
- function ho(e) {
4053
- Me.fn({ action: "new", data: e });
4030
+ function co(e) {
4031
+ Be.fn({ action: "new", data: e });
4054
4032
  }
4055
- function mo(e) {
4056
- Me.fn = e;
4033
+ function uo(e) {
4034
+ Be.fn = e;
4057
4035
  }
4058
- function go() {
4059
- const [e, t] = y.useReducer(co, {
4036
+ function fo() {
4037
+ const [e, t] = y.useReducer(io, {
4060
4038
  open: !1,
4061
4039
  active: !1,
4062
4040
  news: [],
4063
4041
  take: {}
4064
4042
  });
4065
- ot.useListener("bell", async (s) => {
4066
- }), mo(async (s) => {
4043
+ it.useListener("bell", async (s) => {
4044
+ }), uo(async (s) => {
4067
4045
  switch (s.action) {
4068
4046
  case "add":
4069
- Be.push(s.data);
4047
+ Me.push(s.data);
4070
4048
  break;
4071
4049
  }
4072
4050
  }), y.useEffect(() => {
4073
4051
  (async () => {
4074
- let s = await ot.Send({
4052
+ let s = await it.Send({
4075
4053
  type: "module",
4076
4054
  module: "M00",
4077
4055
  query: "x0054",
@@ -4084,7 +4062,7 @@ function go() {
4084
4062
  break;
4085
4063
  case "M01":
4086
4064
  s[a].forEach((i) => {
4087
- Be.push({
4065
+ Me.push({
4088
4066
  module: "M01",
4089
4067
  type: 1,
4090
4068
  id: i.id,
@@ -4095,7 +4073,7 @@ function go() {
4095
4073
  break;
4096
4074
  case "M02":
4097
4075
  s[a].forEach((i) => {
4098
- Be.push({
4076
+ Me.push({
4099
4077
  module: "M02",
4100
4078
  type: 117,
4101
4079
  id: i.id,
@@ -4106,7 +4084,7 @@ function go() {
4106
4084
  break;
4107
4085
  }
4108
4086
  })(), setInterval(() => {
4109
- Be.forEach((s, a) => {
4087
+ Me.forEach((s, a) => {
4110
4088
  t({
4111
4089
  type: "add",
4112
4090
  data: {
@@ -4116,7 +4094,7 @@ function go() {
4116
4094
  datetime: s.datetime,
4117
4095
  txt: s.title
4118
4096
  }
4119
- }), s.datetime < (/* @__PURE__ */ new Date()).getTime() && Be.splice(a, 1);
4097
+ }), s.datetime < (/* @__PURE__ */ new Date()).getTime() && Me.splice(a, 1);
4120
4098
  });
4121
4099
  }, 6e4);
4122
4100
  }, []);
@@ -4127,11 +4105,11 @@ function go() {
4127
4105
  /* @__PURE__ */ r.jsx(
4128
4106
  "div",
4129
4107
  {
4130
- className: lo.n,
4108
+ className: ao.n,
4131
4109
  onClick: () => {
4132
4110
  t({ type: "open", open: !0 });
4133
4111
  },
4134
- children: e.active ? /* @__PURE__ */ r.jsx(ao, {}) : /* @__PURE__ */ r.jsx(so, {})
4112
+ children: e.active ? /* @__PURE__ */ r.jsx(no, {}) : /* @__PURE__ */ r.jsx(to, {})
4135
4113
  }
4136
4114
  ),
4137
4115
  e.open ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
@@ -4146,7 +4124,7 @@ function go() {
4146
4124
  ),
4147
4125
  /* @__PURE__ */ r.jsxs("div", { className: "notify-m", children: [
4148
4126
  /* @__PURE__ */ r.jsx("div", { className: "notify-l", children: e.news.map((s, a) => /* @__PURE__ */ r.jsx(
4149
- po,
4127
+ ho,
4150
4128
  {
4151
4129
  data: s,
4152
4130
  dispatch: t
@@ -4158,9 +4136,9 @@ function go() {
4158
4136
  ] }) : ""
4159
4137
  ] });
4160
4138
  }
4161
- const po = ({ data: e, dispatch: t }) => {
4139
+ const ho = ({ data: e, dispatch: t }) => {
4162
4140
  let n = async (s) => {
4163
- t({ type: "hide", id: s.id }), await ot.Send({
4141
+ t({ type: "hide", id: s.id }), await it.Send({
4164
4142
  type: "module",
4165
4143
  module: "M00",
4166
4144
  query: "x0055",
@@ -4175,24 +4153,24 @@ const po = ({ data: e, dispatch: t }) => {
4175
4153
  ] }),
4176
4154
  /* @__PURE__ */ r.jsx("div", { className: "--hide", "data-icon": "F038", onClick: () => n(e), children: " " })
4177
4155
  ] });
4178
- }, xo = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
4179
- function vo(e) {
4156
+ }, mo = '(function(){"use strict";let a=[],s=null;onconnect=function(l){var t=l.source;a.push(t);const n=e=>{s!==null&&s.readyState===1?s.send(JSON.stringify(e)):t.postMessage({type:"noSend"})};let r=e=>{if(s!==null&&s.readyState===1)return t.postMessage({type:"true"});e.lk.address==="localhost"?s=new WebSocket(`ws://localhost:${e.lk.socket+1}`):s=new WebSocket("wss://"+e.lk.address+":"+(e.lk.socket+1)),s.onerror=()=>t.postMessage({type:"error"}),s.onopen=()=>{n({type:"connect",ukey:e.ukey})},s.onmessage=o=>{let c=JSON.parse(o.data);a.forEach(d=>{d.postMessage(c)})},s.onclose=()=>t.postMessage({type:"closed"})};t.onmessage=function(e){switch(e.data.type){case"length":return t.postMessage(a.length);case"all":return a.forEach(o=>o.postMessage({all:a.length}));case"send":return n(e.data.json);case"connect":return r(e.data);default:t.postMessage({type:"default",data:e.data.json})}}}})();\n';
4157
+ function go(e) {
4180
4158
  return new SharedWorker(
4181
- "data:text/javascript;base64," + xo,
4159
+ "data:text/javascript;charset=utf-8," + encodeURIComponent(mo),
4182
4160
  {
4183
4161
  name: e == null ? void 0 : e.name
4184
4162
  }
4185
4163
  );
4186
4164
  }
4187
- function bo(e) {
4165
+ function po(e) {
4188
4166
  let t = {}, n = {};
4189
4167
  e.data.forEach((a) => {
4190
4168
  t[a.id] = { s: a.v, n: a.a }, n[a.id] = a;
4191
4169
  });
4192
4170
  let s = { ...ae(), 901: t };
4193
- ln(n), Ie(s);
4171
+ ln(n), Re(s);
4194
4172
  }
4195
- let V = {}, Z = {}, Le = [
4173
+ let V = {}, z = {}, Le = [
4196
4174
  "filter",
4197
4175
  "online",
4198
4176
  "users",
@@ -4202,10 +4180,10 @@ let V = {}, Z = {}, Le = [
4202
4180
  "info",
4203
4181
  "job"
4204
4182
  ];
4205
- function jo() {
4183
+ function xo() {
4206
4184
  const [e, t] = y.useState(!1), [n, s] = y.useState(!1);
4207
4185
  function a(i) {
4208
- const l = new vo();
4186
+ const l = new go();
4209
4187
  V.laodData = (c) => {
4210
4188
  let d = Le.indexOf(c);
4211
4189
  d >= 0 && Le.splice(d, 1), Le.length === 0 && t(!0);
@@ -4217,7 +4195,7 @@ function jo() {
4217
4195
  type: "connect",
4218
4196
  ukey: i,
4219
4197
  lk: et()
4220
- }), Le.length !== 0 && V.laodData(d.type), Z[d.type] && Z[d.type](d);
4198
+ }), Le.length !== 0 && V.laodData(d.type), z[d.type] && z[d.type](d);
4221
4199
  }, l.port.postMessage({
4222
4200
  type: "connect",
4223
4201
  ukey: i,
@@ -4226,23 +4204,23 @@ function jo() {
4226
4204
  }
4227
4205
  return [a, e, n];
4228
4206
  }
4229
- Z.module = (e) => {
4207
+ z.module = (e) => {
4230
4208
  V[e.listen] !== void 0 && (V[e.listen](e), delete V[e.listen]);
4231
4209
  };
4232
- Z.bell = ho;
4233
- Z.company = bo;
4234
- Z.info = (e) => {
4210
+ z.bell = co;
4211
+ z.company = po;
4212
+ z.info = (e) => {
4235
4213
  let t = {};
4236
4214
  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"), cn(t), an(e.data.menu);
4237
4215
  };
4238
- Z.version = async (e) => {
4239
- dt.version.Server(e.data);
4216
+ z.version = async (e) => {
4217
+ ut.version.Server(e.data);
4240
4218
  };
4241
- Z.online = async (e) => {
4219
+ z.online = async (e) => {
4242
4220
  };
4243
- Z.offline = async (e) => {
4221
+ z.offline = async (e) => {
4244
4222
  };
4245
- Z.chat = (e) => {
4223
+ z.chat = (e) => {
4246
4224
  switch (e.data.action) {
4247
4225
  case "new_message":
4248
4226
  ce.getModule();
@@ -4255,7 +4233,7 @@ Z.chat = (e) => {
4255
4233
  break;
4256
4234
  }
4257
4235
  };
4258
- Z.users = (e) => {
4236
+ z.users = (e) => {
4259
4237
  let t = {};
4260
4238
  e.data.forEach((s) => {
4261
4239
  let a = s.p01 + " " + s.p02 + " " + s.p03, i = s.p01 + " " + s.p02.substring(0, 1) + "." + s.p03.substring(0, 1) + ".", l = s.p01.substring(0, 1) + "" + s.p02.substring(0, 1) + s.p03.substring(0, 1);
@@ -4273,40 +4251,40 @@ Z.users = (e) => {
4273
4251
  };
4274
4252
  });
4275
4253
  let n = { ...ae(), user: t };
4276
- Ie(n);
4254
+ Re(n);
4277
4255
  };
4278
- Z.api = (e) => {
4256
+ z.api = (e) => {
4279
4257
  let t = {};
4280
4258
  e.data.forEach((n) => {
4281
4259
  t[n.api] = { key: n.key, p01: n.p01, p02: n.p02 };
4282
4260
  });
4283
4261
  };
4284
- Z.delete = () => {
4285
- H();
4262
+ z.delete = () => {
4263
+ Z();
4286
4264
  };
4287
- Z.select = (e) => {
4265
+ z.select = (e) => {
4288
4266
  let t = { ...ae() };
4289
4267
  e.data.forEach((n) => {
4290
4268
  t[n.n] = JSON.parse(n.s);
4291
- }), Ie(t);
4269
+ }), Re(t);
4292
4270
  };
4293
- Z.job = (e) => {
4271
+ z.job = (e) => {
4294
4272
  let t = { ...ae() }, n = {};
4295
4273
  Object.keys(e.data).forEach((s) => {
4296
4274
  n[s] = { s: 1, n: e.data[s] };
4297
- }), t[1] = n, Ie(t);
4275
+ }), t[1] = n, Re(t);
4298
4276
  };
4299
- Z.setting = (e) => {
4277
+ z.setting = (e) => {
4300
4278
  Or(e.data);
4301
4279
  };
4302
- Z.app = () => {
4280
+ z.app = () => {
4303
4281
  };
4304
- const Co = (e, t) => {
4282
+ const vo = (e, t) => {
4305
4283
  V[e] = t;
4306
- }, _o = (e, t) => {
4284
+ }, jo = (e, t) => {
4307
4285
  V[e](t);
4308
4286
  };
4309
- function yo(e) {
4287
+ function bo(e) {
4310
4288
  let t = "_" + String(Math.random()).substring(2, 7);
4311
4289
  return new Promise((n) => {
4312
4290
  V[t] = (s) => {
@@ -4314,11 +4292,11 @@ function yo(e) {
4314
4292
  }, e = { ...e, listen: t }, e.type = "modules", V.send(e);
4315
4293
  });
4316
4294
  }
4317
- const ot = { useConnect: jo, useListener: Co, setListener: _o, Send: yo };
4318
- class wo {
4295
+ const it = { useConnect: xo, useListener: vo, setListener: jo, Send: bo };
4296
+ class Co {
4319
4297
  constructor(t = "el", n = "db") {
4320
- Qe(this, "storeName");
4321
- Qe(this, "_dbp");
4298
+ Xe(this, "storeName");
4299
+ Xe(this, "_dbp");
4322
4300
  this.storeName = n, this._dbp = new Promise((s, a) => {
4323
4301
  const i = indexedDB.open(t, 1);
4324
4302
  i.onerror = () => a(i.error), i.onsuccess = () => s(i.result), i.onupgradeneeded = () => {
@@ -4336,53 +4314,53 @@ class wo {
4336
4314
  }
4337
4315
  }
4338
4316
  let Ve, A = {};
4339
- const we = () => (Ve || (Ve = new wo()), Ve), fe = (e, t, n = we()) => n._withIDBStore("readwrite", (s) => {
4340
- A[e] = t, s.put(I.enCode(t), e);
4317
+ const we = () => (Ve || (Ve = new Co()), Ve), fe = (e, t, n = we()) => n._withIDBStore("readwrite", (s) => {
4318
+ A[e] = t, s.put(T.enCode(t), e);
4341
4319
  }), ne = (e, t = we()) => A[e] === void 0 ? new Promise((n, s) => {
4342
4320
  let a;
4343
4321
  t._withIDBStore("readonly", (i) => {
4344
4322
  a = i.get(e);
4345
4323
  }).then(() => {
4346
4324
  if (a.result !== void 0) {
4347
- let i = I.deCode(a.result);
4325
+ let i = T.deCode(a.result);
4348
4326
  A[e] = i, n(i);
4349
4327
  } else
4350
4328
  n({});
4351
4329
  });
4352
- }) : A[e], ko = (e, t = we()) => t._withIDBStore("readwrite", (n) => {
4330
+ }) : A[e], yo = (e, t = we()) => t._withIDBStore("readwrite", (n) => {
4353
4331
  n.delete(e);
4354
- }), lt = (e = we()) => e._withIDBStore("readwrite", (t) => {
4332
+ }), ot = (e = we()) => e._withIDBStore("readwrite", (t) => {
4355
4333
  t.clear();
4356
- }), So = (e = we()) => {
4334
+ }), _o = (e = we()) => {
4357
4335
  const t = [];
4358
4336
  return e._withIDBStore("readonly", (n) => {
4359
4337
  (n.openKeyCursor || n.openCursor).call(n).onsuccess = function() {
4360
4338
  this.result && (t.push(this.result.key), this.result.continue());
4361
4339
  };
4362
4340
  }).then(() => t);
4363
- }, Eo = (e, t, n = [], s = {}) => {
4341
+ }, wo = (e, t, n = [], s = {}) => {
4364
4342
  let a = n.length !== 0, i = [], l = s.sort, c = Object.keys(s).length !== 0, d = Object.keys(s), u = Object.keys(e), f = [], g = (h) => {
4365
- let b = "";
4343
+ let j = "";
4366
4344
  if (n.forEach((C) => {
4367
- b += t[h][C];
4345
+ j += t[h][C];
4368
4346
  }), c) {
4369
4347
  let C = {};
4370
4348
  d.forEach((m) => {
4371
4349
  C[m] = t[h][m];
4372
4350
  });
4373
4351
  for (let m in l)
4374
- t[h][l[m]] === void 0 && (lt(), location.reload()), m === "s1" && (C[m] = new Date(t[h][l[m]]).getTime()), m === "s2" && (C[m] = t[h][l[m]]), m === "s3" && (C[m] = t[h][l[m]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
4375
- i.push({ id: h, text: b, ...C });
4352
+ t[h][l[m]] === void 0 && (ot(), location.reload()), m === "s1" && (C[m] = new Date(t[h][l[m]]).getTime()), m === "s2" && (C[m] = t[h][l[m]]), m === "s3" && (C[m] = t[h][l[m]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
4353
+ i.push({ id: h, text: j, ...C });
4376
4354
  } else
4377
- i.push({ id: h, text: b });
4355
+ i.push({ id: h, text: j });
4378
4356
  }, x = (h) => {
4379
4357
  };
4380
4358
  return u.forEach((h) => {
4381
4359
  f.push(t[h]);
4382
4360
  }), f.forEach((h) => {
4383
- h === void 0 ? (lt(), location.reload()) : (a && g(h.id), c && x(h.id));
4361
+ h === void 0 ? (ot(), location.reload()) : (a && g(h.id), c && x(h.id));
4384
4362
  }), { list: f, search: i, filter: s };
4385
- }, To = (e, t, n, s = we()) => {
4363
+ }, ko = (e, t, n, s = we()) => {
4386
4364
  if (A[e] === void 0)
4387
4365
  return new Promise((a, i) => {
4388
4366
  let l;
@@ -4390,66 +4368,64 @@ const we = () => (Ve || (Ve = new wo()), Ve), fe = (e, t, n = we()) => n._withID
4390
4368
  l = c.get(e);
4391
4369
  }).then(() => {
4392
4370
  if (l.result !== void 0) {
4393
- let c = I.deCode(l.result);
4371
+ let c = T.deCode(l.result);
4394
4372
  A[e] = c, A[e][t.id] = {
4395
4373
  ...A[e][t.id],
4396
4374
  ...t.data
4397
- }, s.put(I.enCode(A[e]), e), a({});
4375
+ }, s.put(T.enCode(A[e]), e), a({});
4398
4376
  } else
4399
4377
  a({});
4400
4378
  });
4401
4379
  });
4402
4380
  if (A[e][t.id] !== void 0)
4403
4381
  return A[e][t.id] = { ...A[e][t.id], ...t.data }, n !== void 0 && A[n] !== void 0 ? A[n][t.id] !== void 0 && (A[n][t.id] = t.data.eDate) : A[n] = [], delete A[e][t.id].$_item, delete A[e][t.id].$_send, s._withIDBStore("readwrite", (a) => {
4404
- a.put(I.enCode(A[e]), e), n !== void 0 && a.put(I.enCode(A[n]), n);
4382
+ a.put(T.enCode(A[e]), e), n !== void 0 && a.put(T.enCode(A[n]), n);
4405
4383
  });
4406
- }, Ro = async (e, t, n, s) => {
4384
+ }, So = async (e, t, n, s) => {
4407
4385
  let a, i;
4408
4386
  i = await ne(n), i[e.id] = e, await fe(n, i), a !== null && (a = await ne(t), a[e.id] = e.eDate, await fe(t, a)), s !== void 0 && s({ type: "load", page: a, base: i });
4409
- }, Bo = async (e, t, n, s) => {
4387
+ }, Eo = async (e, t, n, s) => {
4410
4388
  let a = await ne(t), i = await ne(n);
4411
4389
  for (let l in e)
4412
4390
  i[l] = e[l], a[l] = e[l].eDate;
4413
4391
  await fe(t, a), await fe(n, i), s !== void 0 && s({ type: "load", page: a, base: i });
4414
- }, No = async (e, t, n, s) => {
4392
+ }, Do = async (e, t, n, s) => {
4415
4393
  let a = await ne(t), i = await ne(n);
4416
4394
  e.forEach((l) => delete a[l]), await fe(t, a), s !== void 0 && s({ type: "load", page: a, base: i });
4417
- }, Io = async (e, t, n) => {
4395
+ }, Mo = async (e, t, n) => {
4418
4396
  let s = await ne(t);
4419
4397
  e.forEach((a) => delete s[a]), await fe(t, s);
4420
- }, Do = async (e, t, n) => {
4398
+ }, $o = async (e, t, n) => {
4421
4399
  let s = await ne(t);
4422
4400
  e.forEach((a) => s[a.id] = a.eDate), await fe(t, s);
4423
- }, Mo = async (e, t, n) => {
4401
+ }, Ro = async (e, t, n) => {
4424
4402
  let s = await ne(t);
4425
4403
  if (n !== void 0)
4426
4404
  n({ type: "load", base: s });
4427
4405
  else
4428
4406
  return s[e];
4429
- }, $o = (e) => A[e], Tl = {
4430
- id: Mo,
4407
+ }, To = (e) => A[e], yl = {
4408
+ id: Ro,
4431
4409
  get: ne,
4432
4410
  set: fe,
4433
- add: Ro,
4434
- del: ko,
4435
- upd: To,
4436
- key: So,
4437
- load: $o,
4438
- split: Eo,
4439
- clear: lt,
4440
- updAll: Bo,
4441
- delAll: No,
4442
- delList: Io,
4443
- addList: Do
4444
- }, Rl = { setSetting: Lr, getSetting: Ar }, Fo = "_s_18bde_1", Po = "_loadingB_18bde_1", Oo = "_ul_18bde_31", Lo = {
4445
- s: Fo,
4446
- loadingB: Po,
4447
- ul: Oo
4411
+ add: So,
4412
+ del: yo,
4413
+ upd: ko,
4414
+ key: _o,
4415
+ load: To,
4416
+ split: wo,
4417
+ clear: ot,
4418
+ updAll: Eo,
4419
+ delAll: Do,
4420
+ delList: Mo,
4421
+ addList: $o
4422
+ }, _l = { setSetting: Lr, getSetting: Ar }, Bo = "_s_18bde_1", Io = {
4423
+ s: Bo
4448
4424
  };
4449
- function Ao({ children: e }) {
4450
- return /* @__PURE__ */ r.jsx("ul", { className: G.ul, children: e });
4425
+ function No({ children: e }) {
4426
+ return /* @__PURE__ */ r.jsx("ul", { className: Y.ul, children: e });
4451
4427
  }
4452
- function zo(e, t) {
4428
+ function Fo(e, t) {
4453
4429
  switch (t.type) {
4454
4430
  case "load":
4455
4431
  return {
@@ -4482,13 +4458,13 @@ function zo(e, t) {
4482
4458
  throw new Error();
4483
4459
  }
4484
4460
  }
4485
- function Bl({
4461
+ function wl({
4486
4462
  list: e,
4487
4463
  load: t,
4488
4464
  className: n,
4489
4465
  ...s
4490
4466
  }) {
4491
- const a = y.useRef(null), [i, l] = y.useReducer(zo, {
4467
+ const a = y.useRef(null), [i, l] = y.useReducer(Fo, {
4492
4468
  load: !1,
4493
4469
  list: [],
4494
4470
  data: {},
@@ -4505,10 +4481,10 @@ function Bl({
4505
4481
  return /* @__PURE__ */ r.jsx(
4506
4482
  "div",
4507
4483
  {
4508
- className: [Lo.s, n].join(" "),
4484
+ className: [Io.s, n].join(" "),
4509
4485
  ref: a,
4510
4486
  onScroll: c,
4511
- children: /* @__PURE__ */ r.jsx(Ao, { "el-empty": "Данные не найдены", children: i.load && i.list !== void 0 ? i.list.map((d) => /* @__PURE__ */ r.jsx(s.item, { data: d }, d.id)) : /* @__PURE__ */ r.jsxs("div", { "data-load": "load", children: [
4487
+ children: /* @__PURE__ */ r.jsx(No, { "el-empty": "Данные не найдены", children: i.load && i.list !== void 0 ? i.list.map((d) => /* @__PURE__ */ r.jsx(s.item, { data: d }, d.id)) : /* @__PURE__ */ r.jsxs("div", { "data-load": "load", children: [
4512
4488
  /* @__PURE__ */ r.jsx("i", {}),
4513
4489
  /* @__PURE__ */ r.jsx("i", {}),
4514
4490
  /* @__PURE__ */ r.jsx("i", {})
@@ -4516,7 +4492,7 @@ function Bl({
4516
4492
  }
4517
4493
  );
4518
4494
  }
4519
- const Wo = ({ label: e, onValue: t, value: n, name: s, item: a }) => {
4495
+ const Po = ({ label: e, onValue: t, value: n, name: s, item: a }) => {
4520
4496
  const [i, l] = y.useState(!!n);
4521
4497
  y.useEffect(() => {
4522
4498
  l(!!n);
@@ -4534,7 +4510,7 @@ const Wo = ({ label: e, onValue: t, value: n, name: s, item: a }) => {
4534
4510
  }
4535
4511
  );
4536
4512
  }, ve = {};
4537
- function Zo(e) {
4513
+ function Oo(e) {
4538
4514
  const [t, n] = y.useState({}), s = y.useRef(e);
4539
4515
  ve.u = (i) => {
4540
4516
  s.current = { ...s.current, [i.name]: i.value };
@@ -4546,51 +4522,50 @@ function Zo(e) {
4546
4522
  };
4547
4523
  return [s.current, a];
4548
4524
  }
4549
- function Uo(e) {
4525
+ function Lo(e) {
4550
4526
  ve.u(e), e.reload && ve.r();
4551
4527
  }
4552
- function Yo() {
4528
+ function Ao() {
4553
4529
  ve.r && ve.r();
4554
4530
  }
4555
- const Nl = {
4531
+ const kl = {
4556
4532
  Color: Cn,
4557
- Date: ht,
4558
- Code: jn,
4559
- Check: Rn,
4533
+ Date: ft,
4534
+ Code: bn,
4535
+ Check: Mn,
4560
4536
  Switch: gn,
4561
4537
  Button: pn,
4562
4538
  Message: xn,
4563
4539
  Generator: vn,
4564
- Captcha: bn,
4565
- Modal: mt,
4566
- Money: gt,
4567
- Month: yn,
4540
+ Captcha: jn,
4541
+ Modal: ht,
4542
+ Money: mt,
4543
+ Month: _n,
4568
4544
  Notes: wn,
4569
- Number: pt,
4545
+ Number: gt,
4570
4546
  Password: kn,
4571
- Phone: xt,
4547
+ Phone: pt,
4572
4548
  Search: Sn,
4573
- Select: vt,
4574
- Set: it,
4549
+ Select: xt,
4550
+ Set: at,
4575
4551
  Textarea: En,
4576
- Time: Tn,
4552
+ Time: Dn,
4577
4553
  Users: jt,
4578
- String: bt,
4579
- Form: it,
4580
- runReload: Yo,
4581
- useData: Zo,
4582
- setValue: Uo,
4583
- Palette: Wo,
4584
- Toogle: Bn,
4585
- Group: Nn,
4586
- Options: In
4587
- }, Ko = "_spinner_1ul0m_1", Go = "_l_1ul0m_75", Ho = "_loadingB_1ul0m_1", $n = {
4588
- spinner: Ko,
4589
- l: Go,
4590
- loadingB: Ho
4554
+ String: vt,
4555
+ Form: at,
4556
+ runReload: Ao,
4557
+ useData: Oo,
4558
+ setValue: Lo,
4559
+ Palette: Po,
4560
+ Toogle: $n,
4561
+ Group: Rn,
4562
+ Options: Tn
4563
+ }, Wo = "_spinner_1ul0m_1", Uo = "_l_1ul0m_75", Nn = {
4564
+ spinner: Wo,
4565
+ l: Uo
4591
4566
  };
4592
- function qo() {
4593
- return /* @__PURE__ */ r.jsx("div", { className: $n.spinner, children: /* @__PURE__ */ r.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ r.jsx(
4567
+ function zo() {
4568
+ return /* @__PURE__ */ r.jsx("div", { className: Nn.spinner, children: /* @__PURE__ */ r.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ r.jsx(
4594
4569
  "path",
4595
4570
  {
4596
4571
  d: "M264,492a22.2,22.2,0,0,0,22-22V411a22.2,22.2,0,0,0-22-22H236a22.2,22.2,0,0,0-22,22v59a22.2,22.2,0,0,0,22,22Zm74-134a23.9,23.9,0,0,0-6,16,20.35,20.35,0,0,0,6,15l42,42q7,7,16,7,10,0,16-7l20-20a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16l-42-42q-7-7-16-7-8,0-15,7ZM163,389a18.94,18.94,0,0,0,7-15q0-9-7-16l-20-20q-7-7-16-7-8,0-15,7L70,380q-7,7-7,16a18.94,18.94,0,0,0,7,15l20,20q7,7,16,7a18.94,18.94,0,0,0,15-7ZM112,237a22.2,22.2,0,0,0-22-22H31a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,9,237v28a21.17,21.17,0,0,0,6.5,15.5A21.17,21.17,0,0,0,31,287H90a22.2,22.2,0,0,0,22-22Zm358,50a22.2,22.2,0,0,0,22-22V237a22.2,22.2,0,0,0-22-22H411a22.2,22.2,0,0,0-22,22v28a22.2,22.2,0,0,0,22,22ZM163,142q7-7,7-15.5T163,111L121,69q-7-7-15-7-7,0-16,7L70,89q-7,7-7,16a18.94,18.94,0,0,0,7,15l42,42a18.94,18.94,0,0,0,15,7q10,0,16-7Zm269-22a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16L412,69q-7-7-16-7-7,0-16,7l-42,42q-7,8-7,16t7,15l21,20a18.94,18.94,0,0,0,15,7q10,0,16-7Zm-168-9a22.06,22.06,0,0,0,15.5-6q6.5-6,6.5-16V30a21.17,21.17,0,0,0-6.5-15.5A21.17,21.17,0,0,0,264,8H236a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,214,30V89q0,10,6.5,16a22.06,22.06,0,0,0,15.5,6Z",
@@ -4598,20 +4573,20 @@ function qo() {
4598
4573
  }
4599
4574
  ) }) });
4600
4575
  }
4601
- function Xo() {
4602
- return /* @__PURE__ */ r.jsxs("div", { className: $n.l, children: [
4576
+ function qo() {
4577
+ return /* @__PURE__ */ r.jsxs("div", { className: Nn.l, children: [
4603
4578
  /* @__PURE__ */ r.jsx("i", {}),
4604
4579
  /* @__PURE__ */ r.jsx("i", {}),
4605
4580
  /* @__PURE__ */ r.jsx("i", {})
4606
4581
  ] });
4607
4582
  }
4608
- const Il = { Spinner: qo, Inline: Xo }, Jo = "_s_t9swc_1", en = {
4609
- s: Jo
4583
+ const Sl = { Spinner: zo, Inline: qo }, Ho = "_s_t9swc_1", en = {
4584
+ s: Ho
4610
4585
  };
4611
- let Ct;
4612
- function Qo({ className: e, placeholder: t }) {
4586
+ let bt;
4587
+ function Ko({ className: e, placeholder: t }) {
4613
4588
  let n = (l) => {
4614
- Ct(l.target.textContent);
4589
+ bt(l.target.textContent);
4615
4590
  }, s = (l) => {
4616
4591
  l.key === "Enter" && l.preventDefault();
4617
4592
  }, a = (l) => {
@@ -4633,7 +4608,7 @@ function Qo({ className: e, placeholder: t }) {
4633
4608
  }
4634
4609
  );
4635
4610
  }
4636
- function Vo(e, t, n) {
4611
+ function Yo(e, t, n) {
4637
4612
  let s = [], a = 1, i = 0, l = {}, c = 50;
4638
4613
  return l[a] = [], e.forEach((d) => {
4639
4614
  d.text.toLowerCase().indexOf(t) > -1 && s.push(d.id);
@@ -4641,17 +4616,17 @@ function Vo(e, t, n) {
4641
4616
  i++, i <= c || (a++, i = 1, l[a] = []), l[a].push(n[d]);
4642
4617
  }), l;
4643
4618
  }
4644
- function el(e) {
4645
- Ct = e;
4619
+ function Zo(e) {
4620
+ bt = e;
4646
4621
  }
4647
- function tl(e) {
4648
- Ct = e;
4622
+ function Jo(e) {
4623
+ bt = e;
4649
4624
  }
4650
- const Dl = { Field: Qo, Run: Vo, Get: el, useValue: tl }, nl = "_f_q3r0i_1", rl = {
4651
- f: nl
4625
+ const El = { Field: Ko, Run: Yo, Get: Zo, useValue: Jo }, Go = "_f_q3r0i_1", Xo = {
4626
+ f: Go
4652
4627
  };
4653
- let J = {};
4654
- function sl(e, t) {
4628
+ let X = {};
4629
+ function Qo(e, t) {
4655
4630
  switch (t.type) {
4656
4631
  case "open":
4657
4632
  return {
@@ -4682,7 +4657,7 @@ function sl(e, t) {
4682
4657
  s = { ...e.take, ...s }, e.active = !1;
4683
4658
  for (let a in s)
4684
4659
  s[a] !== "999" && (e.active = !0);
4685
- return J.get(s, e.active), {
4660
+ return X.get(s, e.active), {
4686
4661
  ...e,
4687
4662
  take: s,
4688
4663
  active: e.active
@@ -4690,7 +4665,7 @@ function sl(e, t) {
4690
4665
  case "exit":
4691
4666
  for (let a in e.take)
4692
4667
  e.take[a] = "999";
4693
- return J.get && J.get([], !1), {
4668
+ return X.get && X.get([], !1), {
4694
4669
  ...e,
4695
4670
  size: 0,
4696
4671
  active: !1,
@@ -4701,8 +4676,8 @@ function sl(e, t) {
4701
4676
  throw new Error();
4702
4677
  }
4703
4678
  }
4704
- function al() {
4705
- const [e, t] = y.useReducer(sl, {
4679
+ function Vo() {
4680
+ const [e, t] = y.useReducer(Qo, {
4706
4681
  open: !1,
4707
4682
  view: null,
4708
4683
  data: {},
@@ -4710,22 +4685,22 @@ function al() {
4710
4685
  size: 0,
4711
4686
  active: !1
4712
4687
  });
4713
- return J.set = (n) => {
4688
+ return X.set = (n) => {
4714
4689
  t({ type: "data", data: n });
4715
- }, J.count = (n) => {
4690
+ }, X.count = (n) => {
4716
4691
  t({ type: "size", size: n });
4717
- }, J.reset = () => {
4692
+ }, X.reset = () => {
4718
4693
  t({ type: "exit" });
4719
4694
  }, /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
4720
4695
  /* @__PURE__ */ r.jsxs(
4721
4696
  "div",
4722
4697
  {
4723
- className: rl.f,
4698
+ className: Xo.f,
4724
4699
  onClick: () => {
4725
4700
  t({ type: "open", open: !0 });
4726
4701
  },
4727
4702
  children: [
4728
- /* @__PURE__ */ r.jsx(io, {}),
4703
+ /* @__PURE__ */ r.jsx(ro, {}),
4729
4704
  e.active && /* @__PURE__ */ r.jsxs("i", { children: [
4730
4705
  e.size,
4731
4706
  "1"
@@ -4745,7 +4720,7 @@ function al() {
4745
4720
  ),
4746
4721
  /* @__PURE__ */ r.jsxs("div", { className: "filter m", children: [
4747
4722
  /* @__PURE__ */ r.jsx("div", { className: "filter l", children: Object.keys(e.data).map((n) => /* @__PURE__ */ r.jsx(
4748
- ul,
4723
+ sl,
4749
4724
  {
4750
4725
  data: n,
4751
4726
  dispatch: t,
@@ -4767,16 +4742,16 @@ function al() {
4767
4742
  ] }) : /* @__PURE__ */ r.jsx(r.Fragment, {})
4768
4743
  ] });
4769
4744
  }
4770
- function il(e) {
4771
- J.get = e;
4745
+ function el(e) {
4746
+ X.get = e;
4772
4747
  }
4773
- function ol(e) {
4774
- J.set !== void 0 && J.set(e);
4748
+ function tl(e) {
4749
+ X.set !== void 0 && X.set(e);
4775
4750
  }
4776
- function ll(e) {
4777
- J.reset !== void 0 && J.reset(e);
4751
+ function nl(e) {
4752
+ X.reset !== void 0 && X.reset(e);
4778
4753
  }
4779
- function cl(e, t, n, s) {
4754
+ function rl(e, t, n, s) {
4780
4755
  let a = [], i = 1, l = 0, c = {}, d = 50;
4781
4756
  return c[i] = [], s === !0 && (Object.keys(t).forEach((u) => {
4782
4757
  Number.parseInt(t[u]) !== 999 && (e = e.filter(
@@ -4789,9 +4764,9 @@ function cl(e, t, n, s) {
4789
4764
  }), c;
4790
4765
  }
4791
4766
  function Fn(e) {
4792
- J.count(e);
4767
+ X.count(e);
4793
4768
  }
4794
- function ul({ data: e, state: t, dispatch: n }) {
4769
+ function sl({ data: e, state: t, dispatch: n }) {
4795
4770
  let s = () => {
4796
4771
  n({ type: "view", view: e });
4797
4772
  }, a = () => {
@@ -4814,7 +4789,7 @@ function ul({ data: e, state: t, dispatch: n }) {
4814
4789
  ) : ""
4815
4790
  ] }),
4816
4791
  /* @__PURE__ */ r.jsx("div", { className: "filter u", "set-active": (t.view === e) + "", children: Object.keys(t.data[e].list).map((i, l) => /* @__PURE__ */ r.jsx(
4817
- dl,
4792
+ al,
4818
4793
  {
4819
4794
  data: t.data[e].list[i],
4820
4795
  head: e,
@@ -4826,9 +4801,8 @@ function ul({ data: e, state: t, dispatch: n }) {
4826
4801
  )) })
4827
4802
  ] });
4828
4803
  }
4829
- function dl({ data: e, head: t, state: n, dispatch: s, type: a }) {
4830
- if (a !== "999" && e.count === void 0)
4831
- return "";
4804
+ function al({ data: e, head: t, state: n, dispatch: s, type: a }) {
4805
+ if (a !== "999" && e.count === void 0) return "";
4832
4806
  const i = () => {
4833
4807
  s({ type: "take", list: t, take: a });
4834
4808
  };
@@ -4845,8 +4819,8 @@ function dl({ data: e, head: t, state: n, dispatch: s, type: a }) {
4845
4819
  }
4846
4820
  );
4847
4821
  }
4848
- const Ml = { Button: al, useValue: il, Set: ol, Run: cl, Count: Fn, Reset: ll }, $l = { Bell: go, Send: fo, Add: uo };
4849
- function Fl({ active: e, onActive: t, id: n, name: s }) {
4822
+ const Dl = { Button: Vo, useValue: el, Set: tl, Run: rl, Count: Fn, Reset: nl }, Ml = { Bell: fo, Send: lo, Add: oo };
4823
+ function $l({ active: e, onActive: t, id: n, name: s }) {
4850
4824
  const [a, i] = y.useState(!!e);
4851
4825
  y.useEffect(() => {
4852
4826
  i(!!e);
@@ -4864,15 +4838,15 @@ function Fl({ active: e, onActive: t, id: n, name: s }) {
4864
4838
  }
4865
4839
  );
4866
4840
  }
4867
- const fl = "_sort_1yrvt_1", hl = {
4868
- sort: fl
4841
+ const il = "_sort_1yrvt_1", ol = {
4842
+ sort: il
4869
4843
  };
4870
- let We = {};
4871
- function ml(e, t) {
4844
+ let Ue = {};
4845
+ function ll(e, t) {
4872
4846
  switch (t.type) {
4873
4847
  case "active":
4874
4848
  let n = "<";
4875
- return e.active === t.data && (n = e.sort === "<" ? ">" : "<"), We.get({ active: t.data, sort: n }, !1), on({ active: t.data, sort: n }), {
4849
+ return e.active === t.data && (n = e.sort === "<" ? ">" : "<"), Ue.get({ active: t.data, sort: n }, !1), on({ active: t.data, sort: n }), {
4876
4850
  ...e,
4877
4851
  active: t.data,
4878
4852
  sort: n
@@ -4881,12 +4855,12 @@ function ml(e, t) {
4881
4855
  throw new Error();
4882
4856
  }
4883
4857
  }
4884
- function gl() {
4858
+ function cl() {
4885
4859
  const [e, t] = y.useReducer(
4886
- ml,
4860
+ ll,
4887
4861
  tt() === void 0 ? { active: 1, sort: "<" } : tt()
4888
4862
  );
4889
- return /* @__PURE__ */ r.jsxs("div", { className: hl.sort, children: [
4863
+ return /* @__PURE__ */ r.jsxs("div", { className: ol.sort, children: [
4890
4864
  /* @__PURE__ */ r.jsx(
4891
4865
  "i",
4892
4866
  {
@@ -4913,13 +4887,13 @@ function gl() {
4913
4887
  )
4914
4888
  ] });
4915
4889
  }
4916
- function pl(e) {
4917
- We.get = e;
4890
+ function ul(e) {
4891
+ Ue.get = e;
4918
4892
  }
4919
- function xl(e) {
4920
- We.set(e);
4893
+ function dl(e) {
4894
+ Ue.set(e);
4921
4895
  }
4922
- function vl(e, t, n) {
4896
+ function fl(e, t, n) {
4923
4897
  let s = 1, a = 0, i = {}, l = 50;
4924
4898
  i[s] = [];
4925
4899
  let c = {}, d = "s1a";
@@ -4938,38 +4912,38 @@ function vl(e, t, n) {
4938
4912
  a++, a <= l || (s++, a = 1, i[s] = []), i[s].push(e[u.id]);
4939
4913
  }), { data: i };
4940
4914
  }
4941
- function bl(e) {
4942
- We.count(e);
4915
+ function hl(e) {
4916
+ Ue.count(e);
4943
4917
  }
4944
- const Pl = { Init: gl, useValue: pl, Set: xl, Run: vl, Count: bl };
4918
+ const Rl = { Init: cl, useValue: ul, Set: dl, Run: fl, Count: hl };
4945
4919
  export {
4946
- Ei as Action,
4947
- Sl as Alert,
4948
- _l as Api,
4949
- Ps as Button,
4950
- kl as Component,
4951
- Tl as DataBase,
4952
- ft as Events,
4953
- Ml as Filter,
4954
- Nl as Form,
4920
+ ki as Action,
4921
+ bl as Alert,
4922
+ pl as Api,
4923
+ Ns as Button,
4924
+ jl as Component,
4925
+ yl as DataBase,
4926
+ dt as Events,
4927
+ Dl as Filter,
4928
+ kl as Form,
4955
4929
  ie as Format,
4956
- El as Icon,
4957
- yl as Init,
4958
- ui as Input,
4959
- Il as Loading,
4960
- _n as Modal,
4961
- at as Notice,
4962
- $l as Notifications,
4930
+ Cl as Icon,
4931
+ xl as Init,
4932
+ li as Input,
4933
+ Sl as Loading,
4934
+ yn as Modal,
4935
+ st as Notice,
4936
+ Ml as Notifications,
4963
4937
  ce as Router,
4964
- Bl as Scrolling,
4965
- Dl as Search,
4966
- wl as Setting,
4967
- dt as Sistym,
4968
- ot as Socket,
4938
+ wl as Scrolling,
4939
+ El as Search,
4940
+ vl as Setting,
4941
+ ut as Sistym,
4942
+ it as Socket,
4969
4943
  oe as Store,
4970
- Fl as Switch,
4971
- vi as Tabs,
4972
- T as Telegram,
4973
- Pl as Triage,
4974
- Rl as User
4944
+ $l as Switch,
4945
+ pi as Tabs,
4946
+ D as Telegram,
4947
+ Rl as Triage,
4948
+ _l as User
4975
4949
  };