@dxtmisha/functional 1.4.2 → 1.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/library.js CHANGED
@@ -1,30 +1,30 @@
1
- var It = Object.defineProperty;
2
- var Nt = (i, t, e) => t in i ? It(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
- var u = (i, t, e) => Nt(i, typeof t != "symbol" ? t + "" : t, e);
4
- import { i as y, D as ut, r as z, a as At, G as w, f as $, t as N, b as ct, c as Bt, d as _, e as W, g as F, A as V, h as S, j as vt, S as bt, k as j, l as U, m as lt, E as Ft, C as xt, H as O, L as mt } from "./ScrollbarWidth-D6yhyHBp.js";
5
- import { n as Pi, o as Hi, R as Ri, p as Wi, q as ji, s as Ui, u as zi, v as _i, w as Ki, x as Zi, y as Vi, I as Yi, z as qi, B as Ji, F as Qi, J as Xi, K as Mi, M as Oi, N as Ti, O as Gi, P as ts, Q as es } from "./ScrollbarWidth-D6yhyHBp.js";
6
- import { isRef as Q, h as Et, computed as l, toRefs as Pt, useAttrs as Ht, useSlots as Rt, ref as p, watch as f, triggerRef as Wt, shallowRef as Z, onUnmounted as rt, inject as jt, provide as Ut, watchEffect as zt } from "vue";
7
- class _t {
1
+ var Bt = Object.defineProperty;
2
+ var xt = (i, t, e) => t in i ? Bt(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
+ var c = (i, t, e) => xt(i, typeof t != "symbol" ? t + "" : t, e);
4
+ import { i as m, D as ct, r as _, a as Ft, G as D, f as p, t as N, b as Q, c as Et, d as bt, e as K, g as z, h as E, A as Y, j as w, k as St, S as wt, l as R, m as Z, n as lt, E as Ht, C as Rt, H as T, L as mt, o as Pt } from "./ScrollbarWidth-De97V2Mh.js";
5
+ import { p as Ji, q as Qi, U as Xi, s as Mi, u as Oi, v as Ti, w as Gi, x as ts, y as es, z as is, B as ss, I as rs, F as ns, J as os, K as as, M as us, N as cs, O as ls, P as hs, Q as ds, R as gs, T as fs } from "./ScrollbarWidth-De97V2Mh.js";
6
+ import { isRef as X, h as Wt, computed as l, toRefs as jt, useAttrs as Ut, useSlots as zt, ref as $, watch as y, triggerRef as Zt, shallowRef as F, onUnmounted as nt, inject as _t, provide as Kt, watchEffect as Dt } from "vue";
7
+ class Vt {
8
8
  /**
9
9
  * Constructor
10
10
  * @param name channel name/ название канала
11
11
  * @param callback callback on message received/ колбэк на получение сообщения
12
12
  */
13
13
  constructor(t, e) {
14
- u(this, "channel");
14
+ c(this, "channel");
15
15
  /**
16
16
  * Update state on message received.
17
17
  *
18
18
  * Обновление состояния при получении сообщения.
19
19
  * @param event message event/ событие сообщения
20
20
  */
21
- u(this, "update", (t) => {
21
+ c(this, "update", (t) => {
22
22
  var e;
23
23
  return (e = this.callback) == null || e.call(this, t), this;
24
24
  });
25
- if (this.callback = e, y())
25
+ if (this.callback = e, m())
26
26
  try {
27
- this.channel = new BroadcastChannel(`${Kt()}__${t}`), this.channel.onmessage = this.update;
27
+ this.channel = new BroadcastChannel(`${Yt()}__${t}`), this.channel.onmessage = this.update;
28
28
  } catch (s) {
29
29
  console.error(`BroadcastMessage ${t}:`, s);
30
30
  }
@@ -49,36 +49,36 @@ class _t {
49
49
  return this.callback = t, this;
50
50
  }
51
51
  }
52
- const Kt = () => new ut("__broadcast-name").get(() => `name_${z(1e6, 9999999)}`);
52
+ const Yt = () => new ct("__broadcast-name").get(() => `name_${_(1e6, 9999999)}`);
53
53
  function A(i) {
54
- var n, o, a, c, h, d, g, D;
54
+ var r, o, a, u, h, d, g, v;
55
55
  if (i instanceof Date)
56
56
  return i;
57
- if (At(i))
57
+ if (Ft(i))
58
58
  return /* @__PURE__ */ new Date();
59
59
  if (typeof i == "number")
60
60
  return new Date(i);
61
- let t = i, e = w.getTimezoneFormat();
62
- i.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (H, X, k) => (t = X, e = k, H));
63
- const s = (D = (g = (d = (h = (c = (a = (o = (n = /^\d{4}\d{2}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3")}T00:00:00`) != null ? n : /^\d{4}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})$/, "$1-$2")}-01T00:00:00`) != null ? o : /^\d{4}\d{2}\d{2} \d{2}:\d{2}:\d{2}$/.exec(t) && t.replace(/^(\d{4})(\d{2})(\d{2}) (\d{2}):(\d{2}):(\d{2})$/, "$1-$2-$3T$4:$5:$6")) != null ? a : /^\d{4}-\d{2}-\d{2}$/.exec(t) && `${t}T00:00:00`) != null ? c : /^\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 ? g : /^\d{2}:\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}`) != null ? D : t.replace(" ", "T");
64
- return /* @__PURE__ */ new Date(`${s}${e}`);
61
+ let t = i, e = D.getTimezoneFormat().trim();
62
+ i.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (x, M, I) => (t = M, e = I.trim(), x));
63
+ const s = (v = (g = (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 ? g : /^\d{2}:\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}`) != null ? v : t.replace(" ", "T");
64
+ return /* @__PURE__ */ new Date(`${s.trim()}${e}`);
65
65
  }
66
- function nt(i, t) {
67
- return $(i, (e) => e == null ? void 0 : e[t]);
66
+ function ot(i, t) {
67
+ return p(i, (e) => e == null ? void 0 : e[t]);
68
68
  }
69
- class P {
69
+ class W {
70
70
  /**
71
71
  * Constructor
72
72
  * @param code country code, full form language-country or one of them/
73
73
  * код страны, полный вид язык-страна или один из них
74
74
  */
75
- constructor(t = w.getLocation()) {
76
- u(this, "geo");
77
- this.geo = w.find(t);
75
+ constructor(t = D.getLocation()) {
76
+ c(this, "geo");
77
+ this.geo = D.find(t);
78
78
  const e = this.getLocation();
79
- if (e in T)
80
- return T[e];
81
- T[e] = this;
79
+ if (e in G)
80
+ return G[e];
81
+ G[e] = this;
82
82
  }
83
83
  /**
84
84
  * Returns an instance of the class according to the specified country code.
@@ -87,8 +87,8 @@ class P {
87
87
  * @param code country code, full form language-country or one of them/
88
88
  * код страны, полный вид язык-страна или один из них
89
89
  */
90
- static getInstance(t = w.getLocation()) {
91
- return new P(t);
90
+ static getInstance(t = D.getLocation()) {
91
+ return new W(t);
92
92
  }
93
93
  /**
94
94
  * Returns country code and language.
@@ -116,17 +116,17 @@ class P {
116
116
  */
117
117
  display(t, e) {
118
118
  var o;
119
- let s = { type: "language" }, n;
119
+ let s = { type: "language" }, r;
120
120
  e && (typeof e == "string" ? s.type = e : s = {
121
121
  ...s,
122
122
  ...e
123
123
  });
124
124
  try {
125
- y() && (t ? n = new Intl.DisplayNames(this.getLocation(), s).of(t) : s.type === "language" ? n = new Intl.DisplayNames(this.getLocation(), s).of(this.geo.language) : s.type === "region" && (n = new Intl.DisplayNames(this.getLocation(), s).of(this.geo.country)));
125
+ m() && (t ? r = new Intl.DisplayNames(this.getLocation(), s).of(t) : s.type === "language" ? r = new Intl.DisplayNames(this.getLocation(), s).of(this.geo.language) : s.type === "region" && (r = new Intl.DisplayNames(this.getLocation(), s).of(this.geo.country)));
126
126
  } catch (a) {
127
127
  console.error("display: ", a);
128
128
  }
129
- return (o = n != null ? n : t) != null ? o : "";
129
+ return (o = r != null ? r : t) != null ? o : "";
130
130
  }
131
131
  /**
132
132
  * Get display names of language.
@@ -140,7 +140,7 @@ class P {
140
140
  type: "language",
141
141
  style: e
142
142
  };
143
- return this.display(w.getByCode(t).language, s);
143
+ return this.display(D.getByCode(t).language, s);
144
144
  }
145
145
  /**
146
146
  * Get display names of region.
@@ -165,9 +165,9 @@ class P {
165
165
  * @param surname surname middle name (optional)/ отчество
166
166
  * @param short shorten the names/ сократить названия
167
167
  */
168
- fullName(t, e, s, n) {
169
- var c, h;
170
- const o = (h = (c = this.geo) == null ? void 0 : c.nameFormat) != null ? h : "fl";
168
+ fullName(t, e, s, r) {
169
+ var u, h;
170
+ const o = (h = (u = this.geo) == null ? void 0 : u.nameFormat) != null ? h : "fl";
171
171
  let a;
172
172
  switch (o) {
173
173
  case "fsl":
@@ -183,7 +183,7 @@ class P {
183
183
  a = `${e} ${t}`;
184
184
  break;
185
185
  }
186
- return n ? a.replace(/ (.)[^ ]+/ig, " $1.") : a;
186
+ return r ? a.replace(/ (.)[^ ]+/ig, " $1.") : a;
187
187
  }
188
188
  /**
189
189
  * In basic use without specifying a locale, a formatted string.
@@ -194,8 +194,8 @@ class P {
194
194
  * или всеми свойствами
195
195
  */
196
196
  number(t, e) {
197
- var s, n;
198
- return ((n = (s = this.numberObject(e)) == null ? void 0 : s.format) == null ? void 0 : n.call(s, N(t))) || t.toString();
197
+ var s, r;
198
+ return ((r = (s = this.numberObject(e)) == null ? void 0 : s.format) == null ? void 0 : r.call(s, N(t))) || t.toString();
199
199
  }
200
200
  /**
201
201
  * Decimal point symbol.
@@ -203,8 +203,8 @@ class P {
203
203
  * Символ десятичной точки.
204
204
  */
205
205
  decimal() {
206
- var t, e, s, n, o;
207
- return ((o = (n = (s = (e = (t = this.numberObject()) == null ? void 0 : t.formatToParts) == null ? void 0 : e.call(t, 1.2)) == null ? void 0 : s.find) == null ? void 0 : n.call(s, (a) => a.type === "decimal")) == null ? void 0 : o.value) || ".";
206
+ var t, e, s, r, o;
207
+ return ((o = (r = (s = (e = (t = this.numberObject()) == null ? void 0 : t.formatToParts) == null ? void 0 : e.call(t, 1.2)) == null ? void 0 : s.find) == null ? void 0 : r.call(s, (a) => a.type === "decimal")) == null ? void 0 : o.value) || ".";
208
208
  }
209
209
  /**
210
210
  * Currency formatting.
@@ -216,24 +216,24 @@ class P {
216
216
  * @param numberOnly do not display the currency symbol/ не выводить значок валюты
217
217
  */
218
218
  currency(t, e, s = !1) {
219
- const n = {
219
+ const r = {
220
220
  style: "currency",
221
221
  currencyDisplay: "symbol",
222
222
  ...typeof e == "string" ? { currency: e } : e || {}
223
- }, o = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...a) => (n.currency = String(a[2]).toUpperCase(), String(a[1])));
223
+ }, o = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...a) => (r.currency = String(a[2]).toUpperCase(), String(a[1])));
224
224
  if (s) {
225
- const a = this.numberObject(n);
226
- return a ? nt(
227
- a.formatToParts(N(t)).filter((c) => ["literal", "currency"].indexOf(c.type) === -1),
225
+ const a = this.numberObject(r);
226
+ return a ? ot(
227
+ a.formatToParts(N(t)).filter((u) => ["literal", "currency"].indexOf(u.type) === -1),
228
228
  "value"
229
229
  ).join("") : t.toString();
230
- } else return "currency" in n ? this.number(
230
+ } else return "currency" in r ? this.number(
231
231
  typeof t == "number" ? t : o,
232
- n
232
+ r
233
233
  ) : this.number(
234
234
  typeof t == "number" ? t : o,
235
235
  {
236
- ...n,
236
+ ...r,
237
237
  style: "decimal"
238
238
  }
239
239
  );
@@ -248,12 +248,12 @@ class P {
248
248
  * как отобразить валюту в формате валюты
249
249
  */
250
250
  currencySymbol(t, e = "symbol") {
251
- var s, n, o, a, c;
252
- return ((c = (a = (o = (n = (s = this.numberObject({
251
+ var s, r, o, a, u;
252
+ return ((u = (a = (o = (r = (s = this.numberObject({
253
253
  style: "currency",
254
254
  currencyDisplay: e,
255
255
  currency: t
256
- })) == null ? void 0 : s.formatToParts) == null ? void 0 : n.call(s, 100)) == null ? void 0 : o.find) == null ? void 0 : a.call(o, (h) => h.type === "currency")) == null ? void 0 : c.value) || t;
256
+ })) == null ? void 0 : s.formatToParts) == null ? void 0 : r.call(s, 100)) == null ? void 0 : o.find) == null ? void 0 : a.call(o, (h) => h.type === "currency")) == null ? void 0 : u.value) || t;
257
257
  }
258
258
  /**
259
259
  * Unit formatting.
@@ -268,8 +268,8 @@ class P {
268
268
  const s = {
269
269
  style: "unit",
270
270
  ...typeof e == "string" ? { unit: e } : e || {}
271
- }, n = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]+)$/i, (...o) => (s.unit = String(o[2]).toLowerCase(), String(o[1])));
272
- return this.number(n, s);
271
+ }, r = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]+)$/i, (...o) => (s.unit = String(o[2]).toLowerCase(), String(o[1])));
272
+ return this.number(r, s);
273
273
  }
274
274
  /**
275
275
  * Возвращает отформатированный размер файла
@@ -279,7 +279,7 @@ class P {
279
279
  */
280
280
  sizeFile(t, e = "byte") {
281
281
  const s = N(t);
282
- if (s > 1024 && ct(e))
282
+ if (s > 1024 && Q(e))
283
283
  switch (e) {
284
284
  case "byte":
285
285
  return this.sizeFile(s / 1024, "kilobyte");
@@ -326,12 +326,12 @@ class P {
326
326
  * @param options Property for PluralRules/ свойство для PluralRules
327
327
  * @param optionsNumber an object with some or all properties/ объект с некоторыми или всеми свойствами
328
328
  */
329
- plural(t, e, s, n) {
330
- var c;
329
+ plural(t, e, s, r) {
330
+ var u;
331
331
  const o = N(t), a = e.split("|");
332
332
  if (a.length > 1)
333
333
  try {
334
- if (y()) {
334
+ if (m()) {
335
335
  const d = new Intl.PluralRules(this.getLocation(), s).select(o);
336
336
  let g;
337
337
  switch (d) {
@@ -354,12 +354,12 @@ class P {
354
354
  a.length === 6 ? g = a[a.length - 2] : g = a[a.length - 1];
355
355
  break;
356
356
  }
357
- return `${this.number(o, n)} ${g != null ? g : ""}`.trim();
357
+ return `${this.number(o, r)} ${g != null ? g : ""}`.trim();
358
358
  }
359
359
  } catch (h) {
360
360
  console.error("plural: ", h);
361
361
  }
362
- return `${this.number(o, n)} ${(c = a == null ? void 0 : a[0]) != null ? c : ""}`.trim();
362
+ return `${this.number(o, r)} ${(u = a == null ? void 0 : a[0]) != null ? u : ""}`.trim();
363
363
  }
364
364
  /**
365
365
  * Enables language-sensitive date and time formatting.
@@ -370,9 +370,9 @@ class P {
370
370
  * @param styleOptions the representation of the month/ представление месяца
371
371
  * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
372
372
  */
373
- date(t, e, s, n) {
374
- const o = A(t), a = typeof s == "string", c = this.dateOptions(e, a ? s : "short");
375
- return n && (c.hour12 = !1), a || Object.assign(c, s), o.toLocaleString(this.getLocation(), c);
373
+ date(t, e, s, r) {
374
+ const o = A(t), a = typeof s == "string", u = this.dateOptions(e, a ? s : "short");
375
+ return r && (u.hour12 = !1), a || Object.assign(u, s), o.toLocaleString(this.getLocation(), u);
376
376
  }
377
377
  /**
378
378
  * Enables language-sensitive relative time formatting.
@@ -384,12 +384,12 @@ class P {
384
384
  * @param todayValue current day/ текущий день
385
385
  */
386
386
  relative(t, e, s) {
387
- const n = A(t), o = s || /* @__PURE__ */ new Date(), a = {
387
+ const r = A(t), o = s || /* @__PURE__ */ new Date(), a = {
388
388
  numeric: "auto",
389
389
  ...typeof e == "string" ? { style: e } : e || {}
390
390
  };
391
- let c = "second", h = (n.getTime() - o.getTime()) / 1e3;
392
- return Math.abs(h) >= 60 && (c = "minute", h /= 60, Math.abs(h) >= 60 && (c = "hour", h /= 60, Math.abs(h) >= 24 && (c = "day", h /= 24, Math.abs(h) >= 30 && (c = "month", h /= 30, Math.abs(h) >= 12 && (c = "year", h /= 12))))), this.relativeByValue(h, c, a);
391
+ let u = "second", h = (r.getTime() - o.getTime()) / 1e3;
392
+ 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);
393
393
  }
394
394
  /**
395
395
  * Enables language-sensitive relative time formatting
@@ -409,17 +409,17 @@ class P {
409
409
  * @param type type of data format/ тип формата data
410
410
  * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
411
411
  */
412
- relativeLimit(t, e, s, n, o, a, c) {
413
- const h = A(t), d = s || /* @__PURE__ */ new Date(), g = new Date(d), D = new Date(d);
414
- return g.setDate(d.getDate() - e), D.setDate(d.getDate() + e), h >= g && h <= D ? this.relative(
412
+ relativeLimit(t, e, s, r, o, a, u) {
413
+ const h = A(t), d = s || /* @__PURE__ */ new Date(), g = new Date(d), v = new Date(d);
414
+ return g.setDate(d.getDate() - e), v.setDate(d.getDate() + e), h >= g && h <= v ? this.relative(
415
415
  h,
416
- n,
416
+ r,
417
417
  d
418
418
  ) : this.date(
419
419
  h,
420
420
  a,
421
421
  o,
422
- c
422
+ u
423
423
  );
424
424
  }
425
425
  /**
@@ -429,13 +429,13 @@ class P {
429
429
  * @param styleOptions additional option or formatting style/ дополнительная опция или стиль форматирования
430
430
  */
431
431
  relativeByValue(t, e, s) {
432
- const n = {
432
+ const r = {
433
433
  numeric: "auto",
434
434
  ...typeof s == "string" ? { style: s } : s || {}
435
435
  };
436
436
  try {
437
- if (y())
438
- return new Intl.RelativeTimeFormat(this.getLocation(), n).format(Math.round(N(t)), e);
437
+ if (m())
438
+ return new Intl.RelativeTimeFormat(this.getLocation(), r).format(Math.round(N(t)), e);
439
439
  } catch (o) {
440
440
  console.error("relative: ", o);
441
441
  }
@@ -449,7 +449,7 @@ class P {
449
449
  */
450
450
  month(t, e) {
451
451
  try {
452
- if (y())
452
+ if (m())
453
453
  return Intl.DateTimeFormat(this.getLocation(), { month: e || "long" }).format(A(t));
454
454
  } catch (s) {
455
455
  console.error("month: ", s);
@@ -468,11 +468,11 @@ class P {
468
468
  value: void 0
469
469
  }];
470
470
  try {
471
- if (y()) {
472
- const s = /* @__PURE__ */ new Date(), n = Intl.DateTimeFormat(this.getLocation(), { month: t || "long" });
471
+ if (m()) {
472
+ const s = /* @__PURE__ */ new Date(), r = Intl.DateTimeFormat(this.getLocation(), { month: t || "long" });
473
473
  for (let o = 0; o < 12; o++)
474
474
  s.setMonth(o), e.push({
475
- label: n.format(s).replace(/^./, (a) => a.toUpperCase()),
475
+ label: r.format(s).replace(/^./, (a) => a.toUpperCase()),
476
476
  value: o + 1
477
477
  });
478
478
  }
@@ -490,7 +490,7 @@ class P {
490
490
  */
491
491
  weekday(t, e) {
492
492
  try {
493
- if (y())
493
+ if (m())
494
494
  return Intl.DateTimeFormat(this.getLocation(), { weekday: e || "long" }).format(A(t));
495
495
  } catch (s) {
496
496
  console.error("weekday: ", s);
@@ -509,12 +509,12 @@ class P {
509
509
  value: void 0
510
510
  }];
511
511
  try {
512
- if (y()) {
513
- const s = /* @__PURE__ */ new Date(), n = Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }), o = s.getDay() + (this.geo.firstDay === "Mo" ? -1 : 1);
512
+ if (m()) {
513
+ const s = /* @__PURE__ */ new Date(), r = Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }), o = s.getDay() + (this.geo.firstDay === "Mo" ? -1 : 1);
514
514
  s.setDate(s.getDate() - o);
515
515
  for (let a = 0; a < 7; a++)
516
516
  e.push({
517
- label: n.format(s).replace(/^./, (c) => c.toUpperCase()),
517
+ label: r.format(s).replace(/^./, (u) => u.toUpperCase()),
518
518
  value: s.getDay()
519
519
  }), s.setDate(s.getDate() + 1);
520
520
  }
@@ -539,10 +539,10 @@ class P {
539
539
  * @param data an array with data/ массив с данными
540
540
  * @param compareFn a function for sorting/ функция для сортировки
541
541
  */
542
- sort(t, e = (s, n) => [s, n]) {
543
- if (y()) {
542
+ sort(t, e = (s, r) => [s, r]) {
543
+ if (m()) {
544
544
  const s = new Intl.Collator(this.getLocation());
545
- return t.sort((n, o) => s.compare(...e(n, o)));
545
+ return t.sort((r, o) => s.compare(...e(r, o)));
546
546
  }
547
547
  return t;
548
548
  }
@@ -555,7 +555,7 @@ class P {
555
555
  */
556
556
  numberObject(t) {
557
557
  try {
558
- if (y())
558
+ if (m())
559
559
  return new Intl.NumberFormat(this.getLocation(), t);
560
560
  } catch (e) {
561
561
  console.error("numberObject: ", e);
@@ -573,7 +573,7 @@ class P {
573
573
  return ["full", "datetime", "date", void 0, "year-month", "year"].indexOf(t) !== -1 && (s.year = "numeric"), ["full", "datetime", "date", void 0, "year-month", "month", "day-month"].indexOf(t) !== -1 && (s.month = e), ["full", "datetime", "date", void 0, "day", "day-month"].indexOf(t) !== -1 && (s.day = "2-digit"), t !== void 0 && (["full", "datetime", "time", "hour-minute", "hour"].indexOf(t) !== -1 && (s.hour = "2-digit"), ["full", "datetime", "time", "hour-minute", "minute"].indexOf(t) !== -1 && (s.minute = "2-digit"), ["full", "time", "second"].indexOf(t) !== -1 && (s.second = "2-digit")), s;
574
574
  }
575
575
  }
576
- const T = {};
576
+ const G = {};
577
577
  class ht {
578
578
  /**
579
579
  * Constructor
@@ -581,10 +581,10 @@ class ht {
581
581
  * @param type type of date format for output/ тип формата даты вывода
582
582
  * @param code country and language code/ код страны и языка
583
583
  */
584
- constructor(t, e = "date", s = w.getLocation()) {
585
- u(this, "date");
586
- u(this, "hour24", !1);
587
- u(this, "watch");
584
+ constructor(t, e = "date", s = D.getLocation()) {
585
+ c(this, "date");
586
+ c(this, "hour24", !1);
587
+ c(this, "watch");
588
588
  this.type = e, this.code = s, this.date = A(t);
589
589
  }
590
590
  /**
@@ -593,7 +593,7 @@ class ht {
593
593
  * Возвращает объект для работы с форматированием.
594
594
  */
595
595
  getIntl() {
596
- return new P(this.code);
596
+ return new W(this.code);
597
597
  }
598
598
  /**
599
599
  * Returns a Date object.
@@ -652,11 +652,8 @@ class ht {
652
652
  const s = e / 60 * -1;
653
653
  if (t === "hour")
654
654
  return this.getIntl().number(Math.trunc(s), { signDisplay: "always" });
655
- const n = this.getIntl().number(Math.trunc(s), {
656
- signDisplay: "always",
657
- minimumIntegerDigits: 2
658
- }), o = s.toString().match(/.\d+/) ? "30" : "00";
659
- return t === "RFC" ? `${n}${o}` : `${n}:${o}`;
655
+ const r = this.toTimeZoneHourFormat(s), o = s.toString().match(/.\d+/) ? "30" : "00";
656
+ return t === "RFC" ? `${r}${o}` : `${r}:${o}`;
660
657
  }
661
658
  /**
662
659
  * Returns the code of the first day of the week.
@@ -802,12 +799,12 @@ class ht {
802
799
  */
803
800
  standard(t = !0) {
804
801
  const e = new ht(this.date, this.type, "en-GB"), s = [];
805
- let n;
806
- return e.setHour24(!0), this.type === "hour-minute" ? n = e.locale(this.type, {
802
+ let r;
803
+ return e.setHour24(!0), this.type === "hour-minute" ? r = e.locale(this.type, {
807
804
  year: "numeric",
808
805
  month: "2-digit",
809
806
  hour12: !1
810
- }) : (["full", "datetime", "date", "year-month", "year", "month", "day"].indexOf(this.type) !== -1 && (s.push(e.localeYear()), s.push(e.localeMonth("2-digit"))), ["full", "datetime", "date", "year", "month", "day"].indexOf(this.type) !== -1 && s.push(e.localeDay("2-digit")), ["full", "datetime", "time", "hour", "minute", "second"].indexOf(this.type) !== -1 && (n = e.locale("time"))), `${s.join("-")}${n ? `T${n}${t ? e.getTimeZone() : ""}` : ""}`;
807
+ }) : (["full", "datetime", "date", "year-month", "year", "month", "day"].indexOf(this.type) !== -1 && (s.push(e.localeYear()), s.push(e.localeMonth("2-digit"))), ["full", "datetime", "date", "year", "month", "day"].indexOf(this.type) !== -1 && s.push(e.localeDay("2-digit")), ["full", "datetime", "time", "hour", "minute", "second"].indexOf(this.type) !== -1 && (r = e.locale("time"))), `${s.join("-")}${r ? `T${r}${t ? e.getTimeZone() : ""}` : ""}`;
811
808
  }
812
809
  /**
813
810
  * Change the date completely.
@@ -1211,6 +1208,20 @@ class ht {
1211
1208
  cloneDayPrevious() {
1212
1209
  return this.cloneClass().moveDayPrevious();
1213
1210
  }
1211
+ /**
1212
+ * Returns the time zone hour format.
1213
+ *
1214
+ * Возвращает часовой формат временной зоны.
1215
+ * @param hour hour/ час
1216
+ */
1217
+ toTimeZoneHourFormat(t) {
1218
+ m() && this.getIntl().number(Math.trunc(t), {
1219
+ signDisplay: "always",
1220
+ minimumIntegerDigits: 2
1221
+ });
1222
+ let e = Math.trunc(t).toString();
1223
+ return e.length < 2 && (e = `0${e}`), `${t >= 0 ? "+" : "-"}${e}`;
1224
+ }
1214
1225
  /**
1215
1226
  * Updating all values.
1216
1227
  *
@@ -1226,12 +1237,12 @@ class ht {
1226
1237
  ), this;
1227
1238
  }
1228
1239
  }
1229
- const r = "@flag", E = class E {
1240
+ const n = "@flag", P = class P {
1230
1241
  /**
1231
1242
  * Constructor
1232
1243
  * @param code country and language code/ код страны и языка
1233
1244
  */
1234
- constructor(t = w.getLocation()) {
1245
+ constructor(t = D.getLocation()) {
1235
1246
  this.code = t;
1236
1247
  }
1237
1248
  /**
@@ -1242,15 +1253,15 @@ const r = "@flag", E = class E {
1242
1253
  */
1243
1254
  get(t = this.code) {
1244
1255
  var s;
1245
- const e = w.find(t);
1256
+ const e = D.find(t);
1246
1257
  if (e) {
1247
- const n = this.getCountry(e);
1258
+ const r = this.getCountry(e);
1248
1259
  return {
1249
1260
  language: this.getLanguage(e),
1250
- country: n,
1261
+ country: r,
1251
1262
  standard: e.standard,
1252
- icon: (s = E.flags) == null ? void 0 : s[e.country],
1253
- label: n,
1263
+ icon: (s = P.flags) == null ? void 0 : s[e.country],
1264
+ label: r,
1254
1265
  value: e.country
1255
1266
  };
1256
1267
  }
@@ -1272,7 +1283,7 @@ const r = "@flag", E = class E {
1272
1283
  * @param codes country code/ код страны
1273
1284
  */
1274
1285
  getList(t) {
1275
- return $(this.getCodes(t), (e) => this.get(e));
1286
+ return p(this.getCodes(t), (e) => this.get(e));
1276
1287
  }
1277
1288
  /**
1278
1289
  * Getting a list of countries by an array of codes in national language.
@@ -1281,8 +1292,8 @@ const r = "@flag", E = class E {
1281
1292
  * @param codes country code/ код страны.
1282
1293
  */
1283
1294
  getNational(t) {
1284
- return $(this.getList(t), (e) => {
1285
- const s = new E(e.standard).get(e.standard);
1295
+ return p(this.getList(t), (e) => {
1296
+ const s = new P(e.standard).get(e.standard);
1286
1297
  return {
1287
1298
  ...e,
1288
1299
  description: s == null ? void 0 : s.country,
@@ -1306,7 +1317,7 @@ const r = "@flag", E = class E {
1306
1317
  * Возвращает специальный объект для работы с форматированием.
1307
1318
  */
1308
1319
  getLocation() {
1309
- return new P(this.code);
1320
+ return new W(this.code);
1310
1321
  }
1311
1322
  /**
1312
1323
  * Returns a list of countries to retrieve data from.
@@ -1315,7 +1326,7 @@ const r = "@flag", E = class E {
1315
1326
  * @param codes country code/ код страны
1316
1327
  */
1317
1328
  getCodes(t) {
1318
- return t != null ? t : Object.keys(E.flags);
1329
+ return t != null ? t : Object.keys(P.flags);
1319
1330
  }
1320
1331
  /**
1321
1332
  * Getting the name of the language.
@@ -1336,251 +1347,251 @@ const r = "@flag", E = class E {
1336
1347
  return this.getLocation().countryName(t.country);
1337
1348
  }
1338
1349
  };
1339
- u(E, "flags", {
1340
- AD: `${r}-ad`,
1341
- AE: `${r}-ae`,
1342
- AF: `${r}-af`,
1343
- AG: `${r}-ag`,
1344
- AI: `${r}-ai`,
1345
- AL: `${r}-al`,
1346
- AM: `${r}-am`,
1347
- AN: `${r}-an`,
1348
- AO: `${r}-ao`,
1349
- AQ: `${r}-aq`,
1350
- AR: `${r}-ar`,
1351
- AS: `${r}-as`,
1352
- AT: `${r}-at`,
1353
- AU: `${r}-au`,
1354
- AW: `${r}-aw`,
1355
- AZ: `${r}-az`,
1356
- BA: `${r}-ba`,
1357
- BB: `${r}-bb`,
1358
- BD: `${r}-bd`,
1359
- BE: `${r}-be`,
1360
- BF: `${r}-bf`,
1361
- BG: `${r}-bg`,
1362
- BH: `${r}-bh`,
1363
- BI: `${r}-bi`,
1364
- BJ: `${r}-bj`,
1365
- BL: `${r}-bl`,
1366
- BM: `${r}-bm`,
1367
- BN: `${r}-bn`,
1368
- BO: `${r}-bo`,
1369
- BR: `${r}-br`,
1370
- BS: `${r}-bs`,
1371
- BT: `${r}-bt`,
1372
- BW: `${r}-bw`,
1373
- BY: `${r}-by`,
1374
- BZ: `${r}-bz`,
1375
- CA: `${r}-ca`,
1376
- CC: `${r}-cc`,
1377
- CD: `${r}-cd`,
1378
- CF: `${r}-cf`,
1379
- CG: `${r}-cg`,
1380
- CH: `${r}-ch`,
1381
- CI: `${r}-ci`,
1382
- CK: `${r}-ck`,
1383
- CL: `${r}-cl`,
1384
- CM: `${r}-cm`,
1385
- CN: `${r}-cn`,
1386
- CO: `${r}-co`,
1387
- CR: `${r}-cr`,
1388
- CU: `${r}-cu`,
1389
- CV: `${r}-cv`,
1390
- CW: `${r}-cw`,
1391
- CX: `${r}-cx`,
1392
- CY: `${r}-cy`,
1393
- CZ: `${r}-cz`,
1394
- DE: `${r}-de`,
1395
- DJ: `${r}-dj`,
1396
- DK: `${r}-dk`,
1397
- DM: `${r}-dm`,
1398
- DZ: `${r}-dz`,
1399
- EC: `${r}-ec`,
1400
- EE: `${r}-ee`,
1401
- EG: `${r}-eg`,
1402
- EH: `${r}-eh`,
1403
- ER: `${r}-er`,
1404
- ES: `${r}-es`,
1405
- ET: `${r}-et`,
1406
- FI: `${r}-fi`,
1407
- FJ: `${r}-fj`,
1408
- FK: `${r}-fk`,
1409
- FM: `${r}-fm`,
1410
- FO: `${r}-fo`,
1411
- FR: `${r}-fr`,
1412
- GA: `${r}-ga`,
1413
- GB: `${r}-gb`,
1414
- GD: `${r}-gd`,
1415
- GE: `${r}-ge`,
1416
- GF: `${r}-gf`,
1417
- GG: `${r}-gg`,
1418
- GH: `${r}-gh`,
1419
- GI: `${r}-gi`,
1420
- GL: `${r}-gl`,
1421
- GM: `${r}-gm`,
1422
- GN: `${r}-gn`,
1423
- GQ: `${r}-gq`,
1424
- GR: `${r}-gr`,
1425
- GT: `${r}-gt`,
1426
- GU: `${r}-gu`,
1427
- GW: `${r}-gw`,
1428
- GY: `${r}-gy`,
1429
- HK: `${r}-hk`,
1430
- HN: `${r}-hn`,
1431
- HR: `${r}-hr`,
1432
- HT: `${r}-ht`,
1433
- HU: `${r}-hu`,
1434
- ID: `${r}-id`,
1435
- IE: `${r}-ie`,
1436
- IL: `${r}-il`,
1437
- IM: `${r}-im`,
1438
- IN: `${r}-in`,
1439
- IO: `${r}-io`,
1440
- IQ: `${r}-iq`,
1441
- IR: `${r}-ir`,
1442
- IS: `${r}-is`,
1443
- IT: `${r}-it`,
1444
- JE: `${r}-je`,
1445
- JM: `${r}-jm`,
1446
- JO: `${r}-jo`,
1447
- JP: `${r}-jp`,
1448
- KE: `${r}-ke`,
1449
- KG: `${r}-kg`,
1450
- KH: `${r}-kh`,
1451
- KI: `${r}-ki`,
1452
- KM: `${r}-km`,
1453
- KN: `${r}-kn`,
1454
- KP: `${r}-kp`,
1455
- KR: `${r}-kr`,
1456
- KW: `${r}-kw`,
1457
- KY: `${r}-ky`,
1458
- KZ: `${r}-kz`,
1459
- LA: `${r}-la`,
1460
- LB: `${r}-lb`,
1461
- LC: `${r}-lc`,
1462
- LI: `${r}-li`,
1463
- LK: `${r}-lk`,
1464
- LR: `${r}-lr`,
1465
- LS: `${r}-ls`,
1466
- LT: `${r}-lt`,
1467
- LU: `${r}-lu`,
1468
- LV: `${r}-lv`,
1469
- LY: `${r}-ly`,
1470
- MA: `${r}-ma`,
1471
- MC: `${r}-mc`,
1472
- MD: `${r}-md`,
1473
- ME: `${r}-me`,
1474
- MF: `${r}-mf`,
1475
- MG: `${r}-mg`,
1476
- MH: `${r}-mh`,
1477
- MK: `${r}-mk`,
1478
- ML: `${r}-ml`,
1479
- MM: `${r}-mm`,
1480
- MN: `${r}-mn`,
1481
- MO: `${r}-mo`,
1482
- MP: `${r}-mp`,
1483
- MQ: `${r}-mq`,
1484
- MR: `${r}-mr`,
1485
- MS: `${r}-ms`,
1486
- MT: `${r}-mt`,
1487
- MU: `${r}-mu`,
1488
- MV: `${r}-mv`,
1489
- MW: `${r}-mw`,
1490
- MX: `${r}-mx`,
1491
- MY: `${r}-my`,
1492
- MZ: `${r}-mz`,
1493
- NA: `${r}-na`,
1494
- NC: `${r}-nc`,
1495
- NE: `${r}-ne`,
1496
- NF: `${r}-nf`,
1497
- NG: `${r}-ng`,
1498
- NI: `${r}-ni`,
1499
- NL: `${r}-nl`,
1500
- NO: `${r}-no`,
1501
- NP: `${r}-np`,
1502
- NR: `${r}-nr`,
1503
- NU: `${r}-nu`,
1504
- NZ: `${r}-nz`,
1505
- OM: `${r}-om`,
1506
- PA: `${r}-pa`,
1507
- PE: `${r}-pe`,
1508
- PF: `${r}-pf`,
1509
- PG: `${r}-pg`,
1510
- PH: `${r}-ph`,
1511
- PK: `${r}-pk`,
1512
- PL: `${r}-pl`,
1513
- PM: `${r}-pm`,
1514
- PN: `${r}-pn`,
1515
- PR: `${r}-pr`,
1516
- PS: `${r}-ps`,
1517
- PT: `${r}-pt`,
1518
- PW: `${r}-pw`,
1519
- PY: `${r}-py`,
1520
- QA: `${r}-qa`,
1521
- RE: `${r}-re`,
1522
- RO: `${r}-ro`,
1523
- RS: `${r}-rs`,
1524
- RU: `${r}-ru`,
1525
- RW: `${r}-rw`,
1526
- SA: `${r}-sa`,
1527
- SB: `${r}-sb`,
1528
- SC: `${r}-sc`,
1529
- SD: `${r}-sd`,
1530
- SE: `${r}-se`,
1531
- SG: `${r}-sg`,
1532
- SH: `${r}-sh`,
1533
- SI: `${r}-si`,
1534
- SJ: `${r}-sj`,
1535
- SK: `${r}-sk`,
1536
- SL: `${r}-sl`,
1537
- SM: `${r}-sm`,
1538
- SN: `${r}-sn`,
1539
- SO: `${r}-so`,
1540
- SR: `${r}-sr`,
1541
- SS: `${r}-ss`,
1542
- ST: `${r}-st`,
1543
- SV: `${r}-sv`,
1544
- SX: `${r}-sx`,
1545
- SY: `${r}-sy`,
1546
- SZ: `${r}-sz`,
1547
- TC: `${r}-tc`,
1548
- TD: `${r}-td`,
1549
- TG: `${r}-tg`,
1550
- TH: `${r}-th`,
1551
- TJ: `${r}-tj`,
1552
- TK: `${r}-tk`,
1553
- TL: `${r}-tl`,
1554
- TM: `${r}-tm`,
1555
- TN: `${r}-tn`,
1556
- TO: `${r}-to`,
1557
- TR: `${r}-tr`,
1558
- TT: `${r}-tt`,
1559
- TV: `${r}-tv`,
1560
- TW: `${r}-tw`,
1561
- TZ: `${r}-tz`,
1562
- UA: `${r}-ua`,
1563
- UG: `${r}-ug`,
1564
- US: `${r}-us`,
1565
- UY: `${r}-uy`,
1566
- UZ: `${r}-uz`,
1567
- VA: `${r}-va`,
1568
- VC: `${r}-vc`,
1569
- VE: `${r}-ve`,
1570
- VG: `${r}-vg`,
1571
- VI: `${r}-vi`,
1572
- VN: `${r}-vn`,
1573
- VU: `${r}-vu`,
1574
- WF: `${r}-wf`,
1575
- WS: `${r}-ws`,
1576
- YE: `${r}-ye`,
1577
- YT: `${r}-yt`,
1578
- ZA: `${r}-za`,
1579
- ZM: `${r}-zm`,
1580
- ZW: `${r}-zw`
1350
+ c(P, "flags", {
1351
+ AD: `${n}-ad`,
1352
+ AE: `${n}-ae`,
1353
+ AF: `${n}-af`,
1354
+ AG: `${n}-ag`,
1355
+ AI: `${n}-ai`,
1356
+ AL: `${n}-al`,
1357
+ AM: `${n}-am`,
1358
+ AN: `${n}-an`,
1359
+ AO: `${n}-ao`,
1360
+ AQ: `${n}-aq`,
1361
+ AR: `${n}-ar`,
1362
+ AS: `${n}-as`,
1363
+ AT: `${n}-at`,
1364
+ AU: `${n}-au`,
1365
+ AW: `${n}-aw`,
1366
+ AZ: `${n}-az`,
1367
+ BA: `${n}-ba`,
1368
+ BB: `${n}-bb`,
1369
+ BD: `${n}-bd`,
1370
+ BE: `${n}-be`,
1371
+ BF: `${n}-bf`,
1372
+ BG: `${n}-bg`,
1373
+ BH: `${n}-bh`,
1374
+ BI: `${n}-bi`,
1375
+ BJ: `${n}-bj`,
1376
+ BL: `${n}-bl`,
1377
+ BM: `${n}-bm`,
1378
+ BN: `${n}-bn`,
1379
+ BO: `${n}-bo`,
1380
+ BR: `${n}-br`,
1381
+ BS: `${n}-bs`,
1382
+ BT: `${n}-bt`,
1383
+ BW: `${n}-bw`,
1384
+ BY: `${n}-by`,
1385
+ BZ: `${n}-bz`,
1386
+ CA: `${n}-ca`,
1387
+ CC: `${n}-cc`,
1388
+ CD: `${n}-cd`,
1389
+ CF: `${n}-cf`,
1390
+ CG: `${n}-cg`,
1391
+ CH: `${n}-ch`,
1392
+ CI: `${n}-ci`,
1393
+ CK: `${n}-ck`,
1394
+ CL: `${n}-cl`,
1395
+ CM: `${n}-cm`,
1396
+ CN: `${n}-cn`,
1397
+ CO: `${n}-co`,
1398
+ CR: `${n}-cr`,
1399
+ CU: `${n}-cu`,
1400
+ CV: `${n}-cv`,
1401
+ CW: `${n}-cw`,
1402
+ CX: `${n}-cx`,
1403
+ CY: `${n}-cy`,
1404
+ CZ: `${n}-cz`,
1405
+ DE: `${n}-de`,
1406
+ DJ: `${n}-dj`,
1407
+ DK: `${n}-dk`,
1408
+ DM: `${n}-dm`,
1409
+ DZ: `${n}-dz`,
1410
+ EC: `${n}-ec`,
1411
+ EE: `${n}-ee`,
1412
+ EG: `${n}-eg`,
1413
+ EH: `${n}-eh`,
1414
+ ER: `${n}-er`,
1415
+ ES: `${n}-es`,
1416
+ ET: `${n}-et`,
1417
+ FI: `${n}-fi`,
1418
+ FJ: `${n}-fj`,
1419
+ FK: `${n}-fk`,
1420
+ FM: `${n}-fm`,
1421
+ FO: `${n}-fo`,
1422
+ FR: `${n}-fr`,
1423
+ GA: `${n}-ga`,
1424
+ GB: `${n}-gb`,
1425
+ GD: `${n}-gd`,
1426
+ GE: `${n}-ge`,
1427
+ GF: `${n}-gf`,
1428
+ GG: `${n}-gg`,
1429
+ GH: `${n}-gh`,
1430
+ GI: `${n}-gi`,
1431
+ GL: `${n}-gl`,
1432
+ GM: `${n}-gm`,
1433
+ GN: `${n}-gn`,
1434
+ GQ: `${n}-gq`,
1435
+ GR: `${n}-gr`,
1436
+ GT: `${n}-gt`,
1437
+ GU: `${n}-gu`,
1438
+ GW: `${n}-gw`,
1439
+ GY: `${n}-gy`,
1440
+ HK: `${n}-hk`,
1441
+ HN: `${n}-hn`,
1442
+ HR: `${n}-hr`,
1443
+ HT: `${n}-ht`,
1444
+ HU: `${n}-hu`,
1445
+ ID: `${n}-id`,
1446
+ IE: `${n}-ie`,
1447
+ IL: `${n}-il`,
1448
+ IM: `${n}-im`,
1449
+ IN: `${n}-in`,
1450
+ IO: `${n}-io`,
1451
+ IQ: `${n}-iq`,
1452
+ IR: `${n}-ir`,
1453
+ IS: `${n}-is`,
1454
+ IT: `${n}-it`,
1455
+ JE: `${n}-je`,
1456
+ JM: `${n}-jm`,
1457
+ JO: `${n}-jo`,
1458
+ JP: `${n}-jp`,
1459
+ KE: `${n}-ke`,
1460
+ KG: `${n}-kg`,
1461
+ KH: `${n}-kh`,
1462
+ KI: `${n}-ki`,
1463
+ KM: `${n}-km`,
1464
+ KN: `${n}-kn`,
1465
+ KP: `${n}-kp`,
1466
+ KR: `${n}-kr`,
1467
+ KW: `${n}-kw`,
1468
+ KY: `${n}-ky`,
1469
+ KZ: `${n}-kz`,
1470
+ LA: `${n}-la`,
1471
+ LB: `${n}-lb`,
1472
+ LC: `${n}-lc`,
1473
+ LI: `${n}-li`,
1474
+ LK: `${n}-lk`,
1475
+ LR: `${n}-lr`,
1476
+ LS: `${n}-ls`,
1477
+ LT: `${n}-lt`,
1478
+ LU: `${n}-lu`,
1479
+ LV: `${n}-lv`,
1480
+ LY: `${n}-ly`,
1481
+ MA: `${n}-ma`,
1482
+ MC: `${n}-mc`,
1483
+ MD: `${n}-md`,
1484
+ ME: `${n}-me`,
1485
+ MF: `${n}-mf`,
1486
+ MG: `${n}-mg`,
1487
+ MH: `${n}-mh`,
1488
+ MK: `${n}-mk`,
1489
+ ML: `${n}-ml`,
1490
+ MM: `${n}-mm`,
1491
+ MN: `${n}-mn`,
1492
+ MO: `${n}-mo`,
1493
+ MP: `${n}-mp`,
1494
+ MQ: `${n}-mq`,
1495
+ MR: `${n}-mr`,
1496
+ MS: `${n}-ms`,
1497
+ MT: `${n}-mt`,
1498
+ MU: `${n}-mu`,
1499
+ MV: `${n}-mv`,
1500
+ MW: `${n}-mw`,
1501
+ MX: `${n}-mx`,
1502
+ MY: `${n}-my`,
1503
+ MZ: `${n}-mz`,
1504
+ NA: `${n}-na`,
1505
+ NC: `${n}-nc`,
1506
+ NE: `${n}-ne`,
1507
+ NF: `${n}-nf`,
1508
+ NG: `${n}-ng`,
1509
+ NI: `${n}-ni`,
1510
+ NL: `${n}-nl`,
1511
+ NO: `${n}-no`,
1512
+ NP: `${n}-np`,
1513
+ NR: `${n}-nr`,
1514
+ NU: `${n}-nu`,
1515
+ NZ: `${n}-nz`,
1516
+ OM: `${n}-om`,
1517
+ PA: `${n}-pa`,
1518
+ PE: `${n}-pe`,
1519
+ PF: `${n}-pf`,
1520
+ PG: `${n}-pg`,
1521
+ PH: `${n}-ph`,
1522
+ PK: `${n}-pk`,
1523
+ PL: `${n}-pl`,
1524
+ PM: `${n}-pm`,
1525
+ PN: `${n}-pn`,
1526
+ PR: `${n}-pr`,
1527
+ PS: `${n}-ps`,
1528
+ PT: `${n}-pt`,
1529
+ PW: `${n}-pw`,
1530
+ PY: `${n}-py`,
1531
+ QA: `${n}-qa`,
1532
+ RE: `${n}-re`,
1533
+ RO: `${n}-ro`,
1534
+ RS: `${n}-rs`,
1535
+ RU: `${n}-ru`,
1536
+ RW: `${n}-rw`,
1537
+ SA: `${n}-sa`,
1538
+ SB: `${n}-sb`,
1539
+ SC: `${n}-sc`,
1540
+ SD: `${n}-sd`,
1541
+ SE: `${n}-se`,
1542
+ SG: `${n}-sg`,
1543
+ SH: `${n}-sh`,
1544
+ SI: `${n}-si`,
1545
+ SJ: `${n}-sj`,
1546
+ SK: `${n}-sk`,
1547
+ SL: `${n}-sl`,
1548
+ SM: `${n}-sm`,
1549
+ SN: `${n}-sn`,
1550
+ SO: `${n}-so`,
1551
+ SR: `${n}-sr`,
1552
+ SS: `${n}-ss`,
1553
+ ST: `${n}-st`,
1554
+ SV: `${n}-sv`,
1555
+ SX: `${n}-sx`,
1556
+ SY: `${n}-sy`,
1557
+ SZ: `${n}-sz`,
1558
+ TC: `${n}-tc`,
1559
+ TD: `${n}-td`,
1560
+ TG: `${n}-tg`,
1561
+ TH: `${n}-th`,
1562
+ TJ: `${n}-tj`,
1563
+ TK: `${n}-tk`,
1564
+ TL: `${n}-tl`,
1565
+ TM: `${n}-tm`,
1566
+ TN: `${n}-tn`,
1567
+ TO: `${n}-to`,
1568
+ TR: `${n}-tr`,
1569
+ TT: `${n}-tt`,
1570
+ TV: `${n}-tv`,
1571
+ TW: `${n}-tw`,
1572
+ TZ: `${n}-tz`,
1573
+ UA: `${n}-ua`,
1574
+ UG: `${n}-ug`,
1575
+ US: `${n}-us`,
1576
+ UY: `${n}-uy`,
1577
+ UZ: `${n}-uz`,
1578
+ VA: `${n}-va`,
1579
+ VC: `${n}-vc`,
1580
+ VE: `${n}-ve`,
1581
+ VG: `${n}-vg`,
1582
+ VI: `${n}-vi`,
1583
+ VN: `${n}-vn`,
1584
+ VU: `${n}-vu`,
1585
+ WF: `${n}-wf`,
1586
+ WS: `${n}-ws`,
1587
+ YE: `${n}-ye`,
1588
+ YT: `${n}-yt`,
1589
+ ZA: `${n}-za`,
1590
+ ZM: `${n}-zm`,
1591
+ ZW: `${n}-zw`
1581
1592
  });
1582
- let ot = E, x;
1583
- class Ne {
1593
+ let at = P, H;
1594
+ class Re {
1584
1595
  /**
1585
1596
  * Returns the value by its name.
1586
1597
  *
@@ -1588,7 +1599,7 @@ class Ne {
1588
1599
  * @param name property name/ название свойства
1589
1600
  */
1590
1601
  static get(t) {
1591
- return x && (x == null ? void 0 : x[t]);
1602
+ return H && (H == null ? void 0 : H[t]);
1592
1603
  }
1593
1604
  /**
1594
1605
  * Adds data, this method works only once.
@@ -1597,10 +1608,10 @@ class Ne {
1597
1608
  * @param data global data/ глобальные данные
1598
1609
  */
1599
1610
  static add(t) {
1600
- x === void 0 && (x = { ...t });
1611
+ H === void 0 && (H = Et(t));
1601
1612
  }
1602
1613
  }
1603
- function Zt(i) {
1614
+ function qt(i) {
1604
1615
  return i.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;").trim();
1605
1616
  }
1606
1617
  class dt {
@@ -1612,7 +1623,7 @@ class dt {
1612
1623
  * @param isProperty use 'property' attribute instead of 'name' / использовать атрибут 'property' вместо 'name'
1613
1624
  */
1614
1625
  constructor(t, e = !1) {
1615
- u(this, "items", {});
1626
+ c(this, "items", {});
1616
1627
  this.listMeta = t, this.isProperty = e, this.update();
1617
1628
  }
1618
1629
  /**
@@ -1647,7 +1658,7 @@ class dt {
1647
1658
  * Возвращает все мета-теги в виде HTML-строки.
1648
1659
  */
1649
1660
  html() {
1650
- return $(
1661
+ return p(
1651
1662
  this.listMeta,
1652
1663
  (e) => this.toHtmlString(e)
1653
1664
  ).join("");
@@ -1669,7 +1680,7 @@ class dt {
1669
1680
  * @param metaList object with meta tag names and content / объект с именами и содержимым мета-тегов
1670
1681
  */
1671
1682
  setByList(t) {
1672
- return $(
1683
+ return p(
1673
1684
  t,
1674
1685
  (e, s) => this.set(s, String(e))
1675
1686
  ), this;
@@ -1689,7 +1700,7 @@ class dt {
1689
1700
  * @param name meta tag name / имя мета-тега
1690
1701
  */
1691
1702
  findMetaElement(t) {
1692
- if (!y())
1703
+ if (!m())
1693
1704
  return;
1694
1705
  const e = `meta[${this.getAttributeName()}="${t}"]`;
1695
1706
  return document.querySelector(e) || void 0;
@@ -1711,13 +1722,13 @@ class dt {
1711
1722
  * @param name meta tag name / имя мета-тега
1712
1723
  */
1713
1724
  setMeta(t) {
1714
- var n;
1715
- const e = this.findMetaElement(t), s = (n = this.items[t]) != null ? n : "";
1725
+ var r;
1726
+ const e = this.findMetaElement(t), s = (r = this.items[t]) != null ? r : "";
1716
1727
  if (e)
1717
1728
  e.content = s;
1718
- else if (y()) {
1729
+ else if (m()) {
1719
1730
  const o = { content: s };
1720
- this.isProperty ? o.property = t : o.name = t, Bt(document.head, "meta", o);
1731
+ this.isProperty ? o.property = t : o.name = t, bt(document.head, "meta", o);
1721
1732
  }
1722
1733
  return this;
1723
1734
  }
@@ -1729,7 +1740,7 @@ class dt {
1729
1740
  */
1730
1741
  toHtmlString(t) {
1731
1742
  var s;
1732
- const e = Zt((s = this.items[t]) != null ? s : "");
1743
+ const e = qt((s = this.items[t]) != null ? s : "");
1733
1744
  return e ? `<meta ${this.getAttributeName()}="${t}" content="${e}">` : "";
1734
1745
  }
1735
1746
  /**
@@ -1744,10 +1755,10 @@ class dt {
1744
1755
  }), this;
1745
1756
  }
1746
1757
  }
1747
- var L = /* @__PURE__ */ ((i) => (i.description = "description", i.keywords = "keywords", i.canonical = "canonical", i.robots = "robots", i.author = "author", i))(L || {}), Vt = /* @__PURE__ */ ((i) => (i.indexFollow = "index, follow", i.noIndexFollow = "noindex, follow", i.indexNoFollow = "index, nofollow", i.noIndexNoFollow = "noindex, nofollow", i.noArchive = "noarchive", i.noSnippet = "nosnippet", i.noImageIndex = "noimageindex", i.images = "images", i.noTranslate = "notranslate", i.noPreview = "nopreview", i.textOnly = "textonly", i.noIndexSubpages = "noindex, noarchive", i.none = "none", i))(Vt || {}), v = /* @__PURE__ */ ((i) => (i.title = "og:title", i.type = "og:type", i.url = "og:url", i.image = "og:image", i.description = "og:description", i.locale = "og:locale", i.siteName = "og:site_name", i.localeAlternate = "og:locale:alternate", i.imageUrl = "og:image:url", i.imageSecureUrl = "og:image:secure_url", i.imageType = "og:image:type", i.imageWidth = "og:image:width", i.imageHeight = "og:image:height", i.imageAlt = "og:image:alt", i.video = "og:video", i.videoUrl = "og:video:url", i.videoSecureUrl = "og:video:secure_url", i.videoType = "og:video:type", i.videoWidth = "og:video:width", i.videoHeight = "og:video:height", i.audio = "og:audio", i.audioSecureUrl = "og:audio:secure_url", i.audioType = "og:audio:type", i.articlePublishedTime = "article:published_time", i.articleModifiedTime = "article:modified_time", i.articleExpirationTime = "article:expiration_time", i.articleAuthor = "article:author", i.articleSection = "article:section", i.articleTag = "article:tag", i.bookAuthor = "book:author", i.bookIsbn = "book:isbn", i.bookReleaseDate = "book:release_date", i.bookTag = "book:tag", i.musicDuration = "music:duration", i.musicAlbum = "music:album", i.musicAlbumDisc = "music:album:disc", i.musicAlbumTrack = "music:album:track", i.musicMusician = "music:musician", i.musicSong = "music:song", i.musicSongDisc = "music:song:disc", i.musicSongTrack = "music:song:track", i.musicReleaseDate = "music:release_date", i.musicCreator = "music:creator", i.videoActor = "video:actor", i.videoActorRole = "video:actor:role", i.videoDirector = "video:director", i.videoWriter = "video:writer", i.videoDuration = "video:duration", i.videoReleaseDate = "video:release_date", i.videoTag = "video:tag", i.videoSeries = "video:series", i.profileFirstName = "profile:first_name", i.profileLastName = "profile:last_name", i.profileUsername = "profile:username", i.profileGender = "profile:gender", i.productBrand = "product:brand", i.productAvailability = "product:availability", i.productCondition = "product:condition", i.productPriceAmount = "product:price:amount", i.productPriceCurrency = "product:price:currency", i.productRetailerItemId = "product:retailer_item_id", i.productCategory = "product:category", i.productEan = "product:ean", i.productIsbn = "product:isbn", i.productMfrPartNo = "product:mfr_part_no", i.productUpc = "product:upc", i.productWeightValue = "product:weight:value", i.productWeightUnits = "product:weight:units", i.productColor = "product:color", i.productMaterial = "product:material", i.productPattern = "product:pattern", i.productAgeGroup = "product:age_group", i.productGender = "product:gender", i))(v || {}), Yt = /* @__PURE__ */ ((i) => (i.website = "website", i.article = "article", i.video = "video.other", i.videoTvShow = "video.tv_show", i.videoEpisode = "video.episode", i.videoMovie = "video.movie", i.musicAlbum = "music.album", i.musicPlaylist = "music.playlist", i.musicSong = "music.song", i.musicRadioStation = "music.radio_station", i.app = "app", i.product = "product", i.business = "business.business", i.place = "place", i.event = "event", i.profile = "profile", i.book = "book", i))(Yt || {}), qt = /* @__PURE__ */ ((i) => (i.inStock = "in stock", i.outOfStock = "out of stock", i.preorder = "preorder", i.backorder = "backorder", i.discontinued = "discontinued", i.pending = "pending", i))(qt || {}), Jt = /* @__PURE__ */ ((i) => (i.new = "new", i.used = "used", i.refurbished = "refurbished", i))(Jt || {}), Qt = /* @__PURE__ */ ((i) => (i.newborn = "newborn", i.infant = "infant", i.toddler = "toddler", i.kids = "kids", i.adult = "adult", i))(Qt || {}), Xt = /* @__PURE__ */ ((i) => (i.female = "female", i.male = "male", i.unisex = "unisex", i))(Xt || {}), b = /* @__PURE__ */ ((i) => (i.card = "twitter:card", i.site = "twitter:site", i.creator = "twitter:creator", i.url = "twitter:url", i.title = "twitter:title", i.description = "twitter:description", i.image = "twitter:image", i.imageAlt = "twitter:image:alt", i.imageSrc = "twitter:image:src", i.imageWidth = "twitter:image:width", i.imageHeight = "twitter:image:height", i.label1 = "twitter:label1", i.data1 = "twitter:data1", i.label2 = "twitter:label2", i.data2 = "twitter:data2", i.appNameIphone = "twitter:app:name:iphone", i.appIdIphone = "twitter:app:id:iphone", i.appUrlIphone = "twitter:app:url:iphone", i.appNameIpad = "twitter:app:name:ipad", i.appIdIpad = "twitter:app:id:ipad", i.appUrlIpad = "twitter:app:url:ipad", i.appNameGooglePlay = "twitter:app:name:googleplay", i.appIdGooglePlay = "twitter:app:id:googleplay", i.appUrlGooglePlay = "twitter:app:url:googleplay", i.player = "twitter:player", i.playerWidth = "twitter:player:width", i.playerHeight = "twitter:player:height", i.playerStream = "twitter:player:stream", i.playerStreamContentType = "twitter:player:stream:content_type", i))(b || {}), Mt = /* @__PURE__ */ ((i) => (i.summary = "summary", i.summaryLargeImage = "summary_large_image", i.app = "app", i.player = "player", i.product = "product", i.gallery = "gallery", i.photo = "photo", i.leadGeneration = "lead_generation", i.audio = "audio", i.poll = "poll", i))(Mt || {});
1748
- class Ot extends dt {
1758
+ var L = /* @__PURE__ */ ((i) => (i.description = "description", i.keywords = "keywords", i.canonical = "canonical", i.robots = "robots", i.author = "author", i))(L || {}), Jt = /* @__PURE__ */ ((i) => (i.indexFollow = "index, follow", i.noIndexFollow = "noindex, follow", i.indexNoFollow = "index, nofollow", i.noIndexNoFollow = "noindex, nofollow", i.noArchive = "noarchive", i.noSnippet = "nosnippet", i.noImageIndex = "noimageindex", i.images = "images", i.noTranslate = "notranslate", i.noPreview = "nopreview", i.textOnly = "textonly", i.noIndexSubpages = "noindex, noarchive", i.none = "none", i))(Jt || {}), b = /* @__PURE__ */ ((i) => (i.title = "og:title", i.type = "og:type", i.url = "og:url", i.image = "og:image", i.description = "og:description", i.locale = "og:locale", i.siteName = "og:site_name", i.localeAlternate = "og:locale:alternate", i.imageUrl = "og:image:url", i.imageSecureUrl = "og:image:secure_url", i.imageType = "og:image:type", i.imageWidth = "og:image:width", i.imageHeight = "og:image:height", i.imageAlt = "og:image:alt", i.video = "og:video", i.videoUrl = "og:video:url", i.videoSecureUrl = "og:video:secure_url", i.videoType = "og:video:type", i.videoWidth = "og:video:width", i.videoHeight = "og:video:height", i.audio = "og:audio", i.audioSecureUrl = "og:audio:secure_url", i.audioType = "og:audio:type", i.articlePublishedTime = "article:published_time", i.articleModifiedTime = "article:modified_time", i.articleExpirationTime = "article:expiration_time", i.articleAuthor = "article:author", i.articleSection = "article:section", i.articleTag = "article:tag", i.bookAuthor = "book:author", i.bookIsbn = "book:isbn", i.bookReleaseDate = "book:release_date", i.bookTag = "book:tag", i.musicDuration = "music:duration", i.musicAlbum = "music:album", i.musicAlbumDisc = "music:album:disc", i.musicAlbumTrack = "music:album:track", i.musicMusician = "music:musician", i.musicSong = "music:song", i.musicSongDisc = "music:song:disc", i.musicSongTrack = "music:song:track", i.musicReleaseDate = "music:release_date", i.musicCreator = "music:creator", i.videoActor = "video:actor", i.videoActorRole = "video:actor:role", i.videoDirector = "video:director", i.videoWriter = "video:writer", i.videoDuration = "video:duration", i.videoReleaseDate = "video:release_date", i.videoTag = "video:tag", i.videoSeries = "video:series", i.profileFirstName = "profile:first_name", i.profileLastName = "profile:last_name", i.profileUsername = "profile:username", i.profileGender = "profile:gender", i.productBrand = "product:brand", i.productAvailability = "product:availability", i.productCondition = "product:condition", i.productPriceAmount = "product:price:amount", i.productPriceCurrency = "product:price:currency", i.productRetailerItemId = "product:retailer_item_id", i.productCategory = "product:category", i.productEan = "product:ean", i.productIsbn = "product:isbn", i.productMfrPartNo = "product:mfr_part_no", i.productUpc = "product:upc", i.productWeightValue = "product:weight:value", i.productWeightUnits = "product:weight:units", i.productColor = "product:color", i.productMaterial = "product:material", i.productPattern = "product:pattern", i.productAgeGroup = "product:age_group", i.productGender = "product:gender", i))(b || {}), Qt = /* @__PURE__ */ ((i) => (i.website = "website", i.article = "article", i.video = "video.other", i.videoTvShow = "video.tv_show", i.videoEpisode = "video.episode", i.videoMovie = "video.movie", i.musicAlbum = "music.album", i.musicPlaylist = "music.playlist", i.musicSong = "music.song", i.musicRadioStation = "music.radio_station", i.app = "app", i.product = "product", i.business = "business.business", i.place = "place", i.event = "event", i.profile = "profile", i.book = "book", i))(Qt || {}), Xt = /* @__PURE__ */ ((i) => (i.inStock = "in stock", i.outOfStock = "out of stock", i.preorder = "preorder", i.backorder = "backorder", i.discontinued = "discontinued", i.pending = "pending", i))(Xt || {}), Mt = /* @__PURE__ */ ((i) => (i.new = "new", i.used = "used", i.refurbished = "refurbished", i))(Mt || {}), Ot = /* @__PURE__ */ ((i) => (i.newborn = "newborn", i.infant = "infant", i.toddler = "toddler", i.kids = "kids", i.adult = "adult", i))(Ot || {}), Tt = /* @__PURE__ */ ((i) => (i.female = "female", i.male = "male", i.unisex = "unisex", i))(Tt || {}), S = /* @__PURE__ */ ((i) => (i.card = "twitter:card", i.site = "twitter:site", i.creator = "twitter:creator", i.url = "twitter:url", i.title = "twitter:title", i.description = "twitter:description", i.image = "twitter:image", i.imageAlt = "twitter:image:alt", i.imageSrc = "twitter:image:src", i.imageWidth = "twitter:image:width", i.imageHeight = "twitter:image:height", i.label1 = "twitter:label1", i.data1 = "twitter:data1", i.label2 = "twitter:label2", i.data2 = "twitter:data2", i.appNameIphone = "twitter:app:name:iphone", i.appIdIphone = "twitter:app:id:iphone", i.appUrlIphone = "twitter:app:url:iphone", i.appNameIpad = "twitter:app:name:ipad", i.appIdIpad = "twitter:app:id:ipad", i.appUrlIpad = "twitter:app:url:ipad", i.appNameGooglePlay = "twitter:app:name:googleplay", i.appIdGooglePlay = "twitter:app:id:googleplay", i.appUrlGooglePlay = "twitter:app:url:googleplay", i.player = "twitter:player", i.playerWidth = "twitter:player:width", i.playerHeight = "twitter:player:height", i.playerStream = "twitter:player:stream", i.playerStreamContentType = "twitter:player:stream:content_type", i))(S || {}), Gt = /* @__PURE__ */ ((i) => (i.summary = "summary", i.summaryLargeImage = "summary_large_image", i.app = "app", i.player = "player", i.product = "product", i.gallery = "gallery", i.photo = "photo", i.leadGeneration = "lead_generation", i.audio = "audio", i.poll = "poll", i))(Gt || {});
1759
+ class te extends dt {
1749
1760
  constructor() {
1750
- super(Object.values(v), !0);
1761
+ super(Object.values(b), !0);
1751
1762
  }
1752
1763
  /**
1753
1764
  * Gets the Open Graph title.
@@ -1755,7 +1766,7 @@ class Ot extends dt {
1755
1766
  * Получает заголовок Open Graph.
1756
1767
  */
1757
1768
  getTitle() {
1758
- return this.get(v.title);
1769
+ return this.get(b.title);
1759
1770
  }
1760
1771
  /**
1761
1772
  * Gets the Open Graph type.
@@ -1763,7 +1774,7 @@ class Ot extends dt {
1763
1774
  * Получает тип Open Graph.
1764
1775
  */
1765
1776
  getType() {
1766
- return this.get(v.type);
1777
+ return this.get(b.type);
1767
1778
  }
1768
1779
  /**
1769
1780
  * Gets the Open Graph URL.
@@ -1771,7 +1782,7 @@ class Ot extends dt {
1771
1782
  * Получает URL Open Graph.
1772
1783
  */
1773
1784
  getUrl() {
1774
- return this.get(v.url);
1785
+ return this.get(b.url);
1775
1786
  }
1776
1787
  /**
1777
1788
  * Gets the Open Graph image URL.
@@ -1779,7 +1790,7 @@ class Ot extends dt {
1779
1790
  * Получает URL изображения Open Graph.
1780
1791
  */
1781
1792
  getImage() {
1782
- return this.get(v.image);
1793
+ return this.get(b.image);
1783
1794
  }
1784
1795
  /**
1785
1796
  * Gets the Open Graph description.
@@ -1787,7 +1798,7 @@ class Ot extends dt {
1787
1798
  * Получает описание Open Graph.
1788
1799
  */
1789
1800
  getDescription() {
1790
- return this.get(v.description);
1801
+ return this.get(b.description);
1791
1802
  }
1792
1803
  /**
1793
1804
  * Gets the Open Graph locale.
@@ -1795,7 +1806,7 @@ class Ot extends dt {
1795
1806
  * Получает локаль Open Graph.
1796
1807
  */
1797
1808
  getLocale() {
1798
- return this.get(v.locale);
1809
+ return this.get(b.locale);
1799
1810
  }
1800
1811
  /**
1801
1812
  * Gets the Open Graph site name.
@@ -1803,7 +1814,7 @@ class Ot extends dt {
1803
1814
  * Получает название сайта Open Graph.
1804
1815
  */
1805
1816
  getSiteName() {
1806
- return this.get(v.siteName);
1817
+ return this.get(b.siteName);
1807
1818
  }
1808
1819
  /**
1809
1820
  * Sets the Open Graph title.
@@ -1812,7 +1823,7 @@ class Ot extends dt {
1812
1823
  * @param title title / заголовок
1813
1824
  */
1814
1825
  setTitle(t) {
1815
- return this.set(v.title, t);
1826
+ return this.set(b.title, t);
1816
1827
  }
1817
1828
  /**
1818
1829
  * Sets the Open Graph type.
@@ -1821,7 +1832,7 @@ class Ot extends dt {
1821
1832
  * @param type type / тип
1822
1833
  */
1823
1834
  setType(t) {
1824
- return this.set(v.type, t);
1835
+ return this.set(b.type, t);
1825
1836
  }
1826
1837
  /**
1827
1838
  * Sets the Open Graph URL.
@@ -1830,7 +1841,7 @@ class Ot extends dt {
1830
1841
  * @param url URL / URL
1831
1842
  */
1832
1843
  setUrl(t) {
1833
- return this.set(v.url, t);
1844
+ return this.set(b.url, t);
1834
1845
  }
1835
1846
  /**
1836
1847
  * Sets the Open Graph image URL.
@@ -1839,7 +1850,7 @@ class Ot extends dt {
1839
1850
  * @param url image URL / URL изображения
1840
1851
  */
1841
1852
  setImage(t) {
1842
- return this.set(v.image, t);
1853
+ return this.set(b.image, t);
1843
1854
  }
1844
1855
  /**
1845
1856
  * Sets the Open Graph description.
@@ -1848,7 +1859,7 @@ class Ot extends dt {
1848
1859
  * @param description description / описание
1849
1860
  */
1850
1861
  setDescription(t) {
1851
- return this.set(v.description, t);
1862
+ return this.set(b.description, t);
1852
1863
  }
1853
1864
  /**
1854
1865
  * Sets the Open Graph locale.
@@ -1857,7 +1868,7 @@ class Ot extends dt {
1857
1868
  * @param locale locale (e.g. 'en_US', 'ru_RU') / локаль (например, 'en_US', 'ru_RU')
1858
1869
  */
1859
1870
  setLocale(t) {
1860
- return this.set(v.locale, t);
1871
+ return this.set(b.locale, t);
1861
1872
  }
1862
1873
  /**
1863
1874
  * Sets the Open Graph site name.
@@ -1866,12 +1877,12 @@ class Ot extends dt {
1866
1877
  * @param siteName site name / название сайта
1867
1878
  */
1868
1879
  setSiteName(t) {
1869
- return this.set(v.siteName, t);
1880
+ return this.set(b.siteName, t);
1870
1881
  }
1871
1882
  }
1872
- class Tt extends dt {
1883
+ class ee extends dt {
1873
1884
  constructor() {
1874
- super(Object.values(b));
1885
+ super(Object.values(S));
1875
1886
  }
1876
1887
  /**
1877
1888
  * Gets the Twitter Card type.
@@ -1879,7 +1890,7 @@ class Tt extends dt {
1879
1890
  * Получает тип Twitter Card.
1880
1891
  */
1881
1892
  getCard() {
1882
- return this.get(b.card);
1893
+ return this.get(S.card);
1883
1894
  }
1884
1895
  /**
1885
1896
  * Gets the website or brand @username.
@@ -1887,7 +1898,7 @@ class Tt extends dt {
1887
1898
  * Получает аккаунт сайта или бренда (@username).
1888
1899
  */
1889
1900
  getSite() {
1890
- return this.get(b.site);
1901
+ return this.get(S.site);
1891
1902
  }
1892
1903
  /**
1893
1904
  * Gets the content creator @username.
@@ -1895,7 +1906,7 @@ class Tt extends dt {
1895
1906
  * Получает автора контента (@username).
1896
1907
  */
1897
1908
  getCreator() {
1898
- return this.get(b.creator);
1909
+ return this.get(S.creator);
1899
1910
  }
1900
1911
  /**
1901
1912
  * Gets the page URL.
@@ -1903,7 +1914,7 @@ class Tt extends dt {
1903
1914
  * Получает URL страницы.
1904
1915
  */
1905
1916
  getUrl() {
1906
- return this.get(b.url);
1917
+ return this.get(S.url);
1907
1918
  }
1908
1919
  /**
1909
1920
  * Gets the card title.
@@ -1911,7 +1922,7 @@ class Tt extends dt {
1911
1922
  * Получает заголовок карточки.
1912
1923
  */
1913
1924
  getTitle() {
1914
- return this.get(b.title);
1925
+ return this.get(S.title);
1915
1926
  }
1916
1927
  /**
1917
1928
  * Gets the card description.
@@ -1919,7 +1930,7 @@ class Tt extends dt {
1919
1930
  * Получает описание карточки.
1920
1931
  */
1921
1932
  getDescription() {
1922
- return this.get(b.description);
1933
+ return this.get(S.description);
1923
1934
  }
1924
1935
  /**
1925
1936
  * Gets the card image URL.
@@ -1927,7 +1938,7 @@ class Tt extends dt {
1927
1938
  * Получает URL изображения карточки.
1928
1939
  */
1929
1940
  getImage() {
1930
- return this.get(b.image);
1941
+ return this.get(S.image);
1931
1942
  }
1932
1943
  /**
1933
1944
  * Sets the Twitter Card type.
@@ -1936,7 +1947,7 @@ class Tt extends dt {
1936
1947
  * @param card card type / тип карточки
1937
1948
  */
1938
1949
  setCard(t) {
1939
- return this.set(b.card, t), this;
1950
+ return this.set(S.card, t), this;
1940
1951
  }
1941
1952
  /**
1942
1953
  * Sets the website or brand @username.
@@ -1945,7 +1956,7 @@ class Tt extends dt {
1945
1956
  * @param site @username / аккаунт
1946
1957
  */
1947
1958
  setSite(t) {
1948
- return this.set(b.site, t), this;
1959
+ return this.set(S.site, t), this;
1949
1960
  }
1950
1961
  /**
1951
1962
  * Sets the content creator @username.
@@ -1954,7 +1965,7 @@ class Tt extends dt {
1954
1965
  * @param creator @username / аккаунт автора
1955
1966
  */
1956
1967
  setCreator(t) {
1957
- return this.set(b.creator, t), this;
1968
+ return this.set(S.creator, t), this;
1958
1969
  }
1959
1970
  /**
1960
1971
  * Sets the page URL.
@@ -1963,7 +1974,7 @@ class Tt extends dt {
1963
1974
  * @param url URL / URL
1964
1975
  */
1965
1976
  setUrl(t) {
1966
- return this.set(b.url, t), this;
1977
+ return this.set(S.url, t), this;
1967
1978
  }
1968
1979
  /**
1969
1980
  * Sets the card title.
@@ -1972,7 +1983,7 @@ class Tt extends dt {
1972
1983
  * @param title title / заголовок
1973
1984
  */
1974
1985
  setTitle(t) {
1975
- return this.set(b.title, t), this;
1986
+ return this.set(S.title, t), this;
1976
1987
  }
1977
1988
  /**
1978
1989
  * Sets the card description.
@@ -1981,7 +1992,7 @@ class Tt extends dt {
1981
1992
  * @param description description / описание
1982
1993
  */
1983
1994
  setDescription(t) {
1984
- return this.set(b.description, t), this;
1995
+ return this.set(S.description, t), this;
1985
1996
  }
1986
1997
  /**
1987
1998
  * Sets the card image URL.
@@ -1990,10 +2001,10 @@ class Tt extends dt {
1990
2001
  * @param image image URL / URL изображения
1991
2002
  */
1992
2003
  setImage(t) {
1993
- return this.set(b.image, t), this;
2004
+ return this.set(S.image, t), this;
1994
2005
  }
1995
2006
  }
1996
- class Gt extends dt {
2007
+ class ie extends dt {
1997
2008
  /**
1998
2009
  * Creates an instance of Meta with integrated Open Graph and Twitter Card support.
1999
2010
  *
@@ -2001,10 +2012,10 @@ class Gt extends dt {
2001
2012
  */
2002
2013
  constructor() {
2003
2014
  super(Object.values(L));
2004
- u(this, "suffix");
2005
- u(this, "og");
2006
- u(this, "twitter");
2007
- this.og = new Ot(), this.twitter = new Tt();
2015
+ c(this, "suffix");
2016
+ c(this, "og");
2017
+ c(this, "twitter");
2018
+ this.og = new te(), this.twitter = new ee();
2008
2019
  }
2009
2020
  /**
2010
2021
  * Gets the MetaOg instance for advanced Open Graph operations.
@@ -2028,7 +2039,7 @@ class Gt extends dt {
2028
2039
  * Получает заголовок страницы без суффикса.
2029
2040
  */
2030
2041
  getTitle() {
2031
- return y() ? document.title.replace(this.getSuffix(), "").trim() : "";
2042
+ return m() ? document.title.replace(this.getSuffix(), "").trim() : "";
2032
2043
  }
2033
2044
  /**
2034
2045
  * Gets the keywords meta tag.
@@ -2101,8 +2112,8 @@ class Gt extends dt {
2101
2112
  * @param title page title / заголовок страницы
2102
2113
  */
2103
2114
  setTitle(e) {
2104
- if (y()) {
2105
- const s = _(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
2115
+ if (m()) {
2116
+ const s = K(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
2106
2117
  document.title = s, this.og.setTitle(s), this.twitter.setTitle(s);
2107
2118
  }
2108
2119
  return this;
@@ -2114,7 +2125,7 @@ class Gt extends dt {
2114
2125
  * @param keywords keywords as string or array / ключевые слова в виде строки или массива
2115
2126
  */
2116
2127
  setKeywords(e) {
2117
- return this.set(L.keywords, W(e).join(", ")), this;
2128
+ return this.set(L.keywords, z(e).join(", ")), this;
2118
2129
  }
2119
2130
  /**
2120
2131
  * Sets the description meta tag.
@@ -2202,10 +2213,10 @@ class Gt extends dt {
2202
2213
  * Получает отформатированный суффикс с разделителем.
2203
2214
  */
2204
2215
  getSuffix() {
2205
- return _(this.suffix) ? ` - ${this.suffix}` : "";
2216
+ return K(this.suffix) ? ` - ${this.suffix}` : "";
2206
2217
  }
2207
2218
  }
2208
- const te = [
2219
+ const se = [
2209
2220
  "d",
2210
2221
  "e",
2211
2222
  "f",
@@ -2225,21 +2236,21 @@ const te = [
2225
2236
  "t",
2226
2237
  "u",
2227
2238
  "v"
2228
- ], ee = (i, t = {}) => {
2239
+ ], re = (i, t = {}) => {
2229
2240
  let e = String(i);
2230
2241
  if (i.match(/%[a-z]/)) {
2231
2242
  let s = 0;
2232
- $(t, (n) => {
2233
- e = e.replace(new RegExp(`%${te[s++]}`, "g"), String(n));
2243
+ p(t, (r) => {
2244
+ e = e.replace(new RegExp(`%${se[s++]}`, "g"), String(r));
2234
2245
  });
2235
2246
  }
2236
- return F(t) && $(t, (s, n) => {
2247
+ return E(t) && p(t, (s, r) => {
2237
2248
  e = e.replace(
2238
- new RegExp(`\\[${n}\\](.*?)\\[/${n}\\]`, "g"),
2249
+ new RegExp(`\\[${r}\\](.*?)\\[/${r}\\]`, "g"),
2239
2250
  (o, a) => String(s).replace(/\[content]/g, a)
2240
- ).replace(new RegExp(`\\[${n}\\]`, "g"), String(s));
2251
+ ).replace(new RegExp(`\\[${r}\\]`, "g"), String(s));
2241
2252
  }), e;
2242
- }, I = class I {
2253
+ }, C = class C {
2243
2254
  /**
2244
2255
  * Getting the translation text by its code.
2245
2256
  *
@@ -2248,9 +2259,9 @@ const te = [
2248
2259
  * @param replacement If set, replaces the text with the specified values/ если установлено, заменяет текст на указанные значения
2249
2260
  */
2250
2261
  static async get(t, e) {
2251
- var n, o;
2262
+ var r, o;
2252
2263
  const s = this.getName(t);
2253
- return s in this.data ? this.replacement(this.data[s], e) : (V.isLocalhost() || await this.add(t), this.replacement((o = (n = this.data) == null ? void 0 : n[s]) != null ? o : t));
2264
+ return s in this.data ? this.replacement(this.data[s], e) : (Y.isLocalhost() || await this.add(t), this.replacement((o = (r = this.data) == null ? void 0 : r[s]) != null ? o : t));
2254
2265
  }
2255
2266
  /**
2256
2267
  * Getting the translation text by its code (Sync).
@@ -2263,8 +2274,8 @@ const te = [
2263
2274
  * если установлено, заменяет текст на указанные значения
2264
2275
  */
2265
2276
  static getSync(t, e = !1, s) {
2266
- const n = this.getName(t);
2267
- return n in this.data ? this.replacement(String(this.data[n]), s) : e ? " " : t;
2277
+ const r = this.getName(t);
2278
+ return r in this.data ? this.replacement(String(this.data[r]), s) : e ? " " : t;
2268
2279
  }
2269
2280
  /**
2270
2281
  * Getting a list of translations by an array of text codes.
@@ -2275,11 +2286,11 @@ const te = [
2275
2286
  static getList(t) {
2276
2287
  return new Promise((e) => {
2277
2288
  const s = {};
2278
- let n = 0;
2289
+ let r = 0;
2279
2290
  for (const o of t) {
2280
- const a = Array.isArray(o) ? o[0] : o, c = Array.isArray(o) ? o.slice(1) : void 0;
2281
- this.get(a, c).then((h) => {
2282
- s[a] = h, ++n >= t.length && e(s);
2291
+ const a = Array.isArray(o) ? o[0] : o, u = Array.isArray(o) ? o.slice(1) : void 0;
2292
+ this.get(a, u).then((h) => {
2293
+ s[a] = h, ++r >= t.length && e(s);
2283
2294
  });
2284
2295
  }
2285
2296
  });
@@ -2294,8 +2305,8 @@ const te = [
2294
2305
  */
2295
2306
  static getListSync(t, e = !1) {
2296
2307
  const s = {};
2297
- for (const n of t) {
2298
- const o = Array.isArray(n) ? n[0] : n, a = Array.isArray(n) ? n.slice(1) : void 0;
2308
+ for (const r of t) {
2309
+ const o = Array.isArray(r) ? r[0] : r, a = Array.isArray(r) ? r.slice(1) : void 0;
2299
2310
  s[o] = this.getSync(o, e, a);
2300
2311
  }
2301
2312
  return s;
@@ -2310,7 +2321,7 @@ const te = [
2310
2321
  return new Promise((e) => {
2311
2322
  this.getNamesNone(t).length > 0 ? (this.cache.push(...this.getNamesNone(t)), this.resolveList.push(e), this.timeout && clearTimeout(this.timeout), this.timeout = setTimeout(() => {
2312
2323
  this.timeout = void 0, this.make().then(() => {
2313
- this.resolveList.forEach((n) => n()), this.resolveList = [];
2324
+ this.resolveList.forEach((r) => r()), this.resolveList = [];
2314
2325
  });
2315
2326
  }, 160)) : e();
2316
2327
  });
@@ -2322,8 +2333,8 @@ const te = [
2322
2333
  * @param data list of texts in the form of key-value/ список текстов в виде ключ-значение
2323
2334
  */
2324
2335
  static addSync(t) {
2325
- $(t, (e, s) => {
2326
- ct(e) && _(e) && (this.data[this.getName(s)] = e);
2336
+ p(t, (e, s) => {
2337
+ Q(e) && K(e) && (this.data[this.getName(s)] = e);
2327
2338
  });
2328
2339
  }
2329
2340
  /**
@@ -2333,8 +2344,8 @@ const te = [
2333
2344
  * @param data list of texts in the form of key-value/ список текстов в виде ключ-значение
2334
2345
  */
2335
2346
  static async addNormalOrSync(t) {
2336
- if (_(t))
2337
- if (V.isLocalhost())
2347
+ if (K(t))
2348
+ if (Y.isLocalhost())
2338
2349
  this.addSync(t);
2339
2350
  else {
2340
2351
  const e = Object.keys(t);
@@ -2348,7 +2359,7 @@ const te = [
2348
2359
  * @param url path to the script/ путь к скрипту
2349
2360
  */
2350
2361
  static setUrl(t) {
2351
- return this.url = t, I;
2362
+ return this.url = t, C;
2352
2363
  }
2353
2364
  static setPropsName(t) {
2354
2365
  return this.propsName = t, this;
@@ -2360,7 +2371,7 @@ const te = [
2360
2371
  * @param name code name/ название кода
2361
2372
  */
2362
2373
  static getName(t) {
2363
- return `${w.getLocation()}-${t}`;
2374
+ return `${D.getLocation()}-${t}`;
2364
2375
  }
2365
2376
  /**
2366
2377
  * Returns a list of names that are not yet in the list.
@@ -2370,7 +2381,7 @@ const te = [
2370
2381
  */
2371
2382
  static getNamesNone(t) {
2372
2383
  const e = [];
2373
- return W(t).forEach((s) => {
2384
+ return z(t).forEach((s) => {
2374
2385
  s !== "__TRANSLATE_START__" && s !== "__TRANSLATE_END__" && !(this.getName(s) in this.data) && e.push(s);
2375
2386
  }), e;
2376
2387
  }
@@ -2380,7 +2391,7 @@ const te = [
2380
2391
  * Получение списка переводов с сервера.
2381
2392
  */
2382
2393
  static async getResponse() {
2383
- const t = await V.get({
2394
+ const t = await Y.get({
2384
2395
  api: !1,
2385
2396
  path: this.url,
2386
2397
  request: {
@@ -2399,7 +2410,7 @@ const te = [
2399
2410
  * @param replacement values for replacement/ значения для замены
2400
2411
  */
2401
2412
  static replacement(t, e) {
2402
- return e ? ee(t, e) : t;
2413
+ return e ? re(t, e) : t;
2403
2414
  }
2404
2415
  /**
2405
2416
  * Adding translation data from the server.
@@ -2414,152 +2425,185 @@ const te = [
2414
2425
  }), this.cache = [];
2415
2426
  }
2416
2427
  };
2417
- u(I, "url", "/api/translate"), u(I, "propsName", "list"), u(I, "data", {}), u(I, "cache", []), u(I, "resolveList", []), u(I, "timeout");
2418
- let q = I;
2428
+ c(C, "url", "/api/translate"), c(C, "propsName", "list"), c(C, "data", {}), c(C, "cache", []), c(C, "resolveList", []), c(C, "timeout");
2429
+ let q = C;
2419
2430
  function gt(i) {
2420
2431
  return Array.isArray(i);
2421
2432
  }
2422
- function Ae(i) {
2433
+ function Pe(i) {
2423
2434
  var t;
2424
- return ct(i) ? i.trim() : gt(i) && i.findIndex((e) => S(e)) === -1 ? i.join(",") : S(i) ? JSON.stringify(i) : i === !0 ? "1" : i === !1 ? "0" : (t = i == null ? void 0 : i.toString()) != null ? t : "";
2435
+ return Q(i) ? i.trim() : gt(i) && i.findIndex((e) => w(e)) === -1 ? i.join(",") : w(i) ? JSON.stringify(i) : i === !0 ? "1" : i === !1 ? "0" : (t = i == null ? void 0 : i.toString()) != null ? t : "";
2425
2436
  }
2426
- function ie(i, t) {
2437
+ function ne(i, t) {
2427
2438
  return Array(t).fill(i);
2428
2439
  }
2429
- function Be(i) {
2440
+ function We(i) {
2441
+ return new Promise((t, e) => {
2442
+ const s = new FileReader();
2443
+ s.onloadend = () => t(s.result), s.onerror = e, s.readAsDataURL(i);
2444
+ });
2445
+ }
2446
+ function je(i) {
2430
2447
  var t;
2431
- if (y())
2448
+ if (m())
2432
2449
  return (t = document.querySelector(i)) != null ? t : void 0;
2433
2450
  }
2434
- function Fe(i) {
2435
- if (y())
2451
+ function Ue(i) {
2452
+ if (m())
2436
2453
  return document.querySelectorAll(i);
2437
2454
  }
2438
- function xe(i) {
2455
+ function ze(i) {
2439
2456
  i.preventDefault(), i.stopPropagation();
2440
2457
  }
2441
- function se(i, t, e) {
2458
+ function oe(i, t, e) {
2442
2459
  const s = () => {
2443
- i(), t != null && t() ? se(i, t, e) : e == null || e();
2460
+ i(), t != null && t() ? oe(i, t, e) : e == null || e();
2444
2461
  };
2445
- y() ? requestAnimationFrame(s) : s();
2462
+ m() ? requestAnimationFrame(s) : s();
2446
2463
  }
2447
- function Ee(i) {
2464
+ function Ze(i) {
2448
2465
  var s;
2449
- const t = {}, e = vt(i);
2466
+ const t = {}, e = St(i);
2450
2467
  if (e)
2451
- for (const n of e.attributes)
2452
- t[n.name] = (s = (n == null ? void 0 : n.value) || (n == null ? void 0 : n.textContent)) != null ? s : void 0;
2468
+ for (const r of e.attributes)
2469
+ t[r.name] = (s = (r == null ? void 0 : r.value) || (r == null ? void 0 : r.textContent)) != null ? s : void 0;
2453
2470
  return t;
2454
2471
  }
2455
- async function Pe(i) {
2472
+ async function _e(i) {
2456
2473
  var t, e;
2457
2474
  return (e = (t = i == null ? void 0 : i.clipboardData) == null ? void 0 : t.getData("text")) != null ? e : await navigator.clipboard.readText() || "";
2458
2475
  }
2459
- let yt = z(1e5, 9e5);
2460
- function Y(i, t) {
2461
- const e = vt(i);
2462
- return e ? (_(e.id) || e.setAttribute("id", `id-${yt++}`), t ? `#${e.id}${t}`.trim() : e.id) : `id-${yt++}`;
2476
+ let yt = _(1e5, 9e5);
2477
+ function j(i, t) {
2478
+ const e = St(i);
2479
+ return e ? (K(e.id) || e.setAttribute("id", `id-${yt++}`), t ? `#${e.id}${t}`.trim() : e.id) : `id-${yt++}`;
2480
+ }
2481
+ function ae(i) {
2482
+ return Q(i) ? bt(
2483
+ void 0,
2484
+ "img",
2485
+ { src: i }
2486
+ ) : i;
2463
2487
  }
2464
- function St(i, t = "ig", e = ":value") {
2488
+ function Lt(i, t = "ig", e = ":value") {
2465
2489
  const s = i.replace(/([[\]\\^$.?*+()/])/g, "\\$1");
2466
2490
  return new RegExp(e.replace(/:value/g, s), t);
2467
2491
  }
2468
- function re(i, t) {
2469
- var n;
2492
+ function ue(i, t) {
2493
+ var r;
2470
2494
  const e = t.split(".", 2), s = e[0];
2471
- return s && (i != null && i[s]) && F(i[s]) && (e != null && e[1]) ? re(i[s], e[1]) : (n = s && (i == null ? void 0 : i[s])) != null ? n : "";
2495
+ return s && (i != null && i[s]) && E(i[s]) && (e != null && e[1]) ? ue(i[s], e[1]) : (r = s && (i == null ? void 0 : i[s])) != null ? r : "";
2472
2496
  }
2473
- function He(i) {
2497
+ function Ke(i) {
2474
2498
  var t, e, s;
2475
2499
  return (s = (t = i == null ? void 0 : i.key) != null ? t : i == null ? void 0 : i.code) != null ? s : (e = i == null ? void 0 : i.keyCode) == null ? void 0 : e.toString();
2476
2500
  }
2477
- function wt(i) {
2478
- return $(i, (t) => t.length);
2501
+ function It(i) {
2502
+ return p(i, (t) => t.length);
2479
2503
  }
2480
- function Re(i) {
2481
- return Math.max(...wt(i));
2504
+ function Ve(i) {
2505
+ return Math.max(...It(i));
2482
2506
  }
2483
- function We(i) {
2484
- return Math.min(...wt(i));
2507
+ function Ye(i) {
2508
+ return Math.min(...It(i));
2485
2509
  }
2486
- function ne(i) {
2487
- var t, e, s, n;
2488
- return (i == null ? void 0 : i.clientX) || ((e = (t = i == null ? void 0 : i.targetTouches) == null ? void 0 : t[0]) == null ? void 0 : e.clientX) || ((n = (s = i == null ? void 0 : i.touches) == null ? void 0 : s[0]) == null ? void 0 : n.clientX) || 0;
2510
+ function ce(i) {
2511
+ var t, e, s, r;
2512
+ return (i == null ? void 0 : i.clientX) || ((e = (t = i == null ? void 0 : i.targetTouches) == null ? void 0 : t[0]) == null ? void 0 : e.clientX) || ((r = (s = i == null ? void 0 : i.touches) == null ? void 0 : s[0]) == null ? void 0 : r.clientX) || 0;
2489
2513
  }
2490
- function oe(i) {
2491
- var t, e, s, n;
2492
- return (i == null ? void 0 : i.clientY) || ((e = (t = i == null ? void 0 : i.targetTouches) == null ? void 0 : t[0]) == null ? void 0 : e.clientY) || ((n = (s = i == null ? void 0 : i.touches) == null ? void 0 : s[0]) == null ? void 0 : n.clientY) || 0;
2514
+ function le(i) {
2515
+ var t, e, s, r;
2516
+ return (i == null ? void 0 : i.clientY) || ((e = (t = i == null ? void 0 : i.targetTouches) == null ? void 0 : t[0]) == null ? void 0 : e.clientY) || ((r = (s = i == null ? void 0 : i.touches) == null ? void 0 : s[0]) == null ? void 0 : r.clientY) || 0;
2493
2517
  }
2494
- function je(i) {
2518
+ function qe(i) {
2495
2519
  return {
2496
- x: ne(i),
2497
- y: oe(i)
2520
+ x: ce(i),
2521
+ y: le(i)
2498
2522
  };
2499
2523
  }
2500
- function Ue(i, t) {
2524
+ function Je(i, t) {
2501
2525
  const e = {};
2502
2526
  return t.forEach((s) => {
2503
2527
  s in i && i[s] !== void 0 && (e[s] = i[s]);
2504
2528
  }), e;
2505
2529
  }
2506
- function ze(i, t = void 0) {
2530
+ function Qe(i, t = void 0) {
2507
2531
  const e = {};
2508
- return $(i, (s, n) => {
2509
- s !== t && (e[n] = s);
2532
+ return p(i, (s, r) => {
2533
+ s !== t && (e[r] = s);
2510
2534
  }), e;
2511
2535
  }
2512
- function _e(i) {
2513
- return F(i) ? i : {};
2536
+ function Xe(i) {
2537
+ return E(i) ? i : {};
2514
2538
  }
2515
- function ae(i, t) {
2516
- return ie(i, t).join("");
2539
+ function he(i, t) {
2540
+ return ne(i, t).join("");
2517
2541
  }
2518
- function Ke(i, t, e = "#", s = 2, n = 12) {
2519
- const o = z(i, t), a = [];
2520
- for (let c = 0; c < o; c++)
2521
- a.push(ae(e, z(s, n)));
2542
+ function Me(i, t, e = "#", s = 2, r = 12) {
2543
+ const o = _(i, t), a = [];
2544
+ for (let u = 0; u < o; u++)
2545
+ a.push(he(e, _(s, r)));
2522
2546
  return a.join(" ");
2523
2547
  }
2524
- function Ze(i, t) {
2548
+ function Oe(i, t) {
2525
2549
  const e = i != null ? i : 0;
2526
2550
  return t > e ? 100 / (t - e) : 0;
2527
2551
  }
2528
- function Ve(i, t) {
2552
+ function Te(i, t) {
2529
2553
  const e = i != null ? i : 0;
2530
2554
  return t > e ? (t - e) / 100 : 0;
2531
2555
  }
2532
2556
  const $t = 0;
2533
- function Ye(i, t, e) {
2557
+ function Ge(i, t, e) {
2534
2558
  const s = t == null ? void 0 : t.closest(i);
2535
2559
  if (t && s && s.scrollHeight !== s.offsetHeight)
2536
2560
  if (e) {
2537
- const n = e.getBoundingClientRect(), o = s.getBoundingClientRect(), a = t.getBoundingClientRect();
2538
- s.scrollTop = t.offsetTop - (n.top - o.top) - (n.height / 2 - a.height / 2), s.scrollTop + s.offsetHeight < t.offsetTop + t.offsetHeight && (s.scrollTop = t.offsetTop + t.offsetHeight - s.offsetHeight);
2561
+ const r = e.getBoundingClientRect(), o = s.getBoundingClientRect(), a = t.getBoundingClientRect();
2562
+ s.scrollTop = t.offsetTop - (r.top - o.top) - (r.height / 2 - a.height / 2), s.scrollTop + s.offsetHeight < t.offsetTop + t.offsetHeight && (s.scrollTop = t.offsetTop + t.offsetHeight - s.offsetHeight);
2539
2563
  } else s.scrollTop > t.offsetTop ? s.scrollTop = t.offsetTop - $t : s.scrollTop + s.offsetHeight < t.offsetTop + t.offsetHeight && (s.scrollTop = t.offsetTop + t.offsetHeight - s.offsetHeight + $t);
2540
2564
  }
2541
- function qe(i, t) {
2565
+ function ti(i, t, e = 0) {
2566
+ if (!m())
2567
+ return;
2568
+ const s = (t == null ? void 0 : t.behavior) || "smooth";
2569
+ if ("scrollIntoView" in i && !e) {
2570
+ i.scrollIntoView({
2571
+ behavior: s,
2572
+ block: (t == null ? void 0 : t.block) || "start",
2573
+ inline: (t == null ? void 0 : t.inline) || "start"
2574
+ });
2575
+ return;
2576
+ }
2577
+ if ("getBoundingClientRect" in i && "scrollTo" in window) {
2578
+ const r = ((window == null ? void 0 : window.scrollY) || window.pageYOffset) + i.getBoundingClientRect().top - e;
2579
+ window.scrollTo({
2580
+ top: r,
2581
+ behavior: s
2582
+ });
2583
+ }
2584
+ }
2585
+ function ei(i, t) {
2542
2586
  return i.indexOf(t) !== -1;
2543
2587
  }
2544
- async function Je() {
2545
- if (y()) {
2546
- const i = await bt.get();
2588
+ async function ii() {
2589
+ if (m()) {
2590
+ const i = await wt.get();
2547
2591
  document.body.style.setProperty("--sys-scrollbar-offset", `${i}px`);
2548
2592
  }
2549
2593
  }
2550
- function Qe(i, t) {
2594
+ function si(i, t) {
2551
2595
  const e = {};
2552
- return S(i) && S(t) && $(i, (s, n) => {
2553
- n in t && (e[n] = s);
2596
+ return w(i) && w(t) && p(i, (s, r) => {
2597
+ r in t && (e[r] = s);
2554
2598
  }), e;
2555
2599
  }
2556
- function Xe(i, t) {
2600
+ function ri(i, t) {
2557
2601
  let e = Object.keys(i).length !== Object.keys(t).length;
2558
- return e || $(i, (s, n) => {
2559
- s !== (t == null ? void 0 : t[n]) && (e = !0);
2602
+ return e || p(i, (s, r) => {
2603
+ s !== (t == null ? void 0 : t[r]) && (e = !0);
2560
2604
  }), e;
2561
2605
  }
2562
- function Me(i) {
2606
+ function ni(i) {
2563
2607
  switch (typeof i) {
2564
2608
  case "number":
2565
2609
  return !0;
@@ -2569,37 +2613,64 @@ function Me(i) {
2569
2613
  return !1;
2570
2614
  }
2571
2615
  }
2572
- function Oe(i, t) {
2616
+ function oi(i, t) {
2573
2617
  const e = Math.floor(t);
2574
2618
  return i >= e && i < e + 1;
2575
2619
  }
2576
- function Te(i, t) {
2577
- return Array.isArray(i) ? i.every((e) => j(e, t)) : j(i, t);
2620
+ function ai(i, t) {
2621
+ return Array.isArray(i) ? i.every((e) => R(e, t)) : R(i, t);
2622
+ }
2623
+ function ui(i, t) {
2624
+ if (i.startsWith(t))
2625
+ return i.slice(t.length).trim();
2626
+ let e = 0;
2627
+ for (; i[e] === t[e] && e < i.length && e < t.length; )
2628
+ e++;
2629
+ return i.slice(e).trim();
2578
2630
  }
2579
- function ue(i) {
2631
+ function de(i) {
2580
2632
  return [...new Set(i)];
2581
2633
  }
2582
- function R(i, t, e = !0) {
2583
- const s = U(i);
2584
- return S(i) && S(t) && $(
2634
+ function U(i, t, e = !0) {
2635
+ const s = Z(i);
2636
+ return w(i) && w(t) && p(
2585
2637
  t,
2586
- (n, o) => {
2638
+ (r, o) => {
2587
2639
  const a = i == null ? void 0 : i[o];
2588
- S(a) && S(n) ? e && Array.isArray(a) && Array.isArray(n) ? s[o] = U(ue([...a, ...n])) : s[o] = R(
2640
+ w(a) && w(r) ? e && Array.isArray(a) && Array.isArray(r) ? s[o] = Z(de([...a, ...r])) : s[o] = U(
2589
2641
  Array.isArray(a) ? { ...a } : a,
2590
- n,
2642
+ r,
2591
2643
  e
2592
- ) : s[o] = S(n) ? U(n) : n;
2644
+ ) : s[o] = w(r) ? Z(r) : r;
2593
2645
  }
2594
2646
  ), s;
2595
2647
  }
2596
- function Ge(i, t) {
2648
+ function ci(i, t) {
2597
2649
  let e = i;
2598
- return $(t, (s, n) => {
2599
- e = e.replace(St(`[${n}]`), lt(s));
2650
+ return p(t, (s, r) => {
2651
+ e = e.replace(Lt(`[${r}]`), lt(s));
2600
2652
  }), e;
2601
2653
  }
2602
- function ti(i) {
2654
+ function ge(i, t = "auto") {
2655
+ switch (t) {
2656
+ case "auto":
2657
+ return i.naturalWidth >= i.naturalHeight;
2658
+ case "width":
2659
+ return !0;
2660
+ case "height":
2661
+ return !1;
2662
+ }
2663
+ }
2664
+ function li(i, t, e = "auto", s) {
2665
+ var o;
2666
+ const r = ae(i);
2667
+ if (r && (r.naturalWidth > t && (e === "auto" || e === "width") || r.naturalHeight > t && (e === "auto" || e === "height"))) {
2668
+ const a = ge(r, e), u = (o = document.createElement("canvas")) == null ? void 0 : o.getContext("2d");
2669
+ if (u)
2670
+ return u.canvas.width = a ? t : r.naturalWidth / r.naturalHeight * t, u.canvas.height = a ? r.naturalHeight / r.naturalWidth * t : t, u.drawImage(r, 0, 0, u.canvas.width, u.canvas.height), u.canvas.toDataURL(s);
2671
+ }
2672
+ }
2673
+ function hi(i) {
2603
2674
  const t = N(i);
2604
2675
  if (t > 0) {
2605
2676
  const e = String(Math.floor(t / 60)).padStart(2, "0"), s = String(t % 60).padStart(2, "0");
@@ -2607,70 +2678,76 @@ function ti(i) {
2607
2678
  }
2608
2679
  return "00:00";
2609
2680
  }
2610
- function ei(i, t, {
2681
+ function di(i, t, {
2611
2682
  multiple: e = !1,
2612
2683
  maxlength: s = 0,
2613
- alwaysChange: n = !0,
2684
+ alwaysChange: r = !0,
2614
2685
  notEmpty: o = !1
2615
2686
  }) {
2616
2687
  if (e) {
2617
2688
  if (gt(i)) {
2618
- const a = i.indexOf(t), c = [...i];
2619
- return a !== -1 ? (!o || c.length > 1) && c.splice(a, 1) : (!s || i.length < s) && c.push(t), c;
2689
+ const a = i.indexOf(t), u = [...i];
2690
+ return a !== -1 ? (!o || u.length > 1) && u.splice(a, 1) : (!s || i.length < s) && u.push(t), u;
2620
2691
  }
2621
2692
  return i === t ? [] : i ? [i, t] : [t];
2622
2693
  }
2623
- return n || i !== t ? t : i;
2694
+ return r || i !== t ? t : i;
2624
2695
  }
2625
- function ii(i, t, e) {
2626
- if (S(i) && S(t)) {
2696
+ function gi(i, t, e) {
2697
+ if (w(i) && w(t)) {
2627
2698
  if (e) {
2628
- let s = {}, n = !1;
2629
- return $(i, (o, a) => {
2630
- !n && (e === a || e === o) ? (n = !0, s = R(s, t)) : n ? s = R(s, { [a]: o }) : s[a] = S(o) ? U(o) : o;
2631
- }), n ? s : R(i, t);
2699
+ let s = {}, r = !1;
2700
+ return p(i, (o, a) => {
2701
+ !r && (e === a || e === o) ? (r = !0, s = U(s, t)) : r ? s = U(s, { [a]: o }) : s[a] = w(o) ? Z(o) : o;
2702
+ }), r ? s : U(i, t);
2632
2703
  }
2633
- if (S(t))
2634
- return R(i, t);
2704
+ if (w(t))
2705
+ return U(i, t);
2635
2706
  }
2636
- return U(i);
2707
+ return Z(i);
2637
2708
  }
2638
- function Dt(i) {
2709
+ function kt(i) {
2639
2710
  return i.toString().trim().replace(/[^\w- ]+/g, "").replace(/ +/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (t) => `${t.toLowerCase()}`).replace(/-+([a-zA-Z0-9])/g, (...t) => `${String(t[1]).toUpperCase()}`).replace(/^([A-Z])/, (t) => `${t.toLowerCase()}`);
2640
2711
  }
2641
- function si(i) {
2642
- return Dt(i).replace(/^([a-z])/, (t) => `${t.toUpperCase()}`);
2712
+ function fi(i) {
2713
+ return kt(i).replace(/^([a-z])/, (t) => `${t.toUpperCase()}`);
2643
2714
  }
2644
- function ri(i) {
2715
+ function mi(i) {
2645
2716
  return i.toString().trim().replace(/[^\w- ]+/g, "").replace(/ +/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (t) => `${t.toLowerCase()}`).replace(/^[A-Z]/, (t) => t.toLowerCase()).replace(/(?<=[\w ])[A-Z]/g, (t) => `-${t.toLowerCase()}`).replace(/[A-Z]/g, (t) => t.toLowerCase());
2646
2717
  }
2647
- function ni(i, t, e, s) {
2648
- const n = N(i), o = N(t);
2649
- return t && o < n ? `${pt(o, e, s)}+` : pt(n, e, s);
2718
+ function yi(i, t, e, s) {
2719
+ const r = N(i), o = N(t);
2720
+ return t && o < r ? `${pt(o, e, s)}+` : pt(r, e, s);
2650
2721
  }
2651
- const pt = (i, t, e) => t ? new P(e).number(i) : i;
2652
- function ce(i, t) {
2722
+ const pt = (i, t, e) => t ? new W(e).number(i) : i;
2723
+ function fe(i, t) {
2653
2724
  return 1 / i * t;
2654
2725
  }
2655
- function oi(i, t) {
2656
- return ce(i, t) * 100;
2726
+ function $i(i, t) {
2727
+ return fe(i, t) * 100;
2728
+ }
2729
+ function pi(i) {
2730
+ let t = "";
2731
+ for (const e of i)
2732
+ t += String.fromCharCode(e);
2733
+ return m() ? window.btoa(t) : globalThis && globalThis.Buffer ? globalThis == null ? void 0 : globalThis.Buffer.from(i).toString("base64") : "";
2657
2734
  }
2658
- async function ai(i) {
2659
- if (y())
2735
+ async function vi(i) {
2736
+ if (m())
2660
2737
  try {
2661
2738
  await navigator.clipboard.writeText(i);
2662
2739
  } catch (t) {
2663
2740
  document == null || document.execCommand(i);
2664
2741
  }
2665
2742
  }
2666
- class le {
2743
+ class me {
2667
2744
  /**
2668
2745
  * Constructor
2669
2746
  * @param props base data/ базовые данные
2670
2747
  * @param watch data for tracking/ данные для слежения
2671
2748
  */
2672
2749
  constructor(t, e = Object.keys(t)) {
2673
- u(this, "cache", {});
2750
+ c(this, "cache", {});
2674
2751
  this.props = t, this.watch = e;
2675
2752
  }
2676
2753
  /**
@@ -2713,7 +2790,7 @@ class le {
2713
2790
  return ((e = this.cache) == null ? void 0 : e[t]) !== ((s = this.props) == null ? void 0 : s[t]);
2714
2791
  }
2715
2792
  }
2716
- class he {
2793
+ class ye {
2717
2794
  /**
2718
2795
  * Constructor
2719
2796
  * @param props base data/ базовые данные
@@ -2722,9 +2799,9 @@ class he {
2722
2799
  * @param changed base data/ данный для слежения
2723
2800
  */
2724
2801
  constructor(t, e, s) {
2725
- u(this, "event", {});
2726
- u(this, "changed");
2727
- this.props = t, this.callback = e, this.changed = new le(t, s);
2802
+ c(this, "event", {});
2803
+ c(this, "changed");
2804
+ this.props = t, this.callback = e, this.changed = new me(t, s);
2728
2805
  }
2729
2806
  /**
2730
2807
  * Calls the callback function.
@@ -2772,7 +2849,7 @@ class he {
2772
2849
  this.callback && this.callback(this.event);
2773
2850
  }
2774
2851
  }
2775
- class ui extends he {
2852
+ class bi extends ye {
2776
2853
  /**
2777
2854
  * Calls the callback function.
2778
2855
  *
@@ -2792,34 +2869,37 @@ class ui extends he {
2792
2869
  (t || this.changed.isChanged()) && (await this.initEvent(), this.makeCallbackItem(), this.changed.update());
2793
2870
  }
2794
2871
  }
2795
- function m(i) {
2796
- return Q(i) ? i.value : i;
2872
+ function f(i) {
2873
+ return X(i) ? i.value : i;
2797
2874
  }
2798
- function de(i) {
2875
+ function $e(i) {
2799
2876
  return i && "class" in i && typeof i.class == "string" ? i.class : void 0;
2800
2877
  }
2801
- function ge(i, t, e) {
2802
- const s = de(t);
2878
+ function pe(i, t, e) {
2879
+ const s = $e(t);
2803
2880
  return e && s ? `${e}.${s}` : e || s || i;
2804
2881
  }
2805
- function fe(i, t, e, s) {
2806
- const n = ge(i, t, s);
2807
- return Et(i, { key: n, ...t }, e);
2882
+ function ve(i, t, e, s) {
2883
+ let r = t;
2884
+ return (!t || "key" in t) && (r = {
2885
+ key: pe(i, t, s),
2886
+ ...t
2887
+ }), Wt(i, r, e);
2808
2888
  }
2809
- function at(i, t) {
2810
- const e = i == null ? void 0 : i.class, s = t == null ? void 0 : t.class, n = i == null ? void 0 : i.style, o = t == null ? void 0 : t.style, a = {
2889
+ function ut(i, t) {
2890
+ const e = i == null ? void 0 : i.class, s = t == null ? void 0 : t.class, r = i == null ? void 0 : i.style, o = t == null ? void 0 : t.style, a = {
2811
2891
  ...i,
2812
2892
  ...t
2813
2893
  };
2814
- return e && s && (a.class = [], e && a.class.push(e), s && a.class.push(s)), n && o && (a.style = [], n && a.style.push(n), o && a.style.push(o)), a;
2894
+ return e && s && (a.class = [], e && a.class.push(e), s && a.class.push(s)), r && o && (a.style = [], r && a.style.push(r), o && a.style.push(o)), a;
2815
2895
  }
2816
- function me(...i) {
2896
+ function be(...i) {
2817
2897
  let t = {};
2818
2898
  return i.forEach((e) => {
2819
- e && (t = at(t, e));
2899
+ e && (t = ut(t, e));
2820
2900
  }), t;
2821
2901
  }
2822
- class Lt {
2902
+ class Ct {
2823
2903
  /**
2824
2904
  * Constructor
2825
2905
  * @param components list of connected components/ список подключенных компонентов
@@ -2827,7 +2907,7 @@ class Lt {
2827
2907
  */
2828
2908
  constructor(t = {}, e) {
2829
2909
  /** Cache for computed properties/ Кэш для вычисляемых свойств */
2830
- u(this, "caching", {});
2910
+ c(this, "caching", {});
2831
2911
  this.components = t, this.modification = e;
2832
2912
  }
2833
2913
  /**
@@ -2861,7 +2941,7 @@ class Lt {
2861
2941
  t in this.caching || (this.caching[t] = l(() => this.computeModification(t)));
2862
2942
  const s = this.caching[t];
2863
2943
  if (s)
2864
- return e ? me(s.value, e) : s.value;
2944
+ return e ? be(s.value, e) : s.value;
2865
2945
  }
2866
2946
  return e;
2867
2947
  }
@@ -2874,12 +2954,12 @@ class Lt {
2874
2954
  * @param children sub-elements of the component/ под элементы компонента
2875
2955
  * @param index the name of the key/ названия ключа
2876
2956
  */
2877
- render(t, e, s, n) {
2957
+ render(t, e, s, r) {
2878
2958
  const o = this.renderOne(
2879
2959
  t,
2880
2960
  e,
2881
2961
  s,
2882
- n
2962
+ r
2883
2963
  );
2884
2964
  return o ? [o] : [];
2885
2965
  }
@@ -2892,10 +2972,10 @@ class Lt {
2892
2972
  * @param children sub-elements of the component/ под элементы компонента
2893
2973
  * @param index the name of the key/ названия ключа
2894
2974
  */
2895
- renderOne(t, e, s, n) {
2975
+ renderOne(t, e, s, r) {
2896
2976
  if (this.is(t)) {
2897
- const o = n != null ? n : t;
2898
- return fe(
2977
+ const o = r != null ? r : t;
2978
+ return ve(
2899
2979
  this.get(t),
2900
2980
  this.getModification(o, e),
2901
2981
  s,
@@ -2914,8 +2994,8 @@ class Lt {
2914
2994
  * @param children sub-elements of the component/ под элементы компонента
2915
2995
  * @param index the name of the key/ названия ключа
2916
2996
  */
2917
- renderAdd(t, e, s, n, o) {
2918
- return t.push(...this.render(e, s, n, o)), this;
2997
+ renderAdd(t, e, s, r, o) {
2998
+ return t.push(...this.render(e, s, r, o)), this;
2919
2999
  }
2920
3000
  /**
2921
3001
  * Calculates modified input data for connected components.
@@ -2925,19 +3005,19 @@ class Lt {
2925
3005
  */
2926
3006
  computeModification(t) {
2927
3007
  var s;
2928
- const e = m((s = this.modification) == null ? void 0 : s[t]);
2929
- if (e && F(e)) {
2930
- const n = {};
2931
- return $(e, (o, a) => {
2932
- n[a] = m(o);
2933
- }), n;
3008
+ const e = f((s = this.modification) == null ? void 0 : s[t]);
3009
+ if (e && E(e)) {
3010
+ const r = {};
3011
+ return p(e, (o, a) => {
3012
+ r[a] = f(o);
3013
+ }), r;
2934
3014
  }
2935
3015
  return {};
2936
3016
  }
2937
3017
  }
2938
- class ci extends Lt {
3018
+ class Si extends Ct {
2939
3019
  }
2940
- class li {
3020
+ class wi {
2941
3021
  /**
2942
3022
  * Constructor
2943
3023
  * @param name class name/ название класса
@@ -2945,19 +3025,19 @@ class li {
2945
3025
  * @param options list of additional parameters/ список дополнительных параметров
2946
3026
  */
2947
3027
  constructor(t, e, s) {
2948
- u(this, "name");
2949
- u(this, "element", p());
2950
- u(this, "refs");
2951
- u(this, "components");
2952
- u(this, "emits");
2953
- u(this, "classes");
2954
- u(this, "classesSub");
2955
- u(this, "styles");
2956
- u(this, "stylesSub");
2957
- u(this, "attrs");
2958
- u(this, "slots");
2959
- u(this, "dataExpose");
2960
- this.props = e, this.options = s, this.name = this.initName(t), this.refs = this.props ? Pt(this.props) : {}, this.components = new Lt(s == null ? void 0 : s.components, s == null ? void 0 : s.compMod), this.emits = s == null ? void 0 : s.emits, this.classes = l(() => this.updateClasses()), this.styles = l(() => this.updateStyles()), this.attrs = Ht(), this.slots = Rt();
3028
+ c(this, "name");
3029
+ c(this, "element", $());
3030
+ c(this, "refs");
3031
+ c(this, "components");
3032
+ c(this, "emits");
3033
+ c(this, "classes");
3034
+ c(this, "classesSub");
3035
+ c(this, "styles");
3036
+ c(this, "stylesSub");
3037
+ c(this, "attrs");
3038
+ c(this, "slots");
3039
+ c(this, "dataExpose");
3040
+ this.props = e, this.options = s, this.name = this.initName(t), this.refs = this.props ? jt(this.props) : {}, this.components = new Ct(s == null ? void 0 : s.components, s == null ? void 0 : s.compMod), this.emits = s == null ? void 0 : s.emits, this.classes = l(() => this.updateClasses()), this.styles = l(() => this.updateStyles()), this.attrs = Ut(), this.slots = zt();
2961
3041
  }
2962
3042
  init() {
2963
3043
  return this.classesSub = l(() => this.initClasses()), this.stylesSub = l(() => this.initStyles()), this.dataExpose = this.initExpose(), this;
@@ -2985,7 +3065,7 @@ class li {
2985
3065
  * @param name list of class names by levels/ список названий классов по уровням
2986
3066
  */
2987
3067
  getSubClass(t) {
2988
- return `${this.getName()}__${W(t).join("__")}`;
3068
+ return `${this.getName()}__${z(t).join("__")}`;
2989
3069
  }
2990
3070
  /**
2991
3071
  * Getting the class name for the status.
@@ -2994,7 +3074,7 @@ class li {
2994
3074
  * @param name list of class names by levels/ список названий классов по уровням
2995
3075
  */
2996
3076
  getStatusClass(t) {
2997
- return `${this.getName()}--${W(t).join("--")}`;
3077
+ return `${this.getName()}--${z(t).join("--")}`;
2998
3078
  }
2999
3079
  /**
3000
3080
  * Getting the property name for the style.
@@ -3003,7 +3083,7 @@ class li {
3003
3083
  * @param name list of class names by levels/ список названий классов по уровням
3004
3084
  */
3005
3085
  getStyle(t) {
3006
- return `--${this.getName()}-sys-${W(t).join("-")}`;
3086
+ return `--${this.getName()}-sys-${z(t).join("-")}`;
3007
3087
  }
3008
3088
  /**
3009
3089
  * Getting additional parameters.
@@ -3042,8 +3122,8 @@ class li {
3042
3122
  * @param props property for the slot/ свойство для слота
3043
3123
  */
3044
3124
  initSlot(t, e, s = {}) {
3045
- var n;
3046
- if (this.slots && ((n = this.slots) != null && n[t]) && typeof this.slots[t] == "function") {
3125
+ var r;
3126
+ if (this.slots && ((r = this.slots) != null && r[t]) && typeof this.slots[t] == "function") {
3047
3127
  const o = this.slots[t](s);
3048
3128
  return e && e.push(o), o;
3049
3129
  }
@@ -3055,7 +3135,7 @@ class li {
3055
3135
  * @param classes list of classes for transformation/ список классов для преобразования
3056
3136
  */
3057
3137
  toClass(t) {
3058
- return F(t) ? t : Array.isArray(t) ? { [t.filter((s) => typeof s == "string" && s.trim() !== "").join(" ")]: !0 } : typeof t == "string" ? { [t]: !0 } : {};
3138
+ return E(t) ? t : Array.isArray(t) ? { [t.filter((s) => typeof s == "string" && s.trim() !== "").join(" ")]: !0 } : typeof t == "string" ? { [t]: !0 } : {};
3059
3139
  }
3060
3140
  /**
3061
3141
  * Converts the class name to standard for the current component.
@@ -3064,10 +3144,10 @@ class li {
3064
3144
  * @param classes list of classes/ список классов
3065
3145
  */
3066
3146
  toClassName(t) {
3067
- if (S(t)) {
3147
+ if (w(t)) {
3068
3148
  const e = {};
3069
- return $(t, (s, n) => {
3070
- n.match(/\?\?/) ? e[n.replace(/\?\?/, this.getName())] = s : n.match(/\?/) ? e[n.replace(/\?/, this.getDesign())] = s : e[n] = s;
3149
+ return p(t, (s, r) => {
3150
+ r.match(/\?\?/) ? e[r.replace(/\?\?/, this.getName())] = s : r.match(/\?/) ? e[r.replace(/\?/, this.getDesign())] = s : e[r] = s;
3071
3151
  }), e;
3072
3152
  }
3073
3153
  return {};
@@ -3079,7 +3159,7 @@ class li {
3079
3159
  * @param name component name for transformation/ название компонента для преобразования
3080
3160
  */
3081
3161
  initName(t) {
3082
- return $(t.split(".", 2), (e) => Dt(e));
3162
+ return p(t.split(".", 2), (e) => kt(e));
3083
3163
  }
3084
3164
  /**
3085
3165
  * Updating data about the class.
@@ -3087,8 +3167,8 @@ class li {
3087
3167
  * Обновление данных об классе.
3088
3168
  */
3089
3169
  updateClasses() {
3090
- var s, n, o, a;
3091
- const t = (s = this.classesSub) == null ? void 0 : s.value, e = (o = (n = this.options) == null ? void 0 : n.classes) == null ? void 0 : o.value;
3170
+ var s, r, o, a;
3171
+ const t = (s = this.classesSub) == null ? void 0 : s.value, e = (o = (r = this.options) == null ? void 0 : r.classes) == null ? void 0 : o.value;
3092
3172
  return t && e ? {
3093
3173
  ...t,
3094
3174
  ...e,
@@ -3107,8 +3187,8 @@ class li {
3107
3187
  * Доработка полученного списка стилей.
3108
3188
  */
3109
3189
  updateStyles() {
3110
- var s, n, o;
3111
- const t = (s = this.stylesSub) == null ? void 0 : s.value, e = (o = (n = this.options) == null ? void 0 : n.styles) == null ? void 0 : o.value;
3190
+ var s, r, o;
3191
+ const t = (s = this.stylesSub) == null ? void 0 : s.value, e = (o = (r = this.options) == null ? void 0 : r.styles) == null ? void 0 : o.value;
3112
3192
  return t && e ? {
3113
3193
  ...t,
3114
3194
  ...e
@@ -3116,34 +3196,34 @@ class li {
3116
3196
  }
3117
3197
  }
3118
3198
  function B(i) {
3119
- return Q(i) ? i : p(i);
3199
+ return X(i) ? i : $(i);
3120
3200
  }
3121
- class hi {
3201
+ class Di {
3122
3202
  /**
3123
3203
  * Constructor
3124
3204
  * @param date date for processing. дата для обработки
3125
3205
  * @param type type of date format for output. тип формата даты вывода
3126
3206
  * @param code country and language code. код страны и языка
3127
3207
  */
3128
- constructor(t, e = "date", s = w.getLocation()) {
3129
- u(this, "item");
3130
- u(this, "type");
3131
- u(this, "code");
3132
- u(this, "date");
3133
- u(this, "datetime");
3134
- u(this, "year", l(() => this.date.value && this.datetime.getYear()));
3135
- u(this, "month", l(() => this.date.value && this.datetime.getMonth()));
3136
- u(this, "day", l(() => this.date.value && this.datetime.getDay()));
3137
- u(this, "hour", l(() => this.date.value && this.datetime.getHour()));
3138
- u(this, "minute", l(() => this.date.value && this.datetime.getMinute()));
3139
- u(this, "second", l(() => this.date.value && this.datetime.getSecond()));
3140
- this.item = B(t), this.type = B(e), this.code = B(s), this.date = p(A(this.item.value)), this.datetime = new ht(
3208
+ constructor(t, e = "date", s = D.getLocation()) {
3209
+ c(this, "item");
3210
+ c(this, "type");
3211
+ c(this, "code");
3212
+ c(this, "date");
3213
+ c(this, "datetime");
3214
+ c(this, "year", l(() => this.date.value && this.datetime.getYear()));
3215
+ c(this, "month", l(() => this.date.value && this.datetime.getMonth()));
3216
+ c(this, "day", l(() => this.date.value && this.datetime.getDay()));
3217
+ c(this, "hour", l(() => this.date.value && this.datetime.getHour()));
3218
+ c(this, "minute", l(() => this.date.value && this.datetime.getMinute()));
3219
+ c(this, "second", l(() => this.date.value && this.datetime.getSecond()));
3220
+ this.item = B(t), this.type = B(e), this.code = B(s), this.date = $(A(this.item.value)), this.datetime = new ht(
3141
3221
  this.date.value,
3142
3222
  this.type.value,
3143
3223
  this.code.value
3144
- ), f(this.item, (n) => {
3145
- this.date.value = A(n);
3146
- }), f(this.type, (n) => this.datetime.setType(n)), f(this.code, (n) => this.datetime.setCode(n)), f(this.date, (n) => this.datetime.setDate(n)), this.datetime.setWatch(() => Wt(this.date));
3224
+ ), y(this.item, (r) => {
3225
+ this.date.value = A(r);
3226
+ }), y(this.type, (r) => this.datetime.setType(r)), y(this.code, (r) => this.datetime.setCode(r)), y(this.date, (r) => this.datetime.setDate(r)), this.datetime.setWatch(() => Zt(this.date));
3147
3227
  }
3148
3228
  /**
3149
3229
  * Returns the basic data for the date.
@@ -3263,7 +3343,7 @@ class hi {
3263
3343
  return l(() => this.date.value && this.datetime.standard(t));
3264
3344
  }
3265
3345
  }
3266
- class di extends Ft {
3346
+ class Li extends Ht {
3267
3347
  /**
3268
3348
  * Classes Constructor
3269
3349
  * @param elementSelector element/ элемент
@@ -3276,26 +3356,26 @@ class di extends Ft {
3276
3356
  * @param detail an event-dependent value associated with the event/ зависимое от события
3277
3357
  * значение, связанное с событием
3278
3358
  */
3279
- constructor(t, e, s = ["click"], n, o, a) {
3280
- const c = B(t), h = B(e);
3359
+ constructor(t, e, s = ["click"], r, o, a) {
3360
+ const u = B(t), h = B(e);
3281
3361
  super(
3282
- c.value,
3362
+ u.value,
3283
3363
  s,
3284
- n,
3364
+ r,
3285
3365
  o,
3286
3366
  a
3287
- ), h.value && this.setElementControl(h.value), f(c, (d) => this.setElement(d)), f(h, (d) => this.setElementControl(d));
3367
+ ), h.value && this.setElementControl(h.value), y(u, (d) => this.setElement(d)), y(h, (d) => this.setElementControl(d));
3288
3368
  }
3289
3369
  }
3290
- class gi {
3370
+ class Ii {
3291
3371
  /**
3292
3372
  * Constructor
3293
3373
  * @param code country and language code/ код страны и языка
3294
3374
  */
3295
- constructor(t = w.getLocation()) {
3296
- u(this, "code");
3297
- u(this, "flag");
3298
- this.code = B(t), this.flag = new ot(this.code.value), f(this.code, (e) => this.flag.setCode(e));
3375
+ constructor(t = D.getLocation()) {
3376
+ c(this, "code");
3377
+ c(this, "flag");
3378
+ this.code = B(t), this.flag = new at(this.code.value), y(this.code, (e) => this.flag.setCode(e));
3299
3379
  }
3300
3380
  /**
3301
3381
  * Obtaining a reactive object with the country code.
@@ -3345,7 +3425,7 @@ class gi {
3345
3425
  return l(() => this.flag.getNational(t));
3346
3426
  }
3347
3427
  }
3348
- const C = class C {
3428
+ const k = class k {
3349
3429
  /**
3350
3430
  * Information about the current country.
3351
3431
  *
@@ -3394,23 +3474,23 @@ const C = class C {
3394
3474
  * код страны, полный вид язык-страна или один из них
3395
3475
  */
3396
3476
  static set(t) {
3397
- w.set(t, !0), this.item.value = w.getItem();
3477
+ D.set(t, !0), this.item.value = D.getItem();
3398
3478
  }
3399
3479
  };
3400
- u(C, "item", Z(w.get())), u(C, "country", l(() => C.item.value.country)), u(C, "language", l(() => C.item.value.language)), u(C, "standard", l(() => C.item.value.standard)), u(C, "firstDay", l(() => C.item.value.firstDay));
3401
- let K = C;
3402
- class ye {
3480
+ c(k, "item", F(D.get())), c(k, "country", l(() => k.item.value.country)), c(k, "language", l(() => k.item.value.language)), c(k, "standard", l(() => k.item.value.standard)), c(k, "firstDay", l(() => k.item.value.firstDay));
3481
+ let V = k;
3482
+ class Se {
3403
3483
  /**
3404
3484
  * Constructor
3405
3485
  * @param code country code, full form language-country or one of them/
3406
3486
  * код страны, полный вид язык-страна или один из них
3407
3487
  */
3408
3488
  constructor(t) {
3409
- u(this, "location");
3410
- u(this, "intl");
3489
+ c(this, "location");
3490
+ c(this, "intl");
3411
3491
  this.location = B(t), this.intl = l(() => {
3412
3492
  var e;
3413
- return new P((e = this.location.value) != null ? e : K.getLanguage().value);
3493
+ return new W((e = this.location.value) != null ? e : V.getLanguage().value);
3414
3494
  });
3415
3495
  }
3416
3496
  /**
@@ -3422,7 +3502,7 @@ class ye {
3422
3502
  * объект с некоторыми или всеми из следующих свойств
3423
3503
  */
3424
3504
  display(t, e) {
3425
- return l(() => this.intl.value.display(m(t), e));
3505
+ return l(() => this.intl.value.display(f(t), e));
3426
3506
  }
3427
3507
  /**
3428
3508
  * Get display names of language.
@@ -3432,7 +3512,7 @@ class ye {
3432
3512
  * @param style the formatting style to use/ используемый стиль форматирования
3433
3513
  */
3434
3514
  languageName(t, e) {
3435
- return l(() => this.intl.value.languageName(m(t), e));
3515
+ return l(() => this.intl.value.languageName(f(t), e));
3436
3516
  }
3437
3517
  /**
3438
3518
  * Get display names of region.
@@ -3442,7 +3522,7 @@ class ye {
3442
3522
  * @param style the formatting style to use/ используемый стиль форматирования
3443
3523
  */
3444
3524
  countryName(t, e) {
3445
- return l(() => this.intl.value.countryName(m(t), e));
3525
+ return l(() => this.intl.value.countryName(f(t), e));
3446
3526
  }
3447
3527
  /**
3448
3528
  * In basic use without specifying a locale, a formatted string.
@@ -3454,7 +3534,7 @@ class ye {
3454
3534
  * или всеми свойствами
3455
3535
  */
3456
3536
  number(t, e) {
3457
- return l(() => this.intl.value.number(m(t), e));
3537
+ return l(() => this.intl.value.number(f(t), e));
3458
3538
  }
3459
3539
  /**
3460
3540
  * Decimal point symbol.
@@ -3476,8 +3556,8 @@ class ye {
3476
3556
  currency(t, e, s = !1) {
3477
3557
  return l(
3478
3558
  () => this.intl.value.currency(
3479
- m(t),
3480
- m(e),
3559
+ f(t),
3560
+ f(e),
3481
3561
  s
3482
3562
  )
3483
3563
  );
@@ -3492,7 +3572,7 @@ class ye {
3492
3572
  * в форматировании блока
3493
3573
  */
3494
3574
  unit(t, e) {
3495
- return l(() => this.intl.value.unit(m(t), e));
3575
+ return l(() => this.intl.value.unit(f(t), e));
3496
3576
  }
3497
3577
  /**
3498
3578
  * Number as a percentage.
@@ -3502,7 +3582,7 @@ class ye {
3502
3582
  * @param options an object with some or all properties/ объект с некоторыми или всеми свойствами
3503
3583
  */
3504
3584
  percent(t, e) {
3505
- return l(() => this.intl.value.percent(m(t), e));
3585
+ return l(() => this.intl.value.percent(f(t), e));
3506
3586
  }
3507
3587
  /**
3508
3588
  * Number as a percentage (unit).
@@ -3513,7 +3593,7 @@ class ye {
3513
3593
  * объект с некоторыми или всеми свойствами
3514
3594
  */
3515
3595
  percentBy100(t, e) {
3516
- return l(() => this.intl.value.percentBy100(m(t), e));
3596
+ return l(() => this.intl.value.percentBy100(f(t), e));
3517
3597
  }
3518
3598
  /**
3519
3599
  * Enables language-sensitive date and time formatting.
@@ -3524,8 +3604,8 @@ class ye {
3524
3604
  * @param styleOptions the representation of the month/ представление месяца
3525
3605
  * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
3526
3606
  */
3527
- date(t, e, s, n) {
3528
- return l(() => this.intl.value.date(m(t), e, s, n));
3607
+ date(t, e, s, r) {
3608
+ return l(() => this.intl.value.date(f(t), e, s, r));
3529
3609
  }
3530
3610
  /**
3531
3611
  * Enables language-sensitive relative time formatting.
@@ -3537,7 +3617,7 @@ class ye {
3537
3617
  * @param todayValue current day/ текущий день
3538
3618
  */
3539
3619
  relative(t, e, s) {
3540
- return l(() => this.intl.value.relative(m(t), e, s));
3620
+ return l(() => this.intl.value.relative(f(t), e, s));
3541
3621
  }
3542
3622
  /**
3543
3623
  * Enables language-sensitive relative time formatting
@@ -3557,15 +3637,15 @@ class ye {
3557
3637
  * @param type type of data format/ тип формата data
3558
3638
  * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
3559
3639
  */
3560
- relativeLimit(t, e, s, n, o, a, c) {
3640
+ relativeLimit(t, e, s, r, o, a, u) {
3561
3641
  return l(() => this.intl.value.relativeLimit(
3562
- m(t),
3642
+ f(t),
3563
3643
  e,
3564
3644
  s,
3565
- n,
3645
+ r,
3566
3646
  o,
3567
3647
  a,
3568
- c
3648
+ u
3569
3649
  ));
3570
3650
  }
3571
3651
  /**
@@ -3576,7 +3656,7 @@ class ye {
3576
3656
  * @param style the representation of the month/ представление месяца
3577
3657
  */
3578
3658
  month(t, e) {
3579
- return l(() => this.intl.value.month(m(t), e));
3659
+ return l(() => this.intl.value.month(f(t), e));
3580
3660
  }
3581
3661
  /**
3582
3662
  * Array to list of months.
@@ -3595,7 +3675,7 @@ class ye {
3595
3675
  * @param style the representation of the weekday/ представление о дне недели
3596
3676
  */
3597
3677
  weekday(t, e) {
3598
- return l(() => this.intl.value.weekday(m(t), e));
3678
+ return l(() => this.intl.value.weekday(f(t), e));
3599
3679
  }
3600
3680
  /**
3601
3681
  * An array of the list of names of the days of the week.
@@ -3613,10 +3693,10 @@ class ye {
3613
3693
  * @param value the date to format/ дата для форматирования
3614
3694
  */
3615
3695
  time(t) {
3616
- return l(() => this.intl.value.time(m(t)));
3696
+ return l(() => this.intl.value.time(f(t)));
3617
3697
  }
3618
3698
  }
3619
- class kt {
3699
+ class Nt {
3620
3700
  /**
3621
3701
  * Creates an instance of ListData for managing list data.
3622
3702
  *
@@ -3625,22 +3705,25 @@ class kt {
3625
3705
  * @param focus Focused item / элемент в фокусе
3626
3706
  * @param highlight Search text for highlighting / текст поиска для выделения
3627
3707
  * @param highlightLengthStart Minimum length to start highlighting / минимальная длина для начала выделения
3708
+ * @param filterMode Filter mode / режим фильтрации
3628
3709
  * @param selected Selected items / выбранные элементы
3629
3710
  * @param keyValue Key for getting item value / ключ для получения значения элемента
3630
3711
  * @param keyLabel Key for getting item label / ключ для получения метки элемента
3631
3712
  * @param lite Threshold for lite mode / порог для облегченного режима
3713
+ * @param min Minimum number of selections / минимальное количество выделений
3714
+ * @param max Maximum number of selections / максимальное количество выделений
3632
3715
  * @param parent Parent identifier / идентификатор родителя
3633
3716
  */
3634
- constructor(t, e, s, n, o, a, c, h, d) {
3635
- u(this, "subList", {});
3717
+ constructor(t, e, s, r, o, a, u, h, d, g = 0, v = 9999999, x) {
3718
+ c(this, "subList", {});
3636
3719
  /**
3637
3720
  * Returns a list for forming a list.
3638
3721
  *
3639
3722
  * Возвращает список для формирования списка.
3640
3723
  */
3641
- u(this, "data", l(
3642
- () => $(
3643
- m(this.list) || [],
3724
+ c(this, "data", l(
3725
+ () => p(
3726
+ f(this.list) || [],
3644
3727
  (t, e) => this.initItem(e, t)
3645
3728
  )
3646
3729
  ));
@@ -3649,7 +3732,7 @@ class kt {
3649
3732
  *
3650
3733
  * Возвращает упрощенный список для быстрой загрузки.
3651
3734
  */
3652
- u(this, "liteData", l(() => {
3735
+ c(this, "liteData", l(() => {
3653
3736
  if (this.isLite()) {
3654
3737
  const t = [];
3655
3738
  for (const e of this.data.value) {
@@ -3672,16 +3755,22 @@ class kt {
3672
3755
  *
3673
3756
  * Возвращает список записей со всеми дополнительными данными.
3674
3757
  */
3675
- u(this, "fullData", l(() => {
3758
+ c(this, "fullData", l(() => {
3676
3759
  const t = this.getFocus(), e = this.getHighlight(), s = this.getSelected();
3677
- return $(
3760
+ return p(
3678
3761
  this.data.value,
3679
- (n) => ({
3680
- ...n,
3681
- focus: t === n.index,
3682
- highlight: e,
3683
- selected: j(n.index, s)
3684
- })
3762
+ (r) => {
3763
+ var a, u;
3764
+ const o = R(r.index, s);
3765
+ return {
3766
+ ...r,
3767
+ focus: t === r.index,
3768
+ highlight: e,
3769
+ filterMode: (a = this.filterMode) == null ? void 0 : a.value,
3770
+ selected: o,
3771
+ disabled: (u = r.disabled) != null ? u : !o && r.type === "item" && this.isSelectedMax.value
3772
+ };
3773
+ }
3685
3774
  );
3686
3775
  }));
3687
3776
  /**
@@ -3689,7 +3778,7 @@ class kt {
3689
3778
  *
3690
3779
  * Возвращает карту всех записей.
3691
3780
  */
3692
- u(this, "map", l(() => {
3781
+ c(this, "map", l(() => {
3693
3782
  const t = [];
3694
3783
  return this.data.value.forEach((e) => {
3695
3784
  switch (e.type) {
@@ -3707,13 +3796,13 @@ class kt {
3707
3796
  }), t;
3708
3797
  }));
3709
3798
  /** Returns a list consisting only of items/ Возвращает список, состоящий только из элементов. */
3710
- u(this, "mapItems", l(() => this.map.value.filter((t) => t.type === "item")));
3799
+ c(this, "mapItems", l(() => this.map.value.filter((t) => t.type === "item")));
3711
3800
  /**
3712
3801
  * Returns a list consisting only of values for selection.
3713
3802
  *
3714
3803
  * Возвращает список, состоящий только из значений для выбора.
3715
3804
  */
3716
- u(this, "items", l(() => this.map.value.filter(
3805
+ c(this, "items", l(() => this.map.value.filter(
3717
3806
  (t) => t.type === "item" || t.type === "group" || t.type === "menu"
3718
3807
  )));
3719
3808
  /**
@@ -3721,46 +3810,68 @@ class kt {
3721
3810
  *
3722
3811
  * Находит первый элемент, соответствующий условиям поиска.
3723
3812
  */
3724
- u(this, "highlightFirstItem", l(() => {
3725
- const t = this.getHighlight(), e = t && t.length >= this.getHighlightLengthStart() && St(t, "i");
3726
- return e ? this.map.value.findIndex(
3727
- (s) => {
3728
- var n, o, a;
3729
- return ((n = s.label) == null ? void 0 : n.toString().match(e)) || ((o = s.index) == null ? void 0 : o.toString().match(e)) || ((a = s.search) == null ? void 0 : a.toString().match(e));
3730
- }
3731
- ) : -1;
3813
+ c(this, "highlightFirstItem", l(() => {
3814
+ const t = this.getHighlight();
3815
+ if (t && t.length >= this.getHighlightLengthStart()) {
3816
+ const e = Lt(t, "i");
3817
+ if (e)
3818
+ return this.map.value.findIndex(
3819
+ (s) => {
3820
+ var r, o, a;
3821
+ return ((r = s.label) == null ? void 0 : r.toString().match(e)) || ((o = s.index) == null ? void 0 : o.toString().match(e)) || ((a = s.search) == null ? void 0 : a.toString().match(e));
3822
+ }
3823
+ );
3824
+ }
3825
+ return -1;
3732
3826
  }));
3733
3827
  /**
3734
3828
  * Is there a selected item.
3735
3829
  *
3736
3830
  * Есть ли выбранный элемент.
3737
3831
  */
3738
- u(this, "isSelected", l(() => {
3832
+ c(this, "isSelected", l(() => {
3739
3833
  const t = this.getSelected();
3740
- return !!t && this.mapItems.value.findIndex((e) => j(e.index, t)) !== -1;
3834
+ return !!t && this.mapItems.value.findIndex((e) => R(e.index, t)) !== -1;
3835
+ }));
3836
+ /** Is the minimum selection reached/ Достигнуто ли минимальное выделение */
3837
+ c(this, "isSelectedMin", l(() => {
3838
+ const t = Number(f(this.min) || 0);
3839
+ return t > 0 ? t >= this.selectedListInGroup.value.length : !1;
3840
+ }));
3841
+ /** Is the maximum selection reached/ Достигнуто ли максимальное выделение */
3842
+ c(this, "isSelectedMax", l(() => {
3843
+ const t = Number(f(this.max) || 9999999);
3844
+ return t > 0 ? t <= this.selectedListInGroup.value.length : !1;
3741
3845
  }));
3742
3846
  /**
3743
- * Returns a list of selected items on the map.
3744
- *
3745
- * Возвращает список выделенных элементов на карте.
3847
+ * Returns a list of selected items on the map/
3848
+ * Возвращает список выделенных элементов на карте
3746
3849
  */
3747
- u(this, "selectedList", l(() => {
3850
+ c(this, "selectedList", l(() => {
3748
3851
  const t = this.getSelected();
3749
- return t && this.isSelected.value ? this.mapItems.value.filter((e) => j(e.index, t)) : [];
3852
+ return t && this.isSelected.value ? this.mapItems.value.filter((e) => R(e.index, t)) : [];
3853
+ }));
3854
+ /**
3855
+ * Returns a list of selected items in the current group/
3856
+ * Возвращает список выделенных элементов в текущей группе
3857
+ */
3858
+ c(this, "selectedListInGroup", l(() => {
3859
+ const t = this.getSelected();
3860
+ return t && this.isSelected.value ? this.data.value.filter((e) => R(e.index, t)) : [];
3750
3861
  }));
3751
3862
  /**
3752
3863
  * Returns a list of selected items on the map.
3753
3864
  *
3754
3865
  * Возвращает список выделенных элементов на карте.
3755
3866
  */
3756
- u(this, "selectedNames", l(() => nt(this.selectedList.value, "label")));
3867
+ c(this, "selectedNames", l(() => ot(this.selectedList.value, "label")));
3757
3868
  /**
3758
3869
  * Returns a list of selected item values on the map.
3759
3870
  *
3760
3871
  * Возвращает список значений выделенных элементов на карте.
3761
3872
  */
3762
- u(this, "selectedValues", l(() => nt(this.selectedList.value, "value")));
3763
- this.list = t, this.focus = e, this.highlight = s, this.highlightLengthStart = n, this.selected = o, this.keyValue = a, this.keyLabel = c, this.lite = h, this.parent = d, Q(t) && f(t, () => {
3873
+ c(this, "selectedValues", l(() => ot(this.selectedList.value, "value")));
3874
+ this.list = t, this.focus = e, this.highlight = s, this.highlightLengthStart = r, this.filterMode = o, this.selected = a, this.keyValue = u, this.keyLabel = h, this.lite = d, this.min = g, this.max = v, this.parent = x, X(t) && y(t, () => {
3764
3875
  this.subList = {};
3765
3876
  });
3766
3877
  }
@@ -3790,6 +3901,15 @@ class kt {
3790
3901
  isHighlight() {
3791
3902
  return this.highlightFirstItem.value !== -1;
3792
3903
  }
3904
+ /**
3905
+ * Checks if highlighting is active.
3906
+ *
3907
+ * Проверяет, активно ли выделение.
3908
+ */
3909
+ isHighlightActive() {
3910
+ var t, e;
3911
+ return ((e = (t = this.getHighlight()) == null ? void 0 : t.length) != null ? e : 0) < this.getHighlightLengthStart() || this.isHighlight();
3912
+ }
3793
3913
  /**
3794
3914
  * Returns the number of records.
3795
3915
  *
@@ -3850,6 +3970,25 @@ class kt {
3850
3970
  var t;
3851
3971
  return (t = this.selected) == null ? void 0 : t.value;
3852
3972
  }
3973
+ /**
3974
+ * Returns an item by moving a certain number of steps from the selected item.
3975
+ *
3976
+ * Возвращает элемент, перемещаясь на определенное количество шагов от выбранного элемента.
3977
+ * @param step number of steps/ количество шагов
3978
+ */
3979
+ getSelectedByStep(t) {
3980
+ var a, u, h, d, g;
3981
+ const e = (a = this.selectedList.value) == null ? void 0 : a[0], s = this.mapItems.value;
3982
+ if (!e)
3983
+ return (u = s[0]) == null ? void 0 : u.index;
3984
+ const o = s.findIndex((v) => v.index === e.index) + t;
3985
+ if (o in s)
3986
+ return (h = s[o]) == null ? void 0 : h.index;
3987
+ if (t > 0)
3988
+ return (d = s[0]) == null ? void 0 : d.index;
3989
+ if (t < 0)
3990
+ return (g = s[s.length - 1]) == null ? void 0 : g.index;
3991
+ }
3853
3992
  /**
3854
3993
  * Returns an item by its index.
3855
3994
  *
@@ -3899,15 +4038,18 @@ class kt {
3899
4038
  * @param item List item data/ данные элемента списка
3900
4039
  */
3901
4040
  getSubList(t) {
3902
- return t.index in this.subList || (this.subList[t.index] = new kt(
4041
+ return t.index in this.subList || (this.subList[t.index] = new Nt(
3903
4042
  t.value,
3904
4043
  this.focus,
3905
4044
  this.highlight,
3906
4045
  this.highlightLengthStart,
4046
+ this.filterMode,
3907
4047
  this.selected,
3908
4048
  this.keyValue,
3909
4049
  this.keyLabel,
3910
4050
  this.lite,
4051
+ this.min,
4052
+ this.max,
3911
4053
  t.index
3912
4054
  )), this.subList[t.index];
3913
4055
  }
@@ -3939,8 +4081,8 @@ class kt {
3939
4081
  * @param key item key / ключ элемента
3940
4082
  * @param label item label / метка элемента
3941
4083
  */
3942
- getIndex(t, e, s, n) {
3943
- return t && !S(t) ? t : e && !S(e) ? e : s && n;
4084
+ getIndex(t, e, s, r) {
4085
+ return t && !w(t) ? t : e && !w(e) ? e : s && r;
3944
4086
  }
3945
4087
  /**
3946
4088
  * Creates an object of the record element.
@@ -3950,9 +4092,9 @@ class kt {
3950
4092
  * @param item selected element/ выбранный элемент
3951
4093
  */
3952
4094
  initItem(t, e) {
3953
- var s, n, o, a, c, h;
3954
- if (F(e)) {
3955
- const d = e == null ? void 0 : e[(n = (s = this.keyValue) == null ? void 0 : s.value) != null ? n : "value"], g = (c = e == null ? void 0 : e[(a = (o = this.keyLabel) == null ? void 0 : o.value) != null ? a : "label"]) != null ? c : d, D = this.getIndex(
4095
+ var s, r, o, a, u, h;
4096
+ if (E(e)) {
4097
+ const d = e == null ? void 0 : e[(r = (s = this.keyValue) == null ? void 0 : s.value) != null ? r : "value"], g = (u = e == null ? void 0 : e[(a = (o = this.keyLabel) == null ? void 0 : o.value) != null ? a : "label"]) != null ? u : d, v = this.getIndex(
3956
4098
  e == null ? void 0 : e.index,
3957
4099
  d,
3958
4100
  t,
@@ -3961,7 +4103,7 @@ class kt {
3961
4103
  return {
3962
4104
  ...e,
3963
4105
  parent: this.parent,
3964
- index: D,
4106
+ index: v,
3965
4107
  type: (h = e == null ? void 0 : e.type) != null ? h : "item",
3966
4108
  label: g,
3967
4109
  value: d
@@ -3976,7 +4118,7 @@ class kt {
3976
4118
  };
3977
4119
  }
3978
4120
  }
3979
- class $e {
4121
+ class we {
3980
4122
  /**
3981
4123
  * Get router instance.
3982
4124
  *
@@ -4013,8 +4155,8 @@ class $e {
4013
4155
  this.router || this.set(t);
4014
4156
  }
4015
4157
  }
4016
- u($e, "router");
4017
- class fi {
4158
+ c(we, "router");
4159
+ class ki {
4018
4160
  /**
4019
4161
  * Constructor
4020
4162
  */
@@ -4024,46 +4166,46 @@ class fi {
4024
4166
  *
4025
4167
  * Реактивный элемент.
4026
4168
  */
4027
- u(this, "item", p());
4169
+ c(this, "item", $());
4028
4170
  /**
4029
4171
  * Checks whether the scroll width is defined.
4030
4172
  *
4031
4173
  * Проверяет, определена ли ширина скролла.
4032
4174
  */
4033
- u(this, "is", l(() => this.item.value !== void 0));
4034
- bt.is().then((t) => {
4175
+ c(this, "is", l(() => this.item.value !== void 0));
4176
+ wt.is().then((t) => {
4035
4177
  this.item.value = t;
4036
4178
  });
4037
4179
  }
4038
4180
  }
4039
- const pe = (i) => typeof i == "string" ? { method: i } : i || {};
4181
+ const De = (i) => typeof i == "string" ? { method: i } : i || {};
4040
4182
  let J;
4041
- function mi(i, t, e = !0, s, n, o) {
4042
- const a = p(), c = B(pe(t)), h = p(!1), d = p(!1);
4043
- let g = !0, D = 0;
4044
- const H = async () => {
4183
+ function Ci(i, t, e = !0, s, r, o) {
4184
+ const a = $(), u = B(De(t)), h = $(!1), d = $(!1);
4185
+ let g = !0, v = 0;
4186
+ const x = async () => {
4045
4187
  if (g)
4046
4188
  return;
4047
- const k = m(i);
4048
- if ((!s || s.value) && k) {
4189
+ const I = f(i);
4190
+ if ((!s || s.value) && I) {
4049
4191
  h.value = !0, d.value = !0;
4050
- let M = {};
4051
- const ft = await V.request({
4052
- path: k,
4053
- ...c.value
4192
+ let O = {};
4193
+ const ft = await Y.request({
4194
+ path: I,
4195
+ ...u.value
4054
4196
  });
4055
- ft && (M = ft), n ? a.value = n(M) : a.value = M, h.value = !1;
4197
+ ft && (O = ft), r ? a.value = r(O) : a.value = O, h.value = !1;
4056
4198
  } else a.value !== void 0 && (a.value = void 0);
4057
- }, X = () => {
4058
- const k = [];
4059
- e && k.push(c), Q(i) && k.push(i), s && k.push(s), J && k.push(J), k.length > 0 && f(k, async () => {
4060
- h.value || await H();
4199
+ }, M = () => {
4200
+ const I = [];
4201
+ e && I.push(u), X(i) && I.push(i), s && I.push(s), J && I.push(J), I.length > 0 && y(I, async () => {
4202
+ h.value || await x();
4061
4203
  });
4062
4204
  };
4063
4205
  return {
4064
4206
  get data() {
4065
- return g && (g = !1, H().then()), X(), o && (D++, rt(() => {
4066
- D--, D < 1 && (console.warn("useApiRef: unmounted"), a.value = void 0, g = !0, D = 0);
4207
+ return g && (g = !1, x().then()), M(), o && (v++, nt(() => {
4208
+ v--, v < 1 && (console.warn("useApiRef: unmounted"), a.value = void 0, g = !0, v = 0);
4067
4209
  })), a;
4068
4210
  },
4069
4211
  get isStarting() {
@@ -4075,186 +4217,230 @@ function mi(i, t, e = !0, s, n, o) {
4075
4217
  get reading() {
4076
4218
  return l(() => d.value);
4077
4219
  },
4078
- reset: H
4220
+ reset: x
4079
4221
  };
4080
4222
  }
4081
- const yi = (i) => {
4223
+ const Ni = (i) => {
4082
4224
  J || (J = i);
4083
4225
  };
4084
- function ve(i, t) {
4226
+ function Le(i, t) {
4085
4227
  const e = `broadcast--${i}`;
4086
- if (e in G)
4087
- return G[e];
4088
- const s = p(lt(t)), n = new _t(
4228
+ if (e in tt)
4229
+ return tt[e];
4230
+ const s = $(lt(t)), r = new Vt(
4089
4231
  e,
4090
4232
  (o) => {
4091
4233
  s.value !== o.data.message && (s.value = o.data.message);
4092
4234
  }
4093
4235
  );
4094
- return f(s, (o) => n.post({ message: o })), G[e] = s, s;
4236
+ return y(s, (o) => r.post({ message: o })), tt[e] = s, s;
4095
4237
  }
4096
- const G = {};
4097
- function $i(i, t, e) {
4098
- if (i in tt)
4099
- return tt[i];
4100
- const s = new xt(i), n = ve(
4238
+ const tt = {};
4239
+ function Ai(i, t, e) {
4240
+ if (i in et)
4241
+ return et[i];
4242
+ const s = new Rt(i), r = Le(
4101
4243
  `__cookie:${i}`,
4102
4244
  s.get(t, e)
4103
4245
  );
4104
- return f(n, (o) => {
4246
+ return y(r, (o) => {
4105
4247
  s.set(o, e);
4106
- }), tt[i] = n, n;
4248
+ }), et[i] = r, r;
4107
4249
  }
4108
- const tt = {};
4109
- function pi() {
4110
- return new ye();
4250
+ const et = {};
4251
+ function Bi() {
4252
+ return new Se();
4111
4253
  }
4112
- function vi(i, t) {
4113
- if (i in et)
4114
- return et[i];
4115
- const e = Z(O.get(i, t));
4116
- return f(e, (s) => O.set(i, s)), O.addWatch(i, (s) => {
4254
+ function xi(i, t) {
4255
+ if (i in it)
4256
+ return it[i];
4257
+ const e = F(T.get(i, t));
4258
+ return y(e, (s) => T.set(i, s)), T.addWatch(i, (s) => {
4117
4259
  e.value = s;
4118
- }), et[i] = e, e;
4260
+ }), it[i] = e, e;
4119
4261
  }
4120
- const et = {}, bi = () => {
4121
- const i = {}, t = "IntersectionObserver" in window ? new IntersectionObserver(
4122
- (s) => {
4123
- s.forEach((n) => {
4124
- const o = Y(n.target);
4125
- o in i && (i[o].status.value = n.isIntersecting);
4262
+ const it = {}, Ie = (i = {
4263
+ rootMargin: "128px 0px"
4264
+ }) => {
4265
+ const t = {}, e = m() && "IntersectionObserver" in window ? new IntersectionObserver(
4266
+ (r) => {
4267
+ r.forEach((o) => {
4268
+ const a = j(o.target);
4269
+ if (a in t) {
4270
+ const u = t[a];
4271
+ u.status.value = o.isIntersecting, u.ratio.value = o.intersectionRatio, u.entry.value = o;
4272
+ }
4126
4273
  });
4127
4274
  },
4128
- {
4129
- rootMargin: "128px 0px"
4130
- }
4131
- ) : void 0, e = (s) => {
4132
- var n;
4133
- if (s) {
4134
- const o = Y(s);
4135
- o in i && (t == null || t.unobserve(s), (n = i[o]) == null || n.stopWatch(), delete i[o]);
4275
+ i
4276
+ ) : void 0, s = (r) => {
4277
+ var o;
4278
+ if (r) {
4279
+ const a = j(r);
4280
+ a in t && (e == null || e.unobserve(r), (o = t[a]) == null || o.stopWatch(), delete t[a]);
4136
4281
  }
4137
4282
  };
4138
4283
  return {
4139
- intersectionObserver: t,
4284
+ intersectionObserver: e,
4285
+ /**
4286
+ * Getting a tracked element.
4287
+ *
4288
+ * Получение отслеживаемого элемента.
4289
+ * @param element tracked element/ отслеживаемый элемент
4290
+ */
4291
+ getItem(r) {
4292
+ const o = j(r);
4293
+ return t[o];
4294
+ },
4140
4295
  /**
4141
4296
  * Adding an element for tracking.
4142
4297
  *
4143
4298
  * Добавление элемента для отслеживания.
4144
4299
  * @param element element for tracking/ элемента для отслеживания
4145
4300
  */
4146
- addLazyItem(s) {
4147
- const n = Z(!t);
4148
- if (t) {
4149
- const o = f(s, (a, c) => {
4150
- if (c && t.unobserve(c), s.value) {
4151
- const h = Y(s.value);
4152
- i[h] = {
4153
- status: n,
4154
- stopWatch: o
4155
- }, t.observe(s.value);
4301
+ addLazyItem(r) {
4302
+ const o = F(!e);
4303
+ if (e) {
4304
+ let a;
4305
+ a = y(r, (u, h) => {
4306
+ if (h && s(h), r.value) {
4307
+ const d = j(r.value);
4308
+ t[d] = {
4309
+ status: o,
4310
+ ratio: F(0),
4311
+ entry: F(void 0),
4312
+ stopWatch: () => a == null ? void 0 : a()
4313
+ }, e.observe(r.value);
4156
4314
  } else
4157
- e(s.value);
4315
+ s(r.value);
4158
4316
  }, { immediate: !0 });
4159
4317
  }
4160
- return n;
4318
+ return o;
4161
4319
  },
4162
4320
  /**
4163
4321
  * Removing an element from tracking.
4164
4322
  *
4165
4323
  * Удаление элемента из отслеживания.
4166
4324
  */
4167
- removeLazyItem: e,
4325
+ removeLazyItem: s,
4168
4326
  /**
4169
4327
  * Removing all elements from tracking.
4170
4328
  *
4171
4329
  * Удаление всех элементов из отслеживания.
4172
4330
  */
4173
- disconnectLazy: () => t == null ? void 0 : t.disconnect()
4331
+ disconnectLazy: () => e == null ? void 0 : e.disconnect()
4332
+ };
4333
+ }, vt = [], ke = (i) => {
4334
+ const t = vt.find((s) => s.rootMargin === i);
4335
+ if (t)
4336
+ return t.item;
4337
+ const e = Ie({ rootMargin: i });
4338
+ return vt.push({ rootMargin: i, item: e }), e;
4339
+ }, Fi = (i, t) => {
4340
+ const e = ke(t);
4341
+ return {
4342
+ /** Lazy item status/ Статус ленивого элемента */
4343
+ lazyItemStatus: e.addLazyItem(i),
4344
+ /**
4345
+ * Getting a tracked lazy item.
4346
+ *
4347
+ * Получение отслеживаемого ленивого элемента.
4348
+ */
4349
+ get lazyItem() {
4350
+ return e.getItem(i.value);
4351
+ }
4174
4352
  };
4175
4353
  };
4176
- function Si() {
4177
- const i = Z(mt.is());
4354
+ function Ei() {
4355
+ const i = F(mt.is());
4178
4356
  return mt.registrationEvent(({ detail: t }) => {
4179
4357
  i.value = t.loading;
4180
4358
  }), i;
4181
4359
  }
4182
- const Ct = [], be = z(1e5, 999999);
4183
- function Se(i, t = !0, e = !1, s = !0) {
4184
- let n;
4185
- const o = `__execute_use${be}::${Y()}`, a = (...c) => {
4360
+ const At = [], Ce = _(1e5, 999999);
4361
+ function Ne(i, t = !0, e = !1, s = !0) {
4362
+ let r;
4363
+ const o = `__execute_use${Ce}::${j()}`, a = (h) => {
4364
+ const d = Object.freeze(i(...h));
4365
+ return Object.freeze({
4366
+ ...d,
4367
+ init() {
4368
+ return d;
4369
+ }
4370
+ });
4371
+ }, u = (...h) => {
4186
4372
  if (!e && s) {
4187
- const h = jt(o, void 0);
4188
- if (h)
4189
- return h;
4373
+ const d = _t(o, void 0);
4374
+ if (d)
4375
+ return d;
4190
4376
  {
4191
- let d = Object.freeze(i(...c));
4192
- return Ut(o, d), t && rt(() => {
4193
- d = void 0;
4194
- }), d;
4377
+ let g = a(h);
4378
+ return Kt(o, g), t && nt(() => {
4379
+ g = void 0;
4380
+ }), g;
4195
4381
  }
4196
- } else n || (n = Object.freeze(i(...c)), t && rt(() => {
4197
- n = void 0;
4382
+ } else r || (r = a(h), t && nt(() => {
4383
+ r = void 0;
4198
4384
  }));
4199
- return n;
4385
+ return r;
4200
4386
  };
4201
- return e && Ct.push(a), a;
4387
+ return e && At.push(u), u;
4202
4388
  }
4203
- function wi() {
4204
- Ct.forEach((i) => i());
4389
+ function Hi() {
4390
+ At.forEach((i) => i());
4205
4391
  }
4206
- const we = Se(() => {
4207
- const i = new Gt(), t = p(i.getTitle()), e = p(i.getKeywords()), s = p(i.getDescription()), n = p(i.getImage()), o = p(i.getCanonical()), a = p(i.getRobots()), c = p(i.getAuthor()), h = p(i.getSiteName()), d = () => i.html();
4208
- return f(t, () => {
4392
+ const Ae = Ne(() => {
4393
+ const i = new ie(), t = $(i.getTitle()), e = $(i.getKeywords()), s = $(i.getDescription()), r = $(i.getImage()), o = $(i.getCanonical()), a = $(i.getRobots()), u = $(i.getAuthor()), h = $(i.getSiteName()), d = () => i.html();
4394
+ return y(t, () => {
4209
4395
  i.setTitle(t.value);
4210
- }), f(e, () => {
4396
+ }), y(e, () => {
4211
4397
  i.setKeywords(e.value);
4212
- }), f(s, () => {
4398
+ }), y(s, () => {
4213
4399
  i.setDescription(s.value);
4214
- }), f(n, () => {
4215
- i.setImage(n.value);
4216
- }), f(o, () => {
4400
+ }), y(r, () => {
4401
+ i.setImage(r.value);
4402
+ }), y(o, () => {
4217
4403
  i.setCanonical(o.value);
4218
- }), f(a, () => {
4404
+ }), y(a, () => {
4219
4405
  i.setRobots(a.value);
4220
- }), f(c, () => {
4221
- i.setAuthor(c.value);
4222
- }), f(h, () => {
4406
+ }), y(u, () => {
4407
+ i.setAuthor(u.value);
4408
+ }), y(h, () => {
4223
4409
  i.setSiteName(h.value);
4224
4410
  }), {
4225
4411
  meta: i,
4226
4412
  title: t,
4227
4413
  keyword: e,
4228
4414
  description: s,
4229
- author: c,
4230
- image: n,
4415
+ author: u,
4416
+ image: r,
4231
4417
  canonical: o,
4232
4418
  robots: a,
4233
4419
  siteName: h,
4234
4420
  getHtmlMeta: d
4235
4421
  };
4236
- }, !1, !0), Di = () => we();
4237
- function Li(i, t) {
4238
- if (i in it)
4239
- return it[i];
4240
- const e = new ut(i, !0), s = p(e.get(t));
4241
- return f(s, (n) => e.set(n)), it[i] = s, s;
4242
- }
4243
- const it = {};
4244
- function ki(i, t, e) {
4422
+ }, !1, !0), Ri = () => Ae();
4423
+ function Pi(i, t) {
4245
4424
  if (i in st)
4246
4425
  return st[i];
4247
- const s = new ut(i), n = p(s.get(t, e));
4248
- return f(n, (o) => s.set(o)), y() && window.addEventListener("storage", () => {
4249
- s.update(), n.value = s.get();
4250
- }), st[i] = n, n;
4426
+ const e = new ct(i, !0), s = $(e.get(t));
4427
+ return y(s, (r) => e.set(r)), st[i] = s, s;
4251
4428
  }
4252
4429
  const st = {};
4253
- function De(i) {
4254
- const t = Z(q.getListSync(i, !0)), e = async () => {
4430
+ function Wi(i, t, e) {
4431
+ if (i in rt)
4432
+ return rt[i];
4433
+ const s = new ct(i), r = $(s.get(t, e));
4434
+ return y(r, (o) => s.set(o)), m() && window.addEventListener("storage", () => {
4435
+ s.update(), r.value = s.get();
4436
+ }), rt[i] = r, r;
4437
+ }
4438
+ const rt = {};
4439
+ function Be(i) {
4440
+ const t = F(q.getListSync(i, !0)), e = async () => {
4255
4441
  t.value = { ...await q.getList(i) };
4256
4442
  };
4257
- f(K.getLanguage(), e);
4443
+ y(V.getLanguage(), e);
4258
4444
  for (const s in t.value)
4259
4445
  if (t.value[s] === s || t.value[s] === " ") {
4260
4446
  e().then();
@@ -4262,204 +4448,220 @@ function De(i) {
4262
4448
  }
4263
4449
  return t;
4264
4450
  }
4265
- const Ci = (i) => De(i);
4266
- function Ii(i, t = () => {
4451
+ const ji = (i) => Be(i);
4452
+ function Ui(i, t) {
4453
+ const e = $();
4454
+ return Dt(async () => {
4455
+ e.value = await Pt(i);
4456
+ }), l(() => e.value, t);
4457
+ }
4458
+ function zi(i, t = () => {
4267
4459
  }, e, s) {
4268
4460
  return l(
4269
4461
  () => {
4270
- if (K.get().value && (e === void 0 || e())) {
4271
- const n = i();
4272
- if (n !== void 0)
4273
- return n;
4462
+ if (V.get().value && (e === void 0 || e())) {
4463
+ const r = i();
4464
+ if (r !== void 0)
4465
+ return r;
4274
4466
  }
4275
4467
  return lt(t);
4276
4468
  },
4277
4469
  s
4278
4470
  );
4279
4471
  }
4280
- function Le(i, t = {}, e = "value", s = !1) {
4281
- const n = typeof t == "string", o = n ? t : e, a = n ? {} : t;
4282
- return i ? i && F(i) && (o in i || s) ? at(a, i) : at(a, { [o]: i }) : n ? {} : { ...a };
4472
+ function xe(i, t = {}, e = "value", s = !1) {
4473
+ const r = typeof t == "string", o = r ? t : e, a = r ? {} : t;
4474
+ return i ? i && E(i) && (o in i || s) ? ut(a, i) : ut(a, { [o]: i }) : r ? {} : { ...a };
4283
4475
  }
4284
- function Ni(i, t = {}, e = "value") {
4285
- return l(() => Le(m(i), m(t), e));
4476
+ function Zi(i, t = {}, e = "value") {
4477
+ return l(() => xe(f(i), f(t), e));
4286
4478
  }
4287
- const Ai = (i, t) => {
4288
- const e = p();
4479
+ const _i = (i, t) => {
4480
+ const e = $();
4289
4481
  let s = !0;
4290
- const n = () => {
4291
- s && (zt(async () => {
4292
- const o = m(await i());
4482
+ const r = () => {
4483
+ s && (Dt(async () => {
4484
+ const o = f(await i());
4293
4485
  o !== t && (e.value = o);
4294
4486
  }), s = !1);
4295
4487
  };
4296
- return l(() => (n(), e.value));
4488
+ return l(() => (r(), e.value));
4297
4489
  };
4298
- function Bi(i, t) {
4490
+ function Ki(i, t) {
4299
4491
  i.value !== t && (i.value = t);
4300
4492
  }
4301
- function Fi(i) {
4493
+ function Vi(i) {
4302
4494
  let t;
4303
4495
  return l(() => (t || (t = i()), t.value));
4304
4496
  }
4305
4497
  export {
4306
- V as Api,
4307
- Pi as ApiDefault,
4308
- Hi as ApiHeaders,
4309
- Ri as ApiMethodItem,
4310
- Wi as ApiPreparation,
4311
- ji as ApiResponse,
4312
- Ui as ApiStatus,
4313
- _t as BroadcastMessage,
4314
- zi as Cache,
4315
- _i as CacheItem,
4316
- Ki as CacheStatic,
4317
- xt as Cookie,
4318
- Zi as CookieBlock,
4319
- ut as DataStorage,
4498
+ Y as Api,
4499
+ Ji as ApiDefault,
4500
+ Qi as ApiHeaders,
4501
+ Xi as ApiMethodItem,
4502
+ Mi as ApiPreparation,
4503
+ Oi as ApiResponse,
4504
+ Ti as ApiStatus,
4505
+ Vt as BroadcastMessage,
4506
+ Gi as Cache,
4507
+ ts as CacheItem,
4508
+ es as CacheStatic,
4509
+ Rt as Cookie,
4510
+ is as CookieBlock,
4511
+ ct as DataStorage,
4320
4512
  ht as Datetime,
4321
- hi as DatetimeRef,
4322
- he as DesignAbstract,
4323
- ui as DesignAsyncAbstract,
4324
- le as DesignChanged,
4325
- ci as DesignComp,
4326
- Lt as DesignComponents,
4327
- li as DesignConstructorAbstract,
4328
- Ft as EventItem,
4329
- di as EventRef,
4330
- r as GEO_FLAG_ICON_NAME,
4331
- w as Geo,
4332
- ot as GeoFlag,
4333
- gi as GeoFlagRef,
4334
- P as GeoIntl,
4335
- ye as GeoIntlRef,
4336
- Vi as GeoPhone,
4337
- K as GeoRef,
4338
- Ne as Global,
4339
- O as Hash,
4340
- Yi as Icons,
4341
- kt as ListDataRef,
4513
+ Di as DatetimeRef,
4514
+ ye as DesignAbstract,
4515
+ bi as DesignAsyncAbstract,
4516
+ me as DesignChanged,
4517
+ Si as DesignComp,
4518
+ Ct as DesignComponents,
4519
+ wi as DesignConstructorAbstract,
4520
+ Ht as EventItem,
4521
+ Li as EventRef,
4522
+ n as GEO_FLAG_ICON_NAME,
4523
+ D as Geo,
4524
+ at as GeoFlag,
4525
+ Ii as GeoFlagRef,
4526
+ W as GeoIntl,
4527
+ Se as GeoIntlRef,
4528
+ ss as GeoPhone,
4529
+ V as GeoRef,
4530
+ Re as Global,
4531
+ T as Hash,
4532
+ rs as Icons,
4533
+ Nt as ListDataRef,
4342
4534
  mt as Loading,
4343
- Gt as Meta,
4535
+ ie as Meta,
4344
4536
  dt as MetaManager,
4345
- Ot as MetaOg,
4346
- Qt as MetaOpenGraphAge,
4347
- qt as MetaOpenGraphAvailability,
4348
- Jt as MetaOpenGraphCondition,
4349
- Xt as MetaOpenGraphGender,
4350
- v as MetaOpenGraphTag,
4351
- Yt as MetaOpenGraphType,
4352
- Vt as MetaRobots,
4537
+ te as MetaOg,
4538
+ Ot as MetaOpenGraphAge,
4539
+ Xt as MetaOpenGraphAvailability,
4540
+ Mt as MetaOpenGraphCondition,
4541
+ Tt as MetaOpenGraphGender,
4542
+ b as MetaOpenGraphTag,
4543
+ Qt as MetaOpenGraphType,
4544
+ Jt as MetaRobots,
4353
4545
  L as MetaTag,
4354
- Tt as MetaTwitter,
4355
- Mt as MetaTwitterCard,
4356
- b as MetaTwitterTag,
4357
- $e as RouterItemRef,
4358
- bt as ScrollbarWidth,
4359
- fi as ScrollbarWidthRef,
4546
+ ee as MetaTwitter,
4547
+ Gt as MetaTwitterCard,
4548
+ S as MetaTwitterTag,
4549
+ we as RouterItemRef,
4550
+ wt as ScrollbarWidth,
4551
+ ki as ScrollbarWidthRef,
4360
4552
  q as Translate,
4361
- Ae as anyToString,
4362
- ee as applyTemplate,
4363
- ie as arrFill,
4364
- Ii as computedByLanguage,
4365
- U as copyObject,
4366
- Bt as createElement,
4367
- Be as domQuerySelector,
4368
- Fe as domQuerySelectorAll,
4369
- Zt as encodeAttribute,
4370
- xe as eventStopPropagation,
4553
+ Pe as anyToString,
4554
+ re as applyTemplate,
4555
+ ne as arrFill,
4556
+ We as blobToBase64,
4557
+ Ui as computedAsync,
4558
+ zi as computedByLanguage,
4559
+ Z as copyObject,
4560
+ Et as copyObjectLite,
4561
+ bt as createElement,
4562
+ je as domQuerySelector,
4563
+ Ue as domQuerySelectorAll,
4564
+ qt as encodeAttribute,
4565
+ ze as eventStopPropagation,
4371
4566
  lt as executeFunction,
4372
- qi as executePromise,
4373
- Se as executeUse,
4374
- wi as executeUseGlobalInit,
4375
- $ as forEach,
4376
- se as frame,
4377
- Ee as getAttributes,
4378
- Le as getBind,
4379
- Ni as getBindRef,
4380
- de as getClassName,
4381
- Pe as getClipboardData,
4382
- nt as getColumn,
4383
- Ai as getComputedAsync,
4384
- vt as getElement,
4385
- Y as getElementId,
4386
- Ji as getElementItem,
4387
- Qi as getElementOrWindow,
4388
- St as getExp,
4389
- ge as getIndexForRender,
4390
- re as getItemByPath,
4391
- He as getKey,
4392
- wt as getLengthOfAllArray,
4393
- Re as getMaxLengthAllArray,
4394
- We as getMinLengthAllArray,
4395
- je as getMouseClient,
4396
- ne as getMouseClientX,
4397
- oe as getMouseClientY,
4398
- Ue as getObjectByKeys,
4399
- ze as getObjectNoUndefined,
4400
- _e as getObjectOrNone,
4401
- Ke as getRandomText,
4402
- m as getRef,
4403
- Xi as getRequestString,
4404
- Ze as getStepPercent,
4405
- Ve as getStepValue,
4406
- Ye as goScroll,
4407
- qe as inArray,
4408
- Je as initScrollbarOffset,
4409
- Qe as intersectKey,
4567
+ Pt as executePromise,
4568
+ Ne as executeUse,
4569
+ Hi as executeUseGlobalInit,
4570
+ p as forEach,
4571
+ oe as frame,
4572
+ Ze as getAttributes,
4573
+ xe as getBind,
4574
+ Zi as getBindRef,
4575
+ $e as getClassName,
4576
+ _e as getClipboardData,
4577
+ ot as getColumn,
4578
+ _i as getComputedAsync,
4579
+ St as getElement,
4580
+ j as getElementId,
4581
+ ae as getElementImage,
4582
+ ns as getElementItem,
4583
+ os as getElementOrWindow,
4584
+ Lt as getExp,
4585
+ pe as getIndexForRender,
4586
+ ue as getItemByPath,
4587
+ Ke as getKey,
4588
+ It as getLengthOfAllArray,
4589
+ Ve as getMaxLengthAllArray,
4590
+ Ye as getMinLengthAllArray,
4591
+ qe as getMouseClient,
4592
+ ce as getMouseClientX,
4593
+ le as getMouseClientY,
4594
+ Je as getObjectByKeys,
4595
+ Qe as getObjectNoUndefined,
4596
+ Xe as getObjectOrNone,
4597
+ Me as getRandomText,
4598
+ f as getRef,
4599
+ as as getRequestString,
4600
+ Oe as getStepPercent,
4601
+ Te as getStepValue,
4602
+ Ge as goScroll,
4603
+ ti as goScrollSmooth,
4604
+ ei as inArray,
4605
+ ii as initScrollbarOffset,
4606
+ si as intersectKey,
4410
4607
  gt as isArray,
4411
- Xe as isDifferent,
4412
- y as isDomRuntime,
4413
- _ as isFilled,
4414
- Me as isFloat,
4415
- Mi as isFunction,
4416
- Oi as isInDom,
4417
- Oe as isIntegerBetween,
4418
- At as isNull,
4419
- Ti as isNumber,
4420
- S as isObject,
4421
- F as isObjectNotArray,
4422
- j as isSelected,
4423
- Te as isSelectedByList,
4424
- ct as isString,
4425
- Gi as isWindow,
4426
- z as random,
4427
- fe as render,
4428
- R as replaceRecursive,
4429
- Ge as replaceTemplate,
4430
- ti as secondToTime,
4431
- yi as setApiRefGlobalConditions,
4432
- ts as setElementItem,
4433
- Bi as setRef,
4434
- ei as setValues,
4435
- ii as splice,
4436
- ae as strFill,
4437
- Ci as t,
4438
- W as toArray,
4439
- at as toBind,
4440
- me as toBinds,
4441
- Dt as toCamelCase,
4442
- si as toCamelCaseFirst,
4443
- Fi as toComputed,
4608
+ ri as isDifferent,
4609
+ us as isDomData,
4610
+ m as isDomRuntime,
4611
+ K as isFilled,
4612
+ ni as isFloat,
4613
+ cs as isFunction,
4614
+ ls as isInDom,
4615
+ oi as isIntegerBetween,
4616
+ Ft as isNull,
4617
+ hs as isNumber,
4618
+ w as isObject,
4619
+ E as isObjectNotArray,
4620
+ R as isSelected,
4621
+ ai as isSelectedByList,
4622
+ Q as isString,
4623
+ ds as isWindow,
4624
+ _ as random,
4625
+ ui as removeCommonPrefix,
4626
+ ve as render,
4627
+ U as replaceRecursive,
4628
+ ci as replaceTemplate,
4629
+ li as resizeImageByMax,
4630
+ hi as secondToTime,
4631
+ Ni as setApiRefGlobalConditions,
4632
+ gs as setElementItem,
4633
+ Ki as setRef,
4634
+ di as setValues,
4635
+ gi as splice,
4636
+ he as strFill,
4637
+ ji as t,
4638
+ z as toArray,
4639
+ ut as toBind,
4640
+ be as toBinds,
4641
+ kt as toCamelCase,
4642
+ fi as toCamelCaseFirst,
4643
+ Vi as toComputed,
4444
4644
  A as toDate,
4445
- ri as toKebabCase,
4645
+ mi as toKebabCase,
4446
4646
  N as toNumber,
4447
- ni as toNumberByMax,
4448
- ce as toPercent,
4449
- oi as toPercentBy100,
4647
+ yi as toNumberByMax,
4648
+ fe as toPercent,
4649
+ $i as toPercentBy100,
4450
4650
  B as toRefItem,
4451
- es as transformation,
4452
- ue as uniqueArray,
4453
- mi as useApiRef,
4454
- ve as useBroadcastValueRef,
4455
- $i as useCookieRef,
4456
- pi as useGeoIntlRef,
4457
- vi as useHashRef,
4458
- bi as useLazyRef,
4459
- Si as useLoadingRef,
4460
- Di as useMeta,
4461
- Li as useSessionRef,
4462
- ki as useStorageRef,
4463
- De as useTranslateRef,
4464
- ai as writeClipboardData
4651
+ fs as transformation,
4652
+ pi as uint8ArrayToBase64,
4653
+ de as uniqueArray,
4654
+ Ci as useApiRef,
4655
+ Le as useBroadcastValueRef,
4656
+ Ai as useCookieRef,
4657
+ Bi as useGeoIntlRef,
4658
+ xi as useHashRef,
4659
+ Fi as useLazyItemByMarginRef,
4660
+ Ie as useLazyRef,
4661
+ Ei as useLoadingRef,
4662
+ Ri as useMeta,
4663
+ Pi as useSessionRef,
4664
+ Wi as useStorageRef,
4665
+ Be as useTranslateRef,
4666
+ vi as writeClipboardData
4465
4667
  };