@dxtmisha/functional-basic 0.12.4 → 0.12.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/library.js CHANGED
@@ -74,18 +74,28 @@ function u(e) {
74
74
  return typeof e == "string";
75
75
  }
76
76
  //#endregion
77
+ //#region src/functions/random.ts
78
+ function d(e, t) {
79
+ return Math.floor(Math.random() * (t - e + 1) + e);
80
+ }
81
+ //#endregion
82
+ //#region src/functions/sleep.ts
83
+ function f(e) {
84
+ return new Promise((t) => setTimeout(t, e));
85
+ }
86
+ //#endregion
77
87
  //#region src/functions/copyObject.ts
78
- function d(e) {
88
+ function p(e) {
79
89
  return JSON.parse(JSON.stringify(e));
80
90
  }
81
91
  //#endregion
82
92
  //#region src/functions/isDomRuntime.ts
83
- function f() {
93
+ function m() {
84
94
  return typeof window < "u" && !!window.document;
85
95
  }
86
96
  //#endregion
87
97
  //#region src/functions/isNumber.ts
88
- function p(e) {
98
+ function h(e) {
89
99
  switch (typeof e) {
90
100
  case "number": return !0;
91
101
  case "string": return !!e.match(/^-?[0-9]+(\.[0-9]+)?$/);
@@ -94,7 +104,7 @@ function p(e) {
94
104
  }
95
105
  //#endregion
96
106
  //#region src/functions/toNumber.ts
97
- function m(e) {
107
+ function g(e) {
98
108
  if (typeof e == "number") return e;
99
109
  if (!e) return 0;
100
110
  let t = e.replace(/[^\d., ]+/gi, "");
@@ -102,55 +112,55 @@ function m(e) {
102
112
  }
103
113
  //#endregion
104
114
  //#region src/functions/isSelected.ts
105
- function h(e, t) {
106
- return s(e) ? !1 : Array.isArray(t) ? t.includes(e) : p(e) && p(t) ? m(e) === m(t) : e === t;
115
+ function _(e, t) {
116
+ return s(e) ? !1 : Array.isArray(t) ? t.includes(e) : h(e) && h(t) ? g(e) === g(t) : e === t;
107
117
  }
108
118
  //#endregion
109
119
  //#region src/functions/isFunction.ts
110
- function g(e) {
120
+ function v(e) {
111
121
  return e instanceof Function || typeof e == "function";
112
122
  }
113
123
  //#endregion
114
124
  //#region src/functions/executeFunction.ts
115
- function _(e) {
116
- return g(e) ? e() : e;
125
+ function y(e) {
126
+ return v(e) ? e() : e;
117
127
  }
118
128
  //#endregion
119
129
  //#region src/functions/isDomData.ts
120
- function v() {
130
+ function b() {
121
131
  return location.href.startsWith("data:");
122
132
  }
123
133
  //#endregion
124
- //#region \0@oxc-project+runtime@0.120.0/helpers/typeof.js
125
- function y(e) {
134
+ //#region \0@oxc-project+runtime@0.122.0/helpers/typeof.js
135
+ function x(e) {
126
136
  "@babel/helpers - typeof";
127
- return y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
137
+ return x = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
128
138
  return typeof e;
129
139
  } : function(e) {
130
140
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
131
- }, y(e);
141
+ }, x(e);
132
142
  }
133
143
  //#endregion
134
- //#region \0@oxc-project+runtime@0.120.0/helpers/toPrimitive.js
144
+ //#region \0@oxc-project+runtime@0.122.0/helpers/toPrimitive.js
135
145
  function ee(e, t) {
136
- if (y(e) != "object" || !e) return e;
146
+ if (x(e) != "object" || !e) return e;
137
147
  var n = e[Symbol.toPrimitive];
138
148
  if (n !== void 0) {
139
149
  var r = n.call(e, t || "default");
140
- if (y(r) != "object") return r;
150
+ if (x(r) != "object") return r;
141
151
  throw TypeError("@@toPrimitive must return a primitive value.");
142
152
  }
143
153
  return (t === "string" ? String : Number)(e);
144
154
  }
145
155
  //#endregion
146
- //#region \0@oxc-project+runtime@0.120.0/helpers/toPropertyKey.js
156
+ //#region \0@oxc-project+runtime@0.122.0/helpers/toPropertyKey.js
147
157
  function te(e) {
148
158
  var t = ee(e, "string");
149
- return y(t) == "symbol" ? t : t + "";
159
+ return x(t) == "symbol" ? t : t + "";
150
160
  }
151
161
  //#endregion
152
- //#region \0@oxc-project+runtime@0.120.0/helpers/defineProperty.js
153
- function b(e, t, n) {
162
+ //#region \0@oxc-project+runtime@0.122.0/helpers/defineProperty.js
163
+ function S(e, t, n) {
154
164
  return (t = te(t)) in e ? Object.defineProperty(e, t, {
155
165
  value: n,
156
166
  enumerable: !0,
@@ -162,7 +172,7 @@ function b(e, t, n) {
162
172
  //#region src/classes/ErrorCenterHandler.ts
163
173
  var ne = class {
164
174
  constructor(e) {
165
- b(this, "handlers", []), e && this.addList(e);
175
+ S(this, "handlers", []), e && this.addList(e);
166
176
  }
167
177
  has(e) {
168
178
  return !!this.get(e);
@@ -181,7 +191,7 @@ var ne = class {
181
191
  return e.forEach((e) => e.handlers.forEach((t) => this.add(e.group, t))), this;
182
192
  }
183
193
  on(e) {
184
- if (f()) {
194
+ if (m()) {
185
195
  var t;
186
196
  let n = (t = this.get(e.group)) == null ? this.get(void 0) : t;
187
197
  n && n.handlers.forEach((t) => t(e)), this.toConsole(e);
@@ -193,7 +203,7 @@ var ne = class {
193
203
  }
194
204
  }, re = class {
195
205
  constructor(e, t = new ne()) {
196
- b(this, "causes", []), this.handler = t, e && this.addList(e);
206
+ S(this, "causes", []), this.handler = t, e && this.addList(e);
197
207
  }
198
208
  has(e, t) {
199
209
  return !!this.get(e, t);
@@ -202,10 +212,10 @@ var ne = class {
202
212
  return this.causes.find((n) => n.group === t && n.code === e);
203
213
  }
204
214
  add(e) {
205
- return this.causes.push(e), this;
215
+ return this.causes.unshift(e), this;
206
216
  }
207
217
  addList(e) {
208
- return this.causes.push(...e), this;
218
+ return this.causes.unshift(...e), this;
209
219
  }
210
220
  addHandler(e, t) {
211
221
  return this.handler.add(e, t), this;
@@ -296,7 +306,7 @@ var ne = class {
296
306
  label: "Intl Number Error",
297
307
  message: "An unexpected error occurred. Please try again later."
298
308
  }
299
- ], x = class {
309
+ ], C = class {
300
310
  static has(e, t) {
301
311
  return this.item.has(e, t);
302
312
  }
@@ -322,15 +332,15 @@ var ne = class {
322
332
  return this.item.on(e), this;
323
333
  }
324
334
  };
325
- b(x, "item", new re(ie));
335
+ S(C, "item", new re(ie));
326
336
  //#endregion
327
337
  //#region src/classes/DataStorage.ts
328
- var ae = {}, oe = "ui-storage", S = class {
338
+ var ae = {}, oe = "ui-storage", w = class {
329
339
  static setPrefix(e) {
330
340
  oe = e;
331
341
  }
332
- constructor(e, t = !1, n = x.getItem()) {
333
- b(this, "value", void 0), b(this, "age", void 0), this.name = e, this.isSession = t, this.errorCenter = n;
342
+ constructor(e, t = !1, n = C.getItem()) {
343
+ S(this, "value", void 0), S(this, "age", void 0), this.name = e, this.isSession = t, this.errorCenter = n;
334
344
  let r = `${t ? "session" : "storage"}#${e}`;
335
345
  if (r in ae) return ae[r];
336
346
  this.make(), ae[r] = this;
@@ -340,7 +350,7 @@ var ae = {}, oe = "ui-storage", S = class {
340
350
  if (e !== void 0) return this.set(e);
341
351
  }
342
352
  set(e) {
343
- if (this.value = _(e), this.age = (/* @__PURE__ */ new Date()).getTime(), this.value === void 0) this.remove();
353
+ if (this.value = y(e), this.age = (/* @__PURE__ */ new Date()).getTime(), this.value === void 0) this.remove();
344
354
  else {
345
355
  var t;
346
356
  (t = this.getMethod()) == null || t.setItem(this.getIndex(), JSON.stringify({
@@ -361,7 +371,7 @@ var ae = {}, oe = "ui-storage", S = class {
361
371
  return s(e) || this.age && this.age + e * 1e3 >= (/* @__PURE__ */ new Date()).getTime();
362
372
  }
363
373
  getMethod() {
364
- if (f() && !v()) {
374
+ if (m() && !b()) {
365
375
  var e, t;
366
376
  let n = this.isSession ? (e = window) == null ? void 0 : e.sessionStorage : (t = window) == null ? void 0 : t.localStorage;
367
377
  if (n) return n;
@@ -387,7 +397,7 @@ var ae = {}, oe = "ui-storage", S = class {
387
397
  let e = this.getValue();
388
398
  return e ? (this.value = e.value, this.age = e.age) : (this.value = void 0, this.age = void 0), this;
389
399
  }
390
- }, C, se = "geo-code", w = class {
400
+ }, T, se = "geo-code", E = class {
391
401
  static get() {
392
402
  return this.item;
393
403
  }
@@ -415,10 +425,10 @@ var ae = {}, oe = "ui-storage", S = class {
415
425
  static getByCode(e) {
416
426
  var t;
417
427
  let n;
418
- return e && (e.match(/([A-Z]{2}-[a-z]{2})|([a-z]{2}-[A-Z]{2})/) && (n = this.getByCodeFull(e)), !n && e.match(/[A-Z]{2}/) && (n = this.getByCountry(this.toCountry(e))), !n && e.match(/[a-z]{2}/) && (n = this.getByLanguage(this.toLanguage(e)))), this.toFull(d((t = n) == null ? this.getList()[0] : t));
428
+ return e && (e.match(/([A-Z]{2}-[a-z]{2})|([a-z]{2}-[A-Z]{2})/) && (n = this.getByCodeFull(e)), !n && e.match(/[A-Z]{2}/) && (n = this.getByCountry(this.toCountry(e))), !n && e.match(/[a-z]{2}/) && (n = this.getByLanguage(this.toLanguage(e)))), this.toFull(p((t = n) == null ? this.getList()[0] : t));
419
429
  }
420
430
  static getByCodeFull(e) {
421
- return this.getList().find((t) => h(e, [`${t.language}-${t.country}`, `${t.country}-${t.language}`]));
431
+ return this.getList().find((t) => _(e, [`${t.language}-${t.country}`, `${t.country}-${t.language}`]));
422
432
  }
423
433
  static getByCountry(e) {
424
434
  return this.getList().find((t) => {
@@ -453,7 +463,7 @@ var ae = {}, oe = "ui-storage", S = class {
453
463
  }
454
464
  static findLocation() {
455
465
  var e;
456
- return f() && (this.storage.get() || ((e = document.querySelector("html")) == null ? void 0 : e.lang) || navigator.language || navigator.languages[0] || "en-GB") || "en-GB";
466
+ return m() && (this.storage.get() || ((e = document.querySelector("html")) == null ? void 0 : e.lang) || navigator.language || navigator.languages[0] || "en-GB") || "en-GB";
457
467
  }
458
468
  static findLanguage(e) {
459
469
  return e && e.match(/[a-z]{2}/) ? this.toLanguage(e) : this.item.language;
@@ -471,16 +481,16 @@ var ae = {}, oe = "ui-storage", S = class {
471
481
  });
472
482
  }
473
483
  };
474
- C = w, b(w, "storage", new S(se)), b(w, "location", void 0), b(w, "item", void 0), b(w, "language", void 0), b(w, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), C.location = C.findLocation(), C.language = C.findLanguage(C.location), C.item = C.getByCode(C.location);
484
+ T = E, S(E, "storage", new w(se)), S(E, "location", void 0), S(E, "item", void 0), S(E, "language", void 0), S(E, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), T.location = T.findLocation(), T.language = T.findLanguage(T.location), T.item = T.getByCode(T.location);
475
485
  //#endregion
476
486
  //#region src/functions/isWindow.ts
477
487
  function ce(e) {
478
- return f() && e === window;
488
+ return m() && e === window;
479
489
  }
480
490
  //#endregion
481
491
  //#region src/functions/getElement.ts
482
- function T(e) {
483
- if (f()) {
492
+ function D(e) {
493
+ if (m()) {
484
494
  if (ce(e)) return document.body;
485
495
  if (u(e)) {
486
496
  var t;
@@ -491,30 +501,30 @@ function T(e) {
491
501
  }
492
502
  //#endregion
493
503
  //#region src/functions/getElementOrWindow.ts
494
- function le(e) {
495
- return ce(e) ? e : T(e);
504
+ function O(e) {
505
+ return ce(e) ? e : D(e);
496
506
  }
497
507
  //#endregion
498
508
  //#region src/functions/isInDom.ts
499
- function ue(e) {
509
+ function le(e) {
500
510
  var t;
501
- return !!((t = T(e)) != null && t.closest("html"));
511
+ return !!((t = D(e)) != null && t.closest("html"));
502
512
  }
503
513
  //#endregion
504
514
  //#region src/functions/toArray.ts
505
- function E(e) {
515
+ function k(e) {
506
516
  return Array.isArray(e) ? e : [e];
507
517
  }
508
518
  //#endregion
509
519
  //#region src/classes/EventItem.ts
510
- var de = class {
520
+ var A = class {
511
521
  constructor(e, n = ["click"], r, i, a) {
512
- b(this, "element", void 0), b(this, "elementControl", void 0), b(this, "elementControlEdit", void 0), b(this, "type", void 0), b(this, "listenerRecent", (e) => {
513
- if (ue(this.elementControl)) {
522
+ S(this, "element", void 0), S(this, "elementControl", void 0), S(this, "elementControlEdit", void 0), S(this, "type", void 0), S(this, "listenerRecent", (e) => {
523
+ if (le(this.elementControl)) {
514
524
  var n, r;
515
525
  (n = this.listener) == null || n.call(this.element, e, this.detail), t(this.options) && (r = this.options) != null && r.once && this.stop();
516
526
  } else this.stop();
517
- }), b(this, "activity", !1), b(this, "activityItems", []), this.listener = r, this.options = i, this.detail = a, this.element = le(e), this.elementControl = T(e), this.type = E(n);
527
+ }), S(this, "activity", !1), S(this, "activityItems", []), this.listener = r, this.options = i, this.detail = a, this.element = O(e), this.elementControl = D(e), this.type = k(n);
518
528
  }
519
529
  isActive() {
520
530
  return this.activity;
@@ -523,14 +533,14 @@ var de = class {
523
533
  return this.element;
524
534
  }
525
535
  setElement(e) {
526
- let t = le(e);
527
- return this.elementControlEdit || (this.elementControl = T(e)), this.element = t, this.reset(), this;
536
+ let t = O(e);
537
+ return this.elementControlEdit || (this.elementControl = D(e)), this.element = t, this.reset(), this;
528
538
  }
529
539
  setElementControl(e) {
530
- return this.elementControl = T(e), this.elementControlEdit = !s(this.elementControl), this.elementControlEdit || (this.elementControl = T(this.element)), this;
540
+ return this.elementControl = D(e), this.elementControlEdit = !s(this.elementControl), this.elementControlEdit || (this.elementControl = D(this.element)), this;
531
541
  }
532
542
  setType(e) {
533
- return this.type = E(e), this.reset(), this;
543
+ return this.type = k(e), this.reset(), this;
534
544
  }
535
545
  setListener(e) {
536
546
  return this.listener = e, this;
@@ -599,9 +609,9 @@ var de = class {
599
609
  }
600
610
  return !1;
601
611
  }
602
- }, fe = "ui-loading", pe = class {
603
- constructor(e = fe) {
604
- b(this, "value", 0), b(this, "event", void 0), b(this, "registrationList", []), this.eventName = e, f() && (this.event = new de(window, this.eventName));
612
+ }, ue = "ui-loading", de = class {
613
+ constructor(e = ue) {
614
+ S(this, "value", 0), S(this, "event", void 0), S(this, "registrationList", []), this.eventName = e, m() && (this.event = new A(window, this.eventName));
605
615
  }
606
616
  is() {
607
617
  return this.value > 0;
@@ -616,8 +626,8 @@ var de = class {
616
626
  this.is() && (this.value--, this.dispatch());
617
627
  }
618
628
  registrationEvent(e, t) {
619
- if (f()) {
620
- let n = new de(window, this.eventName, e).setElementControl(t).start();
629
+ if (m()) {
630
+ let n = new A(window, this.eventName, e).setElementControl(t).start();
621
631
  this.registrationList.push({
622
632
  item: n,
623
633
  listener: e,
@@ -632,7 +642,7 @@ var de = class {
632
642
  var e;
633
643
  (e = this.event) == null || e.dispatch({ loading: this.is() });
634
644
  }
635
- }, D = class {
645
+ }, j = class {
636
646
  static is() {
637
647
  return this.item.is();
638
648
  }
@@ -655,12 +665,12 @@ var de = class {
655
665
  this.item.unregistrationEvent(e, t);
656
666
  }
657
667
  };
658
- b(D, "item", new pe());
668
+ S(j, "item", new de());
659
669
  //#endregion
660
670
  //#region src/classes/ApiHeaders.ts
661
- var me = class {
671
+ var fe = class {
662
672
  constructor() {
663
- b(this, "headers", {});
673
+ S(this, "headers", {});
664
674
  }
665
675
  get(e, t = "application/json;charset=UTF-8") {
666
676
  if (e !== null) {
@@ -671,11 +681,11 @@ var me = class {
671
681
  set(e) {
672
682
  return n(e) && (this.headers = e), this;
673
683
  }
674
- }, O = /* @__PURE__ */ function(e) {
684
+ }, M = /* @__PURE__ */ function(e) {
675
685
  return e.get = "GET", e.post = "POST", e.put = "PUT", e.delete = "DELETE", e;
676
- }({}), he = class {
686
+ }({}), pe = class {
677
687
  constructor() {
678
- b(this, "value", void 0);
688
+ S(this, "value", void 0);
679
689
  }
680
690
  is() {
681
691
  return !!this.value;
@@ -697,9 +707,9 @@ var me = class {
697
707
  addByFormData(e, t) {
698
708
  for (let n in t) e.has(n) || e.set(n, t[n]);
699
709
  }
700
- }, ge = class {
710
+ }, me = class {
701
711
  constructor() {
702
- b(this, "value", void 0);
712
+ S(this, "value", void 0);
703
713
  }
704
714
  get() {
705
715
  return this.value;
@@ -755,20 +765,15 @@ var me = class {
755
765
  };
756
766
  //#endregion
757
767
  //#region src/functions/executePromise.ts
758
- async function _e(e) {
759
- let t = _(e);
768
+ async function he(e) {
769
+ let t = y(e);
760
770
  return t instanceof Promise ? await t : t;
761
771
  }
762
772
  //#endregion
763
- //#region src/functions/random.ts
764
- function k(e, t) {
765
- return Math.floor(Math.random() * (t - e + 1) + e);
766
- }
767
- //#endregion
768
773
  //#region src/classes/ApiResponse.ts
769
- var ve = "d-response-loading", ye = class {
774
+ var ge = "d-response-loading", _e = class {
770
775
  constructor(e) {
771
- b(this, "first", []), b(this, "response", []), b(this, "loading", void 0), b(this, "devMode", !1), this.requestDefault = e;
776
+ S(this, "first", []), S(this, "response", []), S(this, "loading", void 0), S(this, "devMode", !1), this.requestDefault = e;
772
777
  }
773
778
  get(e = "", t, n, r) {
774
779
  return this.response.find((i) => !this.isDisable(i) && this.isPath(i, e) && t === i.method && this.isFirst(i, r) && this.isResponse(i, n) ? (this.isDevMode(r) && console.warn(`Response type: ${i.path}`), this.first.push(i), !0) : !1);
@@ -777,13 +782,13 @@ var ve = "d-response-loading", ye = class {
777
782
  return this.response.filter((e) => e.isForGlobal !== !0);
778
783
  }
779
784
  add(e) {
780
- return this.response.push(...E(e)), this;
785
+ return this.response.push(...k(e)), this;
781
786
  }
782
787
  setDevMode(e) {
783
788
  return this.devMode = e, this;
784
789
  }
785
790
  async emulator(e) {
786
- let { path: t = "", method: n = O.get, global: r = n === O.get, devMode: i = !1 } = e;
791
+ let { path: t = "", method: n = M.get, global: r = n === M.get, devMode: i = !1 } = e;
787
792
  if (r || this.isDevMode(i)) {
788
793
  let r = this.requestDefault.request(e.request), a = this.get(t, n, r, i);
789
794
  if (a) {
@@ -793,7 +798,7 @@ var ve = "d-response-loading", ye = class {
793
798
  }
794
799
  }
795
800
  isDisable(e) {
796
- return !!_(e == null ? void 0 : e.disable);
801
+ return !!y(e == null ? void 0 : e.disable);
797
802
  }
798
803
  isPath(e, t) {
799
804
  return t === e.path || !!(e.path instanceof RegExp && t.match(e.path));
@@ -810,24 +815,24 @@ var ve = "d-response-loading", ye = class {
810
815
  }
811
816
  fetch(e, t) {
812
817
  return this.startResponseLoading(), new Promise((n) => {
813
- _e(g(e.response) ? e.response(t) : e.response).then((t) => {
814
- e != null && e.lag ? (D.show(), setTimeout(() => {
815
- this.stopResponseLoading(), n(t), D.hide();
816
- }, k(0, 2e3))) : (this.stopResponseLoading(), n(t));
818
+ he(v(e.response) ? e.response(t) : e.response).then((t) => {
819
+ e != null && e.lag ? (j.show(), setTimeout(() => {
820
+ this.stopResponseLoading(), n(t), j.hide();
821
+ }, d(0, 2e3))) : (this.stopResponseLoading(), n(t));
817
822
  });
818
823
  });
819
824
  }
820
825
  startResponseLoading() {
821
- this.loading && clearTimeout(this.loading), f() && document.body.classList.add(ve);
826
+ this.loading && clearTimeout(this.loading), m() && document.body.classList.add(ge);
822
827
  }
823
828
  stopResponseLoading() {
824
829
  this.loading = setTimeout(() => {
825
- this.loading = void 0, f() && document.body.classList.remove(ve);
830
+ this.loading = void 0, m() && document.body.classList.remove(ge);
826
831
  }, 1200);
827
832
  }
828
- }, be = class {
833
+ }, ve = class {
829
834
  constructor() {
830
- b(this, "callback", void 0), b(this, "callbackEnd", void 0), b(this, "loading", !1);
835
+ S(this, "callback", void 0), S(this, "callbackEnd", void 0), S(this, "loading", !1);
831
836
  }
832
837
  async make(e, t) {
833
838
  if (e && this.callback) return this.go(t);
@@ -853,10 +858,10 @@ var ve = "d-response-loading", ye = class {
853
858
  let n = {};
854
859
  return this.callbackEnd && (n = await this.callbackEnd(e, t)), n;
855
860
  }
856
- }, xe = class {
861
+ }, ye = class {
857
862
  constructor(e = "/api/", t = {}) {
858
- b(this, "headers", void 0), b(this, "requestDefault", void 0), b(this, "status", void 0), b(this, "response", void 0), b(this, "preparation", void 0), b(this, "loading", void 0), b(this, "errorCenter", void 0), this.url = e;
859
- let { headersClass: n = me, requestDefaultClass: r = he, statusClass: i = ge, responseClass: a = ye, preparationClass: o = be, loadingClass: s = D.getItem(), errorCenterClass: c = x.getItem() } = t;
863
+ S(this, "headers", void 0), S(this, "requestDefault", void 0), S(this, "status", void 0), S(this, "response", void 0), S(this, "preparation", void 0), S(this, "loading", void 0), S(this, "errorCenter", void 0), S(this, "timeout", 16e3), this.url = e;
864
+ let { headersClass: n = fe, requestDefaultClass: r = pe, statusClass: i = me, responseClass: a = _e, preparationClass: o = ve, loadingClass: s = j.getItem(), errorCenterClass: c = C.getItem() } = t;
860
865
  this.headers = new n(), this.requestDefault = new r(), this.status = new i(), this.response = new a(this.requestDefault), this.preparation = new o(), this.loading = s, this.errorCenter = c;
861
866
  }
862
867
  isLocalhost() {
@@ -869,14 +874,14 @@ var ve = "d-response-loading", ye = class {
869
874
  return this.response;
870
875
  }
871
876
  getUrl(e, t = !0) {
872
- return `${t ? this.url : ""}${e}`.replace("{locale}", w.getLocation()).replace("{country}", w.getCountry()).replace("{language}", w.getLanguage());
877
+ return `${t ? this.url : ""}${e}`.replace("{locale}", E.getLocation()).replace("{country}", E.getCountry()).replace("{language}", E.getLanguage());
873
878
  }
874
- getBody(e = {}, t = O.get) {
879
+ getBody(e = {}, t = M.get) {
875
880
  if (e instanceof FormData) return e;
876
- if (t !== O.get && c(e)) return u(e) ? e : JSON.stringify(e);
881
+ if (t !== M.get && c(e)) return u(e) ? e : JSON.stringify(e);
877
882
  }
878
- getBodyForGet(e, t = "", n = O.get) {
879
- if (n === O.get) {
883
+ getBodyForGet(e, t = "", n = M.get) {
884
+ if (n === M.get) {
880
885
  let n = t.match(/\?/) ? "&" : "?", r = typeof e == "object" ? a(e) : e;
881
886
  if (c(r)) return `${n}${r}`;
882
887
  }
@@ -897,44 +902,50 @@ var ve = "d-response-loading", ye = class {
897
902
  setEnd(e) {
898
903
  return this.preparation.setEnd(e), this;
899
904
  }
905
+ setTimeout(e) {
906
+ return this.timeout = e, this;
907
+ }
900
908
  async request(e) {
901
909
  return u(e) ? await this.fetch({ path: e }) : await this.fetch(e);
902
910
  }
903
911
  get(e) {
904
- return this.request(r(e, { method: O.get }));
912
+ return this.request(r(e, { method: M.get }));
905
913
  }
906
914
  post(e) {
907
- return this.request(r(e, { method: O.post }));
915
+ return this.request(r(e, { method: M.post }));
908
916
  }
909
917
  put(e) {
910
- return this.request(r(e, { method: O.put }));
918
+ return this.request(r(e, { method: M.put }));
911
919
  }
912
920
  delete(e) {
913
- return this.request(r(e, { method: O.delete }));
921
+ return this.request(r(e, { method: M.delete }));
922
+ }
923
+ getRetryDelay(e, t) {
924
+ return d(t, t + e * t);
914
925
  }
915
- async fetch(e) {
916
- let { toData: t = !0, hideError: n = !1, hideLoading: r = !1, queryReturn: i = void 0, globalPreparation: a = !0, globalEnd: o = !0 } = e, s = await this.response.emulator(e);
917
- if (s) return s;
918
- let c = new ge(), l;
919
- r || this.loading.show();
926
+ async fetch(e, t = 0) {
927
+ let { toData: n = !0, hideError: r = !1, hideLoading: i = !1, retry: a = 0, retryDelay: o = 64, queryReturn: s = void 0, globalPreparation: c = !0, globalEnd: l = !0 } = e, u = await this.response.emulator(e);
928
+ if (u) return u;
929
+ let d = new me(), p;
930
+ i || this.loading.show();
920
931
  try {
921
- await this.preparation.make(a, e);
922
- let { query: t, timeoutId: r } = await this.makeQuery(e);
923
- r && clearTimeout(r);
924
- let s = await this.preparation.makeEnd(o, t, e);
925
- if (c.setStatus(t.status, t.statusText), this.status.setStatus(t.status, t.statusText), !n && t.status >= 400 && this.makeErrorQuery(t), s != null && s.reset) return this.loading.hide(), await this.fetch(e);
926
- l = await this.readData(t, i, s);
932
+ await this.preparation.make(c, e);
933
+ let { query: n, timeoutId: i } = await this.makeQuery(e);
934
+ i && clearTimeout(i);
935
+ let u = await this.preparation.makeEnd(l, n, e);
936
+ if (d.setStatus(n.status, n.statusText), this.status.setStatus(n.status, n.statusText), !r && n.status >= 400 && this.makeErrorQuery(n), u != null && u.reset || t < a) return await f(this.getRetryDelay(t, o)), this.loading.hide(), await this.fetch(e, t + 1);
937
+ p = await this.readData(n, s, u);
927
938
  } catch (e) {
928
- throw n || this.makeError(e), c.setError(String(e)), this.status.setError(String(e)), r || this.loading.hide(), e;
939
+ throw r || this.makeError(e), d.setError(String(e)), this.status.setError(String(e)), i || this.loading.hide(), e;
929
940
  }
930
- return r || this.loading.hide(), c.setLastResponse(l), this.status.setLastResponse(l), this.makeStatus(this.makeData(l, t), c);
941
+ return i || this.loading.hide(), d.setLastResponse(p), this.status.setLastResponse(p), this.makeStatus(this.makeData(p, n), d);
931
942
  }
932
943
  async readData(e, t, n) {
933
944
  var r;
934
945
  return t ? await t(e) : "data" in n ? n.data : ((r = e.headers.get("Content-Type")) == null ? "" : r).match("application/json") ? await e.json() : { data: await e.text() };
935
946
  }
936
947
  async makeQuery(e) {
937
- let t = this.requestDefault.request(e.request), { api: n = !0, path: i = "", pathFull: a = void 0, method: o = O.get, headers: s = {}, type: c = "application/json;charset=UTF-8", init: l = {} } = e, u = a == null ? this.getUrl(i, n) : a, d = `${u}${this.getBodyForGet(t, u, o)}`, f = this.headers.get(s, c), p = r(l, {
948
+ let t = this.requestDefault.request(e.request), { api: n = !0, path: i = "", pathFull: a = void 0, method: o = M.get, headers: s = {}, type: c = "application/json;charset=UTF-8", init: l = {} } = e, u = a == null ? this.getUrl(i, n) : a, d = `${u}${this.getBodyForGet(t, u, o)}`, f = this.headers.get(s, c), p = r(l, {
938
949
  method: o,
939
950
  body: this.getBody(t, o)
940
951
  });
@@ -1002,7 +1013,7 @@ var ve = "d-response-loading", ye = class {
1002
1013
  }
1003
1014
  }
1004
1015
  initController(e, t) {
1005
- let { timeout: n, controller: r } = e;
1016
+ let { timeout: n = this.timeout, controller: r } = e;
1006
1017
  if (n && !r && typeof AbortSignal < "u") {
1007
1018
  t.signal = AbortSignal.timeout(n);
1008
1019
  return;
@@ -1018,7 +1029,7 @@ var ve = "d-response-loading", ye = class {
1018
1029
  }, n);
1019
1030
  }
1020
1031
  }
1021
- }, A = class e {
1032
+ }, N = class e {
1022
1033
  static isLocalhost() {
1023
1034
  return this.item.isLocalhost();
1024
1035
  }
@@ -1034,10 +1045,10 @@ var ve = "d-response-loading", ye = class {
1034
1045
  static getUrl(e, t = !0) {
1035
1046
  return this.item.getUrl(e, t);
1036
1047
  }
1037
- static getBody(e = {}, t = O.get) {
1048
+ static getBody(e = {}, t = M.get) {
1038
1049
  return this.item.getBody(e, t);
1039
1050
  }
1040
- static getBodyForGet(e, t = "", n = O.get) {
1051
+ static getBodyForGet(e, t = "", n = M.get) {
1041
1052
  return this.item.getBodyForGet(e, t, n);
1042
1053
  }
1043
1054
  static setHeaders(t) {
@@ -1052,12 +1063,15 @@ var ve = "d-response-loading", ye = class {
1052
1063
  static setPreparation(t) {
1053
1064
  return this.item.setPreparation(t), e;
1054
1065
  }
1055
- static setConfig(e) {
1056
- return e && n(e) && (e.urlRoot && this.setUrl(e.urlRoot), e.headers && this.setHeaders(e.headers), e.requestDefault && this.setRequestDefault(e.requestDefault), e.preparation && this.setPreparation(e.preparation), e.end && this.setEnd(e.end)), this;
1057
- }
1058
1066
  static setEnd(t) {
1059
1067
  return this.item.setEnd(t), e;
1060
1068
  }
1069
+ static setTimeout(t) {
1070
+ return this.item.setTimeout(t), e;
1071
+ }
1072
+ static setConfig(e) {
1073
+ return e && n(e) && (e.urlRoot && this.setUrl(e.urlRoot), e.headers && this.setHeaders(e.headers), e.requestDefault && this.setRequestDefault(e.requestDefault), e.preparation && this.setPreparation(e.preparation), e.end && this.setEnd(e.end), e.timeout && this.setTimeout(e.timeout)), this;
1074
+ }
1061
1075
  static async request(e) {
1062
1076
  return this.item.request(e);
1063
1077
  }
@@ -1074,19 +1088,19 @@ var ve = "d-response-loading", ye = class {
1074
1088
  return this.item.delete(e);
1075
1089
  }
1076
1090
  };
1077
- b(A, "item", new xe());
1091
+ S(N, "item", new ye());
1078
1092
  //#endregion
1079
1093
  //#region src/classes/BroadcastMessage.ts
1080
- var Se = class {
1081
- constructor(e, t, n, r = x.getItem()) {
1082
- if (b(this, "channel", void 0), b(this, "update", (e) => {
1094
+ var be = class {
1095
+ constructor(e, t, n, r = C.getItem()) {
1096
+ if (S(this, "channel", void 0), S(this, "update", (e) => {
1083
1097
  var t;
1084
1098
  return (t = this.callback) == null || t.call(this, e), this;
1085
- }), b(this, "updateError", (e) => {
1099
+ }), S(this, "updateError", (e) => {
1086
1100
  var t;
1087
1101
  return (t = this.callbackError) == null || t.call(this, e), this;
1088
- }), this.callback = t, this.callbackError = n, f()) try {
1089
- this.channel = new BroadcastChannel(`${Ce()}__${e}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
1102
+ }), this.callback = t, this.callbackError = n, m()) try {
1103
+ this.channel = new BroadcastChannel(`${xe()}__${e}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
1090
1104
  } catch (e) {
1091
1105
  r.on({
1092
1106
  group: "broadcast",
@@ -1108,9 +1122,9 @@ var Se = class {
1108
1122
  setCallbackError(e) {
1109
1123
  return this.callbackError = e, this;
1110
1124
  }
1111
- }, Ce = () => new S("__broadcast-name").get(() => `name_${k(1e6, 9999999)}`), we = class {
1125
+ }, xe = () => new w("__broadcast-name").get(() => `name_${d(1e6, 9999999)}`), Se = class {
1112
1126
  constructor(e) {
1113
- b(this, "cache", void 0), b(this, "cacheOld", void 0), b(this, "comparisons", []), this.callback = e;
1127
+ S(this, "cache", void 0), S(this, "cacheOld", void 0), S(this, "comparisons", []), this.callback = e;
1114
1128
  }
1115
1129
  getCache(e) {
1116
1130
  return this.isUpdate(e) && (this.cacheOld = this.cache, this.setCache()), this.cache;
@@ -1130,9 +1144,9 @@ var Se = class {
1130
1144
  isUpdate(e) {
1131
1145
  return this.cache === void 0 || this.comparisons.length !== e.length || this.comparisons.findIndex((t, n) => t !== e[n]) >= 0 ? (this.comparisons = [...e], !0) : !1;
1132
1146
  }
1133
- }, Te = class {
1147
+ }, Ce = class {
1134
1148
  constructor() {
1135
- b(this, "cache", {});
1149
+ S(this, "cache", {});
1136
1150
  }
1137
1151
  get(e, t, n) {
1138
1152
  return this.getCacheItem(e, t).getCache(n == null ? [] : n);
@@ -1141,17 +1155,17 @@ var Se = class {
1141
1155
  return await this.getCacheItem(e, t).getCacheAsync(n == null ? [] : n);
1142
1156
  }
1143
1157
  getCacheItem(e, t) {
1144
- return e in this.cache || (this.cache[e] = new we(t)), this.cache[e];
1158
+ return e in this.cache || (this.cache[e] = new Se(t)), this.cache[e];
1145
1159
  }
1146
- }, Ee, j = class {
1160
+ }, we, Te = class {
1147
1161
  static get(e, t, n) {
1148
1162
  return this.cache.get(e, t, n);
1149
1163
  }
1150
1164
  };
1151
- Ee = j, b(j, "cache", void 0), Ee.cache = new Te();
1165
+ we = Te, S(Te, "cache", void 0), we.cache = new Ce();
1152
1166
  //#endregion
1153
1167
  //#region src/functions/transformation.ts
1154
- function M(e, t = !1) {
1168
+ function Ee(e, t = !1) {
1155
1169
  if (typeof e == "string") {
1156
1170
  let r = e.trim();
1157
1171
  switch (r) {
@@ -1168,14 +1182,14 @@ function M(e, t = !1) {
1168
1182
  }
1169
1183
  else if (/^[0-9]+\.[0-9.]+$/.exec(r)) return parseFloat(r);
1170
1184
  else if (/^[0-9]+$/.exec(r)) return parseInt(r, 10);
1171
- else if (t && f() && typeof ((n = window) == null ? void 0 : n[r]) == "function") return window[r];
1185
+ else if (t && m() && typeof ((n = window) == null ? void 0 : n[r]) == "function") return window[r];
1172
1186
  }
1173
1187
  }
1174
1188
  return e;
1175
1189
  }
1176
1190
  //#endregion
1177
1191
  //#region src/classes/CookieBlock.ts
1178
- var De = "cookie-block", N = class {
1192
+ var De = "cookie-block", Oe = class {
1179
1193
  static get() {
1180
1194
  var e;
1181
1195
  return (e = this.storage.get()) == null ? !1 : e;
@@ -1184,19 +1198,19 @@ var De = "cookie-block", N = class {
1184
1198
  this.storage.set(e);
1185
1199
  }
1186
1200
  };
1187
- b(N, "storage", new S(De));
1201
+ S(Oe, "storage", new w(De));
1188
1202
  //#endregion
1189
1203
  //#region src/classes/Cookie.ts
1190
- var Oe, P = {}, ke = class {
1204
+ var ke, Ae = {}, je = class {
1191
1205
  constructor(e) {
1192
- if (b(this, "value", void 0), b(this, "options", {}), this.name = e, e in F) return F[e];
1193
- this.value = P == null ? void 0 : P[e], F[e] = this;
1206
+ if (S(this, "value", void 0), S(this, "options", {}), this.name = e, e in Me) return Me[e];
1207
+ this.value = Ae == null ? void 0 : Ae[e], Me[e] = this;
1194
1208
  }
1195
1209
  get(e, t) {
1196
1210
  return this.value === void 0 && e && this.set(e, t), this.value;
1197
1211
  }
1198
1212
  set(e, t) {
1199
- this.value = _(e), Object.assign(this.options, t), this.update();
1213
+ this.value = y(e), Object.assign(this.options, t), this.update();
1200
1214
  }
1201
1215
  remove() {
1202
1216
  this.set("");
@@ -1206,7 +1220,7 @@ var Oe, P = {}, ke = class {
1206
1220
  return (e = (t = this.options) == null ? void 0 : t.age) == null ? 10080 * 60 : e;
1207
1221
  }
1208
1222
  update() {
1209
- if (f() && !v() && !N.get()) {
1223
+ if (m() && !b() && !Oe.get()) {
1210
1224
  var e, t, n, r, i;
1211
1225
  let a = String((e = this.value) == null ? "" : e);
1212
1226
  document.cookie = [
@@ -1220,40 +1234,40 @@ var Oe, P = {}, ke = class {
1220
1234
  static updateData() {
1221
1235
  for (let e of document.cookie.split(";")) {
1222
1236
  let [t, n] = e.trim().split("=");
1223
- t && c(n) && (P[t] = M(n));
1237
+ t && c(n) && (Ae[t] = Ee(n));
1224
1238
  }
1225
1239
  }
1226
1240
  };
1227
- Oe = ke, f() && !v() && Oe.updateData();
1228
- var F = {};
1241
+ ke = je, m() && !b() && ke.updateData();
1242
+ var Me = {};
1229
1243
  //#endregion
1230
1244
  //#region src/functions/toDate.ts
1231
- function I(e) {
1245
+ function P(e) {
1232
1246
  var t, n, r, i, a, o, c, l;
1233
1247
  if (e instanceof Date) return e;
1234
1248
  if (s(e)) return /* @__PURE__ */ new Date();
1235
1249
  if (typeof e == "number") return new Date(e);
1236
- let u = e, d = w.getTimezoneFormat().trim();
1250
+ let u = e, d = E.getTimezoneFormat().trim();
1237
1251
  e.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (e, t, n) => (u = t, d = n.trim(), e));
1238
1252
  let f = (t = (n = (r = (i = (a = (o = (c = (l = /^\d{4}\d{2}\d{2}$/.exec(u) && `${u.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3")}T00:00:00`) == null ? /^\d{4}\d{2}$/.exec(u) && `${u.replace(/^(\d{4})(\d{2})$/, "$1-$2")}-01T00:00:00` : l) == null ? /^\d{4}\d{2}\d{2} \d{2}:\d{2}:\d{2}$/.exec(u) && u.replace(/^(\d{4})(\d{2})(\d{2}) (\d{2}):(\d{2}):(\d{2})$/, "$1-$2-$3T$4:$5:$6") : c) == null ? /^\d{4}-\d{2}-\d{2}$/.exec(u) && `${u}T00:00:00` : o) == null ? /^\d{4}-\d{2}$/.exec(u) && `${u}-01T00:00:00` : a) == null ? /^\d{4}$/.exec(u) && `${u}-01-01T00:00:00` : i) == null ? /^\d{2}:\d{2}$/.exec(u) && `2000-01-01T${u}:00` : r) == null ? /^\d{2}:\d{2}:\d{2}$/.exec(u) && `2000-01-01T${u}` : n) == null ? u.replace(" ", "T") : t;
1239
1253
  return /* @__PURE__ */ new Date(`${f.trim()}${d}`);
1240
1254
  }
1241
1255
  //#endregion
1242
1256
  //#region src/functions/getColumn.ts
1243
- function Ae(e, t) {
1257
+ function Ne(e, t) {
1244
1258
  return i(e, (e) => e == null ? void 0 : e[t], !0);
1245
1259
  }
1246
1260
  //#endregion
1247
1261
  //#region src/classes/GeoIntl.ts
1248
- var L = class e {
1249
- static getInstance(t = w.getLocation()) {
1262
+ var F = class e {
1263
+ static getInstance(t = E.getLocation()) {
1250
1264
  return new e(t);
1251
1265
  }
1252
- constructor(e = w.getLocation(), t = x.getItem()) {
1253
- b(this, "geo", void 0), this.errorCenter = t, this.geo = w.find(e);
1266
+ constructor(e = E.getLocation(), t = C.getItem()) {
1267
+ S(this, "geo", void 0), this.errorCenter = t, this.geo = E.find(e);
1254
1268
  let n = this.getLocation();
1255
- if (n in je) return je[n];
1256
- je[n] = this;
1269
+ if (n in I) return I[n];
1270
+ I[n] = this;
1257
1271
  }
1258
1272
  getLocation() {
1259
1273
  return this.geo.standard;
@@ -1284,7 +1298,7 @@ var L = class e {
1284
1298
  type: "language",
1285
1299
  style: t
1286
1300
  };
1287
- return this.display(w.getByCode(e).language, n);
1301
+ return this.display(E.getByCode(e).language, n);
1288
1302
  }
1289
1303
  countryName(e, t) {
1290
1304
  let n = {
@@ -1314,7 +1328,7 @@ var L = class e {
1314
1328
  }
1315
1329
  number(e, t) {
1316
1330
  var n, r;
1317
- return ((n = this.numberObject(t)) == null || (r = n.format) == null ? void 0 : r.call(n, m(e))) || e.toString();
1331
+ return ((n = this.numberObject(t)) == null || (r = n.format) == null ? void 0 : r.call(n, g(e))) || e.toString();
1318
1332
  }
1319
1333
  decimal() {
1320
1334
  var e, t, n;
@@ -1328,7 +1342,7 @@ var L = class e {
1328
1342
  }, i = e.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...e) => (r.currency = String(e[2]).toUpperCase(), String(e[1])));
1329
1343
  if (n) {
1330
1344
  let t = this.numberObject(r);
1331
- return t ? Ae(t.formatToParts(m(e)).filter((e) => ["literal", "currency"].indexOf(e.type) === -1), "value").join("") : e.toString();
1345
+ return t ? Ne(t.formatToParts(g(e)).filter((e) => ["literal", "currency"].indexOf(e.type) === -1), "value").join("") : e.toString();
1332
1346
  } else if ("currency" in r) return this.number(typeof e == "number" ? e : i, r);
1333
1347
  else return this.number(typeof e == "number" ? e : i, {
1334
1348
  ...r,
@@ -1351,7 +1365,7 @@ var L = class e {
1351
1365
  return this.number(r, n);
1352
1366
  }
1353
1367
  sizeFile(e, t = "byte") {
1354
- let n = m(e);
1368
+ let n = g(e);
1355
1369
  if (n > 1024 && u(t)) switch (t) {
1356
1370
  case "byte": return this.sizeFile(n / 1024, "kilobyte");
1357
1371
  case "kilobyte": return this.sizeFile(n / 1024, "megabyte");
@@ -1368,11 +1382,11 @@ var L = class e {
1368
1382
  });
1369
1383
  }
1370
1384
  percentBy100(e, t) {
1371
- return this.percent(m(e) / 100, t);
1385
+ return this.percent(g(e) / 100, t);
1372
1386
  }
1373
1387
  plural(e, t, n, r) {
1374
1388
  var i;
1375
- let a = m(e), o = t.split("|");
1389
+ let a = g(e), o = t.split("|");
1376
1390
  if (o.length > 1) try {
1377
1391
  if (typeof Intl < "u") {
1378
1392
  var s;
@@ -1409,18 +1423,18 @@ var L = class e {
1409
1423
  return `${this.number(a, r)} ${(i = o == null ? void 0 : o[0]) == null ? "" : i}`.trim();
1410
1424
  }
1411
1425
  date(e, t, n, r) {
1412
- let i = I(e), a = typeof n == "string", o = this.dateOptions(t, a ? n : "short");
1426
+ let i = P(e), a = typeof n == "string", o = this.dateOptions(t, a ? n : "short");
1413
1427
  return r && (o.hour12 = !1), a || Object.assign(o, n), i.toLocaleString(this.getLocation(), o);
1414
1428
  }
1415
1429
  relative(e, t, n) {
1416
- let r = I(e), i = n || /* @__PURE__ */ new Date(), a = {
1430
+ let r = P(e), i = n || /* @__PURE__ */ new Date(), a = {
1417
1431
  numeric: "auto",
1418
1432
  ...typeof t == "string" ? { style: t } : t || {}
1419
1433
  }, o = "second", s = (r.getTime() - i.getTime()) / 1e3;
1420
1434
  return Math.abs(s) >= 60 && (o = "minute", s /= 60, Math.abs(s) >= 60 && (o = "hour", s /= 60, Math.abs(s) >= 24 && (o = "day", s /= 24, Math.abs(s) >= 30 && (o = "month", s /= 30, Math.abs(s) >= 12 && (o = "year", s /= 12))))), this.relativeByValue(s, o, a);
1421
1435
  }
1422
1436
  relativeLimit(e, t, n, r, i, a, o) {
1423
- let s = I(e), c = n || /* @__PURE__ */ new Date(), l = new Date(c), u = new Date(c);
1437
+ let s = P(e), c = n || /* @__PURE__ */ new Date(), l = new Date(c), u = new Date(c);
1424
1438
  return l.setDate(c.getDate() - t), u.setDate(c.getDate() + t), s >= l && s <= u ? this.relative(s, r, c) : this.date(s, a, i, o);
1425
1439
  }
1426
1440
  relativeByValue(e, t, n) {
@@ -1429,7 +1443,7 @@ var L = class e {
1429
1443
  ...typeof n == "string" ? { style: n } : n || {}
1430
1444
  };
1431
1445
  try {
1432
- if (this.hasIntl() && Intl.RelativeTimeFormat !== void 0) return new Intl.RelativeTimeFormat(this.getLocation(), r).format(Math.round(m(e)), t);
1446
+ if (this.hasIntl() && Intl.RelativeTimeFormat !== void 0) return new Intl.RelativeTimeFormat(this.getLocation(), r).format(Math.round(g(e)), t);
1433
1447
  } catch (e) {
1434
1448
  this.errorCenter.on({
1435
1449
  group: "intl",
@@ -1441,7 +1455,7 @@ var L = class e {
1441
1455
  }
1442
1456
  month(e, t) {
1443
1457
  try {
1444
- if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { month: t || "long" }).format(I(e));
1458
+ if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { month: t || "long" }).format(P(e));
1445
1459
  } catch (e) {
1446
1460
  this.errorCenter.on({
1447
1461
  group: "intl",
@@ -1475,7 +1489,7 @@ var L = class e {
1475
1489
  }
1476
1490
  weekday(e, t) {
1477
1491
  try {
1478
- if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }).format(I(e));
1492
+ if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }).format(P(e));
1479
1493
  } catch (e) {
1480
1494
  this.errorCenter.on({
1481
1495
  group: "intl",
@@ -1577,12 +1591,12 @@ var L = class e {
1577
1591
  "second"
1578
1592
  ].indexOf(e) !== -1 && (n.second = "2-digit")), n;
1579
1593
  }
1580
- }, je = {}, Me = class e {
1581
- constructor(e, t = "date", n = w.getLocation()) {
1582
- b(this, "date", void 0), b(this, "hour24", !1), b(this, "watch", void 0), this.type = t, this.code = n, this.date = I(e);
1594
+ }, I = {}, Pe = class e {
1595
+ constructor(e, t = "date", n = E.getLocation()) {
1596
+ S(this, "date", void 0), S(this, "hour24", !1), S(this, "watch", void 0), this.type = t, this.code = n, this.date = P(e);
1583
1597
  }
1584
1598
  getIntl() {
1585
- return new L(this.code);
1599
+ return new F(this.code);
1586
1600
  }
1587
1601
  getDate() {
1588
1602
  return this.date;
@@ -1685,7 +1699,7 @@ var L = class e {
1685
1699
  ].indexOf(this.type) !== -1 && (i = n.locale("time"))), `${r.join("-")}${i ? `T${i}${t ? n.getTimeZone() : ""}` : ""}`;
1686
1700
  }
1687
1701
  setDate(e) {
1688
- return this.date = I(e), this.update(), this;
1702
+ return this.date = P(e), this.update(), this;
1689
1703
  }
1690
1704
  setType(e) {
1691
1705
  return this.type = e, this.update(), this;
@@ -1827,7 +1841,7 @@ var L = class e {
1827
1841
  return this.cloneClass().moveDayPrevious();
1828
1842
  }
1829
1843
  toTimeZoneHourFormat(e) {
1830
- f() && this.getIntl().number(Math.trunc(e), {
1844
+ m() && this.getIntl().number(Math.trunc(e), {
1831
1845
  signDisplay: "always",
1832
1846
  minimumIntegerDigits: 2
1833
1847
  });
@@ -1841,36 +1855,36 @@ var L = class e {
1841
1855
  };
1842
1856
  //#endregion
1843
1857
  //#region src/functions/anyToString.ts
1844
- function R(e, n = !0) {
1858
+ function L(e, n = !0) {
1845
1859
  var r;
1846
1860
  return u(e) ? e.trim() : o(e) && e.findIndex((e) => t(e)) === -1 && n ? e.join(",") : t(e) ? JSON.stringify(e) : e === !0 ? "1" : e === !1 ? "0" : (r = e == null ? void 0 : e.toString()) == null ? "" : r;
1847
1861
  }
1848
1862
  //#endregion
1849
1863
  //#region src/functions/strSplit.ts
1850
- function Ne(e, t, n) {
1851
- let r = R(e);
1864
+ function Fe(e, t, n) {
1865
+ let r = L(e);
1852
1866
  if (!n || n <= 0) return r.split(t);
1853
1867
  let i = r.split(t, n), a = r.split(t);
1854
1868
  return i.length === a.length ? i : (i.pop(), [...i, a.slice(n - 1).join(t)]);
1855
1869
  }
1856
1870
  //#endregion
1857
1871
  //#region src/functions/getItemByPath.ts
1858
- function z(e, n) {
1872
+ function R(e, n) {
1859
1873
  var r;
1860
1874
  if (!c(n)) return;
1861
- let i = Ne(n, ".", 2), a = i[0];
1862
- return a && e != null && e[a] && t(e[a]) && i != null && i[1] ? z(e[a], i[1]) : (r = c(a) && (e == null ? void 0 : e[a])) == null ? void 0 : r;
1875
+ let i = Fe(n, ".", 2), a = i[0];
1876
+ return a && e != null && e[a] && t(e[a]) && i != null && i[1] ? R(e[a], i[1]) : (r = c(a) && (e == null ? void 0 : e[a])) == null ? void 0 : r;
1863
1877
  }
1864
1878
  //#endregion
1865
1879
  //#region src/functions/toCamelCase.ts
1866
- function Pe(e) {
1880
+ function z(e) {
1867
1881
  return e.toString().trim().replace(/[^\w-. ]+/g, "").replace(/[ .]+/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (e) => `${e.toLowerCase()}`).replace(/-+([a-zA-Z0-9])/g, (...e) => `${String(e[1]).toUpperCase()}`).replace(/^([A-Z])/, (e) => `${e.toLowerCase()}`);
1868
1882
  }
1869
1883
  //#endregion
1870
1884
  //#region src/types/formattersTypes.ts
1871
1885
  var B = /* @__PURE__ */ function(e) {
1872
1886
  return e.currency = "currency", e.date = "date", e.name = "name", e.number = "number", e.plural = "plural", e.unit = "unit", e;
1873
- }({}), Fe = class {
1887
+ }({}), Ie = class {
1874
1888
  constructor(e, t) {
1875
1889
  this.options = e, this.list = t;
1876
1890
  }
@@ -1884,7 +1898,7 @@ var B = /* @__PURE__ */ function(e) {
1884
1898
  return this.list ? this.isArray() ? this.list.length : 1 : 0;
1885
1899
  }
1886
1900
  getList() {
1887
- return this.list ? E(this.list) : [];
1901
+ return this.list ? k(this.list) : [];
1888
1902
  }
1889
1903
  getOptions() {
1890
1904
  return this.options;
@@ -1902,7 +1916,7 @@ var B = /* @__PURE__ */ function(e) {
1902
1916
  getFormatData(e) {
1903
1917
  let t = {};
1904
1918
  return i(this.options, (n, r) => {
1905
- let i = `${Pe(r)}Format`, a = z(e, r);
1919
+ let i = `${z(r)}Format`, a = R(e, r);
1906
1920
  n != null && n.transformation ? c(a) ? t[i] = n.transformation(a, e, n.options) : t[i] = "" : t[i] = this.transformation(a, e, n.type, n.options);
1907
1921
  }), t;
1908
1922
  }
@@ -1920,32 +1934,32 @@ var B = /* @__PURE__ */ function(e) {
1920
1934
  }
1921
1935
  formatCurrency(e, t, n) {
1922
1936
  var r;
1923
- let i = n != null && n.currencyPropName ? z(t, n.currencyPropName) : t == null ? void 0 : t.currency;
1924
- return L.getInstance().currency(e, (r = n == null ? void 0 : n.options) == null ? i : r, n == null ? void 0 : n.numberOnly);
1937
+ let i = n != null && n.currencyPropName ? R(t, n.currencyPropName) : t == null ? void 0 : t.currency;
1938
+ return F.getInstance().currency(e, (r = n == null ? void 0 : n.options) == null ? i : r, n == null ? void 0 : n.numberOnly);
1925
1939
  }
1926
1940
  formatDate(e, t) {
1927
- return L.getInstance().date(e, t == null ? void 0 : t.type, t == null ? void 0 : t.options, t == null ? void 0 : t.hour24);
1941
+ return F.getInstance().date(e, t == null ? void 0 : t.type, t == null ? void 0 : t.options, t == null ? void 0 : t.hour24);
1928
1942
  }
1929
1943
  formatName(e, t) {
1930
1944
  var n, r, i;
1931
- let a = z(e, (n = t == null ? void 0 : t.lastPropName) == null ? "lastName" : n), o = z(e, (r = t == null ? void 0 : t.firstPropName) == null ? "firstName" : r), s = z(e, (i = t == null ? void 0 : t.surname) == null ? "surname" : i);
1932
- return a && o ? L.getInstance().fullName(a, o, s, t == null ? void 0 : t.short) : "";
1945
+ let a = R(e, (n = t == null ? void 0 : t.lastPropName) == null ? "lastName" : n), o = R(e, (r = t == null ? void 0 : t.firstPropName) == null ? "firstName" : r), s = R(e, (i = t == null ? void 0 : t.surname) == null ? "surname" : i);
1946
+ return a && o ? F.getInstance().fullName(a, o, s, t == null ? void 0 : t.short) : "";
1933
1947
  }
1934
1948
  formatNumber(e, t) {
1935
- return L.getInstance().number(e, t == null ? void 0 : t.options);
1949
+ return F.getInstance().number(e, t == null ? void 0 : t.options);
1936
1950
  }
1937
1951
  formatPlural(e, t) {
1938
- return t && t.words ? L.getInstance().plural(e, t == null ? void 0 : t.words, t == null ? void 0 : t.options, t == null ? void 0 : t.optionsNumber) : e;
1952
+ return t && t.words ? F.getInstance().plural(e, t == null ? void 0 : t.words, t == null ? void 0 : t.options, t == null ? void 0 : t.optionsNumber) : e;
1939
1953
  }
1940
1954
  formatUnit(e, t) {
1941
- return t && t.unit ? L.getInstance().unit(e, t.unit) : e;
1955
+ return t && t.unit ? F.getInstance().unit(e, t.unit) : e;
1942
1956
  }
1943
- }, Ie = "f", Le = class e {
1944
- constructor(e = w.getLocation()) {
1957
+ }, Le = "f", Re = class e {
1958
+ constructor(e = E.getLocation()) {
1945
1959
  this.code = e;
1946
1960
  }
1947
1961
  get(t = this.code) {
1948
- let n = w.find(t);
1962
+ let n = E.find(t);
1949
1963
  if (n) {
1950
1964
  var r;
1951
1965
  let t = this.getCountry(n);
@@ -1981,7 +1995,7 @@ var B = /* @__PURE__ */ function(e) {
1981
1995
  return this.code = e, this;
1982
1996
  }
1983
1997
  getLocation() {
1984
- return new L(this.code);
1998
+ return new F(this.code);
1985
1999
  }
1986
2000
  getCodes(t) {
1987
2001
  return t == null ? Object.keys(e.flags) : t;
@@ -1993,7 +2007,7 @@ var B = /* @__PURE__ */ function(e) {
1993
2007
  return this.getLocation().countryName(e.country);
1994
2008
  }
1995
2009
  };
1996
- b(Le, "flags", {
2010
+ S(Re, "flags", {
1997
2011
  AD: "f-ad",
1998
2012
  AE: "f-ae",
1999
2013
  AF: "f-af",
@@ -2238,7 +2252,7 @@ b(Le, "flags", {
2238
2252
  });
2239
2253
  //#endregion
2240
2254
  //#region src/classes/GeoPhone.ts
2241
- var Re = class {
2255
+ var V = class {
2242
2256
  static get(e) {
2243
2257
  return this.getList().find((t) => e === t.value);
2244
2258
  }
@@ -2294,11 +2308,11 @@ var Re = class {
2294
2308
  return (t = (n = e.match(/\*/g)) == null ? void 0 : n.length) == null ? 0 : t;
2295
2309
  }
2296
2310
  static makeList() {
2297
- this.list = i(w.getList(), (e) => {
2311
+ this.list = i(E.getList(), (e) => {
2298
2312
  if (e != null && e.phoneMask) return {
2299
2313
  phone: (e == null ? void 0 : e.phoneCode) && Number(e.phoneCode.replace(/[^0-9]+/, "")) || void 0,
2300
2314
  within: (e == null ? void 0 : e.phoneWithin) || 0,
2301
- mask: E(e.phoneMask),
2315
+ mask: k(e.phoneMask),
2302
2316
  value: e.country
2303
2317
  };
2304
2318
  }).sort((e, t) => e.phone - t.phone);
@@ -2336,23 +2350,23 @@ var Re = class {
2336
2350
  return e.replace(/\*/, this.getWithinSymbol(t));
2337
2351
  }
2338
2352
  };
2339
- b(Re, "list", void 0), b(Re, "map", void 0);
2353
+ S(V, "list", void 0), S(V, "map", void 0);
2340
2354
  //#endregion
2341
2355
  //#region src/classes/Global.ts
2342
- var V, ze = class {
2356
+ var H, ze = class {
2343
2357
  static get(e) {
2344
- return V && (V == null ? void 0 : V[e]);
2358
+ return H && (H == null ? void 0 : H[e]);
2345
2359
  }
2346
2360
  static add(e) {
2347
- V === void 0 && (V = r(e));
2361
+ H === void 0 && (H = r(e));
2348
2362
  }
2349
- }, Be, H = class {
2363
+ }, U, W = class {
2350
2364
  static get(e, t) {
2351
2365
  return !(e in this.hash) && t && this.set(e, t), this.hash[e];
2352
2366
  }
2353
2367
  static set(e, t) {
2354
2368
  var n;
2355
- let r = _(t);
2369
+ let r = y(t);
2356
2370
  r !== ((n = this.hash) == null ? void 0 : n[e]) && (this.hash[e] = r, this.update());
2357
2371
  }
2358
2372
  static addWatch(e, t) {
@@ -2374,7 +2388,7 @@ var V, ze = class {
2374
2388
  }
2375
2389
  static getLocation() {
2376
2390
  let e = {};
2377
- return location.hash.replace(/([\w-]+)[:=]([^;]+)/gi, (...t) => (e[String(t[1])] = M(t[2]), "")), e;
2391
+ return location.hash.replace(/([\w-]+)[:=]([^;]+)/gi, (...t) => (e[String(t[1])] = Ee(t[2]), "")), e;
2378
2392
  }
2379
2393
  static update() {
2380
2394
  this.block = !0, history.replaceState(null, "", `#${a(this.hash, "=", ";")}`), requestAnimationFrame(() => {
@@ -2388,29 +2402,29 @@ var V, ze = class {
2388
2402
  });
2389
2403
  }
2390
2404
  };
2391
- Be = H, b(H, "hash", {}), b(H, "watch", {}), b(H, "block", !1), f() && (Be.reload(), addEventListener("hashchange", () => Be.reload()));
2405
+ U = W, S(W, "hash", {}), S(W, "watch", {}), S(W, "block", !1), m() && (U.reload(), addEventListener("hashchange", () => U.reload()));
2392
2406
  //#endregion
2393
2407
  //#region src/classes/Icons.ts
2394
- var Ve, He = "__UI_ICON", Ue = 320, We = "--LOAD--", U = class {
2408
+ var Be, Ve = "__UI_ICON", He = 320, Ue = "--LOAD--", G = class {
2395
2409
  static is(e) {
2396
2410
  return e in this.icons || this.getName(e) in this.icons;
2397
2411
  }
2398
2412
  static async get(e, t = "", n = 1e3 * 60 * 3) {
2399
2413
  var r, i, a, o;
2400
2414
  let s = (r = (i = (a = this.icons) == null ? void 0 : a[this.getName(e)]) == null ? (o = this.icons) == null ? void 0 : o[e] : i) == null ? `${e.replace(/^@/, t == null ? this.url : t)}.svg` : r;
2401
- return typeof s == "string" ? s === We && n > 0 ? (await this.wait(), this.get(e, t, n - Ue)) : s : g(s) ? await s() : await s;
2415
+ return typeof s == "string" ? s === Ue && n > 0 ? (await this.wait(), this.get(e, t, n - He)) : s : v(s) ? await s() : await s;
2402
2416
  }
2403
2417
  static getNameList() {
2404
2418
  return i(this.icons, (e, t) => t.replace(/^@/, ""));
2405
2419
  }
2406
2420
  static getUrlGlobal() {
2407
- return `${A.isLocalhost(), ""}${this.url}`;
2421
+ return `${N.isLocalhost(), ""}${this.url}`;
2408
2422
  }
2409
2423
  static add(e, t) {
2410
2424
  this.icons[this.getName(e)] = t;
2411
2425
  }
2412
2426
  static addLoad(e) {
2413
- this.icons[this.getName(e)] = We;
2427
+ this.icons[this.getName(e)] = Ue;
2414
2428
  }
2415
2429
  static addGlobal(e, t) {
2416
2430
  this.icons[this.getName(e)] = `${this.getUrlGlobal()}${t}`;
@@ -2428,51 +2442,51 @@ var Ve, He = "__UI_ICON", Ue = 320, We = "--LOAD--", U = class {
2428
2442
  return `@${e}`;
2429
2443
  }
2430
2444
  static wait() {
2431
- return new Promise((e) => setTimeout(() => e(), Ue));
2445
+ return new Promise((e) => setTimeout(() => e(), He));
2432
2446
  }
2433
2447
  };
2434
- Ve = U, b(U, "icons", {}), b(U, "url", "/icons/"), f() && (He in window || (window[He] = {}), Ve.icons = window[He]);
2448
+ Be = G, S(G, "icons", {}), S(G, "url", "/icons/"), m() && (Ve in window || (window[Ve] = {}), Be.icons = window[Ve]);
2435
2449
  //#endregion
2436
2450
  //#region src/functions/getElementItem.ts
2437
- function Ge(e, t, n) {
2451
+ function We(e, t, n) {
2438
2452
  var r, i;
2439
- return (r = (i = T(e)) == null ? void 0 : i[t]) == null ? n : r;
2453
+ return (r = (i = D(e)) == null ? void 0 : i[t]) == null ? n : r;
2440
2454
  }
2441
2455
  //#endregion
2442
2456
  //#region src/functions/setElementItem.ts
2443
- function Ke(e, n, r) {
2444
- let a = T(e);
2457
+ function Ge(e, n, r) {
2458
+ let a = D(e);
2445
2459
  if (a) {
2446
- let e = Ge(a, n);
2460
+ let e = We(a, n);
2447
2461
  if (t(e) && t(r)) i(r, (t, n) => {
2448
- e[n] = _(t);
2462
+ e[n] = y(t);
2449
2463
  });
2450
2464
  else {
2451
- let e = _(r);
2452
- !(n in a) && typeof e == "string" ? a.setAttribute(n.toString(), e) : a[n] = _(r);
2465
+ let e = y(r);
2466
+ !(n in a) && typeof e == "string" ? a.setAttribute(n.toString(), e) : a[n] = y(r);
2453
2467
  }
2454
2468
  }
2455
2469
  return a;
2456
2470
  }
2457
2471
  //#endregion
2458
2472
  //#region src/functions/createElement.ts
2459
- function W(e, t = "div", r, a) {
2460
- if (!f()) return;
2473
+ function K(e, t = "div", r, a) {
2474
+ if (!m()) return;
2461
2475
  let o = document.createElement(t);
2462
2476
  return typeof r == "function" ? r(o) : n(r) && i(r, (e, t) => {
2463
- Ke(o, t, e);
2477
+ Ge(o, t, e);
2464
2478
  }), e == null || e.insertBefore(o, a == null ? null : a), o;
2465
2479
  }
2466
2480
  //#endregion
2467
2481
  //#region src/functions/encodeAttribute.ts
2468
- function qe(e) {
2482
+ function Ke(e) {
2469
2483
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;").trim();
2470
2484
  }
2471
2485
  //#endregion
2472
2486
  //#region src/classes/MetaManager.ts
2473
- var G = class {
2487
+ var q = class {
2474
2488
  constructor(e, t = !1) {
2475
- b(this, "items", {}), this.listMeta = e, this.isProperty = t, this.update();
2489
+ S(this, "items", {}), this.listMeta = e, this.isProperty = t, this.update();
2476
2490
  }
2477
2491
  getListMeta() {
2478
2492
  return this.listMeta;
@@ -2497,7 +2511,7 @@ var G = class {
2497
2511
  return this.isProperty ? "property" : "name";
2498
2512
  }
2499
2513
  findMetaElement(e) {
2500
- if (!f()) return;
2514
+ if (!m()) return;
2501
2515
  let t = `meta[${this.getAttributeName()}="${e}"]`;
2502
2516
  return document.querySelector(t) || void 0;
2503
2517
  }
@@ -2508,15 +2522,15 @@ var G = class {
2508
2522
  var t;
2509
2523
  let n = this.findMetaElement(e), r = (t = this.items[e]) == null ? "" : t;
2510
2524
  if (n) n.content = r;
2511
- else if (f()) {
2525
+ else if (m()) {
2512
2526
  let t = { content: r };
2513
- this.isProperty ? t.property = e : t.name = e, W(document.head, "meta", t);
2527
+ this.isProperty ? t.property = e : t.name = e, K(document.head, "meta", t);
2514
2528
  }
2515
2529
  return this;
2516
2530
  }
2517
2531
  toHtmlString(e) {
2518
2532
  var t;
2519
- let n = qe((t = this.items[e]) == null ? "" : t);
2533
+ let n = Ke((t = this.items[e]) == null ? "" : t);
2520
2534
  return n ? `<meta ${this.getAttributeName()}="${e}" content="${n}">` : "";
2521
2535
  }
2522
2536
  update() {
@@ -2525,121 +2539,121 @@ var G = class {
2525
2539
  this.items[e] = (t = (n = this.findMetaElement(e)) == null ? void 0 : n.content) == null ? "" : t;
2526
2540
  }), this;
2527
2541
  }
2528
- }, K = /* @__PURE__ */ function(e) {
2542
+ }, J = /* @__PURE__ */ function(e) {
2529
2543
  return e.description = "description", e.keywords = "keywords", e.canonical = "canonical", e.robots = "robots", e.author = "author", e;
2530
- }({}), Je = /* @__PURE__ */ function(e) {
2544
+ }({}), qe = /* @__PURE__ */ function(e) {
2531
2545
  return e.indexFollow = "index, follow", e.noIndexFollow = "noindex, follow", e.indexNoFollow = "index, nofollow", e.noIndexNoFollow = "noindex, nofollow", e.noArchive = "noarchive", e.noSnippet = "nosnippet", e.noImageIndex = "noimageindex", e.images = "images", e.noTranslate = "notranslate", e.noPreview = "nopreview", e.textOnly = "textonly", e.noIndexSubpages = "noindex, noarchive", e.none = "none", e;
2532
- }({}), q = /* @__PURE__ */ function(e) {
2546
+ }({}), Y = /* @__PURE__ */ function(e) {
2533
2547
  return e.title = "og:title", e.type = "og:type", e.url = "og:url", e.image = "og:image", e.description = "og:description", e.locale = "og:locale", e.siteName = "og:site_name", e.localeAlternate = "og:locale:alternate", e.imageUrl = "og:image:url", e.imageSecureUrl = "og:image:secure_url", e.imageType = "og:image:type", e.imageWidth = "og:image:width", e.imageHeight = "og:image:height", e.imageAlt = "og:image:alt", e.video = "og:video", e.videoUrl = "og:video:url", e.videoSecureUrl = "og:video:secure_url", e.videoType = "og:video:type", e.videoWidth = "og:video:width", e.videoHeight = "og:video:height", e.audio = "og:audio", e.audioSecureUrl = "og:audio:secure_url", e.audioType = "og:audio:type", e.articlePublishedTime = "article:published_time", e.articleModifiedTime = "article:modified_time", e.articleExpirationTime = "article:expiration_time", e.articleAuthor = "article:author", e.articleSection = "article:section", e.articleTag = "article:tag", e.bookAuthor = "book:author", e.bookIsbn = "book:isbn", e.bookReleaseDate = "book:release_date", e.bookTag = "book:tag", e.musicDuration = "music:duration", e.musicAlbum = "music:album", e.musicAlbumDisc = "music:album:disc", e.musicAlbumTrack = "music:album:track", e.musicMusician = "music:musician", e.musicSong = "music:song", e.musicSongDisc = "music:song:disc", e.musicSongTrack = "music:song:track", e.musicReleaseDate = "music:release_date", e.musicCreator = "music:creator", e.videoActor = "video:actor", e.videoActorRole = "video:actor:role", e.videoDirector = "video:director", e.videoWriter = "video:writer", e.videoDuration = "video:duration", e.videoReleaseDate = "video:release_date", e.videoTag = "video:tag", e.videoSeries = "video:series", e.profileFirstName = "profile:first_name", e.profileLastName = "profile:last_name", e.profileUsername = "profile:username", e.profileGender = "profile:gender", e.productBrand = "product:brand", e.productAvailability = "product:availability", e.productCondition = "product:condition", e.productPriceAmount = "product:price:amount", e.productPriceCurrency = "product:price:currency", e.productRetailerItemId = "product:retailer_item_id", e.productCategory = "product:category", e.productEan = "product:ean", e.productIsbn = "product:isbn", e.productMfrPartNo = "product:mfr_part_no", e.productUpc = "product:upc", e.productWeightValue = "product:weight:value", e.productWeightUnits = "product:weight:units", e.productColor = "product:color", e.productMaterial = "product:material", e.productPattern = "product:pattern", e.productAgeGroup = "product:age_group", e.productGender = "product:gender", e;
2534
- }({}), Ye = /* @__PURE__ */ function(e) {
2548
+ }({}), Je = /* @__PURE__ */ function(e) {
2535
2549
  return e.website = "website", e.article = "article", e.video = "video.other", e.videoTvShow = "video.tv_show", e.videoEpisode = "video.episode", e.videoMovie = "video.movie", e.musicAlbum = "music.album", e.musicPlaylist = "music.playlist", e.musicSong = "music.song", e.musicRadioStation = "music.radio_station", e.app = "app", e.product = "product", e.business = "business.business", e.place = "place", e.event = "event", e.profile = "profile", e.book = "book", e;
2536
- }({}), Xe = /* @__PURE__ */ function(e) {
2550
+ }({}), Ye = /* @__PURE__ */ function(e) {
2537
2551
  return e.inStock = "in stock", e.outOfStock = "out of stock", e.preorder = "preorder", e.backorder = "backorder", e.discontinued = "discontinued", e.pending = "pending", e;
2538
- }({}), Ze = /* @__PURE__ */ function(e) {
2552
+ }({}), Xe = /* @__PURE__ */ function(e) {
2539
2553
  return e.new = "new", e.used = "used", e.refurbished = "refurbished", e;
2540
- }({}), Qe = /* @__PURE__ */ function(e) {
2554
+ }({}), Ze = /* @__PURE__ */ function(e) {
2541
2555
  return e.newborn = "newborn", e.infant = "infant", e.toddler = "toddler", e.kids = "kids", e.adult = "adult", e;
2542
- }({}), $e = /* @__PURE__ */ function(e) {
2556
+ }({}), Qe = /* @__PURE__ */ function(e) {
2543
2557
  return e.female = "female", e.male = "male", e.unisex = "unisex", e;
2544
- }({}), J = /* @__PURE__ */ function(e) {
2558
+ }({}), X = /* @__PURE__ */ function(e) {
2545
2559
  return e.card = "twitter:card", e.site = "twitter:site", e.creator = "twitter:creator", e.url = "twitter:url", e.title = "twitter:title", e.description = "twitter:description", e.image = "twitter:image", e.imageAlt = "twitter:image:alt", e.imageSrc = "twitter:image:src", e.imageWidth = "twitter:image:width", e.imageHeight = "twitter:image:height", e.label1 = "twitter:label1", e.data1 = "twitter:data1", e.label2 = "twitter:label2", e.data2 = "twitter:data2", e.appNameIphone = "twitter:app:name:iphone", e.appIdIphone = "twitter:app:id:iphone", e.appUrlIphone = "twitter:app:url:iphone", e.appNameIpad = "twitter:app:name:ipad", e.appIdIpad = "twitter:app:id:ipad", e.appUrlIpad = "twitter:app:url:ipad", e.appNameGooglePlay = "twitter:app:name:googleplay", e.appIdGooglePlay = "twitter:app:id:googleplay", e.appUrlGooglePlay = "twitter:app:url:googleplay", e.player = "twitter:player", e.playerWidth = "twitter:player:width", e.playerHeight = "twitter:player:height", e.playerStream = "twitter:player:stream", e.playerStreamContentType = "twitter:player:stream:content_type", e;
2546
- }({}), et = /* @__PURE__ */ function(e) {
2560
+ }({}), $e = /* @__PURE__ */ function(e) {
2547
2561
  return e.summary = "summary", e.summaryLargeImage = "summary_large_image", e.app = "app", e.player = "player", e.product = "product", e.gallery = "gallery", e.photo = "photo", e.leadGeneration = "lead_generation", e.audio = "audio", e.poll = "poll", e;
2548
- }({}), tt = class extends G {
2562
+ }({}), et = class extends q {
2549
2563
  constructor() {
2550
- super(Object.values(q), !0);
2564
+ super(Object.values(Y), !0);
2551
2565
  }
2552
2566
  getTitle() {
2553
- return this.get(q.title);
2567
+ return this.get(Y.title);
2554
2568
  }
2555
2569
  getType() {
2556
- return this.get(q.type);
2570
+ return this.get(Y.type);
2557
2571
  }
2558
2572
  getUrl() {
2559
- return this.get(q.url);
2573
+ return this.get(Y.url);
2560
2574
  }
2561
2575
  getImage() {
2562
- return this.get(q.image);
2576
+ return this.get(Y.image);
2563
2577
  }
2564
2578
  getDescription() {
2565
- return this.get(q.description);
2579
+ return this.get(Y.description);
2566
2580
  }
2567
2581
  getLocale() {
2568
- return this.get(q.locale);
2582
+ return this.get(Y.locale);
2569
2583
  }
2570
2584
  getSiteName() {
2571
- return this.get(q.siteName);
2585
+ return this.get(Y.siteName);
2572
2586
  }
2573
2587
  setTitle(e) {
2574
- return this.set(q.title, e);
2588
+ return this.set(Y.title, e);
2575
2589
  }
2576
2590
  setType(e) {
2577
- return this.set(q.type, e);
2591
+ return this.set(Y.type, e);
2578
2592
  }
2579
2593
  setUrl(e) {
2580
- return this.set(q.url, e);
2594
+ return this.set(Y.url, e);
2581
2595
  }
2582
2596
  setImage(e) {
2583
- return this.set(q.image, e);
2597
+ return this.set(Y.image, e);
2584
2598
  }
2585
2599
  setDescription(e) {
2586
- return this.set(q.description, e);
2600
+ return this.set(Y.description, e);
2587
2601
  }
2588
2602
  setLocale(e) {
2589
- return this.set(q.locale, e);
2603
+ return this.set(Y.locale, e);
2590
2604
  }
2591
2605
  setSiteName(e) {
2592
- return this.set(q.siteName, e);
2606
+ return this.set(Y.siteName, e);
2593
2607
  }
2594
- }, nt = class extends G {
2608
+ }, tt = class extends q {
2595
2609
  constructor() {
2596
- super(Object.values(J));
2610
+ super(Object.values(X));
2597
2611
  }
2598
2612
  getCard() {
2599
- return this.get(J.card);
2613
+ return this.get(X.card);
2600
2614
  }
2601
2615
  getSite() {
2602
- return this.get(J.site);
2616
+ return this.get(X.site);
2603
2617
  }
2604
2618
  getCreator() {
2605
- return this.get(J.creator);
2619
+ return this.get(X.creator);
2606
2620
  }
2607
2621
  getUrl() {
2608
- return this.get(J.url);
2622
+ return this.get(X.url);
2609
2623
  }
2610
2624
  getTitle() {
2611
- return this.get(J.title);
2625
+ return this.get(X.title);
2612
2626
  }
2613
2627
  getDescription() {
2614
- return this.get(J.description);
2628
+ return this.get(X.description);
2615
2629
  }
2616
2630
  getImage() {
2617
- return this.get(J.image);
2631
+ return this.get(X.image);
2618
2632
  }
2619
2633
  setCard(e) {
2620
- return this.set(J.card, e), this;
2634
+ return this.set(X.card, e), this;
2621
2635
  }
2622
2636
  setSite(e) {
2623
- return this.set(J.site, e), this;
2637
+ return this.set(X.site, e), this;
2624
2638
  }
2625
2639
  setCreator(e) {
2626
- return this.set(J.creator, e), this;
2640
+ return this.set(X.creator, e), this;
2627
2641
  }
2628
2642
  setUrl(e) {
2629
- return this.set(J.url, e), this;
2643
+ return this.set(X.url, e), this;
2630
2644
  }
2631
2645
  setTitle(e) {
2632
- return this.set(J.title, e), this;
2646
+ return this.set(X.title, e), this;
2633
2647
  }
2634
2648
  setDescription(e) {
2635
- return this.set(J.description, e), this;
2649
+ return this.set(X.description, e), this;
2636
2650
  }
2637
2651
  setImage(e) {
2638
- return this.set(J.image, e), this;
2652
+ return this.set(X.image, e), this;
2639
2653
  }
2640
- }, rt = class extends G {
2654
+ }, nt = class extends q {
2641
2655
  constructor() {
2642
- super(Object.values(K)), b(this, "suffix", void 0), b(this, "og", void 0), b(this, "twitter", void 0), this.og = new tt(), this.twitter = new nt();
2656
+ super(Object.values(J)), S(this, "suffix", void 0), S(this, "og", void 0), S(this, "twitter", void 0), this.og = new et(), this.twitter = new tt();
2643
2657
  }
2644
2658
  getOg() {
2645
2659
  return this.og;
@@ -2648,25 +2662,25 @@ var G = class {
2648
2662
  return this.twitter;
2649
2663
  }
2650
2664
  getTitle() {
2651
- return f() ? document.title.replace(this.getSuffix(), "").trim() : "";
2665
+ return m() ? document.title.replace(this.getSuffix(), "").trim() : "";
2652
2666
  }
2653
2667
  getKeywords() {
2654
- return this.get(K.keywords);
2668
+ return this.get(J.keywords);
2655
2669
  }
2656
2670
  getDescription() {
2657
- return this.get(K.description);
2671
+ return this.get(J.description);
2658
2672
  }
2659
2673
  getImage() {
2660
2674
  return this.og.getImage();
2661
2675
  }
2662
2676
  getCanonical() {
2663
- return this.get(K.canonical);
2677
+ return this.get(J.canonical);
2664
2678
  }
2665
2679
  getRobots() {
2666
- return this.get(K.robots);
2680
+ return this.get(J.robots);
2667
2681
  }
2668
2682
  getAuthor() {
2669
- return this.get(K.author);
2683
+ return this.get(J.author);
2670
2684
  }
2671
2685
  getSiteName() {
2672
2686
  return this.og.getSiteName();
@@ -2675,29 +2689,29 @@ var G = class {
2675
2689
  return this.og.getLocale();
2676
2690
  }
2677
2691
  setTitle(e) {
2678
- if (f()) {
2692
+ if (m()) {
2679
2693
  let t = c(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
2680
2694
  document.title = t, this.og.setTitle(t), this.twitter.setTitle(t);
2681
2695
  }
2682
2696
  return this;
2683
2697
  }
2684
2698
  setKeywords(e) {
2685
- return this.set(K.keywords, E(e).join(", ")), this;
2699
+ return this.set(J.keywords, k(e).join(", ")), this;
2686
2700
  }
2687
2701
  setDescription(e) {
2688
- return this.set(K.description, e), this;
2702
+ return this.set(J.description, e), this;
2689
2703
  }
2690
2704
  setImage(e) {
2691
2705
  return this.og.setImage(e), this.twitter.setImage(e), this;
2692
2706
  }
2693
2707
  setCanonical(e) {
2694
- return this.set(K.canonical, e), this.og.setUrl(e), this.twitter.setUrl(e), this;
2708
+ return this.set(J.canonical, e), this.og.setUrl(e), this.twitter.setUrl(e), this;
2695
2709
  }
2696
2710
  setRobots(e) {
2697
- return this.set(K.robots, e), this;
2711
+ return this.set(J.robots, e), this;
2698
2712
  }
2699
2713
  setAuthor(e) {
2700
- return this.set(K.author, e), this;
2714
+ return this.set(J.author, e), this;
2701
2715
  }
2702
2716
  setSiteName(e) {
2703
2717
  return this.og.setSiteName(e), this.twitter.setSite(e), this;
@@ -2714,7 +2728,7 @@ var G = class {
2714
2728
  getSuffix() {
2715
2729
  return c(this.suffix) ? ` - ${this.suffix}` : "";
2716
2730
  }
2717
- }, Y = class {
2731
+ }, Z = class {
2718
2732
  static async is() {
2719
2733
  let e = await this.get();
2720
2734
  return e !== -1 && e <= 8;
@@ -2735,8 +2749,8 @@ var G = class {
2735
2749
  return this.calculate;
2736
2750
  }
2737
2751
  static createElement() {
2738
- return W(document.body, "div", (e) => {
2739
- e.style.height = "24px", e.style.overflowY = "scroll", e.style.position = "fixed", e.style.width = "100%", W(e, "div", (e) => {
2752
+ return K(document.body, "div", (e) => {
2753
+ e.style.height = "24px", e.style.overflowY = "scroll", e.style.position = "fixed", e.style.width = "100%", K(e, "div", (e) => {
2740
2754
  e.style.height = "100px";
2741
2755
  });
2742
2756
  });
@@ -2751,28 +2765,28 @@ var G = class {
2751
2765
  });
2752
2766
  }
2753
2767
  };
2754
- b(Y, "storage", new S("scrollbar", !0)), b(Y, "calculate", !1);
2768
+ S(Z, "storage", new w("scrollbar", !0)), S(Z, "calculate", !1);
2755
2769
  //#endregion
2756
2770
  //#region src/functions/escapeExp.ts
2757
- function X(e) {
2771
+ function Q(e) {
2758
2772
  return e.replace(/([[\]\\^$.?*+(){}/|])/g, "\\$1");
2759
2773
  }
2760
2774
  //#endregion
2761
2775
  //#region src/functions/getSeparatingSearchExp.ts
2762
- function it(e) {
2763
- let t = i(e.split(" "), (e) => X(e)).join("|");
2776
+ function rt(e) {
2777
+ let t = i(e.split(" "), (e) => Q(e)).join("|");
2764
2778
  return RegExp(`(${t})`, "ig");
2765
2779
  }
2766
2780
  //#endregion
2767
2781
  //#region src/functions/addTagHighlightMatch.ts
2768
- function at(e, t, n = "sys-highlight-match") {
2769
- return t ? String(e).replace(it(t), `<span class="${n}">$1</span>`) : e;
2782
+ function it(e, t, n = "sys-highlight-match") {
2783
+ return t ? String(e).replace(rt(t), `<span class="${n}">$1</span>`) : e;
2770
2784
  }
2771
2785
  //#endregion
2772
2786
  //#region src/classes/SearchListData.ts
2773
- var ot = class {
2787
+ var at = class {
2774
2788
  constructor(e, t, n, r) {
2775
- b(this, "listCache", void 0), this.list = e, this.columns = t, this.item = n, this.options = r;
2789
+ S(this, "listCache", void 0), this.list = e, this.columns = t, this.item = n, this.options = r;
2776
2790
  }
2777
2791
  is() {
2778
2792
  return !!(this.list && this.columns);
@@ -2809,8 +2823,8 @@ var ot = class {
2809
2823
  toFormatItem(e, t) {
2810
2824
  let n = {};
2811
2825
  return this.columns && this.columns.forEach((r) => {
2812
- let i = this.getColumnName(r), a = z(e, r);
2813
- n[i] = c(a) && t ? this.addTag(a) : R(a);
2826
+ let i = this.getColumnName(r), a = R(e, r);
2827
+ n[i] = c(a) && t ? this.addTag(a) : L(a);
2814
2828
  }), {
2815
2829
  ...e,
2816
2830
  ...n,
@@ -2821,7 +2835,7 @@ var ot = class {
2821
2835
  return e.replace(/\.([a-z0-9])/gi, (e, t) => t.toUpperCase()) + "Search";
2822
2836
  }
2823
2837
  addTag(e) {
2824
- return at(R(e), this.item.get(), this.options.getClassName());
2838
+ return it(L(e), this.item.get(), this.options.getClassName());
2825
2839
  }
2826
2840
  generateCache() {
2827
2841
  if (!this.isList()) return [];
@@ -2829,8 +2843,8 @@ var ot = class {
2829
2843
  for (let t of this.list) {
2830
2844
  let n = "";
2831
2845
  if (this.columns) for (let e of this.columns) {
2832
- let r = z(t, e);
2833
- c(r) && (n += ` ${R(r)}`);
2846
+ let r = R(t, e);
2847
+ c(r) && (n += ` ${L(r)}`);
2834
2848
  }
2835
2849
  e.push({
2836
2850
  item: t,
@@ -2845,7 +2859,7 @@ var ot = class {
2845
2859
  resetCache() {
2846
2860
  this.listCache = void 0;
2847
2861
  }
2848
- }, st = class {
2862
+ }, ot = class {
2849
2863
  constructor(e, t) {
2850
2864
  this.value = e, this.options = t;
2851
2865
  }
@@ -2865,29 +2879,29 @@ var ot = class {
2865
2879
  };
2866
2880
  //#endregion
2867
2881
  //#region src/functions/getExp.ts
2868
- function ct(e, t = "ig", n = ":value") {
2869
- let r = X(e);
2882
+ function st(e, t = "ig", n = ":value") {
2883
+ let r = Q(e);
2870
2884
  return new RegExp(n.replace(/:value/g, r), t);
2871
2885
  }
2872
2886
  //#endregion
2873
2887
  //#region src/functions/getExactSearchExp.ts
2874
- function lt(e) {
2875
- return ct(e, "i", "(:value)");
2888
+ function ct(e) {
2889
+ return st(e, "i", "(:value)");
2876
2890
  }
2877
2891
  //#endregion
2878
2892
  //#region src/functions/getSearchExp.ts
2879
- function ut(e) {
2893
+ function lt(e) {
2880
2894
  let t = "";
2881
2895
  return e.split(" ").forEach((e) => {
2882
- let n = X(e).trim();
2896
+ let n = Q(e).trim();
2883
2897
  c(n) && (t += `(?=.*?${n})`);
2884
2898
  }), RegExp(`^${t}`, "ig");
2885
2899
  }
2886
2900
  //#endregion
2887
2901
  //#region src/classes/SearchListMatcher.ts
2888
- var dt = class {
2902
+ var ut = class {
2889
2903
  constructor(e, t) {
2890
- b(this, "matcher", void 0), this.item = e, this.options = t, this.initMatcher();
2904
+ S(this, "matcher", void 0), this.item = e, this.options = t, this.initMatcher();
2891
2905
  }
2892
2906
  is() {
2893
2907
  return !!this.matcher;
@@ -2902,9 +2916,9 @@ var dt = class {
2902
2916
  this.initMatcher();
2903
2917
  }
2904
2918
  initMatcher() {
2905
- this.item.is() ? this.matcher = this.options.getFindExactMatch() ? lt(this.item.get()) : ut(this.item.get()) : this.matcher = void 0;
2919
+ this.item.is() ? this.matcher = this.options.getFindExactMatch() ? ct(this.item.get()) : lt(this.item.get()) : this.matcher = void 0;
2906
2920
  }
2907
- }, ft = class {
2921
+ }, dt = class {
2908
2922
  constructor(e) {
2909
2923
  this.options = e;
2910
2924
  }
@@ -2934,12 +2948,12 @@ var dt = class {
2934
2948
  setOptions(e) {
2935
2949
  return this.options = e, this;
2936
2950
  }
2937
- }, pt = class {
2951
+ }, ft = class {
2938
2952
  constructor(e, t, n, r) {
2939
- b(this, "options", void 0), b(this, "item", void 0), b(this, "matcher", void 0), b(this, "data", void 0), b(this, "callbackToSelection", (e, t) => {
2953
+ S(this, "options", void 0), S(this, "item", void 0), S(this, "matcher", void 0), S(this, "data", void 0), S(this, "callbackToSelection", (e, t) => {
2940
2954
  if (this.matcher.isSelection(t)) return this.data.toFormatItem(e, !0);
2941
2955
  if (this.options.getReturnEverything()) return this.data.toFormatItem(e, !1);
2942
- }), b(this, "callbackToNone", (e) => this.data.toFormatItem(e, !1)), this.options = new ft(r), this.item = new st(n, this.options), this.matcher = new dt(this.item, this.options), this.data = new ot(e, t, this.item, this.options);
2956
+ }), S(this, "callbackToNone", (e) => this.data.toFormatItem(e, !1)), this.options = new dt(r), this.item = new ot(n, this.options), this.matcher = new ut(this.item, this.options), this.data = new at(e, t, this.item, this.options);
2943
2957
  }
2944
2958
  getData() {
2945
2959
  return this.data;
@@ -2976,7 +2990,7 @@ var dt = class {
2976
2990
  let e = this.data.getList();
2977
2991
  return e ? i(e, this.callbackToNone) : [];
2978
2992
  }
2979
- }, mt = [
2993
+ }, pt = [
2980
2994
  "d",
2981
2995
  "e",
2982
2996
  "f",
@@ -2996,29 +3010,29 @@ var dt = class {
2996
3010
  "t",
2997
3011
  "u",
2998
3012
  "v"
2999
- ], ht = (e, t = {}) => {
3013
+ ], mt = (e, t = {}) => {
3000
3014
  let r = String(e);
3001
3015
  if (e.match(/%[a-z]/)) {
3002
3016
  let e = 0;
3003
3017
  i(t, (t) => {
3004
- r = r.replace(RegExp(`%${mt[e++]}`, "g"), String(t));
3018
+ r = r.replace(RegExp(`%${pt[e++]}`, "g"), String(t));
3005
3019
  });
3006
3020
  }
3007
3021
  return n(t) && i(t, (e, t) => {
3008
3022
  r = r.replace(RegExp(`(?:\\[|\\{)${t}(?:\\]|\\})(.*?)(?:\\[|\\{)\\/${t}(?:\\]|\\})`, "g"), (t, n) => String(e).replace(/(?:\[|\{)content(?:\]|\})/g, n)).replace(RegExp(`(?:\\[|\\{)${t}(?:\\]|\\})`, "g"), String(e));
3009
3023
  }), r;
3010
- }, gt = "global", _t = 160, vt = class {
3011
- constructor(e, t = () => w.getLanguage(), n = () => w.getLocation()) {
3012
- b(this, "files", {}), b(this, "data", {}), this.language = t, this.location = n, e && this.add(e);
3024
+ }, ht = "global", gt = 160, _t = class {
3025
+ constructor(e, t = () => E.getLanguage(), n = () => E.getLocation()) {
3026
+ S(this, "files", {}), S(this, "data", {}), this.language = t, this.location = n, e && this.add(e);
3013
3027
  }
3014
3028
  isFile() {
3015
3029
  return Object.keys(this.files).length > 0 && this.getIndex() !== void 0;
3016
3030
  }
3017
3031
  getLocation() {
3018
- return _(this.location);
3032
+ return y(this.location);
3019
3033
  }
3020
3034
  getLanguage() {
3021
- return _(this.language);
3035
+ return y(this.language);
3022
3036
  }
3023
3037
  async getList() {
3024
3038
  let e = this.getIndex();
@@ -3029,7 +3043,7 @@ var dt = class {
3029
3043
  }
3030
3044
  add(e) {
3031
3045
  i(e, (e, t) => {
3032
- g(e) && (this.files[t] = e);
3046
+ v(e) && (this.files[t] = e);
3033
3047
  });
3034
3048
  }
3035
3049
  getIndex() {
@@ -3037,25 +3051,25 @@ var dt = class {
3037
3051
  if (e in this.files) return e;
3038
3052
  let t = this.getLanguage();
3039
3053
  if (t in this.files) return t;
3040
- if ("global" in this.files) return gt;
3054
+ if ("global" in this.files) return ht;
3041
3055
  }
3042
3056
  getByData(e) {
3043
3057
  if (e in this.data) return this.data[e];
3044
3058
  }
3045
3059
  async getByFile(e) {
3046
3060
  if (e in this.files) {
3047
- let t = await _(this.files[e]);
3061
+ let t = await y(this.files[e]);
3048
3062
  return t && (this.data[e] = t), t;
3049
3063
  }
3050
3064
  }
3051
- }, yt = class {
3052
- constructor(e = "/api/translate", t = "list", n = new vt()) {
3053
- b(this, "data", {}), b(this, "cache", []), b(this, "resolveList", []), b(this, "timeout", void 0), b(this, "isReadApi", !0), this.url = e, this.propsName = t, this.files = n;
3065
+ }, vt = class {
3066
+ constructor(e = "/api/translate", t = "list", n = new _t()) {
3067
+ S(this, "data", {}), S(this, "cache", []), S(this, "resolveList", []), S(this, "timeout", void 0), S(this, "isReadApi", !0), this.url = e, this.propsName = t, this.files = n;
3054
3068
  }
3055
3069
  async get(e, t) {
3056
3070
  var n;
3057
3071
  let r = this.getText(e);
3058
- return r ? this.replacement(r, t) : (A.isLocalhost() || await this.add(e), this.replacement((n = this.getText(e)) == null ? e : n));
3072
+ return r ? this.replacement(r, t) : (N.isLocalhost() || await this.add(e), this.replacement((n = this.getText(e)) == null ? e : n));
3059
3073
  }
3060
3074
  getSync(e, t = !1, n) {
3061
3075
  let r = this.getText(e);
@@ -3096,7 +3110,7 @@ var dt = class {
3096
3110
  });
3097
3111
  }
3098
3112
  async addNormalOrSync(e) {
3099
- if (c(e)) if (A.isLocalhost()) this.addSync(e);
3113
+ if (c(e)) if (N.isLocalhost()) this.addSync(e);
3100
3114
  else {
3101
3115
  let t = Object.keys(e);
3102
3116
  t.length > 0 && await this.add(t);
@@ -3138,16 +3152,16 @@ var dt = class {
3138
3152
  return `${this.files.getLanguage()}-${e}`;
3139
3153
  }
3140
3154
  getNameByGlobal(e) {
3141
- return `${gt}-${e}`;
3155
+ return `${ht}-${e}`;
3142
3156
  }
3143
3157
  getNamesNone(e) {
3144
3158
  let t = [];
3145
- return E(e).forEach((e) => {
3159
+ return k(e).forEach((e) => {
3146
3160
  e !== "__TRANSLATE_START__" && e !== "__TRANSLATE_END__" && !this.hasName(e) && t.push(e);
3147
3161
  }), t;
3148
3162
  }
3149
3163
  async getResponse() {
3150
- let e = await A.get({
3164
+ let e = await N.get({
3151
3165
  api: !1,
3152
3166
  path: this.url,
3153
3167
  request: { [this.propsName]: this.cache },
@@ -3157,7 +3171,7 @@ var dt = class {
3157
3171
  return e == null ? {} : e;
3158
3172
  }
3159
3173
  replacement(e, t) {
3160
- return t ? ht(e, t) : e;
3174
+ return t ? mt(e, t) : e;
3161
3175
  }
3162
3176
  async make() {
3163
3177
  let e;
@@ -3169,7 +3183,7 @@ var dt = class {
3169
3183
  this.data[this.getName(t)] = (n = e == null ? void 0 : e[t]) == null ? "" : n;
3170
3184
  }), this.cache = [];
3171
3185
  }
3172
- }, bt = class {
3186
+ }, yt = class {
3173
3187
  static async get(e, t) {
3174
3188
  return this.item.get(e, t);
3175
3189
  }
@@ -3213,24 +3227,29 @@ var dt = class {
3213
3227
  return e.url && this.item.setUrl(e.url), e.propsName && this.item.setPropsName(e.propsName), typeof e.readApi == "boolean" && this.item.setReadApi(e.readApi), this;
3214
3228
  }
3215
3229
  };
3216
- b(bt, "item", new yt());
3230
+ S(yt, "item", new vt());
3217
3231
  //#endregion
3218
3232
  //#region src/functions/arrFill.ts
3219
- function xt(e, t) {
3233
+ function bt(e, t) {
3220
3234
  return Array(t).fill(e);
3221
3235
  }
3222
3236
  //#endregion
3223
3237
  //#region src/functions/blobToBase64.ts
3224
- function St(e) {
3238
+ function xt(e) {
3225
3239
  return new Promise((t, n) => {
3226
3240
  let r = new FileReader();
3227
3241
  r.onloadend = () => t(r.result), r.onerror = n, r.readAsDataURL(e);
3228
3242
  });
3229
3243
  }
3230
3244
  //#endregion
3245
+ //#region src/functions/capitalize.ts
3246
+ function St(e) {
3247
+ return c(e) ? e.charAt(0).toUpperCase() + e.slice(1) : e;
3248
+ }
3249
+ //#endregion
3231
3250
  //#region src/functions/domQuerySelector.ts
3232
3251
  function Ct(e) {
3233
- if (f()) {
3252
+ if (m()) {
3234
3253
  var t;
3235
3254
  return (t = document.querySelector(e)) == null ? void 0 : t;
3236
3255
  }
@@ -3238,58 +3257,58 @@ function Ct(e) {
3238
3257
  //#endregion
3239
3258
  //#region src/functions/domQuerySelectorAll.ts
3240
3259
  function wt(e) {
3241
- if (f()) return document.querySelectorAll(e);
3260
+ if (m()) return document.querySelectorAll(e);
3242
3261
  }
3243
3262
  //#endregion
3244
3263
  //#region src/functions/getElementImage.ts
3245
- function Z(e) {
3246
- return u(e) ? W(void 0, "img", { src: e }) : e;
3264
+ function Tt(e) {
3265
+ return u(e) ? K(void 0, "img", { src: e }) : e;
3247
3266
  }
3248
3267
  //#endregion
3249
3268
  //#region src/functions/resizeImageByMax.ts
3250
- function Tt(e, t = "auto") {
3269
+ function Et(e, t = "auto") {
3251
3270
  switch (t) {
3252
3271
  case "auto": return e.naturalWidth >= e.naturalHeight;
3253
3272
  case "width": return !0;
3254
3273
  case "height": return !1;
3255
3274
  }
3256
3275
  }
3257
- function Et(e, t, n = "auto", r) {
3258
- let i = Z(e);
3276
+ function Dt(e, t, n = "auto", r) {
3277
+ let i = Tt(e);
3259
3278
  if (i && (i.naturalWidth > t && (n === "auto" || n === "width") || i.naturalHeight > t && (n === "auto" || n === "height"))) {
3260
3279
  var a;
3261
- let e = Tt(i, n), o = (a = document.createElement("canvas")) == null ? void 0 : a.getContext("2d");
3280
+ let e = Et(i, n), o = (a = document.createElement("canvas")) == null ? void 0 : a.getContext("2d");
3262
3281
  if (o) return o.canvas.width = e ? t : i.naturalWidth / i.naturalHeight * t, o.canvas.height = e ? i.naturalHeight / i.naturalWidth * t : t, o.drawImage(i, 0, 0, o.canvas.width, o.canvas.height), o.canvas.toDataURL(r);
3263
3282
  }
3264
3283
  }
3265
3284
  //#endregion
3266
3285
  //#region src/functions/ensureMaxSize.ts
3267
- async function Dt(e, t = .56, n = "image/jpeg") {
3286
+ async function Ot(e, t = .56, n = "image/jpeg") {
3268
3287
  return new Promise((r) => {
3269
- let i = new Blob([e], { type: n }), a = Z(URL.createObjectURL(i));
3288
+ let i = new Blob([e], { type: n }), a = Tt(URL.createObjectURL(i));
3270
3289
  a ? a.onload = () => {
3271
- let e = Et(a, t * a.naturalWidth, "width", n);
3290
+ let e = Dt(a, t * a.naturalWidth, "width", n);
3272
3291
  r(e == null ? "" : e);
3273
- } : St(i).then((e) => r(String(e == null ? "" : e)));
3292
+ } : xt(i).then((e) => r(String(e == null ? "" : e)));
3274
3293
  });
3275
3294
  }
3276
3295
  //#endregion
3277
3296
  //#region src/functions/eventStopPropagation.ts
3278
- function Ot(e) {
3297
+ function kt(e) {
3279
3298
  e.preventDefault(), e.stopPropagation();
3280
3299
  }
3281
3300
  //#endregion
3282
3301
  //#region src/functions/frame.ts
3283
- function kt(e, t, n) {
3302
+ function At(e, t, n) {
3284
3303
  let r = () => {
3285
- e(), t != null && t() ? kt(e, t, n) : n == null || n();
3304
+ e(), t != null && t() ? At(e, t, n) : n == null || n();
3286
3305
  };
3287
- f() ? requestAnimationFrame(r) : r();
3306
+ m() ? requestAnimationFrame(r) : r();
3288
3307
  }
3289
3308
  //#endregion
3290
3309
  //#region src/functions/getAttributes.ts
3291
- function At(e) {
3292
- let t = {}, n = T(e);
3310
+ function jt(e) {
3311
+ let t = {}, n = D(e);
3293
3312
  if (n) for (let e of n.attributes) {
3294
3313
  var r;
3295
3314
  t[e.name] = (r = (e == null ? void 0 : e.value) || (e == null ? void 0 : e.textContent)) == null ? void 0 : r;
@@ -3298,66 +3317,66 @@ function At(e) {
3298
3317
  }
3299
3318
  //#endregion
3300
3319
  //#region src/functions/getClipboardData.ts
3301
- async function jt(e) {
3320
+ async function Mt(e) {
3302
3321
  var t, n;
3303
3322
  return (t = e == null || (n = e.clipboardData) == null ? void 0 : n.getData("text")) == null ? await navigator.clipboard.readText() || "" : t;
3304
3323
  }
3305
3324
  //#endregion
3306
3325
  //#region src/functions/getCurrentDate.ts
3307
- function Mt(e = "datetime") {
3308
- return new Me(void 0, e).standard();
3326
+ function Nt(e = "datetime") {
3327
+ return new Pe(void 0, e).standard();
3309
3328
  }
3310
3329
  //#endregion
3311
3330
  //#region src/functions/getElementId.ts
3312
- var Nt = k(1e5, 9e5);
3313
- function Pt(e, t) {
3314
- let n = T(e);
3315
- return n ? (c(n.id) || n.setAttribute("id", `id-${Nt++}`), t ? `#${n.id}${t}`.trim() : n.id) : `id-${Nt++}`;
3331
+ var Pt = d(1e5, 9e5);
3332
+ function Ft(e, t) {
3333
+ let n = D(e);
3334
+ return n ? (c(n.id) || n.setAttribute("id", `id-${Pt++}`), t ? `#${n.id}${t}`.trim() : n.id) : `id-${Pt++}`;
3316
3335
  }
3317
3336
  //#endregion
3318
3337
  //#region src/functions/getKey.ts
3319
- function Ft(e) {
3338
+ function It(e) {
3320
3339
  var t, n, r;
3321
3340
  return (t = (n = e == null ? void 0 : e.key) == null ? e == null ? void 0 : e.code : n) == null ? e == null || (r = e.keyCode) == null ? void 0 : r.toString() : t;
3322
3341
  }
3323
3342
  //#endregion
3324
3343
  //#region src/functions/getLengthOfAllArray.ts
3325
- function Q(e) {
3344
+ function Lt(e) {
3326
3345
  return i(e, (e) => e.length);
3327
3346
  }
3328
3347
  //#endregion
3329
3348
  //#region src/functions/getMaxLengthAllArray.ts
3330
- function It(e) {
3331
- return Math.max(...Q(e));
3349
+ function Rt(e) {
3350
+ return Math.max(...Lt(e));
3332
3351
  }
3333
3352
  //#endregion
3334
3353
  //#region src/functions/getMinLengthAllArray.ts
3335
- function Lt(e) {
3336
- return Math.min(...Q(e));
3354
+ function zt(e) {
3355
+ return Math.min(...Lt(e));
3337
3356
  }
3338
3357
  //#endregion
3339
3358
  //#region src/functions/getMouseClientX.ts
3340
- function Rt(e) {
3359
+ function Bt(e) {
3341
3360
  var t, n;
3342
3361
  return (e == null ? void 0 : e.clientX) || (e == null || (t = e.targetTouches) == null || (t = t[0]) == null ? void 0 : t.clientX) || (e == null || (n = e.touches) == null || (n = n[0]) == null ? void 0 : n.clientX) || 0;
3343
3362
  }
3344
3363
  //#endregion
3345
3364
  //#region src/functions/getMouseClientY.ts
3346
- function zt(e) {
3365
+ function Vt(e) {
3347
3366
  var t, n;
3348
3367
  return (e == null ? void 0 : e.clientY) || (e == null || (t = e.targetTouches) == null || (t = t[0]) == null ? void 0 : t.clientY) || (e == null || (n = e.touches) == null || (n = n[0]) == null ? void 0 : n.clientY) || 0;
3349
3368
  }
3350
3369
  //#endregion
3351
3370
  //#region src/functions/getMouseClient.ts
3352
- function Bt(e) {
3371
+ function Ht(e) {
3353
3372
  return {
3354
- x: Rt(e),
3355
- y: zt(e)
3373
+ x: Bt(e),
3374
+ y: Vt(e)
3356
3375
  };
3357
3376
  }
3358
3377
  //#endregion
3359
3378
  //#region src/functions/getObjectByKeys.ts
3360
- function Vt(e, t) {
3379
+ function Ut(e, t) {
3361
3380
  let n = {};
3362
3381
  return t.forEach((t) => {
3363
3382
  t in e && e[t] !== void 0 && (n[t] = e[t]);
@@ -3365,7 +3384,7 @@ function Vt(e, t) {
3365
3384
  }
3366
3385
  //#endregion
3367
3386
  //#region src/functions/getObjectNoUndefined.ts
3368
- function Ht(e, t = void 0) {
3387
+ function Wt(e, t = void 0) {
3369
3388
  let n = {};
3370
3389
  return i(e, (e, r) => {
3371
3390
  e !== t && (n[r] = e);
@@ -3373,50 +3392,50 @@ function Ht(e, t = void 0) {
3373
3392
  }
3374
3393
  //#endregion
3375
3394
  //#region src/functions/getObjectOrNone.ts
3376
- function Ut(e) {
3395
+ function Gt(e) {
3377
3396
  return n(e) ? e : {};
3378
3397
  }
3379
3398
  //#endregion
3380
3399
  //#region src/functions/strFill.ts
3381
- function Wt(e, t) {
3382
- return xt(e, t).join("");
3400
+ function Kt(e, t) {
3401
+ return bt(e, t).join("");
3383
3402
  }
3384
3403
  //#endregion
3385
3404
  //#region src/functions/getRandomText.ts
3386
- function Gt(e, t, n = "#", r = 2, i = 12) {
3387
- let a = k(e, t), o = [];
3388
- for (let e = 0; e < a; e++) o.push(Wt(n, k(r, i)));
3405
+ function qt(e, t, n = "#", r = 2, i = 12) {
3406
+ let a = d(e, t), o = [];
3407
+ for (let e = 0; e < a; e++) o.push(Kt(n, d(r, i)));
3389
3408
  return o.join(" ");
3390
3409
  }
3391
3410
  //#endregion
3392
3411
  //#region src/functions/getStepPercent.ts
3393
- function Kt(e, t) {
3412
+ function Jt(e, t) {
3394
3413
  let n = e == null ? 0 : e;
3395
3414
  return t > n ? 100 / (t - n) : 0;
3396
3415
  }
3397
3416
  //#endregion
3398
3417
  //#region src/functions/getStepValue.ts
3399
- function qt(e, t) {
3418
+ function Yt(e, t) {
3400
3419
  let n = e == null ? 0 : e;
3401
3420
  return t > n ? (t - n) / 100 : 0;
3402
3421
  }
3403
3422
  //#endregion
3404
3423
  //#region src/functions/goScroll.ts
3405
- var Jt = 0;
3406
- function Yt(e, t, n) {
3424
+ var Xt = 0;
3425
+ function Zt(e, t, n) {
3407
3426
  let r = t == null ? void 0 : t.closest(e);
3408
3427
  if (t && r && r.scrollHeight !== r.offsetHeight) {
3409
3428
  let e = r.getBoundingClientRect(), i = t.getBoundingClientRect();
3410
3429
  if (n) {
3411
3430
  let a = n.getBoundingClientRect();
3412
3431
  r.scrollTop = t.offsetTop - (a.top - e.top) - (a.height / 2 - i.height / 2), r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = t.offsetTop + t.offsetHeight - r.offsetHeight);
3413
- } else r.scrollTop > t.offsetTop ? r.scrollTop = i.top - e.top - Jt : r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = i.top - e.top + i.height - e.height + Jt);
3432
+ } else r.scrollTop > t.offsetTop ? r.scrollTop = i.top - e.top - Xt : r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = i.top - e.top + i.height - e.height + Xt);
3414
3433
  }
3415
3434
  }
3416
3435
  //#endregion
3417
3436
  //#region src/functions/goScrollSmooth.ts
3418
- function Xt(e, t, n = 0) {
3419
- if (!f()) return;
3437
+ function Qt(e, t, n = 0) {
3438
+ if (!m()) return;
3420
3439
  let r = (t == null ? void 0 : t.behavior) || "smooth";
3421
3440
  if ("scrollIntoView" in e && !n) {
3422
3441
  e.scrollIntoView({
@@ -3437,8 +3456,8 @@ function Xt(e, t, n = 0) {
3437
3456
  }
3438
3457
  //#endregion
3439
3458
  //#region src/functions/goScrollTo.ts
3440
- function Zt(e, t, n = "smooth") {
3441
- if (!f() || !e || !t) return;
3459
+ function $t(e, t, n = "smooth") {
3460
+ if (!m() || !e || !t) return;
3442
3461
  let r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
3443
3462
  e.scrollBy({
3444
3463
  top: i.top - r.top,
@@ -3448,13 +3467,13 @@ function Zt(e, t, n = "smooth") {
3448
3467
  }
3449
3468
  //#endregion
3450
3469
  //#region src/functions/isShare.ts
3451
- function Qt() {
3452
- return f() && typeof navigator < "u" && !!navigator.share;
3470
+ function en() {
3471
+ return m() && typeof navigator < "u" && !!navigator.share;
3453
3472
  }
3454
3473
  //#endregion
3455
3474
  //#region src/functions/handleShare.ts
3456
- async function $t(e) {
3457
- if (Qt() && navigator.canShare && navigator.canShare(e)) try {
3475
+ async function tn(e) {
3476
+ if (en() && navigator.canShare && navigator.canShare(e)) try {
3458
3477
  return await navigator.share(e), !0;
3459
3478
  } catch (e) {
3460
3479
  console.error("handleShare error:", e);
@@ -3463,20 +3482,20 @@ async function $t(e) {
3463
3482
  }
3464
3483
  //#endregion
3465
3484
  //#region src/functions/inArray.ts
3466
- function en(e, t) {
3485
+ function nn(e, t) {
3467
3486
  return e.indexOf(t) !== -1;
3468
3487
  }
3469
3488
  //#endregion
3470
3489
  //#region src/functions/initScrollbarOffset.ts
3471
- async function tn() {
3472
- if (f()) {
3473
- let e = await Y.get();
3490
+ async function rn() {
3491
+ if (m()) {
3492
+ let e = await Z.get();
3474
3493
  document.body.style.setProperty("--sys-scrollbar-offset", `${e}px`);
3475
3494
  }
3476
3495
  }
3477
3496
  //#endregion
3478
3497
  //#region src/functions/intersectKey.ts
3479
- function nn(e, n) {
3498
+ function an(e, n) {
3480
3499
  let r = {};
3481
3500
  return t(e) && t(n) && i(e, (e, t) => {
3482
3501
  t in n && (r[t] = e);
@@ -3484,13 +3503,13 @@ function nn(e, n) {
3484
3503
  }
3485
3504
  //#endregion
3486
3505
  //#region src/functions/isApiSuccess.ts
3487
- var rn = (e) => {
3506
+ var on = (e) => {
3488
3507
  var t;
3489
- return o(e) ? !0 : !!(e && n(e) && ((e == null ? void 0 : e.status) === "success" || e != null && e.success || !(e == null || (t = e.statusObject) == null) && t.status && String(e.statusObject.status).match(/^2/) || !("status" in e) && !("success" in e) && !("statusObject" in e) && String(A.getStatus().getStatus()).match(/^2/)));
3508
+ return o(e) ? !0 : !!(e && n(e) && ((e == null ? void 0 : e.status) === "success" || e != null && e.success || !(e == null || (t = e.statusObject) == null) && t.status && String(e.statusObject.status).match(/^2/) || !("status" in e) && !("success" in e) && !("statusObject" in e) && String(N.getStatus().getStatus()).match(/^2/)));
3490
3509
  };
3491
3510
  //#endregion
3492
3511
  //#region src/functions/isDifferent.ts
3493
- function an(e, t) {
3512
+ function sn(e, t) {
3494
3513
  let n = Object.keys(e).length !== Object.keys(t).length;
3495
3514
  return n || i(e, (e, r) => {
3496
3515
  e !== (t == null ? void 0 : t[r]) && (n = !0);
@@ -3498,25 +3517,25 @@ function an(e, t) {
3498
3517
  }
3499
3518
  //#endregion
3500
3519
  //#region src/functions/isElementVisible.ts
3501
- function on(e) {
3502
- if (!f()) return !1;
3503
- let t = T(e);
3520
+ function cn(e) {
3521
+ if (!m()) return !1;
3522
+ let t = D(e);
3504
3523
  if (!t || "isConnected" in t && t.isConnected === !1) return !1;
3505
3524
  let n = window.getComputedStyle(t);
3506
3525
  return n.display !== "none" && n.visibility !== "hidden" && n.opacity !== "0" && t.offsetWidth !== 0 && t.offsetHeight !== 0;
3507
3526
  }
3508
3527
  //#endregion
3509
3528
  //#region src/functions/isInput.ts
3510
- var sn = (e) => {
3529
+ var ln = (e) => {
3511
3530
  if (e instanceof HTMLElement) {
3512
3531
  let t = e.tagName.toLowerCase();
3513
3532
  return !!(t === "input" || t === "textarea" || t === "select" || e.isContentEditable || e.getAttribute("contenteditable") === "true");
3514
3533
  }
3515
3534
  return !1;
3516
- }, cn = (e, t) => e.code === "Space" || e.code === "Enter" || e.key === " " || e.key === "Spacebar" || e.key === "Enter" || e.keyCode === 13 || e.keyCode === 32 ? t === void 0 ? !sn(e.target) : !t : !1;
3535
+ }, un = (e, t) => e.code === "Space" || e.code === "Enter" || e.key === " " || e.key === "Spacebar" || e.key === "Enter" || e.keyCode === 13 || e.keyCode === 32 ? t === void 0 ? !ln(e.target) : !t : !1;
3517
3536
  //#endregion
3518
3537
  //#region src/functions/isFloat.ts
3519
- function ln(e) {
3538
+ function dn(e) {
3520
3539
  switch (typeof e) {
3521
3540
  case "number": return !0;
3522
3541
  case "string": return !!e.match(/^([0-9]+|[0-9]+\.[0-9]+)$/);
@@ -3525,18 +3544,18 @@ function ln(e) {
3525
3544
  }
3526
3545
  //#endregion
3527
3546
  //#region src/functions/isIntegerBetween.ts
3528
- function un(e, t) {
3547
+ function fn(e, t) {
3529
3548
  let n = Math.floor(t);
3530
3549
  return e >= n && e < n + 1;
3531
3550
  }
3532
3551
  //#endregion
3533
3552
  //#region src/functions/isSelectedByList.ts
3534
- function dn(e, t) {
3535
- return Array.isArray(e) ? e.every((e) => h(e, t)) : h(e, t);
3553
+ function pn(e, t) {
3554
+ return Array.isArray(e) ? e.every((e) => _(e, t)) : _(e, t);
3536
3555
  }
3537
3556
  //#endregion
3538
3557
  //#region src/functions/removeCommonPrefix.ts
3539
- function fn(e, t) {
3558
+ function mn(e, t) {
3540
3559
  if (e.startsWith(t)) return e.slice(t.length).trim();
3541
3560
  let n = 0;
3542
3561
  for (; e[n] === t[n] && n < e.length && n < t.length;) n++;
@@ -3544,41 +3563,41 @@ function fn(e, t) {
3544
3563
  }
3545
3564
  //#endregion
3546
3565
  //#region src/functions/replaceComponentName.ts
3547
- var pn = (e, t, n) => {
3566
+ var hn = (e, t, n) => {
3548
3567
  var r;
3549
3568
  return e == null || (r = e.replace(RegExp(`<${t}`, "ig"), `<${n}`)) == null || (r = r.replace(RegExp(`</${t}`, "ig"), `</${n}`)) == null ? void 0 : r.trim();
3550
3569
  };
3551
3570
  //#endregion
3552
3571
  //#region src/functions/uniqueArray.ts
3553
- function mn(e) {
3572
+ function gn(e) {
3554
3573
  return [...new Set(e)];
3555
3574
  }
3556
3575
  //#endregion
3557
3576
  //#region src/functions/replaceRecursive.ts
3558
3577
  function $(e, n, r = !0) {
3559
- let a = d(e);
3578
+ let a = p(e);
3560
3579
  return t(e) && t(n) && i(n, (n, i) => {
3561
3580
  let o = e == null ? void 0 : e[i];
3562
- t(o) && t(n) ? r && Array.isArray(o) && Array.isArray(n) ? a[i] = d(mn([...o, ...n])) : a[i] = $(Array.isArray(o) ? { ...o } : o, n, r) : a[i] = t(n) ? d(n) : n;
3581
+ t(o) && t(n) ? r && Array.isArray(o) && Array.isArray(n) ? a[i] = p(gn([...o, ...n])) : a[i] = $(Array.isArray(o) ? { ...o } : o, n, r) : a[i] = t(n) ? p(n) : n;
3563
3582
  }), a;
3564
3583
  }
3565
3584
  //#endregion
3566
3585
  //#region src/functions/replaceTemplate.ts
3567
- function hn(e, t) {
3586
+ function _n(e, t) {
3568
3587
  let n = e;
3569
3588
  return i(t, (e, t) => {
3570
- n = n.replace(ct(`[${t}]`), _(e));
3589
+ n = n.replace(st(`[${t}]`), y(e));
3571
3590
  }), n;
3572
3591
  }
3573
3592
  //#endregion
3574
3593
  //#region src/functions/secondToTime.ts
3575
- function gn(e) {
3576
- let t = m(e);
3594
+ function vn(e) {
3595
+ let t = g(e);
3577
3596
  return t > 0 ? `${String(Math.floor(t / 60)).padStart(2, "0")}:${String(t % 60).padStart(2, "0")}` : "00:00";
3578
3597
  }
3579
3598
  //#endregion
3580
3599
  //#region src/functions/setValues.ts
3581
- function _n(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: i = !0, notEmpty: a = !1 }) {
3600
+ function yn(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: i = !0, notEmpty: a = !1 }) {
3582
3601
  if (n) {
3583
3602
  if (o(e)) {
3584
3603
  let n = e.indexOf(t), i = [...e];
@@ -3590,51 +3609,51 @@ function _n(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: i = !0, no
3590
3609
  }
3591
3610
  //#endregion
3592
3611
  //#region src/functions/splice.ts
3593
- function vn(e, n, r) {
3612
+ function bn(e, n, r) {
3594
3613
  if (t(e) && t(n)) {
3595
3614
  if (r) {
3596
3615
  let a = {}, o = !1;
3597
3616
  return i(e, (e, i) => {
3598
- !o && (r === i || r === e) ? (o = !0, a = $(a, n)) : o ? a = $(a, { [i]: e }) : a[i] = t(e) ? d(e) : e;
3617
+ !o && (r === i || r === e) ? (o = !0, a = $(a, n)) : o ? a = $(a, { [i]: e }) : a[i] = t(e) ? p(e) : e;
3599
3618
  }), o ? a : $(e, n);
3600
3619
  }
3601
3620
  if (t(n)) return $(e, n);
3602
3621
  }
3603
- return d(e);
3622
+ return p(e);
3604
3623
  }
3605
3624
  //#endregion
3606
3625
  //#region src/functions/toCamelCaseFirst.ts
3607
- function yn(e) {
3608
- return Pe(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
3626
+ function xn(e) {
3627
+ return z(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
3609
3628
  }
3610
3629
  //#endregion
3611
3630
  //#region src/functions/toKebabCase.ts
3612
- function bn(e) {
3631
+ function Sn(e) {
3613
3632
  return e.toString().trim().replace(/[^\w-. ]+/g, "").replace(/[ .]+/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (e) => `${e.toLowerCase()}`).replace(/^[A-Z]/, (e) => e.toLowerCase()).replace(/(?<=[\w ])[A-Z]/g, (e) => `-${e.toLowerCase()}`).replace(/[A-Z]/g, (e) => e.toLowerCase());
3614
3633
  }
3615
3634
  //#endregion
3616
3635
  //#region src/functions/toNumberByMax.ts
3617
- function xn(e, t, n, r) {
3618
- let i = m(e), a = m(t);
3619
- return t && a < i ? `${Sn(a, n, r)}+` : Sn(i, n, r);
3636
+ function Cn(e, t, n, r) {
3637
+ let i = g(e), a = g(t);
3638
+ return t && a < i ? `${wn(a, n, r)}+` : wn(i, n, r);
3620
3639
  }
3621
- var Sn = (e, t, n) => t ? new L(n).number(e) : e;
3640
+ var wn = (e, t, n) => t ? new F(n).number(e) : e;
3622
3641
  //#endregion
3623
3642
  //#region src/functions/toPercent.ts
3624
- function Cn(e, t) {
3643
+ function Tn(e, t) {
3625
3644
  return 1 / e * t;
3626
3645
  }
3627
3646
  //#endregion
3628
3647
  //#region src/functions/toPercentBy100.ts
3629
- function wn(e, t) {
3630
- return Cn(e, t) * 100;
3648
+ function En(e, t) {
3649
+ return Tn(e, t) * 100;
3631
3650
  }
3632
3651
  //#endregion
3633
3652
  //#region src/functions/uint8ArrayToBase64.ts
3634
- function Tn(e) {
3653
+ function Dn(e) {
3635
3654
  let t = "";
3636
3655
  for (let n of e) t += String.fromCharCode(n);
3637
- if (f()) return window.btoa(t);
3656
+ if (m()) return window.btoa(t);
3638
3657
  if (globalThis && globalThis.Buffer) {
3639
3658
  var n;
3640
3659
  return (n = globalThis) == null ? void 0 : n.Buffer.from(e).toString("base64");
@@ -3643,8 +3662,8 @@ function Tn(e) {
3643
3662
  }
3644
3663
  //#endregion
3645
3664
  //#region src/functions/writeClipboardData.ts
3646
- async function En(e) {
3647
- if (f()) try {
3665
+ async function On(e) {
3666
+ if (m()) try {
3648
3667
  await navigator.clipboard.writeText(e);
3649
3668
  } catch (n) {
3650
3669
  var t;
@@ -3652,4 +3671,4 @@ async function En(e) {
3652
3671
  }
3653
3672
  }
3654
3673
  //#endregion
3655
- export { A as Api, he as ApiDefault, me as ApiHeaders, xe as ApiInstance, O as ApiMethodItem, be as ApiPreparation, ye as ApiResponse, ge as ApiStatus, Se as BroadcastMessage, Te as Cache, we as CacheItem, j as CacheStatic, ke as Cookie, N as CookieBlock, S as DataStorage, Me as Datetime, x as ErrorCenter, ne as ErrorCenterHandler, re as ErrorCenterInstance, de as EventItem, Fe as Formatters, B as FormattersType, Ie as GEO_FLAG_ICON_NAME, w as Geo, Le as GeoFlag, L as GeoIntl, Re as GeoPhone, ze as Global, H as Hash, U as Icons, D as Loading, pe as LoadingInstance, rt as Meta, G as MetaManager, tt as MetaOg, Qe as MetaOpenGraphAge, Xe as MetaOpenGraphAvailability, Ze as MetaOpenGraphCondition, $e as MetaOpenGraphGender, q as MetaOpenGraphTag, Ye as MetaOpenGraphType, Je as MetaRobots, K as MetaTag, nt as MetaTwitter, et as MetaTwitterCard, J as MetaTwitterTag, Y as ScrollbarWidth, pt as SearchList, ot as SearchListData, st as SearchListItem, dt as SearchListMatcher, ft as SearchListOptions, gt as TRANSLATE_GLOBAL_PREFIX, _t as TRANSLATE_TIME_OUT, bt as Translate, vt as TranslateFile, yt as TranslateInstance, at as addTagHighlightMatch, R as anyToString, ht as applyTemplate, xt as arrFill, St as blobToBase64, d as copyObject, r as copyObjectLite, W as createElement, Ct as domQuerySelector, wt as domQuerySelectorAll, qe as encodeAttribute, Dt as ensureMaxSize, X as escapeExp, Ot as eventStopPropagation, _ as executeFunction, _e as executePromise, i as forEach, kt as frame, At as getAttributes, jt as getClipboardData, Ae as getColumn, Mt as getCurrentDate, T as getElement, Pt as getElementId, Z as getElementImage, Ge as getElementItem, le as getElementOrWindow, lt as getExactSearchExp, ct as getExp, z as getItemByPath, Ft as getKey, Q as getLengthOfAllArray, It as getMaxLengthAllArray, Lt as getMinLengthAllArray, Bt as getMouseClient, Rt as getMouseClientX, zt as getMouseClientY, Vt as getObjectByKeys, Ht as getObjectNoUndefined, Ut as getObjectOrNone, Gt as getRandomText, a as getRequestString, ut as getSearchExp, it as getSeparatingSearchExp, Kt as getStepPercent, qt as getStepValue, Yt as goScroll, Xt as goScrollSmooth, Zt as goScrollTo, $t as handleShare, en as inArray, tn as initScrollbarOffset, nn as intersectKey, rn as isApiSuccess, o as isArray, an as isDifferent, v as isDomData, f as isDomRuntime, on as isElementVisible, cn as isEnter, c as isFilled, ln as isFloat, g as isFunction, ue as isInDom, sn as isInput, un as isIntegerBetween, s as isNull, p as isNumber, t as isObject, n as isObjectNotArray, l as isOnLine, h as isSelected, dn as isSelectedByList, Qt as isShare, u as isString, ce as isWindow, k as random, fn as removeCommonPrefix, pn as replaceComponentName, $ as replaceRecursive, hn as replaceTemplate, Et as resizeImageByMax, gn as secondToTime, Ke as setElementItem, _n as setValues, vn as splice, Wt as strFill, Ne as strSplit, E as toArray, Pe as toCamelCase, yn as toCamelCaseFirst, I as toDate, bn as toKebabCase, m as toNumber, xn as toNumberByMax, Cn as toPercent, wn as toPercentBy100, M as transformation, Tn as uint8ArrayToBase64, mn as uniqueArray, En as writeClipboardData };
3674
+ export { N as Api, pe as ApiDefault, fe as ApiHeaders, ye as ApiInstance, M as ApiMethodItem, ve as ApiPreparation, _e as ApiResponse, me as ApiStatus, be as BroadcastMessage, Ce as Cache, Se as CacheItem, Te as CacheStatic, je as Cookie, Oe as CookieBlock, w as DataStorage, Pe as Datetime, C as ErrorCenter, ne as ErrorCenterHandler, re as ErrorCenterInstance, A as EventItem, Ie as Formatters, B as FormattersType, Le as GEO_FLAG_ICON_NAME, E as Geo, Re as GeoFlag, F as GeoIntl, V as GeoPhone, ze as Global, W as Hash, G as Icons, j as Loading, de as LoadingInstance, nt as Meta, q as MetaManager, et as MetaOg, Ze as MetaOpenGraphAge, Ye as MetaOpenGraphAvailability, Xe as MetaOpenGraphCondition, Qe as MetaOpenGraphGender, Y as MetaOpenGraphTag, Je as MetaOpenGraphType, qe as MetaRobots, J as MetaTag, tt as MetaTwitter, $e as MetaTwitterCard, X as MetaTwitterTag, Z as ScrollbarWidth, ft as SearchList, at as SearchListData, ot as SearchListItem, ut as SearchListMatcher, dt as SearchListOptions, ht as TRANSLATE_GLOBAL_PREFIX, gt as TRANSLATE_TIME_OUT, yt as Translate, _t as TranslateFile, vt as TranslateInstance, it as addTagHighlightMatch, L as anyToString, mt as applyTemplate, bt as arrFill, xt as blobToBase64, St as capitalize, p as copyObject, r as copyObjectLite, K as createElement, Ct as domQuerySelector, wt as domQuerySelectorAll, Ke as encodeAttribute, Ot as ensureMaxSize, Q as escapeExp, kt as eventStopPropagation, y as executeFunction, he as executePromise, i as forEach, At as frame, jt as getAttributes, Mt as getClipboardData, Ne as getColumn, Nt as getCurrentDate, D as getElement, Ft as getElementId, Tt as getElementImage, We as getElementItem, O as getElementOrWindow, ct as getExactSearchExp, st as getExp, R as getItemByPath, It as getKey, Lt as getLengthOfAllArray, Rt as getMaxLengthAllArray, zt as getMinLengthAllArray, Ht as getMouseClient, Bt as getMouseClientX, Vt as getMouseClientY, Ut as getObjectByKeys, Wt as getObjectNoUndefined, Gt as getObjectOrNone, qt as getRandomText, a as getRequestString, lt as getSearchExp, rt as getSeparatingSearchExp, Jt as getStepPercent, Yt as getStepValue, Zt as goScroll, Qt as goScrollSmooth, $t as goScrollTo, tn as handleShare, nn as inArray, rn as initScrollbarOffset, an as intersectKey, on as isApiSuccess, o as isArray, sn as isDifferent, b as isDomData, m as isDomRuntime, cn as isElementVisible, un as isEnter, c as isFilled, dn as isFloat, v as isFunction, le as isInDom, ln as isInput, fn as isIntegerBetween, s as isNull, h as isNumber, t as isObject, n as isObjectNotArray, l as isOnLine, _ as isSelected, pn as isSelectedByList, en as isShare, u as isString, ce as isWindow, d as random, mn as removeCommonPrefix, hn as replaceComponentName, $ as replaceRecursive, _n as replaceTemplate, Dt as resizeImageByMax, vn as secondToTime, Ge as setElementItem, yn as setValues, f as sleep, bn as splice, Kt as strFill, Fe as strSplit, k as toArray, z as toCamelCase, xn as toCamelCaseFirst, P as toDate, Sn as toKebabCase, g as toNumber, Cn as toNumberByMax, Tn as toPercent, En as toPercentBy100, Ee as transformation, Dn as uint8ArrayToBase64, gn as uniqueArray, On as writeClipboardData };