@dxtmisha/functional-basic 0.10.0 → 0.10.1

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.
Files changed (2) hide show
  1. package/dist/library.js +240 -232
  2. package/package.json +1 -1
package/dist/library.js CHANGED
@@ -5,14 +5,14 @@ import { geo as Yt } from "@dxtmisha/media";
5
5
  function D(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
11
  function d(s, t, e) {
12
- if (f(s)) {
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 [];
@@ -29,7 +29,7 @@ function ht(s) {
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;
@@ -55,9 +55,9 @@ function m(s, t) {
55
55
  return !1;
56
56
  }
57
57
  function A(s) {
58
- return f(s) && !Array.isArray(s);
58
+ return m(s) && !Array.isArray(s);
59
59
  }
60
- function U(s) {
60
+ function j(s) {
61
61
  return typeof s == "string";
62
62
  }
63
63
  function V(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 at(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) {
@@ -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) => at(t, [
309
309
  `${e.language}-${e.country}`,
310
310
  `${e.country}-${e.language}`
311
311
  ])
@@ -449,7 +449,7 @@ function Wt(s) {
449
449
  function E(s) {
450
450
  var t;
451
451
  if (l())
452
- return Wt(s) ? document.body : U(s) ? (t = document.querySelector(s)) != null ? t : void 0 : s;
452
+ return Wt(s) ? document.body : j(s) ? (t = document.querySelector(s)) != null ? t : void 0 : s;
453
453
  }
454
454
  function pt(s) {
455
455
  return Wt(s) ? s : E(s);
@@ -473,7 +473,7 @@ class bt {
473
473
  * @param detail an event-dependent value associated with the event/ зависимое от события
474
474
  * значение, связанное с событием
475
475
  */
476
- constructor(t, e = ["click"], i, r, a) {
476
+ constructor(t, e = ["click"], i, r, o) {
477
477
  /**
478
478
  * Element.
479
479
  *
@@ -503,7 +503,7 @@ class bt {
503
503
  */
504
504
  c(this, "listenerRecent", (t) => {
505
505
  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();
506
+ 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
507
  });
508
508
  /**
509
509
  * Event states.
@@ -512,7 +512,7 @@ class bt {
512
512
  */
513
513
  c(this, "activity", !1);
514
514
  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);
515
+ this.listener = i, this.options = r, this.detail = o, this.element = pt(t), this.elementControl = E(t), this.type = Y(e);
516
516
  }
517
517
  /**
518
518
  * Checks whether event listening is currently enabled.
@@ -791,7 +791,7 @@ class Mt {
791
791
  this.headers,
792
792
  t
793
793
  );
794
- return m(e) && (i["Content-Type"] = e), i;
794
+ return y(e) && (i["Content-Type"] = e), i;
795
795
  }
796
796
  }
797
797
  /**
@@ -1030,7 +1030,7 @@ class _t {
1030
1030
  * @param devMode is it developer mode/ является ли режим разработчика
1031
1031
  */
1032
1032
  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);
1033
+ 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
1034
  }
1035
1035
  /**
1036
1036
  * Returns a list of data about the emulator.
@@ -1067,13 +1067,13 @@ class _t {
1067
1067
  path: e = "",
1068
1068
  method: i = C.get,
1069
1069
  global: r = i === C.get,
1070
- devMode: a = !1
1070
+ devMode: o = !1
1071
1071
  } = t;
1072
- if (r || this.isDevMode(a)) {
1073
- const o = this.requestDefault.request(t.request), u = this.get(e, i, o, a);
1072
+ if (r || this.isDevMode(o)) {
1073
+ const a = this.requestDefault.request(t.request), u = this.get(e, i, a, o);
1074
1074
  if (u) {
1075
- const h = await this.fetch(u, o);
1076
- return this.isDevMode(a) && console.warn("Response data:", e, o, h), h;
1075
+ const h = await this.fetch(u, a);
1076
+ return this.isDevMode(o) && console.warn("Response data:", e, a, h), h;
1077
1077
  }
1078
1078
  }
1079
1079
  }
@@ -1124,8 +1124,8 @@ class _t {
1124
1124
  */
1125
1125
  isResponse(t, e) {
1126
1126
  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"),
1127
+ return e === i || i === "*any" || y(e) && y(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, [o, a]) => r && (a === (e == null ? void 0 : e[o]) || a === "*any"),
1129
1129
  !0
1130
1130
  );
1131
1131
  }
@@ -1286,8 +1286,8 @@ const v = class v {
1286
1286
  static getBody(t = {}, e = C.get) {
1287
1287
  if (t instanceof FormData)
1288
1288
  return t;
1289
- if (e !== C.get && m(t))
1290
- return U(t) ? t : JSON.stringify(t);
1289
+ if (e !== C.get && y(t))
1290
+ return j(t) ? t : JSON.stringify(t);
1291
1291
  }
1292
1292
  /**
1293
1293
  * Getting data for the body of the get method.
@@ -1299,9 +1299,9 @@ const v = class v {
1299
1299
  */
1300
1300
  static getBodyForGet(t, e = "", i = C.get) {
1301
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}`;
1302
+ const r = e.match(/\?/) ? "&" : "?", o = typeof t == "object" ? Pt(t) : t;
1303
+ if (y(o))
1304
+ return `${r}${o}`;
1305
1305
  }
1306
1306
  return "";
1307
1307
  }
@@ -1355,7 +1355,7 @@ const v = class v {
1355
1355
  * @param pathRequest query string or list of parameters/ строка запроса или список параметров
1356
1356
  */
1357
1357
  static async request(t) {
1358
- return U(t) ? await this.fetch({
1358
+ return j(t) ? await this.fetch({
1359
1359
  path: t
1360
1360
  }) : await this.fetch(t);
1361
1361
  }
@@ -1414,20 +1414,20 @@ const v = class v {
1414
1414
  toData: e = !0,
1415
1415
  hideError: i = !1,
1416
1416
  queryReturn: r = void 0,
1417
- globalPreparation: a = !0,
1418
- globalEnd: o = !0
1417
+ globalPreparation: o = !0,
1418
+ globalEnd: a = !0
1419
1419
  } = t, u = await this.response.emulator(t);
1420
1420
  if (u)
1421
1421
  return u;
1422
1422
  const h = new vt();
1423
- let y;
1423
+ let f;
1424
1424
  R.show();
1425
1425
  try {
1426
- await this.preparation.make(a, t);
1427
- const g = await this.makeQuery(t), S = await this.preparation.makeEnd(o, g, t);
1426
+ await this.preparation.make(o, t);
1427
+ const g = await this.makeQuery(t), S = await this.preparation.makeEnd(a, g, t);
1428
1428
  if (h.setStatus(g.status, g.statusText), this.status.setStatus(g.status, g.statusText), S != null && S.reset)
1429
1429
  return R.hide(), await this.fetch(t);
1430
- y = await this.readData(
1430
+ f = await this.readData(
1431
1431
  g,
1432
1432
  r,
1433
1433
  S
@@ -1435,8 +1435,8 @@ const v = class v {
1435
1435
  } catch (g) {
1436
1436
  throw i || console.error("Api: ", g), h.setError(String(g)), this.status.setError(String(g)), R.hide(), g;
1437
1437
  }
1438
- return R.hide(), h.setLastResponse(y), this.status.setLastResponse(y), this.makeStatus(
1439
- this.makeData(y, e),
1438
+ return R.hide(), h.setLastResponse(f), this.status.setLastResponse(f), this.makeStatus(
1439
+ this.makeData(f, e),
1440
1440
  h
1441
1441
  );
1442
1442
  }
@@ -1462,15 +1462,15 @@ const v = class v {
1462
1462
  const e = this.requestDefault.request(t.request), {
1463
1463
  api: i = !0,
1464
1464
  path: r = "",
1465
- pathFull: a = void 0,
1466
- method: o = C.get,
1465
+ pathFull: o = void 0,
1466
+ method: a = C.get,
1467
1467
  headers: u = {},
1468
1468
  type: h = "application/json;charset=UTF-8",
1469
- init: y = {},
1469
+ init: f = {},
1470
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)
1471
+ } = t, S = o != null ? o : this.getUrl(r, i), st = `${S}${this.getBodyForGet(e, S, a)}`, _ = this.headers.get(u, h), q = D(f, {
1472
+ method: a,
1473
+ body: this.getBody(e, a)
1474
1474
  });
1475
1475
  return _ && (q.headers = _), g && (q.signal = g.signal), await fetch(st, q);
1476
1476
  }
@@ -1695,7 +1695,7 @@ const tt = class tt {
1695
1695
  };
1696
1696
  c(tt, "cache"), tt.cache = new te();
1697
1697
  let Lt = tt;
1698
- function Ut(s, t = !1) {
1698
+ function jt(s, t = !1) {
1699
1699
  if (typeof s == "string") {
1700
1700
  const e = s.trim();
1701
1701
  switch (e) {
@@ -1727,7 +1727,7 @@ function Ut(s, t = !1) {
1727
1727
  return s;
1728
1728
  }
1729
1729
  const ee = "cookie-block";
1730
- class jt {
1730
+ class Ut {
1731
1731
  /**
1732
1732
  * Obtaining status.
1733
1733
  *
@@ -1747,7 +1747,7 @@ class jt {
1747
1747
  this.storage.set(t);
1748
1748
  }
1749
1749
  }
1750
- c(jt, "storage", new et(ee));
1750
+ c(Ut, "storage", new et(ee));
1751
1751
  const O = {}, mt = class mt {
1752
1752
  constructor(t) {
1753
1753
  c(this, "value");
@@ -1799,14 +1799,14 @@ const O = {}, mt = class mt {
1799
1799
  * Обновление данных cookie.
1800
1800
  */
1801
1801
  update() {
1802
- var t, e, i, r, a;
1803
- if (l() && !ct() && !jt.get()) {
1804
- const o = String((t = this.value) != null ? t : "");
1802
+ var t, e, i, r, o;
1803
+ if (l() && !ct() && !Ut.get()) {
1804
+ const a = String((t = this.value) != null ? t : "");
1805
1805
  document.cookie = [
1806
- `${encodeURIComponent(this.name)}=${encodeURIComponent(o)}`,
1807
- `max-age=${o === "" ? "-1" : this.getAge()}`,
1806
+ `${encodeURIComponent(this.name)}=${encodeURIComponent(a)}`,
1807
+ `max-age=${a === "" ? "-1" : this.getAge()}`,
1808
1808
  `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 : []
1809
+ ...(o = (r = this.options) == null ? void 0 : r.arguments) != null ? o : []
1810
1810
  ].join("; ");
1811
1811
  }
1812
1812
  }
@@ -1818,7 +1818,7 @@ const O = {}, mt = class mt {
1818
1818
  static updateData() {
1819
1819
  for (const t of document.cookie.split(";")) {
1820
1820
  const [e, i] = t.trim().split("=");
1821
- e && m(i) && (O[e] = Ut(i));
1821
+ e && y(i) && (O[e] = jt(i));
1822
1822
  }
1823
1823
  }
1824
1824
  };
@@ -1826,7 +1826,7 @@ l() && !ct() && mt.updateData();
1826
1826
  let Ct = mt;
1827
1827
  const rt = {};
1828
1828
  function P(s) {
1829
- var r, a, o, u, h, y, g, S;
1829
+ var r, o, a, u, h, f, g, S;
1830
1830
  if (s instanceof Date)
1831
1831
  return s;
1832
1832
  if (X(s))
@@ -1835,7 +1835,7 @@ function P(s) {
1835
1835
  return new Date(s);
1836
1836
  let t = s, e = b.getTimezoneFormat().trim();
1837
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");
1838
+ const i = (S = (g = (f = (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 ? f : /^\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");
1839
1839
  return /* @__PURE__ */ new Date(`${i.trim()}${e}`);
1840
1840
  }
1841
1841
  function se(s, t) {
@@ -1890,7 +1890,7 @@ class N {
1890
1890
  * объект с некоторыми или всеми из следующих свойств
1891
1891
  */
1892
1892
  display(t, e) {
1893
- var a;
1893
+ var o;
1894
1894
  let i = { type: "language" }, r;
1895
1895
  e && (typeof e == "string" ? i.type = e : i = {
1896
1896
  ...i,
@@ -1898,10 +1898,10 @@ class N {
1898
1898
  });
1899
1899
  try {
1900
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);
1901
+ } catch (a) {
1902
+ console.error("display: ", a);
1903
1903
  }
1904
- return (a = r != null ? r : t) != null ? a : "";
1904
+ return (o = r != null ? r : t) != null ? o : "";
1905
1905
  }
1906
1906
  /**
1907
1907
  * Get display names of language.
@@ -1942,23 +1942,23 @@ class N {
1942
1942
  */
1943
1943
  fullName(t, e, i, r) {
1944
1944
  var u, h;
1945
- const a = (h = (u = this.geo) == null ? void 0 : u.nameFormat) != null ? h : "fl";
1946
- let o;
1947
- switch (a) {
1945
+ const o = (h = (u = this.geo) == null ? void 0 : u.nameFormat) != null ? h : "fl";
1946
+ let a;
1947
+ switch (o) {
1948
1948
  case "fsl":
1949
- o = `${e}${i ? ` ${i}` : ""} ${t}`;
1949
+ a = `${e}${i ? ` ${i}` : ""} ${t}`;
1950
1950
  break;
1951
1951
  case "lf":
1952
- o = `${t} ${e}`;
1952
+ a = `${t} ${e}`;
1953
1953
  break;
1954
1954
  case "lsf":
1955
- o = `${t}${i ? ` ${i}` : ""} ${e}`;
1955
+ a = `${t}${i ? ` ${i}` : ""} ${e}`;
1956
1956
  break;
1957
1957
  default:
1958
- o = `${e} ${t}`;
1958
+ a = `${e} ${t}`;
1959
1959
  break;
1960
1960
  }
1961
- return r ? o.replace(/ (.)[^ ]+/ig, " $1.") : o;
1961
+ return r ? a.replace(/ (.)[^ ]+/ig, " $1.") : a;
1962
1962
  }
1963
1963
  /**
1964
1964
  * In basic use without specifying a locale, a formatted string.
@@ -1978,8 +1978,8 @@ class N {
1978
1978
  * Символ десятичной точки.
1979
1979
  */
1980
1980
  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) || ".";
1981
+ var t, e, i, r, o;
1982
+ 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
1983
  }
1984
1984
  /**
1985
1985
  * Currency formatting.
@@ -1995,18 +1995,18 @@ class N {
1995
1995
  style: "currency",
1996
1996
  currencyDisplay: "symbol",
1997
1997
  ...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])));
1998
+ }, o = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...a) => (r.currency = String(a[2]).toUpperCase(), String(a[1])));
1999
1999
  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),
2000
+ const a = this.numberObject(r);
2001
+ return a ? se(
2002
+ a.formatToParts(k(t)).filter((u) => ["literal", "currency"].indexOf(u.type) === -1),
2003
2003
  "value"
2004
2004
  ).join("") : t.toString();
2005
2005
  } else return "currency" in r ? this.number(
2006
- typeof t == "number" ? t : a,
2006
+ typeof t == "number" ? t : o,
2007
2007
  r
2008
2008
  ) : this.number(
2009
- typeof t == "number" ? t : a,
2009
+ typeof t == "number" ? t : o,
2010
2010
  {
2011
2011
  ...r,
2012
2012
  style: "decimal"
@@ -2023,12 +2023,12 @@ class N {
2023
2023
  * как отобразить валюту в формате валюты
2024
2024
  */
2025
2025
  currencySymbol(t, e = "symbol") {
2026
- var i, r, a, o, u;
2027
- return ((u = (o = (a = (r = (i = this.numberObject({
2026
+ var i, r, o, a, u;
2027
+ return ((u = (a = (o = (r = (i = this.numberObject({
2028
2028
  style: "currency",
2029
2029
  currencyDisplay: e,
2030
2030
  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;
2031
+ })) == 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
2032
  }
2033
2033
  /**
2034
2034
  * Unit formatting.
@@ -2043,7 +2043,7 @@ class N {
2043
2043
  const i = {
2044
2044
  style: "unit",
2045
2045
  ...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])));
2046
+ }, r = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]+)$/i, (...o) => (i.unit = String(o[2]).toLowerCase(), String(o[1])));
2047
2047
  return this.number(r, i);
2048
2048
  }
2049
2049
  /**
@@ -2054,7 +2054,7 @@ class N {
2054
2054
  */
2055
2055
  sizeFile(t, e = "byte") {
2056
2056
  const i = k(t);
2057
- if (i > 1024 && U(e))
2057
+ if (i > 1024 && j(e))
2058
2058
  switch (e) {
2059
2059
  case "byte":
2060
2060
  return this.sizeFile(i / 1024, "kilobyte");
@@ -2103,38 +2103,38 @@ class N {
2103
2103
  */
2104
2104
  plural(t, e, i, r) {
2105
2105
  var u;
2106
- const a = k(t), o = e.split("|");
2107
- if (o.length > 1)
2106
+ const o = k(t), a = e.split("|");
2107
+ if (a.length > 1)
2108
2108
  try {
2109
2109
  if (l()) {
2110
- const y = new Intl.PluralRules(this.getLocation(), i).select(a);
2110
+ const f = new Intl.PluralRules(this.getLocation(), i).select(o);
2111
2111
  let g;
2112
- switch (y) {
2112
+ switch (f) {
2113
2113
  case "zero":
2114
- g = o[o.length - 1];
2114
+ g = a[a.length - 1];
2115
2115
  break;
2116
2116
  case "one":
2117
- g = o == null ? void 0 : o[0];
2117
+ g = a == null ? void 0 : a[0];
2118
2118
  break;
2119
2119
  case "two":
2120
- g = o == null ? void 0 : o[1];
2120
+ g = a == null ? void 0 : a[1];
2121
2121
  break;
2122
2122
  case "few":
2123
- g = o != null && o[3] ? o == null ? void 0 : o[2] : o == null ? void 0 : o[1];
2123
+ g = a != null && a[3] ? a == null ? void 0 : a[2] : a == null ? void 0 : a[1];
2124
2124
  break;
2125
2125
  case "many":
2126
- g = (o == null ? void 0 : o[3]) || (o == null ? void 0 : o[2]) || (o == null ? void 0 : o[1]);
2126
+ g = (a == null ? void 0 : a[3]) || (a == null ? void 0 : a[2]) || (a == null ? void 0 : a[1]);
2127
2127
  break;
2128
2128
  case "other":
2129
- o.length === 6 ? g = o[o.length - 2] : g = o[o.length - 1];
2129
+ a.length === 6 ? g = a[a.length - 2] : g = a[a.length - 1];
2130
2130
  break;
2131
2131
  }
2132
- return `${this.number(a, r)} ${g != null ? g : ""}`.trim();
2132
+ return `${this.number(o, r)} ${g != null ? g : ""}`.trim();
2133
2133
  }
2134
2134
  } catch (h) {
2135
2135
  console.error("plural: ", h);
2136
2136
  }
2137
- return `${this.number(a, r)} ${(u = o == null ? void 0 : o[0]) != null ? u : ""}`.trim();
2137
+ return `${this.number(o, r)} ${(u = a == null ? void 0 : a[0]) != null ? u : ""}`.trim();
2138
2138
  }
2139
2139
  /**
2140
2140
  * Enables language-sensitive date and time formatting.
@@ -2146,8 +2146,8 @@ class N {
2146
2146
  * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
2147
2147
  */
2148
2148
  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);
2149
+ const o = P(t), a = typeof i == "string", u = this.dateOptions(e, a ? i : "short");
2150
+ return r && (u.hour12 = !1), a || Object.assign(u, i), o.toLocaleString(this.getLocation(), u);
2151
2151
  }
2152
2152
  /**
2153
2153
  * Enables language-sensitive relative time formatting.
@@ -2159,12 +2159,12 @@ class N {
2159
2159
  * @param todayValue current day/ текущий день
2160
2160
  */
2161
2161
  relative(t, e, i) {
2162
- const r = P(t), a = i || /* @__PURE__ */ new Date(), o = {
2162
+ const r = P(t), o = i || /* @__PURE__ */ new Date(), a = {
2163
2163
  numeric: "auto",
2164
2164
  ...typeof e == "string" ? { style: e } : e || {}
2165
2165
  };
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);
2166
+ let u = "second", h = (r.getTime() - o.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, a);
2168
2168
  }
2169
2169
  /**
2170
2170
  * Enables language-sensitive relative time formatting
@@ -2184,16 +2184,16 @@ class N {
2184
2184
  * @param type type of data format/ тип формата data
2185
2185
  * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
2186
2186
  */
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(
2187
+ relativeLimit(t, e, i, r, o, a, u) {
2188
+ const h = P(t), f = i || /* @__PURE__ */ new Date(), g = new Date(f), S = new Date(f);
2189
+ return g.setDate(f.getDate() - e), S.setDate(f.getDate() + e), h >= g && h <= S ? this.relative(
2190
2190
  h,
2191
2191
  r,
2192
- y
2192
+ f
2193
2193
  ) : this.date(
2194
2194
  h,
2195
- o,
2196
2195
  a,
2196
+ o,
2197
2197
  u
2198
2198
  );
2199
2199
  }
@@ -2211,8 +2211,8 @@ class N {
2211
2211
  try {
2212
2212
  if (l())
2213
2213
  return new Intl.RelativeTimeFormat(this.getLocation(), r).format(Math.round(k(t)), e);
2214
- } catch (a) {
2215
- console.error("relative: ", a);
2214
+ } catch (o) {
2215
+ console.error("relative: ", o);
2216
2216
  }
2217
2217
  return "";
2218
2218
  }
@@ -2245,10 +2245,10 @@ class N {
2245
2245
  try {
2246
2246
  if (l()) {
2247
2247
  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
2248
+ for (let o = 0; o < 12; o++)
2249
+ i.setMonth(o), e.push({
2250
+ label: r.format(i).replace(/^./, (a) => a.toUpperCase()),
2251
+ value: o + 1
2252
2252
  });
2253
2253
  }
2254
2254
  } catch (i) {
@@ -2285,9 +2285,9 @@ class N {
2285
2285
  }];
2286
2286
  try {
2287
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++)
2288
+ const i = /* @__PURE__ */ new Date(), r = Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }), o = i.getDay() + (this.geo.firstDay === "Mo" ? -1 : 1);
2289
+ i.setDate(i.getDate() - o);
2290
+ for (let a = 0; a < 7; a++)
2291
2291
  e.push({
2292
2292
  label: r.format(i).replace(/^./, (u) => u.toUpperCase()),
2293
2293
  value: i.getDay()
@@ -2317,7 +2317,7 @@ class N {
2317
2317
  sort(t, e = (i, r) => [i, r]) {
2318
2318
  if (l()) {
2319
2319
  const i = new Intl.Collator(this.getLocation());
2320
- return t.sort((r, a) => i.compare(...e(r, a)));
2320
+ return t.sort((r, o) => i.compare(...e(r, o)));
2321
2321
  }
2322
2322
  return t;
2323
2323
  }
@@ -2427,8 +2427,8 @@ class gt {
2427
2427
  const i = e / 60 * -1;
2428
2428
  if (t === "hour")
2429
2429
  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}`;
2430
+ const r = this.toTimeZoneHourFormat(i), o = i.toString().match(/.\d+/) ? "30" : "00";
2431
+ return t === "RFC" ? `${r}${o}` : `${r}:${o}`;
2432
2432
  }
2433
2433
  /**
2434
2434
  * Returns the code of the first day of the week.
@@ -3014,24 +3014,24 @@ class gt {
3014
3014
  }
3015
3015
  function T(s) {
3016
3016
  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 : "";
3017
+ return j(s) ? s.trim() : ht(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
3018
  }
3019
3019
  function ie(s, t, e) {
3020
3020
  const i = T(s);
3021
3021
  if (!e || e <= 0)
3022
3022
  return i.split(t);
3023
- const r = i.split(t, e), a = i.split(t);
3024
- return r.length === a.length ? r : (r.pop(), [
3023
+ const r = i.split(t, e), o = i.split(t);
3024
+ return r.length === o.length ? r : (r.pop(), [
3025
3025
  ...r,
3026
- a.slice(e - 1).join(t)
3026
+ o.slice(e - 1).join(t)
3027
3027
  ]);
3028
3028
  }
3029
3029
  function x(s, t) {
3030
3030
  var r;
3031
- if (!m(t))
3031
+ if (!y(t))
3032
3032
  return;
3033
3033
  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;
3034
+ 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
3035
  }
3036
3036
  function Ht(s) {
3037
3037
  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()}`);
@@ -3104,13 +3104,13 @@ class ze {
3104
3104
  return d(
3105
3105
  this.options,
3106
3106
  (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,
3107
+ const o = `${Ht(r)}Format`, a = x(t, r);
3108
+ i != null && i.transformation ? y(a) ? e[o] = i.transformation(
3109
+ a,
3110
3110
  t,
3111
3111
  i.options
3112
- ) : e[a] = "" : e[a] = this.transformation(
3113
- o,
3112
+ ) : e[o] = "" : e[o] = this.transformation(
3113
+ a,
3114
3114
  t,
3115
3115
  i.type,
3116
3116
  i.options
@@ -3131,7 +3131,7 @@ class ze {
3131
3131
  * @returns Formatted string/ отформатированная строка
3132
3132
  */
3133
3133
  transformation(t, e, i, r) {
3134
- if (m(t) || i === F.name)
3134
+ if (y(t) || i === F.name)
3135
3135
  switch (i) {
3136
3136
  case F.currency:
3137
3137
  return this.formatCurrency(t, e, r);
@@ -3161,11 +3161,11 @@ class ze {
3161
3161
  * @returns Formatted currency string/ отформатированная строка валюты
3162
3162
  */
3163
3163
  formatCurrency(t, e, i) {
3164
- var a;
3164
+ var o;
3165
3165
  const r = i != null && i.currencyPropName ? x(e, i.currencyPropName) : e == null ? void 0 : e.currency;
3166
3166
  return N.getInstance().currency(
3167
3167
  t,
3168
- (a = i == null ? void 0 : i.options) != null ? a : r,
3168
+ (o = i == null ? void 0 : i.options) != null ? o : r,
3169
3169
  i == null ? void 0 : i.numberOnly
3170
3170
  );
3171
3171
  }
@@ -3198,12 +3198,12 @@ class ze {
3198
3198
  * отформатированная строка имени или пустая строка, если компоненты отсутствуют
3199
3199
  */
3200
3200
  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");
3201
+ var a, u, h;
3202
+ 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
3203
  return i && r ? N.getInstance().fullName(
3204
3204
  i,
3205
3205
  r,
3206
- a,
3206
+ o,
3207
3207
  e == null ? void 0 : e.short
3208
3208
  ) : "";
3209
3209
  }
@@ -3621,13 +3621,20 @@ const Z = class Z {
3621
3621
  * @param phone phone number/ номер телефон
3622
3622
  */
3623
3623
  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
3624
+ var a, u, h;
3625
+ const e = this.toNumber(t), i = [""];
3626
+ let r = this.map, o;
3627
+ for (const f of e)
3628
+ if (i[i.length - 1] += f, f in r)
3629
+ (a = r[f]) != null && a.value && (o = r[f], i.push("")), r = (h = (u = r[f]) == null ? void 0 : u.next) != null ? h : {};
3630
+ else
3631
+ break;
3632
+ return o ? (i.pop(), {
3633
+ item: o,
3634
+ phone: e.join("").slice(i.join("").length)
3635
+ }) : {
3636
+ item: void 0,
3637
+ phone: e.join("")
3631
3638
  };
3632
3639
  }
3633
3640
  /**
@@ -3666,11 +3673,11 @@ const Z = class Z {
3666
3673
  * @param masks a mask to transform a phone number/ маска для преобразования номер телефон
3667
3674
  */
3668
3675
  static toMask(t, e) {
3669
- if (m(t) && Array.isArray(e) && e.length > 0) {
3676
+ if (y(t) && Array.isArray(e) && e.length > 0) {
3670
3677
  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);
3678
+ for (const o of e)
3679
+ if (this.getUnnecessaryLength(o) === r)
3680
+ return this.toStandard(i, o);
3674
3681
  }
3675
3682
  }
3676
3683
  /**
@@ -3706,7 +3713,8 @@ const Z = class Z {
3706
3713
  * @param mask A mask to transform a phone number/ маска для преобразования номер телефон
3707
3714
  */
3708
3715
  static getUnnecessaryLength(t) {
3709
- return t.replace(/[^*]+/ig, "").length;
3716
+ var e, i;
3717
+ return (i = (e = t.match(/\*/g)) == null ? void 0 : e.length) != null ? i : 0;
3710
3718
  }
3711
3719
  /**
3712
3720
  * Creating a list for the map.
@@ -3734,20 +3742,20 @@ const Z = class Z {
3734
3742
  this.list.forEach((t) => {
3735
3743
  t.mask.forEach((e) => {
3736
3744
  let i = this.map, r;
3737
- if (this.toNumber(e).forEach((a) => {
3738
- var o;
3739
- a in i || (i[a] = {
3745
+ if (this.toNumber(e).forEach((o) => {
3746
+ var a;
3747
+ o in i || (i[o] = {
3740
3748
  items: [],
3741
3749
  info: void 0,
3742
3750
  value: void 0,
3743
3751
  mask: [],
3744
3752
  maskFull: [],
3745
3753
  next: {}
3746
- }), r = i[a], i = (o = r == null ? void 0 : r.next) != null ? o : {};
3754
+ }), r = i[o], i = (a = r == null ? void 0 : r.next) != null ? a : {};
3747
3755
  }), r) {
3748
3756
  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);
3757
+ const o = this.toWithin(e, t.within);
3758
+ r.mask.push(o), r.maskFull.push(o.replace(/\d/ig, "*")), r.items.push(t);
3751
3759
  }
3752
3760
  });
3753
3761
  });
@@ -3784,7 +3792,7 @@ const Z = class Z {
3784
3792
  }
3785
3793
  };
3786
3794
  c(Z, "list", []), c(Z, "map", {}), Z.makeList(), Z.makeMap();
3787
- let kt = Z, j;
3795
+ let kt = Z, U;
3788
3796
  class Ze {
3789
3797
  /**
3790
3798
  * Returns the value by its name.
@@ -3793,7 +3801,7 @@ class Ze {
3793
3801
  * @param name property name/ название свойства
3794
3802
  */
3795
3803
  static get(t) {
3796
- return j && (j == null ? void 0 : j[t]);
3804
+ return U && (U == null ? void 0 : U[t]);
3797
3805
  }
3798
3806
  /**
3799
3807
  * Adds data, this method works only once.
@@ -3802,7 +3810,7 @@ class Ze {
3802
3810
  * @param data global data/ глобальные данные
3803
3811
  */
3804
3812
  static add(t) {
3805
- j === void 0 && (j = D(t));
3813
+ U === void 0 && (U = D(t));
3806
3814
  }
3807
3815
  }
3808
3816
  const W = class W {
@@ -3849,7 +3857,7 @@ const W = class W {
3849
3857
  static removeWatch(t, e) {
3850
3858
  var r;
3851
3859
  const i = (r = this.watch) == null ? void 0 : r[t];
3852
- i && (this.watch[t] = i.filter((a) => a !== e));
3860
+ i && (this.watch[t] = i.filter((o) => o !== e));
3853
3861
  }
3854
3862
  /**
3855
3863
  * Update hash variable from URL string.
@@ -3871,7 +3879,7 @@ const W = class W {
3871
3879
  const t = {};
3872
3880
  return location.hash.replace(
3873
3881
  /([\w-]+)[:=]([^;]+)/ig,
3874
- (...e) => (t[String(e[1])] = Ut(e[2]), "")
3882
+ (...e) => (t[String(e[1])] = jt(e[2]), "")
3875
3883
  ), t;
3876
3884
  }
3877
3885
  /**
@@ -3893,13 +3901,13 @@ const W = class W {
3893
3901
  static makeWatch(t) {
3894
3902
  d(this.watch, (e, i) => {
3895
3903
  var r;
3896
- ((r = this.hash) == null ? void 0 : r[i]) !== (t == null ? void 0 : t[i]) && e.forEach((a) => a(t[i]));
3904
+ ((r = this.hash) == null ? void 0 : r[i]) !== (t == null ? void 0 : t[i]) && e.forEach((o) => o(t[i]));
3897
3905
  });
3898
3906
  }
3899
3907
  };
3900
3908
  c(W, "hash", {}), c(W, "watch", {}), c(W, "block", !1), l() && (W.reload(), addEventListener("hashchange", () => W.reload()));
3901
3909
  let Nt = W;
3902
- const at = "__UI_ICON", Et = 320, At = "--LOAD--", M = class M {
3910
+ const ot = "__UI_ICON", Et = 320, At = "--LOAD--", M = class M {
3903
3911
  /**
3904
3912
  * Checks if the given icon is in the list of connected icons.
3905
3913
  *
@@ -3920,8 +3928,8 @@ const at = "__UI_ICON", Et = 320, At = "--LOAD--", M = class M {
3920
3928
  * время ожидания загрузки картинки
3921
3929
  */
3922
3930
  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`;
3931
+ var o, a, u, h;
3932
+ 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
3933
  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
3934
  }
3927
3935
  /**
@@ -4005,7 +4013,7 @@ const at = "__UI_ICON", Et = 320, At = "--LOAD--", M = class M {
4005
4013
  return new Promise((t) => setTimeout(() => t(), Et));
4006
4014
  }
4007
4015
  };
4008
- c(M, "icons", {}), c(M, "url", "/icons/"), l() && (at in window || (window[at] = {}), M.icons = window[at]);
4016
+ c(M, "icons", {}), c(M, "url", "/icons/"), l() && (ot in window || (window[ot] = {}), M.icons = window[ot]);
4009
4017
  let It = M;
4010
4018
  function re(s, t, e) {
4011
4019
  var i, r;
@@ -4015,13 +4023,13 @@ function ne(s, t, e) {
4015
4023
  const i = E(s);
4016
4024
  if (i) {
4017
4025
  const r = re(i, t);
4018
- if (f(r) && f(e))
4019
- d(e, (a, o) => {
4020
- r[o] = B(a);
4026
+ if (m(r) && m(e))
4027
+ d(e, (o, a) => {
4028
+ r[a] = B(o);
4021
4029
  });
4022
4030
  else {
4023
- const a = B(e);
4024
- !(t in i) && typeof a == "string" ? i.setAttribute(t.toString(), a) : i[t] = B(e);
4031
+ const o = B(e);
4032
+ !(t in i) && typeof o == "string" ? i.setAttribute(t.toString(), o) : i[t] = B(e);
4025
4033
  }
4026
4034
  }
4027
4035
  return i;
@@ -4030,11 +4038,11 @@ function G(s, t = "div", e, i) {
4030
4038
  if (!l())
4031
4039
  return;
4032
4040
  const r = document.createElement(t);
4033
- return typeof e == "function" ? e(r) : A(e) && d(e, (a, o) => {
4034
- ne(r, o, a);
4041
+ return typeof e == "function" ? e(r) : A(e) && d(e, (o, a) => {
4042
+ ne(r, a, o);
4035
4043
  }), s == null || s.insertBefore(r, i != null ? i : null), r;
4036
4044
  }
4037
- function ae(s) {
4045
+ function oe(s) {
4038
4046
  return s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;").trim();
4039
4047
  }
4040
4048
  class dt {
@@ -4150,8 +4158,8 @@ class dt {
4150
4158
  if (e)
4151
4159
  e.content = i;
4152
4160
  else if (l()) {
4153
- const a = { content: i };
4154
- this.isProperty ? a.property = t : a.name = t, G(document.head, "meta", a);
4161
+ const o = { content: i };
4162
+ this.isProperty ? o.property = t : o.name = t, G(document.head, "meta", o);
4155
4163
  }
4156
4164
  return this;
4157
4165
  }
@@ -4163,7 +4171,7 @@ class dt {
4163
4171
  */
4164
4172
  toHtmlString(t) {
4165
4173
  var i;
4166
- const e = ae((i = this.items[t]) != null ? i : "");
4174
+ const e = oe((i = this.items[t]) != null ? i : "");
4167
4175
  return e ? `<meta ${this.getAttributeName()}="${t}" content="${e}">` : "";
4168
4176
  }
4169
4177
  /**
@@ -4178,7 +4186,7 @@ class dt {
4178
4186
  }), this;
4179
4187
  }
4180
4188
  }
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 || {});
4189
+ 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 || {}), 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
4190
  class fe extends dt {
4183
4191
  constructor() {
4184
4192
  super(Object.values($), !0);
@@ -4536,7 +4544,7 @@ class Ve extends dt {
4536
4544
  */
4537
4545
  setTitle(e) {
4538
4546
  if (l()) {
4539
- const i = m(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
4547
+ const i = y(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
4540
4548
  document.title = i, this.og.setTitle(i), this.twitter.setTitle(i);
4541
4549
  }
4542
4550
  return this;
@@ -4636,7 +4644,7 @@ class Ve extends dt {
4636
4644
  * Получает отформатированный суффикс с разделителем.
4637
4645
  */
4638
4646
  getSuffix() {
4639
- return m(this.suffix) ? ` - ${this.suffix}` : "";
4647
+ return y(this.suffix) ? ` - ${this.suffix}` : "";
4640
4648
  }
4641
4649
  }
4642
4650
  class ut {
@@ -4841,8 +4849,8 @@ class pe {
4841
4849
  toFormatItem(t, e) {
4842
4850
  const i = {};
4843
4851
  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);
4852
+ const o = this.getColumnName(r), a = x(t, r);
4853
+ i[o] = y(a) && e ? this.addTag(a) : T(a);
4846
4854
  }), {
4847
4855
  ...t,
4848
4856
  ...i,
@@ -4890,8 +4898,8 @@ class pe {
4890
4898
  let i = "";
4891
4899
  if (this.columns)
4892
4900
  for (const r of this.columns) {
4893
- const a = x(e, r);
4894
- m(a) && (i += ` ${T(a)}`);
4901
+ const o = x(e, r);
4902
+ y(o) && (i += ` ${T(o)}`);
4895
4903
  }
4896
4904
  t.push({
4897
4905
  item: e,
@@ -4978,7 +4986,7 @@ function ve(s) {
4978
4986
  let t = "";
4979
4987
  return s.split(" ").forEach((e) => {
4980
4988
  const i = ft(e).trim();
4981
- m(i) && (t += `(?=.*?${i})`);
4989
+ y(i) && (t += `(?=.*?${i})`);
4982
4990
  }), new RegExp(`^${t}`, "ig");
4983
4991
  }
4984
4992
  class Se {
@@ -5236,7 +5244,7 @@ class Ke {
5236
5244
  * @returns this instance/ данный экземпляр
5237
5245
  */
5238
5246
  setValue(t) {
5239
- return this.item.set(t), this.matcher.update(), this;
5247
+ return this.item.get() === t ? this : (this.item.set(t), this.matcher.update(), this);
5240
5248
  }
5241
5249
  /**
5242
5250
  * Sets new search options and updates the matcher.
@@ -5292,7 +5300,7 @@ const Ce = [
5292
5300
  return A(t) && d(t, (i, r) => {
5293
5301
  e = e.replace(
5294
5302
  new RegExp(`(?:\\[|\\{)${r}(?:\\]|\\})(.*?)(?:\\[|\\{)\\/${r}(?:\\]|\\})`, "g"),
5295
- (a, o) => String(i).replace(/(?:\[|\{)content(?:\]|\})/g, o)
5303
+ (o, a) => String(i).replace(/(?:\[|\{)content(?:\]|\})/g, a)
5296
5304
  ).replace(new RegExp(`(?:\\[|\\{)${r}(?:\\]|\\})`, "g"), String(i));
5297
5305
  }), e;
5298
5306
  }, ke = "global", I = class I {
@@ -5332,10 +5340,10 @@ const Ce = [
5332
5340
  return new Promise((e) => {
5333
5341
  const i = {};
5334
5342
  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);
5343
+ for (const o of t) {
5344
+ const a = Array.isArray(o) ? o[0] : o, u = Array.isArray(o) ? o.slice(1) : void 0;
5345
+ this.get(a, u).then((h) => {
5346
+ i[a] = h, ++r >= t.length && e(i);
5339
5347
  });
5340
5348
  }
5341
5349
  });
@@ -5351,8 +5359,8 @@ const Ce = [
5351
5359
  static getListSync(t, e = !1) {
5352
5360
  const i = {};
5353
5361
  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);
5362
+ const o = Array.isArray(r) ? r[0] : r, a = Array.isArray(r) ? r.slice(1) : void 0;
5363
+ i[o] = this.getSync(o, e, a);
5356
5364
  }
5357
5365
  return i;
5358
5366
  }
@@ -5379,7 +5387,7 @@ const Ce = [
5379
5387
  */
5380
5388
  static addSync(t) {
5381
5389
  d(t, (e, i) => {
5382
- U(e) && m(e) && (this.data[this.getName(i)] = e);
5390
+ j(e) && y(e) && (this.data[this.getName(i)] = e);
5383
5391
  });
5384
5392
  }
5385
5393
  /**
@@ -5389,7 +5397,7 @@ const Ce = [
5389
5397
  * @param data list of texts in the form of key-value/ список текстов в виде ключ-значение
5390
5398
  */
5391
5399
  static async addNormalOrSync(t) {
5392
- if (m(t))
5400
+ if (y(t))
5393
5401
  if (K.isLocalhost())
5394
5402
  this.addSync(t);
5395
5403
  else {
@@ -5406,9 +5414,9 @@ const Ce = [
5406
5414
  static addSyncByLocation(t) {
5407
5415
  d(
5408
5416
  t,
5409
- (e, i) => d(e, (r, a) => {
5410
- const o = `${i}-${a}`;
5411
- o in this.data || (this.data[o] = r);
5417
+ (e, i) => d(e, (r, o) => {
5418
+ const a = `${i}-${o}`;
5419
+ a in this.data || (this.data[a] = r);
5412
5420
  })
5413
5421
  );
5414
5422
  }
@@ -5576,10 +5584,10 @@ function _e(s = "datetime") {
5576
5584
  let Ft = Q(1e5, 9e5);
5577
5585
  function Oe(s, t) {
5578
5586
  const e = E(s);
5579
- return e ? (m(e.id) || e.setAttribute("id", `id-${Ft++}`), t ? `#${e.id}${t}`.trim() : e.id) : `id-${Ft++}`;
5587
+ return e ? (y(e.id) || e.setAttribute("id", `id-${Ft++}`), t ? `#${e.id}${t}`.trim() : e.id) : `id-${Ft++}`;
5580
5588
  }
5581
5589
  function Ae(s) {
5582
- return U(s) ? G(
5590
+ return j(s) ? G(
5583
5591
  void 0,
5584
5592
  "img",
5585
5593
  { src: s }
@@ -5631,16 +5639,16 @@ function Fe(s, t) {
5631
5639
  return Ne(s, t).join("");
5632
5640
  }
5633
5641
  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(" ");
5642
+ const o = Q(s, t), a = [];
5643
+ for (let u = 0; u < o; u++)
5644
+ a.push(Fe(e, Q(i, r)));
5645
+ return a.join(" ");
5638
5646
  }
5639
- function as(s, t) {
5647
+ function os(s, t) {
5640
5648
  const e = s != null ? s : 0;
5641
5649
  return t > e ? 100 / (t - e) : 0;
5642
5650
  }
5643
- function os(s, t) {
5651
+ function as(s, t) {
5644
5652
  const e = s != null ? s : 0;
5645
5653
  return t > e ? (t - e) / 100 : 0;
5646
5654
  }
@@ -5648,11 +5656,11 @@ const xt = 0;
5648
5656
  function cs(s, t, e) {
5649
5657
  const i = t == null ? void 0 : t.closest(s);
5650
5658
  if (t && i && i.scrollHeight !== i.offsetHeight) {
5651
- const r = i.getBoundingClientRect(), a = t.getBoundingClientRect();
5659
+ const r = i.getBoundingClientRect(), o = t.getBoundingClientRect();
5652
5660
  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);
5661
+ const a = e.getBoundingClientRect();
5662
+ 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);
5663
+ } 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
5664
  }
5657
5665
  }
5658
5666
  function us(s, t, e = 0) {
@@ -5696,7 +5704,7 @@ async function gs() {
5696
5704
  }
5697
5705
  function ds(s, t) {
5698
5706
  const e = {};
5699
- return f(s) && f(t) && d(s, (i, r) => {
5707
+ return m(s) && m(t) && d(s, (i, r) => {
5700
5708
  r in t && (e[r] = i);
5701
5709
  }), e;
5702
5710
  }
@@ -5728,7 +5736,7 @@ function $s(s, t) {
5728
5736
  return s >= e && s < e + 1;
5729
5737
  }
5730
5738
  function ps(s, t) {
5731
- return Array.isArray(s) ? s.every((e) => ot(e, t)) : ot(s, t);
5739
+ return Array.isArray(s) ? s.every((e) => at(e, t)) : at(s, t);
5732
5740
  }
5733
5741
  function bs(s, t) {
5734
5742
  if (s.startsWith(t))
@@ -5747,15 +5755,15 @@ function Re(s) {
5747
5755
  }
5748
5756
  function J(s, t, e = !0) {
5749
5757
  const i = V(s);
5750
- return f(s) && f(t) && d(
5758
+ return m(s) && m(t) && d(
5751
5759
  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,
5760
+ (r, o) => {
5761
+ const a = s == null ? void 0 : s[o];
5762
+ m(a) && m(r) ? e && Array.isArray(a) && Array.isArray(r) ? i[o] = V(Re([...a, ...r])) : i[o] = J(
5763
+ Array.isArray(a) ? { ...a } : a,
5756
5764
  r,
5757
5765
  e
5758
- ) : i[a] = f(r) ? V(r) : r;
5766
+ ) : i[o] = m(r) ? V(r) : r;
5759
5767
  }
5760
5768
  ), i;
5761
5769
  }
@@ -5776,12 +5784,12 @@ function Pe(s, t = "auto") {
5776
5784
  }
5777
5785
  }
5778
5786
  function Ss(s, t, e = "auto", i) {
5779
- var a;
5787
+ var o;
5780
5788
  const r = Ae(s);
5781
5789
  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");
5790
+ const a = Pe(r, e), u = (o = document.createElement("canvas")) == null ? void 0 : o.getContext("2d");
5783
5791
  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);
5792
+ 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
5793
  }
5786
5794
  }
5787
5795
  function Ls(s) {
@@ -5796,26 +5804,26 @@ function Cs(s, t, {
5796
5804
  multiple: e = !1,
5797
5805
  maxlength: i = 0,
5798
5806
  alwaysChange: r = !0,
5799
- notEmpty: a = !1
5807
+ notEmpty: o = !1
5800
5808
  }) {
5801
5809
  if (e) {
5802
5810
  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;
5811
+ const a = s.indexOf(t), u = [...s];
5812
+ return a !== -1 ? (!o || u.length > 1) && u.splice(a, 1) : (!i || s.length < i) && u.push(t), u;
5805
5813
  }
5806
5814
  return s === t ? [] : s ? [s, t] : [t];
5807
5815
  }
5808
5816
  return r || s !== t ? t : s;
5809
5817
  }
5810
5818
  function Ds(s, t, e) {
5811
- if (f(s) && f(t)) {
5819
+ if (m(s) && m(t)) {
5812
5820
  if (e) {
5813
5821
  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;
5822
+ return d(s, (o, a) => {
5823
+ !r && (e === a || e === o) ? (r = !0, i = J(i, t)) : r ? i = J(i, { [a]: o }) : i[a] = m(o) ? V(o) : o;
5816
5824
  }), r ? i : J(s, t);
5817
5825
  }
5818
- if (f(t))
5826
+ if (m(t))
5819
5827
  return J(s, t);
5820
5828
  }
5821
5829
  return V(s);
@@ -5827,8 +5835,8 @@ function Ns(s) {
5827
5835
  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
5836
  }
5829
5837
  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);
5838
+ const r = k(s), o = k(t);
5839
+ return t && o < r ? `${Rt(o, e, i)}+` : Rt(r, e, i);
5832
5840
  }
5833
5841
  const Rt = (s, t, e) => t ? new N(e).number(s) : s;
5834
5842
  function We(s, t) {
@@ -5864,7 +5872,7 @@ export {
5864
5872
  Gt as CacheItem,
5865
5873
  Lt as CacheStatic,
5866
5874
  Ct as Cookie,
5867
- jt as CookieBlock,
5875
+ Ut as CookieBlock,
5868
5876
  et as DataStorage,
5869
5877
  gt as Datetime,
5870
5878
  bt as EventItem,
@@ -5888,7 +5896,7 @@ export {
5888
5896
  ge as MetaOpenGraphGender,
5889
5897
  $ as MetaOpenGraphTag,
5890
5898
  ce as MetaOpenGraphType,
5891
- oe as MetaRobots,
5899
+ ae as MetaRobots,
5892
5900
  L as MetaTag,
5893
5901
  me as MetaTwitter,
5894
5902
  de as MetaTwitterCard,
@@ -5911,7 +5919,7 @@ export {
5911
5919
  G as createElement,
5912
5920
  qe as domQuerySelector,
5913
5921
  Je as domQuerySelectorAll,
5914
- ae as encodeAttribute,
5922
+ oe as encodeAttribute,
5915
5923
  ft as escapeExp,
5916
5924
  Me as eventStopPropagation,
5917
5925
  B as executeFunction,
@@ -5944,8 +5952,8 @@ export {
5944
5952
  Pt as getRequestString,
5945
5953
  ve as getSearchExp,
5946
5954
  ye as getSeparatingSearchExp,
5947
- as as getStepPercent,
5948
- os as getStepValue,
5955
+ os as getStepPercent,
5956
+ as as getStepValue,
5949
5957
  cs as goScroll,
5950
5958
  us as goScrollSmooth,
5951
5959
  hs as goScrollTo,
@@ -5957,7 +5965,7 @@ export {
5957
5965
  ct as isDomData,
5958
5966
  l as isDomRuntime,
5959
5967
  ms as isEnter,
5960
- m as isFilled,
5968
+ y as isFilled,
5961
5969
  ys as isFloat,
5962
5970
  lt as isFunction,
5963
5971
  Jt as isInDom,
@@ -5965,11 +5973,11 @@ export {
5965
5973
  $s as isIntegerBetween,
5966
5974
  X as isNull,
5967
5975
  yt as isNumber,
5968
- f as isObject,
5976
+ m as isObject,
5969
5977
  A as isObjectNotArray,
5970
- ot as isSelected,
5978
+ at as isSelected,
5971
5979
  ps as isSelectedByList,
5972
- U as isString,
5980
+ j as isString,
5973
5981
  Wt as isWindow,
5974
5982
  Q as random,
5975
5983
  bs as removeCommonPrefix,
@@ -5992,7 +6000,7 @@ export {
5992
6000
  Es as toNumberByMax,
5993
6001
  We as toPercent,
5994
6002
  As as toPercentBy100,
5995
- Ut as transformation,
6003
+ jt as transformation,
5996
6004
  Is as uint8ArrayToBase64,
5997
6005
  Re as uniqueArray,
5998
6006
  Bs as writeClipboardData
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dxtmisha/functional-basic",
3
3
  "private": false,
4
- "version": "0.10.0",
4
+ "version": "0.10.1",
5
5
  "type": "module",
6
6
  "description": "Foundational utility library for modern web development — HTTP client, geolocation, i18n, SEO meta tags, caching, storage, DOM utilities, and more. Framework-agnostic, zero dependencies, TypeScript-first.",
7
7
  "keywords": [