@dxtmisha/functional-basic 1.7.1 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/library.js CHANGED
@@ -109,32 +109,32 @@ function m(e, ...t) {
109
109
  }
110
110
  //#endregion
111
111
  //#region src/functions/isNumber.ts
112
- var te = /^-?[0-9]+(\.[0-9]+)?$/;
113
- function h(e) {
112
+ var h = /^-?[0-9]+(\.[0-9]+)?$/;
113
+ function g(e) {
114
114
  switch (typeof e) {
115
115
  case "number": return Number.isFinite(e);
116
116
  case "bigint": return !0;
117
- case "string": return te.test(e.trim());
117
+ case "string": return h.test(e.trim());
118
118
  default: return !1;
119
119
  }
120
120
  }
121
121
  //#endregion
122
122
  //#region src/functions/toNumber.ts
123
- var g = /[^-+\d., ]+/g, _ = /( [0-9]{3}[ ,.]|[0-9] [0-9])/, ne = / /g, v = /,/g, re = /,[0-9]{3}[,.]/, ie = /[.][0-9]{3}[,.]/, ae = /[.]/g;
124
- function y(e) {
123
+ var _ = /[^-+\d., ]+/g, v = /( [0-9]{3}[ ,.]|[0-9] [0-9])/, te = / /g, y = /,/g, ne = /,[0-9]{3}[,.]/, re = /[.][0-9]{3}[,.]/, ie = /[.]/g;
124
+ function b(e) {
125
125
  if (typeof e == "number") return Number.isFinite(e) && e || 0;
126
126
  if (!e) return 0;
127
- let t = e.replace(g, "");
128
- return t = _.test(t) ? t.replace(ne, "").replace(v, ".") : re.test(t) ? t.replace(v, "") : ie.test(t) ? t.replace(ae, "").replace(v, ".") : t.replace(v, "."), parseFloat(t) || 0;
127
+ let t = e.replace(_, "");
128
+ return t = v.test(t) ? t.replace(te, "").replace(y, ".") : ne.test(t) ? t.replace(y, "") : re.test(t) ? t.replace(ie, "").replace(y, ".") : t.replace(y, "."), parseFloat(t) || 0;
129
129
  }
130
130
  //#endregion
131
131
  //#region src/functions/isSelected.ts
132
- function b(e, t) {
133
- return c(e) ? !1 : Array.isArray(t) ? t.includes(e) : h(e) && h(t) ? y(e) === y(t) : e === t;
132
+ function x(e, t) {
133
+ return c(e) ? !1 : Array.isArray(t) ? t.includes(e) : g(e) && g(t) ? b(e) === b(t) : e === t;
134
134
  }
135
135
  //#endregion
136
136
  //#region src/functions/anyToString.ts
137
- function x(e, n = !0, r = !0) {
137
+ function S(e, n = !0, r = !0) {
138
138
  var a;
139
139
  if (d(e)) return r ? e.trim() : e;
140
140
  if (c(e)) return "";
@@ -148,49 +148,49 @@ function x(e, n = !0, r = !0) {
148
148
  }
149
149
  //#endregion
150
150
  //#region src/functions/isDomData.ts
151
- function oe() {
151
+ function ae() {
152
152
  return s() && location.href.startsWith("data:");
153
153
  }
154
154
  //#endregion
155
155
  //#region src/functions/strSplit.ts
156
- function se(e, t, n) {
157
- let r = x(e);
156
+ function oe(e, t, n) {
157
+ let r = S(e);
158
158
  if (!n || n <= 0) return r.split(t);
159
159
  let i = r.split(t, n), a = r.split(t);
160
160
  return i.length === a.length ? i : (i.pop(), [...i, a.slice(n - 1).join(t)]);
161
161
  }
162
162
  //#endregion
163
163
  //#region \0@oxc-project+runtime@0.138.0/helpers/esm/typeof.js
164
- function S(e) {
164
+ function C(e) {
165
165
  "@babel/helpers - typeof";
166
- return S = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
166
+ return C = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
167
167
  return typeof e;
168
168
  } : function(e) {
169
169
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
170
- }, S(e);
170
+ }, C(e);
171
171
  }
172
172
  //#endregion
173
173
  //#region \0@oxc-project+runtime@0.138.0/helpers/esm/toPrimitive.js
174
- function ce(e, t) {
175
- if (S(e) != "object" || !e) return e;
174
+ function se(e, t) {
175
+ if (C(e) != "object" || !e) return e;
176
176
  var n = e[Symbol.toPrimitive];
177
177
  if (n !== void 0) {
178
178
  var r = n.call(e, t || "default");
179
- if (S(r) != "object") return r;
179
+ if (C(r) != "object") return r;
180
180
  throw TypeError("@@toPrimitive must return a primitive value.");
181
181
  }
182
182
  return (t === "string" ? String : Number)(e);
183
183
  }
184
184
  //#endregion
185
185
  //#region \0@oxc-project+runtime@0.138.0/helpers/esm/toPropertyKey.js
186
- function le(e) {
187
- var t = ce(e, "string");
188
- return S(t) == "symbol" ? t : t + "";
186
+ function ce(e) {
187
+ var t = se(e, "string");
188
+ return C(t) == "symbol" ? t : t + "";
189
189
  }
190
190
  //#endregion
191
191
  //#region \0@oxc-project+runtime@0.138.0/helpers/esm/defineProperty.js
192
- function C(e, t, n) {
193
- return (t = le(t)) in e ? Object.defineProperty(e, t, {
192
+ function w(e, t, n) {
193
+ return (t = ce(t)) in e ? Object.defineProperty(e, t, {
194
194
  value: n,
195
195
  enumerable: !0,
196
196
  configurable: !0,
@@ -199,9 +199,9 @@ function C(e, t, n) {
199
199
  }
200
200
  //#endregion
201
201
  //#region src/classes/ErrorCenterHandler.ts
202
- var ue = class {
202
+ var le = class {
203
203
  constructor(e) {
204
- C(this, "handlers", []), C(this, "callbacks", []), e && this.addList(e);
204
+ w(this, "handlers", []), w(this, "callbacks", []), e && this.addList(e);
205
205
  }
206
206
  has(e) {
207
207
  return !!this.get(e);
@@ -234,9 +234,9 @@ var ue = class {
234
234
  }
235
235
  return this;
236
236
  }
237
- }, de = class {
238
- constructor(e, t = new ue()) {
239
- C(this, "handler", void 0), C(this, "causes", []), this.handler = t, e && this.addList(e);
237
+ }, ue = class {
238
+ constructor(e, t = new le()) {
239
+ w(this, "handler", void 0), w(this, "causes", []), this.handler = t, e && this.addList(e);
240
240
  }
241
241
  has(e, t) {
242
242
  return !!this.get(e, t);
@@ -276,7 +276,7 @@ var ue = class {
276
276
  }
277
277
  return e;
278
278
  }
279
- }, fe = [
279
+ }, de = [
280
280
  {
281
281
  group: "api",
282
282
  code: "cacheClear",
@@ -427,7 +427,7 @@ var ue = class {
427
427
  label: "Translate Error",
428
428
  message: "An error occurred while loading translations."
429
429
  }
430
- ], w = class {
430
+ ], T = class {
431
431
  static getItem() {
432
432
  return this.item;
433
433
  }
@@ -456,10 +456,10 @@ var ue = class {
456
456
  this.getItem().on(e);
457
457
  }
458
458
  };
459
- C(w, "item", new de(fe));
459
+ w(T, "item", new ue(de));
460
460
  //#endregion
461
461
  //#region src/functions/transformation.ts
462
- function T(e, t = !1) {
462
+ function E(e, t = !1) {
463
463
  if (typeof e == "string") {
464
464
  let r = e.trim();
465
465
  switch (r) {
@@ -472,7 +472,7 @@ function T(e, t = !1) {
472
472
  if (/^[{[]/.exec(r)) try {
473
473
  return JSON.parse(r);
474
474
  } catch (e) {
475
- w.on({
475
+ T.on({
476
476
  group: "transformation",
477
477
  code: "error",
478
478
  details: e
@@ -487,32 +487,32 @@ function T(e, t = !1) {
487
487
  }
488
488
  //#endregion
489
489
  //#region src/functions/encodeLiteAttribute.ts
490
- var pe = {
490
+ var fe = {
491
491
  "<": "&lt;",
492
492
  ">": "&gt;",
493
493
  "&": "&amp;"
494
494
  };
495
- function me(e) {
495
+ function pe(e) {
496
496
  return String(e).replace(/[<>&]/g, (e) => {
497
497
  var t;
498
- return (t = pe == null ? void 0 : pe[e]) == null ? e : t;
498
+ return (t = fe == null ? void 0 : fe[e]) == null ? e : t;
499
499
  });
500
500
  }
501
501
  //#endregion
502
502
  //#region src/functions/getElementSafeScript.ts
503
- function he(e, t) {
503
+ function me(e, t) {
504
504
  return `<script id="${e.replace(/"/g, "&quot;")}" type="application/json">${JSON.stringify(t).replace(/<\/(script)>/gi, "<\\/$1>")}<\/script>`;
505
505
  }
506
506
  //#endregion
507
507
  //#region src/functions/getHydrationData.ts
508
- function ge(e, t, n = !0) {
508
+ function he(e, t, n = !0) {
509
509
  if (typeof document < "u") {
510
510
  let t = document.getElementById(e);
511
511
  if (t) try {
512
512
  let e = JSON.parse(t.textContent || "");
513
513
  return n && t.remove(), e;
514
514
  } catch (t) {
515
- w.on({
515
+ T.on({
516
516
  group: "hydration",
517
517
  code: "error",
518
518
  details: {
@@ -526,7 +526,7 @@ function ge(e, t, n = !0) {
526
526
  }
527
527
  //#endregion
528
528
  //#region src/classes/ServerStorage.ts
529
- var _e = "__ui:server-storage__", ve = "__ui:server:storage:id__", E = class {
529
+ var ge = "__ui:server-storage__", _e = "__ui:server:storage:id__", D = class {
530
530
  static init(e) {
531
531
  return this.listener || (this.listener = e), this;
532
532
  }
@@ -556,7 +556,7 @@ var _e = "__ui:server-storage__", ve = "__ui:server:storage:id__", E = class {
556
556
  e in t && delete t[e];
557
557
  }
558
558
  static toString() {
559
- return he(ve, this.getDataForHydration());
559
+ return me(_e, this.getDataForHydration());
560
560
  }
561
561
  static getStorage(e = !0, t) {
562
562
  var n;
@@ -564,17 +564,17 @@ var _e = "__ui:server-storage__", ve = "__ui:server:storage:id__", E = class {
564
564
  let r = (n = this.listener) == null ? void 0 : n.call(this);
565
565
  if (!r) {
566
566
  var i;
567
- return this.hideError || w.on({
567
+ return this.hideError || T.on({
568
568
  group: "storage",
569
569
  code: "context",
570
570
  details: { status: t }
571
571
  }), e && !this.storage && (this.storage = {}), (i = this.storage) == null ? {} : i;
572
572
  }
573
- return _e in r || (r[_e] = {}), r[_e];
573
+ return ge in r || (r[ge] = {}), r[ge];
574
574
  }
575
575
  static getStorageDom() {
576
576
  if (!this.storage) {
577
- let e = ge(ve, {});
577
+ let e = he(_e, {});
578
578
  this.storage = {}, r(e, (e, t) => {
579
579
  this.storage[t] = {
580
580
  value: e,
@@ -591,16 +591,16 @@ var _e = "__ui:server-storage__", ve = "__ui:server:storage:id__", E = class {
591
591
  }), t;
592
592
  }
593
593
  };
594
- C(E, "storage", void 0), C(E, "listener", void 0), C(E, "hideError", void 0);
594
+ w(D, "storage", void 0), w(D, "listener", void 0), w(D, "hideError", void 0);
595
595
  //#endregion
596
596
  //#region src/classes/DataStorage.ts
597
- var ye = "ui-storage", be = () => E.get("__ui:data-storage__", () => ({})), D = class {
597
+ var ve = "ui-storage", ye = () => D.get("__ui:data-storage__", () => ({})), O = class {
598
598
  static setPrefix(e) {
599
- ye = e;
599
+ ve = e;
600
600
  }
601
- constructor(e, t = !1, n = w.getItem()) {
602
- C(this, "name", void 0), C(this, "isSession", void 0), C(this, "errorCenter", void 0), C(this, "value", void 0), C(this, "age", void 0), this.name = e, this.isSession = t, this.errorCenter = n;
603
- let r = `${t ? "session" : "storage"}#${e}`, i = be();
601
+ constructor(e, t = !1, n = T.getItem()) {
602
+ 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;
603
+ let r = `${t ? "session" : "storage"}#${e}`, i = ye();
604
604
  if (r in i) return i[r];
605
605
  this.make(), i[r] = this;
606
606
  }
@@ -612,7 +612,7 @@ var ye = "ui-storage", be = () => E.get("__ui:data-storage__", () => ({})), D =
612
612
  if (this.value = m(e), this.age = Date.now(), this.value === void 0) this.remove();
613
613
  else {
614
614
  var t;
615
- (t = this.getMethod()) == null || t.setItem(this.getIndex(), me(JSON.stringify({
615
+ (t = this.getMethod()) == null || t.setItem(this.getIndex(), pe(JSON.stringify({
616
616
  value: this.value,
617
617
  age: this.age
618
618
  })));
@@ -630,14 +630,14 @@ var ye = "ui-storage", be = () => E.get("__ui:data-storage__", () => ({})), D =
630
630
  return c(e) || this.age && this.age + e * 1e3 >= Date.now();
631
631
  }
632
632
  getMethod() {
633
- if (s() && !oe()) {
633
+ if (s() && !ae()) {
634
634
  var e, t;
635
635
  let n = this.isSession ? (e = window) == null ? void 0 : e.sessionStorage : (t = window) == null ? void 0 : t.localStorage;
636
636
  if (n) return n;
637
637
  }
638
638
  }
639
639
  getIndex() {
640
- return `${ye}__${this.name}`;
640
+ return `${ve}__${this.name}`;
641
641
  }
642
642
  getValue() {
643
643
  var e, t;
@@ -656,9 +656,9 @@ var ye = "ui-storage", be = () => E.get("__ui:data-storage__", () => ({})), D =
656
656
  let e = this.getValue();
657
657
  return e ? (this.value = e.value, this.age = e.age) : (this.value = void 0, this.age = void 0), this;
658
658
  }
659
- }, xe = "__ui:cookie-block__", Se = class {
659
+ }, be = "__ui:cookie-block__", xe = class {
660
660
  constructor() {
661
- C(this, "storage", new D(xe));
661
+ w(this, "storage", new O(be));
662
662
  }
663
663
  get() {
664
664
  var e;
@@ -667,9 +667,9 @@ var ye = "ui-storage", be = () => E.get("__ui:data-storage__", () => ({})), D =
667
667
  set(e) {
668
668
  this.storage.set(e);
669
669
  }
670
- }, Ce = class {
670
+ }, Se = class {
671
671
  static getItem() {
672
- return E.get("__ui:cookie-block__", () => new Se());
672
+ return D.get("__ui:cookie-block__", () => new xe());
673
673
  }
674
674
  static get() {
675
675
  return this.getItem().get();
@@ -677,7 +677,7 @@ var ye = "ui-storage", be = () => E.get("__ui:data-storage__", () => ({})), D =
677
677
  static set(e) {
678
678
  this.getItem().set(e);
679
679
  }
680
- }, we = "__ui:cookie-storage__", O = class {
680
+ }, Ce = "__ui:cookie-storage__", k = class {
681
681
  static init(e, t, n) {
682
682
  this.getListener = e, this.getListenerRaw = t, this.setListener = n;
683
683
  }
@@ -687,19 +687,19 @@ var ye = "ui-storage", be = () => E.get("__ui:data-storage__", () => ({})), D =
687
687
  static get(e, t) {
688
688
  var n, r;
689
689
  let i = (n = (r = this.getListener) == null ? void 0 : r.call(this, e)) == null ? this.initItems()[e] : n;
690
- return i === void 0 && t !== void 0 ? this.set(e, t) : T(i);
690
+ return i === void 0 && t !== void 0 ? this.set(e, t) : E(i);
691
691
  }
692
692
  static set(e, t, n) {
693
693
  let r = m(t);
694
- if (Ce.get()) return r;
695
- let i = x(r, !1);
694
+ if (Se.get()) return r;
695
+ let i = S(r, !1);
696
696
  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;
697
697
  }
698
698
  static remove(e) {
699
699
  this.set(e, "", { age: -1 });
700
700
  }
701
701
  static update() {
702
- s() && (E.remove(we), this.initItems());
702
+ s() && (D.remove(Ce), this.initItems());
703
703
  }
704
704
  static format(e, t, n) {
705
705
  return [
@@ -715,18 +715,18 @@ var ye = "ui-storage", be = () => E.get("__ui:data-storage__", () => ({})), D =
715
715
  ].filter(Boolean).join("; ");
716
716
  }
717
717
  static hasDom() {
718
- return s() && !oe();
718
+ return s() && !ae();
719
719
  }
720
720
  static parse(e) {
721
721
  let t = {};
722
722
  for (let n of e.split(";")) {
723
- let [e, r] = se(n.trim(), "=", 2);
723
+ let [e, r] = oe(n.trim(), "=", 2);
724
724
  e && l(r) && (t[e] = r);
725
725
  }
726
726
  return t;
727
727
  }
728
728
  static initItems() {
729
- return E.get(we, () => {
729
+ return D.get(Ce, () => {
730
730
  var e;
731
731
  if (this.hasDom()) return this.parse(document.cookie);
732
732
  let t = (e = this.getListenerRaw) == null ? void 0 : e.call(this);
@@ -755,22 +755,22 @@ var ye = "ui-storage", be = () => E.get("__ui:data-storage__", () => ({})), D =
755
755
  return e ? "Partitioned" : void 0;
756
756
  }
757
757
  static toArguments(e) {
758
- return e === void 0 ? [] : Array.isArray(e) ? e : Object.entries(e).map(([e, t]) => `${e}=${x(t)}`);
758
+ return e === void 0 ? [] : Array.isArray(e) ? e : Object.entries(e).map(([e, t]) => `${e}=${S(t)}`);
759
759
  }
760
760
  };
761
- C(O, "getListener", void 0), C(O, "getListenerRaw", void 0), C(O, "setListener", void 0);
761
+ w(k, "getListener", void 0), w(k, "getListenerRaw", void 0), w(k, "setListener", void 0);
762
762
  //#endregion
763
763
  //#region src/classes/Cookie.ts
764
- var Te = () => E.get("__ui:cookie-items__", () => ({})), Ee = class e {
764
+ var we = () => D.get("__ui:cookie-items__", () => ({})), Te = class e {
765
765
  static getInstance(t) {
766
766
  var n, r;
767
- return (n = (r = Te()) == null ? void 0 : r[t]) == null ? new e(t) : n;
767
+ return (n = (r = we()) == null ? void 0 : r[t]) == null ? new e(t) : n;
768
768
  }
769
769
  constructor(e) {
770
- C(this, "name", void 0), C(this, "value", void 0), C(this, "options", {}), this.name = e;
771
- let t = Te();
770
+ w(this, "name", void 0), w(this, "value", void 0), w(this, "options", {}), this.name = e;
771
+ let t = we();
772
772
  if (e in t) return t[e];
773
- this.value = O.get(this.name), t[e] = this;
773
+ this.value = k.get(this.name), t[e] = this;
774
774
  }
775
775
  get(e, t) {
776
776
  return this.value === void 0 && e && this.set(e, t), this.value;
@@ -782,11 +782,11 @@ var Te = () => E.get("__ui:cookie-items__", () => ({})), Ee = class e {
782
782
  this.set("");
783
783
  }
784
784
  update() {
785
- O.set(this.name, this.value, this.options);
785
+ k.set(this.name, this.value, this.options);
786
786
  }
787
- }, De = "ui-geo-code", Oe = "__ui:geo-code__", ke = class {
787
+ }, Ee = "ui-geo-code", De = "__ui:geo-code__", Oe = class {
788
788
  constructor() {
789
- C(this, "storage", new D(Oe)), C(this, "location", void 0), C(this, "valueDefault", void 0), C(this, "item", void 0), C(this, "language", void 0), C(this, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), this.location = this.findLocation(), this.item = this.getByCode(this.location), this.language = this.findLanguage(this.location);
789
+ w(this, "storage", new O(De)), w(this, "location", void 0), w(this, "valueDefault", 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);
790
790
  }
791
791
  get() {
792
792
  return this.item;
@@ -824,7 +824,7 @@ var Te = () => E.get("__ui:cookie-items__", () => ({})), Ee = class e {
824
824
  return e && (/([A-Z]{2}-[a-z]{2})|([a-z]{2}-[A-Z]{2})/.test(e) && (n = this.getByCodeFull(e)), !n && /[A-Z]{2}/.test(e) && (n = this.getByCountry(this.toCountry(e))), !n && /[a-z]{2}/.test(e) && (n = this.getByLanguage(this.toLanguage(e)))), this.toFull((t = n) == null ? this.getList()[0] : t, e);
825
825
  }
826
826
  getByCodeFull(e) {
827
- return this.getList().find((t) => b(e, [`${t.language}-${t.country}`, `${t.country}-${t.language}`]));
827
+ return this.getList().find((t) => x(e, [`${t.language}-${t.country}`, `${t.country}-${t.language}`]));
828
828
  }
829
829
  getByCountry(e) {
830
830
  return this.getList().find((t) => {
@@ -866,7 +866,7 @@ var Te = () => E.get("__ui:cookie-items__", () => ({})), Ee = class e {
866
866
  this.valueDefault = e, this.location = this.findLocation(), this.item = this.getByCode(this.location), this.language = this.findLanguage(this.location);
867
867
  }
868
868
  getCookie() {
869
- return Ee.getInstance(De);
869
+ return Te.getInstance(Ee);
870
870
  }
871
871
  findLocation() {
872
872
  return this.getCookie().get() || this.findLocationDom() || m(this.valueDefault) || "en-GB";
@@ -902,9 +902,9 @@ var Te = () => E.get("__ui:cookie-items__", () => ({})), Ee = class e {
902
902
  locationLanguage: n
903
903
  };
904
904
  }
905
- }, k = class {
905
+ }, A = class {
906
906
  static getObject() {
907
- return E.get("__ui:geo-instance__", () => new ke());
907
+ return D.get("__ui:geo-instance__", () => new Oe());
908
908
  }
909
909
  static get() {
910
910
  return this.getObject().get();
@@ -972,14 +972,14 @@ var Te = () => E.get("__ui:cookie-items__", () => ({})), Ee = class e {
972
972
  };
973
973
  //#endregion
974
974
  //#region src/functions/isWindow.ts
975
- function Ae(e) {
975
+ function ke(e) {
976
976
  return s() && e === window;
977
977
  }
978
978
  //#endregion
979
979
  //#region src/functions/getElement.ts
980
- function A(e) {
980
+ function j(e) {
981
981
  if (!s()) return d(e) ? void 0 : e;
982
- if (Ae(e)) return document.body;
982
+ if (ke(e)) return document.body;
983
983
  if (d(e)) {
984
984
  var t;
985
985
  return (t = document.querySelector(e)) == null ? void 0 : t;
@@ -988,30 +988,30 @@ function A(e) {
988
988
  }
989
989
  //#endregion
990
990
  //#region src/functions/getElementOrWindow.ts
991
- function je(e) {
992
- return Ae(e) ? e : A(e);
991
+ function Ae(e) {
992
+ return ke(e) ? e : j(e);
993
993
  }
994
994
  //#endregion
995
995
  //#region src/functions/isInDom.ts
996
- function Me(e) {
996
+ function je(e) {
997
997
  var t;
998
- return (e == null ? void 0 : e.isConnected) || !!((t = A(e)) != null && t.closest("html"));
998
+ return (e == null ? void 0 : e.isConnected) || !!((t = j(e)) != null && t.closest("html"));
999
999
  }
1000
1000
  //#endregion
1001
1001
  //#region src/functions/toArray.ts
1002
- function j(e) {
1002
+ function M(e) {
1003
1003
  return Array.isArray(e) ? e : [e];
1004
1004
  }
1005
1005
  //#endregion
1006
1006
  //#region src/classes/EventItem.ts
1007
- var Ne = class {
1007
+ var Me = class {
1008
1008
  constructor(e, n = ["click"], r, i, a) {
1009
- C(this, "listener", void 0), C(this, "options", void 0), C(this, "detail", void 0), C(this, "element", void 0), C(this, "elementControl", void 0), C(this, "elementControlEdit", void 0), C(this, "type", void 0), C(this, "listenerRecent", (e) => {
1010
- if (Me(this.elementControl)) {
1009
+ 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) => {
1010
+ if (je(this.elementControl)) {
1011
1011
  var n, r;
1012
1012
  (n = this.listener) == null || n.call(this.element, e, this.detail), t(this.options) && (r = this.options) != null && r.once && this.stop();
1013
1013
  } else this.stop();
1014
- }), C(this, "activity", !1), C(this, "activityItems", []), this.listener = r, this.options = i, this.detail = a, this.element = je(e), this.elementControl = A(e), this.type = j(n);
1014
+ }), w(this, "activity", !1), w(this, "activityItems", []), this.listener = r, this.options = i, this.detail = a, this.element = Ae(e), this.elementControl = j(e), this.type = M(n);
1015
1015
  }
1016
1016
  isActive() {
1017
1017
  return this.activity;
@@ -1020,14 +1020,14 @@ var Ne = class {
1020
1020
  return this.element;
1021
1021
  }
1022
1022
  setElement(e) {
1023
- let t = je(e);
1024
- return this.elementControlEdit || (this.elementControl = A(e)), this.element = t, this.reset(), this;
1023
+ let t = Ae(e);
1024
+ return this.elementControlEdit || (this.elementControl = j(e)), this.element = t, this.reset(), this;
1025
1025
  }
1026
1026
  setElementControl(e) {
1027
- return this.elementControl = A(e), this.elementControlEdit = !c(this.elementControl), this.elementControlEdit || (this.elementControl = A(this.element)), this;
1027
+ return this.elementControl = j(e), this.elementControlEdit = !c(this.elementControl), this.elementControlEdit || (this.elementControl = j(this.element)), this;
1028
1028
  }
1029
1029
  setType(e) {
1030
- return this.type = j(e), this.reset(), this;
1030
+ return this.type = M(e), this.reset(), this;
1031
1031
  }
1032
1032
  setListener(e) {
1033
1033
  return this.listener = e, this;
@@ -1096,9 +1096,9 @@ var Ne = class {
1096
1096
  }
1097
1097
  return !1;
1098
1098
  }
1099
- }, Pe = "ui-loading", Fe = class {
1100
- constructor(e = Pe) {
1101
- C(this, "eventName", void 0), C(this, "value", 0), C(this, "event", void 0), C(this, "registrationList", []), this.eventName = e, s() && (this.event = new Ne(window, this.eventName));
1099
+ }, Ne = "ui-loading", Pe = class {
1100
+ constructor(e = Ne) {
1101
+ w(this, "eventName", void 0), w(this, "value", 0), w(this, "event", void 0), w(this, "registrationList", []), this.eventName = e, s() && (this.event = new Me(window, this.eventName));
1102
1102
  }
1103
1103
  is() {
1104
1104
  return this.value > 0;
@@ -1114,7 +1114,7 @@ var Ne = class {
1114
1114
  }
1115
1115
  registrationEvent(e, t) {
1116
1116
  if (s()) {
1117
- let n = new Ne(window, this.eventName, e).setElementControl(t).start();
1117
+ let n = new Me(window, this.eventName, e).setElementControl(t).start();
1118
1118
  this.registrationList.push({
1119
1119
  item: n,
1120
1120
  listener: e,
@@ -1129,7 +1129,7 @@ var Ne = class {
1129
1129
  var e;
1130
1130
  (e = this.event) == null || e.dispatch({ loading: this.is() });
1131
1131
  }
1132
- }, M = class {
1132
+ }, N = class {
1133
1133
  static is() {
1134
1134
  return this.getItem().is();
1135
1135
  }
@@ -1137,7 +1137,7 @@ var Ne = class {
1137
1137
  return this.getItem().get();
1138
1138
  }
1139
1139
  static getItem() {
1140
- return E.get("__ui:loading-instance__", () => new Fe());
1140
+ return D.get("__ui:loading-instance__", () => new Pe());
1141
1141
  }
1142
1142
  static show() {
1143
1143
  this.getItem().show();
@@ -1151,7 +1151,7 @@ var Ne = class {
1151
1151
  static unregistrationEvent(e, t) {
1152
1152
  this.getItem().unregistrationEvent(e, t);
1153
1153
  }
1154
- }, Ie, Le = 1440 * 60, N = class {
1154
+ }, Fe, Ie = 1440 * 60, P = class {
1155
1155
  static init(e, t, n, r) {
1156
1156
  this.getListener = e, this.setListener = t, this.removeListener = n, r && (this.cacheStepAgeClearOld = r, this.stepAgeClearOld = r);
1157
1157
  }
@@ -1161,7 +1161,7 @@ var Ne = class {
1161
1161
  static async get(e) {
1162
1162
  let t = await this.getItemOrListener(e);
1163
1163
  return this.clearOld().catch((e) => {
1164
- w.on({
1164
+ T.on({
1165
1165
  group: "api",
1166
1166
  code: "cacheClear",
1167
1167
  details: e
@@ -1173,7 +1173,7 @@ var Ne = class {
1173
1173
  let t = this.generateKey(e);
1174
1174
  return await this.get(t);
1175
1175
  }
1176
- static async set(e, t, n = Le) {
1176
+ static async set(e, t, n = Ie) {
1177
1177
  let r = {
1178
1178
  value: t,
1179
1179
  age: n,
@@ -1236,12 +1236,12 @@ var Ne = class {
1236
1236
  }
1237
1237
  }
1238
1238
  };
1239
- Ie = N, C(N, "items", void 0), C(N, "getListener", void 0), C(N, "setListener", void 0), C(N, "removeListener", void 0), C(N, "cacheStepAgeClearOld", 16384), C(N, "stepAgeClearOld", Ie.cacheStepAgeClearOld);
1239
+ Fe = P, w(P, "items", void 0), w(P, "getListener", void 0), w(P, "setListener", void 0), w(P, "removeListener", void 0), w(P, "cacheStepAgeClearOld", 16384), w(P, "stepAgeClearOld", Fe.cacheStepAgeClearOld);
1240
1240
  //#endregion
1241
1241
  //#region src/classes/ApiStatus.ts
1242
- var Re = class {
1242
+ var Le = class {
1243
1243
  constructor() {
1244
- C(this, "value", void 0);
1244
+ w(this, "value", void 0);
1245
1245
  }
1246
1246
  get() {
1247
1247
  return this.value;
@@ -1301,15 +1301,15 @@ var Re = class {
1301
1301
  setValue(e, t) {
1302
1302
  this.value || (this.value = {}), this.value[e] = t;
1303
1303
  }
1304
- }, ze = [
1304
+ }, Re = [
1305
1305
  "success",
1306
1306
  "status",
1307
1307
  "code",
1308
1308
  "message",
1309
1309
  "error"
1310
- ], Be = class {
1310
+ ], ze = class {
1311
1311
  constructor(e, t, n, r) {
1312
- C(this, "apiFetch", void 0), C(this, "query", void 0), C(this, "end", void 0), C(this, "error", void 0), C(this, "data", void 0), C(this, "dataMod", void 0), this.apiFetch = e, this.query = t, this.end = n, this.error = r;
1312
+ 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;
1313
1313
  }
1314
1314
  async init() {
1315
1315
  return this.data = await this.readData(), this;
@@ -1339,18 +1339,18 @@ var Re = class {
1339
1339
  }
1340
1340
  initItem(e) {
1341
1341
  let t = { ...e.data };
1342
- return ze.forEach((r) => {
1342
+ return Re.forEach((r) => {
1343
1343
  if (r in e && !(r in t) && (t[r] = e[r], r === "error" && n(e[r]))) {
1344
1344
  var i, a, o, s;
1345
1345
  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;
1346
1346
  }
1347
1347
  }), t;
1348
1348
  }
1349
- }, P = /* @__PURE__ */ function(e) {
1349
+ }, F = /* @__PURE__ */ function(e) {
1350
1350
  return e.delete = "DELETE", e.get = "GET", e.post = "POST", e.put = "PUT", e.patch = "PATCH", e;
1351
- }({}), Ve = class {
1351
+ }({}), Be = class {
1352
1352
  constructor() {
1353
- C(this, "value", void 0);
1353
+ w(this, "value", void 0);
1354
1354
  }
1355
1355
  is() {
1356
1356
  return !!this.value;
@@ -1377,9 +1377,9 @@ var Re = class {
1377
1377
  e.has(t) || e.set(t, n);
1378
1378
  }), this;
1379
1379
  }
1380
- }, He = class {
1380
+ }, Ve = class {
1381
1381
  constructor(e, t, n) {
1382
- C(this, "method", void 0), C(this, "response", void 0), C(this, "error", void 0), C(this, "jsonResponse", void 0), this.method = e, this.response = t, this.error = n;
1382
+ 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;
1383
1383
  }
1384
1384
  getMethod() {
1385
1385
  return this.method;
@@ -1401,9 +1401,9 @@ var Re = class {
1401
1401
  getStatus() {
1402
1402
  return this.response.status;
1403
1403
  }
1404
- }, Ue = class {
1404
+ }, He = class {
1405
1405
  constructor() {
1406
- C(this, "storage", []);
1406
+ w(this, "storage", []);
1407
1407
  }
1408
1408
  async find(e, t) {
1409
1409
  let n = await this.getBody(t), r = this.getCode(n), i = this.getMessage(n) || t.statusText, a = this.findItem(e, t, r);
@@ -1420,7 +1420,7 @@ var Re = class {
1420
1420
  };
1421
1421
  }
1422
1422
  add(e, t, n) {
1423
- return j(e).forEach((e) => {
1423
+ return M(e).forEach((e) => {
1424
1424
  let r = e.url || t, i = e.method || n;
1425
1425
  r && i && this.storage.push({
1426
1426
  ...e,
@@ -1455,19 +1455,19 @@ var Re = class {
1455
1455
  getMessage(e) {
1456
1456
  return this.getDataByKey(e, "message");
1457
1457
  }
1458
- }, We = class {
1458
+ }, Ue = class {
1459
1459
  static getStorage() {
1460
- return E.get("__ui:api-error-storage__", () => new Ue());
1460
+ return D.get("__ui:api-error-storage__", () => new He());
1461
1461
  }
1462
1462
  static add(e, t, n) {
1463
1463
  this.getStorage().add(e, t, n);
1464
1464
  }
1465
1465
  static async getItem(e, t) {
1466
- return new He(e, t, await this.getStorage().find(e, t));
1466
+ return new Ve(e, t, await this.getStorage().find(e, t));
1467
1467
  }
1468
- }, Ge = class {
1468
+ }, We = class {
1469
1469
  constructor() {
1470
- C(this, "headers", {});
1470
+ w(this, "headers", {});
1471
1471
  }
1472
1472
  get(e, t = "application/json;charset=UTF-8") {
1473
1473
  if (e === null) return;
@@ -1481,15 +1481,15 @@ var Re = class {
1481
1481
  set(e) {
1482
1482
  return this.headers = e, this;
1483
1483
  }
1484
- }, Ke = "__ui:api:hydration:id__", qe = class {
1484
+ }, Ge = "__ui:api:hydration:id__", Ke = class {
1485
1485
  constructor() {
1486
- C(this, "list", []);
1486
+ w(this, "list", []);
1487
1487
  }
1488
1488
  initResponse(e) {
1489
1489
  s() && e.add(this.getListByClient());
1490
1490
  }
1491
1491
  toClient(e, t) {
1492
- let { path: n, method: r = P.get, request: i, global: a = r === P.get } = e;
1492
+ let { path: n, method: r = F.get, request: i, global: a = r === F.get } = e;
1493
1493
  !a || !n || s() || this.list.push({
1494
1494
  path: n,
1495
1495
  method: r,
@@ -1498,14 +1498,14 @@ var Re = class {
1498
1498
  });
1499
1499
  }
1500
1500
  toString() {
1501
- return he(Ke, this.list);
1501
+ return me(Ge, this.list);
1502
1502
  }
1503
1503
  getListByClient() {
1504
- return ge(Ke, []);
1504
+ return he(Ge, []);
1505
1505
  }
1506
- }, Je = class {
1506
+ }, qe = class {
1507
1507
  constructor() {
1508
- C(this, "callback", void 0), C(this, "callbackEnd", void 0), C(this, "loading", !1);
1508
+ w(this, "callback", void 0), w(this, "callbackEnd", void 0), w(this, "loading", !1);
1509
1509
  }
1510
1510
  async make(e, t) {
1511
1511
  if (e && this.callback) return this.go(t);
@@ -1531,15 +1531,15 @@ var Re = class {
1531
1531
  };
1532
1532
  //#endregion
1533
1533
  //#region src/functions/executePromise.ts
1534
- async function Ye(e, ...t) {
1534
+ async function I(e, ...t) {
1535
1535
  let n = m(e, ...t);
1536
1536
  return n instanceof Promise ? await n : n;
1537
1537
  }
1538
1538
  //#endregion
1539
1539
  //#region src/classes/ApiResponse.ts
1540
- var Xe = "d-response-loading", Ze = class {
1540
+ var Je = "d-response-loading", Ye = class {
1541
1541
  constructor(e) {
1542
- C(this, "requestDefault", void 0), C(this, "first", []), C(this, "response", []), C(this, "loading", void 0), C(this, "devMode", !1), this.requestDefault = e;
1542
+ w(this, "requestDefault", void 0), w(this, "first", []), w(this, "response", []), w(this, "loading", void 0), w(this, "devMode", !1), this.requestDefault = e;
1543
1543
  }
1544
1544
  get(e = "", t, n, r) {
1545
1545
  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);
@@ -1548,7 +1548,7 @@ var Xe = "d-response-loading", Ze = class {
1548
1548
  return this.response.filter((e) => e.isForGlobal !== !0);
1549
1549
  }
1550
1550
  add(e) {
1551
- return this.response.push(...j(e)), this;
1551
+ return this.response.push(...M(e)), this;
1552
1552
  }
1553
1553
  setDevMode(e) {
1554
1554
  return this.devMode = e, this;
@@ -1582,7 +1582,7 @@ var Xe = "d-response-loading", Ze = class {
1582
1582
  }
1583
1583
  readData(e) {
1584
1584
  if (!s()) return;
1585
- let { path: t = "", method: n = P.get, global: r = n === P.get, devMode: i = !1 } = e;
1585
+ let { path: t = "", method: n = F.get, global: r = n === F.get, devMode: i = !1 } = e;
1586
1586
  if (r || this.isDevMode(i)) {
1587
1587
  let r = this.requestDefault.request(e.request), a = this.get(t, n, r, i);
1588
1588
  if (a) return {
@@ -1593,9 +1593,9 @@ var Xe = "d-response-loading", Ze = class {
1593
1593
  }
1594
1594
  fetch(e, t) {
1595
1595
  return this.startResponseLoading(), new Promise((n) => {
1596
- Ye(p(e.response) ? e.response(t) : e.response).then((t) => {
1597
- e != null && e.lag ? (M.show(), setTimeout(() => {
1598
- this.stopResponseLoading(), n(t), M.hide();
1596
+ I(p(e.response) ? e.response(t) : e.response).then((t) => {
1597
+ e != null && e.lag ? (N.show(), setTimeout(() => {
1598
+ this.stopResponseLoading(), n(t), N.hide();
1599
1599
  }, f(0, 2e3))) : (this.stopResponseLoading(), n(t));
1600
1600
  });
1601
1601
  });
@@ -1604,18 +1604,18 @@ var Xe = "d-response-loading", Ze = class {
1604
1604
  return e.response;
1605
1605
  }
1606
1606
  startResponseLoading() {
1607
- this.loading && clearTimeout(this.loading), s() && document.body.classList.add(Xe);
1607
+ this.loading && clearTimeout(this.loading), s() && document.body.classList.add(Je);
1608
1608
  }
1609
1609
  stopResponseLoading() {
1610
1610
  s() && (this.loading = setTimeout(() => {
1611
- this.loading = void 0, document.body.classList.remove(Xe);
1611
+ this.loading = void 0, document.body.classList.remove(Je);
1612
1612
  }, 2400));
1613
1613
  }
1614
- }, Qe = class {
1614
+ }, Xe = class {
1615
1615
  constructor(e = "/api/", t = {}) {
1616
- C(this, "url", void 0), C(this, "geo", void 0), C(this, "headers", void 0), C(this, "requestDefault", void 0), C(this, "status", void 0), C(this, "response", void 0), C(this, "preparation", void 0), C(this, "loading", void 0), C(this, "errorCenter", void 0), C(this, "hydration", void 0), C(this, "timeout", 16e3), C(this, "origin", void 0), C(this, "wrapper", void 0), this.url = e;
1617
- let { headersClass: n = Ge, requestDefaultClass: r = Ve, statusClass: i = Re, responseClass: a = Ze, preparationClass: o = Je, loadingClass: s = M.getItem(), errorCenterClass: c = w.getItem(), hydrationClass: l = qe, wrapper: u } = t;
1618
- this.geo = k.getObject(), 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.wrapper = u, this.hydration.initResponse(this.response);
1616
+ w(this, "url", void 0), w(this, "geo", 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), w(this, "wrapper", void 0), this.url = e;
1617
+ let { headersClass: n = We, requestDefaultClass: r = Be, statusClass: i = Le, responseClass: a = Ye, preparationClass: o = qe, loadingClass: s = N.getItem(), errorCenterClass: c = T.getItem(), hydrationClass: l = Ke, wrapper: u } = t;
1618
+ this.geo = A.getObject(), 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.wrapper = u, this.hydration.initResponse(this.response);
1619
1619
  }
1620
1620
  isLocalhost() {
1621
1621
  return s() && typeof location < "u" && location.hostname === "localhost";
@@ -1635,12 +1635,12 @@ var Xe = "d-response-loading", Ze = class {
1635
1635
  getUrl(e, t = !0) {
1636
1636
  return `${t ? this.getOrigin() : ""}${e}`.replace("{locale}", this.geo.getLocation()).replace("{country}", this.geo.getCountry()).replace("{language}", this.geo.getLanguage());
1637
1637
  }
1638
- getBody(e = {}, t = P.get) {
1638
+ getBody(e = {}, t = F.get) {
1639
1639
  if (e instanceof FormData) return e;
1640
- if (t !== P.get && l(e)) return d(e) ? e : JSON.stringify(e);
1640
+ if (t !== F.get && l(e)) return d(e) ? e : JSON.stringify(e);
1641
1641
  }
1642
- getBodyForGet(e, t = "", n = P.get) {
1643
- if (n === P.get) {
1642
+ getBodyForGet(e, t = "", n = F.get) {
1643
+ if (n === F.get) {
1644
1644
  let n = t.match(/\?/) ? "&" : "?", r = typeof e == "object" ? o(e) : e;
1645
1645
  if (l(r)) return `${n}${r}`;
1646
1646
  }
@@ -1681,63 +1681,63 @@ var Xe = "d-response-loading", Ze = class {
1681
1681
  get(e) {
1682
1682
  return this.request({
1683
1683
  ...e,
1684
- method: P.get
1684
+ method: F.get
1685
1685
  });
1686
1686
  }
1687
1687
  post(e) {
1688
1688
  return this.request({
1689
1689
  ...e,
1690
- method: P.post
1690
+ method: F.post
1691
1691
  });
1692
1692
  }
1693
1693
  put(e) {
1694
1694
  return this.request({
1695
1695
  ...e,
1696
- method: P.put
1696
+ method: F.put
1697
1697
  });
1698
1698
  }
1699
1699
  patch(e) {
1700
1700
  return this.request({
1701
1701
  ...e,
1702
- method: P.patch
1702
+ method: F.patch
1703
1703
  });
1704
1704
  }
1705
1705
  delete(e) {
1706
1706
  return this.request({
1707
1707
  ...e,
1708
- method: P.delete
1708
+ method: F.delete
1709
1709
  });
1710
1710
  }
1711
1711
  getRetryDelay(e, t) {
1712
1712
  return f(t, t + e * t);
1713
1713
  }
1714
1714
  async fetch(e, t = 0) {
1715
- let { method: n = P.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, p = this.getUrl(i, r), m = await this.response.emulator(e);
1715
+ let { method: n = F.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, p = this.getUrl(i, r), m = await this.response.emulator(e);
1716
1716
  if (m) return m;
1717
- let te = await N.getByFetch(e);
1718
- if (te) return this.hydration.toClient(e, te), te;
1719
- let h = new Re(), g, _;
1717
+ let h = await P.getByFetch(e);
1718
+ if (h) return this.hydration.toClient(e, h), h;
1719
+ let g = new Le(), _, v;
1720
1720
  o || this.loading.show();
1721
1721
  try {
1722
1722
  await this.preparation.make(l, e);
1723
1723
  let { query: r, timeoutId: i } = await this.makeQuery(e, p);
1724
1724
  i && clearTimeout(i);
1725
1725
  let m = await this.preparation.makeEnd(u, r, e);
1726
- if (h.setStatus(r.status, r.statusText), this.status.setStatus(r.status, r.statusText), !a && r.status >= 400) {
1727
- var ne;
1728
- d && (_ = await We.getItem(n, r)), this.makeErrorQuery((ne = _) == null ? r : ne);
1726
+ if (g.setStatus(r.status, r.statusText), this.status.setStatus(r.status, r.statusText), !a && r.status >= 400) {
1727
+ var te;
1728
+ d && (v = await Ue.getItem(n, r)), this.makeErrorQuery((te = v) == null ? r : te);
1729
1729
  }
1730
1730
  if (m != null && m.reset && t < f || t < s) return await ee(this.getRetryDelay(t, c)), o || this.loading.hide(), await this.fetch(e, t + 1);
1731
- g = new Be(e, r, m, _), await g.init();
1731
+ _ = new ze(e, r, m, v), await _.init();
1732
1732
  } catch (e) {
1733
- throw a || this.makeError(e), h.setError(String(e)), this.status.setError(String(e)), o || this.loading.hide(), e;
1733
+ throw a || this.makeError(e), g.setError(String(e)), this.status.setError(String(e)), o || this.loading.hide(), e;
1734
1734
  }
1735
- h.setLastResponse(g.getData()), this.status.setLastResponse(g.getData());
1736
- let v = g.getAndStatus(h);
1737
- return o || this.loading.hide(), this.hydration.toClient(e, v), await N.setByFetch(e, v), v;
1735
+ g.setLastResponse(_.getData()), this.status.setLastResponse(_.getData());
1736
+ let y = _.getAndStatus(g);
1737
+ return o || this.loading.hide(), this.hydration.toClient(e, y), await P.setByFetch(e, y), y;
1738
1738
  }
1739
1739
  async makeQuery(e, t) {
1740
- let n = this.requestDefault.request(e.request), { pathFull: r = void 0, method: i = P.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 = {
1740
+ let n = this.requestDefault.request(e.request), { pathFull: r = void 0, method: i = F.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 = {
1741
1741
  ...s,
1742
1742
  method: i,
1743
1743
  body: this.getBody(n, i)
@@ -1831,12 +1831,12 @@ var Xe = "d-response-loading", Ze = class {
1831
1831
  }, n);
1832
1832
  }
1833
1833
  }
1834
- }, F = class {
1834
+ }, L = class {
1835
1835
  static isLocalhost() {
1836
1836
  return this.getItem().isLocalhost();
1837
1837
  }
1838
1838
  static getItem() {
1839
- return E.get("__ui:api-instance__", () => new Qe());
1839
+ return D.get("__ui:api-instance__", () => new Xe());
1840
1840
  }
1841
1841
  static getStatus() {
1842
1842
  return this.getItem().getStatus();
@@ -1856,10 +1856,10 @@ var Xe = "d-response-loading", Ze = class {
1856
1856
  static getUrl(e, t = !0) {
1857
1857
  return this.getItem().getUrl(e, t);
1858
1858
  }
1859
- static getBody(e = {}, t = P.get) {
1859
+ static getBody(e = {}, t = F.get) {
1860
1860
  return this.getItem().getBody(e, t);
1861
1861
  }
1862
- static getBodyForGet(e, t = "", n = P.get) {
1862
+ static getBodyForGet(e, t = "", n = F.get) {
1863
1863
  return this.getItem().getBodyForGet(e, t, n);
1864
1864
  }
1865
1865
  static setHeaders(e) {
@@ -1907,16 +1907,16 @@ var Xe = "d-response-loading", Ze = class {
1907
1907
  static delete(e) {
1908
1908
  return this.getItem().delete(e);
1909
1909
  }
1910
- }, $e = class {
1911
- constructor(e, t, n, r = w.getItem()) {
1912
- if (C(this, "callback", void 0), C(this, "callbackError", void 0), C(this, "channel", void 0), C(this, "update", (e) => {
1910
+ }, Ze = class {
1911
+ constructor(e, t, n, r = T.getItem()) {
1912
+ if (w(this, "callback", void 0), w(this, "callbackError", void 0), w(this, "channel", void 0), w(this, "update", (e) => {
1913
1913
  var t;
1914
1914
  return (t = this.callback) == null || t.call(this, e), this;
1915
- }), C(this, "updateError", (e) => {
1915
+ }), w(this, "updateError", (e) => {
1916
1916
  var t;
1917
1917
  return (t = this.callbackError) == null || t.call(this, e), this;
1918
1918
  }), this.callback = t, this.callbackError = n, s()) try {
1919
- this.channel = new BroadcastChannel(`${et()}__${e}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
1919
+ this.channel = new BroadcastChannel(`${Qe()}__${e}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
1920
1920
  } catch (e) {
1921
1921
  r.on({
1922
1922
  group: "broadcast",
@@ -1942,9 +1942,9 @@ var Xe = "d-response-loading", Ze = class {
1942
1942
  var e;
1943
1943
  return (e = this.channel) == null || e.close(), this.channel = void 0, this;
1944
1944
  }
1945
- }, et = () => new D("__ui:broadcast-name__").get(() => `name_${f(1e6, 9999999)}`), tt = class {
1945
+ }, Qe = () => new O("__ui:broadcast-name__").get(() => `name_${f(1e6, 9999999)}`), $e = class {
1946
1946
  constructor(e) {
1947
- C(this, "callback", void 0), C(this, "cache", void 0), C(this, "cacheOld", void 0), C(this, "comparisons", []), this.callback = e;
1947
+ w(this, "callback", void 0), w(this, "cache", void 0), w(this, "cacheOld", void 0), w(this, "comparisons", []), this.callback = e;
1948
1948
  }
1949
1949
  getCache(e) {
1950
1950
  return this.isUpdate(e) && (this.cacheOld = this.cache, this.setCache()), this.cache;
@@ -1964,9 +1964,9 @@ var Xe = "d-response-loading", Ze = class {
1964
1964
  isUpdate(e) {
1965
1965
  return this.cache === void 0 || this.comparisons.length !== e.length || this.comparisons.findIndex((t, n) => t !== e[n]) >= 0 ? (this.comparisons = [...e], !0) : !1;
1966
1966
  }
1967
- }, nt = class {
1967
+ }, et = class {
1968
1968
  constructor() {
1969
- C(this, "cache", {});
1969
+ w(this, "cache", {});
1970
1970
  }
1971
1971
  get(e, t, n) {
1972
1972
  return this.getCacheItem(e, t).getCache(n == null ? [] : n);
@@ -1975,11 +1975,11 @@ var Xe = "d-response-loading", Ze = class {
1975
1975
  return await this.getCacheItem(e, t).getCacheAsync(n == null ? [] : n);
1976
1976
  }
1977
1977
  getCacheItem(e, t) {
1978
- return e in this.cache || (this.cache[e] = new tt(t)), this.cache[e];
1978
+ return e in this.cache || (this.cache[e] = new $e(t)), this.cache[e];
1979
1979
  }
1980
- }, rt = class {
1980
+ }, tt = class {
1981
1981
  static getItem() {
1982
- return E.get("__ui:cache-static__", () => new nt());
1982
+ return D.get("__ui:cache-static__", () => new et());
1983
1983
  }
1984
1984
  static get(e, t, n) {
1985
1985
  return this.getItem().get(e, t, n);
@@ -1990,41 +1990,41 @@ var Xe = "d-response-loading", Ze = class {
1990
1990
  };
1991
1991
  //#endregion
1992
1992
  //#region src/functions/toDate.ts
1993
- function I(e) {
1993
+ function R(e) {
1994
1994
  var t, n, r, i, a, o, s, l;
1995
1995
  if (e instanceof Date) return e;
1996
1996
  if (c(e)) return /* @__PURE__ */ new Date();
1997
1997
  if (typeof e == "number") return new Date(e);
1998
- let u = e, d = k.getTimezoneFormat().trim();
1998
+ let u = e, d = A.getTimezoneFormat().trim();
1999
1999
  e.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (e, t, n) => (u = t, d = n.trim(), e));
2000
2000
  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;
2001
2001
  return /* @__PURE__ */ new Date(`${f.trim()}${d}`);
2002
2002
  }
2003
2003
  //#endregion
2004
2004
  //#region src/functions/getColumn.ts
2005
- function it(e, t) {
2005
+ function nt(e, t) {
2006
2006
  return r(e, (e) => e == null ? void 0 : e[t], !0);
2007
2007
  }
2008
2008
  //#endregion
2009
2009
  //#region src/classes/GeoIntl.ts
2010
- var L = class e {
2011
- static isItem(e = k.getLocation()) {
2012
- return this.getLocation(e) in z;
2010
+ var z = class e {
2011
+ static isItem(e = A.getLocation()) {
2012
+ return this.getLocation(e) in V;
2013
2013
  }
2014
- static getLocation(e = k.getLocation()) {
2015
- if (e in R) return R[e];
2016
- let t = k.find(e);
2017
- return R[e] = t.standard, t.standard;
2014
+ static getLocation(e = A.getLocation()) {
2015
+ if (e in B) return B[e];
2016
+ let t = A.find(e);
2017
+ return B[e] = t.standard, t.standard;
2018
2018
  }
2019
- static getInstance(t = k.getLocation()) {
2019
+ static getInstance(t = A.getLocation()) {
2020
2020
  let n = this.getLocation(t);
2021
- return n in z ? z[n] : new e(t);
2021
+ return n in V ? V[n] : new e(t);
2022
2022
  }
2023
- constructor(e = k.getLocation(), t = w.getItem()) {
2024
- C(this, "errorCenter", void 0), C(this, "geo", void 0), this.errorCenter = t, this.geo = k.find(e);
2023
+ constructor(e = A.getLocation(), t = T.getItem()) {
2024
+ w(this, "errorCenter", void 0), w(this, "geo", void 0), this.errorCenter = t, this.geo = A.find(e);
2025
2025
  let n = this.getLocation();
2026
- if (n in z) return z[n];
2027
- R[e] = n, z[n] = this;
2026
+ if (n in V) return V[n];
2027
+ B[e] = n, V[n] = this;
2028
2028
  }
2029
2029
  getLocation() {
2030
2030
  return this.geo.standard;
@@ -2055,7 +2055,7 @@ var L = class e {
2055
2055
  type: "language",
2056
2056
  style: t
2057
2057
  };
2058
- return this.display(k.getByCode(e).language, n);
2058
+ return this.display(A.getByCode(e).language, n);
2059
2059
  }
2060
2060
  countryName(e, t) {
2061
2061
  let n = {
@@ -2085,7 +2085,7 @@ var L = class e {
2085
2085
  }
2086
2086
  number(e, t) {
2087
2087
  var n, r;
2088
- return ((n = this.numberObject(t)) == null || (r = n.format) == null ? void 0 : r.call(n, y(e))) || e.toString();
2088
+ return ((n = this.numberObject(t)) == null || (r = n.format) == null ? void 0 : r.call(n, b(e))) || e.toString();
2089
2089
  }
2090
2090
  decimal() {
2091
2091
  var e, t, n;
@@ -2099,7 +2099,7 @@ var L = class e {
2099
2099
  }, i = e.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...e) => (r.currency = String(e[2]).toUpperCase(), String(e[1])));
2100
2100
  if (n) {
2101
2101
  let t = this.numberObject(r);
2102
- return t ? it(t.formatToParts(y(e)).filter((e) => ["literal", "currency"].indexOf(e.type) === -1), "value").join("") : e.toString();
2102
+ return t ? nt(t.formatToParts(b(e)).filter((e) => ["literal", "currency"].indexOf(e.type) === -1), "value").join("") : e.toString();
2103
2103
  } else if ("currency" in r) return this.number(typeof e == "number" ? e : i, r);
2104
2104
  else return this.number(typeof e == "number" ? e : i, {
2105
2105
  ...r,
@@ -2122,7 +2122,7 @@ var L = class e {
2122
2122
  return this.number(r, n);
2123
2123
  }
2124
2124
  sizeFile(e, t = "byte") {
2125
- let n = y(e);
2125
+ let n = b(e);
2126
2126
  if (n > 1024 && d(t)) switch (t) {
2127
2127
  case "byte": return this.sizeFile(n / 1024, "kilobyte");
2128
2128
  case "kilobyte": return this.sizeFile(n / 1024, "megabyte");
@@ -2139,11 +2139,11 @@ var L = class e {
2139
2139
  });
2140
2140
  }
2141
2141
  percentBy100(e, t) {
2142
- return this.percent(y(e) / 100, t);
2142
+ return this.percent(b(e) / 100, t);
2143
2143
  }
2144
2144
  plural(e, t, n, r) {
2145
2145
  var i;
2146
- let a = y(e), o = t.split("|");
2146
+ let a = b(e), o = t.split("|");
2147
2147
  if (o.length > 1) try {
2148
2148
  if (typeof Intl < "u") {
2149
2149
  var s;
@@ -2180,18 +2180,18 @@ var L = class e {
2180
2180
  return `${this.number(a, r)} ${(i = o == null ? void 0 : o[0]) == null ? "" : i}`.trim();
2181
2181
  }
2182
2182
  date(e, t, n, r) {
2183
- let i = I(e), a = typeof n == "string", o = this.dateOptions(t, a ? n : "short");
2183
+ let i = R(e), a = typeof n == "string", o = this.dateOptions(t, a ? n : "short");
2184
2184
  return r && (o.hour12 = !1), a || Object.assign(o, n), i.toLocaleString(this.getLocation(), o);
2185
2185
  }
2186
2186
  relative(e, t, n) {
2187
- let r = I(e), i = n || /* @__PURE__ */ new Date(), a = {
2187
+ let r = R(e), i = n || /* @__PURE__ */ new Date(), a = {
2188
2188
  numeric: "auto",
2189
2189
  ...typeof t == "string" ? { style: t } : t || {}
2190
2190
  }, o = "second", s = (r.getTime() - i.getTime()) / 1e3;
2191
2191
  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);
2192
2192
  }
2193
2193
  relativeLimit(e, t, n, r, i, a, o) {
2194
- let s = I(e), c = n || /* @__PURE__ */ new Date(), l = new Date(c), u = new Date(c);
2194
+ let s = R(e), c = n || /* @__PURE__ */ new Date(), l = new Date(c), u = new Date(c);
2195
2195
  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);
2196
2196
  }
2197
2197
  relativeByValue(e, t, n) {
@@ -2200,7 +2200,7 @@ var L = class e {
2200
2200
  ...typeof n == "string" ? { style: n } : n || {}
2201
2201
  };
2202
2202
  try {
2203
- if (this.hasIntl() && Intl.RelativeTimeFormat !== void 0) return new Intl.RelativeTimeFormat(this.getLocation(), r).format(Math.round(y(e)), t);
2203
+ if (this.hasIntl() && Intl.RelativeTimeFormat !== void 0) return new Intl.RelativeTimeFormat(this.getLocation(), r).format(Math.round(b(e)), t);
2204
2204
  } catch (e) {
2205
2205
  this.errorCenter.on({
2206
2206
  group: "intl",
@@ -2212,7 +2212,7 @@ var L = class e {
2212
2212
  }
2213
2213
  month(e, t) {
2214
2214
  try {
2215
- if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { month: t || "long" }).format(I(e));
2215
+ if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { month: t || "long" }).format(R(e));
2216
2216
  } catch (e) {
2217
2217
  this.errorCenter.on({
2218
2218
  group: "intl",
@@ -2246,7 +2246,7 @@ var L = class e {
2246
2246
  }
2247
2247
  weekday(e, t) {
2248
2248
  try {
2249
- if (this.hasIntlDateTimeFormat()) return new Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }).format(I(e));
2249
+ if (this.hasIntlDateTimeFormat()) return new Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }).format(R(e));
2250
2250
  } catch (e) {
2251
2251
  this.errorCenter.on({
2252
2252
  group: "intl",
@@ -2348,15 +2348,15 @@ var L = class e {
2348
2348
  "second"
2349
2349
  ].indexOf(e) !== -1 && (n.second = "2-digit")), n;
2350
2350
  }
2351
- }, R = {}, z = {}, at = class e {
2352
- constructor(e, t = "date", n = k.getLocation()) {
2353
- C(this, "type", void 0), C(this, "code", void 0), C(this, "date", void 0), C(this, "hour24", !1), C(this, "watch", void 0), this.type = t, this.code = n, this.date = I(e), isNaN(this.date.getTime()) && w.on({
2351
+ }, B = {}, V = {}, rt = class e {
2352
+ constructor(e, t = "date", n = A.getLocation()) {
2353
+ 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 = R(e), isNaN(this.date.getTime()) && T.on({
2354
2354
  group: "intl",
2355
2355
  code: "invalid"
2356
2356
  });
2357
2357
  }
2358
2358
  getIntl() {
2359
- return L.getInstance(this.code);
2359
+ return z.getInstance(this.code);
2360
2360
  }
2361
2361
  getDate() {
2362
2362
  return this.date;
@@ -2459,7 +2459,7 @@ var L = class e {
2459
2459
  ].indexOf(this.type) !== -1 && (i = n.locale("time"))), `${r.join("-")}${i ? `T${i}${t ? n.getTimeZone() : ""}` : ""}`;
2460
2460
  }
2461
2461
  setDate(e) {
2462
- return this.date = I(e), this.update(), this;
2462
+ return this.date = R(e), this.update(), this;
2463
2463
  }
2464
2464
  setType(e) {
2465
2465
  return this.type = e, this.update(), this;
@@ -2611,24 +2611,24 @@ var L = class e {
2611
2611
  };
2612
2612
  //#endregion
2613
2613
  //#region src/functions/getItemByPath.ts
2614
- function B(e, n) {
2614
+ function H(e, n) {
2615
2615
  var r;
2616
2616
  if (!l(n, !0)) return;
2617
- let i = se(n, ".", 2), a = i[0];
2618
- return a && e != null && e[a] && t(e[a]) && i != null && i[1] ? B(e[a], i[1]) : (r = e == null ? void 0 : e[a]) == null ? void 0 : r;
2617
+ let i = oe(n, ".", 2), a = i[0];
2618
+ 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;
2619
2619
  }
2620
2620
  //#endregion
2621
2621
  //#region src/functions/toCamelCase.ts
2622
- function ot(e) {
2622
+ function it(e) {
2623
2623
  return e.toString().trim().replace(/[^\w-. ]+/g, "").replace(/[ .]+/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (e) => `${e.toLowerCase()}`).replace(/-+([a-zA-Z0-9])/g, (...e) => `${String(e[1]).toUpperCase()}`).replace(/^([A-Z])/, (e) => `${e.toLowerCase()}`);
2624
2624
  }
2625
2625
  //#endregion
2626
2626
  //#region src/types/formattersTypes.ts
2627
- var V = /* @__PURE__ */ function(e) {
2627
+ var U = /* @__PURE__ */ function(e) {
2628
2628
  return e.currency = "currency", e.date = "date", e.name = "name", e.number = "number", e.plural = "plural", e.unit = "unit", e;
2629
- }({}), st = class {
2629
+ }({}), at = class {
2630
2630
  constructor(e, t) {
2631
- C(this, "options", void 0), C(this, "list", void 0), this.options = e, this.list = t;
2631
+ w(this, "options", void 0), w(this, "list", void 0), this.options = e, this.list = t;
2632
2632
  }
2633
2633
  is() {
2634
2634
  return !!this.list;
@@ -2640,7 +2640,7 @@ var V = /* @__PURE__ */ function(e) {
2640
2640
  return this.list ? this.isArray() ? this.list.length : 1 : 0;
2641
2641
  }
2642
2642
  getList() {
2643
- return this.list ? j(this.list) : [];
2643
+ return this.list ? M(this.list) : [];
2644
2644
  }
2645
2645
  getOptions() {
2646
2646
  return this.options;
@@ -2658,50 +2658,50 @@ var V = /* @__PURE__ */ function(e) {
2658
2658
  getFormatData(e) {
2659
2659
  let t = {};
2660
2660
  return r(this.options, (n, r) => {
2661
- let i = `${ot(r)}Format`, a = B(e, r);
2661
+ let i = `${it(r)}Format`, a = H(e, r);
2662
2662
  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);
2663
2663
  }), t;
2664
2664
  }
2665
2665
  transformation(e, t, n, r) {
2666
- if (l(e) || n === V.name) switch (n) {
2667
- case V.currency: return this.formatCurrency(e, t, r);
2668
- case V.date: return this.formatDate(e, r);
2669
- case V.name: return this.formatName(t, r);
2670
- case V.number: return this.formatNumber(e, r);
2671
- case V.plural: return this.formatPlural(e, r);
2672
- case V.unit: return this.formatUnit(e, r);
2666
+ if (l(e) || n === U.name) switch (n) {
2667
+ case U.currency: return this.formatCurrency(e, t, r);
2668
+ case U.date: return this.formatDate(e, r);
2669
+ case U.name: return this.formatName(t, r);
2670
+ case U.number: return this.formatNumber(e, r);
2671
+ case U.plural: return this.formatPlural(e, r);
2672
+ case U.unit: return this.formatUnit(e, r);
2673
2673
  default: return String(e);
2674
2674
  }
2675
2675
  return "";
2676
2676
  }
2677
2677
  formatCurrency(e, t, n) {
2678
2678
  var r;
2679
- let i = n != null && n.currencyPropName ? B(t, n.currencyPropName) : t == null ? void 0 : t.currency;
2680
- return L.getInstance().currency(e, (r = n == null ? void 0 : n.options) == null ? i : r, n == null ? void 0 : n.numberOnly);
2679
+ let i = n != null && n.currencyPropName ? H(t, n.currencyPropName) : t == null ? void 0 : t.currency;
2680
+ return z.getInstance().currency(e, (r = n == null ? void 0 : n.options) == null ? i : r, n == null ? void 0 : n.numberOnly);
2681
2681
  }
2682
2682
  formatDate(e, t) {
2683
- return L.getInstance().date(e, t == null ? void 0 : t.type, t == null ? void 0 : t.options, t == null ? void 0 : t.hour24);
2683
+ return z.getInstance().date(e, t == null ? void 0 : t.type, t == null ? void 0 : t.options, t == null ? void 0 : t.hour24);
2684
2684
  }
2685
2685
  formatName(e, t) {
2686
2686
  var n, r, i;
2687
- let a = B(e, (n = t == null ? void 0 : t.lastPropName) == null ? "lastName" : n), o = B(e, (r = t == null ? void 0 : t.firstPropName) == null ? "firstName" : r), s = B(e, (i = t == null ? void 0 : t.surname) == null ? "surname" : i);
2688
- return a && o ? L.getInstance().fullName(a, o, s, t == null ? void 0 : t.short) : "";
2687
+ 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);
2688
+ return a && o ? z.getInstance().fullName(a, o, s, t == null ? void 0 : t.short) : "";
2689
2689
  }
2690
2690
  formatNumber(e, t) {
2691
- return L.getInstance().number(e, t == null ? void 0 : t.options);
2691
+ return z.getInstance().number(e, t == null ? void 0 : t.options);
2692
2692
  }
2693
2693
  formatPlural(e, t) {
2694
- return t && t.words ? L.getInstance().plural(e, t == null ? void 0 : t.words, t == null ? void 0 : t.options, t == null ? void 0 : t.optionsNumber) : e;
2694
+ 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;
2695
2695
  }
2696
2696
  formatUnit(e, t) {
2697
- return t && t.unit ? L.getInstance().unit(e, t.unit) : e;
2697
+ return t && t.unit ? z.getInstance().unit(e, t.unit) : e;
2698
2698
  }
2699
- }, ct = "f", lt = class e {
2700
- constructor(e = k.getLocation()) {
2701
- C(this, "code", void 0), this.code = e;
2699
+ }, ot = "f", st = class e {
2700
+ constructor(e = A.getLocation()) {
2701
+ w(this, "code", void 0), this.code = e;
2702
2702
  }
2703
2703
  get(t = this.getCode()) {
2704
- let n = k.find(t);
2704
+ let n = A.find(t);
2705
2705
  if (n) {
2706
2706
  var r;
2707
2707
  let t = this.getCountry(n);
@@ -2727,7 +2727,7 @@ var V = /* @__PURE__ */ function(e) {
2727
2727
  };
2728
2728
  }
2729
2729
  getCode() {
2730
- return this.code || k.getLocation();
2730
+ return this.code || A.getLocation();
2731
2731
  }
2732
2732
  getFlag(e = this.getCode()) {
2733
2733
  var t;
@@ -2735,14 +2735,14 @@ var V = /* @__PURE__ */ function(e) {
2735
2735
  }
2736
2736
  getList(e, t = !0) {
2737
2737
  let n = r(this.getCodes(e), (e) => this.get(e));
2738
- return t ? new L().sort(n, (e, t) => [e.label, t.label]) : n;
2738
+ return t ? new z().sort(n, (e, t) => [e.label, t.label]) : n;
2739
2739
  }
2740
2740
  getListLanguage(e, t = !0) {
2741
2741
  let n = [], i = /* @__PURE__ */ new Set();
2742
2742
  return r(this.getCodes(e), (e) => {
2743
2743
  let t = this.getLanguage(e);
2744
2744
  t && !i.has(t.value) && (n.push(t), i.add(t.value));
2745
- }), t ? new L().sort(n, (e, t) => [e.label, t.label]) : n;
2745
+ }), t ? new z().sort(n, (e, t) => [e.label, t.label]) : n;
2746
2746
  }
2747
2747
  getNational(t, n = !0) {
2748
2748
  let i = r(this.getList(t, !1), (t) => {
@@ -2754,7 +2754,7 @@ var V = /* @__PURE__ */ function(e) {
2754
2754
  nationalCountry: n == null ? void 0 : n.country
2755
2755
  };
2756
2756
  });
2757
- return n ? new L().sort(i, (e, t) => [e.label, t.label]) : i;
2757
+ return n ? new z().sort(i, (e, t) => [e.label, t.label]) : i;
2758
2758
  }
2759
2759
  getNationalLanguage(t, n = !0) {
2760
2760
  let i = r(this.getListLanguage(t, !1), (t) => {
@@ -2766,13 +2766,13 @@ var V = /* @__PURE__ */ function(e) {
2766
2766
  nationalCountry: n == null ? void 0 : n.country
2767
2767
  };
2768
2768
  });
2769
- return n ? new L().sort(i, (e, t) => [e.label, t.label]) : i;
2769
+ return n ? new z().sort(i, (e, t) => [e.label, t.label]) : i;
2770
2770
  }
2771
2771
  setCode(e) {
2772
2772
  return this.code = e, this;
2773
2773
  }
2774
2774
  getLocation() {
2775
- return new L(this.code);
2775
+ return new z(this.code);
2776
2776
  }
2777
2777
  getCodes(t) {
2778
2778
  return t == null ? Object.keys(e.flags) : t;
@@ -2784,7 +2784,7 @@ var V = /* @__PURE__ */ function(e) {
2784
2784
  return this.getLocation().countryName(e.country);
2785
2785
  }
2786
2786
  };
2787
- C(lt, "flags", {
2787
+ w(st, "flags", {
2788
2788
  RU: "f-ru",
2789
2789
  FR: "f-fr",
2790
2790
  GB: "f-gb",
@@ -3028,7 +3028,7 @@ C(lt, "flags", {
3028
3028
  });
3029
3029
  //#endregion
3030
3030
  //#region src/classes/GeoPhone.ts
3031
- var ut = class {
3031
+ var ct = class {
3032
3032
  static get(e) {
3033
3033
  return this.getList().find((t) => e === t.value);
3034
3034
  }
@@ -3084,11 +3084,11 @@ var ut = class {
3084
3084
  return (t = (n = e.match(/\*/g)) == null ? void 0 : n.length) == null ? 0 : t;
3085
3085
  }
3086
3086
  static makeList() {
3087
- let e = r(k.getList(), (e) => {
3087
+ let e = r(A.getList(), (e) => {
3088
3088
  if (e != null && e.phoneMask) return {
3089
3089
  phone: (e == null ? void 0 : e.phoneCode) && Number(e.phoneCode.replace(/[^0-9]+/g, "")) || void 0,
3090
3090
  within: (e == null ? void 0 : e.phoneWithin) || 0,
3091
- mask: j(e.phoneMask),
3091
+ mask: M(e.phoneMask),
3092
3092
  value: e.country
3093
3093
  };
3094
3094
  });
@@ -3127,10 +3127,10 @@ var ut = class {
3127
3127
  return e.replace(/\*/, this.getWithinSymbol(t));
3128
3128
  }
3129
3129
  };
3130
- C(ut, "list", void 0), C(ut, "map", void 0);
3130
+ w(ct, "list", void 0), w(ct, "map", void 0);
3131
3131
  //#endregion
3132
3132
  //#region src/classes/GeoUnit.ts
3133
- var H = {}, dt = {
3133
+ var W = {}, lt = {
3134
3134
  "millimeter->inch": .03937007874,
3135
3135
  "centimeter->inch": .3937007874,
3136
3136
  "meter->foot": 3.280839895,
@@ -3143,16 +3143,16 @@ var H = {}, dt = {
3143
3143
  "milliliter->fluid-ounce": .0338140227,
3144
3144
  "liter->gallon": .2641720524,
3145
3145
  "kilometer-per-hour->mile-per-hour": .621371192
3146
- }, ft = class e {
3147
- static getInstance(t = k.getLocation()) {
3148
- let n = k.find(t).standard;
3149
- return n in H ? H[n] : new e(t);
3146
+ }, ut = class e {
3147
+ static getInstance(t = A.getLocation()) {
3148
+ let n = A.find(t).standard;
3149
+ return n in W ? W[n] : new e(t);
3150
3150
  }
3151
- constructor(e = k.getLocation()) {
3152
- C(this, "geo", void 0), this.geo = k.find(e);
3151
+ constructor(e = A.getLocation()) {
3152
+ w(this, "geo", void 0), this.geo = A.find(e);
3153
3153
  let t = this.getLocation();
3154
- if (t in H) return H[t];
3155
- H[t] = this;
3154
+ if (t in W) return W[t];
3155
+ W[t] = this;
3156
3156
  }
3157
3157
  getLocation() {
3158
3158
  return this.geo.standard;
@@ -3222,8 +3222,8 @@ var H = {}, dt = {
3222
3222
  return ((t = this.geo.unit) == null ? void 0 : t[e]) || e;
3223
3223
  }
3224
3224
  formatUnit(e, t, n) {
3225
- let r = y(e), i = this.getTargetUnit(t), a = this.convert(r, t, i);
3226
- return L.getInstance(this.getLocation()).unit(a, {
3225
+ let r = b(e), i = this.getTargetUnit(t), a = this.convert(r, t, i);
3226
+ return z.getInstance(this.getLocation()).unit(a, {
3227
3227
  unit: i,
3228
3228
  ...n
3229
3229
  });
@@ -3232,16 +3232,16 @@ var H = {}, dt = {
3232
3232
  if (t !== n) {
3233
3233
  if (this.isCelsiusToFahrenheit(t, n)) return this.celsiusToFahrenheit(e);
3234
3234
  let r = `${t}->${n}`;
3235
- if (r in dt) return e * dt[r];
3235
+ if (r in lt) return e * lt[r];
3236
3236
  }
3237
3237
  return e;
3238
3238
  }
3239
3239
  celsiusToFahrenheit(e) {
3240
3240
  return e * 1.8 + 32;
3241
3241
  }
3242
- }, pt = class {
3242
+ }, dt = class {
3243
3243
  static getItem() {
3244
- return E.get("__ui:global-instance__", () => ({}));
3244
+ return D.get("__ui:global-instance__", () => ({}));
3245
3245
  }
3246
3246
  static get(e) {
3247
3247
  var t;
@@ -3251,9 +3251,9 @@ var H = {}, dt = {
3251
3251
  let t = this.getItem();
3252
3252
  Object.keys(t).length > 0 || Object.assign(t, e);
3253
3253
  }
3254
- }, mt = class {
3254
+ }, ft = class {
3255
3255
  constructor() {
3256
- C(this, "data", void 0), C(this, "watch", {}), C(this, "block", !1), C(this, "time", void 0);
3256
+ w(this, "data", void 0), w(this, "watch", {}), w(this, "block", !1), w(this, "time", void 0);
3257
3257
  }
3258
3258
  get(e, t) {
3259
3259
  let n = this.getData();
@@ -3292,7 +3292,7 @@ var H = {}, dt = {
3292
3292
  ((r = this.data) == null ? void 0 : r[n]) !== (e == null ? void 0 : e[n]) && t.forEach((t) => t(e[n]));
3293
3293
  }), this;
3294
3294
  }
3295
- }, ht = class extends mt {
3295
+ }, pt = class extends ft {
3296
3296
  init() {
3297
3297
  return this.initData(), s() && addEventListener("hashchange", () => this.reload()), this;
3298
3298
  }
@@ -3300,7 +3300,7 @@ var H = {}, dt = {
3300
3300
  let e = {};
3301
3301
  if (s()) {
3302
3302
  let t = location.hash.matchAll(/([\w-]+)[:=]([^;]+)/gi);
3303
- for (let n of t) e[n[1]] = T(n[2]);
3303
+ for (let n of t) e[n[1]] = E(n[2]);
3304
3304
  }
3305
3305
  return e;
3306
3306
  }
@@ -3318,9 +3318,9 @@ var H = {}, dt = {
3318
3318
  }
3319
3319
  return this;
3320
3320
  }
3321
- }, gt = class {
3321
+ }, mt = class {
3322
3322
  static getItem() {
3323
- return E.get("__ui:hash-instance__", () => new ht());
3323
+ return D.get("__ui:hash-instance__", () => new pt());
3324
3324
  }
3325
3325
  static get(e, t) {
3326
3326
  return this.getItem().get(e, t);
@@ -3337,29 +3337,29 @@ var H = {}, dt = {
3337
3337
  static reload() {
3338
3338
  this.getItem().reload();
3339
3339
  }
3340
- }, _t = 320, vt = "--LOAD--", yt = class {
3340
+ }, ht = 320, gt = "--LOAD--", _t = class {
3341
3341
  static is(e) {
3342
3342
  return e in this.icons || this.getName(e) in this.icons;
3343
3343
  }
3344
3344
  static async get(e, t = "", n = 1e3 * 60 * 3) {
3345
3345
  let r = this.getRaw(e, t);
3346
- return typeof r == "string" ? r === vt && n > 0 ? (await this.wait(), this.get(e, t, n - _t)) : r : p(r) ? await r() : await r;
3346
+ return typeof r == "string" ? r === gt && n > 0 ? (await this.wait(), this.get(e, t, n - ht)) : r : p(r) ? await r() : await r;
3347
3347
  }
3348
3348
  static getAsync(e, t = "") {
3349
3349
  let n = this.getRaw(e, t);
3350
- return typeof n == "string" && n !== vt ? n : "";
3350
+ return typeof n == "string" && n !== gt ? n : "";
3351
3351
  }
3352
3352
  static getNameList() {
3353
3353
  return r(this.icons, (e, t) => t.replace(/^@/, ""));
3354
3354
  }
3355
3355
  static getUrlGlobal() {
3356
- return `${F.isLocalhost(), ""}${this.url}`;
3356
+ return `${L.isLocalhost(), ""}${this.url}`;
3357
3357
  }
3358
3358
  static add(e, t) {
3359
3359
  this.icons[this.getName(e)] = t;
3360
3360
  }
3361
3361
  static addLoad(e) {
3362
- this.icons[this.getName(e)] = vt;
3362
+ this.icons[this.getName(e)] = gt;
3363
3363
  }
3364
3364
  static addGlobal(e, t) {
3365
3365
  this.icons[this.getName(e)] = `${this.getUrlGlobal()}${t}`;
@@ -3381,22 +3381,22 @@ var H = {}, dt = {
3381
3381
  return (n = (r = (i = this.icons) == null ? void 0 : i[this.getName(e)]) == null ? (a = this.icons) == null ? void 0 : a[e] : r) == null ? `${e.replace(/^@/, t || this.url)}.svg` : n;
3382
3382
  }
3383
3383
  static wait() {
3384
- return new Promise((e) => setTimeout(() => e(), _t));
3384
+ return new Promise((e) => setTimeout(() => e(), ht));
3385
3385
  }
3386
3386
  };
3387
- C(yt, "icons", {}), C(yt, "url", "/icons/");
3387
+ w(_t, "icons", {}), w(_t, "url", "/icons/");
3388
3388
  //#endregion
3389
3389
  //#region src/functions/getElementItem.ts
3390
- function bt(e, t, n) {
3390
+ function vt(e, t, n) {
3391
3391
  var r, i;
3392
- return (r = (i = A(e)) == null ? void 0 : i[t]) == null ? n : r;
3392
+ return (r = (i = j(e)) == null ? void 0 : i[t]) == null ? n : r;
3393
3393
  }
3394
3394
  //#endregion
3395
3395
  //#region src/functions/setElementItem.ts
3396
- function xt(e, n, i) {
3397
- let a = A(e);
3396
+ function yt(e, n, i) {
3397
+ let a = j(e);
3398
3398
  if (a) {
3399
- let e = bt(a, n);
3399
+ let e = vt(a, n);
3400
3400
  if (t(e) && t(i)) r(i, (t, n) => {
3401
3401
  e[n] = m(t);
3402
3402
  });
@@ -3409,33 +3409,33 @@ function xt(e, n, i) {
3409
3409
  }
3410
3410
  //#endregion
3411
3411
  //#region src/functions/createElement.ts
3412
- function U(e, t = "div", i, a) {
3412
+ function G(e, t = "div", i, a) {
3413
3413
  if (!s()) return;
3414
3414
  let o = document.createElement(t);
3415
3415
  return typeof i == "function" ? i(o) : n(i) && r(i, (e, t) => {
3416
- xt(o, t, e);
3416
+ yt(o, t, e);
3417
3417
  }), e == null || e.insertBefore(o, a == null ? null : a), o;
3418
3418
  }
3419
3419
  //#endregion
3420
3420
  //#region src/functions/encodeAttribute.ts
3421
- var St = {
3421
+ var bt = {
3422
3422
  "&": "&amp;",
3423
3423
  "<": "&lt;",
3424
3424
  ">": "&gt;",
3425
3425
  "\"": "&quot;",
3426
3426
  "'": "&#39;"
3427
3427
  };
3428
- function W(e) {
3428
+ function K(e) {
3429
3429
  return String(e).replace(/[&<>"']/g, (e) => {
3430
3430
  var t;
3431
- return (t = St == null ? void 0 : St[e]) == null ? e : t;
3431
+ return (t = bt == null ? void 0 : bt[e]) == null ? e : t;
3432
3432
  });
3433
3433
  }
3434
3434
  //#endregion
3435
3435
  //#region src/classes/MetaManager.ts
3436
- var G = class {
3436
+ var q = class {
3437
3437
  constructor(e, t = !1) {
3438
- C(this, "listMeta", void 0), C(this, "isProperty", void 0), C(this, "items", {}), this.listMeta = e, this.isProperty = t, this.update();
3438
+ w(this, "listMeta", void 0), w(this, "isProperty", void 0), w(this, "items", {}), this.listMeta = e, this.isProperty = t, this.update();
3439
3439
  }
3440
3440
  getListMeta() {
3441
3441
  return this.listMeta;
@@ -3475,17 +3475,17 @@ var G = class {
3475
3475
  let r = this.findMetaElement(e);
3476
3476
  if (r) return r.content = n, this;
3477
3477
  let i = { content: n };
3478
- return this.isProperty ? i.property = e : i.name = e, U(document.head, "meta", i), this;
3478
+ return this.isProperty ? i.property = e : i.name = e, G(document.head, "meta", i), this;
3479
3479
  }
3480
3480
  toHtmlString(e) {
3481
3481
  var t;
3482
3482
  let n = (t = this.items[e]) == null ? "" : t;
3483
3483
  if (e === "title") return "";
3484
- let r = W(n);
3484
+ let r = K(n);
3485
3485
  return r ? `<meta ${this.getAttributeName()}="${e}" content="${r}">` : "";
3486
3486
  }
3487
3487
  toHtmlTitle(e) {
3488
- return me(e);
3488
+ return pe(e);
3489
3489
  }
3490
3490
  update() {
3491
3491
  return this.listMeta.forEach((e) => {
@@ -3493,121 +3493,121 @@ var G = class {
3493
3493
  this.items[e] = (t = (n = this.findMetaElement(e)) == null ? void 0 : n.content) == null ? "" : t;
3494
3494
  }), this;
3495
3495
  }
3496
- }, K = /* @__PURE__ */ function(e) {
3496
+ }, J = /* @__PURE__ */ function(e) {
3497
3497
  return e.title = "title", e.description = "description", e.keywords = "keywords", e.canonical = "canonical", e.robots = "robots", e.author = "author", e;
3498
- }({}), Ct = /* @__PURE__ */ function(e) {
3498
+ }({}), xt = /* @__PURE__ */ function(e) {
3499
3499
  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;
3500
- }({}), q = /* @__PURE__ */ function(e) {
3500
+ }({}), Y = /* @__PURE__ */ function(e) {
3501
3501
  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;
3502
- }({}), wt = /* @__PURE__ */ function(e) {
3502
+ }({}), St = /* @__PURE__ */ function(e) {
3503
3503
  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;
3504
- }({}), Tt = /* @__PURE__ */ function(e) {
3504
+ }({}), Ct = /* @__PURE__ */ function(e) {
3505
3505
  return e.inStock = "in stock", e.outOfStock = "out of stock", e.preorder = "preorder", e.backorder = "backorder", e.discontinued = "discontinued", e.pending = "pending", e;
3506
- }({}), Et = /* @__PURE__ */ function(e) {
3506
+ }({}), wt = /* @__PURE__ */ function(e) {
3507
3507
  return e.new = "new", e.used = "used", e.refurbished = "refurbished", e;
3508
- }({}), Dt = /* @__PURE__ */ function(e) {
3508
+ }({}), Tt = /* @__PURE__ */ function(e) {
3509
3509
  return e.newborn = "newborn", e.infant = "infant", e.toddler = "toddler", e.kids = "kids", e.adult = "adult", e;
3510
- }({}), Ot = /* @__PURE__ */ function(e) {
3510
+ }({}), Et = /* @__PURE__ */ function(e) {
3511
3511
  return e.female = "female", e.male = "male", e.unisex = "unisex", e;
3512
- }({}), J = /* @__PURE__ */ function(e) {
3512
+ }({}), X = /* @__PURE__ */ function(e) {
3513
3513
  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;
3514
- }({}), kt = /* @__PURE__ */ function(e) {
3514
+ }({}), Dt = /* @__PURE__ */ function(e) {
3515
3515
  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;
3516
- }({}), At = class extends G {
3516
+ }({}), Ot = class extends q {
3517
3517
  constructor() {
3518
- super(Object.values(q), !0);
3518
+ super(Object.values(Y), !0);
3519
3519
  }
3520
3520
  getTitle() {
3521
- return this.get(q.title);
3521
+ return this.get(Y.title);
3522
3522
  }
3523
3523
  getType() {
3524
- return this.get(q.type);
3524
+ return this.get(Y.type);
3525
3525
  }
3526
3526
  getUrl() {
3527
- return this.get(q.url);
3527
+ return this.get(Y.url);
3528
3528
  }
3529
3529
  getImage() {
3530
- return this.get(q.image);
3530
+ return this.get(Y.image);
3531
3531
  }
3532
3532
  getDescription() {
3533
- return this.get(q.description);
3533
+ return this.get(Y.description);
3534
3534
  }
3535
3535
  getLocale() {
3536
- return this.get(q.locale);
3536
+ return this.get(Y.locale);
3537
3537
  }
3538
3538
  getSiteName() {
3539
- return this.get(q.siteName);
3539
+ return this.get(Y.siteName);
3540
3540
  }
3541
3541
  setTitle(e) {
3542
- return this.set(q.title, e);
3542
+ return this.set(Y.title, e);
3543
3543
  }
3544
3544
  setType(e) {
3545
- return this.set(q.type, e);
3545
+ return this.set(Y.type, e);
3546
3546
  }
3547
3547
  setUrl(e) {
3548
- return this.set(q.url, e);
3548
+ return this.set(Y.url, e);
3549
3549
  }
3550
3550
  setImage(e) {
3551
- return this.set(q.image, e);
3551
+ return this.set(Y.image, e);
3552
3552
  }
3553
3553
  setDescription(e) {
3554
- return this.set(q.description, e);
3554
+ return this.set(Y.description, e);
3555
3555
  }
3556
3556
  setLocale(e) {
3557
- return this.set(q.locale, e);
3557
+ return this.set(Y.locale, e);
3558
3558
  }
3559
3559
  setSiteName(e) {
3560
- return this.set(q.siteName, e);
3560
+ return this.set(Y.siteName, e);
3561
3561
  }
3562
- }, jt = class extends G {
3562
+ }, kt = class extends q {
3563
3563
  constructor() {
3564
- super(Object.values(J));
3564
+ super(Object.values(X));
3565
3565
  }
3566
3566
  getCard() {
3567
- return this.get(J.card);
3567
+ return this.get(X.card);
3568
3568
  }
3569
3569
  getSite() {
3570
- return this.get(J.site);
3570
+ return this.get(X.site);
3571
3571
  }
3572
3572
  getCreator() {
3573
- return this.get(J.creator);
3573
+ return this.get(X.creator);
3574
3574
  }
3575
3575
  getUrl() {
3576
- return this.get(J.url);
3576
+ return this.get(X.url);
3577
3577
  }
3578
3578
  getTitle() {
3579
- return this.get(J.title);
3579
+ return this.get(X.title);
3580
3580
  }
3581
3581
  getDescription() {
3582
- return this.get(J.description);
3582
+ return this.get(X.description);
3583
3583
  }
3584
3584
  getImage() {
3585
- return this.get(J.image);
3585
+ return this.get(X.image);
3586
3586
  }
3587
3587
  setCard(e) {
3588
- return this.set(J.card, e), this;
3588
+ return this.set(X.card, e), this;
3589
3589
  }
3590
3590
  setSite(e) {
3591
- return this.set(J.site, e), this;
3591
+ return this.set(X.site, e), this;
3592
3592
  }
3593
3593
  setCreator(e) {
3594
- return this.set(J.creator, e), this;
3594
+ return this.set(X.creator, e), this;
3595
3595
  }
3596
3596
  setUrl(e) {
3597
- return this.set(J.url, e), this;
3597
+ return this.set(X.url, e), this;
3598
3598
  }
3599
3599
  setTitle(e) {
3600
- return this.set(J.title, e), this;
3600
+ return this.set(X.title, e), this;
3601
3601
  }
3602
3602
  setDescription(e) {
3603
- return this.set(J.description, e), this;
3603
+ return this.set(X.description, e), this;
3604
3604
  }
3605
3605
  setImage(e) {
3606
- return this.set(J.image, e), this;
3606
+ return this.set(X.image, e), this;
3607
3607
  }
3608
- }, Mt = class extends G {
3608
+ }, At = class extends q {
3609
3609
  constructor() {
3610
- super(Object.values(K)), C(this, "suffix", void 0), C(this, "og", void 0), C(this, "twitter", void 0), this.og = new At(), this.twitter = new jt();
3610
+ super(Object.values(J)), w(this, "suffix", void 0), w(this, "og", void 0), w(this, "twitter", void 0), this.og = new Ot(), this.twitter = new kt();
3611
3611
  }
3612
3612
  getOg() {
3613
3613
  return this.og;
@@ -3616,26 +3616,26 @@ var G = class {
3616
3616
  return this.twitter;
3617
3617
  }
3618
3618
  getTitle() {
3619
- let e = this.get(K.title);
3619
+ let e = this.get(J.title);
3620
3620
  return !l(e) && s() && (e = document.title), e.replace(this.getSuffix(), "").trim();
3621
3621
  }
3622
3622
  getKeywords() {
3623
- return this.get(K.keywords);
3623
+ return this.get(J.keywords);
3624
3624
  }
3625
3625
  getDescription() {
3626
- return this.get(K.description);
3626
+ return this.get(J.description);
3627
3627
  }
3628
3628
  getImage() {
3629
3629
  return this.og.getImage();
3630
3630
  }
3631
3631
  getCanonical() {
3632
- return this.get(K.canonical);
3632
+ return this.get(J.canonical);
3633
3633
  }
3634
3634
  getRobots() {
3635
- return this.get(K.robots);
3635
+ return this.get(J.robots);
3636
3636
  }
3637
3637
  getAuthor() {
3638
- return this.get(K.author);
3638
+ return this.get(J.author);
3639
3639
  }
3640
3640
  getSiteName() {
3641
3641
  return this.og.getSiteName();
@@ -3645,25 +3645,25 @@ var G = class {
3645
3645
  }
3646
3646
  setTitle(e) {
3647
3647
  let t = l(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
3648
- return s() && (document.title = t), this.set(K.title, t), this.og.setTitle(t), this.twitter.setTitle(t), this;
3648
+ return s() && (document.title = t), this.set(J.title, t), this.og.setTitle(t), this.twitter.setTitle(t), this;
3649
3649
  }
3650
3650
  setKeywords(e) {
3651
- return this.set(K.keywords, j(e).join(", ")), this;
3651
+ return this.set(J.keywords, M(e).join(", ")), this;
3652
3652
  }
3653
3653
  setDescription(e) {
3654
- return this.set(K.description, e), this;
3654
+ return this.set(J.description, e), this;
3655
3655
  }
3656
3656
  setImage(e) {
3657
3657
  return this.og.setImage(e), this.twitter.setImage(e), this;
3658
3658
  }
3659
3659
  setCanonical(e) {
3660
- return this.set(K.canonical, e), this.og.setUrl(e), this.twitter.setUrl(e), this;
3660
+ return this.set(J.canonical, e), this.og.setUrl(e), this.twitter.setUrl(e), this;
3661
3661
  }
3662
3662
  setRobots(e) {
3663
- return this.set(K.robots, e), this;
3663
+ return this.set(J.robots, e), this;
3664
3664
  }
3665
3665
  setAuthor(e) {
3666
- return this.set(K.author, e), this;
3666
+ return this.set(J.author, e), this;
3667
3667
  }
3668
3668
  setSiteName(e) {
3669
3669
  return this.og.setSiteName(e), this.twitter.setSite(e), this;
@@ -3678,14 +3678,14 @@ var G = class {
3678
3678
  return `${super.html()}${this.og.html()}${this.twitter.html()}`;
3679
3679
  }
3680
3680
  htmlTitle() {
3681
- return this.toHtmlTitle(this.get(K.title));
3681
+ return this.toHtmlTitle(this.get(J.title));
3682
3682
  }
3683
3683
  getSuffix() {
3684
3684
  return l(this.suffix) ? ` - ${this.suffix}` : "";
3685
3685
  }
3686
- }, Nt = class {
3686
+ }, jt = class {
3687
3687
  static getItem() {
3688
- return E.get("__ui:meta-instance__", () => new Mt());
3688
+ return D.get("__ui:meta-instance__", () => new At());
3689
3689
  }
3690
3690
  static getOg() {
3691
3691
  return this.getItem().getOg();
@@ -3756,12 +3756,12 @@ var G = class {
3756
3756
  static htmlTitle() {
3757
3757
  return this.getItem().htmlTitle();
3758
3758
  }
3759
- }, Y = class e {
3759
+ }, Z = class e {
3760
3760
  static getInstance() {
3761
- return E.get("__ui:url-item__", () => new e());
3761
+ return D.get("__ui:url-item__", () => new e());
3762
3762
  }
3763
3763
  constructor(e) {
3764
- C(this, "url", void 0), this.set(e);
3764
+ w(this, "url", void 0), this.set(e);
3765
3765
  }
3766
3766
  get href() {
3767
3767
  return this.url.href;
@@ -3809,7 +3809,7 @@ var G = class {
3809
3809
  getParams() {
3810
3810
  let e = {};
3811
3811
  return this.url.searchParams.forEach((t, n) => {
3812
- e[n] = T(t);
3812
+ e[n] = E(t);
3813
3813
  }), e;
3814
3814
  }
3815
3815
  set(e) {
@@ -3832,17 +3832,17 @@ var G = class {
3832
3832
  toJSON() {
3833
3833
  return this.url.toJSON();
3834
3834
  }
3835
- }, Pt = class extends mt {
3835
+ }, Mt = class extends ft {
3836
3836
  init() {
3837
3837
  return s() && addEventListener("popstate", () => {
3838
- Y.getInstance().set(), this.reload();
3838
+ Z.getInstance().set(), this.reload();
3839
3839
  }), this.initData(), this;
3840
3840
  }
3841
3841
  getLocation() {
3842
- return s() && Y.getInstance().set(), Y.getInstance().getParams();
3842
+ return s() && Z.getInstance().set(), Z.getInstance().getParams();
3843
3843
  }
3844
3844
  update() {
3845
- let e = this.getData(), t = Y.getInstance();
3845
+ let e = this.getData(), t = Z.getInstance();
3846
3846
  if (t.setParams(e), s()) {
3847
3847
  clearTimeout(this.time), this.block = !0;
3848
3848
  try {
@@ -3856,9 +3856,9 @@ var G = class {
3856
3856
  }
3857
3857
  return this;
3858
3858
  }
3859
- }, Ft = class {
3859
+ }, Nt = class {
3860
3860
  static getItem() {
3861
- return E.get("__ui:query-instance__", () => new Pt());
3861
+ return D.get("__ui:query-instance__", () => new Mt());
3862
3862
  }
3863
3863
  static get(e, t) {
3864
3864
  return this.getItem().get(e, t);
@@ -3875,9 +3875,9 @@ var G = class {
3875
3875
  static reload() {
3876
3876
  this.getItem().reload();
3877
3877
  }
3878
- }, It = class {
3878
+ }, Pt = class {
3879
3879
  constructor(e, t = 320, n = !1) {
3880
- C(this, "callback", void 0), C(this, "delay", void 0), C(this, "timerId", void 0), C(this, "startTime", void 0), C(this, "remaining", void 0), C(this, "completed", !1), this.callback = e, this.delay = t, n || this.resume();
3880
+ 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();
3881
3881
  }
3882
3882
  resume() {
3883
3883
  if (this.timerId || this.completed) return this;
@@ -3913,7 +3913,7 @@ var G = class {
3913
3913
  stop() {
3914
3914
  return this.timerId && (clearTimeout(this.timerId), this.timerId = void 0), this;
3915
3915
  }
3916
- }, Lt = class {
3916
+ }, Ft = class {
3917
3917
  static async is() {
3918
3918
  let e = await this.get();
3919
3919
  return e !== -1 && e <= 8;
@@ -3929,14 +3929,14 @@ var G = class {
3929
3929
  return t;
3930
3930
  }
3931
3931
  static getStorage() {
3932
- return new D("__ui:scrollbar__", !0);
3932
+ return new O("__ui:scrollbar__", !0);
3933
3933
  }
3934
3934
  static getCalculate() {
3935
3935
  return this.calculate;
3936
3936
  }
3937
3937
  static createElement() {
3938
- return U(document.body, "div", (e) => {
3939
- e.style.height = "24px", e.style.overflowY = "scroll", e.style.position = "fixed", e.style.width = "100%", U(e, "div", (e) => {
3938
+ return G(document.body, "div", (e) => {
3939
+ e.style.height = "24px", e.style.overflowY = "scroll", e.style.position = "fixed", e.style.width = "100%", G(e, "div", (e) => {
3940
3940
  e.style.height = "100px";
3941
3941
  });
3942
3942
  });
@@ -3951,36 +3951,36 @@ var G = class {
3951
3951
  });
3952
3952
  }
3953
3953
  };
3954
- C(Lt, "calculate", !1);
3954
+ w(Ft, "calculate", !1);
3955
3955
  //#endregion
3956
3956
  //#region src/functions/escapeExp.ts
3957
- function X(e) {
3957
+ function It(e) {
3958
3958
  return String(e).replace(/[.*+?^${}()|[\]\\/]/g, "\\$&");
3959
3959
  }
3960
3960
  //#endregion
3961
3961
  //#region src/functions/getSeparatingSearchExp.ts
3962
- function Rt(e, t = 128) {
3962
+ function Lt(e, t = 128) {
3963
3963
  if (e instanceof RegExp) return e;
3964
3964
  if (!e || e.trim().length === 0 || e.length > t) return /^/;
3965
- let n = String(e).replace(/\s+/g, " ").trim().split(" ").map(X).join("|");
3965
+ let n = String(e).replace(/\s+/g, " ").trim().split(" ").map(It).join("|");
3966
3966
  return RegExp(`(${n})`, "ig");
3967
3967
  }
3968
3968
  //#endregion
3969
3969
  //#region src/functions/addTagHighlightMatch.ts
3970
- var zt = `___HIGHLIGHT_START_${f(1e5, 999999)}___`, Bt = `___HIGHLIGHT_END_${f(1e5, 999999)}___`, Vt = RegExp(`${zt}|${Bt}`, "g");
3971
- function Ht(e, t, n = "sys-highlight-match", r = !1) {
3970
+ var Rt = `___HIGHLIGHT_START_${f(1e5, 999999)}___`, zt = `___HIGHLIGHT_END_${f(1e5, 999999)}___`, Bt = RegExp(`${Rt}|${zt}`, "g");
3971
+ function Vt(e, t, n = "sys-highlight-match", r = !1) {
3972
3972
  let i = a(e);
3973
3973
  if (l(i) && l(t)) {
3974
- let e = i.replace(Rt(t), `${zt}$1${Bt}`);
3975
- return r && (e = W(e)), e.replace(Vt, (e) => e === zt ? `<span class="${n}">` : "</span>");
3974
+ let e = i.replace(Lt(t), `${Rt}$1${zt}`);
3975
+ return r && (e = K(e)), e.replace(Bt, (e) => e === Rt ? `<span class="${n}">` : "</span>");
3976
3976
  }
3977
- return r ? W(i) : i;
3977
+ return r ? K(i) : i;
3978
3978
  }
3979
3979
  //#endregion
3980
3980
  //#region src/classes/SearchListData.ts
3981
- var Ut = class {
3981
+ var Ht = class {
3982
3982
  constructor(e, t, n, r) {
3983
- C(this, "list", void 0), C(this, "columns", void 0), C(this, "item", void 0), C(this, "options", void 0), C(this, "listCache", void 0), this.list = e, this.columns = t, this.item = n, this.options = r;
3983
+ 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;
3984
3984
  }
3985
3985
  is() {
3986
3986
  return !!(this.list && this.columns);
@@ -4017,8 +4017,8 @@ var Ut = class {
4017
4017
  toFormatItem(e, t) {
4018
4018
  let n = {};
4019
4019
  return this.columns && this.columns.forEach((r) => {
4020
- let i = this.getColumnName(r), a = B(e, r);
4021
- n[i] = l(a) && t ? this.addTag(a) : x(a);
4020
+ let i = this.getColumnName(r), a = H(e, r);
4021
+ n[i] = l(a) && t ? this.addTag(a) : S(a);
4022
4022
  }), {
4023
4023
  ...e,
4024
4024
  ...n,
@@ -4029,7 +4029,7 @@ var Ut = class {
4029
4029
  return e.replace(/\.([a-z0-9])/gi, (e, t) => t.toUpperCase()) + "Search";
4030
4030
  }
4031
4031
  addTag(e) {
4032
- return Ht(x(e), this.item.get(), this.options.getClassName());
4032
+ return Vt(S(e), this.item.get(), this.options.getClassName());
4033
4033
  }
4034
4034
  generateCache() {
4035
4035
  if (!this.isList()) return [];
@@ -4037,8 +4037,8 @@ var Ut = class {
4037
4037
  for (let t of this.list) {
4038
4038
  let n = "";
4039
4039
  if (this.columns) for (let e of this.columns) {
4040
- let r = B(t, e);
4041
- l(r) && (n += ` ${x(r)}`);
4040
+ let r = H(t, e);
4041
+ l(r) && (n += ` ${S(r)}`);
4042
4042
  }
4043
4043
  e.push({
4044
4044
  item: t,
@@ -4053,9 +4053,9 @@ var Ut = class {
4053
4053
  resetCache() {
4054
4054
  this.listCache = void 0;
4055
4055
  }
4056
- }, Wt = class {
4056
+ }, Ut = class {
4057
4057
  constructor(e, t) {
4058
- C(this, "value", void 0), C(this, "options", void 0), this.value = e, this.options = t;
4058
+ w(this, "value", void 0), w(this, "options", void 0), this.value = e, this.options = t;
4059
4059
  }
4060
4060
  is() {
4061
4061
  return !!this.value;
@@ -4073,30 +4073,30 @@ var Ut = class {
4073
4073
  };
4074
4074
  //#endregion
4075
4075
  //#region src/functions/getExp.ts
4076
- function Gt(e, t = "ig", n = ":value") {
4077
- let r = X(e);
4076
+ function Wt(e, t = "ig", n = ":value") {
4077
+ let r = It(e);
4078
4078
  return new RegExp(n.replace(/:value/g, r), t);
4079
4079
  }
4080
4080
  //#endregion
4081
4081
  //#region src/functions/getExactSearchExp.ts
4082
- function Kt(e) {
4083
- return Gt(e, "i", "(:value)");
4082
+ function Gt(e) {
4083
+ return Wt(e, "i", "(:value)");
4084
4084
  }
4085
4085
  //#endregion
4086
4086
  //#region src/functions/getSearchExp.ts
4087
- function qt(e, t = 128) {
4087
+ function Kt(e, t = 128) {
4088
4088
  if (!d(e) || e.trim().length === 0 || e.length > t) return /^/;
4089
4089
  let n = [];
4090
4090
  return a(e).split(" ").forEach((e) => {
4091
- let t = X(e).trim();
4091
+ let t = It(e).trim();
4092
4092
  l(t) && n.push(`(?=.*?${t})`);
4093
4093
  }), RegExp(`^${n.join("")}`, "i");
4094
4094
  }
4095
4095
  //#endregion
4096
4096
  //#region src/classes/SearchListMatcher.ts
4097
- var Jt = class {
4097
+ var qt = class {
4098
4098
  constructor(e, t) {
4099
- C(this, "item", void 0), C(this, "options", void 0), C(this, "matcher", void 0), this.item = e, this.options = t, this.initMatcher();
4099
+ w(this, "item", void 0), w(this, "options", void 0), w(this, "matcher", void 0), this.item = e, this.options = t, this.initMatcher();
4100
4100
  }
4101
4101
  is() {
4102
4102
  return !!this.matcher;
@@ -4111,11 +4111,11 @@ var Jt = class {
4111
4111
  this.initMatcher();
4112
4112
  }
4113
4113
  initMatcher() {
4114
- this.item.is() ? this.matcher = this.options.getFindExactMatch() ? Kt(this.item.get()) : qt(this.item.get()) : this.matcher = void 0;
4114
+ this.item.is() ? this.matcher = this.options.getFindExactMatch() ? Gt(this.item.get()) : Kt(this.item.get()) : this.matcher = void 0;
4115
4115
  }
4116
- }, Yt = class {
4116
+ }, Jt = class {
4117
4117
  constructor(e) {
4118
- C(this, "options", void 0), this.options = e;
4118
+ w(this, "options", void 0), this.options = e;
4119
4119
  }
4120
4120
  getOptions() {
4121
4121
  return this.options || {};
@@ -4143,12 +4143,12 @@ var Jt = class {
4143
4143
  setOptions(e) {
4144
4144
  return this.options = e, this;
4145
4145
  }
4146
- }, Xt = class {
4146
+ }, Yt = class {
4147
4147
  constructor(e, t, n, r) {
4148
- C(this, "options", void 0), C(this, "item", void 0), C(this, "matcher", void 0), C(this, "data", void 0), C(this, "callbackToSelection", (e, t) => {
4148
+ 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) => {
4149
4149
  if (this.matcher.isSelection(t)) return this.data.toFormatItem(e, !0);
4150
4150
  if (this.options.getReturnEverything()) return this.data.toFormatItem(e, !1);
4151
- }), C(this, "callbackToNone", (e) => this.data.toFormatItem(e, !1)), this.options = new Yt(r), this.item = new Wt(n, this.options), this.matcher = new Jt(this.item, this.options), this.data = new Ut(e, t, this.item, this.options);
4151
+ }), w(this, "callbackToNone", (e) => this.data.toFormatItem(e, !1)), this.options = new Jt(r), this.item = new Ut(n, this.options), this.matcher = new qt(this.item, this.options), this.data = new Ht(e, t, this.item, this.options);
4152
4152
  }
4153
4153
  getData() {
4154
4154
  return this.data;
@@ -4185,13 +4185,13 @@ var Jt = class {
4185
4185
  let e = this.data.getList();
4186
4186
  return e ? r(e, this.callbackToNone) : [];
4187
4187
  }
4188
- }, Zt = () => E.get("__ui:storage-callback__", () => ({})), Qt = class e {
4188
+ }, Xt = () => D.get("__ui:storage-callback__", () => ({})), Zt = class e {
4189
4189
  static getInstance(t, n = "main") {
4190
4190
  return new e(t, n);
4191
4191
  }
4192
4192
  constructor(e, t = "main") {
4193
- C(this, "name", void 0), C(this, "group", void 0), C(this, "callbacks", []), C(this, "loading", !1), this.name = e, this.group = t;
4194
- let n = `${t}:${e}`, r = Zt();
4193
+ w(this, "name", void 0), w(this, "group", void 0), w(this, "callbacks", []), w(this, "loading", !1), this.name = e, this.group = t;
4194
+ let n = `${t}:${e}`, r = Xt();
4195
4195
  if (n in r) return r[n];
4196
4196
  r[n] = this;
4197
4197
  }
@@ -4218,10 +4218,10 @@ var Jt = class {
4218
4218
  }
4219
4219
  async run(e) {
4220
4220
  this.loading = !1;
4221
- for (let { callback: t, isOnce: n } of this.callbacks) await Ye(t, e), n && this.removeCallback(t);
4221
+ for (let { callback: t, isOnce: n } of this.callbacks) await I(t, e), n && this.removeCallback(t);
4222
4222
  return this;
4223
4223
  }
4224
- }, $t = [
4224
+ }, Qt = [
4225
4225
  "d",
4226
4226
  "e",
4227
4227
  "f",
@@ -4241,10 +4241,10 @@ var Jt = class {
4241
4241
  "t",
4242
4242
  "u",
4243
4243
  "v"
4244
- ], en = RegExp(`%(${$t.join("|")})`, "g"), tn = (e, t = {}) => {
4244
+ ], $t = RegExp(`%(${Qt.join("|")})`, "g"), en = (e, t = {}) => {
4245
4245
  let r = String(e);
4246
- return Array.isArray(t) && e.match(/%[a-z]/) && (r = r.replace(en, (e, n) => {
4247
- let r = $t.indexOf(n);
4246
+ return Array.isArray(t) && e.match(/%[a-z]/) && (r = r.replace($t, (e, n) => {
4247
+ let r = Qt.indexOf(n);
4248
4248
  if (r !== -1) {
4249
4249
  var i;
4250
4250
  return String((i = t == null ? void 0 : t[r]) == null ? "" : i);
@@ -4263,12 +4263,12 @@ var Jt = class {
4263
4263
  }
4264
4264
  return e;
4265
4265
  })), r;
4266
- }, nn = (e) => {
4266
+ }, tn = (e) => {
4267
4267
  var t;
4268
- 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(F.getStatus().getStatus()))));
4269
- }, rn = "global", an = 160, on = class {
4270
- constructor(e, t = () => k.getLanguage(), n = () => k.getLocation()) {
4271
- C(this, "language", void 0), C(this, "location", void 0), C(this, "files", {}), C(this, "data", {}), this.language = t, this.location = n, e && this.add(e);
4268
+ 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()))));
4269
+ }, nn = "global", rn = 160, an = class {
4270
+ constructor(e, t = () => A.getLanguage(), n = () => A.getLocation()) {
4271
+ 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);
4272
4272
  }
4273
4273
  isFile() {
4274
4274
  return Object.keys(this.files).length > 0 && this.getIndex() !== void 0;
@@ -4296,7 +4296,7 @@ var Jt = class {
4296
4296
  if (e in this.files) return e;
4297
4297
  let t = this.getLanguage();
4298
4298
  if (t in this.files) return t;
4299
- if ("global" in this.files) return rn;
4299
+ if ("global" in this.files) return nn;
4300
4300
  }
4301
4301
  getByData(e) {
4302
4302
  if (e in this.data) return this.data[e];
@@ -4307,14 +4307,14 @@ var Jt = class {
4307
4307
  return t && (this.data[e] = t), t;
4308
4308
  }
4309
4309
  }
4310
- }, sn = class {
4311
- constructor(e = "/api/translate", t = "list", n = new on()) {
4312
- C(this, "url", void 0), C(this, "propsName", void 0), C(this, "files", void 0), C(this, "data", {}), C(this, "cache", []), C(this, "resolveList", []), C(this, "timeout", void 0), C(this, "isReadApi", !0), this.url = e, this.propsName = t, this.files = n;
4310
+ }, on = class {
4311
+ constructor(e = "/api/translate", t = "list", n = new an()) {
4312
+ 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;
4313
4313
  }
4314
4314
  async get(e, t) {
4315
4315
  var n;
4316
4316
  let r = this.getText(e);
4317
- return r ? this.replacement(r, t) : (F.isLocalhost() || await this.add(e), this.replacement((n = this.getText(e)) == null ? e : n));
4317
+ return r ? this.replacement(r, t) : (L.isLocalhost() || await this.add(e), this.replacement((n = this.getText(e)) == null ? e : n));
4318
4318
  }
4319
4319
  getSync(e, t = !1, n) {
4320
4320
  let r = this.getText(e);
@@ -4355,7 +4355,7 @@ var Jt = class {
4355
4355
  });
4356
4356
  }
4357
4357
  async addNormalOrSync(e) {
4358
- if (l(e)) if (F.isLocalhost()) this.addSync(e);
4358
+ if (l(e)) if (L.isLocalhost()) this.addSync(e);
4359
4359
  else {
4360
4360
  let t = Object.keys(e);
4361
4361
  t.length > 0 && await this.add(t);
@@ -4397,16 +4397,16 @@ var Jt = class {
4397
4397
  return `${this.files.getLanguage()}-${e}`;
4398
4398
  }
4399
4399
  getNameByGlobal(e) {
4400
- return `${rn}-${e}`;
4400
+ return `${nn}-${e}`;
4401
4401
  }
4402
4402
  getNamesNone(e) {
4403
4403
  let t = [];
4404
- return j(e).forEach((e) => {
4404
+ return M(e).forEach((e) => {
4405
4405
  e !== "__TRANSLATE_START__" && e !== "__TRANSLATE_END__" && !this.hasName(e) && t.push(e);
4406
4406
  }), t;
4407
4407
  }
4408
4408
  async getResponse() {
4409
- let e = await F.get({
4409
+ let e = await L.get({
4410
4410
  api: !1,
4411
4411
  path: this.url,
4412
4412
  request: { [this.propsName]: this.cache },
@@ -4414,14 +4414,14 @@ var Jt = class {
4414
4414
  timeout: 12e3,
4415
4415
  global: !0
4416
4416
  });
4417
- return nn(e) || w.on({
4417
+ return tn(e) || T.on({
4418
4418
  group: "translate",
4419
4419
  code: "error",
4420
4420
  details: e
4421
4421
  }), e == null ? {} : e;
4422
4422
  }
4423
4423
  replacement(e, t) {
4424
- return t ? tn(e, t) : e;
4424
+ return t ? en(e, t) : e;
4425
4425
  }
4426
4426
  async make() {
4427
4427
  let e;
@@ -4433,12 +4433,12 @@ var Jt = class {
4433
4433
  this.data[this.getName(t)] = (n = e == null ? void 0 : e[t]) == null ? "" : n;
4434
4434
  }), this.cache = [];
4435
4435
  }
4436
- }, cn = class {
4436
+ }, sn = class {
4437
4437
  static async get(e, t) {
4438
4438
  return this.getItem().get(e, t);
4439
4439
  }
4440
4440
  static getItem() {
4441
- return this.item || (this.item = new sn()), this.item;
4441
+ return this.item || (this.item = new on()), this.item;
4442
4442
  }
4443
4443
  static getSync(e, t = !1, n) {
4444
4444
  return this.getItem().getSync(e, t, n);
@@ -4477,18 +4477,18 @@ var Jt = class {
4477
4477
  e.url && this.getItem().setUrl(e.url), e.propsName && this.getItem().setPropsName(e.propsName), typeof e.readApi == "boolean" && this.getItem().setReadApi(e.readApi);
4478
4478
  }
4479
4479
  };
4480
- C(cn, "item", void 0);
4480
+ w(sn, "item", void 0);
4481
4481
  //#endregion
4482
4482
  //#region src/functions/arrFill.ts
4483
- function ln(e, t) {
4483
+ function cn(e, t) {
4484
4484
  return Array(t).fill(e);
4485
4485
  }
4486
4486
  //#endregion
4487
4487
  //#region src/functions/blobToBase64.ts
4488
- var un = () => dn() !== void 0, dn = () => {
4488
+ var ln = () => un() !== void 0, un = () => {
4489
4489
  var e;
4490
4490
  return (e = globalThis) == null ? void 0 : e.Buffer;
4491
- }, fn = async (e) => new Promise((t, n) => {
4491
+ }, dn = async (e) => new Promise((t, n) => {
4492
4492
  if (typeof FileReader < "u") {
4493
4493
  let r = new FileReader();
4494
4494
  r.onloadend = () => {
@@ -4499,31 +4499,40 @@ var un = () => dn() !== void 0, dn = () => {
4499
4499
  t(r.result.replace(/^data:.*?,/, ""));
4500
4500
  }, r.onerror = n, r.readAsDataURL(e);
4501
4501
  } else n();
4502
- }), pn = (e) => {
4502
+ }), fn = (e) => {
4503
4503
  var t;
4504
4504
  return ((t = globalThis) == null ? void 0 : t.Buffer).from(e).toString("base64");
4505
4505
  };
4506
- async function mn(e, t = !1) {
4507
- let n = s() ? await fn(e) : un() ? pn(await e.arrayBuffer()) : void 0;
4506
+ async function pn(e, t = !1) {
4507
+ let n = s() ? await dn(e) : ln() ? fn(await e.arrayBuffer()) : void 0;
4508
4508
  if (n) return t ? n : `data:${e.type};base64,${n}`;
4509
4509
  }
4510
4510
  //#endregion
4511
4511
  //#region src/functions/capitalize.ts
4512
- function hn(e, t = !1) {
4512
+ function mn(e, t = !1) {
4513
4513
  let n = String(e);
4514
- return n.length > 0 ? t ? n.charAt(0).toLocaleUpperCase(k.getLocation()) + n.slice(1) : n.charAt(0).toUpperCase() + n.slice(1) : n;
4514
+ return n.length > 0 ? t ? n.charAt(0).toLocaleUpperCase(A.getLocation()) + n.slice(1) : n.charAt(0).toUpperCase() + n.slice(1) : n;
4515
4515
  }
4516
4516
  //#endregion
4517
4517
  //#region src/functions/copyObject.ts
4518
- function Z(e) {
4518
+ function Q(e) {
4519
4519
  return JSON.parse(JSON.stringify(e));
4520
4520
  }
4521
4521
  //#endregion
4522
4522
  //#region src/functions/copyObjectLite.ts
4523
- function gn(e, t) {
4523
+ function hn(e, t) {
4524
4524
  return Object.assign({}, e, t);
4525
4525
  }
4526
4526
  //#endregion
4527
+ //#region src/functions/domContentLoaded.ts
4528
+ async function gn(e) {
4529
+ return !s() || document.readyState !== "loading" ? I(e) : new Promise((t, n) => {
4530
+ document.addEventListener("DOMContentLoaded", () => {
4531
+ I(e).then(t, n);
4532
+ }, { once: !0 });
4533
+ });
4534
+ }
4535
+ //#endregion
4527
4536
  //#region src/functions/domQuerySelector.ts
4528
4537
  function _n(e) {
4529
4538
  if (s()) {
@@ -4539,7 +4548,7 @@ function vn(e) {
4539
4548
  //#endregion
4540
4549
  //#region src/functions/getElementImage.ts
4541
4550
  function yn(e) {
4542
- return d(e) ? U(void 0, "img", { src: e }) : e;
4551
+ return d(e) ? G(void 0, "img", { src: e }) : e;
4543
4552
  }
4544
4553
  //#endregion
4545
4554
  //#region src/functions/resizeImageByMax.ts
@@ -4572,7 +4581,7 @@ async function Sn(e, t = .56, n = "image/jpeg") {
4572
4581
  r(e == null ? "" : e), URL.revokeObjectURL(a);
4573
4582
  }, o.onerror = () => {
4574
4583
  URL.revokeObjectURL(a), r("");
4575
- }) : mn(i).then((e) => r(String(e == null ? "" : e)));
4584
+ }) : pn(i).then((e) => r(String(e == null ? "" : e)));
4576
4585
  });
4577
4586
  }
4578
4587
  //#endregion
@@ -4593,7 +4602,7 @@ function wn(e, t, n) {
4593
4602
  function Tn(e, t) {
4594
4603
  let n = a(e);
4595
4604
  if (l(n) && l(t)) {
4596
- let e = [], r = Rt(t), i = 0, a;
4605
+ let e = [], r = Lt(t), i = 0, a;
4597
4606
  for (; (a = r.exec(n)) !== null && a.index !== r.lastIndex;) a.index > i && e.push({
4598
4607
  text: n.substring(i, a.index),
4599
4608
  isMatch: !1
@@ -4614,7 +4623,7 @@ function Tn(e, t) {
4614
4623
  //#endregion
4615
4624
  //#region src/functions/getAttributes.ts
4616
4625
  function En(e) {
4617
- let t = {}, n = A(e);
4626
+ let t = {}, n = j(e);
4618
4627
  if (n) for (let e of n.attributes) {
4619
4628
  var r;
4620
4629
  t[e.name] = (r = (e == null ? void 0 : e.value) || (e == null ? void 0 : e.textContent)) == null ? void 0 : r;
@@ -4628,7 +4637,7 @@ async function Dn(e) {
4628
4637
  var t, n;
4629
4638
  return (t = e == null || (n = e.clipboardData) == null ? void 0 : n.getData("text")) == null ? await navigator.clipboard.readText() || "" : t;
4630
4639
  } catch (e) {
4631
- w.on({
4640
+ T.on({
4632
4641
  group: "clipboard",
4633
4642
  code: "error",
4634
4643
  details: e
@@ -4639,7 +4648,7 @@ async function Dn(e) {
4639
4648
  //#endregion
4640
4649
  //#region src/functions/getCurrentDate.ts
4641
4650
  function On(e = "datetime") {
4642
- return new at(void 0, e).standard();
4651
+ return new rt(void 0, e).standard();
4643
4652
  }
4644
4653
  //#endregion
4645
4654
  //#region src/functions/getCurrentTime.ts
@@ -4648,25 +4657,25 @@ function kn() {
4648
4657
  }
4649
4658
  //#endregion
4650
4659
  //#region src/functions/getElementId.ts
4651
- var Q, An = () => {
4652
- let e = Q == null ? void 0 : Q();
4660
+ var An, jn = () => {
4661
+ let e = An == null ? void 0 : An();
4653
4662
  if (e) return String(e);
4654
- let t = E.get("__ui:getElementId__", () => ({ id: 1e5 }));
4663
+ let t = D.get("__ui:getElementId__", () => ({ id: 1e5 }));
4655
4664
  return `id-${t.id++}`;
4656
4665
  };
4657
- function jn(e, t) {
4666
+ function Mn(e, t) {
4658
4667
  if (e) {
4659
- let n = A(e);
4660
- if (n) return l(n.id) || n.setAttribute("id", An()), t ? `#${n.id}${t}`.trim() : n.id;
4668
+ let n = j(e);
4669
+ if (n) return l(n.id) || n.setAttribute("id", jn()), t ? `#${n.id}${t}`.trim() : n.id;
4661
4670
  }
4662
- return An();
4671
+ return jn();
4663
4672
  }
4664
- function Mn(e) {
4665
- Q || (Q = e);
4673
+ function Nn(e) {
4674
+ An || (An = e);
4666
4675
  }
4667
4676
  //#endregion
4668
4677
  //#region src/functions/getFirst.ts
4669
- function Nn(e) {
4678
+ function Pn(e) {
4670
4679
  if (i(e)) return e == null ? void 0 : e[0];
4671
4680
  if (t(e)) {
4672
4681
  var n;
@@ -4676,13 +4685,13 @@ function Nn(e) {
4676
4685
  }
4677
4686
  //#endregion
4678
4687
  //#region src/functions/getKey.ts
4679
- function Pn(e) {
4688
+ function Fn(e) {
4680
4689
  var t, n, r;
4681
4690
  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;
4682
4691
  }
4683
4692
  //#endregion
4684
4693
  //#region src/functions/getLast.ts
4685
- function Fn(e) {
4694
+ function In(e) {
4686
4695
  if (i(e)) return e == null ? void 0 : e[e.length - 1];
4687
4696
  if (t(e)) {
4688
4697
  let t = Object.values(e);
@@ -4692,12 +4701,12 @@ function Fn(e) {
4692
4701
  }
4693
4702
  //#endregion
4694
4703
  //#region src/functions/getLength.ts
4695
- function In(e) {
4704
+ function Ln(e) {
4696
4705
  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;
4697
4706
  }
4698
4707
  //#endregion
4699
4708
  //#region src/functions/getLengthOfAllArray.ts
4700
- function Ln(e) {
4709
+ function Rn(e) {
4701
4710
  return r(e, (e) => {
4702
4711
  var t;
4703
4712
  return (t = e == null ? void 0 : e.length) == null ? 0 : t;
@@ -4705,41 +4714,41 @@ function Ln(e) {
4705
4714
  }
4706
4715
  //#endregion
4707
4716
  //#region src/functions/getMaxLengthAllArray.ts
4708
- function Rn(e) {
4717
+ function zn(e) {
4709
4718
  if (!l(e)) return 0;
4710
- let t = Ln(e);
4719
+ let t = Rn(e);
4711
4720
  return t.length > 1e4 ? t.reduce((e, t) => Math.max(e, t)) : Math.max(...t);
4712
4721
  }
4713
4722
  //#endregion
4714
4723
  //#region src/functions/getMinLengthAllArray.ts
4715
- function zn(e) {
4724
+ function Bn(e) {
4716
4725
  if (!l(e)) return 0;
4717
- let t = Ln(e);
4726
+ let t = Rn(e);
4718
4727
  return t.length > 1e4 ? t.reduce((e, t) => Math.min(e, t)) : Math.min(...t);
4719
4728
  }
4720
4729
  //#endregion
4721
4730
  //#region src/functions/getMouseClientX.ts
4722
- function Bn(e) {
4731
+ function Vn(e) {
4723
4732
  var t, n;
4724
4733
  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;
4725
4734
  }
4726
4735
  //#endregion
4727
4736
  //#region src/functions/getMouseClientY.ts
4728
- function Vn(e) {
4737
+ function Hn(e) {
4729
4738
  var t, n;
4730
4739
  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;
4731
4740
  }
4732
4741
  //#endregion
4733
4742
  //#region src/functions/getMouseClient.ts
4734
- function Hn(e) {
4743
+ function Un(e) {
4735
4744
  return {
4736
- x: Bn(e),
4737
- y: Vn(e)
4745
+ x: Vn(e),
4746
+ y: Hn(e)
4738
4747
  };
4739
4748
  }
4740
4749
  //#endregion
4741
4750
  //#region src/functions/getObjectByKeys.ts
4742
- function Un(e, t) {
4751
+ function Wn(e, t) {
4743
4752
  let r = {};
4744
4753
  return n(e) && t.forEach((t) => {
4745
4754
  t in e && e[t] !== void 0 && (r[t] = e[t]);
@@ -4747,7 +4756,7 @@ function Un(e, t) {
4747
4756
  }
4748
4757
  //#endregion
4749
4758
  //#region src/functions/getObjectNoUndefined.ts
4750
- function Wn(e, t = void 0) {
4759
+ function Gn(e, t = void 0) {
4751
4760
  let n = {};
4752
4761
  return r(e, (e, r) => {
4753
4762
  e !== t && (n[r] = e);
@@ -4755,42 +4764,52 @@ function Wn(e, t = void 0) {
4755
4764
  }
4756
4765
  //#endregion
4757
4766
  //#region src/functions/getObjectOrNone.ts
4758
- function Gn(e) {
4767
+ function Kn(e) {
4759
4768
  return n(e) ? e : {};
4760
4769
  }
4761
4770
  //#endregion
4762
4771
  //#region src/functions/getOnlyText.ts
4763
- function Kn(e) {
4764
- return x(e).replace(/[^\p{L}\p{N}\s]+/gu, "").trim();
4772
+ function qn(e) {
4773
+ return S(e).replace(/[^\p{L}\p{N}\s]+/gu, "").trim();
4774
+ }
4775
+ //#endregion
4776
+ //#region src/functions/getRandomItem.ts
4777
+ function Jn(e) {
4778
+ if (i(e)) return e.length === 0 ? void 0 : e[f(0, e.length - 1)];
4779
+ if (t(e)) {
4780
+ let t = Object.values(e);
4781
+ return t.length === 0 ? void 0 : t[f(0, t.length - 1)];
4782
+ }
4783
+ return e == null ? void 0 : e;
4765
4784
  }
4766
4785
  //#endregion
4767
4786
  //#region src/functions/strFill.ts
4768
- function qn(e, t) {
4787
+ function Yn(e, t) {
4769
4788
  return String(e).repeat(t);
4770
4789
  }
4771
4790
  //#endregion
4772
4791
  //#region src/functions/getRandomText.ts
4773
- function Jn(e, t, n = "#", r = 2, i = 12) {
4792
+ function Xn(e, t, n = "#", r = 2, i = 12) {
4774
4793
  let a = f(e, t), o = [];
4775
- for (let e = 0; e < a; e++) o.push(qn(n, f(r, i)));
4794
+ for (let e = 0; e < a; e++) o.push(Yn(n, f(r, i)));
4776
4795
  return o.join(" ");
4777
4796
  }
4778
4797
  //#endregion
4779
4798
  //#region src/functions/getStepPercent.ts
4780
- function Yn(e, t) {
4799
+ function Zn(e, t) {
4781
4800
  let n = e == null ? 0 : e;
4782
4801
  return t > n ? 100 / (t - n) : 0;
4783
4802
  }
4784
4803
  //#endregion
4785
4804
  //#region src/functions/getStepValue.ts
4786
- function Xn(e, t) {
4805
+ function Qn(e, t) {
4787
4806
  let n = e == null ? 0 : e;
4788
4807
  return t > n ? (t - n) / 100 : 0;
4789
4808
  }
4790
4809
  //#endregion
4791
4810
  //#region src/functions/goScroll.ts
4792
- var Zn = 0;
4793
- function Qn(e, t, n) {
4811
+ var $n = 0;
4812
+ function er(e, t, n) {
4794
4813
  if (!s()) return;
4795
4814
  let r = t == null ? void 0 : t.closest(e);
4796
4815
  if (t && r && r.scrollHeight !== r.offsetHeight) {
@@ -4798,12 +4817,12 @@ function Qn(e, t, n) {
4798
4817
  if (n) {
4799
4818
  let a = n.getBoundingClientRect();
4800
4819
  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);
4801
- } else r.scrollTop > t.offsetTop ? r.scrollTop = i.top - e.top - Zn : r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = i.top - e.top + i.height - e.height + Zn);
4820
+ } else r.scrollTop > t.offsetTop ? r.scrollTop = i.top - e.top - $n : r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = i.top - e.top + i.height - e.height + $n);
4802
4821
  }
4803
4822
  }
4804
4823
  //#endregion
4805
4824
  //#region src/functions/goScrollSmooth.ts
4806
- function $n(e, t, n = 0) {
4825
+ function tr(e, t, n = 0) {
4807
4826
  if (!s()) return;
4808
4827
  let r = (t == null ? void 0 : t.behavior) || "smooth";
4809
4828
  if ("scrollIntoView" in e && !n) {
@@ -4825,7 +4844,7 @@ function $n(e, t, n = 0) {
4825
4844
  }
4826
4845
  //#endregion
4827
4846
  //#region src/functions/goScrollTo.ts
4828
- function er(e, t, n = "smooth") {
4847
+ function nr(e, t, n = "smooth") {
4829
4848
  if (!s() || !e || !t) return;
4830
4849
  let r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
4831
4850
  e.scrollBy({
@@ -4836,16 +4855,16 @@ function er(e, t, n = "smooth") {
4836
4855
  }
4837
4856
  //#endregion
4838
4857
  //#region src/functions/isShare.ts
4839
- function tr() {
4858
+ function rr() {
4840
4859
  return s() && typeof navigator < "u" && !!navigator.share;
4841
4860
  }
4842
4861
  //#endregion
4843
4862
  //#region src/functions/handleShare.ts
4844
- async function nr(e) {
4845
- if (tr() && navigator.canShare && navigator.canShare(e)) try {
4863
+ async function ir(e) {
4864
+ if (rr() && navigator.canShare && navigator.canShare(e)) try {
4846
4865
  return await navigator.share(e), !0;
4847
4866
  } catch (e) {
4848
- w.on({
4867
+ T.on({
4849
4868
  group: "share",
4850
4869
  code: "error",
4851
4870
  details: e
@@ -4855,20 +4874,20 @@ async function nr(e) {
4855
4874
  }
4856
4875
  //#endregion
4857
4876
  //#region src/functions/inArray.ts
4858
- function rr(e, t) {
4877
+ function ar(e, t) {
4859
4878
  return e.includes(t);
4860
4879
  }
4861
4880
  //#endregion
4862
4881
  //#region src/functions/initScrollbarOffset.ts
4863
- async function ir() {
4882
+ async function or() {
4864
4883
  if (s()) {
4865
- let e = await Lt.get();
4884
+ let e = await Ft.get();
4866
4885
  document.body.style.setProperty("--sys-scrollbar-offset", `${e}px`);
4867
4886
  }
4868
4887
  }
4869
4888
  //#endregion
4870
4889
  //#region src/functions/intersectKey.ts
4871
- function ar(e, n) {
4890
+ function sr(e, n) {
4872
4891
  let i = {};
4873
4892
  return t(e) && t(n) && r(e, (e, t) => {
4874
4893
  t in n && (i[t] = e);
@@ -4876,7 +4895,7 @@ function ar(e, n) {
4876
4895
  }
4877
4896
  //#endregion
4878
4897
  //#region src/functions/isDifferent.ts
4879
- function or(e, t) {
4898
+ function cr(e, t) {
4880
4899
  let n = Object.keys(e).length !== Object.keys(t).length;
4881
4900
  return n || r(e, (e, r) => {
4882
4901
  e !== (t == null ? void 0 : t[r]) && (n = !0);
@@ -4884,25 +4903,25 @@ function or(e, t) {
4884
4903
  }
4885
4904
  //#endregion
4886
4905
  //#region src/functions/isElementVisible.ts
4887
- function sr(e) {
4906
+ function lr(e) {
4888
4907
  if (!s()) return !1;
4889
- let t = A(e);
4908
+ let t = j(e);
4890
4909
  if (!t || "isConnected" in t && t.isConnected === !1) return !1;
4891
4910
  let n = window.getComputedStyle(t);
4892
4911
  return n.display !== "none" && n.visibility !== "hidden" && n.opacity !== "0" && t.offsetWidth !== 0 && t.offsetHeight !== 0;
4893
4912
  }
4894
4913
  //#endregion
4895
4914
  //#region src/functions/isInput.ts
4896
- var cr = (e) => {
4915
+ var ur = (e) => {
4897
4916
  if (e instanceof HTMLElement) {
4898
4917
  let t = e.tagName.toLowerCase();
4899
4918
  return !!(t === "input" || t === "textarea" || t === "select" || e.isContentEditable || e.getAttribute("contenteditable") === "true") && !(e != null && e.readOnly) && !(e != null && e.disabled);
4900
4919
  }
4901
4920
  return !1;
4902
- }, lr = (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 ? !cr(e.target) : !t : !1;
4921
+ }, dr = (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 ? !ur(e.target) : !t : !1;
4903
4922
  //#endregion
4904
4923
  //#region src/functions/isFloat.ts
4905
- function ur(e) {
4924
+ function fr(e) {
4906
4925
  switch (typeof e) {
4907
4926
  case "number": return !0;
4908
4927
  case "string": return /^-?\d+(\.\d+)?$/.test(e);
@@ -4911,24 +4930,24 @@ function ur(e) {
4911
4930
  }
4912
4931
  //#endregion
4913
4932
  //#region src/functions/isIntegerBetween.ts
4914
- function dr(e, t) {
4933
+ function pr(e, t) {
4915
4934
  let n = Math.floor(t);
4916
4935
  return e >= n && e < n + 1;
4917
4936
  }
4918
4937
  //#endregion
4919
4938
  //#region src/functions/isMetaKey.ts
4920
- var fr = (e) => !!(e.metaKey || e.altKey || e.ctrlKey);
4939
+ var mr = (e) => !!(e.metaKey || e.altKey || e.ctrlKey);
4921
4940
  //#endregion
4922
4941
  //#region src/functions/isSelectedByList.ts
4923
- function pr(e, t) {
4924
- return Array.isArray(e) ? e.every((e) => b(e, t)) : b(e, t);
4942
+ function hr(e, t) {
4943
+ return Array.isArray(e) ? e.every((e) => x(e, t)) : x(e, t);
4925
4944
  }
4926
4945
  //#endregion
4927
4946
  //#region src/functions/isTab.ts
4928
- var mr = (e) => e.key === "Tab" || e.code === "Tab" || e.keyCode === 9;
4947
+ var gr = (e) => e.key === "Tab" || e.code === "Tab" || e.keyCode === 9;
4929
4948
  //#endregion
4930
4949
  //#region src/functions/removeCommonPrefix.ts
4931
- function hr(e, t) {
4950
+ function _r(e, t) {
4932
4951
  if (e.startsWith(t)) return e.slice(t.length).trim();
4933
4952
  let n = 0;
4934
4953
  for (; e[n] === t[n] && n < e.length && n < t.length;) n++;
@@ -4936,36 +4955,36 @@ function hr(e, t) {
4936
4955
  }
4937
4956
  //#endregion
4938
4957
  //#region src/functions/replaceComponentName.ts
4939
- var gr = (e, t, n) => {
4958
+ var vr = (e, t, n) => {
4940
4959
  var r;
4941
4960
  return e == null || (r = e.replace(RegExp(`<${t}`, "ig"), `<${n}`)) == null || (r = r.replace(RegExp(`</${t}`, "ig"), `</${n}`)) == null ? void 0 : r.trim();
4942
4961
  };
4943
4962
  //#endregion
4944
4963
  //#region src/functions/uniqueArray.ts
4945
- function _r(e) {
4964
+ function yr(e) {
4946
4965
  return [...new Set(e)];
4947
4966
  }
4948
4967
  //#endregion
4949
4968
  //#region src/functions/replaceRecursive.ts
4950
4969
  function $(e, n, i = !0) {
4951
- let a = Z(e);
4970
+ let a = Q(e);
4952
4971
  return t(e) && t(n) && r(n, (n, r) => {
4953
4972
  let o = e == null ? void 0 : e[r];
4954
- t(o) && t(n) ? i && Array.isArray(o) && Array.isArray(n) ? a[r] = Z(_r([...o, ...n])) : a[r] = $(Array.isArray(o) ? { ...o } : o, n, i) : a[r] = t(n) ? Z(n) : n;
4973
+ t(o) && t(n) ? i && Array.isArray(o) && Array.isArray(n) ? a[r] = Q(yr([...o, ...n])) : a[r] = $(Array.isArray(o) ? { ...o } : o, n, i) : a[r] = t(n) ? Q(n) : n;
4955
4974
  }), a;
4956
4975
  }
4957
4976
  //#endregion
4958
4977
  //#region src/functions/replaceTemplate.ts
4959
- function vr(e, t) {
4978
+ function br(e, t) {
4960
4979
  let n = e;
4961
4980
  return r(t, (e, t) => {
4962
- n = n.replace(Gt(`[${t}]`), m(e));
4981
+ n = n.replace(Wt(`[${t}]`), m(e));
4963
4982
  }), n;
4964
4983
  }
4965
4984
  //#endregion
4966
4985
  //#region src/functions/secondToTime.ts
4967
- function yr(e, t) {
4968
- let n = y(e);
4986
+ function xr(e, t) {
4987
+ let n = b(e);
4969
4988
  if (n > 0) {
4970
4989
  let e = String(Math.floor(n / 60)).padStart(2, "0"), r = String(n % 60).padStart(2, "0");
4971
4990
  return t && Number(e) >= 60 ? `${String(Math.floor(Number(e) / 60)).padStart(2, "0")}:${String(Number(e) % 60).padStart(2, "0")}:${r}` : `${e}:${r}`;
@@ -4974,7 +4993,7 @@ function yr(e, t) {
4974
4993
  }
4975
4994
  //#endregion
4976
4995
  //#region src/functions/setValues.ts
4977
- function br(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, notEmpty: o = !1 }) {
4996
+ function Sr(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, notEmpty: o = !1 }) {
4978
4997
  if (n) {
4979
4998
  if (i(e)) {
4980
4999
  let n = e.indexOf(t), i = [...e];
@@ -4985,49 +5004,83 @@ function br(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, no
4985
5004
  return a || e !== t ? t : e;
4986
5005
  }
4987
5006
  //#endregion
5007
+ //#region src/functions/sortList.ts
5008
+ var Cr = new Intl.Collator(void 0, {
5009
+ numeric: !0,
5010
+ sensitivity: "base"
5011
+ });
5012
+ function wr(e, t, n) {
5013
+ return t.length === 0 || e.length < 2 ? e : [...e].sort((e, r) => {
5014
+ for (let { column: i, dir: a } of t) {
5015
+ if (!i) continue;
5016
+ if (n) {
5017
+ let t = n(e, r, i, a);
5018
+ if (t !== 0) return t;
5019
+ continue;
5020
+ }
5021
+ let t = H(e, i), o = H(r, i);
5022
+ if (t === o) continue;
5023
+ if (c(t)) return 1;
5024
+ if (c(o)) return -1;
5025
+ let s = a === "desc" ? -1 : 1;
5026
+ return g(t) && g(o) ? (b(t) - b(o)) * s : typeof t == "boolean" && typeof o == "boolean" ? (Number(t) - Number(o)) * s : Cr.compare(String(t), String(o)) * s;
5027
+ }
5028
+ return 0;
5029
+ });
5030
+ }
5031
+ //#endregion
4988
5032
  //#region src/functions/splice.ts
4989
- function xr(e, n, i) {
5033
+ function Tr(e, n, i) {
4990
5034
  if (t(e) && t(n)) {
4991
5035
  if (i) {
4992
5036
  let a = {}, o = !1;
4993
5037
  return r(e, (e, r) => {
4994
- !o && (i === r || i === e) ? (o = !0, a = $(a, n)) : o ? a = $(a, { [r]: e }) : a[r] = t(e) ? Z(e) : e;
5038
+ !o && (i === r || i === e) ? (o = !0, a = $(a, n)) : o ? a = $(a, { [r]: e }) : a[r] = t(e) ? Q(e) : e;
4995
5039
  }), o ? a : $(e, n);
4996
5040
  }
4997
5041
  if (t(n)) return $(e, n);
4998
5042
  }
4999
- return Z(e);
5043
+ return Q(e);
5000
5044
  }
5001
5045
  //#endregion
5002
5046
  //#region src/functions/toCamelCaseFirst.ts
5003
- function Sr(e) {
5004
- return ot(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
5047
+ function Er(e) {
5048
+ return it(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
5005
5049
  }
5006
5050
  //#endregion
5007
5051
  //#region src/functions/toKebabCase.ts
5008
- function Cr(e) {
5052
+ function Dr(e) {
5009
5053
  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());
5010
5054
  }
5011
5055
  //#endregion
5012
5056
  //#region src/functions/toNumberByMax.ts
5013
- function wr(e, t, n, r) {
5014
- let i = y(e), a = y(t);
5015
- return t && a < i ? `${Tr(a, n, r)}+` : Tr(i, n, r);
5057
+ function Or(e, t, n, r) {
5058
+ let i = b(e), a = b(t);
5059
+ return t && a < i ? `${kr(a, n, r)}+` : kr(i, n, r);
5060
+ }
5061
+ var kr = (e, t, n) => t ? new z(n).number(e) : e;
5062
+ //#endregion
5063
+ //#region src/functions/toNumberPositive.ts
5064
+ function Ar(e, t = 0) {
5065
+ if (l(e)) {
5066
+ let t = Number(e);
5067
+ if (Number.isFinite(t) && t > 0) return t;
5068
+ }
5069
+ return t;
5016
5070
  }
5017
- var Tr = (e, t, n) => t ? new L(n).number(e) : e;
5018
5071
  //#endregion
5019
5072
  //#region src/functions/toPercent.ts
5020
- function Er(e, t) {
5073
+ function jr(e, t) {
5021
5074
  return e === 0 ? t : 1 / e * t;
5022
5075
  }
5023
5076
  //#endregion
5024
5077
  //#region src/functions/toPercentBy100.ts
5025
- function Dr(e, t) {
5026
- return Er(e, t) * 100;
5078
+ function Mr(e, t) {
5079
+ return jr(e, t) * 100;
5027
5080
  }
5028
5081
  //#endregion
5029
5082
  //#region src/functions/uint8ArrayToBase64.ts
5030
- function Or(e) {
5083
+ function Nr(e) {
5031
5084
  let t = "";
5032
5085
  for (let n of e) t += String.fromCharCode(n);
5033
5086
  if (s()) return window.btoa(t);
@@ -5039,7 +5092,7 @@ function Or(e) {
5039
5092
  }
5040
5093
  //#endregion
5041
5094
  //#region src/functions/writeClipboardData.ts
5042
- async function kr(e) {
5095
+ async function Pr(e) {
5043
5096
  if (s()) try {
5044
5097
  await navigator.clipboard.writeText(e);
5045
5098
  } catch (n) {
@@ -5048,4 +5101,4 @@ async function kr(e) {
5048
5101
  }
5049
5102
  }
5050
5103
  //#endregion
5051
- export { F as Api, N as ApiCache, Be as ApiDataReturn, Ve as ApiDefault, We as ApiError, He as ApiErrorItem, Ue as ApiErrorStorage, Ge as ApiHeaders, qe as ApiHydration, Qe as ApiInstance, P as ApiMethodItem, Je as ApiPreparation, Ze as ApiResponse, Re as ApiStatus, $e as BroadcastMessage, nt as Cache, tt as CacheItem, rt as CacheStatic, Ee as Cookie, Ce as CookieBlock, Se as CookieBlockInstance, O as CookieStorage, D as DataStorage, at as Datetime, w as ErrorCenter, ue as ErrorCenterHandler, de as ErrorCenterInstance, Ne as EventItem, st as Formatters, V as FormattersType, ct as GEO_FLAG_ICON_NAME, k as Geo, lt as GeoFlag, ke as GeoInstance, L as GeoIntl, ut as GeoPhone, ft as GeoUnit, pt as Global, gt as Hash, ht as HashInstance, yt as Icons, M as Loading, Fe as LoadingInstance, Mt as Meta, G as MetaManager, At as MetaOg, Dt as MetaOpenGraphAge, Tt as MetaOpenGraphAvailability, Et as MetaOpenGraphCondition, Ot as MetaOpenGraphGender, q as MetaOpenGraphTag, wt as MetaOpenGraphType, Ct as MetaRobots, Nt as MetaStatic, K as MetaTag, jt as MetaTwitter, kt as MetaTwitterCard, J as MetaTwitterTag, Ft as Query, Pt as QueryInstance, It as ResumableTimer, Lt as ScrollbarWidth, Xt as SearchList, Ut as SearchListData, Wt as SearchListItem, Jt as SearchListMatcher, Yt as SearchListOptions, E as ServerStorage, Qt as StorageCallback, rn as TRANSLATE_GLOBAL_PREFIX, an as TRANSLATE_TIME_OUT, cn as Translate, on as TranslateFile, sn as TranslateInstance, De as UI_GEO_COOKIE_KEY, mt as UrlInstanceAbstract, Y as UrlItem, Ht as addTagHighlightMatch, x as anyToString, tn as applyTemplate, ln as arrFill, mn as blobToBase64, hn as capitalize, Z as copyObject, gn as copyObjectLite, U as createElement, _n as domQuerySelector, vn as domQuerySelectorAll, W as encodeAttribute, me as encodeLiteAttribute, Sn as ensureMaxSize, X as escapeExp, Cn as eventStopPropagation, m as executeFunction, Ye as executePromise, r as forEach, wn as frame, Tn as getArrayHighlightMatch, En as getAttributes, Dn as getClipboardData, it as getColumn, On as getCurrentDate, kn as getCurrentTime, A as getElement, jn as getElementId, yn as getElementImage, bt as getElementItem, je as getElementOrWindow, he as getElementSafeScript, Kt as getExactSearchExp, Gt as getExp, Nn as getFirst, ge as getHydrationData, B as getItemByPath, Pn as getKey, Fn as getLast, In as getLength, Ln as getLengthOfAllArray, Rn as getMaxLengthAllArray, zn as getMinLengthAllArray, Hn as getMouseClient, Bn as getMouseClientX, Vn as getMouseClientY, Un as getObjectByKeys, Wn as getObjectNoUndefined, Gn as getObjectOrNone, Kn as getOnlyText, Jn as getRandomText, o as getRequestString, qt as getSearchExp, Rt as getSeparatingSearchExp, Yn as getStepPercent, Xn as getStepValue, Qn as goScroll, $n as goScrollSmooth, er as goScrollTo, nr as handleShare, rr as inArray, Mn as initGetElementId, ir as initScrollbarOffset, ar as intersectKey, nn as isApiSuccess, i as isArray, or as isDifferent, oe as isDomData, s as isDomRuntime, sr as isElementVisible, lr as isEnter, l as isFilled, ur as isFloat, p as isFunction, Me as isInDom, cr as isInput, dr as isIntegerBetween, fr as isMetaKey, c as isNull, h as isNumber, t as isObject, n as isObjectNotArray, u as isOnLine, b as isSelected, pr as isSelectedByList, tr as isShare, d as isString, mr as isTab, Ae as isWindow, f as random, hr as removeCommonPrefix, gr as replaceComponentName, $ as replaceRecursive, vr as replaceTemplate, xn as resizeImageByMax, yr as secondToTime, xt as setElementItem, br as setValues, ee as sleep, xr as splice, qn as strFill, se as strSplit, j as toArray, ot as toCamelCase, Sr as toCamelCaseFirst, I as toDate, Cr as toKebabCase, y as toNumber, wr as toNumberByMax, Er as toPercent, Dr as toPercentBy100, a as toString, T as transformation, Or as uint8ArrayToBase64, _r as uniqueArray, kr as writeClipboardData };
5104
+ export { L as Api, P as ApiCache, ze as ApiDataReturn, Be as ApiDefault, Ue as ApiError, Ve as ApiErrorItem, He as ApiErrorStorage, We as ApiHeaders, Ke as ApiHydration, Xe as ApiInstance, F as ApiMethodItem, qe as ApiPreparation, Ye as ApiResponse, Le as ApiStatus, Ze as BroadcastMessage, et as Cache, $e as CacheItem, tt as CacheStatic, Te as Cookie, Se as CookieBlock, xe as CookieBlockInstance, k as CookieStorage, O as DataStorage, rt as Datetime, T as ErrorCenter, le as ErrorCenterHandler, ue as ErrorCenterInstance, Me as EventItem, at as Formatters, U as FormattersType, ot as GEO_FLAG_ICON_NAME, A as Geo, st as GeoFlag, Oe as GeoInstance, z as GeoIntl, ct as GeoPhone, ut as GeoUnit, dt as Global, mt as Hash, pt as HashInstance, _t as Icons, N as Loading, Pe as LoadingInstance, At as Meta, q as MetaManager, Ot as MetaOg, Tt as MetaOpenGraphAge, Ct as MetaOpenGraphAvailability, wt as MetaOpenGraphCondition, Et as MetaOpenGraphGender, Y as MetaOpenGraphTag, St as MetaOpenGraphType, xt as MetaRobots, jt as MetaStatic, J as MetaTag, kt as MetaTwitter, Dt as MetaTwitterCard, X as MetaTwitterTag, Nt as Query, Mt as QueryInstance, Pt as ResumableTimer, Ft as ScrollbarWidth, Yt as SearchList, Ht as SearchListData, Ut as SearchListItem, qt as SearchListMatcher, Jt as SearchListOptions, D as ServerStorage, Zt as StorageCallback, nn as TRANSLATE_GLOBAL_PREFIX, rn as TRANSLATE_TIME_OUT, sn as Translate, an as TranslateFile, on as TranslateInstance, Ee as UI_GEO_COOKIE_KEY, ft as UrlInstanceAbstract, Z as UrlItem, Vt as addTagHighlightMatch, S as anyToString, en as applyTemplate, cn as arrFill, pn as blobToBase64, mn as capitalize, Q as copyObject, hn as copyObjectLite, G as createElement, gn as domContentLoaded, _n as domQuerySelector, vn as domQuerySelectorAll, K as encodeAttribute, pe as encodeLiteAttribute, Sn as ensureMaxSize, It as escapeExp, Cn as eventStopPropagation, m as executeFunction, I as executePromise, r as forEach, wn as frame, Tn as getArrayHighlightMatch, En as getAttributes, Dn as getClipboardData, nt as getColumn, On as getCurrentDate, kn as getCurrentTime, j as getElement, Mn as getElementId, yn as getElementImage, vt as getElementItem, Ae as getElementOrWindow, me as getElementSafeScript, Gt as getExactSearchExp, Wt as getExp, Pn as getFirst, he as getHydrationData, H as getItemByPath, Fn as getKey, In as getLast, Ln as getLength, Rn as getLengthOfAllArray, zn as getMaxLengthAllArray, Bn as getMinLengthAllArray, Un as getMouseClient, Vn as getMouseClientX, Hn as getMouseClientY, Wn as getObjectByKeys, Gn as getObjectNoUndefined, Kn as getObjectOrNone, qn as getOnlyText, Jn as getRandomItem, Xn as getRandomText, o as getRequestString, Kt as getSearchExp, Lt as getSeparatingSearchExp, Zn as getStepPercent, Qn as getStepValue, er as goScroll, tr as goScrollSmooth, nr as goScrollTo, ir as handleShare, ar as inArray, Nn as initGetElementId, or as initScrollbarOffset, sr as intersectKey, tn as isApiSuccess, i as isArray, cr as isDifferent, ae as isDomData, s as isDomRuntime, lr as isElementVisible, dr as isEnter, l as isFilled, fr as isFloat, p as isFunction, je as isInDom, ur as isInput, pr as isIntegerBetween, mr as isMetaKey, c as isNull, g as isNumber, t as isObject, n as isObjectNotArray, u as isOnLine, x as isSelected, hr as isSelectedByList, rr as isShare, d as isString, gr as isTab, ke as isWindow, f as random, _r as removeCommonPrefix, vr as replaceComponentName, $ as replaceRecursive, br as replaceTemplate, xn as resizeImageByMax, xr as secondToTime, yt as setElementItem, Sr as setValues, ee as sleep, wr as sortList, Tr as splice, Yn as strFill, oe as strSplit, M as toArray, it as toCamelCase, Er as toCamelCaseFirst, R as toDate, Dr as toKebabCase, b as toNumber, Or as toNumberByMax, Ar as toNumberPositive, jr as toPercent, Mr as toPercentBy100, a as toString, E as transformation, Nr as uint8ArrayToBase64, yr as uniqueArray, Pr as writeClipboardData };