@elcrm/telegram 0.0.15 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,22 +1,22 @@
1
1
  import './index.css';var _a = Object.defineProperty;
2
2
  var da = (e, t, a) => t in e ? _a(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
- var st = (e, t, a) => (da(e, typeof t != "symbol" ? t + "" : t, a), a);
3
+ var it = (e, t, a) => (da(e, typeof t != "symbol" ? t + "" : t, a), a);
4
4
  import b from "react";
5
5
  let gt = {};
6
6
  const ua = (e) => {
7
7
  gt = e;
8
8
  }, fa = (e) => gt.enCode(e), ma = (e) => gt.deCode(e), N = { enCode: fa, deCode: ma, New: ua }, j = {}, U = {}, Ce = {}, nn = {}, re = {};
9
- let pt = "M06";
9
+ let xt = "M06";
10
10
  function ha(e) {
11
- pt = e;
11
+ xt = e;
12
12
  }
13
13
  function ga() {
14
- return pt;
14
+ return xt;
15
15
  }
16
- function pa(e) {
16
+ function xa(e) {
17
17
  if (localStorage.getItem("d")) {
18
18
  let a = sessionStorage.getItem("f");
19
- a ? (a = N.deCode(a), a || X(), j.id = a.id, j.tab = a.tab, j.page = a.page, j.module = a.module, j.time = a.time, j.payment = { active: !0 }, j.module_admin = a.module_admin) : (j.id = 0, j.tab = "", j.page = "Main", j.module = j.module || pt);
19
+ a ? (a = N.deCode(a), a || X(), j.id = a.id, j.tab = a.tab, j.page = a.page, j.module = a.module, j.time = a.time, j.payment = { active: !0 }, j.module_admin = a.module_admin) : (j.id = 0, j.tab = "", j.page = "Main", j.module = j.module || xt);
20
20
  } else
21
21
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
22
22
  (a) => localStorage.removeItem(a)
@@ -28,7 +28,7 @@ function X() {
28
28
  (e) => localStorage.removeItem(e)
29
29
  ), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
30
30
  }
31
- function xa(e) {
31
+ function pa(e) {
32
32
  e = e.split("/"), j.page = "Main", j.module = e[0], j.tab = e[1], j.id = 0, sessionStorage.setItem(
33
33
  "f",
34
34
  N.enCode({
@@ -82,8 +82,8 @@ function Sa(e) {
82
82
  }
83
83
  function Ea(e) {
84
84
  if (typeof e != "function") {
85
- const [t, a] = b.useState(e || rn()), r = (s) => {
86
- a(s);
85
+ const [t, a] = b.useState(e || rn()), r = (i) => {
86
+ a(i);
87
87
  };
88
88
  return U.module = r, [t];
89
89
  } else
@@ -100,9 +100,9 @@ function Ra(e) {
100
100
  }
101
101
  function Ba(e) {
102
102
  if (typeof e != "function") {
103
- const [t, a] = b.useState(e || Ze()), [r, s] = b.useState(!1);
103
+ const [t, a] = b.useState(e || Ze()), [r, i] = b.useState(!1);
104
104
  return b.useEffect(() => {
105
- s(!0);
105
+ i(!0);
106
106
  }, []), U.tabs = a, [t, r];
107
107
  } else
108
108
  U.tabs = e;
@@ -122,8 +122,8 @@ function Ma(e) {
122
122
  }
123
123
  function Na(e) {
124
124
  if (typeof e != "function") {
125
- const [t, a] = b.useState(e || sn()), r = (s) => {
126
- a(s);
125
+ const [t, a] = b.useState(e || on()), r = (i) => {
126
+ a(i);
127
127
  };
128
128
  return U.id = r, [t];
129
129
  } else
@@ -135,7 +135,7 @@ function Da(e) {
135
135
  function Fa(e, t = !0) {
136
136
  j.id = e, sessionStorage.setItem("f", N.enCode(j)), t && U.id(e);
137
137
  }
138
- function sn() {
138
+ function on() {
139
139
  return j.id;
140
140
  }
141
141
  function Pa(e) {
@@ -154,7 +154,7 @@ function Aa(e) {
154
154
  let t = localStorage.getItem("s");
155
155
  return t === null ? {} : (t = N.deCode(t), t ? e !== void 0 ? t[e] : t : X());
156
156
  }
157
- function on(e) {
157
+ function sn(e) {
158
158
  localStorage.setItem("m", N.enCode({ data: e }));
159
159
  }
160
160
  function Ga() {
@@ -162,13 +162,13 @@ function Ga() {
162
162
  if (e !== "" && e !== "undefined" && e !== null) {
163
163
  let t = localStorage.getItem("m"), a = N.deCode(t);
164
164
  a || X();
165
- const r = (i, l) => {
165
+ const r = (o, l) => {
166
166
  let c = l + "";
167
- for (; c.length < i; )
167
+ for (; c.length < o; )
168
168
  c = "0" + c;
169
169
  return c;
170
170
  };
171
- return a.data.split(",").map((i) => "M" + r(2, i));
171
+ return a.data.split(",").map((o) => "M" + r(2, o));
172
172
  } else
173
173
  return X(), !1;
174
174
  }
@@ -190,8 +190,8 @@ function Wa(e, t) {
190
190
  var r;
191
191
  let a = localStorage.getItem("c");
192
192
  if (a !== "" && a !== "undefined" && a !== null) {
193
- let s = N.deCode(a);
194
- return s || X(), e === void 0 ? s : t ? (r = s[e][t]) == null ? void 0 : r.n : s[e];
193
+ let i = N.deCode(a);
194
+ return i || X(), e === void 0 ? i : t ? (r = i[e][t]) == null ? void 0 : r.n : i[e];
195
195
  } else
196
196
  return X(), !1;
197
197
  }
@@ -201,7 +201,7 @@ function De(e) {
201
201
  function Ka(e, t) {
202
202
  re.data = { ...re.data, [e]: t }, localStorage.setItem("q", N.enCode(re.data));
203
203
  }
204
- function xe(e, t) {
204
+ function pe(e, t) {
205
205
  if (!re.data) {
206
206
  let a = localStorage.getItem("q");
207
207
  a && (re.data = N.deCode(a));
@@ -236,10 +236,10 @@ function qa(e) {
236
236
  let r = localStorage.getItem(a);
237
237
  if (r !== "" && r !== "undefined" && r !== null)
238
238
  try {
239
- let s = N.deCode(r);
240
- if (!s)
239
+ let i = N.deCode(r);
240
+ if (!i)
241
241
  return;
242
- j[a] = { is: !0, time: s.time, data: s.data };
242
+ j[a] = { is: !0, time: i.time, data: i.data };
243
243
  } catch {
244
244
  j[a] = { is: !1, time: 0, data: {} };
245
245
  }
@@ -257,7 +257,7 @@ function Xa(e, t) {
257
257
  function Qa(e, t, a) {
258
258
  j[e].time = a, j[e].data[t.item][t.name] = t.value, localStorage.setItem(e, N.enCode(j[e]));
259
259
  }
260
- const oe = {
260
+ const se = {
261
261
  setSSID: va,
262
262
  getSSID: ka,
263
263
  getPORT: lt,
@@ -265,8 +265,8 @@ const oe = {
265
265
  setAUTH: ba,
266
266
  getAUTH: Ca,
267
267
  Logaut: X,
268
- Start: xa,
269
- setMenu: on,
268
+ Start: pa,
269
+ setMenu: sn,
270
270
  getMenu: Ga,
271
271
  useSort: za,
272
272
  setSort: ln,
@@ -275,7 +275,7 @@ const oe = {
275
275
  getCompany: Wa,
276
276
  setSelect: De,
277
277
  addSelect: Ka,
278
- getSelect: xe,
278
+ getSelect: pe,
279
279
  setApi: Za,
280
280
  getApi: Ua,
281
281
  setPayment: Ha,
@@ -323,57 +323,57 @@ function ar(e) {
323
323
  function rr(e) {
324
324
  return e && (ce.h = e), ce.h;
325
325
  }
326
- const xt = { version: { Api: nr, Server: tr, Client: ar }, Host: rr };
327
- let sr = "api", ir = "elcrm", or = "online";
326
+ const pt = { version: { Api: nr, Server: tr, Client: ar }, Host: rr };
327
+ let ir = "api", or = "elcrm", sr = "online";
328
328
  function lr() {
329
- let e = oe.getPORT(), t = "", a = "";
329
+ let e = se.getPORT(), t = "", a = "";
330
330
  return e.address === "localhost" ? (t = `http://localhost:${e.socket}/documents`, a = `http://localhost:${e.socket}/files`) : (t = "https://" + e.address + "/documents", a = "https://" + e.address + "/files"), {
331
331
  documents: t,
332
332
  files: a
333
333
  };
334
334
  }
335
- let fn = `${sr}.${ir}.${or}`;
335
+ let fn = `${ir}.${or}.${sr}`;
336
336
  function cr(e) {
337
- return "https://" + oe.getPORT().address + "/audio/" + e;
337
+ return "https://" + se.getPORT().address + "/audio/" + e;
338
338
  }
339
- function Ue(e, t = {}, a = oe.getAUTH()) {
339
+ function Ue(e, t = {}, a = se.getAUTH()) {
340
340
  return new Promise((r) => {
341
- const s = new un();
342
- s.onmessage = (i) => {
343
- r(i.data), s.terminate();
344
- }, s.postMessage({
341
+ const i = new un();
342
+ i.onmessage = (o) => {
343
+ r(o.data), i.terminate();
344
+ }, i.postMessage({
345
345
  link: e,
346
346
  data: t,
347
347
  ssid: a,
348
- host: xt.Host() || `https://${fn}/`
348
+ host: pt.Host() || `https://${fn}/`
349
349
  });
350
350
  });
351
351
  }
352
- function _r(e, t = {}, a = oe.getAUTH()) {
352
+ function _r(e, t = {}, a = se.getAUTH()) {
353
353
  return new Promise((r) => {
354
- const s = new un();
355
- s.onmessage = (i) => {
356
- r(i.data), s.terminate();
357
- }, s.postMessage({
354
+ const i = new un();
355
+ i.onmessage = (o) => {
356
+ r(o.data), i.terminate();
357
+ }, i.postMessage({
358
358
  link: e,
359
359
  data: t,
360
360
  ssid: a,
361
- host: xt.Host() + "modules/" || `https://${fn}/modules`
361
+ host: pt.Host() + "modules/" || `https://${fn}/modules`
362
362
  });
363
363
  });
364
364
  }
365
365
  function dr(e, t = {}, a) {
366
- const [r, s] = b.useState({ status: "load" }), i = async (l) => {
366
+ const [r, i] = b.useState({ status: "load" }), o = async (l) => {
367
367
  let c = await Ue(e, l, a);
368
- s(c);
368
+ i(c);
369
369
  };
370
370
  return b.useEffect(() => {
371
- i(t);
372
- }, []), [r, i];
371
+ o(t);
372
+ }, []), [r, o];
373
373
  }
374
374
  let mn = {
375
375
  "Content-type": "application/json;charset=utf-8",
376
- ssid: oe.getAUTH() || ""
376
+ ssid: se.getAUTH() || ""
377
377
  };
378
378
  async function ur(e, t, a = {}) {
379
379
  try {
@@ -413,16 +413,16 @@ function mr() {
413
413
  if (Ut)
414
414
  return Be;
415
415
  Ut = 1;
416
- var e = b, 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 };
416
+ var e = b, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
417
417
  function l(c, d, _) {
418
- var u, f = {}, x = null, m = null;
419
- _ !== void 0 && (x = "" + _), d.key !== void 0 && (x = "" + d.key), d.ref !== void 0 && (m = d.ref);
418
+ var u, f = {}, p = null, m = null;
419
+ _ !== void 0 && (p = "" + _), d.key !== void 0 && (p = "" + d.key), d.ref !== void 0 && (m = d.ref);
420
420
  for (u in d)
421
- r.call(d, u) && !i.hasOwnProperty(u) && (f[u] = d[u]);
421
+ r.call(d, u) && !o.hasOwnProperty(u) && (f[u] = d[u]);
422
422
  if (c && c.defaultProps)
423
423
  for (u in d = c.defaultProps, d)
424
424
  f[u] === void 0 && (f[u] = d[u]);
425
- return { $$typeof: t, type: c, key: x, ref: m, props: f, _owner: s.current };
425
+ return { $$typeof: t, type: c, key: p, ref: m, props: f, _owner: i.current };
426
426
  }
427
427
  return Be.Fragment = a, Be.jsx = l, Be.jsxs = l, Be;
428
428
  }
@@ -439,86 +439,86 @@ var Ie = {};
439
439
  var Ht;
440
440
  function hr() {
441
441
  return Ht || (Ht = 1, process.env.NODE_ENV !== "production" && function() {
442
- var e = b, 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"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), g = Symbol.iterator, v = "@@iterator";
443
- function p(o) {
444
- if (o === null || typeof o != "object")
442
+ var e = b, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), g = Symbol.iterator, v = "@@iterator";
443
+ function x(s) {
444
+ if (s === null || typeof s != "object")
445
445
  return null;
446
- var h = g && o[g] || o[v];
446
+ var h = g && s[g] || s[v];
447
447
  return typeof h == "function" ? h : null;
448
448
  }
449
449
  var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
450
- function y(o) {
450
+ function y(s) {
451
451
  {
452
452
  for (var h = arguments.length, k = new Array(h > 1 ? h - 1 : 0), w = 1; w < h; w++)
453
453
  k[w - 1] = arguments[w];
454
- T("error", o, k);
454
+ T("error", s, k);
455
455
  }
456
456
  }
457
- function T(o, h, k) {
457
+ function T(s, h, k) {
458
458
  {
459
459
  var w = C.ReactDebugCurrentFrame, D = w.getStackAddendum();
460
460
  D !== "" && (h += "%s", k = k.concat([D]));
461
461
  var P = k.map(function(M) {
462
462
  return String(M);
463
463
  });
464
- P.unshift("Warning: " + h), Function.prototype.apply.call(console[o], console, P);
464
+ P.unshift("Warning: " + h), Function.prototype.apply.call(console[s], console, P);
465
465
  }
466
466
  }
467
- var R = !1, F = !1, A = !1, K = !1, ie = !1, z;
467
+ var R = !1, F = !1, A = !1, K = !1, oe = !1, z;
468
468
  z = Symbol.for("react.module.reference");
469
- function I(o) {
470
- return !!(typeof o == "string" || typeof o == "function" || o === r || o === i || ie || o === s || o === _ || o === u || K || o === m || R || F || A || typeof o == "object" && o !== null && (o.$$typeof === x || o.$$typeof === f || o.$$typeof === l || o.$$typeof === c || o.$$typeof === d || // This needs to include all possible module reference object
469
+ function I(s) {
470
+ return !!(typeof s == "string" || typeof s == "function" || s === r || s === o || oe || s === i || s === _ || s === u || K || s === m || R || F || A || typeof s == "object" && s !== null && (s.$$typeof === p || s.$$typeof === f || s.$$typeof === l || s.$$typeof === c || s.$$typeof === d || // This needs to include all possible module reference object
471
471
  // types supported by any Flight configuration anywhere since
472
472
  // we don't know which Flight build this will end up being used
473
473
  // with.
474
- o.$$typeof === z || o.getModuleId !== void 0));
474
+ s.$$typeof === z || s.getModuleId !== void 0));
475
475
  }
476
- function W(o, h, k) {
477
- var w = o.displayName;
476
+ function W(s, h, k) {
477
+ var w = s.displayName;
478
478
  if (w)
479
479
  return w;
480
480
  var D = h.displayName || h.name || "";
481
481
  return D !== "" ? k + "(" + D + ")" : k;
482
482
  }
483
- function $(o) {
484
- return o.displayName || "Context";
483
+ function $(s) {
484
+ return s.displayName || "Context";
485
485
  }
486
- function S(o) {
487
- if (o == null)
486
+ function S(s) {
487
+ if (s == null)
488
488
  return null;
489
- if (typeof o.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
490
- return o.displayName || o.name || null;
491
- if (typeof o == "string")
492
- return o;
493
- switch (o) {
489
+ if (typeof s.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
490
+ return s.displayName || s.name || null;
491
+ if (typeof s == "string")
492
+ return s;
493
+ switch (s) {
494
494
  case r:
495
495
  return "Fragment";
496
496
  case a:
497
497
  return "Portal";
498
- case i:
498
+ case o:
499
499
  return "Profiler";
500
- case s:
500
+ case i:
501
501
  return "StrictMode";
502
502
  case _:
503
503
  return "Suspense";
504
504
  case u:
505
505
  return "SuspenseList";
506
506
  }
507
- if (typeof o == "object")
508
- switch (o.$$typeof) {
507
+ if (typeof s == "object")
508
+ switch (s.$$typeof) {
509
509
  case c:
510
- var h = o;
510
+ var h = s;
511
511
  return $(h) + ".Consumer";
512
512
  case l:
513
- var k = o;
513
+ var k = s;
514
514
  return $(k._context) + ".Provider";
515
515
  case d:
516
- return W(o, o.render, "ForwardRef");
516
+ return W(s, s.render, "ForwardRef");
517
517
  case f:
518
- var w = o.displayName || null;
519
- return w !== null ? w : S(o.type) || "Memo";
520
- case x: {
521
- var D = o, P = D._payload, M = D._init;
518
+ var w = s.displayName || null;
519
+ return w !== null ? w : S(s.type) || "Memo";
520
+ case p: {
521
+ var D = s, P = D._payload, M = D._init;
522
522
  try {
523
523
  return S(M(P));
524
524
  } catch {
@@ -536,20 +536,20 @@ function hr() {
536
536
  {
537
537
  if (Y === 0) {
538
538
  $e = console.log, te = console.info, Ee = console.warn, Ve = console.error, Le = console.group, Tt = console.groupCollapsed, Rt = console.groupEnd;
539
- var o = {
539
+ var s = {
540
540
  configurable: !0,
541
541
  enumerable: !0,
542
542
  value: Bt,
543
543
  writable: !0
544
544
  };
545
545
  Object.defineProperties(console, {
546
- info: o,
547
- log: o,
548
- warn: o,
549
- error: o,
550
- group: o,
551
- groupCollapsed: o,
552
- groupEnd: o
546
+ info: s,
547
+ log: s,
548
+ warn: s,
549
+ error: s,
550
+ group: s,
551
+ groupCollapsed: s,
552
+ groupEnd: s
553
553
  });
554
554
  }
555
555
  Y++;
@@ -558,31 +558,31 @@ function hr() {
558
558
  function Ln() {
559
559
  {
560
560
  if (Y--, Y === 0) {
561
- var o = {
561
+ var s = {
562
562
  configurable: !0,
563
563
  enumerable: !0,
564
564
  writable: !0
565
565
  };
566
566
  Object.defineProperties(console, {
567
- log: Z({}, o, {
567
+ log: Z({}, s, {
568
568
  value: $e
569
569
  }),
570
- info: Z({}, o, {
570
+ info: Z({}, s, {
571
571
  value: te
572
572
  }),
573
- warn: Z({}, o, {
573
+ warn: Z({}, s, {
574
574
  value: Ee
575
575
  }),
576
- error: Z({}, o, {
576
+ error: Z({}, s, {
577
577
  value: Ve
578
578
  }),
579
- group: Z({}, o, {
579
+ group: Z({}, s, {
580
580
  value: Le
581
581
  }),
582
- groupCollapsed: Z({}, o, {
582
+ groupCollapsed: Z({}, s, {
583
583
  value: Tt
584
584
  }),
585
- groupEnd: Z({}, o, {
585
+ groupEnd: Z({}, s, {
586
586
  value: Rt
587
587
  })
588
588
  });
@@ -591,7 +591,7 @@ function hr() {
591
591
  }
592
592
  }
593
593
  var qe = C.ReactCurrentDispatcher, Je;
594
- function Oe(o, h, k) {
594
+ function Oe(s, h, k) {
595
595
  {
596
596
  if (Je === void 0)
597
597
  try {
@@ -601,7 +601,7 @@ function hr() {
601
601
  Je = w && w[1] || "";
602
602
  }
603
603
  return `
604
- ` + Je + o;
604
+ ` + Je + s;
605
605
  }
606
606
  }
607
607
  var Xe = !1, Ae;
@@ -609,11 +609,11 @@ function hr() {
609
609
  var On = typeof WeakMap == "function" ? WeakMap : Map;
610
610
  Ae = new On();
611
611
  }
612
- function It(o, h) {
613
- if (!o || Xe)
612
+ function It(s, h) {
613
+ if (!s || Xe)
614
614
  return "";
615
615
  {
616
- var k = Ae.get(o);
616
+ var k = Ae.get(s);
617
617
  if (k !== void 0)
618
618
  return k;
619
619
  }
@@ -638,14 +638,14 @@ function hr() {
638
638
  } catch (q) {
639
639
  w = q;
640
640
  }
641
- Reflect.construct(o, [], M);
641
+ Reflect.construct(s, [], M);
642
642
  } else {
643
643
  try {
644
644
  M.call();
645
645
  } catch (q) {
646
646
  w = q;
647
647
  }
648
- o.call(M.prototype);
648
+ s.call(M.prototype);
649
649
  }
650
650
  } else {
651
651
  try {
@@ -653,7 +653,7 @@ function hr() {
653
653
  } catch (q) {
654
654
  w = q;
655
655
  }
656
- o();
656
+ s();
657
657
  }
658
658
  } catch (q) {
659
659
  if (q && w && typeof q.stack == "string") {
@@ -668,7 +668,7 @@ function hr() {
668
668
  if (L--, G--, G < 0 || B[L] !== V[G]) {
669
669
  var Q = `
670
670
  ` + B[L].replace(" at new ", " at ");
671
- return o.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", o.displayName)), typeof o == "function" && Ae.set(o, Q), Q;
671
+ return s.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", s.displayName)), typeof s == "function" && Ae.set(s, Q), Q;
672
672
  }
673
673
  while (L >= 1 && G >= 0);
674
674
  break;
@@ -677,37 +677,37 @@ function hr() {
677
677
  } finally {
678
678
  Xe = !1, qe.current = P, Ln(), Error.prepareStackTrace = D;
679
679
  }
680
- var ke = o ? o.displayName || o.name : "", fe = ke ? Oe(ke) : "";
681
- return typeof o == "function" && Ae.set(o, fe), fe;
680
+ var ke = s ? s.displayName || s.name : "", fe = ke ? Oe(ke) : "";
681
+ return typeof s == "function" && Ae.set(s, fe), fe;
682
682
  }
683
- function An(o, h, k) {
684
- return It(o, !1);
683
+ function An(s, h, k) {
684
+ return It(s, !1);
685
685
  }
686
- function Gn(o) {
687
- var h = o.prototype;
686
+ function Gn(s) {
687
+ var h = s.prototype;
688
688
  return !!(h && h.isReactComponent);
689
689
  }
690
- function Ge(o, h, k) {
691
- if (o == null)
690
+ function Ge(s, h, k) {
691
+ if (s == null)
692
692
  return "";
693
- if (typeof o == "function")
694
- return It(o, Gn(o));
695
- if (typeof o == "string")
696
- return Oe(o);
697
- switch (o) {
693
+ if (typeof s == "function")
694
+ return It(s, Gn(s));
695
+ if (typeof s == "string")
696
+ return Oe(s);
697
+ switch (s) {
698
698
  case _:
699
699
  return Oe("Suspense");
700
700
  case u:
701
701
  return Oe("SuspenseList");
702
702
  }
703
- if (typeof o == "object")
704
- switch (o.$$typeof) {
703
+ if (typeof s == "object")
704
+ switch (s.$$typeof) {
705
705
  case d:
706
- return An(o.render);
706
+ return An(s.render);
707
707
  case f:
708
- return Ge(o.type, h, k);
709
- case x: {
710
- var w = o, D = w._payload, P = w._init;
708
+ return Ge(s.type, h, k);
709
+ case p: {
710
+ var w = s, D = w._payload, P = w._init;
711
711
  try {
712
712
  return Ge(P(D), h, k);
713
713
  } catch {
@@ -717,25 +717,25 @@ function hr() {
717
717
  return "";
718
718
  }
719
719
  var Te = Object.prototype.hasOwnProperty, Mt = {}, Nt = C.ReactDebugCurrentFrame;
720
- function ze(o) {
721
- if (o) {
722
- var h = o._owner, k = Ge(o.type, o._source, h ? h.type : null);
720
+ function ze(s) {
721
+ if (s) {
722
+ var h = s._owner, k = Ge(s.type, s._source, h ? h.type : null);
723
723
  Nt.setExtraStackFrame(k);
724
724
  } else
725
725
  Nt.setExtraStackFrame(null);
726
726
  }
727
- function zn(o, h, k, w, D) {
727
+ function zn(s, h, k, w, D) {
728
728
  {
729
729
  var P = Function.call.bind(Te);
730
- for (var M in o)
731
- if (P(o, M)) {
730
+ for (var M in s)
731
+ if (P(s, M)) {
732
732
  var B = void 0;
733
733
  try {
734
- if (typeof o[M] != "function") {
735
- var V = Error((w || "React class") + ": " + k + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
734
+ if (typeof s[M] != "function") {
735
+ var V = Error((w || "React class") + ": " + k + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
736
736
  throw V.name = "Invariant Violation", V;
737
737
  }
738
- B = o[M](h, M, w, k, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
738
+ B = s[M](h, M, w, k, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
739
739
  } catch (L) {
740
740
  B = L;
741
741
  }
@@ -744,28 +744,28 @@ function hr() {
744
744
  }
745
745
  }
746
746
  var Wn = Array.isArray;
747
- function Qe(o) {
748
- return Wn(o);
747
+ function Qe(s) {
748
+ return Wn(s);
749
749
  }
750
- function Kn(o) {
750
+ function Kn(s) {
751
751
  {
752
- var h = typeof Symbol == "function" && Symbol.toStringTag, k = h && o[Symbol.toStringTag] || o.constructor.name || "Object";
752
+ var h = typeof Symbol == "function" && Symbol.toStringTag, k = h && s[Symbol.toStringTag] || s.constructor.name || "Object";
753
753
  return k;
754
754
  }
755
755
  }
756
- function Zn(o) {
756
+ function Zn(s) {
757
757
  try {
758
- return Dt(o), !1;
758
+ return Dt(s), !1;
759
759
  } catch {
760
760
  return !0;
761
761
  }
762
762
  }
763
- function Dt(o) {
764
- return "" + o;
763
+ function Dt(s) {
764
+ return "" + s;
765
765
  }
766
- function Ft(o) {
767
- if (Zn(o))
768
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Kn(o)), Dt(o);
766
+ function Ft(s) {
767
+ if (Zn(s))
768
+ return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Kn(s)), Dt(s);
769
769
  }
770
770
  var Re = C.ReactCurrentOwner, Un = {
771
771
  key: !0,
@@ -774,56 +774,56 @@ function hr() {
774
774
  __source: !0
775
775
  }, Pt, $t, et;
776
776
  et = {};
777
- function Hn(o) {
778
- if (Te.call(o, "ref")) {
779
- var h = Object.getOwnPropertyDescriptor(o, "ref").get;
777
+ function Hn(s) {
778
+ if (Te.call(s, "ref")) {
779
+ var h = Object.getOwnPropertyDescriptor(s, "ref").get;
780
780
  if (h && h.isReactWarning)
781
781
  return !1;
782
782
  }
783
- return o.ref !== void 0;
783
+ return s.ref !== void 0;
784
784
  }
785
- function Yn(o) {
786
- if (Te.call(o, "key")) {
787
- var h = Object.getOwnPropertyDescriptor(o, "key").get;
785
+ function Yn(s) {
786
+ if (Te.call(s, "key")) {
787
+ var h = Object.getOwnPropertyDescriptor(s, "key").get;
788
788
  if (h && h.isReactWarning)
789
789
  return !1;
790
790
  }
791
- return o.key !== void 0;
791
+ return s.key !== void 0;
792
792
  }
793
- function Vn(o, h) {
794
- if (typeof o.ref == "string" && Re.current && h && Re.current.stateNode !== h) {
793
+ function Vn(s, h) {
794
+ if (typeof s.ref == "string" && Re.current && h && Re.current.stateNode !== h) {
795
795
  var k = S(Re.current.type);
796
- et[k] || (y('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', S(Re.current.type), o.ref), et[k] = !0);
796
+ et[k] || (y('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', S(Re.current.type), s.ref), et[k] = !0);
797
797
  }
798
798
  }
799
- function qn(o, h) {
799
+ function qn(s, h) {
800
800
  {
801
801
  var k = function() {
802
802
  Pt || (Pt = !0, y("%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)", h));
803
803
  };
804
- k.isReactWarning = !0, Object.defineProperty(o, "key", {
804
+ k.isReactWarning = !0, Object.defineProperty(s, "key", {
805
805
  get: k,
806
806
  configurable: !0
807
807
  });
808
808
  }
809
809
  }
810
- function Jn(o, h) {
810
+ function Jn(s, h) {
811
811
  {
812
812
  var k = function() {
813
813
  $t || ($t = !0, y("%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)", h));
814
814
  };
815
- k.isReactWarning = !0, Object.defineProperty(o, "ref", {
815
+ k.isReactWarning = !0, Object.defineProperty(s, "ref", {
816
816
  get: k,
817
817
  configurable: !0
818
818
  });
819
819
  }
820
820
  }
821
- var Xn = function(o, h, k, w, D, P, M) {
821
+ var Xn = function(s, h, k, w, D, P, M) {
822
822
  var B = {
823
823
  // This tag allows us to uniquely identify this as a React Element
824
824
  $$typeof: t,
825
825
  // Built-in properties that belong on the element
826
- type: o,
826
+ type: s,
827
827
  key: h,
828
828
  ref: k,
829
829
  props: M,
@@ -847,58 +847,58 @@ function hr() {
847
847
  value: D
848
848
  }), Object.freeze && (Object.freeze(B.props), Object.freeze(B)), B;
849
849
  };
850
- function Qn(o, h, k, w, D) {
850
+ function Qn(s, h, k, w, D) {
851
851
  {
852
852
  var P, M = {}, B = null, V = null;
853
853
  k !== void 0 && (Ft(k), B = "" + k), Yn(h) && (Ft(h.key), B = "" + h.key), Hn(h) && (V = h.ref, Vn(h, D));
854
854
  for (P in h)
855
855
  Te.call(h, P) && !Un.hasOwnProperty(P) && (M[P] = h[P]);
856
- if (o && o.defaultProps) {
857
- var L = o.defaultProps;
856
+ if (s && s.defaultProps) {
857
+ var L = s.defaultProps;
858
858
  for (P in L)
859
859
  M[P] === void 0 && (M[P] = L[P]);
860
860
  }
861
861
  if (B || V) {
862
- var G = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
862
+ var G = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
863
863
  B && qn(M, G), V && Jn(M, G);
864
864
  }
865
- return Xn(o, B, V, D, w, Re.current, M);
865
+ return Xn(s, B, V, D, w, Re.current, M);
866
866
  }
867
867
  }
868
868
  var tt = C.ReactCurrentOwner, Lt = C.ReactDebugCurrentFrame;
869
- function ve(o) {
870
- if (o) {
871
- var h = o._owner, k = Ge(o.type, o._source, h ? h.type : null);
869
+ function ve(s) {
870
+ if (s) {
871
+ var h = s._owner, k = Ge(s.type, s._source, h ? h.type : null);
872
872
  Lt.setExtraStackFrame(k);
873
873
  } else
874
874
  Lt.setExtraStackFrame(null);
875
875
  }
876
876
  var nt;
877
877
  nt = !1;
878
- function at(o) {
879
- return typeof o == "object" && o !== null && o.$$typeof === t;
878
+ function at(s) {
879
+ return typeof s == "object" && s !== null && s.$$typeof === t;
880
880
  }
881
881
  function Ot() {
882
882
  {
883
883
  if (tt.current) {
884
- var o = S(tt.current.type);
885
- if (o)
884
+ var s = S(tt.current.type);
885
+ if (s)
886
886
  return `
887
887
 
888
- Check the render method of \`` + o + "`.";
888
+ Check the render method of \`` + s + "`.";
889
889
  }
890
890
  return "";
891
891
  }
892
892
  }
893
- function ea(o) {
893
+ function ea(s) {
894
894
  return "";
895
895
  }
896
896
  var At = {};
897
- function ta(o) {
897
+ function ta(s) {
898
898
  {
899
899
  var h = Ot();
900
900
  if (!h) {
901
- var k = typeof o == "string" ? o : o.displayName || o.name;
901
+ var k = typeof s == "string" ? s : s.displayName || s.name;
902
902
  k && (h = `
903
903
 
904
904
  Check the top-level render call using <` + k + ">.");
@@ -906,41 +906,41 @@ Check the top-level render call using <` + k + ">.");
906
906
  return h;
907
907
  }
908
908
  }
909
- function Gt(o, h) {
909
+ function Gt(s, h) {
910
910
  {
911
- if (!o._store || o._store.validated || o.key != null)
911
+ if (!s._store || s._store.validated || s.key != null)
912
912
  return;
913
- o._store.validated = !0;
913
+ s._store.validated = !0;
914
914
  var k = ta(h);
915
915
  if (At[k])
916
916
  return;
917
917
  At[k] = !0;
918
918
  var w = "";
919
- o && o._owner && o._owner !== tt.current && (w = " It was passed a child from " + S(o._owner.type) + "."), ve(o), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', k, w), ve(null);
919
+ s && s._owner && s._owner !== tt.current && (w = " It was passed a child from " + S(s._owner.type) + "."), ve(s), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', k, w), ve(null);
920
920
  }
921
921
  }
922
- function zt(o, h) {
922
+ function zt(s, h) {
923
923
  {
924
- if (typeof o != "object")
924
+ if (typeof s != "object")
925
925
  return;
926
- if (Qe(o))
927
- for (var k = 0; k < o.length; k++) {
928
- var w = o[k];
926
+ if (Qe(s))
927
+ for (var k = 0; k < s.length; k++) {
928
+ var w = s[k];
929
929
  at(w) && Gt(w, h);
930
930
  }
931
- else if (at(o))
932
- o._store && (o._store.validated = !0);
933
- else if (o) {
934
- var D = p(o);
935
- if (typeof D == "function" && D !== o.entries)
936
- for (var P = D.call(o), M; !(M = P.next()).done; )
931
+ else if (at(s))
932
+ s._store && (s._store.validated = !0);
933
+ else if (s) {
934
+ var D = x(s);
935
+ if (typeof D == "function" && D !== s.entries)
936
+ for (var P = D.call(s), M; !(M = P.next()).done; )
937
937
  at(M.value) && Gt(M.value, h);
938
938
  }
939
939
  }
940
940
  }
941
- function na(o) {
941
+ function na(s) {
942
942
  {
943
- var h = o.type;
943
+ var h = s.type;
944
944
  if (h == null || typeof h == "string")
945
945
  return;
946
946
  var k;
@@ -954,7 +954,7 @@ Check the top-level render call using <` + k + ">.");
954
954
  return;
955
955
  if (k) {
956
956
  var w = S(h);
957
- zn(k, o.props, "prop", w, o);
957
+ zn(k, s.props, "prop", w, s);
958
958
  } else if (h.PropTypes !== void 0 && !nt) {
959
959
  nt = !0;
960
960
  var D = S(h);
@@ -963,31 +963,31 @@ Check the top-level render call using <` + k + ">.");
963
963
  typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
964
964
  }
965
965
  }
966
- function aa(o) {
966
+ function aa(s) {
967
967
  {
968
- for (var h = Object.keys(o.props), k = 0; k < h.length; k++) {
968
+ for (var h = Object.keys(s.props), k = 0; k < h.length; k++) {
969
969
  var w = h[k];
970
970
  if (w !== "children" && w !== "key") {
971
- ve(o), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), ve(null);
971
+ ve(s), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), ve(null);
972
972
  break;
973
973
  }
974
974
  }
975
- o.ref !== null && (ve(o), y("Invalid attribute `ref` supplied to `React.Fragment`."), ve(null));
975
+ s.ref !== null && (ve(s), y("Invalid attribute `ref` supplied to `React.Fragment`."), ve(null));
976
976
  }
977
977
  }
978
978
  var Wt = {};
979
- function Kt(o, h, k, w, D, P) {
979
+ function Kt(s, h, k, w, D, P) {
980
980
  {
981
- var M = I(o);
981
+ var M = I(s);
982
982
  if (!M) {
983
983
  var B = "";
984
- (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (B += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
984
+ (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (B += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
985
985
  var V = ea();
986
986
  V ? B += V : B += Ot();
987
987
  var L;
988
- o === null ? L = "null" : Qe(o) ? L = "array" : o !== void 0 && o.$$typeof === t ? (L = "<" + (S(o.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : L = typeof o, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, B);
988
+ s === null ? L = "null" : Qe(s) ? L = "array" : s !== void 0 && s.$$typeof === t ? (L = "<" + (S(s.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : L = typeof s, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, B);
989
989
  }
990
- var G = Qn(o, h, k, D, P);
990
+ var G = Qn(s, h, k, D, P);
991
991
  if (G == null)
992
992
  return G;
993
993
  if (M) {
@@ -996,15 +996,15 @@ Check the top-level render call using <` + k + ">.");
996
996
  if (w)
997
997
  if (Qe(Q)) {
998
998
  for (var ke = 0; ke < Q.length; ke++)
999
- zt(Q[ke], o);
999
+ zt(Q[ke], s);
1000
1000
  Object.freeze && Object.freeze(Q);
1001
1001
  } else
1002
1002
  y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1003
1003
  else
1004
- zt(Q, o);
1004
+ zt(Q, s);
1005
1005
  }
1006
1006
  if (Te.call(h, "key")) {
1007
- var fe = S(o), q = Object.keys(h).filter(function(ca) {
1007
+ var fe = S(s), q = Object.keys(h).filter(function(ca) {
1008
1008
  return ca !== "key";
1009
1009
  }), rt = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
1010
1010
  if (!Wt[fe + rt]) {
@@ -1017,25 +1017,25 @@ React keys must be passed directly to JSX without using spread:
1017
1017
  <%s key={someKey} {...props} />`, rt, fe, la, fe), Wt[fe + rt] = !0;
1018
1018
  }
1019
1019
  }
1020
- return o === r ? aa(G) : na(G), G;
1020
+ return s === r ? aa(G) : na(G), G;
1021
1021
  }
1022
1022
  }
1023
- function ra(o, h, k) {
1024
- return Kt(o, h, k, !0);
1023
+ function ra(s, h, k) {
1024
+ return Kt(s, h, k, !0);
1025
1025
  }
1026
- function sa(o, h, k) {
1027
- return Kt(o, h, k, !1);
1026
+ function ia(s, h, k) {
1027
+ return Kt(s, h, k, !1);
1028
1028
  }
1029
- var ia = sa, oa = ra;
1030
- Ie.Fragment = r, Ie.jsx = ia, Ie.jsxs = oa;
1029
+ var oa = ia, sa = ra;
1030
+ Ie.Fragment = r, Ie.jsx = oa, Ie.jsxs = sa;
1031
1031
  }()), Ie;
1032
1032
  }
1033
1033
  process.env.NODE_ENV === "production" ? _t.exports = mr() : _t.exports = hr();
1034
1034
  var n = _t.exports;
1035
- const gr = "_notice_9i5tr_2", pr = "_error_9i5tr_9", xr = "_success_9i5tr_12", vr = "_remark_9i5tr_15", kr = "_copy_9i5tr_18", br = {
1035
+ const gr = "_notice_9i5tr_2", xr = "_error_9i5tr_9", pr = "_success_9i5tr_12", vr = "_remark_9i5tr_15", kr = "_copy_9i5tr_18", br = {
1036
1036
  notice: gr,
1037
- error: pr,
1038
- success: xr,
1037
+ error: xr,
1038
+ success: pr,
1039
1039
  remark: vr,
1040
1040
  copy: kr,
1041
1041
  "show-notice": "_show-notice_9i5tr_1",
@@ -1059,27 +1059,27 @@ function Fe({ data: e }) {
1059
1059
  _e.del(e.key);
1060
1060
  }, 2500);
1061
1061
  }, [e.key]);
1062
- let r, s;
1062
+ let r, i;
1063
1063
  switch (e.type) {
1064
1064
  case "error":
1065
- r = /* @__PURE__ */ n.jsx(me.error, {}), s = "Ошибка:";
1065
+ r = /* @__PURE__ */ n.jsx(me.error, {}), i = "Ошибка:";
1066
1066
  break;
1067
1067
  case "success":
1068
- r = /* @__PURE__ */ n.jsx(me.success, {}), s = "Информация:";
1068
+ r = /* @__PURE__ */ n.jsx(me.success, {}), i = "Информация:";
1069
1069
  break;
1070
1070
  case "copy":
1071
- r = /* @__PURE__ */ n.jsx(me.success, {}), s = "Копирование:";
1071
+ r = /* @__PURE__ */ n.jsx(me.success, {}), i = "Копирование:";
1072
1072
  break;
1073
1073
  case "remark":
1074
- r = /* @__PURE__ */ n.jsx(me.success, {}), s = "Подсказка:";
1074
+ r = /* @__PURE__ */ n.jsx(me.success, {}), i = "Подсказка:";
1075
1075
  break;
1076
1076
  default:
1077
- r = /* @__PURE__ */ n.jsx(me.success, {}), s = "Предупреждение:";
1077
+ r = /* @__PURE__ */ n.jsx(me.success, {}), i = "Предупреждение:";
1078
1078
  break;
1079
1079
  }
1080
1080
  return /* @__PURE__ */ n.jsxs("li", { className: "item " + e.type, "data-status": t, children: [
1081
1081
  r,
1082
- /* @__PURE__ */ n.jsx("b", { children: s }),
1082
+ /* @__PURE__ */ n.jsx("b", { children: i }),
1083
1083
  /* @__PURE__ */ n.jsx("p", { children: e.text })
1084
1084
  ] });
1085
1085
  }
@@ -1175,11 +1175,11 @@ const Pr = "_btn_1hz2s_6", $r = "_confirm_1hz2s_19", Yt = {
1175
1175
  confirm: $r
1176
1176
  };
1177
1177
  function Lr({ onClick: e, onSend: t, label: a, onRef: r }) {
1178
- let [s, i] = b.useState(!1);
1178
+ let [i, o] = b.useState(!1);
1179
1179
  const l = () => {
1180
1180
  if (e)
1181
1181
  return e();
1182
- s || (i(!0), t && t(i));
1182
+ i || (o(!0), t && t(o));
1183
1183
  };
1184
1184
  return /* @__PURE__ */ n.jsx(
1185
1185
  "button",
@@ -1187,11 +1187,11 @@ function Lr({ onClick: e, onSend: t, label: a, onRef: r }) {
1187
1187
  ref: r,
1188
1188
  className: [Yt.btn, Yt.confirm].join(" "),
1189
1189
  onClick: l,
1190
- children: s ? "Ожидайте" : a
1190
+ children: i ? "Ожидайте" : a
1191
1191
  }
1192
1192
  );
1193
1193
  }
1194
- const Or = "_white_11p39_14", Ar = "_black_11p39_26", Gr = "_shake_11p39_1", zr = "_modal_11p39_73", Wr = "_o_11p39_83", Kr = "_w_11p39_14", Zr = "_h_11p39_107", Ur = "_l_11p39_121", Hr = "_t_11p39_159", Yr = "_m_11p39_73", Vr = "_x_11p39_167", qr = "_s_11p39_177", Jr = "_c_11p39_182", Xr = "_f_11p39_187", Qr = "_btn_11p39_230", es = "_g_11p39_243", ts = "_confirm_11p39_322", ns = "_cancel_11p39_327", as = "_disabled_11p39_332", rs = "_active_11p39_389", ss = "_coincidence_11p39_395", is = "_sa_11p39_431", os = "_ss_11p39_435", ls = "_sm_11p39_439", cs = "_sl_11p39_443", _s = "_sx_11p39_447", ds = "_sf_11p39_451", ne = {
1194
+ const Or = "_white_11p39_14", Ar = "_black_11p39_26", Gr = "_shake_11p39_1", zr = "_modal_11p39_73", Wr = "_o_11p39_83", Kr = "_w_11p39_14", Zr = "_h_11p39_107", Ur = "_l_11p39_121", Hr = "_t_11p39_159", Yr = "_m_11p39_73", Vr = "_x_11p39_167", qr = "_s_11p39_177", Jr = "_c_11p39_182", Xr = "_f_11p39_187", Qr = "_btn_11p39_230", ei = "_g_11p39_243", ti = "_confirm_11p39_322", ni = "_cancel_11p39_327", ai = "_disabled_11p39_332", ri = "_active_11p39_389", ii = "_coincidence_11p39_395", oi = "_sa_11p39_431", si = "_ss_11p39_435", li = "_sm_11p39_439", ci = "_sl_11p39_443", _i = "_sx_11p39_447", di = "_sf_11p39_451", ne = {
1195
1195
  white: Or,
1196
1196
  black: Ar,
1197
1197
  shake: Gr,
@@ -1207,28 +1207,28 @@ const Or = "_white_11p39_14", Ar = "_black_11p39_26", Gr = "_shake_11p39_1", zr
1207
1207
  c: Jr,
1208
1208
  f: Xr,
1209
1209
  btn: Qr,
1210
- g: es,
1210
+ g: ei,
1211
1211
  "size-a": "_size-a_11p39_296",
1212
1212
  "size-s": "_size-s_11p39_300",
1213
1213
  "size-m": "_size-m_11p39_304",
1214
1214
  "size-l": "_size-l_11p39_308",
1215
1215
  "size-x": "_size-x_11p39_312",
1216
1216
  "size-f": "_size-f_11p39_316",
1217
- confirm: ts,
1218
- cancel: ns,
1219
- disabled: as,
1217
+ confirm: ti,
1218
+ cancel: ni,
1219
+ disabled: ai,
1220
1220
  await: "_await_11p39_339",
1221
- active: rs,
1222
- coincidence: ss,
1223
- sa: is,
1224
- ss: os,
1225
- sm: ls,
1226
- sl: cs,
1227
- sx: _s,
1228
- sf: ds
1221
+ active: ri,
1222
+ coincidence: ii,
1223
+ sa: oi,
1224
+ ss: si,
1225
+ sm: li,
1226
+ sl: ci,
1227
+ sx: _i,
1228
+ sf: di
1229
1229
  };
1230
1230
  let ge = {};
1231
- function us({ config: e }) {
1231
+ function ui({ config: e }) {
1232
1232
  let [t, a] = b.useState([]);
1233
1233
  return ge.x = (r) => {
1234
1234
  r || a([]);
@@ -1236,13 +1236,13 @@ function us({ config: e }) {
1236
1236
  a([...t, r]);
1237
1237
  }, /* @__PURE__ */ n.jsx(n.Fragment, { children: t.map((r) => r) });
1238
1238
  }
1239
- function fs({
1239
+ function fi({
1240
1240
  title: e,
1241
1241
  children: t,
1242
1242
  button: a,
1243
1243
  tabs: r,
1244
- size: s = "m",
1245
- menu: i
1244
+ size: i = "m",
1245
+ menu: o
1246
1246
  }) {
1247
1247
  const [l, c] = b.useState(!0), d = b.useRef(), _ = (f) => {
1248
1248
  if (a) {
@@ -1268,22 +1268,22 @@ function fs({
1268
1268
  /* @__PURE__ */ n.jsxs(
1269
1269
  "div",
1270
1270
  {
1271
- className: [ne.w, ne[`s${s}`]].join(" "),
1271
+ className: [ne.w, ne[`s${i}`]].join(" "),
1272
1272
  ref: d,
1273
1273
  children: [
1274
1274
  /* @__PURE__ */ n.jsxs("div", { className: ne.h, children: [
1275
1275
  /* @__PURE__ */ n.jsx("div", { className: ne.t, children: e }),
1276
1276
  /* @__PURE__ */ n.jsxs("div", { className: ne.m, children: [
1277
- r && /* @__PURE__ */ n.jsx("nav", { children: r.map((f, x) => /* @__PURE__ */ n.jsx(
1277
+ r && /* @__PURE__ */ n.jsx("nav", { children: r.map((f, p) => /* @__PURE__ */ n.jsx(
1278
1278
  "span",
1279
1279
  {
1280
1280
  onClick: f.onClick,
1281
1281
  className: f.active ? "active" : "",
1282
1282
  children: f.name
1283
1283
  },
1284
- x
1284
+ p
1285
1285
  )) }),
1286
- i
1286
+ o
1287
1287
  ] }),
1288
1288
  /* @__PURE__ */ n.jsx(
1289
1289
  "div",
@@ -1314,13 +1314,13 @@ function fs({
1314
1314
  }
1315
1315
  ) : "" });
1316
1316
  }
1317
- function ms(e) {
1318
- ge.add(/* @__PURE__ */ n.jsx(hs, { children: e }, String(Date.now())));
1317
+ function mi(e) {
1318
+ ge.add(/* @__PURE__ */ n.jsx(hi, { children: e }, String(Date.now())));
1319
1319
  }
1320
- function hs({ children: e }) {
1320
+ function hi({ children: e }) {
1321
1321
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
1322
1322
  }
1323
- function gs(e) {
1323
+ function gi(e) {
1324
1324
  if (e.target.classList[0] !== "modal")
1325
1325
  return;
1326
1326
  let t = e.target.children[0];
@@ -1328,27 +1328,27 @@ function gs(e) {
1328
1328
  t.setAttribute("shake", !1);
1329
1329
  }, 1e3);
1330
1330
  }
1331
- function ps({ type: e, name: t, params: a }) {
1332
- let [r, s] = b.useState(null);
1331
+ function xi({ type: e, name: t, params: a }) {
1332
+ let [r, i] = b.useState(null);
1333
1333
  return b.useEffect(() => {
1334
- ge.config(e, t, a, s);
1334
+ ge.config(e, t, a, i);
1335
1335
  }, [a.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: r });
1336
1336
  }
1337
- function xs(e, t) {
1337
+ function pi(e, t) {
1338
1338
  ge.config(e, t);
1339
1339
  }
1340
- function vs(e) {
1340
+ function vi(e) {
1341
1341
  ge.x(e);
1342
1342
  }
1343
1343
  const ut = {};
1344
- function ks(e, t) {
1344
+ function ki(e, t) {
1345
1345
  ut[e] = t;
1346
1346
  }
1347
- function bs(e, t) {
1347
+ function bi(e, t) {
1348
1348
  ut[e] !== void 0 && ut[e](t);
1349
1349
  }
1350
1350
  const le = {};
1351
- function Cs(e, t) {
1351
+ function Ci(e, t) {
1352
1352
  const [a, r] = b.useState(t);
1353
1353
  return b.useEffect(() => {
1354
1354
  if (le[e])
@@ -1356,16 +1356,16 @@ function Cs(e, t) {
1356
1356
  le[e] = [r];
1357
1357
  }, []), [a];
1358
1358
  }
1359
- function js(e, t) {
1359
+ function ji(e, t) {
1360
1360
  if (le[e])
1361
1361
  return le[e].push(t);
1362
1362
  le[e] = [t];
1363
1363
  }
1364
- function ys(e, t) {
1364
+ function yi(e, t) {
1365
1365
  le[e] && le[e].forEach((a) => a(t));
1366
1366
  }
1367
- const He = { setListener: bs, useListener: ks, setEmitter: ys, useEmitter: Cs, subEmitter: js };
1368
- function ws() {
1367
+ const He = { setListener: bi, useListener: ki, setEmitter: yi, useEmitter: Ci, subEmitter: ji };
1368
+ function wi() {
1369
1369
  let [e, t] = b.useState([]);
1370
1370
  return He.useListener("form", (a) => {
1371
1371
  t([a]);
@@ -1388,7 +1388,7 @@ const je = {
1388
1388
  useId: Na,
1389
1389
  setId: Fa,
1390
1390
  subId: Da,
1391
- getId: sn,
1391
+ getId: on,
1392
1392
  isId: Pa
1393
1393
  }, Ke = { Send: jr, Error: yr, Remark: Sr, Success: wr, Copy: Er }, hn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
1394
1394
  "div",
@@ -1399,30 +1399,30 @@ const je = {
1399
1399
  }
1400
1400
  ));
1401
1401
  function gn({ onClick: e, onSend: t, name: a, onRef: r }) {
1402
- let [s, i] = b.useState(!1);
1402
+ let [i, o] = b.useState(!1);
1403
1403
  const l = () => {
1404
1404
  if (e)
1405
1405
  return e();
1406
- s || (i(!0), t && t(i));
1406
+ i || (o(!0), t && t(o));
1407
1407
  };
1408
1408
  return /* @__PURE__ */ n.jsx(
1409
1409
  "button",
1410
1410
  {
1411
1411
  ref: r,
1412
1412
  "data-form": "button",
1413
- className: s ? "btn await" : "btn confirm pointer",
1413
+ className: i ? "btn await" : "btn confirm pointer",
1414
1414
  onClick: l,
1415
- children: s ? "Ожидайте" : a
1415
+ children: i ? "Ожидайте" : a
1416
1416
  }
1417
1417
  );
1418
1418
  }
1419
- function pn({
1419
+ function xn({
1420
1420
  value: e,
1421
1421
  onValue: t,
1422
1422
  onActive: a,
1423
1423
  data: r,
1424
- name: s,
1425
- view: i,
1424
+ name: i,
1425
+ view: o,
1426
1426
  edit: l = !0,
1427
1427
  active: c = !0,
1428
1428
  placeholder: d = "Введите сообщение"
@@ -1438,7 +1438,7 @@ function pn({
1438
1438
  }, 3e3)) : a(!1);
1439
1439
  }, f = (C) => {
1440
1440
  _.current.value = C.target.textContent, u();
1441
- }, x = (C) => {
1441
+ }, p = (C) => {
1442
1442
  C.keyCode === 16 && (_.current.shift = !0), C.keyCode === 13 && !_.current.shift && (C.preventDefault(), _.current.value.length !== 0 && (C.target.textContent = "", r && r(_.current.value), t && t(_.current.value), _.current.value = "", a(!1)));
1443
1443
  }, m = (C) => {
1444
1444
  C.keyCode === 16 && (_.current.shift = !1);
@@ -1449,25 +1449,25 @@ function pn({
1449
1449
  });
1450
1450
  }, v = () => {
1451
1451
  a(!1);
1452
- }, p = {
1452
+ }, x = {
1453
1453
  spellCheck: "true"
1454
1454
  };
1455
- return d && (p.placeholder = d), l && c && (p.contentEditable = "plaintext-only"), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
1455
+ return d && (x.placeholder = d), l && c && (x.contentEditable = "plaintext-only"), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
1456
1456
  "dd",
1457
1457
  {
1458
1458
  onPaste: g,
1459
1459
  onInput: f,
1460
1460
  onKeyUp: m,
1461
- onKeyDown: x,
1461
+ onKeyDown: p,
1462
1462
  onBlur: v,
1463
- ...p,
1463
+ ...x,
1464
1464
  suppressContentEditableWarning: !0,
1465
1465
  children: e
1466
1466
  }
1467
1467
  ) });
1468
1468
  }
1469
- function xn(e) {
1470
- 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) => {
1469
+ function pn(e) {
1470
+ let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", o = (d) => {
1471
1471
  e.onValue({ value: d.target.textContent, name: e.name });
1472
1472
  }, l = (d) => {
1473
1473
  d.key === "Enter" && d.preventDefault();
@@ -1483,10 +1483,10 @@ function xn(e) {
1483
1483
  "dd",
1484
1484
  {
1485
1485
  onPaste: c,
1486
- onInput: i,
1486
+ onInput: o,
1487
1487
  onKeyDown: l,
1488
1488
  contentEditable: a && r ? "plaintext-only" : "false",
1489
- "data-placeholder": s,
1489
+ "data-placeholder": i,
1490
1490
  suppressContentEditableWarning: !0,
1491
1491
  children: e.value
1492
1492
  }
@@ -1510,7 +1510,7 @@ ue.Blur = (e) => {
1510
1510
  e.target.scrollLeft = 0, e.target.querySelector("br") !== null && e.target.querySelector("br").remove();
1511
1511
  };
1512
1512
  function vn({ value: e, onValue: t, placeholder: a = "", name: r }) {
1513
- let s = (m, g) => Number(Math.round(m + Math.random() * (g - m))), i = b.useRef(null), l = b.useRef(null), c = s(1e4, 99999), d = (m) => {
1513
+ let i = (m, g) => Number(Math.round(m + Math.random() * (g - m))), o = b.useRef(null), l = b.useRef(null), c = i(1e4, 99999), d = (m) => {
1514
1514
  m.key !== "Backspace" && (m.key === "Enter" && m.preventDefault(), m.target.textContent.length === 5 && m.preventDefault(), /\d/.test(m.key) || m.preventDefault());
1515
1515
  }, _ = (m) => {
1516
1516
  t({ value: Number(m.target.textContent) === c, name: r });
@@ -1525,13 +1525,13 @@ function vn({ value: e, onValue: t, placeholder: a = "", name: r }) {
1525
1525
  });
1526
1526
  };
1527
1527
  b.useEffect(() => {
1528
- const m = i.current, g = m.getContext("2d");
1528
+ const m = o.current, g = m.getContext("2d");
1529
1529
  g.clearRect(0, 0, m.width, m.height), g.font = "30px brush script mt", g.fillStyle = "#eee", g.textAlign = "center", g.fillText(c, 50, 27), l.current.textContent = "";
1530
1530
  }, [c]);
1531
1531
  const f = {};
1532
1532
  f.field = "captcha";
1533
- const x = {};
1534
- return a && (x.placeholder = a), /* @__PURE__ */ n.jsxs("dl", { ...f, children: [
1533
+ const p = {};
1534
+ return a && (p.placeholder = a), /* @__PURE__ */ n.jsxs("dl", { ...f, children: [
1535
1535
  /* @__PURE__ */ n.jsx(
1536
1536
  "dd",
1537
1537
  {
@@ -1542,10 +1542,10 @@ function vn({ value: e, onValue: t, placeholder: a = "", name: r }) {
1542
1542
  onKeyDown: d,
1543
1543
  contentEditable: "plaintext-only",
1544
1544
  suppressContentEditableWarning: !0,
1545
- ...x
1545
+ ...p
1546
1546
  }
1547
1547
  ),
1548
- /* @__PURE__ */ n.jsx("canvas", { ref: i, width: "100", height: "35" })
1548
+ /* @__PURE__ */ n.jsx("canvas", { ref: o, width: "100", height: "35" })
1549
1549
  ] });
1550
1550
  }
1551
1551
  function kn(e) {
@@ -1557,7 +1557,7 @@ function kn(e) {
1557
1557
  n5: "",
1558
1558
  n6: "",
1559
1559
  code: ""
1560
- }, s = (_) => {
1560
+ }, i = (_) => {
1561
1561
  _.preventDefault(), _.target.textContent = _.target.textContent.slice(-1).replace(/[^+\d]/g, "");
1562
1562
  let u = window.getSelection(), f = _.target.textContent.length;
1563
1563
  if (r[_.target.id] = _.target.textContent, r.code = r.n1 + "" + r.n2 + r.n3 + r.n4 + r.n5 + r.n6, u.collapse(_.target.firstChild, 1), f === 0) {
@@ -1565,7 +1565,7 @@ function kn(e) {
1565
1565
  return;
1566
1566
  }
1567
1567
  _.target.nextSibling != null && _.target.nextSibling.focus();
1568
- }, i = (_) => {
1568
+ }, o = (_) => {
1569
1569
  if (_.key === "Enter" && _.preventDefault(), _.key === "Backspace") {
1570
1570
  if (_.preventDefault(), _.target.textContent = "", r[_.target.id] = "", _.target.previousSibling != null) {
1571
1571
  let u = _.target.previousSibling.id.slice(1);
@@ -1607,11 +1607,11 @@ function kn(e) {
1607
1607
  "dd",
1608
1608
  {
1609
1609
  id: "n1",
1610
- onKeyDown: i,
1610
+ onKeyDown: o,
1611
1611
  onKeyUp: l,
1612
1612
  onFocus: c,
1613
1613
  onPaste: d,
1614
- onInput: s,
1614
+ onInput: i,
1615
1615
  contentEditable: !0
1616
1616
  }
1617
1617
  ),
@@ -1619,11 +1619,11 @@ function kn(e) {
1619
1619
  "dd",
1620
1620
  {
1621
1621
  id: "n2",
1622
- onKeyDown: i,
1622
+ onKeyDown: o,
1623
1623
  onKeyUp: l,
1624
1624
  onFocus: c,
1625
1625
  onPaste: d,
1626
- onInput: s,
1626
+ onInput: i,
1627
1627
  contentEditable: !0
1628
1628
  }
1629
1629
  ),
@@ -1631,11 +1631,11 @@ function kn(e) {
1631
1631
  "dd",
1632
1632
  {
1633
1633
  id: "n3",
1634
- onKeyDown: i,
1634
+ onKeyDown: o,
1635
1635
  onKeyUp: l,
1636
1636
  onFocus: c,
1637
1637
  onPaste: d,
1638
- onInput: s,
1638
+ onInput: i,
1639
1639
  contentEditable: !0
1640
1640
  }
1641
1641
  ),
@@ -1643,11 +1643,11 @@ function kn(e) {
1643
1643
  "dd",
1644
1644
  {
1645
1645
  id: "n4",
1646
- onKeyDown: i,
1646
+ onKeyDown: o,
1647
1647
  onKeyUp: l,
1648
1648
  onFocus: c,
1649
1649
  onPaste: d,
1650
- onInput: s,
1650
+ onInput: i,
1651
1651
  contentEditable: !0
1652
1652
  }
1653
1653
  ),
@@ -1655,11 +1655,11 @@ function kn(e) {
1655
1655
  "dd",
1656
1656
  {
1657
1657
  id: "n5",
1658
- onKeyDown: i,
1658
+ onKeyDown: o,
1659
1659
  onKeyUp: l,
1660
1660
  onFocus: c,
1661
1661
  onPaste: d,
1662
- onInput: s,
1662
+ onInput: i,
1663
1663
  contentEditable: !0
1664
1664
  }
1665
1665
  ),
@@ -1667,11 +1667,11 @@ function kn(e) {
1667
1667
  "dd",
1668
1668
  {
1669
1669
  id: "n6",
1670
- onKeyDown: i,
1670
+ onKeyDown: o,
1671
1671
  onKeyUp: l,
1672
1672
  onFocus: c,
1673
1673
  onPaste: d,
1674
- onInput: s,
1674
+ onInput: i,
1675
1675
  contentEditable: !0
1676
1676
  }
1677
1677
  )
@@ -1684,9 +1684,9 @@ function kn(e) {
1684
1684
  function bn(e) {
1685
1685
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "";
1686
1686
  e.edit !== void 0 && e.edit, e.active !== void 0 && e.active;
1687
- let [r, s] = b.useState(e.value), i = (l) => {
1687
+ let [r, i] = b.useState(e.value), o = (l) => {
1688
1688
  let c = l.target.getAttribute("set-color");
1689
- s(c), e.onValue({ value: c, name: e.name });
1689
+ i(c), e.onValue({ value: c, name: e.name });
1690
1690
  };
1691
1691
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: e.view === "icon" ? /* @__PURE__ */ n.jsx(
1692
1692
  "i",
@@ -1699,31 +1699,31 @@ function bn(e) {
1699
1699
  children: [
1700
1700
  t(),
1701
1701
  /* @__PURE__ */ n.jsxs("dd", { "el-val": r, children: [
1702
- /* @__PURE__ */ n.jsx("em", { onClick: i, "set-color": "0" }),
1703
- /* @__PURE__ */ n.jsx("em", { onClick: i, "set-color": "1" }),
1704
- /* @__PURE__ */ n.jsx("em", { onClick: i, "set-color": "2" }),
1705
- /* @__PURE__ */ n.jsx("em", { onClick: i, "set-color": "3" }),
1706
- /* @__PURE__ */ n.jsx("em", { onClick: i, "set-color": "4" }),
1707
- /* @__PURE__ */ n.jsx("em", { onClick: i, "set-color": "5" })
1702
+ /* @__PURE__ */ n.jsx("em", { onClick: o, "set-color": "0" }),
1703
+ /* @__PURE__ */ n.jsx("em", { onClick: o, "set-color": "1" }),
1704
+ /* @__PURE__ */ n.jsx("em", { onClick: o, "set-color": "2" }),
1705
+ /* @__PURE__ */ n.jsx("em", { onClick: o, "set-color": "3" }),
1706
+ /* @__PURE__ */ n.jsx("em", { onClick: o, "set-color": "4" }),
1707
+ /* @__PURE__ */ n.jsx("em", { onClick: o, "set-color": "5" })
1708
1708
  ] }),
1709
1709
  a()
1710
1710
  ]
1711
1711
  }
1712
1712
  ) });
1713
1713
  }
1714
- function vt({ label: e, value: t, placeholder: a, onValue: r, name: s }) {
1715
- const i = "__.__.____", l = new Set("_"), c = ((g) => Array.from(i, (v, p) => l.has(v) ? g = p + 1 : g))(0), d = [...i].findIndex((g) => l.has(g)), _ = new RegExp("\\d", "g"), u = (g) => (g = g.match(_) || [], Array.from(
1716
- i,
1714
+ function vt({ label: e, value: t, placeholder: a, onValue: r, name: i }) {
1715
+ const o = "__.__.____", l = new Set("_"), c = ((g) => Array.from(o, (v, x) => l.has(v) ? g = x + 1 : g))(0), d = [...o].findIndex((g) => l.has(g)), _ = new RegExp("\\d", "g"), u = (g) => (g = g.match(_) || [], Array.from(
1716
+ o,
1717
1717
  (v) => (g[0] === v || l.has(v)) && g.shift() || v
1718
1718
  )), f = (g) => {
1719
- const [v, p] = [g.target.selectionStart, g.target.selectionEnd].map(
1719
+ const [v, x] = [g.target.selectionStart, g.target.selectionEnd].map(
1720
1720
  (C) => (C = u(g.target.value.slice(0, C)).findIndex(
1721
1721
  (y) => l.has(y)
1722
- ), C < 0 ? c[c.length - 1] : x ? c[C - 1] || d : C)
1722
+ ), C < 0 ? c[c.length - 1] : p ? c[C - 1] || d : C)
1723
1723
  );
1724
- g.target.value = u(g.target.value).join(""), g.target.setSelectionRange(v, p), x = !1, r == null || r({ name: s, value: g.target.value });
1724
+ g.target.value = u(g.target.value).join(""), g.target.setSelectionRange(v, x), p = !1, r == null || r({ name: i, value: g.target.value });
1725
1725
  };
1726
- let x = !1;
1726
+ let p = !1;
1727
1727
  const m = {};
1728
1728
  return m.field = "input", /* @__PURE__ */ n.jsxs("dl", { ...m, children: [
1729
1729
  /* @__PURE__ */ n.jsx("dt", {}),
@@ -1734,60 +1734,60 @@ function vt({ label: e, value: t, placeholder: a, onValue: r, name: s }) {
1734
1734
  placeholder: a,
1735
1735
  onChange: f,
1736
1736
  inputMode: "numeric",
1737
- onKeyDown: (g) => x = g.key === "Backspace",
1737
+ onKeyDown: (g) => p = g.key === "Backspace",
1738
1738
  onFocus: f,
1739
- onBlur: (g) => g.target.value === i && (g.target.value = "")
1739
+ onBlur: (g) => g.target.value === o && (g.target.value = "")
1740
1740
  }
1741
1741
  ) })
1742
1742
  ] });
1743
1743
  }
1744
- function Ss({ children: e }) {
1744
+ function Si({ children: e }) {
1745
1745
  return /* @__PURE__ */ n.jsx("div", { className: "l", children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
1746
1746
  }
1747
- function Es({ children: e }) {
1747
+ function Ei({ children: e }) {
1748
1748
  return /* @__PURE__ */ n.jsx("div", { className: ne.s, children: e });
1749
1749
  }
1750
- function Ts({ children: e, className: t }) {
1750
+ function Ti({ children: e, className: t }) {
1751
1751
  let a = {};
1752
1752
  return t && (a.className = t), /* @__PURE__ */ n.jsx("div", { "data-form": "outline", ...a, children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
1753
1753
  }
1754
- function Rs({ children: e }) {
1754
+ function Ri({ children: e }) {
1755
1755
  return /* @__PURE__ */ n.jsx("div", { className: ne.c, children: e });
1756
1756
  }
1757
1757
  const Cn = {
1758
- List: Ss,
1759
- Scroll: Es,
1760
- Main: fs,
1761
- Add: ms,
1762
- Icon: ps,
1763
- Open: xs,
1764
- Shake: gs,
1765
- Form: Ts,
1766
- Center: Rs,
1767
- Close: vs
1758
+ List: Si,
1759
+ Scroll: Ei,
1760
+ Main: fi,
1761
+ Add: mi,
1762
+ Icon: xi,
1763
+ Open: pi,
1764
+ Shake: gi,
1765
+ Form: Ti,
1766
+ Center: Ri,
1767
+ Close: vi
1768
1768
  };
1769
1769
  function kt({
1770
1770
  value: e,
1771
1771
  onValue: t,
1772
1772
  name: a,
1773
1773
  placeholder: r = "",
1774
- title: s,
1775
- error: i,
1774
+ title: i,
1775
+ error: o,
1776
1776
  hide: l = !1,
1777
1777
  edit: c = !0,
1778
1778
  show: d = !0,
1779
1779
  active: _ = !0,
1780
1780
  after: u = "",
1781
1781
  view: f,
1782
- modal: x,
1782
+ modal: p,
1783
1783
  module: m,
1784
1784
  options: g,
1785
1785
  className: v
1786
1786
  }) {
1787
- let [p, C] = b.useState(e), y = (F) => {
1788
- if (!(c && _) || !x)
1787
+ let [x, C] = b.useState(e), y = (F) => {
1788
+ if (!(c && _) || !p)
1789
1789
  return;
1790
- let A = x.split(".");
1790
+ let A = p.split(".");
1791
1791
  Cn.Open(A[1], {
1792
1792
  callback: (K) => {
1793
1793
  t && t({ value: K, name: a }), C(K);
@@ -1802,7 +1802,7 @@ function kt({
1802
1802
  T.field = "input", v && (T.className = v);
1803
1803
  const R = {};
1804
1804
  return r && (R.placeholder = r), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...T, children: [
1805
- s && /* @__PURE__ */ n.jsx("dt", { children: s }),
1805
+ i && /* @__PURE__ */ n.jsx("dt", { children: i }),
1806
1806
  /* @__PURE__ */ n.jsx(
1807
1807
  "dd",
1808
1808
  {
@@ -1810,13 +1810,13 @@ function kt({
1810
1810
  onClick: y,
1811
1811
  edit: (c && _) + "",
1812
1812
  "data-after": u,
1813
- children: p
1813
+ children: x
1814
1814
  }
1815
1815
  ),
1816
- i && /* @__PURE__ */ n.jsx("em", { children: i })
1816
+ o && /* @__PURE__ */ n.jsx("em", { children: o })
1817
1817
  ] });
1818
1818
  }
1819
- function Bs(e, t) {
1819
+ function Bi(e, t) {
1820
1820
  t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
1821
1821
  let a = {
1822
1822
  yyyy: e.getFullYear(),
@@ -1833,7 +1833,7 @@ function Bs(e, t) {
1833
1833
  t = t.replace(r, a[r]);
1834
1834
  return t;
1835
1835
  }
1836
- function Is(e) {
1836
+ function Ii(e) {
1837
1837
  let t = [
1838
1838
  "Января",
1839
1839
  "Февраля",
@@ -1853,7 +1853,7 @@ function Is(e) {
1853
1853
  name: a.getDate() + " " + t[a.getMonth()]
1854
1854
  };
1855
1855
  }
1856
- const Ms = (e) => {
1856
+ const Mi = (e) => {
1857
1857
  function t(T, R) {
1858
1858
  var F, K, A;
1859
1859
  T = T ?? "", R = R ?? 1;
@@ -1927,7 +1927,7 @@ const Ms = (e) => {
1927
1927
  u3: ["тысяча", "тысячи", "тысяч"],
1928
1928
  u2: ["миллион", "миллиона", "миллионов"],
1929
1929
  u1: ["миллиард", "миллиарда", "миллиардов"]
1930
- }, s, i, l, c, p, d, _, v, u, f, x, m;
1930
+ }, i, o, l, c, x, d, _, v, u, f, p, m;
1931
1931
  u = parseFloat(e).toFixed(2).split("."), d = u[0], c = u[1];
1932
1932
  var g = 12 - d.length;
1933
1933
  if (g < 0)
@@ -1935,35 +1935,35 @@ const Ms = (e) => {
1935
1935
  for (var v = []; g--; )
1936
1936
  v.push("0");
1937
1937
  d = v.join("") + d;
1938
- var p = [];
1938
+ var x = [];
1939
1939
  if (d > 0) {
1940
1940
  f = t(d, 3);
1941
1941
  for (var C = -1; C < f.length; C++)
1942
- if (_ = f[C], _ > 0 && (x = t(_, 1), s = parseInt(x[0]), i = parseInt(x[1]), l = parseInt(x[2]), p.push(r.a100[s - 1]), m = C + 1 == 3 ? "a2" : "a1", i > 1 ? p.push(
1943
- r.a20[i - 2] + (l > 0 ? " " + r[m][l - 1] : "")
1944
- ) : p.push(
1945
- i > 0 ? r.a10[l] : r[m][l - 1]
1942
+ if (_ = f[C], _ > 0 && (p = t(_, 1), i = parseInt(p[0]), o = parseInt(p[1]), l = parseInt(p[2]), x.push(r.a100[i - 1]), m = C + 1 == 3 ? "a2" : "a1", o > 1 ? x.push(
1943
+ r.a20[o - 2] + (l > 0 ? " " + r[m][l - 1] : "")
1944
+ ) : x.push(
1945
+ o > 0 ? r.a10[l] : r[m][l - 1]
1946
1946
  ), f.length > C + 1)) {
1947
1947
  var y = r["u" + (C + 1)];
1948
- p.push(a(_, y));
1948
+ x.push(a(_, y));
1949
1949
  }
1950
1950
  } else
1951
- p.push(r.null);
1952
- return p.push(a(d, r.ur)), p.push(c + " " + a(c, r.uc)), p.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1951
+ x.push(r.null);
1952
+ return x.push(a(d, r.ur)), x.push(c + " " + a(c, r.uc)), x.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1953
1953
  };
1954
- function Ns(e) {
1954
+ function Ni(e) {
1955
1955
  let t = -1, a = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
1956
1956
  do
1957
1957
  e = e / 1024, t++;
1958
1958
  while (e > 1024);
1959
1959
  return Math.max(e, 0.1).toFixed(1) + a[t];
1960
1960
  }
1961
- function Ds(e) {
1961
+ function Di(e) {
1962
1962
  let t = {};
1963
1963
  return t["application/atom+xml"] = "atom", t["application/json"] = "json", t["application/javascript"] = "js", t["application/ogg"] = "ogg", t["application/pdf"] = "pdf", t["application/soap+xml"] = "soap", t["application/font-woff"] = "woff", t["application/xhtml+xml"] = "xml", t["application/xml-dtd"] = "dtd", t["application/xop+xml"] = "xop", t["application/zip"] = "zip", t["application/gzip"] = "gzip", t["application/x-bittorrent"] = "bittorrent", t["application/x-tex"] = "tex", t["application/xml"] = "xml", t["application/msword"] = "doc", t["image/svg+xml"] = "svg", t[e];
1964
1964
  }
1965
- function Fs(e, t, a, r) {
1966
- let s = {
1965
+ function Fi(e, t, a, r) {
1966
+ let i = {
1967
1967
  sexM: "m",
1968
1968
  sexF: "f",
1969
1969
  gcaseIm: "nominative",
@@ -2086,7 +2086,7 @@ function Fs(e, t, a, r) {
2086
2086
  if (_ === this.gcaseNom)
2087
2087
  return l;
2088
2088
  if (l.match(/[-]/)) {
2089
- for (var u = l.split("-"), f = 0, x = u.length; f < x; f++)
2089
+ for (var u = l.split("-"), f = 0, p = u.length; f < p; f++)
2090
2090
  u[f] = this.word(u[f], c, d, _);
2091
2091
  return u.join("-");
2092
2092
  }
@@ -2100,9 +2100,9 @@ function Fs(e, t, a, r) {
2100
2100
  // выбираем из списка правил первое подходящее и применяем
2101
2101
  pick: function(l, c, d, _, u) {
2102
2102
  let f = l.toLowerCase();
2103
- for (var x = 0, m = _.length; x < m; x++)
2104
- if (this.ruleMatch(f, c, _[x], u))
2105
- return this.applyMod(l, d, _[x]);
2103
+ for (var p = 0, m = _.length; p < m; p++)
2104
+ if (this.ruleMatch(f, c, _[p], u))
2105
+ return this.applyMod(l, d, _[p]);
2106
2106
  return !1;
2107
2107
  },
2108
2108
  // проверяем, подходит ли правило к слову
@@ -2110,10 +2110,10 @@ function Fs(e, t, a, r) {
2110
2110
  if (d.sex === this.sexM && c === this.sexF || d.sex === this.sexF && c !== this.sexF)
2111
2111
  return !1;
2112
2112
  for (var u = 0, f = d.test.length; u < f; u++) {
2113
- var x = _ ? l : l.substr(
2113
+ var p = _ ? l : l.substr(
2114
2114
  Math.max(l.length - d.test[u].length, 0)
2115
2115
  );
2116
- if (x === d.test[u])
2116
+ if (p === d.test[u])
2117
2117
  return !0;
2118
2118
  }
2119
2119
  return !1;
@@ -2142,22 +2142,22 @@ function Fs(e, t, a, r) {
2142
2142
  break;
2143
2143
  }
2144
2144
  for (var u = 0, f = _.length; u < f; u++) {
2145
- var x = _.substr(u, 1);
2146
- switch (x) {
2145
+ var p = _.substr(u, 1);
2146
+ switch (p) {
2147
2147
  case ".":
2148
2148
  break;
2149
2149
  case "-":
2150
2150
  l = l.substr(0, l.length - 1);
2151
2151
  break;
2152
2152
  default:
2153
- l += x;
2153
+ l += p;
2154
2154
  }
2155
2155
  }
2156
2156
  return l;
2157
2157
  },
2158
2158
  getSex: () => {
2159
- if (s.mn.length > 2)
2160
- switch (s.mn.substr(s.mn.length - 2)) {
2159
+ if (i.mn.length > 2)
2160
+ switch (i.mn.substr(i.mn.length - 2)) {
2161
2161
  case "ич":
2162
2162
  return "m";
2163
2163
  case "на":
@@ -2165,20 +2165,20 @@ function Fs(e, t, a, r) {
2165
2165
  }
2166
2166
  return "";
2167
2167
  },
2168
- fullName: (l) => ((s.fullNameSurnameLast ? "" : s.lastName(l) + " ") + s.firstName(l) + " " + s.middleName(l) + (s.fullNameSurnameLast ? " " + s.lastName(l) : "")).replace(/^ +| +$/g, ""),
2169
- lastName: (l) => s.word(s.ln, s.sex, "lastName", l),
2170
- firstName: (l) => s.word(s.fn, s.sex, "firstName", l),
2171
- middleName: (l) => s.word(s.mn, s.sex, "middleName", l)
2168
+ fullName: (l) => ((i.fullNameSurnameLast ? "" : i.lastName(l) + " ") + i.firstName(l) + " " + i.middleName(l) + (i.fullNameSurnameLast ? " " + i.lastName(l) : "")).replace(/^ +| +$/g, ""),
2169
+ lastName: (l) => i.word(i.ln, i.sex, "lastName", l),
2170
+ firstName: (l) => i.word(i.fn, i.sex, "firstName", l),
2171
+ middleName: (l) => i.word(i.mn, i.sex, "middleName", l)
2172
2172
  };
2173
2173
  if (typeof t > "u") {
2174
- var i = e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);
2175
- if (!i)
2174
+ var o = e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);
2175
+ if (!o)
2176
2176
  return "Cannot parse supplied name";
2177
- i[5] && i[3].match(/(ич|на)$/) && !i[5].match(/(ич|на)$/) ? (e = i[5], t = i[1], a = i[3], s.fullNameSurnameLast = !0) : (e = i[1], t = i[3], a = i[5]);
2177
+ o[5] && o[3].match(/(ич|на)$/) && !o[5].match(/(ич|на)$/) ? (e = o[5], t = o[1], a = o[3], i.fullNameSurnameLast = !0) : (e = o[1], t = o[3], a = o[5]);
2178
2178
  }
2179
- return s.ln = e, s.fn = t || "", s.mn = a || "", s.sex = r || s.getSex(), s;
2179
+ return i.ln = e, i.fn = t || "", i.mn = a || "", i.sex = r || i.getSex(), i;
2180
2180
  }
2181
- function Ps(e) {
2181
+ function Pi(e) {
2182
2182
  let t = e.split(" ");
2183
2183
  switch (t.length) {
2184
2184
  case 2:
@@ -2189,7 +2189,7 @@ function Ps(e) {
2189
2189
  return e;
2190
2190
  }
2191
2191
  }
2192
- function $s(e) {
2192
+ function $i(e) {
2193
2193
  return {
2194
2194
  1: { val: "01", name: "Январь", names: "Января", abc: "Янв" },
2195
2195
  2: { val: "02", name: "Февраль", names: "Февраля", abc: "Февр" },
@@ -2205,67 +2205,67 @@ function $s(e) {
2205
2205
  12: { val: "12", name: "Декабрь", names: "Декабря", abc: "Дек" }
2206
2206
  }[e];
2207
2207
  }
2208
- function Ls(e) {
2208
+ function Li(e) {
2209
2209
  return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
2210
2210
  }
2211
- function Os(e, t) {
2211
+ function Oi(e, t) {
2212
2212
  let a = t + "";
2213
2213
  for (; a.length < e; )
2214
2214
  a = "0" + a;
2215
2215
  return a;
2216
2216
  }
2217
- function As(e, t, a) {
2217
+ function Ai(e, t, a) {
2218
2218
  let r = t / e * a;
2219
2219
  return (typeof r != "number" || r === 1 / 0) && (r = 0), parseFloat(r).toFixed(1);
2220
2220
  }
2221
- function Gs(e) {
2221
+ function Gi(e) {
2222
2222
  return e.charAt(0).toUpperCase() + e.slice(1);
2223
2223
  }
2224
- function zs(e, t) {
2224
+ function zi(e, t) {
2225
2225
  e = Math.abs(e) % 100;
2226
2226
  let a = e % 10;
2227
2227
  return e > 10 && e < 20 ? t[2] : a > 1 && a < 5 ? t[1] : a === 1 ? t[0] : t[2];
2228
2228
  }
2229
- function Ws(e, t, a) {
2230
- return xe(e, t) ? xe(e, t).n : a || "";
2229
+ function Wi(e, t, a) {
2230
+ return pe(e, t) ? pe(e, t).n : a || "";
2231
2231
  }
2232
- function Ks(e, t) {
2232
+ function Ki(e, t) {
2233
2233
  return e.reduce(function(a, r) {
2234
- let s = t instanceof Function ? t(r) : r[t];
2235
- return a[s] !== void 0 || (a[s] = {}), a[s][r.id] = r, a;
2234
+ let i = t instanceof Function ? t(r) : r[t];
2235
+ return a[i] !== void 0 || (a[i] = {}), a[i][r.id] = r, a;
2236
2236
  }, {});
2237
2237
  }
2238
- function Zs(e) {
2238
+ function Zi(e) {
2239
2239
  return parseInt((Date.now() - new Date(e).getTime()) / 31536e6 + "") + "";
2240
2240
  }
2241
2241
  const ye = {
2242
- Age: Zs,
2243
- Date: Bs,
2244
- MoneyString: Ms,
2245
- DateSort: Is,
2246
- Size: Ns,
2247
- TypeFiles: Ds,
2248
- Cases: Fs,
2249
- Initials: Ps,
2250
- Month: $s,
2251
- Money: Ls,
2252
- Number: Os,
2253
- Percent: As,
2254
- CapitalizeFirstLetter: Gs,
2255
- DeclensionWord: zs,
2256
- Select: Ws,
2257
- ObjectByArray: Ks
2242
+ Age: Zi,
2243
+ Date: Bi,
2244
+ MoneyString: Mi,
2245
+ DateSort: Ii,
2246
+ Size: Ni,
2247
+ TypeFiles: Di,
2248
+ Cases: Fi,
2249
+ Initials: Pi,
2250
+ Month: $i,
2251
+ Money: Li,
2252
+ Number: Oi,
2253
+ Percent: Ai,
2254
+ CapitalizeFirstLetter: Gi,
2255
+ DeclensionWord: zi,
2256
+ Select: Wi,
2257
+ ObjectByArray: Ki
2258
2258
  };
2259
2259
  function bt(e) {
2260
- let t = e.value, a = (f) => e.type === "multi" ? f.replace(/[^+\d.+-]/g, "") : f.replace(/[^+\d.]/g, ""), r = (f, x) => {
2260
+ let t = e.value, a = (f) => e.type === "multi" ? f.replace(/[^+\d.+-]/g, "") : f.replace(/[^+\d.]/g, ""), r = (f, p) => {
2261
2261
  let m = document.createRange(), g = window.getSelection();
2262
- m.setStart(x.childNodes[0], f), m.collapse(!0), g.removeAllRanges(), g.addRange(m), x.focus();
2263
- }, s = (f) => {
2262
+ m.setStart(p.childNodes[0], f), m.collapse(!0), g.removeAllRanges(), g.addRange(m), p.focus();
2263
+ }, i = (f) => {
2264
2264
  e.onValue({
2265
2265
  value: a(f.target.textContent),
2266
2266
  name: e.name
2267
2267
  }), f.target.textContent = a(f.target.textContent), f.target.textContent.length > 0 && r(f.target.textContent.length, f.target);
2268
- }, i = (f) => {
2268
+ }, o = (f) => {
2269
2269
  f.target.textContent === "" && (f.target.textContent = 0), e.onValue({
2270
2270
  value: a(f.target.textContent),
2271
2271
  name: e.name
@@ -2275,9 +2275,9 @@ function bt(e) {
2275
2275
  }, c = (f) => {
2276
2276
  f.key === "Enter" && f.preventDefault();
2277
2277
  }, d = (f) => {
2278
- f.preventDefault(), navigator.clipboard.readText().then((x) => {
2279
- x = x.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, x);
2280
- }).catch((x) => {
2278
+ f.preventDefault(), navigator.clipboard.readText().then((p) => {
2279
+ p = p.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, p);
2280
+ }).catch((p) => {
2281
2281
  });
2282
2282
  }, _ = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", u = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "";
2283
2283
  return /* @__PURE__ */ n.jsxs(
@@ -2289,9 +2289,9 @@ function bt(e) {
2289
2289
  /* @__PURE__ */ n.jsx(
2290
2290
  "dd",
2291
2291
  {
2292
- onInput: s,
2292
+ onInput: i,
2293
2293
  onPaste: d,
2294
- onBlur: i,
2294
+ onBlur: o,
2295
2295
  onKeyDown: c,
2296
2296
  onFocus: l,
2297
2297
  contentEditable: !0,
@@ -2305,17 +2305,17 @@ function bt(e) {
2305
2305
  }
2306
2306
  );
2307
2307
  }
2308
- const Us = "_o_1kqkq_1", Hs = "_c_1kqkq_11", Vt = {
2309
- o: Us,
2310
- c: Hs
2308
+ const Ui = "_o_1kqkq_1", Hi = "_c_1kqkq_11", Vt = {
2309
+ o: Ui,
2310
+ c: Hi
2311
2311
  };
2312
2312
  function jn({
2313
2313
  value: e,
2314
2314
  onValue: t,
2315
2315
  name: a,
2316
2316
  view: r,
2317
- error: s,
2318
- edit: i = !0,
2317
+ error: i,
2318
+ edit: o = !0,
2319
2319
  active: l = !0,
2320
2320
  title: c,
2321
2321
  placeholder: d = "",
@@ -2325,19 +2325,19 @@ function jn({
2325
2325
  b.useEffect(() => {
2326
2326
  f(e);
2327
2327
  }, [e]);
2328
- let x = (v) => {
2328
+ let p = (v) => {
2329
2329
  f(v), t && t({ value: v, name: a });
2330
2330
  }, m = (v) => {
2331
- if (!i || !l)
2331
+ if (!o || !l)
2332
2332
  return;
2333
- const p = v.target.getBoundingClientRect(), C = p.left, y = p.top;
2333
+ const x = v.target.getBoundingClientRect(), C = x.left, y = x.top;
2334
2334
  He.setListener(
2335
2335
  "form",
2336
2336
  /* @__PURE__ */ n.jsx(
2337
- Ys,
2337
+ Yi,
2338
2338
  {
2339
2339
  position: { x: C, y },
2340
- onValue: x,
2340
+ onValue: p,
2341
2341
  date: u
2342
2342
  },
2343
2343
  (/* @__PURE__ */ new Date()).getTime()
@@ -2364,27 +2364,27 @@ function jn({
2364
2364
  children: ye.Date(u, "mm.yyyy")
2365
2365
  }
2366
2366
  ),
2367
- s && /* @__PURE__ */ n.jsx("em", { children: s })
2367
+ i && /* @__PURE__ */ n.jsx("em", { children: i })
2368
2368
  ]
2369
2369
  }
2370
2370
  ) });
2371
2371
  }
2372
- const Ys = (e) => {
2373
- let [t, a] = b.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
2372
+ const Yi = (e) => {
2373
+ let [t, a] = b.useState(!0), r = /* @__PURE__ */ new Date(), i = new Date(e.date), o = {
2374
2374
  y: parseInt(r.getFullYear()),
2375
2375
  m: parseInt(r.getMonth()) + 1
2376
2376
  }, l = {
2377
- y: parseInt(s.getFullYear()),
2378
- m: parseInt(s.getMonth()) + 1
2377
+ y: parseInt(i.getFullYear()),
2378
+ m: parseInt(i.getMonth()) + 1
2379
2379
  }, [c, d] = b.useState(l.y), _ = () => {
2380
2380
  a(!1);
2381
2381
  }, u = () => {
2382
2382
  d(c + 1);
2383
2383
  }, f = () => {
2384
2384
  d(c - 1);
2385
- }, x = (C) => {
2385
+ }, p = (C) => {
2386
2386
  e.onValue(c + "-" + ye.Number(2, C)), _();
2387
- }, m = (C) => i.y === l.y && i.m === C ? "_FFEB3B" : "", g = Array(12).fill("").map((C, y) => y + 1), v = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, p = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
2387
+ }, m = (C) => o.y === l.y && o.m === C ? "_FFEB3B" : "", g = Array(12).fill("").map((C, y) => y + 1), v = 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;
2388
2388
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2389
2389
  /* @__PURE__ */ n.jsx(
2390
2390
  "div",
@@ -2398,7 +2398,7 @@ const Ys = (e) => {
2398
2398
  "div",
2399
2399
  {
2400
2400
  className: Vt.c,
2401
- style: { top: v + "px", left: p + "px" },
2401
+ style: { top: v + "px", left: x + "px" },
2402
2402
  children: [
2403
2403
  /* @__PURE__ */ n.jsxs("s", { children: [
2404
2404
  /* @__PURE__ */ n.jsx("i", { "data-icon": "F021", onClick: () => f() }),
@@ -2412,7 +2412,7 @@ const Ys = (e) => {
2412
2412
  "span",
2413
2413
  {
2414
2414
  onClick: () => {
2415
- x(C);
2415
+ p(C);
2416
2416
  },
2417
2417
  color: m(C),
2418
2418
  children: /* @__PURE__ */ n.jsx("b", { children: ye.Month(C).abc })
@@ -2427,24 +2427,24 @@ const Ys = (e) => {
2427
2427
  ] }) : "" });
2428
2428
  };
2429
2429
  function yn(e) {
2430
- let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", [r, s] = b.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);
2431
- r = i ? !0 : r;
2432
- let _ = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (p) => {
2433
- e.onValue && e.onValue({ value: p.target.innerText, name: e.name });
2434
- }, f = (p) => {
2435
- p.preventDefault(), navigator.clipboard.readText().then((C) => {
2430
+ let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", [r, i] = b.useState(!1), o = e.edit !== void 0 ? e.edit : !0, l = e.active !== void 0 ? e.active : !0, d = !!(e.hide && (e.value === "" || e.value === void 0)) && !(o && l);
2431
+ r = o ? !0 : r;
2432
+ let _ = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (x) => {
2433
+ e.onValue && e.onValue({ value: x.target.innerText, name: e.name });
2434
+ }, f = (x) => {
2435
+ x.preventDefault(), navigator.clipboard.readText().then((C) => {
2436
2436
  window.document.execCommand("insertText", !1, C);
2437
2437
  }).catch((C) => {
2438
2438
  });
2439
- }, x = (p) => {
2440
- i || s(!r);
2439
+ }, p = (x) => {
2440
+ o || i(!r);
2441
2441
  };
2442
- const m = (p) => {
2443
- e.onSave && e.onSave({ value: p.target.innerText, name: e.name });
2442
+ const m = (x) => {
2443
+ e.onSave && e.onSave({ value: x.target.innerText, name: e.name });
2444
2444
  }, g = {};
2445
2445
  g.field = "notes", e.className && (g.className = e.className);
2446
2446
  const v = {};
2447
- return _ && (v.placeholder = _), r && (v.open = ""), i && l && (v.edit = ""), d ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...g, children: [
2447
+ return _ && (v.placeholder = _), r && (v.open = ""), o && l && (v.edit = ""), d ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...g, children: [
2448
2448
  t(),
2449
2449
  /* @__PURE__ */ n.jsx(
2450
2450
  "dd",
@@ -2452,9 +2452,9 @@ function yn(e) {
2452
2452
  onPaste: f,
2453
2453
  onInput: u,
2454
2454
  onBlur: m,
2455
- contentEditable: i && l ? "plaintext-only" : "false",
2455
+ contentEditable: o && l ? "plaintext-only" : "false",
2456
2456
  ...v,
2457
- onDoubleClick: x,
2457
+ onDoubleClick: p,
2458
2458
  suppressContentEditableWarning: !0,
2459
2459
  children: e.value
2460
2460
  }
@@ -2467,24 +2467,24 @@ function Ct({
2467
2467
  active: t,
2468
2468
  max: a,
2469
2469
  edit: r,
2470
- title: s,
2471
- error: i,
2470
+ title: i,
2471
+ error: o,
2472
2472
  show: l,
2473
2473
  hide: c,
2474
2474
  value: d,
2475
2475
  placeholder: _,
2476
2476
  className: u,
2477
2477
  name: f,
2478
- after: x,
2478
+ after: p,
2479
2479
  view: m
2480
2480
  }) {
2481
2481
  r = r !== void 0 ? r : !0, t = t !== void 0 ? t : !0, c = !!(c && (d === "" || d === void 0)) && !(r && t), _ = _ !== void 0 ? _ : "", a = a !== void 0 ? a : 99;
2482
2482
  let v = (C) => {
2483
2483
  e == null || e({ name: f, value: C.currentTarget.value });
2484
2484
  };
2485
- const p = {};
2486
- return p.field = "input", u && (p.className = u), c ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...p, children: [
2487
- s && /* @__PURE__ */ n.jsx("dt", { children: s }),
2485
+ const x = {};
2486
+ return x.field = "input", u && (x.className = u), c ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...x, children: [
2487
+ i && /* @__PURE__ */ n.jsx("dt", { children: i }),
2488
2488
  /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(
2489
2489
  "input",
2490
2490
  {
@@ -2495,7 +2495,7 @@ function Ct({
2495
2495
  placeholder: _
2496
2496
  }
2497
2497
  ) }),
2498
- i && /* @__PURE__ */ n.jsx("em", { children: i })
2498
+ o && /* @__PURE__ */ n.jsx("em", { children: o })
2499
2499
  ] });
2500
2500
  }
2501
2501
  function wn({
@@ -2503,24 +2503,24 @@ function wn({
2503
2503
  onValue: t,
2504
2504
  name: a,
2505
2505
  placeholder: r = "",
2506
- className: s,
2507
- title: i,
2506
+ className: i,
2507
+ title: o,
2508
2508
  error: l,
2509
2509
  edit: c = !0,
2510
2510
  active: d = !0,
2511
2511
  reload: _ = !1,
2512
2512
  after: u = ""
2513
2513
  }) {
2514
- let f = (p) => {
2514
+ let f = (x) => {
2515
2515
  t && t({
2516
- value: p.target.textContent,
2516
+ value: x.target.textContent,
2517
2517
  name: a,
2518
2518
  reload: _
2519
2519
  });
2520
- }, x = (p) => {
2521
- p.key === "Enter" && p.preventDefault();
2522
- }, m = (p) => {
2523
- p.preventDefault(), navigator.clipboard.readText().then((C) => {
2520
+ }, p = (x) => {
2521
+ x.key === "Enter" && x.preventDefault();
2522
+ }, m = (x) => {
2523
+ x.preventDefault(), navigator.clipboard.readText().then((C) => {
2524
2524
  window.document.execCommand(
2525
2525
  "insertText",
2526
2526
  !1,
@@ -2530,16 +2530,16 @@ function wn({
2530
2530
  });
2531
2531
  };
2532
2532
  const g = {};
2533
- g.field = "password", s && (g.className = s);
2533
+ g.field = "password", i && (g.className = i);
2534
2534
  const v = {};
2535
2535
  return r && (v.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...g, children: [
2536
- i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "",
2536
+ o ? /* @__PURE__ */ n.jsx("dt", { children: o }) : "",
2537
2537
  /* @__PURE__ */ n.jsx(
2538
2538
  "dd",
2539
2539
  {
2540
2540
  onPaste: m,
2541
2541
  onInput: f,
2542
- onKeyDown: x,
2542
+ onKeyDown: p,
2543
2543
  onBlur: ue.Blur,
2544
2544
  contentEditable: c && d ? "plaintext-only" : "false",
2545
2545
  ...v,
@@ -2550,7 +2550,7 @@ function wn({
2550
2550
  l ? /* @__PURE__ */ n.jsx("em", { children: l }) : ""
2551
2551
  ] });
2552
2552
  }
2553
- const it = {
2553
+ const ot = {
2554
2554
  0: {
2555
2555
  name: "Heard Island and Mcdonald Islands",
2556
2556
  dial_code: "+0",
@@ -3937,19 +3937,19 @@ function jt({
3937
3937
  onValue: t,
3938
3938
  onSave: a,
3939
3939
  name: r,
3940
- placeholder: s = "",
3941
- title: i = "",
3940
+ placeholder: i = "",
3941
+ title: o = "",
3942
3942
  error: l = "",
3943
3943
  hide: c = !1,
3944
3944
  edit: d = !0,
3945
3945
  active: _ = !0,
3946
3946
  after: u = "",
3947
3947
  show: f = !0,
3948
- view: x,
3948
+ view: p,
3949
3949
  className: m = ""
3950
3950
  }) {
3951
3951
  d = d !== void 0 ? d : !0, _ = _ !== void 0 ? _ : !0, c = !!(c && (e === "" || e === void 0)) && !(d && _), b.useRef(null);
3952
- let v = "+_(___) ___-__-__", p = !0, C = 0, y = ($, S) => {
3952
+ let v = "+_(___) ___-__-__", x = !0, C = 0, y = ($, S) => {
3953
3953
  let Z = document.createRange(), Y = window.getSelection();
3954
3954
  Z.setStart(S.childNodes[0], $), Z.collapse(!0), Y.removeAllRanges(), Y.addRange(Z), S.focus();
3955
3955
  }, T = ($) => {
@@ -3959,13 +3959,13 @@ function jt({
3959
3959
  });
3960
3960
  }, R = ($) => {
3961
3961
  let S = 0, Z = "", Y = $.replace(/\D/g, "");
3962
- Y === "" && (p = !0);
3962
+ Y === "" && (x = !0);
3963
3963
  let $e = Y.split(""), te = "";
3964
3964
  $e.forEach((Le) => {
3965
- p && (te += Le, it[te] !== void 0 && p ? (p = !1, v = it[te].mask.replace(new RegExp("[0-9]", "g"), "_"), Z = it[te].code) : (p && (C = ("" + te).length, v = `+${te}_(___) ___-__-__`.replace(
3965
+ x && (te += Le, ot[te] !== void 0 && x ? (x = !1, v = ot[te].mask.replace(new RegExp("[0-9]", "g"), "_"), Z = ot[te].code) : (x && (C = ("" + te).length, v = `+${te}_(___) ___-__-__`.replace(
3966
3966
  new RegExp("[0-9]", "g"),
3967
3967
  "_"
3968
- ), Z = ""), C > ("" + te).length && (p = !0, v = `+${te}_(___) ___-__-__`.replace(
3968
+ ), Z = ""), C > ("" + te).length && (x = !0, v = `+${te}_(___) ___-__-__`.replace(
3969
3969
  new RegExp("[0-9]", "g"),
3970
3970
  "_"
3971
3971
  ), Z = "")));
@@ -3985,7 +3985,7 @@ function jt({
3985
3985
  }, A = R(e), K = ($) => {
3986
3986
  let S = R($.target.textContent);
3987
3987
  $.target.textContent = S.q, S.i = S.q.lastIndexOf(S.v.substr(-1)), S.i < S.q.length && S.q !== v ? S.i++ : S.i = S.q.indexOf("_"), y(S.i, $.target), t && t({ value: S.q.replace(/\D/g, ""), name: r });
3988
- }, ie = ($) => {
3988
+ }, oe = ($) => {
3989
3989
  $.key === "Enter" && $.preventDefault();
3990
3990
  };
3991
3991
  const z = ($) => {
@@ -3996,15 +3996,15 @@ function jt({
3996
3996
  }, I = {};
3997
3997
  I.field = "input", m && (I.className = m);
3998
3998
  let W = {};
3999
- return d && _ ? (W.edit = "true", W.contentEditable = "plaintext-only") : W.contentEditable = "false", s && (W.placeholder = s), u && (W.after = u), c ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
4000
- i && /* @__PURE__ */ n.jsx("dt", { children: i }),
3999
+ return d && _ ? (W.edit = "true", W.contentEditable = "plaintext-only") : W.contentEditable = "false", i && (W.placeholder = i), u && (W.after = u), c ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
4000
+ o && /* @__PURE__ */ n.jsx("dt", { children: o }),
4001
4001
  /* @__PURE__ */ n.jsx(
4002
4002
  "dd",
4003
4003
  {
4004
4004
  ...W,
4005
4005
  onPaste: T,
4006
4006
  onInput: K,
4007
- onKeyDown: ie,
4007
+ onKeyDown: oe,
4008
4008
  onContextMenu: F,
4009
4009
  onBlur: z,
4010
4010
  suppressContentEditableWarning: !0,
@@ -4015,8 +4015,8 @@ function jt({
4015
4015
  ] });
4016
4016
  }
4017
4017
  const Sn = (e) => {
4018
- 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 = () => {
4019
- clearTimeout(i), i = setTimeout(() => {
4018
+ let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", o = 0, l = () => {
4019
+ clearTimeout(o), o = setTimeout(() => {
4020
4020
  }, 1e3);
4021
4021
  }, c = (u) => {
4022
4022
  u.key === "Enter" && u.preventDefault();
@@ -4027,7 +4027,7 @@ const Sn = (e) => {
4027
4027
  });
4028
4028
  };
4029
4029
  const _ = {};
4030
- return s && (_.placeholder = s), /* @__PURE__ */ n.jsxs(
4030
+ return i && (_.placeholder = i), /* @__PURE__ */ n.jsxs(
4031
4031
  "dl",
4032
4032
  {
4033
4033
  "data-form": "input",
@@ -4054,8 +4054,8 @@ function yt({
4054
4054
  error: t,
4055
4055
  edit: a = !0,
4056
4056
  active: r = !0,
4057
- hide: s,
4058
- value: i = "0",
4057
+ hide: i,
4058
+ value: o = "0",
4059
4059
  onValue: l,
4060
4060
  options: c,
4061
4061
  placeholder: d = "",
@@ -4063,18 +4063,18 @@ function yt({
4063
4063
  after: u,
4064
4064
  view: f
4065
4065
  }) {
4066
- const x = b.useRef();
4067
- s = !!(s && (i === "" || c[i].n === void 0)) && !(a && r);
4068
- let g = i !== void 0 && i !== "" ? c[i].n : i, v = (T) => {
4069
- x.current.textContent = c[T].n, l && l({ value: T, name: _ });
4070
- }, p = (T) => {
4066
+ const p = b.useRef();
4067
+ i = !!(i && (o === "" || c[o].n === void 0)) && !(a && r);
4068
+ let g = o !== void 0 && o !== "" ? c[o].n : o, v = (T) => {
4069
+ p.current.textContent = c[T].n, l && l({ value: T, name: _ });
4070
+ }, x = (T) => {
4071
4071
  if (!(a && r))
4072
4072
  return;
4073
4073
  const R = T.target.getBoundingClientRect();
4074
4074
  He.setListener(
4075
4075
  "form",
4076
4076
  /* @__PURE__ */ n.jsx(
4077
- Vs,
4077
+ Vi,
4078
4078
  {
4079
4079
  parent: R,
4080
4080
  onValue: v,
@@ -4084,20 +4084,20 @@ function yt({
4084
4084
  (/* @__PURE__ */ new Date()).getTime()
4085
4085
  )
4086
4086
  );
4087
- }, C = { field: "select" }, y = { onClick: p };
4088
- return d && (y.placeholder = d), u && (y.after = u), a && r && (y.edit = ""), s ? "" : /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
4087
+ }, C = { field: "select" }, y = { onClick: x };
4088
+ return d && (y.placeholder = d), u && (y.after = u), a && r && (y.edit = ""), i ? "" : /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
4089
4089
  e && /* @__PURE__ */ n.jsx("dt", { children: e }),
4090
- /* @__PURE__ */ n.jsx("dd", { ...y, ref: x, children: g }),
4090
+ /* @__PURE__ */ n.jsx("dd", { ...y, ref: p, children: g }),
4091
4091
  t && /* @__PURE__ */ n.jsx("em", { children: t })
4092
4092
  ] });
4093
4093
  }
4094
- const Vs = ({ onValue: e, parent: t, view: a, options: r }) => {
4095
- let [s, i] = b.useState(!0), l = () => {
4096
- i(!1);
4094
+ const Vi = ({ onValue: e, parent: t, view: a, options: r }) => {
4095
+ let [i, o] = b.useState(!0), l = () => {
4096
+ o(!1);
4097
4097
  }, c = (u) => {
4098
- i(!1), e(u);
4098
+ o(!1), e(u);
4099
4099
  }, d = window.innerHeight - t.y + t.height < 320 ? t.y - 312 : t.y + 33, _ = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
4100
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: s ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4100
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: i ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4101
4101
  /* @__PURE__ */ n.jsx(
4102
4102
  "div",
4103
4103
  {
@@ -4136,19 +4136,19 @@ function wt({
4136
4136
  onValue: t,
4137
4137
  name: a,
4138
4138
  placeholder: r = "",
4139
- title: s = "",
4140
- error: i = "",
4139
+ title: i = "",
4140
+ error: o = "",
4141
4141
  hide: l = !1,
4142
4142
  edit: c = !0,
4143
4143
  active: d = !0,
4144
4144
  after: _ = "",
4145
4145
  show: u = !0,
4146
4146
  view: f,
4147
- onBlur: x,
4147
+ onBlur: p,
4148
4148
  onSave: m,
4149
4149
  className: g = ""
4150
4150
  }) {
4151
- let v = !!(l && (e === "" || e === void 0)), p = (R) => {
4151
+ let v = !!(l && (e === "" || e === void 0)), x = (R) => {
4152
4152
  t == null || t({ value: R.target.value, name: a });
4153
4153
  }, C = (R) => {
4154
4154
  R.preventDefault(), navigator.clipboard.readText().then((F) => {
@@ -4172,35 +4172,35 @@ function wt({
4172
4172
  return "";
4173
4173
  const T = {};
4174
4174
  return T.field = "input", g && (T.className = g), /* @__PURE__ */ n.jsxs("dl", { ...T, children: [
4175
- s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
4175
+ i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "",
4176
4176
  /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(
4177
4177
  "input",
4178
4178
  {
4179
4179
  name: a,
4180
4180
  autoComplete: "off",
4181
4181
  type: "text",
4182
- onChange: p,
4182
+ onChange: x,
4183
4183
  onPaste: C,
4184
4184
  onContextMenu: y,
4185
4185
  placeholder: r
4186
4186
  }
4187
4187
  ) }),
4188
- i ? /* @__PURE__ */ n.jsx("em", { children: i }) : ""
4188
+ o ? /* @__PURE__ */ n.jsx("em", { children: o }) : ""
4189
4189
  ] });
4190
4190
  }
4191
4191
  function St(e) {
4192
- 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), c = e.placeholder !== void 0 ? e.placeholder : "", d = (m) => {
4192
+ let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, i = e.active !== void 0 ? e.active : !0, l = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(r && i), c = e.placeholder !== void 0 ? e.placeholder : "", d = (m) => {
4193
4193
  u(e.options[m]), e.onValue({ value: m, name: e.name });
4194
4194
  }, [_, u] = b.useState(
4195
4195
  e.default !== void 0 ? e.options[e.default] : e.default
4196
4196
  ), f = (m) => {
4197
- if (!(r && s))
4197
+ if (!(r && i))
4198
4198
  return;
4199
4199
  const g = m.target.getBoundingClientRect();
4200
4200
  He.setListener(
4201
4201
  "form",
4202
4202
  /* @__PURE__ */ n.jsx(
4203
- qs,
4203
+ qi,
4204
4204
  {
4205
4205
  parent: g,
4206
4206
  onValue: d,
@@ -4211,8 +4211,8 @@ function St(e) {
4211
4211
  )
4212
4212
  );
4213
4213
  };
4214
- const x = {};
4215
- return c && (x.placeholder = c), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs(
4214
+ const p = {};
4215
+ return c && (p.placeholder = c), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs(
4216
4216
  "dl",
4217
4217
  {
4218
4218
  "data-form": "select",
@@ -4222,8 +4222,8 @@ function St(e) {
4222
4222
  "dd",
4223
4223
  {
4224
4224
  onClick: f,
4225
- "data-edit": (r && s) + "",
4226
- ...x,
4225
+ "data-edit": (r && i) + "",
4226
+ ...p,
4227
4227
  children: _
4228
4228
  }
4229
4229
  ),
@@ -4232,13 +4232,13 @@ function St(e) {
4232
4232
  }
4233
4233
  );
4234
4234
  }
4235
- const qs = ({ onValue: e, parent: t, view: a, options: r }) => {
4236
- let [s, i] = b.useState(!0), l = () => {
4237
- i(!1);
4235
+ const qi = ({ onValue: e, parent: t, view: a, options: r }) => {
4236
+ let [i, o] = b.useState(!0), l = () => {
4237
+ o(!1);
4238
4238
  }, c = (f) => {
4239
- i(!1), e(f);
4239
+ o(!1), e(f);
4240
4240
  }, 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;
4241
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: s ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4241
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: i ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4242
4242
  /* @__PURE__ */ n.jsx(
4243
4243
  "div",
4244
4244
  {
@@ -4256,7 +4256,7 @@ const qs = ({ onValue: e, parent: t, view: a, options: r }) => {
4256
4256
  left: u + "px",
4257
4257
  width: t.width
4258
4258
  },
4259
- children: /* @__PURE__ */ n.jsx("ul", { children: Object.keys(r).map((f, x) => /* @__PURE__ */ n.jsx(
4259
+ children: /* @__PURE__ */ n.jsx("ul", { children: Object.keys(r).map((f, p) => /* @__PURE__ */ n.jsx(
4260
4260
  "li",
4261
4261
  {
4262
4262
  onClick: () => {
@@ -4264,7 +4264,7 @@ const qs = ({ onValue: e, parent: t, view: a, options: r }) => {
4264
4264
  },
4265
4265
  children: r[f]
4266
4266
  },
4267
- x
4267
+ p
4268
4268
  )) })
4269
4269
  }
4270
4270
  )
@@ -4275,88 +4275,88 @@ function ft({
4275
4275
  value: t,
4276
4276
  onValue: a,
4277
4277
  name: r,
4278
- placeholder: s = "",
4279
- title: i = "",
4278
+ placeholder: i = "",
4279
+ title: o = "",
4280
4280
  error: l = "",
4281
4281
  hide: c = !1,
4282
4282
  edit: d = !0,
4283
4283
  show: _ = !0,
4284
4284
  active: u = !0,
4285
4285
  after: f = "",
4286
- view: x,
4286
+ view: p,
4287
4287
  module: m,
4288
4288
  item: g,
4289
4289
  className: v = ""
4290
4290
  }) {
4291
- let p = {};
4291
+ let x = {};
4292
4292
  switch (e) {
4293
4293
  case "String":
4294
4294
  return /* @__PURE__ */ n.jsx(
4295
4295
  wt,
4296
4296
  {
4297
- title: i,
4297
+ title: o,
4298
4298
  show: _,
4299
4299
  hide: c,
4300
- view: x,
4300
+ view: p,
4301
4301
  edit: d,
4302
4302
  active: u,
4303
4303
  value: t,
4304
4304
  onValue: a,
4305
4305
  name: r,
4306
- placeholder: s,
4306
+ placeholder: i,
4307
4307
  className: v
4308
4308
  }
4309
4309
  );
4310
4310
  case "Select":
4311
- return g && (p = oe.getSelect(parseInt(g)) ? oe.getSelect(parseInt(g)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
4311
+ return g && (x = se.getSelect(parseInt(g)) ? se.getSelect(parseInt(g)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
4312
4312
  yt,
4313
4313
  {
4314
- title: i,
4314
+ title: o,
4315
4315
  show: _,
4316
4316
  hide: c,
4317
- view: x,
4317
+ view: p,
4318
4318
  edit: d,
4319
4319
  active: u,
4320
4320
  value: t,
4321
4321
  onValue: a,
4322
4322
  name: r,
4323
- placeholder: s,
4323
+ placeholder: i,
4324
4324
  className: v,
4325
- options: p
4325
+ options: x
4326
4326
  }
4327
4327
  );
4328
4328
  case "Users":
4329
- return oe.getSelect("user"), /* @__PURE__ */ n.jsx(
4329
+ return se.getSelect("user"), /* @__PURE__ */ n.jsx(
4330
4330
  St,
4331
4331
  {
4332
- title: i,
4332
+ title: o,
4333
4333
  show: _,
4334
4334
  hide: c,
4335
- view: x,
4335
+ view: p,
4336
4336
  edit: d,
4337
4337
  active: u,
4338
4338
  value: t,
4339
4339
  onValue: a,
4340
4340
  name: r,
4341
- placeholder: s,
4341
+ placeholder: i,
4342
4342
  className: v,
4343
- options: p
4343
+ options: x
4344
4344
  }
4345
4345
  );
4346
4346
  case "Date":
4347
4347
  return /* @__PURE__ */ n.jsx(
4348
4348
  vt,
4349
4349
  {
4350
- title: i,
4350
+ title: o,
4351
4351
  show: _,
4352
4352
  hide: c,
4353
- view: x,
4353
+ view: p,
4354
4354
  edit: d,
4355
4355
  active: u,
4356
4356
  value: t,
4357
4357
  onValue: a,
4358
4358
  name: r,
4359
- placeholder: s,
4359
+ placeholder: i,
4360
4360
  className: v
4361
4361
  }
4362
4362
  );
@@ -4364,16 +4364,16 @@ function ft({
4364
4364
  return /* @__PURE__ */ n.jsx(
4365
4365
  jt,
4366
4366
  {
4367
- title: i,
4367
+ title: o,
4368
4368
  show: _,
4369
4369
  hide: c,
4370
- view: x,
4370
+ view: p,
4371
4371
  edit: d,
4372
4372
  active: u,
4373
4373
  value: t,
4374
4374
  onValue: a,
4375
4375
  name: r,
4376
- placeholder: s,
4376
+ placeholder: i,
4377
4377
  className: v
4378
4378
  }
4379
4379
  );
@@ -4381,16 +4381,16 @@ function ft({
4381
4381
  return /* @__PURE__ */ n.jsx(
4382
4382
  Ct,
4383
4383
  {
4384
- title: i,
4384
+ title: o,
4385
4385
  show: _,
4386
4386
  hide: c,
4387
- view: x,
4387
+ view: p,
4388
4388
  edit: d,
4389
4389
  active: u,
4390
4390
  value: t,
4391
4391
  onValue: a,
4392
4392
  name: r,
4393
- placeholder: s,
4393
+ placeholder: i,
4394
4394
  className: v
4395
4395
  }
4396
4396
  );
@@ -4398,16 +4398,16 @@ function ft({
4398
4398
  return /* @__PURE__ */ n.jsx(
4399
4399
  bt,
4400
4400
  {
4401
- title: i,
4401
+ title: o,
4402
4402
  show: _,
4403
4403
  hide: c,
4404
- view: x,
4404
+ view: p,
4405
4405
  edit: d,
4406
4406
  active: u,
4407
4407
  value: t,
4408
4408
  onValue: a,
4409
4409
  name: r,
4410
- placeholder: s,
4410
+ placeholder: i,
4411
4411
  className: v
4412
4412
  }
4413
4413
  );
@@ -4415,18 +4415,18 @@ function ft({
4415
4415
  return /* @__PURE__ */ n.jsx(
4416
4416
  kt,
4417
4417
  {
4418
- title: i,
4418
+ title: o,
4419
4419
  show: _,
4420
4420
  hide: c,
4421
- view: x,
4421
+ view: p,
4422
4422
  edit: d,
4423
4423
  active: u,
4424
4424
  value: t,
4425
4425
  onValue: a,
4426
4426
  name: r || "",
4427
- placeholder: s,
4427
+ placeholder: i,
4428
4428
  className: v,
4429
- options: p,
4429
+ options: x,
4430
4430
  module: m || ""
4431
4431
  }
4432
4432
  );
@@ -4437,22 +4437,22 @@ function En({
4437
4437
  onValue: t,
4438
4438
  name: a,
4439
4439
  placeholder: r = "",
4440
- title: s = "",
4441
- error: i = "",
4440
+ title: i = "",
4441
+ error: o = "",
4442
4442
  hide: l = !1,
4443
4443
  edit: c = !0,
4444
4444
  active: d = !0,
4445
4445
  after: _ = "",
4446
4446
  show: u = !0,
4447
4447
  view: f,
4448
- onBlur: x,
4448
+ onBlur: p,
4449
4449
  onSave: m,
4450
4450
  className: g = ""
4451
4451
  }) {
4452
4452
  let v = !!(l && (e === "" || e === void 0));
4453
4453
  if (!(c && d) && !u || !(c && d) && v)
4454
4454
  return "";
4455
- let p = (R) => {
4455
+ let x = (R) => {
4456
4456
  t && t({ value: R.target.innerText, name: a });
4457
4457
  }, C = (R) => {
4458
4458
  m && m({ value: R.target.innerText, name: a });
@@ -4464,20 +4464,20 @@ function En({
4464
4464
  };
4465
4465
  const T = {};
4466
4466
  return r && (T.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { children: [
4467
- s ?? /* @__PURE__ */ n.jsx("dt", { children: s }),
4467
+ i ?? /* @__PURE__ */ n.jsx("dt", { children: i }),
4468
4468
  /* @__PURE__ */ n.jsx(
4469
4469
  "dd",
4470
4470
  {
4471
4471
  onPaste: y,
4472
4472
  onBlur: C,
4473
- onInput: p,
4473
+ onInput: x,
4474
4474
  contentEditable: c && d ? "plaintext-only" : "false",
4475
4475
  ...T,
4476
4476
  suppressContentEditableWarning: !0,
4477
4477
  children: e
4478
4478
  }
4479
4479
  ),
4480
- i ?? /* @__PURE__ */ n.jsx("em", { children: i })
4480
+ o ?? /* @__PURE__ */ n.jsx("em", { children: o })
4481
4481
  ] });
4482
4482
  }
4483
4483
  function Tn({
@@ -4485,23 +4485,23 @@ function Tn({
4485
4485
  onValue: t,
4486
4486
  name: a,
4487
4487
  placeholder: r = "",
4488
- title: s = "",
4489
- error: i = "",
4488
+ title: i = "",
4489
+ error: o = "",
4490
4490
  hide: l = !1,
4491
4491
  edit: c = !0,
4492
4492
  active: d = !0,
4493
4493
  after: _ = "",
4494
4494
  show: u = !0,
4495
4495
  view: f,
4496
- onBlur: x,
4496
+ onBlur: p,
4497
4497
  onSave: m,
4498
4498
  className: g = ""
4499
4499
  }) {
4500
4500
  let v = !!(l && (e === "" || e === void 0));
4501
4501
  if (ye.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), b.useRef(null), !(c && d) && !u || !(c && d) && v)
4502
4502
  return "";
4503
- const p = "__:__", C = new Set("_"), y = ((I) => Array.from(p, (W, $) => C.has(W) ? I = $ + 1 : I))(0), T = [...p].findIndex((I) => C.has(I)), R = new RegExp("\\d", "g"), F = (I) => (I = I.match(R) || [], Array.from(
4504
- p,
4503
+ const x = "__:__", C = new Set("_"), y = ((I) => Array.from(x, (W, $) => C.has(W) ? I = $ + 1 : I))(0), T = [...x].findIndex((I) => C.has(I)), R = new RegExp("\\d", "g"), F = (I) => (I = I.match(R) || [], Array.from(
4504
+ x,
4505
4505
  (W) => (I[0] === W || C.has(W)) && I.shift() || W
4506
4506
  )), A = (I) => {
4507
4507
  const [W, $] = [I.target.selectionStart, I.target.selectionEnd].map(
@@ -4512,12 +4512,12 @@ function Tn({
4512
4512
  I.target.value = F(I.target.value).join(""), I.target.setSelectionRange(W, $), t == null || t({ name: a, value: I.target.value });
4513
4513
  }, K = {};
4514
4514
  K.field = "input", g && (K.className = g);
4515
- const ie = {};
4516
- r && (ie.placeholder = r);
4515
+ const oe = {};
4516
+ r && (oe.placeholder = r);
4517
4517
  let z = !1;
4518
4518
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs("dl", { ...K, children: [
4519
- s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
4520
- /* @__PURE__ */ n.jsx("dd", { ...ie, children: /* @__PURE__ */ n.jsx(
4519
+ i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "",
4520
+ /* @__PURE__ */ n.jsx("dd", { ...oe, children: /* @__PURE__ */ n.jsx(
4521
4521
  "input",
4522
4522
  {
4523
4523
  type: "tel",
@@ -4526,10 +4526,10 @@ function Tn({
4526
4526
  inputMode: "numeric",
4527
4527
  onKeyDown: (I) => z = I.key === "Backspace",
4528
4528
  onFocus: A,
4529
- onBlur: (I) => I.target.value === p && (I.target.value = "")
4529
+ onBlur: (I) => I.target.value === x && (I.target.value = "")
4530
4530
  }
4531
4531
  ) }),
4532
- i ? /* @__PURE__ */ n.jsx("em", { children: i }) : ""
4532
+ o ? /* @__PURE__ */ n.jsx("em", { children: o }) : ""
4533
4533
  ] }) });
4534
4534
  }
4535
4535
  function Rn({
@@ -4537,13 +4537,13 @@ function Rn({
4537
4537
  label: t,
4538
4538
  value: a,
4539
4539
  className: r,
4540
- name: s,
4541
- reload: i
4540
+ name: i,
4541
+ reload: o
4542
4542
  }) {
4543
4543
  a = !!a;
4544
4544
  const [l, c] = b.useState(a), d = () => {
4545
4545
  let f = !l;
4546
- e({ name: s, value: f, reload: i }), c(f);
4546
+ e({ name: i, value: f, reload: o }), c(f);
4547
4547
  }, _ = {};
4548
4548
  _.field = "check", r && (_.className = r);
4549
4549
  const u = {};
@@ -4553,20 +4553,20 @@ function Rn({
4553
4553
  ] });
4554
4554
  }
4555
4555
  const Bn = ({ onValue: e, value: t, name: a, item: r }) => {
4556
- const [s, i] = b.useState(!!t);
4556
+ const [i, o] = b.useState(!!t);
4557
4557
  b.useEffect(() => {
4558
- i(!!t);
4558
+ o(!!t);
4559
4559
  }, [t]);
4560
4560
  let l = () => {
4561
- let c = parseInt(s) === 0 ? 1 : 0;
4562
- i(c), e({ value: c, name: a, key: r, item: r });
4561
+ let c = parseInt(i) === 0 ? 1 : 0;
4562
+ o(c), e({ value: c, name: a, key: r, item: r });
4563
4563
  };
4564
4564
  return /* @__PURE__ */ n.jsx(
4565
4565
  "div",
4566
4566
  {
4567
4567
  role: "switch",
4568
4568
  onClick: l,
4569
- "aria-checked": `${s ? "true" : "false"}`
4569
+ "aria-checked": `${i ? "true" : "false"}`
4570
4570
  }
4571
4571
  );
4572
4572
  };
@@ -4575,28 +4575,28 @@ function In({
4575
4575
  onValue: t,
4576
4576
  name: a,
4577
4577
  placeholder: r = "",
4578
- title: s = "",
4579
- error: i = "",
4578
+ title: i = "",
4579
+ error: o = "",
4580
4580
  hide: l = !1,
4581
4581
  edit: c = !0,
4582
4582
  active: d = !0,
4583
4583
  after: _ = "",
4584
4584
  show: u = !0,
4585
4585
  view: f,
4586
- onBlur: x,
4586
+ onBlur: p,
4587
4587
  onSave: m,
4588
4588
  className: g = ""
4589
4589
  }) {
4590
- const [v, p] = b.useState(
4590
+ const [v, x] = b.useState(
4591
4591
  e !== void 0 ? e.split(",") : []
4592
4592
  );
4593
4593
  b.useEffect(() => {
4594
- e !== void 0 && p(e !== void 0 ? e.split(",") : []);
4594
+ e !== void 0 && x(e !== void 0 ? e.split(",") : []);
4595
4595
  }, [e]);
4596
4596
  let C = () => {
4597
- p([...v, ""]);
4597
+ x([...v, ""]);
4598
4598
  }, y = (z) => {
4599
- v.splice(z, 1), v.length === 0 && v.push(""), p([...v]), x !== void 0 && x({ value: v.join(","), name: a });
4599
+ v.splice(z, 1), v.length === 0 && v.push(""), x([...v]), p !== void 0 && p({ value: v.join(","), name: a });
4600
4600
  }, T = !!(l && (e === "" || e === void 0)), R = (z) => {
4601
4601
  };
4602
4602
  if (!(c && d) && !u || !(c && d) && T)
@@ -4608,12 +4608,12 @@ function In({
4608
4608
  };
4609
4609
  let K = (z, I) => {
4610
4610
  v[I] = z.target.textContent, t !== void 0 && t({ value: v.join(","), name: a });
4611
- }, ie = (z) => {
4611
+ }, oe = (z) => {
4612
4612
  z.key === "Enter" && z.preventDefault();
4613
4613
  };
4614
4614
  return /* @__PURE__ */ n.jsxs("dl", { ...F, children: [
4615
4615
  /* @__PURE__ */ n.jsxs("dt", { children: [
4616
- s,
4616
+ i,
4617
4617
  /* @__PURE__ */ n.jsx("i", { onClick: C, children: /* @__PURE__ */ n.jsxs(
4618
4618
  "svg",
4619
4619
  {
@@ -4641,7 +4641,7 @@ function In({
4641
4641
  placeholder: r,
4642
4642
  onPaste: R,
4643
4643
  contentEditable: !0,
4644
- onKeyDown: ie,
4644
+ onKeyDown: oe,
4645
4645
  onBlur: A,
4646
4646
  suppressContentEditableWarning: !0,
4647
4647
  children: v[I]
@@ -4672,32 +4672,32 @@ function In({
4672
4672
  }
4673
4673
  )
4674
4674
  ] }, I)) }),
4675
- i ? /* @__PURE__ */ n.jsx("em", { children: i }) : ""
4675
+ o ? /* @__PURE__ */ n.jsx("em", { children: o }) : ""
4676
4676
  ] });
4677
4677
  }
4678
- const Js = (e) => (e = e !== void 0 && e !== "" ? e.split(",") : [], e.reduce((t, a) => (t[a] = !0, t), {}));
4678
+ const Ji = (e) => (e = e !== void 0 && e !== "" ? e.split(",") : [], e.reduce((t, a) => (t[a] = !0, t), {}));
4679
4679
  function Mn({
4680
4680
  value: e,
4681
4681
  onValue: t,
4682
4682
  name: a,
4683
4683
  placeholder: r = "",
4684
- title: s,
4685
- error: i,
4684
+ title: i,
4685
+ error: o,
4686
4686
  hide: l = !1,
4687
4687
  edit: c = !0,
4688
4688
  show: d = !0,
4689
4689
  active: _ = !0,
4690
4690
  after: u = "",
4691
4691
  view: f,
4692
- modal: x,
4692
+ modal: p,
4693
4693
  module: m,
4694
4694
  options: g,
4695
4695
  className: v
4696
4696
  }) {
4697
- const [p, C] = b.useState(Js(e)), y = (F) => {
4698
- if (!(c && _) || !x)
4697
+ const [x, C] = b.useState(Ji(e)), y = (F) => {
4698
+ if (!(c && _) || !p)
4699
4699
  return;
4700
- let A = x.split(".");
4700
+ let A = p.split(".");
4701
4701
  Cn.Open(A[1], {
4702
4702
  callback: (K) => {
4703
4703
  t && t({ value: K, name: a }), C(K);
@@ -4705,14 +4705,14 @@ function Mn({
4705
4705
  onValue: t,
4706
4706
  options: g,
4707
4707
  name: a,
4708
- value: p
4708
+ value: x
4709
4709
  });
4710
4710
  }, T = {};
4711
4711
  T.field = "group", v && (T.className = v);
4712
4712
  const R = {};
4713
4713
  return r && (R.placeholder = r), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...T, children: [
4714
4714
  /* @__PURE__ */ n.jsxs("dt", { children: [
4715
- s,
4715
+ i,
4716
4716
  /* @__PURE__ */ n.jsx("i", { onClick: y, children: /* @__PURE__ */ n.jsxs(
4717
4717
  "svg",
4718
4718
  {
@@ -4738,24 +4738,24 @@ function Mn({
4738
4738
  onClick: open,
4739
4739
  edit: (c && _) + "",
4740
4740
  "data-after": u,
4741
- children: Object.keys(p).map((F) => {
4741
+ children: Object.keys(x).map((F) => {
4742
4742
  var A;
4743
4743
  return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (A = g[F]) == null ? void 0 : A.label }, F);
4744
4744
  })
4745
4745
  }
4746
4746
  ),
4747
- i && /* @__PURE__ */ n.jsx("em", { children: i })
4747
+ o && /* @__PURE__ */ n.jsx("em", { children: o })
4748
4748
  ] });
4749
4749
  }
4750
- const Xs = {
4750
+ const Xi = {
4751
4751
  Color: bn,
4752
4752
  Date: vt,
4753
4753
  Code: kn,
4754
4754
  Check: Rn,
4755
4755
  Switch: hn,
4756
4756
  Button: gn,
4757
- Message: pn,
4758
- Generator: xn,
4757
+ Message: xn,
4758
+ Generator: pn,
4759
4759
  Captcha: vn,
4760
4760
  Modal: kt,
4761
4761
  Money: bt,
@@ -4774,23 +4774,29 @@ const Xs = {
4774
4774
  Toogle: Bn,
4775
4775
  Group: In,
4776
4776
  Options: Mn
4777
- }, Qs = "_debug_1y8ks_34", ei = "_b_1y8ks_47", ti = "_o_1y8ks_51", ni = "_tm_1y8ks_56", ai = "_ta_1y8ks_123", be = {
4778
- debug: Qs,
4779
- b: ei,
4780
- o: ti,
4781
- tm: ni,
4782
- ta: ai,
4783
- "--body": "_--body_1y8ks_133"
4784
- }, E = window.Telegram.WebApp, pe = { is: !1, MainButton: {}, BackButton: {} };
4777
+ }, Qi = "_debug_23vuw_34", eo = "_b_23vuw_46", to = "_o_23vuw_50", no = "_tm_23vuw_55", ao = "_ta_23vuw_122", be = {
4778
+ debug: Qi,
4779
+ b: eo,
4780
+ o: to,
4781
+ tm: no,
4782
+ ta: ao,
4783
+ "--body": "_--body_23vuw_132"
4784
+ }, E = window.Telegram.WebApp, xe = { is: !1, MainButton: {}, BackButton: {} };
4785
4785
  let he = {};
4786
4786
  he.dark = {
4787
- "--tg-theme-hint-color": "#b1c3d5",
4787
+ "--tg-theme-bg-color": "#212121",
4788
4788
  "--tg-theme-text-color": "#ffffff",
4789
- "--tg-theme-link-color": "#62bcf9",
4789
+ "--tg-theme-hint-color": "#aaaaaa",
4790
+ "--tg-theme-link-color": "#8774e1",
4791
+ "--tg-theme-button-color": "#8774e1",
4790
4792
  "--tg-theme-button-text-color": "#ffffff",
4791
- "--tg-theme-bg-color": "#18222d",
4792
- "--tg-theme-button-color": "#2ea6ff",
4793
- "--tg-theme-secondary-bg-color": "#131415"
4793
+ "--tg-theme-secondary-bg-color": "#0f0f0f",
4794
+ "--tg-theme-header-bg-color": "#212121",
4795
+ "--tg-theme-accent-text-color": "#8774e1",
4796
+ "--tg-theme-section-bg-color": "#212121",
4797
+ "--tg-theme-section-header-text-color": "#aaaaaa",
4798
+ "--tg-theme-subtitle-text-color": "#aaaaaa",
4799
+ "--tg-theme-destructive-text-color": "#e53935"
4794
4800
  };
4795
4801
  he.light = {
4796
4802
  "--tg-theme-bg-color": "#ffffff",
@@ -4815,7 +4821,7 @@ E.getUser = () => {
4815
4821
  return ((e = E.initDataUnsafe) == null ? void 0 : e.user) === void 0 ? {} : E.initDataUnsafe;
4816
4822
  };
4817
4823
  E.MainButton.set = (e) => {
4818
- pe.is ? pe.BackButton.set(e) : typeof e == "boolean" ? E.MainButton.isVisible = !1 : (E.MainButton.text = e.text, e.color && (E.MainButton.color = e.color), e.textColor && (E.MainButton.textColor = e.textColor), E.MainButton.isVisible = !0, E.MainButton.isActive = e.isActive ?? !0, e.page === void 0 || E.MainButton.onClick(() => {
4824
+ xe.is ? xe.BackButton.set(e) : typeof e == "boolean" ? E.MainButton.isVisible = !1 : (E.MainButton.text = e.text, e.color && (E.MainButton.color = e.color), e.textColor && (E.MainButton.textColor = e.textColor), E.MainButton.isVisible = !0, E.MainButton.isActive = e.isActive ?? !0, e.page === void 0 || E.MainButton.onClick(() => {
4819
4825
  je.setPage(e.page);
4820
4826
  }));
4821
4827
  };
@@ -4833,26 +4839,26 @@ E.BackButton.router = (e) => {
4833
4839
  }), E.BackButton.onClick(E.BackButton.listen[0]));
4834
4840
  };
4835
4841
  E.BackButton.set = (e) => {
4836
- pe.is ? pe.BackButton.set(e) : (E.BackButton.state.push(e), E.BackButton.router(e));
4842
+ xe.is ? xe.BackButton.set(e) : (E.BackButton.state.push(e), E.BackButton.router(e));
4837
4843
  };
4838
4844
  E.Notice = (e, t) => {
4839
4845
  t !== void 0 ? (Ke.Send({ type: e, text: t }), E.HapticFeedback.notificationOccurred(e)) : (Ke.Send(e), E.HapticFeedback.notificationOccurred(e.type));
4840
4846
  };
4841
4847
  E.Init = ({ dev: e }) => {
4842
4848
  if (e) {
4843
- let [t, a] = b.useState(!1), [r, s] = b.useState(!1), [i, l] = b.useState("dark"), [c, d] = b.useState(!1), [_, u] = b.useState(!1);
4844
- pe.is = !0, pe.MainButton.set = a, pe.BackButton.set = s, b.useEffect(() => {
4845
- for (let m in he[i])
4849
+ let [t, a] = b.useState(!1), [r, i] = b.useState(!1), [o, l] = b.useState("dark"), [c, d] = b.useState(!1), [_, u] = b.useState(!1);
4850
+ xe.is = !0, xe.MainButton.set = a, xe.BackButton.set = i, b.useEffect(() => {
4851
+ for (let m in he[o])
4846
4852
  document.documentElement.style.setProperty(
4847
4853
  m,
4848
- he[i][m]
4854
+ he[o][m]
4849
4855
  );
4850
4856
  }, []);
4851
4857
  let f = (m) => {
4852
4858
  for (let g in he[m])
4853
4859
  document.documentElement.style.setProperty(g, he[m][g]);
4854
4860
  l(m), d(!1);
4855
- }, x = () => {
4861
+ }, p = () => {
4856
4862
  d(!1), u(!0);
4857
4863
  };
4858
4864
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
@@ -4879,7 +4885,7 @@ E.Init = ({ dev: e }) => {
4879
4885
  /* @__PURE__ */ n.jsx("div", { children: t && /* @__PURE__ */ n.jsx("button", { children: "wrewrewrwer" }) }),
4880
4886
  c ? /* @__PURE__ */ n.jsxs("div", { className: be.tm, children: [
4881
4887
  /* @__PURE__ */ n.jsxs("ul", { children: [
4882
- /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: x, children: "Authorization" }) }),
4888
+ /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: p, children: "Authorization" }) }),
4883
4889
  /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => je.setPage("Add"), children: "Add Page" }) })
4884
4890
  ] }),
4885
4891
  /* @__PURE__ */ n.jsxs("ul", { children: [
@@ -4912,20 +4918,20 @@ E.Init = ({ dev: e }) => {
4912
4918
  /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => d(!c), children: "Closed" }) })
4913
4919
  ] })
4914
4920
  ] }) : "",
4915
- _ ? /* @__PURE__ */ n.jsx(ri, { setAuthorization: u }) : ""
4921
+ _ ? /* @__PURE__ */ n.jsx(ro, { setAuthorization: u }) : ""
4916
4922
  ] });
4917
4923
  } else
4918
4924
  return /* @__PURE__ */ n.jsx(n.Fragment, {});
4919
4925
  };
4920
- const ri = ({ setAuthorization: e }) => {
4921
- let t = {}, a = (s) => {
4922
- t = s.value;
4923
- }, r = (s) => {
4926
+ const ro = ({ setAuthorization: e }) => {
4927
+ let t = {}, a = (i) => {
4928
+ t = i.value;
4929
+ }, r = (i) => {
4924
4930
  localStorage.setItem("auth", t);
4925
4931
  };
4926
4932
  return /* @__PURE__ */ n.jsx("div", { className: be.ta, children: /* @__PURE__ */ n.jsxs("div", { className: "--body", children: [
4927
4933
  /* @__PURE__ */ n.jsx("fieldset", { children: /* @__PURE__ */ n.jsx(
4928
- Xs.Notes,
4934
+ Xi.Notes,
4929
4935
  {
4930
4936
  label: "Data JSON",
4931
4937
  name: "description",
@@ -4935,27 +4941,27 @@ const ri = ({ setAuthorization: e }) => {
4935
4941
  ) }),
4936
4942
  /* @__PURE__ */ n.jsx("div", { onClick: r, children: " Сщхранить " })
4937
4943
  ] }) });
4938
- }, _l = ({ children: e, config: t }) => (window.location.pathname === "/clear" && (window.history.pushState({}, "", "/"), X()), N.New(t.crypto), t.defaultModule && ha(t.defaultModule), pa(
4944
+ }, _l = ({ children: e, config: t }) => (window.location.pathname === "/clear" && (window.history.pushState({}, "", "/"), X()), N.New(t.crypto), t.defaultModule && ha(t.defaultModule), xa(
4939
4945
  /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4940
4946
  /* @__PURE__ */ n.jsx(E.Init, { dev: t.dev }),
4941
- /* @__PURE__ */ n.jsx(us, { config: t.modal }),
4947
+ /* @__PURE__ */ n.jsx(ui, { config: t.modal }),
4942
4948
  /* @__PURE__ */ n.jsx(Cr, {}),
4943
4949
  /* @__PURE__ */ n.jsx(Nr, {}),
4944
- /* @__PURE__ */ n.jsx(ws, {}),
4950
+ /* @__PURE__ */ n.jsx(wi, {}),
4945
4951
  e
4946
4952
  ] })
4947
- )), si = ({ 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(
4948
- ii,
4953
+ )), io = ({ list: e, onClick: t, active: a, size: r, view: i }) => /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, i].join(" "), children: e.map((o) => /* @__PURE__ */ n.jsx(
4954
+ oo,
4949
4955
  {
4950
4956
  onClick: t,
4951
4957
  active: a,
4952
- label: i.label,
4953
- link: i.link
4958
+ label: o.label,
4959
+ link: o.link
4954
4960
  },
4955
- i.link
4956
- )) }) }), ii = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
4957
- si.defaultProps = { size: "M", view: "H" };
4958
- const oi = ({
4961
+ o.link
4962
+ )) }) }), oo = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
4963
+ io.defaultProps = { size: "M", view: "H" };
4964
+ const so = ({
4959
4965
  title: e = "",
4960
4966
  button: t,
4961
4967
  description: a = "",
@@ -4975,9 +4981,9 @@ const oi = ({
4975
4981
  ] }),
4976
4982
  /* @__PURE__ */ n.jsx("ul", { children: r }),
4977
4983
  a && /* @__PURE__ */ n.jsx("article", { children: a })
4978
- ] }), li = "_setting_dva4m_2", ci = {
4979
- setting: li
4980
- }, _i = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: ci.setting, children: e }), di = ({ label: e, children: t }) => {
4984
+ ] }), lo = "_setting_dva4m_2", co = {
4985
+ setting: lo
4986
+ }, _o = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: co.setting, children: e }), uo = ({ label: e, children: t }) => {
4981
4987
  let [a, r] = b.useState(!1);
4982
4988
  return /* @__PURE__ */ n.jsxs("li", { "data-item": "accordion", children: [
4983
4989
  /* @__PURE__ */ n.jsxs("dl", { onClick: () => r(!a), children: [
@@ -4986,10 +4992,10 @@ const oi = ({
4986
4992
  ] }),
4987
4993
  a && /* @__PURE__ */ n.jsx("div", { children: t })
4988
4994
  ] });
4989
- }, ui = ({ label: e, onClick: t, button: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
4995
+ }, fo = ({ label: e, onClick: t, button: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
4990
4996
  /* @__PURE__ */ n.jsx("dt", { children: e }),
4991
4997
  /* @__PURE__ */ n.jsx("dd", { role: "button", onClick: () => t(), children: a })
4992
- ] }) }), fi = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ n.jsx(
4998
+ ] }) }), mo = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ n.jsx(
4993
4999
  "div",
4994
5000
  {
4995
5001
  role: "switch",
@@ -4998,48 +5004,48 @@ const oi = ({
4998
5004
  },
4999
5005
  "aria-checked": e ? "true" : "false"
5000
5006
  }
5001
- )), mi = { Switch: fi }, hi = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5007
+ )), ho = { Switch: mo }, go = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5002
5008
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5003
- /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(mi.Switch, { onClick: t, active: a }) })
5004
- ] }) }), gi = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5009
+ /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(ho.Switch, { onClick: t, active: a }) })
5010
+ ] }) }), xo = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5005
5011
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5006
5012
  /* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
5007
- ] }) }), pi = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5013
+ ] }) }), po = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5008
5014
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5009
5015
  /* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
5010
- ] }) }), xi = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5016
+ ] }) }), vo = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5011
5017
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5012
5018
  /* @__PURE__ */ n.jsx("dd", { children: t })
5013
- ] }) }), vi = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5019
+ ] }) }), ko = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5014
5020
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5015
5021
  /* @__PURE__ */ n.jsx("dd", { children: t })
5016
- ] }) }), ki = { Accordion: di, Button: ui, Switch: hi, Info: pi, Select: gi, Component: xi, Node: vi };
5017
- function Nn({ list: e, onClick: t, active: a, size: r, view: s }) {
5018
- return /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ n.jsx(
5019
- bi,
5022
+ ] }) }), bo = { Accordion: uo, Button: fo, Switch: go, Info: po, Select: xo, Component: vo, Node: ko };
5023
+ function Nn({ list: e, onClick: t, active: a, size: r, view: i }) {
5024
+ return /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, i].join(" "), children: e.map((o) => /* @__PURE__ */ n.jsx(
5025
+ Co,
5020
5026
  {
5021
5027
  onClick: t,
5022
5028
  active: a,
5023
- label: i.label,
5024
- link: i.link
5029
+ label: o.label,
5030
+ link: o.link
5025
5031
  },
5026
- i.link
5032
+ o.link
5027
5033
  )) }) });
5028
5034
  }
5029
- const bi = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
5035
+ const Co = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
5030
5036
  Nn.defaultProps = { size: "M", view: "H" };
5031
- const dl = { Section: oi, Main: _i, Item: ki, Tabs: Nn };
5037
+ const dl = { Section: so, Main: _o, Item: bo, Tabs: Nn };
5032
5038
  function Dn({ text: e, type: t, button: a }) {
5033
- let [r, s] = b.useState(!1), i = { active: t };
5039
+ let [r, i] = b.useState(!1), o = { active: t };
5034
5040
  const l = () => {
5035
5041
  if (a) {
5036
5042
  if (a.onClick)
5037
5043
  return a.onClick({});
5038
5044
  if (a.onSend)
5039
- return r ? void 0 : (s(!0), a.onSend(s));
5045
+ return r ? void 0 : (i(!0), a.onSend(i));
5040
5046
  }
5041
5047
  };
5042
- return /* @__PURE__ */ n.jsxs("div", { className: dt.al, ...i, children: [
5048
+ return /* @__PURE__ */ n.jsxs("div", { className: dt.al, ...o, children: [
5043
5049
  /* @__PURE__ */ n.jsx(
5044
5050
  "svg",
5045
5051
  {
@@ -5061,22 +5067,22 @@ function Dn({ text: e, type: t, button: a }) {
5061
5067
  a && /* @__PURE__ */ n.jsx("button", { onClick: l, children: a.label })
5062
5068
  ] });
5063
5069
  }
5064
- const Ci = "_h_1usnu_1", ji = "_g_1usnu_11", yi = "_hr_1usnu_16", wi = "_hl_1usnu_28", Si = "_t_1usnu_40", Ei = "_s_1usnu_60", Ti = "_u_1usnu_69", Ri = "_o_1usnu_76", Bi = "_l_1usnu_105", Ii = "_hh_1usnu_115", Mi = "_c_1usnu_128", Ni = "_loadingB_1usnu_1", Di = "_m_1usnu_180", Fi = "_ul_1usnu_196", Pi = "_f_1usnu_226", J = {
5065
- h: Ci,
5066
- g: ji,
5067
- hr: yi,
5068
- hl: wi,
5069
- t: Si,
5070
- s: Ei,
5071
- u: Ti,
5072
- o: Ri,
5073
- l: Bi,
5074
- hh: Ii,
5075
- c: Mi,
5076
- loadingB: Ni,
5077
- m: Di,
5078
- ul: Fi,
5079
- f: Pi
5070
+ const jo = "_h_1usnu_1", yo = "_g_1usnu_11", wo = "_hr_1usnu_16", So = "_hl_1usnu_28", Eo = "_t_1usnu_40", To = "_s_1usnu_60", Ro = "_u_1usnu_69", Bo = "_o_1usnu_76", Io = "_l_1usnu_105", Mo = "_hh_1usnu_115", No = "_c_1usnu_128", Do = "_loadingB_1usnu_1", Fo = "_m_1usnu_180", Po = "_ul_1usnu_196", $o = "_f_1usnu_226", J = {
5071
+ h: jo,
5072
+ g: yo,
5073
+ hr: wo,
5074
+ hl: So,
5075
+ t: Eo,
5076
+ s: To,
5077
+ u: Ro,
5078
+ o: Bo,
5079
+ l: Io,
5080
+ hh: Mo,
5081
+ c: No,
5082
+ loadingB: Do,
5083
+ m: Fo,
5084
+ ul: Po,
5085
+ f: $o
5080
5086
  }, qt = ({ title: e, left: t, right: a, children: r }) => /* @__PURE__ */ n.jsxs("div", { className: J.h, children: [
5081
5087
  /* @__PURE__ */ n.jsx("div", { className: J.t, children: e }),
5082
5088
  t && /* @__PURE__ */ n.jsx("div", { className: J.hl, children: t }),
@@ -5089,27 +5095,27 @@ const Ci = "_h_1usnu_1", ji = "_g_1usnu_11", yi = "_hr_1usnu_16", wi = "_hl_1usn
5089
5095
  function en({ children: e }) {
5090
5096
  return /* @__PURE__ */ n.jsx("div", { className: J.g, children: e });
5091
5097
  }
5092
- const $i = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [J.o, t].join(" "), children: [
5098
+ const Lo = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [J.o, t].join(" "), children: [
5093
5099
  a && /* @__PURE__ */ n.jsx("div", { className: J.hh, children: a }),
5094
5100
  e
5095
- ] }), Li = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.u, children: e }), Oi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.c, children: e }), Ai = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.m, children: e }), ul = {
5101
+ ] }), Oo = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.u, children: e }), Ao = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.c, children: e }), Go = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.m, children: e }), ul = {
5096
5102
  Header: qt,
5097
5103
  Section: Xt,
5098
5104
  Group: en,
5099
5105
  Form: Qt,
5100
5106
  List: Jt,
5101
5107
  A: Dn,
5102
- U: Li,
5108
+ U: Oo,
5103
5109
  G: en,
5104
- C: Oi,
5110
+ C: Ao,
5105
5111
  L: Jt,
5106
- O: $i,
5112
+ O: Lo,
5107
5113
  S: Xt,
5108
5114
  H: qt,
5109
- M: Ai,
5115
+ M: Go,
5110
5116
  F: Qt
5111
5117
  }, fl = { Send: Fr, Line: Dn };
5112
- function Gi() {
5118
+ function zo() {
5113
5119
  return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ n.jsx(
5114
5120
  "path",
5115
5121
  {
@@ -5118,15 +5124,15 @@ function Gi() {
5118
5124
  }
5119
5125
  ) });
5120
5126
  }
5121
- const zi = {};
5122
- function Wi(e) {
5123
- zi.add(e);
5127
+ const Wo = {};
5128
+ function Ko(e) {
5129
+ Wo.add(e);
5124
5130
  }
5125
- function Ki({ color: e, size: t, name: a }) {
5131
+ function Zo({ color: e, size: t, name: a }) {
5126
5132
  return /* @__PURE__ */ n.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ n.jsx("use", { href: `#${a}` }) });
5127
5133
  }
5128
- const ml = { Logo: Gi, Sprite: Wi, Symbol: Ki };
5129
- function Zi() {
5134
+ const ml = { Logo: zo, Sprite: Ko, Symbol: Zo };
5135
+ function Uo() {
5130
5136
  return /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
5131
5137
  /* @__PURE__ */ n.jsx(
5132
5138
  "path",
@@ -5161,7 +5167,7 @@ function Zi() {
5161
5167
  )
5162
5168
  ] });
5163
5169
  }
5164
- function Ui() {
5170
+ function Ho() {
5165
5171
  return /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
5166
5172
  /* @__PURE__ */ n.jsx(
5167
5173
  "path",
@@ -5190,7 +5196,7 @@ function Ui() {
5190
5196
  )
5191
5197
  ] });
5192
5198
  }
5193
- function Hi() {
5199
+ function Yo() {
5194
5200
  return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ n.jsx(
5195
5201
  "path",
5196
5202
  {
@@ -5203,11 +5209,11 @@ function Hi() {
5203
5209
  }
5204
5210
  ) });
5205
5211
  }
5206
- const Yi = "_n_euuvm_1", Vi = {
5207
- n: Yi
5212
+ const Vo = "_n_euuvm_1", qo = {
5213
+ n: Vo
5208
5214
  };
5209
5215
  let Pe = {}, Me = [];
5210
- const qi = (e, t) => {
5216
+ const Jo = (e, t) => {
5211
5217
  switch (t.type) {
5212
5218
  case "open":
5213
5219
  return {
@@ -5232,7 +5238,7 @@ const qi = (e, t) => {
5232
5238
  active: t.data.length !== 0
5233
5239
  };
5234
5240
  case "hide":
5235
- let a = e.news.filter((s) => s.id !== t.id);
5241
+ let a = e.news.filter((i) => i.id !== t.id);
5236
5242
  return {
5237
5243
  ...e,
5238
5244
  news: a,
@@ -5246,8 +5252,8 @@ const qi = (e, t) => {
5246
5252
  case "take":
5247
5253
  let r = { [t.list]: t.take };
5248
5254
  r = { ...e.take, ...r }, e.active = !1;
5249
- for (let s in r)
5250
- r[s] !== "999" && (e.active = !0);
5255
+ for (let i in r)
5256
+ r[i] !== "999" && (e.active = !0);
5251
5257
  return Pe.get(r, e.active), {
5252
5258
  ...e,
5253
5259
  take: r,
@@ -5259,27 +5265,27 @@ const qi = (e, t) => {
5259
5265
  throw new Error();
5260
5266
  }
5261
5267
  };
5262
- function Ji(e) {
5268
+ function Xo(e) {
5263
5269
  Pe.fn({ action: "add", data: e });
5264
5270
  }
5265
- function Xi(e) {
5271
+ function Qo(e) {
5266
5272
  Pe.fn({ action: "add", data: e });
5267
5273
  }
5268
- function Qi(e) {
5274
+ function es(e) {
5269
5275
  Pe.fn({ action: "new", data: e });
5270
5276
  }
5271
- function eo(e) {
5277
+ function ts(e) {
5272
5278
  Pe.fn = e;
5273
5279
  }
5274
- function to() {
5275
- const [e, t] = b.useReducer(qi, {
5280
+ function ns() {
5281
+ const [e, t] = b.useReducer(Jo, {
5276
5282
  open: !1,
5277
5283
  active: !1,
5278
5284
  news: [],
5279
5285
  take: {}
5280
5286
  });
5281
5287
  mt.useListener("bell", async (r) => {
5282
- }), eo(async (r) => {
5288
+ }), ts(async (r) => {
5283
5289
  switch (r.action) {
5284
5290
  case "add":
5285
5291
  Me.push(r.data);
@@ -5293,36 +5299,36 @@ function to() {
5293
5299
  query: "x0054",
5294
5300
  array: ["M01", "M02"]
5295
5301
  });
5296
- for (let s in r)
5297
- switch (s) {
5302
+ for (let i in r)
5303
+ switch (i) {
5298
5304
  case "news":
5299
5305
  t({ type: "news", data: r.news });
5300
5306
  break;
5301
5307
  case "M01":
5302
- r[s].forEach((i) => {
5308
+ r[i].forEach((o) => {
5303
5309
  Me.push({
5304
5310
  module: "M01",
5305
5311
  type: 1,
5306
- id: i.id,
5307
- datetime: new Date(i.tDate).getTime(),
5308
- txt: i.p01
5312
+ id: o.id,
5313
+ datetime: new Date(o.tDate).getTime(),
5314
+ txt: o.p01
5309
5315
  });
5310
5316
  });
5311
5317
  break;
5312
5318
  case "M02":
5313
- r[s].forEach((i) => {
5319
+ r[i].forEach((o) => {
5314
5320
  Me.push({
5315
5321
  module: "M02",
5316
5322
  type: 117,
5317
- id: i.id,
5318
- datetime: new Date(i.tDate).getTime(),
5319
- txt: i.p01
5323
+ id: o.id,
5324
+ datetime: new Date(o.tDate).getTime(),
5325
+ txt: o.p01
5320
5326
  });
5321
5327
  });
5322
5328
  break;
5323
5329
  }
5324
5330
  })(), setInterval(() => {
5325
- Me.forEach((r, s) => {
5331
+ Me.forEach((r, i) => {
5326
5332
  t({
5327
5333
  type: "add",
5328
5334
  data: {
@@ -5332,7 +5338,7 @@ function to() {
5332
5338
  datetime: r.datetime,
5333
5339
  txt: r.title
5334
5340
  }
5335
- }), r.datetime < (/* @__PURE__ */ new Date()).getTime() && Me.splice(s, 1);
5341
+ }), r.datetime < (/* @__PURE__ */ new Date()).getTime() && Me.splice(i, 1);
5336
5342
  });
5337
5343
  }, 6e4);
5338
5344
  }, []);
@@ -5343,11 +5349,11 @@ function to() {
5343
5349
  /* @__PURE__ */ n.jsx(
5344
5350
  "div",
5345
5351
  {
5346
- className: Vi.n,
5352
+ className: qo.n,
5347
5353
  onClick: () => {
5348
5354
  t({ type: "open", open: !0 });
5349
5355
  },
5350
- children: e.active ? /* @__PURE__ */ n.jsx(Ui, {}) : /* @__PURE__ */ n.jsx(Zi, {})
5356
+ children: e.active ? /* @__PURE__ */ n.jsx(Ho, {}) : /* @__PURE__ */ n.jsx(Uo, {})
5351
5357
  }
5352
5358
  ),
5353
5359
  e.open ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
@@ -5361,20 +5367,20 @@ function to() {
5361
5367
  }
5362
5368
  ),
5363
5369
  /* @__PURE__ */ n.jsxs("div", { className: "notify-m", children: [
5364
- /* @__PURE__ */ n.jsx("div", { className: "notify-l", children: e.news.map((r, s) => /* @__PURE__ */ n.jsx(
5365
- no,
5370
+ /* @__PURE__ */ n.jsx("div", { className: "notify-l", children: e.news.map((r, i) => /* @__PURE__ */ n.jsx(
5371
+ as,
5366
5372
  {
5367
5373
  data: r,
5368
5374
  dispatch: t
5369
5375
  },
5370
- s
5376
+ i
5371
5377
  )) }),
5372
5378
  /* @__PURE__ */ n.jsx("div", { className: "notify-b", onClick: a, children: "История" })
5373
5379
  ] })
5374
5380
  ] }) : ""
5375
5381
  ] });
5376
5382
  }
5377
- const no = ({ data: e, dispatch: t }) => {
5383
+ const as = ({ data: e, dispatch: t }) => {
5378
5384
  let a = async (r) => {
5379
5385
  t({ type: "hide", id: r.id }), await mt.Send({
5380
5386
  type: "module",
@@ -5391,21 +5397,21 @@ const no = ({ data: e, dispatch: t }) => {
5391
5397
  ] }),
5392
5398
  /* @__PURE__ */ n.jsx("div", { className: "--hide", "data-icon": "F038", onClick: () => a(e), children: " " })
5393
5399
  ] });
5394
- }, ao = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
5395
- function ro(e) {
5400
+ }, rs = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
5401
+ function is(e) {
5396
5402
  return new SharedWorker(
5397
- "data:text/javascript;base64," + ao,
5403
+ "data:text/javascript;base64," + rs,
5398
5404
  {
5399
5405
  name: e == null ? void 0 : e.name
5400
5406
  }
5401
5407
  );
5402
5408
  }
5403
- function so(e) {
5409
+ function os(e) {
5404
5410
  let t = {}, a = {};
5405
- e.data.forEach((s) => {
5406
- t[s.id] = { s: s.v, n: s.a }, a[s.id] = s;
5411
+ e.data.forEach((i) => {
5412
+ t[i.id] = { s: i.v, n: i.a }, a[i.id] = i;
5407
5413
  });
5408
- let r = { ...xe(), 901: t };
5414
+ let r = { ...pe(), 901: t };
5409
5415
  cn(a), De(r);
5410
5416
  }
5411
5417
  let ae = {}, H = {}, We = [
@@ -5418,10 +5424,10 @@ let ae = {}, H = {}, We = [
5418
5424
  "info",
5419
5425
  "job"
5420
5426
  ];
5421
- function io() {
5427
+ function ss() {
5422
5428
  const [e, t] = b.useState(!1), [a, r] = b.useState(!1);
5423
- function s(i) {
5424
- const l = new ro();
5429
+ function i(o) {
5430
+ const l = new is();
5425
5431
  ae.laodData = (c) => {
5426
5432
  let d = We.indexOf(c);
5427
5433
  d >= 0 && We.splice(d, 1), We.length === 0 && t(!0);
@@ -5431,28 +5437,28 @@ function io() {
5431
5437
  let d = c.data;
5432
5438
  d.type === "error" && r(!0), d.type === "true" && t(!0), d.type === "closed" && l.port.postMessage({
5433
5439
  type: "connect",
5434
- ukey: i,
5440
+ ukey: o,
5435
5441
  lk: lt()
5436
5442
  }), We.length !== 0 && ae.laodData(d.type), H[d.type] && H[d.type](d);
5437
5443
  }, l.port.postMessage({
5438
5444
  type: "connect",
5439
- ukey: i,
5445
+ ukey: o,
5440
5446
  lk: lt()
5441
5447
  });
5442
5448
  }
5443
- return [s, e, a];
5449
+ return [i, e, a];
5444
5450
  }
5445
5451
  H.module = (e) => {
5446
5452
  ae[e.listen] !== void 0 && (ae[e.listen](e), delete ae[e.listen]);
5447
5453
  };
5448
- H.bell = Qi;
5449
- H.company = so;
5454
+ H.bell = es;
5455
+ H.company = os;
5450
5456
  H.info = (e) => {
5451
5457
  let t = {};
5452
- t.db = e.db, t.id = e.data.id, t.job = e.data.job, t.login = e.data.login, t.name = e.data.p02, t.patronymic = e.data.p03, t.surname = e.data.p01, t.email = e.data.email, t.admin = e.data.menu.includes("99"), _n(t), on(e.data.menu);
5458
+ t.db = e.db, t.id = e.data.id, t.job = e.data.job, t.login = e.data.login, t.name = e.data.p02, t.patronymic = e.data.p03, t.surname = e.data.p01, t.email = e.data.email, t.admin = e.data.menu.includes("99"), _n(t), sn(e.data.menu);
5453
5459
  };
5454
5460
  H.version = async (e) => {
5455
- xt.version.Server(e.data);
5461
+ pt.version.Server(e.data);
5456
5462
  };
5457
5463
  H.online = async (e) => {
5458
5464
  };
@@ -5474,7 +5480,7 @@ H.chat = (e) => {
5474
5480
  H.users = (e) => {
5475
5481
  let t = {};
5476
5482
  e.data.forEach((r) => {
5477
- 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);
5483
+ let i = r.p01 + " " + r.p02 + " " + r.p03, o = 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);
5478
5484
  t[r.id] = {
5479
5485
  id: r.id,
5480
5486
  admin: r.m.includes("99"),
@@ -5483,12 +5489,12 @@ H.users = (e) => {
5483
5489
  login: "",
5484
5490
  online: { time: r.o, status: 0 },
5485
5491
  sts: r.s,
5486
- nameFull: s,
5487
- name: i,
5492
+ nameFull: i,
5493
+ name: o,
5488
5494
  number: l
5489
5495
  };
5490
5496
  });
5491
- let a = { ...xe(), user: t };
5497
+ let a = { ...pe(), user: t };
5492
5498
  De(a);
5493
5499
  };
5494
5500
  H.api = (e) => {
@@ -5501,13 +5507,13 @@ H.delete = () => {
5501
5507
  X();
5502
5508
  };
5503
5509
  H.select = (e) => {
5504
- let t = { ...xe() };
5510
+ let t = { ...pe() };
5505
5511
  e.data.forEach((a) => {
5506
5512
  t[a.n] = JSON.parse(a.s);
5507
5513
  }), De(t);
5508
5514
  };
5509
5515
  H.job = (e) => {
5510
- let t = { ...xe() }, a = {};
5516
+ let t = { ...pe() }, a = {};
5511
5517
  Object.keys(e.data).forEach((r) => {
5512
5518
  a[r] = { s: 1, n: e.data[r] };
5513
5519
  }), t[1] = a, De(t);
@@ -5517,12 +5523,12 @@ H.setting = (e) => {
5517
5523
  };
5518
5524
  H.app = () => {
5519
5525
  };
5520
- const oo = (e, t) => {
5526
+ const ls = (e, t) => {
5521
5527
  ae[e] = t;
5522
- }, lo = (e, t) => {
5528
+ }, cs = (e, t) => {
5523
5529
  ae[e](t);
5524
5530
  };
5525
- function co(e) {
5531
+ function _s(e) {
5526
5532
  let t = "_" + String(Math.random()).substring(2, 7);
5527
5533
  return new Promise((a) => {
5528
5534
  ae[t] = (r) => {
@@ -5530,77 +5536,77 @@ function co(e) {
5530
5536
  }, e = { ...e, listen: t }, e.type = "modules", ae.send(e);
5531
5537
  });
5532
5538
  }
5533
- const mt = { useConnect: io, useListener: oo, setListener: lo, Send: co };
5534
- class _o {
5539
+ const mt = { useConnect: ss, useListener: ls, setListener: cs, Send: _s };
5540
+ class ds {
5535
5541
  constructor(t = "el", a = "db") {
5536
- st(this, "storeName");
5537
- st(this, "_dbp");
5538
- this.storeName = a, this._dbp = new Promise((r, s) => {
5539
- const i = indexedDB.open(t, 1);
5540
- i.onerror = () => s(i.error), i.onsuccess = () => r(i.result), i.onupgradeneeded = () => {
5541
- i.result.createObjectStore(a);
5542
+ it(this, "storeName");
5543
+ it(this, "_dbp");
5544
+ this.storeName = a, this._dbp = new Promise((r, i) => {
5545
+ const o = indexedDB.open(t, 1);
5546
+ o.onerror = () => i(o.error), o.onsuccess = () => r(o.result), o.onupgradeneeded = () => {
5547
+ o.result.createObjectStore(a);
5542
5548
  };
5543
5549
  });
5544
5550
  }
5545
5551
  _withIDBStore(t, a) {
5546
5552
  return this._dbp.then(
5547
- (r) => new Promise((s, i) => {
5553
+ (r) => new Promise((i, o) => {
5548
5554
  const l = r.transaction(this.storeName, t);
5549
- l.oncomplete = () => s(), l.onabort = l.onerror = () => i(l.error), a(l.objectStore(this.storeName));
5555
+ l.oncomplete = () => i(), l.onabort = l.onerror = () => o(l.error), a(l.objectStore(this.storeName));
5550
5556
  })
5551
5557
  );
5552
5558
  }
5553
5559
  }
5554
- let ot, O = {};
5555
- const Se = () => (ot || (ot = new _o()), ot), de = (e, t, a = Se()) => a._withIDBStore("readwrite", (r) => {
5560
+ let st, O = {};
5561
+ const Se = () => (st || (st = new ds()), st), de = (e, t, a = Se()) => a._withIDBStore("readwrite", (r) => {
5556
5562
  O[e] = t, r.put(N.enCode(t), e);
5557
- }), se = (e, t = Se()) => O[e] === void 0 ? new Promise((a, r) => {
5558
- let s;
5559
- t._withIDBStore("readonly", (i) => {
5560
- s = i.get(e);
5563
+ }), ie = (e, t = Se()) => O[e] === void 0 ? new Promise((a, r) => {
5564
+ let i;
5565
+ t._withIDBStore("readonly", (o) => {
5566
+ i = o.get(e);
5561
5567
  }).then(() => {
5562
- if (s.result !== void 0) {
5563
- let i = N.deCode(s.result);
5564
- O[e] = i, a(i);
5568
+ if (i.result !== void 0) {
5569
+ let o = N.deCode(i.result);
5570
+ O[e] = o, a(o);
5565
5571
  } else
5566
5572
  a({});
5567
5573
  });
5568
- }) : O[e], uo = (e, t = Se()) => t._withIDBStore("readwrite", (a) => {
5574
+ }) : O[e], us = (e, t = Se()) => t._withIDBStore("readwrite", (a) => {
5569
5575
  a.delete(e);
5570
5576
  }), ht = (e = Se()) => e._withIDBStore("readwrite", (t) => {
5571
5577
  t.clear();
5572
- }), fo = (e = Se()) => {
5578
+ }), fs = (e = Se()) => {
5573
5579
  const t = [];
5574
5580
  return e._withIDBStore("readonly", (a) => {
5575
5581
  (a.openKeyCursor || a.openCursor).call(a).onsuccess = function() {
5576
5582
  this.result && (t.push(this.result.key), this.result.continue());
5577
5583
  };
5578
5584
  }).then(() => t);
5579
- }, mo = (e, t, a = [], r = {}) => {
5580
- let s = a.length !== 0, i = [], l = r.sort, c = Object.keys(r).length !== 0, d = Object.keys(r), _ = Object.keys(e), u = [], f = (m) => {
5585
+ }, ms = (e, t, a = [], r = {}) => {
5586
+ let i = a.length !== 0, o = [], l = r.sort, c = Object.keys(r).length !== 0, d = Object.keys(r), _ = Object.keys(e), u = [], f = (m) => {
5581
5587
  let g = "";
5582
5588
  if (a.forEach((v) => {
5583
5589
  g += t[m][v];
5584
5590
  }), c) {
5585
5591
  let v = {};
5586
- d.forEach((p) => {
5587
- v[p] = t[m][p];
5592
+ d.forEach((x) => {
5593
+ v[x] = t[m][x];
5588
5594
  });
5589
- for (let p in l)
5590
- t[m][l[p]] === void 0 && (ht(), location.reload()), p === "s1" && (v[p] = new Date(t[m][l[p]]).getTime()), p === "s2" && (v[p] = t[m][l[p]]), p === "s3" && (v[p] = t[m][l[p]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
5591
- i.push({ id: m, text: g, ...v });
5595
+ for (let x in l)
5596
+ t[m][l[x]] === void 0 && (ht(), location.reload()), x === "s1" && (v[x] = new Date(t[m][l[x]]).getTime()), x === "s2" && (v[x] = t[m][l[x]]), x === "s3" && (v[x] = t[m][l[x]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
5597
+ o.push({ id: m, text: g, ...v });
5592
5598
  } else
5593
- i.push({ id: m, text: g });
5594
- }, x = (m) => {
5599
+ o.push({ id: m, text: g });
5600
+ }, p = (m) => {
5595
5601
  };
5596
5602
  return _.forEach((m) => {
5597
5603
  u.push(t[m]);
5598
5604
  }), u.forEach((m) => {
5599
- m === void 0 ? (ht(), location.reload()) : (s && f(m.id), c && x(m.id));
5600
- }), { list: u, search: i, filter: r };
5601
- }, ho = (e, t, a, r = Se()) => {
5605
+ m === void 0 ? (ht(), location.reload()) : (i && f(m.id), c && p(m.id));
5606
+ }), { list: u, search: o, filter: r };
5607
+ }, hs = (e, t, a, r = Se()) => {
5602
5608
  if (O[e] === void 0)
5603
- return new Promise((s, i) => {
5609
+ return new Promise((i, o) => {
5604
5610
  let l;
5605
5611
  r._withIDBStore("readonly", (c) => {
5606
5612
  l = c.get(e);
@@ -5610,62 +5616,62 @@ const Se = () => (ot || (ot = new _o()), ot), de = (e, t, a = Se()) => a._withID
5610
5616
  O[e] = c, O[e][t.id] = {
5611
5617
  ...O[e][t.id],
5612
5618
  ...t.data
5613
- }, r.put(N.enCode(O[e]), e), s({});
5619
+ }, r.put(N.enCode(O[e]), e), i({});
5614
5620
  } else
5615
- s({});
5621
+ i({});
5616
5622
  });
5617
5623
  });
5618
5624
  if (O[e][t.id] !== void 0)
5619
- return O[e][t.id] = { ...O[e][t.id], ...t.data }, a !== void 0 && O[a] !== void 0 ? O[a][t.id] !== void 0 && (O[a][t.id] = t.data.eDate) : O[a] = [], delete O[e][t.id].$_item, delete O[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
5620
- s.put(N.enCode(O[e]), e), a !== void 0 && s.put(N.enCode(O[a]), a);
5625
+ return O[e][t.id] = { ...O[e][t.id], ...t.data }, a !== void 0 && O[a] !== void 0 ? O[a][t.id] !== void 0 && (O[a][t.id] = t.data.eDate) : O[a] = [], delete O[e][t.id].$_item, delete O[e][t.id].$_send, r._withIDBStore("readwrite", (i) => {
5626
+ i.put(N.enCode(O[e]), e), a !== void 0 && i.put(N.enCode(O[a]), a);
5621
5627
  });
5622
- }, go = async (e, t, a, r) => {
5623
- let s, i;
5624
- i = await se(a), i[e.id] = e, await de(a, i), s !== null && (s = await se(t), s[e.id] = e.eDate, await de(t, s)), r !== void 0 && r({ type: "load", page: s, base: i });
5625
- }, po = async (e, t, a, r) => {
5626
- let s = await se(t), i = await se(a);
5628
+ }, gs = async (e, t, a, r) => {
5629
+ let i, o;
5630
+ o = await ie(a), o[e.id] = e, await de(a, o), i !== null && (i = await ie(t), i[e.id] = e.eDate, await de(t, i)), r !== void 0 && r({ type: "load", page: i, base: o });
5631
+ }, xs = async (e, t, a, r) => {
5632
+ let i = await ie(t), o = await ie(a);
5627
5633
  for (let l in e)
5628
- i[l] = e[l], s[l] = e[l].eDate;
5629
- await de(t, s), await de(a, i), r !== void 0 && r({ type: "load", page: s, base: i });
5630
- }, xo = async (e, t, a, r) => {
5631
- let s = await se(t), i = await se(a);
5632
- e.forEach((l) => delete s[l]), await de(t, s), r !== void 0 && r({ type: "load", page: s, base: i });
5633
- }, vo = async (e, t, a) => {
5634
- let r = await se(t);
5635
- e.forEach((s) => delete r[s]), await de(t, r);
5636
- }, ko = async (e, t, a) => {
5637
- let r = await se(t);
5638
- e.forEach((s) => r[s.id] = s.eDate), await de(t, r);
5639
- }, bo = async (e, t, a) => {
5640
- let r = await se(t);
5634
+ o[l] = e[l], i[l] = e[l].eDate;
5635
+ await de(t, i), await de(a, o), r !== void 0 && r({ type: "load", page: i, base: o });
5636
+ }, ps = async (e, t, a, r) => {
5637
+ let i = await ie(t), o = await ie(a);
5638
+ e.forEach((l) => delete i[l]), await de(t, i), r !== void 0 && r({ type: "load", page: i, base: o });
5639
+ }, vs = async (e, t, a) => {
5640
+ let r = await ie(t);
5641
+ e.forEach((i) => delete r[i]), await de(t, r);
5642
+ }, ks = async (e, t, a) => {
5643
+ let r = await ie(t);
5644
+ e.forEach((i) => r[i.id] = i.eDate), await de(t, r);
5645
+ }, bs = async (e, t, a) => {
5646
+ let r = await ie(t);
5641
5647
  if (a !== void 0)
5642
5648
  a({ type: "load", base: r });
5643
5649
  else
5644
5650
  return r[e];
5645
- }, Co = (e) => O[e], hl = {
5646
- id: bo,
5647
- get: se,
5651
+ }, Cs = (e) => O[e], hl = {
5652
+ id: bs,
5653
+ get: ie,
5648
5654
  set: de,
5649
- add: go,
5650
- del: uo,
5651
- upd: ho,
5652
- key: fo,
5653
- load: Co,
5654
- split: mo,
5655
+ add: gs,
5656
+ del: us,
5657
+ upd: hs,
5658
+ key: fs,
5659
+ load: Cs,
5660
+ split: ms,
5655
5661
  clear: ht,
5656
- updAll: po,
5657
- delAll: xo,
5658
- delList: vo,
5659
- addList: ko
5660
- }, gl = { setSetting: Oa, getSetting: Aa }, jo = "_s_18bde_1", yo = "_loadingB_18bde_1", wo = "_ul_18bde_31", So = {
5661
- s: jo,
5662
- loadingB: yo,
5663
- ul: wo
5662
+ updAll: xs,
5663
+ delAll: ps,
5664
+ delList: vs,
5665
+ addList: ks
5666
+ }, gl = { setSetting: Oa, getSetting: Aa }, js = "_s_18bde_1", ys = "_loadingB_18bde_1", ws = "_ul_18bde_31", Ss = {
5667
+ s: js,
5668
+ loadingB: ys,
5669
+ ul: ws
5664
5670
  };
5665
- function Eo({ children: e }) {
5671
+ function Es({ children: e }) {
5666
5672
  return /* @__PURE__ */ n.jsx("ul", { className: J.ul, children: e });
5667
5673
  }
5668
- function To(e, t) {
5674
+ function Ts(e, t) {
5669
5675
  switch (t.type) {
5670
5676
  case "load":
5671
5677
  return {
@@ -5698,13 +5704,13 @@ function To(e, t) {
5698
5704
  throw new Error();
5699
5705
  }
5700
5706
  }
5701
- function pl({
5707
+ function xl({
5702
5708
  list: e,
5703
5709
  load: t,
5704
5710
  className: a,
5705
5711
  ...r
5706
5712
  }) {
5707
- const s = b.useRef(null), [i, l] = b.useReducer(To, {
5713
+ const i = b.useRef(null), [o, l] = b.useReducer(Ts, {
5708
5714
  load: !1,
5709
5715
  list: [],
5710
5716
  data: {},
@@ -5713,18 +5719,18 @@ function pl({
5713
5719
  size: 0
5714
5720
  });
5715
5721
  b.useEffect(() => {
5716
- s.current.scrollTop = 0, e !== null && l({ type: "load", load: !0, data: e });
5722
+ i.current.scrollTop = 0, e !== null && l({ type: "load", load: !0, data: e });
5717
5723
  }, [t]);
5718
5724
  let c = () => {
5719
- s.current.scrollHeight - s.current.scrollTop - 300 <= s.current.clientHeight && !i.wait && l({ type: "update" });
5725
+ i.current.scrollHeight - i.current.scrollTop - 300 <= i.current.clientHeight && !o.wait && l({ type: "update" });
5720
5726
  };
5721
5727
  return /* @__PURE__ */ n.jsx(
5722
5728
  "div",
5723
5729
  {
5724
- className: [So.s, a].join(" "),
5725
- ref: s,
5730
+ className: [Ss.s, a].join(" "),
5731
+ ref: i,
5726
5732
  onScroll: c,
5727
- children: /* @__PURE__ */ n.jsx(Eo, { "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: [
5733
+ children: /* @__PURE__ */ n.jsx(Es, { "el-empty": "Данные не найдены", children: o.load && o.list !== void 0 ? o.list.map((d) => /* @__PURE__ */ n.jsx(r.item, { data: d }, d.id)) : /* @__PURE__ */ n.jsxs("div", { "data-load": "load", children: [
5728
5734
  /* @__PURE__ */ n.jsx("i", {}),
5729
5735
  /* @__PURE__ */ n.jsx("i", {}),
5730
5736
  /* @__PURE__ */ n.jsx("i", {})
@@ -5732,47 +5738,47 @@ function pl({
5732
5738
  }
5733
5739
  );
5734
5740
  }
5735
- const Ro = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
5736
- const [i, l] = b.useState(!!a);
5741
+ const Rs = ({ label: e, onValue: t, value: a, name: r, item: i }) => {
5742
+ const [o, l] = b.useState(!!a);
5737
5743
  b.useEffect(() => {
5738
5744
  l(!!a);
5739
5745
  }, [a]);
5740
5746
  let c = () => {
5741
- let d = parseInt(i) === 0 ? 1 : 0;
5742
- l(d), t({ value: d, name: r, key: s, item: s });
5747
+ let d = parseInt(o) === 0 ? 1 : 0;
5748
+ l(d), t({ value: d, name: r, key: i, item: i });
5743
5749
  };
5744
5750
  return /* @__PURE__ */ n.jsx(
5745
5751
  "div",
5746
5752
  {
5747
5753
  role: "switch",
5748
5754
  onClick: c,
5749
- "aria-checked": `${i ? "true" : "false"}`
5755
+ "aria-checked": `${o ? "true" : "false"}`
5750
5756
  }
5751
5757
  );
5752
5758
  }, we = {};
5753
- function Bo(e) {
5759
+ function Bs(e) {
5754
5760
  const [t, a] = b.useState({}), r = b.useRef(e);
5755
- return we.u = (s) => {
5756
- r.current = { ...r.current, [s.name]: s.value };
5761
+ return we.u = (i) => {
5762
+ r.current = { ...r.current, [i.name]: i.value };
5757
5763
  }, we.r = () => {
5758
5764
  a(Date.now());
5759
5765
  }, [r.current];
5760
5766
  }
5761
- function Io(e) {
5767
+ function Is(e) {
5762
5768
  we.u(e), e.reload && we.r();
5763
5769
  }
5764
- function Mo() {
5770
+ function Ms() {
5765
5771
  we.r && we.r();
5766
5772
  }
5767
- const xl = {
5773
+ const pl = {
5768
5774
  Color: bn,
5769
5775
  Date: vt,
5770
5776
  Code: kn,
5771
5777
  Check: Rn,
5772
5778
  Switch: hn,
5773
5779
  Button: gn,
5774
- Message: pn,
5775
- Generator: xn,
5780
+ Message: xn,
5781
+ Generator: pn,
5776
5782
  Captcha: vn,
5777
5783
  Modal: kt,
5778
5784
  Money: bt,
@@ -5789,19 +5795,19 @@ const xl = {
5789
5795
  Users: St,
5790
5796
  String: wt,
5791
5797
  Form: ft,
5792
- runReload: Mo,
5793
- useData: Bo,
5794
- setValue: Io,
5795
- Palette: Ro,
5798
+ runReload: Ms,
5799
+ useData: Bs,
5800
+ setValue: Is,
5801
+ Palette: Rs,
5796
5802
  Toogle: Bn,
5797
5803
  Group: In,
5798
5804
  Options: Mn
5799
- }, No = "_spinner_1ul0m_1", Do = "_l_1ul0m_75", Fo = "_loadingB_1ul0m_1", Fn = {
5800
- spinner: No,
5801
- l: Do,
5802
- loadingB: Fo
5805
+ }, Ns = "_spinner_1ul0m_1", Ds = "_l_1ul0m_75", Fs = "_loadingB_1ul0m_1", Fn = {
5806
+ spinner: Ns,
5807
+ l: Ds,
5808
+ loadingB: Fs
5803
5809
  };
5804
- function Po() {
5810
+ function Ps() {
5805
5811
  return /* @__PURE__ */ n.jsx("div", { className: Fn.spinner, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ n.jsx(
5806
5812
  "path",
5807
5813
  {
@@ -5810,60 +5816,60 @@ function Po() {
5810
5816
  }
5811
5817
  ) }) });
5812
5818
  }
5813
- function $o() {
5819
+ function $s() {
5814
5820
  return /* @__PURE__ */ n.jsxs("div", { className: Fn.l, children: [
5815
5821
  /* @__PURE__ */ n.jsx("i", {}),
5816
5822
  /* @__PURE__ */ n.jsx("i", {}),
5817
5823
  /* @__PURE__ */ n.jsx("i", {})
5818
5824
  ] });
5819
5825
  }
5820
- const vl = { Spinner: Po, Inline: $o }, Lo = "_s_t9swc_1", tn = {
5821
- s: Lo
5826
+ const vl = { Spinner: Ps, Inline: $s }, Ls = "_s_t9swc_1", tn = {
5827
+ s: Ls
5822
5828
  };
5823
5829
  let Et;
5824
- function Oo({ className: e, placeholder: t }) {
5830
+ function Os({ className: e, placeholder: t }) {
5825
5831
  let a = (l) => {
5826
5832
  Et(l.target.textContent);
5827
5833
  }, r = (l) => {
5828
5834
  l.key === "Enter" && l.preventDefault();
5829
- }, s = (l) => {
5835
+ }, i = (l) => {
5830
5836
  l.preventDefault(), navigator.clipboard.readText().then((c) => {
5831
5837
  window.document.execCommand("insertText", !1, c);
5832
5838
  }).catch((c) => {
5833
5839
  });
5834
5840
  };
5835
- const i = {};
5836
- return t && (i.placeholder = t), i.className = e ? [tn.s, e].join(" ") : tn.s, /* @__PURE__ */ n.jsx(
5841
+ const o = {};
5842
+ return t && (o.placeholder = t), o.className = e ? [tn.s, e].join(" ") : tn.s, /* @__PURE__ */ n.jsx(
5837
5843
  "div",
5838
5844
  {
5839
- onPaste: s,
5845
+ onPaste: i,
5840
5846
  onInput: a,
5841
5847
  onKeyDown: r,
5842
5848
  contentEditable: "true",
5843
- ...i,
5849
+ ...o,
5844
5850
  suppressContentEditableWarning: !0
5845
5851
  }
5846
5852
  );
5847
5853
  }
5848
- function Ao(e, t, a) {
5849
- let r = [], s = 1, i = 0, l = {}, c = 50;
5850
- return l[s] = [], e.forEach((d) => {
5854
+ function As(e, t, a) {
5855
+ let r = [], i = 1, o = 0, l = {}, c = 50;
5856
+ return l[i] = [], e.forEach((d) => {
5851
5857
  d.text.toLowerCase().indexOf(t) > -1 && r.push(d.id);
5852
5858
  }), r.forEach((d) => {
5853
- i++, i <= c || (s++, i = 1, l[s] = []), l[s].push(a[d]);
5859
+ o++, o <= c || (i++, o = 1, l[i] = []), l[i].push(a[d]);
5854
5860
  }), l;
5855
5861
  }
5856
- function Go(e) {
5862
+ function Gs(e) {
5857
5863
  Et = e;
5858
5864
  }
5859
- function zo(e) {
5865
+ function zs(e) {
5860
5866
  Et = e;
5861
5867
  }
5862
- const kl = { Field: Oo, Run: Ao, Get: Go, useValue: zo }, Wo = "_f_q3r0i_1", Ko = {
5863
- f: Wo
5868
+ const kl = { Field: Os, Run: As, Get: Gs, useValue: zs }, Ws = "_f_q3r0i_1", Ks = {
5869
+ f: Ws
5864
5870
  };
5865
5871
  let ee = {};
5866
- function Zo(e, t) {
5872
+ function Zs(e, t) {
5867
5873
  switch (t.type) {
5868
5874
  case "open":
5869
5875
  return {
@@ -5877,8 +5883,8 @@ function Zo(e, t) {
5877
5883
  };
5878
5884
  case "data":
5879
5885
  let a = {};
5880
- return Object.keys(t.data).forEach((s) => {
5881
- s !== "sort" && (a[s] = t.data[s], e.take[s] = "999");
5886
+ return Object.keys(t.data).forEach((i) => {
5887
+ i !== "sort" && (a[i] = t.data[i], e.take[i] = "999");
5882
5888
  }), {
5883
5889
  ...e,
5884
5890
  data: a,
@@ -5892,16 +5898,16 @@ function Zo(e, t) {
5892
5898
  case "take":
5893
5899
  let r = { [t.list]: t.take };
5894
5900
  r = { ...e.take, ...r }, e.active = !1;
5895
- for (let s in r)
5896
- r[s] !== "999" && (e.active = !0);
5901
+ for (let i in r)
5902
+ r[i] !== "999" && (e.active = !0);
5897
5903
  return ee.get(r, e.active), {
5898
5904
  ...e,
5899
5905
  take: r,
5900
5906
  active: e.active
5901
5907
  };
5902
5908
  case "exit":
5903
- for (let s in e.take)
5904
- e.take[s] = "999";
5909
+ for (let i in e.take)
5910
+ e.take[i] = "999";
5905
5911
  return ee.get && ee.get([], !1), {
5906
5912
  ...e,
5907
5913
  size: 0,
@@ -5913,8 +5919,8 @@ function Zo(e, t) {
5913
5919
  throw new Error();
5914
5920
  }
5915
5921
  }
5916
- function Uo() {
5917
- const [e, t] = b.useReducer(Zo, {
5922
+ function Us() {
5923
+ const [e, t] = b.useReducer(Zs, {
5918
5924
  open: !1,
5919
5925
  view: null,
5920
5926
  data: {},
@@ -5932,12 +5938,12 @@ function Uo() {
5932
5938
  /* @__PURE__ */ n.jsxs(
5933
5939
  "div",
5934
5940
  {
5935
- className: Ko.f,
5941
+ className: Ks.f,
5936
5942
  onClick: () => {
5937
5943
  t({ type: "open", open: !0 });
5938
5944
  },
5939
5945
  children: [
5940
- /* @__PURE__ */ n.jsx(Hi, {}),
5946
+ /* @__PURE__ */ n.jsx(Yo, {}),
5941
5947
  e.active && /* @__PURE__ */ n.jsxs("i", { children: [
5942
5948
  e.size,
5943
5949
  "1"
@@ -5957,7 +5963,7 @@ function Uo() {
5957
5963
  ),
5958
5964
  /* @__PURE__ */ n.jsxs("div", { className: "filter m", children: [
5959
5965
  /* @__PURE__ */ n.jsx("div", { className: "filter l", children: Object.keys(e.data).map((a) => /* @__PURE__ */ n.jsx(
5960
- Jo,
5966
+ Js,
5961
5967
  {
5962
5968
  data: a,
5963
5969
  dispatch: t,
@@ -5979,34 +5985,34 @@ function Uo() {
5979
5985
  ] }) : /* @__PURE__ */ n.jsx(n.Fragment, {})
5980
5986
  ] });
5981
5987
  }
5982
- function Ho(e) {
5988
+ function Hs(e) {
5983
5989
  ee.get = e;
5984
5990
  }
5985
- function Yo(e) {
5991
+ function Ys(e) {
5986
5992
  ee.set !== void 0 && ee.set(e);
5987
5993
  }
5988
- function Vo(e) {
5994
+ function Vs(e) {
5989
5995
  ee.reset !== void 0 && ee.reset(e);
5990
5996
  }
5991
- function qo(e, t, a, r) {
5992
- let s = [], i = 1, l = 0, c = {}, d = 50;
5993
- return c[i] = [], r === !0 && (Object.keys(t).forEach((_) => {
5997
+ function qs(e, t, a, r) {
5998
+ let i = [], o = 1, l = 0, c = {}, d = 50;
5999
+ return c[o] = [], r === !0 && (Object.keys(t).forEach((_) => {
5994
6000
  Number.parseInt(t[_]) !== 999 && (e = e.filter(
5995
6001
  (u) => Number.parseInt(u[_]) === Number.parseInt(t[_])
5996
6002
  ));
5997
6003
  }), Pn(e.length)), e.forEach((_) => {
5998
- s.push(_.id);
5999
- }), s.forEach((_) => {
6000
- l++, l <= d || (i++, l = 1, c[i] = []), c[i].push(a[_]);
6004
+ i.push(_.id);
6005
+ }), i.forEach((_) => {
6006
+ l++, l <= d || (o++, l = 1, c[o] = []), c[o].push(a[_]);
6001
6007
  }), c;
6002
6008
  }
6003
6009
  function Pn(e) {
6004
6010
  ee.count(e);
6005
6011
  }
6006
- function Jo({ data: e, state: t, dispatch: a }) {
6012
+ function Js({ data: e, state: t, dispatch: a }) {
6007
6013
  let r = () => {
6008
6014
  a({ type: "view", view: e });
6009
- }, s = () => {
6015
+ }, i = () => {
6010
6016
  a({ type: "take", list: e, take: "999" });
6011
6017
  };
6012
6018
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
@@ -6019,18 +6025,18 @@ function Jo({ data: e, state: t, dispatch: a }) {
6019
6025
  t.take[e] !== "999" ? /* @__PURE__ */ n.jsx(
6020
6026
  "div",
6021
6027
  {
6022
- onClick: s,
6028
+ onClick: i,
6023
6029
  className: "filter x",
6024
6030
  "data-icon": "F038"
6025
6031
  }
6026
6032
  ) : ""
6027
6033
  ] }),
6028
- /* @__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(
6029
- Xo,
6034
+ /* @__PURE__ */ n.jsx("div", { className: "filter u", "set-active": (t.view === e) + "", children: Object.keys(t.data[e].list).map((o, l) => /* @__PURE__ */ n.jsx(
6035
+ Xs,
6030
6036
  {
6031
- data: t.data[e].list[i],
6037
+ data: t.data[e].list[o],
6032
6038
  head: e,
6033
- type: i,
6039
+ type: o,
6034
6040
  dispatch: a,
6035
6041
  state: t
6036
6042
  },
@@ -6038,18 +6044,18 @@ function Jo({ data: e, state: t, dispatch: a }) {
6038
6044
  )) })
6039
6045
  ] });
6040
6046
  }
6041
- function Xo({ data: e, head: t, state: a, dispatch: r, type: s }) {
6042
- if (s !== "999" && e.count === void 0)
6047
+ function Xs({ data: e, head: t, state: a, dispatch: r, type: i }) {
6048
+ if (i !== "999" && e.count === void 0)
6043
6049
  return "";
6044
- const i = () => {
6045
- r({ type: "take", list: t, take: s });
6050
+ const o = () => {
6051
+ r({ type: "take", list: t, take: i });
6046
6052
  };
6047
6053
  return /* @__PURE__ */ n.jsxs(
6048
6054
  "div",
6049
6055
  {
6050
6056
  className: "filter a",
6051
- onClick: i,
6052
- "set-active": (a.take[t] === s) + "",
6057
+ onClick: o,
6058
+ "set-active": (a.take[t] === i) + "",
6053
6059
  children: [
6054
6060
  e.name,
6055
6061
  /* @__PURE__ */ n.jsx("div", { className: "filter e", children: e.count })
@@ -6057,27 +6063,27 @@ function Xo({ data: e, head: t, state: a, dispatch: r, type: s }) {
6057
6063
  }
6058
6064
  );
6059
6065
  }
6060
- const bl = { Button: Uo, useValue: Ho, Set: Yo, Run: qo, Count: Pn, Reset: Vo }, Cl = { Bell: to, Send: Xi, Add: Ji };
6066
+ const bl = { Button: Us, useValue: Hs, Set: Ys, Run: qs, Count: Pn, Reset: Vs }, Cl = { Bell: ns, Send: Qo, Add: Xo };
6061
6067
  function jl({ active: e, onActive: t, id: a, name: r }) {
6062
- const [s, i] = b.useState(!!e);
6068
+ const [i, o] = b.useState(!!e);
6063
6069
  b.useEffect(() => {
6064
- i(!!e);
6070
+ o(!!e);
6065
6071
  }, [e]);
6066
6072
  let l = () => {
6067
- let c = parseInt(s) === 0 ? 1 : 0;
6068
- i(c), t && t({ value: c, name: r, id: a });
6073
+ let c = parseInt(i) === 0 ? 1 : 0;
6074
+ o(c), t && t({ value: c, name: r, id: a });
6069
6075
  };
6070
6076
  return /* @__PURE__ */ n.jsx(
6071
6077
  "div",
6072
6078
  {
6073
6079
  role: "switch",
6074
6080
  onClick: l,
6075
- "aria-checked": `${s ? "true" : "false"}`
6081
+ "aria-checked": `${i ? "true" : "false"}`
6076
6082
  }
6077
6083
  );
6078
6084
  }
6079
- const Qo = "_sort_1yrvt_1", el = {
6080
- sort: Qo
6085
+ const Qs = "_sort_1yrvt_1", el = {
6086
+ sort: Qs
6081
6087
  };
6082
6088
  let Ye = {};
6083
6089
  function tl(e, t) {
@@ -6131,9 +6137,9 @@ function al(e) {
6131
6137
  function rl(e) {
6132
6138
  Ye.set(e);
6133
6139
  }
6134
- function sl(e, t, a) {
6135
- let r = 1, s = 0, i = {}, l = 50;
6136
- i[r] = [];
6140
+ function il(e, t, a) {
6141
+ let r = 1, i = 0, o = {}, l = 50;
6142
+ o[r] = [];
6137
6143
  let c = {}, d = "s1a";
6138
6144
  switch (c.s1a = (_, u) => u.s1 - _.s1, c.s1d = (_, u) => _.s1 - u.s1, c.s2a = (_, u) => _.s2 - u.s2, c.s2d = (_, u) => u.s2 - _.s2, c.s3a = (_, u) => _.s3.localeCompare(u.s3), c.s3d = (_, u) => u.s3.localeCompare(_.s3), a.active) {
6139
6145
  case 1:
@@ -6147,15 +6153,15 @@ function sl(e, t, a) {
6147
6153
  break;
6148
6154
  }
6149
6155
  return t.sort(c[d]).forEach((_) => {
6150
- s++, s <= l || (r++, s = 1, i[r] = []), i[r].push(e[_.id]);
6151
- }), { data: i };
6156
+ i++, i <= l || (r++, i = 1, o[r] = []), o[r].push(e[_.id]);
6157
+ }), { data: o };
6152
6158
  }
6153
- function il(e) {
6159
+ function ol(e) {
6154
6160
  Ye.count(e);
6155
6161
  }
6156
- const yl = { Init: nl, useValue: al, Set: rl, Run: sl, Count: il };
6162
+ const yl = { Init: nl, useValue: al, Set: rl, Run: il, Count: ol };
6157
6163
  export {
6158
- mi as Action,
6164
+ ho as Action,
6159
6165
  fl as Alert,
6160
6166
  cl as Api,
6161
6167
  Lr as Button,
@@ -6163,24 +6169,24 @@ export {
6163
6169
  hl as DataBase,
6164
6170
  He as Events,
6165
6171
  bl as Filter,
6166
- xl as Form,
6172
+ pl as Form,
6167
6173
  ye as Format,
6168
6174
  ml as Icon,
6169
6175
  _l as Init,
6170
- Xs as Input,
6176
+ Xi as Input,
6171
6177
  vl as Loading,
6172
6178
  Cn as Modal,
6173
6179
  Ke as Notice,
6174
6180
  Cl as Notifications,
6175
6181
  je as Router,
6176
- pl as Scrolling,
6182
+ xl as Scrolling,
6177
6183
  kl as Search,
6178
6184
  dl as Setting,
6179
- xt as Sistym,
6185
+ pt as Sistym,
6180
6186
  mt as Socket,
6181
- oe as Store,
6187
+ se as Store,
6182
6188
  jl as Switch,
6183
- si as Tabs,
6189
+ io as Tabs,
6184
6190
  E as Telegram,
6185
6191
  yl as Triage,
6186
6192
  gl as User