elcrm 0.7.3 → 0.7.5

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,10 +1,10 @@
1
1
  import './index.css';var ka = Object.defineProperty;
2
2
  var ya = (e, t, n) => t in e ? ka(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var ot = (e, t, n) => (ya(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import g, { createElement as ja } from "react";
4
+ import x, { createElement as ja } from "react";
5
5
  let kt = {};
6
6
  const ba = (e) => {
7
- console.log("+++++", e), kt = e;
7
+ kt = e;
8
8
  }, wa = (e) => kt.enCode(e), Sa = (e) => kt.deCode(e), D = { enCode: wa, deCode: Sa, New: ba }, E = {}, Q = {}, ke = {}, mn = {}, he = {};
9
9
  let yt = "M06";
10
10
  function Ea(e) {
@@ -14,8 +14,7 @@ function Ra() {
14
14
  return yt;
15
15
  }
16
16
  function Na(e) {
17
- let t = localStorage.getItem("d");
18
- if (console.log(t), t) {
17
+ if (localStorage.getItem("d")) {
19
18
  let n = sessionStorage.getItem("f");
20
19
  n ? (n = D.deCode(n), n || ee(), E.id = n.id, E.tab = n.tab, E.page = n.page, E.module = n.module, E.time = n.time, E.payment = { active: !0 }, E.module_admin = n.module_admin) : (E.id = 0, E.tab = "", E.page = "Main", E.module = E.module || yt);
21
20
  } else
@@ -67,8 +66,8 @@ function dt() {
67
66
  return ee(), !1;
68
67
  }
69
68
  function $a() {
70
- const [e, t] = g.useState(fn()), n = (s) => {
71
- t(s);
69
+ const [e, t] = x.useState(fn()), n = (r) => {
70
+ t(r);
72
71
  };
73
72
  return Q.page = n, [e];
74
73
  }
@@ -79,8 +78,8 @@ function fn() {
79
78
  return E.page;
80
79
  }
81
80
  function Ba() {
82
- const [e, t] = g.useState(hn()), n = (s) => {
83
- t(s);
81
+ const [e, t] = x.useState(hn()), n = (r) => {
82
+ t(r);
84
83
  };
85
84
  return Q.module = n, [e];
86
85
  }
@@ -91,10 +90,10 @@ function hn() {
91
90
  return E.module;
92
91
  }
93
92
  function Aa(e) {
94
- const [t, n] = g.useState(He() || e), s = (r) => {
95
- n(r);
93
+ const [t, n] = x.useState(He() || e), r = (s) => {
94
+ n(s);
96
95
  };
97
- return Q.tabs = s, [t];
96
+ return Q.tabs = r, [t];
98
97
  }
99
98
  function Za(e, t) {
100
99
  E.tab = e, sessionStorage.setItem("f", D.enCode(E)), t !== "false" && Q.tabs(e);
@@ -103,20 +102,20 @@ function He() {
103
102
  return E.tab;
104
103
  }
105
104
  function za(e) {
106
- const [t, n] = g.useState(E.id), s = (r) => {
105
+ const [t, n] = x.useState(E.id), r = (s) => {
107
106
  if (e)
108
- return e(r);
109
- n(r);
107
+ return e(s);
108
+ n(s);
110
109
  };
111
- return Q.id = s, [t];
110
+ return Q.id = r, [t];
112
111
  }
113
112
  function Ga(e) {
114
113
  Q.id = e;
115
114
  }
116
- function Wa(e, t = !0) {
115
+ function Ka(e, t = !0) {
117
116
  E.id = e, sessionStorage.setItem("f", D.enCode(E)), t && Q.id(e);
118
117
  }
119
- function Ka() {
118
+ function Wa() {
120
119
  return E.id;
121
120
  }
122
121
  function Va(e, t, n) {
@@ -132,7 +131,7 @@ function Ha(e) {
132
131
  let t = localStorage.getItem("s");
133
132
  return t === null ? {} : (t = D.deCode(t), t ? e !== void 0 ? t[e] : t : ee());
134
133
  }
135
- function gn(e) {
134
+ function xn(e) {
136
135
  localStorage.setItem("m", D.enCode({ data: e }));
137
136
  }
138
137
  function qa() {
@@ -140,20 +139,20 @@ function qa() {
140
139
  if (e !== "" && e !== "undefined" && e !== null) {
141
140
  let t = localStorage.getItem("m"), n = D.deCode(t);
142
141
  n || ee();
143
- const s = (i, c) => {
142
+ const r = (i, c) => {
144
143
  let l = c + "";
145
144
  for (; l.length < i; )
146
145
  l = "0" + l;
147
146
  return l;
148
147
  };
149
- return n.data.split(",").map((i) => "M" + s(2, i));
148
+ return n.data.split(",").map((i) => "M" + r(2, i));
150
149
  } else
151
150
  return ee(), !1;
152
151
  }
153
152
  function Ja(e) {
154
153
  Q.sort = e;
155
154
  }
156
- function xn(e) {
155
+ function gn(e) {
157
156
  let t = localStorage.getItem("b");
158
157
  t = t === null ? {} : D.deCode(t), t[He()] = e, localStorage.setItem("b", D.enCode(t));
159
158
  }
@@ -161,10 +160,10 @@ function _t() {
161
160
  let e = localStorage.getItem("b");
162
161
  return e === null ? {} : (e = D.deCode(e), e = e[He()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
163
162
  }
164
- function pn(e) {
163
+ function vn(e) {
165
164
  localStorage.setItem("c", D.enCode(e));
166
165
  }
167
- function vn(e) {
166
+ function pn(e) {
168
167
  let t = localStorage.getItem("c");
169
168
  if (t !== "" && t !== "undefined" && t !== null) {
170
169
  let n = D.deCode(t);
@@ -188,16 +187,16 @@ function Xa(e) {
188
187
  function Qa(e) {
189
188
  return mn.data[e];
190
189
  }
191
- function es(e) {
190
+ function er(e) {
192
191
  E.payment = e;
193
192
  }
194
- function ts() {
193
+ function tr() {
195
194
  return E.payment;
196
195
  }
197
196
  function Cn(e) {
198
197
  localStorage.setItem("u", D.enCode(e));
199
198
  }
200
- function ns() {
199
+ function nr() {
201
200
  let e = localStorage.getItem("u");
202
201
  if (e !== "" && e !== "undefined" && e !== null) {
203
202
  let t = D.deCode(e);
@@ -208,7 +207,7 @@ function ns() {
208
207
  function en(e) {
209
208
  localStorage.setItem("e", D.enCode(e));
210
209
  }
211
- function as() {
210
+ function ar() {
212
211
  let e = localStorage.getItem("e");
213
212
  if (e !== "" && e !== "undefined" && e !== null)
214
213
  try {
@@ -220,7 +219,7 @@ function as() {
220
219
  else
221
220
  return {};
222
221
  }
223
- const re = {
222
+ const se = {
224
223
  setSSID: Ia,
225
224
  getSSID: Da,
226
225
  getPORT: dt,
@@ -229,23 +228,23 @@ const re = {
229
228
  getAUTH: Fa,
230
229
  Logaut: ee,
231
230
  Start: Ta,
232
- setMenu: gn,
231
+ setMenu: xn,
233
232
  getMenu: qa,
234
233
  useSort: Ja,
235
- setSort: xn,
234
+ setSort: gn,
236
235
  getSort: _t,
237
- setCompany: pn,
238
- getCompany: vn,
236
+ setCompany: vn,
237
+ getCompany: pn,
239
238
  setSelect: Pe,
240
239
  getSelect: Be,
241
240
  setApi: Xa,
242
241
  getApi: Qa,
243
- setPayment: es,
244
- getPayment: ts,
242
+ setPayment: er,
243
+ getPayment: tr,
245
244
  setUser: Cn,
246
- getUser: ns,
245
+ getUser: nr,
247
246
  getDefaultModules: Ra
248
- }, kn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK", ss = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), tn = typeof window < "u" && window.Blob && new Blob([ss(kn)], { type: "text/javascript;charset=utf-8" });
247
+ }, kn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK", rr = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), tn = typeof window < "u" && window.Blob && new Blob([rr(kn)], { type: "text/javascript;charset=utf-8" });
249
248
  function yn(e) {
250
249
  let t;
251
250
  try {
@@ -269,37 +268,37 @@ function yn(e) {
269
268
  }
270
269
  }
271
270
  const _e = {};
272
- function rs(e) {
271
+ function sr(e) {
273
272
  return e && (_e.s = e), _e.s;
274
273
  }
275
- function is(e) {
274
+ function ir(e) {
276
275
  return e && (_e.a = e), _e.a;
277
276
  }
278
- function os(e) {
277
+ function or(e) {
279
278
  return e && (_e.c = e), _e.c;
280
279
  }
281
- function ls(e) {
280
+ function lr(e) {
282
281
  return e && (_e.h = e), _e.h;
283
282
  }
284
- const jt = { version: { Api: is, Server: rs, Client: os }, Host: ls };
285
- let cs = "api", ds = "elcrm", _s = "online";
286
- function us() {
287
- let e = re.getPORT(), t = "", n = "";
283
+ const jt = { version: { Api: ir, Server: sr, Client: or }, Host: lr };
284
+ let cr = "api", dr = "elcrm", _r = "online";
285
+ function ur() {
286
+ let e = se.getPORT(), t = "", n = "";
288
287
  return e.address === "localhost" ? (t = `http://localhost:${e.socket}/documents`, n = `http://localhost:${e.socket}/files`) : (t = "https://" + e.address + "/documents", n = "https://" + e.address + "/files"), {
289
288
  documents: t,
290
289
  files: n
291
290
  };
292
291
  }
293
- let jn = `${cs}.${ds}.${_s}`;
294
- function ms(e) {
295
- return "https://" + re.getPORT().address + "/audio/" + e;
296
- }
297
- function bt(e, t = {}, n = re.getAUTH()) {
298
- return new Promise((s) => {
299
- const r = new yn();
300
- r.onmessage = (i) => {
301
- s(i.data), r.terminate();
302
- }, r.postMessage({
292
+ let jn = `${cr}.${dr}.${_r}`;
293
+ function mr(e) {
294
+ return "https://" + se.getPORT().address + "/audio/" + e;
295
+ }
296
+ function bt(e, t = {}, n = se.getAUTH()) {
297
+ return new Promise((r) => {
298
+ const s = new yn();
299
+ s.onmessage = (i) => {
300
+ r(i.data), s.terminate();
301
+ }, s.postMessage({
303
302
  link: e,
304
303
  data: t,
305
304
  ssid: n,
@@ -307,12 +306,12 @@ function bt(e, t = {}, n = re.getAUTH()) {
307
306
  });
308
307
  });
309
308
  }
310
- function fs(e, t = {}, n = re.getAUTH()) {
311
- return new Promise((s) => {
312
- const r = new yn();
313
- r.onmessage = (i) => {
314
- s(i.data), r.terminate();
315
- }, r.postMessage({
309
+ function fr(e, t = {}, n = se.getAUTH()) {
310
+ return new Promise((r) => {
311
+ const s = new yn();
312
+ s.onmessage = (i) => {
313
+ r(i.data), s.terminate();
314
+ }, s.postMessage({
316
315
  link: e,
317
316
  data: t,
318
317
  ssid: n,
@@ -322,9 +321,9 @@ function fs(e, t = {}, n = re.getAUTH()) {
322
321
  }
323
322
  let bn = {
324
323
  "Content-type": "application/json;charset=utf-8",
325
- ssid: re.getAUTH() || ""
324
+ ssid: se.getAUTH() || ""
326
325
  };
327
- async function hs(e, t, n = {}) {
326
+ async function hr(e, t, n = {}) {
328
327
  try {
329
328
  return await (await bt("https://" + e + "/" + t, {
330
329
  method: "POST",
@@ -335,7 +334,7 @@ async function hs(e, t, n = {}) {
335
334
  return { status: "error" };
336
335
  }
337
336
  }
338
- async function gs(e, t = {}) {
337
+ async function xr(e, t = {}) {
339
338
  try {
340
339
  return await (await bt("https://tb.elcrm.online/v1/" + e, {
341
340
  method: "POST",
@@ -346,7 +345,7 @@ async function gs(e, t = {}) {
346
345
  return { status: "error" };
347
346
  }
348
347
  }
349
- const nn = { audio: ms, fetch: bt, modules: fs, remoute: hs, url: us, telegram: gs };
348
+ const nn = { audio: mr, fetch: bt, modules: fr, remoute: hr, url: ur, telegram: xr };
350
349
  var ut = { exports: {} }, Te = {};
351
350
  /**
352
351
  * @license React
@@ -358,20 +357,20 @@ var ut = { exports: {} }, Te = {};
358
357
  * LICENSE file in the root directory of this source tree.
359
358
  */
360
359
  var an;
361
- function xs() {
360
+ function gr() {
362
361
  if (an)
363
362
  return Te;
364
363
  an = 1;
365
- var e = g, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
364
+ var e = x, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
366
365
  function c(l, _, d) {
367
- var u, m = {}, h = null, x = null;
368
- d !== void 0 && (h = "" + d), _.key !== void 0 && (h = "" + _.key), _.ref !== void 0 && (x = _.ref);
366
+ var u, m = {}, h = null, g = null;
367
+ d !== void 0 && (h = "" + d), _.key !== void 0 && (h = "" + _.key), _.ref !== void 0 && (g = _.ref);
369
368
  for (u in _)
370
- s.call(_, u) && !i.hasOwnProperty(u) && (m[u] = _[u]);
369
+ r.call(_, u) && !i.hasOwnProperty(u) && (m[u] = _[u]);
371
370
  if (l && l.defaultProps)
372
371
  for (u in _ = l.defaultProps, _)
373
372
  m[u] === void 0 && (m[u] = _[u]);
374
- return { $$typeof: t, type: l, key: h, ref: x, props: m, _owner: r.current };
373
+ return { $$typeof: t, type: l, key: h, ref: g, props: m, _owner: s.current };
375
374
  }
376
375
  return Te.Fragment = n, Te.jsx = c, Te.jsxs = c, Te;
377
376
  }
@@ -385,54 +384,54 @@ var Ie = {};
385
384
  * This source code is licensed under the MIT license found in the
386
385
  * LICENSE file in the root directory of this source tree.
387
386
  */
388
- var sn;
389
- function ps() {
390
- return sn || (sn = 1, process.env.NODE_ENV !== "production" && function() {
391
- var e = g, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), p = Symbol.iterator, C = "@@iterator";
387
+ var rn;
388
+ function vr() {
389
+ return rn || (rn = 1, process.env.NODE_ENV !== "production" && function() {
390
+ var e = x, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), v = Symbol.iterator, C = "@@iterator";
392
391
  function w(o) {
393
392
  if (o === null || typeof o != "object")
394
393
  return null;
395
- var f = p && o[p] || o[C];
394
+ var f = v && o[v] || o[C];
396
395
  return typeof f == "function" ? f : null;
397
396
  }
398
- var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
397
+ var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
399
398
  function b(o) {
400
399
  {
401
- for (var f = arguments.length, v = new Array(f > 1 ? f - 1 : 0), S = 1; S < f; S++)
402
- v[S - 1] = arguments[S];
403
- R("error", o, v);
400
+ for (var f = arguments.length, p = new Array(f > 1 ? f - 1 : 0), S = 1; S < f; S++)
401
+ p[S - 1] = arguments[S];
402
+ R("error", o, p);
404
403
  }
405
404
  }
406
- function R(o, f, v) {
405
+ function R(o, f, p) {
407
406
  {
408
- var S = y.ReactDebugCurrentFrame, M = S.getStackAddendum();
409
- M !== "" && (f += "%s", v = v.concat([M]));
410
- var L = v.map(function(I) {
407
+ var S = k.ReactDebugCurrentFrame, M = S.getStackAddendum();
408
+ M !== "" && (f += "%s", p = p.concat([M]));
409
+ var L = p.map(function(I) {
411
410
  return String(I);
412
411
  });
413
412
  L.unshift("Warning: " + f), Function.prototype.apply.call(console[o], console, L);
414
413
  }
415
414
  }
416
- var N = !1, j = !1, F = !1, P = !1, B = !1, Y;
417
- Y = Symbol.for("react.module.reference");
415
+ var N = !1, j = !1, F = !1, $ = !1, P = !1, H;
416
+ H = Symbol.for("react.module.reference");
418
417
  function V(o) {
419
- return !!(typeof o == "string" || typeof o == "function" || o === s || o === i || B || o === r || o === d || o === u || P || o === x || N || j || F || typeof o == "object" && o !== null && (o.$$typeof === h || o.$$typeof === m || o.$$typeof === c || o.$$typeof === l || o.$$typeof === _ || // This needs to include all possible module reference object
418
+ return !!(typeof o == "string" || typeof o == "function" || o === r || o === i || P || o === s || o === d || o === u || $ || o === g || N || j || F || typeof o == "object" && o !== null && (o.$$typeof === h || o.$$typeof === m || o.$$typeof === c || o.$$typeof === l || o.$$typeof === _ || // This needs to include all possible module reference object
420
419
  // types supported by any Flight configuration anywhere since
421
420
  // we don't know which Flight build this will end up being used
422
421
  // with.
423
- o.$$typeof === Y || o.getModuleId !== void 0));
422
+ o.$$typeof === H || o.getModuleId !== void 0));
424
423
  }
425
- function $(o, f, v) {
424
+ function B(o, f, p) {
426
425
  var S = o.displayName;
427
426
  if (S)
428
427
  return S;
429
428
  var M = f.displayName || f.name || "";
430
- return M !== "" ? v + "(" + M + ")" : v;
429
+ return M !== "" ? p + "(" + M + ")" : p;
431
430
  }
432
431
  function ae(o) {
433
432
  return o.displayName || "Context";
434
433
  }
435
- function W(o) {
434
+ function K(o) {
436
435
  if (o == null)
437
436
  return null;
438
437
  if (typeof o.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
@@ -440,13 +439,13 @@ function ps() {
440
439
  if (typeof o == "string")
441
440
  return o;
442
441
  switch (o) {
443
- case s:
442
+ case r:
444
443
  return "Fragment";
445
444
  case n:
446
445
  return "Portal";
447
446
  case i:
448
447
  return "Profiler";
449
- case r:
448
+ case s:
450
449
  return "StrictMode";
451
450
  case d:
452
451
  return "Suspense";
@@ -459,17 +458,17 @@ function ps() {
459
458
  var f = o;
460
459
  return ae(f) + ".Consumer";
461
460
  case c:
462
- var v = o;
463
- return ae(v._context) + ".Provider";
461
+ var p = o;
462
+ return ae(p._context) + ".Provider";
464
463
  case _:
465
- return $(o, o.render, "ForwardRef");
464
+ return B(o, o.render, "ForwardRef");
466
465
  case m:
467
466
  var S = o.displayName || null;
468
- return S !== null ? S : W(o.type) || "Memo";
467
+ return S !== null ? S : K(o.type) || "Memo";
469
468
  case h: {
470
469
  var M = o, L = M._payload, I = M._init;
471
470
  try {
472
- return W(I(L));
471
+ return K(I(L));
473
472
  } catch {
474
473
  return null;
475
474
  }
@@ -539,8 +538,8 @@ function ps() {
539
538
  q < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
540
539
  }
541
540
  }
542
- var Xe = y.ReactCurrentDispatcher, Qe;
543
- function ze(o, f, v) {
541
+ var Xe = k.ReactCurrentDispatcher, Qe;
542
+ function ze(o, f, p) {
544
543
  {
545
544
  if (Qe === void 0)
546
545
  try {
@@ -562,9 +561,9 @@ function ps() {
562
561
  if (!o || et)
563
562
  return "";
564
563
  {
565
- var v = Ge.get(o);
566
- if (v !== void 0)
567
- return v;
564
+ var p = Ge.get(o);
565
+ if (p !== void 0)
566
+ return p;
568
567
  }
569
568
  var S;
570
569
  et = !0;
@@ -607,19 +606,19 @@ function ps() {
607
606
  } catch (J) {
608
607
  if (J && S && typeof J.stack == "string") {
609
608
  for (var T = J.stack.split(`
610
- `), H = S.stack.split(`
611
- `), Z = T.length - 1, K = H.length - 1; Z >= 1 && K >= 0 && T[Z] !== H[K]; )
612
- K--;
613
- for (; Z >= 1 && K >= 0; Z--, K--)
614
- if (T[Z] !== H[K]) {
615
- if (Z !== 1 || K !== 1)
609
+ `), Y = S.stack.split(`
610
+ `), Z = T.length - 1, W = Y.length - 1; Z >= 1 && W >= 0 && T[Z] !== Y[W]; )
611
+ W--;
612
+ for (; Z >= 1 && W >= 0; Z--, W--)
613
+ if (T[Z] !== Y[W]) {
614
+ if (Z !== 1 || W !== 1)
616
615
  do
617
- if (Z--, K--, K < 0 || T[Z] !== H[K]) {
616
+ if (Z--, W--, W < 0 || T[Z] !== Y[W]) {
618
617
  var te = `
619
618
  ` + T[Z].replace(" at new ", " at ");
620
619
  return o.displayName && te.includes("<anonymous>") && (te = te.replace("<anonymous>", o.displayName)), typeof o == "function" && Ge.set(o, te), te;
621
620
  }
622
- while (Z >= 1 && K >= 0);
621
+ while (Z >= 1 && W >= 0);
623
622
  break;
624
623
  }
625
624
  }
@@ -629,14 +628,14 @@ function ps() {
629
628
  var Ce = o ? o.displayName || o.name : "", fe = Ce ? ze(Ce) : "";
630
629
  return typeof o == "function" && Ge.set(o, fe), fe;
631
630
  }
632
- function Jn(o, f, v) {
631
+ function Jn(o, f, p) {
633
632
  return At(o, !1);
634
633
  }
635
634
  function Xn(o) {
636
635
  var f = o.prototype;
637
636
  return !!(f && f.isReactComponent);
638
637
  }
639
- function We(o, f, v) {
638
+ function Ke(o, f, p) {
640
639
  if (o == null)
641
640
  return "";
642
641
  if (typeof o == "function")
@@ -654,26 +653,26 @@ function ps() {
654
653
  case _:
655
654
  return Jn(o.render);
656
655
  case m:
657
- return We(o.type, f, v);
656
+ return Ke(o.type, f, p);
658
657
  case h: {
659
658
  var S = o, M = S._payload, L = S._init;
660
659
  try {
661
- return We(L(M), f, v);
660
+ return Ke(L(M), f, p);
662
661
  } catch {
663
662
  }
664
663
  }
665
664
  }
666
665
  return "";
667
666
  }
668
- var Re = Object.prototype.hasOwnProperty, Zt = {}, zt = y.ReactDebugCurrentFrame;
669
- function Ke(o) {
667
+ var Re = Object.prototype.hasOwnProperty, Zt = {}, zt = k.ReactDebugCurrentFrame;
668
+ function We(o) {
670
669
  if (o) {
671
- var f = o._owner, v = We(o.type, o._source, f ? f.type : null);
672
- zt.setExtraStackFrame(v);
670
+ var f = o._owner, p = Ke(o.type, o._source, f ? f.type : null);
671
+ zt.setExtraStackFrame(p);
673
672
  } else
674
673
  zt.setExtraStackFrame(null);
675
674
  }
676
- function Qn(o, f, v, S, M) {
675
+ function Qn(o, f, p, S, M) {
677
676
  {
678
677
  var L = Function.call.bind(Re);
679
678
  for (var I in o)
@@ -681,14 +680,14 @@ function ps() {
681
680
  var T = void 0;
682
681
  try {
683
682
  if (typeof o[I] != "function") {
684
- var H = Error((S || "React class") + ": " + v + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
685
- throw H.name = "Invariant Violation", H;
683
+ var Y = Error((S || "React class") + ": " + p + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
684
+ throw Y.name = "Invariant Violation", Y;
686
685
  }
687
- T = o[I](f, I, S, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
686
+ T = o[I](f, I, S, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
688
687
  } catch (Z) {
689
688
  T = Z;
690
689
  }
691
- T && !(T instanceof Error) && (Ke(M), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", S || "React class", v, I, typeof T), Ke(null)), T instanceof Error && !(T.message in Zt) && (Zt[T.message] = !0, Ke(M), b("Failed %s type: %s", v, T.message), Ke(null));
690
+ T && !(T instanceof Error) && (We(M), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", S || "React class", p, I, typeof T), We(null)), T instanceof Error && !(T.message in Zt) && (Zt[T.message] = !0, We(M), b("Failed %s type: %s", p, T.message), We(null));
692
691
  }
693
692
  }
694
693
  }
@@ -698,8 +697,8 @@ function ps() {
698
697
  }
699
698
  function ta(o) {
700
699
  {
701
- var f = typeof Symbol == "function" && Symbol.toStringTag, v = f && o[Symbol.toStringTag] || o.constructor.name || "Object";
702
- return v;
700
+ var f = typeof Symbol == "function" && Symbol.toStringTag, p = f && o[Symbol.toStringTag] || o.constructor.name || "Object";
701
+ return p;
703
702
  }
704
703
  }
705
704
  function na(o) {
@@ -712,18 +711,18 @@ function ps() {
712
711
  function Gt(o) {
713
712
  return "" + o;
714
713
  }
715
- function Wt(o) {
714
+ function Kt(o) {
716
715
  if (na(o))
717
716
  return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ta(o)), Gt(o);
718
717
  }
719
- var Ne = y.ReactCurrentOwner, aa = {
718
+ var Ne = k.ReactCurrentOwner, aa = {
720
719
  key: !0,
721
720
  ref: !0,
722
721
  __self: !0,
723
722
  __source: !0
724
- }, Kt, Vt, nt;
723
+ }, Wt, Vt, nt;
725
724
  nt = {};
726
- function sa(o) {
725
+ function ra(o) {
727
726
  if (Re.call(o, "ref")) {
728
727
  var f = Object.getOwnPropertyDescriptor(o, "ref").get;
729
728
  if (f && f.isReactWarning)
@@ -731,7 +730,7 @@ function ps() {
731
730
  }
732
731
  return o.ref !== void 0;
733
732
  }
734
- function ra(o) {
733
+ function sa(o) {
735
734
  if (Re.call(o, "key")) {
736
735
  var f = Object.getOwnPropertyDescriptor(o, "key").get;
737
736
  if (f && f.isReactWarning)
@@ -741,40 +740,40 @@ function ps() {
741
740
  }
742
741
  function ia(o, f) {
743
742
  if (typeof o.ref == "string" && Ne.current && f && Ne.current.stateNode !== f) {
744
- var v = W(Ne.current.type);
745
- nt[v] || (b('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', W(Ne.current.type), o.ref), nt[v] = !0);
743
+ var p = K(Ne.current.type);
744
+ nt[p] || (b('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', K(Ne.current.type), o.ref), nt[p] = !0);
746
745
  }
747
746
  }
748
747
  function oa(o, f) {
749
748
  {
750
- var v = function() {
751
- Kt || (Kt = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
749
+ var p = function() {
750
+ Wt || (Wt = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
752
751
  };
753
- v.isReactWarning = !0, Object.defineProperty(o, "key", {
754
- get: v,
752
+ p.isReactWarning = !0, Object.defineProperty(o, "key", {
753
+ get: p,
755
754
  configurable: !0
756
755
  });
757
756
  }
758
757
  }
759
758
  function la(o, f) {
760
759
  {
761
- var v = function() {
760
+ var p = function() {
762
761
  Vt || (Vt = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
763
762
  };
764
- v.isReactWarning = !0, Object.defineProperty(o, "ref", {
765
- get: v,
763
+ p.isReactWarning = !0, Object.defineProperty(o, "ref", {
764
+ get: p,
766
765
  configurable: !0
767
766
  });
768
767
  }
769
768
  }
770
- var ca = function(o, f, v, S, M, L, I) {
769
+ var ca = function(o, f, p, S, M, L, I) {
771
770
  var T = {
772
771
  // This tag allows us to uniquely identify this as a React Element
773
772
  $$typeof: t,
774
773
  // Built-in properties that belong on the element
775
774
  type: o,
776
775
  key: f,
777
- ref: v,
776
+ ref: p,
778
777
  props: I,
779
778
  // Record the component responsible for creating this element.
780
779
  _owner: L
@@ -796,10 +795,10 @@ function ps() {
796
795
  value: M
797
796
  }), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
798
797
  };
799
- function da(o, f, v, S, M) {
798
+ function da(o, f, p, S, M) {
800
799
  {
801
- var L, I = {}, T = null, H = null;
802
- v !== void 0 && (Wt(v), T = "" + v), ra(f) && (Wt(f.key), T = "" + f.key), sa(f) && (H = f.ref, ia(f, M));
800
+ var L, I = {}, T = null, Y = null;
801
+ p !== void 0 && (Kt(p), T = "" + p), sa(f) && (Kt(f.key), T = "" + f.key), ra(f) && (Y = f.ref, ia(f, M));
803
802
  for (L in f)
804
803
  Re.call(f, L) && !aa.hasOwnProperty(L) && (I[L] = f[L]);
805
804
  if (o && o.defaultProps) {
@@ -807,30 +806,30 @@ function ps() {
807
806
  for (L in Z)
808
807
  I[L] === void 0 && (I[L] = Z[L]);
809
808
  }
810
- if (T || H) {
811
- var K = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
812
- T && oa(I, K), H && la(I, K);
809
+ if (T || Y) {
810
+ var W = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
811
+ T && oa(I, W), Y && la(I, W);
813
812
  }
814
- return ca(o, T, H, M, S, Ne.current, I);
813
+ return ca(o, T, Y, M, S, Ne.current, I);
815
814
  }
816
815
  }
817
- var at = y.ReactCurrentOwner, Ut = y.ReactDebugCurrentFrame;
818
- function ve(o) {
816
+ var at = k.ReactCurrentOwner, Ut = k.ReactDebugCurrentFrame;
817
+ function pe(o) {
819
818
  if (o) {
820
- var f = o._owner, v = We(o.type, o._source, f ? f.type : null);
821
- Ut.setExtraStackFrame(v);
819
+ var f = o._owner, p = Ke(o.type, o._source, f ? f.type : null);
820
+ Ut.setExtraStackFrame(p);
822
821
  } else
823
822
  Ut.setExtraStackFrame(null);
824
823
  }
825
- var st;
826
- st = !1;
827
- function rt(o) {
824
+ var rt;
825
+ rt = !1;
826
+ function st(o) {
828
827
  return typeof o == "object" && o !== null && o.$$typeof === t;
829
828
  }
830
829
  function Yt() {
831
830
  {
832
831
  if (at.current) {
833
- var o = W(at.current.type);
832
+ var o = K(at.current.type);
834
833
  if (o)
835
834
  return `
836
835
 
@@ -847,10 +846,10 @@ Check the render method of \`` + o + "`.";
847
846
  {
848
847
  var f = Yt();
849
848
  if (!f) {
850
- var v = typeof o == "string" ? o : o.displayName || o.name;
851
- v && (f = `
849
+ var p = typeof o == "string" ? o : o.displayName || o.name;
850
+ p && (f = `
852
851
 
853
- Check the top-level render call using <` + v + ">.");
852
+ Check the top-level render call using <` + p + ">.");
854
853
  }
855
854
  return f;
856
855
  }
@@ -860,12 +859,12 @@ Check the top-level render call using <` + v + ">.");
860
859
  if (!o._store || o._store.validated || o.key != null)
861
860
  return;
862
861
  o._store.validated = !0;
863
- var v = ua(f);
864
- if (Ht[v])
862
+ var p = ua(f);
863
+ if (Ht[p])
865
864
  return;
866
- Ht[v] = !0;
865
+ Ht[p] = !0;
867
866
  var S = "";
868
- o && o._owner && o._owner !== at.current && (S = " It was passed a child from " + W(o._owner.type) + "."), ve(o), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, S), ve(null);
867
+ o && o._owner && o._owner !== at.current && (S = " It was passed a child from " + K(o._owner.type) + "."), pe(o), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, S), pe(null);
869
868
  }
870
869
  }
871
870
  function Jt(o, f) {
@@ -873,17 +872,17 @@ Check the top-level render call using <` + v + ">.");
873
872
  if (typeof o != "object")
874
873
  return;
875
874
  if (tt(o))
876
- for (var v = 0; v < o.length; v++) {
877
- var S = o[v];
878
- rt(S) && qt(S, f);
875
+ for (var p = 0; p < o.length; p++) {
876
+ var S = o[p];
877
+ st(S) && qt(S, f);
879
878
  }
880
- else if (rt(o))
879
+ else if (st(o))
881
880
  o._store && (o._store.validated = !0);
882
881
  else if (o) {
883
882
  var M = w(o);
884
883
  if (typeof M == "function" && M !== o.entries)
885
884
  for (var L = M.call(o), I; !(I = L.next()).done; )
886
- rt(I.value) && qt(I.value, f);
885
+ st(I.value) && qt(I.value, f);
887
886
  }
888
887
  }
889
888
  }
@@ -892,21 +891,21 @@ Check the top-level render call using <` + v + ">.");
892
891
  var f = o.type;
893
892
  if (f == null || typeof f == "string")
894
893
  return;
895
- var v;
894
+ var p;
896
895
  if (typeof f == "function")
897
- v = f.propTypes;
896
+ p = f.propTypes;
898
897
  else if (typeof f == "object" && (f.$$typeof === _ || // Note: Memo only checks outer props here.
899
898
  // Inner props are checked in the reconciler.
900
899
  f.$$typeof === m))
901
- v = f.propTypes;
900
+ p = f.propTypes;
902
901
  else
903
902
  return;
904
- if (v) {
905
- var S = W(f);
906
- Qn(v, o.props, "prop", S, o);
907
- } else if (f.PropTypes !== void 0 && !st) {
908
- st = !0;
909
- var M = W(f);
903
+ if (p) {
904
+ var S = K(f);
905
+ Qn(p, o.props, "prop", S, o);
906
+ } else if (f.PropTypes !== void 0 && !rt) {
907
+ rt = !0;
908
+ var M = K(f);
910
909
  b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown");
911
910
  }
912
911
  typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -914,31 +913,31 @@ Check the top-level render call using <` + v + ">.");
914
913
  }
915
914
  function fa(o) {
916
915
  {
917
- for (var f = Object.keys(o.props), v = 0; v < f.length; v++) {
918
- var S = f[v];
916
+ for (var f = Object.keys(o.props), p = 0; p < f.length; p++) {
917
+ var S = f[p];
919
918
  if (S !== "children" && S !== "key") {
920
- ve(o), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), ve(null);
919
+ pe(o), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), pe(null);
921
920
  break;
922
921
  }
923
922
  }
924
- o.ref !== null && (ve(o), b("Invalid attribute `ref` supplied to `React.Fragment`."), ve(null));
923
+ o.ref !== null && (pe(o), b("Invalid attribute `ref` supplied to `React.Fragment`."), pe(null));
925
924
  }
926
925
  }
927
926
  var Xt = {};
928
- function Qt(o, f, v, S, M, L) {
927
+ function Qt(o, f, p, S, M, L) {
929
928
  {
930
929
  var I = V(o);
931
930
  if (!I) {
932
931
  var T = "";
933
932
  (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
934
- var H = _a();
935
- H ? T += H : T += Yt();
933
+ var Y = _a();
934
+ Y ? T += Y : T += Yt();
936
935
  var Z;
937
- o === null ? Z = "null" : tt(o) ? Z = "array" : o !== void 0 && o.$$typeof === t ? (Z = "<" + (W(o.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof o, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, T);
936
+ o === null ? Z = "null" : tt(o) ? Z = "array" : o !== void 0 && o.$$typeof === t ? (Z = "<" + (K(o.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof o, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, T);
938
937
  }
939
- var K = da(o, f, v, M, L);
940
- if (K == null)
941
- return K;
938
+ var W = da(o, f, p, M, L);
939
+ if (W == null)
940
+ return W;
942
941
  if (I) {
943
942
  var te = f.children;
944
943
  if (te !== void 0)
@@ -953,107 +952,107 @@ Check the top-level render call using <` + v + ">.");
953
952
  Jt(te, o);
954
953
  }
955
954
  if (Re.call(f, "key")) {
956
- var fe = W(o), J = Object.keys(f).filter(function(Ca) {
955
+ var fe = K(o), J = Object.keys(f).filter(function(Ca) {
957
956
  return Ca !== "key";
958
957
  }), it = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
959
958
  if (!Xt[fe + it]) {
960
- var va = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
959
+ var pa = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
961
960
  b(`A props object containing a "key" prop is being spread into JSX:
962
961
  let props = %s;
963
962
  <%s {...props} />
964
963
  React keys must be passed directly to JSX without using spread:
965
964
  let props = %s;
966
- <%s key={someKey} {...props} />`, it, fe, va, fe), Xt[fe + it] = !0;
965
+ <%s key={someKey} {...props} />`, it, fe, pa, fe), Xt[fe + it] = !0;
967
966
  }
968
967
  }
969
- return o === s ? fa(K) : ma(K), K;
968
+ return o === r ? fa(W) : ma(W), W;
970
969
  }
971
970
  }
972
- function ha(o, f, v) {
973
- return Qt(o, f, v, !0);
971
+ function ha(o, f, p) {
972
+ return Qt(o, f, p, !0);
974
973
  }
975
- function ga(o, f, v) {
976
- return Qt(o, f, v, !1);
974
+ function xa(o, f, p) {
975
+ return Qt(o, f, p, !1);
977
976
  }
978
- var xa = ga, pa = ha;
979
- Ie.Fragment = s, Ie.jsx = xa, Ie.jsxs = pa;
977
+ var ga = xa, va = ha;
978
+ Ie.Fragment = r, Ie.jsx = ga, Ie.jsxs = va;
980
979
  }()), Ie;
981
980
  }
982
- process.env.NODE_ENV === "production" ? ut.exports = xs() : ut.exports = ps();
981
+ process.env.NODE_ENV === "production" ? ut.exports = gr() : ut.exports = vr();
983
982
  var a = ut.exports;
984
- const vs = "_notice_820sc_2", Cs = "_error_820sc_9", ks = "_success_820sc_12", ys = "_remark_820sc_15", js = "_copy_820sc_18", bs = {
985
- notice: vs,
986
- error: Cs,
987
- success: ks,
988
- remark: ys,
989
- copy: js,
983
+ const pr = "_notice_820sc_2", Cr = "_error_820sc_9", kr = "_success_820sc_12", yr = "_remark_820sc_15", jr = "_copy_820sc_18", br = {
984
+ notice: pr,
985
+ error: Cr,
986
+ success: kr,
987
+ remark: yr,
988
+ copy: jr,
990
989
  "show-notice": "_show-notice_820sc_1",
991
990
  "hide-notice": "_hide-notice_820sc_1"
992
991
  };
993
992
  let ue = {};
994
- function ws() {
995
- let [e, t] = g.useState([]);
993
+ function wr() {
994
+ let [e, t] = x.useState([]);
996
995
  return ue.set = (n) => {
997
996
  t([...e, n]);
998
997
  }, ue.del = (n) => {
999
- t(e.filter((s) => s.key !== n));
1000
- }, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { className: bs.notice, children: e.map((n) => n.item) });
998
+ t(e.filter((r) => r.key !== n));
999
+ }, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { className: br.notice, children: e.map((n) => n.item) });
1001
1000
  }
1002
1001
  function Oe({ data: e }) {
1003
- let [t, n] = g.useState("show");
1004
- g.useEffect(() => {
1002
+ let [t, n] = x.useState("show");
1003
+ x.useEffect(() => {
1005
1004
  setTimeout(function() {
1006
1005
  n("hide");
1007
1006
  }, 1800), setTimeout(function() {
1008
1007
  ue.del(e.key);
1009
1008
  }, 2500);
1010
1009
  }, [e.key]);
1011
- let s, r;
1010
+ let r, s;
1012
1011
  switch (e.type) {
1013
1012
  case "error":
1014
- s = /* @__PURE__ */ a.jsx(ge.error, {}), r = "Ошибка:";
1013
+ r = /* @__PURE__ */ a.jsx(xe.error, {}), s = "Ошибка:";
1015
1014
  break;
1016
1015
  case "success":
1017
- s = /* @__PURE__ */ a.jsx(ge.success, {}), r = "Информация:";
1016
+ r = /* @__PURE__ */ a.jsx(xe.success, {}), s = "Информация:";
1018
1017
  break;
1019
1018
  case "copy":
1020
- s = /* @__PURE__ */ a.jsx(ge.success, {}), r = "Копирование:";
1019
+ r = /* @__PURE__ */ a.jsx(xe.success, {}), s = "Копирование:";
1021
1020
  break;
1022
1021
  case "remark":
1023
- s = /* @__PURE__ */ a.jsx(ge.success, {}), r = "Подсказка:";
1022
+ r = /* @__PURE__ */ a.jsx(xe.success, {}), s = "Подсказка:";
1024
1023
  break;
1025
1024
  default:
1026
- s = /* @__PURE__ */ a.jsx(ge.success, {}), r = "Предупреждение:";
1025
+ r = /* @__PURE__ */ a.jsx(xe.success, {}), s = "Предупреждение:";
1027
1026
  break;
1028
1027
  }
1029
1028
  return /* @__PURE__ */ a.jsxs("li", { className: "item " + e.type, "data-status": t, children: [
1030
- s,
1031
- /* @__PURE__ */ a.jsx("b", { children: r }),
1029
+ r,
1030
+ /* @__PURE__ */ a.jsx("b", { children: s }),
1032
1031
  /* @__PURE__ */ a.jsx("p", { children: e.text })
1033
1032
  ] });
1034
1033
  }
1035
- function Ss(e) {
1034
+ function Sr(e) {
1036
1035
  let t = Date.now(), n = { key: t, ...e };
1037
1036
  ue.set({ item: /* @__PURE__ */ a.jsx(Oe, { data: n }, t), key: t });
1038
1037
  }
1039
- function Es(e) {
1038
+ function Er(e) {
1040
1039
  let t = Date.now(), n = { key: t, text: e, type: "error" };
1041
1040
  ue.set({ item: /* @__PURE__ */ a.jsx(Oe, { data: n }, t), key: t });
1042
1041
  }
1043
- function Rs(e) {
1042
+ function Rr(e) {
1044
1043
  let t = Date.now(), n = { key: t, text: e, type: "success" };
1045
1044
  ue.set({ item: /* @__PURE__ */ a.jsx(Oe, { data: n }, t), key: t });
1046
1045
  }
1047
- function Ns(e) {
1046
+ function Nr(e) {
1048
1047
  let t = Date.now(), n = { key: t, text: e, type: "remark" };
1049
1048
  ue.set({ item: /* @__PURE__ */ a.jsx(Oe, { data: n }, t), key: t });
1050
1049
  }
1051
- function Ts(e) {
1050
+ function Tr(e) {
1052
1051
  let t = Date.now(), n = { key: t, text: e, type: "copy" };
1053
1052
  ue.set({ item: /* @__PURE__ */ a.jsx(Oe, { data: n }, t), key: t });
1054
1053
  }
1055
- const ge = {};
1056
- ge.error = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1054
+ const xe = {};
1055
+ xe.error = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1057
1056
  /* @__PURE__ */ a.jsx(
1058
1057
  "path",
1059
1058
  {
@@ -1069,7 +1068,7 @@ ge.error = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "no
1069
1068
  }
1070
1069
  )
1071
1070
  ] });
1072
- ge.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1071
+ xe.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1073
1072
  /* @__PURE__ */ a.jsx(
1074
1073
  "path",
1075
1074
  {
@@ -1085,21 +1084,21 @@ ge.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "
1085
1084
  }
1086
1085
  )
1087
1086
  ] });
1088
- const Is = "_alerts_1pds5_1", Ds = "_menuAnimation_1pds5_1", Ms = "_menuItemAnimation_1pds5_1", Fs = "_allert_1pds5_111", Ls = "_al_1pds5_1", mt = {
1089
- alerts: Is,
1090
- menuAnimation: Ds,
1091
- menuItemAnimation: Ms,
1087
+ const Ir = "_alerts_1pds5_1", Dr = "_menuAnimation_1pds5_1", Mr = "_menuItemAnimation_1pds5_1", Fr = "_allert_1pds5_111", Lr = "_al_1pds5_1", mt = {
1088
+ alerts: Ir,
1089
+ menuAnimation: Dr,
1090
+ menuItemAnimation: Mr,
1092
1091
  "--body": "_--body_1pds5_103",
1093
- allert: Fs,
1092
+ allert: Fr,
1094
1093
  "--form": "_--form_1pds5_111",
1095
- al: Ls
1094
+ al: Lr
1096
1095
  };
1097
1096
  let Fe = {};
1098
- function $s() {
1099
- let [e, t] = g.useState("");
1097
+ function $r() {
1098
+ let [e, t] = x.useState("");
1100
1099
  return Fe.set = (n) => t(n), Fe.del = () => t(""), /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
1101
1100
  }
1102
- const Ps = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: mt.alerts, children: [
1101
+ const Pr = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: mt.alerts, children: [
1103
1102
  /* @__PURE__ */ a.jsxs("dl", { children: [
1104
1103
  /* @__PURE__ */ a.jsx("dt", { children: e.title }),
1105
1104
  /* @__PURE__ */ a.jsx("dd", { children: e.text }),
@@ -1116,10 +1115,10 @@ const Ps = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "По
1116
1115
  ] }),
1117
1116
  /* @__PURE__ */ a.jsx("div", { className: mt["--body"], onClick: Fe.del })
1118
1117
  ] }));
1119
- function Bs(e, t) {
1120
- Fe.set(/* @__PURE__ */ a.jsx(Ps, { data: e, callback: t }));
1118
+ function Br(e, t) {
1119
+ Fe.set(/* @__PURE__ */ a.jsx(Pr, { data: e, callback: t }));
1121
1120
  }
1122
- const Le = { Send: Ss, Error: Es, Remark: Ns, Success: Rs, Copy: Ts }, Ue = {
1121
+ const Le = { Send: Sr, Error: Er, Remark: Nr, Success: Rr, Copy: Tr }, Ue = {
1123
1122
  Path: Va,
1124
1123
  setPage: Pa,
1125
1124
  getPage: fn,
@@ -1131,11 +1130,11 @@ const Le = { Send: Ss, Error: Es, Remark: Ns, Success: Rs, Copy: Ts }, Ue = {
1131
1130
  getTabs: He,
1132
1131
  useTabs: Aa,
1133
1132
  useId: za,
1134
- setId: Wa,
1133
+ setId: Ka,
1135
1134
  subId: Ga,
1136
- getId: Ka
1135
+ getId: Wa
1137
1136
  };
1138
- function Os() {
1137
+ function Or() {
1139
1138
  return /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1140
1139
  /* @__PURE__ */ a.jsx(
1141
1140
  "path",
@@ -1170,7 +1169,7 @@ function Os() {
1170
1169
  )
1171
1170
  ] });
1172
1171
  }
1173
- function As() {
1172
+ function Ar() {
1174
1173
  return /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1175
1174
  /* @__PURE__ */ a.jsx(
1176
1175
  "path",
@@ -1199,7 +1198,7 @@ function As() {
1199
1198
  )
1200
1199
  ] });
1201
1200
  }
1202
- function Zs() {
1201
+ function Zr() {
1203
1202
  return /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ a.jsx(
1204
1203
  "path",
1205
1204
  {
@@ -1212,11 +1211,11 @@ function Zs() {
1212
1211
  }
1213
1212
  ) });
1214
1213
  }
1215
- const zs = "_n_euuvm_1", Gs = {
1216
- n: zs
1214
+ const zr = "_n_euuvm_1", Gr = {
1215
+ n: zr
1217
1216
  };
1218
1217
  let Ae = {}, De = [];
1219
- const Ws = (e, t) => {
1218
+ const Kr = (e, t) => {
1220
1219
  switch (t.type) {
1221
1220
  case "open":
1222
1221
  return {
@@ -1241,7 +1240,7 @@ const Ws = (e, t) => {
1241
1240
  active: t.data.length !== 0
1242
1241
  };
1243
1242
  case "hide":
1244
- let n = e.news.filter((r) => r.id !== t.id);
1243
+ let n = e.news.filter((s) => s.id !== t.id);
1245
1244
  return {
1246
1245
  ...e,
1247
1246
  news: n,
@@ -1253,13 +1252,13 @@ const Ws = (e, t) => {
1253
1252
  size: t.size
1254
1253
  };
1255
1254
  case "take":
1256
- let s = { [t.list]: t.take };
1257
- s = { ...e.take, ...s }, e.active = !1;
1258
- for (let r in s)
1259
- s[r] !== "999" && (e.active = !0);
1260
- return Ae.get(s, e.active), {
1255
+ let r = { [t.list]: t.take };
1256
+ r = { ...e.take, ...r }, e.active = !1;
1257
+ for (let s in r)
1258
+ r[s] !== "999" && (e.active = !0);
1259
+ return Ae.get(r, e.active), {
1261
1260
  ...e,
1262
- take: s,
1261
+ take: r,
1263
1262
  active: e.active
1264
1263
  };
1265
1264
  case "exit":
@@ -1268,49 +1267,47 @@ const Ws = (e, t) => {
1268
1267
  throw new Error();
1269
1268
  }
1270
1269
  };
1271
- function Ks(e) {
1270
+ function Wr(e) {
1272
1271
  Ae.fn({ action: "add", data: e });
1273
1272
  }
1274
- function Vs(e) {
1273
+ function Vr(e) {
1275
1274
  Ae.fn({ action: "add", data: e });
1276
1275
  }
1277
- function Us(e) {
1276
+ function Ur(e) {
1278
1277
  Ae.fn({ action: "new", data: e });
1279
1278
  }
1280
- function Ys(e) {
1279
+ function Yr(e) {
1281
1280
  Ae.fn = e;
1282
1281
  }
1283
- function Hs() {
1284
- const [e, t] = g.useReducer(Ws, {
1282
+ function Hr() {
1283
+ const [e, t] = x.useReducer(Kr, {
1285
1284
  open: !1,
1286
1285
  active: !1,
1287
1286
  news: [],
1288
1287
  take: {}
1289
1288
  });
1290
- ce.useListener("bell", async (s) => {
1291
- console.log(s);
1292
- }), Ys(async (s) => {
1293
- switch (console.log(s), s.action) {
1289
+ ce.useListener("bell", async (r) => {
1290
+ }), Yr(async (r) => {
1291
+ switch (r.action) {
1294
1292
  case "add":
1295
- De.push(s.data);
1293
+ De.push(r.data);
1296
1294
  break;
1297
1295
  }
1298
- }), g.useEffect(() => {
1296
+ }), x.useEffect(() => {
1299
1297
  (async () => {
1300
- let s = await ce.Send({
1298
+ let r = await ce.Send({
1301
1299
  type: "module",
1302
1300
  module: "M00",
1303
1301
  query: "x0054",
1304
1302
  array: ["M01", "M02"]
1305
1303
  });
1306
- console.log(s);
1307
- for (let r in s)
1308
- switch (r) {
1304
+ for (let s in r)
1305
+ switch (s) {
1309
1306
  case "news":
1310
- t({ type: "news", data: s.news });
1307
+ t({ type: "news", data: r.news });
1311
1308
  break;
1312
1309
  case "M01":
1313
- s[r].forEach((i) => {
1310
+ r[s].forEach((i) => {
1314
1311
  De.push({
1315
1312
  module: "M01",
1316
1313
  type: 1,
@@ -1321,7 +1318,7 @@ function Hs() {
1321
1318
  });
1322
1319
  break;
1323
1320
  case "M02":
1324
- s[r].forEach((i) => {
1321
+ r[s].forEach((i) => {
1325
1322
  De.push({
1326
1323
  module: "M02",
1327
1324
  type: 117,
@@ -1333,32 +1330,32 @@ function Hs() {
1333
1330
  break;
1334
1331
  }
1335
1332
  })(), setInterval(() => {
1336
- De.forEach((s, r) => {
1333
+ De.forEach((r, s) => {
1337
1334
  t({
1338
1335
  type: "add",
1339
1336
  data: {
1340
- module: s.module,
1341
- type: s.type,
1342
- id: s.id,
1343
- datetime: s.datetime,
1344
- txt: s.title
1337
+ module: r.module,
1338
+ type: r.type,
1339
+ id: r.id,
1340
+ datetime: r.datetime,
1341
+ txt: r.title
1345
1342
  }
1346
- }), s.datetime < (/* @__PURE__ */ new Date()).getTime() && De.splice(r, 1);
1343
+ }), r.datetime < (/* @__PURE__ */ new Date()).getTime() && De.splice(s, 1);
1347
1344
  });
1348
1345
  }, 6e4);
1349
1346
  }, []);
1350
- let n = async (s) => {
1351
- t({ type: "hide", id: s.id });
1347
+ let n = async (r) => {
1348
+ t({ type: "hide", id: r.id });
1352
1349
  };
1353
1350
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1354
1351
  /* @__PURE__ */ a.jsx(
1355
1352
  "div",
1356
1353
  {
1357
- className: Gs.n,
1354
+ className: Gr.n,
1358
1355
  onClick: () => {
1359
1356
  t({ type: "open", open: !0 });
1360
1357
  },
1361
- children: e.active ? /* @__PURE__ */ a.jsx(As, {}) : /* @__PURE__ */ a.jsx(Os, {})
1358
+ children: e.active ? /* @__PURE__ */ a.jsx(Ar, {}) : /* @__PURE__ */ a.jsx(Or, {})
1362
1359
  }
1363
1360
  ),
1364
1361
  e.open ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -1372,29 +1369,27 @@ function Hs() {
1372
1369
  }
1373
1370
  ),
1374
1371
  /* @__PURE__ */ a.jsxs("div", { className: "notify-m", children: [
1375
- /* @__PURE__ */ a.jsx("div", { className: "notify-l", children: e.news.map((s, r) => /* @__PURE__ */ a.jsx(
1376
- qs,
1372
+ /* @__PURE__ */ a.jsx("div", { className: "notify-l", children: e.news.map((r, s) => /* @__PURE__ */ a.jsx(
1373
+ qr,
1377
1374
  {
1378
- data: s,
1375
+ data: r,
1379
1376
  dispatch: t
1380
1377
  },
1381
- r
1378
+ s
1382
1379
  )) }),
1383
1380
  /* @__PURE__ */ a.jsx("div", { className: "notify-b", onClick: n, children: "История" })
1384
1381
  ] })
1385
1382
  ] }) : ""
1386
1383
  ] });
1387
1384
  }
1388
- const qs = ({ data: e, dispatch: t }) => {
1389
- let n = async (s) => {
1390
- console.log(s), t({ type: "hide", id: s.id });
1391
- let r = await ce.Send({
1385
+ const qr = ({ data: e, dispatch: t }) => {
1386
+ let n = async (r) => {
1387
+ t({ type: "hide", id: r.id }), await ce.Send({
1392
1388
  type: "module",
1393
1389
  module: "M00",
1394
1390
  query: "x0055",
1395
- data: { id: s.id, type: s.type, db: s.db }
1391
+ data: { id: r.id, type: r.type, db: r.db }
1396
1392
  });
1397
- console.log(r);
1398
1393
  };
1399
1394
  return /* @__PURE__ */ a.jsxs("div", { className: "notify-i", children: [
1400
1395
  /* @__PURE__ */ a.jsx("div", { className: "--icon", "data-icon": e.type }),
@@ -1404,25 +1399,25 @@ const qs = ({ data: e, dispatch: t }) => {
1404
1399
  ] }),
1405
1400
  /* @__PURE__ */ a.jsx("div", { className: "--hide", "data-icon": "F038", onClick: () => n(e), children: " " })
1406
1401
  ] });
1407
- }, Js = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
1408
- function Xs(e) {
1402
+ }, Jr = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
1403
+ function Xr(e) {
1409
1404
  return new SharedWorker(
1410
- "data:text/javascript;base64," + Js,
1405
+ "data:text/javascript;base64," + Jr,
1411
1406
  {
1412
1407
  name: e == null ? void 0 : e.name
1413
1408
  }
1414
1409
  );
1415
1410
  }
1416
- function Qs(e) {
1411
+ function Qr(e) {
1417
1412
  let t = {}, n = {};
1418
- e.data.forEach((r) => {
1419
- t[r.id] = { s: r.v, n: r.a }, n[r.id] = r;
1413
+ e.data.forEach((s) => {
1414
+ t[s.id] = { s: s.v, n: s.a }, n[s.id] = s;
1420
1415
  });
1421
- let s = { ...Be(), 901: t };
1422
- pn(n), Pe(s);
1416
+ let r = { ...Be(), 901: t };
1417
+ vn(n), Pe(r);
1423
1418
  }
1424
- function er() {
1425
- let e = vn(), t = {};
1419
+ function es() {
1420
+ let e = pn(), t = {};
1426
1421
  return Object.keys(e).forEach((n) => {
1427
1422
  t[e[n].id] = {}, t[e[n].id].name = e[n].a;
1428
1423
  }), t;
@@ -1437,10 +1432,10 @@ let ie = {}, U = {}, Ve = [
1437
1432
  "info",
1438
1433
  "job"
1439
1434
  ];
1440
- function tr() {
1441
- const [e, t] = g.useState(!1), [n, s] = g.useState(!1);
1442
- function r(i) {
1443
- const c = new Xs();
1435
+ function ts() {
1436
+ const [e, t] = x.useState(!1), [n, r] = x.useState(!1);
1437
+ function s(i) {
1438
+ const c = new Xr();
1444
1439
  ie.laodData = (l) => {
1445
1440
  let _ = Ve.indexOf(l);
1446
1441
  _ >= 0 && Ve.splice(_, 1), Ve.length === 0 && t(!0);
@@ -1448,7 +1443,7 @@ function tr() {
1448
1443
  c.port.postMessage({ type: "send", json: l });
1449
1444
  }, c.port.onmessage = (l) => {
1450
1445
  let _ = l.data;
1451
- _.type === "error" && s(!0), _.type === "true" && t(!0), _.type === "closed" && c.port.postMessage({
1446
+ _.type === "error" && r(!0), _.type === "true" && t(!0), _.type === "closed" && c.port.postMessage({
1452
1447
  type: "connect",
1453
1448
  ukey: i,
1454
1449
  lk: dt()
@@ -1459,16 +1454,16 @@ function tr() {
1459
1454
  lk: dt()
1460
1455
  });
1461
1456
  }
1462
- return [r, e, n];
1457
+ return [s, e, n];
1463
1458
  }
1464
1459
  U.module = (e) => {
1465
1460
  ie[e.listen] !== void 0 && (ie[e.listen](e), delete ie[e.listen]);
1466
1461
  };
1467
- U.bell = Us;
1468
- U.company = Qs;
1462
+ U.bell = Ur;
1463
+ U.company = Qr;
1469
1464
  U.info = (e) => {
1470
1465
  let t = {};
1471
- 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), gn(e.data.menu);
1466
+ 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), xn(e.data.menu);
1472
1467
  };
1473
1468
  U.version = async (e) => {
1474
1469
  jt.version.Server(e.data);
@@ -1478,7 +1473,7 @@ U.online = async (e) => {
1478
1473
  U.offline = async (e) => {
1479
1474
  };
1480
1475
  U.chat = (e) => {
1481
- switch (console.log(e.data.action), e.data.action) {
1476
+ switch (e.data.action) {
1482
1477
  case "new_message":
1483
1478
  Ue.getModule();
1484
1479
  break;
@@ -1489,22 +1484,20 @@ U.chat = (e) => {
1489
1484
  Ue.getModule();
1490
1485
  break;
1491
1486
  }
1492
- console.log(e);
1493
1487
  };
1494
1488
  U.users = (e) => {
1495
- console.log("users", e);
1496
1489
  let t = {};
1497
- e.data.forEach((s) => {
1498
- let r = s.p01 + " " + s.p02 + " " + s.p03, i = s.p01 + " " + s.p02.substring(0, 1) + "." + s.p03.substring(0, 1) + ".", c = s.p01.substring(0, 1) + "" + s.p02.substring(0, 1) + s.p03.substring(0, 1);
1499
- t[s.id] = {
1500
- id: s.id,
1501
- admin: s.m.includes("99"),
1502
- ava: JSON.parse(s.a),
1503
- job: s.j,
1490
+ e.data.forEach((r) => {
1491
+ let s = r.p01 + " " + r.p02 + " " + r.p03, i = r.p01 + " " + r.p02.substring(0, 1) + "." + r.p03.substring(0, 1) + ".", c = r.p01.substring(0, 1) + "" + r.p02.substring(0, 1) + r.p03.substring(0, 1);
1492
+ t[r.id] = {
1493
+ id: r.id,
1494
+ admin: r.m.includes("99"),
1495
+ ava: JSON.parse(r.a),
1496
+ job: r.j,
1504
1497
  login: "",
1505
- online: { time: s.o, status: 0 },
1506
- sts: s.s,
1507
- nameFull: r,
1498
+ online: { time: r.o, status: 0 },
1499
+ sts: r.s,
1500
+ nameFull: s,
1508
1501
  name: i,
1509
1502
  number: c
1510
1503
  };
@@ -1529,8 +1522,8 @@ U.select = (e) => {
1529
1522
  };
1530
1523
  U.job = (e) => {
1531
1524
  let t = { ...Be() }, n = {};
1532
- Object.keys(e.data).forEach((s) => {
1533
- n[s] = { s: 1, n: e.data[s] };
1525
+ Object.keys(e.data).forEach((r) => {
1526
+ n[r] = { s: 1, n: e.data[r] };
1534
1527
  }), t[1] = n, Pe(t);
1535
1528
  };
1536
1529
  U.setting = (e) => {
@@ -1538,21 +1531,21 @@ U.setting = (e) => {
1538
1531
  };
1539
1532
  U.app = () => {
1540
1533
  };
1541
- const nr = (e, t) => {
1534
+ const ns = (e, t) => {
1542
1535
  ie[e] = t;
1543
- }, ar = (e, t) => {
1536
+ }, as = (e, t) => {
1544
1537
  ie[e](t);
1545
1538
  };
1546
- function sr(e) {
1539
+ function rs(e) {
1547
1540
  let t = "_" + String(Math.random()).substring(2, 7);
1548
1541
  return new Promise((n) => {
1549
- ie[t] = (s) => {
1550
- s.error !== void 0 ? n({ error: s.error }) : n(s.data), delete ie[t];
1542
+ ie[t] = (r) => {
1543
+ r.error !== void 0 ? n({ error: r.error }) : n(r.data), delete ie[t];
1551
1544
  }, e = { ...e, listen: t }, e.type = "modules", ie.send(e);
1552
1545
  });
1553
1546
  }
1554
- const ce = { useConnect: tr, useListener: nr, setListener: ar, Send: sr };
1555
- function rr(e, t) {
1547
+ const ce = { useConnect: ts, useListener: ns, setListener: as, Send: rs };
1548
+ function ss(e, t) {
1556
1549
  t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
1557
1550
  let n = {
1558
1551
  yyyy: e.getFullYear(),
@@ -1565,19 +1558,19 @@ function rr(e, t) {
1565
1558
  __: "      ",
1566
1559
  _: "    "
1567
1560
  };
1568
- for (const s in n)
1569
- t = t.replace(s, n[s]);
1561
+ for (const r in n)
1562
+ t = t.replace(r, n[r]);
1570
1563
  return t;
1571
1564
  }
1572
- function ir(e) {
1565
+ function is(e) {
1573
1566
  let t = ["Января", "Февраля", "Марта", "Апреля", "Мая", "Июня", "Июля", "Августа", "Сентября", "Октября", "Ноября", "Декабря"], n = new Date(e);
1574
1567
  return { day: ("" + n.getFullYear()).slice(-2) + "" + ("0" + (n.getMonth() + 1)).slice(-2) + ("0" + n.getDate()).slice(-2), name: n.getDate() + " " + t[n.getMonth()] };
1575
1568
  }
1576
- const or = (e) => {
1569
+ const os = (e) => {
1577
1570
  function t(R, N) {
1578
- var j, P, F;
1571
+ var j, $, F;
1579
1572
  R = R ?? "", N = N ?? 1;
1580
- for (var j = [], F = 0, P = R.length; F < P; )
1573
+ for (var j = [], F = 0, $ = R.length; F < $; )
1581
1574
  j.push(R.slice(F, F += N));
1582
1575
  return j;
1583
1576
  }
@@ -1585,7 +1578,7 @@ const or = (e) => {
1585
1578
  var j = [2, 0, 1, 1, 1, 2];
1586
1579
  return N[R > 4 && R < 20 ? 2 : j[Math.min(R, 5)]];
1587
1580
  }
1588
- var s = {
1581
+ var r = {
1589
1582
  null: "ноль",
1590
1583
  a1: [
1591
1584
  "один",
@@ -1647,43 +1640,43 @@ const or = (e) => {
1647
1640
  u3: ["тысяча", "тысячи", "тысяч"],
1648
1641
  u2: ["миллион", "миллиона", "миллионов"],
1649
1642
  u1: ["миллиард", "миллиарда", "миллиардов"]
1650
- }, r, i, c, l, w, _, d, C, u, m, h, x;
1643
+ }, s, i, c, l, w, _, d, C, u, m, h, g;
1651
1644
  u = parseFloat(e).toFixed(2).split("."), _ = u[0], l = u[1];
1652
- var p = 12 - _.length;
1653
- if (p < 0)
1645
+ var v = 12 - _.length;
1646
+ if (v < 0)
1654
1647
  return !1;
1655
- for (var C = []; p--; )
1648
+ for (var C = []; v--; )
1656
1649
  C.push("0");
1657
1650
  _ = C.join("") + _;
1658
1651
  var w = [];
1659
1652
  if (_ > 0) {
1660
1653
  m = t(_, 3);
1661
- for (var y = -1; y < m.length; y++)
1662
- if (d = m[y], d > 0 && (h = t(d, 1), r = parseInt(h[0]), i = parseInt(h[1]), c = parseInt(h[2]), w.push(s.a100[r - 1]), x = y + 1 == 3 ? "a2" : "a1", i > 1 ? w.push(
1663
- s.a20[i - 2] + (c > 0 ? " " + s[x][c - 1] : "")
1654
+ for (var k = -1; k < m.length; k++)
1655
+ if (d = m[k], d > 0 && (h = t(d, 1), s = parseInt(h[0]), i = parseInt(h[1]), c = parseInt(h[2]), w.push(r.a100[s - 1]), g = k + 1 == 3 ? "a2" : "a1", i > 1 ? w.push(
1656
+ r.a20[i - 2] + (c > 0 ? " " + r[g][c - 1] : "")
1664
1657
  ) : w.push(
1665
- i > 0 ? s.a10[c] : s[x][c - 1]
1666
- ), m.length > y + 1)) {
1667
- var b = s["u" + (y + 1)];
1658
+ i > 0 ? r.a10[c] : r[g][c - 1]
1659
+ ), m.length > k + 1)) {
1660
+ var b = r["u" + (k + 1)];
1668
1661
  w.push(n(d, b));
1669
1662
  }
1670
1663
  } else
1671
- w.push(s.null);
1672
- return w.push(n(_, s.ur)), w.push(l + " " + n(l, s.uc)), w.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1664
+ w.push(r.null);
1665
+ return w.push(n(_, r.ur)), w.push(l + " " + n(l, r.uc)), w.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1673
1666
  };
1674
- function lr(e) {
1667
+ function ls(e) {
1675
1668
  let t = -1, n = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
1676
1669
  do
1677
1670
  e = e / 1024, t++;
1678
1671
  while (e > 1024);
1679
1672
  return Math.max(e, 0.1).toFixed(1) + n[t];
1680
1673
  }
1681
- function cr(e) {
1674
+ function cs(e) {
1682
1675
  let t = {};
1683
1676
  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];
1684
1677
  }
1685
- function dr(e, t, n, s) {
1686
- let r = {
1678
+ function ds(e, t, n, r) {
1679
+ let s = {
1687
1680
  sexM: "m",
1688
1681
  sexF: "f",
1689
1682
  gcaseIm: "nominative",
@@ -1813,14 +1806,14 @@ function dr(e, t, n, s) {
1813
1806
  if (c.match(/^[А-ЯЁ]\.?$/i))
1814
1807
  return c;
1815
1808
  this.init();
1816
- var x = this.rules[_];
1817
- let p;
1818
- return x.exceptions && (p = this.pick(c, l, d, x.exceptions, !0), p) ? p : (p = this.pick(c, l, d, x.suffixes, !1), p || c);
1809
+ var g = this.rules[_];
1810
+ let v;
1811
+ return g.exceptions && (v = this.pick(c, l, d, g.exceptions, !0), v) ? v : (v = this.pick(c, l, d, g.suffixes, !1), v || c);
1819
1812
  },
1820
1813
  // выбираем из списка правил первое подходящее и применяем
1821
1814
  pick: function(c, l, _, d, u) {
1822
1815
  let m = c.toLowerCase();
1823
- for (var h = 0, x = d.length; h < x; h++)
1816
+ for (var h = 0, g = d.length; h < g; h++)
1824
1817
  if (this.ruleMatch(m, l, d[h], u))
1825
1818
  return this.applyMod(c, _, d[h]);
1826
1819
  return !1;
@@ -1876,8 +1869,8 @@ function dr(e, t, n, s) {
1876
1869
  return c;
1877
1870
  },
1878
1871
  getSex: () => {
1879
- if (r.mn.length > 2)
1880
- switch (r.mn.substr(r.mn.length - 2)) {
1872
+ if (s.mn.length > 2)
1873
+ switch (s.mn.substr(s.mn.length - 2)) {
1881
1874
  case "ич":
1882
1875
  return "m";
1883
1876
  case "на":
@@ -1885,20 +1878,20 @@ function dr(e, t, n, s) {
1885
1878
  }
1886
1879
  return "";
1887
1880
  },
1888
- fullName: (c) => ((r.fullNameSurnameLast ? "" : r.lastName(c) + " ") + r.firstName(c) + " " + r.middleName(c) + (r.fullNameSurnameLast ? " " + r.lastName(c) : "")).replace(/^ +| +$/g, ""),
1889
- lastName: (c) => r.word(r.ln, r.sex, "lastName", c),
1890
- firstName: (c) => r.word(r.fn, r.sex, "firstName", c),
1891
- middleName: (c) => r.word(r.mn, r.sex, "middleName", c)
1881
+ fullName: (c) => ((s.fullNameSurnameLast ? "" : s.lastName(c) + " ") + s.firstName(c) + " " + s.middleName(c) + (s.fullNameSurnameLast ? " " + s.lastName(c) : "")).replace(/^ +| +$/g, ""),
1882
+ lastName: (c) => s.word(s.ln, s.sex, "lastName", c),
1883
+ firstName: (c) => s.word(s.fn, s.sex, "firstName", c),
1884
+ middleName: (c) => s.word(s.mn, s.sex, "middleName", c)
1892
1885
  };
1893
1886
  if (typeof t > "u") {
1894
1887
  var i = e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);
1895
1888
  if (!i)
1896
1889
  return "Cannot parse supplied name";
1897
- i[5] && i[3].match(/(ич|на)$/) && !i[5].match(/(ич|на)$/) ? (e = i[5], t = i[1], n = i[3], r.fullNameSurnameLast = !0) : (e = i[1], t = i[3], n = i[5]);
1890
+ i[5] && i[3].match(/(ич|на)$/) && !i[5].match(/(ич|на)$/) ? (e = i[5], t = i[1], n = i[3], s.fullNameSurnameLast = !0) : (e = i[1], t = i[3], n = i[5]);
1898
1891
  }
1899
- return r.ln = e, r.fn = t || "", r.mn = n || "", r.sex = s || r.getSex(), r;
1892
+ return s.ln = e, s.fn = t || "", s.mn = n || "", s.sex = r || s.getSex(), s;
1900
1893
  }
1901
- function _r(e) {
1894
+ function _s(e) {
1902
1895
  let t = e.split(" ");
1903
1896
  switch (t.length) {
1904
1897
  case 2:
@@ -1909,7 +1902,7 @@ function _r(e) {
1909
1902
  return e;
1910
1903
  }
1911
1904
  }
1912
- function ur(e) {
1905
+ function us(e) {
1913
1906
  return {
1914
1907
  1: { val: "01", name: "Январь", names: "Января", abc: "Янв" },
1915
1908
  2: { val: "02", name: "Февраль", names: "Февраля", abc: "Февр" },
@@ -1925,130 +1918,130 @@ function ur(e) {
1925
1918
  12: { val: "12", name: "Декабрь", names: "Декабря", abc: "Дек" }
1926
1919
  }[e];
1927
1920
  }
1928
- function mr(e) {
1921
+ function ms(e) {
1929
1922
  return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
1930
1923
  }
1931
- function fr(e, t) {
1924
+ function fs(e, t) {
1932
1925
  let n = t + "";
1933
1926
  for (; n.length < e; )
1934
1927
  n = "0" + n;
1935
1928
  return n;
1936
1929
  }
1937
- function hr(e, t, n) {
1938
- let s = t / e * n;
1939
- return (typeof s != "number" || s === 1 / 0) && (s = 0), parseFloat(s).toFixed(1);
1930
+ function hs(e, t, n) {
1931
+ let r = t / e * n;
1932
+ return (typeof r != "number" || r === 1 / 0) && (r = 0), parseFloat(r).toFixed(1);
1940
1933
  }
1941
- function gr(e) {
1934
+ function xs(e) {
1942
1935
  return e.charAt(0).toUpperCase() + e.slice(1);
1943
1936
  }
1944
- function xr(e, t) {
1937
+ function gs(e, t) {
1945
1938
  e = Math.abs(e) % 100;
1946
1939
  let n = e % 10;
1947
1940
  return e > 10 && e < 20 ? t[2] : n > 1 && n < 5 ? t[1] : n === 1 ? t[0] : t[2];
1948
1941
  }
1949
1942
  const G = {
1950
- Date: rr,
1951
- MoneyString: or,
1952
- DateSort: ir,
1953
- Size: lr,
1954
- TypeFiles: cr,
1955
- Cases: dr,
1956
- Initials: _r,
1957
- Month: ur,
1958
- Money: mr,
1959
- Number: fr,
1960
- Percent: hr,
1961
- CapitalizeFirstLetter: gr,
1962
- DeclensionWord: xr
1943
+ Date: ss,
1944
+ MoneyString: os,
1945
+ DateSort: is,
1946
+ Size: ls,
1947
+ TypeFiles: cs,
1948
+ Cases: ds,
1949
+ Initials: _s,
1950
+ Month: us,
1951
+ Money: ms,
1952
+ Number: fs,
1953
+ Percent: hs,
1954
+ CapitalizeFirstLetter: xs,
1955
+ DeclensionWord: gs
1963
1956
  };
1964
- function pr({ children: e }) {
1957
+ function vs({ children: e }) {
1965
1958
  return /* @__PURE__ */ a.jsx("div", { className: "l", children: /* @__PURE__ */ a.jsx("ul", { children: e }) });
1966
1959
  }
1967
- const vr = "_white_11p39_14", Cr = "_black_11p39_26", kr = "_shake_11p39_1", yr = "_modal_11p39_73", jr = "_o_11p39_83", br = "_w_11p39_14", wr = "_h_11p39_107", Sr = "_l_11p39_121", Er = "_t_11p39_159", Rr = "_m_11p39_73", Nr = "_x_11p39_167", Tr = "_s_11p39_177", Ir = "_c_11p39_182", Dr = "_f_11p39_187", Mr = "_btn_11p39_230", Fr = "_g_11p39_243", Lr = "_confirm_11p39_322", $r = "_cancel_11p39_327", Pr = "_disabled_11p39_332", Br = "_active_11p39_389", Or = "_coincidence_11p39_395", Ar = "_sa_11p39_431", Zr = "_ss_11p39_435", zr = "_sm_11p39_439", Gr = "_sl_11p39_443", Wr = "_sx_11p39_447", Kr = "_sf_11p39_451", se = {
1968
- white: vr,
1969
- black: Cr,
1970
- shake: kr,
1971
- modal: yr,
1972
- o: jr,
1973
- w: br,
1974
- h: wr,
1975
- l: Sr,
1976
- t: Er,
1977
- m: Rr,
1978
- x: Nr,
1979
- s: Tr,
1980
- c: Ir,
1981
- f: Dr,
1982
- btn: Mr,
1983
- g: Fr,
1960
+ const ps = "_white_11p39_14", Cs = "_black_11p39_26", ks = "_shake_11p39_1", ys = "_modal_11p39_73", js = "_o_11p39_83", bs = "_w_11p39_14", ws = "_h_11p39_107", Ss = "_l_11p39_121", Es = "_t_11p39_159", Rs = "_m_11p39_73", Ns = "_x_11p39_167", Ts = "_s_11p39_177", Is = "_c_11p39_182", Ds = "_f_11p39_187", Ms = "_btn_11p39_230", Fs = "_g_11p39_243", Ls = "_confirm_11p39_322", $s = "_cancel_11p39_327", Ps = "_disabled_11p39_332", Bs = "_active_11p39_389", Os = "_coincidence_11p39_395", As = "_sa_11p39_431", Zs = "_ss_11p39_435", zs = "_sm_11p39_439", Gs = "_sl_11p39_443", Ks = "_sx_11p39_447", Ws = "_sf_11p39_451", re = {
1961
+ white: ps,
1962
+ black: Cs,
1963
+ shake: ks,
1964
+ modal: ys,
1965
+ o: js,
1966
+ w: bs,
1967
+ h: ws,
1968
+ l: Ss,
1969
+ t: Es,
1970
+ m: Rs,
1971
+ x: Ns,
1972
+ s: Ts,
1973
+ c: Is,
1974
+ f: Ds,
1975
+ btn: Ms,
1976
+ g: Fs,
1984
1977
  "size-a": "_size-a_11p39_296",
1985
1978
  "size-s": "_size-s_11p39_300",
1986
1979
  "size-m": "_size-m_11p39_304",
1987
1980
  "size-l": "_size-l_11p39_308",
1988
1981
  "size-x": "_size-x_11p39_312",
1989
1982
  "size-f": "_size-f_11p39_316",
1990
- confirm: Lr,
1991
- cancel: $r,
1992
- disabled: Pr,
1983
+ confirm: Ls,
1984
+ cancel: $s,
1985
+ disabled: Ps,
1993
1986
  await: "_await_11p39_339",
1994
- active: Br,
1995
- coincidence: Or,
1996
- sa: Ar,
1997
- ss: Zr,
1998
- sm: zr,
1999
- sl: Gr,
2000
- sx: Wr,
2001
- sf: Kr
1987
+ active: Bs,
1988
+ coincidence: Os,
1989
+ sa: As,
1990
+ ss: Zs,
1991
+ sm: zs,
1992
+ sl: Gs,
1993
+ sx: Ks,
1994
+ sf: Ws
2002
1995
  };
2003
- function Vr({ children: e }) {
2004
- return /* @__PURE__ */ a.jsx("div", { className: se.s, children: e });
1996
+ function Vs({ children: e }) {
1997
+ return /* @__PURE__ */ a.jsx("div", { className: re.s, children: e });
2005
1998
  }
2006
- function Ur({ children: e, className: t }) {
1999
+ function Us({ children: e, className: t }) {
2007
2000
  let n = {};
2008
2001
  return t && (n.className = t), /* @__PURE__ */ a.jsx("div", { "data-form": "outline", ...n, children: /* @__PURE__ */ a.jsx("ul", { children: e }) });
2009
2002
  }
2010
- function Yr({ children: e }) {
2011
- return /* @__PURE__ */ a.jsx("div", { className: se.c, children: e });
2003
+ function Ys({ children: e }) {
2004
+ return /* @__PURE__ */ a.jsx("div", { className: re.c, children: e });
2012
2005
  }
2013
- const Hr = "_btn_1hz2s_6", qr = "_confirm_1hz2s_19", rn = {
2014
- btn: Hr,
2015
- confirm: qr
2006
+ const Hs = "_btn_1hz2s_6", qs = "_confirm_1hz2s_19", sn = {
2007
+ btn: Hs,
2008
+ confirm: qs
2016
2009
  };
2017
- function Jr({ onClick: e, onSend: t, label: n, onRef: s }) {
2018
- let [r, i] = g.useState(!1);
2010
+ function Js({ onClick: e, onSend: t, label: n, onRef: r }) {
2011
+ let [s, i] = x.useState(!1);
2019
2012
  const c = () => {
2020
2013
  if (e)
2021
2014
  return e();
2022
- r || (i(!0), t && t(i));
2015
+ s || (i(!0), t && t(i));
2023
2016
  };
2024
2017
  return /* @__PURE__ */ a.jsx(
2025
2018
  "button",
2026
2019
  {
2027
- ref: s,
2028
- className: [rn.btn, rn.confirm].join(" "),
2020
+ ref: r,
2021
+ className: [sn.btn, sn.confirm].join(" "),
2029
2022
  onClick: c,
2030
- children: r ? "Ожидайте" : n
2023
+ children: s ? "Ожидайте" : n
2031
2024
  }
2032
2025
  );
2033
2026
  }
2034
2027
  let ye = {};
2035
- function Xr({ config: e }) {
2036
- let [t, n] = g.useState([]);
2028
+ function Xs({ config: e }) {
2029
+ let [t, n] = x.useState([]);
2037
2030
  return ye.x = () => {
2038
2031
  n([]);
2039
- }, ye.config = e, ye.add = (s) => {
2040
- n([...t, s]);
2041
- }, /* @__PURE__ */ a.jsx(a.Fragment, { children: t.map((s) => s) });
2032
+ }, ye.config = e, ye.add = (r) => {
2033
+ n([...t, r]);
2034
+ }, /* @__PURE__ */ a.jsx(a.Fragment, { children: t.map((r) => r) });
2042
2035
  }
2043
- function Qr({
2036
+ function Qs({
2044
2037
  title: e,
2045
2038
  children: t,
2046
2039
  button: n,
2047
- tabs: s,
2048
- size: r = "m",
2040
+ tabs: r,
2041
+ size: s = "m",
2049
2042
  menu: i
2050
2043
  }) {
2051
- const [c, l] = g.useState(!0), _ = g.useRef(), d = (m) => {
2044
+ const [c, l] = x.useState(!0), _ = x.useRef(), d = (m) => {
2052
2045
  if (n) {
2053
2046
  if (n.onClick)
2054
2047
  return m(!1), n.onClick({ setOpen: l });
@@ -2063,19 +2056,19 @@ function Qr({
2063
2056
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: c ? /* @__PURE__ */ a.jsxs(
2064
2057
  "div",
2065
2058
  {
2066
- className: `${se.modal} ${se.white}`,
2059
+ className: `${re.modal} ${re.white}`,
2067
2060
  children: [
2068
- /* @__PURE__ */ a.jsx("div", { className: se.o, onClick: u }),
2061
+ /* @__PURE__ */ a.jsx("div", { className: re.o, onClick: u }),
2069
2062
  /* @__PURE__ */ a.jsxs(
2070
2063
  "div",
2071
2064
  {
2072
- className: [se.w, se[`s${r}`]].join(" "),
2065
+ className: [re.w, re[`s${s}`]].join(" "),
2073
2066
  ref: _,
2074
2067
  children: [
2075
- /* @__PURE__ */ a.jsxs("div", { className: se.h, children: [
2076
- /* @__PURE__ */ a.jsx("div", { className: se.t, children: e }),
2077
- /* @__PURE__ */ a.jsxs("div", { className: se.m, children: [
2078
- s && /* @__PURE__ */ a.jsx("nav", { children: s.map((m, h) => /* @__PURE__ */ a.jsx(
2068
+ /* @__PURE__ */ a.jsxs("div", { className: re.h, children: [
2069
+ /* @__PURE__ */ a.jsx("div", { className: re.t, children: e }),
2070
+ /* @__PURE__ */ a.jsxs("div", { className: re.m, children: [
2071
+ r && /* @__PURE__ */ a.jsx("nav", { children: r.map((m, h) => /* @__PURE__ */ a.jsx(
2079
2072
  "span",
2080
2073
  {
2081
2074
  onClick: m.onClick,
@@ -2089,7 +2082,7 @@ function Qr({
2089
2082
  /* @__PURE__ */ a.jsx(
2090
2083
  "div",
2091
2084
  {
2092
- className: se.x,
2085
+ className: re.x,
2093
2086
  onClick: () => {
2094
2087
  l(!1);
2095
2088
  },
@@ -2107,7 +2100,7 @@ function Qr({
2107
2100
  )
2108
2101
  ] }),
2109
2102
  t,
2110
- n !== void 0 ? /* @__PURE__ */ a.jsx(Jr, { label: n.label, onSend: d }) : ""
2103
+ n !== void 0 ? /* @__PURE__ */ a.jsx(Js, { label: n.label, onSend: d }) : ""
2111
2104
  ]
2112
2105
  }
2113
2106
  )
@@ -2130,23 +2123,23 @@ function ni(e) {
2130
2123
  }, 1e3);
2131
2124
  }
2132
2125
  function ai({ type: e, name: t, params: n }) {
2133
- let [s, r] = g.useState(null);
2134
- return g.useEffect(() => {
2135
- ye.config(e, t, n, r);
2136
- }, [n.id]), /* @__PURE__ */ a.jsx(a.Fragment, { children: s });
2126
+ let [r, s] = x.useState(null);
2127
+ return x.useEffect(() => {
2128
+ ye.config(e, t, n, s);
2129
+ }, [n.id]), /* @__PURE__ */ a.jsx(a.Fragment, { children: r });
2137
2130
  }
2138
- function si(e, t, n) {
2131
+ function ri(e, t, n) {
2139
2132
  ye.config(e, t, n);
2140
2133
  }
2141
- const wt = { List: pr, Scroll: Vr, Main: Qr, Add: ei, Icon: ai, Open: si, Shake: ni, Form: Ur, Center: Yr };
2134
+ const wt = { List: vs, Scroll: Vs, Main: Qs, Add: ei, Icon: ai, Open: ri, Shake: ni, Form: Us, Center: Ys };
2142
2135
  function wn({ text: e, type: t, button: n }) {
2143
- let [s, r] = g.useState(!1), i = { active: t };
2136
+ let [r, s] = x.useState(!1), i = { active: t };
2144
2137
  const c = () => {
2145
2138
  if (n) {
2146
2139
  if (n.onClick)
2147
2140
  return n.onClick({});
2148
2141
  if (n.onSend)
2149
- return s ? void 0 : (r(!0), n.onSend(r));
2142
+ return r ? void 0 : (s(!0), n.onSend(s));
2150
2143
  }
2151
2144
  };
2152
2145
  return /* @__PURE__ */ a.jsxs("div", { className: mt.al, ...i, children: [
@@ -2171,8 +2164,8 @@ function wn({ text: e, type: t, button: n }) {
2171
2164
  n && /* @__PURE__ */ a.jsx("button", { onClick: c, children: n.label })
2172
2165
  ] });
2173
2166
  }
2174
- const ri = "_h_1usnu_1", ii = "_g_1usnu_11", oi = "_hr_1usnu_16", li = "_hl_1usnu_28", ci = "_t_1usnu_40", di = "_s_1usnu_60", _i = "_u_1usnu_69", ui = "_o_1usnu_76", mi = "_l_1usnu_105", fi = "_hh_1usnu_115", hi = "_c_1usnu_128", gi = "_loadingB_1usnu_1", xi = "_m_1usnu_180", pi = "_ul_1usnu_196", vi = "_f_1usnu_226", X = {
2175
- h: ri,
2167
+ const si = "_h_1usnu_1", ii = "_g_1usnu_11", oi = "_hr_1usnu_16", li = "_hl_1usnu_28", ci = "_t_1usnu_40", di = "_s_1usnu_60", _i = "_u_1usnu_69", ui = "_o_1usnu_76", mi = "_l_1usnu_105", fi = "_hh_1usnu_115", hi = "_c_1usnu_128", xi = "_loadingB_1usnu_1", gi = "_m_1usnu_180", vi = "_ul_1usnu_196", pi = "_f_1usnu_226", X = {
2168
+ h: si,
2176
2169
  g: ii,
2177
2170
  hr: oi,
2178
2171
  hl: li,
@@ -2183,18 +2176,18 @@ const ri = "_h_1usnu_1", ii = "_g_1usnu_11", oi = "_hr_1usnu_16", li = "_hl_1usn
2183
2176
  l: mi,
2184
2177
  hh: fi,
2185
2178
  c: hi,
2186
- loadingB: gi,
2187
- m: xi,
2188
- ul: pi,
2189
- f: vi
2190
- }, on = ({ title: e, left: t, right: n, children: s }) => /* @__PURE__ */ a.jsxs("div", { className: X.h, children: [
2179
+ loadingB: xi,
2180
+ m: gi,
2181
+ ul: vi,
2182
+ f: pi
2183
+ }, on = ({ title: e, left: t, right: n, children: r }) => /* @__PURE__ */ a.jsxs("div", { className: X.h, children: [
2191
2184
  /* @__PURE__ */ a.jsx("div", { className: X.t, children: e }),
2192
2185
  t && /* @__PURE__ */ a.jsx("div", { className: X.hl, children: t }),
2193
2186
  n && /* @__PURE__ */ a.jsx("div", { className: X.hr, children: n }),
2194
- s
2187
+ r
2195
2188
  ] }), ln = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: X.l, children: e }), cn = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.s, children: e }), dn = ({ children: e, edit: t }) => {
2196
2189
  const n = {};
2197
- return t && (n.edit = ""), console.log(n), /* @__PURE__ */ a.jsx("div", { ...n, className: X.f, children: e });
2190
+ return t && (n.edit = ""), /* @__PURE__ */ a.jsx("div", { ...n, className: X.f, children: e });
2198
2191
  };
2199
2192
  function _n({ children: e }) {
2200
2193
  return /* @__PURE__ */ a.jsx("div", { className: X.g, children: e });
@@ -2287,7 +2280,7 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2287
2280
  search: !1,
2288
2281
  revers: !0
2289
2282
  }), Si = () => {
2290
- let [e, t] = g.useState([]);
2283
+ let [e, t] = x.useState([]);
2291
2284
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ a.jsxs("div", { className: "upload view", children: [
2292
2285
  /* @__PURE__ */ a.jsxs("div", { className: "--head", children: [
2293
2286
  /* @__PURE__ */ a.jsx("b", { children: "Загрузки" }),
@@ -2306,17 +2299,15 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2306
2299
  id: e,
2307
2300
  name: t,
2308
2301
  listen: n,
2309
- dir: s
2302
+ dir: r
2310
2303
  }) => {
2311
2304
  t = t || "Файлы";
2312
- const [r, i] = g.useReducer(bi, {}, wi);
2313
- console.log(n);
2314
- const c = () => {
2305
+ const [s, i] = x.useReducer(bi, {}, wi), c = () => {
2315
2306
  wt.Add(
2316
2307
  /* @__PURE__ */ a.jsx(
2317
2308
  Ri,
2318
2309
  {
2319
- dir: s,
2310
+ dir: r,
2320
2311
  dispatch: i,
2321
2312
  id: e
2322
2313
  },
@@ -2324,17 +2315,17 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2324
2315
  )
2325
2316
  );
2326
2317
  };
2327
- return g.useEffect(() => {
2318
+ return x.useEffect(() => {
2328
2319
  (async () => {
2329
2320
  let l = await ce.Send({
2330
2321
  type: "module",
2331
2322
  module: "M09",
2332
2323
  query: "x0900",
2333
- data: { dir: s, id: e }
2324
+ data: { dir: r, id: e }
2334
2325
  });
2335
2326
  i({ type: "load", list: l });
2336
2327
  })();
2337
- }, [e, s]), /* @__PURE__ */ a.jsxs(un.O, { children: [
2328
+ }, [e, r]), /* @__PURE__ */ a.jsxs(un.O, { children: [
2338
2329
  " ",
2339
2330
  /* @__PURE__ */ a.jsx(
2340
2331
  un.H,
@@ -2359,19 +2350,19 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2359
2350
  )
2360
2351
  }
2361
2352
  ),
2362
- /* @__PURE__ */ a.jsx("ul", { "data-empty": "Файлов нет", className: "files_list", children: r.load ? /* @__PURE__ */ a.jsxs("div", { "type-load": "load", children: [
2353
+ /* @__PURE__ */ a.jsx("ul", { "data-empty": "Файлов нет", className: "files_list", children: s.load ? /* @__PURE__ */ a.jsxs("div", { "type-load": "load", children: [
2363
2354
  /* @__PURE__ */ a.jsx("i", {}),
2364
2355
  /* @__PURE__ */ a.jsx("i", {}),
2365
2356
  /* @__PURE__ */ a.jsx("i", {})
2366
- ] }) : r.list.length === 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : r.list.map((l, _) => /* @__PURE__ */ a.jsx(Ni, { dispatch: i, data: l }, _)) })
2357
+ ] }) : s.list.length === 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : s.list.map((l, _) => /* @__PURE__ */ a.jsx(Ni, { dispatch: i, data: l }, _)) })
2367
2358
  ] });
2368
2359
  }, Ri = ({ id: e, dir: t, dispatch: n }) => {
2369
- let [s, r] = g.useState(!0), i = g.useRef(null), c = (d) => {
2360
+ let [r, s] = x.useState(!0), i = x.useRef(null), c = (d) => {
2370
2361
  d.preventDefault(), d.stopPropagation();
2371
2362
  }, l = (d) => {
2372
2363
  }, _ = (d) => {
2373
2364
  };
2374
- return g.useEffect(() => {
2365
+ return x.useEffect(() => {
2375
2366
  let d = i.current;
2376
2367
  ["dragenter", "dragover", "dragleave", "drop"].forEach((u) => {
2377
2368
  d.addEventListener(u, c, !1), document.body.addEventListener(u, c, !1);
@@ -2380,7 +2371,7 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2380
2371
  }), ["dragleave", "drop"].forEach((u) => {
2381
2372
  d.addEventListener(u, _, !1);
2382
2373
  });
2383
- }, []), /* @__PURE__ */ a.jsx(a.Fragment, { children: s ? /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsx(
2374
+ }, []), /* @__PURE__ */ a.jsx(a.Fragment, { children: r ? /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsx(
2384
2375
  "div",
2385
2376
  {
2386
2377
  className: "modal o ",
@@ -2393,7 +2384,7 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2393
2384
  className: "x",
2394
2385
  "data-icon": "F038",
2395
2386
  onClick: () => {
2396
- r(!1);
2387
+ s(!1);
2397
2388
  }
2398
2389
  }
2399
2390
  ),
@@ -2419,7 +2410,7 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2419
2410
  let i = await (await fetch(nn.url().files + "/yandex/data/" + e.id, {
2420
2411
  headers: {
2421
2412
  "Content-type": "application/json;charset=utf-8",
2422
- SSID: re.getSSID() || ""
2413
+ SSID: se.getSSID() || ""
2423
2414
  }
2424
2415
  })).blob();
2425
2416
  if (i.size !== 2) {
@@ -2428,11 +2419,11 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2428
2419
  let l = document.createElement("a");
2429
2420
  l.setAttribute("href", c), l.setAttribute("download", e.name), l.click();
2430
2421
  }
2431
- }, s = async () => {
2422
+ }, r = async () => {
2432
2423
  (await (await fetch(nn.url().files + "/yandex/delete/" + e.id, {
2433
2424
  headers: {
2434
2425
  "Content-type": "application/json;charset=utf-8",
2435
- SSID: re.getSSID() || ""
2426
+ SSID: se.getSSID() || ""
2436
2427
  }
2437
2428
  })).json()).status === "success" && (t({ type: "delete", id: e.id }), Le.Send({ type: "success", text: "Файл успешно удалён" }));
2438
2429
  };
@@ -2456,7 +2447,7 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2456
2447
  className: "f025",
2457
2448
  "data-icon": "F048 35 pointer",
2458
2449
  "data-color": "_b5b9cc :FF9800",
2459
- onClick: s
2450
+ onClick: r
2460
2451
  }
2461
2452
  )
2462
2453
  ] }),
@@ -2464,12 +2455,12 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2464
2455
  ] });
2465
2456
  }, St = { setSetting: Ya, getSetting: Ha };
2466
2457
  let A = {};
2467
- A.list = as();
2458
+ A.list = ar();
2468
2459
  A.active = null;
2469
2460
  const Ti = () => {
2470
- var r;
2471
- let [e, t] = g.useState([]), [n, s] = g.useState(St.getSetting("s03"));
2472
- return g.useEffect(() => {
2461
+ var s;
2462
+ let [e, t] = x.useState([]), [n, r] = x.useState(St.getSetting("s03"));
2463
+ return x.useEffect(() => {
2473
2464
  (async () => {
2474
2465
  let i = Object.keys(A.list);
2475
2466
  if (i.length !== 0) {
@@ -2490,7 +2481,7 @@ const Ti = () => {
2490
2481
  })();
2491
2482
  }, []), A.active = (i) => {
2492
2483
  var c;
2493
- s(i), (c = document.querySelector("app-body")) == null || c.setAttribute("bookmarks", i === 1 ? "bottom" : "");
2484
+ r(i), (c = document.querySelector("app-body")) == null || c.setAttribute("bookmarks", i === 1 ? "bottom" : "");
2494
2485
  }, A.set = (i) => {
2495
2486
  t([
2496
2487
  ...e,
@@ -2500,19 +2491,19 @@ const Ti = () => {
2500
2491
  e.forEach((c, l) => {
2501
2492
  c.link === i && e.splice(l, 1);
2502
2493
  }), t([...e]);
2503
- }, (r = document.querySelector("app-body")) == null || r.setAttribute(
2494
+ }, (s = document.querySelector("app-body")) == null || s.setAttribute(
2504
2495
  "bookmarks",
2505
2496
  n === 1 && e.length !== 0 ? "bottom" : ""
2506
2497
  ), n !== 0 ? /* @__PURE__ */ a.jsx(a.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ a.jsx("div", { className: "bookmarks", children: e.map((i) => i.item) }) : "" }) : "";
2507
2498
  }, Ii = ({ id: e, type: t, name: n }) => {
2508
- let s = t + "-" + e, [r, i] = g.useState(
2509
- A.list[s] !== void 0
2499
+ let r = t + "-" + e, [s, i] = x.useState(
2500
+ A.list[r] !== void 0
2510
2501
  );
2511
- g.useEffect(() => {
2512
- i(A.list[s] !== void 0);
2513
- }, [s]);
2502
+ x.useEffect(() => {
2503
+ i(A.list[r] !== void 0);
2504
+ }, [r]);
2514
2505
  let c = () => {
2515
- A.list[s] !== void 0 ? (A.del(s), delete A.list[s], en(A.list), i(!1), Le.Send({ type: "success", text: "Запись удален из закладок" })) : (A.list[s] = { id: e, name: n, type: t, link: s }, A.set(A.list[s]), en(A.list), i(!0), Le.Send({
2506
+ A.list[r] !== void 0 ? (A.del(r), delete A.list[r], en(A.list), i(!1), Le.Send({ type: "success", text: "Запись удален из закладок" })) : (A.list[r] = { id: e, name: n, type: t, link: r }, A.set(A.list[r]), en(A.list), i(!0), Le.Send({
2516
2507
  type: "success",
2517
2508
  text: "Запись добавлен в закладки"
2518
2509
  }));
@@ -2521,46 +2512,45 @@ const Ti = () => {
2521
2512
  "i",
2522
2513
  {
2523
2514
  "data-icon": "C018",
2524
- "data-color": r ? "_F44333 :F44333" : "_b5b9cc :F44333",
2515
+ "data-color": s ? "_F44333 :F44333" : "_b5b9cc :F44333",
2525
2516
  onClick: c
2526
2517
  }
2527
2518
  ) : "" });
2528
2519
  }, ft = ({ data: e }) => {
2529
- let t = (s) => {
2530
- s.preventDefault(), delete A.list[e.link], A.del(e.link);
2520
+ let t = (r) => {
2521
+ r.preventDefault(), delete A.list[e.link], A.del(e.link);
2531
2522
  }, n = () => {
2532
2523
  Ue.setId(e.id);
2533
2524
  };
2534
2525
  return /* @__PURE__ */ a.jsx("span", { onContextMenu: t, onClick: n, children: e.name });
2535
2526
  }, Di = (e) => {
2536
2527
  A.active(e);
2537
- }, O = {}, ht = {}, k = {};
2538
- k.config = { iceServers: [{ url: "stun:stun.l.google.com:19302" }] };
2539
- k.constraints = { optional: [{ DtlsSrtpKeyAgreement: !0 }] };
2540
- k.other = [];
2541
- k.users = {};
2542
- k.asset = 0;
2543
- k.remoute = !1;
2544
- k.stream = null;
2545
- k.user = 0;
2546
- k.connect = !1;
2547
- k.offer = null;
2548
- k.btnRefuse = null;
2549
- k.time = !1;
2550
- let xe;
2551
- xe = document.createElement("audio");
2552
- xe.setAttribute("autoplay", "true");
2553
- xe.setAttribute("muted", "true");
2528
+ }, O = {}, ht = {}, y = {};
2529
+ y.config = { iceServers: [{ url: "stun:stun.l.google.com:19302" }] };
2530
+ y.constraints = { optional: [{ DtlsSrtpKeyAgreement: !0 }] };
2531
+ y.other = [];
2532
+ y.users = {};
2533
+ y.asset = 0;
2534
+ y.remoute = !1;
2535
+ y.stream = null;
2536
+ y.user = 0;
2537
+ y.connect = !1;
2538
+ y.offer = null;
2539
+ y.btnRefuse = null;
2540
+ y.time = !1;
2541
+ let ge;
2542
+ ge = document.createElement("audio");
2543
+ ge.setAttribute("autoplay", "true");
2544
+ ge.setAttribute("muted", "true");
2554
2545
  O.start = async (e) => {
2555
- k.rtc = new RTCPeerConnection(k.config), k.other = [], k.remoute = !1, k.rtc.onicecandidate = (n) => {
2556
- n.candidate && k.other.push(n.candidate);
2557
- }, k.rtc.ontrack = (n) => {
2546
+ y.rtc = new RTCPeerConnection(y.config), y.other = [], y.remoute = !1, y.rtc.onicecandidate = (n) => {
2547
+ n.candidate && y.other.push(n.candidate);
2548
+ }, y.rtc.ontrack = (n) => {
2558
2549
  if (n.streams && n.streams[0])
2559
- xe.srcObject = n.streams[0];
2550
+ ge.srcObject = n.streams[0];
2560
2551
  else {
2561
- console.log(!1);
2562
- let s = new MediaStream(n.track);
2563
- xe.srcObject = s;
2552
+ let r = new MediaStream(n.track);
2553
+ ge.srcObject = r;
2564
2554
  }
2565
2555
  };
2566
2556
  const t = await navigator.mediaDevices.getUserMedia({
@@ -2568,33 +2558,24 @@ O.start = async (e) => {
2568
2558
  audio: { echoCancellation: !1, autoGainControl: !0 }
2569
2559
  });
2570
2560
  t.getTracks().forEach((n) => {
2571
- k.rtc.addTrack(n, t);
2572
- }), k.rtc.onconnectionstatechange = () => {
2573
- console.log(k.rtc.connectionState), k.rtc.connectionState;
2574
- }, k.rtc.ontrack = async (n) => {
2561
+ y.rtc.addTrack(n, t);
2562
+ }), y.rtc.onconnectionstatechange = () => {
2563
+ y.rtc.connectionState;
2564
+ }, y.rtc.ontrack = async (n) => {
2575
2565
  if (n.streams && n.streams[0])
2576
- xe.srcObject = n.streams[0];
2566
+ ge.srcObject = n.streams[0];
2577
2567
  else {
2578
- console.log(!1);
2579
- let s = new MediaStream(n.track);
2580
- xe.srcObject = s;
2568
+ let r = new MediaStream(n.track);
2569
+ ge.srcObject = r;
2581
2570
  }
2582
- }, k.rtc.onaddstream = (n) => {
2583
- console.log(n);
2584
- }, k.rtc.onnegotiationneeded = (n) => {
2585
- console.log(n);
2586
- }, k.rtc.oniceconnectionstatechange = (n) => {
2587
- console.log(n.target);
2588
- }, k.rtc.onsignalingstatechange = (n) => {
2589
- console.log(n.target.connectionState);
2590
- }, k.rtc.onicegatheringstatechange = (n) => {
2591
- console.log(n);
2592
- }, k.rtc.onicecandidateerror = (n) => {
2593
- console.log(n);
2594
- }, k.rtc.ondatachannel = (n) => {
2595
- console.log(n);
2596
- }, console.log(k.rtc), k.rtc.onerror = (n) => {
2597
- console.log("error", n);
2571
+ }, y.rtc.onaddstream = (n) => {
2572
+ }, y.rtc.onnegotiationneeded = (n) => {
2573
+ }, y.rtc.oniceconnectionstatechange = (n) => {
2574
+ }, y.rtc.onsignalingstatechange = (n) => {
2575
+ }, y.rtc.onicegatheringstatechange = (n) => {
2576
+ }, y.rtc.onicecandidateerror = (n) => {
2577
+ }, y.rtc.ondatachannel = (n) => {
2578
+ }, y.rtc.onerror = (n) => {
2598
2579
  }, e();
2599
2580
  };
2600
2581
  O.useListener = (e) => {
@@ -2605,66 +2586,66 @@ O.setListener = (e) => {
2605
2586
  };
2606
2587
  O.callTo = async (e) => {
2607
2588
  O.start(async () => {
2608
- const t = await k.rtc.createOffer();
2609
- await k.rtc.setLocalDescription(t), k.uid = e, ce.Send({
2589
+ const t = await y.rtc.createOffer();
2590
+ await y.rtc.setLocalDescription(t), y.uid = e, ce.Send({
2610
2591
  type: "module",
2611
2592
  module: "M00",
2612
2593
  query: "x0050",
2613
2594
  data: {
2614
2595
  type: "offer",
2615
2596
  offer: btoa(JSON.stringify(t)),
2616
- user: k.uid
2597
+ user: y.uid
2617
2598
  }
2618
2599
  });
2619
2600
  });
2620
2601
  };
2621
2602
  O.callIn = async (e) => {
2622
- console.log("callIn"), k.asset = e.id, k.offer = e.offer, k.uid = e.id;
2603
+ y.asset = e.id, y.offer = e.offer, y.uid = e.id;
2623
2604
  };
2624
2605
  O.callRise = async () => {
2625
2606
  O.start(async () => {
2626
- k.rtc.setRemoteDescription(
2627
- new RTCSessionDescription(JSON.parse(atob(k.offer)))
2607
+ y.rtc.setRemoteDescription(
2608
+ new RTCSessionDescription(JSON.parse(atob(y.offer)))
2628
2609
  );
2629
- const e = await k.rtc.createAnswer();
2630
- await k.rtc.setLocalDescription(e), ce.Send({
2610
+ const e = await y.rtc.createAnswer();
2611
+ await y.rtc.setLocalDescription(e), ce.Send({
2631
2612
  type: "module",
2632
2613
  module: "M00",
2633
2614
  query: "x0050",
2634
2615
  data: {
2635
2616
  type: "answer",
2636
2617
  answer: btoa(JSON.stringify(e)),
2637
- user: k.uid
2618
+ user: y.uid
2638
2619
  }
2639
- }), console.log("согласилась");
2620
+ });
2640
2621
  });
2641
2622
  };
2642
2623
  O.callOk = async (e) => {
2643
- k.asset = e.id;
2624
+ y.asset = e.id;
2644
2625
  const t = new RTCSessionDescription(JSON.parse(atob(e.answer)));
2645
- await k.rtc.setRemoteDescription(t), console.log("ok"), ce.Send({
2626
+ await y.rtc.setRemoteDescription(t), ce.Send({
2646
2627
  type: "module",
2647
2628
  module: "M00",
2648
2629
  query: "x0050",
2649
2630
  data: {
2650
2631
  type: "IceCandidate",
2651
- candidate: JSON.parse(JSON.stringify(k.other)),
2652
- user: k.uid,
2632
+ candidate: JSON.parse(JSON.stringify(y.other)),
2633
+ user: y.uid,
2653
2634
  send: !0
2654
2635
  }
2655
2636
  });
2656
2637
  };
2657
2638
  O.IceCandidate = async (e) => {
2658
- console.log(e), console.log("candidate"), e.candidate.forEach((t) => {
2659
- k.rtc.addIceCandidate(new RTCIceCandidate(t));
2639
+ e.candidate.forEach((t) => {
2640
+ y.rtc.addIceCandidate(new RTCIceCandidate(t));
2660
2641
  }), e.send && ce.Send({
2661
2642
  type: "module",
2662
2643
  module: "M00",
2663
2644
  query: "x0050",
2664
2645
  data: {
2665
2646
  type: "IceCandidate",
2666
- candidate: JSON.parse(JSON.stringify(k.other)),
2667
- user: k.uid,
2647
+ candidate: JSON.parse(JSON.stringify(y.other)),
2648
+ user: y.uid,
2668
2649
  send: !1
2669
2650
  }
2670
2651
  });
@@ -2672,34 +2653,34 @@ O.IceCandidate = async (e) => {
2672
2653
  O.callFrom = async () => {
2673
2654
  };
2674
2655
  O.callNo = () => {
2675
- console.log("Пользователь не в сети или отклонил"), k.asset = 0, k.time = !1, k.rtc && k.rtc.close(), O.setListener({ type: "state", data: "closed" });
2656
+ y.asset = 0, y.time = !1, y.rtc && y.rtc.close(), O.setListener({ type: "state", data: "closed" });
2676
2657
  };
2677
2658
  O.callOf = () => {
2678
- k.asset = 0, k.time = !1, k.rtc.close();
2659
+ y.asset = 0, y.time = !1, y.rtc.close();
2679
2660
  };
2680
2661
  O.callRefuser = async () => {
2681
2662
  ce.Send({
2682
2663
  type: "module",
2683
2664
  module: "M00",
2684
2665
  query: "x0050",
2685
- data: { type: "callRefuser", user: k.uid }
2686
- }), k.asset = 0, k.time = !1, k.rtc && k.rtc.close();
2666
+ data: { type: "callRefuser", user: y.uid }
2667
+ }), y.asset = 0, y.time = !1, y.rtc && y.rtc.close();
2687
2668
  };
2688
2669
  O.Run = async (e) => {
2689
2670
  O[e.data.type] && O[e.data.type](e.data);
2690
2671
  };
2691
2672
  let Me = {};
2692
2673
  function Mi() {
2693
- let [e, t] = g.useState([]), n = g.useRef(null);
2694
- return g.useEffect(() => {
2695
- }, []), Me.set = (s) => {
2696
- t([...e, s]);
2674
+ let [e, t] = x.useState([]), n = x.useRef(null);
2675
+ return x.useEffect(() => {
2676
+ }, []), Me.set = (r) => {
2677
+ t([...e, r]);
2697
2678
  }, Me.del = () => {
2698
2679
  t([]);
2699
- }, Me.audio = (s, r) => {
2700
- n.current.volume = 0.5, n.current.loop = r, n.current.src = "/audio/" + s, n.current.muted = !1;
2680
+ }, Me.audio = (r, s) => {
2681
+ n.current.volume = 0.5, n.current.loop = s, n.current.src = "/audio/" + r, n.current.muted = !1;
2701
2682
  }, /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2702
- e.map((s) => s.item),
2683
+ e.map((r) => r.item),
2703
2684
  /* @__PURE__ */ a.jsx("audio", { id: "audio", ref: n, autoPlay: !0, muted: !0 })
2704
2685
  ] });
2705
2686
  }
@@ -2711,17 +2692,17 @@ function Fi(e, t) {
2711
2692
  });
2712
2693
  }
2713
2694
  function Li({ id: e, type: t }) {
2714
- const [n, s] = g.useState({}), [r, i] = g.useState(t);
2715
- console.log(r), g.useEffect(() => {
2716
- s(re.getSelect("user")[e]);
2717
- }, []), console.log(r), O.useListener((_) => {
2695
+ const [n, r] = x.useState({}), [s, i] = x.useState(t);
2696
+ x.useEffect(() => {
2697
+ r(se.getSelect("user")[e]);
2698
+ }, []), O.useListener((_) => {
2718
2699
  switch (_.type) {
2719
2700
  case "state":
2720
2701
  i(_.data);
2721
2702
  }
2722
2703
  });
2723
2704
  const c = () => {
2724
- switch (r) {
2705
+ switch (s) {
2725
2706
  case "out":
2726
2707
  return /* @__PURE__ */ a.jsx(
2727
2708
  "span",
@@ -2810,48 +2791,48 @@ function Li({ id: e, type: t }) {
2810
2791
  /* @__PURE__ */ a.jsx("div", { className: "b", children: c() })
2811
2792
  ] }) });
2812
2793
  }
2813
- const gt = {};
2794
+ const xt = {};
2814
2795
  function $i(e) {
2815
- gt.add(e);
2796
+ xt.add(e);
2816
2797
  }
2817
2798
  function Pi({ color: e, size: t, name: n }) {
2818
2799
  return /* @__PURE__ */ a.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ a.jsx("use", { href: `#${n}` }) });
2819
2800
  }
2820
2801
  function Bi() {
2821
- let [e, t] = g.useState([]);
2822
- if (gt.x = () => {
2802
+ let [e, t] = x.useState([]);
2803
+ if (xt.x = () => {
2823
2804
  t([]);
2824
- }, gt.add = (s) => {
2825
- t(s);
2805
+ }, xt.add = (r) => {
2806
+ t(r);
2826
2807
  }, e.length === 0)
2827
2808
  return "";
2828
2809
  const n = { sprite: "" };
2829
- return /* @__PURE__ */ a.jsx("svg", { ...n, xmlns: "http://www.w3.org/2000/svg", children: e.map((s, r) => /* @__PURE__ */ a.jsx(
2810
+ return /* @__PURE__ */ a.jsx("svg", { ...n, xmlns: "http://www.w3.org/2000/svg", children: e.map((r, s) => /* @__PURE__ */ a.jsx(
2830
2811
  "symbol",
2831
2812
  {
2832
- id: s.name,
2813
+ id: r.name,
2833
2814
  viewBox: "0 0 24 24",
2834
2815
  fillRule: "evenodd",
2835
2816
  clipRule: "evenodd",
2836
- children: /* @__PURE__ */ a.jsx(s.path, {})
2817
+ children: /* @__PURE__ */ a.jsx(r.path, {})
2837
2818
  },
2838
- r
2819
+ s
2839
2820
  )) });
2840
2821
  }
2841
- const xt = {};
2822
+ const gt = {};
2842
2823
  function Oi(e, t) {
2843
- xt[e] = t;
2824
+ gt[e] = t;
2844
2825
  }
2845
2826
  function Ai(e, t) {
2846
- xt[e] !== void 0 && xt[e](t);
2827
+ gt[e] !== void 0 && gt[e](t);
2847
2828
  }
2848
2829
  const de = {};
2849
2830
  function Zi(e, t) {
2850
- const [n, s] = g.useState(t);
2851
- return g.useEffect(() => {
2831
+ const [n, r] = x.useState(t);
2832
+ return x.useEffect(() => {
2852
2833
  if (de[e])
2853
- return de[e].push(s);
2854
- de[e] = [s];
2834
+ return de[e].push(r);
2835
+ de[e] = [r];
2855
2836
  }, []), [n];
2856
2837
  }
2857
2838
  function zi(e, t) {
@@ -2863,20 +2844,20 @@ function Gi(e, t) {
2863
2844
  de[e] && de[e].forEach((n) => n(t));
2864
2845
  }
2865
2846
  const we = { setListener: Ai, useListener: Oi, setEmitter: Gi, useEmitter: Zi, subEmitter: zi };
2866
- function Wi() {
2867
- let [e, t] = g.useState([]);
2847
+ function Ki() {
2848
+ let [e, t] = x.useState([]);
2868
2849
  return we.useListener("form", (n) => {
2869
2850
  t([n]);
2870
2851
  }), /* @__PURE__ */ a.jsx(a.Fragment, { children: e.map((n) => n) });
2871
2852
  }
2872
- const Ki = ({ children: e, config: t }) => (D.New(t.crypto), t.defaultModule && Ea(t.defaultModule), Na(
2853
+ const Wi = ({ children: e, config: t }) => (D.New(t.crypto), t.defaultModule && Ea(t.defaultModule), Na(
2873
2854
  /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2874
- /* @__PURE__ */ a.jsx(Xr, { config: t.modal }),
2875
- /* @__PURE__ */ a.jsx(ws, {}),
2876
- /* @__PURE__ */ a.jsx($s, {}),
2855
+ /* @__PURE__ */ a.jsx(Xs, { config: t.modal }),
2856
+ /* @__PURE__ */ a.jsx(wr, {}),
2857
+ /* @__PURE__ */ a.jsx($r, {}),
2877
2858
  /* @__PURE__ */ a.jsx(Si, {}),
2878
2859
  /* @__PURE__ */ a.jsx(Bi, {}),
2879
- /* @__PURE__ */ a.jsx(Wi, {}),
2860
+ /* @__PURE__ */ a.jsx(Ki, {}),
2880
2861
  /* @__PURE__ */ a.jsx(Mi, {}),
2881
2862
  /* @__PURE__ */ a.jsx(Ti, {}),
2882
2863
  e
@@ -2888,19 +2869,19 @@ const Ki = ({ children: e, config: t }) => (D.New(t.crypto), t.defaultModule &&
2888
2869
  payment: Yi
2889
2870
  };
2890
2871
  function qi() {
2891
- let [e, t] = g.useState({});
2872
+ let [e, t] = x.useState({});
2892
2873
  return !e.active && !e.payment ? "" : /* @__PURE__ */ a.jsx("div", { className: Hi.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
2893
2874
  }
2894
2875
  const Il = ({ children: e, ...t }) => {
2895
2876
  let n = {};
2896
- return n.enCode = (s) => JSON.stringify(s).toString(), n.deCode = (s) => JSON.parse(s), /* @__PURE__ */ a.jsxs("div", { className: "app", children: [
2877
+ return n.enCode = (r) => JSON.stringify(r).toString(), n.deCode = (r) => JSON.parse(r), /* @__PURE__ */ a.jsxs("div", { className: "app", children: [
2897
2878
  /* @__PURE__ */ a.jsx(qi, {}),
2898
2879
  /* @__PURE__ */ a.jsx(Vi, {}),
2899
2880
  /* @__PURE__ */ a.jsx(Ui, {}),
2900
- /* @__PURE__ */ a.jsx(Ki, { config: { modal: {}, crypto: n } }),
2881
+ /* @__PURE__ */ a.jsx(Wi, { config: { modal: {}, crypto: n } }),
2901
2882
  e
2902
2883
  ] });
2903
- }, Ji = ({ list: e, onClick: t, active: n, size: s, view: r }) => /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [s, r].join(" "), children: e.map((i) => /* @__PURE__ */ a.jsx(
2884
+ }, Ji = ({ list: e, onClick: t, active: n, size: r, view: s }) => /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ a.jsx(
2904
2885
  Xi,
2905
2886
  {
2906
2887
  onClick: t,
@@ -2909,13 +2890,13 @@ const Il = ({ children: e, ...t }) => {
2909
2890
  link: i.link
2910
2891
  },
2911
2892
  i.link
2912
- )) }) }), Xi = ({ onClick: e, label: t, link: n, active: s }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: t });
2893
+ )) }) }), Xi = ({ onClick: e, label: t, link: n, active: r }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(r === n), onClick: () => e(n), children: t });
2913
2894
  Ji.defaultProps = { size: "M", view: "H" };
2914
2895
  const Qi = ({
2915
2896
  title: e = "",
2916
2897
  button: t,
2917
2898
  description: n = "",
2918
- children: s
2899
+ children: r
2919
2900
  }) => /* @__PURE__ */ a.jsxs("fieldset", { children: [
2920
2901
  e && /* @__PURE__ */ a.jsxs("legend", { children: [
2921
2902
  e,
@@ -2929,32 +2910,32 @@ const Qi = ({
2929
2910
  ),
2930
2911
  " "
2931
2912
  ] }),
2932
- /* @__PURE__ */ a.jsx("ul", { children: s }),
2913
+ /* @__PURE__ */ a.jsx("ul", { children: r }),
2933
2914
  n && /* @__PURE__ */ a.jsx("article", { children: n })
2934
2915
  ] }), eo = "_setting_dva4m_2", to = {
2935
2916
  setting: eo
2936
2917
  }, no = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: to.setting, children: e }), ao = ({ label: e, children: t }) => {
2937
- let [n, s] = g.useState(!1);
2918
+ let [n, r] = x.useState(!1);
2938
2919
  return /* @__PURE__ */ a.jsxs("li", { "data-item": "accordion", children: [
2939
- /* @__PURE__ */ a.jsxs("dl", { onClick: () => s(!n), children: [
2920
+ /* @__PURE__ */ a.jsxs("dl", { onClick: () => r(!n), children: [
2940
2921
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2941
2922
  /* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx("div", { "data-close": String(n) }) })
2942
2923
  ] }),
2943
2924
  n && /* @__PURE__ */ a.jsx("div", { children: t })
2944
2925
  ] });
2945
- }, so = ({ label: e, onClick: t, button: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2926
+ }, ro = ({ label: e, onClick: t, button: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2946
2927
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2947
2928
  /* @__PURE__ */ a.jsx("dd", { role: "button", onClick: () => t(), children: n })
2948
- ] }) }), ro = ({ active: e, onClick: t }) => (console.log(e), e = typeof e == "number" ? !!e : e, /* @__PURE__ */ a.jsx(
2929
+ ] }) }), so = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ a.jsx(
2949
2930
  "div",
2950
2931
  {
2951
2932
  role: "switch",
2952
2933
  onClick: () => {
2953
- console.log("Wewew"), t();
2934
+ t();
2954
2935
  },
2955
2936
  "aria-checked": e ? "true" : "false"
2956
2937
  }
2957
- )), io = { Switch: ro }, oo = ({ label: e, onClick: t, active: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2938
+ )), io = { Switch: so }, oo = ({ label: e, onClick: t, active: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2958
2939
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2959
2940
  /* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx(io.Switch, { onClick: t, active: n }) })
2960
2941
  ] }) }), lo = ({ label: e, active: t, options: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
@@ -2969,9 +2950,9 @@ const Qi = ({
2969
2950
  ] }) }), uo = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2970
2951
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2971
2952
  /* @__PURE__ */ a.jsx("dd", { children: t })
2972
- ] }) }), mo = { Accordion: ao, Button: so, Switch: oo, Info: co, Select: lo, Component: _o, Node: uo };
2973
- function Sn({ list: e, onClick: t, active: n, size: s, view: r }) {
2974
- return /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [s, r].join(" "), children: e.map((i) => /* @__PURE__ */ a.jsx(
2953
+ ] }) }), mo = { Accordion: ao, Button: ro, Switch: oo, Info: co, Select: lo, Component: _o, Node: uo };
2954
+ function Sn({ list: e, onClick: t, active: n, size: r, view: s }) {
2955
+ return /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ a.jsx(
2975
2956
  fo,
2976
2957
  {
2977
2958
  onClick: t,
@@ -2982,9 +2963,9 @@ function Sn({ list: e, onClick: t, active: n, size: s, view: r }) {
2982
2963
  i.link
2983
2964
  )) }) });
2984
2965
  }
2985
- const fo = ({ onClick: e, label: t, link: n, active: s }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: t });
2966
+ const fo = ({ onClick: e, label: t, link: n, active: r }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(r === n), onClick: () => e(n), children: t });
2986
2967
  Sn.defaultProps = { size: "M", view: "H" };
2987
- const Dl = { Section: Qi, Main: no, Item: mo, Tabs: Sn }, Ml = { Icon: Ii, Item: ft, Active: Di }, Fl = { Send: Bs, Line: wn };
2968
+ const Dl = { Section: Qi, Main: no, Item: mo, Tabs: Sn }, Ml = { Icon: Ii, Item: ft, Active: Di }, Fl = { Send: Br, Line: wn };
2988
2969
  function ho() {
2989
2970
  return /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ a.jsx(
2990
2971
  "path",
@@ -2994,15 +2975,15 @@ function ho() {
2994
2975
  }
2995
2976
  ) });
2996
2977
  }
2997
- const Ll = { Logo: ho, Sprite: $i, Symbol: Pi }, go = "_sort_1yrvt_1", xo = {
2998
- sort: go
2978
+ const Ll = { Logo: ho, Sprite: $i, Symbol: Pi }, xo = "_sort_1yrvt_1", go = {
2979
+ sort: xo
2999
2980
  };
3000
2981
  let qe = {};
3001
- function po(e, t) {
2982
+ function vo(e, t) {
3002
2983
  switch (t.type) {
3003
2984
  case "active":
3004
2985
  let n = "<";
3005
- return e.active === t.data && (n = e.sort === "<" ? ">" : "<"), qe.get({ active: t.data, sort: n }, !1), xn({ active: t.data, sort: n }), {
2986
+ return e.active === t.data && (n = e.sort === "<" ? ">" : "<"), qe.get({ active: t.data, sort: n }, !1), gn({ active: t.data, sort: n }), {
3006
2987
  ...e,
3007
2988
  active: t.data,
3008
2989
  sort: n
@@ -3011,12 +2992,12 @@ function po(e, t) {
3011
2992
  throw new Error();
3012
2993
  }
3013
2994
  }
3014
- function vo() {
3015
- const [e, t] = g.useReducer(
3016
- po,
2995
+ function po() {
2996
+ const [e, t] = x.useReducer(
2997
+ vo,
3017
2998
  _t() === void 0 ? { active: 1, sort: "<" } : _t()
3018
2999
  );
3019
- return /* @__PURE__ */ a.jsxs("div", { className: xo.sort, children: [
3000
+ return /* @__PURE__ */ a.jsxs("div", { className: go.sort, children: [
3020
3001
  /* @__PURE__ */ a.jsx(
3021
3002
  "i",
3022
3003
  {
@@ -3050,8 +3031,8 @@ function ko(e) {
3050
3031
  qe.set(e);
3051
3032
  }
3052
3033
  function yo(e, t, n) {
3053
- let s = 1, r = 0, i = {}, c = 50;
3054
- i[s] = [];
3034
+ let r = 1, s = 0, i = {}, c = 50;
3035
+ i[r] = [];
3055
3036
  let l = {}, _ = "s1a";
3056
3037
  switch (l.s1a = (d, u) => u.s1 - d.s1, l.s1d = (d, u) => d.s1 - u.s1, l.s2a = (d, u) => d.s2 - u.s2, l.s2d = (d, u) => u.s2 - d.s2, l.s3a = (d, u) => d.s3.localeCompare(u.s3), l.s3d = (d, u) => u.s3.localeCompare(d.s3), n.active) {
3057
3038
  case 1:
@@ -3065,21 +3046,21 @@ function yo(e, t, n) {
3065
3046
  break;
3066
3047
  }
3067
3048
  return t.sort(l[_]).forEach((d) => {
3068
- r++, r <= c || (s++, r = 1, i[s] = []), i[s].push(e[d.id]);
3049
+ s++, s <= c || (r++, s = 1, i[r] = []), i[r].push(e[d.id]);
3069
3050
  }), { data: i };
3070
3051
  }
3071
3052
  function jo(e) {
3072
3053
  qe.count(e);
3073
3054
  }
3074
- const $l = { Init: vo, useValue: Co, Set: ko, Run: yo, Count: jo }, Ye = {}, En = {};
3055
+ const $l = { Init: po, useValue: Co, Set: ko, Run: yo, Count: jo }, Ye = {}, En = {};
3075
3056
  function bo(e) {
3076
- const [t, n] = g.useState({}), s = async (r) => {
3057
+ const [t, n] = x.useState({}), r = async (s) => {
3077
3058
  n(
3078
3059
  Object.keys(Ye).reduce((i, c) => (i ? i[c] = Ye[c].all : i = {}, i), {})
3079
3060
  );
3080
3061
  };
3081
- return g.useEffect(() => {
3082
- e.forEach((r) => Ye[r] = { all: 0 }), En.menu = s, s();
3062
+ return x.useEffect(() => {
3063
+ e.forEach((s) => Ye[s] = { all: 0 }), En.menu = r, r();
3083
3064
  }, [e]), t;
3084
3065
  }
3085
3066
  function wo(e, t) {
@@ -3094,39 +3075,39 @@ class So {
3094
3075
  constructor(t = "el", n = "db") {
3095
3076
  ot(this, "storeName");
3096
3077
  ot(this, "_dbp");
3097
- this.storeName = n, this._dbp = new Promise((s, r) => {
3078
+ this.storeName = n, this._dbp = new Promise((r, s) => {
3098
3079
  const i = indexedDB.open(t, 1);
3099
- i.onerror = () => r(i.error), i.onsuccess = () => s(i.result), i.onupgradeneeded = () => {
3080
+ i.onerror = () => s(i.error), i.onsuccess = () => r(i.result), i.onupgradeneeded = () => {
3100
3081
  i.result.createObjectStore(n);
3101
3082
  };
3102
3083
  });
3103
3084
  }
3104
3085
  _withIDBStore(t, n) {
3105
3086
  return this._dbp.then(
3106
- (s) => new Promise((r, i) => {
3107
- const c = s.transaction(this.storeName, t);
3108
- c.oncomplete = () => r(), c.onabort = c.onerror = () => i(c.error), n(c.objectStore(this.storeName));
3087
+ (r) => new Promise((s, i) => {
3088
+ const c = r.transaction(this.storeName, t);
3089
+ c.oncomplete = () => s(), c.onabort = c.onerror = () => i(c.error), n(c.objectStore(this.storeName));
3109
3090
  })
3110
3091
  );
3111
3092
  }
3112
3093
  }
3113
3094
  let lt, z = {};
3114
- const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withIDBStore("readwrite", (s) => {
3115
- z[e] = t, s.put(D.enCode(t), e);
3116
- }), oe = (e, t = Se()) => z[e] === void 0 ? new Promise((n, s) => {
3117
- let r;
3095
+ const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withIDBStore("readwrite", (r) => {
3096
+ z[e] = t, r.put(D.enCode(t), e);
3097
+ }), oe = (e, t = Se()) => z[e] === void 0 ? new Promise((n, r) => {
3098
+ let s;
3118
3099
  t._withIDBStore("readonly", (i) => {
3119
- r = i.get(e);
3100
+ s = i.get(e);
3120
3101
  }).then(() => {
3121
- if (r.result !== void 0) {
3122
- let i = D.deCode(r.result);
3102
+ if (s.result !== void 0) {
3103
+ let i = D.deCode(s.result);
3123
3104
  z[e] = i, n(i);
3124
3105
  } else
3125
3106
  n({});
3126
3107
  });
3127
3108
  }) : z[e], Eo = (e, t = Se()) => t._withIDBStore("readwrite", (n) => {
3128
3109
  n.delete(e);
3129
- }), pt = (e = Se()) => e._withIDBStore("readwrite", (t) => {
3110
+ }), vt = (e = Se()) => e._withIDBStore("readwrite", (t) => {
3130
3111
  t.clear();
3131
3112
  }), Ro = (e = Se()) => {
3132
3113
  const t = [];
@@ -3135,35 +3116,35 @@ const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withID
3135
3116
  this.result && (t.push(this.result.key), this.result.continue());
3136
3117
  };
3137
3118
  }).then(() => t);
3138
- }, No = (e, t, n = [], s = {}) => {
3139
- let r = n.length !== 0, i = [], c = s.sort, l = Object.keys(s).length !== 0, _ = Object.keys(s), d = Object.keys(e), u = 1, m = [], h = {};
3119
+ }, No = (e, t, n = [], r = {}) => {
3120
+ let s = n.length !== 0, i = [], c = r.sort, l = Object.keys(r).length !== 0, _ = Object.keys(r), d = Object.keys(e), u = 1, m = [], h = {};
3140
3121
  h[u] = [];
3141
- let x = (C) => {
3122
+ let g = (C) => {
3142
3123
  let w = "";
3143
- if (n.forEach((y) => {
3144
- w += t[C][y];
3124
+ if (n.forEach((k) => {
3125
+ w += t[C][k];
3145
3126
  }), l) {
3146
- let y = {};
3127
+ let k = {};
3147
3128
  _.forEach((b) => {
3148
- y[b] = t[C][b];
3129
+ k[b] = t[C][b];
3149
3130
  });
3150
3131
  for (let b in c)
3151
- t[C][c[b]] === void 0 && (pt(), location.reload()), b === "s1" && (y[b] = new Date(t[C][c[b]]).getTime()), b === "s2" && (y[b] = t[C][c[b]]), b === "s3" && (y[b] = t[C][c[b]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3152
- i.push({ id: C, text: w, ...y });
3132
+ t[C][c[b]] === void 0 && (vt(), location.reload()), b === "s1" && (k[b] = new Date(t[C][c[b]]).getTime()), b === "s2" && (k[b] = t[C][c[b]]), b === "s3" && (k[b] = t[C][c[b]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3133
+ i.push({ id: C, text: w, ...k });
3153
3134
  } else
3154
3135
  i.push({ id: C, text: w });
3155
- }, p = (C) => {
3136
+ }, v = (C) => {
3156
3137
  };
3157
3138
  return d.forEach((C) => {
3158
3139
  m.push(t[C]);
3159
3140
  }), m.forEach((C) => {
3160
- C === void 0 ? (pt(), location.reload()) : (r && x(C.id), l && p(C.id));
3161
- }), { list: h, search: i, filter: s };
3162
- }, To = (e, t, n, s = Se()) => {
3141
+ C === void 0 ? (vt(), location.reload()) : (s && g(C.id), l && v(C.id));
3142
+ }), { list: h, search: i, filter: r };
3143
+ }, To = (e, t, n, r = Se()) => {
3163
3144
  if (z[e] === void 0)
3164
- return new Promise((r, i) => {
3145
+ return new Promise((s, i) => {
3165
3146
  let c;
3166
- s._withIDBStore("readonly", (l) => {
3147
+ r._withIDBStore("readonly", (l) => {
3167
3148
  c = l.get(e);
3168
3149
  }).then(() => {
3169
3150
  if (c.result !== void 0) {
@@ -3171,38 +3152,38 @@ const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withID
3171
3152
  z[e] = l, z[e][t.id] = {
3172
3153
  ...z[e][t.id],
3173
3154
  ...t.data
3174
- }, s.put(D.enCode(z[e]), e), r({});
3155
+ }, r.put(D.enCode(z[e]), e), s({});
3175
3156
  } else
3176
- r({});
3157
+ s({});
3177
3158
  });
3178
3159
  });
3179
3160
  if (z[e][t.id] !== void 0)
3180
- return z[e][t.id] = { ...z[e][t.id], ...t.data }, n !== void 0 && z[n] !== void 0 ? z[n][t.id] !== void 0 && (z[n][t.id] = t.data.eDate) : z[n] = [], delete z[e][t.id].$_item, delete z[e][t.id].$_send, s._withIDBStore("readwrite", (r) => {
3181
- r.put(D.enCode(z[e]), e), n !== void 0 && r.put(D.enCode(z[n]), n);
3161
+ return z[e][t.id] = { ...z[e][t.id], ...t.data }, n !== void 0 && z[n] !== void 0 ? z[n][t.id] !== void 0 && (z[n][t.id] = t.data.eDate) : z[n] = [], delete z[e][t.id].$_item, delete z[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
3162
+ s.put(D.enCode(z[e]), e), n !== void 0 && s.put(D.enCode(z[n]), n);
3182
3163
  });
3183
- }, Io = async (e, t, n, s) => {
3184
- let r, i;
3185
- i = await oe(n), i[e.id] = e, await me(n, i), r !== null && (r = await oe(t), r[e.id] = e.eDate, await me(t, r)), s !== void 0 && s({ type: "load", page: r, base: i });
3186
- }, Do = async (e, t, n, s) => {
3187
- let r = await oe(t), i = await oe(n);
3164
+ }, Io = async (e, t, n, r) => {
3165
+ let s, i;
3166
+ i = await oe(n), i[e.id] = e, await me(n, i), s !== null && (s = await oe(t), s[e.id] = e.eDate, await me(t, s)), r !== void 0 && r({ type: "load", page: s, base: i });
3167
+ }, Do = async (e, t, n, r) => {
3168
+ let s = await oe(t), i = await oe(n);
3188
3169
  for (let c in e)
3189
- i[c] = e[c], r[c] = e[c].eDate;
3190
- await me(t, r), await me(n, i), s !== void 0 && s({ type: "load", page: r, base: i });
3191
- }, Mo = async (e, t, n, s) => {
3192
- let r = await oe(t), i = await oe(n);
3193
- e.forEach((c) => delete r[c]), await me(t, r), s !== void 0 && s({ type: "load", page: r, base: i });
3170
+ i[c] = e[c], s[c] = e[c].eDate;
3171
+ await me(t, s), await me(n, i), r !== void 0 && r({ type: "load", page: s, base: i });
3172
+ }, Mo = async (e, t, n, r) => {
3173
+ let s = await oe(t), i = await oe(n);
3174
+ e.forEach((c) => delete s[c]), await me(t, s), r !== void 0 && r({ type: "load", page: s, base: i });
3194
3175
  }, Fo = async (e, t, n) => {
3195
- let s = await oe(t);
3196
- e.forEach((r) => delete s[r]), await me(t, s);
3176
+ let r = await oe(t);
3177
+ e.forEach((s) => delete r[s]), await me(t, r);
3197
3178
  }, Lo = async (e, t, n) => {
3198
- let s = await oe(t);
3199
- e.forEach((r) => s[r.id] = r.eDate), await me(t, s);
3179
+ let r = await oe(t);
3180
+ e.forEach((s) => r[s.id] = s.eDate), await me(t, r);
3200
3181
  }, $o = async (e, t, n) => {
3201
- let s = await oe(t);
3182
+ let r = await oe(t);
3202
3183
  if (n !== void 0)
3203
- n({ type: "load", base: s });
3184
+ n({ type: "load", base: r });
3204
3185
  else
3205
- return s[e];
3186
+ return r[e];
3206
3187
  }, Po = (e) => z[e], Bl = {
3207
3188
  id: $o,
3208
3189
  get: oe,
@@ -3213,20 +3194,20 @@ const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withID
3213
3194
  key: Ro,
3214
3195
  load: Po,
3215
3196
  split: No,
3216
- clear: pt,
3197
+ clear: vt,
3217
3198
  updAll: Do,
3218
3199
  delAll: Mo,
3219
3200
  delList: Fo,
3220
3201
  addList: Lo
3221
3202
  }, Bo = (e, t) => {
3222
3203
  const n = [];
3223
- t = t.map((s) => s.charCodeAt(0)), document.onkeydown = function(s) {
3224
- n.push(s.keyCode);
3225
- for (var r = 0; r < t.length; r++)
3226
- if (n.indexOf(t[r]) == -1)
3204
+ t = t.map((r) => r.charCodeAt(0)), document.onkeydown = function(r) {
3205
+ n.push(r.keyCode);
3206
+ for (var s = 0; s < t.length; s++)
3207
+ if (n.indexOf(t[s]) == -1)
3227
3208
  return;
3228
3209
  e(), n.length = 0;
3229
- }, document.onkeyup = function(s) {
3210
+ }, document.onkeyup = function(r) {
3230
3211
  n.length = 0;
3231
3212
  };
3232
3213
  }, Ol = { useKey: Bo }, Oo = "_s_18bde_1", Ao = "_loadingB_18bde_1", Zo = "_ul_18bde_31", zo = {
@@ -3250,12 +3231,12 @@ function Go(e, t) {
3250
3231
  size: Object.keys(t.data).length
3251
3232
  };
3252
3233
  case "update":
3253
- let n = Object.keys(e.data).length, s = e.item + 1;
3254
- return s = n < s ? 1 : s, e.item === s ? e : {
3234
+ let n = Object.keys(e.data).length, r = e.item + 1;
3235
+ return r = n < r ? 1 : r, e.item === r ? e : {
3255
3236
  ...e,
3256
- wait: e.size === s,
3257
- item: s,
3258
- list: [...e.list, ...e.data[s]]
3237
+ wait: e.size === r,
3238
+ item: r,
3239
+ list: [...e.list, ...e.data[r]]
3259
3240
  };
3260
3241
  case "clear":
3261
3242
  return {
@@ -3271,7 +3252,7 @@ function Go(e, t) {
3271
3252
  }
3272
3253
  }
3273
3254
  function Nn(e) {
3274
- const t = g.useRef(null), [n, s] = g.useReducer(Go, {
3255
+ const t = x.useRef(null), [n, r] = x.useReducer(Go, {
3275
3256
  load: !1,
3276
3257
  list: [],
3277
3258
  data: {},
@@ -3279,14 +3260,14 @@ function Nn(e) {
3279
3260
  wait: !1,
3280
3261
  size: 0
3281
3262
  });
3282
- g.useEffect(() => {
3283
- }, []), g.useEffect(() => {
3284
- t.current.scrollTop = 0, e.list !== null && s({ type: "load", load: !0, data: e.list });
3263
+ x.useEffect(() => {
3264
+ }, []), x.useEffect(() => {
3265
+ t.current.scrollTop = 0, e.list !== null && r({ type: "load", load: !0, data: e.list });
3285
3266
  }, [e.load]);
3286
- let r = () => {
3287
- t.current.scrollHeight - t.current.scrollTop - 300 <= t.current.clientHeight && !n.wait && s({ type: "update" });
3267
+ let s = () => {
3268
+ t.current.scrollHeight - t.current.scrollTop - 300 <= t.current.clientHeight && !n.wait && r({ type: "update" });
3288
3269
  };
3289
- return /* @__PURE__ */ a.jsx("div", { className: zo.s, ref: t, onScroll: r, children: /* @__PURE__ */ a.jsx(Rn, { "el-empty": "Данные не найдены", children: n.load && n.list !== void 0 ? n.list.map((i) => /* @__PURE__ */ a.jsx(e.item, { data: i }, i.id)) : /* @__PURE__ */ a.jsxs("div", { "data-load": "load", children: [
3270
+ return /* @__PURE__ */ a.jsx("div", { className: zo.s, ref: t, onScroll: s, children: /* @__PURE__ */ a.jsx(Rn, { "el-empty": "Данные не найдены", children: n.load && n.list !== void 0 ? n.list.map((i) => /* @__PURE__ */ a.jsx(e.item, { data: i }, i.id)) : /* @__PURE__ */ a.jsxs("div", { "data-load": "load", children: [
3290
3271
  /* @__PURE__ */ a.jsx("i", {}),
3291
3272
  /* @__PURE__ */ a.jsx("i", {}),
3292
3273
  /* @__PURE__ */ a.jsx("i", {})
@@ -3300,28 +3281,28 @@ const Al = { Scrolling: Nn }, Zl = { Widget: Ei }, Tn = ({ onClick: e, active: t
3300
3281
  "aria-checked": `${t ? "true" : "false"}`
3301
3282
  }
3302
3283
  ));
3303
- let pe = {};
3304
- pe.KeyDown = (e) => {
3284
+ let ve = {};
3285
+ ve.KeyDown = (e) => {
3305
3286
  e.key === "Enter" && e.preventDefault();
3306
3287
  };
3307
- pe.PasteOne = (e) => {
3288
+ ve.PasteOne = (e) => {
3308
3289
  e.preventDefault(), navigator.clipboard.readText().then((t) => {
3309
3290
  t = t.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, t);
3310
3291
  }).catch((t) => {
3311
3292
  });
3312
3293
  };
3313
- pe.Focus = (e) => {
3294
+ ve.Focus = (e) => {
3314
3295
  e.target.textContent.length === 0 && (e.target.innerHTML = "<br>");
3315
3296
  };
3316
- pe.Blur = (e) => {
3297
+ ve.Blur = (e) => {
3317
3298
  e.target.scrollLeft = 0, e.target.querySelector("br") !== null && e.target.querySelector("br").remove();
3318
3299
  };
3319
3300
  function $e({
3320
3301
  value: e,
3321
3302
  onValue: t,
3322
3303
  name: n,
3323
- placeholder: s = "",
3324
- title: r = "",
3304
+ placeholder: r = "",
3305
+ title: s = "",
3325
3306
  error: i = "",
3326
3307
  hide: c = !1,
3327
3308
  edit: l = !0,
@@ -3330,42 +3311,41 @@ function $e({
3330
3311
  show: u = !0,
3331
3312
  view: m,
3332
3313
  onBlur: h,
3333
- onSave: x,
3334
- className: p = ""
3314
+ onSave: g,
3315
+ className: v = ""
3335
3316
  }) {
3336
- let C = !!(c && (e === "" || e === void 0)), w = (P) => {
3337
- t && t({ value: P.target.textContent, name: n });
3338
- }, y = (P) => {
3339
- P.key === "Enter" && P.preventDefault();
3340
- }, b = (P) => {
3341
- }, R = (P) => {
3342
- P.preventDefault(), navigator.clipboard.writeText(P.target.textContent).then(
3317
+ let C = !!(c && (e === "" || e === void 0)), w = ($) => {
3318
+ t && t({ value: $.target.textContent, name: n });
3319
+ }, k = ($) => {
3320
+ $.key === "Enter" && $.preventDefault();
3321
+ }, b = ($) => {
3322
+ }, R = ($) => {
3323
+ $.preventDefault(), navigator.clipboard.writeText($.target.textContent).then(
3343
3324
  function() {
3344
3325
  Le.Copy("Данные в буфер обмене");
3345
3326
  },
3346
- function(B) {
3347
- console.error("Async: Could not copy text: ", B);
3327
+ function(P) {
3348
3328
  }
3349
3329
  );
3350
3330
  };
3351
3331
  if (!(l && _) && !u || !(l && _) && C)
3352
3332
  return "";
3353
3333
  const N = {};
3354
- N.field = "input", p && (N.className = p);
3334
+ N.field = "input", v && (N.className = v);
3355
3335
  const j = {};
3356
- s && (j.placeholder = s), j.edit = (l && _) + "";
3357
- const F = (P) => {
3358
- pe.Blur(P), x && x({ value: P.target.textContent, name: n });
3336
+ r && (j.placeholder = r), j.edit = (l && _) + "";
3337
+ const F = ($) => {
3338
+ ve.Blur($), g && g({ value: $.target.textContent, name: n });
3359
3339
  };
3360
3340
  return /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
3361
- r ? /* @__PURE__ */ a.jsx("dt", { children: r }) : "",
3341
+ s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
3362
3342
  /* @__PURE__ */ a.jsx(
3363
3343
  "dd",
3364
3344
  {
3365
3345
  onPaste: b,
3366
3346
  onInput: w,
3367
3347
  onBlur: F,
3368
- onKeyDown: y,
3348
+ onKeyDown: k,
3369
3349
  onContextMenu: R,
3370
3350
  contentEditable: l && _ ? "plaintext-only" : "false",
3371
3351
  suppressContentEditableWarning: !0,
@@ -3376,21 +3356,21 @@ function $e({
3376
3356
  i ? /* @__PURE__ */ a.jsx("em", { children: i }) : ""
3377
3357
  ] });
3378
3358
  }
3379
- function In({ onClick: e, onSend: t, name: n, onRef: s }) {
3380
- let [r, i] = g.useState(!1);
3359
+ function In({ onClick: e, onSend: t, name: n, onRef: r }) {
3360
+ let [s, i] = x.useState(!1);
3381
3361
  const c = () => {
3382
3362
  if (e)
3383
3363
  return e();
3384
- r || (i(!0), t && t(i));
3364
+ s || (i(!0), t && t(i));
3385
3365
  };
3386
3366
  return /* @__PURE__ */ a.jsx(
3387
3367
  "button",
3388
3368
  {
3389
- ref: s,
3369
+ ref: r,
3390
3370
  "data-form": "button",
3391
- className: r ? "btn await" : "btn confirm pointer",
3371
+ className: s ? "btn await" : "btn confirm pointer",
3392
3372
  onClick: c,
3393
- children: r ? "Ожидайте" : n
3373
+ children: s ? "Ожидайте" : n
3394
3374
  }
3395
3375
  );
3396
3376
  }
@@ -3398,14 +3378,14 @@ function Dn({
3398
3378
  value: e,
3399
3379
  onValue: t,
3400
3380
  onActive: n,
3401
- data: s,
3402
- name: r,
3381
+ data: r,
3382
+ name: s,
3403
3383
  view: i,
3404
3384
  edit: c = !0,
3405
3385
  active: l = !0,
3406
3386
  placeholder: _ = "Введите сообщение"
3407
3387
  }) {
3408
- const d = g.useRef({
3388
+ const d = x.useRef({
3409
3389
  value: e,
3410
3390
  timerId: null,
3411
3391
  shift: !1,
@@ -3414,14 +3394,14 @@ function Dn({
3414
3394
  d.current.value.length > 0 ? d.current.send && (n(!0), d.current.send = !1, d.current.timerId = setTimeout(() => {
3415
3395
  d.current.send = !0;
3416
3396
  }, 3e3)) : n(!1);
3417
- }, m = (y) => {
3418
- d.current.value = y.target.textContent, u();
3419
- }, h = (y) => {
3420
- y.keyCode === 16 && (d.current.shift = !0), y.keyCode === 13 && !d.current.shift && (y.preventDefault(), d.current.value.length !== 0 && (y.target.textContent = "", s && s(d.current.value), t && t(d.current.value), d.current.value = "", n(!1)));
3421
- }, x = (y) => {
3422
- y.keyCode === 16 && (d.current.shift = !1);
3423
- }, p = (y) => {
3424
- y.preventDefault(), navigator.clipboard.readText().then((b) => {
3397
+ }, m = (k) => {
3398
+ d.current.value = k.target.textContent, u();
3399
+ }, h = (k) => {
3400
+ k.keyCode === 16 && (d.current.shift = !0), k.keyCode === 13 && !d.current.shift && (k.preventDefault(), d.current.value.length !== 0 && (k.target.textContent = "", r && r(d.current.value), t && t(d.current.value), d.current.value = "", n(!1)));
3401
+ }, g = (k) => {
3402
+ k.keyCode === 16 && (d.current.shift = !1);
3403
+ }, v = (k) => {
3404
+ k.preventDefault(), navigator.clipboard.readText().then((b) => {
3425
3405
  window.document.execCommand("insertText", !1, b);
3426
3406
  }).catch((b) => {
3427
3407
  });
@@ -3433,9 +3413,9 @@ function Dn({
3433
3413
  return _ && (w.placeholder = _), c && l && (w.contentEditable = "plaintext-only"), /* @__PURE__ */ a.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ a.jsx(
3434
3414
  "dd",
3435
3415
  {
3436
- onPaste: p,
3416
+ onPaste: v,
3437
3417
  onInput: m,
3438
- onKeyUp: x,
3418
+ onKeyUp: g,
3439
3419
  onKeyDown: h,
3440
3420
  onBlur: C,
3441
3421
  ...w,
@@ -3445,7 +3425,7 @@ function Dn({
3445
3425
  ) });
3446
3426
  }
3447
3427
  function Mn(e) {
3448
- let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, r = e.placeholder !== void 0 ? e.placeholder : "", i = (_) => {
3428
+ let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, s = e.placeholder !== void 0 ? e.placeholder : "", i = (_) => {
3449
3429
  e.onValue({ value: _.target.textContent, name: e.name });
3450
3430
  }, c = (_) => {
3451
3431
  _.key === "Enter" && _.preventDefault();
@@ -3453,7 +3433,6 @@ function Mn(e) {
3453
3433
  _.preventDefault(), navigator.clipboard.readText().then((d) => {
3454
3434
  window.document.execCommand("insertText", !1, d);
3455
3435
  }).catch((d) => {
3456
- console.log("Something went wrong", d);
3457
3436
  });
3458
3437
  };
3459
3438
  return /* @__PURE__ */ a.jsxs("dl", { "data-form": "input", "type-data": "generator", children: [
@@ -3464,33 +3443,32 @@ function Mn(e) {
3464
3443
  onPaste: l,
3465
3444
  onInput: i,
3466
3445
  onKeyDown: c,
3467
- contentEditable: n && s ? "plaintext-only" : "false",
3468
- "data-placeholder": r,
3446
+ contentEditable: n && r ? "plaintext-only" : "false",
3447
+ "data-placeholder": s,
3469
3448
  suppressContentEditableWarning: !0,
3470
3449
  children: e.value
3471
3450
  }
3472
3451
  )
3473
3452
  ] });
3474
3453
  }
3475
- function Fn({ value: e, onValue: t, placeholder: n = "", name: s }) {
3476
- let r = (x, p) => Number(Math.round(x + Math.random() * (p - x))), i = g.useRef(null), c = g.useRef(null), l = r(1e4, 99999), _ = (x) => {
3477
- x.key !== "Backspace" && (x.key === "Enter" && x.preventDefault(), x.target.textContent.length === 5 && x.preventDefault(), /\d/.test(x.key) || x.preventDefault());
3478
- }, d = (x) => {
3479
- t({ value: Number(x.target.textContent) === l, name: s });
3480
- }, u = (x) => {
3481
- x.preventDefault(), navigator.clipboard.readText().then((p) => {
3454
+ function Fn({ value: e, onValue: t, placeholder: n = "", name: r }) {
3455
+ let s = (g, v) => Number(Math.round(g + Math.random() * (v - g))), i = x.useRef(null), c = x.useRef(null), l = s(1e4, 99999), _ = (g) => {
3456
+ g.key !== "Backspace" && (g.key === "Enter" && g.preventDefault(), g.target.textContent.length === 5 && g.preventDefault(), /\d/.test(g.key) || g.preventDefault());
3457
+ }, d = (g) => {
3458
+ t({ value: Number(g.target.textContent) === l, name: r });
3459
+ }, u = (g) => {
3460
+ g.preventDefault(), navigator.clipboard.readText().then((v) => {
3482
3461
  window.document.execCommand(
3483
3462
  "insertText",
3484
3463
  !1,
3485
- p.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
3464
+ v.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
3486
3465
  );
3487
- }).catch((p) => {
3488
- console.log("Something went wrong", p);
3466
+ }).catch((v) => {
3489
3467
  });
3490
3468
  };
3491
- g.useEffect(() => {
3492
- const x = i.current, p = x.getContext("2d");
3493
- p.clearRect(0, 0, x.width, x.height), p.font = "30px brush script mt", p.fillStyle = "#eee", p.textAlign = "center", p.fillText(l, 50, 27), c.current.textContent = "";
3469
+ x.useEffect(() => {
3470
+ const g = i.current, v = g.getContext("2d");
3471
+ v.clearRect(0, 0, g.width, g.height), v.font = "30px brush script mt", v.fillStyle = "#eee", v.textAlign = "center", v.fillText(l, 50, 27), c.current.textContent = "";
3494
3472
  }, [l]);
3495
3473
  const m = {};
3496
3474
  m.field = "captcha";
@@ -3502,7 +3480,7 @@ function Fn({ value: e, onValue: t, placeholder: n = "", name: s }) {
3502
3480
  ref: c,
3503
3481
  onPaste: u,
3504
3482
  onInput: d,
3505
- onBlur: pe.Blur,
3483
+ onBlur: ve.Blur,
3506
3484
  onKeyDown: _,
3507
3485
  contentEditable: "plaintext-only",
3508
3486
  suppressContentEditableWarning: !0,
@@ -3513,7 +3491,7 @@ function Fn({ value: e, onValue: t, placeholder: n = "", name: s }) {
3513
3491
  ] });
3514
3492
  }
3515
3493
  function Ln(e) {
3516
- let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", s = {
3494
+ let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", r = {
3517
3495
  n1: "",
3518
3496
  n2: "",
3519
3497
  n3: "",
@@ -3521,27 +3499,27 @@ function Ln(e) {
3521
3499
  n5: "",
3522
3500
  n6: "",
3523
3501
  code: ""
3524
- }, r = (d) => {
3502
+ }, s = (d) => {
3525
3503
  d.preventDefault(), d.target.textContent = d.target.textContent.slice(-1).replace(/[^+\d]/g, "");
3526
3504
  let u = window.getSelection(), m = d.target.textContent.length;
3527
- if (s[d.target.id] = d.target.textContent, s.code = s.n1 + "" + s.n2 + s.n3 + s.n4 + s.n5 + s.n6, u.collapse(d.target.firstChild, 1), m === 0) {
3505
+ if (r[d.target.id] = d.target.textContent, r.code = r.n1 + "" + r.n2 + r.n3 + r.n4 + r.n5 + r.n6, u.collapse(d.target.firstChild, 1), m === 0) {
3528
3506
  d.target.blur(), d.target.focus();
3529
3507
  return;
3530
3508
  }
3531
3509
  d.target.nextSibling != null && d.target.nextSibling.focus();
3532
3510
  }, i = (d) => {
3533
3511
  if (d.key === "Enter" && d.preventDefault(), d.key === "Backspace") {
3534
- if (d.preventDefault(), d.target.textContent = "", s[d.target.id] = "", d.target.previousSibling != null) {
3512
+ if (d.preventDefault(), d.target.textContent = "", r[d.target.id] = "", d.target.previousSibling != null) {
3535
3513
  let u = d.target.previousSibling.id.slice(1);
3536
- d.target.previousSibling.textContent = "", s["n" + u] = "", d.target.previousSibling.focus();
3514
+ d.target.previousSibling.textContent = "", r["n" + u] = "", d.target.previousSibling.focus();
3537
3515
  }
3538
- s.code = s.n1 + "" + s.n2 + s.n3 + s.n4 + s.n5 + s.n6;
3516
+ r.code = r.n1 + "" + r.n2 + r.n3 + r.n4 + r.n5 + r.n6;
3539
3517
  }
3540
3518
  }, c = (d) => {
3541
3519
  if (e.real)
3542
- e.onValue({ value: s.code, name: e.name });
3543
- else if (s.code.length === 6 && (e.onValue({ value: s.code, name: e.name }), e.empty)) {
3544
- s = {
3520
+ e.onValue({ value: r.code, name: e.name });
3521
+ else if (r.code.length === 6 && (e.onValue({ value: r.code, name: e.name }), e.empty)) {
3522
+ r = {
3545
3523
  n1: "",
3546
3524
  n2: "",
3547
3525
  n3: "",
@@ -3575,7 +3553,7 @@ function Ln(e) {
3575
3553
  onKeyUp: c,
3576
3554
  onFocus: l,
3577
3555
  onPaste: _,
3578
- onInput: r,
3556
+ onInput: s,
3579
3557
  contentEditable: !0
3580
3558
  }
3581
3559
  ),
@@ -3587,7 +3565,7 @@ function Ln(e) {
3587
3565
  onKeyUp: c,
3588
3566
  onFocus: l,
3589
3567
  onPaste: _,
3590
- onInput: r,
3568
+ onInput: s,
3591
3569
  contentEditable: !0
3592
3570
  }
3593
3571
  ),
@@ -3599,7 +3577,7 @@ function Ln(e) {
3599
3577
  onKeyUp: c,
3600
3578
  onFocus: l,
3601
3579
  onPaste: _,
3602
- onInput: r,
3580
+ onInput: s,
3603
3581
  contentEditable: !0
3604
3582
  }
3605
3583
  ),
@@ -3611,7 +3589,7 @@ function Ln(e) {
3611
3589
  onKeyUp: c,
3612
3590
  onFocus: l,
3613
3591
  onPaste: _,
3614
- onInput: r,
3592
+ onInput: s,
3615
3593
  contentEditable: !0
3616
3594
  }
3617
3595
  ),
@@ -3623,7 +3601,7 @@ function Ln(e) {
3623
3601
  onKeyUp: c,
3624
3602
  onFocus: l,
3625
3603
  onPaste: _,
3626
- onInput: r,
3604
+ onInput: s,
3627
3605
  contentEditable: !0
3628
3606
  }
3629
3607
  ),
@@ -3635,7 +3613,7 @@ function Ln(e) {
3635
3613
  onKeyUp: c,
3636
3614
  onFocus: l,
3637
3615
  onPaste: _,
3638
- onInput: r,
3616
+ onInput: s,
3639
3617
  contentEditable: !0
3640
3618
  }
3641
3619
  )
@@ -3648,9 +3626,9 @@ function Ln(e) {
3648
3626
  function $n(e) {
3649
3627
  let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "";
3650
3628
  e.edit !== void 0 && e.edit, e.active !== void 0 && e.active;
3651
- let [s, r] = g.useState(e.value), i = (c) => {
3629
+ let [r, s] = x.useState(e.value), i = (c) => {
3652
3630
  let l = c.target.getAttribute("set-color");
3653
- r(l), e.onValue({ value: l, name: e.name });
3631
+ s(l), e.onValue({ value: l, name: e.name });
3654
3632
  };
3655
3633
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: e.view === "icon" ? /* @__PURE__ */ a.jsx(
3656
3634
  "i",
@@ -3662,7 +3640,7 @@ function $n(e) {
3662
3640
  {
3663
3641
  children: [
3664
3642
  t(),
3665
- /* @__PURE__ */ a.jsxs("dd", { "el-val": s, children: [
3643
+ /* @__PURE__ */ a.jsxs("dd", { "el-val": r, children: [
3666
3644
  /* @__PURE__ */ a.jsx("em", { onClick: i, "set-color": "0" }),
3667
3645
  /* @__PURE__ */ a.jsx("em", { onClick: i, "set-color": "1" }),
3668
3646
  /* @__PURE__ */ a.jsx("em", { onClick: i, "set-color": "2" }),
@@ -3675,21 +3653,21 @@ function $n(e) {
3675
3653
  }
3676
3654
  ) });
3677
3655
  }
3678
- const Wo = "_o_ff5dx_1", Ko = "_c_ff5dx_11", je = {
3679
- o: Wo,
3680
- c: Ko
3656
+ const Ko = "_o_ff5dx_1", Wo = "_c_ff5dx_11", je = {
3657
+ o: Ko,
3658
+ c: Wo
3681
3659
  };
3682
3660
  function Et(e) {
3683
- let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", s = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", [c, l] = g.useState(
3661
+ let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", [c, l] = x.useState(
3684
3662
  e.value === void 0 ? /* @__PURE__ */ new Date() : e.value
3685
- ), _ = !s && r;
3686
- g.useEffect(() => {
3663
+ ), _ = !r && s;
3664
+ x.useEffect(() => {
3687
3665
  l(e.value === void 0 ? /* @__PURE__ */ new Date() : e.value);
3688
3666
  }, [e.value]);
3689
- let d = (x) => {
3690
- l(x), e.onValue({ value: x, name: e.name });
3691
- }, u = (x) => {
3692
- const p = x.target.getBoundingClientRect(), C = p.left, w = p.top;
3667
+ let d = (g) => {
3668
+ l(g), e.onValue({ value: g, name: e.name });
3669
+ }, u = (g) => {
3670
+ const v = g.target.getBoundingClientRect(), C = v.left, w = v.top;
3693
3671
  we.setListener(
3694
3672
  "form",
3695
3673
  /* @__PURE__ */ a.jsx(
@@ -3725,7 +3703,7 @@ function Et(e) {
3725
3703
  {
3726
3704
  onClick: u,
3727
3705
  ...h,
3728
- "data-edit": (s && r) + "",
3706
+ "data-edit": (r && s) + "",
3729
3707
  children: G.Date(c, "dd.mm.yyyy")
3730
3708
  }
3731
3709
  ),
@@ -3735,32 +3713,32 @@ function Et(e) {
3735
3713
  ) });
3736
3714
  }
3737
3715
  const Vo = (e) => {
3738
- let [t, n] = g.useState(!0), s = /* @__PURE__ */ new Date(), r = new Date(e.date), i = {
3739
- y: parseInt(s.getFullYear()),
3740
- d: parseInt(s.getDate()),
3741
- m: parseInt(s.getMonth()) + 1
3742
- }, c = {
3716
+ let [t, n] = x.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3743
3717
  y: parseInt(r.getFullYear()),
3744
3718
  d: parseInt(r.getDate()),
3745
3719
  m: parseInt(r.getMonth()) + 1
3746
- }, [l, _] = g.useState({ y: c.y, m: c.m }), d = (j) => {
3720
+ }, c = {
3721
+ y: parseInt(s.getFullYear()),
3722
+ d: parseInt(s.getDate()),
3723
+ m: parseInt(s.getMonth()) + 1
3724
+ }, [l, _] = x.useState({ y: c.y, m: c.m }), d = (j) => {
3747
3725
  let F = j.getDay();
3748
3726
  return F === 0 && (F = 7), F - 1;
3749
- }, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], m = l.m - 1, h = new Date(l.y, m), x = [];
3727
+ }, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], m = l.m - 1, h = new Date(l.y, m), g = [];
3750
3728
  for (let j = 0; j < d(h); j++)
3751
- x.push(0);
3729
+ g.push(0);
3752
3730
  for (; h.getMonth() === m; )
3753
- x.push(h.getDate()), h.setDate(h.getDate() + 1);
3754
- let p = () => {
3731
+ g.push(h.getDate()), h.setDate(h.getDate() + 1);
3732
+ let v = () => {
3755
3733
  n(!1);
3756
3734
  }, C = () => {
3757
3735
  b(l.m + 1, l.y);
3758
3736
  }, w = () => {
3759
3737
  b(l.m - 1, l.y);
3760
- }, y = (j) => {
3738
+ }, k = (j) => {
3761
3739
  e.onValue(
3762
3740
  l.y + "-" + G.Number(2, l.m) + "-" + G.Number(2, j)
3763
- ), p();
3741
+ ), v();
3764
3742
  }, b = (j, F) => {
3765
3743
  F = j > 12 ? F + 1 : j < 1 ? F - 1 : F, j = j > 12 ? 1 : j < 1 ? 12 : j, _({ y: F, m: j });
3766
3744
  }, R = 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;
@@ -3769,7 +3747,7 @@ const Vo = (e) => {
3769
3747
  "div",
3770
3748
  {
3771
3749
  className: je.o,
3772
- onClick: () => p()
3750
+ onClick: () => v()
3773
3751
  },
3774
3752
  (/* @__PURE__ */ new Date()).getTime()
3775
3753
  ),
@@ -3790,11 +3768,11 @@ const Vo = (e) => {
3790
3768
  ] }),
3791
3769
  /* @__PURE__ */ a.jsxs("div", { children: [
3792
3770
  u.map((j, F) => /* @__PURE__ */ a.jsx("p", { children: j }, "v" + F)),
3793
- x.map((j, F) => /* @__PURE__ */ a.jsx("span", { children: j !== 0 ? /* @__PURE__ */ a.jsx(
3771
+ g.map((j, F) => /* @__PURE__ */ a.jsx("span", { children: j !== 0 ? /* @__PURE__ */ a.jsx(
3794
3772
  "b",
3795
3773
  {
3796
3774
  color: i.y === l.y && i.m === l.m && i.d === j ? "_FFEB3B" : "",
3797
- onClick: () => y(j),
3775
+ onClick: () => k(j),
3798
3776
  children: j
3799
3777
  }
3800
3778
  ) : /* @__PURE__ */ a.jsx("p", {}) }, F))
@@ -3808,8 +3786,8 @@ function Rt({
3808
3786
  value: e,
3809
3787
  onValue: t,
3810
3788
  name: n,
3811
- placeholder: s = "",
3812
- title: r,
3789
+ placeholder: r = "",
3790
+ title: s,
3813
3791
  error: i,
3814
3792
  hide: c = !1,
3815
3793
  edit: l = !0,
@@ -3818,31 +3796,31 @@ function Rt({
3818
3796
  after: u = "",
3819
3797
  view: m,
3820
3798
  modal: h,
3821
- module: x,
3822
- options: p
3799
+ module: g,
3800
+ options: v
3823
3801
  }) {
3824
- let [C, w] = g.useState(e), y = (b) => {
3802
+ let [C, w] = x.useState(e), k = (b) => {
3825
3803
  if (!h)
3826
- return console.error("modal - empty");
3804
+ return;
3827
3805
  let R = h.split(".");
3828
3806
  wt.Open(R[0], R[1], {
3829
3807
  callback: (N) => {
3830
3808
  t && t({ value: N, name: n }), w(N);
3831
3809
  },
3832
3810
  onValue: t,
3833
- options: p,
3811
+ options: v,
3834
3812
  name: n,
3835
3813
  value: e
3836
3814
  });
3837
3815
  };
3838
3816
  return c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { "data-form": "select", "data-view": m, children: [
3839
- r ? /* @__PURE__ */ a.jsx("dt", { children: r }) : "",
3817
+ s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
3840
3818
  /* @__PURE__ */ a.jsx(
3841
3819
  "dd",
3842
3820
  {
3843
- onClick: y,
3821
+ onClick: k,
3844
3822
  "data-edit": (l && d) + "",
3845
- "data-placeholder": s,
3823
+ "data-placeholder": r,
3846
3824
  "data-after": u,
3847
3825
  children: C
3848
3826
  }
@@ -3851,14 +3829,14 @@ function Rt({
3851
3829
  ] });
3852
3830
  }
3853
3831
  function Nt(e) {
3854
- let t = e.value, n = (m) => e.type === "multi" ? m.replace(/[^+\d.+-]/g, "") : m.replace(/[^+\d.]/g, ""), s = (m, h) => {
3855
- let x = document.createRange(), p = window.getSelection();
3856
- x.setStart(h.childNodes[0], m), x.collapse(!0), p.removeAllRanges(), p.addRange(x), h.focus();
3857
- }, r = (m) => {
3832
+ let t = e.value, n = (m) => e.type === "multi" ? m.replace(/[^+\d.+-]/g, "") : m.replace(/[^+\d.]/g, ""), r = (m, h) => {
3833
+ let g = document.createRange(), v = window.getSelection();
3834
+ g.setStart(h.childNodes[0], m), g.collapse(!0), v.removeAllRanges(), v.addRange(g), h.focus();
3835
+ }, s = (m) => {
3858
3836
  e.onValue({
3859
3837
  value: n(m.target.textContent),
3860
3838
  name: e.name
3861
- }), m.target.textContent = n(m.target.textContent), m.target.textContent.length > 0 && s(m.target.textContent.length, m.target);
3839
+ }), m.target.textContent = n(m.target.textContent), m.target.textContent.length > 0 && r(m.target.textContent.length, m.target);
3862
3840
  }, i = (m) => {
3863
3841
  m.target.textContent === "" && (m.target.textContent = 0), e.onValue({
3864
3842
  value: n(m.target.textContent),
@@ -3872,7 +3850,6 @@ function Nt(e) {
3872
3850
  m.preventDefault(), navigator.clipboard.readText().then((h) => {
3873
3851
  h = h.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, h);
3874
3852
  }).catch((h) => {
3875
- console.log("Something went wrong", h);
3876
3853
  });
3877
3854
  }, d = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", u = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "";
3878
3855
  return /* @__PURE__ */ a.jsxs(
@@ -3884,7 +3861,7 @@ function Nt(e) {
3884
3861
  /* @__PURE__ */ a.jsx(
3885
3862
  "dd",
3886
3863
  {
3887
- onInput: r,
3864
+ onInput: s,
3888
3865
  onPaste: _,
3889
3866
  onBlur: i,
3890
3867
  onKeyDown: l,
@@ -3904,30 +3881,30 @@ function Pn({
3904
3881
  value: e,
3905
3882
  onValue: t,
3906
3883
  name: n,
3907
- view: s,
3908
- error: r,
3884
+ view: r,
3885
+ error: s,
3909
3886
  edit: i = !0,
3910
3887
  active: c = !0,
3911
3888
  title: l,
3912
3889
  placeholder: _ = "",
3913
3890
  after: d
3914
3891
  }) {
3915
- let [u, m] = g.useState(e);
3916
- g.useEffect(() => {
3892
+ let [u, m] = x.useState(e);
3893
+ x.useEffect(() => {
3917
3894
  m(e);
3918
3895
  }, [e]);
3919
3896
  let h = (C) => {
3920
3897
  m(C), t && t({ value: C, name: n });
3921
- }, x = (C) => {
3898
+ }, g = (C) => {
3922
3899
  if (!i || !c)
3923
3900
  return;
3924
- const w = C.target.getBoundingClientRect(), y = w.left, b = w.top;
3901
+ const w = C.target.getBoundingClientRect(), k = w.left, b = w.top;
3925
3902
  we.setListener(
3926
3903
  "form",
3927
3904
  /* @__PURE__ */ a.jsx(
3928
3905
  Uo,
3929
3906
  {
3930
- position: { x: y, y: b },
3907
+ position: { x: k, y: b },
3931
3908
  onValue: h,
3932
3909
  date: u
3933
3910
  },
@@ -3935,12 +3912,12 @@ function Pn({
3935
3912
  )
3936
3913
  );
3937
3914
  };
3938
- const p = {};
3939
- return _ && (p.placeholder = _), /* @__PURE__ */ a.jsx(a.Fragment, { children: s === "icon" ? /* @__PURE__ */ a.jsx(
3915
+ const v = {};
3916
+ return _ && (v.placeholder = _), /* @__PURE__ */ a.jsx(a.Fragment, { children: r === "icon" ? /* @__PURE__ */ a.jsx(
3940
3917
  "i",
3941
3918
  {
3942
3919
  "data-icon": "F043",
3943
- onClick: x
3920
+ onClick: g
3944
3921
  }
3945
3922
  ) : /* @__PURE__ */ a.jsxs(
3946
3923
  "dl",
@@ -3950,32 +3927,32 @@ function Pn({
3950
3927
  /* @__PURE__ */ a.jsx(
3951
3928
  "dd",
3952
3929
  {
3953
- onClick: x,
3954
- ...p,
3930
+ onClick: g,
3931
+ ...v,
3955
3932
  children: G.Date(u, "mm.yyyy")
3956
3933
  }
3957
3934
  ),
3958
- r && /* @__PURE__ */ a.jsx("em", { children: r })
3935
+ s && /* @__PURE__ */ a.jsx("em", { children: s })
3959
3936
  ]
3960
3937
  }
3961
3938
  ) });
3962
3939
  }
3963
3940
  const Uo = (e) => {
3964
- let [t, n] = g.useState(!0), s = /* @__PURE__ */ new Date(), r = new Date(e.date), i = {
3965
- y: parseInt(s.getFullYear()),
3966
- m: parseInt(s.getMonth()) + 1
3967
- }, c = {
3941
+ let [t, n] = x.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3968
3942
  y: parseInt(r.getFullYear()),
3969
3943
  m: parseInt(r.getMonth()) + 1
3970
- }, [l, _] = g.useState(c.y), d = () => {
3944
+ }, c = {
3945
+ y: parseInt(s.getFullYear()),
3946
+ m: parseInt(s.getMonth()) + 1
3947
+ }, [l, _] = x.useState(c.y), d = () => {
3971
3948
  n(!1);
3972
3949
  }, u = () => {
3973
3950
  _(l + 1);
3974
3951
  }, m = () => {
3975
3952
  _(l - 1);
3976
- }, h = (y) => {
3977
- e.onValue(l + "-" + G.Number(2, y)), d();
3978
- }, x = (y) => i.y === c.y && i.m === y ? "_FFEB3B" : "", p = Array(12).fill("").map((y, b) => b + 1), C = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, w = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
3953
+ }, h = (k) => {
3954
+ e.onValue(l + "-" + G.Number(2, k)), d();
3955
+ }, g = (k) => i.y === c.y && i.m === k ? "_FFEB3B" : "", v = Array(12).fill("").map((k, b) => b + 1), C = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, w = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
3979
3956
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3980
3957
  /* @__PURE__ */ a.jsx(
3981
3958
  "div",
@@ -3999,14 +3976,14 @@ const Uo = (e) => {
3999
3976
  /* @__PURE__ */ a.jsx(
4000
3977
  "div",
4001
3978
  {
4002
- children: p.map((y, b) => /* @__PURE__ */ a.jsx(
3979
+ children: v.map((k, b) => /* @__PURE__ */ a.jsx(
4003
3980
  "span",
4004
3981
  {
4005
3982
  onClick: () => {
4006
- h(y);
3983
+ h(k);
4007
3984
  },
4008
- color: x(y),
4009
- children: /* @__PURE__ */ a.jsx("b", { children: G.Month(y).abc })
3985
+ color: g(k),
3986
+ children: /* @__PURE__ */ a.jsx("b", { children: G.Month(k).abc })
4010
3987
  },
4011
3988
  b
4012
3989
  ))
@@ -4018,23 +3995,22 @@ const Uo = (e) => {
4018
3995
  ] }) : "" });
4019
3996
  };
4020
3997
  function Bn(e) {
4021
- let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", [s, r] = g.useState(!1), i = e.edit !== void 0 ? e.edit : !0, c = e.active !== void 0 ? e.active : !0, _ = !!(e.hide && (e.value === "" || e.value === void 0)) && !(i && c);
4022
- s = i ? !0 : s;
3998
+ let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", [r, s] = x.useState(!1), i = e.edit !== void 0 ? e.edit : !0, c = e.active !== void 0 ? e.active : !0, _ = !!(e.hide && (e.value === "" || e.value === void 0)) && !(i && c);
3999
+ r = i ? !0 : r;
4023
4000
  let d = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (C) => {
4024
4001
  e.onValue({ value: C.target.innerText, name: e.name });
4025
4002
  }, m = (C) => {
4026
4003
  C.preventDefault(), navigator.clipboard.readText().then((w) => {
4027
4004
  window.document.execCommand("insertText", !1, w);
4028
4005
  }).catch((w) => {
4029
- console.log("Something went wrong", w);
4030
4006
  });
4031
4007
  }, h = (C) => {
4032
- i || r(!s);
4008
+ i || s(!r);
4033
4009
  };
4034
- const x = {};
4035
- x.field = "notes", e.className && (x.className = e.className);
4036
- const p = {};
4037
- return d && (p.placeholder = d), _ ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...x, children: [
4010
+ const g = {};
4011
+ g.field = "notes", e.className && (g.className = e.className);
4012
+ const v = {};
4013
+ return d && (v.placeholder = d), _ ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...g, children: [
4038
4014
  t(),
4039
4015
  /* @__PURE__ */ a.jsx(
4040
4016
  "dd",
@@ -4043,8 +4019,8 @@ function Bn(e) {
4043
4019
  onInput: u,
4044
4020
  contentEditable: i && c ? "plaintext-only" : "false",
4045
4021
  "data-edit": (i && c) + "",
4046
- "data-open": "" + s,
4047
- ...p,
4022
+ "data-open": "" + r,
4023
+ ...v,
4048
4024
  onDoubleClick: h,
4049
4025
  suppressContentEditableWarning: !0,
4050
4026
  children: e.value
@@ -4057,8 +4033,8 @@ function Tt({
4057
4033
  onValue: e,
4058
4034
  active: t,
4059
4035
  max: n,
4060
- edit: s,
4061
- title: r,
4036
+ edit: r,
4037
+ title: s,
4062
4038
  error: i,
4063
4039
  show: c,
4064
4040
  hide: l,
@@ -4067,41 +4043,40 @@ function Tt({
4067
4043
  className: u,
4068
4044
  name: m,
4069
4045
  after: h,
4070
- view: x
4046
+ view: g
4071
4047
  }) {
4072
- let p = () => r ? /* @__PURE__ */ a.jsx("dt", { children: r }) : "", C = () => i ? /* @__PURE__ */ a.jsx("em", { children: i }) : "";
4073
- s = s !== void 0 ? s : !0, t = t !== void 0 ? t : !0, l = !!(l && (_ === "" || _ === void 0)) && !(s && t), d = d !== void 0 ? d : "", n = n !== void 0 ? n : 99;
4074
- let y = !1, b = (B) => {
4075
- e && e({ value: B.target.textContent, name: m });
4076
- }, R = (B) => {
4077
- if (!(y && B.which === 86)) {
4078
- if (B.which === 17 || B.which === 91)
4079
- return y = !0;
4080
- B.key !== "Backspace" && (B.target.textContent.length === n && B.preventDefault(), B.key === "Enter" && B.preventDefault(), isNaN(parseInt(String.fromCharCode(B.which))) && B.preventDefault());
4048
+ let v = () => s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "", C = () => i ? /* @__PURE__ */ a.jsx("em", { children: i }) : "";
4049
+ r = r !== void 0 ? r : !0, t = t !== void 0 ? t : !0, l = !!(l && (_ === "" || _ === void 0)) && !(r && t), d = d !== void 0 ? d : "", n = n !== void 0 ? n : 99;
4050
+ let k = !1, b = (P) => {
4051
+ e && e({ value: P.target.textContent, name: m });
4052
+ }, R = (P) => {
4053
+ if (!(k && P.which === 86)) {
4054
+ if (P.which === 17 || P.which === 91)
4055
+ return k = !0;
4056
+ P.key !== "Backspace" && (P.target.textContent.length === n && P.preventDefault(), P.key === "Enter" && P.preventDefault(), isNaN(parseInt(String.fromCharCode(P.which))) && P.preventDefault());
4081
4057
  }
4082
- }, N = (B) => {
4083
- if (B.which === 17 || B.which === 91)
4084
- return y = !1;
4085
- }, j = (B) => {
4086
- B.preventDefault(), navigator.clipboard.readText().then((Y) => {
4087
- Y = Y.replace(/\D/g, ""), console.log(Y), window.document.execCommand(
4058
+ }, N = (P) => {
4059
+ if (P.which === 17 || P.which === 91)
4060
+ return k = !1;
4061
+ }, j = (P) => {
4062
+ P.preventDefault(), navigator.clipboard.readText().then((H) => {
4063
+ H = H.replace(/\D/g, ""), window.document.execCommand(
4088
4064
  "insertText",
4089
4065
  !1,
4090
- "" + Y.replace(/\D/g, "")
4066
+ "" + H.replace(/\D/g, "")
4091
4067
  );
4092
- }).catch((Y) => {
4093
- console.log("Something went wrong", Y);
4068
+ }).catch((H) => {
4094
4069
  });
4095
4070
  };
4096
4071
  const F = {};
4097
4072
  F.field = "input", u && (F.className = u);
4098
- let P = {};
4099
- return s && t ? (P.edit = "true", P.contentEditable = "plaintext-only") : P.contentEditable = "false", d && (P.placeholder = d), h && (P.after = h), l ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...F, children: [
4100
- p(),
4073
+ let $ = {};
4074
+ return r && t ? ($.edit = "true", $.contentEditable = "plaintext-only") : $.contentEditable = "false", d && ($.placeholder = d), h && ($.after = h), l ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...F, children: [
4075
+ v(),
4101
4076
  /* @__PURE__ */ a.jsx(
4102
4077
  "dd",
4103
4078
  {
4104
- ...P,
4079
+ ...$,
4105
4080
  onPaste: j,
4106
4081
  onInput: b,
4107
4082
  onKeyDown: R,
@@ -4117,8 +4092,8 @@ function On({
4117
4092
  value: e,
4118
4093
  onValue: t,
4119
4094
  name: n,
4120
- placeholder: s = "",
4121
- className: r,
4095
+ placeholder: r = "",
4096
+ className: s,
4122
4097
  title: i,
4123
4098
  error: c,
4124
4099
  edit: l = !0,
@@ -4134,29 +4109,28 @@ function On({
4134
4109
  });
4135
4110
  }, h = (w) => {
4136
4111
  w.key === "Enter" && w.preventDefault();
4137
- }, x = (w) => {
4138
- w.preventDefault(), navigator.clipboard.readText().then((y) => {
4112
+ }, g = (w) => {
4113
+ w.preventDefault(), navigator.clipboard.readText().then((k) => {
4139
4114
  window.document.execCommand(
4140
4115
  "insertText",
4141
4116
  !1,
4142
- y.replace(/(\r\n|\n|\r)/gm, " ")
4117
+ k.replace(/(\r\n|\n|\r)/gm, " ")
4143
4118
  );
4144
- }).catch((y) => {
4145
- console.log("Something went wrong", y);
4119
+ }).catch((k) => {
4146
4120
  });
4147
4121
  };
4148
- const p = {};
4149
- p.field = "password", r && (p.className = r);
4122
+ const v = {};
4123
+ v.field = "password", s && (v.className = s);
4150
4124
  const C = {};
4151
- return s && (C.placeholder = s), /* @__PURE__ */ a.jsxs("dl", { ...p, children: [
4125
+ return r && (C.placeholder = r), /* @__PURE__ */ a.jsxs("dl", { ...v, children: [
4152
4126
  i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : "",
4153
4127
  /* @__PURE__ */ a.jsx(
4154
4128
  "dd",
4155
4129
  {
4156
- onPaste: x,
4130
+ onPaste: g,
4157
4131
  onInput: m,
4158
4132
  onKeyDown: h,
4159
- onBlur: pe.Blur,
4133
+ onBlur: ve.Blur,
4160
4134
  contentEditable: l && _ ? "plaintext-only" : "false",
4161
4135
  ...C,
4162
4136
  suppressContentEditableWarning: !0,
@@ -5552,8 +5526,8 @@ function It({
5552
5526
  value: e,
5553
5527
  onValue: t,
5554
5528
  name: n,
5555
- placeholder: s = "",
5556
- title: r = "",
5529
+ placeholder: r = "",
5530
+ title: s = "",
5557
5531
  error: i = "",
5558
5532
  hide: c = !1,
5559
5533
  edit: l = !0,
@@ -5563,60 +5537,58 @@ function It({
5563
5537
  view: m,
5564
5538
  className: h = ""
5565
5539
  }) {
5566
- l = l !== void 0 ? l : !0, _ = _ !== void 0 ? _ : !0, c = !!(c && (e === "" || e === void 0)) && !(l && _), g.useRef(null);
5567
- let p = "+_(___) ___-__-__", C = !0, w = 0, y = (V, $) => {
5568
- let ae = document.createRange(), W = window.getSelection();
5569
- ae.setStart($.childNodes[0], V), ae.collapse(!0), W.removeAllRanges(), W.addRange(ae), $.focus();
5540
+ l = l !== void 0 ? l : !0, _ = _ !== void 0 ? _ : !0, c = !!(c && (e === "" || e === void 0)) && !(l && _), x.useRef(null);
5541
+ let v = "+_(___) ___-__-__", C = !0, w = 0, k = (V, B) => {
5542
+ let ae = document.createRange(), K = window.getSelection();
5543
+ ae.setStart(B.childNodes[0], V), ae.collapse(!0), K.removeAllRanges(), K.addRange(ae), B.focus();
5570
5544
  }, b = (V) => {
5571
- V.preventDefault(), navigator.clipboard.readText().then(($) => {
5572
- window.document.execCommand("insertText", !1, $);
5573
- }).catch(($) => {
5574
- console.log("Something went wrong", $);
5545
+ V.preventDefault(), navigator.clipboard.readText().then((B) => {
5546
+ window.document.execCommand("insertText", !1, B);
5547
+ }).catch((B) => {
5575
5548
  });
5576
5549
  }, R = (V) => {
5577
- let $ = 0, ae = "", W = V.replace(/\D/g, "");
5578
- W === "" && (C = !0);
5579
- let le = W.split(""), q = "";
5550
+ let B = 0, ae = "", K = V.replace(/\D/g, "");
5551
+ K === "" && (C = !0);
5552
+ let le = K.split(""), q = "";
5580
5553
  le.forEach((Ze) => {
5581
- C && (q += Ze, ct[q] !== void 0 && C ? (C = !1, p = ct[q].mask.replace(new RegExp("[0-9]", "g"), "_"), ae = ct[q].code) : (C && (w = ("" + q).length, p = `+${q}_(___) ___-__-__`.replace(
5554
+ C && (q += Ze, ct[q] !== void 0 && C ? (C = !1, v = ct[q].mask.replace(new RegExp("[0-9]", "g"), "_"), ae = ct[q].code) : (C && (w = ("" + q).length, v = `+${q}_(___) ___-__-__`.replace(
5582
5555
  new RegExp("[0-9]", "g"),
5583
5556
  "_"
5584
- ), ae = ""), w > ("" + q).length && (C = !0, p = `+${q}_(___) ___-__-__`.replace(
5557
+ ), ae = ""), w > ("" + q).length && (C = !0, v = `+${q}_(___) ___-__-__`.replace(
5585
5558
  new RegExp("[0-9]", "g"),
5586
5559
  "_"
5587
5560
  ), ae = "")));
5588
5561
  });
5589
- let Ee = p.replace(/\D/g, "");
5590
- return Ee.length >= W.length && (W = Ee), { q: p.replace(/[_\d]/g, function() {
5591
- return W.charAt($++) || "_";
5592
- }), i: $, v: W, f: ae };
5562
+ let Ee = v.replace(/\D/g, "");
5563
+ return Ee.length >= K.length && (K = Ee), { q: v.replace(/[_\d]/g, function() {
5564
+ return K.charAt(B++) || "_";
5565
+ }), i: B, v: K, f: ae };
5593
5566
  }, N = (V) => {
5594
5567
  V.preventDefault(), navigator.clipboard.writeText(V.target.textContent.replace(/\D/g, "")).then(
5595
5568
  function() {
5596
5569
  Le.Copy("Данные в буфер обмене");
5597
5570
  },
5598
- function($) {
5599
- console.error("Async: Could not copy text: ", $);
5571
+ function(B) {
5600
5572
  }
5601
5573
  );
5602
5574
  }, j = R(e), F = (V) => {
5603
- let $ = R(V.target.textContent);
5604
- V.target.textContent = $.q, $.i = $.q.lastIndexOf($.v.substr(-1)), $.i < $.q.length && $.q !== p ? $.i++ : $.i = $.q.indexOf("_"), y($.i, V.target), t && t({ value: $.q.replace(/\D/g, ""), name: n });
5605
- }, P = (V) => {
5575
+ let B = R(V.target.textContent);
5576
+ V.target.textContent = B.q, B.i = B.q.lastIndexOf(B.v.substr(-1)), B.i < B.q.length && B.q !== v ? B.i++ : B.i = B.q.indexOf("_"), k(B.i, V.target), t && t({ value: B.q.replace(/\D/g, ""), name: n });
5577
+ }, $ = (V) => {
5606
5578
  V.key === "Enter" && V.preventDefault();
5607
5579
  };
5608
- const B = {};
5609
- B.field = "input", h && (B.className = h);
5610
- let Y = {};
5611
- return l && _ ? (Y.edit = "true", Y.contentEditable = "plaintext-only") : Y.contentEditable = "false", s && (Y.placeholder = s), d && (Y.after = d), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...B, children: [
5612
- r && /* @__PURE__ */ a.jsx("dt", { children: r }),
5580
+ const P = {};
5581
+ P.field = "input", h && (P.className = h);
5582
+ let H = {};
5583
+ return l && _ ? (H.edit = "true", H.contentEditable = "plaintext-only") : H.contentEditable = "false", r && (H.placeholder = r), d && (H.after = d), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...P, children: [
5584
+ s && /* @__PURE__ */ a.jsx("dt", { children: s }),
5613
5585
  /* @__PURE__ */ a.jsx(
5614
5586
  "dd",
5615
5587
  {
5616
- ...Y,
5588
+ ...H,
5617
5589
  onPaste: b,
5618
5590
  onInput: F,
5619
- onKeyDown: P,
5591
+ onKeyDown: $,
5620
5592
  onContextMenu: N,
5621
5593
  suppressContentEditableWarning: !0,
5622
5594
  children: j.q
@@ -5626,19 +5598,19 @@ function It({
5626
5598
  ] });
5627
5599
  }
5628
5600
  const An = (e) => {
5629
- let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, r = e.placeholder !== void 0 ? e.placeholder : "", i = 0, c = () => {
5630
- clearTimeout(i), i = setTimeout(() => console.log("rerrwere"), 1e3);
5601
+ let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, s = e.placeholder !== void 0 ? e.placeholder : "", i = 0, c = () => {
5602
+ clearTimeout(i), i = setTimeout(() => {
5603
+ }, 1e3);
5631
5604
  }, l = (u) => {
5632
5605
  u.key === "Enter" && u.preventDefault();
5633
5606
  }, _ = (u) => {
5634
5607
  u.preventDefault(), navigator.clipboard.readText().then((m) => {
5635
5608
  window.document.execCommand("insertText", !1, m);
5636
5609
  }).catch((m) => {
5637
- console.log("Something went wrong", m);
5638
5610
  });
5639
5611
  };
5640
5612
  const d = {};
5641
- return r && (d.placeholder = r), /* @__PURE__ */ a.jsxs(
5613
+ return s && (d.placeholder = s), /* @__PURE__ */ a.jsxs(
5642
5614
  "dl",
5643
5615
  {
5644
5616
  "data-form": "input",
@@ -5650,7 +5622,7 @@ const An = (e) => {
5650
5622
  onPaste: _,
5651
5623
  onInput: c,
5652
5624
  onKeyDown: l,
5653
- contentEditable: n && s ? "plaintext-only" : "false",
5625
+ contentEditable: n && r ? "plaintext-only" : "false",
5654
5626
  ...d,
5655
5627
  suppressContentEditableWarning: !0,
5656
5628
  children: e.value
@@ -5664,8 +5636,8 @@ function Dt({
5664
5636
  title: e,
5665
5637
  error: t,
5666
5638
  edit: n = !0,
5667
- active: s = !0,
5668
- hide: r,
5639
+ active: r = !0,
5640
+ hide: s,
5669
5641
  value: i = "0",
5670
5642
  onValue: c,
5671
5643
  options: l,
@@ -5674,12 +5646,12 @@ function Dt({
5674
5646
  after: u,
5675
5647
  view: m
5676
5648
  }) {
5677
- const h = g.useRef();
5678
- r = !!(r && (i === "" || l[i].n === void 0)) && !(n && s);
5679
- let p = i !== void 0 && i !== "" ? l[i].n : i, C = (R) => {
5649
+ const h = x.useRef();
5650
+ s = !!(s && (i === "" || l[i].n === void 0)) && !(n && r);
5651
+ let v = i !== void 0 && i !== "" ? l[i].n : i, C = (R) => {
5680
5652
  h.current.textContent = l[R].n, c && c({ value: R, name: d });
5681
5653
  }, w = (R) => {
5682
- if (!(n && s))
5654
+ if (!(n && r))
5683
5655
  return;
5684
5656
  const N = R.target.getBoundingClientRect();
5685
5657
  we.setListener(
@@ -5695,20 +5667,20 @@ function Dt({
5695
5667
  (/* @__PURE__ */ new Date()).getTime()
5696
5668
  )
5697
5669
  );
5698
- }, y = { field: "select" }, b = { onClick: w };
5699
- return n && s && (b.edit = "true"), _ && (b.placeholder = _), u && (b.after = u), r ? "" : /* @__PURE__ */ a.jsxs("dl", { ...y, children: [
5670
+ }, k = { field: "select" }, b = { onClick: w };
5671
+ return n && r && (b.edit = "true"), _ && (b.placeholder = _), u && (b.after = u), s ? "" : /* @__PURE__ */ a.jsxs("dl", { ...k, children: [
5700
5672
  e && /* @__PURE__ */ a.jsx("dt", { children: e }),
5701
- /* @__PURE__ */ a.jsx("dd", { ...b, ref: h, children: p }),
5673
+ /* @__PURE__ */ a.jsx("dd", { ...b, ref: h, children: v }),
5702
5674
  t && /* @__PURE__ */ a.jsx("em", { children: t })
5703
5675
  ] });
5704
5676
  }
5705
- const Yo = ({ onValue: e, parent: t, view: n, options: s }) => {
5706
- let [r, i] = g.useState(!0), c = () => {
5677
+ const Yo = ({ onValue: e, parent: t, view: n, options: r }) => {
5678
+ let [s, i] = x.useState(!0), c = () => {
5707
5679
  i(!1);
5708
5680
  }, l = (u) => {
5709
5681
  i(!1), e(u);
5710
5682
  }, _ = window.innerHeight - t.y + t.height < 320 ? t.y - 312 : t.y + 33, d = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
5711
- return /* @__PURE__ */ a.jsx(a.Fragment, { children: r ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
5683
+ return /* @__PURE__ */ a.jsx(a.Fragment, { children: s ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
5712
5684
  /* @__PURE__ */ a.jsx(
5713
5685
  "div",
5714
5686
  {
@@ -5726,14 +5698,14 @@ const Yo = ({ onValue: e, parent: t, view: n, options: s }) => {
5726
5698
  left: d + "px",
5727
5699
  width: t.width
5728
5700
  },
5729
- children: /* @__PURE__ */ a.jsx("ul", { children: Object.keys(s).map(
5730
- (u, m) => s[u].s === 1 ? /* @__PURE__ */ a.jsx(
5701
+ children: /* @__PURE__ */ a.jsx("ul", { children: Object.keys(r).map(
5702
+ (u, m) => r[u].s === 1 ? /* @__PURE__ */ a.jsx(
5731
5703
  "li",
5732
5704
  {
5733
5705
  onClick: () => {
5734
5706
  l(u);
5735
5707
  },
5736
- children: s[u].n
5708
+ children: r[u].n
5737
5709
  },
5738
5710
  m
5739
5711
  ) : ""
@@ -5743,20 +5715,20 @@ const Yo = ({ onValue: e, parent: t, view: n, options: s }) => {
5743
5715
  ] }) : "" });
5744
5716
  };
5745
5717
  function Mt(e) {
5746
- let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", s = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, c = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(s && r), l = e.placeholder !== void 0 ? e.placeholder : "", _ = (x) => {
5747
- u(e.options[x]), e.onValue({ value: x, name: e.name });
5748
- }, [d, u] = g.useState(
5718
+ let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, c = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(r && s), l = e.placeholder !== void 0 ? e.placeholder : "", _ = (g) => {
5719
+ u(e.options[g]), e.onValue({ value: g, name: e.name });
5720
+ }, [d, u] = x.useState(
5749
5721
  e.default !== void 0 ? e.options[e.default] : e.default
5750
- ), m = (x) => {
5751
- if (!(s && r))
5722
+ ), m = (g) => {
5723
+ if (!(r && s))
5752
5724
  return;
5753
- const p = x.target.getBoundingClientRect();
5725
+ const v = g.target.getBoundingClientRect();
5754
5726
  we.setListener(
5755
5727
  "form",
5756
5728
  /* @__PURE__ */ a.jsx(
5757
5729
  Ho,
5758
5730
  {
5759
- parent: p,
5731
+ parent: v,
5760
5732
  onValue: _,
5761
5733
  view: e.view,
5762
5734
  options: e.options
@@ -5776,7 +5748,7 @@ function Mt(e) {
5776
5748
  "dd",
5777
5749
  {
5778
5750
  onClick: m,
5779
- "data-edit": (s && r) + "",
5751
+ "data-edit": (r && s) + "",
5780
5752
  ...h,
5781
5753
  children: d
5782
5754
  }
@@ -5786,13 +5758,13 @@ function Mt(e) {
5786
5758
  }
5787
5759
  );
5788
5760
  }
5789
- const Ho = ({ onValue: e, parent: t, view: n, options: s }) => {
5790
- let [r, i] = g.useState(!0), c = () => {
5761
+ const Ho = ({ onValue: e, parent: t, view: n, options: r }) => {
5762
+ let [s, i] = x.useState(!0), c = () => {
5791
5763
  i(!1);
5792
5764
  }, l = (m) => {
5793
5765
  i(!1), e(m);
5794
- }, _ = Object.keys(s).length * 36, d = window.innerHeight - t.y + t.height < _ ? t.y - (_ - 33) : t.y + 33, u = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
5795
- return /* @__PURE__ */ a.jsx(a.Fragment, { children: r ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
5766
+ }, _ = Object.keys(r).length * 36, d = window.innerHeight - t.y + t.height < _ ? t.y - (_ - 33) : t.y + 33, u = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
5767
+ return /* @__PURE__ */ a.jsx(a.Fragment, { children: s ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
5796
5768
  /* @__PURE__ */ a.jsx(
5797
5769
  "div",
5798
5770
  {
@@ -5810,13 +5782,13 @@ const Ho = ({ onValue: e, parent: t, view: n, options: s }) => {
5810
5782
  left: u + "px",
5811
5783
  width: t.width
5812
5784
  },
5813
- children: /* @__PURE__ */ a.jsx("ul", { children: Object.keys(s).map((m, h) => /* @__PURE__ */ a.jsx(
5785
+ children: /* @__PURE__ */ a.jsx("ul", { children: Object.keys(r).map((m, h) => /* @__PURE__ */ a.jsx(
5814
5786
  "li",
5815
5787
  {
5816
5788
  onClick: () => {
5817
5789
  l(m);
5818
5790
  },
5819
- children: s[m]
5791
+ children: r[m]
5820
5792
  },
5821
5793
  h
5822
5794
  )) })
@@ -5824,12 +5796,12 @@ const Ho = ({ onValue: e, parent: t, view: n, options: s }) => {
5824
5796
  )
5825
5797
  ] }) : "" });
5826
5798
  };
5827
- function vt({
5799
+ function pt({
5828
5800
  set: e,
5829
5801
  value: t,
5830
5802
  onValue: n,
5831
- name: s,
5832
- placeholder: r = "",
5803
+ name: r,
5804
+ placeholder: s = "",
5833
5805
  title: i = "",
5834
5806
  error: c = "",
5835
5807
  hide: l = !1,
@@ -5838,8 +5810,8 @@ function vt({
5838
5810
  active: u = !0,
5839
5811
  after: m = "",
5840
5812
  view: h,
5841
- module: x,
5842
- item: p,
5813
+ module: g,
5814
+ item: v,
5843
5815
  className: C = ""
5844
5816
  }) {
5845
5817
  let w = {};
@@ -5856,13 +5828,13 @@ function vt({
5856
5828
  active: u,
5857
5829
  value: t,
5858
5830
  onValue: n,
5859
- name: s,
5860
- placeholder: r,
5831
+ name: r,
5832
+ placeholder: s,
5861
5833
  className: C
5862
5834
  }
5863
5835
  );
5864
5836
  case "Select":
5865
- return p && (w = re.getSelect(parseInt(p)) ? re.getSelect(parseInt(p)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ a.jsx(
5837
+ return v && (w = se.getSelect(parseInt(v)) ? se.getSelect(parseInt(v)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ a.jsx(
5866
5838
  Dt,
5867
5839
  {
5868
5840
  title: i,
@@ -5873,14 +5845,14 @@ function vt({
5873
5845
  active: u,
5874
5846
  value: t,
5875
5847
  onValue: n,
5876
- name: s,
5877
- placeholder: r,
5848
+ name: r,
5849
+ placeholder: s,
5878
5850
  className: C,
5879
5851
  options: w
5880
5852
  }
5881
5853
  );
5882
5854
  case "Users":
5883
- return re.getSelect("user"), /* @__PURE__ */ a.jsx(
5855
+ return se.getSelect("user"), /* @__PURE__ */ a.jsx(
5884
5856
  Mt,
5885
5857
  {
5886
5858
  title: i,
@@ -5891,8 +5863,8 @@ function vt({
5891
5863
  active: u,
5892
5864
  value: t,
5893
5865
  onValue: n,
5894
- name: s,
5895
- placeholder: r,
5866
+ name: r,
5867
+ placeholder: s,
5896
5868
  className: C,
5897
5869
  options: w
5898
5870
  }
@@ -5909,8 +5881,8 @@ function vt({
5909
5881
  active: u,
5910
5882
  value: t,
5911
5883
  onValue: n,
5912
- name: s,
5913
- placeholder: r,
5884
+ name: r,
5885
+ placeholder: s,
5914
5886
  className: C
5915
5887
  }
5916
5888
  );
@@ -5926,8 +5898,8 @@ function vt({
5926
5898
  active: u,
5927
5899
  value: t,
5928
5900
  onValue: n,
5929
- name: s,
5930
- placeholder: r,
5901
+ name: r,
5902
+ placeholder: s,
5931
5903
  className: C
5932
5904
  }
5933
5905
  );
@@ -5943,8 +5915,8 @@ function vt({
5943
5915
  active: u,
5944
5916
  value: t,
5945
5917
  onValue: n,
5946
- name: s,
5947
- placeholder: r,
5918
+ name: r,
5919
+ placeholder: s,
5948
5920
  className: C
5949
5921
  }
5950
5922
  );
@@ -5960,8 +5932,8 @@ function vt({
5960
5932
  active: u,
5961
5933
  value: t,
5962
5934
  onValue: n,
5963
- name: s,
5964
- placeholder: r,
5935
+ name: r,
5936
+ placeholder: s,
5965
5937
  className: C
5966
5938
  }
5967
5939
  );
@@ -5977,23 +5949,22 @@ function vt({
5977
5949
  active: u,
5978
5950
  value: t,
5979
5951
  onValue: n,
5980
- name: s || "",
5981
- placeholder: r,
5952
+ name: r || "",
5953
+ placeholder: s,
5982
5954
  className: C,
5983
5955
  options: w,
5984
- module: x || ""
5956
+ module: g || ""
5985
5957
  }
5986
5958
  );
5987
5959
  }
5988
5960
  }
5989
5961
  function Zn(e) {
5990
- let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", s = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", c = (d) => {
5962
+ let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", c = (d) => {
5991
5963
  e.onValue({ value: d.target.innerText, name: e.name });
5992
5964
  }, l = (d) => {
5993
5965
  d.preventDefault(), navigator.clipboard.readText().then((u) => {
5994
5966
  window.document.execCommand("insertText", !1, u);
5995
5967
  }).catch((u) => {
5996
- console.log("Something went wrong", u);
5997
5968
  });
5998
5969
  };
5999
5970
  const _ = {};
@@ -6009,7 +5980,7 @@ function Zn(e) {
6009
5980
  className: e.className,
6010
5981
  ref: e.useRef,
6011
5982
  onInput: c,
6012
- contentEditable: s && r ? "plaintext-only" : "false",
5983
+ contentEditable: r && s ? "plaintext-only" : "false",
6013
5984
  ..._,
6014
5985
  suppressContentEditableWarning: !0,
6015
5986
  children: e.value
@@ -6023,31 +5994,31 @@ function Zn(e) {
6023
5994
  function zn(e) {
6024
5995
  let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "";
6025
5996
  e.edit !== void 0 && e.edit, e.active !== void 0 && e.active;
6026
- let s = e.placeholder !== void 0 ? e.placeholder : "", r = G.Date(
5997
+ let r = e.placeholder !== void 0 ? e.placeholder : "", s = G.Date(
6027
5998
  e.value === void 0 ? /* @__PURE__ */ new Date() : e.value,
6028
5999
  "HH:MM"
6029
- ), i = g.useRef(null), c = (u) => {
6000
+ ), i = x.useRef(null), c = (u) => {
6030
6001
  i.current.textContent = u, e.onValue && e.onValue({ value: u, name: e.name });
6031
6002
  }, l = (u) => {
6032
6003
  e.onSave && e.onSave({ value: u, name: e.name });
6033
6004
  }, _ = (u) => {
6034
- const m = u.target.getBoundingClientRect(), h = m.left, x = m.top;
6005
+ const m = u.target.getBoundingClientRect(), h = m.left, g = m.top;
6035
6006
  we.setListener(
6036
6007
  "form",
6037
6008
  /* @__PURE__ */ a.jsx(
6038
6009
  qo,
6039
6010
  {
6040
- position: { x: h, y: x },
6011
+ position: { x: h, y: g },
6041
6012
  onSave: l,
6042
6013
  onValue: c,
6043
- date: r
6014
+ date: s
6044
6015
  },
6045
6016
  (/* @__PURE__ */ new Date()).getTime()
6046
6017
  )
6047
6018
  );
6048
6019
  };
6049
6020
  const d = {};
6050
- return s && (d.placeholder = s), /* @__PURE__ */ a.jsx(a.Fragment, { children: e.view === "icon" ? /* @__PURE__ */ a.jsx(
6021
+ return r && (d.placeholder = r), /* @__PURE__ */ a.jsx(a.Fragment, { children: e.view === "icon" ? /* @__PURE__ */ a.jsx(
6051
6022
  "i",
6052
6023
  {
6053
6024
  "data-icon": "F043",
@@ -6064,7 +6035,7 @@ function zn(e) {
6064
6035
  onClick: _,
6065
6036
  ref: i,
6066
6037
  ...d,
6067
- children: r
6038
+ children: s
6068
6039
  }
6069
6040
  ),
6070
6041
  n()
@@ -6076,27 +6047,27 @@ const qo = (e) => {
6076
6047
  let t = e.date.split(":"), n = {
6077
6048
  h: G.Number(2, t[0]),
6078
6049
  m: G.Number(2, t[1])
6079
- }, s = "hour", [r, i] = g.useState({}), c = !1, l = 0, _ = 0, d = {
6080
- body: g.useRef(null),
6081
- time: g.useRef(null),
6082
- hour: g.useRef(null),
6083
- timeText: g.useRef(null),
6084
- hourText: g.useRef(null)
6050
+ }, r = "hour", [s, i] = x.useState({}), c = !1, l = 0, _ = 0, d = {
6051
+ body: x.useRef(null),
6052
+ time: x.useRef(null),
6053
+ hour: x.useRef(null),
6054
+ timeText: x.useRef(null),
6055
+ hourText: x.useRef(null)
6085
6056
  };
6086
- g.useEffect(() => {
6057
+ x.useEffect(() => {
6087
6058
  i(d.body.current.getBoundingClientRect()), d.hour.current.style.transform = "rotate(" + n.h * 15 + "deg)", d.time.current.style.transform = "rotate(" + n.m * 6 + "deg)";
6088
6059
  }, [d.body, d.hour, d.time, n.m, n.h]);
6089
6060
  let u = () => {
6090
6061
  c = !0;
6091
6062
  }, m = () => {
6092
- c = !1, s = s === "hour" ? "time" : "hour", d.body.current.setAttribute("active", s);
6063
+ c = !1, r = r === "hour" ? "time" : "hour", d.body.current.setAttribute("active", r);
6093
6064
  }, h = (R) => {
6094
6065
  if (c) {
6095
6066
  let j = Math.atan2(
6096
- R.pageX - (r.x + 78),
6097
- R.pageY - (r.y + 78)
6067
+ R.pageX - (s.x + 78),
6068
+ R.pageY - (s.y + 78)
6098
6069
  ) * (180 / Math.PI) * -1 + 180;
6099
- d[s].current.style.transform = "rotate(" + j + "deg)", s === "hour" ? (n = {
6070
+ d[r].current.style.transform = "rotate(" + j + "deg)", r === "hour" ? (n = {
6100
6071
  ...n,
6101
6072
  h: G.Number(2, parseInt(String(j / 15), 10))
6102
6073
  }, d.hourText.current.textContent = n.h) : (n = {
@@ -6104,15 +6075,15 @@ const qo = (e) => {
6104
6075
  m: G.Number(2, parseInt(String(j / 6), 10))
6105
6076
  }, d.timeText.current.textContent = n.m), e.onValue(n.h + ":" + n.m);
6106
6077
  }
6107
- }, x = (R) => {
6108
- if (s === "hour")
6078
+ }, g = (R) => {
6079
+ if (r === "hour")
6109
6080
  if (R.deltaY > 0) {
6110
6081
  l += R.deltaY;
6111
6082
  let N = parseInt(String(l / 50));
6112
6083
  if (_ !== N) {
6113
6084
  _ = N;
6114
6085
  let j = parseInt(n.h, 10) + 1;
6115
- j = j > 23 ? 0 : j, n = { ...n, h: G.Number(2, j) }, d.hourText.current.textContent = n.h, d[s].current.style.transform = "rotate(" + n.h * 15 + "deg)";
6086
+ j = j > 23 ? 0 : j, n = { ...n, h: G.Number(2, j) }, d.hourText.current.textContent = n.h, d[r].current.style.transform = "rotate(" + n.h * 15 + "deg)";
6116
6087
  }
6117
6088
  } else {
6118
6089
  l -= R.deltaY;
@@ -6120,7 +6091,7 @@ const qo = (e) => {
6120
6091
  if (_ !== N) {
6121
6092
  _ = N;
6122
6093
  let j = parseInt(n.h, 10) - 1;
6123
- j = j < 0 ? 23 : j, n = { ...n, h: G.Number(2, j) }, d.hourText.current.textContent = n.h, d[s].current.style.transform = "rotate(" + n.h * 15 + "deg)";
6094
+ j = j < 0 ? 23 : j, n = { ...n, h: G.Number(2, j) }, d.hourText.current.textContent = n.h, d[r].current.style.transform = "rotate(" + n.h * 15 + "deg)";
6124
6095
  }
6125
6096
  }
6126
6097
  else if (R.deltaY > 0) {
@@ -6129,7 +6100,7 @@ const qo = (e) => {
6129
6100
  if (_ !== N) {
6130
6101
  _ = N;
6131
6102
  let j = parseInt(n.m, 10) + 1;
6132
- j = j > 59 ? 0 : j, n = { ...n, m: G.Number(2, j) }, d.timeText.current.textContent = n.m, d[s].current.style.transform = "rotate(" + n.m * 6 + "deg)";
6103
+ j = j > 59 ? 0 : j, n = { ...n, m: G.Number(2, j) }, d.timeText.current.textContent = n.m, d[r].current.style.transform = "rotate(" + n.m * 6 + "deg)";
6133
6104
  }
6134
6105
  } else {
6135
6106
  l -= R.deltaY;
@@ -6137,14 +6108,14 @@ const qo = (e) => {
6137
6108
  if (_ !== N) {
6138
6109
  _ = N;
6139
6110
  let j = parseInt(n.m, 10) - 1;
6140
- j = j < 0 ? 59 : j, n = { ...n, m: G.Number(2, j) }, d.timeText.current.textContent = n.m, d[s].current.style.transform = "rotate(" + n.m * 6 + "deg)";
6111
+ j = j < 0 ? 59 : j, n = { ...n, m: G.Number(2, j) }, d.timeText.current.textContent = n.m, d[r].current.style.transform = "rotate(" + n.m * 6 + "deg)";
6141
6112
  }
6142
6113
  }
6143
6114
  e.onValue(n.h + ":" + n.m);
6144
- }, [p, C] = g.useState(!0), w = () => {
6115
+ }, [v, C] = x.useState(!0), w = () => {
6145
6116
  C(!1), e.onSave(n.h + ":" + n.m);
6146
- }, y = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, b = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
6147
- return /* @__PURE__ */ a.jsx(a.Fragment, { children: p ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6117
+ }, k = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, b = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
6118
+ return /* @__PURE__ */ a.jsx(a.Fragment, { children: v ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6148
6119
  /* @__PURE__ */ a.jsx(
6149
6120
  "div",
6150
6121
  {
@@ -6160,9 +6131,9 @@ const qo = (e) => {
6160
6131
  onMouseDown: u,
6161
6132
  onMouseUp: m,
6162
6133
  onMouseMove: h,
6163
- onWheel: x,
6134
+ onWheel: g,
6164
6135
  ref: d.body,
6165
- style: { top: y + "px", left: b + "px" },
6136
+ style: { top: k + "px", left: b + "px" },
6166
6137
  children: "xxxx"
6167
6138
  }
6168
6139
  )
@@ -6172,16 +6143,16 @@ function Gn({
6172
6143
  onValue: e,
6173
6144
  label: t,
6174
6145
  value: n,
6175
- className: s,
6176
- name: r,
6146
+ className: r,
6147
+ name: s,
6177
6148
  reload: i
6178
6149
  }) {
6179
6150
  n = !!n;
6180
- const [c, l] = g.useState(n), _ = () => {
6151
+ const [c, l] = x.useState(n), _ = () => {
6181
6152
  let m = !c;
6182
- console.log(m), e({ name: r, value: m, reload: i }), l(m);
6153
+ e({ name: s, value: m, reload: i }), l(m);
6183
6154
  }, d = {};
6184
- d.field = "check", s && (d.className = s);
6155
+ d.field = "check", r && (d.className = r);
6185
6156
  const u = {};
6186
6157
  return c && (u.active = ""), /* @__PURE__ */ a.jsxs("dl", { ...d, children: [
6187
6158
  t ? /* @__PURE__ */ a.jsx("dt", { children: t }) : "",
@@ -6190,12 +6161,12 @@ function Gn({
6190
6161
  }
6191
6162
  const be = {};
6192
6163
  function Jo(e) {
6193
- const [t, n] = g.useState({}), s = g.useRef(e);
6194
- return be.u = (r) => {
6195
- s.current = { ...s.current, [r.name]: r.value };
6164
+ const [t, n] = x.useState({}), r = x.useRef(e);
6165
+ return be.u = (s) => {
6166
+ r.current = { ...r.current, [s.name]: s.value };
6196
6167
  }, be.r = () => {
6197
6168
  n(Date.now());
6198
- }, s.current;
6169
+ }, r.current;
6199
6170
  }
6200
6171
  function Xo(e) {
6201
6172
  be.u(e), e.reload && be.r();
@@ -6223,12 +6194,12 @@ const zl = {
6223
6194
  Phone: It,
6224
6195
  Search: An,
6225
6196
  Select: Dt,
6226
- Set: vt,
6197
+ Set: pt,
6227
6198
  Textarea: Zn,
6228
6199
  Time: zn,
6229
6200
  Users: Mt,
6230
6201
  String: $e,
6231
- Form: vt,
6202
+ Form: pt,
6232
6203
  runReload: Qo,
6233
6204
  useData: Jo,
6234
6205
  setValue: Xo
@@ -6252,18 +6223,18 @@ const zl = {
6252
6223
  Phone: It,
6253
6224
  Search: An,
6254
6225
  Select: Dt,
6255
- Set: vt,
6226
+ Set: pt,
6256
6227
  Textarea: Zn,
6257
6228
  Time: zn,
6258
6229
  Users: Mt,
6259
6230
  String: $e
6260
- }, el = "_spinner_1ul0m_1", tl = "_l_1ul0m_75", nl = "_loadingB_1ul0m_1", Wn = {
6231
+ }, el = "_spinner_1ul0m_1", tl = "_l_1ul0m_75", nl = "_loadingB_1ul0m_1", Kn = {
6261
6232
  spinner: el,
6262
6233
  l: tl,
6263
6234
  loadingB: nl
6264
6235
  };
6265
6236
  function al() {
6266
- return /* @__PURE__ */ a.jsx("div", { className: Wn.spinner, children: /* @__PURE__ */ a.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ a.jsx(
6237
+ return /* @__PURE__ */ a.jsx("div", { className: Kn.spinner, children: /* @__PURE__ */ a.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ a.jsx(
6267
6238
  "path",
6268
6239
  {
6269
6240
  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",
@@ -6271,31 +6242,30 @@ function al() {
6271
6242
  }
6272
6243
  ) }) });
6273
6244
  }
6274
- function sl() {
6275
- return /* @__PURE__ */ a.jsxs("div", { className: Wn.l, children: [
6245
+ function rl() {
6246
+ return /* @__PURE__ */ a.jsxs("div", { className: Kn.l, children: [
6276
6247
  /* @__PURE__ */ a.jsx("i", {}),
6277
6248
  /* @__PURE__ */ a.jsx("i", {}),
6278
6249
  /* @__PURE__ */ a.jsx("i", {})
6279
6250
  ] });
6280
6251
  }
6281
- const Wl = { Spinner: al, Inline: sl }, rl = "_s_t9swc_1", il = {
6282
- s: rl
6252
+ const Kl = { Spinner: al, Inline: rl }, sl = "_s_t9swc_1", il = {
6253
+ s: sl
6283
6254
  };
6284
6255
  let Ft;
6285
6256
  function ol() {
6286
- let e = (r) => {
6287
- Ft(r.target.textContent);
6288
- }, t = (r) => {
6289
- r.key === "Enter" && r.preventDefault();
6290
- }, n = (r) => {
6291
- r.preventDefault(), navigator.clipboard.readText().then((i) => {
6257
+ let e = (s) => {
6258
+ Ft(s.target.textContent);
6259
+ }, t = (s) => {
6260
+ s.key === "Enter" && s.preventDefault();
6261
+ }, n = (s) => {
6262
+ s.preventDefault(), navigator.clipboard.readText().then((i) => {
6292
6263
  window.document.execCommand("insertText", !1, i);
6293
6264
  }).catch((i) => {
6294
- console.log("Something went wrong", i);
6295
6265
  });
6296
6266
  };
6297
- const s = {};
6298
- return s.placeholder = "Что искать?", /* @__PURE__ */ a.jsx(
6267
+ const r = {};
6268
+ return r.placeholder = "Что искать?", /* @__PURE__ */ a.jsx(
6299
6269
  "div",
6300
6270
  {
6301
6271
  className: il.s,
@@ -6303,17 +6273,17 @@ function ol() {
6303
6273
  onInput: e,
6304
6274
  onKeyDown: t,
6305
6275
  contentEditable: "true",
6306
- ...s,
6276
+ ...r,
6307
6277
  suppressContentEditableWarning: !0
6308
6278
  }
6309
6279
  );
6310
6280
  }
6311
6281
  function ll(e, t, n) {
6312
- let s = [], r = 1, i = 0, c = {}, l = 50;
6313
- return c[r] = [], e.forEach((_) => {
6314
- _.text.toLowerCase().indexOf(t) > -1 && s.push(_.id);
6315
- }), s.forEach((_) => {
6316
- i++, i <= l || (r++, i = 1, c[r] = []), c[r].push(n[_]);
6282
+ let r = [], s = 1, i = 0, c = {}, l = 50;
6283
+ return c[s] = [], e.forEach((_) => {
6284
+ _.text.toLowerCase().indexOf(t) > -1 && r.push(_.id);
6285
+ }), r.forEach((_) => {
6286
+ i++, i <= l || (s++, i = 1, c[s] = []), c[s].push(n[_]);
6317
6287
  }), c;
6318
6288
  }
6319
6289
  function cl(e) {
@@ -6322,7 +6292,7 @@ function cl(e) {
6322
6292
  function dl(e) {
6323
6293
  Ft = e;
6324
6294
  }
6325
- const Kl = { Field: ol, Run: ll, Get: cl, useValue: dl }, _l = "_f_q3r0i_1", ul = {
6295
+ const Wl = { Field: ol, Run: ll, Get: cl, useValue: dl }, _l = "_f_q3r0i_1", ul = {
6326
6296
  f: _l
6327
6297
  };
6328
6298
  let ne = {};
@@ -6340,8 +6310,8 @@ function ml(e, t) {
6340
6310
  };
6341
6311
  case "data":
6342
6312
  let n = {};
6343
- return Object.keys(t.data).forEach((r) => {
6344
- r !== "sort" && (n[r] = t.data[r], e.take[r] = "999");
6313
+ return Object.keys(t.data).forEach((s) => {
6314
+ s !== "sort" && (n[s] = t.data[s], e.take[s] = "999");
6345
6315
  }), {
6346
6316
  ...e,
6347
6317
  data: n,
@@ -6353,18 +6323,18 @@ function ml(e, t) {
6353
6323
  size: t.size
6354
6324
  };
6355
6325
  case "take":
6356
- let s = { [t.list]: t.take };
6357
- s = { ...e.take, ...s }, e.active = !1;
6358
- for (let r in s)
6359
- s[r] !== "999" && (e.active = !0);
6360
- return ne.get(s, e.active), {
6326
+ let r = { [t.list]: t.take };
6327
+ r = { ...e.take, ...r }, e.active = !1;
6328
+ for (let s in r)
6329
+ r[s] !== "999" && (e.active = !0);
6330
+ return ne.get(r, e.active), {
6361
6331
  ...e,
6362
- take: s,
6332
+ take: r,
6363
6333
  active: e.active
6364
6334
  };
6365
6335
  case "exit":
6366
- for (let r in e.take)
6367
- e.take[r] = "999";
6336
+ for (let s in e.take)
6337
+ e.take[s] = "999";
6368
6338
  return ne.get && ne.get([], !1), {
6369
6339
  ...e,
6370
6340
  size: 0,
@@ -6377,7 +6347,7 @@ function ml(e, t) {
6377
6347
  }
6378
6348
  }
6379
6349
  function fl() {
6380
- const [e, t] = g.useReducer(ml, {
6350
+ const [e, t] = x.useReducer(ml, {
6381
6351
  open: !1,
6382
6352
  view: null,
6383
6353
  data: {},
@@ -6400,7 +6370,7 @@ function fl() {
6400
6370
  t({ type: "open", open: !0 });
6401
6371
  },
6402
6372
  children: [
6403
- /* @__PURE__ */ a.jsx(Zs, {}),
6373
+ /* @__PURE__ */ a.jsx(Zr, {}),
6404
6374
  e.active && /* @__PURE__ */ a.jsxs("i", { children: [
6405
6375
  e.size,
6406
6376
  "1"
@@ -6420,7 +6390,7 @@ function fl() {
6420
6390
  ),
6421
6391
  /* @__PURE__ */ a.jsxs("div", { className: "filter m", children: [
6422
6392
  /* @__PURE__ */ a.jsx("div", { className: "filter l", children: Object.keys(e.data).map((n) => /* @__PURE__ */ a.jsx(
6423
- vl,
6393
+ pl,
6424
6394
  {
6425
6395
  data: n,
6426
6396
  dispatch: t,
@@ -6445,36 +6415,36 @@ function fl() {
6445
6415
  function hl(e) {
6446
6416
  ne.get = e;
6447
6417
  }
6448
- function gl(e) {
6418
+ function xl(e) {
6449
6419
  ne.set !== void 0 && ne.set(e);
6450
6420
  }
6451
- function xl(e) {
6421
+ function gl(e) {
6452
6422
  ne.reset !== void 0 && ne.reset(e);
6453
6423
  }
6454
- function pl(e, t, n, s) {
6455
- let r = [], i = 1, c = 0, l = {}, _ = 50;
6456
- return l[i] = [], s === !0 && (Object.keys(t).forEach((d) => {
6424
+ function vl(e, t, n, r) {
6425
+ let s = [], i = 1, c = 0, l = {}, _ = 50;
6426
+ return l[i] = [], r === !0 && (Object.keys(t).forEach((d) => {
6457
6427
  Number.parseInt(t[d]) !== 999 && (e = e.filter(
6458
6428
  (u) => Number.parseInt(u[d]) === Number.parseInt(t[d])
6459
6429
  ));
6460
- }), Kn(e.length)), e.forEach((d) => {
6461
- r.push(d.id);
6462
- }), r.forEach((d) => {
6430
+ }), Wn(e.length)), e.forEach((d) => {
6431
+ s.push(d.id);
6432
+ }), s.forEach((d) => {
6463
6433
  c++, c <= _ || (i++, c = 1, l[i] = []), l[i].push(n[d]);
6464
6434
  }), l;
6465
6435
  }
6466
- function Kn(e) {
6436
+ function Wn(e) {
6467
6437
  ne.count(e);
6468
6438
  }
6469
- function vl({ data: e, state: t, dispatch: n }) {
6470
- let s = () => {
6439
+ function pl({ data: e, state: t, dispatch: n }) {
6440
+ let r = () => {
6471
6441
  n({ type: "view", view: e });
6472
- }, r = () => {
6442
+ }, s = () => {
6473
6443
  n({ type: "take", list: e, take: "999" });
6474
6444
  };
6475
6445
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6476
6446
  /* @__PURE__ */ a.jsxs("div", { className: "filter s", children: [
6477
- /* @__PURE__ */ a.jsxs("div", { onClick: s, children: [
6447
+ /* @__PURE__ */ a.jsxs("div", { onClick: r, children: [
6478
6448
  " ",
6479
6449
  t.data[e].name,
6480
6450
  " "
@@ -6482,7 +6452,7 @@ function vl({ data: e, state: t, dispatch: n }) {
6482
6452
  t.take[e] !== "999" ? /* @__PURE__ */ a.jsx(
6483
6453
  "div",
6484
6454
  {
6485
- onClick: r,
6455
+ onClick: s,
6486
6456
  className: "filter x",
6487
6457
  "data-icon": "F038"
6488
6458
  }
@@ -6501,18 +6471,18 @@ function vl({ data: e, state: t, dispatch: n }) {
6501
6471
  )) })
6502
6472
  ] });
6503
6473
  }
6504
- function Cl({ data: e, head: t, state: n, dispatch: s, type: r }) {
6505
- if (r !== "999" && e.count === void 0)
6474
+ function Cl({ data: e, head: t, state: n, dispatch: r, type: s }) {
6475
+ if (s !== "999" && e.count === void 0)
6506
6476
  return "";
6507
6477
  const i = () => {
6508
- s({ type: "take", list: t, take: r });
6478
+ r({ type: "take", list: t, take: s });
6509
6479
  };
6510
6480
  return /* @__PURE__ */ a.jsxs(
6511
6481
  "div",
6512
6482
  {
6513
6483
  className: "filter a",
6514
6484
  onClick: i,
6515
- "set-active": (n.take[t] === r) + "",
6485
+ "set-active": (n.take[t] === s) + "",
6516
6486
  children: [
6517
6487
  e.name,
6518
6488
  /* @__PURE__ */ a.jsx("div", { className: "filter e", children: e.count })
@@ -6520,23 +6490,22 @@ function Cl({ data: e, head: t, state: n, dispatch: s, type: r }) {
6520
6490
  }
6521
6491
  );
6522
6492
  }
6523
- const Vl = { Button: fl, useValue: hl, Set: gl, Run: pl, Count: Kn, Reset: xl }, Ul = { Bell: Hs, Send: Vs, Add: Ks }, kl = "_p_djnh1_1", yl = "_l_djnh1_38", Vn = {
6493
+ const Vl = { Button: fl, useValue: hl, Set: xl, Run: vl, Count: Wn, Reset: gl }, Ul = { Bell: Hr, Send: Vr, Add: Wr }, kl = "_p_djnh1_1", yl = "_l_djnh1_38", Vn = {
6524
6494
  p: kl,
6525
6495
  l: yl
6526
6496
  };
6527
6497
  function jl(e) {
6528
- let t = 3, n = e.page, s = e.count, r = [], i = () => {
6529
- r.push({ page: 1 }), r.push({ text: "..." });
6498
+ let t = 3, n = e.page, r = e.count, s = [], i = () => {
6499
+ s.push({ page: 1 }), s.push({ text: "..." });
6530
6500
  }, c = () => {
6531
- r.push({ text: "..." }), r.push({ page: s });
6501
+ s.push({ text: "..." }), s.push({ page: r });
6532
6502
  }, l = (_, d) => {
6533
6503
  for (let u = _; u < d; u++)
6534
- r.push({ page: u });
6504
+ s.push({ page: u });
6535
6505
  };
6536
- return s < t * 2 + 6 ? l(1, s + 1) : n < t * 2 + 1 ? (l(1, t * 2 + 4), c()) : n > s - t * 2 ? (t = s > 1e4 ? 1 : t, i(), l(s - t * 2 - 2, s + 1)) : (t = s > 1e4 ? 1 : t, i(), l(n - t, n + t + 1), c()), r.length === 1 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("div", { className: Vn.p, children: [
6506
+ return r < t * 2 + 6 ? l(1, r + 1) : n < t * 2 + 1 ? (l(1, t * 2 + 4), c()) : n > r - t * 2 ? (t = r > 1e4 ? 1 : t, i(), l(r - t * 2 - 2, r + 1)) : (t = r > 1e4 ? 1 : t, i(), l(n - t, n + t + 1), c()), s.length === 1 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("div", { className: Vn.p, children: [
6537
6507
  /* @__PURE__ */ a.jsx("i", { onClick: () => e.onChangePage(n - 1), children: /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ a.jsx("path", { d: "M8.19486 5.40705C8.52237 4.96235 9.14837 4.86736 9.59306 5.19488C9.93847 5.44927 10.2668 5.70372 10.5528 5.92689C11.1236 6.3724 11.8882 6.98573 12.6556 7.65208C13.4181 8.31412 14.2064 9.04815 14.8119 9.73344C15.1136 10.0749 15.3911 10.4279 15.5986 10.7721C15.7895 11.0888 16 11.524 16 12.0001C16 12.4762 15.7895 12.9115 15.5986 13.2282C15.3911 13.5724 15.1136 13.9253 14.8119 14.2668C14.2064 14.9521 13.4181 15.6861 12.6556 16.3482C11.8882 17.0145 11.1236 17.6278 10.5528 18.0734C10.2668 18.2965 9.93847 18.551 9.59307 18.8054C9.14837 19.1329 8.52237 19.0379 8.19486 18.5932C8.0632 18.4144 7.99983 18.2064 8.00001 18.0002L8 12.0001L8 6.00007C7.99983 5.79387 8.0632 5.58581 8.19486 5.40705Z" }) }) }),
6538
- r.map((_, d) => {
6539
- console.log(_, e);
6508
+ s.map((_, d) => {
6540
6509
  const u = {};
6541
6510
  return _.page && (u.onClick = () => e.onChangePage(_.page)), _.page === e.page && (u.active = ""), /* @__PURE__ */ ja("span", { ...u, key: d }, _.page || _.text);
6542
6511
  }),
@@ -6565,7 +6534,7 @@ function bl(e, t) {
6565
6534
  }
6566
6535
  }
6567
6536
  function Un({ load: e, list: t, item: n }) {
6568
- const s = g.useRef(null), [r, i] = g.useReducer(bl, {
6537
+ const r = x.useRef(null), [s, i] = x.useReducer(bl, {
6569
6538
  load: !1,
6570
6539
  list: [],
6571
6540
  data: {},
@@ -6573,39 +6542,39 @@ function Un({ load: e, list: t, item: n }) {
6573
6542
  wait: !1,
6574
6543
  item: n
6575
6544
  });
6576
- console.log("load", e), g.useEffect(() => {
6545
+ x.useEffect(() => {
6577
6546
  t !== null && i({ type: "load", load: e, data: t });
6578
6547
  }, [e]);
6579
6548
  let c = (l) => {
6580
6549
  if (l === 0)
6581
6550
  return l = 1;
6582
- if (l > r.size)
6583
- return l = r.size;
6551
+ if (l > s.size)
6552
+ return l = s.size;
6584
6553
  i({ type: "page", page: l });
6585
6554
  };
6586
- return g.useEffect(() => {
6587
- }, [r]), console.log(r), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6588
- /* @__PURE__ */ a.jsx("div", { className: Vn.l, ref: s, children: /* @__PURE__ */ a.jsx(Rn, { "el-empty": "Данные не найдены", children: r.load && r.list !== void 0 ? r.list.map((l) => /* @__PURE__ */ a.jsx(r.item, { data: l }, l.id)) : /* @__PURE__ */ a.jsxs("div", { "type-data": "load", children: [
6555
+ return x.useEffect(() => {
6556
+ }, [s]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6557
+ /* @__PURE__ */ a.jsx("div", { className: Vn.l, ref: r, children: /* @__PURE__ */ a.jsx(Rn, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((l) => /* @__PURE__ */ a.jsx(s.item, { data: l }, l.id)) : /* @__PURE__ */ a.jsxs("div", { "type-data": "load", children: [
6589
6558
  /* @__PURE__ */ a.jsx("i", {}),
6590
6559
  /* @__PURE__ */ a.jsx("i", {}),
6591
6560
  /* @__PURE__ */ a.jsx("i", {})
6592
6561
  ] }) }) }),
6593
- r.load && r.list !== void 0 ? /* @__PURE__ */ a.jsx(
6562
+ s.load && s.list !== void 0 ? /* @__PURE__ */ a.jsx(
6594
6563
  jl,
6595
6564
  {
6596
- page: r.page,
6597
- count: r.size,
6565
+ page: s.page,
6566
+ count: s.size,
6598
6567
  onChangePage: c
6599
6568
  }
6600
6569
  ) : /* @__PURE__ */ a.jsx(a.Fragment, {})
6601
6570
  ] });
6602
6571
  }
6603
6572
  const Yl = { Pagination: Un };
6604
- function wl({ head: e, load: t, list: n, item: s }) {
6605
- const r = e;
6573
+ function wl({ head: e, load: t, list: n, item: r }) {
6574
+ const s = e;
6606
6575
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6607
- /* @__PURE__ */ a.jsx(r, {}),
6608
- St.getSetting("s05") === 1 ? /* @__PURE__ */ a.jsx(Un, { list: n, load: t, item: s }) : /* @__PURE__ */ a.jsx(Nn, { list: n, load: t, item: s })
6576
+ /* @__PURE__ */ a.jsx(s, {}),
6577
+ St.getSetting("s05") === 1 ? /* @__PURE__ */ a.jsx(Un, { list: n, load: t, item: r }) : /* @__PURE__ */ a.jsx(Nn, { list: n, load: t, item: r })
6609
6578
  ] });
6610
6579
  }
6611
6580
  function Sl(e, t) {
@@ -6656,7 +6625,7 @@ function El(e) {
6656
6625
  function Rl(e) {
6657
6626
  Ct.get && Ct.get(e);
6658
6627
  }
6659
- const Hl = { View: wl, Reducer: Sl, useValue: El, setValue: Rl }, ql = { Get: er }, Jl = { Open: Fi };
6628
+ const Hl = { View: wl, Reducer: Sl, useValue: El, setValue: Rl }, ql = { Get: es }, Jl = { Open: Fi };
6660
6629
  export {
6661
6630
  io as Action,
6662
6631
  Fl as Alert,
@@ -6664,7 +6633,7 @@ export {
6664
6633
  Pl as Badge,
6665
6634
  Ml as Bookmarks,
6666
6635
  Il as Browser,
6667
- Jr as Button,
6636
+ Js as Button,
6668
6637
  ql as Company,
6669
6638
  un as Component,
6670
6639
  Bl as DataBase,
@@ -6676,10 +6645,10 @@ export {
6676
6645
  G as Format,
6677
6646
  Ol as HotKey,
6678
6647
  Ll as Icon,
6679
- Ki as Init,
6648
+ Wi as Init,
6680
6649
  Gl as Input,
6681
6650
  Hl as List,
6682
- Wl as Loading,
6651
+ Kl as Loading,
6683
6652
  wt as Modal,
6684
6653
  Le as Notice,
6685
6654
  Ul as Notifications,
@@ -6687,11 +6656,11 @@ export {
6687
6656
  Jl as Phone,
6688
6657
  Ue as Router,
6689
6658
  Al as Scrolling,
6690
- Kl as Search,
6659
+ Wl as Search,
6691
6660
  Dl as Setting,
6692
6661
  jt as Sistym,
6693
6662
  ce as Socket,
6694
- re as Store,
6663
+ se as Store,
6695
6664
  Ji as Tabs,
6696
6665
  $l as Triage,
6697
6666
  St as User,