@dxtmisha/functional 1.3.0 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/dist/ScrollbarWidth-D6yhyHBp.js +2184 -0
  2. package/dist/classes/ref/DatetimeRef.d.ts +1 -3
  3. package/dist/classes/ref/EventRef.d.ts +1 -2
  4. package/dist/classes/ref/GeoFlagRef.d.ts +1 -2
  5. package/dist/classes/ref/GeoIntlRef.d.ts +1 -2
  6. package/dist/classes/ref/GeoRef.d.ts +1 -1
  7. package/dist/composables/ref/useApiRef.d.ts +1 -1
  8. package/dist/composables/ref/useCookieRef.d.ts +1 -1
  9. package/dist/composables/ref/useMeta.d.ts +1 -2
  10. package/dist/composables/ref/useTranslateRef.d.ts +1 -1
  11. package/dist/flags.js +1 -1
  12. package/dist/functions/basic.d.ts +1 -0
  13. package/dist/functions/computedByLanguage.d.ts +15 -0
  14. package/dist/functions/ref/getBindRef.d.ts +1 -1
  15. package/dist/functions/ref/render.d.ts +1 -1
  16. package/dist/functions/render/getBind.d.ts +2 -2
  17. package/dist/functions/render/getClassName.d.ts +1 -1
  18. package/dist/functions/render/getIndexForRender.d.ts +1 -1
  19. package/dist/functions/toBind.d.ts +1 -1
  20. package/dist/functions/toBinds.d.ts +1 -1
  21. package/dist/library.d.ts +2 -103
  22. package/dist/library.js +1338 -1846
  23. package/dist/types/constructorTypes.d.ts +1 -1
  24. package/dist/types/listTypes.d.ts +1 -1
  25. package/package.json +6 -5
  26. package/dist/Icons-BNmTjp32.js +0 -1301
  27. package/dist/classes/Api.d.ts +0 -305
  28. package/dist/classes/BroadcastMessage.d.ts +0 -36
  29. package/dist/classes/Cache.d.ts +0 -34
  30. package/dist/classes/CacheItem.d.ts +0 -55
  31. package/dist/classes/CacheStatic.d.ts +0 -17
  32. package/dist/classes/Cookie.d.ts +0 -58
  33. package/dist/classes/CookieBlock.d.ts +0 -22
  34. package/dist/classes/DataStorage.d.ts +0 -82
  35. package/dist/classes/Datetime.d.ts +0 -482
  36. package/dist/classes/EventItem.d.ts +0 -160
  37. package/dist/classes/Geo.d.ts +0 -168
  38. package/dist/classes/GeoFlag.d.ts +0 -79
  39. package/dist/classes/GeoIntl.d.ts +0 -262
  40. package/dist/classes/GeoPhone.d.ts +0 -107
  41. package/dist/classes/Global.d.ts +0 -21
  42. package/dist/classes/Hash.d.ts +0 -59
  43. package/dist/classes/Icons.d.ts +0 -90
  44. package/dist/classes/Loading.d.ts +0 -49
  45. package/dist/classes/Meta.d.ts +0 -168
  46. package/dist/classes/MetaManager.d.ts +0 -103
  47. package/dist/classes/MetaOg.d.ts +0 -101
  48. package/dist/classes/MetaTwitter.d.ts +0 -101
  49. package/dist/classes/ScrollbarWidth.d.ts +0 -33
  50. package/dist/classes/Translate.d.ts +0 -116
  51. package/dist/classes/__tests__/Meta.test.d.ts +0 -4
  52. package/dist/classes/__tests__/MetaManager.test.d.ts +0 -4
  53. package/dist/classes/__tests__/MetaOg.test.d.ts +0 -4
  54. package/dist/classes/__tests__/MetaTwitter.test.d.ts +0 -4
  55. package/dist/functions/anyToString.d.ts +0 -7
  56. package/dist/functions/applyTemplate.d.ts +0 -10
  57. package/dist/functions/arrFill.d.ts +0 -8
  58. package/dist/functions/copyObject.d.ts +0 -8
  59. package/dist/functions/createElement.d.ts +0 -13
  60. package/dist/functions/domQuerySelector.d.ts +0 -7
  61. package/dist/functions/domQuerySelectorAll.d.ts +0 -7
  62. package/dist/functions/encodeAttribute.d.ts +0 -7
  63. package/dist/functions/eventStopPropagation.d.ts +0 -7
  64. package/dist/functions/executeFunction.d.ts +0 -8
  65. package/dist/functions/executePromise.d.ts +0 -7
  66. package/dist/functions/forEach.d.ts +0 -11
  67. package/dist/functions/frame.d.ts +0 -16
  68. package/dist/functions/getAttributes.d.ts +0 -8
  69. package/dist/functions/getClipboardData.d.ts +0 -11
  70. package/dist/functions/getColumn.d.ts +0 -10
  71. package/dist/functions/getElement.d.ts +0 -8
  72. package/dist/functions/getElementId.d.ts +0 -9
  73. package/dist/functions/getElementItem.d.ts +0 -11
  74. package/dist/functions/getElementOrWindow.d.ts +0 -8
  75. package/dist/functions/getExp.d.ts +0 -13
  76. package/dist/functions/getItemByPath.d.ts +0 -8
  77. package/dist/functions/getKey.d.ts +0 -7
  78. package/dist/functions/getLengthOfAllArray.d.ts +0 -8
  79. package/dist/functions/getMaxLengthAllArray.d.ts +0 -8
  80. package/dist/functions/getMinLengthAllArray.d.ts +0 -8
  81. package/dist/functions/getMouseClient.d.ts +0 -8
  82. package/dist/functions/getMouseClientX.d.ts +0 -7
  83. package/dist/functions/getMouseClientY.d.ts +0 -7
  84. package/dist/functions/getObjectByKeys.d.ts +0 -8
  85. package/dist/functions/getObjectNoUndefined.d.ts +0 -8
  86. package/dist/functions/getObjectOrNone.d.ts +0 -7
  87. package/dist/functions/getRandomText.d.ts +0 -11
  88. package/dist/functions/getRequestString.d.ts +0 -9
  89. package/dist/functions/getStepPercent.d.ts +0 -8
  90. package/dist/functions/getStepValue.d.ts +0 -8
  91. package/dist/functions/goScroll.d.ts +0 -10
  92. package/dist/functions/inArray.d.ts +0 -8
  93. package/dist/functions/initScrollbarOffset.d.ts +0 -6
  94. package/dist/functions/intersectKey.d.ts +0 -8
  95. package/dist/functions/isArray.d.ts +0 -7
  96. package/dist/functions/isDifferent.d.ts +0 -9
  97. package/dist/functions/isDomRuntime.d.ts +0 -10
  98. package/dist/functions/isFilled.d.ts +0 -9
  99. package/dist/functions/isFloat.d.ts +0 -7
  100. package/dist/functions/isFunction.d.ts +0 -8
  101. package/dist/functions/isInDom.d.ts +0 -8
  102. package/dist/functions/isIntegerBetween.d.ts +0 -8
  103. package/dist/functions/isNull.d.ts +0 -8
  104. package/dist/functions/isNumber.d.ts +0 -7
  105. package/dist/functions/isObject.d.ts +0 -7
  106. package/dist/functions/isObjectNotArray.d.ts +0 -7
  107. package/dist/functions/isSelected.d.ts +0 -8
  108. package/dist/functions/isSelectedByList.d.ts +0 -8
  109. package/dist/functions/isString.d.ts +0 -7
  110. package/dist/functions/isWindow.d.ts +0 -7
  111. package/dist/functions/random.d.ts +0 -8
  112. package/dist/functions/replaceRecursive.d.ts +0 -10
  113. package/dist/functions/replaceTemplate.d.ts +0 -9
  114. package/dist/functions/secondToTime.d.ts +0 -7
  115. package/dist/functions/setElementItem.d.ts +0 -10
  116. package/dist/functions/setValues.d.ts +0 -17
  117. package/dist/functions/splice.d.ts +0 -12
  118. package/dist/functions/strFill.d.ts +0 -8
  119. package/dist/functions/toArray.d.ts +0 -17
  120. package/dist/functions/toCamelCase.d.ts +0 -7
  121. package/dist/functions/toCamelCaseFirst.d.ts +0 -7
  122. package/dist/functions/toDate.d.ts +0 -7
  123. package/dist/functions/toKebabCase.d.ts +0 -15
  124. package/dist/functions/toNumber.d.ts +0 -8
  125. package/dist/functions/toNumberByMax.d.ts +0 -9
  126. package/dist/functions/toPercent.d.ts +0 -8
  127. package/dist/functions/toPercentBy100.d.ts +0 -8
  128. package/dist/functions/transformation.d.ts +0 -21
  129. package/dist/functions/uniqueArray.d.ts +0 -7
  130. package/dist/functions/writeClipboardData.d.ts +0 -7
  131. package/dist/types/basicTypes.d.ts +0 -126
  132. package/dist/types/geoTypes.d.ts +0 -86
  133. package/dist/types/metaTypes.d.ts +0 -584
