@elcrm/telegram 0.0.2 → 0.0.3

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,21 +1,21 @@
1
- import './index.css';var sa = Object.defineProperty;
2
- var oa = (e, t, a) => t in e ? sa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
- var at = (e, t, a) => (oa(e, typeof t != "symbol" ? t + "" : t, a), a);
1
+ import './index.css';var la = Object.defineProperty;
2
+ var ca = (e, t, a) => t in e ? la(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
+ var it = (e, t, a) => (ca(e, typeof t != "symbol" ? t + "" : t, a), a);
4
4
  import k from "react";
5
- let ht = {};
6
- const la = (e) => {
7
- ht = e;
8
- }, ca = (e) => ht.enCode(e), _a = (e) => ht.deCode(e), P = { enCode: ca, deCode: _a, New: la }, R = {}, Z = {}, pe = {}, Xt = {}, se = {};
9
- let da = "M06";
10
- function ua() {
11
- return da;
5
+ let gt = {};
6
+ const _a = (e) => {
7
+ gt = e;
8
+ }, da = (e) => gt.enCode(e), ua = (e) => gt.deCode(e), P = { enCode: da, deCode: ua, New: _a }, R = {}, Z = {}, ve = {}, en = {}, se = {};
9
+ let fa = "M06";
10
+ function ma() {
11
+ return fa;
12
12
  }
13
13
  function re() {
14
14
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
15
15
  (e) => localStorage.removeItem(e)
16
16
  ), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
17
17
  }
18
- function fa(e) {
18
+ function ha(e) {
19
19
  e = e.split("/"), R.page = "Main", R.module = e[0], R.tab = e[1], R.id = 0, sessionStorage.setItem(
20
20
  "f",
21
21
  P.enCode({
@@ -27,24 +27,24 @@ function fa(e) {
27
27
  })
28
28
  ), Z.page(R.page);
29
29
  }
30
- function ma(e) {
30
+ function xa(e) {
31
31
  return localStorage.setItem("d", e);
32
32
  }
33
- function ha() {
33
+ function ga() {
34
34
  let e = localStorage.getItem("d");
35
35
  return e !== "" && e !== "undefined" && e !== null ? e : "";
36
36
  }
37
- function xa(e) {
37
+ function pa(e) {
38
38
  return localStorage.setItem("a", e);
39
39
  }
40
- function ga() {
40
+ function va() {
41
41
  let e = localStorage.getItem("a");
42
42
  return e !== "" && e !== "undefined" && e !== null ? e : "";
43
43
  }
44
- function pa(e) {
44
+ function ka(e) {
45
45
  localStorage.setItem("p", P.enCode(e));
46
46
  }
47
- function st() {
47
+ function lt() {
48
48
  let e = localStorage.getItem("p");
49
49
  if (e !== "" && e !== "undefined" && e !== null) {
50
50
  let t = P.deCode(e);
@@ -52,99 +52,99 @@ function st() {
52
52
  } else
53
53
  return re(), !1;
54
54
  }
55
- function va() {
56
- const [e, t] = k.useState(Qt()), a = (r) => {
55
+ function Ca() {
56
+ const [e, t] = k.useState(tn()), a = (r) => {
57
57
  t(r);
58
58
  };
59
59
  return Z.page = a, [e];
60
60
  }
61
- function ka(e, t = !0) {
61
+ function ba(e, t = !0) {
62
62
  R.page = e, sessionStorage.setItem("f", P.enCode(R)), t && Z.page(e);
63
63
  }
64
- function Qt() {
64
+ function tn() {
65
65
  return R.page;
66
66
  }
67
- function Ca(e) {
67
+ function ja(e) {
68
68
  return R.page === e;
69
69
  }
70
70
  function ya(e) {
71
71
  if (typeof e != "function") {
72
- const [t, a] = k.useState(e || en()), r = (i) => {
72
+ const [t, a] = k.useState(e || nn()), r = (i) => {
73
73
  a(i);
74
74
  };
75
75
  return Z.module = r, [t];
76
76
  } else
77
77
  Z.module = e;
78
78
  }
79
- function ba(e, t = !0) {
79
+ function wa(e, t = !0) {
80
80
  R.module = e, sessionStorage.setItem("f", P.enCode(R)), t && Z.module(e);
81
81
  }
82
- function en() {
82
+ function nn() {
83
83
  return R.module;
84
84
  }
85
- function ja(e) {
85
+ function Sa(e) {
86
86
  return R.module === e;
87
87
  }
88
- function wa(e) {
88
+ function Ea(e) {
89
89
  if (typeof e != "function") {
90
- const [t, a] = k.useState(e || Ke()), [r, i] = k.useState(!1);
90
+ const [t, a] = k.useState(e || Ze()), [r, i] = k.useState(!1);
91
91
  return k.useEffect(() => {
92
92
  i(!0);
93
93
  }, []), Z.tabs = a, [t, r];
94
94
  } else
95
95
  Z.tabs = e;
96
96
  }
97
- function Sa(e, t = !0) {
97
+ function Ta(e, t = !0) {
98
98
  if (R.tab = e, sessionStorage.setItem("f", P.enCode(R)), !!t)
99
99
  if (Z.tabs)
100
100
  Z.tabs(e);
101
101
  else
102
102
  throw new Error("useTabs not found");
103
103
  }
104
- function Ke() {
104
+ function Ze() {
105
105
  return R.tab;
106
106
  }
107
- function Ea(e) {
107
+ function Ra(e) {
108
108
  return R.tab === e;
109
109
  }
110
- function Ta(e) {
110
+ function Ba(e) {
111
111
  if (typeof e != "function") {
112
- const [t, a] = k.useState(e || tn()), r = (i) => {
112
+ const [t, a] = k.useState(e || an()), r = (i) => {
113
113
  a(i);
114
114
  };
115
115
  return Z.id = r, [t];
116
116
  } else
117
117
  Z.id = e;
118
118
  }
119
- function Ra(e) {
119
+ function Na(e) {
120
120
  Z.id = e;
121
121
  }
122
122
  function Da(e, t = !0) {
123
123
  R.id = e, sessionStorage.setItem("f", P.enCode(R)), t && Z.id(e);
124
124
  }
125
- function tn() {
125
+ function an() {
126
126
  return R.id;
127
127
  }
128
128
  function Ia(e) {
129
129
  return Number(R.id) === e;
130
130
  }
131
- function Ba(e, t, a) {
131
+ function Ma(e, t, a) {
132
132
  R.module = e, R.id = a, R.tab = t, sessionStorage.setItem("f", P.enCode(R)), Z.module(e), Z.tabs(t);
133
133
  }
134
- function Na(e) {
135
- pe.data = e[0], delete pe.data.id, document.body.dataset.theme = pe.data.s15, localStorage.setItem("s", P.enCode(pe.data));
134
+ function Fa(e) {
135
+ ve.data = e[0], delete ve.data.id, document.body.dataset.theme = ve.data.s15, localStorage.setItem("s", P.enCode(ve.data));
136
136
  }
137
- function Ma(e, t) {
138
- pe.data[e] = t, localStorage.setItem("s", P.enCode(pe.data));
137
+ function Pa(e, t) {
138
+ ve.data[e] = t, localStorage.setItem("s", P.enCode(ve.data));
139
139
  }
140
- function Fa(e) {
140
+ function La(e) {
141
141
  let t = localStorage.getItem("s");
142
142
  return t === null ? {} : (t = P.deCode(t), t ? e !== void 0 ? t[e] : t : re());
143
143
  }
144
- function nn(e) {
144
+ function rn(e) {
145
145
  localStorage.setItem("m", P.enCode({ data: e }));
146
146
  }
147
- function Pa() {
147
+ function $a() {
148
148
  let e = localStorage.getItem("m");
149
149
  if (e !== "" && e !== "undefined" && e !== null) {
150
150
  let t = localStorage.getItem("m"), a = P.deCode(t);
@@ -159,21 +159,21 @@ function Pa() {
159
159
  } else
160
160
  return re(), !1;
161
161
  }
162
- function La(e) {
162
+ function Oa(e) {
163
163
  Z.sort = e;
164
164
  }
165
- function an(e) {
165
+ function sn(e) {
166
166
  let t = localStorage.getItem("b");
167
- t = t === null ? {} : P.deCode(t), t[Ke()] = e, localStorage.setItem("b", P.enCode(t));
167
+ t = t === null ? {} : P.deCode(t), t[Ze()] = e, localStorage.setItem("b", P.enCode(t));
168
168
  }
169
- function ot() {
169
+ function ct() {
170
170
  let e = localStorage.getItem("b");
171
- return e === null ? {} : (e = P.deCode(e), e = e[Ke()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
171
+ return e === null ? {} : (e = P.deCode(e), e = e[Ze()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
172
172
  }
173
- function rn(e) {
173
+ function on(e) {
174
174
  localStorage.setItem("c", P.enCode(e));
175
175
  }
176
- function $a(e, t) {
176
+ function Aa(e, t) {
177
177
  var r;
178
178
  let a = localStorage.getItem("c");
179
179
  if (a !== "" && a !== "undefined" && a !== null) {
@@ -185,32 +185,32 @@ function $a(e, t) {
185
185
  function Ie(e) {
186
186
  se.data = e, localStorage.setItem("q", P.enCode(se.data));
187
187
  }
188
- function Oa(e, t) {
188
+ function Wa(e, t) {
189
189
  se.data = { ...se.data, [e]: t }, localStorage.setItem("q", P.enCode(se.data));
190
190
  }
191
- function he(e, t) {
191
+ function xe(e, t) {
192
192
  if (!se.data) {
193
193
  let a = localStorage.getItem("q");
194
194
  a && (se.data = P.deCode(a));
195
195
  }
196
196
  return e === void 0 && t === void 0 ? se.data : e !== void 0 && t === void 0 ? se.data[e] : se.data[e][t];
197
197
  }
198
- function Aa(e) {
199
- Xt.data = e;
198
+ function Ga(e) {
199
+ en.data = e;
200
200
  }
201
- function Wa(e) {
202
- return Xt.data[e];
201
+ function za(e) {
202
+ return en.data[e];
203
203
  }
204
- function Ga(e) {
204
+ function Ka(e) {
205
205
  R.payment = e;
206
206
  }
207
- function Ka() {
207
+ function Za() {
208
208
  return R.payment;
209
209
  }
210
- function sn(e) {
210
+ function ln(e) {
211
211
  localStorage.setItem("u", P.enCode(e));
212
212
  }
213
- function za() {
213
+ function Ua() {
214
214
  let e = localStorage.getItem("u");
215
215
  if (e !== "" && e !== "undefined" && e !== null) {
216
216
  let t = P.deCode(e);
@@ -218,7 +218,7 @@ function za() {
218
218
  } else
219
219
  return re(), !1;
220
220
  }
221
- function Za(e) {
221
+ function Va(e) {
222
222
  const t = (a) => {
223
223
  let r = localStorage.getItem(a);
224
224
  if (r !== "" && r !== "undefined" && r !== null)
@@ -235,50 +235,50 @@ function Za(e) {
235
235
  };
236
236
  e.forEach((a) => t(a));
237
237
  }
238
- function Ua(e) {
238
+ function Ya(e) {
239
239
  return R[e] === void 0 ? (R[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : R[e];
240
240
  }
241
- function Va(e, t) {
241
+ function Ha(e, t) {
242
242
  R[e] = { data: t.data, time: t.time }, localStorage.setItem(e, P.enCode(R[e]));
243
243
  }
244
- function Ya(e, t, a) {
244
+ function qa(e, t, a) {
245
245
  R[e].time = a, R[e].data[t.item][t.name] = t.value, localStorage.setItem(e, P.enCode(R[e]));
246
246
  }
247
247
  const ce = {
248
- setSSID: ma,
249
- getSSID: ha,
250
- getPORT: st,
251
- setPORT: pa,
252
- setAUTH: xa,
253
- getAUTH: ga,
248
+ setSSID: xa,
249
+ getSSID: ga,
250
+ getPORT: lt,
251
+ setPORT: ka,
252
+ setAUTH: pa,
253
+ getAUTH: va,
254
254
  Logaut: re,
255
- Start: fa,
256
- setMenu: nn,
257
- getMenu: Pa,
258
- useSort: La,
259
- setSort: an,
260
- getSort: ot,
261
- setCompany: rn,
262
- getCompany: $a,
255
+ Start: ha,
256
+ setMenu: rn,
257
+ getMenu: $a,
258
+ useSort: Oa,
259
+ setSort: sn,
260
+ getSort: ct,
261
+ setCompany: on,
262
+ getCompany: Aa,
263
263
  setSelect: Ie,
264
- addSelect: Oa,
265
- getSelect: he,
266
- setApi: Aa,
267
- getApi: Wa,
268
- setPayment: Ga,
269
- getPayment: Ka,
270
- setUser: sn,
271
- getUser: za,
272
- getDefaultModules: ua,
273
- getBase: Ua,
274
- setBase: Va,
275
- editBase: Ya,
276
- loadBase: Za
277
- }, on = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK", Ha = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), Gt = typeof window < "u" && window.Blob && new Blob([Ha(on)], { type: "text/javascript;charset=utf-8" });
278
- function ln(e) {
264
+ addSelect: Wa,
265
+ getSelect: xe,
266
+ setApi: Ga,
267
+ getApi: za,
268
+ setPayment: Ka,
269
+ getPayment: Za,
270
+ setUser: ln,
271
+ getUser: Ua,
272
+ getDefaultModules: ma,
273
+ getBase: Ya,
274
+ setBase: Ha,
275
+ editBase: qa,
276
+ loadBase: Va
277
+ }, cn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK", Ja = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), Kt = typeof window < "u" && window.Blob && new Blob([Ja(cn)], { type: "text/javascript;charset=utf-8" });
278
+ function _n(e) {
279
279
  let t;
280
280
  try {
281
- if (t = Gt && (window.URL || window.webkitURL).createObjectURL(Gt), !t)
281
+ if (t = Kt && (window.URL || window.webkitURL).createObjectURL(Kt), !t)
282
282
  throw "";
283
283
  const a = new Worker(t, {
284
284
  name: e == null ? void 0 : e.name
@@ -288,7 +288,7 @@ function ln(e) {
288
288
  }), a;
289
289
  } catch {
290
290
  return new Worker(
291
- "data:text/javascript;base64," + on,
291
+ "data:text/javascript;base64," + cn,
292
292
  {
293
293
  name: e == null ? void 0 : e.name
294
294
  }
@@ -298,94 +298,94 @@ function ln(e) {
298
298
  }
299
299
  }
300
300
  const de = {};
301
- function qa(e) {
301
+ function Xa(e) {
302
302
  return e && (de.s = e), de.s;
303
303
  }
304
- function Ja(e) {
304
+ function Qa(e) {
305
305
  return e && (de.a = e), de.a;
306
306
  }
307
- function Xa(e) {
307
+ function er(e) {
308
308
  return e && (de.c = e), de.c;
309
309
  }
310
- function Qa(e) {
310
+ function tr(e) {
311
311
  return e && (de.h = e), de.h;
312
312
  }
313
- const xt = { version: { Api: Ja, Server: qa, Client: Xa }, Host: Qa };
314
- let er = "api", tr = "elcrm", nr = "online";
315
- function ar() {
313
+ const pt = { version: { Api: Qa, Server: Xa, Client: er }, Host: tr };
314
+ let nr = "api", ar = "elcrm", rr = "online";
315
+ function ir() {
316
316
  let e = ce.getPORT(), t = "", a = "";
317
317
  return e.address === "localhost" ? (t = `http://localhost:${e.socket}/documents`, a = `http://localhost:${e.socket}/files`) : (t = "https://" + e.address + "/documents", a = "https://" + e.address + "/files"), {
318
318
  documents: t,
319
319
  files: a
320
320
  };
321
321
  }
322
- let cn = `${er}.${tr}.${nr}`;
323
- function rr(e) {
322
+ let dn = `${nr}.${ar}.${rr}`;
323
+ function sr(e) {
324
324
  return "https://" + ce.getPORT().address + "/audio/" + e;
325
325
  }
326
- function ze(e, t = {}, a = ce.getAUTH()) {
326
+ function Ue(e, t = {}, a = ce.getAUTH()) {
327
327
  return new Promise((r) => {
328
- const i = new ln();
328
+ const i = new _n();
329
329
  i.onmessage = (s) => {
330
330
  r(s.data), i.terminate();
331
331
  }, i.postMessage({
332
332
  link: e,
333
333
  data: t,
334
334
  ssid: a,
335
- host: xt.Host() || `https://${cn}/`
335
+ host: pt.Host() || `https://${dn}/`
336
336
  });
337
337
  });
338
338
  }
339
- function ir(e, t = {}, a = ce.getAUTH()) {
339
+ function or(e, t = {}, a = ce.getAUTH()) {
340
340
  return new Promise((r) => {
341
- const i = new ln();
341
+ const i = new _n();
342
342
  i.onmessage = (s) => {
343
343
  r(s.data), i.terminate();
344
344
  }, i.postMessage({
345
345
  link: e,
346
346
  data: t,
347
347
  ssid: a,
348
- host: xt.Host() + "modules/" || `https://${cn}/modules`
348
+ host: pt.Host() + "modules/" || `https://${dn}/modules`
349
349
  });
350
350
  });
351
351
  }
352
- function sr(e, t = {}, a) {
352
+ function lr(e, t = {}, a) {
353
353
  const [r, i] = k.useState({ status: "load" }), s = async (l) => {
354
- let c = await ze(e, l, a);
354
+ let c = await Ue(e, l, a);
355
355
  i(c);
356
356
  };
357
357
  return k.useEffect(() => {
358
358
  s(t);
359
359
  }, []), [r, s];
360
360
  }
361
- let _n = {
361
+ let un = {
362
362
  "Content-type": "application/json;charset=utf-8",
363
363
  ssid: ce.getAUTH() || ""
364
364
  };
365
- async function or(e, t, a = {}) {
365
+ async function cr(e, t, a = {}) {
366
366
  try {
367
- return await (await ze("https://" + e + "/" + t, {
367
+ return await (await Ue("https://" + e + "/" + t, {
368
368
  method: "POST",
369
- headers: _n,
369
+ headers: un,
370
370
  body: JSON.stringify(a)
371
371
  })).json();
372
372
  } catch {
373
373
  return { status: "error" };
374
374
  }
375
375
  }
376
- async function lr(e, t = {}) {
376
+ async function _r(e, t = {}) {
377
377
  try {
378
- return await (await ze("https://tb.elcrm.online/v1/" + e, {
378
+ return await (await Ue("https://tb.elcrm.online/v1/" + e, {
379
379
  method: "POST",
380
- headers: _n,
380
+ headers: un,
381
381
  body: JSON.stringify(t)
382
382
  })).json();
383
383
  } catch {
384
384
  return { status: "error" };
385
385
  }
386
386
  }
387
- const Ko = { audio: rr, fetch: ze, modules: ir, remoute: or, url: ar, telegram: lr, use: sr };
388
- var lt = { exports: {} }, Se = {};
387
+ const Vo = { audio: sr, fetch: Ue, modules: or, remoute: cr, url: ir, telegram: _r, use: lr };
388
+ var _t = { exports: {} }, Re = {};
389
389
  /**
390
390
  * @license React
391
391
  * react-jsx-runtime.production.min.js
@@ -395,11 +395,11 @@ var lt = { exports: {} }, Se = {};
395
395
  * This source code is licensed under the MIT license found in the
396
396
  * LICENSE file in the root directory of this source tree.
397
397
  */
398
- var Kt;
399
- function cr() {
400
- if (Kt)
401
- return Se;
402
- Kt = 1;
398
+ var Zt;
399
+ function dr() {
400
+ if (Zt)
401
+ return Re;
402
+ Zt = 1;
403
403
  var e = k, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
404
404
  function l(c, d, _) {
405
405
  var u, f = {}, m = null, h = null;
@@ -411,9 +411,9 @@ function cr() {
411
411
  f[u] === void 0 && (f[u] = d[u]);
412
412
  return { $$typeof: t, type: c, key: m, ref: h, props: f, _owner: i.current };
413
413
  }
414
- return Se.Fragment = a, Se.jsx = l, Se.jsxs = l, Se;
414
+ return Re.Fragment = a, Re.jsx = l, Re.jsxs = l, Re;
415
415
  }
416
- var Ee = {};
416
+ var Be = {};
417
417
  /**
418
418
  * @license React
419
419
  * react-jsx-runtime.development.js
@@ -423,27 +423,27 @@ var Ee = {};
423
423
  * This source code is licensed under the MIT license found in the
424
424
  * LICENSE file in the root directory of this source tree.
425
425
  */
426
- var zt;
427
- function _r() {
428
- return zt || (zt = 1, process.env.NODE_ENV !== "production" && function() {
429
- var e = k, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), v = Symbol.iterator, p = "@@iterator";
430
- function g(o) {
426
+ var Ut;
427
+ function ur() {
428
+ return Ut || (Ut = 1, process.env.NODE_ENV !== "production" && function() {
429
+ var e = k, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), g = Symbol.iterator, v = "@@iterator";
430
+ function p(o) {
431
431
  if (o === null || typeof o != "object")
432
432
  return null;
433
- var x = v && o[v] || o[p];
433
+ var x = g && o[g] || o[v];
434
434
  return typeof x == "function" ? x : null;
435
435
  }
436
- var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
437
- function j(o) {
436
+ var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
437
+ function y(o) {
438
438
  {
439
439
  for (var x = arguments.length, C = new Array(x > 1 ? x - 1 : 0), T = 1; T < x; T++)
440
440
  C[T - 1] = arguments[T];
441
- D("error", o, C);
441
+ B("error", o, C);
442
442
  }
443
443
  }
444
- function D(o, x, C) {
444
+ function B(o, x, C) {
445
445
  {
446
- var T = y.ReactDebugCurrentFrame, L = T.getStackAddendum();
446
+ var T = b.ReactDebugCurrentFrame, L = T.getStackAddendum();
447
447
  L !== "" && (x += "%s", C = C.concat([L]));
448
448
  var $ = C.map(function(M) {
449
449
  return String(M);
@@ -451,10 +451,10 @@ function _r() {
451
451
  $.unshift("Warning: " + x), Function.prototype.apply.call(console[o], console, $);
452
452
  }
453
453
  }
454
- var I = !1, b = !1, S = !1, w = !1, E = !1, O;
454
+ var N = !1, j = !1, S = !1, w = !1, E = !1, O;
455
455
  O = Symbol.for("react.module.reference");
456
456
  function q(o) {
457
- return !!(typeof o == "string" || typeof o == "function" || o === r || o === s || E || o === i || o === _ || o === u || w || o === h || I || b || S || typeof o == "object" && o !== null && (o.$$typeof === m || o.$$typeof === f || o.$$typeof === l || o.$$typeof === c || o.$$typeof === d || // This needs to include all possible module reference object
457
+ return !!(typeof o == "string" || typeof o == "function" || o === r || o === s || E || o === i || o === _ || o === u || w || o === h || N || j || S || typeof o == "object" && o !== null && (o.$$typeof === m || o.$$typeof === f || o.$$typeof === l || o.$$typeof === c || o.$$typeof === d || // This needs to include all possible module reference object
458
458
  // types supported by any Flight configuration anywhere since
459
459
  // we don't know which Flight build this will end up being used
460
460
  // with.
@@ -473,7 +473,7 @@ function _r() {
473
473
  function F(o) {
474
474
  if (o == null)
475
475
  return null;
476
- if (typeof o.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
476
+ if (typeof o.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
477
477
  return o.displayName || o.name || null;
478
478
  if (typeof o == "string")
479
479
  return o;
@@ -515,18 +515,18 @@ function _r() {
515
515
  }
516
516
  return null;
517
517
  }
518
- var V = Object.assign, Y = 0, Fe, te, be, Ve, Pe, wt, St;
519
- function Et() {
518
+ var V = Object.assign, Y = 0, Le, te, Se, He, $e, Et, Tt;
519
+ function Rt() {
520
520
  }
521
- Et.__reactDisabledLog = !0;
522
- function Nn() {
521
+ Rt.__reactDisabledLog = !0;
522
+ function Fn() {
523
523
  {
524
524
  if (Y === 0) {
525
- Fe = console.log, te = console.info, be = console.warn, Ve = console.error, Pe = console.group, wt = console.groupCollapsed, St = console.groupEnd;
525
+ Le = console.log, te = console.info, Se = console.warn, He = console.error, $e = console.group, Et = console.groupCollapsed, Tt = console.groupEnd;
526
526
  var o = {
527
527
  configurable: !0,
528
528
  enumerable: !0,
529
- value: Et,
529
+ value: Rt,
530
530
  writable: !0
531
531
  };
532
532
  Object.defineProperties(console, {
@@ -542,7 +542,7 @@ function _r() {
542
542
  Y++;
543
543
  }
544
544
  }
545
- function Mn() {
545
+ function Pn() {
546
546
  {
547
547
  if (Y--, Y === 0) {
548
548
  var o = {
@@ -552,64 +552,64 @@ function _r() {
552
552
  };
553
553
  Object.defineProperties(console, {
554
554
  log: V({}, o, {
555
- value: Fe
555
+ value: Le
556
556
  }),
557
557
  info: V({}, o, {
558
558
  value: te
559
559
  }),
560
560
  warn: V({}, o, {
561
- value: be
561
+ value: Se
562
562
  }),
563
563
  error: V({}, o, {
564
- value: Ve
564
+ value: He
565
565
  }),
566
566
  group: V({}, o, {
567
- value: Pe
567
+ value: $e
568
568
  }),
569
569
  groupCollapsed: V({}, o, {
570
- value: wt
570
+ value: Et
571
571
  }),
572
572
  groupEnd: V({}, o, {
573
- value: St
573
+ value: Tt
574
574
  })
575
575
  });
576
576
  }
577
- Y < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
577
+ Y < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
578
578
  }
579
579
  }
580
- var Ye = y.ReactCurrentDispatcher, He;
581
- function Le(o, x, C) {
580
+ var qe = b.ReactCurrentDispatcher, Je;
581
+ function Oe(o, x, C) {
582
582
  {
583
- if (He === void 0)
583
+ if (Je === void 0)
584
584
  try {
585
585
  throw Error();
586
586
  } catch (L) {
587
587
  var T = L.stack.trim().match(/\n( *(at )?)/);
588
- He = T && T[1] || "";
588
+ Je = T && T[1] || "";
589
589
  }
590
590
  return `
591
- ` + He + o;
591
+ ` + Je + o;
592
592
  }
593
593
  }
594
- var qe = !1, $e;
594
+ var Xe = !1, Ae;
595
595
  {
596
- var Fn = typeof WeakMap == "function" ? WeakMap : Map;
597
- $e = new Fn();
596
+ var Ln = typeof WeakMap == "function" ? WeakMap : Map;
597
+ Ae = new Ln();
598
598
  }
599
- function Tt(o, x) {
600
- if (!o || qe)
599
+ function Bt(o, x) {
600
+ if (!o || Xe)
601
601
  return "";
602
602
  {
603
- var C = $e.get(o);
603
+ var C = Ae.get(o);
604
604
  if (C !== void 0)
605
605
  return C;
606
606
  }
607
607
  var T;
608
- qe = !0;
608
+ Xe = !0;
609
609
  var L = Error.prepareStackTrace;
610
610
  Error.prepareStackTrace = void 0;
611
611
  var $;
612
- $ = Ye.current, Ye.current = null, Nn();
612
+ $ = qe.current, qe.current = null, Fn();
613
613
  try {
614
614
  if (x) {
615
615
  var M = function() {
@@ -644,103 +644,103 @@ function _r() {
644
644
  }
645
645
  } catch (J) {
646
646
  if (J && T && typeof J.stack == "string") {
647
- for (var N = J.stack.split(`
647
+ for (var I = J.stack.split(`
648
648
  `), H = T.stack.split(`
649
- `), W = N.length - 1, K = H.length - 1; W >= 1 && K >= 0 && N[W] !== H[K]; )
650
- K--;
651
- for (; W >= 1 && K >= 0; W--, K--)
652
- if (N[W] !== H[K]) {
653
- if (W !== 1 || K !== 1)
649
+ `), W = I.length - 1, z = H.length - 1; W >= 1 && z >= 0 && I[W] !== H[z]; )
650
+ z--;
651
+ for (; W >= 1 && z >= 0; W--, z--)
652
+ if (I[W] !== H[z]) {
653
+ if (W !== 1 || z !== 1)
654
654
  do
655
- if (W--, K--, K < 0 || N[W] !== H[K]) {
655
+ if (W--, z--, z < 0 || I[W] !== H[z]) {
656
656
  var Q = `
657
- ` + N[W].replace(" at new ", " at ");
658
- return o.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", o.displayName)), typeof o == "function" && $e.set(o, Q), Q;
657
+ ` + I[W].replace(" at new ", " at ");
658
+ return o.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", o.displayName)), typeof o == "function" && Ae.set(o, Q), Q;
659
659
  }
660
- while (W >= 1 && K >= 0);
660
+ while (W >= 1 && z >= 0);
661
661
  break;
662
662
  }
663
663
  }
664
664
  } finally {
665
- qe = !1, Ye.current = $, Mn(), Error.prepareStackTrace = L;
665
+ Xe = !1, qe.current = $, Pn(), Error.prepareStackTrace = L;
666
666
  }
667
- var ge = o ? o.displayName || o.name : "", fe = ge ? Le(ge) : "";
668
- return typeof o == "function" && $e.set(o, fe), fe;
667
+ var pe = o ? o.displayName || o.name : "", fe = pe ? Oe(pe) : "";
668
+ return typeof o == "function" && Ae.set(o, fe), fe;
669
669
  }
670
- function Pn(o, x, C) {
671
- return Tt(o, !1);
670
+ function $n(o, x, C) {
671
+ return Bt(o, !1);
672
672
  }
673
- function Ln(o) {
673
+ function On(o) {
674
674
  var x = o.prototype;
675
675
  return !!(x && x.isReactComponent);
676
676
  }
677
- function Oe(o, x, C) {
677
+ function We(o, x, C) {
678
678
  if (o == null)
679
679
  return "";
680
680
  if (typeof o == "function")
681
- return Tt(o, Ln(o));
681
+ return Bt(o, On(o));
682
682
  if (typeof o == "string")
683
- return Le(o);
683
+ return Oe(o);
684
684
  switch (o) {
685
685
  case _:
686
- return Le("Suspense");
686
+ return Oe("Suspense");
687
687
  case u:
688
- return Le("SuspenseList");
688
+ return Oe("SuspenseList");
689
689
  }
690
690
  if (typeof o == "object")
691
691
  switch (o.$$typeof) {
692
692
  case d:
693
- return Pn(o.render);
693
+ return $n(o.render);
694
694
  case f:
695
- return Oe(o.type, x, C);
695
+ return We(o.type, x, C);
696
696
  case m: {
697
697
  var T = o, L = T._payload, $ = T._init;
698
698
  try {
699
- return Oe($(L), x, C);
699
+ return We($(L), x, C);
700
700
  } catch {
701
701
  }
702
702
  }
703
703
  }
704
704
  return "";
705
705
  }
706
- var je = Object.prototype.hasOwnProperty, Rt = {}, Dt = y.ReactDebugCurrentFrame;
707
- function Ae(o) {
706
+ var Ee = Object.prototype.hasOwnProperty, Nt = {}, Dt = b.ReactDebugCurrentFrame;
707
+ function Ge(o) {
708
708
  if (o) {
709
- var x = o._owner, C = Oe(o.type, o._source, x ? x.type : null);
709
+ var x = o._owner, C = We(o.type, o._source, x ? x.type : null);
710
710
  Dt.setExtraStackFrame(C);
711
711
  } else
712
712
  Dt.setExtraStackFrame(null);
713
713
  }
714
- function $n(o, x, C, T, L) {
714
+ function An(o, x, C, T, L) {
715
715
  {
716
- var $ = Function.call.bind(je);
716
+ var $ = Function.call.bind(Ee);
717
717
  for (var M in o)
718
718
  if ($(o, M)) {
719
- var N = void 0;
719
+ var I = void 0;
720
720
  try {
721
721
  if (typeof o[M] != "function") {
722
722
  var H = Error((T || "React class") + ": " + C + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
723
723
  throw H.name = "Invariant Violation", H;
724
724
  }
725
- N = o[M](x, M, T, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
725
+ I = o[M](x, M, T, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
726
726
  } catch (W) {
727
- N = W;
727
+ I = W;
728
728
  }
729
- N && !(N instanceof Error) && (Ae(L), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", T || "React class", C, M, typeof N), Ae(null)), N instanceof Error && !(N.message in Rt) && (Rt[N.message] = !0, Ae(L), j("Failed %s type: %s", C, N.message), Ae(null));
729
+ I && !(I instanceof Error) && (Ge(L), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", T || "React class", C, M, typeof I), Ge(null)), I instanceof Error && !(I.message in Nt) && (Nt[I.message] = !0, Ge(L), y("Failed %s type: %s", C, I.message), Ge(null));
730
730
  }
731
731
  }
732
732
  }
733
- var On = Array.isArray;
734
- function Je(o) {
735
- return On(o);
733
+ var Wn = Array.isArray;
734
+ function Qe(o) {
735
+ return Wn(o);
736
736
  }
737
- function An(o) {
737
+ function Gn(o) {
738
738
  {
739
739
  var x = typeof Symbol == "function" && Symbol.toStringTag, C = x && o[Symbol.toStringTag] || o.constructor.name || "Object";
740
740
  return C;
741
741
  }
742
742
  }
743
- function Wn(o) {
743
+ function zn(o) {
744
744
  try {
745
745
  return It(o), !1;
746
746
  } catch {
@@ -750,43 +750,43 @@ function _r() {
750
750
  function It(o) {
751
751
  return "" + o;
752
752
  }
753
- function Bt(o) {
754
- if (Wn(o))
755
- return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", An(o)), It(o);
753
+ function Mt(o) {
754
+ if (zn(o))
755
+ return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Gn(o)), It(o);
756
756
  }
757
- var we = y.ReactCurrentOwner, Gn = {
757
+ var Te = b.ReactCurrentOwner, Kn = {
758
758
  key: !0,
759
759
  ref: !0,
760
760
  __self: !0,
761
761
  __source: !0
762
- }, Nt, Mt, Xe;
763
- Xe = {};
764
- function Kn(o) {
765
- if (je.call(o, "ref")) {
762
+ }, Ft, Pt, et;
763
+ et = {};
764
+ function Zn(o) {
765
+ if (Ee.call(o, "ref")) {
766
766
  var x = Object.getOwnPropertyDescriptor(o, "ref").get;
767
767
  if (x && x.isReactWarning)
768
768
  return !1;
769
769
  }
770
770
  return o.ref !== void 0;
771
771
  }
772
- function zn(o) {
773
- if (je.call(o, "key")) {
772
+ function Un(o) {
773
+ if (Ee.call(o, "key")) {
774
774
  var x = Object.getOwnPropertyDescriptor(o, "key").get;
775
775
  if (x && x.isReactWarning)
776
776
  return !1;
777
777
  }
778
778
  return o.key !== void 0;
779
779
  }
780
- function Zn(o, x) {
781
- if (typeof o.ref == "string" && we.current && x && we.current.stateNode !== x) {
782
- var C = F(we.current.type);
783
- Xe[C] || (j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(we.current.type), o.ref), Xe[C] = !0);
780
+ function Vn(o, x) {
781
+ if (typeof o.ref == "string" && Te.current && x && Te.current.stateNode !== x) {
782
+ var C = F(Te.current.type);
783
+ et[C] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(Te.current.type), o.ref), et[C] = !0);
784
784
  }
785
785
  }
786
- function Un(o, x) {
786
+ function Yn(o, x) {
787
787
  {
788
788
  var C = function() {
789
- Nt || (Nt = !0, j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
789
+ Ft || (Ft = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
790
790
  };
791
791
  C.isReactWarning = !0, Object.defineProperty(o, "key", {
792
792
  get: C,
@@ -794,10 +794,10 @@ function _r() {
794
794
  });
795
795
  }
796
796
  }
797
- function Vn(o, x) {
797
+ function Hn(o, x) {
798
798
  {
799
799
  var C = function() {
800
- Mt || (Mt = !0, j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
800
+ Pt || (Pt = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
801
801
  };
802
802
  C.isReactWarning = !0, Object.defineProperty(o, "ref", {
803
803
  get: C,
@@ -805,8 +805,8 @@ function _r() {
805
805
  });
806
806
  }
807
807
  }
808
- var Yn = function(o, x, C, T, L, $, M) {
809
- var N = {
808
+ var qn = function(o, x, C, T, L, $, M) {
809
+ var I = {
810
810
  // This tag allows us to uniquely identify this as a React Element
811
811
  $$typeof: t,
812
812
  // Built-in properties that belong on the element
@@ -817,58 +817,58 @@ function _r() {
817
817
  // Record the component responsible for creating this element.
818
818
  _owner: $
819
819
  };
820
- return N._store = {}, Object.defineProperty(N._store, "validated", {
820
+ return I._store = {}, Object.defineProperty(I._store, "validated", {
821
821
  configurable: !1,
822
822
  enumerable: !1,
823
823
  writable: !0,
824
824
  value: !1
825
- }), Object.defineProperty(N, "_self", {
825
+ }), Object.defineProperty(I, "_self", {
826
826
  configurable: !1,
827
827
  enumerable: !1,
828
828
  writable: !1,
829
829
  value: T
830
- }), Object.defineProperty(N, "_source", {
830
+ }), Object.defineProperty(I, "_source", {
831
831
  configurable: !1,
832
832
  enumerable: !1,
833
833
  writable: !1,
834
834
  value: L
835
- }), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
835
+ }), Object.freeze && (Object.freeze(I.props), Object.freeze(I)), I;
836
836
  };
837
- function Hn(o, x, C, T, L) {
837
+ function Jn(o, x, C, T, L) {
838
838
  {
839
- var $, M = {}, N = null, H = null;
840
- C !== void 0 && (Bt(C), N = "" + C), zn(x) && (Bt(x.key), N = "" + x.key), Kn(x) && (H = x.ref, Zn(x, L));
839
+ var $, M = {}, I = null, H = null;
840
+ C !== void 0 && (Mt(C), I = "" + C), Un(x) && (Mt(x.key), I = "" + x.key), Zn(x) && (H = x.ref, Vn(x, L));
841
841
  for ($ in x)
842
- je.call(x, $) && !Gn.hasOwnProperty($) && (M[$] = x[$]);
842
+ Ee.call(x, $) && !Kn.hasOwnProperty($) && (M[$] = x[$]);
843
843
  if (o && o.defaultProps) {
844
844
  var W = o.defaultProps;
845
845
  for ($ in W)
846
846
  M[$] === void 0 && (M[$] = W[$]);
847
847
  }
848
- if (N || H) {
849
- var K = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
850
- N && Un(M, K), H && Vn(M, K);
848
+ if (I || H) {
849
+ var z = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
850
+ I && Yn(M, z), H && Hn(M, z);
851
851
  }
852
- return Yn(o, N, H, L, T, we.current, M);
852
+ return qn(o, I, H, L, T, Te.current, M);
853
853
  }
854
854
  }
855
- var Qe = y.ReactCurrentOwner, Ft = y.ReactDebugCurrentFrame;
856
- function xe(o) {
855
+ var tt = b.ReactCurrentOwner, Lt = b.ReactDebugCurrentFrame;
856
+ function ge(o) {
857
857
  if (o) {
858
- var x = o._owner, C = Oe(o.type, o._source, x ? x.type : null);
859
- Ft.setExtraStackFrame(C);
858
+ var x = o._owner, C = We(o.type, o._source, x ? x.type : null);
859
+ Lt.setExtraStackFrame(C);
860
860
  } else
861
- Ft.setExtraStackFrame(null);
861
+ Lt.setExtraStackFrame(null);
862
862
  }
863
- var et;
864
- et = !1;
865
- function tt(o) {
863
+ var nt;
864
+ nt = !1;
865
+ function at(o) {
866
866
  return typeof o == "object" && o !== null && o.$$typeof === t;
867
867
  }
868
- function Pt() {
868
+ function $t() {
869
869
  {
870
- if (Qe.current) {
871
- var o = F(Qe.current.type);
870
+ if (tt.current) {
871
+ var o = F(tt.current.type);
872
872
  if (o)
873
873
  return `
874
874
 
@@ -877,13 +877,13 @@ Check the render method of \`` + o + "`.";
877
877
  return "";
878
878
  }
879
879
  }
880
- function qn(o) {
880
+ function Xn(o) {
881
881
  return "";
882
882
  }
883
- var Lt = {};
884
- function Jn(o) {
883
+ var Ot = {};
884
+ function Qn(o) {
885
885
  {
886
- var x = Pt();
886
+ var x = $t();
887
887
  if (!x) {
888
888
  var C = typeof o == "string" ? o : o.displayName || o.name;
889
889
  C && (x = `
@@ -893,39 +893,39 @@ Check the top-level render call using <` + C + ">.");
893
893
  return x;
894
894
  }
895
895
  }
896
- function $t(o, x) {
896
+ function At(o, x) {
897
897
  {
898
898
  if (!o._store || o._store.validated || o.key != null)
899
899
  return;
900
900
  o._store.validated = !0;
901
- var C = Jn(x);
902
- if (Lt[C])
901
+ var C = Qn(x);
902
+ if (Ot[C])
903
903
  return;
904
- Lt[C] = !0;
904
+ Ot[C] = !0;
905
905
  var T = "";
906
- o && o._owner && o._owner !== Qe.current && (T = " It was passed a child from " + F(o._owner.type) + "."), xe(o), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, T), xe(null);
906
+ o && o._owner && o._owner !== tt.current && (T = " It was passed a child from " + F(o._owner.type) + "."), ge(o), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, T), ge(null);
907
907
  }
908
908
  }
909
- function Ot(o, x) {
909
+ function Wt(o, x) {
910
910
  {
911
911
  if (typeof o != "object")
912
912
  return;
913
- if (Je(o))
913
+ if (Qe(o))
914
914
  for (var C = 0; C < o.length; C++) {
915
915
  var T = o[C];
916
- tt(T) && $t(T, x);
916
+ at(T) && At(T, x);
917
917
  }
918
- else if (tt(o))
918
+ else if (at(o))
919
919
  o._store && (o._store.validated = !0);
920
920
  else if (o) {
921
- var L = g(o);
921
+ var L = p(o);
922
922
  if (typeof L == "function" && L !== o.entries)
923
923
  for (var $ = L.call(o), M; !(M = $.next()).done; )
924
- tt(M.value) && $t(M.value, x);
924
+ at(M.value) && At(M.value, x);
925
925
  }
926
926
  }
927
927
  }
928
- function Xn(o) {
928
+ function ea(o) {
929
929
  {
930
930
  var x = o.type;
931
931
  if (x == null || typeof x == "string")
@@ -941,89 +941,89 @@ Check the top-level render call using <` + C + ">.");
941
941
  return;
942
942
  if (C) {
943
943
  var T = F(x);
944
- $n(C, o.props, "prop", T, o);
945
- } else if (x.PropTypes !== void 0 && !et) {
946
- et = !0;
944
+ An(C, o.props, "prop", T, o);
945
+ } else if (x.PropTypes !== void 0 && !nt) {
946
+ nt = !0;
947
947
  var L = F(x);
948
- j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", L || "Unknown");
948
+ y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", L || "Unknown");
949
949
  }
950
- typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
950
+ typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
951
951
  }
952
952
  }
953
- function Qn(o) {
953
+ function ta(o) {
954
954
  {
955
955
  for (var x = Object.keys(o.props), C = 0; C < x.length; C++) {
956
956
  var T = x[C];
957
957
  if (T !== "children" && T !== "key") {
958
- xe(o), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", T), xe(null);
958
+ ge(o), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", T), ge(null);
959
959
  break;
960
960
  }
961
961
  }
962
- o.ref !== null && (xe(o), j("Invalid attribute `ref` supplied to `React.Fragment`."), xe(null));
962
+ o.ref !== null && (ge(o), y("Invalid attribute `ref` supplied to `React.Fragment`."), ge(null));
963
963
  }
964
964
  }
965
- var At = {};
966
- function Wt(o, x, C, T, L, $) {
965
+ var Gt = {};
966
+ function zt(o, x, C, T, L, $) {
967
967
  {
968
968
  var M = q(o);
969
969
  if (!M) {
970
- var N = "";
971
- (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (N += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
972
- var H = qn();
973
- H ? N += H : N += Pt();
970
+ var I = "";
971
+ (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (I += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
972
+ var H = Xn();
973
+ H ? I += H : I += $t();
974
974
  var W;
975
- o === null ? W = "null" : Je(o) ? W = "array" : o !== void 0 && o.$$typeof === t ? (W = "<" + (F(o.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : W = typeof o, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, N);
975
+ o === null ? W = "null" : Qe(o) ? W = "array" : o !== void 0 && o.$$typeof === t ? (W = "<" + (F(o.type) || "Unknown") + " />", I = " Did you accidentally export a JSX literal instead of a component?") : W = typeof o, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, I);
976
976
  }
977
- var K = Hn(o, x, C, L, $);
978
- if (K == null)
979
- return K;
977
+ var z = Jn(o, x, C, L, $);
978
+ if (z == null)
979
+ return z;
980
980
  if (M) {
981
981
  var Q = x.children;
982
982
  if (Q !== void 0)
983
983
  if (T)
984
- if (Je(Q)) {
985
- for (var ge = 0; ge < Q.length; ge++)
986
- Ot(Q[ge], o);
984
+ if (Qe(Q)) {
985
+ for (var pe = 0; pe < Q.length; pe++)
986
+ Wt(Q[pe], o);
987
987
  Object.freeze && Object.freeze(Q);
988
988
  } else
989
- 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.");
989
+ y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
990
990
  else
991
- Ot(Q, o);
991
+ Wt(Q, o);
992
992
  }
993
- if (je.call(x, "key")) {
994
- var fe = F(o), J = Object.keys(x).filter(function(ia) {
995
- return ia !== "key";
996
- }), nt = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
997
- if (!At[fe + nt]) {
998
- var ra = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
999
- j(`A props object containing a "key" prop is being spread into JSX:
993
+ if (Ee.call(x, "key")) {
994
+ var fe = F(o), J = Object.keys(x).filter(function(oa) {
995
+ return oa !== "key";
996
+ }), rt = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
997
+ if (!Gt[fe + rt]) {
998
+ var sa = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
999
+ y(`A props object containing a "key" prop is being spread into JSX:
1000
1000
  let props = %s;
1001
1001
  <%s {...props} />
1002
1002
  React keys must be passed directly to JSX without using spread:
1003
1003
  let props = %s;
1004
- <%s key={someKey} {...props} />`, nt, fe, ra, fe), At[fe + nt] = !0;
1004
+ <%s key={someKey} {...props} />`, rt, fe, sa, fe), Gt[fe + rt] = !0;
1005
1005
  }
1006
1006
  }
1007
- return o === r ? Qn(K) : Xn(K), K;
1007
+ return o === r ? ta(z) : ea(z), z;
1008
1008
  }
1009
1009
  }
1010
- function ea(o, x, C) {
1011
- return Wt(o, x, C, !0);
1010
+ function na(o, x, C) {
1011
+ return zt(o, x, C, !0);
1012
1012
  }
1013
- function ta(o, x, C) {
1014
- return Wt(o, x, C, !1);
1013
+ function aa(o, x, C) {
1014
+ return zt(o, x, C, !1);
1015
1015
  }
1016
- var na = ta, aa = ea;
1017
- Ee.Fragment = r, Ee.jsx = na, Ee.jsxs = aa;
1018
- }()), Ee;
1019
- }
1020
- process.env.NODE_ENV === "production" ? lt.exports = cr() : lt.exports = _r();
1021
- var n = lt.exports;
1022
- const dr = "_btn_1hz2s_6", ur = "_confirm_1hz2s_19", Zt = {
1023
- btn: dr,
1024
- confirm: ur
1016
+ var ra = aa, ia = na;
1017
+ Be.Fragment = r, Be.jsx = ra, Be.jsxs = ia;
1018
+ }()), Be;
1019
+ }
1020
+ process.env.NODE_ENV === "production" ? _t.exports = dr() : _t.exports = ur();
1021
+ var n = _t.exports;
1022
+ const fr = "_btn_1hz2s_6", mr = "_confirm_1hz2s_19", Vt = {
1023
+ btn: fr,
1024
+ confirm: mr
1025
1025
  };
1026
- function fr({ onClick: e, onSend: t, label: a, onRef: r }) {
1026
+ function hr({ onClick: e, onSend: t, label: a, onRef: r }) {
1027
1027
  let [i, s] = k.useState(!1);
1028
1028
  const l = () => {
1029
1029
  if (e)
@@ -1034,40 +1034,40 @@ function fr({ onClick: e, onSend: t, label: a, onRef: r }) {
1034
1034
  "button",
1035
1035
  {
1036
1036
  ref: r,
1037
- className: [Zt.btn, Zt.confirm].join(" "),
1037
+ className: [Vt.btn, Vt.confirm].join(" "),
1038
1038
  onClick: l,
1039
1039
  children: i ? "Ожидайте" : a
1040
1040
  }
1041
1041
  );
1042
1042
  }
1043
- const Re = {
1044
- Path: Ba,
1045
- setPage: ka,
1046
- getPage: Qt,
1047
- usePage: va,
1048
- isPage: Ca,
1049
- setModule: ba,
1050
- getModule: en,
1043
+ const ke = {
1044
+ Path: Ma,
1045
+ setPage: ba,
1046
+ getPage: tn,
1047
+ usePage: Ca,
1048
+ isPage: ja,
1049
+ setModule: wa,
1050
+ getModule: nn,
1051
1051
  useModule: ya,
1052
- isModule: ja,
1053
- setTabs: Sa,
1054
- getTabs: Ke,
1055
- useTabs: wa,
1056
- isTabs: Ea,
1057
- useId: Ta,
1052
+ isModule: Sa,
1053
+ setTabs: Ta,
1054
+ getTabs: Ze,
1055
+ useTabs: Ea,
1056
+ isTabs: Ra,
1057
+ useId: Ba,
1058
1058
  setId: Da,
1059
- subId: Ra,
1060
- getId: tn,
1059
+ subId: Na,
1060
+ getId: an,
1061
1061
  isId: Ia
1062
1062
  };
1063
- let Ce = {};
1064
- function Be({ data: e }) {
1063
+ let ye = {};
1064
+ function Me({ data: e }) {
1065
1065
  let [t, a] = k.useState("show");
1066
1066
  k.useEffect(() => {
1067
1067
  setTimeout(function() {
1068
1068
  a("hide");
1069
1069
  }, 1800), setTimeout(function() {
1070
- Ce.del(e.key);
1070
+ ye.del(e.key);
1071
1071
  }, 2500);
1072
1072
  }, [e.key]);
1073
1073
  let r, i;
@@ -1094,25 +1094,25 @@ function Be({ data: e }) {
1094
1094
  /* @__PURE__ */ n.jsx("p", { children: e.text })
1095
1095
  ] });
1096
1096
  }
1097
- function mr(e) {
1097
+ function xr(e) {
1098
1098
  let t = Date.now(), a = { key: t, ...e };
1099
- Ce.set({ item: /* @__PURE__ */ n.jsx(Be, { data: a }, t), key: t });
1099
+ ye.set({ item: /* @__PURE__ */ n.jsx(Me, { data: a }, t), key: t });
1100
1100
  }
1101
- function hr(e) {
1101
+ function gr(e) {
1102
1102
  let t = Date.now(), a = { key: t, text: e, type: "error" };
1103
- Ce.set({ item: /* @__PURE__ */ n.jsx(Be, { data: a }, t), key: t });
1103
+ ye.set({ item: /* @__PURE__ */ n.jsx(Me, { data: a }, t), key: t });
1104
1104
  }
1105
- function xr(e) {
1105
+ function pr(e) {
1106
1106
  let t = Date.now(), a = { key: t, text: e, type: "success" };
1107
- Ce.set({ item: /* @__PURE__ */ n.jsx(Be, { data: a }, t), key: t });
1107
+ ye.set({ item: /* @__PURE__ */ n.jsx(Me, { data: a }, t), key: t });
1108
1108
  }
1109
- function gr(e) {
1109
+ function vr(e) {
1110
1110
  let t = Date.now(), a = { key: t, text: e, type: "remark" };
1111
- Ce.set({ item: /* @__PURE__ */ n.jsx(Be, { data: a }, t), key: t });
1111
+ ye.set({ item: /* @__PURE__ */ n.jsx(Me, { data: a }, t), key: t });
1112
1112
  }
1113
- function pr(e) {
1113
+ function kr(e) {
1114
1114
  let t = Date.now(), a = { key: t, text: e, type: "copy" };
1115
- Ce.set({ item: /* @__PURE__ */ n.jsx(Be, { data: a }, t), key: t });
1115
+ ye.set({ item: /* @__PURE__ */ n.jsx(Me, { data: a }, t), key: t });
1116
1116
  }
1117
1117
  const me = {};
1118
1118
  me.error = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
@@ -1147,7 +1147,7 @@ me.success = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "
1147
1147
  }
1148
1148
  )
1149
1149
  ] });
1150
- const Ge = { Send: mr, Error: hr, Remark: gr, Success: xr, Copy: pr }, dn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
1150
+ const Ke = { Send: xr, Error: gr, Remark: vr, Success: pr, Copy: kr }, fn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
1151
1151
  "div",
1152
1152
  {
1153
1153
  role: "switch",
@@ -1186,51 +1186,51 @@ function De({
1186
1186
  view: f,
1187
1187
  onBlur: m,
1188
1188
  onSave: h,
1189
- className: v = ""
1189
+ className: g = ""
1190
1190
  }) {
1191
- let p = !!(l && (e === "" || e === void 0)), g = (w) => {
1191
+ let v = !!(l && (e === "" || e === void 0)), p = (w) => {
1192
1192
  t && t({ value: w.target.textContent, name: a });
1193
- }, y = (w) => {
1193
+ }, b = (w) => {
1194
1194
  w.key === "Enter" && w.preventDefault();
1195
- }, j = (w) => {
1196
- }, D = (w) => {
1195
+ }, y = (w) => {
1196
+ }, B = (w) => {
1197
1197
  w.preventDefault(), navigator.clipboard.writeText(w.target.textContent).then(
1198
1198
  function() {
1199
- Ge.Copy("Данные в буфер обмене");
1199
+ Ke.Copy("Данные в буфер обмене");
1200
1200
  },
1201
1201
  function(E) {
1202
1202
  }
1203
1203
  );
1204
1204
  };
1205
- if (!(c && d) && !u || !(c && d) && p)
1205
+ if (!(c && d) && !u || !(c && d) && v)
1206
1206
  return "";
1207
- const I = {};
1208
- I.field = "input", v && (I.className = v);
1209
- const b = {};
1210
- r && (b.placeholder = r), c && d && (b.edit = "");
1207
+ const N = {};
1208
+ N.field = "input", g && (N.className = g);
1209
+ const j = {};
1210
+ r && (j.placeholder = r), c && d && (j.edit = "");
1211
1211
  const S = (w) => {
1212
1212
  le.Blur(w), h && h({ value: w.target.textContent, name: a });
1213
1213
  };
1214
- return /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
1214
+ return /* @__PURE__ */ n.jsxs("dl", { ...N, children: [
1215
1215
  i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "",
1216
1216
  /* @__PURE__ */ n.jsx(
1217
1217
  "dd",
1218
1218
  {
1219
- onPaste: j,
1220
- onInput: g,
1219
+ onPaste: y,
1220
+ onInput: p,
1221
1221
  onBlur: S,
1222
- onKeyDown: y,
1223
- onContextMenu: D,
1222
+ onKeyDown: b,
1223
+ onContextMenu: B,
1224
1224
  contentEditable: c && d ? "plaintext-only" : "false",
1225
1225
  suppressContentEditableWarning: !0,
1226
- ...b,
1226
+ ...j,
1227
1227
  children: e
1228
1228
  }
1229
1229
  ),
1230
1230
  s ? /* @__PURE__ */ n.jsx("em", { children: s }) : ""
1231
1231
  ] });
1232
1232
  }
1233
- function un({ onClick: e, onSend: t, name: a, onRef: r }) {
1233
+ function mn({ onClick: e, onSend: t, name: a, onRef: r }) {
1234
1234
  let [i, s] = k.useState(!1);
1235
1235
  const l = () => {
1236
1236
  if (e)
@@ -1248,7 +1248,7 @@ function un({ onClick: e, onSend: t, name: a, onRef: r }) {
1248
1248
  }
1249
1249
  );
1250
1250
  }
1251
- function fn({
1251
+ function hn({
1252
1252
  value: e,
1253
1253
  onValue: t,
1254
1254
  onActive: a,
@@ -1268,37 +1268,37 @@ function fn({
1268
1268
  _.current.value.length > 0 ? _.current.send && (a(!0), _.current.send = !1, _.current.timerId = setTimeout(() => {
1269
1269
  _.current.send = !0;
1270
1270
  }, 3e3)) : a(!1);
1271
- }, f = (y) => {
1272
- _.current.value = y.target.textContent, u();
1273
- }, m = (y) => {
1274
- y.keyCode === 16 && (_.current.shift = !0), y.keyCode === 13 && !_.current.shift && (y.preventDefault(), _.current.value.length !== 0 && (y.target.textContent = "", r && r(_.current.value), t && t(_.current.value), _.current.value = "", a(!1)));
1275
- }, h = (y) => {
1276
- y.keyCode === 16 && (_.current.shift = !1);
1277
- }, v = (y) => {
1278
- y.preventDefault(), navigator.clipboard.readText().then((j) => {
1279
- window.document.execCommand("insertText", !1, j);
1280
- }).catch((j) => {
1271
+ }, f = (b) => {
1272
+ _.current.value = b.target.textContent, u();
1273
+ }, m = (b) => {
1274
+ b.keyCode === 16 && (_.current.shift = !0), b.keyCode === 13 && !_.current.shift && (b.preventDefault(), _.current.value.length !== 0 && (b.target.textContent = "", r && r(_.current.value), t && t(_.current.value), _.current.value = "", a(!1)));
1275
+ }, h = (b) => {
1276
+ b.keyCode === 16 && (_.current.shift = !1);
1277
+ }, g = (b) => {
1278
+ b.preventDefault(), navigator.clipboard.readText().then((y) => {
1279
+ window.document.execCommand("insertText", !1, y);
1280
+ }).catch((y) => {
1281
1281
  });
1282
- }, p = () => {
1282
+ }, v = () => {
1283
1283
  a(!1);
1284
- }, g = {
1284
+ }, p = {
1285
1285
  spellCheck: "true"
1286
1286
  };
1287
- return d && (g.placeholder = d), l && c && (g.contentEditable = "plaintext-only"), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
1287
+ return d && (p.placeholder = d), l && c && (p.contentEditable = "plaintext-only"), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
1288
1288
  "dd",
1289
1289
  {
1290
- onPaste: v,
1290
+ onPaste: g,
1291
1291
  onInput: f,
1292
1292
  onKeyUp: h,
1293
1293
  onKeyDown: m,
1294
- onBlur: p,
1295
- ...g,
1294
+ onBlur: v,
1295
+ ...p,
1296
1296
  suppressContentEditableWarning: !0,
1297
1297
  children: e
1298
1298
  }
1299
1299
  ) });
1300
1300
  }
1301
- function mn(e) {
1301
+ function xn(e) {
1302
1302
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", s = (d) => {
1303
1303
  e.onValue({ value: d.target.textContent, name: e.name });
1304
1304
  }, l = (d) => {
@@ -1325,24 +1325,24 @@ function mn(e) {
1325
1325
  )
1326
1326
  ] });
1327
1327
  }
1328
- function hn({ value: e, onValue: t, placeholder: a = "", name: r }) {
1329
- let i = (h, v) => Number(Math.round(h + Math.random() * (v - h))), s = k.useRef(null), l = k.useRef(null), c = i(1e4, 99999), d = (h) => {
1328
+ function gn({ value: e, onValue: t, placeholder: a = "", name: r }) {
1329
+ let i = (h, g) => Number(Math.round(h + Math.random() * (g - h))), s = k.useRef(null), l = k.useRef(null), c = i(1e4, 99999), d = (h) => {
1330
1330
  h.key !== "Backspace" && (h.key === "Enter" && h.preventDefault(), h.target.textContent.length === 5 && h.preventDefault(), /\d/.test(h.key) || h.preventDefault());
1331
1331
  }, _ = (h) => {
1332
1332
  t({ value: Number(h.target.textContent) === c, name: r });
1333
1333
  }, u = (h) => {
1334
- h.preventDefault(), navigator.clipboard.readText().then((v) => {
1334
+ h.preventDefault(), navigator.clipboard.readText().then((g) => {
1335
1335
  window.document.execCommand(
1336
1336
  "insertText",
1337
1337
  !1,
1338
- v.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
1338
+ g.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
1339
1339
  );
1340
- }).catch((v) => {
1340
+ }).catch((g) => {
1341
1341
  });
1342
1342
  };
1343
1343
  k.useEffect(() => {
1344
- const h = s.current, v = h.getContext("2d");
1345
- v.clearRect(0, 0, h.width, h.height), v.font = "30px brush script mt", v.fillStyle = "#eee", v.textAlign = "center", v.fillText(c, 50, 27), l.current.textContent = "";
1344
+ const h = s.current, g = h.getContext("2d");
1345
+ g.clearRect(0, 0, h.width, h.height), g.font = "30px brush script mt", g.fillStyle = "#eee", g.textAlign = "center", g.fillText(c, 50, 27), l.current.textContent = "";
1346
1346
  }, [c]);
1347
1347
  const f = {};
1348
1348
  f.field = "captcha";
@@ -1364,7 +1364,7 @@ function hn({ value: e, onValue: t, placeholder: a = "", name: r }) {
1364
1364
  /* @__PURE__ */ n.jsx("canvas", { ref: s, width: "100", height: "35" })
1365
1365
  ] });
1366
1366
  }
1367
- function xn(e) {
1367
+ function pn(e) {
1368
1368
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = {
1369
1369
  n1: "",
1370
1370
  n2: "",
@@ -1497,7 +1497,7 @@ function xn(e) {
1497
1497
  }
1498
1498
  );
1499
1499
  }
1500
- function gn(e) {
1500
+ function vn(e) {
1501
1501
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "";
1502
1502
  e.edit !== void 0 && e.edit, e.active !== void 0 && e.active;
1503
1503
  let [r, i] = k.useState(e.value), s = (l) => {
@@ -1527,15 +1527,15 @@ function gn(e) {
1527
1527
  }
1528
1528
  ) });
1529
1529
  }
1530
- const ct = {};
1531
- function vr(e, t) {
1532
- ct[e] = t;
1530
+ const dt = {};
1531
+ function Cr(e, t) {
1532
+ dt[e] = t;
1533
1533
  }
1534
- function kr(e, t) {
1535
- ct[e] !== void 0 && ct[e](t);
1534
+ function br(e, t) {
1535
+ dt[e] !== void 0 && dt[e](t);
1536
1536
  }
1537
1537
  const _e = {};
1538
- function Cr(e, t) {
1538
+ function jr(e, t) {
1539
1539
  const [a, r] = k.useState(t);
1540
1540
  return k.useEffect(() => {
1541
1541
  if (_e[e])
@@ -1548,11 +1548,11 @@ function yr(e, t) {
1548
1548
  return _e[e].push(t);
1549
1549
  _e[e] = [t];
1550
1550
  }
1551
- function br(e, t) {
1551
+ function wr(e, t) {
1552
1552
  _e[e] && _e[e].forEach((a) => a(t));
1553
1553
  }
1554
- const Ne = { setListener: kr, useListener: vr, setEmitter: br, useEmitter: Cr, subEmitter: yr };
1555
- function jr(e, t) {
1554
+ const Fe = { setListener: br, useListener: Cr, setEmitter: wr, useEmitter: jr, subEmitter: yr };
1555
+ function Sr(e, t) {
1556
1556
  t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
1557
1557
  let a = {
1558
1558
  yyyy: e.getFullYear(),
@@ -1569,7 +1569,7 @@ function jr(e, t) {
1569
1569
  t = t.replace(r, a[r]);
1570
1570
  return t;
1571
1571
  }
1572
- function wr(e) {
1572
+ function Er(e) {
1573
1573
  let t = [
1574
1574
  "Января",
1575
1575
  "Февраля",
@@ -1589,17 +1589,17 @@ function wr(e) {
1589
1589
  name: a.getDate() + " " + t[a.getMonth()]
1590
1590
  };
1591
1591
  }
1592
- const Sr = (e) => {
1593
- function t(D, I) {
1594
- var b, w, S;
1595
- D = D ?? "", I = I ?? 1;
1596
- for (var b = [], S = 0, w = D.length; S < w; )
1597
- b.push(D.slice(S, S += I));
1598
- return b;
1592
+ const Tr = (e) => {
1593
+ function t(B, N) {
1594
+ var j, w, S;
1595
+ B = B ?? "", N = N ?? 1;
1596
+ for (var j = [], S = 0, w = B.length; S < w; )
1597
+ j.push(B.slice(S, S += N));
1598
+ return j;
1599
1599
  }
1600
- function a(D, I) {
1601
- var b = [2, 0, 1, 1, 1, 2];
1602
- return I[D > 4 && D < 20 ? 2 : b[Math.min(D, 5)]];
1600
+ function a(B, N) {
1601
+ var j = [2, 0, 1, 1, 1, 2];
1602
+ return N[B > 4 && B < 20 ? 2 : j[Math.min(B, 5)]];
1603
1603
  }
1604
1604
  var r = {
1605
1605
  null: "ноль",
@@ -1663,42 +1663,42 @@ const Sr = (e) => {
1663
1663
  u3: ["тысяча", "тысячи", "тысяч"],
1664
1664
  u2: ["миллион", "миллиона", "миллионов"],
1665
1665
  u1: ["миллиард", "миллиарда", "миллиардов"]
1666
- }, i, s, l, c, g, d, _, p, u, f, m, h;
1666
+ }, i, s, l, c, p, d, _, v, u, f, m, h;
1667
1667
  u = parseFloat(e).toFixed(2).split("."), d = u[0], c = u[1];
1668
- var v = 12 - d.length;
1669
- if (v < 0)
1668
+ var g = 12 - d.length;
1669
+ if (g < 0)
1670
1670
  return !1;
1671
- for (var p = []; v--; )
1672
- p.push("0");
1673
- d = p.join("") + d;
1674
- var g = [];
1671
+ for (var v = []; g--; )
1672
+ v.push("0");
1673
+ d = v.join("") + d;
1674
+ var p = [];
1675
1675
  if (d > 0) {
1676
1676
  f = t(d, 3);
1677
- for (var y = -1; y < f.length; y++)
1678
- if (_ = f[y], _ > 0 && (m = t(_, 1), i = parseInt(m[0]), s = parseInt(m[1]), l = parseInt(m[2]), g.push(r.a100[i - 1]), h = y + 1 == 3 ? "a2" : "a1", s > 1 ? g.push(
1677
+ for (var b = -1; b < f.length; b++)
1678
+ if (_ = f[b], _ > 0 && (m = t(_, 1), i = parseInt(m[0]), s = parseInt(m[1]), l = parseInt(m[2]), p.push(r.a100[i - 1]), h = b + 1 == 3 ? "a2" : "a1", s > 1 ? p.push(
1679
1679
  r.a20[s - 2] + (l > 0 ? " " + r[h][l - 1] : "")
1680
- ) : g.push(
1680
+ ) : p.push(
1681
1681
  s > 0 ? r.a10[l] : r[h][l - 1]
1682
- ), f.length > y + 1)) {
1683
- var j = r["u" + (y + 1)];
1684
- g.push(a(_, j));
1682
+ ), f.length > b + 1)) {
1683
+ var y = r["u" + (b + 1)];
1684
+ p.push(a(_, y));
1685
1685
  }
1686
1686
  } else
1687
- g.push(r.null);
1688
- return g.push(a(d, r.ur)), g.push(c + " " + a(c, r.uc)), g.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1687
+ p.push(r.null);
1688
+ return p.push(a(d, r.ur)), p.push(c + " " + a(c, r.uc)), p.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1689
1689
  };
1690
- function Er(e) {
1690
+ function Rr(e) {
1691
1691
  let t = -1, a = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
1692
1692
  do
1693
1693
  e = e / 1024, t++;
1694
1694
  while (e > 1024);
1695
1695
  return Math.max(e, 0.1).toFixed(1) + a[t];
1696
1696
  }
1697
- function Tr(e) {
1697
+ function Br(e) {
1698
1698
  let t = {};
1699
1699
  return t["application/atom+xml"] = "atom", t["application/json"] = "json", t["application/javascript"] = "js", t["application/ogg"] = "ogg", t["application/pdf"] = "pdf", t["application/soap+xml"] = "soap", t["application/font-woff"] = "woff", t["application/xhtml+xml"] = "xml", t["application/xml-dtd"] = "dtd", t["application/xop+xml"] = "xop", t["application/zip"] = "zip", t["application/gzip"] = "gzip", t["application/x-bittorrent"] = "bittorrent", t["application/x-tex"] = "tex", t["application/xml"] = "xml", t["application/msword"] = "doc", t["image/svg+xml"] = "svg", t[e];
1700
1700
  }
1701
- function Rr(e, t, a, r) {
1701
+ function Nr(e, t, a, r) {
1702
1702
  let i = {
1703
1703
  sexM: "m",
1704
1704
  sexF: "f",
@@ -1830,8 +1830,8 @@ function Rr(e, t, a, r) {
1830
1830
  return l;
1831
1831
  this.init();
1832
1832
  var h = this.rules[d];
1833
- let v;
1834
- return h.exceptions && (v = this.pick(l, c, _, h.exceptions, !0), v) ? v : (v = this.pick(l, c, _, h.suffixes, !1), v || l);
1833
+ let g;
1834
+ return h.exceptions && (g = this.pick(l, c, _, h.exceptions, !0), g) ? g : (g = this.pick(l, c, _, h.suffixes, !1), g || l);
1835
1835
  },
1836
1836
  // выбираем из списка правил первое подходящее и применяем
1837
1837
  pick: function(l, c, d, _, u) {
@@ -1941,61 +1941,61 @@ function Ir(e) {
1941
1941
  12: { val: "12", name: "Декабрь", names: "Декабря", abc: "Дек" }
1942
1942
  }[e];
1943
1943
  }
1944
- function Br(e) {
1944
+ function Mr(e) {
1945
1945
  return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
1946
1946
  }
1947
- function Nr(e, t) {
1947
+ function Fr(e, t) {
1948
1948
  let a = t + "";
1949
1949
  for (; a.length < e; )
1950
1950
  a = "0" + a;
1951
1951
  return a;
1952
1952
  }
1953
- function Mr(e, t, a) {
1953
+ function Pr(e, t, a) {
1954
1954
  let r = t / e * a;
1955
1955
  return (typeof r != "number" || r === 1 / 0) && (r = 0), parseFloat(r).toFixed(1);
1956
1956
  }
1957
- function Fr(e) {
1957
+ function Lr(e) {
1958
1958
  return e.charAt(0).toUpperCase() + e.slice(1);
1959
1959
  }
1960
- function Pr(e, t) {
1960
+ function $r(e, t) {
1961
1961
  e = Math.abs(e) % 100;
1962
1962
  let a = e % 10;
1963
1963
  return e > 10 && e < 20 ? t[2] : a > 1 && a < 5 ? t[1] : a === 1 ? t[0] : t[2];
1964
1964
  }
1965
- function Lr(e, t, a) {
1966
- return he(e, t) ? he(e, t).n : a || "";
1965
+ function Or(e, t, a) {
1966
+ return xe(e, t) ? xe(e, t).n : a || "";
1967
1967
  }
1968
- function $r(e, t) {
1968
+ function Ar(e, t) {
1969
1969
  return e.reduce(function(a, r) {
1970
1970
  let i = t instanceof Function ? t(r) : r[t];
1971
1971
  return a[i] !== void 0 || (a[i] = {}), a[i][r.id] = r, a;
1972
1972
  }, {});
1973
1973
  }
1974
- function Or(e) {
1974
+ function Wr(e) {
1975
1975
  return parseInt((Date.now() - new Date(e).getTime()) / 31536e6 + "") + "";
1976
1976
  }
1977
- const z = {
1978
- Age: Or,
1979
- Date: jr,
1980
- MoneyString: Sr,
1981
- DateSort: wr,
1982
- Size: Er,
1983
- TypeFiles: Tr,
1984
- Cases: Rr,
1977
+ const K = {
1978
+ Age: Wr,
1979
+ Date: Sr,
1980
+ MoneyString: Tr,
1981
+ DateSort: Er,
1982
+ Size: Rr,
1983
+ TypeFiles: Br,
1984
+ Cases: Nr,
1985
1985
  Initials: Dr,
1986
1986
  Month: Ir,
1987
- Money: Br,
1988
- Number: Nr,
1989
- Percent: Mr,
1990
- CapitalizeFirstLetter: Fr,
1991
- DeclensionWord: Pr,
1992
- Select: Lr,
1993
- ObjectByArray: $r
1994
- }, Ar = "_o_1kqkq_1", Wr = "_c_1kqkq_11", ve = {
1995
- o: Ar,
1996
- c: Wr
1987
+ Money: Mr,
1988
+ Number: Fr,
1989
+ Percent: Pr,
1990
+ CapitalizeFirstLetter: Lr,
1991
+ DeclensionWord: $r,
1992
+ Select: Or,
1993
+ ObjectByArray: Ar
1994
+ }, Gr = "_o_1kqkq_1", zr = "_c_1kqkq_11", be = {
1995
+ o: Gr,
1996
+ c: zr
1997
1997
  };
1998
- function gt(e) {
1998
+ function vt(e) {
1999
1999
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, i = e.active !== void 0 ? e.active : !0, s = e.placeholder !== void 0 ? e.placeholder : "", [l, c] = k.useState(
2000
2000
  e.value === void 0 ? /* @__PURE__ */ new Date() : e.value
2001
2001
  ), d = !r && i;
@@ -2005,13 +2005,13 @@ function gt(e) {
2005
2005
  let _ = (h) => {
2006
2006
  c(h), e.onValue({ value: h, name: e.name });
2007
2007
  }, u = (h) => {
2008
- const v = h.target.getBoundingClientRect(), p = v.left, g = v.top;
2009
- Ne.setListener(
2008
+ const g = h.target.getBoundingClientRect(), v = g.left, p = g.top;
2009
+ Fe.setListener(
2010
2010
  "form",
2011
2011
  /* @__PURE__ */ n.jsx(
2012
- Gr,
2012
+ Kr,
2013
2013
  {
2014
- position: { x: p, y: g },
2014
+ position: { x: v, y: p },
2015
2015
  onValue: _,
2016
2016
  date: l
2017
2017
  },
@@ -2042,7 +2042,7 @@ function gt(e) {
2042
2042
  onClick: u,
2043
2043
  ...m,
2044
2044
  "data-edit": (r && i) + "",
2045
- children: z.Date(l, "dd.mm.yyyy")
2045
+ children: K.Date(l, "dd.mm.yyyy")
2046
2046
  }
2047
2047
  ),
2048
2048
  a()
@@ -2050,7 +2050,7 @@ function gt(e) {
2050
2050
  }
2051
2051
  ) });
2052
2052
  }
2053
- const Gr = (e) => {
2053
+ const Kr = (e) => {
2054
2054
  let [t, a] = k.useState(!0), r = /* @__PURE__ */ new Date(), i = new Date(e.date), s = {
2055
2055
  y: parseInt(r.getFullYear()),
2056
2056
  d: parseInt(r.getDate()),
@@ -2059,59 +2059,59 @@ const Gr = (e) => {
2059
2059
  y: parseInt(i.getFullYear()),
2060
2060
  d: parseInt(i.getDate()),
2061
2061
  m: parseInt(i.getMonth()) + 1
2062
- }, [c, d] = k.useState({ y: l.y, m: l.m }), _ = (b) => {
2063
- let S = b.getDay();
2062
+ }, [c, d] = k.useState({ y: l.y, m: l.m }), _ = (j) => {
2063
+ let S = j.getDay();
2064
2064
  return S === 0 && (S = 7), S - 1;
2065
2065
  }, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], f = c.m - 1, m = new Date(c.y, f), h = [];
2066
- for (let b = 0; b < _(m); b++)
2066
+ for (let j = 0; j < _(m); j++)
2067
2067
  h.push(0);
2068
2068
  for (; m.getMonth() === f; )
2069
2069
  h.push(m.getDate()), m.setDate(m.getDate() + 1);
2070
- let v = () => {
2070
+ let g = () => {
2071
2071
  a(!1);
2072
+ }, v = () => {
2073
+ y(c.m + 1, c.y);
2072
2074
  }, p = () => {
2073
- j(c.m + 1, c.y);
2074
- }, g = () => {
2075
- j(c.m - 1, c.y);
2076
- }, y = (b) => {
2075
+ y(c.m - 1, c.y);
2076
+ }, b = (j) => {
2077
2077
  e.onValue(
2078
- c.y + "-" + z.Number(2, c.m) + "-" + z.Number(2, b)
2079
- ), v();
2080
- }, j = (b, S) => {
2081
- S = b > 12 ? S + 1 : b < 1 ? S - 1 : S, b = b > 12 ? 1 : b < 1 ? 12 : b, d({ y: S, m: b });
2082
- }, D = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, I = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
2078
+ c.y + "-" + K.Number(2, c.m) + "-" + K.Number(2, j)
2079
+ ), g();
2080
+ }, y = (j, S) => {
2081
+ S = j > 12 ? S + 1 : j < 1 ? S - 1 : S, j = j > 12 ? 1 : j < 1 ? 12 : j, d({ y: S, m: j });
2082
+ }, B = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, N = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
2083
2083
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2084
2084
  /* @__PURE__ */ n.jsx(
2085
2085
  "div",
2086
2086
  {
2087
- className: ve.o,
2088
- onClick: () => v()
2087
+ className: be.o,
2088
+ onClick: () => g()
2089
2089
  },
2090
2090
  (/* @__PURE__ */ new Date()).getTime()
2091
2091
  ),
2092
2092
  /* @__PURE__ */ n.jsxs(
2093
2093
  "div",
2094
2094
  {
2095
- className: ve.c,
2096
- style: { top: D + "px", left: I + "px" },
2095
+ className: be.c,
2096
+ style: { top: B + "px", left: N + "px" },
2097
2097
  children: [
2098
2098
  /* @__PURE__ */ n.jsxs("s", { children: [
2099
- /* @__PURE__ */ n.jsx("i", { "data-icon": "F021", onClick: () => g() }),
2099
+ /* @__PURE__ */ n.jsx("i", { "data-icon": "F021", onClick: () => p() }),
2100
2100
  /* @__PURE__ */ n.jsxs("h2", { children: [
2101
- z.Month(c.m).name,
2101
+ K.Month(c.m).name,
2102
2102
  " ",
2103
2103
  c.y
2104
2104
  ] }),
2105
- /* @__PURE__ */ n.jsx("i", { "data-icon": "F022", onClick: () => p() })
2105
+ /* @__PURE__ */ n.jsx("i", { "data-icon": "F022", onClick: () => v() })
2106
2106
  ] }),
2107
2107
  /* @__PURE__ */ n.jsxs("div", { children: [
2108
- u.map((b, S) => /* @__PURE__ */ n.jsx("p", { children: b }, "v" + S)),
2109
- h.map((b, S) => /* @__PURE__ */ n.jsx("span", { children: b !== 0 ? /* @__PURE__ */ n.jsx(
2108
+ u.map((j, S) => /* @__PURE__ */ n.jsx("p", { children: j }, "v" + S)),
2109
+ h.map((j, S) => /* @__PURE__ */ n.jsx("span", { children: j !== 0 ? /* @__PURE__ */ n.jsx(
2110
2110
  "b",
2111
2111
  {
2112
- color: s.y === c.y && s.m === c.m && s.d === b ? "_FFEB3B" : "",
2113
- onClick: () => y(b),
2114
- children: b
2112
+ color: s.y === c.y && s.m === c.m && s.d === j ? "_FFEB3B" : "",
2113
+ onClick: () => b(j),
2114
+ children: j
2115
2115
  }
2116
2116
  ) : /* @__PURE__ */ n.jsx("p", {}) }, S))
2117
2117
  ] })
@@ -2120,57 +2120,57 @@ const Gr = (e) => {
2120
2120
  )
2121
2121
  ] }) : "" });
2122
2122
  };
2123
- function Kr({ children: e }) {
2123
+ function Zr({ children: e }) {
2124
2124
  return /* @__PURE__ */ n.jsx("div", { className: "l", children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
2125
2125
  }
2126
- const zr = "_white_11p39_14", Zr = "_black_11p39_26", Ur = "_shake_11p39_1", Vr = "_modal_11p39_73", Yr = "_o_11p39_83", Hr = "_w_11p39_14", qr = "_h_11p39_107", Jr = "_l_11p39_121", Xr = "_t_11p39_159", Qr = "_m_11p39_73", ei = "_x_11p39_167", ti = "_s_11p39_177", ni = "_c_11p39_182", ai = "_f_11p39_187", ri = "_btn_11p39_230", ii = "_g_11p39_243", si = "_confirm_11p39_322", oi = "_cancel_11p39_327", li = "_disabled_11p39_332", ci = "_active_11p39_389", _i = "_coincidence_11p39_395", di = "_sa_11p39_431", ui = "_ss_11p39_435", fi = "_sm_11p39_439", mi = "_sl_11p39_443", hi = "_sx_11p39_447", xi = "_sf_11p39_451", ne = {
2127
- white: zr,
2128
- black: Zr,
2129
- shake: Ur,
2130
- modal: Vr,
2131
- o: Yr,
2132
- w: Hr,
2133
- h: qr,
2134
- l: Jr,
2135
- t: Xr,
2136
- m: Qr,
2137
- x: ei,
2138
- s: ti,
2139
- c: ni,
2140
- f: ai,
2141
- btn: ri,
2142
- g: ii,
2126
+ const Ur = "_white_11p39_14", Vr = "_black_11p39_26", Yr = "_shake_11p39_1", Hr = "_modal_11p39_73", qr = "_o_11p39_83", Jr = "_w_11p39_14", Xr = "_h_11p39_107", Qr = "_l_11p39_121", ei = "_t_11p39_159", ti = "_m_11p39_73", ni = "_x_11p39_167", ai = "_s_11p39_177", ri = "_c_11p39_182", ii = "_f_11p39_187", si = "_btn_11p39_230", oi = "_g_11p39_243", li = "_confirm_11p39_322", ci = "_cancel_11p39_327", _i = "_disabled_11p39_332", di = "_active_11p39_389", ui = "_coincidence_11p39_395", fi = "_sa_11p39_431", mi = "_ss_11p39_435", hi = "_sm_11p39_439", xi = "_sl_11p39_443", gi = "_sx_11p39_447", pi = "_sf_11p39_451", ne = {
2127
+ white: Ur,
2128
+ black: Vr,
2129
+ shake: Yr,
2130
+ modal: Hr,
2131
+ o: qr,
2132
+ w: Jr,
2133
+ h: Xr,
2134
+ l: Qr,
2135
+ t: ei,
2136
+ m: ti,
2137
+ x: ni,
2138
+ s: ai,
2139
+ c: ri,
2140
+ f: ii,
2141
+ btn: si,
2142
+ g: oi,
2143
2143
  "size-a": "_size-a_11p39_296",
2144
2144
  "size-s": "_size-s_11p39_300",
2145
2145
  "size-m": "_size-m_11p39_304",
2146
2146
  "size-l": "_size-l_11p39_308",
2147
2147
  "size-x": "_size-x_11p39_312",
2148
2148
  "size-f": "_size-f_11p39_316",
2149
- confirm: si,
2150
- cancel: oi,
2151
- disabled: li,
2149
+ confirm: li,
2150
+ cancel: ci,
2151
+ disabled: _i,
2152
2152
  await: "_await_11p39_339",
2153
- active: ci,
2154
- coincidence: _i,
2155
- sa: di,
2156
- ss: ui,
2157
- sm: fi,
2158
- sl: mi,
2159
- sx: hi,
2160
- sf: xi
2153
+ active: di,
2154
+ coincidence: ui,
2155
+ sa: fi,
2156
+ ss: mi,
2157
+ sm: hi,
2158
+ sl: xi,
2159
+ sx: gi,
2160
+ sf: pi
2161
2161
  };
2162
- function gi({ children: e }) {
2162
+ function vi({ children: e }) {
2163
2163
  return /* @__PURE__ */ n.jsx("div", { className: ne.s, children: e });
2164
2164
  }
2165
- function pi({ children: e, className: t }) {
2165
+ function ki({ children: e, className: t }) {
2166
2166
  let a = {};
2167
2167
  return t && (a.className = t), /* @__PURE__ */ n.jsx("div", { "data-form": "outline", ...a, children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
2168
2168
  }
2169
- function vi({ children: e }) {
2169
+ function Ci({ children: e }) {
2170
2170
  return /* @__PURE__ */ n.jsx("div", { className: ne.c, children: e });
2171
2171
  }
2172
- let Ze = {};
2173
- function ki({
2172
+ let Ve = {};
2173
+ function bi({
2174
2174
  title: e,
2175
2175
  children: t,
2176
2176
  button: a,
@@ -2240,7 +2240,7 @@ function ki({
2240
2240
  )
2241
2241
  ] }),
2242
2242
  t,
2243
- a !== void 0 ? /* @__PURE__ */ n.jsx(fr, { label: a.label, onSend: _ }) : ""
2243
+ a !== void 0 ? /* @__PURE__ */ n.jsx(hr, { label: a.label, onSend: _ }) : ""
2244
2244
  ]
2245
2245
  }
2246
2246
  )
@@ -2248,13 +2248,13 @@ function ki({
2248
2248
  }
2249
2249
  ) : "" });
2250
2250
  }
2251
- function Ci(e) {
2252
- Ze.add(/* @__PURE__ */ n.jsx(yi, { children: e }, String(Date.now())));
2251
+ function ji(e) {
2252
+ Ve.add(/* @__PURE__ */ n.jsx(yi, { children: e }, String(Date.now())));
2253
2253
  }
2254
2254
  function yi({ children: e }) {
2255
2255
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
2256
2256
  }
2257
- function bi(e) {
2257
+ function wi(e) {
2258
2258
  if (e.target.classList[0] !== "modal")
2259
2259
  return;
2260
2260
  let t = e.target.children[0];
@@ -2262,31 +2262,31 @@ function bi(e) {
2262
2262
  t.setAttribute("shake", !1);
2263
2263
  }, 1e3);
2264
2264
  }
2265
- function ji({ type: e, name: t, params: a }) {
2265
+ function Si({ type: e, name: t, params: a }) {
2266
2266
  let [r, i] = k.useState(null);
2267
2267
  return k.useEffect(() => {
2268
- Ze.config(e, t, a, i);
2268
+ Ve.config(e, t, a, i);
2269
2269
  }, [a.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: r });
2270
2270
  }
2271
- function wi(e, t, a) {
2272
- Ze.config(e, t, a);
2273
- }
2274
- function Si(e) {
2275
- Ze.x(e);
2276
- }
2277
- const pn = {
2278
- List: Kr,
2279
- Scroll: gi,
2280
- Main: ki,
2281
- Add: Ci,
2282
- Icon: ji,
2283
- Open: wi,
2284
- Shake: bi,
2285
- Form: pi,
2286
- Center: vi,
2287
- Close: Si
2271
+ function Ei(e, t, a) {
2272
+ Ve.config(e, t, a);
2273
+ }
2274
+ function Ti(e) {
2275
+ Ve.x(e);
2276
+ }
2277
+ const kn = {
2278
+ List: Zr,
2279
+ Scroll: vi,
2280
+ Main: bi,
2281
+ Add: ji,
2282
+ Icon: Si,
2283
+ Open: Ei,
2284
+ Shake: wi,
2285
+ Form: ki,
2286
+ Center: Ci,
2287
+ Close: Ti
2288
2288
  };
2289
- function pt({
2289
+ function kt({
2290
2290
  value: e,
2291
2291
  onValue: t,
2292
2292
  name: a,
@@ -2301,45 +2301,45 @@ function pt({
2301
2301
  view: f,
2302
2302
  modal: m,
2303
2303
  module: h,
2304
- options: v,
2305
- className: p
2304
+ options: g,
2305
+ className: v
2306
2306
  }) {
2307
- let [g, y] = k.useState(e), j = (b) => {
2307
+ let [p, b] = k.useState(e), y = (j) => {
2308
2308
  if (!(c && _) || !m)
2309
2309
  return;
2310
2310
  let S = m.split(".");
2311
- pn.Open(S[0], S[1], {
2311
+ kn.Open(S[0], S[1], {
2312
2312
  callback: (w) => {
2313
- t && t({ value: w, name: a }), y(w);
2313
+ t && t({ value: w, name: a }), b(w);
2314
2314
  },
2315
2315
  onValue: t,
2316
- options: v,
2316
+ options: g,
2317
2317
  name: a,
2318
2318
  value: e
2319
2319
  });
2320
2320
  };
2321
- const D = {};
2322
- D.field = "input", p && (D.className = p);
2323
- const I = {};
2324
- return r && (I.placeholder = r), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...D, children: [
2321
+ const B = {};
2322
+ B.field = "input", v && (B.className = v);
2323
+ const N = {};
2324
+ return r && (N.placeholder = r), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...B, children: [
2325
2325
  i && /* @__PURE__ */ n.jsx("dt", { children: i }),
2326
2326
  /* @__PURE__ */ n.jsx(
2327
2327
  "dd",
2328
2328
  {
2329
- ...I,
2330
- onClick: j,
2329
+ ...N,
2330
+ onClick: y,
2331
2331
  edit: (c && _) + "",
2332
2332
  "data-after": u,
2333
- children: g
2333
+ children: p
2334
2334
  }
2335
2335
  ),
2336
2336
  s && /* @__PURE__ */ n.jsx("em", { children: s })
2337
2337
  ] });
2338
2338
  }
2339
- function vt(e) {
2339
+ function Ct(e) {
2340
2340
  let t = e.value, a = (f) => e.type === "multi" ? f.replace(/[^+\d.+-]/g, "") : f.replace(/[^+\d.]/g, ""), r = (f, m) => {
2341
- let h = document.createRange(), v = window.getSelection();
2342
- h.setStart(m.childNodes[0], f), h.collapse(!0), v.removeAllRanges(), v.addRange(h), m.focus();
2341
+ let h = document.createRange(), g = window.getSelection();
2342
+ h.setStart(m.childNodes[0], f), h.collapse(!0), g.removeAllRanges(), g.addRange(h), m.focus();
2343
2343
  }, i = (f) => {
2344
2344
  e.onValue({
2345
2345
  value: a(f.target.textContent),
@@ -2349,7 +2349,7 @@ function vt(e) {
2349
2349
  f.target.textContent === "" && (f.target.textContent = 0), e.onValue({
2350
2350
  value: a(f.target.textContent),
2351
2351
  name: e.name
2352
- }), f.target.textContent = z.Money(f.target.textContent);
2352
+ }), f.target.textContent = K.Money(f.target.textContent);
2353
2353
  }, l = (f) => {
2354
2354
  f.target.textContent = a(f.target.textContent);
2355
2355
  }, c = (f) => {
@@ -2377,7 +2377,7 @@ function vt(e) {
2377
2377
  contentEditable: !0,
2378
2378
  suppressContentEditableWarning: !0,
2379
2379
  "e-after": e.after,
2380
- children: z.Money(t)
2380
+ children: K.Money(t)
2381
2381
  }
2382
2382
  ),
2383
2383
  u()
@@ -2385,7 +2385,7 @@ function vt(e) {
2385
2385
  }
2386
2386
  );
2387
2387
  }
2388
- function vn({
2388
+ function Cn({
2389
2389
  value: e,
2390
2390
  onValue: t,
2391
2391
  name: a,
@@ -2401,18 +2401,18 @@ function vn({
2401
2401
  k.useEffect(() => {
2402
2402
  f(e);
2403
2403
  }, [e]);
2404
- let m = (p) => {
2405
- f(p), t && t({ value: p, name: a });
2406
- }, h = (p) => {
2404
+ let m = (v) => {
2405
+ f(v), t && t({ value: v, name: a });
2406
+ }, h = (v) => {
2407
2407
  if (!s || !l)
2408
2408
  return;
2409
- const g = p.target.getBoundingClientRect(), y = g.left, j = g.top;
2410
- Ne.setListener(
2409
+ const p = v.target.getBoundingClientRect(), b = p.left, y = p.top;
2410
+ Fe.setListener(
2411
2411
  "form",
2412
2412
  /* @__PURE__ */ n.jsx(
2413
- Ei,
2413
+ Ri,
2414
2414
  {
2415
- position: { x: y, y: j },
2415
+ position: { x: b, y },
2416
2416
  onValue: m,
2417
2417
  date: u
2418
2418
  },
@@ -2420,8 +2420,8 @@ function vn({
2420
2420
  )
2421
2421
  );
2422
2422
  };
2423
- const v = {};
2424
- return d && (v.placeholder = d), /* @__PURE__ */ n.jsx(n.Fragment, { children: r === "icon" ? /* @__PURE__ */ n.jsx(
2423
+ const g = {};
2424
+ return d && (g.placeholder = d), /* @__PURE__ */ n.jsx(n.Fragment, { children: r === "icon" ? /* @__PURE__ */ n.jsx(
2425
2425
  "i",
2426
2426
  {
2427
2427
  "data-icon": "F043",
@@ -2436,8 +2436,8 @@ function vn({
2436
2436
  "dd",
2437
2437
  {
2438
2438
  onClick: h,
2439
- ...v,
2440
- children: z.Date(u, "mm.yyyy")
2439
+ ...g,
2440
+ children: K.Date(u, "mm.yyyy")
2441
2441
  }
2442
2442
  ),
2443
2443
  i && /* @__PURE__ */ n.jsx("em", { children: i })
@@ -2445,7 +2445,7 @@ function vn({
2445
2445
  }
2446
2446
  ) });
2447
2447
  }
2448
- const Ei = (e) => {
2448
+ const Ri = (e) => {
2449
2449
  let [t, a] = k.useState(!0), r = /* @__PURE__ */ new Date(), i = new Date(e.date), s = {
2450
2450
  y: parseInt(r.getFullYear()),
2451
2451
  m: parseInt(r.getMonth()) + 1
@@ -2458,14 +2458,14 @@ const Ei = (e) => {
2458
2458
  d(c + 1);
2459
2459
  }, f = () => {
2460
2460
  d(c - 1);
2461
- }, m = (y) => {
2462
- e.onValue(c + "-" + z.Number(2, y)), _();
2463
- }, h = (y) => s.y === l.y && s.m === y ? "_FFEB3B" : "", v = Array(12).fill("").map((y, j) => j + 1), p = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, g = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
2461
+ }, m = (b) => {
2462
+ e.onValue(c + "-" + K.Number(2, b)), _();
2463
+ }, h = (b) => s.y === l.y && s.m === b ? "_FFEB3B" : "", g = Array(12).fill("").map((b, y) => y + 1), v = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, p = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
2464
2464
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2465
2465
  /* @__PURE__ */ n.jsx(
2466
2466
  "div",
2467
2467
  {
2468
- className: ve.o,
2468
+ className: be.o,
2469
2469
  onClick: () => _()
2470
2470
  },
2471
2471
  (/* @__PURE__ */ new Date()).getTime()
@@ -2473,8 +2473,8 @@ const Ei = (e) => {
2473
2473
  /* @__PURE__ */ n.jsxs(
2474
2474
  "div",
2475
2475
  {
2476
- className: ve.c,
2477
- style: { top: p + "px", left: g + "px" },
2476
+ className: be.c,
2477
+ style: { top: v + "px", left: p + "px" },
2478
2478
  children: [
2479
2479
  /* @__PURE__ */ n.jsxs("s", { children: [
2480
2480
  /* @__PURE__ */ n.jsx("i", { "data-icon": "F021", onClick: () => f() }),
@@ -2484,16 +2484,16 @@ const Ei = (e) => {
2484
2484
  /* @__PURE__ */ n.jsx(
2485
2485
  "div",
2486
2486
  {
2487
- children: v.map((y, j) => /* @__PURE__ */ n.jsx(
2487
+ children: g.map((b, y) => /* @__PURE__ */ n.jsx(
2488
2488
  "span",
2489
2489
  {
2490
2490
  onClick: () => {
2491
- m(y);
2491
+ m(b);
2492
2492
  },
2493
- color: h(y),
2494
- children: /* @__PURE__ */ n.jsx("b", { children: z.Month(y).abc })
2493
+ color: h(b),
2494
+ children: /* @__PURE__ */ n.jsx("b", { children: K.Month(b).abc })
2495
2495
  },
2496
- j
2496
+ y
2497
2497
  ))
2498
2498
  }
2499
2499
  )
@@ -2502,25 +2502,25 @@ const Ei = (e) => {
2502
2502
  )
2503
2503
  ] }) : "" });
2504
2504
  };
2505
- function kn(e) {
2505
+ function bn(e) {
2506
2506
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", [r, i] = k.useState(!1), s = e.edit !== void 0 ? e.edit : !0, l = e.active !== void 0 ? e.active : !0, d = !!(e.hide && (e.value === "" || e.value === void 0)) && !(s && l);
2507
2507
  r = s ? !0 : r;
2508
- let _ = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (g) => {
2509
- e.onValue && e.onValue({ value: g.target.innerText, name: e.name });
2510
- }, f = (g) => {
2511
- g.preventDefault(), navigator.clipboard.readText().then((y) => {
2512
- window.document.execCommand("insertText", !1, y);
2513
- }).catch((y) => {
2508
+ let _ = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (p) => {
2509
+ e.onValue && e.onValue({ value: p.target.innerText, name: e.name });
2510
+ }, f = (p) => {
2511
+ p.preventDefault(), navigator.clipboard.readText().then((b) => {
2512
+ window.document.execCommand("insertText", !1, b);
2513
+ }).catch((b) => {
2514
2514
  });
2515
- }, m = (g) => {
2515
+ }, m = (p) => {
2516
2516
  s || i(!r);
2517
2517
  };
2518
- const h = (g) => {
2519
- e.onSave && e.onSave({ value: g.target.innerText, name: e.name });
2520
- }, v = {};
2521
- v.field = "notes", e.className && (v.className = e.className);
2522
- const p = {};
2523
- return _ && (p.placeholder = _), r && (p.open = ""), s && l && (p.edit = ""), d ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...v, children: [
2518
+ const h = (p) => {
2519
+ e.onSave && e.onSave({ value: p.target.innerText, name: e.name });
2520
+ }, g = {};
2521
+ g.field = "notes", e.className && (g.className = e.className);
2522
+ const v = {};
2523
+ return _ && (v.placeholder = _), r && (v.open = ""), s && l && (v.edit = ""), d ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...g, children: [
2524
2524
  t(),
2525
2525
  /* @__PURE__ */ n.jsx(
2526
2526
  "dd",
@@ -2529,7 +2529,7 @@ function kn(e) {
2529
2529
  onInput: u,
2530
2530
  onBlur: h,
2531
2531
  contentEditable: s && l ? "plaintext-only" : "false",
2532
- ...p,
2532
+ ...v,
2533
2533
  onDoubleClick: m,
2534
2534
  suppressContentEditableWarning: !0,
2535
2535
  children: e.value
@@ -2538,7 +2538,7 @@ function kn(e) {
2538
2538
  a()
2539
2539
  ] });
2540
2540
  }
2541
- function kt({
2541
+ function bt({
2542
2542
  onValue: e,
2543
2543
  active: t,
2544
2544
  max: a,
@@ -2554,20 +2554,20 @@ function kt({
2554
2554
  after: m,
2555
2555
  view: h
2556
2556
  }) {
2557
- let v = () => i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "", p = () => s ? /* @__PURE__ */ n.jsx("em", { children: s }) : "";
2557
+ let g = () => i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "", v = () => s ? /* @__PURE__ */ n.jsx("em", { children: s }) : "";
2558
2558
  r = r !== void 0 ? r : !0, t = t !== void 0 ? t : !0, c = !!(c && (d === "" || d === void 0)) && !(r && t), _ = _ !== void 0 ? _ : "", a = a !== void 0 ? a : 99;
2559
- let y = !1, j = (E) => {
2559
+ let b = !1, y = (E) => {
2560
2560
  e && e({ value: E.target.textContent, name: f });
2561
- }, D = (E) => {
2562
- if (!(y && E.which === 86)) {
2561
+ }, B = (E) => {
2562
+ if (!(b && E.which === 86)) {
2563
2563
  if (E.which === 17 || E.which === 91)
2564
- return y = !0;
2564
+ return b = !0;
2565
2565
  E.key !== "Backspace" && (E.target.textContent.length === a && E.preventDefault(), E.key === "Enter" && E.preventDefault(), isNaN(parseInt(String.fromCharCode(E.which))) && E.preventDefault());
2566
2566
  }
2567
- }, I = (E) => {
2567
+ }, N = (E) => {
2568
2568
  if (E.which === 17 || E.which === 91)
2569
- return y = !1;
2570
- }, b = (E) => {
2569
+ return b = !1;
2570
+ }, j = (E) => {
2571
2571
  E.preventDefault(), navigator.clipboard.readText().then((O) => {
2572
2572
  O = O.replace(/\D/g, ""), window.document.execCommand(
2573
2573
  "insertText",
@@ -2581,23 +2581,23 @@ function kt({
2581
2581
  S.field = "input", u && (S.className = u);
2582
2582
  let w = {};
2583
2583
  return r && t ? (w.edit = "true", w.contentEditable = "plaintext-only") : w.contentEditable = "false", _ && (w.placeholder = _), m && (w.after = m), c ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
2584
- v(),
2584
+ g(),
2585
2585
  /* @__PURE__ */ n.jsx(
2586
2586
  "dd",
2587
2587
  {
2588
2588
  ...w,
2589
- onPaste: b,
2590
- onInput: j,
2591
- onKeyDown: D,
2592
- onKeyUp: I,
2589
+ onPaste: j,
2590
+ onInput: y,
2591
+ onKeyDown: B,
2592
+ onKeyUp: N,
2593
2593
  suppressContentEditableWarning: !0,
2594
2594
  children: d
2595
2595
  }
2596
2596
  ),
2597
- p()
2597
+ v()
2598
2598
  ] });
2599
2599
  }
2600
- function Cn({
2600
+ function jn({
2601
2601
  value: e,
2602
2602
  onValue: t,
2603
2603
  name: a,
@@ -2610,28 +2610,28 @@ function Cn({
2610
2610
  reload: _ = !1,
2611
2611
  after: u = ""
2612
2612
  }) {
2613
- let f = (g) => {
2613
+ let f = (p) => {
2614
2614
  t && t({
2615
- value: g.target.textContent,
2615
+ value: p.target.textContent,
2616
2616
  name: a,
2617
2617
  reload: _
2618
2618
  });
2619
- }, m = (g) => {
2620
- g.key === "Enter" && g.preventDefault();
2621
- }, h = (g) => {
2622
- g.preventDefault(), navigator.clipboard.readText().then((y) => {
2619
+ }, m = (p) => {
2620
+ p.key === "Enter" && p.preventDefault();
2621
+ }, h = (p) => {
2622
+ p.preventDefault(), navigator.clipboard.readText().then((b) => {
2623
2623
  window.document.execCommand(
2624
2624
  "insertText",
2625
2625
  !1,
2626
- y.replace(/(\r\n|\n|\r)/gm, " ")
2626
+ b.replace(/(\r\n|\n|\r)/gm, " ")
2627
2627
  );
2628
- }).catch((y) => {
2628
+ }).catch((b) => {
2629
2629
  });
2630
2630
  };
2631
+ const g = {};
2632
+ g.field = "password", i && (g.className = i);
2631
2633
  const v = {};
2632
- v.field = "password", i && (v.className = i);
2633
- const p = {};
2634
- return r && (p.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...v, children: [
2634
+ return r && (v.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...g, children: [
2635
2635
  s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
2636
2636
  /* @__PURE__ */ n.jsx(
2637
2637
  "dd",
@@ -2641,7 +2641,7 @@ function Cn({
2641
2641
  onKeyDown: m,
2642
2642
  onBlur: le.Blur,
2643
2643
  contentEditable: c && d ? "plaintext-only" : "false",
2644
- ...p,
2644
+ ...v,
2645
2645
  suppressContentEditableWarning: !0,
2646
2646
  children: e
2647
2647
  }
@@ -2649,7 +2649,7 @@ function Cn({
2649
2649
  l ? /* @__PURE__ */ n.jsx("em", { children: l }) : ""
2650
2650
  ] });
2651
2651
  }
2652
- const rt = {
2652
+ const st = {
2653
2653
  0: {
2654
2654
  name: "Heard Island and Mcdonald Islands",
2655
2655
  dial_code: "+0",
@@ -4031,7 +4031,7 @@ const rt = {
4031
4031
  mask: "+1939(___) ___-__-__"
4032
4032
  }
4033
4033
  };
4034
- function Ct({
4034
+ function jt({
4035
4035
  value: e,
4036
4036
  onValue: t,
4037
4037
  onSave: a,
@@ -4048,42 +4048,42 @@ function Ct({
4048
4048
  className: h = ""
4049
4049
  }) {
4050
4050
  d = d !== void 0 ? d : !0, _ = _ !== void 0 ? _ : !0, c = !!(c && (e === "" || e === void 0)) && !(d && _), k.useRef(null);
4051
- let p = "+_(___) ___-__-__", g = !0, y = 0, j = (A, F) => {
4051
+ let v = "+_(___) ___-__-__", p = !0, b = 0, y = (A, F) => {
4052
4052
  let V = document.createRange(), Y = window.getSelection();
4053
4053
  V.setStart(F.childNodes[0], A), V.collapse(!0), Y.removeAllRanges(), Y.addRange(V), F.focus();
4054
- }, D = (A) => {
4054
+ }, B = (A) => {
4055
4055
  A.preventDefault(), navigator.clipboard.readText().then((F) => {
4056
4056
  window.document.execCommand("insertText", !1, F);
4057
4057
  }).catch((F) => {
4058
4058
  });
4059
- }, I = (A) => {
4059
+ }, N = (A) => {
4060
4060
  let F = 0, V = "", Y = A.replace(/\D/g, "");
4061
- Y === "" && (g = !0);
4062
- let Fe = Y.split(""), te = "";
4063
- Fe.forEach((Pe) => {
4064
- g && (te += Pe, rt[te] !== void 0 && g ? (g = !1, p = rt[te].mask.replace(new RegExp("[0-9]", "g"), "_"), V = rt[te].code) : (g && (y = ("" + te).length, p = `+${te}_(___) ___-__-__`.replace(
4061
+ Y === "" && (p = !0);
4062
+ let Le = Y.split(""), te = "";
4063
+ Le.forEach(($e) => {
4064
+ p && (te += $e, st[te] !== void 0 && p ? (p = !1, v = st[te].mask.replace(new RegExp("[0-9]", "g"), "_"), V = st[te].code) : (p && (b = ("" + te).length, v = `+${te}_(___) ___-__-__`.replace(
4065
4065
  new RegExp("[0-9]", "g"),
4066
4066
  "_"
4067
- ), V = ""), y > ("" + te).length && (g = !0, p = `+${te}_(___) ___-__-__`.replace(
4067
+ ), V = ""), b > ("" + te).length && (p = !0, v = `+${te}_(___) ___-__-__`.replace(
4068
4068
  new RegExp("[0-9]", "g"),
4069
4069
  "_"
4070
4070
  ), V = "")));
4071
4071
  });
4072
- let be = p.replace(/\D/g, "");
4073
- return be.length >= Y.length && (Y = be), { q: p.replace(/[_\d]/g, function() {
4072
+ let Se = v.replace(/\D/g, "");
4073
+ return Se.length >= Y.length && (Y = Se), { q: v.replace(/[_\d]/g, function() {
4074
4074
  return Y.charAt(F++) || "_";
4075
4075
  }), i: F, v: Y, f: V };
4076
- }, b = (A) => {
4076
+ }, j = (A) => {
4077
4077
  A.preventDefault(), navigator.clipboard.writeText(A.target.textContent.replace(/\D/g, "")).then(
4078
4078
  function() {
4079
- Ge.Copy("Данные в буфер обмене");
4079
+ Ke.Copy("Данные в буфер обмене");
4080
4080
  },
4081
4081
  function(F) {
4082
4082
  }
4083
4083
  );
4084
- }, S = I(e), w = (A) => {
4085
- let F = I(A.target.textContent);
4086
- A.target.textContent = F.q, F.i = F.q.lastIndexOf(F.v.substr(-1)), F.i < F.q.length && F.q !== p ? F.i++ : F.i = F.q.indexOf("_"), j(F.i, A.target), t && t({ value: F.q.replace(/\D/g, ""), name: r });
4084
+ }, S = N(e), w = (A) => {
4085
+ let F = N(A.target.textContent);
4086
+ A.target.textContent = F.q, F.i = F.q.lastIndexOf(F.v.substr(-1)), F.i < F.q.length && F.q !== v ? F.i++ : F.i = F.q.indexOf("_"), y(F.i, A.target), t && t({ value: F.q.replace(/\D/g, ""), name: r });
4087
4087
  }, E = (A) => {
4088
4088
  A.key === "Enter" && A.preventDefault();
4089
4089
  };
@@ -4101,10 +4101,10 @@ function Ct({
4101
4101
  "dd",
4102
4102
  {
4103
4103
  ...ie,
4104
- onPaste: D,
4104
+ onPaste: B,
4105
4105
  onInput: w,
4106
4106
  onKeyDown: E,
4107
- onContextMenu: b,
4107
+ onContextMenu: j,
4108
4108
  onBlur: O,
4109
4109
  suppressContentEditableWarning: !0,
4110
4110
  children: S.q
@@ -4164,33 +4164,33 @@ function yt({
4164
4164
  }) {
4165
4165
  const m = k.useRef();
4166
4166
  i = !!(i && (s === "" || c[s].n === void 0)) && !(a && r);
4167
- let v = s !== void 0 && s !== "" ? c[s].n : s, p = (D) => {
4168
- m.current.textContent = c[D].n, l && l({ value: D, name: _ });
4169
- }, g = (D) => {
4167
+ let g = s !== void 0 && s !== "" ? c[s].n : s, v = (B) => {
4168
+ m.current.textContent = c[B].n, l && l({ value: B, name: _ });
4169
+ }, p = (B) => {
4170
4170
  if (!(a && r))
4171
4171
  return;
4172
- const I = D.target.getBoundingClientRect();
4173
- Ne.setListener(
4172
+ const N = B.target.getBoundingClientRect();
4173
+ Fe.setListener(
4174
4174
  "form",
4175
4175
  /* @__PURE__ */ n.jsx(
4176
- Ti,
4176
+ Bi,
4177
4177
  {
4178
- parent: I,
4179
- onValue: p,
4178
+ parent: N,
4179
+ onValue: v,
4180
4180
  view: f,
4181
4181
  options: c
4182
4182
  },
4183
4183
  (/* @__PURE__ */ new Date()).getTime()
4184
4184
  )
4185
4185
  );
4186
- }, y = { field: "select" }, j = { onClick: g };
4187
- return d && (j.placeholder = d), u && (j.after = u), a && r && (j.edit = ""), i ? "" : /* @__PURE__ */ n.jsxs("dl", { ...y, children: [
4186
+ }, b = { field: "select" }, y = { onClick: p };
4187
+ return d && (y.placeholder = d), u && (y.after = u), a && r && (y.edit = ""), i ? "" : /* @__PURE__ */ n.jsxs("dl", { ...b, children: [
4188
4188
  e && /* @__PURE__ */ n.jsx("dt", { children: e }),
4189
- /* @__PURE__ */ n.jsx("dd", { ...j, ref: m, children: v }),
4189
+ /* @__PURE__ */ n.jsx("dd", { ...y, ref: m, children: g }),
4190
4190
  t && /* @__PURE__ */ n.jsx("em", { children: t })
4191
4191
  ] });
4192
4192
  }
4193
- const Ti = ({ onValue: e, parent: t, view: a, options: r }) => {
4193
+ const Bi = ({ onValue: e, parent: t, view: a, options: r }) => {
4194
4194
  let [i, s] = k.useState(!0), l = () => {
4195
4195
  s(!1);
4196
4196
  }, c = (u) => {
@@ -4230,7 +4230,7 @@ const Ti = ({ onValue: e, parent: t, view: a, options: r }) => {
4230
4230
  )
4231
4231
  ] }) : "" });
4232
4232
  };
4233
- function bt(e) {
4233
+ function wt(e) {
4234
4234
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, i = e.active !== void 0 ? e.active : !0, l = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(r && i), c = e.placeholder !== void 0 ? e.placeholder : "", d = (h) => {
4235
4235
  u(e.options[h]), e.onValue({ value: h, name: e.name });
4236
4236
  }, [_, u] = k.useState(
@@ -4238,13 +4238,13 @@ function bt(e) {
4238
4238
  ), f = (h) => {
4239
4239
  if (!(r && i))
4240
4240
  return;
4241
- const v = h.target.getBoundingClientRect();
4242
- Ne.setListener(
4241
+ const g = h.target.getBoundingClientRect();
4242
+ Fe.setListener(
4243
4243
  "form",
4244
4244
  /* @__PURE__ */ n.jsx(
4245
- Ri,
4245
+ Ni,
4246
4246
  {
4247
- parent: v,
4247
+ parent: g,
4248
4248
  onValue: d,
4249
4249
  view: e.view,
4250
4250
  options: e.options
@@ -4274,7 +4274,7 @@ function bt(e) {
4274
4274
  }
4275
4275
  );
4276
4276
  }
4277
- const Ri = ({ onValue: e, parent: t, view: a, options: r }) => {
4277
+ const Ni = ({ onValue: e, parent: t, view: a, options: r }) => {
4278
4278
  let [i, s] = k.useState(!0), l = () => {
4279
4279
  s(!1);
4280
4280
  }, c = (f) => {
@@ -4312,7 +4312,7 @@ const Ri = ({ onValue: e, parent: t, view: a, options: r }) => {
4312
4312
  )
4313
4313
  ] }) : "" });
4314
4314
  };
4315
- function _t({
4315
+ function ut({
4316
4316
  set: e,
4317
4317
  value: t,
4318
4318
  onValue: a,
@@ -4327,10 +4327,10 @@ function _t({
4327
4327
  after: f = "",
4328
4328
  view: m,
4329
4329
  module: h,
4330
- item: v,
4331
- className: p = ""
4330
+ item: g,
4331
+ className: v = ""
4332
4332
  }) {
4333
- let g = {};
4333
+ let p = {};
4334
4334
  switch (e) {
4335
4335
  case "Input":
4336
4336
  return /* @__PURE__ */ n.jsx(
@@ -4346,11 +4346,11 @@ function _t({
4346
4346
  onValue: a,
4347
4347
  name: r,
4348
4348
  placeholder: i,
4349
- className: p
4349
+ className: v
4350
4350
  }
4351
4351
  );
4352
4352
  case "Select":
4353
- return v && (g = ce.getSelect(parseInt(v)) ? ce.getSelect(parseInt(v)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
4353
+ return g && (p = ce.getSelect(parseInt(g)) ? ce.getSelect(parseInt(g)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
4354
4354
  yt,
4355
4355
  {
4356
4356
  title: s,
@@ -4363,13 +4363,13 @@ function _t({
4363
4363
  onValue: a,
4364
4364
  name: r,
4365
4365
  placeholder: i,
4366
- className: p,
4367
- options: g
4366
+ className: v,
4367
+ options: p
4368
4368
  }
4369
4369
  );
4370
4370
  case "Users":
4371
4371
  return ce.getSelect("user"), /* @__PURE__ */ n.jsx(
4372
- bt,
4372
+ wt,
4373
4373
  {
4374
4374
  title: s,
4375
4375
  show: _,
@@ -4381,13 +4381,13 @@ function _t({
4381
4381
  onValue: a,
4382
4382
  name: r,
4383
4383
  placeholder: i,
4384
- className: p,
4385
- options: g
4384
+ className: v,
4385
+ options: p
4386
4386
  }
4387
4387
  );
4388
4388
  case "Date":
4389
4389
  return /* @__PURE__ */ n.jsx(
4390
- gt,
4390
+ vt,
4391
4391
  {
4392
4392
  title: s,
4393
4393
  show: _,
@@ -4399,12 +4399,12 @@ function _t({
4399
4399
  onValue: a,
4400
4400
  name: r,
4401
4401
  placeholder: i,
4402
- className: p
4402
+ className: v
4403
4403
  }
4404
4404
  );
4405
4405
  case "Phone":
4406
4406
  return /* @__PURE__ */ n.jsx(
4407
- Ct,
4407
+ jt,
4408
4408
  {
4409
4409
  title: s,
4410
4410
  show: _,
@@ -4416,12 +4416,12 @@ function _t({
4416
4416
  onValue: a,
4417
4417
  name: r,
4418
4418
  placeholder: i,
4419
- className: p
4419
+ className: v
4420
4420
  }
4421
4421
  );
4422
4422
  case "Number":
4423
4423
  return /* @__PURE__ */ n.jsx(
4424
- kt,
4424
+ bt,
4425
4425
  {
4426
4426
  title: s,
4427
4427
  show: _,
@@ -4433,12 +4433,12 @@ function _t({
4433
4433
  onValue: a,
4434
4434
  name: r,
4435
4435
  placeholder: i,
4436
- className: p
4436
+ className: v
4437
4437
  }
4438
4438
  );
4439
4439
  case "Money":
4440
4440
  return /* @__PURE__ */ n.jsx(
4441
- vt,
4441
+ Ct,
4442
4442
  {
4443
4443
  title: s,
4444
4444
  show: _,
@@ -4450,12 +4450,12 @@ function _t({
4450
4450
  onValue: a,
4451
4451
  name: r,
4452
4452
  placeholder: i,
4453
- className: p
4453
+ className: v
4454
4454
  }
4455
4455
  );
4456
4456
  case "Modal":
4457
4457
  return /* @__PURE__ */ n.jsx(
4458
- pt,
4458
+ kt,
4459
4459
  {
4460
4460
  title: s,
4461
4461
  show: _,
@@ -4467,14 +4467,14 @@ function _t({
4467
4467
  onValue: a,
4468
4468
  name: r || "",
4469
4469
  placeholder: i,
4470
- className: p,
4471
- options: g,
4470
+ className: v,
4471
+ options: p,
4472
4472
  module: h || ""
4473
4473
  }
4474
4474
  );
4475
4475
  }
4476
4476
  }
4477
- function bn({
4477
+ function wn({
4478
4478
  value: e,
4479
4479
  onValue: t,
4480
4480
  name: a,
@@ -4489,32 +4489,32 @@ function bn({
4489
4489
  view: f,
4490
4490
  onBlur: m,
4491
4491
  onSave: h,
4492
- className: v = ""
4492
+ className: g = ""
4493
4493
  }) {
4494
- let p = !!(l && (e === "" || e === void 0));
4495
- if (!(c && d) && !u || !(c && d) && p)
4494
+ let v = !!(l && (e === "" || e === void 0));
4495
+ if (!(c && d) && !u || !(c && d) && v)
4496
4496
  return "";
4497
- let g = (I) => {
4498
- t && t({ value: I.target.innerText, name: a });
4499
- }, y = (I) => {
4500
- h && h({ value: I.target.innerText, name: a });
4501
- }, j = (I) => {
4502
- I.preventDefault(), navigator.clipboard.readText().then((b) => {
4503
- window.document.execCommand("insertText", !1, b);
4504
- }).catch((b) => {
4497
+ let p = (N) => {
4498
+ t && t({ value: N.target.innerText, name: a });
4499
+ }, b = (N) => {
4500
+ h && h({ value: N.target.innerText, name: a });
4501
+ }, y = (N) => {
4502
+ N.preventDefault(), navigator.clipboard.readText().then((j) => {
4503
+ window.document.execCommand("insertText", !1, j);
4504
+ }).catch((j) => {
4505
4505
  });
4506
4506
  };
4507
- const D = {};
4508
- return r && (D.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { children: [
4507
+ const B = {};
4508
+ return r && (B.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { children: [
4509
4509
  i ?? /* @__PURE__ */ n.jsx("dt", { children: i }),
4510
4510
  /* @__PURE__ */ n.jsx(
4511
4511
  "dd",
4512
4512
  {
4513
- onPaste: j,
4514
- onBlur: y,
4515
- onInput: g,
4513
+ onPaste: y,
4514
+ onBlur: b,
4515
+ onInput: p,
4516
4516
  contentEditable: c && d ? "plaintext-only" : "false",
4517
- ...D,
4517
+ ...B,
4518
4518
  suppressContentEditableWarning: !0,
4519
4519
  children: e
4520
4520
  }
@@ -4522,7 +4522,7 @@ function bn({
4522
4522
  s ?? /* @__PURE__ */ n.jsx("em", { children: s })
4523
4523
  ] });
4524
4524
  }
4525
- function jn({
4525
+ function Sn({
4526
4526
  value: e,
4527
4527
  onValue: t,
4528
4528
  name: a,
@@ -4537,50 +4537,50 @@ function jn({
4537
4537
  view: f,
4538
4538
  onBlur: m,
4539
4539
  onSave: h,
4540
- className: v = ""
4540
+ className: g = ""
4541
4541
  }) {
4542
- let p = !!(l && (e === "" || e === void 0)), g = z.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), y = k.useRef(null);
4543
- if (!(c && d) && !u || !(c && d) && p)
4542
+ let v = !!(l && (e === "" || e === void 0)), p = K.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), b = k.useRef(null);
4543
+ if (!(c && d) && !u || !(c && d) && v)
4544
4544
  return "";
4545
- let j = (w) => {
4546
- y.current.textContent = w, t && t({ value: w, name: a });
4547
- }, D = (w) => {
4545
+ let y = (w) => {
4546
+ b.current.textContent = w, t && t({ value: w, name: a });
4547
+ }, B = (w) => {
4548
4548
  h && h({ value: w, name: a });
4549
- }, I = (w) => {
4549
+ }, N = (w) => {
4550
4550
  const E = w.target.getBoundingClientRect(), O = E.left, q = E.top;
4551
- Ne.setListener(
4551
+ Fe.setListener(
4552
4552
  "form",
4553
4553
  /* @__PURE__ */ n.jsx(
4554
4554
  Di,
4555
4555
  {
4556
4556
  positions: { x: O, y: q },
4557
- onSave: D,
4558
- onValue: j,
4559
- date: g
4557
+ onSave: B,
4558
+ onValue: y,
4559
+ date: p
4560
4560
  },
4561
4561
  (/* @__PURE__ */ new Date()).getTime()
4562
4562
  )
4563
4563
  );
4564
4564
  };
4565
- const b = {};
4566
- b.field = "input", v && (b.className = v);
4565
+ const j = {};
4566
+ j.field = "input", g && (j.className = g);
4567
4567
  const S = {};
4568
4568
  return r && (S.placeholder = r), /* @__PURE__ */ n.jsx(n.Fragment, { children: f === "icon" ? /* @__PURE__ */ n.jsx(
4569
4569
  "i",
4570
4570
  {
4571
4571
  "data-icon": "F043",
4572
- onClick: I
4572
+ onClick: N
4573
4573
  }
4574
- ) : /* @__PURE__ */ n.jsxs("dl", { ...b, children: [
4574
+ ) : /* @__PURE__ */ n.jsxs("dl", { ...j, children: [
4575
4575
  i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "",
4576
- /* @__PURE__ */ n.jsx("dd", { onClick: I, ref: y, ...S, children: g }),
4576
+ /* @__PURE__ */ n.jsx("dd", { onClick: N, ref: b, ...S, children: p }),
4577
4577
  s ? /* @__PURE__ */ n.jsx("em", { children: s }) : ""
4578
4578
  ] }) });
4579
4579
  }
4580
4580
  const Di = ({ positions: e, onSave: t, onValue: a, date: r }) => {
4581
4581
  let i = r.split(":"), s = {
4582
- h: z.Number(2, i[0]),
4583
- m: z.Number(2, i[1])
4582
+ h: K.Number(2, i[0]),
4583
+ m: K.Number(2, i[1])
4584
4584
  }, l = "hour", [c, d] = k.useState({}), _ = !1, u = 0, f = 0, m = {
4585
4585
  body: k.useRef(null),
4586
4586
  time: k.useRef(null),
@@ -4593,9 +4593,9 @@ const Di = ({ positions: e, onSave: t, onValue: a, date: r }) => {
4593
4593
  }, [m.body, m.hour, m.time, s.m, s.h]);
4594
4594
  let h = () => {
4595
4595
  _ = !0;
4596
- }, v = () => {
4596
+ }, g = () => {
4597
4597
  _ = !1, l = l === "hour" ? "time" : "hour", m.body.current.setAttribute("active", l);
4598
- }, p = (S) => {
4598
+ }, v = (S) => {
4599
4599
  if (_) {
4600
4600
  let E = Math.atan2(
4601
4601
  S.pageX - (c.x + 78),
@@ -4603,13 +4603,13 @@ const Di = ({ positions: e, onSave: t, onValue: a, date: r }) => {
4603
4603
  ) * (180 / Math.PI) * -1 + 180;
4604
4604
  m[l].current.style.transform = "rotate(" + E + "deg)", l === "hour" ? (s = {
4605
4605
  ...s,
4606
- h: z.Number(2, parseInt(String(E / 15), 10))
4606
+ h: K.Number(2, parseInt(String(E / 15), 10))
4607
4607
  }, m.hourText.current.textContent = s.h) : (s = {
4608
4608
  ...s,
4609
- m: z.Number(2, parseInt(String(E / 6), 10))
4609
+ m: K.Number(2, parseInt(String(E / 6), 10))
4610
4610
  }, m.timeText.current.textContent = s.m), a(s.h + ":" + s.m);
4611
4611
  }
4612
- }, g = (S) => {
4612
+ }, p = (S) => {
4613
4613
  if (l === "hour")
4614
4614
  if (S.deltaY > 0) {
4615
4615
  u += S.deltaY;
@@ -4617,7 +4617,7 @@ const Di = ({ positions: e, onSave: t, onValue: a, date: r }) => {
4617
4617
  if (f !== w) {
4618
4618
  f = w;
4619
4619
  let E = parseInt(s.h, 10) + 1;
4620
- E = E > 23 ? 0 : E, s = { ...s, h: z.Number(2, E) }, m.hourText.current.textContent = s.h, m[l].current.style.transform = "rotate(" + s.h * 15 + "deg)";
4620
+ E = E > 23 ? 0 : E, s = { ...s, h: K.Number(2, E) }, m.hourText.current.textContent = s.h, m[l].current.style.transform = "rotate(" + s.h * 15 + "deg)";
4621
4621
  }
4622
4622
  } else {
4623
4623
  u -= S.deltaY;
@@ -4625,7 +4625,7 @@ const Di = ({ positions: e, onSave: t, onValue: a, date: r }) => {
4625
4625
  if (f !== w) {
4626
4626
  f = w;
4627
4627
  let E = parseInt(s.h, 10) - 1;
4628
- E = E < 0 ? 23 : E, s = { ...s, h: z.Number(2, E) }, m.hourText.current.textContent = s.h, m[l].current.style.transform = "rotate(" + s.h * 15 + "deg)";
4628
+ E = E < 0 ? 23 : E, s = { ...s, h: K.Number(2, E) }, m.hourText.current.textContent = s.h, m[l].current.style.transform = "rotate(" + s.h * 15 + "deg)";
4629
4629
  }
4630
4630
  }
4631
4631
  else if (S.deltaY > 0) {
@@ -4634,7 +4634,7 @@ const Di = ({ positions: e, onSave: t, onValue: a, date: r }) => {
4634
4634
  if (f !== w) {
4635
4635
  f = w;
4636
4636
  let E = parseInt(s.m, 10) + 1;
4637
- E = E > 59 ? 0 : E, s = { ...s, m: z.Number(2, E) }, m.timeText.current.textContent = s.m, m[l].current.style.transform = "rotate(" + s.m * 6 + "deg)";
4637
+ E = E > 59 ? 0 : E, s = { ...s, m: K.Number(2, E) }, m.timeText.current.textContent = s.m, m[l].current.style.transform = "rotate(" + s.m * 6 + "deg)";
4638
4638
  }
4639
4639
  } else {
4640
4640
  u -= S.deltaY;
@@ -4642,32 +4642,32 @@ const Di = ({ positions: e, onSave: t, onValue: a, date: r }) => {
4642
4642
  if (f !== w) {
4643
4643
  f = w;
4644
4644
  let E = parseInt(s.m, 10) - 1;
4645
- E = E < 0 ? 59 : E, s = { ...s, m: z.Number(2, E) }, m.timeText.current.textContent = s.m, m[l].current.style.transform = "rotate(" + s.m * 6 + "deg)";
4645
+ E = E < 0 ? 59 : E, s = { ...s, m: K.Number(2, E) }, m.timeText.current.textContent = s.m, m[l].current.style.transform = "rotate(" + s.m * 6 + "deg)";
4646
4646
  }
4647
4647
  }
4648
4648
  a(s.h + ":" + s.m);
4649
- }, [y, j] = k.useState(!0), D = () => {
4650
- j(!1), t(s.h + ":" + s.m);
4651
- }, I = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, b = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
4652
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: y ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4649
+ }, [b, y] = k.useState(!0), B = () => {
4650
+ y(!1), t(s.h + ":" + s.m);
4651
+ }, N = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, j = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
4652
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: b ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4653
4653
  /* @__PURE__ */ n.jsx(
4654
4654
  "div",
4655
4655
  {
4656
- className: ve.o,
4657
- onClick: () => D()
4656
+ className: be.o,
4657
+ onClick: () => B()
4658
4658
  },
4659
4659
  (/* @__PURE__ */ new Date()).getTime()
4660
4660
  ),
4661
4661
  /* @__PURE__ */ n.jsxs(
4662
4662
  "div",
4663
4663
  {
4664
- className: ve.c,
4664
+ className: be.c,
4665
4665
  onMouseDown: h,
4666
- onMouseUp: v,
4667
- onMouseMove: p,
4668
- onWheel: g,
4666
+ onMouseUp: g,
4667
+ onMouseMove: v,
4668
+ onWheel: p,
4669
4669
  ref: m.body,
4670
- style: { top: I + "px", left: b + "px" },
4670
+ style: { top: N + "px", left: j + "px" },
4671
4671
  children: [
4672
4672
  /* @__PURE__ */ n.jsx("div", { className: "b" }),
4673
4673
  /* @__PURE__ */ n.jsxs("div", { className: "s", children: [
@@ -4684,7 +4684,7 @@ const Di = ({ positions: e, onSave: t, onValue: a, date: r }) => {
4684
4684
  )
4685
4685
  ] }) : "" });
4686
4686
  };
4687
- function wn({
4687
+ function En({
4688
4688
  onValue: e,
4689
4689
  label: t,
4690
4690
  value: a,
@@ -4704,7 +4704,7 @@ function wn({
4704
4704
  /* @__PURE__ */ n.jsx("dd", { ...u, onClick: d })
4705
4705
  ] });
4706
4706
  }
4707
- const Sn = ({ onValue: e, value: t, name: a, item: r }) => {
4707
+ const Tn = ({ onValue: e, value: t, name: a, item: r }) => {
4708
4708
  const [i, s] = k.useState(!!t);
4709
4709
  k.useEffect(() => {
4710
4710
  s(!!t);
@@ -4722,7 +4722,7 @@ const Sn = ({ onValue: e, value: t, name: a, item: r }) => {
4722
4722
  }
4723
4723
  );
4724
4724
  };
4725
- function En({
4725
+ function Rn({
4726
4726
  value: e,
4727
4727
  onValue: t,
4728
4728
  name: a,
@@ -4737,36 +4737,36 @@ function En({
4737
4737
  view: f,
4738
4738
  onBlur: m,
4739
4739
  onSave: h,
4740
- className: v = ""
4740
+ className: g = ""
4741
4741
  }) {
4742
- const [p, g] = k.useState(
4742
+ const [v, p] = k.useState(
4743
4743
  e !== void 0 ? e.split(",") : []
4744
4744
  );
4745
4745
  k.useEffect(() => {
4746
- e !== void 0 && g(e !== void 0 ? e.split(",") : []);
4746
+ e !== void 0 && p(e !== void 0 ? e.split(",") : []);
4747
4747
  }, [e]);
4748
- let y = () => {
4749
- g([...p, ""]);
4750
- }, j = (O) => {
4751
- p.splice(O, 1), p.length === 0 && p.push(""), g([...p]), m !== void 0 && m({ value: p.join(","), name: a });
4752
- }, D = !!(l && (e === "" || e === void 0)), I = (O) => {
4748
+ let b = () => {
4749
+ p([...v, ""]);
4750
+ }, y = (O) => {
4751
+ v.splice(O, 1), v.length === 0 && v.push(""), p([...v]), m !== void 0 && m({ value: v.join(","), name: a });
4752
+ }, B = !!(l && (e === "" || e === void 0)), N = (O) => {
4753
4753
  };
4754
- if (!(c && d) && !u || !(c && d) && D)
4754
+ if (!(c && d) && !u || !(c && d) && B)
4755
4755
  return "";
4756
- const b = {};
4757
- b.field = "group", v && (b.className = v);
4756
+ const j = {};
4757
+ j.field = "group", g && (j.className = g);
4758
4758
  const S = (O) => {
4759
4759
  le.Blur(O), h && h({ value: O.target.textContent, name: a });
4760
4760
  };
4761
4761
  let w = (O, q) => {
4762
- p[q] = O.target.textContent, t !== void 0 && t({ value: p.join(","), name: a });
4762
+ v[q] = O.target.textContent, t !== void 0 && t({ value: v.join(","), name: a });
4763
4763
  }, E = (O) => {
4764
4764
  O.key === "Enter" && O.preventDefault();
4765
4765
  };
4766
- return /* @__PURE__ */ n.jsxs("dl", { ...b, children: [
4766
+ return /* @__PURE__ */ n.jsxs("dl", { ...j, children: [
4767
4767
  /* @__PURE__ */ n.jsxs("dt", { children: [
4768
4768
  i,
4769
- /* @__PURE__ */ n.jsx("i", { onClick: y, children: /* @__PURE__ */ n.jsxs(
4769
+ /* @__PURE__ */ n.jsx("i", { onClick: b, children: /* @__PURE__ */ n.jsxs(
4770
4770
  "svg",
4771
4771
  {
4772
4772
  xmlns: "http://www.w3.org/2000/svg",
@@ -4783,7 +4783,7 @@ function En({
4783
4783
  }
4784
4784
  ) })
4785
4785
  ] }),
4786
- /* @__PURE__ */ n.jsx("dd", { children: p.map((O, q) => /* @__PURE__ */ n.jsxs("li", { className: "field_group_item", children: [
4786
+ /* @__PURE__ */ n.jsx("dd", { children: v.map((O, q) => /* @__PURE__ */ n.jsxs("li", { className: "field_group_item", children: [
4787
4787
  /* @__PURE__ */ n.jsx(
4788
4788
  "span",
4789
4789
  {
@@ -4791,19 +4791,19 @@ function En({
4791
4791
  edit: "true",
4792
4792
  name: a,
4793
4793
  placeholder: r,
4794
- onPaste: I,
4794
+ onPaste: N,
4795
4795
  contentEditable: !0,
4796
4796
  onKeyDown: E,
4797
4797
  onBlur: S,
4798
4798
  suppressContentEditableWarning: !0,
4799
- children: p[q]
4799
+ children: v[q]
4800
4800
  }
4801
4801
  ),
4802
4802
  /* @__PURE__ */ n.jsx(
4803
4803
  "i",
4804
4804
  {
4805
4805
  onClick: () => {
4806
- j(q);
4806
+ y(q);
4807
4807
  },
4808
4808
  children: /* @__PURE__ */ n.jsxs(
4809
4809
  "svg",
@@ -4828,7 +4828,7 @@ function En({
4828
4828
  ] });
4829
4829
  }
4830
4830
  const Ii = (e) => (e = e !== void 0 && e !== "" ? e.split(",") : [], e.reduce((t, a) => (t[a] = !0, t), {}));
4831
- function Tn({
4831
+ function Bn({
4832
4832
  value: e,
4833
4833
  onValue: t,
4834
4834
  name: a,
@@ -4843,29 +4843,29 @@ function Tn({
4843
4843
  view: f,
4844
4844
  modal: m,
4845
4845
  module: h,
4846
- options: v,
4847
- className: p
4846
+ options: g,
4847
+ className: v
4848
4848
  }) {
4849
- const [g, y] = k.useState(Ii(e)), j = (b) => {
4849
+ const [p, b] = k.useState(Ii(e)), y = (j) => {
4850
4850
  if (!(c && _) || !m)
4851
4851
  return;
4852
4852
  let S = m.split(".");
4853
- pn.Open(S[0], S[1], {
4853
+ kn.Open(S[0], S[1], {
4854
4854
  callback: (w) => {
4855
- t && t({ value: w, name: a }), y(w);
4855
+ t && t({ value: w, name: a }), b(w);
4856
4856
  },
4857
4857
  onValue: t,
4858
- options: v,
4858
+ options: g,
4859
4859
  name: a,
4860
- value: g
4860
+ value: p
4861
4861
  });
4862
- }, D = {};
4863
- D.field = "group", p && (D.className = p);
4864
- const I = {};
4865
- return r && (I.placeholder = r), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...D, children: [
4862
+ }, B = {};
4863
+ B.field = "group", v && (B.className = v);
4864
+ const N = {};
4865
+ return r && (N.placeholder = r), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...B, children: [
4866
4866
  /* @__PURE__ */ n.jsxs("dt", { children: [
4867
4867
  i,
4868
- /* @__PURE__ */ n.jsx("i", { onClick: j, children: /* @__PURE__ */ n.jsxs(
4868
+ /* @__PURE__ */ n.jsx("i", { onClick: y, children: /* @__PURE__ */ n.jsxs(
4869
4869
  "svg",
4870
4870
  {
4871
4871
  width: "20",
@@ -4886,79 +4886,202 @@ function Tn({
4886
4886
  /* @__PURE__ */ n.jsx(
4887
4887
  "dd",
4888
4888
  {
4889
- ...I,
4889
+ ...N,
4890
4890
  onClick: open,
4891
4891
  edit: (c && _) + "",
4892
4892
  "data-after": u,
4893
- children: Object.keys(g).map((b) => {
4893
+ children: Object.keys(p).map((j) => {
4894
4894
  var S;
4895
- return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (S = v[b]) == null ? void 0 : S.label }, b);
4895
+ return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (S = g[j]) == null ? void 0 : S.label }, j);
4896
4896
  })
4897
4897
  }
4898
4898
  ),
4899
4899
  s && /* @__PURE__ */ n.jsx("em", { children: s })
4900
4900
  ] });
4901
4901
  }
4902
- const zo = {
4903
- Color: gn,
4904
- Date: gt,
4905
- Code: xn,
4906
- Check: wn,
4907
- Switch: dn,
4902
+ const Mi = {
4903
+ Color: vn,
4904
+ Date: vt,
4905
+ Code: pn,
4906
+ Check: En,
4907
+ Switch: fn,
4908
4908
  Input: De,
4909
- Button: un,
4910
- Message: fn,
4911
- Generator: mn,
4912
- Captcha: hn,
4913
- Modal: pt,
4914
- Money: vt,
4915
- Month: vn,
4916
- Notes: kn,
4917
- Number: kt,
4918
- Password: Cn,
4919
- Phone: Ct,
4909
+ Button: mn,
4910
+ Message: hn,
4911
+ Generator: xn,
4912
+ Captcha: gn,
4913
+ Modal: kt,
4914
+ Money: Ct,
4915
+ Month: Cn,
4916
+ Notes: bn,
4917
+ Number: bt,
4918
+ Password: jn,
4919
+ Phone: jt,
4920
4920
  Search: yn,
4921
4921
  Select: yt,
4922
- Set: _t,
4923
- Textarea: bn,
4924
- Time: jn,
4925
- Users: bt,
4922
+ Set: ut,
4923
+ Textarea: wn,
4924
+ Time: Sn,
4925
+ Users: wt,
4926
4926
  String: De,
4927
- Toogle: Sn,
4928
- Group: En,
4929
- Options: Tn
4930
- }, B = window.Telegram.WebApp;
4931
- B.getUser = () => {
4927
+ Toogle: Tn,
4928
+ Group: Rn,
4929
+ Options: Bn
4930
+ }, D = window.Telegram.WebApp, Ce = { is: !1, MainButton: {}, BackButton: {} };
4931
+ let he = {};
4932
+ he.dark = {
4933
+ "--tg-theme-hint-color": "#b1c3d5",
4934
+ "--tg-theme-text-color": "#ffffff",
4935
+ "--tg-theme-link-color": "#62bcf9",
4936
+ "--tg-theme-button-text-color": "#ffffff",
4937
+ "--tg-theme-bg-color": "#18222d",
4938
+ "--tg-theme-button-color": "#2ea6ff",
4939
+ "--tg-theme-secondary-bg-color": "#131415"
4940
+ };
4941
+ he.light = {
4942
+ "--tg-theme-bg-color": "#ffffff",
4943
+ "--tg-theme-text-color": "#000000",
4944
+ "--tg-theme-hint-color": "#999999",
4945
+ "--tg-theme-link-color": "#2481cc",
4946
+ "--tg-theme-button-color": "#2481cc",
4947
+ "--tg-theme-button-text-color": "#ffffff",
4948
+ "--tg-theme-secondary-bg-color": "#efeff3"
4949
+ };
4950
+ he.users = {
4951
+ "--tg-theme-bg-color": "#000000",
4952
+ "--tg-theme-text-color": "#ffffff",
4953
+ "--tg-theme-hint-color": "#98989e",
4954
+ "--tg-theme-link-color": "#ffffff",
4955
+ "--tg-theme-button-color": "#ffffff",
4956
+ "--tg-theme-button-text-color": "#000000",
4957
+ "--tg-theme-secondary-bg-color": "#000000"
4958
+ };
4959
+ D.getUser = () => {
4932
4960
  var e;
4933
- return ((e = B.initDataUnsafe) == null ? void 0 : e.user) === void 0 ? {} : B.initDataUnsafe;
4961
+ return ((e = D.initDataUnsafe) == null ? void 0 : e.user) === void 0 ? {} : D.initDataUnsafe;
4934
4962
  };
4935
- B.MainButton.set = (e) => {
4936
- e === !1 ? B.MainButton.isVisible = !1 : (B.MainButton.text = e.text, B.MainButton.color = e.color, B.MainButton.textColor = e.textColor, B.MainButton.isVisible = !0, B.MainButton.isActive = e.isActive === void 0 ? !0 : e.isActive, e.page === void 0 || B.MainButton.onClick(() => {
4937
- Re.setPage(e.page);
4938
- }));
4963
+ D.MainButton.set = (e) => {
4964
+ Ce.is || (e === !1 ? D.MainButton.isVisible = !1 : (D.MainButton.text = e.text, D.MainButton.color = e.color, D.MainButton.textColor = e.textColor, D.MainButton.isVisible = !0, D.MainButton.isActive = e.isActive === void 0 ? !0 : e.isActive, e.page === void 0 || D.MainButton.onClick(() => {
4965
+ ke.setPage(e.page);
4966
+ })));
4939
4967
  };
4940
- B.BackButton.state = [!1];
4941
- B.BackButton.listen = [];
4942
- B.BackButton.router = (e) => {
4943
- e === !1 ? (B.BackButton.isVisible = !1, B.BackButton.offClick(B.BackButton.listen[0]), B.BackButton.listen.shift(), B.BackButton.state.length !== 1 && B.BackButton.state.pop()) : (B.BackButton.isVisible = !0, B.BackButton.offClick(B.BackButton.listen[0]), B.BackButton.listen.shift(), B.BackButton.listen.push(() => {
4944
- let t = B.BackButton.state.pop();
4968
+ D.BackButton.state = [!1];
4969
+ D.BackButton.listen = [];
4970
+ D.BackButton.router = (e) => {
4971
+ e === !1 ? (D.BackButton.isVisible = !1, D.BackButton.offClick(D.BackButton.listen[0]), D.BackButton.listen.shift(), D.BackButton.state.length !== 1 && D.BackButton.state.pop()) : (D.BackButton.isVisible = !0, D.BackButton.offClick(D.BackButton.listen[0]), D.BackButton.listen.shift(), D.BackButton.listen.push(() => {
4972
+ let t = D.BackButton.state.pop();
4945
4973
  if (t.page !== void 0)
4946
- Re.setPage(t.page);
4974
+ ke.setPage(t.page);
4947
4975
  else {
4948
- let a = B.BackButton.state[B.BackButton.state.length - 1];
4949
- B.BackButton.router(a);
4976
+ let a = D.BackButton.state[D.BackButton.state.length - 1];
4977
+ D.BackButton.router(a);
4950
4978
  }
4951
- }), B.BackButton.onClick(B.BackButton.listen[0]));
4979
+ }), D.BackButton.onClick(D.BackButton.listen[0]));
4980
+ };
4981
+ D.BackButton.set = (e) => {
4982
+ Ce.is ? Ce.BackButton.set(e) : (D.BackButton.state.push(e), D.BackButton.router(e));
4952
4983
  };
4953
- B.BackButton.set = (e) => {
4954
- B.BackButton.state.push(e), B.BackButton.router(e);
4984
+ D.Notice = (e, t) => {
4985
+ t !== void 0 ? (Ke.Send({ type: e, text: t }), D.HapticFeedback.notificationOccurred(e)) : (Ke.Send(e), D.HapticFeedback.notificationOccurred(e.type));
4955
4986
  };
4956
- B.Notice = (e, t) => {
4957
- t !== void 0 ? (Ge.Send({ type: e, text: t }), B.HapticFeedback.notificationOccurred(e)) : (Ge.Send(e), B.HapticFeedback.notificationOccurred(e.type));
4987
+ D.Init = ({ page: e, dev: t }) => {
4988
+ if (t) {
4989
+ let [a, r] = k.useState(!1), [i, s] = k.useState(!1), [l, c] = k.useState("dark"), [d, _] = k.useState(!1), [u, f] = k.useState(!1);
4990
+ Ce.is = !0, Ce.MainButton.set = r, Ce.BackButton.set = s, k.useEffect(() => {
4991
+ for (let g in he[l])
4992
+ document.documentElement.style.setProperty(
4993
+ g,
4994
+ he[l][g]
4995
+ );
4996
+ }, []);
4997
+ let m = (g) => {
4998
+ for (let v in he[g])
4999
+ document.documentElement.style.setProperty(v, he[g][v]);
5000
+ c(g), _(!1);
5001
+ }, h = () => {
5002
+ _(!1), f(!0);
5003
+ };
5004
+ return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
5005
+ /* @__PURE__ */ n.jsxs("div", { className: "debug", children: [
5006
+ i === !1 ? /* @__PURE__ */ n.jsx("div", { className: "back", children: "Отмена" }) : /* @__PURE__ */ n.jsx(
5007
+ "div",
5008
+ {
5009
+ onClick: () => {
5010
+ i.page;
5011
+ },
5012
+ className: "back",
5013
+ children: "Назад"
5014
+ }
5015
+ ),
5016
+ /* @__PURE__ */ n.jsx(
5017
+ "div",
5018
+ {
5019
+ className: "options",
5020
+ onClick: () => _(!d),
5021
+ children: "Меню"
5022
+ }
5023
+ )
5024
+ ] }),
5025
+ d ? /* @__PURE__ */ n.jsxs("div", { className: "telegram-menu", children: [
5026
+ /* @__PURE__ */ n.jsxs("ul", { children: [
5027
+ /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: h, children: "Authorization" }) }),
5028
+ /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => ke.setPage("Add"), children: "Add Page" }) })
5029
+ ] }),
5030
+ /* @__PURE__ */ n.jsxs("ul", { children: [
5031
+ /* @__PURE__ */ n.jsxs("li", { children: [
5032
+ /* @__PURE__ */ n.jsx("button", { children: "Thema" }),
5033
+ /* @__PURE__ */ n.jsxs("ol", { children: [
5034
+ /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
5035
+ "button",
5036
+ {
5037
+ onClick: () => m("dark"),
5038
+ children: "Dark"
5039
+ }
5040
+ ) }),
5041
+ /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
5042
+ "button",
5043
+ {
5044
+ onClick: () => m("light"),
5045
+ children: "Light"
5046
+ }
5047
+ ) }),
5048
+ /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
5049
+ "button",
5050
+ {
5051
+ onClick: () => m("users"),
5052
+ children: "Users"
5053
+ }
5054
+ ) })
5055
+ ] })
5056
+ ] }),
5057
+ /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => _(!d), children: "Closed" }) })
5058
+ ] })
5059
+ ] }) : "",
5060
+ u ? /* @__PURE__ */ n.jsx(Fi, { setAuthorization: f }) : ""
5061
+ ] });
5062
+ } else
5063
+ return /* @__PURE__ */ n.jsx(n.Fragment, {});
4958
5064
  };
4959
- B.Init = ({ page: e }) => /* @__PURE__ */ n.jsx(n.Fragment, {});
4960
- const Bi = ({ list: e, onClick: t, active: a, size: r, view: i }) => /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, i].join(" "), children: e.map((s) => /* @__PURE__ */ n.jsx(
4961
- Ni,
5065
+ const Fi = ({ setAuthorization: e }) => {
5066
+ let t = {}, a = (i) => {
5067
+ t = i.value;
5068
+ }, r = (i) => {
5069
+ localStorage.setItem("auth", t);
5070
+ };
5071
+ return /* @__PURE__ */ n.jsx("div", { className: "telegram-auth", children: /* @__PURE__ */ n.jsxs("div", { className: "telegram-auth-body", children: [
5072
+ /* @__PURE__ */ n.jsx("fieldset", { children: /* @__PURE__ */ n.jsx(
5073
+ Mi.Notes,
5074
+ {
5075
+ label: "Data JSON",
5076
+ name: "description",
5077
+ onValue: a,
5078
+ placeholder: ""
5079
+ }
5080
+ ) }),
5081
+ /* @__PURE__ */ n.jsx("div", { onClick: r, children: " Сщхранить " })
5082
+ ] }) });
5083
+ }, Pi = ({ list: e, onClick: t, active: a, size: r, view: i }) => /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, i].join(" "), children: e.map((s) => /* @__PURE__ */ n.jsx(
5084
+ Li,
4962
5085
  {
4963
5086
  onClick: t,
4964
5087
  active: a,
@@ -4966,9 +5089,9 @@ const Bi = ({ list: e, onClick: t, active: a, size: r, view: i }) => /* @__PURE_
4966
5089
  link: s.link
4967
5090
  },
4968
5091
  s.link
4969
- )) }) }), Ni = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
4970
- Bi.defaultProps = { size: "M", view: "H" };
4971
- const Mi = ({
5092
+ )) }) }), Li = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
5093
+ Pi.defaultProps = { size: "M", view: "H" };
5094
+ const $i = ({
4972
5095
  title: e = "",
4973
5096
  button: t,
4974
5097
  description: a = "",
@@ -4988,9 +5111,9 @@ const Mi = ({
4988
5111
  ] }),
4989
5112
  /* @__PURE__ */ n.jsx("ul", { children: r }),
4990
5113
  a && /* @__PURE__ */ n.jsx("article", { children: a })
4991
- ] }), Fi = "_setting_dva4m_2", Pi = {
4992
- setting: Fi
4993
- }, Li = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: Pi.setting, children: e }), $i = ({ label: e, children: t }) => {
5114
+ ] }), Oi = "_setting_dva4m_2", Ai = {
5115
+ setting: Oi
5116
+ }, Wi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: Ai.setting, children: e }), Gi = ({ label: e, children: t }) => {
4994
5117
  let [a, r] = k.useState(!1);
4995
5118
  return /* @__PURE__ */ n.jsxs("li", { "data-item": "accordion", children: [
4996
5119
  /* @__PURE__ */ n.jsxs("dl", { onClick: () => r(!a), children: [
@@ -4999,10 +5122,10 @@ const Mi = ({
4999
5122
  ] }),
5000
5123
  a && /* @__PURE__ */ n.jsx("div", { children: t })
5001
5124
  ] });
5002
- }, Oi = ({ label: e, onClick: t, button: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5125
+ }, zi = ({ label: e, onClick: t, button: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5003
5126
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5004
5127
  /* @__PURE__ */ n.jsx("dd", { role: "button", onClick: () => t(), children: a })
5005
- ] }) }), Ai = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ n.jsx(
5128
+ ] }) }), Ki = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ n.jsx(
5006
5129
  "div",
5007
5130
  {
5008
5131
  role: "switch",
@@ -5011,25 +5134,25 @@ const Mi = ({
5011
5134
  },
5012
5135
  "aria-checked": e ? "true" : "false"
5013
5136
  }
5014
- )), Wi = { Switch: Ai }, Gi = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5137
+ )), Zi = { Switch: Ki }, Ui = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5015
5138
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5016
- /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(Wi.Switch, { onClick: t, active: a }) })
5017
- ] }) }), Ki = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5139
+ /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(Zi.Switch, { onClick: t, active: a }) })
5140
+ ] }) }), Vi = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5018
5141
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5019
5142
  /* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
5020
- ] }) }), zi = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5143
+ ] }) }), Yi = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5021
5144
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5022
5145
  /* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
5023
- ] }) }), Zi = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5146
+ ] }) }), Hi = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5024
5147
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5025
5148
  /* @__PURE__ */ n.jsx("dd", { children: t })
5026
- ] }) }), Ui = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5149
+ ] }) }), qi = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5027
5150
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5028
5151
  /* @__PURE__ */ n.jsx("dd", { children: t })
5029
- ] }) }), Vi = { Accordion: $i, Button: Oi, Switch: Gi, Info: zi, Select: Ki, Component: Zi, Node: Ui };
5030
- function Rn({ list: e, onClick: t, active: a, size: r, view: i }) {
5152
+ ] }) }), Ji = { Accordion: Gi, Button: zi, Switch: Ui, Info: Yi, Select: Vi, Component: Hi, Node: qi };
5153
+ function Nn({ list: e, onClick: t, active: a, size: r, view: i }) {
5031
5154
  return /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, i].join(" "), children: e.map((s) => /* @__PURE__ */ n.jsx(
5032
- Yi,
5155
+ Xi,
5033
5156
  {
5034
5157
  onClick: t,
5035
5158
  active: a,
@@ -5039,16 +5162,16 @@ function Rn({ list: e, onClick: t, active: a, size: r, view: i }) {
5039
5162
  s.link
5040
5163
  )) }) });
5041
5164
  }
5042
- const Yi = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
5043
- Rn.defaultProps = { size: "M", view: "H" };
5044
- const Zo = { Section: Mi, Main: Li, Item: Vi, Tabs: Rn }, Hi = "_alerts_1pds5_1", qi = "_menuAnimation_1pds5_1", Ji = "_menuItemAnimation_1pds5_1", Xi = "_allert_1pds5_111", Qi = "_al_1pds5_1", dt = {
5045
- alerts: Hi,
5046
- menuAnimation: qi,
5047
- menuItemAnimation: Ji,
5165
+ const Xi = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
5166
+ Nn.defaultProps = { size: "M", view: "H" };
5167
+ const Yo = { Section: $i, Main: Wi, Item: Ji, Tabs: Nn }, Qi = "_alerts_1pds5_1", es = "_menuAnimation_1pds5_1", ts = "_menuItemAnimation_1pds5_1", ns = "_allert_1pds5_111", as = "_al_1pds5_1", ft = {
5168
+ alerts: Qi,
5169
+ menuAnimation: es,
5170
+ menuItemAnimation: ts,
5048
5171
  "--body": "_--body_1pds5_103",
5049
- allert: Xi,
5172
+ allert: ns,
5050
5173
  "--form": "_--form_1pds5_111",
5051
- al: Qi
5174
+ al: as
5052
5175
  };
5053
5176
  function Dn({ text: e, type: t, button: a }) {
5054
5177
  let [r, i] = k.useState(!1), s = { active: t };
@@ -5060,7 +5183,7 @@ function Dn({ text: e, type: t, button: a }) {
5060
5183
  return r ? void 0 : (i(!0), a.onSend(i));
5061
5184
  }
5062
5185
  };
5063
- return /* @__PURE__ */ n.jsxs("div", { className: dt.al, ...s, children: [
5186
+ return /* @__PURE__ */ n.jsxs("div", { className: ft.al, ...s, children: [
5064
5187
  /* @__PURE__ */ n.jsx(
5065
5188
  "svg",
5066
5189
  {
@@ -5082,56 +5205,56 @@ function Dn({ text: e, type: t, button: a }) {
5082
5205
  a && /* @__PURE__ */ n.jsx("button", { onClick: l, children: a.label })
5083
5206
  ] });
5084
5207
  }
5085
- const es = "_h_1usnu_1", ts = "_g_1usnu_11", ns = "_hr_1usnu_16", as = "_hl_1usnu_28", rs = "_t_1usnu_40", is = "_s_1usnu_60", ss = "_u_1usnu_69", os = "_o_1usnu_76", ls = "_l_1usnu_105", cs = "_hh_1usnu_115", _s = "_c_1usnu_128", ds = "_loadingB_1usnu_1", us = "_m_1usnu_180", fs = "_ul_1usnu_196", ms = "_f_1usnu_226", X = {
5086
- h: es,
5087
- g: ts,
5088
- hr: ns,
5089
- hl: as,
5090
- t: rs,
5091
- s: is,
5092
- u: ss,
5093
- o: os,
5094
- l: ls,
5095
- hh: cs,
5096
- c: _s,
5097
- loadingB: ds,
5098
- m: us,
5099
- ul: fs,
5100
- f: ms
5101
- }, Ut = ({ title: e, left: t, right: a, children: r }) => /* @__PURE__ */ n.jsxs("div", { className: X.h, children: [
5208
+ const rs = "_h_1usnu_1", is = "_g_1usnu_11", ss = "_hr_1usnu_16", os = "_hl_1usnu_28", ls = "_t_1usnu_40", cs = "_s_1usnu_60", _s = "_u_1usnu_69", ds = "_o_1usnu_76", us = "_l_1usnu_105", fs = "_hh_1usnu_115", ms = "_c_1usnu_128", hs = "_loadingB_1usnu_1", xs = "_m_1usnu_180", gs = "_ul_1usnu_196", ps = "_f_1usnu_226", X = {
5209
+ h: rs,
5210
+ g: is,
5211
+ hr: ss,
5212
+ hl: os,
5213
+ t: ls,
5214
+ s: cs,
5215
+ u: _s,
5216
+ o: ds,
5217
+ l: us,
5218
+ hh: fs,
5219
+ c: ms,
5220
+ loadingB: hs,
5221
+ m: xs,
5222
+ ul: gs,
5223
+ f: ps
5224
+ }, Yt = ({ title: e, left: t, right: a, children: r }) => /* @__PURE__ */ n.jsxs("div", { className: X.h, children: [
5102
5225
  /* @__PURE__ */ n.jsx("div", { className: X.t, children: e }),
5103
5226
  t && /* @__PURE__ */ n.jsx("div", { className: X.hl, children: t }),
5104
5227
  a && /* @__PURE__ */ n.jsx("div", { className: X.hr, children: a }),
5105
5228
  r
5106
- ] }), Vt = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("div", { className: X.l, children: e }), Yt = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.s, children: e }), Ht = ({ children: e, edit: t }) => {
5229
+ ] }), Ht = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("div", { className: X.l, children: e }), qt = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.s, children: e }), Jt = ({ children: e, edit: t }) => {
5107
5230
  const a = {};
5108
5231
  return t && (a.edit = ""), /* @__PURE__ */ n.jsx("div", { ...a, className: X.f, children: e });
5109
5232
  };
5110
- function qt({ children: e }) {
5233
+ function Xt({ children: e }) {
5111
5234
  return /* @__PURE__ */ n.jsx("div", { className: X.g, children: e });
5112
5235
  }
5113
- const hs = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [X.o, t].join(" "), children: [
5236
+ const vs = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [X.o, t].join(" "), children: [
5114
5237
  a && /* @__PURE__ */ n.jsx("div", { className: X.hh, children: a }),
5115
5238
  e
5116
- ] }), xs = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.u, children: e }), gs = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.c, children: e }), ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.m, children: e }), Uo = {
5117
- Header: Ut,
5118
- Section: Yt,
5119
- Group: qt,
5120
- Form: Ht,
5121
- List: Vt,
5239
+ ] }), ks = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.u, children: e }), Cs = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.c, children: e }), bs = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.m, children: e }), Ho = {
5240
+ Header: Yt,
5241
+ Section: qt,
5242
+ Group: Xt,
5243
+ Form: Jt,
5244
+ List: Ht,
5122
5245
  A: Dn,
5123
- U: xs,
5124
- G: qt,
5125
- C: gs,
5126
- L: Vt,
5127
- O: hs,
5128
- S: Yt,
5129
- H: Ut,
5130
- M: ps,
5131
- F: Ht
5246
+ U: ks,
5247
+ G: Xt,
5248
+ C: Cs,
5249
+ L: Ht,
5250
+ O: vs,
5251
+ S: qt,
5252
+ H: Yt,
5253
+ M: bs,
5254
+ F: Jt
5132
5255
  };
5133
- let ut = {};
5134
- const vs = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ n.jsxs("div", { className: dt.alerts, children: [
5256
+ let mt = {};
5257
+ const js = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ n.jsxs("div", { className: ft.alerts, children: [
5135
5258
  /* @__PURE__ */ n.jsxs("dl", { children: [
5136
5259
  /* @__PURE__ */ n.jsx("dt", { children: e.title }),
5137
5260
  /* @__PURE__ */ n.jsx("dd", { children: e.text }),
@@ -5140,19 +5263,19 @@ const vs = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "По
5140
5263
  {
5141
5264
  "data-color": e.color || "blue",
5142
5265
  onClick: () => {
5143
- t(), ut.del();
5266
+ t(), mt.del();
5144
5267
  },
5145
5268
  children: e.button
5146
5269
  }
5147
5270
  ) })
5148
5271
  ] }),
5149
- /* @__PURE__ */ n.jsx("div", { className: dt["--body"], onClick: ut.del })
5272
+ /* @__PURE__ */ n.jsx("div", { className: ft["--body"], onClick: mt.del })
5150
5273
  ] }));
5151
- function ks(e, t) {
5152
- ut.set(/* @__PURE__ */ n.jsx(vs, { data: e, callback: t }));
5274
+ function ys(e, t) {
5275
+ mt.set(/* @__PURE__ */ n.jsx(js, { data: e, callback: t }));
5153
5276
  }
5154
- const Vo = { Send: ks, Line: Dn };
5155
- function Cs() {
5277
+ const qo = { Send: ys, Line: Dn };
5278
+ function ws() {
5156
5279
  return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ n.jsx(
5157
5280
  "path",
5158
5281
  {
@@ -5161,22 +5284,22 @@ function Cs() {
5161
5284
  }
5162
5285
  ) });
5163
5286
  }
5164
- const ys = {};
5165
- function bs(e) {
5166
- ys.add(e);
5287
+ const Ss = {};
5288
+ function Es(e) {
5289
+ Ss.add(e);
5167
5290
  }
5168
- function js({ color: e, size: t, name: a }) {
5291
+ function Ts({ color: e, size: t, name: a }) {
5169
5292
  return /* @__PURE__ */ n.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ n.jsx("use", { href: `#${a}` }) });
5170
5293
  }
5171
- const Yo = { Logo: Cs, Sprite: bs, Symbol: js }, ws = "_sort_1yrvt_1", Ss = {
5172
- sort: ws
5294
+ const Jo = { Logo: ws, Sprite: Es, Symbol: Ts }, Rs = "_sort_1yrvt_1", Bs = {
5295
+ sort: Rs
5173
5296
  };
5174
- let Ue = {};
5175
- function Es(e, t) {
5297
+ let Ye = {};
5298
+ function Ns(e, t) {
5176
5299
  switch (t.type) {
5177
5300
  case "active":
5178
5301
  let a = "<";
5179
- return e.active === t.data && (a = e.sort === "<" ? ">" : "<"), Ue.get({ active: t.data, sort: a }, !1), an({ active: t.data, sort: a }), {
5302
+ return e.active === t.data && (a = e.sort === "<" ? ">" : "<"), Ye.get({ active: t.data, sort: a }, !1), sn({ active: t.data, sort: a }), {
5180
5303
  ...e,
5181
5304
  active: t.data,
5182
5305
  sort: a
@@ -5185,12 +5308,12 @@ function Es(e, t) {
5185
5308
  throw new Error();
5186
5309
  }
5187
5310
  }
5188
- function Ts() {
5311
+ function Ds() {
5189
5312
  const [e, t] = k.useReducer(
5190
- Es,
5191
- ot() === void 0 ? { active: 1, sort: "<" } : ot()
5313
+ Ns,
5314
+ ct() === void 0 ? { active: 1, sort: "<" } : ct()
5192
5315
  );
5193
- return /* @__PURE__ */ n.jsxs("div", { className: Ss.sort, children: [
5316
+ return /* @__PURE__ */ n.jsxs("div", { className: Bs.sort, children: [
5194
5317
  /* @__PURE__ */ n.jsx(
5195
5318
  "i",
5196
5319
  {
@@ -5217,13 +5340,13 @@ function Ts() {
5217
5340
  )
5218
5341
  ] });
5219
5342
  }
5220
- function Rs(e) {
5221
- Ue.get = e;
5343
+ function Is(e) {
5344
+ Ye.get = e;
5222
5345
  }
5223
- function Ds(e) {
5224
- Ue.set(e);
5346
+ function Ms(e) {
5347
+ Ye.set(e);
5225
5348
  }
5226
- function Is(e, t, a) {
5349
+ function Fs(e, t, a) {
5227
5350
  let r = 1, i = 0, s = {}, l = 50;
5228
5351
  s[r] = [];
5229
5352
  let c = {}, d = "s1a";
@@ -5242,11 +5365,11 @@ function Is(e, t, a) {
5242
5365
  i++, i <= l || (r++, i = 1, s[r] = []), s[r].push(e[_.id]);
5243
5366
  }), { data: s };
5244
5367
  }
5245
- function Bs(e) {
5246
- Ue.count(e);
5368
+ function Ps(e) {
5369
+ Ye.count(e);
5247
5370
  }
5248
- const Ho = { Init: Ts, useValue: Rs, Set: Ds, Run: Is, Count: Bs };
5249
- function Ns() {
5371
+ const Xo = { Init: Ds, useValue: Is, Set: Ms, Run: Fs, Count: Ps };
5372
+ function Ls() {
5250
5373
  return /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
5251
5374
  /* @__PURE__ */ n.jsx(
5252
5375
  "path",
@@ -5281,7 +5404,7 @@ function Ns() {
5281
5404
  )
5282
5405
  ] });
5283
5406
  }
5284
- function Ms() {
5407
+ function $s() {
5285
5408
  return /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
5286
5409
  /* @__PURE__ */ n.jsx(
5287
5410
  "path",
@@ -5310,7 +5433,7 @@ function Ms() {
5310
5433
  )
5311
5434
  ] });
5312
5435
  }
5313
- function Fs() {
5436
+ function Os() {
5314
5437
  return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ n.jsx(
5315
5438
  "path",
5316
5439
  {
@@ -5323,11 +5446,11 @@ function Fs() {
5323
5446
  }
5324
5447
  ) });
5325
5448
  }
5326
- const Ps = "_n_euuvm_1", Ls = {
5327
- n: Ps
5449
+ const As = "_n_euuvm_1", Ws = {
5450
+ n: As
5328
5451
  };
5329
- let Me = {}, Te = [];
5330
- const $s = (e, t) => {
5452
+ let Pe = {}, Ne = [];
5453
+ const Gs = (e, t) => {
5331
5454
  switch (t.type) {
5332
5455
  case "open":
5333
5456
  return {
@@ -5368,7 +5491,7 @@ const $s = (e, t) => {
5368
5491
  r = { ...e.take, ...r }, e.active = !1;
5369
5492
  for (let i in r)
5370
5493
  r[i] !== "999" && (e.active = !0);
5371
- return Me.get(r, e.active), {
5494
+ return Pe.get(r, e.active), {
5372
5495
  ...e,
5373
5496
  take: r,
5374
5497
  active: e.active
@@ -5379,35 +5502,35 @@ const $s = (e, t) => {
5379
5502
  throw new Error();
5380
5503
  }
5381
5504
  };
5382
- function Os(e) {
5383
- Me.fn({ action: "add", data: e });
5505
+ function zs(e) {
5506
+ Pe.fn({ action: "add", data: e });
5384
5507
  }
5385
- function As(e) {
5386
- Me.fn({ action: "add", data: e });
5508
+ function Ks(e) {
5509
+ Pe.fn({ action: "add", data: e });
5387
5510
  }
5388
- function Ws(e) {
5389
- Me.fn({ action: "new", data: e });
5511
+ function Zs(e) {
5512
+ Pe.fn({ action: "new", data: e });
5390
5513
  }
5391
- function Gs(e) {
5392
- Me.fn = e;
5514
+ function Us(e) {
5515
+ Pe.fn = e;
5393
5516
  }
5394
- function Ks() {
5395
- const [e, t] = k.useReducer($s, {
5517
+ function Vs() {
5518
+ const [e, t] = k.useReducer(Gs, {
5396
5519
  open: !1,
5397
5520
  active: !1,
5398
5521
  news: [],
5399
5522
  take: {}
5400
5523
  });
5401
- ft.useListener("bell", async (r) => {
5402
- }), Gs(async (r) => {
5524
+ ht.useListener("bell", async (r) => {
5525
+ }), Us(async (r) => {
5403
5526
  switch (r.action) {
5404
5527
  case "add":
5405
- Te.push(r.data);
5528
+ Ne.push(r.data);
5406
5529
  break;
5407
5530
  }
5408
5531
  }), k.useEffect(() => {
5409
5532
  (async () => {
5410
- let r = await ft.Send({
5533
+ let r = await ht.Send({
5411
5534
  type: "module",
5412
5535
  module: "M00",
5413
5536
  query: "x0054",
@@ -5420,7 +5543,7 @@ function Ks() {
5420
5543
  break;
5421
5544
  case "M01":
5422
5545
  r[i].forEach((s) => {
5423
- Te.push({
5546
+ Ne.push({
5424
5547
  module: "M01",
5425
5548
  type: 1,
5426
5549
  id: s.id,
@@ -5431,7 +5554,7 @@ function Ks() {
5431
5554
  break;
5432
5555
  case "M02":
5433
5556
  r[i].forEach((s) => {
5434
- Te.push({
5557
+ Ne.push({
5435
5558
  module: "M02",
5436
5559
  type: 117,
5437
5560
  id: s.id,
@@ -5442,7 +5565,7 @@ function Ks() {
5442
5565
  break;
5443
5566
  }
5444
5567
  })(), setInterval(() => {
5445
- Te.forEach((r, i) => {
5568
+ Ne.forEach((r, i) => {
5446
5569
  t({
5447
5570
  type: "add",
5448
5571
  data: {
@@ -5452,7 +5575,7 @@ function Ks() {
5452
5575
  datetime: r.datetime,
5453
5576
  txt: r.title
5454
5577
  }
5455
- }), r.datetime < (/* @__PURE__ */ new Date()).getTime() && Te.splice(i, 1);
5578
+ }), r.datetime < (/* @__PURE__ */ new Date()).getTime() && Ne.splice(i, 1);
5456
5579
  });
5457
5580
  }, 6e4);
5458
5581
  }, []);
@@ -5463,11 +5586,11 @@ function Ks() {
5463
5586
  /* @__PURE__ */ n.jsx(
5464
5587
  "div",
5465
5588
  {
5466
- className: Ls.n,
5589
+ className: Ws.n,
5467
5590
  onClick: () => {
5468
5591
  t({ type: "open", open: !0 });
5469
5592
  },
5470
- children: e.active ? /* @__PURE__ */ n.jsx(Ms, {}) : /* @__PURE__ */ n.jsx(Ns, {})
5593
+ children: e.active ? /* @__PURE__ */ n.jsx($s, {}) : /* @__PURE__ */ n.jsx(Ls, {})
5471
5594
  }
5472
5595
  ),
5473
5596
  e.open ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
@@ -5482,7 +5605,7 @@ function Ks() {
5482
5605
  ),
5483
5606
  /* @__PURE__ */ n.jsxs("div", { className: "notify-m", children: [
5484
5607
  /* @__PURE__ */ n.jsx("div", { className: "notify-l", children: e.news.map((r, i) => /* @__PURE__ */ n.jsx(
5485
- zs,
5608
+ Ys,
5486
5609
  {
5487
5610
  data: r,
5488
5611
  dispatch: t
@@ -5494,9 +5617,9 @@ function Ks() {
5494
5617
  ] }) : ""
5495
5618
  ] });
5496
5619
  }
5497
- const zs = ({ data: e, dispatch: t }) => {
5620
+ const Ys = ({ data: e, dispatch: t }) => {
5498
5621
  let a = async (r) => {
5499
- t({ type: "hide", id: r.id }), await ft.Send({
5622
+ t({ type: "hide", id: r.id }), await ht.Send({
5500
5623
  type: "module",
5501
5624
  module: "M00",
5502
5625
  query: "x0055",
@@ -5511,24 +5634,24 @@ const zs = ({ data: e, dispatch: t }) => {
5511
5634
  ] }),
5512
5635
  /* @__PURE__ */ n.jsx("div", { className: "--hide", "data-icon": "F038", onClick: () => a(e), children: " " })
5513
5636
  ] });
5514
- }, Zs = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
5515
- function Us(e) {
5637
+ }, Hs = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
5638
+ function qs(e) {
5516
5639
  return new SharedWorker(
5517
- "data:text/javascript;base64," + Zs,
5640
+ "data:text/javascript;base64," + Hs,
5518
5641
  {
5519
5642
  name: e == null ? void 0 : e.name
5520
5643
  }
5521
5644
  );
5522
5645
  }
5523
- function Vs(e) {
5646
+ function Js(e) {
5524
5647
  let t = {}, a = {};
5525
5648
  e.data.forEach((i) => {
5526
5649
  t[i.id] = { s: i.v, n: i.a }, a[i.id] = i;
5527
5650
  });
5528
- let r = { ...he(), 901: t };
5529
- rn(a), Ie(r);
5651
+ let r = { ...xe(), 901: t };
5652
+ on(a), Ie(r);
5530
5653
  }
5531
- let ae = {}, U = {}, We = [
5654
+ let ae = {}, U = {}, ze = [
5532
5655
  "filter",
5533
5656
  "online",
5534
5657
  "users",
@@ -5538,13 +5661,13 @@ let ae = {}, U = {}, We = [
5538
5661
  "info",
5539
5662
  "job"
5540
5663
  ];
5541
- function Ys() {
5664
+ function Xs() {
5542
5665
  const [e, t] = k.useState(!1), [a, r] = k.useState(!1);
5543
5666
  function i(s) {
5544
- const l = new Us();
5667
+ const l = new qs();
5545
5668
  ae.laodData = (c) => {
5546
- let d = We.indexOf(c);
5547
- d >= 0 && We.splice(d, 1), We.length === 0 && t(!0);
5669
+ let d = ze.indexOf(c);
5670
+ d >= 0 && ze.splice(d, 1), ze.length === 0 && t(!0);
5548
5671
  }, ae.send = (c) => {
5549
5672
  l.port.postMessage({ type: "send", json: c });
5550
5673
  }, l.port.onmessage = (c) => {
@@ -5552,12 +5675,12 @@ function Ys() {
5552
5675
  d.type === "error" && r(!0), d.type === "true" && t(!0), d.type === "closed" && l.port.postMessage({
5553
5676
  type: "connect",
5554
5677
  ukey: s,
5555
- lk: st()
5556
- }), We.length !== 0 && ae.laodData(d.type), U[d.type] && U[d.type](d);
5678
+ lk: lt()
5679
+ }), ze.length !== 0 && ae.laodData(d.type), U[d.type] && U[d.type](d);
5557
5680
  }, l.port.postMessage({
5558
5681
  type: "connect",
5559
5682
  ukey: s,
5560
- lk: st()
5683
+ lk: lt()
5561
5684
  });
5562
5685
  }
5563
5686
  return [i, e, a];
@@ -5565,14 +5688,14 @@ function Ys() {
5565
5688
  U.module = (e) => {
5566
5689
  ae[e.listen] !== void 0 && (ae[e.listen](e), delete ae[e.listen]);
5567
5690
  };
5568
- U.bell = Ws;
5569
- U.company = Vs;
5691
+ U.bell = Zs;
5692
+ U.company = Js;
5570
5693
  U.info = (e) => {
5571
5694
  let t = {};
5572
- t.db = e.db, t.id = e.data.id, t.job = e.data.job, t.login = e.data.login, t.name = e.data.p02, t.patronymic = e.data.p03, t.surname = e.data.p01, t.email = e.data.email, t.admin = e.data.menu.includes("99"), sn(t), nn(e.data.menu);
5695
+ t.db = e.db, t.id = e.data.id, t.job = e.data.job, t.login = e.data.login, t.name = e.data.p02, t.patronymic = e.data.p03, t.surname = e.data.p01, t.email = e.data.email, t.admin = e.data.menu.includes("99"), ln(t), rn(e.data.menu);
5573
5696
  };
5574
5697
  U.version = async (e) => {
5575
- xt.version.Server(e.data);
5698
+ pt.version.Server(e.data);
5576
5699
  };
5577
5700
  U.online = async (e) => {
5578
5701
  };
@@ -5581,13 +5704,13 @@ U.offline = async (e) => {
5581
5704
  U.chat = (e) => {
5582
5705
  switch (e.data.action) {
5583
5706
  case "new_message":
5584
- Re.getModule();
5707
+ ke.getModule();
5585
5708
  break;
5586
5709
  case "view_message":
5587
- Re.getModule();
5710
+ ke.getModule();
5588
5711
  break;
5589
5712
  case "write_message":
5590
- Re.getModule();
5713
+ ke.getModule();
5591
5714
  break;
5592
5715
  }
5593
5716
  };
@@ -5608,7 +5731,7 @@ U.users = (e) => {
5608
5731
  number: l
5609
5732
  };
5610
5733
  });
5611
- let a = { ...he(), user: t };
5734
+ let a = { ...xe(), user: t };
5612
5735
  Ie(a);
5613
5736
  };
5614
5737
  U.api = (e) => {
@@ -5621,28 +5744,28 @@ U.delete = () => {
5621
5744
  re();
5622
5745
  };
5623
5746
  U.select = (e) => {
5624
- let t = { ...he() };
5747
+ let t = { ...xe() };
5625
5748
  e.data.forEach((a) => {
5626
5749
  t[a.n] = JSON.parse(a.s);
5627
5750
  }), Ie(t);
5628
5751
  };
5629
5752
  U.job = (e) => {
5630
- let t = { ...he() }, a = {};
5753
+ let t = { ...xe() }, a = {};
5631
5754
  Object.keys(e.data).forEach((r) => {
5632
5755
  a[r] = { s: 1, n: e.data[r] };
5633
5756
  }), t[1] = a, Ie(t);
5634
5757
  };
5635
5758
  U.setting = (e) => {
5636
- Na(e.data);
5759
+ Fa(e.data);
5637
5760
  };
5638
5761
  U.app = () => {
5639
5762
  };
5640
- const Hs = (e, t) => {
5763
+ const Qs = (e, t) => {
5641
5764
  ae[e] = t;
5642
- }, qs = (e, t) => {
5765
+ }, eo = (e, t) => {
5643
5766
  ae[e](t);
5644
5767
  };
5645
- function Js(e) {
5768
+ function to(e) {
5646
5769
  let t = "_" + String(Math.random()).substring(2, 7);
5647
5770
  return new Promise((a) => {
5648
5771
  ae[t] = (r) => {
@@ -5650,11 +5773,11 @@ function Js(e) {
5650
5773
  }, e = { ...e, listen: t }, e.type = "modules", ae.send(e);
5651
5774
  });
5652
5775
  }
5653
- const ft = { useConnect: Ys, useListener: Hs, setListener: qs, Send: Js };
5654
- class Xs {
5776
+ const ht = { useConnect: Xs, useListener: Qs, setListener: eo, Send: to };
5777
+ class no {
5655
5778
  constructor(t = "el", a = "db") {
5656
- at(this, "storeName");
5657
- at(this, "_dbp");
5779
+ it(this, "storeName");
5780
+ it(this, "_dbp");
5658
5781
  this.storeName = a, this._dbp = new Promise((r, i) => {
5659
5782
  const s = indexedDB.open(t, 1);
5660
5783
  s.onerror = () => i(s.error), s.onsuccess = () => r(s.result), s.onupgradeneeded = () => {
@@ -5671,10 +5794,10 @@ class Xs {
5671
5794
  );
5672
5795
  }
5673
5796
  }
5674
- let it, G = {};
5675
- const ye = () => (it || (it = new Xs()), it), ue = (e, t, a = ye()) => a._withIDBStore("readwrite", (r) => {
5797
+ let ot, G = {};
5798
+ const we = () => (ot || (ot = new no()), ot), ue = (e, t, a = we()) => a._withIDBStore("readwrite", (r) => {
5676
5799
  G[e] = t, r.put(P.enCode(t), e);
5677
- }), oe = (e, t = ye()) => G[e] === void 0 ? new Promise((a, r) => {
5800
+ }), oe = (e, t = we()) => G[e] === void 0 ? new Promise((a, r) => {
5678
5801
  let i;
5679
5802
  t._withIDBStore("readonly", (s) => {
5680
5803
  i = s.get(e);
@@ -5685,40 +5808,40 @@ const ye = () => (it || (it = new Xs()), it), ue = (e, t, a = ye()) => a._withID
5685
5808
  } else
5686
5809
  a({});
5687
5810
  });
5688
- }) : G[e], Qs = (e, t = ye()) => t._withIDBStore("readwrite", (a) => {
5811
+ }) : G[e], ao = (e, t = we()) => t._withIDBStore("readwrite", (a) => {
5689
5812
  a.delete(e);
5690
- }), mt = (e = ye()) => e._withIDBStore("readwrite", (t) => {
5813
+ }), xt = (e = we()) => e._withIDBStore("readwrite", (t) => {
5691
5814
  t.clear();
5692
- }), eo = (e = ye()) => {
5815
+ }), ro = (e = we()) => {
5693
5816
  const t = [];
5694
5817
  return e._withIDBStore("readonly", (a) => {
5695
5818
  (a.openKeyCursor || a.openCursor).call(a).onsuccess = function() {
5696
5819
  this.result && (t.push(this.result.key), this.result.continue());
5697
5820
  };
5698
5821
  }).then(() => t);
5699
- }, to = (e, t, a = [], r = {}) => {
5822
+ }, io = (e, t, a = [], r = {}) => {
5700
5823
  let i = a.length !== 0, s = [], l = r.sort, c = Object.keys(r).length !== 0, d = Object.keys(r), _ = Object.keys(e), u = [], f = (h) => {
5701
- let v = "";
5702
- if (a.forEach((p) => {
5703
- v += t[h][p];
5824
+ let g = "";
5825
+ if (a.forEach((v) => {
5826
+ g += t[h][v];
5704
5827
  }), c) {
5705
- let p = {};
5706
- d.forEach((g) => {
5707
- p[g] = t[h][g];
5828
+ let v = {};
5829
+ d.forEach((p) => {
5830
+ v[p] = t[h][p];
5708
5831
  });
5709
- for (let g in l)
5710
- t[h][l[g]] === void 0 && (mt(), location.reload()), g === "s1" && (p[g] = new Date(t[h][l[g]]).getTime()), g === "s2" && (p[g] = t[h][l[g]]), g === "s3" && (p[g] = t[h][l[g]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
5711
- s.push({ id: h, text: v, ...p });
5832
+ for (let p in l)
5833
+ t[h][l[p]] === void 0 && (xt(), location.reload()), p === "s1" && (v[p] = new Date(t[h][l[p]]).getTime()), p === "s2" && (v[p] = t[h][l[p]]), p === "s3" && (v[p] = t[h][l[p]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
5834
+ s.push({ id: h, text: g, ...v });
5712
5835
  } else
5713
- s.push({ id: h, text: v });
5836
+ s.push({ id: h, text: g });
5714
5837
  }, m = (h) => {
5715
5838
  };
5716
5839
  return _.forEach((h) => {
5717
5840
  u.push(t[h]);
5718
5841
  }), u.forEach((h) => {
5719
- h === void 0 ? (mt(), location.reload()) : (i && f(h.id), c && m(h.id));
5842
+ h === void 0 ? (xt(), location.reload()) : (i && f(h.id), c && m(h.id));
5720
5843
  }), { list: u, search: s, filter: r };
5721
- }, no = (e, t, a, r = ye()) => {
5844
+ }, so = (e, t, a, r = we()) => {
5722
5845
  if (G[e] === void 0)
5723
5846
  return new Promise((i, s) => {
5724
5847
  let l;
@@ -5739,53 +5862,53 @@ const ye = () => (it || (it = new Xs()), it), ue = (e, t, a = ye()) => a._withID
5739
5862
  return G[e][t.id] = { ...G[e][t.id], ...t.data }, a !== void 0 && G[a] !== void 0 ? G[a][t.id] !== void 0 && (G[a][t.id] = t.data.eDate) : G[a] = [], delete G[e][t.id].$_item, delete G[e][t.id].$_send, r._withIDBStore("readwrite", (i) => {
5740
5863
  i.put(P.enCode(G[e]), e), a !== void 0 && i.put(P.enCode(G[a]), a);
5741
5864
  });
5742
- }, ao = async (e, t, a, r) => {
5865
+ }, oo = async (e, t, a, r) => {
5743
5866
  let i, s;
5744
5867
  s = await oe(a), s[e.id] = e, await ue(a, s), i !== null && (i = await oe(t), i[e.id] = e.eDate, await ue(t, i)), r !== void 0 && r({ type: "load", page: i, base: s });
5745
- }, ro = async (e, t, a, r) => {
5868
+ }, lo = async (e, t, a, r) => {
5746
5869
  let i = await oe(t), s = await oe(a);
5747
5870
  for (let l in e)
5748
5871
  s[l] = e[l], i[l] = e[l].eDate;
5749
5872
  await ue(t, i), await ue(a, s), r !== void 0 && r({ type: "load", page: i, base: s });
5750
- }, io = async (e, t, a, r) => {
5873
+ }, co = async (e, t, a, r) => {
5751
5874
  let i = await oe(t), s = await oe(a);
5752
5875
  e.forEach((l) => delete i[l]), await ue(t, i), r !== void 0 && r({ type: "load", page: i, base: s });
5753
- }, so = async (e, t, a) => {
5876
+ }, _o = async (e, t, a) => {
5754
5877
  let r = await oe(t);
5755
5878
  e.forEach((i) => delete r[i]), await ue(t, r);
5756
- }, oo = async (e, t, a) => {
5879
+ }, uo = async (e, t, a) => {
5757
5880
  let r = await oe(t);
5758
5881
  e.forEach((i) => r[i.id] = i.eDate), await ue(t, r);
5759
- }, lo = async (e, t, a) => {
5882
+ }, fo = async (e, t, a) => {
5760
5883
  let r = await oe(t);
5761
5884
  if (a !== void 0)
5762
5885
  a({ type: "load", base: r });
5763
5886
  else
5764
5887
  return r[e];
5765
- }, co = (e) => G[e], qo = {
5766
- id: lo,
5888
+ }, mo = (e) => G[e], Qo = {
5889
+ id: fo,
5767
5890
  get: oe,
5768
5891
  set: ue,
5769
- add: ao,
5770
- del: Qs,
5771
- upd: no,
5772
- key: eo,
5773
- load: co,
5774
- split: to,
5775
- clear: mt,
5776
- updAll: ro,
5777
- delAll: io,
5778
- delList: so,
5779
- addList: oo
5780
- }, Jo = { setSetting: Ma, getSetting: Fa }, _o = "_s_18bde_1", uo = "_loadingB_18bde_1", fo = "_ul_18bde_31", mo = {
5781
- s: _o,
5782
- loadingB: uo,
5783
- ul: fo
5892
+ add: oo,
5893
+ del: ao,
5894
+ upd: so,
5895
+ key: ro,
5896
+ load: mo,
5897
+ split: io,
5898
+ clear: xt,
5899
+ updAll: lo,
5900
+ delAll: co,
5901
+ delList: _o,
5902
+ addList: uo
5903
+ }, el = { setSetting: Pa, getSetting: La }, ho = "_s_18bde_1", xo = "_loadingB_18bde_1", go = "_ul_18bde_31", po = {
5904
+ s: ho,
5905
+ loadingB: xo,
5906
+ ul: go
5784
5907
  };
5785
- function ho({ children: e }) {
5908
+ function vo({ children: e }) {
5786
5909
  return /* @__PURE__ */ n.jsx("ul", { className: X.ul, children: e });
5787
5910
  }
5788
- function xo(e, t) {
5911
+ function ko(e, t) {
5789
5912
  switch (t.type) {
5790
5913
  case "load":
5791
5914
  return {
@@ -5818,13 +5941,13 @@ function xo(e, t) {
5818
5941
  throw new Error();
5819
5942
  }
5820
5943
  }
5821
- function Xo({
5944
+ function tl({
5822
5945
  list: e,
5823
5946
  load: t,
5824
5947
  className: a,
5825
5948
  ...r
5826
5949
  }) {
5827
- const i = k.useRef(null), [s, l] = k.useReducer(xo, {
5950
+ const i = k.useRef(null), [s, l] = k.useReducer(ko, {
5828
5951
  load: !1,
5829
5952
  list: [],
5830
5953
  data: {},
@@ -5841,10 +5964,10 @@ function Xo({
5841
5964
  return /* @__PURE__ */ n.jsx(
5842
5965
  "div",
5843
5966
  {
5844
- className: [mo.s, a].join(" "),
5967
+ className: [po.s, a].join(" "),
5845
5968
  ref: i,
5846
5969
  onScroll: c,
5847
- children: /* @__PURE__ */ n.jsx(ho, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((d) => /* @__PURE__ */ n.jsx(r.item, { data: d }, d.id)) : /* @__PURE__ */ n.jsxs("div", { "data-load": "load", children: [
5970
+ children: /* @__PURE__ */ n.jsx(vo, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((d) => /* @__PURE__ */ n.jsx(r.item, { data: d }, d.id)) : /* @__PURE__ */ n.jsxs("div", { "data-load": "load", children: [
5848
5971
  /* @__PURE__ */ n.jsx("i", {}),
5849
5972
  /* @__PURE__ */ n.jsx("i", {}),
5850
5973
  /* @__PURE__ */ n.jsx("i", {})
@@ -5852,7 +5975,7 @@ function Xo({
5852
5975
  }
5853
5976
  );
5854
5977
  }
5855
- const go = ({ label: e, onValue: t, value: a, name: r, item: i }) => {
5978
+ const Co = ({ label: e, onValue: t, value: a, name: r, item: i }) => {
5856
5979
  const [s, l] = k.useState(!!a);
5857
5980
  k.useEffect(() => {
5858
5981
  l(!!a);
@@ -5869,60 +5992,60 @@ const go = ({ label: e, onValue: t, value: a, name: r, item: i }) => {
5869
5992
  "aria-checked": `${s ? "true" : "false"}`
5870
5993
  }
5871
5994
  );
5872
- }, ke = {};
5873
- function po(e) {
5995
+ }, je = {};
5996
+ function bo(e) {
5874
5997
  const [t, a] = k.useState({}), r = k.useRef(e);
5875
- return ke.u = (i) => {
5998
+ return je.u = (i) => {
5876
5999
  r.current = { ...r.current, [i.name]: i.value };
5877
- }, ke.r = () => {
6000
+ }, je.r = () => {
5878
6001
  a(Date.now());
5879
6002
  }, [r.current];
5880
6003
  }
5881
- function vo(e) {
5882
- ke.u(e), e.reload && ke.r();
6004
+ function jo(e) {
6005
+ je.u(e), e.reload && je.r();
5883
6006
  }
5884
- function ko() {
5885
- ke.r && ke.r();
6007
+ function yo() {
6008
+ je.r && je.r();
5886
6009
  }
5887
- const Qo = {
5888
- Color: gn,
5889
- Date: gt,
5890
- Code: xn,
5891
- Check: wn,
5892
- Switch: dn,
6010
+ const nl = {
6011
+ Color: vn,
6012
+ Date: vt,
6013
+ Code: pn,
6014
+ Check: En,
6015
+ Switch: fn,
5893
6016
  Input: De,
5894
- Button: un,
5895
- Message: fn,
5896
- Generator: mn,
5897
- Captcha: hn,
5898
- Modal: pt,
5899
- Money: vt,
5900
- Month: vn,
5901
- Notes: kn,
5902
- Number: kt,
5903
- Password: Cn,
5904
- Phone: Ct,
6017
+ Button: mn,
6018
+ Message: hn,
6019
+ Generator: xn,
6020
+ Captcha: gn,
6021
+ Modal: kt,
6022
+ Money: Ct,
6023
+ Month: Cn,
6024
+ Notes: bn,
6025
+ Number: bt,
6026
+ Password: jn,
6027
+ Phone: jt,
5905
6028
  Search: yn,
5906
6029
  Select: yt,
5907
- Set: _t,
5908
- Textarea: bn,
5909
- Time: jn,
5910
- Users: bt,
6030
+ Set: ut,
6031
+ Textarea: wn,
6032
+ Time: Sn,
6033
+ Users: wt,
5911
6034
  String: De,
5912
- Form: _t,
5913
- runReload: ko,
5914
- useData: po,
5915
- setValue: vo,
5916
- Palette: go,
5917
- Toogle: Sn,
5918
- Group: En,
5919
- Options: Tn
5920
- }, Co = "_spinner_1ul0m_1", yo = "_l_1ul0m_75", bo = "_loadingB_1ul0m_1", In = {
5921
- spinner: Co,
5922
- l: yo,
5923
- loadingB: bo
6035
+ Form: ut,
6036
+ runReload: yo,
6037
+ useData: bo,
6038
+ setValue: jo,
6039
+ Palette: Co,
6040
+ Toogle: Tn,
6041
+ Group: Rn,
6042
+ Options: Bn
6043
+ }, wo = "_spinner_1ul0m_1", So = "_l_1ul0m_75", Eo = "_loadingB_1ul0m_1", In = {
6044
+ spinner: wo,
6045
+ l: So,
6046
+ loadingB: Eo
5924
6047
  };
5925
- function jo() {
6048
+ function To() {
5926
6049
  return /* @__PURE__ */ n.jsx("div", { className: In.spinner, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ n.jsx(
5927
6050
  "path",
5928
6051
  {
@@ -5931,20 +6054,20 @@ function jo() {
5931
6054
  }
5932
6055
  ) }) });
5933
6056
  }
5934
- function wo() {
6057
+ function Ro() {
5935
6058
  return /* @__PURE__ */ n.jsxs("div", { className: In.l, children: [
5936
6059
  /* @__PURE__ */ n.jsx("i", {}),
5937
6060
  /* @__PURE__ */ n.jsx("i", {}),
5938
6061
  /* @__PURE__ */ n.jsx("i", {})
5939
6062
  ] });
5940
6063
  }
5941
- const el = { Spinner: jo, Inline: wo }, So = "_s_t9swc_1", Jt = {
5942
- s: So
6064
+ const al = { Spinner: To, Inline: Ro }, Bo = "_s_t9swc_1", Qt = {
6065
+ s: Bo
5943
6066
  };
5944
- let jt;
5945
- function Eo({ className: e, placeholder: t }) {
6067
+ let St;
6068
+ function No({ className: e, placeholder: t }) {
5946
6069
  let a = (l) => {
5947
- jt(l.target.textContent);
6070
+ St(l.target.textContent);
5948
6071
  }, r = (l) => {
5949
6072
  l.key === "Enter" && l.preventDefault();
5950
6073
  }, i = (l) => {
@@ -5954,7 +6077,7 @@ function Eo({ className: e, placeholder: t }) {
5954
6077
  });
5955
6078
  };
5956
6079
  const s = {};
5957
- return t && (s.placeholder = t), s.className = e ? [Jt.s, e].join(" ") : Jt.s, /* @__PURE__ */ n.jsx(
6080
+ return t && (s.placeholder = t), s.className = e ? [Qt.s, e].join(" ") : Qt.s, /* @__PURE__ */ n.jsx(
5958
6081
  "div",
5959
6082
  {
5960
6083
  onPaste: i,
@@ -5966,7 +6089,7 @@ function Eo({ className: e, placeholder: t }) {
5966
6089
  }
5967
6090
  );
5968
6091
  }
5969
- function To(e, t, a) {
6092
+ function Do(e, t, a) {
5970
6093
  let r = [], i = 1, s = 0, l = {}, c = 50;
5971
6094
  return l[i] = [], e.forEach((d) => {
5972
6095
  d.text.toLowerCase().indexOf(t) > -1 && r.push(d.id);
@@ -5974,17 +6097,17 @@ function To(e, t, a) {
5974
6097
  s++, s <= c || (i++, s = 1, l[i] = []), l[i].push(a[d]);
5975
6098
  }), l;
5976
6099
  }
5977
- function Ro(e) {
5978
- jt = e;
6100
+ function Io(e) {
6101
+ St = e;
5979
6102
  }
5980
- function Do(e) {
5981
- jt = e;
6103
+ function Mo(e) {
6104
+ St = e;
5982
6105
  }
5983
- const tl = { Field: Eo, Run: To, Get: Ro, useValue: Do }, Io = "_f_q3r0i_1", Bo = {
5984
- f: Io
6106
+ const rl = { Field: No, Run: Do, Get: Io, useValue: Mo }, Fo = "_f_q3r0i_1", Po = {
6107
+ f: Fo
5985
6108
  };
5986
6109
  let ee = {};
5987
- function No(e, t) {
6110
+ function Lo(e, t) {
5988
6111
  switch (t.type) {
5989
6112
  case "open":
5990
6113
  return {
@@ -6034,8 +6157,8 @@ function No(e, t) {
6034
6157
  throw new Error();
6035
6158
  }
6036
6159
  }
6037
- function Mo() {
6038
- const [e, t] = k.useReducer(No, {
6160
+ function $o() {
6161
+ const [e, t] = k.useReducer(Lo, {
6039
6162
  open: !1,
6040
6163
  view: null,
6041
6164
  data: {},
@@ -6053,12 +6176,12 @@ function Mo() {
6053
6176
  /* @__PURE__ */ n.jsxs(
6054
6177
  "div",
6055
6178
  {
6056
- className: Bo.f,
6179
+ className: Po.f,
6057
6180
  onClick: () => {
6058
6181
  t({ type: "open", open: !0 });
6059
6182
  },
6060
6183
  children: [
6061
- /* @__PURE__ */ n.jsx(Fs, {}),
6184
+ /* @__PURE__ */ n.jsx(Os, {}),
6062
6185
  e.active && /* @__PURE__ */ n.jsxs("i", { children: [
6063
6186
  e.size,
6064
6187
  "1"
@@ -6078,7 +6201,7 @@ function Mo() {
6078
6201
  ),
6079
6202
  /* @__PURE__ */ n.jsxs("div", { className: "filter m", children: [
6080
6203
  /* @__PURE__ */ n.jsx("div", { className: "filter l", children: Object.keys(e.data).map((a) => /* @__PURE__ */ n.jsx(
6081
- Oo,
6204
+ zo,
6082
6205
  {
6083
6206
  data: a,
6084
6207
  dispatch: t,
@@ -6100,31 +6223,31 @@ function Mo() {
6100
6223
  ] }) : /* @__PURE__ */ n.jsx(n.Fragment, {})
6101
6224
  ] });
6102
6225
  }
6103
- function Fo(e) {
6226
+ function Oo(e) {
6104
6227
  ee.get = e;
6105
6228
  }
6106
- function Po(e) {
6229
+ function Ao(e) {
6107
6230
  ee.set !== void 0 && ee.set(e);
6108
6231
  }
6109
- function Lo(e) {
6232
+ function Wo(e) {
6110
6233
  ee.reset !== void 0 && ee.reset(e);
6111
6234
  }
6112
- function $o(e, t, a, r) {
6235
+ function Go(e, t, a, r) {
6113
6236
  let i = [], s = 1, l = 0, c = {}, d = 50;
6114
6237
  return c[s] = [], r === !0 && (Object.keys(t).forEach((_) => {
6115
6238
  Number.parseInt(t[_]) !== 999 && (e = e.filter(
6116
6239
  (u) => Number.parseInt(u[_]) === Number.parseInt(t[_])
6117
6240
  ));
6118
- }), Bn(e.length)), e.forEach((_) => {
6241
+ }), Mn(e.length)), e.forEach((_) => {
6119
6242
  i.push(_.id);
6120
6243
  }), i.forEach((_) => {
6121
6244
  l++, l <= d || (s++, l = 1, c[s] = []), c[s].push(a[_]);
6122
6245
  }), c;
6123
6246
  }
6124
- function Bn(e) {
6247
+ function Mn(e) {
6125
6248
  ee.count(e);
6126
6249
  }
6127
- function Oo({ data: e, state: t, dispatch: a }) {
6250
+ function zo({ data: e, state: t, dispatch: a }) {
6128
6251
  let r = () => {
6129
6252
  a({ type: "view", view: e });
6130
6253
  }, i = () => {
@@ -6147,7 +6270,7 @@ function Oo({ data: e, state: t, dispatch: a }) {
6147
6270
  ) : ""
6148
6271
  ] }),
6149
6272
  /* @__PURE__ */ n.jsx("div", { className: "filter u", "set-active": (t.view === e) + "", children: Object.keys(t.data[e].list).map((s, l) => /* @__PURE__ */ n.jsx(
6150
- Ao,
6273
+ Ko,
6151
6274
  {
6152
6275
  data: t.data[e].list[s],
6153
6276
  head: e,
@@ -6159,7 +6282,7 @@ function Oo({ data: e, state: t, dispatch: a }) {
6159
6282
  )) })
6160
6283
  ] });
6161
6284
  }
6162
- function Ao({ data: e, head: t, state: a, dispatch: r, type: i }) {
6285
+ function Ko({ data: e, head: t, state: a, dispatch: r, type: i }) {
6163
6286
  if (i !== "999" && e.count === void 0)
6164
6287
  return "";
6165
6288
  const s = () => {
@@ -6178,8 +6301,8 @@ function Ao({ data: e, head: t, state: a, dispatch: r, type: i }) {
6178
6301
  }
6179
6302
  );
6180
6303
  }
6181
- const nl = { Button: Mo, useValue: Fo, Set: Po, Run: $o, Count: Bn, Reset: Lo }, al = { Bell: Ks, Send: As, Add: Os };
6182
- function rl({ active: e, onActive: t, id: a, name: r }) {
6304
+ const il = { Button: $o, useValue: Oo, Set: Ao, Run: Go, Count: Mn, Reset: Wo }, sl = { Bell: Vs, Send: Ks, Add: zs };
6305
+ function ol({ active: e, onActive: t, id: a, name: r }) {
6183
6306
  const [i, s] = k.useState(!!e);
6184
6307
  k.useEffect(() => {
6185
6308
  s(!!e);
@@ -6198,32 +6321,32 @@ function rl({ active: e, onActive: t, id: a, name: r }) {
6198
6321
  );
6199
6322
  }
6200
6323
  export {
6201
- Wi as Action,
6202
- Vo as Alert,
6203
- Ko as Api,
6204
- fr as Button,
6205
- Uo as Component,
6206
- qo as DataBase,
6207
- Ne as Events,
6208
- nl as Filter,
6209
- Qo as Form,
6210
- z as Format,
6211
- Yo as Icon,
6212
- zo as Input,
6213
- el as Loading,
6214
- pn as Modal,
6215
- Ge as Notice,
6216
- al as Notifications,
6217
- Re as Router,
6218
- Xo as Scrolling,
6219
- tl as Search,
6220
- Zo as Setting,
6221
- xt as Sistym,
6222
- ft as Socket,
6324
+ Zi as Action,
6325
+ qo as Alert,
6326
+ Vo as Api,
6327
+ hr as Button,
6328
+ Ho as Component,
6329
+ Qo as DataBase,
6330
+ Fe as Events,
6331
+ il as Filter,
6332
+ nl as Form,
6333
+ K as Format,
6334
+ Jo as Icon,
6335
+ Mi as Input,
6336
+ al as Loading,
6337
+ kn as Modal,
6338
+ Ke as Notice,
6339
+ sl as Notifications,
6340
+ ke as Router,
6341
+ tl as Scrolling,
6342
+ rl as Search,
6343
+ Yo as Setting,
6344
+ pt as Sistym,
6345
+ ht as Socket,
6223
6346
  ce as Store,
6224
- rl as Switch,
6225
- Bi as Tabs,
6226
- B as Telegram,
6227
- Ho as Triage,
6228
- Jo as User
6347
+ ol as Switch,
6348
+ Pi as Tabs,
6349
+ D as Telegram,
6350
+ Xo as Triage,
6351
+ el as User
6229
6352
  };