elcrm 0.8.45 → 0.8.46

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
@@ -5,7 +5,7 @@ import x, { createElement as Ea } from "react";
5
5
  let wt = {};
6
6
  const Ra = (e) => {
7
7
  wt = e;
8
- }, Na = (e) => wt.enCode(e), Ia = (e) => wt.deCode(e), F = { enCode: Na, deCode: Ia, New: Ra }, b = {}, U = {}, we = {}, mn = {}, ce = {};
8
+ }, Na = (e) => wt.enCode(e), Ia = (e) => wt.deCode(e), F = { enCode: Na, deCode: Ia, New: Ra }, b = {}, V = {}, we = {}, mn = {}, ce = {};
9
9
  let St = "M06";
10
10
  function Ta(e) {
11
11
  St = e;
@@ -38,7 +38,7 @@ function Fa(e) {
38
38
  id: b.id,
39
39
  time: (/* @__PURE__ */ new Date()).getTime()
40
40
  })
41
- ), U.page(b.page);
41
+ ), V.page(b.page);
42
42
  }
43
43
  function La(e) {
44
44
  return localStorage.setItem("d", e);
@@ -69,28 +69,28 @@ function Aa() {
69
69
  const [e, t] = x.useState(hn()), a = (r) => {
70
70
  t(r);
71
71
  };
72
- return U.page = a, [e];
72
+ return V.page = a, [e];
73
73
  }
74
- function Za(e, t = !0) {
75
- b.page = e, sessionStorage.setItem("f", F.enCode(b)), t && U.page(e);
74
+ function Ga(e, t = !0) {
75
+ b.page = e, sessionStorage.setItem("f", F.enCode(b)), t && V.page(e);
76
76
  }
77
77
  function hn() {
78
78
  return b.page;
79
79
  }
80
- function Ga(e) {
80
+ function Za(e) {
81
81
  return b.page === e;
82
82
  }
83
- function Wa(e) {
83
+ function za(e) {
84
84
  if (typeof e != "function") {
85
85
  const [t, a] = x.useState(e || xn()), r = (s) => {
86
86
  a(s);
87
87
  };
88
- return U.module = r, [t];
88
+ return V.module = r, [t];
89
89
  } else
90
- U.module = e;
90
+ V.module = e;
91
91
  }
92
- function za(e, t = !0) {
93
- b.module = e, sessionStorage.setItem("f", F.enCode(b)), t && U.module(e);
92
+ function Wa(e, t = !0) {
93
+ b.module = e, sessionStorage.setItem("f", F.enCode(b)), t && V.module(e);
94
94
  }
95
95
  function xn() {
96
96
  return b.module;
@@ -98,24 +98,24 @@ function xn() {
98
98
  function Ka(e) {
99
99
  return b.module === e;
100
100
  }
101
- function Ya(e) {
101
+ function Ua(e) {
102
102
  if (typeof e != "function") {
103
103
  const [t, a] = x.useState(e || Je());
104
- return U.tabs = a, [t];
104
+ return V.tabs = a, [t];
105
105
  } else
106
- U.tabs = e;
106
+ V.tabs = e;
107
107
  }
108
- function Ua(e, t = !0) {
108
+ function Va(e, t = !0) {
109
109
  if (b.tab = e, sessionStorage.setItem("f", F.enCode(b)), !!t)
110
- if (U.tabs)
111
- U.tabs(e);
110
+ if (V.tabs)
111
+ V.tabs(e);
112
112
  else
113
113
  throw new Error("useTabs not found");
114
114
  }
115
115
  function Je() {
116
116
  return b.tab;
117
117
  }
118
- function Va(e) {
118
+ function Ya(e) {
119
119
  return b.tab === e;
120
120
  }
121
121
  function Ha(e) {
@@ -123,15 +123,15 @@ function Ha(e) {
123
123
  const [t, a] = x.useState(e || pn()), r = (s) => {
124
124
  a(s);
125
125
  };
126
- return U.id = r, [t];
126
+ return V.id = r, [t];
127
127
  } else
128
- U.id = e;
128
+ V.id = e;
129
129
  }
130
130
  function qa(e) {
131
- U.id = e;
131
+ V.id = e;
132
132
  }
133
133
  function Ja(e, t = !0) {
134
- b.id = e, sessionStorage.setItem("f", F.enCode(b)), t && U.id(e);
134
+ b.id = e, sessionStorage.setItem("f", F.enCode(b)), t && V.id(e);
135
135
  }
136
136
  function pn() {
137
137
  return b.id;
@@ -140,7 +140,7 @@ function Xa(e) {
140
140
  return Number(b.id) === e;
141
141
  }
142
142
  function Qa(e, t, a) {
143
- b.module = e, b.id = a, b.tab = t, sessionStorage.setItem("f", F.enCode(b)), U.module(e), U.tabs(t);
143
+ b.module = e, b.id = a, b.tab = t, sessionStorage.setItem("f", F.enCode(b)), V.module(e), V.tabs(t);
144
144
  }
145
145
  function er(e) {
146
146
  we.data = e[0], delete we.data.id, document.body.dataset.theme = we.data.s15, localStorage.setItem("s", F.enCode(we.data));
@@ -171,7 +171,7 @@ function ar() {
171
171
  return te(), !1;
172
172
  }
173
173
  function rr(e) {
174
- U.sort = e;
174
+ V.sort = e;
175
175
  }
176
176
  function vn(e) {
177
177
  let t = localStorage.getItem("b");
@@ -300,7 +300,7 @@ const ie = {
300
300
  setBase: mr,
301
301
  editBase: hr,
302
302
  loadBase: ur
303
- }, yn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyBhPT57dHJ5e2xldCB0PWF3YWl0IGZldGNoKGAke2EuZGF0YS5ob3N0fSR7YS5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOmEuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiFhLmRhdGEuZGF0YSBpbnN0YW5jZW9mIEZvcm1EYXRhJiYiYXBwbGljYXRpb24vanNvbjtjaGFyc2V0PXV0Zi04In0sYm9keTphLmRhdGEuZGF0YSBpbnN0YW5jZW9mIEZvcm1EYXRhP2EuZGF0YS5kYXRhOkpTT04uc3RyaW5naWZ5KGEuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IHQuanNvbigpKX1jYXRjaCh0KXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOnR9KX19fSkoKTsK", xr = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), tn = typeof window < "u" && window.Blob && new Blob([xr(yn)], { type: "text/javascript;charset=utf-8" });
303
+ }, yn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyBhPT57bGV0IHM9YS5kYXRhLmRhdGEgaW5zdGFuY2VvZiBGb3JtRGF0P3t9OnsiQ29udGVudC10eXBlIjoiYXBwbGljYXRpb24vanNvbjtjaGFyc2V0PXV0Zi04In07dHJ5e2xldCB0PWF3YWl0IGZldGNoKGAke2EuZGF0YS5ob3N0fSR7YS5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOmEuZGF0YS5zc2lkLC4uLnN9LGJvZHk6YS5kYXRhLmRhdGEgaW5zdGFuY2VvZiBGb3JtRGF0YT9hLmRhdGEuZGF0YTpKU09OLnN0cmluZ2lmeShhLmRhdGEuZGF0YSl9KTtwb3N0TWVzc2FnZShhd2FpdCB0Lmpzb24oKSl9Y2F0Y2godCl7cG9zdE1lc3NhZ2Uoe3N0YXR1czoiZXJyb3IiLGRhdGE6IndvcmtlciIsbWVzc2FnZTp0fSl9fX0pKCk7Cg==", xr = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), tn = typeof window < "u" && window.Blob && new Blob([xr(yn)], { type: "text/javascript;charset=utf-8" });
304
304
  function bn(e) {
305
305
  let t;
306
306
  try {
@@ -493,7 +493,7 @@ function Tr() {
493
493
  var $ = p.displayName || p.name || "";
494
494
  return $ !== "" ? k + "(" + $ + ")" : k;
495
495
  }
496
- function G(c) {
496
+ function Z(c) {
497
497
  return c.displayName || "Context";
498
498
  }
499
499
  function B(c) {
@@ -521,10 +521,10 @@ function Tr() {
521
521
  switch (c.$$typeof) {
522
522
  case l:
523
523
  var p = c;
524
- return G(p) + ".Consumer";
524
+ return Z(p) + ".Consumer";
525
525
  case o:
526
526
  var k = c;
527
- return G(k._context) + ".Provider";
527
+ return Z(k._context) + ".Provider";
528
528
  case _:
529
529
  return le(c, c.render, "ForwardRef");
530
530
  case f:
@@ -541,14 +541,14 @@ function Tr() {
541
541
  }
542
542
  return null;
543
543
  }
544
- var H = Object.assign, q = 0, Ge, re, Ne, tt, We, $t, Pt;
544
+ var H = Object.assign, q = 0, Ze, re, Ne, tt, ze, $t, Pt;
545
545
  function Ot() {
546
546
  }
547
547
  Ot.__reactDisabledLog = !0;
548
548
  function Xn() {
549
549
  {
550
550
  if (q === 0) {
551
- Ge = console.log, re = console.info, Ne = console.warn, tt = console.error, We = console.group, $t = console.groupCollapsed, Pt = console.groupEnd;
551
+ Ze = console.log, re = console.info, Ne = console.warn, tt = console.error, ze = console.group, $t = console.groupCollapsed, Pt = console.groupEnd;
552
552
  var c = {
553
553
  configurable: !0,
554
554
  enumerable: !0,
@@ -578,7 +578,7 @@ function Tr() {
578
578
  };
579
579
  Object.defineProperties(console, {
580
580
  log: H({}, c, {
581
- value: Ge
581
+ value: Ze
582
582
  }),
583
583
  info: H({}, c, {
584
584
  value: re
@@ -590,7 +590,7 @@ function Tr() {
590
590
  value: tt
591
591
  }),
592
592
  group: H({}, c, {
593
- value: We
593
+ value: ze
594
594
  }),
595
595
  groupCollapsed: H({}, c, {
596
596
  value: $t
@@ -604,7 +604,7 @@ function Tr() {
604
604
  }
605
605
  }
606
606
  var nt = j.ReactCurrentDispatcher, at;
607
- function ze(c, p, k) {
607
+ function We(c, p, k) {
608
608
  {
609
609
  if (at === void 0)
610
610
  try {
@@ -672,25 +672,25 @@ function Tr() {
672
672
  if (Q && I && typeof Q.stack == "string") {
673
673
  for (var M = Q.stack.split(`
674
674
  `), J = I.stack.split(`
675
- `), W = M.length - 1, Y = J.length - 1; W >= 1 && Y >= 0 && M[W] !== J[Y]; )
676
- Y--;
677
- for (; W >= 1 && Y >= 0; W--, Y--)
678
- if (M[W] !== J[Y]) {
679
- if (W !== 1 || Y !== 1)
675
+ `), z = M.length - 1, U = J.length - 1; z >= 1 && U >= 0 && M[z] !== J[U]; )
676
+ U--;
677
+ for (; z >= 1 && U >= 0; z--, U--)
678
+ if (M[z] !== J[U]) {
679
+ if (z !== 1 || U !== 1)
680
680
  do
681
- if (W--, Y--, Y < 0 || M[W] !== J[Y]) {
681
+ if (z--, U--, U < 0 || M[z] !== J[U]) {
682
682
  var ne = `
683
- ` + M[W].replace(" at new ", " at ");
683
+ ` + M[z].replace(" at new ", " at ");
684
684
  return c.displayName && ne.includes("<anonymous>") && (ne = ne.replace("<anonymous>", c.displayName)), typeof c == "function" && Ke.set(c, ne), ne;
685
685
  }
686
- while (W >= 1 && Y >= 0);
686
+ while (z >= 1 && U >= 0);
687
687
  break;
688
688
  }
689
689
  }
690
690
  } finally {
691
691
  rt = !1, nt.current = P, Qn(), Error.prepareStackTrace = $;
692
692
  }
693
- var be = c ? c.displayName || c.name : "", ge = be ? ze(be) : "";
693
+ var be = c ? c.displayName || c.name : "", ge = be ? We(be) : "";
694
694
  return typeof c == "function" && Ke.set(c, ge), ge;
695
695
  }
696
696
  function ta(c, p, k) {
@@ -700,42 +700,42 @@ function Tr() {
700
700
  var p = c.prototype;
701
701
  return !!(p && p.isReactComponent);
702
702
  }
703
- function Ye(c, p, k) {
703
+ function Ue(c, p, k) {
704
704
  if (c == null)
705
705
  return "";
706
706
  if (typeof c == "function")
707
707
  return At(c, na(c));
708
708
  if (typeof c == "string")
709
- return ze(c);
709
+ return We(c);
710
710
  switch (c) {
711
711
  case d:
712
- return ze("Suspense");
712
+ return We("Suspense");
713
713
  case u:
714
- return ze("SuspenseList");
714
+ return We("SuspenseList");
715
715
  }
716
716
  if (typeof c == "object")
717
717
  switch (c.$$typeof) {
718
718
  case _:
719
719
  return ta(c.render);
720
720
  case f:
721
- return Ye(c.type, p, k);
721
+ return Ue(c.type, p, k);
722
722
  case m: {
723
723
  var I = c, $ = I._payload, P = I._init;
724
724
  try {
725
- return Ye(P($), p, k);
725
+ return Ue(P($), p, k);
726
726
  } catch {
727
727
  }
728
728
  }
729
729
  }
730
730
  return "";
731
731
  }
732
- var Ie = Object.prototype.hasOwnProperty, Zt = {}, Gt = j.ReactDebugCurrentFrame;
733
- function Ue(c) {
732
+ var Ie = Object.prototype.hasOwnProperty, Gt = {}, Zt = j.ReactDebugCurrentFrame;
733
+ function Ve(c) {
734
734
  if (c) {
735
- var p = c._owner, k = Ye(c.type, c._source, p ? p.type : null);
736
- Gt.setExtraStackFrame(k);
735
+ var p = c._owner, k = Ue(c.type, c._source, p ? p.type : null);
736
+ Zt.setExtraStackFrame(k);
737
737
  } else
738
- Gt.setExtraStackFrame(null);
738
+ Zt.setExtraStackFrame(null);
739
739
  }
740
740
  function aa(c, p, k, I, $) {
741
741
  {
@@ -749,10 +749,10 @@ function Tr() {
749
749
  throw J.name = "Invariant Violation", J;
750
750
  }
751
751
  M = c[L](p, L, I, k, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
752
- } catch (W) {
753
- M = W;
752
+ } catch (z) {
753
+ M = z;
754
754
  }
755
- M && !(M instanceof Error) && (Ue($), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", I || "React class", k, L, typeof M), Ue(null)), M instanceof Error && !(M.message in Zt) && (Zt[M.message] = !0, Ue($), S("Failed %s type: %s", k, M.message), Ue(null));
755
+ M && !(M instanceof Error) && (Ve($), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", I || "React class", k, L, typeof M), Ve(null)), M instanceof Error && !(M.message in Gt) && (Gt[M.message] = !0, Ve($), S("Failed %s type: %s", k, M.message), Ve(null));
756
756
  }
757
757
  }
758
758
  }
@@ -768,24 +768,24 @@ function Tr() {
768
768
  }
769
769
  function ia(c) {
770
770
  try {
771
- return Wt(c), !1;
771
+ return zt(c), !1;
772
772
  } catch {
773
773
  return !0;
774
774
  }
775
775
  }
776
- function Wt(c) {
776
+ function zt(c) {
777
777
  return "" + c;
778
778
  }
779
- function zt(c) {
779
+ function Wt(c) {
780
780
  if (ia(c))
781
- return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", sa(c)), Wt(c);
781
+ return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", sa(c)), zt(c);
782
782
  }
783
783
  var Te = j.ReactCurrentOwner, oa = {
784
784
  key: !0,
785
785
  ref: !0,
786
786
  __self: !0,
787
787
  __source: !0
788
- }, Kt, Yt, it;
788
+ }, Kt, Ut, it;
789
789
  it = {};
790
790
  function la(c) {
791
791
  if (Ie.call(c, "ref")) {
@@ -823,7 +823,7 @@ function Tr() {
823
823
  function ua(c, p) {
824
824
  {
825
825
  var k = function() {
826
- Yt || (Yt = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
826
+ Ut || (Ut = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
827
827
  };
828
828
  k.isReactWarning = !0, Object.defineProperty(c, "ref", {
829
829
  get: k,
@@ -863,35 +863,35 @@ function Tr() {
863
863
  function ma(c, p, k, I, $) {
864
864
  {
865
865
  var P, L = {}, M = null, J = null;
866
- k !== void 0 && (zt(k), M = "" + k), ca(p) && (zt(p.key), M = "" + p.key), la(p) && (J = p.ref, da(p, $));
866
+ k !== void 0 && (Wt(k), M = "" + k), ca(p) && (Wt(p.key), M = "" + p.key), la(p) && (J = p.ref, da(p, $));
867
867
  for (P in p)
868
868
  Ie.call(p, P) && !oa.hasOwnProperty(P) && (L[P] = p[P]);
869
869
  if (c && c.defaultProps) {
870
- var W = c.defaultProps;
871
- for (P in W)
872
- L[P] === void 0 && (L[P] = W[P]);
870
+ var z = c.defaultProps;
871
+ for (P in z)
872
+ L[P] === void 0 && (L[P] = z[P]);
873
873
  }
874
874
  if (M || J) {
875
- var Y = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
876
- M && _a(L, Y), J && ua(L, Y);
875
+ var U = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
876
+ M && _a(L, U), J && ua(L, U);
877
877
  }
878
878
  return fa(c, M, J, $, I, Te.current, L);
879
879
  }
880
880
  }
881
- var ot = j.ReactCurrentOwner, Ut = j.ReactDebugCurrentFrame;
881
+ var ot = j.ReactCurrentOwner, Vt = j.ReactDebugCurrentFrame;
882
882
  function ye(c) {
883
883
  if (c) {
884
- var p = c._owner, k = Ye(c.type, c._source, p ? p.type : null);
885
- Ut.setExtraStackFrame(k);
884
+ var p = c._owner, k = Ue(c.type, c._source, p ? p.type : null);
885
+ Vt.setExtraStackFrame(k);
886
886
  } else
887
- Ut.setExtraStackFrame(null);
887
+ Vt.setExtraStackFrame(null);
888
888
  }
889
889
  var lt;
890
890
  lt = !1;
891
891
  function ct(c) {
892
892
  return typeof c == "object" && c !== null && c.$$typeof === t;
893
893
  }
894
- function Vt() {
894
+ function Yt() {
895
895
  {
896
896
  if (ot.current) {
897
897
  var c = B(ot.current.type);
@@ -909,7 +909,7 @@ Check the render method of \`` + c + "`.";
909
909
  var Ht = {};
910
910
  function xa(c) {
911
911
  {
912
- var p = Vt();
912
+ var p = Yt();
913
913
  if (!p) {
914
914
  var k = typeof c == "string" ? c : c.displayName || c.name;
915
915
  k && (p = `
@@ -996,13 +996,13 @@ Check the top-level render call using <` + k + ">.");
996
996
  var M = "";
997
997
  (c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (M += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
998
998
  var J = ha();
999
- J ? M += J : M += Vt();
1000
- var W;
1001
- c === null ? W = "null" : st(c) ? W = "array" : c !== void 0 && c.$$typeof === t ? (W = "<" + (B(c.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : W = typeof c, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, M);
999
+ J ? M += J : M += Yt();
1000
+ var z;
1001
+ c === null ? z = "null" : st(c) ? z = "array" : c !== void 0 && c.$$typeof === t ? (z = "<" + (B(c.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : z = typeof c, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, M);
1002
1002
  }
1003
- var Y = ma(c, p, k, $, P);
1004
- if (Y == null)
1005
- return Y;
1003
+ var U = ma(c, p, k, $, P);
1004
+ if (U == null)
1005
+ return U;
1006
1006
  if (L) {
1007
1007
  var ne = p.children;
1008
1008
  if (ne !== void 0)
@@ -1030,7 +1030,7 @@ React keys must be passed directly to JSX without using spread:
1030
1030
  <%s key={someKey} {...props} />`, dt, ge, ya, ge), Xt[ge + dt] = !0;
1031
1031
  }
1032
1032
  }
1033
- return c === r ? ga(Y) : pa(Y), Y;
1033
+ return c === r ? ga(U) : pa(U), U;
1034
1034
  }
1035
1035
  }
1036
1036
  function va(c, p, k) {
@@ -1104,15 +1104,15 @@ function Ar(e) {
1104
1104
  let t = Date.now(), a = { key: t, text: e, type: "error" };
1105
1105
  xe.set({ item: /* @__PURE__ */ n.jsx(Ae, { data: a }, t), key: t });
1106
1106
  }
1107
- function Zr(e) {
1107
+ function Gr(e) {
1108
1108
  let t = Date.now(), a = { key: t, text: e, type: "success" };
1109
1109
  xe.set({ item: /* @__PURE__ */ n.jsx(Ae, { data: a }, t), key: t });
1110
1110
  }
1111
- function Gr(e) {
1111
+ function Zr(e) {
1112
1112
  let t = Date.now(), a = { key: t, text: e, type: "remark" };
1113
1113
  xe.set({ item: /* @__PURE__ */ n.jsx(Ae, { data: a }, t), key: t });
1114
1114
  }
1115
- function Wr(e) {
1115
+ function zr(e) {
1116
1116
  let t = Date.now(), a = { key: t, text: e, type: "copy" };
1117
1117
  xe.set({ item: /* @__PURE__ */ n.jsx(Ae, { data: a }, t), key: t });
1118
1118
  }
@@ -1149,14 +1149,14 @@ ve.success = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "
1149
1149
  }
1150
1150
  )
1151
1151
  ] });
1152
- const zr = "_alerts_1pds5_1", Kr = "_menuAnimation_1pds5_1", Yr = "_menuItemAnimation_1pds5_1", Ur = "_allert_1pds5_111", Vr = "_al_1pds5_1", pt = {
1153
- alerts: zr,
1152
+ const Wr = "_alerts_1pds5_1", Kr = "_menuAnimation_1pds5_1", Ur = "_menuItemAnimation_1pds5_1", Vr = "_allert_1pds5_111", Yr = "_al_1pds5_1", pt = {
1153
+ alerts: Wr,
1154
1154
  menuAnimation: Kr,
1155
- menuItemAnimation: Yr,
1155
+ menuItemAnimation: Ur,
1156
1156
  "--body": "_--body_1pds5_103",
1157
- allert: Ur,
1157
+ allert: Vr,
1158
1158
  "--form": "_--form_1pds5_111",
1159
- al: Vr
1159
+ al: Yr
1160
1160
  };
1161
1161
  let Be = {};
1162
1162
  function Hr() {
@@ -1183,20 +1183,20 @@ const qr = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "По
1183
1183
  function Jr(e, t) {
1184
1184
  Be.set(/* @__PURE__ */ n.jsx(qr, { data: e, callback: t }));
1185
1185
  }
1186
- const $e = { Send: Or, Error: Ar, Remark: Gr, Success: Zr, Copy: Wr }, He = {
1186
+ const $e = { Send: Or, Error: Ar, Remark: Zr, Success: Gr, Copy: zr }, He = {
1187
1187
  Path: Qa,
1188
- setPage: Za,
1188
+ setPage: Ga,
1189
1189
  getPage: hn,
1190
1190
  usePage: Aa,
1191
- isPage: Ga,
1192
- setModule: za,
1191
+ isPage: Za,
1192
+ setModule: Wa,
1193
1193
  getModule: xn,
1194
- useModule: Wa,
1194
+ useModule: za,
1195
1195
  isModule: Ka,
1196
- setTabs: Ua,
1196
+ setTabs: Va,
1197
1197
  getTabs: Je,
1198
- useTabs: Ya,
1199
- isTabs: Va,
1198
+ useTabs: Ua,
1199
+ isTabs: Ya,
1200
1200
  useId: Ha,
1201
1201
  setId: Ja,
1202
1202
  subId: qa,
@@ -1283,7 +1283,7 @@ function es() {
1283
1283
  const ts = "_n_euuvm_1", ns = {
1284
1284
  n: ts
1285
1285
  };
1286
- let Ze = {}, Fe = [];
1286
+ let Ge = {}, Fe = [];
1287
1287
  const as = (e, t) => {
1288
1288
  switch (t.type) {
1289
1289
  case "open":
@@ -1325,7 +1325,7 @@ const as = (e, t) => {
1325
1325
  r = { ...e.take, ...r }, e.active = !1;
1326
1326
  for (let s in r)
1327
1327
  r[s] !== "999" && (e.active = !0);
1328
- return Ze.get(r, e.active), {
1328
+ return Ge.get(r, e.active), {
1329
1329
  ...e,
1330
1330
  take: r,
1331
1331
  active: e.active
@@ -1337,16 +1337,16 @@ const as = (e, t) => {
1337
1337
  }
1338
1338
  };
1339
1339
  function rs(e) {
1340
- Ze.fn({ action: "add", data: e });
1340
+ Ge.fn({ action: "add", data: e });
1341
1341
  }
1342
1342
  function ss(e) {
1343
- Ze.fn({ action: "add", data: e });
1343
+ Ge.fn({ action: "add", data: e });
1344
1344
  }
1345
1345
  function is(e) {
1346
- Ze.fn({ action: "new", data: e });
1346
+ Ge.fn({ action: "new", data: e });
1347
1347
  }
1348
1348
  function os(e) {
1349
- Ze.fn = e;
1349
+ Ge.fn = e;
1350
1350
  }
1351
1351
  function ls() {
1352
1352
  const [e, t] = x.useReducer(as, {
@@ -1491,7 +1491,7 @@ function fs() {
1491
1491
  t[e[a].id] = {}, t[e[a].id].name = e[a].a;
1492
1492
  }), t;
1493
1493
  }
1494
- let oe = {}, V = {}, Ve = [
1494
+ let oe = {}, Y = {}, Ye = [
1495
1495
  "filter",
1496
1496
  "online",
1497
1497
  "users",
@@ -1506,8 +1506,8 @@ function ms() {
1506
1506
  function s(i) {
1507
1507
  const o = new _s();
1508
1508
  oe.laodData = (l) => {
1509
- let _ = Ve.indexOf(l);
1510
- _ >= 0 && Ve.splice(_, 1), Ve.length === 0 && t(!0);
1509
+ let _ = Ye.indexOf(l);
1510
+ _ >= 0 && Ye.splice(_, 1), Ye.length === 0 && t(!0);
1511
1511
  }, oe.send = (l) => {
1512
1512
  o.port.postMessage({ type: "send", json: l });
1513
1513
  }, o.port.onmessage = (l) => {
@@ -1516,7 +1516,7 @@ function ms() {
1516
1516
  type: "connect",
1517
1517
  ukey: i,
1518
1518
  lk: mt()
1519
- }), Ve.length !== 0 && oe.laodData(_.type), V[_.type] && V[_.type](_);
1519
+ }), Ye.length !== 0 && oe.laodData(_.type), Y[_.type] && Y[_.type](_);
1520
1520
  }, o.port.postMessage({
1521
1521
  type: "connect",
1522
1522
  ukey: i,
@@ -1525,23 +1525,23 @@ function ms() {
1525
1525
  }
1526
1526
  return [s, e, a];
1527
1527
  }
1528
- V.module = (e) => {
1528
+ Y.module = (e) => {
1529
1529
  oe[e.listen] !== void 0 && (oe[e.listen](e), delete oe[e.listen]);
1530
1530
  };
1531
- V.bell = is;
1532
- V.company = us;
1533
- V.info = (e) => {
1531
+ Y.bell = is;
1532
+ Y.company = us;
1533
+ Y.info = (e) => {
1534
1534
  let t = {};
1535
1535
  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"), jn(t), gn(e.data.menu);
1536
1536
  };
1537
- V.version = async (e) => {
1537
+ Y.version = async (e) => {
1538
1538
  Et.version.Server(e.data);
1539
1539
  };
1540
- V.online = async (e) => {
1540
+ Y.online = async (e) => {
1541
1541
  };
1542
- V.offline = async (e) => {
1542
+ Y.offline = async (e) => {
1543
1543
  };
1544
- V.chat = (e) => {
1544
+ Y.chat = (e) => {
1545
1545
  switch (e.data.action) {
1546
1546
  case "new_message":
1547
1547
  He.getModule();
@@ -1554,7 +1554,7 @@ V.chat = (e) => {
1554
1554
  break;
1555
1555
  }
1556
1556
  };
1557
- V.users = (e) => {
1557
+ Y.users = (e) => {
1558
1558
  let t = {};
1559
1559
  e.data.forEach((r) => {
1560
1560
  let s = r.p01 + " " + r.p02 + " " + r.p03, i = r.p01 + " " + r.p02.substring(0, 1) + "." + r.p03.substring(0, 1) + ".", o = r.p01.substring(0, 1) + "" + r.p02.substring(0, 1) + r.p03.substring(0, 1);
@@ -1574,31 +1574,31 @@ V.users = (e) => {
1574
1574
  let a = { ...je(), user: t };
1575
1575
  Oe(a);
1576
1576
  };
1577
- V.api = (e) => {
1577
+ Y.api = (e) => {
1578
1578
  let t = {};
1579
1579
  e.data.forEach((a) => {
1580
1580
  t[a.api] = { key: a.key, p01: a.p01, p02: a.p02 };
1581
1581
  });
1582
1582
  };
1583
- V.delete = () => {
1583
+ Y.delete = () => {
1584
1584
  te();
1585
1585
  };
1586
- V.select = (e) => {
1586
+ Y.select = (e) => {
1587
1587
  let t = { ...je() };
1588
1588
  e.data.forEach((a) => {
1589
1589
  t[a.n] = JSON.parse(a.s);
1590
1590
  }), Oe(t);
1591
1591
  };
1592
- V.job = (e) => {
1592
+ Y.job = (e) => {
1593
1593
  let t = { ...je() }, a = {};
1594
1594
  Object.keys(e.data).forEach((r) => {
1595
1595
  a[r] = { s: 1, n: e.data[r] };
1596
1596
  }), t[1] = a, Oe(t);
1597
1597
  };
1598
- V.setting = (e) => {
1598
+ Y.setting = (e) => {
1599
1599
  er(e.data);
1600
1600
  };
1601
- V.app = () => {
1601
+ Y.app = () => {
1602
1602
  };
1603
1603
  const hs = (e, t) => {
1604
1604
  oe[e] = t;
@@ -2057,21 +2057,21 @@ const K = {
2057
2057
  function Fs({ children: e }) {
2058
2058
  return /* @__PURE__ */ n.jsx("div", { className: "l", children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
2059
2059
  }
2060
- const Ls = "_white_11p39_14", Bs = "_black_11p39_26", $s = "_shake_11p39_1", Ps = "_modal_11p39_73", Os = "_o_11p39_83", As = "_w_11p39_14", Zs = "_h_11p39_107", Gs = "_l_11p39_121", Ws = "_t_11p39_159", zs = "_m_11p39_73", Ks = "_x_11p39_167", Ys = "_s_11p39_177", Us = "_c_11p39_182", Vs = "_f_11p39_187", Hs = "_btn_11p39_230", qs = "_g_11p39_243", Js = "_confirm_11p39_322", Xs = "_cancel_11p39_327", Qs = "_disabled_11p39_332", ei = "_active_11p39_389", ti = "_coincidence_11p39_395", ni = "_sa_11p39_431", ai = "_ss_11p39_435", ri = "_sm_11p39_439", si = "_sl_11p39_443", ii = "_sx_11p39_447", oi = "_sf_11p39_451", se = {
2060
+ const Ls = "_white_11p39_14", Bs = "_black_11p39_26", $s = "_shake_11p39_1", Ps = "_modal_11p39_73", Os = "_o_11p39_83", As = "_w_11p39_14", Gs = "_h_11p39_107", Zs = "_l_11p39_121", zs = "_t_11p39_159", Ws = "_m_11p39_73", Ks = "_x_11p39_167", Us = "_s_11p39_177", Vs = "_c_11p39_182", Ys = "_f_11p39_187", Hs = "_btn_11p39_230", qs = "_g_11p39_243", Js = "_confirm_11p39_322", Xs = "_cancel_11p39_327", Qs = "_disabled_11p39_332", ei = "_active_11p39_389", ti = "_coincidence_11p39_395", ni = "_sa_11p39_431", ai = "_ss_11p39_435", ri = "_sm_11p39_439", si = "_sl_11p39_443", ii = "_sx_11p39_447", oi = "_sf_11p39_451", se = {
2061
2061
  white: Ls,
2062
2062
  black: Bs,
2063
2063
  shake: $s,
2064
2064
  modal: Ps,
2065
2065
  o: Os,
2066
2066
  w: As,
2067
- h: Zs,
2068
- l: Gs,
2069
- t: Ws,
2070
- m: zs,
2067
+ h: Gs,
2068
+ l: Zs,
2069
+ t: zs,
2070
+ m: Ws,
2071
2071
  x: Ks,
2072
- s: Ys,
2073
- c: Us,
2074
- f: Vs,
2072
+ s: Us,
2073
+ c: Vs,
2074
+ f: Ys,
2075
2075
  btn: Hs,
2076
2076
  g: qs,
2077
2077
  "size-a": "_size-a_11p39_296",
@@ -2328,7 +2328,7 @@ const $i = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2328
2328
  H: on,
2329
2329
  M: Ai,
2330
2330
  F: dn
2331
- }, Zi = (e, t) => {
2331
+ }, Gi = (e, t) => {
2332
2332
  switch (t.type) {
2333
2333
  case "load":
2334
2334
  return {
@@ -2389,14 +2389,14 @@ const $i = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2389
2389
  default:
2390
2390
  return e;
2391
2391
  }
2392
- }, Gi = () => ({
2392
+ }, Zi = () => ({
2393
2393
  load: !0,
2394
2394
  list: [],
2395
2395
  name: "Файлы",
2396
2396
  add: !1,
2397
2397
  search: !1,
2398
2398
  revers: !0
2399
- }), Wi = () => {
2399
+ }), zi = () => {
2400
2400
  let [e, t] = x.useState([]);
2401
2401
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsxs("div", { className: "upload view", children: [
2402
2402
  /* @__PURE__ */ n.jsxs("div", { className: "--head", children: [
@@ -2412,14 +2412,14 @@ const $i = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2412
2412
  ] }),
2413
2413
  /* @__PURE__ */ n.jsx("div", { className: "--list", children: e.map((a) => a) })
2414
2414
  ] }) : "" });
2415
- }, zi = ({
2415
+ }, Wi = ({
2416
2416
  id: e,
2417
2417
  name: t,
2418
2418
  listen: a,
2419
2419
  dir: r
2420
2420
  }) => {
2421
2421
  t = t || "Файлы";
2422
- const [s, i] = x.useReducer(Zi, {}, Gi), o = () => {
2422
+ const [s, i] = x.useReducer(Gi, {}, Zi), o = () => {
2423
2423
  Qe.Add(
2424
2424
  /* @__PURE__ */ n.jsx(
2425
2425
  Ki,
@@ -2471,7 +2471,7 @@ const $i = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2471
2471
  /* @__PURE__ */ n.jsx("i", {}),
2472
2472
  /* @__PURE__ */ n.jsx("i", {}),
2473
2473
  /* @__PURE__ */ n.jsx("i", {})
2474
- ] }) : s.list.length === 0 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : s.list.map((l, _) => /* @__PURE__ */ n.jsx(Yi, { dispatch: i, data: l }, _)) })
2474
+ ] }) : s.list.length === 0 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : s.list.map((l, _) => /* @__PURE__ */ n.jsx(Ui, { dispatch: i, data: l }, _)) })
2475
2475
  ] });
2476
2476
  }, Ki = ({ id: e, dir: t, dispatch: a }) => {
2477
2477
  let [r, s] = x.useState(!0), i = x.useRef(null), o = (d) => {
@@ -2522,7 +2522,7 @@ const $i = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2522
2522
  },
2523
2523
  (/* @__PURE__ */ new Date()).getTime()
2524
2524
  ) }) : "" });
2525
- }, Yi = ({ data: e, dispatch: t }) => {
2525
+ }, Ui = ({ data: e, dispatch: t }) => {
2526
2526
  let a = async () => {
2527
2527
  let i = await (await fetch(nn.url().files + "/yandex/data/" + e.id, {
2528
2528
  headers: {
@@ -2571,15 +2571,15 @@ const $i = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2571
2571
  /* @__PURE__ */ n.jsx("div", { className: "f080", children: K.Size(e.size) })
2572
2572
  ] });
2573
2573
  }, Rt = { setSetting: tr, getSetting: nr };
2574
- let Z = {};
2575
- Z.list = _r();
2576
- Z.active = null;
2577
- const Ui = () => {
2574
+ let G = {};
2575
+ G.list = _r();
2576
+ G.active = null;
2577
+ const Vi = () => {
2578
2578
  var s;
2579
2579
  let [e, t] = x.useState([]), [a, r] = x.useState(Rt.getSetting("s03"));
2580
2580
  return x.useEffect(() => {
2581
2581
  (async () => {
2582
- let i = Object.keys(Z.list);
2582
+ let i = Object.keys(G.list);
2583
2583
  if (i.length !== 0) {
2584
2584
  let o = [];
2585
2585
  i.forEach((l, _) => {
@@ -2587,24 +2587,24 @@ const Ui = () => {
2587
2587
  item: /* @__PURE__ */ n.jsx(
2588
2588
  gt,
2589
2589
  {
2590
- data: Z.list[l]
2590
+ data: G.list[l]
2591
2591
  },
2592
- Z.list[l].id
2592
+ G.list[l].id
2593
2593
  ),
2594
- link: Z.list[l].link
2594
+ link: G.list[l].link
2595
2595
  });
2596
2596
  }), t(o);
2597
2597
  }
2598
2598
  })();
2599
- }, []), Z.active = (i) => {
2599
+ }, []), G.active = (i) => {
2600
2600
  var o;
2601
2601
  r(i), (o = document.querySelector("app-body")) == null || o.setAttribute("bookmarks", i === 1 ? "bottom" : "");
2602
- }, Z.set = (i) => {
2602
+ }, G.set = (i) => {
2603
2603
  t([
2604
2604
  ...e,
2605
2605
  { item: /* @__PURE__ */ n.jsx(gt, { data: i }, i.id), link: i.link }
2606
2606
  ]);
2607
- }, Z.del = (i) => {
2607
+ }, G.del = (i) => {
2608
2608
  e.forEach((o, l) => {
2609
2609
  o.link === i && e.splice(l, 1);
2610
2610
  }), t([...e]);
@@ -2612,15 +2612,15 @@ const Ui = () => {
2612
2612
  "bookmarks",
2613
2613
  a === 1 && e.length !== 0 ? "bottom" : ""
2614
2614
  ), a !== 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsx("div", { className: "bookmarks", children: e.map((i) => i.item) }) : "" }) : "";
2615
- }, Vi = ({ id: e, type: t, name: a }) => {
2615
+ }, Yi = ({ id: e, type: t, name: a }) => {
2616
2616
  let r = t + "-" + e, [s, i] = x.useState(
2617
- Z.list[r] !== void 0
2617
+ G.list[r] !== void 0
2618
2618
  );
2619
2619
  x.useEffect(() => {
2620
- i(Z.list[r] !== void 0);
2620
+ i(G.list[r] !== void 0);
2621
2621
  }, [r]);
2622
2622
  let o = () => {
2623
- Z.list[r] !== void 0 ? (Z.del(r), delete Z.list[r], en(Z.list), i(!1), $e.Send({ type: "success", text: "Запись удален из закладок" })) : (Z.list[r] = { id: e, name: a, type: t, link: r }, Z.set(Z.list[r]), en(Z.list), i(!0), $e.Send({
2623
+ G.list[r] !== void 0 ? (G.del(r), delete G.list[r], en(G.list), i(!1), $e.Send({ type: "success", text: "Запись удален из закладок" })) : (G.list[r] = { id: e, name: a, type: t, link: r }, G.set(G.list[r]), en(G.list), i(!0), $e.Send({
2624
2624
  type: "success",
2625
2625
  text: "Запись добавлен в закладки"
2626
2626
  }));
@@ -2635,13 +2635,13 @@ const Ui = () => {
2635
2635
  ) : "" });
2636
2636
  }, gt = ({ data: e }) => {
2637
2637
  let t = (r) => {
2638
- r.preventDefault(), delete Z.list[e.link], Z.del(e.link);
2638
+ r.preventDefault(), delete G.list[e.link], G.del(e.link);
2639
2639
  }, a = () => {
2640
2640
  He.setId(e.id);
2641
2641
  };
2642
2642
  return /* @__PURE__ */ n.jsx("span", { onContextMenu: t, onClick: a, children: e.name });
2643
2643
  }, Hi = (e) => {
2644
- Z.active(e);
2644
+ G.active(e);
2645
2645
  }, O = {}, vt = {}, y = {};
2646
2646
  y.config = { iceServers: [{ url: "stun:stun.l.google.com:19302" }] };
2647
2647
  y.constraints = { optional: [{ DtlsSrtpKeyAgreement: !0 }] };
@@ -2972,11 +2972,11 @@ const lo = ({ children: e, config: t }) => (F.New(t.crypto), t.defaultModule &&
2972
2972
  /* @__PURE__ */ n.jsx(mi, { config: t.modal }),
2973
2973
  /* @__PURE__ */ n.jsx(Pr, {}),
2974
2974
  /* @__PURE__ */ n.jsx(Hr, {}),
2975
- /* @__PURE__ */ n.jsx(Wi, {}),
2975
+ /* @__PURE__ */ n.jsx(zi, {}),
2976
2976
  /* @__PURE__ */ n.jsx(to, {}),
2977
2977
  /* @__PURE__ */ n.jsx(oo, {}),
2978
2978
  /* @__PURE__ */ n.jsx(qi, {}),
2979
- /* @__PURE__ */ n.jsx(Ui, {}),
2979
+ /* @__PURE__ */ n.jsx(Vi, {}),
2980
2980
  e
2981
2981
  ] })
2982
2982
  )), co = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("menu", { children: e }), _o = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("header", { children: [
@@ -3082,7 +3082,7 @@ function Rn({ list: e, onClick: t, active: a, size: r, view: s }) {
3082
3082
  }
3083
3083
  const To = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
3084
3084
  Rn.defaultProps = { size: "M", view: "H" };
3085
- const Jl = { Section: po, Main: Co, Item: Io, Tabs: Rn }, Xl = { Icon: Vi, Item: gt, Active: Hi }, Ql = { Send: Jr, Line: En };
3085
+ const Jl = { Section: po, Main: Co, Item: Io, Tabs: Rn }, Xl = { Icon: Yi, Item: gt, Active: Hi }, Ql = { Send: Jr, Line: En };
3086
3086
  function Do() {
3087
3087
  return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ n.jsx(
3088
3088
  "path",
@@ -3170,7 +3170,7 @@ function Ao(e) {
3170
3170
  et.count(e);
3171
3171
  }
3172
3172
  const tc = { Init: Bo, useValue: $o, Set: Po, Run: Oo, Count: Ao }, qe = {}, Nn = {};
3173
- function Zo(e) {
3173
+ function Go(e) {
3174
3174
  const [t, a] = x.useState({}), r = async (s) => {
3175
3175
  a(
3176
3176
  Object.keys(qe).reduce((i, o) => (i ? i[o] = qe[o].all : i = {}, i), {})
@@ -3180,15 +3180,15 @@ function Zo(e) {
3180
3180
  e.forEach((s) => qe[s] = { all: 0 }), Nn.menu = r, r();
3181
3181
  }, [e]), t;
3182
3182
  }
3183
- function Go(e, t) {
3183
+ function Zo(e, t) {
3184
3184
  switch (typeof t) {
3185
3185
  case "number":
3186
3186
  qe[e].all += t, Nn.menu();
3187
3187
  break;
3188
3188
  }
3189
3189
  }
3190
- const nc = { useMenu: Zo, setUpdate: Go };
3191
- class Wo {
3190
+ const nc = { useMenu: Go, setUpdate: Zo };
3191
+ class zo {
3192
3192
  constructor(t = "el", a = "db") {
3193
3193
  _t(this, "storeName");
3194
3194
  _t(this, "_dbp");
@@ -3208,21 +3208,21 @@ class Wo {
3208
3208
  );
3209
3209
  }
3210
3210
  }
3211
- let ut, z = {};
3212
- const Re = () => (ut || (ut = new Wo()), ut), pe = (e, t, a = Re()) => a._withIDBStore("readwrite", (r) => {
3213
- z[e] = t, r.put(F.enCode(t), e);
3214
- }), de = (e, t = Re()) => z[e] === void 0 ? new Promise((a, r) => {
3211
+ let ut, W = {};
3212
+ const Re = () => (ut || (ut = new zo()), ut), pe = (e, t, a = Re()) => a._withIDBStore("readwrite", (r) => {
3213
+ W[e] = t, r.put(F.enCode(t), e);
3214
+ }), de = (e, t = Re()) => W[e] === void 0 ? new Promise((a, r) => {
3215
3215
  let s;
3216
3216
  t._withIDBStore("readonly", (i) => {
3217
3217
  s = i.get(e);
3218
3218
  }).then(() => {
3219
3219
  if (s.result !== void 0) {
3220
3220
  let i = F.deCode(s.result);
3221
- z[e] = i, a(i);
3221
+ W[e] = i, a(i);
3222
3222
  } else
3223
3223
  a({});
3224
3224
  });
3225
- }) : z[e], zo = (e, t = Re()) => t._withIDBStore("readwrite", (a) => {
3225
+ }) : W[e], Wo = (e, t = Re()) => t._withIDBStore("readwrite", (a) => {
3226
3226
  a.delete(e);
3227
3227
  }), jt = (e = Re()) => e._withIDBStore("readwrite", (t) => {
3228
3228
  t.clear();
@@ -3233,7 +3233,7 @@ const Re = () => (ut || (ut = new Wo()), ut), pe = (e, t, a = Re()) => a._withID
3233
3233
  this.result && (t.push(this.result.key), this.result.continue());
3234
3234
  };
3235
3235
  }).then(() => t);
3236
- }, Yo = (e, t, a = [], r = {}) => {
3236
+ }, Uo = (e, t, a = [], r = {}) => {
3237
3237
  let s = a.length !== 0, i = [], o = r.sort, l = Object.keys(r).length !== 0, _ = Object.keys(r), d = Object.keys(e), u = [], f = (h) => {
3238
3238
  let C = "";
3239
3239
  if (a.forEach((v) => {
@@ -3255,8 +3255,8 @@ const Re = () => (ut || (ut = new Wo()), ut), pe = (e, t, a = Re()) => a._withID
3255
3255
  }), u.forEach((h) => {
3256
3256
  h === void 0 ? (jt(), location.reload()) : (s && f(h.id), l && m(h.id));
3257
3257
  }), { list: u, search: i, filter: r };
3258
- }, Uo = (e, t, a, r = Re()) => {
3259
- if (z[e] === void 0)
3258
+ }, Vo = (e, t, a, r = Re()) => {
3259
+ if (W[e] === void 0)
3260
3260
  return new Promise((s, i) => {
3261
3261
  let o;
3262
3262
  r._withIDBStore("readonly", (l) => {
@@ -3264,19 +3264,19 @@ const Re = () => (ut || (ut = new Wo()), ut), pe = (e, t, a = Re()) => a._withID
3264
3264
  }).then(() => {
3265
3265
  if (o.result !== void 0) {
3266
3266
  let l = F.deCode(o.result);
3267
- z[e] = l, z[e][t.id] = {
3268
- ...z[e][t.id],
3267
+ W[e] = l, W[e][t.id] = {
3268
+ ...W[e][t.id],
3269
3269
  ...t.data
3270
- }, r.put(F.enCode(z[e]), e), s({});
3270
+ }, r.put(F.enCode(W[e]), e), s({});
3271
3271
  } else
3272
3272
  s({});
3273
3273
  });
3274
3274
  });
3275
- if (z[e][t.id] !== void 0)
3276
- return z[e][t.id] = { ...z[e][t.id], ...t.data }, a !== void 0 && z[a] !== void 0 ? z[a][t.id] !== void 0 && (z[a][t.id] = t.data.eDate) : z[a] = [], delete z[e][t.id].$_item, delete z[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
3277
- s.put(F.enCode(z[e]), e), a !== void 0 && s.put(F.enCode(z[a]), a);
3275
+ if (W[e][t.id] !== void 0)
3276
+ return W[e][t.id] = { ...W[e][t.id], ...t.data }, a !== void 0 && W[a] !== void 0 ? W[a][t.id] !== void 0 && (W[a][t.id] = t.data.eDate) : W[a] = [], delete W[e][t.id].$_item, delete W[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
3277
+ s.put(F.enCode(W[e]), e), a !== void 0 && s.put(F.enCode(W[a]), a);
3278
3278
  });
3279
- }, Vo = async (e, t, a, r) => {
3279
+ }, Yo = async (e, t, a, r) => {
3280
3280
  let s, i;
3281
3281
  i = await de(a), i[e.id] = e, await pe(a, i), s !== null && (s = await de(t), s[e.id] = e.eDate, await pe(t, s)), r !== void 0 && r({ type: "load", page: s, base: i });
3282
3282
  }, Ho = async (e, t, a, r) => {
@@ -3299,16 +3299,16 @@ const Re = () => (ut || (ut = new Wo()), ut), pe = (e, t, a = Re()) => a._withID
3299
3299
  a({ type: "load", base: r });
3300
3300
  else
3301
3301
  return r[e];
3302
- }, el = (e) => z[e], ac = {
3302
+ }, el = (e) => W[e], ac = {
3303
3303
  id: Qo,
3304
3304
  get: de,
3305
3305
  set: pe,
3306
- add: Vo,
3307
- del: zo,
3308
- upd: Uo,
3306
+ add: Yo,
3307
+ del: Wo,
3308
+ upd: Vo,
3309
3309
  key: Ko,
3310
3310
  load: el,
3311
- split: Yo,
3311
+ split: Uo,
3312
3312
  clear: jt,
3313
3313
  updAll: Ho,
3314
3314
  delAll: qo,
@@ -3400,7 +3400,7 @@ function ol({
3400
3400
  }
3401
3401
  );
3402
3402
  }
3403
- const sc = { Widget: zi }, Tn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
3403
+ const sc = { Widget: Wi }, Tn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
3404
3404
  "div",
3405
3405
  {
3406
3406
  role: "switch",
@@ -5671,20 +5671,20 @@ function Mt({
5671
5671
  className: h = ""
5672
5672
  }) {
5673
5673
  _ = _ !== void 0 ? _ : !0, d = d !== void 0 ? d : !0, l = !!(l && (e === "" || e === void 0)) && !(_ && d), x.useRef(null);
5674
- let v = "+_(___) ___-__-__", g = !0, j = 0, S = (G, B) => {
5674
+ let v = "+_(___) ___-__-__", g = !0, j = 0, S = (Z, B) => {
5675
5675
  let H = document.createRange(), q = window.getSelection();
5676
- H.setStart(B.childNodes[0], G), H.collapse(!0), q.removeAllRanges(), q.addRange(H), B.focus();
5677
- }, T = (G) => {
5678
- G.preventDefault(), navigator.clipboard.readText().then((B) => {
5676
+ H.setStart(B.childNodes[0], Z), H.collapse(!0), q.removeAllRanges(), q.addRange(H), B.focus();
5677
+ }, T = (Z) => {
5678
+ Z.preventDefault(), navigator.clipboard.readText().then((B) => {
5679
5679
  window.document.execCommand("insertText", !1, B);
5680
5680
  }).catch((B) => {
5681
5681
  });
5682
- }, D = (G) => {
5683
- let B = 0, H = "", q = G.replace(/\D/g, "");
5682
+ }, D = (Z) => {
5683
+ let B = 0, H = "", q = Z.replace(/\D/g, "");
5684
5684
  q === "" && (g = !0);
5685
- let Ge = q.split(""), re = "";
5686
- Ge.forEach((We) => {
5687
- g && (re += We, ft[re] !== void 0 && g ? (g = !1, v = ft[re].mask.replace(new RegExp("[0-9]", "g"), "_"), H = ft[re].code) : (g && (j = ("" + re).length, v = `+${re}_(___) ___-__-__`.replace(
5685
+ let Ze = q.split(""), re = "";
5686
+ Ze.forEach((ze) => {
5687
+ g && (re += ze, ft[re] !== void 0 && g ? (g = !1, v = ft[re].mask.replace(new RegExp("[0-9]", "g"), "_"), H = ft[re].code) : (g && (j = ("" + re).length, v = `+${re}_(___) ___-__-__`.replace(
5688
5688
  new RegExp("[0-9]", "g"),
5689
5689
  "_"
5690
5690
  ), H = ""), j > ("" + re).length && (g = !0, v = `+${re}_(___) ___-__-__`.replace(
@@ -5696,23 +5696,23 @@ function Mt({
5696
5696
  return Ne.length >= q.length && (q = Ne), { q: v.replace(/[_\d]/g, function() {
5697
5697
  return q.charAt(B++) || "_";
5698
5698
  }), i: B, v: q, f: H };
5699
- }, w = (G) => {
5700
- G.preventDefault(), navigator.clipboard.writeText(G.target.textContent.replace(/\D/g, "")).then(
5699
+ }, w = (Z) => {
5700
+ Z.preventDefault(), navigator.clipboard.writeText(Z.target.textContent.replace(/\D/g, "")).then(
5701
5701
  function() {
5702
5702
  $e.Copy("Данные в буфер обмене");
5703
5703
  },
5704
5704
  function(B) {
5705
5705
  }
5706
5706
  );
5707
- }, R = D(e), E = (G) => {
5708
- let B = D(G.target.textContent);
5709
- G.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("_"), S(B.i, G.target), t && t({ value: B.q.replace(/\D/g, ""), name: r });
5710
- }, N = (G) => {
5711
- G.key === "Enter" && G.preventDefault();
5707
+ }, R = D(e), E = (Z) => {
5708
+ let B = D(Z.target.textContent);
5709
+ Z.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("_"), S(B.i, Z.target), t && t({ value: B.q.replace(/\D/g, ""), name: r });
5710
+ }, N = (Z) => {
5711
+ Z.key === "Enter" && Z.preventDefault();
5712
5712
  };
5713
- const A = (G) => {
5714
- ue.Blur(G), a && a({
5715
- value: G.target.textContent.replace(/\D/g, ""),
5713
+ const A = (Z) => {
5714
+ ue.Blur(Z), a && a({
5715
+ value: Z.target.textContent.replace(/\D/g, ""),
5716
5716
  name: r
5717
5717
  });
5718
5718
  }, X = {};
@@ -5736,7 +5736,7 @@ function Mt({
5736
5736
  o && /* @__PURE__ */ n.jsx("em", { children: o })
5737
5737
  ] });
5738
5738
  }
5739
- const Zn = (e) => {
5739
+ const Gn = (e) => {
5740
5740
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, s = e.placeholder !== void 0 ? e.placeholder : "", i = 0, o = () => {
5741
5741
  clearTimeout(i), i = setTimeout(() => {
5742
5742
  }, 1e3);
@@ -6097,7 +6097,7 @@ function yt({
6097
6097
  );
6098
6098
  }
6099
6099
  }
6100
- function Gn({
6100
+ function Zn({
6101
6101
  value: e,
6102
6102
  onValue: t,
6103
6103
  name: a,
@@ -6145,7 +6145,7 @@ function Gn({
6145
6145
  i ?? /* @__PURE__ */ n.jsx("em", { children: i })
6146
6146
  ] });
6147
6147
  }
6148
- function Wn({
6148
+ function zn({
6149
6149
  value: e,
6150
6150
  onValue: t,
6151
6151
  name: a,
@@ -6307,7 +6307,7 @@ const ml = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6307
6307
  )
6308
6308
  ] }) : "" });
6309
6309
  };
6310
- function zn({
6310
+ function Wn({
6311
6311
  onValue: e,
6312
6312
  label: t,
6313
6313
  value: a,
@@ -6362,7 +6362,7 @@ const hl = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
6362
6362
  }
6363
6363
  );
6364
6364
  };
6365
- function Yn({
6365
+ function Un({
6366
6366
  value: e,
6367
6367
  onValue: t,
6368
6368
  name: a,
@@ -6468,7 +6468,7 @@ function Yn({
6468
6468
  ] });
6469
6469
  }
6470
6470
  const xl = (e) => (e = e !== void 0 && e !== "" ? e.split(",") : [], e.reduce((t, a) => (t[a] = !0, t), {}));
6471
- function Un({
6471
+ function Vn({
6472
6472
  value: e,
6473
6473
  onValue: t,
6474
6474
  name: a,
@@ -6560,7 +6560,7 @@ const ic = {
6560
6560
  Color: $n,
6561
6561
  Date: Nt,
6562
6562
  Code: Bn,
6563
- Check: zn,
6563
+ Check: Wn,
6564
6564
  Switch: Tn,
6565
6565
  Input: Pe,
6566
6566
  Button: Dn,
@@ -6574,11 +6574,11 @@ const ic = {
6574
6574
  Number: Dt,
6575
6575
  Password: An,
6576
6576
  Phone: Mt,
6577
- Search: Zn,
6577
+ Search: Gn,
6578
6578
  Select: Ft,
6579
6579
  Set: yt,
6580
- Textarea: Gn,
6581
- Time: Wn,
6580
+ Textarea: Zn,
6581
+ Time: zn,
6582
6582
  Users: Lt,
6583
6583
  String: Pe,
6584
6584
  Form: yt,
@@ -6587,13 +6587,13 @@ const ic = {
6587
6587
  setValue: gl,
6588
6588
  Palette: hl,
6589
6589
  Toogle: Kn,
6590
- Group: Yn,
6591
- Options: Un
6590
+ Group: Un,
6591
+ Options: Vn
6592
6592
  }, oc = {
6593
6593
  Color: $n,
6594
6594
  Date: Nt,
6595
6595
  Code: Bn,
6596
- Check: zn,
6596
+ Check: Wn,
6597
6597
  Switch: Tn,
6598
6598
  Input: Pe,
6599
6599
  Button: Dn,
@@ -6607,23 +6607,23 @@ const ic = {
6607
6607
  Number: Dt,
6608
6608
  Password: An,
6609
6609
  Phone: Mt,
6610
- Search: Zn,
6610
+ Search: Gn,
6611
6611
  Select: Ft,
6612
6612
  Set: yt,
6613
- Textarea: Gn,
6614
- Time: Wn,
6613
+ Textarea: Zn,
6614
+ Time: zn,
6615
6615
  Users: Lt,
6616
6616
  String: Pe,
6617
6617
  Toogle: Kn,
6618
- Group: Yn,
6619
- Options: Un
6620
- }, Cl = "_spinner_1ul0m_1", kl = "_l_1ul0m_75", jl = "_loadingB_1ul0m_1", Vn = {
6618
+ Group: Un,
6619
+ Options: Vn
6620
+ }, Cl = "_spinner_1ul0m_1", kl = "_l_1ul0m_75", jl = "_loadingB_1ul0m_1", Yn = {
6621
6621
  spinner: Cl,
6622
6622
  l: kl,
6623
6623
  loadingB: jl
6624
6624
  };
6625
6625
  function yl() {
6626
- return /* @__PURE__ */ n.jsx("div", { className: Vn.spinner, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ n.jsx(
6626
+ return /* @__PURE__ */ n.jsx("div", { className: Yn.spinner, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ n.jsx(
6627
6627
  "path",
6628
6628
  {
6629
6629
  d: "M264,492a22.2,22.2,0,0,0,22-22V411a22.2,22.2,0,0,0-22-22H236a22.2,22.2,0,0,0-22,22v59a22.2,22.2,0,0,0,22,22Zm74-134a23.9,23.9,0,0,0-6,16,20.35,20.35,0,0,0,6,15l42,42q7,7,16,7,10,0,16-7l20-20a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16l-42-42q-7-7-16-7-8,0-15,7ZM163,389a18.94,18.94,0,0,0,7-15q0-9-7-16l-20-20q-7-7-16-7-8,0-15,7L70,380q-7,7-7,16a18.94,18.94,0,0,0,7,15l20,20q7,7,16,7a18.94,18.94,0,0,0,15-7ZM112,237a22.2,22.2,0,0,0-22-22H31a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,9,237v28a21.17,21.17,0,0,0,6.5,15.5A21.17,21.17,0,0,0,31,287H90a22.2,22.2,0,0,0,22-22Zm358,50a22.2,22.2,0,0,0,22-22V237a22.2,22.2,0,0,0-22-22H411a22.2,22.2,0,0,0-22,22v28a22.2,22.2,0,0,0,22,22ZM163,142q7-7,7-15.5T163,111L121,69q-7-7-15-7-7,0-16,7L70,89q-7,7-7,16a18.94,18.94,0,0,0,7,15l42,42a18.94,18.94,0,0,0,15,7q10,0,16-7Zm269-22a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16L412,69q-7-7-16-7-7,0-16,7l-42,42q-7,8-7,16t7,15l21,20a18.94,18.94,0,0,0,15,7q10,0,16-7Zm-168-9a22.06,22.06,0,0,0,15.5-6q6.5-6,6.5-16V30a21.17,21.17,0,0,0-6.5-15.5A21.17,21.17,0,0,0,264,8H236a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,214,30V89q0,10,6.5,16a22.06,22.06,0,0,0,15.5,6Z",
@@ -6632,7 +6632,7 @@ function yl() {
6632
6632
  ) }) });
6633
6633
  }
6634
6634
  function bl() {
6635
- return /* @__PURE__ */ n.jsxs("div", { className: Vn.l, children: [
6635
+ return /* @__PURE__ */ n.jsxs("div", { className: Yn.l, children: [
6636
6636
  /* @__PURE__ */ n.jsx("i", {}),
6637
6637
  /* @__PURE__ */ n.jsx("i", {}),
6638
6638
  /* @__PURE__ */ n.jsx("i", {})
@@ -6878,11 +6878,11 @@ function Ol({ data: e, head: t, state: a, dispatch: r, type: s }) {
6878
6878
  }
6879
6879
  );
6880
6880
  }
6881
- const dc = { Button: Ml, useValue: Fl, Set: Ll, Run: $l, Count: Hn, Reset: Bl }, _c = { Bell: ls, Send: ss, Add: rs }, Al = "_p_djnh1_1", Zl = "_l_djnh1_38", qn = {
6881
+ const dc = { Button: Ml, useValue: Fl, Set: Ll, Run: $l, Count: Hn, Reset: Bl }, _c = { Bell: ls, Send: ss, Add: rs }, Al = "_p_djnh1_1", Gl = "_l_djnh1_38", qn = {
6882
6882
  p: Al,
6883
- l: Zl
6883
+ l: Gl
6884
6884
  };
6885
- function Gl(e) {
6885
+ function Zl(e) {
6886
6886
  let t = 3, a = e.page, r = e.count, s = [], i = () => {
6887
6887
  s.push({ page: 1 }), s.push({ text: "..." });
6888
6888
  }, o = () => {
@@ -6900,7 +6900,7 @@ function Gl(e) {
6900
6900
  /* @__PURE__ */ n.jsx("i", { onClick: () => e.onChangePage(a + 1), children: /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ n.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" }) }) })
6901
6901
  ] });
6902
6902
  }
6903
- function Wl(e, t) {
6903
+ function zl(e, t) {
6904
6904
  switch (t.type) {
6905
6905
  case "load":
6906
6906
  return {
@@ -6922,7 +6922,7 @@ function Wl(e, t) {
6922
6922
  }
6923
6923
  }
6924
6924
  function Jn({ load: e, list: t, item: a }) {
6925
- const r = x.useRef(null), [s, i] = x.useReducer(Wl, {
6925
+ const r = x.useRef(null), [s, i] = x.useReducer(zl, {
6926
6926
  load: !1,
6927
6927
  list: [],
6928
6928
  data: {},
@@ -6948,7 +6948,7 @@ function Jn({ load: e, list: t, item: a }) {
6948
6948
  /* @__PURE__ */ n.jsx("i", {})
6949
6949
  ] }) }) }),
6950
6950
  s.load && s.list !== void 0 ? /* @__PURE__ */ n.jsx(
6951
- Gl,
6951
+ Zl,
6952
6952
  {
6953
6953
  page: s.page,
6954
6954
  count: s.size,
@@ -6958,7 +6958,7 @@ function Jn({ load: e, list: t, item: a }) {
6958
6958
  ] });
6959
6959
  }
6960
6960
  const uc = { Pagination: Jn };
6961
- function zl({ head: e, load: t, list: a, item: r }) {
6961
+ function Wl({ head: e, load: t, list: a, item: r }) {
6962
6962
  const s = e;
6963
6963
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
6964
6964
  /* @__PURE__ */ n.jsx(s, {}),
@@ -7007,13 +7007,13 @@ function Kl(e, t) {
7007
7007
  }
7008
7008
  }
7009
7009
  const bt = {};
7010
- function Yl(e) {
7010
+ function Ul(e) {
7011
7011
  bt.get = e;
7012
7012
  }
7013
- function Ul(e) {
7013
+ function Vl(e) {
7014
7014
  bt.get && bt.get(e);
7015
7015
  }
7016
- const fc = { View: zl, Reducer: Kl, useValue: Yl, setValue: Ul }, mc = { Get: fs }, hc = { Open: Ji };
7016
+ const fc = { View: Wl, Reducer: Kl, useValue: Ul, setValue: Vl }, mc = { Get: fs }, hc = { Open: Ji };
7017
7017
  function xc({ active: e, onActive: t, id: a, name: r }) {
7018
7018
  const [s, i] = x.useState(!!e);
7019
7019
  x.useEffect(() => {