@dxtmisha/functional-basic 0.10.0 → 0.11.0

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
@@ -2,34 +2,34 @@ var Vt = Object.defineProperty;
2
2
  var Kt = (s, t, e) => t in s ? Vt(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
3
3
  var c = (s, t, e) => Kt(s, typeof t != "symbol" ? t + "" : t, e);
4
4
  import { geo as Yt } from "@dxtmisha/media";
5
- function D(s, t) {
5
+ function C(s, t) {
6
6
  return t ? Object.assign({}, s, t) : Object.assign({}, s);
7
7
  }
8
- function f(s) {
8
+ function m(s) {
9
9
  return !!(s && typeof s == "object");
10
10
  }
11
- function d(s, t, e) {
12
- if (f(s)) {
11
+ function g(s, t, e) {
12
+ if (m(s)) {
13
13
  const i = [];
14
- return s instanceof Map ? s.forEach((r, a) => i.push(t(r, a, s))) : Array.isArray(s) ? s.forEach((r, a) => i.push(t(r, a, s))) : Object.entries(s).forEach(
15
- ([r, a]) => i.push(t(a, r, s))
14
+ return s instanceof Map ? s.forEach((r, o) => i.push(t(r, o, s))) : Array.isArray(s) ? s.forEach((r, o) => i.push(t(r, o, s))) : Object.entries(s).forEach(
15
+ ([r, o]) => i.push(t(o, r, s))
16
16
  ), e ? i : i.filter((r) => r !== void 0);
17
17
  }
18
18
  return [];
19
19
  }
20
20
  function Pt(s, t = "=", e = "&") {
21
- return d(
21
+ return g(
22
22
  s,
23
23
  (i, r) => `${r}${t}${encodeURIComponent(String(i).trim())}`
24
24
  ).sort().join(e);
25
25
  }
26
- function ht(s) {
26
+ function et(s) {
27
27
  return Array.isArray(s);
28
28
  }
29
29
  function X(s) {
30
30
  return s == null;
31
31
  }
32
- function m(s, t) {
32
+ function y(s, t) {
33
33
  if (s) {
34
34
  if (t && s === "0")
35
35
  return !0;
@@ -54,16 +54,16 @@ function m(s, t) {
54
54
  }
55
55
  return !1;
56
56
  }
57
- function A(s) {
58
- return f(s) && !Array.isArray(s);
57
+ function E(s) {
58
+ return m(s) && !Array.isArray(s);
59
59
  }
60
60
  function U(s) {
61
61
  return typeof s == "string";
62
62
  }
63
- function V(s) {
63
+ function Y(s) {
64
64
  return JSON.parse(JSON.stringify(s));
65
65
  }
66
- function l() {
66
+ function f() {
67
67
  return typeof window != "undefined" && !!window.document;
68
68
  }
69
69
  function yt(s) {
@@ -84,7 +84,7 @@ function k(s) {
84
84
  let t = s.replace(/[^\d., ]+/ig, "");
85
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);
86
86
  }
87
- function ot(s, t) {
87
+ function ct(s, t) {
88
88
  return X(s) ? !1 : Array.isArray(t) ? t.includes(s) : yt(s) && yt(t) ? k(s) === k(t) : s === t;
89
89
  }
90
90
  function lt(s) {
@@ -93,12 +93,12 @@ function lt(s) {
93
93
  function B(s) {
94
94
  return lt(s) ? s() : s;
95
95
  }
96
- function ct() {
96
+ function ut() {
97
97
  return location.href.startsWith("data:");
98
98
  }
99
- const it = {};
99
+ const rt = {};
100
100
  let $t = "ui-storage";
101
- class et {
101
+ class st {
102
102
  /**
103
103
  * Constructor
104
104
  * @param name value name/ название значения
@@ -109,9 +109,9 @@ class et {
109
109
  c(this, "age");
110
110
  this.name = t, this.isSession = e;
111
111
  const i = `${e ? "session" : "storage"}#${t}`;
112
- if (i in it)
113
- return it[i];
114
- this.make(), it[i] = this;
112
+ if (i in rt)
113
+ return rt[i];
114
+ this.make(), rt[i] = this;
115
115
  }
116
116
  /**
117
117
  * Changing the prefix in key names. Should be called at the beginning of the code.
@@ -180,7 +180,7 @@ class et {
180
180
  * Возвращает объект для работы с хранилищем.
181
181
  */
182
182
  getMethod() {
183
- if (l() && !ct()) {
183
+ if (f() && !ut()) {
184
184
  const t = this.isSession ? window == null ? void 0 : window.sessionStorage : window == null ? void 0 : window.localStorage;
185
185
  if (t)
186
186
  return t;
@@ -274,7 +274,7 @@ const qt = "geo-code", w = class w {
274
274
  * Получение обработанных данных.
275
275
  */
276
276
  static getItem() {
277
- return D(this.item, {
277
+ return C(this.item, {
278
278
  language: this.language
279
279
  });
280
280
  }
@@ -295,7 +295,7 @@ const qt = "geo-code", w = class w {
295
295
  */
296
296
  static getByCode(t) {
297
297
  let e;
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(V(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(Y(e != null ? e : this.getList()[0]));
299
299
  }
300
300
  /**
301
301
  * Returns the full data by language and country.
@@ -305,7 +305,7 @@ const qt = "geo-code", w = class w {
305
305
  */
306
306
  static getByCodeFull(t) {
307
307
  return this.getList().find(
308
- (e) => ot(t, [
308
+ (e) => ct(t, [
309
309
  `${e.language}-${e.country}`,
310
310
  `${e.country}-${e.language}`
311
311
  ])
@@ -399,7 +399,7 @@ const qt = "geo-code", w = class w {
399
399
  */
400
400
  static findLocation() {
401
401
  var t;
402
- return l() && (this.storage.get() || ((t = document.querySelector("html")) == null ? void 0 : t.lang) || navigator.language || navigator.languages[0] || "en-GB") || "en-GB";
402
+ return f() && (this.storage.get() || ((t = document.querySelector("html")) == null ? void 0 : t.lang) || navigator.language || navigator.languages[0] || "en-GB") || "en-GB";
403
403
  }
404
404
  /**
405
405
  * Determines the current language.
@@ -435,45 +435,44 @@ const qt = "geo-code", w = class w {
435
435
  * объект с данными об текущей стране
436
436
  */
437
437
  static toFull(t) {
438
- return D(t, {
438
+ return C(t, {
439
439
  standard: this.toStandard(t),
440
440
  firstDay: (t == null ? void 0 : t.firstDay) || "Mo"
441
441
  });
442
442
  }
443
443
  };
444
- c(w, "storage", new et(qt)), c(w, "location"), c(w, "item"), c(w, "language"), c(w, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), w.location = w.findLocation(), w.language = w.findLanguage(w.location), w.item = w.getByCode(w.location);
444
+ c(w, "storage", new st(qt)), c(w, "location"), c(w, "item"), c(w, "language"), c(w, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), w.location = w.findLocation(), w.language = w.findLanguage(w.location), w.item = w.getByCode(w.location);
445
445
  let b = w;
446
- function Wt(s) {
447
- return l() && s === window;
446
+ function jt(s) {
447
+ return f() && s === window;
448
448
  }
449
- function E(s) {
449
+ function A(s) {
450
450
  var t;
451
- if (l())
452
- return Wt(s) ? document.body : U(s) ? (t = document.querySelector(s)) != null ? t : void 0 : s;
451
+ if (f())
452
+ return jt(s) ? document.body : U(s) ? (t = document.querySelector(s)) != null ? t : void 0 : s;
453
453
  }
454
454
  function pt(s) {
455
- return Wt(s) ? s : E(s);
455
+ return jt(s) ? s : A(s);
456
456
  }
457
457
  function Jt(s) {
458
458
  var t;
459
- return !!((t = E(s)) != null && t.closest("html"));
459
+ return !!((t = A(s)) != null && t.closest("html"));
460
460
  }
461
- function Y(s) {
461
+ function H(s) {
462
462
  return Array.isArray(s) ? s : [s];
463
463
  }
464
464
  class bt {
465
465
  /**
466
- * Classes Constructor
467
- * @param elementSelector element/ элемент
468
- * @param type type/ тип
469
- * @param listener the object that receives a notification (an object that implements the
470
- * Event interface) when an event of the specified type occurs/ объект, который принимает
471
- * уведомление, когда событие указанного типа произошло
472
- * @param options object that specifies characteristics/ объект options
473
- * @param detail an event-dependent value associated with the event/ зависимое от события
474
- * значение, связанное с событием
466
+ * Constructor for EventItem.
467
+ *
468
+ * Конструктор для EventItem.
469
+ * @param elementSelector target element or selector where the listener should be attached / целевой элемент или селектор, к которому должен быть прикреплен слушатель
470
+ * @param type event type (e.g., 'click'), array of types, or special optimization types ('resize', 'scroll-sync') / тип события (например, 'click'), массив типов или специальные типы оптимизации ('resize', 'scroll-sync')
471
+ * @param listener the handler function to be executed when the event occurs / функция-обработчик, которая будет выполнена при возникновении события
472
+ * @param options standard EventListenerOptions or boolean for useCapture / стандартные EventListenerOptions или логическое значение для useCapture
473
+ * @param detail additional data provided to the listener via the custom Event interaction / дополнительные данные, предоставляемые слушателю через кастомное взаимодействие с событием
475
474
  */
476
- constructor(t, e = ["click"], i, r, a) {
475
+ constructor(t, e = ["click"], i, r, o) {
477
476
  /**
478
477
  * Element.
479
478
  *
@@ -503,7 +502,7 @@ class bt {
503
502
  */
504
503
  c(this, "listenerRecent", (t) => {
505
504
  var e, i;
506
- Jt(this.elementControl) ? ((e = this.listener) == null || e.call(this.element, t, this.detail), f(this.options) && ((i = this.options) != null && i.once) && this.stop()) : this.stop();
505
+ Jt(this.elementControl) ? ((e = this.listener) == null || e.call(this.element, t, this.detail), m(this.options) && ((i = this.options) != null && i.once) && this.stop()) : this.stop();
507
506
  });
508
507
  /**
509
508
  * Event states.
@@ -512,7 +511,7 @@ class bt {
512
511
  */
513
512
  c(this, "activity", !1);
514
513
  c(this, "activityItems", []);
515
- this.listener = i, this.options = r, this.detail = a, this.element = pt(t), this.elementControl = E(t), this.type = Y(e);
514
+ this.listener = i, this.options = r, this.detail = o, this.element = pt(t), this.elementControl = A(t), this.type = H(e);
516
515
  }
517
516
  /**
518
517
  * Checks whether event listening is currently enabled.
@@ -533,7 +532,7 @@ class bt {
533
532
  */
534
533
  setElement(t) {
535
534
  const e = pt(t);
536
- return this.elementControlEdit || (this.elementControl = E(t)), this.element = e, this.reset(), this;
535
+ return this.elementControlEdit || (this.elementControl = A(t)), this.element = e, this.reset(), this;
537
536
  }
538
537
  /**
539
538
  * Modifies the object that receives the notification.
@@ -542,7 +541,7 @@ class bt {
542
541
  * @param elementSelector element/ элемент
543
542
  */
544
543
  setElementControl(t) {
545
- return this.elementControl = E(t), this.elementControlEdit = !X(this.elementControl), this.elementControlEdit || (this.elementControl = E(this.element)), this;
544
+ return this.elementControl = A(t), this.elementControlEdit = !X(this.elementControl), this.elementControlEdit || (this.elementControl = A(this.element)), this;
546
545
  }
547
546
  /**
548
547
  * Changes the type of the handled event.
@@ -551,7 +550,7 @@ class bt {
551
550
  * @param type type/ тип
552
551
  */
553
552
  setType(t) {
554
- return this.type = Y(t), this.reset(), this;
553
+ return this.type = H(t), this.reset(), this;
555
554
  }
556
555
  /**
557
556
  * Modifies the object that receives the notification.
@@ -581,13 +580,12 @@ class bt {
581
580
  return this.detail = t, this;
582
581
  }
583
582
  /**
584
- * The method of the EventTarget sends an Event to the object, (synchronously) invoking
585
- * the affected EventListeners in the appropriate order.
583
+ * Triggers the events on the target element, optionally with a new detail value.
584
+ * This method manually initiates a `CustomEvent` dispatch for all specified types.
586
585
  *
587
- * Отправляет событие в общую систему событий. Это событие подчиняется тем же правилам
588
- * поведения "Захвата" и "Всплывания" как и непосредственно инициированные события.
589
- * @param detail an event-dependent value associated with the event/ зависимое от события
590
- * значение, связанное с событием
586
+ * Инициирует события на целевом элементе, опционально с новым значением detail.
587
+ * Этот метод вручную запускает диспетчеризацию `CustomEvent` для всех указанных типов.
588
+ * @param detail the value to be passed as the event detail / значение, которое будет передано как detail события
591
589
  */
592
590
  dispatch(t = this.detail) {
593
591
  return this.type.forEach(
@@ -697,7 +695,7 @@ class bt {
697
695
  return !1;
698
696
  }
699
697
  }
700
- const wt = "ui-loading", H = class H {
698
+ const wt = "ui-loading", Z = class Z {
701
699
  /**
702
700
  * Check if the loader is active now.
703
701
  *
@@ -740,7 +738,7 @@ const wt = "ui-loading", H = class H {
740
738
  * @param element element/ элемент
741
739
  */
742
740
  static registrationEvent(t, e) {
743
- if (l()) {
741
+ if (f()) {
744
742
  const i = new bt(window, wt, t).setElementControl(e).start();
745
743
  this.registrationList.push({
746
744
  item: i,
@@ -771,8 +769,8 @@ const wt = "ui-loading", H = class H {
771
769
  (t = this.event) == null || t.dispatch({ loading: this.is() });
772
770
  }
773
771
  };
774
- c(H, "value", 0), c(H, "event"), c(H, "registrationList", []), l() && (H.event = new bt(window, wt));
775
- let R = H;
772
+ c(Z, "value", 0), c(Z, "event"), c(Z, "registrationList", []), f() && (Z.event = new bt(window, wt));
773
+ let R = Z;
776
774
  class Mt {
777
775
  constructor() {
778
776
  /** Default headers/ Заголовки по умолчанию */
@@ -787,11 +785,11 @@ class Mt {
787
785
  */
788
786
  get(t, e = "application/json;charset=UTF-8") {
789
787
  if (t !== null) {
790
- const i = D(
788
+ const i = C(
791
789
  this.headers,
792
790
  t
793
791
  );
794
- return m(e) && (i["Content-Type"] = e), i;
792
+ return y(e) && (i["Content-Type"] = e), i;
795
793
  }
796
794
  }
797
795
  /**
@@ -800,10 +798,10 @@ class Mt {
800
798
  * Изменяет данные заголовка по умолчанию.
801
799
  */
802
800
  set(t) {
803
- return A(t) && (this.headers = t), this;
801
+ return E(t) && (this.headers = t), this;
804
802
  }
805
803
  }
806
- var C = /* @__PURE__ */ ((s) => (s.get = "GET", s.post = "POST", s.put = "PUT", s.delete = "DELETE", s))(C || {});
804
+ var D = /* @__PURE__ */ ((s) => (s.get = "GET", s.post = "POST", s.put = "PUT", s.delete = "DELETE", s))(D || {});
807
805
  class Qt {
808
806
  constructor() {
809
807
  /** Default request data/ Данные запроса по умолчанию */
@@ -836,8 +834,8 @@ class Qt {
836
834
  if (e) {
837
835
  if (t instanceof FormData)
838
836
  this.addByFormData(t, e);
839
- else if (A(t))
840
- return D(e, t);
837
+ else if (E(t))
838
+ return C(e, t);
841
839
  }
842
840
  return t;
843
841
  }
@@ -965,7 +963,7 @@ class vt {
965
963
  * @param response response data/ данные ответа
966
964
  */
967
965
  setLastResponse(t) {
968
- 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;
966
+ return t && E(t) && ("message" in t && this.setLastMessage(String(t.message)), "status" in t && this.setLastStatus(String(t.status))), this.set({ lastResponse: t }), this;
969
967
  }
970
968
  /**
971
969
  * Sets the last status.
@@ -1030,7 +1028,7 @@ class _t {
1030
1028
  * @param devMode is it developer mode/ является ли режим разработчика
1031
1029
  */
1032
1030
  get(t = "", e, i, r) {
1033
- return this.response.find((a) => !this.isDisable(a) && this.isPath(a, t) && e === a.method && this.isFirst(a, r) && this.isResponse(a, i) ? (this.isDevMode(r) && console.warn(`Response type: ${a.path}`), this.first.push(a), !0) : !1);
1031
+ return this.response.find((o) => !this.isDisable(o) && this.isPath(o, t) && e === o.method && this.isFirst(o, r) && this.isResponse(o, i) ? (this.isDevMode(r) && console.warn(`Response type: ${o.path}`), this.first.push(o), !0) : !1);
1034
1032
  }
1035
1033
  /**
1036
1034
  * Returns a list of data about the emulator.
@@ -1047,7 +1045,7 @@ class _t {
1047
1045
  * @param response data for caching/ данные для кеширования
1048
1046
  */
1049
1047
  add(t) {
1050
- return this.response.push(...Y(t)), this;
1048
+ return this.response.push(...H(t)), this;
1051
1049
  }
1052
1050
  /**
1053
1051
  * Sets developer mode.
@@ -1065,15 +1063,15 @@ class _t {
1065
1063
  async emulator(t) {
1066
1064
  const {
1067
1065
  path: e = "",
1068
- method: i = C.get,
1069
- global: r = i === C.get,
1070
- devMode: a = !1
1066
+ method: i = D.get,
1067
+ global: r = i === D.get,
1068
+ devMode: o = !1
1071
1069
  } = t;
1072
- if (r || this.isDevMode(a)) {
1073
- const o = this.requestDefault.request(t.request), u = this.get(e, i, o, a);
1070
+ if (r || this.isDevMode(o)) {
1071
+ const a = this.requestDefault.request(t.request), u = this.get(e, i, a, o);
1074
1072
  if (u) {
1075
- const h = await this.fetch(u, o);
1076
- return this.isDevMode(a) && console.warn("Response data:", e, o, h), h;
1073
+ const h = await this.fetch(u, a);
1074
+ return this.isDevMode(o) && console.warn("Response data:", e, a, h), h;
1077
1075
  }
1078
1076
  }
1079
1077
  }
@@ -1124,8 +1122,8 @@ class _t {
1124
1122
  */
1125
1123
  isResponse(t, e) {
1126
1124
  const i = this.requestDefault.request(t == null ? void 0 : t.request);
1127
- return e === i || i === "*any" || m(e) && m(i) && A(e) && A(i) && !(e instanceof FormData) && !(i instanceof FormData) && Object.values(e).length === Object.values(i).length && Object.entries(i).reduce(
1128
- (r, [a, o]) => r && (o === (e == null ? void 0 : e[a]) || o === "*any"),
1125
+ return e === i || i === "*any" || y(e) && y(i) && E(e) && E(i) && !(e instanceof FormData) && !(i instanceof FormData) && Object.values(e).length === Object.values(i).length && Object.entries(i).reduce(
1126
+ (r, [o, a]) => r && (a === (e == null ? void 0 : e[o]) || a === "*any"),
1129
1127
  !0
1130
1128
  );
1131
1129
  }
@@ -1153,7 +1151,7 @@ class _t {
1153
1151
  * Включить загрузку для эмуляции запроса.
1154
1152
  */
1155
1153
  startResponseLoading() {
1156
- this.loading && clearTimeout(this.loading), l() && document.body.classList.add(St);
1154
+ this.loading && clearTimeout(this.loading), f() && document.body.classList.add(St);
1157
1155
  }
1158
1156
  /**
1159
1157
  * Disable loading for request emulation.
@@ -1162,7 +1160,7 @@ class _t {
1162
1160
  */
1163
1161
  stopResponseLoading() {
1164
1162
  this.loading = setTimeout(() => {
1165
- this.loading = void 0, l() && document.body.classList.remove(St);
1163
+ this.loading = void 0, f() && document.body.classList.remove(St);
1166
1164
  }, 1200);
1167
1165
  }
1168
1166
  }
@@ -1283,10 +1281,10 @@ const v = class v {
1283
1281
  * @param request this request/ данный запрос
1284
1282
  * @param method method for request/ метод запрос
1285
1283
  */
1286
- static getBody(t = {}, e = C.get) {
1284
+ static getBody(t = {}, e = D.get) {
1287
1285
  if (t instanceof FormData)
1288
1286
  return t;
1289
- if (e !== C.get && m(t))
1287
+ if (e !== D.get && y(t))
1290
1288
  return U(t) ? t : JSON.stringify(t);
1291
1289
  }
1292
1290
  /**
@@ -1297,11 +1295,11 @@ const v = class v {
1297
1295
  * @param path path to request/ путь к запрос
1298
1296
  * @param method method for request/ метод запрос
1299
1297
  */
1300
- static getBodyForGet(t, e = "", i = C.get) {
1301
- if (i === C.get) {
1302
- const r = e.match(/\?/) ? "&" : "?", a = typeof t == "object" ? Pt(t) : t;
1303
- if (m(a))
1304
- return `${r}${a}`;
1298
+ static getBodyForGet(t, e = "", i = D.get) {
1299
+ if (i === D.get) {
1300
+ const r = e.match(/\?/) ? "&" : "?", o = typeof t == "object" ? Pt(t) : t;
1301
+ if (y(o))
1302
+ return `${r}${o}`;
1305
1303
  }
1306
1304
  return "";
1307
1305
  }
@@ -1366,8 +1364,8 @@ const v = class v {
1366
1364
  * @param request list of parameters/ список параметров
1367
1365
  */
1368
1366
  static get(t) {
1369
- return this.request(D(t, {
1370
- method: C.get
1367
+ return this.request(C(t, {
1368
+ method: D.get
1371
1369
  }));
1372
1370
  }
1373
1371
  /**
@@ -1377,8 +1375,8 @@ const v = class v {
1377
1375
  * @param request list of parameters/ список параметров
1378
1376
  */
1379
1377
  static post(t) {
1380
- return this.request(D(t, {
1381
- method: C.post
1378
+ return this.request(C(t, {
1379
+ method: D.post
1382
1380
  }));
1383
1381
  }
1384
1382
  /**
@@ -1388,8 +1386,8 @@ const v = class v {
1388
1386
  * @param request list of parameters/ список параметров
1389
1387
  */
1390
1388
  static put(t) {
1391
- return this.request(D(t, {
1392
- method: C.put
1389
+ return this.request(C(t, {
1390
+ method: D.put
1393
1391
  }));
1394
1392
  }
1395
1393
  /**
@@ -1399,8 +1397,8 @@ const v = class v {
1399
1397
  * @param request list of parameters/ список параметров
1400
1398
  */
1401
1399
  static delete(t) {
1402
- return this.request(D(t, {
1403
- method: C.delete
1400
+ return this.request(C(t, {
1401
+ method: D.delete
1404
1402
  }));
1405
1403
  }
1406
1404
  /**
@@ -1414,29 +1412,29 @@ const v = class v {
1414
1412
  toData: e = !0,
1415
1413
  hideError: i = !1,
1416
1414
  queryReturn: r = void 0,
1417
- globalPreparation: a = !0,
1418
- globalEnd: o = !0
1415
+ globalPreparation: o = !0,
1416
+ globalEnd: a = !0
1419
1417
  } = t, u = await this.response.emulator(t);
1420
1418
  if (u)
1421
1419
  return u;
1422
1420
  const h = new vt();
1423
- let y;
1421
+ let d;
1424
1422
  R.show();
1425
1423
  try {
1426
- await this.preparation.make(a, t);
1427
- const g = await this.makeQuery(t), S = await this.preparation.makeEnd(o, g, t);
1428
- if (h.setStatus(g.status, g.statusText), this.status.setStatus(g.status, g.statusText), S != null && S.reset)
1424
+ await this.preparation.make(o, t);
1425
+ const l = await this.makeQuery(t), S = await this.preparation.makeEnd(a, l, t);
1426
+ if (h.setStatus(l.status, l.statusText), this.status.setStatus(l.status, l.statusText), S != null && S.reset)
1429
1427
  return R.hide(), await this.fetch(t);
1430
- y = await this.readData(
1431
- g,
1428
+ d = await this.readData(
1429
+ l,
1432
1430
  r,
1433
1431
  S
1434
1432
  );
1435
- } catch (g) {
1436
- throw i || console.error("Api: ", g), h.setError(String(g)), this.status.setError(String(g)), R.hide(), g;
1433
+ } catch (l) {
1434
+ throw i || console.error("Api: ", l), h.setError(String(l)), this.status.setError(String(l)), R.hide(), l;
1437
1435
  }
1438
- return R.hide(), h.setLastResponse(y), this.status.setLastResponse(y), this.makeStatus(
1439
- this.makeData(y, e),
1436
+ return R.hide(), h.setLastResponse(d), this.status.setLastResponse(d), this.makeStatus(
1437
+ this.makeData(d, e),
1440
1438
  h
1441
1439
  );
1442
1440
  }
@@ -1462,17 +1460,17 @@ const v = class v {
1462
1460
  const e = this.requestDefault.request(t.request), {
1463
1461
  api: i = !0,
1464
1462
  path: r = "",
1465
- pathFull: a = void 0,
1466
- method: o = C.get,
1463
+ pathFull: o = void 0,
1464
+ method: a = D.get,
1467
1465
  headers: u = {},
1468
1466
  type: h = "application/json;charset=UTF-8",
1469
- init: y = {},
1470
- controller: g = void 0
1471
- } = t, S = a != null ? a : this.getUrl(r, i), st = `${S}${this.getBodyForGet(e, S, o)}`, _ = this.headers.get(u, h), q = D(y, {
1472
- method: o,
1473
- body: this.getBody(e, o)
1467
+ init: d = {},
1468
+ controller: l = void 0
1469
+ } = t, S = o != null ? o : this.getUrl(r, i), it = `${S}${this.getBodyForGet(e, S, a)}`, _ = this.headers.get(u, h), q = C(d, {
1470
+ method: a,
1471
+ body: this.getBody(e, a)
1474
1472
  });
1475
- return _ && (q.headers = _), g && (q.signal = g.signal), await fetch(st, q);
1473
+ return _ && (q.headers = _), l && (q.signal = l.signal), await fetch(it, q);
1476
1474
  }
1477
1475
  /**
1478
1476
  * Transforms data if needed.
@@ -1482,11 +1480,11 @@ const v = class v {
1482
1480
  * @param toData is it necessary to process the data/ нужно ли обрабатывать данные
1483
1481
  */
1484
1482
  static makeData(t, e) {
1485
- if (!e || !t || !A(t) || !("data" in t))
1483
+ if (!e || !t || !E(t) || !("data" in t))
1486
1484
  return t;
1487
- if (t.data !== null && typeof t.data != "object" || ht(t.data))
1485
+ if (t.data !== null && typeof t.data != "object" || et(t.data))
1488
1486
  return t.data;
1489
- const i = D(t.data);
1487
+ const i = C(t.data);
1490
1488
  return "success" in t && !("success" in i) && (i.success = t.success), "status" in t && !("status" in i) && (i.status = t.status), "message" in t && !("message" in i) && (i.message = t.message), i;
1491
1489
  }
1492
1490
  /**
@@ -1497,14 +1495,14 @@ const v = class v {
1497
1495
  * @param status status object/ объект статуса
1498
1496
  */
1499
1497
  static makeStatus(t, e) {
1500
- return t && A(t) ? {
1498
+ return t && E(t) ? {
1501
1499
  ...t,
1502
1500
  statusObject: e.get()
1503
1501
  } : t;
1504
1502
  }
1505
1503
  };
1506
1504
  c(v, "url", "/api/"), c(v, "headers", new Mt()), c(v, "requestDefault", new Qt()), c(v, "status", new vt()), c(v, "response", new _t(v.requestDefault)), c(v, "preparation", new Ot());
1507
- let K = v;
1505
+ let W = v;
1508
1506
  class He {
1509
1507
  /**
1510
1508
  * Constructor
@@ -1534,7 +1532,7 @@ class He {
1534
1532
  var e;
1535
1533
  return (e = this.callbackError) == null || e.call(this, t), this;
1536
1534
  });
1537
- if (this.callback = e, this.callbackError = i, l())
1535
+ if (this.callback = e, this.callbackError = i, f())
1538
1536
  try {
1539
1537
  this.channel = new BroadcastChannel(`${Tt()}__${t}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
1540
1538
  } catch (r) {
@@ -1579,7 +1577,7 @@ class He {
1579
1577
  return this.callbackError = t, this;
1580
1578
  }
1581
1579
  }
1582
- const Tt = () => new et("__broadcast-name").get(() => `name_${Q(1e6, 9999999)}`);
1580
+ const Tt = () => new st("__broadcast-name").get(() => `name_${Q(1e6, 9999999)}`);
1583
1581
  class Gt {
1584
1582
  /**
1585
1583
  * Constructor
@@ -1695,7 +1693,7 @@ const tt = class tt {
1695
1693
  };
1696
1694
  c(tt, "cache"), tt.cache = new te();
1697
1695
  let Lt = tt;
1698
- function Ut(s, t = !1) {
1696
+ function Wt(s, t = !1) {
1699
1697
  if (typeof s == "string") {
1700
1698
  const e = s.trim();
1701
1699
  switch (e) {
@@ -1719,7 +1717,7 @@ function Ut(s, t = !1) {
1719
1717
  return parseFloat(e);
1720
1718
  if (/^[0-9]+$/.exec(e))
1721
1719
  return parseInt(e, 10);
1722
- if (t && l() && typeof (window == null ? void 0 : window[e]) == "function")
1720
+ if (t && f() && typeof (window == null ? void 0 : window[e]) == "function")
1723
1721
  return window[e];
1724
1722
  }
1725
1723
  }
@@ -1727,7 +1725,7 @@ function Ut(s, t = !1) {
1727
1725
  return s;
1728
1726
  }
1729
1727
  const ee = "cookie-block";
1730
- class jt {
1728
+ class Ut {
1731
1729
  /**
1732
1730
  * Obtaining status.
1733
1731
  *
@@ -1747,14 +1745,14 @@ class jt {
1747
1745
  this.storage.set(t);
1748
1746
  }
1749
1747
  }
1750
- c(jt, "storage", new et(ee));
1748
+ c(Ut, "storage", new st(ee));
1751
1749
  const O = {}, mt = class mt {
1752
1750
  constructor(t) {
1753
1751
  c(this, "value");
1754
1752
  c(this, "options", {});
1755
- if (this.name = t, t in rt)
1756
- return rt[t];
1757
- this.value = O == null ? void 0 : O[t], rt[t] = this;
1753
+ if (this.name = t, t in nt)
1754
+ return nt[t];
1755
+ this.value = O == null ? void 0 : O[t], nt[t] = this;
1758
1756
  }
1759
1757
  /**
1760
1758
  * Get data or update if none.
@@ -1799,14 +1797,14 @@ const O = {}, mt = class mt {
1799
1797
  * Обновление данных cookie.
1800
1798
  */
1801
1799
  update() {
1802
- var t, e, i, r, a;
1803
- if (l() && !ct() && !jt.get()) {
1804
- const o = String((t = this.value) != null ? t : "");
1800
+ var t, e, i, r, o;
1801
+ if (f() && !ut() && !Ut.get()) {
1802
+ const a = String((t = this.value) != null ? t : "");
1805
1803
  document.cookie = [
1806
- `${encodeURIComponent(this.name)}=${encodeURIComponent(o)}`,
1807
- `max-age=${o === "" ? "-1" : this.getAge()}`,
1804
+ `${encodeURIComponent(this.name)}=${encodeURIComponent(a)}`,
1805
+ `max-age=${a === "" ? "-1" : this.getAge()}`,
1808
1806
  `SameSite=${(i = (e = this.options) == null ? void 0 : e.sameSite) != null ? i : "strict"}`,
1809
- ...(a = (r = this.options) == null ? void 0 : r.arguments) != null ? a : []
1807
+ ...(o = (r = this.options) == null ? void 0 : r.arguments) != null ? o : []
1810
1808
  ].join("; ");
1811
1809
  }
1812
1810
  }
@@ -1818,15 +1816,15 @@ const O = {}, mt = class mt {
1818
1816
  static updateData() {
1819
1817
  for (const t of document.cookie.split(";")) {
1820
1818
  const [e, i] = t.trim().split("=");
1821
- e && m(i) && (O[e] = Ut(i));
1819
+ e && y(i) && (O[e] = Wt(i));
1822
1820
  }
1823
1821
  }
1824
1822
  };
1825
- l() && !ct() && mt.updateData();
1826
- let Ct = mt;
1827
- const rt = {};
1823
+ f() && !ut() && mt.updateData();
1824
+ let Dt = mt;
1825
+ const nt = {};
1828
1826
  function P(s) {
1829
- var r, a, o, u, h, y, g, S;
1827
+ var r, o, a, u, h, d, l, S;
1830
1828
  if (s instanceof Date)
1831
1829
  return s;
1832
1830
  if (X(s))
@@ -1834,12 +1832,12 @@ function P(s) {
1834
1832
  if (typeof s == "number")
1835
1833
  return new Date(s);
1836
1834
  let t = s, e = b.getTimezoneFormat().trim();
1837
- s.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (st, _, q) => (t = _, e = q.trim(), st));
1838
- const i = (S = (g = (y = (h = (u = (o = (a = (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 ? a : /^\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 ? o : /^\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 ? y : /^\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}:00`) != null ? g : /^\d{2}:\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}`) != null ? S : t.replace(" ", "T");
1835
+ s.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (it, _, q) => (t = _, e = q.trim(), it));
1836
+ const i = (S = (l = (d = (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 ? d : /^\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}:00`) != null ? l : /^\d{2}:\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}`) != null ? S : t.replace(" ", "T");
1839
1837
  return /* @__PURE__ */ new Date(`${i.trim()}${e}`);
1840
1838
  }
1841
1839
  function se(s, t) {
1842
- return d(s, (e) => e == null ? void 0 : e[t], !0);
1840
+ return g(s, (e) => e == null ? void 0 : e[t], !0);
1843
1841
  }
1844
1842
  class N {
1845
1843
  /**
@@ -1851,9 +1849,9 @@ class N {
1851
1849
  c(this, "geo");
1852
1850
  this.geo = b.find(t);
1853
1851
  const e = this.getLocation();
1854
- if (e in nt)
1855
- return nt[e];
1856
- nt[e] = this;
1852
+ if (e in ot)
1853
+ return ot[e];
1854
+ ot[e] = this;
1857
1855
  }
1858
1856
  /**
1859
1857
  * Returns an instance of the class according to the specified country code.
@@ -1890,18 +1888,18 @@ class N {
1890
1888
  * объект с некоторыми или всеми из следующих свойств
1891
1889
  */
1892
1890
  display(t, e) {
1893
- var a;
1891
+ var o;
1894
1892
  let i = { type: "language" }, r;
1895
1893
  e && (typeof e == "string" ? i.type = e : i = {
1896
1894
  ...i,
1897
1895
  ...e
1898
1896
  });
1899
1897
  try {
1900
- l() && (t ? r = new Intl.DisplayNames(this.getLocation(), i).of(t) : i.type === "language" ? r = new Intl.DisplayNames(this.getLocation(), i).of(this.geo.language) : i.type === "region" && (r = new Intl.DisplayNames(this.getLocation(), i).of(this.geo.country)));
1901
- } catch (o) {
1902
- console.error("display: ", o);
1898
+ typeof Intl != "undefined" && (t ? r = new Intl.DisplayNames(this.getLocation(), i).of(t) : i.type === "language" ? r = new Intl.DisplayNames(this.getLocation(), i).of(this.geo.language) : i.type === "region" && (r = new Intl.DisplayNames(this.getLocation(), i).of(this.geo.country)));
1899
+ } catch (a) {
1900
+ console.error("display: ", a);
1903
1901
  }
1904
- return (a = r != null ? r : t) != null ? a : "";
1902
+ return (o = r != null ? r : t) != null ? o : "";
1905
1903
  }
1906
1904
  /**
1907
1905
  * Get display names of language.
@@ -1942,23 +1940,23 @@ class N {
1942
1940
  */
1943
1941
  fullName(t, e, i, r) {
1944
1942
  var u, h;
1945
- const a = (h = (u = this.geo) == null ? void 0 : u.nameFormat) != null ? h : "fl";
1946
- let o;
1947
- switch (a) {
1943
+ const o = (h = (u = this.geo) == null ? void 0 : u.nameFormat) != null ? h : "fl";
1944
+ let a;
1945
+ switch (o) {
1948
1946
  case "fsl":
1949
- o = `${e}${i ? ` ${i}` : ""} ${t}`;
1947
+ a = `${e}${i ? ` ${i}` : ""} ${t}`;
1950
1948
  break;
1951
1949
  case "lf":
1952
- o = `${t} ${e}`;
1950
+ a = `${t} ${e}`;
1953
1951
  break;
1954
1952
  case "lsf":
1955
- o = `${t}${i ? ` ${i}` : ""} ${e}`;
1953
+ a = `${t}${i ? ` ${i}` : ""} ${e}`;
1956
1954
  break;
1957
1955
  default:
1958
- o = `${e} ${t}`;
1956
+ a = `${e} ${t}`;
1959
1957
  break;
1960
1958
  }
1961
- return r ? o.replace(/ (.)[^ ]+/ig, " $1.") : o;
1959
+ return r ? a.replace(/ (.)[^ ]+/ig, " $1.") : a;
1962
1960
  }
1963
1961
  /**
1964
1962
  * In basic use without specifying a locale, a formatted string.
@@ -1978,8 +1976,8 @@ class N {
1978
1976
  * Символ десятичной точки.
1979
1977
  */
1980
1978
  decimal() {
1981
- var t, e, i, r, a;
1982
- return ((a = (r = (i = (e = (t = this.numberObject()) == null ? void 0 : t.formatToParts) == null ? void 0 : e.call(t, 1.2)) == null ? void 0 : i.find) == null ? void 0 : r.call(i, (o) => o.type === "decimal")) == null ? void 0 : a.value) || ".";
1979
+ var t, e, i, r, o;
1980
+ return ((o = (r = (i = (e = (t = this.numberObject()) == null ? void 0 : t.formatToParts) == null ? void 0 : e.call(t, 1.2)) == null ? void 0 : i.find) == null ? void 0 : r.call(i, (a) => a.type === "decimal")) == null ? void 0 : o.value) || ".";
1983
1981
  }
1984
1982
  /**
1985
1983
  * Currency formatting.
@@ -1995,18 +1993,18 @@ class N {
1995
1993
  style: "currency",
1996
1994
  currencyDisplay: "symbol",
1997
1995
  ...typeof e == "string" ? { currency: e } : e || {}
1998
- }, a = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...o) => (r.currency = String(o[2]).toUpperCase(), String(o[1])));
1996
+ }, o = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...a) => (r.currency = String(a[2]).toUpperCase(), String(a[1])));
1999
1997
  if (i) {
2000
- const o = this.numberObject(r);
2001
- return o ? se(
2002
- o.formatToParts(k(t)).filter((u) => ["literal", "currency"].indexOf(u.type) === -1),
1998
+ const a = this.numberObject(r);
1999
+ return a ? se(
2000
+ a.formatToParts(k(t)).filter((u) => ["literal", "currency"].indexOf(u.type) === -1),
2003
2001
  "value"
2004
2002
  ).join("") : t.toString();
2005
2003
  } else return "currency" in r ? this.number(
2006
- typeof t == "number" ? t : a,
2004
+ typeof t == "number" ? t : o,
2007
2005
  r
2008
2006
  ) : this.number(
2009
- typeof t == "number" ? t : a,
2007
+ typeof t == "number" ? t : o,
2010
2008
  {
2011
2009
  ...r,
2012
2010
  style: "decimal"
@@ -2023,12 +2021,12 @@ class N {
2023
2021
  * как отобразить валюту в формате валюты
2024
2022
  */
2025
2023
  currencySymbol(t, e = "symbol") {
2026
- var i, r, a, o, u;
2027
- return ((u = (o = (a = (r = (i = this.numberObject({
2024
+ var i, r, o, a, u;
2025
+ return ((u = (a = (o = (r = (i = this.numberObject({
2028
2026
  style: "currency",
2029
2027
  currencyDisplay: e,
2030
2028
  currency: t
2031
- })) == null ? void 0 : i.formatToParts) == null ? void 0 : r.call(i, 100)) == null ? void 0 : a.find) == null ? void 0 : o.call(a, (h) => h.type === "currency")) == null ? void 0 : u.value) || t;
2029
+ })) == null ? void 0 : i.formatToParts) == null ? void 0 : r.call(i, 100)) == null ? void 0 : o.find) == null ? void 0 : a.call(o, (h) => h.type === "currency")) == null ? void 0 : u.value) || t;
2032
2030
  }
2033
2031
  /**
2034
2032
  * Unit formatting.
@@ -2043,7 +2041,7 @@ class N {
2043
2041
  const i = {
2044
2042
  style: "unit",
2045
2043
  ...typeof e == "string" ? { unit: e } : e || {}
2046
- }, r = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]+)$/i, (...a) => (i.unit = String(a[2]).toLowerCase(), String(a[1])));
2044
+ }, r = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]+)$/i, (...o) => (i.unit = String(o[2]).toLowerCase(), String(o[1])));
2047
2045
  return this.number(r, i);
2048
2046
  }
2049
2047
  /**
@@ -2103,38 +2101,38 @@ class N {
2103
2101
  */
2104
2102
  plural(t, e, i, r) {
2105
2103
  var u;
2106
- const a = k(t), o = e.split("|");
2107
- if (o.length > 1)
2104
+ const o = k(t), a = e.split("|");
2105
+ if (a.length > 1)
2108
2106
  try {
2109
- if (l()) {
2110
- const y = new Intl.PluralRules(this.getLocation(), i).select(a);
2111
- let g;
2112
- switch (y) {
2107
+ if (typeof Intl != "undefined") {
2108
+ const d = new Intl.PluralRules(this.getLocation(), i).select(o);
2109
+ let l;
2110
+ switch (d) {
2113
2111
  case "zero":
2114
- g = o[o.length - 1];
2112
+ l = a[a.length - 1];
2115
2113
  break;
2116
2114
  case "one":
2117
- g = o == null ? void 0 : o[0];
2115
+ l = a == null ? void 0 : a[0];
2118
2116
  break;
2119
2117
  case "two":
2120
- g = o == null ? void 0 : o[1];
2118
+ l = a == null ? void 0 : a[1];
2121
2119
  break;
2122
2120
  case "few":
2123
- g = o != null && o[3] ? o == null ? void 0 : o[2] : o == null ? void 0 : o[1];
2121
+ l = a != null && a[3] ? a == null ? void 0 : a[2] : a == null ? void 0 : a[1];
2124
2122
  break;
2125
2123
  case "many":
2126
- g = (o == null ? void 0 : o[3]) || (o == null ? void 0 : o[2]) || (o == null ? void 0 : o[1]);
2124
+ l = (a == null ? void 0 : a[3]) || (a == null ? void 0 : a[2]) || (a == null ? void 0 : a[1]);
2127
2125
  break;
2128
2126
  case "other":
2129
- o.length === 6 ? g = o[o.length - 2] : g = o[o.length - 1];
2127
+ a.length === 6 ? l = a[a.length - 2] : l = a[a.length - 1];
2130
2128
  break;
2131
2129
  }
2132
- return `${this.number(a, r)} ${g != null ? g : ""}`.trim();
2130
+ return `${this.number(o, r)} ${l != null ? l : ""}`.trim();
2133
2131
  }
2134
2132
  } catch (h) {
2135
2133
  console.error("plural: ", h);
2136
2134
  }
2137
- return `${this.number(a, r)} ${(u = o == null ? void 0 : o[0]) != null ? u : ""}`.trim();
2135
+ return `${this.number(o, r)} ${(u = a == null ? void 0 : a[0]) != null ? u : ""}`.trim();
2138
2136
  }
2139
2137
  /**
2140
2138
  * Enables language-sensitive date and time formatting.
@@ -2146,8 +2144,8 @@ class N {
2146
2144
  * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
2147
2145
  */
2148
2146
  date(t, e, i, r) {
2149
- const a = P(t), o = typeof i == "string", u = this.dateOptions(e, o ? i : "short");
2150
- return r && (u.hour12 = !1), o || Object.assign(u, i), a.toLocaleString(this.getLocation(), u);
2147
+ const o = P(t), a = typeof i == "string", u = this.dateOptions(e, a ? i : "short");
2148
+ return r && (u.hour12 = !1), a || Object.assign(u, i), o.toLocaleString(this.getLocation(), u);
2151
2149
  }
2152
2150
  /**
2153
2151
  * Enables language-sensitive relative time formatting.
@@ -2159,12 +2157,12 @@ class N {
2159
2157
  * @param todayValue current day/ текущий день
2160
2158
  */
2161
2159
  relative(t, e, i) {
2162
- const r = P(t), a = i || /* @__PURE__ */ new Date(), o = {
2160
+ const r = P(t), o = i || /* @__PURE__ */ new Date(), a = {
2163
2161
  numeric: "auto",
2164
2162
  ...typeof e == "string" ? { style: e } : e || {}
2165
2163
  };
2166
- let u = "second", h = (r.getTime() - a.getTime()) / 1e3;
2167
- 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, o);
2164
+ let u = "second", h = (r.getTime() - o.getTime()) / 1e3;
2165
+ 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);
2168
2166
  }
2169
2167
  /**
2170
2168
  * Enables language-sensitive relative time formatting
@@ -2184,16 +2182,16 @@ class N {
2184
2182
  * @param type type of data format/ тип формата data
2185
2183
  * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
2186
2184
  */
2187
- relativeLimit(t, e, i, r, a, o, u) {
2188
- const h = P(t), y = i || /* @__PURE__ */ new Date(), g = new Date(y), S = new Date(y);
2189
- return g.setDate(y.getDate() - e), S.setDate(y.getDate() + e), h >= g && h <= S ? this.relative(
2185
+ relativeLimit(t, e, i, r, o, a, u) {
2186
+ const h = P(t), d = i || /* @__PURE__ */ new Date(), l = new Date(d), S = new Date(d);
2187
+ return l.setDate(d.getDate() - e), S.setDate(d.getDate() + e), h >= l && h <= S ? this.relative(
2190
2188
  h,
2191
2189
  r,
2192
- y
2190
+ d
2193
2191
  ) : this.date(
2194
2192
  h,
2195
- o,
2196
2193
  a,
2194
+ o,
2197
2195
  u
2198
2196
  );
2199
2197
  }
@@ -2209,10 +2207,10 @@ class N {
2209
2207
  ...typeof i == "string" ? { style: i } : i || {}
2210
2208
  };
2211
2209
  try {
2212
- if (l())
2210
+ if (this.hasIntl() && typeof Intl.RelativeTimeFormat != "undefined")
2213
2211
  return new Intl.RelativeTimeFormat(this.getLocation(), r).format(Math.round(k(t)), e);
2214
- } catch (a) {
2215
- console.error("relative: ", a);
2212
+ } catch (o) {
2213
+ console.error("relative: ", o);
2216
2214
  }
2217
2215
  return "";
2218
2216
  }
@@ -2224,7 +2222,7 @@ class N {
2224
2222
  */
2225
2223
  month(t, e) {
2226
2224
  try {
2227
- if (l())
2225
+ if (this.hasIntlDateTimeFormat())
2228
2226
  return Intl.DateTimeFormat(this.getLocation(), { month: e || "long" }).format(P(t));
2229
2227
  } catch (i) {
2230
2228
  console.error("month: ", i);
@@ -2243,12 +2241,12 @@ class N {
2243
2241
  value: void 0
2244
2242
  }];
2245
2243
  try {
2246
- if (l()) {
2244
+ if (this.hasIntlDateTimeFormat()) {
2247
2245
  const i = /* @__PURE__ */ new Date(), r = Intl.DateTimeFormat(this.getLocation(), { month: t || "long" });
2248
- for (let a = 0; a < 12; a++)
2249
- i.setMonth(a), e.push({
2250
- label: r.format(i).replace(/^./, (o) => o.toUpperCase()),
2251
- value: a + 1
2246
+ for (let o = 0; o < 12; o++)
2247
+ i.setMonth(o), e.push({
2248
+ label: r.format(i).replace(/^./, (a) => a.toUpperCase()),
2249
+ value: o + 1
2252
2250
  });
2253
2251
  }
2254
2252
  } catch (i) {
@@ -2265,7 +2263,7 @@ class N {
2265
2263
  */
2266
2264
  weekday(t, e) {
2267
2265
  try {
2268
- if (l())
2266
+ if (this.hasIntlDateTimeFormat())
2269
2267
  return Intl.DateTimeFormat(this.getLocation(), { weekday: e || "long" }).format(P(t));
2270
2268
  } catch (i) {
2271
2269
  console.error("weekday: ", i);
@@ -2284,10 +2282,10 @@ class N {
2284
2282
  value: void 0
2285
2283
  }];
2286
2284
  try {
2287
- if (l()) {
2288
- const i = /* @__PURE__ */ new Date(), r = Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }), a = i.getDay() + (this.geo.firstDay === "Mo" ? -1 : 1);
2289
- i.setDate(i.getDate() - a);
2290
- for (let o = 0; o < 7; o++)
2285
+ if (this.hasIntlDateTimeFormat()) {
2286
+ const i = /* @__PURE__ */ new Date(), r = Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }), o = i.getDay() + (this.geo.firstDay === "Mo" ? -1 : 1);
2287
+ i.setDate(i.getDate() - o);
2288
+ for (let a = 0; a < 7; a++)
2291
2289
  e.push({
2292
2290
  label: r.format(i).replace(/^./, (u) => u.toUpperCase()),
2293
2291
  value: i.getDay()
@@ -2315,12 +2313,28 @@ class N {
2315
2313
  * @param compareFn a function for sorting/ функция для сортировки
2316
2314
  */
2317
2315
  sort(t, e = (i, r) => [i, r]) {
2318
- if (l()) {
2316
+ if (this.hasIntl() && typeof Intl.Collator != "undefined") {
2319
2317
  const i = new Intl.Collator(this.getLocation());
2320
- return t.sort((r, a) => i.compare(...e(r, a)));
2318
+ return t.sort((r, o) => i.compare(...e(r, o)));
2321
2319
  }
2322
2320
  return t;
2323
2321
  }
2322
+ /**
2323
+ * Checks if the Intl object is available.
2324
+ *
2325
+ * Проверяет доступность объекта Intl.
2326
+ */
2327
+ hasIntl() {
2328
+ return typeof Intl != "undefined";
2329
+ }
2330
+ /**
2331
+ * Checks if the Intl.DateTimeFormat object is available.
2332
+ *
2333
+ * Проверяет доступность объекта Intl.DateTimeFormat.
2334
+ */
2335
+ hasIntlDateTimeFormat() {
2336
+ return this.hasIntl() && typeof Intl.DateTimeFormat != "undefined";
2337
+ }
2324
2338
  /**
2325
2339
  * The object enables language-sensitive number formatting.
2326
2340
  *
@@ -2330,7 +2344,7 @@ class N {
2330
2344
  */
2331
2345
  numberObject(t) {
2332
2346
  try {
2333
- if (l())
2347
+ if (this.hasIntl() && typeof Intl.NumberFormat != "undefined")
2334
2348
  return new Intl.NumberFormat(this.getLocation(), t);
2335
2349
  } catch (e) {
2336
2350
  console.error("numberObject: ", e);
@@ -2348,7 +2362,7 @@ class N {
2348
2362
  return ["full", "datetime", "date", void 0, "year-month", "year"].indexOf(t) !== -1 && (i.year = "numeric"), ["full", "datetime", "date", void 0, "year-month", "month", "day-month"].indexOf(t) !== -1 && (i.month = e), ["full", "datetime", "date", void 0, "day", "day-month"].indexOf(t) !== -1 && (i.day = "2-digit"), t !== void 0 && (["full", "datetime", "time", "hour-minute", "hour"].indexOf(t) !== -1 && (i.hour = "2-digit"), ["full", "datetime", "time", "hour-minute", "minute"].indexOf(t) !== -1 && (i.minute = "2-digit"), ["full", "time", "second"].indexOf(t) !== -1 && (i.second = "2-digit")), i;
2349
2363
  }
2350
2364
  }
2351
- const nt = {};
2365
+ const ot = {};
2352
2366
  class gt {
2353
2367
  /**
2354
2368
  * Constructor
@@ -2427,8 +2441,8 @@ class gt {
2427
2441
  const i = e / 60 * -1;
2428
2442
  if (t === "hour")
2429
2443
  return this.getIntl().number(Math.trunc(i), { signDisplay: "always" });
2430
- const r = this.toTimeZoneHourFormat(i), a = i.toString().match(/.\d+/) ? "30" : "00";
2431
- return t === "RFC" ? `${r}${a}` : `${r}:${a}`;
2444
+ const r = this.toTimeZoneHourFormat(i), o = i.toString().match(/.\d+/) ? "30" : "00";
2445
+ return t === "RFC" ? `${r}${o}` : `${r}:${o}`;
2432
2446
  }
2433
2447
  /**
2434
2448
  * Returns the code of the first day of the week.
@@ -2990,7 +3004,7 @@ class gt {
2990
3004
  * @param hour hour/ час
2991
3005
  */
2992
3006
  toTimeZoneHourFormat(t) {
2993
- l() && this.getIntl().number(Math.trunc(t), {
3007
+ f() && this.getIntl().number(Math.trunc(t), {
2994
3008
  signDisplay: "always",
2995
3009
  minimumIntegerDigits: 2
2996
3010
  });
@@ -3014,24 +3028,24 @@ class gt {
3014
3028
  }
3015
3029
  function T(s) {
3016
3030
  var t;
3017
- return U(s) ? s.trim() : ht(s) && s.findIndex((e) => f(e)) === -1 ? s.join(",") : f(s) ? JSON.stringify(s) : s === !0 ? "1" : s === !1 ? "0" : (t = s == null ? void 0 : s.toString()) != null ? t : "";
3031
+ return U(s) ? s.trim() : et(s) && s.findIndex((e) => m(e)) === -1 ? s.join(",") : m(s) ? JSON.stringify(s) : s === !0 ? "1" : s === !1 ? "0" : (t = s == null ? void 0 : s.toString()) != null ? t : "";
3018
3032
  }
3019
3033
  function ie(s, t, e) {
3020
3034
  const i = T(s);
3021
3035
  if (!e || e <= 0)
3022
3036
  return i.split(t);
3023
- const r = i.split(t, e), a = i.split(t);
3024
- return r.length === a.length ? r : (r.pop(), [
3037
+ const r = i.split(t, e), o = i.split(t);
3038
+ return r.length === o.length ? r : (r.pop(), [
3025
3039
  ...r,
3026
- a.slice(e - 1).join(t)
3040
+ o.slice(e - 1).join(t)
3027
3041
  ]);
3028
3042
  }
3029
3043
  function x(s, t) {
3030
3044
  var r;
3031
- if (!m(t))
3045
+ if (!y(t))
3032
3046
  return;
3033
3047
  const e = ie(t, ".", 2), i = e[0];
3034
- return i && (s != null && s[i]) && f(s[i]) && (e != null && e[1]) ? x(s[i], e[1]) : (r = m(i) && (s == null ? void 0 : s[i])) != null ? r : void 0;
3048
+ return i && (s != null && s[i]) && m(s[i]) && (e != null && e[1]) ? x(s[i], e[1]) : (r = y(i) && (s == null ? void 0 : s[i])) != null ? r : void 0;
3035
3049
  }
3036
3050
  function Ht(s) {
3037
3051
  return s.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()}`);
@@ -3049,6 +3063,33 @@ class ze {
3049
3063
  constructor(t, e) {
3050
3064
  this.options = t, this.list = e;
3051
3065
  }
3066
+ /**
3067
+ * Checks if the list is set.
3068
+ *
3069
+ * Проверяет, установлен ли список.
3070
+ * @returns true if the list is set, false otherwise/ true, если список установлен, иначе false
3071
+ */
3072
+ is() {
3073
+ return !!this.list;
3074
+ }
3075
+ /**
3076
+ * Checks if the list is an array.
3077
+ *
3078
+ * Проверяет, является ли список массивом.
3079
+ * @returns true if the list is an array, false otherwise/ true, если список является массивом, иначе false
3080
+ */
3081
+ isArray() {
3082
+ return Array.isArray(this.list);
3083
+ }
3084
+ /**
3085
+ * Returns the count of records in the list.
3086
+ *
3087
+ * Возвращает количество записей в списке.
3088
+ * @returns count of records/ количество записей
3089
+ */
3090
+ length() {
3091
+ return this.list ? this.isArray() ? this.list.length : 1 : 0;
3092
+ }
3052
3093
  /**
3053
3094
  * Returns the current list of data.
3054
3095
  *
@@ -3056,7 +3097,7 @@ class ze {
3056
3097
  * @returns the list of data or undefined if not set/ список данных или undefined, если не задан
3057
3098
  */
3058
3099
  getList() {
3059
- return this.list;
3100
+ return this.list ? H(this.list) : [];
3060
3101
  }
3061
3102
  /**
3062
3103
  * Returns the current formatting options.
@@ -3078,19 +3119,20 @@ class ze {
3078
3119
  return this.list = t, this;
3079
3120
  }
3080
3121
  /**
3081
- * Formats the entire list based on the provided options.
3122
+ * Formats the entire list or a single item based on the provided options.
3082
3123
  * Adds formatted values with the suffix 'Format' to each item.
3083
3124
  *
3084
- * Форматирует весь список на основе предоставленных параметров.
3125
+ * Форматирует весь список или один элемент на основе предоставленных параметров.
3085
3126
  * Добавляет отформатированные значения с суффиксом 'Format' к каждому элементу.
3086
- * @returns the list of items with additional formatted columns/
3087
- * список элементов с дополнительными отформатированными столбцами
3127
+ * @returns formatted data (list or single item) with additional formatted columns /
3128
+ * отформатированные данные (список или один элемент) с дополнительными отформатированными столбцами
3088
3129
  */
3089
3130
  to() {
3090
- return this.list ? d(this.list, (t) => ({
3091
- ...t,
3092
- ...this.getFormatData(t)
3093
- })) : [];
3131
+ const t = g(this.getList(), (e) => ({
3132
+ ...e,
3133
+ ...this.getFormatData(e)
3134
+ }));
3135
+ return this.isArray() ? t : t[0];
3094
3136
  }
3095
3137
  /**
3096
3138
  * Generates formatted data for a single item based on options.
@@ -3101,16 +3143,16 @@ class ze {
3101
3143
  */
3102
3144
  getFormatData(t) {
3103
3145
  const e = {};
3104
- return d(
3146
+ return g(
3105
3147
  this.options,
3106
3148
  (i, r) => {
3107
- const a = `${Ht(r)}Format`, o = x(t, r);
3108
- i != null && i.transformation ? m(o) ? e[a] = i.transformation(
3109
- o,
3149
+ const o = `${Ht(r)}Format`, a = x(t, r);
3150
+ i != null && i.transformation ? y(a) ? e[o] = i.transformation(
3151
+ a,
3110
3152
  t,
3111
3153
  i.options
3112
- ) : e[a] = "" : e[a] = this.transformation(
3113
- o,
3154
+ ) : e[o] = "" : e[o] = this.transformation(
3155
+ a,
3114
3156
  t,
3115
3157
  i.type,
3116
3158
  i.options
@@ -3131,7 +3173,7 @@ class ze {
3131
3173
  * @returns Formatted string/ отформатированная строка
3132
3174
  */
3133
3175
  transformation(t, e, i, r) {
3134
- if (m(t) || i === F.name)
3176
+ if (y(t) || i === F.name)
3135
3177
  switch (i) {
3136
3178
  case F.currency:
3137
3179
  return this.formatCurrency(t, e, r);
@@ -3161,11 +3203,11 @@ class ze {
3161
3203
  * @returns Formatted currency string/ отформатированная строка валюты
3162
3204
  */
3163
3205
  formatCurrency(t, e, i) {
3164
- var a;
3206
+ var o;
3165
3207
  const r = i != null && i.currencyPropName ? x(e, i.currencyPropName) : e == null ? void 0 : e.currency;
3166
3208
  return N.getInstance().currency(
3167
3209
  t,
3168
- (a = i == null ? void 0 : i.options) != null ? a : r,
3210
+ (o = i == null ? void 0 : i.options) != null ? o : r,
3169
3211
  i == null ? void 0 : i.numberOnly
3170
3212
  );
3171
3213
  }
@@ -3198,12 +3240,12 @@ class ze {
3198
3240
  * отформатированная строка имени или пустая строка, если компоненты отсутствуют
3199
3241
  */
3200
3242
  formatName(t, e) {
3201
- var o, u, h;
3202
- const i = x(t, (o = e == null ? void 0 : e.lastPropName) != null ? o : "lastName"), r = x(t, (u = e == null ? void 0 : e.firstPropName) != null ? u : "firstName"), a = x(t, (h = e == null ? void 0 : e.surname) != null ? h : "surname");
3243
+ var a, u, h;
3244
+ const i = x(t, (a = e == null ? void 0 : e.lastPropName) != null ? a : "lastName"), r = x(t, (u = e == null ? void 0 : e.firstPropName) != null ? u : "firstName"), o = x(t, (h = e == null ? void 0 : e.surname) != null ? h : "surname");
3203
3245
  return i && r ? N.getInstance().fullName(
3204
3246
  i,
3205
3247
  r,
3206
- a,
3248
+ o,
3207
3249
  e == null ? void 0 : e.short
3208
3250
  ) : "";
3209
3251
  }
@@ -3250,7 +3292,7 @@ class ze {
3250
3292
  return e && e.unit ? N.getInstance().unit(t, e.unit) : t;
3251
3293
  }
3252
3294
  }
3253
- const n = "f", z = class z {
3295
+ const n = "f", V = class V {
3254
3296
  /**
3255
3297
  * Constructor
3256
3298
  * @param code country and language code/ код страны и языка
@@ -3273,7 +3315,7 @@ const n = "f", z = class z {
3273
3315
  language: this.getLanguage(e),
3274
3316
  country: r,
3275
3317
  standard: e.standard,
3276
- icon: (i = z.flags) == null ? void 0 : i[e.country],
3318
+ icon: (i = V.flags) == null ? void 0 : i[e.country],
3277
3319
  label: r,
3278
3320
  value: e.country
3279
3321
  };
@@ -3296,7 +3338,7 @@ const n = "f", z = class z {
3296
3338
  * @param codes country code/ код страны
3297
3339
  */
3298
3340
  getList(t) {
3299
- return d(this.getCodes(t), (e) => this.get(e));
3341
+ return g(this.getCodes(t), (e) => this.get(e));
3300
3342
  }
3301
3343
  /**
3302
3344
  * Getting a list of countries by an array of codes in national language.
@@ -3305,8 +3347,8 @@ const n = "f", z = class z {
3305
3347
  * @param codes country code/ код страны.
3306
3348
  */
3307
3349
  getNational(t) {
3308
- return d(this.getList(t), (e) => {
3309
- const i = new z(e.standard).get(e.standard);
3350
+ return g(this.getList(t), (e) => {
3351
+ const i = new V(e.standard).get(e.standard);
3310
3352
  return {
3311
3353
  ...e,
3312
3354
  description: i == null ? void 0 : i.country,
@@ -3339,7 +3381,7 @@ const n = "f", z = class z {
3339
3381
  * @param codes country code/ код страны
3340
3382
  */
3341
3383
  getCodes(t) {
3342
- return t != null ? t : Object.keys(z.flags);
3384
+ return t != null ? t : Object.keys(V.flags);
3343
3385
  }
3344
3386
  /**
3345
3387
  * Getting the name of the language.
@@ -3360,7 +3402,7 @@ const n = "f", z = class z {
3360
3402
  return this.getLocation().countryName(t.country);
3361
3403
  }
3362
3404
  };
3363
- c(z, "flags", {
3405
+ c(V, "flags", {
3364
3406
  AD: `${n}-ad`,
3365
3407
  AE: `${n}-ae`,
3366
3408
  AF: `${n}-af`,
@@ -3603,8 +3645,8 @@ c(z, "flags", {
3603
3645
  ZM: `${n}-zm`,
3604
3646
  ZW: `${n}-zw`
3605
3647
  });
3606
- let Dt = z;
3607
- const Z = class Z {
3648
+ let Ct = V;
3649
+ const K = class K {
3608
3650
  /**
3609
3651
  * Getting an object with information about the phone code and country.
3610
3652
  *
@@ -3621,13 +3663,20 @@ const Z = class Z {
3621
3663
  * @param phone phone number/ номер телефон
3622
3664
  */
3623
3665
  static getByPhone(t) {
3624
- let e = this.map, i, r = "";
3625
- return this.toNumber(t).forEach((a) => {
3626
- var o;
3627
- r === "" && a in e ? (i = e[a], e = (o = i == null ? void 0 : i.next) != null ? o : {}) : r += a;
3628
- }), {
3629
- item: i,
3630
- phone: r
3666
+ var a, u, h;
3667
+ const e = this.toNumber(t), i = [""];
3668
+ let r = this.map, o;
3669
+ for (const d of e)
3670
+ if (i[i.length - 1] += d, d in r)
3671
+ (a = r[d]) != null && a.value && (o = r[d], i.push("")), r = (h = (u = r[d]) == null ? void 0 : u.next) != null ? h : {};
3672
+ else
3673
+ break;
3674
+ return o ? (i.pop(), {
3675
+ item: o,
3676
+ phone: e.join("").slice(i.join("").length)
3677
+ }) : {
3678
+ item: void 0,
3679
+ phone: e.join("")
3631
3680
  };
3632
3681
  }
3633
3682
  /**
@@ -3666,11 +3715,11 @@ const Z = class Z {
3666
3715
  * @param masks a mask to transform a phone number/ маска для преобразования номер телефон
3667
3716
  */
3668
3717
  static toMask(t, e) {
3669
- if (m(t) && Array.isArray(e) && e.length > 0) {
3718
+ if (y(t) && Array.isArray(e) && e.length > 0) {
3670
3719
  const i = this.removeZero(t), r = i.length;
3671
- for (const a of e)
3672
- if (this.getUnnecessaryLength(a) === r)
3673
- return this.toStandard(i, a);
3720
+ for (const o of e)
3721
+ if (this.getUnnecessaryLength(o) === r)
3722
+ return this.toStandard(i, o);
3674
3723
  }
3675
3724
  }
3676
3725
  /**
@@ -3706,7 +3755,8 @@ const Z = class Z {
3706
3755
  * @param mask A mask to transform a phone number/ маска для преобразования номер телефон
3707
3756
  */
3708
3757
  static getUnnecessaryLength(t) {
3709
- return t.replace(/[^*]+/ig, "").length;
3758
+ var e, i;
3759
+ return (i = (e = t.match(/\*/g)) == null ? void 0 : e.length) != null ? i : 0;
3710
3760
  }
3711
3761
  /**
3712
3762
  * Creating a list for the map.
@@ -3714,12 +3764,12 @@ const Z = class Z {
3714
3764
  * Формирование списка для карты.
3715
3765
  */
3716
3766
  static makeList() {
3717
- const t = d(b.getList(), (e) => {
3767
+ const t = g(b.getList(), (e) => {
3718
3768
  if (e != null && e.phoneMask)
3719
3769
  return {
3720
3770
  phone: (e == null ? void 0 : e.phoneCode) && Number(e.phoneCode.replace(/[^0-9]+/, "")) || void 0,
3721
3771
  within: (e == null ? void 0 : e.phoneWithin) || 0,
3722
- mask: Y(e.phoneMask),
3772
+ mask: H(e.phoneMask),
3723
3773
  value: e.country
3724
3774
  };
3725
3775
  });
@@ -3734,20 +3784,20 @@ const Z = class Z {
3734
3784
  this.list.forEach((t) => {
3735
3785
  t.mask.forEach((e) => {
3736
3786
  let i = this.map, r;
3737
- if (this.toNumber(e).forEach((a) => {
3738
- var o;
3739
- a in i || (i[a] = {
3787
+ if (this.toNumber(e).forEach((o) => {
3788
+ var a;
3789
+ o in i || (i[o] = {
3740
3790
  items: [],
3741
3791
  info: void 0,
3742
3792
  value: void 0,
3743
3793
  mask: [],
3744
3794
  maskFull: [],
3745
3795
  next: {}
3746
- }), r = i[a], i = (o = r == null ? void 0 : r.next) != null ? o : {};
3796
+ }), r = i[o], i = (a = r == null ? void 0 : r.next) != null ? a : {};
3747
3797
  }), r) {
3748
3798
  r.value === void 0 && (r.info = t, r.value = t.value);
3749
- const a = this.toWithin(e, t.within);
3750
- r.mask.push(a), r.maskFull.push(a.replace(/\d/ig, "*")), r.items.push(t);
3799
+ const o = this.toWithin(e, t.within);
3800
+ r.mask.push(o), r.maskFull.push(o.replace(/\d/ig, "*")), r.items.push(t);
3751
3801
  }
3752
3802
  });
3753
3803
  });
@@ -3783,8 +3833,8 @@ const Z = class Z {
3783
3833
  return t.replace(/\*/, this.getWithinSymbol(e));
3784
3834
  }
3785
3835
  };
3786
- c(Z, "list", []), c(Z, "map", {}), Z.makeList(), Z.makeMap();
3787
- let kt = Z, j;
3836
+ c(K, "list", []), c(K, "map", {}), K.makeList(), K.makeMap();
3837
+ let kt = K, z;
3788
3838
  class Ze {
3789
3839
  /**
3790
3840
  * Returns the value by its name.
@@ -3793,7 +3843,7 @@ class Ze {
3793
3843
  * @param name property name/ название свойства
3794
3844
  */
3795
3845
  static get(t) {
3796
- return j && (j == null ? void 0 : j[t]);
3846
+ return z && (z == null ? void 0 : z[t]);
3797
3847
  }
3798
3848
  /**
3799
3849
  * Adds data, this method works only once.
@@ -3802,10 +3852,10 @@ class Ze {
3802
3852
  * @param data global data/ глобальные данные
3803
3853
  */
3804
3854
  static add(t) {
3805
- j === void 0 && (j = D(t));
3855
+ z === void 0 && (z = C(t));
3806
3856
  }
3807
3857
  }
3808
- const W = class W {
3858
+ const j = class j {
3809
3859
  /**
3810
3860
  * Get data from hash.
3811
3861
  *
@@ -3849,7 +3899,7 @@ const W = class W {
3849
3899
  static removeWatch(t, e) {
3850
3900
  var r;
3851
3901
  const i = (r = this.watch) == null ? void 0 : r[t];
3852
- i && (this.watch[t] = i.filter((a) => a !== e));
3902
+ i && (this.watch[t] = i.filter((o) => o !== e));
3853
3903
  }
3854
3904
  /**
3855
3905
  * Update hash variable from URL string.
@@ -3871,7 +3921,7 @@ const W = class W {
3871
3921
  const t = {};
3872
3922
  return location.hash.replace(
3873
3923
  /([\w-]+)[:=]([^;]+)/ig,
3874
- (...e) => (t[String(e[1])] = Ut(e[2]), "")
3924
+ (...e) => (t[String(e[1])] = Wt(e[2]), "")
3875
3925
  ), t;
3876
3926
  }
3877
3927
  /**
@@ -3891,14 +3941,14 @@ const W = class W {
3891
3941
  * @param location fresh data/ свежий данные
3892
3942
  */
3893
3943
  static makeWatch(t) {
3894
- d(this.watch, (e, i) => {
3944
+ g(this.watch, (e, i) => {
3895
3945
  var r;
3896
- ((r = this.hash) == null ? void 0 : r[i]) !== (t == null ? void 0 : t[i]) && e.forEach((a) => a(t[i]));
3946
+ ((r = this.hash) == null ? void 0 : r[i]) !== (t == null ? void 0 : t[i]) && e.forEach((o) => o(t[i]));
3897
3947
  });
3898
3948
  }
3899
3949
  };
3900
- c(W, "hash", {}), c(W, "watch", {}), c(W, "block", !1), l() && (W.reload(), addEventListener("hashchange", () => W.reload()));
3901
- let Nt = W;
3950
+ c(j, "hash", {}), c(j, "watch", {}), c(j, "block", !1), f() && (j.reload(), addEventListener("hashchange", () => j.reload()));
3951
+ let Nt = j;
3902
3952
  const at = "__UI_ICON", Et = 320, At = "--LOAD--", M = class M {
3903
3953
  /**
3904
3954
  * Checks if the given icon is in the list of connected icons.
@@ -3920,8 +3970,8 @@ const at = "__UI_ICON", Et = 320, At = "--LOAD--", M = class M {
3920
3970
  * время ожидания загрузки картинки
3921
3971
  */
3922
3972
  static async get(t, e = "", i = 1e3 * 60 * 3) {
3923
- var a, o, u, h;
3924
- const r = (h = (u = (a = this.icons) == null ? void 0 : a[this.getName(t)]) != null ? u : (o = this.icons) == null ? void 0 : o[t]) != null ? h : `${t.replace(/^@/, e != null ? e : this.url)}.svg`;
3973
+ var o, a, u, h;
3974
+ 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`;
3925
3975
  return typeof r == "string" ? r === At && i > 0 ? (await this.wait(), this.get(t, e, i - Et)) : r : lt(r) ? await r() : await r;
3926
3976
  }
3927
3977
  /**
@@ -3930,7 +3980,7 @@ const at = "__UI_ICON", Et = 320, At = "--LOAD--", M = class M {
3930
3980
  * Возвращает список названий всех зарегистрированных иконок.
3931
3981
  */
3932
3982
  static getNameList() {
3933
- return d(this.icons, (t, e) => e.replace(/^@/, ""));
3983
+ return g(this.icons, (t, e) => e.replace(/^@/, ""));
3934
3984
  }
3935
3985
  /**
3936
3986
  * Returns a global link.
@@ -3938,7 +3988,7 @@ const at = "__UI_ICON", Et = 320, At = "--LOAD--", M = class M {
3938
3988
  * Возвращает глобальную ссылку.
3939
3989
  */
3940
3990
  static getUrlGlobal() {
3941
- return `${K.isLocalhost(), ""}${this.url}`;
3991
+ return `${W.isLocalhost(), ""}${this.url}`;
3942
3992
  }
3943
3993
  /**
3944
3994
  * Adding custom icons.
@@ -3976,7 +4026,7 @@ const at = "__UI_ICON", Et = 320, At = "--LOAD--", M = class M {
3976
4026
  * @param list list of icons/ список иконки
3977
4027
  */
3978
4028
  static addByList(t) {
3979
- d(t, (e, i) => this.add(i, e));
4029
+ g(t, (e, i) => this.add(i, e));
3980
4030
  }
3981
4031
  /**
3982
4032
  * Changes the file path.
@@ -4005,39 +4055,39 @@ const at = "__UI_ICON", Et = 320, At = "--LOAD--", M = class M {
4005
4055
  return new Promise((t) => setTimeout(() => t(), Et));
4006
4056
  }
4007
4057
  };
4008
- c(M, "icons", {}), c(M, "url", "/icons/"), l() && (at in window || (window[at] = {}), M.icons = window[at]);
4058
+ c(M, "icons", {}), c(M, "url", "/icons/"), f() && (at in window || (window[at] = {}), M.icons = window[at]);
4009
4059
  let It = M;
4010
4060
  function re(s, t, e) {
4011
4061
  var i, r;
4012
- return (r = (i = E(s)) == null ? void 0 : i[t]) != null ? r : e;
4062
+ return (r = (i = A(s)) == null ? void 0 : i[t]) != null ? r : e;
4013
4063
  }
4014
4064
  function ne(s, t, e) {
4015
- const i = E(s);
4065
+ const i = A(s);
4016
4066
  if (i) {
4017
4067
  const r = re(i, t);
4018
- if (f(r) && f(e))
4019
- d(e, (a, o) => {
4020
- r[o] = B(a);
4068
+ if (m(r) && m(e))
4069
+ g(e, (o, a) => {
4070
+ r[a] = B(o);
4021
4071
  });
4022
4072
  else {
4023
- const a = B(e);
4024
- !(t in i) && typeof a == "string" ? i.setAttribute(t.toString(), a) : i[t] = B(e);
4073
+ const o = B(e);
4074
+ !(t in i) && typeof o == "string" ? i.setAttribute(t.toString(), o) : i[t] = B(e);
4025
4075
  }
4026
4076
  }
4027
4077
  return i;
4028
4078
  }
4029
4079
  function G(s, t = "div", e, i) {
4030
- if (!l())
4080
+ if (!f())
4031
4081
  return;
4032
4082
  const r = document.createElement(t);
4033
- return typeof e == "function" ? e(r) : A(e) && d(e, (a, o) => {
4034
- ne(r, o, a);
4083
+ return typeof e == "function" ? e(r) : E(e) && g(e, (o, a) => {
4084
+ ne(r, a, o);
4035
4085
  }), s == null || s.insertBefore(r, i != null ? i : null), r;
4036
4086
  }
4037
- function ae(s) {
4087
+ function oe(s) {
4038
4088
  return s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;").trim();
4039
4089
  }
4040
- class dt {
4090
+ class ft {
4041
4091
  /**
4042
4092
  * Creates an instance of MetaManager.
4043
4093
  *
@@ -4081,7 +4131,7 @@ class dt {
4081
4131
  * Возвращает все мета-теги в виде HTML-строки.
4082
4132
  */
4083
4133
  html() {
4084
- return d(
4134
+ return g(
4085
4135
  this.listMeta,
4086
4136
  (e) => this.toHtmlString(e)
4087
4137
  ).join("");
@@ -4103,7 +4153,7 @@ class dt {
4103
4153
  * @param metaList object with meta tag names and content / объект с именами и содержимым мета-тегов
4104
4154
  */
4105
4155
  setByList(t) {
4106
- return d(
4156
+ return g(
4107
4157
  t,
4108
4158
  (e, i) => this.set(i, String(e))
4109
4159
  ), this;
@@ -4123,7 +4173,7 @@ class dt {
4123
4173
  * @param name meta tag name / имя мета-тега
4124
4174
  */
4125
4175
  findMetaElement(t) {
4126
- if (!l())
4176
+ if (!f())
4127
4177
  return;
4128
4178
  const e = `meta[${this.getAttributeName()}="${t}"]`;
4129
4179
  return document.querySelector(e) || void 0;
@@ -4149,9 +4199,9 @@ class dt {
4149
4199
  const e = this.findMetaElement(t), i = (r = this.items[t]) != null ? r : "";
4150
4200
  if (e)
4151
4201
  e.content = i;
4152
- else if (l()) {
4153
- const a = { content: i };
4154
- this.isProperty ? a.property = t : a.name = t, G(document.head, "meta", a);
4202
+ else if (f()) {
4203
+ const o = { content: i };
4204
+ this.isProperty ? o.property = t : o.name = t, G(document.head, "meta", o);
4155
4205
  }
4156
4206
  return this;
4157
4207
  }
@@ -4163,7 +4213,7 @@ class dt {
4163
4213
  */
4164
4214
  toHtmlString(t) {
4165
4215
  var i;
4166
- const e = ae((i = this.items[t]) != null ? i : "");
4216
+ const e = oe((i = this.items[t]) != null ? i : "");
4167
4217
  return e ? `<meta ${this.getAttributeName()}="${t}" content="${e}">` : "";
4168
4218
  }
4169
4219
  /**
@@ -4178,8 +4228,8 @@ class dt {
4178
4228
  }), this;
4179
4229
  }
4180
4230
  }
4181
- var L = /* @__PURE__ */ ((s) => (s.description = "description", s.keywords = "keywords", s.canonical = "canonical", s.robots = "robots", s.author = "author", s))(L || {}), oe = /* @__PURE__ */ ((s) => (s.indexFollow = "index, follow", s.noIndexFollow = "noindex, follow", s.indexNoFollow = "index, nofollow", s.noIndexNoFollow = "noindex, nofollow", s.noArchive = "noarchive", s.noSnippet = "nosnippet", s.noImageIndex = "noimageindex", s.images = "images", s.noTranslate = "notranslate", s.noPreview = "nopreview", s.textOnly = "textonly", s.noIndexSubpages = "noindex, noarchive", s.none = "none", s))(oe || {}), $ = /* @__PURE__ */ ((s) => (s.title = "og:title", s.type = "og:type", s.url = "og:url", s.image = "og:image", s.description = "og:description", s.locale = "og:locale", s.siteName = "og:site_name", s.localeAlternate = "og:locale:alternate", s.imageUrl = "og:image:url", s.imageSecureUrl = "og:image:secure_url", s.imageType = "og:image:type", s.imageWidth = "og:image:width", s.imageHeight = "og:image:height", s.imageAlt = "og:image:alt", s.video = "og:video", s.videoUrl = "og:video:url", s.videoSecureUrl = "og:video:secure_url", s.videoType = "og:video:type", s.videoWidth = "og:video:width", s.videoHeight = "og:video:height", s.audio = "og:audio", s.audioSecureUrl = "og:audio:secure_url", s.audioType = "og:audio:type", s.articlePublishedTime = "article:published_time", s.articleModifiedTime = "article:modified_time", s.articleExpirationTime = "article:expiration_time", s.articleAuthor = "article:author", s.articleSection = "article:section", s.articleTag = "article:tag", s.bookAuthor = "book:author", s.bookIsbn = "book:isbn", s.bookReleaseDate = "book:release_date", s.bookTag = "book:tag", s.musicDuration = "music:duration", s.musicAlbum = "music:album", s.musicAlbumDisc = "music:album:disc", s.musicAlbumTrack = "music:album:track", s.musicMusician = "music:musician", s.musicSong = "music:song", s.musicSongDisc = "music:song:disc", s.musicSongTrack = "music:song:track", s.musicReleaseDate = "music:release_date", s.musicCreator = "music:creator", s.videoActor = "video:actor", s.videoActorRole = "video:actor:role", s.videoDirector = "video:director", s.videoWriter = "video:writer", s.videoDuration = "video:duration", s.videoReleaseDate = "video:release_date", s.videoTag = "video:tag", s.videoSeries = "video:series", s.profileFirstName = "profile:first_name", s.profileLastName = "profile:last_name", s.profileUsername = "profile:username", s.profileGender = "profile:gender", s.productBrand = "product:brand", s.productAvailability = "product:availability", s.productCondition = "product:condition", s.productPriceAmount = "product:price:amount", s.productPriceCurrency = "product:price:currency", s.productRetailerItemId = "product:retailer_item_id", s.productCategory = "product:category", s.productEan = "product:ean", s.productIsbn = "product:isbn", s.productMfrPartNo = "product:mfr_part_no", s.productUpc = "product:upc", s.productWeightValue = "product:weight:value", s.productWeightUnits = "product:weight:units", s.productColor = "product:color", s.productMaterial = "product:material", s.productPattern = "product:pattern", s.productAgeGroup = "product:age_group", s.productGender = "product:gender", s))($ || {}), ce = /* @__PURE__ */ ((s) => (s.website = "website", s.article = "article", s.video = "video.other", s.videoTvShow = "video.tv_show", s.videoEpisode = "video.episode", s.videoMovie = "video.movie", s.musicAlbum = "music.album", s.musicPlaylist = "music.playlist", s.musicSong = "music.song", s.musicRadioStation = "music.radio_station", s.app = "app", s.product = "product", s.business = "business.business", s.place = "place", s.event = "event", s.profile = "profile", s.book = "book", s))(ce || {}), ue = /* @__PURE__ */ ((s) => (s.inStock = "in stock", s.outOfStock = "out of stock", s.preorder = "preorder", s.backorder = "backorder", s.discontinued = "discontinued", s.pending = "pending", s))(ue || {}), he = /* @__PURE__ */ ((s) => (s.new = "new", s.used = "used", s.refurbished = "refurbished", s))(he || {}), le = /* @__PURE__ */ ((s) => (s.newborn = "newborn", s.infant = "infant", s.toddler = "toddler", s.kids = "kids", s.adult = "adult", s))(le || {}), ge = /* @__PURE__ */ ((s) => (s.female = "female", s.male = "male", s.unisex = "unisex", s))(ge || {}), p = /* @__PURE__ */ ((s) => (s.card = "twitter:card", s.site = "twitter:site", s.creator = "twitter:creator", s.url = "twitter:url", s.title = "twitter:title", s.description = "twitter:description", s.image = "twitter:image", s.imageAlt = "twitter:image:alt", s.imageSrc = "twitter:image:src", s.imageWidth = "twitter:image:width", s.imageHeight = "twitter:image:height", s.label1 = "twitter:label1", s.data1 = "twitter:data1", s.label2 = "twitter:label2", s.data2 = "twitter:data2", s.appNameIphone = "twitter:app:name:iphone", s.appIdIphone = "twitter:app:id:iphone", s.appUrlIphone = "twitter:app:url:iphone", s.appNameIpad = "twitter:app:name:ipad", s.appIdIpad = "twitter:app:id:ipad", s.appUrlIpad = "twitter:app:url:ipad", s.appNameGooglePlay = "twitter:app:name:googleplay", s.appIdGooglePlay = "twitter:app:id:googleplay", s.appUrlGooglePlay = "twitter:app:url:googleplay", s.player = "twitter:player", s.playerWidth = "twitter:player:width", s.playerHeight = "twitter:player:height", s.playerStream = "twitter:player:stream", s.playerStreamContentType = "twitter:player:stream:content_type", s))(p || {}), de = /* @__PURE__ */ ((s) => (s.summary = "summary", s.summaryLargeImage = "summary_large_image", s.app = "app", s.player = "player", s.product = "product", s.gallery = "gallery", s.photo = "photo", s.leadGeneration = "lead_generation", s.audio = "audio", s.poll = "poll", s))(de || {});
4182
- class fe extends dt {
4231
+ var L = /* @__PURE__ */ ((s) => (s.description = "description", s.keywords = "keywords", s.canonical = "canonical", s.robots = "robots", s.author = "author", s))(L || {}), ae = /* @__PURE__ */ ((s) => (s.indexFollow = "index, follow", s.noIndexFollow = "noindex, follow", s.indexNoFollow = "index, nofollow", s.noIndexNoFollow = "noindex, nofollow", s.noArchive = "noarchive", s.noSnippet = "nosnippet", s.noImageIndex = "noimageindex", s.images = "images", s.noTranslate = "notranslate", s.noPreview = "nopreview", s.textOnly = "textonly", s.noIndexSubpages = "noindex, noarchive", s.none = "none", s))(ae || {}), $ = /* @__PURE__ */ ((s) => (s.title = "og:title", s.type = "og:type", s.url = "og:url", s.image = "og:image", s.description = "og:description", s.locale = "og:locale", s.siteName = "og:site_name", s.localeAlternate = "og:locale:alternate", s.imageUrl = "og:image:url", s.imageSecureUrl = "og:image:secure_url", s.imageType = "og:image:type", s.imageWidth = "og:image:width", s.imageHeight = "og:image:height", s.imageAlt = "og:image:alt", s.video = "og:video", s.videoUrl = "og:video:url", s.videoSecureUrl = "og:video:secure_url", s.videoType = "og:video:type", s.videoWidth = "og:video:width", s.videoHeight = "og:video:height", s.audio = "og:audio", s.audioSecureUrl = "og:audio:secure_url", s.audioType = "og:audio:type", s.articlePublishedTime = "article:published_time", s.articleModifiedTime = "article:modified_time", s.articleExpirationTime = "article:expiration_time", s.articleAuthor = "article:author", s.articleSection = "article:section", s.articleTag = "article:tag", s.bookAuthor = "book:author", s.bookIsbn = "book:isbn", s.bookReleaseDate = "book:release_date", s.bookTag = "book:tag", s.musicDuration = "music:duration", s.musicAlbum = "music:album", s.musicAlbumDisc = "music:album:disc", s.musicAlbumTrack = "music:album:track", s.musicMusician = "music:musician", s.musicSong = "music:song", s.musicSongDisc = "music:song:disc", s.musicSongTrack = "music:song:track", s.musicReleaseDate = "music:release_date", s.musicCreator = "music:creator", s.videoActor = "video:actor", s.videoActorRole = "video:actor:role", s.videoDirector = "video:director", s.videoWriter = "video:writer", s.videoDuration = "video:duration", s.videoReleaseDate = "video:release_date", s.videoTag = "video:tag", s.videoSeries = "video:series", s.profileFirstName = "profile:first_name", s.profileLastName = "profile:last_name", s.profileUsername = "profile:username", s.profileGender = "profile:gender", s.productBrand = "product:brand", s.productAvailability = "product:availability", s.productCondition = "product:condition", s.productPriceAmount = "product:price:amount", s.productPriceCurrency = "product:price:currency", s.productRetailerItemId = "product:retailer_item_id", s.productCategory = "product:category", s.productEan = "product:ean", s.productIsbn = "product:isbn", s.productMfrPartNo = "product:mfr_part_no", s.productUpc = "product:upc", s.productWeightValue = "product:weight:value", s.productWeightUnits = "product:weight:units", s.productColor = "product:color", s.productMaterial = "product:material", s.productPattern = "product:pattern", s.productAgeGroup = "product:age_group", s.productGender = "product:gender", s))($ || {}), ce = /* @__PURE__ */ ((s) => (s.website = "website", s.article = "article", s.video = "video.other", s.videoTvShow = "video.tv_show", s.videoEpisode = "video.episode", s.videoMovie = "video.movie", s.musicAlbum = "music.album", s.musicPlaylist = "music.playlist", s.musicSong = "music.song", s.musicRadioStation = "music.radio_station", s.app = "app", s.product = "product", s.business = "business.business", s.place = "place", s.event = "event", s.profile = "profile", s.book = "book", s))(ce || {}), ue = /* @__PURE__ */ ((s) => (s.inStock = "in stock", s.outOfStock = "out of stock", s.preorder = "preorder", s.backorder = "backorder", s.discontinued = "discontinued", s.pending = "pending", s))(ue || {}), he = /* @__PURE__ */ ((s) => (s.new = "new", s.used = "used", s.refurbished = "refurbished", s))(he || {}), le = /* @__PURE__ */ ((s) => (s.newborn = "newborn", s.infant = "infant", s.toddler = "toddler", s.kids = "kids", s.adult = "adult", s))(le || {}), ge = /* @__PURE__ */ ((s) => (s.female = "female", s.male = "male", s.unisex = "unisex", s))(ge || {}), p = /* @__PURE__ */ ((s) => (s.card = "twitter:card", s.site = "twitter:site", s.creator = "twitter:creator", s.url = "twitter:url", s.title = "twitter:title", s.description = "twitter:description", s.image = "twitter:image", s.imageAlt = "twitter:image:alt", s.imageSrc = "twitter:image:src", s.imageWidth = "twitter:image:width", s.imageHeight = "twitter:image:height", s.label1 = "twitter:label1", s.data1 = "twitter:data1", s.label2 = "twitter:label2", s.data2 = "twitter:data2", s.appNameIphone = "twitter:app:name:iphone", s.appIdIphone = "twitter:app:id:iphone", s.appUrlIphone = "twitter:app:url:iphone", s.appNameIpad = "twitter:app:name:ipad", s.appIdIpad = "twitter:app:id:ipad", s.appUrlIpad = "twitter:app:url:ipad", s.appNameGooglePlay = "twitter:app:name:googleplay", s.appIdGooglePlay = "twitter:app:id:googleplay", s.appUrlGooglePlay = "twitter:app:url:googleplay", s.player = "twitter:player", s.playerWidth = "twitter:player:width", s.playerHeight = "twitter:player:height", s.playerStream = "twitter:player:stream", s.playerStreamContentType = "twitter:player:stream:content_type", s))(p || {}), fe = /* @__PURE__ */ ((s) => (s.summary = "summary", s.summaryLargeImage = "summary_large_image", s.app = "app", s.player = "player", s.product = "product", s.gallery = "gallery", s.photo = "photo", s.leadGeneration = "lead_generation", s.audio = "audio", s.poll = "poll", s))(fe || {});
4232
+ class de extends ft {
4183
4233
  constructor() {
4184
4234
  super(Object.values($), !0);
4185
4235
  }
@@ -4303,7 +4353,7 @@ class fe extends dt {
4303
4353
  return this.set($.siteName, t);
4304
4354
  }
4305
4355
  }
4306
- class me extends dt {
4356
+ class me extends ft {
4307
4357
  constructor() {
4308
4358
  super(Object.values(p));
4309
4359
  }
@@ -4427,7 +4477,7 @@ class me extends dt {
4427
4477
  return this.set(p.image, t), this;
4428
4478
  }
4429
4479
  }
4430
- class Ve extends dt {
4480
+ class Ve extends ft {
4431
4481
  /**
4432
4482
  * Creates an instance of Meta with integrated Open Graph and Twitter Card support.
4433
4483
  *
@@ -4438,7 +4488,7 @@ class Ve extends dt {
4438
4488
  c(this, "suffix");
4439
4489
  c(this, "og");
4440
4490
  c(this, "twitter");
4441
- this.og = new fe(), this.twitter = new me();
4491
+ this.og = new de(), this.twitter = new me();
4442
4492
  }
4443
4493
  /**
4444
4494
  * Gets the MetaOg instance for advanced Open Graph operations.
@@ -4462,7 +4512,7 @@ class Ve extends dt {
4462
4512
  * Получает заголовок страницы без суффикса.
4463
4513
  */
4464
4514
  getTitle() {
4465
- return l() ? document.title.replace(this.getSuffix(), "").trim() : "";
4515
+ return f() ? document.title.replace(this.getSuffix(), "").trim() : "";
4466
4516
  }
4467
4517
  /**
4468
4518
  * Gets the keywords meta tag.
@@ -4535,8 +4585,8 @@ class Ve extends dt {
4535
4585
  * @param title page title / заголовок страницы
4536
4586
  */
4537
4587
  setTitle(e) {
4538
- if (l()) {
4539
- const i = m(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
4588
+ if (f()) {
4589
+ const i = y(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
4540
4590
  document.title = i, this.og.setTitle(i), this.twitter.setTitle(i);
4541
4591
  }
4542
4592
  return this;
@@ -4548,7 +4598,7 @@ class Ve extends dt {
4548
4598
  * @param keywords keywords as string or array / ключевые слова в виде строки или массива
4549
4599
  */
4550
4600
  setKeywords(e) {
4551
- return this.set(L.keywords, Y(e).join(", ")), this;
4601
+ return this.set(L.keywords, H(e).join(", ")), this;
4552
4602
  }
4553
4603
  /**
4554
4604
  * Sets the description meta tag.
@@ -4636,10 +4686,10 @@ class Ve extends dt {
4636
4686
  * Получает отформатированный суффикс с разделителем.
4637
4687
  */
4638
4688
  getSuffix() {
4639
- return m(this.suffix) ? ` - ${this.suffix}` : "";
4689
+ return y(this.suffix) ? ` - ${this.suffix}` : "";
4640
4690
  }
4641
4691
  }
4642
- class ut {
4692
+ class ht {
4643
4693
  /**
4644
4694
  * Checks whether to enable scroll hiding.
4645
4695
  *
@@ -4706,14 +4756,14 @@ class ut {
4706
4756
  });
4707
4757
  }
4708
4758
  }
4709
- c(ut, "storage", new et("scrollbar", !0)), c(ut, "calculate", !1);
4710
- function ft(s) {
4759
+ c(ht, "storage", new st("scrollbar", !0)), c(ht, "calculate", !1);
4760
+ function dt(s) {
4711
4761
  return s.replace(/([[\]\\^$.?*+(){}/|])/g, "\\$1");
4712
4762
  }
4713
4763
  function ye(s) {
4714
- const t = d(
4764
+ const t = g(
4715
4765
  s.split(" "),
4716
- (e) => ft(e)
4766
+ (e) => dt(e)
4717
4767
  ).join("|");
4718
4768
  return new RegExp(`(${t})`, "ig");
4719
4769
  }
@@ -4841,8 +4891,8 @@ class pe {
4841
4891
  toFormatItem(t, e) {
4842
4892
  const i = {};
4843
4893
  return this.columns && this.columns.forEach((r) => {
4844
- const a = this.getColumnName(r), o = x(t, r);
4845
- i[a] = m(o) && e ? this.addTag(o) : T(o);
4894
+ const o = this.getColumnName(r), a = x(t, r);
4895
+ i[o] = y(a) && e ? this.addTag(a) : T(a);
4846
4896
  }), {
4847
4897
  ...t,
4848
4898
  ...i,
@@ -4890,8 +4940,8 @@ class pe {
4890
4940
  let i = "";
4891
4941
  if (this.columns)
4892
4942
  for (const r of this.columns) {
4893
- const a = x(e, r);
4894
- m(a) && (i += ` ${T(a)}`);
4943
+ const o = x(e, r);
4944
+ y(o) && (i += ` ${T(o)}`);
4895
4945
  }
4896
4946
  t.push({
4897
4947
  item: e,
@@ -4968,7 +5018,7 @@ class be {
4968
5018
  }
4969
5019
  }
4970
5020
  function zt(s, t = "ig", e = ":value") {
4971
- const i = ft(s);
5021
+ const i = dt(s);
4972
5022
  return new RegExp(e.replace(/:value/g, i), t);
4973
5023
  }
4974
5024
  function we(s) {
@@ -4977,8 +5027,8 @@ function we(s) {
4977
5027
  function ve(s) {
4978
5028
  let t = "";
4979
5029
  return s.split(" ").forEach((e) => {
4980
- const i = ft(e).trim();
4981
- m(i) && (t += `(?=.*?${i})`);
5030
+ const i = dt(e).trim();
5031
+ y(i) && (t += `(?=.*?${i})`);
4982
5032
  }), new RegExp(`^${t}`, "ig");
4983
5033
  }
4984
5034
  class Se {
@@ -5236,7 +5286,7 @@ class Ke {
5236
5286
  * @returns this instance/ данный экземпляр
5237
5287
  */
5238
5288
  setValue(t) {
5239
- return this.item.set(t), this.matcher.update(), this;
5289
+ return this.item.get() === t ? this : (this.item.set(t), this.matcher.update(), this);
5240
5290
  }
5241
5291
  /**
5242
5292
  * Sets new search options and updates the matcher.
@@ -5258,10 +5308,10 @@ class Ke {
5258
5308
  if (this.item.isSearch())
5259
5309
  return this.data.forEach(this.callbackToSelection);
5260
5310
  const t = this.data.getList();
5261
- return t ? d(t, this.callbackToNone) : [];
5311
+ return t ? g(t, this.callbackToNone) : [];
5262
5312
  }
5263
5313
  }
5264
- const Ce = [
5314
+ const De = [
5265
5315
  "d",
5266
5316
  "e",
5267
5317
  "f",
@@ -5281,18 +5331,18 @@ const Ce = [
5281
5331
  "t",
5282
5332
  "u",
5283
5333
  "v"
5284
- ], De = (s, t = {}) => {
5334
+ ], Ce = (s, t = {}) => {
5285
5335
  let e = String(s);
5286
5336
  if (s.match(/%[a-z]/)) {
5287
5337
  let i = 0;
5288
- d(t, (r) => {
5289
- e = e.replace(new RegExp(`%${Ce[i++]}`, "g"), String(r));
5338
+ g(t, (r) => {
5339
+ e = e.replace(new RegExp(`%${De[i++]}`, "g"), String(r));
5290
5340
  });
5291
5341
  }
5292
- return A(t) && d(t, (i, r) => {
5342
+ return E(t) && g(t, (i, r) => {
5293
5343
  e = e.replace(
5294
5344
  new RegExp(`(?:\\[|\\{)${r}(?:\\]|\\})(.*?)(?:\\[|\\{)\\/${r}(?:\\]|\\})`, "g"),
5295
- (a, o) => String(i).replace(/(?:\[|\{)content(?:\]|\})/g, o)
5345
+ (o, a) => String(i).replace(/(?:\[|\{)content(?:\]|\})/g, a)
5296
5346
  ).replace(new RegExp(`(?:\\[|\\{)${r}(?:\\]|\\})`, "g"), String(i));
5297
5347
  }), e;
5298
5348
  }, ke = "global", I = class I {
@@ -5306,7 +5356,7 @@ const Ce = [
5306
5356
  static async get(t, e) {
5307
5357
  var r;
5308
5358
  const i = this.getText(t);
5309
- return i ? this.replacement(i, e) : (K.isLocalhost() || await this.add(t), this.replacement((r = this.getText(t)) != null ? r : t));
5359
+ return i ? this.replacement(i, e) : (W.isLocalhost() || await this.add(t), this.replacement((r = this.getText(t)) != null ? r : t));
5310
5360
  }
5311
5361
  /**
5312
5362
  * Getting the translation text by its code (Sync).
@@ -5332,10 +5382,10 @@ const Ce = [
5332
5382
  return new Promise((e) => {
5333
5383
  const i = {};
5334
5384
  let r = 0;
5335
- for (const a of t) {
5336
- const o = Array.isArray(a) ? a[0] : a, u = Array.isArray(a) ? a.slice(1) : void 0;
5337
- this.get(o, u).then((h) => {
5338
- i[o] = h, ++r >= t.length && e(i);
5385
+ for (const o of t) {
5386
+ const a = Array.isArray(o) ? o[0] : o, u = Array.isArray(o) ? o.slice(1) : void 0;
5387
+ this.get(a, u).then((h) => {
5388
+ i[a] = h, ++r >= t.length && e(i);
5339
5389
  });
5340
5390
  }
5341
5391
  });
@@ -5351,8 +5401,8 @@ const Ce = [
5351
5401
  static getListSync(t, e = !1) {
5352
5402
  const i = {};
5353
5403
  for (const r of t) {
5354
- const a = Array.isArray(r) ? r[0] : r, o = Array.isArray(r) ? r.slice(1) : void 0;
5355
- i[a] = this.getSync(a, e, o);
5404
+ const o = Array.isArray(r) ? r[0] : r, a = Array.isArray(r) ? r.slice(1) : void 0;
5405
+ i[o] = this.getSync(o, e, a);
5356
5406
  }
5357
5407
  return i;
5358
5408
  }
@@ -5378,8 +5428,8 @@ const Ce = [
5378
5428
  * @param data list of texts in the form of key-value/ список текстов в виде ключ-значение
5379
5429
  */
5380
5430
  static addSync(t) {
5381
- d(t, (e, i) => {
5382
- U(e) && m(e) && (this.data[this.getName(i)] = e);
5431
+ g(t, (e, i) => {
5432
+ U(e) && y(e) && (this.data[this.getName(i)] = e);
5383
5433
  });
5384
5434
  }
5385
5435
  /**
@@ -5389,8 +5439,8 @@ const Ce = [
5389
5439
  * @param data list of texts in the form of key-value/ список текстов в виде ключ-значение
5390
5440
  */
5391
5441
  static async addNormalOrSync(t) {
5392
- if (m(t))
5393
- if (K.isLocalhost())
5442
+ if (y(t))
5443
+ if (W.isLocalhost())
5394
5444
  this.addSync(t);
5395
5445
  else {
5396
5446
  const e = Object.keys(t);
@@ -5404,11 +5454,11 @@ const Ce = [
5404
5454
  * @param data list of texts by location/ список текстов по местоположению
5405
5455
  */
5406
5456
  static addSyncByLocation(t) {
5407
- d(
5457
+ g(
5408
5458
  t,
5409
- (e, i) => d(e, (r, a) => {
5410
- const o = `${i}-${a}`;
5411
- o in this.data || (this.data[o] = r);
5459
+ (e, i) => g(e, (r, o) => {
5460
+ const a = `${i}-${o}`;
5461
+ a in this.data || (this.data[a] = r);
5412
5462
  })
5413
5463
  );
5414
5464
  }
@@ -5485,7 +5535,7 @@ const Ce = [
5485
5535
  */
5486
5536
  static getNamesNone(t) {
5487
5537
  const e = [];
5488
- return Y(t).forEach((i) => {
5538
+ return H(t).forEach((i) => {
5489
5539
  i !== "__TRANSLATE_START__" && i !== "__TRANSLATE_END__" && !(this.getName(i) in this.data) && e.push(i);
5490
5540
  }), e;
5491
5541
  }
@@ -5495,7 +5545,7 @@ const Ce = [
5495
5545
  * Получение списка переводов с сервера.
5496
5546
  */
5497
5547
  static async getResponse() {
5498
- const t = await K.get({
5548
+ const t = await W.get({
5499
5549
  api: !1,
5500
5550
  path: this.url,
5501
5551
  request: {
@@ -5514,7 +5564,7 @@ const Ce = [
5514
5564
  * @param replacement values for replacement/ значения для замены
5515
5565
  */
5516
5566
  static replacement(t, e) {
5517
- return e ? De(t, e) : t;
5567
+ return e ? Ce(t, e) : t;
5518
5568
  }
5519
5569
  /**
5520
5570
  * Adding translation data from the server.
@@ -5542,11 +5592,11 @@ function Ye(s) {
5542
5592
  }
5543
5593
  function qe(s) {
5544
5594
  var t;
5545
- if (l())
5595
+ if (f())
5546
5596
  return (t = document.querySelector(s)) != null ? t : void 0;
5547
5597
  }
5548
5598
  function Je(s) {
5549
- if (l())
5599
+ if (f())
5550
5600
  return document.querySelectorAll(s);
5551
5601
  }
5552
5602
  function Me(s) {
@@ -5556,11 +5606,11 @@ function Ee(s, t, e) {
5556
5606
  const i = () => {
5557
5607
  s(), t != null && t() ? Ee(s, t, e) : e == null || e();
5558
5608
  };
5559
- l() ? requestAnimationFrame(i) : i();
5609
+ f() ? requestAnimationFrame(i) : i();
5560
5610
  }
5561
5611
  function Qe(s) {
5562
5612
  var i;
5563
- const t = {}, e = E(s);
5613
+ const t = {}, e = A(s);
5564
5614
  if (e)
5565
5615
  for (const r of e.attributes)
5566
5616
  t[r.name] = (i = (r == null ? void 0 : r.value) || (r == null ? void 0 : r.textContent)) != null ? i : void 0;
@@ -5575,8 +5625,8 @@ function _e(s = "datetime") {
5575
5625
  }
5576
5626
  let Ft = Q(1e5, 9e5);
5577
5627
  function Oe(s, t) {
5578
- const e = E(s);
5579
- return e ? (m(e.id) || e.setAttribute("id", `id-${Ft++}`), t ? `#${e.id}${t}`.trim() : e.id) : `id-${Ft++}`;
5628
+ const e = A(s);
5629
+ return e ? (y(e.id) || e.setAttribute("id", `id-${Ft++}`), t ? `#${e.id}${t}`.trim() : e.id) : `id-${Ft++}`;
5580
5630
  }
5581
5631
  function Ae(s) {
5582
5632
  return U(s) ? G(
@@ -5590,7 +5640,7 @@ function Te(s) {
5590
5640
  return (i = (t = s == null ? void 0 : s.key) != null ? t : s == null ? void 0 : s.code) != null ? i : (e = s == null ? void 0 : s.keyCode) == null ? void 0 : e.toString();
5591
5641
  }
5592
5642
  function Zt(s) {
5593
- return d(s, (t) => t.length);
5643
+ return g(s, (t) => t.length);
5594
5644
  }
5595
5645
  function Ge(s) {
5596
5646
  return Math.max(...Zt(s));
@@ -5620,27 +5670,27 @@ function ss(s, t) {
5620
5670
  }
5621
5671
  function is(s, t = void 0) {
5622
5672
  const e = {};
5623
- return d(s, (i, r) => {
5673
+ return g(s, (i, r) => {
5624
5674
  i !== t && (e[r] = i);
5625
5675
  }), e;
5626
5676
  }
5627
5677
  function rs(s) {
5628
- return A(s) ? s : {};
5678
+ return E(s) ? s : {};
5629
5679
  }
5630
5680
  function Fe(s, t) {
5631
5681
  return Ne(s, t).join("");
5632
5682
  }
5633
5683
  function ns(s, t, e = "#", i = 2, r = 12) {
5634
- const a = Q(s, t), o = [];
5635
- for (let u = 0; u < a; u++)
5636
- o.push(Fe(e, Q(i, r)));
5637
- return o.join(" ");
5684
+ const o = Q(s, t), a = [];
5685
+ for (let u = 0; u < o; u++)
5686
+ a.push(Fe(e, Q(i, r)));
5687
+ return a.join(" ");
5638
5688
  }
5639
- function as(s, t) {
5689
+ function os(s, t) {
5640
5690
  const e = s != null ? s : 0;
5641
5691
  return t > e ? 100 / (t - e) : 0;
5642
5692
  }
5643
- function os(s, t) {
5693
+ function as(s, t) {
5644
5694
  const e = s != null ? s : 0;
5645
5695
  return t > e ? (t - e) / 100 : 0;
5646
5696
  }
@@ -5648,15 +5698,15 @@ const xt = 0;
5648
5698
  function cs(s, t, e) {
5649
5699
  const i = t == null ? void 0 : t.closest(s);
5650
5700
  if (t && i && i.scrollHeight !== i.offsetHeight) {
5651
- const r = i.getBoundingClientRect(), a = t.getBoundingClientRect();
5701
+ const r = i.getBoundingClientRect(), o = t.getBoundingClientRect();
5652
5702
  if (e) {
5653
- const o = e.getBoundingClientRect();
5654
- i.scrollTop = t.offsetTop - (o.top - r.top) - (o.height / 2 - a.height / 2), i.scrollTop + i.offsetHeight < t.offsetTop + t.offsetHeight && (i.scrollTop = t.offsetTop + t.offsetHeight - i.offsetHeight);
5655
- } else i.scrollTop > t.offsetTop ? i.scrollTop = a.top - r.top - xt : i.scrollTop + i.offsetHeight < t.offsetTop + t.offsetHeight && (i.scrollTop = a.top - r.top + a.height - r.height + xt);
5703
+ const a = e.getBoundingClientRect();
5704
+ i.scrollTop = t.offsetTop - (a.top - r.top) - (a.height / 2 - o.height / 2), i.scrollTop + i.offsetHeight < t.offsetTop + t.offsetHeight && (i.scrollTop = t.offsetTop + t.offsetHeight - i.offsetHeight);
5705
+ } else i.scrollTop > t.offsetTop ? i.scrollTop = o.top - r.top - xt : i.scrollTop + i.offsetHeight < t.offsetTop + t.offsetHeight && (i.scrollTop = o.top - r.top + o.height - r.height + xt);
5656
5706
  }
5657
5707
  }
5658
5708
  function us(s, t, e = 0) {
5659
- if (!l())
5709
+ if (!f())
5660
5710
  return;
5661
5711
  const i = (t == null ? void 0 : t.behavior) || "smooth";
5662
5712
  if ("scrollIntoView" in s && !e) {
@@ -5676,7 +5726,7 @@ function us(s, t, e = 0) {
5676
5726
  }
5677
5727
  }
5678
5728
  function hs(s, t, e = "smooth") {
5679
- if (!l() || !s || !t)
5729
+ if (!f() || !s || !t)
5680
5730
  return;
5681
5731
  const i = s.getBoundingClientRect(), r = t.getBoundingClientRect();
5682
5732
  s.scrollBy({
@@ -5689,20 +5739,24 @@ function ls(s, t) {
5689
5739
  return s.indexOf(t) !== -1;
5690
5740
  }
5691
5741
  async function gs() {
5692
- if (l()) {
5693
- const s = await ut.get();
5742
+ if (f()) {
5743
+ const s = await ht.get();
5694
5744
  document.body.style.setProperty("--sys-scrollbar-offset", `${s}px`);
5695
5745
  }
5696
5746
  }
5697
- function ds(s, t) {
5747
+ function fs(s, t) {
5698
5748
  const e = {};
5699
- return f(s) && f(t) && d(s, (i, r) => {
5749
+ return m(s) && m(t) && g(s, (i, r) => {
5700
5750
  r in t && (e[r] = i);
5701
5751
  }), e;
5702
5752
  }
5703
- function fs(s, t) {
5753
+ const ds = (s) => {
5754
+ var t;
5755
+ return et(s) ? !0 : !!(s && E(s) && ((s == null ? void 0 : s.status) === "success" || s != null && s.success || (t = s == null ? void 0 : s.statusObject) != null && t.status && String(s.statusObject.status).match(/^2/) || !("status" in s) && !("success" in s) && !("statusObject" in s) && String(W.getStatus().getStatus()).match(/^2/)));
5756
+ };
5757
+ function ms(s, t) {
5704
5758
  let e = Object.keys(s).length !== Object.keys(t).length;
5705
- return e || d(s, (i, r) => {
5759
+ return e || g(s, (i, r) => {
5706
5760
  i !== (t == null ? void 0 : t[r]) && (e = !0);
5707
5761
  }), e;
5708
5762
  }
@@ -5712,8 +5766,8 @@ const xe = (s) => {
5712
5766
  return !!(t === "input" || t === "textarea" || t === "select" || s.isContentEditable || s.getAttribute("contenteditable") === "true");
5713
5767
  }
5714
5768
  return !1;
5715
- }, ms = (s, t) => s.code === "Space" || s.code === "Enter" || s.key === " " || s.key === "Spacebar" || s.key === "Enter" || s.keyCode === 13 || s.keyCode === 32 ? t !== void 0 ? !t : !xe(s.target) : !1;
5716
- function ys(s) {
5769
+ }, ys = (s, t) => s.code === "Space" || s.code === "Enter" || s.key === " " || s.key === "Spacebar" || s.key === "Enter" || s.keyCode === 13 || s.keyCode === 32 ? t !== void 0 ? !t : !xe(s.target) : !1;
5770
+ function $s(s) {
5717
5771
  switch (typeof s) {
5718
5772
  case "number":
5719
5773
  return !0;
@@ -5723,14 +5777,14 @@ function ys(s) {
5723
5777
  return !1;
5724
5778
  }
5725
5779
  }
5726
- function $s(s, t) {
5780
+ function ps(s, t) {
5727
5781
  const e = Math.floor(t);
5728
5782
  return s >= e && s < e + 1;
5729
5783
  }
5730
- function ps(s, t) {
5731
- return Array.isArray(s) ? s.every((e) => ot(e, t)) : ot(s, t);
5732
- }
5733
5784
  function bs(s, t) {
5785
+ return Array.isArray(s) ? s.every((e) => ct(e, t)) : ct(s, t);
5786
+ }
5787
+ function ws(s, t) {
5734
5788
  if (s.startsWith(t))
5735
5789
  return s.slice(t.length).trim();
5736
5790
  let e = 0;
@@ -5738,7 +5792,7 @@ function bs(s, t) {
5738
5792
  e++;
5739
5793
  return s.slice(e).trim();
5740
5794
  }
5741
- const ws = (s, t, e) => {
5795
+ const vs = (s, t, e) => {
5742
5796
  var i, r;
5743
5797
  return (r = (i = s == null ? void 0 : s.replace(new RegExp(`<${t}`, "ig"), `<${e}`)) == null ? void 0 : i.replace(new RegExp(`</${t}`, "ig"), `</${e}`)) == null ? void 0 : r.trim();
5744
5798
  };
@@ -5746,22 +5800,22 @@ function Re(s) {
5746
5800
  return [...new Set(s)];
5747
5801
  }
5748
5802
  function J(s, t, e = !0) {
5749
- const i = V(s);
5750
- return f(s) && f(t) && d(
5803
+ const i = Y(s);
5804
+ return m(s) && m(t) && g(
5751
5805
  t,
5752
- (r, a) => {
5753
- const o = s == null ? void 0 : s[a];
5754
- f(o) && f(r) ? e && Array.isArray(o) && Array.isArray(r) ? i[a] = V(Re([...o, ...r])) : i[a] = J(
5755
- Array.isArray(o) ? { ...o } : o,
5806
+ (r, o) => {
5807
+ const a = s == null ? void 0 : s[o];
5808
+ m(a) && m(r) ? e && Array.isArray(a) && Array.isArray(r) ? i[o] = Y(Re([...a, ...r])) : i[o] = J(
5809
+ Array.isArray(a) ? { ...a } : a,
5756
5810
  r,
5757
5811
  e
5758
- ) : i[a] = f(r) ? V(r) : r;
5812
+ ) : i[o] = m(r) ? Y(r) : r;
5759
5813
  }
5760
5814
  ), i;
5761
5815
  }
5762
- function vs(s, t) {
5816
+ function Ss(s, t) {
5763
5817
  let e = s;
5764
- return d(t, (i, r) => {
5818
+ return g(t, (i, r) => {
5765
5819
  e = e.replace(zt(`[${r}]`), B(i));
5766
5820
  }), e;
5767
5821
  }
@@ -5775,16 +5829,16 @@ function Pe(s, t = "auto") {
5775
5829
  return !1;
5776
5830
  }
5777
5831
  }
5778
- function Ss(s, t, e = "auto", i) {
5779
- var a;
5832
+ function Ls(s, t, e = "auto", i) {
5833
+ var o;
5780
5834
  const r = Ae(s);
5781
5835
  if (r && (r.naturalWidth > t && (e === "auto" || e === "width") || r.naturalHeight > t && (e === "auto" || e === "height"))) {
5782
- const o = Pe(r, e), u = (a = document.createElement("canvas")) == null ? void 0 : a.getContext("2d");
5836
+ const a = Pe(r, e), u = (o = document.createElement("canvas")) == null ? void 0 : o.getContext("2d");
5783
5837
  if (u)
5784
- return u.canvas.width = o ? t : r.naturalWidth / r.naturalHeight * t, u.canvas.height = o ? r.naturalHeight / r.naturalWidth * t : t, u.drawImage(r, 0, 0, u.canvas.width, u.canvas.height), u.canvas.toDataURL(i);
5838
+ 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(i);
5785
5839
  }
5786
5840
  }
5787
- function Ls(s) {
5841
+ function Ds(s) {
5788
5842
  const t = k(s);
5789
5843
  if (t > 0) {
5790
5844
  const e = String(Math.floor(t / 60)).padStart(2, "0"), i = String(t % 60).padStart(2, "0");
@@ -5796,55 +5850,55 @@ function Cs(s, t, {
5796
5850
  multiple: e = !1,
5797
5851
  maxlength: i = 0,
5798
5852
  alwaysChange: r = !0,
5799
- notEmpty: a = !1
5853
+ notEmpty: o = !1
5800
5854
  }) {
5801
5855
  if (e) {
5802
- if (ht(s)) {
5803
- const o = s.indexOf(t), u = [...s];
5804
- return o !== -1 ? (!a || u.length > 1) && u.splice(o, 1) : (!i || s.length < i) && u.push(t), u;
5856
+ if (et(s)) {
5857
+ const a = s.indexOf(t), u = [...s];
5858
+ return a !== -1 ? (!o || u.length > 1) && u.splice(a, 1) : (!i || s.length < i) && u.push(t), u;
5805
5859
  }
5806
5860
  return s === t ? [] : s ? [s, t] : [t];
5807
5861
  }
5808
5862
  return r || s !== t ? t : s;
5809
5863
  }
5810
- function Ds(s, t, e) {
5811
- if (f(s) && f(t)) {
5864
+ function ks(s, t, e) {
5865
+ if (m(s) && m(t)) {
5812
5866
  if (e) {
5813
5867
  let i = {}, r = !1;
5814
- return d(s, (a, o) => {
5815
- !r && (e === o || e === a) ? (r = !0, i = J(i, t)) : r ? i = J(i, { [o]: a }) : i[o] = f(a) ? V(a) : a;
5868
+ return g(s, (o, a) => {
5869
+ !r && (e === a || e === o) ? (r = !0, i = J(i, t)) : r ? i = J(i, { [a]: o }) : i[a] = m(o) ? Y(o) : o;
5816
5870
  }), r ? i : J(s, t);
5817
5871
  }
5818
- if (f(t))
5872
+ if (m(t))
5819
5873
  return J(s, t);
5820
5874
  }
5821
- return V(s);
5875
+ return Y(s);
5822
5876
  }
5823
- function ks(s) {
5877
+ function Ns(s) {
5824
5878
  return Ht(s).replace(/^([a-z])/, (t) => `${t.toUpperCase()}`);
5825
5879
  }
5826
- function Ns(s) {
5880
+ function Es(s) {
5827
5881
  return s.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());
5828
5882
  }
5829
- function Es(s, t, e, i) {
5830
- const r = k(s), a = k(t);
5831
- return t && a < r ? `${Rt(a, e, i)}+` : Rt(r, e, i);
5883
+ function As(s, t, e, i) {
5884
+ const r = k(s), o = k(t);
5885
+ return t && o < r ? `${Rt(o, e, i)}+` : Rt(r, e, i);
5832
5886
  }
5833
5887
  const Rt = (s, t, e) => t ? new N(e).number(s) : s;
5834
- function We(s, t) {
5888
+ function je(s, t) {
5835
5889
  return 1 / s * t;
5836
5890
  }
5837
- function As(s, t) {
5838
- return We(s, t) * 100;
5891
+ function Is(s, t) {
5892
+ return je(s, t) * 100;
5839
5893
  }
5840
- function Is(s) {
5894
+ function Bs(s) {
5841
5895
  let t = "";
5842
5896
  for (const e of s)
5843
5897
  t += String.fromCharCode(e);
5844
- return l() ? window.btoa(t) : globalThis && globalThis.Buffer ? globalThis == null ? void 0 : globalThis.Buffer.from(s).toString("base64") : "";
5898
+ return f() ? window.btoa(t) : globalThis && globalThis.Buffer ? globalThis == null ? void 0 : globalThis.Buffer.from(s).toString("base64") : "";
5845
5899
  }
5846
- async function Bs(s) {
5847
- if (l())
5900
+ async function Fs(s) {
5901
+ if (f())
5848
5902
  try {
5849
5903
  await navigator.clipboard.writeText(s);
5850
5904
  } catch (t) {
@@ -5852,10 +5906,10 @@ async function Bs(s) {
5852
5906
  }
5853
5907
  }
5854
5908
  export {
5855
- K as Api,
5909
+ W as Api,
5856
5910
  Qt as ApiDefault,
5857
5911
  Mt as ApiHeaders,
5858
- C as ApiMethodItem,
5912
+ D as ApiMethodItem,
5859
5913
  Ot as ApiPreparation,
5860
5914
  _t as ApiResponse,
5861
5915
  vt as ApiStatus,
@@ -5863,16 +5917,16 @@ export {
5863
5917
  te as Cache,
5864
5918
  Gt as CacheItem,
5865
5919
  Lt as CacheStatic,
5866
- Ct as Cookie,
5867
- jt as CookieBlock,
5868
- et as DataStorage,
5920
+ Dt as Cookie,
5921
+ Ut as CookieBlock,
5922
+ st as DataStorage,
5869
5923
  gt as Datetime,
5870
5924
  bt as EventItem,
5871
5925
  ze as Formatters,
5872
5926
  F as FormattersType,
5873
5927
  n as GEO_FLAG_ICON_NAME,
5874
5928
  b as Geo,
5875
- Dt as GeoFlag,
5929
+ Ct as GeoFlag,
5876
5930
  N as GeoIntl,
5877
5931
  kt as GeoPhone,
5878
5932
  Ze as Global,
@@ -5880,20 +5934,20 @@ export {
5880
5934
  It as Icons,
5881
5935
  R as Loading,
5882
5936
  Ve as Meta,
5883
- dt as MetaManager,
5884
- fe as MetaOg,
5937
+ ft as MetaManager,
5938
+ de as MetaOg,
5885
5939
  le as MetaOpenGraphAge,
5886
5940
  ue as MetaOpenGraphAvailability,
5887
5941
  he as MetaOpenGraphCondition,
5888
5942
  ge as MetaOpenGraphGender,
5889
5943
  $ as MetaOpenGraphTag,
5890
5944
  ce as MetaOpenGraphType,
5891
- oe as MetaRobots,
5945
+ ae as MetaRobots,
5892
5946
  L as MetaTag,
5893
5947
  me as MetaTwitter,
5894
- de as MetaTwitterCard,
5948
+ fe as MetaTwitterCard,
5895
5949
  p as MetaTwitterTag,
5896
- ut as ScrollbarWidth,
5950
+ ht as ScrollbarWidth,
5897
5951
  Ke as SearchList,
5898
5952
  pe as SearchListData,
5899
5953
  be as SearchListItem,
@@ -5903,26 +5957,26 @@ export {
5903
5957
  Bt as Translate,
5904
5958
  $e as addTagHighlightMatch,
5905
5959
  T as anyToString,
5906
- De as applyTemplate,
5960
+ Ce as applyTemplate,
5907
5961
  Ne as arrFill,
5908
5962
  Ye as blobToBase64,
5909
- V as copyObject,
5910
- D as copyObjectLite,
5963
+ Y as copyObject,
5964
+ C as copyObjectLite,
5911
5965
  G as createElement,
5912
5966
  qe as domQuerySelector,
5913
5967
  Je as domQuerySelectorAll,
5914
- ae as encodeAttribute,
5915
- ft as escapeExp,
5968
+ oe as encodeAttribute,
5969
+ dt as escapeExp,
5916
5970
  Me as eventStopPropagation,
5917
5971
  B as executeFunction,
5918
5972
  Xt as executePromise,
5919
- d as forEach,
5973
+ g as forEach,
5920
5974
  Ee as frame,
5921
5975
  Qe as getAttributes,
5922
5976
  Xe as getClipboardData,
5923
5977
  se as getColumn,
5924
5978
  _e as getCurrentDate,
5925
- E as getElement,
5979
+ A as getElement,
5926
5980
  Oe as getElementId,
5927
5981
  Ae as getElementImage,
5928
5982
  re as getElementItem,
@@ -5944,56 +5998,57 @@ export {
5944
5998
  Pt as getRequestString,
5945
5999
  ve as getSearchExp,
5946
6000
  ye as getSeparatingSearchExp,
5947
- as as getStepPercent,
5948
- os as getStepValue,
6001
+ os as getStepPercent,
6002
+ as as getStepValue,
5949
6003
  cs as goScroll,
5950
6004
  us as goScrollSmooth,
5951
6005
  hs as goScrollTo,
5952
6006
  ls as inArray,
5953
6007
  gs as initScrollbarOffset,
5954
- ds as intersectKey,
5955
- ht as isArray,
5956
- fs as isDifferent,
5957
- ct as isDomData,
5958
- l as isDomRuntime,
5959
- ms as isEnter,
5960
- m as isFilled,
5961
- ys as isFloat,
6008
+ fs as intersectKey,
6009
+ ds as isApiSuccess,
6010
+ et as isArray,
6011
+ ms as isDifferent,
6012
+ ut as isDomData,
6013
+ f as isDomRuntime,
6014
+ ys as isEnter,
6015
+ y as isFilled,
6016
+ $s as isFloat,
5962
6017
  lt as isFunction,
5963
6018
  Jt as isInDom,
5964
6019
  xe as isInput,
5965
- $s as isIntegerBetween,
6020
+ ps as isIntegerBetween,
5966
6021
  X as isNull,
5967
6022
  yt as isNumber,
5968
- f as isObject,
5969
- A as isObjectNotArray,
5970
- ot as isSelected,
5971
- ps as isSelectedByList,
6023
+ m as isObject,
6024
+ E as isObjectNotArray,
6025
+ ct as isSelected,
6026
+ bs as isSelectedByList,
5972
6027
  U as isString,
5973
- Wt as isWindow,
6028
+ jt as isWindow,
5974
6029
  Q as random,
5975
- bs as removeCommonPrefix,
5976
- ws as replaceComponentName,
6030
+ ws as removeCommonPrefix,
6031
+ vs as replaceComponentName,
5977
6032
  J as replaceRecursive,
5978
- vs as replaceTemplate,
5979
- Ss as resizeImageByMax,
5980
- Ls as secondToTime,
6033
+ Ss as replaceTemplate,
6034
+ Ls as resizeImageByMax,
6035
+ Ds as secondToTime,
5981
6036
  ne as setElementItem,
5982
6037
  Cs as setValues,
5983
- Ds as splice,
6038
+ ks as splice,
5984
6039
  Fe as strFill,
5985
6040
  ie as strSplit,
5986
- Y as toArray,
6041
+ H as toArray,
5987
6042
  Ht as toCamelCase,
5988
- ks as toCamelCaseFirst,
6043
+ Ns as toCamelCaseFirst,
5989
6044
  P as toDate,
5990
- Ns as toKebabCase,
6045
+ Es as toKebabCase,
5991
6046
  k as toNumber,
5992
- Es as toNumberByMax,
5993
- We as toPercent,
5994
- As as toPercentBy100,
5995
- Ut as transformation,
5996
- Is as uint8ArrayToBase64,
6047
+ As as toNumberByMax,
6048
+ je as toPercent,
6049
+ Is as toPercentBy100,
6050
+ Wt as transformation,
6051
+ Bs as uint8ArrayToBase64,
5997
6052
  Re as uniqueArray,
5998
- Bs as writeClipboardData
6053
+ Fs as writeClipboardData
5999
6054
  };