@dxtmisha/functional-basic 0.7.2 → 0.8.5

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/library.js CHANGED
@@ -1,32 +1,35 @@
1
- var Pt = Object.defineProperty;
2
- var Wt = (i, t, e) => t in i ? Pt(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
- var c = (i, t, e) => Wt(i, typeof t != "symbol" ? t + "" : t, e);
1
+ var Wt = Object.defineProperty;
2
+ var jt = (i, t, e) => t in i ? Wt(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
+ var c = (i, t, e) => jt(i, typeof t != "symbol" ? t + "" : t, e);
4
4
  import { geo as Ut } from "@dxtmisha/media";
5
5
  function C(i, t) {
6
6
  return t ? Object.assign({}, i, t) : Object.assign({}, i);
7
7
  }
8
- function m(i) {
8
+ function f(i) {
9
9
  return !!(i && typeof i == "object");
10
10
  }
11
- function f(i, t) {
12
- if (m(i)) {
13
- const e = [];
14
- return i instanceof Map ? i.forEach((s, n) => e.push(t(s, n, i))) : Array.isArray(i) ? i.forEach((s, n) => e.push(t(s, n, i))) : Object.entries(i).forEach(
15
- ([s, n]) => e.push(t(n, s, i))
16
- ), e.filter((s) => s !== void 0);
11
+ function g(i, t, e) {
12
+ if (f(i)) {
13
+ const s = [];
14
+ return i instanceof Map ? i.forEach((r, o) => s.push(t(r, o, i))) : Array.isArray(i) ? i.forEach((r, o) => s.push(t(r, o, i))) : Object.entries(i).forEach(
15
+ ([r, o]) => s.push(t(o, r, i))
16
+ ), e ? s : s.filter((r) => r !== void 0);
17
17
  }
18
18
  return [];
19
19
  }
20
- function Et(i, t = "=", e = "&") {
21
- return f(
20
+ function It(i, t = "=", e = "&") {
21
+ return g(
22
22
  i,
23
- (s, n) => `${n}${t}${encodeURIComponent(String(s).trim())}`
23
+ (s, r) => `${r}${t}${encodeURIComponent(String(s).trim())}`
24
24
  ).sort().join(e);
25
25
  }
26
- function M(i) {
26
+ function at(i) {
27
+ return Array.isArray(i);
28
+ }
29
+ function J(i) {
27
30
  return i == null;
28
31
  }
29
- function L(i, t) {
32
+ function v(i, t) {
30
33
  if (i) {
31
34
  if (t && i === "0")
32
35
  return !0;
@@ -40,7 +43,7 @@ function L(i, t) {
40
43
  case "symbol":
41
44
  return !0;
42
45
  case "object":
43
- return Array.isArray(i) ? i.length > 0 : Object.values(i).some((e) => !M(e));
46
+ return Array.isArray(i) ? i.length > 0 : Object.values(i).some((e) => !J(e));
44
47
  case "string":
45
48
  return !["", "undefined", "null", "0", "false", "[]"].includes(i);
46
49
  case "undefined":
@@ -52,23 +55,23 @@ function L(i, t) {
52
55
  return !1;
53
56
  }
54
57
  function A(i) {
55
- return m(i) && !Array.isArray(i);
58
+ return f(i) && !Array.isArray(i);
56
59
  }
57
- function R(i) {
60
+ function x(i) {
58
61
  return typeof i == "string";
59
62
  }
60
- function H(i) {
63
+ function U(i) {
61
64
  return JSON.parse(JSON.stringify(i));
62
65
  }
63
66
  function l() {
64
67
  return typeof window != "undefined" && !!window.document;
65
68
  }
66
- function lt(i) {
69
+ function dt(i) {
67
70
  switch (typeof i) {
68
71
  case "number":
69
72
  return !0;
70
73
  case "string":
71
- return !!i.match(/^[0-9]+$/);
74
+ return !!i.match(/^-?[0-9]+(\.[0-9]+)?$/);
72
75
  default:
73
76
  return !1;
74
77
  }
@@ -82,19 +85,19 @@ function k(i) {
82
85
  return t.match(/( [0-9]{3}[ ,.]|[0-9] [0-9])/ig) ? t = t.replace(/ /ig, "").replace(/,/ig, ".") : t.match(/,[0-9]{3}[,.]/ig) ? t = t.replace(/,/ig, "") : t.match(/[.][0-9]{3}[,.]/ig) ? t = t.replace(/[.]/ig, "").replace(/,/ig, ".") : t = t.replace(/,/ig, "."), parseFloat(t);
83
86
  }
84
87
  function rt(i, t) {
85
- return M(i) ? !1 : Array.isArray(t) ? t.includes(i) : lt(i) && lt(t) ? k(i) === k(t) : i === t;
88
+ return J(i) ? !1 : Array.isArray(t) ? t.includes(i) : dt(i) && dt(t) ? k(i) === k(t) : i === t;
86
89
  }
87
- function at(i) {
90
+ function ct(i) {
88
91
  return i instanceof Function || typeof i == "function";
89
92
  }
90
- function I(i) {
91
- return at(i) ? i() : i;
93
+ function B(i) {
94
+ return ct(i) ? i() : i;
92
95
  }
93
96
  function nt() {
94
97
  return location.href.startsWith("data:");
95
98
  }
96
99
  const tt = {};
97
- let dt = "ui-storage";
100
+ let gt = "ui-storage";
98
101
  class T {
99
102
  /**
100
103
  * Constructor
@@ -117,7 +120,7 @@ class T {
117
120
  * @param newPrefix new prefix/ новый префикс
118
121
  */
119
122
  static setPrefix(t) {
120
- dt = t;
123
+ gt = t;
121
124
  }
122
125
  /**
123
126
  * Getting data from local storage.
@@ -140,7 +143,7 @@ class T {
140
143
  */
141
144
  set(t) {
142
145
  var e;
143
- return this.value = I(t), this.age = (/* @__PURE__ */ new Date()).getTime(), this.value === void 0 ? this.remove() : (e = this.getMethod()) == null || e.setItem(this.getIndex(), JSON.stringify({
146
+ return this.value = B(t), this.age = (/* @__PURE__ */ new Date()).getTime(), this.value === void 0 ? this.remove() : (e = this.getMethod()) == null || e.setItem(this.getIndex(), JSON.stringify({
144
147
  value: this.value,
145
148
  age: this.age
146
149
  })), this.value;
@@ -152,7 +155,7 @@ class T {
152
155
  */
153
156
  remove() {
154
157
  var t;
155
- return (t = this.getMethod()) == null || t.removeItem(this.getIndex()), this;
158
+ return this.value = void 0, this.age = void 0, (t = this.getMethod()) == null || t.removeItem(this.getIndex()), this;
156
159
  }
157
160
  /**
158
161
  * Clearing all data from storage.
@@ -169,7 +172,7 @@ class T {
169
172
  * @param cache cache time/ время кэширования
170
173
  */
171
174
  isCache(t) {
172
- return M(t) || this.age && this.age + t * 1e3 >= (/* @__PURE__ */ new Date()).getTime();
175
+ return J(t) || this.age && this.age + t * 1e3 >= (/* @__PURE__ */ new Date()).getTime();
173
176
  }
174
177
  /**
175
178
  * Returns an object for working with storage.
@@ -189,7 +192,7 @@ class T {
189
192
  * Получение имени ключа в хранилище.
190
193
  */
191
194
  getIndex() {
192
- return `${dt}__${this.name}`;
195
+ return `${gt}__${this.name}`;
193
196
  }
194
197
  /**
195
198
  * Getting data from storage.
@@ -216,7 +219,7 @@ class T {
216
219
  return t ? (this.value = t.value, this.age = t.age) : (this.value = void 0, this.age = void 0), this;
217
220
  }
218
221
  }
219
- const jt = "geo-code", p = class p {
222
+ const Ht = "geo-code", b = class b {
220
223
  /**
221
224
  * Information about the current country.
222
225
  *
@@ -292,7 +295,7 @@ const jt = "geo-code", p = class p {
292
295
  */
293
296
  static getByCode(t) {
294
297
  let e;
295
- return t && (t.match(/([A-Z]{2}-[a-z]{2})|([a-z]{2}-[A-Z]{2})/) && (e = this.getByCodeFull(t)), !e && t.match(/[A-Z]{2}/) && (e = this.getByCountry(this.toCountry(t))), !e && t.match(/[a-z]{2}/) && (e = this.getByLanguage(this.toLanguage(t)))), this.toFull(H(e != null ? e : this.getList()[0]));
298
+ return t && (t.match(/([A-Z]{2}-[a-z]{2})|([a-z]{2}-[A-Z]{2})/) && (e = this.getByCodeFull(t)), !e && t.match(/[A-Z]{2}/) && (e = this.getByCountry(this.toCountry(t))), !e && t.match(/[a-z]{2}/) && (e = this.getByLanguage(this.toLanguage(t)))), this.toFull(U(e != null ? e : this.getList()[0]));
296
299
  }
297
300
  /**
298
301
  * Returns the full data by language and country.
@@ -317,7 +320,7 @@ const jt = "geo-code", p = class p {
317
320
  static getByCountry(t) {
318
321
  return this.getList().find((e) => {
319
322
  var s;
320
- return e.country === t || ((s = e == null ? void 0 : e.countryAlternative) == null ? void 0 : s.find((n) => n === t));
323
+ return e.country === t || ((s = e == null ? void 0 : e.countryAlternative) == null ? void 0 : s.find((r) => r === t));
321
324
  });
322
325
  }
323
326
  /**
@@ -329,7 +332,7 @@ const jt = "geo-code", p = class p {
329
332
  static getByLanguage(t) {
330
333
  return this.getList().find((e) => {
331
334
  var s;
332
- return e.language === t || ((s = e == null ? void 0 : e.languageAlternative) == null ? void 0 : s.find((n) => n === t));
335
+ return e.language === t || ((s = e == null ? void 0 : e.languageAlternative) == null ? void 0 : s.find((r) => r === t));
333
336
  });
334
337
  }
335
338
  /**
@@ -438,27 +441,27 @@ const jt = "geo-code", p = class p {
438
441
  });
439
442
  }
440
443
  };
441
- c(p, "storage", new T(jt)), c(p, "location"), c(p, "item"), c(p, "language"), c(p, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), p.location = p.findLocation(), p.language = p.findLanguage(p.location), p.item = p.getByCode(p.location);
442
- let w = p;
443
- function It(i) {
444
+ c(b, "storage", new T(Ht)), c(b, "location"), c(b, "item"), c(b, "language"), c(b, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), b.location = b.findLocation(), b.language = b.findLanguage(b.location), b.item = b.getByCode(b.location);
445
+ let p = b;
446
+ function Ft(i) {
444
447
  return l() && i === window;
445
448
  }
446
449
  function N(i) {
447
450
  var t;
448
451
  if (l())
449
- return It(i) ? document.body : R(i) ? (t = document.querySelector(i)) != null ? t : void 0 : i;
452
+ return Ft(i) ? document.body : x(i) ? (t = document.querySelector(i)) != null ? t : void 0 : i;
450
453
  }
451
- function gt(i) {
452
- return It(i) ? i : N(i);
454
+ function ft(i) {
455
+ return Ft(i) ? i : N(i);
453
456
  }
454
- function Ht(i) {
457
+ function zt(i) {
455
458
  var t;
456
459
  return !!((t = N(i)) != null && t.closest("html"));
457
460
  }
458
- function Z(i) {
461
+ function z(i) {
459
462
  return Array.isArray(i) ? i : [i];
460
463
  }
461
- class ft {
464
+ class mt {
462
465
  /**
463
466
  * Classes Constructor
464
467
  * @param elementSelector element/ элемент
@@ -470,7 +473,7 @@ class ft {
470
473
  * @param detail an event-dependent value associated with the event/ зависимое от события
471
474
  * значение, связанное с событием
472
475
  */
473
- constructor(t, e = ["click"], s, n, o) {
476
+ constructor(t, e = ["click"], s, r, o) {
474
477
  /**
475
478
  * Element.
476
479
  *
@@ -500,7 +503,7 @@ class ft {
500
503
  */
501
504
  c(this, "listenerRecent", (t) => {
502
505
  var e, s;
503
- Ht(this.elementControl) ? ((e = this.listener) == null || e.call(this.element, t, this.detail), m(this.options) && ((s = this.options) != null && s.once) && this.stop()) : this.stop();
506
+ zt(this.elementControl) ? ((e = this.listener) == null || e.call(this.element, t, this.detail), f(this.options) && ((s = this.options) != null && s.once) && this.stop()) : this.stop();
504
507
  });
505
508
  /**
506
509
  * Event states.
@@ -509,7 +512,7 @@ class ft {
509
512
  */
510
513
  c(this, "activity", !1);
511
514
  c(this, "activityItems", []);
512
- this.listener = s, this.options = n, this.detail = o, this.element = gt(t), this.elementControl = N(t), this.type = Z(e);
515
+ this.listener = s, this.options = r, this.detail = o, this.element = ft(t), this.elementControl = N(t), this.type = z(e);
513
516
  }
514
517
  /**
515
518
  * Checks whether event listening is currently enabled.
@@ -529,7 +532,7 @@ class ft {
529
532
  * @param elementSelector element/ элемент
530
533
  */
531
534
  setElement(t) {
532
- const e = gt(t);
535
+ const e = ft(t);
533
536
  return this.elementControlEdit || (this.elementControl = N(t)), this.element = e, this.reset(), this;
534
537
  }
535
538
  /**
@@ -539,7 +542,7 @@ class ft {
539
542
  * @param elementSelector element/ элемент
540
543
  */
541
544
  setElementControl(t) {
542
- return this.elementControl = N(t), this.elementControlEdit = !M(this.elementControl), this.elementControlEdit || (this.elementControl = N(this.element)), this;
545
+ return this.elementControl = N(t), this.elementControlEdit = !J(this.elementControl), this.elementControlEdit || (this.elementControl = N(this.element)), this;
543
546
  }
544
547
  /**
545
548
  * Changes the type of the handled event.
@@ -548,7 +551,7 @@ class ft {
548
551
  * @param type type/ тип
549
552
  */
550
553
  setType(t) {
551
- return this.type = Z(t), this.reset(), this;
554
+ return this.type = z(t), this.reset(), this;
552
555
  }
553
556
  /**
554
557
  * Modifies the object that receives the notification.
@@ -617,9 +620,9 @@ class ft {
617
620
  element: t,
618
621
  type: e,
619
622
  listener: s,
620
- observer: n
623
+ observer: r
621
624
  }) => {
622
- n ? n.disconnect() : s ? t == null || t.removeEventListener(e, s) : t == null || t.removeEventListener(e, this.listenerRecent);
625
+ r ? r.disconnect() : s ? t == null || t.removeEventListener(e, s) : t == null || t.removeEventListener(e, this.listenerRecent);
623
626
  })), this;
624
627
  }
625
628
  /**
@@ -694,7 +697,7 @@ class ft {
694
697
  return !1;
695
698
  }
696
699
  }
697
- const mt = "ui-loading", Y = class Y {
700
+ const yt = "ui-loading", K = class K {
698
701
  /**
699
702
  * Check if the loader is active now.
700
703
  *
@@ -729,7 +732,7 @@ const mt = "ui-loading", Y = class Y {
729
732
  * @param element element/ элемент
730
733
  */
731
734
  static registrationEvent(t, e) {
732
- l() && new ft(window, mt, t).setElementControl(e).start();
735
+ l() && new mt(window, yt, t).setElementControl(e).start();
733
736
  }
734
737
  /**
735
738
  * Calls the event listener.
@@ -741,9 +744,9 @@ const mt = "ui-loading", Y = class Y {
741
744
  (t = this.event) == null || t.dispatch({ loading: this.is() });
742
745
  }
743
746
  };
744
- c(Y, "value", 0), c(Y, "event"), l() && (Y.event = new ft(window, mt));
745
- let x = Y;
746
- class zt {
747
+ c(K, "value", 0), c(K, "event"), l() && (K.event = new mt(window, yt));
748
+ let I = K;
749
+ class Zt {
747
750
  constructor() {
748
751
  /** Default headers/ Заголовки по умолчанию */
749
752
  c(this, "headers", {});
@@ -761,7 +764,7 @@ class zt {
761
764
  this.headers,
762
765
  t
763
766
  );
764
- return L(e) && (s["Content-Type"] = e), s;
767
+ return v(e) && (s["Content-Type"] = e), s;
765
768
  }
766
769
  }
767
770
  /**
@@ -773,8 +776,8 @@ class zt {
773
776
  return A(t) && (this.headers = t), this;
774
777
  }
775
778
  }
776
- var D = /* @__PURE__ */ ((i) => (i.get = "GET", i.post = "POST", i.put = "PUT", i.delete = "DELETE", i))(D || {});
777
- class Zt {
779
+ var L = /* @__PURE__ */ ((i) => (i.get = "GET", i.post = "POST", i.put = "PUT", i.delete = "DELETE", i))(L || {});
780
+ class Vt {
778
781
  constructor() {
779
782
  /** Default request data/ Данные запроса по умолчанию */
780
783
  c(this, "value");
@@ -831,7 +834,7 @@ class Zt {
831
834
  t.has(s) || t.set(s, e[s]);
832
835
  }
833
836
  }
834
- class Vt {
837
+ class $t {
835
838
  constructor() {
836
839
  c(this, "value");
837
840
  }
@@ -861,6 +864,15 @@ class Vt {
861
864
  var t;
862
865
  return (t = this.get()) == null ? void 0 : t.statusText;
863
866
  }
867
+ /**
868
+ * Returns the last status type.
869
+ *
870
+ * Возвращает последний тип статуса.
871
+ */
872
+ getStatusType() {
873
+ var t;
874
+ return (t = this.get()) == null ? void 0 : t.lastStatus;
875
+ }
864
876
  /**
865
877
  * Returns the script execution error.
866
878
  *
@@ -926,7 +938,16 @@ class Vt {
926
938
  * @param response response data/ данные ответа
927
939
  */
928
940
  setLastResponse(t) {
929
- return t && A(t) && "message" in t && this.setLastMessage(String(t.message)), this.set({ lastResponse: t }), this;
941
+ return t && A(t) && ("message" in t && this.setLastMessage(String(t.message)), "status" in t && this.setLastStatus(String(t.status))), this.set({ lastResponse: t }), this;
942
+ }
943
+ /**
944
+ * Sets the last status.
945
+ *
946
+ * Устанавливает последний статус.
947
+ * @param status status/ статус
948
+ */
949
+ setLastStatus(t) {
950
+ return this.set({ lastStatus: t }), this;
930
951
  }
931
952
  /**
932
953
  * Sets messages from the last request.
@@ -949,13 +970,13 @@ class Vt {
949
970
  }
950
971
  }
951
972
  async function Kt(i) {
952
- const t = I(i);
973
+ const t = B(i);
953
974
  return t instanceof Promise ? await t : t;
954
975
  }
955
- function J(i, t) {
976
+ function q(i, t) {
956
977
  return Math.floor(Math.random() * (t - i + 1) + i);
957
978
  }
958
- const yt = "d-response-loading";
979
+ const pt = "d-response-loading";
959
980
  class Yt {
960
981
  /**
961
982
  * Constructor
@@ -981,8 +1002,8 @@ class Yt {
981
1002
  * @param request data for the request/ данные для запроса
982
1003
  * @param devMode is it developer mode/ является ли режим разработчика
983
1004
  */
984
- get(t = "", e, s, n) {
985
- return this.response.find((o) => !this.isDisable(o) && this.isPath(o, t) && e === o.method && this.isFirst(o, n) && this.isResponse(o, s) ? (this.isDevMode(n) && console.warn(`Response type: ${o.path}`), this.first.push(o), !0) : !1);
1005
+ get(t = "", e, s, r) {
1006
+ return this.response.find((o) => !this.isDisable(o) && this.isPath(o, t) && e === o.method && this.isFirst(o, r) && this.isResponse(o, s) ? (this.isDevMode(r) && console.warn(`Response type: ${o.path}`), this.first.push(o), !0) : !1);
986
1007
  }
987
1008
  /**
988
1009
  * Returns a list of data about the emulator.
@@ -999,7 +1020,7 @@ class Yt {
999
1020
  * @param response data for caching/ данные для кеширования
1000
1021
  */
1001
1022
  add(t) {
1002
- return this.response.push(...Z(t)), this;
1023
+ return this.response.push(...z(t)), this;
1003
1024
  }
1004
1025
  /**
1005
1026
  * Sets developer mode.
@@ -1017,11 +1038,11 @@ class Yt {
1017
1038
  async emulator(t) {
1018
1039
  const {
1019
1040
  path: e = "",
1020
- method: s = D.get,
1021
- global: n = s === D.get,
1041
+ method: s = L.get,
1042
+ global: r = s === L.get,
1022
1043
  devMode: o = !1
1023
1044
  } = t;
1024
- if (n || this.isDevMode(o)) {
1045
+ if (r || this.isDevMode(o)) {
1025
1046
  const a = this.requestDefault.request(t.request), u = this.get(e, s, a, o);
1026
1047
  if (u) {
1027
1048
  const h = await this.fetch(u, a);
@@ -1036,7 +1057,7 @@ class Yt {
1036
1057
  * @param item cached item/ кешированный элемент
1037
1058
  */
1038
1059
  isDisable(t) {
1039
- return !!I(t == null ? void 0 : t.disable);
1060
+ return !!B(t == null ? void 0 : t.disable);
1040
1061
  }
1041
1062
  /**
1042
1063
  * Checks if the path matches the cached one.
@@ -1076,8 +1097,8 @@ class Yt {
1076
1097
  */
1077
1098
  isResponse(t, e) {
1078
1099
  const s = this.requestDefault.request(t == null ? void 0 : t.request);
1079
- return e === s || s === "*any" || L(e) && L(s) && A(e) && A(s) && !(e instanceof FormData) && !(s instanceof FormData) && Object.values(e).length === Object.values(s).length && Object.entries(s).reduce(
1080
- (n, [o, a]) => n && (a === (e == null ? void 0 : e[o]) || a === "*any"),
1100
+ return e === s || s === "*any" || v(e) && v(s) && A(e) && A(s) && !(e instanceof FormData) && !(s instanceof FormData) && Object.values(e).length === Object.values(s).length && Object.entries(s).reduce(
1101
+ (r, [o, a]) => r && (a === (e == null ? void 0 : e[o]) || a === "*any"),
1081
1102
  !0
1082
1103
  );
1083
1104
  }
@@ -1091,11 +1112,11 @@ class Yt {
1091
1112
  fetch(t, e) {
1092
1113
  return this.startResponseLoading(), new Promise((s) => {
1093
1114
  Kt(
1094
- at(t.response) ? t.response(e) : t.response
1095
- ).then((n) => {
1096
- t != null && t.lag ? (x.show(), setTimeout(() => {
1097
- this.stopResponseLoading(), s(n), x.hide();
1098
- }, J(0, 2e3))) : (this.stopResponseLoading(), s(n));
1115
+ ct(t.response) ? t.response(e) : t.response
1116
+ ).then((r) => {
1117
+ t != null && t.lag ? (I.show(), setTimeout(() => {
1118
+ this.stopResponseLoading(), s(r), I.hide();
1119
+ }, q(0, 2e3))) : (this.stopResponseLoading(), s(r));
1099
1120
  });
1100
1121
  });
1101
1122
  }
@@ -1105,7 +1126,7 @@ class Yt {
1105
1126
  * Включить загрузку для эмуляции запроса.
1106
1127
  */
1107
1128
  startResponseLoading() {
1108
- this.loading && clearTimeout(this.loading), l() && document.body.classList.add(yt);
1129
+ this.loading && clearTimeout(this.loading), l() && document.body.classList.add(pt);
1109
1130
  }
1110
1131
  /**
1111
1132
  * Disable loading for request emulation.
@@ -1114,7 +1135,7 @@ class Yt {
1114
1135
  */
1115
1136
  stopResponseLoading() {
1116
1137
  this.loading = setTimeout(() => {
1117
- this.loading = void 0, l() && document.body.classList.remove(yt);
1138
+ this.loading = void 0, l() && document.body.classList.remove(pt);
1118
1139
  }, 1200);
1119
1140
  }
1120
1141
  }
@@ -1132,10 +1153,11 @@ class qt {
1132
1153
  *
1133
1154
  * Подготовка перед выполнением запроса.
1134
1155
  * @param active is preparation active/ активна ли подготовка
1156
+ * @param apiFetch request options/ опции запроса
1135
1157
  */
1136
- async make(t) {
1158
+ async make(t, e) {
1137
1159
  if (t && this.callback)
1138
- return this.go();
1160
+ return this.go(e);
1139
1161
  }
1140
1162
  /**
1141
1163
  * Analysis of the request after execution.
@@ -1143,10 +1165,11 @@ class qt {
1143
1165
  * Анализ запроса после выполнения.
1144
1166
  * @param active is preparation active/ активна ли подготовка
1145
1167
  * @param query data received in the request/ данные, полученные в запросе
1168
+ * @param apiFetch request options/ опции запроса
1146
1169
  */
1147
- async makeEnd(t, e) {
1148
- let s = {};
1149
- return t && this.callbackEnd && (s = await this.callbackEnd(e)), s;
1170
+ async makeEnd(t, e, s) {
1171
+ let r = {};
1172
+ return t && this.callbackEnd && (r = await this.callbackEnd(e, s)), r;
1150
1173
  }
1151
1174
  /**
1152
1175
  * The function is modified for a call before the request.
@@ -1170,12 +1193,13 @@ class qt {
1170
1193
  * To execute preparation.
1171
1194
  *
1172
1195
  * Выполнить подготовку.
1196
+ * @param apiFetch request options/ опции запроса
1173
1197
  */
1174
- async go() {
1175
- return new Promise((t) => {
1176
- this.loading ? setTimeout(() => this.go().then(t), 160) : this.callback ? (this.loading = !0, this.callback().then(() => {
1177
- this.loading = !1, t();
1178
- })) : t();
1198
+ async go(t) {
1199
+ return new Promise((e) => {
1200
+ this.loading ? setTimeout(() => this.go(t).then(e), 160) : this.callback ? (this.loading = !0, this.callback(t).then(() => {
1201
+ this.loading = !1, e();
1202
+ })) : e();
1179
1203
  });
1180
1204
  }
1181
1205
  /**
@@ -1183,13 +1207,14 @@ class qt {
1183
1207
  *
1184
1208
  * Анализ запроса после выполнения.
1185
1209
  * @param query data received in the request/ данные, полученные в запросе
1210
+ * @param apiFetch request options/ опции запроса
1186
1211
  */
1187
- async end(t) {
1188
- let e = {};
1189
- return this.callbackEnd && (e = await this.callbackEnd(t)), e;
1212
+ async end(t, e) {
1213
+ let s = {};
1214
+ return this.callbackEnd && (s = await this.callbackEnd(t, e)), s;
1190
1215
  }
1191
1216
  }
1192
- const b = class b {
1217
+ const w = class w {
1193
1218
  /**
1194
1219
  * Is the server local.
1195
1220
  *
@@ -1222,7 +1247,7 @@ const b = class b {
1222
1247
  * @param api adding a path to the site’s API/ добавление пути к API сайта
1223
1248
  */
1224
1249
  static getUrl(t, e = !0) {
1225
- return `${e ? this.url : ""}${t}`.replace("{locale}", w.getLocation()).replace("{country}", w.getCountry()).replace("{language}", w.getLanguage());
1250
+ return `${e ? this.url : ""}${t}`.replace("{locale}", p.getLocation()).replace("{country}", p.getCountry()).replace("{language}", p.getLanguage());
1226
1251
  }
1227
1252
  /**
1228
1253
  * Getting data for the body.
@@ -1231,11 +1256,11 @@ const b = class b {
1231
1256
  * @param request this request/ данный запрос
1232
1257
  * @param method method for request/ метод запрос
1233
1258
  */
1234
- static getBody(t = {}, e = D.get) {
1259
+ static getBody(t = {}, e = L.get) {
1235
1260
  if (t instanceof FormData)
1236
1261
  return t;
1237
- if (e !== D.get && L(t))
1238
- return R(t) ? t : JSON.stringify(t);
1262
+ if (e !== L.get && v(t))
1263
+ return x(t) ? t : JSON.stringify(t);
1239
1264
  }
1240
1265
  /**
1241
1266
  * Getting data for the body of the get method.
@@ -1245,11 +1270,11 @@ const b = class b {
1245
1270
  * @param path path to request/ путь к запрос
1246
1271
  * @param method method for request/ метод запрос
1247
1272
  */
1248
- static getBodyForGet(t, e = "", s = D.get) {
1249
- if (s === D.get) {
1250
- const n = e.match(/\?/) ? "&" : "?", o = typeof t == "object" ? Et(t) : t;
1251
- if (L(o))
1252
- return `${n}${o}`;
1273
+ static getBodyForGet(t, e = "", s = L.get) {
1274
+ if (s === L.get) {
1275
+ const r = e.match(/\?/) ? "&" : "?", o = typeof t == "object" ? It(t) : t;
1276
+ if (v(o))
1277
+ return `${r}${o}`;
1253
1278
  }
1254
1279
  return "";
1255
1280
  }
@@ -1259,7 +1284,7 @@ const b = class b {
1259
1284
  * Изменяет данные заголовка по умолчанию.
1260
1285
  */
1261
1286
  static setHeaders(t) {
1262
- return this.headers.set(t), b;
1287
+ return this.headers.set(t), w;
1263
1288
  }
1264
1289
  /**
1265
1290
  * Modifies the default request data.
@@ -1267,7 +1292,7 @@ const b = class b {
1267
1292
  * Изменяет данные запроса по умолчанию.
1268
1293
  */
1269
1294
  static setRequestDefault(t) {
1270
- return this.requestDefault.set(t), b;
1295
+ return this.requestDefault.set(t), w;
1271
1296
  }
1272
1297
  /**
1273
1298
  * Change the base path to the script.
@@ -1276,7 +1301,7 @@ const b = class b {
1276
1301
  * @param url path to the script/ путь к скрипту
1277
1302
  */
1278
1303
  static setUrl(t) {
1279
- return this.url = t, b;
1304
+ return this.url = t, w;
1280
1305
  }
1281
1306
  /**
1282
1307
  * The function is modified for a call before the request.
@@ -1285,7 +1310,7 @@ const b = class b {
1285
1310
  * @param callback function for call/ функция для вызова
1286
1311
  */
1287
1312
  static setPreparation(t) {
1288
- return this.preparation.set(t), b;
1313
+ return this.preparation.set(t), w;
1289
1314
  }
1290
1315
  /**
1291
1316
  * Modify the function after the request.
@@ -1294,7 +1319,7 @@ const b = class b {
1294
1319
  * @param callback function for call/ функция для вызова
1295
1320
  */
1296
1321
  static setEnd(t) {
1297
- return this.preparation.setEnd(t), b;
1322
+ return this.preparation.setEnd(t), w;
1298
1323
  }
1299
1324
  /**
1300
1325
  * To execute a request.
@@ -1303,7 +1328,7 @@ const b = class b {
1303
1328
  * @param pathRequest query string or list of parameters/ строка запроса или список параметров
1304
1329
  */
1305
1330
  static async request(t) {
1306
- return R(t) ? await this.fetch({
1331
+ return x(t) ? await this.fetch({
1307
1332
  path: t
1308
1333
  }) : await this.fetch(t);
1309
1334
  }
@@ -1315,7 +1340,7 @@ const b = class b {
1315
1340
  */
1316
1341
  static get(t) {
1317
1342
  return this.request(C(t, {
1318
- method: D.get
1343
+ method: L.get
1319
1344
  }));
1320
1345
  }
1321
1346
  /**
@@ -1326,7 +1351,7 @@ const b = class b {
1326
1351
  */
1327
1352
  static post(t) {
1328
1353
  return this.request(C(t, {
1329
- method: D.post
1354
+ method: L.post
1330
1355
  }));
1331
1356
  }
1332
1357
  /**
@@ -1337,7 +1362,7 @@ const b = class b {
1337
1362
  */
1338
1363
  static put(t) {
1339
1364
  return this.request(C(t, {
1340
- method: D.put
1365
+ method: L.put
1341
1366
  }));
1342
1367
  }
1343
1368
  /**
@@ -1348,7 +1373,7 @@ const b = class b {
1348
1373
  */
1349
1374
  static delete(t) {
1350
1375
  return this.request(C(t, {
1351
- method: D.delete
1376
+ method: L.delete
1352
1377
  }));
1353
1378
  }
1354
1379
  /**
@@ -1361,31 +1386,32 @@ const b = class b {
1361
1386
  const {
1362
1387
  toData: e = !0,
1363
1388
  hideError: s = !1,
1364
- queryReturn: n = void 0,
1389
+ queryReturn: r = void 0,
1365
1390
  globalPreparation: o = !0,
1366
1391
  globalEnd: a = !0
1367
1392
  } = t, u = await this.response.emulator(t);
1368
1393
  if (u)
1369
1394
  return u;
1370
- let h = {};
1371
- x.show();
1395
+ const h = new $t();
1396
+ let m;
1397
+ I.show();
1372
1398
  try {
1373
- await this.preparation.make(o);
1374
- const g = await this.makeQuery(t), d = await this.preparation.makeEnd(a, g);
1375
- if (this.status.setStatus(
1376
- g.status,
1377
- g.statusText
1378
- ), d != null && d.reset)
1379
- return x.hide(), await this.fetch(t);
1380
- h = await this.readData(
1381
- g,
1382
- n,
1383
- d
1399
+ await this.preparation.make(o, t);
1400
+ const d = await this.makeQuery(t), S = await this.preparation.makeEnd(a, d, t);
1401
+ if (h.setStatus(d.status, d.statusText), this.status.setStatus(d.status, d.statusText), S != null && S.reset)
1402
+ return I.hide(), await this.fetch(t);
1403
+ m = await this.readData(
1404
+ d,
1405
+ r,
1406
+ S
1384
1407
  );
1385
- } catch (g) {
1386
- s || console.error("Api: ", g), this.status.setError(String(g));
1408
+ } catch (d) {
1409
+ throw s || console.error("Api: ", d), h.setError(String(d)), this.status.setError(String(d)), I.hide(), d;
1387
1410
  }
1388
- return x.hide(), this.makeData(h, e);
1411
+ return I.hide(), h.setLastResponse(m), this.status.setLastResponse(m), this.makeStatus(
1412
+ this.makeData(m, e),
1413
+ h
1414
+ );
1389
1415
  }
1390
1416
  /**
1391
1417
  * Reading data from the response.
@@ -1396,8 +1422,8 @@ const b = class b {
1396
1422
  * @param end finalization data/ данные финализации
1397
1423
  */
1398
1424
  static async readData(t, e, s) {
1399
- var n;
1400
- return e ? await e(t) : "data" in s ? s.data : ((n = t.headers.get("Content-Type")) != null ? n : "").match("application/json") ? await t.json() : { data: await t.text() };
1425
+ var r;
1426
+ return e ? await e(t) : "data" in s ? s.data : ((r = t.headers.get("Content-Type")) != null ? r : "").match("application/json") ? await t.json() : { data: await t.text() };
1401
1427
  }
1402
1428
  /**
1403
1429
  * Executing the request.
@@ -1408,17 +1434,18 @@ const b = class b {
1408
1434
  static async makeQuery(t) {
1409
1435
  const e = this.requestDefault.request(t.request), {
1410
1436
  api: s = !0,
1411
- path: n = "",
1437
+ path: r = "",
1412
1438
  pathFull: o = void 0,
1413
- method: a = D.get,
1439
+ method: a = L.get,
1414
1440
  headers: u = {},
1415
1441
  type: h = "application/json;charset=UTF-8",
1416
- init: g = {}
1417
- } = t, d = o != null ? o : this.getUrl(n, s), v = `${d}${this.getBodyForGet(e, d, a)}`, V = this.headers.get(u, h), P = C(g, {
1442
+ init: m = {},
1443
+ controller: d = void 0
1444
+ } = t, S = o != null ? o : this.getUrl(r, s), G = `${S}${this.getBodyForGet(e, S, a)}`, Q = this.headers.get(u, h), Z = C(m, {
1418
1445
  method: a,
1419
1446
  body: this.getBody(e, a)
1420
1447
  });
1421
- return V && (P.headers = V), await fetch(v, P);
1448
+ return Q && (Z.headers = Q), d && (Z.signal = d.signal), await fetch(G, Z);
1422
1449
  }
1423
1450
  /**
1424
1451
  * Transforms data if needed.
@@ -1428,25 +1455,37 @@ const b = class b {
1428
1455
  * @param toData is it necessary to process the data/ нужно ли обрабатывать данные
1429
1456
  */
1430
1457
  static makeData(t, e) {
1431
- if (this.status.setLastResponse(t), t && e && A(t) && "data" in t) {
1432
- if (A(t.data)) {
1433
- const s = C(t.data);
1434
- return "success" in t && (s.success = t.success), s;
1435
- }
1458
+ if (!e || !t || !A(t) || !("data" in t))
1459
+ return t;
1460
+ if (t.data !== null && typeof t.data != "object" || at(t.data))
1436
1461
  return t.data;
1437
- }
1438
- return t;
1462
+ const s = C(t.data);
1463
+ return "success" in t && !("success" in s) && (s.success = t.success), "status" in t && !("status" in s) && (s.status = t.status), "message" in t && !("message" in s) && (s.message = t.message), s;
1464
+ }
1465
+ /**
1466
+ * Appends the status object to the response data if possible.
1467
+ *
1468
+ * Добавляет объект статуса к данным ответа, если это возможно.
1469
+ * @param data response data/ данные ответа
1470
+ * @param status status object/ объект статуса
1471
+ */
1472
+ static makeStatus(t, e) {
1473
+ return t && A(t) ? {
1474
+ ...t,
1475
+ statusObject: e.get()
1476
+ } : t;
1439
1477
  }
1440
1478
  };
1441
- c(b, "url", "/api/"), c(b, "headers", new zt()), c(b, "requestDefault", new Zt()), c(b, "status", new Vt()), c(b, "response", new Yt(b.requestDefault)), c(b, "preparation", new qt());
1442
- let z = b;
1443
- class ke {
1479
+ c(w, "url", "/api/"), c(w, "headers", new Zt()), c(w, "requestDefault", new Vt()), c(w, "status", new $t()), c(w, "response", new Yt(w.requestDefault)), c(w, "preparation", new qt());
1480
+ let H = w;
1481
+ class Ee {
1444
1482
  /**
1445
1483
  * Constructor
1446
1484
  * @param name channel name/ название канала
1447
1485
  * @param callback callback on message received/ колбэк на получение сообщения
1486
+ * @param callbackError callback on message error/ колбэк на ошибку сообщения
1448
1487
  */
1449
- constructor(t, e) {
1488
+ constructor(t, e, s) {
1450
1489
  c(this, "channel");
1451
1490
  /**
1452
1491
  * Update state on message received.
@@ -1458,13 +1497,32 @@ class ke {
1458
1497
  var e;
1459
1498
  return (e = this.callback) == null || e.call(this, t), this;
1460
1499
  });
1461
- if (this.callback = e, l())
1500
+ /**
1501
+ * Update error state on message error.
1502
+ *
1503
+ * Обновление состояния ошибки при получении ошибки сообщения.
1504
+ * @param event message error event/ событие ошибки сообщения
1505
+ */
1506
+ c(this, "updateError", (t) => {
1507
+ var e;
1508
+ return (e = this.callbackError) == null || e.call(this, t), this;
1509
+ });
1510
+ if (this.callback = e, this.callbackError = s, l())
1462
1511
  try {
1463
- this.channel = new BroadcastChannel(`${Jt()}__${t}`), this.channel.onmessage = this.update;
1464
- } catch (s) {
1465
- console.error(`BroadcastMessage ${t}:`, s);
1512
+ this.channel = new BroadcastChannel(`${Jt()}__${t}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
1513
+ } catch (r) {
1514
+ console.error(`BroadcastMessage ${t}:`, r);
1466
1515
  }
1467
1516
  }
1517
+ /**
1518
+ * Get the channel.
1519
+ *
1520
+ * Получить канал.
1521
+ * @returns channel/ канал
1522
+ */
1523
+ getChannel() {
1524
+ return this.channel;
1525
+ }
1468
1526
  /**
1469
1527
  * Send a message to the channel.
1470
1528
  *
@@ -1484,8 +1542,17 @@ class ke {
1484
1542
  setCallback(t) {
1485
1543
  return this.callback = t, this;
1486
1544
  }
1545
+ /**
1546
+ * Set the callback function to be called when a message error occurs.
1547
+ *
1548
+ * Установить функцию колбэка, которая будет вызвана при возникновении ошибки сообщения.
1549
+ * @param callbackError callback function/ функция колбэка
1550
+ */
1551
+ setCallbackError(t) {
1552
+ return this.callbackError = t, this;
1553
+ }
1487
1554
  }
1488
- const Jt = () => new T("__broadcast-name").get(() => `name_${J(1e6, 9999999)}`);
1555
+ const Jt = () => new T("__broadcast-name").get(() => `name_${q(1e6, 9999999)}`);
1489
1556
  class Mt {
1490
1557
  /**
1491
1558
  * Constructor
@@ -1600,8 +1667,8 @@ const O = class O {
1600
1667
  }
1601
1668
  };
1602
1669
  c(O, "cache"), O.cache = new Qt();
1603
- let $t = O;
1604
- function Bt(i, t = !1) {
1670
+ let bt = O;
1671
+ function Rt(i, t = !1) {
1605
1672
  if (typeof i == "string") {
1606
1673
  const e = i.trim();
1607
1674
  switch (e) {
@@ -1633,7 +1700,7 @@ function Bt(i, t = !1) {
1633
1700
  return i;
1634
1701
  }
1635
1702
  const Xt = "cookie-block";
1636
- class Ft {
1703
+ class xt {
1637
1704
  /**
1638
1705
  * Obtaining status.
1639
1706
  *
@@ -1653,8 +1720,8 @@ class Ft {
1653
1720
  this.storage.set(t);
1654
1721
  }
1655
1722
  }
1656
- c(Ft, "storage", new T(Xt));
1657
- const X = {}, ht = class ht {
1723
+ c(xt, "storage", new T(Xt));
1724
+ const X = {}, lt = class lt {
1658
1725
  constructor(t) {
1659
1726
  c(this, "value");
1660
1727
  c(this, "options", {});
@@ -1680,7 +1747,7 @@ const X = {}, ht = class ht {
1680
1747
  * @param options additional parameters/ дополнительные параметры
1681
1748
  */
1682
1749
  set(t, e) {
1683
- this.value = I(t), Object.assign(this.options, e), this.update();
1750
+ this.value = B(t), Object.assign(this.options, e), this.update();
1684
1751
  }
1685
1752
  /**
1686
1753
  * Delete cookie data.
@@ -1705,14 +1772,14 @@ const X = {}, ht = class ht {
1705
1772
  * Обновление данных cookie.
1706
1773
  */
1707
1774
  update() {
1708
- var t, e, s, n, o;
1709
- if (l() && !nt() && !Ft.get()) {
1775
+ var t, e, s, r, o;
1776
+ if (l() && !nt() && !xt.get()) {
1710
1777
  const a = String((t = this.value) != null ? t : "");
1711
1778
  document.cookie = [
1712
1779
  `${encodeURIComponent(this.name)}=${encodeURIComponent(a)}`,
1713
1780
  `max-age=${a === "" ? "-1" : this.getAge()}`,
1714
1781
  `SameSite=${(s = (e = this.options) == null ? void 0 : e.sameSite) != null ? s : "strict"}`,
1715
- ...(o = (n = this.options) == null ? void 0 : n.arguments) != null ? o : []
1782
+ ...(o = (r = this.options) == null ? void 0 : r.arguments) != null ? o : []
1716
1783
  ].join("; ");
1717
1784
  }
1718
1785
  }
@@ -1724,38 +1791,38 @@ const X = {}, ht = class ht {
1724
1791
  static updateData() {
1725
1792
  for (const t of document.cookie.split(";")) {
1726
1793
  const [e, s] = t.trim().split("=");
1727
- e && L(s) && (X[e] = Bt(s));
1794
+ e && v(s) && (X[e] = Rt(s));
1728
1795
  }
1729
1796
  }
1730
1797
  };
1731
- l() && !nt() && ht.updateData();
1732
- let pt = ht;
1798
+ l() && !nt() && lt.updateData();
1799
+ let wt = lt;
1733
1800
  const et = {};
1734
- function B(i) {
1735
- var n, o, a, u, h, g, d, v;
1801
+ function F(i) {
1802
+ var r, o, a, u, h, m, d, S;
1736
1803
  if (i instanceof Date)
1737
1804
  return i;
1738
- if (M(i))
1805
+ if (J(i))
1739
1806
  return /* @__PURE__ */ new Date();
1740
1807
  if (typeof i == "number")
1741
1808
  return new Date(i);
1742
- let t = i, e = w.getTimezoneFormat().trim();
1743
- i.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (V, P, G) => (t = P, e = G.trim(), V));
1744
- const s = (v = (d = (g = (h = (u = (a = (o = (n = /^\d{4}\d{2}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3")}T00:00:00`) != null ? n : /^\d{4}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})$/, "$1-$2")}-01T00:00:00`) != null ? o : /^\d{4}\d{2}\d{2} \d{2}:\d{2}:\d{2}$/.exec(t) && t.replace(/^(\d{4})(\d{2})(\d{2}) (\d{2}):(\d{2}):(\d{2})$/, "$1-$2-$3T$4:$5:$6")) != null ? a : /^\d{4}-\d{2}-\d{2}$/.exec(t) && `${t}T00:00:00`) != null ? u : /^\d{4}-\d{2}$/.exec(t) && `${t}-01T00:00:00`) != null ? h : /^\d{4}$/.exec(t) && `${t}-01-01T00:00:00`) != null ? g : /^\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}:00`) != null ? d : /^\d{2}:\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}`) != null ? v : t.replace(" ", "T");
1809
+ let t = i, e = p.getTimezoneFormat().trim();
1810
+ i.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (G, Q, Z) => (t = Q, e = Z.trim(), G));
1811
+ const s = (S = (d = (m = (h = (u = (a = (o = (r = /^\d{4}\d{2}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3")}T00:00:00`) != null ? r : /^\d{4}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})$/, "$1-$2")}-01T00:00:00`) != null ? o : /^\d{4}\d{2}\d{2} \d{2}:\d{2}:\d{2}$/.exec(t) && t.replace(/^(\d{4})(\d{2})(\d{2}) (\d{2}):(\d{2}):(\d{2})$/, "$1-$2-$3T$4:$5:$6")) != null ? a : /^\d{4}-\d{2}-\d{2}$/.exec(t) && `${t}T00:00:00`) != null ? u : /^\d{4}-\d{2}$/.exec(t) && `${t}-01T00:00:00`) != null ? h : /^\d{4}$/.exec(t) && `${t}-01-01T00:00:00`) != null ? m : /^\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}:00`) != null ? d : /^\d{2}:\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}`) != null ? S : t.replace(" ", "T");
1745
1812
  return /* @__PURE__ */ new Date(`${s.trim()}${e}`);
1746
1813
  }
1747
1814
  function _t(i, t) {
1748
- return f(i, (e) => e == null ? void 0 : e[t]);
1815
+ return g(i, (e) => e == null ? void 0 : e[t], !0);
1749
1816
  }
1750
- class Q {
1817
+ class M {
1751
1818
  /**
1752
1819
  * Constructor
1753
1820
  * @param code country code, full form language-country or one of them/
1754
1821
  * код страны, полный вид язык-страна или один из них
1755
1822
  */
1756
- constructor(t = w.getLocation()) {
1823
+ constructor(t = p.getLocation()) {
1757
1824
  c(this, "geo");
1758
- this.geo = w.find(t);
1825
+ this.geo = p.find(t);
1759
1826
  const e = this.getLocation();
1760
1827
  if (e in it)
1761
1828
  return it[e];
@@ -1768,8 +1835,8 @@ class Q {
1768
1835
  * @param code country code, full form language-country or one of them/
1769
1836
  * код страны, полный вид язык-страна или один из них
1770
1837
  */
1771
- static getInstance(t = w.getLocation()) {
1772
- return new Q(t);
1838
+ static getInstance(t = p.getLocation()) {
1839
+ return new M(t);
1773
1840
  }
1774
1841
  /**
1775
1842
  * Returns country code and language.
@@ -1797,17 +1864,17 @@ class Q {
1797
1864
  */
1798
1865
  display(t, e) {
1799
1866
  var o;
1800
- let s = { type: "language" }, n;
1867
+ let s = { type: "language" }, r;
1801
1868
  e && (typeof e == "string" ? s.type = e : s = {
1802
1869
  ...s,
1803
1870
  ...e
1804
1871
  });
1805
1872
  try {
1806
- l() && (t ? n = new Intl.DisplayNames(this.getLocation(), s).of(t) : s.type === "language" ? n = new Intl.DisplayNames(this.getLocation(), s).of(this.geo.language) : s.type === "region" && (n = new Intl.DisplayNames(this.getLocation(), s).of(this.geo.country)));
1873
+ l() && (t ? r = new Intl.DisplayNames(this.getLocation(), s).of(t) : s.type === "language" ? r = new Intl.DisplayNames(this.getLocation(), s).of(this.geo.language) : s.type === "region" && (r = new Intl.DisplayNames(this.getLocation(), s).of(this.geo.country)));
1807
1874
  } catch (a) {
1808
1875
  console.error("display: ", a);
1809
1876
  }
1810
- return (o = n != null ? n : t) != null ? o : "";
1877
+ return (o = r != null ? r : t) != null ? o : "";
1811
1878
  }
1812
1879
  /**
1813
1880
  * Get display names of language.
@@ -1821,7 +1888,7 @@ class Q {
1821
1888
  type: "language",
1822
1889
  style: e
1823
1890
  };
1824
- return this.display(w.getByCode(t).language, s);
1891
+ return this.display(p.getByCode(t).language, s);
1825
1892
  }
1826
1893
  /**
1827
1894
  * Get display names of region.
@@ -1846,7 +1913,7 @@ class Q {
1846
1913
  * @param surname surname middle name (optional)/ отчество
1847
1914
  * @param short shorten the names/ сократить названия
1848
1915
  */
1849
- fullName(t, e, s, n) {
1916
+ fullName(t, e, s, r) {
1850
1917
  var u, h;
1851
1918
  const o = (h = (u = this.geo) == null ? void 0 : u.nameFormat) != null ? h : "fl";
1852
1919
  let a;
@@ -1864,7 +1931,7 @@ class Q {
1864
1931
  a = `${e} ${t}`;
1865
1932
  break;
1866
1933
  }
1867
- return n ? a.replace(/ (.)[^ ]+/ig, " $1.") : a;
1934
+ return r ? a.replace(/ (.)[^ ]+/ig, " $1.") : a;
1868
1935
  }
1869
1936
  /**
1870
1937
  * In basic use without specifying a locale, a formatted string.
@@ -1875,8 +1942,8 @@ class Q {
1875
1942
  * или всеми свойствами
1876
1943
  */
1877
1944
  number(t, e) {
1878
- var s, n;
1879
- return ((n = (s = this.numberObject(e)) == null ? void 0 : s.format) == null ? void 0 : n.call(s, k(t))) || t.toString();
1945
+ var s, r;
1946
+ return ((r = (s = this.numberObject(e)) == null ? void 0 : s.format) == null ? void 0 : r.call(s, k(t))) || t.toString();
1880
1947
  }
1881
1948
  /**
1882
1949
  * Decimal point symbol.
@@ -1884,8 +1951,8 @@ class Q {
1884
1951
  * Символ десятичной точки.
1885
1952
  */
1886
1953
  decimal() {
1887
- var t, e, s, n, o;
1888
- return ((o = (n = (s = (e = (t = this.numberObject()) == null ? void 0 : t.formatToParts) == null ? void 0 : e.call(t, 1.2)) == null ? void 0 : s.find) == null ? void 0 : n.call(s, (a) => a.type === "decimal")) == null ? void 0 : o.value) || ".";
1954
+ var t, e, s, r, o;
1955
+ return ((o = (r = (s = (e = (t = this.numberObject()) == null ? void 0 : t.formatToParts) == null ? void 0 : e.call(t, 1.2)) == null ? void 0 : s.find) == null ? void 0 : r.call(s, (a) => a.type === "decimal")) == null ? void 0 : o.value) || ".";
1889
1956
  }
1890
1957
  /**
1891
1958
  * Currency formatting.
@@ -1897,24 +1964,24 @@ class Q {
1897
1964
  * @param numberOnly do not display the currency symbol/ не выводить значок валюты
1898
1965
  */
1899
1966
  currency(t, e, s = !1) {
1900
- const n = {
1967
+ const r = {
1901
1968
  style: "currency",
1902
1969
  currencyDisplay: "symbol",
1903
1970
  ...typeof e == "string" ? { currency: e } : e || {}
1904
- }, o = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...a) => (n.currency = String(a[2]).toUpperCase(), String(a[1])));
1971
+ }, o = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...a) => (r.currency = String(a[2]).toUpperCase(), String(a[1])));
1905
1972
  if (s) {
1906
- const a = this.numberObject(n);
1973
+ const a = this.numberObject(r);
1907
1974
  return a ? _t(
1908
1975
  a.formatToParts(k(t)).filter((u) => ["literal", "currency"].indexOf(u.type) === -1),
1909
1976
  "value"
1910
1977
  ).join("") : t.toString();
1911
- } else return "currency" in n ? this.number(
1978
+ } else return "currency" in r ? this.number(
1912
1979
  typeof t == "number" ? t : o,
1913
- n
1980
+ r
1914
1981
  ) : this.number(
1915
1982
  typeof t == "number" ? t : o,
1916
1983
  {
1917
- ...n,
1984
+ ...r,
1918
1985
  style: "decimal"
1919
1986
  }
1920
1987
  );
@@ -1929,12 +1996,12 @@ class Q {
1929
1996
  * как отобразить валюту в формате валюты
1930
1997
  */
1931
1998
  currencySymbol(t, e = "symbol") {
1932
- var s, n, o, a, u;
1933
- return ((u = (a = (o = (n = (s = this.numberObject({
1999
+ var s, r, o, a, u;
2000
+ return ((u = (a = (o = (r = (s = this.numberObject({
1934
2001
  style: "currency",
1935
2002
  currencyDisplay: e,
1936
2003
  currency: t
1937
- })) == null ? void 0 : s.formatToParts) == null ? void 0 : n.call(s, 100)) == null ? void 0 : o.find) == null ? void 0 : a.call(o, (h) => h.type === "currency")) == null ? void 0 : u.value) || t;
2004
+ })) == null ? void 0 : s.formatToParts) == null ? void 0 : r.call(s, 100)) == null ? void 0 : o.find) == null ? void 0 : a.call(o, (h) => h.type === "currency")) == null ? void 0 : u.value) || t;
1938
2005
  }
1939
2006
  /**
1940
2007
  * Unit formatting.
@@ -1949,8 +2016,8 @@ class Q {
1949
2016
  const s = {
1950
2017
  style: "unit",
1951
2018
  ...typeof e == "string" ? { unit: e } : e || {}
1952
- }, n = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]+)$/i, (...o) => (s.unit = String(o[2]).toLowerCase(), String(o[1])));
1953
- return this.number(n, s);
2019
+ }, r = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]+)$/i, (...o) => (s.unit = String(o[2]).toLowerCase(), String(o[1])));
2020
+ return this.number(r, s);
1954
2021
  }
1955
2022
  /**
1956
2023
  * Возвращает отформатированный размер файла
@@ -1960,7 +2027,7 @@ class Q {
1960
2027
  */
1961
2028
  sizeFile(t, e = "byte") {
1962
2029
  const s = k(t);
1963
- if (s > 1024 && R(e))
2030
+ if (s > 1024 && x(e))
1964
2031
  switch (e) {
1965
2032
  case "byte":
1966
2033
  return this.sizeFile(s / 1024, "kilobyte");
@@ -2007,15 +2074,15 @@ class Q {
2007
2074
  * @param options Property for PluralRules/ свойство для PluralRules
2008
2075
  * @param optionsNumber an object with some or all properties/ объект с некоторыми или всеми свойствами
2009
2076
  */
2010
- plural(t, e, s, n) {
2077
+ plural(t, e, s, r) {
2011
2078
  var u;
2012
2079
  const o = k(t), a = e.split("|");
2013
2080
  if (a.length > 1)
2014
2081
  try {
2015
2082
  if (l()) {
2016
- const g = new Intl.PluralRules(this.getLocation(), s).select(o);
2083
+ const m = new Intl.PluralRules(this.getLocation(), s).select(o);
2017
2084
  let d;
2018
- switch (g) {
2085
+ switch (m) {
2019
2086
  case "zero":
2020
2087
  d = a[a.length - 1];
2021
2088
  break;
@@ -2035,12 +2102,12 @@ class Q {
2035
2102
  a.length === 6 ? d = a[a.length - 2] : d = a[a.length - 1];
2036
2103
  break;
2037
2104
  }
2038
- return `${this.number(o, n)} ${d != null ? d : ""}`.trim();
2105
+ return `${this.number(o, r)} ${d != null ? d : ""}`.trim();
2039
2106
  }
2040
2107
  } catch (h) {
2041
2108
  console.error("plural: ", h);
2042
2109
  }
2043
- return `${this.number(o, n)} ${(u = a == null ? void 0 : a[0]) != null ? u : ""}`.trim();
2110
+ return `${this.number(o, r)} ${(u = a == null ? void 0 : a[0]) != null ? u : ""}`.trim();
2044
2111
  }
2045
2112
  /**
2046
2113
  * Enables language-sensitive date and time formatting.
@@ -2051,9 +2118,9 @@ class Q {
2051
2118
  * @param styleOptions the representation of the month/ представление месяца
2052
2119
  * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
2053
2120
  */
2054
- date(t, e, s, n) {
2055
- const o = B(t), a = typeof s == "string", u = this.dateOptions(e, a ? s : "short");
2056
- return n && (u.hour12 = !1), a || Object.assign(u, s), o.toLocaleString(this.getLocation(), u);
2121
+ date(t, e, s, r) {
2122
+ const o = F(t), a = typeof s == "string", u = this.dateOptions(e, a ? s : "short");
2123
+ return r && (u.hour12 = !1), a || Object.assign(u, s), o.toLocaleString(this.getLocation(), u);
2057
2124
  }
2058
2125
  /**
2059
2126
  * Enables language-sensitive relative time formatting.
@@ -2065,11 +2132,11 @@ class Q {
2065
2132
  * @param todayValue current day/ текущий день
2066
2133
  */
2067
2134
  relative(t, e, s) {
2068
- const n = B(t), o = s || /* @__PURE__ */ new Date(), a = {
2135
+ const r = F(t), o = s || /* @__PURE__ */ new Date(), a = {
2069
2136
  numeric: "auto",
2070
2137
  ...typeof e == "string" ? { style: e } : e || {}
2071
2138
  };
2072
- let u = "second", h = (n.getTime() - o.getTime()) / 1e3;
2139
+ let u = "second", h = (r.getTime() - o.getTime()) / 1e3;
2073
2140
  return Math.abs(h) >= 60 && (u = "minute", h /= 60, Math.abs(h) >= 60 && (u = "hour", h /= 60, Math.abs(h) >= 24 && (u = "day", h /= 24, Math.abs(h) >= 30 && (u = "month", h /= 30, Math.abs(h) >= 12 && (u = "year", h /= 12))))), this.relativeByValue(h, u, a);
2074
2141
  }
2075
2142
  /**
@@ -2090,12 +2157,12 @@ class Q {
2090
2157
  * @param type type of data format/ тип формата data
2091
2158
  * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
2092
2159
  */
2093
- relativeLimit(t, e, s, n, o, a, u) {
2094
- const h = B(t), g = s || /* @__PURE__ */ new Date(), d = new Date(g), v = new Date(g);
2095
- return d.setDate(g.getDate() - e), v.setDate(g.getDate() + e), h >= d && h <= v ? this.relative(
2160
+ relativeLimit(t, e, s, r, o, a, u) {
2161
+ const h = F(t), m = s || /* @__PURE__ */ new Date(), d = new Date(m), S = new Date(m);
2162
+ return d.setDate(m.getDate() - e), S.setDate(m.getDate() + e), h >= d && h <= S ? this.relative(
2096
2163
  h,
2097
- n,
2098
- g
2164
+ r,
2165
+ m
2099
2166
  ) : this.date(
2100
2167
  h,
2101
2168
  a,
@@ -2110,13 +2177,13 @@ class Q {
2110
2177
  * @param styleOptions additional option or formatting style/ дополнительная опция или стиль форматирования
2111
2178
  */
2112
2179
  relativeByValue(t, e, s) {
2113
- const n = {
2180
+ const r = {
2114
2181
  numeric: "auto",
2115
2182
  ...typeof s == "string" ? { style: s } : s || {}
2116
2183
  };
2117
2184
  try {
2118
2185
  if (l())
2119
- return new Intl.RelativeTimeFormat(this.getLocation(), n).format(Math.round(k(t)), e);
2186
+ return new Intl.RelativeTimeFormat(this.getLocation(), r).format(Math.round(k(t)), e);
2120
2187
  } catch (o) {
2121
2188
  console.error("relative: ", o);
2122
2189
  }
@@ -2131,7 +2198,7 @@ class Q {
2131
2198
  month(t, e) {
2132
2199
  try {
2133
2200
  if (l())
2134
- return Intl.DateTimeFormat(this.getLocation(), { month: e || "long" }).format(B(t));
2201
+ return Intl.DateTimeFormat(this.getLocation(), { month: e || "long" }).format(F(t));
2135
2202
  } catch (s) {
2136
2203
  console.error("month: ", s);
2137
2204
  }
@@ -2150,10 +2217,10 @@ class Q {
2150
2217
  }];
2151
2218
  try {
2152
2219
  if (l()) {
2153
- const s = /* @__PURE__ */ new Date(), n = Intl.DateTimeFormat(this.getLocation(), { month: t || "long" });
2220
+ const s = /* @__PURE__ */ new Date(), r = Intl.DateTimeFormat(this.getLocation(), { month: t || "long" });
2154
2221
  for (let o = 0; o < 12; o++)
2155
2222
  s.setMonth(o), e.push({
2156
- label: n.format(s).replace(/^./, (a) => a.toUpperCase()),
2223
+ label: r.format(s).replace(/^./, (a) => a.toUpperCase()),
2157
2224
  value: o + 1
2158
2225
  });
2159
2226
  }
@@ -2172,7 +2239,7 @@ class Q {
2172
2239
  weekday(t, e) {
2173
2240
  try {
2174
2241
  if (l())
2175
- return Intl.DateTimeFormat(this.getLocation(), { weekday: e || "long" }).format(B(t));
2242
+ return Intl.DateTimeFormat(this.getLocation(), { weekday: e || "long" }).format(F(t));
2176
2243
  } catch (s) {
2177
2244
  console.error("weekday: ", s);
2178
2245
  }
@@ -2191,11 +2258,11 @@ class Q {
2191
2258
  }];
2192
2259
  try {
2193
2260
  if (l()) {
2194
- const s = /* @__PURE__ */ new Date(), n = Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }), o = s.getDay() + (this.geo.firstDay === "Mo" ? -1 : 1);
2261
+ const s = /* @__PURE__ */ new Date(), r = Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }), o = s.getDay() + (this.geo.firstDay === "Mo" ? -1 : 1);
2195
2262
  s.setDate(s.getDate() - o);
2196
2263
  for (let a = 0; a < 7; a++)
2197
2264
  e.push({
2198
- label: n.format(s).replace(/^./, (u) => u.toUpperCase()),
2265
+ label: r.format(s).replace(/^./, (u) => u.toUpperCase()),
2199
2266
  value: s.getDay()
2200
2267
  }), s.setDate(s.getDate() + 1);
2201
2268
  }
@@ -2220,10 +2287,10 @@ class Q {
2220
2287
  * @param data an array with data/ массив с данными
2221
2288
  * @param compareFn a function for sorting/ функция для сортировки
2222
2289
  */
2223
- sort(t, e = (s, n) => [s, n]) {
2290
+ sort(t, e = (s, r) => [s, r]) {
2224
2291
  if (l()) {
2225
2292
  const s = new Intl.Collator(this.getLocation());
2226
- return t.sort((n, o) => s.compare(...e(n, o)));
2293
+ return t.sort((r, o) => s.compare(...e(r, o)));
2227
2294
  }
2228
2295
  return t;
2229
2296
  }
@@ -2255,18 +2322,18 @@ class Q {
2255
2322
  }
2256
2323
  }
2257
2324
  const it = {};
2258
- class ct {
2325
+ class ut {
2259
2326
  /**
2260
2327
  * Constructor
2261
2328
  * @param date date for processing/ дата для обработки
2262
2329
  * @param type type of date format for output/ тип формата даты вывода
2263
2330
  * @param code country and language code/ код страны и языка
2264
2331
  */
2265
- constructor(t, e = "date", s = w.getLocation()) {
2332
+ constructor(t, e = "date", s = p.getLocation()) {
2266
2333
  c(this, "date");
2267
2334
  c(this, "hour24", !1);
2268
2335
  c(this, "watch");
2269
- this.type = e, this.code = s, this.date = B(t);
2336
+ this.type = e, this.code = s, this.date = F(t);
2270
2337
  }
2271
2338
  /**
2272
2339
  * Returns an object for working with formatting.
@@ -2274,7 +2341,7 @@ class ct {
2274
2341
  * Возвращает объект для работы с форматированием.
2275
2342
  */
2276
2343
  getIntl() {
2277
- return new Q(this.code);
2344
+ return new M(this.code);
2278
2345
  }
2279
2346
  /**
2280
2347
  * Returns a Date object.
@@ -2333,8 +2400,8 @@ class ct {
2333
2400
  const s = e / 60 * -1;
2334
2401
  if (t === "hour")
2335
2402
  return this.getIntl().number(Math.trunc(s), { signDisplay: "always" });
2336
- const n = this.toTimeZoneHourFormat(s), o = s.toString().match(/.\d+/) ? "30" : "00";
2337
- return t === "RFC" ? `${n}${o}` : `${n}:${o}`;
2403
+ const r = this.toTimeZoneHourFormat(s), o = s.toString().match(/.\d+/) ? "30" : "00";
2404
+ return t === "RFC" ? `${r}${o}` : `${r}:${o}`;
2338
2405
  }
2339
2406
  /**
2340
2407
  * Returns the code of the first day of the week.
@@ -2479,13 +2546,13 @@ class ct {
2479
2546
  * @param timeZone add time zone/ добавить временную зону
2480
2547
  */
2481
2548
  standard(t = !0) {
2482
- const e = new ct(this.date, this.type, "en-GB"), s = [];
2483
- let n;
2484
- return e.setHour24(!0), this.type === "hour-minute" ? n = e.locale(this.type, {
2549
+ const e = new ut(this.date, this.type, "en-GB"), s = [];
2550
+ let r;
2551
+ return e.setHour24(!0), this.type === "hour-minute" ? r = e.locale(this.type, {
2485
2552
  year: "numeric",
2486
2553
  month: "2-digit",
2487
2554
  hour12: !1
2488
- }) : (["full", "datetime", "date", "year-month", "year", "month", "day"].indexOf(this.type) !== -1 && (s.push(e.localeYear()), s.push(e.localeMonth("2-digit"))), ["full", "datetime", "date", "year", "month", "day"].indexOf(this.type) !== -1 && s.push(e.localeDay("2-digit")), ["full", "datetime", "time", "hour", "minute", "second"].indexOf(this.type) !== -1 && (n = e.locale("time"))), `${s.join("-")}${n ? `T${n}${t ? e.getTimeZone() : ""}` : ""}`;
2555
+ }) : (["full", "datetime", "date", "year-month", "year", "month", "day"].indexOf(this.type) !== -1 && (s.push(e.localeYear()), s.push(e.localeMonth("2-digit"))), ["full", "datetime", "date", "year", "month", "day"].indexOf(this.type) !== -1 && s.push(e.localeDay("2-digit")), ["full", "datetime", "time", "hour", "minute", "second"].indexOf(this.type) !== -1 && (r = e.locale("time"))), `${s.join("-")}${r ? `T${r}${t ? e.getTimeZone() : ""}` : ""}`;
2489
2556
  }
2490
2557
  /**
2491
2558
  * Change the date completely.
@@ -2495,7 +2562,7 @@ class ct {
2495
2562
  * целочисленное значение, представляющее число
2496
2563
  */
2497
2564
  setDate(t) {
2498
- return this.date = B(t), this.update(), this;
2565
+ return this.date = F(t), this.update(), this;
2499
2566
  }
2500
2567
  /**
2501
2568
  * Change the type of data output.
@@ -2918,87 +2985,12 @@ class ct {
2918
2985
  ), this;
2919
2986
  }
2920
2987
  }
2921
- class Ae {
2922
- /**
2923
- * Constructor
2924
- * @param element HTML element to capture/ HTML элемент для захвата
2925
- */
2926
- constructor(t) {
2927
- this.element = t;
2928
- }
2929
- /**
2930
- * Takes a screenshot of the element.
2931
- *
2932
- * Делает скриншот элемента.
2933
- */
2934
- take() {
2935
- return new Promise((t, e) => {
2936
- const {
2937
- width: s,
2938
- height: n
2939
- } = this.element.getBoundingClientRect();
2940
- if (s === 0 || n === 0)
2941
- return e(new Error("Element has no dimensions"));
2942
- const o = document.createElement("canvas"), a = o.getContext("2d");
2943
- if (!a)
2944
- return e(new Error("Could not get canvas context"));
2945
- const u = window.devicePixelRatio || 1;
2946
- o.width = s * u, o.height = n * u, o.style.width = `${s}px`, o.style.height = `${n}px`, a.scale(u, u);
2947
- const h = this.getStyles(), g = this.element.outerHTML, d = `
2948
- <svg xmlns="http://www.w3.org/2000/svg" width="${s}" height="${n}">
2949
- <foreignObject x="0" y="0" width="100%" height="100%">
2950
- <style>${h}</style>
2951
- <div xmlns="http://www.w3.org/1999/xhtml">${g}</div>
2952
- </foreignObject>
2953
- </svg>
2954
- `, v = new Image(), P = "data:image/svg+xml;base64," + btoa(unescape(encodeURIComponent(d)));
2955
- v.onload = () => {
2956
- a.drawImage(v, 0, 0, s, n), t(o.toDataURL("image/png"));
2957
- }, v.onerror = (G) => {
2958
- console.error("Screenshot failed", {
2959
- error: G,
2960
- svg: d
2961
- }), e(new Error("Failed to load SVG image for screenshot. See console for details."));
2962
- }, v.src = P;
2963
- });
2964
- }
2965
- /**
2966
- * Takes a screenshot and downloads it.
2967
- *
2968
- * Делает скриншот и скачивает его.
2969
- * @param filename name of the file to download/ имя файла для скачивания
2970
- */
2971
- async download(t = "screenshot.png") {
2972
- const e = await this.take(), s = document.createElement("a");
2973
- s.href = e, s.download = t, document.body.appendChild(s), s.click(), document.body.removeChild(s);
2974
- }
2975
- /**
2976
- * Gathers all CSS styles from the document's stylesheets.
2977
- *
2978
- * Собирает все стили CSS из таблиц стилей документа.
2979
- */
2980
- getStyles() {
2981
- let t = "";
2982
- try {
2983
- for (const e of Array.from(document.styleSheets))
2984
- try {
2985
- for (const s of Array.from(e.cssRules))
2986
- t += s.cssText;
2987
- } catch (s) {
2988
- console.warn("Could not read CSS rules from a stylesheet due to CORS.", s);
2989
- }
2990
- } catch (e) {
2991
- console.error("Could not access stylesheets.", e);
2992
- }
2993
- return t;
2994
- }
2995
- }
2996
- const r = "f", U = class U {
2988
+ const n = "f", W = class W {
2997
2989
  /**
2998
2990
  * Constructor
2999
2991
  * @param code country and language code/ код страны и языка
3000
2992
  */
3001
- constructor(t = w.getLocation()) {
2993
+ constructor(t = p.getLocation()) {
3002
2994
  this.code = t;
3003
2995
  }
3004
2996
  /**
@@ -3009,15 +3001,15 @@ const r = "f", U = class U {
3009
3001
  */
3010
3002
  get(t = this.code) {
3011
3003
  var s;
3012
- const e = w.find(t);
3004
+ const e = p.find(t);
3013
3005
  if (e) {
3014
- const n = this.getCountry(e);
3006
+ const r = this.getCountry(e);
3015
3007
  return {
3016
3008
  language: this.getLanguage(e),
3017
- country: n,
3009
+ country: r,
3018
3010
  standard: e.standard,
3019
- icon: (s = U.flags) == null ? void 0 : s[e.country],
3020
- label: n,
3011
+ icon: (s = W.flags) == null ? void 0 : s[e.country],
3012
+ label: r,
3021
3013
  value: e.country
3022
3014
  };
3023
3015
  }
@@ -3039,7 +3031,7 @@ const r = "f", U = class U {
3039
3031
  * @param codes country code/ код страны
3040
3032
  */
3041
3033
  getList(t) {
3042
- return f(this.getCodes(t), (e) => this.get(e));
3034
+ return g(this.getCodes(t), (e) => this.get(e));
3043
3035
  }
3044
3036
  /**
3045
3037
  * Getting a list of countries by an array of codes in national language.
@@ -3048,8 +3040,8 @@ const r = "f", U = class U {
3048
3040
  * @param codes country code/ код страны.
3049
3041
  */
3050
3042
  getNational(t) {
3051
- return f(this.getList(t), (e) => {
3052
- const s = new U(e.standard).get(e.standard);
3043
+ return g(this.getList(t), (e) => {
3044
+ const s = new W(e.standard).get(e.standard);
3053
3045
  return {
3054
3046
  ...e,
3055
3047
  description: s == null ? void 0 : s.country,
@@ -3073,7 +3065,7 @@ const r = "f", U = class U {
3073
3065
  * Возвращает специальный объект для работы с форматированием.
3074
3066
  */
3075
3067
  getLocation() {
3076
- return new Q(this.code);
3068
+ return new M(this.code);
3077
3069
  }
3078
3070
  /**
3079
3071
  * Returns a list of countries to retrieve data from.
@@ -3082,7 +3074,7 @@ const r = "f", U = class U {
3082
3074
  * @param codes country code/ код страны
3083
3075
  */
3084
3076
  getCodes(t) {
3085
- return t != null ? t : Object.keys(U.flags);
3077
+ return t != null ? t : Object.keys(W.flags);
3086
3078
  }
3087
3079
  /**
3088
3080
  * Getting the name of the language.
@@ -3103,250 +3095,250 @@ const r = "f", U = class U {
3103
3095
  return this.getLocation().countryName(t.country);
3104
3096
  }
3105
3097
  };
3106
- c(U, "flags", {
3107
- AD: `${r}-ad`,
3108
- AE: `${r}-ae`,
3109
- AF: `${r}-af`,
3110
- AG: `${r}-ag`,
3111
- AI: `${r}-ai`,
3112
- AL: `${r}-al`,
3113
- AM: `${r}-am`,
3114
- AN: `${r}-an`,
3115
- AO: `${r}-ao`,
3116
- AQ: `${r}-aq`,
3117
- AR: `${r}-ar`,
3118
- AS: `${r}-as`,
3119
- AT: `${r}-at`,
3120
- AU: `${r}-au`,
3121
- AW: `${r}-aw`,
3122
- AZ: `${r}-az`,
3123
- BA: `${r}-ba`,
3124
- BB: `${r}-bb`,
3125
- BD: `${r}-bd`,
3126
- BE: `${r}-be`,
3127
- BF: `${r}-bf`,
3128
- BG: `${r}-bg`,
3129
- BH: `${r}-bh`,
3130
- BI: `${r}-bi`,
3131
- BJ: `${r}-bj`,
3132
- BL: `${r}-bl`,
3133
- BM: `${r}-bm`,
3134
- BN: `${r}-bn`,
3135
- BO: `${r}-bo`,
3136
- BR: `${r}-br`,
3137
- BS: `${r}-bs`,
3138
- BT: `${r}-bt`,
3139
- BW: `${r}-bw`,
3140
- BY: `${r}-by`,
3141
- BZ: `${r}-bz`,
3142
- CA: `${r}-ca`,
3143
- CC: `${r}-cc`,
3144
- CD: `${r}-cd`,
3145
- CF: `${r}-cf`,
3146
- CG: `${r}-cg`,
3147
- CH: `${r}-ch`,
3148
- CI: `${r}-ci`,
3149
- CK: `${r}-ck`,
3150
- CL: `${r}-cl`,
3151
- CM: `${r}-cm`,
3152
- CN: `${r}-cn`,
3153
- CO: `${r}-co`,
3154
- CR: `${r}-cr`,
3155
- CU: `${r}-cu`,
3156
- CV: `${r}-cv`,
3157
- CW: `${r}-cw`,
3158
- CX: `${r}-cx`,
3159
- CY: `${r}-cy`,
3160
- CZ: `${r}-cz`,
3161
- DE: `${r}-de`,
3162
- DJ: `${r}-dj`,
3163
- DK: `${r}-dk`,
3164
- DM: `${r}-dm`,
3165
- DZ: `${r}-dz`,
3166
- EC: `${r}-ec`,
3167
- EE: `${r}-ee`,
3168
- EG: `${r}-eg`,
3169
- EH: `${r}-eh`,
3170
- ER: `${r}-er`,
3171
- ES: `${r}-es`,
3172
- ET: `${r}-et`,
3173
- FI: `${r}-fi`,
3174
- FJ: `${r}-fj`,
3175
- FK: `${r}-fk`,
3176
- FM: `${r}-fm`,
3177
- FO: `${r}-fo`,
3178
- FR: `${r}-fr`,
3179
- GA: `${r}-ga`,
3180
- GB: `${r}-gb`,
3181
- GD: `${r}-gd`,
3182
- GE: `${r}-ge`,
3183
- GF: `${r}-gf`,
3184
- GG: `${r}-gg`,
3185
- GH: `${r}-gh`,
3186
- GI: `${r}-gi`,
3187
- GL: `${r}-gl`,
3188
- GM: `${r}-gm`,
3189
- GN: `${r}-gn`,
3190
- GQ: `${r}-gq`,
3191
- GR: `${r}-gr`,
3192
- GT: `${r}-gt`,
3193
- GU: `${r}-gu`,
3194
- GW: `${r}-gw`,
3195
- GY: `${r}-gy`,
3196
- HK: `${r}-hk`,
3197
- HN: `${r}-hn`,
3198
- HR: `${r}-hr`,
3199
- HT: `${r}-ht`,
3200
- HU: `${r}-hu`,
3201
- ID: `${r}-id`,
3202
- IE: `${r}-ie`,
3203
- IL: `${r}-il`,
3204
- IM: `${r}-im`,
3205
- IN: `${r}-in`,
3206
- IO: `${r}-io`,
3207
- IQ: `${r}-iq`,
3208
- IR: `${r}-ir`,
3209
- IS: `${r}-is`,
3210
- IT: `${r}-it`,
3211
- JE: `${r}-je`,
3212
- JM: `${r}-jm`,
3213
- JO: `${r}-jo`,
3214
- JP: `${r}-jp`,
3215
- KE: `${r}-ke`,
3216
- KG: `${r}-kg`,
3217
- KH: `${r}-kh`,
3218
- KI: `${r}-ki`,
3219
- KM: `${r}-km`,
3220
- KN: `${r}-kn`,
3221
- KP: `${r}-kp`,
3222
- KR: `${r}-kr`,
3223
- KW: `${r}-kw`,
3224
- KY: `${r}-ky`,
3225
- KZ: `${r}-kz`,
3226
- LA: `${r}-la`,
3227
- LB: `${r}-lb`,
3228
- LC: `${r}-lc`,
3229
- LI: `${r}-li`,
3230
- LK: `${r}-lk`,
3231
- LR: `${r}-lr`,
3232
- LS: `${r}-ls`,
3233
- LT: `${r}-lt`,
3234
- LU: `${r}-lu`,
3235
- LV: `${r}-lv`,
3236
- LY: `${r}-ly`,
3237
- MA: `${r}-ma`,
3238
- MC: `${r}-mc`,
3239
- MD: `${r}-md`,
3240
- ME: `${r}-me`,
3241
- MF: `${r}-mf`,
3242
- MG: `${r}-mg`,
3243
- MH: `${r}-mh`,
3244
- MK: `${r}-mk`,
3245
- ML: `${r}-ml`,
3246
- MM: `${r}-mm`,
3247
- MN: `${r}-mn`,
3248
- MO: `${r}-mo`,
3249
- MP: `${r}-mp`,
3250
- MQ: `${r}-mq`,
3251
- MR: `${r}-mr`,
3252
- MS: `${r}-ms`,
3253
- MT: `${r}-mt`,
3254
- MU: `${r}-mu`,
3255
- MV: `${r}-mv`,
3256
- MW: `${r}-mw`,
3257
- MX: `${r}-mx`,
3258
- MY: `${r}-my`,
3259
- MZ: `${r}-mz`,
3260
- NA: `${r}-na`,
3261
- NC: `${r}-nc`,
3262
- NE: `${r}-ne`,
3263
- NF: `${r}-nf`,
3264
- NG: `${r}-ng`,
3265
- NI: `${r}-ni`,
3266
- NL: `${r}-nl`,
3267
- NO: `${r}-no`,
3268
- NP: `${r}-np`,
3269
- NR: `${r}-nr`,
3270
- NU: `${r}-nu`,
3271
- NZ: `${r}-nz`,
3272
- OM: `${r}-om`,
3273
- PA: `${r}-pa`,
3274
- PE: `${r}-pe`,
3275
- PF: `${r}-pf`,
3276
- PG: `${r}-pg`,
3277
- PH: `${r}-ph`,
3278
- PK: `${r}-pk`,
3279
- PL: `${r}-pl`,
3280
- PM: `${r}-pm`,
3281
- PN: `${r}-pn`,
3282
- PR: `${r}-pr`,
3283
- PS: `${r}-ps`,
3284
- PT: `${r}-pt`,
3285
- PW: `${r}-pw`,
3286
- PY: `${r}-py`,
3287
- QA: `${r}-qa`,
3288
- RE: `${r}-re`,
3289
- RO: `${r}-ro`,
3290
- RS: `${r}-rs`,
3291
- RU: `${r}-ru`,
3292
- RW: `${r}-rw`,
3293
- SA: `${r}-sa`,
3294
- SB: `${r}-sb`,
3295
- SC: `${r}-sc`,
3296
- SD: `${r}-sd`,
3297
- SE: `${r}-se`,
3298
- SG: `${r}-sg`,
3299
- SH: `${r}-sh`,
3300
- SI: `${r}-si`,
3301
- SJ: `${r}-sj`,
3302
- SK: `${r}-sk`,
3303
- SL: `${r}-sl`,
3304
- SM: `${r}-sm`,
3305
- SN: `${r}-sn`,
3306
- SO: `${r}-so`,
3307
- SR: `${r}-sr`,
3308
- SS: `${r}-ss`,
3309
- ST: `${r}-st`,
3310
- SV: `${r}-sv`,
3311
- SX: `${r}-sx`,
3312
- SY: `${r}-sy`,
3313
- SZ: `${r}-sz`,
3314
- TC: `${r}-tc`,
3315
- TD: `${r}-td`,
3316
- TG: `${r}-tg`,
3317
- TH: `${r}-th`,
3318
- TJ: `${r}-tj`,
3319
- TK: `${r}-tk`,
3320
- TL: `${r}-tl`,
3321
- TM: `${r}-tm`,
3322
- TN: `${r}-tn`,
3323
- TO: `${r}-to`,
3324
- TR: `${r}-tr`,
3325
- TT: `${r}-tt`,
3326
- TV: `${r}-tv`,
3327
- TW: `${r}-tw`,
3328
- TZ: `${r}-tz`,
3329
- UA: `${r}-ua`,
3330
- UG: `${r}-ug`,
3331
- US: `${r}-us`,
3332
- UY: `${r}-uy`,
3333
- UZ: `${r}-uz`,
3334
- VA: `${r}-va`,
3335
- VC: `${r}-vc`,
3336
- VE: `${r}-ve`,
3337
- VG: `${r}-vg`,
3338
- VI: `${r}-vi`,
3339
- VN: `${r}-vn`,
3340
- VU: `${r}-vu`,
3341
- WF: `${r}-wf`,
3342
- WS: `${r}-ws`,
3343
- YE: `${r}-ye`,
3344
- YT: `${r}-yt`,
3345
- ZA: `${r}-za`,
3346
- ZM: `${r}-zm`,
3347
- ZW: `${r}-zw`
3098
+ c(W, "flags", {
3099
+ AD: `${n}-ad`,
3100
+ AE: `${n}-ae`,
3101
+ AF: `${n}-af`,
3102
+ AG: `${n}-ag`,
3103
+ AI: `${n}-ai`,
3104
+ AL: `${n}-al`,
3105
+ AM: `${n}-am`,
3106
+ AN: `${n}-an`,
3107
+ AO: `${n}-ao`,
3108
+ AQ: `${n}-aq`,
3109
+ AR: `${n}-ar`,
3110
+ AS: `${n}-as`,
3111
+ AT: `${n}-at`,
3112
+ AU: `${n}-au`,
3113
+ AW: `${n}-aw`,
3114
+ AZ: `${n}-az`,
3115
+ BA: `${n}-ba`,
3116
+ BB: `${n}-bb`,
3117
+ BD: `${n}-bd`,
3118
+ BE: `${n}-be`,
3119
+ BF: `${n}-bf`,
3120
+ BG: `${n}-bg`,
3121
+ BH: `${n}-bh`,
3122
+ BI: `${n}-bi`,
3123
+ BJ: `${n}-bj`,
3124
+ BL: `${n}-bl`,
3125
+ BM: `${n}-bm`,
3126
+ BN: `${n}-bn`,
3127
+ BO: `${n}-bo`,
3128
+ BR: `${n}-br`,
3129
+ BS: `${n}-bs`,
3130
+ BT: `${n}-bt`,
3131
+ BW: `${n}-bw`,
3132
+ BY: `${n}-by`,
3133
+ BZ: `${n}-bz`,
3134
+ CA: `${n}-ca`,
3135
+ CC: `${n}-cc`,
3136
+ CD: `${n}-cd`,
3137
+ CF: `${n}-cf`,
3138
+ CG: `${n}-cg`,
3139
+ CH: `${n}-ch`,
3140
+ CI: `${n}-ci`,
3141
+ CK: `${n}-ck`,
3142
+ CL: `${n}-cl`,
3143
+ CM: `${n}-cm`,
3144
+ CN: `${n}-cn`,
3145
+ CO: `${n}-co`,
3146
+ CR: `${n}-cr`,
3147
+ CU: `${n}-cu`,
3148
+ CV: `${n}-cv`,
3149
+ CW: `${n}-cw`,
3150
+ CX: `${n}-cx`,
3151
+ CY: `${n}-cy`,
3152
+ CZ: `${n}-cz`,
3153
+ DE: `${n}-de`,
3154
+ DJ: `${n}-dj`,
3155
+ DK: `${n}-dk`,
3156
+ DM: `${n}-dm`,
3157
+ DZ: `${n}-dz`,
3158
+ EC: `${n}-ec`,
3159
+ EE: `${n}-ee`,
3160
+ EG: `${n}-eg`,
3161
+ EH: `${n}-eh`,
3162
+ ER: `${n}-er`,
3163
+ ES: `${n}-es`,
3164
+ ET: `${n}-et`,
3165
+ FI: `${n}-fi`,
3166
+ FJ: `${n}-fj`,
3167
+ FK: `${n}-fk`,
3168
+ FM: `${n}-fm`,
3169
+ FO: `${n}-fo`,
3170
+ FR: `${n}-fr`,
3171
+ GA: `${n}-ga`,
3172
+ GB: `${n}-gb`,
3173
+ GD: `${n}-gd`,
3174
+ GE: `${n}-ge`,
3175
+ GF: `${n}-gf`,
3176
+ GG: `${n}-gg`,
3177
+ GH: `${n}-gh`,
3178
+ GI: `${n}-gi`,
3179
+ GL: `${n}-gl`,
3180
+ GM: `${n}-gm`,
3181
+ GN: `${n}-gn`,
3182
+ GQ: `${n}-gq`,
3183
+ GR: `${n}-gr`,
3184
+ GT: `${n}-gt`,
3185
+ GU: `${n}-gu`,
3186
+ GW: `${n}-gw`,
3187
+ GY: `${n}-gy`,
3188
+ HK: `${n}-hk`,
3189
+ HN: `${n}-hn`,
3190
+ HR: `${n}-hr`,
3191
+ HT: `${n}-ht`,
3192
+ HU: `${n}-hu`,
3193
+ ID: `${n}-id`,
3194
+ IE: `${n}-ie`,
3195
+ IL: `${n}-il`,
3196
+ IM: `${n}-im`,
3197
+ IN: `${n}-in`,
3198
+ IO: `${n}-io`,
3199
+ IQ: `${n}-iq`,
3200
+ IR: `${n}-ir`,
3201
+ IS: `${n}-is`,
3202
+ IT: `${n}-it`,
3203
+ JE: `${n}-je`,
3204
+ JM: `${n}-jm`,
3205
+ JO: `${n}-jo`,
3206
+ JP: `${n}-jp`,
3207
+ KE: `${n}-ke`,
3208
+ KG: `${n}-kg`,
3209
+ KH: `${n}-kh`,
3210
+ KI: `${n}-ki`,
3211
+ KM: `${n}-km`,
3212
+ KN: `${n}-kn`,
3213
+ KP: `${n}-kp`,
3214
+ KR: `${n}-kr`,
3215
+ KW: `${n}-kw`,
3216
+ KY: `${n}-ky`,
3217
+ KZ: `${n}-kz`,
3218
+ LA: `${n}-la`,
3219
+ LB: `${n}-lb`,
3220
+ LC: `${n}-lc`,
3221
+ LI: `${n}-li`,
3222
+ LK: `${n}-lk`,
3223
+ LR: `${n}-lr`,
3224
+ LS: `${n}-ls`,
3225
+ LT: `${n}-lt`,
3226
+ LU: `${n}-lu`,
3227
+ LV: `${n}-lv`,
3228
+ LY: `${n}-ly`,
3229
+ MA: `${n}-ma`,
3230
+ MC: `${n}-mc`,
3231
+ MD: `${n}-md`,
3232
+ ME: `${n}-me`,
3233
+ MF: `${n}-mf`,
3234
+ MG: `${n}-mg`,
3235
+ MH: `${n}-mh`,
3236
+ MK: `${n}-mk`,
3237
+ ML: `${n}-ml`,
3238
+ MM: `${n}-mm`,
3239
+ MN: `${n}-mn`,
3240
+ MO: `${n}-mo`,
3241
+ MP: `${n}-mp`,
3242
+ MQ: `${n}-mq`,
3243
+ MR: `${n}-mr`,
3244
+ MS: `${n}-ms`,
3245
+ MT: `${n}-mt`,
3246
+ MU: `${n}-mu`,
3247
+ MV: `${n}-mv`,
3248
+ MW: `${n}-mw`,
3249
+ MX: `${n}-mx`,
3250
+ MY: `${n}-my`,
3251
+ MZ: `${n}-mz`,
3252
+ NA: `${n}-na`,
3253
+ NC: `${n}-nc`,
3254
+ NE: `${n}-ne`,
3255
+ NF: `${n}-nf`,
3256
+ NG: `${n}-ng`,
3257
+ NI: `${n}-ni`,
3258
+ NL: `${n}-nl`,
3259
+ NO: `${n}-no`,
3260
+ NP: `${n}-np`,
3261
+ NR: `${n}-nr`,
3262
+ NU: `${n}-nu`,
3263
+ NZ: `${n}-nz`,
3264
+ OM: `${n}-om`,
3265
+ PA: `${n}-pa`,
3266
+ PE: `${n}-pe`,
3267
+ PF: `${n}-pf`,
3268
+ PG: `${n}-pg`,
3269
+ PH: `${n}-ph`,
3270
+ PK: `${n}-pk`,
3271
+ PL: `${n}-pl`,
3272
+ PM: `${n}-pm`,
3273
+ PN: `${n}-pn`,
3274
+ PR: `${n}-pr`,
3275
+ PS: `${n}-ps`,
3276
+ PT: `${n}-pt`,
3277
+ PW: `${n}-pw`,
3278
+ PY: `${n}-py`,
3279
+ QA: `${n}-qa`,
3280
+ RE: `${n}-re`,
3281
+ RO: `${n}-ro`,
3282
+ RS: `${n}-rs`,
3283
+ RU: `${n}-ru`,
3284
+ RW: `${n}-rw`,
3285
+ SA: `${n}-sa`,
3286
+ SB: `${n}-sb`,
3287
+ SC: `${n}-sc`,
3288
+ SD: `${n}-sd`,
3289
+ SE: `${n}-se`,
3290
+ SG: `${n}-sg`,
3291
+ SH: `${n}-sh`,
3292
+ SI: `${n}-si`,
3293
+ SJ: `${n}-sj`,
3294
+ SK: `${n}-sk`,
3295
+ SL: `${n}-sl`,
3296
+ SM: `${n}-sm`,
3297
+ SN: `${n}-sn`,
3298
+ SO: `${n}-so`,
3299
+ SR: `${n}-sr`,
3300
+ SS: `${n}-ss`,
3301
+ ST: `${n}-st`,
3302
+ SV: `${n}-sv`,
3303
+ SX: `${n}-sx`,
3304
+ SY: `${n}-sy`,
3305
+ SZ: `${n}-sz`,
3306
+ TC: `${n}-tc`,
3307
+ TD: `${n}-td`,
3308
+ TG: `${n}-tg`,
3309
+ TH: `${n}-th`,
3310
+ TJ: `${n}-tj`,
3311
+ TK: `${n}-tk`,
3312
+ TL: `${n}-tl`,
3313
+ TM: `${n}-tm`,
3314
+ TN: `${n}-tn`,
3315
+ TO: `${n}-to`,
3316
+ TR: `${n}-tr`,
3317
+ TT: `${n}-tt`,
3318
+ TV: `${n}-tv`,
3319
+ TW: `${n}-tw`,
3320
+ TZ: `${n}-tz`,
3321
+ UA: `${n}-ua`,
3322
+ UG: `${n}-ug`,
3323
+ US: `${n}-us`,
3324
+ UY: `${n}-uy`,
3325
+ UZ: `${n}-uz`,
3326
+ VA: `${n}-va`,
3327
+ VC: `${n}-vc`,
3328
+ VE: `${n}-ve`,
3329
+ VG: `${n}-vg`,
3330
+ VI: `${n}-vi`,
3331
+ VN: `${n}-vn`,
3332
+ VU: `${n}-vu`,
3333
+ WF: `${n}-wf`,
3334
+ WS: `${n}-ws`,
3335
+ YE: `${n}-ye`,
3336
+ YT: `${n}-yt`,
3337
+ ZA: `${n}-za`,
3338
+ ZM: `${n}-zm`,
3339
+ ZW: `${n}-zw`
3348
3340
  });
3349
- let wt = U;
3341
+ let vt = W;
3350
3342
  const j = class j {
3351
3343
  /**
3352
3344
  * Getting an object with information about the phone code and country.
@@ -3364,13 +3356,13 @@ const j = class j {
3364
3356
  * @param phone phone number/ номер телефон
3365
3357
  */
3366
3358
  static getByPhone(t) {
3367
- let e = this.map, s, n = "";
3359
+ let e = this.map, s, r = "";
3368
3360
  return this.toNumber(t).forEach((o) => {
3369
3361
  var a;
3370
- n === "" && o in e ? (s = e[o], e = (a = s == null ? void 0 : s.next) != null ? a : {}) : n += o;
3362
+ r === "" && o in e ? (s = e[o], e = (a = s == null ? void 0 : s.next) != null ? a : {}) : r += o;
3371
3363
  }), {
3372
3364
  item: s,
3373
- phone: n
3365
+ phone: r
3374
3366
  };
3375
3367
  }
3376
3368
  /**
@@ -3409,10 +3401,10 @@ const j = class j {
3409
3401
  * @param masks a mask to transform a phone number/ маска для преобразования номер телефон
3410
3402
  */
3411
3403
  static toMask(t, e) {
3412
- if (L(t) && Array.isArray(e) && e.length > 0) {
3413
- const s = this.removeZero(t), n = s.length;
3404
+ if (v(t) && Array.isArray(e) && e.length > 0) {
3405
+ const s = this.removeZero(t), r = s.length;
3414
3406
  for (const o of e)
3415
- if (this.getUnnecessaryLength(o) === n)
3407
+ if (this.getUnnecessaryLength(o) === r)
3416
3408
  return this.toStandard(s, o);
3417
3409
  }
3418
3410
  }
@@ -3457,12 +3449,12 @@ const j = class j {
3457
3449
  * Формирование списка для карты.
3458
3450
  */
3459
3451
  static makeList() {
3460
- const t = f(w.getList(), (e) => {
3452
+ const t = g(p.getList(), (e) => {
3461
3453
  if (e != null && e.phoneMask)
3462
3454
  return {
3463
3455
  phone: (e == null ? void 0 : e.phoneCode) && Number(e.phoneCode.replace(/[^0-9]+/, "")) || void 0,
3464
3456
  within: (e == null ? void 0 : e.phoneWithin) || 0,
3465
- mask: Z(e.phoneMask),
3457
+ mask: z(e.phoneMask),
3466
3458
  value: e.country
3467
3459
  };
3468
3460
  });
@@ -3476,7 +3468,7 @@ const j = class j {
3476
3468
  static makeMap() {
3477
3469
  this.list.forEach((t) => {
3478
3470
  t.mask.forEach((e) => {
3479
- let s = this.map, n;
3471
+ let s = this.map, r;
3480
3472
  if (this.toNumber(e).forEach((o) => {
3481
3473
  var a;
3482
3474
  o in s || (s[o] = {
@@ -3486,11 +3478,11 @@ const j = class j {
3486
3478
  mask: [],
3487
3479
  maskFull: [],
3488
3480
  next: {}
3489
- }), n = s[o], s = (a = n == null ? void 0 : n.next) != null ? a : {};
3490
- }), n) {
3491
- n.value === void 0 && (n.info = t, n.value = t.value);
3481
+ }), r = s[o], s = (a = r == null ? void 0 : r.next) != null ? a : {};
3482
+ }), r) {
3483
+ r.value === void 0 && (r.info = t, r.value = t.value);
3492
3484
  const o = this.toWithin(e, t.within);
3493
- n.mask.push(o), n.maskFull.push(o.replace(/\d/ig, "*")), n.items.push(t);
3485
+ r.mask.push(o), r.maskFull.push(o.replace(/\d/ig, "*")), r.items.push(t);
3494
3486
  }
3495
3487
  });
3496
3488
  });
@@ -3527,8 +3519,8 @@ const j = class j {
3527
3519
  }
3528
3520
  };
3529
3521
  c(j, "list", []), c(j, "map", {}), j.makeList(), j.makeMap();
3530
- let bt = j, W;
3531
- class Ne {
3522
+ let St = j, P;
3523
+ class Be {
3532
3524
  /**
3533
3525
  * Returns the value by its name.
3534
3526
  *
@@ -3536,7 +3528,7 @@ class Ne {
3536
3528
  * @param name property name/ название свойства
3537
3529
  */
3538
3530
  static get(t) {
3539
- return W && (W == null ? void 0 : W[t]);
3531
+ return P && (P == null ? void 0 : P[t]);
3540
3532
  }
3541
3533
  /**
3542
3534
  * Adds data, this method works only once.
@@ -3545,10 +3537,10 @@ class Ne {
3545
3537
  * @param data global data/ глобальные данные
3546
3538
  */
3547
3539
  static add(t) {
3548
- W === void 0 && (W = C(t));
3540
+ P === void 0 && (P = C(t));
3549
3541
  }
3550
3542
  }
3551
- const F = class F {
3543
+ const R = class R {
3552
3544
  /**
3553
3545
  * Get data from hash.
3554
3546
  *
@@ -3567,9 +3559,9 @@ const F = class F {
3567
3559
  * @param callback value or function to change data/ значение или функция для изменения данных
3568
3560
  */
3569
3561
  static set(t, e) {
3570
- var n;
3571
- const s = I(e);
3572
- s !== ((n = this.hash) == null ? void 0 : n[t]) && (this.hash[t] = s, this.update());
3562
+ var r;
3563
+ const s = B(e);
3564
+ s !== ((r = this.hash) == null ? void 0 : r[t]) && (this.hash[t] = s, this.update());
3573
3565
  }
3574
3566
  /**
3575
3567
  * Adding an event when data is changed.
@@ -3602,7 +3594,7 @@ const F = class F {
3602
3594
  const t = {};
3603
3595
  return location.hash.replace(
3604
3596
  /([\w-]+)[:=]([^;]+)/ig,
3605
- (...e) => (t[String(e[1])] = Bt(e[2]), "")
3597
+ (...e) => (t[String(e[1])] = Rt(e[2]), "")
3606
3598
  ), t;
3607
3599
  }
3608
3600
  /**
@@ -3611,7 +3603,7 @@ const F = class F {
3611
3603
  * Обновление строки хэша в URL.
3612
3604
  */
3613
3605
  static update() {
3614
- this.block = !0, history.replaceState(null, "", `#${Et(this.hash, "=", ";")}`), requestAnimationFrame(() => {
3606
+ this.block = !0, history.replaceState(null, "", `#${It(this.hash, "=", ";")}`), requestAnimationFrame(() => {
3615
3607
  this.block = !1;
3616
3608
  });
3617
3609
  }
@@ -3622,15 +3614,15 @@ const F = class F {
3622
3614
  * @param location fresh data/ свежий данные
3623
3615
  */
3624
3616
  static makeWatch(t) {
3625
- f(this.watch, (e, s) => {
3626
- var n;
3627
- ((n = this.hash) == null ? void 0 : n[s]) !== (t == null ? void 0 : t[s]) && e.forEach((o) => o(t[s]));
3617
+ g(this.watch, (e, s) => {
3618
+ var r;
3619
+ ((r = this.hash) == null ? void 0 : r[s]) !== (t == null ? void 0 : t[s]) && e.forEach((o) => o(t[s]));
3628
3620
  });
3629
3621
  }
3630
3622
  };
3631
- c(F, "hash", {}), c(F, "watch", {}), c(F, "block", !1), l() && (F.reload(), addEventListener("hashchange", () => F.reload()));
3632
- let vt = F;
3633
- const st = "__UI_ICON", St = 320, Dt = "--LOAD--", q = class q {
3623
+ c(R, "hash", {}), c(R, "watch", {}), c(R, "block", !1), l() && (R.reload(), addEventListener("hashchange", () => R.reload()));
3624
+ let Dt = R;
3625
+ const st = "__UI_ICON", Lt = 320, Ct = "--LOAD--", Y = class Y {
3634
3626
  /**
3635
3627
  * Checks if the given icon is in the list of connected icons.
3636
3628
  *
@@ -3652,8 +3644,8 @@ const st = "__UI_ICON", St = 320, Dt = "--LOAD--", q = class q {
3652
3644
  */
3653
3645
  static async get(t, e = "", s = 1e3 * 60 * 3) {
3654
3646
  var o, a, u, h;
3655
- const n = (h = (u = (o = this.icons) == null ? void 0 : o[this.getName(t)]) != null ? u : (a = this.icons) == null ? void 0 : a[t]) != null ? h : `${t.replace(/^@/, e != null ? e : this.url)}.svg`;
3656
- return typeof n == "string" ? n === Dt && s > 0 ? (await this.wait(), this.get(t, e, s - St)) : n : at(n) ? await n() : await n;
3647
+ const r = (h = (u = (o = this.icons) == null ? void 0 : o[this.getName(t)]) != null ? u : (a = this.icons) == null ? void 0 : a[t]) != null ? h : `${t.replace(/^@/, e != null ? e : this.url)}.svg`;
3648
+ return typeof r == "string" ? r === Ct && s > 0 ? (await this.wait(), this.get(t, e, s - Lt)) : r : ct(r) ? await r() : await r;
3657
3649
  }
3658
3650
  /**
3659
3651
  * Returns a list of names of all registered icons.
@@ -3661,7 +3653,7 @@ const st = "__UI_ICON", St = 320, Dt = "--LOAD--", q = class q {
3661
3653
  * Возвращает список названий всех зарегистрированных иконок.
3662
3654
  */
3663
3655
  static getNameList() {
3664
- return f(this.icons, (t, e) => e.replace(/^@/, ""));
3656
+ return g(this.icons, (t, e) => e.replace(/^@/, ""));
3665
3657
  }
3666
3658
  /**
3667
3659
  * Returns a global link.
@@ -3669,7 +3661,7 @@ const st = "__UI_ICON", St = 320, Dt = "--LOAD--", q = class q {
3669
3661
  * Возвращает глобальную ссылку.
3670
3662
  */
3671
3663
  static getUrlGlobal() {
3672
- return `${z.isLocalhost(), ""}${this.url}`;
3664
+ return `${H.isLocalhost(), ""}${this.url}`;
3673
3665
  }
3674
3666
  /**
3675
3667
  * Adding custom icons.
@@ -3688,7 +3680,7 @@ const st = "__UI_ICON", St = 320, Dt = "--LOAD--", q = class q {
3688
3680
  * @param index icon name/ название иконки
3689
3681
  */
3690
3682
  static addLoad(t) {
3691
- this.icons[this.getName(t)] = Dt;
3683
+ this.icons[this.getName(t)] = Ct;
3692
3684
  }
3693
3685
  /**
3694
3686
  * Adding custom global icons.
@@ -3707,7 +3699,7 @@ const st = "__UI_ICON", St = 320, Dt = "--LOAD--", q = class q {
3707
3699
  * @param list list of icons/ список иконки
3708
3700
  */
3709
3701
  static addByList(t) {
3710
- f(t, (e, s) => this.add(s, e));
3702
+ g(t, (e, s) => this.add(s, e));
3711
3703
  }
3712
3704
  /**
3713
3705
  * Changes the file path.
@@ -3733,26 +3725,26 @@ const st = "__UI_ICON", St = 320, Dt = "--LOAD--", q = class q {
3733
3725
  * Задержка выполнения скрипта.
3734
3726
  */
3735
3727
  static wait() {
3736
- return new Promise((t) => setTimeout(() => t(), St));
3728
+ return new Promise((t) => setTimeout(() => t(), Lt));
3737
3729
  }
3738
3730
  };
3739
- c(q, "icons", {}), c(q, "url", "/icons/"), l() && (st in window || (window[st] = {}), q.icons = window[st]);
3740
- let Lt = q;
3731
+ c(Y, "icons", {}), c(Y, "url", "/icons/"), l() && (st in window || (window[st] = {}), Y.icons = window[st]);
3732
+ let kt = Y;
3741
3733
  function Ot(i, t, e) {
3742
- var s, n;
3743
- return (n = (s = N(i)) == null ? void 0 : s[t]) != null ? n : e;
3734
+ var s, r;
3735
+ return (r = (s = N(i)) == null ? void 0 : s[t]) != null ? r : e;
3744
3736
  }
3745
3737
  function Tt(i, t, e) {
3746
3738
  const s = N(i);
3747
3739
  if (s) {
3748
- const n = Ot(s, t);
3749
- if (m(n) && m(e))
3750
- f(e, (o, a) => {
3751
- n[a] = I(o);
3740
+ const r = Ot(s, t);
3741
+ if (f(r) && f(e))
3742
+ g(e, (o, a) => {
3743
+ r[a] = B(o);
3752
3744
  });
3753
3745
  else {
3754
- const o = I(e);
3755
- !(t in s) && typeof o == "string" ? s.setAttribute(t.toString(), o) : s[t] = I(e);
3746
+ const o = B(e);
3747
+ !(t in s) && typeof o == "string" ? s.setAttribute(t.toString(), o) : s[t] = B(e);
3756
3748
  }
3757
3749
  }
3758
3750
  return s;
@@ -3760,15 +3752,15 @@ function Tt(i, t, e) {
3760
3752
  function _(i, t = "div", e, s) {
3761
3753
  if (!l())
3762
3754
  return;
3763
- const n = document.createElement(t);
3764
- return typeof e == "function" ? e(n) : A(e) && f(e, (o, a) => {
3765
- Tt(n, a, o);
3766
- }), i == null || i.insertBefore(n, s != null ? s : null), n;
3755
+ const r = document.createElement(t);
3756
+ return typeof e == "function" ? e(r) : A(e) && g(e, (o, a) => {
3757
+ Tt(r, a, o);
3758
+ }), i == null || i.insertBefore(r, s != null ? s : null), r;
3767
3759
  }
3768
3760
  function Gt(i) {
3769
3761
  return i.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;").trim();
3770
3762
  }
3771
- class ut {
3763
+ class ht {
3772
3764
  /**
3773
3765
  * Creates an instance of MetaManager.
3774
3766
  *
@@ -3812,7 +3804,7 @@ class ut {
3812
3804
  * Возвращает все мета-теги в виде HTML-строки.
3813
3805
  */
3814
3806
  html() {
3815
- return f(
3807
+ return g(
3816
3808
  this.listMeta,
3817
3809
  (e) => this.toHtmlString(e)
3818
3810
  ).join("");
@@ -3834,7 +3826,7 @@ class ut {
3834
3826
  * @param metaList object with meta tag names and content / объект с именами и содержимым мета-тегов
3835
3827
  */
3836
3828
  setByList(t) {
3837
- return f(
3829
+ return g(
3838
3830
  t,
3839
3831
  (e, s) => this.set(s, String(e))
3840
3832
  ), this;
@@ -3876,8 +3868,8 @@ class ut {
3876
3868
  * @param name meta tag name / имя мета-тега
3877
3869
  */
3878
3870
  setMeta(t) {
3879
- var n;
3880
- const e = this.findMetaElement(t), s = (n = this.items[t]) != null ? n : "";
3871
+ var r;
3872
+ const e = this.findMetaElement(t), s = (r = this.items[t]) != null ? r : "";
3881
3873
  if (e)
3882
3874
  e.content = s;
3883
3875
  else if (l()) {
@@ -3909,8 +3901,8 @@ class ut {
3909
3901
  }), this;
3910
3902
  }
3911
3903
  }
3912
- var S = /* @__PURE__ */ ((i) => (i.description = "description", i.keywords = "keywords", i.canonical = "canonical", i.robots = "robots", i.author = "author", i))(S || {}), te = /* @__PURE__ */ ((i) => (i.indexFollow = "index, follow", i.noIndexFollow = "noindex, follow", i.indexNoFollow = "index, nofollow", i.noIndexNoFollow = "noindex, nofollow", i.noArchive = "noarchive", i.noSnippet = "nosnippet", i.noImageIndex = "noimageindex", i.images = "images", i.noTranslate = "notranslate", i.noPreview = "nopreview", i.textOnly = "textonly", i.noIndexSubpages = "noindex, noarchive", i.none = "none", i))(te || {}), y = /* @__PURE__ */ ((i) => (i.title = "og:title", i.type = "og:type", i.url = "og:url", i.image = "og:image", i.description = "og:description", i.locale = "og:locale", i.siteName = "og:site_name", i.localeAlternate = "og:locale:alternate", i.imageUrl = "og:image:url", i.imageSecureUrl = "og:image:secure_url", i.imageType = "og:image:type", i.imageWidth = "og:image:width", i.imageHeight = "og:image:height", i.imageAlt = "og:image:alt", i.video = "og:video", i.videoUrl = "og:video:url", i.videoSecureUrl = "og:video:secure_url", i.videoType = "og:video:type", i.videoWidth = "og:video:width", i.videoHeight = "og:video:height", i.audio = "og:audio", i.audioSecureUrl = "og:audio:secure_url", i.audioType = "og:audio:type", i.articlePublishedTime = "article:published_time", i.articleModifiedTime = "article:modified_time", i.articleExpirationTime = "article:expiration_time", i.articleAuthor = "article:author", i.articleSection = "article:section", i.articleTag = "article:tag", i.bookAuthor = "book:author", i.bookIsbn = "book:isbn", i.bookReleaseDate = "book:release_date", i.bookTag = "book:tag", i.musicDuration = "music:duration", i.musicAlbum = "music:album", i.musicAlbumDisc = "music:album:disc", i.musicAlbumTrack = "music:album:track", i.musicMusician = "music:musician", i.musicSong = "music:song", i.musicSongDisc = "music:song:disc", i.musicSongTrack = "music:song:track", i.musicReleaseDate = "music:release_date", i.musicCreator = "music:creator", i.videoActor = "video:actor", i.videoActorRole = "video:actor:role", i.videoDirector = "video:director", i.videoWriter = "video:writer", i.videoDuration = "video:duration", i.videoReleaseDate = "video:release_date", i.videoTag = "video:tag", i.videoSeries = "video:series", i.profileFirstName = "profile:first_name", i.profileLastName = "profile:last_name", i.profileUsername = "profile:username", i.profileGender = "profile:gender", i.productBrand = "product:brand", i.productAvailability = "product:availability", i.productCondition = "product:condition", i.productPriceAmount = "product:price:amount", i.productPriceCurrency = "product:price:currency", i.productRetailerItemId = "product:retailer_item_id", i.productCategory = "product:category", i.productEan = "product:ean", i.productIsbn = "product:isbn", i.productMfrPartNo = "product:mfr_part_no", i.productUpc = "product:upc", i.productWeightValue = "product:weight:value", i.productWeightUnits = "product:weight:units", i.productColor = "product:color", i.productMaterial = "product:material", i.productPattern = "product:pattern", i.productAgeGroup = "product:age_group", i.productGender = "product:gender", i))(y || {}), ee = /* @__PURE__ */ ((i) => (i.website = "website", i.article = "article", i.video = "video.other", i.videoTvShow = "video.tv_show", i.videoEpisode = "video.episode", i.videoMovie = "video.movie", i.musicAlbum = "music.album", i.musicPlaylist = "music.playlist", i.musicSong = "music.song", i.musicRadioStation = "music.radio_station", i.app = "app", i.product = "product", i.business = "business.business", i.place = "place", i.event = "event", i.profile = "profile", i.book = "book", i))(ee || {}), ie = /* @__PURE__ */ ((i) => (i.inStock = "in stock", i.outOfStock = "out of stock", i.preorder = "preorder", i.backorder = "backorder", i.discontinued = "discontinued", i.pending = "pending", i))(ie || {}), se = /* @__PURE__ */ ((i) => (i.new = "new", i.used = "used", i.refurbished = "refurbished", i))(se || {}), re = /* @__PURE__ */ ((i) => (i.newborn = "newborn", i.infant = "infant", i.toddler = "toddler", i.kids = "kids", i.adult = "adult", i))(re || {}), ne = /* @__PURE__ */ ((i) => (i.female = "female", i.male = "male", i.unisex = "unisex", i))(ne || {}), $ = /* @__PURE__ */ ((i) => (i.card = "twitter:card", i.site = "twitter:site", i.creator = "twitter:creator", i.url = "twitter:url", i.title = "twitter:title", i.description = "twitter:description", i.image = "twitter:image", i.imageAlt = "twitter:image:alt", i.imageSrc = "twitter:image:src", i.imageWidth = "twitter:image:width", i.imageHeight = "twitter:image:height", i.label1 = "twitter:label1", i.data1 = "twitter:data1", i.label2 = "twitter:label2", i.data2 = "twitter:data2", i.appNameIphone = "twitter:app:name:iphone", i.appIdIphone = "twitter:app:id:iphone", i.appUrlIphone = "twitter:app:url:iphone", i.appNameIpad = "twitter:app:name:ipad", i.appIdIpad = "twitter:app:id:ipad", i.appUrlIpad = "twitter:app:url:ipad", i.appNameGooglePlay = "twitter:app:name:googleplay", i.appIdGooglePlay = "twitter:app:id:googleplay", i.appUrlGooglePlay = "twitter:app:url:googleplay", i.player = "twitter:player", i.playerWidth = "twitter:player:width", i.playerHeight = "twitter:player:height", i.playerStream = "twitter:player:stream", i.playerStreamContentType = "twitter:player:stream:content_type", i))($ || {}), oe = /* @__PURE__ */ ((i) => (i.summary = "summary", i.summaryLargeImage = "summary_large_image", i.app = "app", i.player = "player", i.product = "product", i.gallery = "gallery", i.photo = "photo", i.leadGeneration = "lead_generation", i.audio = "audio", i.poll = "poll", i))(oe || {});
3913
- class ae extends ut {
3904
+ var D = /* @__PURE__ */ ((i) => (i.description = "description", i.keywords = "keywords", i.canonical = "canonical", i.robots = "robots", i.author = "author", i))(D || {}), te = /* @__PURE__ */ ((i) => (i.indexFollow = "index, follow", i.noIndexFollow = "noindex, follow", i.indexNoFollow = "index, nofollow", i.noIndexNoFollow = "noindex, nofollow", i.noArchive = "noarchive", i.noSnippet = "nosnippet", i.noImageIndex = "noimageindex", i.images = "images", i.noTranslate = "notranslate", i.noPreview = "nopreview", i.textOnly = "textonly", i.noIndexSubpages = "noindex, noarchive", i.none = "none", i))(te || {}), y = /* @__PURE__ */ ((i) => (i.title = "og:title", i.type = "og:type", i.url = "og:url", i.image = "og:image", i.description = "og:description", i.locale = "og:locale", i.siteName = "og:site_name", i.localeAlternate = "og:locale:alternate", i.imageUrl = "og:image:url", i.imageSecureUrl = "og:image:secure_url", i.imageType = "og:image:type", i.imageWidth = "og:image:width", i.imageHeight = "og:image:height", i.imageAlt = "og:image:alt", i.video = "og:video", i.videoUrl = "og:video:url", i.videoSecureUrl = "og:video:secure_url", i.videoType = "og:video:type", i.videoWidth = "og:video:width", i.videoHeight = "og:video:height", i.audio = "og:audio", i.audioSecureUrl = "og:audio:secure_url", i.audioType = "og:audio:type", i.articlePublishedTime = "article:published_time", i.articleModifiedTime = "article:modified_time", i.articleExpirationTime = "article:expiration_time", i.articleAuthor = "article:author", i.articleSection = "article:section", i.articleTag = "article:tag", i.bookAuthor = "book:author", i.bookIsbn = "book:isbn", i.bookReleaseDate = "book:release_date", i.bookTag = "book:tag", i.musicDuration = "music:duration", i.musicAlbum = "music:album", i.musicAlbumDisc = "music:album:disc", i.musicAlbumTrack = "music:album:track", i.musicMusician = "music:musician", i.musicSong = "music:song", i.musicSongDisc = "music:song:disc", i.musicSongTrack = "music:song:track", i.musicReleaseDate = "music:release_date", i.musicCreator = "music:creator", i.videoActor = "video:actor", i.videoActorRole = "video:actor:role", i.videoDirector = "video:director", i.videoWriter = "video:writer", i.videoDuration = "video:duration", i.videoReleaseDate = "video:release_date", i.videoTag = "video:tag", i.videoSeries = "video:series", i.profileFirstName = "profile:first_name", i.profileLastName = "profile:last_name", i.profileUsername = "profile:username", i.profileGender = "profile:gender", i.productBrand = "product:brand", i.productAvailability = "product:availability", i.productCondition = "product:condition", i.productPriceAmount = "product:price:amount", i.productPriceCurrency = "product:price:currency", i.productRetailerItemId = "product:retailer_item_id", i.productCategory = "product:category", i.productEan = "product:ean", i.productIsbn = "product:isbn", i.productMfrPartNo = "product:mfr_part_no", i.productUpc = "product:upc", i.productWeightValue = "product:weight:value", i.productWeightUnits = "product:weight:units", i.productColor = "product:color", i.productMaterial = "product:material", i.productPattern = "product:pattern", i.productAgeGroup = "product:age_group", i.productGender = "product:gender", i))(y || {}), ee = /* @__PURE__ */ ((i) => (i.website = "website", i.article = "article", i.video = "video.other", i.videoTvShow = "video.tv_show", i.videoEpisode = "video.episode", i.videoMovie = "video.movie", i.musicAlbum = "music.album", i.musicPlaylist = "music.playlist", i.musicSong = "music.song", i.musicRadioStation = "music.radio_station", i.app = "app", i.product = "product", i.business = "business.business", i.place = "place", i.event = "event", i.profile = "profile", i.book = "book", i))(ee || {}), ie = /* @__PURE__ */ ((i) => (i.inStock = "in stock", i.outOfStock = "out of stock", i.preorder = "preorder", i.backorder = "backorder", i.discontinued = "discontinued", i.pending = "pending", i))(ie || {}), se = /* @__PURE__ */ ((i) => (i.new = "new", i.used = "used", i.refurbished = "refurbished", i))(se || {}), re = /* @__PURE__ */ ((i) => (i.newborn = "newborn", i.infant = "infant", i.toddler = "toddler", i.kids = "kids", i.adult = "adult", i))(re || {}), ne = /* @__PURE__ */ ((i) => (i.female = "female", i.male = "male", i.unisex = "unisex", i))(ne || {}), $ = /* @__PURE__ */ ((i) => (i.card = "twitter:card", i.site = "twitter:site", i.creator = "twitter:creator", i.url = "twitter:url", i.title = "twitter:title", i.description = "twitter:description", i.image = "twitter:image", i.imageAlt = "twitter:image:alt", i.imageSrc = "twitter:image:src", i.imageWidth = "twitter:image:width", i.imageHeight = "twitter:image:height", i.label1 = "twitter:label1", i.data1 = "twitter:data1", i.label2 = "twitter:label2", i.data2 = "twitter:data2", i.appNameIphone = "twitter:app:name:iphone", i.appIdIphone = "twitter:app:id:iphone", i.appUrlIphone = "twitter:app:url:iphone", i.appNameIpad = "twitter:app:name:ipad", i.appIdIpad = "twitter:app:id:ipad", i.appUrlIpad = "twitter:app:url:ipad", i.appNameGooglePlay = "twitter:app:name:googleplay", i.appIdGooglePlay = "twitter:app:id:googleplay", i.appUrlGooglePlay = "twitter:app:url:googleplay", i.player = "twitter:player", i.playerWidth = "twitter:player:width", i.playerHeight = "twitter:player:height", i.playerStream = "twitter:player:stream", i.playerStreamContentType = "twitter:player:stream:content_type", i))($ || {}), oe = /* @__PURE__ */ ((i) => (i.summary = "summary", i.summaryLargeImage = "summary_large_image", i.app = "app", i.player = "player", i.product = "product", i.gallery = "gallery", i.photo = "photo", i.leadGeneration = "lead_generation", i.audio = "audio", i.poll = "poll", i))(oe || {});
3905
+ class ae extends ht {
3914
3906
  constructor() {
3915
3907
  super(Object.values(y), !0);
3916
3908
  }
@@ -4034,7 +4026,7 @@ class ae extends ut {
4034
4026
  return this.set(y.siteName, t);
4035
4027
  }
4036
4028
  }
4037
- class ce extends ut {
4029
+ class ce extends ht {
4038
4030
  constructor() {
4039
4031
  super(Object.values($));
4040
4032
  }
@@ -4158,14 +4150,14 @@ class ce extends ut {
4158
4150
  return this.set($.image, t), this;
4159
4151
  }
4160
4152
  }
4161
- class Ee extends ut {
4153
+ class Ie extends ht {
4162
4154
  /**
4163
4155
  * Creates an instance of Meta with integrated Open Graph and Twitter Card support.
4164
4156
  *
4165
4157
  * Создает экземпляр Meta с интегрированной поддержкой Open Graph и Twitter Card.
4166
4158
  */
4167
4159
  constructor() {
4168
- super(Object.values(S));
4160
+ super(Object.values(D));
4169
4161
  c(this, "suffix");
4170
4162
  c(this, "og");
4171
4163
  c(this, "twitter");
@@ -4201,7 +4193,7 @@ class Ee extends ut {
4201
4193
  * Получает мета-тег keywords.
4202
4194
  */
4203
4195
  getKeywords() {
4204
- return this.get(S.keywords);
4196
+ return this.get(D.keywords);
4205
4197
  }
4206
4198
  /**
4207
4199
  * Gets the description meta tag.
@@ -4209,7 +4201,7 @@ class Ee extends ut {
4209
4201
  * Получает мета-тег description.
4210
4202
  */
4211
4203
  getDescription() {
4212
- return this.get(S.description);
4204
+ return this.get(D.description);
4213
4205
  }
4214
4206
  /**
4215
4207
  * Gets the Open Graph image URL.
@@ -4225,7 +4217,7 @@ class Ee extends ut {
4225
4217
  * Получает канонический URL.
4226
4218
  */
4227
4219
  getCanonical() {
4228
- return this.get(S.canonical);
4220
+ return this.get(D.canonical);
4229
4221
  }
4230
4222
  /**
4231
4223
  * Gets the robots meta tag value.
@@ -4233,7 +4225,7 @@ class Ee extends ut {
4233
4225
  * Получает значение мета-тега robots.
4234
4226
  */
4235
4227
  getRobots() {
4236
- return this.get(S.robots);
4228
+ return this.get(D.robots);
4237
4229
  }
4238
4230
  /**
4239
4231
  * Gets the author meta tag.
@@ -4241,7 +4233,7 @@ class Ee extends ut {
4241
4233
  * Получает мета-тег author.
4242
4234
  */
4243
4235
  getAuthor() {
4244
- return this.get(S.author);
4236
+ return this.get(D.author);
4245
4237
  }
4246
4238
  /**
4247
4239
  * Gets the Open Graph site name.
@@ -4267,7 +4259,7 @@ class Ee extends ut {
4267
4259
  */
4268
4260
  setTitle(e) {
4269
4261
  if (l()) {
4270
- const s = L(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
4262
+ const s = v(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
4271
4263
  document.title = s, this.og.setTitle(s), this.twitter.setTitle(s);
4272
4264
  }
4273
4265
  return this;
@@ -4279,7 +4271,7 @@ class Ee extends ut {
4279
4271
  * @param keywords keywords as string or array / ключевые слова в виде строки или массива
4280
4272
  */
4281
4273
  setKeywords(e) {
4282
- return this.set(S.keywords, Z(e).join(", ")), this;
4274
+ return this.set(D.keywords, z(e).join(", ")), this;
4283
4275
  }
4284
4276
  /**
4285
4277
  * Sets the description meta tag.
@@ -4288,7 +4280,7 @@ class Ee extends ut {
4288
4280
  * @param description page description / описание страницы
4289
4281
  */
4290
4282
  setDescription(e) {
4291
- return this.set(S.description, e), this;
4283
+ return this.set(D.description, e), this;
4292
4284
  }
4293
4285
  /**
4294
4286
  * Sets the image for Open Graph and Twitter Card.
@@ -4306,7 +4298,7 @@ class Ee extends ut {
4306
4298
  * @param canonical canonical URL / канонический URL
4307
4299
  */
4308
4300
  setCanonical(e) {
4309
- return this.set(S.canonical, e), this.og.setUrl(e), this.twitter.setUrl(e), this;
4301
+ return this.set(D.canonical, e), this.og.setUrl(e), this.twitter.setUrl(e), this;
4310
4302
  }
4311
4303
  /**
4312
4304
  * Sets the robots meta tag.
@@ -4315,7 +4307,7 @@ class Ee extends ut {
4315
4307
  * @param robots robots directive / директива robots
4316
4308
  */
4317
4309
  setRobots(e) {
4318
- return this.set(S.robots, e), this;
4310
+ return this.set(D.robots, e), this;
4319
4311
  }
4320
4312
  /**
4321
4313
  * Sets the author meta tag.
@@ -4324,7 +4316,7 @@ class Ee extends ut {
4324
4316
  * @param author author name / имя автора
4325
4317
  */
4326
4318
  setAuthor(e) {
4327
- return this.set(S.author, e), this;
4319
+ return this.set(D.author, e), this;
4328
4320
  }
4329
4321
  /**
4330
4322
  * Sets the site name for Open Graph and Twitter Card.
@@ -4367,7 +4359,7 @@ class Ee extends ut {
4367
4359
  * Получает отформатированный суффикс с разделителем.
4368
4360
  */
4369
4361
  getSuffix() {
4370
- return L(this.suffix) ? ` - ${this.suffix}` : "";
4362
+ return v(this.suffix) ? ` - ${this.suffix}` : "";
4371
4363
  }
4372
4364
  }
4373
4365
  class ot {
@@ -4446,17 +4438,17 @@ const ue = [
4446
4438
  let e = String(i);
4447
4439
  if (i.match(/%[a-z]/)) {
4448
4440
  let s = 0;
4449
- f(t, (n) => {
4450
- e = e.replace(new RegExp(`%${ue[s++]}`, "g"), String(n));
4441
+ g(t, (r) => {
4442
+ e = e.replace(new RegExp(`%${ue[s++]}`, "g"), String(r));
4451
4443
  });
4452
4444
  }
4453
- return A(t) && f(t, (s, n) => {
4445
+ return A(t) && g(t, (s, r) => {
4454
4446
  e = e.replace(
4455
- new RegExp(`\\[${n}\\](.*?)\\[/${n}\\]`, "g"),
4456
- (o, a) => String(s).replace(/\[content]/g, a)
4457
- ).replace(new RegExp(`\\[${n}\\]`, "g"), String(s));
4447
+ new RegExp(`(?:\\[|\\{)${r}(?:\\]|\\})(.*?)(?:\\[|\\{)\\/${r}(?:\\]|\\})`, "g"),
4448
+ (o, a) => String(s).replace(/(?:\[|\{)content(?:\]|\})/g, a)
4449
+ ).replace(new RegExp(`(?:\\[|\\{)${r}(?:\\]|\\})`, "g"), String(s));
4458
4450
  }), e;
4459
- }, E = class E {
4451
+ }, le = "global", E = class E {
4460
4452
  /**
4461
4453
  * Getting the translation text by its code.
4462
4454
  *
@@ -4465,9 +4457,9 @@ const ue = [
4465
4457
  * @param replacement If set, replaces the text with the specified values/ если установлено, заменяет текст на указанные значения
4466
4458
  */
4467
4459
  static async get(t, e) {
4468
- var n, o;
4469
- const s = this.getName(t);
4470
- return s in this.data ? this.replacement(this.data[s], e) : (z.isLocalhost() || await this.add(t), this.replacement((o = (n = this.data) == null ? void 0 : n[s]) != null ? o : t));
4460
+ var r;
4461
+ const s = this.getText(t);
4462
+ return s ? this.replacement(s, e) : (H.isLocalhost() || await this.add(t), this.replacement((r = this.getText(t)) != null ? r : t));
4471
4463
  }
4472
4464
  /**
4473
4465
  * Getting the translation text by its code (Sync).
@@ -4480,8 +4472,8 @@ const ue = [
4480
4472
  * если установлено, заменяет текст на указанные значения
4481
4473
  */
4482
4474
  static getSync(t, e = !1, s) {
4483
- const n = this.getName(t);
4484
- return n in this.data ? this.replacement(String(this.data[n]), s) : e ? " " : t;
4475
+ const r = this.getText(t);
4476
+ return r ? this.replacement(r, s) : e ? " " : t;
4485
4477
  }
4486
4478
  /**
4487
4479
  * Getting a list of translations by an array of text codes.
@@ -4492,11 +4484,11 @@ const ue = [
4492
4484
  static getList(t) {
4493
4485
  return new Promise((e) => {
4494
4486
  const s = {};
4495
- let n = 0;
4487
+ let r = 0;
4496
4488
  for (const o of t) {
4497
4489
  const a = Array.isArray(o) ? o[0] : o, u = Array.isArray(o) ? o.slice(1) : void 0;
4498
4490
  this.get(a, u).then((h) => {
4499
- s[a] = h, ++n >= t.length && e(s);
4491
+ s[a] = h, ++r >= t.length && e(s);
4500
4492
  });
4501
4493
  }
4502
4494
  });
@@ -4511,8 +4503,8 @@ const ue = [
4511
4503
  */
4512
4504
  static getListSync(t, e = !1) {
4513
4505
  const s = {};
4514
- for (const n of t) {
4515
- const o = Array.isArray(n) ? n[0] : n, a = Array.isArray(n) ? n.slice(1) : void 0;
4506
+ for (const r of t) {
4507
+ const o = Array.isArray(r) ? r[0] : r, a = Array.isArray(r) ? r.slice(1) : void 0;
4516
4508
  s[o] = this.getSync(o, e, a);
4517
4509
  }
4518
4510
  return s;
@@ -4527,7 +4519,7 @@ const ue = [
4527
4519
  return new Promise((e) => {
4528
4520
  this.getNamesNone(t).length > 0 ? (this.cache.push(...this.getNamesNone(t)), this.resolveList.push(e), this.timeout && clearTimeout(this.timeout), this.timeout = setTimeout(() => {
4529
4521
  this.timeout = void 0, this.make().then(() => {
4530
- this.resolveList.forEach((n) => n()), this.resolveList = [];
4522
+ this.resolveList.forEach((r) => r()), this.resolveList = [];
4531
4523
  });
4532
4524
  }, 160)) : e();
4533
4525
  });
@@ -4539,8 +4531,8 @@ const ue = [
4539
4531
  * @param data list of texts in the form of key-value/ список текстов в виде ключ-значение
4540
4532
  */
4541
4533
  static addSync(t) {
4542
- f(t, (e, s) => {
4543
- R(e) && L(e) && (this.data[this.getName(s)] = e);
4534
+ g(t, (e, s) => {
4535
+ x(e) && v(e) && (this.data[this.getName(s)] = e);
4544
4536
  });
4545
4537
  }
4546
4538
  /**
@@ -4550,14 +4542,29 @@ const ue = [
4550
4542
  * @param data list of texts in the form of key-value/ список текстов в виде ключ-значение
4551
4543
  */
4552
4544
  static async addNormalOrSync(t) {
4553
- if (L(t))
4554
- if (z.isLocalhost())
4545
+ if (v(t))
4546
+ if (H.isLocalhost())
4555
4547
  this.addSync(t);
4556
4548
  else {
4557
4549
  const e = Object.keys(t);
4558
4550
  e.length > 0 && await this.add(e);
4559
4551
  }
4560
4552
  }
4553
+ /**
4554
+ * Adds texts synchronously by location.
4555
+ *
4556
+ * Добавляет тексты синхронно по местоположению.
4557
+ * @param data list of texts by location/ список текстов по местоположению
4558
+ */
4559
+ static addSyncByLocation(t) {
4560
+ g(
4561
+ t,
4562
+ (e, s) => g(e, (r, o) => {
4563
+ const a = `${s}-${o}`;
4564
+ a in this.data || (this.data[a] = r);
4565
+ })
4566
+ );
4567
+ }
4561
4568
  /**
4562
4569
  * Change the path to the script for obtaining the translation.
4563
4570
  *
@@ -4570,6 +4577,32 @@ const ue = [
4570
4577
  static setPropsName(t) {
4571
4578
  return this.propsName = t, this;
4572
4579
  }
4580
+ /**
4581
+ * Checks for translation by code, taking into account fallback options.
4582
+ *
4583
+ * Проверяет наличие перевода по коду с учетом запасных вариантов.
4584
+ * @param name code name/ название кода
4585
+ */
4586
+ static hasName(t) {
4587
+ return this.getName(t) in this.data || this.getNameByLanguage(t) in this.data || this.getNameByGlobal(t) in this.data;
4588
+ }
4589
+ /**
4590
+ * Retrieves translation text by code, returning the first matching fallback.
4591
+ *
4592
+ * Получает текст перевода по коду, возвращая первое совпадение из запасных вариантов.
4593
+ * @param name code name/ название кода
4594
+ */
4595
+ static getText(t) {
4596
+ const e = this.getName(t);
4597
+ if (e in this.data)
4598
+ return this.data[e];
4599
+ const s = this.getNameByLanguage(t);
4600
+ if (s in this.data)
4601
+ return this.data[s];
4602
+ const r = this.getNameByGlobal(t);
4603
+ if (r in this.data)
4604
+ return this.data[r];
4605
+ }
4573
4606
  /**
4574
4607
  * Getting the full title for translation.
4575
4608
  *
@@ -4577,7 +4610,25 @@ const ue = [
4577
4610
  * @param name code name/ название кода
4578
4611
  */
4579
4612
  static getName(t) {
4580
- return `${w.getLocation()}-${t}`;
4613
+ return `${p.getLocation()}-${t}`;
4614
+ }
4615
+ /**
4616
+ * Getting the title for translation by language.
4617
+ *
4618
+ * Получение названия для перевода по языку.
4619
+ * @param name code name/ название кода
4620
+ */
4621
+ static getNameByLanguage(t) {
4622
+ return `${p.getLanguage()}-${t}`;
4623
+ }
4624
+ /**
4625
+ * Getting the title for translation globally.
4626
+ *
4627
+ * Получение названия для перевода глобально.
4628
+ * @param name code name/ название кода
4629
+ */
4630
+ static getNameByGlobal(t) {
4631
+ return `${le}-${t}`;
4581
4632
  }
4582
4633
  /**
4583
4634
  * Returns a list of names that are not yet in the list.
@@ -4587,7 +4638,7 @@ const ue = [
4587
4638
  */
4588
4639
  static getNamesNone(t) {
4589
4640
  const e = [];
4590
- return Z(t).forEach((s) => {
4641
+ return z(t).forEach((s) => {
4591
4642
  s !== "__TRANSLATE_START__" && s !== "__TRANSLATE_END__" && !(this.getName(s) in this.data) && e.push(s);
4592
4643
  }), e;
4593
4644
  }
@@ -4597,7 +4648,7 @@ const ue = [
4597
4648
  * Получение списка переводов с сервера.
4598
4649
  */
4599
4650
  static async getResponse() {
4600
- const t = await z.get({
4651
+ const t = await H.get({
4601
4652
  api: !1,
4602
4653
  path: this.url,
4603
4654
  request: {
@@ -4632,24 +4683,21 @@ const ue = [
4632
4683
  }
4633
4684
  };
4634
4685
  c(E, "url", "/api/translate"), c(E, "propsName", "list"), c(E, "data", {}), c(E, "cache", []), c(E, "resolveList", []), c(E, "timeout");
4635
- let Ct = E;
4636
- function xt(i) {
4637
- return Array.isArray(i);
4638
- }
4639
- function Ie(i) {
4686
+ let Nt = E;
4687
+ function de(i) {
4640
4688
  var t;
4641
- return R(i) ? i.trim() : xt(i) && i.findIndex((e) => m(e)) === -1 ? i.join(",") : m(i) ? JSON.stringify(i) : i === !0 ? "1" : i === !1 ? "0" : (t = i == null ? void 0 : i.toString()) != null ? t : "";
4689
+ return x(i) ? i.trim() : at(i) && i.findIndex((e) => f(e)) === -1 ? i.join(",") : f(i) ? JSON.stringify(i) : i === !0 ? "1" : i === !1 ? "0" : (t = i == null ? void 0 : i.toString()) != null ? t : "";
4642
4690
  }
4643
- function le(i, t) {
4691
+ function ge(i, t) {
4644
4692
  return Array(t).fill(i);
4645
4693
  }
4646
- function Be(i) {
4694
+ function Fe(i) {
4647
4695
  return new Promise((t, e) => {
4648
4696
  const s = new FileReader();
4649
4697
  s.onloadend = () => t(s.result), s.onerror = e, s.readAsDataURL(i);
4650
4698
  });
4651
4699
  }
4652
- function Fe(i) {
4700
+ function Re(i) {
4653
4701
  var t;
4654
4702
  if (l())
4655
4703
  return (t = document.querySelector(i)) != null ? t : void 0;
@@ -4658,122 +4706,134 @@ function xe(i) {
4658
4706
  if (l())
4659
4707
  return document.querySelectorAll(i);
4660
4708
  }
4661
- function Re(i) {
4709
+ function Pe(i) {
4662
4710
  i.preventDefault(), i.stopPropagation();
4663
4711
  }
4664
- function de(i, t, e) {
4712
+ function fe(i, t, e) {
4665
4713
  const s = () => {
4666
- i(), t != null && t() ? de(i, t, e) : e == null || e();
4714
+ i(), t != null && t() ? fe(i, t, e) : e == null || e();
4667
4715
  };
4668
4716
  l() ? requestAnimationFrame(s) : s();
4669
4717
  }
4670
- function Pe(i) {
4718
+ function We(i) {
4671
4719
  var s;
4672
4720
  const t = {}, e = N(i);
4673
4721
  if (e)
4674
- for (const n of e.attributes)
4675
- t[n.name] = (s = (n == null ? void 0 : n.value) || (n == null ? void 0 : n.textContent)) != null ? s : void 0;
4722
+ for (const r of e.attributes)
4723
+ t[r.name] = (s = (r == null ? void 0 : r.value) || (r == null ? void 0 : r.textContent)) != null ? s : void 0;
4676
4724
  return t;
4677
4725
  }
4678
- async function We(i) {
4726
+ async function je(i) {
4679
4727
  var t, e;
4680
4728
  return (e = (t = i == null ? void 0 : i.clipboardData) == null ? void 0 : t.getData("text")) != null ? e : await navigator.clipboard.readText() || "";
4681
4729
  }
4682
4730
  function Ue(i = "datetime") {
4683
- return new ct(void 0, i).standard();
4731
+ return new ut(void 0, i).standard();
4684
4732
  }
4685
- let kt = J(1e5, 9e5);
4686
- function je(i, t) {
4733
+ let At = q(1e5, 9e5);
4734
+ function He(i, t) {
4687
4735
  const e = N(i);
4688
- return e ? (L(e.id) || e.setAttribute("id", `id-${kt++}`), t ? `#${e.id}${t}`.trim() : e.id) : `id-${kt++}`;
4736
+ return e ? (v(e.id) || e.setAttribute("id", `id-${At++}`), t ? `#${e.id}${t}`.trim() : e.id) : `id-${At++}`;
4689
4737
  }
4690
- function ge(i) {
4691
- return R(i) ? _(
4738
+ function me(i) {
4739
+ return x(i) ? _(
4692
4740
  void 0,
4693
4741
  "img",
4694
4742
  { src: i }
4695
4743
  ) : i;
4696
4744
  }
4697
- function fe(i, t = "ig", e = ":value") {
4698
- const s = i.replace(/([[\]\\^$.?*+()/])/g, "\\$1");
4745
+ function ye(i, t = "ig", e = ":value") {
4746
+ const s = i.replace(/([[\]\\^$.?*+(){}/|])/g, "\\$1");
4699
4747
  return new RegExp(e.replace(/:value/g, s), t);
4700
4748
  }
4701
- function me(i, t) {
4702
- var n;
4703
- const e = t.split(".", 2), s = e[0];
4704
- return s && (i != null && i[s]) && A(i[s]) && (e != null && e[1]) ? me(i[s], e[1]) : (n = s && (i == null ? void 0 : i[s])) != null ? n : "";
4749
+ function $e(i, t, e) {
4750
+ const s = de(i);
4751
+ if (!e || e <= 0)
4752
+ return s.split(t);
4753
+ const r = s.split(t, e), o = s.split(t);
4754
+ return r.length === o.length ? r : (r.pop(), [
4755
+ ...r,
4756
+ o.slice(e - 1).join(t)
4757
+ ]);
4705
4758
  }
4706
- function He(i) {
4759
+ function pe(i, t) {
4760
+ var r;
4761
+ if (!v(t))
4762
+ return;
4763
+ const e = $e(t, ".", 2), s = e[0];
4764
+ return s && (i != null && i[s]) && f(i[s]) && (e != null && e[1]) ? pe(i[s], e[1]) : (r = v(s) && (i == null ? void 0 : i[s])) != null ? r : void 0;
4765
+ }
4766
+ function ze(i) {
4707
4767
  var t, e, s;
4708
4768
  return (s = (t = i == null ? void 0 : i.key) != null ? t : i == null ? void 0 : i.code) != null ? s : (e = i == null ? void 0 : i.keyCode) == null ? void 0 : e.toString();
4709
4769
  }
4710
- function Rt(i) {
4711
- return f(i, (t) => t.length);
4712
- }
4713
- function ze(i) {
4714
- return Math.max(...Rt(i));
4770
+ function Pt(i) {
4771
+ return g(i, (t) => t.length);
4715
4772
  }
4716
4773
  function Ze(i) {
4717
- return Math.min(...Rt(i));
4774
+ return Math.max(...Pt(i));
4718
4775
  }
4719
- function ye(i) {
4720
- var t, e, s, n;
4721
- return (i == null ? void 0 : i.clientX) || ((e = (t = i == null ? void 0 : i.targetTouches) == null ? void 0 : t[0]) == null ? void 0 : e.clientX) || ((n = (s = i == null ? void 0 : i.touches) == null ? void 0 : s[0]) == null ? void 0 : n.clientX) || 0;
4776
+ function Ve(i) {
4777
+ return Math.min(...Pt(i));
4722
4778
  }
4723
- function $e(i) {
4724
- var t, e, s, n;
4725
- return (i == null ? void 0 : i.clientY) || ((e = (t = i == null ? void 0 : i.targetTouches) == null ? void 0 : t[0]) == null ? void 0 : e.clientY) || ((n = (s = i == null ? void 0 : i.touches) == null ? void 0 : s[0]) == null ? void 0 : n.clientY) || 0;
4779
+ function be(i) {
4780
+ var t, e, s, r;
4781
+ return (i == null ? void 0 : i.clientX) || ((e = (t = i == null ? void 0 : i.targetTouches) == null ? void 0 : t[0]) == null ? void 0 : e.clientX) || ((r = (s = i == null ? void 0 : i.touches) == null ? void 0 : s[0]) == null ? void 0 : r.clientX) || 0;
4726
4782
  }
4727
- function Ve(i) {
4783
+ function we(i) {
4784
+ var t, e, s, r;
4785
+ return (i == null ? void 0 : i.clientY) || ((e = (t = i == null ? void 0 : i.targetTouches) == null ? void 0 : t[0]) == null ? void 0 : e.clientY) || ((r = (s = i == null ? void 0 : i.touches) == null ? void 0 : s[0]) == null ? void 0 : r.clientY) || 0;
4786
+ }
4787
+ function Ke(i) {
4728
4788
  return {
4729
- x: ye(i),
4730
- y: $e(i)
4789
+ x: be(i),
4790
+ y: we(i)
4731
4791
  };
4732
4792
  }
4733
- function Ke(i, t) {
4793
+ function Ye(i, t) {
4734
4794
  const e = {};
4735
4795
  return t.forEach((s) => {
4736
4796
  s in i && i[s] !== void 0 && (e[s] = i[s]);
4737
4797
  }), e;
4738
4798
  }
4739
- function Ye(i, t = void 0) {
4799
+ function qe(i, t = void 0) {
4740
4800
  const e = {};
4741
- return f(i, (s, n) => {
4742
- s !== t && (e[n] = s);
4801
+ return g(i, (s, r) => {
4802
+ s !== t && (e[r] = s);
4743
4803
  }), e;
4744
4804
  }
4745
- function qe(i) {
4805
+ function Je(i) {
4746
4806
  return A(i) ? i : {};
4747
4807
  }
4748
- function pe(i, t) {
4749
- return le(i, t).join("");
4808
+ function ve(i, t) {
4809
+ return ge(i, t).join("");
4750
4810
  }
4751
- function Je(i, t, e = "#", s = 2, n = 12) {
4752
- const o = J(i, t), a = [];
4811
+ function Me(i, t, e = "#", s = 2, r = 12) {
4812
+ const o = q(i, t), a = [];
4753
4813
  for (let u = 0; u < o; u++)
4754
- a.push(pe(e, J(s, n)));
4814
+ a.push(ve(e, q(s, r)));
4755
4815
  return a.join(" ");
4756
4816
  }
4757
- function Me(i, t) {
4817
+ function Qe(i, t) {
4758
4818
  const e = i != null ? i : 0;
4759
4819
  return t > e ? 100 / (t - e) : 0;
4760
4820
  }
4761
- function Qe(i, t) {
4821
+ function Xe(i, t) {
4762
4822
  const e = i != null ? i : 0;
4763
4823
  return t > e ? (t - e) / 100 : 0;
4764
4824
  }
4765
- const At = 0;
4766
- function Xe(i, t, e) {
4825
+ const Et = 0;
4826
+ function _e(i, t, e) {
4767
4827
  const s = t == null ? void 0 : t.closest(i);
4768
4828
  if (t && s && s.scrollHeight !== s.offsetHeight) {
4769
- const n = s.getBoundingClientRect(), o = t.getBoundingClientRect();
4829
+ const r = s.getBoundingClientRect(), o = t.getBoundingClientRect();
4770
4830
  if (e) {
4771
4831
  const a = e.getBoundingClientRect();
4772
- s.scrollTop = t.offsetTop - (a.top - n.top) - (a.height / 2 - o.height / 2), s.scrollTop + s.offsetHeight < t.offsetTop + t.offsetHeight && (s.scrollTop = t.offsetTop + t.offsetHeight - s.offsetHeight);
4773
- } else s.scrollTop > t.offsetTop ? s.scrollTop = o.top - n.top - At : s.scrollTop + s.offsetHeight < t.offsetTop + t.offsetHeight && (s.scrollTop = o.top - n.top + o.height - n.height + At);
4832
+ s.scrollTop = t.offsetTop - (a.top - r.top) - (a.height / 2 - o.height / 2), s.scrollTop + s.offsetHeight < t.offsetTop + t.offsetHeight && (s.scrollTop = t.offsetTop + t.offsetHeight - s.offsetHeight);
4833
+ } else s.scrollTop > t.offsetTop ? s.scrollTop = o.top - r.top - Et : s.scrollTop + s.offsetHeight < t.offsetTop + t.offsetHeight && (s.scrollTop = o.top - r.top + o.height - r.height + Et);
4774
4834
  }
4775
4835
  }
4776
- function _e(i, t, e = 0) {
4836
+ function Oe(i, t, e = 0) {
4777
4837
  if (!l())
4778
4838
  return;
4779
4839
  const s = (t == null ? void 0 : t.behavior) || "smooth";
@@ -4786,42 +4846,52 @@ function _e(i, t, e = 0) {
4786
4846
  return;
4787
4847
  }
4788
4848
  if ("getBoundingClientRect" in i && "scrollTo" in window) {
4789
- const n = ((window == null ? void 0 : window.scrollY) || window.pageYOffset) + i.getBoundingClientRect().top - e;
4849
+ const r = ((window == null ? void 0 : window.scrollY) || window.pageYOffset) + i.getBoundingClientRect().top - e;
4790
4850
  window.scrollTo({
4791
- top: n,
4851
+ top: r,
4792
4852
  behavior: s
4793
4853
  });
4794
4854
  }
4795
4855
  }
4796
- function Oe(i, t) {
4856
+ function Te(i, t, e = "smooth") {
4857
+ if (!l() || !i || !t)
4858
+ return;
4859
+ const s = i.getBoundingClientRect(), r = t.getBoundingClientRect();
4860
+ i.scrollBy({
4861
+ top: r.top - s.top,
4862
+ left: r.left - s.left,
4863
+ behavior: e
4864
+ });
4865
+ }
4866
+ function Ge(i, t) {
4797
4867
  return i.indexOf(t) !== -1;
4798
4868
  }
4799
- async function Te() {
4869
+ async function ti() {
4800
4870
  if (l()) {
4801
4871
  const i = await ot.get();
4802
4872
  document.body.style.setProperty("--sys-scrollbar-offset", `${i}px`);
4803
4873
  }
4804
4874
  }
4805
- function Ge(i, t) {
4875
+ function ei(i, t) {
4806
4876
  const e = {};
4807
- return m(i) && m(t) && f(i, (s, n) => {
4808
- n in t && (e[n] = s);
4877
+ return f(i) && f(t) && g(i, (s, r) => {
4878
+ r in t && (e[r] = s);
4809
4879
  }), e;
4810
4880
  }
4811
- function ti(i, t) {
4881
+ function ii(i, t) {
4812
4882
  let e = Object.keys(i).length !== Object.keys(t).length;
4813
- return e || f(i, (s, n) => {
4814
- s !== (t == null ? void 0 : t[n]) && (e = !0);
4883
+ return e || g(i, (s, r) => {
4884
+ s !== (t == null ? void 0 : t[r]) && (e = !0);
4815
4885
  }), e;
4816
4886
  }
4817
- const we = (i) => {
4887
+ const Se = (i) => {
4818
4888
  if (i instanceof HTMLElement) {
4819
4889
  const t = i.tagName.toLowerCase();
4820
4890
  return !!(t === "input" || t === "textarea" || t === "select" || i.isContentEditable || i.getAttribute("contenteditable") === "true");
4821
4891
  }
4822
4892
  return !1;
4823
- }, ei = (i, t) => i.code === "Space" || i.code === "Enter" || i.key === " " || i.key === "Spacebar" || i.key === "Enter" || i.keyCode === 13 || i.keyCode === 32 ? t !== void 0 ? !t : !we(i.target) : !1;
4824
- function ii(i) {
4893
+ }, si = (i, t) => i.code === "Space" || i.code === "Enter" || i.key === " " || i.key === "Spacebar" || i.key === "Enter" || i.keyCode === 13 || i.keyCode === 32 ? t !== void 0 ? !t : !Se(i.target) : !1;
4894
+ function ri(i) {
4825
4895
  switch (typeof i) {
4826
4896
  case "number":
4827
4897
  return !0;
@@ -4831,14 +4901,14 @@ function ii(i) {
4831
4901
  return !1;
4832
4902
  }
4833
4903
  }
4834
- function si(i, t) {
4904
+ function ni(i, t) {
4835
4905
  const e = Math.floor(t);
4836
4906
  return i >= e && i < e + 1;
4837
4907
  }
4838
- function ri(i, t) {
4908
+ function oi(i, t) {
4839
4909
  return Array.isArray(i) ? i.every((e) => rt(e, t)) : rt(i, t);
4840
4910
  }
4841
- function ni(i, t) {
4911
+ function ai(i, t) {
4842
4912
  if (i.startsWith(t))
4843
4913
  return i.slice(t.length).trim();
4844
4914
  let e = 0;
@@ -4846,34 +4916,34 @@ function ni(i, t) {
4846
4916
  e++;
4847
4917
  return i.slice(e).trim();
4848
4918
  }
4849
- const oi = (i, t, e) => {
4850
- var s, n;
4851
- return (n = (s = i == null ? void 0 : i.replace(new RegExp(`<${t}`, "ig"), `<${e}`)) == null ? void 0 : s.replace(new RegExp(`</${t}`, "ig"), `</${e}`)) == null ? void 0 : n.trim();
4919
+ const ci = (i, t, e) => {
4920
+ var s, r;
4921
+ return (r = (s = i == null ? void 0 : i.replace(new RegExp(`<${t}`, "ig"), `<${e}`)) == null ? void 0 : s.replace(new RegExp(`</${t}`, "ig"), `</${e}`)) == null ? void 0 : r.trim();
4852
4922
  };
4853
- function be(i) {
4923
+ function De(i) {
4854
4924
  return [...new Set(i)];
4855
4925
  }
4856
- function K(i, t, e = !0) {
4857
- const s = H(i);
4858
- return m(i) && m(t) && f(
4926
+ function V(i, t, e = !0) {
4927
+ const s = U(i);
4928
+ return f(i) && f(t) && g(
4859
4929
  t,
4860
- (n, o) => {
4930
+ (r, o) => {
4861
4931
  const a = i == null ? void 0 : i[o];
4862
- m(a) && m(n) ? e && Array.isArray(a) && Array.isArray(n) ? s[o] = H(be([...a, ...n])) : s[o] = K(
4932
+ f(a) && f(r) ? e && Array.isArray(a) && Array.isArray(r) ? s[o] = U(De([...a, ...r])) : s[o] = V(
4863
4933
  Array.isArray(a) ? { ...a } : a,
4864
- n,
4934
+ r,
4865
4935
  e
4866
- ) : s[o] = m(n) ? H(n) : n;
4936
+ ) : s[o] = f(r) ? U(r) : r;
4867
4937
  }
4868
4938
  ), s;
4869
4939
  }
4870
- function ai(i, t) {
4940
+ function ui(i, t) {
4871
4941
  let e = i;
4872
- return f(t, (s, n) => {
4873
- e = e.replace(fe(`[${n}]`), I(s));
4942
+ return g(t, (s, r) => {
4943
+ e = e.replace(ye(`[${r}]`), B(s));
4874
4944
  }), e;
4875
4945
  }
4876
- function ve(i, t = "auto") {
4946
+ function Le(i, t = "auto") {
4877
4947
  switch (t) {
4878
4948
  case "auto":
4879
4949
  return i.naturalWidth >= i.naturalHeight;
@@ -4883,16 +4953,16 @@ function ve(i, t = "auto") {
4883
4953
  return !1;
4884
4954
  }
4885
4955
  }
4886
- function ci(i, t, e = "auto", s) {
4956
+ function hi(i, t, e = "auto", s) {
4887
4957
  var o;
4888
- const n = ge(i);
4889
- if (n && (n.naturalWidth > t && (e === "auto" || e === "width") || n.naturalHeight > t && (e === "auto" || e === "height"))) {
4890
- const a = ve(n, e), u = (o = document.createElement("canvas")) == null ? void 0 : o.getContext("2d");
4958
+ const r = me(i);
4959
+ if (r && (r.naturalWidth > t && (e === "auto" || e === "width") || r.naturalHeight > t && (e === "auto" || e === "height"))) {
4960
+ const a = Le(r, e), u = (o = document.createElement("canvas")) == null ? void 0 : o.getContext("2d");
4891
4961
  if (u)
4892
- return u.canvas.width = a ? t : n.naturalWidth / n.naturalHeight * t, u.canvas.height = a ? n.naturalHeight / n.naturalWidth * t : t, u.drawImage(n, 0, 0, u.canvas.width, u.canvas.height), u.canvas.toDataURL(s);
4962
+ return u.canvas.width = a ? t : r.naturalWidth / r.naturalHeight * t, u.canvas.height = a ? r.naturalHeight / r.naturalWidth * t : t, u.drawImage(r, 0, 0, u.canvas.width, u.canvas.height), u.canvas.toDataURL(s);
4893
4963
  }
4894
4964
  }
4895
- function ui(i) {
4965
+ function li(i) {
4896
4966
  const t = k(i);
4897
4967
  if (t > 0) {
4898
4968
  const e = String(Math.floor(t / 60)).padStart(2, "0"), s = String(t % 60).padStart(2, "0");
@@ -4900,61 +4970,61 @@ function ui(i) {
4900
4970
  }
4901
4971
  return "00:00";
4902
4972
  }
4903
- function hi(i, t, {
4973
+ function di(i, t, {
4904
4974
  multiple: e = !1,
4905
4975
  maxlength: s = 0,
4906
- alwaysChange: n = !0,
4976
+ alwaysChange: r = !0,
4907
4977
  notEmpty: o = !1
4908
4978
  }) {
4909
4979
  if (e) {
4910
- if (xt(i)) {
4980
+ if (at(i)) {
4911
4981
  const a = i.indexOf(t), u = [...i];
4912
4982
  return a !== -1 ? (!o || u.length > 1) && u.splice(a, 1) : (!s || i.length < s) && u.push(t), u;
4913
4983
  }
4914
4984
  return i === t ? [] : i ? [i, t] : [t];
4915
4985
  }
4916
- return n || i !== t ? t : i;
4986
+ return r || i !== t ? t : i;
4917
4987
  }
4918
- function li(i, t, e) {
4919
- if (m(i) && m(t)) {
4988
+ function gi(i, t, e) {
4989
+ if (f(i) && f(t)) {
4920
4990
  if (e) {
4921
- let s = {}, n = !1;
4922
- return f(i, (o, a) => {
4923
- !n && (e === a || e === o) ? (n = !0, s = K(s, t)) : n ? s = K(s, { [a]: o }) : s[a] = m(o) ? H(o) : o;
4924
- }), n ? s : K(i, t);
4991
+ let s = {}, r = !1;
4992
+ return g(i, (o, a) => {
4993
+ !r && (e === a || e === o) ? (r = !0, s = V(s, t)) : r ? s = V(s, { [a]: o }) : s[a] = f(o) ? U(o) : o;
4994
+ }), r ? s : V(i, t);
4925
4995
  }
4926
- if (m(t))
4927
- return K(i, t);
4996
+ if (f(t))
4997
+ return V(i, t);
4928
4998
  }
4929
- return H(i);
4999
+ return U(i);
4930
5000
  }
4931
- function Se(i) {
5001
+ function Ce(i) {
4932
5002
  return i.toString().trim().replace(/[^\w- ]+/g, "").replace(/ +/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (t) => `${t.toLowerCase()}`).replace(/-+([a-zA-Z0-9])/g, (...t) => `${String(t[1]).toUpperCase()}`).replace(/^([A-Z])/, (t) => `${t.toLowerCase()}`);
4933
5003
  }
4934
- function di(i) {
4935
- return Se(i).replace(/^([a-z])/, (t) => `${t.toUpperCase()}`);
5004
+ function fi(i) {
5005
+ return Ce(i).replace(/^([a-z])/, (t) => `${t.toUpperCase()}`);
4936
5006
  }
4937
- function gi(i) {
5007
+ function mi(i) {
4938
5008
  return i.toString().trim().replace(/[^\w- ]+/g, "").replace(/ +/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (t) => `${t.toLowerCase()}`).replace(/^[A-Z]/, (t) => t.toLowerCase()).replace(/(?<=[\w ])[A-Z]/g, (t) => `-${t.toLowerCase()}`).replace(/[A-Z]/g, (t) => t.toLowerCase());
4939
5009
  }
4940
- function fi(i, t, e, s) {
4941
- const n = k(i), o = k(t);
4942
- return t && o < n ? `${Nt(o, e, s)}+` : Nt(n, e, s);
5010
+ function yi(i, t, e, s) {
5011
+ const r = k(i), o = k(t);
5012
+ return t && o < r ? `${Bt(o, e, s)}+` : Bt(r, e, s);
4943
5013
  }
4944
- const Nt = (i, t, e) => t ? new Q(e).number(i) : i;
4945
- function De(i, t) {
5014
+ const Bt = (i, t, e) => t ? new M(e).number(i) : i;
5015
+ function ke(i, t) {
4946
5016
  return 1 / i * t;
4947
5017
  }
4948
- function mi(i, t) {
4949
- return De(i, t) * 100;
5018
+ function $i(i, t) {
5019
+ return ke(i, t) * 100;
4950
5020
  }
4951
- function yi(i) {
5021
+ function pi(i) {
4952
5022
  let t = "";
4953
5023
  for (const e of i)
4954
5024
  t += String.fromCharCode(e);
4955
5025
  return l() ? window.btoa(t) : globalThis && globalThis.Buffer ? globalThis == null ? void 0 : globalThis.Buffer.from(i).toString("base64") : "";
4956
5026
  }
4957
- async function $i(i) {
5027
+ async function bi(i) {
4958
5028
  if (l())
4959
5029
  try {
4960
5030
  await navigator.clipboard.writeText(i);
@@ -4963,34 +5033,33 @@ async function $i(i) {
4963
5033
  }
4964
5034
  }
4965
5035
  export {
4966
- z as Api,
4967
- Zt as ApiDefault,
4968
- zt as ApiHeaders,
4969
- D as ApiMethodItem,
5036
+ H as Api,
5037
+ Vt as ApiDefault,
5038
+ Zt as ApiHeaders,
5039
+ L as ApiMethodItem,
4970
5040
  qt as ApiPreparation,
4971
5041
  Yt as ApiResponse,
4972
- Vt as ApiStatus,
4973
- ke as BroadcastMessage,
5042
+ $t as ApiStatus,
5043
+ Ee as BroadcastMessage,
4974
5044
  Qt as Cache,
4975
5045
  Mt as CacheItem,
4976
- $t as CacheStatic,
4977
- pt as Cookie,
4978
- Ft as CookieBlock,
5046
+ bt as CacheStatic,
5047
+ wt as Cookie,
5048
+ xt as CookieBlock,
4979
5049
  T as DataStorage,
4980
- ct as Datetime,
4981
- Ae as ElementScreenshot,
4982
- ft as EventItem,
4983
- r as GEO_FLAG_ICON_NAME,
4984
- w as Geo,
4985
- wt as GeoFlag,
4986
- Q as GeoIntl,
4987
- bt as GeoPhone,
4988
- Ne as Global,
4989
- vt as Hash,
4990
- Lt as Icons,
4991
- x as Loading,
4992
- Ee as Meta,
4993
- ut as MetaManager,
5050
+ ut as Datetime,
5051
+ mt as EventItem,
5052
+ n as GEO_FLAG_ICON_NAME,
5053
+ p as Geo,
5054
+ vt as GeoFlag,
5055
+ M as GeoIntl,
5056
+ St as GeoPhone,
5057
+ Be as Global,
5058
+ Dt as Hash,
5059
+ kt as Icons,
5060
+ I as Loading,
5061
+ Ie as Meta,
5062
+ ht as MetaManager,
4994
5063
  ae as MetaOg,
4995
5064
  re as MetaOpenGraphAge,
4996
5065
  ie as MetaOpenGraphAvailability,
@@ -4999,98 +5068,101 @@ export {
4999
5068
  y as MetaOpenGraphTag,
5000
5069
  ee as MetaOpenGraphType,
5001
5070
  te as MetaRobots,
5002
- S as MetaTag,
5071
+ D as MetaTag,
5003
5072
  ce as MetaTwitter,
5004
5073
  oe as MetaTwitterCard,
5005
5074
  $ as MetaTwitterTag,
5006
5075
  ot as ScrollbarWidth,
5007
- Ct as Translate,
5008
- Ie as anyToString,
5076
+ le as TRANSLATE_GLOBAL_PREFIX,
5077
+ Nt as Translate,
5078
+ de as anyToString,
5009
5079
  he as applyTemplate,
5010
- le as arrFill,
5011
- Be as blobToBase64,
5012
- H as copyObject,
5080
+ ge as arrFill,
5081
+ Fe as blobToBase64,
5082
+ U as copyObject,
5013
5083
  C as copyObjectLite,
5014
5084
  _ as createElement,
5015
- Fe as domQuerySelector,
5085
+ Re as domQuerySelector,
5016
5086
  xe as domQuerySelectorAll,
5017
5087
  Gt as encodeAttribute,
5018
- Re as eventStopPropagation,
5019
- I as executeFunction,
5088
+ Pe as eventStopPropagation,
5089
+ B as executeFunction,
5020
5090
  Kt as executePromise,
5021
- f as forEach,
5022
- de as frame,
5023
- Pe as getAttributes,
5024
- We as getClipboardData,
5091
+ g as forEach,
5092
+ fe as frame,
5093
+ We as getAttributes,
5094
+ je as getClipboardData,
5025
5095
  _t as getColumn,
5026
5096
  Ue as getCurrentDate,
5027
5097
  N as getElement,
5028
- je as getElementId,
5029
- ge as getElementImage,
5098
+ He as getElementId,
5099
+ me as getElementImage,
5030
5100
  Ot as getElementItem,
5031
- gt as getElementOrWindow,
5032
- fe as getExp,
5033
- me as getItemByPath,
5034
- He as getKey,
5035
- Rt as getLengthOfAllArray,
5036
- ze as getMaxLengthAllArray,
5037
- Ze as getMinLengthAllArray,
5038
- Ve as getMouseClient,
5039
- ye as getMouseClientX,
5040
- $e as getMouseClientY,
5041
- Ke as getObjectByKeys,
5042
- Ye as getObjectNoUndefined,
5043
- qe as getObjectOrNone,
5044
- Je as getRandomText,
5045
- Et as getRequestString,
5046
- Me as getStepPercent,
5047
- Qe as getStepValue,
5048
- Xe as goScroll,
5049
- _e as goScrollSmooth,
5050
- Oe as inArray,
5051
- Te as initScrollbarOffset,
5052
- Ge as intersectKey,
5053
- xt as isArray,
5054
- ti as isDifferent,
5101
+ ft as getElementOrWindow,
5102
+ ye as getExp,
5103
+ pe as getItemByPath,
5104
+ ze as getKey,
5105
+ Pt as getLengthOfAllArray,
5106
+ Ze as getMaxLengthAllArray,
5107
+ Ve as getMinLengthAllArray,
5108
+ Ke as getMouseClient,
5109
+ be as getMouseClientX,
5110
+ we as getMouseClientY,
5111
+ Ye as getObjectByKeys,
5112
+ qe as getObjectNoUndefined,
5113
+ Je as getObjectOrNone,
5114
+ Me as getRandomText,
5115
+ It as getRequestString,
5116
+ Qe as getStepPercent,
5117
+ Xe as getStepValue,
5118
+ _e as goScroll,
5119
+ Oe as goScrollSmooth,
5120
+ Te as goScrollTo,
5121
+ Ge as inArray,
5122
+ ti as initScrollbarOffset,
5123
+ ei as intersectKey,
5124
+ at as isArray,
5125
+ ii as isDifferent,
5055
5126
  nt as isDomData,
5056
5127
  l as isDomRuntime,
5057
- ei as isEnter,
5058
- L as isFilled,
5059
- ii as isFloat,
5060
- at as isFunction,
5061
- Ht as isInDom,
5062
- we as isInput,
5063
- si as isIntegerBetween,
5064
- M as isNull,
5065
- lt as isNumber,
5066
- m as isObject,
5128
+ si as isEnter,
5129
+ v as isFilled,
5130
+ ri as isFloat,
5131
+ ct as isFunction,
5132
+ zt as isInDom,
5133
+ Se as isInput,
5134
+ ni as isIntegerBetween,
5135
+ J as isNull,
5136
+ dt as isNumber,
5137
+ f as isObject,
5067
5138
  A as isObjectNotArray,
5068
5139
  rt as isSelected,
5069
- ri as isSelectedByList,
5070
- R as isString,
5071
- It as isWindow,
5072
- J as random,
5073
- ni as removeCommonPrefix,
5074
- oi as replaceComponentName,
5075
- K as replaceRecursive,
5076
- ai as replaceTemplate,
5077
- ci as resizeImageByMax,
5078
- ui as secondToTime,
5140
+ oi as isSelectedByList,
5141
+ x as isString,
5142
+ Ft as isWindow,
5143
+ q as random,
5144
+ ai as removeCommonPrefix,
5145
+ ci as replaceComponentName,
5146
+ V as replaceRecursive,
5147
+ ui as replaceTemplate,
5148
+ hi as resizeImageByMax,
5149
+ li as secondToTime,
5079
5150
  Tt as setElementItem,
5080
- hi as setValues,
5081
- li as splice,
5082
- pe as strFill,
5083
- Z as toArray,
5084
- Se as toCamelCase,
5085
- di as toCamelCaseFirst,
5086
- B as toDate,
5087
- gi as toKebabCase,
5151
+ di as setValues,
5152
+ gi as splice,
5153
+ ve as strFill,
5154
+ $e as strSplit,
5155
+ z as toArray,
5156
+ Ce as toCamelCase,
5157
+ fi as toCamelCaseFirst,
5158
+ F as toDate,
5159
+ mi as toKebabCase,
5088
5160
  k as toNumber,
5089
- fi as toNumberByMax,
5090
- De as toPercent,
5091
- mi as toPercentBy100,
5092
- Bt as transformation,
5093
- yi as uint8ArrayToBase64,
5094
- be as uniqueArray,
5095
- $i as writeClipboardData
5161
+ yi as toNumberByMax,
5162
+ ke as toPercent,
5163
+ $i as toPercentBy100,
5164
+ Rt as transformation,
5165
+ pi as uint8ArrayToBase64,
5166
+ De as uniqueArray,
5167
+ bi as writeClipboardData
5096
5168
  };