package/dist/library.js CHANGED
@@ -1,33 +1,34 @@
1
- var Wt = Object.defineProperty;
2
- var Pt = (i, t, e) => t in i ? Wt(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
- var A = (i, t, e) => Pt(i, typeof t != "symbol" ? t + "" : t, e);
4
- import { D as X, i as d, r as z, e as B, a as F, b as jt, G as b, f, t as k, c as ht, d as R, g as Ht, h as M, j as p, k as C, A as V, l as m, E as Ut, m as j, L as $t, n as H } from "./Icons-BNmTjp32.js";
5
- import { o as qi, I as Ji, p as Qi, q as Xi, s as Mi, u as Oi, v as Ti, w as Gi } from "./Icons-BNmTjp32.js";
6
- import { ref as y, watch as g, h as _t, computed as c, toRefs as zt, useAttrs as Zt, useSlots as Kt, isRef as dt, triggerRef as Vt, shallowRef as Z, onUnmounted as ot, inject as Yt, provide as qt, watchEffect as Jt } from "vue";
7
- function Qt(i, t, e) {
8
- if (i in G)
9
- return G[i];
10
- const s = new X(i), n = y(s.get(t, e));
11
- return g(n, (o) => s.set(o)), d() && window.addEventListener("storage", () => {
12
- s.update(), n.value = s.get();
13
- }), G[i] = n, n;
14
- }
15
- const G = {};
16
- class Xt {
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 {
17
8
  /**
18
9
  * Constructor
19
10
  * @param name channel name/ название канала
20
11
  * @param callback callback on message received/ колбэк на получение сообщения
21
12
  */
22
13
  constructor(t, e) {
23
- if (this.callback = e, d())
14
+ u(this, "channel");
15
+ /**
16
+ * Update state on message received.
17
+ *
18
+ * Обновление состояния при получении сообщения.
19
+ * @param event message event/ событие сообщения
20
+ */
21
+ u(this, "update", (t) => {
22
+ var e;
23
+ return (e = this.callback) == null || e.call(this, t), this;
24
+ });
25
+ if (this.callback = e, y())
24
26
  try {
25
- this.channel = new BroadcastChannel(`${Mt()}__${t}`), this.channel.onmessage = this.update;
27
+ this.channel = new BroadcastChannel(`${Kt()}__${t}`), this.channel.onmessage = this.update;
26
28
  } catch (s) {
27
29
  console.error(`BroadcastMessage ${t}:`, s);
28
30
  }
29
31
  }
30
- channel;
31
32
  /**
32
33
  * Send a message to the channel.
33
34
  *
@@ -35,7 +36,8 @@ class Xt {
35
36
  * @param message message to send/ сообщение для отправки
36
37
  */
37
38
  post(t) {
38
- return this.channel?.postMessage(t), this;
39
+ var e;
40
+ return (e = this.channel) == null || e.postMessage(t), this;
39
41
  }
40
42
  /**
41
43
  * Set the callback function to be called when a message is received.
@@ -46,296 +48,47 @@ class Xt {
46
48
  setCallback(t) {
47
49
  return this.callback = t, this;
48
50
  }
49
- /**
50
- * Update state on message received.
51
- *
52
- * Обновление состояния при получении сообщения.
53
- * @param event message event/ событие сообщения
54
- */
55
- update = (t) => (this.callback?.(t), this);
56
- }
57
- const Mt = () => Qt(
58
- "__broadcast-name",
59
- () => `name_${z(1e6, 9999999)}`
60
- );
61
- class Ot {
62
- /**
63
- * Constructor
64
- * @param callback function for the cache/ функция для кэша
65
- */
66
- constructor(t) {
67
- this.callback = t;
68
- }
69
- cache;
70
- cacheOld;
71
- comparisons = [];
72
- /**
73
- * Getting data for the cache, and if there is no cache, it performs a function to save the cache.
74
- *
75
- * Получение данных для кэша, и если нет кэша, выполняет функцию для сохранения кэша.
76
- * @param comparison additional data for comparison/ дополнительные данные для сравнения
77
- */
78
- getCache(t) {
79
- return this.isUpdate(t) && (this.cacheOld = this.cache, this.setCache()), this.cache;
80
- }
81
- /**
82
- * Getting the previous value of the cache.
83
- *
84
- * Получение предыдущего значения кэша.
85
- */
86
- getCacheOld() {
87
- return this.cacheOld;
88
- }
89
- /**
90
- * Getting data for the cache, and if there is no cache, it performs a function to save the cache (Async).
91
- *
92
- * Получение данных для кэша, и если нет кэша, выполняет функцию для сохранения кэша (Async).
93
- * @param comparison additional data for comparison/ дополнительные данные для сравнения
94
- */
95
- async getCacheAsync(t) {
96
- return this.isUpdate(t) && (this.cacheOld = this.cache, await this.setCacheAsync()), this.cache;
97
- }
98
- /**
99
- * Overwrites or adds new values for the cache.
100
- *
101
- * Перезаписывает или добавляет новые значения для кэша.
102
- */
103
- setCache() {
104
- this.cache = this.callback();
105
- }
106
- /**
107
- * Overwrites or adds new values for the cache (Async).
108
- *
109
- * Перезаписывает или добавляет новые значения для кэша (Async).
110
- */
111
- async setCacheAsync() {
112
- this.cache = await this.callback();
113
- }
114
- /**
115
- * Checking additional data.
116
- *
117
- * Проверка дополнительных данных.
118
- * @param comparison additional data for comparison/ дополнительные данные для сравнения
119
- */
120
- isUpdate(t) {
121
- return this.cache === void 0 || this.comparisons.length !== t.length || this.comparisons.findIndex((e, s) => e !== t[s]) >= 0 ? (this.comparisons = [...t], !0) : !1;
122
- }
123
- }
124
- class Tt {
125
- cache = {};
126
- /**
127
- * Getting data for the cache, and if there is no cache, it performs a function to save the cache.
128
- *
129
- * Получение данных для кэша, и если нет кэша, выполняет функцию для сохранения кэша.
130
- * @param name cache name/ название кэша
131
- * @param callback function for the cache/ функция для кэша
132
- * @param comparison additional data for comparison/ дополнительные данные для сравнения
133
- */
134
- get(t, e, s) {
135
- return this.getCacheItem(t, e).getCache(s ?? []);
136
- }
137
- /**
138
- * Getting data for the cache, and if there is no cache, it performs a function to save the cache (Async).
139
- *
140
- * Получение данных для кэша, и если нет кэша, выполняет функцию для сохранения кэша (Async).
141
- * @param name cache name/ название кэша
142
- * @param callback function for the cache/ функция для кэша
143
- * @param comparison additional data for comparison/ дополнительные данные для сравнения
144
- */
145
- async getAsync(t, e, s) {
146
- return await this.getCacheItem(t, e).getCacheAsync(s ?? []);
147
- }
148
- /**
149
- * Returns an instance of the object for working with the cache element.
150
- *
151
- * Возвращает экземпляр объекта для работы с элементом кэша.
152
- * @param name cache name/ название кэша
153
- * @param callback function for the cache/ функция для кэша
154
- */
155
- getCacheItem(t, e) {
156
- return t in this.cache || (this.cache[t] = new Ot(e)), this.cache[t];
157
- }
158
- }
159
- const Q = class Q {
160
- /**
161
- * Getting data for the cache, and if there is no cache, it performs a function to save the cache.
162
- *
163
- * Получение данных для кэша, и если нет кэша, выполняет функцию для сохранения кэша.
164
- * @param name cache name/ название кэша
165
- * @param callback function for the cache/ функция для кэша
166
- * @param comparison additional data for comparison/ дополнительные данные для сравнения
167
- */
168
- static get(t, e, s) {
169
- return this.cache.get(t, e, s);
170
- }
171
- };
172
- A(Q, "cache"), Q.cache = new Tt();
173
- let vt = Q;
174
- function Lt(i, t = !1) {
175
- if (typeof i == "string") {
176
- const e = i.trim();
177
- switch (e) {
178
- case "undefined":
179
- return;
180
- case "null":
181
- return null;
182
- case "true":
183
- return !0;
184
- case "false":
185
- return !1;
186
- default:
187
- if (/^[{[]/.exec(e))
188
- try {
189
- return JSON.parse(e);
190
- } catch (s) {
191
- console.error("transformation: JSON error", s);
192
- }
193
- else {
194
- if (/^[0-9]+\.[0-9.]+$/.exec(e))
195
- return parseFloat(e);
196
- if (/^[0-9]+$/.exec(e))
197
- return parseInt(e, 10);
198
- if (t && d() && typeof window?.[e] == "function")
199
- return window[e];
200
- }
201
- }
202
- }
203
- return i;
204
- }
205
- const Gt = "cookie-block";
206
- class te {
207
- static storage = new X(Gt);
208
- /**
209
- * Obtaining status.
210
- *
211
- * Получение статуса.
212
- */
213
- static get() {
214
- return this.storage.get() ?? !1;
215
- }
216
- /**
217
- * Changing status.
218
- *
219
- * Изменение статуса.
220
- * @param value value to be changed/ значение, на которое будет изменен
221
- */
222
- static set(t) {
223
- this.storage.set(t);
224
- }
225
51
  }
226
- const bt = {}, yt = class yt {
227
- constructor(t) {
228
- if (this.name = t, t in tt)
229
- return tt[t];
230
- this.value = bt?.[t], tt[t] = this;
231
- }
232
- value;
233
- options = {};
234
- /**
235
- * Get data or update if none.
236
- *
237
- * Получает данные или обновляет, если их нет.
238
- * @param defaultValue value or function to change data/ значение или функция для изменения данных
239
- * @param options additional parameters/ дополнительные параметры
240
- */
241
- get(t, e) {
242
- return this.value === void 0 && t && this.set(t, e), this.value;
243
- }
244
- /**
245
- * Updates cookie data.
246
- *
247
- * Обновляет данные cookie.
248
- * @param value value or function to change data/ значение или функция для изменения данных
249
- * @param options additional parameters/ дополнительные параметры
250
- */
251
- set(t, e) {
252
- this.value = B(t), Object.assign(this.options, e), this.update();
253
- }
254
- /**
255
- * Delete cookie data.
256
- *
257
- * Удаление данных из cookie.
258
- */
259
- remove() {
260
- this.set("");
261
- }
262
- /**
263
- * Returns cache time.
264
- *
265
- * Возвращает время кэширования.
266
- */
267
- getAge() {
268
- return this.options?.age ?? 10080 * 60;
269
- }
270
- /**
271
- * Update cookie data.
272
- *
273
- * Обновление данных cookie.
274
- */
275
- update() {
276
- if (d() && !te.get()) {
277
- const t = String(this.value ?? "");
278
- document.cookie = [
279
- `${encodeURIComponent(this.name)}=${encodeURIComponent(t)}`,
280
- `max-age=${t === "" ? "-1" : this.getAge()}`,
281
- `SameSite=${this.options?.sameSite ?? "strict"}`,
282
- ...this.options?.arguments ?? []
283
- ].join("; ");
284
- }
285
- }
286
- /**
287
- * Update data from cookies.
288
- *
289
- * Обновляет данные из cookies.
290
- */
291
- static updateData() {
292
- for (const t of document.cookie.split(";")) {
293
- const [e, s] = t.trim().split("=");
294
- e && F(s) && (bt[e] = Lt(s));
295
- }
296
- }
297
- };
298
- d() && yt.updateData();
299
- let at = yt;
300
- const tt = {};
301
- function D(i) {
52
+ const Kt = () => new ut("__broadcast-name").get(() => `name_${z(1e6, 9999999)}`);
53
+ function A(i) {
54
+ var n, o, a, c, h, d, g, D;
302
55
  if (i instanceof Date)
303
56
  return i;
304
- if (jt(i))
57
+ if (At(i))
305
58
  return /* @__PURE__ */ new Date();
306
59
  if (typeof i == "number")
307
60
  return new Date(i);
308
- let t = i, e = b.getTimezoneFormat();
309
- i.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (n, o, a) => (t = o, e = a, n));
310
- const s = (/^\d{4}\d{2}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3")}T00:00:00`) ?? (/^\d{4}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})$/, "$1-$2")}-01T00:00:00`) ?? (/^\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")) ?? (/^\d{4}-\d{2}-\d{2}$/.exec(t) && `${t}T00:00:00`) ?? (/^\d{4}-\d{2}$/.exec(t) && `${t}-01T00:00:00`) ?? (/^\d{4}$/.exec(t) && `${t}-01-01T00:00:00`) ?? (/^\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}:00`) ?? (/^\d{2}:\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}`) ?? t.replace(" ", "T");
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");
311
64
  return /* @__PURE__ */ new Date(`${s}${e}`);
312
65
  }
313
- function ct(i, t) {
314
- return f(i, (e) => e?.[t]);
66
+ function nt(i, t) {
67
+ return $(i, (e) => e == null ? void 0 : e[t]);
315
68
  }
316
- class W {
69
+ class P {
317
70
  /**
318
- * Returns an instance of the class according to the specified country code.
319
- *
320
- * Возвращает экземпляр класса по указанному коду страны.
71
+ * Constructor
321
72
  * @param code country code, full form language-country or one of them/
322
73
  * код страны, полный вид язык-страна или один из них
323
74
  */
324
- static getInstance(t = b.getLocation()) {
325
- return new W(t);
75
+ constructor(t = w.getLocation()) {
76
+ u(this, "geo");
77
+ this.geo = w.find(t);
78
+ const e = this.getLocation();
79
+ if (e in T)
80
+ return T[e];
81
+ T[e] = this;
326
82
  }
327
- geo;
328
83
  /**
329
- * Constructor
84
+ * Returns an instance of the class according to the specified country code.
85
+ *
86
+ * Возвращает экземпляр класса по указанному коду страны.
330
87
  * @param code country code, full form language-country or one of them/
331
88
  * код страны, полный вид язык-страна или один из них
332
89
  */
333
- constructor(t = b.getLocation()) {
334
- this.geo = b.find(t);
335
- const e = this.getLocation();
336
- if (e in et)
337
- return et[e];
338
- et[e] = this;
90
+ static getInstance(t = w.getLocation()) {
91
+ return new P(t);
339
92
  }
340
93
  /**
341
94
  * Returns country code and language.
@@ -362,17 +115,18 @@ class W {
362
115
  * объект с некоторыми или всеми из следующих свойств
363
116
  */
364
117
  display(t, e) {
118
+ var o;
365
119
  let s = { type: "language" }, n;
366
120
  e && (typeof e == "string" ? s.type = e : s = {
367
121
  ...s,
368
122
  ...e
369
123
  });
370
124
  try {
371
- d() && (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)));
372
- } catch (o) {
373
- console.error("display: ", o);
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)));
126
+ } catch (a) {
127
+ console.error("display: ", a);
374
128
  }
375
- return n ?? t ?? "";
129
+ return (o = n != null ? n : t) != null ? o : "";
376
130
  }
377
131
  /**
378
132
  * Get display names of language.
@@ -386,7 +140,7 @@ class W {
386
140
  type: "language",
387
141
  style: e
388
142
  };
389
- return this.display(b.getByCode(t).language, s);
143
+ return this.display(w.getByCode(t).language, s);
390
144
  }
391
145
  /**
392
146
  * Get display names of region.
@@ -412,7 +166,8 @@ class W {
412
166
  * @param short shorten the names/ сократить названия
413
167
  */
414
168
  fullName(t, e, s, n) {
415
- const o = this.geo?.nameFormat ?? "fl";
169
+ var c, h;
170
+ const o = (h = (c = this.geo) == null ? void 0 : c.nameFormat) != null ? h : "fl";
416
171
  let a;
417
172
  switch (o) {
418
173
  case "fsl":
@@ -439,7 +194,8 @@ class W {
439
194
  * или всеми свойствами
440
195
  */
441
196
  number(t, e) {
442
- return this.numberObject(e)?.format?.(k(t)) || t.toString();
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();
443
199
  }
444
200
  /**
445
201
  * Decimal point symbol.
@@ -447,7 +203,8 @@ class W {
447
203
  * Символ десятичной точки.
448
204
  */
449
205
  decimal() {
450
- return this.numberObject()?.formatToParts?.(1.2)?.find?.((t) => t.type === "decimal")?.value || ".";
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) || ".";
451
208
  }
452
209
  /**
453
210
  * Currency formatting.
@@ -466,8 +223,8 @@ class W {
466
223
  }, o = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...a) => (n.currency = String(a[2]).toUpperCase(), String(a[1])));
467
224
  if (s) {
468
225
  const a = this.numberObject(n);
469
- return a ? ct(
470
- a.formatToParts(k(t)).filter((u) => ["literal", "currency"].indexOf(u.type) === -1),
226
+ return a ? nt(
227
+ a.formatToParts(N(t)).filter((c) => ["literal", "currency"].indexOf(c.type) === -1),
471
228
  "value"
472
229
  ).join("") : t.toString();
473
230
  } else return "currency" in n ? this.number(
@@ -491,11 +248,12 @@ class W {
491
248
  * как отобразить валюту в формате валюты
492
249
  */
493
250
  currencySymbol(t, e = "symbol") {
494
- return this.numberObject({
251
+ var s, n, o, a, c;
252
+ return ((c = (a = (o = (n = (s = this.numberObject({
495
253
  style: "currency",
496
254
  currencyDisplay: e,
497
255
  currency: t
498
- })?.formatToParts?.(100)?.find?.((s) => s.type === "currency")?.value || 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;
499
257
  }
500
258
  /**
501
259
  * Unit formatting.
@@ -520,8 +278,8 @@ class W {
520
278
  * в форматировании блока
521
279
  */
522
280
  sizeFile(t, e = "byte") {
523
- const s = k(t);
524
- if (s > 1024 && ht(e))
281
+ const s = N(t);
282
+ if (s > 1024 && ct(e))
525
283
  switch (e) {
526
284
  case "byte":
527
285
  return this.sizeFile(s / 1024, "kilobyte");
@@ -558,7 +316,7 @@ class W {
558
316
  * объект с некоторыми или всеми свойствами
559
317
  */
560
318
  percentBy100(t, e) {
561
- return this.percent(k(t) / 100, e);
319
+ return this.percent(N(t) / 100, e);
562
320
  }
563
321
  /**
564
322
  * Применять форматирование, учитывающее множественное число, и языковые правила, связанные с множественным числом
@@ -569,38 +327,39 @@ class W {
569
327
  * @param optionsNumber an object with some or all properties/ объект с некоторыми или всеми свойствами
570
328
  */
571
329
  plural(t, e, s, n) {
572
- const o = k(t), a = e.split("|");
330
+ var c;
331
+ const o = N(t), a = e.split("|");
573
332
  if (a.length > 1)
574
333
  try {
575
- if (d()) {
576
- const l = new Intl.PluralRules(this.getLocation(), s).select(o);
577
- let h;
578
- switch (l) {
334
+ if (y()) {
335
+ const d = new Intl.PluralRules(this.getLocation(), s).select(o);
336
+ let g;
337
+ switch (d) {
579
338
  case "zero":
580
- h = a[a.length - 1];
339
+ g = a[a.length - 1];
581
340
  break;
582
341
  case "one":
583
- h = a?.[0];
342
+ g = a == null ? void 0 : a[0];
584
343
  break;
585
344
  case "two":
586
- h = a?.[1];
345
+ g = a == null ? void 0 : a[1];
587
346
  break;
588
347
  case "few":
589
- h = a?.[3] ? a?.[2] : a?.[1];
348
+ g = a != null && a[3] ? a == null ? void 0 : a[2] : a == null ? void 0 : a[1];
590
349
  break;
591
350
  case "many":
592
- h = a?.[3] || a?.[2] || a?.[1];
351
+ g = (a == null ? void 0 : a[3]) || (a == null ? void 0 : a[2]) || (a == null ? void 0 : a[1]);
593
352
  break;
594
353
  case "other":
595
- a.length === 6 ? h = a[a.length - 2] : h = a[a.length - 1];
354
+ a.length === 6 ? g = a[a.length - 2] : g = a[a.length - 1];
596
355
  break;
597
356
  }
598
- return `${this.number(o, n)} ${h ?? ""}`.trim();
357
+ return `${this.number(o, n)} ${g != null ? g : ""}`.trim();
599
358
  }
600
- } catch (u) {
601
- console.error("plural: ", u);
359
+ } catch (h) {
360
+ console.error("plural: ", h);
602
361
  }
603
- return `${this.number(o, n)} ${a?.[0] ?? ""}`.trim();
362
+ return `${this.number(o, n)} ${(c = a == null ? void 0 : a[0]) != null ? c : ""}`.trim();
604
363
  }
605
364
  /**
606
365
  * Enables language-sensitive date and time formatting.
@@ -612,8 +371,8 @@ class W {
612
371
  * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
613
372
  */
614
373
  date(t, e, s, n) {
615
- const o = D(t), a = typeof s == "string", u = this.dateOptions(e, a ? s : "short");
616
- return n && (u.hour12 = !1), a || Object.assign(u, s), o.toLocaleString(this.getLocation(), u);
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);
617
376
  }
618
377
  /**
619
378
  * Enables language-sensitive relative time formatting.
@@ -625,12 +384,12 @@ class W {
625
384
  * @param todayValue current day/ текущий день
626
385
  */
627
386
  relative(t, e, s) {
628
- const n = D(t), o = s || /* @__PURE__ */ new Date(), a = {
387
+ const n = A(t), o = s || /* @__PURE__ */ new Date(), a = {
629
388
  numeric: "auto",
630
389
  ...typeof e == "string" ? { style: e } : e || {}
631
390
  };
632
- let u = "second", l = (n.getTime() - o.getTime()) / 1e3;
633
- return Math.abs(l) >= 60 && (u = "minute", l /= 60, Math.abs(l) >= 60 && (u = "hour", l /= 60, Math.abs(l) >= 24 && (u = "day", l /= 24, Math.abs(l) >= 30 && (u = "month", l /= 30, Math.abs(l) >= 12 && (u = "year", l /= 12))))), this.relativeByValue(l, u, a);
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);
634
393
  }
635
394
  /**
636
395
  * Enables language-sensitive relative time formatting
@@ -650,17 +409,17 @@ class W {
650
409
  * @param type type of data format/ тип формата data
651
410
  * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
652
411
  */
653
- relativeLimit(t, e, s, n, o, a, u) {
654
- const l = D(t), h = s || /* @__PURE__ */ new Date(), I = new Date(h), N = new Date(h);
655
- return I.setDate(h.getDate() - e), N.setDate(h.getDate() + e), l >= I && l <= N ? this.relative(
656
- l,
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(
415
+ h,
657
416
  n,
658
- h
417
+ d
659
418
  ) : this.date(
660
- l,
419
+ h,
661
420
  a,
662
421
  o,
663
- u
422
+ c
664
423
  );
665
424
  }
666
425
  /**
@@ -675,8 +434,8 @@ class W {
675
434
  ...typeof s == "string" ? { style: s } : s || {}
676
435
  };
677
436
  try {
678
- if (d())
679
- return new Intl.RelativeTimeFormat(this.getLocation(), n).format(Math.round(k(t)), e);
437
+ if (y())
438
+ return new Intl.RelativeTimeFormat(this.getLocation(), n).format(Math.round(N(t)), e);
680
439
  } catch (o) {
681
440
  console.error("relative: ", o);
682
441
  }
@@ -690,8 +449,8 @@ class W {
690
449
  */
691
450
  month(t, e) {
692
451
  try {
693
- if (d())
694
- return Intl.DateTimeFormat(this.getLocation(), { month: e || "long" }).format(D(t));
452
+ if (y())
453
+ return Intl.DateTimeFormat(this.getLocation(), { month: e || "long" }).format(A(t));
695
454
  } catch (s) {
696
455
  console.error("month: ", s);
697
456
  }
@@ -709,7 +468,7 @@ class W {
709
468
  value: void 0
710
469
  }];
711
470
  try {
712
- if (d()) {
471
+ if (y()) {
713
472
  const s = /* @__PURE__ */ new Date(), n = Intl.DateTimeFormat(this.getLocation(), { month: t || "long" });
714
473
  for (let o = 0; o < 12; o++)
715
474
  s.setMonth(o), e.push({
@@ -731,8 +490,8 @@ class W {
731
490
  */
732
491
  weekday(t, e) {
733
492
  try {
734
- if (d())
735
- return Intl.DateTimeFormat(this.getLocation(), { weekday: e || "long" }).format(D(t));
493
+ if (y())
494
+ return Intl.DateTimeFormat(this.getLocation(), { weekday: e || "long" }).format(A(t));
736
495
  } catch (s) {
737
496
  console.error("weekday: ", s);
738
497
  }
@@ -750,12 +509,12 @@ class W {
750
509
  value: void 0
751
510
  }];
752
511
  try {
753
- if (d()) {
512
+ if (y()) {
754
513
  const s = /* @__PURE__ */ new Date(), n = Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }), o = s.getDay() + (this.geo.firstDay === "Mo" ? -1 : 1);
755
514
  s.setDate(s.getDate() - o);
756
515
  for (let a = 0; a < 7; a++)
757
516
  e.push({
758
- label: n.format(s).replace(/^./, (u) => u.toUpperCase()),
517
+ label: n.format(s).replace(/^./, (c) => c.toUpperCase()),
759
518
  value: s.getDay()
760
519
  }), s.setDate(s.getDate() + 1);
761
520
  }
@@ -781,7 +540,7 @@ class W {
781
540
  * @param compareFn a function for sorting/ функция для сортировки
782
541
  */
783
542
  sort(t, e = (s, n) => [s, n]) {
784
- if (d()) {
543
+ if (y()) {
785
544
  const s = new Intl.Collator(this.getLocation());
786
545
  return t.sort((n, o) => s.compare(...e(n, o)));
787
546
  }
@@ -796,7 +555,7 @@ class W {
796
555
  */
797
556
  numberObject(t) {
798
557
  try {
799
- if (d())
558
+ if (y())
800
559
  return new Intl.NumberFormat(this.getLocation(), t);
801
560
  } catch (e) {
802
561
  console.error("numberObject: ", e);
@@ -814,27 +573,27 @@ class W {
814
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;
815
574
  }
816
575
  }
817
- const et = {};
818
- class gt {
576
+ const T = {};
577
+ class ht {
819
578
  /**
820
579
  * Constructor
821
580
  * @param date date for processing/ дата для обработки
822
581
  * @param type type of date format for output/ тип формата даты вывода
823
582
  * @param code country and language code/ код страны и языка
824
583
  */
825
- constructor(t, e = "date", s = b.getLocation()) {
826
- this.type = e, this.code = s, this.date = D(t);
584
+ constructor(t, e = "date", s = w.getLocation()) {
585
+ u(this, "date");
586
+ u(this, "hour24", !1);
587
+ u(this, "watch");
588
+ this.type = e, this.code = s, this.date = A(t);
827
589
  }
828
- date;
829
- hour24 = !1;
830
- watch;
831
590
  /**
832
591
  * Returns an object for working with formatting.
833
592
  *
834
593
  * Возвращает объект для работы с форматированием.
835
594
  */
836
595
  getIntl() {
837
- return new W(this.code);
596
+ return new P(this.code);
838
597
  }
839
598
  /**
840
599
  * Returns a Date object.
@@ -1042,7 +801,7 @@ class gt {
1042
801
  * @param timeZone add time zone/ добавить временную зону
1043
802
  */
1044
803
  standard(t = !0) {
1045
- const e = new gt(this.date, this.type, "en-GB"), s = [];
804
+ const e = new ht(this.date, this.type, "en-GB"), s = [];
1046
805
  let n;
1047
806
  return e.setHour24(!0), this.type === "hour-minute" ? n = e.locale(this.type, {
1048
807
  year: "numeric",
@@ -1058,7 +817,7 @@ class gt {
1058
817
  * целочисленное значение, представляющее число
1059
818
  */
1060
819
  setDate(t) {
1061
- return this.date = D(t), this.update(), this;
820
+ return this.date = A(t), this.update(), this;
1062
821
  }
1063
822
  /**
1064
823
  * Change the type of data output.
@@ -1458,265 +1217,23 @@ class gt {
1458
1217
  * Обновление всех значений.
1459
1218
  */
1460
1219
  update() {
1461
- return this.watch?.(
1220
+ var t;
1221
+ return (t = this.watch) == null || t.call(
1222
+ this,
1462
1223
  this.date,
1463
1224
  this.type,
1464
1225
  this.hour24
1465
1226
  ), this;
1466
1227
  }
1467
1228
  }
1468
- const r = "@flag";
1469
- class U {
1229
+ const r = "@flag", E = class E {
1470
1230
  /**
1471
1231
  * Constructor
1472
1232
  * @param code country and language code/ код страны и языка
1473
1233
  */
1474
- constructor(t = b.getLocation()) {
1234
+ constructor(t = w.getLocation()) {
1475
1235
  this.code = t;
1476
1236
  }
1477
- static flags = {
1478
- AD: `${r}-ad`,
1479
- AE: `${r}-ae`,
1480
- AF: `${r}-af`,
1481
- AG: `${r}-ag`,
1482
- AI: `${r}-ai`,
1483
- AL: `${r}-al`,
1484
- AM: `${r}-am`,
1485
- AN: `${r}-an`,
1486
- AO: `${r}-ao`,
1487
- AQ: `${r}-aq`,
1488
- AR: `${r}-ar`,
1489
- AS: `${r}-as`,
1490
- AT: `${r}-at`,
1491
- AU: `${r}-au`,
1492
- AW: `${r}-aw`,
1493
- AZ: `${r}-az`,
1494
- BA: `${r}-ba`,
1495
- BB: `${r}-bb`,
1496
- BD: `${r}-bd`,
1497
- BE: `${r}-be`,
1498
- BF: `${r}-bf`,
1499
- BG: `${r}-bg`,
1500
- BH: `${r}-bh`,
1501
- BI: `${r}-bi`,
1502
- BJ: `${r}-bj`,
1503
- BL: `${r}-bl`,
1504
- BM: `${r}-bm`,
1505
- BN: `${r}-bn`,
1506
- BO: `${r}-bo`,
1507
- BR: `${r}-br`,
1508
- BS: `${r}-bs`,
1509
- BT: `${r}-bt`,
1510
- BW: `${r}-bw`,
1511
- BY: `${r}-by`,
1512
- BZ: `${r}-bz`,
1513
- CA: `${r}-ca`,
1514
- CC: `${r}-cc`,
1515
- CD: `${r}-cd`,
1516
- CF: `${r}-cf`,
1517
- CG: `${r}-cg`,
1518
- CH: `${r}-ch`,
1519
- CI: `${r}-ci`,
1520
- CK: `${r}-ck`,
1521
- CL: `${r}-cl`,
1522
- CM: `${r}-cm`,
1523
- CN: `${r}-cn`,
1524
- CO: `${r}-co`,
1525
- CR: `${r}-cr`,
1526
- CU: `${r}-cu`,
1527
- CV: `${r}-cv`,
1528
- CW: `${r}-cw`,
1529
- CX: `${r}-cx`,
1530
- CY: `${r}-cy`,
1531
- CZ: `${r}-cz`,
1532
- DE: `${r}-de`,
1533
- DJ: `${r}-dj`,
1534
- DK: `${r}-dk`,
1535
- DM: `${r}-dm`,
1536
- DZ: `${r}-dz`,
1537
- EC: `${r}-ec`,
1538
- EE: `${r}-ee`,
1539
- EG: `${r}-eg`,
1540
- EH: `${r}-eh`,
1541
- ER: `${r}-er`,
1542
- ES: `${r}-es`,
1543
- ET: `${r}-et`,
1544
- FI: `${r}-fi`,
1545
- FJ: `${r}-fj`,
1546
- FK: `${r}-fk`,
1547
- FM: `${r}-fm`,
1548
- FO: `${r}-fo`,
1549
- FR: `${r}-fr`,
1550
- GA: `${r}-ga`,
1551
- GB: `${r}-gb`,
1552
- GD: `${r}-gd`,
1553
- GE: `${r}-ge`,
1554
- GF: `${r}-gf`,
1555
- GG: `${r}-gg`,
1556
- GH: `${r}-gh`,
1557
- GI: `${r}-gi`,
1558
- GL: `${r}-gl`,
1559
- GM: `${r}-gm`,
1560
- GN: `${r}-gn`,
1561
- GQ: `${r}-gq`,
1562
- GR: `${r}-gr`,
1563
- GT: `${r}-gt`,
1564
- GU: `${r}-gu`,
1565
- GW: `${r}-gw`,
1566
- GY: `${r}-gy`,
1567
- HK: `${r}-hk`,
1568
- HN: `${r}-hn`,
1569
- HR: `${r}-hr`,
1570
- HT: `${r}-ht`,
1571
- HU: `${r}-hu`,
1572
- ID: `${r}-id`,
1573
- IE: `${r}-ie`,
1574
- IL: `${r}-il`,
1575
- IM: `${r}-im`,
1576
- IN: `${r}-in`,
1577
- IO: `${r}-io`,
1578
- IQ: `${r}-iq`,
1579
- IR: `${r}-ir`,
1580
- IS: `${r}-is`,
1581
- IT: `${r}-it`,
1582
- JE: `${r}-je`,
1583
- JM: `${r}-jm`,
1584
- JO: `${r}-jo`,
1585
- JP: `${r}-jp`,
1586
- KE: `${r}-ke`,
1587
- KG: `${r}-kg`,
1588
- KH: `${r}-kh`,
1589
- KI: `${r}-ki`,
1590
- KM: `${r}-km`,
1591
- KN: `${r}-kn`,
1592
- KP: `${r}-kp`,
1593
- KR: `${r}-kr`,
1594
- KW: `${r}-kw`,
1595
- KY: `${r}-ky`,
1596
- KZ: `${r}-kz`,
1597
- LA: `${r}-la`,
1598
- LB: `${r}-lb`,
1599
- LC: `${r}-lc`,
1600
- LI: `${r}-li`,
1601
- LK: `${r}-lk`,
1602
- LR: `${r}-lr`,
1603
- LS: `${r}-ls`,
1604
- LT: `${r}-lt`,
1605
- LU: `${r}-lu`,
1606
- LV: `${r}-lv`,
1607
- LY: `${r}-ly`,
1608
- MA: `${r}-ma`,
1609
- MC: `${r}-mc`,
1610
- MD: `${r}-md`,
1611
- ME: `${r}-me`,
1612
- MF: `${r}-mf`,
1613
- MG: `${r}-mg`,
1614
- MH: `${r}-mh`,
1615
- MK: `${r}-mk`,
1616
- ML: `${r}-ml`,
1617
- MM: `${r}-mm`,
1618
- MN: `${r}-mn`,
1619
- MO: `${r}-mo`,
1620
- MP: `${r}-mp`,
1621
- MQ: `${r}-mq`,
1622
- MR: `${r}-mr`,
1623
- MS: `${r}-ms`,
1624
- MT: `${r}-mt`,
1625
- MU: `${r}-mu`,
1626
- MV: `${r}-mv`,
1627
- MW: `${r}-mw`,
1628
- MX: `${r}-mx`,
1629
- MY: `${r}-my`,
1630
- MZ: `${r}-mz`,
1631
- NA: `${r}-na`,
1632
- NC: `${r}-nc`,
1633
- NE: `${r}-ne`,
1634
- NF: `${r}-nf`,
1635
- NG: `${r}-ng`,
1636
- NI: `${r}-ni`,
1637
- NL: `${r}-nl`,
1638
- NO: `${r}-no`,
1639
- NP: `${r}-np`,
1640
- NR: `${r}-nr`,
1641
- NU: `${r}-nu`,
1642
- NZ: `${r}-nz`,
1643
- OM: `${r}-om`,
1644
- PA: `${r}-pa`,
1645
- PE: `${r}-pe`,
1646
- PF: `${r}-pf`,
1647
- PG: `${r}-pg`,
1648
- PH: `${r}-ph`,
1649
- PK: `${r}-pk`,
1650
- PL: `${r}-pl`,
1651
- PM: `${r}-pm`,
1652
- PN: `${r}-pn`,
1653
- PR: `${r}-pr`,
1654
- PS: `${r}-ps`,
1655
- PT: `${r}-pt`,
1656
- PW: `${r}-pw`,
1657
- PY: `${r}-py`,
1658
- QA: `${r}-qa`,
1659
- RE: `${r}-re`,
1660
- RO: `${r}-ro`,
1661
- RS: `${r}-rs`,
1662
- RU: `${r}-ru`,
1663
- RW: `${r}-rw`,
1664
- SA: `${r}-sa`,
1665
- SB: `${r}-sb`,
1666
- SC: `${r}-sc`,
1667
- SD: `${r}-sd`,
1668
- SE: `${r}-se`,
1669
- SG: `${r}-sg`,
1670
- SH: `${r}-sh`,
1671
- SI: `${r}-si`,
1672
- SJ: `${r}-sj`,
1673
- SK: `${r}-sk`,
1674
- SL: `${r}-sl`,
1675
- SM: `${r}-sm`,
1676
- SN: `${r}-sn`,
1677
- SO: `${r}-so`,
1678
- SR: `${r}-sr`,
1679
- SS: `${r}-ss`,
1680
- ST: `${r}-st`,
1681
- SV: `${r}-sv`,
1682
- SX: `${r}-sx`,
1683
- SY: `${r}-sy`,
1684
- SZ: `${r}-sz`,
1685
- TC: `${r}-tc`,
1686
- TD: `${r}-td`,
1687
- TG: `${r}-tg`,
1688
- TH: `${r}-th`,
1689
- TJ: `${r}-tj`,
1690
- TK: `${r}-tk`,
1691
- TL: `${r}-tl`,
1692
- TM: `${r}-tm`,
1693
- TN: `${r}-tn`,
1694
- TO: `${r}-to`,
1695
- TR: `${r}-tr`,
1696
- TT: `${r}-tt`,
1697
- TV: `${r}-tv`,
1698
- TW: `${r}-tw`,
1699
- TZ: `${r}-tz`,
1700
- UA: `${r}-ua`,
1701
- UG: `${r}-ug`,
1702
- US: `${r}-us`,
1703
- UY: `${r}-uy`,
1704
- UZ: `${r}-uz`,
1705
- VA: `${r}-va`,
1706
- VC: `${r}-vc`,
1707
- VE: `${r}-ve`,
1708
- VG: `${r}-vg`,
1709
- VI: `${r}-vi`,
1710
- VN: `${r}-vn`,
1711
- VU: `${r}-vu`,
1712
- WF: `${r}-wf`,
1713
- WS: `${r}-ws`,
1714
- YE: `${r}-ye`,
1715
- YT: `${r}-yt`,
1716
- ZA: `${r}-za`,
1717
- ZM: `${r}-zm`,
1718
- ZW: `${r}-zw`
1719
- };
1720
1237
  /**
1721
1238
  * Returns information about the country and its flag.
1722
1239
  *
@@ -1724,15 +1241,16 @@ class U {
1724
1241
  * @param code country code/ код страны
1725
1242
  */
1726
1243
  get(t = this.code) {
1727
- const e = b.find(t);
1244
+ var s;
1245
+ const e = w.find(t);
1728
1246
  if (e) {
1729
- const s = this.getCountry(e);
1247
+ const n = this.getCountry(e);
1730
1248
  return {
1731
1249
  language: this.getLanguage(e),
1732
- country: s,
1250
+ country: n,
1733
1251
  standard: e.standard,
1734
- icon: U.flags?.[e.country],
1735
- label: s,
1252
+ icon: (s = E.flags) == null ? void 0 : s[e.country],
1253
+ label: n,
1736
1254
  value: e.country
1737
1255
  };
1738
1256
  }
@@ -1744,7 +1262,8 @@ class U {
1744
1262
  * @param code country code/ код страны
1745
1263
  */
1746
1264
  getFlag(t = this.code) {
1747
- return this.get(t)?.icon;
1265
+ var e;
1266
+ return (e = this.get(t)) == null ? void 0 : e.icon;
1748
1267
  }
1749
1268
  /**
1750
1269
  * Getting a list of countries by an array of codes.
@@ -1753,7 +1272,7 @@ class U {
1753
1272
  * @param codes country code/ код страны
1754
1273
  */
1755
1274
  getList(t) {
1756
- return f(this.getCodes(t), (e) => this.get(e));
1275
+ return $(this.getCodes(t), (e) => this.get(e));
1757
1276
  }
1758
1277
  /**
1759
1278
  * Getting a list of countries by an array of codes in national language.
@@ -1762,13 +1281,13 @@ class U {
1762
1281
  * @param codes country code/ код страны.
1763
1282
  */
1764
1283
  getNational(t) {
1765
- return f(this.getList(t), (e) => {
1766
- const s = new U(e.standard).get(e.standard);
1284
+ return $(this.getList(t), (e) => {
1285
+ const s = new E(e.standard).get(e.standard);
1767
1286
  return {
1768
1287
  ...e,
1769
- description: s?.country,
1770
- nationalLanguage: s?.language,
1771
- nationalCountry: s?.country
1288
+ description: s == null ? void 0 : s.country,
1289
+ nationalLanguage: s == null ? void 0 : s.language,
1290
+ nationalCountry: s == null ? void 0 : s.country
1772
1291
  };
1773
1292
  });
1774
1293
  }
@@ -1787,7 +1306,7 @@ class U {
1787
1306
  * Возвращает специальный объект для работы с форматированием.
1788
1307
  */
1789
1308
  getLocation() {
1790
- return new W(this.code);
1309
+ return new P(this.code);
1791
1310
  }
1792
1311
  /**
1793
1312
  * Returns a list of countries to retrieve data from.
@@ -1796,7 +1315,7 @@ class U {
1796
1315
  * @param codes country code/ код страны
1797
1316
  */
1798
1317
  getCodes(t) {
1799
- return t ?? Object.keys(U.flags);
1318
+ return t != null ? t : Object.keys(E.flags);
1800
1319
  }
1801
1320
  /**
1802
1321
  * Getting the name of the language.
@@ -1816,186 +1335,252 @@ class U {
1816
1335
  getCountry(t) {
1817
1336
  return this.getLocation().countryName(t.country);
1818
1337
  }
1819
- }
1820
- const E = class E {
1821
- /**
1822
- * Getting an object with information about the phone code and country.
1823
- *
1824
- * Получение объекта с информацией о телефонном коде и стране.
1825
- * @param code country and language code/ код страны и языка
1826
- */
1827
- static get(t) {
1828
- return this.list.find((e) => t === e.value);
1829
- }
1830
- /**
1831
- * Getting information by phone.
1832
- *
1833
- * Получение информации по телефону.
1834
- * @param phone phone number/ номер телефон
1835
- */
1836
- static getByPhone(t) {
1837
- let e = this.map, s, n = "";
1838
- return this.toNumber(t).forEach((o) => {
1839
- n === "" && o in e ? (s = e[o], e = s?.next ?? {}) : n += o;
1840
- }), {
1841
- item: s,
1842
- phone: n
1843
- };
1844
- }
1845
- /**
1846
- * Retrieves complete mask data by country code.
1847
- *
1848
- * Получает полные данные о маске по коду страны.
1849
- * @param code country and language code/ код страны и языка
1850
- */
1851
- static getByCode(t) {
1852
- const e = this.get(t);
1853
- if (e)
1854
- return this.getByPhone(e.phone.toString())?.item;
1855
- }
1856
- /**
1857
- * We get an array from a list of all phone numbers.
1858
- *
1859
- * Получаем массив из списка всех телефонных кодов.
1860
- */
1861
- static getList() {
1862
- return this.list;
1863
- }
1864
- /**
1865
- * We get a map of a tree, sorted by its code.
1866
- *
1867
- * Получаем карту дерева, отсортированную по его коду.
1868
- */
1869
- static getMap() {
1870
- return this.map;
1871
- }
1872
- /**
1873
- * Convert to phone mask.
1874
- *
1875
- * Преобразовать в маску телефона.
1876
- * @param phone phone number/ номер телефон
1877
- * @param masks a mask to transform a phone number/ маска для преобразования номер телефон
1878
- */
1879
- static toMask(t, e) {
1880
- if (F(t) && Array.isArray(e) && e.length > 0) {
1881
- const s = this.removeZero(t), n = s.length;
1882
- for (const o of e)
1883
- if (this.getUnnecessaryLength(o) === n)
1884
- return this.toStandard(s, o);
1885
- }
1886
- }
1887
- /**
1888
- * Deletes the country code from the input number.
1889
- *
1890
- * Удаляет код страны по входному номеру.
1891
- * @param phone phone number/ номер телефон
1892
- */
1893
- static removeZero(t) {
1894
- return t.match(/^0/) ? t.replace(/^0/, "") : t.match(/^89/) ? t.replace(/^8/, "") : t;
1895
- }
1896
- /**
1897
- * Returns the symbol by the internal country code.
1898
- *
1899
- * Возвращает символ по коду внутри страны.
1900
- * @param within internal country code/ код внутри страны
1901
- */
1902
- static getWithinSymbol(t) {
1903
- switch (t) {
1904
- case 4:
1905
- case "4":
1906
- return "$";
1907
- case 8:
1908
- case "8":
1909
- return "~";
1910
- }
1911
- return "=";
1912
- }
1913
- /**
1914
- * Deletes all characters that do not belong to the mask.
1915
- *
1916
- * Удаляет все символы, не относящиеся к маске.
1917
- * @param mask A mask to transform a phone number/ маска для преобразования номер телефон
1918
- */
1919
- static getUnnecessaryLength(t) {
1920
- return t.replace(/[^*]+/ig, "").length;
1921
- }
1922
- /**
1923
- * Creating a list for the map.
1924
- *
1925
- * Формирование списка для карты.
1926
- */
1927
- static makeList() {
1928
- const t = f(b.getList(), (e) => {
1929
- if (e?.phoneMask)
1930
- return {
1931
- phone: e?.phoneCode && Number(e.phoneCode.replace(/[^0-9]+/, "")) || void 0,
1932
- within: e?.phoneWithin || 0,
1933
- mask: R(e.phoneMask),
1934
- value: e.country
1935
- };
1936
- });
1937
- this.list = t.sort((e, s) => e.phone - s.phone);
1938
- }
1939
- /**
1940
- * Creating a map for search.
1941
- *
1942
- * Создание карты для поиска.
1943
- */
1944
- static makeMap() {
1945
- this.list.forEach((t) => {
1946
- t.mask.forEach((e) => {
1947
- let s = this.map, n;
1948
- if (this.toNumber(e).forEach((o) => {
1949
- o in s || (s[o] = {
1950
- items: [],
1951
- info: void 0,
1952
- value: void 0,
1953
- mask: [],
1954
- maskFull: [],
1955
- next: {}
1956
- }), n = s[o], s = n?.next ?? {};
1957
- }), n) {
1958
- n.value === void 0 && (n.info = t, n.value = t.value);
1959
- const o = this.toWithin(e, t.within);
1960
- n.mask.push(o), n.maskFull.push(o.replace(/\d/ig, "*")), n.items.push(t);
1961
- }
1962
- });
1963
- });
1964
- }
1965
- /**
1966
- * The method parses a string argument and returns a floating point number.
1967
- *
1968
- * Метод принимает строку в качестве аргумента и возвращает десятичное число.
1969
- * @param value the value to parse/ текстовая строка
1970
- */
1971
- static toNumber(t) {
1972
- return t.replace(/\D+/ig, "").split("");
1973
- }
1974
- /**
1975
- * Converts the phone to a standard.
1976
- *
1977
- * Преобразовывает телефон в стандарт.
1978
- * @param phone phone number/ номер телефон
1979
- * @param mask a mask to transform a phone number/ маска для преобразования номер телефон
1980
- */
1981
- static toStandard(t, e) {
1982
- let s = 0;
1983
- return e.replace(/\*/ig, () => String(t[s++]));
1984
- }
1985
- /**
1986
- * Replaces the first character with the internal country code
1987
- *
1988
- * Заменяет первый символ на код внутри страны.
1989
- * @param mask a mask to transform a phone number/ маска для преобразования номер телефон
1990
- * @param within internal country code/ код внутри страны
1991
- */
1992
- static toWithin(t, e) {
1993
- return t.replace(/\*/, this.getWithinSymbol(e));
1994
- }
1995
1338
  };
1996
- A(E, "list", []), A(E, "map", {}), E.makeList(), E.makeMap();
1997
- let wt = E, K;
1998
- class ze {
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`
1581
+ });
1582
+ let ot = E, x;
1583
+ class Ne {
1999
1584
  /**
2000
1585
  * Returns the value by its name.
2001
1586
  *
@@ -2003,7 +1588,7 @@ class ze {
2003
1588
  * @param name property name/ название свойства
2004
1589
  */
2005
1590
  static get(t) {
2006
- return K && K?.[t];
1591
+ return x && (x == null ? void 0 : x[t]);
2007
1592
  }
2008
1593
  /**
2009
1594
  * Adds data, this method works only once.
@@ -2012,118 +1597,13 @@ class ze {
2012
1597
  * @param data global data/ глобальные данные
2013
1598
  */
2014
1599
  static add(t) {
2015
- K === void 0 && (K = { ...t });
2016
- }
2017
- }
2018
- const x = class x {
2019
- /**
2020
- * Get data from hash.
2021
- *
2022
- * Получение данных из хэша.
2023
- * @param name variable names/ названия переменных
2024
- * @param defaultValue value or function to change data/ значение или функция для изменения данных
2025
- */
2026
- static get(t, e) {
2027
- return !(t in this.hash) && e && this.set(t, e), this.hash[t];
1600
+ x === void 0 && (x = { ...t });
2028
1601
  }
2029
- /**
2030
- * Change data in hash.
2031
- *
2032
- * Изменение данных в хэше.
2033
- * @param name variable names/ названия переменных
2034
- * @param callback value or function to change data/ значение или функция для изменения данных
2035
- */
2036
- static set(t, e) {
2037
- const s = B(e);
2038
- s !== this.hash?.[t] && (this.hash[t] = s, this.update());
2039
- }
2040
- /**
2041
- * Adding an event when data is changed.
2042
- *
2043
- * Добавление события при изменении данных.
2044
- * @param name variable names/ названия переменных
2045
- * @param callback the function is called when the data is changed/ функция вызывается при изменении данных
2046
- */
2047
- static addWatch(t, e) {
2048
- t in this.watch ? this.watch[t]?.push(e) : this.watch[t] = [e];
2049
- }
2050
- /**
2051
- * Update hash variable from URL string.
2052
- *
2053
- * Обновление переменной хэша из строки URL.
2054
- */
2055
- static reload() {
2056
- if (!this.block) {
2057
- const t = this.getLocation();
2058
- this.makeWatch(t), this.hash = t;
2059
- }
2060
- }
2061
- /**
2062
- * Obtaining data from the URL string.
2063
- *
2064
- * Получение данных из строки URL.
2065
- */
2066
- static getLocation() {
2067
- const t = {};
2068
- return location.hash.replace(
2069
- /([\w-]+)[:=]([^;]+)/ig,
2070
- (...e) => (t[String(e[1])] = Lt(e[2]), "")
2071
- ), t;
2072
- }
2073
- /**
2074
- * Update hash string in URL.
2075
- *
2076
- * Обновление строки хэша в URL.
2077
- */
2078
- static update() {
2079
- this.block = !0, history.replaceState(null, "", `#${Ht(this.hash, "=", ";")}`), requestAnimationFrame(() => {
2080
- this.block = !1;
2081
- });
2082
- }
2083
- /**
2084
- * Calling all functions whose data has changed.
2085
- *
2086
- * Вызов всех функций, у которых были изменены данные.
2087
- * @param location fresh data/ свежий данные
2088
- */
2089
- static makeWatch(t) {
2090
- f(this.watch, (e, s) => {
2091
- this.hash?.[s] !== t?.[s] && e.forEach((n) => n(t[s]));
2092
- });
2093
- }
2094
- };
2095
- A(x, "hash", {}), A(x, "watch", {}), A(x, "block", !1), d() && (x.reload(), addEventListener("hashchange", () => x.reload()));
2096
- let _ = x;
2097
- function ee(i, t, e) {
2098
- return M(i)?.[t] ?? e;
2099
- }
2100
- function ie(i, t, e) {
2101
- const s = M(i);
2102
- if (s) {
2103
- const n = ee(s, t);
2104
- if (p(n) && p(e))
2105
- f(e, (o, a) => {
2106
- n[a] = B(o);
2107
- });
2108
- else {
2109
- const o = B(e);
2110
- !(t in s) && typeof o == "string" ? s.setAttribute(t.toString(), o) : s[t] = B(e);
2111
- }
2112
- }
2113
- return s;
2114
1602
  }
2115
- function ut(i, t = "div", e, s) {
2116
- if (!d())
2117
- return;
2118
- const n = document.createElement(t);
2119
- return typeof e == "function" ? e(n) : C(e) && f(e, (o, a) => {
2120
- ie(n, a, o);
2121
- }), i?.insertBefore(n, s ?? null), n;
2122
- }
2123
- function se(i) {
1603
+ function Zt(i) {
2124
1604
  return i.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;").trim();
2125
1605
  }
2126
- class ft {
1606
+ class dt {
2127
1607
  /**
2128
1608
  * Creates an instance of MetaManager.
2129
1609
  *
@@ -2132,9 +1612,9 @@ class ft {
2132
1612
  * @param isProperty use 'property' attribute instead of 'name' / использовать атрибут 'property' вместо 'name'
2133
1613
  */
2134
1614
  constructor(t, e = !1) {
1615
+ u(this, "items", {});
2135
1616
  this.listMeta = t, this.isProperty = e, this.update();
2136
1617
  }
2137
- items = {};
2138
1618
  /**
2139
1619
  * Returns the list of meta tag names.
2140
1620
  *
@@ -2150,7 +1630,8 @@ class ft {
2150
1630
  * @param name meta tag name / имя мета-тега
2151
1631
  */
2152
1632
  get(t) {
2153
- return this.items[t] ?? "";
1633
+ var e;
1634
+ return (e = this.items[t]) != null ? e : "";
2154
1635
  }
2155
1636
  /**
2156
1637
  * Returns all meta tags.
@@ -2166,7 +1647,7 @@ class ft {
2166
1647
  * Возвращает все мета-теги в виде HTML-строки.
2167
1648
  */
2168
1649
  html() {
2169
- return f(
1650
+ return $(
2170
1651
  this.listMeta,
2171
1652
  (e) => this.toHtmlString(e)
2172
1653
  ).join("");
@@ -2188,7 +1669,7 @@ class ft {
2188
1669
  * @param metaList object with meta tag names and content / объект с именами и содержимым мета-тегов
2189
1670
  */
2190
1671
  setByList(t) {
2191
- return f(
1672
+ return $(
2192
1673
  t,
2193
1674
  (e, s) => this.set(s, String(e))
2194
1675
  ), this;
@@ -2208,7 +1689,7 @@ class ft {
2208
1689
  * @param name meta tag name / имя мета-тега
2209
1690
  */
2210
1691
  findMetaElement(t) {
2211
- if (!d())
1692
+ if (!y())
2212
1693
  return;
2213
1694
  const e = `meta[${this.getAttributeName()}="${t}"]`;
2214
1695
  return document.querySelector(e) || void 0;
@@ -2230,12 +1711,13 @@ class ft {
2230
1711
  * @param name meta tag name / имя мета-тега
2231
1712
  */
2232
1713
  setMeta(t) {
2233
- const e = this.findMetaElement(t), s = this.items[t] ?? "";
1714
+ var n;
1715
+ const e = this.findMetaElement(t), s = (n = this.items[t]) != null ? n : "";
2234
1716
  if (e)
2235
1717
  e.content = s;
2236
- else if (d()) {
2237
- const n = { content: s };
2238
- this.isProperty ? n.property = t : n.name = t, ut(document.head, "meta", n);
1718
+ else if (y()) {
1719
+ const o = { content: s };
1720
+ this.isProperty ? o.property = t : o.name = t, Bt(document.head, "meta", o);
2239
1721
  }
2240
1722
  return this;
2241
1723
  }
@@ -2246,7 +1728,8 @@ class ft {
2246
1728
  * @param name meta tag name / имя мета-тега
2247
1729
  */
2248
1730
  toHtmlString(t) {
2249
- const e = se(this.items[t] ?? "");
1731
+ var s;
1732
+ const e = Zt((s = this.items[t]) != null ? s : "");
2250
1733
  return e ? `<meta ${this.getAttributeName()}="${t}" content="${e}">` : "";
2251
1734
  }
2252
1735
  /**
@@ -2256,14 +1739,15 @@ class ft {
2256
1739
  */
2257
1740
  update() {
2258
1741
  return this.listMeta.forEach((t) => {
2259
- this.items[t] = this.findMetaElement(t)?.content ?? "";
1742
+ var e, s;
1743
+ this.items[t] = (s = (e = this.findMetaElement(t)) == null ? void 0 : e.content) != null ? s : "";
2260
1744
  }), this;
2261
1745
  }
2262
1746
  }
2263
- var w = /* @__PURE__ */ ((i) => (i.description = "description", i.keywords = "keywords", i.canonical = "canonical", i.robots = "robots", i.author = "author", i))(w || {}), re = /* @__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))(re || {}), $ = /* @__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))($ || {}), ne = /* @__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))(ne || {}), oe = /* @__PURE__ */ ((i) => (i.inStock = "in stock", i.outOfStock = "out of stock", i.preorder = "preorder", i.backorder = "backorder", i.discontinued = "discontinued", i.pending = "pending", i))(oe || {}), ae = /* @__PURE__ */ ((i) => (i.new = "new", i.used = "used", i.refurbished = "refurbished", i))(ae || {}), ce = /* @__PURE__ */ ((i) => (i.newborn = "newborn", i.infant = "infant", i.toddler = "toddler", i.kids = "kids", i.adult = "adult", i))(ce || {}), ue = /* @__PURE__ */ ((i) => (i.female = "female", i.male = "male", i.unisex = "unisex", i))(ue || {}), v = /* @__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))(v || {}), le = /* @__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))(le || {});
2264
- class he extends ft {
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 {
2265
1749
  constructor() {
2266
- super(Object.values($), !0);
1750
+ super(Object.values(v), !0);
2267
1751
  }
2268
1752
  /**
2269
1753
  * Gets the Open Graph title.
@@ -2271,7 +1755,7 @@ class he extends ft {
2271
1755
  * Получает заголовок Open Graph.
2272
1756
  */
2273
1757
  getTitle() {
2274
- return this.get($.title);
1758
+ return this.get(v.title);
2275
1759
  }
2276
1760
  /**
2277
1761
  * Gets the Open Graph type.
@@ -2279,7 +1763,7 @@ class he extends ft {
2279
1763
  * Получает тип Open Graph.
2280
1764
  */
2281
1765
  getType() {
2282
- return this.get($.type);
1766
+ return this.get(v.type);
2283
1767
  }
2284
1768
  /**
2285
1769
  * Gets the Open Graph URL.
@@ -2287,7 +1771,7 @@ class he extends ft {
2287
1771
  * Получает URL Open Graph.
2288
1772
  */
2289
1773
  getUrl() {
2290
- return this.get($.url);
1774
+ return this.get(v.url);
2291
1775
  }
2292
1776
  /**
2293
1777
  * Gets the Open Graph image URL.
@@ -2295,7 +1779,7 @@ class he extends ft {
2295
1779
  * Получает URL изображения Open Graph.
2296
1780
  */
2297
1781
  getImage() {
2298
- return this.get($.image);
1782
+ return this.get(v.image);
2299
1783
  }
2300
1784
  /**
2301
1785
  * Gets the Open Graph description.
@@ -2303,7 +1787,7 @@ class he extends ft {
2303
1787
  * Получает описание Open Graph.
2304
1788
  */
2305
1789
  getDescription() {
2306
- return this.get($.description);
1790
+ return this.get(v.description);
2307
1791
  }
2308
1792
  /**
2309
1793
  * Gets the Open Graph locale.
@@ -2311,7 +1795,7 @@ class he extends ft {
2311
1795
  * Получает локаль Open Graph.
2312
1796
  */
2313
1797
  getLocale() {
2314
- return this.get($.locale);
1798
+ return this.get(v.locale);
2315
1799
  }
2316
1800
  /**
2317
1801
  * Gets the Open Graph site name.
@@ -2319,7 +1803,7 @@ class he extends ft {
2319
1803
  * Получает название сайта Open Graph.
2320
1804
  */
2321
1805
  getSiteName() {
2322
- return this.get($.siteName);
1806
+ return this.get(v.siteName);
2323
1807
  }
2324
1808
  /**
2325
1809
  * Sets the Open Graph title.
@@ -2328,7 +1812,7 @@ class he extends ft {
2328
1812
  * @param title title / заголовок
2329
1813
  */
2330
1814
  setTitle(t) {
2331
- return this.set($.title, t);
1815
+ return this.set(v.title, t);
2332
1816
  }
2333
1817
  /**
2334
1818
  * Sets the Open Graph type.
@@ -2337,7 +1821,7 @@ class he extends ft {
2337
1821
  * @param type type / тип
2338
1822
  */
2339
1823
  setType(t) {
2340
- return this.set($.type, t);
1824
+ return this.set(v.type, t);
2341
1825
  }
2342
1826
  /**
2343
1827
  * Sets the Open Graph URL.
@@ -2346,7 +1830,7 @@ class he extends ft {
2346
1830
  * @param url URL / URL
2347
1831
  */
2348
1832
  setUrl(t) {
2349
- return this.set($.url, t);
1833
+ return this.set(v.url, t);
2350
1834
  }
2351
1835
  /**
2352
1836
  * Sets the Open Graph image URL.
@@ -2355,7 +1839,7 @@ class he extends ft {
2355
1839
  * @param url image URL / URL изображения
2356
1840
  */
2357
1841
  setImage(t) {
2358
- return this.set($.image, t);
1842
+ return this.set(v.image, t);
2359
1843
  }
2360
1844
  /**
2361
1845
  * Sets the Open Graph description.
@@ -2364,7 +1848,7 @@ class he extends ft {
2364
1848
  * @param description description / описание
2365
1849
  */
2366
1850
  setDescription(t) {
2367
- return this.set($.description, t);
1851
+ return this.set(v.description, t);
2368
1852
  }
2369
1853
  /**
2370
1854
  * Sets the Open Graph locale.
@@ -2373,7 +1857,7 @@ class he extends ft {
2373
1857
  * @param locale locale (e.g. 'en_US', 'ru_RU') / локаль (например, 'en_US', 'ru_RU')
2374
1858
  */
2375
1859
  setLocale(t) {
2376
- return this.set($.locale, t);
1860
+ return this.set(v.locale, t);
2377
1861
  }
2378
1862
  /**
2379
1863
  * Sets the Open Graph site name.
@@ -2382,12 +1866,12 @@ class he extends ft {
2382
1866
  * @param siteName site name / название сайта
2383
1867
  */
2384
1868
  setSiteName(t) {
2385
- return this.set($.siteName, t);
1869
+ return this.set(v.siteName, t);
2386
1870
  }
2387
1871
  }
2388
- class de extends ft {
1872
+ class Tt extends dt {
2389
1873
  constructor() {
2390
- super(Object.values(v));
1874
+ super(Object.values(b));
2391
1875
  }
2392
1876
  /**
2393
1877
  * Gets the Twitter Card type.
@@ -2395,7 +1879,7 @@ class de extends ft {
2395
1879
  * Получает тип Twitter Card.
2396
1880
  */
2397
1881
  getCard() {
2398
- return this.get(v.card);
1882
+ return this.get(b.card);
2399
1883
  }
2400
1884
  /**
2401
1885
  * Gets the website or brand @username.
@@ -2403,7 +1887,7 @@ class de extends ft {
2403
1887
  * Получает аккаунт сайта или бренда (@username).
2404
1888
  */
2405
1889
  getSite() {
2406
- return this.get(v.site);
1890
+ return this.get(b.site);
2407
1891
  }
2408
1892
  /**
2409
1893
  * Gets the content creator @username.
@@ -2411,7 +1895,7 @@ class de extends ft {
2411
1895
  * Получает автора контента (@username).
2412
1896
  */
2413
1897
  getCreator() {
2414
- return this.get(v.creator);
1898
+ return this.get(b.creator);
2415
1899
  }
2416
1900
  /**
2417
1901
  * Gets the page URL.
@@ -2419,7 +1903,7 @@ class de extends ft {
2419
1903
  * Получает URL страницы.
2420
1904
  */
2421
1905
  getUrl() {
2422
- return this.get(v.url);
1906
+ return this.get(b.url);
2423
1907
  }
2424
1908
  /**
2425
1909
  * Gets the card title.
@@ -2427,7 +1911,7 @@ class de extends ft {
2427
1911
  * Получает заголовок карточки.
2428
1912
  */
2429
1913
  getTitle() {
2430
- return this.get(v.title);
1914
+ return this.get(b.title);
2431
1915
  }
2432
1916
  /**
2433
1917
  * Gets the card description.
@@ -2435,7 +1919,7 @@ class de extends ft {
2435
1919
  * Получает описание карточки.
2436
1920
  */
2437
1921
  getDescription() {
2438
- return this.get(v.description);
1922
+ return this.get(b.description);
2439
1923
  }
2440
1924
  /**
2441
1925
  * Gets the card image URL.
@@ -2443,7 +1927,7 @@ class de extends ft {
2443
1927
  * Получает URL изображения карточки.
2444
1928
  */
2445
1929
  getImage() {
2446
- return this.get(v.image);
1930
+ return this.get(b.image);
2447
1931
  }
2448
1932
  /**
2449
1933
  * Sets the Twitter Card type.
@@ -2452,7 +1936,7 @@ class de extends ft {
2452
1936
  * @param card card type / тип карточки
2453
1937
  */
2454
1938
  setCard(t) {
2455
- return this.set(v.card, t), this;
1939
+ return this.set(b.card, t), this;
2456
1940
  }
2457
1941
  /**
2458
1942
  * Sets the website or brand @username.
@@ -2461,7 +1945,7 @@ class de extends ft {
2461
1945
  * @param site @username / аккаунт
2462
1946
  */
2463
1947
  setSite(t) {
2464
- return this.set(v.site, t), this;
1948
+ return this.set(b.site, t), this;
2465
1949
  }
2466
1950
  /**
2467
1951
  * Sets the content creator @username.
@@ -2470,7 +1954,7 @@ class de extends ft {
2470
1954
  * @param creator @username / аккаунт автора
2471
1955
  */
2472
1956
  setCreator(t) {
2473
- return this.set(v.creator, t), this;
1957
+ return this.set(b.creator, t), this;
2474
1958
  }
2475
1959
  /**
2476
1960
  * Sets the page URL.
@@ -2479,7 +1963,7 @@ class de extends ft {
2479
1963
  * @param url URL / URL
2480
1964
  */
2481
1965
  setUrl(t) {
2482
- return this.set(v.url, t), this;
1966
+ return this.set(b.url, t), this;
2483
1967
  }
2484
1968
  /**
2485
1969
  * Sets the card title.
@@ -2488,7 +1972,7 @@ class de extends ft {
2488
1972
  * @param title title / заголовок
2489
1973
  */
2490
1974
  setTitle(t) {
2491
- return this.set(v.title, t), this;
1975
+ return this.set(b.title, t), this;
2492
1976
  }
2493
1977
  /**
2494
1978
  * Sets the card description.
@@ -2497,7 +1981,7 @@ class de extends ft {
2497
1981
  * @param description description / описание
2498
1982
  */
2499
1983
  setDescription(t) {
2500
- return this.set(v.description, t), this;
1984
+ return this.set(b.description, t), this;
2501
1985
  }
2502
1986
  /**
2503
1987
  * Sets the card image URL.
@@ -2506,20 +1990,21 @@ class de extends ft {
2506
1990
  * @param image image URL / URL изображения
2507
1991
  */
2508
1992
  setImage(t) {
2509
- return this.set(v.image, t), this;
1993
+ return this.set(b.image, t), this;
2510
1994
  }
2511
1995
  }
2512
- class ge extends ft {
2513
- suffix;
2514
- og;
2515
- twitter;
1996
+ class Gt extends dt {
2516
1997
  /**
2517
1998
  * Creates an instance of Meta with integrated Open Graph and Twitter Card support.
2518
1999
  *
2519
2000
  * Создает экземпляр Meta с интегрированной поддержкой Open Graph и Twitter Card.
2520
2001
  */
2521
2002
  constructor() {
2522
- super(Object.values(w)), this.og = new he(), this.twitter = new de();
2003
+ 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();
2523
2008
  }
2524
2009
  /**
2525
2010
  * Gets the MetaOg instance for advanced Open Graph operations.
@@ -2543,7 +2028,7 @@ class ge extends ft {
2543
2028
  * Получает заголовок страницы без суффикса.
2544
2029
  */
2545
2030
  getTitle() {
2546
- return d() ? document.title.replace(this.getSuffix(), "").trim() : "";
2031
+ return y() ? document.title.replace(this.getSuffix(), "").trim() : "";
2547
2032
  }
2548
2033
  /**
2549
2034
  * Gets the keywords meta tag.
@@ -2551,7 +2036,7 @@ class ge extends ft {
2551
2036
  * Получает мета-тег keywords.
2552
2037
  */
2553
2038
  getKeywords() {
2554
- return this.get(w.keywords);
2039
+ return this.get(L.keywords);
2555
2040
  }
2556
2041
  /**
2557
2042
  * Gets the description meta tag.
@@ -2559,7 +2044,7 @@ class ge extends ft {
2559
2044
  * Получает мета-тег description.
2560
2045
  */
2561
2046
  getDescription() {
2562
- return this.get(w.description);
2047
+ return this.get(L.description);
2563
2048
  }
2564
2049
  /**
2565
2050
  * Gets the Open Graph image URL.
@@ -2575,7 +2060,7 @@ class ge extends ft {
2575
2060
  * Получает канонический URL.
2576
2061
  */
2577
2062
  getCanonical() {
2578
- return this.get(w.canonical);
2063
+ return this.get(L.canonical);
2579
2064
  }
2580
2065
  /**
2581
2066
  * Gets the robots meta tag value.
@@ -2583,7 +2068,7 @@ class ge extends ft {
2583
2068
  * Получает значение мета-тега robots.
2584
2069
  */
2585
2070
  getRobots() {
2586
- return this.get(w.robots);
2071
+ return this.get(L.robots);
2587
2072
  }
2588
2073
  /**
2589
2074
  * Gets the author meta tag.
@@ -2591,7 +2076,7 @@ class ge extends ft {
2591
2076
  * Получает мета-тег author.
2592
2077
  */
2593
2078
  getAuthor() {
2594
- return this.get(w.author);
2079
+ return this.get(L.author);
2595
2080
  }
2596
2081
  /**
2597
2082
  * Gets the Open Graph site name.
@@ -2615,10 +2100,10 @@ class ge extends ft {
2615
2100
  * Устанавливает заголовок страницы (с суффиксом) и обновляет заголовки Open Graph и Twitter Card.
2616
2101
  * @param title page title / заголовок страницы
2617
2102
  */
2618
- setTitle(t) {
2619
- if (d()) {
2620
- const e = F(t) ? `${t}${this.getSuffix()}` : this.suffix ? this.suffix : "";
2621
- document.title = e, this.og.setTitle(e), this.twitter.setTitle(e);
2103
+ setTitle(e) {
2104
+ if (y()) {
2105
+ const s = _(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
2106
+ document.title = s, this.og.setTitle(s), this.twitter.setTitle(s);
2622
2107
  }
2623
2108
  return this;
2624
2109
  }
@@ -2628,8 +2113,8 @@ class ge extends ft {
2628
2113
  * Устанавливает мета-тег keywords.
2629
2114
  * @param keywords keywords as string or array / ключевые слова в виде строки или массива
2630
2115
  */
2631
- setKeywords(t) {
2632
- return this.set(w.keywords, R(t).join(", ")), this;
2116
+ setKeywords(e) {
2117
+ return this.set(L.keywords, W(e).join(", ")), this;
2633
2118
  }
2634
2119
  /**
2635
2120
  * Sets the description meta tag.
@@ -2637,8 +2122,8 @@ class ge extends ft {
2637
2122
  * Устанавливает мета-тег description.
2638
2123
  * @param description page description / описание страницы
2639
2124
  */
2640
- setDescription(t) {
2641
- return this.set(w.description, t), this;
2125
+ setDescription(e) {
2126
+ return this.set(L.description, e), this;
2642
2127
  }
2643
2128
  /**
2644
2129
  * Sets the image for Open Graph and Twitter Card.
@@ -2646,8 +2131,8 @@ class ge extends ft {
2646
2131
  * Устанавливает изображение для Open Graph и Twitter Card.
2647
2132
  * @param image image URL / URL изображения
2648
2133
  */
2649
- setImage(t) {
2650
- return this.og.setImage(t), this.twitter.setImage(t), this;
2134
+ setImage(e) {
2135
+ return this.og.setImage(e), this.twitter.setImage(e), this;
2651
2136
  }
2652
2137
  /**
2653
2138
  * Sets the canonical URL and updates Open Graph and Twitter Card URLs.
@@ -2655,8 +2140,8 @@ class ge extends ft {
2655
2140
  * Устанавливает канонический URL и обновляет URL для Open Graph и Twitter Card.
2656
2141
  * @param canonical canonical URL / канонический URL
2657
2142
  */
2658
- setCanonical(t) {
2659
- return this.set(w.canonical, t), this.og.setUrl(t), this.twitter.setUrl(t), this;
2143
+ setCanonical(e) {
2144
+ return this.set(L.canonical, e), this.og.setUrl(e), this.twitter.setUrl(e), this;
2660
2145
  }
2661
2146
  /**
2662
2147
  * Sets the robots meta tag.
@@ -2664,8 +2149,8 @@ class ge extends ft {
2664
2149
  * Устанавливает мета-тег robots.
2665
2150
  * @param robots robots directive / директива robots
2666
2151
  */
2667
- setRobots(t) {
2668
- return this.set(w.robots, t), this;
2152
+ setRobots(e) {
2153
+ return this.set(L.robots, e), this;
2669
2154
  }
2670
2155
  /**
2671
2156
  * Sets the author meta tag.
@@ -2673,8 +2158,8 @@ class ge extends ft {
2673
2158
  * Устанавливает мета-тег author.
2674
2159
  * @param author author name / имя автора
2675
2160
  */
2676
- setAuthor(t) {
2677
- return this.set(w.author, t), this;
2161
+ setAuthor(e) {
2162
+ return this.set(L.author, e), this;
2678
2163
  }
2679
2164
  /**
2680
2165
  * Sets the site name for Open Graph and Twitter Card.
@@ -2682,8 +2167,8 @@ class ge extends ft {
2682
2167
  * Устанавливает название сайта для Open Graph и Twitter Card.
2683
2168
  * @param siteName site name / название сайта
2684
2169
  */
2685
- setSiteName(t) {
2686
- return this.og.setSiteName(t), this.twitter.setSite(t), this;
2170
+ setSiteName(e) {
2171
+ return this.og.setSiteName(e), this.twitter.setSite(e), this;
2687
2172
  }
2688
2173
  /**
2689
2174
  * Sets the locale for Open Graph.
@@ -2691,8 +2176,8 @@ class ge extends ft {
2691
2176
  * Устанавливает локаль для Open Graph.
2692
2177
  * @param locale locale (e.g. 'en_US', 'ru_RU') / локаль (например, 'en_US', 'ru_RU')
2693
2178
  */
2694
- setLocale(t) {
2695
- return this.og.setLocale(t), this;
2179
+ setLocale(e) {
2180
+ return this.og.setLocale(e), this;
2696
2181
  }
2697
2182
  /**
2698
2183
  * Sets the suffix to append to page title.
@@ -2700,8 +2185,8 @@ class ge extends ft {
2700
2185
  * Устанавливает суффикс для добавления к заголовку страницы.
2701
2186
  * @param suffix title suffix (e.g. 'My Site') / суффикс заголовка (например, 'Мой Сайт')
2702
2187
  */
2703
- setSuffix(t) {
2704
- this.suffix = t;
2188
+ setSuffix(e) {
2189
+ this.suffix = e;
2705
2190
  }
2706
2191
  /**
2707
2192
  * Generates the complete HTML for all meta-tags including Open Graph and Twitter Card.
@@ -2717,62 +2202,10 @@ class ge extends ft {
2717
2202
  * Получает отформатированный суффикс с разделителем.
2718
2203
  */
2719
2204
  getSuffix() {
2720
- return F(this.suffix) ? ` - ${this.suffix}` : "";
2205
+ return _(this.suffix) ? ` - ${this.suffix}` : "";
2721
2206
  }
2722
2207
  }
2723
- class Ct {
2724
- static storage = new X("scrollbar", !0);
2725
- static calculate = !1;
2726
- /**
2727
- * Checks whether to enable scroll hiding.
2728
- *
2729
- * Проверяет, надо ли включить скрытие скролла.
2730
- */
2731
- static async is() {
2732
- const t = await this.get();
2733
- return t !== -1 && t <= 8;
2734
- }
2735
- /**
2736
- * Returns the width of the scroll.
2737
- *
2738
- * Возвращает ширину скролла.
2739
- */
2740
- static async get() {
2741
- const t = this.storage.get() ?? -1;
2742
- if (!this.calculate && t === -1) {
2743
- const e = await this.init();
2744
- return this.storage.set(e), e;
2745
- }
2746
- return t;
2747
- }
2748
- /**
2749
- * Creates elements to check the width of the scroll.
2750
- *
2751
- * Создает элементы для проверки ширины скролла.
2752
- */
2753
- static createElement() {
2754
- return ut(document.body, "div", (t) => {
2755
- t.style.height = "24px", t.style.overflowY = "scroll", t.style.position = "fixed", t.style.width = "100%", ut(t, "div", (e) => {
2756
- e.style.height = "100px";
2757
- });
2758
- });
2759
- }
2760
- /**
2761
- * Initialization of data to check the width of the scroll.
2762
- *
2763
- * Инициализация данных для проверки ширины скролла.
2764
- */
2765
- static init() {
2766
- return new Promise((t) => {
2767
- this.calculate = !0;
2768
- const e = this.createElement();
2769
- e ? requestAnimationFrame(() => {
2770
- t(e.offsetWidth - e.clientWidth), e.remove(), this.calculate = !1;
2771
- }) : t(0);
2772
- });
2773
- }
2774
- }
2775
- const fe = [
2208
+ const te = [
2776
2209
  "d",
2777
2210
  "e",
2778
2211
  "f",
@@ -2792,28 +2225,21 @@ const fe = [
2792
2225
  "t",
2793
2226
  "u",
2794
2227
  "v"
2795
- ], me = (i, t = {}) => {
2228
+ ], ee = (i, t = {}) => {
2796
2229
  let e = String(i);
2797
2230
  if (i.match(/%[a-z]/)) {
2798
2231
  let s = 0;
2799
- f(t, (n) => {
2800
- e = e.replace(new RegExp(`%${fe[s++]}`, "g"), String(n));
2232
+ $(t, (n) => {
2233
+ e = e.replace(new RegExp(`%${te[s++]}`, "g"), String(n));
2801
2234
  });
2802
2235
  }
2803
- return C(t) && f(t, (s, n) => {
2236
+ return F(t) && $(t, (s, n) => {
2804
2237
  e = e.replace(
2805
2238
  new RegExp(`\\[${n}\\](.*?)\\[/${n}\\]`, "g"),
2806
2239
  (o, a) => String(s).replace(/\[content]/g, a)
2807
2240
  ).replace(new RegExp(`\\[${n}\\]`, "g"), String(s));
2808
2241
  }), e;
2809
- };
2810
- class q {
2811
- static url = "/api/translate";
2812
- static propsName = "list";
2813
- static data = {};
2814
- static cache = [];
2815
- static resolveList = [];
2816
- static timeout;
2242
+ }, I = class I {
2817
2243
  /**
2818
2244
  * Getting the translation text by its code.
2819
2245
  *
@@ -2822,8 +2248,9 @@ class q {
2822
2248
  * @param replacement If set, replaces the text with the specified values/ если установлено, заменяет текст на указанные значения
2823
2249
  */
2824
2250
  static async get(t, e) {
2251
+ var n, o;
2825
2252
  const s = this.getName(t);
2826
- return s in this.data ? this.replacement(this.data[s], e) : (V.isLocalhost() || await this.add(t), this.replacement(this.data?.[s] ?? 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));
2827
2254
  }
2828
2255
  /**
2829
2256
  * Getting the translation text by its code (Sync).
@@ -2850,9 +2277,9 @@ class q {
2850
2277
  const s = {};
2851
2278
  let n = 0;
2852
2279
  for (const o of t) {
2853
- const a = Array.isArray(o) ? o[0] : o, u = Array.isArray(o) ? o.slice(1) : void 0;
2854
- this.get(a, u).then((l) => {
2855
- s[a] = l, ++n >= t.length && e(s);
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);
2856
2283
  });
2857
2284
  }
2858
2285
  });
@@ -2895,8 +2322,8 @@ class q {
2895
2322
  * @param data list of texts in the form of key-value/ список текстов в виде ключ-значение
2896
2323
  */
2897
2324
  static addSync(t) {
2898
- f(t, (e, s) => {
2899
- ht(e) && F(e) && (this.data[this.getName(s)] = e);
2325
+ $(t, (e, s) => {
2326
+ ct(e) && _(e) && (this.data[this.getName(s)] = e);
2900
2327
  });
2901
2328
  }
2902
2329
  /**
@@ -2906,7 +2333,7 @@ class q {
2906
2333
  * @param data list of texts in the form of key-value/ список текстов в виде ключ-значение
2907
2334
  */
2908
2335
  static async addNormalOrSync(t) {
2909
- if (F(t))
2336
+ if (_(t))
2910
2337
  if (V.isLocalhost())
2911
2338
  this.addSync(t);
2912
2339
  else {
@@ -2921,7 +2348,7 @@ class q {
2921
2348
  * @param url path to the script/ путь к скрипту
2922
2349
  */
2923
2350
  static setUrl(t) {
2924
- return this.url = t, q;
2351
+ return this.url = t, I;
2925
2352
  }
2926
2353
  static setPropsName(t) {
2927
2354
  return this.propsName = t, this;
@@ -2933,7 +2360,7 @@ class q {
2933
2360
  * @param name code name/ название кода
2934
2361
  */
2935
2362
  static getName(t) {
2936
- return `${b.getLocation()}-${t}`;
2363
+ return `${w.getLocation()}-${t}`;
2937
2364
  }
2938
2365
  /**
2939
2366
  * Returns a list of names that are not yet in the list.
@@ -2943,7 +2370,7 @@ class q {
2943
2370
  */
2944
2371
  static getNamesNone(t) {
2945
2372
  const e = [];
2946
- return R(t).forEach((s) => {
2373
+ return W(t).forEach((s) => {
2947
2374
  s !== "__TRANSLATE_START__" && s !== "__TRANSLATE_END__" && !(this.getName(s) in this.data) && e.push(s);
2948
2375
  }), e;
2949
2376
  }
@@ -2953,7 +2380,7 @@ class q {
2953
2380
  * Получение списка переводов с сервера.
2954
2381
  */
2955
2382
  static async getResponse() {
2956
- return await V.get({
2383
+ const t = await V.get({
2957
2384
  api: !1,
2958
2385
  path: this.url,
2959
2386
  request: {
@@ -2961,7 +2388,8 @@ class q {
2961
2388
  },
2962
2389
  toData: !0,
2963
2390
  global: !0
2964
- }) ?? {};
2391
+ });
2392
+ return t != null ? t : {};
2965
2393
  }
2966
2394
  /**
2967
2395
  * Replaces the text with the specified values.
@@ -2971,7 +2399,7 @@ class q {
2971
2399
  * @param replacement values for replacement/ значения для замены
2972
2400
  */
2973
2401
  static replacement(t, e) {
2974
- return e ? me(t, e) : t;
2402
+ return e ? ee(t, e) : t;
2975
2403
  }
2976
2404
  /**
2977
2405
  * Adding translation data from the server.
@@ -2981,23 +2409,270 @@ class q {
2981
2409
  static async make() {
2982
2410
  const t = await this.getResponse();
2983
2411
  this.cache.forEach((e) => {
2984
- this.data[this.getName(e)] = t?.[e] ?? "";
2412
+ var s;
2413
+ this.data[this.getName(e)] = (s = t == null ? void 0 : t[e]) != null ? s : "";
2985
2414
  }), this.cache = [];
2986
2415
  }
2987
- }
2988
- function mt(i) {
2416
+ };
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;
2419
+ function gt(i) {
2989
2420
  return Array.isArray(i);
2990
2421
  }
2991
- class ye {
2422
+ function Ae(i) {
2423
+ 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 : "";
2425
+ }
2426
+ function ie(i, t) {
2427
+ return Array(t).fill(i);
2428
+ }
2429
+ function Be(i) {
2430
+ var t;
2431
+ if (y())
2432
+ return (t = document.querySelector(i)) != null ? t : void 0;
2433
+ }
2434
+ function Fe(i) {
2435
+ if (y())
2436
+ return document.querySelectorAll(i);
2437
+ }
2438
+ function xe(i) {
2439
+ i.preventDefault(), i.stopPropagation();
2440
+ }
2441
+ function se(i, t, e) {
2442
+ const s = () => {
2443
+ i(), t != null && t() ? se(i, t, e) : e == null || e();
2444
+ };
2445
+ y() ? requestAnimationFrame(s) : s();
2446
+ }
2447
+ function Ee(i) {
2448
+ var s;
2449
+ const t = {}, e = vt(i);
2450
+ 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;
2453
+ return t;
2454
+ }
2455
+ async function Pe(i) {
2456
+ var t, e;
2457
+ return (e = (t = i == null ? void 0 : i.clipboardData) == null ? void 0 : t.getData("text")) != null ? e : await navigator.clipboard.readText() || "";
2458
+ }
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++}`;
2463
+ }
2464
+ function St(i, t = "ig", e = ":value") {
2465
+ const s = i.replace(/([[\]\\^$.?*+()/])/g, "\\$1");
2466
+ return new RegExp(e.replace(/:value/g, s), t);
2467
+ }
2468
+ function re(i, t) {
2469
+ var n;
2470
+ 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 : "";
2472
+ }
2473
+ function He(i) {
2474
+ var t, e, s;
2475
+ 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
+ }
2477
+ function wt(i) {
2478
+ return $(i, (t) => t.length);
2479
+ }
2480
+ function Re(i) {
2481
+ return Math.max(...wt(i));
2482
+ }
2483
+ function We(i) {
2484
+ return Math.min(...wt(i));
2485
+ }
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;
2489
+ }
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;
2493
+ }
2494
+ function je(i) {
2495
+ return {
2496
+ x: ne(i),
2497
+ y: oe(i)
2498
+ };
2499
+ }
2500
+ function Ue(i, t) {
2501
+ const e = {};
2502
+ return t.forEach((s) => {
2503
+ s in i && i[s] !== void 0 && (e[s] = i[s]);
2504
+ }), e;
2505
+ }
2506
+ function ze(i, t = void 0) {
2507
+ const e = {};
2508
+ return $(i, (s, n) => {
2509
+ s !== t && (e[n] = s);
2510
+ }), e;
2511
+ }
2512
+ function _e(i) {
2513
+ return F(i) ? i : {};
2514
+ }
2515
+ function ae(i, t) {
2516
+ return ie(i, t).join("");
2517
+ }
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)));
2522
+ return a.join(" ");
2523
+ }
2524
+ function Ze(i, t) {
2525
+ const e = i != null ? i : 0;
2526
+ return t > e ? 100 / (t - e) : 0;
2527
+ }
2528
+ function Ve(i, t) {
2529
+ const e = i != null ? i : 0;
2530
+ return t > e ? (t - e) / 100 : 0;
2531
+ }
2532
+ const $t = 0;
2533
+ function Ye(i, t, e) {
2534
+ const s = t == null ? void 0 : t.closest(i);
2535
+ if (t && s && s.scrollHeight !== s.offsetHeight)
2536
+ 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);
2539
+ } 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
+ }
2541
+ function qe(i, t) {
2542
+ return i.indexOf(t) !== -1;
2543
+ }
2544
+ async function Je() {
2545
+ if (y()) {
2546
+ const i = await bt.get();
2547
+ document.body.style.setProperty("--sys-scrollbar-offset", `${i}px`);
2548
+ }
2549
+ }
2550
+ function Qe(i, t) {
2551
+ const e = {};
2552
+ return S(i) && S(t) && $(i, (s, n) => {
2553
+ n in t && (e[n] = s);
2554
+ }), e;
2555
+ }
2556
+ function Xe(i, t) {
2557
+ 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);
2560
+ }), e;
2561
+ }
2562
+ function Me(i) {
2563
+ switch (typeof i) {
2564
+ case "number":
2565
+ return !0;
2566
+ case "string":
2567
+ return !!i.match(/^([0-9]+|[0-9]+\.[0-9]+)$/);
2568
+ default:
2569
+ return !1;
2570
+ }
2571
+ }
2572
+ function Oe(i, t) {
2573
+ const e = Math.floor(t);
2574
+ return i >= e && i < e + 1;
2575
+ }
2576
+ function Te(i, t) {
2577
+ return Array.isArray(i) ? i.every((e) => j(e, t)) : j(i, t);
2578
+ }
2579
+ function ue(i) {
2580
+ return [...new Set(i)];
2581
+ }
2582
+ function R(i, t, e = !0) {
2583
+ const s = U(i);
2584
+ return S(i) && S(t) && $(
2585
+ t,
2586
+ (n, o) => {
2587
+ 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(
2589
+ Array.isArray(a) ? { ...a } : a,
2590
+ n,
2591
+ e
2592
+ ) : s[o] = S(n) ? U(n) : n;
2593
+ }
2594
+ ), s;
2595
+ }
2596
+ function Ge(i, t) {
2597
+ let e = i;
2598
+ return $(t, (s, n) => {
2599
+ e = e.replace(St(`[${n}]`), lt(s));
2600
+ }), e;
2601
+ }
2602
+ function ti(i) {
2603
+ const t = N(i);
2604
+ if (t > 0) {
2605
+ const e = String(Math.floor(t / 60)).padStart(2, "0"), s = String(t % 60).padStart(2, "0");
2606
+ return `${e}:${s}`;
2607
+ }
2608
+ return "00:00";
2609
+ }
2610
+ function ei(i, t, {
2611
+ multiple: e = !1,
2612
+ maxlength: s = 0,
2613
+ alwaysChange: n = !0,
2614
+ notEmpty: o = !1
2615
+ }) {
2616
+ if (e) {
2617
+ 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;
2620
+ }
2621
+ return i === t ? [] : i ? [i, t] : [t];
2622
+ }
2623
+ return n || i !== t ? t : i;
2624
+ }
2625
+ function ii(i, t, e) {
2626
+ if (S(i) && S(t)) {
2627
+ 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);
2632
+ }
2633
+ if (S(t))
2634
+ return R(i, t);
2635
+ }
2636
+ return U(i);
2637
+ }
2638
+ function Dt(i) {
2639
+ 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
+ }
2641
+ function si(i) {
2642
+ return Dt(i).replace(/^([a-z])/, (t) => `${t.toUpperCase()}`);
2643
+ }
2644
+ function ri(i) {
2645
+ 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
+ }
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);
2650
+ }
2651
+ const pt = (i, t, e) => t ? new P(e).number(i) : i;
2652
+ function ce(i, t) {
2653
+ return 1 / i * t;
2654
+ }
2655
+ function oi(i, t) {
2656
+ return ce(i, t) * 100;
2657
+ }
2658
+ async function ai(i) {
2659
+ if (y())
2660
+ try {
2661
+ await navigator.clipboard.writeText(i);
2662
+ } catch (t) {
2663
+ document == null || document.execCommand(i);
2664
+ }
2665
+ }
2666
+ class le {
2992
2667
  /**
2993
2668
  * Constructor
2994
2669
  * @param props base data/ базовые данные
2995
2670
  * @param watch data for tracking/ данные для слежения
2996
2671
  */
2997
2672
  constructor(t, e = Object.keys(t)) {
2673
+ u(this, "cache", {});
2998
2674
  this.props = t, this.watch = e;
2999
2675
  }
3000
- cache = {};
3001
2676
  /**
3002
2677
  * Checks if the value has been updated.
3003
2678
  *
@@ -3005,7 +2680,7 @@ class ye {
3005
2680
  * @param name property name/ название свойства
3006
2681
  */
3007
2682
  is(t) {
3008
- return mt(t) ? !!t.find((e) => this.isDifferent(e)) : this.isDifferent(t);
2683
+ return gt(t) ? !!t.find((e) => this.isDifferent(e)) : this.isDifferent(t);
3009
2684
  }
3010
2685
  /**
3011
2686
  * Checks if there are changes in the data.
@@ -3034,10 +2709,11 @@ class ye {
3034
2709
  * @param name property name/ название свойства
3035
2710
  */
3036
2711
  isDifferent(t) {
3037
- return this.cache?.[t] !== this.props?.[t];
2712
+ var e, s;
2713
+ return ((e = this.cache) == null ? void 0 : e[t]) !== ((s = this.props) == null ? void 0 : s[t]);
3038
2714
  }
3039
2715
  }
3040
- class pe {
2716
+ class he {
3041
2717
  /**
3042
2718
  * Constructor
3043
2719
  * @param props base data/ базовые данные
@@ -3046,10 +2722,10 @@ class pe {
3046
2722
  * @param changed base data/ данный для слежения
3047
2723
  */
3048
2724
  constructor(t, e, s) {
3049
- this.props = t, this.callback = e, this.changed = new ye(t, s);
2725
+ u(this, "event", {});
2726
+ u(this, "changed");
2727
+ this.props = t, this.callback = e, this.changed = new le(t, s);
3050
2728
  }
3051
- event = {};
3052
- changed;
3053
2729
  /**
3054
2730
  * Calls the callback function.
3055
2731
  *
@@ -3096,7 +2772,7 @@ class pe {
3096
2772
  this.callback && this.callback(this.event);
3097
2773
  }
3098
2774
  }
3099
- class Ze extends pe {
2775
+ class ui extends he {
3100
2776
  /**
3101
2777
  * Calls the callback function.
3102
2778
  *
@@ -3116,41 +2792,44 @@ class Ze extends pe {
3116
2792
  (t || this.changed.isChanged()) && (await this.initEvent(), this.makeCallbackItem(), this.changed.update());
3117
2793
  }
3118
2794
  }
3119
- function $e(i) {
2795
+ function m(i) {
2796
+ return Q(i) ? i.value : i;
2797
+ }
2798
+ function de(i) {
3120
2799
  return i && "class" in i && typeof i.class == "string" ? i.class : void 0;
3121
2800
  }
3122
- function ve(i, t, e) {
3123
- const s = $e(t);
2801
+ function ge(i, t, e) {
2802
+ const s = de(t);
3124
2803
  return e && s ? `${e}.${s}` : e || s || i;
3125
2804
  }
3126
- function be(i, t, e, s) {
3127
- const n = ve(i, t, s);
3128
- return _t(i, { key: n, ...t }, e);
2805
+ function fe(i, t, e, s) {
2806
+ const n = ge(i, t, s);
2807
+ return Et(i, { key: n, ...t }, e);
3129
2808
  }
3130
- function lt(i, t) {
3131
- const e = i?.class, s = t?.class, n = i?.style, o = t?.style, a = {
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 = {
3132
2811
  ...i,
3133
2812
  ...t
3134
2813
  };
3135
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;
3136
2815
  }
3137
- function we(...i) {
2816
+ function me(...i) {
3138
2817
  let t = {};
3139
2818
  return i.forEach((e) => {
3140
- e && (t = lt(t, e));
2819
+ e && (t = at(t, e));
3141
2820
  }), t;
3142
2821
  }
3143
- class It {
2822
+ class Lt {
3144
2823
  /**
3145
2824
  * Constructor
3146
2825
  * @param components list of connected components/ список подключенных компонентов
3147
2826
  * @param modification data for modification/ данные для модификации
3148
2827
  */
3149
2828
  constructor(t = {}, e) {
2829
+ /** Cache for computed properties/ Кэш для вычисляемых свойств */
2830
+ u(this, "caching", {});
3150
2831
  this.components = t, this.modification = e;
3151
2832
  }
3152
- /** Cache for computed properties/ Кэш для вычисляемых свойств */
3153
- caching = {};
3154
2833
  /**
3155
2834
  * Check the presence of the component.
3156
2835
  *
@@ -3167,7 +2846,8 @@ class It {
3167
2846
  * @param name name of the component/ названия компонента
3168
2847
  */
3169
2848
  get(t) {
3170
- return this.components?.[t];
2849
+ var e;
2850
+ return (e = this.components) == null ? void 0 : e[t];
3171
2851
  }
3172
2852
  /**
3173
2853
  * Returns the modified input data of the connected components.
@@ -3178,10 +2858,10 @@ class It {
3178
2858
  */
3179
2859
  getModification(t, e) {
3180
2860
  if (t) {
3181
- t in this.caching || (this.caching[t] = c(() => this.computeModification(t)));
2861
+ t in this.caching || (this.caching[t] = l(() => this.computeModification(t)));
3182
2862
  const s = this.caching[t];
3183
2863
  if (s)
3184
- return e ? we(s.value, e) : s.value;
2864
+ return e ? me(s.value, e) : s.value;
3185
2865
  }
3186
2866
  return e;
3187
2867
  }
@@ -3214,8 +2894,8 @@ class It {
3214
2894
  */
3215
2895
  renderOne(t, e, s, n) {
3216
2896
  if (this.is(t)) {
3217
- const o = n ?? t;
3218
- return be(
2897
+ const o = n != null ? n : t;
2898
+ return fe(
3219
2899
  this.get(t),
3220
2900
  this.getModification(o, e),
3221
2901
  s,
@@ -3244,22 +2924,20 @@ class It {
3244
2924
  * @param index the name of this/ название данного
3245
2925
  */
3246
2926
  computeModification(t) {
3247
- const e = m(this.modification?.[t]);
3248
- if (e && C(e)) {
3249
- const s = {};
3250
- return f(e, (n, o) => {
3251
- s[o] = m(n);
3252
- }), s;
2927
+ 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;
3253
2934
  }
3254
2935
  return {};
3255
2936
  }
3256
2937
  }
3257
- class Ke extends It {
3258
- }
3259
- function Nt(i) {
3260
- return i.toString().trim().replace(/[^\w- ]+/g, "").replace(/ +/g, "-").replace(new RegExp("(?<=[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()}`);
2938
+ class ci extends Lt {
3261
2939
  }
3262
- class Ve {
2940
+ class li {
3263
2941
  /**
3264
2942
  * Constructor
3265
2943
  * @param name class name/ название класса
@@ -3267,22 +2945,22 @@ class Ve {
3267
2945
  * @param options list of additional parameters/ список дополнительных параметров
3268
2946
  */
3269
2947
  constructor(t, e, s) {
3270
- this.props = e, this.options = s, this.name = this.initName(t), this.refs = this.props ? zt(this.props) : {}, this.components = new It(s?.components, s?.compMod), this.emits = s?.emits, this.classes = c(() => this.updateClasses()), this.styles = c(() => this.updateStyles()), this.attrs = Zt(), this.slots = Kt();
3271
- }
3272
- name;
3273
- element = y();
3274
- refs;
3275
- components;
3276
- emits;
3277
- classes;
3278
- classesSub;
3279
- styles;
3280
- stylesSub;
3281
- attrs;
3282
- slots;
3283
- dataExpose;
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();
2961
+ }
3284
2962
  init() {
3285
- return this.classesSub = c(() => this.initClasses()), this.stylesSub = c(() => this.initStyles()), this.dataExpose = this.initExpose(), this;
2963
+ return this.classesSub = l(() => this.initClasses()), this.stylesSub = l(() => this.initStyles()), this.dataExpose = this.initExpose(), this;
3286
2964
  }
3287
2965
  /**
3288
2966
  * Getting the class name.
@@ -3307,7 +2985,7 @@ class Ve {
3307
2985
  * @param name list of class names by levels/ список названий классов по уровням
3308
2986
  */
3309
2987
  getSubClass(t) {
3310
- return `${this.getName()}__${R(t).join("__")}`;
2988
+ return `${this.getName()}__${W(t).join("__")}`;
3311
2989
  }
3312
2990
  /**
3313
2991
  * Getting the class name for the status.
@@ -3316,7 +2994,7 @@ class Ve {
3316
2994
  * @param name list of class names by levels/ список названий классов по уровням
3317
2995
  */
3318
2996
  getStatusClass(t) {
3319
- return `${this.getName()}--${R(t).join("--")}`;
2997
+ return `${this.getName()}--${W(t).join("--")}`;
3320
2998
  }
3321
2999
  /**
3322
3000
  * Getting the property name for the style.
@@ -3325,7 +3003,7 @@ class Ve {
3325
3003
  * @param name list of class names by levels/ список названий классов по уровням
3326
3004
  */
3327
3005
  getStyle(t) {
3328
- return `--${this.getName()}-sys-${R(t).join("-")}`;
3006
+ return `--${this.getName()}-sys-${W(t).join("-")}`;
3329
3007
  }
3330
3008
  /**
3331
3009
  * Getting additional parameters.
@@ -3333,7 +3011,8 @@ class Ve {
3333
3011
  * Получение дополнительных параметров.
3334
3012
  */
3335
3013
  getAttrs() {
3336
- const t = { ...this.attrs ?? {} };
3014
+ var e;
3015
+ const t = { ...(e = this.attrs) != null ? e : {} };
3337
3016
  return "class" in t && delete t.class, "style" in t && delete t.style, t;
3338
3017
  }
3339
3018
  /**
@@ -3342,7 +3021,8 @@ class Ve {
3342
3021
  * Список доступных переменных извне.
3343
3022
  */
3344
3023
  expose() {
3345
- return this.dataExpose ?? {};
3024
+ var t;
3025
+ return (t = this.dataExpose) != null ? t : {};
3346
3026
  }
3347
3027
  /**
3348
3028
  * The rendering method for the setup method.
@@ -3362,9 +3042,10 @@ class Ve {
3362
3042
  * @param props property for the slot/ свойство для слота
3363
3043
  */
3364
3044
  initSlot(t, e, s = {}) {
3365
- if (this.slots && this.slots?.[t] && typeof this.slots[t] == "function") {
3366
- const n = this.slots[t](s);
3367
- return e && e.push(n), n;
3045
+ var n;
3046
+ if (this.slots && ((n = this.slots) != null && n[t]) && typeof this.slots[t] == "function") {
3047
+ const o = this.slots[t](s);
3048
+ return e && e.push(o), o;
3368
3049
  }
3369
3050
  }
3370
3051
  /**
@@ -3374,7 +3055,7 @@ class Ve {
3374
3055
  * @param classes list of classes for transformation/ список классов для преобразования
3375
3056
  */
3376
3057
  toClass(t) {
3377
- return C(t) ? t : Array.isArray(t) ? { [t.filter((s) => typeof s == "string" && s.trim() !== "").join(" ")]: !0 } : typeof t == "string" ? { [t]: !0 } : {};
3058
+ return F(t) ? t : Array.isArray(t) ? { [t.filter((s) => typeof s == "string" && s.trim() !== "").join(" ")]: !0 } : typeof t == "string" ? { [t]: !0 } : {};
3378
3059
  }
3379
3060
  /**
3380
3061
  * Converts the class name to standard for the current component.
@@ -3383,9 +3064,9 @@ class Ve {
3383
3064
  * @param classes list of classes/ список классов
3384
3065
  */
3385
3066
  toClassName(t) {
3386
- if (p(t)) {
3067
+ if (S(t)) {
3387
3068
  const e = {};
3388
- return f(t, (s, n) => {
3069
+ return $(t, (s, n) => {
3389
3070
  n.match(/\?\?/) ? e[n.replace(/\?\?/, this.getName())] = s : n.match(/\?/) ? e[n.replace(/\?/, this.getDesign())] = s : e[n] = s;
3390
3071
  }), e;
3391
3072
  }
@@ -3398,7 +3079,7 @@ class Ve {
3398
3079
  * @param name component name for transformation/ название компонента для преобразования
3399
3080
  */
3400
3081
  initName(t) {
3401
- return f(t.split(".", 2), (e) => Nt(e));
3082
+ return $(t.split(".", 2), (e) => Dt(e));
3402
3083
  }
3403
3084
  /**
3404
3085
  * Updating data about the class.
@@ -3406,16 +3087,17 @@ class Ve {
3406
3087
  * Обновление данных об классе.
3407
3088
  */
3408
3089
  updateClasses() {
3409
- const t = this.classesSub?.value, e = this.options?.classes?.value;
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;
3410
3092
  return t && e ? {
3411
3093
  ...t,
3412
3094
  ...e,
3413
3095
  main: {
3414
- ...this.toClass(t?.main),
3415
- ...this.toClass(e?.main),
3416
- ...this.toClass(this.attrs?.class)
3096
+ ...this.toClass(t == null ? void 0 : t.main),
3097
+ ...this.toClass(e == null ? void 0 : e.main),
3098
+ ...this.toClass((a = this.attrs) == null ? void 0 : a.class)
3417
3099
  }
3418
- } : e ?? {
3100
+ } : e != null ? e : {
3419
3101
  main: {}
3420
3102
  };
3421
3103
  }
@@ -3425,42 +3107,43 @@ class Ve {
3425
3107
  * Доработка полученного списка стилей.
3426
3108
  */
3427
3109
  updateStyles() {
3428
- const t = this.stylesSub?.value, e = this.options?.styles?.value;
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;
3429
3112
  return t && e ? {
3430
3113
  ...t,
3431
3114
  ...e
3432
- } : e ?? {};
3115
+ } : e != null ? e : {};
3433
3116
  }
3434
3117
  }
3435
- function L(i) {
3436
- return dt(i) ? i : y(i);
3118
+ function B(i) {
3119
+ return Q(i) ? i : p(i);
3437
3120
  }
3438
- class Ye {
3439
- item;
3440
- type;
3441
- code;
3442
- date;
3443
- datetime;
3444
- year = c(() => this.date.value && this.datetime.getYear());
3445
- month = c(() => this.date.value && this.datetime.getMonth());
3446
- day = c(() => this.date.value && this.datetime.getDay());
3447
- hour = c(() => this.date.value && this.datetime.getHour());
3448
- minute = c(() => this.date.value && this.datetime.getMinute());
3449
- second = c(() => this.date.value && this.datetime.getSecond());
3121
+ class hi {
3450
3122
  /**
3451
3123
  * Constructor
3452
3124
  * @param date date for processing. дата для обработки
3453
3125
  * @param type type of date format for output. тип формата даты вывода
3454
3126
  * @param code country and language code. код страны и языка
3455
3127
  */
3456
- constructor(t, e = "date", s = b.getLocation()) {
3457
- this.item = L(t), this.type = L(e), this.code = L(s), this.date = y(D(this.item.value)), this.datetime = new gt(
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(
3458
3141
  this.date.value,
3459
3142
  this.type.value,
3460
3143
  this.code.value
3461
- ), g(this.item, (n) => {
3462
- this.date.value = D(n);
3463
- }), g(this.type, (n) => this.datetime.setType(n)), g(this.code, (n) => this.datetime.setCode(n)), g(this.date, (n) => this.datetime.setDate(n)), this.datetime.setWatch(() => Vt(this.date));
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));
3464
3147
  }
3465
3148
  /**
3466
3149
  * Returns the basic data for the date.
@@ -3492,7 +3175,7 @@ class Ye {
3492
3175
  * Возвращает формат часов.
3493
3176
  */
3494
3177
  getHoursType() {
3495
- return c(() => this.date.value && this.datetime.getHoursType());
3178
+ return l(() => this.date.value && this.datetime.getHoursType());
3496
3179
  }
3497
3180
  /**
3498
3181
  * Returns the code of the first day of the week.
@@ -3500,7 +3183,7 @@ class Ye {
3500
3183
  * Возвращает код первого дня недели.
3501
3184
  */
3502
3185
  getFirstDayCode() {
3503
- return c(() => this.date.value && this.datetime.getFirstDayCode());
3186
+ return l(() => this.date.value && this.datetime.getFirstDayCode());
3504
3187
  }
3505
3188
  /**
3506
3189
  * The method returns the year of the specified date according to local time.
@@ -3558,7 +3241,7 @@ class Ye {
3558
3241
  * Возвращает последний день недели.
3559
3242
  */
3560
3243
  getMaxDay() {
3561
- return c(() => this.date.value && this.datetime.getMaxDay());
3244
+ return l(() => this.date.value && this.datetime.getMaxDay());
3562
3245
  }
3563
3246
  /**
3564
3247
  * Enables language-sensitive date and time formatting.
@@ -3568,7 +3251,7 @@ class Ye {
3568
3251
  * @param styleOptions the representation of the month. представление месяца
3569
3252
  */
3570
3253
  locale(t = this.type.value, e) {
3571
- return c(() => this.date.value && this.datetime.locale(t, e));
3254
+ return l(() => this.date.value && this.datetime.locale(t, e));
3572
3255
  }
3573
3256
  /**
3574
3257
  * Output of standard data.
@@ -3577,10 +3260,10 @@ class Ye {
3577
3260
  * @param timeZone add time zone. добавить временную зону
3578
3261
  */
3579
3262
  standard(t = !0) {
3580
- return c(() => this.date.value && this.datetime.standard(t));
3263
+ return l(() => this.date.value && this.datetime.standard(t));
3581
3264
  }
3582
3265
  }
3583
- class qe extends Ut {
3266
+ class di extends Ft {
3584
3267
  /**
3585
3268
  * Classes Constructor
3586
3269
  * @param elementSelector element/ элемент
@@ -3594,25 +3277,25 @@ class qe extends Ut {
3594
3277
  * значение, связанное с событием
3595
3278
  */
3596
3279
  constructor(t, e, s = ["click"], n, o, a) {
3597
- const u = L(t), l = L(e);
3280
+ const c = B(t), h = B(e);
3598
3281
  super(
3599
- u.value,
3282
+ c.value,
3600
3283
  s,
3601
3284
  n,
3602
3285
  o,
3603
3286
  a
3604
- ), l.value && this.setElementControl(l.value), g(u, (h) => this.setElement(h)), g(l, (h) => this.setElementControl(h));
3287
+ ), h.value && this.setElementControl(h.value), f(c, (d) => this.setElement(d)), f(h, (d) => this.setElementControl(d));
3605
3288
  }
3606
3289
  }
3607
- class Je {
3608
- code;
3609
- flag;
3290
+ class gi {
3610
3291
  /**
3611
3292
  * Constructor
3612
3293
  * @param code country and language code/ код страны и языка
3613
3294
  */
3614
- constructor(t = b.getLocation()) {
3615
- this.code = L(t), this.flag = new U(this.code.value), g(this.code, (e) => this.flag.setCode(e));
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));
3616
3299
  }
3617
3300
  /**
3618
3301
  * Obtaining a reactive object with the country code.
@@ -3629,7 +3312,7 @@ class Je {
3629
3312
  * @param code country code/ код страны
3630
3313
  */
3631
3314
  get(t = this.code.value) {
3632
- return c(() => this.flag.get(t));
3315
+ return l(() => this.flag.get(t));
3633
3316
  }
3634
3317
  /**
3635
3318
  * Getting a link to the flag.
@@ -3638,7 +3321,10 @@ class Je {
3638
3321
  * @param code country code/ код страны
3639
3322
  */
3640
3323
  getFlag(t = this.code.value) {
3641
- return c(() => this.flag.get(t)?.icon);
3324
+ return l(() => {
3325
+ var e;
3326
+ return (e = this.flag.get(t)) == null ? void 0 : e.icon;
3327
+ });
3642
3328
  }
3643
3329
  /**
3644
3330
  * Getting a list of countries by an array of codes.
@@ -3647,7 +3333,7 @@ class Je {
3647
3333
  * @param codes country code/ код страны
3648
3334
  */
3649
3335
  getList(t) {
3650
- return c(() => this.flag.getList(t));
3336
+ return l(() => this.flag.getList(t));
3651
3337
  }
3652
3338
  /**
3653
3339
  * Getting a list of countries by an array of codes in national language.
@@ -3656,15 +3342,10 @@ class Je {
3656
3342
  * @param codes country code/ код страны.
3657
3343
  */
3658
3344
  getNational(t) {
3659
- return c(() => this.flag.getNational(t));
3345
+ return l(() => this.flag.getNational(t));
3660
3346
  }
3661
3347
  }
3662
- class At {
3663
- static item = Z(b.get());
3664
- static country = c(() => this.item.value.country);
3665
- static language = c(() => this.item.value.language);
3666
- static standard = c(() => this.item.value.standard);
3667
- static firstDay = c(() => this.item.value.firstDay);
3348
+ const C = class C {
3668
3349
  /**
3669
3350
  * Information about the current country.
3670
3351
  *
@@ -3713,19 +3394,24 @@ class At {
3713
3394
  * код страны, полный вид язык-страна или один из них
3714
3395
  */
3715
3396
  static set(t) {
3716
- b.set(t, !0), this.item.value = b.getItem();
3397
+ w.set(t, !0), this.item.value = w.getItem();
3717
3398
  }
3718
- }
3719
- class Se {
3720
- location;
3721
- intl;
3399
+ };
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 {
3722
3403
  /**
3723
3404
  * Constructor
3724
3405
  * @param code country code, full form language-country or one of them/
3725
3406
  * код страны, полный вид язык-страна или один из них
3726
3407
  */
3727
3408
  constructor(t) {
3728
- this.location = L(t), this.intl = c(() => new W(this.location.value ?? At.getLanguage().value));
3409
+ u(this, "location");
3410
+ u(this, "intl");
3411
+ this.location = B(t), this.intl = l(() => {
3412
+ var e;
3413
+ return new P((e = this.location.value) != null ? e : K.getLanguage().value);
3414
+ });
3729
3415
  }
3730
3416
  /**
3731
3417
  * The consistent translation of language, region and script display names.
@@ -3736,7 +3422,7 @@ class Se {
3736
3422
  * объект с некоторыми или всеми из следующих свойств
3737
3423
  */
3738
3424
  display(t, e) {
3739
- return c(() => this.intl.value.display(m(t), e));
3425
+ return l(() => this.intl.value.display(m(t), e));
3740
3426
  }
3741
3427
  /**
3742
3428
  * Get display names of language.
@@ -3746,7 +3432,7 @@ class Se {
3746
3432
  * @param style the formatting style to use/ используемый стиль форматирования
3747
3433
  */
3748
3434
  languageName(t, e) {
3749
- return c(() => this.intl.value.languageName(m(t), e));
3435
+ return l(() => this.intl.value.languageName(m(t), e));
3750
3436
  }
3751
3437
  /**
3752
3438
  * Get display names of region.
@@ -3756,7 +3442,7 @@ class Se {
3756
3442
  * @param style the formatting style to use/ используемый стиль форматирования
3757
3443
  */
3758
3444
  countryName(t, e) {
3759
- return c(() => this.intl.value.countryName(m(t), e));
3445
+ return l(() => this.intl.value.countryName(m(t), e));
3760
3446
  }
3761
3447
  /**
3762
3448
  * In basic use without specifying a locale, a formatted string.
@@ -3768,7 +3454,7 @@ class Se {
3768
3454
  * или всеми свойствами
3769
3455
  */
3770
3456
  number(t, e) {
3771
- return c(() => this.intl.value.number(m(t), e));
3457
+ return l(() => this.intl.value.number(m(t), e));
3772
3458
  }
3773
3459
  /**
3774
3460
  * Decimal point symbol.
@@ -3776,7 +3462,7 @@ class Se {
3776
3462
  * Символ десятичной точки.
3777
3463
  */
3778
3464
  decimal() {
3779
- return c(() => this.intl.value.decimal());
3465
+ return l(() => this.intl.value.decimal());
3780
3466
  }
3781
3467
  /**
3782
3468
  * Currency formatting.
@@ -3788,7 +3474,7 @@ class Se {
3788
3474
  * @param numberOnly do not display the currency symbol/ не выводить значок валюты
3789
3475
  */
3790
3476
  currency(t, e, s = !1) {
3791
- return c(
3477
+ return l(
3792
3478
  () => this.intl.value.currency(
3793
3479
  m(t),
3794
3480
  m(e),
@@ -3806,7 +3492,7 @@ class Se {
3806
3492
  * в форматировании блока
3807
3493
  */
3808
3494
  unit(t, e) {
3809
- return c(() => this.intl.value.unit(m(t), e));
3495
+ return l(() => this.intl.value.unit(m(t), e));
3810
3496
  }
3811
3497
  /**
3812
3498
  * Number as a percentage.
@@ -3816,7 +3502,7 @@ class Se {
3816
3502
  * @param options an object with some or all properties/ объект с некоторыми или всеми свойствами
3817
3503
  */
3818
3504
  percent(t, e) {
3819
- return c(() => this.intl.value.percent(m(t), e));
3505
+ return l(() => this.intl.value.percent(m(t), e));
3820
3506
  }
3821
3507
  /**
3822
3508
  * Number as a percentage (unit).
@@ -3827,7 +3513,7 @@ class Se {
3827
3513
  * объект с некоторыми или всеми свойствами
3828
3514
  */
3829
3515
  percentBy100(t, e) {
3830
- return c(() => this.intl.value.percentBy100(m(t), e));
3516
+ return l(() => this.intl.value.percentBy100(m(t), e));
3831
3517
  }
3832
3518
  /**
3833
3519
  * Enables language-sensitive date and time formatting.
@@ -3839,7 +3525,7 @@ class Se {
3839
3525
  * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
3840
3526
  */
3841
3527
  date(t, e, s, n) {
3842
- return c(() => this.intl.value.date(m(t), e, s, n));
3528
+ return l(() => this.intl.value.date(m(t), e, s, n));
3843
3529
  }
3844
3530
  /**
3845
3531
  * Enables language-sensitive relative time formatting.
@@ -3851,7 +3537,7 @@ class Se {
3851
3537
  * @param todayValue current day/ текущий день
3852
3538
  */
3853
3539
  relative(t, e, s) {
3854
- return c(() => this.intl.value.relative(m(t), e, s));
3540
+ return l(() => this.intl.value.relative(m(t), e, s));
3855
3541
  }
3856
3542
  /**
3857
3543
  * Enables language-sensitive relative time formatting
@@ -3871,15 +3557,15 @@ class Se {
3871
3557
  * @param type type of data format/ тип формата data
3872
3558
  * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
3873
3559
  */
3874
- relativeLimit(t, e, s, n, o, a, u) {
3875
- return c(() => this.intl.value.relativeLimit(
3560
+ relativeLimit(t, e, s, n, o, a, c) {
3561
+ return l(() => this.intl.value.relativeLimit(
3876
3562
  m(t),
3877
3563
  e,
3878
3564
  s,
3879
3565
  n,
3880
3566
  o,
3881
3567
  a,
3882
- u
3568
+ c
3883
3569
  ));
3884
3570
  }
3885
3571
  /**
@@ -3890,7 +3576,7 @@ class Se {
3890
3576
  * @param style the representation of the month/ представление месяца
3891
3577
  */
3892
3578
  month(t, e) {
3893
- return c(() => this.intl.value.month(m(t), e));
3579
+ return l(() => this.intl.value.month(m(t), e));
3894
3580
  }
3895
3581
  /**
3896
3582
  * Array to list of months.
@@ -3899,7 +3585,7 @@ class Se {
3899
3585
  * @param style the representation of the month/ представление месяца
3900
3586
  */
3901
3587
  months(t) {
3902
- return c(() => this.intl.value.months(t));
3588
+ return l(() => this.intl.value.months(t));
3903
3589
  }
3904
3590
  /**
3905
3591
  * Returns names of days of the week.
@@ -3909,7 +3595,7 @@ class Se {
3909
3595
  * @param style the representation of the weekday/ представление о дне недели
3910
3596
  */
3911
3597
  weekday(t, e) {
3912
- return c(() => this.intl.value.weekday(m(t), e));
3598
+ return l(() => this.intl.value.weekday(m(t), e));
3913
3599
  }
3914
3600
  /**
3915
3601
  * An array of the list of names of the days of the week.
@@ -3918,7 +3604,7 @@ class Se {
3918
3604
  * @param style the representation of the weekday/ представление о дне недели
3919
3605
  */
3920
3606
  weekdays(t) {
3921
- return c(() => this.intl.value.weekdays(t));
3607
+ return l(() => this.intl.value.weekdays(t));
3922
3608
  }
3923
3609
  /**
3924
3610
  * Time.
@@ -3927,14 +3613,10 @@ class Se {
3927
3613
  * @param value the date to format/ дата для форматирования
3928
3614
  */
3929
3615
  time(t) {
3930
- return c(() => this.intl.value.time(m(t)));
3616
+ return l(() => this.intl.value.time(m(t)));
3931
3617
  }
3932
3618
  }
3933
- function xt(i, t = "ig", e = ":value") {
3934
- const s = i.replace(/([[\]\\^$.?*+()/])/g, "\\$1");
3935
- return new RegExp(e.replace(/:value/g, s), t);
3936
- }
3937
- class Bt {
3619
+ class kt {
3938
3620
  /**
3939
3621
  * Creates an instance of ListData for managing list data.
3940
3622
  *
@@ -3949,143 +3631,147 @@ class Bt {
3949
3631
  * @param lite Threshold for lite mode / порог для облегченного режима
3950
3632
  * @param parent Parent identifier / идентификатор родителя
3951
3633
  */
3952
- constructor(t, e, s, n, o, a, u, l, h) {
3953
- this.list = t, this.focus = e, this.highlight = s, this.highlightLengthStart = n, this.selected = o, this.keyValue = a, this.keyLabel = u, this.lite = l, this.parent = h, dt(t) && g(t, () => {
3634
+ constructor(t, e, s, n, o, a, c, h, d) {
3635
+ u(this, "subList", {});
3636
+ /**
3637
+ * Returns a list for forming a list.
3638
+ *
3639
+ * Возвращает список для формирования списка.
3640
+ */
3641
+ u(this, "data", l(
3642
+ () => $(
3643
+ m(this.list) || [],
3644
+ (t, e) => this.initItem(e, t)
3645
+ )
3646
+ ));
3647
+ /**
3648
+ * Returns a simplified list for quick loading.
3649
+ *
3650
+ * Возвращает упрощенный список для быстрой загрузки.
3651
+ */
3652
+ u(this, "liteData", l(() => {
3653
+ if (this.isLite()) {
3654
+ const t = [];
3655
+ for (const e of this.data.value) {
3656
+ const s = {
3657
+ parent: this.parent,
3658
+ index: e.index,
3659
+ type: e.type,
3660
+ label: e.label,
3661
+ description: e.description,
3662
+ value: e.value
3663
+ };
3664
+ "description" in e && (s.description = e.description), t.push(s);
3665
+ }
3666
+ return t;
3667
+ }
3668
+ return this.data.value;
3669
+ }));
3670
+ /**
3671
+ * Returns a list of records with all additional data.
3672
+ *
3673
+ * Возвращает список записей со всеми дополнительными данными.
3674
+ */
3675
+ u(this, "fullData", l(() => {
3676
+ const t = this.getFocus(), e = this.getHighlight(), s = this.getSelected();
3677
+ return $(
3678
+ this.data.value,
3679
+ (n) => ({
3680
+ ...n,
3681
+ focus: t === n.index,
3682
+ highlight: e,
3683
+ selected: j(n.index, s)
3684
+ })
3685
+ );
3686
+ }));
3687
+ /**
3688
+ * Returns a map of all entries.
3689
+ *
3690
+ * Возвращает карту всех записей.
3691
+ */
3692
+ u(this, "map", l(() => {
3693
+ const t = [];
3694
+ return this.data.value.forEach((e) => {
3695
+ switch (e.type) {
3696
+ case "item":
3697
+ t.push(e);
3698
+ break;
3699
+ case "group":
3700
+ case "menu":
3701
+ t.push(
3702
+ e,
3703
+ ...this.getSubList(e).map.value
3704
+ );
3705
+ break;
3706
+ }
3707
+ }), t;
3708
+ }));
3709
+ /** Returns a list consisting only of items/ Возвращает список, состоящий только из элементов. */
3710
+ u(this, "mapItems", l(() => this.map.value.filter((t) => t.type === "item")));
3711
+ /**
3712
+ * Returns a list consisting only of values for selection.
3713
+ *
3714
+ * Возвращает список, состоящий только из значений для выбора.
3715
+ */
3716
+ u(this, "items", l(() => this.map.value.filter(
3717
+ (t) => t.type === "item" || t.type === "group" || t.type === "menu"
3718
+ )));
3719
+ /**
3720
+ * Finds the first element that meets the search conditions.
3721
+ *
3722
+ * Находит первый элемент, соответствующий условиям поиска.
3723
+ */
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;
3732
+ }));
3733
+ /**
3734
+ * Is there a selected item.
3735
+ *
3736
+ * Есть ли выбранный элемент.
3737
+ */
3738
+ u(this, "isSelected", l(() => {
3739
+ const t = this.getSelected();
3740
+ return !!t && this.mapItems.value.findIndex((e) => j(e.index, t)) !== -1;
3741
+ }));
3742
+ /**
3743
+ * Returns a list of selected items on the map.
3744
+ *
3745
+ * Возвращает список выделенных элементов на карте.
3746
+ */
3747
+ u(this, "selectedList", l(() => {
3748
+ const t = this.getSelected();
3749
+ return t && this.isSelected.value ? this.mapItems.value.filter((e) => j(e.index, t)) : [];
3750
+ }));
3751
+ /**
3752
+ * Returns a list of selected items on the map.
3753
+ *
3754
+ * Возвращает список выделенных элементов на карте.
3755
+ */
3756
+ u(this, "selectedNames", l(() => nt(this.selectedList.value, "label")));
3757
+ /**
3758
+ * Returns a list of selected item values on the map.
3759
+ *
3760
+ * Возвращает список значений выделенных элементов на карте.
3761
+ */
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, () => {
3954
3764
  this.subList = {};
3955
3765
  });
3956
3766
  }
3957
- subList = {};
3958
- /**
3959
- * Returns a list for forming a list.
3960
- *
3961
- * Возвращает список для формирования списка.
3962
- */
3963
- data = c(
3964
- () => f(
3965
- m(this.list) || [],
3966
- (t, e) => this.initItem(e, t)
3967
- )
3968
- );
3969
- /**
3970
- * Returns a simplified list for quick loading.
3971
- *
3972
- * Возвращает упрощенный список для быстрой загрузки.
3973
- */
3974
- liteData = c(() => {
3975
- if (this.isLite()) {
3976
- const t = [];
3977
- for (const e of this.data.value) {
3978
- const s = {
3979
- parent: this.parent,
3980
- index: e.index,
3981
- type: e.type,
3982
- label: e.label,
3983
- description: e.description,
3984
- value: e.value
3985
- };
3986
- "description" in e && (s.description = e.description), t.push(s);
3987
- }
3988
- return t;
3989
- }
3990
- return this.data.value;
3991
- });
3992
- /**
3993
- * Returns a list of records with all additional data.
3994
- *
3995
- * Возвращает список записей со всеми дополнительными данными.
3996
- */
3997
- fullData = c(() => {
3998
- const t = this.getFocus(), e = this.getHighlight(), s = this.getSelected();
3999
- return f(
4000
- this.data.value,
4001
- (n) => ({
4002
- ...n,
4003
- focus: t === n.index,
4004
- highlight: e,
4005
- selected: j(n.index, s)
4006
- })
4007
- );
4008
- });
4009
- /**
4010
- * Returns a map of all entries.
4011
- *
4012
- * Возвращает карту всех записей.
4013
- */
4014
- map = c(() => {
4015
- const t = [];
4016
- return this.data.value.forEach((e) => {
4017
- switch (e.type) {
4018
- case "item":
4019
- t.push(e);
4020
- break;
4021
- case "group":
4022
- case "menu":
4023
- t.push(
4024
- e,
4025
- ...this.getSubList(e).map.value
4026
- );
4027
- break;
4028
- }
4029
- }), t;
4030
- });
4031
- /** Returns a list consisting only of items/ Возвращает список, состоящий только из элементов. */
4032
- mapItems = c(() => this.map.value.filter((t) => t.type === "item"));
4033
- /**
4034
- * Returns a list consisting only of values for selection.
4035
- *
4036
- * Возвращает список, состоящий только из значений для выбора.
4037
- */
4038
- items = c(() => this.map.value.filter(
4039
- (t) => t.type === "item" || t.type === "group" || t.type === "menu"
4040
- ));
4041
- /**
4042
- * Finds the first element that meets the search conditions.
4043
- *
4044
- * Находит первый элемент, соответствующий условиям поиска.
4045
- */
4046
- highlightFirstItem = c(() => {
4047
- const t = this.getHighlight(), e = t && t.length >= this.getHighlightLengthStart() && xt(t, "i");
4048
- return e ? this.map.value.findIndex(
4049
- (s) => s.label?.toString().match(e) || s.index?.toString().match(e) || s.search?.toString().match(e)
4050
- ) : -1;
4051
- });
4052
- /**
4053
- * Is there a selected item.
4054
- *
4055
- * Есть ли выбранный элемент.
4056
- */
4057
- isSelected = c(() => {
4058
- const t = this.getSelected();
4059
- return !!t && this.mapItems.value.findIndex((e) => j(e.index, t)) !== -1;
4060
- });
4061
- /**
4062
- * Returns a list of selected items on the map.
4063
- *
4064
- * Возвращает список выделенных элементов на карте.
4065
- */
4066
- selectedList = c(() => {
4067
- const t = this.getSelected();
4068
- return t && this.isSelected.value ? this.mapItems.value.filter((e) => j(e.index, t)) : [];
4069
- });
4070
- /**
4071
- * Returns a list of selected items on the map.
4072
- *
4073
- * Возвращает список выделенных элементов на карте.
4074
- */
4075
- selectedNames = c(() => ct(this.selectedList.value, "label"));
4076
- /**
4077
- * Returns a list of selected item values on the map.
4078
- *
4079
- * Возвращает список значений выделенных элементов на карте.
4080
- */
4081
- selectedValues = c(() => ct(this.selectedList.value, "value"));
4082
3767
  /**
4083
3768
  * Checks whether it is necessary to first display a simplified version.
4084
3769
  *
4085
3770
  * Проверяет, надо ли сначала вывести упрощенную версию.
4086
3771
  */
4087
3772
  isLite() {
4088
- return !!(this.lite?.value && this.data.value.length > this.lite.value);
3773
+ var t;
3774
+ return !!((t = this.lite) != null && t.value && this.data.value.length > this.lite.value);
4089
3775
  }
4090
3776
  /**
4091
3777
  * Checks if an element is in focus.
@@ -4134,7 +3820,8 @@ class Bt {
4134
3820
  * Возвращает значения в фокусе.
4135
3821
  */
4136
3822
  getFocus() {
4137
- return this.focus?.value;
3823
+ var t;
3824
+ return (t = this.focus) == null ? void 0 : t.value;
4138
3825
  }
4139
3826
  /**
4140
3827
  * Returns the selected value.
@@ -4142,7 +3829,8 @@ class Bt {
4142
3829
  * Возвращает выделенного значение.
4143
3830
  */
4144
3831
  getHighlight() {
4145
- return this.highlight?.value;
3832
+ var t;
3833
+ return (t = this.highlight) == null ? void 0 : t.value;
4146
3834
  }
4147
3835
  /**
4148
3836
  * Returns the minimum length for highlight to start.
@@ -4150,7 +3838,8 @@ class Bt {
4150
3838
  * Возвращает минимальную длину для начала выделения.
4151
3839
  */
4152
3840
  getHighlightLengthStart() {
4153
- return this.highlightLengthStart?.value ?? 2;
3841
+ var t, e;
3842
+ return (e = (t = this.highlightLengthStart) == null ? void 0 : t.value) != null ? e : 2;
4154
3843
  }
4155
3844
  /**
4156
3845
  * Returns the selected value.
@@ -4158,7 +3847,8 @@ class Bt {
4158
3847
  * Возвращает выбранное значение.
4159
3848
  */
4160
3849
  getSelected() {
4161
- return this.selected?.value;
3850
+ var t;
3851
+ return (t = this.selected) == null ? void 0 : t.value;
4162
3852
  }
4163
3853
  /**
4164
3854
  * Returns an item by its index.
@@ -4181,7 +3871,8 @@ class Bt {
4181
3871
  * @param key item key/ ключ элемента
4182
3872
  */
4183
3873
  getItemByKey(t) {
4184
- return this.map.value?.[t];
3874
+ var e;
3875
+ return (e = this.map.value) == null ? void 0 : e[t];
4185
3876
  }
4186
3877
  /**
4187
3878
  * Returns the first item with the specified parent.
@@ -4208,7 +3899,7 @@ class Bt {
4208
3899
  * @param item List item data/ данные элемента списка
4209
3900
  */
4210
3901
  getSubList(t) {
4211
- return t.index in this.subList || (this.subList[t.index] = new Bt(
3902
+ return t.index in this.subList || (this.subList[t.index] = new kt(
4212
3903
  t.value,
4213
3904
  this.focus,
4214
3905
  this.highlight,
@@ -4249,7 +3940,7 @@ class Bt {
4249
3940
  * @param label item label / метка элемента
4250
3941
  */
4251
3942
  getIndex(t, e, s, n) {
4252
- return t && !p(t) ? t : e && !p(e) ? e : s && n;
3943
+ return t && !S(t) ? t : e && !S(e) ? e : s && n;
4253
3944
  }
4254
3945
  /**
4255
3946
  * Creates an object of the record element.
@@ -4259,20 +3950,21 @@ class Bt {
4259
3950
  * @param item selected element/ выбранный элемент
4260
3951
  */
4261
3952
  initItem(t, e) {
4262
- if (C(e)) {
4263
- const s = e?.[this.keyValue?.value ?? "value"], n = e?.[this.keyLabel?.value ?? "label"] ?? s, o = this.getIndex(
4264
- e?.index,
4265
- s,
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(
3956
+ e == null ? void 0 : e.index,
3957
+ d,
4266
3958
  t,
4267
- n
3959
+ g
4268
3960
  );
4269
3961
  return {
4270
3962
  ...e,
4271
3963
  parent: this.parent,
4272
- index: o,
4273
- type: e?.type ?? "item",
4274
- label: n,
4275
- value: s
3964
+ index: D,
3965
+ type: (h = e == null ? void 0 : e.type) != null ? h : "item",
3966
+ label: g,
3967
+ value: d
4276
3968
  };
4277
3969
  }
4278
3970
  return {
@@ -4284,8 +3976,7 @@ class Bt {
4284
3976
  };
4285
3977
  }
4286
3978
  }
4287
- class Qe {
4288
- static router;
3979
+ class $e {
4289
3980
  /**
4290
3981
  * Get router instance.
4291
3982
  *
@@ -4322,116 +4013,111 @@ class Qe {
4322
4013
  this.router || this.set(t);
4323
4014
  }
4324
4015
  }
4325
- class Xe {
4326
- /**
4327
- * Reactive item.
4328
- *
4329
- * Реактивный элемент.
4330
- */
4331
- item = y();
4016
+ u($e, "router");
4017
+ class fi {
4332
4018
  /**
4333
4019
  * Constructor
4334
4020
  */
4335
4021
  constructor() {
4336
- Ct.is().then((t) => {
4022
+ /**
4023
+ * Reactive item.
4024
+ *
4025
+ * Реактивный элемент.
4026
+ */
4027
+ u(this, "item", p());
4028
+ /**
4029
+ * Checks whether the scroll width is defined.
4030
+ *
4031
+ * Проверяет, определена ли ширина скролла.
4032
+ */
4033
+ u(this, "is", l(() => this.item.value !== void 0));
4034
+ bt.is().then((t) => {
4337
4035
  this.item.value = t;
4338
4036
  });
4339
4037
  }
4340
- /**
4341
- * Checks whether the scroll width is defined.
4342
- *
4343
- * Проверяет, определена ли ширина скролла.
4344
- */
4345
- is = c(() => this.item.value !== void 0);
4346
4038
  }
4347
- const ke = (i) => typeof i == "string" ? { method: i } : i || {};
4039
+ const pe = (i) => typeof i == "string" ? { method: i } : i || {};
4348
4040
  let J;
4349
- function Me(i, t, e = !0, s, n, o) {
4350
- const a = y(), u = L(ke(t)), l = y(!1), h = y(!1);
4351
- let I = !0, N = 0;
4352
- const O = async () => {
4353
- if (I)
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 () => {
4045
+ if (g)
4354
4046
  return;
4355
- const S = m(i);
4356
- if ((!s || s.value) && S) {
4357
- l.value = !0, h.value = !0;
4358
- let T = {};
4359
- const pt = await V.request({
4360
- path: S,
4361
- ...u.value
4047
+ const k = m(i);
4048
+ if ((!s || s.value) && k) {
4049
+ h.value = !0, d.value = !0;
4050
+ let M = {};
4051
+ const ft = await V.request({
4052
+ path: k,
4053
+ ...c.value
4362
4054
  });
4363
- pt && (T = pt), n ? a.value = n(T) : a.value = T, l.value = !1;
4055
+ ft && (M = ft), n ? a.value = n(M) : a.value = M, h.value = !1;
4364
4056
  } else a.value !== void 0 && (a.value = void 0);
4365
- }, Rt = () => {
4366
- const S = [];
4367
- e && S.push(u), dt(i) && S.push(i), s && S.push(s), J && S.push(J), S.length > 0 && g(S, async () => {
4368
- l.value || await O();
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();
4369
4061
  });
4370
4062
  };
4371
4063
  return {
4372
4064
  get data() {
4373
- return I && (I = !1, O().then()), Rt(), o && (N++, ot(() => {
4374
- N--, N < 1 && (console.warn("useApiRef: unmounted"), a.value = void 0, I = !0, N = 0);
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);
4375
4067
  })), a;
4376
4068
  },
4377
4069
  get isStarting() {
4378
- return c(() => a.value === void 0);
4070
+ return l(() => a.value === void 0);
4379
4071
  },
4380
4072
  get loading() {
4381
- return c(() => l.value);
4073
+ return l(() => h.value);
4382
4074
  },
4383
4075
  get reading() {
4384
- return c(() => h.value);
4076
+ return l(() => d.value);
4385
4077
  },
4386
- reset: O
4078
+ reset: H
4387
4079
  };
4388
4080
  }
4389
- const Oe = (i) => {
4081
+ const yi = (i) => {
4390
4082
  J || (J = i);
4391
4083
  };
4392
- function De(i, t) {
4084
+ function ve(i, t) {
4393
4085
  const e = `broadcast--${i}`;
4394
- if (e in it)
4395
- return it[e];
4396
- const s = y(B(t)), n = new Xt(
4086
+ if (e in G)
4087
+ return G[e];
4088
+ const s = p(lt(t)), n = new _t(
4397
4089
  e,
4398
4090
  (o) => {
4399
4091
  s.value !== o.data.message && (s.value = o.data.message);
4400
4092
  }
4401
4093
  );
4402
- return g(s, (o) => n.post({ message: o })), it[e] = s, s;
4094
+ return f(s, (o) => n.post({ message: o })), G[e] = s, s;
4403
4095
  }
4404
- const it = {};
4405
- function Te(i, t, e) {
4406
- if (i in st)
4407
- return st[i];
4408
- const s = new at(i), n = De(
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(
4409
4101
  `__cookie:${i}`,
4410
4102
  s.get(t, e)
4411
4103
  );
4412
- return g(n, (o) => {
4104
+ return f(n, (o) => {
4413
4105
  s.set(o, e);
4414
- }), st[i] = n, n;
4106
+ }), tt[i] = n, n;
4415
4107
  }
4416
- const st = {};
4417
- function Ge() {
4418
- return new Se();
4108
+ const tt = {};
4109
+ function pi() {
4110
+ return new ye();
4419
4111
  }
4420
- function ti(i, t) {
4421
- if (i in rt)
4422
- return rt[i];
4423
- const e = Z(_.get(i, t));
4424
- return g(e, (s) => _.set(i, s)), _.addWatch(i, (s) => {
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) => {
4425
4117
  e.value = s;
4426
- }), rt[i] = e, e;
4427
- }
4428
- const rt = {};
4429
- let St = z(1e5, 9e5);
4430
- function Y(i, t) {
4431
- const e = M(i);
4432
- return e ? (F(e.id) || e.setAttribute("id", `id-${St++}`), t ? `#${e.id}${t}`.trim() : e.id) : `id-${St++}`;
4118
+ }), et[i] = e, e;
4433
4119
  }
4434
- const ei = () => {
4120
+ const et = {}, bi = () => {
4435
4121
  const i = {}, t = "IntersectionObserver" in window ? new IntersectionObserver(
4436
4122
  (s) => {
4437
4123
  s.forEach((n) => {
@@ -4443,9 +4129,10 @@ const ei = () => {
4443
4129
  rootMargin: "128px 0px"
4444
4130
  }
4445
4131
  ) : void 0, e = (s) => {
4132
+ var n;
4446
4133
  if (s) {
4447
- const n = Y(s);
4448
- n in i && (t?.unobserve(s), i[n]?.stopWatch(), delete i[n]);
4134
+ const o = Y(s);
4135
+ o in i && (t == null || t.unobserve(s), (n = i[o]) == null || n.stopWatch(), delete i[o]);
4449
4136
  }
4450
4137
  };
4451
4138
  return {
@@ -4459,10 +4146,10 @@ const ei = () => {
4459
4146
  addLazyItem(s) {
4460
4147
  const n = Z(!t);
4461
4148
  if (t) {
4462
- const o = g(s, (a, u) => {
4463
- if (u && t.unobserve(u), s.value) {
4464
- const l = Y(s.value);
4465
- i[l] = {
4149
+ const o = f(s, (a, c) => {
4150
+ if (c && t.unobserve(c), s.value) {
4151
+ const h = Y(s.value);
4152
+ i[h] = {
4466
4153
  status: n,
4467
4154
  stopWatch: o
4468
4155
  }, t.observe(s.value);
@@ -4483,82 +4170,91 @@ const ei = () => {
4483
4170
  *
4484
4171
  * Удаление всех элементов из отслеживания.
4485
4172
  */
4486
- disconnectLazy: () => t?.disconnect()
4173
+ disconnectLazy: () => t == null ? void 0 : t.disconnect()
4487
4174
  };
4488
4175
  };
4489
- function ii() {
4490
- const i = Z($t.is());
4491
- return $t.registrationEvent(({ detail: t }) => {
4176
+ function Si() {
4177
+ const i = Z(mt.is());
4178
+ return mt.registrationEvent(({ detail: t }) => {
4492
4179
  i.value = t.loading;
4493
4180
  }), i;
4494
4181
  }
4495
- const Ft = [], Le = z(1e5, 999999);
4496
- function Ce(i, t = !0, e = !1, s = !0) {
4182
+ const Ct = [], be = z(1e5, 999999);
4183
+ function Se(i, t = !0, e = !1, s = !0) {
4497
4184
  let n;
4498
- const o = `__execute_use${Le}::${Y()}`, a = (...u) => {
4185
+ const o = `__execute_use${be}::${Y()}`, a = (...c) => {
4499
4186
  if (!e && s) {
4500
- const l = Yt(o, void 0);
4501
- if (l)
4502
- return l;
4187
+ const h = jt(o, void 0);
4188
+ if (h)
4189
+ return h;
4503
4190
  {
4504
- let h = Object.freeze(i(...u));
4505
- return qt(o, h), t && ot(() => {
4506
- h = void 0;
4507
- }), h;
4191
+ let d = Object.freeze(i(...c));
4192
+ return Ut(o, d), t && rt(() => {
4193
+ d = void 0;
4194
+ }), d;
4508
4195
  }
4509
- } else n || (n = Object.freeze(i(...u)), t && ot(() => {
4196
+ } else n || (n = Object.freeze(i(...c)), t && rt(() => {
4510
4197
  n = void 0;
4511
4198
  }));
4512
4199
  return n;
4513
4200
  };
4514
- return e && Ft.push(a), a;
4201
+ return e && Ct.push(a), a;
4515
4202
  }
4516
- function si() {
4517
- Ft.forEach((i) => i());
4203
+ function wi() {
4204
+ Ct.forEach((i) => i());
4518
4205
  }
4519
- const Ie = Ce(() => {
4520
- const i = new ge(), t = y(i.getTitle()), e = y(i.getKeywords()), s = y(i.getDescription()), n = y(i.getImage()), o = y(i.getCanonical()), a = y(i.getRobots()), u = y(i.getAuthor()), l = y(i.getSiteName()), h = () => i.html();
4521
- return g(t, () => {
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, () => {
4522
4209
  i.setTitle(t.value);
4523
- }), g(e, () => {
4210
+ }), f(e, () => {
4524
4211
  i.setKeywords(e.value);
4525
- }), g(s, () => {
4212
+ }), f(s, () => {
4526
4213
  i.setDescription(s.value);
4527
- }), g(n, () => {
4214
+ }), f(n, () => {
4528
4215
  i.setImage(n.value);
4529
- }), g(o, () => {
4216
+ }), f(o, () => {
4530
4217
  i.setCanonical(o.value);
4531
- }), g(a, () => {
4218
+ }), f(a, () => {
4532
4219
  i.setRobots(a.value);
4533
- }), g(u, () => {
4534
- i.setAuthor(u.value);
4535
- }), g(l, () => {
4536
- i.setSiteName(l.value);
4220
+ }), f(c, () => {
4221
+ i.setAuthor(c.value);
4222
+ }), f(h, () => {
4223
+ i.setSiteName(h.value);
4537
4224
  }), {
4538
4225
  meta: i,
4539
4226
  title: t,
4540
4227
  keyword: e,
4541
4228
  description: s,
4542
- author: u,
4229
+ author: c,
4543
4230
  image: n,
4544
4231
  canonical: o,
4545
4232
  robots: a,
4546
- siteName: l,
4547
- getHtmlMeta: h
4233
+ siteName: h,
4234
+ getHtmlMeta: d
4548
4235
  };
4549
- }, !1, !0), ri = () => Ie();
4550
- function ni(i, t) {
4551
- if (i in nt)
4552
- return nt[i];
4553
- const e = new X(i, !0), s = y(e.get(t));
4554
- return g(s, (n) => e.set(n)), nt[i] = s, s;
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) {
4245
+ if (i in st)
4246
+ 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;
4555
4251
  }
4556
- const nt = {};
4557
- function Ne(i) {
4252
+ const st = {};
4253
+ function De(i) {
4558
4254
  const t = Z(q.getListSync(i, !0)), e = async () => {
4559
4255
  t.value = { ...await q.getList(i) };
4560
4256
  };
4561
- g(At.getLanguage(), e);
4257
+ f(K.getLanguage(), e);
4562
4258
  for (const s in t.value)
4563
4259
  if (t.value[s] === s || t.value[s] === " ") {
4564
4260
  e().then();
@@ -4566,408 +4262,204 @@ function Ne(i) {
4566
4262
  }
4567
4263
  return t;
4568
4264
  }
4569
- const oi = (i) => Ne(i);
4570
- function ai(i) {
4571
- return ht(i) ? i.trim() : mt(i) && i.findIndex((t) => p(t)) === -1 ? i.join(",") : p(i) ? JSON.stringify(i) : i === !0 ? "1" : i === !1 ? "0" : i?.toString() ?? "";
4572
- }
4573
- function Ae(i, t) {
4574
- return Array(t).fill(i);
4575
- }
4576
- function ci(i) {
4577
- if (d())
4578
- return document.querySelector(i) ?? void 0;
4579
- }
4580
- function ui(i) {
4581
- if (d())
4582
- return document.querySelectorAll(i);
4583
- }
4584
- function li(i) {
4585
- i.preventDefault(), i.stopPropagation();
4586
- }
4587
- function xe(i, t, e) {
4588
- const s = () => {
4589
- i(), t?.() ? xe(i, t, e) : e?.();
4590
- };
4591
- d() ? requestAnimationFrame(s) : s();
4592
- }
4593
- function hi(i) {
4594
- const t = {}, e = M(i);
4595
- if (e)
4596
- for (const s of e.attributes)
4597
- t[s.name] = (s?.value || s?.textContent) ?? void 0;
4598
- return t;
4599
- }
4600
- async function di(i) {
4601
- return i?.clipboardData?.getData("text") ?? (await navigator.clipboard.readText() || "");
4602
- }
4603
- function Be(i, t) {
4604
- const e = t.split(".", 2), s = e[0];
4605
- return s && i?.[s] && C(i[s]) && e?.[1] ? Be(i[s], e[1]) : (s && i?.[s]) ?? "";
4606
- }
4607
- function gi(i) {
4608
- return i?.key ?? i?.code ?? i?.keyCode?.toString();
4609
- }
4610
- function Et(i) {
4611
- return f(i, (t) => t.length);
4612
- }
4613
- function fi(i) {
4614
- return Math.max(...Et(i));
4615
- }
4616
- function mi(i) {
4617
- return Math.min(...Et(i));
4618
- }
4619
- function Fe(i) {
4620
- return i?.clientX || i?.targetTouches?.[0]?.clientX || i?.touches?.[0]?.clientX || 0;
4621
- }
4622
- function Ee(i) {
4623
- return i?.clientY || i?.targetTouches?.[0]?.clientY || i?.touches?.[0]?.clientY || 0;
4624
- }
4625
- function yi(i) {
4626
- return {
4627
- x: Fe(i),
4628
- y: Ee(i)
4629
- };
4630
- }
4631
- function pi(i, t) {
4632
- const e = {};
4633
- return t.forEach((s) => {
4634
- s in i && i[s] !== void 0 && (e[s] = i[s]);
4635
- }), e;
4636
- }
4637
- function $i(i, t = void 0) {
4638
- const e = {};
4639
- return f(i, (s, n) => {
4640
- s !== t && (e[n] = s);
4641
- }), e;
4642
- }
4643
- function vi(i) {
4644
- return C(i) ? i : {};
4645
- }
4646
- function Re(i, t) {
4647
- return Ae(i, t).join("");
4648
- }
4649
- function bi(i, t, e = "#", s = 2, n = 12) {
4650
- const o = z(i, t), a = [];
4651
- for (let u = 0; u < o; u++)
4652
- a.push(Re(e, z(s, n)));
4653
- return a.join(" ");
4654
- }
4655
- function wi(i, t) {
4656
- const e = i ?? 0;
4657
- return t > e ? 100 / (t - e) : 0;
4658
- }
4659
- function Si(i, t) {
4660
- const e = i ?? 0;
4661
- return t > e ? (t - e) / 100 : 0;
4662
- }
4663
- const kt = 0;
4664
- function ki(i, t, e) {
4665
- const s = t?.closest(i);
4666
- if (t && s && s.scrollHeight !== s.offsetHeight)
4667
- if (e) {
4668
- const n = e.getBoundingClientRect(), o = s.getBoundingClientRect(), a = t.getBoundingClientRect();
4669
- 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);
4670
- } else s.scrollTop > t.offsetTop ? s.scrollTop = t.offsetTop - kt : s.scrollTop + s.offsetHeight < t.offsetTop + t.offsetHeight && (s.scrollTop = t.offsetTop + t.offsetHeight - s.offsetHeight + kt);
4671
- }
4672
- function Di(i, t) {
4673
- return i.indexOf(t) !== -1;
4674
- }
4675
- async function Li() {
4676
- if (d()) {
4677
- const i = await Ct.get();
4678
- document.body.style.setProperty("--sys-scrollbar-offset", `${i}px`);
4679
- }
4680
- }
4681
- function Ci(i, t) {
4682
- const e = {};
4683
- return p(i) && p(t) && f(i, (s, n) => {
4684
- n in t && (e[n] = s);
4685
- }), e;
4686
- }
4687
- function Ii(i, t) {
4688
- let e = Object.keys(i).length !== Object.keys(t).length;
4689
- return e || f(i, (s, n) => {
4690
- s !== t?.[n] && (e = !0);
4691
- }), e;
4692
- }
4693
- function Ni(i) {
4694
- switch (typeof i) {
4695
- case "number":
4696
- return !0;
4697
- case "string":
4698
- return !!i.match(/^([0-9]+|[0-9]+\.[0-9]+)$/);
4699
- default:
4700
- return !1;
4701
- }
4702
- }
4703
- function Ai(i, t) {
4704
- const e = Math.floor(t);
4705
- return i >= e && i < e + 1;
4706
- }
4707
- function xi(i, t) {
4708
- return Array.isArray(i) ? i.every((e) => j(e, t)) : j(i, t);
4265
+ const Ci = (i) => De(i);
4266
+ function Ii(i, t = () => {
4267
+ }, e, s) {
4268
+ return l(
4269
+ () => {
4270
+ if (K.get().value && (e === void 0 || e())) {
4271
+ const n = i();
4272
+ if (n !== void 0)
4273
+ return n;
4274
+ }
4275
+ return lt(t);
4276
+ },
4277
+ s
4278
+ );
4709
4279
  }
4710
- function We(i, t = {}, e = "value", s = !1) {
4280
+ function Le(i, t = {}, e = "value", s = !1) {
4711
4281
  const n = typeof t == "string", o = n ? t : e, a = n ? {} : t;
4712
- return i ? i && C(i) && (o in i || s) ? lt(a, i) : lt(a, { [o]: i }) : n ? {} : { ...a };
4282
+ return i ? i && F(i) && (o in i || s) ? at(a, i) : at(a, { [o]: i }) : n ? {} : { ...a };
4713
4283
  }
4714
- function Bi(i, t = {}, e = "value") {
4715
- return c(() => We(m(i), m(t), e));
4284
+ function Ni(i, t = {}, e = "value") {
4285
+ return l(() => Le(m(i), m(t), e));
4716
4286
  }
4717
- const Fi = (i, t) => {
4718
- const e = y();
4287
+ const Ai = (i, t) => {
4288
+ const e = p();
4719
4289
  let s = !0;
4720
4290
  const n = () => {
4721
- s && (Jt(async () => {
4291
+ s && (zt(async () => {
4722
4292
  const o = m(await i());
4723
4293
  o !== t && (e.value = o);
4724
4294
  }), s = !1);
4725
4295
  };
4726
- return c(() => (n(), e.value));
4296
+ return l(() => (n(), e.value));
4727
4297
  };
4728
- function Ei(i, t) {
4298
+ function Bi(i, t) {
4729
4299
  i.value !== t && (i.value = t);
4730
4300
  }
4731
- function Ri(i) {
4301
+ function Fi(i) {
4732
4302
  let t;
4733
- return c(() => (t || (t = i()), t.value));
4734
- }
4735
- function Pe(i) {
4736
- return [...new Set(i)];
4737
- }
4738
- function P(i, t, e = !0) {
4739
- const s = H(i);
4740
- return p(i) && p(t) && f(
4741
- t,
4742
- (n, o) => {
4743
- const a = i?.[o];
4744
- p(a) && p(n) ? e && Array.isArray(a) && Array.isArray(n) ? s[o] = H(Pe([...a, ...n])) : s[o] = P(
4745
- Array.isArray(a) ? { ...a } : a,
4746
- n,
4747
- e
4748
- ) : s[o] = p(n) ? H(n) : n;
4749
- }
4750
- ), s;
4751
- }
4752
- function Wi(i, t) {
4753
- let e = i;
4754
- return f(t, (s, n) => {
4755
- e = e.replace(xt(`[${n}]`), B(s));
4756
- }), e;
4757
- }
4758
- function Pi(i) {
4759
- const t = k(i);
4760
- if (t > 0) {
4761
- const e = String(Math.floor(t / 60)).padStart(2, "0"), s = String(t % 60).padStart(2, "0");
4762
- return `${e}:${s}`;
4763
- }
4764
- return "00:00";
4765
- }
4766
- function ji(i, t, {
4767
- multiple: e = !1,
4768
- maxlength: s = 0,
4769
- alwaysChange: n = !0,
4770
- notEmpty: o = !1
4771
- }) {
4772
- if (e) {
4773
- if (mt(i)) {
4774
- const a = i.indexOf(t), u = [...i];
4775
- return a !== -1 ? (!o || u.length > 1) && u.splice(a, 1) : (!s || i.length < s) && u.push(t), u;
4776
- }
4777
- return i === t ? [] : i ? [i, t] : [t];
4778
- }
4779
- return n || i !== t ? t : i;
4780
- }
4781
- function Hi(i, t, e) {
4782
- if (p(i) && p(t)) {
4783
- if (e) {
4784
- let s = {}, n = !1;
4785
- return f(i, (o, a) => {
4786
- !n && (e === a || e === o) ? (n = !0, s = P(s, t)) : n ? s = P(s, { [a]: o }) : s[a] = p(o) ? H(o) : o;
4787
- }), n ? s : P(i, t);
4788
- }
4789
- if (p(t))
4790
- return P(i, t);
4791
- }
4792
- return H(i);
4793
- }
4794
- function Ui(i) {
4795
- return Nt(i).replace(/^([a-z])/, (t) => `${t.toUpperCase()}`);
4796
- }
4797
- function _i(i) {
4798
- return i.toString().trim().replace(/[^\w- ]+/g, "").replace(/ +/g, "-").replace(new RegExp("(?<=[A-Z])([A-Z])", "g"), (t) => `${t.toLowerCase()}`).replace(/^[A-Z]/, (t) => t.toLowerCase()).replace(new RegExp("(?<=[\\w ])[A-Z]", "g"), (t) => `-${t.toLowerCase()}`).replace(/[A-Z]/g, (t) => t.toLowerCase());
4799
- }
4800
- function zi(i, t, e, s) {
4801
- const n = k(i), o = k(t);
4802
- return t && o < n ? `${Dt(o, e, s)}+` : Dt(n, e, s);
4803
- }
4804
- const Dt = (i, t, e) => t ? new W(e).number(i) : i;
4805
- function je(i, t) {
4806
- return 1 / i * t;
4807
- }
4808
- function Zi(i, t) {
4809
- return je(i, t) * 100;
4810
- }
4811
- async function Ki(i) {
4812
- if (d())
4813
- try {
4814
- await navigator.clipboard.writeText(i);
4815
- } catch {
4816
- document?.execCommand(i);
4817
- }
4303
+ return l(() => (t || (t = i()), t.value));
4818
4304
  }
4819
4305
  export {
4820
4306
  V as Api,
4821
- qi as ApiMethodItem,
4822
- Xt as BroadcastMessage,
4823
- Tt as Cache,
4824
- Ot as CacheItem,
4825
- vt as CacheStatic,
4826
- at as Cookie,
4827
- te as CookieBlock,
4828
- X as DataStorage,
4829
- gt as Datetime,
4830
- Ye as DatetimeRef,
4831
- pe as DesignAbstract,
4832
- Ze as DesignAsyncAbstract,
4833
- ye as DesignChanged,
4834
- Ke as DesignComp,
4835
- It as DesignComponents,
4836
- Ve as DesignConstructorAbstract,
4837
- Ut as EventItem,
4838
- qe as EventRef,
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,
4320
+ 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,
4839
4330
  r as GEO_FLAG_ICON_NAME,
4840
- b as Geo,
4841
- U as GeoFlag,
4842
- Je as GeoFlagRef,
4843
- W as GeoIntl,
4844
- Se as GeoIntlRef,
4845
- wt as GeoPhone,
4846
- At as GeoRef,
4847
- ze as Global,
4848
- _ as Hash,
4849
- Ji as Icons,
4850
- Bt as ListDataRef,
4851
- $t as Loading,
4852
- ge as Meta,
4853
- ft as MetaManager,
4854
- he as MetaOg,
4855
- ce as MetaOpenGraphAge,
4856
- oe as MetaOpenGraphAvailability,
4857
- ae as MetaOpenGraphCondition,
4858
- ue as MetaOpenGraphGender,
4859
- $ as MetaOpenGraphTag,
4860
- ne as MetaOpenGraphType,
4861
- re as MetaRobots,
4862
- w as MetaTag,
4863
- de as MetaTwitter,
4864
- le as MetaTwitterCard,
4865
- v as MetaTwitterTag,
4866
- Qe as RouterItemRef,
4867
- Ct as ScrollbarWidth,
4868
- Xe as ScrollbarWidthRef,
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,
4342
+ mt as Loading,
4343
+ Gt as Meta,
4344
+ 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,
4353
+ 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,
4869
4360
  q as Translate,
4870
- ai as anyToString,
4871
- me as applyTemplate,
4872
- Ae as arrFill,
4873
- H as copyObject,
4874
- ut as createElement,
4875
- ci as domQuerySelector,
4876
- ui as domQuerySelectorAll,
4877
- se as encodeAttribute,
4878
- li as eventStopPropagation,
4879
- B as executeFunction,
4880
- Qi as executePromise,
4881
- Ce as executeUse,
4882
- si as executeUseGlobalInit,
4883
- f as forEach,
4884
- xe as frame,
4885
- hi as getAttributes,
4886
- We as getBind,
4887
- Bi as getBindRef,
4888
- $e as getClassName,
4889
- di as getClipboardData,
4890
- ct as getColumn,
4891
- Fi as getComputedAsync,
4892
- M as getElement,
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,
4371
+ 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,
4893
4385
  Y as getElementId,
4894
- ee as getElementItem,
4895
- Xi as getElementOrWindow,
4896
- xt as getExp,
4897
- ve as getIndexForRender,
4898
- Be as getItemByPath,
4899
- gi as getKey,
4900
- Et as getLengthOfAllArray,
4901
- fi as getMaxLengthAllArray,
4902
- mi as getMinLengthAllArray,
4903
- yi as getMouseClient,
4904
- Fe as getMouseClientX,
4905
- Ee as getMouseClientY,
4906
- pi as getObjectByKeys,
4907
- $i as getObjectNoUndefined,
4908
- vi as getObjectOrNone,
4909
- bi as getRandomText,
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,
4910
4402
  m as getRef,
4911
- Ht as getRequestString,
4912
- wi as getStepPercent,
4913
- Si as getStepValue,
4914
- ki as goScroll,
4915
- Di as inArray,
4916
- Li as initScrollbarOffset,
4917
- Ci as intersectKey,
4918
- mt as isArray,
4919
- Ii as isDifferent,
4920
- d as isDomRuntime,
4921
- F as isFilled,
4922
- Ni as isFloat,
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,
4410
+ gt as isArray,
4411
+ Xe as isDifferent,
4412
+ y as isDomRuntime,
4413
+ _ as isFilled,
4414
+ Me as isFloat,
4923
4415
  Mi as isFunction,
4924
4416
  Oi as isInDom,
4925
- Ai as isIntegerBetween,
4926
- jt as isNull,
4417
+ Oe as isIntegerBetween,
4418
+ At as isNull,
4927
4419
  Ti as isNumber,
4928
- p as isObject,
4929
- C as isObjectNotArray,
4420
+ S as isObject,
4421
+ F as isObjectNotArray,
4930
4422
  j as isSelected,
4931
- xi as isSelectedByList,
4932
- ht as isString,
4423
+ Te as isSelectedByList,
4424
+ ct as isString,
4933
4425
  Gi as isWindow,
4934
4426
  z as random,
4935
- be as render,
4936
- P as replaceRecursive,
4937
- Wi as replaceTemplate,
4938
- Pi as secondToTime,
4939
- Oe as setApiRefGlobalConditions,
4940
- ie as setElementItem,
4941
- Ei as setRef,
4942
- ji as setValues,
4943
- Hi as splice,
4944
- Re as strFill,
4945
- oi as t,
4946
- R as toArray,
4947
- lt as toBind,
4948
- we as toBinds,
4949
- Nt as toCamelCase,
4950
- Ui as toCamelCaseFirst,
4951
- Ri as toComputed,
4952
- D as toDate,
4953
- _i as toKebabCase,
4954
- k as toNumber,
4955
- zi as toNumberByMax,
4956
- je as toPercent,
4957
- Zi as toPercentBy100,
4958
- L as toRefItem,
4959
- Lt as transformation,
4960
- Pe as uniqueArray,
4961
- Me as useApiRef,
4962
- De as useBroadcastValueRef,
4963
- Te as useCookieRef,
4964
- Ge as useGeoIntlRef,
4965
- ti as useHashRef,
4966
- ei as useLazyRef,
4967
- ii as useLoadingRef,
4968
- ri as useMeta,
4969
- ni as useSessionRef,
4970
- Qt as useStorageRef,
4971
- Ne as useTranslateRef,
4972
- Ki as writeClipboardData
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,
4444
+ A as toDate,
4445
+ ri as toKebabCase,
4446
+ N as toNumber,
4447
+ ni as toNumberByMax,
4448
+ ce as toPercent,
4449
+ oi as toPercentBy100,
4450
+ 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
4973
4465
  };