@elcrm/telegram 0.0.22 → 0.0.24

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
@@ -98,10 +98,10 @@ function Ta(e, t = !0) {
98
98
  function rn() {
99
99
  return j.module;
100
100
  }
101
- function Ra(e) {
101
+ function Ba(e) {
102
102
  return j.module === e;
103
103
  }
104
- function Ba(e) {
104
+ function Ra(e) {
105
105
  if (typeof e != "function") {
106
106
  const [t, a] = b.useState(e || Ze()), [r, i] = b.useState(!1);
107
107
  return b.useEffect(() => {
@@ -401,7 +401,7 @@ async function fr(e, t = {}) {
401
401
  }
402
402
  }
403
403
  const _l = { audio: cr, fetch: Ue, modules: _r, remoute: ur, url: lr, telegram: fr, use: dr };
404
- var _t = { exports: {} }, Be = {};
404
+ var _t = { exports: {} }, Re = {};
405
405
  /**
406
406
  * @license React
407
407
  * react-jsx-runtime.production.min.js
@@ -414,7 +414,7 @@ var _t = { exports: {} }, Be = {};
414
414
  var Ut;
415
415
  function mr() {
416
416
  if (Ut)
417
- return Be;
417
+ return Re;
418
418
  Ut = 1;
419
419
  var e = b, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
420
420
  function l(c, d, _) {
@@ -427,7 +427,7 @@ function mr() {
427
427
  f[u] === void 0 && (f[u] = d[u]);
428
428
  return { $$typeof: t, type: c, key: x, ref: m, props: f, _owner: i.current };
429
429
  }
430
- return Be.Fragment = a, Be.jsx = l, Be.jsxs = l, Be;
430
+ return Re.Fragment = a, Re.jsx = l, Re.jsxs = l, Re;
431
431
  }
432
432
  var Ie = {};
433
433
  /**
@@ -467,10 +467,10 @@ function hr() {
467
467
  F.unshift("Warning: " + h), Function.prototype.apply.call(console[s], console, F);
468
468
  }
469
469
  }
470
- var R = !1, P = !1, O = !1, K = !1, oe = !1, z;
470
+ var B = !1, P = !1, O = !1, K = !1, oe = !1, z;
471
471
  z = Symbol.for("react.module.reference");
472
472
  function I(s) {
473
- return !!(typeof s == "string" || typeof s == "function" || s === r || s === o || oe || s === i || s === _ || s === u || K || s === m || R || P || O || typeof s == "object" && s !== null && (s.$$typeof === x || s.$$typeof === f || s.$$typeof === l || s.$$typeof === c || s.$$typeof === d || // This needs to include all possible module reference object
473
+ return !!(typeof s == "string" || typeof s == "function" || s === r || s === o || oe || s === i || s === _ || s === u || K || s === m || B || P || O || typeof s == "object" && s !== null && (s.$$typeof === x || s.$$typeof === f || s.$$typeof === l || s.$$typeof === c || s.$$typeof === d || // This needs to include all possible module reference object
474
474
  // types supported by any Flight configuration anywhere since
475
475
  // we don't know which Flight build this will end up being used
476
476
  // with.
@@ -486,7 +486,7 @@ function hr() {
486
486
  function $(s) {
487
487
  return s.displayName || "Context";
488
488
  }
489
- function S(s) {
489
+ function E(s) {
490
490
  if (s == null)
491
491
  return null;
492
492
  if (typeof s.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
@@ -519,11 +519,11 @@ function hr() {
519
519
  return W(s, s.render, "ForwardRef");
520
520
  case f:
521
521
  var w = s.displayName || null;
522
- return w !== null ? w : S(s.type) || "Memo";
522
+ return w !== null ? w : E(s.type) || "Memo";
523
523
  case x: {
524
524
  var D = s, F = D._payload, M = D._init;
525
525
  try {
526
- return S(M(F));
526
+ return E(M(F));
527
527
  } catch {
528
528
  return null;
529
529
  }
@@ -531,18 +531,18 @@ function hr() {
531
531
  }
532
532
  return null;
533
533
  }
534
- var Z = Object.assign, Y = 0, $e, te, Ee, Ve, Le, Tt, Rt;
535
- function Bt() {
534
+ var Z = Object.assign, Y = 0, $e, te, Ee, Ve, Le, Tt, Bt;
535
+ function Rt() {
536
536
  }
537
- Bt.__reactDisabledLog = !0;
537
+ Rt.__reactDisabledLog = !0;
538
538
  function $n() {
539
539
  {
540
540
  if (Y === 0) {
541
- $e = console.log, te = console.info, Ee = console.warn, Ve = console.error, Le = console.group, Tt = console.groupCollapsed, Rt = console.groupEnd;
541
+ $e = console.log, te = console.info, Ee = console.warn, Ve = console.error, Le = console.group, Tt = console.groupCollapsed, Bt = console.groupEnd;
542
542
  var s = {
543
543
  configurable: !0,
544
544
  enumerable: !0,
545
- value: Bt,
545
+ value: Rt,
546
546
  writable: !0
547
547
  };
548
548
  Object.defineProperties(console, {
@@ -586,7 +586,7 @@ function hr() {
586
586
  value: Tt
587
587
  }),
588
588
  groupEnd: Z({}, s, {
589
- value: Rt
589
+ value: Bt
590
590
  })
591
591
  });
592
592
  }
@@ -660,17 +660,17 @@ function hr() {
660
660
  }
661
661
  } catch (q) {
662
662
  if (q && w && typeof q.stack == "string") {
663
- for (var B = q.stack.split(`
663
+ for (var R = q.stack.split(`
664
664
  `), V = w.stack.split(`
665
- `), L = B.length - 1, G = V.length - 1; L >= 1 && G >= 0 && B[L] !== V[G]; )
665
+ `), L = R.length - 1, G = V.length - 1; L >= 1 && G >= 0 && R[L] !== V[G]; )
666
666
  G--;
667
667
  for (; L >= 1 && G >= 0; L--, G--)
668
- if (B[L] !== V[G]) {
668
+ if (R[L] !== V[G]) {
669
669
  if (L !== 1 || G !== 1)
670
670
  do
671
- if (L--, G--, G < 0 || B[L] !== V[G]) {
671
+ if (L--, G--, G < 0 || R[L] !== V[G]) {
672
672
  var Q = `
673
- ` + B[L].replace(" at new ", " at ");
673
+ ` + R[L].replace(" at new ", " at ");
674
674
  return s.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", s.displayName)), typeof s == "function" && Oe.set(s, Q), Q;
675
675
  }
676
676
  while (L >= 1 && G >= 0);
@@ -732,17 +732,17 @@ function hr() {
732
732
  var F = Function.call.bind(Te);
733
733
  for (var M in s)
734
734
  if (F(s, M)) {
735
- var B = void 0;
735
+ var R = void 0;
736
736
  try {
737
737
  if (typeof s[M] != "function") {
738
738
  var V = Error((w || "React class") + ": " + k + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
739
739
  throw V.name = "Invariant Violation", V;
740
740
  }
741
- B = s[M](h, M, w, k, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
741
+ R = s[M](h, M, w, k, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
742
742
  } catch (L) {
743
- B = L;
743
+ R = L;
744
744
  }
745
- B && !(B instanceof Error) && (ze(D), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", w || "React class", k, M, typeof B), ze(null)), B instanceof Error && !(B.message in Mt) && (Mt[B.message] = !0, ze(D), y("Failed %s type: %s", k, B.message), ze(null));
745
+ R && !(R instanceof Error) && (ze(D), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", w || "React class", k, M, typeof R), ze(null)), R instanceof Error && !(R.message in Mt) && (Mt[R.message] = !0, ze(D), y("Failed %s type: %s", k, R.message), ze(null));
746
746
  }
747
747
  }
748
748
  }
@@ -770,7 +770,7 @@ function hr() {
770
770
  if (Zn(s))
771
771
  return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Kn(s)), Dt(s);
772
772
  }
773
- var Re = C.ReactCurrentOwner, Un = {
773
+ var Be = C.ReactCurrentOwner, Un = {
774
774
  key: !0,
775
775
  ref: !0,
776
776
  __self: !0,
@@ -794,9 +794,9 @@ function hr() {
794
794
  return s.key !== void 0;
795
795
  }
796
796
  function Vn(s, h) {
797
- if (typeof s.ref == "string" && Re.current && h && Re.current.stateNode !== h) {
798
- var k = S(Re.current.type);
799
- et[k] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', S(Re.current.type), s.ref), et[k] = !0);
797
+ if (typeof s.ref == "string" && Be.current && h && Be.current.stateNode !== h) {
798
+ var k = E(Be.current.type);
799
+ et[k] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', E(Be.current.type), s.ref), et[k] = !0);
800
800
  }
801
801
  }
802
802
  function qn(s, h) {
@@ -822,7 +822,7 @@ function hr() {
822
822
  }
823
823
  }
824
824
  var Xn = function(s, h, k, w, D, F, M) {
825
- var B = {
825
+ var R = {
826
826
  // This tag allows us to uniquely identify this as a React Element
827
827
  $$typeof: t,
828
828
  // Built-in properties that belong on the element
@@ -833,27 +833,27 @@ function hr() {
833
833
  // Record the component responsible for creating this element.
834
834
  _owner: F
835
835
  };
836
- return B._store = {}, Object.defineProperty(B._store, "validated", {
836
+ return R._store = {}, Object.defineProperty(R._store, "validated", {
837
837
  configurable: !1,
838
838
  enumerable: !1,
839
839
  writable: !0,
840
840
  value: !1
841
- }), Object.defineProperty(B, "_self", {
841
+ }), Object.defineProperty(R, "_self", {
842
842
  configurable: !1,
843
843
  enumerable: !1,
844
844
  writable: !1,
845
845
  value: w
846
- }), Object.defineProperty(B, "_source", {
846
+ }), Object.defineProperty(R, "_source", {
847
847
  configurable: !1,
848
848
  enumerable: !1,
849
849
  writable: !1,
850
850
  value: D
851
- }), Object.freeze && (Object.freeze(B.props), Object.freeze(B)), B;
851
+ }), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
852
852
  };
853
853
  function Qn(s, h, k, w, D) {
854
854
  {
855
- var F, M = {}, B = null, V = null;
856
- k !== void 0 && (Pt(k), B = "" + k), Yn(h) && (Pt(h.key), B = "" + h.key), Hn(h) && (V = h.ref, Vn(h, D));
855
+ var F, M = {}, R = null, V = null;
856
+ k !== void 0 && (Pt(k), R = "" + k), Yn(h) && (Pt(h.key), R = "" + h.key), Hn(h) && (V = h.ref, Vn(h, D));
857
857
  for (F in h)
858
858
  Te.call(h, F) && !Un.hasOwnProperty(F) && (M[F] = h[F]);
859
859
  if (s && s.defaultProps) {
@@ -861,11 +861,11 @@ function hr() {
861
861
  for (F in L)
862
862
  M[F] === void 0 && (M[F] = L[F]);
863
863
  }
864
- if (B || V) {
864
+ if (R || V) {
865
865
  var G = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
866
- B && qn(M, G), V && Jn(M, G);
866
+ R && qn(M, G), V && Jn(M, G);
867
867
  }
868
- return Xn(s, B, V, D, w, Re.current, M);
868
+ return Xn(s, R, V, D, w, Be.current, M);
869
869
  }
870
870
  }
871
871
  var tt = C.ReactCurrentOwner, Lt = C.ReactDebugCurrentFrame;
@@ -884,7 +884,7 @@ function hr() {
884
884
  function At() {
885
885
  {
886
886
  if (tt.current) {
887
- var s = S(tt.current.type);
887
+ var s = E(tt.current.type);
888
888
  if (s)
889
889
  return `
890
890
 
@@ -919,7 +919,7 @@ Check the top-level render call using <` + k + ">.");
919
919
  return;
920
920
  Ot[k] = !0;
921
921
  var w = "";
922
- s && s._owner && s._owner !== tt.current && (w = " It was passed a child from " + S(s._owner.type) + "."), be(s), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', k, w), be(null);
922
+ s && s._owner && s._owner !== tt.current && (w = " It was passed a child from " + E(s._owner.type) + "."), be(s), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', k, w), be(null);
923
923
  }
924
924
  }
925
925
  function zt(s, h) {
@@ -956,11 +956,11 @@ Check the top-level render call using <` + k + ">.");
956
956
  else
957
957
  return;
958
958
  if (k) {
959
- var w = S(h);
959
+ var w = E(h);
960
960
  zn(k, s.props, "prop", w, s);
961
961
  } else if (h.PropTypes !== void 0 && !nt) {
962
962
  nt = !0;
963
- var D = S(h);
963
+ var D = E(h);
964
964
  y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", D || "Unknown");
965
965
  }
966
966
  typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -983,12 +983,12 @@ Check the top-level render call using <` + k + ">.");
983
983
  {
984
984
  var M = I(s);
985
985
  if (!M) {
986
- var B = "";
987
- (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (B += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
986
+ var R = "";
987
+ (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
988
988
  var V = ea();
989
- V ? B += V : B += At();
989
+ V ? R += V : R += At();
990
990
  var L;
991
- s === null ? L = "null" : Qe(s) ? L = "array" : s !== void 0 && s.$$typeof === t ? (L = "<" + (S(s.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : L = typeof s, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, B);
991
+ s === null ? L = "null" : Qe(s) ? L = "array" : s !== void 0 && s.$$typeof === t ? (L = "<" + (E(s.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : L = typeof s, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, R);
992
992
  }
993
993
  var G = Qn(s, h, k, D, F);
994
994
  if (G == null)
@@ -1007,7 +1007,7 @@ Check the top-level render call using <` + k + ">.");
1007
1007
  zt(Q, s);
1008
1008
  }
1009
1009
  if (Te.call(h, "key")) {
1010
- var me = S(s), q = Object.keys(h).filter(function(ca) {
1010
+ var me = E(s), q = Object.keys(h).filter(function(ca) {
1011
1011
  return ca !== "key";
1012
1012
  }), rt = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
1013
1013
  if (!Wt[me + rt]) {
@@ -1139,10 +1139,10 @@ ge.success = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "
1139
1139
  }
1140
1140
  )
1141
1141
  ] });
1142
- const Tr = "_alerts_1pds5_1", Rr = "_menuAnimation_1pds5_1", Br = "_menuItemAnimation_1pds5_1", Ir = "_allert_1pds5_111", Mr = "_al_1pds5_1", dt = {
1142
+ const Tr = "_alerts_1pds5_1", Br = "_menuAnimation_1pds5_1", Rr = "_menuItemAnimation_1pds5_1", Ir = "_allert_1pds5_111", Mr = "_al_1pds5_1", dt = {
1143
1143
  alerts: Tr,
1144
- menuAnimation: Rr,
1145
- menuItemAnimation: Br,
1144
+ menuAnimation: Br,
1145
+ menuItemAnimation: Rr,
1146
1146
  "--body": "_--body_1pds5_103",
1147
1147
  allert: Ir,
1148
1148
  "--form": "_--form_1pds5_111",
@@ -1383,10 +1383,10 @@ const ce = {
1383
1383
  setModule: Ta,
1384
1384
  getModule: rn,
1385
1385
  useModule: Ea,
1386
- isModule: Ra,
1386
+ isModule: Ba,
1387
1387
  setTabs: Ia,
1388
1388
  getTabs: Ze,
1389
- useTabs: Ba,
1389
+ useTabs: Ra,
1390
1390
  isTabs: Ma,
1391
1391
  useId: Na,
1392
1392
  setId: Pa,
@@ -1754,7 +1754,7 @@ function Ti({ children: e, className: t }) {
1754
1754
  let a = {};
1755
1755
  return t && (a.className = t), /* @__PURE__ */ n.jsx("div", { "data-form": "outline", ...a, children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
1756
1756
  }
1757
- function Ri({ children: e }) {
1757
+ function Bi({ children: e }) {
1758
1758
  return /* @__PURE__ */ n.jsx("div", { className: ne.c, children: e });
1759
1759
  }
1760
1760
  const Cn = {
@@ -1766,7 +1766,7 @@ const Cn = {
1766
1766
  Open: xi,
1767
1767
  Shake: gi,
1768
1768
  Form: Ti,
1769
- Center: Ri,
1769
+ Center: Bi,
1770
1770
  Close: vi
1771
1771
  };
1772
1772
  function kt({
@@ -1803,13 +1803,13 @@ function kt({
1803
1803
  };
1804
1804
  const T = {};
1805
1805
  T.field = "input", v && (T.className = v);
1806
- const R = {};
1807
- return r && (R.placeholder = r), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...T, children: [
1806
+ const B = {};
1807
+ return r && (B.placeholder = r), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...T, children: [
1808
1808
  i && /* @__PURE__ */ n.jsx("dt", { children: i }),
1809
1809
  /* @__PURE__ */ n.jsx(
1810
1810
  "dd",
1811
1811
  {
1812
- ...R,
1812
+ ...B,
1813
1813
  onClick: y,
1814
1814
  edit: (c && _) + "",
1815
1815
  "data-after": u,
@@ -1819,7 +1819,7 @@ function kt({
1819
1819
  o && /* @__PURE__ */ n.jsx("em", { children: o })
1820
1820
  ] });
1821
1821
  }
1822
- function Bi(e, t) {
1822
+ function Ri(e, t) {
1823
1823
  t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
1824
1824
  let a = {
1825
1825
  yyyy: e.getFullYear(),
@@ -1857,16 +1857,16 @@ function Ii(e) {
1857
1857
  };
1858
1858
  }
1859
1859
  const Mi = (e) => {
1860
- function t(T, R) {
1860
+ function t(T, B) {
1861
1861
  var P, K, O;
1862
- T = T ?? "", R = R ?? 1;
1862
+ T = T ?? "", B = B ?? 1;
1863
1863
  for (var P = [], O = 0, K = T.length; O < K; )
1864
- P.push(T.slice(O, O += R));
1864
+ P.push(T.slice(O, O += B));
1865
1865
  return P;
1866
1866
  }
1867
- function a(T, R) {
1867
+ function a(T, B) {
1868
1868
  var P = [2, 0, 1, 1, 1, 2];
1869
- return R[T > 4 && T < 20 ? 2 : P[Math.min(T, 5)]];
1869
+ return B[T > 4 && T < 20 ? 2 : P[Math.min(T, 5)]];
1870
1870
  }
1871
1871
  var r = {
1872
1872
  null: "ноль",
@@ -2243,7 +2243,7 @@ function Zi(e) {
2243
2243
  }
2244
2244
  const ye = {
2245
2245
  Age: Zi,
2246
- Date: Bi,
2246
+ Date: Ri,
2247
2247
  MoneyString: Mi,
2248
2248
  DateSort: Ii,
2249
2249
  Size: Ni,
@@ -3952,16 +3952,16 @@ function jt({
3952
3952
  className: m = ""
3953
3953
  }) {
3954
3954
  d = d !== void 0 ? d : !0, _ = _ !== void 0 ? _ : !0, c = !!(c && (e === "" || e === void 0)) && !(d && _), b.useRef(null);
3955
- let v = "+_(___) ___-__-__", p = !0, C = 0, y = ($, S) => {
3955
+ let v = "+_(___) ___-__-__", p = !0, C = 0, y = ($, E) => {
3956
3956
  let Z = document.createRange(), Y = window.getSelection();
3957
- Z.setStart(S.childNodes[0], $), Z.collapse(!0), Y.removeAllRanges(), Y.addRange(Z), S.focus();
3957
+ Z.setStart(E.childNodes[0], $), Z.collapse(!0), Y.removeAllRanges(), Y.addRange(Z), E.focus();
3958
3958
  }, T = ($) => {
3959
- $.preventDefault(), navigator.clipboard.readText().then((S) => {
3960
- window.document.execCommand("insertText", !1, S);
3961
- }).catch((S) => {
3959
+ $.preventDefault(), navigator.clipboard.readText().then((E) => {
3960
+ window.document.execCommand("insertText", !1, E);
3961
+ }).catch((E) => {
3962
3962
  });
3963
- }, R = ($) => {
3964
- let S = 0, Z = "", Y = $.replace(/\D/g, "");
3963
+ }, B = ($) => {
3964
+ let E = 0, Z = "", Y = $.replace(/\D/g, "");
3965
3965
  Y === "" && (p = !0);
3966
3966
  let $e = Y.split(""), te = "";
3967
3967
  $e.forEach((Le) => {
@@ -3975,19 +3975,19 @@ function jt({
3975
3975
  });
3976
3976
  let Ee = v.replace(/\D/g, "");
3977
3977
  return Ee.length >= Y.length && (Y = Ee), { q: v.replace(/[_\d]/g, function() {
3978
- return Y.charAt(S++) || "_";
3979
- }), i: S, v: Y, f: Z };
3978
+ return Y.charAt(E++) || "_";
3979
+ }), i: E, v: Y, f: Z };
3980
3980
  }, P = ($) => {
3981
3981
  $.preventDefault(), navigator.clipboard.writeText($.target.textContent.replace(/\D/g, "")).then(
3982
3982
  function() {
3983
3983
  Ke.Copy("Данные в буфер обмене");
3984
3984
  },
3985
- function(S) {
3985
+ function(E) {
3986
3986
  }
3987
3987
  );
3988
- }, O = R(e), K = ($) => {
3989
- let S = R($.target.textContent);
3990
- $.target.textContent = S.q, S.i = S.q.lastIndexOf(S.v.substr(-1)), S.i < S.q.length && S.q !== v ? S.i++ : S.i = S.q.indexOf("_"), y(S.i, $.target), t && t({ value: S.q.replace(/\D/g, ""), name: r });
3988
+ }, O = B(e), K = ($) => {
3989
+ let E = B($.target.textContent);
3990
+ $.target.textContent = E.q, E.i = E.q.lastIndexOf(E.v.substr(-1)), E.i < E.q.length && E.q !== v ? E.i++ : E.i = E.q.indexOf("_"), y(E.i, $.target), t && t({ value: E.q.replace(/\D/g, ""), name: r });
3991
3991
  }, oe = ($) => {
3992
3992
  $.key === "Enter" && $.preventDefault();
3993
3993
  };
@@ -4073,13 +4073,13 @@ function yt({
4073
4073
  }, p = (T) => {
4074
4074
  if (!(a && r))
4075
4075
  return;
4076
- const R = T.target.getBoundingClientRect();
4076
+ const B = T.target.getBoundingClientRect();
4077
4077
  He.setListener(
4078
4078
  "form",
4079
4079
  /* @__PURE__ */ n.jsx(
4080
4080
  Vi,
4081
4081
  {
4082
- parent: R,
4082
+ parent: B,
4083
4083
  onValue: v,
4084
4084
  view: f,
4085
4085
  options: c
@@ -4151,10 +4151,10 @@ function wt({
4151
4151
  onSave: m,
4152
4152
  className: g = ""
4153
4153
  }) {
4154
- let v = !!(l && (e === "" || e === void 0)), p = (R) => {
4155
- t == null || t({ value: R.target.value, name: a });
4156
- }, C = (R) => {
4157
- R.preventDefault(), navigator.clipboard.readText().then((P) => {
4154
+ let v = !!(l && (e === "" || e === void 0)), p = (B) => {
4155
+ t == null || t({ value: B.target.value, name: a });
4156
+ }, C = (B) => {
4157
+ B.preventDefault(), navigator.clipboard.readText().then((P) => {
4158
4158
  window.document.execCommand(
4159
4159
  "insertText",
4160
4160
  !1,
@@ -4162,8 +4162,8 @@ function wt({
4162
4162
  );
4163
4163
  }).catch((P) => {
4164
4164
  });
4165
- }, y = (R) => {
4166
- R.preventDefault(), navigator.clipboard.writeText(R.target.value).then(
4165
+ }, y = (B) => {
4166
+ B.preventDefault(), navigator.clipboard.writeText(B.target.value).then(
4167
4167
  function() {
4168
4168
  Ke.Copy("Данные в буфер обмене");
4169
4169
  },
@@ -4455,12 +4455,12 @@ function En({
4455
4455
  let v = !!(l && (e === "" || e === void 0));
4456
4456
  if (!(c && d) && !u || !(c && d) && v)
4457
4457
  return "";
4458
- let p = (R) => {
4459
- t && t({ value: R.target.innerText, name: a });
4460
- }, C = (R) => {
4461
- m && m({ value: R.target.innerText, name: a });
4462
- }, y = (R) => {
4463
- R.preventDefault(), navigator.clipboard.readText().then((P) => {
4458
+ let p = (B) => {
4459
+ t && t({ value: B.target.innerText, name: a });
4460
+ }, C = (B) => {
4461
+ m && m({ value: B.target.innerText, name: a });
4462
+ }, y = (B) => {
4463
+ B.preventDefault(), navigator.clipboard.readText().then((P) => {
4464
4464
  window.document.execCommand("insertText", !1, P);
4465
4465
  }).catch((P) => {
4466
4466
  });
@@ -4503,14 +4503,14 @@ function Tn({
4503
4503
  let v = !!(l && (e === "" || e === void 0));
4504
4504
  if (ye.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), b.useRef(null), !(c && d) && !u || !(c && d) && v)
4505
4505
  return "";
4506
- const p = "__:__", C = new Set("_"), y = ((I) => Array.from(p, (W, $) => C.has(W) ? I = $ + 1 : I))(0), T = [...p].findIndex((I) => C.has(I)), R = new RegExp("\\d", "g"), P = (I) => (I = I.match(R) || [], Array.from(
4506
+ const p = "__:__", C = new Set("_"), y = ((I) => Array.from(p, (W, $) => C.has(W) ? I = $ + 1 : I))(0), T = [...p].findIndex((I) => C.has(I)), B = new RegExp("\\d", "g"), P = (I) => (I = I.match(B) || [], Array.from(
4507
4507
  p,
4508
4508
  (W) => (I[0] === W || C.has(W)) && I.shift() || W
4509
4509
  )), O = (I) => {
4510
4510
  const [W, $] = [I.target.selectionStart, I.target.selectionEnd].map(
4511
- (S) => (S = P(I.target.value.slice(0, S)).findIndex(
4511
+ (E) => (E = P(I.target.value.slice(0, E)).findIndex(
4512
4512
  (Z) => C.has(Z)
4513
- ), S < 0 ? y[y.length - 1] : z ? y[S - 1] || T : S)
4513
+ ), E < 0 ? y[y.length - 1] : z ? y[E - 1] || T : E)
4514
4514
  );
4515
4515
  I.target.value = P(I.target.value).join(""), I.target.setSelectionRange(W, $), t == null || t({ name: a, value: I.target.value });
4516
4516
  }, K = {};
@@ -4535,7 +4535,7 @@ function Tn({
4535
4535
  o ? /* @__PURE__ */ n.jsx("em", { children: o }) : ""
4536
4536
  ] }) });
4537
4537
  }
4538
- function Rn({
4538
+ function Bn({
4539
4539
  onValue: e,
4540
4540
  label: t,
4541
4541
  value: a,
@@ -4555,7 +4555,7 @@ function Rn({
4555
4555
  /* @__PURE__ */ n.jsx("dd", { ...u, onClick: d })
4556
4556
  ] });
4557
4557
  }
4558
- const Bn = ({ onValue: e, value: t, name: a, item: r }) => {
4558
+ const Rn = ({ onValue: e, value: t, name: a, item: r }) => {
4559
4559
  const [i, o] = b.useState(!!t);
4560
4560
  b.useEffect(() => {
4561
4561
  o(!!t);
@@ -4600,7 +4600,7 @@ function In({
4600
4600
  p([...v, ""]);
4601
4601
  }, y = (z) => {
4602
4602
  v.splice(z, 1), v.length === 0 && v.push(""), p([...v]), x !== void 0 && x({ value: v.join(","), name: a });
4603
- }, T = !!(l && (e === "" || e === void 0)), R = (z) => {
4603
+ }, T = !!(l && (e === "" || e === void 0)), B = (z) => {
4604
4604
  };
4605
4605
  if (!(c && d) && !u || !(c && d) && T)
4606
4606
  return "";
@@ -4642,7 +4642,7 @@ function In({
4642
4642
  edit: "true",
4643
4643
  name: a,
4644
4644
  placeholder: r,
4645
- onPaste: R,
4645
+ onPaste: B,
4646
4646
  contentEditable: !0,
4647
4647
  onKeyDown: oe,
4648
4648
  onBlur: O,
@@ -4712,8 +4712,8 @@ function Mn({
4712
4712
  });
4713
4713
  }, T = {};
4714
4714
  T.field = "group", v && (T.className = v);
4715
- const R = {};
4716
- return r && (R.placeholder = r), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...T, children: [
4715
+ const B = {};
4716
+ return r && (B.placeholder = r), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...T, children: [
4717
4717
  /* @__PURE__ */ n.jsxs("dt", { children: [
4718
4718
  i,
4719
4719
  /* @__PURE__ */ n.jsx("i", { onClick: y, children: /* @__PURE__ */ n.jsxs(
@@ -4737,7 +4737,7 @@ function Mn({
4737
4737
  /* @__PURE__ */ n.jsx(
4738
4738
  "dd",
4739
4739
  {
4740
- ...R,
4740
+ ...B,
4741
4741
  onClick: open,
4742
4742
  edit: (c && _) + "",
4743
4743
  "data-after": u,
@@ -4754,7 +4754,7 @@ const Xi = {
4754
4754
  Color: bn,
4755
4755
  Date: vt,
4756
4756
  Code: kn,
4757
- Check: Rn,
4757
+ Check: Bn,
4758
4758
  Switch: hn,
4759
4759
  Button: gn,
4760
4760
  Message: pn,
@@ -4774,7 +4774,7 @@ const Xi = {
4774
4774
  Time: Tn,
4775
4775
  Users: St,
4776
4776
  String: wt,
4777
- Toogle: Bn,
4777
+ Toogle: Rn,
4778
4778
  Group: In,
4779
4779
  Options: Mn
4780
4780
  }, Qi = "_debug_ug20b_34", eo = "_b_ug20b_46", to = "_o_ug20b_50", no = "_mb_ug20b_55", ao = "_tm_ug20b_66", ro = "_ta_ug20b_133", he = {
@@ -4785,7 +4785,7 @@ const Xi = {
4785
4785
  tm: ao,
4786
4786
  ta: ro,
4787
4787
  "--body": "_--body_ug20b_143"
4788
- }, E = window.Telegram.WebApp, ve = { is: !1, MainButton: {}, BackButton: {} };
4788
+ }, S = window.Telegram.WebApp, ve = { is: !1, MainButton: {}, BackButton: {} };
4789
4789
  let pe = {};
4790
4790
  pe.dark = {
4791
4791
  "--tg-theme-bg-color": "#212121",
@@ -4820,35 +4820,40 @@ pe.users = {
4820
4820
  "--tg-theme-button-text-color": "#000000",
4821
4821
  "--tg-theme-secondary-bg-color": "#000000"
4822
4822
  };
4823
- E.getUser = () => {
4823
+ S.getUser = () => {
4824
4824
  var e;
4825
- return ((e = E.initDataUnsafe) == null ? void 0 : e.user) === void 0 ? {} : E.initDataUnsafe;
4825
+ return ((e = S.initDataUnsafe) == null ? void 0 : e.user) === void 0 ? {} : S.initDataUnsafe;
4826
4826
  };
4827
- E.MainButton.set = (e) => {
4828
- ve.is ? ve.MainButton.set(e) : typeof e == "boolean" ? E.MainButton.isVisible = !1 : (E.MainButton.text = e.text, e.color && (E.MainButton.color = e.color), e.textColor && (E.MainButton.textColor = e.textColor), E.MainButton.isVisible = !0, E.MainButton.isActive = e.isActive === void 0 ? !0 : e.isActive, e.page === void 0 || E.MainButton.onClick(() => {
4829
- ce.setPage(e.page);
4830
- }));
4827
+ S.MainButton.callback = null;
4828
+ S.MainButton.set = (e) => {
4829
+ ve.is ? ve.MainButton.set(e) : typeof e == "boolean" ? S.MainButton.isVisible = !1 : (S.MainButton.text = e.text, e.color && (S.MainButton.color = e.color), e.textColor && (S.MainButton.textColor = e.textColor), S.MainButton.isVisible = !0, S.MainButton.isActive = e.isActive === void 0 ? !0 : e.isActive, e.page === void 0 ? S.MainButton.callback = () => {
4830
+ var t;
4831
+ return (t = e.callback) == null ? void 0 : t.call(e);
4832
+ } : S.MainButton.callback = () => ce.setPage(e.page), S.WebApp.onEvent(
4833
+ "mainButtonClicked",
4834
+ S.MainButton.callback
4835
+ ));
4831
4836
  };
4832
- E.BackButton.state = [!1];
4833
- E.BackButton.listen = [];
4834
- E.BackButton.router = (e) => {
4835
- e === !1 ? (E.BackButton.isVisible = !1, E.BackButton.offClick(E.BackButton.listen[0]), E.BackButton.listen.shift(), E.BackButton.state.length !== 1 && E.BackButton.state.pop()) : (E.BackButton.isVisible = !0, E.BackButton.offClick(E.BackButton.listen[0]), E.BackButton.listen.shift(), E.BackButton.listen.push(() => {
4836
- let t = E.BackButton.state.pop();
4837
+ S.BackButton.state = [!1];
4838
+ S.BackButton.listen = [];
4839
+ S.BackButton.router = (e) => {
4840
+ e === !1 ? (S.BackButton.isVisible = !1, S.BackButton.offClick(S.BackButton.listen[0]), S.BackButton.listen.shift(), S.BackButton.state.length !== 1 && S.BackButton.state.pop()) : (S.BackButton.isVisible = !0, S.BackButton.offClick(S.BackButton.listen[0]), S.BackButton.listen.shift(), S.BackButton.listen.push(() => {
4841
+ let t = S.BackButton.state.pop();
4837
4842
  if (t.page !== void 0)
4838
4843
  ce.setPage(t.page);
4839
4844
  else {
4840
- let a = E.BackButton.state[E.BackButton.state.length - 1];
4841
- E.BackButton.router(a);
4845
+ let a = S.BackButton.state[S.BackButton.state.length - 1];
4846
+ S.BackButton.router(a);
4842
4847
  }
4843
- }), E.BackButton.onClick(E.BackButton.listen[0]));
4848
+ }), S.BackButton.onClick(S.BackButton.listen[0]));
4844
4849
  };
4845
- E.BackButton.set = (e) => {
4846
- ve.is ? ve.BackButton.set(e) : (E.BackButton.state.push(e), E.BackButton.router(e));
4850
+ S.BackButton.set = (e) => {
4851
+ ve.is ? ve.BackButton.set(e) : (S.BackButton.state.push(e), S.BackButton.router(e));
4847
4852
  };
4848
- E.Notice = (e, t) => {
4849
- t !== void 0 ? (Ke.Send({ type: e, text: t }), E.HapticFeedback.notificationOccurred(e)) : (Ke.Send(e), E.HapticFeedback.notificationOccurred(e.type));
4853
+ S.Notice = (e, t) => {
4854
+ t !== void 0 ? (Ke.Send({ type: e, text: t }), S.HapticFeedback.notificationOccurred(e)) : (Ke.Send(e), S.HapticFeedback.notificationOccurred(e.type));
4850
4855
  };
4851
- E.Init = ({ dev: e }) => {
4856
+ S.Init = ({ dev: e }) => {
4852
4857
  if (e) {
4853
4858
  let [t, a] = b.useState(!1), [r, i] = b.useState(!1), [o, l] = b.useState("dark"), [c, d] = b.useState(!1), [_, u] = b.useState(!1);
4854
4859
  ve.is = !0, ve.MainButton.set = a, ve.BackButton.set = i, b.useEffect(() => {
@@ -4947,7 +4952,7 @@ const io = ({ setAuthorization: e }) => {
4947
4952
  ] }) });
4948
4953
  }, dl = ({ children: e, config: t }) => (window.location.pathname === "/clear" && (window.history.pushState({}, "", "/"), X()), N.New(t.crypto), t.defaultModule && ha(t.defaultModule), pa(
4949
4954
  /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4950
- /* @__PURE__ */ n.jsx(E.Init, { dev: t.dev }),
4955
+ /* @__PURE__ */ n.jsx(S.Init, { dev: t.dev }),
4951
4956
  /* @__PURE__ */ n.jsx(ui, { config: t.modal }),
4952
4957
  /* @__PURE__ */ n.jsx(Cr, {}),
4953
4958
  /* @__PURE__ */ n.jsx(Nr, {}),
@@ -5071,14 +5076,14 @@ function Dn({ text: e, type: t, button: a }) {
5071
5076
  a && /* @__PURE__ */ n.jsx("button", { onClick: l, children: a.label })
5072
5077
  ] });
5073
5078
  }
5074
- const yo = "_h_1usnu_1", wo = "_g_1usnu_11", So = "_hr_1usnu_16", Eo = "_hl_1usnu_28", To = "_t_1usnu_40", Ro = "_s_1usnu_60", Bo = "_u_1usnu_69", Io = "_o_1usnu_76", Mo = "_l_1usnu_105", No = "_hh_1usnu_115", Do = "_c_1usnu_128", Po = "_loadingB_1usnu_1", Fo = "_m_1usnu_180", $o = "_ul_1usnu_196", Lo = "_f_1usnu_226", J = {
5079
+ const yo = "_h_1usnu_1", wo = "_g_1usnu_11", So = "_hr_1usnu_16", Eo = "_hl_1usnu_28", To = "_t_1usnu_40", Bo = "_s_1usnu_60", Ro = "_u_1usnu_69", Io = "_o_1usnu_76", Mo = "_l_1usnu_105", No = "_hh_1usnu_115", Do = "_c_1usnu_128", Po = "_loadingB_1usnu_1", Fo = "_m_1usnu_180", $o = "_ul_1usnu_196", Lo = "_f_1usnu_226", J = {
5075
5080
  h: yo,
5076
5081
  g: wo,
5077
5082
  hr: So,
5078
5083
  hl: Eo,
5079
5084
  t: To,
5080
- s: Ro,
5081
- u: Bo,
5085
+ s: Bo,
5086
+ u: Ro,
5082
5087
  o: Io,
5083
5088
  l: Mo,
5084
5089
  hh: No,
@@ -5675,7 +5680,7 @@ const Se = () => (st || (st = new us()), st), ue = (e, t, a = Se()) => a._withID
5675
5680
  function Ts({ children: e }) {
5676
5681
  return /* @__PURE__ */ n.jsx("ul", { className: J.ul, children: e });
5677
5682
  }
5678
- function Rs(e, t) {
5683
+ function Bs(e, t) {
5679
5684
  switch (t.type) {
5680
5685
  case "load":
5681
5686
  return {
@@ -5714,7 +5719,7 @@ function xl({
5714
5719
  className: a,
5715
5720
  ...r
5716
5721
  }) {
5717
- const i = b.useRef(null), [o, l] = b.useReducer(Rs, {
5722
+ const i = b.useRef(null), [o, l] = b.useReducer(Bs, {
5718
5723
  load: !1,
5719
5724
  list: [],
5720
5725
  data: {},
@@ -5742,7 +5747,7 @@ function xl({
5742
5747
  }
5743
5748
  );
5744
5749
  }
5745
- const Bs = ({ label: e, onValue: t, value: a, name: r, item: i }) => {
5750
+ const Rs = ({ label: e, onValue: t, value: a, name: r, item: i }) => {
5746
5751
  const [o, l] = b.useState(!!a);
5747
5752
  b.useEffect(() => {
5748
5753
  l(!!a);
@@ -5778,7 +5783,7 @@ const vl = {
5778
5783
  Color: bn,
5779
5784
  Date: vt,
5780
5785
  Code: kn,
5781
- Check: Rn,
5786
+ Check: Bn,
5782
5787
  Switch: hn,
5783
5788
  Button: gn,
5784
5789
  Message: pn,
@@ -5802,8 +5807,8 @@ const vl = {
5802
5807
  runReload: Ns,
5803
5808
  useData: Is,
5804
5809
  setValue: Ms,
5805
- Palette: Bs,
5806
- Toogle: Bn,
5810
+ Palette: Rs,
5811
+ Toogle: Rn,
5807
5812
  Group: In,
5808
5813
  Options: Mn
5809
5814
  }, Ds = "_spinner_1ul0m_1", Ps = "_l_1ul0m_75", Fs = "_loadingB_1ul0m_1", Pn = {
@@ -6191,7 +6196,7 @@ export {
6191
6196
  se as Store,
6192
6197
  yl as Switch,
6193
6198
  oo as Tabs,
6194
- E as Telegram,
6199
+ S as Telegram,
6195
6200
  wl as Triage,
6196
6201
  pl as User
6197
6202
  };