@elcrm/telegram 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,154 +1,167 @@
1
- import './index.css';var ca = Object.defineProperty;
2
- var _a = (e, t, a) => t in e ? ca(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
- var it = (e, t, a) => (_a(e, typeof t != "symbol" ? t + "" : t, a), a);
1
+ import './index.css';var _a = Object.defineProperty;
2
+ var da = (e, t, a) => t in e ? _a(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
+ var st = (e, t, a) => (da(e, typeof t != "symbol" ? t + "" : t, a), a);
4
4
  import k from "react";
5
5
  let pt = {};
6
- const da = (e) => {
6
+ const ua = (e) => {
7
7
  pt = e;
8
- }, ua = (e) => pt.enCode(e), fa = (e) => pt.deCode(e), P = { enCode: ua, deCode: fa, New: da }, R = {}, Z = {}, ve = {}, tn = {}, se = {};
9
- let ma = "M06";
10
- function ha() {
11
- return ma;
8
+ }, fa = (e) => pt.enCode(e), ma = (e) => pt.deCode(e), F = { enCode: fa, deCode: ma, New: ua }, C = {}, Z = {}, be = {}, nn = {}, se = {};
9
+ let vt = "M06";
10
+ function ha(e) {
11
+ vt = e;
12
12
  }
13
- function re() {
13
+ function xa() {
14
+ return vt;
15
+ }
16
+ function ga(e) {
17
+ if (localStorage.getItem("d")) {
18
+ let a = sessionStorage.getItem("f");
19
+ a ? (a = F.deCode(a), a || te(), C.id = a.id, C.tab = a.tab, C.page = a.page, C.module = a.module, C.time = a.time, C.payment = { active: !0 }, C.module_admin = a.module_admin) : (C.id = 0, C.tab = "", C.page = "Main", C.module = C.module || vt);
20
+ } else
21
+ ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
22
+ (a) => localStorage.removeItem(a)
23
+ ), ["f"].forEach((a) => sessionStorage.removeItem(a)), C.id = 0, C.tab = "", C.page = "Auth", C.module = "M00";
24
+ return e;
25
+ }
26
+ function te() {
14
27
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
15
28
  (e) => localStorage.removeItem(e)
16
29
  ), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
17
30
  }
18
- function xa(e) {
19
- e = e.split("/"), R.page = "Main", R.module = e[0], R.tab = e[1], R.id = 0, sessionStorage.setItem(
31
+ function pa(e) {
32
+ e = e.split("/"), C.page = "Main", C.module = e[0], C.tab = e[1], C.id = 0, sessionStorage.setItem(
20
33
  "f",
21
- P.enCode({
22
- module: R.module,
23
- page: R.page,
24
- tab: R.tab,
25
- id: R.id,
34
+ F.enCode({
35
+ module: C.module,
36
+ page: C.page,
37
+ tab: C.tab,
38
+ id: C.id,
26
39
  time: (/* @__PURE__ */ new Date()).getTime()
27
40
  })
28
- ), Z.page(R.page);
41
+ ), Z.page(C.page);
29
42
  }
30
- function ga(e) {
43
+ function va(e) {
31
44
  return localStorage.setItem("d", e);
32
45
  }
33
- function pa() {
46
+ function ka() {
34
47
  let e = localStorage.getItem("d");
35
48
  return e !== "" && e !== "undefined" && e !== null ? e : "";
36
49
  }
37
- function va(e) {
50
+ function ba(e) {
38
51
  return localStorage.setItem("a", e);
39
52
  }
40
- function ka() {
53
+ function ya() {
41
54
  let e = localStorage.getItem("a");
42
55
  return e !== "" && e !== "undefined" && e !== null ? e : "";
43
56
  }
44
- function ba(e) {
45
- localStorage.setItem("p", P.enCode(e));
57
+ function Ca(e) {
58
+ localStorage.setItem("p", F.enCode(e));
46
59
  }
47
- function lt() {
60
+ function ct() {
48
61
  let e = localStorage.getItem("p");
49
62
  if (e !== "" && e !== "undefined" && e !== null) {
50
- let t = P.deCode(e);
51
- return t || re(), t;
63
+ let t = F.deCode(e);
64
+ return t || te(), t;
52
65
  } else
53
- return re(), !1;
66
+ return te(), !1;
54
67
  }
55
- function ya() {
56
- const [e, t] = k.useState(nn()), a = (r) => {
68
+ function ja() {
69
+ const [e, t] = k.useState(an()), a = (r) => {
57
70
  t(r);
58
71
  };
59
72
  return Z.page = a, [e];
60
73
  }
61
- function Ca(e, t = !0) {
62
- R.page = e, sessionStorage.setItem("f", P.enCode(R)), t && Z.page(e);
74
+ function wa(e, t = !0) {
75
+ C.page = e, sessionStorage.setItem("f", F.enCode(C)), t && Z.page(e);
63
76
  }
64
- function nn() {
65
- return R.page;
77
+ function an() {
78
+ return C.page;
66
79
  }
67
- function ja(e) {
68
- return R.page === e;
80
+ function Sa(e) {
81
+ return C.page === e;
69
82
  }
70
- function wa(e) {
83
+ function Ea(e) {
71
84
  if (typeof e != "function") {
72
- const [t, a] = k.useState(e || an()), r = (i) => {
85
+ const [t, a] = k.useState(e || rn()), r = (i) => {
73
86
  a(i);
74
87
  };
75
88
  return Z.module = r, [t];
76
89
  } else
77
90
  Z.module = e;
78
91
  }
79
- function Sa(e, t = !0) {
80
- R.module = e, sessionStorage.setItem("f", P.enCode(R)), t && Z.module(e);
92
+ function Ta(e, t = !0) {
93
+ C.module = e, sessionStorage.setItem("f", F.enCode(C)), t && Z.module(e);
81
94
  }
82
- function an() {
83
- return R.module;
95
+ function rn() {
96
+ return C.module;
84
97
  }
85
- function Ea(e) {
86
- return R.module === e;
98
+ function Ra(e) {
99
+ return C.module === e;
87
100
  }
88
- function Ta(e) {
101
+ function Ba(e) {
89
102
  if (typeof e != "function") {
90
- const [t, a] = k.useState(e || Ze()), [r, i] = k.useState(!1);
103
+ const [t, a] = k.useState(e || Ve()), [r, i] = k.useState(!1);
91
104
  return k.useEffect(() => {
92
105
  i(!0);
93
106
  }, []), Z.tabs = a, [t, r];
94
107
  } else
95
108
  Z.tabs = e;
96
109
  }
97
- function Ra(e, t = !0) {
98
- if (R.tab = e, sessionStorage.setItem("f", P.enCode(R)), !!t)
110
+ function Ia(e, t = !0) {
111
+ if (C.tab = e, sessionStorage.setItem("f", F.enCode(C)), !!t)
99
112
  if (Z.tabs)
100
113
  Z.tabs(e);
101
114
  else
102
115
  throw new Error("useTabs not found");
103
116
  }
104
- function Ze() {
105
- return R.tab;
106
- }
107
- function Ba(e) {
108
- return R.tab === e;
117
+ function Ve() {
118
+ return C.tab;
109
119
  }
110
120
  function Na(e) {
121
+ return C.tab === e;
122
+ }
123
+ function Da(e) {
111
124
  if (typeof e != "function") {
112
- const [t, a] = k.useState(e || rn()), r = (i) => {
125
+ const [t, a] = k.useState(e || sn()), r = (i) => {
113
126
  a(i);
114
127
  };
115
128
  return Z.id = r, [t];
116
129
  } else
117
130
  Z.id = e;
118
131
  }
119
- function Da(e) {
132
+ function Ma(e) {
120
133
  Z.id = e;
121
134
  }
122
- function Ia(e, t = !0) {
123
- R.id = e, sessionStorage.setItem("f", P.enCode(R)), t && Z.id(e);
135
+ function Fa(e, t = !0) {
136
+ C.id = e, sessionStorage.setItem("f", F.enCode(C)), t && Z.id(e);
124
137
  }
125
- function rn() {
126
- return R.id;
138
+ function sn() {
139
+ return C.id;
127
140
  }
128
- function Ma(e) {
129
- return Number(R.id) === e;
141
+ function Pa(e) {
142
+ return Number(C.id) === e;
130
143
  }
131
- function Fa(e, t, a) {
132
- R.module = e, R.id = a, R.tab = t, sessionStorage.setItem("f", P.enCode(R)), Z.module(e), Z.tabs(t);
144
+ function $a(e, t, a) {
145
+ C.module = e, C.id = a, C.tab = t, sessionStorage.setItem("f", F.enCode(C)), Z.module(e), Z.tabs(t);
133
146
  }
134
- function Pa(e) {
135
- ve.data = e[0], delete ve.data.id, document.body.dataset.theme = ve.data.s15, localStorage.setItem("s", P.enCode(ve.data));
147
+ function La(e) {
148
+ be.data = e[0], delete be.data.id, document.body.dataset.theme = be.data.s15, localStorage.setItem("s", F.enCode(be.data));
136
149
  }
137
- function La(e, t) {
138
- ve.data[e] = t, localStorage.setItem("s", P.enCode(ve.data));
150
+ function Oa(e, t) {
151
+ be.data[e] = t, localStorage.setItem("s", F.enCode(be.data));
139
152
  }
140
- function $a(e) {
153
+ function Aa(e) {
141
154
  let t = localStorage.getItem("s");
142
- return t === null ? {} : (t = P.deCode(t), t ? e !== void 0 ? t[e] : t : re());
155
+ return t === null ? {} : (t = F.deCode(t), t ? e !== void 0 ? t[e] : t : te());
143
156
  }
144
- function sn(e) {
145
- localStorage.setItem("m", P.enCode({ data: e }));
157
+ function on(e) {
158
+ localStorage.setItem("m", F.enCode({ data: e }));
146
159
  }
147
- function Oa() {
160
+ function Wa() {
148
161
  let e = localStorage.getItem("m");
149
162
  if (e !== "" && e !== "undefined" && e !== null) {
150
- let t = localStorage.getItem("m"), a = P.deCode(t);
151
- a || re();
163
+ let t = localStorage.getItem("m"), a = F.deCode(t);
164
+ a || te();
152
165
  const r = (s, l) => {
153
166
  let c = l + "";
154
167
  for (; c.length < s; )
@@ -157,128 +170,128 @@ function Oa() {
157
170
  };
158
171
  return a.data.split(",").map((s) => "M" + r(2, s));
159
172
  } else
160
- return re(), !1;
173
+ return te(), !1;
161
174
  }
162
- function Aa(e) {
175
+ function Ga(e) {
163
176
  Z.sort = e;
164
177
  }
165
- function on(e) {
178
+ function ln(e) {
166
179
  let t = localStorage.getItem("b");
167
- t = t === null ? {} : P.deCode(t), t[Ze()] = e, localStorage.setItem("b", P.enCode(t));
180
+ t = t === null ? {} : F.deCode(t), t[Ve()] = e, localStorage.setItem("b", F.enCode(t));
168
181
  }
169
- function ct() {
182
+ function _t() {
170
183
  let e = localStorage.getItem("b");
171
- return e === null ? {} : (e = P.deCode(e), e = e[Ze()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
184
+ return e === null ? {} : (e = F.deCode(e), e = e[Ve()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
172
185
  }
173
- function ln(e) {
174
- localStorage.setItem("c", P.enCode(e));
186
+ function cn(e) {
187
+ localStorage.setItem("c", F.enCode(e));
175
188
  }
176
- function Wa(e, t) {
189
+ function za(e, t) {
177
190
  var r;
178
191
  let a = localStorage.getItem("c");
179
192
  if (a !== "" && a !== "undefined" && a !== null) {
180
- let i = P.deCode(a);
181
- return i || re(), e === void 0 ? i : t ? (r = i[e][t]) == null ? void 0 : r.n : i[e];
193
+ let i = F.deCode(a);
194
+ return i || te(), e === void 0 ? i : t ? (r = i[e][t]) == null ? void 0 : r.n : i[e];
182
195
  } else
183
- return re(), !1;
196
+ return te(), !1;
184
197
  }
185
- function Ie(e) {
186
- se.data = e, localStorage.setItem("q", P.enCode(se.data));
198
+ function Pe(e) {
199
+ se.data = e, localStorage.setItem("q", F.enCode(se.data));
187
200
  }
188
- function Ga(e, t) {
189
- se.data = { ...se.data, [e]: t }, localStorage.setItem("q", P.enCode(se.data));
201
+ function Ka(e, t) {
202
+ se.data = { ...se.data, [e]: t }, localStorage.setItem("q", F.enCode(se.data));
190
203
  }
191
- function xe(e, t) {
204
+ function pe(e, t) {
192
205
  if (!se.data) {
193
206
  let a = localStorage.getItem("q");
194
- a && (se.data = P.deCode(a));
207
+ a && (se.data = F.deCode(a));
195
208
  }
196
209
  return e === void 0 && t === void 0 ? se.data : e !== void 0 && t === void 0 ? se.data[e] : se.data[e][t];
197
210
  }
198
- function za(e) {
199
- tn.data = e;
211
+ function Za(e) {
212
+ nn.data = e;
200
213
  }
201
- function Ka(e) {
202
- return tn.data[e];
214
+ function Ua(e) {
215
+ return nn.data[e];
203
216
  }
204
- function Za(e) {
205
- R.payment = e;
217
+ function Va(e) {
218
+ C.payment = e;
206
219
  }
207
- function Ua() {
208
- return R.payment;
220
+ function Ya() {
221
+ return C.payment;
209
222
  }
210
- function cn(e) {
211
- localStorage.setItem("u", P.enCode(e));
223
+ function _n(e) {
224
+ localStorage.setItem("u", F.enCode(e));
212
225
  }
213
- function Va() {
226
+ function Ha() {
214
227
  let e = localStorage.getItem("u");
215
228
  if (e !== "" && e !== "undefined" && e !== null) {
216
- let t = P.deCode(e);
217
- return t || re(), t;
229
+ let t = F.deCode(e);
230
+ return t || te(), t;
218
231
  } else
219
- return re(), !1;
232
+ return te(), !1;
220
233
  }
221
- function Ya(e) {
234
+ function qa(e) {
222
235
  const t = (a) => {
223
236
  let r = localStorage.getItem(a);
224
237
  if (r !== "" && r !== "undefined" && r !== null)
225
238
  try {
226
- let i = P.deCode(r);
239
+ let i = F.deCode(r);
227
240
  if (!i)
228
241
  return;
229
- R[a] = { is: !0, time: i.time, data: i.data };
242
+ C[a] = { is: !0, time: i.time, data: i.data };
230
243
  } catch {
231
- R[a] = { is: !1, time: 0, data: {} };
244
+ C[a] = { is: !1, time: 0, data: {} };
232
245
  }
233
246
  else
234
- R[a] = { is: !1, time: 0, data: {} };
247
+ C[a] = { is: !1, time: 0, data: {} };
235
248
  };
236
249
  e.forEach((a) => t(a));
237
250
  }
238
- function Ha(e) {
239
- return R[e] === void 0 ? (R[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : R[e];
251
+ function Ja(e) {
252
+ return C[e] === void 0 ? (C[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : C[e];
240
253
  }
241
- function qa(e, t) {
242
- R[e] = { data: t.data, time: t.time }, localStorage.setItem(e, P.enCode(R[e]));
254
+ function Xa(e, t) {
255
+ C[e] = { data: t.data, time: t.time }, localStorage.setItem(e, F.enCode(C[e]));
243
256
  }
244
- function Ja(e, t, a) {
245
- R[e].time = a, R[e].data[t.item][t.name] = t.value, localStorage.setItem(e, P.enCode(R[e]));
257
+ function Qa(e, t, a) {
258
+ C[e].time = a, C[e].data[t.item][t.name] = t.value, localStorage.setItem(e, F.enCode(C[e]));
246
259
  }
247
260
  const ce = {
248
- setSSID: ga,
249
- getSSID: pa,
250
- getPORT: lt,
251
- setPORT: ba,
252
- setAUTH: va,
253
- getAUTH: ka,
254
- Logaut: re,
255
- Start: xa,
256
- setMenu: sn,
257
- getMenu: Oa,
258
- useSort: Aa,
259
- setSort: on,
260
- getSort: ct,
261
- setCompany: ln,
262
- getCompany: Wa,
263
- setSelect: Ie,
264
- addSelect: Ga,
265
- getSelect: xe,
266
- setApi: za,
267
- getApi: Ka,
268
- setPayment: Za,
269
- getPayment: Ua,
270
- setUser: cn,
271
- getUser: Va,
272
- getDefaultModules: ha,
273
- getBase: Ha,
274
- setBase: qa,
275
- editBase: Ja,
276
- loadBase: Ya
277
- }, _n = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK", Xa = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), Zt = typeof window < "u" && window.Blob && new Blob([Xa(_n)], { type: "text/javascript;charset=utf-8" });
278
- function dn(e) {
261
+ setSSID: va,
262
+ getSSID: ka,
263
+ getPORT: ct,
264
+ setPORT: Ca,
265
+ setAUTH: ba,
266
+ getAUTH: ya,
267
+ Logaut: te,
268
+ Start: pa,
269
+ setMenu: on,
270
+ getMenu: Wa,
271
+ useSort: Ga,
272
+ setSort: ln,
273
+ getSort: _t,
274
+ setCompany: cn,
275
+ getCompany: za,
276
+ setSelect: Pe,
277
+ addSelect: Ka,
278
+ getSelect: pe,
279
+ setApi: Za,
280
+ getApi: Ua,
281
+ setPayment: Va,
282
+ getPayment: Ya,
283
+ setUser: _n,
284
+ getUser: Ha,
285
+ getDefaultModules: xa,
286
+ getBase: Ja,
287
+ setBase: Xa,
288
+ editBase: Qa,
289
+ loadBase: qa
290
+ }, dn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK", er = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), Ut = typeof window < "u" && window.Blob && new Blob([er(dn)], { type: "text/javascript;charset=utf-8" });
291
+ function un(e) {
279
292
  let t;
280
293
  try {
281
- if (t = Zt && (window.URL || window.webkitURL).createObjectURL(Zt), !t)
294
+ if (t = Ut && (window.URL || window.webkitURL).createObjectURL(Ut), !t)
282
295
  throw "";
283
296
  const a = new Worker(t, {
284
297
  name: e == null ? void 0 : e.name
@@ -288,7 +301,7 @@ function dn(e) {
288
301
  }), a;
289
302
  } catch {
290
303
  return new Worker(
291
- "data:text/javascript;base64," + _n,
304
+ "data:text/javascript;base64," + dn,
292
305
  {
293
306
  name: e == null ? void 0 : e.name
294
307
  }
@@ -298,94 +311,94 @@ function dn(e) {
298
311
  }
299
312
  }
300
313
  const de = {};
301
- function Qa(e) {
314
+ function tr(e) {
302
315
  return e && (de.s = e), de.s;
303
316
  }
304
- function er(e) {
317
+ function nr(e) {
305
318
  return e && (de.a = e), de.a;
306
319
  }
307
- function tr(e) {
320
+ function ar(e) {
308
321
  return e && (de.c = e), de.c;
309
322
  }
310
- function nr(e) {
323
+ function rr(e) {
311
324
  return e && (de.h = e), de.h;
312
325
  }
313
- const vt = { version: { Api: er, Server: Qa, Client: tr }, Host: nr };
314
- let ar = "api", rr = "elcrm", ir = "online";
315
- function sr() {
326
+ const kt = { version: { Api: nr, Server: tr, Client: ar }, Host: rr };
327
+ let ir = "api", sr = "elcrm", or = "online";
328
+ function lr() {
316
329
  let e = ce.getPORT(), t = "", a = "";
317
330
  return e.address === "localhost" ? (t = `http://localhost:${e.socket}/documents`, a = `http://localhost:${e.socket}/files`) : (t = "https://" + e.address + "/documents", a = "https://" + e.address + "/files"), {
318
331
  documents: t,
319
332
  files: a
320
333
  };
321
334
  }
322
- let un = `${ar}.${rr}.${ir}`;
323
- function or(e) {
335
+ let fn = `${ir}.${sr}.${or}`;
336
+ function cr(e) {
324
337
  return "https://" + ce.getPORT().address + "/audio/" + e;
325
338
  }
326
- function Ue(e, t = {}, a = ce.getAUTH()) {
339
+ function Ye(e, t = {}, a = ce.getAUTH()) {
327
340
  return new Promise((r) => {
328
- const i = new dn();
341
+ const i = new un();
329
342
  i.onmessage = (s) => {
330
343
  r(s.data), i.terminate();
331
344
  }, i.postMessage({
332
345
  link: e,
333
346
  data: t,
334
347
  ssid: a,
335
- host: vt.Host() || `https://${un}/`
348
+ host: kt.Host() || `https://${fn}/`
336
349
  });
337
350
  });
338
351
  }
339
- function lr(e, t = {}, a = ce.getAUTH()) {
352
+ function _r(e, t = {}, a = ce.getAUTH()) {
340
353
  return new Promise((r) => {
341
- const i = new dn();
354
+ const i = new un();
342
355
  i.onmessage = (s) => {
343
356
  r(s.data), i.terminate();
344
357
  }, i.postMessage({
345
358
  link: e,
346
359
  data: t,
347
360
  ssid: a,
348
- host: vt.Host() + "modules/" || `https://${un}/modules`
361
+ host: kt.Host() + "modules/" || `https://${fn}/modules`
349
362
  });
350
363
  });
351
364
  }
352
- function cr(e, t = {}, a) {
365
+ function dr(e, t = {}, a) {
353
366
  const [r, i] = k.useState({ status: "load" }), s = async (l) => {
354
- let c = await Ue(e, l, a);
367
+ let c = await Ye(e, l, a);
355
368
  i(c);
356
369
  };
357
370
  return k.useEffect(() => {
358
371
  s(t);
359
372
  }, []), [r, s];
360
373
  }
361
- let fn = {
374
+ let mn = {
362
375
  "Content-type": "application/json;charset=utf-8",
363
376
  ssid: ce.getAUTH() || ""
364
377
  };
365
- async function _r(e, t, a = {}) {
378
+ async function ur(e, t, a = {}) {
366
379
  try {
367
- return await (await Ue("https://" + e + "/" + t, {
380
+ return await (await Ye("https://" + e + "/" + t, {
368
381
  method: "POST",
369
- headers: fn,
382
+ headers: mn,
370
383
  body: JSON.stringify(a)
371
384
  })).json();
372
385
  } catch {
373
386
  return { status: "error" };
374
387
  }
375
388
  }
376
- async function dr(e, t = {}) {
389
+ async function fr(e, t = {}) {
377
390
  try {
378
- return await (await Ue("https://tb.elcrm.online/v1/" + e, {
391
+ return await (await Ye("https://tb.elcrm.online/v1/" + e, {
379
392
  method: "POST",
380
- headers: fn,
393
+ headers: mn,
381
394
  body: JSON.stringify(t)
382
395
  })).json();
383
396
  } catch {
384
397
  return { status: "error" };
385
398
  }
386
399
  }
387
- const Qo = { audio: or, fetch: Ue, modules: lr, remoute: _r, url: sr, telegram: dr, use: cr };
388
- var _t = { exports: {} }, Re = {};
400
+ const dl = { audio: cr, fetch: Ye, modules: _r, remoute: ur, url: lr, telegram: fr, use: dr };
401
+ var dt = { exports: {} }, Ie = {};
389
402
  /**
390
403
  * @license React
391
404
  * react-jsx-runtime.production.min.js
@@ -395,11 +408,11 @@ var _t = { exports: {} }, Re = {};
395
408
  * This source code is licensed under the MIT license found in the
396
409
  * LICENSE file in the root directory of this source tree.
397
410
  */
398
- var Ut;
399
- function ur() {
400
- if (Ut)
401
- return Re;
402
- Ut = 1;
411
+ var Vt;
412
+ function mr() {
413
+ if (Vt)
414
+ return Ie;
415
+ Vt = 1;
403
416
  var e = k, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
404
417
  function l(c, d, _) {
405
418
  var u, f = {}, m = null, h = null;
@@ -411,9 +424,9 @@ function ur() {
411
424
  f[u] === void 0 && (f[u] = d[u]);
412
425
  return { $$typeof: t, type: c, key: m, ref: h, props: f, _owner: i.current };
413
426
  }
414
- return Re.Fragment = a, Re.jsx = l, Re.jsxs = l, Re;
427
+ return Ie.Fragment = a, Ie.jsx = l, Ie.jsxs = l, Ie;
415
428
  }
416
- var Be = {};
429
+ var Ne = {};
417
430
  /**
418
431
  * @license React
419
432
  * react-jsx-runtime.development.js
@@ -423,9 +436,9 @@ var Be = {};
423
436
  * This source code is licensed under the MIT license found in the
424
437
  * LICENSE file in the root directory of this source tree.
425
438
  */
426
- var Vt;
427
- function fr() {
428
- return Vt || (Vt = 1, process.env.NODE_ENV !== "production" && function() {
439
+ var Yt;
440
+ function hr() {
441
+ return Yt || (Yt = 1, process.env.NODE_ENV !== "production" && function() {
429
442
  var e = k, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), g = Symbol.iterator, v = "@@iterator";
430
443
  function p(o) {
431
444
  if (o === null || typeof o != "object")
@@ -434,46 +447,46 @@ function fr() {
434
447
  return typeof x == "function" ? x : null;
435
448
  }
436
449
  var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
437
- function j(o) {
450
+ function w(o) {
438
451
  {
439
- for (var x = arguments.length, b = new Array(x > 1 ? x - 1 : 0), T = 1; T < x; T++)
440
- b[T - 1] = arguments[T];
452
+ for (var x = arguments.length, b = new Array(x > 1 ? x - 1 : 0), R = 1; R < x; R++)
453
+ b[R - 1] = arguments[R];
441
454
  B("error", o, b);
442
455
  }
443
456
  }
444
457
  function B(o, x, b) {
445
458
  {
446
- var T = y.ReactDebugCurrentFrame, L = T.getStackAddendum();
447
- L !== "" && (x += "%s", b = b.concat([L]));
448
- var $ = b.map(function(M) {
459
+ var R = y.ReactDebugCurrentFrame, $ = R.getStackAddendum();
460
+ $ !== "" && (x += "%s", b = b.concat([$]));
461
+ var L = b.map(function(M) {
449
462
  return String(M);
450
463
  });
451
- $.unshift("Warning: " + x), Function.prototype.apply.call(console[o], console, $);
464
+ L.unshift("Warning: " + x), Function.prototype.apply.call(console[o], console, L);
452
465
  }
453
466
  }
454
- var N = !1, C = !1, S = !1, w = !1, E = !1, O;
467
+ var I = !1, j = !1, E = !1, S = !1, T = !1, O;
455
468
  O = Symbol.for("react.module.reference");
456
469
  function q(o) {
457
- return !!(typeof o == "string" || typeof o == "function" || o === r || o === s || E || o === i || o === _ || o === u || w || o === h || N || C || S || typeof o == "object" && o !== null && (o.$$typeof === m || o.$$typeof === f || o.$$typeof === l || o.$$typeof === c || o.$$typeof === d || // This needs to include all possible module reference object
470
+ return !!(typeof o == "string" || typeof o == "function" || o === r || o === s || T || o === i || o === _ || o === u || S || o === h || I || j || E || typeof o == "object" && o !== null && (o.$$typeof === m || o.$$typeof === f || o.$$typeof === l || o.$$typeof === c || o.$$typeof === d || // This needs to include all possible module reference object
458
471
  // types supported by any Flight configuration anywhere since
459
472
  // we don't know which Flight build this will end up being used
460
473
  // with.
461
474
  o.$$typeof === O || o.getModuleId !== void 0));
462
475
  }
463
476
  function ie(o, x, b) {
464
- var T = o.displayName;
465
- if (T)
466
- return T;
467
- var L = x.displayName || x.name || "";
468
- return L !== "" ? b + "(" + L + ")" : b;
477
+ var R = o.displayName;
478
+ if (R)
479
+ return R;
480
+ var $ = x.displayName || x.name || "";
481
+ return $ !== "" ? b + "(" + $ + ")" : b;
469
482
  }
470
483
  function A(o) {
471
484
  return o.displayName || "Context";
472
485
  }
473
- function F(o) {
486
+ function P(o) {
474
487
  if (o == null)
475
488
  return null;
476
- 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")
489
+ if (typeof o.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
477
490
  return o.displayName || o.name || null;
478
491
  if (typeof o == "string")
479
492
  return o;
@@ -502,12 +515,12 @@ function fr() {
502
515
  case d:
503
516
  return ie(o, o.render, "ForwardRef");
504
517
  case f:
505
- var T = o.displayName || null;
506
- return T !== null ? T : F(o.type) || "Memo";
518
+ var R = o.displayName || null;
519
+ return R !== null ? R : P(o.type) || "Memo";
507
520
  case m: {
508
- var L = o, $ = L._payload, M = L._init;
521
+ var $ = o, L = $._payload, M = $._init;
509
522
  try {
510
- return F(M($));
523
+ return P(M(L));
511
524
  } catch {
512
525
  return null;
513
526
  }
@@ -515,18 +528,18 @@ function fr() {
515
528
  }
516
529
  return null;
517
530
  }
518
- var V = Object.assign, Y = 0, Le, te, Se, He, $e, Tt, Rt;
519
- function Bt() {
531
+ var V = Object.assign, Y = 0, Oe, ne, Te, qe, Ae, Rt, Bt;
532
+ function It() {
520
533
  }
521
- Bt.__reactDisabledLog = !0;
522
- function Pn() {
534
+ It.__reactDisabledLog = !0;
535
+ function $n() {
523
536
  {
524
537
  if (Y === 0) {
525
- Le = console.log, te = console.info, Se = console.warn, He = console.error, $e = console.group, Tt = console.groupCollapsed, Rt = console.groupEnd;
538
+ Oe = console.log, ne = console.info, Te = console.warn, qe = console.error, Ae = console.group, Rt = console.groupCollapsed, Bt = console.groupEnd;
526
539
  var o = {
527
540
  configurable: !0,
528
541
  enumerable: !0,
529
- value: Bt,
542
+ value: It,
530
543
  writable: !0
531
544
  };
532
545
  Object.defineProperties(console, {
@@ -552,64 +565,64 @@ function fr() {
552
565
  };
553
566
  Object.defineProperties(console, {
554
567
  log: V({}, o, {
555
- value: Le
568
+ value: Oe
556
569
  }),
557
570
  info: V({}, o, {
558
- value: te
571
+ value: ne
559
572
  }),
560
573
  warn: V({}, o, {
561
- value: Se
574
+ value: Te
562
575
  }),
563
576
  error: V({}, o, {
564
- value: He
577
+ value: qe
565
578
  }),
566
579
  group: V({}, o, {
567
- value: $e
580
+ value: Ae
568
581
  }),
569
582
  groupCollapsed: V({}, o, {
570
- value: Tt
583
+ value: Rt
571
584
  }),
572
585
  groupEnd: V({}, o, {
573
- value: Rt
586
+ value: Bt
574
587
  })
575
588
  });
576
589
  }
577
- Y < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
590
+ Y < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
578
591
  }
579
592
  }
580
- var qe = y.ReactCurrentDispatcher, Je;
581
- function Oe(o, x, b) {
593
+ var Je = y.ReactCurrentDispatcher, Xe;
594
+ function We(o, x, b) {
582
595
  {
583
- if (Je === void 0)
596
+ if (Xe === void 0)
584
597
  try {
585
598
  throw Error();
586
- } catch (L) {
587
- var T = L.stack.trim().match(/\n( *(at )?)/);
588
- Je = T && T[1] || "";
599
+ } catch ($) {
600
+ var R = $.stack.trim().match(/\n( *(at )?)/);
601
+ Xe = R && R[1] || "";
589
602
  }
590
603
  return `
591
- ` + Je + o;
604
+ ` + Xe + o;
592
605
  }
593
606
  }
594
- var Xe = !1, Ae;
607
+ var Qe = !1, Ge;
595
608
  {
596
- var $n = typeof WeakMap == "function" ? WeakMap : Map;
597
- Ae = new $n();
609
+ var On = typeof WeakMap == "function" ? WeakMap : Map;
610
+ Ge = new On();
598
611
  }
599
612
  function Nt(o, x) {
600
- if (!o || Xe)
613
+ if (!o || Qe)
601
614
  return "";
602
615
  {
603
- var b = Ae.get(o);
616
+ var b = Ge.get(o);
604
617
  if (b !== void 0)
605
618
  return b;
606
619
  }
607
- var T;
608
- Xe = !0;
609
- var L = Error.prepareStackTrace;
620
+ var R;
621
+ Qe = !0;
622
+ var $ = Error.prepareStackTrace;
610
623
  Error.prepareStackTrace = void 0;
611
- var $;
612
- $ = qe.current, qe.current = null, Pn();
624
+ var L;
625
+ L = Je.current, Je.current = null, $n();
613
626
  try {
614
627
  if (x) {
615
628
  var M = function() {
@@ -623,14 +636,14 @@ function fr() {
623
636
  try {
624
637
  Reflect.construct(M, []);
625
638
  } catch (J) {
626
- T = J;
639
+ R = J;
627
640
  }
628
641
  Reflect.construct(o, [], M);
629
642
  } else {
630
643
  try {
631
644
  M.call();
632
645
  } catch (J) {
633
- T = J;
646
+ R = J;
634
647
  }
635
648
  o.call(M.prototype);
636
649
  }
@@ -638,155 +651,155 @@ function fr() {
638
651
  try {
639
652
  throw Error();
640
653
  } catch (J) {
641
- T = J;
654
+ R = J;
642
655
  }
643
656
  o();
644
657
  }
645
658
  } catch (J) {
646
- if (J && T && typeof J.stack == "string") {
647
- for (var I = J.stack.split(`
648
- `), H = T.stack.split(`
649
- `), W = I.length - 1, z = H.length - 1; W >= 1 && z >= 0 && I[W] !== H[z]; )
659
+ if (J && R && typeof J.stack == "string") {
660
+ for (var D = J.stack.split(`
661
+ `), H = R.stack.split(`
662
+ `), W = D.length - 1, z = H.length - 1; W >= 1 && z >= 0 && D[W] !== H[z]; )
650
663
  z--;
651
664
  for (; W >= 1 && z >= 0; W--, z--)
652
- if (I[W] !== H[z]) {
665
+ if (D[W] !== H[z]) {
653
666
  if (W !== 1 || z !== 1)
654
667
  do
655
- if (W--, z--, z < 0 || I[W] !== H[z]) {
668
+ if (W--, z--, z < 0 || D[W] !== H[z]) {
656
669
  var Q = `
657
- ` + I[W].replace(" at new ", " at ");
658
- return o.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", o.displayName)), typeof o == "function" && Ae.set(o, Q), Q;
670
+ ` + D[W].replace(" at new ", " at ");
671
+ return o.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", o.displayName)), typeof o == "function" && Ge.set(o, Q), Q;
659
672
  }
660
673
  while (W >= 1 && z >= 0);
661
674
  break;
662
675
  }
663
676
  }
664
677
  } finally {
665
- Xe = !1, qe.current = $, Ln(), Error.prepareStackTrace = L;
678
+ Qe = !1, Je.current = L, Ln(), Error.prepareStackTrace = $;
666
679
  }
667
- var pe = o ? o.displayName || o.name : "", fe = pe ? Oe(pe) : "";
668
- return typeof o == "function" && Ae.set(o, fe), fe;
680
+ var ke = o ? o.displayName || o.name : "", me = ke ? We(ke) : "";
681
+ return typeof o == "function" && Ge.set(o, me), me;
669
682
  }
670
- function On(o, x, b) {
683
+ function An(o, x, b) {
671
684
  return Nt(o, !1);
672
685
  }
673
- function An(o) {
686
+ function Wn(o) {
674
687
  var x = o.prototype;
675
688
  return !!(x && x.isReactComponent);
676
689
  }
677
- function We(o, x, b) {
690
+ function ze(o, x, b) {
678
691
  if (o == null)
679
692
  return "";
680
693
  if (typeof o == "function")
681
- return Nt(o, An(o));
694
+ return Nt(o, Wn(o));
682
695
  if (typeof o == "string")
683
- return Oe(o);
696
+ return We(o);
684
697
  switch (o) {
685
698
  case _:
686
- return Oe("Suspense");
699
+ return We("Suspense");
687
700
  case u:
688
- return Oe("SuspenseList");
701
+ return We("SuspenseList");
689
702
  }
690
703
  if (typeof o == "object")
691
704
  switch (o.$$typeof) {
692
705
  case d:
693
- return On(o.render);
706
+ return An(o.render);
694
707
  case f:
695
- return We(o.type, x, b);
708
+ return ze(o.type, x, b);
696
709
  case m: {
697
- var T = o, L = T._payload, $ = T._init;
710
+ var R = o, $ = R._payload, L = R._init;
698
711
  try {
699
- return We($(L), x, b);
712
+ return ze(L($), x, b);
700
713
  } catch {
701
714
  }
702
715
  }
703
716
  }
704
717
  return "";
705
718
  }
706
- var Ee = Object.prototype.hasOwnProperty, Dt = {}, It = y.ReactDebugCurrentFrame;
707
- function Ge(o) {
719
+ var Re = Object.prototype.hasOwnProperty, Dt = {}, Mt = y.ReactDebugCurrentFrame;
720
+ function Ke(o) {
708
721
  if (o) {
709
- var x = o._owner, b = We(o.type, o._source, x ? x.type : null);
710
- It.setExtraStackFrame(b);
722
+ var x = o._owner, b = ze(o.type, o._source, x ? x.type : null);
723
+ Mt.setExtraStackFrame(b);
711
724
  } else
712
- It.setExtraStackFrame(null);
725
+ Mt.setExtraStackFrame(null);
713
726
  }
714
- function Wn(o, x, b, T, L) {
727
+ function Gn(o, x, b, R, $) {
715
728
  {
716
- var $ = Function.call.bind(Ee);
729
+ var L = Function.call.bind(Re);
717
730
  for (var M in o)
718
- if ($(o, M)) {
719
- var I = void 0;
731
+ if (L(o, M)) {
732
+ var D = void 0;
720
733
  try {
721
734
  if (typeof o[M] != "function") {
722
- var H = Error((T || "React class") + ": " + b + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
735
+ var H = Error((R || "React class") + ": " + b + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
723
736
  throw H.name = "Invariant Violation", H;
724
737
  }
725
- I = o[M](x, M, T, b, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
738
+ D = o[M](x, M, R, b, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
726
739
  } catch (W) {
727
- I = W;
740
+ D = W;
728
741
  }
729
- I && !(I instanceof Error) && (Ge(L), 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).", T || "React class", b, M, typeof I), Ge(null)), I instanceof Error && !(I.message in Dt) && (Dt[I.message] = !0, Ge(L), j("Failed %s type: %s", b, I.message), Ge(null));
742
+ D && !(D instanceof Error) && (Ke($), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", R || "React class", b, M, typeof D), Ke(null)), D instanceof Error && !(D.message in Dt) && (Dt[D.message] = !0, Ke($), w("Failed %s type: %s", b, D.message), Ke(null));
730
743
  }
731
744
  }
732
745
  }
733
- var Gn = Array.isArray;
734
- function Qe(o) {
735
- return Gn(o);
746
+ var zn = Array.isArray;
747
+ function et(o) {
748
+ return zn(o);
736
749
  }
737
- function zn(o) {
750
+ function Kn(o) {
738
751
  {
739
752
  var x = typeof Symbol == "function" && Symbol.toStringTag, b = x && o[Symbol.toStringTag] || o.constructor.name || "Object";
740
753
  return b;
741
754
  }
742
755
  }
743
- function Kn(o) {
756
+ function Zn(o) {
744
757
  try {
745
- return Mt(o), !1;
758
+ return Ft(o), !1;
746
759
  } catch {
747
760
  return !0;
748
761
  }
749
762
  }
750
- function Mt(o) {
763
+ function Ft(o) {
751
764
  return "" + o;
752
765
  }
753
- function Ft(o) {
754
- if (Kn(o))
755
- return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", zn(o)), Mt(o);
766
+ function Pt(o) {
767
+ if (Zn(o))
768
+ return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Kn(o)), Ft(o);
756
769
  }
757
- var Te = y.ReactCurrentOwner, Zn = {
770
+ var Be = y.ReactCurrentOwner, Un = {
758
771
  key: !0,
759
772
  ref: !0,
760
773
  __self: !0,
761
774
  __source: !0
762
- }, Pt, Lt, et;
763
- et = {};
764
- function Un(o) {
765
- if (Ee.call(o, "ref")) {
775
+ }, $t, Lt, tt;
776
+ tt = {};
777
+ function Vn(o) {
778
+ if (Re.call(o, "ref")) {
766
779
  var x = Object.getOwnPropertyDescriptor(o, "ref").get;
767
780
  if (x && x.isReactWarning)
768
781
  return !1;
769
782
  }
770
783
  return o.ref !== void 0;
771
784
  }
772
- function Vn(o) {
773
- if (Ee.call(o, "key")) {
785
+ function Yn(o) {
786
+ if (Re.call(o, "key")) {
774
787
  var x = Object.getOwnPropertyDescriptor(o, "key").get;
775
788
  if (x && x.isReactWarning)
776
789
  return !1;
777
790
  }
778
791
  return o.key !== void 0;
779
792
  }
780
- function Yn(o, x) {
781
- if (typeof o.ref == "string" && Te.current && x && Te.current.stateNode !== x) {
782
- var b = F(Te.current.type);
783
- et[b] || (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', F(Te.current.type), o.ref), et[b] = !0);
793
+ function Hn(o, x) {
794
+ if (typeof o.ref == "string" && Be.current && x && Be.current.stateNode !== x) {
795
+ var b = P(Be.current.type);
796
+ tt[b] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', P(Be.current.type), o.ref), tt[b] = !0);
784
797
  }
785
798
  }
786
- function Hn(o, x) {
799
+ function qn(o, x) {
787
800
  {
788
801
  var b = function() {
789
- Pt || (Pt = !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)", x));
802
+ $t || ($t = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
790
803
  };
791
804
  b.isReactWarning = !0, Object.defineProperty(o, "key", {
792
805
  get: b,
@@ -794,10 +807,10 @@ function fr() {
794
807
  });
795
808
  }
796
809
  }
797
- function qn(o, x) {
810
+ function Jn(o, x) {
798
811
  {
799
812
  var b = function() {
800
- Lt || (Lt = !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)", x));
813
+ Lt || (Lt = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
801
814
  };
802
815
  b.isReactWarning = !0, Object.defineProperty(o, "ref", {
803
816
  get: b,
@@ -805,8 +818,8 @@ function fr() {
805
818
  });
806
819
  }
807
820
  }
808
- var Jn = function(o, x, b, T, L, $, M) {
809
- var I = {
821
+ var Xn = function(o, x, b, R, $, L, M) {
822
+ var D = {
810
823
  // This tag allows us to uniquely identify this as a React Element
811
824
  $$typeof: t,
812
825
  // Built-in properties that belong on the element
@@ -815,60 +828,60 @@ function fr() {
815
828
  ref: b,
816
829
  props: M,
817
830
  // Record the component responsible for creating this element.
818
- _owner: $
831
+ _owner: L
819
832
  };
820
- return I._store = {}, Object.defineProperty(I._store, "validated", {
833
+ return D._store = {}, Object.defineProperty(D._store, "validated", {
821
834
  configurable: !1,
822
835
  enumerable: !1,
823
836
  writable: !0,
824
837
  value: !1
825
- }), Object.defineProperty(I, "_self", {
838
+ }), Object.defineProperty(D, "_self", {
826
839
  configurable: !1,
827
840
  enumerable: !1,
828
841
  writable: !1,
829
- value: T
830
- }), Object.defineProperty(I, "_source", {
842
+ value: R
843
+ }), Object.defineProperty(D, "_source", {
831
844
  configurable: !1,
832
845
  enumerable: !1,
833
846
  writable: !1,
834
- value: L
835
- }), Object.freeze && (Object.freeze(I.props), Object.freeze(I)), I;
847
+ value: $
848
+ }), Object.freeze && (Object.freeze(D.props), Object.freeze(D)), D;
836
849
  };
837
- function Xn(o, x, b, T, L) {
850
+ function Qn(o, x, b, R, $) {
838
851
  {
839
- var $, M = {}, I = null, H = null;
840
- b !== void 0 && (Ft(b), I = "" + b), Vn(x) && (Ft(x.key), I = "" + x.key), Un(x) && (H = x.ref, Yn(x, L));
841
- for ($ in x)
842
- Ee.call(x, $) && !Zn.hasOwnProperty($) && (M[$] = x[$]);
852
+ var L, M = {}, D = null, H = null;
853
+ b !== void 0 && (Pt(b), D = "" + b), Yn(x) && (Pt(x.key), D = "" + x.key), Vn(x) && (H = x.ref, Hn(x, $));
854
+ for (L in x)
855
+ Re.call(x, L) && !Un.hasOwnProperty(L) && (M[L] = x[L]);
843
856
  if (o && o.defaultProps) {
844
857
  var W = o.defaultProps;
845
- for ($ in W)
846
- M[$] === void 0 && (M[$] = W[$]);
858
+ for (L in W)
859
+ M[L] === void 0 && (M[L] = W[L]);
847
860
  }
848
- if (I || H) {
861
+ if (D || H) {
849
862
  var z = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
850
- I && Hn(M, z), H && qn(M, z);
863
+ D && qn(M, z), H && Jn(M, z);
851
864
  }
852
- return Jn(o, I, H, L, T, Te.current, M);
865
+ return Xn(o, D, H, $, R, Be.current, M);
853
866
  }
854
867
  }
855
- var tt = y.ReactCurrentOwner, $t = y.ReactDebugCurrentFrame;
856
- function ge(o) {
868
+ var nt = y.ReactCurrentOwner, Ot = y.ReactDebugCurrentFrame;
869
+ function ve(o) {
857
870
  if (o) {
858
- var x = o._owner, b = We(o.type, o._source, x ? x.type : null);
859
- $t.setExtraStackFrame(b);
871
+ var x = o._owner, b = ze(o.type, o._source, x ? x.type : null);
872
+ Ot.setExtraStackFrame(b);
860
873
  } else
861
- $t.setExtraStackFrame(null);
874
+ Ot.setExtraStackFrame(null);
862
875
  }
863
- var nt;
864
- nt = !1;
865
- function at(o) {
876
+ var at;
877
+ at = !1;
878
+ function rt(o) {
866
879
  return typeof o == "object" && o !== null && o.$$typeof === t;
867
880
  }
868
- function Ot() {
881
+ function At() {
869
882
  {
870
- if (tt.current) {
871
- var o = F(tt.current.type);
883
+ if (nt.current) {
884
+ var o = P(nt.current.type);
872
885
  if (o)
873
886
  return `
874
887
 
@@ -877,13 +890,13 @@ Check the render method of \`` + o + "`.";
877
890
  return "";
878
891
  }
879
892
  }
880
- function Qn(o) {
893
+ function ea(o) {
881
894
  return "";
882
895
  }
883
- var At = {};
884
- function ea(o) {
896
+ var Wt = {};
897
+ function ta(o) {
885
898
  {
886
- var x = Ot();
899
+ var x = At();
887
900
  if (!x) {
888
901
  var b = typeof o == "string" ? o : o.displayName || o.name;
889
902
  b && (x = `
@@ -893,39 +906,39 @@ Check the top-level render call using <` + b + ">.");
893
906
  return x;
894
907
  }
895
908
  }
896
- function Wt(o, x) {
909
+ function Gt(o, x) {
897
910
  {
898
911
  if (!o._store || o._store.validated || o.key != null)
899
912
  return;
900
913
  o._store.validated = !0;
901
- var b = ea(x);
902
- if (At[b])
914
+ var b = ta(x);
915
+ if (Wt[b])
903
916
  return;
904
- At[b] = !0;
905
- var T = "";
906
- o && o._owner && o._owner !== tt.current && (T = " It was passed a child from " + F(o._owner.type) + "."), ge(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.', b, T), ge(null);
917
+ Wt[b] = !0;
918
+ var R = "";
919
+ o && o._owner && o._owner !== nt.current && (R = " It was passed a child from " + P(o._owner.type) + "."), ve(o), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, R), ve(null);
907
920
  }
908
921
  }
909
- function Gt(o, x) {
922
+ function zt(o, x) {
910
923
  {
911
924
  if (typeof o != "object")
912
925
  return;
913
- if (Qe(o))
926
+ if (et(o))
914
927
  for (var b = 0; b < o.length; b++) {
915
- var T = o[b];
916
- at(T) && Wt(T, x);
928
+ var R = o[b];
929
+ rt(R) && Gt(R, x);
917
930
  }
918
- else if (at(o))
931
+ else if (rt(o))
919
932
  o._store && (o._store.validated = !0);
920
933
  else if (o) {
921
- var L = p(o);
922
- if (typeof L == "function" && L !== o.entries)
923
- for (var $ = L.call(o), M; !(M = $.next()).done; )
924
- at(M.value) && Wt(M.value, x);
934
+ var $ = p(o);
935
+ if (typeof $ == "function" && $ !== o.entries)
936
+ for (var L = $.call(o), M; !(M = L.next()).done; )
937
+ rt(M.value) && Gt(M.value, x);
925
938
  }
926
939
  }
927
940
  }
928
- function ta(o) {
941
+ function na(o) {
929
942
  {
930
943
  var x = o.type;
931
944
  if (x == null || typeof x == "string")
@@ -940,152 +953,128 @@ Check the top-level render call using <` + b + ">.");
940
953
  else
941
954
  return;
942
955
  if (b) {
943
- var T = F(x);
944
- Wn(b, o.props, "prop", T, o);
945
- } else if (x.PropTypes !== void 0 && !nt) {
946
- nt = !0;
947
- var L = F(x);
948
- j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", L || "Unknown");
956
+ var R = P(x);
957
+ Gn(b, o.props, "prop", R, o);
958
+ } else if (x.PropTypes !== void 0 && !at) {
959
+ at = !0;
960
+ var $ = P(x);
961
+ w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", $ || "Unknown");
949
962
  }
950
- typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
963
+ typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
951
964
  }
952
965
  }
953
- function na(o) {
966
+ function aa(o) {
954
967
  {
955
968
  for (var x = Object.keys(o.props), b = 0; b < x.length; b++) {
956
- var T = x[b];
957
- if (T !== "children" && T !== "key") {
958
- ge(o), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", T), ge(null);
969
+ var R = x[b];
970
+ if (R !== "children" && R !== "key") {
971
+ ve(o), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", R), ve(null);
959
972
  break;
960
973
  }
961
974
  }
962
- o.ref !== null && (ge(o), j("Invalid attribute `ref` supplied to `React.Fragment`."), ge(null));
975
+ o.ref !== null && (ve(o), w("Invalid attribute `ref` supplied to `React.Fragment`."), ve(null));
963
976
  }
964
977
  }
965
- var zt = {};
966
- function Kt(o, x, b, T, L, $) {
978
+ var Kt = {};
979
+ function Zt(o, x, b, R, $, L) {
967
980
  {
968
981
  var M = q(o);
969
982
  if (!M) {
970
- var I = "";
971
- (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (I += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
972
- var H = Qn();
973
- H ? I += H : I += Ot();
983
+ var D = "";
984
+ (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (D += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
985
+ var H = ea();
986
+ H ? D += H : D += At();
974
987
  var W;
975
- o === null ? W = "null" : Qe(o) ? W = "array" : o !== void 0 && o.$$typeof === t ? (W = "<" + (F(o.type) || "Unknown") + " />", I = " Did you accidentally export a JSX literal instead of a component?") : W = 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", W, I);
988
+ o === null ? W = "null" : et(o) ? W = "array" : o !== void 0 && o.$$typeof === t ? (W = "<" + (P(o.type) || "Unknown") + " />", D = " Did you accidentally export a JSX literal instead of a component?") : W = typeof o, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, D);
976
989
  }
977
- var z = Xn(o, x, b, L, $);
990
+ var z = Qn(o, x, b, $, L);
978
991
  if (z == null)
979
992
  return z;
980
993
  if (M) {
981
994
  var Q = x.children;
982
995
  if (Q !== void 0)
983
- if (T)
984
- if (Qe(Q)) {
985
- for (var pe = 0; pe < Q.length; pe++)
986
- Gt(Q[pe], o);
996
+ if (R)
997
+ if (et(Q)) {
998
+ for (var ke = 0; ke < Q.length; ke++)
999
+ zt(Q[ke], o);
987
1000
  Object.freeze && Object.freeze(Q);
988
1001
  } else
989
- 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.");
1002
+ w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
990
1003
  else
991
- Gt(Q, o);
1004
+ zt(Q, o);
992
1005
  }
993
- if (Ee.call(x, "key")) {
994
- var fe = F(o), J = Object.keys(x).filter(function(la) {
995
- return la !== "key";
996
- }), rt = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
997
- if (!zt[fe + rt]) {
998
- var oa = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
999
- j(`A props object containing a "key" prop is being spread into JSX:
1006
+ if (Re.call(x, "key")) {
1007
+ var me = P(o), J = Object.keys(x).filter(function(ca) {
1008
+ return ca !== "key";
1009
+ }), it = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
1010
+ if (!Kt[me + it]) {
1011
+ var la = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
1012
+ w(`A props object containing a "key" prop is being spread into JSX:
1000
1013
  let props = %s;
1001
1014
  <%s {...props} />
1002
1015
  React keys must be passed directly to JSX without using spread:
1003
1016
  let props = %s;
1004
- <%s key={someKey} {...props} />`, rt, fe, oa, fe), zt[fe + rt] = !0;
1017
+ <%s key={someKey} {...props} />`, it, me, la, me), Kt[me + it] = !0;
1005
1018
  }
1006
1019
  }
1007
- return o === r ? na(z) : ta(z), z;
1020
+ return o === r ? aa(z) : na(z), z;
1008
1021
  }
1009
1022
  }
1010
- function aa(o, x, b) {
1011
- return Kt(o, x, b, !0);
1012
- }
1013
1023
  function ra(o, x, b) {
1014
- return Kt(o, x, b, !1);
1024
+ return Zt(o, x, b, !0);
1015
1025
  }
1016
- var ia = ra, sa = aa;
1017
- Be.Fragment = r, Be.jsx = ia, Be.jsxs = sa;
1018
- }()), Be;
1019
- }
1020
- process.env.NODE_ENV === "production" ? _t.exports = ur() : _t.exports = fr();
1021
- var n = _t.exports;
1022
- const mr = "_btn_1hz2s_6", hr = "_confirm_1hz2s_19", Yt = {
1023
- btn: mr,
1024
- confirm: hr
1025
- };
1026
- function xr({ onClick: e, onSend: t, label: a, onRef: r }) {
1027
- let [i, s] = k.useState(!1);
1028
- const l = () => {
1029
- if (e)
1030
- return e();
1031
- i || (s(!0), t && t(s));
1032
- };
1033
- return /* @__PURE__ */ n.jsx(
1034
- "button",
1035
- {
1036
- ref: r,
1037
- className: [Yt.btn, Yt.confirm].join(" "),
1038
- onClick: l,
1039
- children: i ? "Ожидайте" : a
1026
+ function ia(o, x, b) {
1027
+ return Zt(o, x, b, !1);
1040
1028
  }
1041
- );
1042
- }
1043
- const ke = {
1044
- Path: Fa,
1045
- setPage: Ca,
1046
- getPage: nn,
1047
- usePage: ya,
1048
- isPage: ja,
1049
- setModule: Sa,
1050
- getModule: an,
1051
- useModule: wa,
1052
- isModule: Ea,
1053
- setTabs: Ra,
1054
- getTabs: Ze,
1055
- useTabs: Ta,
1056
- isTabs: Ba,
1057
- useId: Na,
1058
- setId: Ia,
1059
- subId: Da,
1060
- getId: rn,
1061
- isId: Ma
1029
+ var sa = ia, oa = ra;
1030
+ Ne.Fragment = r, Ne.jsx = sa, Ne.jsxs = oa;
1031
+ }()), Ne;
1032
+ }
1033
+ process.env.NODE_ENV === "production" ? dt.exports = mr() : dt.exports = hr();
1034
+ var n = dt.exports;
1035
+ const xr = "_notice_9i5tr_2", gr = "_error_9i5tr_9", pr = "_success_9i5tr_12", vr = "_remark_9i5tr_15", kr = "_copy_9i5tr_18", br = {
1036
+ notice: xr,
1037
+ error: gr,
1038
+ success: pr,
1039
+ remark: vr,
1040
+ copy: kr,
1041
+ "show-notice": "_show-notice_9i5tr_1",
1042
+ "hide-notice": "_hide-notice_9i5tr_1"
1062
1043
  };
1063
- let je = {};
1064
- function Me({ data: e }) {
1044
+ let ue = {};
1045
+ function yr() {
1046
+ let [e, t] = k.useState([]);
1047
+ return ue.set = (a) => {
1048
+ t([...e, a]);
1049
+ }, ue.del = (a) => {
1050
+ t(e.filter((r) => r.key !== a));
1051
+ }, e.length === 0 ? "" : /* @__PURE__ */ n.jsx("ul", { className: br.notice, children: e.map((a) => a.item) });
1052
+ }
1053
+ function $e({ data: e }) {
1065
1054
  let [t, a] = k.useState("show");
1066
1055
  k.useEffect(() => {
1067
1056
  setTimeout(function() {
1068
1057
  a("hide");
1069
1058
  }, 1800), setTimeout(function() {
1070
- je.del(e.key);
1059
+ ue.del(e.key);
1071
1060
  }, 2500);
1072
1061
  }, [e.key]);
1073
1062
  let r, i;
1074
1063
  switch (e.type) {
1075
1064
  case "error":
1076
- r = /* @__PURE__ */ n.jsx(me.error, {}), i = "Ошибка:";
1065
+ r = /* @__PURE__ */ n.jsx(he.error, {}), i = "Ошибка:";
1077
1066
  break;
1078
1067
  case "success":
1079
- r = /* @__PURE__ */ n.jsx(me.success, {}), i = "Информация:";
1068
+ r = /* @__PURE__ */ n.jsx(he.success, {}), i = "Информация:";
1080
1069
  break;
1081
1070
  case "copy":
1082
- r = /* @__PURE__ */ n.jsx(me.success, {}), i = "Копирование:";
1071
+ r = /* @__PURE__ */ n.jsx(he.success, {}), i = "Копирование:";
1083
1072
  break;
1084
1073
  case "remark":
1085
- r = /* @__PURE__ */ n.jsx(me.success, {}), i = "Подсказка:";
1074
+ r = /* @__PURE__ */ n.jsx(he.success, {}), i = "Подсказка:";
1086
1075
  break;
1087
1076
  default:
1088
- r = /* @__PURE__ */ n.jsx(me.success, {}), i = "Предупреждение:";
1077
+ r = /* @__PURE__ */ n.jsx(he.success, {}), i = "Предупреждение:";
1089
1078
  break;
1090
1079
  }
1091
1080
  return /* @__PURE__ */ n.jsxs("li", { className: "item " + e.type, "data-status": t, children: [
@@ -1094,28 +1083,28 @@ function Me({ data: e }) {
1094
1083
  /* @__PURE__ */ n.jsx("p", { children: e.text })
1095
1084
  ] });
1096
1085
  }
1097
- function gr(e) {
1086
+ function Cr(e) {
1098
1087
  let t = Date.now(), a = { key: t, ...e };
1099
- je.set({ item: /* @__PURE__ */ n.jsx(Me, { data: a }, t), key: t });
1088
+ ue.set({ item: /* @__PURE__ */ n.jsx($e, { data: a }, t), key: t });
1100
1089
  }
1101
- function pr(e) {
1090
+ function jr(e) {
1102
1091
  let t = Date.now(), a = { key: t, text: e, type: "error" };
1103
- je.set({ item: /* @__PURE__ */ n.jsx(Me, { data: a }, t), key: t });
1092
+ ue.set({ item: /* @__PURE__ */ n.jsx($e, { data: a }, t), key: t });
1104
1093
  }
1105
- function vr(e) {
1094
+ function wr(e) {
1106
1095
  let t = Date.now(), a = { key: t, text: e, type: "success" };
1107
- je.set({ item: /* @__PURE__ */ n.jsx(Me, { data: a }, t), key: t });
1096
+ ue.set({ item: /* @__PURE__ */ n.jsx($e, { data: a }, t), key: t });
1108
1097
  }
1109
- function kr(e) {
1098
+ function Sr(e) {
1110
1099
  let t = Date.now(), a = { key: t, text: e, type: "remark" };
1111
- je.set({ item: /* @__PURE__ */ n.jsx(Me, { data: a }, t), key: t });
1100
+ ue.set({ item: /* @__PURE__ */ n.jsx($e, { data: a }, t), key: t });
1112
1101
  }
1113
- function br(e) {
1102
+ function Er(e) {
1114
1103
  let t = Date.now(), a = { key: t, text: e, type: "copy" };
1115
- je.set({ item: /* @__PURE__ */ n.jsx(Me, { data: a }, t), key: t });
1104
+ ue.set({ item: /* @__PURE__ */ n.jsx($e, { data: a }, t), key: t });
1116
1105
  }
1117
- const me = {};
1118
- me.error = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1106
+ const he = {};
1107
+ he.error = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1119
1108
  /* @__PURE__ */ n.jsx(
1120
1109
  "path",
1121
1110
  {
@@ -1131,7 +1120,7 @@ me.error = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "no
1131
1120
  }
1132
1121
  )
1133
1122
  ] });
1134
- me.success = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1123
+ he.success = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1135
1124
  /* @__PURE__ */ n.jsx(
1136
1125
  "path",
1137
1126
  {
@@ -1147,7 +1136,261 @@ me.success = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "
1147
1136
  }
1148
1137
  )
1149
1138
  ] });
1150
- const Ke = { Send: gr, Error: pr, Remark: kr, Success: vr, Copy: br }, mn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
1139
+ const Tr = "_alerts_1pds5_1", Rr = "_menuAnimation_1pds5_1", Br = "_menuItemAnimation_1pds5_1", Ir = "_allert_1pds5_111", Nr = "_al_1pds5_1", ut = {
1140
+ alerts: Tr,
1141
+ menuAnimation: Rr,
1142
+ menuItemAnimation: Br,
1143
+ "--body": "_--body_1pds5_103",
1144
+ allert: Ir,
1145
+ "--form": "_--form_1pds5_111",
1146
+ al: Nr
1147
+ };
1148
+ let Me = {};
1149
+ function Dr() {
1150
+ let [e, t] = k.useState("");
1151
+ return Me.set = (a) => t(a), Me.del = () => t(""), /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
1152
+ }
1153
+ const Mr = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ n.jsxs("div", { className: ut.alerts, children: [
1154
+ /* @__PURE__ */ n.jsxs("dl", { children: [
1155
+ /* @__PURE__ */ n.jsx("dt", { children: e.title }),
1156
+ /* @__PURE__ */ n.jsx("dd", { children: e.text }),
1157
+ /* @__PURE__ */ n.jsx("ul", { children: /* @__PURE__ */ n.jsx(
1158
+ "button",
1159
+ {
1160
+ "data-color": e.color || "blue",
1161
+ onClick: () => {
1162
+ t(), Me.del();
1163
+ },
1164
+ children: e.button
1165
+ }
1166
+ ) })
1167
+ ] }),
1168
+ /* @__PURE__ */ n.jsx("div", { className: ut["--body"], onClick: Me.del })
1169
+ ] }));
1170
+ function Fr(e, t) {
1171
+ Me.set(/* @__PURE__ */ n.jsx(Mr, { data: e, callback: t }));
1172
+ }
1173
+ const Pr = "_btn_1hz2s_6", $r = "_confirm_1hz2s_19", Ht = {
1174
+ btn: Pr,
1175
+ confirm: $r
1176
+ };
1177
+ function Lr({ onClick: e, onSend: t, label: a, onRef: r }) {
1178
+ let [i, s] = k.useState(!1);
1179
+ const l = () => {
1180
+ if (e)
1181
+ return e();
1182
+ i || (s(!0), t && t(s));
1183
+ };
1184
+ return /* @__PURE__ */ n.jsx(
1185
+ "button",
1186
+ {
1187
+ ref: r,
1188
+ className: [Ht.btn, Ht.confirm].join(" "),
1189
+ onClick: l,
1190
+ children: i ? "Ожидайте" : a
1191
+ }
1192
+ );
1193
+ }
1194
+ const Or = "_white_11p39_14", Ar = "_black_11p39_26", Wr = "_shake_11p39_1", Gr = "_modal_11p39_73", zr = "_o_11p39_83", Kr = "_w_11p39_14", Zr = "_h_11p39_107", Ur = "_l_11p39_121", Vr = "_t_11p39_159", Yr = "_m_11p39_73", Hr = "_x_11p39_167", qr = "_s_11p39_177", Jr = "_c_11p39_182", Xr = "_f_11p39_187", Qr = "_btn_11p39_230", ei = "_g_11p39_243", ti = "_confirm_11p39_322", ni = "_cancel_11p39_327", ai = "_disabled_11p39_332", ri = "_active_11p39_389", ii = "_coincidence_11p39_395", si = "_sa_11p39_431", oi = "_ss_11p39_435", li = "_sm_11p39_439", ci = "_sl_11p39_443", _i = "_sx_11p39_447", di = "_sf_11p39_451", ae = {
1195
+ white: Or,
1196
+ black: Ar,
1197
+ shake: Wr,
1198
+ modal: Gr,
1199
+ o: zr,
1200
+ w: Kr,
1201
+ h: Zr,
1202
+ l: Ur,
1203
+ t: Vr,
1204
+ m: Yr,
1205
+ x: Hr,
1206
+ s: qr,
1207
+ c: Jr,
1208
+ f: Xr,
1209
+ btn: Qr,
1210
+ g: ei,
1211
+ "size-a": "_size-a_11p39_296",
1212
+ "size-s": "_size-s_11p39_300",
1213
+ "size-m": "_size-m_11p39_304",
1214
+ "size-l": "_size-l_11p39_308",
1215
+ "size-x": "_size-x_11p39_312",
1216
+ "size-f": "_size-f_11p39_316",
1217
+ confirm: ti,
1218
+ cancel: ni,
1219
+ disabled: ai,
1220
+ await: "_await_11p39_339",
1221
+ active: ri,
1222
+ coincidence: ii,
1223
+ sa: si,
1224
+ ss: oi,
1225
+ sm: li,
1226
+ sl: ci,
1227
+ sx: _i,
1228
+ sf: di
1229
+ };
1230
+ let ge = {};
1231
+ function ui({ config: e }) {
1232
+ let [t, a] = k.useState([]);
1233
+ return ge.x = (r) => {
1234
+ r || a([]);
1235
+ }, ge.config = e, ge.add = (r) => {
1236
+ a([...t, r]);
1237
+ }, /* @__PURE__ */ n.jsx(n.Fragment, { children: t.map((r) => r) });
1238
+ }
1239
+ function fi({
1240
+ title: e,
1241
+ children: t,
1242
+ button: a,
1243
+ tabs: r,
1244
+ size: i = "m",
1245
+ menu: s
1246
+ }) {
1247
+ const [l, c] = k.useState(!0), d = k.useRef(), _ = (f) => {
1248
+ if (a) {
1249
+ if (a.onClick)
1250
+ return f(!1), a.onClick({ setOpen: c });
1251
+ if (a.onSend)
1252
+ return a.onSend({
1253
+ setOpen: c,
1254
+ disabled: f
1255
+ });
1256
+ }
1257
+ }, u = () => {
1258
+ d.current.setAttribute("shake", !0), setTimeout(() => {
1259
+ d.current.setAttribute("shake", !1);
1260
+ }, 1e3);
1261
+ };
1262
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: l ? /* @__PURE__ */ n.jsxs(
1263
+ "div",
1264
+ {
1265
+ className: `${ae.modal} ${ae.white}`,
1266
+ children: [
1267
+ /* @__PURE__ */ n.jsx("div", { className: ae.o, onClick: u }),
1268
+ /* @__PURE__ */ n.jsxs(
1269
+ "div",
1270
+ {
1271
+ className: [ae.w, ae[`s${i}`]].join(" "),
1272
+ ref: d,
1273
+ children: [
1274
+ /* @__PURE__ */ n.jsxs("div", { className: ae.h, children: [
1275
+ /* @__PURE__ */ n.jsx("div", { className: ae.t, children: e }),
1276
+ /* @__PURE__ */ n.jsxs("div", { className: ae.m, children: [
1277
+ r && /* @__PURE__ */ n.jsx("nav", { children: r.map((f, m) => /* @__PURE__ */ n.jsx(
1278
+ "span",
1279
+ {
1280
+ onClick: f.onClick,
1281
+ className: f.active ? "active" : "",
1282
+ children: f.name
1283
+ },
1284
+ m
1285
+ )) }),
1286
+ s
1287
+ ] }),
1288
+ /* @__PURE__ */ n.jsx(
1289
+ "div",
1290
+ {
1291
+ className: ae.x,
1292
+ onClick: () => {
1293
+ c(!1);
1294
+ },
1295
+ children: /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ n.jsx(
1296
+ "path",
1297
+ {
1298
+ d: "M19.0005 4.99988L5.00045 18.9999M5.00045 4.99988L19.0005 18.9999",
1299
+ stroke: "currentColor",
1300
+ strokeWidth: "2.5",
1301
+ strokeLinecap: "round",
1302
+ strokeLinejoin: "round"
1303
+ }
1304
+ ) })
1305
+ }
1306
+ )
1307
+ ] }),
1308
+ t,
1309
+ a !== void 0 ? /* @__PURE__ */ n.jsx(Lr, { label: a.label, onSend: _ }) : ""
1310
+ ]
1311
+ }
1312
+ )
1313
+ ]
1314
+ }
1315
+ ) : "" });
1316
+ }
1317
+ function mi(e) {
1318
+ ge.add(/* @__PURE__ */ n.jsx(hi, { children: e }, String(Date.now())));
1319
+ }
1320
+ function hi({ children: e }) {
1321
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
1322
+ }
1323
+ function xi(e) {
1324
+ if (e.target.classList[0] !== "modal")
1325
+ return;
1326
+ let t = e.target.children[0];
1327
+ t.setAttribute("shake", !0), setTimeout(() => {
1328
+ t.setAttribute("shake", !1);
1329
+ }, 1e3);
1330
+ }
1331
+ function gi({ type: e, name: t, params: a }) {
1332
+ let [r, i] = k.useState(null);
1333
+ return k.useEffect(() => {
1334
+ ge.config(e, t, a, i);
1335
+ }, [a.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: r });
1336
+ }
1337
+ function pi(e, t, a) {
1338
+ ge.config(e, t, a);
1339
+ }
1340
+ function vi(e) {
1341
+ ge.x(e);
1342
+ }
1343
+ const ft = {};
1344
+ function ki(e, t) {
1345
+ ft[e] = t;
1346
+ }
1347
+ function bi(e, t) {
1348
+ ft[e] !== void 0 && ft[e](t);
1349
+ }
1350
+ const _e = {};
1351
+ function yi(e, t) {
1352
+ const [a, r] = k.useState(t);
1353
+ return k.useEffect(() => {
1354
+ if (_e[e])
1355
+ return _e[e].push(r);
1356
+ _e[e] = [r];
1357
+ }, []), [a];
1358
+ }
1359
+ function Ci(e, t) {
1360
+ if (_e[e])
1361
+ return _e[e].push(t);
1362
+ _e[e] = [t];
1363
+ }
1364
+ function ji(e, t) {
1365
+ _e[e] && _e[e].forEach((a) => a(t));
1366
+ }
1367
+ const Se = { setListener: bi, useListener: ki, setEmitter: ji, useEmitter: yi, subEmitter: Ci };
1368
+ function wi() {
1369
+ let [e, t] = k.useState([]);
1370
+ return Se.useListener("form", (a) => {
1371
+ t([a]);
1372
+ }), /* @__PURE__ */ n.jsx(n.Fragment, { children: e.map((a) => a) });
1373
+ }
1374
+ const ye = {
1375
+ Path: $a,
1376
+ setPage: wa,
1377
+ getPage: an,
1378
+ usePage: ja,
1379
+ isPage: Sa,
1380
+ setModule: Ta,
1381
+ getModule: rn,
1382
+ useModule: Ea,
1383
+ isModule: Ra,
1384
+ setTabs: Ia,
1385
+ getTabs: Ve,
1386
+ useTabs: Ba,
1387
+ isTabs: Na,
1388
+ useId: Da,
1389
+ setId: Fa,
1390
+ subId: Ma,
1391
+ getId: sn,
1392
+ isId: Pa
1393
+ }, Ue = { Send: Cr, Error: jr, Remark: Sr, Success: wr, Copy: Er }, hn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
1151
1394
  "div",
1152
1395
  {
1153
1396
  role: "switch",
@@ -1171,7 +1414,7 @@ le.Focus = (e) => {
1171
1414
  le.Blur = (e) => {
1172
1415
  e.target.scrollLeft = 0, e.target.querySelector("br") !== null && e.target.querySelector("br").remove();
1173
1416
  };
1174
- function De({
1417
+ function Fe({
1175
1418
  value: e,
1176
1419
  onValue: t,
1177
1420
  name: a,
@@ -1188,49 +1431,49 @@ function De({
1188
1431
  onSave: h,
1189
1432
  className: g = ""
1190
1433
  }) {
1191
- let v = !!(l && (e === "" || e === void 0)), p = (w) => {
1192
- t && t({ value: w.target.textContent, name: a });
1193
- }, y = (w) => {
1194
- w.key === "Enter" && w.preventDefault();
1195
- }, j = (w) => {
1196
- }, B = (w) => {
1197
- w.preventDefault(), navigator.clipboard.writeText(w.target.textContent).then(
1434
+ let v = !!(l && (e === "" || e === void 0)), p = (S) => {
1435
+ t && t({ value: S.target.textContent, name: a });
1436
+ }, y = (S) => {
1437
+ S.key === "Enter" && S.preventDefault();
1438
+ }, w = (S) => {
1439
+ }, B = (S) => {
1440
+ S.preventDefault(), navigator.clipboard.writeText(S.target.textContent).then(
1198
1441
  function() {
1199
- Ke.Copy("Данные в буфер обмене");
1442
+ Ue.Copy("Данные в буфер обмене");
1200
1443
  },
1201
- function(E) {
1444
+ function(T) {
1202
1445
  }
1203
1446
  );
1204
1447
  };
1205
1448
  if (!(c && d) && !u || !(c && d) && v)
1206
1449
  return "";
1207
- const N = {};
1208
- N.field = "input", g && (N.className = g);
1209
- const C = {};
1210
- r && (C.placeholder = r), c && d && (C.edit = "");
1211
- const S = (w) => {
1212
- le.Blur(w), h && h({ value: w.target.textContent, name: a });
1450
+ const I = {};
1451
+ I.field = "input", g && (I.className = g);
1452
+ const j = {};
1453
+ r && (j.placeholder = r), c && d && (j.edit = "");
1454
+ const E = (S) => {
1455
+ le.Blur(S), h && h({ value: S.target.textContent, name: a });
1213
1456
  };
1214
- return /* @__PURE__ */ n.jsxs("dl", { ...N, children: [
1457
+ return /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
1215
1458
  i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "",
1216
1459
  /* @__PURE__ */ n.jsx(
1217
1460
  "dd",
1218
1461
  {
1219
- onPaste: j,
1462
+ onPaste: w,
1220
1463
  onInput: p,
1221
- onBlur: S,
1464
+ onBlur: E,
1222
1465
  onKeyDown: y,
1223
1466
  onContextMenu: B,
1224
1467
  contentEditable: c && d ? "plaintext-only" : "false",
1225
1468
  suppressContentEditableWarning: !0,
1226
- ...C,
1469
+ ...j,
1227
1470
  children: e
1228
1471
  }
1229
1472
  ),
1230
1473
  s ? /* @__PURE__ */ n.jsx("em", { children: s }) : ""
1231
1474
  ] });
1232
1475
  }
1233
- function hn({ onClick: e, onSend: t, name: a, onRef: r }) {
1476
+ function xn({ onClick: e, onSend: t, name: a, onRef: r }) {
1234
1477
  let [i, s] = k.useState(!1);
1235
1478
  const l = () => {
1236
1479
  if (e)
@@ -1248,7 +1491,7 @@ function hn({ onClick: e, onSend: t, name: a, onRef: r }) {
1248
1491
  }
1249
1492
  );
1250
1493
  }
1251
- function xn({
1494
+ function gn({
1252
1495
  value: e,
1253
1496
  onValue: t,
1254
1497
  onActive: a,
@@ -1275,9 +1518,9 @@ function xn({
1275
1518
  }, h = (y) => {
1276
1519
  y.keyCode === 16 && (_.current.shift = !1);
1277
1520
  }, g = (y) => {
1278
- y.preventDefault(), navigator.clipboard.readText().then((j) => {
1279
- window.document.execCommand("insertText", !1, j);
1280
- }).catch((j) => {
1521
+ y.preventDefault(), navigator.clipboard.readText().then((w) => {
1522
+ window.document.execCommand("insertText", !1, w);
1523
+ }).catch((w) => {
1281
1524
  });
1282
1525
  }, v = () => {
1283
1526
  a(!1);
@@ -1298,7 +1541,7 @@ function xn({
1298
1541
  }
1299
1542
  ) });
1300
1543
  }
1301
- function gn(e) {
1544
+ function pn(e) {
1302
1545
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", s = (d) => {
1303
1546
  e.onValue({ value: d.target.textContent, name: e.name });
1304
1547
  }, l = (d) => {
@@ -1325,7 +1568,7 @@ function gn(e) {
1325
1568
  )
1326
1569
  ] });
1327
1570
  }
1328
- function pn({ value: e, onValue: t, placeholder: a = "", name: r }) {
1571
+ function vn({ value: e, onValue: t, placeholder: a = "", name: r }) {
1329
1572
  let i = (h, g) => Number(Math.round(h + Math.random() * (g - h))), s = k.useRef(null), l = k.useRef(null), c = i(1e4, 99999), d = (h) => {
1330
1573
  h.key !== "Backspace" && (h.key === "Enter" && h.preventDefault(), h.target.textContent.length === 5 && h.preventDefault(), /\d/.test(h.key) || h.preventDefault());
1331
1574
  }, _ = (h) => {
@@ -1364,7 +1607,7 @@ function pn({ value: e, onValue: t, placeholder: a = "", name: r }) {
1364
1607
  /* @__PURE__ */ n.jsx("canvas", { ref: s, width: "100", height: "35" })
1365
1608
  ] });
1366
1609
  }
1367
- function vn(e) {
1610
+ function kn(e) {
1368
1611
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = {
1369
1612
  n1: "",
1370
1613
  n2: "",
@@ -1497,7 +1740,7 @@ function vn(e) {
1497
1740
  }
1498
1741
  );
1499
1742
  }
1500
- function kn(e) {
1743
+ function bn(e) {
1501
1744
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "";
1502
1745
  e.edit !== void 0 && e.edit, e.active !== void 0 && e.active;
1503
1746
  let [r, i] = k.useState(e.value), s = (l) => {
@@ -1527,32 +1770,7 @@ function kn(e) {
1527
1770
  }
1528
1771
  ) });
1529
1772
  }
1530
- const dt = {};
1531
- function yr(e, t) {
1532
- dt[e] = t;
1533
- }
1534
- function Cr(e, t) {
1535
- dt[e] !== void 0 && dt[e](t);
1536
- }
1537
- const _e = {};
1538
- function jr(e, t) {
1539
- const [a, r] = k.useState(t);
1540
- return k.useEffect(() => {
1541
- if (_e[e])
1542
- return _e[e].push(r);
1543
- _e[e] = [r];
1544
- }, []), [a];
1545
- }
1546
- function wr(e, t) {
1547
- if (_e[e])
1548
- return _e[e].push(t);
1549
- _e[e] = [t];
1550
- }
1551
- function Sr(e, t) {
1552
- _e[e] && _e[e].forEach((a) => a(t));
1553
- }
1554
- const Fe = { setListener: Cr, useListener: yr, setEmitter: Sr, useEmitter: jr, subEmitter: wr };
1555
- function Er(e, t) {
1773
+ function Si(e, t) {
1556
1774
  t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
1557
1775
  let a = {
1558
1776
  yyyy: e.getFullYear(),
@@ -1569,7 +1787,7 @@ function Er(e, t) {
1569
1787
  t = t.replace(r, a[r]);
1570
1788
  return t;
1571
1789
  }
1572
- function Tr(e) {
1790
+ function Ei(e) {
1573
1791
  let t = [
1574
1792
  "Января",
1575
1793
  "Февраля",
@@ -1589,17 +1807,17 @@ function Tr(e) {
1589
1807
  name: a.getDate() + " " + t[a.getMonth()]
1590
1808
  };
1591
1809
  }
1592
- const Rr = (e) => {
1593
- function t(B, N) {
1594
- var C, w, S;
1595
- B = B ?? "", N = N ?? 1;
1596
- for (var C = [], S = 0, w = B.length; S < w; )
1597
- C.push(B.slice(S, S += N));
1598
- return C;
1810
+ const Ti = (e) => {
1811
+ function t(B, I) {
1812
+ var j, S, E;
1813
+ B = B ?? "", I = I ?? 1;
1814
+ for (var j = [], E = 0, S = B.length; E < S; )
1815
+ j.push(B.slice(E, E += I));
1816
+ return j;
1599
1817
  }
1600
- function a(B, N) {
1601
- var C = [2, 0, 1, 1, 1, 2];
1602
- return N[B > 4 && B < 20 ? 2 : C[Math.min(B, 5)]];
1818
+ function a(B, I) {
1819
+ var j = [2, 0, 1, 1, 1, 2];
1820
+ return I[B > 4 && B < 20 ? 2 : j[Math.min(B, 5)]];
1603
1821
  }
1604
1822
  var r = {
1605
1823
  null: "ноль",
@@ -1680,25 +1898,25 @@ const Rr = (e) => {
1680
1898
  ) : p.push(
1681
1899
  s > 0 ? r.a10[l] : r[h][l - 1]
1682
1900
  ), f.length > y + 1)) {
1683
- var j = r["u" + (y + 1)];
1684
- p.push(a(_, j));
1901
+ var w = r["u" + (y + 1)];
1902
+ p.push(a(_, w));
1685
1903
  }
1686
1904
  } else
1687
1905
  p.push(r.null);
1688
1906
  return p.push(a(d, r.ur)), p.push(c + " " + a(c, r.uc)), p.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1689
1907
  };
1690
- function Br(e) {
1908
+ function Ri(e) {
1691
1909
  let t = -1, a = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
1692
1910
  do
1693
1911
  e = e / 1024, t++;
1694
1912
  while (e > 1024);
1695
1913
  return Math.max(e, 0.1).toFixed(1) + a[t];
1696
1914
  }
1697
- function Nr(e) {
1915
+ function Bi(e) {
1698
1916
  let t = {};
1699
1917
  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];
1700
1918
  }
1701
- function Dr(e, t, a, r) {
1919
+ function Ii(e, t, a, r) {
1702
1920
  let i = {
1703
1921
  sexM: "m",
1704
1922
  sexF: "f",
@@ -1914,7 +2132,7 @@ function Dr(e, t, a, r) {
1914
2132
  }
1915
2133
  return i.ln = e, i.fn = t || "", i.mn = a || "", i.sex = r || i.getSex(), i;
1916
2134
  }
1917
- function Ir(e) {
2135
+ function Ni(e) {
1918
2136
  let t = e.split(" ");
1919
2137
  switch (t.length) {
1920
2138
  case 2:
@@ -1925,7 +2143,7 @@ function Ir(e) {
1925
2143
  return e;
1926
2144
  }
1927
2145
  }
1928
- function Mr(e) {
2146
+ function Di(e) {
1929
2147
  return {
1930
2148
  1: { val: "01", name: "Январь", names: "Января", abc: "Янв" },
1931
2149
  2: { val: "02", name: "Февраль", names: "Февраля", abc: "Февр" },
@@ -1941,61 +2159,61 @@ function Mr(e) {
1941
2159
  12: { val: "12", name: "Декабрь", names: "Декабря", abc: "Дек" }
1942
2160
  }[e];
1943
2161
  }
1944
- function Fr(e) {
2162
+ function Mi(e) {
1945
2163
  return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
1946
2164
  }
1947
- function Pr(e, t) {
2165
+ function Fi(e, t) {
1948
2166
  let a = t + "";
1949
2167
  for (; a.length < e; )
1950
2168
  a = "0" + a;
1951
2169
  return a;
1952
2170
  }
1953
- function Lr(e, t, a) {
2171
+ function Pi(e, t, a) {
1954
2172
  let r = t / e * a;
1955
2173
  return (typeof r != "number" || r === 1 / 0) && (r = 0), parseFloat(r).toFixed(1);
1956
2174
  }
1957
- function $r(e) {
2175
+ function $i(e) {
1958
2176
  return e.charAt(0).toUpperCase() + e.slice(1);
1959
2177
  }
1960
- function Or(e, t) {
2178
+ function Li(e, t) {
1961
2179
  e = Math.abs(e) % 100;
1962
2180
  let a = e % 10;
1963
2181
  return e > 10 && e < 20 ? t[2] : a > 1 && a < 5 ? t[1] : a === 1 ? t[0] : t[2];
1964
2182
  }
1965
- function Ar(e, t, a) {
1966
- return xe(e, t) ? xe(e, t).n : a || "";
2183
+ function Oi(e, t, a) {
2184
+ return pe(e, t) ? pe(e, t).n : a || "";
1967
2185
  }
1968
- function Wr(e, t) {
2186
+ function Ai(e, t) {
1969
2187
  return e.reduce(function(a, r) {
1970
2188
  let i = t instanceof Function ? t(r) : r[t];
1971
2189
  return a[i] !== void 0 || (a[i] = {}), a[i][r.id] = r, a;
1972
2190
  }, {});
1973
2191
  }
1974
- function Gr(e) {
2192
+ function Wi(e) {
1975
2193
  return parseInt((Date.now() - new Date(e).getTime()) / 31536e6 + "") + "";
1976
2194
  }
1977
2195
  const K = {
1978
- Age: Gr,
1979
- Date: Er,
1980
- MoneyString: Rr,
1981
- DateSort: Tr,
1982
- Size: Br,
1983
- TypeFiles: Nr,
1984
- Cases: Dr,
1985
- Initials: Ir,
1986
- Month: Mr,
1987
- Money: Fr,
1988
- Number: Pr,
1989
- Percent: Lr,
1990
- CapitalizeFirstLetter: $r,
1991
- DeclensionWord: Or,
1992
- Select: Ar,
1993
- ObjectByArray: Wr
1994
- }, zr = "_o_1kqkq_1", Kr = "_c_1kqkq_11", ye = {
1995
- o: zr,
1996
- c: Kr
2196
+ Age: Wi,
2197
+ Date: Si,
2198
+ MoneyString: Ti,
2199
+ DateSort: Ei,
2200
+ Size: Ri,
2201
+ TypeFiles: Bi,
2202
+ Cases: Ii,
2203
+ Initials: Ni,
2204
+ Month: Di,
2205
+ Money: Mi,
2206
+ Number: Fi,
2207
+ Percent: Pi,
2208
+ CapitalizeFirstLetter: $i,
2209
+ DeclensionWord: Li,
2210
+ Select: Oi,
2211
+ ObjectByArray: Ai
2212
+ }, Gi = "_o_1kqkq_1", zi = "_c_1kqkq_11", je = {
2213
+ o: Gi,
2214
+ c: zi
1997
2215
  };
1998
- function kt(e) {
2216
+ function bt(e) {
1999
2217
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, i = e.active !== void 0 ? e.active : !0, s = e.placeholder !== void 0 ? e.placeholder : "", [l, c] = k.useState(
2000
2218
  e.value === void 0 ? /* @__PURE__ */ new Date() : e.value
2001
2219
  ), d = !r && i;
@@ -2006,10 +2224,10 @@ function kt(e) {
2006
2224
  c(h), e.onValue({ value: h, name: e.name });
2007
2225
  }, u = (h) => {
2008
2226
  const g = h.target.getBoundingClientRect(), v = g.left, p = g.top;
2009
- Fe.setListener(
2227
+ Se.setListener(
2010
2228
  "form",
2011
2229
  /* @__PURE__ */ n.jsx(
2012
- Zr,
2230
+ Ki,
2013
2231
  {
2014
2232
  position: { x: v, y: p },
2015
2233
  onValue: _,
@@ -2050,7 +2268,7 @@ function kt(e) {
2050
2268
  }
2051
2269
  ) });
2052
2270
  }
2053
- const Zr = (e) => {
2271
+ const Ki = (e) => {
2054
2272
  let [t, a] = k.useState(!0), r = /* @__PURE__ */ new Date(), i = new Date(e.date), s = {
2055
2273
  y: parseInt(r.getFullYear()),
2056
2274
  d: parseInt(r.getDate()),
@@ -2059,32 +2277,32 @@ const Zr = (e) => {
2059
2277
  y: parseInt(i.getFullYear()),
2060
2278
  d: parseInt(i.getDate()),
2061
2279
  m: parseInt(i.getMonth()) + 1
2062
- }, [c, d] = k.useState({ y: l.y, m: l.m }), _ = (C) => {
2063
- let S = C.getDay();
2064
- return S === 0 && (S = 7), S - 1;
2280
+ }, [c, d] = k.useState({ y: l.y, m: l.m }), _ = (j) => {
2281
+ let E = j.getDay();
2282
+ return E === 0 && (E = 7), E - 1;
2065
2283
  }, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], f = c.m - 1, m = new Date(c.y, f), h = [];
2066
- for (let C = 0; C < _(m); C++)
2284
+ for (let j = 0; j < _(m); j++)
2067
2285
  h.push(0);
2068
2286
  for (; m.getMonth() === f; )
2069
2287
  h.push(m.getDate()), m.setDate(m.getDate() + 1);
2070
2288
  let g = () => {
2071
2289
  a(!1);
2072
2290
  }, v = () => {
2073
- j(c.m + 1, c.y);
2291
+ w(c.m + 1, c.y);
2074
2292
  }, p = () => {
2075
- j(c.m - 1, c.y);
2076
- }, y = (C) => {
2293
+ w(c.m - 1, c.y);
2294
+ }, y = (j) => {
2077
2295
  e.onValue(
2078
- c.y + "-" + K.Number(2, c.m) + "-" + K.Number(2, C)
2296
+ c.y + "-" + K.Number(2, c.m) + "-" + K.Number(2, j)
2079
2297
  ), g();
2080
- }, j = (C, S) => {
2081
- S = C > 12 ? S + 1 : C < 1 ? S - 1 : S, C = C > 12 ? 1 : C < 1 ? 12 : C, d({ y: S, m: C });
2082
- }, B = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, N = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
2298
+ }, w = (j, E) => {
2299
+ E = j > 12 ? E + 1 : j < 1 ? E - 1 : E, j = j > 12 ? 1 : j < 1 ? 12 : j, d({ y: E, m: j });
2300
+ }, B = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, I = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
2083
2301
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2084
2302
  /* @__PURE__ */ n.jsx(
2085
2303
  "div",
2086
2304
  {
2087
- className: ye.o,
2305
+ className: je.o,
2088
2306
  onClick: () => g()
2089
2307
  },
2090
2308
  (/* @__PURE__ */ new Date()).getTime()
@@ -2092,8 +2310,8 @@ const Zr = (e) => {
2092
2310
  /* @__PURE__ */ n.jsxs(
2093
2311
  "div",
2094
2312
  {
2095
- className: ye.c,
2096
- style: { top: B + "px", left: N + "px" },
2313
+ className: je.c,
2314
+ style: { top: B + "px", left: I + "px" },
2097
2315
  children: [
2098
2316
  /* @__PURE__ */ n.jsxs("s", { children: [
2099
2317
  /* @__PURE__ */ n.jsx("i", { "data-icon": "F021", onClick: () => p() }),
@@ -2105,188 +2323,47 @@ const Zr = (e) => {
2105
2323
  /* @__PURE__ */ n.jsx("i", { "data-icon": "F022", onClick: () => v() })
2106
2324
  ] }),
2107
2325
  /* @__PURE__ */ n.jsxs("div", { children: [
2108
- u.map((C, S) => /* @__PURE__ */ n.jsx("p", { children: C }, "v" + S)),
2109
- h.map((C, S) => /* @__PURE__ */ n.jsx("span", { children: C !== 0 ? /* @__PURE__ */ n.jsx(
2326
+ u.map((j, E) => /* @__PURE__ */ n.jsx("p", { children: j }, "v" + E)),
2327
+ h.map((j, E) => /* @__PURE__ */ n.jsx("span", { children: j !== 0 ? /* @__PURE__ */ n.jsx(
2110
2328
  "b",
2111
2329
  {
2112
- color: s.y === c.y && s.m === c.m && s.d === C ? "_FFEB3B" : "",
2113
- onClick: () => y(C),
2114
- children: C
2330
+ color: s.y === c.y && s.m === c.m && s.d === j ? "_FFEB3B" : "",
2331
+ onClick: () => y(j),
2332
+ children: j
2115
2333
  }
2116
- ) : /* @__PURE__ */ n.jsx("p", {}) }, S))
2334
+ ) : /* @__PURE__ */ n.jsx("p", {}) }, E))
2117
2335
  ] })
2118
2336
  ]
2119
2337
  }
2120
2338
  )
2121
2339
  ] }) : "" });
2122
2340
  };
2123
- function Ur({ children: e }) {
2341
+ function Zi({ children: e }) {
2124
2342
  return /* @__PURE__ */ n.jsx("div", { className: "l", children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
2125
2343
  }
2126
- const Vr = "_white_11p39_14", Yr = "_black_11p39_26", Hr = "_shake_11p39_1", qr = "_modal_11p39_73", Jr = "_o_11p39_83", Xr = "_w_11p39_14", Qr = "_h_11p39_107", ei = "_l_11p39_121", ti = "_t_11p39_159", ni = "_m_11p39_73", ai = "_x_11p39_167", ri = "_s_11p39_177", ii = "_c_11p39_182", si = "_f_11p39_187", oi = "_btn_11p39_230", li = "_g_11p39_243", ci = "_confirm_11p39_322", _i = "_cancel_11p39_327", di = "_disabled_11p39_332", ui = "_active_11p39_389", fi = "_coincidence_11p39_395", mi = "_sa_11p39_431", hi = "_ss_11p39_435", xi = "_sm_11p39_439", gi = "_sl_11p39_443", pi = "_sx_11p39_447", vi = "_sf_11p39_451", ne = {
2127
- white: Vr,
2128
- black: Yr,
2129
- shake: Hr,
2130
- modal: qr,
2131
- o: Jr,
2132
- w: Xr,
2133
- h: Qr,
2134
- l: ei,
2135
- t: ti,
2136
- m: ni,
2137
- x: ai,
2138
- s: ri,
2139
- c: ii,
2140
- f: si,
2141
- btn: oi,
2142
- g: li,
2143
- "size-a": "_size-a_11p39_296",
2144
- "size-s": "_size-s_11p39_300",
2145
- "size-m": "_size-m_11p39_304",
2146
- "size-l": "_size-l_11p39_308",
2147
- "size-x": "_size-x_11p39_312",
2148
- "size-f": "_size-f_11p39_316",
2149
- confirm: ci,
2150
- cancel: _i,
2151
- disabled: di,
2152
- await: "_await_11p39_339",
2153
- active: ui,
2154
- coincidence: fi,
2155
- sa: mi,
2156
- ss: hi,
2157
- sm: xi,
2158
- sl: gi,
2159
- sx: pi,
2160
- sf: vi
2161
- };
2162
- function ki({ children: e }) {
2163
- return /* @__PURE__ */ n.jsx("div", { className: ne.s, children: e });
2344
+ function Ui({ children: e }) {
2345
+ return /* @__PURE__ */ n.jsx("div", { className: ae.s, children: e });
2164
2346
  }
2165
- function bi({ children: e, className: t }) {
2347
+ function Vi({ children: e, className: t }) {
2166
2348
  let a = {};
2167
2349
  return t && (a.className = t), /* @__PURE__ */ n.jsx("div", { "data-form": "outline", ...a, children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
2168
2350
  }
2169
- function yi({ children: e }) {
2170
- return /* @__PURE__ */ n.jsx("div", { className: ne.c, children: e });
2171
- }
2172
- let Ve = {};
2173
- function Ci({
2174
- title: e,
2175
- children: t,
2176
- button: a,
2177
- tabs: r,
2178
- size: i = "m",
2179
- menu: s
2180
- }) {
2181
- const [l, c] = k.useState(!0), d = k.useRef(), _ = (f) => {
2182
- if (a) {
2183
- if (a.onClick)
2184
- return f(!1), a.onClick({ setOpen: c });
2185
- if (a.onSend)
2186
- return a.onSend({
2187
- setOpen: c,
2188
- disabled: f
2189
- });
2190
- }
2191
- }, u = () => {
2192
- d.current.setAttribute("shake", !0), setTimeout(() => {
2193
- d.current.setAttribute("shake", !1);
2194
- }, 1e3);
2195
- };
2196
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: l ? /* @__PURE__ */ n.jsxs(
2197
- "div",
2198
- {
2199
- className: `${ne.modal} ${ne.white}`,
2200
- children: [
2201
- /* @__PURE__ */ n.jsx("div", { className: ne.o, onClick: u }),
2202
- /* @__PURE__ */ n.jsxs(
2203
- "div",
2204
- {
2205
- className: [ne.w, ne[`s${i}`]].join(" "),
2206
- ref: d,
2207
- children: [
2208
- /* @__PURE__ */ n.jsxs("div", { className: ne.h, children: [
2209
- /* @__PURE__ */ n.jsx("div", { className: ne.t, children: e }),
2210
- /* @__PURE__ */ n.jsxs("div", { className: ne.m, children: [
2211
- r && /* @__PURE__ */ n.jsx("nav", { children: r.map((f, m) => /* @__PURE__ */ n.jsx(
2212
- "span",
2213
- {
2214
- onClick: f.onClick,
2215
- className: f.active ? "active" : "",
2216
- children: f.name
2217
- },
2218
- m
2219
- )) }),
2220
- s
2221
- ] }),
2222
- /* @__PURE__ */ n.jsx(
2223
- "div",
2224
- {
2225
- className: ne.x,
2226
- onClick: () => {
2227
- c(!1);
2228
- },
2229
- children: /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ n.jsx(
2230
- "path",
2231
- {
2232
- d: "M19.0005 4.99988L5.00045 18.9999M5.00045 4.99988L19.0005 18.9999",
2233
- stroke: "currentColor",
2234
- strokeWidth: "2.5",
2235
- strokeLinecap: "round",
2236
- strokeLinejoin: "round"
2237
- }
2238
- ) })
2239
- }
2240
- )
2241
- ] }),
2242
- t,
2243
- a !== void 0 ? /* @__PURE__ */ n.jsx(xr, { label: a.label, onSend: _ }) : ""
2244
- ]
2245
- }
2246
- )
2247
- ]
2248
- }
2249
- ) : "" });
2250
- }
2251
- function ji(e) {
2252
- Ve.add(/* @__PURE__ */ n.jsx(wi, { children: e }, String(Date.now())));
2253
- }
2254
- function wi({ children: e }) {
2255
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
2256
- }
2257
- function Si(e) {
2258
- if (e.target.classList[0] !== "modal")
2259
- return;
2260
- let t = e.target.children[0];
2261
- t.setAttribute("shake", !0), setTimeout(() => {
2262
- t.setAttribute("shake", !1);
2263
- }, 1e3);
2264
- }
2265
- function Ei({ type: e, name: t, params: a }) {
2266
- let [r, i] = k.useState(null);
2267
- return k.useEffect(() => {
2268
- Ve.config(e, t, a, i);
2269
- }, [a.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: r });
2270
- }
2271
- function Ti(e, t, a) {
2272
- Ve.config(e, t, a);
2273
- }
2274
- function Ri(e) {
2275
- Ve.x(e);
2276
- }
2277
- const bn = {
2278
- List: Ur,
2279
- Scroll: ki,
2280
- Main: Ci,
2281
- Add: ji,
2282
- Icon: Ei,
2283
- Open: Ti,
2284
- Shake: Si,
2285
- Form: bi,
2286
- Center: yi,
2287
- Close: Ri
2351
+ function Yi({ children: e }) {
2352
+ return /* @__PURE__ */ n.jsx("div", { className: ae.c, children: e });
2353
+ }
2354
+ const yn = {
2355
+ List: Zi,
2356
+ Scroll: Ui,
2357
+ Main: fi,
2358
+ Add: mi,
2359
+ Icon: gi,
2360
+ Open: pi,
2361
+ Shake: xi,
2362
+ Form: Vi,
2363
+ Center: Yi,
2364
+ Close: vi
2288
2365
  };
2289
- function bt({
2366
+ function yt({
2290
2367
  value: e,
2291
2368
  onValue: t,
2292
2369
  name: a,
@@ -2304,13 +2381,13 @@ function bt({
2304
2381
  options: g,
2305
2382
  className: v
2306
2383
  }) {
2307
- let [p, y] = k.useState(e), j = (C) => {
2384
+ let [p, y] = k.useState(e), w = (j) => {
2308
2385
  if (!(c && _) || !m)
2309
2386
  return;
2310
- let S = m.split(".");
2311
- bn.Open(S[0], S[1], {
2312
- callback: (w) => {
2313
- t && t({ value: w, name: a }), y(w);
2387
+ let E = m.split(".");
2388
+ yn.Open(E[0], E[1], {
2389
+ callback: (S) => {
2390
+ t && t({ value: S, name: a }), y(S);
2314
2391
  },
2315
2392
  onValue: t,
2316
2393
  options: g,
@@ -2320,14 +2397,14 @@ function bt({
2320
2397
  };
2321
2398
  const B = {};
2322
2399
  B.field = "input", v && (B.className = v);
2323
- const N = {};
2324
- return r && (N.placeholder = r), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...B, children: [
2400
+ const I = {};
2401
+ return r && (I.placeholder = r), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...B, children: [
2325
2402
  i && /* @__PURE__ */ n.jsx("dt", { children: i }),
2326
2403
  /* @__PURE__ */ n.jsx(
2327
2404
  "dd",
2328
2405
  {
2329
- ...N,
2330
- onClick: j,
2406
+ ...I,
2407
+ onClick: w,
2331
2408
  edit: (c && _) + "",
2332
2409
  "data-after": u,
2333
2410
  children: p
@@ -2336,7 +2413,7 @@ function bt({
2336
2413
  s && /* @__PURE__ */ n.jsx("em", { children: s })
2337
2414
  ] });
2338
2415
  }
2339
- function yt(e) {
2416
+ function Ct(e) {
2340
2417
  let t = e.value, a = (f) => e.type === "multi" ? f.replace(/[^+\d.+-]/g, "") : f.replace(/[^+\d.]/g, ""), r = (f, m) => {
2341
2418
  let h = document.createRange(), g = window.getSelection();
2342
2419
  h.setStart(m.childNodes[0], f), h.collapse(!0), g.removeAllRanges(), g.addRange(h), m.focus();
@@ -2385,7 +2462,7 @@ function yt(e) {
2385
2462
  }
2386
2463
  );
2387
2464
  }
2388
- function yn({
2465
+ function Cn({
2389
2466
  value: e,
2390
2467
  onValue: t,
2391
2468
  name: a,
@@ -2406,13 +2483,13 @@ function yn({
2406
2483
  }, h = (v) => {
2407
2484
  if (!s || !l)
2408
2485
  return;
2409
- const p = v.target.getBoundingClientRect(), y = p.left, j = p.top;
2410
- Fe.setListener(
2486
+ const p = v.target.getBoundingClientRect(), y = p.left, w = p.top;
2487
+ Se.setListener(
2411
2488
  "form",
2412
2489
  /* @__PURE__ */ n.jsx(
2413
- Bi,
2490
+ Hi,
2414
2491
  {
2415
- position: { x: y, y: j },
2492
+ position: { x: y, y: w },
2416
2493
  onValue: m,
2417
2494
  date: u
2418
2495
  },
@@ -2445,7 +2522,7 @@ function yn({
2445
2522
  }
2446
2523
  ) });
2447
2524
  }
2448
- const Bi = (e) => {
2525
+ const Hi = (e) => {
2449
2526
  let [t, a] = k.useState(!0), r = /* @__PURE__ */ new Date(), i = new Date(e.date), s = {
2450
2527
  y: parseInt(r.getFullYear()),
2451
2528
  m: parseInt(r.getMonth()) + 1
@@ -2460,12 +2537,12 @@ const Bi = (e) => {
2460
2537
  d(c - 1);
2461
2538
  }, m = (y) => {
2462
2539
  e.onValue(c + "-" + K.Number(2, y)), _();
2463
- }, h = (y) => s.y === l.y && s.m === y ? "_FFEB3B" : "", g = Array(12).fill("").map((y, j) => j + 1), v = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, p = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
2540
+ }, h = (y) => s.y === l.y && s.m === y ? "_FFEB3B" : "", g = Array(12).fill("").map((y, w) => w + 1), v = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, p = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
2464
2541
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2465
2542
  /* @__PURE__ */ n.jsx(
2466
2543
  "div",
2467
2544
  {
2468
- className: ye.o,
2545
+ className: je.o,
2469
2546
  onClick: () => _()
2470
2547
  },
2471
2548
  (/* @__PURE__ */ new Date()).getTime()
@@ -2473,7 +2550,7 @@ const Bi = (e) => {
2473
2550
  /* @__PURE__ */ n.jsxs(
2474
2551
  "div",
2475
2552
  {
2476
- className: ye.c,
2553
+ className: je.c,
2477
2554
  style: { top: v + "px", left: p + "px" },
2478
2555
  children: [
2479
2556
  /* @__PURE__ */ n.jsxs("s", { children: [
@@ -2484,7 +2561,7 @@ const Bi = (e) => {
2484
2561
  /* @__PURE__ */ n.jsx(
2485
2562
  "div",
2486
2563
  {
2487
- children: g.map((y, j) => /* @__PURE__ */ n.jsx(
2564
+ children: g.map((y, w) => /* @__PURE__ */ n.jsx(
2488
2565
  "span",
2489
2566
  {
2490
2567
  onClick: () => {
@@ -2493,7 +2570,7 @@ const Bi = (e) => {
2493
2570
  color: h(y),
2494
2571
  children: /* @__PURE__ */ n.jsx("b", { children: K.Month(y).abc })
2495
2572
  },
2496
- j
2573
+ w
2497
2574
  ))
2498
2575
  }
2499
2576
  )
@@ -2502,7 +2579,7 @@ const Bi = (e) => {
2502
2579
  )
2503
2580
  ] }) : "" });
2504
2581
  };
2505
- function Cn(e) {
2582
+ function jn(e) {
2506
2583
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", [r, i] = k.useState(!1), s = e.edit !== void 0 ? e.edit : !0, l = e.active !== void 0 ? e.active : !0, d = !!(e.hide && (e.value === "" || e.value === void 0)) && !(s && l);
2507
2584
  r = s ? !0 : r;
2508
2585
  let _ = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (p) => {
@@ -2538,7 +2615,7 @@ function Cn(e) {
2538
2615
  a()
2539
2616
  ] });
2540
2617
  }
2541
- function Ct({
2618
+ function jt({
2542
2619
  onValue: e,
2543
2620
  active: t,
2544
2621
  max: a,
@@ -2556,19 +2633,19 @@ function Ct({
2556
2633
  }) {
2557
2634
  let g = () => i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "", v = () => s ? /* @__PURE__ */ n.jsx("em", { children: s }) : "";
2558
2635
  r = r !== void 0 ? r : !0, t = t !== void 0 ? t : !0, c = !!(c && (d === "" || d === void 0)) && !(r && t), _ = _ !== void 0 ? _ : "", a = a !== void 0 ? a : 99;
2559
- let y = !1, j = (E) => {
2560
- e && e({ value: E.target.textContent, name: f });
2561
- }, B = (E) => {
2562
- if (!(y && E.which === 86)) {
2563
- if (E.which === 17 || E.which === 91)
2636
+ let y = !1, w = (T) => {
2637
+ e && e({ value: T.target.textContent, name: f });
2638
+ }, B = (T) => {
2639
+ if (!(y && T.which === 86)) {
2640
+ if (T.which === 17 || T.which === 91)
2564
2641
  return y = !0;
2565
- E.key !== "Backspace" && (E.target.textContent.length === a && E.preventDefault(), E.key === "Enter" && E.preventDefault(), isNaN(parseInt(String.fromCharCode(E.which))) && E.preventDefault());
2642
+ T.key !== "Backspace" && (T.target.textContent.length === a && T.preventDefault(), T.key === "Enter" && T.preventDefault(), isNaN(parseInt(String.fromCharCode(T.which))) && T.preventDefault());
2566
2643
  }
2567
- }, N = (E) => {
2568
- if (E.which === 17 || E.which === 91)
2644
+ }, I = (T) => {
2645
+ if (T.which === 17 || T.which === 91)
2569
2646
  return y = !1;
2570
- }, C = (E) => {
2571
- E.preventDefault(), navigator.clipboard.readText().then((O) => {
2647
+ }, j = (T) => {
2648
+ T.preventDefault(), navigator.clipboard.readText().then((O) => {
2572
2649
  O = O.replace(/\D/g, ""), window.document.execCommand(
2573
2650
  "insertText",
2574
2651
  !1,
@@ -2577,19 +2654,19 @@ function Ct({
2577
2654
  }).catch((O) => {
2578
2655
  });
2579
2656
  };
2580
- const S = {};
2581
- S.field = "input", u && (S.className = u);
2582
- let w = {};
2583
- return r && t ? (w.edit = "true", w.contentEditable = "plaintext-only") : w.contentEditable = "false", _ && (w.placeholder = _), m && (w.after = m), c ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
2657
+ const E = {};
2658
+ E.field = "input", u && (E.className = u);
2659
+ let S = {};
2660
+ return r && t ? (S.edit = "true", S.contentEditable = "plaintext-only") : S.contentEditable = "false", _ && (S.placeholder = _), m && (S.after = m), c ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...E, children: [
2584
2661
  g(),
2585
2662
  /* @__PURE__ */ n.jsx(
2586
2663
  "dd",
2587
2664
  {
2588
- ...w,
2589
- onPaste: C,
2590
- onInput: j,
2665
+ ...S,
2666
+ onPaste: j,
2667
+ onInput: w,
2591
2668
  onKeyDown: B,
2592
- onKeyUp: N,
2669
+ onKeyUp: I,
2593
2670
  suppressContentEditableWarning: !0,
2594
2671
  children: d
2595
2672
  }
@@ -2597,7 +2674,7 @@ function Ct({
2597
2674
  v()
2598
2675
  ] });
2599
2676
  }
2600
- function jn({
2677
+ function wn({
2601
2678
  value: e,
2602
2679
  onValue: t,
2603
2680
  name: a,
@@ -2649,7 +2726,7 @@ function jn({
2649
2726
  l ? /* @__PURE__ */ n.jsx("em", { children: l }) : ""
2650
2727
  ] });
2651
2728
  }
2652
- const st = {
2729
+ const ot = {
2653
2730
  0: {
2654
2731
  name: "Heard Island and Mcdonald Islands",
2655
2732
  dial_code: "+0",
@@ -4031,7 +4108,7 @@ const st = {
4031
4108
  mask: "+1939(___) ___-__-__"
4032
4109
  }
4033
4110
  };
4034
- function jt({
4111
+ function wt({
4035
4112
  value: e,
4036
4113
  onValue: t,
4037
4114
  onSave: a,
@@ -4048,43 +4125,43 @@ function jt({
4048
4125
  className: h = ""
4049
4126
  }) {
4050
4127
  d = d !== void 0 ? d : !0, _ = _ !== void 0 ? _ : !0, c = !!(c && (e === "" || e === void 0)) && !(d && _), k.useRef(null);
4051
- let v = "+_(___) ___-__-__", p = !0, y = 0, j = (A, F) => {
4128
+ let v = "+_(___) ___-__-__", p = !0, y = 0, w = (A, P) => {
4052
4129
  let V = document.createRange(), Y = window.getSelection();
4053
- V.setStart(F.childNodes[0], A), V.collapse(!0), Y.removeAllRanges(), Y.addRange(V), F.focus();
4130
+ V.setStart(P.childNodes[0], A), V.collapse(!0), Y.removeAllRanges(), Y.addRange(V), P.focus();
4054
4131
  }, B = (A) => {
4055
- A.preventDefault(), navigator.clipboard.readText().then((F) => {
4056
- window.document.execCommand("insertText", !1, F);
4057
- }).catch((F) => {
4132
+ A.preventDefault(), navigator.clipboard.readText().then((P) => {
4133
+ window.document.execCommand("insertText", !1, P);
4134
+ }).catch((P) => {
4058
4135
  });
4059
- }, N = (A) => {
4060
- let F = 0, V = "", Y = A.replace(/\D/g, "");
4136
+ }, I = (A) => {
4137
+ let P = 0, V = "", Y = A.replace(/\D/g, "");
4061
4138
  Y === "" && (p = !0);
4062
- let Le = Y.split(""), te = "";
4063
- Le.forEach(($e) => {
4064
- p && (te += $e, st[te] !== void 0 && p ? (p = !1, v = st[te].mask.replace(new RegExp("[0-9]", "g"), "_"), V = st[te].code) : (p && (y = ("" + te).length, v = `+${te}_(___) ___-__-__`.replace(
4139
+ let Oe = Y.split(""), ne = "";
4140
+ Oe.forEach((Ae) => {
4141
+ p && (ne += Ae, ot[ne] !== void 0 && p ? (p = !1, v = ot[ne].mask.replace(new RegExp("[0-9]", "g"), "_"), V = ot[ne].code) : (p && (y = ("" + ne).length, v = `+${ne}_(___) ___-__-__`.replace(
4065
4142
  new RegExp("[0-9]", "g"),
4066
4143
  "_"
4067
- ), V = ""), y > ("" + te).length && (p = !0, v = `+${te}_(___) ___-__-__`.replace(
4144
+ ), V = ""), y > ("" + ne).length && (p = !0, v = `+${ne}_(___) ___-__-__`.replace(
4068
4145
  new RegExp("[0-9]", "g"),
4069
4146
  "_"
4070
4147
  ), V = "")));
4071
4148
  });
4072
- let Se = v.replace(/\D/g, "");
4073
- return Se.length >= Y.length && (Y = Se), { q: v.replace(/[_\d]/g, function() {
4074
- return Y.charAt(F++) || "_";
4075
- }), i: F, v: Y, f: V };
4076
- }, C = (A) => {
4149
+ let Te = v.replace(/\D/g, "");
4150
+ return Te.length >= Y.length && (Y = Te), { q: v.replace(/[_\d]/g, function() {
4151
+ return Y.charAt(P++) || "_";
4152
+ }), i: P, v: Y, f: V };
4153
+ }, j = (A) => {
4077
4154
  A.preventDefault(), navigator.clipboard.writeText(A.target.textContent.replace(/\D/g, "")).then(
4078
4155
  function() {
4079
- Ke.Copy("Данные в буфер обмене");
4156
+ Ue.Copy("Данные в буфер обмене");
4080
4157
  },
4081
- function(F) {
4158
+ function(P) {
4082
4159
  }
4083
4160
  );
4084
- }, S = N(e), w = (A) => {
4085
- let F = N(A.target.textContent);
4086
- A.target.textContent = F.q, F.i = F.q.lastIndexOf(F.v.substr(-1)), F.i < F.q.length && F.q !== v ? F.i++ : F.i = F.q.indexOf("_"), j(F.i, A.target), t && t({ value: F.q.replace(/\D/g, ""), name: r });
4087
- }, E = (A) => {
4161
+ }, E = I(e), S = (A) => {
4162
+ let P = I(A.target.textContent);
4163
+ A.target.textContent = P.q, P.i = P.q.lastIndexOf(P.v.substr(-1)), P.i < P.q.length && P.q !== v ? P.i++ : P.i = P.q.indexOf("_"), w(P.i, A.target), t && t({ value: P.q.replace(/\D/g, ""), name: r });
4164
+ }, T = (A) => {
4088
4165
  A.key === "Enter" && A.preventDefault();
4089
4166
  };
4090
4167
  const O = (A) => {
@@ -4102,18 +4179,18 @@ function jt({
4102
4179
  {
4103
4180
  ...ie,
4104
4181
  onPaste: B,
4105
- onInput: w,
4106
- onKeyDown: E,
4107
- onContextMenu: C,
4182
+ onInput: S,
4183
+ onKeyDown: T,
4184
+ onContextMenu: j,
4108
4185
  onBlur: O,
4109
4186
  suppressContentEditableWarning: !0,
4110
- children: S.q
4187
+ children: E.q
4111
4188
  }
4112
4189
  ),
4113
4190
  l && /* @__PURE__ */ n.jsx("em", { children: l })
4114
4191
  ] });
4115
4192
  }
4116
- const wn = (e) => {
4193
+ const Sn = (e) => {
4117
4194
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", s = 0, l = () => {
4118
4195
  clearTimeout(s), s = setTimeout(() => {
4119
4196
  }, 1e3);
@@ -4148,7 +4225,7 @@ const wn = (e) => {
4148
4225
  }
4149
4226
  );
4150
4227
  };
4151
- function wt({
4228
+ function St({
4152
4229
  title: e,
4153
4230
  error: t,
4154
4231
  edit: a = !0,
@@ -4169,13 +4246,13 @@ function wt({
4169
4246
  }, p = (B) => {
4170
4247
  if (!(a && r))
4171
4248
  return;
4172
- const N = B.target.getBoundingClientRect();
4173
- Fe.setListener(
4249
+ const I = B.target.getBoundingClientRect();
4250
+ Se.setListener(
4174
4251
  "form",
4175
4252
  /* @__PURE__ */ n.jsx(
4176
- Ni,
4253
+ qi,
4177
4254
  {
4178
- parent: N,
4255
+ parent: I,
4179
4256
  onValue: v,
4180
4257
  view: f,
4181
4258
  options: c
@@ -4183,14 +4260,14 @@ function wt({
4183
4260
  (/* @__PURE__ */ new Date()).getTime()
4184
4261
  )
4185
4262
  );
4186
- }, y = { field: "select" }, j = { onClick: p };
4187
- return d && (j.placeholder = d), u && (j.after = u), a && r && (j.edit = ""), i ? "" : /* @__PURE__ */ n.jsxs("dl", { ...y, children: [
4263
+ }, y = { field: "select" }, w = { onClick: p };
4264
+ return d && (w.placeholder = d), u && (w.after = u), a && r && (w.edit = ""), i ? "" : /* @__PURE__ */ n.jsxs("dl", { ...y, children: [
4188
4265
  e && /* @__PURE__ */ n.jsx("dt", { children: e }),
4189
- /* @__PURE__ */ n.jsx("dd", { ...j, ref: m, children: g }),
4266
+ /* @__PURE__ */ n.jsx("dd", { ...w, ref: m, children: g }),
4190
4267
  t && /* @__PURE__ */ n.jsx("em", { children: t })
4191
4268
  ] });
4192
4269
  }
4193
- const Ni = ({ onValue: e, parent: t, view: a, options: r }) => {
4270
+ const qi = ({ onValue: e, parent: t, view: a, options: r }) => {
4194
4271
  let [i, s] = k.useState(!0), l = () => {
4195
4272
  s(!1);
4196
4273
  }, c = (u) => {
@@ -4230,7 +4307,7 @@ const Ni = ({ onValue: e, parent: t, view: a, options: r }) => {
4230
4307
  )
4231
4308
  ] }) : "" });
4232
4309
  };
4233
- function St(e) {
4310
+ function Et(e) {
4234
4311
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, i = e.active !== void 0 ? e.active : !0, l = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(r && i), c = e.placeholder !== void 0 ? e.placeholder : "", d = (h) => {
4235
4312
  u(e.options[h]), e.onValue({ value: h, name: e.name });
4236
4313
  }, [_, u] = k.useState(
@@ -4239,10 +4316,10 @@ function St(e) {
4239
4316
  if (!(r && i))
4240
4317
  return;
4241
4318
  const g = h.target.getBoundingClientRect();
4242
- Fe.setListener(
4319
+ Se.setListener(
4243
4320
  "form",
4244
4321
  /* @__PURE__ */ n.jsx(
4245
- Di,
4322
+ Ji,
4246
4323
  {
4247
4324
  parent: g,
4248
4325
  onValue: d,
@@ -4274,7 +4351,7 @@ function St(e) {
4274
4351
  }
4275
4352
  );
4276
4353
  }
4277
- const Di = ({ onValue: e, parent: t, view: a, options: r }) => {
4354
+ const Ji = ({ onValue: e, parent: t, view: a, options: r }) => {
4278
4355
  let [i, s] = k.useState(!0), l = () => {
4279
4356
  s(!1);
4280
4357
  }, c = (f) => {
@@ -4312,7 +4389,7 @@ const Di = ({ onValue: e, parent: t, view: a, options: r }) => {
4312
4389
  )
4313
4390
  ] }) : "" });
4314
4391
  };
4315
- function ut({
4392
+ function mt({
4316
4393
  set: e,
4317
4394
  value: t,
4318
4395
  onValue: a,
@@ -4334,7 +4411,7 @@ function ut({
4334
4411
  switch (e) {
4335
4412
  case "Input":
4336
4413
  return /* @__PURE__ */ n.jsx(
4337
- De,
4414
+ Fe,
4338
4415
  {
4339
4416
  title: s,
4340
4417
  show: _,
@@ -4351,7 +4428,7 @@ function ut({
4351
4428
  );
4352
4429
  case "Select":
4353
4430
  return g && (p = ce.getSelect(parseInt(g)) ? ce.getSelect(parseInt(g)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
4354
- wt,
4431
+ St,
4355
4432
  {
4356
4433
  title: s,
4357
4434
  show: _,
@@ -4369,7 +4446,7 @@ function ut({
4369
4446
  );
4370
4447
  case "Users":
4371
4448
  return ce.getSelect("user"), /* @__PURE__ */ n.jsx(
4372
- St,
4449
+ Et,
4373
4450
  {
4374
4451
  title: s,
4375
4452
  show: _,
@@ -4387,7 +4464,7 @@ function ut({
4387
4464
  );
4388
4465
  case "Date":
4389
4466
  return /* @__PURE__ */ n.jsx(
4390
- kt,
4467
+ bt,
4391
4468
  {
4392
4469
  title: s,
4393
4470
  show: _,
@@ -4404,7 +4481,7 @@ function ut({
4404
4481
  );
4405
4482
  case "Phone":
4406
4483
  return /* @__PURE__ */ n.jsx(
4407
- jt,
4484
+ wt,
4408
4485
  {
4409
4486
  title: s,
4410
4487
  show: _,
@@ -4421,7 +4498,7 @@ function ut({
4421
4498
  );
4422
4499
  case "Number":
4423
4500
  return /* @__PURE__ */ n.jsx(
4424
- Ct,
4501
+ jt,
4425
4502
  {
4426
4503
  title: s,
4427
4504
  show: _,
@@ -4438,7 +4515,7 @@ function ut({
4438
4515
  );
4439
4516
  case "Money":
4440
4517
  return /* @__PURE__ */ n.jsx(
4441
- yt,
4518
+ Ct,
4442
4519
  {
4443
4520
  title: s,
4444
4521
  show: _,
@@ -4455,7 +4532,7 @@ function ut({
4455
4532
  );
4456
4533
  case "Modal":
4457
4534
  return /* @__PURE__ */ n.jsx(
4458
- bt,
4535
+ yt,
4459
4536
  {
4460
4537
  title: s,
4461
4538
  show: _,
@@ -4474,7 +4551,7 @@ function ut({
4474
4551
  );
4475
4552
  }
4476
4553
  }
4477
- function Sn({
4554
+ function En({
4478
4555
  value: e,
4479
4556
  onValue: t,
4480
4557
  name: a,
@@ -4494,14 +4571,14 @@ function Sn({
4494
4571
  let v = !!(l && (e === "" || e === void 0));
4495
4572
  if (!(c && d) && !u || !(c && d) && v)
4496
4573
  return "";
4497
- let p = (N) => {
4498
- t && t({ value: N.target.innerText, name: a });
4499
- }, y = (N) => {
4500
- h && h({ value: N.target.innerText, name: a });
4501
- }, j = (N) => {
4502
- N.preventDefault(), navigator.clipboard.readText().then((C) => {
4503
- window.document.execCommand("insertText", !1, C);
4504
- }).catch((C) => {
4574
+ let p = (I) => {
4575
+ t && t({ value: I.target.innerText, name: a });
4576
+ }, y = (I) => {
4577
+ h && h({ value: I.target.innerText, name: a });
4578
+ }, w = (I) => {
4579
+ I.preventDefault(), navigator.clipboard.readText().then((j) => {
4580
+ window.document.execCommand("insertText", !1, j);
4581
+ }).catch((j) => {
4505
4582
  });
4506
4583
  };
4507
4584
  const B = {};
@@ -4510,7 +4587,7 @@ function Sn({
4510
4587
  /* @__PURE__ */ n.jsx(
4511
4588
  "dd",
4512
4589
  {
4513
- onPaste: j,
4590
+ onPaste: w,
4514
4591
  onBlur: y,
4515
4592
  onInput: p,
4516
4593
  contentEditable: c && d ? "plaintext-only" : "false",
@@ -4522,7 +4599,7 @@ function Sn({
4522
4599
  s ?? /* @__PURE__ */ n.jsx("em", { children: s })
4523
4600
  ] });
4524
4601
  }
4525
- function En({
4602
+ function Tn({
4526
4603
  value: e,
4527
4604
  onValue: t,
4528
4605
  name: a,
@@ -4542,42 +4619,42 @@ function En({
4542
4619
  let v = !!(l && (e === "" || e === void 0)), p = K.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), y = k.useRef(null);
4543
4620
  if (!(c && d) && !u || !(c && d) && v)
4544
4621
  return "";
4545
- let j = (w) => {
4546
- y.current.textContent = w, t && t({ value: w, name: a });
4547
- }, B = (w) => {
4548
- h && h({ value: w, name: a });
4549
- }, N = (w) => {
4550
- const E = w.target.getBoundingClientRect(), O = E.left, q = E.top;
4551
- Fe.setListener(
4622
+ let w = (S) => {
4623
+ y.current.textContent = S, t && t({ value: S, name: a });
4624
+ }, B = (S) => {
4625
+ h && h({ value: S, name: a });
4626
+ }, I = (S) => {
4627
+ const T = S.target.getBoundingClientRect(), O = T.left, q = T.top;
4628
+ Se.setListener(
4552
4629
  "form",
4553
4630
  /* @__PURE__ */ n.jsx(
4554
- Ii,
4631
+ Xi,
4555
4632
  {
4556
4633
  positions: { x: O, y: q },
4557
4634
  onSave: B,
4558
- onValue: j,
4635
+ onValue: w,
4559
4636
  date: p
4560
4637
  },
4561
4638
  (/* @__PURE__ */ new Date()).getTime()
4562
4639
  )
4563
4640
  );
4564
4641
  };
4565
- const C = {};
4566
- C.field = "input", g && (C.className = g);
4567
- const S = {};
4568
- return r && (S.placeholder = r), /* @__PURE__ */ n.jsx(n.Fragment, { children: f === "icon" ? /* @__PURE__ */ n.jsx(
4642
+ const j = {};
4643
+ j.field = "input", g && (j.className = g);
4644
+ const E = {};
4645
+ return r && (E.placeholder = r), /* @__PURE__ */ n.jsx(n.Fragment, { children: f === "icon" ? /* @__PURE__ */ n.jsx(
4569
4646
  "i",
4570
4647
  {
4571
4648
  "data-icon": "F043",
4572
- onClick: N
4649
+ onClick: I
4573
4650
  }
4574
- ) : /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
4651
+ ) : /* @__PURE__ */ n.jsxs("dl", { ...j, children: [
4575
4652
  i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "",
4576
- /* @__PURE__ */ n.jsx("dd", { onClick: N, ref: y, ...S, children: p }),
4653
+ /* @__PURE__ */ n.jsx("dd", { onClick: I, ref: y, ...E, children: p }),
4577
4654
  s ? /* @__PURE__ */ n.jsx("em", { children: s }) : ""
4578
4655
  ] }) });
4579
4656
  }
4580
- const Ii = ({ positions: e, onSave: t, onValue: a, date: r }) => {
4657
+ const Xi = ({ positions: e, onSave: t, onValue: a, date: r }) => {
4581
4658
  let i = r.split(":"), s = {
4582
4659
  h: K.Number(2, i[0]),
4583
4660
  m: K.Number(2, i[1])
@@ -4595,65 +4672,65 @@ const Ii = ({ positions: e, onSave: t, onValue: a, date: r }) => {
4595
4672
  _ = !0;
4596
4673
  }, g = () => {
4597
4674
  _ = !1, l = l === "hour" ? "time" : "hour", m.body.current.setAttribute("active", l);
4598
- }, v = (S) => {
4675
+ }, v = (E) => {
4599
4676
  if (_) {
4600
- let E = Math.atan2(
4601
- S.pageX - (c.x + 78),
4602
- S.pageY - (c.y + 78)
4677
+ let T = Math.atan2(
4678
+ E.pageX - (c.x + 78),
4679
+ E.pageY - (c.y + 78)
4603
4680
  ) * (180 / Math.PI) * -1 + 180;
4604
- m[l].current.style.transform = "rotate(" + E + "deg)", l === "hour" ? (s = {
4681
+ m[l].current.style.transform = "rotate(" + T + "deg)", l === "hour" ? (s = {
4605
4682
  ...s,
4606
- h: K.Number(2, parseInt(String(E / 15), 10))
4683
+ h: K.Number(2, parseInt(String(T / 15), 10))
4607
4684
  }, m.hourText.current.textContent = s.h) : (s = {
4608
4685
  ...s,
4609
- m: K.Number(2, parseInt(String(E / 6), 10))
4686
+ m: K.Number(2, parseInt(String(T / 6), 10))
4610
4687
  }, m.timeText.current.textContent = s.m), a(s.h + ":" + s.m);
4611
4688
  }
4612
- }, p = (S) => {
4689
+ }, p = (E) => {
4613
4690
  if (l === "hour")
4614
- if (S.deltaY > 0) {
4615
- u += S.deltaY;
4616
- let w = parseInt(String(u / 50));
4617
- if (f !== w) {
4618
- f = w;
4619
- let E = parseInt(s.h, 10) + 1;
4620
- E = E > 23 ? 0 : E, s = { ...s, h: K.Number(2, E) }, m.hourText.current.textContent = s.h, m[l].current.style.transform = "rotate(" + s.h * 15 + "deg)";
4691
+ if (E.deltaY > 0) {
4692
+ u += E.deltaY;
4693
+ let S = parseInt(String(u / 50));
4694
+ if (f !== S) {
4695
+ f = S;
4696
+ let T = parseInt(s.h, 10) + 1;
4697
+ T = T > 23 ? 0 : T, s = { ...s, h: K.Number(2, T) }, m.hourText.current.textContent = s.h, m[l].current.style.transform = "rotate(" + s.h * 15 + "deg)";
4621
4698
  }
4622
4699
  } else {
4623
- u -= S.deltaY;
4624
- let w = parseInt(String(u / 50));
4625
- if (f !== w) {
4626
- f = w;
4627
- let E = parseInt(s.h, 10) - 1;
4628
- E = E < 0 ? 23 : E, s = { ...s, h: K.Number(2, E) }, m.hourText.current.textContent = s.h, m[l].current.style.transform = "rotate(" + s.h * 15 + "deg)";
4700
+ u -= E.deltaY;
4701
+ let S = parseInt(String(u / 50));
4702
+ if (f !== S) {
4703
+ f = S;
4704
+ let T = parseInt(s.h, 10) - 1;
4705
+ T = T < 0 ? 23 : T, s = { ...s, h: K.Number(2, T) }, m.hourText.current.textContent = s.h, m[l].current.style.transform = "rotate(" + s.h * 15 + "deg)";
4629
4706
  }
4630
4707
  }
4631
- else if (S.deltaY > 0) {
4632
- u += S.deltaY;
4633
- let w = parseInt(String(u / 50));
4634
- if (f !== w) {
4635
- f = w;
4636
- let E = parseInt(s.m, 10) + 1;
4637
- E = E > 59 ? 0 : E, s = { ...s, m: K.Number(2, E) }, m.timeText.current.textContent = s.m, m[l].current.style.transform = "rotate(" + s.m * 6 + "deg)";
4708
+ else if (E.deltaY > 0) {
4709
+ u += E.deltaY;
4710
+ let S = parseInt(String(u / 50));
4711
+ if (f !== S) {
4712
+ f = S;
4713
+ let T = parseInt(s.m, 10) + 1;
4714
+ T = T > 59 ? 0 : T, s = { ...s, m: K.Number(2, T) }, m.timeText.current.textContent = s.m, m[l].current.style.transform = "rotate(" + s.m * 6 + "deg)";
4638
4715
  }
4639
4716
  } else {
4640
- u -= S.deltaY;
4641
- let w = parseInt(String(u / 50));
4642
- if (f !== w) {
4643
- f = w;
4644
- let E = parseInt(s.m, 10) - 1;
4645
- E = E < 0 ? 59 : E, s = { ...s, m: K.Number(2, E) }, m.timeText.current.textContent = s.m, m[l].current.style.transform = "rotate(" + s.m * 6 + "deg)";
4717
+ u -= E.deltaY;
4718
+ let S = parseInt(String(u / 50));
4719
+ if (f !== S) {
4720
+ f = S;
4721
+ let T = parseInt(s.m, 10) - 1;
4722
+ T = T < 0 ? 59 : T, s = { ...s, m: K.Number(2, T) }, m.timeText.current.textContent = s.m, m[l].current.style.transform = "rotate(" + s.m * 6 + "deg)";
4646
4723
  }
4647
4724
  }
4648
4725
  a(s.h + ":" + s.m);
4649
- }, [y, j] = k.useState(!0), B = () => {
4650
- j(!1), t(s.h + ":" + s.m);
4651
- }, N = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, C = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
4726
+ }, [y, w] = k.useState(!0), B = () => {
4727
+ w(!1), t(s.h + ":" + s.m);
4728
+ }, I = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, j = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
4652
4729
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: y ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4653
4730
  /* @__PURE__ */ n.jsx(
4654
4731
  "div",
4655
4732
  {
4656
- className: ye.o,
4733
+ className: je.o,
4657
4734
  onClick: () => B()
4658
4735
  },
4659
4736
  (/* @__PURE__ */ new Date()).getTime()
@@ -4661,13 +4738,13 @@ const Ii = ({ positions: e, onSave: t, onValue: a, date: r }) => {
4661
4738
  /* @__PURE__ */ n.jsxs(
4662
4739
  "div",
4663
4740
  {
4664
- className: ye.c,
4741
+ className: je.c,
4665
4742
  onMouseDown: h,
4666
4743
  onMouseUp: g,
4667
4744
  onMouseMove: v,
4668
4745
  onWheel: p,
4669
4746
  ref: m.body,
4670
- style: { top: N + "px", left: C + "px" },
4747
+ style: { top: I + "px", left: j + "px" },
4671
4748
  children: [
4672
4749
  /* @__PURE__ */ n.jsx("div", { className: "b" }),
4673
4750
  /* @__PURE__ */ n.jsxs("div", { className: "s", children: [
@@ -4684,7 +4761,7 @@ const Ii = ({ positions: e, onSave: t, onValue: a, date: r }) => {
4684
4761
  )
4685
4762
  ] }) : "" });
4686
4763
  };
4687
- function Tn({
4764
+ function Rn({
4688
4765
  onValue: e,
4689
4766
  label: t,
4690
4767
  value: a,
@@ -4704,7 +4781,7 @@ function Tn({
4704
4781
  /* @__PURE__ */ n.jsx("dd", { ...u, onClick: d })
4705
4782
  ] });
4706
4783
  }
4707
- const Rn = ({ onValue: e, value: t, name: a, item: r }) => {
4784
+ const Bn = ({ onValue: e, value: t, name: a, item: r }) => {
4708
4785
  const [i, s] = k.useState(!!t);
4709
4786
  k.useEffect(() => {
4710
4787
  s(!!t);
@@ -4722,7 +4799,7 @@ const Rn = ({ onValue: e, value: t, name: a, item: r }) => {
4722
4799
  }
4723
4800
  );
4724
4801
  };
4725
- function Bn({
4802
+ function In({
4726
4803
  value: e,
4727
4804
  onValue: t,
4728
4805
  name: a,
@@ -4747,23 +4824,23 @@ function Bn({
4747
4824
  }, [e]);
4748
4825
  let y = () => {
4749
4826
  p([...v, ""]);
4750
- }, j = (O) => {
4827
+ }, w = (O) => {
4751
4828
  v.splice(O, 1), v.length === 0 && v.push(""), p([...v]), m !== void 0 && m({ value: v.join(","), name: a });
4752
- }, B = !!(l && (e === "" || e === void 0)), N = (O) => {
4829
+ }, B = !!(l && (e === "" || e === void 0)), I = (O) => {
4753
4830
  };
4754
4831
  if (!(c && d) && !u || !(c && d) && B)
4755
4832
  return "";
4756
- const C = {};
4757
- C.field = "group", g && (C.className = g);
4758
- const S = (O) => {
4833
+ const j = {};
4834
+ j.field = "group", g && (j.className = g);
4835
+ const E = (O) => {
4759
4836
  le.Blur(O), h && h({ value: O.target.textContent, name: a });
4760
4837
  };
4761
- let w = (O, q) => {
4838
+ let S = (O, q) => {
4762
4839
  v[q] = O.target.textContent, t !== void 0 && t({ value: v.join(","), name: a });
4763
- }, E = (O) => {
4840
+ }, T = (O) => {
4764
4841
  O.key === "Enter" && O.preventDefault();
4765
4842
  };
4766
- return /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
4843
+ return /* @__PURE__ */ n.jsxs("dl", { ...j, children: [
4767
4844
  /* @__PURE__ */ n.jsxs("dt", { children: [
4768
4845
  i,
4769
4846
  /* @__PURE__ */ n.jsx("i", { onClick: y, children: /* @__PURE__ */ n.jsxs(
@@ -4787,14 +4864,14 @@ function Bn({
4787
4864
  /* @__PURE__ */ n.jsx(
4788
4865
  "span",
4789
4866
  {
4790
- onInput: (ie) => w(ie, q),
4867
+ onInput: (ie) => S(ie, q),
4791
4868
  edit: "true",
4792
4869
  name: a,
4793
4870
  placeholder: r,
4794
- onPaste: N,
4871
+ onPaste: I,
4795
4872
  contentEditable: !0,
4796
- onKeyDown: E,
4797
- onBlur: S,
4873
+ onKeyDown: T,
4874
+ onBlur: E,
4798
4875
  suppressContentEditableWarning: !0,
4799
4876
  children: v[q]
4800
4877
  }
@@ -4803,7 +4880,7 @@ function Bn({
4803
4880
  "i",
4804
4881
  {
4805
4882
  onClick: () => {
4806
- j(q);
4883
+ w(q);
4807
4884
  },
4808
4885
  children: /* @__PURE__ */ n.jsxs(
4809
4886
  "svg",
@@ -4827,7 +4904,7 @@ function Bn({
4827
4904
  s ? /* @__PURE__ */ n.jsx("em", { children: s }) : ""
4828
4905
  ] });
4829
4906
  }
4830
- const Mi = (e) => (e = e !== void 0 && e !== "" ? e.split(",") : [], e.reduce((t, a) => (t[a] = !0, t), {}));
4907
+ const Qi = (e) => (e = e !== void 0 && e !== "" ? e.split(",") : [], e.reduce((t, a) => (t[a] = !0, t), {}));
4831
4908
  function Nn({
4832
4909
  value: e,
4833
4910
  onValue: t,
@@ -4846,13 +4923,13 @@ function Nn({
4846
4923
  options: g,
4847
4924
  className: v
4848
4925
  }) {
4849
- const [p, y] = k.useState(Mi(e)), j = (C) => {
4926
+ const [p, y] = k.useState(Qi(e)), w = (j) => {
4850
4927
  if (!(c && _) || !m)
4851
4928
  return;
4852
- let S = m.split(".");
4853
- bn.Open(S[0], S[1], {
4854
- callback: (w) => {
4855
- t && t({ value: w, name: a }), y(w);
4929
+ let E = m.split(".");
4930
+ yn.Open(E[0], E[1], {
4931
+ callback: (S) => {
4932
+ t && t({ value: S, name: a }), y(S);
4856
4933
  },
4857
4934
  onValue: t,
4858
4935
  options: g,
@@ -4861,11 +4938,11 @@ function Nn({
4861
4938
  });
4862
4939
  }, B = {};
4863
4940
  B.field = "group", v && (B.className = v);
4864
- const N = {};
4865
- return r && (N.placeholder = r), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...B, children: [
4941
+ const I = {};
4942
+ return r && (I.placeholder = r), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...B, children: [
4866
4943
  /* @__PURE__ */ n.jsxs("dt", { children: [
4867
4944
  i,
4868
- /* @__PURE__ */ n.jsx("i", { onClick: j, children: /* @__PURE__ */ n.jsxs(
4945
+ /* @__PURE__ */ n.jsx("i", { onClick: w, children: /* @__PURE__ */ n.jsxs(
4869
4946
  "svg",
4870
4947
  {
4871
4948
  width: "20",
@@ -4886,57 +4963,57 @@ function Nn({
4886
4963
  /* @__PURE__ */ n.jsx(
4887
4964
  "dd",
4888
4965
  {
4889
- ...N,
4966
+ ...I,
4890
4967
  onClick: open,
4891
4968
  edit: (c && _) + "",
4892
4969
  "data-after": u,
4893
- children: Object.keys(p).map((C) => {
4894
- var S;
4895
- return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (S = g[C]) == null ? void 0 : S.label }, C);
4970
+ children: Object.keys(p).map((j) => {
4971
+ var E;
4972
+ return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (E = g[j]) == null ? void 0 : E.label }, j);
4896
4973
  })
4897
4974
  }
4898
4975
  ),
4899
4976
  s && /* @__PURE__ */ n.jsx("em", { children: s })
4900
4977
  ] });
4901
4978
  }
4902
- const Fi = {
4903
- Color: kn,
4904
- Date: kt,
4905
- Code: vn,
4906
- Check: Tn,
4907
- Switch: mn,
4908
- Input: De,
4909
- Button: hn,
4910
- Message: xn,
4911
- Generator: gn,
4912
- Captcha: pn,
4913
- Modal: bt,
4914
- Money: yt,
4915
- Month: yn,
4916
- Notes: Cn,
4917
- Number: Ct,
4918
- Password: jn,
4919
- Phone: jt,
4920
- Search: wn,
4921
- Select: wt,
4922
- Set: ut,
4923
- Textarea: Sn,
4924
- Time: En,
4925
- Users: St,
4926
- String: De,
4927
- Toogle: Rn,
4928
- Group: Bn,
4979
+ const es = {
4980
+ Color: bn,
4981
+ Date: bt,
4982
+ Code: kn,
4983
+ Check: Rn,
4984
+ Switch: hn,
4985
+ Input: Fe,
4986
+ Button: xn,
4987
+ Message: gn,
4988
+ Generator: pn,
4989
+ Captcha: vn,
4990
+ Modal: yt,
4991
+ Money: Ct,
4992
+ Month: Cn,
4993
+ Notes: jn,
4994
+ Number: jt,
4995
+ Password: wn,
4996
+ Phone: wt,
4997
+ Search: Sn,
4998
+ Select: St,
4999
+ Set: mt,
5000
+ Textarea: En,
5001
+ Time: Tn,
5002
+ Users: Et,
5003
+ String: Fe,
5004
+ Toogle: Bn,
5005
+ Group: In,
4929
5006
  Options: Nn
4930
- }, Pi = "_debug_1vy1y_34", Li = "_back_1vy1y_46", $i = "_options_1vy1y_51", Oi = "_tm_1vy1y_57", Ai = "_ta_1vy1y_124", ft = {
4931
- debug: Pi,
4932
- back: Li,
4933
- options: $i,
4934
- tm: Oi,
4935
- ta: Ai,
5007
+ }, ts = "_debug_1vy1y_34", ns = "_back_1vy1y_46", as = "_options_1vy1y_51", rs = "_tm_1vy1y_57", is = "_ta_1vy1y_124", ht = {
5008
+ debug: ts,
5009
+ back: ns,
5010
+ options: as,
5011
+ tm: rs,
5012
+ ta: is,
4936
5013
  "--body": "_--body_1vy1y_134"
4937
- }, D = window.Telegram.WebApp, be = { is: !1, MainButton: {}, BackButton: {} };
4938
- let he = {};
4939
- he.dark = {
5014
+ }, N = window.Telegram.WebApp, Ce = { is: !1, MainButton: {}, BackButton: {} };
5015
+ let xe = {};
5016
+ xe.dark = {
4940
5017
  "--tg-theme-hint-color": "#b1c3d5",
4941
5018
  "--tg-theme-text-color": "#ffffff",
4942
5019
  "--tg-theme-link-color": "#62bcf9",
@@ -4945,7 +5022,7 @@ he.dark = {
4945
5022
  "--tg-theme-button-color": "#2ea6ff",
4946
5023
  "--tg-theme-secondary-bg-color": "#131415"
4947
5024
  };
4948
- he.light = {
5025
+ xe.light = {
4949
5026
  "--tg-theme-bg-color": "#ffffff",
4950
5027
  "--tg-theme-text-color": "#000000",
4951
5028
  "--tg-theme-hint-color": "#999999",
@@ -4954,7 +5031,7 @@ he.light = {
4954
5031
  "--tg-theme-button-text-color": "#ffffff",
4955
5032
  "--tg-theme-secondary-bg-color": "#efeff3"
4956
5033
  };
4957
- he.users = {
5034
+ xe.users = {
4958
5035
  "--tg-theme-bg-color": "#000000",
4959
5036
  "--tg-theme-text-color": "#ffffff",
4960
5037
  "--tg-theme-hint-color": "#98989e",
@@ -4963,53 +5040,53 @@ he.users = {
4963
5040
  "--tg-theme-button-text-color": "#000000",
4964
5041
  "--tg-theme-secondary-bg-color": "#000000"
4965
5042
  };
4966
- D.getUser = () => {
5043
+ N.getUser = () => {
4967
5044
  var e;
4968
- return ((e = D.initDataUnsafe) == null ? void 0 : e.user) === void 0 ? {} : D.initDataUnsafe;
5045
+ return ((e = N.initDataUnsafe) == null ? void 0 : e.user) === void 0 ? {} : N.initDataUnsafe;
4969
5046
  };
4970
- D.MainButton.set = (e) => {
4971
- be.is || (e === !1 ? D.MainButton.isVisible = !1 : (D.MainButton.text = e.text, D.MainButton.color = e.color, D.MainButton.textColor = e.textColor, D.MainButton.isVisible = !0, D.MainButton.isActive = e.isActive === void 0 ? !0 : e.isActive, e.page === void 0 || D.MainButton.onClick(() => {
4972
- ke.setPage(e.page);
5047
+ N.MainButton.set = (e) => {
5048
+ Ce.is || (e === !1 ? N.MainButton.isVisible = !1 : (N.MainButton.text = e.text, N.MainButton.color = e.color, N.MainButton.textColor = e.textColor, N.MainButton.isVisible = !0, N.MainButton.isActive = e.isActive === void 0 ? !0 : e.isActive, e.page === void 0 || N.MainButton.onClick(() => {
5049
+ ye.setPage(e.page);
4973
5050
  })));
4974
5051
  };
4975
- D.BackButton.state = [!1];
4976
- D.BackButton.listen = [];
4977
- D.BackButton.router = (e) => {
4978
- 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(() => {
4979
- let t = D.BackButton.state.pop();
5052
+ N.BackButton.state = [!1];
5053
+ N.BackButton.listen = [];
5054
+ N.BackButton.router = (e) => {
5055
+ e === !1 ? (N.BackButton.isVisible = !1, N.BackButton.offClick(N.BackButton.listen[0]), N.BackButton.listen.shift(), N.BackButton.state.length !== 1 && N.BackButton.state.pop()) : (N.BackButton.isVisible = !0, N.BackButton.offClick(N.BackButton.listen[0]), N.BackButton.listen.shift(), N.BackButton.listen.push(() => {
5056
+ let t = N.BackButton.state.pop();
4980
5057
  if (t.page !== void 0)
4981
- ke.setPage(t.page);
5058
+ ye.setPage(t.page);
4982
5059
  else {
4983
- let a = D.BackButton.state[D.BackButton.state.length - 1];
4984
- D.BackButton.router(a);
5060
+ let a = N.BackButton.state[N.BackButton.state.length - 1];
5061
+ N.BackButton.router(a);
4985
5062
  }
4986
- }), D.BackButton.onClick(D.BackButton.listen[0]));
5063
+ }), N.BackButton.onClick(N.BackButton.listen[0]));
4987
5064
  };
4988
- D.BackButton.set = (e) => {
4989
- be.is ? be.BackButton.set(e) : (D.BackButton.state.push(e), D.BackButton.router(e));
5065
+ N.BackButton.set = (e) => {
5066
+ Ce.is ? Ce.BackButton.set(e) : (N.BackButton.state.push(e), N.BackButton.router(e));
4990
5067
  };
4991
- D.Notice = (e, t) => {
4992
- t !== void 0 ? (Ke.Send({ type: e, text: t }), D.HapticFeedback.notificationOccurred(e)) : (Ke.Send(e), D.HapticFeedback.notificationOccurred(e.type));
5068
+ N.Notice = (e, t) => {
5069
+ t !== void 0 ? (Ue.Send({ type: e, text: t }), N.HapticFeedback.notificationOccurred(e)) : (Ue.Send(e), N.HapticFeedback.notificationOccurred(e.type));
4993
5070
  };
4994
- D.Init = ({ page: e, dev: t }) => {
5071
+ N.Init = ({ page: e, dev: t }) => {
4995
5072
  if (t) {
4996
5073
  let [a, r] = k.useState(!1), [i, s] = k.useState(!1), [l, c] = k.useState("dark"), [d, _] = k.useState(!1), [u, f] = k.useState(!1);
4997
- be.is = !0, be.MainButton.set = r, be.BackButton.set = s, k.useEffect(() => {
4998
- for (let g in he[l])
5074
+ Ce.is = !0, Ce.MainButton.set = r, Ce.BackButton.set = s, k.useEffect(() => {
5075
+ for (let g in xe[l])
4999
5076
  document.documentElement.style.setProperty(
5000
5077
  g,
5001
- he[l][g]
5078
+ xe[l][g]
5002
5079
  );
5003
5080
  }, []);
5004
5081
  let m = (g) => {
5005
- for (let v in he[g])
5006
- document.documentElement.style.setProperty(v, he[g][v]);
5082
+ for (let v in xe[g])
5083
+ document.documentElement.style.setProperty(v, xe[g][v]);
5007
5084
  c(g), _(!1);
5008
5085
  }, h = () => {
5009
5086
  _(!1), f(!0);
5010
5087
  };
5011
5088
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
5012
- /* @__PURE__ */ n.jsxs("div", { className: ft.debug, children: [
5089
+ /* @__PURE__ */ n.jsxs("div", { className: ht.debug, children: [
5013
5090
  i === !1 ? /* @__PURE__ */ n.jsx("div", { className: "back", children: "Отмена" }) : /* @__PURE__ */ n.jsx(
5014
5091
  "div",
5015
5092
  {
@@ -5029,10 +5106,10 @@ D.Init = ({ page: e, dev: t }) => {
5029
5106
  }
5030
5107
  )
5031
5108
  ] }),
5032
- d ? /* @__PURE__ */ n.jsxs("div", { className: ft.tm, children: [
5109
+ d ? /* @__PURE__ */ n.jsxs("div", { className: ht.tm, children: [
5033
5110
  /* @__PURE__ */ n.jsxs("ul", { children: [
5034
5111
  /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: h, children: "Authorization" }) }),
5035
- /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => ke.setPage("Add"), children: "Add Page" }) })
5112
+ /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => ye.setPage("Add"), children: "Add Page" }) })
5036
5113
  ] }),
5037
5114
  /* @__PURE__ */ n.jsxs("ul", { children: [
5038
5115
  /* @__PURE__ */ n.jsxs("li", { children: [
@@ -5064,20 +5141,20 @@ D.Init = ({ page: e, dev: t }) => {
5064
5141
  /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => _(!d), children: "Closed" }) })
5065
5142
  ] })
5066
5143
  ] }) : "",
5067
- u ? /* @__PURE__ */ n.jsx(Wi, { setAuthorization: f }) : ""
5144
+ u ? /* @__PURE__ */ n.jsx(ss, { setAuthorization: f }) : ""
5068
5145
  ] });
5069
5146
  } else
5070
5147
  return /* @__PURE__ */ n.jsx(n.Fragment, {});
5071
5148
  };
5072
- const Wi = ({ setAuthorization: e }) => {
5149
+ const ss = ({ setAuthorization: e }) => {
5073
5150
  let t = {}, a = (i) => {
5074
5151
  t = i.value;
5075
5152
  }, r = (i) => {
5076
5153
  localStorage.setItem("auth", t);
5077
5154
  };
5078
- return /* @__PURE__ */ n.jsx("div", { className: ft.ta, children: /* @__PURE__ */ n.jsxs("div", { className: "--body", children: [
5155
+ return /* @__PURE__ */ n.jsx("div", { className: ht.ta, children: /* @__PURE__ */ n.jsxs("div", { className: "--body", children: [
5079
5156
  /* @__PURE__ */ n.jsx("fieldset", { children: /* @__PURE__ */ n.jsx(
5080
- Fi.Notes,
5157
+ es.Notes,
5081
5158
  {
5082
5159
  label: "Data JSON",
5083
5160
  name: "description",
@@ -5087,8 +5164,17 @@ const Wi = ({ setAuthorization: e }) => {
5087
5164
  ) }),
5088
5165
  /* @__PURE__ */ n.jsx("div", { onClick: r, children: " Сщхранить " })
5089
5166
  ] }) });
5090
- }, Gi = ({ list: e, onClick: t, active: a, size: r, view: i }) => /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, i].join(" "), children: e.map((s) => /* @__PURE__ */ n.jsx(
5091
- zi,
5167
+ }, ul = ({ children: e, config: t }) => (F.New(t.crypto), t.defaultModule && ha(t.defaultModule), ga(
5168
+ /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
5169
+ /* @__PURE__ */ n.jsx(N.Init, { page: "load", dev: t.dev }),
5170
+ /* @__PURE__ */ n.jsx(ui, { config: t.modal }),
5171
+ /* @__PURE__ */ n.jsx(yr, {}),
5172
+ /* @__PURE__ */ n.jsx(Dr, {}),
5173
+ /* @__PURE__ */ n.jsx(wi, {}),
5174
+ e
5175
+ ] })
5176
+ )), os = ({ list: e, onClick: t, active: a, size: r, view: i }) => /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, i].join(" "), children: e.map((s) => /* @__PURE__ */ n.jsx(
5177
+ ls,
5092
5178
  {
5093
5179
  onClick: t,
5094
5180
  active: a,
@@ -5096,9 +5182,9 @@ const Wi = ({ setAuthorization: e }) => {
5096
5182
  link: s.link
5097
5183
  },
5098
5184
  s.link
5099
- )) }) }), zi = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
5100
- Gi.defaultProps = { size: "M", view: "H" };
5101
- const Ki = ({
5185
+ )) }) }), ls = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
5186
+ os.defaultProps = { size: "M", view: "H" };
5187
+ const cs = ({
5102
5188
  title: e = "",
5103
5189
  button: t,
5104
5190
  description: a = "",
@@ -5118,9 +5204,9 @@ const Ki = ({
5118
5204
  ] }),
5119
5205
  /* @__PURE__ */ n.jsx("ul", { children: r }),
5120
5206
  a && /* @__PURE__ */ n.jsx("article", { children: a })
5121
- ] }), Zi = "_setting_dva4m_2", Ui = {
5122
- setting: Zi
5123
- }, Vi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: Ui.setting, children: e }), Yi = ({ label: e, children: t }) => {
5207
+ ] }), _s = "_setting_dva4m_2", ds = {
5208
+ setting: _s
5209
+ }, us = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: ds.setting, children: e }), fs = ({ label: e, children: t }) => {
5124
5210
  let [a, r] = k.useState(!1);
5125
5211
  return /* @__PURE__ */ n.jsxs("li", { "data-item": "accordion", children: [
5126
5212
  /* @__PURE__ */ n.jsxs("dl", { onClick: () => r(!a), children: [
@@ -5129,10 +5215,10 @@ const Ki = ({
5129
5215
  ] }),
5130
5216
  a && /* @__PURE__ */ n.jsx("div", { children: t })
5131
5217
  ] });
5132
- }, Hi = ({ label: e, onClick: t, button: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5218
+ }, ms = ({ label: e, onClick: t, button: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5133
5219
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5134
5220
  /* @__PURE__ */ n.jsx("dd", { role: "button", onClick: () => t(), children: a })
5135
- ] }) }), qi = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ n.jsx(
5221
+ ] }) }), hs = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ n.jsx(
5136
5222
  "div",
5137
5223
  {
5138
5224
  role: "switch",
@@ -5141,25 +5227,25 @@ const Ki = ({
5141
5227
  },
5142
5228
  "aria-checked": e ? "true" : "false"
5143
5229
  }
5144
- )), Ji = { Switch: qi }, Xi = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5230
+ )), xs = { Switch: hs }, gs = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5145
5231
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5146
- /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(Ji.Switch, { onClick: t, active: a }) })
5147
- ] }) }), Qi = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5232
+ /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(xs.Switch, { onClick: t, active: a }) })
5233
+ ] }) }), ps = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5148
5234
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5149
5235
  /* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
5150
- ] }) }), es = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5236
+ ] }) }), vs = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5151
5237
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5152
5238
  /* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
5153
- ] }) }), ts = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5239
+ ] }) }), ks = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5154
5240
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5155
5241
  /* @__PURE__ */ n.jsx("dd", { children: t })
5156
- ] }) }), ns = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5242
+ ] }) }), bs = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5157
5243
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5158
5244
  /* @__PURE__ */ n.jsx("dd", { children: t })
5159
- ] }) }), as = { Accordion: Yi, Button: Hi, Switch: Xi, Info: es, Select: Qi, Component: ts, Node: ns };
5245
+ ] }) }), ys = { Accordion: fs, Button: ms, Switch: gs, Info: vs, Select: ps, Component: ks, Node: bs };
5160
5246
  function Dn({ list: e, onClick: t, active: a, size: r, view: i }) {
5161
5247
  return /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, i].join(" "), children: e.map((s) => /* @__PURE__ */ n.jsx(
5162
- rs,
5248
+ Cs,
5163
5249
  {
5164
5250
  onClick: t,
5165
5251
  active: a,
@@ -5169,18 +5255,10 @@ function Dn({ list: e, onClick: t, active: a, size: r, view: i }) {
5169
5255
  s.link
5170
5256
  )) }) });
5171
5257
  }
5172
- const rs = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
5258
+ const Cs = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
5173
5259
  Dn.defaultProps = { size: "M", view: "H" };
5174
- const el = { Section: Ki, Main: Vi, Item: as, Tabs: Dn }, is = "_alerts_1pds5_1", ss = "_menuAnimation_1pds5_1", os = "_menuItemAnimation_1pds5_1", ls = "_allert_1pds5_111", cs = "_al_1pds5_1", mt = {
5175
- alerts: is,
5176
- menuAnimation: ss,
5177
- menuItemAnimation: os,
5178
- "--body": "_--body_1pds5_103",
5179
- allert: ls,
5180
- "--form": "_--form_1pds5_111",
5181
- al: cs
5182
- };
5183
- function In({ text: e, type: t, button: a }) {
5260
+ const fl = { Section: cs, Main: us, Item: ys, Tabs: Dn };
5261
+ function Mn({ text: e, type: t, button: a }) {
5184
5262
  let [r, i] = k.useState(!1), s = { active: t };
5185
5263
  const l = () => {
5186
5264
  if (a) {
@@ -5190,7 +5268,7 @@ function In({ text: e, type: t, button: a }) {
5190
5268
  return r ? void 0 : (i(!0), a.onSend(i));
5191
5269
  }
5192
5270
  };
5193
- return /* @__PURE__ */ n.jsxs("div", { className: mt.al, ...s, children: [
5271
+ return /* @__PURE__ */ n.jsxs("div", { className: ut.al, ...s, children: [
5194
5272
  /* @__PURE__ */ n.jsx(
5195
5273
  "svg",
5196
5274
  {
@@ -5212,77 +5290,55 @@ function In({ text: e, type: t, button: a }) {
5212
5290
  a && /* @__PURE__ */ n.jsx("button", { onClick: l, children: a.label })
5213
5291
  ] });
5214
5292
  }
5215
- const _s = "_h_1usnu_1", ds = "_g_1usnu_11", us = "_hr_1usnu_16", fs = "_hl_1usnu_28", ms = "_t_1usnu_40", hs = "_s_1usnu_60", xs = "_u_1usnu_69", gs = "_o_1usnu_76", ps = "_l_1usnu_105", vs = "_hh_1usnu_115", ks = "_c_1usnu_128", bs = "_loadingB_1usnu_1", ys = "_m_1usnu_180", Cs = "_ul_1usnu_196", js = "_f_1usnu_226", X = {
5216
- h: _s,
5217
- g: ds,
5218
- hr: us,
5219
- hl: fs,
5220
- t: ms,
5221
- s: hs,
5222
- u: xs,
5223
- o: gs,
5224
- l: ps,
5225
- hh: vs,
5226
- c: ks,
5227
- loadingB: bs,
5228
- m: ys,
5229
- ul: Cs,
5230
- f: js
5231
- }, Ht = ({ title: e, left: t, right: a, children: r }) => /* @__PURE__ */ n.jsxs("div", { className: X.h, children: [
5293
+ const js = "_h_1usnu_1", ws = "_g_1usnu_11", Ss = "_hr_1usnu_16", Es = "_hl_1usnu_28", Ts = "_t_1usnu_40", Rs = "_s_1usnu_60", Bs = "_u_1usnu_69", Is = "_o_1usnu_76", Ns = "_l_1usnu_105", Ds = "_hh_1usnu_115", Ms = "_c_1usnu_128", Fs = "_loadingB_1usnu_1", Ps = "_m_1usnu_180", $s = "_ul_1usnu_196", Ls = "_f_1usnu_226", X = {
5294
+ h: js,
5295
+ g: ws,
5296
+ hr: Ss,
5297
+ hl: Es,
5298
+ t: Ts,
5299
+ s: Rs,
5300
+ u: Bs,
5301
+ o: Is,
5302
+ l: Ns,
5303
+ hh: Ds,
5304
+ c: Ms,
5305
+ loadingB: Fs,
5306
+ m: Ps,
5307
+ ul: $s,
5308
+ f: Ls
5309
+ }, qt = ({ title: e, left: t, right: a, children: r }) => /* @__PURE__ */ n.jsxs("div", { className: X.h, children: [
5232
5310
  /* @__PURE__ */ n.jsx("div", { className: X.t, children: e }),
5233
5311
  t && /* @__PURE__ */ n.jsx("div", { className: X.hl, children: t }),
5234
5312
  a && /* @__PURE__ */ n.jsx("div", { className: X.hr, children: a }),
5235
5313
  r
5236
- ] }), qt = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("div", { className: X.l, children: e }), Jt = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.s, children: e }), Xt = ({ children: e, edit: t }) => {
5314
+ ] }), Jt = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("div", { className: X.l, children: e }), Xt = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.s, children: e }), Qt = ({ children: e, edit: t }) => {
5237
5315
  const a = {};
5238
5316
  return t && (a.edit = ""), /* @__PURE__ */ n.jsx("div", { ...a, className: X.f, children: e });
5239
5317
  };
5240
- function Qt({ children: e }) {
5318
+ function en({ children: e }) {
5241
5319
  return /* @__PURE__ */ n.jsx("div", { className: X.g, children: e });
5242
5320
  }
5243
- const ws = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [X.o, t].join(" "), children: [
5321
+ const Os = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [X.o, t].join(" "), children: [
5244
5322
  a && /* @__PURE__ */ n.jsx("div", { className: X.hh, children: a }),
5245
5323
  e
5246
- ] }), Ss = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.u, children: e }), Es = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.c, children: e }), Ts = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.m, children: e }), tl = {
5247
- Header: Ht,
5248
- Section: Jt,
5249
- Group: Qt,
5250
- Form: Xt,
5251
- List: qt,
5252
- A: In,
5253
- U: Ss,
5254
- G: Qt,
5255
- C: Es,
5256
- L: qt,
5257
- O: ws,
5258
- S: Jt,
5259
- H: Ht,
5260
- M: Ts,
5261
- F: Xt
5262
- };
5263
- let ht = {};
5264
- const Rs = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ n.jsxs("div", { className: mt.alerts, children: [
5265
- /* @__PURE__ */ n.jsxs("dl", { children: [
5266
- /* @__PURE__ */ n.jsx("dt", { children: e.title }),
5267
- /* @__PURE__ */ n.jsx("dd", { children: e.text }),
5268
- /* @__PURE__ */ n.jsx("ul", { children: /* @__PURE__ */ n.jsx(
5269
- "button",
5270
- {
5271
- "data-color": e.color || "blue",
5272
- onClick: () => {
5273
- t(), ht.del();
5274
- },
5275
- children: e.button
5276
- }
5277
- ) })
5278
- ] }),
5279
- /* @__PURE__ */ n.jsx("div", { className: mt["--body"], onClick: ht.del })
5280
- ] }));
5281
- function Bs(e, t) {
5282
- ht.set(/* @__PURE__ */ n.jsx(Rs, { data: e, callback: t }));
5283
- }
5284
- const nl = { Send: Bs, Line: In };
5285
- function Ns() {
5324
+ ] }), As = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.u, children: e }), Ws = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.c, children: e }), Gs = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.m, children: e }), ml = {
5325
+ Header: qt,
5326
+ Section: Xt,
5327
+ Group: en,
5328
+ Form: Qt,
5329
+ List: Jt,
5330
+ A: Mn,
5331
+ U: As,
5332
+ G: en,
5333
+ C: Ws,
5334
+ L: Jt,
5335
+ O: Os,
5336
+ S: Xt,
5337
+ H: qt,
5338
+ M: Gs,
5339
+ F: Qt
5340
+ }, hl = { Send: Fr, Line: Mn };
5341
+ function zs() {
5286
5342
  return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ n.jsx(
5287
5343
  "path",
5288
5344
  {
@@ -5291,22 +5347,22 @@ function Ns() {
5291
5347
  }
5292
5348
  ) });
5293
5349
  }
5294
- const Ds = {};
5295
- function Is(e) {
5296
- Ds.add(e);
5350
+ const Ks = {};
5351
+ function Zs(e) {
5352
+ Ks.add(e);
5297
5353
  }
5298
- function Ms({ color: e, size: t, name: a }) {
5354
+ function Us({ color: e, size: t, name: a }) {
5299
5355
  return /* @__PURE__ */ n.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ n.jsx("use", { href: `#${a}` }) });
5300
5356
  }
5301
- const al = { Logo: Ns, Sprite: Is, Symbol: Ms }, Fs = "_sort_1yrvt_1", Ps = {
5302
- sort: Fs
5357
+ const xl = { Logo: zs, Sprite: Zs, Symbol: Us }, Vs = "_sort_1yrvt_1", Ys = {
5358
+ sort: Vs
5303
5359
  };
5304
- let Ye = {};
5305
- function Ls(e, t) {
5360
+ let He = {};
5361
+ function Hs(e, t) {
5306
5362
  switch (t.type) {
5307
5363
  case "active":
5308
5364
  let a = "<";
5309
- return e.active === t.data && (a = e.sort === "<" ? ">" : "<"), Ye.get({ active: t.data, sort: a }, !1), on({ active: t.data, sort: a }), {
5365
+ return e.active === t.data && (a = e.sort === "<" ? ">" : "<"), He.get({ active: t.data, sort: a }, !1), ln({ active: t.data, sort: a }), {
5310
5366
  ...e,
5311
5367
  active: t.data,
5312
5368
  sort: a
@@ -5315,12 +5371,12 @@ function Ls(e, t) {
5315
5371
  throw new Error();
5316
5372
  }
5317
5373
  }
5318
- function $s() {
5374
+ function qs() {
5319
5375
  const [e, t] = k.useReducer(
5320
- Ls,
5321
- ct() === void 0 ? { active: 1, sort: "<" } : ct()
5376
+ Hs,
5377
+ _t() === void 0 ? { active: 1, sort: "<" } : _t()
5322
5378
  );
5323
- return /* @__PURE__ */ n.jsxs("div", { className: Ps.sort, children: [
5379
+ return /* @__PURE__ */ n.jsxs("div", { className: Ys.sort, children: [
5324
5380
  /* @__PURE__ */ n.jsx(
5325
5381
  "i",
5326
5382
  {
@@ -5347,13 +5403,13 @@ function $s() {
5347
5403
  )
5348
5404
  ] });
5349
5405
  }
5350
- function Os(e) {
5351
- Ye.get = e;
5406
+ function Js(e) {
5407
+ He.get = e;
5352
5408
  }
5353
- function As(e) {
5354
- Ye.set(e);
5409
+ function Xs(e) {
5410
+ He.set(e);
5355
5411
  }
5356
- function Ws(e, t, a) {
5412
+ function Qs(e, t, a) {
5357
5413
  let r = 1, i = 0, s = {}, l = 50;
5358
5414
  s[r] = [];
5359
5415
  let c = {}, d = "s1a";
@@ -5372,11 +5428,11 @@ function Ws(e, t, a) {
5372
5428
  i++, i <= l || (r++, i = 1, s[r] = []), s[r].push(e[_.id]);
5373
5429
  }), { data: s };
5374
5430
  }
5375
- function Gs(e) {
5376
- Ye.count(e);
5431
+ function eo(e) {
5432
+ He.count(e);
5377
5433
  }
5378
- const rl = { Init: $s, useValue: Os, Set: As, Run: Ws, Count: Gs };
5379
- function zs() {
5434
+ const gl = { Init: qs, useValue: Js, Set: Xs, Run: Qs, Count: eo };
5435
+ function to() {
5380
5436
  return /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
5381
5437
  /* @__PURE__ */ n.jsx(
5382
5438
  "path",
@@ -5411,7 +5467,7 @@ function zs() {
5411
5467
  )
5412
5468
  ] });
5413
5469
  }
5414
- function Ks() {
5470
+ function no() {
5415
5471
  return /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
5416
5472
  /* @__PURE__ */ n.jsx(
5417
5473
  "path",
@@ -5440,7 +5496,7 @@ function Ks() {
5440
5496
  )
5441
5497
  ] });
5442
5498
  }
5443
- function Zs() {
5499
+ function ao() {
5444
5500
  return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ n.jsx(
5445
5501
  "path",
5446
5502
  {
@@ -5453,11 +5509,11 @@ function Zs() {
5453
5509
  }
5454
5510
  ) });
5455
5511
  }
5456
- const Us = "_n_euuvm_1", Vs = {
5457
- n: Us
5512
+ const ro = "_n_euuvm_1", io = {
5513
+ n: ro
5458
5514
  };
5459
- let Pe = {}, Ne = [];
5460
- const Ys = (e, t) => {
5515
+ let Le = {}, De = [];
5516
+ const so = (e, t) => {
5461
5517
  switch (t.type) {
5462
5518
  case "open":
5463
5519
  return {
@@ -5498,7 +5554,7 @@ const Ys = (e, t) => {
5498
5554
  r = { ...e.take, ...r }, e.active = !1;
5499
5555
  for (let i in r)
5500
5556
  r[i] !== "999" && (e.active = !0);
5501
- return Pe.get(r, e.active), {
5557
+ return Le.get(r, e.active), {
5502
5558
  ...e,
5503
5559
  take: r,
5504
5560
  active: e.active
@@ -5509,30 +5565,30 @@ const Ys = (e, t) => {
5509
5565
  throw new Error();
5510
5566
  }
5511
5567
  };
5512
- function Hs(e) {
5513
- Pe.fn({ action: "add", data: e });
5568
+ function oo(e) {
5569
+ Le.fn({ action: "add", data: e });
5514
5570
  }
5515
- function qs(e) {
5516
- Pe.fn({ action: "add", data: e });
5571
+ function lo(e) {
5572
+ Le.fn({ action: "add", data: e });
5517
5573
  }
5518
- function Js(e) {
5519
- Pe.fn({ action: "new", data: e });
5574
+ function co(e) {
5575
+ Le.fn({ action: "new", data: e });
5520
5576
  }
5521
- function Xs(e) {
5522
- Pe.fn = e;
5577
+ function _o(e) {
5578
+ Le.fn = e;
5523
5579
  }
5524
- function Qs() {
5525
- const [e, t] = k.useReducer(Ys, {
5580
+ function uo() {
5581
+ const [e, t] = k.useReducer(so, {
5526
5582
  open: !1,
5527
5583
  active: !1,
5528
5584
  news: [],
5529
5585
  take: {}
5530
5586
  });
5531
5587
  xt.useListener("bell", async (r) => {
5532
- }), Xs(async (r) => {
5588
+ }), _o(async (r) => {
5533
5589
  switch (r.action) {
5534
5590
  case "add":
5535
- Ne.push(r.data);
5591
+ De.push(r.data);
5536
5592
  break;
5537
5593
  }
5538
5594
  }), k.useEffect(() => {
@@ -5550,7 +5606,7 @@ function Qs() {
5550
5606
  break;
5551
5607
  case "M01":
5552
5608
  r[i].forEach((s) => {
5553
- Ne.push({
5609
+ De.push({
5554
5610
  module: "M01",
5555
5611
  type: 1,
5556
5612
  id: s.id,
@@ -5561,7 +5617,7 @@ function Qs() {
5561
5617
  break;
5562
5618
  case "M02":
5563
5619
  r[i].forEach((s) => {
5564
- Ne.push({
5620
+ De.push({
5565
5621
  module: "M02",
5566
5622
  type: 117,
5567
5623
  id: s.id,
@@ -5572,7 +5628,7 @@ function Qs() {
5572
5628
  break;
5573
5629
  }
5574
5630
  })(), setInterval(() => {
5575
- Ne.forEach((r, i) => {
5631
+ De.forEach((r, i) => {
5576
5632
  t({
5577
5633
  type: "add",
5578
5634
  data: {
@@ -5582,7 +5638,7 @@ function Qs() {
5582
5638
  datetime: r.datetime,
5583
5639
  txt: r.title
5584
5640
  }
5585
- }), r.datetime < (/* @__PURE__ */ new Date()).getTime() && Ne.splice(i, 1);
5641
+ }), r.datetime < (/* @__PURE__ */ new Date()).getTime() && De.splice(i, 1);
5586
5642
  });
5587
5643
  }, 6e4);
5588
5644
  }, []);
@@ -5593,11 +5649,11 @@ function Qs() {
5593
5649
  /* @__PURE__ */ n.jsx(
5594
5650
  "div",
5595
5651
  {
5596
- className: Vs.n,
5652
+ className: io.n,
5597
5653
  onClick: () => {
5598
5654
  t({ type: "open", open: !0 });
5599
5655
  },
5600
- children: e.active ? /* @__PURE__ */ n.jsx(Ks, {}) : /* @__PURE__ */ n.jsx(zs, {})
5656
+ children: e.active ? /* @__PURE__ */ n.jsx(no, {}) : /* @__PURE__ */ n.jsx(to, {})
5601
5657
  }
5602
5658
  ),
5603
5659
  e.open ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
@@ -5612,7 +5668,7 @@ function Qs() {
5612
5668
  ),
5613
5669
  /* @__PURE__ */ n.jsxs("div", { className: "notify-m", children: [
5614
5670
  /* @__PURE__ */ n.jsx("div", { className: "notify-l", children: e.news.map((r, i) => /* @__PURE__ */ n.jsx(
5615
- eo,
5671
+ fo,
5616
5672
  {
5617
5673
  data: r,
5618
5674
  dispatch: t
@@ -5624,7 +5680,7 @@ function Qs() {
5624
5680
  ] }) : ""
5625
5681
  ] });
5626
5682
  }
5627
- const eo = ({ data: e, dispatch: t }) => {
5683
+ const fo = ({ data: e, dispatch: t }) => {
5628
5684
  let a = async (r) => {
5629
5685
  t({ type: "hide", id: r.id }), await xt.Send({
5630
5686
  type: "module",
@@ -5641,24 +5697,24 @@ const eo = ({ data: e, dispatch: t }) => {
5641
5697
  ] }),
5642
5698
  /* @__PURE__ */ n.jsx("div", { className: "--hide", "data-icon": "F038", onClick: () => a(e), children: " " })
5643
5699
  ] });
5644
- }, to = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
5645
- function no(e) {
5700
+ }, mo = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
5701
+ function ho(e) {
5646
5702
  return new SharedWorker(
5647
- "data:text/javascript;base64," + to,
5703
+ "data:text/javascript;base64," + mo,
5648
5704
  {
5649
5705
  name: e == null ? void 0 : e.name
5650
5706
  }
5651
5707
  );
5652
5708
  }
5653
- function ao(e) {
5709
+ function xo(e) {
5654
5710
  let t = {}, a = {};
5655
5711
  e.data.forEach((i) => {
5656
5712
  t[i.id] = { s: i.v, n: i.a }, a[i.id] = i;
5657
5713
  });
5658
- let r = { ...xe(), 901: t };
5659
- ln(a), Ie(r);
5714
+ let r = { ...pe(), 901: t };
5715
+ cn(a), Pe(r);
5660
5716
  }
5661
- let ae = {}, U = {}, ze = [
5717
+ let re = {}, U = {}, Ze = [
5662
5718
  "filter",
5663
5719
  "online",
5664
5720
  "users",
@@ -5668,41 +5724,41 @@ let ae = {}, U = {}, ze = [
5668
5724
  "info",
5669
5725
  "job"
5670
5726
  ];
5671
- function ro() {
5727
+ function go() {
5672
5728
  const [e, t] = k.useState(!1), [a, r] = k.useState(!1);
5673
5729
  function i(s) {
5674
- const l = new no();
5675
- ae.laodData = (c) => {
5676
- let d = ze.indexOf(c);
5677
- d >= 0 && ze.splice(d, 1), ze.length === 0 && t(!0);
5678
- }, ae.send = (c) => {
5730
+ const l = new ho();
5731
+ re.laodData = (c) => {
5732
+ let d = Ze.indexOf(c);
5733
+ d >= 0 && Ze.splice(d, 1), Ze.length === 0 && t(!0);
5734
+ }, re.send = (c) => {
5679
5735
  l.port.postMessage({ type: "send", json: c });
5680
5736
  }, l.port.onmessage = (c) => {
5681
5737
  let d = c.data;
5682
5738
  d.type === "error" && r(!0), d.type === "true" && t(!0), d.type === "closed" && l.port.postMessage({
5683
5739
  type: "connect",
5684
5740
  ukey: s,
5685
- lk: lt()
5686
- }), ze.length !== 0 && ae.laodData(d.type), U[d.type] && U[d.type](d);
5741
+ lk: ct()
5742
+ }), Ze.length !== 0 && re.laodData(d.type), U[d.type] && U[d.type](d);
5687
5743
  }, l.port.postMessage({
5688
5744
  type: "connect",
5689
5745
  ukey: s,
5690
- lk: lt()
5746
+ lk: ct()
5691
5747
  });
5692
5748
  }
5693
5749
  return [i, e, a];
5694
5750
  }
5695
5751
  U.module = (e) => {
5696
- ae[e.listen] !== void 0 && (ae[e.listen](e), delete ae[e.listen]);
5752
+ re[e.listen] !== void 0 && (re[e.listen](e), delete re[e.listen]);
5697
5753
  };
5698
- U.bell = Js;
5699
- U.company = ao;
5754
+ U.bell = co;
5755
+ U.company = xo;
5700
5756
  U.info = (e) => {
5701
5757
  let t = {};
5702
- 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), sn(e.data.menu);
5758
+ 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"), _n(t), on(e.data.menu);
5703
5759
  };
5704
5760
  U.version = async (e) => {
5705
- vt.version.Server(e.data);
5761
+ kt.version.Server(e.data);
5706
5762
  };
5707
5763
  U.online = async (e) => {
5708
5764
  };
@@ -5711,13 +5767,13 @@ U.offline = async (e) => {
5711
5767
  U.chat = (e) => {
5712
5768
  switch (e.data.action) {
5713
5769
  case "new_message":
5714
- ke.getModule();
5770
+ ye.getModule();
5715
5771
  break;
5716
5772
  case "view_message":
5717
- ke.getModule();
5773
+ ye.getModule();
5718
5774
  break;
5719
5775
  case "write_message":
5720
- ke.getModule();
5776
+ ye.getModule();
5721
5777
  break;
5722
5778
  }
5723
5779
  };
@@ -5738,8 +5794,8 @@ U.users = (e) => {
5738
5794
  number: l
5739
5795
  };
5740
5796
  });
5741
- let a = { ...xe(), user: t };
5742
- Ie(a);
5797
+ let a = { ...pe(), user: t };
5798
+ Pe(a);
5743
5799
  };
5744
5800
  U.api = (e) => {
5745
5801
  let t = {};
@@ -5748,43 +5804,43 @@ U.api = (e) => {
5748
5804
  });
5749
5805
  };
5750
5806
  U.delete = () => {
5751
- re();
5807
+ te();
5752
5808
  };
5753
5809
  U.select = (e) => {
5754
- let t = { ...xe() };
5810
+ let t = { ...pe() };
5755
5811
  e.data.forEach((a) => {
5756
5812
  t[a.n] = JSON.parse(a.s);
5757
- }), Ie(t);
5813
+ }), Pe(t);
5758
5814
  };
5759
5815
  U.job = (e) => {
5760
- let t = { ...xe() }, a = {};
5816
+ let t = { ...pe() }, a = {};
5761
5817
  Object.keys(e.data).forEach((r) => {
5762
5818
  a[r] = { s: 1, n: e.data[r] };
5763
- }), t[1] = a, Ie(t);
5819
+ }), t[1] = a, Pe(t);
5764
5820
  };
5765
5821
  U.setting = (e) => {
5766
- Pa(e.data);
5822
+ La(e.data);
5767
5823
  };
5768
5824
  U.app = () => {
5769
5825
  };
5770
- const io = (e, t) => {
5771
- ae[e] = t;
5772
- }, so = (e, t) => {
5773
- ae[e](t);
5826
+ const po = (e, t) => {
5827
+ re[e] = t;
5828
+ }, vo = (e, t) => {
5829
+ re[e](t);
5774
5830
  };
5775
- function oo(e) {
5831
+ function ko(e) {
5776
5832
  let t = "_" + String(Math.random()).substring(2, 7);
5777
5833
  return new Promise((a) => {
5778
- ae[t] = (r) => {
5779
- r.error !== void 0 ? a({ error: r.error }) : a(r.data), delete ae[t];
5780
- }, e = { ...e, listen: t }, e.type = "modules", ae.send(e);
5834
+ re[t] = (r) => {
5835
+ r.error !== void 0 ? a({ error: r.error }) : a(r.data), delete re[t];
5836
+ }, e = { ...e, listen: t }, e.type = "modules", re.send(e);
5781
5837
  });
5782
5838
  }
5783
- const xt = { useConnect: ro, useListener: io, setListener: so, Send: oo };
5784
- class lo {
5839
+ const xt = { useConnect: go, useListener: po, setListener: vo, Send: ko };
5840
+ class bo {
5785
5841
  constructor(t = "el", a = "db") {
5786
- it(this, "storeName");
5787
- it(this, "_dbp");
5842
+ st(this, "storeName");
5843
+ st(this, "_dbp");
5788
5844
  this.storeName = a, this._dbp = new Promise((r, i) => {
5789
5845
  const s = indexedDB.open(t, 1);
5790
5846
  s.onerror = () => i(s.error), s.onsuccess = () => r(s.result), s.onupgradeneeded = () => {
@@ -5801,32 +5857,32 @@ class lo {
5801
5857
  );
5802
5858
  }
5803
5859
  }
5804
- let ot, G = {};
5805
- const we = () => (ot || (ot = new lo()), ot), ue = (e, t, a = we()) => a._withIDBStore("readwrite", (r) => {
5806
- G[e] = t, r.put(P.enCode(t), e);
5807
- }), oe = (e, t = we()) => G[e] === void 0 ? new Promise((a, r) => {
5860
+ let lt, G = {};
5861
+ const Ee = () => (lt || (lt = new bo()), lt), fe = (e, t, a = Ee()) => a._withIDBStore("readwrite", (r) => {
5862
+ G[e] = t, r.put(F.enCode(t), e);
5863
+ }), oe = (e, t = Ee()) => G[e] === void 0 ? new Promise((a, r) => {
5808
5864
  let i;
5809
5865
  t._withIDBStore("readonly", (s) => {
5810
5866
  i = s.get(e);
5811
5867
  }).then(() => {
5812
5868
  if (i.result !== void 0) {
5813
- let s = P.deCode(i.result);
5869
+ let s = F.deCode(i.result);
5814
5870
  G[e] = s, a(s);
5815
5871
  } else
5816
5872
  a({});
5817
5873
  });
5818
- }) : G[e], co = (e, t = we()) => t._withIDBStore("readwrite", (a) => {
5874
+ }) : G[e], yo = (e, t = Ee()) => t._withIDBStore("readwrite", (a) => {
5819
5875
  a.delete(e);
5820
- }), gt = (e = we()) => e._withIDBStore("readwrite", (t) => {
5876
+ }), gt = (e = Ee()) => e._withIDBStore("readwrite", (t) => {
5821
5877
  t.clear();
5822
- }), _o = (e = we()) => {
5878
+ }), Co = (e = Ee()) => {
5823
5879
  const t = [];
5824
5880
  return e._withIDBStore("readonly", (a) => {
5825
5881
  (a.openKeyCursor || a.openCursor).call(a).onsuccess = function() {
5826
5882
  this.result && (t.push(this.result.key), this.result.continue());
5827
5883
  };
5828
5884
  }).then(() => t);
5829
- }, uo = (e, t, a = [], r = {}) => {
5885
+ }, jo = (e, t, a = [], r = {}) => {
5830
5886
  let i = a.length !== 0, s = [], l = r.sort, c = Object.keys(r).length !== 0, d = Object.keys(r), _ = Object.keys(e), u = [], f = (h) => {
5831
5887
  let g = "";
5832
5888
  if (a.forEach((v) => {
@@ -5848,7 +5904,7 @@ const we = () => (ot || (ot = new lo()), ot), ue = (e, t, a = we()) => a._withID
5848
5904
  }), u.forEach((h) => {
5849
5905
  h === void 0 ? (gt(), location.reload()) : (i && f(h.id), c && m(h.id));
5850
5906
  }), { list: u, search: s, filter: r };
5851
- }, fo = (e, t, a, r = we()) => {
5907
+ }, wo = (e, t, a, r = Ee()) => {
5852
5908
  if (G[e] === void 0)
5853
5909
  return new Promise((i, s) => {
5854
5910
  let l;
@@ -5856,66 +5912,66 @@ const we = () => (ot || (ot = new lo()), ot), ue = (e, t, a = we()) => a._withID
5856
5912
  l = c.get(e);
5857
5913
  }).then(() => {
5858
5914
  if (l.result !== void 0) {
5859
- let c = P.deCode(l.result);
5915
+ let c = F.deCode(l.result);
5860
5916
  G[e] = c, G[e][t.id] = {
5861
5917
  ...G[e][t.id],
5862
5918
  ...t.data
5863
- }, r.put(P.enCode(G[e]), e), i({});
5919
+ }, r.put(F.enCode(G[e]), e), i({});
5864
5920
  } else
5865
5921
  i({});
5866
5922
  });
5867
5923
  });
5868
5924
  if (G[e][t.id] !== void 0)
5869
5925
  return G[e][t.id] = { ...G[e][t.id], ...t.data }, a !== void 0 && G[a] !== void 0 ? G[a][t.id] !== void 0 && (G[a][t.id] = t.data.eDate) : G[a] = [], delete G[e][t.id].$_item, delete G[e][t.id].$_send, r._withIDBStore("readwrite", (i) => {
5870
- i.put(P.enCode(G[e]), e), a !== void 0 && i.put(P.enCode(G[a]), a);
5926
+ i.put(F.enCode(G[e]), e), a !== void 0 && i.put(F.enCode(G[a]), a);
5871
5927
  });
5872
- }, mo = async (e, t, a, r) => {
5928
+ }, So = async (e, t, a, r) => {
5873
5929
  let i, s;
5874
- s = await oe(a), s[e.id] = e, await ue(a, s), i !== null && (i = await oe(t), i[e.id] = e.eDate, await ue(t, i)), r !== void 0 && r({ type: "load", page: i, base: s });
5875
- }, ho = async (e, t, a, r) => {
5930
+ s = await oe(a), s[e.id] = e, await fe(a, s), i !== null && (i = await oe(t), i[e.id] = e.eDate, await fe(t, i)), r !== void 0 && r({ type: "load", page: i, base: s });
5931
+ }, Eo = async (e, t, a, r) => {
5876
5932
  let i = await oe(t), s = await oe(a);
5877
5933
  for (let l in e)
5878
5934
  s[l] = e[l], i[l] = e[l].eDate;
5879
- await ue(t, i), await ue(a, s), r !== void 0 && r({ type: "load", page: i, base: s });
5880
- }, xo = async (e, t, a, r) => {
5935
+ await fe(t, i), await fe(a, s), r !== void 0 && r({ type: "load", page: i, base: s });
5936
+ }, To = async (e, t, a, r) => {
5881
5937
  let i = await oe(t), s = await oe(a);
5882
- e.forEach((l) => delete i[l]), await ue(t, i), r !== void 0 && r({ type: "load", page: i, base: s });
5883
- }, go = async (e, t, a) => {
5938
+ e.forEach((l) => delete i[l]), await fe(t, i), r !== void 0 && r({ type: "load", page: i, base: s });
5939
+ }, Ro = async (e, t, a) => {
5884
5940
  let r = await oe(t);
5885
- e.forEach((i) => delete r[i]), await ue(t, r);
5886
- }, po = async (e, t, a) => {
5941
+ e.forEach((i) => delete r[i]), await fe(t, r);
5942
+ }, Bo = async (e, t, a) => {
5887
5943
  let r = await oe(t);
5888
- e.forEach((i) => r[i.id] = i.eDate), await ue(t, r);
5889
- }, vo = async (e, t, a) => {
5944
+ e.forEach((i) => r[i.id] = i.eDate), await fe(t, r);
5945
+ }, Io = async (e, t, a) => {
5890
5946
  let r = await oe(t);
5891
5947
  if (a !== void 0)
5892
5948
  a({ type: "load", base: r });
5893
5949
  else
5894
5950
  return r[e];
5895
- }, ko = (e) => G[e], il = {
5896
- id: vo,
5951
+ }, No = (e) => G[e], pl = {
5952
+ id: Io,
5897
5953
  get: oe,
5898
- set: ue,
5899
- add: mo,
5900
- del: co,
5901
- upd: fo,
5902
- key: _o,
5903
- load: ko,
5904
- split: uo,
5954
+ set: fe,
5955
+ add: So,
5956
+ del: yo,
5957
+ upd: wo,
5958
+ key: Co,
5959
+ load: No,
5960
+ split: jo,
5905
5961
  clear: gt,
5906
- updAll: ho,
5907
- delAll: xo,
5908
- delList: go,
5909
- addList: po
5910
- }, sl = { setSetting: La, getSetting: $a }, bo = "_s_18bde_1", yo = "_loadingB_18bde_1", Co = "_ul_18bde_31", jo = {
5911
- s: bo,
5912
- loadingB: yo,
5913
- ul: Co
5962
+ updAll: Eo,
5963
+ delAll: To,
5964
+ delList: Ro,
5965
+ addList: Bo
5966
+ }, vl = { setSetting: Oa, getSetting: Aa }, Do = "_s_18bde_1", Mo = "_loadingB_18bde_1", Fo = "_ul_18bde_31", Po = {
5967
+ s: Do,
5968
+ loadingB: Mo,
5969
+ ul: Fo
5914
5970
  };
5915
- function wo({ children: e }) {
5971
+ function $o({ children: e }) {
5916
5972
  return /* @__PURE__ */ n.jsx("ul", { className: X.ul, children: e });
5917
5973
  }
5918
- function So(e, t) {
5974
+ function Lo(e, t) {
5919
5975
  switch (t.type) {
5920
5976
  case "load":
5921
5977
  return {
@@ -5948,13 +6004,13 @@ function So(e, t) {
5948
6004
  throw new Error();
5949
6005
  }
5950
6006
  }
5951
- function ol({
6007
+ function kl({
5952
6008
  list: e,
5953
6009
  load: t,
5954
6010
  className: a,
5955
6011
  ...r
5956
6012
  }) {
5957
- const i = k.useRef(null), [s, l] = k.useReducer(So, {
6013
+ const i = k.useRef(null), [s, l] = k.useReducer(Lo, {
5958
6014
  load: !1,
5959
6015
  list: [],
5960
6016
  data: {},
@@ -5971,10 +6027,10 @@ function ol({
5971
6027
  return /* @__PURE__ */ n.jsx(
5972
6028
  "div",
5973
6029
  {
5974
- className: [jo.s, a].join(" "),
6030
+ className: [Po.s, a].join(" "),
5975
6031
  ref: i,
5976
6032
  onScroll: c,
5977
- children: /* @__PURE__ */ n.jsx(wo, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((d) => /* @__PURE__ */ n.jsx(r.item, { data: d }, d.id)) : /* @__PURE__ */ n.jsxs("div", { "data-load": "load", children: [
6033
+ children: /* @__PURE__ */ n.jsx($o, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((d) => /* @__PURE__ */ n.jsx(r.item, { data: d }, d.id)) : /* @__PURE__ */ n.jsxs("div", { "data-load": "load", children: [
5978
6034
  /* @__PURE__ */ n.jsx("i", {}),
5979
6035
  /* @__PURE__ */ n.jsx("i", {}),
5980
6036
  /* @__PURE__ */ n.jsx("i", {})
@@ -5982,7 +6038,7 @@ function ol({
5982
6038
  }
5983
6039
  );
5984
6040
  }
5985
- const Eo = ({ label: e, onValue: t, value: a, name: r, item: i }) => {
6041
+ const Oo = ({ label: e, onValue: t, value: a, name: r, item: i }) => {
5986
6042
  const [s, l] = k.useState(!!a);
5987
6043
  k.useEffect(() => {
5988
6044
  l(!!a);
@@ -5999,61 +6055,61 @@ const Eo = ({ label: e, onValue: t, value: a, name: r, item: i }) => {
5999
6055
  "aria-checked": `${s ? "true" : "false"}`
6000
6056
  }
6001
6057
  );
6002
- }, Ce = {};
6003
- function To(e) {
6058
+ }, we = {};
6059
+ function Ao(e) {
6004
6060
  const [t, a] = k.useState({}), r = k.useRef(e);
6005
- return Ce.u = (i) => {
6061
+ return we.u = (i) => {
6006
6062
  r.current = { ...r.current, [i.name]: i.value };
6007
- }, Ce.r = () => {
6063
+ }, we.r = () => {
6008
6064
  a(Date.now());
6009
6065
  }, [r.current];
6010
6066
  }
6011
- function Ro(e) {
6012
- Ce.u(e), e.reload && Ce.r();
6013
- }
6014
- function Bo() {
6015
- Ce.r && Ce.r();
6016
- }
6017
- const ll = {
6018
- Color: kn,
6019
- Date: kt,
6020
- Code: vn,
6021
- Check: Tn,
6022
- Switch: mn,
6023
- Input: De,
6024
- Button: hn,
6025
- Message: xn,
6026
- Generator: gn,
6027
- Captcha: pn,
6028
- Modal: bt,
6029
- Money: yt,
6030
- Month: yn,
6031
- Notes: Cn,
6032
- Number: Ct,
6033
- Password: jn,
6034
- Phone: jt,
6035
- Search: wn,
6036
- Select: wt,
6037
- Set: ut,
6038
- Textarea: Sn,
6039
- Time: En,
6040
- Users: St,
6041
- String: De,
6042
- Form: ut,
6043
- runReload: Bo,
6044
- useData: To,
6045
- setValue: Ro,
6046
- Palette: Eo,
6047
- Toogle: Rn,
6048
- Group: Bn,
6067
+ function Wo(e) {
6068
+ we.u(e), e.reload && we.r();
6069
+ }
6070
+ function Go() {
6071
+ we.r && we.r();
6072
+ }
6073
+ const bl = {
6074
+ Color: bn,
6075
+ Date: bt,
6076
+ Code: kn,
6077
+ Check: Rn,
6078
+ Switch: hn,
6079
+ Input: Fe,
6080
+ Button: xn,
6081
+ Message: gn,
6082
+ Generator: pn,
6083
+ Captcha: vn,
6084
+ Modal: yt,
6085
+ Money: Ct,
6086
+ Month: Cn,
6087
+ Notes: jn,
6088
+ Number: jt,
6089
+ Password: wn,
6090
+ Phone: wt,
6091
+ Search: Sn,
6092
+ Select: St,
6093
+ Set: mt,
6094
+ Textarea: En,
6095
+ Time: Tn,
6096
+ Users: Et,
6097
+ String: Fe,
6098
+ Form: mt,
6099
+ runReload: Go,
6100
+ useData: Ao,
6101
+ setValue: Wo,
6102
+ Palette: Oo,
6103
+ Toogle: Bn,
6104
+ Group: In,
6049
6105
  Options: Nn
6050
- }, No = "_spinner_1ul0m_1", Do = "_l_1ul0m_75", Io = "_loadingB_1ul0m_1", Mn = {
6051
- spinner: No,
6052
- l: Do,
6053
- loadingB: Io
6106
+ }, zo = "_spinner_1ul0m_1", Ko = "_l_1ul0m_75", Zo = "_loadingB_1ul0m_1", Fn = {
6107
+ spinner: zo,
6108
+ l: Ko,
6109
+ loadingB: Zo
6054
6110
  };
6055
- function Mo() {
6056
- return /* @__PURE__ */ n.jsx("div", { className: Mn.spinner, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ n.jsx(
6111
+ function Uo() {
6112
+ return /* @__PURE__ */ n.jsx("div", { className: Fn.spinner, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ n.jsx(
6057
6113
  "path",
6058
6114
  {
6059
6115
  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",
@@ -6061,20 +6117,20 @@ function Mo() {
6061
6117
  }
6062
6118
  ) }) });
6063
6119
  }
6064
- function Fo() {
6065
- return /* @__PURE__ */ n.jsxs("div", { className: Mn.l, children: [
6120
+ function Vo() {
6121
+ return /* @__PURE__ */ n.jsxs("div", { className: Fn.l, children: [
6066
6122
  /* @__PURE__ */ n.jsx("i", {}),
6067
6123
  /* @__PURE__ */ n.jsx("i", {}),
6068
6124
  /* @__PURE__ */ n.jsx("i", {})
6069
6125
  ] });
6070
6126
  }
6071
- const cl = { Spinner: Mo, Inline: Fo }, Po = "_s_t9swc_1", en = {
6072
- s: Po
6127
+ const yl = { Spinner: Uo, Inline: Vo }, Yo = "_s_t9swc_1", tn = {
6128
+ s: Yo
6073
6129
  };
6074
- let Et;
6075
- function Lo({ className: e, placeholder: t }) {
6130
+ let Tt;
6131
+ function Ho({ className: e, placeholder: t }) {
6076
6132
  let a = (l) => {
6077
- Et(l.target.textContent);
6133
+ Tt(l.target.textContent);
6078
6134
  }, r = (l) => {
6079
6135
  l.key === "Enter" && l.preventDefault();
6080
6136
  }, i = (l) => {
@@ -6084,7 +6140,7 @@ function Lo({ className: e, placeholder: t }) {
6084
6140
  });
6085
6141
  };
6086
6142
  const s = {};
6087
- return t && (s.placeholder = t), s.className = e ? [en.s, e].join(" ") : en.s, /* @__PURE__ */ n.jsx(
6143
+ return t && (s.placeholder = t), s.className = e ? [tn.s, e].join(" ") : tn.s, /* @__PURE__ */ n.jsx(
6088
6144
  "div",
6089
6145
  {
6090
6146
  onPaste: i,
@@ -6096,7 +6152,7 @@ function Lo({ className: e, placeholder: t }) {
6096
6152
  }
6097
6153
  );
6098
6154
  }
6099
- function $o(e, t, a) {
6155
+ function qo(e, t, a) {
6100
6156
  let r = [], i = 1, s = 0, l = {}, c = 50;
6101
6157
  return l[i] = [], e.forEach((d) => {
6102
6158
  d.text.toLowerCase().indexOf(t) > -1 && r.push(d.id);
@@ -6104,17 +6160,17 @@ function $o(e, t, a) {
6104
6160
  s++, s <= c || (i++, s = 1, l[i] = []), l[i].push(a[d]);
6105
6161
  }), l;
6106
6162
  }
6107
- function Oo(e) {
6108
- Et = e;
6163
+ function Jo(e) {
6164
+ Tt = e;
6109
6165
  }
6110
- function Ao(e) {
6111
- Et = e;
6166
+ function Xo(e) {
6167
+ Tt = e;
6112
6168
  }
6113
- const _l = { Field: Lo, Run: $o, Get: Oo, useValue: Ao }, Wo = "_f_q3r0i_1", Go = {
6114
- f: Wo
6169
+ const Cl = { Field: Ho, Run: qo, Get: Jo, useValue: Xo }, Qo = "_f_q3r0i_1", el = {
6170
+ f: Qo
6115
6171
  };
6116
6172
  let ee = {};
6117
- function zo(e, t) {
6173
+ function tl(e, t) {
6118
6174
  switch (t.type) {
6119
6175
  case "open":
6120
6176
  return {
@@ -6164,8 +6220,8 @@ function zo(e, t) {
6164
6220
  throw new Error();
6165
6221
  }
6166
6222
  }
6167
- function Ko() {
6168
- const [e, t] = k.useReducer(zo, {
6223
+ function nl() {
6224
+ const [e, t] = k.useReducer(tl, {
6169
6225
  open: !1,
6170
6226
  view: null,
6171
6227
  data: {},
@@ -6183,12 +6239,12 @@ function Ko() {
6183
6239
  /* @__PURE__ */ n.jsxs(
6184
6240
  "div",
6185
6241
  {
6186
- className: Go.f,
6242
+ className: el.f,
6187
6243
  onClick: () => {
6188
6244
  t({ type: "open", open: !0 });
6189
6245
  },
6190
6246
  children: [
6191
- /* @__PURE__ */ n.jsx(Zs, {}),
6247
+ /* @__PURE__ */ n.jsx(ao, {}),
6192
6248
  e.active && /* @__PURE__ */ n.jsxs("i", { children: [
6193
6249
  e.size,
6194
6250
  "1"
@@ -6208,7 +6264,7 @@ function Ko() {
6208
6264
  ),
6209
6265
  /* @__PURE__ */ n.jsxs("div", { className: "filter m", children: [
6210
6266
  /* @__PURE__ */ n.jsx("div", { className: "filter l", children: Object.keys(e.data).map((a) => /* @__PURE__ */ n.jsx(
6211
- Ho,
6267
+ ol,
6212
6268
  {
6213
6269
  data: a,
6214
6270
  dispatch: t,
@@ -6230,31 +6286,31 @@ function Ko() {
6230
6286
  ] }) : /* @__PURE__ */ n.jsx(n.Fragment, {})
6231
6287
  ] });
6232
6288
  }
6233
- function Zo(e) {
6289
+ function al(e) {
6234
6290
  ee.get = e;
6235
6291
  }
6236
- function Uo(e) {
6292
+ function rl(e) {
6237
6293
  ee.set !== void 0 && ee.set(e);
6238
6294
  }
6239
- function Vo(e) {
6295
+ function il(e) {
6240
6296
  ee.reset !== void 0 && ee.reset(e);
6241
6297
  }
6242
- function Yo(e, t, a, r) {
6298
+ function sl(e, t, a, r) {
6243
6299
  let i = [], s = 1, l = 0, c = {}, d = 50;
6244
6300
  return c[s] = [], r === !0 && (Object.keys(t).forEach((_) => {
6245
6301
  Number.parseInt(t[_]) !== 999 && (e = e.filter(
6246
6302
  (u) => Number.parseInt(u[_]) === Number.parseInt(t[_])
6247
6303
  ));
6248
- }), Fn(e.length)), e.forEach((_) => {
6304
+ }), Pn(e.length)), e.forEach((_) => {
6249
6305
  i.push(_.id);
6250
6306
  }), i.forEach((_) => {
6251
6307
  l++, l <= d || (s++, l = 1, c[s] = []), c[s].push(a[_]);
6252
6308
  }), c;
6253
6309
  }
6254
- function Fn(e) {
6310
+ function Pn(e) {
6255
6311
  ee.count(e);
6256
6312
  }
6257
- function Ho({ data: e, state: t, dispatch: a }) {
6313
+ function ol({ data: e, state: t, dispatch: a }) {
6258
6314
  let r = () => {
6259
6315
  a({ type: "view", view: e });
6260
6316
  }, i = () => {
@@ -6277,7 +6333,7 @@ function Ho({ data: e, state: t, dispatch: a }) {
6277
6333
  ) : ""
6278
6334
  ] }),
6279
6335
  /* @__PURE__ */ n.jsx("div", { className: "filter u", "set-active": (t.view === e) + "", children: Object.keys(t.data[e].list).map((s, l) => /* @__PURE__ */ n.jsx(
6280
- qo,
6336
+ ll,
6281
6337
  {
6282
6338
  data: t.data[e].list[s],
6283
6339
  head: e,
@@ -6289,7 +6345,7 @@ function Ho({ data: e, state: t, dispatch: a }) {
6289
6345
  )) })
6290
6346
  ] });
6291
6347
  }
6292
- function qo({ data: e, head: t, state: a, dispatch: r, type: i }) {
6348
+ function ll({ data: e, head: t, state: a, dispatch: r, type: i }) {
6293
6349
  if (i !== "999" && e.count === void 0)
6294
6350
  return "";
6295
6351
  const s = () => {
@@ -6308,8 +6364,8 @@ function qo({ data: e, head: t, state: a, dispatch: r, type: i }) {
6308
6364
  }
6309
6365
  );
6310
6366
  }
6311
- const dl = { Button: Ko, useValue: Zo, Set: Uo, Run: Yo, Count: Fn, Reset: Vo }, ul = { Bell: Qs, Send: qs, Add: Hs };
6312
- function fl({ active: e, onActive: t, id: a, name: r }) {
6367
+ const jl = { Button: nl, useValue: al, Set: rl, Run: sl, Count: Pn, Reset: il }, wl = { Bell: uo, Send: lo, Add: oo };
6368
+ function Sl({ active: e, onActive: t, id: a, name: r }) {
6313
6369
  const [i, s] = k.useState(!!e);
6314
6370
  k.useEffect(() => {
6315
6371
  s(!!e);
@@ -6328,32 +6384,33 @@ function fl({ active: e, onActive: t, id: a, name: r }) {
6328
6384
  );
6329
6385
  }
6330
6386
  export {
6331
- Ji as Action,
6332
- nl as Alert,
6333
- Qo as Api,
6334
- xr as Button,
6335
- tl as Component,
6336
- il as DataBase,
6337
- Fe as Events,
6338
- dl as Filter,
6339
- ll as Form,
6387
+ xs as Action,
6388
+ hl as Alert,
6389
+ dl as Api,
6390
+ Lr as Button,
6391
+ ml as Component,
6392
+ pl as DataBase,
6393
+ Se as Events,
6394
+ jl as Filter,
6395
+ bl as Form,
6340
6396
  K as Format,
6341
- al as Icon,
6342
- Fi as Input,
6343
- cl as Loading,
6344
- bn as Modal,
6345
- Ke as Notice,
6346
- ul as Notifications,
6347
- ke as Router,
6348
- ol as Scrolling,
6349
- _l as Search,
6350
- el as Setting,
6351
- vt as Sistym,
6397
+ xl as Icon,
6398
+ ul as Init,
6399
+ es as Input,
6400
+ yl as Loading,
6401
+ yn as Modal,
6402
+ Ue as Notice,
6403
+ wl as Notifications,
6404
+ ye as Router,
6405
+ kl as Scrolling,
6406
+ Cl as Search,
6407
+ fl as Setting,
6408
+ kt as Sistym,
6352
6409
  xt as Socket,
6353
6410
  ce as Store,
6354
- fl as Switch,
6355
- Gi as Tabs,
6356
- D as Telegram,
6357
- rl as Triage,
6358
- sl as User
6411
+ Sl as Switch,
6412
+ os as Tabs,
6413
+ N as Telegram,
6414
+ gl as Triage,
6415
+ vl as User
6359
6416
  };