elcrm 0.8.88 → 0.8.89

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
@@ -16,14 +16,14 @@ function Ma() {
16
16
  function La(e) {
17
17
  if (localStorage.getItem("d")) {
18
18
  let a = sessionStorage.getItem("f");
19
- a ? (a = $.deCode(a), a || ie(), D.id = a.id, D.tab = a.tab, D.page = a.page, D.module = a.module, D.time = a.time, D.payment = { active: !0 }, D.module_admin = a.module_admin) : (D.id = 0, D.tab = "", D.page = "Main", D.module = D.module || nt);
19
+ a ? (a = $.deCode(a), a || se(), D.id = a.id, D.tab = a.tab, D.page = a.page, D.module = a.module, D.time = a.time, D.payment = { active: !0 }, D.module_admin = a.module_admin) : (D.id = 0, D.tab = "", D.page = "Main", D.module = D.module || nt);
20
20
  } else
21
21
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
22
22
  (a) => localStorage.removeItem(a)
23
23
  ), ["f"].forEach((a) => sessionStorage.removeItem(a)), D.id = 0, D.tab = "", D.page = "Auth", D.module = nt;
24
24
  return e;
25
25
  }
26
- function ie() {
26
+ function se() {
27
27
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
28
28
  (e) => localStorage.removeItem(e)
29
29
  ), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
@@ -61,9 +61,9 @@ function pt() {
61
61
  let e = localStorage.getItem("p");
62
62
  if (e !== "" && e !== "undefined" && e !== null) {
63
63
  let t = $.deCode(e);
64
- return t || ie(), t;
64
+ return t || se(), t;
65
65
  } else
66
- return ie(), !1;
66
+ return se(), !1;
67
67
  }
68
68
  function Ga() {
69
69
  const [e, t] = p.useState(xn()), a = (r) => {
@@ -150,7 +150,7 @@ function nr(e, t) {
150
150
  }
151
151
  function ar(e) {
152
152
  let t = localStorage.getItem("s");
153
- return t === null ? {} : (t = $.deCode(t), t ? e !== void 0 ? t[e] : t : ie());
153
+ return t === null ? {} : (t = $.deCode(t), t ? e !== void 0 ? t[e] : t : se());
154
154
  }
155
155
  function Cn(e) {
156
156
  localStorage.setItem("m", $.enCode({ data: e }));
@@ -159,16 +159,16 @@ function rr() {
159
159
  let e = localStorage.getItem("m");
160
160
  if (e !== "" && e !== "undefined" && e !== null) {
161
161
  let t = localStorage.getItem("m"), a = $.deCode(t);
162
- a || ie();
163
- const r = (i, o) => {
164
- let l = o + "";
165
- for (; l.length < i; )
166
- l = "0" + l;
167
- return l;
162
+ a || se();
163
+ const r = (i, l) => {
164
+ let o = l + "";
165
+ for (; o.length < i; )
166
+ o = "0" + o;
167
+ return o;
168
168
  };
169
169
  return a.data.split(",").map((i) => "M" + r(2, i));
170
170
  } else
171
- return ie(), !1;
171
+ return se(), !1;
172
172
  }
173
173
  function sr(e) {
174
174
  J.sort = e;
@@ -189,9 +189,9 @@ function jn(e, t) {
189
189
  let a = localStorage.getItem("c");
190
190
  if (a !== "" && a !== "undefined" && a !== null) {
191
191
  let s = $.deCode(a);
192
- return s || ie(), e === void 0 ? s : t ? (r = s[e][t]) == null ? void 0 : r.n : s[e];
192
+ return s || se(), e === void 0 ? s : t ? (r = s[e][t]) == null ? void 0 : r.n : s[e];
193
193
  } else
194
- return ie(), !1;
194
+ return se(), !1;
195
195
  }
196
196
  function Ue(e) {
197
197
  ue.data = e, localStorage.setItem("q", $.enCode(ue.data));
@@ -206,10 +206,10 @@ function me(e, t) {
206
206
  }
207
207
  return e === void 0 && t === void 0 ? ue.data : e !== void 0 && t === void 0 ? ue.data[e] : ue.data[e][t];
208
208
  }
209
- function or(e) {
209
+ function lr(e) {
210
210
  gn.data = e;
211
211
  }
212
- function lr(e) {
212
+ function or(e) {
213
213
  return gn.data[e];
214
214
  }
215
215
  function cr(e) {
@@ -225,9 +225,9 @@ function _r() {
225
225
  let e = localStorage.getItem("u");
226
226
  if (e !== "" && e !== "undefined" && e !== null) {
227
227
  let t = $.deCode(e);
228
- return t || ie(), t;
228
+ return t || se(), t;
229
229
  } else
230
- return ie(), !1;
230
+ return se(), !1;
231
231
  }
232
232
  function nn(e) {
233
233
  localStorage.setItem("e", $.enCode(e));
@@ -237,7 +237,7 @@ function ur() {
237
237
  if (e !== "" && e !== "undefined" && e !== null)
238
238
  try {
239
239
  let t = $.deCode(e);
240
- return t || ie(), t;
240
+ return t || se(), t;
241
241
  } catch {
242
242
  return {};
243
243
  }
@@ -270,14 +270,14 @@ function hr(e, t) {
270
270
  function gr(e, t, a) {
271
271
  D[e].time = a, D[e].data[t.item][t.name] = t.value, localStorage.setItem(e, $.enCode(D[e]));
272
272
  }
273
- const le = {
273
+ const oe = {
274
274
  setSSID: Ba,
275
275
  getSSID: $a,
276
276
  getPORT: pt,
277
277
  setPORT: Aa,
278
278
  setAUTH: Pa,
279
279
  getAUTH: Oa,
280
- Logaut: ie,
280
+ Logaut: se,
281
281
  Start: Fa,
282
282
  setMenu: Cn,
283
283
  getMenu: rr,
@@ -289,8 +289,8 @@ const le = {
289
289
  setSelect: Ue,
290
290
  addSelect: ir,
291
291
  getSelect: me,
292
- setApi: or,
293
- getApi: lr,
292
+ setApi: lr,
293
+ getApi: or,
294
294
  setPayment: cr,
295
295
  getPayment: dr,
296
296
  setUser: wn,
@@ -339,7 +339,7 @@ function kr(e) {
339
339
  const rt = { version: { Api: vr, Server: pr, Client: Cr }, Host: kr };
340
340
  let yr = "api", jr = "elcrm", wr = "online";
341
341
  function br() {
342
- let e = le.getPORT(), t = "", a = "";
342
+ let e = oe.getPORT(), t = "", a = "";
343
343
  return e.address === "localhost" ? (t = `http://localhost:${e.socket}/documents`, a = `http://localhost:${e.socket}/files`) : (t = "https://" + e.address + "/documents", a = "https://" + e.address + "/files"), {
344
344
  documents: t,
345
345
  files: a
@@ -347,9 +347,9 @@ function br() {
347
347
  }
348
348
  let Nt = `${yr}.${jr}.${wr}`;
349
349
  function Sr(e) {
350
- return "https://" + le.getPORT().address + "/audio/" + e;
350
+ return "https://" + oe.getPORT().address + "/audio/" + e;
351
351
  }
352
- function ze(e, t = {}, a = le.getAUTH()) {
352
+ function ze(e, t = {}, a = oe.getAUTH()) {
353
353
  return new Promise((r) => {
354
354
  const s = new Sn();
355
355
  s.onmessage = (i) => {
@@ -362,7 +362,7 @@ function ze(e, t = {}, a = le.getAUTH()) {
362
362
  });
363
363
  });
364
364
  }
365
- async function Er(e, t = {}, a = le.getAUTH()) {
365
+ async function Er(e, t = {}, a = oe.getAUTH()) {
366
366
  try {
367
367
  return await (await ze(rt.Host() || `https://${Nt}/` + e, {
368
368
  method: "POST",
@@ -375,7 +375,7 @@ async function Er(e, t = {}, a = le.getAUTH()) {
375
375
  return { status: "error", message: r };
376
376
  }
377
377
  }
378
- function Rr(e, t = {}, a = le.getAUTH()) {
378
+ function Rr(e, t = {}, a = oe.getAUTH()) {
379
379
  return new Promise((r) => {
380
380
  const s = new Sn();
381
381
  s.onmessage = (i) => {
@@ -389,9 +389,9 @@ function Rr(e, t = {}, a = le.getAUTH()) {
389
389
  });
390
390
  }
391
391
  function Dr(e, t = {}, a) {
392
- const [r, s] = p.useState({ status: "load" }), i = async (o) => {
393
- let l = await ze(e, o, a);
394
- s(l);
392
+ const [r, s] = p.useState({ status: "load" }), i = async (l) => {
393
+ let o = await ze(e, l, a);
394
+ s(o);
395
395
  };
396
396
  return p.useEffect(() => {
397
397
  i(t);
@@ -399,7 +399,7 @@ function Dr(e, t = {}, a) {
399
399
  }
400
400
  let En = {
401
401
  "Content-type": "application/json;charset=utf-8",
402
- ssid: le.getAUTH() || ""
402
+ ssid: oe.getAUTH() || ""
403
403
  };
404
404
  async function Nr(e, t, a = {}) {
405
405
  try {
@@ -459,17 +459,17 @@ function Lr() {
459
459
  return $e;
460
460
  sn = 1;
461
461
  var e = p, t = Symbol.for("react.element"), a = 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 };
462
- function o(l, d, _) {
462
+ function l(o, d, _) {
463
463
  var u, g = {}, f = null, m = null;
464
464
  _ !== void 0 && (f = "" + _), d.key !== void 0 && (f = "" + d.key), d.ref !== void 0 && (m = d.ref);
465
465
  for (u in d)
466
466
  r.call(d, u) && !i.hasOwnProperty(u) && (g[u] = d[u]);
467
- if (l && l.defaultProps)
468
- for (u in d = l.defaultProps, d)
467
+ if (o && o.defaultProps)
468
+ for (u in d = o.defaultProps, d)
469
469
  g[u] === void 0 && (g[u] = d[u]);
470
- return { $$typeof: t, type: l, key: f, ref: m, props: g, _owner: s.current };
470
+ return { $$typeof: t, type: o, key: f, ref: m, props: g, _owner: s.current };
471
471
  }
472
- return $e.Fragment = a, $e.jsx = o, $e.jsxs = o, $e;
472
+ return $e.Fragment = a, $e.jsx = l, $e.jsxs = l, $e;
473
473
  }
474
474
  var Pe = {};
475
475
  /**
@@ -481,10 +481,10 @@ var Pe = {};
481
481
  * This source code is licensed under the MIT license found in the
482
482
  * LICENSE file in the root directory of this source tree.
483
483
  */
484
- var on;
484
+ var ln;
485
485
  function Fr() {
486
- return on || (on = 1, process.env.NODE_ENV !== "production" && function() {
487
- var e = p, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), k = Symbol.iterator, h = "@@iterator";
486
+ return ln || (ln = 1, process.env.NODE_ENV !== "production" && function() {
487
+ var e = p, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), o = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), k = Symbol.iterator, h = "@@iterator";
488
488
  function x(c) {
489
489
  if (c === null || typeof c != "object")
490
490
  return null;
@@ -492,38 +492,38 @@ function Fr() {
492
492
  return typeof v == "function" ? v : null;
493
493
  }
494
494
  var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
495
- function w(c) {
495
+ function j(c) {
496
496
  {
497
- for (var v = arguments.length, j = new Array(v > 1 ? v - 1 : 0), L = 1; L < v; L++)
498
- j[L - 1] = arguments[L];
499
- I("error", c, j);
497
+ for (var v = arguments.length, y = new Array(v > 1 ? v - 1 : 0), L = 1; L < v; L++)
498
+ y[L - 1] = arguments[L];
499
+ I("error", c, y);
500
500
  }
501
501
  }
502
- function I(c, v, j) {
502
+ function I(c, v, y) {
503
503
  {
504
504
  var L = C.ReactDebugCurrentFrame, A = L.getStackAddendum();
505
- A !== "" && (v += "%s", j = j.concat([A]));
506
- var Z = j.map(function(P) {
505
+ A !== "" && (v += "%s", y = y.concat([A]));
506
+ var Z = y.map(function(P) {
507
507
  return String(P);
508
508
  });
509
509
  Z.unshift("Warning: " + v), Function.prototype.apply.call(console[c], console, Z);
510
510
  }
511
511
  }
512
- var T = !1, y = !1, b = !1, S = !1, R = !1, G;
512
+ var T = !1, w = !1, S = !1, b = !1, E = !1, G;
513
513
  G = Symbol.for("react.module.reference");
514
514
  function M(c) {
515
- return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || R || c === s || c === _ || c === u || S || c === m || T || y || b || typeof c == "object" && c !== null && (c.$$typeof === f || c.$$typeof === g || c.$$typeof === o || c.$$typeof === l || c.$$typeof === d || // This needs to include all possible module reference object
515
+ return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || E || c === s || c === _ || c === u || b || c === m || T || w || S || typeof c == "object" && c !== null && (c.$$typeof === f || c.$$typeof === g || c.$$typeof === l || c.$$typeof === o || c.$$typeof === d || // This needs to include all possible module reference object
516
516
  // types supported by any Flight configuration anywhere since
517
517
  // we don't know which Flight build this will end up being used
518
518
  // with.
519
519
  c.$$typeof === G || c.getModuleId !== void 0));
520
520
  }
521
- function U(c, v, j) {
521
+ function U(c, v, y) {
522
522
  var L = c.displayName;
523
523
  if (L)
524
524
  return L;
525
525
  var A = v.displayName || v.name || "";
526
- return A !== "" ? j + "(" + A + ")" : j;
526
+ return A !== "" ? y + "(" + A + ")" : y;
527
527
  }
528
528
  function O(c) {
529
529
  return c.displayName || "Context";
@@ -531,7 +531,7 @@ function Fr() {
531
531
  function N(c) {
532
532
  if (c == null)
533
533
  return null;
534
- if (typeof c.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
534
+ if (typeof c.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
535
535
  return c.displayName || c.name || null;
536
536
  if (typeof c == "string")
537
537
  return c;
@@ -551,12 +551,12 @@ function Fr() {
551
551
  }
552
552
  if (typeof c == "object")
553
553
  switch (c.$$typeof) {
554
- case l:
554
+ case o:
555
555
  var v = c;
556
556
  return O(v) + ".Consumer";
557
- case o:
558
- var j = c;
559
- return O(j._context) + ".Provider";
557
+ case l:
558
+ var y = c;
559
+ return O(y._context) + ".Provider";
560
560
  case d:
561
561
  return U(c, c.render, "ForwardRef");
562
562
  case g:
@@ -573,14 +573,14 @@ function Fr() {
573
573
  }
574
574
  return null;
575
575
  }
576
- var F = Object.assign, z = 0, ee, re, te, be, Le, He, At;
576
+ var F = Object.assign, z = 0, ee, ae, ie, be, Le, He, At;
577
577
  function Gt() {
578
578
  }
579
579
  Gt.__reactDisabledLog = !0;
580
580
  function Qn() {
581
581
  {
582
582
  if (z === 0) {
583
- ee = console.log, re = console.info, te = console.warn, be = console.error, Le = console.group, He = console.groupCollapsed, At = console.groupEnd;
583
+ ee = console.log, ae = console.info, ie = console.warn, be = console.error, Le = console.group, He = console.groupCollapsed, At = console.groupEnd;
584
584
  var c = {
585
585
  configurable: !0,
586
586
  enumerable: !0,
@@ -613,10 +613,10 @@ function Fr() {
613
613
  value: ee
614
614
  }),
615
615
  info: F({}, c, {
616
- value: re
616
+ value: ae
617
617
  }),
618
618
  warn: F({}, c, {
619
- value: te
619
+ value: ie
620
620
  }),
621
621
  error: F({}, c, {
622
622
  value: be
@@ -632,21 +632,21 @@ function Fr() {
632
632
  })
633
633
  });
634
634
  }
635
- z < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
635
+ z < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
636
636
  }
637
637
  }
638
- var ot = C.ReactCurrentDispatcher, lt;
639
- function Ye(c, v, j) {
638
+ var lt = C.ReactCurrentDispatcher, ot;
639
+ function Ye(c, v, y) {
640
640
  {
641
- if (lt === void 0)
641
+ if (ot === void 0)
642
642
  try {
643
643
  throw Error();
644
644
  } catch (A) {
645
645
  var L = A.stack.trim().match(/\n( *(at )?)/);
646
- lt = L && L[1] || "";
646
+ ot = L && L[1] || "";
647
647
  }
648
648
  return `
649
- ` + lt + c;
649
+ ` + ot + c;
650
650
  }
651
651
  }
652
652
  var ct = !1, qe;
@@ -658,16 +658,16 @@ function Fr() {
658
658
  if (!c || ct)
659
659
  return "";
660
660
  {
661
- var j = qe.get(c);
662
- if (j !== void 0)
663
- return j;
661
+ var y = qe.get(c);
662
+ if (y !== void 0)
663
+ return y;
664
664
  }
665
665
  var L;
666
666
  ct = !0;
667
667
  var A = Error.prepareStackTrace;
668
668
  Error.prepareStackTrace = void 0;
669
669
  var Z;
670
- Z = ot.current, ot.current = null, Qn();
670
+ Z = lt.current, lt.current = null, Qn();
671
671
  try {
672
672
  if (v) {
673
673
  var P = function() {
@@ -680,29 +680,29 @@ function Fr() {
680
680
  }), typeof Reflect == "object" && Reflect.construct) {
681
681
  try {
682
682
  Reflect.construct(P, []);
683
- } catch (ne) {
684
- L = ne;
683
+ } catch (te) {
684
+ L = te;
685
685
  }
686
686
  Reflect.construct(c, [], P);
687
687
  } else {
688
688
  try {
689
689
  P.call();
690
- } catch (ne) {
691
- L = ne;
690
+ } catch (te) {
691
+ L = te;
692
692
  }
693
693
  c.call(P.prototype);
694
694
  }
695
695
  } else {
696
696
  try {
697
697
  throw Error();
698
- } catch (ne) {
699
- L = ne;
698
+ } catch (te) {
699
+ L = te;
700
700
  }
701
701
  c();
702
702
  }
703
- } catch (ne) {
704
- if (ne && L && typeof ne.stack == "string") {
705
- for (var B = ne.stack.split(`
703
+ } catch (te) {
704
+ if (te && L && typeof te.stack == "string") {
705
+ for (var B = te.stack.split(`
706
706
  `), Q = L.stack.split(`
707
707
  `), Y = B.length - 1, V = Q.length - 1; Y >= 1 && V >= 0 && B[Y] !== Q[V]; )
708
708
  V--;
@@ -711,28 +711,28 @@ function Fr() {
711
711
  if (Y !== 1 || V !== 1)
712
712
  do
713
713
  if (Y--, V--, V < 0 || B[Y] !== Q[V]) {
714
- var oe = `
714
+ var le = `
715
715
  ` + B[Y].replace(" at new ", " at ");
716
- return c.displayName && oe.includes("<anonymous>") && (oe = oe.replace("<anonymous>", c.displayName)), typeof c == "function" && qe.set(c, oe), oe;
716
+ return c.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", c.displayName)), typeof c == "function" && qe.set(c, le), le;
717
717
  }
718
718
  while (Y >= 1 && V >= 0);
719
719
  break;
720
720
  }
721
721
  }
722
722
  } finally {
723
- ct = !1, ot.current = Z, ea(), Error.prepareStackTrace = A;
723
+ ct = !1, lt.current = Z, ea(), Error.prepareStackTrace = A;
724
724
  }
725
725
  var Ee = c ? c.displayName || c.name : "", ke = Ee ? Ye(Ee) : "";
726
726
  return typeof c == "function" && qe.set(c, ke), ke;
727
727
  }
728
- function na(c, v, j) {
728
+ function na(c, v, y) {
729
729
  return Zt(c, !1);
730
730
  }
731
731
  function aa(c) {
732
732
  var v = c.prototype;
733
733
  return !!(v && v.isReactComponent);
734
734
  }
735
- function Ve(c, v, j) {
735
+ function Ve(c, v, y) {
736
736
  if (c == null)
737
737
  return "";
738
738
  if (typeof c == "function")
@@ -750,11 +750,11 @@ function Fr() {
750
750
  case d:
751
751
  return na(c.render);
752
752
  case g:
753
- return Ve(c.type, v, j);
753
+ return Ve(c.type, v, y);
754
754
  case f: {
755
755
  var L = c, A = L._payload, Z = L._init;
756
756
  try {
757
- return Ve(Z(A), v, j);
757
+ return Ve(Z(A), v, y);
758
758
  } catch {
759
759
  }
760
760
  }
@@ -764,12 +764,12 @@ function Fr() {
764
764
  var Fe = Object.prototype.hasOwnProperty, Ut = {}, zt = C.ReactDebugCurrentFrame;
765
765
  function Je(c) {
766
766
  if (c) {
767
- var v = c._owner, j = Ve(c.type, c._source, v ? v.type : null);
768
- zt.setExtraStackFrame(j);
767
+ var v = c._owner, y = Ve(c.type, c._source, v ? v.type : null);
768
+ zt.setExtraStackFrame(y);
769
769
  } else
770
770
  zt.setExtraStackFrame(null);
771
771
  }
772
- function ra(c, v, j, L, A) {
772
+ function ra(c, v, y, L, A) {
773
773
  {
774
774
  var Z = Function.call.bind(Fe);
775
775
  for (var P in c)
@@ -777,14 +777,14 @@ function Fr() {
777
777
  var B = void 0;
778
778
  try {
779
779
  if (typeof c[P] != "function") {
780
- var Q = Error((L || "React class") + ": " + j + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[P] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
780
+ var Q = Error((L || "React class") + ": " + y + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[P] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
781
781
  throw Q.name = "Invariant Violation", Q;
782
782
  }
783
- B = c[P](v, P, L, j, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
783
+ B = c[P](v, P, L, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
784
784
  } catch (Y) {
785
785
  B = Y;
786
786
  }
787
- B && !(B instanceof Error) && (Je(A), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", L || "React class", j, P, typeof B), Je(null)), B instanceof Error && !(B.message in Ut) && (Ut[B.message] = !0, Je(A), w("Failed %s type: %s", j, B.message), Je(null));
787
+ B && !(B instanceof Error) && (Je(A), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", L || "React class", y, P, typeof B), Je(null)), B instanceof Error && !(B.message in Ut) && (Ut[B.message] = !0, Je(A), j("Failed %s type: %s", y, B.message), Je(null));
788
788
  }
789
789
  }
790
790
  }
@@ -794,11 +794,11 @@ function Fr() {
794
794
  }
795
795
  function ia(c) {
796
796
  {
797
- var v = typeof Symbol == "function" && Symbol.toStringTag, j = v && c[Symbol.toStringTag] || c.constructor.name || "Object";
798
- return j;
797
+ var v = typeof Symbol == "function" && Symbol.toStringTag, y = v && c[Symbol.toStringTag] || c.constructor.name || "Object";
798
+ return y;
799
799
  }
800
800
  }
801
- function oa(c) {
801
+ function la(c) {
802
802
  try {
803
803
  return Kt(c), !1;
804
804
  } catch {
@@ -809,10 +809,10 @@ function Fr() {
809
809
  return "" + c;
810
810
  }
811
811
  function Wt(c) {
812
- if (oa(c))
813
- return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ia(c)), Kt(c);
812
+ if (la(c))
813
+ return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ia(c)), Kt(c);
814
814
  }
815
- var Be = C.ReactCurrentOwner, la = {
815
+ var Be = C.ReactCurrentOwner, oa = {
816
816
  key: !0,
817
817
  ref: !0,
818
818
  __self: !0,
@@ -837,40 +837,40 @@ function Fr() {
837
837
  }
838
838
  function _a(c, v) {
839
839
  if (typeof c.ref == "string" && Be.current && v && Be.current.stateNode !== v) {
840
- var j = N(Be.current.type);
841
- _t[j] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', N(Be.current.type), c.ref), _t[j] = !0);
840
+ var y = N(Be.current.type);
841
+ _t[y] || (j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', N(Be.current.type), c.ref), _t[y] = !0);
842
842
  }
843
843
  }
844
844
  function ua(c, v) {
845
845
  {
846
- var j = function() {
847
- Ht || (Ht = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
846
+ var y = function() {
847
+ Ht || (Ht = !0, j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
848
848
  };
849
- j.isReactWarning = !0, Object.defineProperty(c, "key", {
850
- get: j,
849
+ y.isReactWarning = !0, Object.defineProperty(c, "key", {
850
+ get: y,
851
851
  configurable: !0
852
852
  });
853
853
  }
854
854
  }
855
855
  function fa(c, v) {
856
856
  {
857
- var j = function() {
858
- Yt || (Yt = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
857
+ var y = function() {
858
+ Yt || (Yt = !0, j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
859
859
  };
860
- j.isReactWarning = !0, Object.defineProperty(c, "ref", {
861
- get: j,
860
+ y.isReactWarning = !0, Object.defineProperty(c, "ref", {
861
+ get: y,
862
862
  configurable: !0
863
863
  });
864
864
  }
865
865
  }
866
- var ma = function(c, v, j, L, A, Z, P) {
866
+ var ma = function(c, v, y, L, A, Z, P) {
867
867
  var B = {
868
868
  // This tag allows us to uniquely identify this as a React Element
869
869
  $$typeof: t,
870
870
  // Built-in properties that belong on the element
871
871
  type: c,
872
872
  key: v,
873
- ref: j,
873
+ ref: y,
874
874
  props: P,
875
875
  // Record the component responsible for creating this element.
876
876
  _owner: Z
@@ -892,12 +892,12 @@ function Fr() {
892
892
  value: A
893
893
  }), Object.freeze && (Object.freeze(B.props), Object.freeze(B)), B;
894
894
  };
895
- function ha(c, v, j, L, A) {
895
+ function ha(c, v, y, L, A) {
896
896
  {
897
897
  var Z, P = {}, B = null, Q = null;
898
- j !== void 0 && (Wt(j), B = "" + j), da(v) && (Wt(v.key), B = "" + v.key), ca(v) && (Q = v.ref, _a(v, A));
898
+ y !== void 0 && (Wt(y), B = "" + y), da(v) && (Wt(v.key), B = "" + v.key), ca(v) && (Q = v.ref, _a(v, A));
899
899
  for (Z in v)
900
- Fe.call(v, Z) && !la.hasOwnProperty(Z) && (P[Z] = v[Z]);
900
+ Fe.call(v, Z) && !oa.hasOwnProperty(Z) && (P[Z] = v[Z]);
901
901
  if (c && c.defaultProps) {
902
902
  var Y = c.defaultProps;
903
903
  for (Z in Y)
@@ -913,8 +913,8 @@ function Fr() {
913
913
  var ut = C.ReactCurrentOwner, qt = C.ReactDebugCurrentFrame;
914
914
  function Se(c) {
915
915
  if (c) {
916
- var v = c._owner, j = Ve(c.type, c._source, v ? v.type : null);
917
- qt.setExtraStackFrame(j);
916
+ var v = c._owner, y = Ve(c.type, c._source, v ? v.type : null);
917
+ qt.setExtraStackFrame(y);
918
918
  } else
919
919
  qt.setExtraStackFrame(null);
920
920
  }
@@ -943,10 +943,10 @@ Check the render method of \`` + c + "`.";
943
943
  {
944
944
  var v = Vt();
945
945
  if (!v) {
946
- var j = typeof c == "string" ? c : c.displayName || c.name;
947
- j && (v = `
946
+ var y = typeof c == "string" ? c : c.displayName || c.name;
947
+ y && (v = `
948
948
 
949
- Check the top-level render call using <` + j + ">.");
949
+ Check the top-level render call using <` + y + ">.");
950
950
  }
951
951
  return v;
952
952
  }
@@ -956,12 +956,12 @@ Check the top-level render call using <` + j + ">.");
956
956
  if (!c._store || c._store.validated || c.key != null)
957
957
  return;
958
958
  c._store.validated = !0;
959
- var j = xa(v);
960
- if (Jt[j])
959
+ var y = xa(v);
960
+ if (Jt[y])
961
961
  return;
962
- Jt[j] = !0;
962
+ Jt[y] = !0;
963
963
  var L = "";
964
- c && c._owner && c._owner !== ut.current && (L = " It was passed a child from " + N(c._owner.type) + "."), Se(c), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', j, L), Se(null);
964
+ c && c._owner && c._owner !== ut.current && (L = " It was passed a child from " + N(c._owner.type) + "."), Se(c), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, L), Se(null);
965
965
  }
966
966
  }
967
967
  function Qt(c, v) {
@@ -969,8 +969,8 @@ Check the top-level render call using <` + j + ">.");
969
969
  if (typeof c != "object")
970
970
  return;
971
971
  if (dt(c))
972
- for (var j = 0; j < c.length; j++) {
973
- var L = c[j];
972
+ for (var y = 0; y < c.length; y++) {
973
+ var L = c[y];
974
974
  mt(L) && Xt(L, v);
975
975
  }
976
976
  else if (mt(c))
@@ -988,40 +988,40 @@ Check the top-level render call using <` + j + ">.");
988
988
  var v = c.type;
989
989
  if (v == null || typeof v == "string")
990
990
  return;
991
- var j;
991
+ var y;
992
992
  if (typeof v == "function")
993
- j = v.propTypes;
993
+ y = v.propTypes;
994
994
  else if (typeof v == "object" && (v.$$typeof === d || // Note: Memo only checks outer props here.
995
995
  // Inner props are checked in the reconciler.
996
996
  v.$$typeof === g))
997
- j = v.propTypes;
997
+ y = v.propTypes;
998
998
  else
999
999
  return;
1000
- if (j) {
1000
+ if (y) {
1001
1001
  var L = N(v);
1002
- ra(j, c.props, "prop", L, c);
1002
+ ra(y, c.props, "prop", L, c);
1003
1003
  } else if (v.PropTypes !== void 0 && !ft) {
1004
1004
  ft = !0;
1005
1005
  var A = N(v);
1006
- w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", A || "Unknown");
1006
+ j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", A || "Unknown");
1007
1007
  }
1008
- typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1008
+ typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1009
1009
  }
1010
1010
  }
1011
1011
  function va(c) {
1012
1012
  {
1013
- for (var v = Object.keys(c.props), j = 0; j < v.length; j++) {
1014
- var L = v[j];
1013
+ for (var v = Object.keys(c.props), y = 0; y < v.length; y++) {
1014
+ var L = v[y];
1015
1015
  if (L !== "children" && L !== "key") {
1016
- Se(c), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", L), Se(null);
1016
+ Se(c), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", L), Se(null);
1017
1017
  break;
1018
1018
  }
1019
1019
  }
1020
- c.ref !== null && (Se(c), w("Invalid attribute `ref` supplied to `React.Fragment`."), Se(null));
1020
+ c.ref !== null && (Se(c), j("Invalid attribute `ref` supplied to `React.Fragment`."), Se(null));
1021
1021
  }
1022
1022
  }
1023
1023
  var en = {};
1024
- function tn(c, v, j, L, A, Z) {
1024
+ function tn(c, v, y, L, A, Z) {
1025
1025
  {
1026
1026
  var P = M(c);
1027
1027
  if (!P) {
@@ -1030,31 +1030,31 @@ Check the top-level render call using <` + j + ">.");
1030
1030
  var Q = ga();
1031
1031
  Q ? B += Q : B += Vt();
1032
1032
  var Y;
1033
- c === null ? Y = "null" : dt(c) ? Y = "array" : c !== void 0 && c.$$typeof === t ? (Y = "<" + (N(c.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : Y = typeof c, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Y, B);
1033
+ c === null ? Y = "null" : dt(c) ? Y = "array" : c !== void 0 && c.$$typeof === t ? (Y = "<" + (N(c.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : Y = typeof c, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Y, B);
1034
1034
  }
1035
- var V = ha(c, v, j, A, Z);
1035
+ var V = ha(c, v, y, A, Z);
1036
1036
  if (V == null)
1037
1037
  return V;
1038
1038
  if (P) {
1039
- var oe = v.children;
1040
- if (oe !== void 0)
1039
+ var le = v.children;
1040
+ if (le !== void 0)
1041
1041
  if (L)
1042
- if (dt(oe)) {
1043
- for (var Ee = 0; Ee < oe.length; Ee++)
1044
- Qt(oe[Ee], c);
1045
- Object.freeze && Object.freeze(oe);
1042
+ if (dt(le)) {
1043
+ for (var Ee = 0; Ee < le.length; Ee++)
1044
+ Qt(le[Ee], c);
1045
+ Object.freeze && Object.freeze(le);
1046
1046
  } else
1047
- w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1047
+ j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1048
1048
  else
1049
- Qt(oe, c);
1049
+ Qt(le, c);
1050
1050
  }
1051
1051
  if (Fe.call(v, "key")) {
1052
- var ke = N(c), ne = Object.keys(v).filter(function(ba) {
1052
+ var ke = N(c), te = Object.keys(v).filter(function(ba) {
1053
1053
  return ba !== "key";
1054
- }), ht = ne.length > 0 ? "{key: someKey, " + ne.join(": ..., ") + ": ...}" : "{key: someKey}";
1054
+ }), ht = te.length > 0 ? "{key: someKey, " + te.join(": ..., ") + ": ...}" : "{key: someKey}";
1055
1055
  if (!en[ke + ht]) {
1056
- var wa = ne.length > 0 ? "{" + ne.join(": ..., ") + ": ...}" : "{}";
1057
- w(`A props object containing a "key" prop is being spread into JSX:
1056
+ var wa = te.length > 0 ? "{" + te.join(": ..., ") + ": ...}" : "{}";
1057
+ j(`A props object containing a "key" prop is being spread into JSX:
1058
1058
  let props = %s;
1059
1059
  <%s {...props} />
1060
1060
  React keys must be passed directly to JSX without using spread:
@@ -1065,11 +1065,11 @@ React keys must be passed directly to JSX without using spread:
1065
1065
  return c === r ? va(V) : pa(V), V;
1066
1066
  }
1067
1067
  }
1068
- function Ca(c, v, j) {
1069
- return tn(c, v, j, !0);
1068
+ function Ca(c, v, y) {
1069
+ return tn(c, v, y, !0);
1070
1070
  }
1071
- function ka(c, v, j) {
1072
- return tn(c, v, j, !1);
1071
+ function ka(c, v, y) {
1072
+ return tn(c, v, y, !1);
1073
1073
  }
1074
1074
  var ya = ka, ja = Ca;
1075
1075
  Pe.Fragment = r, Pe.jsx = ya, Pe.jsxs = ja;
@@ -1326,7 +1326,7 @@ const ss = "_n_euuvm_1", is = {
1326
1326
  n: ss
1327
1327
  };
1328
1328
  let We = {}, Oe = [];
1329
- const os = (e, t) => {
1329
+ const ls = (e, t) => {
1330
1330
  switch (t.type) {
1331
1331
  case "open":
1332
1332
  return {
@@ -1378,7 +1378,7 @@ const os = (e, t) => {
1378
1378
  throw new Error();
1379
1379
  }
1380
1380
  };
1381
- function ls(e) {
1381
+ function os(e) {
1382
1382
  We.fn({ action: "add", data: e });
1383
1383
  }
1384
1384
  function cs(e) {
@@ -1391,7 +1391,7 @@ function _s(e) {
1391
1391
  We.fn = e;
1392
1392
  }
1393
1393
  function us() {
1394
- const [e, t] = p.useReducer(os, {
1394
+ const [e, t] = p.useReducer(ls, {
1395
1395
  open: !1,
1396
1396
  active: !1,
1397
1397
  news: [],
@@ -1546,20 +1546,20 @@ let _e = {}, X = {}, Xe = [
1546
1546
  function ps() {
1547
1547
  const [e, t] = p.useState(!1), [a, r] = p.useState(!1);
1548
1548
  function s(i) {
1549
- const o = new hs();
1550
- _e.laodData = (l) => {
1551
- let d = Xe.indexOf(l);
1549
+ const l = new hs();
1550
+ _e.laodData = (o) => {
1551
+ let d = Xe.indexOf(o);
1552
1552
  d >= 0 && Xe.splice(d, 1), Xe.length === 0 && t(!0);
1553
- }, _e.send = (l) => {
1554
- o.port.postMessage({ type: "send", json: l });
1555
- }, o.port.onmessage = (l) => {
1556
- let d = l.data;
1557
- d.type === "error" && r(!0), d.type === "true" && t(!0), d.type === "closed" && o.port.postMessage({
1553
+ }, _e.send = (o) => {
1554
+ l.port.postMessage({ type: "send", json: o });
1555
+ }, l.port.onmessage = (o) => {
1556
+ let d = o.data;
1557
+ d.type === "error" && r(!0), d.type === "true" && t(!0), d.type === "closed" && l.port.postMessage({
1558
1558
  type: "connect",
1559
1559
  ukey: i,
1560
1560
  lk: pt()
1561
1561
  }), Xe.length !== 0 && _e.laodData(d.type), X[d.type] && X[d.type](d);
1562
- }, o.port.postMessage({
1562
+ }, l.port.postMessage({
1563
1563
  type: "connect",
1564
1564
  ukey: i,
1565
1565
  lk: pt()
@@ -1599,7 +1599,7 @@ X.chat = (e) => {
1599
1599
  X.users = (e) => {
1600
1600
  let t = {};
1601
1601
  e.data.forEach((r) => {
1602
- 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);
1602
+ let s = r.p01 + " " + r.p02 + " " + r.p03, i = r.p01 + " " + r.p02.substring(0, 1) + "." + r.p03.substring(0, 1) + ".", l = r.p01.substring(0, 1) + "" + r.p02.substring(0, 1) + r.p03.substring(0, 1);
1603
1603
  t[r.id] = {
1604
1604
  id: r.id,
1605
1605
  admin: r.m.includes("99"),
@@ -1610,7 +1610,7 @@ X.users = (e) => {
1610
1610
  sts: r.s,
1611
1611
  nameFull: s,
1612
1612
  name: i,
1613
- number: o
1613
+ number: l
1614
1614
  };
1615
1615
  });
1616
1616
  let a = { ...me(), user: t };
@@ -1623,7 +1623,7 @@ X.api = (e) => {
1623
1623
  });
1624
1624
  };
1625
1625
  X.delete = () => {
1626
- ie();
1626
+ se();
1627
1627
  };
1628
1628
  X.select = (e) => {
1629
1629
  let t = { ...me() };
@@ -1695,15 +1695,15 @@ function js(e) {
1695
1695
  }
1696
1696
  const ws = (e) => {
1697
1697
  function t(I, T) {
1698
- var y, S, b;
1698
+ var w, b, S;
1699
1699
  I = I ?? "", T = T ?? 1;
1700
- for (var y = [], b = 0, S = I.length; b < S; )
1701
- y.push(I.slice(b, b += T));
1702
- return y;
1700
+ for (var w = [], S = 0, b = I.length; S < b; )
1701
+ w.push(I.slice(S, S += T));
1702
+ return w;
1703
1703
  }
1704
1704
  function a(I, T) {
1705
- var y = [2, 0, 1, 1, 1, 2];
1706
- return T[I > 4 && I < 20 ? 2 : y[Math.min(I, 5)]];
1705
+ var w = [2, 0, 1, 1, 1, 2];
1706
+ return T[I > 4 && I < 20 ? 2 : w[Math.min(I, 5)]];
1707
1707
  }
1708
1708
  var r = {
1709
1709
  null: "ноль",
@@ -1767,8 +1767,8 @@ const ws = (e) => {
1767
1767
  u3: ["тысяча", "тысячи", "тысяч"],
1768
1768
  u2: ["миллион", "миллиона", "миллионов"],
1769
1769
  u1: ["миллиард", "миллиарда", "миллиардов"]
1770
- }, s, i, o, l, x, d, _, h, u, g, f, m;
1771
- u = parseFloat(e).toFixed(2).split("."), d = u[0], l = u[1];
1770
+ }, s, i, l, o, x, d, _, h, u, g, f, m;
1771
+ u = parseFloat(e).toFixed(2).split("."), d = u[0], o = u[1];
1772
1772
  var k = 12 - d.length;
1773
1773
  if (k < 0)
1774
1774
  return !1;
@@ -1779,17 +1779,17 @@ const ws = (e) => {
1779
1779
  if (d > 0) {
1780
1780
  g = t(d, 3);
1781
1781
  for (var C = -1; C < g.length; C++)
1782
- if (_ = g[C], _ > 0 && (f = t(_, 1), s = parseInt(f[0]), i = parseInt(f[1]), o = parseInt(f[2]), x.push(r.a100[s - 1]), m = C + 1 == 3 ? "a2" : "a1", i > 1 ? x.push(
1783
- r.a20[i - 2] + (o > 0 ? " " + r[m][o - 1] : "")
1782
+ if (_ = g[C], _ > 0 && (f = t(_, 1), s = parseInt(f[0]), i = parseInt(f[1]), l = parseInt(f[2]), x.push(r.a100[s - 1]), m = C + 1 == 3 ? "a2" : "a1", i > 1 ? x.push(
1783
+ r.a20[i - 2] + (l > 0 ? " " + r[m][l - 1] : "")
1784
1784
  ) : x.push(
1785
- i > 0 ? r.a10[o] : r[m][o - 1]
1785
+ i > 0 ? r.a10[l] : r[m][l - 1]
1786
1786
  ), g.length > C + 1)) {
1787
- var w = r["u" + (C + 1)];
1788
- x.push(a(_, w));
1787
+ var j = r["u" + (C + 1)];
1788
+ x.push(a(_, j));
1789
1789
  }
1790
1790
  } else
1791
1791
  x.push(r.null);
1792
- return x.push(a(d, r.ur)), x.push(l + " " + a(l, r.uc)), x.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1792
+ return x.push(a(d, r.ur)), x.push(o + " " + a(o, r.uc)), x.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1793
1793
  };
1794
1794
  function bs(e) {
1795
1795
  let t = -1, a = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
@@ -1904,54 +1904,54 @@ function Es(e, t, a, r) {
1904
1904
  this.initialized || (this.prepareRules(), this.initialized = !0);
1905
1905
  },
1906
1906
  prepareRules: function() {
1907
- for (var o in this.rules)
1908
- for (var l in this.rules[o])
1909
- for (var d = 0, _ = this.rules[o][l].length; d < _; d++)
1910
- this.rules[o][l][d] = this.rule(
1911
- this.rules[o][l][d]
1907
+ for (var l in this.rules)
1908
+ for (var o in this.rules[l])
1909
+ for (var d = 0, _ = this.rules[l][o].length; d < _; d++)
1910
+ this.rules[l][o][d] = this.rule(
1911
+ this.rules[l][o][d]
1912
1912
  );
1913
1913
  },
1914
- rule: function(o) {
1915
- var l = o.match(
1914
+ rule: function(l) {
1915
+ var o = l.match(
1916
1916
  /^\s*([fm]?)\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s*$/
1917
1917
  );
1918
- return l ? {
1919
- sex: l[1],
1920
- test: l[2].split(","),
1921
- mods: [l[3], l[4], l[5], l[6], l[7]]
1918
+ return o ? {
1919
+ sex: o[1],
1920
+ test: o[2].split(","),
1921
+ mods: [o[3], o[4], o[5], o[6], o[7]]
1922
1922
  } : !1;
1923
1923
  },
1924
1924
  // склоняем слово по указанному набору правил и исключений
1925
- word: function(o, l, d, _) {
1925
+ word: function(l, o, d, _) {
1926
1926
  if (_ === this.gcaseNom)
1927
- return o;
1928
- if (o.match(/[-]/)) {
1929
- for (var u = o.split("-"), g = 0, f = u.length; g < f; g++)
1930
- u[g] = this.word(u[g], l, d, _);
1927
+ return l;
1928
+ if (l.match(/[-]/)) {
1929
+ for (var u = l.split("-"), g = 0, f = u.length; g < f; g++)
1930
+ u[g] = this.word(u[g], o, d, _);
1931
1931
  return u.join("-");
1932
1932
  }
1933
- if (o.match(/^[А-ЯЁ]\.?$/i))
1934
- return o;
1933
+ if (l.match(/^[А-ЯЁ]\.?$/i))
1934
+ return l;
1935
1935
  this.init();
1936
1936
  var m = this.rules[d];
1937
1937
  let k;
1938
- return m.exceptions && (k = this.pick(o, l, _, m.exceptions, !0), k) ? k : (k = this.pick(o, l, _, m.suffixes, !1), k || o);
1938
+ return m.exceptions && (k = this.pick(l, o, _, m.exceptions, !0), k) ? k : (k = this.pick(l, o, _, m.suffixes, !1), k || l);
1939
1939
  },
1940
1940
  // выбираем из списка правил первое подходящее и применяем
1941
- pick: function(o, l, d, _, u) {
1942
- let g = o.toLowerCase();
1941
+ pick: function(l, o, d, _, u) {
1942
+ let g = l.toLowerCase();
1943
1943
  for (var f = 0, m = _.length; f < m; f++)
1944
- if (this.ruleMatch(g, l, _[f], u))
1945
- return this.applyMod(o, d, _[f]);
1944
+ if (this.ruleMatch(g, o, _[f], u))
1945
+ return this.applyMod(l, d, _[f]);
1946
1946
  return !1;
1947
1947
  },
1948
1948
  // проверяем, подходит ли правило к слову
1949
- ruleMatch: function(o, l, d, _) {
1950
- if (d.sex === this.sexM && l === this.sexF || d.sex === this.sexF && l !== this.sexF)
1949
+ ruleMatch: function(l, o, d, _) {
1950
+ if (d.sex === this.sexM && o === this.sexF || d.sex === this.sexF && o !== this.sexF)
1951
1951
  return !1;
1952
1952
  for (var u = 0, g = d.test.length; u < g; u++) {
1953
- var f = _ ? o : o.substr(
1954
- Math.max(o.length - d.test[u].length, 0)
1953
+ var f = _ ? l : l.substr(
1954
+ Math.max(l.length - d.test[u].length, 0)
1955
1955
  );
1956
1956
  if (f === d.test[u])
1957
1957
  return !0;
@@ -1959,9 +1959,9 @@ function Es(e, t, a, r) {
1959
1959
  return !1;
1960
1960
  },
1961
1961
  // склоняем слово (правим окончание)
1962
- applyMod: function(o, l, d) {
1962
+ applyMod: function(l, o, d) {
1963
1963
  let _;
1964
- switch (l) {
1964
+ switch (o) {
1965
1965
  case this.gcaseNom:
1966
1966
  _ = ".";
1967
1967
  break;
@@ -1987,13 +1987,13 @@ function Es(e, t, a, r) {
1987
1987
  case ".":
1988
1988
  break;
1989
1989
  case "-":
1990
- o = o.substr(0, o.length - 1);
1990
+ l = l.substr(0, l.length - 1);
1991
1991
  break;
1992
1992
  default:
1993
- o += f;
1993
+ l += f;
1994
1994
  }
1995
1995
  }
1996
- return o;
1996
+ return l;
1997
1997
  },
1998
1998
  getSex: () => {
1999
1999
  if (s.mn.length > 2)
@@ -2005,10 +2005,10 @@ function Es(e, t, a, r) {
2005
2005
  }
2006
2006
  return "";
2007
2007
  },
2008
- fullName: (o) => ((s.fullNameSurnameLast ? "" : s.lastName(o) + " ") + s.firstName(o) + " " + s.middleName(o) + (s.fullNameSurnameLast ? " " + s.lastName(o) : "")).replace(/^ +| +$/g, ""),
2009
- lastName: (o) => s.word(s.ln, s.sex, "lastName", o),
2010
- firstName: (o) => s.word(s.fn, s.sex, "firstName", o),
2011
- middleName: (o) => s.word(s.mn, s.sex, "middleName", o)
2008
+ fullName: (l) => ((s.fullNameSurnameLast ? "" : s.lastName(l) + " ") + s.firstName(l) + " " + s.middleName(l) + (s.fullNameSurnameLast ? " " + s.lastName(l) : "")).replace(/^ +| +$/g, ""),
2009
+ lastName: (l) => s.word(s.ln, s.sex, "lastName", l),
2010
+ firstName: (l) => s.word(s.fn, s.sex, "firstName", l),
2011
+ middleName: (l) => s.word(s.mn, s.sex, "middleName", l)
2012
2012
  };
2013
2013
  if (typeof t > "u") {
2014
2014
  var i = e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);
@@ -2107,7 +2107,7 @@ const H = {
2107
2107
  function As({ children: e }) {
2108
2108
  return /* @__PURE__ */ n.jsx("div", { className: "l", children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
2109
2109
  }
2110
- const Gs = "_white_swayt_14", Zs = "_black_swayt_26", Us = "_shake_swayt_1", zs = "_modal_swayt_73", Ks = "_o_swayt_83", Ws = "_w_swayt_14", Hs = "_h_swayt_107", Ys = "_l_swayt_121", qs = "_t_swayt_159", Vs = "_m_swayt_73", Js = "_x_swayt_167", Xs = "_s_swayt_177", Qs = "_c_swayt_182", ei = "_f_swayt_187", ti = "_g_swayt_230", ni = "_active_swayt_348", ai = "_coincidence_swayt_354", ri = "_sa_swayt_390", si = "_ss_swayt_394", ii = "_sm_swayt_398", oi = "_sl_swayt_402", li = "_sx_swayt_406", ci = "_sf_swayt_410", di = "_btn_swayt_416", se = {
2110
+ const Gs = "_white_swayt_14", Zs = "_black_swayt_26", Us = "_shake_swayt_1", zs = "_modal_swayt_73", Ks = "_o_swayt_83", Ws = "_w_swayt_14", Hs = "_h_swayt_107", Ys = "_l_swayt_121", qs = "_t_swayt_159", Vs = "_m_swayt_73", Js = "_x_swayt_167", Xs = "_s_swayt_177", Qs = "_c_swayt_182", ei = "_f_swayt_187", ti = "_g_swayt_230", ni = "_active_swayt_348", ai = "_coincidence_swayt_354", ri = "_sa_swayt_390", si = "_ss_swayt_394", ii = "_sm_swayt_398", li = "_sl_swayt_402", oi = "_sx_swayt_406", ci = "_sf_swayt_410", di = "_btn_swayt_416", re = {
2111
2111
  white: Gs,
2112
2112
  black: Zs,
2113
2113
  shake: Us,
@@ -2134,13 +2134,13 @@ const Gs = "_white_swayt_14", Zs = "_black_swayt_26", Us = "_shake_swayt_1", zs
2134
2134
  sa: ri,
2135
2135
  ss: si,
2136
2136
  sm: ii,
2137
- sl: oi,
2138
- sx: li,
2137
+ sl: li,
2138
+ sx: oi,
2139
2139
  sf: ci,
2140
2140
  btn: di
2141
2141
  };
2142
2142
  function _i({ children: e }) {
2143
- return /* @__PURE__ */ n.jsx("div", { className: se.s, children: e });
2143
+ return /* @__PURE__ */ n.jsx("div", { className: re.s, children: e });
2144
2144
  }
2145
2145
  function ui({ children: e, className: t }) {
2146
2146
  let a = {};
@@ -2148,13 +2148,13 @@ function ui({ children: e, className: t }) {
2148
2148
  "div",
2149
2149
  {
2150
2150
  "data-form": "outline",
2151
- className: [se.f, a.className].join(" "),
2151
+ className: [re.f, a.className].join(" "),
2152
2152
  children: /* @__PURE__ */ n.jsx("ul", { children: e })
2153
2153
  }
2154
2154
  );
2155
2155
  }
2156
2156
  function fi({ children: e }) {
2157
- return /* @__PURE__ */ n.jsx("div", { className: se.c, children: e });
2157
+ return /* @__PURE__ */ n.jsx("div", { className: re.c, children: e });
2158
2158
  }
2159
2159
  const mi = "_btn_1d6a6_6", hi = "_confirm_1d6a6_20", gi = "_cancel_1d6a6_25", xi = "_disabled_1d6a6_30", pi = "_m_1d6a6_44", vi = "_l_1d6a6_48", Qe = {
2160
2160
  btn: mi,
@@ -2172,8 +2172,8 @@ function Ci({
2172
2172
  view: r = "confirm",
2173
2173
  mode: s = "primary",
2174
2174
  className: i,
2175
- label: o,
2176
- onRef: l
2175
+ label: l,
2176
+ onRef: o
2177
2177
  }) {
2178
2178
  let [d, _] = p.useState(!1);
2179
2179
  const u = (g) => {
@@ -2184,7 +2184,7 @@ function Ci({
2184
2184
  return /* @__PURE__ */ n.jsx(
2185
2185
  "button",
2186
2186
  {
2187
- ref: l,
2187
+ ref: o,
2188
2188
  className: [
2189
2189
  Qe.btn,
2190
2190
  d ? Qe.disabled : Qe[r],
@@ -2192,7 +2192,7 @@ function Ci({
2192
2192
  i
2193
2193
  ].join(" "),
2194
2194
  onClick: u,
2195
- children: d ? "Ожидайте" : o
2195
+ children: d ? "Ожидайте" : l
2196
2196
  }
2197
2197
  );
2198
2198
  }
@@ -2213,13 +2213,13 @@ function yi({
2213
2213
  size: s = "m",
2214
2214
  menu: i
2215
2215
  }) {
2216
- const [o, l] = p.useState(!0), d = p.useRef(), _ = (g) => {
2216
+ const [l, o] = p.useState(!0), d = p.useRef(), _ = (g) => {
2217
2217
  if (a) {
2218
2218
  if (a.onClick)
2219
- return g(!1), a.onClick({ setOpen: l });
2219
+ return g(!1), a.onClick({ setOpen: o });
2220
2220
  if (a.onSend)
2221
2221
  return a.onSend({
2222
- setOpen: l,
2222
+ setOpen: o,
2223
2223
  disabled: g
2224
2224
  });
2225
2225
  }
@@ -2228,21 +2228,21 @@ function yi({
2228
2228
  d.current.setAttribute("shake", !1);
2229
2229
  }, 1e3);
2230
2230
  };
2231
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: o ? /* @__PURE__ */ n.jsxs(
2231
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: l ? /* @__PURE__ */ n.jsxs(
2232
2232
  "div",
2233
2233
  {
2234
- className: `${se.modal} ${se.white}`,
2234
+ className: `${re.modal} ${re.white}`,
2235
2235
  children: [
2236
- /* @__PURE__ */ n.jsx("div", { className: se.o, onClick: u }),
2236
+ /* @__PURE__ */ n.jsx("div", { className: re.o, onClick: u }),
2237
2237
  /* @__PURE__ */ n.jsxs(
2238
2238
  "div",
2239
2239
  {
2240
- className: [se.w, se[`s${s}`]].join(" "),
2240
+ className: [re.w, re[`s${s}`]].join(" "),
2241
2241
  ref: d,
2242
2242
  children: [
2243
- /* @__PURE__ */ n.jsxs("div", { className: se.h, children: [
2244
- /* @__PURE__ */ n.jsx("div", { className: se.t, children: e }),
2245
- /* @__PURE__ */ n.jsxs("div", { className: se.m, children: [
2243
+ /* @__PURE__ */ n.jsxs("div", { className: re.h, children: [
2244
+ /* @__PURE__ */ n.jsx("div", { className: re.t, children: e }),
2245
+ /* @__PURE__ */ n.jsxs("div", { className: re.m, children: [
2246
2246
  r && /* @__PURE__ */ n.jsx("nav", { children: r.map((g, f) => /* @__PURE__ */ n.jsx(
2247
2247
  "span",
2248
2248
  {
@@ -2257,9 +2257,9 @@ function yi({
2257
2257
  /* @__PURE__ */ n.jsx(
2258
2258
  "div",
2259
2259
  {
2260
- className: se.x,
2260
+ className: re.x,
2261
2261
  onClick: () => {
2262
- l(!1);
2262
+ o(!1);
2263
2263
  },
2264
2264
  children: /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ n.jsx(
2265
2265
  "path",
@@ -2280,7 +2280,7 @@ function yi({
2280
2280
  {
2281
2281
  label: a.label,
2282
2282
  onSend: _,
2283
- className: se.btn
2283
+ className: re.btn
2284
2284
  }
2285
2285
  ) : ""
2286
2286
  ]
@@ -2330,7 +2330,7 @@ const st = {
2330
2330
  };
2331
2331
  function Rn({ text: e, type: t, button: a }) {
2332
2332
  let [r, s] = p.useState(!1), i = { active: t };
2333
- const o = () => {
2333
+ const l = () => {
2334
2334
  if (a) {
2335
2335
  if (a.onClick)
2336
2336
  return a.onClick({});
@@ -2357,10 +2357,10 @@ function Rn({ text: e, type: t, button: a }) {
2357
2357
  }
2358
2358
  ),
2359
2359
  /* @__PURE__ */ n.jsx("span", { children: e }),
2360
- a && /* @__PURE__ */ n.jsx("button", { onClick: o, children: a.label })
2360
+ a && /* @__PURE__ */ n.jsx("button", { onClick: l, children: a.label })
2361
2361
  ] });
2362
2362
  }
2363
- const Di = "_h_1usnu_1", Ni = "_g_1usnu_11", Ii = "_hr_1usnu_16", Ti = "_hl_1usnu_28", Mi = "_t_1usnu_40", Li = "_s_1usnu_60", Fi = "_u_1usnu_69", Bi = "_o_1usnu_76", $i = "_l_1usnu_105", Pi = "_hh_1usnu_115", Oi = "_c_1usnu_128", Ai = "_loadingB_1usnu_1", Gi = "_m_1usnu_180", Zi = "_ul_1usnu_196", Ui = "_f_1usnu_226", ae = {
2363
+ const Di = "_h_1usnu_1", Ni = "_g_1usnu_11", Ii = "_hr_1usnu_16", Ti = "_hl_1usnu_28", Mi = "_t_1usnu_40", Li = "_s_1usnu_60", Fi = "_u_1usnu_69", Bi = "_o_1usnu_76", $i = "_l_1usnu_105", Pi = "_hh_1usnu_115", Oi = "_c_1usnu_128", Ai = "_loadingB_1usnu_1", Gi = "_m_1usnu_180", Zi = "_ul_1usnu_196", Ui = "_f_1usnu_226", ne = {
2364
2364
  h: Di,
2365
2365
  g: Ni,
2366
2366
  hr: Ii,
@@ -2376,23 +2376,23 @@ const Di = "_h_1usnu_1", Ni = "_g_1usnu_11", Ii = "_hr_1usnu_16", Ti = "_hl_1usn
2376
2376
  m: Gi,
2377
2377
  ul: Zi,
2378
2378
  f: Ui
2379
- }, ln = ({ title: e, left: t, right: a, children: r }) => /* @__PURE__ */ n.jsxs("div", { className: ae.h, children: [
2380
- /* @__PURE__ */ n.jsx("div", { className: ae.t, children: e }),
2381
- t && /* @__PURE__ */ n.jsx("div", { className: ae.hl, children: t }),
2382
- a && /* @__PURE__ */ n.jsx("div", { className: ae.hr, children: a }),
2379
+ }, on = ({ title: e, left: t, right: a, children: r }) => /* @__PURE__ */ n.jsxs("div", { className: ne.h, children: [
2380
+ /* @__PURE__ */ n.jsx("div", { className: ne.t, children: e }),
2381
+ t && /* @__PURE__ */ n.jsx("div", { className: ne.hl, children: t }),
2382
+ a && /* @__PURE__ */ n.jsx("div", { className: ne.hr, children: a }),
2383
2383
  r
2384
- ] }), cn = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("div", { className: ae.l, children: e }), dn = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: ae.s, children: e }), _n = ({ children: e, edit: t }) => {
2384
+ ] }), cn = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("div", { className: ne.l, children: e }), dn = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: ne.s, children: e }), _n = ({ children: e, edit: t }) => {
2385
2385
  const a = {};
2386
- return t && (a.edit = ""), /* @__PURE__ */ n.jsx("div", { ...a, className: ae.f, children: e });
2386
+ return t && (a.edit = ""), /* @__PURE__ */ n.jsx("div", { ...a, className: ne.f, children: e });
2387
2387
  };
2388
2388
  function un({ children: e }) {
2389
- return /* @__PURE__ */ n.jsx("div", { className: ae.g, children: e });
2389
+ return /* @__PURE__ */ n.jsx("div", { className: ne.g, children: e });
2390
2390
  }
2391
- const zi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [ae.o, t].join(" "), children: [
2392
- a && /* @__PURE__ */ n.jsx("div", { className: ae.hh, children: a }),
2391
+ const zi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [ne.o, t].join(" "), children: [
2392
+ a && /* @__PURE__ */ n.jsx("div", { className: ne.hh, children: a }),
2393
2393
  e
2394
- ] }), Ki = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: ae.u, children: e }), Wi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: ae.c, children: e }), Hi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: ae.m, children: e }), fn = {
2395
- Header: ln,
2394
+ ] }), Ki = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: ne.u, children: e }), Wi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: ne.c, children: e }), Hi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: ne.m, children: e }), fn = {
2395
+ Header: on,
2396
2396
  Section: dn,
2397
2397
  Group: un,
2398
2398
  Form: _n,
@@ -2404,7 +2404,7 @@ const zi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2404
2404
  L: cn,
2405
2405
  O: zi,
2406
2406
  S: dn,
2407
- H: ln,
2407
+ H: on,
2408
2408
  M: Hi,
2409
2409
  F: _n
2410
2410
  }, Yi = (e, t) => {
@@ -2498,7 +2498,7 @@ const zi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2498
2498
  dir: r
2499
2499
  }) => {
2500
2500
  t = t || "Файлы";
2501
- const [s, i] = p.useReducer(Yi, {}, qi), o = () => {
2501
+ const [s, i] = p.useReducer(Yi, {}, qi), l = () => {
2502
2502
  st.Add(
2503
2503
  /* @__PURE__ */ n.jsx(
2504
2504
  Xi,
@@ -2513,13 +2513,13 @@ const zi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2513
2513
  };
2514
2514
  return p.useEffect(() => {
2515
2515
  (async () => {
2516
- let l = await he.Send({
2516
+ let o = await he.Send({
2517
2517
  type: "module",
2518
2518
  module: "M09",
2519
2519
  query: "x0900",
2520
2520
  data: { dir: r, id: e }
2521
2521
  });
2522
- i({ type: "load", list: l });
2522
+ i({ type: "load", list: o });
2523
2523
  })();
2524
2524
  }, [e, r]), /* @__PURE__ */ n.jsxs(fn.O, { children: [
2525
2525
  " ",
@@ -2533,7 +2533,7 @@ const zi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2533
2533
  className: "f025",
2534
2534
  "data-icon": "C005 25 pointer",
2535
2535
  "data-color": "_b5b9cc :506290",
2536
- onClick: o
2536
+ onClick: l
2537
2537
  }
2538
2538
  ),
2539
2539
  left: /* @__PURE__ */ n.jsx(
@@ -2550,20 +2550,20 @@ const zi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2550
2550
  /* @__PURE__ */ n.jsx("i", {}),
2551
2551
  /* @__PURE__ */ n.jsx("i", {}),
2552
2552
  /* @__PURE__ */ n.jsx("i", {})
2553
- ] }) : s.list.length === 0 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : s.list.map((l, d) => /* @__PURE__ */ n.jsx(Qi, { dispatch: i, data: l }, d)) })
2553
+ ] }) : s.list.length === 0 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : s.list.map((o, d) => /* @__PURE__ */ n.jsx(Qi, { dispatch: i, data: o }, d)) })
2554
2554
  ] });
2555
2555
  }, Xi = ({ id: e, dir: t, dispatch: a }) => {
2556
- let [r, s] = p.useState(!0), i = p.useRef(null), o = (_) => {
2556
+ let [r, s] = p.useState(!0), i = p.useRef(null), l = (_) => {
2557
2557
  _.preventDefault(), _.stopPropagation();
2558
- }, l = (_) => {
2558
+ }, o = (_) => {
2559
2559
  }, d = (_) => {
2560
2560
  };
2561
2561
  return p.useEffect(() => {
2562
2562
  let _ = i.current;
2563
2563
  ["dragenter", "dragover", "dragleave", "drop"].forEach((u) => {
2564
- _.addEventListener(u, o, !1), document.body.addEventListener(u, o, !1);
2564
+ _.addEventListener(u, l, !1), document.body.addEventListener(u, l, !1);
2565
2565
  }), ["dragenter", "dragover"].forEach((u) => {
2566
- _.addEventListener(u, l, !1);
2566
+ _.addEventListener(u, o, !1);
2567
2567
  }), ["dragleave", "drop"].forEach((u) => {
2568
2568
  _.addEventListener(u, d, !1);
2569
2569
  });
@@ -2606,20 +2606,20 @@ const zi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2606
2606
  let i = await (await fetch(rn.url().files + "/yandex/data/" + e.id, {
2607
2607
  headers: {
2608
2608
  "Content-type": "application/json;charset=utf-8",
2609
- SSID: le.getSSID() || ""
2609
+ SSID: oe.getSSID() || ""
2610
2610
  }
2611
2611
  })).blob();
2612
2612
  if (i.size !== 2) {
2613
- let o = new Blob([i], { type: i.type });
2614
- o = URL.createObjectURL(o);
2615
- let l = document.createElement("a");
2616
- l.setAttribute("href", o), l.setAttribute("download", e.name), l.click();
2613
+ let l = new Blob([i], { type: i.type });
2614
+ l = URL.createObjectURL(l);
2615
+ let o = document.createElement("a");
2616
+ o.setAttribute("href", l), o.setAttribute("download", e.name), o.click();
2617
2617
  }
2618
2618
  }, r = async () => {
2619
2619
  (await (await fetch(rn.url().files + "/yandex/delete/" + e.id, {
2620
2620
  headers: {
2621
2621
  "Content-type": "application/json;charset=utf-8",
2622
- SSID: le.getSSID() || ""
2622
+ SSID: oe.getSSID() || ""
2623
2623
  }
2624
2624
  })).json()).status === "success" && (t({ type: "delete", id: e.id }), Ne.Send({ type: "success", text: "Файл успешно удалён" }));
2625
2625
  };
@@ -2653,52 +2653,52 @@ const zi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2653
2653
  let W = {};
2654
2654
  W.list = ur();
2655
2655
  W.active = null;
2656
- const eo = () => {
2656
+ const el = () => {
2657
2657
  var s;
2658
2658
  let [e, t] = p.useState([]), [a, r] = p.useState(It.getSetting("s03"));
2659
2659
  return p.useEffect(() => {
2660
2660
  (async () => {
2661
2661
  let i = Object.keys(W.list);
2662
2662
  if (i.length !== 0) {
2663
- let o = [];
2664
- i.forEach((l, d) => {
2665
- o.push({
2663
+ let l = [];
2664
+ i.forEach((o, d) => {
2665
+ l.push({
2666
2666
  item: /* @__PURE__ */ n.jsx(
2667
2667
  yt,
2668
2668
  {
2669
- data: W.list[l]
2669
+ data: W.list[o]
2670
2670
  },
2671
- W.list[l].id
2671
+ W.list[o].id
2672
2672
  ),
2673
- link: W.list[l].link
2673
+ link: W.list[o].link
2674
2674
  });
2675
- }), t(o);
2675
+ }), t(l);
2676
2676
  }
2677
2677
  })();
2678
2678
  }, []), W.active = (i) => {
2679
- var o;
2680
- r(i), (o = document.querySelector("app-body")) == null || o.setAttribute("bookmarks", i === 1 ? "bottom" : "");
2679
+ var l;
2680
+ r(i), (l = document.querySelector("app-body")) == null || l.setAttribute("bookmarks", i === 1 ? "bottom" : "");
2681
2681
  }, W.set = (i) => {
2682
2682
  t([
2683
2683
  ...e,
2684
2684
  { item: /* @__PURE__ */ n.jsx(yt, { data: i }, i.id), link: i.link }
2685
2685
  ]);
2686
2686
  }, W.del = (i) => {
2687
- e.forEach((o, l) => {
2688
- o.link === i && e.splice(l, 1);
2687
+ e.forEach((l, o) => {
2688
+ l.link === i && e.splice(o, 1);
2689
2689
  }), t([...e]);
2690
2690
  }, (s = document.querySelector("app-body")) == null || s.setAttribute(
2691
2691
  "bookmarks",
2692
2692
  a === 1 && e.length !== 0 ? "bottom" : ""
2693
2693
  ), a !== 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsx("div", { className: "bookmarks", children: e.map((i) => i.item) }) : "" }) : "";
2694
- }, to = ({ id: e, type: t, name: a }) => {
2694
+ }, tl = ({ id: e, type: t, name: a }) => {
2695
2695
  let r = t + "-" + e, [s, i] = p.useState(
2696
2696
  W.list[r] !== void 0
2697
2697
  );
2698
2698
  p.useEffect(() => {
2699
2699
  i(W.list[r] !== void 0);
2700
2700
  }, [r]);
2701
- let o = () => {
2701
+ let l = () => {
2702
2702
  W.list[r] !== void 0 ? (W.del(r), delete W.list[r], nn(W.list), i(!1), Ne.Send({ type: "success", text: "Запись удален из закладок" })) : (W.list[r] = { id: e, name: a, type: t, link: r }, W.set(W.list[r]), nn(W.list), i(!0), Ne.Send({
2703
2703
  type: "success",
2704
2704
  text: "Запись добавлен в закладки"
@@ -2709,7 +2709,7 @@ const eo = () => {
2709
2709
  {
2710
2710
  "data-icon": "C018",
2711
2711
  "data-color": s ? "_F44333 :F44333" : "_b5b9cc :F44333",
2712
- onClick: o
2712
+ onClick: l
2713
2713
  }
2714
2714
  ) : "" });
2715
2715
  }, yt = ({ data: e }) => {
@@ -2719,29 +2719,29 @@ const eo = () => {
2719
2719
  et.setId(e.id);
2720
2720
  };
2721
2721
  return /* @__PURE__ */ n.jsx("span", { onContextMenu: t, onClick: a, children: e.name });
2722
- }, no = (e) => {
2722
+ }, nl = (e) => {
2723
2723
  W.active(e);
2724
- }, K = {}, jt = {}, E = {};
2725
- E.config = { iceServers: [{ url: "stun:stun.l.google.com:19302" }] };
2726
- E.constraints = { optional: [{ DtlsSrtpKeyAgreement: !0 }] };
2727
- E.other = [];
2728
- E.users = {};
2729
- E.asset = 0;
2730
- E.remoute = !1;
2731
- E.stream = null;
2732
- E.user = 0;
2733
- E.connect = !1;
2734
- E.offer = null;
2735
- E.btnRefuse = null;
2736
- E.time = !1;
2724
+ }, K = {}, jt = {}, R = {};
2725
+ R.config = { iceServers: [{ url: "stun:stun.l.google.com:19302" }] };
2726
+ R.constraints = { optional: [{ DtlsSrtpKeyAgreement: !0 }] };
2727
+ R.other = [];
2728
+ R.users = {};
2729
+ R.asset = 0;
2730
+ R.remoute = !1;
2731
+ R.stream = null;
2732
+ R.user = 0;
2733
+ R.connect = !1;
2734
+ R.offer = null;
2735
+ R.btnRefuse = null;
2736
+ R.time = !1;
2737
2737
  let je;
2738
2738
  je = document.createElement("audio");
2739
2739
  je.setAttribute("autoplay", "true");
2740
2740
  je.setAttribute("muted", "true");
2741
2741
  K.start = async (e) => {
2742
- E.rtc = new RTCPeerConnection(E.config), E.other = [], E.remoute = !1, E.rtc.onicecandidate = (a) => {
2743
- a.candidate && E.other.push(a.candidate);
2744
- }, E.rtc.ontrack = (a) => {
2742
+ R.rtc = new RTCPeerConnection(R.config), R.other = [], R.remoute = !1, R.rtc.onicecandidate = (a) => {
2743
+ a.candidate && R.other.push(a.candidate);
2744
+ }, R.rtc.ontrack = (a) => {
2745
2745
  if (a.streams && a.streams[0])
2746
2746
  je.srcObject = a.streams[0];
2747
2747
  else {
@@ -2754,24 +2754,24 @@ K.start = async (e) => {
2754
2754
  audio: { echoCancellation: !1, autoGainControl: !0 }
2755
2755
  });
2756
2756
  t.getTracks().forEach((a) => {
2757
- E.rtc.addTrack(a, t);
2758
- }), E.rtc.onconnectionstatechange = () => {
2759
- E.rtc.connectionState;
2760
- }, E.rtc.ontrack = async (a) => {
2757
+ R.rtc.addTrack(a, t);
2758
+ }), R.rtc.onconnectionstatechange = () => {
2759
+ R.rtc.connectionState;
2760
+ }, R.rtc.ontrack = async (a) => {
2761
2761
  if (a.streams && a.streams[0])
2762
2762
  je.srcObject = a.streams[0];
2763
2763
  else {
2764
2764
  let r = new MediaStream(a.track);
2765
2765
  je.srcObject = r;
2766
2766
  }
2767
- }, E.rtc.onaddstream = (a) => {
2768
- }, E.rtc.onnegotiationneeded = (a) => {
2769
- }, E.rtc.oniceconnectionstatechange = (a) => {
2770
- }, E.rtc.onsignalingstatechange = (a) => {
2771
- }, E.rtc.onicegatheringstatechange = (a) => {
2772
- }, E.rtc.onicecandidateerror = (a) => {
2773
- }, E.rtc.ondatachannel = (a) => {
2774
- }, E.rtc.onerror = (a) => {
2767
+ }, R.rtc.onaddstream = (a) => {
2768
+ }, R.rtc.onnegotiationneeded = (a) => {
2769
+ }, R.rtc.oniceconnectionstatechange = (a) => {
2770
+ }, R.rtc.onsignalingstatechange = (a) => {
2771
+ }, R.rtc.onicegatheringstatechange = (a) => {
2772
+ }, R.rtc.onicecandidateerror = (a) => {
2773
+ }, R.rtc.ondatachannel = (a) => {
2774
+ }, R.rtc.onerror = (a) => {
2775
2775
  }, e();
2776
2776
  };
2777
2777
  K.useListener = (e) => {
@@ -2782,66 +2782,66 @@ K.setListener = (e) => {
2782
2782
  };
2783
2783
  K.callTo = async (e) => {
2784
2784
  K.start(async () => {
2785
- const t = await E.rtc.createOffer();
2786
- await E.rtc.setLocalDescription(t), E.uid = e, he.Send({
2785
+ const t = await R.rtc.createOffer();
2786
+ await R.rtc.setLocalDescription(t), R.uid = e, he.Send({
2787
2787
  type: "module",
2788
2788
  module: "M00",
2789
2789
  query: "x0050",
2790
2790
  data: {
2791
2791
  type: "offer",
2792
2792
  offer: btoa(JSON.stringify(t)),
2793
- user: E.uid
2793
+ user: R.uid
2794
2794
  }
2795
2795
  });
2796
2796
  });
2797
2797
  };
2798
2798
  K.callIn = async (e) => {
2799
- E.asset = e.id, E.offer = e.offer, E.uid = e.id;
2799
+ R.asset = e.id, R.offer = e.offer, R.uid = e.id;
2800
2800
  };
2801
2801
  K.callRise = async () => {
2802
2802
  K.start(async () => {
2803
- E.rtc.setRemoteDescription(
2804
- new RTCSessionDescription(JSON.parse(atob(E.offer)))
2803
+ R.rtc.setRemoteDescription(
2804
+ new RTCSessionDescription(JSON.parse(atob(R.offer)))
2805
2805
  );
2806
- const e = await E.rtc.createAnswer();
2807
- await E.rtc.setLocalDescription(e), he.Send({
2806
+ const e = await R.rtc.createAnswer();
2807
+ await R.rtc.setLocalDescription(e), he.Send({
2808
2808
  type: "module",
2809
2809
  module: "M00",
2810
2810
  query: "x0050",
2811
2811
  data: {
2812
2812
  type: "answer",
2813
2813
  answer: btoa(JSON.stringify(e)),
2814
- user: E.uid
2814
+ user: R.uid
2815
2815
  }
2816
2816
  });
2817
2817
  });
2818
2818
  };
2819
2819
  K.callOk = async (e) => {
2820
- E.asset = e.id;
2820
+ R.asset = e.id;
2821
2821
  const t = new RTCSessionDescription(JSON.parse(atob(e.answer)));
2822
- await E.rtc.setRemoteDescription(t), he.Send({
2822
+ await R.rtc.setRemoteDescription(t), he.Send({
2823
2823
  type: "module",
2824
2824
  module: "M00",
2825
2825
  query: "x0050",
2826
2826
  data: {
2827
2827
  type: "IceCandidate",
2828
- candidate: JSON.parse(JSON.stringify(E.other)),
2829
- user: E.uid,
2828
+ candidate: JSON.parse(JSON.stringify(R.other)),
2829
+ user: R.uid,
2830
2830
  send: !0
2831
2831
  }
2832
2832
  });
2833
2833
  };
2834
2834
  K.IceCandidate = async (e) => {
2835
2835
  e.candidate.forEach((t) => {
2836
- E.rtc.addIceCandidate(new RTCIceCandidate(t));
2836
+ R.rtc.addIceCandidate(new RTCIceCandidate(t));
2837
2837
  }), e.send && he.Send({
2838
2838
  type: "module",
2839
2839
  module: "M00",
2840
2840
  query: "x0050",
2841
2841
  data: {
2842
2842
  type: "IceCandidate",
2843
- candidate: JSON.parse(JSON.stringify(E.other)),
2844
- user: E.uid,
2843
+ candidate: JSON.parse(JSON.stringify(R.other)),
2844
+ user: R.uid,
2845
2845
  send: !1
2846
2846
  }
2847
2847
  });
@@ -2849,24 +2849,24 @@ K.IceCandidate = async (e) => {
2849
2849
  K.callFrom = async () => {
2850
2850
  };
2851
2851
  K.callNo = () => {
2852
- E.asset = 0, E.time = !1, E.rtc && E.rtc.close(), K.setListener({ type: "state", data: "closed" });
2852
+ R.asset = 0, R.time = !1, R.rtc && R.rtc.close(), K.setListener({ type: "state", data: "closed" });
2853
2853
  };
2854
2854
  K.callOf = () => {
2855
- E.asset = 0, E.time = !1, E.rtc.close();
2855
+ R.asset = 0, R.time = !1, R.rtc.close();
2856
2856
  };
2857
2857
  K.callRefuser = async () => {
2858
2858
  he.Send({
2859
2859
  type: "module",
2860
2860
  module: "M00",
2861
2861
  query: "x0050",
2862
- data: { type: "callRefuser", user: E.uid }
2863
- }), E.asset = 0, E.time = !1, E.rtc && E.rtc.close();
2862
+ data: { type: "callRefuser", user: R.uid }
2863
+ }), R.asset = 0, R.time = !1, R.rtc && R.rtc.close();
2864
2864
  };
2865
2865
  K.Run = async (e) => {
2866
2866
  K[e.data.type] && K[e.data.type](e.data);
2867
2867
  };
2868
2868
  let Ae = {};
2869
- function ao() {
2869
+ function al() {
2870
2870
  let [e, t] = p.useState([]), a = p.useRef(null);
2871
2871
  return p.useEffect(() => {
2872
2872
  }, []), Ae.set = (r) => {
@@ -2880,24 +2880,24 @@ function ao() {
2880
2880
  /* @__PURE__ */ n.jsx("audio", { id: "audio", ref: a, autoPlay: !0, muted: !0 })
2881
2881
  ] });
2882
2882
  }
2883
- function ro(e, t) {
2883
+ function rl(e, t) {
2884
2884
  let a = (/* @__PURE__ */ new Date()).getTime();
2885
2885
  Ae.set({
2886
- item: /* @__PURE__ */ n.jsx(so, { type: t, id: e }, a),
2886
+ item: /* @__PURE__ */ n.jsx(sl, { type: t, id: e }, a),
2887
2887
  key: a
2888
2888
  });
2889
2889
  }
2890
- function so({ id: e, type: t }) {
2890
+ function sl({ id: e, type: t }) {
2891
2891
  const [a, r] = p.useState({}), [s, i] = p.useState(t);
2892
2892
  p.useEffect(() => {
2893
- r(le.getSelect("user")[e]);
2893
+ r(oe.getSelect("user")[e]);
2894
2894
  }, []), K.useListener((d) => {
2895
2895
  switch (d.type) {
2896
2896
  case "state":
2897
2897
  i(d.data);
2898
2898
  }
2899
2899
  });
2900
- const o = () => {
2900
+ const l = () => {
2901
2901
  switch (s) {
2902
2902
  case "out":
2903
2903
  return /* @__PURE__ */ n.jsx(
@@ -2921,7 +2921,7 @@ function so({ id: e, type: t }) {
2921
2921
  );
2922
2922
  case "in":
2923
2923
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2924
- /* @__PURE__ */ n.jsx("span", { onClick: l, children: /* @__PURE__ */ n.jsx(
2924
+ /* @__PURE__ */ n.jsx("span", { onClick: o, children: /* @__PURE__ */ n.jsx(
2925
2925
  "svg",
2926
2926
  {
2927
2927
  className: "red",
@@ -2977,24 +2977,24 @@ function so({ id: e, type: t }) {
2977
2977
  }
2978
2978
  );
2979
2979
  }
2980
- }, l = () => {
2980
+ }, o = () => {
2981
2981
  K.callRefuser(a.id), Ae.del();
2982
2982
  };
2983
2983
  return /* @__PURE__ */ n.jsx("div", { className: "web-phone white", children: /* @__PURE__ */ n.jsxs("div", { className: "w", children: [
2984
- /* @__PURE__ */ n.jsx("div", { className: "x", "data-icon": "F038", onClick: l }),
2984
+ /* @__PURE__ */ n.jsx("div", { className: "x", "data-icon": "F038", onClick: o }),
2985
2985
  /* @__PURE__ */ n.jsx("div", { className: "a" }),
2986
2986
  /* @__PURE__ */ n.jsx("div", { className: "n", children: a.name }),
2987
- /* @__PURE__ */ n.jsx("div", { className: "b", children: o() })
2987
+ /* @__PURE__ */ n.jsx("div", { className: "b", children: l() })
2988
2988
  ] }) });
2989
2989
  }
2990
2990
  const wt = {};
2991
- function io(e) {
2991
+ function il(e) {
2992
2992
  wt.add(e);
2993
2993
  }
2994
- function oo({ color: e, size: t, name: a }) {
2994
+ function ll({ color: e, size: t, name: a }) {
2995
2995
  return /* @__PURE__ */ n.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ n.jsx("use", { href: `#${a}` }) });
2996
2996
  }
2997
- function lo() {
2997
+ function ol() {
2998
2998
  let [e, t] = p.useState([]);
2999
2999
  if (wt.x = () => {
3000
3000
  t([]);
@@ -3016,14 +3016,14 @@ function lo() {
3016
3016
  )) });
3017
3017
  }
3018
3018
  const bt = {};
3019
- function co(e, t) {
3019
+ function cl(e, t) {
3020
3020
  bt[e] = t;
3021
3021
  }
3022
- function _o(e, t) {
3022
+ function dl(e, t) {
3023
3023
  bt[e] !== void 0 && bt[e](t);
3024
3024
  }
3025
3025
  const xe = {};
3026
- function uo(e, t) {
3026
+ function _l(e, t) {
3027
3027
  const [a, r] = p.useState(t);
3028
3028
  return p.useEffect(() => {
3029
3029
  if (xe[e])
@@ -3031,54 +3031,54 @@ function uo(e, t) {
3031
3031
  xe[e] = [r];
3032
3032
  }, []), [a];
3033
3033
  }
3034
- function fo(e, t) {
3034
+ function ul(e, t) {
3035
3035
  if (xe[e])
3036
3036
  return xe[e].push(t);
3037
3037
  xe[e] = [t];
3038
3038
  }
3039
- function mo(e, t) {
3039
+ function fl(e, t) {
3040
3040
  xe[e] && xe[e].forEach((a) => a(t));
3041
3041
  }
3042
- const Te = { setListener: _o, useListener: co, setEmitter: mo, useEmitter: uo, subEmitter: fo };
3043
- function ho() {
3042
+ const Te = { setListener: dl, useListener: cl, setEmitter: fl, useEmitter: _l, subEmitter: ul };
3043
+ function ml() {
3044
3044
  let [e, t] = p.useState([]);
3045
3045
  return Te.useListener("form", (a) => {
3046
3046
  t([a]);
3047
3047
  }), /* @__PURE__ */ n.jsx(n.Fragment, { children: e.map((a) => a) });
3048
3048
  }
3049
- const go = ({ children: e, config: t }) => ($.New(t.crypto), t.defaultModule && Ta(t.defaultModule), La(
3049
+ const hl = ({ children: e, config: t }) => ($.New(t.crypto), t.defaultModule && Ta(t.defaultModule), La(
3050
3050
  /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3051
3051
  /* @__PURE__ */ n.jsx(ki, { config: t.modal }),
3052
3052
  /* @__PURE__ */ n.jsx(Zr, {}),
3053
3053
  /* @__PURE__ */ n.jsx(Qr, {}),
3054
3054
  /* @__PURE__ */ n.jsx(Vi, {}),
3055
- /* @__PURE__ */ n.jsx(lo, {}),
3056
- /* @__PURE__ */ n.jsx(ho, {}),
3057
- /* @__PURE__ */ n.jsx(ao, {}),
3058
- /* @__PURE__ */ n.jsx(eo, {}),
3055
+ /* @__PURE__ */ n.jsx(ol, {}),
3056
+ /* @__PURE__ */ n.jsx(ml, {}),
3057
+ /* @__PURE__ */ n.jsx(al, {}),
3058
+ /* @__PURE__ */ n.jsx(el, {}),
3059
3059
  e
3060
3060
  ] })
3061
- )), xo = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("menu", { children: e }), po = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("header", { children: [
3061
+ )), gl = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("menu", { children: e }), xl = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("header", { children: [
3062
3062
  "xz",
3063
3063
  e
3064
- ] }), vo = "_payment_1lxfv_1", Co = {
3065
- payment: vo
3064
+ ] }), pl = "_payment_1lxfv_1", vl = {
3065
+ payment: pl
3066
3066
  };
3067
- function ko() {
3067
+ function Cl() {
3068
3068
  let [e, t] = p.useState({});
3069
- return !e.active && !e.payment ? "" : /* @__PURE__ */ n.jsx("div", { className: Co.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
3069
+ return !e.active && !e.payment ? "" : /* @__PURE__ */ n.jsx("div", { className: vl.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
3070
3070
  }
3071
- const lc = ({ children: e, ...t }) => {
3071
+ const oc = ({ children: e, ...t }) => {
3072
3072
  let a = {};
3073
3073
  return a.enCode = (r) => JSON.stringify(r).toString(), a.deCode = (r) => JSON.parse(r), /* @__PURE__ */ n.jsxs("div", { className: "app", children: [
3074
- /* @__PURE__ */ n.jsx(ko, {}),
3075
- /* @__PURE__ */ n.jsx(xo, {}),
3076
- /* @__PURE__ */ n.jsx(po, {}),
3077
- /* @__PURE__ */ n.jsx(go, { config: { modal: {}, crypto: a } }),
3074
+ /* @__PURE__ */ n.jsx(Cl, {}),
3075
+ /* @__PURE__ */ n.jsx(gl, {}),
3076
+ /* @__PURE__ */ n.jsx(xl, {}),
3077
+ /* @__PURE__ */ n.jsx(hl, { config: { modal: {}, crypto: a } }),
3078
3078
  e
3079
3079
  ] });
3080
- }, yo = ({ list: e, onClick: t, active: a, size: r, view: s }) => /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ n.jsx(
3081
- jo,
3080
+ }, kl = ({ list: e, onClick: t, active: a, size: r, view: s }) => /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ n.jsx(
3081
+ yl,
3082
3082
  {
3083
3083
  onClick: t,
3084
3084
  active: a,
@@ -3086,9 +3086,9 @@ const lc = ({ children: e, ...t }) => {
3086
3086
  link: i.link
3087
3087
  },
3088
3088
  i.link
3089
- )) }) }), jo = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
3090
- yo.defaultProps = { size: "M", view: "H" };
3091
- const wo = ({
3089
+ )) }) }), yl = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
3090
+ kl.defaultProps = { size: "M", view: "H" };
3091
+ const jl = ({
3092
3092
  title: e = "",
3093
3093
  button: t,
3094
3094
  description: a = "",
@@ -3108,9 +3108,9 @@ const wo = ({
3108
3108
  ] }),
3109
3109
  /* @__PURE__ */ n.jsx("ul", { children: r }),
3110
3110
  a && /* @__PURE__ */ n.jsx("article", { children: a })
3111
- ] }), bo = "_setting_dva4m_2", So = {
3112
- setting: bo
3113
- }, Eo = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: So.setting, children: e }), Ro = ({ label: e, children: t }) => {
3111
+ ] }), wl = "_setting_dva4m_2", bl = {
3112
+ setting: wl
3113
+ }, Sl = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: bl.setting, children: e }), El = ({ label: e, children: t }) => {
3114
3114
  let [a, r] = p.useState(!1);
3115
3115
  return /* @__PURE__ */ n.jsxs("li", { "data-item": "accordion", children: [
3116
3116
  /* @__PURE__ */ n.jsxs("dl", { onClick: () => r(!a), children: [
@@ -3119,10 +3119,10 @@ const wo = ({
3119
3119
  ] }),
3120
3120
  a && /* @__PURE__ */ n.jsx("div", { children: t })
3121
3121
  ] });
3122
- }, Do = ({ label: e, onClick: t, button: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3122
+ }, Rl = ({ label: e, onClick: t, button: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3123
3123
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3124
3124
  /* @__PURE__ */ n.jsx("dd", { role: "button", onClick: () => t(), children: a })
3125
- ] }) }), No = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ n.jsx(
3125
+ ] }) }), Dl = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ n.jsx(
3126
3126
  "div",
3127
3127
  {
3128
3128
  role: "switch",
@@ -3131,25 +3131,25 @@ const wo = ({
3131
3131
  },
3132
3132
  "aria-checked": e ? "true" : "false"
3133
3133
  }
3134
- )), Io = { Switch: No }, To = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3134
+ )), Nl = { Switch: Dl }, Il = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3135
3135
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3136
- /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(Io.Switch, { onClick: t, active: a }) })
3137
- ] }) }), Mo = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3136
+ /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(Nl.Switch, { onClick: t, active: a }) })
3137
+ ] }) }), Tl = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3138
3138
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3139
3139
  /* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
3140
- ] }) }), Lo = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3140
+ ] }) }), Ml = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3141
3141
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3142
3142
  /* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
3143
- ] }) }), Fo = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3143
+ ] }) }), Ll = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3144
3144
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3145
3145
  /* @__PURE__ */ n.jsx("dd", { children: t })
3146
- ] }) }), Bo = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3146
+ ] }) }), Fl = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3147
3147
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3148
3148
  /* @__PURE__ */ n.jsx("dd", { children: t })
3149
- ] }) }), $o = { Accordion: Ro, Button: Do, Switch: To, Info: Lo, Select: Mo, Component: Fo, Node: Bo };
3149
+ ] }) }), Bl = { Accordion: El, Button: Rl, Switch: Il, Info: Ml, Select: Tl, Component: Ll, Node: Fl };
3150
3150
  function Dn({ list: e, onClick: t, active: a, size: r, view: s }) {
3151
3151
  return /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ n.jsx(
3152
- Po,
3152
+ $l,
3153
3153
  {
3154
3154
  onClick: t,
3155
3155
  active: a,
@@ -3159,10 +3159,10 @@ function Dn({ list: e, onClick: t, active: a, size: r, view: s }) {
3159
3159
  i.link
3160
3160
  )) }) });
3161
3161
  }
3162
- const Po = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
3162
+ const $l = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
3163
3163
  Dn.defaultProps = { size: "M", view: "H" };
3164
- const cc = { Section: wo, Main: Eo, Item: $o, Tabs: Dn }, dc = { Icon: to, Item: yt, Active: no }, _c = { Send: ts, Line: Rn };
3165
- function Oo() {
3164
+ const cc = { Section: jl, Main: Sl, Item: Bl, Tabs: Dn }, dc = { Icon: tl, Item: yt, Active: nl }, _c = { Send: ts, Line: Rn };
3165
+ function Pl() {
3166
3166
  return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ n.jsx(
3167
3167
  "path",
3168
3168
  {
@@ -3171,11 +3171,11 @@ function Oo() {
3171
3171
  }
3172
3172
  ) });
3173
3173
  }
3174
- const uc = { Logo: Oo, Sprite: io, Symbol: oo }, Ao = "_sort_1yrvt_1", Go = {
3175
- sort: Ao
3174
+ const uc = { Logo: Pl, Sprite: il, Symbol: ll }, Ol = "_sort_1yrvt_1", Al = {
3175
+ sort: Ol
3176
3176
  };
3177
3177
  let it = {};
3178
- function Zo(e, t) {
3178
+ function Gl(e, t) {
3179
3179
  switch (t.type) {
3180
3180
  case "active":
3181
3181
  let a = "<";
@@ -3188,12 +3188,12 @@ function Zo(e, t) {
3188
3188
  throw new Error();
3189
3189
  }
3190
3190
  }
3191
- function Uo() {
3191
+ function Zl() {
3192
3192
  const [e, t] = p.useReducer(
3193
- Zo,
3193
+ Gl,
3194
3194
  vt() === void 0 ? { active: 1, sort: "<" } : vt()
3195
3195
  );
3196
- return /* @__PURE__ */ n.jsxs("div", { className: Go.sort, children: [
3196
+ return /* @__PURE__ */ n.jsxs("div", { className: Al.sort, children: [
3197
3197
  /* @__PURE__ */ n.jsx(
3198
3198
  "i",
3199
3199
  {
@@ -3220,17 +3220,17 @@ function Uo() {
3220
3220
  )
3221
3221
  ] });
3222
3222
  }
3223
- function zo(e) {
3223
+ function Ul(e) {
3224
3224
  it.get = e;
3225
3225
  }
3226
- function Ko(e) {
3226
+ function zl(e) {
3227
3227
  it.set(e);
3228
3228
  }
3229
- function Wo(e, t, a) {
3230
- let r = 1, s = 0, i = {}, o = 50;
3229
+ function Kl(e, t, a) {
3230
+ let r = 1, s = 0, i = {}, l = 50;
3231
3231
  i[r] = [];
3232
- let l = {}, d = "s1a";
3233
- switch (l.s1a = (_, u) => u.s1 - _.s1, l.s1d = (_, u) => _.s1 - u.s1, l.s2a = (_, u) => _.s2 - u.s2, l.s2d = (_, u) => u.s2 - _.s2, l.s3a = (_, u) => _.s3.localeCompare(u.s3), l.s3d = (_, u) => u.s3.localeCompare(_.s3), a.active) {
3232
+ let o = {}, d = "s1a";
3233
+ switch (o.s1a = (_, u) => u.s1 - _.s1, o.s1d = (_, u) => _.s1 - u.s1, o.s2a = (_, u) => _.s2 - u.s2, o.s2d = (_, u) => u.s2 - _.s2, o.s3a = (_, u) => _.s3.localeCompare(u.s3), o.s3d = (_, u) => u.s3.localeCompare(_.s3), a.active) {
3234
3234
  case 1:
3235
3235
  d = a.sort === ">" ? "s1d" : "s1a";
3236
3236
  break;
@@ -3241,33 +3241,33 @@ function Wo(e, t, a) {
3241
3241
  d = a.sort === ">" ? "s3d" : "s3a";
3242
3242
  break;
3243
3243
  }
3244
- return t.sort(l[d]).forEach((_) => {
3245
- s++, s <= o || (r++, s = 1, i[r] = []), i[r].push(e[_.id]);
3244
+ return t.sort(o[d]).forEach((_) => {
3245
+ s++, s <= l || (r++, s = 1, i[r] = []), i[r].push(e[_.id]);
3246
3246
  }), { data: i };
3247
3247
  }
3248
- function Ho(e) {
3248
+ function Wl(e) {
3249
3249
  it.count(e);
3250
3250
  }
3251
- const fc = { Init: Uo, useValue: zo, Set: Ko, Run: Wo, Count: Ho }, tt = {}, Nn = {};
3252
- function Yo(e) {
3251
+ const fc = { Init: Zl, useValue: Ul, Set: zl, Run: Kl, Count: Wl }, tt = {}, Nn = {};
3252
+ function Hl(e) {
3253
3253
  const [t, a] = p.useState({}), r = async (s) => {
3254
3254
  a(
3255
- Object.keys(tt).reduce((i, o) => (i ? i[o] = tt[o].all : i = {}, i), {})
3255
+ Object.keys(tt).reduce((i, l) => (i ? i[l] = tt[l].all : i = {}, i), {})
3256
3256
  );
3257
3257
  };
3258
3258
  return p.useEffect(() => {
3259
3259
  e.forEach((s) => tt[s] = { all: 0 }), Nn.menu = r, r();
3260
3260
  }, [e]), t;
3261
3261
  }
3262
- function qo(e, t) {
3262
+ function Yl(e, t) {
3263
3263
  switch (typeof t) {
3264
3264
  case "number":
3265
3265
  tt[e].all += t, Nn.menu();
3266
3266
  break;
3267
3267
  }
3268
3268
  }
3269
- const mc = { useMenu: Yo, setUpdate: qo };
3270
- class Vo {
3269
+ const mc = { useMenu: Hl, setUpdate: Yl };
3270
+ class ql {
3271
3271
  constructor(t = "el", a = "db") {
3272
3272
  gt(this, "storeName");
3273
3273
  gt(this, "_dbp");
@@ -3281,14 +3281,14 @@ class Vo {
3281
3281
  _withIDBStore(t, a) {
3282
3282
  return this._dbp.then(
3283
3283
  (r) => new Promise((s, i) => {
3284
- const o = r.transaction(this.storeName, t);
3285
- o.oncomplete = () => s(), o.onabort = o.onerror = () => i(o.error), a(o.objectStore(this.storeName));
3284
+ const l = r.transaction(this.storeName, t);
3285
+ l.oncomplete = () => s(), l.onabort = l.onerror = () => i(l.error), a(l.objectStore(this.storeName));
3286
3286
  })
3287
3287
  );
3288
3288
  }
3289
3289
  }
3290
3290
  let xt, q = {};
3291
- const Me = () => (xt || (xt = new Vo()), xt), Ce = (e, t, a = Me()) => a._withIDBStore("readwrite", (r) => {
3291
+ const Me = () => (xt || (xt = new ql()), xt), Ce = (e, t, a = Me()) => a._withIDBStore("readwrite", (r) => {
3292
3292
  q[e] = t, r.put($.enCode(t), e);
3293
3293
  }), fe = (e, t = Me()) => q[e] === void 0 ? new Promise((a, r) => {
3294
3294
  let s;
@@ -3301,29 +3301,29 @@ const Me = () => (xt || (xt = new Vo()), xt), Ce = (e, t, a = Me()) => a._withID
3301
3301
  } else
3302
3302
  a({});
3303
3303
  });
3304
- }) : q[e], Jo = (e, t = Me()) => t._withIDBStore("readwrite", (a) => {
3304
+ }) : q[e], Vl = (e, t = Me()) => t._withIDBStore("readwrite", (a) => {
3305
3305
  a.delete(e);
3306
3306
  }), St = (e = Me()) => e._withIDBStore("readwrite", (t) => {
3307
3307
  t.clear();
3308
- }), Xo = (e = Me()) => {
3308
+ }), Jl = (e = Me()) => {
3309
3309
  const t = [];
3310
3310
  return e._withIDBStore("readonly", (a) => {
3311
3311
  (a.openKeyCursor || a.openCursor).call(a).onsuccess = function() {
3312
3312
  this.result && (t.push(this.result.key), this.result.continue());
3313
3313
  };
3314
3314
  }).then(() => t);
3315
- }, Qo = (e, t, a = [], r = {}) => {
3316
- let s = a.length !== 0, i = [], o = r.sort, l = Object.keys(r).length !== 0, d = Object.keys(r), _ = Object.keys(e), u = [], g = (m) => {
3315
+ }, Xl = (e, t, a = [], r = {}) => {
3316
+ let s = a.length !== 0, i = [], l = r.sort, o = Object.keys(r).length !== 0, d = Object.keys(r), _ = Object.keys(e), u = [], g = (m) => {
3317
3317
  let k = "";
3318
3318
  if (a.forEach((h) => {
3319
3319
  k += t[m][h];
3320
- }), l) {
3320
+ }), o) {
3321
3321
  let h = {};
3322
3322
  d.forEach((x) => {
3323
3323
  h[x] = t[m][x];
3324
3324
  });
3325
- for (let x in o)
3326
- t[m][o[x]] === void 0 && (St(), location.reload()), x === "s1" && (h[x] = new Date(t[m][o[x]]).getTime()), x === "s2" && (h[x] = t[m][o[x]]), x === "s3" && (h[x] = t[m][o[x]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3325
+ for (let x in l)
3326
+ t[m][l[x]] === void 0 && (St(), location.reload()), x === "s1" && (h[x] = new Date(t[m][l[x]]).getTime()), x === "s2" && (h[x] = t[m][l[x]]), x === "s3" && (h[x] = t[m][l[x]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3327
3327
  i.push({ id: m, text: k, ...h });
3328
3328
  } else
3329
3329
  i.push({ id: m, text: k });
@@ -3332,18 +3332,18 @@ const Me = () => (xt || (xt = new Vo()), xt), Ce = (e, t, a = Me()) => a._withID
3332
3332
  return _.forEach((m) => {
3333
3333
  u.push(t[m]);
3334
3334
  }), u.forEach((m) => {
3335
- m === void 0 ? (St(), location.reload()) : (s && g(m.id), l && f(m.id));
3335
+ m === void 0 ? (St(), location.reload()) : (s && g(m.id), o && f(m.id));
3336
3336
  }), { list: u, search: i, filter: r };
3337
- }, el = (e, t, a, r = Me()) => {
3337
+ }, Ql = (e, t, a, r = Me()) => {
3338
3338
  if (q[e] === void 0)
3339
3339
  return new Promise((s, i) => {
3340
- let o;
3341
- r._withIDBStore("readonly", (l) => {
3342
- o = l.get(e);
3340
+ let l;
3341
+ r._withIDBStore("readonly", (o) => {
3342
+ l = o.get(e);
3343
3343
  }).then(() => {
3344
- if (o.result !== void 0) {
3345
- let l = $.deCode(o.result);
3346
- q[e] = l, q[e][t.id] = {
3344
+ if (l.result !== void 0) {
3345
+ let o = $.deCode(l.result);
3346
+ q[e] = o, q[e][t.id] = {
3347
3347
  ...q[e][t.id],
3348
3348
  ...t.data
3349
3349
  }, r.put($.enCode(q[e]), e), s({});
@@ -3355,45 +3355,45 @@ const Me = () => (xt || (xt = new Vo()), xt), Ce = (e, t, a = Me()) => a._withID
3355
3355
  return q[e][t.id] = { ...q[e][t.id], ...t.data }, a !== void 0 && q[a] !== void 0 ? q[a][t.id] !== void 0 && (q[a][t.id] = t.data.eDate) : q[a] = [], delete q[e][t.id].$_item, delete q[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
3356
3356
  s.put($.enCode(q[e]), e), a !== void 0 && s.put($.enCode(q[a]), a);
3357
3357
  });
3358
- }, tl = async (e, t, a, r) => {
3358
+ }, eo = async (e, t, a, r) => {
3359
3359
  let s, i;
3360
3360
  i = await fe(a), i[e.id] = e, await Ce(a, i), s !== null && (s = await fe(t), s[e.id] = e.eDate, await Ce(t, s)), r !== void 0 && r({ type: "load", page: s, base: i });
3361
- }, nl = async (e, t, a, r) => {
3361
+ }, to = async (e, t, a, r) => {
3362
3362
  let s = await fe(t), i = await fe(a);
3363
- for (let o in e)
3364
- i[o] = e[o], s[o] = e[o].eDate;
3363
+ for (let l in e)
3364
+ i[l] = e[l], s[l] = e[l].eDate;
3365
3365
  await Ce(t, s), await Ce(a, i), r !== void 0 && r({ type: "load", page: s, base: i });
3366
- }, al = async (e, t, a, r) => {
3366
+ }, no = async (e, t, a, r) => {
3367
3367
  let s = await fe(t), i = await fe(a);
3368
- e.forEach((o) => delete s[o]), await Ce(t, s), r !== void 0 && r({ type: "load", page: s, base: i });
3369
- }, rl = async (e, t, a) => {
3368
+ e.forEach((l) => delete s[l]), await Ce(t, s), r !== void 0 && r({ type: "load", page: s, base: i });
3369
+ }, ao = async (e, t, a) => {
3370
3370
  let r = await fe(t);
3371
3371
  e.forEach((s) => delete r[s]), await Ce(t, r);
3372
- }, sl = async (e, t, a) => {
3372
+ }, ro = async (e, t, a) => {
3373
3373
  let r = await fe(t);
3374
3374
  e.forEach((s) => r[s.id] = s.eDate), await Ce(t, r);
3375
- }, il = async (e, t, a) => {
3375
+ }, so = async (e, t, a) => {
3376
3376
  let r = await fe(t);
3377
3377
  if (a !== void 0)
3378
3378
  a({ type: "load", base: r });
3379
3379
  else
3380
3380
  return r[e];
3381
- }, ol = (e) => q[e], hc = {
3382
- id: il,
3381
+ }, io = (e) => q[e], hc = {
3382
+ id: so,
3383
3383
  get: fe,
3384
3384
  set: Ce,
3385
- add: tl,
3386
- del: Jo,
3387
- upd: el,
3388
- key: Xo,
3389
- load: ol,
3390
- split: Qo,
3385
+ add: eo,
3386
+ del: Vl,
3387
+ upd: Ql,
3388
+ key: Jl,
3389
+ load: io,
3390
+ split: Xl,
3391
3391
  clear: St,
3392
- updAll: nl,
3393
- delAll: al,
3394
- delList: rl,
3395
- addList: sl
3396
- }, ll = (e, t) => {
3392
+ updAll: to,
3393
+ delAll: no,
3394
+ delList: ao,
3395
+ addList: ro
3396
+ }, lo = (e, t) => {
3397
3397
  const a = [];
3398
3398
  t = t.map((r) => r.charCodeAt(0)), document.onkeydown = function(r) {
3399
3399
  a.push(r.keyCode);
@@ -3404,15 +3404,15 @@ const Me = () => (xt || (xt = new Vo()), xt), Ce = (e, t, a = Me()) => a._withID
3404
3404
  }, document.onkeyup = function(r) {
3405
3405
  a.length = 0;
3406
3406
  };
3407
- }, gc = { useKey: ll }, cl = "_s_18bde_1", dl = "_loadingB_18bde_1", _l = "_ul_18bde_31", ul = {
3408
- s: cl,
3409
- loadingB: dl,
3410
- ul: _l
3407
+ }, gc = { useKey: lo }, oo = "_s_18bde_1", co = "_loadingB_18bde_1", _o = "_ul_18bde_31", uo = {
3408
+ s: oo,
3409
+ loadingB: co,
3410
+ ul: _o
3411
3411
  };
3412
3412
  function In({ children: e }) {
3413
- return /* @__PURE__ */ n.jsx("ul", { className: ae.ul, children: e });
3413
+ return /* @__PURE__ */ n.jsx("ul", { className: ne.ul, children: e });
3414
3414
  }
3415
- function fl(e, t) {
3415
+ function fo(e, t) {
3416
3416
  switch (t.type) {
3417
3417
  case "load":
3418
3418
  return {
@@ -3445,13 +3445,13 @@ function fl(e, t) {
3445
3445
  throw new Error();
3446
3446
  }
3447
3447
  }
3448
- function ml({
3448
+ function mo({
3449
3449
  list: e,
3450
3450
  load: t,
3451
3451
  className: a,
3452
3452
  ...r
3453
3453
  }) {
3454
- const s = p.useRef(null), [i, o] = p.useReducer(fl, {
3454
+ const s = p.useRef(null), [i, l] = p.useReducer(fo, {
3455
3455
  load: !1,
3456
3456
  list: [],
3457
3457
  data: {},
@@ -3460,17 +3460,17 @@ function ml({
3460
3460
  size: 0
3461
3461
  });
3462
3462
  p.useEffect(() => {
3463
- s.current.scrollTop = 0, e !== null && o({ type: "load", load: !0, data: e });
3463
+ s.current.scrollTop = 0, e !== null && l({ type: "load", load: !0, data: e });
3464
3464
  }, [t]);
3465
- let l = () => {
3466
- s.current.scrollHeight - s.current.scrollTop - 300 <= s.current.clientHeight && !i.wait && o({ type: "update" });
3465
+ let o = () => {
3466
+ s.current.scrollHeight - s.current.scrollTop - 300 <= s.current.clientHeight && !i.wait && l({ type: "update" });
3467
3467
  };
3468
3468
  return /* @__PURE__ */ n.jsx(
3469
3469
  "div",
3470
3470
  {
3471
- className: [ul.s, a].join(" "),
3471
+ className: [uo.s, a].join(" "),
3472
3472
  ref: s,
3473
- onScroll: l,
3473
+ onScroll: o,
3474
3474
  children: /* @__PURE__ */ n.jsx(In, { "el-empty": "Данные не найдены", children: i.load && i.list !== void 0 ? i.list.map((d) => /* @__PURE__ */ n.jsx(r.item, { data: d }, d.id)) : /* @__PURE__ */ n.jsxs("div", { "data-load": "load", children: [
3475
3475
  /* @__PURE__ */ n.jsx("i", {}),
3476
3476
  /* @__PURE__ */ n.jsx("i", {}),
@@ -3510,8 +3510,8 @@ function Ze({
3510
3510
  placeholder: r = "",
3511
3511
  title: s = "",
3512
3512
  error: i = "",
3513
- hide: o = !1,
3514
- edit: l = !0,
3513
+ hide: l = !1,
3514
+ edit: o = !0,
3515
3515
  active: d = !0,
3516
3516
  after: _ = "",
3517
3517
  show: u = !0,
@@ -3520,42 +3520,42 @@ function Ze({
3520
3520
  onSave: m,
3521
3521
  className: k = ""
3522
3522
  }) {
3523
- let h = !!(o && (e === "" || e === void 0)), x = (S) => {
3524
- t && t({ value: S.target.textContent, name: a });
3525
- }, C = (S) => {
3526
- S.key === "Enter" && S.preventDefault();
3527
- }, w = (S) => {
3528
- }, I = (S) => {
3529
- S.preventDefault(), navigator.clipboard.writeText(S.target.textContent).then(
3523
+ let h = !!(l && (e === "" || e === void 0)), x = (b) => {
3524
+ t && t({ value: b.target.textContent, name: a });
3525
+ }, C = (b) => {
3526
+ b.key === "Enter" && b.preventDefault();
3527
+ }, j = (b) => {
3528
+ }, I = (b) => {
3529
+ b.preventDefault(), navigator.clipboard.writeText(b.target.textContent).then(
3530
3530
  function() {
3531
3531
  Ne.Copy("Данные в буфер обмене");
3532
3532
  },
3533
- function(R) {
3533
+ function(E) {
3534
3534
  }
3535
3535
  );
3536
3536
  };
3537
- if (!(l && d) && !u || !(l && d) && h)
3537
+ if (!(o && d) && !u || !(o && d) && h)
3538
3538
  return "";
3539
3539
  const T = {};
3540
3540
  T.field = "input", k && (T.className = k);
3541
- const y = {};
3542
- r && (y.placeholder = r), l && d && (y.edit = "");
3543
- const b = (S) => {
3544
- de.Blur(S), m && m({ value: S.target.textContent, name: a });
3541
+ const w = {};
3542
+ r && (w.placeholder = r), o && d && (w.edit = "");
3543
+ const S = (b) => {
3544
+ de.Blur(b), m && m({ value: b.target.textContent, name: a });
3545
3545
  };
3546
3546
  return /* @__PURE__ */ n.jsxs("dl", { ...T, children: [
3547
3547
  s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
3548
3548
  /* @__PURE__ */ n.jsx(
3549
3549
  "dd",
3550
3550
  {
3551
- onPaste: w,
3551
+ onPaste: j,
3552
3552
  onInput: x,
3553
- onBlur: b,
3553
+ onBlur: S,
3554
3554
  onKeyDown: C,
3555
3555
  onContextMenu: I,
3556
- contentEditable: l && d ? "plaintext-only" : "false",
3556
+ contentEditable: o && d ? "plaintext-only" : "false",
3557
3557
  suppressContentEditableWarning: !0,
3558
- ...y,
3558
+ ...w,
3559
3559
  children: e
3560
3560
  }
3561
3561
  ),
@@ -3564,7 +3564,7 @@ function Ze({
3564
3564
  }
3565
3565
  function Mn({ onClick: e, onSend: t, name: a, onRef: r }) {
3566
3566
  let [s, i] = p.useState(!1);
3567
- const o = () => {
3567
+ const l = () => {
3568
3568
  if (e)
3569
3569
  return e();
3570
3570
  s || (i(!0), t && t(i));
@@ -3575,7 +3575,7 @@ function Mn({ onClick: e, onSend: t, name: a, onRef: r }) {
3575
3575
  ref: r,
3576
3576
  "data-form": "button",
3577
3577
  className: s ? "btn await" : "btn confirm pointer",
3578
- onClick: o,
3578
+ onClick: l,
3579
3579
  children: s ? "Ожидайте" : a
3580
3580
  }
3581
3581
  );
@@ -3587,8 +3587,8 @@ function Ln({
3587
3587
  data: r,
3588
3588
  name: s,
3589
3589
  view: i,
3590
- edit: o = !0,
3591
- active: l = !0,
3590
+ edit: l = !0,
3591
+ active: o = !0,
3592
3592
  placeholder: d = "Введите сообщение"
3593
3593
  }) {
3594
3594
  const _ = p.useRef({
@@ -3607,16 +3607,16 @@ function Ln({
3607
3607
  }, m = (C) => {
3608
3608
  C.keyCode === 16 && (_.current.shift = !1);
3609
3609
  }, k = (C) => {
3610
- C.preventDefault(), navigator.clipboard.readText().then((w) => {
3611
- window.document.execCommand("insertText", !1, w);
3612
- }).catch((w) => {
3610
+ C.preventDefault(), navigator.clipboard.readText().then((j) => {
3611
+ window.document.execCommand("insertText", !1, j);
3612
+ }).catch((j) => {
3613
3613
  });
3614
3614
  }, h = () => {
3615
3615
  a(!1);
3616
3616
  }, x = {
3617
3617
  spellCheck: "true"
3618
3618
  };
3619
- return d && (x.placeholder = d), o && l && (x.contentEditable = "plaintext-only"), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
3619
+ return d && (x.placeholder = d), l && o && (x.contentEditable = "plaintext-only"), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
3620
3620
  "dd",
3621
3621
  {
3622
3622
  onPaste: k,
@@ -3633,9 +3633,9 @@ function Ln({
3633
3633
  function Fn(e) {
3634
3634
  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 = (d) => {
3635
3635
  e.onValue({ value: d.target.textContent, name: e.name });
3636
- }, o = (d) => {
3637
- d.key === "Enter" && d.preventDefault();
3638
3636
  }, l = (d) => {
3637
+ d.key === "Enter" && d.preventDefault();
3638
+ }, o = (d) => {
3639
3639
  d.preventDefault(), navigator.clipboard.readText().then((_) => {
3640
3640
  window.document.execCommand("insertText", !1, _);
3641
3641
  }).catch((_) => {
@@ -3646,9 +3646,9 @@ function Fn(e) {
3646
3646
  /* @__PURE__ */ n.jsx(
3647
3647
  "dd",
3648
3648
  {
3649
- onPaste: l,
3649
+ onPaste: o,
3650
3650
  onInput: i,
3651
- onKeyDown: o,
3651
+ onKeyDown: l,
3652
3652
  contentEditable: a && r ? "plaintext-only" : "false",
3653
3653
  "data-placeholder": s,
3654
3654
  suppressContentEditableWarning: !0,
@@ -3658,10 +3658,10 @@ function Fn(e) {
3658
3658
  ] });
3659
3659
  }
3660
3660
  function Bn({ value: e, onValue: t, placeholder: a = "", name: r }) {
3661
- let s = (m, k) => Number(Math.round(m + Math.random() * (k - m))), i = p.useRef(null), o = p.useRef(null), l = s(1e4, 99999), d = (m) => {
3661
+ let s = (m, k) => Number(Math.round(m + Math.random() * (k - m))), i = p.useRef(null), l = p.useRef(null), o = s(1e4, 99999), d = (m) => {
3662
3662
  m.key !== "Backspace" && (m.key === "Enter" && m.preventDefault(), m.target.textContent.length === 5 && m.preventDefault(), /\d/.test(m.key) || m.preventDefault());
3663
3663
  }, _ = (m) => {
3664
- t({ value: Number(m.target.textContent) === l, name: r });
3664
+ t({ value: Number(m.target.textContent) === o, name: r });
3665
3665
  }, u = (m) => {
3666
3666
  m.preventDefault(), navigator.clipboard.readText().then((k) => {
3667
3667
  window.document.execCommand(
@@ -3674,8 +3674,8 @@ function Bn({ value: e, onValue: t, placeholder: a = "", name: r }) {
3674
3674
  };
3675
3675
  p.useEffect(() => {
3676
3676
  const m = i.current, k = m.getContext("2d");
3677
- k.clearRect(0, 0, m.width, m.height), k.font = "30px brush script mt", k.fillStyle = "#eee", k.textAlign = "center", k.fillText(l, 50, 27), o.current.textContent = "";
3678
- }, [l]);
3677
+ k.clearRect(0, 0, m.width, m.height), k.font = "30px brush script mt", k.fillStyle = "#eee", k.textAlign = "center", k.fillText(o, 50, 27), l.current.textContent = "";
3678
+ }, [o]);
3679
3679
  const g = {};
3680
3680
  g.field = "captcha";
3681
3681
  const f = {};
@@ -3683,7 +3683,7 @@ function Bn({ value: e, onValue: t, placeholder: a = "", name: r }) {
3683
3683
  /* @__PURE__ */ n.jsx(
3684
3684
  "dd",
3685
3685
  {
3686
- ref: o,
3686
+ ref: l,
3687
3687
  onPaste: u,
3688
3688
  onInput: _,
3689
3689
  onBlur: de.Blur,
@@ -3703,8 +3703,8 @@ function $n({
3703
3703
  edit: r = !0,
3704
3704
  real: s,
3705
3705
  onValue: i,
3706
- empty: o,
3707
- name: l
3706
+ empty: l,
3707
+ name: o
3708
3708
  }) {
3709
3709
  let d = {
3710
3710
  n1: "",
@@ -3735,8 +3735,8 @@ function $n({
3735
3735
  }, g = (h) => {
3736
3736
  if (r) {
3737
3737
  if (s)
3738
- i && i({ value: d.code, name: l });
3739
- else if (d.code.length === 6 && (i && i({ value: d.code, name: l }), o)) {
3738
+ i && i({ value: d.code, name: o });
3739
+ else if (d.code.length === 6 && (i && i({ value: d.code, name: o }), l)) {
3740
3740
  d = {
3741
3741
  n1: "",
3742
3742
  n2: "",
@@ -3757,9 +3757,9 @@ function $n({
3757
3757
  }, m = (h) => {
3758
3758
  h.preventDefault(), navigator.clipboard.readText().then((x) => {
3759
3759
  let C = x.split("");
3760
- for (let w = 1; w <= C.length; w++) {
3761
- let I = document.getElementById("n" + w);
3762
- I && (I.textContent = C[w - 1]);
3760
+ for (let j = 1; j <= C.length; j++) {
3761
+ let I = document.getElementById("n" + j);
3762
+ I && (I.textContent = C[j - 1]);
3763
3763
  }
3764
3764
  }).catch((x) => {
3765
3765
  });
@@ -3847,9 +3847,9 @@ function $n({
3847
3847
  function Pn(e) {
3848
3848
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "";
3849
3849
  e.edit !== void 0 && e.edit, e.active !== void 0 && e.active;
3850
- let [r, s] = p.useState(e.value), i = (o) => {
3851
- let l = o.target.getAttribute("set-color");
3852
- s(l), e.onValue({ value: l, name: e.name });
3850
+ let [r, s] = p.useState(e.value), i = (l) => {
3851
+ let o = l.target.getAttribute("set-color");
3852
+ s(o), e.onValue({ value: o, name: e.name });
3853
3853
  };
3854
3854
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: e.view === "icon" ? /* @__PURE__ */ n.jsx(
3855
3855
  "i",
@@ -3874,29 +3874,29 @@ function Pn(e) {
3874
3874
  }
3875
3875
  ) });
3876
3876
  }
3877
- const hl = "_o_1e9i0_1", gl = "_c_1e9i0_11", Ie = {
3878
- o: hl,
3879
- c: gl
3877
+ const ho = "_o_1e9i0_1", go = "_c_1e9i0_11", Ie = {
3878
+ o: ho,
3879
+ c: go
3880
3880
  };
3881
3881
  function Tt(e) {
3882
- let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", [o, l] = p.useState(
3882
+ let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", [l, o] = p.useState(
3883
3883
  e.value === void 0 ? /* @__PURE__ */ new Date() : e.value
3884
3884
  ), d = !r && s;
3885
3885
  p.useEffect(() => {
3886
- l(e.value === void 0 ? /* @__PURE__ */ new Date() : e.value);
3886
+ o(e.value === void 0 ? /* @__PURE__ */ new Date() : e.value);
3887
3887
  }, [e.value]);
3888
3888
  let _ = (m) => {
3889
- l(m), e.onValue({ value: m, name: e.name });
3889
+ o(m), e.onValue({ value: m, name: e.name });
3890
3890
  }, u = (m) => {
3891
3891
  const k = m.target.getBoundingClientRect(), h = k.left, x = k.top;
3892
3892
  Te.setListener(
3893
3893
  "form",
3894
3894
  /* @__PURE__ */ n.jsx(
3895
- xl,
3895
+ xo,
3896
3896
  {
3897
3897
  position: { x: h, y: x },
3898
3898
  onValue: _,
3899
- date: o
3899
+ date: l
3900
3900
  },
3901
3901
  (/* @__PURE__ */ new Date()).getTime()
3902
3902
  )
@@ -3925,7 +3925,7 @@ function Tt(e) {
3925
3925
  onClick: u,
3926
3926
  ...f,
3927
3927
  "data-edit": (r && s) + "",
3928
- children: H.Date(o, "dd.mm.yyyy")
3928
+ children: H.Date(l, "dd.mm.yyyy")
3929
3929
  }
3930
3930
  ),
3931
3931
  a()
@@ -3933,35 +3933,35 @@ function Tt(e) {
3933
3933
  }
3934
3934
  ) });
3935
3935
  }
3936
- const xl = (e) => {
3936
+ const xo = (e) => {
3937
3937
  let [t, a] = p.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3938
3938
  y: parseInt(r.getFullYear()),
3939
3939
  d: parseInt(r.getDate()),
3940
3940
  m: parseInt(r.getMonth()) + 1
3941
- }, o = {
3941
+ }, l = {
3942
3942
  y: parseInt(s.getFullYear()),
3943
3943
  d: parseInt(s.getDate()),
3944
3944
  m: parseInt(s.getMonth()) + 1
3945
- }, [l, d] = p.useState({ y: o.y, m: o.m }), _ = (y) => {
3946
- let b = y.getDay();
3947
- return b === 0 && (b = 7), b - 1;
3948
- }, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], g = l.m - 1, f = new Date(l.y, g), m = [];
3949
- for (let y = 0; y < _(f); y++)
3945
+ }, [o, d] = p.useState({ y: l.y, m: l.m }), _ = (w) => {
3946
+ let S = w.getDay();
3947
+ return S === 0 && (S = 7), S - 1;
3948
+ }, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], g = o.m - 1, f = new Date(o.y, g), m = [];
3949
+ for (let w = 0; w < _(f); w++)
3950
3950
  m.push(0);
3951
3951
  for (; f.getMonth() === g; )
3952
3952
  m.push(f.getDate()), f.setDate(f.getDate() + 1);
3953
3953
  let k = () => {
3954
3954
  a(!1);
3955
3955
  }, h = () => {
3956
- w(l.m + 1, l.y);
3956
+ j(o.m + 1, o.y);
3957
3957
  }, x = () => {
3958
- w(l.m - 1, l.y);
3959
- }, C = (y) => {
3958
+ j(o.m - 1, o.y);
3959
+ }, C = (w) => {
3960
3960
  e.onValue(
3961
- l.y + "-" + H.Number(2, l.m) + "-" + H.Number(2, y)
3961
+ o.y + "-" + H.Number(2, o.m) + "-" + H.Number(2, w)
3962
3962
  ), k();
3963
- }, w = (y, b) => {
3964
- b = y > 12 ? b + 1 : y < 1 ? b - 1 : b, y = y > 12 ? 1 : y < 1 ? 12 : y, d({ y: b, m: y });
3963
+ }, j = (w, S) => {
3964
+ S = w > 12 ? S + 1 : w < 1 ? S - 1 : S, w = w > 12 ? 1 : w < 1 ? 12 : w, d({ y: S, m: w });
3965
3965
  }, I = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, T = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
3966
3966
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3967
3967
  /* @__PURE__ */ n.jsx(
@@ -3991,9 +3991,9 @@ const xl = (e) => {
3991
3991
  }
3992
3992
  ) }),
3993
3993
  /* @__PURE__ */ n.jsxs("h2", { children: [
3994
- H.Month(l.m).name,
3994
+ H.Month(o.m).name,
3995
3995
  " ",
3996
- l.y
3996
+ o.y
3997
3997
  ] }),
3998
3998
  /* @__PURE__ */ n.jsx("i", { onClick: h, children: /* @__PURE__ */ n.jsx(
3999
3999
  "svg",
@@ -4008,15 +4008,15 @@ const xl = (e) => {
4008
4008
  ) })
4009
4009
  ] }),
4010
4010
  /* @__PURE__ */ n.jsxs("div", { "grid-calendar": "", children: [
4011
- u.map((y, b) => /* @__PURE__ */ n.jsx("p", { children: y }, "v" + b)),
4012
- m.map((y, b) => /* @__PURE__ */ n.jsx("span", { children: y !== 0 ? /* @__PURE__ */ n.jsx(
4011
+ u.map((w, S) => /* @__PURE__ */ n.jsx("p", { children: w }, "v" + S)),
4012
+ m.map((w, S) => /* @__PURE__ */ n.jsx("span", { children: w !== 0 ? /* @__PURE__ */ n.jsx(
4013
4013
  "b",
4014
4014
  {
4015
- color: i.y === l.y && i.m === l.m && i.d === y ? "_FFEB3B" : "",
4016
- onClick: () => C(y),
4017
- children: y
4015
+ color: i.y === o.y && i.m === o.m && i.d === w ? "_FFEB3B" : "",
4016
+ onClick: () => C(w),
4017
+ children: w
4018
4018
  }
4019
- ) : /* @__PURE__ */ n.jsx("p", {}) }, b))
4019
+ ) : /* @__PURE__ */ n.jsx("p", {}) }, S))
4020
4020
  ] })
4021
4021
  ]
4022
4022
  }
@@ -4030,8 +4030,8 @@ function Mt({
4030
4030
  placeholder: r = "",
4031
4031
  title: s,
4032
4032
  error: i,
4033
- hide: o = !1,
4034
- edit: l = !0,
4033
+ hide: l = !1,
4034
+ edit: o = !0,
4035
4035
  show: d = !0,
4036
4036
  active: _ = !0,
4037
4037
  after: u = "",
@@ -4041,13 +4041,13 @@ function Mt({
4041
4041
  options: k,
4042
4042
  className: h
4043
4043
  }) {
4044
- let [x, C] = p.useState(e), w = (y) => {
4045
- if (!(l && _) || !f)
4044
+ let [x, C] = p.useState(e), j = (w) => {
4045
+ if (!(o && _) || !f)
4046
4046
  return;
4047
- let b = f.split(".");
4048
- st.Open(b[0], b[1], {
4049
- callback: (S) => {
4050
- t && t({ value: S, name: a }), C(S);
4047
+ let S = f.split(".");
4048
+ st.Open(S[0], S[1], {
4049
+ callback: (b) => {
4050
+ t && t({ value: b, name: a }), C(b);
4051
4051
  },
4052
4052
  onValue: t,
4053
4053
  options: k,
@@ -4058,14 +4058,14 @@ function Mt({
4058
4058
  const I = {};
4059
4059
  I.field = "input", h && (I.className = h);
4060
4060
  const T = {};
4061
- return r && (T.placeholder = r), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
4061
+ return r && (T.placeholder = r), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
4062
4062
  s && /* @__PURE__ */ n.jsx("dt", { children: s }),
4063
4063
  /* @__PURE__ */ n.jsx(
4064
4064
  "dd",
4065
4065
  {
4066
4066
  ...T,
4067
- onClick: w,
4068
- edit: (l && _) + "",
4067
+ onClick: j,
4068
+ edit: (o && _) + "",
4069
4069
  "data-after": u,
4070
4070
  children: x
4071
4071
  }
@@ -4080,8 +4080,8 @@ function Lt({
4080
4080
  placeholder: r = "",
4081
4081
  title: s = "",
4082
4082
  error: i = "",
4083
- hide: o = !1,
4084
- edit: l = !0,
4083
+ hide: l = !1,
4084
+ edit: o = !0,
4085
4085
  active: d = !0,
4086
4086
  after: _ = "",
4087
4087
  show: u = !0,
@@ -4092,32 +4092,32 @@ function Lt({
4092
4092
  onSave: h,
4093
4093
  className: x = ""
4094
4094
  }) {
4095
- let C = !!(o && (e === "" || e === void 0));
4095
+ let C = !!(l && (e === "" || e === void 0));
4096
4096
  e = H.isNumeric(e) ? Number(e) / g : 0;
4097
- let w = (M) => k === "multi" ? M.replace(/[^+\d.+-]/g, "") : M.replace(/[^+\d.]/g, ""), I = (M, U) => {
4097
+ let j = (M) => k === "multi" ? M.replace(/[^+\d.+-]/g, "") : M.replace(/[^+\d.]/g, ""), I = (M, U) => {
4098
4098
  let O = document.createRange(), N = window.getSelection();
4099
4099
  O.setStart(U.childNodes[0], M), O.collapse(!0), N.removeAllRanges(), N.addRange(O), U.focus();
4100
4100
  }, T = (M) => {
4101
4101
  t == null || t({
4102
- value: w(M.target.textContent) * g,
4102
+ value: j(M.target.textContent) * g,
4103
4103
  name: a
4104
- }), M.target.textContent = w(M.target.textContent), M.target.textContent.length > 0 && I(M.target.textContent.length, M.target);
4105
- }, y = (M) => {
4106
- de.Blur(M), M.target.textContent === "" && (M.target.textContent = 0), h == null || h({ value: w(M.target.textContent) * g, name: a }), t == null || t({
4107
- value: w(M.target.textContent) * g,
4104
+ }), M.target.textContent = j(M.target.textContent), M.target.textContent.length > 0 && I(M.target.textContent.length, M.target);
4105
+ }, w = (M) => {
4106
+ de.Blur(M), M.target.textContent === "" && (M.target.textContent = 0), h == null || h({ value: j(M.target.textContent) * g, name: a }), t == null || t({
4107
+ value: j(M.target.textContent) * g,
4108
4108
  name: a
4109
4109
  }), M.target.textContent = H.Money(M.target.textContent);
4110
- }, b = (M) => {
4111
- M.target.textContent = w(M.target.textContent);
4112
4110
  }, S = (M) => {
4111
+ M.target.textContent = j(M.target.textContent);
4112
+ }, b = (M) => {
4113
4113
  M.key === "Enter" && M.preventDefault();
4114
- }, R = (M) => {
4114
+ }, E = (M) => {
4115
4115
  M.preventDefault(), navigator.clipboard.readText().then((U) => {
4116
4116
  U = U.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, U);
4117
4117
  }).catch((U) => {
4118
4118
  });
4119
4119
  };
4120
- if (!(l && d) && !u || !(l && d) && C)
4120
+ if (!(o && d) && !u || !(o && d) && C)
4121
4121
  return "";
4122
4122
  const G = {};
4123
4123
  return G.field = "input", x && (G.className = x), /* @__PURE__ */ n.jsxs("dl", { ...G, children: [
@@ -4126,11 +4126,11 @@ function Lt({
4126
4126
  "dd",
4127
4127
  {
4128
4128
  onInput: T,
4129
- onPaste: R,
4130
- onBlur: y,
4131
- onKeyDown: S,
4132
- onFocus: b,
4133
- contentEditable: l && d ? "plaintext-only" : "false",
4129
+ onPaste: E,
4130
+ onBlur: w,
4131
+ onKeyDown: b,
4132
+ onFocus: S,
4133
+ contentEditable: o && d ? "plaintext-only" : "false",
4134
4134
  suppressContentEditableWarning: !0,
4135
4135
  "e-after": _,
4136
4136
  children: H.Money(e)
@@ -4146,8 +4146,8 @@ function On({
4146
4146
  view: r,
4147
4147
  error: s,
4148
4148
  edit: i = !0,
4149
- active: o = !0,
4150
- title: l,
4149
+ active: l = !0,
4150
+ title: o,
4151
4151
  placeholder: d = "",
4152
4152
  className: _,
4153
4153
  after: u
@@ -4159,15 +4159,15 @@ function On({
4159
4159
  let m = (x) => {
4160
4160
  f(x), t && t({ value: x, name: a });
4161
4161
  }, k = (x) => {
4162
- if (!i || !o)
4162
+ if (!i || !l)
4163
4163
  return;
4164
- const C = x.target.getBoundingClientRect(), w = C.left, I = C.top;
4164
+ const C = x.target.getBoundingClientRect(), j = C.left, I = C.top;
4165
4165
  Te.setListener(
4166
4166
  "form",
4167
4167
  /* @__PURE__ */ n.jsx(
4168
- pl,
4168
+ po,
4169
4169
  {
4170
- position: { x: w, y: I },
4170
+ position: { x: j, y: I },
4171
4171
  onValue: m,
4172
4172
  date: g
4173
4173
  },
@@ -4177,7 +4177,7 @@ function On({
4177
4177
  };
4178
4178
  const h = {};
4179
4179
  return d && (h.placeholder = d), r === "icon" ? /* @__PURE__ */ n.jsx("i", { "data-icon": "F043", onClick: k }) : /* @__PURE__ */ n.jsxs("dl", { children: [
4180
- l && /* @__PURE__ */ n.jsx("dt", { children: l }),
4180
+ o && /* @__PURE__ */ n.jsx("dt", { children: o }),
4181
4181
  /* @__PURE__ */ n.jsx(
4182
4182
  "dd",
4183
4183
  {
@@ -4189,22 +4189,22 @@ function On({
4189
4189
  s && /* @__PURE__ */ n.jsx("em", { children: s })
4190
4190
  ] });
4191
4191
  }
4192
- const pl = (e) => {
4192
+ const po = (e) => {
4193
4193
  let [t, a] = p.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
4194
4194
  y: parseInt(r.getFullYear()),
4195
4195
  m: parseInt(r.getMonth()) + 1
4196
- }, o = {
4196
+ }, l = {
4197
4197
  y: parseInt(s.getFullYear()),
4198
4198
  m: parseInt(s.getMonth()) + 1
4199
- }, [l, d] = p.useState(o.y), _ = () => {
4199
+ }, [o, d] = p.useState(l.y), _ = () => {
4200
4200
  a(!1);
4201
4201
  }, u = () => {
4202
- d(l + 1);
4202
+ d(o + 1);
4203
4203
  }, g = () => {
4204
- d(l - 1);
4204
+ d(o - 1);
4205
4205
  }, f = (C) => {
4206
- e.onValue(l + "-" + H.Number(2, C)), _();
4207
- }, m = (C) => i.y === o.y && i.m === C ? "_FFEB3B" : "", k = Array(12).fill("").map((C, w) => w + 1), h = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, x = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
4206
+ e.onValue(o + "-" + H.Number(2, C)), _();
4207
+ }, m = (C) => i.y === l.y && i.m === C ? "_FFEB3B" : "", k = Array(12).fill("").map((C, j) => j + 1), h = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, x = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
4208
4208
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4209
4209
  /* @__PURE__ */ n.jsx(
4210
4210
  "div",
@@ -4232,7 +4232,7 @@ const pl = (e) => {
4232
4232
  children: /* @__PURE__ */ n.jsx("path", { d: "m15.09 4.594-7.646 6.553a1.126 1.126 0 0 0 0 1.708l7.647 6.552c.73.625 1.857.107 1.857-.854V5.447c0-.961-1.127-1.48-1.857-.853Z" })
4233
4233
  }
4234
4234
  ) }),
4235
- /* @__PURE__ */ n.jsx("h2", { children: l }),
4235
+ /* @__PURE__ */ n.jsx("h2", { children: o }),
4236
4236
  /* @__PURE__ */ n.jsx("i", { onClick: u, children: /* @__PURE__ */ n.jsx(
4237
4237
  "svg",
4238
4238
  {
@@ -4245,7 +4245,7 @@ const pl = (e) => {
4245
4245
  }
4246
4246
  ) })
4247
4247
  ] }),
4248
- /* @__PURE__ */ n.jsx("div", { "grid-month": "", children: k.map((C, w) => /* @__PURE__ */ n.jsx(
4248
+ /* @__PURE__ */ n.jsx("div", { "grid-month": "", children: k.map((C, j) => /* @__PURE__ */ n.jsx(
4249
4249
  "span",
4250
4250
  {
4251
4251
  onClick: () => {
@@ -4254,7 +4254,7 @@ const pl = (e) => {
4254
4254
  color: m(C),
4255
4255
  children: /* @__PURE__ */ n.jsx("b", { children: H.Month(C).abc })
4256
4256
  },
4257
- w
4257
+ j
4258
4258
  )) })
4259
4259
  ]
4260
4260
  }
@@ -4262,7 +4262,7 @@ const pl = (e) => {
4262
4262
  ] }) : "" });
4263
4263
  };
4264
4264
  function An(e) {
4265
- let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", [r, s] = p.useState(!1), i = e.edit !== void 0 ? e.edit : !0, o = e.active !== void 0 ? e.active : !0, d = !!(e.hide && (e.value === "" || e.value === void 0)) && !(i && o);
4265
+ let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", [r, s] = p.useState(!1), i = e.edit !== void 0 ? e.edit : !0, l = e.active !== void 0 ? e.active : !0, d = !!(e.hide && (e.value === "" || e.value === void 0)) && !(i && l);
4266
4266
  r = i ? !0 : r;
4267
4267
  let _ = e.placeholder !== void 0 ? e.placeholder : "", u = (x) => {
4268
4268
  e.onValue && e.onValue({ value: x.target.innerText, name: e.name });
@@ -4279,7 +4279,7 @@ function An(e) {
4279
4279
  }, k = {};
4280
4280
  k.field = "notes", e.className && (k.className = e.className);
4281
4281
  const h = {};
4282
- return _ && (h.placeholder = _), r && (h.open = ""), i && o && (h.edit = ""), d ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...k, children: [
4282
+ return _ && (h.placeholder = _), r && (h.open = ""), i && l && (h.edit = ""), d ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...k, children: [
4283
4283
  t(),
4284
4284
  /* @__PURE__ */ n.jsx(
4285
4285
  "dd",
@@ -4287,7 +4287,7 @@ function An(e) {
4287
4287
  onPaste: g,
4288
4288
  onInput: u,
4289
4289
  onBlur: m,
4290
- contentEditable: i && o ? "plaintext-only" : "false",
4290
+ contentEditable: i && l ? "plaintext-only" : "false",
4291
4291
  ...h,
4292
4292
  onDoubleClick: f,
4293
4293
  suppressContentEditableWarning: !0,
@@ -4304,8 +4304,8 @@ function Ft({
4304
4304
  max: r,
4305
4305
  edit: s,
4306
4306
  title: i,
4307
- error: o,
4308
- show: l,
4307
+ error: l,
4308
+ show: o,
4309
4309
  hide: d,
4310
4310
  value: _,
4311
4311
  placeholder: u,
@@ -4315,19 +4315,19 @@ function Ft({
4315
4315
  view: k
4316
4316
  }) {
4317
4317
  s = s !== void 0 ? s : !0, a = a !== void 0 ? a : !0, d = !!(d && (_ === "" || _ === void 0)) && !(s && a), u = u !== void 0 ? u : "", r = r !== void 0 ? r : 99;
4318
- let x = !1, C = (R) => {
4319
- e == null || e({ value: R.target.textContent, name: f });
4320
- }, w = (R) => {
4321
- if (!(x && R.which === 86)) {
4322
- if (R.which === 17 || R.which === 91)
4318
+ let x = !1, C = (E) => {
4319
+ e == null || e({ value: E.target.textContent, name: f });
4320
+ }, j = (E) => {
4321
+ if (!(x && E.which === 86)) {
4322
+ if (E.which === 17 || E.which === 91)
4323
4323
  return x = !0;
4324
- R.key !== "Backspace" && (R.target.textContent.length === r && R.preventDefault(), R.key === "Enter" && R.preventDefault(), isNaN(parseInt(String.fromCharCode(R.which))) && R.preventDefault());
4324
+ E.key !== "Backspace" && (E.target.textContent.length === r && E.preventDefault(), E.key === "Enter" && E.preventDefault(), isNaN(parseInt(String.fromCharCode(E.which))) && E.preventDefault());
4325
4325
  }
4326
- }, I = (R) => {
4327
- if (R.which === 17 || R.which === 91)
4326
+ }, I = (E) => {
4327
+ if (E.which === 17 || E.which === 91)
4328
4328
  return x = !1;
4329
- }, T = (R) => {
4330
- R.preventDefault(), navigator.clipboard.readText().then((G) => {
4329
+ }, T = (E) => {
4330
+ E.preventDefault(), navigator.clipboard.readText().then((G) => {
4331
4331
  G = G.replace(/\D/g, ""), window.document.execCommand(
4332
4332
  "insertText",
4333
4333
  !1,
@@ -4336,27 +4336,27 @@ function Ft({
4336
4336
  }).catch((G) => {
4337
4337
  });
4338
4338
  };
4339
- const y = (R) => {
4340
- de.Blur(R), t == null || t({ value: R.target.textContent, name: f });
4341
- }, b = {};
4342
- b.field = "input", g && (b.className = g);
4343
- let S = {};
4344
- return s && a ? (S.edit = "true", S.contentEditable = "plaintext-only") : S.contentEditable = "false", u && (S.placeholder = u), m && (S.after = m), d ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...b, children: [
4339
+ const w = (E) => {
4340
+ de.Blur(E), t == null || t({ value: E.target.textContent, name: f });
4341
+ }, S = {};
4342
+ S.field = "input", g && (S.className = g);
4343
+ let b = {};
4344
+ return s && a ? (b.edit = "true", b.contentEditable = "plaintext-only") : b.contentEditable = "false", u && (b.placeholder = u), m && (b.after = m), d ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
4345
4345
  i && /* @__PURE__ */ n.jsx("dt", { children: i }),
4346
4346
  /* @__PURE__ */ n.jsx(
4347
4347
  "dd",
4348
4348
  {
4349
- ...S,
4349
+ ...b,
4350
4350
  onPaste: T,
4351
4351
  onInput: C,
4352
- onBlur: y,
4353
- onKeyDown: w,
4352
+ onBlur: w,
4353
+ onKeyDown: j,
4354
4354
  onKeyUp: I,
4355
4355
  suppressContentEditableWarning: !0,
4356
4356
  children: _
4357
4357
  }
4358
4358
  ),
4359
- o && /* @__PURE__ */ n.jsx("em", { children: o })
4359
+ l && /* @__PURE__ */ n.jsx("em", { children: l })
4360
4360
  ] });
4361
4361
  }
4362
4362
  function Gn({
@@ -4366,8 +4366,8 @@ function Gn({
4366
4366
  placeholder: r = "",
4367
4367
  className: s,
4368
4368
  title: i,
4369
- error: o,
4370
- edit: l = !0,
4369
+ error: l,
4370
+ edit: o = !0,
4371
4371
  active: d = !0,
4372
4372
  reload: _ = !1,
4373
4373
  native: u = !1,
@@ -4382,13 +4382,13 @@ function Gn({
4382
4382
  }, m = (C) => {
4383
4383
  C.key === "Enter" && C.preventDefault();
4384
4384
  }, k = (C) => {
4385
- C.preventDefault(), navigator.clipboard.readText().then((w) => {
4385
+ C.preventDefault(), navigator.clipboard.readText().then((j) => {
4386
4386
  window.document.execCommand(
4387
4387
  "insertText",
4388
4388
  !1,
4389
- w.replace(/(\r\n|\n|\r)/gm, " ")
4389
+ j.replace(/(\r\n|\n|\r)/gm, " ")
4390
4390
  );
4391
- }).catch((w) => {
4391
+ }).catch((j) => {
4392
4392
  });
4393
4393
  };
4394
4394
  const h = {};
@@ -4403,13 +4403,13 @@ function Gn({
4403
4403
  onInput: f,
4404
4404
  onKeyDown: m,
4405
4405
  onBlur: de.Blur,
4406
- contentEditable: l && d ? "plaintext-only" : "false",
4406
+ contentEditable: o && d ? "plaintext-only" : "false",
4407
4407
  ...x,
4408
4408
  suppressContentEditableWarning: !0,
4409
4409
  children: e
4410
4410
  }
4411
4411
  ),
4412
- o ? /* @__PURE__ */ n.jsx("em", { children: o }) : ""
4412
+ l ? /* @__PURE__ */ n.jsx("em", { children: l }) : ""
4413
4413
  ] });
4414
4414
  }
4415
4415
  const De = {
@@ -5801,8 +5801,8 @@ function Bt({
5801
5801
  name: r,
5802
5802
  placeholder: s = "",
5803
5803
  title: i = "",
5804
- error: o = "",
5805
- hide: l = !1,
5804
+ error: l = "",
5805
+ hide: o = !1,
5806
5806
  edit: d = !0,
5807
5807
  active: _ = !0,
5808
5808
  after: u = "",
@@ -5810,8 +5810,8 @@ function Bt({
5810
5810
  view: f,
5811
5811
  className: m = ""
5812
5812
  }) {
5813
- d = d !== void 0 ? d : !0, _ = _ !== void 0 ? _ : !0, l = !!(l && (e === "" || e === void 0)) && !(d && _), p.useRef(null);
5814
- let h = "+_(___) ___-__-__", x = !0, C = 0, w = (O, N) => {
5813
+ d = d !== void 0 ? d : !0, _ = _ !== void 0 ? _ : !0, o = !!(o && (e === "" || e === void 0)) && !(d && _), p.useRef(null);
5814
+ let h = "+_(___) ___-__-__", x = !0, C = 0, j = (O, N) => {
5815
5815
  let F = document.createRange(), z = window.getSelection();
5816
5816
  F.setStart(N.childNodes[0], O), F.collapse(!0), z.removeAllRanges(), z.addRange(F), N.focus();
5817
5817
  }, I = (O) => {
@@ -5822,21 +5822,21 @@ function Bt({
5822
5822
  }, T = (O) => {
5823
5823
  let N = 0, F = "", z = O.replace(/\D/g, "");
5824
5824
  z === "" && (x = !0);
5825
- let ee = z.split(""), re = "";
5825
+ let ee = z.split(""), ae = "";
5826
5826
  ee.forEach((Le) => {
5827
- x && (re += Le, De[re] !== void 0 && x ? (x = !1, h = De[re].mask.replace(new RegExp("[0-9]", "g"), "_"), F = De[re].code) : (x && (C = ("" + re).length, h = `+${re}_(___) ___-__-__`.replace(
5827
+ x && (ae += Le, De[ae] !== void 0 && x ? (x = !1, h = De[ae].mask.replace(new RegExp("[0-9]", "g"), "_"), F = De[ae].code) : (x && (C = ("" + ae).length, h = `+${ae}_(___) ___-__-__`.replace(
5828
5828
  new RegExp("[0-9]", "g"),
5829
5829
  "_"
5830
- ), F = ""), C > ("" + re).length && (x = !0, h = `+${re}_(___) ___-__-__`.replace(
5830
+ ), F = ""), C > ("" + ae).length && (x = !0, h = `+${ae}_(___) ___-__-__`.replace(
5831
5831
  new RegExp("[0-9]", "g"),
5832
5832
  "_"
5833
5833
  ), F = "")));
5834
5834
  });
5835
- let te = h.replace(/\D/g, "");
5836
- return te.length >= z.length && (z = te), { q: h.replace(/[_\d]/g, function() {
5835
+ let ie = h.replace(/\D/g, "");
5836
+ return ie.length >= z.length && (z = ie), { q: h.replace(/[_\d]/g, function() {
5837
5837
  return z.charAt(N++) || "_";
5838
5838
  }), i: N, v: z, f: F };
5839
- }, y = (O) => {
5839
+ }, w = (O) => {
5840
5840
  O.preventDefault(), navigator.clipboard.writeText(O.target.textContent.replace(/\D/g, "")).then(
5841
5841
  function() {
5842
5842
  Ne.Copy("Данные в буфер обмене");
@@ -5844,10 +5844,10 @@ function Bt({
5844
5844
  function(N) {
5845
5845
  }
5846
5846
  );
5847
- }, b = T(e), S = (O) => {
5847
+ }, S = T(e), b = (O) => {
5848
5848
  let N = T(O.target.textContent);
5849
- O.target.textContent = N.q, N.i = N.q.lastIndexOf(N.v.substr(-1)), N.i < N.q.length && N.q !== h ? N.i++ : N.i = N.q.indexOf("_"), w(N.i, O.target), t && t({ value: N.q.replace(/\D/g, ""), name: r });
5850
- }, R = (O) => {
5849
+ O.target.textContent = N.q, N.i = N.q.lastIndexOf(N.v.substr(-1)), N.i < N.q.length && N.q !== h ? N.i++ : N.i = N.q.indexOf("_"), j(N.i, O.target), t && t({ value: N.q.replace(/\D/g, ""), name: r });
5850
+ }, E = (O) => {
5851
5851
  O.key === "Enter" && O.preventDefault();
5852
5852
  };
5853
5853
  const G = (O) => {
@@ -5858,29 +5858,29 @@ function Bt({
5858
5858
  }, M = {};
5859
5859
  M.field = "input", m && (M.className = m);
5860
5860
  let U = {};
5861
- return d && _ ? (U.edit = "true", U.contentEditable = "plaintext-only") : U.contentEditable = "false", s && (U.placeholder = s), u && (U.after = u), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...M, children: [
5861
+ return d && _ ? (U.edit = "true", U.contentEditable = "plaintext-only") : U.contentEditable = "false", s && (U.placeholder = s), u && (U.after = u), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...M, children: [
5862
5862
  i && /* @__PURE__ */ n.jsx("dt", { children: i }),
5863
5863
  /* @__PURE__ */ n.jsx(
5864
5864
  "dd",
5865
5865
  {
5866
5866
  ...U,
5867
5867
  onPaste: I,
5868
- onInput: S,
5869
- onKeyDown: R,
5870
- onContextMenu: y,
5868
+ onInput: b,
5869
+ onKeyDown: E,
5870
+ onContextMenu: w,
5871
5871
  onBlur: G,
5872
5872
  suppressContentEditableWarning: !0,
5873
- children: b.q
5873
+ children: S.q
5874
5874
  }
5875
5875
  ),
5876
- o && /* @__PURE__ */ n.jsx("em", { children: o })
5876
+ l && /* @__PURE__ */ n.jsx("em", { children: l })
5877
5877
  ] });
5878
5878
  }
5879
5879
  const Zn = (e) => {
5880
- 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 = () => {
5880
+ 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, l = () => {
5881
5881
  clearTimeout(i), i = setTimeout(() => {
5882
5882
  }, 1e3);
5883
- }, l = (u) => {
5883
+ }, o = (u) => {
5884
5884
  u.key === "Enter" && u.preventDefault();
5885
5885
  }, d = (u) => {
5886
5886
  u.preventDefault(), navigator.clipboard.readText().then((g) => {
@@ -5899,8 +5899,8 @@ const Zn = (e) => {
5899
5899
  "dd",
5900
5900
  {
5901
5901
  onPaste: d,
5902
- onInput: o,
5903
- onKeyDown: l,
5902
+ onInput: l,
5903
+ onKeyDown: o,
5904
5904
  contentEditable: a && r ? "plaintext-only" : "false",
5905
5905
  ..._,
5906
5906
  suppressContentEditableWarning: !0,
@@ -5918,8 +5918,8 @@ function $t({
5918
5918
  active: r = !0,
5919
5919
  hide: s,
5920
5920
  value: i = "0",
5921
- onValue: o,
5922
- options: l,
5921
+ onValue: l,
5922
+ options: o,
5923
5923
  placeholder: d = "",
5924
5924
  className: _,
5925
5925
  name: u,
@@ -5927,37 +5927,39 @@ function $t({
5927
5927
  view: f,
5928
5928
  order: m
5929
5929
  }) {
5930
+ var w, S;
5930
5931
  const k = p.useRef();
5931
- s = !!(s && (i === "" || l[i].n === void 0)) && !(a && r);
5932
- let x = i !== void 0 && i !== "" ? l[i].n : i, C = (y) => {
5933
- k.current.textContent = l[y].n, o && o({ value: y, name: u });
5934
- }, w = (y) => {
5932
+ s = !!(s && (i === "" || ((w = o[i]) == null ? void 0 : w.n) === void 0)) && !(a && r);
5933
+ let x = i !== void 0 && i !== "" ? (S = o[i]) == null ? void 0 : S.n : i, C = (b) => {
5934
+ var E;
5935
+ k.current.textContent = (E = o[b]) == null ? void 0 : E.n, l && l({ value: b, name: u });
5936
+ }, j = (b) => {
5935
5937
  if (!(a && r))
5936
5938
  return;
5937
- const b = y.target.getBoundingClientRect();
5939
+ const E = b.target.getBoundingClientRect();
5938
5940
  Te.setListener(
5939
5941
  "form",
5940
5942
  /* @__PURE__ */ n.jsx(
5941
- vl,
5943
+ vo,
5942
5944
  {
5943
- parent: b,
5945
+ parent: E,
5944
5946
  onValue: C,
5945
5947
  view: f,
5946
5948
  className: _,
5947
- options: l,
5949
+ options: o,
5948
5950
  order: m
5949
5951
  },
5950
5952
  (/* @__PURE__ */ new Date()).getTime()
5951
5953
  )
5952
5954
  );
5953
- }, I = { field: "select", className: _ }, T = { onClick: w };
5955
+ }, I = { field: "select", className: _ }, T = { onClick: j };
5954
5956
  return d && (T.placeholder = d), g && (T.after = g), a && r && (T.edit = ""), s ? "" : /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
5955
5957
  e && /* @__PURE__ */ n.jsx("dt", { children: e }),
5956
5958
  /* @__PURE__ */ n.jsx("dd", { ...T, ref: k, children: x }),
5957
5959
  t && /* @__PURE__ */ n.jsx("em", { children: t })
5958
5960
  ] });
5959
5961
  }
5960
- const vl = ({
5962
+ const vo = ({
5961
5963
  onValue: e,
5962
5964
  parent: t,
5963
5965
  view: a,
@@ -5965,12 +5967,12 @@ const vl = ({
5965
5967
  options: s,
5966
5968
  order: i
5967
5969
  }) => {
5968
- let [o, l] = p.useState(!0), d = () => {
5969
- l(!1);
5970
+ let [l, o] = p.useState(!0), d = () => {
5971
+ o(!1);
5970
5972
  }, _ = (f) => {
5971
- l(!1), e(f);
5973
+ o(!1), e(f);
5972
5974
  }, u = window.innerHeight - t.y + t.height < 320 ? t.y - 312 : t.y + 33, g = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
5973
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: o ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
5975
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: l ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
5974
5976
  /* @__PURE__ */ n.jsx(
5975
5977
  "div",
5976
5978
  {
@@ -5989,11 +5991,11 @@ const vl = ({
5989
5991
  left: g + "px",
5990
5992
  width: t.width
5991
5993
  },
5992
- children: /* @__PURE__ */ n.jsx(Cl, { order: i, options: s, link: _ })
5994
+ children: /* @__PURE__ */ n.jsx(Co, { order: i, options: s, link: _ })
5993
5995
  }
5994
5996
  )
5995
5997
  ] }) : "" });
5996
- }, Cl = ({ order: e, options: t, link: a }) => e ? /* @__PURE__ */ n.jsx("ul", { children: e.map(
5998
+ }, Co = ({ order: e, options: t, link: a }) => e ? /* @__PURE__ */ n.jsx("ul", { children: e.map(
5997
5999
  (r, s) => t[r].s === 1 ? /* @__PURE__ */ n.jsx(
5998
6000
  "li",
5999
6001
  {
@@ -6017,7 +6019,7 @@ const vl = ({
6017
6019
  ) : ""
6018
6020
  ) });
6019
6021
  function Pt(e) {
6020
- let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, o = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(r && s), l = e.placeholder !== void 0 ? e.placeholder : "", d = (m) => {
6022
+ let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, l = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(r && s), o = e.placeholder !== void 0 ? e.placeholder : "", d = (m) => {
6021
6023
  u(e.options[m]), e.onValue({ value: m, name: e.name });
6022
6024
  }, [_, u] = p.useState(
6023
6025
  e.default !== void 0 ? e.options[e.default] : e.default
@@ -6028,7 +6030,7 @@ function Pt(e) {
6028
6030
  Te.setListener(
6029
6031
  "form",
6030
6032
  /* @__PURE__ */ n.jsx(
6031
- kl,
6033
+ ko,
6032
6034
  {
6033
6035
  parent: k,
6034
6036
  onValue: d,
@@ -6040,7 +6042,7 @@ function Pt(e) {
6040
6042
  );
6041
6043
  };
6042
6044
  const f = {};
6043
- return l && (f.placeholder = l), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs(
6045
+ return o && (f.placeholder = o), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs(
6044
6046
  "dl",
6045
6047
  {
6046
6048
  "data-form": "select",
@@ -6060,10 +6062,10 @@ function Pt(e) {
6060
6062
  }
6061
6063
  );
6062
6064
  }
6063
- const kl = ({ onValue: e, parent: t, view: a, options: r }) => {
6064
- let [s, i] = p.useState(!0), o = () => {
6065
+ const ko = ({ onValue: e, parent: t, view: a, options: r }) => {
6066
+ let [s, i] = p.useState(!0), l = () => {
6065
6067
  i(!1);
6066
- }, l = (g) => {
6068
+ }, o = (g) => {
6067
6069
  i(!1), e(g);
6068
6070
  }, d = Object.keys(r).length * 36, _ = window.innerHeight - t.y + t.height < d ? t.y - (d - 33) : t.y + 33, u = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
6069
6071
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: s ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
@@ -6071,7 +6073,7 @@ const kl = ({ onValue: e, parent: t, view: a, options: r }) => {
6071
6073
  "div",
6072
6074
  {
6073
6075
  "data-select": "backdrop",
6074
- onClick: o
6076
+ onClick: l
6075
6077
  },
6076
6078
  (/* @__PURE__ */ new Date()).getTime()
6077
6079
  ),
@@ -6088,7 +6090,7 @@ const kl = ({ onValue: e, parent: t, view: a, options: r }) => {
6088
6090
  "li",
6089
6091
  {
6090
6092
  onClick: () => {
6091
- l(g);
6093
+ o(g);
6092
6094
  },
6093
6095
  children: r[g]
6094
6096
  },
@@ -6105,8 +6107,8 @@ function Et({
6105
6107
  name: r,
6106
6108
  placeholder: s = "",
6107
6109
  title: i = "",
6108
- error: o = "",
6109
- hide: l = !1,
6110
+ error: l = "",
6111
+ hide: o = !1,
6110
6112
  edit: d = !0,
6111
6113
  show: _ = !0,
6112
6114
  active: u = !0,
@@ -6124,7 +6126,7 @@ function Et({
6124
6126
  {
6125
6127
  title: i,
6126
6128
  show: _,
6127
- hide: l,
6129
+ hide: o,
6128
6130
  view: f,
6129
6131
  edit: d,
6130
6132
  active: u,
@@ -6136,12 +6138,12 @@ function Et({
6136
6138
  }
6137
6139
  );
6138
6140
  case "Select":
6139
- return k && (x = le.getSelect(parseInt(k)) ? le.getSelect(parseInt(k)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
6141
+ return k && (x = oe.getSelect(parseInt(k)) ? oe.getSelect(parseInt(k)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
6140
6142
  $t,
6141
6143
  {
6142
6144
  title: i,
6143
6145
  show: _,
6144
- hide: l,
6146
+ hide: o,
6145
6147
  view: f,
6146
6148
  edit: d,
6147
6149
  active: u,
@@ -6154,12 +6156,12 @@ function Et({
6154
6156
  }
6155
6157
  );
6156
6158
  case "Users":
6157
- return le.getSelect("user"), /* @__PURE__ */ n.jsx(
6159
+ return oe.getSelect("user"), /* @__PURE__ */ n.jsx(
6158
6160
  Pt,
6159
6161
  {
6160
6162
  title: i,
6161
6163
  show: _,
6162
- hide: l,
6164
+ hide: o,
6163
6165
  view: f,
6164
6166
  edit: d,
6165
6167
  active: u,
@@ -6177,7 +6179,7 @@ function Et({
6177
6179
  {
6178
6180
  title: i,
6179
6181
  show: _,
6180
- hide: l,
6182
+ hide: o,
6181
6183
  view: f,
6182
6184
  edit: d,
6183
6185
  active: u,
@@ -6194,7 +6196,7 @@ function Et({
6194
6196
  {
6195
6197
  title: i,
6196
6198
  show: _,
6197
- hide: l,
6199
+ hide: o,
6198
6200
  view: f,
6199
6201
  edit: d,
6200
6202
  active: u,
@@ -6211,7 +6213,7 @@ function Et({
6211
6213
  {
6212
6214
  title: i,
6213
6215
  show: _,
6214
- hide: l,
6216
+ hide: o,
6215
6217
  view: f,
6216
6218
  edit: d,
6217
6219
  active: u,
@@ -6228,7 +6230,7 @@ function Et({
6228
6230
  {
6229
6231
  title: i,
6230
6232
  show: _,
6231
- hide: l,
6233
+ hide: o,
6232
6234
  view: f,
6233
6235
  edit: d,
6234
6236
  active: u,
@@ -6245,7 +6247,7 @@ function Et({
6245
6247
  {
6246
6248
  title: i,
6247
6249
  show: _,
6248
- hide: l,
6250
+ hide: o,
6249
6251
  view: f,
6250
6252
  edit: d,
6251
6253
  active: u,
@@ -6267,8 +6269,8 @@ function Un({
6267
6269
  placeholder: r = "",
6268
6270
  title: s = "",
6269
6271
  error: i = "",
6270
- hide: o = !1,
6271
- edit: l = !0,
6272
+ hide: l = !1,
6273
+ edit: o = !0,
6272
6274
  active: d = !0,
6273
6275
  after: _ = "",
6274
6276
  show: u = !0,
@@ -6277,17 +6279,17 @@ function Un({
6277
6279
  onSave: m,
6278
6280
  className: k = ""
6279
6281
  }) {
6280
- let h = !!(o && (e === "" || e === void 0));
6281
- if (!(l && d) && !u || !(l && d) && h)
6282
+ let h = !!(l && (e === "" || e === void 0));
6283
+ if (!(o && d) && !u || !(o && d) && h)
6282
6284
  return "";
6283
- let x = (y) => {
6284
- t && t({ value: y.target.innerText, name: a });
6285
- }, C = (y) => {
6286
- m && m({ value: y.target.innerText, name: a });
6287
- }, w = (y) => {
6288
- y.preventDefault(), navigator.clipboard.readText().then((b) => {
6289
- window.document.execCommand("insertText", !1, b);
6290
- }).catch((b) => {
6285
+ let x = (w) => {
6286
+ t && t({ value: w.target.innerText, name: a });
6287
+ }, C = (w) => {
6288
+ m && m({ value: w.target.innerText, name: a });
6289
+ }, j = (w) => {
6290
+ w.preventDefault(), navigator.clipboard.readText().then((S) => {
6291
+ window.document.execCommand("insertText", !1, S);
6292
+ }).catch((S) => {
6291
6293
  });
6292
6294
  };
6293
6295
  const I = {};
@@ -6298,10 +6300,10 @@ function Un({
6298
6300
  /* @__PURE__ */ n.jsx(
6299
6301
  "dd",
6300
6302
  {
6301
- onPaste: w,
6303
+ onPaste: j,
6302
6304
  onBlur: C,
6303
6305
  onInput: x,
6304
- contentEditable: l && d ? "plaintext-only" : "false",
6306
+ contentEditable: o && d ? "plaintext-only" : "false",
6305
6307
  ...T,
6306
6308
  suppressContentEditableWarning: !0,
6307
6309
  children: e
@@ -6317,8 +6319,8 @@ function zn({
6317
6319
  placeholder: r = "",
6318
6320
  title: s = "",
6319
6321
  error: i = "",
6320
- hide: o = !1,
6321
- edit: l = !0,
6322
+ hide: l = !1,
6323
+ edit: o = !0,
6322
6324
  active: d = !0,
6323
6325
  after: _ = "",
6324
6326
  show: u = !0,
@@ -6327,49 +6329,49 @@ function zn({
6327
6329
  onSave: m,
6328
6330
  className: k = ""
6329
6331
  }) {
6330
- let h = !!(o && (e === "" || e === void 0)), x = H.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), C = p.useRef(null);
6331
- if (!(l && d) && !u || !(l && d) && h)
6332
+ let h = !!(l && (e === "" || e === void 0)), x = H.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), C = p.useRef(null);
6333
+ if (!(o && d) && !u || !(o && d) && h)
6332
6334
  return "";
6333
- let w = (S) => {
6334
- C.current.textContent = S, t && t({ value: S, name: a });
6335
- }, I = (S) => {
6336
- m && m({ value: S, name: a });
6337
- }, T = (S) => {
6338
- const R = S.target.getBoundingClientRect(), G = R.left, M = R.top;
6335
+ let j = (b) => {
6336
+ C.current.textContent = b, t && t({ value: b, name: a });
6337
+ }, I = (b) => {
6338
+ m && m({ value: b, name: a });
6339
+ }, T = (b) => {
6340
+ const E = b.target.getBoundingClientRect(), G = E.left, M = E.top;
6339
6341
  Te.setListener(
6340
6342
  "form",
6341
6343
  /* @__PURE__ */ n.jsx(
6342
- yl,
6344
+ yo,
6343
6345
  {
6344
6346
  positions: { x: G, y: M },
6345
6347
  onSave: I,
6346
- onValue: w,
6348
+ onValue: j,
6347
6349
  date: x
6348
6350
  },
6349
6351
  (/* @__PURE__ */ new Date()).getTime()
6350
6352
  )
6351
6353
  );
6352
6354
  };
6353
- const y = {};
6354
- y.field = "input", k && (y.className = k);
6355
- const b = {};
6356
- return r && (b.placeholder = r), /* @__PURE__ */ n.jsx(n.Fragment, { children: g === "icon" ? /* @__PURE__ */ n.jsx(
6355
+ const w = {};
6356
+ w.field = "input", k && (w.className = k);
6357
+ const S = {};
6358
+ return r && (S.placeholder = r), /* @__PURE__ */ n.jsx(n.Fragment, { children: g === "icon" ? /* @__PURE__ */ n.jsx(
6357
6359
  "i",
6358
6360
  {
6359
6361
  "data-icon": "F043",
6360
6362
  onClick: T
6361
6363
  }
6362
- ) : /* @__PURE__ */ n.jsxs("dl", { ...y, children: [
6364
+ ) : /* @__PURE__ */ n.jsxs("dl", { ...w, children: [
6363
6365
  s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
6364
- /* @__PURE__ */ n.jsx("dd", { onClick: T, ref: C, ...b, children: x }),
6366
+ /* @__PURE__ */ n.jsx("dd", { onClick: T, ref: C, ...S, children: x }),
6365
6367
  i ? /* @__PURE__ */ n.jsx("em", { children: i }) : ""
6366
6368
  ] }) });
6367
6369
  }
6368
- const yl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6370
+ const yo = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6369
6371
  let s = r.split(":"), i = {
6370
6372
  h: H.Number(2, s[0]),
6371
6373
  m: H.Number(2, s[1])
6372
- }, o = "hour", [l, d] = p.useState({}), _ = !1, u = 0, g = 0, f = {
6374
+ }, l = "hour", [o, d] = p.useState({}), _ = !1, u = 0, g = 0, f = {
6373
6375
  body: p.useRef(null),
6374
6376
  time: p.useRef(null),
6375
6377
  hour: p.useRef(null),
@@ -6382,61 +6384,61 @@ const yl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6382
6384
  let m = () => {
6383
6385
  _ = !0;
6384
6386
  }, k = () => {
6385
- _ = !1, o = o === "hour" ? "time" : "hour", f.body.current.setAttribute("active", o);
6386
- }, h = (b) => {
6387
+ _ = !1, l = l === "hour" ? "time" : "hour", f.body.current.setAttribute("active", l);
6388
+ }, h = (S) => {
6387
6389
  if (_) {
6388
- let R = Math.atan2(
6389
- b.pageX - (l.x + 78),
6390
- b.pageY - (l.y + 78)
6390
+ let E = Math.atan2(
6391
+ S.pageX - (o.x + 78),
6392
+ S.pageY - (o.y + 78)
6391
6393
  ) * (180 / Math.PI) * -1 + 180;
6392
- f[o].current.style.transform = "rotate(" + R + "deg)", o === "hour" ? (i = {
6394
+ f[l].current.style.transform = "rotate(" + E + "deg)", l === "hour" ? (i = {
6393
6395
  ...i,
6394
- h: H.Number(2, parseInt(String(R / 15), 10))
6396
+ h: H.Number(2, parseInt(String(E / 15), 10))
6395
6397
  }, f.hourText.current.textContent = i.h) : (i = {
6396
6398
  ...i,
6397
- m: H.Number(2, parseInt(String(R / 6), 10))
6399
+ m: H.Number(2, parseInt(String(E / 6), 10))
6398
6400
  }, f.timeText.current.textContent = i.m), a(i.h + ":" + i.m);
6399
6401
  }
6400
- }, x = (b) => {
6401
- if (o === "hour")
6402
- if (b.deltaY > 0) {
6403
- u += b.deltaY;
6404
- let S = parseInt(String(u / 50));
6405
- if (g !== S) {
6406
- g = S;
6407
- let R = parseInt(i.h, 10) + 1;
6408
- R = R > 23 ? 0 : R, i = { ...i, h: H.Number(2, R) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6402
+ }, x = (S) => {
6403
+ if (l === "hour")
6404
+ if (S.deltaY > 0) {
6405
+ u += S.deltaY;
6406
+ let b = parseInt(String(u / 50));
6407
+ if (g !== b) {
6408
+ g = b;
6409
+ let E = parseInt(i.h, 10) + 1;
6410
+ E = E > 23 ? 0 : E, i = { ...i, h: H.Number(2, E) }, f.hourText.current.textContent = i.h, f[l].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6409
6411
  }
6410
6412
  } else {
6411
- u -= b.deltaY;
6412
- let S = parseInt(String(u / 50));
6413
- if (g !== S) {
6414
- g = S;
6415
- let R = parseInt(i.h, 10) - 1;
6416
- R = R < 0 ? 23 : R, i = { ...i, h: H.Number(2, R) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6413
+ u -= S.deltaY;
6414
+ let b = parseInt(String(u / 50));
6415
+ if (g !== b) {
6416
+ g = b;
6417
+ let E = parseInt(i.h, 10) - 1;
6418
+ E = E < 0 ? 23 : E, i = { ...i, h: H.Number(2, E) }, f.hourText.current.textContent = i.h, f[l].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6417
6419
  }
6418
6420
  }
6419
- else if (b.deltaY > 0) {
6420
- u += b.deltaY;
6421
- let S = parseInt(String(u / 50));
6422
- if (g !== S) {
6423
- g = S;
6424
- let R = parseInt(i.m, 10) + 1;
6425
- R = R > 59 ? 0 : R, i = { ...i, m: H.Number(2, R) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6421
+ else if (S.deltaY > 0) {
6422
+ u += S.deltaY;
6423
+ let b = parseInt(String(u / 50));
6424
+ if (g !== b) {
6425
+ g = b;
6426
+ let E = parseInt(i.m, 10) + 1;
6427
+ E = E > 59 ? 0 : E, i = { ...i, m: H.Number(2, E) }, f.timeText.current.textContent = i.m, f[l].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6426
6428
  }
6427
6429
  } else {
6428
- u -= b.deltaY;
6429
- let S = parseInt(String(u / 50));
6430
- if (g !== S) {
6431
- g = S;
6432
- let R = parseInt(i.m, 10) - 1;
6433
- R = R < 0 ? 59 : R, i = { ...i, m: H.Number(2, R) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6430
+ u -= S.deltaY;
6431
+ let b = parseInt(String(u / 50));
6432
+ if (g !== b) {
6433
+ g = b;
6434
+ let E = parseInt(i.m, 10) - 1;
6435
+ E = E < 0 ? 59 : E, i = { ...i, m: H.Number(2, E) }, f.timeText.current.textContent = i.m, f[l].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6434
6436
  }
6435
6437
  }
6436
6438
  a(i.h + ":" + i.m);
6437
- }, [C, w] = p.useState(!0), I = () => {
6438
- w(!1), t(i.h + ":" + i.m);
6439
- }, T = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, y = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
6439
+ }, [C, j] = p.useState(!0), I = () => {
6440
+ j(!1), t(i.h + ":" + i.m);
6441
+ }, T = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, w = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
6440
6442
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: C ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
6441
6443
  /* @__PURE__ */ n.jsx(
6442
6444
  "div",
@@ -6455,7 +6457,7 @@ const yl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6455
6457
  onMouseMove: h,
6456
6458
  onWheel: x,
6457
6459
  ref: f.body,
6458
- style: { top: T + "px", left: y + "px" },
6460
+ style: { top: T + "px", left: w + "px" },
6459
6461
  children: [
6460
6462
  /* @__PURE__ */ n.jsx("div", { className: "b" }),
6461
6463
  /* @__PURE__ */ n.jsxs("div", { className: "s", children: [
@@ -6479,8 +6481,8 @@ function Kn({
6479
6481
  title: r,
6480
6482
  className: s,
6481
6483
  name: i,
6482
- text: o,
6483
- id: l,
6484
+ text: l,
6485
+ id: o,
6484
6486
  reload: d
6485
6487
  }) {
6486
6488
  const [_, u] = p.useState(!!a), g = t || r;
@@ -6488,13 +6490,13 @@ function Kn({
6488
6490
  u(!!a);
6489
6491
  }, [a]);
6490
6492
  let f = () => {
6491
- e && e({ value: _ ? 0 : 1, name: i, id: l }), u(!_);
6493
+ e && e({ value: _ ? 0 : 1, name: i, id: o }), u(!_);
6492
6494
  };
6493
6495
  const m = {};
6494
6496
  return m.field = "check", s && (m.className = s), /* @__PURE__ */ n.jsxs("dl", { ...m, children: [
6495
6497
  g ? /* @__PURE__ */ n.jsx("dt", { children: g }) : "",
6496
6498
  /* @__PURE__ */ n.jsxs("dd", { onClick: f, children: [
6497
- /* @__PURE__ */ n.jsx("span", { children: o }),
6499
+ /* @__PURE__ */ n.jsx("span", { children: l }),
6498
6500
  /* @__PURE__ */ n.jsx(
6499
6501
  "div",
6500
6502
  {
@@ -6505,20 +6507,20 @@ function Kn({
6505
6507
  ] })
6506
6508
  ] });
6507
6509
  }
6508
- const jl = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
6509
- const [i, o] = p.useState(!!a);
6510
+ const jo = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
6511
+ const [i, l] = p.useState(!!a);
6510
6512
  p.useEffect(() => {
6511
- o(!!a);
6513
+ l(!!a);
6512
6514
  }, [a]);
6513
- let l = () => {
6515
+ let o = () => {
6514
6516
  let d = parseInt(i) === 0 ? 1 : 0;
6515
- o(d), t({ value: d, name: r, key: s, item: s });
6517
+ l(d), t({ value: d, name: r, key: s, item: s });
6516
6518
  };
6517
6519
  return /* @__PURE__ */ n.jsx(
6518
6520
  "div",
6519
6521
  {
6520
6522
  role: "switch",
6521
- onClick: l,
6523
+ onClick: o,
6522
6524
  "aria-checked": `${i ? "true" : "false"}`
6523
6525
  }
6524
6526
  );
@@ -6527,15 +6529,15 @@ const jl = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
6527
6529
  p.useEffect(() => {
6528
6530
  i(!!t);
6529
6531
  }, [t]);
6530
- let o = () => {
6531
- let l = parseInt(s) === 0 ? 1 : 0;
6532
- i(l), e({ value: l, name: a, key: r, item: r });
6532
+ let l = () => {
6533
+ let o = parseInt(s) === 0 ? 1 : 0;
6534
+ i(o), e({ value: o, name: a, key: r, item: r });
6533
6535
  };
6534
6536
  return /* @__PURE__ */ n.jsx(
6535
6537
  "div",
6536
6538
  {
6537
6539
  role: "switch",
6538
- onClick: o,
6540
+ onClick: l,
6539
6541
  "aria-checked": `${s ? "true" : "false"}`
6540
6542
  }
6541
6543
  );
@@ -6547,8 +6549,8 @@ function Hn({
6547
6549
  placeholder: r = "",
6548
6550
  title: s = "",
6549
6551
  error: i = "",
6550
- hide: o = !1,
6551
- edit: l = !0,
6552
+ hide: l = !1,
6553
+ edit: o = !0,
6552
6554
  active: d = !0,
6553
6555
  after: _ = "",
6554
6556
  show: u = !0,
@@ -6565,23 +6567,23 @@ function Hn({
6565
6567
  }, [e]);
6566
6568
  let C = () => {
6567
6569
  x([...h, ""]);
6568
- }, w = (G) => {
6570
+ }, j = (G) => {
6569
6571
  h.splice(G, 1), h.length === 0 && h.push(""), x([...h]), f !== void 0 && f({ value: h.join(k), name: a });
6570
- }, I = !!(o && (e === "" || e === void 0)), T = (G) => {
6572
+ }, I = !!(l && (e === "" || e === void 0)), T = (G) => {
6571
6573
  };
6572
- if (!(l && d) && !u || !(l && d) && I)
6574
+ if (!(o && d) && !u || !(o && d) && I)
6573
6575
  return "";
6574
- const y = {};
6575
- y.field = "group", m && (y.className = m);
6576
- const b = (G, M) => {
6576
+ const w = {};
6577
+ w.field = "group", m && (w.className = m);
6578
+ const S = (G, M) => {
6577
6579
  de.Blur(G), h[M] = G.target.textContent, f && f({ value: h.join(k), name: a });
6578
6580
  };
6579
- let S = (G, M) => {
6581
+ let b = (G, M) => {
6580
6582
  h[M] = G.target.textContent, t && t({ value: h.join(k), name: a });
6581
- }, R = (G) => {
6583
+ }, E = (G) => {
6582
6584
  G.key === "Enter" && G.preventDefault();
6583
6585
  };
6584
- return /* @__PURE__ */ n.jsxs("dl", { ...y, children: [
6586
+ return /* @__PURE__ */ n.jsxs("dl", { ...w, children: [
6585
6587
  /* @__PURE__ */ n.jsxs("dt", { children: [
6586
6588
  s,
6587
6589
  /* @__PURE__ */ n.jsx("i", { onClick: C, children: /* @__PURE__ */ n.jsxs(
@@ -6605,14 +6607,14 @@ function Hn({
6605
6607
  /* @__PURE__ */ n.jsx(
6606
6608
  "span",
6607
6609
  {
6608
- onInput: (U) => S(U, M),
6610
+ onInput: (U) => b(U, M),
6609
6611
  edit: "true",
6610
6612
  name: a,
6611
6613
  placeholder: r,
6612
6614
  onPaste: T,
6613
- contentEditable: l && d ? "plaintext-only" : "false",
6614
- onKeyDown: R,
6615
- onBlur: (U) => b(U, M),
6615
+ contentEditable: o && d ? "plaintext-only" : "false",
6616
+ onKeyDown: E,
6617
+ onBlur: (U) => S(U, M),
6616
6618
  suppressContentEditableWarning: !0,
6617
6619
  children: h[M]
6618
6620
  }
@@ -6621,7 +6623,7 @@ function Hn({
6621
6623
  "i",
6622
6624
  {
6623
6625
  onClick: () => {
6624
- w(M);
6626
+ j(M);
6625
6627
  },
6626
6628
  children: /* @__PURE__ */ n.jsxs(
6627
6629
  "svg",
@@ -6645,7 +6647,7 @@ function Hn({
6645
6647
  i && /* @__PURE__ */ n.jsx("em", { children: i })
6646
6648
  ] });
6647
6649
  }
6648
- const wl = (e) => (e = e !== void 0 && e !== "" ? e.split(",") : [], e.reduce((t, a) => (t[a] = !0, t), {}));
6650
+ const wo = (e) => (e = e !== void 0 && e !== "" ? e.split(",") : [], e.reduce((t, a) => (t[a] = !0, t), {}));
6649
6651
  function Yn({
6650
6652
  value: e,
6651
6653
  onValue: t,
@@ -6653,8 +6655,8 @@ function Yn({
6653
6655
  placeholder: r = "",
6654
6656
  title: s,
6655
6657
  error: i,
6656
- hide: o = !1,
6657
- edit: l = !0,
6658
+ hide: l = !1,
6659
+ edit: o = !0,
6658
6660
  show: d = !0,
6659
6661
  active: _ = !0,
6660
6662
  after: u = "",
@@ -6664,13 +6666,13 @@ function Yn({
6664
6666
  options: k,
6665
6667
  className: h
6666
6668
  }) {
6667
- const [x, C] = p.useState(wl(e)), w = (y) => {
6668
- if (!(l && _) || !f)
6669
+ const [x, C] = p.useState(wo(e)), j = (w) => {
6670
+ if (!(o && _) || !f)
6669
6671
  return;
6670
- let b = f.split(".");
6671
- st.Open(b[0], b[1], {
6672
- callback: (S) => {
6673
- t && t({ value: S, name: a }), C(S);
6672
+ let S = f.split(".");
6673
+ st.Open(S[0], S[1], {
6674
+ callback: (b) => {
6675
+ t && t({ value: b, name: a }), C(b);
6674
6676
  },
6675
6677
  onValue: t,
6676
6678
  options: k,
@@ -6680,10 +6682,10 @@ function Yn({
6680
6682
  }, I = {};
6681
6683
  I.field = "group", h && (I.className = h);
6682
6684
  const T = {};
6683
- return r && (T.placeholder = r), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
6685
+ return r && (T.placeholder = r), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
6684
6686
  /* @__PURE__ */ n.jsxs("dt", { children: [
6685
6687
  s,
6686
- /* @__PURE__ */ n.jsx("i", { onClick: w, children: /* @__PURE__ */ n.jsxs(
6688
+ /* @__PURE__ */ n.jsx("i", { onClick: j, children: /* @__PURE__ */ n.jsxs(
6687
6689
  "svg",
6688
6690
  {
6689
6691
  width: "20",
@@ -6706,11 +6708,11 @@ function Yn({
6706
6708
  {
6707
6709
  ...T,
6708
6710
  onClick: open,
6709
- edit: (l && _) + "",
6711
+ edit: (o && _) + "",
6710
6712
  "data-after": u,
6711
- children: Object.keys(x).map((y) => {
6712
- var b;
6713
- return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (b = k[y]) == null ? void 0 : b.label }, y);
6713
+ children: Object.keys(x).map((w) => {
6714
+ var S;
6715
+ return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (S = k[w]) == null ? void 0 : S.label }, w);
6714
6716
  })
6715
6717
  }
6716
6718
  ),
@@ -6724,8 +6726,8 @@ function mn({
6724
6726
  placeholder: r = "",
6725
6727
  title: s = "",
6726
6728
  link: i = "",
6727
- error: o = "",
6728
- hide: l = !1,
6729
+ error: l = "",
6730
+ hide: o = !1,
6729
6731
  edit: d = !0,
6730
6732
  active: _ = !0,
6731
6733
  after: u = "",
@@ -6737,40 +6739,40 @@ function mn({
6737
6739
  className: x = ""
6738
6740
  }) {
6739
6741
  const C = p.useId();
6740
- let w = !!(l && (e === "" || e === void 0)), [I, T] = p.useState(i);
6741
- if (!(d && _) && !g || !(d && _) && w)
6742
+ let j = !!(o && (e === "" || e === void 0)), [I, T] = p.useState(i);
6743
+ if (!(d && _) && !g || !(d && _) && j)
6742
6744
  return "";
6743
- const y = async (S) => {
6745
+ const w = async (b) => {
6744
6746
  if (f) {
6745
- let R = Sl(S, f, e || "default");
6746
- t == null || t({ name: a, value: R }), T(URL.createObjectURL(R));
6747
+ let E = So(b, f, e || "default");
6748
+ t == null || t({ name: a, value: E }), T(URL.createObjectURL(E));
6747
6749
  } else
6748
- t == null || t({ name: a, value: S }), T(URL.createObjectURL(S));
6749
- }, b = {};
6750
- return b.field = "file", x && (b.className = x), /* @__PURE__ */ n.jsxs("dl", { ...b, children: [
6750
+ t == null || t({ name: a, value: b }), T(URL.createObjectURL(b));
6751
+ }, S = {};
6752
+ return S.field = "file", x && (S.className = x), /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
6751
6753
  s && /* @__PURE__ */ n.jsxs("dt", { children: [
6752
6754
  s,
6753
6755
  " "
6754
6756
  ] }),
6755
- /* @__PURE__ */ n.jsxs(bl, { onFiles: y, children: [
6757
+ /* @__PURE__ */ n.jsxs(bo, { onFiles: w, children: [
6756
6758
  /* @__PURE__ */ n.jsx(
6757
6759
  "input",
6758
6760
  {
6759
6761
  id: C,
6760
6762
  type: "file",
6761
6763
  multiple: !0,
6762
- onChange: (S) => {
6763
- S.target.files[0] && y(S.target.files[0]);
6764
+ onChange: (b) => {
6765
+ b.target.files[0] && w(b.target.files[0]);
6764
6766
  }
6765
6767
  }
6766
6768
  ),
6767
6769
  /* @__PURE__ */ n.jsx("label", { htmlFor: C }),
6768
6770
  /* @__PURE__ */ n.jsx("img", { src: I })
6769
6771
  ] }),
6770
- o && /* @__PURE__ */ n.jsx("em", { children: o })
6772
+ l && /* @__PURE__ */ n.jsx("em", { children: l })
6771
6773
  ] });
6772
6774
  }
6773
- const bl = ({ children: e, onFiles: t }) => {
6775
+ const bo = ({ children: e, onFiles: t }) => {
6774
6776
  const a = p.useRef(null);
6775
6777
  return p.useEffect(() => {
6776
6778
  if (a.preventDefaults)
@@ -6780,8 +6782,8 @@ const bl = ({ children: e, onFiles: t }) => {
6780
6782
  }, a.highlight = (s) => {
6781
6783
  }, a.unhighlight = (s) => {
6782
6784
  }, a.onHandleDrop = (s) => {
6783
- let l = s.dataTransfer.files[0];
6784
- t && t(l);
6785
+ let o = s.dataTransfer.files[0];
6786
+ t && t(o);
6785
6787
  };
6786
6788
  let r = a.current;
6787
6789
  ["dragenter", "dragover", "dragleave", "drop"].forEach((s) => {
@@ -6796,24 +6798,24 @@ const bl = ({ children: e, onFiles: t }) => {
6796
6798
  r.addEventListener(s, a.unhighlight, !1);
6797
6799
  }), r.addEventListener("drop", a.onHandleDrop, !1);
6798
6800
  }, []), /* @__PURE__ */ n.jsx("dd", { ref: a, children: e });
6799
- }, Sl = (e, t, a) => {
6801
+ }, So = (e, t, a) => {
6800
6802
  var r = document.getElementsByTagName("body")[0], s = document.createElement("canvas");
6801
6803
  r.appendChild(s);
6802
- const i = s.getContext("2d"), o = new Image();
6803
- o.addEventListener("load", () => {
6804
- i.drawImage(o, 0, 0);
6805
- const l = t === "png" ? s.toDataURL() : s.toDataURL(`image/${t}`), d = El(l, a);
6804
+ const i = s.getContext("2d"), l = new Image();
6805
+ l.addEventListener("load", () => {
6806
+ i.drawImage(l, 0, 0);
6807
+ const o = t === "png" ? s.toDataURL() : s.toDataURL(`image/${t}`), d = Eo(o, a);
6806
6808
  return s.remove(), d;
6807
- }), o.src = URL.createObjectURL(e);
6809
+ }), l.src = URL.createObjectURL(e);
6808
6810
  };
6809
- function El(e, t) {
6810
- let a = e.split(","), r = a[0].match(/:(.*?);/)[1], s = atob(a[1]), i = s.length, o = new Uint8Array(i);
6811
+ function Eo(e, t) {
6812
+ let a = e.split(","), r = a[0].match(/:(.*?);/)[1], s = atob(a[1]), i = s.length, l = new Uint8Array(i);
6811
6813
  for (; i--; )
6812
- o[i] = s.charCodeAt(i);
6813
- return new File([o], t, { type: r });
6814
+ l[i] = s.charCodeAt(i);
6815
+ return new File([l], t, { type: r });
6814
6816
  }
6815
6817
  const ge = {};
6816
- function Rl(e) {
6818
+ function Ro(e) {
6817
6819
  const [t, a] = p.useState({}), r = p.useRef(e);
6818
6820
  return ge.u = (s) => {
6819
6821
  r.current = { ...r.current, [s.name]: s.value };
@@ -6823,10 +6825,10 @@ function Rl(e) {
6823
6825
  a(Date.now());
6824
6826
  }, [r.current, ge.n];
6825
6827
  }
6826
- function Dl(e) {
6828
+ function Do(e) {
6827
6829
  ge.u(e), e.reload && ge.r();
6828
6830
  }
6829
- function Nl() {
6831
+ function No() {
6830
6832
  ge.r && ge.r();
6831
6833
  }
6832
6834
  const pc = {
@@ -6857,23 +6859,23 @@ const pc = {
6857
6859
  Users: Pt,
6858
6860
  String: Ze,
6859
6861
  Form: Et,
6860
- runReload: Nl,
6861
- useData: Rl,
6862
- setValue: Dl,
6863
- Palette: jl,
6862
+ runReload: No,
6863
+ useData: Ro,
6864
+ setValue: Do,
6865
+ Palette: jo,
6864
6866
  Toogle: Wn,
6865
6867
  Group: Hn,
6866
6868
  Options: Yn
6867
6869
  };
6868
- function Il({
6869
- value: e,
6870
+ function Io({
6871
+ value: e = "",
6870
6872
  onValue: t,
6871
6873
  onSave: a,
6872
6874
  name: r,
6873
6875
  format: s = "+_(___) ___-__-__",
6874
6876
  placeholder: i = "",
6875
- title: o = "",
6876
- error: l = "",
6877
+ title: l = "",
6878
+ error: o = "",
6877
6879
  hide: d = !1,
6878
6880
  edit: _ = !0,
6879
6881
  active: u = !0,
@@ -6883,7 +6885,7 @@ function Il({
6883
6885
  className: k = ""
6884
6886
  }) {
6885
6887
  _ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0, d = !!(d && (e === "" || e === void 0)) && !(_ && u), p.useRef(null);
6886
- let x = s, C = !0, w = 0, I = (N, F) => {
6888
+ let x = s, C = !0, j = 0, I = (N, F) => {
6887
6889
  let z = document.createRange(), ee = window.getSelection();
6888
6890
  z.setStart(F.childNodes[0], N), z.collapse(!0), ee.removeAllRanges(), ee.addRange(z), F.focus();
6889
6891
  }, T = (N) => {
@@ -6891,24 +6893,18 @@ function Il({
6891
6893
  window.document.execCommand("insertText", !1, F);
6892
6894
  }).catch((F) => {
6893
6895
  });
6894
- }, y = (N) => {
6896
+ }, w = (N) => {
6895
6897
  let F = 0, z = "", ee = N.replace(/\D/g, "");
6896
6898
  ee === "" && (C = !0);
6897
- let re = ee.split(""), te = "";
6898
- re.forEach((He) => {
6899
- C && (te += He, De[te] !== void 0 && C ? (C = !1, x = De[te].mask.replace(new RegExp("[0-9]", "g"), "_"), z = De[te].code) : (C && (w = ("" + te).length, x = `+${te}_(___) ___-__-__`.replace(
6900
- new RegExp("[0-9]", "g"),
6901
- "_"
6902
- ), z = ""), w > ("" + te).length && (C = !0, x = `+${te}_(___) ___-__-__`.replace(
6903
- new RegExp("[0-9]", "g"),
6904
- "_"
6905
- ), z = "")));
6899
+ let ae = ee.split(""), ie = "";
6900
+ ae.forEach((He) => {
6901
+ C && (ie += He, De[ie] !== void 0 && C ? (C = !1, x = De[ie].mask.replace(new RegExp("[0-9]", "g"), "_"), z = De[ie].code) : (C && (j = ("" + ie).length, x = s.replace(new RegExp("[0-9]", "g"), "_"), z = ""), j > ("" + ie).length && (C = !0, x = s.replace(new RegExp("[0-9]", "g"), "_"), z = "")));
6906
6902
  });
6907
6903
  let be = x.replace(/\D/g, "");
6908
6904
  return be.length >= ee.length && (ee = be), { q: x.replace(/[_\d]/g, function() {
6909
6905
  return ee.charAt(F++) || "_";
6910
6906
  }), i: F, v: ee, f: z };
6911
- }, b = (N) => {
6907
+ }, S = (N) => {
6912
6908
  N.preventDefault(), navigator.clipboard.writeText(N.target.textContent.replace(/\D/g, "")).then(
6913
6909
  function() {
6914
6910
  Ne.Copy("Данные в буфер обмене");
@@ -6916,8 +6912,8 @@ function Il({
6916
6912
  function(F) {
6917
6913
  }
6918
6914
  );
6919
- }, S = y(e), R = (N) => {
6920
- let F = y(N.target.textContent);
6915
+ }, b = w(e), E = (N) => {
6916
+ let F = w(N.target.textContent);
6921
6917
  N.target.textContent = F.q, F.i = F.q.lastIndexOf(F.v.substr(-1)), F.i < F.q.length && F.q !== x ? F.i++ : F.i = F.q.indexOf("_"), I(F.i, N.target), t && t({ value: F.q.replace(/\D/g, ""), name: r });
6922
6918
  }, G = (N) => {
6923
6919
  N.key === "Enter" && N.preventDefault();
@@ -6931,21 +6927,21 @@ function Il({
6931
6927
  U.field = "input", k && (U.className = k);
6932
6928
  let O = {};
6933
6929
  return _ && u ? (O.edit = "true", O.contentEditable = "plaintext-only") : O.contentEditable = "false", i && (O.placeholder = i), g && (O.after = g), d ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...U, children: [
6934
- o && /* @__PURE__ */ n.jsx("dt", { children: o }),
6930
+ l && /* @__PURE__ */ n.jsx("dt", { children: l }),
6935
6931
  /* @__PURE__ */ n.jsx(
6936
6932
  "dd",
6937
6933
  {
6938
6934
  ...O,
6939
6935
  onPaste: T,
6940
- onInput: R,
6936
+ onInput: E,
6941
6937
  onKeyDown: G,
6942
- onContextMenu: b,
6938
+ onContextMenu: S,
6943
6939
  onBlur: M,
6944
6940
  suppressContentEditableWarning: !0,
6945
- children: S.q
6941
+ children: b.q
6946
6942
  }
6947
6943
  ),
6948
- l && /* @__PURE__ */ n.jsx("em", { children: l })
6944
+ o && /* @__PURE__ */ n.jsx("em", { children: o })
6949
6945
  ] });
6950
6946
  }
6951
6947
  const vc = {
@@ -6961,7 +6957,7 @@ const vc = {
6961
6957
  Captcha: Bn,
6962
6958
  Modal: Mt,
6963
6959
  Money: Lt,
6964
- Mask: Il,
6960
+ Mask: Io,
6965
6961
  Month: On,
6966
6962
  Notes: An,
6967
6963
  Number: Ft,
@@ -6977,12 +6973,12 @@ const vc = {
6977
6973
  Toogle: Wn,
6978
6974
  Group: Hn,
6979
6975
  Options: Yn
6980
- }, Tl = "_spinner_o487n_1", Ml = "_l_o487n_75", Ll = "_loadingB_o487n_1", qn = {
6981
- spinner: Tl,
6982
- l: Ml,
6983
- loadingB: Ll
6976
+ }, To = "_spinner_o487n_1", Mo = "_l_o487n_75", Lo = "_loadingB_o487n_1", qn = {
6977
+ spinner: To,
6978
+ l: Mo,
6979
+ loadingB: Lo
6984
6980
  };
6985
- function Fl() {
6981
+ function Fo() {
6986
6982
  return /* @__PURE__ */ n.jsx("div", { className: qn.spinner, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ n.jsx(
6987
6983
  "path",
6988
6984
  {
@@ -6991,26 +6987,26 @@ function Fl() {
6991
6987
  }
6992
6988
  ) }) });
6993
6989
  }
6994
- function Bl() {
6990
+ function Bo() {
6995
6991
  return /* @__PURE__ */ n.jsxs("div", { className: qn.l, children: [
6996
6992
  /* @__PURE__ */ n.jsx("i", {}),
6997
6993
  /* @__PURE__ */ n.jsx("i", {}),
6998
6994
  /* @__PURE__ */ n.jsx("i", {})
6999
6995
  ] });
7000
6996
  }
7001
- const Cc = { Spinner: Fl, Inline: Bl }, $l = "_s_t9swc_1", hn = {
7002
- s: $l
6997
+ const Cc = { Spinner: Fo, Inline: Bo }, $o = "_s_t9swc_1", hn = {
6998
+ s: $o
7003
6999
  };
7004
7000
  let Ot;
7005
- function Pl({ className: e, placeholder: t }) {
7006
- let a = (o) => {
7007
- Ot(o.target.textContent);
7008
- }, r = (o) => {
7009
- o.key === "Enter" && o.preventDefault();
7010
- }, s = (o) => {
7011
- o.preventDefault(), navigator.clipboard.readText().then((l) => {
7012
- window.document.execCommand("insertText", !1, l);
7013
- }).catch((l) => {
7001
+ function Po({ className: e, placeholder: t }) {
7002
+ let a = (l) => {
7003
+ Ot(l.target.textContent);
7004
+ }, r = (l) => {
7005
+ l.key === "Enter" && l.preventDefault();
7006
+ }, s = (l) => {
7007
+ l.preventDefault(), navigator.clipboard.readText().then((o) => {
7008
+ window.document.execCommand("insertText", !1, o);
7009
+ }).catch((o) => {
7014
7010
  });
7015
7011
  };
7016
7012
  const i = {};
@@ -7026,25 +7022,25 @@ function Pl({ className: e, placeholder: t }) {
7026
7022
  }
7027
7023
  );
7028
7024
  }
7029
- function Ol(e, t, a) {
7030
- let r = [], s = 1, i = 0, o = {}, l = 50;
7031
- return o[s] = [], e.forEach((d) => {
7025
+ function Oo(e, t, a) {
7026
+ let r = [], s = 1, i = 0, l = {}, o = 50;
7027
+ return l[s] = [], e.forEach((d) => {
7032
7028
  d.text.toLowerCase().indexOf(t) > -1 && r.push(d.id);
7033
7029
  }), r.forEach((d) => {
7034
- i++, i <= l || (s++, i = 1, o[s] = []), o[s].push(a[d]);
7035
- }), o;
7030
+ i++, i <= o || (s++, i = 1, l[s] = []), l[s].push(a[d]);
7031
+ }), l;
7036
7032
  }
7037
- function Al(e) {
7033
+ function Ao(e) {
7038
7034
  Ot = e;
7039
7035
  }
7040
- function Gl(e) {
7036
+ function Go(e) {
7041
7037
  Ot = e;
7042
7038
  }
7043
- const kc = { Field: Pl, Run: Ol, Get: Al, useValue: Gl }, Zl = "_f_q3r0i_1", Ul = {
7044
- f: Zl
7039
+ const kc = { Field: Po, Run: Oo, Get: Ao, useValue: Go }, Zo = "_f_q3r0i_1", Uo = {
7040
+ f: Zo
7045
7041
  };
7046
7042
  let ce = {};
7047
- function zl(e, t) {
7043
+ function zo(e, t) {
7048
7044
  switch (t.type) {
7049
7045
  case "open":
7050
7046
  return {
@@ -7094,8 +7090,8 @@ function zl(e, t) {
7094
7090
  throw new Error();
7095
7091
  }
7096
7092
  }
7097
- function Kl() {
7098
- const [e, t] = p.useReducer(zl, {
7093
+ function Ko() {
7094
+ const [e, t] = p.useReducer(zo, {
7099
7095
  open: !1,
7100
7096
  view: null,
7101
7097
  data: {},
@@ -7113,7 +7109,7 @@ function Kl() {
7113
7109
  /* @__PURE__ */ n.jsxs(
7114
7110
  "div",
7115
7111
  {
7116
- className: Ul.f,
7112
+ className: Uo.f,
7117
7113
  onClick: () => {
7118
7114
  t({ type: "open", open: !0 });
7119
7115
  },
@@ -7138,7 +7134,7 @@ function Kl() {
7138
7134
  ),
7139
7135
  /* @__PURE__ */ n.jsxs("div", { className: "filter m", children: [
7140
7136
  /* @__PURE__ */ n.jsx("div", { className: "filter l", children: Object.keys(e.data).map((a) => /* @__PURE__ */ n.jsx(
7141
- Vl,
7137
+ Vo,
7142
7138
  {
7143
7139
  data: a,
7144
7140
  dispatch: t,
@@ -7160,31 +7156,31 @@ function Kl() {
7160
7156
  ] }) : /* @__PURE__ */ n.jsx(n.Fragment, {})
7161
7157
  ] });
7162
7158
  }
7163
- function Wl(e) {
7159
+ function Wo(e) {
7164
7160
  ce.get = e;
7165
7161
  }
7166
- function Hl(e) {
7162
+ function Ho(e) {
7167
7163
  ce.set !== void 0 && ce.set(e);
7168
7164
  }
7169
- function Yl(e) {
7165
+ function Yo(e) {
7170
7166
  ce.reset !== void 0 && ce.reset(e);
7171
7167
  }
7172
- function ql(e, t, a, r) {
7173
- let s = [], i = 1, o = 0, l = {}, d = 50;
7174
- return l[i] = [], r === !0 && (Object.keys(t).forEach((_) => {
7168
+ function qo(e, t, a, r) {
7169
+ let s = [], i = 1, l = 0, o = {}, d = 50;
7170
+ return o[i] = [], r === !0 && (Object.keys(t).forEach((_) => {
7175
7171
  Number.parseInt(t[_]) !== 999 && (e = e.filter(
7176
7172
  (u) => Number.parseInt(u[_]) === Number.parseInt(t[_])
7177
7173
  ));
7178
7174
  }), Vn(e.length)), e.forEach((_) => {
7179
7175
  s.push(_.id);
7180
7176
  }), s.forEach((_) => {
7181
- o++, o <= d || (i++, o = 1, l[i] = []), l[i].push(a[_]);
7182
- }), l;
7177
+ l++, l <= d || (i++, l = 1, o[i] = []), o[i].push(a[_]);
7178
+ }), o;
7183
7179
  }
7184
7180
  function Vn(e) {
7185
7181
  ce.count(e);
7186
7182
  }
7187
- function Vl({ data: e, state: t, dispatch: a }) {
7183
+ function Vo({ data: e, state: t, dispatch: a }) {
7188
7184
  let r = () => {
7189
7185
  a({ type: "view", view: e });
7190
7186
  }, s = () => {
@@ -7206,8 +7202,8 @@ function Vl({ data: e, state: t, dispatch: a }) {
7206
7202
  }
7207
7203
  ) : ""
7208
7204
  ] }),
7209
- /* @__PURE__ */ n.jsx("div", { className: "filter u", "set-active": (t.view === e) + "", children: Object.keys(t.data[e].list).map((i, o) => /* @__PURE__ */ n.jsx(
7210
- Jl,
7205
+ /* @__PURE__ */ n.jsx("div", { className: "filter u", "set-active": (t.view === e) + "", children: Object.keys(t.data[e].list).map((i, l) => /* @__PURE__ */ n.jsx(
7206
+ Jo,
7211
7207
  {
7212
7208
  data: t.data[e].list[i],
7213
7209
  head: e,
@@ -7215,11 +7211,11 @@ function Vl({ data: e, state: t, dispatch: a }) {
7215
7211
  dispatch: a,
7216
7212
  state: t
7217
7213
  },
7218
- o
7214
+ l
7219
7215
  )) })
7220
7216
  ] });
7221
7217
  }
7222
- function Jl({ data: e, head: t, state: a, dispatch: r, type: s }) {
7218
+ function Jo({ data: e, head: t, state: a, dispatch: r, type: s }) {
7223
7219
  if (s !== "999" && e.count === void 0)
7224
7220
  return "";
7225
7221
  const i = () => {
@@ -7238,20 +7234,20 @@ function Jl({ data: e, head: t, state: a, dispatch: r, type: s }) {
7238
7234
  }
7239
7235
  );
7240
7236
  }
7241
- const yc = { Button: Kl, useValue: Wl, Set: Hl, Run: ql, Count: Vn, Reset: Yl }, jc = { Bell: us, Send: cs, Add: ls }, Xl = "_p_djnh1_1", Ql = "_l_djnh1_38", Jn = {
7242
- p: Xl,
7243
- l: Ql
7237
+ const yc = { Button: Ko, useValue: Wo, Set: Ho, Run: qo, Count: Vn, Reset: Yo }, jc = { Bell: us, Send: cs, Add: os }, Xo = "_p_djnh1_1", Qo = "_l_djnh1_38", Jn = {
7238
+ p: Xo,
7239
+ l: Qo
7244
7240
  };
7245
7241
  function ec(e) {
7246
7242
  let t = 3, a = e.page, r = e.count, s = [], i = () => {
7247
7243
  s.push({ page: 1 }), s.push({ text: "..." });
7248
- }, o = () => {
7244
+ }, l = () => {
7249
7245
  s.push({ text: "..." }), s.push({ page: r });
7250
- }, l = (d, _) => {
7246
+ }, o = (d, _) => {
7251
7247
  for (let u = d; u < _; u++)
7252
7248
  s.push({ page: u });
7253
7249
  };
7254
- return r < t * 2 + 6 ? l(1, r + 1) : a < t * 2 + 1 ? (l(1, t * 2 + 4), o()) : a > r - t * 2 ? (t = r > 1e4 ? 1 : t, i(), l(r - t * 2 - 2, r + 1)) : (t = r > 1e4 ? 1 : t, i(), l(a - t, a + t + 1), o()), s.length === 1 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("div", { className: Jn.p, children: [
7250
+ return r < t * 2 + 6 ? o(1, r + 1) : a < t * 2 + 1 ? (o(1, t * 2 + 4), l()) : a > r - t * 2 ? (t = r > 1e4 ? 1 : t, i(), o(r - t * 2 - 2, r + 1)) : (t = r > 1e4 ? 1 : t, i(), o(a - t, a + t + 1), l()), s.length === 1 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("div", { className: Jn.p, children: [
7255
7251
  /* @__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" }) }) }),
7256
7252
  s.map((d, _) => {
7257
7253
  const u = {};
@@ -7293,16 +7289,16 @@ function Xn({ load: e, list: t, item: a }) {
7293
7289
  p.useEffect(() => {
7294
7290
  t !== null && i({ type: "load", load: e, data: t });
7295
7291
  }, [e]);
7296
- let o = (l) => {
7297
- if (l === 0)
7298
- return l = 1;
7299
- if (l > s.size)
7300
- return l = s.size;
7301
- i({ type: "page", page: l });
7292
+ let l = (o) => {
7293
+ if (o === 0)
7294
+ return o = 1;
7295
+ if (o > s.size)
7296
+ return o = s.size;
7297
+ i({ type: "page", page: o });
7302
7298
  };
7303
7299
  return p.useEffect(() => {
7304
7300
  }, [s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7305
- /* @__PURE__ */ n.jsx("div", { className: Jn.l, ref: r, children: /* @__PURE__ */ n.jsx(In, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((l) => /* @__PURE__ */ n.jsx(s.item, { data: l }, l.id)) : /* @__PURE__ */ n.jsxs("div", { "type-data": "load", children: [
7301
+ /* @__PURE__ */ n.jsx("div", { className: Jn.l, ref: r, children: /* @__PURE__ */ n.jsx(In, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((o) => /* @__PURE__ */ n.jsx(s.item, { data: o }, o.id)) : /* @__PURE__ */ n.jsxs("div", { "type-data": "load", children: [
7306
7302
  /* @__PURE__ */ n.jsx("i", {}),
7307
7303
  /* @__PURE__ */ n.jsx("i", {}),
7308
7304
  /* @__PURE__ */ n.jsx("i", {})
@@ -7312,7 +7308,7 @@ function Xn({ load: e, list: t, item: a }) {
7312
7308
  {
7313
7309
  page: s.page,
7314
7310
  count: s.size,
7315
- onChangePage: o
7311
+ onChangePage: l
7316
7312
  }
7317
7313
  ) : /* @__PURE__ */ n.jsx(n.Fragment, {})
7318
7314
  ] });
@@ -7322,7 +7318,7 @@ function nc({ head: e, load: t, list: a, item: r }) {
7322
7318
  const s = e;
7323
7319
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7324
7320
  /* @__PURE__ */ n.jsx(s, {}),
7325
- It.getSetting("s05") === 1 ? /* @__PURE__ */ n.jsx(Xn, { list: a, load: t, item: r }) : /* @__PURE__ */ n.jsx(ml, { list: a, load: t, item: r })
7321
+ It.getSetting("s05") === 1 ? /* @__PURE__ */ n.jsx(Xn, { list: a, load: t, item: r }) : /* @__PURE__ */ n.jsx(mo, { list: a, load: t, item: r })
7326
7322
  ] });
7327
7323
  }
7328
7324
  function ac(e, t) {
@@ -7373,16 +7369,16 @@ function rc(e) {
7373
7369
  function sc(e) {
7374
7370
  Rt.get && Rt.get(e);
7375
7371
  }
7376
- const bc = { View: nc, Reducer: ac, useValue: rc, setValue: sc }, Sc = { Get: xs }, Ec = { Open: ro };
7372
+ const bc = { View: nc, Reducer: ac, useValue: rc, setValue: sc }, Sc = { Get: xs }, Ec = { Open: rl };
7377
7373
  function Rc({ active: e, onActive: t, id: a, name: r }) {
7378
7374
  const [s, i] = p.useState(!!e);
7379
7375
  p.useEffect(() => {
7380
7376
  i(!!e);
7381
7377
  }, [e]);
7382
- let o = () => {
7383
- let l = s ? 0 : 1;
7378
+ let l = () => {
7379
+ let o = s ? 0 : 1;
7384
7380
  i(!s), t && t({
7385
- value: l,
7381
+ value: o,
7386
7382
  is: !s,
7387
7383
  name: r,
7388
7384
  id: a,
@@ -7393,18 +7389,18 @@ function Rc({ active: e, onActive: t, id: a, name: r }) {
7393
7389
  "div",
7394
7390
  {
7395
7391
  role: "switch",
7396
- onClick: o,
7392
+ onClick: l,
7397
7393
  "aria-checked": `${s ? "true" : "false"}`
7398
7394
  }
7399
7395
  );
7400
7396
  }
7401
7397
  export {
7402
- Io as Action,
7398
+ Nl as Action,
7403
7399
  _c as Alert,
7404
7400
  rn as Api,
7405
7401
  mc as Badge,
7406
7402
  dc as Bookmarks,
7407
- lc as Browser,
7403
+ oc as Browser,
7408
7404
  Ci as Button,
7409
7405
  Sc as Company,
7410
7406
  fn as Component,
@@ -7417,7 +7413,7 @@ export {
7417
7413
  H as Format,
7418
7414
  gc as HotKey,
7419
7415
  uc as Icon,
7420
- go as Init,
7416
+ hl as Init,
7421
7417
  vc as Input,
7422
7418
  bc as List,
7423
7419
  Cc as Loading,
@@ -7427,14 +7423,14 @@ export {
7427
7423
  wc as Pagination,
7428
7424
  Ec as Phone,
7429
7425
  et as Router,
7430
- ml as Scrolling,
7426
+ mo as Scrolling,
7431
7427
  kc as Search,
7432
7428
  cc as Setting,
7433
7429
  rt as Sistym,
7434
7430
  he as Socket,
7435
- le as Store,
7431
+ oe as Store,
7436
7432
  Rc as Switch,
7437
- yo as Tabs,
7433
+ kl as Tabs,
7438
7434
  fc as Triage,
7439
7435
  It as User,
7440
7436
  K as WebRTC