@dxtmisha/functional-basic 0.8.5 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -790
- package/dist/library.d.ts +20 -0
- package/dist/library.js +299 -287
- package/package.json +28 -11
package/dist/library.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var c = (i, t, e) =>
|
|
4
|
-
import { geo as
|
|
1
|
+
var jt = Object.defineProperty;
|
|
2
|
+
var Ut = (i, t, e) => t in i ? jt(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var c = (i, t, e) => Ut(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { geo as Ht } from "@dxtmisha/media";
|
|
5
5
|
function C(i, t) {
|
|
6
6
|
return t ? Object.assign({}, i, t) : Object.assign({}, i);
|
|
7
7
|
}
|
|
8
8
|
function f(i) {
|
|
9
9
|
return !!(i && typeof i == "object");
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function d(i, t, e) {
|
|
12
12
|
if (f(i)) {
|
|
13
13
|
const s = [];
|
|
14
14
|
return i instanceof Map ? i.forEach((r, o) => s.push(t(r, o, i))) : Array.isArray(i) ? i.forEach((r, o) => s.push(t(r, o, i))) : Object.entries(i).forEach(
|
|
@@ -18,7 +18,7 @@ function g(i, t, e) {
|
|
|
18
18
|
return [];
|
|
19
19
|
}
|
|
20
20
|
function It(i, t = "=", e = "&") {
|
|
21
|
-
return
|
|
21
|
+
return d(
|
|
22
22
|
i,
|
|
23
23
|
(s, r) => `${r}${t}${encodeURIComponent(String(s).trim())}`
|
|
24
24
|
).sort().join(e);
|
|
@@ -29,7 +29,7 @@ function at(i) {
|
|
|
29
29
|
function J(i) {
|
|
30
30
|
return i == null;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function w(i, t) {
|
|
33
33
|
if (i) {
|
|
34
34
|
if (t && i === "0")
|
|
35
35
|
return !0;
|
|
@@ -57,7 +57,7 @@ function v(i, t) {
|
|
|
57
57
|
function A(i) {
|
|
58
58
|
return f(i) && !Array.isArray(i);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function R(i) {
|
|
61
61
|
return typeof i == "string";
|
|
62
62
|
}
|
|
63
63
|
function U(i) {
|
|
@@ -66,7 +66,7 @@ function U(i) {
|
|
|
66
66
|
function l() {
|
|
67
67
|
return typeof window != "undefined" && !!window.document;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function gt(i) {
|
|
70
70
|
switch (typeof i) {
|
|
71
71
|
case "number":
|
|
72
72
|
return !0;
|
|
@@ -85,7 +85,7 @@ function k(i) {
|
|
|
85
85
|
return t.match(/( [0-9]{3}[ ,.]|[0-9] [0-9])/ig) ? t = t.replace(/ /ig, "").replace(/,/ig, ".") : t.match(/,[0-9]{3}[,.]/ig) ? t = t.replace(/,/ig, "") : t.match(/[.][0-9]{3}[,.]/ig) ? t = t.replace(/[.]/ig, "").replace(/,/ig, ".") : t = t.replace(/,/ig, "."), parseFloat(t);
|
|
86
86
|
}
|
|
87
87
|
function rt(i, t) {
|
|
88
|
-
return J(i) ? !1 : Array.isArray(t) ? t.includes(i) :
|
|
88
|
+
return J(i) ? !1 : Array.isArray(t) ? t.includes(i) : gt(i) && gt(t) ? k(i) === k(t) : i === t;
|
|
89
89
|
}
|
|
90
90
|
function ct(i) {
|
|
91
91
|
return i instanceof Function || typeof i == "function";
|
|
@@ -97,7 +97,7 @@ function nt() {
|
|
|
97
97
|
return location.href.startsWith("data:");
|
|
98
98
|
}
|
|
99
99
|
const tt = {};
|
|
100
|
-
let
|
|
100
|
+
let dt = "ui-storage";
|
|
101
101
|
class T {
|
|
102
102
|
/**
|
|
103
103
|
* Constructor
|
|
@@ -120,7 +120,7 @@ class T {
|
|
|
120
120
|
* @param newPrefix new prefix/ новый префикс
|
|
121
121
|
*/
|
|
122
122
|
static setPrefix(t) {
|
|
123
|
-
|
|
123
|
+
dt = t;
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
126
|
* Getting data from local storage.
|
|
@@ -192,7 +192,7 @@ class T {
|
|
|
192
192
|
* Получение имени ключа в хранилище.
|
|
193
193
|
*/
|
|
194
194
|
getIndex() {
|
|
195
|
-
return `${
|
|
195
|
+
return `${dt}__${this.name}`;
|
|
196
196
|
}
|
|
197
197
|
/**
|
|
198
198
|
* Getting data from storage.
|
|
@@ -219,7 +219,7 @@ class T {
|
|
|
219
219
|
return t ? (this.value = t.value, this.age = t.age) : (this.value = void 0, this.age = void 0), this;
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
const
|
|
222
|
+
const zt = "geo-code", b = class b {
|
|
223
223
|
/**
|
|
224
224
|
* Information about the current country.
|
|
225
225
|
*
|
|
@@ -284,7 +284,7 @@ const Ht = "geo-code", b = class b {
|
|
|
284
284
|
* Возвращает полный список стран.
|
|
285
285
|
*/
|
|
286
286
|
static getList() {
|
|
287
|
-
return
|
|
287
|
+
return Ht;
|
|
288
288
|
}
|
|
289
289
|
/**
|
|
290
290
|
* Returns the data about the country by its full code.
|
|
@@ -441,7 +441,7 @@ const Ht = "geo-code", b = class b {
|
|
|
441
441
|
});
|
|
442
442
|
}
|
|
443
443
|
};
|
|
444
|
-
c(b, "storage", new T(
|
|
444
|
+
c(b, "storage", new T(zt)), c(b, "location"), c(b, "item"), c(b, "language"), c(b, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), b.location = b.findLocation(), b.language = b.findLanguage(b.location), b.item = b.getByCode(b.location);
|
|
445
445
|
let p = b;
|
|
446
446
|
function Ft(i) {
|
|
447
447
|
return l() && i === window;
|
|
@@ -449,12 +449,12 @@ function Ft(i) {
|
|
|
449
449
|
function N(i) {
|
|
450
450
|
var t;
|
|
451
451
|
if (l())
|
|
452
|
-
return Ft(i) ? document.body :
|
|
452
|
+
return Ft(i) ? document.body : R(i) ? (t = document.querySelector(i)) != null ? t : void 0 : i;
|
|
453
453
|
}
|
|
454
454
|
function ft(i) {
|
|
455
455
|
return Ft(i) ? i : N(i);
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function Zt(i) {
|
|
458
458
|
var t;
|
|
459
459
|
return !!((t = N(i)) != null && t.closest("html"));
|
|
460
460
|
}
|
|
@@ -503,7 +503,7 @@ class mt {
|
|
|
503
503
|
*/
|
|
504
504
|
c(this, "listenerRecent", (t) => {
|
|
505
505
|
var e, s;
|
|
506
|
-
|
|
506
|
+
Zt(this.elementControl) ? ((e = this.listener) == null || e.call(this.element, t, this.detail), f(this.options) && ((s = this.options) != null && s.once) && this.stop()) : this.stop();
|
|
507
507
|
});
|
|
508
508
|
/**
|
|
509
509
|
* Event states.
|
|
@@ -746,7 +746,7 @@ const yt = "ui-loading", K = class K {
|
|
|
746
746
|
};
|
|
747
747
|
c(K, "value", 0), c(K, "event"), l() && (K.event = new mt(window, yt));
|
|
748
748
|
let I = K;
|
|
749
|
-
class
|
|
749
|
+
class Vt {
|
|
750
750
|
constructor() {
|
|
751
751
|
/** Default headers/ Заголовки по умолчанию */
|
|
752
752
|
c(this, "headers", {});
|
|
@@ -764,7 +764,7 @@ class Zt {
|
|
|
764
764
|
this.headers,
|
|
765
765
|
t
|
|
766
766
|
);
|
|
767
|
-
return
|
|
767
|
+
return w(e) && (s["Content-Type"] = e), s;
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
770
|
/**
|
|
@@ -777,7 +777,7 @@ class Zt {
|
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
779
|
var L = /* @__PURE__ */ ((i) => (i.get = "GET", i.post = "POST", i.put = "PUT", i.delete = "DELETE", i))(L || {});
|
|
780
|
-
class
|
|
780
|
+
class Kt {
|
|
781
781
|
constructor() {
|
|
782
782
|
/** Default request data/ Данные запроса по умолчанию */
|
|
783
783
|
c(this, "value");
|
|
@@ -969,7 +969,7 @@ class $t {
|
|
|
969
969
|
this.value || (this.value = {}), this.value[t] = e;
|
|
970
970
|
}
|
|
971
971
|
}
|
|
972
|
-
async function
|
|
972
|
+
async function Yt(i) {
|
|
973
973
|
const t = B(i);
|
|
974
974
|
return t instanceof Promise ? await t : t;
|
|
975
975
|
}
|
|
@@ -977,7 +977,7 @@ function q(i, t) {
|
|
|
977
977
|
return Math.floor(Math.random() * (t - i + 1) + i);
|
|
978
978
|
}
|
|
979
979
|
const pt = "d-response-loading";
|
|
980
|
-
class
|
|
980
|
+
class qt {
|
|
981
981
|
/**
|
|
982
982
|
* Constructor
|
|
983
983
|
* @param requestDefault default request processor/ процессор запросов по умолчанию
|
|
@@ -1097,7 +1097,7 @@ class Yt {
|
|
|
1097
1097
|
*/
|
|
1098
1098
|
isResponse(t, e) {
|
|
1099
1099
|
const s = this.requestDefault.request(t == null ? void 0 : t.request);
|
|
1100
|
-
return e === s || s === "*any" ||
|
|
1100
|
+
return e === s || s === "*any" || w(e) && w(s) && A(e) && A(s) && !(e instanceof FormData) && !(s instanceof FormData) && Object.values(e).length === Object.values(s).length && Object.entries(s).reduce(
|
|
1101
1101
|
(r, [o, a]) => r && (a === (e == null ? void 0 : e[o]) || a === "*any"),
|
|
1102
1102
|
!0
|
|
1103
1103
|
);
|
|
@@ -1111,7 +1111,7 @@ class Yt {
|
|
|
1111
1111
|
*/
|
|
1112
1112
|
fetch(t, e) {
|
|
1113
1113
|
return this.startResponseLoading(), new Promise((s) => {
|
|
1114
|
-
|
|
1114
|
+
Yt(
|
|
1115
1115
|
ct(t.response) ? t.response(e) : t.response
|
|
1116
1116
|
).then((r) => {
|
|
1117
1117
|
t != null && t.lag ? (I.show(), setTimeout(() => {
|
|
@@ -1139,7 +1139,7 @@ class Yt {
|
|
|
1139
1139
|
}, 1200);
|
|
1140
1140
|
}
|
|
1141
1141
|
}
|
|
1142
|
-
class
|
|
1142
|
+
class Jt {
|
|
1143
1143
|
constructor() {
|
|
1144
1144
|
/** Function for call before the request/ Функция для вызова перед запросом */
|
|
1145
1145
|
c(this, "callback");
|
|
@@ -1214,7 +1214,7 @@ class qt {
|
|
|
1214
1214
|
return this.callbackEnd && (s = await this.callbackEnd(t, e)), s;
|
|
1215
1215
|
}
|
|
1216
1216
|
}
|
|
1217
|
-
const
|
|
1217
|
+
const v = class v {
|
|
1218
1218
|
/**
|
|
1219
1219
|
* Is the server local.
|
|
1220
1220
|
*
|
|
@@ -1259,8 +1259,8 @@ const w = class w {
|
|
|
1259
1259
|
static getBody(t = {}, e = L.get) {
|
|
1260
1260
|
if (t instanceof FormData)
|
|
1261
1261
|
return t;
|
|
1262
|
-
if (e !== L.get &&
|
|
1263
|
-
return
|
|
1262
|
+
if (e !== L.get && w(t))
|
|
1263
|
+
return R(t) ? t : JSON.stringify(t);
|
|
1264
1264
|
}
|
|
1265
1265
|
/**
|
|
1266
1266
|
* Getting data for the body of the get method.
|
|
@@ -1273,7 +1273,7 @@ const w = class w {
|
|
|
1273
1273
|
static getBodyForGet(t, e = "", s = L.get) {
|
|
1274
1274
|
if (s === L.get) {
|
|
1275
1275
|
const r = e.match(/\?/) ? "&" : "?", o = typeof t == "object" ? It(t) : t;
|
|
1276
|
-
if (
|
|
1276
|
+
if (w(o))
|
|
1277
1277
|
return `${r}${o}`;
|
|
1278
1278
|
}
|
|
1279
1279
|
return "";
|
|
@@ -1284,7 +1284,7 @@ const w = class w {
|
|
|
1284
1284
|
* Изменяет данные заголовка по умолчанию.
|
|
1285
1285
|
*/
|
|
1286
1286
|
static setHeaders(t) {
|
|
1287
|
-
return this.headers.set(t),
|
|
1287
|
+
return this.headers.set(t), v;
|
|
1288
1288
|
}
|
|
1289
1289
|
/**
|
|
1290
1290
|
* Modifies the default request data.
|
|
@@ -1292,7 +1292,7 @@ const w = class w {
|
|
|
1292
1292
|
* Изменяет данные запроса по умолчанию.
|
|
1293
1293
|
*/
|
|
1294
1294
|
static setRequestDefault(t) {
|
|
1295
|
-
return this.requestDefault.set(t),
|
|
1295
|
+
return this.requestDefault.set(t), v;
|
|
1296
1296
|
}
|
|
1297
1297
|
/**
|
|
1298
1298
|
* Change the base path to the script.
|
|
@@ -1301,7 +1301,7 @@ const w = class w {
|
|
|
1301
1301
|
* @param url path to the script/ путь к скрипту
|
|
1302
1302
|
*/
|
|
1303
1303
|
static setUrl(t) {
|
|
1304
|
-
return this.url = t,
|
|
1304
|
+
return this.url = t, v;
|
|
1305
1305
|
}
|
|
1306
1306
|
/**
|
|
1307
1307
|
* The function is modified for a call before the request.
|
|
@@ -1310,7 +1310,7 @@ const w = class w {
|
|
|
1310
1310
|
* @param callback function for call/ функция для вызова
|
|
1311
1311
|
*/
|
|
1312
1312
|
static setPreparation(t) {
|
|
1313
|
-
return this.preparation.set(t),
|
|
1313
|
+
return this.preparation.set(t), v;
|
|
1314
1314
|
}
|
|
1315
1315
|
/**
|
|
1316
1316
|
* Modify the function after the request.
|
|
@@ -1319,7 +1319,7 @@ const w = class w {
|
|
|
1319
1319
|
* @param callback function for call/ функция для вызова
|
|
1320
1320
|
*/
|
|
1321
1321
|
static setEnd(t) {
|
|
1322
|
-
return this.preparation.setEnd(t),
|
|
1322
|
+
return this.preparation.setEnd(t), v;
|
|
1323
1323
|
}
|
|
1324
1324
|
/**
|
|
1325
1325
|
* To execute a request.
|
|
@@ -1328,7 +1328,7 @@ const w = class w {
|
|
|
1328
1328
|
* @param pathRequest query string or list of parameters/ строка запроса или список параметров
|
|
1329
1329
|
*/
|
|
1330
1330
|
static async request(t) {
|
|
1331
|
-
return
|
|
1331
|
+
return R(t) ? await this.fetch({
|
|
1332
1332
|
path: t
|
|
1333
1333
|
}) : await this.fetch(t);
|
|
1334
1334
|
}
|
|
@@ -1397,16 +1397,16 @@ const w = class w {
|
|
|
1397
1397
|
I.show();
|
|
1398
1398
|
try {
|
|
1399
1399
|
await this.preparation.make(o, t);
|
|
1400
|
-
const
|
|
1401
|
-
if (h.setStatus(
|
|
1400
|
+
const g = await this.makeQuery(t), S = await this.preparation.makeEnd(a, g, t);
|
|
1401
|
+
if (h.setStatus(g.status, g.statusText), this.status.setStatus(g.status, g.statusText), S != null && S.reset)
|
|
1402
1402
|
return I.hide(), await this.fetch(t);
|
|
1403
1403
|
m = await this.readData(
|
|
1404
|
-
|
|
1404
|
+
g,
|
|
1405
1405
|
r,
|
|
1406
1406
|
S
|
|
1407
1407
|
);
|
|
1408
|
-
} catch (
|
|
1409
|
-
throw s || console.error("Api: ",
|
|
1408
|
+
} catch (g) {
|
|
1409
|
+
throw s || console.error("Api: ", g), h.setError(String(g)), this.status.setError(String(g)), I.hide(), g;
|
|
1410
1410
|
}
|
|
1411
1411
|
return I.hide(), h.setLastResponse(m), this.status.setLastResponse(m), this.makeStatus(
|
|
1412
1412
|
this.makeData(m, e),
|
|
@@ -1440,12 +1440,12 @@ const w = class w {
|
|
|
1440
1440
|
headers: u = {},
|
|
1441
1441
|
type: h = "application/json;charset=UTF-8",
|
|
1442
1442
|
init: m = {},
|
|
1443
|
-
controller:
|
|
1443
|
+
controller: g = void 0
|
|
1444
1444
|
} = t, S = o != null ? o : this.getUrl(r, s), G = `${S}${this.getBodyForGet(e, S, a)}`, Q = this.headers.get(u, h), Z = C(m, {
|
|
1445
1445
|
method: a,
|
|
1446
1446
|
body: this.getBody(e, a)
|
|
1447
1447
|
});
|
|
1448
|
-
return Q && (Z.headers = Q),
|
|
1448
|
+
return Q && (Z.headers = Q), g && (Z.signal = g.signal), await fetch(G, Z);
|
|
1449
1449
|
}
|
|
1450
1450
|
/**
|
|
1451
1451
|
* Transforms data if needed.
|
|
@@ -1476,9 +1476,9 @@ const w = class w {
|
|
|
1476
1476
|
} : t;
|
|
1477
1477
|
}
|
|
1478
1478
|
};
|
|
1479
|
-
c(
|
|
1480
|
-
let H =
|
|
1481
|
-
class
|
|
1479
|
+
c(v, "url", "/api/"), c(v, "headers", new Vt()), c(v, "requestDefault", new Kt()), c(v, "status", new $t()), c(v, "response", new qt(v.requestDefault)), c(v, "preparation", new Jt());
|
|
1480
|
+
let H = v;
|
|
1481
|
+
class Be {
|
|
1482
1482
|
/**
|
|
1483
1483
|
* Constructor
|
|
1484
1484
|
* @param name channel name/ название канала
|
|
@@ -1509,7 +1509,7 @@ class Ee {
|
|
|
1509
1509
|
});
|
|
1510
1510
|
if (this.callback = e, this.callbackError = s, l())
|
|
1511
1511
|
try {
|
|
1512
|
-
this.channel = new BroadcastChannel(`${
|
|
1512
|
+
this.channel = new BroadcastChannel(`${Mt()}__${t}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
|
|
1513
1513
|
} catch (r) {
|
|
1514
1514
|
console.error(`BroadcastMessage ${t}:`, r);
|
|
1515
1515
|
}
|
|
@@ -1552,8 +1552,8 @@ class Ee {
|
|
|
1552
1552
|
return this.callbackError = t, this;
|
|
1553
1553
|
}
|
|
1554
1554
|
}
|
|
1555
|
-
const
|
|
1556
|
-
class
|
|
1555
|
+
const Mt = () => new T("__broadcast-name").get(() => `name_${q(1e6, 9999999)}`);
|
|
1556
|
+
class Qt {
|
|
1557
1557
|
/**
|
|
1558
1558
|
* Constructor
|
|
1559
1559
|
* @param callback function for the cache/ функция для кэша
|
|
@@ -1616,7 +1616,7 @@ class Mt {
|
|
|
1616
1616
|
return this.cache === void 0 || this.comparisons.length !== t.length || this.comparisons.findIndex((e, s) => e !== t[s]) >= 0 ? (this.comparisons = [...t], !0) : !1;
|
|
1617
1617
|
}
|
|
1618
1618
|
}
|
|
1619
|
-
class
|
|
1619
|
+
class Xt {
|
|
1620
1620
|
constructor() {
|
|
1621
1621
|
c(this, "cache", {});
|
|
1622
1622
|
}
|
|
@@ -1650,7 +1650,7 @@ class Qt {
|
|
|
1650
1650
|
* @param callback function for the cache/ функция для кэша
|
|
1651
1651
|
*/
|
|
1652
1652
|
getCacheItem(t, e) {
|
|
1653
|
-
return t in this.cache || (this.cache[t] = new
|
|
1653
|
+
return t in this.cache || (this.cache[t] = new Qt(e)), this.cache[t];
|
|
1654
1654
|
}
|
|
1655
1655
|
}
|
|
1656
1656
|
const O = class O {
|
|
@@ -1666,9 +1666,9 @@ const O = class O {
|
|
|
1666
1666
|
return this.cache.get(t, e, s);
|
|
1667
1667
|
}
|
|
1668
1668
|
};
|
|
1669
|
-
c(O, "cache"), O.cache = new
|
|
1669
|
+
c(O, "cache"), O.cache = new Xt();
|
|
1670
1670
|
let bt = O;
|
|
1671
|
-
function
|
|
1671
|
+
function xt(i, t = !1) {
|
|
1672
1672
|
if (typeof i == "string") {
|
|
1673
1673
|
const e = i.trim();
|
|
1674
1674
|
switch (e) {
|
|
@@ -1699,8 +1699,8 @@ function Rt(i, t = !1) {
|
|
|
1699
1699
|
}
|
|
1700
1700
|
return i;
|
|
1701
1701
|
}
|
|
1702
|
-
const
|
|
1703
|
-
class
|
|
1702
|
+
const _t = "cookie-block";
|
|
1703
|
+
class Rt {
|
|
1704
1704
|
/**
|
|
1705
1705
|
* Obtaining status.
|
|
1706
1706
|
*
|
|
@@ -1720,7 +1720,7 @@ class xt {
|
|
|
1720
1720
|
this.storage.set(t);
|
|
1721
1721
|
}
|
|
1722
1722
|
}
|
|
1723
|
-
c(
|
|
1723
|
+
c(Rt, "storage", new T(_t));
|
|
1724
1724
|
const X = {}, lt = class lt {
|
|
1725
1725
|
constructor(t) {
|
|
1726
1726
|
c(this, "value");
|
|
@@ -1773,7 +1773,7 @@ const X = {}, lt = class lt {
|
|
|
1773
1773
|
*/
|
|
1774
1774
|
update() {
|
|
1775
1775
|
var t, e, s, r, o;
|
|
1776
|
-
if (l() && !nt() && !
|
|
1776
|
+
if (l() && !nt() && !Rt.get()) {
|
|
1777
1777
|
const a = String((t = this.value) != null ? t : "");
|
|
1778
1778
|
document.cookie = [
|
|
1779
1779
|
`${encodeURIComponent(this.name)}=${encodeURIComponent(a)}`,
|
|
@@ -1791,7 +1791,7 @@ const X = {}, lt = class lt {
|
|
|
1791
1791
|
static updateData() {
|
|
1792
1792
|
for (const t of document.cookie.split(";")) {
|
|
1793
1793
|
const [e, s] = t.trim().split("=");
|
|
1794
|
-
e &&
|
|
1794
|
+
e && w(s) && (X[e] = xt(s));
|
|
1795
1795
|
}
|
|
1796
1796
|
}
|
|
1797
1797
|
};
|
|
@@ -1799,7 +1799,7 @@ l() && !nt() && lt.updateData();
|
|
|
1799
1799
|
let wt = lt;
|
|
1800
1800
|
const et = {};
|
|
1801
1801
|
function F(i) {
|
|
1802
|
-
var r, o, a, u, h, m,
|
|
1802
|
+
var r, o, a, u, h, m, g, S;
|
|
1803
1803
|
if (i instanceof Date)
|
|
1804
1804
|
return i;
|
|
1805
1805
|
if (J(i))
|
|
@@ -1808,11 +1808,11 @@ function F(i) {
|
|
|
1808
1808
|
return new Date(i);
|
|
1809
1809
|
let t = i, e = p.getTimezoneFormat().trim();
|
|
1810
1810
|
i.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (G, Q, Z) => (t = Q, e = Z.trim(), G));
|
|
1811
|
-
const s = (S = (
|
|
1811
|
+
const s = (S = (g = (m = (h = (u = (a = (o = (r = /^\d{4}\d{2}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3")}T00:00:00`) != null ? r : /^\d{4}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})$/, "$1-$2")}-01T00:00:00`) != null ? o : /^\d{4}\d{2}\d{2} \d{2}:\d{2}:\d{2}$/.exec(t) && t.replace(/^(\d{4})(\d{2})(\d{2}) (\d{2}):(\d{2}):(\d{2})$/, "$1-$2-$3T$4:$5:$6")) != null ? a : /^\d{4}-\d{2}-\d{2}$/.exec(t) && `${t}T00:00:00`) != null ? u : /^\d{4}-\d{2}$/.exec(t) && `${t}-01T00:00:00`) != null ? h : /^\d{4}$/.exec(t) && `${t}-01-01T00:00:00`) != null ? m : /^\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}:00`) != null ? g : /^\d{2}:\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}`) != null ? S : t.replace(" ", "T");
|
|
1812
1812
|
return /* @__PURE__ */ new Date(`${s.trim()}${e}`);
|
|
1813
1813
|
}
|
|
1814
|
-
function
|
|
1815
|
-
return
|
|
1814
|
+
function Ot(i, t) {
|
|
1815
|
+
return d(i, (e) => e == null ? void 0 : e[t], !0);
|
|
1816
1816
|
}
|
|
1817
1817
|
class M {
|
|
1818
1818
|
/**
|
|
@@ -1971,7 +1971,7 @@ class M {
|
|
|
1971
1971
|
}, o = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...a) => (r.currency = String(a[2]).toUpperCase(), String(a[1])));
|
|
1972
1972
|
if (s) {
|
|
1973
1973
|
const a = this.numberObject(r);
|
|
1974
|
-
return a ?
|
|
1974
|
+
return a ? Ot(
|
|
1975
1975
|
a.formatToParts(k(t)).filter((u) => ["literal", "currency"].indexOf(u.type) === -1),
|
|
1976
1976
|
"value"
|
|
1977
1977
|
).join("") : t.toString();
|
|
@@ -2027,7 +2027,7 @@ class M {
|
|
|
2027
2027
|
*/
|
|
2028
2028
|
sizeFile(t, e = "byte") {
|
|
2029
2029
|
const s = k(t);
|
|
2030
|
-
if (s > 1024 &&
|
|
2030
|
+
if (s > 1024 && R(e))
|
|
2031
2031
|
switch (e) {
|
|
2032
2032
|
case "byte":
|
|
2033
2033
|
return this.sizeFile(s / 1024, "kilobyte");
|
|
@@ -2081,28 +2081,28 @@ class M {
|
|
|
2081
2081
|
try {
|
|
2082
2082
|
if (l()) {
|
|
2083
2083
|
const m = new Intl.PluralRules(this.getLocation(), s).select(o);
|
|
2084
|
-
let
|
|
2084
|
+
let g;
|
|
2085
2085
|
switch (m) {
|
|
2086
2086
|
case "zero":
|
|
2087
|
-
|
|
2087
|
+
g = a[a.length - 1];
|
|
2088
2088
|
break;
|
|
2089
2089
|
case "one":
|
|
2090
|
-
|
|
2090
|
+
g = a == null ? void 0 : a[0];
|
|
2091
2091
|
break;
|
|
2092
2092
|
case "two":
|
|
2093
|
-
|
|
2093
|
+
g = a == null ? void 0 : a[1];
|
|
2094
2094
|
break;
|
|
2095
2095
|
case "few":
|
|
2096
|
-
|
|
2096
|
+
g = a != null && a[3] ? a == null ? void 0 : a[2] : a == null ? void 0 : a[1];
|
|
2097
2097
|
break;
|
|
2098
2098
|
case "many":
|
|
2099
|
-
|
|
2099
|
+
g = (a == null ? void 0 : a[3]) || (a == null ? void 0 : a[2]) || (a == null ? void 0 : a[1]);
|
|
2100
2100
|
break;
|
|
2101
2101
|
case "other":
|
|
2102
|
-
a.length === 6 ?
|
|
2102
|
+
a.length === 6 ? g = a[a.length - 2] : g = a[a.length - 1];
|
|
2103
2103
|
break;
|
|
2104
2104
|
}
|
|
2105
|
-
return `${this.number(o, r)} ${
|
|
2105
|
+
return `${this.number(o, r)} ${g != null ? g : ""}`.trim();
|
|
2106
2106
|
}
|
|
2107
2107
|
} catch (h) {
|
|
2108
2108
|
console.error("plural: ", h);
|
|
@@ -2158,8 +2158,8 @@ class M {
|
|
|
2158
2158
|
* @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
|
|
2159
2159
|
*/
|
|
2160
2160
|
relativeLimit(t, e, s, r, o, a, u) {
|
|
2161
|
-
const h = F(t), m = s || /* @__PURE__ */ new Date(),
|
|
2162
|
-
return
|
|
2161
|
+
const h = F(t), m = s || /* @__PURE__ */ new Date(), g = new Date(m), S = new Date(m);
|
|
2162
|
+
return g.setDate(m.getDate() - e), S.setDate(m.getDate() + e), h >= g && h <= S ? this.relative(
|
|
2163
2163
|
h,
|
|
2164
2164
|
r,
|
|
2165
2165
|
m
|
|
@@ -3031,7 +3031,7 @@ const n = "f", W = class W {
|
|
|
3031
3031
|
* @param codes country code/ код страны
|
|
3032
3032
|
*/
|
|
3033
3033
|
getList(t) {
|
|
3034
|
-
return
|
|
3034
|
+
return d(this.getCodes(t), (e) => this.get(e));
|
|
3035
3035
|
}
|
|
3036
3036
|
/**
|
|
3037
3037
|
* Getting a list of countries by an array of codes in national language.
|
|
@@ -3040,7 +3040,7 @@ const n = "f", W = class W {
|
|
|
3040
3040
|
* @param codes country code/ код страны.
|
|
3041
3041
|
*/
|
|
3042
3042
|
getNational(t) {
|
|
3043
|
-
return
|
|
3043
|
+
return d(this.getList(t), (e) => {
|
|
3044
3044
|
const s = new W(e.standard).get(e.standard);
|
|
3045
3045
|
return {
|
|
3046
3046
|
...e,
|
|
@@ -3401,7 +3401,7 @@ const j = class j {
|
|
|
3401
3401
|
* @param masks a mask to transform a phone number/ маска для преобразования номер телефон
|
|
3402
3402
|
*/
|
|
3403
3403
|
static toMask(t, e) {
|
|
3404
|
-
if (
|
|
3404
|
+
if (w(t) && Array.isArray(e) && e.length > 0) {
|
|
3405
3405
|
const s = this.removeZero(t), r = s.length;
|
|
3406
3406
|
for (const o of e)
|
|
3407
3407
|
if (this.getUnnecessaryLength(o) === r)
|
|
@@ -3449,7 +3449,7 @@ const j = class j {
|
|
|
3449
3449
|
* Формирование списка для карты.
|
|
3450
3450
|
*/
|
|
3451
3451
|
static makeList() {
|
|
3452
|
-
const t =
|
|
3452
|
+
const t = d(p.getList(), (e) => {
|
|
3453
3453
|
if (e != null && e.phoneMask)
|
|
3454
3454
|
return {
|
|
3455
3455
|
phone: (e == null ? void 0 : e.phoneCode) && Number(e.phoneCode.replace(/[^0-9]+/, "")) || void 0,
|
|
@@ -3520,7 +3520,7 @@ const j = class j {
|
|
|
3520
3520
|
};
|
|
3521
3521
|
c(j, "list", []), c(j, "map", {}), j.makeList(), j.makeMap();
|
|
3522
3522
|
let St = j, P;
|
|
3523
|
-
class
|
|
3523
|
+
class Ie {
|
|
3524
3524
|
/**
|
|
3525
3525
|
* Returns the value by its name.
|
|
3526
3526
|
*
|
|
@@ -3540,7 +3540,7 @@ class Be {
|
|
|
3540
3540
|
P === void 0 && (P = C(t));
|
|
3541
3541
|
}
|
|
3542
3542
|
}
|
|
3543
|
-
const
|
|
3543
|
+
const x = class x {
|
|
3544
3544
|
/**
|
|
3545
3545
|
* Get data from hash.
|
|
3546
3546
|
*
|
|
@@ -3594,7 +3594,7 @@ const R = class R {
|
|
|
3594
3594
|
const t = {};
|
|
3595
3595
|
return location.hash.replace(
|
|
3596
3596
|
/([\w-]+)[:=]([^;]+)/ig,
|
|
3597
|
-
(...e) => (t[String(e[1])] =
|
|
3597
|
+
(...e) => (t[String(e[1])] = xt(e[2]), "")
|
|
3598
3598
|
), t;
|
|
3599
3599
|
}
|
|
3600
3600
|
/**
|
|
@@ -3614,14 +3614,14 @@ const R = class R {
|
|
|
3614
3614
|
* @param location fresh data/ свежий данные
|
|
3615
3615
|
*/
|
|
3616
3616
|
static makeWatch(t) {
|
|
3617
|
-
|
|
3617
|
+
d(this.watch, (e, s) => {
|
|
3618
3618
|
var r;
|
|
3619
3619
|
((r = this.hash) == null ? void 0 : r[s]) !== (t == null ? void 0 : t[s]) && e.forEach((o) => o(t[s]));
|
|
3620
3620
|
});
|
|
3621
3621
|
}
|
|
3622
3622
|
};
|
|
3623
|
-
c(
|
|
3624
|
-
let Dt =
|
|
3623
|
+
c(x, "hash", {}), c(x, "watch", {}), c(x, "block", !1), l() && (x.reload(), addEventListener("hashchange", () => x.reload()));
|
|
3624
|
+
let Dt = x;
|
|
3625
3625
|
const st = "__UI_ICON", Lt = 320, Ct = "--LOAD--", Y = class Y {
|
|
3626
3626
|
/**
|
|
3627
3627
|
* Checks if the given icon is in the list of connected icons.
|
|
@@ -3653,7 +3653,7 @@ const st = "__UI_ICON", Lt = 320, Ct = "--LOAD--", Y = class Y {
|
|
|
3653
3653
|
* Возвращает список названий всех зарегистрированных иконок.
|
|
3654
3654
|
*/
|
|
3655
3655
|
static getNameList() {
|
|
3656
|
-
return
|
|
3656
|
+
return d(this.icons, (t, e) => e.replace(/^@/, ""));
|
|
3657
3657
|
}
|
|
3658
3658
|
/**
|
|
3659
3659
|
* Returns a global link.
|
|
@@ -3699,7 +3699,7 @@ const st = "__UI_ICON", Lt = 320, Ct = "--LOAD--", Y = class Y {
|
|
|
3699
3699
|
* @param list list of icons/ список иконки
|
|
3700
3700
|
*/
|
|
3701
3701
|
static addByList(t) {
|
|
3702
|
-
|
|
3702
|
+
d(t, (e, s) => this.add(s, e));
|
|
3703
3703
|
}
|
|
3704
3704
|
/**
|
|
3705
3705
|
* Changes the file path.
|
|
@@ -3730,16 +3730,16 @@ const st = "__UI_ICON", Lt = 320, Ct = "--LOAD--", Y = class Y {
|
|
|
3730
3730
|
};
|
|
3731
3731
|
c(Y, "icons", {}), c(Y, "url", "/icons/"), l() && (st in window || (window[st] = {}), Y.icons = window[st]);
|
|
3732
3732
|
let kt = Y;
|
|
3733
|
-
function
|
|
3733
|
+
function Tt(i, t, e) {
|
|
3734
3734
|
var s, r;
|
|
3735
3735
|
return (r = (s = N(i)) == null ? void 0 : s[t]) != null ? r : e;
|
|
3736
3736
|
}
|
|
3737
|
-
function
|
|
3737
|
+
function Gt(i, t, e) {
|
|
3738
3738
|
const s = N(i);
|
|
3739
3739
|
if (s) {
|
|
3740
|
-
const r =
|
|
3740
|
+
const r = Tt(s, t);
|
|
3741
3741
|
if (f(r) && f(e))
|
|
3742
|
-
|
|
3742
|
+
d(e, (o, a) => {
|
|
3743
3743
|
r[a] = B(o);
|
|
3744
3744
|
});
|
|
3745
3745
|
else {
|
|
@@ -3753,11 +3753,11 @@ function _(i, t = "div", e, s) {
|
|
|
3753
3753
|
if (!l())
|
|
3754
3754
|
return;
|
|
3755
3755
|
const r = document.createElement(t);
|
|
3756
|
-
return typeof e == "function" ? e(r) : A(e) &&
|
|
3757
|
-
|
|
3756
|
+
return typeof e == "function" ? e(r) : A(e) && d(e, (o, a) => {
|
|
3757
|
+
Gt(r, a, o);
|
|
3758
3758
|
}), i == null || i.insertBefore(r, s != null ? s : null), r;
|
|
3759
3759
|
}
|
|
3760
|
-
function
|
|
3760
|
+
function te(i) {
|
|
3761
3761
|
return i.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").trim();
|
|
3762
3762
|
}
|
|
3763
3763
|
class ht {
|
|
@@ -3804,7 +3804,7 @@ class ht {
|
|
|
3804
3804
|
* Возвращает все мета-теги в виде HTML-строки.
|
|
3805
3805
|
*/
|
|
3806
3806
|
html() {
|
|
3807
|
-
return
|
|
3807
|
+
return d(
|
|
3808
3808
|
this.listMeta,
|
|
3809
3809
|
(e) => this.toHtmlString(e)
|
|
3810
3810
|
).join("");
|
|
@@ -3826,7 +3826,7 @@ class ht {
|
|
|
3826
3826
|
* @param metaList object with meta tag names and content / объект с именами и содержимым мета-тегов
|
|
3827
3827
|
*/
|
|
3828
3828
|
setByList(t) {
|
|
3829
|
-
return
|
|
3829
|
+
return d(
|
|
3830
3830
|
t,
|
|
3831
3831
|
(e, s) => this.set(s, String(e))
|
|
3832
3832
|
), this;
|
|
@@ -3886,7 +3886,7 @@ class ht {
|
|
|
3886
3886
|
*/
|
|
3887
3887
|
toHtmlString(t) {
|
|
3888
3888
|
var s;
|
|
3889
|
-
const e =
|
|
3889
|
+
const e = te((s = this.items[t]) != null ? s : "");
|
|
3890
3890
|
return e ? `<meta ${this.getAttributeName()}="${t}" content="${e}">` : "";
|
|
3891
3891
|
}
|
|
3892
3892
|
/**
|
|
@@ -3901,8 +3901,8 @@ class ht {
|
|
|
3901
3901
|
}), this;
|
|
3902
3902
|
}
|
|
3903
3903
|
}
|
|
3904
|
-
var D = /* @__PURE__ */ ((i) => (i.description = "description", i.keywords = "keywords", i.canonical = "canonical", i.robots = "robots", i.author = "author", i))(D || {}),
|
|
3905
|
-
class
|
|
3904
|
+
var D = /* @__PURE__ */ ((i) => (i.description = "description", i.keywords = "keywords", i.canonical = "canonical", i.robots = "robots", i.author = "author", i))(D || {}), ee = /* @__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))(ee || {}), y = /* @__PURE__ */ ((i) => (i.title = "og:title", i.type = "og:type", i.url = "og:url", i.image = "og:image", i.description = "og:description", i.locale = "og:locale", i.siteName = "og:site_name", i.localeAlternate = "og:locale:alternate", i.imageUrl = "og:image:url", i.imageSecureUrl = "og:image:secure_url", i.imageType = "og:image:type", i.imageWidth = "og:image:width", i.imageHeight = "og:image:height", i.imageAlt = "og:image:alt", i.video = "og:video", i.videoUrl = "og:video:url", i.videoSecureUrl = "og:video:secure_url", i.videoType = "og:video:type", i.videoWidth = "og:video:width", i.videoHeight = "og:video:height", i.audio = "og:audio", i.audioSecureUrl = "og:audio:secure_url", i.audioType = "og:audio:type", i.articlePublishedTime = "article:published_time", i.articleModifiedTime = "article:modified_time", i.articleExpirationTime = "article:expiration_time", i.articleAuthor = "article:author", i.articleSection = "article:section", i.articleTag = "article:tag", i.bookAuthor = "book:author", i.bookIsbn = "book:isbn", i.bookReleaseDate = "book:release_date", i.bookTag = "book:tag", i.musicDuration = "music:duration", i.musicAlbum = "music:album", i.musicAlbumDisc = "music:album:disc", i.musicAlbumTrack = "music:album:track", i.musicMusician = "music:musician", i.musicSong = "music:song", i.musicSongDisc = "music:song:disc", i.musicSongTrack = "music:song:track", i.musicReleaseDate = "music:release_date", i.musicCreator = "music:creator", i.videoActor = "video:actor", i.videoActorRole = "video:actor:role", i.videoDirector = "video:director", i.videoWriter = "video:writer", i.videoDuration = "video:duration", i.videoReleaseDate = "video:release_date", i.videoTag = "video:tag", i.videoSeries = "video:series", i.profileFirstName = "profile:first_name", i.profileLastName = "profile:last_name", i.profileUsername = "profile:username", i.profileGender = "profile:gender", i.productBrand = "product:brand", i.productAvailability = "product:availability", i.productCondition = "product:condition", i.productPriceAmount = "product:price:amount", i.productPriceCurrency = "product:price:currency", i.productRetailerItemId = "product:retailer_item_id", i.productCategory = "product:category", i.productEan = "product:ean", i.productIsbn = "product:isbn", i.productMfrPartNo = "product:mfr_part_no", i.productUpc = "product:upc", i.productWeightValue = "product:weight:value", i.productWeightUnits = "product:weight:units", i.productColor = "product:color", i.productMaterial = "product:material", i.productPattern = "product:pattern", i.productAgeGroup = "product:age_group", i.productGender = "product:gender", i))(y || {}), ie = /* @__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))(ie || {}), se = /* @__PURE__ */ ((i) => (i.inStock = "in stock", i.outOfStock = "out of stock", i.preorder = "preorder", i.backorder = "backorder", i.discontinued = "discontinued", i.pending = "pending", i))(se || {}), re = /* @__PURE__ */ ((i) => (i.new = "new", i.used = "used", i.refurbished = "refurbished", i))(re || {}), ne = /* @__PURE__ */ ((i) => (i.newborn = "newborn", i.infant = "infant", i.toddler = "toddler", i.kids = "kids", i.adult = "adult", i))(ne || {}), oe = /* @__PURE__ */ ((i) => (i.female = "female", i.male = "male", i.unisex = "unisex", i))(oe || {}), $ = /* @__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))($ || {}), ae = /* @__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))(ae || {});
|
|
3905
|
+
class ce extends ht {
|
|
3906
3906
|
constructor() {
|
|
3907
3907
|
super(Object.values(y), !0);
|
|
3908
3908
|
}
|
|
@@ -4026,7 +4026,7 @@ class ae extends ht {
|
|
|
4026
4026
|
return this.set(y.siteName, t);
|
|
4027
4027
|
}
|
|
4028
4028
|
}
|
|
4029
|
-
class
|
|
4029
|
+
class ue extends ht {
|
|
4030
4030
|
constructor() {
|
|
4031
4031
|
super(Object.values($));
|
|
4032
4032
|
}
|
|
@@ -4150,7 +4150,7 @@ class ce extends ht {
|
|
|
4150
4150
|
return this.set($.image, t), this;
|
|
4151
4151
|
}
|
|
4152
4152
|
}
|
|
4153
|
-
class
|
|
4153
|
+
class Fe extends ht {
|
|
4154
4154
|
/**
|
|
4155
4155
|
* Creates an instance of Meta with integrated Open Graph and Twitter Card support.
|
|
4156
4156
|
*
|
|
@@ -4161,7 +4161,7 @@ class Ie extends ht {
|
|
|
4161
4161
|
c(this, "suffix");
|
|
4162
4162
|
c(this, "og");
|
|
4163
4163
|
c(this, "twitter");
|
|
4164
|
-
this.og = new
|
|
4164
|
+
this.og = new ce(), this.twitter = new ue();
|
|
4165
4165
|
}
|
|
4166
4166
|
/**
|
|
4167
4167
|
* Gets the MetaOg instance for advanced Open Graph operations.
|
|
@@ -4259,7 +4259,7 @@ class Ie extends ht {
|
|
|
4259
4259
|
*/
|
|
4260
4260
|
setTitle(e) {
|
|
4261
4261
|
if (l()) {
|
|
4262
|
-
const s =
|
|
4262
|
+
const s = w(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
|
|
4263
4263
|
document.title = s, this.og.setTitle(s), this.twitter.setTitle(s);
|
|
4264
4264
|
}
|
|
4265
4265
|
return this;
|
|
@@ -4359,7 +4359,7 @@ class Ie extends ht {
|
|
|
4359
4359
|
* Получает отформатированный суффикс с разделителем.
|
|
4360
4360
|
*/
|
|
4361
4361
|
getSuffix() {
|
|
4362
|
-
return
|
|
4362
|
+
return w(this.suffix) ? ` - ${this.suffix}` : "";
|
|
4363
4363
|
}
|
|
4364
4364
|
}
|
|
4365
4365
|
class ot {
|
|
@@ -4414,7 +4414,7 @@ class ot {
|
|
|
4414
4414
|
}
|
|
4415
4415
|
}
|
|
4416
4416
|
c(ot, "storage", new T("scrollbar", !0)), c(ot, "calculate", !1);
|
|
4417
|
-
const
|
|
4417
|
+
const he = [
|
|
4418
4418
|
"d",
|
|
4419
4419
|
"e",
|
|
4420
4420
|
"f",
|
|
@@ -4434,21 +4434,21 @@ const ue = [
|
|
|
4434
4434
|
"t",
|
|
4435
4435
|
"u",
|
|
4436
4436
|
"v"
|
|
4437
|
-
],
|
|
4437
|
+
], le = (i, t = {}) => {
|
|
4438
4438
|
let e = String(i);
|
|
4439
4439
|
if (i.match(/%[a-z]/)) {
|
|
4440
4440
|
let s = 0;
|
|
4441
|
-
|
|
4442
|
-
e = e.replace(new RegExp(`%${
|
|
4441
|
+
d(t, (r) => {
|
|
4442
|
+
e = e.replace(new RegExp(`%${he[s++]}`, "g"), String(r));
|
|
4443
4443
|
});
|
|
4444
4444
|
}
|
|
4445
|
-
return A(t) &&
|
|
4445
|
+
return A(t) && d(t, (s, r) => {
|
|
4446
4446
|
e = e.replace(
|
|
4447
4447
|
new RegExp(`(?:\\[|\\{)${r}(?:\\]|\\})(.*?)(?:\\[|\\{)\\/${r}(?:\\]|\\})`, "g"),
|
|
4448
4448
|
(o, a) => String(s).replace(/(?:\[|\{)content(?:\]|\})/g, a)
|
|
4449
4449
|
).replace(new RegExp(`(?:\\[|\\{)${r}(?:\\]|\\})`, "g"), String(s));
|
|
4450
4450
|
}), e;
|
|
4451
|
-
},
|
|
4451
|
+
}, ge = "global", E = class E {
|
|
4452
4452
|
/**
|
|
4453
4453
|
* Getting the translation text by its code.
|
|
4454
4454
|
*
|
|
@@ -4531,8 +4531,8 @@ const ue = [
|
|
|
4531
4531
|
* @param data list of texts in the form of key-value/ список текстов в виде ключ-значение
|
|
4532
4532
|
*/
|
|
4533
4533
|
static addSync(t) {
|
|
4534
|
-
|
|
4535
|
-
|
|
4534
|
+
d(t, (e, s) => {
|
|
4535
|
+
R(e) && w(e) && (this.data[this.getName(s)] = e);
|
|
4536
4536
|
});
|
|
4537
4537
|
}
|
|
4538
4538
|
/**
|
|
@@ -4542,7 +4542,7 @@ const ue = [
|
|
|
4542
4542
|
* @param data list of texts in the form of key-value/ список текстов в виде ключ-значение
|
|
4543
4543
|
*/
|
|
4544
4544
|
static async addNormalOrSync(t) {
|
|
4545
|
-
if (
|
|
4545
|
+
if (w(t))
|
|
4546
4546
|
if (H.isLocalhost())
|
|
4547
4547
|
this.addSync(t);
|
|
4548
4548
|
else {
|
|
@@ -4557,9 +4557,9 @@ const ue = [
|
|
|
4557
4557
|
* @param data list of texts by location/ список текстов по местоположению
|
|
4558
4558
|
*/
|
|
4559
4559
|
static addSyncByLocation(t) {
|
|
4560
|
-
|
|
4560
|
+
d(
|
|
4561
4561
|
t,
|
|
4562
|
-
(e, s) =>
|
|
4562
|
+
(e, s) => d(e, (r, o) => {
|
|
4563
4563
|
const a = `${s}-${o}`;
|
|
4564
4564
|
a in this.data || (this.data[a] = r);
|
|
4565
4565
|
})
|
|
@@ -4628,7 +4628,7 @@ const ue = [
|
|
|
4628
4628
|
* @param name code name/ название кода
|
|
4629
4629
|
*/
|
|
4630
4630
|
static getNameByGlobal(t) {
|
|
4631
|
-
return `${
|
|
4631
|
+
return `${ge}-${t}`;
|
|
4632
4632
|
}
|
|
4633
4633
|
/**
|
|
4634
4634
|
* Returns a list of names that are not yet in the list.
|
|
@@ -4667,7 +4667,7 @@ const ue = [
|
|
|
4667
4667
|
* @param replacement values for replacement/ значения для замены
|
|
4668
4668
|
*/
|
|
4669
4669
|
static replacement(t, e) {
|
|
4670
|
-
return e ?
|
|
4670
|
+
return e ? le(t, e) : t;
|
|
4671
4671
|
}
|
|
4672
4672
|
/**
|
|
4673
4673
|
* Adding translation data from the server.
|
|
@@ -4686,12 +4686,12 @@ c(E, "url", "/api/translate"), c(E, "propsName", "list"), c(E, "data", {}), c(E,
|
|
|
4686
4686
|
let Nt = E;
|
|
4687
4687
|
function de(i) {
|
|
4688
4688
|
var t;
|
|
4689
|
-
return
|
|
4689
|
+
return R(i) ? i.trim() : at(i) && i.findIndex((e) => f(e)) === -1 ? i.join(",") : f(i) ? JSON.stringify(i) : i === !0 ? "1" : i === !1 ? "0" : (t = i == null ? void 0 : i.toString()) != null ? t : "";
|
|
4690
4690
|
}
|
|
4691
|
-
function
|
|
4691
|
+
function fe(i, t) {
|
|
4692
4692
|
return Array(t).fill(i);
|
|
4693
4693
|
}
|
|
4694
|
-
function
|
|
4694
|
+
function xe(i) {
|
|
4695
4695
|
return new Promise((t, e) => {
|
|
4696
4696
|
const s = new FileReader();
|
|
4697
4697
|
s.onloadend = () => t(s.result), s.onerror = e, s.readAsDataURL(i);
|
|
@@ -4702,20 +4702,23 @@ function Re(i) {
|
|
|
4702
4702
|
if (l())
|
|
4703
4703
|
return (t = document.querySelector(i)) != null ? t : void 0;
|
|
4704
4704
|
}
|
|
4705
|
-
function
|
|
4705
|
+
function Pe(i) {
|
|
4706
4706
|
if (l())
|
|
4707
4707
|
return document.querySelectorAll(i);
|
|
4708
4708
|
}
|
|
4709
|
-
function
|
|
4709
|
+
function Pt(i) {
|
|
4710
|
+
return i.replace(/([[\]\\^$.?*+(){}/|])/g, "\\$1");
|
|
4711
|
+
}
|
|
4712
|
+
function We(i) {
|
|
4710
4713
|
i.preventDefault(), i.stopPropagation();
|
|
4711
4714
|
}
|
|
4712
|
-
function
|
|
4715
|
+
function me(i, t, e) {
|
|
4713
4716
|
const s = () => {
|
|
4714
|
-
i(), t != null && t() ?
|
|
4717
|
+
i(), t != null && t() ? me(i, t, e) : e == null || e();
|
|
4715
4718
|
};
|
|
4716
4719
|
l() ? requestAnimationFrame(s) : s();
|
|
4717
4720
|
}
|
|
4718
|
-
function
|
|
4721
|
+
function je(i) {
|
|
4719
4722
|
var s;
|
|
4720
4723
|
const t = {}, e = N(i);
|
|
4721
4724
|
if (e)
|
|
@@ -4723,30 +4726,30 @@ function We(i) {
|
|
|
4723
4726
|
t[r.name] = (s = (r == null ? void 0 : r.value) || (r == null ? void 0 : r.textContent)) != null ? s : void 0;
|
|
4724
4727
|
return t;
|
|
4725
4728
|
}
|
|
4726
|
-
async function
|
|
4729
|
+
async function Ue(i) {
|
|
4727
4730
|
var t, e;
|
|
4728
4731
|
return (e = (t = i == null ? void 0 : i.clipboardData) == null ? void 0 : t.getData("text")) != null ? e : await navigator.clipboard.readText() || "";
|
|
4729
4732
|
}
|
|
4730
|
-
function
|
|
4733
|
+
function He(i = "datetime") {
|
|
4731
4734
|
return new ut(void 0, i).standard();
|
|
4732
4735
|
}
|
|
4733
4736
|
let At = q(1e5, 9e5);
|
|
4734
|
-
function
|
|
4737
|
+
function ze(i, t) {
|
|
4735
4738
|
const e = N(i);
|
|
4736
|
-
return e ? (
|
|
4739
|
+
return e ? (w(e.id) || e.setAttribute("id", `id-${At++}`), t ? `#${e.id}${t}`.trim() : e.id) : `id-${At++}`;
|
|
4737
4740
|
}
|
|
4738
|
-
function
|
|
4739
|
-
return
|
|
4741
|
+
function ye(i) {
|
|
4742
|
+
return R(i) ? _(
|
|
4740
4743
|
void 0,
|
|
4741
4744
|
"img",
|
|
4742
4745
|
{ src: i }
|
|
4743
4746
|
) : i;
|
|
4744
4747
|
}
|
|
4745
|
-
function
|
|
4746
|
-
const s = i
|
|
4748
|
+
function $e(i, t = "ig", e = ":value") {
|
|
4749
|
+
const s = Pt(i);
|
|
4747
4750
|
return new RegExp(e.replace(/:value/g, s), t);
|
|
4748
4751
|
}
|
|
4749
|
-
function
|
|
4752
|
+
function pe(i, t, e) {
|
|
4750
4753
|
const s = de(i);
|
|
4751
4754
|
if (!e || e <= 0)
|
|
4752
4755
|
return s.split(t);
|
|
@@ -4756,74 +4759,81 @@ function $e(i, t, e) {
|
|
|
4756
4759
|
o.slice(e - 1).join(t)
|
|
4757
4760
|
]);
|
|
4758
4761
|
}
|
|
4759
|
-
function
|
|
4762
|
+
function be(i, t) {
|
|
4760
4763
|
var r;
|
|
4761
|
-
if (!
|
|
4764
|
+
if (!w(t))
|
|
4762
4765
|
return;
|
|
4763
|
-
const e =
|
|
4764
|
-
return s && (i != null && i[s]) && f(i[s]) && (e != null && e[1]) ?
|
|
4766
|
+
const e = pe(t, ".", 2), s = e[0];
|
|
4767
|
+
return s && (i != null && i[s]) && f(i[s]) && (e != null && e[1]) ? be(i[s], e[1]) : (r = w(s) && (i == null ? void 0 : i[s])) != null ? r : void 0;
|
|
4765
4768
|
}
|
|
4766
|
-
function
|
|
4769
|
+
function Ze(i) {
|
|
4767
4770
|
var t, e, s;
|
|
4768
4771
|
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();
|
|
4769
4772
|
}
|
|
4770
|
-
function
|
|
4771
|
-
return
|
|
4772
|
-
}
|
|
4773
|
-
function Ze(i) {
|
|
4774
|
-
return Math.max(...Pt(i));
|
|
4773
|
+
function Wt(i) {
|
|
4774
|
+
return d(i, (t) => t.length);
|
|
4775
4775
|
}
|
|
4776
4776
|
function Ve(i) {
|
|
4777
|
-
return Math.
|
|
4777
|
+
return Math.max(...Wt(i));
|
|
4778
4778
|
}
|
|
4779
|
-
function
|
|
4779
|
+
function Ke(i) {
|
|
4780
|
+
return Math.min(...Wt(i));
|
|
4781
|
+
}
|
|
4782
|
+
function we(i) {
|
|
4780
4783
|
var t, e, s, r;
|
|
4781
4784
|
return (i == null ? void 0 : i.clientX) || ((e = (t = i == null ? void 0 : i.targetTouches) == null ? void 0 : t[0]) == null ? void 0 : e.clientX) || ((r = (s = i == null ? void 0 : i.touches) == null ? void 0 : s[0]) == null ? void 0 : r.clientX) || 0;
|
|
4782
4785
|
}
|
|
4783
|
-
function
|
|
4786
|
+
function ve(i) {
|
|
4784
4787
|
var t, e, s, r;
|
|
4785
4788
|
return (i == null ? void 0 : i.clientY) || ((e = (t = i == null ? void 0 : i.targetTouches) == null ? void 0 : t[0]) == null ? void 0 : e.clientY) || ((r = (s = i == null ? void 0 : i.touches) == null ? void 0 : s[0]) == null ? void 0 : r.clientY) || 0;
|
|
4786
4789
|
}
|
|
4787
|
-
function
|
|
4790
|
+
function Ye(i) {
|
|
4788
4791
|
return {
|
|
4789
|
-
x:
|
|
4790
|
-
y:
|
|
4792
|
+
x: we(i),
|
|
4793
|
+
y: ve(i)
|
|
4791
4794
|
};
|
|
4792
4795
|
}
|
|
4793
|
-
function
|
|
4796
|
+
function qe(i, t) {
|
|
4794
4797
|
const e = {};
|
|
4795
4798
|
return t.forEach((s) => {
|
|
4796
4799
|
s in i && i[s] !== void 0 && (e[s] = i[s]);
|
|
4797
4800
|
}), e;
|
|
4798
4801
|
}
|
|
4799
|
-
function
|
|
4802
|
+
function Je(i, t = void 0) {
|
|
4800
4803
|
const e = {};
|
|
4801
|
-
return
|
|
4804
|
+
return d(i, (s, r) => {
|
|
4802
4805
|
s !== t && (e[r] = s);
|
|
4803
4806
|
}), e;
|
|
4804
4807
|
}
|
|
4805
|
-
function
|
|
4808
|
+
function Me(i) {
|
|
4806
4809
|
return A(i) ? i : {};
|
|
4807
4810
|
}
|
|
4808
|
-
function
|
|
4809
|
-
return
|
|
4811
|
+
function Se(i, t) {
|
|
4812
|
+
return fe(i, t).join("");
|
|
4810
4813
|
}
|
|
4811
|
-
function
|
|
4814
|
+
function Qe(i, t, e = "#", s = 2, r = 12) {
|
|
4812
4815
|
const o = q(i, t), a = [];
|
|
4813
4816
|
for (let u = 0; u < o; u++)
|
|
4814
|
-
a.push(
|
|
4817
|
+
a.push(Se(e, q(s, r)));
|
|
4815
4818
|
return a.join(" ");
|
|
4816
4819
|
}
|
|
4817
|
-
function
|
|
4820
|
+
function Xe(i) {
|
|
4821
|
+
let t = "";
|
|
4822
|
+
return i.split(" ").forEach((e) => {
|
|
4823
|
+
const s = Pt(e).trim();
|
|
4824
|
+
w(s) && (t += `(?=.*?${s})`);
|
|
4825
|
+
}), new RegExp(`^${t}`, "ig");
|
|
4826
|
+
}
|
|
4827
|
+
function _e(i, t) {
|
|
4818
4828
|
const e = i != null ? i : 0;
|
|
4819
4829
|
return t > e ? 100 / (t - e) : 0;
|
|
4820
4830
|
}
|
|
4821
|
-
function
|
|
4831
|
+
function Oe(i, t) {
|
|
4822
4832
|
const e = i != null ? i : 0;
|
|
4823
4833
|
return t > e ? (t - e) / 100 : 0;
|
|
4824
4834
|
}
|
|
4825
4835
|
const Et = 0;
|
|
4826
|
-
function
|
|
4836
|
+
function Te(i, t, e) {
|
|
4827
4837
|
const s = t == null ? void 0 : t.closest(i);
|
|
4828
4838
|
if (t && s && s.scrollHeight !== s.offsetHeight) {
|
|
4829
4839
|
const r = s.getBoundingClientRect(), o = t.getBoundingClientRect();
|
|
@@ -4833,7 +4843,7 @@ function _e(i, t, e) {
|
|
|
4833
4843
|
} else s.scrollTop > t.offsetTop ? s.scrollTop = o.top - r.top - Et : s.scrollTop + s.offsetHeight < t.offsetTop + t.offsetHeight && (s.scrollTop = o.top - r.top + o.height - r.height + Et);
|
|
4834
4844
|
}
|
|
4835
4845
|
}
|
|
4836
|
-
function
|
|
4846
|
+
function Ge(i, t, e = 0) {
|
|
4837
4847
|
if (!l())
|
|
4838
4848
|
return;
|
|
4839
4849
|
const s = (t == null ? void 0 : t.behavior) || "smooth";
|
|
@@ -4853,7 +4863,7 @@ function Oe(i, t, e = 0) {
|
|
|
4853
4863
|
});
|
|
4854
4864
|
}
|
|
4855
4865
|
}
|
|
4856
|
-
function
|
|
4866
|
+
function ti(i, t, e = "smooth") {
|
|
4857
4867
|
if (!l() || !i || !t)
|
|
4858
4868
|
return;
|
|
4859
4869
|
const s = i.getBoundingClientRect(), r = t.getBoundingClientRect();
|
|
@@ -4863,35 +4873,35 @@ function Te(i, t, e = "smooth") {
|
|
|
4863
4873
|
behavior: e
|
|
4864
4874
|
});
|
|
4865
4875
|
}
|
|
4866
|
-
function
|
|
4876
|
+
function ei(i, t) {
|
|
4867
4877
|
return i.indexOf(t) !== -1;
|
|
4868
4878
|
}
|
|
4869
|
-
async function
|
|
4879
|
+
async function ii() {
|
|
4870
4880
|
if (l()) {
|
|
4871
4881
|
const i = await ot.get();
|
|
4872
4882
|
document.body.style.setProperty("--sys-scrollbar-offset", `${i}px`);
|
|
4873
4883
|
}
|
|
4874
4884
|
}
|
|
4875
|
-
function
|
|
4885
|
+
function si(i, t) {
|
|
4876
4886
|
const e = {};
|
|
4877
|
-
return f(i) && f(t) &&
|
|
4887
|
+
return f(i) && f(t) && d(i, (s, r) => {
|
|
4878
4888
|
r in t && (e[r] = s);
|
|
4879
4889
|
}), e;
|
|
4880
4890
|
}
|
|
4881
|
-
function
|
|
4891
|
+
function ri(i, t) {
|
|
4882
4892
|
let e = Object.keys(i).length !== Object.keys(t).length;
|
|
4883
|
-
return e ||
|
|
4893
|
+
return e || d(i, (s, r) => {
|
|
4884
4894
|
s !== (t == null ? void 0 : t[r]) && (e = !0);
|
|
4885
4895
|
}), e;
|
|
4886
4896
|
}
|
|
4887
|
-
const
|
|
4897
|
+
const De = (i) => {
|
|
4888
4898
|
if (i instanceof HTMLElement) {
|
|
4889
4899
|
const t = i.tagName.toLowerCase();
|
|
4890
4900
|
return !!(t === "input" || t === "textarea" || t === "select" || i.isContentEditable || i.getAttribute("contenteditable") === "true");
|
|
4891
4901
|
}
|
|
4892
4902
|
return !1;
|
|
4893
|
-
},
|
|
4894
|
-
function
|
|
4903
|
+
}, ni = (i, t) => i.code === "Space" || i.code === "Enter" || i.key === " " || i.key === "Spacebar" || i.key === "Enter" || i.keyCode === 13 || i.keyCode === 32 ? t !== void 0 ? !t : !De(i.target) : !1;
|
|
4904
|
+
function oi(i) {
|
|
4895
4905
|
switch (typeof i) {
|
|
4896
4906
|
case "number":
|
|
4897
4907
|
return !0;
|
|
@@ -4901,14 +4911,14 @@ function ri(i) {
|
|
|
4901
4911
|
return !1;
|
|
4902
4912
|
}
|
|
4903
4913
|
}
|
|
4904
|
-
function
|
|
4914
|
+
function ai(i, t) {
|
|
4905
4915
|
const e = Math.floor(t);
|
|
4906
4916
|
return i >= e && i < e + 1;
|
|
4907
4917
|
}
|
|
4908
|
-
function
|
|
4918
|
+
function ci(i, t) {
|
|
4909
4919
|
return Array.isArray(i) ? i.every((e) => rt(e, t)) : rt(i, t);
|
|
4910
4920
|
}
|
|
4911
|
-
function
|
|
4921
|
+
function ui(i, t) {
|
|
4912
4922
|
if (i.startsWith(t))
|
|
4913
4923
|
return i.slice(t.length).trim();
|
|
4914
4924
|
let e = 0;
|
|
@@ -4916,20 +4926,20 @@ function ai(i, t) {
|
|
|
4916
4926
|
e++;
|
|
4917
4927
|
return i.slice(e).trim();
|
|
4918
4928
|
}
|
|
4919
|
-
const
|
|
4929
|
+
const hi = (i, t, e) => {
|
|
4920
4930
|
var s, r;
|
|
4921
4931
|
return (r = (s = i == null ? void 0 : i.replace(new RegExp(`<${t}`, "ig"), `<${e}`)) == null ? void 0 : s.replace(new RegExp(`</${t}`, "ig"), `</${e}`)) == null ? void 0 : r.trim();
|
|
4922
4932
|
};
|
|
4923
|
-
function
|
|
4933
|
+
function Le(i) {
|
|
4924
4934
|
return [...new Set(i)];
|
|
4925
4935
|
}
|
|
4926
4936
|
function V(i, t, e = !0) {
|
|
4927
4937
|
const s = U(i);
|
|
4928
|
-
return f(i) && f(t) &&
|
|
4938
|
+
return f(i) && f(t) && d(
|
|
4929
4939
|
t,
|
|
4930
4940
|
(r, o) => {
|
|
4931
4941
|
const a = i == null ? void 0 : i[o];
|
|
4932
|
-
f(a) && f(r) ? e && Array.isArray(a) && Array.isArray(r) ? s[o] = U(
|
|
4942
|
+
f(a) && f(r) ? e && Array.isArray(a) && Array.isArray(r) ? s[o] = U(Le([...a, ...r])) : s[o] = V(
|
|
4933
4943
|
Array.isArray(a) ? { ...a } : a,
|
|
4934
4944
|
r,
|
|
4935
4945
|
e
|
|
@@ -4937,13 +4947,13 @@ function V(i, t, e = !0) {
|
|
|
4937
4947
|
}
|
|
4938
4948
|
), s;
|
|
4939
4949
|
}
|
|
4940
|
-
function
|
|
4950
|
+
function li(i, t) {
|
|
4941
4951
|
let e = i;
|
|
4942
|
-
return
|
|
4943
|
-
e = e.replace(
|
|
4952
|
+
return d(t, (s, r) => {
|
|
4953
|
+
e = e.replace($e(`[${r}]`), B(s));
|
|
4944
4954
|
}), e;
|
|
4945
4955
|
}
|
|
4946
|
-
function
|
|
4956
|
+
function Ce(i, t = "auto") {
|
|
4947
4957
|
switch (t) {
|
|
4948
4958
|
case "auto":
|
|
4949
4959
|
return i.naturalWidth >= i.naturalHeight;
|
|
@@ -4953,16 +4963,16 @@ function Le(i, t = "auto") {
|
|
|
4953
4963
|
return !1;
|
|
4954
4964
|
}
|
|
4955
4965
|
}
|
|
4956
|
-
function
|
|
4966
|
+
function gi(i, t, e = "auto", s) {
|
|
4957
4967
|
var o;
|
|
4958
|
-
const r =
|
|
4968
|
+
const r = ye(i);
|
|
4959
4969
|
if (r && (r.naturalWidth > t && (e === "auto" || e === "width") || r.naturalHeight > t && (e === "auto" || e === "height"))) {
|
|
4960
|
-
const a =
|
|
4970
|
+
const a = Ce(r, e), u = (o = document.createElement("canvas")) == null ? void 0 : o.getContext("2d");
|
|
4961
4971
|
if (u)
|
|
4962
4972
|
return u.canvas.width = a ? t : r.naturalWidth / r.naturalHeight * t, u.canvas.height = a ? r.naturalHeight / r.naturalWidth * t : t, u.drawImage(r, 0, 0, u.canvas.width, u.canvas.height), u.canvas.toDataURL(s);
|
|
4963
4973
|
}
|
|
4964
4974
|
}
|
|
4965
|
-
function
|
|
4975
|
+
function di(i) {
|
|
4966
4976
|
const t = k(i);
|
|
4967
4977
|
if (t > 0) {
|
|
4968
4978
|
const e = String(Math.floor(t / 60)).padStart(2, "0"), s = String(t % 60).padStart(2, "0");
|
|
@@ -4970,7 +4980,7 @@ function li(i) {
|
|
|
4970
4980
|
}
|
|
4971
4981
|
return "00:00";
|
|
4972
4982
|
}
|
|
4973
|
-
function
|
|
4983
|
+
function fi(i, t, {
|
|
4974
4984
|
multiple: e = !1,
|
|
4975
4985
|
maxlength: s = 0,
|
|
4976
4986
|
alwaysChange: r = !0,
|
|
@@ -4985,11 +4995,11 @@ function di(i, t, {
|
|
|
4985
4995
|
}
|
|
4986
4996
|
return r || i !== t ? t : i;
|
|
4987
4997
|
}
|
|
4988
|
-
function
|
|
4998
|
+
function mi(i, t, e) {
|
|
4989
4999
|
if (f(i) && f(t)) {
|
|
4990
5000
|
if (e) {
|
|
4991
5001
|
let s = {}, r = !1;
|
|
4992
|
-
return
|
|
5002
|
+
return d(i, (o, a) => {
|
|
4993
5003
|
!r && (e === a || e === o) ? (r = !0, s = V(s, t)) : r ? s = V(s, { [a]: o }) : s[a] = f(o) ? U(o) : o;
|
|
4994
5004
|
}), r ? s : V(i, t);
|
|
4995
5005
|
}
|
|
@@ -4998,33 +5008,33 @@ function gi(i, t, e) {
|
|
|
4998
5008
|
}
|
|
4999
5009
|
return U(i);
|
|
5000
5010
|
}
|
|
5001
|
-
function
|
|
5011
|
+
function ke(i) {
|
|
5002
5012
|
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()}`);
|
|
5003
5013
|
}
|
|
5004
|
-
function
|
|
5005
|
-
return
|
|
5014
|
+
function yi(i) {
|
|
5015
|
+
return ke(i).replace(/^([a-z])/, (t) => `${t.toUpperCase()}`);
|
|
5006
5016
|
}
|
|
5007
|
-
function
|
|
5017
|
+
function $i(i) {
|
|
5008
5018
|
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());
|
|
5009
5019
|
}
|
|
5010
|
-
function
|
|
5020
|
+
function pi(i, t, e, s) {
|
|
5011
5021
|
const r = k(i), o = k(t);
|
|
5012
5022
|
return t && o < r ? `${Bt(o, e, s)}+` : Bt(r, e, s);
|
|
5013
5023
|
}
|
|
5014
5024
|
const Bt = (i, t, e) => t ? new M(e).number(i) : i;
|
|
5015
|
-
function
|
|
5025
|
+
function Ne(i, t) {
|
|
5016
5026
|
return 1 / i * t;
|
|
5017
5027
|
}
|
|
5018
|
-
function
|
|
5019
|
-
return
|
|
5028
|
+
function bi(i, t) {
|
|
5029
|
+
return Ne(i, t) * 100;
|
|
5020
5030
|
}
|
|
5021
|
-
function
|
|
5031
|
+
function wi(i) {
|
|
5022
5032
|
let t = "";
|
|
5023
5033
|
for (const e of i)
|
|
5024
5034
|
t += String.fromCharCode(e);
|
|
5025
5035
|
return l() ? window.btoa(t) : globalThis && globalThis.Buffer ? globalThis == null ? void 0 : globalThis.Buffer.from(i).toString("base64") : "";
|
|
5026
5036
|
}
|
|
5027
|
-
async function
|
|
5037
|
+
async function vi(i) {
|
|
5028
5038
|
if (l())
|
|
5029
5039
|
try {
|
|
5030
5040
|
await navigator.clipboard.writeText(i);
|
|
@@ -5034,18 +5044,18 @@ async function bi(i) {
|
|
|
5034
5044
|
}
|
|
5035
5045
|
export {
|
|
5036
5046
|
H as Api,
|
|
5037
|
-
|
|
5038
|
-
|
|
5047
|
+
Kt as ApiDefault,
|
|
5048
|
+
Vt as ApiHeaders,
|
|
5039
5049
|
L as ApiMethodItem,
|
|
5040
|
-
|
|
5041
|
-
|
|
5050
|
+
Jt as ApiPreparation,
|
|
5051
|
+
qt as ApiResponse,
|
|
5042
5052
|
$t as ApiStatus,
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5053
|
+
Be as BroadcastMessage,
|
|
5054
|
+
Xt as Cache,
|
|
5055
|
+
Qt as CacheItem,
|
|
5046
5056
|
bt as CacheStatic,
|
|
5047
5057
|
wt as Cookie,
|
|
5048
|
-
|
|
5058
|
+
Rt as CookieBlock,
|
|
5049
5059
|
T as DataStorage,
|
|
5050
5060
|
ut as Datetime,
|
|
5051
5061
|
mt as EventItem,
|
|
@@ -5054,115 +5064,117 @@ export {
|
|
|
5054
5064
|
vt as GeoFlag,
|
|
5055
5065
|
M as GeoIntl,
|
|
5056
5066
|
St as GeoPhone,
|
|
5057
|
-
|
|
5067
|
+
Ie as Global,
|
|
5058
5068
|
Dt as Hash,
|
|
5059
5069
|
kt as Icons,
|
|
5060
5070
|
I as Loading,
|
|
5061
|
-
|
|
5071
|
+
Fe as Meta,
|
|
5062
5072
|
ht as MetaManager,
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5073
|
+
ce as MetaOg,
|
|
5074
|
+
ne as MetaOpenGraphAge,
|
|
5075
|
+
se as MetaOpenGraphAvailability,
|
|
5076
|
+
re as MetaOpenGraphCondition,
|
|
5077
|
+
oe as MetaOpenGraphGender,
|
|
5068
5078
|
y as MetaOpenGraphTag,
|
|
5069
|
-
|
|
5070
|
-
|
|
5079
|
+
ie as MetaOpenGraphType,
|
|
5080
|
+
ee as MetaRobots,
|
|
5071
5081
|
D as MetaTag,
|
|
5072
|
-
|
|
5073
|
-
|
|
5082
|
+
ue as MetaTwitter,
|
|
5083
|
+
ae as MetaTwitterCard,
|
|
5074
5084
|
$ as MetaTwitterTag,
|
|
5075
5085
|
ot as ScrollbarWidth,
|
|
5076
|
-
|
|
5086
|
+
ge as TRANSLATE_GLOBAL_PREFIX,
|
|
5077
5087
|
Nt as Translate,
|
|
5078
5088
|
de as anyToString,
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5089
|
+
le as applyTemplate,
|
|
5090
|
+
fe as arrFill,
|
|
5091
|
+
xe as blobToBase64,
|
|
5082
5092
|
U as copyObject,
|
|
5083
5093
|
C as copyObjectLite,
|
|
5084
5094
|
_ as createElement,
|
|
5085
5095
|
Re as domQuerySelector,
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5096
|
+
Pe as domQuerySelectorAll,
|
|
5097
|
+
te as encodeAttribute,
|
|
5098
|
+
Pt as escapeExp,
|
|
5099
|
+
We as eventStopPropagation,
|
|
5089
5100
|
B as executeFunction,
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5101
|
+
Yt as executePromise,
|
|
5102
|
+
d as forEach,
|
|
5103
|
+
me as frame,
|
|
5104
|
+
je as getAttributes,
|
|
5105
|
+
Ue as getClipboardData,
|
|
5106
|
+
Ot as getColumn,
|
|
5107
|
+
He as getCurrentDate,
|
|
5097
5108
|
N as getElement,
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5109
|
+
ze as getElementId,
|
|
5110
|
+
ye as getElementImage,
|
|
5111
|
+
Tt as getElementItem,
|
|
5101
5112
|
ft as getElementOrWindow,
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5113
|
+
$e as getExp,
|
|
5114
|
+
be as getItemByPath,
|
|
5115
|
+
Ze as getKey,
|
|
5116
|
+
Wt as getLengthOfAllArray,
|
|
5117
|
+
Ve as getMaxLengthAllArray,
|
|
5118
|
+
Ke as getMinLengthAllArray,
|
|
5119
|
+
Ye as getMouseClient,
|
|
5120
|
+
we as getMouseClientX,
|
|
5121
|
+
ve as getMouseClientY,
|
|
5122
|
+
qe as getObjectByKeys,
|
|
5123
|
+
Je as getObjectNoUndefined,
|
|
5124
|
+
Me as getObjectOrNone,
|
|
5125
|
+
Qe as getRandomText,
|
|
5115
5126
|
It as getRequestString,
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5127
|
+
Xe as getSearchExp,
|
|
5128
|
+
_e as getStepPercent,
|
|
5129
|
+
Oe as getStepValue,
|
|
5130
|
+
Te as goScroll,
|
|
5131
|
+
Ge as goScrollSmooth,
|
|
5132
|
+
ti as goScrollTo,
|
|
5133
|
+
ei as inArray,
|
|
5134
|
+
ii as initScrollbarOffset,
|
|
5135
|
+
si as intersectKey,
|
|
5124
5136
|
at as isArray,
|
|
5125
|
-
|
|
5137
|
+
ri as isDifferent,
|
|
5126
5138
|
nt as isDomData,
|
|
5127
5139
|
l as isDomRuntime,
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5140
|
+
ni as isEnter,
|
|
5141
|
+
w as isFilled,
|
|
5142
|
+
oi as isFloat,
|
|
5131
5143
|
ct as isFunction,
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5144
|
+
Zt as isInDom,
|
|
5145
|
+
De as isInput,
|
|
5146
|
+
ai as isIntegerBetween,
|
|
5135
5147
|
J as isNull,
|
|
5136
|
-
|
|
5148
|
+
gt as isNumber,
|
|
5137
5149
|
f as isObject,
|
|
5138
5150
|
A as isObjectNotArray,
|
|
5139
5151
|
rt as isSelected,
|
|
5140
|
-
|
|
5141
|
-
|
|
5152
|
+
ci as isSelectedByList,
|
|
5153
|
+
R as isString,
|
|
5142
5154
|
Ft as isWindow,
|
|
5143
5155
|
q as random,
|
|
5144
|
-
|
|
5145
|
-
|
|
5156
|
+
ui as removeCommonPrefix,
|
|
5157
|
+
hi as replaceComponentName,
|
|
5146
5158
|
V as replaceRecursive,
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5159
|
+
li as replaceTemplate,
|
|
5160
|
+
gi as resizeImageByMax,
|
|
5161
|
+
di as secondToTime,
|
|
5162
|
+
Gt as setElementItem,
|
|
5163
|
+
fi as setValues,
|
|
5164
|
+
mi as splice,
|
|
5165
|
+
Se as strFill,
|
|
5166
|
+
pe as strSplit,
|
|
5155
5167
|
z as toArray,
|
|
5156
|
-
|
|
5157
|
-
|
|
5168
|
+
ke as toCamelCase,
|
|
5169
|
+
yi as toCamelCaseFirst,
|
|
5158
5170
|
F as toDate,
|
|
5159
|
-
|
|
5171
|
+
$i as toKebabCase,
|
|
5160
5172
|
k as toNumber,
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5173
|
+
pi as toNumberByMax,
|
|
5174
|
+
Ne as toPercent,
|
|
5175
|
+
bi as toPercentBy100,
|
|
5176
|
+
xt as transformation,
|
|
5177
|
+
wi as uint8ArrayToBase64,
|
|
5178
|
+
Le as uniqueArray,
|
|
5179
|
+
vi as writeClipboardData
|
|
5168
5180
|
};
|