elcrm 0.9.172 → 0.9.173

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,13 +1,12 @@
1
1
  import './index.css';var Ya = Object.defineProperty;
2
2
  var Ha = (e, t, a) => t in e ? Ya(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
3
  var pt = (e, t, a) => Ha(e, typeof t != "symbol" ? t + "" : t, a);
4
- import x, { createContext as Ln, useContext as qa, createElement as Mn } from "react";
4
+ import g, { createContext as Ln, useContext as qa, createElement as Mn } from "react";
5
5
  const Bn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyBhPT57dHJ5e2EuZGF0YS5ob3N0W2EuZGF0YS5ob3N0Lmxlbmd0aC0xXSE9PSIvIiYmKGEuZGF0YS5ob3N0Kz0iLyIpLGEuZGF0YS5saW5rWzBdPT0iLyImJihhLmRhdGEubGluaz1hLmRhdGEubGluay5zdWJzdHJpbmcoMSkpO2xldCB0PWF3YWl0IGZldGNoKGAke2EuZGF0YS5ob3N0fSR7YS5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOnsiQ29udGVudC10eXBlIjoiYXBwbGljYXRpb24vanNvbjtjaGFyc2V0PXV0Zi04IiwuLi5hLmRhdGEuc3NpZD97c3NpZDphLmRhdGEuc3NpZH06e319LGJvZHk6SlNPTi5zdHJpbmdpZnkoYS5kYXRhLmRhdGEpfSk7cG9zdE1lc3NhZ2UoYXdhaXQgdC5qc29uKCkpfWNhdGNoKHQpe3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yIixkYXRhOiJ3b3JrZXIiLG1lc3NhZ2U6dH0pfX19KSgpOwo=", Ja = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), cn = typeof self < "u" && self.Blob && new Blob([Ja(Bn)], { type: "text/javascript;charset=utf-8" });
6
6
  function dn(e) {
7
7
  let t;
8
8
  try {
9
- if (t = cn && (self.URL || self.webkitURL).createObjectURL(cn), !t)
10
- throw "";
9
+ if (t = cn && (self.URL || self.webkitURL).createObjectURL(cn), !t) throw "";
11
10
  const a = new Worker(t, {
12
11
  name: e == null ? void 0 : e.name
13
12
  });
@@ -15,9 +14,12 @@ function dn(e) {
15
14
  (self.URL || self.webkitURL).revokeObjectURL(t);
16
15
  }), a;
17
16
  } catch {
18
- return new Worker("data:text/javascript;base64," + Bn, {
19
- name: e == null ? void 0 : e.name
20
- });
17
+ return new Worker(
18
+ "data:text/javascript;base64," + Bn,
19
+ {
20
+ name: e == null ? void 0 : e.name
21
+ }
22
+ );
21
23
  } finally {
22
24
  t && (self.URL || self.webkitURL).revokeObjectURL(t);
23
25
  }
@@ -37,7 +39,7 @@ const tr = async (e) => window.crypto.subtle.importKey(
37
39
  !1,
38
40
  ["encrypt"]
39
41
  );
40
- let re = {
42
+ let ye = {
41
43
  url: "https://" + Xa + "." + Va + "." + Qa,
42
44
  port: 443,
43
45
  key: ""
@@ -68,106 +70,90 @@ function xt() {
68
70
  let e = localStorage.getItem("d");
69
71
  return gt = e, e;
70
72
  }
71
- var Ke;
73
+ var ze;
72
74
  ((e) => {
73
- function t(f) {
74
- re = { ...re, ...f };
75
+ function t(c) {
76
+ ye = { ...ye, ...c };
75
77
  }
76
78
  e.create = t;
77
- const a = (f) => (f != null && f.ssid && (localStorage.setItem("d", f.ssid), delete f.ssid), f != null && f.port && (localStorage.setItem("w", f.port), delete f.port), (f == null ? void 0 : f.status) === "logout" ? un() : f), r = (f, p, y) => new Promise(async (j) => {
79
+ const a = (c) => (c != null && c.ssid && (localStorage.setItem("d", c.ssid), delete c.ssid), c != null && c.port && (localStorage.setItem("w", c.port), delete c.port), (c == null ? void 0 : c.status) === "logout" ? un() : c), r = (c, m, f) => new Promise(async (h) => {
78
80
  try {
79
- const S = new dn();
80
- S.onmessage = (C) => {
81
- j(a(C.data)), S.terminate();
81
+ const x = new dn();
82
+ x.onmessage = (j) => {
83
+ h(a(j.data)), x.terminate();
82
84
  };
83
- let N = await tr(y);
84
- const { cipher: R, iv: I } = await ar(JSON.stringify(p), N);
85
- S.postMessage({
86
- link: f,
87
- data: _n(I) + _n(R),
88
- host: re.url
85
+ let p = await tr(f);
86
+ const { cipher: v, iv: y } = await ar(
87
+ JSON.stringify(m),
88
+ p
89
+ );
90
+ x.postMessage({
91
+ link: c,
92
+ data: _n(y) + _n(v),
93
+ host: ye.url
89
94
  });
90
95
  } catch {
91
96
  }
92
97
  });
93
- function s(f = {}, p = re.key) {
94
- return r("/auth", f, p);
98
+ function s(c, m = {}, f = ye.key) {
99
+ return r(c, m, f);
95
100
  }
96
- e.auth = s;
97
- function i(f = {}, p = re.key) {
98
- return r("/register", f, p);
101
+ e.encrypt = s;
102
+ function i(c) {
103
+ return ye.url + "/image" + c;
99
104
  }
100
- e.register = i;
101
- function o(f = {}, p = re.key) {
102
- return r("/check", f, p);
103
- }
104
- e.check = o;
105
- function d(f = {}, p = re.key) {
106
- return r("/recover", f, p);
107
- }
108
- e.recover = d;
109
- function l(f = {}, p = re.key) {
110
- return r("/password", f, p);
111
- }
112
- e.password = l;
113
- function _(f = {}, p = re.key) {
114
- return r("/code", f, p);
115
- }
116
- e.code = _;
117
- function c(f) {
118
- return re.url + "/image" + f;
119
- }
120
- e.image = c;
121
- function h(f, p = {}, y = xt()) {
122
- return new Promise((j) => {
123
- const S = new dn();
124
- S.onmessage = (N) => {
125
- j(a(N.data)), S.terminate();
126
- }, S.postMessage({
127
- link: f,
128
- data: p,
129
- ssid: y,
130
- host: re.url
105
+ e.image = i;
106
+ function o(c, m = {}, f = xt()) {
107
+ return new Promise((h) => {
108
+ const x = new dn();
109
+ x.onmessage = (p) => {
110
+ h(a(p.data)), x.terminate();
111
+ }, x.postMessage({
112
+ link: c,
113
+ data: m,
114
+ ssid: f,
115
+ host: ye.url
131
116
  });
132
117
  });
133
118
  }
134
- e.fetch = h;
135
- async function m(f, p = {}, y = xt()) {
119
+ e.fetch = o;
120
+ async function d(c, m = {}, f = xt()) {
136
121
  try {
137
- return await (await h(re.url + f, {
122
+ return await (await o(ye.url + c, {
138
123
  method: "POST",
139
124
  headers: {
140
- ...y ? { ssid: y } : {}
125
+ ...f ? { ssid: f } : {}
141
126
  },
142
- body: p
127
+ body: m
143
128
  })).json();
144
- } catch (j) {
145
- return { status: "error", message: j };
129
+ } catch (h) {
130
+ return { status: "error", message: h };
146
131
  }
147
132
  }
148
- e.formData = m;
149
- function g(f, p = {}, y = xt()) {
150
- const [j, S] = x.useState({
133
+ e.formData = d;
134
+ function l(c, m = {}, f = xt()) {
135
+ const [h, x] = g.useState({
151
136
  status: "load",
152
137
  data: {}
153
- }), N = async (R) => {
154
- let I = await h(f, R, y);
155
- if (I.status === "logaut" || I.status === "logout") return un();
156
- S(I);
138
+ }), p = async (v) => {
139
+ let y = await o(c, v, f);
140
+ if (y.status === "logaut" || y.status === "logout")
141
+ return un();
142
+ x(y);
157
143
  };
158
- return x.useEffect(() => {
159
- N(p);
160
- }, []), [j.data, N, j.status];
144
+ return g.useEffect(() => {
145
+ p(m);
146
+ }, []), [h.data, p, h.status];
161
147
  }
162
- e.use = g;
163
- function v() {
148
+ e.use = l;
149
+ function _() {
164
150
  return {
165
- documents: re.url + "documents",
166
- files: re.url + "files"
151
+ documents: ye.url + "documents",
152
+ files: ye.url + "files"
167
153
  };
168
154
  }
169
- e.url = v;
170
- })(Ke || (Ke = {}));
155
+ e.url = _;
156
+ })(ze || (ze = {}));
171
157
  const sr = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBuPVtdLHQ9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHM9bC5zb3VyY2U7bi5wdXNoKHMpO2NvbnN0IG89ZT0+e2lmKHQhPT1udWxsJiZ0LnJlYWR5U3RhdGU9PT0xKXtpZighZSlyZXR1cm4gdC5jbG9zZSgpO3Quc2VuZChKU09OLnN0cmluZ2lmeShlKSl9ZWxzZSBzLnBvc3RNZXNzYWdlKHt0eXBlOiJub1NlbmQifSl9O2xldCByPWU9PntpZih0IT09bnVsbCYmdC5yZWFkeVN0YXRlPT09MSlyZXR1cm4gcy5wb3N0TWVzc2FnZSh7dHlwZToxfSk7bGV0IGE9ZS5saW5rLnA/YDoke051bWJlcihlLmxpbmsucCl9YDoiIjtlLmxpbmsuZD90PW5ldyBXZWJTb2NrZXQoYHdzOi8vJHtlLmxpbmsuZH0ke2F9L2Nvbm5lY3RgKTp0PW5ldyBXZWJTb2NrZXQoYHdzczovLyR7ZS5saW5rLnV9JHthfS9jb25uZWN0YCksdC5vbmVycm9yPSgpPT5zLnBvc3RNZXNzYWdlKHt0eXBlOjJ9KSx0Lm9ub3Blbj0oKT0+e28oe3BhdGg6ImNvbm5lY3QiLHVrZXk6ZS51a2V5fSl9LHQub25tZXNzYWdlPWM9PntsZXQgdT1KU09OLnBhcnNlKGMuZGF0YSk7bi5mb3JFYWNoKHA9PntwLnBvc3RNZXNzYWdlKHUpfSl9LHQub25jbG9zZT0oKT0+cy5wb3N0TWVzc2FnZSh7dHlwZTowfSl9O3Mub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiBzLnBvc3RNZXNzYWdlKG4ubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIG4uZm9yRWFjaChhPT5hLnBvc3RNZXNzYWdlKHthbGw6bi5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbyhlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6cy5wb3N0TWVzc2FnZSh7dHlwZTo0LGRhdGE6ZS5kYXRhLmpzb259KX19fX0pKCk7Cg==";
172
158
  function ir(e) {
173
159
  return new SharedWorker(
@@ -234,33 +220,33 @@ const Pn = async (e) => window.crypto.subtle.importKey(
234
220
  var hn;
235
221
  ((e) => {
236
222
  e.useConnect = (t, a) => {
237
- const [r, s] = x.useState(!1), [i, o] = x.useState(null);
223
+ const [r, s] = g.useState(!1), [i, o] = g.useState(null);
238
224
  async function d(l = t) {
239
225
  const _ = new ir();
240
226
  if (ne.isClosed = !1, !l) return o(3);
241
227
  let c = localStorage.getItem("d");
242
228
  if (a == null || a(c), typeof c != "string")
243
229
  return o(0);
244
- let h = await cr(l);
245
- if (a == null || a(h), !h) return o(1);
246
- window.location.protocol !== "http:" && (h.d = !1), ne.send = (g) => {
247
- _.port.postMessage({ type: "send", json: g });
230
+ let m = await cr(l);
231
+ if (a == null || a(m), !m) return o(1);
232
+ window.location.protocol !== "http:" && (m.d = !1), ne.send = (h) => {
233
+ _.port.postMessage({ type: "send", json: h });
248
234
  }, ne.closed = () => {
249
235
  ne.isClosed = !0, _.port.postMessage(!1);
250
236
  };
251
- const m = () => {
237
+ const f = () => {
252
238
  _.port.postMessage({
253
239
  type: "connect",
254
240
  ukey: c,
255
- link: h
241
+ link: m
256
242
  });
257
243
  };
258
- _.port.onmessage = (g) => {
259
- a == null || a("onmessage", g.data);
260
- let v = g.data;
261
- if (v.type === 2 && o(2), v.type === 0 && !ne.isClosed && m(), v.type === 1) return s(!0);
262
- ne[v.listen] !== void 0 && (ne[v.listen](v), v.listen[0] == "_" && delete ne[v.listen]);
263
- }, m();
244
+ _.port.onmessage = (h) => {
245
+ a == null || a("onmessage", h.data);
246
+ let x = h.data;
247
+ if (x.type === 2 && o(2), x.type === 0 && !ne.isClosed && f(), x.type === 1) return s(!0);
248
+ ne[x.listen] !== void 0 && (ne[x.listen](x), x.listen[0] == "_" && delete ne[x.listen]);
249
+ }, f();
264
250
  }
265
251
  return [r, d, i];
266
252
  }, e.useListener = (t, a) => {
@@ -304,13 +290,13 @@ var pn;
304
290
  function fr() {
305
291
  if (pn) return Ae;
306
292
  pn = 1;
307
- var e = x, 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 };
293
+ var e = g, 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 };
308
294
  function o(d, l, _) {
309
- var c, h = {}, m = null, g = null;
310
- _ !== void 0 && (m = "" + _), l.key !== void 0 && (m = "" + l.key), l.ref !== void 0 && (g = l.ref);
311
- for (c in l) r.call(l, c) && !i.hasOwnProperty(c) && (h[c] = l[c]);
312
- if (d && d.defaultProps) for (c in l = d.defaultProps, l) h[c] === void 0 && (h[c] = l[c]);
313
- return { $$typeof: t, type: d, key: m, ref: g, props: h, _owner: s.current };
295
+ var c, m = {}, f = null, h = null;
296
+ _ !== void 0 && (f = "" + _), l.key !== void 0 && (f = "" + l.key), l.ref !== void 0 && (h = l.ref);
297
+ for (c in l) r.call(l, c) && !i.hasOwnProperty(c) && (m[c] = l[c]);
298
+ if (d && d.defaultProps) for (c in l = d.defaultProps, l) m[c] === void 0 && (m[c] = l[c]);
299
+ return { $$typeof: t, type: d, key: f, ref: h, props: m, _owner: s.current };
314
300
  }
315
301
  return Ae.Fragment = a, Ae.jsx = o, Ae.jsxs = o, Ae;
316
302
  }
@@ -327,11 +313,11 @@ var Oe = {};
327
313
  var gn;
328
314
  function mr() {
329
315
  return gn || (gn = 1, process.env.NODE_ENV !== "production" && function() {
330
- var e = x, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), d = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), v = Symbol.iterator, f = "@@iterator";
331
- function p(u) {
316
+ var e = g, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), d = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), x = Symbol.iterator, p = "@@iterator";
317
+ function v(u) {
332
318
  if (u === null || typeof u != "object")
333
319
  return null;
334
- var b = v && u[v] || u[f];
320
+ var b = x && u[x] || u[p];
335
321
  return typeof b == "function" ? b : null;
336
322
  }
337
323
  var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -339,23 +325,23 @@ function mr() {
339
325
  {
340
326
  for (var b = arguments.length, T = new Array(b > 1 ? b - 1 : 0), P = 1; P < b; P++)
341
327
  T[P - 1] = arguments[P];
342
- S("error", u, T);
328
+ I("error", u, T);
343
329
  }
344
330
  }
345
- function S(u, b, T) {
331
+ function I(u, b, T) {
346
332
  {
347
333
  var P = y.ReactDebugCurrentFrame, U = P.getStackAddendum();
348
334
  U !== "" && (b += "%s", T = T.concat([U]));
349
- var z = T.map(function(G) {
335
+ var K = T.map(function(G) {
350
336
  return String(G);
351
337
  });
352
- z.unshift("Warning: " + b), Function.prototype.apply.call(console[u], console, z);
338
+ K.unshift("Warning: " + b), Function.prototype.apply.call(console[u], console, K);
353
339
  }
354
340
  }
355
- var N = !1, R = !1, I = !1, C = !1, k = !1, F;
341
+ var N = !1, R = !1, D = !1, C = !1, k = !1, F;
356
342
  F = Symbol.for("react.module.reference");
357
- function E(u) {
358
- return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || k || u === s || u === _ || u === c || C || u === g || N || R || I || typeof u == "object" && u !== null && (u.$$typeof === m || u.$$typeof === h || u.$$typeof === o || u.$$typeof === d || u.$$typeof === l || // This needs to include all possible module reference object
343
+ function S(u) {
344
+ return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || k || u === s || u === _ || u === c || C || u === h || N || R || D || typeof u == "object" && u !== null && (u.$$typeof === f || u.$$typeof === m || u.$$typeof === o || u.$$typeof === d || u.$$typeof === l || // This needs to include all possible module reference object
359
345
  // types supported by any Flight configuration anywhere since
360
346
  // we don't know which Flight build this will end up being used
361
347
  // with.
@@ -368,7 +354,7 @@ function mr() {
368
354
  var U = b.displayName || b.name || "";
369
355
  return U !== "" ? T + "(" + U + ")" : T;
370
356
  }
371
- function D(u) {
357
+ function E(u) {
372
358
  return u.displayName || "Context";
373
359
  }
374
360
  function w(u) {
@@ -396,19 +382,19 @@ function mr() {
396
382
  switch (u.$$typeof) {
397
383
  case d:
398
384
  var b = u;
399
- return D(b) + ".Consumer";
385
+ return E(b) + ".Consumer";
400
386
  case o:
401
387
  var T = u;
402
- return D(T._context) + ".Provider";
388
+ return E(T._context) + ".Provider";
403
389
  case l:
404
390
  return L(u, u.render, "ForwardRef");
405
- case h:
391
+ case m:
406
392
  var P = u.displayName || null;
407
393
  return P !== null ? P : w(u.type) || "Memo";
408
- case m: {
409
- var U = u, z = U._payload, G = U._init;
394
+ case f: {
395
+ var U = u, K = U._payload, G = U._init;
410
396
  try {
411
- return w(G(z));
397
+ return w(G(K));
412
398
  } catch {
413
399
  return null;
414
400
  }
@@ -416,14 +402,14 @@ function mr() {
416
402
  }
417
403
  return null;
418
404
  }
419
- var M = Object.assign, W = 0, Q, le, ye, Re, $e, qe, zt;
405
+ var M = Object.assign, W = 0, Q, oe, je, Re, $e, qe, Kt;
420
406
  function Yt() {
421
407
  }
422
408
  Yt.__reactDisabledLog = !0;
423
409
  function Ca() {
424
410
  {
425
411
  if (W === 0) {
426
- Q = console.log, le = console.info, ye = console.warn, Re = console.error, $e = console.group, qe = console.groupCollapsed, zt = console.groupEnd;
412
+ Q = console.log, oe = console.info, je = console.warn, Re = console.error, $e = console.group, qe = console.groupCollapsed, Kt = console.groupEnd;
427
413
  var u = {
428
414
  configurable: !0,
429
415
  enumerable: !0,
@@ -456,10 +442,10 @@ function mr() {
456
442
  value: Q
457
443
  }),
458
444
  info: M({}, u, {
459
- value: le
445
+ value: oe
460
446
  }),
461
447
  warn: M({}, u, {
462
- value: ye
448
+ value: je
463
449
  }),
464
450
  error: M({}, u, {
465
451
  value: Re
@@ -471,7 +457,7 @@ function mr() {
471
457
  value: qe
472
458
  }),
473
459
  groupEnd: M({}, u, {
474
- value: zt
460
+ value: Kt
475
461
  })
476
462
  });
477
463
  }
@@ -509,8 +495,8 @@ function mr() {
509
495
  ct = !0;
510
496
  var U = Error.prepareStackTrace;
511
497
  Error.prepareStackTrace = void 0;
512
- var z;
513
- z = ot.current, ot.current = null, Ca();
498
+ var K;
499
+ K = ot.current, ot.current = null, Ca();
514
500
  try {
515
501
  if (b) {
516
502
  var G = function() {
@@ -554,16 +540,16 @@ function mr() {
554
540
  if (J !== 1 || V !== 1)
555
541
  do
556
542
  if (J--, V--, V < 0 || O[J] !== te[V]) {
557
- var de = `
543
+ var ce = `
558
544
  ` + O[J].replace(" at new ", " at ");
559
- return u.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", u.displayName)), typeof u == "function" && Xe.set(u, de), de;
545
+ return u.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", u.displayName)), typeof u == "function" && Xe.set(u, ce), ce;
560
546
  }
561
547
  while (J >= 1 && V >= 0);
562
548
  break;
563
549
  }
564
550
  }
565
551
  } finally {
566
- ct = !1, ot.current = z, ja(), Error.prepareStackTrace = U;
552
+ ct = !1, ot.current = K, ja(), Error.prepareStackTrace = U;
567
553
  }
568
554
  var Le = u ? u.displayName || u.name : "", Ee = Le ? Je(Le) : "";
569
555
  return typeof u == "function" && Xe.set(u, Ee), Ee;
@@ -592,12 +578,12 @@ function mr() {
592
578
  switch (u.$$typeof) {
593
579
  case l:
594
580
  return wa(u.render);
595
- case h:
581
+ case m:
596
582
  return Ve(u.type, b, T);
597
- case m: {
598
- var P = u, U = P._payload, z = P._init;
583
+ case f: {
584
+ var P = u, U = P._payload, K = P._init;
599
585
  try {
600
- return Ve(z(U), b, T);
586
+ return Ve(K(U), b, T);
601
587
  } catch {
602
588
  }
603
589
  }
@@ -614,9 +600,9 @@ function mr() {
614
600
  }
615
601
  function ba(u, b, T, P, U) {
616
602
  {
617
- var z = Function.call.bind(Fe);
603
+ var K = Function.call.bind(Fe);
618
604
  for (var G in u)
619
- if (z(u, G)) {
605
+ if (K(u, G)) {
620
606
  var O = void 0;
621
607
  try {
622
608
  if (typeof u[G] != "function") {
@@ -706,7 +692,7 @@ function mr() {
706
692
  });
707
693
  }
708
694
  }
709
- var Ba = function(u, b, T, P, U, z, G) {
695
+ var Ba = function(u, b, T, P, U, K, G) {
710
696
  var O = {
711
697
  // This tag allows us to uniquely identify this as a React Element
712
698
  $$typeof: t,
@@ -716,7 +702,7 @@ function mr() {
716
702
  ref: T,
717
703
  props: G,
718
704
  // Record the component responsible for creating this element.
719
- _owner: z
705
+ _owner: K
720
706
  };
721
707
  return O._store = {}, Object.defineProperty(O._store, "validated", {
722
708
  configurable: !1,
@@ -737,14 +723,14 @@ function mr() {
737
723
  };
738
724
  function $a(u, b, T, P, U) {
739
725
  {
740
- var z, G = {}, O = null, te = null;
726
+ var K, G = {}, O = null, te = null;
741
727
  T !== void 0 && (Vt(T), O = "" + T), Ra(b) && (Vt(b.key), O = "" + b.key), Na(b) && (te = b.ref, Ta(b, U));
742
- for (z in b)
743
- Fe.call(b, z) && !Da.hasOwnProperty(z) && (G[z] = b[z]);
728
+ for (K in b)
729
+ Fe.call(b, K) && !Da.hasOwnProperty(K) && (G[K] = b[K]);
744
730
  if (u && u.defaultProps) {
745
731
  var J = u.defaultProps;
746
- for (z in J)
747
- G[z] === void 0 && (G[z] = J[z]);
732
+ for (K in J)
733
+ G[K] === void 0 && (G[K] = J[K]);
748
734
  }
749
735
  if (O || te) {
750
736
  var V = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
@@ -819,9 +805,9 @@ Check the top-level render call using <` + T + ">.");
819
805
  else if (mt(u))
820
806
  u._store && (u._store.validated = !0);
821
807
  else if (u) {
822
- var U = p(u);
808
+ var U = v(u);
823
809
  if (typeof U == "function" && U !== u.entries)
824
- for (var z = U.call(u), G; !(G = z.next()).done; )
810
+ for (var K = U.call(u), G; !(G = K.next()).done; )
825
811
  mt(G.value) && rn(G.value, b);
826
812
  }
827
813
  }
@@ -836,7 +822,7 @@ Check the top-level render call using <` + T + ">.");
836
822
  T = b.propTypes;
837
823
  else if (typeof b == "object" && (b.$$typeof === l || // Note: Memo only checks outer props here.
838
824
  // Inner props are checked in the reconciler.
839
- b.$$typeof === h))
825
+ b.$$typeof === m))
840
826
  T = b.propTypes;
841
827
  else
842
828
  return;
@@ -864,9 +850,9 @@ Check the top-level render call using <` + T + ">.");
864
850
  }
865
851
  }
866
852
  var on = {};
867
- function ln(u, b, T, P, U, z) {
853
+ function ln(u, b, T, P, U, K) {
868
854
  {
869
- var G = E(u);
855
+ var G = S(u);
870
856
  if (!G) {
871
857
  var O = "";
872
858
  (u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (O += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
@@ -875,34 +861,34 @@ Check the top-level render call using <` + T + ">.");
875
861
  var J;
876
862
  u === null ? J = "null" : dt(u) ? J = "array" : u !== void 0 && u.$$typeof === t ? (J = "<" + (w(u.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : J = typeof u, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", J, O);
877
863
  }
878
- var V = $a(u, b, T, U, z);
864
+ var V = $a(u, b, T, U, K);
879
865
  if (V == null)
880
866
  return V;
881
867
  if (G) {
882
- var de = b.children;
883
- if (de !== void 0)
868
+ var ce = b.children;
869
+ if (ce !== void 0)
884
870
  if (P)
885
- if (dt(de)) {
886
- for (var Le = 0; Le < de.length; Le++)
887
- sn(de[Le], u);
888
- Object.freeze && Object.freeze(de);
871
+ if (dt(ce)) {
872
+ for (var Le = 0; Le < ce.length; Le++)
873
+ sn(ce[Le], u);
874
+ Object.freeze && Object.freeze(ce);
889
875
  } else
890
876
  j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
891
877
  else
892
- sn(de, u);
878
+ sn(ce, u);
893
879
  }
894
880
  if (Fe.call(b, "key")) {
895
- var Ee = w(u), ae = Object.keys(b).filter(function(za) {
896
- return za !== "key";
881
+ var Ee = w(u), ae = Object.keys(b).filter(function(Ka) {
882
+ return Ka !== "key";
897
883
  }), ht = ae.length > 0 ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}";
898
884
  if (!on[Ee + ht]) {
899
- var Ka = ae.length > 0 ? "{" + ae.join(": ..., ") + ": ...}" : "{}";
885
+ var za = ae.length > 0 ? "{" + ae.join(": ..., ") + ": ...}" : "{}";
900
886
  j(`A props object containing a "key" prop is being spread into JSX:
901
887
  let props = %s;
902
888
  <%s {...props} />
903
889
  React keys must be passed directly to JSX without using spread:
904
890
  let props = %s;
905
- <%s key={someKey} {...props} />`, ht, Ee, Ka, Ee), on[Ee + ht] = !0;
891
+ <%s key={someKey} {...props} />`, ht, Ee, za, Ee), on[Ee + ht] = !0;
906
892
  }
907
893
  }
908
894
  return u === r ? Oa(V) : Aa(V), V;
@@ -929,14 +915,14 @@ const hr = "_notice_13j98_2", pr = "_error_13j98_11", gr = "_success_13j98_14",
929
915
  "show-notice": "_show-notice_13j98_1",
930
916
  "hide-notice": "_hide-notice_13j98_1"
931
917
  };
932
- let ge = {};
918
+ let pe = {};
933
919
  function Ze({ data: e }) {
934
- let [t, a] = x.useState("show");
935
- x.useEffect(() => {
920
+ let [t, a] = g.useState("show");
921
+ g.useEffect(() => {
936
922
  e.hide && (setTimeout(function() {
937
923
  a("hide");
938
924
  }, 1800), setTimeout(function() {
939
- ge.del(e.key);
925
+ pe.del(e.key);
940
926
  }, 2500));
941
927
  }, [e.key]);
942
928
  let r, s;
@@ -964,12 +950,12 @@ function Ze({ data: e }) {
964
950
  ] });
965
951
  }
966
952
  function jr({ data: e }) {
967
- let [t, a] = x.useState("show");
968
- return x.useEffect(() => {
953
+ let [t, a] = g.useState("show");
954
+ return g.useEffect(() => {
969
955
  e.hide && (setTimeout(function() {
970
956
  a("hide");
971
957
  }, 1800), setTimeout(function() {
972
- ge.del(e.key);
958
+ pe.del(e.key);
973
959
  }, 2500));
974
960
  }, [e.key]), /* @__PURE__ */ n.jsx("li", { className: "item", "data-status": t, children: e.text });
975
961
  }
@@ -1006,63 +992,63 @@ Ie.success = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "
1006
992
  }
1007
993
  )
1008
994
  ] });
1009
- var me;
995
+ var fe;
1010
996
  ((e) => {
1011
997
  function t() {
1012
- let [l, _] = x.useState([]);
1013
- return ge.set = (c) => {
998
+ let [l, _] = g.useState([]);
999
+ return pe.set = (c) => {
1014
1000
  _([...l, c]);
1015
- }, ge.del = (c) => {
1016
- _(l.filter((h) => h.key !== c));
1001
+ }, pe.del = (c) => {
1002
+ _(l.filter((m) => m.key !== c));
1017
1003
  }, l.length === 0 ? "" : /* @__PURE__ */ n.jsx("ul", { id: "notice", className: Cr.notice, children: l.map((c) => c.item) });
1018
1004
  }
1019
1005
  e.Init = t;
1020
1006
  function a(l, _ = !0) {
1021
- let c = Date.now(), h = { key: c, text: l, hide: _, type: "error" };
1022
- ge.set({
1023
- item: /* @__PURE__ */ n.jsx(Ze, { data: h }, c),
1007
+ let c = Date.now(), m = { key: c, text: l, hide: _, type: "error" };
1008
+ pe.set({
1009
+ item: /* @__PURE__ */ n.jsx(Ze, { data: m }, c),
1024
1010
  key: c
1025
1011
  });
1026
1012
  }
1027
1013
  e.Error = a;
1028
1014
  function r(l, _ = !0) {
1029
- let c = Date.now(), h = { key: c, text: l, hide: _, type: "success" };
1030
- ge.set({
1031
- item: /* @__PURE__ */ n.jsx(Ze, { data: h }, c),
1015
+ let c = Date.now(), m = { key: c, text: l, hide: _, type: "success" };
1016
+ pe.set({
1017
+ item: /* @__PURE__ */ n.jsx(Ze, { data: m }, c),
1032
1018
  key: c
1033
1019
  });
1034
1020
  }
1035
1021
  e.Success = r;
1036
1022
  function s(l, _ = !0) {
1037
- let c = Date.now(), h = { key: c, hide: _, text: l };
1038
- ge.set({ item: /* @__PURE__ */ n.jsx(jr, { data: h }, c), key: c });
1023
+ let c = Date.now(), m = { key: c, hide: _, text: l };
1024
+ pe.set({ item: /* @__PURE__ */ n.jsx(jr, { data: m }, c), key: c });
1039
1025
  }
1040
1026
  e.Custom = s;
1041
1027
  function i(l) {
1042
1028
  let _ = Date.now(), c = { key: _, hide: !0, ...l };
1043
- ge.set({
1029
+ pe.set({
1044
1030
  item: /* @__PURE__ */ n.jsx(Ze, { data: c }, _),
1045
1031
  key: _
1046
1032
  });
1047
1033
  }
1048
1034
  e.Send = i;
1049
1035
  function o(l, _ = !0) {
1050
- let c = Date.now(), h = { key: c, text: l, hide: _, type: "remark" };
1051
- ge.set({
1052
- item: /* @__PURE__ */ n.jsx(Ze, { data: h }, c),
1036
+ let c = Date.now(), m = { key: c, text: l, hide: _, type: "remark" };
1037
+ pe.set({
1038
+ item: /* @__PURE__ */ n.jsx(Ze, { data: m }, c),
1053
1039
  key: c
1054
1040
  });
1055
1041
  }
1056
1042
  e.Remark = o;
1057
1043
  function d(l, _ = !0) {
1058
- let c = Date.now(), h = { key: c, text: l, hide: _, type: "copy" };
1059
- ge.set({
1060
- item: /* @__PURE__ */ n.jsx(Ze, { data: h }, c),
1044
+ let c = Date.now(), m = { key: c, text: l, hide: _, type: "copy" };
1045
+ pe.set({
1046
+ item: /* @__PURE__ */ n.jsx(Ze, { data: m }, c),
1061
1047
  key: c
1062
1048
  });
1063
1049
  }
1064
1050
  e.Copy = d;
1065
- })(me || (me = {}));
1051
+ })(fe || (fe = {}));
1066
1052
  const yr = "_alerts_ita6j_1", wr = "_menuAnimation_ita6j_1", kr = "_menuItemAnimation_ita6j_1", br = "_allert_ita6j_111", Sr = "_al_ita6j_1", wt = {
1067
1053
  alerts: yr,
1068
1054
  menuAnimation: wr,
@@ -1098,10 +1084,10 @@ const Er = ({ data: e, callback: t, cancel: a }) => (e.button = e.button === voi
1098
1084
  }
1099
1085
  )
1100
1086
  ] }));
1101
- var ze;
1087
+ var Ke;
1102
1088
  ((e) => {
1103
1089
  function t() {
1104
- let [s, i] = x.useState("");
1090
+ let [s, i] = g.useState("");
1105
1091
  return We.set = (o) => i(o), We.del = () => i(""), /* @__PURE__ */ n.jsx(n.Fragment, { children: s });
1106
1092
  }
1107
1093
  e.Init = t;
@@ -1112,7 +1098,7 @@ var ze;
1112
1098
  }
1113
1099
  e.Send = a;
1114
1100
  function r({ text: s, type: i, button: o }) {
1115
- let [d, l] = x.useState(!1), _ = { active: i };
1101
+ let [d, l] = g.useState(!1), _ = { active: i };
1116
1102
  const c = () => {
1117
1103
  if (o) {
1118
1104
  if (o.onClick)
@@ -1144,11 +1130,11 @@ var ze;
1144
1130
  ] });
1145
1131
  }
1146
1132
  e.Line = r;
1147
- })(ze || (ze = {}));
1133
+ })(Ke || (Ke = {}));
1148
1134
  function Ir({ children: e }) {
1149
1135
  return /* @__PURE__ */ n.jsx("div", { className: "l", children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
1150
1136
  }
1151
- const Dr = "_white_1g9i9_14", Nr = "_black_1g9i9_28", Rr = "_shake_1g9i9_1", Tr = "_modal_1g9i9_77", Lr = "_o_1g9i9_87", Mr = "_w_1g9i9_14", Br = "_h_1g9i9_112", $r = "_l_1g9i9_126", Fr = "_t_1g9i9_164", Pr = "_m_1g9i9_77", Ar = "_x_1g9i9_172", Or = "_s_1g9i9_182", Zr = "_c_1g9i9_187", Gr = "_f_1g9i9_192", Wr = "_row_1g9i9_214", Ur = "_col_1g9i9_226", Kr = "_g_1g9i9_235", zr = "_active_1g9i9_355", Yr = "_coincidence_1g9i9_361", Hr = "_sa_1g9i9_397", qr = "_ss_1g9i9_401", Jr = "_sm_1g9i9_405", Xr = "_sl_1g9i9_409", Vr = "_sx_1g9i9_413", Qr = "_sf_1g9i9_417", es = "_btn_1g9i9_423", se = {
1137
+ const Dr = "_white_1g9i9_14", Nr = "_black_1g9i9_28", Rr = "_shake_1g9i9_1", Tr = "_modal_1g9i9_77", Lr = "_o_1g9i9_87", Mr = "_w_1g9i9_14", Br = "_h_1g9i9_112", $r = "_l_1g9i9_126", Fr = "_t_1g9i9_164", Pr = "_m_1g9i9_77", Ar = "_x_1g9i9_172", Or = "_s_1g9i9_182", Zr = "_c_1g9i9_187", Gr = "_f_1g9i9_192", Wr = "_row_1g9i9_214", Ur = "_col_1g9i9_226", zr = "_g_1g9i9_235", Kr = "_active_1g9i9_355", Yr = "_coincidence_1g9i9_361", Hr = "_sa_1g9i9_397", qr = "_ss_1g9i9_401", Jr = "_sm_1g9i9_405", Xr = "_sl_1g9i9_409", Vr = "_sx_1g9i9_413", Qr = "_sf_1g9i9_417", es = "_btn_1g9i9_423", re = {
1152
1138
  white: Dr,
1153
1139
  black: Nr,
1154
1140
  shake: Rr,
@@ -1165,14 +1151,14 @@ const Dr = "_white_1g9i9_14", Nr = "_black_1g9i9_28", Rr = "_shake_1g9i9_1", Tr
1165
1151
  f: Gr,
1166
1152
  row: Wr,
1167
1153
  col: Ur,
1168
- g: Kr,
1154
+ g: zr,
1169
1155
  "size-a": "_size-a_1g9i9_285",
1170
1156
  "size-s": "_size-s_1g9i9_290",
1171
1157
  "size-m": "_size-m_1g9i9_294",
1172
1158
  "size-l": "_size-l_1g9i9_298",
1173
1159
  "size-x": "_size-x_1g9i9_302",
1174
1160
  "size-f": "_size-f_1g9i9_306",
1175
- active: zr,
1161
+ active: Kr,
1176
1162
  coincidence: Yr,
1177
1163
  sa: Hr,
1178
1164
  ss: qr,
@@ -1183,39 +1169,39 @@ const Dr = "_white_1g9i9_14", Nr = "_black_1g9i9_28", Rr = "_shake_1g9i9_1", Tr
1183
1169
  btn: es
1184
1170
  };
1185
1171
  function ts({ children: e }) {
1186
- return /* @__PURE__ */ n.jsx("div", { className: se.s, children: e });
1172
+ return /* @__PURE__ */ n.jsx("div", { className: re.s, children: e });
1187
1173
  }
1188
1174
  function ns({ children: e, viev: t = "row", className: a }) {
1189
1175
  let r = {};
1190
- return a && (r.className = a), /* @__PURE__ */ n.jsx("ul", { className: [se.f, se[t], r.className].join(" "), children: e });
1176
+ return a && (r.className = a), /* @__PURE__ */ n.jsx("ul", { className: [re.f, re[t], r.className].join(" "), children: e });
1191
1177
  }
1192
1178
  function as({ children: e }) {
1193
- return /* @__PURE__ */ n.jsx("div", { className: se.c, children: e });
1179
+ return /* @__PURE__ */ n.jsx("div", { className: re.c, children: e });
1194
1180
  }
1195
1181
  function rs({ children: e }) {
1196
- return /* @__PURE__ */ n.jsx("div", { className: se.g, children: e });
1182
+ return /* @__PURE__ */ n.jsx("div", { className: re.g, children: e });
1197
1183
  }
1198
- const ce = {};
1184
+ const le = {};
1199
1185
  function ss(e) {
1200
- return e && (ce.s = e), ce.s;
1186
+ return e && (le.s = e), le.s;
1201
1187
  }
1202
1188
  function is(e) {
1203
- return e && (ce.a = e), ce.a;
1189
+ return e && (le.a = e), le.a;
1204
1190
  }
1205
1191
  function os(e) {
1206
- return e && (ce.c = e), ce.c;
1192
+ return e && (le.c = e), le.c;
1207
1193
  }
1208
1194
  function ls(e) {
1209
- return e && (ce.h = e), ce.h;
1195
+ return e && (le.h = e), le.h;
1210
1196
  }
1211
1197
  function cs(e) {
1212
- return e && (ce.i = e), ce.i;
1198
+ return e && (le.i = e), le.i;
1213
1199
  }
1214
1200
  function ds(e) {
1215
- return e && (ce.d = e), ce.d;
1201
+ return e && (le.d = e), le.d;
1216
1202
  }
1217
1203
  function rt(e) {
1218
- return ce.i(e);
1204
+ return le.i(e);
1219
1205
  }
1220
1206
  let et = {};
1221
1207
  function _s({ children: e }) {
@@ -1224,27 +1210,27 @@ function _s({ children: e }) {
1224
1210
  var Ne;
1225
1211
  ((e) => {
1226
1212
  function t() {
1227
- let [l, _] = x.useState([]);
1213
+ let [l, _] = g.useState([]);
1228
1214
  return et.x = (c) => {
1229
- _(c ? l.filter((h) => h.key !== c) : []);
1230
- }, et.add = (c, h = Date.now()) => {
1231
- _([...l, { key: h, item: c }]);
1215
+ _(c ? l.filter((m) => m.key !== c) : []);
1216
+ }, et.add = (c, m = Date.now()) => {
1217
+ _([...l, { key: m, item: c }]);
1232
1218
  }, /* @__PURE__ */ n.jsx(n.Fragment, { children: l.map((c) => c.item) });
1233
1219
  }
1234
1220
  e.Init = t, e.List = Ir, e.Scroll = ts, e.Form = ns, e.Center = as, e.Column = rs;
1235
1221
  function a(l, _, c) {
1236
- rt(`${l}/modal/${_}.tsx`).then((h) => {
1237
- h.default.Open(c);
1222
+ rt(`${l}/modal/${_}.tsx`).then((m) => {
1223
+ m.default.Open(c);
1238
1224
  });
1239
1225
  }
1240
1226
  e.Open = a;
1241
1227
  function r({ type: l, name: _, params: c }) {
1242
- let [h, m] = x.useState(null);
1243
- return x.useEffect(() => {
1244
- rt(`${l}/modal/${_}.tsx`).then((g) => {
1245
- m(g.default.Icon(c));
1228
+ let [m, f] = g.useState(null);
1229
+ return g.useEffect(() => {
1230
+ rt(`${l}/modal/${_}.tsx`).then((h) => {
1231
+ f(h.default.Icon(c));
1246
1232
  });
1247
- }, [c.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: h });
1233
+ }, [c.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: m });
1248
1234
  }
1249
1235
  e.Icon = r;
1250
1236
  function s(l, _) {
@@ -1267,13 +1253,13 @@ var Ne;
1267
1253
  title: l,
1268
1254
  children: _,
1269
1255
  button: c,
1270
- tabs: h,
1271
- size: m = "m",
1272
- className: g = "",
1273
- shake: v = !0,
1274
- menu: f
1256
+ tabs: m,
1257
+ size: f = "m",
1258
+ className: h = "",
1259
+ shake: x = !0,
1260
+ menu: p
1275
1261
  }) {
1276
- const [p, y] = x.useState(!0), j = x.useRef(), S = (R) => {
1262
+ const [v, y] = g.useState(!0), j = g.useRef(), I = (R) => {
1277
1263
  if (c) {
1278
1264
  if (c.onClick)
1279
1265
  return R(!1), c.onClick({ setOpen: y });
@@ -1284,43 +1270,43 @@ var Ne;
1284
1270
  });
1285
1271
  }
1286
1272
  }, N = () => {
1287
- if (!v) return y(!1);
1273
+ if (!x) return y(!1);
1288
1274
  j.current.setAttribute("shake", !0), setTimeout(() => {
1289
1275
  j.current.setAttribute("shake", !1);
1290
1276
  }, 1e3);
1291
1277
  };
1292
- return p ? /* @__PURE__ */ n.jsxs(
1278
+ return v ? /* @__PURE__ */ n.jsxs(
1293
1279
  "div",
1294
1280
  {
1295
- className: `${se.modal}`,
1281
+ className: `${re.modal}`,
1296
1282
  children: [
1297
- /* @__PURE__ */ n.jsx("div", { className: se.o, onClick: N }),
1283
+ /* @__PURE__ */ n.jsx("div", { className: re.o, onClick: N }),
1298
1284
  /* @__PURE__ */ n.jsxs(
1299
1285
  "div",
1300
1286
  {
1301
- className: [se.w, se[`s${m}`], g].join(
1287
+ className: [re.w, re[`s${f}`], h].join(
1302
1288
  " "
1303
1289
  ),
1304
1290
  ref: j,
1305
1291
  children: [
1306
- /* @__PURE__ */ n.jsxs("div", { className: se.h, children: [
1307
- /* @__PURE__ */ n.jsx("div", { className: se.t, children: l }),
1308
- /* @__PURE__ */ n.jsxs("div", { className: se.m, children: [
1309
- h && /* @__PURE__ */ n.jsx("nav", { children: h.map((R, I) => /* @__PURE__ */ n.jsx(
1292
+ /* @__PURE__ */ n.jsxs("div", { className: re.h, children: [
1293
+ /* @__PURE__ */ n.jsx("div", { className: re.t, children: l }),
1294
+ /* @__PURE__ */ n.jsxs("div", { className: re.m, children: [
1295
+ m && /* @__PURE__ */ n.jsx("nav", { children: m.map((R, D) => /* @__PURE__ */ n.jsx(
1310
1296
  "span",
1311
1297
  {
1312
1298
  onClick: R.onClick,
1313
1299
  className: R.active ? "active" : "",
1314
1300
  children: R.name
1315
1301
  },
1316
- I
1302
+ D
1317
1303
  )) }),
1318
- f
1304
+ p
1319
1305
  ] }),
1320
1306
  /* @__PURE__ */ n.jsx(
1321
1307
  "div",
1322
1308
  {
1323
- className: se.x,
1309
+ className: re.x,
1324
1310
  onClick: () => {
1325
1311
  y(!1);
1326
1312
  },
@@ -1342,8 +1328,8 @@ var Ne;
1342
1328
  No,
1343
1329
  {
1344
1330
  label: c.label,
1345
- onSend: S,
1346
- className: se.btn
1331
+ onSend: I,
1332
+ className: re.btn
1347
1333
  }
1348
1334
  ) : ""
1349
1335
  ]
@@ -1363,8 +1349,8 @@ const us = ({
1363
1349
  update: r,
1364
1350
  textAlign: s
1365
1351
  }) => {
1366
- const i = x.useRef(null);
1367
- return x.useEffect(() => {
1352
+ const i = g.useRef(null);
1353
+ return g.useEffect(() => {
1368
1354
  const o = i.current;
1369
1355
  o.style.opacity = "0", o.style.width = "auto", o.style.left = "0px", o.style.top = "0px";
1370
1356
  let d = {
@@ -1395,7 +1381,7 @@ const us = ({
1395
1381
  var kt;
1396
1382
  ((e) => {
1397
1383
  e.Init = () => {
1398
- let [t, a] = x.useState("");
1384
+ let [t, a] = g.useState("");
1399
1385
  return Ge.set = (r) => a(r), Ge.del = () => a(""), /* @__PURE__ */ n.jsx(n.Fragment, { children: t });
1400
1386
  }, e.Text = ({
1401
1387
  content: t,
@@ -1497,7 +1483,7 @@ var A;
1497
1483
  }
1498
1484
  };
1499
1485
  })(A || (A = {}));
1500
- const Z = {}, $ = {}, pe = { module: "", page: "Auth", main: "Main" };
1486
+ const Z = {}, $ = {}, he = { module: "", page: "Auth", main: "Main" };
1501
1487
  var ee;
1502
1488
  ((e) => {
1503
1489
  async function t() {
@@ -1506,25 +1492,25 @@ var ee;
1506
1492
  if (C = await A.deCode(C), !C) return !1;
1507
1493
  $.id = C.id, $.tab = C.tab, $.page = C.page, $.module = C.module, $.time = C.time, $.payment = { active: !0 }, $.module_admin = C.module_admin;
1508
1494
  } else
1509
- $.id = 0, $.tab = "", $.page = pe.main, $.module = pe.module;
1495
+ $.id = 0, $.tab = "", $.page = he.main, $.module = he.module;
1510
1496
  return !0;
1511
1497
  }
1512
1498
  e.Load = t;
1513
1499
  function a() {
1514
- $.id = 0, $.tab = "", $.page = pe.page, $.module = pe.module;
1500
+ $.id = 0, $.tab = "", $.page = he.page, $.module = he.module;
1515
1501
  }
1516
1502
  e.Reset = a;
1517
1503
  function r({
1518
- module: C = pe.module,
1519
- page: k = pe.page,
1520
- main: F = pe.main
1504
+ module: C = he.module,
1505
+ page: k = he.page,
1506
+ main: F = he.main
1521
1507
  }) {
1522
- pe.page = k, pe.module = C, pe.main = F;
1508
+ he.page = k, he.module = C, he.main = F;
1523
1509
  }
1524
1510
  e.Default = r;
1525
1511
  function s() {
1526
- const [C, k] = x.useState(o()), F = (E) => {
1527
- k(E);
1512
+ const [C, k] = g.useState(o()), F = (S) => {
1513
+ k(S);
1528
1514
  };
1529
1515
  return Z.page = F, [C];
1530
1516
  }
@@ -1543,12 +1529,12 @@ var ee;
1543
1529
  e.isPage = d;
1544
1530
  function l(C) {
1545
1531
  if (typeof C != "function") {
1546
- const [k, F] = x.useState(
1532
+ const [k, F] = g.useState(
1547
1533
  C || c()
1548
- ), E = (L) => {
1534
+ ), S = (L) => {
1549
1535
  F(L);
1550
1536
  };
1551
- return Z.module = E, [k];
1537
+ return Z.module = S, [k];
1552
1538
  } else
1553
1539
  Z.module = C;
1554
1540
  }
@@ -1561,44 +1547,44 @@ var ee;
1561
1547
  return $.module;
1562
1548
  }
1563
1549
  e.getModule = c;
1564
- function h(C) {
1550
+ function m(C) {
1565
1551
  return $.module === C;
1566
1552
  }
1567
- e.isModule = h;
1568
- function m(C) {
1553
+ e.isModule = m;
1554
+ function f(C) {
1569
1555
  if (typeof C != "function") {
1570
- const [k, F] = x.useState(C || v());
1556
+ const [k, F] = g.useState(C || x());
1571
1557
  return Z.tabs = F, [k];
1572
1558
  } else
1573
1559
  Z.tabs = C;
1574
1560
  }
1575
- e.useTabs = m;
1576
- async function g(C, k = !0) {
1561
+ e.useTabs = f;
1562
+ async function h(C, k = !0) {
1577
1563
  if ($.tab = C, sessionStorage.setItem("f", await A.enCode($)), Z.dynamicURL && Z.dynamicURL($), !!k)
1578
1564
  if (Z.tabs)
1579
1565
  Z.tabs(C);
1580
1566
  else
1581
1567
  throw new Error("useTabs not found");
1582
1568
  }
1583
- e.setTabs = g;
1584
- function v() {
1569
+ e.setTabs = h;
1570
+ function x() {
1585
1571
  return $.tab;
1586
1572
  }
1587
- e.getTabs = v;
1588
- function f(C) {
1573
+ e.getTabs = x;
1574
+ function p(C) {
1589
1575
  return $.tab === C;
1590
1576
  }
1591
- e.isTabs = f;
1592
- function p(C) {
1577
+ e.isTabs = p;
1578
+ function v(C) {
1593
1579
  if (typeof C != "function") {
1594
- const [k, F] = x.useState(C || S()), E = (L) => {
1580
+ const [k, F] = g.useState(C || I()), S = (L) => {
1595
1581
  F(L);
1596
1582
  };
1597
- return Z.id = E, [k];
1583
+ return Z.id = S, [k];
1598
1584
  } else
1599
1585
  Z.id = C;
1600
1586
  }
1601
- e.useId = p;
1587
+ e.useId = v;
1602
1588
  function y(C) {
1603
1589
  Z.id = C;
1604
1590
  }
@@ -1607,10 +1593,10 @@ var ee;
1607
1593
  $.id = C, sessionStorage.setItem("f", await A.enCode($)), Z.dynamicURL && Z.dynamicURL($), k && Z.id(C);
1608
1594
  }
1609
1595
  e.setId = j;
1610
- function S() {
1596
+ function I() {
1611
1597
  return $.id;
1612
1598
  }
1613
- e.getId = S;
1599
+ e.getId = I;
1614
1600
  function N(C) {
1615
1601
  return Number($.id) === C;
1616
1602
  }
@@ -1619,19 +1605,19 @@ var ee;
1619
1605
  $.module = C, $.id = F, $.tab = k, sessionStorage.setItem("f", await A.enCode($)), Z.dynamicURL && Z.dynamicURL($), Z.module(C), Z.tabs(k);
1620
1606
  }
1621
1607
  e.Path = R;
1622
- async function I(C, k, F, E) {
1623
- var L, D, w;
1608
+ async function D(C, k, F, S) {
1609
+ var L, E, w;
1624
1610
  if ($.page === C)
1625
1611
  if ($.module === k) {
1626
- if ($.tab = F || "", $.id = E || 0, $.tab === "") return;
1612
+ if ($.tab = F || "", $.id = S || 0, $.tab === "") return;
1627
1613
  (L = Z.tabs) == null || L.call(Z, F);
1628
1614
  } else
1629
- $.module = k, $.tab = F || "", $.id = E || 0, (D = Z.module) == null || D.call(Z, k);
1615
+ $.module = k, $.tab = F || "", $.id = S || 0, (E = Z.module) == null || E.call(Z, k);
1630
1616
  else
1631
- $.module = k, $.tab = F || "", $.id = E || 0, $.page = C, (w = Z.page) == null || w.call(Z, C);
1617
+ $.module = k, $.tab = F || "", $.id = S || 0, $.page = C, (w = Z.page) == null || w.call(Z, C);
1632
1618
  sessionStorage.setItem("f", await A.enCode($)), Z.dynamicURL && Z.dynamicURL($);
1633
1619
  }
1634
- e.Push = I;
1620
+ e.Push = D;
1635
1621
  })(ee || (ee = {}));
1636
1622
  function xs(e, t) {
1637
1623
  t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
@@ -1671,16 +1657,16 @@ function vs(e) {
1671
1657
  };
1672
1658
  }
1673
1659
  const Cs = (e) => {
1674
- function t(S, N) {
1675
- var R, C, I;
1676
- S = S ?? "", N = N ?? 1;
1677
- for (var R = [], I = 0, C = S.length; I < C; )
1678
- R.push(S.slice(I, I += N));
1660
+ function t(I, N) {
1661
+ var R, C, D;
1662
+ I = I ?? "", N = N ?? 1;
1663
+ for (var R = [], D = 0, C = I.length; D < C; )
1664
+ R.push(I.slice(D, D += N));
1679
1665
  return R;
1680
1666
  }
1681
- function a(S, N) {
1667
+ function a(I, N) {
1682
1668
  var R = [2, 0, 1, 1, 1, 2];
1683
- return N[S > 4 && S < 20 ? 2 : R[Math.min(S, 5)]];
1669
+ return N[I > 4 && I < 20 ? 2 : R[Math.min(I, 5)]];
1684
1670
  }
1685
1671
  var r = {
1686
1672
  null: "ноль",
@@ -1744,29 +1730,29 @@ const Cs = (e) => {
1744
1730
  u3: ["тысяча", "тысячи", "тысяч"],
1745
1731
  u2: ["миллион", "миллиона", "миллионов"],
1746
1732
  u1: ["миллиард", "миллиарда", "миллиардов"]
1747
- }, s, i, o, d, p, l, _, f, c, h, m, g;
1733
+ }, s, i, o, d, v, l, _, p, c, m, f, h;
1748
1734
  c = parseFloat(e).toFixed(2).split("."), l = c[0], d = c[1];
1749
- var v = 12 - l.length;
1750
- if (v < 0)
1735
+ var x = 12 - l.length;
1736
+ if (x < 0)
1751
1737
  return !1;
1752
- for (var f = []; v--; )
1753
- f.push("0");
1754
- l = f.join("") + l;
1755
- var p = [];
1738
+ for (var p = []; x--; )
1739
+ p.push("0");
1740
+ l = p.join("") + l;
1741
+ var v = [];
1756
1742
  if (l > 0) {
1757
- h = t(l, 3);
1758
- for (var y = -1; y < h.length; y++)
1759
- if (_ = h[y], _ > 0 && (m = t(_, 1), s = parseInt(m[0]), i = parseInt(m[1]), o = parseInt(m[2]), p.push(r.a100[s - 1]), g = y + 1 == 3 ? "a2" : "a1", i > 1 ? p.push(
1760
- r.a20[i - 2] + (o > 0 ? " " + r[g][o - 1] : "")
1761
- ) : p.push(
1762
- i > 0 ? r.a10[o] : r[g][o - 1]
1763
- ), h.length > y + 1)) {
1743
+ m = t(l, 3);
1744
+ for (var y = -1; y < m.length; y++)
1745
+ if (_ = m[y], _ > 0 && (f = t(_, 1), s = parseInt(f[0]), i = parseInt(f[1]), o = parseInt(f[2]), v.push(r.a100[s - 1]), h = y + 1 == 3 ? "a2" : "a1", i > 1 ? v.push(
1746
+ r.a20[i - 2] + (o > 0 ? " " + r[h][o - 1] : "")
1747
+ ) : v.push(
1748
+ i > 0 ? r.a10[o] : r[h][o - 1]
1749
+ ), m.length > y + 1)) {
1764
1750
  var j = r["u" + (y + 1)];
1765
- p.push(a(_, j));
1751
+ v.push(a(_, j));
1766
1752
  }
1767
1753
  } else
1768
- p.push(r.null);
1769
- return p.push(a(l, r.ur)), p.push(d + " " + a(d, r.uc)), p.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1754
+ v.push(r.null);
1755
+ return v.push(a(l, r.ur)), v.push(d + " " + a(d, r.uc)), v.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1770
1756
  };
1771
1757
  function js(e) {
1772
1758
  let t = -1, a = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
@@ -1902,32 +1888,32 @@ function ws(e, t, a, r) {
1902
1888
  word: function(o, d, l, _) {
1903
1889
  if (_ === this.gcaseNom) return o;
1904
1890
  if (o.match(/[-]/)) {
1905
- for (var c = o.split("-"), h = 0, m = c.length; h < m; h++)
1906
- c[h] = this.word(c[h], d, l, _);
1891
+ for (var c = o.split("-"), m = 0, f = c.length; m < f; m++)
1892
+ c[m] = this.word(c[m], d, l, _);
1907
1893
  return c.join("-");
1908
1894
  }
1909
1895
  if (o.match(/^[А-ЯЁ]\.?$/i)) return o;
1910
1896
  this.init();
1911
- var g = this.rules[l];
1912
- let v;
1913
- return g.exceptions && (v = this.pick(o, d, _, g.exceptions, !0), v) ? v : (v = this.pick(o, d, _, g.suffixes, !1), v || o);
1897
+ var h = this.rules[l];
1898
+ let x;
1899
+ return h.exceptions && (x = this.pick(o, d, _, h.exceptions, !0), x) ? x : (x = this.pick(o, d, _, h.suffixes, !1), x || o);
1914
1900
  },
1915
1901
  // выбираем из списка правил первое подходящее и применяем
1916
1902
  pick: function(o, d, l, _, c) {
1917
- let h = o.toLowerCase();
1918
- for (var m = 0, g = _.length; m < g; m++)
1919
- if (this.ruleMatch(h, d, _[m], c))
1920
- return this.applyMod(o, l, _[m]);
1903
+ let m = o.toLowerCase();
1904
+ for (var f = 0, h = _.length; f < h; f++)
1905
+ if (this.ruleMatch(m, d, _[f], c))
1906
+ return this.applyMod(o, l, _[f]);
1921
1907
  return !1;
1922
1908
  },
1923
1909
  // проверяем, подходит ли правило к слову
1924
1910
  ruleMatch: function(o, d, l, _) {
1925
1911
  if (l.sex === this.sexM && d === this.sexF || l.sex === this.sexF && d !== this.sexF) return !1;
1926
- for (var c = 0, h = l.test.length; c < h; c++) {
1927
- var m = _ ? o : o.substr(
1912
+ for (var c = 0, m = l.test.length; c < m; c++) {
1913
+ var f = _ ? o : o.substr(
1928
1914
  Math.max(o.length - l.test[c].length, 0)
1929
1915
  );
1930
- if (m === l.test[c]) return !0;
1916
+ if (f === l.test[c]) return !0;
1931
1917
  }
1932
1918
  return !1;
1933
1919
  },
@@ -1954,16 +1940,16 @@ function ws(e, t, a, r) {
1954
1940
  _ = l.mods[4];
1955
1941
  break;
1956
1942
  }
1957
- for (var c = 0, h = _.length; c < h; c++) {
1958
- var m = _.substr(c, 1);
1959
- switch (m) {
1943
+ for (var c = 0, m = _.length; c < m; c++) {
1944
+ var f = _.substr(c, 1);
1945
+ switch (f) {
1960
1946
  case ".":
1961
1947
  break;
1962
1948
  case "-":
1963
1949
  o = o.substr(0, o.length - 1);
1964
1950
  break;
1965
1951
  default:
1966
- o += m;
1952
+ o += f;
1967
1953
  }
1968
1954
  }
1969
1955
  return o;
@@ -2037,20 +2023,20 @@ function Ns(e, t) {
2037
2023
  let a = e % 10;
2038
2024
  return e > 10 && e < 20 ? t[2] : a > 1 && a < 5 ? t[1] : a === 1 ? t[0] : t[2];
2039
2025
  }
2040
- const Cn = {}, Zn = {}, _e = {}, ve = {}, Me = {};
2041
- let we = "", he = {};
2026
+ const Cn = {}, Zn = {}, de = {}, xe = {}, Me = {};
2027
+ let we = "", me = {};
2042
2028
  function Rs(e) {
2043
- const [t, a] = x.useState(!1);
2044
- return x.useEffect(() => {
2029
+ const [t, a] = g.useState(!1);
2030
+ return g.useEffect(() => {
2045
2031
  localStorage.getItem("d") ? (async () => {
2046
2032
  if (await ee.Load()) return a(!0);
2047
- oe();
2033
+ ie();
2048
2034
  })() : (["a", "b", "c", "d", "e", "m", "u", "s", "p", "q", "w"].forEach(
2049
2035
  (s) => localStorage.removeItem(s)
2050
2036
  ), ["f"].forEach((s) => sessionStorage.removeItem(s)), ee.Reset(), a(!0));
2051
2037
  }, []), t ? e : "";
2052
2038
  }
2053
- function oe() {
2039
+ function ie() {
2054
2040
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p", "t", "w"].forEach(
2055
2041
  (e) => localStorage.removeItem(e)
2056
2042
  ), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.history.pushState({}, "", "/"), window.location.reload();
@@ -2076,16 +2062,16 @@ function Fs() {
2076
2062
  let e = localStorage.getItem("p");
2077
2063
  if (e !== "" && e !== "undefined" && e !== null) {
2078
2064
  let t = A.deCode(e);
2079
- return t || oe(), t;
2065
+ return t || ie(), t;
2080
2066
  } else
2081
- return oe(), !1;
2067
+ return ie(), !1;
2082
2068
  }
2083
2069
  async function Ps(e, t) {
2084
2070
  Cn.data[e] = t, localStorage.setItem("s", await A.enCode(Cn.data));
2085
2071
  }
2086
2072
  function As(e) {
2087
2073
  let t = localStorage.getItem("s");
2088
- return t === null ? {} : (t = A.deCode(t), t ? e !== void 0 ? t[e] : t : oe());
2074
+ return t === null ? {} : (t = A.deCode(t), t ? e !== void 0 ? t[e] : t : ie());
2089
2075
  }
2090
2076
  async function Os(e) {
2091
2077
  localStorage.setItem("m", await A.enCode({ data: e }));
@@ -2096,7 +2082,7 @@ function Zs() {
2096
2082
  let t = localStorage.getItem("m");
2097
2083
  if (t === null) return !1;
2098
2084
  let a = A.deCode(t);
2099
- a || oe();
2085
+ a || ie();
2100
2086
  const r = (i, o) => {
2101
2087
  let d = o + "";
2102
2088
  for (; d.length < i; ) d = "0" + d;
@@ -2104,7 +2090,7 @@ function Zs() {
2104
2090
  };
2105
2091
  return a.data.split(",").map((i) => "M" + r(2, i));
2106
2092
  } else
2107
- return oe(), !1;
2093
+ return ie(), !1;
2108
2094
  }
2109
2095
  function Gs(e) {
2110
2096
  }
@@ -2124,24 +2110,24 @@ async function Wn(e, t) {
2124
2110
  let a = localStorage.getItem("c");
2125
2111
  if (a !== "" && a !== "undefined" && a !== null) {
2126
2112
  let s = await A.deCode(a);
2127
- return s || oe(), e === void 0 ? s : t ? (r = s[e][t]) == null ? void 0 : r.n : s[e];
2113
+ return s || ie(), e === void 0 ? s : t ? (r = s[e][t]) == null ? void 0 : r.n : s[e];
2128
2114
  } else
2129
- return oe(), !1;
2115
+ return ie(), !1;
2130
2116
  }
2131
2117
  async function Us(e) {
2132
- ve.data = e, localStorage.setItem("q", await A.enCode(ve.data));
2118
+ xe.data = e, localStorage.setItem("q", await A.enCode(xe.data));
2133
2119
  }
2134
- async function Ks(e, t) {
2135
- ve.data = { ...ve.data, [e]: t }, localStorage.setItem("q", await A.enCode(ve.data));
2120
+ async function zs(e, t) {
2121
+ xe.data = { ...xe.data, [e]: t }, localStorage.setItem("q", await A.enCode(xe.data));
2136
2122
  }
2137
2123
  function Ye(e, t) {
2138
- if (!ve.data) {
2124
+ if (!xe.data) {
2139
2125
  let a = localStorage.getItem("q");
2140
- a && (ve.data = A.deCode(a));
2126
+ a && (xe.data = A.deCode(a));
2141
2127
  }
2142
- return e === void 0 && t === void 0 ? ve.data : e !== void 0 && t === void 0 ? ve.data[e] : ve.data[e][t];
2128
+ return e === void 0 && t === void 0 ? xe.data : e !== void 0 && t === void 0 ? xe.data[e] : xe.data[e][t];
2143
2129
  }
2144
- function zs(e) {
2130
+ function Ks(e) {
2145
2131
  Zn.data = e;
2146
2132
  }
2147
2133
  function Ys(e) {
@@ -2156,9 +2142,9 @@ async function Js() {
2156
2142
  let e = localStorage.getItem("u");
2157
2143
  if (e !== "" && e !== "undefined" && e !== null) {
2158
2144
  let t = await A.deCode(e);
2159
- return t || oe(), Me.data = t, t;
2145
+ return t || ie(), Me.data = t, t;
2160
2146
  } else
2161
- return oe(), !1;
2147
+ return ie(), !1;
2162
2148
  }
2163
2149
  async function Xs() {
2164
2150
  let e = localStorage.getItem("u");
@@ -2178,7 +2164,7 @@ function ei() {
2178
2164
  if (e !== "" && e !== "undefined" && e !== null)
2179
2165
  try {
2180
2166
  let t = A.deCode(e);
2181
- return t || oe(), t;
2167
+ return t || ie(), t;
2182
2168
  } catch {
2183
2169
  return {};
2184
2170
  }
@@ -2192,52 +2178,52 @@ function ti(e) {
2192
2178
  try {
2193
2179
  let s = await A.deCode(r);
2194
2180
  if (!s) return;
2195
- he[a] = { is: !0, time: s.time, data: s.data };
2181
+ me[a] = { is: !0, time: s.time, data: s.data };
2196
2182
  } catch {
2197
- he[a] = { is: !1, time: 0, data: {} };
2183
+ me[a] = { is: !1, time: 0, data: {} };
2198
2184
  }
2199
2185
  else
2200
- he[a] = { is: !1, time: 0, data: {} };
2186
+ me[a] = { is: !1, time: 0, data: {} };
2201
2187
  };
2202
2188
  e.forEach((a) => t(a));
2203
2189
  }
2204
2190
  function ni(e) {
2205
- return he[e] === void 0 ? (he[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : he[e];
2191
+ return me[e] === void 0 ? (me[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : me[e];
2206
2192
  }
2207
2193
  async function ai(e, t) {
2208
- he[e] = { data: t.data, time: t.time }, localStorage.setItem(e, await A.enCode(he[e]));
2194
+ me[e] = { data: t.data, time: t.time }, localStorage.setItem(e, await A.enCode(me[e]));
2209
2195
  }
2210
2196
  async function ri(e, t) {
2211
- _e[e] = t, localStorage.setItem("t", await A.enCode(_e));
2197
+ de[e] = t, localStorage.setItem("t", await A.enCode(de));
2212
2198
  }
2213
2199
  async function si(e) {
2214
- if (Object.keys(_e).length === 0) {
2200
+ if (Object.keys(de).length === 0) {
2215
2201
  let t = localStorage.getItem("t");
2216
2202
  if (t !== "" && t !== "undefined" && t !== null) {
2217
2203
  let a = await A.deCode(t);
2218
- return a || oe(), Object.keys(a).forEach((r) => {
2219
- _e[r] = a[r];
2220
- }), e ? _e[e] : _e;
2204
+ return a || ie(), Object.keys(a).forEach((r) => {
2205
+ de[r] = a[r];
2206
+ }), e ? de[e] : de;
2221
2207
  } else
2222
- return oe(), {};
2208
+ return ie(), {};
2223
2209
  } else
2224
- return e ? _e[e] : _e;
2210
+ return e ? de[e] : de;
2225
2211
  }
2226
2212
  async function ii(e) {
2227
- if (Object.keys(_e).length === 0) {
2213
+ if (Object.keys(de).length === 0) {
2228
2214
  let t = localStorage.getItem("t");
2229
2215
  if (t !== "" && t !== "undefined" && t !== null) {
2230
2216
  let a = await A.deCode(t);
2231
2217
  return a ? (Object.keys(a).forEach((r) => {
2232
- _e[r] = a[r];
2233
- }), !!_e[e]) : !1;
2218
+ de[r] = a[r];
2219
+ }), !!de[e]) : !1;
2234
2220
  } else
2235
2221
  return !1;
2236
2222
  } else
2237
- return !!_e[e];
2223
+ return !!de[e];
2238
2224
  }
2239
2225
  async function oi(e, t, a) {
2240
- he[e].time = a, he[e].data[t.item][t.name] = t.value, localStorage.setItem(e, await A.enCode(he[e]));
2226
+ me[e].time = a, me[e].data[t.item][t.name] = t.value, localStorage.setItem(e, await A.enCode(me[e]));
2241
2227
  }
2242
2228
  function li() {
2243
2229
  var a;
@@ -2246,7 +2232,7 @@ function li() {
2246
2232
  try {
2247
2233
  return JSON.parse(t || "{}");
2248
2234
  } catch {
2249
- return me.Error("Error parse devMod"), {};
2235
+ return fe.Error("Error parse devMod"), {};
2250
2236
  }
2251
2237
  }
2252
2238
  function Un() {
@@ -2423,8 +2409,8 @@ const Y = {
2423
2409
  Y[e] = t;
2424
2410
  }
2425
2411
  }, ki = ({ before: e, from: t = 0, to: a, secund: r = 3 }) => {
2426
- const s = x.useRef();
2427
- return x.useEffect(() => {
2412
+ const s = g.useRef();
2413
+ return g.useEffect(() => {
2428
2414
  s.s = !0;
2429
2415
  const i = 1e3, o = a / (r * 10);
2430
2416
  s.n = 0;
@@ -2446,7 +2432,7 @@ const Y = {
2446
2432
  setPORT: $s,
2447
2433
  setAUTH: Ms,
2448
2434
  getAUTH: Bs,
2449
- Logaut: oe,
2435
+ Logaut: ie,
2450
2436
  setMenu: Os,
2451
2437
  getMenu: Zs,
2452
2438
  useSort: Gs,
@@ -2455,9 +2441,9 @@ const Y = {
2455
2441
  setCompany: Ws,
2456
2442
  getCompany: Wn,
2457
2443
  setSelect: Us,
2458
- addSelect: Ks,
2444
+ addSelect: zs,
2459
2445
  getSelect: Ye,
2460
- setApi: zs,
2446
+ setApi: Ks,
2461
2447
  getApi: Ys,
2462
2448
  setPayment: Hs,
2463
2449
  getPayment: qs,
@@ -2475,7 +2461,7 @@ const Y = {
2475
2461
  devMod: li,
2476
2462
  isBrowser: ci,
2477
2463
  getBrowser: Un
2478
- }, bi = "_h_1usnu_1", Si = "_g_1usnu_11", Ei = "_hr_1usnu_16", Ii = "_hl_1usnu_28", Di = "_t_1usnu_40", Ni = "_s_1usnu_60", Ri = "_u_1usnu_69", Ti = "_o_1usnu_76", Li = "_l_1usnu_105", Mi = "_hh_1usnu_115", Bi = "_c_1usnu_128", $i = "_loadingB_1usnu_1", Fi = "_m_1usnu_180", Pi = "_ul_1usnu_196", Ai = "_f_1usnu_226", ie = {
2464
+ }, bi = "_h_1usnu_1", Si = "_g_1usnu_11", Ei = "_hr_1usnu_16", Ii = "_hl_1usnu_28", Di = "_t_1usnu_40", Ni = "_s_1usnu_60", Ri = "_u_1usnu_69", Ti = "_o_1usnu_76", Li = "_l_1usnu_105", Mi = "_hh_1usnu_115", Bi = "_c_1usnu_128", $i = "_loadingB_1usnu_1", Fi = "_m_1usnu_180", Pi = "_ul_1usnu_196", Ai = "_f_1usnu_226", se = {
2479
2465
  h: bi,
2480
2466
  g: Si,
2481
2467
  hr: Ei,
@@ -2491,22 +2477,22 @@ const Y = {
2491
2477
  m: Fi,
2492
2478
  ul: Pi,
2493
2479
  f: Ai
2494
- }, yn = ({ title: e, left: t, right: a, children: r }) => /* @__PURE__ */ n.jsxs("div", { className: ie.h, children: [
2495
- /* @__PURE__ */ n.jsx("div", { className: ie.t, children: e }),
2496
- t && /* @__PURE__ */ n.jsx("div", { className: ie.hl, children: t }),
2497
- a && /* @__PURE__ */ n.jsx("div", { className: ie.hr, children: a }),
2480
+ }, yn = ({ title: e, left: t, right: a, children: r }) => /* @__PURE__ */ n.jsxs("div", { className: se.h, children: [
2481
+ /* @__PURE__ */ n.jsx("div", { className: se.t, children: e }),
2482
+ t && /* @__PURE__ */ n.jsx("div", { className: se.hl, children: t }),
2483
+ a && /* @__PURE__ */ n.jsx("div", { className: se.hr, children: a }),
2498
2484
  r
2499
- ] }), wn = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("div", { className: ie.l, children: e }), kn = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: ie.s, children: e }), bn = ({ children: e, edit: t }) => {
2485
+ ] }), wn = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("div", { className: se.l, children: e }), kn = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: se.s, children: e }), bn = ({ children: e, edit: t }) => {
2500
2486
  const a = {};
2501
- return t && (a.edit = ""), /* @__PURE__ */ n.jsx("div", { ...a, className: ie.f, children: e });
2487
+ return t && (a.edit = ""), /* @__PURE__ */ n.jsx("div", { ...a, className: se.f, children: e });
2502
2488
  };
2503
2489
  function Sn({ children: e }) {
2504
- return /* @__PURE__ */ n.jsx("div", { className: ie.g, children: e });
2490
+ return /* @__PURE__ */ n.jsx("div", { className: se.g, children: e });
2505
2491
  }
2506
- const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [ie.o, t].join(" "), children: [
2507
- a && /* @__PURE__ */ n.jsx("div", { className: ie.hh, children: a }),
2492
+ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [se.o, t].join(" "), children: [
2493
+ a && /* @__PURE__ */ n.jsx("div", { className: se.hh, children: a }),
2508
2494
  e
2509
- ] }), Zi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: ie.u, children: e }), Gi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: ie.c, children: e }), Wi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: ie.m, children: e }), Ui = ze.Line, En = {
2495
+ ] }), Zi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: se.u, children: e }), Gi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: se.c, children: e }), Wi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: se.m, children: e }), Ui = Ke.Line, En = {
2510
2496
  Header: yn,
2511
2497
  Section: kn,
2512
2498
  Group: Sn,
@@ -2522,7 +2508,7 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2522
2508
  H: yn,
2523
2509
  M: Wi,
2524
2510
  F: bn
2525
- }, Ki = (e, t) => {
2511
+ }, zi = (e, t) => {
2526
2512
  switch (t.type) {
2527
2513
  case "load":
2528
2514
  return {
@@ -2583,7 +2569,7 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2583
2569
  default:
2584
2570
  return e;
2585
2571
  }
2586
- }, zi = () => ({
2572
+ }, Ki = () => ({
2587
2573
  load: !0,
2588
2574
  list: [],
2589
2575
  name: "Файлы",
@@ -2591,7 +2577,7 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2591
2577
  search: !1,
2592
2578
  revers: !0
2593
2579
  }), Yi = () => {
2594
- let [e, t] = x.useState([]);
2580
+ let [e, t] = g.useState([]);
2595
2581
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsxs("div", { className: "upload view", children: [
2596
2582
  /* @__PURE__ */ n.jsxs("div", { className: "--head", children: [
2597
2583
  /* @__PURE__ */ n.jsx("b", { children: "Загрузки" }),
@@ -2613,7 +2599,7 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2613
2599
  dir: r
2614
2600
  }) => {
2615
2601
  t = t || "Файлы";
2616
- const [s, i] = x.useReducer(Ki, {}, zi), o = () => {
2602
+ const [s, i] = g.useReducer(zi, {}, Ki), o = () => {
2617
2603
  Ne.Add(
2618
2604
  /* @__PURE__ */ n.jsx(
2619
2605
  qi,
@@ -2626,7 +2612,7 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2626
2612
  )
2627
2613
  );
2628
2614
  };
2629
- return x.useEffect(() => {
2615
+ return g.useEffect(() => {
2630
2616
  }, [e, r]), /* @__PURE__ */ n.jsxs(En.O, { children: [
2631
2617
  " ",
2632
2618
  /* @__PURE__ */ n.jsx(
@@ -2659,12 +2645,12 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2659
2645
  ] }) : s.list.length === 0 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : s.list.map((d, l) => /* @__PURE__ */ n.jsx(Ji, { dispatch: i, data: d }, l)) })
2660
2646
  ] });
2661
2647
  }, qi = ({ id: e, dir: t, dispatch: a }) => {
2662
- let [r, s] = x.useState(!0), i = x.useRef(null), o = (_) => {
2648
+ let [r, s] = g.useState(!0), i = g.useRef(null), o = (_) => {
2663
2649
  _.preventDefault(), _.stopPropagation();
2664
2650
  }, d = (_) => {
2665
2651
  }, l = (_) => {
2666
2652
  };
2667
- return x.useEffect(() => {
2653
+ return g.useEffect(() => {
2668
2654
  let _ = i.current;
2669
2655
  ["dragenter", "dragover", "dragleave", "drop"].forEach((c) => {
2670
2656
  _.addEventListener(c, o, !1), document.body.addEventListener(c, o, !1);
@@ -2709,7 +2695,7 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2709
2695
  ) }) : "" });
2710
2696
  }, Ji = ({ data: e, dispatch: t }) => {
2711
2697
  let a = async () => {
2712
- let i = await (await fetch(Ke.url().files + "/yandex/data/" + e.id, {
2698
+ let i = await (await fetch(ze.url().files + "/yandex/data/" + e.id, {
2713
2699
  headers: {
2714
2700
  "Content-type": "application/json;charset=utf-8",
2715
2701
  SSID: ke.getSSID() || ""
@@ -2722,12 +2708,12 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2722
2708
  d.setAttribute("href", o), d.setAttribute("download", e.name), d.click();
2723
2709
  }
2724
2710
  }, r = async () => {
2725
- (await (await fetch(Ke.url().files + "/yandex/delete/" + e.id, {
2711
+ (await (await fetch(ze.url().files + "/yandex/delete/" + e.id, {
2726
2712
  headers: {
2727
2713
  "Content-type": "application/json;charset=utf-8",
2728
2714
  SSID: ke.getSSID() || ""
2729
2715
  }
2730
- })).json()).status === "success" && (t({ type: "delete", id: e.id }), me.Send({ type: "success", text: "Файл успешно удалён" }));
2716
+ })).json()).status === "success" && (t({ type: "delete", id: e.id }), fe.Send({ type: "success", text: "Файл успешно удалён" }));
2731
2717
  };
2732
2718
  return /* @__PURE__ */ n.jsxs("li", { children: [
2733
2719
  /* @__PURE__ */ n.jsx("div", { className: "f035", children: Y.TypeFiles(e.type) }),
@@ -2761,8 +2747,8 @@ q.list = ei();
2761
2747
  q.active = null;
2762
2748
  const Xi = () => {
2763
2749
  var s;
2764
- let [e, t] = x.useState([]), [a, r] = x.useState($t.getSetting("s03"));
2765
- return x.useEffect(() => {
2750
+ let [e, t] = g.useState([]), [a, r] = g.useState($t.getSetting("s03"));
2751
+ return g.useEffect(() => {
2766
2752
  (async () => {
2767
2753
  let i = Object.keys(q.list);
2768
2754
  if (i.length !== 0) {
@@ -2798,14 +2784,14 @@ const Xi = () => {
2798
2784
  a === 1 && e.length !== 0 ? "bottom" : ""
2799
2785
  ), a !== 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsx("div", { className: "bookmarks", children: e.map((i) => i.item) }) : "" }) : "";
2800
2786
  }, Vi = ({ id: e, type: t, name: a }) => {
2801
- let r = t + "-" + e, [s, i] = x.useState(
2787
+ let r = t + "-" + e, [s, i] = g.useState(
2802
2788
  q.list[r] !== void 0
2803
2789
  );
2804
- x.useEffect(() => {
2790
+ g.useEffect(() => {
2805
2791
  i(q.list[r] !== void 0);
2806
2792
  }, [r]);
2807
2793
  let o = () => {
2808
- q.list[r] !== void 0 ? (q.del(r), delete q.list[r], jn(q.list), i(!1), me.Send({ type: "success", text: "Запись удален из закладок" })) : (q.list[r] = { id: e, name: a, type: t, link: r }, q.set(q.list[r]), jn(q.list), i(!0), me.Send({
2794
+ q.list[r] !== void 0 ? (q.del(r), delete q.list[r], jn(q.list), i(!1), fe.Send({ type: "success", text: "Запись удален из закладок" })) : (q.list[r] = { id: e, name: a, type: t, link: r }, q.set(q.list[r]), jn(q.list), i(!0), fe.Send({
2809
2795
  type: "success",
2810
2796
  text: "Запись добавлен в закладки"
2811
2797
  }));
@@ -2930,8 +2916,8 @@ H.Run = async (e) => {
2930
2916
  };
2931
2917
  let Ue = {};
2932
2918
  function eo() {
2933
- let [e, t] = x.useState([]), a = x.useRef(null);
2934
- return x.useEffect(() => {
2919
+ let [e, t] = g.useState([]), a = g.useRef(null);
2920
+ return g.useEffect(() => {
2935
2921
  }, []), Ue.set = (r) => {
2936
2922
  t([...e, r]);
2937
2923
  }, Ue.del = () => {
@@ -2951,8 +2937,8 @@ function to(e, t) {
2951
2937
  });
2952
2938
  }
2953
2939
  function no({ id: e, type: t }) {
2954
- const [a, r] = x.useState({}), [s, i] = x.useState(t);
2955
- x.useEffect(() => {
2940
+ const [a, r] = g.useState({}), [s, i] = g.useState(t);
2941
+ g.useEffect(() => {
2956
2942
  r(ke.getSelect("user")[e]);
2957
2943
  }, []), H.useListener((l) => {
2958
2944
  switch (l.type) {
@@ -3058,7 +3044,7 @@ function ro({ color: e, size: t, name: a }) {
3058
3044
  return /* @__PURE__ */ n.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ n.jsx("use", { href: `#${a}` }) });
3059
3045
  }
3060
3046
  function so() {
3061
- let [e, t] = x.useState([]);
3047
+ let [e, t] = g.useState([]);
3062
3048
  if (It.x = () => {
3063
3049
  t([]);
3064
3050
  }, It.add = (r) => {
@@ -3080,17 +3066,17 @@ function so() {
3080
3066
  let nt = {}, Dt = {}, Nt = "ru";
3081
3067
  const io = (e, t) => {
3082
3068
  Dt = e, t ? Nt = t : Nt = Object.keys(e)[0];
3083
- }, Kn = Ln(
3069
+ }, zn = Ln(
3084
3070
  localStorage.getItem("lang") || navigator.language
3085
3071
  ), oo = ({ children: e }) => {
3086
- const [t, a] = x.useState(
3072
+ const [t, a] = g.useState(
3087
3073
  localStorage.getItem("lang") || navigator.language
3088
3074
  );
3089
- return nt.update = a, /* @__PURE__ */ n.jsx(Kn.Provider, { value: Dt[t] || Dt[Nt], children: e });
3075
+ return nt.update = a, /* @__PURE__ */ n.jsx(zn.Provider, { value: Dt[t] || Dt[Nt], children: e });
3090
3076
  }, lo = (e) => {
3091
3077
  var t;
3092
3078
  localStorage.setItem("lang", e), (t = nt.update) == null || t.call(nt, e);
3093
- }, co = () => qa(Kn), _o = () => localStorage.getItem("lang") || navigator.language;
3079
+ }, co = () => qa(zn), _o = () => localStorage.getItem("lang") || navigator.language;
3094
3080
  Ln({
3095
3081
  tab: "",
3096
3082
  setTabs: (e) => {
@@ -3105,8 +3091,8 @@ function uo(e, t) {
3105
3091
  }
3106
3092
  const be = {};
3107
3093
  function fo(e, t) {
3108
- const [a, r] = x.useState(t);
3109
- return x.useEffect(() => {
3094
+ const [a, r] = g.useState(t);
3095
+ return g.useEffect(() => {
3110
3096
  if (be[e]) return be[e].push(r);
3111
3097
  be[e] = [r];
3112
3098
  }, []), [a];
@@ -3118,18 +3104,18 @@ function mo(e, t) {
3118
3104
  function ho(e, t) {
3119
3105
  be[e] && be[e].forEach((a) => a(t));
3120
3106
  }
3121
- const Ce = { setListener: uo, useListener: Ft, setEmitter: ho, useEmitter: fo, subEmitter: mo };
3107
+ const ve = { setListener: uo, useListener: Ft, setEmitter: ho, useEmitter: fo, subEmitter: mo };
3122
3108
  function po() {
3123
- let [e, t] = x.useState([]);
3124
- return Ce.useListener("form", (a) => {
3109
+ let [e, t] = g.useState([]);
3110
+ return ve.useListener("form", (a) => {
3125
3111
  t([a]);
3126
3112
  }), /* @__PURE__ */ n.jsx(n.Fragment, { children: e.map((a) => a) });
3127
3113
  }
3128
3114
  const go = ({ children: e, lang: t }) => Rs(
3129
3115
  /* @__PURE__ */ n.jsxs(oo, { children: [
3130
3116
  /* @__PURE__ */ n.jsx(Ne.Init, {}),
3131
- /* @__PURE__ */ n.jsx(me.Init, {}),
3132
- /* @__PURE__ */ n.jsx(ze.Init, {}),
3117
+ /* @__PURE__ */ n.jsx(fe.Init, {}),
3118
+ /* @__PURE__ */ n.jsx(Ke.Init, {}),
3133
3119
  /* @__PURE__ */ n.jsx(kt.Init, {}),
3134
3120
  /* @__PURE__ */ n.jsx(Yi, {}),
3135
3121
  /* @__PURE__ */ n.jsx(so, {}),
@@ -3145,7 +3131,7 @@ const go = ({ children: e, lang: t }) => Rs(
3145
3131
  payment: Co
3146
3132
  };
3147
3133
  function yo() {
3148
- let [e, t] = x.useState({});
3134
+ let [e, t] = g.useState({});
3149
3135
  return !e.active && !e.payment ? "" : /* @__PURE__ */ n.jsx("div", { className: jo.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
3150
3136
  }
3151
3137
  const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className: "app", children: [
@@ -3175,28 +3161,28 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
3175
3161
  after: l,
3176
3162
  before: _,
3177
3163
  label: c,
3178
- onRef: h,
3179
- awaitText: m = "Ожидайте"
3164
+ onRef: m,
3165
+ awaitText: f = "Ожидайте"
3180
3166
  }) => {
3181
- let [g, v] = x.useState(!1);
3182
- const f = (y) => {
3167
+ let [h, x] = g.useState(!1);
3168
+ const p = (y) => {
3183
3169
  if (e) return e();
3184
- g || (t ? (v(!0), t(v)) : y.preventDefault());
3170
+ h || (t ? (x(!0), t(x)) : y.preventDefault());
3185
3171
  };
3186
- let p = {};
3187
- return (o || g) && (p.disabled = !0), /* @__PURE__ */ n.jsx(
3172
+ let v = {};
3173
+ return (o || h) && (v.disabled = !0), /* @__PURE__ */ n.jsx(
3188
3174
  "button",
3189
3175
  {
3190
- ...p,
3191
- ref: h,
3176
+ ...v,
3177
+ ref: m,
3192
3178
  className: [
3193
3179
  tt.btn,
3194
- g ? tt.disabled : tt[r],
3180
+ h ? tt.disabled : tt[r],
3195
3181
  a && tt[a],
3196
3182
  d
3197
3183
  ].join(" "),
3198
- onClick: f,
3199
- children: g ? m : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3184
+ onClick: p,
3185
+ children: h ? f : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3200
3186
  _ || "",
3201
3187
  " ",
3202
3188
  c,
@@ -3217,7 +3203,7 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
3217
3203
  )) }) }), To = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t }), Lo = "_tabs_1i88v_1", Mo = "_tab_1i88v_1", In = {
3218
3204
  tabs: Lo,
3219
3205
  tab: Mo
3220
- }, zn = ({ list: e = [], active: t, onTab: a }) => {
3206
+ }, Kn = ({ list: e = [], active: t, onTab: a }) => {
3221
3207
  const r = (s) => {
3222
3208
  if (a) return a(s);
3223
3209
  ee.setTabs(s);
@@ -3240,7 +3226,7 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
3240
3226
  className: r,
3241
3227
  after: s
3242
3228
  }) => {
3243
- const [i, o] = x.useState(t);
3229
+ const [i, o] = g.useState(t);
3244
3230
  return /* @__PURE__ */ n.jsxs("div", { className: ["tabs-button", r].join(" "), children: [
3245
3231
  /* @__PURE__ */ n.jsx("ul", { children: e.map((d) => /* @__PURE__ */ n.jsx(
3246
3232
  $o,
@@ -3273,7 +3259,7 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
3273
3259
  ]
3274
3260
  }
3275
3261
  );
3276
- }, rd = { List: Ro, Lite: zn, Button: Bo }, Fo = ({
3262
+ }, rd = { List: Ro, Lite: Kn, Button: Bo }, Fo = ({
3277
3263
  title: e = "",
3278
3264
  button: t,
3279
3265
  description: a = "",
@@ -3296,7 +3282,7 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
3296
3282
  ] }), Po = "_setting_dva4m_2", Ao = {
3297
3283
  setting: Po
3298
3284
  }, Oo = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: Ao.setting, children: e }), Zo = ({ label: e, children: t }) => {
3299
- let [a, r] = x.useState(!1);
3285
+ let [a, r] = g.useState(!1);
3300
3286
  return /* @__PURE__ */ n.jsxs("li", { "data-item": "accordion", children: [
3301
3287
  /* @__PURE__ */ n.jsxs("dl", { onClick: () => r(!a), children: [
3302
3288
  /* @__PURE__ */ n.jsx("dt", { children: e }),
@@ -3316,10 +3302,10 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
3316
3302
  },
3317
3303
  "aria-checked": e ? "true" : "false"
3318
3304
  }
3319
- )), Uo = { Switch: Wo }, Ko = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3305
+ )), Uo = { Switch: Wo }, zo = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3320
3306
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3321
3307
  /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(Uo.Switch, { onClick: t, active: a }) })
3322
- ] }) }), zo = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3308
+ ] }) }), Ko = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3323
3309
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3324
3310
  /* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
3325
3311
  ] }) }), Yo = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
@@ -3331,7 +3317,7 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
3331
3317
  ] }) }), qo = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3332
3318
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3333
3319
  /* @__PURE__ */ n.jsx("dd", { children: t })
3334
- ] }) }), Jo = { Accordion: Zo, Button: Go, Switch: Ko, Info: Yo, Select: zo, Component: Ho, Node: qo };
3320
+ ] }) }), Jo = { Accordion: Zo, Button: Go, Switch: zo, Info: Yo, Select: Ko, Component: Ho, Node: qo };
3335
3321
  function Yn({ list: e, onClick: t, active: a, size: r, view: s }) {
3336
3322
  return /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ n.jsx(
3337
3323
  Xo,
@@ -3349,7 +3335,7 @@ Yn.defaultProps = { size: "M", view: "H" };
3349
3335
  const sd = { Section: Fo, Main: Oo, Item: Jo, Tabs: Yn };
3350
3336
  function Vo({ value: e, background: t, gradient: a }) {
3351
3337
  let r = 835.24, s = r - e / 100 * r;
3352
- const i = x.useId();
3338
+ const i = g.useId();
3353
3339
  return /* @__PURE__ */ n.jsxs(
3354
3340
  "svg",
3355
3341
  {
@@ -3444,7 +3430,7 @@ il.setAttribute = (e, t) => {
3444
3430
  };
3445
3431
  function ol({ items: e, list: t, icons: a, isSetting: r = !0 }) {
3446
3432
  const s = () => {
3447
- ze.Send(
3433
+ Ke.Send(
3448
3434
  { title: "Выйти", text: "Вы уверене что хотиет выйти" },
3449
3435
  () => {
3450
3436
  ke.Logaut();
@@ -3487,10 +3473,10 @@ const ll = ({ items: e, i: t, icons: a }) => t[0] === "#" ? /* @__PURE__ */ n.js
3487
3473
  ]
3488
3474
  }
3489
3475
  ), cl = ({ icons: e }) => {
3490
- const [t, a] = x.useState(!1), r = x.useRef(null), s = async () => {
3476
+ const [t, a] = g.useState(!1), r = g.useRef(null), s = async () => {
3491
3477
  r.current && (await r.current.prompt(), a(!1));
3492
3478
  };
3493
- return x.useEffect(() => {
3479
+ return g.useEffect(() => {
3494
3480
  window.addEventListener("appinstalled", (i) => {
3495
3481
  }), window.addEventListener("beforeinstallprompt", async (i) => {
3496
3482
  i.preventDefault(), r.current = i, a(!0);
@@ -3508,28 +3494,28 @@ function qn({
3508
3494
  searchParams: s = ["p01", "p02", "p03"],
3509
3495
  ...i
3510
3496
  }) {
3511
- const [o, d] = x.useState([]), [l, _] = x.useState([]), [c, h] = x.useState(!1), m = async () => {
3512
- let g = await Ke.fetch(e, t);
3513
- g.data && g.data.length > 0 && (d(g.data), _(g.data)), h(!0);
3497
+ const [o, d] = g.useState([]), [l, _] = g.useState([]), [c, m] = g.useState(!1), f = async () => {
3498
+ let h = await ze.fetch(e, t);
3499
+ h.data && h.data.length > 0 && (d(h.data), _(h.data)), m(!0);
3514
3500
  };
3515
- return Ce.useListener("list_children", (g) => {
3516
- if (g.action === "edit") {
3517
- let v = l.map(
3518
- (f) => f.id === g.id ? Object.assign(f, { [g.name]: g.value }) : f
3501
+ return ve.useListener("list_children", (h) => {
3502
+ if (h.action === "edit") {
3503
+ let x = l.map(
3504
+ (p) => p.id === h.id ? Object.assign(p, { [h.name]: h.value }) : p
3519
3505
  );
3520
- d(v), _(v);
3506
+ d(x), _(x);
3521
3507
  }
3522
- if (g.action === "delete") {
3523
- let v = l.filter((f) => f.id !== g.id);
3524
- d(v), _(v);
3508
+ if (h.action === "delete") {
3509
+ let x = l.filter((p) => p.id !== h.id);
3510
+ d(x), _(x);
3525
3511
  }
3526
- }), Ce.useListener("search", (g) => {
3512
+ }), ve.useListener("search", (h) => {
3527
3513
  d(
3528
- l.filter((v) => ("" + s.map((p) => v[p]).toString()).toLowerCase().includes(g.toLowerCase()))
3514
+ l.filter((x) => ("" + s.map((v) => x[v]).toString()).toLowerCase().includes(h.toLowerCase()))
3529
3515
  );
3530
- }), x.useEffect(() => {
3531
- m(), a && Ce.setListener("button", a);
3532
- }, []), c && o.length === 0 ? /* @__PURE__ */ n.jsx("ul", { className: "list-body", children: r }) : /* @__PURE__ */ n.jsx("ul", { className: "list-body", children: o.map((g, v) => /* @__PURE__ */ n.jsx(i.item, { data: g, count: v + 1 }, g.id)) });
3516
+ }), g.useEffect(() => {
3517
+ f(), a && ve.setListener("button", a);
3518
+ }, []), c && o.length === 0 ? /* @__PURE__ */ n.jsx("ul", { className: "list-body", children: r }) : /* @__PURE__ */ n.jsx("ul", { className: "list-body", children: o.map((h, x) => /* @__PURE__ */ n.jsx(i.item, { data: h, count: x + 1 }, h.id)) });
3533
3519
  }
3534
3520
  const cd = { Menu: ol, List: qn }, dl = "_sort_1yrvt_1", _l = {
3535
3521
  sort: dl
@@ -3549,7 +3535,7 @@ function ul(e, t) {
3549
3535
  }
3550
3536
  }
3551
3537
  function fl() {
3552
- const [e, t] = x.useReducer(
3538
+ const [e, t] = g.useReducer(
3553
3539
  ul,
3554
3540
  bt() === void 0 ? { active: 1, sort: "<" } : bt()
3555
3541
  );
@@ -3610,12 +3596,12 @@ function gl(e) {
3610
3596
  }
3611
3597
  const dd = { Init: fl, useValue: ml, Set: hl, Run: pl, Count: gl }, at = {}, Jn = {};
3612
3598
  function xl(e) {
3613
- const [t, a] = x.useState({}), r = async (s) => {
3599
+ const [t, a] = g.useState({}), r = async (s) => {
3614
3600
  a(
3615
3601
  Object.keys(at).reduce((i, o) => (i ? i[o] = at[o].all : i = {}, i), {})
3616
3602
  );
3617
3603
  };
3618
- return x.useEffect(() => {
3604
+ return g.useEffect(() => {
3619
3605
  e.forEach((s) => at[s] = { all: 0 }), Jn.menu = r, r();
3620
3606
  }, [e]), t;
3621
3607
  }
@@ -3650,7 +3636,7 @@ class Cl {
3650
3636
  let vt, X = {};
3651
3637
  const Be = () => (vt || (vt = new Cl()), vt), Se = (e, t, a = Be()) => a._withIDBStore("readwrite", (r) => {
3652
3638
  X[e] = t, r.put(A.enCode(t), e);
3653
- }), je = (e, t = Be()) => X[e] === void 0 ? new Promise((a, r) => {
3639
+ }), Ce = (e, t = Be()) => X[e] === void 0 ? new Promise((a, r) => {
3654
3640
  let s;
3655
3641
  t._withIDBStore("readonly", (i) => {
3656
3642
  s = i.get(e);
@@ -3673,26 +3659,26 @@ const Be = () => (vt || (vt = new Cl()), vt), Se = (e, t, a = Be()) => a._withID
3673
3659
  };
3674
3660
  }).then(() => t);
3675
3661
  }, wl = (e, t, a = [], r = {}) => {
3676
- let s = a.length !== 0, i = [], o = r.sort, d = Object.keys(r).length !== 0, l = Object.keys(r), _ = Object.keys(e), c = [], h = (g) => {
3677
- let v = "";
3678
- if (a.forEach((f) => {
3679
- v += t[g][f];
3662
+ let s = a.length !== 0, i = [], o = r.sort, d = Object.keys(r).length !== 0, l = Object.keys(r), _ = Object.keys(e), c = [], m = (h) => {
3663
+ let x = "";
3664
+ if (a.forEach((p) => {
3665
+ x += t[h][p];
3680
3666
  }), d) {
3681
- let f = {};
3682
- l.forEach((p) => {
3683
- f[p] = t[g][p];
3667
+ let p = {};
3668
+ l.forEach((v) => {
3669
+ p[v] = t[h][v];
3684
3670
  });
3685
- for (let p in o)
3686
- t[g][o[p]] === void 0 && (Lt(), location.reload()), p === "s1" && (f[p] = new Date(t[g][o[p]]).getTime()), p === "s2" && (f[p] = t[g][o[p]]), p === "s3" && (f[p] = t[g][o[p]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3687
- i.push({ id: g, text: v, ...f });
3671
+ for (let v in o)
3672
+ t[h][o[v]] === void 0 && (Lt(), location.reload()), v === "s1" && (p[v] = new Date(t[h][o[v]]).getTime()), v === "s2" && (p[v] = t[h][o[v]]), v === "s3" && (p[v] = t[h][o[v]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3673
+ i.push({ id: h, text: x, ...p });
3688
3674
  } else
3689
- i.push({ id: g, text: v });
3690
- }, m = (g) => {
3675
+ i.push({ id: h, text: x });
3676
+ }, f = (h) => {
3691
3677
  };
3692
- return _.forEach((g) => {
3693
- c.push(t[g]);
3694
- }), c.forEach((g) => {
3695
- g === void 0 ? (Lt(), location.reload()) : (s && h(g.id), d && m(g.id));
3678
+ return _.forEach((h) => {
3679
+ c.push(t[h]);
3680
+ }), c.forEach((h) => {
3681
+ h === void 0 ? (Lt(), location.reload()) : (s && m(h.id), d && f(h.id));
3696
3682
  }), { list: c, search: i, filter: r };
3697
3683
  }, kl = (e, t, a, r = Be()) => {
3698
3684
  if (X[e] === void 0)
@@ -3717,30 +3703,30 @@ const Be = () => (vt || (vt = new Cl()), vt), Se = (e, t, a = Be()) => a._withID
3717
3703
  });
3718
3704
  }, bl = async (e, t, a, r) => {
3719
3705
  let s, i;
3720
- i = await je(a), i[e.id] = e, await Se(a, i), s !== null && (s = await je(t), s[e.id] = e.eDate, await Se(t, s)), r !== void 0 && r({ type: "load", page: s, base: i });
3706
+ i = await Ce(a), i[e.id] = e, await Se(a, i), s !== null && (s = await Ce(t), s[e.id] = e.eDate, await Se(t, s)), r !== void 0 && r({ type: "load", page: s, base: i });
3721
3707
  }, Sl = async (e, t, a, r) => {
3722
- let s = await je(t), i = await je(a);
3708
+ let s = await Ce(t), i = await Ce(a);
3723
3709
  for (let o in e)
3724
3710
  i[o] = e[o], s[o] = e[o].eDate;
3725
3711
  await Se(t, s), await Se(a, i), r !== void 0 && r({ type: "load", page: s, base: i });
3726
3712
  }, El = async (e, t, a, r) => {
3727
- let s = await je(t), i = await je(a);
3713
+ let s = await Ce(t), i = await Ce(a);
3728
3714
  e.forEach((o) => delete s[o]), await Se(t, s), r !== void 0 && r({ type: "load", page: s, base: i });
3729
3715
  }, Il = async (e, t, a) => {
3730
- let r = await je(t);
3716
+ let r = await Ce(t);
3731
3717
  e.forEach((s) => delete r[s]), await Se(t, r);
3732
3718
  }, Dl = async (e, t, a) => {
3733
- let r = await je(t);
3719
+ let r = await Ce(t);
3734
3720
  e.forEach((s) => r[s.id] = s.eDate), await Se(t, r);
3735
3721
  }, Nl = async (e, t, a) => {
3736
- let r = await je(t);
3722
+ let r = await Ce(t);
3737
3723
  if (a !== void 0)
3738
3724
  a({ type: "load", base: r });
3739
3725
  else
3740
3726
  return r[e];
3741
3727
  }, Rl = (e) => X[e], ud = {
3742
3728
  id: Nl,
3743
- get: je,
3729
+ get: Ce,
3744
3730
  set: Se,
3745
3731
  add: bl,
3746
3732
  del: jl,
@@ -3776,7 +3762,7 @@ const Be = () => (vt || (vt = new Cl()), vt), Se = (e, t, a = Be()) => a._withID
3776
3762
  ul: Bl
3777
3763
  };
3778
3764
  function Xn({ children: e }) {
3779
- return /* @__PURE__ */ n.jsx("ul", { className: ie.ul, children: e });
3765
+ return /* @__PURE__ */ n.jsx("ul", { className: se.ul, children: e });
3780
3766
  }
3781
3767
  function Fl(e, t) {
3782
3768
  switch (t.type) {
@@ -3817,7 +3803,7 @@ function Pl({
3817
3803
  className: a,
3818
3804
  ...r
3819
3805
  }) {
3820
- const s = x.useRef(null), [i, o] = x.useReducer(Fl, {
3806
+ const s = g.useRef(null), [i, o] = g.useReducer(Fl, {
3821
3807
  load: !1,
3822
3808
  list: [],
3823
3809
  data: {},
@@ -3825,7 +3811,7 @@ function Pl({
3825
3811
  wait: !1,
3826
3812
  size: 0
3827
3813
  });
3828
- x.useEffect(() => {
3814
+ g.useEffect(() => {
3829
3815
  s.current.scrollTop = 0, e !== null && o({ type: "load", load: !0, data: e });
3830
3816
  }, [t]);
3831
3817
  let d = () => {
@@ -3853,17 +3839,17 @@ const hd = { Widget: Hi }, Vn = ({ onClick: e, active: t }) => (t = !!t, /* @__P
3853
3839
  "aria-checked": `${t ? "true" : "false"}`
3854
3840
  }
3855
3841
  ));
3856
- let K = {};
3857
- K.KeyDown = (e) => {
3842
+ let z = {};
3843
+ z.KeyDown = (e) => {
3858
3844
  e.key === "Enter" && e.preventDefault();
3859
3845
  };
3860
- K.PasteOne = (e) => {
3846
+ z.PasteOne = (e) => {
3861
3847
  e.preventDefault(), navigator.clipboard.readText().then((t) => {
3862
3848
  t = t.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, t);
3863
3849
  }).catch((t) => {
3864
3850
  });
3865
3851
  };
3866
- K.Paste = (e, t) => {
3852
+ z.Paste = (e, t) => {
3867
3853
  t.preventDefault(), navigator.clipboard.readText().then((a) => {
3868
3854
  if (e) {
3869
3855
  let r = t.target.textContent.length;
@@ -3878,13 +3864,13 @@ K.Paste = (e, t) => {
3878
3864
  }).catch((a) => {
3879
3865
  });
3880
3866
  };
3881
- K.Focus = (e) => {
3867
+ z.Focus = (e) => {
3882
3868
  e.target.textContent.length === 0 && (e.target.innerHTML = "<br>");
3883
3869
  };
3884
- K.Blur = (e) => {
3870
+ z.Blur = (e) => {
3885
3871
  e.target.scrollLeft = 0, e.target.querySelector("br") !== null && e.target.querySelector("br").remove();
3886
3872
  };
3887
- K.ContentEditable = ke.isBrowser("Firefox") ? "true" : "plaintext-only";
3873
+ z.ContentEditable = ke.isBrowser("Firefox") ? "true" : "plaintext-only";
3888
3874
  function He({
3889
3875
  id: e,
3890
3876
  value: t,
@@ -3897,36 +3883,36 @@ function He({
3897
3883
  edit: l = !0,
3898
3884
  active: _ = !0,
3899
3885
  after: c = "",
3900
- before: h = "",
3901
- show: m = !0,
3902
- maxLength: g,
3903
- onSave: v,
3904
- className: f = "",
3905
- isCopy: p = !0,
3886
+ before: m = "",
3887
+ show: f = !0,
3888
+ maxLength: h,
3889
+ onSave: x,
3890
+ className: p = "",
3891
+ isCopy: v = !0,
3906
3892
  isReload: y = !1
3907
3893
  }) {
3908
- let j = !!(d && (t === "" || t === void 0)), S = (E) => {
3894
+ let j = !!(d && (t === "" || t === void 0)), I = (S) => {
3909
3895
  a && a({
3910
- value: E.target.textContent.trim(),
3896
+ value: S.target.textContent.trim(),
3911
3897
  name: r,
3912
3898
  reload: y
3913
3899
  });
3914
- }, N = (E) => {
3915
- g && E.target.textContent.trim().length >= g && E.key !== "Backspace" && E.preventDefault(), E.key === "Enter" && E.preventDefault();
3916
- }, R = (E) => {
3917
- p && (E.preventDefault(), navigator.clipboard.writeText(E.target.textContent.trim()).then(
3900
+ }, N = (S) => {
3901
+ h && S.target.textContent.trim().length >= h && S.key !== "Backspace" && S.preventDefault(), S.key === "Enter" && S.preventDefault();
3902
+ }, R = (S) => {
3903
+ v && (S.preventDefault(), navigator.clipboard.writeText(S.target.textContent.trim()).then(
3918
3904
  function() {
3919
- me.Copy("Данные в буфер обмене");
3905
+ fe.Copy("Данные в буфер обмене");
3920
3906
  },
3921
3907
  function(L) {
3922
3908
  }
3923
3909
  ));
3924
- }, I = (E) => {
3925
- E.preventDefault(), navigator.clipboard.readText().then((L) => {
3926
- if (g) {
3927
- let D = E.target.textContent.length;
3928
- if (D >= g) return;
3929
- g -= D, L = L.slice(0, g);
3910
+ }, D = (S) => {
3911
+ S.preventDefault(), navigator.clipboard.readText().then((L) => {
3912
+ if (h) {
3913
+ let E = S.target.textContent.length;
3914
+ if (E >= h) return;
3915
+ h -= E, L = L.slice(0, h);
3930
3916
  }
3931
3917
  window.document.execCommand(
3932
3918
  "insertText",
@@ -3936,27 +3922,27 @@ function He({
3936
3922
  }).catch((L) => {
3937
3923
  });
3938
3924
  };
3939
- if (!(l && _) && !m || !(l && _) && j) return "";
3925
+ if (!(l && _) && !f || !(l && _) && j) return "";
3940
3926
  const C = {};
3941
- C.field = "input", f && (C.className = f);
3927
+ C.field = "input", p && (C.className = p);
3942
3928
  const k = {};
3943
3929
  s && (k.placeholder = s), l && _ && (k.edit = "");
3944
- const F = (E) => {
3945
- K.Blur(E), v == null || v({ value: E.target.textContent.trim(), name: r });
3930
+ const F = (S) => {
3931
+ z.Blur(S), x == null || x({ value: S.target.textContent.trim(), name: r });
3946
3932
  };
3947
3933
  return /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
3948
3934
  i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "",
3949
- h,
3935
+ m,
3950
3936
  /* @__PURE__ */ n.jsx(
3951
3937
  "dd",
3952
3938
  {
3953
- onPaste: I,
3954
- onInput: S,
3939
+ onPaste: D,
3940
+ onInput: I,
3955
3941
  onBlur: F,
3956
3942
  onKeyDown: N,
3957
3943
  onContextMenu: R,
3958
3944
  spellCheck: "true",
3959
- contentEditable: l && _ ? K.ContentEditable : "false",
3945
+ contentEditable: l && _ ? z.ContentEditable : "false",
3960
3946
  suppressContentEditableWarning: !0,
3961
3947
  ...k,
3962
3948
  children: t
@@ -3967,7 +3953,7 @@ function He({
3967
3953
  ] });
3968
3954
  }
3969
3955
  function Qn({ onClick: e, onSend: t, name: a, onRef: r }) {
3970
- let [s, i] = x.useState(!1);
3956
+ let [s, i] = g.useState(!1);
3971
3957
  const o = () => {
3972
3958
  if (e) return e();
3973
3959
  s || (i(!0), t && t(i));
@@ -3995,44 +3981,44 @@ function ea({
3995
3981
  active: l = !0,
3996
3982
  placeholder: _ = "Введите сообщение"
3997
3983
  }) {
3998
- const c = x.useRef({
3984
+ const c = g.useRef({
3999
3985
  value: e,
4000
3986
  timerId: null,
4001
3987
  shift: !1,
4002
3988
  send: !0
4003
- }), h = () => {
3989
+ }), m = () => {
4004
3990
  c.current.value.length > 0 ? c.current.send && (a(!0), c.current.send = !1, c.current.timerId = setTimeout(() => {
4005
3991
  c.current.send = !0;
4006
3992
  }, 3e3)) : a(!1);
4007
- }, m = (j) => {
4008
- c.current.value = j.target.textContent, h();
4009
- }, g = (j) => {
3993
+ }, f = (j) => {
3994
+ c.current.value = j.target.textContent, m();
3995
+ }, h = (j) => {
4010
3996
  j.keyCode === 16 && (c.current.shift = !0), j.keyCode === 13 && !c.current.shift && (j.preventDefault(), c.current.value.length !== 0 && (j.target.textContent = "", r && r(c.current.value), t && t(c.current.value), c.current.value = "", a(!1)));
4011
- }, v = (j) => {
3997
+ }, x = (j) => {
4012
3998
  j.keyCode === 16 && (c.current.shift = !1);
4013
- }, f = (j) => {
4014
- j.preventDefault(), navigator.clipboard.readText().then((S) => {
3999
+ }, p = (j) => {
4000
+ j.preventDefault(), navigator.clipboard.readText().then((I) => {
4015
4001
  if (o) {
4016
4002
  let N = j.target.textContent.length;
4017
4003
  if (N >= o) return;
4018
- o -= N, S = S.slice(0, o);
4004
+ o -= N, I = I.slice(0, o);
4019
4005
  }
4020
- window.document.execCommand("insertText", !1, S);
4021
- }).catch((S) => {
4006
+ window.document.execCommand("insertText", !1, I);
4007
+ }).catch((I) => {
4022
4008
  });
4023
- }, p = () => {
4009
+ }, v = () => {
4024
4010
  a(!1);
4025
4011
  }, y = {
4026
4012
  spellCheck: "true"
4027
4013
  };
4028
- return _ && (y.placeholder = _), d && l && (y.contentEditable = K.ContentEditable), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
4014
+ return _ && (y.placeholder = _), d && l && (y.contentEditable = z.ContentEditable), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
4029
4015
  "dd",
4030
4016
  {
4031
- onPaste: f,
4032
- onInput: m,
4033
- onKeyUp: v,
4034
- onKeyDown: g,
4035
- onBlur: p,
4017
+ onPaste: p,
4018
+ onInput: f,
4019
+ onKeyUp: x,
4020
+ onKeyDown: h,
4021
+ onBlur: v,
4036
4022
  ...y,
4037
4023
  suppressContentEditableWarning: !0,
4038
4024
  children: e
@@ -4058,7 +4044,7 @@ function ta(e) {
4058
4044
  onPaste: d,
4059
4045
  onInput: i,
4060
4046
  onKeyDown: o,
4061
- contentEditable: a && r ? K.ContentEditable : "false",
4047
+ contentEditable: a && r ? z.ContentEditable : "false",
4062
4048
  "data-placeholder": s,
4063
4049
  suppressContentEditableWarning: !0,
4064
4050
  children: e.value
@@ -4073,44 +4059,44 @@ function na({
4073
4059
  placeholder: r = "",
4074
4060
  name: s
4075
4061
  }) {
4076
- let i = (v, f) => Number(Math.round(v + Math.random() * (f - v))), o = x.useRef(null), d = x.useRef(null), l = i(1e4, 99999), _ = (v) => {
4077
- v.key !== "Backspace" && (v.key === "Enter" && v.preventDefault(), v.target.textContent.length === 5 && v.preventDefault(), /\d/.test(v.key) || v.preventDefault());
4078
- }, c = (v) => {
4079
- t({ value: Number(v.target.textContent) === l, name: s });
4080
- }, h = (v) => {
4081
- v.preventDefault(), navigator.clipboard.readText().then((f) => {
4062
+ let i = (x, p) => Number(Math.round(x + Math.random() * (p - x))), o = g.useRef(null), d = g.useRef(null), l = i(1e4, 99999), _ = (x) => {
4063
+ x.key !== "Backspace" && (x.key === "Enter" && x.preventDefault(), x.target.textContent.length === 5 && x.preventDefault(), /\d/.test(x.key) || x.preventDefault());
4064
+ }, c = (x) => {
4065
+ t({ value: Number(x.target.textContent) === l, name: s });
4066
+ }, m = (x) => {
4067
+ x.preventDefault(), navigator.clipboard.readText().then((p) => {
4082
4068
  if (a) {
4083
- let p = v.target.textContent.length;
4084
- if (p >= a) return;
4085
- a -= p, f = f.slice(0, a);
4069
+ let v = x.target.textContent.length;
4070
+ if (v >= a) return;
4071
+ a -= v, p = p.slice(0, a);
4086
4072
  }
4087
4073
  window.document.execCommand(
4088
4074
  "insertText",
4089
4075
  !1,
4090
- f.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
4076
+ p.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
4091
4077
  );
4092
- }).catch((f) => {
4078
+ }).catch((p) => {
4093
4079
  });
4094
4080
  };
4095
- x.useEffect(() => {
4096
- const v = o.current, f = v.getContext("2d");
4097
- f.clearRect(0, 0, v.width, v.height), f.font = "30px brush script mt", f.fillStyle = "#eee", f.textAlign = "center", f.fillText(l, 50, 27), d.current.textContent = "";
4081
+ g.useEffect(() => {
4082
+ const x = o.current, p = x.getContext("2d");
4083
+ p.clearRect(0, 0, x.width, x.height), p.font = "30px brush script mt", p.fillStyle = "#eee", p.textAlign = "center", p.fillText(l, 50, 27), d.current.textContent = "";
4098
4084
  }, [l]);
4099
- const m = {};
4100
- m.field = "captcha";
4101
- const g = {};
4102
- return r && (g.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...m, children: [
4085
+ const f = {};
4086
+ f.field = "captcha";
4087
+ const h = {};
4088
+ return r && (h.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...f, children: [
4103
4089
  /* @__PURE__ */ n.jsx(
4104
4090
  "dd",
4105
4091
  {
4106
4092
  ref: d,
4107
- onPaste: h,
4093
+ onPaste: m,
4108
4094
  onInput: c,
4109
- onBlur: K.Blur,
4095
+ onBlur: z.Blur,
4110
4096
  onKeyDown: _,
4111
- contentEditable: K.ContentEditable,
4097
+ contentEditable: z.ContentEditable,
4112
4098
  suppressContentEditableWarning: !0,
4113
- ...g
4099
+ ...h
4114
4100
  }
4115
4101
  ),
4116
4102
  /* @__PURE__ */ n.jsx("canvas", { ref: o, width: "100", height: "35" })
@@ -4134,29 +4120,29 @@ function aa({
4134
4120
  n5: "",
4135
4121
  n6: "",
4136
4122
  code: ""
4137
- }, _ = (f) => {
4138
- if (f.preventDefault(), !r) return;
4139
- f.target.textContent = f.target.textContent.slice(-1).replace(/[^+\d]/g, "");
4140
- let p = window.getSelection(), y = f.target.textContent.length;
4141
- if (l[f.target.id] = f.target.textContent, l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6, p.collapse(f.target.firstChild, 1), y === 0) {
4142
- f.target.blur(), f.target.focus();
4123
+ }, _ = (p) => {
4124
+ if (p.preventDefault(), !r) return;
4125
+ p.target.textContent = p.target.textContent.slice(-1).replace(/[^+\d]/g, "");
4126
+ let v = window.getSelection(), y = p.target.textContent.length;
4127
+ if (l[p.target.id] = p.target.textContent, l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6, v.collapse(p.target.firstChild, 1), y === 0) {
4128
+ p.target.blur(), p.target.focus();
4143
4129
  return;
4144
4130
  }
4145
- f.target.nextSibling != null && f.target.nextSibling.focus();
4146
- }, c = (f) => {
4147
- if (!r) return f.preventDefault();
4148
- if (f.key === "Enter" && f.preventDefault(), f.key === "Backspace") {
4149
- if (f.preventDefault(), f.target.textContent = "", l[f.target.id] = "", f.target.previousSibling != null) {
4150
- let p = f.target.previousSibling.id.slice(1);
4151
- f.target.previousSibling.textContent = "", l["n" + p] = "", f.target.previousSibling.focus();
4131
+ p.target.nextSibling != null && p.target.nextSibling.focus();
4132
+ }, c = (p) => {
4133
+ if (!r) return p.preventDefault();
4134
+ if (p.key === "Enter" && p.preventDefault(), p.key === "Backspace") {
4135
+ if (p.preventDefault(), p.target.textContent = "", l[p.target.id] = "", p.target.previousSibling != null) {
4136
+ let v = p.target.previousSibling.id.slice(1);
4137
+ p.target.previousSibling.textContent = "", l["n" + v] = "", p.target.previousSibling.focus();
4152
4138
  }
4153
4139
  l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6;
4154
4140
  }
4155
- }, h = (f) => {
4156
- if (!r) return f.preventDefault();
4141
+ }, m = (p) => {
4142
+ if (!r) return p.preventDefault();
4157
4143
  if (s)
4158
4144
  i && i({ value: l.code, name: d });
4159
- else if (l.code.length === 6 && (f.target.blur(), i && i({ value: l.code, name: d }), o)) {
4145
+ else if (l.code.length === 6 && (p.target.blur(), i && i({ value: l.code, name: d }), o)) {
4160
4146
  l = {
4161
4147
  n1: "",
4162
4148
  n2: "",
@@ -4166,25 +4152,25 @@ function aa({
4166
4152
  n6: "",
4167
4153
  code: ""
4168
4154
  };
4169
- for (let p = 1; p <= 6; p++) {
4170
- let y = document.getElementById("n" + p);
4155
+ for (let v = 1; v <= 6; v++) {
4156
+ let y = document.getElementById("n" + v);
4171
4157
  y && (y.textContent = "");
4172
4158
  }
4173
4159
  }
4174
- }, m = (f) => {
4175
- f.target.textContent = "";
4176
- }, g = (f) => {
4177
- f.preventDefault(), navigator.clipboard.readText().then((p) => {
4160
+ }, f = (p) => {
4161
+ p.target.textContent = "";
4162
+ }, h = (p) => {
4163
+ p.preventDefault(), navigator.clipboard.readText().then((v) => {
4178
4164
  var N;
4179
4165
  var y = /\d+/g;
4180
- let j = (N = p.match(y)) == null ? void 0 : N.toString();
4166
+ let j = (N = v.match(y)) == null ? void 0 : N.toString();
4181
4167
  if (!j) return;
4182
- let S = j.split("");
4183
- for (let R = 1; R <= S.length; R++) {
4184
- let I = document.getElementById("n" + R);
4185
- I && (I.textContent = S[R - 1], l["n" + R] = S[R - 1]);
4168
+ let I = j.split("");
4169
+ for (let R = 1; R <= I.length; R++) {
4170
+ let D = document.getElementById("n" + R);
4171
+ D && (D.textContent = I[R - 1], l["n" + R] = I[R - 1]);
4186
4172
  }
4187
- if (l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6, l.code.length === 6 && (f.target.blur(), i && i({ value: l.code, name: d }), o)) {
4173
+ if (l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6, l.code.length === 6 && (p.target.blur(), i && i({ value: l.code, name: d }), o)) {
4188
4174
  l = {
4189
4175
  n1: "",
4190
4176
  n2: "",
@@ -4195,15 +4181,15 @@ function aa({
4195
4181
  code: ""
4196
4182
  };
4197
4183
  for (let R = 1; R <= 6; R++) {
4198
- let I = document.getElementById("n" + R);
4199
- I && (I.textContent = "");
4184
+ let D = document.getElementById("n" + R);
4185
+ D && (D.textContent = "");
4200
4186
  }
4201
4187
  }
4202
- }).catch((p) => {
4188
+ }).catch((v) => {
4203
4189
  });
4204
4190
  };
4205
- const v = {};
4206
- return v.field = "code", e && (v.className = e), /* @__PURE__ */ n.jsxs("dl", { ...v, children: [
4191
+ const x = {};
4192
+ return x.field = "code", e && (x.className = e), /* @__PURE__ */ n.jsxs("dl", { ...x, children: [
4207
4193
  t ? /* @__PURE__ */ n.jsx("dt", { children: t }) : "",
4208
4194
  /* @__PURE__ */ n.jsxs("div", { children: [
4209
4195
  /* @__PURE__ */ n.jsx(
@@ -4212,9 +4198,9 @@ function aa({
4212
4198
  id: "n1",
4213
4199
  inputMode: "numeric",
4214
4200
  onKeyDown: c,
4215
- onKeyUp: h,
4216
- onFocus: m,
4217
- onPaste: g,
4201
+ onKeyUp: m,
4202
+ onFocus: f,
4203
+ onPaste: h,
4218
4204
  onInput: _,
4219
4205
  contentEditable: !0
4220
4206
  }
@@ -4225,9 +4211,9 @@ function aa({
4225
4211
  id: "n2",
4226
4212
  inputMode: "numeric",
4227
4213
  onKeyDown: c,
4228
- onKeyUp: h,
4229
- onFocus: m,
4230
- onPaste: g,
4214
+ onKeyUp: m,
4215
+ onFocus: f,
4216
+ onPaste: h,
4231
4217
  onInput: _,
4232
4218
  contentEditable: !0
4233
4219
  }
@@ -4238,9 +4224,9 @@ function aa({
4238
4224
  id: "n3",
4239
4225
  inputMode: "numeric",
4240
4226
  onKeyDown: c,
4241
- onKeyUp: h,
4242
- onFocus: m,
4243
- onPaste: g,
4227
+ onKeyUp: m,
4228
+ onFocus: f,
4229
+ onPaste: h,
4244
4230
  onInput: _,
4245
4231
  contentEditable: !0
4246
4232
  }
@@ -4251,9 +4237,9 @@ function aa({
4251
4237
  id: "n4",
4252
4238
  inputMode: "numeric",
4253
4239
  onKeyDown: c,
4254
- onKeyUp: h,
4255
- onFocus: m,
4256
- onPaste: g,
4240
+ onKeyUp: m,
4241
+ onFocus: f,
4242
+ onPaste: h,
4257
4243
  onInput: _,
4258
4244
  contentEditable: !0
4259
4245
  }
@@ -4264,9 +4250,9 @@ function aa({
4264
4250
  id: "n5",
4265
4251
  inputMode: "numeric",
4266
4252
  onKeyDown: c,
4267
- onKeyUp: h,
4268
- onFocus: m,
4269
- onPaste: g,
4253
+ onKeyUp: m,
4254
+ onFocus: f,
4255
+ onPaste: h,
4270
4256
  onInput: _,
4271
4257
  contentEditable: !0
4272
4258
  }
@@ -4277,9 +4263,9 @@ function aa({
4277
4263
  id: "n6",
4278
4264
  inputMode: "numeric",
4279
4265
  onKeyDown: c,
4280
- onKeyUp: h,
4281
- onFocus: m,
4282
- onPaste: g,
4266
+ onKeyUp: m,
4267
+ onFocus: f,
4268
+ onPaste: h,
4283
4269
  onInput: _,
4284
4270
  contentEditable: !0
4285
4271
  }
@@ -4300,28 +4286,28 @@ function ra({
4300
4286
  length: l = 6,
4301
4287
  edit: _ = !0,
4302
4288
  active: c = !0,
4303
- after: h = "",
4304
- show: m = !0,
4305
- view: g,
4306
- onSave: v,
4307
- className: f = ""
4289
+ after: m = "",
4290
+ show: f = !0,
4291
+ view: h,
4292
+ onSave: x,
4293
+ className: p = ""
4308
4294
  }) {
4309
4295
  _ = _ !== void 0 ? _ : !0, c = c !== void 0 ? c : !0;
4310
- let [p, y] = x.useState(t), j = (N) => {
4311
- y(N), a == null || a({ value: N, name: r }), v == null || v({ value: N, name: r });
4296
+ let [v, y] = g.useState(t), j = (N) => {
4297
+ y(N), a == null || a({ value: N, name: r }), x == null || x({ value: N, name: r });
4312
4298
  };
4313
- const S = {};
4314
- return S.field = "color", f && (S.className = f), /* @__PURE__ */ n.jsx(n.Fragment, { children: g === "icon" ? /* @__PURE__ */ n.jsx(
4299
+ const I = {};
4300
+ return I.field = "color", p && (I.className = p), /* @__PURE__ */ n.jsx(n.Fragment, { children: h === "icon" ? /* @__PURE__ */ n.jsx(
4315
4301
  "i",
4316
4302
  {
4317
4303
  "data-icon": "F043"
4318
4304
  }
4319
- ) : /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
4305
+ ) : /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
4320
4306
  i && /* @__PURE__ */ n.jsx("dt", { children: i }),
4321
4307
  /* @__PURE__ */ n.jsx("dd", { children: l > 0 && Array.from(Array(l).keys()).map((N) => /* @__PURE__ */ n.jsx(
4322
4308
  "s",
4323
4309
  {
4324
- active: (Number(N) === Number(p)) + "",
4310
+ active: (Number(N) === Number(v)) + "",
4325
4311
  onClick: () => j(N),
4326
4312
  style: {
4327
4313
  backgroundColor: `var(--color-${N})`
@@ -4332,7 +4318,7 @@ function ra({
4332
4318
  o && /* @__PURE__ */ n.jsx("em", { children: o })
4333
4319
  ] }) });
4334
4320
  }
4335
- const Al = "_o_76l23_1", Ol = "_c_76l23_11", Zl = "__active_76l23_41", Gl = "_as_76l23_94", Wl = "_ap_76l23_97", xe = {
4321
+ const Al = "_o_76l23_1", Ol = "_c_76l23_11", Zl = "__active_76l23_41", Gl = "_as_76l23_94", Wl = "_ap_76l23_97", ge = {
4336
4322
  o: Al,
4337
4323
  c: Ol,
4338
4324
  _active: Zl,
@@ -4351,27 +4337,27 @@ function Pt({
4351
4337
  view: l = "date",
4352
4338
  onValue: _,
4353
4339
  name: c,
4354
- value: h,
4355
- after: m
4340
+ value: m,
4341
+ after: f
4356
4342
  }) {
4357
- let [g, v] = x.useState(
4358
- h === void 0 ? /* @__PURE__ */ new Date() : h
4359
- ), f = !a && r;
4360
- x.useEffect(() => {
4361
- v(h === void 0 ? /* @__PURE__ */ new Date() : h);
4362
- }, [h]);
4363
- let p = (N) => {
4364
- v(N), _ == null || _({ value: N, name: c });
4343
+ let [h, x] = g.useState(
4344
+ m === void 0 ? /* @__PURE__ */ new Date() : m
4345
+ ), p = !a && r;
4346
+ g.useEffect(() => {
4347
+ x(m === void 0 ? /* @__PURE__ */ new Date() : m);
4348
+ }, [m]);
4349
+ let v = (N) => {
4350
+ x(N), _ == null || _({ value: N, name: c });
4365
4351
  }, y = (N) => {
4366
- const R = N.target.getBoundingClientRect(), I = R.left, C = R.bottom, k = R.top;
4367
- Ce.setListener(
4352
+ const R = N.target.getBoundingClientRect(), D = R.left, C = R.bottom, k = R.top;
4353
+ ve.setListener(
4368
4354
  "form",
4369
4355
  /* @__PURE__ */ n.jsx(
4370
4356
  Ul,
4371
4357
  {
4372
- position: { x: I, y: k, b: C },
4373
- onValue: p,
4374
- date: g,
4358
+ position: { x: D, y: k, b: C },
4359
+ onValue: v,
4360
+ date: h,
4375
4361
  max: o,
4376
4362
  min: d,
4377
4363
  className: s
@@ -4382,8 +4368,8 @@ function Pt({
4382
4368
  };
4383
4369
  const j = {};
4384
4370
  j.field = "input", s && (j.className = s);
4385
- const S = {};
4386
- return i && (S.placeholder = i), f ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsx(n.Fragment, { children: l === "icon" ? /* @__PURE__ */ n.jsx(
4371
+ const I = {};
4372
+ return i && (I.placeholder = i), p ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsx(n.Fragment, { children: l === "icon" ? /* @__PURE__ */ n.jsx(
4387
4373
  "i",
4388
4374
  {
4389
4375
  "data-icon": "F043",
@@ -4397,11 +4383,11 @@ function Pt({
4397
4383
  "dd",
4398
4384
  {
4399
4385
  onClick: y,
4400
- ...S,
4386
+ ...I,
4401
4387
  "data-edit": (a && r) + "",
4402
4388
  children: [
4403
- Y.Date(g, "dd.mm.yyyy"),
4404
- m
4389
+ Y.Date(h, "dd.mm.yyyy"),
4390
+ f
4405
4391
  ]
4406
4392
  }
4407
4393
  ),
@@ -4409,54 +4395,54 @@ function Pt({
4409
4395
  ] }) });
4410
4396
  }
4411
4397
  const Ul = ({ date: e, onValue: t, position: a, max: r, min: s, className: i }) => {
4412
- let [o, d] = x.useState(!0), l = /* @__PURE__ */ new Date(), _ = new Date(e), c = {
4398
+ let [o, d] = g.useState(!0), l = /* @__PURE__ */ new Date(), _ = new Date(e), c = {
4413
4399
  y: parseInt(l.getFullYear()),
4414
4400
  d: parseInt(l.getDate()),
4415
4401
  m: parseInt(l.getMonth()) + 1
4416
- }, h = {
4402
+ }, m = {
4417
4403
  y: parseInt(_.getFullYear()),
4418
4404
  d: parseInt(_.getDate()),
4419
4405
  m: parseInt(_.getMonth()) + 1
4420
- }, [m, g] = x.useState({ y: h.y, m: h.m }), v = (w) => {
4406
+ }, [f, h] = g.useState({ y: m.y, m: m.m }), x = (w) => {
4421
4407
  let M = w.getDay();
4422
4408
  return M === 0 && (M = 7), M - 1;
4423
- }, f = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], p = m.m - 1, y = new Date(m.y, p), j = [];
4424
- for (let w = 0; w < v(y); w++)
4409
+ }, p = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], v = f.m - 1, y = new Date(f.y, v), j = [];
4410
+ for (let w = 0; w < x(y); w++)
4425
4411
  j.push(0);
4426
- for (; y.getMonth() === p; )
4412
+ for (; y.getMonth() === v; )
4427
4413
  j.push(y.getDate()), y.setDate(y.getDate() + 1);
4428
- let S = () => {
4414
+ let I = () => {
4429
4415
  d(!1);
4430
4416
  }, N = () => {
4431
- C(m.m + 1, m.y);
4417
+ C(f.m + 1, f.y);
4432
4418
  }, R = () => {
4433
- C(m.m - 1, m.y);
4434
- }, I = (w) => {
4419
+ C(f.m - 1, f.y);
4420
+ }, D = (w) => {
4435
4421
  t(
4436
- m.y + "-" + Y.Number(2, m.m) + "-" + Y.Number(2, w)
4437
- ), S();
4422
+ f.y + "-" + Y.Number(2, f.m) + "-" + Y.Number(2, w)
4423
+ ), I();
4438
4424
  }, C = (w, M) => {
4439
- M = w > 12 ? M + 1 : w < 1 ? M - 1 : M, w = w > 12 ? 1 : w < 1 ? 12 : w, g({ y: M, m: w });
4425
+ M = w > 12 ? M + 1 : w < 1 ? M - 1 : M, w = w > 12 ? 1 : w < 1 ? 12 : w, h({ y: M, m: w });
4440
4426
  };
4441
- const k = (w) => c.y === m.y && c.m === m.m && c.d === w ? { "data-active": "true" } : {}, F = (w) => h.y === m.y && h.m === m.m && h.d === w ? { "data-current": "true" } : {}, E = (w) => {
4427
+ const k = (w) => c.y === f.y && c.m === f.m && c.d === w ? { "data-active": "true" } : {}, F = (w) => m.y === f.y && m.m === f.m && m.d === w ? { "data-current": "true" } : {}, S = (w) => {
4442
4428
  let M = !0;
4443
4429
  if (r) {
4444
- let W = r.getTime(), Q = new Date(m.y, m.m - 1, w).getTime();
4430
+ let W = r.getTime(), Q = new Date(f.y, f.m - 1, w).getTime();
4445
4431
  W < Q && (M = !1);
4446
4432
  }
4447
4433
  if (s) {
4448
- let W = s.getTime(), Q = new Date(m.y, m.m - 1, w).getTime();
4434
+ let W = s.getTime(), Q = new Date(f.y, f.m - 1, w).getTime();
4449
4435
  W > Q && (M = !1);
4450
4436
  }
4451
4437
  return M;
4452
4438
  };
4453
- let L = window.innerHeight - a.y < 320 ? a.y - 312 : a.b, D = window.innerWidth - a.x < 265 ? a.x - 235 : a.x;
4439
+ let L = window.innerHeight - a.y < 320 ? a.y - 312 : a.b, E = window.innerWidth - a.x < 265 ? a.x - 235 : a.x;
4454
4440
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: o ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4455
4441
  /* @__PURE__ */ n.jsx(
4456
4442
  "div",
4457
4443
  {
4458
- className: xe.o,
4459
- onClick: () => S()
4444
+ className: ge.o,
4445
+ onClick: () => I()
4460
4446
  },
4461
4447
  (/* @__PURE__ */ new Date()).getTime()
4462
4448
  ),
@@ -4464,10 +4450,10 @@ const Ul = ({ date: e, onValue: t, position: a, max: r, min: s, className: i })
4464
4450
  "div",
4465
4451
  {
4466
4452
  className: [
4467
- xe.c,
4453
+ ge.c,
4468
4454
  i && i + "-backdrop"
4469
4455
  ].join(" "),
4470
- style: { top: L + "px", left: D + "px" },
4456
+ style: { top: L + "px", left: E + "px" },
4471
4457
  children: [
4472
4458
  /* @__PURE__ */ n.jsxs("s", { children: [
4473
4459
  /* @__PURE__ */ n.jsx("i", { onClick: R, children: /* @__PURE__ */ n.jsx(
@@ -4482,9 +4468,9 @@ const Ul = ({ date: e, onValue: t, position: a, max: r, min: s, className: i })
4482
4468
  }
4483
4469
  ) }),
4484
4470
  /* @__PURE__ */ n.jsxs("h2", { children: [
4485
- Y.Month(m.m).name,
4471
+ Y.Month(f.m).name,
4486
4472
  " ",
4487
- m.y
4473
+ f.y
4488
4474
  ] }),
4489
4475
  /* @__PURE__ */ n.jsx("i", { onClick: N, children: /* @__PURE__ */ n.jsx(
4490
4476
  "svg",
@@ -4499,13 +4485,13 @@ const Ul = ({ date: e, onValue: t, position: a, max: r, min: s, className: i })
4499
4485
  ) })
4500
4486
  ] }),
4501
4487
  /* @__PURE__ */ n.jsxs("div", { "grid-calendar": "", children: [
4502
- f.map((w, M) => /* @__PURE__ */ n.jsx("p", { children: w }, "v" + M)),
4503
- j.map((w, M) => /* @__PURE__ */ n.jsx("span", { children: w !== 0 && E(w) ? /* @__PURE__ */ n.jsx(
4488
+ p.map((w, M) => /* @__PURE__ */ n.jsx("p", { children: w }, "v" + M)),
4489
+ j.map((w, M) => /* @__PURE__ */ n.jsx("span", { children: w !== 0 && S(w) ? /* @__PURE__ */ n.jsx(
4504
4490
  "b",
4505
4491
  {
4506
4492
  ...k(w),
4507
4493
  ...F(w),
4508
- onClick: () => I(w),
4494
+ onClick: () => D(w),
4509
4495
  children: w
4510
4496
  }
4511
4497
  ) : /* @__PURE__ */ n.jsx("p", { ...k(w), ...F(w), children: w !== 0 ? w : "" }) }, M))
@@ -4527,29 +4513,29 @@ function At({
4527
4513
  show: l = !0,
4528
4514
  active: _ = !0,
4529
4515
  after: c = "",
4530
- view: h,
4531
- modal: m,
4532
- module: g,
4533
- options: v,
4534
- className: f
4516
+ view: m,
4517
+ modal: f,
4518
+ module: h,
4519
+ options: x,
4520
+ className: p
4535
4521
  }) {
4536
- let [p, y] = x.useState(e), j = (R) => {
4537
- if (!(d && _) || !m) return;
4538
- let I = m.split(".");
4539
- Ne.Open(I[0], I[1], {
4522
+ let [v, y] = g.useState(e), j = (R) => {
4523
+ if (!(d && _) || !f) return;
4524
+ let D = f.split(".");
4525
+ Ne.Open(D[0], D[1], {
4540
4526
  callback: (C) => {
4541
4527
  t && t({ value: C, name: a }), y(C);
4542
4528
  },
4543
4529
  onValue: t,
4544
- options: v,
4530
+ options: x,
4545
4531
  name: a,
4546
4532
  value: e
4547
4533
  });
4548
4534
  };
4549
- const S = {};
4550
- S.field = "input", f && (S.className = f);
4535
+ const I = {};
4536
+ I.field = "input", p && (I.className = p);
4551
4537
  const N = {};
4552
- return r && (N.placeholder = r), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
4538
+ return r && (N.placeholder = r), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
4553
4539
  s && /* @__PURE__ */ n.jsx("dt", { children: s }),
4554
4540
  /* @__PURE__ */ n.jsx(
4555
4541
  "dd",
@@ -4558,7 +4544,7 @@ function At({
4558
4544
  onClick: j,
4559
4545
  edit: (d && _) + "",
4560
4546
  "data-after": c,
4561
- children: p
4547
+ children: v
4562
4548
  }
4563
4549
  ),
4564
4550
  i && /* @__PURE__ */ n.jsx("em", { children: i })
@@ -4576,48 +4562,48 @@ function Ot({
4576
4562
  active: l = !0,
4577
4563
  after: _ = "",
4578
4564
  show: c = !0,
4579
- course: h = 100,
4580
- view: m,
4581
- type: g,
4582
- onSave: v,
4583
- className: f = "",
4584
- isClear: p = !1
4565
+ course: m = 100,
4566
+ view: f,
4567
+ type: h,
4568
+ onSave: x,
4569
+ className: p = "",
4570
+ isClear: v = !1
4585
4571
  }) {
4586
4572
  let y = !!(o && (e === "" || e === void 0));
4587
- e = Y.isNumeric(e) ? Number(e) / h : 0;
4588
- let j = (D) => g === "multi" ? D.replace(/[^+\d.+-]/g, "") : D.replace(/[^+\d.]/g, ""), S = (D, w) => {
4573
+ e = Y.isNumeric(e) ? Number(e) / m : 0;
4574
+ let j = (E) => h === "multi" ? E.replace(/[^+\d.+-]/g, "") : E.replace(/[^+\d.]/g, ""), I = (E, w) => {
4589
4575
  let M = document.createRange(), W = window.getSelection();
4590
- M.setStart(w.childNodes[0], D), M.collapse(!0), W.removeAllRanges(), W.addRange(M), w.focus();
4591
- }, N = (D) => {
4576
+ M.setStart(w.childNodes[0], E), M.collapse(!0), W.removeAllRanges(), W.addRange(M), w.focus();
4577
+ }, N = (E) => {
4592
4578
  t == null || t({
4593
- value: j(D.target.textContent) * h,
4579
+ value: j(E.target.textContent) * m,
4594
4580
  name: a
4595
- }), D.target.textContent = j(D.target.textContent), D.target.textContent.length > 0 && S(D.target.textContent.length, D.target);
4596
- }, R = (D) => {
4597
- K.Blur(D), D.target.textContent === "" && (D.target.textContent = 0), v == null || v({ value: j(D.target.textContent) * h, name: a }), t == null || t({
4598
- value: j(D.target.textContent) * h,
4581
+ }), E.target.textContent = j(E.target.textContent), E.target.textContent.length > 0 && I(E.target.textContent.length, E.target);
4582
+ }, R = (E) => {
4583
+ z.Blur(E), E.target.textContent === "" && (E.target.textContent = 0), x == null || x({ value: j(E.target.textContent) * m, name: a }), t == null || t({
4584
+ value: j(E.target.textContent) * m,
4599
4585
  name: a
4600
- }), D.target.textContent = Y.Money(D.target.textContent);
4601
- }, I = (D) => {
4602
- D.target.textContent = j(D.target.textContent);
4603
- }, C = (D) => {
4604
- D.currentTarget.previousElementSibling.textContent = "", t == null || t({
4586
+ }), E.target.textContent = Y.Money(E.target.textContent);
4587
+ }, D = (E) => {
4588
+ E.target.textContent = j(E.target.textContent);
4589
+ }, C = (E) => {
4590
+ E.currentTarget.previousElementSibling.textContent = "", t == null || t({
4605
4591
  value: 0,
4606
4592
  name: a
4607
4593
  });
4608
- }, k = (D) => {
4609
- D.key === "Enter" && D.preventDefault();
4610
- }, F = (D) => {
4611
- D.preventDefault(), navigator.clipboard.readText().then((w) => {
4594
+ }, k = (E) => {
4595
+ E.key === "Enter" && E.preventDefault();
4596
+ }, F = (E) => {
4597
+ E.preventDefault(), navigator.clipboard.readText().then((w) => {
4612
4598
  w = w.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, w);
4613
4599
  }).catch((w) => {
4614
4600
  });
4615
4601
  };
4616
4602
  if (!(d && l) && !c || !(d && l) && y) return "";
4617
- const E = {};
4618
- E.field = "input", f && (E.className = f);
4603
+ const S = {};
4604
+ S.field = "input", p && (S.className = p);
4619
4605
  const L = {};
4620
- return L.inputMode = "decimal", r && (L.placeholder = r), d && l && (L.edit = ""), /* @__PURE__ */ n.jsxs("dl", { ...E, children: [
4606
+ return L.inputMode = "decimal", r && (L.placeholder = r), d && l && (L.edit = ""), /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
4621
4607
  s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
4622
4608
  /* @__PURE__ */ n.jsx(
4623
4609
  "dd",
@@ -4627,14 +4613,14 @@ function Ot({
4627
4613
  onPaste: F,
4628
4614
  onBlur: R,
4629
4615
  onKeyDown: k,
4630
- onFocus: I,
4631
- contentEditable: d && l ? K.ContentEditable : "false",
4616
+ onFocus: D,
4617
+ contentEditable: d && l ? z.ContentEditable : "false",
4632
4618
  suppressContentEditableWarning: !0,
4633
4619
  "data-after": _,
4634
4620
  children: !r || e ? Y.Money(e) : ""
4635
4621
  }
4636
4622
  ),
4637
- p && /* @__PURE__ */ n.jsx("svg", { "action-type": "delete", onClick: C, viewBox: "0 0 24 24", children: /* @__PURE__ */ n.jsx("path", { d: "M17 6L6 17M6 6L17 17" }) }),
4623
+ v && /* @__PURE__ */ n.jsx("svg", { "action-type": "delete", onClick: C, viewBox: "0 0 24 24", children: /* @__PURE__ */ n.jsx("path", { d: "M17 6L6 17M6 6L17 17" }) }),
4638
4624
  i ? /* @__PURE__ */ n.jsx("em", { children: i }) : ""
4639
4625
  ] });
4640
4626
  }
@@ -4651,63 +4637,63 @@ function sa({
4651
4637
  className: _,
4652
4638
  after: c
4653
4639
  }) {
4654
- let [h, m] = x.useState(e);
4655
- x.useEffect(() => {
4656
- m(e);
4640
+ let [m, f] = g.useState(e);
4641
+ g.useEffect(() => {
4642
+ f(e);
4657
4643
  }, [e]);
4658
- let g = (p) => {
4659
- m(p), t && t({ value: p, name: a });
4660
- }, v = (p) => {
4644
+ let h = (v) => {
4645
+ f(v), t && t({ value: v, name: a });
4646
+ }, x = (v) => {
4661
4647
  if (!i || !o) return;
4662
- const y = p.target.getBoundingClientRect(), j = y.left, S = y.top;
4663
- Ce.setListener(
4648
+ const y = v.target.getBoundingClientRect(), j = y.left, I = y.top;
4649
+ ve.setListener(
4664
4650
  "form",
4665
4651
  /* @__PURE__ */ n.jsx(
4666
- Kl,
4652
+ zl,
4667
4653
  {
4668
- position: { x: j, y: S },
4669
- onValue: g,
4670
- date: h
4654
+ position: { x: j, y: I },
4655
+ onValue: h,
4656
+ date: m
4671
4657
  },
4672
4658
  (/* @__PURE__ */ new Date()).getTime()
4673
4659
  )
4674
4660
  );
4675
4661
  };
4676
- const f = {};
4677
- return l && (f.placeholder = l), r === "icon" ? /* @__PURE__ */ n.jsx("i", { "data-icon": "F043", onClick: v }) : /* @__PURE__ */ n.jsxs("dl", { children: [
4662
+ const p = {};
4663
+ return l && (p.placeholder = l), r === "icon" ? /* @__PURE__ */ n.jsx("i", { "data-icon": "F043", onClick: x }) : /* @__PURE__ */ n.jsxs("dl", { children: [
4678
4664
  d && /* @__PURE__ */ n.jsx("dt", { children: d }),
4679
4665
  /* @__PURE__ */ n.jsx(
4680
4666
  "dd",
4681
4667
  {
4682
- onClick: v,
4683
- ...f,
4684
- children: Y.Date(h, "mm.yyyy")
4668
+ onClick: x,
4669
+ ...p,
4670
+ children: Y.Date(m, "mm.yyyy")
4685
4671
  }
4686
4672
  ),
4687
4673
  s && /* @__PURE__ */ n.jsx("em", { children: s })
4688
4674
  ] });
4689
4675
  }
4690
- const Kl = (e) => {
4691
- let [t, a] = x.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
4676
+ const zl = (e) => {
4677
+ let [t, a] = g.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
4692
4678
  y: parseInt(r.getFullYear()),
4693
4679
  m: parseInt(r.getMonth()) + 1
4694
4680
  }, o = {
4695
4681
  y: parseInt(s.getFullYear()),
4696
4682
  m: parseInt(s.getMonth()) + 1
4697
- }, [d, l] = x.useState(o.y), _ = () => {
4683
+ }, [d, l] = g.useState(o.y), _ = () => {
4698
4684
  a(!1);
4699
4685
  }, c = () => {
4700
4686
  l(d + 1);
4701
- }, h = () => {
4687
+ }, m = () => {
4702
4688
  l(d - 1);
4703
- }, m = (y) => {
4689
+ }, f = (y) => {
4704
4690
  e.onValue(d + "-" + Y.Number(2, y)), _();
4705
- }, g = (y) => i.y === o.y && i.m === y ? "_FFEB3B" : "", v = Array(12).fill("").map((y, j) => j + 1), f = 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;
4691
+ }, h = (y) => i.y === o.y && i.m === y ? "_FFEB3B" : "", x = Array(12).fill("").map((y, j) => j + 1), p = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, v = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
4706
4692
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4707
4693
  /* @__PURE__ */ n.jsx(
4708
4694
  "div",
4709
4695
  {
4710
- className: xe.o,
4696
+ className: ge.o,
4711
4697
  onClick: () => _()
4712
4698
  },
4713
4699
  (/* @__PURE__ */ new Date()).getTime()
@@ -4715,11 +4701,11 @@ const Kl = (e) => {
4715
4701
  /* @__PURE__ */ n.jsxs(
4716
4702
  "div",
4717
4703
  {
4718
- className: xe.c,
4719
- style: { top: f + "px", left: p + "px" },
4704
+ className: ge.c,
4705
+ style: { top: p + "px", left: v + "px" },
4720
4706
  children: [
4721
4707
  /* @__PURE__ */ n.jsxs("s", { children: [
4722
- /* @__PURE__ */ n.jsx("i", { onClick: h, children: /* @__PURE__ */ n.jsx(
4708
+ /* @__PURE__ */ n.jsx("i", { onClick: m, children: /* @__PURE__ */ n.jsx(
4723
4709
  "svg",
4724
4710
  {
4725
4711
  width: "16",
@@ -4743,13 +4729,13 @@ const Kl = (e) => {
4743
4729
  }
4744
4730
  ) })
4745
4731
  ] }),
4746
- /* @__PURE__ */ n.jsx("div", { "grid-month": "", children: v.map((y, j) => /* @__PURE__ */ n.jsx(
4732
+ /* @__PURE__ */ n.jsx("div", { "grid-month": "", children: x.map((y, j) => /* @__PURE__ */ n.jsx(
4747
4733
  "span",
4748
4734
  {
4749
4735
  onClick: () => {
4750
- m(y);
4736
+ f(y);
4751
4737
  },
4752
- color: g(y),
4738
+ color: h(y),
4753
4739
  children: /* @__PURE__ */ n.jsx("b", { children: Y.Month(y).abc })
4754
4740
  },
4755
4741
  j
@@ -4771,33 +4757,33 @@ function ia({
4771
4757
  edit: l = !0,
4772
4758
  active: _ = !0,
4773
4759
  after: c = "",
4774
- show: h = !0,
4775
- maxLength: m,
4776
- view: g,
4777
- onSave: v,
4778
- className: f = "",
4779
- isCopy: p = !0
4760
+ show: m = !0,
4761
+ maxLength: f,
4762
+ view: h,
4763
+ onSave: x,
4764
+ className: p = "",
4765
+ isCopy: v = !0
4780
4766
  }) {
4781
- let [y, j] = x.useState(!1);
4767
+ let [y, j] = g.useState(!1);
4782
4768
  y = l ? !0 : y;
4783
- let S = (E) => {
4784
- a == null || a({ value: E.target.innerText, name: r });
4785
- }, N = (E) => {
4786
- m && E.target.textContent.trim().length >= m && E.key !== "Backspace" && E.preventDefault(), E.key === "Enter" && E.preventDefault();
4787
- }, R = (E) => {
4788
- p && (E.preventDefault(), navigator.clipboard.writeText(E.target.textContent.trim()).then(
4769
+ let I = (S) => {
4770
+ a == null || a({ value: S.target.innerText, name: r });
4771
+ }, N = (S) => {
4772
+ f && S.target.textContent.trim().length >= f && S.key !== "Backspace" && S.preventDefault(), S.key === "Enter" && S.preventDefault();
4773
+ }, R = (S) => {
4774
+ v && (S.preventDefault(), navigator.clipboard.writeText(S.target.textContent.trim()).then(
4789
4775
  function() {
4790
- me.Copy("Данные в буфер обмене");
4776
+ fe.Copy("Данные в буфер обмене");
4791
4777
  },
4792
4778
  function(L) {
4793
4779
  }
4794
4780
  ));
4795
- }, I = (E) => {
4796
- E.preventDefault(), navigator.clipboard.readText().then((L) => {
4797
- if (m) {
4798
- let D = E.target.textContent.length;
4799
- if (D >= m) return;
4800
- m -= D, L = L.slice(0, m);
4781
+ }, D = (S) => {
4782
+ S.preventDefault(), navigator.clipboard.readText().then((L) => {
4783
+ if (f) {
4784
+ let E = S.target.textContent.length;
4785
+ if (E >= f) return;
4786
+ f -= E, L = L.slice(0, f);
4801
4787
  }
4802
4788
  window.document.execCommand(
4803
4789
  "insertText",
@@ -4808,25 +4794,25 @@ function ia({
4808
4794
  });
4809
4795
  };
4810
4796
  if (d) return /* @__PURE__ */ n.jsx(n.Fragment, {});
4811
- if (!(l && _) && !h) return "";
4797
+ if (!(l && _) && !m) return "";
4812
4798
  const C = {};
4813
- C.field = "notes", f && (C.className = f);
4799
+ C.field = "notes", p && (C.className = p);
4814
4800
  const k = {};
4815
4801
  s && (k.placeholder = s), l && _ && (k.edit = ""), y && (k.open = "");
4816
- const F = (E) => {
4817
- K.Blur(E), v == null || v({ value: E.target.textContent.trim(), name: r });
4802
+ const F = (S) => {
4803
+ z.Blur(S), x == null || x({ value: S.target.textContent.trim(), name: r });
4818
4804
  };
4819
4805
  return /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
4820
4806
  i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "",
4821
4807
  /* @__PURE__ */ n.jsx(
4822
4808
  "dd",
4823
4809
  {
4824
- onPaste: I,
4825
- onInput: S,
4810
+ onPaste: D,
4811
+ onInput: I,
4826
4812
  onBlur: F,
4827
4813
  onKeyDown: N,
4828
4814
  onContextMenu: R,
4829
- contentEditable: l && _ ? K.ContentEditable : "false",
4815
+ contentEditable: l && _ ? z.ContentEditable : "false",
4830
4816
  suppressContentEditableWarning: !0,
4831
4817
  ...k,
4832
4818
  children: t
@@ -4848,48 +4834,48 @@ function Zt({
4848
4834
  hide: l,
4849
4835
  value: _,
4850
4836
  placeholder: c,
4851
- className: h,
4852
- maxLength: m,
4853
- name: g,
4854
- after: v = "",
4855
- before: f = "",
4856
- view: p
4837
+ className: m,
4838
+ maxLength: f,
4839
+ name: h,
4840
+ after: x = "",
4841
+ before: p = "",
4842
+ view: v
4857
4843
  }) {
4858
4844
  s = s !== void 0 ? s : !0, a = a !== void 0 ? a : !0, l = !!(l && (_ === "" || _ === void 0)) && !(s && a), c = c !== void 0 ? c : "", r = r !== void 0 ? r : 99;
4859
- let j = !1, S = (E) => {
4860
- e == null || e({ value: E.target.textContent, name: g });
4861
- }, N = (E) => {
4862
- if (!(j && E.which === 86)) {
4863
- if (E.which === 17 || E.which === 91) return j = !0;
4864
- E.key !== "Backspace" && (E.target.textContent.length === r && E.preventDefault(), E.key === "Enter" && E.preventDefault(), isNaN(E.key) && E.preventDefault());
4845
+ let j = !1, I = (S) => {
4846
+ e == null || e({ value: S.target.textContent, name: h });
4847
+ }, N = (S) => {
4848
+ if (!(j && S.which === 86)) {
4849
+ if (S.which === 17 || S.which === 91) return j = !0;
4850
+ S.key !== "Backspace" && (S.target.textContent.length === r && S.preventDefault(), S.key === "Enter" && S.preventDefault(), isNaN(S.key) && S.preventDefault());
4865
4851
  }
4866
- }, R = (E) => {
4867
- if (E.which === 17 || E.which === 91) return j = !1;
4868
- }, I = (E) => {
4869
- E.preventDefault(), navigator.clipboard.readText().then((L) => {
4870
- if (L = L.replace(/(?!^\+|\d)./g, ""), m) {
4871
- let D = E.target.textContent.length;
4872
- if (D >= m) return;
4873
- m -= D, L = L.slice(0, m);
4852
+ }, R = (S) => {
4853
+ if (S.which === 17 || S.which === 91) return j = !1;
4854
+ }, D = (S) => {
4855
+ S.preventDefault(), navigator.clipboard.readText().then((L) => {
4856
+ if (L = L.replace(/(?!^\+|\d)./g, ""), f) {
4857
+ let E = S.target.textContent.length;
4858
+ if (E >= f) return;
4859
+ f -= E, L = L.slice(0, f);
4874
4860
  }
4875
4861
  window.document.execCommand("insertText", !1, "" + L);
4876
4862
  }).catch((L) => {
4877
4863
  });
4878
4864
  };
4879
- const C = (E) => {
4880
- K.Blur(E), t == null || t({ value: E.target.textContent, name: g });
4865
+ const C = (S) => {
4866
+ z.Blur(S), t == null || t({ value: S.target.textContent, name: h });
4881
4867
  }, k = {};
4882
- k.field = "input", h && (k.className = h);
4868
+ k.field = "input", m && (k.className = m);
4883
4869
  let F = {};
4884
- return s && a ? (F.edit = "true", F.contentEditable = K.ContentEditable) : F.contentEditable = "false", F.inputMode = "decimal", c && (F.placeholder = c), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...k, children: [
4870
+ return s && a ? (F.edit = "true", F.contentEditable = z.ContentEditable) : F.contentEditable = "false", F.inputMode = "decimal", c && (F.placeholder = c), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...k, children: [
4885
4871
  i && /* @__PURE__ */ n.jsx("dt", { children: i }),
4886
- f,
4872
+ p,
4887
4873
  /* @__PURE__ */ n.jsx(
4888
4874
  "dd",
4889
4875
  {
4890
4876
  ...F,
4891
- onPaste: I,
4892
- onInput: S,
4877
+ onPaste: D,
4878
+ onInput: I,
4893
4879
  onBlur: C,
4894
4880
  onKeyDown: N,
4895
4881
  onKeyUp: R,
@@ -4897,7 +4883,7 @@ function Zt({
4897
4883
  children: _
4898
4884
  }
4899
4885
  ),
4900
- v,
4886
+ x,
4901
4887
  o && /* @__PURE__ */ n.jsx("em", { children: o })
4902
4888
  ] });
4903
4889
  }
@@ -4913,27 +4899,27 @@ function oa({
4913
4899
  edit: l = !0,
4914
4900
  active: _ = !0,
4915
4901
  reload: c = !1,
4916
- native: h = !1,
4917
- isShow: m = !1,
4918
- maxLength: g,
4919
- eyes: v = [],
4920
- after: f = ""
4902
+ native: m = !1,
4903
+ isShow: f = !1,
4904
+ maxLength: h,
4905
+ eyes: x = [],
4906
+ after: p = ""
4921
4907
  }) {
4922
- const [p, y] = x.useState(m);
4908
+ const [v, y] = g.useState(f);
4923
4909
  let j = (k) => {
4924
4910
  t && t({
4925
4911
  value: k.target.textContent,
4926
4912
  name: r,
4927
4913
  reload: c
4928
4914
  });
4929
- }, S = (k) => {
4915
+ }, I = (k) => {
4930
4916
  k.key === "Enter" && k.preventDefault();
4931
4917
  }, N = (k) => {
4932
4918
  k.preventDefault(), navigator.clipboard.readText().then((F) => {
4933
- if (g) {
4934
- let E = k.target.textContent.length;
4935
- if (E >= g) return;
4936
- g -= E, F = F.slice(0, g);
4919
+ if (h) {
4920
+ let S = k.target.textContent.length;
4921
+ if (S >= h) return;
4922
+ h -= S, F = F.slice(0, h);
4937
4923
  }
4938
4924
  window.document.execCommand(
4939
4925
  "insertText",
@@ -4943,28 +4929,28 @@ function oa({
4943
4929
  }).catch((F) => {
4944
4930
  });
4945
4931
  }, R = (k) => {
4946
- K.Blur(k), a == null || a({ value: k.target.textContent.trim(), name: r });
4932
+ z.Blur(k), a == null || a({ value: k.target.textContent.trim(), name: r });
4947
4933
  };
4948
- const I = {};
4949
- I.field = "password", p && (I.show = ""), i && (I.className = i);
4934
+ const D = {};
4935
+ D.field = "password", v && (D.show = ""), i && (D.className = i);
4950
4936
  const C = {};
4951
- return s && (C.placeholder = s), h ? "" : /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
4937
+ return s && (C.placeholder = s), m ? "" : /* @__PURE__ */ n.jsxs("dl", { ...D, children: [
4952
4938
  o ? /* @__PURE__ */ n.jsx("dt", { children: o }) : "",
4953
4939
  /* @__PURE__ */ n.jsx(
4954
4940
  "dd",
4955
4941
  {
4956
4942
  onPaste: N,
4957
4943
  onInput: j,
4958
- onKeyDown: S,
4944
+ onKeyDown: I,
4959
4945
  onBlur: R,
4960
- contentEditable: l && _ ? K.ContentEditable : "false",
4946
+ contentEditable: l && _ ? z.ContentEditable : "false",
4961
4947
  ...C,
4962
4948
  suppressContentEditableWarning: !0,
4963
4949
  children: e
4964
4950
  }
4965
4951
  ),
4966
- v[0] && /* @__PURE__ */ n.jsx("i", { onClick: () => y(!p), children: p ? v[1] : v[0] }),
4967
- f,
4952
+ x[0] && /* @__PURE__ */ n.jsx("i", { onClick: () => y(!v), children: v ? x[1] : x[0] }),
4953
+ p,
4968
4954
  d ? /* @__PURE__ */ n.jsx("em", { children: d }) : ""
4969
4955
  ] });
4970
4956
  }
@@ -6362,68 +6348,68 @@ function Gt({
6362
6348
  edit: l = !0,
6363
6349
  active: _ = !0,
6364
6350
  after: c = "",
6365
- show: h = !0,
6366
- view: m,
6367
- className: g = ""
6351
+ show: m = !0,
6352
+ view: f,
6353
+ className: h = ""
6368
6354
  }) {
6369
- l = l !== void 0 ? l : !0, _ = _ !== void 0 ? _ : !0, d = !!(d && (e === "" || e === void 0)) && !(l && _), x.useRef(null);
6370
- let f = "+_(___) ___-__-__", p = !0, y = 0, j = (D, w) => {
6355
+ l = l !== void 0 ? l : !0, _ = _ !== void 0 ? _ : !0, d = !!(d && (e === "" || e === void 0)) && !(l && _), g.useRef(null);
6356
+ let p = "+_(___) ___-__-__", v = !0, y = 0, j = (E, w) => {
6371
6357
  let M = document.createRange(), W = window.getSelection();
6372
- M.setStart(w.childNodes[0], D), M.collapse(!0), W.removeAllRanges(), W.addRange(M), w.focus();
6373
- }, S = (D) => {
6374
- let w = R(D.target.textContent);
6375
- D.target.textContent = w.q, w.i = w.q.lastIndexOf(w.v.substr(-1)), w.i < w.q.length && w.q !== f ? w.i++ : w.i = w.q.indexOf("_"), j(w.i, D.target), t && t({ value: w.q.replace(/\D/g, ""), name: r });
6376
- }, N = (D) => {
6377
- D.preventDefault(), navigator.clipboard.readText().then((w) => {
6358
+ M.setStart(w.childNodes[0], E), M.collapse(!0), W.removeAllRanges(), W.addRange(M), w.focus();
6359
+ }, I = (E) => {
6360
+ let w = R(E.target.textContent);
6361
+ E.target.textContent = w.q, w.i = w.q.lastIndexOf(w.v.substr(-1)), w.i < w.q.length && w.q !== p ? w.i++ : w.i = w.q.indexOf("_"), j(w.i, E.target), t && t({ value: w.q.replace(/\D/g, ""), name: r });
6362
+ }, N = (E) => {
6363
+ E.preventDefault(), navigator.clipboard.readText().then((w) => {
6378
6364
  window.document.execCommand("insertText", !1, w);
6379
6365
  }).catch((w) => {
6380
6366
  });
6381
- }, R = (D) => {
6382
- let w = 0, M = "", W = D.replace(/\D/g, "");
6383
- W === "" && (p = !0);
6384
- let Q = W.split(""), le = "";
6367
+ }, R = (E) => {
6368
+ let w = 0, M = "", W = E.replace(/\D/g, "");
6369
+ W === "" && (v = !0);
6370
+ let Q = W.split(""), oe = "";
6385
6371
  Q.forEach(($e) => {
6386
- p && (le += $e, Ct[le] !== void 0 && p ? (p = !1, f = Ct[le].mask.replace(new RegExp("[0-9]", "g"), "_"), M = Ct[le].code) : (p && (y = ("" + le).length, f = `+${le}_(___) ___-__-__`.replace(
6372
+ v && (oe += $e, Ct[oe] !== void 0 && v ? (v = !1, p = Ct[oe].mask.replace(new RegExp("[0-9]", "g"), "_"), M = Ct[oe].code) : (v && (y = ("" + oe).length, p = `+${oe}_(___) ___-__-__`.replace(
6387
6373
  new RegExp("[0-9]", "g"),
6388
6374
  "_"
6389
- ), M = ""), y > ("" + le).length && (p = !0, f = `+${le}_(___) ___-__-__`.replace(
6375
+ ), M = ""), y > ("" + oe).length && (v = !0, p = `+${oe}_(___) ___-__-__`.replace(
6390
6376
  new RegExp("[0-9]", "g"),
6391
6377
  "_"
6392
6378
  ), M = "")));
6393
6379
  });
6394
- let ye = f.replace(/\D/g, "");
6395
- return ye.length >= W.length && (W = ye), { q: f.replace(/[_\d]/g, function() {
6380
+ let je = p.replace(/\D/g, "");
6381
+ return je.length >= W.length && (W = je), { q: p.replace(/[_\d]/g, function() {
6396
6382
  return W.charAt(w++) || "_";
6397
6383
  }), i: w, v: W, f: M };
6398
- }, I = (D) => {
6399
- D.preventDefault(), navigator.clipboard.writeText(D.target.textContent.replace(/\D/g, "")).then(
6384
+ }, D = (E) => {
6385
+ E.preventDefault(), navigator.clipboard.writeText(E.target.textContent.replace(/\D/g, "")).then(
6400
6386
  function() {
6401
- me.Copy("Данные в буфер обмене");
6387
+ fe.Copy("Данные в буфер обмене");
6402
6388
  },
6403
6389
  function(w) {
6404
6390
  }
6405
6391
  );
6406
- }, C = R(e), k = (D) => {
6407
- D.key === "Enter" && D.preventDefault();
6392
+ }, C = R(e), k = (E) => {
6393
+ E.key === "Enter" && E.preventDefault();
6408
6394
  };
6409
- const F = (D) => {
6410
- K.Blur(D), a && a({
6411
- value: D.target.textContent.replace(/\D/g, ""),
6395
+ const F = (E) => {
6396
+ z.Blur(E), a && a({
6397
+ value: E.target.textContent.replace(/\D/g, ""),
6412
6398
  name: r
6413
6399
  });
6414
- }, E = {};
6415
- E.field = "input", g && (E.className = g);
6400
+ }, S = {};
6401
+ S.field = "input", h && (S.className = h);
6416
6402
  let L = {};
6417
- return l && _ ? (L.edit = "true", L.contentEditable = K.ContentEditable) : L.contentEditable = "false", s && (L.placeholder = s), c && (L.after = c), d ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...E, children: [
6403
+ return l && _ ? (L.edit = "true", L.contentEditable = z.ContentEditable) : L.contentEditable = "false", s && (L.placeholder = s), c && (L.after = c), d ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
6418
6404
  i && /* @__PURE__ */ n.jsx("dt", { children: i }),
6419
6405
  /* @__PURE__ */ n.jsx(
6420
6406
  "dd",
6421
6407
  {
6422
6408
  ...L,
6423
6409
  onPaste: N,
6424
- onInput: S,
6410
+ onInput: I,
6425
6411
  onKeyDown: k,
6426
- onContextMenu: I,
6412
+ onContextMenu: D,
6427
6413
  onBlur: F,
6428
6414
  suppressContentEditableWarning: !0,
6429
6415
  children: C.q
@@ -6443,9 +6429,9 @@ const la = ({
6443
6429
  onValue: d,
6444
6430
  maxLength: l = 20
6445
6431
  }) => {
6446
- let _ = 0, c = x.useRef({
6432
+ let _ = 0, c = g.useRef({
6447
6433
  textContent: o
6448
- }), h = () => {
6434
+ }), m = () => {
6449
6435
  c.current.textContent.trim().length === 0 && (c.current.textContent = ""), clearTimeout(_), _ = setTimeout(
6450
6436
  () => {
6451
6437
  var j;
@@ -6453,48 +6439,48 @@ const la = ({
6453
6439
  },
6454
6440
  a
6455
6441
  );
6456
- }, m = () => {
6442
+ }, f = () => {
6457
6443
  c.current && (c.current.textContent = ""), d("");
6458
- }, g = (j) => {
6444
+ }, h = (j) => {
6459
6445
  l && j.target.textContent.trim().length >= l && j.key !== "Backspace" && j.preventDefault(), j.key === "Enter" && j.preventDefault();
6460
- }, v = (j) => {
6461
- j.preventDefault(), navigator.clipboard.readText().then((S) => {
6446
+ }, x = (j) => {
6447
+ j.preventDefault(), navigator.clipboard.readText().then((I) => {
6462
6448
  if (l) {
6463
6449
  let N = j.target.textContent.length;
6464
6450
  if (N >= l) return;
6465
- l -= N, S = S.slice(0, l);
6451
+ l -= N, I = I.slice(0, l);
6466
6452
  }
6467
6453
  window.document.execCommand(
6468
6454
  "insertText",
6469
6455
  !1,
6470
- S.replace(/(\r\n|\n|\r)/gm, " ")
6456
+ I.replace(/(\r\n|\n|\r)/gm, " ")
6471
6457
  );
6472
- }).catch((S) => {
6458
+ }).catch((I) => {
6473
6459
  });
6474
- }, f = () => {
6460
+ }, p = () => {
6475
6461
  c.current.textContent = c.current.textContent.trim();
6476
6462
  };
6477
- const p = {};
6478
- p.field = "search", e && (p.className = e);
6463
+ const v = {};
6464
+ v.field = "search", e && (v.className = e);
6479
6465
  const y = {};
6480
- return r && (y.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...p, children: [
6466
+ return r && (y.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...v, children: [
6481
6467
  t && /* @__PURE__ */ n.jsx("dt", { children: t }),
6482
6468
  /* @__PURE__ */ n.jsx(
6483
6469
  "dd",
6484
6470
  {
6485
6471
  ref: c,
6486
- onPaste: v,
6487
- onInput: h,
6488
- onKeyDown: g,
6489
- onBlur: f,
6490
- contentEditable: s && i ? K.ContentEditable : "false",
6472
+ onPaste: x,
6473
+ onInput: m,
6474
+ onKeyDown: h,
6475
+ onBlur: p,
6476
+ contentEditable: s && i ? z.ContentEditable : "false",
6491
6477
  ...y,
6492
6478
  suppressContentEditableWarning: !0,
6493
6479
  children: o
6494
6480
  }
6495
6481
  ),
6496
- /* @__PURE__ */ n.jsx("svg", { "aria-label": "icon", onClick: m, viewBox: "0 0 24 24", children: /* @__PURE__ */ n.jsx("path", { d: "M10.364 3a7.364 7.364 0 1 0 0 14.727 7.364 7.364 0 0 0 0-14.727v0ZM15.857 15.86 21 21.001" }) }),
6497
- /* @__PURE__ */ n.jsx("svg", { "action-type": "delete", onClick: m, viewBox: "0 0 24 24", children: /* @__PURE__ */ n.jsx("path", { d: "M17 6L6 17M6 6L17 17" }) })
6482
+ /* @__PURE__ */ n.jsx("svg", { "aria-label": "icon", onClick: f, viewBox: "0 0 24 24", children: /* @__PURE__ */ n.jsx("path", { d: "M10.364 3a7.364 7.364 0 1 0 0 14.727 7.364 7.364 0 0 0 0-14.727v0ZM15.857 15.86 21 21.001" }) }),
6483
+ /* @__PURE__ */ n.jsx("svg", { "action-type": "delete", onClick: f, viewBox: "0 0 24 24", children: /* @__PURE__ */ n.jsx("path", { d: "M17 6L6 17M6 6L17 17" }) })
6498
6484
  ] });
6499
6485
  };
6500
6486
  function Wt({
@@ -6509,40 +6495,40 @@ function Wt({
6509
6495
  placeholder: l = "",
6510
6496
  className: _,
6511
6497
  name: c,
6512
- after: h,
6513
- view: m,
6514
- order: g,
6515
- isReload: v = !1
6498
+ after: m,
6499
+ view: f,
6500
+ order: h,
6501
+ isReload: x = !1
6516
6502
  }) {
6517
- var F, E;
6518
- const f = x.useRef(), [p, y] = x.useState(i), [j, S] = x.useState(d);
6519
- x.useEffect(() => {
6520
- y(i), S(d);
6503
+ var F, S;
6504
+ const p = g.useRef(), [v, y] = g.useState(i), [j, I] = g.useState(d);
6505
+ g.useEffect(() => {
6506
+ y(i), I(d);
6521
6507
  }, [i, d]), s = !!(s && (i === 0 || ((F = j == null ? void 0 : j[i]) == null ? void 0 : F.n) === void 0)) && !(a && r);
6522
6508
  let R = (L) => {
6523
- y(L), o && o({ value: L, name: c, reload: v });
6524
- }, I = (L) => {
6509
+ y(L), o && o({ value: L, name: c, reload: x });
6510
+ }, D = (L) => {
6525
6511
  if (Object.keys(j || {}).length === 0 || !(a && r)) return;
6526
- const D = L.target.getBoundingClientRect();
6527
- Ce.setListener(
6512
+ const E = L.target.getBoundingClientRect();
6513
+ ve.setListener(
6528
6514
  "form",
6529
6515
  /* @__PURE__ */ n.jsx(
6530
- zl,
6516
+ Kl,
6531
6517
  {
6532
- parent: D,
6518
+ parent: E,
6533
6519
  onValue: R,
6534
- view: m,
6520
+ view: f,
6535
6521
  className: _,
6536
6522
  options: j,
6537
- order: g
6523
+ order: h
6538
6524
  },
6539
6525
  (/* @__PURE__ */ new Date()).getTime()
6540
6526
  )
6541
6527
  );
6542
- }, C = { field: "select", className: _ }, k = { onClick: I };
6543
- return l && (k.placeholder = l), h && (k.after = h), a && r && (k.edit = ""), s ? "" : /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
6528
+ }, C = { field: "select", className: _ }, k = { onClick: D };
6529
+ return l && (k.placeholder = l), m && (k.after = m), a && r && (k.edit = ""), s ? "" : /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
6544
6530
  e && /* @__PURE__ */ n.jsx("dt", { children: e }),
6545
- /* @__PURE__ */ n.jsx("dd", { ...k, ref: f, children: (E = j == null ? void 0 : j[p]) == null ? void 0 : E.n }),
6531
+ /* @__PURE__ */ n.jsx("dd", { ...k, ref: p, children: (S = j == null ? void 0 : j[v]) == null ? void 0 : S.n }),
6546
6532
  Object.keys(j || {}).length !== 0 && /* @__PURE__ */ n.jsx("s", { children: /* @__PURE__ */ n.jsx(
6547
6533
  "svg",
6548
6534
  {
@@ -6559,7 +6545,7 @@ function Wt({
6559
6545
  t && /* @__PURE__ */ n.jsx("em", { children: t })
6560
6546
  ] });
6561
6547
  }
6562
- const zl = ({
6548
+ const Kl = ({
6563
6549
  onValue: e,
6564
6550
  parent: t,
6565
6551
  view: a,
@@ -6567,11 +6553,11 @@ const zl = ({
6567
6553
  options: s,
6568
6554
  order: i
6569
6555
  }) => {
6570
- let [o, d] = x.useState(!0), l = () => {
6556
+ let [o, d] = g.useState(!0), l = () => {
6571
6557
  d(!1);
6572
- }, _ = (m) => {
6573
- d(!1), e(m);
6574
- }, c = window.innerHeight - t.y + t.height < 320 ? t.y - 312 : t.y + 33, h = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
6558
+ }, _ = (f) => {
6559
+ d(!1), e(f);
6560
+ }, c = window.innerHeight - t.y + t.height < 320 ? t.y - 312 : t.y + 33, m = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
6575
6561
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: o ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
6576
6562
  /* @__PURE__ */ n.jsx(
6577
6563
  "div",
@@ -6588,7 +6574,7 @@ const zl = ({
6588
6574
  "data-select": "background " + a,
6589
6575
  style: {
6590
6576
  top: c + "px",
6591
- left: h + "px",
6577
+ left: m + "px",
6592
6578
  width: t.width
6593
6579
  },
6594
6580
  children: /* @__PURE__ */ n.jsx(Yl, { order: i, options: s, link: _ })
@@ -6619,19 +6605,19 @@ const zl = ({
6619
6605
  ) : ""
6620
6606
  ) });
6621
6607
  function Ut(e) {
6622
- let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, o = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(r && s), d = e.placeholder !== void 0 ? e.placeholder : "", l = (g) => {
6623
- c(e.options[g]), e.onValue({ value: g, name: e.name });
6624
- }, [_, c] = x.useState(
6608
+ let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, o = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(r && s), d = e.placeholder !== void 0 ? e.placeholder : "", l = (h) => {
6609
+ c(e.options[h]), e.onValue({ value: h, name: e.name });
6610
+ }, [_, c] = g.useState(
6625
6611
  e.default !== void 0 ? e.options[e.default] : e.default
6626
- ), h = (g) => {
6612
+ ), m = (h) => {
6627
6613
  if (!(r && s)) return;
6628
- const v = g.target.getBoundingClientRect();
6629
- Ce.setListener(
6614
+ const x = h.target.getBoundingClientRect();
6615
+ ve.setListener(
6630
6616
  "form",
6631
6617
  /* @__PURE__ */ n.jsx(
6632
6618
  Hl,
6633
6619
  {
6634
- parent: v,
6620
+ parent: x,
6635
6621
  onValue: l,
6636
6622
  view: e.view,
6637
6623
  options: e.options
@@ -6640,8 +6626,8 @@ function Ut(e) {
6640
6626
  )
6641
6627
  );
6642
6628
  };
6643
- const m = {};
6644
- return d && (m.placeholder = d), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs(
6629
+ const f = {};
6630
+ return d && (f.placeholder = d), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs(
6645
6631
  "dl",
6646
6632
  {
6647
6633
  "data-form": "select",
@@ -6650,9 +6636,9 @@ function Ut(e) {
6650
6636
  /* @__PURE__ */ n.jsx(
6651
6637
  "dd",
6652
6638
  {
6653
- onClick: h,
6639
+ onClick: m,
6654
6640
  "data-edit": (r && s) + "",
6655
- ...m,
6641
+ ...f,
6656
6642
  children: _
6657
6643
  }
6658
6644
  ),
@@ -6662,10 +6648,10 @@ function Ut(e) {
6662
6648
  );
6663
6649
  }
6664
6650
  const Hl = ({ onValue: e, parent: t, view: a, options: r }) => {
6665
- let [s, i] = x.useState(!0), o = () => {
6651
+ let [s, i] = g.useState(!0), o = () => {
6666
6652
  i(!1);
6667
- }, d = (h) => {
6668
- i(!1), e(h);
6653
+ }, d = (m) => {
6654
+ i(!1), e(m);
6669
6655
  }, l = Object.keys(r).length * 36, _ = window.innerHeight - t.y + t.height < l ? t.y - (l - 33) : t.y + 33, c = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
6670
6656
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: s ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
6671
6657
  /* @__PURE__ */ n.jsx(
@@ -6685,15 +6671,15 @@ const Hl = ({ onValue: e, parent: t, view: a, options: r }) => {
6685
6671
  left: c + "px",
6686
6672
  width: t.width
6687
6673
  },
6688
- children: /* @__PURE__ */ n.jsx("ul", { children: Object.keys(r).map((h, m) => /* @__PURE__ */ n.jsx(
6674
+ children: /* @__PURE__ */ n.jsx("ul", { children: Object.keys(r).map((m, f) => /* @__PURE__ */ n.jsx(
6689
6675
  "li",
6690
6676
  {
6691
6677
  onClick: () => {
6692
- d(h);
6678
+ d(m);
6693
6679
  },
6694
- children: r[h]
6680
+ children: r[m]
6695
6681
  },
6696
- m
6682
+ f
6697
6683
  )) })
6698
6684
  }
6699
6685
  )
@@ -6711,13 +6697,13 @@ function Mt({
6711
6697
  edit: l = !0,
6712
6698
  show: _ = !0,
6713
6699
  active: c = !0,
6714
- after: h = "",
6715
- view: m,
6716
- module: g,
6717
- item: v,
6718
- className: f = ""
6700
+ after: m = "",
6701
+ view: f,
6702
+ module: h,
6703
+ item: x,
6704
+ className: p = ""
6719
6705
  }) {
6720
- let p = {};
6706
+ let v = {};
6721
6707
  switch (e) {
6722
6708
  case "Input":
6723
6709
  return /* @__PURE__ */ n.jsx(
@@ -6726,32 +6712,32 @@ function Mt({
6726
6712
  title: i,
6727
6713
  show: _,
6728
6714
  hide: d,
6729
- view: m,
6715
+ view: f,
6730
6716
  edit: l,
6731
6717
  active: c,
6732
6718
  value: t,
6733
6719
  onValue: a,
6734
6720
  name: r,
6735
6721
  placeholder: s,
6736
- className: f
6722
+ className: p
6737
6723
  }
6738
6724
  );
6739
6725
  case "Select":
6740
- return v && (p = ke.getSelect(parseInt(v)) ? ke.getSelect(parseInt(v)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
6726
+ return x && (v = ke.getSelect(parseInt(x)) ? ke.getSelect(parseInt(x)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
6741
6727
  Wt,
6742
6728
  {
6743
6729
  title: i,
6744
6730
  show: _,
6745
6731
  hide: d,
6746
- view: m,
6732
+ view: f,
6747
6733
  edit: l,
6748
6734
  active: c,
6749
6735
  value: parseInt(t || "0"),
6750
6736
  onValue: a,
6751
6737
  name: r,
6752
6738
  placeholder: s,
6753
- className: f,
6754
- options: p
6739
+ className: p,
6740
+ options: v
6755
6741
  }
6756
6742
  );
6757
6743
  case "Users":
@@ -6761,15 +6747,15 @@ function Mt({
6761
6747
  title: i,
6762
6748
  show: _,
6763
6749
  hide: d,
6764
- view: m,
6750
+ view: f,
6765
6751
  edit: l,
6766
6752
  active: c,
6767
6753
  value: t,
6768
6754
  onValue: a,
6769
6755
  name: r,
6770
6756
  placeholder: s,
6771
- className: f,
6772
- options: p
6757
+ className: p,
6758
+ options: v
6773
6759
  }
6774
6760
  );
6775
6761
  case "Date":
@@ -6779,14 +6765,14 @@ function Mt({
6779
6765
  title: i,
6780
6766
  show: _,
6781
6767
  hide: d,
6782
- view: m,
6768
+ view: f,
6783
6769
  edit: l,
6784
6770
  active: c,
6785
6771
  value: t,
6786
6772
  onValue: a,
6787
6773
  name: r,
6788
6774
  placeholder: s,
6789
- className: f
6775
+ className: p
6790
6776
  }
6791
6777
  );
6792
6778
  case "Phone":
@@ -6796,14 +6782,14 @@ function Mt({
6796
6782
  title: i,
6797
6783
  show: _,
6798
6784
  hide: d,
6799
- view: m,
6785
+ view: f,
6800
6786
  edit: l,
6801
6787
  active: c,
6802
6788
  value: t,
6803
6789
  onValue: a,
6804
6790
  name: r,
6805
6791
  placeholder: s,
6806
- className: f
6792
+ className: p
6807
6793
  }
6808
6794
  );
6809
6795
  case "Number":
@@ -6813,14 +6799,14 @@ function Mt({
6813
6799
  title: i,
6814
6800
  show: _,
6815
6801
  hide: d,
6816
- view: m,
6802
+ view: f,
6817
6803
  edit: l,
6818
6804
  active: c,
6819
6805
  value: t,
6820
6806
  onValue: a,
6821
6807
  name: r,
6822
6808
  placeholder: s,
6823
- className: f
6809
+ className: p
6824
6810
  }
6825
6811
  );
6826
6812
  case "Money":
@@ -6830,14 +6816,14 @@ function Mt({
6830
6816
  title: i,
6831
6817
  show: _,
6832
6818
  hide: d,
6833
- view: m,
6819
+ view: f,
6834
6820
  edit: l,
6835
6821
  active: c,
6836
6822
  value: t,
6837
6823
  onValue: a,
6838
6824
  name: r,
6839
6825
  placeholder: s,
6840
- className: f
6826
+ className: p
6841
6827
  }
6842
6828
  );
6843
6829
  case "Modal":
@@ -6847,16 +6833,16 @@ function Mt({
6847
6833
  title: i,
6848
6834
  show: _,
6849
6835
  hide: d,
6850
- view: m,
6836
+ view: f,
6851
6837
  edit: l,
6852
6838
  active: c,
6853
6839
  value: t,
6854
6840
  onValue: a,
6855
6841
  name: r || "",
6856
6842
  placeholder: s,
6857
- className: f,
6858
- options: p,
6859
- module: g || ""
6843
+ className: p,
6844
+ options: v,
6845
+ module: h || ""
6860
6846
  }
6861
6847
  );
6862
6848
  }
@@ -6873,40 +6859,40 @@ function ca({
6873
6859
  active: l = !0,
6874
6860
  after: _ = "",
6875
6861
  show: c = !0,
6876
- view: h,
6877
- maxLength: m,
6878
- onSave: g,
6879
- className: v = ""
6862
+ view: m,
6863
+ maxLength: f,
6864
+ onSave: h,
6865
+ className: x = ""
6880
6866
  }) {
6881
- let f = !!(o && (e === "" || e === void 0));
6882
- if (!(d && l) && !c || !(d && l) && f) return "";
6883
- let p = (R) => {
6867
+ let p = !!(o && (e === "" || e === void 0));
6868
+ if (!(d && l) && !c || !(d && l) && p) return "";
6869
+ let v = (R) => {
6884
6870
  t && t({ value: R.target.innerText, name: a });
6885
6871
  }, y = (R) => {
6886
- g && g({ value: R.target.innerText, name: a });
6872
+ h && h({ value: R.target.innerText, name: a });
6887
6873
  }, j = (R) => {
6888
- R.preventDefault(), navigator.clipboard.readText().then((I) => {
6889
- if (m) {
6874
+ R.preventDefault(), navigator.clipboard.readText().then((D) => {
6875
+ if (f) {
6890
6876
  let C = R.target.textContent.length;
6891
- if (C >= m) return;
6892
- m -= C, I = I.slice(0, m);
6877
+ if (C >= f) return;
6878
+ f -= C, D = D.slice(0, f);
6893
6879
  }
6894
- window.document.execCommand("insertText", !1, I);
6895
- }).catch((I) => {
6880
+ window.document.execCommand("insertText", !1, D);
6881
+ }).catch((D) => {
6896
6882
  });
6897
6883
  };
6898
- const S = {};
6899
- S.field = "text", v && (S.className = v);
6884
+ const I = {};
6885
+ I.field = "text", x && (I.className = x);
6900
6886
  const N = {};
6901
- return r && (N.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
6887
+ return r && (N.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
6902
6888
  s && /* @__PURE__ */ n.jsx("dt", { children: s }),
6903
6889
  /* @__PURE__ */ n.jsx(
6904
6890
  "dd",
6905
6891
  {
6906
6892
  onPaste: j,
6907
6893
  onBlur: y,
6908
- onInput: p,
6909
- contentEditable: d && l ? K.ContentEditable : "false",
6894
+ onInput: v,
6895
+ contentEditable: d && l ? z.ContentEditable : "false",
6910
6896
  ...N,
6911
6897
  suppressContentEditableWarning: !0,
6912
6898
  children: e
@@ -6927,19 +6913,19 @@ function da({
6927
6913
  active: l = !0,
6928
6914
  after: _ = "",
6929
6915
  show: c = !0,
6930
- view: h,
6931
- onSave: m,
6932
- className: g = ""
6916
+ view: m,
6917
+ onSave: f,
6918
+ className: h = ""
6933
6919
  }) {
6934
- let v = !!(o && (e === "" || e === void 0)), f = Y.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), p = x.useRef(null);
6935
- if (!(d && l) && !c || !(d && l) && v) return "";
6936
- let y = (I) => {
6937
- p.current.textContent = I, t && t({ value: I, name: a });
6938
- }, j = (I) => {
6939
- m && m({ value: I, name: a });
6940
- }, S = (I) => {
6941
- const C = I.target.getBoundingClientRect(), k = C.left, F = C.top;
6942
- Ce.setListener(
6920
+ let x = !!(o && (e === "" || e === void 0)), p = Y.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), v = g.useRef(null);
6921
+ if (!(d && l) && !c || !(d && l) && x) return "";
6922
+ let y = (D) => {
6923
+ v.current.textContent = D, t && t({ value: D, name: a });
6924
+ }, j = (D) => {
6925
+ f && f({ value: D, name: a });
6926
+ }, I = (D) => {
6927
+ const C = D.target.getBoundingClientRect(), k = C.left, F = C.top;
6928
+ ve.setListener(
6943
6929
  "form",
6944
6930
  /* @__PURE__ */ n.jsx(
6945
6931
  ql,
@@ -6947,24 +6933,24 @@ function da({
6947
6933
  positions: { x: k, y: F },
6948
6934
  onSave: j,
6949
6935
  onValue: y,
6950
- date: f
6936
+ date: p
6951
6937
  },
6952
6938
  (/* @__PURE__ */ new Date()).getTime()
6953
6939
  )
6954
6940
  );
6955
6941
  };
6956
6942
  const N = {};
6957
- N.field = "input", g && (N.className = g);
6943
+ N.field = "input", h && (N.className = h);
6958
6944
  const R = {};
6959
- return r && (R.placeholder = r), /* @__PURE__ */ n.jsx(n.Fragment, { children: h === "icon" ? /* @__PURE__ */ n.jsx(
6945
+ return r && (R.placeholder = r), /* @__PURE__ */ n.jsx(n.Fragment, { children: m === "icon" ? /* @__PURE__ */ n.jsx(
6960
6946
  "i",
6961
6947
  {
6962
6948
  "data-icon": "F043",
6963
- onClick: S
6949
+ onClick: I
6964
6950
  }
6965
6951
  ) : /* @__PURE__ */ n.jsxs("dl", { ...N, children: [
6966
6952
  s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
6967
- /* @__PURE__ */ n.jsx("dd", { onClick: S, ref: p, ...R, children: f }),
6953
+ /* @__PURE__ */ n.jsx("dd", { onClick: I, ref: v, ...R, children: p }),
6968
6954
  i ? /* @__PURE__ */ n.jsx("em", { children: i }) : ""
6969
6955
  ] }) });
6970
6956
  }
@@ -6972,92 +6958,92 @@ const ql = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6972
6958
  let s = r.split(":"), i = {
6973
6959
  h: Y.Number(2, s[0]),
6974
6960
  m: Y.Number(2, s[1])
6975
- }, o = "hour", [d, l] = x.useState({}), _ = !1, c = 0, h = 0, m = {
6976
- body: x.useRef(null),
6977
- time: x.useRef(null),
6978
- hour: x.useRef(null),
6979
- timeText: x.useRef(null),
6980
- hourText: x.useRef(null)
6961
+ }, o = "hour", [d, l] = g.useState({}), _ = !1, c = 0, m = 0, f = {
6962
+ body: g.useRef(null),
6963
+ time: g.useRef(null),
6964
+ hour: g.useRef(null),
6965
+ timeText: g.useRef(null),
6966
+ hourText: g.useRef(null)
6981
6967
  };
6982
- x.useEffect(() => {
6983
- l(m.body.current.getBoundingClientRect()), m.hour.current.style.transform = "rotate(" + i.h * 15 + "deg)", m.time.current.style.transform = "rotate(" + i.m * 6 + "deg)";
6984
- }, [m.body, m.hour, m.time, i.m, i.h]);
6985
- let g = () => {
6968
+ g.useEffect(() => {
6969
+ l(f.body.current.getBoundingClientRect()), f.hour.current.style.transform = "rotate(" + i.h * 15 + "deg)", f.time.current.style.transform = "rotate(" + i.m * 6 + "deg)";
6970
+ }, [f.body, f.hour, f.time, i.m, i.h]);
6971
+ let h = () => {
6986
6972
  _ = !0;
6987
- }, v = () => {
6988
- _ = !1, o = o === "hour" ? "time" : "hour", m.body.current.setAttribute("active", o);
6989
- }, f = (I) => {
6973
+ }, x = () => {
6974
+ _ = !1, o = o === "hour" ? "time" : "hour", f.body.current.setAttribute("active", o);
6975
+ }, p = (D) => {
6990
6976
  if (_) {
6991
6977
  let k = Math.atan2(
6992
- I.pageX - (d.x + 78),
6993
- I.pageY - (d.y + 78)
6978
+ D.pageX - (d.x + 78),
6979
+ D.pageY - (d.y + 78)
6994
6980
  ) * (180 / Math.PI) * -1 + 180;
6995
- m[o].current.style.transform = "rotate(" + k + "deg)", o === "hour" ? (i = {
6981
+ f[o].current.style.transform = "rotate(" + k + "deg)", o === "hour" ? (i = {
6996
6982
  ...i,
6997
6983
  h: Y.Number(2, parseInt(String(k / 15), 10))
6998
- }, m.hourText.current.textContent = i.h) : (i = {
6984
+ }, f.hourText.current.textContent = i.h) : (i = {
6999
6985
  ...i,
7000
6986
  m: Y.Number(2, parseInt(String(k / 6), 10))
7001
- }, m.timeText.current.textContent = i.m), a(i.h + ":" + i.m);
6987
+ }, f.timeText.current.textContent = i.m), a(i.h + ":" + i.m);
7002
6988
  }
7003
- }, p = (I) => {
6989
+ }, v = (D) => {
7004
6990
  if (o === "hour")
7005
- if (I.deltaY > 0) {
7006
- c += I.deltaY;
6991
+ if (D.deltaY > 0) {
6992
+ c += D.deltaY;
7007
6993
  let C = parseInt(String(c / 50));
7008
- if (h !== C) {
7009
- h = C;
6994
+ if (m !== C) {
6995
+ m = C;
7010
6996
  let k = parseInt(i.h, 10) + 1;
7011
- k = k > 23 ? 0 : k, i = { ...i, h: Y.Number(2, k) }, m.hourText.current.textContent = i.h, m[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6997
+ k = k > 23 ? 0 : k, i = { ...i, h: Y.Number(2, k) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
7012
6998
  }
7013
6999
  } else {
7014
- c -= I.deltaY;
7000
+ c -= D.deltaY;
7015
7001
  let C = parseInt(String(c / 50));
7016
- if (h !== C) {
7017
- h = C;
7002
+ if (m !== C) {
7003
+ m = C;
7018
7004
  let k = parseInt(i.h, 10) - 1;
7019
- k = k < 0 ? 23 : k, i = { ...i, h: Y.Number(2, k) }, m.hourText.current.textContent = i.h, m[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
7005
+ k = k < 0 ? 23 : k, i = { ...i, h: Y.Number(2, k) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
7020
7006
  }
7021
7007
  }
7022
- else if (I.deltaY > 0) {
7023
- c += I.deltaY;
7008
+ else if (D.deltaY > 0) {
7009
+ c += D.deltaY;
7024
7010
  let C = parseInt(String(c / 50));
7025
- if (h !== C) {
7026
- h = C;
7011
+ if (m !== C) {
7012
+ m = C;
7027
7013
  let k = parseInt(i.m, 10) + 1;
7028
- k = k > 59 ? 0 : k, i = { ...i, m: Y.Number(2, k) }, m.timeText.current.textContent = i.m, m[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
7014
+ k = k > 59 ? 0 : k, i = { ...i, m: Y.Number(2, k) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
7029
7015
  }
7030
7016
  } else {
7031
- c -= I.deltaY;
7017
+ c -= D.deltaY;
7032
7018
  let C = parseInt(String(c / 50));
7033
- if (h !== C) {
7034
- h = C;
7019
+ if (m !== C) {
7020
+ m = C;
7035
7021
  let k = parseInt(i.m, 10) - 1;
7036
- k = k < 0 ? 59 : k, i = { ...i, m: Y.Number(2, k) }, m.timeText.current.textContent = i.m, m[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
7022
+ k = k < 0 ? 59 : k, i = { ...i, m: Y.Number(2, k) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
7037
7023
  }
7038
7024
  }
7039
7025
  a(i.h + ":" + i.m);
7040
- }, [y, j] = x.useState(!0), S = () => {
7026
+ }, [y, j] = g.useState(!0), I = () => {
7041
7027
  j(!1), t(i.h + ":" + i.m);
7042
7028
  }, N = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, R = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
7043
7029
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: y ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7044
7030
  /* @__PURE__ */ n.jsx(
7045
7031
  "div",
7046
7032
  {
7047
- className: xe.o,
7048
- onClick: () => S()
7033
+ className: ge.o,
7034
+ onClick: () => I()
7049
7035
  },
7050
7036
  (/* @__PURE__ */ new Date()).getTime()
7051
7037
  ),
7052
7038
  /* @__PURE__ */ n.jsxs(
7053
7039
  "div",
7054
7040
  {
7055
- className: xe.c,
7056
- onMouseDown: g,
7057
- onMouseUp: v,
7058
- onMouseMove: f,
7059
- onWheel: p,
7060
- ref: m.body,
7041
+ className: ge.c,
7042
+ onMouseDown: h,
7043
+ onMouseUp: x,
7044
+ onMouseMove: p,
7045
+ onWheel: v,
7046
+ ref: f.body,
7061
7047
  style: { top: N + "px", left: R + "px" },
7062
7048
  children: [
7063
7049
  /* @__PURE__ */ n.jsx("div", { className: "b" }),
@@ -7067,9 +7053,9 @@ const ql = ({ positions: e, onSave: t, onValue: a, date: r }) => {
7067
7053
  {
7068
7054
  className: [
7069
7055
  "hour",
7070
- o === "hour" ? xe.as : xe.ap
7056
+ o === "hour" ? ge.as : ge.ap
7071
7057
  ].join(" "),
7072
- ref: m.hourText,
7058
+ ref: f.hourText,
7073
7059
  children: i.h
7074
7060
  }
7075
7061
  ),
@@ -7081,15 +7067,15 @@ const ql = ({ positions: e, onSave: t, onValue: a, date: r }) => {
7081
7067
  {
7082
7068
  className: [
7083
7069
  "min",
7084
- o === "time" ? xe.as : xe.ap
7070
+ o === "time" ? ge.as : ge.ap
7085
7071
  ].join(" "),
7086
- ref: m.timeText,
7072
+ ref: f.timeText,
7087
7073
  children: i.m
7088
7074
  }
7089
7075
  )
7090
7076
  ] }),
7091
- /* @__PURE__ */ n.jsx("div", { className: "h", ref: m.hour }),
7092
- /* @__PURE__ */ n.jsx("div", { className: "t", ref: m.time })
7077
+ /* @__PURE__ */ n.jsx("div", { className: "h", ref: f.hour }),
7078
+ /* @__PURE__ */ n.jsx("div", { className: "t", ref: f.time })
7093
7079
  ]
7094
7080
  }
7095
7081
  )
@@ -7106,17 +7092,17 @@ function _a({
7106
7092
  id: d,
7107
7093
  reload: l
7108
7094
  }) {
7109
- const [_, c] = x.useState(!!a), h = t || r;
7110
- x.useEffect(() => {
7095
+ const [_, c] = g.useState(!!a), m = t || r;
7096
+ g.useEffect(() => {
7111
7097
  c(!!a);
7112
7098
  }, [a]);
7113
- let m = () => {
7099
+ let f = () => {
7114
7100
  e && e({ value: _ ? 0 : 1, name: i, id: d }), c(!_);
7115
7101
  };
7116
- const g = {};
7117
- return g.field = "check", s && (g.className = s), /* @__PURE__ */ n.jsxs("dl", { ...g, children: [
7118
- h ? /* @__PURE__ */ n.jsx("dt", { children: h }) : "",
7119
- /* @__PURE__ */ n.jsxs("dd", { onClick: m, children: [
7102
+ const h = {};
7103
+ return h.field = "check", s && (h.className = s), /* @__PURE__ */ n.jsxs("dl", { ...h, children: [
7104
+ m ? /* @__PURE__ */ n.jsx("dt", { children: m }) : "",
7105
+ /* @__PURE__ */ n.jsxs("dd", { onClick: f, children: [
7120
7106
  /* @__PURE__ */ n.jsx("span", { children: o }),
7121
7107
  /* @__PURE__ */ n.jsx(
7122
7108
  "div",
@@ -7129,8 +7115,8 @@ function _a({
7129
7115
  ] });
7130
7116
  }
7131
7117
  const Jl = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
7132
- const [i, o] = x.useState(!!a);
7133
- x.useEffect(() => {
7118
+ const [i, o] = g.useState(!!a);
7119
+ g.useEffect(() => {
7134
7120
  o(!!a);
7135
7121
  }, [a]);
7136
7122
  let d = () => {
@@ -7146,8 +7132,8 @@ const Jl = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
7146
7132
  }
7147
7133
  );
7148
7134
  }, ua = ({ onValue: e, value: t, name: a, item: r }) => {
7149
- const [s, i] = x.useState(!!t);
7150
- x.useEffect(() => {
7135
+ const [s, i] = g.useState(!!t);
7136
+ g.useEffect(() => {
7151
7137
  i(!!t);
7152
7138
  }, [t]);
7153
7139
  let o = () => {
@@ -7175,38 +7161,38 @@ function fa({
7175
7161
  active: l = !0,
7176
7162
  after: _ = "",
7177
7163
  show: c = !0,
7178
- view: h,
7179
- max: m = 0,
7180
- onSave: g,
7181
- className: v = "",
7182
- separator: f = ","
7164
+ view: m,
7165
+ max: f = 0,
7166
+ onSave: h,
7167
+ className: x = "",
7168
+ separator: p = ","
7183
7169
  }) {
7184
- const [p, y] = x.useState(
7185
- e !== void 0 ? e.split(f) : []
7170
+ const [v, y] = g.useState(
7171
+ e !== void 0 ? e.split(p) : []
7186
7172
  );
7187
- x.useEffect(() => {
7188
- y(e !== void 0 ? e !== void 0 ? e.split(f) : [] : []);
7173
+ g.useEffect(() => {
7174
+ y(e !== void 0 ? e !== void 0 ? e.split(p) : [] : []);
7189
7175
  }, [e]);
7190
7176
  let j = () => {
7191
- if (m !== 0 && p.length >= m)
7192
- return me.Error("Слишком много");
7193
- y([...p, ""]);
7194
- }, S = (L) => {
7195
- p.splice(L, 1), p.length === 0 && p.push(""), y([...p]), g !== void 0 && g({ value: p.join(f), name: a });
7177
+ if (f !== 0 && v.length >= f)
7178
+ return fe.Error("Слишком много");
7179
+ y([...v, ""]);
7180
+ }, I = (L) => {
7181
+ v.splice(L, 1), v.length === 0 && v.push(""), y([...v]), h !== void 0 && h({ value: v.join(p), name: a });
7196
7182
  }, N = !!(o && (e === "" || e === void 0)), R = (L) => {
7197
7183
  };
7198
7184
  if (!(d && l) && !c || !(d && l) && N) return "";
7199
- const I = {};
7200
- I.field = "group", v && (I.className = v);
7201
- const C = (L, D) => {
7202
- K.Blur(L), p[D] = L.target.textContent, g && g({ value: p.join(f), name: a });
7185
+ const D = {};
7186
+ D.field = "group", x && (D.className = x);
7187
+ const C = (L, E) => {
7188
+ z.Blur(L), v[E] = L.target.textContent, h && h({ value: v.join(p), name: a });
7203
7189
  };
7204
- let k = (L, D) => {
7205
- p[D] = L.target.textContent, t && t({ value: p.join(f), name: a });
7190
+ let k = (L, E) => {
7191
+ v[E] = L.target.textContent, t && t({ value: v.join(p), name: a });
7206
7192
  }, F = (L) => {
7207
7193
  L.key === "Enter" && L.preventDefault();
7208
7194
  };
7209
- const E = ({ data: L }) => m !== 0 && L.length >= m ? "" : /* @__PURE__ */ n.jsx("i", { onClick: j, children: /* @__PURE__ */ n.jsxs(
7195
+ const S = ({ data: L }) => f !== 0 && L.length >= f ? "" : /* @__PURE__ */ n.jsx("i", { onClick: j, children: /* @__PURE__ */ n.jsxs(
7210
7196
  "svg",
7211
7197
  {
7212
7198
  xmlns: "http://www.w3.org/2000/svg",
@@ -7222,32 +7208,32 @@ function fa({
7222
7208
  ]
7223
7209
  }
7224
7210
  ) });
7225
- return /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
7211
+ return /* @__PURE__ */ n.jsxs("dl", { ...D, children: [
7226
7212
  /* @__PURE__ */ n.jsxs("dt", { children: [
7227
7213
  s,
7228
- /* @__PURE__ */ n.jsx(E, { data: p })
7214
+ /* @__PURE__ */ n.jsx(S, { data: v })
7229
7215
  ] }),
7230
- /* @__PURE__ */ n.jsx("dd", { children: p.map((L, D) => /* @__PURE__ */ n.jsxs("li", { className: "field_group_item", children: [
7216
+ /* @__PURE__ */ n.jsx("dd", { children: v.map((L, E) => /* @__PURE__ */ n.jsxs("li", { className: "field_group_item", children: [
7231
7217
  /* @__PURE__ */ n.jsx(
7232
7218
  "span",
7233
7219
  {
7234
- onInput: (w) => k(w, D),
7220
+ onInput: (w) => k(w, E),
7235
7221
  edit: "true",
7236
7222
  name: a,
7237
7223
  placeholder: r,
7238
7224
  onPaste: R,
7239
- contentEditable: d && l ? K.ContentEditable : "false",
7225
+ contentEditable: d && l ? z.ContentEditable : "false",
7240
7226
  onKeyDown: F,
7241
- onBlur: (w) => C(w, D),
7227
+ onBlur: (w) => C(w, E),
7242
7228
  suppressContentEditableWarning: !0,
7243
- children: p[D]
7229
+ children: v[E]
7244
7230
  }
7245
7231
  ),
7246
7232
  /* @__PURE__ */ n.jsx(
7247
7233
  "i",
7248
7234
  {
7249
7235
  onClick: () => {
7250
- S(D);
7236
+ I(E);
7251
7237
  },
7252
7238
  children: /* @__PURE__ */ n.jsxs(
7253
7239
  "svg",
@@ -7267,7 +7253,7 @@ function fa({
7267
7253
  )
7268
7254
  }
7269
7255
  )
7270
- ] }, D)) }),
7256
+ ] }, E)) }),
7271
7257
  i && /* @__PURE__ */ n.jsx("em", { children: i })
7272
7258
  ] });
7273
7259
  }
@@ -7284,16 +7270,16 @@ function ma({
7284
7270
  show: l = !0,
7285
7271
  active: _ = !0,
7286
7272
  outFormat: c = "",
7287
- after: h = "",
7288
- view: m,
7289
- modal: g,
7290
- module: v,
7291
- options: f,
7292
- className: p
7273
+ after: m = "",
7274
+ view: f,
7275
+ modal: h,
7276
+ module: x,
7277
+ options: p,
7278
+ className: v
7293
7279
  }) {
7294
- const [y, j] = x.useState(Xl(e)), S = (I) => {
7295
- if (!(d && _) || !g) return;
7296
- let C = g.split(".");
7280
+ const [y, j] = g.useState(Xl(e)), I = (D) => {
7281
+ if (!(d && _) || !h) return;
7282
+ let C = h.split(".");
7297
7283
  Ne.Open(C[0], C[1], {
7298
7284
  callback: (k) => {
7299
7285
  if (t)
@@ -7313,17 +7299,17 @@ function ma({
7313
7299
  j(k);
7314
7300
  },
7315
7301
  onValue: t,
7316
- options: f,
7302
+ options: p,
7317
7303
  name: a,
7318
7304
  value: y
7319
7305
  });
7320
7306
  }, N = {};
7321
- N.field = "group", p && (N.className = p);
7307
+ N.field = "group", v && (N.className = v);
7322
7308
  const R = {};
7323
7309
  return r && (R.placeholder = r), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...N, children: [
7324
7310
  /* @__PURE__ */ n.jsxs("dt", { children: [
7325
7311
  s,
7326
- /* @__PURE__ */ n.jsx("i", { onClick: S, children: /* @__PURE__ */ n.jsx(
7312
+ /* @__PURE__ */ n.jsx("i", { onClick: I, children: /* @__PURE__ */ n.jsx(
7327
7313
  "svg",
7328
7314
  {
7329
7315
  width: "20",
@@ -7342,12 +7328,12 @@ function ma({
7342
7328
  "dd",
7343
7329
  {
7344
7330
  ...R,
7345
- onClick: S,
7331
+ onClick: I,
7346
7332
  edit: (d && _) + "",
7347
- "data-after": h,
7348
- children: Object.keys(y).map((I) => {
7333
+ "data-after": m,
7334
+ children: Object.keys(y).map((D) => {
7349
7335
  var C;
7350
- return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (C = f[I]) == null ? void 0 : C.label }, I);
7336
+ return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (C = p[D]) == null ? void 0 : C.label }, D);
7351
7337
  })
7352
7338
  }
7353
7339
  ),
@@ -7366,23 +7352,23 @@ function Nn({
7366
7352
  edit: l = !0,
7367
7353
  active: _ = !0,
7368
7354
  after: c = "",
7369
- show: h = !0,
7370
- type: m,
7371
- view: g,
7372
- onSave: v,
7373
- className: f = ""
7355
+ show: m = !0,
7356
+ type: f,
7357
+ view: h,
7358
+ onSave: x,
7359
+ className: p = ""
7374
7360
  }) {
7375
- const p = x.useId();
7376
- let y = !!(d && (e === "" || e === void 0)), [j, S] = x.useState(i);
7377
- if (!(l && _) && !h || !(l && _) && y) return "";
7378
- const N = async (I) => {
7379
- if (m) {
7380
- let C = Ql(I, m, e || "default");
7381
- t == null || t({ name: a, value: C }), S(URL.createObjectURL(C));
7361
+ const v = g.useId();
7362
+ let y = !!(d && (e === "" || e === void 0)), [j, I] = g.useState(i);
7363
+ if (!(l && _) && !m || !(l && _) && y) return "";
7364
+ const N = async (D) => {
7365
+ if (f) {
7366
+ let C = Ql(D, f, e || "default");
7367
+ t == null || t({ name: a, value: C }), I(URL.createObjectURL(C));
7382
7368
  } else
7383
- t == null || t({ name: a, value: I }), S(URL.createObjectURL(I));
7369
+ t == null || t({ name: a, value: D }), I(URL.createObjectURL(D));
7384
7370
  }, R = {};
7385
- return R.field = "file", f && (R.className = f), /* @__PURE__ */ n.jsxs("dl", { ...R, children: [
7371
+ return R.field = "file", p && (R.className = p), /* @__PURE__ */ n.jsxs("dl", { ...R, children: [
7386
7372
  s && /* @__PURE__ */ n.jsxs("dt", { children: [
7387
7373
  s,
7388
7374
  " "
@@ -7391,23 +7377,23 @@ function Nn({
7391
7377
  /* @__PURE__ */ n.jsx(
7392
7378
  "input",
7393
7379
  {
7394
- id: p,
7380
+ id: v,
7395
7381
  type: "file",
7396
7382
  multiple: !0,
7397
- onChange: (I) => {
7398
- I.target.files[0] && N(I.target.files[0]);
7383
+ onChange: (D) => {
7384
+ D.target.files[0] && N(D.target.files[0]);
7399
7385
  }
7400
7386
  }
7401
7387
  ),
7402
- /* @__PURE__ */ n.jsx("label", { htmlFor: p }),
7388
+ /* @__PURE__ */ n.jsx("label", { htmlFor: v }),
7403
7389
  /* @__PURE__ */ n.jsx("img", { src: j })
7404
7390
  ] }),
7405
7391
  o && /* @__PURE__ */ n.jsx("em", { children: o })
7406
7392
  ] });
7407
7393
  }
7408
7394
  const Vl = ({ children: e, onFiles: t }) => {
7409
- const a = x.useRef(null);
7410
- return x.useEffect(() => {
7395
+ const a = g.useRef(null);
7396
+ return g.useEffect(() => {
7411
7397
  if (a.preventDefaults) return;
7412
7398
  a.preventDefaults = (s) => {
7413
7399
  s.preventDefault(), s.stopPropagation();
@@ -7455,34 +7441,34 @@ function ha({ name: e, value: t, title: a, style: r, className: s }) {
7455
7441
  /* @__PURE__ */ n.jsx("dd", {})
7456
7442
  ] });
7457
7443
  }
7458
- const ue = {};
7444
+ const _e = {};
7459
7445
  function tc(e) {
7460
- const [t, a] = x.useState({}), r = x.useRef(e);
7461
- return ue.u = (s) => {
7446
+ const [t, a] = g.useState({}), r = g.useRef(e);
7447
+ return _e.u = (s) => {
7462
7448
  r.current = { ...r.current, [s.name]: s.value };
7463
- }, ue.n = (s) => {
7449
+ }, _e.n = (s) => {
7464
7450
  r.current = s, a(Date.now());
7465
- }, ue.r = () => {
7451
+ }, _e.r = () => {
7466
7452
  a(Date.now());
7467
- }, [r.current, ue.n];
7453
+ }, [r.current, _e.n];
7468
7454
  }
7469
7455
  function nc(e) {
7470
- ue.u(e), e.reload && ue.r();
7456
+ _e.u(e), e.reload && _e.r();
7471
7457
  }
7472
7458
  function ac() {
7473
- ue.r && ue.r();
7459
+ _e.r && _e.r();
7474
7460
  }
7475
7461
  function rc(e) {
7476
- const [t, a] = x.useState({}), r = x.useRef(e);
7477
- return ue.u = (s) => {
7462
+ const [t, a] = g.useState({}), r = g.useRef(e);
7463
+ return _e.u = (s) => {
7478
7464
  r.current = { ...r.current, [s.name]: s.value };
7479
- }, ue.n = (s) => {
7465
+ }, _e.n = (s) => {
7480
7466
  Object.keys(s).length > 0 ? Object.keys(s).forEach((i) => {
7481
7467
  r.current[i] = s[i];
7482
7468
  }) : r.current = {}, a(Date.now());
7483
- }, ue.r = () => {
7469
+ }, _e.r = () => {
7484
7470
  a(Date.now());
7485
- }, [r.current, ue.n];
7471
+ }, [r.current, _e.n];
7486
7472
  }
7487
7473
  const pd = {
7488
7474
  Color: ra,
@@ -7534,13 +7520,13 @@ function sc({
7534
7520
  hide: l = !1,
7535
7521
  edit: _ = !0,
7536
7522
  active: c = !0,
7537
- after: h = "",
7538
- show: m = !0,
7539
- view: g,
7540
- className: v = ""
7523
+ after: m = "",
7524
+ show: f = !0,
7525
+ view: h,
7526
+ className: x = ""
7541
7527
  }) {
7542
- _ = _ !== void 0 ? _ : !0, c = c !== void 0 ? c : !0, l = !!(l && (e === "" || e === void 0)) && !(_ && c), x.useRef(null);
7543
- let p = s, y = !0, j = 0, S = (w, M) => {
7528
+ _ = _ !== void 0 ? _ : !0, c = c !== void 0 ? c : !0, l = !!(l && (e === "" || e === void 0)) && !(_ && c), g.useRef(null);
7529
+ let v = s, y = !0, j = 0, I = (w, M) => {
7544
7530
  let W = document.createRange(), Q = window.getSelection();
7545
7531
  W.setStart(M.childNodes[0], w), W.collapse(!0), Q.removeAllRanges(), Q.addRange(W), M.focus();
7546
7532
  }, N = (w) => {
@@ -7551,47 +7537,47 @@ function sc({
7551
7537
  }, R = (w) => {
7552
7538
  let M = 0, W = "", Q = w.replace(/\D/g, "");
7553
7539
  Q === "" && (y = !0);
7554
- let le = Q.split(""), ye = "";
7555
- le.forEach((qe) => {
7556
- y && (ye += qe, y && (j = ("" + ye).length, p = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""), j > ("" + ye).length && (y = !0, p = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""));
7540
+ let oe = Q.split(""), je = "";
7541
+ oe.forEach((qe) => {
7542
+ y && (je += qe, y && (j = ("" + je).length, v = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""), j > ("" + je).length && (y = !0, v = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""));
7557
7543
  });
7558
- let Re = p.replace(/\D/g, "");
7559
- return Re.length >= Q.length && (Q = Re), { q: p.replace(/[_\d]/g, function() {
7544
+ let Re = v.replace(/\D/g, "");
7545
+ return Re.length >= Q.length && (Q = Re), { q: v.replace(/[_\d]/g, function() {
7560
7546
  return Q.charAt(M++) || "_";
7561
7547
  }), i: M, v: Q, f: W };
7562
- }, I = (w) => {
7548
+ }, D = (w) => {
7563
7549
  w.preventDefault(), navigator.clipboard.writeText(w.target.textContent.replace(/\D/g, "")).then(
7564
7550
  function() {
7565
- me.Copy("Данные в буфер обмене");
7551
+ fe.Copy("Данные в буфер обмене");
7566
7552
  },
7567
7553
  function(M) {
7568
7554
  }
7569
7555
  );
7570
7556
  }, C = R(e), k = (w) => {
7571
7557
  let M = R(w.target.textContent);
7572
- w.target.textContent = M.q, M.i = M.q.lastIndexOf(M.v.substr(-1)), M.i < M.q.length && M.q !== p ? M.i++ : M.i = M.q.indexOf("_"), S(M.i, w.target), t && t({ value: M.q.replace(/\D/g, ""), name: r });
7558
+ w.target.textContent = M.q, M.i = M.q.lastIndexOf(M.v.substr(-1)), M.i < M.q.length && M.q !== v ? M.i++ : M.i = M.q.indexOf("_"), I(M.i, w.target), t && t({ value: M.q.replace(/\D/g, ""), name: r });
7573
7559
  }, F = (w) => {
7574
7560
  w.key === "Enter" && w.preventDefault();
7575
7561
  };
7576
- const E = (w) => {
7577
- K.Blur(w), a && a({
7562
+ const S = (w) => {
7563
+ z.Blur(w), a && a({
7578
7564
  value: w.target.textContent.replace(/\D/g, ""),
7579
7565
  name: r
7580
7566
  });
7581
7567
  }, L = {};
7582
- L.field = "input", v && (L.className = v);
7583
- let D = {};
7584
- return _ && c ? (D.edit = "true", D.contentEditable = K.ContentEditable) : D.contentEditable = "false", i && (D.placeholder = i), h && (D.after = h), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...L, children: [
7568
+ L.field = "input", x && (L.className = x);
7569
+ let E = {};
7570
+ return _ && c ? (E.edit = "true", E.contentEditable = z.ContentEditable) : E.contentEditable = "false", i && (E.placeholder = i), m && (E.after = m), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...L, children: [
7585
7571
  o && /* @__PURE__ */ n.jsx("dt", { children: o }),
7586
7572
  /* @__PURE__ */ n.jsx(
7587
7573
  "dd",
7588
7574
  {
7589
- ...D,
7575
+ ...E,
7590
7576
  onPaste: N,
7591
7577
  onInput: k,
7592
7578
  onKeyDown: F,
7593
- onContextMenu: I,
7594
- onBlur: E,
7579
+ onContextMenu: D,
7580
+ onBlur: S,
7595
7581
  suppressContentEditableWarning: !0,
7596
7582
  children: C.q
7597
7583
  }
@@ -7666,19 +7652,19 @@ const xd = { Spinner: cc, Inline: dc }, _c = "_ph_1wjxu_1", uc = "_e_1wjxu_5", R
7666
7652
  loading: _
7667
7653
  }) => {
7668
7654
  const [c] = ee.useTabs(
7669
- o.map((g) => g.id).includes(ee.getTabs()) ? ee.getTabs() : i
7670
- ), [h, m] = x.useState(!1);
7671
- return x.useEffect(() => {
7672
- m(!0);
7655
+ o.map((h) => h.id).includes(ee.getTabs()) ? ee.getTabs() : i
7656
+ ), [m, f] = g.useState(!1);
7657
+ return g.useEffect(() => {
7658
+ f(!0);
7673
7659
  }, []), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7674
7660
  /* @__PURE__ */ n.jsxs("div", { className: [Rn.ph, d].join(" "), children: [
7675
7661
  /* @__PURE__ */ n.jsx(pc, { title: e, affter: t }),
7676
7662
  /* @__PURE__ */ n.jsx("div", { className: Rn.e }),
7677
7663
  /* @__PURE__ */ n.jsx(hc, { button: s })
7678
7664
  ] }),
7679
- o.length > 0 && /* @__PURE__ */ n.jsx(zn, { list: o, active: c }),
7665
+ o.length > 0 && /* @__PURE__ */ n.jsx(Kn, { list: o, active: c }),
7680
7666
  r,
7681
- h && /* @__PURE__ */ n.jsx(
7667
+ m && /* @__PURE__ */ n.jsx(
7682
7668
  mc,
7683
7669
  {
7684
7670
  onDynamicURL: a,
@@ -7690,16 +7676,16 @@ const xd = { Spinner: cc, Inline: dc }, _c = "_ph_1wjxu_1", uc = "_e_1wjxu_5", R
7690
7676
  ] });
7691
7677
  };
7692
7678
  let mc = ({ m: e, t, loading: a, onDynamicURL: r }) => {
7693
- const s = x.lazy(() => rt(e + "/pages/" + t + ".tsx"));
7694
- return r && r((e + "/" + t).toLowerCase()), /* @__PURE__ */ n.jsx(x.Suspense, { fallback: a, children: /* @__PURE__ */ n.jsx(s, {}) });
7679
+ const s = g.lazy(() => rt(e + "/pages/" + t + ".tsx"));
7680
+ return r && r((e + "/" + t).toLowerCase()), /* @__PURE__ */ n.jsx(g.Suspense, { fallback: a, children: /* @__PURE__ */ n.jsx(s, {}) });
7695
7681
  }, hc = ({ button: e }) => {
7696
- const [t, a] = x.useState(e);
7682
+ const [t, a] = g.useState(e);
7697
7683
  return Ft("button", a), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7698
7684
  " ",
7699
7685
  t
7700
7686
  ] });
7701
7687
  }, pc = ({ title: e, affter: t }) => {
7702
- const [a, r] = x.useState(
7688
+ const [a, r] = g.useState(
7703
7689
  /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7704
7690
  e,
7705
7691
  " ",
@@ -7713,10 +7699,10 @@ const vd = {
7713
7699
  }, gc = "_s_t9swc_1", Tn = {
7714
7700
  s: gc
7715
7701
  };
7716
- let Kt;
7702
+ let zt;
7717
7703
  function xc({ className: e, placeholder: t }) {
7718
7704
  let a = (o) => {
7719
- Kt(o.target.textContent);
7705
+ zt(o.target.textContent);
7720
7706
  }, r = (o) => {
7721
7707
  o.key === "Enter" && o.preventDefault();
7722
7708
  }, s = (o) => {
@@ -7747,10 +7733,10 @@ function vc(e, t, a) {
7747
7733
  }), o;
7748
7734
  }
7749
7735
  function Cc(e) {
7750
- Kt = e;
7736
+ zt = e;
7751
7737
  }
7752
7738
  function jc(e) {
7753
- Kt = e;
7739
+ zt = e;
7754
7740
  }
7755
7741
  const Cd = { Field: xc, Run: vc, Get: Cc, useValue: jc };
7756
7742
  function yc() {
@@ -7833,7 +7819,7 @@ function kc() {
7833
7819
  const bc = "_f_q3r0i_1", Sc = {
7834
7820
  f: bc
7835
7821
  };
7836
- let fe = {};
7822
+ let ue = {};
7837
7823
  function Ec(e, t) {
7838
7824
  switch (t.type) {
7839
7825
  case "open":
@@ -7865,7 +7851,7 @@ function Ec(e, t) {
7865
7851
  r = { ...e.take, ...r }, e.active = !1;
7866
7852
  for (let s in r)
7867
7853
  r[s] !== "999" && (e.active = !0);
7868
- return fe.get(r, e.active), {
7854
+ return ue.get(r, e.active), {
7869
7855
  ...e,
7870
7856
  take: r,
7871
7857
  active: e.active
@@ -7873,7 +7859,7 @@ function Ec(e, t) {
7873
7859
  case "exit":
7874
7860
  for (let s in e.take)
7875
7861
  e.take[s] = "999";
7876
- return fe.get && fe.get([], !1), {
7862
+ return ue.get && ue.get([], !1), {
7877
7863
  ...e,
7878
7864
  size: 0,
7879
7865
  active: !1,
@@ -7885,7 +7871,7 @@ function Ec(e, t) {
7885
7871
  }
7886
7872
  }
7887
7873
  function Ic() {
7888
- const [e, t] = x.useReducer(Ec, {
7874
+ const [e, t] = g.useReducer(Ec, {
7889
7875
  open: !1,
7890
7876
  view: null,
7891
7877
  data: {},
@@ -7893,11 +7879,11 @@ function Ic() {
7893
7879
  size: 0,
7894
7880
  active: !1
7895
7881
  });
7896
- return fe.set = (a) => {
7882
+ return ue.set = (a) => {
7897
7883
  t({ type: "data", data: a });
7898
- }, fe.count = (a) => {
7884
+ }, ue.count = (a) => {
7899
7885
  t({ type: "size", size: a });
7900
- }, fe.reset = () => {
7886
+ }, ue.reset = () => {
7901
7887
  t({ type: "exit" });
7902
7888
  }, /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7903
7889
  /* @__PURE__ */ n.jsxs(
@@ -7951,13 +7937,13 @@ function Ic() {
7951
7937
  ] });
7952
7938
  }
7953
7939
  function Dc(e) {
7954
- fe.get = e;
7940
+ ue.get = e;
7955
7941
  }
7956
7942
  function Nc(e) {
7957
- fe.set !== void 0 && fe.set(e);
7943
+ ue.set !== void 0 && ue.set(e);
7958
7944
  }
7959
7945
  function Rc(e) {
7960
- fe.reset !== void 0 && fe.reset(e);
7946
+ ue.reset !== void 0 && ue.reset(e);
7961
7947
  }
7962
7948
  function Tc(e, t, a, r) {
7963
7949
  let s = [], i = 1, o = 0, d = {}, l = 50;
@@ -7972,7 +7958,7 @@ function Tc(e, t, a, r) {
7972
7958
  }), d;
7973
7959
  }
7974
7960
  function ga(e) {
7975
- fe.count(e);
7961
+ ue.count(e);
7976
7962
  }
7977
7963
  function Lc({ data: e, state: t, dispatch: a }) {
7978
7964
  let r = () => {
@@ -8093,7 +8079,7 @@ function Oc(e) {
8093
8079
  it.fn = e;
8094
8080
  }
8095
8081
  function Zc() {
8096
- const [e, t] = x.useReducer(Fc, {
8082
+ const [e, t] = g.useReducer(Fc, {
8097
8083
  open: !1,
8098
8084
  active: !1,
8099
8085
  news: [],
@@ -8105,7 +8091,7 @@ function Zc() {
8105
8091
  jt.push(r.data);
8106
8092
  break;
8107
8093
  }
8108
- }), x.useEffect(() => {
8094
+ }), g.useEffect(() => {
8109
8095
  setInterval(() => {
8110
8096
  jt.forEach((r, s) => {
8111
8097
  t({
@@ -8175,7 +8161,7 @@ const Gc = ({ data: e, dispatch: t }) => {
8175
8161
  p: Wc,
8176
8162
  l: Uc
8177
8163
  };
8178
- function Kc(e) {
8164
+ function zc(e) {
8179
8165
  let t = 3, a = e.page, r = e.count, s = [], i = () => {
8180
8166
  s.push({ page: 1 }), s.push({ text: "..." });
8181
8167
  }, o = () => {
@@ -8193,7 +8179,7 @@ function Kc(e) {
8193
8179
  /* @__PURE__ */ n.jsx("i", { onClick: () => e.onChangePage(a + 1), children: /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ n.jsx("path", { d: "M8.19486 5.40705C8.52237 4.96235 9.14837 4.86736 9.59306 5.19488C9.93847 5.44927 10.2668 5.70372 10.5528 5.92689C11.1236 6.3724 11.8882 6.98573 12.6556 7.65208C13.4181 8.31412 14.2064 9.04815 14.8119 9.73344C15.1136 10.0749 15.3911 10.4279 15.5986 10.7721C15.7895 11.0888 16 11.524 16 12.0001C16 12.4762 15.7895 12.9115 15.5986 13.2282C15.3911 13.5724 15.1136 13.9253 14.8119 14.2668C14.2064 14.9521 13.4181 15.6861 12.6556 16.3482C11.8882 17.0145 11.1236 17.6278 10.5528 18.0734C10.2668 18.2965 9.93847 18.551 9.59307 18.8054C9.14837 19.1329 8.52237 19.0379 8.19486 18.5932C8.0632 18.4144 7.99983 18.2064 8.00001 18.0002L8 12.0001L8 6.00007C7.99983 5.79387 8.0632 5.58581 8.19486 5.40705Z" }) }) })
8194
8180
  ] });
8195
8181
  }
8196
- function zc(e, t) {
8182
+ function Kc(e, t) {
8197
8183
  switch (t.type) {
8198
8184
  case "load":
8199
8185
  return {
@@ -8215,7 +8201,7 @@ function zc(e, t) {
8215
8201
  }
8216
8202
  }
8217
8203
  function va({ load: e, list: t, item: a }) {
8218
- const r = x.useRef(null), [s, i] = x.useReducer(zc, {
8204
+ const r = g.useRef(null), [s, i] = g.useReducer(Kc, {
8219
8205
  load: !1,
8220
8206
  list: [],
8221
8207
  data: {},
@@ -8223,7 +8209,7 @@ function va({ load: e, list: t, item: a }) {
8223
8209
  wait: !1,
8224
8210
  item: a
8225
8211
  });
8226
- x.useEffect(() => {
8212
+ g.useEffect(() => {
8227
8213
  t !== null && i({ type: "load", load: e, data: t });
8228
8214
  }, [e]);
8229
8215
  let o = (d) => {
@@ -8231,7 +8217,7 @@ function va({ load: e, list: t, item: a }) {
8231
8217
  if (d > s.size) return d = s.size;
8232
8218
  i({ type: "page", page: d });
8233
8219
  };
8234
- return x.useEffect(() => {
8220
+ return g.useEffect(() => {
8235
8221
  }, [s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
8236
8222
  /* @__PURE__ */ n.jsx("div", { className: xa.l, ref: r, children: /* @__PURE__ */ n.jsx(Xn, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((d) => /* @__PURE__ */ n.jsx(s.item, { data: d }, d.id)) : /* @__PURE__ */ n.jsxs("div", { "type-data": "load", children: [
8237
8223
  /* @__PURE__ */ n.jsx("i", {}),
@@ -8239,7 +8225,7 @@ function va({ load: e, list: t, item: a }) {
8239
8225
  /* @__PURE__ */ n.jsx("i", {})
8240
8226
  ] }) }) }),
8241
8227
  s.load && s.list !== void 0 ? /* @__PURE__ */ n.jsx(
8242
- Kc,
8228
+ zc,
8243
8229
  {
8244
8230
  page: s.page,
8245
8231
  count: s.size,
@@ -8325,8 +8311,8 @@ const Sd = { Get: Xc }, Ed = function({
8325
8311
  tabs: i,
8326
8312
  modules: o
8327
8313
  }) {
8328
- const [d] = ee.useTabs(s), [l, _] = x.useState(!1);
8329
- return x.useEffect(() => {
8314
+ const [d] = ee.useTabs(s), [l, _] = g.useState(!1);
8315
+ return g.useEffect(() => {
8330
8316
  _(!0);
8331
8317
  }, []), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
8332
8318
  /* @__PURE__ */ n.jsxs("div", { className: "list-info", children: [
@@ -8339,19 +8325,19 @@ const Sd = { Get: Xc }, Ed = function({
8339
8325
  ] });
8340
8326
  };
8341
8327
  let Vc = ({ modules: e, t }) => {
8342
- const a = x.lazy(() => rt(e + "/pages/" + t + ".tsx"));
8343
- return /* @__PURE__ */ n.jsx(x.Suspense, { fallback: "", children: /* @__PURE__ */ n.jsx(a, {}) });
8328
+ const a = g.lazy(() => rt(e + "/pages/" + t + ".tsx"));
8329
+ return /* @__PURE__ */ n.jsx(g.Suspense, { fallback: "", children: /* @__PURE__ */ n.jsx(a, {}) });
8344
8330
  }, Qc = ({ button: e }) => {
8345
- const [t, a] = x.useState(e);
8346
- return Ce.useListener("button", a), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
8331
+ const [t, a] = g.useState(e);
8332
+ return ve.useListener("button", a), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
8347
8333
  " ",
8348
8334
  t
8349
8335
  ] });
8350
8336
  };
8351
8337
  const Id = { Open: to };
8352
8338
  function Dd({ active: e, onActive: t, id: a, name: r }) {
8353
- const [s, i] = x.useState(!!e);
8354
- x.useEffect(() => {
8339
+ const [s, i] = g.useState(!!e);
8340
+ g.useEffect(() => {
8355
8341
  i(!!e);
8356
8342
  }, [e]);
8357
8343
  let o = () => {
@@ -8375,9 +8361,9 @@ function Dd({ active: e, onActive: t, id: a, name: r }) {
8375
8361
  }
8376
8362
  export {
8377
8363
  Uo as Action,
8378
- ze as Alert,
8364
+ Ke as Alert,
8379
8365
  nd as Animation,
8380
- Ke as Api,
8366
+ ze as Api,
8381
8367
  _d as Badge,
8382
8368
  od as Bookmarks,
8383
8369
  ad as Browser,
@@ -8387,8 +8373,8 @@ export {
8387
8373
  En as Component,
8388
8374
  A as Crypto,
8389
8375
  ud as DataBase,
8390
- Ce as Event,
8391
- Ce as Events,
8376
+ ve as Event,
8377
+ ve as Events,
8392
8378
  hd as Files,
8393
8379
  jd as Filter,
8394
8380
  pd as Form,
@@ -8403,7 +8389,7 @@ export {
8403
8389
  cd as Lite,
8404
8390
  xd as Loading,
8405
8391
  Ne as Modal,
8406
- me as Notice,
8392
+ fe as Notice,
8407
8393
  yd as Notifications,
8408
8394
  wd as Pagination,
8409
8395
  Id as Phone,