@elcrm/telegram 0.0.65 → 0.0.66

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,5 +1,5 @@
1
- import P, { useState as Ot, useEffect as Tt } from "react";
2
- import './index.css';var Ct = { exports: {} }, Ve = {};
1
+ import P, { useState as xt, useEffect as Ot } from "react";
2
+ import './index.css';var wt = { exports: {} }, Ve = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
@@ -9,19 +9,19 @@ import './index.css';var Ct = { exports: {} }, Ve = {};
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
- var Pt;
13
- function Vt() {
14
- if (Pt) return Ve;
15
- Pt = 1;
16
- var n = P, o = Symbol.for("react.element"), l = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, m = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
17
- function j(k, d, x) {
18
- var p, R = {}, I = null, A = null;
19
- x !== void 0 && (I = "" + x), d.key !== void 0 && (I = "" + d.key), d.ref !== void 0 && (A = d.ref);
20
- for (p in d) u.call(d, p) && !y.hasOwnProperty(p) && (R[p] = d[p]);
21
- if (k && k.defaultProps) for (p in d = k.defaultProps, d) R[p] === void 0 && (R[p] = d[p]);
22
- return { $$typeof: o, type: k, key: I, ref: A, props: R, _owner: m.current };
12
+ var At;
13
+ function Lt() {
14
+ if (At) return Ve;
15
+ At = 1;
16
+ var r = P, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, y = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, b = { key: !0, ref: !0, __self: !0, __source: !0 };
17
+ function w(_, v, S) {
18
+ var d, R = {}, C = null, N = null;
19
+ S !== void 0 && (C = "" + S), v.key !== void 0 && (C = "" + v.key), v.ref !== void 0 && (N = v.ref);
20
+ for (d in v) f.call(v, d) && !b.hasOwnProperty(d) && (R[d] = v[d]);
21
+ if (_ && _.defaultProps) for (d in v = _.defaultProps, v) R[d] === void 0 && (R[d] = v[d]);
22
+ return { $$typeof: o, type: _, key: C, ref: N, props: R, _owner: y.current };
23
23
  }
24
- return Ve.Fragment = l, Ve.jsx = j, Ve.jsxs = j, Ve;
24
+ return Ve.Fragment = i, Ve.jsx = w, Ve.jsxs = w, Ve;
25
25
  }
26
26
  var ze = {};
27
27
  /**
@@ -33,91 +33,91 @@ var ze = {};
33
33
  * This source code is licensed under the MIT license found in the
34
34
  * LICENSE file in the root directory of this source tree.
35
35
  */
36
- var At;
37
- function zt() {
38
- return At || (At = 1, process.env.NODE_ENV !== "production" && function() {
39
- var n = P, o = Symbol.for("react.element"), l = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), k = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), V = Symbol.iterator, _e = "@@iterator";
36
+ var Pt;
37
+ function Ut() {
38
+ return Pt || (Pt = 1, process.env.NODE_ENV !== "production" && function() {
39
+ var r = P, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), _ = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), ne = Symbol.iterator, _e = "@@iterator";
40
40
  function Re(e) {
41
41
  if (e === null || typeof e != "object")
42
42
  return null;
43
- var t = V && e[V] || e[_e];
43
+ var t = ne && e[ne] || e[_e];
44
44
  return typeof t == "function" ? t : null;
45
45
  }
46
- var N = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
- function S(e) {
46
+ var M = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
+ function E(e) {
48
48
  {
49
- for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
50
- r[a - 1] = arguments[a];
51
- ye("error", e, r);
49
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
50
+ n[a - 1] = arguments[a];
51
+ ge("error", e, n);
52
52
  }
53
53
  }
54
- function ye(e, t, r) {
54
+ function ge(e, t, n) {
55
55
  {
56
- var a = N.ReactDebugCurrentFrame, f = a.getStackAddendum();
57
- f !== "" && (t += "%s", r = r.concat([f]));
58
- var v = r.map(function(s) {
59
- return String(s);
56
+ var a = M.ReactDebugCurrentFrame, l = a.getStackAddendum();
57
+ l !== "" && (t += "%s", n = n.concat([l]));
58
+ var p = n.map(function(u) {
59
+ return String(u);
60
60
  });
61
- v.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, v);
61
+ p.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, p);
62
62
  }
63
63
  }
64
- var ke = !1, Ee = !1, h = !1, E = !1, F = !1, M;
65
- M = Symbol.for("react.module.reference");
66
- function U(e) {
67
- return !!(typeof e == "string" || typeof e == "function" || e === u || e === y || F || e === m || e === x || e === p || E || e === A || ke || Ee || h || typeof e == "object" && e !== null && (e.$$typeof === I || e.$$typeof === R || e.$$typeof === j || e.$$typeof === k || e.$$typeof === d || // This needs to include all possible module reference object
64
+ var ke = !1, Ee = !1, h = !1, k = !1, B = !1, F;
65
+ F = Symbol.for("react.module.reference");
66
+ function W(e) {
67
+ return !!(typeof e == "string" || typeof e == "function" || e === f || e === b || B || e === y || e === S || e === d || k || e === N || ke || Ee || h || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === R || e.$$typeof === w || e.$$typeof === _ || e.$$typeof === v || // This needs to include all possible module reference object
68
68
  // types supported by any Flight configuration anywhere since
69
69
  // we don't know which Flight build this will end up being used
70
70
  // with.
71
- e.$$typeof === M || e.getModuleId !== void 0));
71
+ e.$$typeof === F || e.getModuleId !== void 0));
72
72
  }
73
- function oe(e, t, r) {
73
+ function oe(e, t, n) {
74
74
  var a = e.displayName;
75
75
  if (a)
76
76
  return a;
77
- var f = t.displayName || t.name || "";
78
- return f !== "" ? r + "(" + f + ")" : r;
77
+ var l = t.displayName || t.name || "";
78
+ return l !== "" ? n + "(" + l + ")" : n;
79
79
  }
80
80
  function ae(e) {
81
81
  return e.displayName || "Context";
82
82
  }
83
- function B(e) {
83
+ function T(e) {
84
84
  if (e == null)
85
85
  return null;
86
- if (typeof e.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
86
+ if (typeof e.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
87
87
  return e.displayName || e.name || null;
88
88
  if (typeof e == "string")
89
89
  return e;
90
90
  switch (e) {
91
- case u:
91
+ case f:
92
92
  return "Fragment";
93
- case l:
93
+ case i:
94
94
  return "Portal";
95
- case y:
95
+ case b:
96
96
  return "Profiler";
97
- case m:
97
+ case y:
98
98
  return "StrictMode";
99
- case x:
99
+ case S:
100
100
  return "Suspense";
101
- case p:
101
+ case d:
102
102
  return "SuspenseList";
103
103
  }
104
104
  if (typeof e == "object")
105
105
  switch (e.$$typeof) {
106
- case k:
106
+ case _:
107
107
  var t = e;
108
108
  return ae(t) + ".Consumer";
109
- case j:
110
- var r = e;
111
- return ae(r._context) + ".Provider";
112
- case d:
109
+ case w:
110
+ var n = e;
111
+ return ae(n._context) + ".Provider";
112
+ case v:
113
113
  return oe(e, e.render, "ForwardRef");
114
114
  case R:
115
115
  var a = e.displayName || null;
116
- return a !== null ? a : B(e.type) || "Memo";
117
- case I: {
118
- var f = e, v = f._payload, s = f._init;
116
+ return a !== null ? a : T(e.type) || "Memo";
117
+ case C: {
118
+ var l = e, p = l._payload, u = l._init;
119
119
  try {
120
- return B(s(v));
120
+ return T(u(p));
121
121
  } catch {
122
122
  return null;
123
123
  }
@@ -125,18 +125,18 @@ function zt() {
125
125
  }
126
126
  return null;
127
127
  }
128
- var D = Object.assign, $ = 0, q, K, G, Se, xe, Oe, Te;
129
- function Ce() {
128
+ var I = Object.assign, D = 0, z, J, q, Se, xe, Oe, we;
129
+ function je() {
130
130
  }
131
- Ce.__reactDisabledLog = !0;
132
- function Qe() {
131
+ je.__reactDisabledLog = !0;
132
+ function Xe() {
133
133
  {
134
- if ($ === 0) {
135
- q = console.log, K = console.info, G = console.warn, Se = console.error, xe = console.group, Oe = console.groupCollapsed, Te = console.groupEnd;
134
+ if (D === 0) {
135
+ z = console.log, J = console.info, q = console.warn, Se = console.error, xe = console.group, Oe = console.groupCollapsed, we = console.groupEnd;
136
136
  var e = {
137
137
  configurable: !0,
138
138
  enumerable: !0,
139
- value: Ce,
139
+ value: je,
140
140
  writable: !0
141
141
  };
142
142
  Object.defineProperties(console, {
@@ -149,320 +149,320 @@ function zt() {
149
149
  groupEnd: e
150
150
  });
151
151
  }
152
- $++;
152
+ D++;
153
153
  }
154
154
  }
155
- function et() {
155
+ function Qe() {
156
156
  {
157
- if ($--, $ === 0) {
157
+ if (D--, D === 0) {
158
158
  var e = {
159
159
  configurable: !0,
160
160
  enumerable: !0,
161
161
  writable: !0
162
162
  };
163
163
  Object.defineProperties(console, {
164
- log: D({}, e, {
165
- value: q
164
+ log: I({}, e, {
165
+ value: z
166
166
  }),
167
- info: D({}, e, {
168
- value: K
167
+ info: I({}, e, {
168
+ value: J
169
169
  }),
170
- warn: D({}, e, {
171
- value: G
170
+ warn: I({}, e, {
171
+ value: q
172
172
  }),
173
- error: D({}, e, {
173
+ error: I({}, e, {
174
174
  value: Se
175
175
  }),
176
- group: D({}, e, {
176
+ group: I({}, e, {
177
177
  value: xe
178
178
  }),
179
- groupCollapsed: D({}, e, {
179
+ groupCollapsed: I({}, e, {
180
180
  value: Oe
181
181
  }),
182
- groupEnd: D({}, e, {
183
- value: Te
182
+ groupEnd: I({}, e, {
183
+ value: we
184
184
  })
185
185
  });
186
186
  }
187
- $ < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
187
+ D < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
188
  }
189
189
  }
190
- var se = N.ReactCurrentDispatcher, le;
191
- function H(e, t, r) {
190
+ var se = M.ReactCurrentDispatcher, ue;
191
+ function K(e, t, n) {
192
192
  {
193
- if (le === void 0)
193
+ if (ue === void 0)
194
194
  try {
195
195
  throw Error();
196
- } catch (f) {
197
- var a = f.stack.trim().match(/\n( *(at )?)/);
198
- le = a && a[1] || "";
196
+ } catch (l) {
197
+ var a = l.stack.trim().match(/\n( *(at )?)/);
198
+ ue = a && a[1] || "";
199
199
  }
200
200
  return `
201
- ` + le + e;
201
+ ` + ue + e;
202
202
  }
203
203
  }
204
- var ue = !1, X;
204
+ var le = !1, G;
205
205
  {
206
- var tt = typeof WeakMap == "function" ? WeakMap : Map;
207
- X = new tt();
206
+ var et = typeof WeakMap == "function" ? WeakMap : Map;
207
+ G = new et();
208
208
  }
209
- function je(e, t) {
210
- if (!e || ue)
209
+ function Ce(e, t) {
210
+ if (!e || le)
211
211
  return "";
212
212
  {
213
- var r = X.get(e);
214
- if (r !== void 0)
215
- return r;
213
+ var n = G.get(e);
214
+ if (n !== void 0)
215
+ return n;
216
216
  }
217
217
  var a;
218
- ue = !0;
219
- var f = Error.prepareStackTrace;
218
+ le = !0;
219
+ var l = Error.prepareStackTrace;
220
220
  Error.prepareStackTrace = void 0;
221
- var v;
222
- v = se.current, se.current = null, Qe();
221
+ var p;
222
+ p = se.current, se.current = null, Xe();
223
223
  try {
224
224
  if (t) {
225
- var s = function() {
225
+ var u = function() {
226
226
  throw Error();
227
227
  };
228
- if (Object.defineProperty(s.prototype, "props", {
228
+ if (Object.defineProperty(u.prototype, "props", {
229
229
  set: function() {
230
230
  throw Error();
231
231
  }
232
232
  }), typeof Reflect == "object" && Reflect.construct) {
233
233
  try {
234
- Reflect.construct(s, []);
235
- } catch (T) {
236
- a = T;
234
+ Reflect.construct(u, []);
235
+ } catch (O) {
236
+ a = O;
237
237
  }
238
- Reflect.construct(e, [], s);
238
+ Reflect.construct(e, [], u);
239
239
  } else {
240
240
  try {
241
- s.call();
242
- } catch (T) {
243
- a = T;
241
+ u.call();
242
+ } catch (O) {
243
+ a = O;
244
244
  }
245
- e.call(s.prototype);
245
+ e.call(u.prototype);
246
246
  }
247
247
  } else {
248
248
  try {
249
249
  throw Error();
250
- } catch (T) {
251
- a = T;
250
+ } catch (O) {
251
+ a = O;
252
252
  }
253
253
  e();
254
254
  }
255
- } catch (T) {
256
- if (T && a && typeof T.stack == "string") {
257
- for (var i = T.stack.split(`
258
- `), O = a.stack.split(`
259
- `), b = i.length - 1, _ = O.length - 1; b >= 1 && _ >= 0 && i[b] !== O[_]; )
260
- _--;
261
- for (; b >= 1 && _ >= 0; b--, _--)
262
- if (i[b] !== O[_]) {
263
- if (b !== 1 || _ !== 1)
255
+ } catch (O) {
256
+ if (O && a && typeof O.stack == "string") {
257
+ for (var s = O.stack.split(`
258
+ `), x = a.stack.split(`
259
+ `), g = s.length - 1, m = x.length - 1; g >= 1 && m >= 0 && s[g] !== x[m]; )
260
+ m--;
261
+ for (; g >= 1 && m >= 0; g--, m--)
262
+ if (s[g] !== x[m]) {
263
+ if (g !== 1 || m !== 1)
264
264
  do
265
- if (b--, _--, _ < 0 || i[b] !== O[_]) {
266
- var w = `
267
- ` + i[b].replace(" at new ", " at ");
268
- return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, w), w;
265
+ if (g--, m--, m < 0 || s[g] !== x[m]) {
266
+ var A = `
267
+ ` + s[g].replace(" at new ", " at ");
268
+ return e.displayName && A.includes("<anonymous>") && (A = A.replace("<anonymous>", e.displayName)), typeof e == "function" && G.set(e, A), A;
269
269
  }
270
- while (b >= 1 && _ >= 0);
270
+ while (g >= 1 && m >= 0);
271
271
  break;
272
272
  }
273
273
  }
274
274
  } finally {
275
- ue = !1, se.current = v, et(), Error.prepareStackTrace = f;
275
+ le = !1, se.current = p, Qe(), Error.prepareStackTrace = l;
276
276
  }
277
- var W = e ? e.displayName || e.name : "", L = W ? H(W) : "";
278
- return typeof e == "function" && X.set(e, L), L;
277
+ var U = e ? e.displayName || e.name : "", $ = U ? K(U) : "";
278
+ return typeof e == "function" && G.set(e, $), $;
279
279
  }
280
- function rt(e, t, r) {
281
- return je(e, !1);
280
+ function tt(e, t, n) {
281
+ return Ce(e, !1);
282
282
  }
283
- function nt(e) {
283
+ function rt(e) {
284
284
  var t = e.prototype;
285
285
  return !!(t && t.isReactComponent);
286
286
  }
287
- function Q(e, t, r) {
287
+ function Z(e, t, n) {
288
288
  if (e == null)
289
289
  return "";
290
290
  if (typeof e == "function")
291
- return je(e, nt(e));
291
+ return Ce(e, rt(e));
292
292
  if (typeof e == "string")
293
- return H(e);
293
+ return K(e);
294
294
  switch (e) {
295
- case x:
296
- return H("Suspense");
297
- case p:
298
- return H("SuspenseList");
295
+ case S:
296
+ return K("Suspense");
297
+ case d:
298
+ return K("SuspenseList");
299
299
  }
300
300
  if (typeof e == "object")
301
301
  switch (e.$$typeof) {
302
- case d:
303
- return rt(e.render);
302
+ case v:
303
+ return tt(e.render);
304
304
  case R:
305
- return Q(e.type, t, r);
306
- case I: {
307
- var a = e, f = a._payload, v = a._init;
305
+ return Z(e.type, t, n);
306
+ case C: {
307
+ var a = e, l = a._payload, p = a._init;
308
308
  try {
309
- return Q(v(f), t, r);
309
+ return Z(p(l), t, n);
310
310
  } catch {
311
311
  }
312
312
  }
313
313
  }
314
314
  return "";
315
315
  }
316
- var z = Object.prototype.hasOwnProperty, we = {}, Pe = N.ReactDebugCurrentFrame;
317
- function ee(e) {
316
+ var Y = Object.prototype.hasOwnProperty, Ae = {}, Pe = M.ReactDebugCurrentFrame;
317
+ function X(e) {
318
318
  if (e) {
319
- var t = e._owner, r = Q(e.type, e._source, t ? t.type : null);
320
- Pe.setExtraStackFrame(r);
319
+ var t = e._owner, n = Z(e.type, e._source, t ? t.type : null);
320
+ Pe.setExtraStackFrame(n);
321
321
  } else
322
322
  Pe.setExtraStackFrame(null);
323
323
  }
324
- function ot(e, t, r, a, f) {
324
+ function nt(e, t, n, a, l) {
325
325
  {
326
- var v = Function.call.bind(z);
327
- for (var s in e)
328
- if (v(e, s)) {
329
- var i = void 0;
326
+ var p = Function.call.bind(Y);
327
+ for (var u in e)
328
+ if (p(e, u)) {
329
+ var s = void 0;
330
330
  try {
331
- if (typeof e[s] != "function") {
332
- var O = Error((a || "React class") + ": " + r + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
333
- throw O.name = "Invariant Violation", O;
331
+ if (typeof e[u] != "function") {
332
+ var x = Error((a || "React class") + ": " + n + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
333
+ throw x.name = "Invariant Violation", x;
334
334
  }
335
- i = e[s](t, s, a, r, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
- } catch (b) {
337
- i = b;
335
+ s = e[u](t, u, a, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
+ } catch (g) {
337
+ s = g;
338
338
  }
339
- i && !(i instanceof Error) && (ee(f), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", r, s, typeof i), ee(null)), i instanceof Error && !(i.message in we) && (we[i.message] = !0, ee(f), S("Failed %s type: %s", r, i.message), ee(null));
339
+ s && !(s instanceof Error) && (X(l), E("%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).", a || "React class", n, u, typeof s), X(null)), s instanceof Error && !(s.message in Ae) && (Ae[s.message] = !0, X(l), E("Failed %s type: %s", n, s.message), X(null));
340
340
  }
341
341
  }
342
342
  }
343
- var at = Array.isArray;
343
+ var ot = Array.isArray;
344
344
  function ce(e) {
345
- return at(e);
345
+ return ot(e);
346
346
  }
347
- function it(e) {
347
+ function at(e) {
348
348
  {
349
- var t = typeof Symbol == "function" && Symbol.toStringTag, r = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
350
- return r;
349
+ var t = typeof Symbol == "function" && Symbol.toStringTag, n = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
350
+ return n;
351
351
  }
352
352
  }
353
- function st(e) {
353
+ function it(e) {
354
354
  try {
355
- return Ae(e), !1;
355
+ return Te(e), !1;
356
356
  } catch {
357
357
  return !0;
358
358
  }
359
359
  }
360
- function Ae(e) {
360
+ function Te(e) {
361
361
  return "" + e;
362
362
  }
363
363
  function Be(e) {
364
- if (st(e))
365
- return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", it(e)), Ae(e);
364
+ if (it(e))
365
+ return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", at(e)), Te(e);
366
366
  }
367
- var Ie = N.ReactCurrentOwner, lt = {
367
+ var Ie = M.ReactCurrentOwner, st = {
368
368
  key: !0,
369
369
  ref: !0,
370
370
  __self: !0,
371
371
  __source: !0
372
372
  }, Fe, De;
373
373
  function ut(e) {
374
- if (z.call(e, "ref")) {
374
+ if (Y.call(e, "ref")) {
375
375
  var t = Object.getOwnPropertyDescriptor(e, "ref").get;
376
376
  if (t && t.isReactWarning)
377
377
  return !1;
378
378
  }
379
379
  return e.ref !== void 0;
380
380
  }
381
- function ct(e) {
382
- if (z.call(e, "key")) {
381
+ function lt(e) {
382
+ if (Y.call(e, "key")) {
383
383
  var t = Object.getOwnPropertyDescriptor(e, "key").get;
384
384
  if (t && t.isReactWarning)
385
385
  return !1;
386
386
  }
387
387
  return e.key !== void 0;
388
388
  }
389
- function ft(e, t) {
389
+ function ct(e, t) {
390
390
  typeof e.ref == "string" && Ie.current;
391
391
  }
392
- function dt(e, t) {
392
+ function ft(e, t) {
393
393
  {
394
- var r = function() {
395
- Fe || (Fe = !0, S("%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)", t));
394
+ var n = function() {
395
+ Fe || (Fe = !0, E("%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)", t));
396
396
  };
397
- r.isReactWarning = !0, Object.defineProperty(e, "key", {
398
- get: r,
397
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
398
+ get: n,
399
399
  configurable: !0
400
400
  });
401
401
  }
402
402
  }
403
- function pt(e, t) {
403
+ function dt(e, t) {
404
404
  {
405
- var r = function() {
406
- De || (De = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
405
+ var n = function() {
406
+ De || (De = !0, E("%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)", t));
407
407
  };
408
- r.isReactWarning = !0, Object.defineProperty(e, "ref", {
409
- get: r,
408
+ n.isReactWarning = !0, Object.defineProperty(e, "ref", {
409
+ get: n,
410
410
  configurable: !0
411
411
  });
412
412
  }
413
413
  }
414
- var vt = function(e, t, r, a, f, v, s) {
415
- var i = {
414
+ var pt = function(e, t, n, a, l, p, u) {
415
+ var s = {
416
416
  // This tag allows us to uniquely identify this as a React Element
417
417
  $$typeof: o,
418
418
  // Built-in properties that belong on the element
419
419
  type: e,
420
420
  key: t,
421
- ref: r,
422
- props: s,
421
+ ref: n,
422
+ props: u,
423
423
  // Record the component responsible for creating this element.
424
- _owner: v
424
+ _owner: p
425
425
  };
426
- return i._store = {}, Object.defineProperty(i._store, "validated", {
426
+ return s._store = {}, Object.defineProperty(s._store, "validated", {
427
427
  configurable: !1,
428
428
  enumerable: !1,
429
429
  writable: !0,
430
430
  value: !1
431
- }), Object.defineProperty(i, "_self", {
431
+ }), Object.defineProperty(s, "_self", {
432
432
  configurable: !1,
433
433
  enumerable: !1,
434
434
  writable: !1,
435
435
  value: a
436
- }), Object.defineProperty(i, "_source", {
436
+ }), Object.defineProperty(s, "_source", {
437
437
  configurable: !1,
438
438
  enumerable: !1,
439
439
  writable: !1,
440
- value: f
441
- }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
440
+ value: l
441
+ }), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
442
442
  };
443
- function gt(e, t, r, a, f) {
443
+ function vt(e, t, n, a, l) {
444
444
  {
445
- var v, s = {}, i = null, O = null;
446
- r !== void 0 && (Be(r), i = "" + r), ct(t) && (Be(t.key), i = "" + t.key), ut(t) && (O = t.ref, ft(t, f));
447
- for (v in t)
448
- z.call(t, v) && !lt.hasOwnProperty(v) && (s[v] = t[v]);
445
+ var p, u = {}, s = null, x = null;
446
+ n !== void 0 && (Be(n), s = "" + n), lt(t) && (Be(t.key), s = "" + t.key), ut(t) && (x = t.ref, ct(t, l));
447
+ for (p in t)
448
+ Y.call(t, p) && !st.hasOwnProperty(p) && (u[p] = t[p]);
449
449
  if (e && e.defaultProps) {
450
- var b = e.defaultProps;
451
- for (v in b)
452
- s[v] === void 0 && (s[v] = b[v]);
450
+ var g = e.defaultProps;
451
+ for (p in g)
452
+ u[p] === void 0 && (u[p] = g[p]);
453
453
  }
454
- if (i || O) {
455
- var _ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
- i && dt(s, _), O && pt(s, _);
454
+ if (s || x) {
455
+ var m = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
+ s && ft(u, m), x && dt(u, m);
457
457
  }
458
- return vt(e, i, O, f, a, Ie.current, s);
458
+ return pt(e, s, x, l, a, Ie.current, u);
459
459
  }
460
460
  }
461
- var fe = N.ReactCurrentOwner, Me = N.ReactDebugCurrentFrame;
462
- function Y(e) {
461
+ var fe = M.ReactCurrentOwner, Me = M.ReactDebugCurrentFrame;
462
+ function L(e) {
463
463
  if (e) {
464
- var t = e._owner, r = Q(e.type, e._source, t ? t.type : null);
465
- Me.setExtraStackFrame(r);
464
+ var t = e._owner, n = Z(e.type, e._source, t ? t.type : null);
465
+ Me.setExtraStackFrame(n);
466
466
  } else
467
467
  Me.setExtraStackFrame(null);
468
468
  }
@@ -474,7 +474,7 @@ function zt() {
474
474
  function $e() {
475
475
  {
476
476
  if (fe.current) {
477
- var e = B(fe.current.type);
477
+ var e = T(fe.current.type);
478
478
  if (e)
479
479
  return `
480
480
 
@@ -483,308 +483,308 @@ Check the render method of \`` + e + "`.";
483
483
  return "";
484
484
  }
485
485
  }
486
- function mt(e) {
486
+ function yt(e) {
487
487
  return "";
488
488
  }
489
489
  var Ne = {};
490
- function yt(e) {
490
+ function ht(e) {
491
491
  {
492
492
  var t = $e();
493
493
  if (!t) {
494
- var r = typeof e == "string" ? e : e.displayName || e.name;
495
- r && (t = `
494
+ var n = typeof e == "string" ? e : e.displayName || e.name;
495
+ n && (t = `
496
496
 
497
- Check the top-level render call using <` + r + ">.");
497
+ Check the top-level render call using <` + n + ">.");
498
498
  }
499
499
  return t;
500
500
  }
501
501
  }
502
- function Le(e, t) {
502
+ function We(e, t) {
503
503
  {
504
504
  if (!e._store || e._store.validated || e.key != null)
505
505
  return;
506
506
  e._store.validated = !0;
507
- var r = yt(t);
508
- if (Ne[r])
507
+ var n = ht(t);
508
+ if (Ne[n])
509
509
  return;
510
- Ne[r] = !0;
510
+ Ne[n] = !0;
511
511
  var a = "";
512
- e && e._owner && e._owner !== fe.current && (a = " It was passed a child from " + B(e._owner.type) + "."), Y(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', r, a), Y(null);
512
+ e && e._owner && e._owner !== fe.current && (a = " It was passed a child from " + T(e._owner.type) + "."), L(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, a), L(null);
513
513
  }
514
514
  }
515
- function Ue(e, t) {
515
+ function Le(e, t) {
516
516
  {
517
517
  if (typeof e != "object")
518
518
  return;
519
519
  if (ce(e))
520
- for (var r = 0; r < e.length; r++) {
521
- var a = e[r];
522
- pe(a) && Le(a, t);
520
+ for (var n = 0; n < e.length; n++) {
521
+ var a = e[n];
522
+ pe(a) && We(a, t);
523
523
  }
524
524
  else if (pe(e))
525
525
  e._store && (e._store.validated = !0);
526
526
  else if (e) {
527
- var f = Re(e);
528
- if (typeof f == "function" && f !== e.entries)
529
- for (var v = f.call(e), s; !(s = v.next()).done; )
530
- pe(s.value) && Le(s.value, t);
527
+ var l = Re(e);
528
+ if (typeof l == "function" && l !== e.entries)
529
+ for (var p = l.call(e), u; !(u = p.next()).done; )
530
+ pe(u.value) && We(u.value, t);
531
531
  }
532
532
  }
533
533
  }
534
- function ht(e) {
534
+ function gt(e) {
535
535
  {
536
536
  var t = e.type;
537
537
  if (t == null || typeof t == "string")
538
538
  return;
539
- var r;
539
+ var n;
540
540
  if (typeof t == "function")
541
- r = t.propTypes;
542
- else if (typeof t == "object" && (t.$$typeof === d || // Note: Memo only checks outer props here.
541
+ n = t.propTypes;
542
+ else if (typeof t == "object" && (t.$$typeof === v || // Note: Memo only checks outer props here.
543
543
  // Inner props are checked in the reconciler.
544
544
  t.$$typeof === R))
545
- r = t.propTypes;
545
+ n = t.propTypes;
546
546
  else
547
547
  return;
548
- if (r) {
549
- var a = B(t);
550
- ot(r, e.props, "prop", a, e);
548
+ if (n) {
549
+ var a = T(t);
550
+ nt(n, e.props, "prop", a, e);
551
551
  } else if (t.PropTypes !== void 0 && !de) {
552
552
  de = !0;
553
- var f = B(t);
554
- S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", f || "Unknown");
553
+ var l = T(t);
554
+ E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", l || "Unknown");
555
555
  }
556
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
556
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
557
557
  }
558
558
  }
559
559
  function bt(e) {
560
560
  {
561
- for (var t = Object.keys(e.props), r = 0; r < t.length; r++) {
562
- var a = t[r];
561
+ for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
562
+ var a = t[n];
563
563
  if (a !== "children" && a !== "key") {
564
- Y(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), Y(null);
564
+ L(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), L(null);
565
565
  break;
566
566
  }
567
567
  }
568
- e.ref !== null && (Y(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
568
+ e.ref !== null && (L(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), L(null));
569
569
  }
570
570
  }
571
- var Ye = {};
572
- function We(e, t, r, a, f, v) {
571
+ var Ue = {};
572
+ function Ye(e, t, n, a, l, p) {
573
573
  {
574
- var s = U(e);
575
- if (!s) {
576
- var i = "";
577
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).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.");
578
- var O = mt();
579
- O ? i += O : i += $e();
580
- var b;
581
- e === null ? b = "null" : ce(e) ? b = "array" : e !== void 0 && e.$$typeof === o ? (b = "<" + (B(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, i);
574
+ var u = W(e);
575
+ if (!u) {
576
+ var s = "";
577
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (s += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
578
+ var x = yt();
579
+ x ? s += x : s += $e();
580
+ var g;
581
+ e === null ? g = "null" : ce(e) ? g = "array" : e !== void 0 && e.$$typeof === o ? (g = "<" + (T(e.type) || "Unknown") + " />", s = " Did you accidentally export a JSX literal instead of a component?") : g = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", g, s);
582
582
  }
583
- var _ = gt(e, t, r, f, v);
584
- if (_ == null)
585
- return _;
586
- if (s) {
587
- var w = t.children;
588
- if (w !== void 0)
583
+ var m = vt(e, t, n, l, p);
584
+ if (m == null)
585
+ return m;
586
+ if (u) {
587
+ var A = t.children;
588
+ if (A !== void 0)
589
589
  if (a)
590
- if (ce(w)) {
591
- for (var W = 0; W < w.length; W++)
592
- Ue(w[W], e);
593
- Object.freeze && Object.freeze(w);
590
+ if (ce(A)) {
591
+ for (var U = 0; U < A.length; U++)
592
+ Le(A[U], e);
593
+ Object.freeze && Object.freeze(A);
594
594
  } else
595
- S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
595
+ E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
596
596
  else
597
- Ue(w, e);
597
+ Le(A, e);
598
598
  }
599
- if (z.call(t, "key")) {
600
- var L = B(e), T = Object.keys(t).filter(function(xt) {
601
- return xt !== "key";
602
- }), ve = T.length > 0 ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}";
603
- if (!Ye[L + ve]) {
604
- var St = T.length > 0 ? "{" + T.join(": ..., ") + ": ...}" : "{}";
605
- S(`A props object containing a "key" prop is being spread into JSX:
599
+ if (Y.call(t, "key")) {
600
+ var $ = T(e), O = Object.keys(t).filter(function(St) {
601
+ return St !== "key";
602
+ }), ve = O.length > 0 ? "{key: someKey, " + O.join(": ..., ") + ": ...}" : "{key: someKey}";
603
+ if (!Ue[$ + ve]) {
604
+ var Et = O.length > 0 ? "{" + O.join(": ..., ") + ": ...}" : "{}";
605
+ E(`A props object containing a "key" prop is being spread into JSX:
606
606
  let props = %s;
607
607
  <%s {...props} />
608
608
  React keys must be passed directly to JSX without using spread:
609
609
  let props = %s;
610
- <%s key={someKey} {...props} />`, ve, L, St, L), Ye[L + ve] = !0;
610
+ <%s key={someKey} {...props} />`, ve, $, Et, $), Ue[$ + ve] = !0;
611
611
  }
612
612
  }
613
- return e === u ? bt(_) : ht(_), _;
613
+ return e === f ? bt(m) : gt(m), m;
614
614
  }
615
615
  }
616
- function _t(e, t, r) {
617
- return We(e, t, r, !0);
616
+ function mt(e, t, n) {
617
+ return Ye(e, t, n, !0);
618
618
  }
619
- function Rt(e, t, r) {
620
- return We(e, t, r, !1);
619
+ function _t(e, t, n) {
620
+ return Ye(e, t, n, !1);
621
621
  }
622
- var kt = Rt, Et = _t;
623
- ze.Fragment = u, ze.jsx = kt, ze.jsxs = Et;
622
+ var Rt = _t, kt = mt;
623
+ ze.Fragment = f, ze.jsx = Rt, ze.jsxs = kt;
624
624
  }()), ze;
625
625
  }
626
- process.env.NODE_ENV === "production" ? Ct.exports = Vt() : Ct.exports = zt();
627
- var c = Ct.exports;
628
- let Z = {};
626
+ process.env.NODE_ENV === "production" ? wt.exports = Lt() : wt.exports = Ut();
627
+ var c = wt.exports;
628
+ let H = {};
629
629
  var jt;
630
- ((n) => {
631
- function o({ children: k }) {
632
- const [d, x] = Ot(!1), [p, R] = Ot(!1);
633
- if (Z.onClose = () => {
634
- g.BackButton.set(!1), R(!0), setTimeout(() => {
635
- x(!1), R(!1);
630
+ ((r) => {
631
+ function o({ children: _ }) {
632
+ const [v, S] = xt(!1), [d, R] = xt(!1);
633
+ if (H.onClose = () => {
634
+ re.BackButton.set(!1), R(!0), setTimeout(() => {
635
+ S(!1), R(!1);
636
636
  }, 300);
637
- }, Tt(() => {
638
- d ? Z.onClose() : (g.BackButton.set({
639
- callback: () => Z.onClose()
640
- }), x(!0));
641
- }, []), !!d)
642
- return /* @__PURE__ */ c.jsx("div", { className: `modal-overlay ${p ? "closing" : ""}`, children: /* @__PURE__ */ c.jsx("div", { className: `modal-popup ${p ? "closing" : ""}`, children: /* @__PURE__ */ c.jsx("div", { children: k }) }) });
637
+ }, Ot(() => {
638
+ v ? H.onClose() : (re.BackButton.set({
639
+ callback: () => H.onClose()
640
+ }), S(!0));
641
+ }, []), !!v)
642
+ return /* @__PURE__ */ c.jsx("div", { className: `modal-overlay ${d ? "closing" : ""}`, children: /* @__PURE__ */ c.jsx("div", { className: `modal-popup ${d ? "closing" : ""}`, children: /* @__PURE__ */ c.jsx("div", { children: _ }) }) });
643
643
  }
644
- n.Content = o;
645
- function l({
646
- import_modules: k
644
+ r.Content = o;
645
+ function i({
646
+ import_modules: _
647
647
  }) {
648
- let [d, x] = Ot([]);
649
- return Z.x = (p) => {
650
- x(p ? d.filter((R) => R.key !== p) : []);
651
- }, Tt(() => {
652
- k && (Z.i = k);
653
- }, []), Z.add = (p, R = Date.now()) => {
654
- x([...d, { key: R, item: p }]);
655
- }, /* @__PURE__ */ c.jsx(c.Fragment, { children: d.map((p) => p.item) });
648
+ let [v, S] = xt([]);
649
+ return H.x = (d) => {
650
+ S(d ? v.filter((R) => R.key !== d) : []);
651
+ }, Ot(() => {
652
+ _ && (H.i = _);
653
+ }, []), H.add = (d, R = Date.now()) => {
654
+ S([...v, { key: R, item: d }]);
655
+ }, /* @__PURE__ */ c.jsx(c.Fragment, { children: v.map((d) => d.item) });
656
656
  }
657
- n.Init = l;
658
- function u(k, d) {
659
- Z.add(/* @__PURE__ */ c.jsx(o, { children: k }, String(Date.now())), d);
657
+ r.Init = i;
658
+ function f(_, v) {
659
+ H.add(/* @__PURE__ */ c.jsx(o, { children: _ }, String(Date.now())), v);
660
660
  }
661
- n.Add = u;
662
- function m(k) {
661
+ r.Add = f;
662
+ function y(_) {
663
663
  return {
664
- Open: (p) => {
665
- n.Add(
666
- /* @__PURE__ */ c.jsx(k, { ...p }, (/* @__PURE__ */ new Date()).getTime())
664
+ Open: (d) => {
665
+ r.Add(
666
+ /* @__PURE__ */ c.jsx(_, { ...d }, (/* @__PURE__ */ new Date()).getTime())
667
667
  );
668
668
  }
669
669
  };
670
670
  }
671
- n.Create = m;
672
- function y() {
673
- Z.onClose();
671
+ r.Create = y;
672
+ function b() {
673
+ H.onClose();
674
674
  }
675
- n.Close = y;
676
- function j(k, d, x) {
677
- Z.i && Z.i(`${k}/modals/${d}.tsx`).then((p) => {
678
- p.default.Open(x);
675
+ r.Close = b;
676
+ function w(_, v, S) {
677
+ H.i && H.i(`${_}/modals/${v}.tsx`).then((d) => {
678
+ d.default.Open(S);
679
679
  });
680
680
  }
681
- n.Open = j;
681
+ r.Open = w;
682
682
  })(jt || (jt = {}));
683
- function $t() {
683
+ function Dt() {
684
684
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : {};
685
685
  }
686
- const Nt = {
686
+ const Mt = {
687
687
  key: "Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",
688
688
  iterations: 7,
689
689
  saltLength: 16
690
690
  };
691
- function Bt(n) {
692
- const o = $t();
693
- o.CRYPTO_PARAMS ? o.CRYPTO_PARAMS = { ...o.CRYPTO_PARAMS, ...n } : o.CRYPTO_PARAMS = { ...Nt, ...n };
691
+ function Tt(r) {
692
+ const o = Dt();
693
+ o.CRYPTO_PARAMS ? o.CRYPTO_PARAMS = { ...o.CRYPTO_PARAMS, ...r } : o.CRYPTO_PARAMS = { ...Mt, ...r };
694
694
  }
695
- function Ge() {
696
- return $t().CRYPTO_PARAMS || Nt;
695
+ function He() {
696
+ return Dt().CRYPTO_PARAMS || Mt;
697
697
  }
698
- const Ze = (n) => {
698
+ const Ke = (r) => {
699
699
  let o = 0;
700
- for (let u = 0; u < n.length; u++) {
701
- const m = n.charCodeAt(u);
702
- o = (o << 5) - o + m, o = o & o;
700
+ for (let f = 0; f < r.length; f++) {
701
+ const y = r.charCodeAt(f);
702
+ o = (o << 5) - o + y, o = o & o;
703
703
  }
704
704
  o = Math.abs(o);
705
- let l = "";
706
- for (let u = 0; u < 64; u++) {
707
- const m = (o ^ u * 197) & 255;
708
- l += m.toString(16).padStart(2, "0");
705
+ let i = "";
706
+ for (let f = 0; f < 64; f++) {
707
+ const y = (o ^ f * 197) & 255;
708
+ i += y.toString(16).padStart(2, "0");
709
709
  }
710
- return l;
711
- }, Lt = (n, o) => {
712
- let l = n + o;
713
- for (let m = 0; m < Ge().iterations; m++)
714
- l = Ze(l);
715
- const u = new Uint8Array(32);
716
- for (let m = 0; m < 32; m++)
717
- u[m] = parseInt(l.substring(m * 2, m * 2 + 2), 16);
718
- return u;
719
- }, Ut = (n, o) => {
720
- const l = new Uint8Array(n.length), u = new Uint8Array(n.length);
721
- let m = 0;
722
- for (let y = 0; y < n.length; y++) {
723
- const j = y % o.length;
724
- m = o[j] + y + m & 255, u[y] = m;
710
+ return i;
711
+ }, $t = (r, o) => {
712
+ let i = r + o;
713
+ for (let y = 0; y < He().iterations; y++)
714
+ i = Ke(i);
715
+ const f = new Uint8Array(32);
716
+ for (let y = 0; y < 32; y++)
717
+ f[y] = parseInt(i.substring(y * 2, y * 2 + 2), 16);
718
+ return f;
719
+ }, Nt = (r, o) => {
720
+ const i = new Uint8Array(r.length), f = new Uint8Array(r.length);
721
+ let y = 0;
722
+ for (let b = 0; b < r.length; b++) {
723
+ const w = b % o.length;
724
+ y = o[w] + b + y & 255, f[b] = y;
725
725
  }
726
- for (let y = 0; y < n.length; y++)
727
- l[y] = n[y] ^ u[y];
728
- return l;
729
- }, Jt = (n) => new TextEncoder().encode(n), qt = (n) => new TextDecoder().decode(n), Kt = (n) => {
726
+ for (let b = 0; b < r.length; b++)
727
+ i[b] = r[b] ^ f[b];
728
+ return i;
729
+ }, Yt = (r) => new TextEncoder().encode(r), Vt = (r) => new TextDecoder().decode(r), zt = (r) => {
730
730
  let o = "";
731
- for (let l = 0; l < n.length; l += 8192) {
732
- const u = n.slice(l, Math.min(l + 8192, n.length));
733
- o += String.fromCharCode.apply(null, Array.from(u));
731
+ for (let i = 0; i < r.length; i += 8192) {
732
+ const f = r.slice(i, Math.min(i + 8192, r.length));
733
+ o += String.fromCharCode.apply(null, Array.from(f));
734
734
  }
735
735
  return btoa(o);
736
- }, Gt = (n) => {
737
- const o = atob(n), l = new Uint8Array(o.length);
738
- for (let u = 0; u < o.length; u++)
739
- l[u] = o.charCodeAt(u);
740
- return l;
741
- }, Zt = (n) => {
736
+ }, Jt = (r) => {
737
+ const o = atob(r), i = new Uint8Array(o.length);
738
+ for (let f = 0; f < o.length; f++)
739
+ i[f] = o.charCodeAt(f);
740
+ return i;
741
+ }, qt = (r) => {
742
742
  try {
743
- const o = Ze(
743
+ const o = Ke(
744
744
  Date.now().toString() + Math.random()
745
- ).substring(0, Ge().saltLength * 2), l = Ze(n + o).substring(0, 8), u = Lt(Ge().key, o), m = Jt(n), y = Ut(m, u), j = Kt(y);
746
- return `${o}.${j}.${l}`;
745
+ ).substring(0, He().saltLength * 2), i = Ke(r + o).substring(0, 8), f = $t(He().key, o), y = Yt(r), b = Nt(y, f), w = zt(b);
746
+ return `${o}.${w}.${i}`;
747
747
  } catch {
748
748
  throw new Error("Не удалось зашифровать данные");
749
749
  }
750
- }, Ht = (n) => {
750
+ }, Ht = (r) => {
751
751
  try {
752
- const o = n.split(".");
752
+ const o = r.split(".");
753
753
  if (o.length !== 3)
754
754
  throw new Error("Неверный формат зашифрованных данных");
755
- const l = o[0], u = o[1], m = o[2], y = Lt(Ge().key, l), j = Gt(u), k = Ut(j, y), d = qt(k);
756
- if (Ze(d + l).substring(
755
+ const i = o[0], f = o[1], y = o[2], b = $t(He().key, i), w = Jt(f), _ = Nt(w, b), v = Vt(_);
756
+ if (Ke(v + i).substring(
757
757
  0,
758
758
  8
759
- ) !== m)
759
+ ) !== y)
760
760
  throw new Error("Контрольная сумма не совпадает");
761
- return d;
761
+ return v;
762
762
  } catch {
763
763
  return "";
764
764
  }
765
765
  };
766
766
  var ie;
767
- ((n) => {
768
- n.setKey = (o) => {
769
- Bt({ key: o });
770
- }, n.enCode = (o) => {
767
+ ((r) => {
768
+ r.setKey = (o) => {
769
+ Tt({ key: o });
770
+ }, r.enCode = (o) => {
771
771
  try {
772
- const l = JSON.stringify(o);
773
- return Zt(l);
772
+ const i = JSON.stringify(o);
773
+ return qt(i);
774
774
  } catch {
775
775
  throw new Error("Не удалось зашифровать объект");
776
776
  }
777
- }, n.deCode = (o) => {
777
+ }, r.deCode = (o) => {
778
778
  try {
779
779
  if (!o || o.length < 10)
780
780
  return !1;
781
- const l = Ht(o);
782
- return l && JSON.parse(l) || !1;
781
+ const i = Ht(o);
782
+ return i && JSON.parse(i) || !1;
783
783
  } catch {
784
784
  return !1;
785
785
  }
786
- }, n.setSecurityParams = (o, l) => {
787
- Bt({ iterations: o, saltLength: l });
786
+ }, r.setSecurityParams = (o, i) => {
787
+ Tt({ iterations: o, saltLength: i });
788
788
  };
789
789
  })(ie || (ie = {}));
790
790
  var Je = {};
@@ -797,21 +797,21 @@ var Je = {};
797
797
  * This source code is licensed under the MIT license found in the
798
798
  * LICENSE file in the root directory of this source tree.
799
799
  */
800
- var It;
801
- function Xt() {
802
- if (It) return Je;
803
- It = 1;
804
- var n = P, o = Symbol.for("react.element"), l = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, m = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
805
- function j(k, d, x) {
806
- var p, R = {}, I = null, A = null;
807
- x !== void 0 && (I = "" + x), d.key !== void 0 && (I = "" + d.key), d.ref !== void 0 && (A = d.ref);
808
- for (p in d) u.call(d, p) && !y.hasOwnProperty(p) && (R[p] = d[p]);
809
- if (k && k.defaultProps) for (p in d = k.defaultProps, d) R[p] === void 0 && (R[p] = d[p]);
810
- return { $$typeof: o, type: k, key: I, ref: A, props: R, _owner: m.current };
800
+ var Bt;
801
+ function Kt() {
802
+ if (Bt) return Je;
803
+ Bt = 1;
804
+ var r = P, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, y = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, b = { key: !0, ref: !0, __self: !0, __source: !0 };
805
+ function w(_, v, S) {
806
+ var d, R = {}, C = null, N = null;
807
+ S !== void 0 && (C = "" + S), v.key !== void 0 && (C = "" + v.key), v.ref !== void 0 && (N = v.ref);
808
+ for (d in v) f.call(v, d) && !b.hasOwnProperty(d) && (R[d] = v[d]);
809
+ if (_ && _.defaultProps) for (d in v = _.defaultProps, v) R[d] === void 0 && (R[d] = v[d]);
810
+ return { $$typeof: o, type: _, key: C, ref: N, props: R, _owner: y.current };
811
811
  }
812
- return Je.Fragment = l, Je.jsx = j, Je.jsxs = j, Je;
812
+ return Je.Fragment = i, Je.jsx = w, Je.jsxs = w, Je;
813
813
  }
814
- var Ke = {};
814
+ var qe = {};
815
815
  /**
816
816
  * @license React
817
817
  * react-jsx-runtime.development.js
@@ -821,91 +821,91 @@ var Ke = {};
821
821
  * This source code is licensed under the MIT license found in the
822
822
  * LICENSE file in the root directory of this source tree.
823
823
  */
824
- var Ft;
825
- function Qt() {
826
- return Ft || (Ft = 1, process.env.NODE_ENV !== "production" && function() {
827
- var n = P, o = Symbol.for("react.element"), l = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), k = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), V = Symbol.iterator, _e = "@@iterator";
824
+ var It;
825
+ function Gt() {
826
+ return It || (It = 1, process.env.NODE_ENV !== "production" && function() {
827
+ var r = P, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), _ = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), ne = Symbol.iterator, _e = "@@iterator";
828
828
  function Re(e) {
829
829
  if (e === null || typeof e != "object")
830
830
  return null;
831
- var t = V && e[V] || e[_e];
831
+ var t = ne && e[ne] || e[_e];
832
832
  return typeof t == "function" ? t : null;
833
833
  }
834
- var N = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
835
- function S(e) {
834
+ var M = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
835
+ function E(e) {
836
836
  {
837
- for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
838
- r[a - 1] = arguments[a];
839
- ye("error", e, r);
837
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
838
+ n[a - 1] = arguments[a];
839
+ ge("error", e, n);
840
840
  }
841
841
  }
842
- function ye(e, t, r) {
842
+ function ge(e, t, n) {
843
843
  {
844
- var a = N.ReactDebugCurrentFrame, f = a.getStackAddendum();
845
- f !== "" && (t += "%s", r = r.concat([f]));
846
- var v = r.map(function(s) {
847
- return String(s);
844
+ var a = M.ReactDebugCurrentFrame, l = a.getStackAddendum();
845
+ l !== "" && (t += "%s", n = n.concat([l]));
846
+ var p = n.map(function(u) {
847
+ return String(u);
848
848
  });
849
- v.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, v);
849
+ p.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, p);
850
850
  }
851
851
  }
852
- var ke = !1, Ee = !1, h = !1, E = !1, F = !1, M;
853
- M = Symbol.for("react.module.reference");
854
- function U(e) {
855
- return !!(typeof e == "string" || typeof e == "function" || e === u || e === y || F || e === m || e === x || e === p || E || e === A || ke || Ee || h || typeof e == "object" && e !== null && (e.$$typeof === I || e.$$typeof === R || e.$$typeof === j || e.$$typeof === k || e.$$typeof === d || // This needs to include all possible module reference object
852
+ var ke = !1, Ee = !1, h = !1, k = !1, B = !1, F;
853
+ F = Symbol.for("react.module.reference");
854
+ function W(e) {
855
+ return !!(typeof e == "string" || typeof e == "function" || e === f || e === b || B || e === y || e === S || e === d || k || e === N || ke || Ee || h || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === R || e.$$typeof === w || e.$$typeof === _ || e.$$typeof === v || // This needs to include all possible module reference object
856
856
  // types supported by any Flight configuration anywhere since
857
857
  // we don't know which Flight build this will end up being used
858
858
  // with.
859
- e.$$typeof === M || e.getModuleId !== void 0));
859
+ e.$$typeof === F || e.getModuleId !== void 0));
860
860
  }
861
- function oe(e, t, r) {
861
+ function oe(e, t, n) {
862
862
  var a = e.displayName;
863
863
  if (a)
864
864
  return a;
865
- var f = t.displayName || t.name || "";
866
- return f !== "" ? r + "(" + f + ")" : r;
865
+ var l = t.displayName || t.name || "";
866
+ return l !== "" ? n + "(" + l + ")" : n;
867
867
  }
868
868
  function ae(e) {
869
869
  return e.displayName || "Context";
870
870
  }
871
- function B(e) {
871
+ function T(e) {
872
872
  if (e == null)
873
873
  return null;
874
- if (typeof e.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
874
+ if (typeof e.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
875
875
  return e.displayName || e.name || null;
876
876
  if (typeof e == "string")
877
877
  return e;
878
878
  switch (e) {
879
- case u:
879
+ case f:
880
880
  return "Fragment";
881
- case l:
881
+ case i:
882
882
  return "Portal";
883
- case y:
883
+ case b:
884
884
  return "Profiler";
885
- case m:
885
+ case y:
886
886
  return "StrictMode";
887
- case x:
887
+ case S:
888
888
  return "Suspense";
889
- case p:
889
+ case d:
890
890
  return "SuspenseList";
891
891
  }
892
892
  if (typeof e == "object")
893
893
  switch (e.$$typeof) {
894
- case k:
894
+ case _:
895
895
  var t = e;
896
896
  return ae(t) + ".Consumer";
897
- case j:
898
- var r = e;
899
- return ae(r._context) + ".Provider";
900
- case d:
897
+ case w:
898
+ var n = e;
899
+ return ae(n._context) + ".Provider";
900
+ case v:
901
901
  return oe(e, e.render, "ForwardRef");
902
902
  case R:
903
903
  var a = e.displayName || null;
904
- return a !== null ? a : B(e.type) || "Memo";
905
- case I: {
906
- var f = e, v = f._payload, s = f._init;
904
+ return a !== null ? a : T(e.type) || "Memo";
905
+ case C: {
906
+ var l = e, p = l._payload, u = l._init;
907
907
  try {
908
- return B(s(v));
908
+ return T(u(p));
909
909
  } catch {
910
910
  return null;
911
911
  }
@@ -913,18 +913,18 @@ function Qt() {
913
913
  }
914
914
  return null;
915
915
  }
916
- var D = Object.assign, $ = 0, q, K, G, Se, xe, Oe, Te;
917
- function Ce() {
916
+ var I = Object.assign, D = 0, z, J, q, Se, xe, Oe, we;
917
+ function je() {
918
918
  }
919
- Ce.__reactDisabledLog = !0;
920
- function Qe() {
919
+ je.__reactDisabledLog = !0;
920
+ function Xe() {
921
921
  {
922
- if ($ === 0) {
923
- q = console.log, K = console.info, G = console.warn, Se = console.error, xe = console.group, Oe = console.groupCollapsed, Te = console.groupEnd;
922
+ if (D === 0) {
923
+ z = console.log, J = console.info, q = console.warn, Se = console.error, xe = console.group, Oe = console.groupCollapsed, we = console.groupEnd;
924
924
  var e = {
925
925
  configurable: !0,
926
926
  enumerable: !0,
927
- value: Ce,
927
+ value: je,
928
928
  writable: !0
929
929
  };
930
930
  Object.defineProperties(console, {
@@ -937,320 +937,320 @@ function Qt() {
937
937
  groupEnd: e
938
938
  });
939
939
  }
940
- $++;
940
+ D++;
941
941
  }
942
942
  }
943
- function et() {
943
+ function Qe() {
944
944
  {
945
- if ($--, $ === 0) {
945
+ if (D--, D === 0) {
946
946
  var e = {
947
947
  configurable: !0,
948
948
  enumerable: !0,
949
949
  writable: !0
950
950
  };
951
951
  Object.defineProperties(console, {
952
- log: D({}, e, {
953
- value: q
952
+ log: I({}, e, {
953
+ value: z
954
954
  }),
955
- info: D({}, e, {
956
- value: K
955
+ info: I({}, e, {
956
+ value: J
957
957
  }),
958
- warn: D({}, e, {
959
- value: G
958
+ warn: I({}, e, {
959
+ value: q
960
960
  }),
961
- error: D({}, e, {
961
+ error: I({}, e, {
962
962
  value: Se
963
963
  }),
964
- group: D({}, e, {
964
+ group: I({}, e, {
965
965
  value: xe
966
966
  }),
967
- groupCollapsed: D({}, e, {
967
+ groupCollapsed: I({}, e, {
968
968
  value: Oe
969
969
  }),
970
- groupEnd: D({}, e, {
971
- value: Te
970
+ groupEnd: I({}, e, {
971
+ value: we
972
972
  })
973
973
  });
974
974
  }
975
- $ < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
975
+ D < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
976
976
  }
977
977
  }
978
- var se = N.ReactCurrentDispatcher, le;
979
- function H(e, t, r) {
978
+ var se = M.ReactCurrentDispatcher, ue;
979
+ function K(e, t, n) {
980
980
  {
981
- if (le === void 0)
981
+ if (ue === void 0)
982
982
  try {
983
983
  throw Error();
984
- } catch (f) {
985
- var a = f.stack.trim().match(/\n( *(at )?)/);
986
- le = a && a[1] || "";
984
+ } catch (l) {
985
+ var a = l.stack.trim().match(/\n( *(at )?)/);
986
+ ue = a && a[1] || "";
987
987
  }
988
988
  return `
989
- ` + le + e;
989
+ ` + ue + e;
990
990
  }
991
991
  }
992
- var ue = !1, X;
992
+ var le = !1, G;
993
993
  {
994
- var tt = typeof WeakMap == "function" ? WeakMap : Map;
995
- X = new tt();
994
+ var et = typeof WeakMap == "function" ? WeakMap : Map;
995
+ G = new et();
996
996
  }
997
- function je(e, t) {
998
- if (!e || ue)
997
+ function Ce(e, t) {
998
+ if (!e || le)
999
999
  return "";
1000
1000
  {
1001
- var r = X.get(e);
1002
- if (r !== void 0)
1003
- return r;
1001
+ var n = G.get(e);
1002
+ if (n !== void 0)
1003
+ return n;
1004
1004
  }
1005
1005
  var a;
1006
- ue = !0;
1007
- var f = Error.prepareStackTrace;
1006
+ le = !0;
1007
+ var l = Error.prepareStackTrace;
1008
1008
  Error.prepareStackTrace = void 0;
1009
- var v;
1010
- v = se.current, se.current = null, Qe();
1009
+ var p;
1010
+ p = se.current, se.current = null, Xe();
1011
1011
  try {
1012
1012
  if (t) {
1013
- var s = function() {
1013
+ var u = function() {
1014
1014
  throw Error();
1015
1015
  };
1016
- if (Object.defineProperty(s.prototype, "props", {
1016
+ if (Object.defineProperty(u.prototype, "props", {
1017
1017
  set: function() {
1018
1018
  throw Error();
1019
1019
  }
1020
1020
  }), typeof Reflect == "object" && Reflect.construct) {
1021
1021
  try {
1022
- Reflect.construct(s, []);
1023
- } catch (T) {
1024
- a = T;
1022
+ Reflect.construct(u, []);
1023
+ } catch (O) {
1024
+ a = O;
1025
1025
  }
1026
- Reflect.construct(e, [], s);
1026
+ Reflect.construct(e, [], u);
1027
1027
  } else {
1028
1028
  try {
1029
- s.call();
1030
- } catch (T) {
1031
- a = T;
1029
+ u.call();
1030
+ } catch (O) {
1031
+ a = O;
1032
1032
  }
1033
- e.call(s.prototype);
1033
+ e.call(u.prototype);
1034
1034
  }
1035
1035
  } else {
1036
1036
  try {
1037
1037
  throw Error();
1038
- } catch (T) {
1039
- a = T;
1038
+ } catch (O) {
1039
+ a = O;
1040
1040
  }
1041
1041
  e();
1042
1042
  }
1043
- } catch (T) {
1044
- if (T && a && typeof T.stack == "string") {
1045
- for (var i = T.stack.split(`
1046
- `), O = a.stack.split(`
1047
- `), b = i.length - 1, _ = O.length - 1; b >= 1 && _ >= 0 && i[b] !== O[_]; )
1048
- _--;
1049
- for (; b >= 1 && _ >= 0; b--, _--)
1050
- if (i[b] !== O[_]) {
1051
- if (b !== 1 || _ !== 1)
1043
+ } catch (O) {
1044
+ if (O && a && typeof O.stack == "string") {
1045
+ for (var s = O.stack.split(`
1046
+ `), x = a.stack.split(`
1047
+ `), g = s.length - 1, m = x.length - 1; g >= 1 && m >= 0 && s[g] !== x[m]; )
1048
+ m--;
1049
+ for (; g >= 1 && m >= 0; g--, m--)
1050
+ if (s[g] !== x[m]) {
1051
+ if (g !== 1 || m !== 1)
1052
1052
  do
1053
- if (b--, _--, _ < 0 || i[b] !== O[_]) {
1054
- var w = `
1055
- ` + i[b].replace(" at new ", " at ");
1056
- return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, w), w;
1053
+ if (g--, m--, m < 0 || s[g] !== x[m]) {
1054
+ var A = `
1055
+ ` + s[g].replace(" at new ", " at ");
1056
+ return e.displayName && A.includes("<anonymous>") && (A = A.replace("<anonymous>", e.displayName)), typeof e == "function" && G.set(e, A), A;
1057
1057
  }
1058
- while (b >= 1 && _ >= 0);
1058
+ while (g >= 1 && m >= 0);
1059
1059
  break;
1060
1060
  }
1061
1061
  }
1062
1062
  } finally {
1063
- ue = !1, se.current = v, et(), Error.prepareStackTrace = f;
1063
+ le = !1, se.current = p, Qe(), Error.prepareStackTrace = l;
1064
1064
  }
1065
- var W = e ? e.displayName || e.name : "", L = W ? H(W) : "";
1066
- return typeof e == "function" && X.set(e, L), L;
1065
+ var U = e ? e.displayName || e.name : "", $ = U ? K(U) : "";
1066
+ return typeof e == "function" && G.set(e, $), $;
1067
1067
  }
1068
- function rt(e, t, r) {
1069
- return je(e, !1);
1068
+ function tt(e, t, n) {
1069
+ return Ce(e, !1);
1070
1070
  }
1071
- function nt(e) {
1071
+ function rt(e) {
1072
1072
  var t = e.prototype;
1073
1073
  return !!(t && t.isReactComponent);
1074
1074
  }
1075
- function Q(e, t, r) {
1075
+ function Z(e, t, n) {
1076
1076
  if (e == null)
1077
1077
  return "";
1078
1078
  if (typeof e == "function")
1079
- return je(e, nt(e));
1079
+ return Ce(e, rt(e));
1080
1080
  if (typeof e == "string")
1081
- return H(e);
1081
+ return K(e);
1082
1082
  switch (e) {
1083
- case x:
1084
- return H("Suspense");
1085
- case p:
1086
- return H("SuspenseList");
1083
+ case S:
1084
+ return K("Suspense");
1085
+ case d:
1086
+ return K("SuspenseList");
1087
1087
  }
1088
1088
  if (typeof e == "object")
1089
1089
  switch (e.$$typeof) {
1090
- case d:
1091
- return rt(e.render);
1090
+ case v:
1091
+ return tt(e.render);
1092
1092
  case R:
1093
- return Q(e.type, t, r);
1094
- case I: {
1095
- var a = e, f = a._payload, v = a._init;
1093
+ return Z(e.type, t, n);
1094
+ case C: {
1095
+ var a = e, l = a._payload, p = a._init;
1096
1096
  try {
1097
- return Q(v(f), t, r);
1097
+ return Z(p(l), t, n);
1098
1098
  } catch {
1099
1099
  }
1100
1100
  }
1101
1101
  }
1102
1102
  return "";
1103
1103
  }
1104
- var z = Object.prototype.hasOwnProperty, we = {}, Pe = N.ReactDebugCurrentFrame;
1105
- function ee(e) {
1104
+ var Y = Object.prototype.hasOwnProperty, Ae = {}, Pe = M.ReactDebugCurrentFrame;
1105
+ function X(e) {
1106
1106
  if (e) {
1107
- var t = e._owner, r = Q(e.type, e._source, t ? t.type : null);
1108
- Pe.setExtraStackFrame(r);
1107
+ var t = e._owner, n = Z(e.type, e._source, t ? t.type : null);
1108
+ Pe.setExtraStackFrame(n);
1109
1109
  } else
1110
1110
  Pe.setExtraStackFrame(null);
1111
1111
  }
1112
- function ot(e, t, r, a, f) {
1112
+ function nt(e, t, n, a, l) {
1113
1113
  {
1114
- var v = Function.call.bind(z);
1115
- for (var s in e)
1116
- if (v(e, s)) {
1117
- var i = void 0;
1114
+ var p = Function.call.bind(Y);
1115
+ for (var u in e)
1116
+ if (p(e, u)) {
1117
+ var s = void 0;
1118
1118
  try {
1119
- if (typeof e[s] != "function") {
1120
- var O = Error((a || "React class") + ": " + r + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1121
- throw O.name = "Invariant Violation", O;
1119
+ if (typeof e[u] != "function") {
1120
+ var x = Error((a || "React class") + ": " + n + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1121
+ throw x.name = "Invariant Violation", x;
1122
1122
  }
1123
- i = e[s](t, s, a, r, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1124
- } catch (b) {
1125
- i = b;
1123
+ s = e[u](t, u, a, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1124
+ } catch (g) {
1125
+ s = g;
1126
1126
  }
1127
- i && !(i instanceof Error) && (ee(f), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", r, s, typeof i), ee(null)), i instanceof Error && !(i.message in we) && (we[i.message] = !0, ee(f), S("Failed %s type: %s", r, i.message), ee(null));
1127
+ s && !(s instanceof Error) && (X(l), E("%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).", a || "React class", n, u, typeof s), X(null)), s instanceof Error && !(s.message in Ae) && (Ae[s.message] = !0, X(l), E("Failed %s type: %s", n, s.message), X(null));
1128
1128
  }
1129
1129
  }
1130
1130
  }
1131
- var at = Array.isArray;
1131
+ var ot = Array.isArray;
1132
1132
  function ce(e) {
1133
- return at(e);
1133
+ return ot(e);
1134
1134
  }
1135
- function it(e) {
1135
+ function at(e) {
1136
1136
  {
1137
- var t = typeof Symbol == "function" && Symbol.toStringTag, r = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
1138
- return r;
1137
+ var t = typeof Symbol == "function" && Symbol.toStringTag, n = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
1138
+ return n;
1139
1139
  }
1140
1140
  }
1141
- function st(e) {
1141
+ function it(e) {
1142
1142
  try {
1143
- return Ae(e), !1;
1143
+ return Te(e), !1;
1144
1144
  } catch {
1145
1145
  return !0;
1146
1146
  }
1147
1147
  }
1148
- function Ae(e) {
1148
+ function Te(e) {
1149
1149
  return "" + e;
1150
1150
  }
1151
1151
  function Be(e) {
1152
- if (st(e))
1153
- return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", it(e)), Ae(e);
1152
+ if (it(e))
1153
+ return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", at(e)), Te(e);
1154
1154
  }
1155
- var Ie = N.ReactCurrentOwner, lt = {
1155
+ var Ie = M.ReactCurrentOwner, st = {
1156
1156
  key: !0,
1157
1157
  ref: !0,
1158
1158
  __self: !0,
1159
1159
  __source: !0
1160
1160
  }, Fe, De;
1161
1161
  function ut(e) {
1162
- if (z.call(e, "ref")) {
1162
+ if (Y.call(e, "ref")) {
1163
1163
  var t = Object.getOwnPropertyDescriptor(e, "ref").get;
1164
1164
  if (t && t.isReactWarning)
1165
1165
  return !1;
1166
1166
  }
1167
1167
  return e.ref !== void 0;
1168
1168
  }
1169
- function ct(e) {
1170
- if (z.call(e, "key")) {
1169
+ function lt(e) {
1170
+ if (Y.call(e, "key")) {
1171
1171
  var t = Object.getOwnPropertyDescriptor(e, "key").get;
1172
1172
  if (t && t.isReactWarning)
1173
1173
  return !1;
1174
1174
  }
1175
1175
  return e.key !== void 0;
1176
1176
  }
1177
- function ft(e, t) {
1177
+ function ct(e, t) {
1178
1178
  typeof e.ref == "string" && Ie.current;
1179
1179
  }
1180
- function dt(e, t) {
1180
+ function ft(e, t) {
1181
1181
  {
1182
- var r = function() {
1183
- Fe || (Fe = !0, S("%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)", t));
1182
+ var n = function() {
1183
+ Fe || (Fe = !0, E("%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)", t));
1184
1184
  };
1185
- r.isReactWarning = !0, Object.defineProperty(e, "key", {
1186
- get: r,
1185
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
1186
+ get: n,
1187
1187
  configurable: !0
1188
1188
  });
1189
1189
  }
1190
1190
  }
1191
- function pt(e, t) {
1191
+ function dt(e, t) {
1192
1192
  {
1193
- var r = function() {
1194
- De || (De = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
1193
+ var n = function() {
1194
+ De || (De = !0, E("%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)", t));
1195
1195
  };
1196
- r.isReactWarning = !0, Object.defineProperty(e, "ref", {
1197
- get: r,
1196
+ n.isReactWarning = !0, Object.defineProperty(e, "ref", {
1197
+ get: n,
1198
1198
  configurable: !0
1199
1199
  });
1200
1200
  }
1201
1201
  }
1202
- var vt = function(e, t, r, a, f, v, s) {
1203
- var i = {
1202
+ var pt = function(e, t, n, a, l, p, u) {
1203
+ var s = {
1204
1204
  // This tag allows us to uniquely identify this as a React Element
1205
1205
  $$typeof: o,
1206
1206
  // Built-in properties that belong on the element
1207
1207
  type: e,
1208
1208
  key: t,
1209
- ref: r,
1210
- props: s,
1209
+ ref: n,
1210
+ props: u,
1211
1211
  // Record the component responsible for creating this element.
1212
- _owner: v
1212
+ _owner: p
1213
1213
  };
1214
- return i._store = {}, Object.defineProperty(i._store, "validated", {
1214
+ return s._store = {}, Object.defineProperty(s._store, "validated", {
1215
1215
  configurable: !1,
1216
1216
  enumerable: !1,
1217
1217
  writable: !0,
1218
1218
  value: !1
1219
- }), Object.defineProperty(i, "_self", {
1219
+ }), Object.defineProperty(s, "_self", {
1220
1220
  configurable: !1,
1221
1221
  enumerable: !1,
1222
1222
  writable: !1,
1223
1223
  value: a
1224
- }), Object.defineProperty(i, "_source", {
1224
+ }), Object.defineProperty(s, "_source", {
1225
1225
  configurable: !1,
1226
1226
  enumerable: !1,
1227
1227
  writable: !1,
1228
- value: f
1229
- }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
1228
+ value: l
1229
+ }), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
1230
1230
  };
1231
- function gt(e, t, r, a, f) {
1231
+ function vt(e, t, n, a, l) {
1232
1232
  {
1233
- var v, s = {}, i = null, O = null;
1234
- r !== void 0 && (Be(r), i = "" + r), ct(t) && (Be(t.key), i = "" + t.key), ut(t) && (O = t.ref, ft(t));
1235
- for (v in t)
1236
- z.call(t, v) && !lt.hasOwnProperty(v) && (s[v] = t[v]);
1233
+ var p, u = {}, s = null, x = null;
1234
+ n !== void 0 && (Be(n), s = "" + n), lt(t) && (Be(t.key), s = "" + t.key), ut(t) && (x = t.ref, ct(t));
1235
+ for (p in t)
1236
+ Y.call(t, p) && !st.hasOwnProperty(p) && (u[p] = t[p]);
1237
1237
  if (e && e.defaultProps) {
1238
- var b = e.defaultProps;
1239
- for (v in b)
1240
- s[v] === void 0 && (s[v] = b[v]);
1238
+ var g = e.defaultProps;
1239
+ for (p in g)
1240
+ u[p] === void 0 && (u[p] = g[p]);
1241
1241
  }
1242
- if (i || O) {
1243
- var _ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
1244
- i && dt(s, _), O && pt(s, _);
1242
+ if (s || x) {
1243
+ var m = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
1244
+ s && ft(u, m), x && dt(u, m);
1245
1245
  }
1246
- return vt(e, i, O, f, a, Ie.current, s);
1246
+ return pt(e, s, x, l, a, Ie.current, u);
1247
1247
  }
1248
1248
  }
1249
- var fe = N.ReactCurrentOwner, Me = N.ReactDebugCurrentFrame;
1250
- function Y(e) {
1249
+ var fe = M.ReactCurrentOwner, Me = M.ReactDebugCurrentFrame;
1250
+ function L(e) {
1251
1251
  if (e) {
1252
- var t = e._owner, r = Q(e.type, e._source, t ? t.type : null);
1253
- Me.setExtraStackFrame(r);
1252
+ var t = e._owner, n = Z(e.type, e._source, t ? t.type : null);
1253
+ Me.setExtraStackFrame(n);
1254
1254
  } else
1255
1255
  Me.setExtraStackFrame(null);
1256
1256
  }
@@ -1262,7 +1262,7 @@ function Qt() {
1262
1262
  function $e() {
1263
1263
  {
1264
1264
  if (fe.current) {
1265
- var e = B(fe.current.type);
1265
+ var e = T(fe.current.type);
1266
1266
  if (e)
1267
1267
  return `
1268
1268
 
@@ -1271,369 +1271,369 @@ Check the render method of \`` + e + "`.";
1271
1271
  return "";
1272
1272
  }
1273
1273
  }
1274
- function mt(e) {
1274
+ function yt(e) {
1275
1275
  return "";
1276
1276
  }
1277
1277
  var Ne = {};
1278
- function yt(e) {
1278
+ function ht(e) {
1279
1279
  {
1280
1280
  var t = $e();
1281
1281
  if (!t) {
1282
- var r = typeof e == "string" ? e : e.displayName || e.name;
1283
- r && (t = `
1282
+ var n = typeof e == "string" ? e : e.displayName || e.name;
1283
+ n && (t = `
1284
1284
 
1285
- Check the top-level render call using <` + r + ">.");
1285
+ Check the top-level render call using <` + n + ">.");
1286
1286
  }
1287
1287
  return t;
1288
1288
  }
1289
1289
  }
1290
- function Le(e, t) {
1290
+ function We(e, t) {
1291
1291
  {
1292
1292
  if (!e._store || e._store.validated || e.key != null)
1293
1293
  return;
1294
1294
  e._store.validated = !0;
1295
- var r = yt(t);
1296
- if (Ne[r])
1295
+ var n = ht(t);
1296
+ if (Ne[n])
1297
1297
  return;
1298
- Ne[r] = !0;
1298
+ Ne[n] = !0;
1299
1299
  var a = "";
1300
- e && e._owner && e._owner !== fe.current && (a = " It was passed a child from " + B(e._owner.type) + "."), Y(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', r, a), Y(null);
1300
+ e && e._owner && e._owner !== fe.current && (a = " It was passed a child from " + T(e._owner.type) + "."), L(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, a), L(null);
1301
1301
  }
1302
1302
  }
1303
- function Ue(e, t) {
1303
+ function Le(e, t) {
1304
1304
  {
1305
1305
  if (typeof e != "object")
1306
1306
  return;
1307
1307
  if (ce(e))
1308
- for (var r = 0; r < e.length; r++) {
1309
- var a = e[r];
1310
- pe(a) && Le(a, t);
1308
+ for (var n = 0; n < e.length; n++) {
1309
+ var a = e[n];
1310
+ pe(a) && We(a, t);
1311
1311
  }
1312
1312
  else if (pe(e))
1313
1313
  e._store && (e._store.validated = !0);
1314
1314
  else if (e) {
1315
- var f = Re(e);
1316
- if (typeof f == "function" && f !== e.entries)
1317
- for (var v = f.call(e), s; !(s = v.next()).done; )
1318
- pe(s.value) && Le(s.value, t);
1315
+ var l = Re(e);
1316
+ if (typeof l == "function" && l !== e.entries)
1317
+ for (var p = l.call(e), u; !(u = p.next()).done; )
1318
+ pe(u.value) && We(u.value, t);
1319
1319
  }
1320
1320
  }
1321
1321
  }
1322
- function ht(e) {
1322
+ function gt(e) {
1323
1323
  {
1324
1324
  var t = e.type;
1325
1325
  if (t == null || typeof t == "string")
1326
1326
  return;
1327
- var r;
1327
+ var n;
1328
1328
  if (typeof t == "function")
1329
- r = t.propTypes;
1330
- else if (typeof t == "object" && (t.$$typeof === d || // Note: Memo only checks outer props here.
1329
+ n = t.propTypes;
1330
+ else if (typeof t == "object" && (t.$$typeof === v || // Note: Memo only checks outer props here.
1331
1331
  // Inner props are checked in the reconciler.
1332
1332
  t.$$typeof === R))
1333
- r = t.propTypes;
1333
+ n = t.propTypes;
1334
1334
  else
1335
1335
  return;
1336
- if (r) {
1337
- var a = B(t);
1338
- ot(r, e.props, "prop", a, e);
1336
+ if (n) {
1337
+ var a = T(t);
1338
+ nt(n, e.props, "prop", a, e);
1339
1339
  } else if (t.PropTypes !== void 0 && !de) {
1340
1340
  de = !0;
1341
- var f = B(t);
1342
- S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", f || "Unknown");
1341
+ var l = T(t);
1342
+ E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", l || "Unknown");
1343
1343
  }
1344
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1344
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1345
1345
  }
1346
1346
  }
1347
1347
  function bt(e) {
1348
1348
  {
1349
- for (var t = Object.keys(e.props), r = 0; r < t.length; r++) {
1350
- var a = t[r];
1349
+ for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
1350
+ var a = t[n];
1351
1351
  if (a !== "children" && a !== "key") {
1352
- Y(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), Y(null);
1352
+ L(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), L(null);
1353
1353
  break;
1354
1354
  }
1355
1355
  }
1356
- e.ref !== null && (Y(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
1356
+ e.ref !== null && (L(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), L(null));
1357
1357
  }
1358
1358
  }
1359
- var Ye = {};
1360
- function We(e, t, r, a, f, v) {
1359
+ var Ue = {};
1360
+ function Ye(e, t, n, a, l, p) {
1361
1361
  {
1362
- var s = U(e);
1363
- if (!s) {
1364
- var i = "";
1365
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).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.");
1366
- var O = mt();
1367
- O ? i += O : i += $e();
1368
- var b;
1369
- e === null ? b = "null" : ce(e) ? b = "array" : e !== void 0 && e.$$typeof === o ? (b = "<" + (B(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, i);
1362
+ var u = W(e);
1363
+ if (!u) {
1364
+ var s = "";
1365
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (s += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1366
+ var x = yt();
1367
+ x ? s += x : s += $e();
1368
+ var g;
1369
+ e === null ? g = "null" : ce(e) ? g = "array" : e !== void 0 && e.$$typeof === o ? (g = "<" + (T(e.type) || "Unknown") + " />", s = " Did you accidentally export a JSX literal instead of a component?") : g = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", g, s);
1370
1370
  }
1371
- var _ = gt(e, t, r, f, v);
1372
- if (_ == null)
1373
- return _;
1374
- if (s) {
1375
- var w = t.children;
1376
- if (w !== void 0)
1371
+ var m = vt(e, t, n, l, p);
1372
+ if (m == null)
1373
+ return m;
1374
+ if (u) {
1375
+ var A = t.children;
1376
+ if (A !== void 0)
1377
1377
  if (a)
1378
- if (ce(w)) {
1379
- for (var W = 0; W < w.length; W++)
1380
- Ue(w[W], e);
1381
- Object.freeze && Object.freeze(w);
1378
+ if (ce(A)) {
1379
+ for (var U = 0; U < A.length; U++)
1380
+ Le(A[U], e);
1381
+ Object.freeze && Object.freeze(A);
1382
1382
  } else
1383
- S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1383
+ E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1384
1384
  else
1385
- Ue(w, e);
1385
+ Le(A, e);
1386
1386
  }
1387
- if (z.call(t, "key")) {
1388
- var L = B(e), T = Object.keys(t).filter(function(xt) {
1389
- return xt !== "key";
1390
- }), ve = T.length > 0 ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}";
1391
- if (!Ye[L + ve]) {
1392
- var St = T.length > 0 ? "{" + T.join(": ..., ") + ": ...}" : "{}";
1393
- S(`A props object containing a "key" prop is being spread into JSX:
1387
+ if (Y.call(t, "key")) {
1388
+ var $ = T(e), O = Object.keys(t).filter(function(St) {
1389
+ return St !== "key";
1390
+ }), ve = O.length > 0 ? "{key: someKey, " + O.join(": ..., ") + ": ...}" : "{key: someKey}";
1391
+ if (!Ue[$ + ve]) {
1392
+ var Et = O.length > 0 ? "{" + O.join(": ..., ") + ": ...}" : "{}";
1393
+ E(`A props object containing a "key" prop is being spread into JSX:
1394
1394
  let props = %s;
1395
1395
  <%s {...props} />
1396
1396
  React keys must be passed directly to JSX without using spread:
1397
1397
  let props = %s;
1398
- <%s key={someKey} {...props} />`, ve, L, St, L), Ye[L + ve] = !0;
1398
+ <%s key={someKey} {...props} />`, ve, $, Et, $), Ue[$ + ve] = !0;
1399
1399
  }
1400
1400
  }
1401
- return e === u ? bt(_) : ht(_), _;
1401
+ return e === f ? bt(m) : gt(m), m;
1402
1402
  }
1403
1403
  }
1404
- function _t(e, t, r) {
1405
- return We(e, t, r, !0);
1404
+ function mt(e, t, n) {
1405
+ return Ye(e, t, n, !0);
1406
1406
  }
1407
- function Rt(e, t, r) {
1408
- return We(e, t, r, !1);
1407
+ function _t(e, t, n) {
1408
+ return Ye(e, t, n, !1);
1409
1409
  }
1410
- var kt = Rt, Et = _t;
1411
- Ke.Fragment = u, Ke.jsx = kt, Ke.jsxs = Et;
1412
- }()), Ke;
1410
+ var Rt = _t, kt = mt;
1411
+ qe.Fragment = f, qe.jsx = Rt, qe.jsxs = kt;
1412
+ }()), qe;
1413
1413
  }
1414
- process.env.NODE_ENV === "production" ? Xt() : Qt();
1415
- const er = "0.0.37", Yt = {
1416
- version: er
1417
- }, te = {}, wt = {
1414
+ process.env.NODE_ENV === "production" ? Kt() : Gt();
1415
+ const Zt = "0.0.37", Wt = {
1416
+ version: Zt
1417
+ }, Q = {}, Ct = {
1418
1418
  module: "",
1419
- v: Yt.version,
1419
+ v: Wt.version,
1420
1420
  page: "Main",
1421
1421
  auth: "Auth",
1422
1422
  STORAGE: "f",
1423
1423
  LISTENER: {}
1424
1424
  };
1425
- function me() {
1425
+ function he() {
1426
1426
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : {};
1427
1427
  }
1428
- me().elcrm || (me().elcrm = {});
1429
- Object.assign(me().elcrm, { router: Yt.version });
1430
- function re(n) {
1431
- const o = me();
1432
- o.ROUTER_PARAMS ? o.ROUTER_PARAMS = { ...o.ROUTER_PARAMS, ...n } : o.ROUTER_PARAMS = { ...wt, ...n };
1428
+ he().elcrm || (he().elcrm = {});
1429
+ Object.assign(he().elcrm, { router: Wt.version });
1430
+ function ee(r) {
1431
+ const o = he();
1432
+ o.ROUTER_PARAMS ? o.ROUTER_PARAMS = { ...o.ROUTER_PARAMS, ...r } : o.ROUTER_PARAMS = { ...Ct, ...r };
1433
1433
  }
1434
- function C() {
1435
- return me().ROUTER_PARAMS || wt;
1434
+ function j() {
1435
+ return he().ROUTER_PARAMS || Ct;
1436
1436
  }
1437
- function he(n) {
1438
- const o = me();
1437
+ function be(r) {
1438
+ const o = he();
1439
1439
  o.ROUTER_PARAMS ? o.ROUTER_PARAMS.LISTENER = {
1440
1440
  ...o.ROUTER_PARAMS.LISTENER,
1441
- ...n
1442
- } : o.ROUTER_PARAMS.LISTENER = { ...n };
1441
+ ...r
1442
+ } : o.ROUTER_PARAMS.LISTENER = { ...r };
1443
1443
  }
1444
- function ne() {
1445
- return me().ROUTER_PARAMS.LISTENER || wt.LISTENER;
1444
+ function te() {
1445
+ return he().ROUTER_PARAMS.LISTENER || Ct.LISTENER;
1446
1446
  }
1447
- var be;
1448
- ((n) => {
1447
+ var me;
1448
+ ((r) => {
1449
1449
  function o() {
1450
1450
  var h;
1451
- let E = sessionStorage.getItem("f");
1452
- if (E) {
1453
- if (E = ie.deCode(E), !E) return !1;
1454
- re({
1455
- id: E.id,
1456
- tab: E.tab,
1457
- page: E.page,
1458
- module: E.module,
1459
- time: E.time,
1451
+ let k = sessionStorage.getItem("f");
1452
+ if (k) {
1453
+ if (k = ie.deCode(k), !k) return !1;
1454
+ ee({
1455
+ id: k.id,
1456
+ tab: k.tab,
1457
+ page: k.page,
1458
+ module: k.module,
1459
+ time: k.time,
1460
1460
  payment: { active: !0 },
1461
- module_admin: E.module_admin
1461
+ module_admin: k.module_admin
1462
1462
  });
1463
1463
  } else
1464
- re({
1464
+ ee({
1465
1465
  id: 0,
1466
1466
  tab: "",
1467
- page: (h = localStorage.getItem("d")) != null && h.length ? C().page : C().auth,
1468
- module: C().module
1467
+ page: (h = localStorage.getItem("d")) != null && h.length ? j().page : j().auth,
1468
+ module: j().module
1469
1469
  });
1470
1470
  return !0;
1471
1471
  }
1472
- function l() {
1473
- te.id = 0, te.tab = "", te.page = C().page, te.module = C().module;
1472
+ function i() {
1473
+ Q.id = 0, Q.tab = "", Q.page = j().page, Q.module = j().module;
1474
1474
  }
1475
- n.Reset = l;
1476
- function u({
1477
- module: h = C().module,
1478
- page: E = C().page,
1479
- auth: F = C().auth
1475
+ r.Reset = i;
1476
+ function f({
1477
+ module: h = j().module,
1478
+ page: k = j().page,
1479
+ auth: B = j().auth
1480
1480
  }) {
1481
- re({ page: E, module: h, auth: F }), o();
1481
+ ee({ page: k, module: h, auth: B }), o();
1482
1482
  }
1483
- n.Default = u;
1484
- function m(h) {
1485
- let E = (U) => (re({ page: U }), U);
1486
- const [F, M] = P.useState(
1487
- j() || h && E(h) || C().page
1483
+ r.Default = f;
1484
+ function y(h) {
1485
+ let k = (W) => (ee({ page: W }), W);
1486
+ const [B, F] = P.useState(
1487
+ w() || h && k(h) || j().page
1488
1488
  );
1489
- return he({ page: (U) => {
1490
- M(U);
1491
- } }), F;
1489
+ return be({ page: (W) => {
1490
+ F(W);
1491
+ } }), B;
1492
1492
  }
1493
- n.usePage = m;
1494
- function y(h, E = !0, F = {}) {
1495
- re({ page: h, ...F }), sessionStorage.setItem(
1496
- C().STORAGE,
1497
- ie.enCode(C())
1498
- ), E && ne().page(h);
1493
+ r.usePage = y;
1494
+ function b(h, k = !0, B = {}) {
1495
+ ee({ page: h, ...B }), sessionStorage.setItem(
1496
+ j().STORAGE,
1497
+ ie.enCode(j())
1498
+ ), k && te().page(h);
1499
1499
  }
1500
- n.setPage = y;
1501
- function j() {
1502
- return C().page;
1500
+ r.setPage = b;
1501
+ function w() {
1502
+ return j().page;
1503
1503
  }
1504
- n.getPage = j;
1505
- function k(h) {
1506
- return C().page === h;
1504
+ r.getPage = w;
1505
+ function _(h) {
1506
+ return j().page === h;
1507
1507
  }
1508
- n.isPage = k;
1509
- function d(h, E) {
1510
- const [F, M] = P.useState(
1511
- p() || h || C().module
1508
+ r.isPage = _;
1509
+ function v(h, k) {
1510
+ const [B, F] = P.useState(
1511
+ d() || h || j().module
1512
1512
  );
1513
- return he({ module: M }), F;
1513
+ return be({ module: F }), B;
1514
1514
  }
1515
- n.useModule = d;
1516
- function x(h, E = !0) {
1517
- re({ module: h }), sessionStorage.setItem(
1518
- C().STORAGE,
1519
- ie.enCode(C())
1520
- ), E && ne().module(h);
1515
+ r.useModule = v;
1516
+ function S(h, k = !0) {
1517
+ ee({ module: h }), sessionStorage.setItem(
1518
+ j().STORAGE,
1519
+ ie.enCode(j())
1520
+ ), k && te().module(h);
1521
1521
  }
1522
- n.setModule = x;
1523
- function p() {
1524
- return C().module || "";
1522
+ r.setModule = S;
1523
+ function d() {
1524
+ return j().module || "";
1525
1525
  }
1526
- n.getModule = p;
1526
+ r.getModule = d;
1527
1527
  function R(h) {
1528
- return C().module === h;
1528
+ return j().module === h;
1529
1529
  }
1530
- n.isModule = R;
1531
- function I(h, E) {
1530
+ r.isModule = R;
1531
+ function C(h, k) {
1532
1532
  if (typeof h != "function") {
1533
- const [F, M] = P.useState(!E), [U, oe] = P.useState(h || V());
1534
- return he({ tabs: oe }), E && P.useEffect(() => {
1535
- M(!0);
1536
- }, []), [U, F];
1533
+ const [B, F] = P.useState(!k), [W, oe] = P.useState(h || ne());
1534
+ return be({ tabs: oe }), k && P.useEffect(() => {
1535
+ F(!0);
1536
+ }, []), [W, B];
1537
1537
  } else
1538
- he({ tabs: h });
1538
+ be({ tabs: h });
1539
1539
  }
1540
- n.useTabs = I;
1541
- async function A(h, E = !0) {
1542
- re({ tab: h }), sessionStorage.setItem(
1543
- C().STORAGE,
1544
- ie.enCode(C())
1545
- ), E && (ne().tabs && ne().tabs(h));
1540
+ r.useTabs = C;
1541
+ async function N(h, k = !0) {
1542
+ ee({ tab: h }), sessionStorage.setItem(
1543
+ j().STORAGE,
1544
+ ie.enCode(j())
1545
+ ), k && (te().tabs && te().tabs(h));
1546
1546
  }
1547
- n.setTabs = A;
1548
- function V() {
1549
- return C().tab;
1547
+ r.setTabs = N;
1548
+ function ne() {
1549
+ return j().tab;
1550
1550
  }
1551
- n.getTabs = V;
1551
+ r.getTabs = ne;
1552
1552
  function _e(h) {
1553
- return C().tab === h;
1553
+ return j().tab === h;
1554
1554
  }
1555
- n.isTabs = _e;
1555
+ r.isTabs = _e;
1556
1556
  function Re(h) {
1557
1557
  if (typeof h != "function") {
1558
- const [E, F] = P.useState(h || ye());
1559
- return he({ id: (M) => {
1560
- F(M);
1561
- } }), E;
1558
+ const [k, B] = P.useState(h || ge());
1559
+ return be({ id: (F) => {
1560
+ B(F);
1561
+ } }), k;
1562
1562
  } else
1563
- he({ id: h });
1563
+ be({ id: h });
1564
1564
  }
1565
- n.useId = Re;
1566
- function N(h) {
1565
+ r.useId = Re;
1566
+ function M(h) {
1567
1567
  }
1568
- n.subId = N;
1569
- async function S(h, E = !0) {
1570
- re({ id: h }), sessionStorage.setItem(
1571
- C().STORAGE,
1572
- ie.enCode(C())
1573
- ), E && ne().id(h);
1568
+ r.subId = M;
1569
+ async function E(h, k = !0) {
1570
+ ee({ id: h }), sessionStorage.setItem(
1571
+ j().STORAGE,
1572
+ ie.enCode(j())
1573
+ ), k && te().id(h);
1574
1574
  }
1575
- n.setId = S;
1576
- function ye() {
1577
- return C().id;
1575
+ r.setId = E;
1576
+ function ge() {
1577
+ return j().id;
1578
1578
  }
1579
- n.getId = ye;
1579
+ r.getId = ge;
1580
1580
  function ke(h) {
1581
- return Number(C().id) === h;
1581
+ return Number(j().id) === h;
1582
1582
  }
1583
- n.isId = ke;
1583
+ r.isId = ke;
1584
1584
  async function Ee(h) {
1585
- var E, F, M, U, oe, ae, B, D;
1586
- const { page: $, module: q, tab: K, id: G } = h;
1587
- $ !== void 0 && (te.page = $), q !== void 0 && (te.module = q), K !== void 0 && (te.tab = K), G !== void 0 && (te.id = G), re({ ...te }), G !== void 0 && ((F = (E = ne()).id) == null || F.call(E, G)), K !== void 0 && ((U = (M = ne()).tabs) == null || U.call(M, K)), q !== void 0 && ((ae = (oe = ne()).module) == null || ae.call(oe, q)), $ !== void 0 && ((D = (B = ne()).page) == null || D.call(B, $)), sessionStorage.setItem(
1588
- C().STORAGE,
1589
- ie.enCode(C())
1585
+ var k, B, F, W, oe, ae, T, I;
1586
+ const { page: D, module: z, tab: J, id: q } = h;
1587
+ D !== void 0 && (Q.page = D), z !== void 0 && (Q.module = z), J !== void 0 && (Q.tab = J), q !== void 0 && (Q.id = q), ee({ ...Q }), q !== void 0 && ((B = (k = te()).id) == null || B.call(k, q)), J !== void 0 && ((W = (F = te()).tabs) == null || W.call(F, J)), z !== void 0 && ((ae = (oe = te()).module) == null || ae.call(oe, z)), D !== void 0 && ((I = (T = te()).page) == null || I.call(T, D)), sessionStorage.setItem(
1588
+ j().STORAGE,
1589
+ ie.enCode(j())
1590
1590
  );
1591
1591
  }
1592
- n.navigate = Ee;
1593
- })(be || (be = {}));
1594
- let He = {};
1595
- function tr() {
1596
- const [n, o] = P.useState([]);
1597
- return He.set = (l) => {
1598
- o([...n, l]);
1599
- }, He.del = (l) => {
1600
- n.forEach((u, m) => {
1601
- u.key === l && n.splice(m, 1);
1602
- }), o(n);
1603
- }, n.length === 0 ? /* @__PURE__ */ c.jsx(c.Fragment, {}) : /* @__PURE__ */ c.jsx("div", { className: "notice", children: n.map((l) => l.item) });
1592
+ r.navigate = Ee;
1593
+ })(me || (me = {}));
1594
+ let Ge = {};
1595
+ function Xt() {
1596
+ const [r, o] = P.useState([]);
1597
+ return Ge.set = (i) => {
1598
+ o([...r, i]);
1599
+ }, Ge.del = (i) => {
1600
+ r.forEach((f, y) => {
1601
+ f.key === i && r.splice(y, 1);
1602
+ }), o(r);
1603
+ }, r.length === 0 ? /* @__PURE__ */ c.jsx(c.Fragment, {}) : /* @__PURE__ */ c.jsx("div", { className: "notice", children: r.map((i) => i.item) });
1604
1604
  }
1605
- function rr(n) {
1605
+ function Qt(r) {
1606
1606
  let o = (/* @__PURE__ */ new Date()).getTime();
1607
- n.key = o, He.set({ item: /* @__PURE__ */ c.jsx(nr, { data: n }, o), key: o });
1607
+ r.key = o, Ge.set({ item: /* @__PURE__ */ c.jsx(er, { data: r }, o), key: o });
1608
1608
  }
1609
- function nr(n) {
1610
- const o = n.data;
1611
- let [l] = P.useState("show"), [u, m] = P.useState(!1);
1609
+ function er(r) {
1610
+ const o = r.data;
1611
+ let [i] = P.useState("show"), [f, y] = P.useState(!1);
1612
1612
  P.useEffect(() => {
1613
1613
  setTimeout(function() {
1614
- m(!0), He.del(o.key);
1614
+ y(!0), Ge.del(o.key);
1615
1615
  }, 5e3);
1616
1616
  }, [o.key]);
1617
- let y;
1617
+ let b;
1618
1618
  switch (o.type) {
1619
1619
  case "error":
1620
- y = /* @__PURE__ */ c.jsx("path", { d: "M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z" });
1620
+ b = /* @__PURE__ */ c.jsx("path", { d: "M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z" });
1621
1621
  break;
1622
1622
  case "success":
1623
- y = /* @__PURE__ */ c.jsx("path", { d: "M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z" });
1623
+ b = /* @__PURE__ */ c.jsx("path", { d: "M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z" });
1624
1624
  break;
1625
1625
  case "warning":
1626
- y = /* @__PURE__ */ c.jsx("path", { d: "M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z" });
1626
+ b = /* @__PURE__ */ c.jsx("path", { d: "M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z" });
1627
1627
  break;
1628
1628
  default:
1629
- y = "icon fa fa-exclamation-circle";
1629
+ b = "icon fa fa-exclamation-circle";
1630
1630
  break;
1631
1631
  }
1632
- return /* @__PURE__ */ c.jsx(c.Fragment, { children: u ? /* @__PURE__ */ c.jsx(c.Fragment, {}) : /* @__PURE__ */ c.jsxs(
1632
+ return /* @__PURE__ */ c.jsx(c.Fragment, { children: f ? /* @__PURE__ */ c.jsx(c.Fragment, {}) : /* @__PURE__ */ c.jsxs(
1633
1633
  "div",
1634
1634
  {
1635
1635
  className: "item " + o.type + ` ${o.thema !== void 0 ? " thema" : ""}`,
1636
- "data-status": l,
1636
+ "data-status": i,
1637
1637
  children: [
1638
1638
  /* @__PURE__ */ c.jsx(
1639
1639
  "svg",
@@ -1645,7 +1645,7 @@ function nr(n) {
1645
1645
  width: "24",
1646
1646
  height: "24",
1647
1647
  viewBox: "0 0 24 24",
1648
- children: y
1648
+ children: b
1649
1649
  }
1650
1650
  ),
1651
1651
  /* @__PURE__ */ c.jsx("span", { className: "text", children: o.text })
@@ -1653,88 +1653,48 @@ function nr(n) {
1653
1653
  }
1654
1654
  ) });
1655
1655
  }
1656
- let Xe = {
1657
- Send: rr,
1658
- Init: tr
1659
- }, qe = () => {
1656
+ let Ze = {
1657
+ Send: Qt,
1658
+ Init: Xt
1659
+ }, tr = () => {
1660
1660
  };
1661
- const or = ({
1662
- children: n,
1663
- title: o,
1664
- isOverlay: l = !0
1665
- }) => {
1666
- const [u, m] = P.useState(!1);
1667
- return qe = () => {
1668
- m(!0), setTimeout(() => {
1669
- Wt.onClose();
1670
- }, 300);
1671
- }, /* @__PURE__ */ c.jsx(
1672
- "div",
1673
- {
1674
- className: `footer-menu-overlay ${l ? "is-overlay" : ""} ${u ? "closing" : ""}`,
1675
- onClick: qe,
1676
- children: /* @__PURE__ */ c.jsxs(
1677
- "div",
1678
- {
1679
- className: `footer-menu-popup-book ${u ? "closing" : ""}`,
1680
- onClick: (y) => y.stopPropagation(),
1681
- children: [
1682
- /* @__PURE__ */ c.jsxs("div", { className: "footer-menu-header", children: [
1683
- /* @__PURE__ */ c.jsx("h3", { children: o }),
1684
- /* @__PURE__ */ c.jsx(
1685
- "button",
1686
- {
1687
- className: "footer-menu-close-btn",
1688
- onClick: qe,
1689
- children: "✕"
1690
- }
1691
- )
1692
- ] }),
1693
- n
1694
- ]
1695
- }
1696
- )
1697
- }
1698
- );
1699
- }, ar = "_h_rl5ga_1", ir = "_row_rl5ga_14", sr = "_column_rl5ga_17", Dt = {
1700
- h: ar,
1701
- row: ir,
1702
- column: sr
1703
- }, Wt = [], Mt = (n, o) => n.findIndex((l) => (l == null ? void 0 : l.page) === o), lr = ({
1704
- actions: n,
1661
+ const rr = "_h_rl5ga_1", nr = "_row_rl5ga_14", or = "_column_rl5ga_17", Ft = {
1662
+ h: rr,
1663
+ row: nr,
1664
+ column: or
1665
+ }, ar = (r, o) => r.findIndex((i) => (i == null ? void 0 : i.page) === o), ir = ({
1666
+ actions: r,
1705
1667
  children: o,
1706
- className: l,
1707
- page: u,
1708
- setPage: m,
1709
- direction: y = "row"
1668
+ className: i,
1669
+ page: f,
1670
+ setPage: y,
1671
+ direction: b = "row"
1710
1672
  }) => {
1711
- const [j, k] = P.useState(null), [d, x] = P.useState(
1712
- u ? Mt(n || [], u) : 0
1673
+ const [w, _] = P.useState(null), [v, S] = P.useState(
1674
+ f ? ar(r || [], f) : 0
1713
1675
  );
1714
- return Wt.onClose = () => {
1715
- k(null), x(u ? Mt(n || [], u) : 0);
1716
- }, Tt(() => {
1676
+ return Ot(() => {
1717
1677
  document.addEventListener("blur", () => {
1718
1678
  document.querySelector("footer").style.display = "flex";
1719
1679
  }), document.addEventListener("focus", () => {
1720
1680
  document.querySelector("footer").style.display = "none";
1721
1681
  });
1722
1682
  }, []), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
1723
- j,
1683
+ w,
1724
1684
  /* @__PURE__ */ c.jsxs(
1725
1685
  "footer",
1726
1686
  {
1727
- className: `${Dt.h} ${Dt[y]} ${l} `,
1687
+ className: `${Ft.h} ${Ft[b]} ${i} `,
1728
1688
  children: [
1729
1689
  o,
1730
- n && n.map((p, R) => /* @__PURE__ */ c.jsx(
1690
+ r && r.map((d, R) => /* @__PURE__ */ c.jsx(
1731
1691
  "div",
1732
1692
  {
1733
- "data-active": d === R ? "true" : "false",
1693
+ "data-active": v === R ? "true" : "false",
1734
1694
  onClick: () => {
1735
- p.page && (x(R), m == null || m(p.page)), p.callback && (p.callback(), x(R)), p.component && (d === R ? qe() : (k(p.component), x(R)));
1695
+ d.page && (S(R), y == null || y(d.page)), d.callback && (d.callback(), S(R)), d.component && (v === R || (_(d.component), S(R)));
1736
1696
  },
1737
- children: p.icon
1697
+ children: d.icon
1738
1698
  },
1739
1699
  R
1740
1700
  ))
@@ -1742,9 +1702,9 @@ const or = ({
1742
1702
  }
1743
1703
  )
1744
1704
  ] });
1745
- }, g = window.Telegram.WebApp, ge = { is: !1, MainButton: {}, BackButton: {} };
1746
- let J = {};
1747
- J.dark = {
1705
+ }, ye = { is: !1, MainButton: {}, BackButton: {} };
1706
+ let V = {};
1707
+ V.dark = {
1748
1708
  "--tg-theme-subtitle-text-color": "#98989e",
1749
1709
  "--tg-theme-destructive-text-color": "#e53935",
1750
1710
  "--tg-theme-section-separator-color": "#545458",
@@ -1761,7 +1721,7 @@ J.dark = {
1761
1721
  "--tg-theme-text-color": "#ffffff",
1762
1722
  "--tg-theme-section-bg-color": "#2c2c2e"
1763
1723
  };
1764
- J.light = {
1724
+ V.light = {
1765
1725
  "--tg-theme-subtitle-text-color": "#8e8e93",
1766
1726
  "--tg-theme-destructive-text-color": "#ff3b30",
1767
1727
  "--tg-theme-section-separator-color": "#c8c7cc",
@@ -1778,7 +1738,7 @@ J.light = {
1778
1738
  "--tg-theme-text-color": "#000000",
1779
1739
  "--tg-theme-section-bg-color": "#ffffff"
1780
1740
  };
1781
- J.users = {
1741
+ V.users = {
1782
1742
  "--tg-theme-bg-color": "#000000",
1783
1743
  "--tg-theme-text-color": "#ffffff",
1784
1744
  "--tg-theme-hint-color": "#98989e",
@@ -1787,85 +1747,56 @@ J.users = {
1787
1747
  "--tg-theme-button-text-color": "#000000",
1788
1748
  "--tg-theme-secondary-bg-color": "#000000"
1789
1749
  };
1790
- g.getUser = () => {
1791
- var n;
1792
- return ((n = g.initDataUnsafe) == null ? void 0 : n.user) === void 0 ? {} : g.initDataUnsafe;
1793
- };
1794
- g.Notice = (n, o, l) => {
1795
- var u, m;
1796
- o !== void 0 ? (Xe.Send({ type: n, text: o, thema: l }), (u = g.HapticFeedback) == null || u.notificationOccurred(n)) : (Xe.Send(n), (m = g.HapticFeedback) == null || m.notificationOccurred(n.type));
1797
- };
1798
- g.MainButton.callback = [];
1799
- g.MainButton.set = (n) => {
1800
- ge.is ? ge.MainButton.set(n) : (g.MainButton.callback.forEach((o) => {
1801
- g.MainButton.offClick(o);
1802
- }), g.MainButton.callback = [], typeof n == "boolean" ? g.MainButton.isVisible = !1 : (g.MainButton.text = n.text, n.color && (g.MainButton.color = n.color), n.textColor && (g.MainButton.textColor = n.textColor), g.MainButton.isVisible = !0, g.MainButton.isActive = n.isActive === void 0 ? !0 : n.isActive, g.MainButton.callback.push(() => {
1803
- var o;
1804
- n.page === void 0 ? (o = n.callback) == null || o.call(n) : be.setPage(n.page);
1805
- }), g.MainButton.onClick(g.MainButton.callback[0])));
1806
- };
1807
- g.BackButton.state = [!1];
1808
- g.BackButton.listen = [];
1809
- g.BackButton.router = (n) => {
1810
- n === !1 ? (g.BackButton.isVisible = !1, g.BackButton.offClick(g.BackButton.listen[0]), g.BackButton.listen.shift(), g.BackButton.state.length !== 1 && g.BackButton.state.pop()) : (g.BackButton.isVisible = !0, g.BackButton.offClick(g.BackButton.listen[0]), g.BackButton.listen.shift(), g.BackButton.listen.push(() => {
1811
- var l;
1812
- let o = g.BackButton.state.pop();
1813
- o.page !== void 0 ? be.setPage(o.page) : (l = o.callback) == null || l.call(o);
1814
- }), g.BackButton.onClick(g.BackButton.listen[0]));
1815
- };
1816
- g.BackButton.set = (n) => {
1817
- ge.is ? ge.BackButton.set(n) : (g.BackButton.state.push(n), g.BackButton.router(n));
1818
- };
1819
- g.Header = ({ dev: n }) => {
1820
- if (n) {
1821
- let [o, l] = P.useState(!1), [u, m] = P.useState(!1), [y, j] = P.useState("dark"), [k, d] = P.useState(!1), [x, p] = P.useState(!1);
1822
- ge.is = !0, ge.MainButton.set = l, ge.BackButton.set = m, P.useEffect(() => {
1823
- J[y]["--tg-theme-bg-color-alpha"] = J[y]["--tg-theme-bg-color"] + "b3", J[y]["--tg-theme-secondary-bg-color-alpha"] = J[y]["--tg-theme-secondary-bg-color"] + "d3";
1824
- for (let A in J[y])
1750
+ const sr = () => {
1751
+ if (location.hostname === "localhost") {
1752
+ let [r, o] = P.useState(!1), [i, f] = P.useState(!1), [y, b] = P.useState("dark"), [w, _] = P.useState(!1), [v, S] = P.useState(!1);
1753
+ ye.is = !0, ye.MainButton.set = o, ye.BackButton.set = f, P.useEffect(() => {
1754
+ V[y]["--tg-theme-bg-color-alpha"] = V[y]["--tg-theme-bg-color"] + "b3", V[y]["--tg-theme-secondary-bg-color-alpha"] = V[y]["--tg-theme-secondary-bg-color"] + "d3";
1755
+ for (let C in V[y])
1825
1756
  document.documentElement.style.setProperty(
1826
- A,
1827
- J[y][A]
1757
+ C,
1758
+ V[y][C]
1828
1759
  );
1829
- g.safeAreaInset.bottom === 0 && document.documentElement.style.setProperty(
1760
+ re.WebApp.safeAreaInset.bottom === 0 && document.documentElement.style.setProperty(
1830
1761
  "--tg-safe-area-inset-bottom",
1831
1762
  "16px"
1832
1763
  );
1833
1764
  }, []);
1834
- let R = (A) => {
1835
- for (let V in J[A])
1836
- document.documentElement.style.setProperty(V, J[A][V]);
1837
- j(A), d(!1);
1838
- }, I = () => {
1839
- d(!1), p(!0);
1765
+ let d = (C) => {
1766
+ for (let N in V[C])
1767
+ document.documentElement.style.setProperty(N, V[C][N]);
1768
+ b(C), _(!1);
1769
+ }, R = () => {
1770
+ _(!1), S(!0);
1840
1771
  };
1841
1772
  return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
1842
1773
  /* @__PURE__ */ c.jsxs("header", { className: "debug", children: [
1843
- u === !1 ? /* @__PURE__ */ c.jsx("div", { className: "b", children: "Отмена" }) : /* @__PURE__ */ c.jsx(
1774
+ i === !1 ? /* @__PURE__ */ c.jsx("div", { className: "b", children: "Отмена" }) : /* @__PURE__ */ c.jsx(
1844
1775
  "div",
1845
1776
  {
1846
1777
  onClick: () => {
1847
- var A;
1848
- u.page === void 0 ? (A = u.callback) == null || A.call(u) : be.setPage(u.page);
1778
+ var C;
1779
+ i.page === void 0 ? (C = i.callback) == null || C.call(i) : me.setPage(i.page);
1849
1780
  },
1850
1781
  className: "b",
1851
1782
  children: "Назад"
1852
1783
  }
1853
1784
  ),
1854
- /* @__PURE__ */ c.jsx("div", { className: "o", onClick: () => d(!k), children: "Меню" })
1785
+ /* @__PURE__ */ c.jsx("div", { className: "o", onClick: () => _(!w), children: "Меню" })
1855
1786
  ] }),
1856
- /* @__PURE__ */ c.jsx(Xe.Init, {}),
1857
- o && /* @__PURE__ */ c.jsx("div", { className: "mb", children: /* @__PURE__ */ c.jsx(
1787
+ /* @__PURE__ */ c.jsx(Ze.Init, {}),
1788
+ r && /* @__PURE__ */ c.jsx("div", { className: "mb", children: /* @__PURE__ */ c.jsx(
1858
1789
  "button",
1859
1790
  {
1860
1791
  onClick: () => {
1861
- o.page && be.setPage(o.page), o.callback && o.callback();
1792
+ r.page && me.setPage(r.page), r.callback && r.callback();
1862
1793
  },
1863
- children: o.text
1794
+ children: r.text
1864
1795
  }
1865
1796
  ) }),
1866
- k ? /* @__PURE__ */ c.jsxs("div", { className: "tm", children: [
1797
+ w ? /* @__PURE__ */ c.jsxs("div", { className: "tm", children: [
1867
1798
  /* @__PURE__ */ c.jsxs("ul", { children: [
1868
- /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx("button", { onClick: I, children: "Authorization" }) }),
1799
+ /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx("button", { onClick: R, children: "Authorization" }) }),
1869
1800
  /* @__PURE__ */ c.jsx("li", {})
1870
1801
  ] }),
1871
1802
  /* @__PURE__ */ c.jsxs("ul", { children: [
@@ -1875,59 +1806,108 @@ g.Header = ({ dev: n }) => {
1875
1806
  /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(
1876
1807
  "button",
1877
1808
  {
1878
- onClick: () => R("dark"),
1809
+ onClick: () => d("dark"),
1879
1810
  children: "Dark"
1880
1811
  }
1881
1812
  ) }),
1882
1813
  /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(
1883
1814
  "button",
1884
1815
  {
1885
- onClick: () => R("light"),
1816
+ onClick: () => d("light"),
1886
1817
  children: "Light"
1887
1818
  }
1888
1819
  ) }),
1889
1820
  /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(
1890
1821
  "button",
1891
1822
  {
1892
- onClick: () => R("users"),
1823
+ onClick: () => d("users"),
1893
1824
  children: "Users"
1894
1825
  }
1895
1826
  ) })
1896
1827
  ] })
1897
1828
  ] }),
1898
- /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx("button", { onClick: () => d(!k), children: "Closed" }) })
1829
+ /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx("button", { onClick: () => _(!w), children: "Closed" }) })
1899
1830
  ] })
1900
1831
  ] }) : "",
1901
- x ? /* @__PURE__ */ c.jsx(ur, { setAuthorization: p }) : ""
1832
+ v ? /* @__PURE__ */ c.jsx(ur, { setAuthorization: S }) : ""
1902
1833
  ] });
1903
1834
  } else
1904
1835
  return P.useEffect(() => {
1905
1836
  document.documentElement.style.setProperty(
1906
1837
  "--tg-theme-secondary-bg-color-alpha",
1907
- g.themeParams.secondary_bg_color + "d3"
1838
+ re.WebApp.themeParams.secondary_bg_color + "d3"
1908
1839
  ), document.documentElement.style.setProperty(
1909
1840
  "--tg-theme-bg-color-alpha",
1910
- g.themeParams.bg_color + "b3"
1911
- ), g.safeAreaInset.bottom === 0 && document.documentElement.style.setProperty(
1841
+ re.WebApp.themeParams.bg_color + "b3"
1842
+ ), re.WebApp.safeAreaInset.bottom === 0 && document.documentElement.style.setProperty(
1912
1843
  "--tg-safe-area-inset-bottom",
1913
1844
  "16px"
1914
1845
  );
1915
- }, []), /* @__PURE__ */ c.jsx(c.Fragment, { children: /* @__PURE__ */ c.jsx(Xe.Init, {}) });
1846
+ }, []), /* @__PURE__ */ c.jsx(c.Fragment, { children: /* @__PURE__ */ c.jsx(Ze.Init, {}) });
1916
1847
  };
1917
- g.Modal = jt;
1918
- g.Footer = lr;
1919
- g.FooterMenu = or;
1920
- g.toggleFooterMenu = qe;
1921
- const ur = ({ setAuthorization: n }) => {
1922
- let o = {}, l = () => {
1848
+ var re;
1849
+ ((r) => {
1850
+ r.WebApp = window.Telegram.WebApp, r.getUser = () => {
1851
+ var o;
1852
+ return ((o = r.WebApp.initDataUnsafe) == null ? void 0 : o.user) === void 0 ? {} : r.WebApp.initDataUnsafe;
1853
+ }, r.Notice = (o, i, f) => {
1854
+ var y, b;
1855
+ i !== void 0 ? (Ze.Send({ type: o, text: i, thema: f }), (y = r.WebApp.HapticFeedback) == null || y.notificationOccurred(o)) : (Ze.Send(o), (b = r.WebApp.HapticFeedback) == null || b.notificationOccurred(o.type));
1856
+ }, r.Header = sr, r.Footer = ir, r.toggleFooterMenu = tr, r.Modal = jt, r.MainButton = {
1857
+ callback: [],
1858
+ set: (o) => {
1859
+ ye.is ? ye.MainButton.set(o) : (r.WebApp.MainButton.callback.forEach((i) => {
1860
+ r.WebApp.MainButton.offClick(i);
1861
+ }), r.WebApp.MainButton.callback = [], typeof o == "boolean" ? r.WebApp.MainButton.isVisible = !1 : (r.WebApp.MainButton.text = o.text, o.color && (r.WebApp.MainButton.color = o.color), o.textColor && (r.WebApp.MainButton.textColor = o.textColor), r.WebApp.MainButton.isVisible = !0, r.WebApp.MainButton.isActive = o.isActive === void 0 ? !0 : o.isActive, r.WebApp.MainButton.callback.push(() => {
1862
+ var i;
1863
+ o.page === void 0 ? (i = o.callback) == null || i.call(o) : me.setPage(o.page);
1864
+ }), r.WebApp.MainButton.onClick(
1865
+ r.WebApp.MainButton.callback[0]
1866
+ )));
1867
+ }
1868
+ }, r.BackButton = {
1869
+ state: [!1],
1870
+ listen: [],
1871
+ router: (o) => {
1872
+ o === !1 ? (r.WebApp.BackButton.isVisible = !1, r.WebApp.BackButton.offClick(
1873
+ r.BackButton.listen[0]
1874
+ ), r.BackButton.listen.shift(), r.WebApp.BackButton.state.length !== 1 && r.WebApp.BackButton.state.pop()) : (r.WebApp.BackButton.isVisible = !0, r.WebApp.BackButton.offClick(
1875
+ r.BackButton.listen[0]
1876
+ ), r.BackButton.listen.shift(), r.BackButton.listen.push(() => {
1877
+ var f;
1878
+ let i = r.WebApp.BackButton.state.pop();
1879
+ i.page !== void 0 ? me.setPage(i.page) : (f = i.callback) == null || f.call(i);
1880
+ }), r.WebApp.BackButton.onClick(
1881
+ r.BackButton.listen[0]
1882
+ ));
1883
+ },
1884
+ set: (o) => {
1885
+ ye.is ? ye.BackButton.set(o) : (r.BackButton.state.push(o), r.BackButton.router(o));
1886
+ }
1887
+ };
1888
+ })(re || (re = {}));
1889
+ const ur = ({ setAuthorization: r }) => {
1890
+ let o = {}, i = () => {
1923
1891
  localStorage.setItem("auth", o);
1924
1892
  };
1925
1893
  return /* @__PURE__ */ c.jsx("div", { className: "ta", children: /* @__PURE__ */ c.jsxs("div", { className: "--body", children: [
1926
1894
  /* @__PURE__ */ c.jsx("fieldset", {}),
1927
- /* @__PURE__ */ c.jsx("div", { onClick: l, children: " Сохранить " })
1895
+ /* @__PURE__ */ c.jsx("div", { onClick: i, children: " Сохранить " })
1928
1896
  ] }) });
1929
- };
1897
+ }, {
1898
+ Header: cr,
1899
+ Footer: fr,
1900
+ toggleFooterMenu: dr,
1901
+ Modal: pr,
1902
+ MainButton: vr,
1903
+ BackButton: yr
1904
+ } = re;
1930
1905
  export {
1931
- lr as Footer,
1932
- g as default
1906
+ yr as BackButton,
1907
+ fr as Footer,
1908
+ cr as Header,
1909
+ vr as MainButton,
1910
+ pr as Modal,
1911
+ re as default,
1912
+ dr as toggleFooterMenu
1933
1913
  };