elcrm 0.7.6 → 0.7.7

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,22 +1,22 @@
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
- var ot = (e, t, n) => (ya(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import x, { createElement as ja } from "react";
5
- let kt = {};
3
+ var lt = (e, t, n) => (ya(e, typeof t != "symbol" ? t + "" : t, n), n);
4
+ import h, { createElement as ja } from "react";
5
+ let yt = {};
6
6
  const ba = (e) => {
7
- kt = e;
8
- }, wa = (e) => kt.enCode(e), Sa = (e) => kt.deCode(e), D = { enCode: wa, deCode: Sa, New: ba }, E = {}, Q = {}, ke = {}, mn = {}, he = {};
9
- let yt = "M06";
10
- function Ea(e) {
11
7
  yt = e;
8
+ }, wa = (e) => yt.enCode(e), Sa = (e) => yt.deCode(e), D = { enCode: wa, deCode: Sa, New: ba }, E = {}, Q = {}, ke = {}, mn = {}, he = {};
9
+ let jt = "M06";
10
+ function Ea(e) {
11
+ jt = e;
12
12
  }
13
13
  function Ra() {
14
- return yt;
14
+ return jt;
15
15
  }
16
16
  function Na(e) {
17
17
  if (localStorage.getItem("d")) {
18
18
  let n = sessionStorage.getItem("f");
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);
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 || jt);
20
20
  } else
21
21
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
22
22
  (n) => localStorage.removeItem(n)
@@ -57,7 +57,7 @@ function Fa() {
57
57
  function La(e) {
58
58
  localStorage.setItem("p", D.enCode(e));
59
59
  }
60
- function dt() {
60
+ function _t() {
61
61
  let e = localStorage.getItem("p");
62
62
  if (e !== "" && e !== "undefined" && e !== null) {
63
63
  let t = D.deCode(e);
@@ -66,7 +66,7 @@ function dt() {
66
66
  return ee(), !1;
67
67
  }
68
68
  function $a() {
69
- const [e, t] = x.useState(fn()), n = (r) => {
69
+ const [e, t] = h.useState(fn()), n = (r) => {
70
70
  t(r);
71
71
  };
72
72
  return Q.page = n, [e];
@@ -78,7 +78,7 @@ function fn() {
78
78
  return E.page;
79
79
  }
80
80
  function Ba() {
81
- const [e, t] = x.useState(hn()), n = (r) => {
81
+ const [e, t] = h.useState(hn()), n = (r) => {
82
82
  t(r);
83
83
  };
84
84
  return Q.module = n, [e];
@@ -90,7 +90,7 @@ function hn() {
90
90
  return E.module;
91
91
  }
92
92
  function Aa(e) {
93
- const [t, n] = x.useState(He() || e), r = (s) => {
93
+ const [t, n] = h.useState(He() || e), r = (s) => {
94
94
  n(s);
95
95
  };
96
96
  return Q.tabs = r, [t];
@@ -102,7 +102,7 @@ function He() {
102
102
  return E.tab;
103
103
  }
104
104
  function za(e) {
105
- const [t, n] = x.useState(E.id), r = (s) => {
105
+ const [t, n] = h.useState(E.id), r = (s) => {
106
106
  if (e)
107
107
  return e(s);
108
108
  n(s);
@@ -156,7 +156,7 @@ function gn(e) {
156
156
  let t = localStorage.getItem("b");
157
157
  t = t === null ? {} : D.deCode(t), t[He()] = e, localStorage.setItem("b", D.enCode(t));
158
158
  }
159
- function _t() {
159
+ function ut() {
160
160
  let e = localStorage.getItem("b");
161
161
  return e === null ? {} : (e = D.deCode(e), e = e[He()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
162
162
  }
@@ -222,7 +222,7 @@ function ar() {
222
222
  const se = {
223
223
  setSSID: Ia,
224
224
  getSSID: Da,
225
- getPORT: dt,
225
+ getPORT: _t,
226
226
  setPORT: La,
227
227
  setAUTH: Ma,
228
228
  getAUTH: Fa,
@@ -232,7 +232,7 @@ const se = {
232
232
  getMenu: qa,
233
233
  useSort: Ja,
234
234
  setSort: gn,
235
- getSort: _t,
235
+ getSort: ut,
236
236
  setCompany: vn,
237
237
  getCompany: pn,
238
238
  setSelect: Pe,
@@ -280,7 +280,7 @@ function or(e) {
280
280
  function lr(e) {
281
281
  return e && (_e.h = e), _e.h;
282
282
  }
283
- const jt = { version: { Api: ir, Server: sr, Client: or }, Host: lr };
283
+ const bt = { version: { Api: ir, Server: sr, Client: or }, Host: lr };
284
284
  let cr = "api", dr = "elcrm", _r = "online";
285
285
  function ur() {
286
286
  let e = se.getPORT(), t = "", n = "";
@@ -293,7 +293,7 @@ let jn = `${cr}.${dr}.${_r}`;
293
293
  function mr(e) {
294
294
  return "https://" + se.getPORT().address + "/audio/" + e;
295
295
  }
296
- function bt(e, t = {}, n = se.getAUTH()) {
296
+ function qe(e, t = {}, n = se.getAUTH()) {
297
297
  return new Promise((r) => {
298
298
  const s = new yn();
299
299
  s.onmessage = (i) => {
@@ -302,7 +302,7 @@ function bt(e, t = {}, n = se.getAUTH()) {
302
302
  link: e,
303
303
  data: t,
304
304
  ssid: n,
305
- host: jt.Host() || `https://${jn}/`
305
+ host: bt.Host() || `https://${jn}/`
306
306
  });
307
307
  });
308
308
  }
@@ -315,17 +315,26 @@ function fr(e, t = {}, n = se.getAUTH()) {
315
315
  link: e,
316
316
  data: t,
317
317
  ssid: n,
318
- host: jt.Host() + "modules/" || `https://${jn}/modules`
318
+ host: bt.Host() + "modules/" || `https://${jn}/modules`
319
319
  });
320
320
  });
321
321
  }
322
+ function hr(e, t = {}, n) {
323
+ const [r, s] = h.useState({ status: "load" }), i = async (c) => {
324
+ let l = await qe(e, c, n);
325
+ s(l);
326
+ };
327
+ return h.useEffect(() => {
328
+ i(t);
329
+ }, []), [r, i];
330
+ }
322
331
  let bn = {
323
332
  "Content-type": "application/json;charset=utf-8",
324
333
  ssid: se.getAUTH() || ""
325
334
  };
326
- async function hr(e, t, n = {}) {
335
+ async function xr(e, t, n = {}) {
327
336
  try {
328
- return await (await bt("https://" + e + "/" + t, {
337
+ return await (await qe("https://" + e + "/" + t, {
329
338
  method: "POST",
330
339
  headers: bn,
331
340
  body: JSON.stringify(n)
@@ -334,9 +343,9 @@ async function hr(e, t, n = {}) {
334
343
  return { status: "error" };
335
344
  }
336
345
  }
337
- async function xr(e, t = {}) {
346
+ async function gr(e, t = {}) {
338
347
  try {
339
- return await (await bt("https://tb.elcrm.online/v1/" + e, {
348
+ return await (await qe("https://tb.elcrm.online/v1/" + e, {
340
349
  method: "POST",
341
350
  headers: bn,
342
351
  body: JSON.stringify(t)
@@ -345,8 +354,8 @@ async function xr(e, t = {}) {
345
354
  return { status: "error" };
346
355
  }
347
356
  }
348
- const nn = { audio: mr, fetch: bt, modules: fr, remoute: hr, url: ur, telegram: xr };
349
- var ut = { exports: {} }, Te = {};
357
+ const nn = { audio: mr, fetch: qe, modules: fr, remoute: xr, url: ur, telegram: gr, use: hr };
358
+ var mt = { exports: {} }, Te = {};
350
359
  /**
351
360
  * @license React
352
361
  * react-jsx-runtime.production.min.js
@@ -357,20 +366,20 @@ var ut = { exports: {} }, Te = {};
357
366
  * LICENSE file in the root directory of this source tree.
358
367
  */
359
368
  var an;
360
- function gr() {
369
+ function vr() {
361
370
  if (an)
362
371
  return Te;
363
372
  an = 1;
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 };
373
+ var e = h, 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 };
365
374
  function c(l, _, d) {
366
- var u, m = {}, h = null, g = null;
367
- d !== void 0 && (h = "" + d), _.key !== void 0 && (h = "" + _.key), _.ref !== void 0 && (g = _.ref);
375
+ var u, m = {}, x = null, g = null;
376
+ d !== void 0 && (x = "" + d), _.key !== void 0 && (x = "" + _.key), _.ref !== void 0 && (g = _.ref);
368
377
  for (u in _)
369
378
  r.call(_, u) && !i.hasOwnProperty(u) && (m[u] = _[u]);
370
379
  if (l && l.defaultProps)
371
380
  for (u in _ = l.defaultProps, _)
372
381
  m[u] === void 0 && (m[u] = _[u]);
373
- return { $$typeof: t, type: l, key: h, ref: g, props: m, _owner: s.current };
382
+ return { $$typeof: t, type: l, key: x, ref: g, props: m, _owner: s.current };
374
383
  }
375
384
  return Te.Fragment = n, Te.jsx = c, Te.jsxs = c, Te;
376
385
  }
@@ -385,16 +394,16 @@ var Ie = {};
385
394
  * LICENSE file in the root directory of this source tree.
386
395
  */
387
396
  var rn;
388
- function vr() {
397
+ function pr() {
389
398
  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";
399
+ var e = h, 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"), x = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), v = Symbol.iterator, C = "@@iterator";
391
400
  function w(o) {
392
401
  if (o === null || typeof o != "object")
393
402
  return null;
394
403
  var f = v && o[v] || o[C];
395
404
  return typeof f == "function" ? f : null;
396
405
  }
397
- var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
406
+ var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
398
407
  function b(o) {
399
408
  {
400
409
  for (var f = arguments.length, p = new Array(f > 1 ? f - 1 : 0), S = 1; S < f; S++)
@@ -404,7 +413,7 @@ function vr() {
404
413
  }
405
414
  function R(o, f, p) {
406
415
  {
407
- var S = k.ReactDebugCurrentFrame, M = S.getStackAddendum();
416
+ var S = y.ReactDebugCurrentFrame, M = S.getStackAddendum();
408
417
  M !== "" && (f += "%s", p = p.concat([M]));
409
418
  var L = p.map(function(I) {
410
419
  return String(I);
@@ -412,10 +421,10 @@ function vr() {
412
421
  L.unshift("Warning: " + f), Function.prototype.apply.call(console[o], console, L);
413
422
  }
414
423
  }
415
- var N = !1, j = !1, F = !1, $ = !1, P = !1, H;
424
+ var N = !1, k = !1, F = !1, $ = !1, P = !1, H;
416
425
  H = Symbol.for("react.module.reference");
417
426
  function V(o) {
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
427
+ return !!(typeof o == "string" || typeof o == "function" || o === r || o === i || P || o === s || o === d || o === u || $ || o === g || N || k || F || typeof o == "object" && o !== null && (o.$$typeof === x || o.$$typeof === m || o.$$typeof === c || o.$$typeof === l || o.$$typeof === _ || // This needs to include all possible module reference object
419
428
  // types supported by any Flight configuration anywhere since
420
429
  // we don't know which Flight build this will end up being used
421
430
  // with.
@@ -465,7 +474,7 @@ function vr() {
465
474
  case m:
466
475
  var S = o.displayName || null;
467
476
  return S !== null ? S : K(o.type) || "Memo";
468
- case h: {
477
+ case x: {
469
478
  var M = o, L = M._payload, I = M._init;
470
479
  try {
471
480
  return K(I(L));
@@ -476,14 +485,14 @@ function vr() {
476
485
  }
477
486
  return null;
478
487
  }
479
- var le = Object.assign, q = 0, Ee, Je, Ze, Lt, $t, Pt, Bt;
488
+ var le = Object.assign, q = 0, Ee, Xe, Ze, Lt, $t, Pt, Bt;
480
489
  function Ot() {
481
490
  }
482
491
  Ot.__reactDisabledLog = !0;
483
492
  function Yn() {
484
493
  {
485
494
  if (q === 0) {
486
- Ee = console.log, Je = console.info, Ze = console.warn, Lt = console.error, $t = console.group, Pt = console.groupCollapsed, Bt = console.groupEnd;
495
+ Ee = console.log, Xe = console.info, Ze = console.warn, Lt = console.error, $t = console.group, Pt = console.groupCollapsed, Bt = console.groupEnd;
487
496
  var o = {
488
497
  configurable: !0,
489
498
  enumerable: !0,
@@ -516,7 +525,7 @@ function vr() {
516
525
  value: Ee
517
526
  }),
518
527
  info: le({}, o, {
519
- value: Je
528
+ value: Xe
520
529
  }),
521
530
  warn: le({}, o, {
522
531
  value: Ze
@@ -538,27 +547,27 @@ function vr() {
538
547
  q < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
539
548
  }
540
549
  }
541
- var Xe = k.ReactCurrentDispatcher, Qe;
550
+ var Qe = y.ReactCurrentDispatcher, et;
542
551
  function ze(o, f, p) {
543
552
  {
544
- if (Qe === void 0)
553
+ if (et === void 0)
545
554
  try {
546
555
  throw Error();
547
556
  } catch (M) {
548
557
  var S = M.stack.trim().match(/\n( *(at )?)/);
549
- Qe = S && S[1] || "";
558
+ et = S && S[1] || "";
550
559
  }
551
560
  return `
552
- ` + Qe + o;
561
+ ` + et + o;
553
562
  }
554
563
  }
555
- var et = !1, Ge;
564
+ var tt = !1, Ge;
556
565
  {
557
566
  var qn = typeof WeakMap == "function" ? WeakMap : Map;
558
567
  Ge = new qn();
559
568
  }
560
569
  function At(o, f) {
561
- if (!o || et)
570
+ if (!o || tt)
562
571
  return "";
563
572
  {
564
573
  var p = Ge.get(o);
@@ -566,11 +575,11 @@ function vr() {
566
575
  return p;
567
576
  }
568
577
  var S;
569
- et = !0;
578
+ tt = !0;
570
579
  var M = Error.prepareStackTrace;
571
580
  Error.prepareStackTrace = void 0;
572
581
  var L;
573
- L = Xe.current, Xe.current = null, Yn();
582
+ L = Qe.current, Qe.current = null, Yn();
574
583
  try {
575
584
  if (f) {
576
585
  var I = function() {
@@ -623,7 +632,7 @@ function vr() {
623
632
  }
624
633
  }
625
634
  } finally {
626
- et = !1, Xe.current = L, Hn(), Error.prepareStackTrace = M;
635
+ tt = !1, Qe.current = L, Hn(), Error.prepareStackTrace = M;
627
636
  }
628
637
  var Ce = o ? o.displayName || o.name : "", fe = Ce ? ze(Ce) : "";
629
638
  return typeof o == "function" && Ge.set(o, fe), fe;
@@ -654,7 +663,7 @@ function vr() {
654
663
  return Jn(o.render);
655
664
  case m:
656
665
  return Ke(o.type, f, p);
657
- case h: {
666
+ case x: {
658
667
  var S = o, M = S._payload, L = S._init;
659
668
  try {
660
669
  return Ke(L(M), f, p);
@@ -664,7 +673,7 @@ function vr() {
664
673
  }
665
674
  return "";
666
675
  }
667
- var Re = Object.prototype.hasOwnProperty, Zt = {}, zt = k.ReactDebugCurrentFrame;
676
+ var Re = Object.prototype.hasOwnProperty, Zt = {}, zt = y.ReactDebugCurrentFrame;
668
677
  function We(o) {
669
678
  if (o) {
670
679
  var f = o._owner, p = Ke(o.type, o._source, f ? f.type : null);
@@ -692,7 +701,7 @@ function vr() {
692
701
  }
693
702
  }
694
703
  var ea = Array.isArray;
695
- function tt(o) {
704
+ function nt(o) {
696
705
  return ea(o);
697
706
  }
698
707
  function ta(o) {
@@ -715,13 +724,13 @@ function vr() {
715
724
  if (na(o))
716
725
  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);
717
726
  }
718
- var Ne = k.ReactCurrentOwner, aa = {
727
+ var Ne = y.ReactCurrentOwner, aa = {
719
728
  key: !0,
720
729
  ref: !0,
721
730
  __self: !0,
722
731
  __source: !0
723
- }, Wt, Vt, nt;
724
- nt = {};
732
+ }, Wt, Vt, at;
733
+ at = {};
725
734
  function ra(o) {
726
735
  if (Re.call(o, "ref")) {
727
736
  var f = Object.getOwnPropertyDescriptor(o, "ref").get;
@@ -741,7 +750,7 @@ function vr() {
741
750
  function ia(o, f) {
742
751
  if (typeof o.ref == "string" && Ne.current && f && Ne.current.stateNode !== f) {
743
752
  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);
753
+ at[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), at[p] = !0);
745
754
  }
746
755
  }
747
756
  function oa(o, f) {
@@ -813,7 +822,7 @@ function vr() {
813
822
  return ca(o, T, Y, M, S, Ne.current, I);
814
823
  }
815
824
  }
816
- var at = k.ReactCurrentOwner, Ut = k.ReactDebugCurrentFrame;
825
+ var rt = y.ReactCurrentOwner, Ut = y.ReactDebugCurrentFrame;
817
826
  function pe(o) {
818
827
  if (o) {
819
828
  var f = o._owner, p = Ke(o.type, o._source, f ? f.type : null);
@@ -821,15 +830,15 @@ function vr() {
821
830
  } else
822
831
  Ut.setExtraStackFrame(null);
823
832
  }
824
- var rt;
825
- rt = !1;
826
- function st(o) {
833
+ var st;
834
+ st = !1;
835
+ function it(o) {
827
836
  return typeof o == "object" && o !== null && o.$$typeof === t;
828
837
  }
829
838
  function Yt() {
830
839
  {
831
- if (at.current) {
832
- var o = K(at.current.type);
840
+ if (rt.current) {
841
+ var o = K(rt.current.type);
833
842
  if (o)
834
843
  return `
835
844
 
@@ -864,25 +873,25 @@ Check the top-level render call using <` + p + ">.");
864
873
  return;
865
874
  Ht[p] = !0;
866
875
  var S = "";
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);
876
+ o && o._owner && o._owner !== rt.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);
868
877
  }
869
878
  }
870
879
  function Jt(o, f) {
871
880
  {
872
881
  if (typeof o != "object")
873
882
  return;
874
- if (tt(o))
883
+ if (nt(o))
875
884
  for (var p = 0; p < o.length; p++) {
876
885
  var S = o[p];
877
- st(S) && qt(S, f);
886
+ it(S) && qt(S, f);
878
887
  }
879
- else if (st(o))
888
+ else if (it(o))
880
889
  o._store && (o._store.validated = !0);
881
890
  else if (o) {
882
891
  var M = w(o);
883
892
  if (typeof M == "function" && M !== o.entries)
884
893
  for (var L = M.call(o), I; !(I = L.next()).done; )
885
- st(I.value) && qt(I.value, f);
894
+ it(I.value) && qt(I.value, f);
886
895
  }
887
896
  }
888
897
  }
@@ -903,8 +912,8 @@ Check the top-level render call using <` + p + ">.");
903
912
  if (p) {
904
913
  var S = K(f);
905
914
  Qn(p, o.props, "prop", S, o);
906
- } else if (f.PropTypes !== void 0 && !rt) {
907
- rt = !0;
915
+ } else if (f.PropTypes !== void 0 && !st) {
916
+ st = !0;
908
917
  var M = K(f);
909
918
  b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown");
910
919
  }
@@ -933,7 +942,7 @@ Check the top-level render call using <` + p + ">.");
933
942
  var Y = _a();
934
943
  Y ? T += Y : T += Yt();
935
944
  var Z;
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);
945
+ o === null ? Z = "null" : nt(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);
937
946
  }
938
947
  var W = da(o, f, p, M, L);
939
948
  if (W == null)
@@ -942,7 +951,7 @@ Check the top-level render call using <` + p + ">.");
942
951
  var te = f.children;
943
952
  if (te !== void 0)
944
953
  if (S)
945
- if (tt(te)) {
954
+ if (nt(te)) {
946
955
  for (var Ce = 0; Ce < te.length; Ce++)
947
956
  Jt(te[Ce], o);
948
957
  Object.freeze && Object.freeze(te);
@@ -954,15 +963,15 @@ Check the top-level render call using <` + p + ">.");
954
963
  if (Re.call(f, "key")) {
955
964
  var fe = K(o), J = Object.keys(f).filter(function(Ca) {
956
965
  return Ca !== "key";
957
- }), it = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
958
- if (!Xt[fe + it]) {
966
+ }), ot = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
967
+ if (!Xt[fe + ot]) {
959
968
  var pa = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
960
969
  b(`A props object containing a "key" prop is being spread into JSX:
961
970
  let props = %s;
962
971
  <%s {...props} />
963
972
  React keys must be passed directly to JSX without using spread:
964
973
  let props = %s;
965
- <%s key={someKey} {...props} />`, it, fe, pa, fe), Xt[fe + it] = !0;
974
+ <%s key={someKey} {...props} />`, ot, fe, pa, fe), Xt[fe + ot] = !0;
966
975
  }
967
976
  }
968
977
  return o === r ? fa(W) : ma(W), W;
@@ -978,29 +987,29 @@ React keys must be passed directly to JSX without using spread:
978
987
  Ie.Fragment = r, Ie.jsx = ga, Ie.jsxs = va;
979
988
  }()), Ie;
980
989
  }
981
- process.env.NODE_ENV === "production" ? ut.exports = gr() : ut.exports = vr();
982
- var a = ut.exports;
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
+ process.env.NODE_ENV === "production" ? mt.exports = vr() : mt.exports = pr();
991
+ var a = mt.exports;
992
+ const Cr = "_notice_820sc_2", kr = "_error_820sc_9", yr = "_success_820sc_12", jr = "_remark_820sc_15", br = "_copy_820sc_18", wr = {
993
+ notice: Cr,
994
+ error: kr,
995
+ success: yr,
996
+ remark: jr,
997
+ copy: br,
989
998
  "show-notice": "_show-notice_820sc_1",
990
999
  "hide-notice": "_hide-notice_820sc_1"
991
1000
  };
992
1001
  let ue = {};
993
- function wr() {
994
- let [e, t] = x.useState([]);
1002
+ function Sr() {
1003
+ let [e, t] = h.useState([]);
995
1004
  return ue.set = (n) => {
996
1005
  t([...e, n]);
997
1006
  }, ue.del = (n) => {
998
1007
  t(e.filter((r) => r.key !== n));
999
- }, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { className: br.notice, children: e.map((n) => n.item) });
1008
+ }, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { className: wr.notice, children: e.map((n) => n.item) });
1000
1009
  }
1001
1010
  function Oe({ data: e }) {
1002
- let [t, n] = x.useState("show");
1003
- x.useEffect(() => {
1011
+ let [t, n] = h.useState("show");
1012
+ h.useEffect(() => {
1004
1013
  setTimeout(function() {
1005
1014
  n("hide");
1006
1015
  }, 1800), setTimeout(function() {
@@ -1031,23 +1040,23 @@ function Oe({ data: e }) {
1031
1040
  /* @__PURE__ */ a.jsx("p", { children: e.text })
1032
1041
  ] });
1033
1042
  }
1034
- function Sr(e) {
1043
+ function Er(e) {
1035
1044
  let t = Date.now(), n = { key: t, ...e };
1036
1045
  ue.set({ item: /* @__PURE__ */ a.jsx(Oe, { data: n }, t), key: t });
1037
1046
  }
1038
- function Er(e) {
1047
+ function Rr(e) {
1039
1048
  let t = Date.now(), n = { key: t, text: e, type: "error" };
1040
1049
  ue.set({ item: /* @__PURE__ */ a.jsx(Oe, { data: n }, t), key: t });
1041
1050
  }
1042
- function Rr(e) {
1051
+ function Nr(e) {
1043
1052
  let t = Date.now(), n = { key: t, text: e, type: "success" };
1044
1053
  ue.set({ item: /* @__PURE__ */ a.jsx(Oe, { data: n }, t), key: t });
1045
1054
  }
1046
- function Nr(e) {
1055
+ function Tr(e) {
1047
1056
  let t = Date.now(), n = { key: t, text: e, type: "remark" };
1048
1057
  ue.set({ item: /* @__PURE__ */ a.jsx(Oe, { data: n }, t), key: t });
1049
1058
  }
1050
- function Tr(e) {
1059
+ function Ir(e) {
1051
1060
  let t = Date.now(), n = { key: t, text: e, type: "copy" };
1052
1061
  ue.set({ item: /* @__PURE__ */ a.jsx(Oe, { data: n }, t), key: t });
1053
1062
  }
@@ -1084,21 +1093,21 @@ xe.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "
1084
1093
  }
1085
1094
  )
1086
1095
  ] });
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,
1096
+ const Dr = "_alerts_1pds5_1", Mr = "_menuAnimation_1pds5_1", Fr = "_menuItemAnimation_1pds5_1", Lr = "_allert_1pds5_111", $r = "_al_1pds5_1", ft = {
1097
+ alerts: Dr,
1098
+ menuAnimation: Mr,
1099
+ menuItemAnimation: Fr,
1091
1100
  "--body": "_--body_1pds5_103",
1092
- allert: Fr,
1101
+ allert: Lr,
1093
1102
  "--form": "_--form_1pds5_111",
1094
- al: Lr
1103
+ al: $r
1095
1104
  };
1096
1105
  let Fe = {};
1097
- function $r() {
1098
- let [e, t] = x.useState("");
1106
+ function Pr() {
1107
+ let [e, t] = h.useState("");
1099
1108
  return Fe.set = (n) => t(n), Fe.del = () => t(""), /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
1100
1109
  }
1101
- const Pr = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: mt.alerts, children: [
1110
+ const Br = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: ft.alerts, children: [
1102
1111
  /* @__PURE__ */ a.jsxs("dl", { children: [
1103
1112
  /* @__PURE__ */ a.jsx("dt", { children: e.title }),
1104
1113
  /* @__PURE__ */ a.jsx("dd", { children: e.text }),
@@ -1113,12 +1122,12 @@ const Pr = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "По
1113
1122
  }
1114
1123
  ) })
1115
1124
  ] }),
1116
- /* @__PURE__ */ a.jsx("div", { className: mt["--body"], onClick: Fe.del })
1125
+ /* @__PURE__ */ a.jsx("div", { className: ft["--body"], onClick: Fe.del })
1117
1126
  ] }));
1118
- function Br(e, t) {
1119
- Fe.set(/* @__PURE__ */ a.jsx(Pr, { data: e, callback: t }));
1127
+ function Or(e, t) {
1128
+ Fe.set(/* @__PURE__ */ a.jsx(Br, { data: e, callback: t }));
1120
1129
  }
1121
- const Le = { Send: Sr, Error: Er, Remark: Nr, Success: Rr, Copy: Tr }, Ue = {
1130
+ const Le = { Send: Er, Error: Rr, Remark: Tr, Success: Nr, Copy: Ir }, Ue = {
1122
1131
  Path: Va,
1123
1132
  setPage: Pa,
1124
1133
  getPage: fn,
@@ -1134,7 +1143,7 @@ const Le = { Send: Sr, Error: Er, Remark: Nr, Success: Rr, Copy: Tr }, Ue = {
1134
1143
  subId: Ga,
1135
1144
  getId: Wa
1136
1145
  };
1137
- function Or() {
1146
+ function Ar() {
1138
1147
  return /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1139
1148
  /* @__PURE__ */ a.jsx(
1140
1149
  "path",
@@ -1169,7 +1178,7 @@ function Or() {
1169
1178
  )
1170
1179
  ] });
1171
1180
  }
1172
- function Ar() {
1181
+ function Zr() {
1173
1182
  return /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1174
1183
  /* @__PURE__ */ a.jsx(
1175
1184
  "path",
@@ -1198,7 +1207,7 @@ function Ar() {
1198
1207
  )
1199
1208
  ] });
1200
1209
  }
1201
- function Zr() {
1210
+ function zr() {
1202
1211
  return /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ a.jsx(
1203
1212
  "path",
1204
1213
  {
@@ -1211,11 +1220,11 @@ function Zr() {
1211
1220
  }
1212
1221
  ) });
1213
1222
  }
1214
- const zr = "_n_euuvm_1", Gr = {
1215
- n: zr
1223
+ const Gr = "_n_euuvm_1", Kr = {
1224
+ n: Gr
1216
1225
  };
1217
1226
  let Ae = {}, De = [];
1218
- const Kr = (e, t) => {
1227
+ const Wr = (e, t) => {
1219
1228
  switch (t.type) {
1220
1229
  case "open":
1221
1230
  return {
@@ -1267,33 +1276,33 @@ const Kr = (e, t) => {
1267
1276
  throw new Error();
1268
1277
  }
1269
1278
  };
1270
- function Wr(e) {
1271
- Ae.fn({ action: "add", data: e });
1272
- }
1273
1279
  function Vr(e) {
1274
1280
  Ae.fn({ action: "add", data: e });
1275
1281
  }
1276
1282
  function Ur(e) {
1277
- Ae.fn({ action: "new", data: e });
1283
+ Ae.fn({ action: "add", data: e });
1278
1284
  }
1279
1285
  function Yr(e) {
1286
+ Ae.fn({ action: "new", data: e });
1287
+ }
1288
+ function Hr(e) {
1280
1289
  Ae.fn = e;
1281
1290
  }
1282
- function Hr() {
1283
- const [e, t] = x.useReducer(Kr, {
1291
+ function qr() {
1292
+ const [e, t] = h.useReducer(Wr, {
1284
1293
  open: !1,
1285
1294
  active: !1,
1286
1295
  news: [],
1287
1296
  take: {}
1288
1297
  });
1289
1298
  ce.useListener("bell", async (r) => {
1290
- }), Yr(async (r) => {
1299
+ }), Hr(async (r) => {
1291
1300
  switch (r.action) {
1292
1301
  case "add":
1293
1302
  De.push(r.data);
1294
1303
  break;
1295
1304
  }
1296
- }), x.useEffect(() => {
1305
+ }), h.useEffect(() => {
1297
1306
  (async () => {
1298
1307
  let r = await ce.Send({
1299
1308
  type: "module",
@@ -1351,11 +1360,11 @@ function Hr() {
1351
1360
  /* @__PURE__ */ a.jsx(
1352
1361
  "div",
1353
1362
  {
1354
- className: Gr.n,
1363
+ className: Kr.n,
1355
1364
  onClick: () => {
1356
1365
  t({ type: "open", open: !0 });
1357
1366
  },
1358
- children: e.active ? /* @__PURE__ */ a.jsx(Ar, {}) : /* @__PURE__ */ a.jsx(Or, {})
1367
+ children: e.active ? /* @__PURE__ */ a.jsx(Zr, {}) : /* @__PURE__ */ a.jsx(Ar, {})
1359
1368
  }
1360
1369
  ),
1361
1370
  e.open ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -1370,7 +1379,7 @@ function Hr() {
1370
1379
  ),
1371
1380
  /* @__PURE__ */ a.jsxs("div", { className: "notify-m", children: [
1372
1381
  /* @__PURE__ */ a.jsx("div", { className: "notify-l", children: e.news.map((r, s) => /* @__PURE__ */ a.jsx(
1373
- qr,
1382
+ Jr,
1374
1383
  {
1375
1384
  data: r,
1376
1385
  dispatch: t
@@ -1382,7 +1391,7 @@ function Hr() {
1382
1391
  ] }) : ""
1383
1392
  ] });
1384
1393
  }
1385
- const qr = ({ data: e, dispatch: t }) => {
1394
+ const Jr = ({ data: e, dispatch: t }) => {
1386
1395
  let n = async (r) => {
1387
1396
  t({ type: "hide", id: r.id }), await ce.Send({
1388
1397
  type: "module",
@@ -1399,16 +1408,16 @@ const qr = ({ data: e, dispatch: t }) => {
1399
1408
  ] }),
1400
1409
  /* @__PURE__ */ a.jsx("div", { className: "--hide", "data-icon": "F038", onClick: () => n(e), children: " " })
1401
1410
  ] });
1402
- }, Jr = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
1403
- function Xr(e) {
1411
+ }, Xr = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
1412
+ function Qr(e) {
1404
1413
  return new SharedWorker(
1405
- "data:text/javascript;base64," + Jr,
1414
+ "data:text/javascript;base64," + Xr,
1406
1415
  {
1407
1416
  name: e == null ? void 0 : e.name
1408
1417
  }
1409
1418
  );
1410
1419
  }
1411
- function Qr(e) {
1420
+ function es(e) {
1412
1421
  let t = {}, n = {};
1413
1422
  e.data.forEach((s) => {
1414
1423
  t[s.id] = { s: s.v, n: s.a }, n[s.id] = s;
@@ -1416,7 +1425,7 @@ function Qr(e) {
1416
1425
  let r = { ...Be(), 901: t };
1417
1426
  vn(n), Pe(r);
1418
1427
  }
1419
- function es() {
1428
+ function ts() {
1420
1429
  let e = pn(), t = {};
1421
1430
  return Object.keys(e).forEach((n) => {
1422
1431
  t[e[n].id] = {}, t[e[n].id].name = e[n].a;
@@ -1432,10 +1441,10 @@ let ie = {}, U = {}, Ve = [
1432
1441
  "info",
1433
1442
  "job"
1434
1443
  ];
1435
- function ts() {
1436
- const [e, t] = x.useState(!1), [n, r] = x.useState(!1);
1444
+ function ns() {
1445
+ const [e, t] = h.useState(!1), [n, r] = h.useState(!1);
1437
1446
  function s(i) {
1438
- const c = new Xr();
1447
+ const c = new Qr();
1439
1448
  ie.laodData = (l) => {
1440
1449
  let _ = Ve.indexOf(l);
1441
1450
  _ >= 0 && Ve.splice(_, 1), Ve.length === 0 && t(!0);
@@ -1446,12 +1455,12 @@ function ts() {
1446
1455
  _.type === "error" && r(!0), _.type === "true" && t(!0), _.type === "closed" && c.port.postMessage({
1447
1456
  type: "connect",
1448
1457
  ukey: i,
1449
- lk: dt()
1458
+ lk: _t()
1450
1459
  }), Ve.length !== 0 && ie.laodData(_.type), U[_.type] && U[_.type](_);
1451
1460
  }, c.port.postMessage({
1452
1461
  type: "connect",
1453
1462
  ukey: i,
1454
- lk: dt()
1463
+ lk: _t()
1455
1464
  });
1456
1465
  }
1457
1466
  return [s, e, n];
@@ -1459,14 +1468,14 @@ function ts() {
1459
1468
  U.module = (e) => {
1460
1469
  ie[e.listen] !== void 0 && (ie[e.listen](e), delete ie[e.listen]);
1461
1470
  };
1462
- U.bell = Ur;
1463
- U.company = Qr;
1471
+ U.bell = Yr;
1472
+ U.company = es;
1464
1473
  U.info = (e) => {
1465
1474
  let t = {};
1466
1475
  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);
1467
1476
  };
1468
1477
  U.version = async (e) => {
1469
- jt.version.Server(e.data);
1478
+ bt.version.Server(e.data);
1470
1479
  };
1471
1480
  U.online = async (e) => {
1472
1481
  };
@@ -1531,12 +1540,12 @@ U.setting = (e) => {
1531
1540
  };
1532
1541
  U.app = () => {
1533
1542
  };
1534
- const ns = (e, t) => {
1543
+ const as = (e, t) => {
1535
1544
  ie[e] = t;
1536
- }, as = (e, t) => {
1545
+ }, rs = (e, t) => {
1537
1546
  ie[e](t);
1538
1547
  };
1539
- function rs(e) {
1548
+ function ss(e) {
1540
1549
  let t = "_" + String(Math.random()).substring(2, 7);
1541
1550
  return new Promise((n) => {
1542
1551
  ie[t] = (r) => {
@@ -1544,8 +1553,8 @@ function rs(e) {
1544
1553
  }, e = { ...e, listen: t }, e.type = "modules", ie.send(e);
1545
1554
  });
1546
1555
  }
1547
- const ce = { useConnect: ts, useListener: ns, setListener: as, Send: rs };
1548
- function ss(e, t) {
1556
+ const ce = { useConnect: ns, useListener: as, setListener: rs, Send: ss };
1557
+ function is(e, t) {
1549
1558
  t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
1550
1559
  let n = {
1551
1560
  yyyy: e.getFullYear(),
@@ -1562,21 +1571,21 @@ function ss(e, t) {
1562
1571
  t = t.replace(r, n[r]);
1563
1572
  return t;
1564
1573
  }
1565
- function is(e) {
1574
+ function os(e) {
1566
1575
  let t = ["Января", "Февраля", "Марта", "Апреля", "Мая", "Июня", "Июля", "Августа", "Сентября", "Октября", "Ноября", "Декабря"], n = new Date(e);
1567
1576
  return { day: ("" + n.getFullYear()).slice(-2) + "" + ("0" + (n.getMonth() + 1)).slice(-2) + ("0" + n.getDate()).slice(-2), name: n.getDate() + " " + t[n.getMonth()] };
1568
1577
  }
1569
- const os = (e) => {
1578
+ const ls = (e) => {
1570
1579
  function t(R, N) {
1571
- var j, $, F;
1580
+ var k, $, F;
1572
1581
  R = R ?? "", N = N ?? 1;
1573
- for (var j = [], F = 0, $ = R.length; F < $; )
1574
- j.push(R.slice(F, F += N));
1575
- return j;
1582
+ for (var k = [], F = 0, $ = R.length; F < $; )
1583
+ k.push(R.slice(F, F += N));
1584
+ return k;
1576
1585
  }
1577
1586
  function n(R, N) {
1578
- var j = [2, 0, 1, 1, 1, 2];
1579
- return N[R > 4 && R < 20 ? 2 : j[Math.min(R, 5)]];
1587
+ var k = [2, 0, 1, 1, 1, 2];
1588
+ return N[R > 4 && R < 20 ? 2 : k[Math.min(R, 5)]];
1580
1589
  }
1581
1590
  var r = {
1582
1591
  null: "ноль",
@@ -1640,7 +1649,7 @@ const os = (e) => {
1640
1649
  u3: ["тысяча", "тысячи", "тысяч"],
1641
1650
  u2: ["миллион", "миллиона", "миллионов"],
1642
1651
  u1: ["миллиард", "миллиарда", "миллиардов"]
1643
- }, s, i, c, l, w, _, d, C, u, m, h, g;
1652
+ }, s, i, c, l, w, _, d, C, u, m, x, g;
1644
1653
  u = parseFloat(e).toFixed(2).split("."), _ = u[0], l = u[1];
1645
1654
  var v = 12 - _.length;
1646
1655
  if (v < 0)
@@ -1651,31 +1660,31 @@ const os = (e) => {
1651
1660
  var w = [];
1652
1661
  if (_ > 0) {
1653
1662
  m = t(_, 3);
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(
1663
+ for (var y = -1; y < m.length; y++)
1664
+ if (d = m[y], d > 0 && (x = t(d, 1), s = parseInt(x[0]), i = parseInt(x[1]), c = parseInt(x[2]), w.push(r.a100[s - 1]), g = y + 1 == 3 ? "a2" : "a1", i > 1 ? w.push(
1656
1665
  r.a20[i - 2] + (c > 0 ? " " + r[g][c - 1] : "")
1657
1666
  ) : w.push(
1658
1667
  i > 0 ? r.a10[c] : r[g][c - 1]
1659
- ), m.length > k + 1)) {
1660
- var b = r["u" + (k + 1)];
1668
+ ), m.length > y + 1)) {
1669
+ var b = r["u" + (y + 1)];
1661
1670
  w.push(n(d, b));
1662
1671
  }
1663
1672
  } else
1664
1673
  w.push(r.null);
1665
1674
  return w.push(n(_, r.ur)), w.push(l + " " + n(l, r.uc)), w.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1666
1675
  };
1667
- function ls(e) {
1676
+ function cs(e) {
1668
1677
  let t = -1, n = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
1669
1678
  do
1670
1679
  e = e / 1024, t++;
1671
1680
  while (e > 1024);
1672
1681
  return Math.max(e, 0.1).toFixed(1) + n[t];
1673
1682
  }
1674
- function cs(e) {
1683
+ function ds(e) {
1675
1684
  let t = {};
1676
1685
  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];
1677
1686
  }
1678
- function ds(e, t, n, r) {
1687
+ function _s(e, t, n, r) {
1679
1688
  let s = {
1680
1689
  sexM: "m",
1681
1690
  sexF: "f",
@@ -1799,7 +1808,7 @@ function ds(e, t, n, r) {
1799
1808
  if (d === this.gcaseNom)
1800
1809
  return c;
1801
1810
  if (c.match(/[-]/)) {
1802
- for (var u = c.split("-"), m = 0, h = u.length; m < h; m++)
1811
+ for (var u = c.split("-"), m = 0, x = u.length; m < x; m++)
1803
1812
  u[m] = this.word(u[m], l, _, d);
1804
1813
  return u.join("-");
1805
1814
  }
@@ -1813,9 +1822,9 @@ function ds(e, t, n, r) {
1813
1822
  // выбираем из списка правил первое подходящее и применяем
1814
1823
  pick: function(c, l, _, d, u) {
1815
1824
  let m = c.toLowerCase();
1816
- for (var h = 0, g = d.length; h < g; h++)
1817
- if (this.ruleMatch(m, l, d[h], u))
1818
- return this.applyMod(c, _, d[h]);
1825
+ for (var x = 0, g = d.length; x < g; x++)
1826
+ if (this.ruleMatch(m, l, d[x], u))
1827
+ return this.applyMod(c, _, d[x]);
1819
1828
  return !1;
1820
1829
  },
1821
1830
  // проверяем, подходит ли правило к слову
@@ -1823,10 +1832,10 @@ function ds(e, t, n, r) {
1823
1832
  if (_.sex === this.sexM && l === this.sexF || _.sex === this.sexF && l !== this.sexF)
1824
1833
  return !1;
1825
1834
  for (var u = 0, m = _.test.length; u < m; u++) {
1826
- var h = d ? c : c.substr(
1835
+ var x = d ? c : c.substr(
1827
1836
  Math.max(c.length - _.test[u].length, 0)
1828
1837
  );
1829
- if (h === _.test[u])
1838
+ if (x === _.test[u])
1830
1839
  return !0;
1831
1840
  }
1832
1841
  return !1;
@@ -1855,15 +1864,15 @@ function ds(e, t, n, r) {
1855
1864
  break;
1856
1865
  }
1857
1866
  for (var u = 0, m = d.length; u < m; u++) {
1858
- var h = d.substr(u, 1);
1859
- switch (h) {
1867
+ var x = d.substr(u, 1);
1868
+ switch (x) {
1860
1869
  case ".":
1861
1870
  break;
1862
1871
  case "-":
1863
1872
  c = c.substr(0, c.length - 1);
1864
1873
  break;
1865
1874
  default:
1866
- c += h;
1875
+ c += x;
1867
1876
  }
1868
1877
  }
1869
1878
  return c;
@@ -1891,7 +1900,7 @@ function ds(e, t, n, r) {
1891
1900
  }
1892
1901
  return s.ln = e, s.fn = t || "", s.mn = n || "", s.sex = r || s.getSex(), s;
1893
1902
  }
1894
- function _s(e) {
1903
+ function us(e) {
1895
1904
  let t = e.split(" ");
1896
1905
  switch (t.length) {
1897
1906
  case 2:
@@ -1902,7 +1911,7 @@ function _s(e) {
1902
1911
  return e;
1903
1912
  }
1904
1913
  }
1905
- function us(e) {
1914
+ function ms(e) {
1906
1915
  return {
1907
1916
  1: { val: "01", name: "Январь", names: "Января", abc: "Янв" },
1908
1917
  2: { val: "02", name: "Февраль", names: "Февраля", abc: "Февр" },
@@ -1918,97 +1927,97 @@ function us(e) {
1918
1927
  12: { val: "12", name: "Декабрь", names: "Декабря", abc: "Дек" }
1919
1928
  }[e];
1920
1929
  }
1921
- function ms(e) {
1930
+ function fs(e) {
1922
1931
  return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
1923
1932
  }
1924
- function fs(e, t) {
1933
+ function hs(e, t) {
1925
1934
  let n = t + "";
1926
1935
  for (; n.length < e; )
1927
1936
  n = "0" + n;
1928
1937
  return n;
1929
1938
  }
1930
- function hs(e, t, n) {
1939
+ function xs(e, t, n) {
1931
1940
  let r = t / e * n;
1932
1941
  return (typeof r != "number" || r === 1 / 0) && (r = 0), parseFloat(r).toFixed(1);
1933
1942
  }
1934
- function xs(e) {
1943
+ function gs(e) {
1935
1944
  return e.charAt(0).toUpperCase() + e.slice(1);
1936
1945
  }
1937
- function gs(e, t) {
1946
+ function vs(e, t) {
1938
1947
  e = Math.abs(e) % 100;
1939
1948
  let n = e % 10;
1940
1949
  return e > 10 && e < 20 ? t[2] : n > 1 && n < 5 ? t[1] : n === 1 ? t[0] : t[2];
1941
1950
  }
1942
1951
  const G = {
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
1952
+ Date: is,
1953
+ MoneyString: ls,
1954
+ DateSort: os,
1955
+ Size: cs,
1956
+ TypeFiles: ds,
1957
+ Cases: _s,
1958
+ Initials: us,
1959
+ Month: ms,
1960
+ Money: fs,
1961
+ Number: hs,
1962
+ Percent: xs,
1963
+ CapitalizeFirstLetter: gs,
1964
+ DeclensionWord: vs
1956
1965
  };
1957
- function vs({ children: e }) {
1966
+ function ps({ children: e }) {
1958
1967
  return /* @__PURE__ */ a.jsx("div", { className: "l", children: /* @__PURE__ */ a.jsx("ul", { children: e }) });
1959
1968
  }
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,
1969
+ const Cs = "_white_11p39_14", ks = "_black_11p39_26", ys = "_shake_11p39_1", js = "_modal_11p39_73", bs = "_o_11p39_83", ws = "_w_11p39_14", Ss = "_h_11p39_107", Es = "_l_11p39_121", Rs = "_t_11p39_159", Ns = "_m_11p39_73", Ts = "_x_11p39_167", Is = "_s_11p39_177", Ds = "_c_11p39_182", Ms = "_f_11p39_187", Fs = "_btn_11p39_230", Ls = "_g_11p39_243", $s = "_confirm_11p39_322", Ps = "_cancel_11p39_327", Bs = "_disabled_11p39_332", Os = "_active_11p39_389", As = "_coincidence_11p39_395", Zs = "_sa_11p39_431", zs = "_ss_11p39_435", Gs = "_sm_11p39_439", Ks = "_sl_11p39_443", Ws = "_sx_11p39_447", Vs = "_sf_11p39_451", re = {
1970
+ white: Cs,
1971
+ black: ks,
1972
+ shake: ys,
1973
+ modal: js,
1974
+ o: bs,
1975
+ w: ws,
1976
+ h: Ss,
1977
+ l: Es,
1978
+ t: Rs,
1979
+ m: Ns,
1980
+ x: Ts,
1981
+ s: Is,
1982
+ c: Ds,
1983
+ f: Ms,
1984
+ btn: Fs,
1985
+ g: Ls,
1977
1986
  "size-a": "_size-a_11p39_296",
1978
1987
  "size-s": "_size-s_11p39_300",
1979
1988
  "size-m": "_size-m_11p39_304",
1980
1989
  "size-l": "_size-l_11p39_308",
1981
1990
  "size-x": "_size-x_11p39_312",
1982
1991
  "size-f": "_size-f_11p39_316",
1983
- confirm: Ls,
1984
- cancel: $s,
1985
- disabled: Ps,
1992
+ confirm: $s,
1993
+ cancel: Ps,
1994
+ disabled: Bs,
1986
1995
  await: "_await_11p39_339",
1987
- active: Bs,
1988
- coincidence: Os,
1989
- sa: As,
1990
- ss: Zs,
1991
- sm: zs,
1992
- sl: Gs,
1993
- sx: Ks,
1994
- sf: Ws
1996
+ active: Os,
1997
+ coincidence: As,
1998
+ sa: Zs,
1999
+ ss: zs,
2000
+ sm: Gs,
2001
+ sl: Ks,
2002
+ sx: Ws,
2003
+ sf: Vs
1995
2004
  };
1996
- function Vs({ children: e }) {
2005
+ function Us({ children: e }) {
1997
2006
  return /* @__PURE__ */ a.jsx("div", { className: re.s, children: e });
1998
2007
  }
1999
- function Us({ children: e, className: t }) {
2008
+ function Ys({ children: e, className: t }) {
2000
2009
  let n = {};
2001
2010
  return t && (n.className = t), /* @__PURE__ */ a.jsx("div", { "data-form": "outline", ...n, children: /* @__PURE__ */ a.jsx("ul", { children: e }) });
2002
2011
  }
2003
- function Ys({ children: e }) {
2012
+ function Hs({ children: e }) {
2004
2013
  return /* @__PURE__ */ a.jsx("div", { className: re.c, children: e });
2005
2014
  }
2006
- const Hs = "_btn_1hz2s_6", qs = "_confirm_1hz2s_19", sn = {
2007
- btn: Hs,
2008
- confirm: qs
2015
+ const qs = "_btn_1hz2s_6", Js = "_confirm_1hz2s_19", sn = {
2016
+ btn: qs,
2017
+ confirm: Js
2009
2018
  };
2010
- function Js({ onClick: e, onSend: t, label: n, onRef: r }) {
2011
- let [s, i] = x.useState(!1);
2019
+ function Xs({ onClick: e, onSend: t, label: n, onRef: r }) {
2020
+ let [s, i] = h.useState(!1);
2012
2021
  const c = () => {
2013
2022
  if (e)
2014
2023
  return e();
@@ -2025,15 +2034,15 @@ function Js({ onClick: e, onSend: t, label: n, onRef: r }) {
2025
2034
  );
2026
2035
  }
2027
2036
  let ye = {};
2028
- function Xs({ config: e }) {
2029
- let [t, n] = x.useState([]);
2037
+ function Qs({ config: e }) {
2038
+ let [t, n] = h.useState([]);
2030
2039
  return ye.x = () => {
2031
2040
  n([]);
2032
2041
  }, ye.config = e, ye.add = (r) => {
2033
2042
  n([...t, r]);
2034
2043
  }, /* @__PURE__ */ a.jsx(a.Fragment, { children: t.map((r) => r) });
2035
2044
  }
2036
- function Qs({
2045
+ function ei({
2037
2046
  title: e,
2038
2047
  children: t,
2039
2048
  button: n,
@@ -2041,7 +2050,7 @@ function Qs({
2041
2050
  size: s = "m",
2042
2051
  menu: i
2043
2052
  }) {
2044
- const [c, l] = x.useState(!0), _ = x.useRef(), d = (m) => {
2053
+ const [c, l] = h.useState(!0), _ = h.useRef(), d = (m) => {
2045
2054
  if (n) {
2046
2055
  if (n.onClick)
2047
2056
  return m(!1), n.onClick({ setOpen: l });
@@ -2068,14 +2077,14 @@ function Qs({
2068
2077
  /* @__PURE__ */ a.jsxs("div", { className: re.h, children: [
2069
2078
  /* @__PURE__ */ a.jsx("div", { className: re.t, children: e }),
2070
2079
  /* @__PURE__ */ a.jsxs("div", { className: re.m, children: [
2071
- r && /* @__PURE__ */ a.jsx("nav", { children: r.map((m, h) => /* @__PURE__ */ a.jsx(
2080
+ r && /* @__PURE__ */ a.jsx("nav", { children: r.map((m, x) => /* @__PURE__ */ a.jsx(
2072
2081
  "span",
2073
2082
  {
2074
2083
  onClick: m.onClick,
2075
2084
  className: m.active ? "active" : "",
2076
2085
  children: m.name
2077
2086
  },
2078
- h
2087
+ x
2079
2088
  )) }),
2080
2089
  i
2081
2090
  ] }),
@@ -2100,7 +2109,7 @@ function Qs({
2100
2109
  )
2101
2110
  ] }),
2102
2111
  t,
2103
- n !== void 0 ? /* @__PURE__ */ a.jsx(Js, { label: n.label, onSend: d }) : ""
2112
+ n !== void 0 ? /* @__PURE__ */ a.jsx(Xs, { label: n.label, onSend: d }) : ""
2104
2113
  ]
2105
2114
  }
2106
2115
  )
@@ -2108,13 +2117,13 @@ function Qs({
2108
2117
  }
2109
2118
  ) : "" });
2110
2119
  }
2111
- function ei(e) {
2112
- ye.add(/* @__PURE__ */ a.jsx(ti, { children: e }, String(Date.now())));
2120
+ function ti(e) {
2121
+ ye.add(/* @__PURE__ */ a.jsx(ni, { children: e }, String(Date.now())));
2113
2122
  }
2114
- function ti({ children: e }) {
2123
+ function ni({ children: e }) {
2115
2124
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
2116
2125
  }
2117
- function ni(e) {
2126
+ function ai(e) {
2118
2127
  if (e.target.classList[0] !== "modal")
2119
2128
  return;
2120
2129
  let t = e.target.children[0];
@@ -2122,18 +2131,18 @@ function ni(e) {
2122
2131
  t.setAttribute("shake", !1);
2123
2132
  }, 1e3);
2124
2133
  }
2125
- function ai({ type: e, name: t, params: n }) {
2126
- let [r, s] = x.useState(null);
2127
- return x.useEffect(() => {
2134
+ function ri({ type: e, name: t, params: n }) {
2135
+ let [r, s] = h.useState(null);
2136
+ return h.useEffect(() => {
2128
2137
  ye.config(e, t, n, s);
2129
2138
  }, [n.id]), /* @__PURE__ */ a.jsx(a.Fragment, { children: r });
2130
2139
  }
2131
- function ri(e, t, n) {
2140
+ function si(e, t, n) {
2132
2141
  ye.config(e, t, n);
2133
2142
  }
2134
- const wt = { List: vs, Scroll: Vs, Main: Qs, Add: ei, Icon: ai, Open: ri, Shake: ni, Form: Us, Center: Ys };
2143
+ const wt = { List: ps, Scroll: Us, Main: ei, Add: ti, Icon: ri, Open: si, Shake: ai, Form: Ys, Center: Hs };
2135
2144
  function wn({ text: e, type: t, button: n }) {
2136
- let [r, s] = x.useState(!1), i = { active: t };
2145
+ let [r, s] = h.useState(!1), i = { active: t };
2137
2146
  const c = () => {
2138
2147
  if (n) {
2139
2148
  if (n.onClick)
@@ -2142,7 +2151,7 @@ function wn({ text: e, type: t, button: n }) {
2142
2151
  return r ? void 0 : (s(!0), n.onSend(s));
2143
2152
  }
2144
2153
  };
2145
- return /* @__PURE__ */ a.jsxs("div", { className: mt.al, ...i, children: [
2154
+ return /* @__PURE__ */ a.jsxs("div", { className: ft.al, ...i, children: [
2146
2155
  /* @__PURE__ */ a.jsx(
2147
2156
  "svg",
2148
2157
  {
@@ -2164,22 +2173,22 @@ function wn({ text: e, type: t, button: n }) {
2164
2173
  n && /* @__PURE__ */ a.jsx("button", { onClick: c, children: n.label })
2165
2174
  ] });
2166
2175
  }
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,
2169
- g: ii,
2170
- hr: oi,
2171
- hl: li,
2172
- t: ci,
2173
- s: di,
2174
- u: _i,
2175
- o: ui,
2176
- l: mi,
2177
- hh: fi,
2178
- c: hi,
2179
- loadingB: xi,
2180
- m: gi,
2181
- ul: vi,
2182
- f: pi
2176
+ const ii = "_h_1usnu_1", oi = "_g_1usnu_11", li = "_hr_1usnu_16", ci = "_hl_1usnu_28", di = "_t_1usnu_40", _i = "_s_1usnu_60", ui = "_u_1usnu_69", mi = "_o_1usnu_76", fi = "_l_1usnu_105", hi = "_hh_1usnu_115", xi = "_c_1usnu_128", gi = "_loadingB_1usnu_1", vi = "_m_1usnu_180", pi = "_ul_1usnu_196", Ci = "_f_1usnu_226", X = {
2177
+ h: ii,
2178
+ g: oi,
2179
+ hr: li,
2180
+ hl: ci,
2181
+ t: di,
2182
+ s: _i,
2183
+ u: ui,
2184
+ o: mi,
2185
+ l: fi,
2186
+ hh: hi,
2187
+ c: xi,
2188
+ loadingB: gi,
2189
+ m: vi,
2190
+ ul: pi,
2191
+ f: Ci
2183
2192
  }, on = ({ title: e, left: t, right: n, children: r }) => /* @__PURE__ */ a.jsxs("div", { className: X.h, children: [
2184
2193
  /* @__PURE__ */ a.jsx("div", { className: X.t, children: e }),
2185
2194
  t && /* @__PURE__ */ a.jsx("div", { className: X.hl, children: t }),
@@ -2192,26 +2201,26 @@ const si = "_h_1usnu_1", ii = "_g_1usnu_11", oi = "_hr_1usnu_16", li = "_hl_1usn
2192
2201
  function _n({ children: e }) {
2193
2202
  return /* @__PURE__ */ a.jsx("div", { className: X.g, children: e });
2194
2203
  }
2195
- const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("div", { className: [X.o, t].join(" "), children: [
2204
+ const ki = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("div", { className: [X.o, t].join(" "), children: [
2196
2205
  n && /* @__PURE__ */ a.jsx("div", { className: X.hh, children: n }),
2197
2206
  e
2198
- ] }), ki = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.u, children: e }), yi = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.c, children: e }), ji = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.m, children: e }), un = {
2207
+ ] }), yi = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.u, children: e }), ji = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.c, children: e }), bi = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.m, children: e }), un = {
2199
2208
  Header: on,
2200
2209
  Section: cn,
2201
2210
  Group: _n,
2202
2211
  Form: dn,
2203
2212
  List: ln,
2204
2213
  A: wn,
2205
- U: ki,
2214
+ U: yi,
2206
2215
  G: _n,
2207
- C: yi,
2216
+ C: ji,
2208
2217
  L: ln,
2209
- O: Ci,
2218
+ O: ki,
2210
2219
  S: cn,
2211
2220
  H: on,
2212
- M: ji,
2221
+ M: bi,
2213
2222
  F: dn
2214
- }, bi = (e, t) => {
2223
+ }, wi = (e, t) => {
2215
2224
  switch (t.type) {
2216
2225
  case "load":
2217
2226
  return {
@@ -2272,15 +2281,15 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2272
2281
  default:
2273
2282
  return e;
2274
2283
  }
2275
- }, wi = () => ({
2284
+ }, Si = () => ({
2276
2285
  load: !0,
2277
2286
  list: [],
2278
2287
  name: "Файлы",
2279
2288
  add: !1,
2280
2289
  search: !1,
2281
2290
  revers: !0
2282
- }), Si = () => {
2283
- let [e, t] = x.useState([]);
2291
+ }), Ei = () => {
2292
+ let [e, t] = h.useState([]);
2284
2293
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ a.jsxs("div", { className: "upload view", children: [
2285
2294
  /* @__PURE__ */ a.jsxs("div", { className: "--head", children: [
2286
2295
  /* @__PURE__ */ a.jsx("b", { children: "Загрузки" }),
@@ -2295,17 +2304,17 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2295
2304
  ] }),
2296
2305
  /* @__PURE__ */ a.jsx("div", { className: "--list", children: e.map((n) => n) })
2297
2306
  ] }) : "" });
2298
- }, Ei = ({
2307
+ }, Ri = ({
2299
2308
  id: e,
2300
2309
  name: t,
2301
2310
  listen: n,
2302
2311
  dir: r
2303
2312
  }) => {
2304
2313
  t = t || "Файлы";
2305
- const [s, i] = x.useReducer(bi, {}, wi), c = () => {
2314
+ const [s, i] = h.useReducer(wi, {}, Si), c = () => {
2306
2315
  wt.Add(
2307
2316
  /* @__PURE__ */ a.jsx(
2308
- Ri,
2317
+ Ni,
2309
2318
  {
2310
2319
  dir: r,
2311
2320
  dispatch: i,
@@ -2315,7 +2324,7 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2315
2324
  )
2316
2325
  );
2317
2326
  };
2318
- return x.useEffect(() => {
2327
+ return h.useEffect(() => {
2319
2328
  (async () => {
2320
2329
  let l = await ce.Send({
2321
2330
  type: "module",
@@ -2354,15 +2363,15 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2354
2363
  /* @__PURE__ */ a.jsx("i", {}),
2355
2364
  /* @__PURE__ */ a.jsx("i", {}),
2356
2365
  /* @__PURE__ */ a.jsx("i", {})
2357
- ] }) : s.list.length === 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : s.list.map((l, _) => /* @__PURE__ */ a.jsx(Ni, { dispatch: i, data: l }, _)) })
2366
+ ] }) : s.list.length === 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : s.list.map((l, _) => /* @__PURE__ */ a.jsx(Ti, { dispatch: i, data: l }, _)) })
2358
2367
  ] });
2359
- }, Ri = ({ id: e, dir: t, dispatch: n }) => {
2360
- let [r, s] = x.useState(!0), i = x.useRef(null), c = (d) => {
2368
+ }, Ni = ({ id: e, dir: t, dispatch: n }) => {
2369
+ let [r, s] = h.useState(!0), i = h.useRef(null), c = (d) => {
2361
2370
  d.preventDefault(), d.stopPropagation();
2362
2371
  }, l = (d) => {
2363
2372
  }, _ = (d) => {
2364
2373
  };
2365
- return x.useEffect(() => {
2374
+ return h.useEffect(() => {
2366
2375
  let d = i.current;
2367
2376
  ["dragenter", "dragover", "dragleave", "drop"].forEach((u) => {
2368
2377
  d.addEventListener(u, c, !1), document.body.addEventListener(u, c, !1);
@@ -2405,7 +2414,7 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2405
2414
  },
2406
2415
  (/* @__PURE__ */ new Date()).getTime()
2407
2416
  ) }) : "" });
2408
- }, Ni = ({ data: e, dispatch: t }) => {
2417
+ }, Ti = ({ data: e, dispatch: t }) => {
2409
2418
  let n = async () => {
2410
2419
  let i = await (await fetch(nn.url().files + "/yandex/data/" + e.id, {
2411
2420
  headers: {
@@ -2457,10 +2466,10 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2457
2466
  let A = {};
2458
2467
  A.list = ar();
2459
2468
  A.active = null;
2460
- const Ti = () => {
2469
+ const Ii = () => {
2461
2470
  var s;
2462
- let [e, t] = x.useState([]), [n, r] = x.useState(St.getSetting("s03"));
2463
- return x.useEffect(() => {
2471
+ let [e, t] = h.useState([]), [n, r] = h.useState(St.getSetting("s03"));
2472
+ return h.useEffect(() => {
2464
2473
  (async () => {
2465
2474
  let i = Object.keys(A.list);
2466
2475
  if (i.length !== 0) {
@@ -2468,7 +2477,7 @@ const Ti = () => {
2468
2477
  i.forEach((l, _) => {
2469
2478
  c.push({
2470
2479
  item: /* @__PURE__ */ a.jsx(
2471
- ft,
2480
+ ht,
2472
2481
  {
2473
2482
  data: A.list[l]
2474
2483
  },
@@ -2485,7 +2494,7 @@ const Ti = () => {
2485
2494
  }, A.set = (i) => {
2486
2495
  t([
2487
2496
  ...e,
2488
- { item: /* @__PURE__ */ a.jsx(ft, { data: i }, i.id), link: i.link }
2497
+ { item: /* @__PURE__ */ a.jsx(ht, { data: i }, i.id), link: i.link }
2489
2498
  ]);
2490
2499
  }, A.del = (i) => {
2491
2500
  e.forEach((c, l) => {
@@ -2495,11 +2504,11 @@ const Ti = () => {
2495
2504
  "bookmarks",
2496
2505
  n === 1 && e.length !== 0 ? "bottom" : ""
2497
2506
  ), n !== 0 ? /* @__PURE__ */ a.jsx(a.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ a.jsx("div", { className: "bookmarks", children: e.map((i) => i.item) }) : "" }) : "";
2498
- }, Ii = ({ id: e, type: t, name: n }) => {
2499
- let r = t + "-" + e, [s, i] = x.useState(
2507
+ }, Di = ({ id: e, type: t, name: n }) => {
2508
+ let r = t + "-" + e, [s, i] = h.useState(
2500
2509
  A.list[r] !== void 0
2501
2510
  );
2502
- x.useEffect(() => {
2511
+ h.useEffect(() => {
2503
2512
  i(A.list[r] !== void 0);
2504
2513
  }, [r]);
2505
2514
  let c = () => {
@@ -2516,36 +2525,36 @@ const Ti = () => {
2516
2525
  onClick: c
2517
2526
  }
2518
2527
  ) : "" });
2519
- }, ft = ({ data: e }) => {
2528
+ }, ht = ({ data: e }) => {
2520
2529
  let t = (r) => {
2521
2530
  r.preventDefault(), delete A.list[e.link], A.del(e.link);
2522
2531
  }, n = () => {
2523
2532
  Ue.setId(e.id);
2524
2533
  };
2525
2534
  return /* @__PURE__ */ a.jsx("span", { onContextMenu: t, onClick: n, children: e.name });
2526
- }, Di = (e) => {
2535
+ }, Mi = (e) => {
2527
2536
  A.active(e);
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;
2537
+ }, O = {}, xt = {}, j = {};
2538
+ j.config = { iceServers: [{ url: "stun:stun.l.google.com:19302" }] };
2539
+ j.constraints = { optional: [{ DtlsSrtpKeyAgreement: !0 }] };
2540
+ j.other = [];
2541
+ j.users = {};
2542
+ j.asset = 0;
2543
+ j.remoute = !1;
2544
+ j.stream = null;
2545
+ j.user = 0;
2546
+ j.connect = !1;
2547
+ j.offer = null;
2548
+ j.btnRefuse = null;
2549
+ j.time = !1;
2541
2550
  let ge;
2542
2551
  ge = document.createElement("audio");
2543
2552
  ge.setAttribute("autoplay", "true");
2544
2553
  ge.setAttribute("muted", "true");
2545
2554
  O.start = async (e) => {
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) => {
2555
+ j.rtc = new RTCPeerConnection(j.config), j.other = [], j.remoute = !1, j.rtc.onicecandidate = (n) => {
2556
+ n.candidate && j.other.push(n.candidate);
2557
+ }, j.rtc.ontrack = (n) => {
2549
2558
  if (n.streams && n.streams[0])
2550
2559
  ge.srcObject = n.streams[0];
2551
2560
  else {
@@ -2558,94 +2567,94 @@ O.start = async (e) => {
2558
2567
  audio: { echoCancellation: !1, autoGainControl: !0 }
2559
2568
  });
2560
2569
  t.getTracks().forEach((n) => {
2561
- y.rtc.addTrack(n, t);
2562
- }), y.rtc.onconnectionstatechange = () => {
2563
- y.rtc.connectionState;
2564
- }, y.rtc.ontrack = async (n) => {
2570
+ j.rtc.addTrack(n, t);
2571
+ }), j.rtc.onconnectionstatechange = () => {
2572
+ j.rtc.connectionState;
2573
+ }, j.rtc.ontrack = async (n) => {
2565
2574
  if (n.streams && n.streams[0])
2566
2575
  ge.srcObject = n.streams[0];
2567
2576
  else {
2568
2577
  let r = new MediaStream(n.track);
2569
2578
  ge.srcObject = r;
2570
2579
  }
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) => {
2580
+ }, j.rtc.onaddstream = (n) => {
2581
+ }, j.rtc.onnegotiationneeded = (n) => {
2582
+ }, j.rtc.oniceconnectionstatechange = (n) => {
2583
+ }, j.rtc.onsignalingstatechange = (n) => {
2584
+ }, j.rtc.onicegatheringstatechange = (n) => {
2585
+ }, j.rtc.onicecandidateerror = (n) => {
2586
+ }, j.rtc.ondatachannel = (n) => {
2587
+ }, j.rtc.onerror = (n) => {
2579
2588
  }, e();
2580
2589
  };
2581
2590
  O.useListener = (e) => {
2582
- ht.rtc = e;
2591
+ xt.rtc = e;
2583
2592
  };
2584
2593
  O.setListener = (e) => {
2585
- ht.rtc && ht.rtc(e);
2594
+ xt.rtc && xt.rtc(e);
2586
2595
  };
2587
2596
  O.callTo = async (e) => {
2588
2597
  O.start(async () => {
2589
- const t = await y.rtc.createOffer();
2590
- await y.rtc.setLocalDescription(t), y.uid = e, ce.Send({
2598
+ const t = await j.rtc.createOffer();
2599
+ await j.rtc.setLocalDescription(t), j.uid = e, ce.Send({
2591
2600
  type: "module",
2592
2601
  module: "M00",
2593
2602
  query: "x0050",
2594
2603
  data: {
2595
2604
  type: "offer",
2596
2605
  offer: btoa(JSON.stringify(t)),
2597
- user: y.uid
2606
+ user: j.uid
2598
2607
  }
2599
2608
  });
2600
2609
  });
2601
2610
  };
2602
2611
  O.callIn = async (e) => {
2603
- y.asset = e.id, y.offer = e.offer, y.uid = e.id;
2612
+ j.asset = e.id, j.offer = e.offer, j.uid = e.id;
2604
2613
  };
2605
2614
  O.callRise = async () => {
2606
2615
  O.start(async () => {
2607
- y.rtc.setRemoteDescription(
2608
- new RTCSessionDescription(JSON.parse(atob(y.offer)))
2616
+ j.rtc.setRemoteDescription(
2617
+ new RTCSessionDescription(JSON.parse(atob(j.offer)))
2609
2618
  );
2610
- const e = await y.rtc.createAnswer();
2611
- await y.rtc.setLocalDescription(e), ce.Send({
2619
+ const e = await j.rtc.createAnswer();
2620
+ await j.rtc.setLocalDescription(e), ce.Send({
2612
2621
  type: "module",
2613
2622
  module: "M00",
2614
2623
  query: "x0050",
2615
2624
  data: {
2616
2625
  type: "answer",
2617
2626
  answer: btoa(JSON.stringify(e)),
2618
- user: y.uid
2627
+ user: j.uid
2619
2628
  }
2620
2629
  });
2621
2630
  });
2622
2631
  };
2623
2632
  O.callOk = async (e) => {
2624
- y.asset = e.id;
2633
+ j.asset = e.id;
2625
2634
  const t = new RTCSessionDescription(JSON.parse(atob(e.answer)));
2626
- await y.rtc.setRemoteDescription(t), ce.Send({
2635
+ await j.rtc.setRemoteDescription(t), ce.Send({
2627
2636
  type: "module",
2628
2637
  module: "M00",
2629
2638
  query: "x0050",
2630
2639
  data: {
2631
2640
  type: "IceCandidate",
2632
- candidate: JSON.parse(JSON.stringify(y.other)),
2633
- user: y.uid,
2641
+ candidate: JSON.parse(JSON.stringify(j.other)),
2642
+ user: j.uid,
2634
2643
  send: !0
2635
2644
  }
2636
2645
  });
2637
2646
  };
2638
2647
  O.IceCandidate = async (e) => {
2639
2648
  e.candidate.forEach((t) => {
2640
- y.rtc.addIceCandidate(new RTCIceCandidate(t));
2649
+ j.rtc.addIceCandidate(new RTCIceCandidate(t));
2641
2650
  }), e.send && ce.Send({
2642
2651
  type: "module",
2643
2652
  module: "M00",
2644
2653
  query: "x0050",
2645
2654
  data: {
2646
2655
  type: "IceCandidate",
2647
- candidate: JSON.parse(JSON.stringify(y.other)),
2648
- user: y.uid,
2656
+ candidate: JSON.parse(JSON.stringify(j.other)),
2657
+ user: j.uid,
2649
2658
  send: !1
2650
2659
  }
2651
2660
  });
@@ -2653,26 +2662,26 @@ O.IceCandidate = async (e) => {
2653
2662
  O.callFrom = async () => {
2654
2663
  };
2655
2664
  O.callNo = () => {
2656
- y.asset = 0, y.time = !1, y.rtc && y.rtc.close(), O.setListener({ type: "state", data: "closed" });
2665
+ j.asset = 0, j.time = !1, j.rtc && j.rtc.close(), O.setListener({ type: "state", data: "closed" });
2657
2666
  };
2658
2667
  O.callOf = () => {
2659
- y.asset = 0, y.time = !1, y.rtc.close();
2668
+ j.asset = 0, j.time = !1, j.rtc.close();
2660
2669
  };
2661
2670
  O.callRefuser = async () => {
2662
2671
  ce.Send({
2663
2672
  type: "module",
2664
2673
  module: "M00",
2665
2674
  query: "x0050",
2666
- data: { type: "callRefuser", user: y.uid }
2667
- }), y.asset = 0, y.time = !1, y.rtc && y.rtc.close();
2675
+ data: { type: "callRefuser", user: j.uid }
2676
+ }), j.asset = 0, j.time = !1, j.rtc && j.rtc.close();
2668
2677
  };
2669
2678
  O.Run = async (e) => {
2670
2679
  O[e.data.type] && O[e.data.type](e.data);
2671
2680
  };
2672
2681
  let Me = {};
2673
- function Mi() {
2674
- let [e, t] = x.useState([]), n = x.useRef(null);
2675
- return x.useEffect(() => {
2682
+ function Fi() {
2683
+ let [e, t] = h.useState([]), n = h.useRef(null);
2684
+ return h.useEffect(() => {
2676
2685
  }, []), Me.set = (r) => {
2677
2686
  t([...e, r]);
2678
2687
  }, Me.del = () => {
@@ -2684,16 +2693,16 @@ function Mi() {
2684
2693
  /* @__PURE__ */ a.jsx("audio", { id: "audio", ref: n, autoPlay: !0, muted: !0 })
2685
2694
  ] });
2686
2695
  }
2687
- function Fi(e, t) {
2696
+ function Li(e, t) {
2688
2697
  let n = (/* @__PURE__ */ new Date()).getTime();
2689
2698
  Me.set({
2690
- item: /* @__PURE__ */ a.jsx(Li, { type: t, id: e }, n),
2699
+ item: /* @__PURE__ */ a.jsx($i, { type: t, id: e }, n),
2691
2700
  key: n
2692
2701
  });
2693
2702
  }
2694
- function Li({ id: e, type: t }) {
2695
- const [n, r] = x.useState({}), [s, i] = x.useState(t);
2696
- x.useEffect(() => {
2703
+ function $i({ id: e, type: t }) {
2704
+ const [n, r] = h.useState({}), [s, i] = h.useState(t);
2705
+ h.useEffect(() => {
2697
2706
  r(se.getSelect("user")[e]);
2698
2707
  }, []), O.useListener((_) => {
2699
2708
  switch (_.type) {
@@ -2791,18 +2800,18 @@ function Li({ id: e, type: t }) {
2791
2800
  /* @__PURE__ */ a.jsx("div", { className: "b", children: c() })
2792
2801
  ] }) });
2793
2802
  }
2794
- const xt = {};
2795
- function $i(e) {
2796
- xt.add(e);
2803
+ const gt = {};
2804
+ function Pi(e) {
2805
+ gt.add(e);
2797
2806
  }
2798
- function Pi({ color: e, size: t, name: n }) {
2807
+ function Bi({ color: e, size: t, name: n }) {
2799
2808
  return /* @__PURE__ */ a.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ a.jsx("use", { href: `#${n}` }) });
2800
2809
  }
2801
- function Bi() {
2802
- let [e, t] = x.useState([]);
2803
- if (xt.x = () => {
2810
+ function Oi() {
2811
+ let [e, t] = h.useState([]);
2812
+ if (gt.x = () => {
2804
2813
  t([]);
2805
- }, xt.add = (r) => {
2814
+ }, gt.add = (r) => {
2806
2815
  t(r);
2807
2816
  }, e.length === 0)
2808
2817
  return "";
@@ -2819,70 +2828,70 @@ function Bi() {
2819
2828
  s
2820
2829
  )) });
2821
2830
  }
2822
- const gt = {};
2823
- function Oi(e, t) {
2824
- gt[e] = t;
2825
- }
2831
+ const vt = {};
2826
2832
  function Ai(e, t) {
2827
- gt[e] !== void 0 && gt[e](t);
2833
+ vt[e] = t;
2828
2834
  }
2829
- const de = {};
2830
2835
  function Zi(e, t) {
2831
- const [n, r] = x.useState(t);
2832
- return x.useEffect(() => {
2836
+ vt[e] !== void 0 && vt[e](t);
2837
+ }
2838
+ const de = {};
2839
+ function zi(e, t) {
2840
+ const [n, r] = h.useState(t);
2841
+ return h.useEffect(() => {
2833
2842
  if (de[e])
2834
2843
  return de[e].push(r);
2835
2844
  de[e] = [r];
2836
2845
  }, []), [n];
2837
2846
  }
2838
- function zi(e, t) {
2847
+ function Gi(e, t) {
2839
2848
  if (de[e])
2840
2849
  return de[e].push(t);
2841
2850
  de[e] = [t];
2842
2851
  }
2843
- function Gi(e, t) {
2852
+ function Ki(e, t) {
2844
2853
  de[e] && de[e].forEach((n) => n(t));
2845
2854
  }
2846
- const we = { setListener: Ai, useListener: Oi, setEmitter: Gi, useEmitter: Zi, subEmitter: zi };
2847
- function Ki() {
2848
- let [e, t] = x.useState([]);
2855
+ const we = { setListener: Zi, useListener: Ai, setEmitter: Ki, useEmitter: zi, subEmitter: Gi };
2856
+ function Wi() {
2857
+ let [e, t] = h.useState([]);
2849
2858
  return we.useListener("form", (n) => {
2850
2859
  t([n]);
2851
2860
  }), /* @__PURE__ */ a.jsx(a.Fragment, { children: e.map((n) => n) });
2852
2861
  }
2853
- const Wi = ({ children: e, config: t }) => (D.New(t.crypto), t.defaultModule && Ea(t.defaultModule), Na(
2862
+ const Vi = ({ children: e, config: t }) => (D.New(t.crypto), t.defaultModule && Ea(t.defaultModule), Na(
2854
2863
  /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2855
- /* @__PURE__ */ a.jsx(Xs, { config: t.modal }),
2856
- /* @__PURE__ */ a.jsx(wr, {}),
2857
- /* @__PURE__ */ a.jsx($r, {}),
2858
- /* @__PURE__ */ a.jsx(Si, {}),
2859
- /* @__PURE__ */ a.jsx(Bi, {}),
2860
- /* @__PURE__ */ a.jsx(Ki, {}),
2861
- /* @__PURE__ */ a.jsx(Mi, {}),
2862
- /* @__PURE__ */ a.jsx(Ti, {}),
2864
+ /* @__PURE__ */ a.jsx(Qs, { config: t.modal }),
2865
+ /* @__PURE__ */ a.jsx(Sr, {}),
2866
+ /* @__PURE__ */ a.jsx(Pr, {}),
2867
+ /* @__PURE__ */ a.jsx(Ei, {}),
2868
+ /* @__PURE__ */ a.jsx(Oi, {}),
2869
+ /* @__PURE__ */ a.jsx(Wi, {}),
2870
+ /* @__PURE__ */ a.jsx(Fi, {}),
2871
+ /* @__PURE__ */ a.jsx(Ii, {}),
2863
2872
  e
2864
2873
  ] })
2865
- )), Vi = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("menu", { children: e }), Ui = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("header", { children: [
2874
+ )), Ui = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("menu", { children: e }), Yi = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("header", { children: [
2866
2875
  "xz",
2867
2876
  e
2868
- ] }), Yi = "_payment_1lxfv_1", Hi = {
2869
- payment: Yi
2877
+ ] }), Hi = "_payment_1lxfv_1", qi = {
2878
+ payment: Hi
2870
2879
  };
2871
- function qi() {
2872
- let [e, t] = x.useState({});
2873
- return !e.active && !e.payment ? "" : /* @__PURE__ */ a.jsx("div", { className: Hi.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
2880
+ function Ji() {
2881
+ let [e, t] = h.useState({});
2882
+ return !e.active && !e.payment ? "" : /* @__PURE__ */ a.jsx("div", { className: qi.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
2874
2883
  }
2875
- const Il = ({ children: e, ...t }) => {
2884
+ const Dl = ({ children: e, ...t }) => {
2876
2885
  let n = {};
2877
2886
  return n.enCode = (r) => JSON.stringify(r).toString(), n.deCode = (r) => JSON.parse(r), /* @__PURE__ */ a.jsxs("div", { className: "app", children: [
2878
- /* @__PURE__ */ a.jsx(qi, {}),
2879
- /* @__PURE__ */ a.jsx(Vi, {}),
2887
+ /* @__PURE__ */ a.jsx(Ji, {}),
2880
2888
  /* @__PURE__ */ a.jsx(Ui, {}),
2881
- /* @__PURE__ */ a.jsx(Wi, { config: { modal: {}, crypto: n } }),
2889
+ /* @__PURE__ */ a.jsx(Yi, {}),
2890
+ /* @__PURE__ */ a.jsx(Vi, { config: { modal: {}, crypto: n } }),
2882
2891
  e
2883
2892
  ] });
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(
2885
- Xi,
2893
+ }, Xi = ({ 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(
2894
+ Qi,
2886
2895
  {
2887
2896
  onClick: t,
2888
2897
  active: n,
@@ -2890,9 +2899,9 @@ const Il = ({ children: e, ...t }) => {
2890
2899
  link: i.link
2891
2900
  },
2892
2901
  i.link
2893
- )) }) }), Xi = ({ onClick: e, label: t, link: n, active: r }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(r === n), onClick: () => e(n), children: t });
2894
- Ji.defaultProps = { size: "M", view: "H" };
2895
- const Qi = ({
2902
+ )) }) }), Qi = ({ onClick: e, label: t, link: n, active: r }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(r === n), onClick: () => e(n), children: t });
2903
+ Xi.defaultProps = { size: "M", view: "H" };
2904
+ const eo = ({
2896
2905
  title: e = "",
2897
2906
  button: t,
2898
2907
  description: n = "",
@@ -2912,10 +2921,10 @@ const Qi = ({
2912
2921
  ] }),
2913
2922
  /* @__PURE__ */ a.jsx("ul", { children: r }),
2914
2923
  n && /* @__PURE__ */ a.jsx("article", { children: n })
2915
- ] }), eo = "_setting_dva4m_2", to = {
2916
- setting: eo
2917
- }, no = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: to.setting, children: e }), ao = ({ label: e, children: t }) => {
2918
- let [n, r] = x.useState(!1);
2924
+ ] }), to = "_setting_dva4m_2", no = {
2925
+ setting: to
2926
+ }, ao = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: no.setting, children: e }), ro = ({ label: e, children: t }) => {
2927
+ let [n, r] = h.useState(!1);
2919
2928
  return /* @__PURE__ */ a.jsxs("li", { "data-item": "accordion", children: [
2920
2929
  /* @__PURE__ */ a.jsxs("dl", { onClick: () => r(!n), children: [
2921
2930
  /* @__PURE__ */ a.jsx("dt", { children: e }),
@@ -2923,10 +2932,10 @@ const Qi = ({
2923
2932
  ] }),
2924
2933
  n && /* @__PURE__ */ a.jsx("div", { children: t })
2925
2934
  ] });
2926
- }, ro = ({ label: e, onClick: t, button: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2935
+ }, so = ({ label: e, onClick: t, button: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2927
2936
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2928
2937
  /* @__PURE__ */ a.jsx("dd", { role: "button", onClick: () => t(), children: n })
2929
- ] }) }), so = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ a.jsx(
2938
+ ] }) }), io = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ a.jsx(
2930
2939
  "div",
2931
2940
  {
2932
2941
  role: "switch",
@@ -2935,25 +2944,25 @@ const Qi = ({
2935
2944
  },
2936
2945
  "aria-checked": e ? "true" : "false"
2937
2946
  }
2938
- )), io = { Switch: so }, oo = ({ label: e, onClick: t, active: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2947
+ )), oo = { Switch: io }, lo = ({ label: e, onClick: t, active: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2939
2948
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2940
- /* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx(io.Switch, { onClick: t, active: n }) })
2941
- ] }) }), lo = ({ label: e, active: t, options: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2949
+ /* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx(oo.Switch, { onClick: t, active: n }) })
2950
+ ] }) }), co = ({ label: e, active: t, options: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2942
2951
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2943
2952
  /* @__PURE__ */ a.jsx("dd", { role: "info", children: t })
2944
- ] }) }), co = ({ label: e, info: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2953
+ ] }) }), _o = ({ label: e, info: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2945
2954
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2946
2955
  /* @__PURE__ */ a.jsx("dd", { role: "info", children: t })
2947
- ] }) }), _o = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2956
+ ] }) }), uo = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2948
2957
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2949
2958
  /* @__PURE__ */ a.jsx("dd", { children: t })
2950
- ] }) }), uo = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2959
+ ] }) }), mo = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2951
2960
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2952
2961
  /* @__PURE__ */ a.jsx("dd", { children: t })
2953
- ] }) }), mo = { Accordion: ao, Button: ro, Switch: oo, Info: co, Select: lo, Component: _o, Node: uo };
2962
+ ] }) }), fo = { Accordion: ro, Button: so, Switch: lo, Info: _o, Select: co, Component: uo, Node: mo };
2954
2963
  function Sn({ list: e, onClick: t, active: n, size: r, view: s }) {
2955
2964
  return /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ a.jsx(
2956
- fo,
2965
+ ho,
2957
2966
  {
2958
2967
  onClick: t,
2959
2968
  active: n,
@@ -2963,10 +2972,10 @@ function Sn({ list: e, onClick: t, active: n, size: r, view: s }) {
2963
2972
  i.link
2964
2973
  )) }) });
2965
2974
  }
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 });
2975
+ const ho = ({ onClick: e, label: t, link: n, active: r }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(r === n), onClick: () => e(n), children: t });
2967
2976
  Sn.defaultProps = { size: "M", view: "H" };
2968
- const Dl = { Section: Qi, Main: no, Item: mo, Tabs: Sn }, Ml = { Icon: Ii, Item: ft, Active: Di }, Fl = { Send: Br, Line: wn };
2969
- function ho() {
2977
+ const Ml = { Section: eo, Main: ao, Item: fo, Tabs: Sn }, Fl = { Icon: Di, Item: ht, Active: Mi }, Ll = { Send: Or, Line: wn };
2978
+ function xo() {
2970
2979
  return /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ a.jsx(
2971
2980
  "path",
2972
2981
  {
@@ -2975,15 +2984,15 @@ function ho() {
2975
2984
  }
2976
2985
  ) });
2977
2986
  }
2978
- const Ll = { Logo: ho, Sprite: $i, Symbol: Pi }, xo = "_sort_1yrvt_1", go = {
2979
- sort: xo
2987
+ const $l = { Logo: xo, Sprite: Pi, Symbol: Bi }, go = "_sort_1yrvt_1", vo = {
2988
+ sort: go
2980
2989
  };
2981
- let qe = {};
2982
- function vo(e, t) {
2990
+ let Je = {};
2991
+ function po(e, t) {
2983
2992
  switch (t.type) {
2984
2993
  case "active":
2985
2994
  let n = "<";
2986
- return e.active === t.data && (n = e.sort === "<" ? ">" : "<"), qe.get({ active: t.data, sort: n }, !1), gn({ active: t.data, sort: n }), {
2995
+ return e.active === t.data && (n = e.sort === "<" ? ">" : "<"), Je.get({ active: t.data, sort: n }, !1), gn({ active: t.data, sort: n }), {
2987
2996
  ...e,
2988
2997
  active: t.data,
2989
2998
  sort: n
@@ -2992,12 +3001,12 @@ function vo(e, t) {
2992
3001
  throw new Error();
2993
3002
  }
2994
3003
  }
2995
- function po() {
2996
- const [e, t] = x.useReducer(
2997
- vo,
2998
- _t() === void 0 ? { active: 1, sort: "<" } : _t()
3004
+ function Co() {
3005
+ const [e, t] = h.useReducer(
3006
+ po,
3007
+ ut() === void 0 ? { active: 1, sort: "<" } : ut()
2999
3008
  );
3000
- return /* @__PURE__ */ a.jsxs("div", { className: go.sort, children: [
3009
+ return /* @__PURE__ */ a.jsxs("div", { className: vo.sort, children: [
3001
3010
  /* @__PURE__ */ a.jsx(
3002
3011
  "i",
3003
3012
  {
@@ -3024,13 +3033,13 @@ function po() {
3024
3033
  )
3025
3034
  ] });
3026
3035
  }
3027
- function Co(e) {
3028
- qe.get = e;
3029
- }
3030
3036
  function ko(e) {
3031
- qe.set(e);
3037
+ Je.get = e;
3038
+ }
3039
+ function yo(e) {
3040
+ Je.set(e);
3032
3041
  }
3033
- function yo(e, t, n) {
3042
+ function jo(e, t, n) {
3034
3043
  let r = 1, s = 0, i = {}, c = 50;
3035
3044
  i[r] = [];
3036
3045
  let l = {}, _ = "s1a";
@@ -3049,32 +3058,32 @@ function yo(e, t, n) {
3049
3058
  s++, s <= c || (r++, s = 1, i[r] = []), i[r].push(e[d.id]);
3050
3059
  }), { data: i };
3051
3060
  }
3052
- function jo(e) {
3053
- qe.count(e);
3054
- }
3055
- const $l = { Init: po, useValue: Co, Set: ko, Run: yo, Count: jo }, Ye = {}, En = {};
3056
3061
  function bo(e) {
3057
- const [t, n] = x.useState({}), r = async (s) => {
3062
+ Je.count(e);
3063
+ }
3064
+ const Pl = { Init: Co, useValue: ko, Set: yo, Run: jo, Count: bo }, Ye = {}, En = {};
3065
+ function wo(e) {
3066
+ const [t, n] = h.useState({}), r = async (s) => {
3058
3067
  n(
3059
3068
  Object.keys(Ye).reduce((i, c) => (i ? i[c] = Ye[c].all : i = {}, i), {})
3060
3069
  );
3061
3070
  };
3062
- return x.useEffect(() => {
3071
+ return h.useEffect(() => {
3063
3072
  e.forEach((s) => Ye[s] = { all: 0 }), En.menu = r, r();
3064
3073
  }, [e]), t;
3065
3074
  }
3066
- function wo(e, t) {
3075
+ function So(e, t) {
3067
3076
  switch (typeof t) {
3068
3077
  case "number":
3069
3078
  Ye[e].all += t, En.menu();
3070
3079
  break;
3071
3080
  }
3072
3081
  }
3073
- const Pl = { useMenu: bo, setUpdate: wo };
3074
- class So {
3082
+ const Bl = { useMenu: wo, setUpdate: So };
3083
+ class Eo {
3075
3084
  constructor(t = "el", n = "db") {
3076
- ot(this, "storeName");
3077
- ot(this, "_dbp");
3085
+ lt(this, "storeName");
3086
+ lt(this, "_dbp");
3078
3087
  this.storeName = n, this._dbp = new Promise((r, s) => {
3079
3088
  const i = indexedDB.open(t, 1);
3080
3089
  i.onerror = () => s(i.error), i.onsuccess = () => r(i.result), i.onupgradeneeded = () => {
@@ -3091,8 +3100,8 @@ class So {
3091
3100
  );
3092
3101
  }
3093
3102
  }
3094
- let lt, z = {};
3095
- const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withIDBStore("readwrite", (r) => {
3103
+ let ct, z = {};
3104
+ const Se = () => (ct || (ct = new Eo()), ct), me = (e, t, n = Se()) => n._withIDBStore("readwrite", (r) => {
3096
3105
  z[e] = t, r.put(D.enCode(t), e);
3097
3106
  }), oe = (e, t = Se()) => z[e] === void 0 ? new Promise((n, r) => {
3098
3107
  let s;
@@ -3105,32 +3114,32 @@ const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withID
3105
3114
  } else
3106
3115
  n({});
3107
3116
  });
3108
- }) : z[e], Eo = (e, t = Se()) => t._withIDBStore("readwrite", (n) => {
3117
+ }) : z[e], Ro = (e, t = Se()) => t._withIDBStore("readwrite", (n) => {
3109
3118
  n.delete(e);
3110
- }), vt = (e = Se()) => e._withIDBStore("readwrite", (t) => {
3119
+ }), pt = (e = Se()) => e._withIDBStore("readwrite", (t) => {
3111
3120
  t.clear();
3112
- }), Ro = (e = Se()) => {
3121
+ }), No = (e = Se()) => {
3113
3122
  const t = [];
3114
3123
  return e._withIDBStore("readonly", (n) => {
3115
3124
  (n.openKeyCursor || n.openCursor).call(n).onsuccess = function() {
3116
3125
  this.result && (t.push(this.result.key), this.result.continue());
3117
3126
  };
3118
3127
  }).then(() => t);
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 = {};
3121
- h[u] = [];
3128
+ }, To = (e, t, n = [], r = {}) => {
3129
+ 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 = [], x = {};
3130
+ x[u] = [];
3122
3131
  let g = (C) => {
3123
3132
  let w = "";
3124
- if (n.forEach((k) => {
3125
- w += t[C][k];
3133
+ if (n.forEach((y) => {
3134
+ w += t[C][y];
3126
3135
  }), l) {
3127
- let k = {};
3136
+ let y = {};
3128
3137
  _.forEach((b) => {
3129
- k[b] = t[C][b];
3138
+ y[b] = t[C][b];
3130
3139
  });
3131
3140
  for (let b in c)
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 });
3141
+ 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));
3142
+ i.push({ id: C, text: w, ...y });
3134
3143
  } else
3135
3144
  i.push({ id: C, text: w });
3136
3145
  }, v = (C) => {
@@ -3138,9 +3147,9 @@ const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withID
3138
3147
  return d.forEach((C) => {
3139
3148
  m.push(t[C]);
3140
3149
  }), m.forEach((C) => {
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()) => {
3150
+ C === void 0 ? (pt(), location.reload()) : (s && g(C.id), l && v(C.id));
3151
+ }), { list: x, search: i, filter: r };
3152
+ }, Io = (e, t, n, r = Se()) => {
3144
3153
  if (z[e] === void 0)
3145
3154
  return new Promise((s, i) => {
3146
3155
  let c;
@@ -3161,45 +3170,45 @@ const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withID
3161
3170
  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
3171
  s.put(D.enCode(z[e]), e), n !== void 0 && s.put(D.enCode(z[n]), n);
3163
3172
  });
3164
- }, Io = async (e, t, n, r) => {
3173
+ }, Do = async (e, t, n, r) => {
3165
3174
  let s, i;
3166
3175
  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) => {
3176
+ }, Mo = async (e, t, n, r) => {
3168
3177
  let s = await oe(t), i = await oe(n);
3169
3178
  for (let c in e)
3170
3179
  i[c] = e[c], s[c] = e[c].eDate;
3171
3180
  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) => {
3181
+ }, Fo = async (e, t, n, r) => {
3173
3182
  let s = await oe(t), i = await oe(n);
3174
3183
  e.forEach((c) => delete s[c]), await me(t, s), r !== void 0 && r({ type: "load", page: s, base: i });
3175
- }, Fo = async (e, t, n) => {
3184
+ }, Lo = async (e, t, n) => {
3176
3185
  let r = await oe(t);
3177
3186
  e.forEach((s) => delete r[s]), await me(t, r);
3178
- }, Lo = async (e, t, n) => {
3187
+ }, $o = async (e, t, n) => {
3179
3188
  let r = await oe(t);
3180
3189
  e.forEach((s) => r[s.id] = s.eDate), await me(t, r);
3181
- }, $o = async (e, t, n) => {
3190
+ }, Po = async (e, t, n) => {
3182
3191
  let r = await oe(t);
3183
3192
  if (n !== void 0)
3184
3193
  n({ type: "load", base: r });
3185
3194
  else
3186
3195
  return r[e];
3187
- }, Po = (e) => z[e], Bl = {
3188
- id: $o,
3196
+ }, Bo = (e) => z[e], Ol = {
3197
+ id: Po,
3189
3198
  get: oe,
3190
3199
  set: me,
3191
- add: Io,
3192
- del: Eo,
3193
- upd: To,
3194
- key: Ro,
3195
- load: Po,
3196
- split: No,
3197
- clear: vt,
3198
- updAll: Do,
3199
- delAll: Mo,
3200
- delList: Fo,
3201
- addList: Lo
3202
- }, Bo = (e, t) => {
3200
+ add: Do,
3201
+ del: Ro,
3202
+ upd: Io,
3203
+ key: No,
3204
+ load: Bo,
3205
+ split: To,
3206
+ clear: pt,
3207
+ updAll: Mo,
3208
+ delAll: Fo,
3209
+ delList: Lo,
3210
+ addList: $o
3211
+ }, Oo = (e, t) => {
3203
3212
  const n = [];
3204
3213
  t = t.map((r) => r.charCodeAt(0)), document.onkeydown = function(r) {
3205
3214
  n.push(r.keyCode);
@@ -3210,15 +3219,15 @@ const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withID
3210
3219
  }, document.onkeyup = function(r) {
3211
3220
  n.length = 0;
3212
3221
  };
3213
- }, Ol = { useKey: Bo }, Oo = "_s_18bde_1", Ao = "_loadingB_18bde_1", Zo = "_ul_18bde_31", zo = {
3214
- s: Oo,
3215
- loadingB: Ao,
3216
- ul: Zo
3222
+ }, Al = { useKey: Oo }, Ao = "_s_18bde_1", Zo = "_loadingB_18bde_1", zo = "_ul_18bde_31", Go = {
3223
+ s: Ao,
3224
+ loadingB: Zo,
3225
+ ul: zo
3217
3226
  };
3218
3227
  function Rn({ children: e }) {
3219
3228
  return /* @__PURE__ */ a.jsx("ul", { className: X.ul, children: e });
3220
3229
  }
3221
- function Go(e, t) {
3230
+ function Ko(e, t) {
3222
3231
  switch (t.type) {
3223
3232
  case "load":
3224
3233
  return {
@@ -3252,7 +3261,7 @@ function Go(e, t) {
3252
3261
  }
3253
3262
  }
3254
3263
  function Nn(e) {
3255
- const t = x.useRef(null), [n, r] = x.useReducer(Go, {
3264
+ const t = h.useRef(null), [n, r] = h.useReducer(Ko, {
3256
3265
  load: !1,
3257
3266
  list: [],
3258
3267
  data: {},
@@ -3260,20 +3269,20 @@ function Nn(e) {
3260
3269
  wait: !1,
3261
3270
  size: 0
3262
3271
  });
3263
- x.useEffect(() => {
3264
- }, []), x.useEffect(() => {
3272
+ h.useEffect(() => {
3273
+ }, []), h.useEffect(() => {
3265
3274
  t.current.scrollTop = 0, e.list !== null && r({ type: "load", load: !0, data: e.list });
3266
3275
  }, [e.load]);
3267
3276
  let s = () => {
3268
3277
  t.current.scrollHeight - t.current.scrollTop - 300 <= t.current.clientHeight && !n.wait && r({ type: "update" });
3269
3278
  };
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: [
3279
+ return /* @__PURE__ */ a.jsx("div", { className: Go.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: [
3271
3280
  /* @__PURE__ */ a.jsx("i", {}),
3272
3281
  /* @__PURE__ */ a.jsx("i", {}),
3273
3282
  /* @__PURE__ */ a.jsx("i", {})
3274
3283
  ] }) }) });
3275
3284
  }
3276
- const Al = { Scrolling: Nn }, Zl = { Widget: Ei }, Tn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ a.jsx(
3285
+ const Zl = { Scrolling: Nn }, zl = { Widget: Ri }, Tn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ a.jsx(
3277
3286
  "div",
3278
3287
  {
3279
3288
  role: "switch",
@@ -3310,13 +3319,13 @@ function $e({
3310
3319
  after: d = "",
3311
3320
  show: u = !0,
3312
3321
  view: m,
3313
- onBlur: h,
3322
+ onBlur: x,
3314
3323
  onSave: g,
3315
3324
  className: v = ""
3316
3325
  }) {
3317
3326
  let C = !!(c && (e === "" || e === void 0)), w = ($) => {
3318
3327
  t && t({ value: $.target.textContent, name: n });
3319
- }, k = ($) => {
3328
+ }, y = ($) => {
3320
3329
  $.key === "Enter" && $.preventDefault();
3321
3330
  }, b = ($) => {
3322
3331
  }, R = ($) => {
@@ -3332,8 +3341,8 @@ function $e({
3332
3341
  return "";
3333
3342
  const N = {};
3334
3343
  N.field = "input", v && (N.className = v);
3335
- const j = {};
3336
- r && (j.placeholder = r), j.edit = (l && _) + "";
3344
+ const k = {};
3345
+ r && (k.placeholder = r), k.edit = (l && _) + "";
3337
3346
  const F = ($) => {
3338
3347
  ve.Blur($), g && g({ value: $.target.textContent, name: n });
3339
3348
  };
@@ -3345,11 +3354,11 @@ function $e({
3345
3354
  onPaste: b,
3346
3355
  onInput: w,
3347
3356
  onBlur: F,
3348
- onKeyDown: k,
3357
+ onKeyDown: y,
3349
3358
  onContextMenu: R,
3350
3359
  contentEditable: l && _ ? "plaintext-only" : "false",
3351
3360
  suppressContentEditableWarning: !0,
3352
- ...j,
3361
+ ...k,
3353
3362
  children: e
3354
3363
  }
3355
3364
  ),
@@ -3357,7 +3366,7 @@ function $e({
3357
3366
  ] });
3358
3367
  }
3359
3368
  function In({ onClick: e, onSend: t, name: n, onRef: r }) {
3360
- let [s, i] = x.useState(!1);
3369
+ let [s, i] = h.useState(!1);
3361
3370
  const c = () => {
3362
3371
  if (e)
3363
3372
  return e();
@@ -3385,7 +3394,7 @@ function Dn({
3385
3394
  active: l = !0,
3386
3395
  placeholder: _ = "Введите сообщение"
3387
3396
  }) {
3388
- const d = x.useRef({
3397
+ const d = h.useRef({
3389
3398
  value: e,
3390
3399
  timerId: null,
3391
3400
  shift: !1,
@@ -3394,14 +3403,14 @@ function Dn({
3394
3403
  d.current.value.length > 0 ? d.current.send && (n(!0), d.current.send = !1, d.current.timerId = setTimeout(() => {
3395
3404
  d.current.send = !0;
3396
3405
  }, 3e3)) : n(!1);
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) => {
3406
+ }, m = (y) => {
3407
+ d.current.value = y.target.textContent, u();
3408
+ }, x = (y) => {
3409
+ y.keyCode === 16 && (d.current.shift = !0), y.keyCode === 13 && !d.current.shift && (y.preventDefault(), d.current.value.length !== 0 && (y.target.textContent = "", r && r(d.current.value), t && t(d.current.value), d.current.value = "", n(!1)));
3410
+ }, g = (y) => {
3411
+ y.keyCode === 16 && (d.current.shift = !1);
3412
+ }, v = (y) => {
3413
+ y.preventDefault(), navigator.clipboard.readText().then((b) => {
3405
3414
  window.document.execCommand("insertText", !1, b);
3406
3415
  }).catch((b) => {
3407
3416
  });
@@ -3416,7 +3425,7 @@ function Dn({
3416
3425
  onPaste: v,
3417
3426
  onInput: m,
3418
3427
  onKeyUp: g,
3419
- onKeyDown: h,
3428
+ onKeyDown: x,
3420
3429
  onBlur: C,
3421
3430
  ...w,
3422
3431
  suppressContentEditableWarning: !0,
@@ -3452,7 +3461,7 @@ function Mn(e) {
3452
3461
  ] });
3453
3462
  }
3454
3463
  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) => {
3464
+ let s = (g, v) => Number(Math.round(g + Math.random() * (v - g))), i = h.useRef(null), c = h.useRef(null), l = s(1e4, 99999), _ = (g) => {
3456
3465
  g.key !== "Backspace" && (g.key === "Enter" && g.preventDefault(), g.target.textContent.length === 5 && g.preventDefault(), /\d/.test(g.key) || g.preventDefault());
3457
3466
  }, d = (g) => {
3458
3467
  t({ value: Number(g.target.textContent) === l, name: r });
@@ -3466,14 +3475,14 @@ function Fn({ value: e, onValue: t, placeholder: n = "", name: r }) {
3466
3475
  }).catch((v) => {
3467
3476
  });
3468
3477
  };
3469
- x.useEffect(() => {
3478
+ h.useEffect(() => {
3470
3479
  const g = i.current, v = g.getContext("2d");
3471
3480
  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 = "";
3472
3481
  }, [l]);
3473
3482
  const m = {};
3474
3483
  m.field = "captcha";
3475
- const h = {};
3476
- return n && (h.placeholder = n), /* @__PURE__ */ a.jsxs("dl", { ...m, children: [
3484
+ const x = {};
3485
+ return n && (x.placeholder = n), /* @__PURE__ */ a.jsxs("dl", { ...m, children: [
3477
3486
  /* @__PURE__ */ a.jsx(
3478
3487
  "dd",
3479
3488
  {
@@ -3484,7 +3493,7 @@ function Fn({ value: e, onValue: t, placeholder: n = "", name: r }) {
3484
3493
  onKeyDown: _,
3485
3494
  contentEditable: "plaintext-only",
3486
3495
  suppressContentEditableWarning: !0,
3487
- ...h
3496
+ ...x
3488
3497
  }
3489
3498
  ),
3490
3499
  /* @__PURE__ */ a.jsx("canvas", { ref: i, width: "100", height: "35" })
@@ -3626,7 +3635,7 @@ function Ln(e) {
3626
3635
  function $n(e) {
3627
3636
  let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "";
3628
3637
  e.edit !== void 0 && e.edit, e.active !== void 0 && e.active;
3629
- let [r, s] = x.useState(e.value), i = (c) => {
3638
+ let [r, s] = h.useState(e.value), i = (c) => {
3630
3639
  let l = c.target.getAttribute("set-color");
3631
3640
  s(l), e.onValue({ value: l, name: e.name });
3632
3641
  };
@@ -3653,15 +3662,15 @@ function $n(e) {
3653
3662
  }
3654
3663
  ) });
3655
3664
  }
3656
- const Ko = "_o_ff5dx_1", Wo = "_c_ff5dx_11", je = {
3657
- o: Ko,
3658
- c: Wo
3665
+ const Wo = "_o_ff5dx_1", Vo = "_c_ff5dx_11", je = {
3666
+ o: Wo,
3667
+ c: Vo
3659
3668
  };
3660
3669
  function Et(e) {
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(
3670
+ 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] = h.useState(
3662
3671
  e.value === void 0 ? /* @__PURE__ */ new Date() : e.value
3663
3672
  ), _ = !r && s;
3664
- x.useEffect(() => {
3673
+ h.useEffect(() => {
3665
3674
  l(e.value === void 0 ? /* @__PURE__ */ new Date() : e.value);
3666
3675
  }, [e.value]);
3667
3676
  let d = (g) => {
@@ -3671,7 +3680,7 @@ function Et(e) {
3671
3680
  we.setListener(
3672
3681
  "form",
3673
3682
  /* @__PURE__ */ a.jsx(
3674
- Vo,
3683
+ Uo,
3675
3684
  {
3676
3685
  position: { x: C, y: w },
3677
3686
  onValue: d,
@@ -3683,8 +3692,8 @@ function Et(e) {
3683
3692
  };
3684
3693
  const m = {};
3685
3694
  m.field = "input";
3686
- const h = {};
3687
- return i && (h.placeholder = i), _ ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsx(a.Fragment, { children: e.view === "icon" ? /* @__PURE__ */ a.jsx(
3695
+ const x = {};
3696
+ return i && (x.placeholder = i), _ ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsx(a.Fragment, { children: e.view === "icon" ? /* @__PURE__ */ a.jsx(
3688
3697
  "i",
3689
3698
  {
3690
3699
  "data-icon": "F043",
@@ -3702,7 +3711,7 @@ function Et(e) {
3702
3711
  "dd",
3703
3712
  {
3704
3713
  onClick: u,
3705
- ...h,
3714
+ ...x,
3706
3715
  "data-edit": (r && s) + "",
3707
3716
  children: G.Date(c, "dd.mm.yyyy")
3708
3717
  }
@@ -3712,8 +3721,8 @@ function Et(e) {
3712
3721
  }
3713
3722
  ) });
3714
3723
  }
3715
- const Vo = (e) => {
3716
- let [t, n] = x.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3724
+ const Uo = (e) => {
3725
+ let [t, n] = h.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3717
3726
  y: parseInt(r.getFullYear()),
3718
3727
  d: parseInt(r.getDate()),
3719
3728
  m: parseInt(r.getMonth()) + 1
@@ -3721,26 +3730,26 @@ const Vo = (e) => {
3721
3730
  y: parseInt(s.getFullYear()),
3722
3731
  d: parseInt(s.getDate()),
3723
3732
  m: parseInt(s.getMonth()) + 1
3724
- }, [l, _] = x.useState({ y: c.y, m: c.m }), d = (j) => {
3725
- let F = j.getDay();
3733
+ }, [l, _] = h.useState({ y: c.y, m: c.m }), d = (k) => {
3734
+ let F = k.getDay();
3726
3735
  return F === 0 && (F = 7), F - 1;
3727
- }, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], m = l.m - 1, h = new Date(l.y, m), g = [];
3728
- for (let j = 0; j < d(h); j++)
3736
+ }, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], m = l.m - 1, x = new Date(l.y, m), g = [];
3737
+ for (let k = 0; k < d(x); k++)
3729
3738
  g.push(0);
3730
- for (; h.getMonth() === m; )
3731
- g.push(h.getDate()), h.setDate(h.getDate() + 1);
3739
+ for (; x.getMonth() === m; )
3740
+ g.push(x.getDate()), x.setDate(x.getDate() + 1);
3732
3741
  let v = () => {
3733
3742
  n(!1);
3734
3743
  }, C = () => {
3735
3744
  b(l.m + 1, l.y);
3736
3745
  }, w = () => {
3737
3746
  b(l.m - 1, l.y);
3738
- }, k = (j) => {
3747
+ }, y = (k) => {
3739
3748
  e.onValue(
3740
- l.y + "-" + G.Number(2, l.m) + "-" + G.Number(2, j)
3749
+ l.y + "-" + G.Number(2, l.m) + "-" + G.Number(2, k)
3741
3750
  ), v();
3742
- }, b = (j, F) => {
3743
- F = j > 12 ? F + 1 : j < 1 ? F - 1 : F, j = j > 12 ? 1 : j < 1 ? 12 : j, _({ y: F, m: j });
3751
+ }, b = (k, F) => {
3752
+ F = k > 12 ? F + 1 : k < 1 ? F - 1 : F, k = k > 12 ? 1 : k < 1 ? 12 : k, _({ y: F, m: k });
3744
3753
  }, 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;
3745
3754
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3746
3755
  /* @__PURE__ */ a.jsx(
@@ -3767,13 +3776,13 @@ const Vo = (e) => {
3767
3776
  /* @__PURE__ */ a.jsx("i", { "data-icon": "F022", onClick: () => C() })
3768
3777
  ] }),
3769
3778
  /* @__PURE__ */ a.jsxs("div", { children: [
3770
- u.map((j, F) => /* @__PURE__ */ a.jsx("p", { children: j }, "v" + F)),
3771
- g.map((j, F) => /* @__PURE__ */ a.jsx("span", { children: j !== 0 ? /* @__PURE__ */ a.jsx(
3779
+ u.map((k, F) => /* @__PURE__ */ a.jsx("p", { children: k }, "v" + F)),
3780
+ g.map((k, F) => /* @__PURE__ */ a.jsx("span", { children: k !== 0 ? /* @__PURE__ */ a.jsx(
3772
3781
  "b",
3773
3782
  {
3774
- color: i.y === l.y && i.m === l.m && i.d === j ? "_FFEB3B" : "",
3775
- onClick: () => k(j),
3776
- children: j
3783
+ color: i.y === l.y && i.m === l.m && i.d === k ? "_FFEB3B" : "",
3784
+ onClick: () => y(k),
3785
+ children: k
3777
3786
  }
3778
3787
  ) : /* @__PURE__ */ a.jsx("p", {}) }, F))
3779
3788
  ] })
@@ -3795,17 +3804,17 @@ function Rt({
3795
3804
  active: d = !0,
3796
3805
  after: u = "",
3797
3806
  view: m,
3798
- modal: h,
3807
+ modal: x,
3799
3808
  module: g,
3800
3809
  options: v
3801
3810
  }) {
3802
- let [C, w] = x.useState(e), k = (b) => {
3803
- if (!h)
3811
+ let [C, w] = h.useState(e), y = (R) => {
3812
+ if (!x)
3804
3813
  return;
3805
- let R = h.split(".");
3806
- wt.Open(R[0], R[1], {
3807
- callback: (N) => {
3808
- t && t({ value: N, name: n }), w(N);
3814
+ let N = x.split(".");
3815
+ wt.Open(N[0], N[1], {
3816
+ callback: (k) => {
3817
+ t && t({ value: k, name: n }), w(k);
3809
3818
  },
3810
3819
  onValue: t,
3811
3820
  options: v,
@@ -3813,12 +3822,13 @@ function Rt({
3813
3822
  value: e
3814
3823
  });
3815
3824
  };
3816
- return c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { "data-form": "select", "data-view": m, children: [
3825
+ const b = {};
3826
+ return b.field = "input", c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...b, children: [
3817
3827
  s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
3818
3828
  /* @__PURE__ */ a.jsx(
3819
3829
  "dd",
3820
3830
  {
3821
- onClick: k,
3831
+ onClick: y,
3822
3832
  "data-edit": (l && d) + "",
3823
3833
  "data-placeholder": r,
3824
3834
  "data-after": u,
@@ -3829,9 +3839,9 @@ function Rt({
3829
3839
  ] });
3830
3840
  }
3831
3841
  function Nt(e) {
3832
- let t = e.value, n = (m) => e.type === "multi" ? m.replace(/[^+\d.+-]/g, "") : m.replace(/[^+\d.]/g, ""), r = (m, h) => {
3842
+ let t = e.value, n = (m) => e.type === "multi" ? m.replace(/[^+\d.+-]/g, "") : m.replace(/[^+\d.]/g, ""), r = (m, x) => {
3833
3843
  let g = document.createRange(), v = window.getSelection();
3834
- g.setStart(h.childNodes[0], m), g.collapse(!0), v.removeAllRanges(), v.addRange(g), h.focus();
3844
+ g.setStart(x.childNodes[0], m), g.collapse(!0), v.removeAllRanges(), v.addRange(g), x.focus();
3835
3845
  }, s = (m) => {
3836
3846
  e.onValue({
3837
3847
  value: n(m.target.textContent),
@@ -3847,9 +3857,9 @@ function Nt(e) {
3847
3857
  }, l = (m) => {
3848
3858
  m.key === "Enter" && m.preventDefault();
3849
3859
  }, _ = (m) => {
3850
- m.preventDefault(), navigator.clipboard.readText().then((h) => {
3851
- h = h.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, h);
3852
- }).catch((h) => {
3860
+ m.preventDefault(), navigator.clipboard.readText().then((x) => {
3861
+ x = x.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, x);
3862
+ }).catch((x) => {
3853
3863
  });
3854
3864
  }, d = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", u = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "";
3855
3865
  return /* @__PURE__ */ a.jsxs(
@@ -3889,23 +3899,23 @@ function Pn({
3889
3899
  placeholder: _ = "",
3890
3900
  after: d
3891
3901
  }) {
3892
- let [u, m] = x.useState(e);
3893
- x.useEffect(() => {
3902
+ let [u, m] = h.useState(e);
3903
+ h.useEffect(() => {
3894
3904
  m(e);
3895
3905
  }, [e]);
3896
- let h = (C) => {
3906
+ let x = (C) => {
3897
3907
  m(C), t && t({ value: C, name: n });
3898
3908
  }, g = (C) => {
3899
3909
  if (!i || !c)
3900
3910
  return;
3901
- const w = C.target.getBoundingClientRect(), k = w.left, b = w.top;
3911
+ const w = C.target.getBoundingClientRect(), y = w.left, b = w.top;
3902
3912
  we.setListener(
3903
3913
  "form",
3904
3914
  /* @__PURE__ */ a.jsx(
3905
- Uo,
3915
+ Yo,
3906
3916
  {
3907
- position: { x: k, y: b },
3908
- onValue: h,
3917
+ position: { x: y, y: b },
3918
+ onValue: x,
3909
3919
  date: u
3910
3920
  },
3911
3921
  (/* @__PURE__ */ new Date()).getTime()
@@ -3937,22 +3947,22 @@ function Pn({
3937
3947
  }
3938
3948
  ) });
3939
3949
  }
3940
- const Uo = (e) => {
3941
- let [t, n] = x.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3950
+ const Yo = (e) => {
3951
+ let [t, n] = h.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3942
3952
  y: parseInt(r.getFullYear()),
3943
3953
  m: parseInt(r.getMonth()) + 1
3944
3954
  }, c = {
3945
3955
  y: parseInt(s.getFullYear()),
3946
3956
  m: parseInt(s.getMonth()) + 1
3947
- }, [l, _] = x.useState(c.y), d = () => {
3957
+ }, [l, _] = h.useState(c.y), d = () => {
3948
3958
  n(!1);
3949
3959
  }, u = () => {
3950
3960
  _(l + 1);
3951
3961
  }, m = () => {
3952
3962
  _(l - 1);
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;
3963
+ }, x = (y) => {
3964
+ e.onValue(l + "-" + G.Number(2, y)), d();
3965
+ }, g = (y) => i.y === c.y && i.m === y ? "_FFEB3B" : "", v = 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;
3956
3966
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3957
3967
  /* @__PURE__ */ a.jsx(
3958
3968
  "div",
@@ -3976,14 +3986,14 @@ const Uo = (e) => {
3976
3986
  /* @__PURE__ */ a.jsx(
3977
3987
  "div",
3978
3988
  {
3979
- children: v.map((k, b) => /* @__PURE__ */ a.jsx(
3989
+ children: v.map((y, b) => /* @__PURE__ */ a.jsx(
3980
3990
  "span",
3981
3991
  {
3982
3992
  onClick: () => {
3983
- h(k);
3993
+ x(y);
3984
3994
  },
3985
- color: g(k),
3986
- children: /* @__PURE__ */ a.jsx("b", { children: G.Month(k).abc })
3995
+ color: g(y),
3996
+ children: /* @__PURE__ */ a.jsx("b", { children: G.Month(y).abc })
3987
3997
  },
3988
3998
  b
3989
3999
  ))
@@ -3995,7 +4005,7 @@ const Uo = (e) => {
3995
4005
  ] }) : "" });
3996
4006
  };
3997
4007
  function Bn(e) {
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);
4008
+ let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", [r, s] = h.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
4009
  r = i ? !0 : r;
4000
4010
  let d = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (C) => {
4001
4011
  e.onValue({ value: C.target.innerText, name: e.name });
@@ -4004,7 +4014,7 @@ function Bn(e) {
4004
4014
  window.document.execCommand("insertText", !1, w);
4005
4015
  }).catch((w) => {
4006
4016
  });
4007
- }, h = (C) => {
4017
+ }, x = (C) => {
4008
4018
  i || s(!r);
4009
4019
  };
4010
4020
  const g = {};
@@ -4021,7 +4031,7 @@ function Bn(e) {
4021
4031
  "data-edit": (i && c) + "",
4022
4032
  "data-open": "" + r,
4023
4033
  ...v,
4024
- onDoubleClick: h,
4034
+ onDoubleClick: x,
4025
4035
  suppressContentEditableWarning: !0,
4026
4036
  children: e.value
4027
4037
  }
@@ -4042,23 +4052,23 @@ function Tt({
4042
4052
  placeholder: d,
4043
4053
  className: u,
4044
4054
  name: m,
4045
- after: h,
4055
+ after: x,
4046
4056
  view: g
4047
4057
  }) {
4048
4058
  let v = () => s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "", C = () => i ? /* @__PURE__ */ a.jsx("em", { children: i }) : "";
4049
4059
  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) => {
4060
+ let y = !1, b = (P) => {
4051
4061
  e && e({ value: P.target.textContent, name: m });
4052
4062
  }, R = (P) => {
4053
- if (!(k && P.which === 86)) {
4063
+ if (!(y && P.which === 86)) {
4054
4064
  if (P.which === 17 || P.which === 91)
4055
- return k = !0;
4065
+ return y = !0;
4056
4066
  P.key !== "Backspace" && (P.target.textContent.length === n && P.preventDefault(), P.key === "Enter" && P.preventDefault(), isNaN(parseInt(String.fromCharCode(P.which))) && P.preventDefault());
4057
4067
  }
4058
4068
  }, N = (P) => {
4059
4069
  if (P.which === 17 || P.which === 91)
4060
- return k = !1;
4061
- }, j = (P) => {
4070
+ return y = !1;
4071
+ }, k = (P) => {
4062
4072
  P.preventDefault(), navigator.clipboard.readText().then((H) => {
4063
4073
  H = H.replace(/\D/g, ""), window.document.execCommand(
4064
4074
  "insertText",
@@ -4071,13 +4081,13 @@ function Tt({
4071
4081
  const F = {};
4072
4082
  F.field = "input", u && (F.className = u);
4073
4083
  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: [
4084
+ return r && t ? ($.edit = "true", $.contentEditable = "plaintext-only") : $.contentEditable = "false", d && ($.placeholder = d), x && ($.after = x), l ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...F, children: [
4075
4085
  v(),
4076
4086
  /* @__PURE__ */ a.jsx(
4077
4087
  "dd",
4078
4088
  {
4079
4089
  ...$,
4080
- onPaste: j,
4090
+ onPaste: k,
4081
4091
  onInput: b,
4082
4092
  onKeyDown: R,
4083
4093
  onKeyUp: N,
@@ -4107,16 +4117,16 @@ function On({
4107
4117
  name: n,
4108
4118
  reload: d
4109
4119
  });
4110
- }, h = (w) => {
4120
+ }, x = (w) => {
4111
4121
  w.key === "Enter" && w.preventDefault();
4112
4122
  }, g = (w) => {
4113
- w.preventDefault(), navigator.clipboard.readText().then((k) => {
4123
+ w.preventDefault(), navigator.clipboard.readText().then((y) => {
4114
4124
  window.document.execCommand(
4115
4125
  "insertText",
4116
4126
  !1,
4117
- k.replace(/(\r\n|\n|\r)/gm, " ")
4127
+ y.replace(/(\r\n|\n|\r)/gm, " ")
4118
4128
  );
4119
- }).catch((k) => {
4129
+ }).catch((y) => {
4120
4130
  });
4121
4131
  };
4122
4132
  const v = {};
@@ -4129,7 +4139,7 @@ function On({
4129
4139
  {
4130
4140
  onPaste: g,
4131
4141
  onInput: m,
4132
- onKeyDown: h,
4142
+ onKeyDown: x,
4133
4143
  onBlur: ve.Blur,
4134
4144
  contentEditable: l && _ ? "plaintext-only" : "false",
4135
4145
  ...C,
@@ -4140,7 +4150,7 @@ function On({
4140
4150
  c ? /* @__PURE__ */ a.jsx("em", { children: c }) : ""
4141
4151
  ] });
4142
4152
  }
4143
- const ct = {
4153
+ const dt = {
4144
4154
  0: {
4145
4155
  name: "Heard Island and Mcdonald Islands",
4146
4156
  dial_code: "+0",
@@ -5535,10 +5545,10 @@ function It({
5535
5545
  after: d = "",
5536
5546
  show: u = !0,
5537
5547
  view: m,
5538
- className: h = ""
5548
+ className: x = ""
5539
5549
  }) {
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) => {
5550
+ l = l !== void 0 ? l : !0, _ = _ !== void 0 ? _ : !0, c = !!(c && (e === "" || e === void 0)) && !(l && _), h.useRef(null);
5551
+ let v = "+_(___) ___-__-__", C = !0, w = 0, y = (V, B) => {
5542
5552
  let ae = document.createRange(), K = window.getSelection();
5543
5553
  ae.setStart(B.childNodes[0], V), ae.collapse(!0), K.removeAllRanges(), K.addRange(ae), B.focus();
5544
5554
  }, b = (V) => {
@@ -5551,7 +5561,7 @@ function It({
5551
5561
  K === "" && (C = !0);
5552
5562
  let le = K.split(""), q = "";
5553
5563
  le.forEach((Ze) => {
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(
5564
+ C && (q += Ze, dt[q] !== void 0 && C ? (C = !1, v = dt[q].mask.replace(new RegExp("[0-9]", "g"), "_"), ae = dt[q].code) : (C && (w = ("" + q).length, v = `+${q}_(___) ___-__-__`.replace(
5555
5565
  new RegExp("[0-9]", "g"),
5556
5566
  "_"
5557
5567
  ), ae = ""), w > ("" + q).length && (C = !0, v = `+${q}_(___) ___-__-__`.replace(
@@ -5571,14 +5581,14 @@ function It({
5571
5581
  function(B) {
5572
5582
  }
5573
5583
  );
5574
- }, j = R(e), F = (V) => {
5584
+ }, k = R(e), F = (V) => {
5575
5585
  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 });
5586
+ 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("_"), y(B.i, V.target), t && t({ value: B.q.replace(/\D/g, ""), name: n });
5577
5587
  }, $ = (V) => {
5578
5588
  V.key === "Enter" && V.preventDefault();
5579
5589
  };
5580
5590
  const P = {};
5581
- P.field = "input", h && (P.className = h);
5591
+ P.field = "input", x && (P.className = x);
5582
5592
  let H = {};
5583
5593
  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
5594
  s && /* @__PURE__ */ a.jsx("dt", { children: s }),
@@ -5591,7 +5601,7 @@ function It({
5591
5601
  onKeyDown: $,
5592
5602
  onContextMenu: N,
5593
5603
  suppressContentEditableWarning: !0,
5594
- children: j.q
5604
+ children: k.q
5595
5605
  }
5596
5606
  ),
5597
5607
  i && /* @__PURE__ */ a.jsx("em", { children: i })
@@ -5646,10 +5656,10 @@ function Dt({
5646
5656
  after: u,
5647
5657
  view: m
5648
5658
  }) {
5649
- const h = x.useRef();
5659
+ const x = h.useRef();
5650
5660
  s = !!(s && (i === "" || l[i].n === void 0)) && !(n && r);
5651
5661
  let v = i !== void 0 && i !== "" ? l[i].n : i, C = (R) => {
5652
- h.current.textContent = l[R].n, c && c({ value: R, name: d });
5662
+ x.current.textContent = l[R].n, c && c({ value: R, name: d });
5653
5663
  }, w = (R) => {
5654
5664
  if (!(n && r))
5655
5665
  return;
@@ -5657,7 +5667,7 @@ function Dt({
5657
5667
  we.setListener(
5658
5668
  "form",
5659
5669
  /* @__PURE__ */ a.jsx(
5660
- Yo,
5670
+ Ho,
5661
5671
  {
5662
5672
  parent: N,
5663
5673
  onValue: C,
@@ -5667,15 +5677,15 @@ function Dt({
5667
5677
  (/* @__PURE__ */ new Date()).getTime()
5668
5678
  )
5669
5679
  );
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: [
5680
+ }, y = { field: "select" }, b = { onClick: w };
5681
+ return n && r && (b.edit = "true"), _ && (b.placeholder = _), u && (b.after = u), s ? "" : /* @__PURE__ */ a.jsxs("dl", { ...y, children: [
5672
5682
  e && /* @__PURE__ */ a.jsx("dt", { children: e }),
5673
- /* @__PURE__ */ a.jsx("dd", { ...b, ref: h, children: v }),
5683
+ /* @__PURE__ */ a.jsx("dd", { ...b, ref: x, children: v }),
5674
5684
  t && /* @__PURE__ */ a.jsx("em", { children: t })
5675
5685
  ] });
5676
5686
  }
5677
- const Yo = ({ onValue: e, parent: t, view: n, options: r }) => {
5678
- let [s, i] = x.useState(!0), c = () => {
5687
+ const Ho = ({ onValue: e, parent: t, view: n, options: r }) => {
5688
+ let [s, i] = h.useState(!0), c = () => {
5679
5689
  i(!1);
5680
5690
  }, l = (u) => {
5681
5691
  i(!1), e(u);
@@ -5717,7 +5727,7 @@ const Yo = ({ onValue: e, parent: t, view: n, options: r }) => {
5717
5727
  function Mt(e) {
5718
5728
  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
5729
  u(e.options[g]), e.onValue({ value: g, name: e.name });
5720
- }, [d, u] = x.useState(
5730
+ }, [d, u] = h.useState(
5721
5731
  e.default !== void 0 ? e.options[e.default] : e.default
5722
5732
  ), m = (g) => {
5723
5733
  if (!(r && s))
@@ -5726,7 +5736,7 @@ function Mt(e) {
5726
5736
  we.setListener(
5727
5737
  "form",
5728
5738
  /* @__PURE__ */ a.jsx(
5729
- Ho,
5739
+ qo,
5730
5740
  {
5731
5741
  parent: v,
5732
5742
  onValue: _,
@@ -5737,8 +5747,8 @@ function Mt(e) {
5737
5747
  )
5738
5748
  );
5739
5749
  };
5740
- const h = {};
5741
- return l && (h.placeholder = l), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs(
5750
+ const x = {};
5751
+ return l && (x.placeholder = l), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs(
5742
5752
  "dl",
5743
5753
  {
5744
5754
  "data-form": "select",
@@ -5749,7 +5759,7 @@ function Mt(e) {
5749
5759
  {
5750
5760
  onClick: m,
5751
5761
  "data-edit": (r && s) + "",
5752
- ...h,
5762
+ ...x,
5753
5763
  children: d
5754
5764
  }
5755
5765
  ),
@@ -5758,8 +5768,8 @@ function Mt(e) {
5758
5768
  }
5759
5769
  );
5760
5770
  }
5761
- const Ho = ({ onValue: e, parent: t, view: n, options: r }) => {
5762
- let [s, i] = x.useState(!0), c = () => {
5771
+ const qo = ({ onValue: e, parent: t, view: n, options: r }) => {
5772
+ let [s, i] = h.useState(!0), c = () => {
5763
5773
  i(!1);
5764
5774
  }, l = (m) => {
5765
5775
  i(!1), e(m);
@@ -5782,7 +5792,7 @@ const Ho = ({ onValue: e, parent: t, view: n, options: r }) => {
5782
5792
  left: u + "px",
5783
5793
  width: t.width
5784
5794
  },
5785
- children: /* @__PURE__ */ a.jsx("ul", { children: Object.keys(r).map((m, h) => /* @__PURE__ */ a.jsx(
5795
+ children: /* @__PURE__ */ a.jsx("ul", { children: Object.keys(r).map((m, x) => /* @__PURE__ */ a.jsx(
5786
5796
  "li",
5787
5797
  {
5788
5798
  onClick: () => {
@@ -5790,13 +5800,13 @@ const Ho = ({ onValue: e, parent: t, view: n, options: r }) => {
5790
5800
  },
5791
5801
  children: r[m]
5792
5802
  },
5793
- h
5803
+ x
5794
5804
  )) })
5795
5805
  }
5796
5806
  )
5797
5807
  ] }) : "" });
5798
5808
  };
5799
- function pt({
5809
+ function Ct({
5800
5810
  set: e,
5801
5811
  value: t,
5802
5812
  onValue: n,
@@ -5809,7 +5819,7 @@ function pt({
5809
5819
  show: d = !0,
5810
5820
  active: u = !0,
5811
5821
  after: m = "",
5812
- view: h,
5822
+ view: x,
5813
5823
  module: g,
5814
5824
  item: v,
5815
5825
  className: C = ""
@@ -5823,7 +5833,7 @@ function pt({
5823
5833
  title: i,
5824
5834
  show: d,
5825
5835
  hide: l,
5826
- view: h,
5836
+ view: x,
5827
5837
  edit: _,
5828
5838
  active: u,
5829
5839
  value: t,
@@ -5840,7 +5850,7 @@ function pt({
5840
5850
  title: i,
5841
5851
  show: d,
5842
5852
  hide: l,
5843
- view: h,
5853
+ view: x,
5844
5854
  edit: _,
5845
5855
  active: u,
5846
5856
  value: t,
@@ -5858,7 +5868,7 @@ function pt({
5858
5868
  title: i,
5859
5869
  show: d,
5860
5870
  hide: l,
5861
- view: h,
5871
+ view: x,
5862
5872
  edit: _,
5863
5873
  active: u,
5864
5874
  value: t,
@@ -5876,7 +5886,7 @@ function pt({
5876
5886
  title: i,
5877
5887
  show: d,
5878
5888
  hide: l,
5879
- view: h,
5889
+ view: x,
5880
5890
  edit: _,
5881
5891
  active: u,
5882
5892
  value: t,
@@ -5893,7 +5903,7 @@ function pt({
5893
5903
  title: i,
5894
5904
  show: d,
5895
5905
  hide: l,
5896
- view: h,
5906
+ view: x,
5897
5907
  edit: _,
5898
5908
  active: u,
5899
5909
  value: t,
@@ -5910,7 +5920,7 @@ function pt({
5910
5920
  title: i,
5911
5921
  show: d,
5912
5922
  hide: l,
5913
- view: h,
5923
+ view: x,
5914
5924
  edit: _,
5915
5925
  active: u,
5916
5926
  value: t,
@@ -5927,7 +5937,7 @@ function pt({
5927
5937
  title: i,
5928
5938
  show: d,
5929
5939
  hide: l,
5930
- view: h,
5940
+ view: x,
5931
5941
  edit: _,
5932
5942
  active: u,
5933
5943
  value: t,
@@ -5944,7 +5954,7 @@ function pt({
5944
5954
  title: i,
5945
5955
  show: d,
5946
5956
  hide: l,
5947
- view: h,
5957
+ view: x,
5948
5958
  edit: _,
5949
5959
  active: u,
5950
5960
  value: t,
@@ -5997,18 +6007,18 @@ function zn(e) {
5997
6007
  let r = e.placeholder !== void 0 ? e.placeholder : "", s = G.Date(
5998
6008
  e.value === void 0 ? /* @__PURE__ */ new Date() : e.value,
5999
6009
  "HH:MM"
6000
- ), i = x.useRef(null), c = (u) => {
6010
+ ), i = h.useRef(null), c = (u) => {
6001
6011
  i.current.textContent = u, e.onValue && e.onValue({ value: u, name: e.name });
6002
6012
  }, l = (u) => {
6003
6013
  e.onSave && e.onSave({ value: u, name: e.name });
6004
6014
  }, _ = (u) => {
6005
- const m = u.target.getBoundingClientRect(), h = m.left, g = m.top;
6015
+ const m = u.target.getBoundingClientRect(), x = m.left, g = m.top;
6006
6016
  we.setListener(
6007
6017
  "form",
6008
6018
  /* @__PURE__ */ a.jsx(
6009
- qo,
6019
+ Jo,
6010
6020
  {
6011
- position: { x: h, y: g },
6021
+ position: { x, y: g },
6012
6022
  onSave: l,
6013
6023
  onValue: c,
6014
6024
  date: s
@@ -6043,36 +6053,36 @@ function zn(e) {
6043
6053
  }
6044
6054
  ) });
6045
6055
  }
6046
- const qo = (e) => {
6056
+ const Jo = (e) => {
6047
6057
  let t = e.date.split(":"), n = {
6048
6058
  h: G.Number(2, t[0]),
6049
6059
  m: G.Number(2, t[1])
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)
6060
+ }, r = "hour", [s, i] = h.useState({}), c = !1, l = 0, _ = 0, d = {
6061
+ body: h.useRef(null),
6062
+ time: h.useRef(null),
6063
+ hour: h.useRef(null),
6064
+ timeText: h.useRef(null),
6065
+ hourText: h.useRef(null)
6056
6066
  };
6057
- x.useEffect(() => {
6067
+ h.useEffect(() => {
6058
6068
  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)";
6059
6069
  }, [d.body, d.hour, d.time, n.m, n.h]);
6060
6070
  let u = () => {
6061
6071
  c = !0;
6062
6072
  }, m = () => {
6063
6073
  c = !1, r = r === "hour" ? "time" : "hour", d.body.current.setAttribute("active", r);
6064
- }, h = (R) => {
6074
+ }, x = (R) => {
6065
6075
  if (c) {
6066
- let j = Math.atan2(
6076
+ let k = Math.atan2(
6067
6077
  R.pageX - (s.x + 78),
6068
6078
  R.pageY - (s.y + 78)
6069
6079
  ) * (180 / Math.PI) * -1 + 180;
6070
- d[r].current.style.transform = "rotate(" + j + "deg)", r === "hour" ? (n = {
6080
+ d[r].current.style.transform = "rotate(" + k + "deg)", r === "hour" ? (n = {
6071
6081
  ...n,
6072
- h: G.Number(2, parseInt(String(j / 15), 10))
6082
+ h: G.Number(2, parseInt(String(k / 15), 10))
6073
6083
  }, d.hourText.current.textContent = n.h) : (n = {
6074
6084
  ...n,
6075
- m: G.Number(2, parseInt(String(j / 6), 10))
6085
+ m: G.Number(2, parseInt(String(k / 6), 10))
6076
6086
  }, d.timeText.current.textContent = n.m), e.onValue(n.h + ":" + n.m);
6077
6087
  }
6078
6088
  }, g = (R) => {
@@ -6082,16 +6092,16 @@ const qo = (e) => {
6082
6092
  let N = parseInt(String(l / 50));
6083
6093
  if (_ !== N) {
6084
6094
  _ = N;
6085
- let j = parseInt(n.h, 10) + 1;
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)";
6095
+ let k = parseInt(n.h, 10) + 1;
6096
+ k = k > 23 ? 0 : k, n = { ...n, h: G.Number(2, k) }, d.hourText.current.textContent = n.h, d[r].current.style.transform = "rotate(" + n.h * 15 + "deg)";
6087
6097
  }
6088
6098
  } else {
6089
6099
  l -= R.deltaY;
6090
6100
  let N = parseInt(String(l / 50));
6091
6101
  if (_ !== N) {
6092
6102
  _ = N;
6093
- let j = parseInt(n.h, 10) - 1;
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)";
6103
+ let k = parseInt(n.h, 10) - 1;
6104
+ k = k < 0 ? 23 : k, n = { ...n, h: G.Number(2, k) }, d.hourText.current.textContent = n.h, d[r].current.style.transform = "rotate(" + n.h * 15 + "deg)";
6095
6105
  }
6096
6106
  }
6097
6107
  else if (R.deltaY > 0) {
@@ -6099,22 +6109,22 @@ const qo = (e) => {
6099
6109
  let N = parseInt(String(l / 50));
6100
6110
  if (_ !== N) {
6101
6111
  _ = N;
6102
- let j = parseInt(n.m, 10) + 1;
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)";
6112
+ let k = parseInt(n.m, 10) + 1;
6113
+ k = k > 59 ? 0 : k, n = { ...n, m: G.Number(2, k) }, d.timeText.current.textContent = n.m, d[r].current.style.transform = "rotate(" + n.m * 6 + "deg)";
6104
6114
  }
6105
6115
  } else {
6106
6116
  l -= R.deltaY;
6107
6117
  let N = parseInt(String(l / 50));
6108
6118
  if (_ !== N) {
6109
6119
  _ = N;
6110
- let j = parseInt(n.m, 10) - 1;
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)";
6120
+ let k = parseInt(n.m, 10) - 1;
6121
+ k = k < 0 ? 59 : k, n = { ...n, m: G.Number(2, k) }, d.timeText.current.textContent = n.m, d[r].current.style.transform = "rotate(" + n.m * 6 + "deg)";
6112
6122
  }
6113
6123
  }
6114
6124
  e.onValue(n.h + ":" + n.m);
6115
- }, [v, C] = x.useState(!0), w = () => {
6125
+ }, [v, C] = h.useState(!0), w = () => {
6116
6126
  C(!1), e.onSave(n.h + ":" + n.m);
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;
6127
+ }, 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;
6118
6128
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: v ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6119
6129
  /* @__PURE__ */ a.jsx(
6120
6130
  "div",
@@ -6130,10 +6140,10 @@ const qo = (e) => {
6130
6140
  className: je.c,
6131
6141
  onMouseDown: u,
6132
6142
  onMouseUp: m,
6133
- onMouseMove: h,
6143
+ onMouseMove: x,
6134
6144
  onWheel: g,
6135
6145
  ref: d.body,
6136
- style: { top: k + "px", left: b + "px" },
6146
+ style: { top: y + "px", left: b + "px" },
6137
6147
  children: "xxxx"
6138
6148
  }
6139
6149
  )
@@ -6148,7 +6158,7 @@ function Gn({
6148
6158
  reload: i
6149
6159
  }) {
6150
6160
  n = !!n;
6151
- const [c, l] = x.useState(n), _ = () => {
6161
+ const [c, l] = h.useState(n), _ = () => {
6152
6162
  let m = !c;
6153
6163
  e({ name: s, value: m, reload: i }), l(m);
6154
6164
  }, d = {};
@@ -6160,21 +6170,21 @@ function Gn({
6160
6170
  ] });
6161
6171
  }
6162
6172
  const be = {};
6163
- function Jo(e) {
6164
- const [t, n] = x.useState({}), r = x.useRef(e);
6173
+ function Xo(e) {
6174
+ const [t, n] = h.useState({}), r = h.useRef(e);
6165
6175
  return be.u = (s) => {
6166
6176
  r.current = { ...r.current, [s.name]: s.value };
6167
6177
  }, be.r = () => {
6168
6178
  n(Date.now());
6169
6179
  }, r.current;
6170
6180
  }
6171
- function Xo(e) {
6181
+ function Qo(e) {
6172
6182
  be.u(e), e.reload && be.r();
6173
6183
  }
6174
- function Qo() {
6184
+ function el() {
6175
6185
  be.r && be.r();
6176
6186
  }
6177
- const zl = {
6187
+ const Gl = {
6178
6188
  Color: $n,
6179
6189
  Date: Et,
6180
6190
  Code: Ln,
@@ -6194,16 +6204,16 @@ const zl = {
6194
6204
  Phone: It,
6195
6205
  Search: An,
6196
6206
  Select: Dt,
6197
- Set: pt,
6207
+ Set: Ct,
6198
6208
  Textarea: Zn,
6199
6209
  Time: zn,
6200
6210
  Users: Mt,
6201
6211
  String: $e,
6202
- Form: pt,
6203
- runReload: Qo,
6204
- useData: Jo,
6205
- setValue: Xo
6206
- }, Gl = {
6212
+ Form: Ct,
6213
+ runReload: el,
6214
+ useData: Xo,
6215
+ setValue: Qo
6216
+ }, Kl = {
6207
6217
  Color: $n,
6208
6218
  Date: Et,
6209
6219
  Code: Ln,
@@ -6223,17 +6233,17 @@ const zl = {
6223
6233
  Phone: It,
6224
6234
  Search: An,
6225
6235
  Select: Dt,
6226
- Set: pt,
6236
+ Set: Ct,
6227
6237
  Textarea: Zn,
6228
6238
  Time: zn,
6229
6239
  Users: Mt,
6230
6240
  String: $e
6231
- }, el = "_spinner_1ul0m_1", tl = "_l_1ul0m_75", nl = "_loadingB_1ul0m_1", Kn = {
6232
- spinner: el,
6233
- l: tl,
6234
- loadingB: nl
6241
+ }, tl = "_spinner_1ul0m_1", nl = "_l_1ul0m_75", al = "_loadingB_1ul0m_1", Kn = {
6242
+ spinner: tl,
6243
+ l: nl,
6244
+ loadingB: al
6235
6245
  };
6236
- function al() {
6246
+ function rl() {
6237
6247
  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(
6238
6248
  "path",
6239
6249
  {
@@ -6242,18 +6252,18 @@ function al() {
6242
6252
  }
6243
6253
  ) }) });
6244
6254
  }
6245
- function rl() {
6255
+ function sl() {
6246
6256
  return /* @__PURE__ */ a.jsxs("div", { className: Kn.l, children: [
6247
6257
  /* @__PURE__ */ a.jsx("i", {}),
6248
6258
  /* @__PURE__ */ a.jsx("i", {}),
6249
6259
  /* @__PURE__ */ a.jsx("i", {})
6250
6260
  ] });
6251
6261
  }
6252
- const Kl = { Spinner: al, Inline: rl }, sl = "_s_t9swc_1", il = {
6253
- s: sl
6262
+ const Wl = { Spinner: rl, Inline: sl }, il = "_s_t9swc_1", ol = {
6263
+ s: il
6254
6264
  };
6255
6265
  let Ft;
6256
- function ol() {
6266
+ function ll() {
6257
6267
  let e = (s) => {
6258
6268
  Ft(s.target.textContent);
6259
6269
  }, t = (s) => {
@@ -6268,7 +6278,7 @@ function ol() {
6268
6278
  return r.placeholder = "Что искать?", /* @__PURE__ */ a.jsx(
6269
6279
  "div",
6270
6280
  {
6271
- className: il.s,
6281
+ className: ol.s,
6272
6282
  onPaste: n,
6273
6283
  onInput: e,
6274
6284
  onKeyDown: t,
@@ -6278,7 +6288,7 @@ function ol() {
6278
6288
  }
6279
6289
  );
6280
6290
  }
6281
- function ll(e, t, n) {
6291
+ function cl(e, t, n) {
6282
6292
  let r = [], s = 1, i = 0, c = {}, l = 50;
6283
6293
  return c[s] = [], e.forEach((_) => {
6284
6294
  _.text.toLowerCase().indexOf(t) > -1 && r.push(_.id);
@@ -6286,17 +6296,17 @@ function ll(e, t, n) {
6286
6296
  i++, i <= l || (s++, i = 1, c[s] = []), c[s].push(n[_]);
6287
6297
  }), c;
6288
6298
  }
6289
- function cl(e) {
6299
+ function dl(e) {
6290
6300
  Ft = e;
6291
6301
  }
6292
- function dl(e) {
6302
+ function _l(e) {
6293
6303
  Ft = e;
6294
6304
  }
6295
- const Wl = { Field: ol, Run: ll, Get: cl, useValue: dl }, _l = "_f_q3r0i_1", ul = {
6296
- f: _l
6305
+ const Vl = { Field: ll, Run: cl, Get: dl, useValue: _l }, ul = "_f_q3r0i_1", ml = {
6306
+ f: ul
6297
6307
  };
6298
6308
  let ne = {};
6299
- function ml(e, t) {
6309
+ function fl(e, t) {
6300
6310
  switch (t.type) {
6301
6311
  case "open":
6302
6312
  return {
@@ -6346,8 +6356,8 @@ function ml(e, t) {
6346
6356
  throw new Error();
6347
6357
  }
6348
6358
  }
6349
- function fl() {
6350
- const [e, t] = x.useReducer(ml, {
6359
+ function hl() {
6360
+ const [e, t] = h.useReducer(fl, {
6351
6361
  open: !1,
6352
6362
  view: null,
6353
6363
  data: {},
@@ -6365,12 +6375,12 @@ function fl() {
6365
6375
  /* @__PURE__ */ a.jsxs(
6366
6376
  "div",
6367
6377
  {
6368
- className: ul.f,
6378
+ className: ml.f,
6369
6379
  onClick: () => {
6370
6380
  t({ type: "open", open: !0 });
6371
6381
  },
6372
6382
  children: [
6373
- /* @__PURE__ */ a.jsx(Zr, {}),
6383
+ /* @__PURE__ */ a.jsx(zr, {}),
6374
6384
  e.active && /* @__PURE__ */ a.jsxs("i", { children: [
6375
6385
  e.size,
6376
6386
  "1"
@@ -6390,7 +6400,7 @@ function fl() {
6390
6400
  ),
6391
6401
  /* @__PURE__ */ a.jsxs("div", { className: "filter m", children: [
6392
6402
  /* @__PURE__ */ a.jsx("div", { className: "filter l", children: Object.keys(e.data).map((n) => /* @__PURE__ */ a.jsx(
6393
- pl,
6403
+ Cl,
6394
6404
  {
6395
6405
  data: n,
6396
6406
  dispatch: t,
@@ -6412,16 +6422,16 @@ function fl() {
6412
6422
  ] }) : /* @__PURE__ */ a.jsx(a.Fragment, {})
6413
6423
  ] });
6414
6424
  }
6415
- function hl(e) {
6425
+ function xl(e) {
6416
6426
  ne.get = e;
6417
6427
  }
6418
- function xl(e) {
6428
+ function gl(e) {
6419
6429
  ne.set !== void 0 && ne.set(e);
6420
6430
  }
6421
- function gl(e) {
6431
+ function vl(e) {
6422
6432
  ne.reset !== void 0 && ne.reset(e);
6423
6433
  }
6424
- function vl(e, t, n, r) {
6434
+ function pl(e, t, n, r) {
6425
6435
  let s = [], i = 1, c = 0, l = {}, _ = 50;
6426
6436
  return l[i] = [], r === !0 && (Object.keys(t).forEach((d) => {
6427
6437
  Number.parseInt(t[d]) !== 999 && (e = e.filter(
@@ -6436,7 +6446,7 @@ function vl(e, t, n, r) {
6436
6446
  function Wn(e) {
6437
6447
  ne.count(e);
6438
6448
  }
6439
- function pl({ data: e, state: t, dispatch: n }) {
6449
+ function Cl({ data: e, state: t, dispatch: n }) {
6440
6450
  let r = () => {
6441
6451
  n({ type: "view", view: e });
6442
6452
  }, s = () => {
@@ -6459,7 +6469,7 @@ function pl({ data: e, state: t, dispatch: n }) {
6459
6469
  ) : ""
6460
6470
  ] }),
6461
6471
  /* @__PURE__ */ a.jsx("div", { className: "filter u", "set-active": (t.view === e) + "", children: Object.keys(t.data[e].list).map((i, c) => /* @__PURE__ */ a.jsx(
6462
- Cl,
6472
+ kl,
6463
6473
  {
6464
6474
  data: t.data[e].list[i],
6465
6475
  head: e,
@@ -6471,7 +6481,7 @@ function pl({ data: e, state: t, dispatch: n }) {
6471
6481
  )) })
6472
6482
  ] });
6473
6483
  }
6474
- function Cl({ data: e, head: t, state: n, dispatch: r, type: s }) {
6484
+ function kl({ data: e, head: t, state: n, dispatch: r, type: s }) {
6475
6485
  if (s !== "999" && e.count === void 0)
6476
6486
  return "";
6477
6487
  const i = () => {
@@ -6490,11 +6500,11 @@ function Cl({ data: e, head: t, state: n, dispatch: r, type: s }) {
6490
6500
  }
6491
6501
  );
6492
6502
  }
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 = {
6494
- p: kl,
6495
- l: yl
6503
+ const Ul = { Button: hl, useValue: xl, Set: gl, Run: pl, Count: Wn, Reset: vl }, Yl = { Bell: qr, Send: Ur, Add: Vr }, yl = "_p_djnh1_1", jl = "_l_djnh1_38", Vn = {
6504
+ p: yl,
6505
+ l: jl
6496
6506
  };
6497
- function jl(e) {
6507
+ function bl(e) {
6498
6508
  let t = 3, n = e.page, r = e.count, s = [], i = () => {
6499
6509
  s.push({ page: 1 }), s.push({ text: "..." });
6500
6510
  }, c = () => {
@@ -6512,7 +6522,7 @@ function jl(e) {
6512
6522
  /* @__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" }) }) })
6513
6523
  ] });
6514
6524
  }
6515
- function bl(e, t) {
6525
+ function wl(e, t) {
6516
6526
  switch (t.type) {
6517
6527
  case "load":
6518
6528
  return {
@@ -6534,7 +6544,7 @@ function bl(e, t) {
6534
6544
  }
6535
6545
  }
6536
6546
  function Un({ load: e, list: t, item: n }) {
6537
- const r = x.useRef(null), [s, i] = x.useReducer(bl, {
6547
+ const r = h.useRef(null), [s, i] = h.useReducer(wl, {
6538
6548
  load: !1,
6539
6549
  list: [],
6540
6550
  data: {},
@@ -6542,7 +6552,7 @@ function Un({ load: e, list: t, item: n }) {
6542
6552
  wait: !1,
6543
6553
  item: n
6544
6554
  });
6545
- x.useEffect(() => {
6555
+ h.useEffect(() => {
6546
6556
  t !== null && i({ type: "load", load: e, data: t });
6547
6557
  }, [e]);
6548
6558
  let c = (l) => {
@@ -6552,7 +6562,7 @@ function Un({ load: e, list: t, item: n }) {
6552
6562
  return l = s.size;
6553
6563
  i({ type: "page", page: l });
6554
6564
  };
6555
- return x.useEffect(() => {
6565
+ return h.useEffect(() => {
6556
6566
  }, [s]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6557
6567
  /* @__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: [
6558
6568
  /* @__PURE__ */ a.jsx("i", {}),
@@ -6560,7 +6570,7 @@ function Un({ load: e, list: t, item: n }) {
6560
6570
  /* @__PURE__ */ a.jsx("i", {})
6561
6571
  ] }) }) }),
6562
6572
  s.load && s.list !== void 0 ? /* @__PURE__ */ a.jsx(
6563
- jl,
6573
+ bl,
6564
6574
  {
6565
6575
  page: s.page,
6566
6576
  count: s.size,
@@ -6569,15 +6579,15 @@ function Un({ load: e, list: t, item: n }) {
6569
6579
  ) : /* @__PURE__ */ a.jsx(a.Fragment, {})
6570
6580
  ] });
6571
6581
  }
6572
- const Yl = { Pagination: Un };
6573
- function wl({ head: e, load: t, list: n, item: r }) {
6582
+ const Hl = { Pagination: Un };
6583
+ function Sl({ head: e, load: t, list: n, item: r }) {
6574
6584
  const s = e;
6575
6585
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6576
6586
  /* @__PURE__ */ a.jsx(s, {}),
6577
6587
  St.getSetting("s05") === 1 ? /* @__PURE__ */ a.jsx(Un, { list: n, load: t, item: r }) : /* @__PURE__ */ a.jsx(Nn, { list: n, load: t, item: r })
6578
6588
  ] });
6579
6589
  }
6580
- function Sl(e, t) {
6590
+ function El(e, t) {
6581
6591
  switch (t.type) {
6582
6592
  case "load":
6583
6593
  return {
@@ -6618,51 +6628,51 @@ function Sl(e, t) {
6618
6628
  throw new Error();
6619
6629
  }
6620
6630
  }
6621
- const Ct = {};
6622
- function El(e) {
6623
- Ct.get = e;
6624
- }
6631
+ const kt = {};
6625
6632
  function Rl(e) {
6626
- Ct.get && Ct.get(e);
6633
+ kt.get = e;
6634
+ }
6635
+ function Nl(e) {
6636
+ kt.get && kt.get(e);
6627
6637
  }
6628
- const Hl = { View: wl, Reducer: Sl, useValue: El, setValue: Rl }, ql = { Get: es }, Jl = { Open: Fi };
6638
+ const ql = { View: Sl, Reducer: El, useValue: Rl, setValue: Nl }, Jl = { Get: ts }, Xl = { Open: Li };
6629
6639
  export {
6630
- io as Action,
6631
- Fl as Alert,
6640
+ oo as Action,
6641
+ Ll as Alert,
6632
6642
  nn as Api,
6633
- Pl as Badge,
6634
- Ml as Bookmarks,
6635
- Il as Browser,
6636
- Js as Button,
6637
- ql as Company,
6643
+ Bl as Badge,
6644
+ Fl as Bookmarks,
6645
+ Dl as Browser,
6646
+ Xs as Button,
6647
+ Jl as Company,
6638
6648
  un as Component,
6639
- Bl as DataBase,
6649
+ Ol as DataBase,
6640
6650
  we as Event,
6641
6651
  we as Events,
6642
- Zl as Files,
6643
- Vl as Filter,
6644
- zl as Form,
6652
+ zl as Files,
6653
+ Ul as Filter,
6654
+ Gl as Form,
6645
6655
  G as Format,
6646
- Ol as HotKey,
6647
- Ll as Icon,
6648
- Wi as Init,
6649
- Gl as Input,
6650
- Hl as List,
6651
- Kl as Loading,
6656
+ Al as HotKey,
6657
+ $l as Icon,
6658
+ Vi as Init,
6659
+ Kl as Input,
6660
+ ql as List,
6661
+ Wl as Loading,
6652
6662
  wt as Modal,
6653
6663
  Le as Notice,
6654
- Ul as Notifications,
6655
- Yl as Pagination,
6656
- Jl as Phone,
6664
+ Yl as Notifications,
6665
+ Hl as Pagination,
6666
+ Xl as Phone,
6657
6667
  Ue as Router,
6658
- Al as Scrolling,
6659
- Wl as Search,
6660
- Dl as Setting,
6661
- jt as Sistym,
6668
+ Zl as Scrolling,
6669
+ Vl as Search,
6670
+ Ml as Setting,
6671
+ bt as Sistym,
6662
6672
  ce as Socket,
6663
6673
  se as Store,
6664
- Ji as Tabs,
6665
- $l as Triage,
6674
+ Xi as Tabs,
6675
+ Pl as Triage,
6666
6676
  St as User,
6667
6677
  O as WebRTC
6668
6678
  };