@dxtmisha/functional-basic 1.3.5 → 1.3.6

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
@@ -123,19 +123,6 @@ function b(e, t) {
123
123
  return c(e) ? !1 : Array.isArray(t) ? t.includes(e) : p(e) && p(t) ? y(e) === y(t) : e === t;
124
124
  }
125
125
  //#endregion
126
- //#region src/functions/encodeLiteAttribute.ts
127
- var ie = {
128
- "<": "&lt;",
129
- ">": "&gt;",
130
- "&": "&amp;"
131
- };
132
- function ae(e) {
133
- return String(e).replace(/[<>&]/g, (e) => {
134
- var t;
135
- return (t = ie == null ? void 0 : ie[e]) == null ? e : t;
136
- });
137
- }
138
- //#endregion
139
126
  //#region src/functions/isFunction.ts
140
127
  function x(e) {
141
128
  return e instanceof Function || typeof e == "function";
@@ -146,42 +133,64 @@ function S(e, ...t) {
146
133
  return x(e) ? e(...t) : e;
147
134
  }
148
135
  //#endregion
136
+ //#region src/functions/anyToString.ts
137
+ function C(e, n = !0, r = !0) {
138
+ var a;
139
+ if (d(e)) return r ? e.trim() : e;
140
+ if (c(e)) return "";
141
+ if (i(e) && !e.some((e) => t(e)) && n) return e.join(",");
142
+ if (t(e)) try {
143
+ return JSON.stringify(e);
144
+ } catch (t) {
145
+ return String(e);
146
+ }
147
+ return e === !0 ? "1" : e === !1 ? "0" : (a = e == null ? void 0 : e.toString()) == null ? "" : a;
148
+ }
149
+ //#endregion
149
150
  //#region src/functions/isDomData.ts
150
- function oe() {
151
+ function ie() {
151
152
  return s() && location.href.startsWith("data:");
152
153
  }
153
154
  //#endregion
155
+ //#region src/functions/strSplit.ts
156
+ function ae(e, t, n) {
157
+ let r = C(e);
158
+ if (!n || n <= 0) return r.split(t);
159
+ let i = r.split(t, n), a = r.split(t);
160
+ return i.length === a.length ? i : (i.pop(), [...i, a.slice(n - 1).join(t)]);
161
+ }
162
+ //#endregion
154
163
  //#region \0@oxc-project+runtime@0.130.0/helpers/typeof.js
155
- function C(e) {
164
+ function w(e) {
156
165
  "@babel/helpers - typeof";
157
- return C = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
166
+ return w = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
158
167
  return typeof e;
159
168
  } : function(e) {
160
169
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
161
- }, C(e);
170
+ }, w(e);
162
171
  }
163
172
  //#endregion
164
173
  //#region \0@oxc-project+runtime@0.130.0/helpers/toPrimitive.js
165
- function se(e, t) {
166
- if (C(e) != "object" || !e) return e;
174
+ function oe(e, t) {
175
+ if (w(e) != "object" || !e) return e;
167
176
  var n = e[Symbol.toPrimitive];
168
177
  if (n !== void 0) {
169
178
  var r = n.call(e, t || "default");
170
- if (C(r) != "object") return r;
179
+ if (w(r) != "object") return r;
171
180
  throw TypeError("@@toPrimitive must return a primitive value.");
172
181
  }
173
182
  return (t === "string" ? String : Number)(e);
174
183
  }
175
184
  //#endregion
176
185
  //#region \0@oxc-project+runtime@0.130.0/helpers/toPropertyKey.js
177
- function ce(e) {
178
- var t = se(e, "string");
179
- return C(t) == "symbol" ? t : t + "";
186
+ function se(e) {
187
+ var t = oe(e, "string");
188
+ return w(t) == "symbol" ? t : t + "";
180
189
  }
181
190
  //#endregion
182
191
  //#region \0@oxc-project+runtime@0.130.0/helpers/defineProperty.js
183
- function w(e, t, n) {
184
- return (t = ce(t)) in e ? Object.defineProperty(e, t, {
192
+ function T(e, t, n) {
193
+ return (t = se(t)) in e ? Object.defineProperty(e, t, {
185
194
  value: n,
186
195
  enumerable: !0,
187
196
  configurable: !0,
@@ -190,9 +199,9 @@ function w(e, t, n) {
190
199
  }
191
200
  //#endregion
192
201
  //#region src/classes/ErrorCenterHandler.ts
193
- var le = class {
202
+ var ce = class {
194
203
  constructor(e) {
195
- w(this, "handlers", []), e && this.addList(e);
204
+ T(this, "handlers", []), e && this.addList(e);
196
205
  }
197
206
  has(e) {
198
207
  return !!this.get(e);
@@ -218,9 +227,9 @@ var le = class {
218
227
  toConsole(e) {
219
228
  return console.error(`Error Center: ${e.code}`), console.error("Error Center/message: ", e.message), console.error("Error Center/details", e.details), this;
220
229
  }
221
- }, ue = class {
222
- constructor(e, t = new le()) {
223
- w(this, "handler", void 0), w(this, "causes", []), this.handler = t, e && this.addList(e);
230
+ }, le = class {
231
+ constructor(e, t = new ce()) {
232
+ T(this, "handler", void 0), T(this, "causes", []), this.handler = t, e && this.addList(e);
224
233
  }
225
234
  has(e, t) {
226
235
  return !!this.get(e, t);
@@ -257,7 +266,7 @@ var le = class {
257
266
  }
258
267
  return e;
259
268
  }
260
- }, de = [
269
+ }, ue = [
261
270
  {
262
271
  group: "api",
263
272
  code: "cacheClear",
@@ -408,7 +417,7 @@ var le = class {
408
417
  label: "Translate Error",
409
418
  message: "An error occurred while loading translations."
410
419
  }
411
- ], T = class {
420
+ ], E = class {
412
421
  static getItem() {
413
422
  return this.item;
414
423
  }
@@ -434,22 +443,63 @@ var le = class {
434
443
  this.getItem().on(e);
435
444
  }
436
445
  };
437
- w(T, "item", new ue(de));
446
+ T(E, "item", new le(ue));
447
+ //#endregion
448
+ //#region src/functions/transformation.ts
449
+ function de(e, t = !1) {
450
+ if (typeof e == "string") {
451
+ let r = e.trim();
452
+ switch (r) {
453
+ case "undefined": return;
454
+ case "null": return null;
455
+ case "true": return !0;
456
+ case "false": return !1;
457
+ default:
458
+ var n;
459
+ if (/^[{[]/.exec(r)) try {
460
+ return JSON.parse(r);
461
+ } catch (e) {
462
+ E.on({
463
+ group: "transformation",
464
+ code: "error",
465
+ details: e
466
+ });
467
+ }
468
+ else if (/^-?[0-9]+\.[0-9]+$/.exec(r)) return parseFloat(r);
469
+ else if (/^-?[0-9]+$/.exec(r)) return parseInt(r, 10);
470
+ else if (t && s() && typeof ((n = window) == null ? void 0 : n[r]) == "function") return window[r];
471
+ }
472
+ }
473
+ return e;
474
+ }
475
+ //#endregion
476
+ //#region src/functions/encodeLiteAttribute.ts
477
+ var fe = {
478
+ "<": "&lt;",
479
+ ">": "&gt;",
480
+ "&": "&amp;"
481
+ };
482
+ function pe(e) {
483
+ return String(e).replace(/[<>&]/g, (e) => {
484
+ var t;
485
+ return (t = fe == null ? void 0 : fe[e]) == null ? e : t;
486
+ });
487
+ }
438
488
  //#endregion
439
489
  //#region src/functions/getElementSafeScript.ts
440
- function fe(e, t) {
490
+ function me(e, t) {
441
491
  return `<script id="${e.replace(/"/g, "&quot;")}" type="application/json">${JSON.stringify(t).replace(/<\/(script)>/gi, "<\\/$1>")}<\/script>`;
442
492
  }
443
493
  //#endregion
444
494
  //#region src/functions/getHydrationData.ts
445
- function pe(e, t, n = !0) {
495
+ function he(e, t, n = !0) {
446
496
  if (typeof document < "u") {
447
497
  let t = document.getElementById(e);
448
498
  if (t) try {
449
499
  let e = JSON.parse(t.textContent || "");
450
500
  return n && t.remove(), e;
451
501
  } catch (t) {
452
- T.on({
502
+ E.on({
453
503
  group: "hydration",
454
504
  code: "error",
455
505
  details: {
@@ -463,7 +513,7 @@ function pe(e, t, n = !0) {
463
513
  }
464
514
  //#endregion
465
515
  //#region src/classes/ServerStorage.ts
466
- var me = "__ui:server-storage__", he = "__ui:server:storage:id__", E = class {
516
+ var D = "__ui:server-storage__", ge = "__ui:server:storage:id__", O = class {
467
517
  static init(e) {
468
518
  return this.listener || (this.listener = e), this;
469
519
  }
@@ -493,7 +543,7 @@ var me = "__ui:server-storage__", he = "__ui:server:storage:id__", E = class {
493
543
  e in t && delete t[e];
494
544
  }
495
545
  static toString() {
496
- return fe(he, this.getDataForHydration());
546
+ return me(ge, this.getDataForHydration());
497
547
  }
498
548
  static getStorage(e = !0, t) {
499
549
  var n;
@@ -501,17 +551,17 @@ var me = "__ui:server-storage__", he = "__ui:server:storage:id__", E = class {
501
551
  let r = (n = this.listener) == null ? void 0 : n.call(this);
502
552
  if (!r) {
503
553
  var i;
504
- return this.hideError || T.on({
554
+ return this.hideError || E.on({
505
555
  group: "storage",
506
556
  code: "context",
507
557
  details: { status: t }
508
558
  }), e && !this.storage && (this.storage = {}), (i = this.storage) == null ? {} : i;
509
559
  }
510
- return me in r || (r[me] = {}), r[me];
560
+ return D in r || (r[D] = {}), r[D];
511
561
  }
512
562
  static getStorageDom() {
513
563
  if (!this.storage) {
514
- let e = pe(he, {});
564
+ let e = he(ge, {});
515
565
  this.storage = {}, r(e, (e, t) => {
516
566
  this.storage[t] = {
517
567
  value: e,
@@ -528,16 +578,16 @@ var me = "__ui:server-storage__", he = "__ui:server:storage:id__", E = class {
528
578
  }), t;
529
579
  }
530
580
  };
531
- w(E, "storage", void 0), w(E, "listener", void 0), w(E, "hideError", void 0);
581
+ T(O, "storage", void 0), T(O, "listener", void 0), T(O, "hideError", void 0);
532
582
  //#endregion
533
583
  //#region src/classes/DataStorage.ts
534
- var ge = "ui-storage", _e = () => E.get("__ui:data-storage__", () => ({})), D = class {
584
+ var _e = "ui-storage", ve = () => O.get("__ui:data-storage__", () => ({})), k = class {
535
585
  static setPrefix(e) {
536
- ge = e;
586
+ _e = e;
537
587
  }
538
- constructor(e, t = !1, n = T.getItem()) {
539
- w(this, "name", void 0), w(this, "isSession", void 0), w(this, "errorCenter", void 0), w(this, "value", void 0), w(this, "age", void 0), this.name = e, this.isSession = t, this.errorCenter = n;
540
- let r = `${t ? "session" : "storage"}#${e}`, i = _e();
588
+ constructor(e, t = !1, n = E.getItem()) {
589
+ T(this, "name", void 0), T(this, "isSession", void 0), T(this, "errorCenter", void 0), T(this, "value", void 0), T(this, "age", void 0), this.name = e, this.isSession = t, this.errorCenter = n;
590
+ let r = `${t ? "session" : "storage"}#${e}`, i = ve();
541
591
  if (r in i) return i[r];
542
592
  this.make(), i[r] = this;
543
593
  }
@@ -549,7 +599,7 @@ var ge = "ui-storage", _e = () => E.get("__ui:data-storage__", () => ({})), D =
549
599
  if (this.value = S(e), this.age = Date.now(), this.value === void 0) this.remove();
550
600
  else {
551
601
  var t;
552
- (t = this.getMethod()) == null || t.setItem(this.getIndex(), ae(JSON.stringify({
602
+ (t = this.getMethod()) == null || t.setItem(this.getIndex(), pe(JSON.stringify({
553
603
  value: this.value,
554
604
  age: this.age
555
605
  })));
@@ -567,14 +617,14 @@ var ge = "ui-storage", _e = () => E.get("__ui:data-storage__", () => ({})), D =
567
617
  return c(e) || this.age && this.age + e * 1e3 >= Date.now();
568
618
  }
569
619
  getMethod() {
570
- if (s() && !oe()) {
620
+ if (s() && !ie()) {
571
621
  var e, t;
572
622
  let n = this.isSession ? (e = window) == null ? void 0 : e.sessionStorage : (t = window) == null ? void 0 : t.localStorage;
573
623
  if (n) return n;
574
624
  }
575
625
  }
576
626
  getIndex() {
577
- return `${ge}__${this.name}`;
627
+ return `${_e}__${this.name}`;
578
628
  }
579
629
  getValue() {
580
630
  var e, t;
@@ -593,9 +643,137 @@ var ge = "ui-storage", _e = () => E.get("__ui:data-storage__", () => ({})), D =
593
643
  let e = this.getValue();
594
644
  return e ? (this.value = e.value, this.age = e.age) : (this.value = void 0, this.age = void 0), this;
595
645
  }
596
- }, ve = "__ui:geo-code__", ye = class {
646
+ }, ye = "__ui:cookie-block__", be = class {
597
647
  constructor() {
598
- w(this, "storage", new D(ve)), w(this, "location", void 0), w(this, "item", void 0), w(this, "language", void 0), w(this, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), this.location = this.findLocation(), this.item = this.getByCode(this.location), this.language = this.findLanguage(this.location);
648
+ T(this, "storage", new k(ye));
649
+ }
650
+ get() {
651
+ var e;
652
+ return (e = this.storage.get()) == null ? !1 : e;
653
+ }
654
+ set(e) {
655
+ this.storage.set(e);
656
+ }
657
+ }, xe = class {
658
+ static getItem() {
659
+ return O.get("__ui:cookie-block__", () => new be());
660
+ }
661
+ static get() {
662
+ return this.getItem().get();
663
+ }
664
+ static set(e) {
665
+ this.getItem().set(e);
666
+ }
667
+ }, Se = "__ui:cookie-storage__", A = class {
668
+ static init(e, t, n) {
669
+ this.getListener = e, this.getListenerRaw = t, this.setListener = n;
670
+ }
671
+ static reset() {
672
+ this.getListener = void 0, this.getListenerRaw = void 0, this.setListener = void 0;
673
+ }
674
+ static get(e, t) {
675
+ var n, r;
676
+ let i = (n = (r = this.getListener) == null ? void 0 : r.call(this, e)) == null ? this.initItems()[e] : n;
677
+ return i === void 0 && t !== void 0 ? this.set(e, t) : de(i);
678
+ }
679
+ static set(e, t, n) {
680
+ let r = S(t);
681
+ if (xe.get()) return r;
682
+ let i = C(r, !1);
683
+ return this.setListener ? this.setListener(e, i, this.format(e, i, n), n) : (this.initItems()[e] = i === "" ? void 0 : r, this.hasDom() && (document.cookie = this.format(e, i, n))), r;
684
+ }
685
+ static remove(e) {
686
+ this.set(e, "", { age: -1 });
687
+ }
688
+ static update() {
689
+ s() && (O.remove(Se), this.initItems());
690
+ }
691
+ static format(e, t, n) {
692
+ return [
693
+ `${encodeURIComponent(e)}=${encodeURIComponent(t)}`,
694
+ this.toMaxAge(t, n == null ? void 0 : n.age),
695
+ this.toSameSite(n == null ? void 0 : n.sameSite),
696
+ this.toPath(n == null ? void 0 : n.path),
697
+ this.toDomain(n == null ? void 0 : n.domain),
698
+ this.toSecure(n == null ? void 0 : n.secure),
699
+ this.toHttpOnly(n == null ? void 0 : n.httpOnly),
700
+ this.toPartitioned(n == null ? void 0 : n.partitioned),
701
+ ...this.toArguments(n == null ? void 0 : n.arguments)
702
+ ].filter(Boolean).join("; ");
703
+ }
704
+ static hasDom() {
705
+ return s() && !ie();
706
+ }
707
+ static parse(e) {
708
+ let t = {};
709
+ for (let n of e.split(";")) {
710
+ let [e, r] = ae(n.trim(), "=", 2);
711
+ e && l(r) && (t[e] = r);
712
+ }
713
+ return t;
714
+ }
715
+ static initItems() {
716
+ return O.get(Se, () => {
717
+ var e;
718
+ if (this.hasDom()) return this.parse(document.cookie);
719
+ let t = (e = this.getListenerRaw) == null ? void 0 : e.call(this);
720
+ return l(t) ? this.parse(t) : {};
721
+ });
722
+ }
723
+ static toMaxAge(e, t) {
724
+ return `Max-Age=${encodeURIComponent(e === "" ? -1 : t == null ? 10080 * 60 : t)}`;
725
+ }
726
+ static toSameSite(e) {
727
+ return `SameSite=${encodeURIComponent(e == null ? "Strict" : e)}`;
728
+ }
729
+ static toPath(e) {
730
+ return `Path=${encodeURIComponent(e == null ? "/" : e)}`;
731
+ }
732
+ static toDomain(e) {
733
+ return e ? `Domain=${encodeURIComponent(e)}` : void 0;
734
+ }
735
+ static toSecure(e) {
736
+ return e ? "Secure" : void 0;
737
+ }
738
+ static toHttpOnly(e) {
739
+ return e ? "HttpOnly" : void 0;
740
+ }
741
+ static toPartitioned(e) {
742
+ return e ? "Partitioned" : void 0;
743
+ }
744
+ static toArguments(e) {
745
+ return e === void 0 ? [] : Array.isArray(e) ? e : Object.entries(e).map(([e, t]) => `${e}=${C(t)}`);
746
+ }
747
+ };
748
+ T(A, "getListener", void 0), T(A, "getListenerRaw", void 0), T(A, "setListener", void 0);
749
+ //#endregion
750
+ //#region src/classes/Cookie.ts
751
+ var Ce = () => O.get("__ui:cookie-items__", () => ({})), we = class e {
752
+ static getInstance(t) {
753
+ var n, r;
754
+ return (n = (r = Ce()) == null ? void 0 : r[t]) == null ? new e(t) : n;
755
+ }
756
+ constructor(e) {
757
+ T(this, "name", void 0), T(this, "value", void 0), T(this, "options", {}), this.name = e;
758
+ let t = Ce();
759
+ if (e in t) return t[e];
760
+ this.value = A.get(this.name), t[e] = this;
761
+ }
762
+ get(e, t) {
763
+ return this.value === void 0 && e && this.set(e, t), this.value;
764
+ }
765
+ set(e, t) {
766
+ this.value = S(e), Object.assign(this.options, t), this.update();
767
+ }
768
+ remove() {
769
+ this.set("");
770
+ }
771
+ update() {
772
+ A.set(this.name, this.value, this.options);
773
+ }
774
+ }, Te = "ui-geo-code", Ee = "__ui:geo-code__", De = class {
775
+ constructor() {
776
+ T(this, "storage", new k(Ee)), T(this, "location", void 0), T(this, "item", void 0), T(this, "language", void 0), T(this, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), this.location = this.findLocation(), this.item = this.getByCode(this.location), this.language = this.findLanguage(this.location);
599
777
  }
600
778
  get() {
601
779
  return this.item;
@@ -659,14 +837,20 @@ var ge = "ui-storage", _e = () => E.get("__ui:data-storage__", () => ({})), D =
659
837
  return `${e.language}-${e.country}`;
660
838
  }
661
839
  set(e, t) {
662
- this.location = e, this.item = this.getByCode(this.location), this.language = this.findLanguage(this.location), t && this.storage.set(this.location);
840
+ this.location = e, this.item = this.getByCode(this.location), this.language = this.findLanguage(this.location), t && (this.storage.set(this.location), this.getCookie().set(this.location));
663
841
  }
664
842
  setTimezone(e) {
665
843
  this.timezone = e;
666
844
  }
845
+ getCookie() {
846
+ return we.getInstance(Te);
847
+ }
667
848
  findLocation() {
849
+ return this.findLocationDom() || this.getCookie().get() || "en-GB";
850
+ }
851
+ findLocationDom() {
668
852
  var e;
669
- return s() && (this.storage.get() || ((e = document.querySelector("html")) == null ? void 0 : e.lang) || navigator.language || navigator.languages[0] || "en-GB") || "en-GB";
853
+ return s() && (this.storage.get() || ((e = document.querySelector("html")) == null ? void 0 : e.lang) || navigator.language || navigator.languages[0] || void 0) || void 0;
670
854
  }
671
855
  findLanguage(e) {
672
856
  return e && /[a-z]{2}/.test(e) ? this.toLanguage(e) : this.item.language;
@@ -684,9 +868,9 @@ var ge = "ui-storage", _e = () => E.get("__ui:data-storage__", () => ({})), D =
684
868
  firstDay: (e == null ? void 0 : e.firstDay) || "Mo"
685
869
  };
686
870
  }
687
- }, O = class {
871
+ }, j = class {
688
872
  static getObject() {
689
- return E.get("__ui:geo-instance__", () => new ye());
873
+ return O.get("__ui:geo-instance__", () => new De());
690
874
  }
691
875
  static get() {
692
876
  return this.getObject().get();
@@ -745,14 +929,14 @@ var ge = "ui-storage", _e = () => E.get("__ui:data-storage__", () => ({})), D =
745
929
  };
746
930
  //#endregion
747
931
  //#region src/functions/isWindow.ts
748
- function be(e) {
932
+ function Oe(e) {
749
933
  return s() && e === window;
750
934
  }
751
935
  //#endregion
752
936
  //#region src/functions/getElement.ts
753
- function k(e) {
937
+ function M(e) {
754
938
  if (!s()) return d(e) ? void 0 : e;
755
- if (be(e)) return document.body;
939
+ if (Oe(e)) return document.body;
756
940
  if (d(e)) {
757
941
  var t;
758
942
  return (t = document.querySelector(e)) == null ? void 0 : t;
@@ -761,30 +945,30 @@ function k(e) {
761
945
  }
762
946
  //#endregion
763
947
  //#region src/functions/getElementOrWindow.ts
764
- function xe(e) {
765
- return be(e) ? e : k(e);
948
+ function ke(e) {
949
+ return Oe(e) ? e : M(e);
766
950
  }
767
951
  //#endregion
768
952
  //#region src/functions/isInDom.ts
769
- function Se(e) {
953
+ function Ae(e) {
770
954
  var t;
771
- return (e == null ? void 0 : e.isConnected) || !!((t = k(e)) != null && t.closest("html"));
955
+ return (e == null ? void 0 : e.isConnected) || !!((t = M(e)) != null && t.closest("html"));
772
956
  }
773
957
  //#endregion
774
958
  //#region src/functions/toArray.ts
775
- function A(e) {
959
+ function N(e) {
776
960
  return Array.isArray(e) ? e : [e];
777
961
  }
778
962
  //#endregion
779
963
  //#region src/classes/EventItem.ts
780
- var Ce = class {
964
+ var je = class {
781
965
  constructor(e, n = ["click"], r, i, a) {
782
- w(this, "listener", void 0), w(this, "options", void 0), w(this, "detail", void 0), w(this, "element", void 0), w(this, "elementControl", void 0), w(this, "elementControlEdit", void 0), w(this, "type", void 0), w(this, "listenerRecent", (e) => {
783
- if (Se(this.elementControl)) {
966
+ T(this, "listener", void 0), T(this, "options", void 0), T(this, "detail", void 0), T(this, "element", void 0), T(this, "elementControl", void 0), T(this, "elementControlEdit", void 0), T(this, "type", void 0), T(this, "listenerRecent", (e) => {
967
+ if (Ae(this.elementControl)) {
784
968
  var n, r;
785
969
  (n = this.listener) == null || n.call(this.element, e, this.detail), t(this.options) && (r = this.options) != null && r.once && this.stop();
786
970
  } else this.stop();
787
- }), w(this, "activity", !1), w(this, "activityItems", []), this.listener = r, this.options = i, this.detail = a, this.element = xe(e), this.elementControl = k(e), this.type = A(n);
971
+ }), T(this, "activity", !1), T(this, "activityItems", []), this.listener = r, this.options = i, this.detail = a, this.element = ke(e), this.elementControl = M(e), this.type = N(n);
788
972
  }
789
973
  isActive() {
790
974
  return this.activity;
@@ -793,14 +977,14 @@ var Ce = class {
793
977
  return this.element;
794
978
  }
795
979
  setElement(e) {
796
- let t = xe(e);
797
- return this.elementControlEdit || (this.elementControl = k(e)), this.element = t, this.reset(), this;
980
+ let t = ke(e);
981
+ return this.elementControlEdit || (this.elementControl = M(e)), this.element = t, this.reset(), this;
798
982
  }
799
983
  setElementControl(e) {
800
- return this.elementControl = k(e), this.elementControlEdit = !c(this.elementControl), this.elementControlEdit || (this.elementControl = k(this.element)), this;
984
+ return this.elementControl = M(e), this.elementControlEdit = !c(this.elementControl), this.elementControlEdit || (this.elementControl = M(this.element)), this;
801
985
  }
802
986
  setType(e) {
803
- return this.type = A(e), this.reset(), this;
987
+ return this.type = N(e), this.reset(), this;
804
988
  }
805
989
  setListener(e) {
806
990
  return this.listener = e, this;
@@ -869,9 +1053,9 @@ var Ce = class {
869
1053
  }
870
1054
  return !1;
871
1055
  }
872
- }, we = "ui-loading", Te = class {
873
- constructor(e = we) {
874
- w(this, "eventName", void 0), w(this, "value", 0), w(this, "event", void 0), w(this, "registrationList", []), this.eventName = e, s() && (this.event = new Ce(window, this.eventName));
1056
+ }, Me = "ui-loading", Ne = class {
1057
+ constructor(e = Me) {
1058
+ T(this, "eventName", void 0), T(this, "value", 0), T(this, "event", void 0), T(this, "registrationList", []), this.eventName = e, s() && (this.event = new je(window, this.eventName));
875
1059
  }
876
1060
  is() {
877
1061
  return this.value > 0;
@@ -887,7 +1071,7 @@ var Ce = class {
887
1071
  }
888
1072
  registrationEvent(e, t) {
889
1073
  if (s()) {
890
- let n = new Ce(window, this.eventName, e).setElementControl(t).start();
1074
+ let n = new je(window, this.eventName, e).setElementControl(t).start();
891
1075
  this.registrationList.push({
892
1076
  item: n,
893
1077
  listener: e,
@@ -902,7 +1086,7 @@ var Ce = class {
902
1086
  var e;
903
1087
  (e = this.event) == null || e.dispatch({ loading: this.is() });
904
1088
  }
905
- }, j = class {
1089
+ }, P = class {
906
1090
  static is() {
907
1091
  return this.getItem().is();
908
1092
  }
@@ -910,7 +1094,7 @@ var Ce = class {
910
1094
  return this.getItem().get();
911
1095
  }
912
1096
  static getItem() {
913
- return E.get("__ui:loading-instance__", () => new Te());
1097
+ return O.get("__ui:loading-instance__", () => new Ne());
914
1098
  }
915
1099
  static show() {
916
1100
  this.getItem().show();
@@ -924,7 +1108,7 @@ var Ce = class {
924
1108
  static unregistrationEvent(e, t) {
925
1109
  this.getItem().unregistrationEvent(e, t);
926
1110
  }
927
- }, Ee, De = 1440 * 60, M = class {
1111
+ }, Pe, Fe = 1440 * 60, F = class {
928
1112
  static init(e, t, n, r) {
929
1113
  this.getListener = e, this.setListener = t, this.removeListener = n, r && (this.cacheStepAgeClearOld = r, this.stepAgeClearOld = r);
930
1114
  }
@@ -934,7 +1118,7 @@ var Ce = class {
934
1118
  static async get(e) {
935
1119
  let t = await this.getItemOrListener(e);
936
1120
  return this.clearOld().catch((e) => {
937
- T.on({
1121
+ E.on({
938
1122
  group: "api",
939
1123
  code: "cacheClear",
940
1124
  details: e
@@ -946,7 +1130,7 @@ var Ce = class {
946
1130
  let t = this.generateKey(e);
947
1131
  return await this.get(t);
948
1132
  }
949
- static async set(e, t, n = De) {
1133
+ static async set(e, t, n = Fe) {
950
1134
  let r = {
951
1135
  value: t,
952
1136
  age: n,
@@ -1009,12 +1193,12 @@ var Ce = class {
1009
1193
  }
1010
1194
  }
1011
1195
  };
1012
- Ee = M, w(M, "items", void 0), w(M, "getListener", void 0), w(M, "setListener", void 0), w(M, "removeListener", void 0), w(M, "cacheStepAgeClearOld", 16384), w(M, "stepAgeClearOld", Ee.cacheStepAgeClearOld);
1196
+ Pe = F, T(F, "items", void 0), T(F, "getListener", void 0), T(F, "setListener", void 0), T(F, "removeListener", void 0), T(F, "cacheStepAgeClearOld", 16384), T(F, "stepAgeClearOld", Pe.cacheStepAgeClearOld);
1013
1197
  //#endregion
1014
1198
  //#region src/classes/ApiStatus.ts
1015
- var Oe = class {
1199
+ var Ie = class {
1016
1200
  constructor() {
1017
- w(this, "value", void 0);
1201
+ T(this, "value", void 0);
1018
1202
  }
1019
1203
  get() {
1020
1204
  return this.value;
@@ -1074,15 +1258,15 @@ var Oe = class {
1074
1258
  setValue(e, t) {
1075
1259
  this.value || (this.value = {}), this.value[e] = t;
1076
1260
  }
1077
- }, ke = [
1261
+ }, Le = [
1078
1262
  "success",
1079
1263
  "status",
1080
1264
  "code",
1081
1265
  "message",
1082
1266
  "error"
1083
- ], Ae = class {
1267
+ ], Re = class {
1084
1268
  constructor(e, t, n, r) {
1085
- w(this, "apiFetch", void 0), w(this, "query", void 0), w(this, "end", void 0), w(this, "error", void 0), w(this, "data", void 0), w(this, "dataMod", void 0), this.apiFetch = e, this.query = t, this.end = n, this.error = r;
1269
+ T(this, "apiFetch", void 0), T(this, "query", void 0), T(this, "end", void 0), T(this, "error", void 0), T(this, "data", void 0), T(this, "dataMod", void 0), this.apiFetch = e, this.query = t, this.end = n, this.error = r;
1086
1270
  }
1087
1271
  async init() {
1088
1272
  return this.data = await this.readData(), this;
@@ -1112,18 +1296,18 @@ var Oe = class {
1112
1296
  }
1113
1297
  initItem(e) {
1114
1298
  let t = { ...e.data };
1115
- return ke.forEach((r) => {
1299
+ return Le.forEach((r) => {
1116
1300
  if (r in e && !(r in t) && (t[r] = e[r], r === "error" && n(e[r]))) {
1117
1301
  var i, a, o, s;
1118
1302
  t.code = (i = (a = e[r]) == null ? void 0 : a.code) == null ? e.code : i, t.message = (o = (s = e[r]) == null ? void 0 : s.message) == null ? e.message : o;
1119
1303
  }
1120
1304
  }), t;
1121
1305
  }
1122
- }, N = /* @__PURE__ */ function(e) {
1306
+ }, I = /* @__PURE__ */ function(e) {
1123
1307
  return e.delete = "DELETE", e.get = "GET", e.post = "POST", e.put = "PUT", e.patch = "PATCH", e;
1124
- }({}), je = class {
1308
+ }({}), ze = class {
1125
1309
  constructor() {
1126
- w(this, "value", void 0);
1310
+ T(this, "value", void 0);
1127
1311
  }
1128
1312
  is() {
1129
1313
  return !!this.value;
@@ -1150,9 +1334,9 @@ var Oe = class {
1150
1334
  e.has(t) || e.set(t, n);
1151
1335
  }), this;
1152
1336
  }
1153
- }, Me = class {
1337
+ }, Be = class {
1154
1338
  constructor(e, t, n) {
1155
- w(this, "method", void 0), w(this, "response", void 0), w(this, "error", void 0), w(this, "jsonResponse", void 0), this.method = e, this.response = t, this.error = n;
1339
+ T(this, "method", void 0), T(this, "response", void 0), T(this, "error", void 0), T(this, "jsonResponse", void 0), this.method = e, this.response = t, this.error = n;
1156
1340
  }
1157
1341
  getMethod() {
1158
1342
  return this.method;
@@ -1174,9 +1358,9 @@ var Oe = class {
1174
1358
  getStatus() {
1175
1359
  return this.response.status;
1176
1360
  }
1177
- }, Ne = class {
1361
+ }, Ve = class {
1178
1362
  constructor() {
1179
- w(this, "storage", []);
1363
+ T(this, "storage", []);
1180
1364
  }
1181
1365
  async find(e, t) {
1182
1366
  let n = await this.getBody(t), r = this.getCode(n), i = this.getMessage(n) || t.statusText, a = this.findItem(e, t, r);
@@ -1193,7 +1377,7 @@ var Oe = class {
1193
1377
  };
1194
1378
  }
1195
1379
  add(e, t, n) {
1196
- return A(e).forEach((e) => {
1380
+ return N(e).forEach((e) => {
1197
1381
  let r = e.url || t, i = e.method || n;
1198
1382
  r && i && this.storage.push({
1199
1383
  ...e,
@@ -1228,19 +1412,19 @@ var Oe = class {
1228
1412
  getMessage(e) {
1229
1413
  return this.getDataByKey(e, "message");
1230
1414
  }
1231
- }, Pe = class {
1415
+ }, He = class {
1232
1416
  static getStorage() {
1233
- return E.get("__ui:api-error-storage__", () => new Ne());
1417
+ return O.get("__ui:api-error-storage__", () => new Ve());
1234
1418
  }
1235
1419
  static add(e, t, n) {
1236
1420
  this.getStorage().add(e, t, n);
1237
1421
  }
1238
1422
  static async getItem(e, t) {
1239
- return new Me(e, t, await this.getStorage().find(e, t));
1423
+ return new Be(e, t, await this.getStorage().find(e, t));
1240
1424
  }
1241
- }, Fe = class {
1425
+ }, Ue = class {
1242
1426
  constructor() {
1243
- w(this, "headers", {});
1427
+ T(this, "headers", {});
1244
1428
  }
1245
1429
  get(e, t = "application/json;charset=UTF-8") {
1246
1430
  if (e === null) return;
@@ -1254,15 +1438,15 @@ var Oe = class {
1254
1438
  set(e) {
1255
1439
  return this.headers = e, this;
1256
1440
  }
1257
- }, Ie = "__ui:api:hydration:id__", Le = class {
1441
+ }, We = "__ui:api:hydration:id__", Ge = class {
1258
1442
  constructor() {
1259
- w(this, "list", []);
1443
+ T(this, "list", []);
1260
1444
  }
1261
1445
  initResponse(e) {
1262
1446
  s() && e.add(this.getListByClient());
1263
1447
  }
1264
1448
  toClient(e, t) {
1265
- let { path: n, method: r = N.get, request: i, global: a = r === N.get } = e;
1449
+ let { path: n, method: r = I.get, request: i, global: a = r === I.get } = e;
1266
1450
  !a || !n || s() || this.list.push({
1267
1451
  path: n,
1268
1452
  method: r,
@@ -1271,14 +1455,14 @@ var Oe = class {
1271
1455
  });
1272
1456
  }
1273
1457
  toString() {
1274
- return fe(Ie, this.list);
1458
+ return me(We, this.list);
1275
1459
  }
1276
1460
  getListByClient() {
1277
- return pe(Ie, []);
1461
+ return he(We, []);
1278
1462
  }
1279
- }, Re = class {
1463
+ }, Ke = class {
1280
1464
  constructor() {
1281
- w(this, "callback", void 0), w(this, "callbackEnd", void 0), w(this, "loading", !1);
1465
+ T(this, "callback", void 0), T(this, "callbackEnd", void 0), T(this, "loading", !1);
1282
1466
  }
1283
1467
  async make(e, t) {
1284
1468
  if (e && this.callback) return this.go(t);
@@ -1304,15 +1488,15 @@ var Oe = class {
1304
1488
  };
1305
1489
  //#endregion
1306
1490
  //#region src/functions/executePromise.ts
1307
- async function ze(e, ...t) {
1491
+ async function qe(e, ...t) {
1308
1492
  let n = S(e, ...t);
1309
1493
  return n instanceof Promise ? await n : n;
1310
1494
  }
1311
1495
  //#endregion
1312
1496
  //#region src/classes/ApiResponse.ts
1313
- var Be = "d-response-loading", Ve = class {
1497
+ var Je = "d-response-loading", Ye = class {
1314
1498
  constructor(e) {
1315
- w(this, "requestDefault", void 0), w(this, "first", []), w(this, "response", []), w(this, "loading", void 0), w(this, "devMode", !1), this.requestDefault = e;
1499
+ T(this, "requestDefault", void 0), T(this, "first", []), T(this, "response", []), T(this, "loading", void 0), T(this, "devMode", !1), this.requestDefault = e;
1316
1500
  }
1317
1501
  get(e = "", t, n, r) {
1318
1502
  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);
@@ -1321,7 +1505,7 @@ var Be = "d-response-loading", Ve = class {
1321
1505
  return this.response.filter((e) => e.isForGlobal !== !0);
1322
1506
  }
1323
1507
  add(e) {
1324
- return this.response.push(...A(e)), this;
1508
+ return this.response.push(...N(e)), this;
1325
1509
  }
1326
1510
  setDevMode(e) {
1327
1511
  return this.devMode = e, this;
@@ -1355,7 +1539,7 @@ var Be = "d-response-loading", Ve = class {
1355
1539
  }
1356
1540
  readData(e) {
1357
1541
  if (!s()) return;
1358
- let { path: t = "", method: n = N.get, global: r = n === N.get, devMode: i = !1 } = e;
1542
+ let { path: t = "", method: n = I.get, global: r = n === I.get, devMode: i = !1 } = e;
1359
1543
  if (r || this.isDevMode(i)) {
1360
1544
  let r = this.requestDefault.request(e.request), a = this.get(t, n, r, i);
1361
1545
  if (a) return {
@@ -1366,9 +1550,9 @@ var Be = "d-response-loading", Ve = class {
1366
1550
  }
1367
1551
  fetch(e, t) {
1368
1552
  return this.startResponseLoading(), new Promise((n) => {
1369
- ze(x(e.response) ? e.response(t) : e.response).then((t) => {
1370
- e != null && e.lag ? (j.show(), setTimeout(() => {
1371
- this.stopResponseLoading(), n(t), j.hide();
1553
+ qe(x(e.response) ? e.response(t) : e.response).then((t) => {
1554
+ e != null && e.lag ? (P.show(), setTimeout(() => {
1555
+ this.stopResponseLoading(), n(t), P.hide();
1372
1556
  }, f(0, 2e3))) : (this.stopResponseLoading(), n(t));
1373
1557
  });
1374
1558
  });
@@ -1377,17 +1561,17 @@ var Be = "d-response-loading", Ve = class {
1377
1561
  return e.response;
1378
1562
  }
1379
1563
  startResponseLoading() {
1380
- this.loading && clearTimeout(this.loading), s() && document.body.classList.add(Be);
1564
+ this.loading && clearTimeout(this.loading), s() && document.body.classList.add(Je);
1381
1565
  }
1382
1566
  stopResponseLoading() {
1383
1567
  s() && (this.loading = setTimeout(() => {
1384
- this.loading = void 0, document.body.classList.remove(Be);
1568
+ this.loading = void 0, document.body.classList.remove(Je);
1385
1569
  }, 2400));
1386
1570
  }
1387
- }, He = class {
1571
+ }, Xe = class {
1388
1572
  constructor(e = "/api/", t = {}) {
1389
- w(this, "url", void 0), w(this, "headers", void 0), w(this, "requestDefault", void 0), w(this, "status", void 0), w(this, "response", void 0), w(this, "preparation", void 0), w(this, "loading", void 0), w(this, "errorCenter", void 0), w(this, "hydration", void 0), w(this, "timeout", 16e3), w(this, "origin", void 0), this.url = e;
1390
- let { headersClass: n = Fe, requestDefaultClass: r = je, statusClass: i = Oe, responseClass: a = Ve, preparationClass: o = Re, loadingClass: s = j.getItem(), errorCenterClass: c = T.getItem(), hydrationClass: l = Le } = t;
1573
+ T(this, "url", void 0), T(this, "headers", void 0), T(this, "requestDefault", void 0), T(this, "status", void 0), T(this, "response", void 0), T(this, "preparation", void 0), T(this, "loading", void 0), T(this, "errorCenter", void 0), T(this, "hydration", void 0), T(this, "timeout", 16e3), T(this, "origin", void 0), this.url = e;
1574
+ let { headersClass: n = Ue, requestDefaultClass: r = ze, statusClass: i = Ie, responseClass: a = Ye, preparationClass: o = Ke, loadingClass: s = P.getItem(), errorCenterClass: c = E.getItem(), hydrationClass: l = Ge } = t;
1391
1575
  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, this.hydration = new l(), this.hydration.initResponse(this.response);
1392
1576
  }
1393
1577
  isLocalhost() {
@@ -1406,14 +1590,14 @@ var Be = "d-response-loading", Ve = class {
1406
1590
  return this.origin && /^\//.test(this.url) ? `${this.origin}${this.url}` : this.url;
1407
1591
  }
1408
1592
  getUrl(e, t = !0) {
1409
- return `${t ? this.getOrigin() : ""}${e}`.replace("{locale}", O.getLocation()).replace("{country}", O.getCountry()).replace("{language}", O.getLanguage());
1593
+ return `${t ? this.getOrigin() : ""}${e}`.replace("{locale}", j.getLocation()).replace("{country}", j.getCountry()).replace("{language}", j.getLanguage());
1410
1594
  }
1411
- getBody(e = {}, t = N.get) {
1595
+ getBody(e = {}, t = I.get) {
1412
1596
  if (e instanceof FormData) return e;
1413
- if (t !== N.get && l(e)) return d(e) ? e : JSON.stringify(e);
1597
+ if (t !== I.get && l(e)) return d(e) ? e : JSON.stringify(e);
1414
1598
  }
1415
- getBodyForGet(e, t = "", n = N.get) {
1416
- if (n === N.get) {
1599
+ getBodyForGet(e, t = "", n = I.get) {
1600
+ if (n === I.get) {
1417
1601
  let n = t.match(/\?/) ? "&" : "?", r = typeof e == "object" ? o(e) : e;
1418
1602
  if (l(r)) return `${n}${r}`;
1419
1603
  }
@@ -1449,42 +1633,42 @@ var Be = "d-response-loading", Ve = class {
1449
1633
  get(e) {
1450
1634
  return this.request({
1451
1635
  ...e,
1452
- method: N.get
1636
+ method: I.get
1453
1637
  });
1454
1638
  }
1455
1639
  post(e) {
1456
1640
  return this.request({
1457
1641
  ...e,
1458
- method: N.post
1642
+ method: I.post
1459
1643
  });
1460
1644
  }
1461
1645
  put(e) {
1462
1646
  return this.request({
1463
1647
  ...e,
1464
- method: N.put
1648
+ method: I.put
1465
1649
  });
1466
1650
  }
1467
1651
  patch(e) {
1468
1652
  return this.request({
1469
1653
  ...e,
1470
- method: N.patch
1654
+ method: I.patch
1471
1655
  });
1472
1656
  }
1473
1657
  delete(e) {
1474
1658
  return this.request({
1475
1659
  ...e,
1476
- method: N.delete
1660
+ method: I.delete
1477
1661
  });
1478
1662
  }
1479
1663
  getRetryDelay(e, t) {
1480
1664
  return f(t, t + e * t);
1481
1665
  }
1482
1666
  async fetch(e, t = 0) {
1483
- let { method: n = N.get, api: r = !0, path: i = "", hideError: a = !1, hideLoading: o = !1, retry: s = 0, retryDelay: c = 64, globalPreparation: l = !0, globalEnd: u = !0, initError: d = !0, endResetLimit: f = 8 } = e, te = this.getUrl(i, r), p = await this.response.emulator(e);
1667
+ let { method: n = I.get, api: r = !0, path: i = "", hideError: a = !1, hideLoading: o = !1, retry: s = 0, retryDelay: c = 64, globalPreparation: l = !0, globalEnd: u = !0, initError: d = !0, endResetLimit: f = 8 } = e, te = this.getUrl(i, r), p = await this.response.emulator(e);
1484
1668
  if (p) return p;
1485
- let m = await M.getByFetch(e);
1669
+ let m = await F.getByFetch(e);
1486
1670
  if (m) return this.hydration.toClient(e, m), m;
1487
- let h = new Oe(), g, _;
1671
+ let h = new Ie(), g, _;
1488
1672
  o || this.loading.show();
1489
1673
  try {
1490
1674
  await this.preparation.make(l, e);
@@ -1493,19 +1677,19 @@ var Be = "d-response-loading", Ve = class {
1493
1677
  let p = await this.preparation.makeEnd(u, r, e);
1494
1678
  if (h.setStatus(r.status, r.statusText), this.status.setStatus(r.status, r.statusText), !a && r.status >= 400) {
1495
1679
  var ne;
1496
- d && (_ = await Pe.getItem(n, r)), this.makeErrorQuery((ne = _) == null ? r : ne);
1680
+ d && (_ = await He.getItem(n, r)), this.makeErrorQuery((ne = _) == null ? r : ne);
1497
1681
  }
1498
1682
  if (p != null && p.reset && t < f || t < s) return await ee(this.getRetryDelay(t, c)), o || this.loading.hide(), await this.fetch(e, t + 1);
1499
- g = new Ae(e, r, p, _), await g.init();
1683
+ g = new Re(e, r, p, _), await g.init();
1500
1684
  } catch (e) {
1501
1685
  throw a || this.makeError(e), h.setError(String(e)), this.status.setError(String(e)), o || this.loading.hide(), e;
1502
1686
  }
1503
1687
  h.setLastResponse(g.getData()), this.status.setLastResponse(g.getData());
1504
1688
  let v = g.getAndStatus(h);
1505
- return o || this.loading.hide(), this.hydration.toClient(e, v), await M.setByFetch(e, v), v;
1689
+ return o || this.loading.hide(), this.hydration.toClient(e, v), await F.setByFetch(e, v), v;
1506
1690
  }
1507
1691
  async makeQuery(e, t) {
1508
- let n = this.requestDefault.request(e.request), { pathFull: r = void 0, method: i = N.get, headers: a = {}, type: o = "application/json;charset=UTF-8", init: s = {} } = e, c = r == null ? t : r, l = `${c}${this.getBodyForGet(n, c, i)}`, u = this.headers.getByRequest(e.request, a, o), d = {
1692
+ let n = this.requestDefault.request(e.request), { pathFull: r = void 0, method: i = I.get, headers: a = {}, type: o = "application/json;charset=UTF-8", init: s = {} } = e, c = r == null ? t : r, l = `${c}${this.getBodyForGet(n, c, i)}`, u = this.headers.getByRequest(e.request, a, o), d = {
1509
1693
  ...s,
1510
1694
  method: i,
1511
1695
  body: this.getBody(n, i)
@@ -1599,12 +1783,12 @@ var Be = "d-response-loading", Ve = class {
1599
1783
  }, n);
1600
1784
  }
1601
1785
  }
1602
- }, P = class {
1786
+ }, L = class {
1603
1787
  static isLocalhost() {
1604
1788
  return this.getItem().isLocalhost();
1605
1789
  }
1606
1790
  static getItem() {
1607
- return E.get("__ui:api-instance__", () => new He());
1791
+ return O.get("__ui:api-instance__", () => new Xe());
1608
1792
  }
1609
1793
  static getStatus() {
1610
1794
  return this.getItem().getStatus();
@@ -1624,10 +1808,10 @@ var Be = "d-response-loading", Ve = class {
1624
1808
  static getUrl(e, t = !0) {
1625
1809
  return this.getItem().getUrl(e, t);
1626
1810
  }
1627
- static getBody(e = {}, t = N.get) {
1811
+ static getBody(e = {}, t = I.get) {
1628
1812
  return this.getItem().getBody(e, t);
1629
1813
  }
1630
- static getBodyForGet(e, t = "", n = N.get) {
1814
+ static getBodyForGet(e, t = "", n = I.get) {
1631
1815
  return this.getItem().getBodyForGet(e, t, n);
1632
1816
  }
1633
1817
  static setHeaders(e) {
@@ -1672,16 +1856,16 @@ var Be = "d-response-loading", Ve = class {
1672
1856
  static delete(e) {
1673
1857
  return this.getItem().delete(e);
1674
1858
  }
1675
- }, Ue = class {
1676
- constructor(e, t, n, r = T.getItem()) {
1677
- if (w(this, "callback", void 0), w(this, "callbackError", void 0), w(this, "channel", void 0), w(this, "update", (e) => {
1859
+ }, Ze = class {
1860
+ constructor(e, t, n, r = E.getItem()) {
1861
+ if (T(this, "callback", void 0), T(this, "callbackError", void 0), T(this, "channel", void 0), T(this, "update", (e) => {
1678
1862
  var t;
1679
1863
  return (t = this.callback) == null || t.call(this, e), this;
1680
- }), w(this, "updateError", (e) => {
1864
+ }), T(this, "updateError", (e) => {
1681
1865
  var t;
1682
1866
  return (t = this.callbackError) == null || t.call(this, e), this;
1683
1867
  }), this.callback = t, this.callbackError = n, s()) try {
1684
- this.channel = new BroadcastChannel(`${We()}__${e}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
1868
+ this.channel = new BroadcastChannel(`${Qe()}__${e}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
1685
1869
  } catch (e) {
1686
1870
  r.on({
1687
1871
  group: "broadcast",
@@ -1707,9 +1891,9 @@ var Be = "d-response-loading", Ve = class {
1707
1891
  var e;
1708
1892
  return (e = this.channel) == null || e.close(), this.channel = void 0, this;
1709
1893
  }
1710
- }, We = () => new D("__ui:broadcast-name__").get(() => `name_${f(1e6, 9999999)}`), Ge = class {
1894
+ }, Qe = () => new k("__ui:broadcast-name__").get(() => `name_${f(1e6, 9999999)}`), $e = class {
1711
1895
  constructor(e) {
1712
- w(this, "callback", void 0), w(this, "cache", void 0), w(this, "cacheOld", void 0), w(this, "comparisons", []), this.callback = e;
1896
+ T(this, "callback", void 0), T(this, "cache", void 0), T(this, "cacheOld", void 0), T(this, "comparisons", []), this.callback = e;
1713
1897
  }
1714
1898
  getCache(e) {
1715
1899
  return this.isUpdate(e) && (this.cacheOld = this.cache, this.setCache()), this.cache;
@@ -1729,9 +1913,9 @@ var Be = "d-response-loading", Ve = class {
1729
1913
  isUpdate(e) {
1730
1914
  return this.cache === void 0 || this.comparisons.length !== e.length || this.comparisons.findIndex((t, n) => t !== e[n]) >= 0 ? (this.comparisons = [...e], !0) : !1;
1731
1915
  }
1732
- }, Ke = class {
1916
+ }, et = class {
1733
1917
  constructor() {
1734
- w(this, "cache", {});
1918
+ T(this, "cache", {});
1735
1919
  }
1736
1920
  get(e, t, n) {
1737
1921
  return this.getCacheItem(e, t).getCache(n == null ? [] : n);
@@ -1740,11 +1924,11 @@ var Be = "d-response-loading", Ve = class {
1740
1924
  return await this.getCacheItem(e, t).getCacheAsync(n == null ? [] : n);
1741
1925
  }
1742
1926
  getCacheItem(e, t) {
1743
- return e in this.cache || (this.cache[e] = new Ge(t)), this.cache[e];
1927
+ return e in this.cache || (this.cache[e] = new $e(t)), this.cache[e];
1744
1928
  }
1745
- }, qe = class {
1929
+ }, tt = class {
1746
1930
  static getItem() {
1747
- return E.get("__ui:cache-static__", () => new Ke());
1931
+ return O.get("__ui:cache-static__", () => new et());
1748
1932
  }
1749
1933
  static get(e, t, n) {
1750
1934
  return this.getItem().get(e, t, n);
@@ -1754,194 +1938,13 @@ var Be = "d-response-loading", Ve = class {
1754
1938
  }
1755
1939
  };
1756
1940
  //#endregion
1757
- //#region src/functions/anyToString.ts
1758
- function F(e, n = !0, r = !0) {
1759
- var a;
1760
- if (d(e)) return r ? e.trim() : e;
1761
- if (c(e)) return "";
1762
- if (i(e) && !e.some((e) => t(e)) && n) return e.join(",");
1763
- if (t(e)) try {
1764
- return JSON.stringify(e);
1765
- } catch (t) {
1766
- return String(e);
1767
- }
1768
- return e === !0 ? "1" : e === !1 ? "0" : (a = e == null ? void 0 : e.toString()) == null ? "" : a;
1769
- }
1770
- //#endregion
1771
- //#region src/functions/strSplit.ts
1772
- function Je(e, t, n) {
1773
- let r = F(e);
1774
- if (!n || n <= 0) return r.split(t);
1775
- let i = r.split(t, n), a = r.split(t);
1776
- return i.length === a.length ? i : (i.pop(), [...i, a.slice(n - 1).join(t)]);
1777
- }
1778
- //#endregion
1779
- //#region src/functions/transformation.ts
1780
- function Ye(e, t = !1) {
1781
- if (typeof e == "string") {
1782
- let r = e.trim();
1783
- switch (r) {
1784
- case "undefined": return;
1785
- case "null": return null;
1786
- case "true": return !0;
1787
- case "false": return !1;
1788
- default:
1789
- var n;
1790
- if (/^[{[]/.exec(r)) try {
1791
- return JSON.parse(r);
1792
- } catch (e) {
1793
- T.on({
1794
- group: "transformation",
1795
- code: "error",
1796
- details: e
1797
- });
1798
- }
1799
- else if (/^-?[0-9]+\.[0-9]+$/.exec(r)) return parseFloat(r);
1800
- else if (/^-?[0-9]+$/.exec(r)) return parseInt(r, 10);
1801
- else if (t && s() && typeof ((n = window) == null ? void 0 : n[r]) == "function") return window[r];
1802
- }
1803
- }
1804
- return e;
1805
- }
1806
- //#endregion
1807
- //#region src/classes/CookieBlockInstance.ts
1808
- var Xe = "__ui:cookie-block__", Ze = class {
1809
- constructor() {
1810
- w(this, "storage", new D(Xe));
1811
- }
1812
- get() {
1813
- var e;
1814
- return (e = this.storage.get()) == null ? !1 : e;
1815
- }
1816
- set(e) {
1817
- this.storage.set(e);
1818
- }
1819
- }, Qe = class {
1820
- static getItem() {
1821
- return E.get("__ui:cookie-block__", () => new Ze());
1822
- }
1823
- static get() {
1824
- return this.getItem().get();
1825
- }
1826
- static set(e) {
1827
- this.getItem().set(e);
1828
- }
1829
- }, $e = "__ui:cookie-storage__", I = class {
1830
- static init(e, t, n) {
1831
- this.getListener = e, this.getListenerRaw = t, this.setListener = n;
1832
- }
1833
- static reset() {
1834
- this.getListener = void 0, this.getListenerRaw = void 0, this.setListener = void 0;
1835
- }
1836
- static get(e, t) {
1837
- var n, r;
1838
- let i = (n = (r = this.getListener) == null ? void 0 : r.call(this, e)) == null ? this.initItems()[e] : n;
1839
- return i === void 0 && t !== void 0 ? this.set(e, t) : Ye(i);
1840
- }
1841
- static set(e, t, n) {
1842
- let r = S(t);
1843
- if (Qe.get()) return r;
1844
- let i = F(r, !1);
1845
- return this.setListener ? this.setListener(e, i, this.format(e, i, n), n) : (this.initItems()[e] = i === "" ? void 0 : r, this.hasDom() && (document.cookie = this.format(e, i, n))), r;
1846
- }
1847
- static remove(e) {
1848
- this.set(e, "", { age: -1 });
1849
- }
1850
- static update() {
1851
- s() && (E.remove($e), this.initItems());
1852
- }
1853
- static format(e, t, n) {
1854
- return [
1855
- `${encodeURIComponent(e)}=${encodeURIComponent(t)}`,
1856
- this.toMaxAge(t, n == null ? void 0 : n.age),
1857
- this.toSameSite(n == null ? void 0 : n.sameSite),
1858
- this.toPath(n == null ? void 0 : n.path),
1859
- this.toDomain(n == null ? void 0 : n.domain),
1860
- this.toSecure(n == null ? void 0 : n.secure),
1861
- this.toHttpOnly(n == null ? void 0 : n.httpOnly),
1862
- this.toPartitioned(n == null ? void 0 : n.partitioned),
1863
- ...this.toArguments(n == null ? void 0 : n.arguments)
1864
- ].filter(Boolean).join("; ");
1865
- }
1866
- static hasDom() {
1867
- return s() && !oe();
1868
- }
1869
- static parse(e) {
1870
- let t = {};
1871
- for (let n of e.split(";")) {
1872
- let [e, r] = Je(n.trim(), "=", 2);
1873
- e && l(r) && (t[e] = r);
1874
- }
1875
- return t;
1876
- }
1877
- static initItems() {
1878
- return E.get($e, () => {
1879
- var e;
1880
- if (this.hasDom()) return this.parse(document.cookie);
1881
- let t = (e = this.getListenerRaw) == null ? void 0 : e.call(this);
1882
- return l(t) ? this.parse(t) : {};
1883
- });
1884
- }
1885
- static toMaxAge(e, t) {
1886
- return `Max-Age=${encodeURIComponent(e === "" ? -1 : t == null ? 10080 * 60 : t)}`;
1887
- }
1888
- static toSameSite(e) {
1889
- return `SameSite=${encodeURIComponent(e == null ? "Strict" : e)}`;
1890
- }
1891
- static toPath(e) {
1892
- return `Path=${encodeURIComponent(e == null ? "/" : e)}`;
1893
- }
1894
- static toDomain(e) {
1895
- return e ? `Domain=${encodeURIComponent(e)}` : void 0;
1896
- }
1897
- static toSecure(e) {
1898
- return e ? "Secure" : void 0;
1899
- }
1900
- static toHttpOnly(e) {
1901
- return e ? "HttpOnly" : void 0;
1902
- }
1903
- static toPartitioned(e) {
1904
- return e ? "Partitioned" : void 0;
1905
- }
1906
- static toArguments(e) {
1907
- return e === void 0 ? [] : Array.isArray(e) ? e : Object.entries(e).map(([e, t]) => `${e}=${F(t)}`);
1908
- }
1909
- };
1910
- w(I, "getListener", void 0), w(I, "getListenerRaw", void 0), w(I, "setListener", void 0);
1911
- //#endregion
1912
- //#region src/classes/Cookie.ts
1913
- var et = () => E.get("__ui:cookie-items__", () => ({})), tt = class e {
1914
- static getInstance(t) {
1915
- var n, r;
1916
- return (n = (r = et()) == null ? void 0 : r[t]) == null ? new e(t) : n;
1917
- }
1918
- constructor(e) {
1919
- w(this, "name", void 0), w(this, "value", void 0), w(this, "options", {}), this.name = e;
1920
- let t = et();
1921
- if (e in t) return t[e];
1922
- this.value = I.get(this.name), t[e] = this;
1923
- }
1924
- get(e, t) {
1925
- return this.value === void 0 && e && this.set(e, t), this.value;
1926
- }
1927
- set(e, t) {
1928
- this.value = S(e), Object.assign(this.options, t), this.update();
1929
- }
1930
- remove() {
1931
- this.set("");
1932
- }
1933
- update() {
1934
- I.set(this.name, this.value, this.options);
1935
- }
1936
- };
1937
- //#endregion
1938
1941
  //#region src/functions/toDate.ts
1939
- function L(e) {
1942
+ function R(e) {
1940
1943
  var t, n, r, i, a, o, s, l;
1941
1944
  if (e instanceof Date) return e;
1942
1945
  if (c(e)) return /* @__PURE__ */ new Date();
1943
1946
  if (typeof e == "number") return new Date(e);
1944
- let u = e, d = O.getTimezoneFormat().trim();
1947
+ let u = e, d = j.getTimezoneFormat().trim();
1945
1948
  e.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (e, t, n) => (u = t, d = n.trim(), e));
1946
1949
  let f = (t = (n = (r = (i = (a = (o = (s = (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") : s) == 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;
1947
1950
  return /* @__PURE__ */ new Date(`${f.trim()}${d}`);
@@ -1953,24 +1956,24 @@ function nt(e, t) {
1953
1956
  }
1954
1957
  //#endregion
1955
1958
  //#region src/classes/GeoIntl.ts
1956
- var R = class e {
1957
- static isItem(e = O.getLocation()) {
1958
- return this.getLocation(e) in B;
1959
+ var z = class e {
1960
+ static isItem(e = j.getLocation()) {
1961
+ return this.getLocation(e) in V;
1959
1962
  }
1960
- static getLocation(e = O.getLocation()) {
1961
- if (e in z) return z[e];
1962
- let t = O.find(e);
1963
- return z[e] = t.standard, t.standard;
1963
+ static getLocation(e = j.getLocation()) {
1964
+ if (e in B) return B[e];
1965
+ let t = j.find(e);
1966
+ return B[e] = t.standard, t.standard;
1964
1967
  }
1965
- static getInstance(t = O.getLocation()) {
1968
+ static getInstance(t = j.getLocation()) {
1966
1969
  let n = this.getLocation(t);
1967
- return n in B ? B[n] : new e(t);
1970
+ return n in V ? V[n] : new e(t);
1968
1971
  }
1969
- constructor(e = O.getLocation(), t = T.getItem()) {
1970
- w(this, "errorCenter", void 0), w(this, "geo", void 0), this.errorCenter = t, this.geo = O.find(e);
1972
+ constructor(e = j.getLocation(), t = E.getItem()) {
1973
+ T(this, "errorCenter", void 0), T(this, "geo", void 0), this.errorCenter = t, this.geo = j.find(e);
1971
1974
  let n = this.getLocation();
1972
- if (n in B) return B[n];
1973
- z[e] = n, B[n] = this;
1975
+ if (n in V) return V[n];
1976
+ B[e] = n, V[n] = this;
1974
1977
  }
1975
1978
  getLocation() {
1976
1979
  return this.geo.standard;
@@ -2001,7 +2004,7 @@ var R = class e {
2001
2004
  type: "language",
2002
2005
  style: t
2003
2006
  };
2004
- return this.display(O.getByCode(e).language, n);
2007
+ return this.display(j.getByCode(e).language, n);
2005
2008
  }
2006
2009
  countryName(e, t) {
2007
2010
  let n = {
@@ -2126,18 +2129,18 @@ var R = class e {
2126
2129
  return `${this.number(a, r)} ${(i = o == null ? void 0 : o[0]) == null ? "" : i}`.trim();
2127
2130
  }
2128
2131
  date(e, t, n, r) {
2129
- let i = L(e), a = typeof n == "string", o = this.dateOptions(t, a ? n : "short");
2132
+ let i = R(e), a = typeof n == "string", o = this.dateOptions(t, a ? n : "short");
2130
2133
  return r && (o.hour12 = !1), a || Object.assign(o, n), i.toLocaleString(this.getLocation(), o);
2131
2134
  }
2132
2135
  relative(e, t, n) {
2133
- let r = L(e), i = n || /* @__PURE__ */ new Date(), a = {
2136
+ let r = R(e), i = n || /* @__PURE__ */ new Date(), a = {
2134
2137
  numeric: "auto",
2135
2138
  ...typeof t == "string" ? { style: t } : t || {}
2136
2139
  }, o = "second", s = (r.getTime() - i.getTime()) / 1e3;
2137
2140
  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);
2138
2141
  }
2139
2142
  relativeLimit(e, t, n, r, i, a, o) {
2140
- let s = L(e), c = n || /* @__PURE__ */ new Date(), l = new Date(c), u = new Date(c);
2143
+ let s = R(e), c = n || /* @__PURE__ */ new Date(), l = new Date(c), u = new Date(c);
2141
2144
  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);
2142
2145
  }
2143
2146
  relativeByValue(e, t, n) {
@@ -2158,7 +2161,7 @@ var R = class e {
2158
2161
  }
2159
2162
  month(e, t) {
2160
2163
  try {
2161
- if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { month: t || "long" }).format(L(e));
2164
+ if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { month: t || "long" }).format(R(e));
2162
2165
  } catch (e) {
2163
2166
  this.errorCenter.on({
2164
2167
  group: "intl",
@@ -2192,7 +2195,7 @@ var R = class e {
2192
2195
  }
2193
2196
  weekday(e, t) {
2194
2197
  try {
2195
- if (this.hasIntlDateTimeFormat()) return new Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }).format(L(e));
2198
+ if (this.hasIntlDateTimeFormat()) return new Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }).format(R(e));
2196
2199
  } catch (e) {
2197
2200
  this.errorCenter.on({
2198
2201
  group: "intl",
@@ -2294,15 +2297,15 @@ var R = class e {
2294
2297
  "second"
2295
2298
  ].indexOf(e) !== -1 && (n.second = "2-digit")), n;
2296
2299
  }
2297
- }, z = {}, B = {}, rt = class e {
2298
- constructor(e, t = "date", n = O.getLocation()) {
2299
- w(this, "type", void 0), w(this, "code", void 0), w(this, "date", void 0), w(this, "hour24", !1), w(this, "watch", void 0), this.type = t, this.code = n, this.date = L(e), isNaN(this.date.getTime()) && T.on({
2300
+ }, B = {}, V = {}, rt = class e {
2301
+ constructor(e, t = "date", n = j.getLocation()) {
2302
+ T(this, "type", void 0), T(this, "code", void 0), T(this, "date", void 0), T(this, "hour24", !1), T(this, "watch", void 0), this.type = t, this.code = n, this.date = R(e), isNaN(this.date.getTime()) && E.on({
2300
2303
  group: "intl",
2301
2304
  code: "invalid"
2302
2305
  });
2303
2306
  }
2304
2307
  getIntl() {
2305
- return R.getInstance(this.code);
2308
+ return z.getInstance(this.code);
2306
2309
  }
2307
2310
  getDate() {
2308
2311
  return this.date;
@@ -2405,7 +2408,7 @@ var R = class e {
2405
2408
  ].indexOf(this.type) !== -1 && (i = n.locale("time"))), `${r.join("-")}${i ? `T${i}${t ? n.getTimeZone() : ""}` : ""}`;
2406
2409
  }
2407
2410
  setDate(e) {
2408
- return this.date = L(e), this.update(), this;
2411
+ return this.date = R(e), this.update(), this;
2409
2412
  }
2410
2413
  setType(e) {
2411
2414
  return this.type = e, this.update(), this;
@@ -2557,11 +2560,11 @@ var R = class e {
2557
2560
  };
2558
2561
  //#endregion
2559
2562
  //#region src/functions/getItemByPath.ts
2560
- function V(e, n) {
2563
+ function H(e, n) {
2561
2564
  var r;
2562
2565
  if (!l(n, !0)) return;
2563
- let i = Je(n, ".", 2), a = i[0];
2564
- return a && e != null && e[a] && t(e[a]) && i != null && i[1] ? V(e[a], i[1]) : (r = e == null ? void 0 : e[a]) == null ? void 0 : r;
2566
+ let i = ae(n, ".", 2), a = i[0];
2567
+ return a && e != null && e[a] && t(e[a]) && i != null && i[1] ? H(e[a], i[1]) : (r = e == null ? void 0 : e[a]) == null ? void 0 : r;
2565
2568
  }
2566
2569
  //#endregion
2567
2570
  //#region src/functions/toCamelCase.ts
@@ -2570,11 +2573,11 @@ function it(e) {
2570
2573
  }
2571
2574
  //#endregion
2572
2575
  //#region src/types/formattersTypes.ts
2573
- var H = /* @__PURE__ */ function(e) {
2576
+ var U = /* @__PURE__ */ function(e) {
2574
2577
  return e.currency = "currency", e.date = "date", e.name = "name", e.number = "number", e.plural = "plural", e.unit = "unit", e;
2575
2578
  }({}), at = class {
2576
2579
  constructor(e, t) {
2577
- w(this, "options", void 0), w(this, "list", void 0), this.options = e, this.list = t;
2580
+ T(this, "options", void 0), T(this, "list", void 0), this.options = e, this.list = t;
2578
2581
  }
2579
2582
  is() {
2580
2583
  return !!this.list;
@@ -2586,7 +2589,7 @@ var H = /* @__PURE__ */ function(e) {
2586
2589
  return this.list ? this.isArray() ? this.list.length : 1 : 0;
2587
2590
  }
2588
2591
  getList() {
2589
- return this.list ? A(this.list) : [];
2592
+ return this.list ? N(this.list) : [];
2590
2593
  }
2591
2594
  getOptions() {
2592
2595
  return this.options;
@@ -2604,50 +2607,50 @@ var H = /* @__PURE__ */ function(e) {
2604
2607
  getFormatData(e) {
2605
2608
  let t = {};
2606
2609
  return r(this.options, (n, r) => {
2607
- let i = `${it(r)}Format`, a = V(e, r);
2610
+ let i = `${it(r)}Format`, a = H(e, r);
2608
2611
  n != null && n.transformation ? l(a) ? t[i] = n.transformation(a, e, n.options) : t[i] = "" : t[i] = this.transformation(a, e, n.type, n.options);
2609
2612
  }), t;
2610
2613
  }
2611
2614
  transformation(e, t, n, r) {
2612
- if (l(e) || n === H.name) switch (n) {
2613
- case H.currency: return this.formatCurrency(e, t, r);
2614
- case H.date: return this.formatDate(e, r);
2615
- case H.name: return this.formatName(t, r);
2616
- case H.number: return this.formatNumber(e, r);
2617
- case H.plural: return this.formatPlural(e, r);
2618
- case H.unit: return this.formatUnit(e, r);
2615
+ if (l(e) || n === U.name) switch (n) {
2616
+ case U.currency: return this.formatCurrency(e, t, r);
2617
+ case U.date: return this.formatDate(e, r);
2618
+ case U.name: return this.formatName(t, r);
2619
+ case U.number: return this.formatNumber(e, r);
2620
+ case U.plural: return this.formatPlural(e, r);
2621
+ case U.unit: return this.formatUnit(e, r);
2619
2622
  default: return String(e);
2620
2623
  }
2621
2624
  return "";
2622
2625
  }
2623
2626
  formatCurrency(e, t, n) {
2624
2627
  var r;
2625
- let i = n != null && n.currencyPropName ? V(t, n.currencyPropName) : t == null ? void 0 : t.currency;
2626
- return R.getInstance().currency(e, (r = n == null ? void 0 : n.options) == null ? i : r, n == null ? void 0 : n.numberOnly);
2628
+ let i = n != null && n.currencyPropName ? H(t, n.currencyPropName) : t == null ? void 0 : t.currency;
2629
+ return z.getInstance().currency(e, (r = n == null ? void 0 : n.options) == null ? i : r, n == null ? void 0 : n.numberOnly);
2627
2630
  }
2628
2631
  formatDate(e, t) {
2629
- return R.getInstance().date(e, t == null ? void 0 : t.type, t == null ? void 0 : t.options, t == null ? void 0 : t.hour24);
2632
+ return z.getInstance().date(e, t == null ? void 0 : t.type, t == null ? void 0 : t.options, t == null ? void 0 : t.hour24);
2630
2633
  }
2631
2634
  formatName(e, t) {
2632
2635
  var n, r, i;
2633
- let a = V(e, (n = t == null ? void 0 : t.lastPropName) == null ? "lastName" : n), o = V(e, (r = t == null ? void 0 : t.firstPropName) == null ? "firstName" : r), s = V(e, (i = t == null ? void 0 : t.surname) == null ? "surname" : i);
2634
- return a && o ? R.getInstance().fullName(a, o, s, t == null ? void 0 : t.short) : "";
2636
+ let a = H(e, (n = t == null ? void 0 : t.lastPropName) == null ? "lastName" : n), o = H(e, (r = t == null ? void 0 : t.firstPropName) == null ? "firstName" : r), s = H(e, (i = t == null ? void 0 : t.surname) == null ? "surname" : i);
2637
+ return a && o ? z.getInstance().fullName(a, o, s, t == null ? void 0 : t.short) : "";
2635
2638
  }
2636
2639
  formatNumber(e, t) {
2637
- return R.getInstance().number(e, t == null ? void 0 : t.options);
2640
+ return z.getInstance().number(e, t == null ? void 0 : t.options);
2638
2641
  }
2639
2642
  formatPlural(e, t) {
2640
- return t && t.words ? R.getInstance().plural(e, t == null ? void 0 : t.words, t == null ? void 0 : t.options, t == null ? void 0 : t.optionsNumber) : e;
2643
+ return t && t.words ? z.getInstance().plural(e, t == null ? void 0 : t.words, t == null ? void 0 : t.options, t == null ? void 0 : t.optionsNumber) : e;
2641
2644
  }
2642
2645
  formatUnit(e, t) {
2643
- return t && t.unit ? R.getInstance().unit(e, t.unit) : e;
2646
+ return t && t.unit ? z.getInstance().unit(e, t.unit) : e;
2644
2647
  }
2645
2648
  }, ot = "f", st = class e {
2646
- constructor(e = O.getLocation()) {
2647
- w(this, "code", void 0), this.code = e;
2649
+ constructor(e = j.getLocation()) {
2650
+ T(this, "code", void 0), this.code = e;
2648
2651
  }
2649
2652
  get(t = this.getCode()) {
2650
- let n = O.find(t);
2653
+ let n = j.find(t);
2651
2654
  if (n) {
2652
2655
  var r;
2653
2656
  let t = this.getCountry(n);
@@ -2663,7 +2666,7 @@ var H = /* @__PURE__ */ function(e) {
2663
2666
  }
2664
2667
  }
2665
2668
  getCode() {
2666
- return this.code || O.getLocation();
2669
+ return this.code || j.getLocation();
2667
2670
  }
2668
2671
  getFlag(e = this.getCode()) {
2669
2672
  var t;
@@ -2671,7 +2674,7 @@ var H = /* @__PURE__ */ function(e) {
2671
2674
  }
2672
2675
  getList(e, t = !0) {
2673
2676
  let n = r(this.getCodes(e), (e) => this.get(e));
2674
- return t ? new R().sort(n, (e, t) => [e.label, t.label]) : n;
2677
+ return t ? new z().sort(n, (e, t) => [e.label, t.label]) : n;
2675
2678
  }
2676
2679
  getNational(t, n = !0) {
2677
2680
  let i = r(this.getList(t, !1), (t) => {
@@ -2683,13 +2686,13 @@ var H = /* @__PURE__ */ function(e) {
2683
2686
  nationalCountry: n == null ? void 0 : n.country
2684
2687
  };
2685
2688
  });
2686
- return n ? new R().sort(i, (e, t) => [e.label, t.label]) : i;
2689
+ return n ? new z().sort(i, (e, t) => [e.label, t.label]) : i;
2687
2690
  }
2688
2691
  setCode(e) {
2689
2692
  return this.code = e, this;
2690
2693
  }
2691
2694
  getLocation() {
2692
- return new R(this.code);
2695
+ return new z(this.code);
2693
2696
  }
2694
2697
  getCodes(t) {
2695
2698
  return t == null ? Object.keys(e.flags) : t;
@@ -2701,7 +2704,7 @@ var H = /* @__PURE__ */ function(e) {
2701
2704
  return this.getLocation().countryName(e.country);
2702
2705
  }
2703
2706
  };
2704
- w(st, "flags", {
2707
+ T(st, "flags", {
2705
2708
  AD: "f-ad",
2706
2709
  AE: "f-ae",
2707
2710
  AF: "f-af",
@@ -3002,11 +3005,11 @@ var ct = class {
3002
3005
  return (t = (n = e.match(/\*/g)) == null ? void 0 : n.length) == null ? 0 : t;
3003
3006
  }
3004
3007
  static makeList() {
3005
- let e = r(O.getList(), (e) => {
3008
+ let e = r(j.getList(), (e) => {
3006
3009
  if (e != null && e.phoneMask) return {
3007
3010
  phone: (e == null ? void 0 : e.phoneCode) && Number(e.phoneCode.replace(/[^0-9]+/g, "")) || void 0,
3008
3011
  within: (e == null ? void 0 : e.phoneWithin) || 0,
3009
- mask: A(e.phoneMask),
3012
+ mask: N(e.phoneMask),
3010
3013
  value: e.country
3011
3014
  };
3012
3015
  });
@@ -3045,12 +3048,12 @@ var ct = class {
3045
3048
  return e.replace(/\*/, this.getWithinSymbol(t));
3046
3049
  }
3047
3050
  };
3048
- w(ct, "list", void 0), w(ct, "map", void 0);
3051
+ T(ct, "list", void 0), T(ct, "map", void 0);
3049
3052
  //#endregion
3050
3053
  //#region src/classes/Global.ts
3051
3054
  var lt = class {
3052
3055
  static getItem() {
3053
- return E.get("__ui:global-instance__", () => ({}));
3056
+ return O.get("__ui:global-instance__", () => ({}));
3054
3057
  }
3055
3058
  static get(e) {
3056
3059
  var t;
@@ -3062,7 +3065,7 @@ var lt = class {
3062
3065
  }
3063
3066
  }, ut = class {
3064
3067
  constructor() {
3065
- w(this, "hash", void 0), w(this, "watch", {}), w(this, "block", !1), w(this, "time", void 0);
3068
+ T(this, "hash", void 0), T(this, "watch", {}), T(this, "block", !1), T(this, "time", void 0);
3066
3069
  }
3067
3070
  get(e, t) {
3068
3071
  let n = this.getHash();
@@ -3092,7 +3095,7 @@ var lt = class {
3092
3095
  let e = {};
3093
3096
  if (s()) {
3094
3097
  let t = location.hash.matchAll(/([\w-]+)[:=]([^;]+)/gi);
3095
- for (let n of t) e[n[1]] = Ye(n[2]);
3098
+ for (let n of t) e[n[1]] = de(n[2]);
3096
3099
  }
3097
3100
  return e;
3098
3101
  }
@@ -3128,7 +3131,7 @@ var lt = class {
3128
3131
  }
3129
3132
  }, dt = class {
3130
3133
  static getItem() {
3131
- return E.get("__ui:hash-instance__", () => new ut());
3134
+ return O.get("__ui:hash-instance__", () => new ut());
3132
3135
  }
3133
3136
  static get(e, t) {
3134
3137
  return this.getItem().get(e, t);
@@ -3161,7 +3164,7 @@ var lt = class {
3161
3164
  return r(this.icons, (e, t) => t.replace(/^@/, ""));
3162
3165
  }
3163
3166
  static getUrlGlobal() {
3164
- return `${P.isLocalhost(), ""}${this.url}`;
3167
+ return `${L.isLocalhost(), ""}${this.url}`;
3165
3168
  }
3166
3169
  static add(e, t) {
3167
3170
  this.icons[this.getName(e)] = t;
@@ -3192,17 +3195,17 @@ var lt = class {
3192
3195
  return new Promise((e) => setTimeout(() => e(), ft));
3193
3196
  }
3194
3197
  };
3195
- w(mt, "icons", {}), w(mt, "url", "/icons/");
3198
+ T(mt, "icons", {}), T(mt, "url", "/icons/");
3196
3199
  //#endregion
3197
3200
  //#region src/functions/getElementItem.ts
3198
3201
  function ht(e, t, n) {
3199
3202
  var r, i;
3200
- return (r = (i = k(e)) == null ? void 0 : i[t]) == null ? n : r;
3203
+ return (r = (i = M(e)) == null ? void 0 : i[t]) == null ? n : r;
3201
3204
  }
3202
3205
  //#endregion
3203
3206
  //#region src/functions/setElementItem.ts
3204
3207
  function gt(e, n, i) {
3205
- let a = k(e);
3208
+ let a = M(e);
3206
3209
  if (a) {
3207
3210
  let e = ht(a, n);
3208
3211
  if (t(e) && t(i)) r(i, (t, n) => {
@@ -3217,7 +3220,7 @@ function gt(e, n, i) {
3217
3220
  }
3218
3221
  //#endregion
3219
3222
  //#region src/functions/createElement.ts
3220
- function U(e, t = "div", i, a) {
3223
+ function W(e, t = "div", i, a) {
3221
3224
  if (!s()) return;
3222
3225
  let o = document.createElement(t);
3223
3226
  return typeof i == "function" ? i(o) : n(i) && r(i, (e, t) => {
@@ -3233,7 +3236,7 @@ var _t = {
3233
3236
  "\"": "&quot;",
3234
3237
  "'": "&#39;"
3235
3238
  };
3236
- function W(e) {
3239
+ function G(e) {
3237
3240
  return String(e).replace(/[&<>"']/g, (e) => {
3238
3241
  var t;
3239
3242
  return (t = _t == null ? void 0 : _t[e]) == null ? e : t;
@@ -3241,9 +3244,9 @@ function W(e) {
3241
3244
  }
3242
3245
  //#endregion
3243
3246
  //#region src/classes/MetaManager.ts
3244
- var G = class {
3247
+ var K = class {
3245
3248
  constructor(e, t = !1) {
3246
- w(this, "listMeta", void 0), w(this, "isProperty", void 0), w(this, "items", {}), this.listMeta = e, this.isProperty = t, this.update();
3249
+ T(this, "listMeta", void 0), T(this, "isProperty", void 0), T(this, "items", {}), this.listMeta = e, this.isProperty = t, this.update();
3247
3250
  }
3248
3251
  getListMeta() {
3249
3252
  return this.listMeta;
@@ -3283,17 +3286,17 @@ var G = class {
3283
3286
  let r = this.findMetaElement(e);
3284
3287
  if (r) return r.content = n, this;
3285
3288
  let i = { content: n };
3286
- return this.isProperty ? i.property = e : i.name = e, U(document.head, "meta", i), this;
3289
+ return this.isProperty ? i.property = e : i.name = e, W(document.head, "meta", i), this;
3287
3290
  }
3288
3291
  toHtmlString(e) {
3289
3292
  var t;
3290
3293
  let n = (t = this.items[e]) == null ? "" : t;
3291
3294
  if (e === "title") return "";
3292
- let r = W(n);
3295
+ let r = G(n);
3293
3296
  return r ? `<meta ${this.getAttributeName()}="${e}" content="${r}">` : "";
3294
3297
  }
3295
3298
  toHtmlTitle(e) {
3296
- return ae(e);
3299
+ return pe(e);
3297
3300
  }
3298
3301
  update() {
3299
3302
  return this.listMeta.forEach((e) => {
@@ -3301,11 +3304,11 @@ var G = class {
3301
3304
  this.items[e] = (t = (n = this.findMetaElement(e)) == null ? void 0 : n.content) == null ? "" : t;
3302
3305
  }), this;
3303
3306
  }
3304
- }, K = /* @__PURE__ */ function(e) {
3307
+ }, q = /* @__PURE__ */ function(e) {
3305
3308
  return e.title = "title", e.description = "description", e.keywords = "keywords", e.canonical = "canonical", e.robots = "robots", e.author = "author", e;
3306
3309
  }({}), vt = /* @__PURE__ */ function(e) {
3307
3310
  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;
3308
- }({}), q = /* @__PURE__ */ function(e) {
3311
+ }({}), J = /* @__PURE__ */ function(e) {
3309
3312
  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;
3310
3313
  }({}), yt = /* @__PURE__ */ function(e) {
3311
3314
  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;
@@ -3317,105 +3320,105 @@ var G = class {
3317
3320
  return e.newborn = "newborn", e.infant = "infant", e.toddler = "toddler", e.kids = "kids", e.adult = "adult", e;
3318
3321
  }({}), Ct = /* @__PURE__ */ function(e) {
3319
3322
  return e.female = "female", e.male = "male", e.unisex = "unisex", e;
3320
- }({}), J = /* @__PURE__ */ function(e) {
3323
+ }({}), Y = /* @__PURE__ */ function(e) {
3321
3324
  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;
3322
3325
  }({}), wt = /* @__PURE__ */ function(e) {
3323
3326
  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;
3324
- }({}), Tt = class extends G {
3327
+ }({}), Tt = class extends K {
3325
3328
  constructor() {
3326
- super(Object.values(q), !0);
3329
+ super(Object.values(J), !0);
3327
3330
  }
3328
3331
  getTitle() {
3329
- return this.get(q.title);
3332
+ return this.get(J.title);
3330
3333
  }
3331
3334
  getType() {
3332
- return this.get(q.type);
3335
+ return this.get(J.type);
3333
3336
  }
3334
3337
  getUrl() {
3335
- return this.get(q.url);
3338
+ return this.get(J.url);
3336
3339
  }
3337
3340
  getImage() {
3338
- return this.get(q.image);
3341
+ return this.get(J.image);
3339
3342
  }
3340
3343
  getDescription() {
3341
- return this.get(q.description);
3344
+ return this.get(J.description);
3342
3345
  }
3343
3346
  getLocale() {
3344
- return this.get(q.locale);
3347
+ return this.get(J.locale);
3345
3348
  }
3346
3349
  getSiteName() {
3347
- return this.get(q.siteName);
3350
+ return this.get(J.siteName);
3348
3351
  }
3349
3352
  setTitle(e) {
3350
- return this.set(q.title, e);
3353
+ return this.set(J.title, e);
3351
3354
  }
3352
3355
  setType(e) {
3353
- return this.set(q.type, e);
3356
+ return this.set(J.type, e);
3354
3357
  }
3355
3358
  setUrl(e) {
3356
- return this.set(q.url, e);
3359
+ return this.set(J.url, e);
3357
3360
  }
3358
3361
  setImage(e) {
3359
- return this.set(q.image, e);
3362
+ return this.set(J.image, e);
3360
3363
  }
3361
3364
  setDescription(e) {
3362
- return this.set(q.description, e);
3365
+ return this.set(J.description, e);
3363
3366
  }
3364
3367
  setLocale(e) {
3365
- return this.set(q.locale, e);
3368
+ return this.set(J.locale, e);
3366
3369
  }
3367
3370
  setSiteName(e) {
3368
- return this.set(q.siteName, e);
3371
+ return this.set(J.siteName, e);
3369
3372
  }
3370
- }, Et = class extends G {
3373
+ }, Et = class extends K {
3371
3374
  constructor() {
3372
- super(Object.values(J));
3375
+ super(Object.values(Y));
3373
3376
  }
3374
3377
  getCard() {
3375
- return this.get(J.card);
3378
+ return this.get(Y.card);
3376
3379
  }
3377
3380
  getSite() {
3378
- return this.get(J.site);
3381
+ return this.get(Y.site);
3379
3382
  }
3380
3383
  getCreator() {
3381
- return this.get(J.creator);
3384
+ return this.get(Y.creator);
3382
3385
  }
3383
3386
  getUrl() {
3384
- return this.get(J.url);
3387
+ return this.get(Y.url);
3385
3388
  }
3386
3389
  getTitle() {
3387
- return this.get(J.title);
3390
+ return this.get(Y.title);
3388
3391
  }
3389
3392
  getDescription() {
3390
- return this.get(J.description);
3393
+ return this.get(Y.description);
3391
3394
  }
3392
3395
  getImage() {
3393
- return this.get(J.image);
3396
+ return this.get(Y.image);
3394
3397
  }
3395
3398
  setCard(e) {
3396
- return this.set(J.card, e), this;
3399
+ return this.set(Y.card, e), this;
3397
3400
  }
3398
3401
  setSite(e) {
3399
- return this.set(J.site, e), this;
3402
+ return this.set(Y.site, e), this;
3400
3403
  }
3401
3404
  setCreator(e) {
3402
- return this.set(J.creator, e), this;
3405
+ return this.set(Y.creator, e), this;
3403
3406
  }
3404
3407
  setUrl(e) {
3405
- return this.set(J.url, e), this;
3408
+ return this.set(Y.url, e), this;
3406
3409
  }
3407
3410
  setTitle(e) {
3408
- return this.set(J.title, e), this;
3411
+ return this.set(Y.title, e), this;
3409
3412
  }
3410
3413
  setDescription(e) {
3411
- return this.set(J.description, e), this;
3414
+ return this.set(Y.description, e), this;
3412
3415
  }
3413
3416
  setImage(e) {
3414
- return this.set(J.image, e), this;
3417
+ return this.set(Y.image, e), this;
3415
3418
  }
3416
- }, Dt = class extends G {
3419
+ }, Dt = class extends K {
3417
3420
  constructor() {
3418
- super(Object.values(K)), w(this, "suffix", void 0), w(this, "og", void 0), w(this, "twitter", void 0), this.og = new Tt(), this.twitter = new Et();
3421
+ super(Object.values(q)), T(this, "suffix", void 0), T(this, "og", void 0), T(this, "twitter", void 0), this.og = new Tt(), this.twitter = new Et();
3419
3422
  }
3420
3423
  getOg() {
3421
3424
  return this.og;
@@ -3424,26 +3427,26 @@ var G = class {
3424
3427
  return this.twitter;
3425
3428
  }
3426
3429
  getTitle() {
3427
- let e = this.get(K.title);
3430
+ let e = this.get(q.title);
3428
3431
  return !l(e) && s() && (e = document.title), e.replace(this.getSuffix(), "").trim();
3429
3432
  }
3430
3433
  getKeywords() {
3431
- return this.get(K.keywords);
3434
+ return this.get(q.keywords);
3432
3435
  }
3433
3436
  getDescription() {
3434
- return this.get(K.description);
3437
+ return this.get(q.description);
3435
3438
  }
3436
3439
  getImage() {
3437
3440
  return this.og.getImage();
3438
3441
  }
3439
3442
  getCanonical() {
3440
- return this.get(K.canonical);
3443
+ return this.get(q.canonical);
3441
3444
  }
3442
3445
  getRobots() {
3443
- return this.get(K.robots);
3446
+ return this.get(q.robots);
3444
3447
  }
3445
3448
  getAuthor() {
3446
- return this.get(K.author);
3449
+ return this.get(q.author);
3447
3450
  }
3448
3451
  getSiteName() {
3449
3452
  return this.og.getSiteName();
@@ -3453,25 +3456,25 @@ var G = class {
3453
3456
  }
3454
3457
  setTitle(e) {
3455
3458
  let t = l(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
3456
- return s() && (document.title = t), this.set(K.title, t), this.og.setTitle(t), this.twitter.setTitle(t), this;
3459
+ return s() && (document.title = t), this.set(q.title, t), this.og.setTitle(t), this.twitter.setTitle(t), this;
3457
3460
  }
3458
3461
  setKeywords(e) {
3459
- return this.set(K.keywords, A(e).join(", ")), this;
3462
+ return this.set(q.keywords, N(e).join(", ")), this;
3460
3463
  }
3461
3464
  setDescription(e) {
3462
- return this.set(K.description, e), this;
3465
+ return this.set(q.description, e), this;
3463
3466
  }
3464
3467
  setImage(e) {
3465
3468
  return this.og.setImage(e), this.twitter.setImage(e), this;
3466
3469
  }
3467
3470
  setCanonical(e) {
3468
- return this.set(K.canonical, e), this.og.setUrl(e), this.twitter.setUrl(e), this;
3471
+ return this.set(q.canonical, e), this.og.setUrl(e), this.twitter.setUrl(e), this;
3469
3472
  }
3470
3473
  setRobots(e) {
3471
- return this.set(K.robots, e), this;
3474
+ return this.set(q.robots, e), this;
3472
3475
  }
3473
3476
  setAuthor(e) {
3474
- return this.set(K.author, e), this;
3477
+ return this.set(q.author, e), this;
3475
3478
  }
3476
3479
  setSiteName(e) {
3477
3480
  return this.og.setSiteName(e), this.twitter.setSite(e), this;
@@ -3486,14 +3489,14 @@ var G = class {
3486
3489
  return `${super.html()}${this.og.html()}${this.twitter.html()}`;
3487
3490
  }
3488
3491
  htmlTitle() {
3489
- return this.toHtmlTitle(this.get(K.title));
3492
+ return this.toHtmlTitle(this.get(q.title));
3490
3493
  }
3491
3494
  getSuffix() {
3492
3495
  return l(this.suffix) ? ` - ${this.suffix}` : "";
3493
3496
  }
3494
3497
  }, Ot = class {
3495
3498
  static getItem() {
3496
- return E.get("__ui:meta-instance__", () => new Dt());
3499
+ return O.get("__ui:meta-instance__", () => new Dt());
3497
3500
  }
3498
3501
  static getOg() {
3499
3502
  return this.getItem().getOg();
@@ -3566,7 +3569,7 @@ var G = class {
3566
3569
  }
3567
3570
  }, kt = class {
3568
3571
  constructor(e, t = 320, n = !1) {
3569
- w(this, "callback", void 0), w(this, "delay", void 0), w(this, "timerId", void 0), w(this, "startTime", void 0), w(this, "remaining", void 0), w(this, "completed", !1), this.callback = e, this.delay = t, n || this.resume();
3572
+ T(this, "callback", void 0), T(this, "delay", void 0), T(this, "timerId", void 0), T(this, "startTime", void 0), T(this, "remaining", void 0), T(this, "completed", !1), this.callback = e, this.delay = t, n || this.resume();
3570
3573
  }
3571
3574
  resume() {
3572
3575
  if (this.timerId || this.completed) return this;
@@ -3618,14 +3621,14 @@ var G = class {
3618
3621
  return t;
3619
3622
  }
3620
3623
  static getStorage() {
3621
- return new D("__ui:scrollbar__", !0);
3624
+ return new k("__ui:scrollbar__", !0);
3622
3625
  }
3623
3626
  static getCalculate() {
3624
3627
  return this.calculate;
3625
3628
  }
3626
3629
  static createElement() {
3627
- return U(document.body, "div", (e) => {
3628
- e.style.height = "24px", e.style.overflowY = "scroll", e.style.position = "fixed", e.style.width = "100%", U(e, "div", (e) => {
3630
+ return W(document.body, "div", (e) => {
3631
+ e.style.height = "24px", e.style.overflowY = "scroll", e.style.position = "fixed", e.style.width = "100%", W(e, "div", (e) => {
3629
3632
  e.style.height = "100px";
3630
3633
  });
3631
3634
  });
@@ -3640,10 +3643,10 @@ var G = class {
3640
3643
  });
3641
3644
  }
3642
3645
  };
3643
- w(At, "calculate", !1);
3646
+ T(At, "calculate", !1);
3644
3647
  //#endregion
3645
3648
  //#region src/functions/escapeExp.ts
3646
- function Y(e) {
3649
+ function X(e) {
3647
3650
  return String(e).replace(/[.*+?^${}()|[\]\\/]/g, "\\$&");
3648
3651
  }
3649
3652
  //#endregion
@@ -3651,25 +3654,25 @@ function Y(e) {
3651
3654
  function jt(e, t = 128) {
3652
3655
  if (e instanceof RegExp) return e;
3653
3656
  if (!e || e.trim().length === 0 || e.length > t) return /^/;
3654
- let n = String(e).replace(/\s+/g, " ").trim().split(" ").map(Y).join("|");
3657
+ let n = String(e).replace(/\s+/g, " ").trim().split(" ").map(X).join("|");
3655
3658
  return RegExp(`(${n})`, "ig");
3656
3659
  }
3657
3660
  //#endregion
3658
3661
  //#region src/functions/addTagHighlightMatch.ts
3659
- var X = `___HIGHLIGHT_START_${f(1e5, 999999)}___`, Mt = `___HIGHLIGHT_END_${f(1e5, 999999)}___`, Nt = RegExp(`${X}|${Mt}`, "g");
3660
- function Pt(e, t, n = "sys-highlight-match", r = !1) {
3662
+ var Mt = `___HIGHLIGHT_START_${f(1e5, 999999)}___`, Nt = `___HIGHLIGHT_END_${f(1e5, 999999)}___`, Pt = RegExp(`${Mt}|${Nt}`, "g");
3663
+ function Ft(e, t, n = "sys-highlight-match", r = !1) {
3661
3664
  let i = a(e);
3662
3665
  if (l(i) && l(t)) {
3663
- let e = i.replace(jt(t), `${X}$1${Mt}`);
3664
- return r && (e = W(e)), e.replace(Nt, (e) => e === X ? `<span class="${n}">` : "</span>");
3666
+ let e = i.replace(jt(t), `${Mt}$1${Nt}`);
3667
+ return r && (e = G(e)), e.replace(Pt, (e) => e === Mt ? `<span class="${n}">` : "</span>");
3665
3668
  }
3666
- return r ? W(i) : i;
3669
+ return r ? G(i) : i;
3667
3670
  }
3668
3671
  //#endregion
3669
3672
  //#region src/classes/SearchListData.ts
3670
- var Ft = class {
3673
+ var It = class {
3671
3674
  constructor(e, t, n, r) {
3672
- w(this, "list", void 0), w(this, "columns", void 0), w(this, "item", void 0), w(this, "options", void 0), w(this, "listCache", void 0), this.list = e, this.columns = t, this.item = n, this.options = r;
3675
+ T(this, "list", void 0), T(this, "columns", void 0), T(this, "item", void 0), T(this, "options", void 0), T(this, "listCache", void 0), this.list = e, this.columns = t, this.item = n, this.options = r;
3673
3676
  }
3674
3677
  is() {
3675
3678
  return !!(this.list && this.columns);
@@ -3706,8 +3709,8 @@ var Ft = class {
3706
3709
  toFormatItem(e, t) {
3707
3710
  let n = {};
3708
3711
  return this.columns && this.columns.forEach((r) => {
3709
- let i = this.getColumnName(r), a = V(e, r);
3710
- n[i] = l(a) && t ? this.addTag(a) : F(a);
3712
+ let i = this.getColumnName(r), a = H(e, r);
3713
+ n[i] = l(a) && t ? this.addTag(a) : C(a);
3711
3714
  }), {
3712
3715
  ...e,
3713
3716
  ...n,
@@ -3718,7 +3721,7 @@ var Ft = class {
3718
3721
  return e.replace(/\.([a-z0-9])/gi, (e, t) => t.toUpperCase()) + "Search";
3719
3722
  }
3720
3723
  addTag(e) {
3721
- return Pt(F(e), this.item.get(), this.options.getClassName());
3724
+ return Ft(C(e), this.item.get(), this.options.getClassName());
3722
3725
  }
3723
3726
  generateCache() {
3724
3727
  if (!this.isList()) return [];
@@ -3726,8 +3729,8 @@ var Ft = class {
3726
3729
  for (let t of this.list) {
3727
3730
  let n = "";
3728
3731
  if (this.columns) for (let e of this.columns) {
3729
- let r = V(t, e);
3730
- l(r) && (n += ` ${F(r)}`);
3732
+ let r = H(t, e);
3733
+ l(r) && (n += ` ${C(r)}`);
3731
3734
  }
3732
3735
  e.push({
3733
3736
  item: t,
@@ -3742,9 +3745,9 @@ var Ft = class {
3742
3745
  resetCache() {
3743
3746
  this.listCache = void 0;
3744
3747
  }
3745
- }, It = class {
3748
+ }, Lt = class {
3746
3749
  constructor(e, t) {
3747
- w(this, "value", void 0), w(this, "options", void 0), this.value = e, this.options = t;
3750
+ T(this, "value", void 0), T(this, "options", void 0), this.value = e, this.options = t;
3748
3751
  }
3749
3752
  is() {
3750
3753
  return !!this.value;
@@ -3762,30 +3765,30 @@ var Ft = class {
3762
3765
  };
3763
3766
  //#endregion
3764
3767
  //#region src/functions/getExp.ts
3765
- function Lt(e, t = "ig", n = ":value") {
3766
- let r = Y(e);
3768
+ function Rt(e, t = "ig", n = ":value") {
3769
+ let r = X(e);
3767
3770
  return new RegExp(n.replace(/:value/g, r), t);
3768
3771
  }
3769
3772
  //#endregion
3770
3773
  //#region src/functions/getExactSearchExp.ts
3771
- function Rt(e) {
3772
- return Lt(e, "i", "(:value)");
3774
+ function zt(e) {
3775
+ return Rt(e, "i", "(:value)");
3773
3776
  }
3774
3777
  //#endregion
3775
3778
  //#region src/functions/getSearchExp.ts
3776
- function zt(e, t = 128) {
3779
+ function Bt(e, t = 128) {
3777
3780
  if (!d(e) || e.trim().length === 0 || e.length > t) return /^/;
3778
3781
  let n = [];
3779
3782
  return a(e).split(" ").forEach((e) => {
3780
- let t = Y(e).trim();
3783
+ let t = X(e).trim();
3781
3784
  l(t) && n.push(`(?=.*?${t})`);
3782
3785
  }), RegExp(`^${n.join("")}`, "i");
3783
3786
  }
3784
3787
  //#endregion
3785
3788
  //#region src/classes/SearchListMatcher.ts
3786
- var Bt = class {
3789
+ var Vt = class {
3787
3790
  constructor(e, t) {
3788
- w(this, "item", void 0), w(this, "options", void 0), w(this, "matcher", void 0), this.item = e, this.options = t, this.initMatcher();
3791
+ T(this, "item", void 0), T(this, "options", void 0), T(this, "matcher", void 0), this.item = e, this.options = t, this.initMatcher();
3789
3792
  }
3790
3793
  is() {
3791
3794
  return !!this.matcher;
@@ -3800,11 +3803,11 @@ var Bt = class {
3800
3803
  this.initMatcher();
3801
3804
  }
3802
3805
  initMatcher() {
3803
- this.item.is() ? this.matcher = this.options.getFindExactMatch() ? Rt(this.item.get()) : zt(this.item.get()) : this.matcher = void 0;
3806
+ this.item.is() ? this.matcher = this.options.getFindExactMatch() ? zt(this.item.get()) : Bt(this.item.get()) : this.matcher = void 0;
3804
3807
  }
3805
- }, Vt = class {
3808
+ }, Ht = class {
3806
3809
  constructor(e) {
3807
- w(this, "options", void 0), this.options = e;
3810
+ T(this, "options", void 0), this.options = e;
3808
3811
  }
3809
3812
  getOptions() {
3810
3813
  return this.options || {};
@@ -3832,12 +3835,12 @@ var Bt = class {
3832
3835
  setOptions(e) {
3833
3836
  return this.options = e, this;
3834
3837
  }
3835
- }, Ht = class {
3838
+ }, Ut = class {
3836
3839
  constructor(e, t, n, r) {
3837
- w(this, "options", void 0), w(this, "item", void 0), w(this, "matcher", void 0), w(this, "data", void 0), w(this, "callbackToSelection", (e, t) => {
3840
+ T(this, "options", void 0), T(this, "item", void 0), T(this, "matcher", void 0), T(this, "data", void 0), T(this, "callbackToSelection", (e, t) => {
3838
3841
  if (this.matcher.isSelection(t)) return this.data.toFormatItem(e, !0);
3839
3842
  if (this.options.getReturnEverything()) return this.data.toFormatItem(e, !1);
3840
- }), w(this, "callbackToNone", (e) => this.data.toFormatItem(e, !1)), this.options = new Vt(r), this.item = new It(n, this.options), this.matcher = new Bt(this.item, this.options), this.data = new Ft(e, t, this.item, this.options);
3843
+ }), T(this, "callbackToNone", (e) => this.data.toFormatItem(e, !1)), this.options = new Ht(r), this.item = new Lt(n, this.options), this.matcher = new Vt(this.item, this.options), this.data = new It(e, t, this.item, this.options);
3841
3844
  }
3842
3845
  getData() {
3843
3846
  return this.data;
@@ -3874,13 +3877,13 @@ var Bt = class {
3874
3877
  let e = this.data.getList();
3875
3878
  return e ? r(e, this.callbackToNone) : [];
3876
3879
  }
3877
- }, Ut = () => E.get("__ui:storage-callback__", () => ({})), Wt = class e {
3880
+ }, Wt = () => O.get("__ui:storage-callback__", () => ({})), Gt = class e {
3878
3881
  static getInstance(t, n = "main") {
3879
3882
  return new e(t, n);
3880
3883
  }
3881
3884
  constructor(e, t = "main") {
3882
- w(this, "name", void 0), w(this, "group", void 0), w(this, "callbacks", []), w(this, "loading", !1), this.name = e, this.group = t;
3883
- let n = `${t}:${e}`, r = Ut();
3885
+ T(this, "name", void 0), T(this, "group", void 0), T(this, "callbacks", []), T(this, "loading", !1), this.name = e, this.group = t;
3886
+ let n = `${t}:${e}`, r = Wt();
3884
3887
  if (n in r) return r[n];
3885
3888
  r[n] = this;
3886
3889
  }
@@ -3907,10 +3910,10 @@ var Bt = class {
3907
3910
  }
3908
3911
  async run(e) {
3909
3912
  this.loading = !1;
3910
- for (let { callback: t, isOnce: n } of this.callbacks) await ze(t, e), n && this.removeCallback(t);
3913
+ for (let { callback: t, isOnce: n } of this.callbacks) await qe(t, e), n && this.removeCallback(t);
3911
3914
  return this;
3912
3915
  }
3913
- }, Gt = [
3916
+ }, Kt = [
3914
3917
  "d",
3915
3918
  "e",
3916
3919
  "f",
@@ -3930,10 +3933,10 @@ var Bt = class {
3930
3933
  "t",
3931
3934
  "u",
3932
3935
  "v"
3933
- ], Kt = RegExp(`%(${Gt.join("|")})`, "g"), qt = (e, t = {}) => {
3936
+ ], qt = RegExp(`%(${Kt.join("|")})`, "g"), Jt = (e, t = {}) => {
3934
3937
  let r = String(e);
3935
- return Array.isArray(t) && e.match(/%[a-z]/) && (r = r.replace(Kt, (e, n) => {
3936
- let r = Gt.indexOf(n);
3938
+ return Array.isArray(t) && e.match(/%[a-z]/) && (r = r.replace(qt, (e, n) => {
3939
+ let r = Kt.indexOf(n);
3937
3940
  if (r !== -1) {
3938
3941
  var i;
3939
3942
  return String((i = t == null ? void 0 : t[r]) == null ? "" : i);
@@ -3952,12 +3955,12 @@ var Bt = class {
3952
3955
  }
3953
3956
  return e;
3954
3957
  })), r;
3955
- }, Jt = (e) => {
3958
+ }, Yt = (e) => {
3956
3959
  var t;
3957
- return i(e) ? !0 : !!(e && n(e) && ((e == null ? void 0 : e.status) === "success" || e != null && e.success || !(e == null || (t = e.statusObject) == null) && t.status && /^2/.test(String(e.statusObject.status)) || !("status" in e) && !("success" in e) && !("statusObject" in e) && /^2/.test(String(P.getStatus().getStatus()))));
3958
- }, Yt = "global", Xt = 160, Zt = class {
3959
- constructor(e, t = () => O.getLanguage(), n = () => O.getLocation()) {
3960
- w(this, "language", void 0), w(this, "location", void 0), w(this, "files", {}), w(this, "data", {}), this.language = t, this.location = n, e && this.add(e);
3960
+ return i(e) ? !0 : !!(e && n(e) && ((e == null ? void 0 : e.status) === "success" || e != null && e.success || !(e == null || (t = e.statusObject) == null) && t.status && /^2/.test(String(e.statusObject.status)) || !("status" in e) && !("success" in e) && !("statusObject" in e) && /^2/.test(String(L.getStatus().getStatus()))));
3961
+ }, Xt = "global", Zt = 160, Qt = class {
3962
+ constructor(e, t = () => j.getLanguage(), n = () => j.getLocation()) {
3963
+ T(this, "language", void 0), T(this, "location", void 0), T(this, "files", {}), T(this, "data", {}), this.language = t, this.location = n, e && this.add(e);
3961
3964
  }
3962
3965
  isFile() {
3963
3966
  return Object.keys(this.files).length > 0 && this.getIndex() !== void 0;
@@ -3985,7 +3988,7 @@ var Bt = class {
3985
3988
  if (e in this.files) return e;
3986
3989
  let t = this.getLanguage();
3987
3990
  if (t in this.files) return t;
3988
- if ("global" in this.files) return Yt;
3991
+ if ("global" in this.files) return Xt;
3989
3992
  }
3990
3993
  getByData(e) {
3991
3994
  if (e in this.data) return this.data[e];
@@ -3996,14 +3999,14 @@ var Bt = class {
3996
3999
  return t && (this.data[e] = t), t;
3997
4000
  }
3998
4001
  }
3999
- }, Qt = class {
4000
- constructor(e = "/api/translate", t = "list", n = new Zt()) {
4001
- w(this, "url", void 0), w(this, "propsName", void 0), w(this, "files", void 0), w(this, "data", {}), w(this, "cache", []), w(this, "resolveList", []), w(this, "timeout", void 0), w(this, "isReadApi", !0), this.url = e, this.propsName = t, this.files = n;
4002
+ }, $t = class {
4003
+ constructor(e = "/api/translate", t = "list", n = new Qt()) {
4004
+ T(this, "url", void 0), T(this, "propsName", void 0), T(this, "files", void 0), T(this, "data", {}), T(this, "cache", []), T(this, "resolveList", []), T(this, "timeout", void 0), T(this, "isReadApi", !0), this.url = e, this.propsName = t, this.files = n;
4002
4005
  }
4003
4006
  async get(e, t) {
4004
4007
  var n;
4005
4008
  let r = this.getText(e);
4006
- return r ? this.replacement(r, t) : (P.isLocalhost() || await this.add(e), this.replacement((n = this.getText(e)) == null ? e : n));
4009
+ return r ? this.replacement(r, t) : (L.isLocalhost() || await this.add(e), this.replacement((n = this.getText(e)) == null ? e : n));
4007
4010
  }
4008
4011
  getSync(e, t = !1, n) {
4009
4012
  let r = this.getText(e);
@@ -4044,7 +4047,7 @@ var Bt = class {
4044
4047
  });
4045
4048
  }
4046
4049
  async addNormalOrSync(e) {
4047
- if (l(e)) if (P.isLocalhost()) this.addSync(e);
4050
+ if (l(e)) if (L.isLocalhost()) this.addSync(e);
4048
4051
  else {
4049
4052
  let t = Object.keys(e);
4050
4053
  t.length > 0 && await this.add(t);
@@ -4086,16 +4089,16 @@ var Bt = class {
4086
4089
  return `${this.files.getLanguage()}-${e}`;
4087
4090
  }
4088
4091
  getNameByGlobal(e) {
4089
- return `${Yt}-${e}`;
4092
+ return `${Xt}-${e}`;
4090
4093
  }
4091
4094
  getNamesNone(e) {
4092
4095
  let t = [];
4093
- return A(e).forEach((e) => {
4096
+ return N(e).forEach((e) => {
4094
4097
  e !== "__TRANSLATE_START__" && e !== "__TRANSLATE_END__" && !this.hasName(e) && t.push(e);
4095
4098
  }), t;
4096
4099
  }
4097
4100
  async getResponse() {
4098
- let e = await P.get({
4101
+ let e = await L.get({
4099
4102
  api: !1,
4100
4103
  path: this.url,
4101
4104
  request: { [this.propsName]: this.cache },
@@ -4103,14 +4106,14 @@ var Bt = class {
4103
4106
  timeout: 12e3,
4104
4107
  global: !0
4105
4108
  });
4106
- return Jt(e) || T.on({
4109
+ return Yt(e) || E.on({
4107
4110
  group: "translate",
4108
4111
  code: "error",
4109
4112
  details: e
4110
4113
  }), e == null ? {} : e;
4111
4114
  }
4112
4115
  replacement(e, t) {
4113
- return t ? qt(e, t) : e;
4116
+ return t ? Jt(e, t) : e;
4114
4117
  }
4115
4118
  async make() {
4116
4119
  let e;
@@ -4122,12 +4125,12 @@ var Bt = class {
4122
4125
  this.data[this.getName(t)] = (n = e == null ? void 0 : e[t]) == null ? "" : n;
4123
4126
  }), this.cache = [];
4124
4127
  }
4125
- }, $t = class {
4128
+ }, en = class {
4126
4129
  static async get(e, t) {
4127
4130
  return this.getItem().get(e, t);
4128
4131
  }
4129
4132
  static getItem() {
4130
- return this.item || (this.item = new Qt()), this.item;
4133
+ return this.item || (this.item = new $t()), this.item;
4131
4134
  }
4132
4135
  static getSync(e, t = !1, n) {
4133
4136
  return this.getItem().getSync(e, t, n);
@@ -4166,18 +4169,18 @@ var Bt = class {
4166
4169
  e.url && this.getItem().setUrl(e.url), e.propsName && this.getItem().setPropsName(e.propsName), typeof e.readApi == "boolean" && this.getItem().setReadApi(e.readApi);
4167
4170
  }
4168
4171
  };
4169
- w($t, "item", void 0);
4172
+ T(en, "item", void 0);
4170
4173
  //#endregion
4171
4174
  //#region src/functions/arrFill.ts
4172
- function en(e, t) {
4175
+ function tn(e, t) {
4173
4176
  return Array(t).fill(e);
4174
4177
  }
4175
4178
  //#endregion
4176
4179
  //#region src/functions/blobToBase64.ts
4177
- var tn = () => nn() !== void 0, nn = () => {
4180
+ var nn = () => rn() !== void 0, rn = () => {
4178
4181
  var e;
4179
4182
  return (e = globalThis) == null ? void 0 : e.Buffer;
4180
- }, rn = async (e) => new Promise((t, n) => {
4183
+ }, an = async (e) => new Promise((t, n) => {
4181
4184
  if (typeof FileReader < "u") {
4182
4185
  let r = new FileReader();
4183
4186
  r.onloadend = () => {
@@ -4188,19 +4191,19 @@ var tn = () => nn() !== void 0, nn = () => {
4188
4191
  t(r.result.replace(/^data:.*?,/, ""));
4189
4192
  }, r.onerror = n, r.readAsDataURL(e);
4190
4193
  } else n();
4191
- }), an = (e) => {
4194
+ }), on = (e) => {
4192
4195
  var t;
4193
4196
  return ((t = globalThis) == null ? void 0 : t.Buffer).from(e).toString("base64");
4194
4197
  };
4195
- async function on(e, t = !1) {
4196
- let n = s() ? await rn(e) : tn() ? an(await e.arrayBuffer()) : void 0;
4198
+ async function sn(e, t = !1) {
4199
+ let n = s() ? await an(e) : nn() ? on(await e.arrayBuffer()) : void 0;
4197
4200
  if (n) return t ? n : `data:${e.type};base64,${n}`;
4198
4201
  }
4199
4202
  //#endregion
4200
4203
  //#region src/functions/capitalize.ts
4201
- function sn(e, t = !1) {
4204
+ function cn(e, t = !1) {
4202
4205
  let n = String(e);
4203
- return n.length > 0 ? t ? n.charAt(0).toLocaleUpperCase(O.getLocation()) + n.slice(1) : n.charAt(0).toUpperCase() + n.slice(1) : n;
4206
+ return n.length > 0 ? t ? n.charAt(0).toLocaleUpperCase(j.getLocation()) + n.slice(1) : n.charAt(0).toUpperCase() + n.slice(1) : n;
4204
4207
  }
4205
4208
  //#endregion
4206
4209
  //#region src/functions/copyObject.ts
@@ -4209,12 +4212,12 @@ function Z(e) {
4209
4212
  }
4210
4213
  //#endregion
4211
4214
  //#region src/functions/copyObjectLite.ts
4212
- function cn(e, t) {
4215
+ function ln(e, t) {
4213
4216
  return Object.assign({}, e, t);
4214
4217
  }
4215
4218
  //#endregion
4216
4219
  //#region src/functions/domQuerySelector.ts
4217
- function ln(e) {
4220
+ function un(e) {
4218
4221
  if (s()) {
4219
4222
  var t;
4220
4223
  return (t = document.querySelector(e)) == null ? void 0 : t;
@@ -4222,64 +4225,64 @@ function ln(e) {
4222
4225
  }
4223
4226
  //#endregion
4224
4227
  //#region src/functions/domQuerySelectorAll.ts
4225
- function un(e) {
4228
+ function dn(e) {
4226
4229
  if (s()) return document.querySelectorAll(e);
4227
4230
  }
4228
4231
  //#endregion
4229
4232
  //#region src/functions/getElementImage.ts
4230
- function dn(e) {
4231
- return d(e) ? U(void 0, "img", { src: e }) : e;
4233
+ function fn(e) {
4234
+ return d(e) ? W(void 0, "img", { src: e }) : e;
4232
4235
  }
4233
4236
  //#endregion
4234
4237
  //#region src/functions/resizeImageByMax.ts
4235
- function fn(e, t = "auto") {
4238
+ function pn(e, t = "auto") {
4236
4239
  switch (t) {
4237
4240
  case "auto": return e.naturalWidth >= e.naturalHeight;
4238
4241
  case "width": return !0;
4239
4242
  case "height": return !1;
4240
4243
  }
4241
4244
  }
4242
- function pn(e, t, n = "auto", r) {
4243
- let i = dn(e);
4245
+ function mn(e, t, n = "auto", r) {
4246
+ let i = fn(e);
4244
4247
  if (s() && i && i.naturalWidth && i.naturalHeight && (i.naturalWidth > t && (n === "auto" || n === "width") || i.naturalHeight > t && (n === "auto" || n === "height"))) {
4245
4248
  var a;
4246
- let e = fn(i, n), o = (a = document.createElement("canvas")) == null ? void 0 : a.getContext("2d");
4249
+ let e = pn(i, n), o = (a = document.createElement("canvas")) == null ? void 0 : a.getContext("2d");
4247
4250
  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);
4248
4251
  }
4249
4252
  }
4250
4253
  //#endregion
4251
4254
  //#region src/functions/ensureMaxSize.ts
4252
- async function mn(e, t = .56, n = "image/jpeg") {
4255
+ async function hn(e, t = .56, n = "image/jpeg") {
4253
4256
  return new Promise((r) => {
4254
4257
  if (!s()) {
4255
4258
  r("");
4256
4259
  return;
4257
4260
  }
4258
- let i = new Blob([e], { type: n }), a = URL.createObjectURL(i), o = dn(a);
4261
+ let i = new Blob([e], { type: n }), a = URL.createObjectURL(i), o = fn(a);
4259
4262
  o ? (o.onload = () => {
4260
- let e = pn(o, t * o.naturalWidth, "width", n);
4263
+ let e = mn(o, t * o.naturalWidth, "width", n);
4261
4264
  r(e == null ? "" : e), URL.revokeObjectURL(a);
4262
4265
  }, o.onerror = () => {
4263
4266
  URL.revokeObjectURL(a), r("");
4264
- }) : on(i).then((e) => r(String(e == null ? "" : e)));
4267
+ }) : sn(i).then((e) => r(String(e == null ? "" : e)));
4265
4268
  });
4266
4269
  }
4267
4270
  //#endregion
4268
4271
  //#region src/functions/eventStopPropagation.ts
4269
- function hn(e) {
4272
+ function gn(e) {
4270
4273
  e.preventDefault(), e.stopPropagation();
4271
4274
  }
4272
4275
  //#endregion
4273
4276
  //#region src/functions/frame.ts
4274
- function gn(e, t, n) {
4277
+ function _n(e, t, n) {
4275
4278
  let r = () => {
4276
- e(), s() && t != null && t() ? gn(e, t, n) : n == null || n();
4279
+ e(), s() && t != null && t() ? _n(e, t, n) : n == null || n();
4277
4280
  };
4278
4281
  s() ? requestAnimationFrame(r) : r();
4279
4282
  }
4280
4283
  //#endregion
4281
4284
  //#region src/functions/getArrayHighlightMatch.ts
4282
- function _n(e, t) {
4285
+ function vn(e, t) {
4283
4286
  let n = a(e);
4284
4287
  if (l(n) && l(t)) {
4285
4288
  let e = [], r = jt(t), i = 0, a;
@@ -4302,8 +4305,8 @@ function _n(e, t) {
4302
4305
  }
4303
4306
  //#endregion
4304
4307
  //#region src/functions/getAttributes.ts
4305
- function vn(e) {
4306
- let t = {}, n = k(e);
4308
+ function yn(e) {
4309
+ let t = {}, n = M(e);
4307
4310
  if (n) for (let e of n.attributes) {
4308
4311
  var r;
4309
4312
  t[e.name] = (r = (e == null ? void 0 : e.value) || (e == null ? void 0 : e.textContent)) == null ? void 0 : r;
@@ -4312,12 +4315,12 @@ function vn(e) {
4312
4315
  }
4313
4316
  //#endregion
4314
4317
  //#region src/functions/getClipboardData.ts
4315
- async function yn(e) {
4318
+ async function bn(e) {
4316
4319
  if (s()) try {
4317
4320
  var t, n;
4318
4321
  return (t = e == null || (n = e.clipboardData) == null ? void 0 : n.getData("text")) == null ? await navigator.clipboard.readText() || "" : t;
4319
4322
  } catch (e) {
4320
- T.on({
4323
+ E.on({
4321
4324
  group: "clipboard",
4322
4325
  code: "error",
4323
4326
  details: e
@@ -4327,35 +4330,35 @@ async function yn(e) {
4327
4330
  }
4328
4331
  //#endregion
4329
4332
  //#region src/functions/getCurrentDate.ts
4330
- function bn(e = "datetime") {
4333
+ function xn(e = "datetime") {
4331
4334
  return new rt(void 0, e).standard();
4332
4335
  }
4333
4336
  //#endregion
4334
4337
  //#region src/functions/getCurrentTime.ts
4335
- function xn() {
4338
+ function Sn() {
4336
4339
  return Date.now();
4337
4340
  }
4338
4341
  //#endregion
4339
4342
  //#region src/functions/getElementId.ts
4340
- var Q, Sn = () => {
4343
+ var Q, Cn = () => {
4341
4344
  let e = Q == null ? void 0 : Q();
4342
4345
  if (e) return String(e);
4343
- let t = E.get("__ui:getElementId__", () => ({ id: 1e5 }));
4346
+ let t = O.get("__ui:getElementId__", () => ({ id: 1e5 }));
4344
4347
  return `id-${t.id++}`;
4345
4348
  };
4346
- function Cn(e, t) {
4349
+ function wn(e, t) {
4347
4350
  if (e) {
4348
- let n = k(e);
4349
- if (n) return l(n.id) || n.setAttribute("id", Sn()), t ? `#${n.id}${t}`.trim() : n.id;
4351
+ let n = M(e);
4352
+ if (n) return l(n.id) || n.setAttribute("id", Cn()), t ? `#${n.id}${t}`.trim() : n.id;
4350
4353
  }
4351
- return Sn();
4354
+ return Cn();
4352
4355
  }
4353
- function wn(e) {
4356
+ function Tn(e) {
4354
4357
  Q || (Q = e);
4355
4358
  }
4356
4359
  //#endregion
4357
4360
  //#region src/functions/getFirst.ts
4358
- function Tn(e) {
4361
+ function En(e) {
4359
4362
  if (i(e)) return e == null ? void 0 : e[0];
4360
4363
  if (t(e)) {
4361
4364
  var n;
@@ -4365,18 +4368,18 @@ function Tn(e) {
4365
4368
  }
4366
4369
  //#endregion
4367
4370
  //#region src/functions/getKey.ts
4368
- function En(e) {
4371
+ function Dn(e) {
4369
4372
  var t, n, r;
4370
4373
  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;
4371
4374
  }
4372
4375
  //#endregion
4373
4376
  //#region src/functions/getLength.ts
4374
- function Dn(e) {
4377
+ function On(e) {
4375
4378
  return e == null ? 0 : typeof e == "string" || Array.isArray(e) ? e.length : e instanceof Map || e instanceof Set ? e.size : t(e) ? Object.keys(e).length : 0;
4376
4379
  }
4377
4380
  //#endregion
4378
4381
  //#region src/functions/getLengthOfAllArray.ts
4379
- function On(e) {
4382
+ function kn(e) {
4380
4383
  return r(e, (e) => {
4381
4384
  var t;
4382
4385
  return (t = e == null ? void 0 : e.length) == null ? 0 : t;
@@ -4384,41 +4387,41 @@ function On(e) {
4384
4387
  }
4385
4388
  //#endregion
4386
4389
  //#region src/functions/getMaxLengthAllArray.ts
4387
- function kn(e) {
4390
+ function An(e) {
4388
4391
  if (!l(e)) return 0;
4389
- let t = On(e);
4392
+ let t = kn(e);
4390
4393
  return t.length > 1e4 ? t.reduce((e, t) => Math.max(e, t)) : Math.max(...t);
4391
4394
  }
4392
4395
  //#endregion
4393
4396
  //#region src/functions/getMinLengthAllArray.ts
4394
- function An(e) {
4397
+ function jn(e) {
4395
4398
  if (!l(e)) return 0;
4396
- let t = On(e);
4399
+ let t = kn(e);
4397
4400
  return t.length > 1e4 ? t.reduce((e, t) => Math.min(e, t)) : Math.min(...t);
4398
4401
  }
4399
4402
  //#endregion
4400
4403
  //#region src/functions/getMouseClientX.ts
4401
- function jn(e) {
4404
+ function Mn(e) {
4402
4405
  var t, n;
4403
4406
  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;
4404
4407
  }
4405
4408
  //#endregion
4406
4409
  //#region src/functions/getMouseClientY.ts
4407
- function Mn(e) {
4410
+ function Nn(e) {
4408
4411
  var t, n;
4409
4412
  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;
4410
4413
  }
4411
4414
  //#endregion
4412
4415
  //#region src/functions/getMouseClient.ts
4413
- function Nn(e) {
4416
+ function Pn(e) {
4414
4417
  return {
4415
- x: jn(e),
4416
- y: Mn(e)
4418
+ x: Mn(e),
4419
+ y: Nn(e)
4417
4420
  };
4418
4421
  }
4419
4422
  //#endregion
4420
4423
  //#region src/functions/getObjectByKeys.ts
4421
- function Pn(e, t) {
4424
+ function Fn(e, t) {
4422
4425
  let r = {};
4423
4426
  return n(e) && t.forEach((t) => {
4424
4427
  t in e && e[t] !== void 0 && (r[t] = e[t]);
@@ -4426,7 +4429,7 @@ function Pn(e, t) {
4426
4429
  }
4427
4430
  //#endregion
4428
4431
  //#region src/functions/getObjectNoUndefined.ts
4429
- function Fn(e, t = void 0) {
4432
+ function In(e, t = void 0) {
4430
4433
  let n = {};
4431
4434
  return r(e, (e, r) => {
4432
4435
  e !== t && (n[r] = e);
@@ -4434,42 +4437,42 @@ function Fn(e, t = void 0) {
4434
4437
  }
4435
4438
  //#endregion
4436
4439
  //#region src/functions/getObjectOrNone.ts
4437
- function In(e) {
4440
+ function Ln(e) {
4438
4441
  return n(e) ? e : {};
4439
4442
  }
4440
4443
  //#endregion
4441
4444
  //#region src/functions/getOnlyText.ts
4442
- function Ln(e) {
4443
- return F(e).replace(/[^\p{L}\p{N}\s]+/gu, "").trim();
4445
+ function Rn(e) {
4446
+ return C(e).replace(/[^\p{L}\p{N}\s]+/gu, "").trim();
4444
4447
  }
4445
4448
  //#endregion
4446
4449
  //#region src/functions/strFill.ts
4447
- function Rn(e, t) {
4450
+ function zn(e, t) {
4448
4451
  return String(e).repeat(t);
4449
4452
  }
4450
4453
  //#endregion
4451
4454
  //#region src/functions/getRandomText.ts
4452
- function zn(e, t, n = "#", r = 2, i = 12) {
4455
+ function Bn(e, t, n = "#", r = 2, i = 12) {
4453
4456
  let a = f(e, t), o = [];
4454
- for (let e = 0; e < a; e++) o.push(Rn(n, f(r, i)));
4457
+ for (let e = 0; e < a; e++) o.push(zn(n, f(r, i)));
4455
4458
  return o.join(" ");
4456
4459
  }
4457
4460
  //#endregion
4458
4461
  //#region src/functions/getStepPercent.ts
4459
- function Bn(e, t) {
4462
+ function Vn(e, t) {
4460
4463
  let n = e == null ? 0 : e;
4461
4464
  return t > n ? 100 / (t - n) : 0;
4462
4465
  }
4463
4466
  //#endregion
4464
4467
  //#region src/functions/getStepValue.ts
4465
- function Vn(e, t) {
4468
+ function Hn(e, t) {
4466
4469
  let n = e == null ? 0 : e;
4467
4470
  return t > n ? (t - n) / 100 : 0;
4468
4471
  }
4469
4472
  //#endregion
4470
4473
  //#region src/functions/goScroll.ts
4471
- var Hn = 0;
4472
- function Un(e, t, n) {
4474
+ var Un = 0;
4475
+ function Wn(e, t, n) {
4473
4476
  if (!s()) return;
4474
4477
  let r = t == null ? void 0 : t.closest(e);
4475
4478
  if (t && r && r.scrollHeight !== r.offsetHeight) {
@@ -4477,12 +4480,12 @@ function Un(e, t, n) {
4477
4480
  if (n) {
4478
4481
  let a = n.getBoundingClientRect();
4479
4482
  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);
4480
- } else r.scrollTop > t.offsetTop ? r.scrollTop = i.top - e.top - Hn : r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = i.top - e.top + i.height - e.height + Hn);
4483
+ } else r.scrollTop > t.offsetTop ? r.scrollTop = i.top - e.top - Un : r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = i.top - e.top + i.height - e.height + Un);
4481
4484
  }
4482
4485
  }
4483
4486
  //#endregion
4484
4487
  //#region src/functions/goScrollSmooth.ts
4485
- function Wn(e, t, n = 0) {
4488
+ function Gn(e, t, n = 0) {
4486
4489
  if (!s()) return;
4487
4490
  let r = (t == null ? void 0 : t.behavior) || "smooth";
4488
4491
  if ("scrollIntoView" in e && !n) {
@@ -4504,7 +4507,7 @@ function Wn(e, t, n = 0) {
4504
4507
  }
4505
4508
  //#endregion
4506
4509
  //#region src/functions/goScrollTo.ts
4507
- function Gn(e, t, n = "smooth") {
4510
+ function Kn(e, t, n = "smooth") {
4508
4511
  if (!s() || !e || !t) return;
4509
4512
  let r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
4510
4513
  e.scrollBy({
@@ -4515,16 +4518,16 @@ function Gn(e, t, n = "smooth") {
4515
4518
  }
4516
4519
  //#endregion
4517
4520
  //#region src/functions/isShare.ts
4518
- function Kn() {
4521
+ function qn() {
4519
4522
  return s() && typeof navigator < "u" && !!navigator.share;
4520
4523
  }
4521
4524
  //#endregion
4522
4525
  //#region src/functions/handleShare.ts
4523
- async function qn(e) {
4524
- if (Kn() && navigator.canShare && navigator.canShare(e)) try {
4526
+ async function Jn(e) {
4527
+ if (qn() && navigator.canShare && navigator.canShare(e)) try {
4525
4528
  return await navigator.share(e), !0;
4526
4529
  } catch (e) {
4527
- T.on({
4530
+ E.on({
4528
4531
  group: "share",
4529
4532
  code: "error",
4530
4533
  details: e
@@ -4534,12 +4537,12 @@ async function qn(e) {
4534
4537
  }
4535
4538
  //#endregion
4536
4539
  //#region src/functions/inArray.ts
4537
- function Jn(e, t) {
4540
+ function Yn(e, t) {
4538
4541
  return e.includes(t);
4539
4542
  }
4540
4543
  //#endregion
4541
4544
  //#region src/functions/initScrollbarOffset.ts
4542
- async function Yn() {
4545
+ async function Xn() {
4543
4546
  if (s()) {
4544
4547
  let e = await At.get();
4545
4548
  document.body.style.setProperty("--sys-scrollbar-offset", `${e}px`);
@@ -4547,7 +4550,7 @@ async function Yn() {
4547
4550
  }
4548
4551
  //#endregion
4549
4552
  //#region src/functions/intersectKey.ts
4550
- function Xn(e, n) {
4553
+ function Zn(e, n) {
4551
4554
  let i = {};
4552
4555
  return t(e) && t(n) && r(e, (e, t) => {
4553
4556
  t in n && (i[t] = e);
@@ -4555,7 +4558,7 @@ function Xn(e, n) {
4555
4558
  }
4556
4559
  //#endregion
4557
4560
  //#region src/functions/isDifferent.ts
4558
- function Zn(e, t) {
4561
+ function Qn(e, t) {
4559
4562
  let n = Object.keys(e).length !== Object.keys(t).length;
4560
4563
  return n || r(e, (e, r) => {
4561
4564
  e !== (t == null ? void 0 : t[r]) && (n = !0);
@@ -4563,25 +4566,25 @@ function Zn(e, t) {
4563
4566
  }
4564
4567
  //#endregion
4565
4568
  //#region src/functions/isElementVisible.ts
4566
- function Qn(e) {
4569
+ function $n(e) {
4567
4570
  if (!s()) return !1;
4568
- let t = k(e);
4571
+ let t = M(e);
4569
4572
  if (!t || "isConnected" in t && t.isConnected === !1) return !1;
4570
4573
  let n = window.getComputedStyle(t);
4571
4574
  return n.display !== "none" && n.visibility !== "hidden" && n.opacity !== "0" && t.offsetWidth !== 0 && t.offsetHeight !== 0;
4572
4575
  }
4573
4576
  //#endregion
4574
4577
  //#region src/functions/isInput.ts
4575
- var $n = (e) => {
4578
+ var er = (e) => {
4576
4579
  if (e instanceof HTMLElement) {
4577
4580
  let t = e.tagName.toLowerCase();
4578
4581
  return !!(t === "input" || t === "textarea" || t === "select" || e.isContentEditable || e.getAttribute("contenteditable") === "true") && !(e != null && e.readOnly) && !(e != null && e.disabled);
4579
4582
  }
4580
4583
  return !1;
4581
- }, er = (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 ? !$n(e.target) : !t : !1;
4584
+ }, tr = (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 ? !er(e.target) : !t : !1;
4582
4585
  //#endregion
4583
4586
  //#region src/functions/isFloat.ts
4584
- function tr(e) {
4587
+ function nr(e) {
4585
4588
  switch (typeof e) {
4586
4589
  case "number": return !0;
4587
4590
  case "string": return /^-?\d+(\.\d+)?$/.test(e);
@@ -4590,21 +4593,21 @@ function tr(e) {
4590
4593
  }
4591
4594
  //#endregion
4592
4595
  //#region src/functions/isIntegerBetween.ts
4593
- function nr(e, t) {
4596
+ function rr(e, t) {
4594
4597
  let n = Math.floor(t);
4595
4598
  return e >= n && e < n + 1;
4596
4599
  }
4597
4600
  //#endregion
4598
4601
  //#region src/functions/isSelectedByList.ts
4599
- function rr(e, t) {
4602
+ function ir(e, t) {
4600
4603
  return Array.isArray(e) ? e.every((e) => b(e, t)) : b(e, t);
4601
4604
  }
4602
4605
  //#endregion
4603
4606
  //#region src/functions/isTab.ts
4604
- var ir = (e) => e.key === "Tab" || e.code === "Tab" || e.keyCode === 9;
4607
+ var ar = (e) => e.key === "Tab" || e.code === "Tab" || e.keyCode === 9;
4605
4608
  //#endregion
4606
4609
  //#region src/functions/removeCommonPrefix.ts
4607
- function ar(e, t) {
4610
+ function or(e, t) {
4608
4611
  if (e.startsWith(t)) return e.slice(t.length).trim();
4609
4612
  let n = 0;
4610
4613
  for (; e[n] === t[n] && n < e.length && n < t.length;) n++;
@@ -4612,13 +4615,13 @@ function ar(e, t) {
4612
4615
  }
4613
4616
  //#endregion
4614
4617
  //#region src/functions/replaceComponentName.ts
4615
- var or = (e, t, n) => {
4618
+ var sr = (e, t, n) => {
4616
4619
  var r;
4617
4620
  return e == null || (r = e.replace(RegExp(`<${t}`, "ig"), `<${n}`)) == null || (r = r.replace(RegExp(`</${t}`, "ig"), `</${n}`)) == null ? void 0 : r.trim();
4618
4621
  };
4619
4622
  //#endregion
4620
4623
  //#region src/functions/uniqueArray.ts
4621
- function sr(e) {
4624
+ function cr(e) {
4622
4625
  return [...new Set(e)];
4623
4626
  }
4624
4627
  //#endregion
@@ -4627,20 +4630,20 @@ function $(e, n, i = !0) {
4627
4630
  let a = Z(e);
4628
4631
  return t(e) && t(n) && r(n, (n, r) => {
4629
4632
  let o = e == null ? void 0 : e[r];
4630
- t(o) && t(n) ? i && Array.isArray(o) && Array.isArray(n) ? a[r] = Z(sr([...o, ...n])) : a[r] = $(Array.isArray(o) ? { ...o } : o, n, i) : a[r] = t(n) ? Z(n) : n;
4633
+ t(o) && t(n) ? i && Array.isArray(o) && Array.isArray(n) ? a[r] = Z(cr([...o, ...n])) : a[r] = $(Array.isArray(o) ? { ...o } : o, n, i) : a[r] = t(n) ? Z(n) : n;
4631
4634
  }), a;
4632
4635
  }
4633
4636
  //#endregion
4634
4637
  //#region src/functions/replaceTemplate.ts
4635
- function cr(e, t) {
4638
+ function lr(e, t) {
4636
4639
  let n = e;
4637
4640
  return r(t, (e, t) => {
4638
- n = n.replace(Lt(`[${t}]`), S(e));
4641
+ n = n.replace(Rt(`[${t}]`), S(e));
4639
4642
  }), n;
4640
4643
  }
4641
4644
  //#endregion
4642
4645
  //#region src/functions/secondToTime.ts
4643
- function lr(e, t) {
4646
+ function ur(e, t) {
4644
4647
  let n = y(e);
4645
4648
  if (n > 0) {
4646
4649
  let e = String(Math.floor(n / 60)).padStart(2, "0"), r = String(n % 60).padStart(2, "0");
@@ -4650,7 +4653,7 @@ function lr(e, t) {
4650
4653
  }
4651
4654
  //#endregion
4652
4655
  //#region src/functions/setValues.ts
4653
- function ur(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, notEmpty: o = !1 }) {
4656
+ function dr(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, notEmpty: o = !1 }) {
4654
4657
  if (n) {
4655
4658
  if (i(e)) {
4656
4659
  let n = e.indexOf(t), i = [...e];
@@ -4662,7 +4665,7 @@ function ur(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, no
4662
4665
  }
4663
4666
  //#endregion
4664
4667
  //#region src/functions/splice.ts
4665
- function dr(e, n, i) {
4668
+ function fr(e, n, i) {
4666
4669
  if (t(e) && t(n)) {
4667
4670
  if (i) {
4668
4671
  let a = {}, o = !1;
@@ -4676,34 +4679,34 @@ function dr(e, n, i) {
4676
4679
  }
4677
4680
  //#endregion
4678
4681
  //#region src/functions/toCamelCaseFirst.ts
4679
- function fr(e) {
4682
+ function pr(e) {
4680
4683
  return it(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
4681
4684
  }
4682
4685
  //#endregion
4683
4686
  //#region src/functions/toKebabCase.ts
4684
- function pr(e) {
4687
+ function mr(e) {
4685
4688
  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());
4686
4689
  }
4687
4690
  //#endregion
4688
4691
  //#region src/functions/toNumberByMax.ts
4689
- function mr(e, t, n, r) {
4692
+ function hr(e, t, n, r) {
4690
4693
  let i = y(e), a = y(t);
4691
- return t && a < i ? `${hr(a, n, r)}+` : hr(i, n, r);
4694
+ return t && a < i ? `${gr(a, n, r)}+` : gr(i, n, r);
4692
4695
  }
4693
- var hr = (e, t, n) => t ? new R(n).number(e) : e;
4696
+ var gr = (e, t, n) => t ? new z(n).number(e) : e;
4694
4697
  //#endregion
4695
4698
  //#region src/functions/toPercent.ts
4696
- function gr(e, t) {
4699
+ function _r(e, t) {
4697
4700
  return e === 0 ? t : 1 / e * t;
4698
4701
  }
4699
4702
  //#endregion
4700
4703
  //#region src/functions/toPercentBy100.ts
4701
- function _r(e, t) {
4702
- return gr(e, t) * 100;
4704
+ function vr(e, t) {
4705
+ return _r(e, t) * 100;
4703
4706
  }
4704
4707
  //#endregion
4705
4708
  //#region src/functions/uint8ArrayToBase64.ts
4706
- function vr(e) {
4709
+ function yr(e) {
4707
4710
  let t = "";
4708
4711
  for (let n of e) t += String.fromCharCode(n);
4709
4712
  if (s()) return window.btoa(t);
@@ -4715,7 +4718,7 @@ function vr(e) {
4715
4718
  }
4716
4719
  //#endregion
4717
4720
  //#region src/functions/writeClipboardData.ts
4718
- async function yr(e) {
4721
+ async function br(e) {
4719
4722
  if (s()) try {
4720
4723
  await navigator.clipboard.writeText(e);
4721
4724
  } catch (n) {
@@ -4724,4 +4727,4 @@ async function yr(e) {
4724
4727
  }
4725
4728
  }
4726
4729
  //#endregion
4727
- export { P as Api, M as ApiCache, Ae as ApiDataReturn, je as ApiDefault, Pe as ApiError, Me as ApiErrorItem, Ne as ApiErrorStorage, Fe as ApiHeaders, Le as ApiHydration, He as ApiInstance, N as ApiMethodItem, Re as ApiPreparation, Ve as ApiResponse, Oe as ApiStatus, Ue as BroadcastMessage, Ke as Cache, Ge as CacheItem, qe as CacheStatic, tt as Cookie, Qe as CookieBlock, Ze as CookieBlockInstance, I as CookieStorage, D as DataStorage, rt as Datetime, T as ErrorCenter, le as ErrorCenterHandler, ue as ErrorCenterInstance, Ce as EventItem, at as Formatters, H as FormattersType, ot as GEO_FLAG_ICON_NAME, O as Geo, st as GeoFlag, ye as GeoInstance, R as GeoIntl, ct as GeoPhone, lt as Global, dt as Hash, ut as HashInstance, mt as Icons, j as Loading, Te as LoadingInstance, Dt as Meta, G as MetaManager, Tt as MetaOg, St as MetaOpenGraphAge, bt as MetaOpenGraphAvailability, xt as MetaOpenGraphCondition, Ct as MetaOpenGraphGender, q as MetaOpenGraphTag, yt as MetaOpenGraphType, vt as MetaRobots, Ot as MetaStatic, K as MetaTag, Et as MetaTwitter, wt as MetaTwitterCard, J as MetaTwitterTag, kt as ResumableTimer, At as ScrollbarWidth, Ht as SearchList, Ft as SearchListData, It as SearchListItem, Bt as SearchListMatcher, Vt as SearchListOptions, E as ServerStorage, Wt as StorageCallback, Yt as TRANSLATE_GLOBAL_PREFIX, Xt as TRANSLATE_TIME_OUT, $t as Translate, Zt as TranslateFile, Qt as TranslateInstance, Pt as addTagHighlightMatch, F as anyToString, qt as applyTemplate, en as arrFill, on as blobToBase64, sn as capitalize, Z as copyObject, cn as copyObjectLite, U as createElement, ln as domQuerySelector, un as domQuerySelectorAll, W as encodeAttribute, ae as encodeLiteAttribute, mn as ensureMaxSize, Y as escapeExp, hn as eventStopPropagation, S as executeFunction, ze as executePromise, r as forEach, gn as frame, _n as getArrayHighlightMatch, vn as getAttributes, yn as getClipboardData, nt as getColumn, bn as getCurrentDate, xn as getCurrentTime, k as getElement, Cn as getElementId, dn as getElementImage, ht as getElementItem, xe as getElementOrWindow, fe as getElementSafeScript, Rt as getExactSearchExp, Lt as getExp, Tn as getFirst, pe as getHydrationData, V as getItemByPath, En as getKey, Dn as getLength, On as getLengthOfAllArray, kn as getMaxLengthAllArray, An as getMinLengthAllArray, Nn as getMouseClient, jn as getMouseClientX, Mn as getMouseClientY, Pn as getObjectByKeys, Fn as getObjectNoUndefined, In as getObjectOrNone, Ln as getOnlyText, zn as getRandomText, o as getRequestString, zt as getSearchExp, jt as getSeparatingSearchExp, Bn as getStepPercent, Vn as getStepValue, Un as goScroll, Wn as goScrollSmooth, Gn as goScrollTo, qn as handleShare, Jn as inArray, wn as initGetElementId, Yn as initScrollbarOffset, Xn as intersectKey, Jt as isApiSuccess, i as isArray, Zn as isDifferent, oe as isDomData, s as isDomRuntime, Qn as isElementVisible, er as isEnter, l as isFilled, tr as isFloat, x as isFunction, Se as isInDom, $n as isInput, nr as isIntegerBetween, c as isNull, p as isNumber, t as isObject, n as isObjectNotArray, u as isOnLine, b as isSelected, rr as isSelectedByList, Kn as isShare, d as isString, ir as isTab, be as isWindow, f as random, ar as removeCommonPrefix, or as replaceComponentName, $ as replaceRecursive, cr as replaceTemplate, pn as resizeImageByMax, lr as secondToTime, gt as setElementItem, ur as setValues, ee as sleep, dr as splice, Rn as strFill, Je as strSplit, A as toArray, it as toCamelCase, fr as toCamelCaseFirst, L as toDate, pr as toKebabCase, y as toNumber, mr as toNumberByMax, gr as toPercent, _r as toPercentBy100, a as toString, Ye as transformation, vr as uint8ArrayToBase64, sr as uniqueArray, yr as writeClipboardData };
4730
+ export { L as Api, F as ApiCache, Re as ApiDataReturn, ze as ApiDefault, He as ApiError, Be as ApiErrorItem, Ve as ApiErrorStorage, Ue as ApiHeaders, Ge as ApiHydration, Xe as ApiInstance, I as ApiMethodItem, Ke as ApiPreparation, Ye as ApiResponse, Ie as ApiStatus, Ze as BroadcastMessage, et as Cache, $e as CacheItem, tt as CacheStatic, we as Cookie, xe as CookieBlock, be as CookieBlockInstance, A as CookieStorage, k as DataStorage, rt as Datetime, E as ErrorCenter, ce as ErrorCenterHandler, le as ErrorCenterInstance, je as EventItem, at as Formatters, U as FormattersType, ot as GEO_FLAG_ICON_NAME, j as Geo, st as GeoFlag, De as GeoInstance, z as GeoIntl, ct as GeoPhone, lt as Global, dt as Hash, ut as HashInstance, mt as Icons, P as Loading, Ne as LoadingInstance, Dt as Meta, K as MetaManager, Tt as MetaOg, St as MetaOpenGraphAge, bt as MetaOpenGraphAvailability, xt as MetaOpenGraphCondition, Ct as MetaOpenGraphGender, J as MetaOpenGraphTag, yt as MetaOpenGraphType, vt as MetaRobots, Ot as MetaStatic, q as MetaTag, Et as MetaTwitter, wt as MetaTwitterCard, Y as MetaTwitterTag, kt as ResumableTimer, At as ScrollbarWidth, Ut as SearchList, It as SearchListData, Lt as SearchListItem, Vt as SearchListMatcher, Ht as SearchListOptions, O as ServerStorage, Gt as StorageCallback, Xt as TRANSLATE_GLOBAL_PREFIX, Zt as TRANSLATE_TIME_OUT, en as Translate, Qt as TranslateFile, $t as TranslateInstance, Te as UI_GEO_COOKIE_KEY, Ft as addTagHighlightMatch, C as anyToString, Jt as applyTemplate, tn as arrFill, sn as blobToBase64, cn as capitalize, Z as copyObject, ln as copyObjectLite, W as createElement, un as domQuerySelector, dn as domQuerySelectorAll, G as encodeAttribute, pe as encodeLiteAttribute, hn as ensureMaxSize, X as escapeExp, gn as eventStopPropagation, S as executeFunction, qe as executePromise, r as forEach, _n as frame, vn as getArrayHighlightMatch, yn as getAttributes, bn as getClipboardData, nt as getColumn, xn as getCurrentDate, Sn as getCurrentTime, M as getElement, wn as getElementId, fn as getElementImage, ht as getElementItem, ke as getElementOrWindow, me as getElementSafeScript, zt as getExactSearchExp, Rt as getExp, En as getFirst, he as getHydrationData, H as getItemByPath, Dn as getKey, On as getLength, kn as getLengthOfAllArray, An as getMaxLengthAllArray, jn as getMinLengthAllArray, Pn as getMouseClient, Mn as getMouseClientX, Nn as getMouseClientY, Fn as getObjectByKeys, In as getObjectNoUndefined, Ln as getObjectOrNone, Rn as getOnlyText, Bn as getRandomText, o as getRequestString, Bt as getSearchExp, jt as getSeparatingSearchExp, Vn as getStepPercent, Hn as getStepValue, Wn as goScroll, Gn as goScrollSmooth, Kn as goScrollTo, Jn as handleShare, Yn as inArray, Tn as initGetElementId, Xn as initScrollbarOffset, Zn as intersectKey, Yt as isApiSuccess, i as isArray, Qn as isDifferent, ie as isDomData, s as isDomRuntime, $n as isElementVisible, tr as isEnter, l as isFilled, nr as isFloat, x as isFunction, Ae as isInDom, er as isInput, rr as isIntegerBetween, c as isNull, p as isNumber, t as isObject, n as isObjectNotArray, u as isOnLine, b as isSelected, ir as isSelectedByList, qn as isShare, d as isString, ar as isTab, Oe as isWindow, f as random, or as removeCommonPrefix, sr as replaceComponentName, $ as replaceRecursive, lr as replaceTemplate, mn as resizeImageByMax, ur as secondToTime, gt as setElementItem, dr as setValues, ee as sleep, fr as splice, zn as strFill, ae as strSplit, N as toArray, it as toCamelCase, pr as toCamelCaseFirst, R as toDate, mr as toKebabCase, y as toNumber, hr as toNumberByMax, _r as toPercent, vr as toPercentBy100, a as toString, de as transformation, yr as uint8ArrayToBase64, cr as uniqueArray, br as writeClipboardData };