sprof 0.0.227 → 0.0.228

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.
@@ -8,6 +8,7 @@ export default abstract class Strings {
8
8
  static CanBeTranslited(str: string): boolean;
9
9
  static StringsEquals(str1: string, str2: string): boolean;
10
10
  static SearchIn(s1: string, s2: string): boolean;
11
+ static SearchInFields(str: string, fields: string[]): boolean;
11
12
  static FormatToPercentage(percent: number): string;
12
13
  static ApplyClassToSubStr(text: string, subStr: string, appliedClass?: string): string;
13
14
  static GetVariants(s: string): string[];
package/dist/sprof.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Xl = Object.defineProperty;
2
2
  var Yl = (t, e, i) => e in t ? Xl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
3
3
  var a = (t, e, i) => Yl(t, typeof e != "symbol" ? e + "" : e, i);
4
- import { reactive as ze, ref as T, openBlock as m, createElementBlock as w, createElementVNode as f, getCurrentInstance as Jl, inject as Ql, onUnmounted as Dr, onDeactivated as Kl, onActivated as eu, onBeforeMount as lt, defineComponent as $, computed as ue, mergeProps as It, unref as p, withModifiers as De, renderSlot as P, createTextVNode as Ui, toDisplayString as Ie, Fragment as V, normalizeClass as ne, normalizeStyle as k, mergeModels as Ee, useModel as pt, withDirectives as Je, vModelCheckbox as tu, createVNode as R, createCommentVNode as J, vModelDynamic as iu, resolveComponent as B, isRef as _e, withKeys as nu, vModelText as Lr, watch as Ze, createBlock as U, vModelRadio as su, vShow as ns, vModelSelect as ru, useCssVars as Br, onMounted as Xt, renderList as Oe, withCtx as X, resolveDirective as Hr, nextTick as ou, Transition as qr, onBeforeUnmount as ss, createStaticVNode as Nr, onUpdated as au, useTemplateRef as lu, resolveDynamicComponent as li } from "vue";
4
+ import { reactive as ze, ref as T, openBlock as m, createElementBlock as w, createElementVNode as f, getCurrentInstance as Jl, inject as Ql, onUnmounted as Dr, onDeactivated as Kl, onActivated as eu, onBeforeMount as lt, defineComponent as $, computed as ue, mergeProps as It, unref as p, withModifiers as De, renderSlot as P, createTextVNode as Ui, toDisplayString as Ie, Fragment as V, normalizeClass as se, normalizeStyle as k, mergeModels as Ee, useModel as pt, withDirectives as Je, vModelCheckbox as tu, createVNode as R, createCommentVNode as J, vModelDynamic as iu, resolveComponent as B, isRef as _e, withKeys as nu, vModelText as Lr, watch as Ze, createBlock as U, vModelRadio as su, vShow as ns, vModelSelect as ru, useCssVars as Br, onMounted as Xt, renderList as Oe, withCtx as X, resolveDirective as Hr, nextTick as ou, Transition as qr, onBeforeUnmount as ss, createStaticVNode as Nr, onUpdated as au, useTemplateRef as lu, resolveDynamicComponent as li } from "vue";
5
5
  var Ae = /* @__PURE__ */ ((t) => (t.Login = "login", t.Register = "register", t.Restore = "restore", t.Refresh = "refresh", t))(Ae || {}), xe = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Success = "success", t.Warning = "warning", t.Error = "error", t.Info = "info", t))(xe || {});
6
6
  class Rt {
7
7
  constructor(e, i, n, s) {
@@ -1444,7 +1444,7 @@ class ve {
1444
1444
  return e() + e() + "-" + e() + "-" + e() + "-" + e() + "-" + e() + e() + e();
1445
1445
  }
1446
1446
  }
1447
- class se {
1447
+ class ne {
1448
1448
  static Capitalize(e) {
1449
1449
  return e ? e[0].toUpperCase() + e.slice(1) : "";
1450
1450
  }
@@ -1453,7 +1453,7 @@ class se {
1453
1453
  ["[А-Я][а-я][A-Z][a-z]+", "[А-Я]+(?=[А-Я][а-я])", "[A-Z]+(?=[A-Z][a-z])", "[А-Я]+", "[A-Z]+", "[а-я]+", "[a-z]+", "[0-9]+"].join("|"),
1454
1454
  "g"
1455
1455
  );
1456
- return e.match(i).map((s, r) => r === 0 ? s.toLowerCase() : se.Capitalize(s.toLowerCase())).join("");
1456
+ return e.match(i).map((s, r) => r === 0 ? s.toLowerCase() : ne.Capitalize(s.toLowerCase())).join("");
1457
1457
  }
1458
1458
  static ToKebabCase(e) {
1459
1459
  return e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase();
@@ -1514,22 +1514,31 @@ class se {
1514
1514
  return /^[~`!@#$%^&*()_+=[\]\\{}|;':",.\/<>?a-zA-Z0-9-]+$/.test(e);
1515
1515
  }
1516
1516
  static StringsEquals(e, i) {
1517
- const n = e.toLowerCase().replaceAll(/\s/g, ""), s = i.toLowerCase().replaceAll(/\s/g, ""), r = se.Translit(n), o = se.Translit(s);
1517
+ const n = e.toLowerCase().replaceAll(/\s/g, ""), s = i.toLowerCase().replaceAll(/\s/g, ""), r = ne.Translit(n), o = ne.Translit(s);
1518
1518
  return n.includes(s) || r.includes(s) || n.includes(o);
1519
1519
  }
1520
1520
  static SearchIn(e, i) {
1521
- return se.StringsEquals(e, i);
1521
+ return ne.StringsEquals(e, i);
1522
+ }
1523
+ static SearchInFields(e, i) {
1524
+ let n = !1;
1525
+ for (let s = 0; s < i.length; s++)
1526
+ if (ne.SearchIn(i[s], e)) {
1527
+ n = !0;
1528
+ break;
1529
+ }
1530
+ return n;
1522
1531
  }
1523
1532
  static FormatToPercentage(e) {
1524
1533
  return `${e}%`;
1525
1534
  }
1526
1535
  static ApplyClassToSubStr(e, i, n) {
1527
- const s = n ?? "highlight-text", r = new RegExp(se.GetVariants(i).join("|"), "gi");
1536
+ const s = n ?? "highlight-text", r = new RegExp(ne.GetVariants(i).join("|"), "gi");
1528
1537
  return e.replace(r, `<span class="${s}">$&</span>`);
1529
1538
  }
1530
1539
  static GetVariants(e) {
1531
- const i = se.Translit(e);
1532
- return [e, se.Capitalize(e), e.toLowerCase(), e.toUpperCase(), i, se.Capitalize(i), i.toLowerCase(), i.toUpperCase()];
1540
+ const i = ne.Translit(e);
1541
+ return [e, ne.Capitalize(e), e.toLowerCase(), e.toUpperCase(), i, ne.Capitalize(i), i.toLowerCase(), i.toUpperCase()];
1533
1542
  }
1534
1543
  static ContainsNum(e) {
1535
1544
  return /\d/.test(e);
@@ -1603,7 +1612,7 @@ const St = class St {
1603
1612
  return (i) => Array.isArray(i) ? i.map(St.DeepMap(e)) : Object(i) === i ? Object.fromEntries(Object.entries(i).map(([n, s]) => [n, St.DeepMap(e)(s)])) : e(i);
1604
1613
  }
1605
1614
  static DeepTrim(e) {
1606
- return this.DeepMap(se.TrimText)(e);
1615
+ return this.DeepMap(ne.TrimText)(e);
1607
1616
  }
1608
1617
  };
1609
1618
  a(St, "GetClassConstructor", (e) => (i, n) => {
@@ -1713,7 +1722,7 @@ class Zr {
1713
1722
  return e ? this.isMale ? "Мужской" : "Женский" : this.isMale ? "М" : "Ж";
1714
1723
  }
1715
1724
  capitalizeName() {
1716
- this.name = se.Capitalize(this.name), this.surname = se.Capitalize(this.surname), this.patronymic = se.Capitalize(this.patronymic);
1725
+ this.name = ne.Capitalize(this.name), this.surname = ne.Capitalize(this.surname), this.patronymic = ne.Capitalize(this.patronymic);
1717
1726
  }
1718
1727
  trimName() {
1719
1728
  this.name = this.name.trim(), this.surname = this.surname.trim(), this.patronymic = this.patronymic.trim();
@@ -1872,7 +1881,7 @@ const Xr = class ni {
1872
1881
  }
1873
1882
  static OnlyIfSecondModelExists(e, i) {
1874
1883
  const n = new ni();
1875
- return n.id = kt(), n.model = se.ToCamelCase(e.GetClassName()), n.joinTableModel = se.ToCamelCase(i.GetClassName()), n.type = we.Join, n;
1884
+ return n.id = kt(), n.model = ne.ToCamelCase(e.GetClassName()), n.joinTableModel = ne.ToCamelCase(i.GetClassName()), n.type = we.Join, n;
1876
1885
  }
1877
1886
  addToSet(...e) {
1878
1887
  e.forEach((i) => {
@@ -4810,7 +4819,7 @@ let jd = (ee = class {
4810
4819
  a(ee, "Cache", en), a(ee, "Classes", F), a(ee, "CarouselSwipe", fd), a(ee, "Color", gd), a(ee, "CreateSortModels", Co), a(ee, "Cursor", pd), a(ee, "DateMask", Cd), a(ee, "Dates", st), a(ee, "Dragger", kd), a(ee, "Extension", xo), a(ee, "Favourite", Id), // static FTSP = FTSP;
4811
4820
  a(ee, "Hooks", Td), a(ee, "HttpClient", he), a(ee, "Id", ve), a(ee, "MakeCarousel", Mo), a(ee, "Period", Bn), a(ee, "PhoneService", Zn), a(ee, "Rating", zd), a(ee, "Router", gt), a(ee, "RouterGuard", Od), a(ee, "Scheduler", Fd), a(ee, "Scroll", Ld), // static Sizes = Sizes;
4812
4821
  a(ee, "Sorter", Bd), a(ee, "Static", rs), // static Statuses = Statuses;
4813
- a(ee, "Strings", se), a(ee, "Time", te), a(ee, "Timer", ci), a(ee, "Token", hi), a(ee, "Menus", ms), // static useConfirmLeavePage = useConfirmLeavePage();
4822
+ a(ee, "Strings", ne), a(ee, "Time", te), a(ee, "Timer", ci), a(ee, "Token", hi), a(ee, "Menus", ms), // static useConfirmLeavePage = useConfirmLeavePage();
4814
4823
  a(ee, "validate", Hd), a(ee, "WaitElement", qd), a(ee, "WebSocketClient", Ud), ee);
4815
4824
  class Wd {
4816
4825
  constructor() {
@@ -5255,7 +5264,7 @@ class wh {
5255
5264
  filterMenu() {
5256
5265
  return this.menu.filter((e) => {
5257
5266
  var i;
5258
- return se.SearchIn(e.name, this.filterString) || ((i = e.children) == null ? void 0 : i.some((n) => se.SearchIn(n.name, this.filterString)));
5267
+ return ne.SearchIn(e.name, this.filterString) || ((i = e.children) == null ? void 0 : i.some((n) => ne.SearchIn(n.name, this.filterString)));
5259
5268
  });
5260
5269
  }
5261
5270
  IsOpen() {
@@ -5275,7 +5284,7 @@ class wh {
5275
5284
  }
5276
5285
  GetChildren(e) {
5277
5286
  var i;
5278
- return this.filterString ? (i = e.children) == null ? void 0 : i.filter((n) => se.SearchIn(n.name, this.filterString)) : e.children;
5287
+ return this.filterString ? (i = e.children) == null ? void 0 : i.filter((n) => ne.SearchIn(n.name, this.filterString)) : e.children;
5279
5288
  }
5280
5289
  }
5281
5290
  const bh = new wh();
@@ -6224,21 +6233,21 @@ class Qt {
6224
6233
  }), e;
6225
6234
  }
6226
6235
  infoExists(e) {
6227
- const i = se.SearchIn(this.name, e), n = se.SearchIn(this.description, e), s = this.getDocuments(e);
6236
+ const i = ne.SearchIn(this.name, e), n = ne.SearchIn(this.description, e), s = this.getDocuments(e);
6228
6237
  return i || n || s.length > 0;
6229
6238
  }
6230
6239
  getDocuments(e) {
6231
- return this.pageSectionDocuments.filter((i) => se.SearchIn(i.name, e));
6240
+ return this.pageSectionDocuments.filter((i) => ne.SearchIn(i.name, e));
6232
6241
  }
6233
6242
  getDescription(e) {
6234
- return e ? se.WrapSubStr(this.description, e) : this.description;
6243
+ return e ? ne.WrapSubStr(this.description, e) : this.description;
6235
6244
  }
6236
6245
  filter(e) {
6237
6246
  if (!e) {
6238
6247
  this.text = this.description, this.documents = this.pageSectionDocuments;
6239
6248
  return;
6240
6249
  }
6241
- this.text = se.SearchIn(this.description, e) ? se.WrapSubStr(this.description, e) : "", this.documents = this.pageSectionDocuments.filter((i) => se.SearchIn(i.name, e));
6250
+ this.text = ne.SearchIn(this.description, e) ? ne.WrapSubStr(this.description, e) : "", this.documents = this.pageSectionDocuments.filter((i) => ne.SearchIn(i.name, e));
6242
6251
  }
6243
6252
  }
6244
6253
  kf([
@@ -6276,14 +6285,14 @@ class xt {
6276
6285
  e.order = this.pageSections.length + 1, e.name = `Новой раздел ${e.order}`, e.id = ve.UUID(), this.pageSections.push(e);
6277
6286
  }
6278
6287
  infoExists(e) {
6279
- const i = se.SearchIn(this.name, e), n = se.SearchIn(this.description, e), s = this.getPageSections(e).length > 0;
6288
+ const i = ne.SearchIn(this.name, e), n = ne.SearchIn(this.description, e), s = this.getPageSections(e).length > 0;
6280
6289
  return i || n || s;
6281
6290
  }
6282
6291
  getPageSections(e) {
6283
6292
  return e.length ? this.pageSections.filter((i) => i.infoExists(e)) : this.pageSections;
6284
6293
  }
6285
6294
  filter(e) {
6286
- e.length ? (this.sections = this.pageSections.filter((i) => i.infoExists(e)), this.text = se.SearchIn(this.description, e) ? se.WrapSubStr(this.description, e) : "") : (this.sections = this.pageSections, this.text = this.description), this.sections.forEach((i) => i.filter(e));
6295
+ e.length ? (this.sections = this.pageSections.filter((i) => i.infoExists(e)), this.text = ne.SearchIn(this.description, e) ? ne.WrapSubStr(this.description, e) : "") : (this.sections = this.pageSections, this.text = this.description), this.sections.forEach((i) => i.filter(e));
6287
6296
  }
6288
6297
  }
6289
6298
  Rf([
@@ -6525,7 +6534,7 @@ const Jf = "p-button", Qf = /* @__PURE__ */ $({
6525
6534
  setup(t, { emit: e }) {
6526
6535
  const i = t, n = e, s = () => {
6527
6536
  n("click");
6528
- }, r = ue(() => se.JoinSnake(Jf, i.skin)), o = ue(() => se.JoinSnake(r.value, i.type)), u = ue(() => se.JoinSnake(r.value, i.size)), l = ue(() => [r.value, o.value, u.value]);
6537
+ }, r = ue(() => ne.JoinSnake(Jf, i.skin)), o = ue(() => ne.JoinSnake(r.value, i.type)), u = ue(() => ne.JoinSnake(r.value, i.size)), l = ue(() => [r.value, o.value, u.value]);
6529
6538
  return (c, d) => (m(), w("button", It(c.$attrs, {
6530
6539
  style: {
6531
6540
  margin: t.margin,
@@ -6553,7 +6562,7 @@ const Jf = "p-button", Qf = /* @__PURE__ */ $({
6553
6562
  setup(t) {
6554
6563
  return (e, i) => (m(), w(V, null, [
6555
6564
  (m(), w("svg", {
6556
- class: ne(["icon", t.iconClass]),
6565
+ class: se(["icon", t.iconClass]),
6557
6566
  style: k({
6558
6567
  margin: t.margin,
6559
6568
  width: t.size,
@@ -7055,7 +7064,7 @@ const En = /* @__PURE__ */ new WeakMap(), vm = (t, e) => {
7055
7064
  onClick: g
7056
7065
  }, [
7057
7066
  f("div", {
7058
- class: ne(t.disabled || o.value <= t.min ? "icon-minus-disabled" : "icon-minus")
7067
+ class: se(t.disabled || o.value <= t.min ? "icon-minus-disabled" : "icon-minus")
7059
7068
  }, [
7060
7069
  R(D)
7061
7070
  ], 2)
@@ -7083,7 +7092,7 @@ const En = /* @__PURE__ */ new WeakMap(), vm = (t, e) => {
7083
7092
  onClick: h
7084
7093
  }, [
7085
7094
  f("div", {
7086
- class: ne(t.disabled || o.value >= t.max ? "icon-plus-disabled" : "icon-plus")
7095
+ class: se(t.disabled || o.value >= t.max ? "icon-plus-disabled" : "icon-plus")
7087
7096
  }, [
7088
7097
  R(Y)
7089
7098
  ], 2)
@@ -7415,7 +7424,7 @@ const En = /* @__PURE__ */ new WeakMap(), vm = (t, e) => {
7415
7424
  setup(t) {
7416
7425
  return (e, i) => (m(), w(V, null, [
7417
7426
  (m(), w("svg", {
7418
- class: ne(["icon", t.iconClass]),
7427
+ class: se(["icon", t.iconClass]),
7419
7428
  style: k({
7420
7429
  margin: t.margin,
7421
7430
  width: t.size,
@@ -7452,7 +7461,7 @@ const En = /* @__PURE__ */ new WeakMap(), vm = (t, e) => {
7452
7461
  setup(t) {
7453
7462
  return (e, i) => (m(), w(V, null, [
7454
7463
  (m(), w("svg", {
7455
- class: ne(["icon", t.iconClass]),
7464
+ class: se(["icon", t.iconClass]),
7456
7465
  style: k({
7457
7466
  margin: t.margin,
7458
7467
  width: t.size,
@@ -7619,7 +7628,7 @@ const En = /* @__PURE__ */ new WeakMap(), vm = (t, e) => {
7619
7628
  justifyContent: e.justifyContent
7620
7629
  };
7621
7630
  return (n, s) => (m(), w("div", {
7622
- class: ne(["string", t.customClass]),
7631
+ class: se(["string", t.customClass]),
7623
7632
  style: i,
7624
7633
  onClick: s[0] || (s[0] = (r) => n.$emit("click"))
7625
7634
  }, [
@@ -8031,7 +8040,7 @@ const av = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8031
8040
  "0c6d2a1f": t.gridTemplateRows,
8032
8041
  a3ccd918: t.margin
8033
8042
  })), (e, i) => (m(), w("div", {
8034
- class: ne(["grid-block", t.customClass])
8043
+ class: se(["grid-block", t.customClass])
8035
8044
  }, [
8036
8045
  P(e.$slots, "default", {}, void 0, !0)
8037
8046
  ], 2));
@@ -8098,7 +8107,7 @@ const lg = { class: "container" }, ug = { class: "slide-box" }, cg = { class: "i
8098
8107
  f("div", ug, [
8099
8108
  (m(!0), w(V, null, Oe(p(o), (C, M) => (m(), w("div", {
8100
8109
  key: M,
8101
- class: ne({
8110
+ class: se({
8102
8111
  animationnext: p(s) === p(dt).Next,
8103
8112
  animationprev: p(s) === p(dt).Prev
8104
8113
  })
@@ -8611,14 +8620,14 @@ const ga = /* @__PURE__ */ A(yg, [["render", bg], ["__scopeId", "data-v-d28c6f33
8611
8620
  onClick: Q[2] || (Q[2] = De((Si) => d(), ["prevent", "stop"]))
8612
8621
  }, [
8613
8622
  f("div", {
8614
- class: ne(["body", p(s)]),
8623
+ class: se(["body", p(s)]),
8615
8624
  style: k(p(y)),
8616
8625
  onMouseenter: Q[0] || (Q[0] = (Si) => t.withHover ? r.value = !0 : r.value = !1),
8617
8626
  onMouseleave: Q[1] || (Q[1] = (Si) => r.value = !1)
8618
8627
  }, [
8619
8628
  p(o) ? J("", !0) : (m(), w("div", {
8620
8629
  key: 0,
8621
- class: ne(["close-window", t.customClass]),
8630
+ class: se(["close-window", t.customClass]),
8622
8631
  style: k(p(x))
8623
8632
  }, [
8624
8633
  P(H.$slots, "default", {}, void 0, !0)
@@ -8797,7 +8806,7 @@ const ga = /* @__PURE__ */ A(yg, [["render", bg], ["__scopeId", "data-v-d28c6f33
8797
8806
  setup(t) {
8798
8807
  return (e, i) => (m(), w(V, null, [
8799
8808
  (m(), w("svg", {
8800
- class: ne(["icon", t.iconClass]),
8809
+ class: se(["icon", t.iconClass]),
8801
8810
  style: k({
8802
8811
  margin: t.margin,
8803
8812
  width: t.size,
@@ -8909,7 +8918,7 @@ const ga = /* @__PURE__ */ A(yg, [["render", bg], ["__scopeId", "data-v-d28c6f33
8909
8918
  default: X(() => [
8910
8919
  p(ct).IsVisible() ? (m(), w("div", {
8911
8920
  key: 0,
8912
- class: ne(p(e))
8921
+ class: se(p(e))
8913
8922
  }, [
8914
8923
  R(s, {
8915
8924
  title: p(ct).GetTitle(),
@@ -9581,17 +9590,17 @@ const Ra = /* @__PURE__ */ A(Zg, [["render", Xg], ["__scopeId", "data-v-0f1f2f84
9581
9590
  ]),
9582
9591
  f("div", C1, [
9583
9592
  f("div", {
9584
- class: ne(["switch-knob1", { active: t.firstModel.valueEq(p(c)) }]),
9593
+ class: se(["switch-knob1", { active: t.firstModel.valueEq(p(c)) }]),
9585
9594
  style: k(s()),
9586
9595
  onClick: g[3] || (g[3] = (x) => d(t.firstModel))
9587
9596
  }, null, 6),
9588
9597
  f("div", {
9589
- class: ne(["switch-knob2", { active: !p(c) }]),
9598
+ class: se(["switch-knob2", { active: !p(c) }]),
9590
9599
  style: k(r()),
9591
9600
  onClick: g[4] || (g[4] = (x) => d())
9592
9601
  }, null, 6),
9593
9602
  f("div", {
9594
- class: ne(["switch-knob3", { active: t.secondModel.valueEq(p(c)) }]),
9603
+ class: se(["switch-knob3", { active: t.secondModel.valueEq(p(c)) }]),
9595
9604
  style: k(o()),
9596
9605
  onClick: g[5] || (g[5] = (x) => d(t.secondModel))
9597
9606
  }, null, 6),
@@ -9789,7 +9798,7 @@ const lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9789
9798
  const e = T(!1);
9790
9799
  return (i, n) => (m(), w(V, null, [
9791
9800
  (m(), w("svg", {
9792
- class: ne(["icon", t.iconClass]),
9801
+ class: se(["icon", t.iconClass]),
9793
9802
  style: k({
9794
9803
  margin: t.margin,
9795
9804
  width: t.size,
@@ -9830,7 +9839,7 @@ const lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9830
9839
  const e = T(!1);
9831
9840
  return (i, n) => (m(), w(V, null, [
9832
9841
  (m(), w("svg", {
9833
- class: ne(["icon", t.iconClass]),
9842
+ class: se(["icon", t.iconClass]),
9834
9843
  style: k({
9835
9844
  margin: t.margin,
9836
9845
  width: t.size,
@@ -9868,7 +9877,7 @@ const lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9868
9877
  setup(t) {
9869
9878
  return (e, i) => (m(), w(V, null, [
9870
9879
  (m(), w("svg", {
9871
- class: ne(["icon", t.iconClass]),
9880
+ class: se(["icon", t.iconClass]),
9872
9881
  style: k({
9873
9882
  margin: t.margin,
9874
9883
  width: t.size,
@@ -9906,7 +9915,7 @@ const lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9906
9915
  setup(t) {
9907
9916
  return (e, i) => (m(), w(V, null, [
9908
9917
  (m(), w("svg", {
9909
- class: ne(["icon", t.iconClass]),
9918
+ class: se(["icon", t.iconClass]),
9910
9919
  style: k({
9911
9920
  margin: t.margin,
9912
9921
  width: t.size,
@@ -9947,7 +9956,7 @@ const lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9947
9956
  setup(t) {
9948
9957
  return (e, i) => (m(), w(V, null, [
9949
9958
  (m(), w("svg", {
9950
- class: ne(["icon", t.iconClass]),
9959
+ class: se(["icon", t.iconClass]),
9951
9960
  style: k({
9952
9961
  margin: t.margin,
9953
9962
  width: t.size,
@@ -9984,7 +9993,7 @@ const lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9984
9993
  setup(t) {
9985
9994
  return (e, i) => (m(), w(V, null, [
9986
9995
  (m(), w("svg", {
9987
- class: ne(["icon", t.iconClass]),
9996
+ class: se(["icon", t.iconClass]),
9988
9997
  style: k({
9989
9998
  margin: t.margin,
9990
9999
  width: t.size,
@@ -10021,7 +10030,7 @@ const lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10021
10030
  setup(t) {
10022
10031
  return (e, i) => (m(), w(V, null, [
10023
10032
  (m(), w("svg", {
10024
- class: ne(["icon", t.iconClass]),
10033
+ class: se(["icon", t.iconClass]),
10025
10034
  style: k({
10026
10035
  margin: t.margin,
10027
10036
  width: t.size,
@@ -10061,7 +10070,7 @@ const lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10061
10070
  const e = T(!1);
10062
10071
  return (i, n) => (m(), w(V, null, [
10063
10072
  (m(), w("svg", {
10064
- class: ne(["icon", t.iconClass]),
10073
+ class: se(["icon", t.iconClass]),
10065
10074
  style: k({
10066
10075
  margin: t.margin,
10067
10076
  width: t.size,
@@ -10101,7 +10110,7 @@ const lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10101
10110
  const e = T(!1);
10102
10111
  return (i, n) => (m(), w(V, null, [
10103
10112
  (m(), w("svg", {
10104
- class: ne(["icon", t.iconClass]),
10113
+ class: se(["icon", t.iconClass]),
10105
10114
  style: k({
10106
10115
  margin: t.margin,
10107
10116
  width: t.size,
@@ -10141,7 +10150,7 @@ const lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10141
10150
  const e = T(!1);
10142
10151
  return (i, n) => (m(), w(V, null, [
10143
10152
  (m(), w("svg", {
10144
- class: ne(["icon", t.iconClass]),
10153
+ class: se(["icon", t.iconClass]),
10145
10154
  style: k({
10146
10155
  margin: t.margin,
10147
10156
  width: t.size,
@@ -10181,7 +10190,7 @@ const lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10181
10190
  const e = T(!1);
10182
10191
  return (i, n) => (m(), w(V, null, [
10183
10192
  (m(), w("svg", {
10184
- class: ne(["icon", t.iconClass]),
10193
+ class: se(["icon", t.iconClass]),
10185
10194
  style: k({
10186
10195
  margin: t.margin,
10187
10196
  width: t.size,
@@ -10221,7 +10230,7 @@ const lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10221
10230
  const e = T(!1);
10222
10231
  return (i, n) => (m(), w(V, null, [
10223
10232
  (m(), w("svg", {
10224
- class: ne(["icon", t.iconClass]),
10233
+ class: se(["icon", t.iconClass]),
10225
10234
  style: k({
10226
10235
  margin: t.margin,
10227
10236
  width: t.size,
@@ -10369,7 +10378,7 @@ function Z1(t, e, i, n, s, r) {
10369
10378
  ], !0)
10370
10379
  ], 4),
10371
10380
  f("div", {
10372
- class: ne(["tools-bar", { "hidden-part": t.showToolsOnHover }])
10381
+ class: se(["tools-bar", { "hidden-part": t.showToolsOnHover }])
10373
10382
  }, [
10374
10383
  P(t.$slots, "tools", {}, void 0, !0)
10375
10384
  ], 2)
@@ -10377,7 +10386,7 @@ function Z1(t, e, i, n, s, r) {
10377
10386
  ], 8, V1),
10378
10387
  f("div", {
10379
10388
  style: k({ maxHeight: t.isCollaps ? "" : "1000000vh", background: t.changeColor ? t.background : t.backgroundAttention }),
10380
- class: ne(t.collapsed ? "tab-content-down" : "tab-content-up")
10389
+ class: se(t.collapsed ? "tab-content-down" : "tab-content-up")
10381
10390
  }, [
10382
10391
  P(t.$slots, "default", {}, void 0, !0)
10383
10392
  ], 6)
@@ -10715,7 +10724,7 @@ const tl = /* @__PURE__ */ A(G1, [["render", Z1], ["__scopeId", "data-v-c2e31ebb
10715
10724
  default: X(() => [
10716
10725
  p(Fe).IsVisible() ? (m(), w("div", {
10717
10726
  key: 0,
10718
- class: ne(p(e))
10727
+ class: se(p(e))
10719
10728
  }, [
10720
10729
  R(As, {
10721
10730
  title: p(Fe).GetTitle(),
@@ -11015,7 +11024,7 @@ const cv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11015
11024
  }, [
11016
11025
  (m(!0), w(V, null, Oe(t.menus.items, (g, y) => (m(), w("div", { key: y }, [
11017
11026
  f("div", {
11018
- class: ne({ "selected-tab": y === t.menus.idx, tab: y !== t.menus.idx }),
11027
+ class: se({ "selected-tab": y === t.menus.idx, tab: y !== t.menus.idx }),
11019
11028
  style: k({
11020
11029
  minHeight: t.tabHeight,
11021
11030
  maxHeight: t.tabHeight
@@ -12707,7 +12716,7 @@ const t0 = { class: "background-container" }, i0 = { class: "dialog-footer" }, n
12707
12716
  setup(t) {
12708
12717
  return (e, i) => (m(), w(V, null, [
12709
12718
  (m(), w("svg", {
12710
- class: ne(["icon", t.iconClass]),
12719
+ class: se(["icon", t.iconClass]),
12711
12720
  style: k({
12712
12721
  margin: t.margin,
12713
12722
  width: t.size,
@@ -12745,7 +12754,7 @@ const t0 = { class: "background-container" }, i0 = { class: "dialog-footer" }, n
12745
12754
  setup(t) {
12746
12755
  return (e, i) => (m(), w(V, null, [
12747
12756
  (m(), w("svg", {
12748
- class: ne(["icon", t.iconClass]),
12757
+ class: se(["icon", t.iconClass]),
12749
12758
  style: k({
12750
12759
  margin: t.margin,
12751
12760
  width: t.size,
@@ -12783,7 +12792,7 @@ const t0 = { class: "background-container" }, i0 = { class: "dialog-footer" }, n
12783
12792
  setup(t) {
12784
12793
  return (e, i) => (m(), w(V, null, [
12785
12794
  (m(), w("svg", {
12786
- class: ne(["icon", t.iconClass]),
12795
+ class: se(["icon", t.iconClass]),
12787
12796
  style: k({
12788
12797
  margin: t.margin,
12789
12798
  width: t.size,
@@ -11,7 +11,7 @@
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
14
- ***************************************************************************** */var Sr;(function(t){(function(e){var n=typeof globalThis=="object"?globalThis:typeof Cr=="object"?Cr:typeof self=="object"?self:typeof this=="object"?this:d(),r=s(t);typeof n.Reflect<"u"&&(r=s(n.Reflect,r)),e(r,n),typeof n.Reflect>"u"&&(n.Reflect=t);function s(c,u){return function(h,f){Object.defineProperty(c,h,{configurable:!0,writable:!0,value:f}),u&&u(h,f)}}function o(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function d(){return o()||a()}})(function(e,n){var r=Object.prototype.hasOwnProperty,s=typeof Symbol=="function",o=s&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=s&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",d=typeof Object.create=="function",c={__proto__:[]}instanceof Array,u=!d&&!c,h={create:d?function(){return cr(Object.create(null))}:c?function(){return cr({__proto__:null})}:function(){return cr({})},has:u?function(p,y){return r.call(p,y)}:function(p,y){return y in p},get:u?function(p,y){return r.call(p,y)?p[y]:void 0}:function(p,y){return p[y]}},f=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Zp(),g=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Xp(),C=typeof WeakMap=="function"?WeakMap:Yp(),b=s?Symbol.for("@reflect-metadata:registry"):void 0,S=jp(),I=Wp(S);function O(p,y,k,x){if(T(k)){if(!qa(p))throw new TypeError;if(!Ua(y))throw new TypeError;return Fp(p,y)}else{if(!qa(p))throw new TypeError;if(!ne(y))throw new TypeError;if(!ne(x)&&!T(x)&&!vt(x))throw new TypeError;return vt(x)&&(x=void 0),k=Le(k),Op(p,y,k,x)}}e("decorate",O);function z(p,y){function k(x,V){if(!ne(x))throw new TypeError;if(!T(V)&&!Up(V))throw new TypeError;Fa(p,y,x,V)}return k}e("metadata",z);function R(p,y,k,x){if(!ne(k))throw new TypeError;return T(x)||(x=Le(x)),Fa(p,y,k,x)}e("defineMetadata",R);function H(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=Le(k)),za(p,y,k)}e("hasMetadata",H);function Be(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=Le(k)),or(p,y,k)}e("hasOwnMetadata",Be);function $e(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=Le(k)),Va(p,y,k)}e("getMetadata",$e);function nt(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=Le(k)),Ta(p,y,k)}e("getOwnMetadata",nt);function It(p,y){if(!ne(p))throw new TypeError;return T(y)||(y=Le(y)),Oa(p,y)}e("getMetadataKeys",It);function jn(p,y){if(!ne(p))throw new TypeError;return T(y)||(y=Le(y)),Da(p,y)}e("getOwnMetadataKeys",jn);function Tp(p,y,k){if(!ne(y))throw new TypeError;if(T(k)||(k=Le(k)),!ne(y))throw new TypeError;T(k)||(k=Le(k));var x=Gt(y,k,!1);return T(x)?!1:x.OrdinaryDeleteMetadata(p,y,k)}e("deleteMetadata",Tp);function Fp(p,y){for(var k=p.length-1;k>=0;--k){var x=p[k],V=x(y);if(!T(V)&&!vt(V)){if(!Ua(V))throw new TypeError;y=V}}return y}function Op(p,y,k,x){for(var V=p.length-1;V>=0;--V){var ae=p[V],ie=ae(y,k,x);if(!T(ie)&&!vt(ie)){if(!ne(ie))throw new TypeError;x=ie}}return x}function za(p,y,k){var x=or(p,y,k);if(x)return!0;var V=lr(y);return vt(V)?!1:za(p,V,k)}function or(p,y,k){var x=Gt(y,k,!1);return T(x)?!1:Ha(x.OrdinaryHasOwnMetadata(p,y,k))}function Va(p,y,k){var x=or(p,y,k);if(x)return Ta(p,y,k);var V=lr(y);if(!vt(V))return Va(p,V,k)}function Ta(p,y,k){var x=Gt(y,k,!1);if(!T(x))return x.OrdinaryGetOwnMetadata(p,y,k)}function Fa(p,y,k,x){var V=Gt(k,x,!0);V.OrdinaryDefineOwnMetadata(p,y,k,x)}function Oa(p,y){var k=Da(p,y),x=lr(p);if(x===null)return k;var V=Oa(x,y);if(V.length<=0)return k;if(k.length<=0)return V;for(var ae=new g,ie=[],q=0,M=k;q<M.length;q++){var $=M[q],v=ae.has($);v||(ae.add($),ie.push($))}for(var N=0,U=V;N<U.length;N++){var $=U[N],v=ae.has($);v||(ae.add($),ie.push($))}return ie}function Da(p,y){var k=Gt(p,y,!1);return k?k.OrdinaryOwnMetadataKeys(p,y):[]}function La(p){if(p===null)return 1;switch(typeof p){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return p===null?1:6;default:return 6}}function T(p){return p===void 0}function vt(p){return p===null}function Dp(p){return typeof p=="symbol"}function ne(p){return typeof p=="object"?p!==null:typeof p=="function"}function Lp(p,y){switch(La(p)){case 0:return p;case 1:return p;case 2:return p;case 3:return p;case 4:return p;case 5:return p}var k="string",x=_a(p,o);if(x!==void 0){var V=x.call(p,k);if(ne(V))throw new TypeError;return V}return Hp(p)}function Hp(p,y){var k,x;{var V=p.toString;if(Wn(V)){var x=V.call(p);if(!ne(x))return x}var k=p.valueOf;if(Wn(k)){var x=k.call(p);if(!ne(x))return x}}throw new TypeError}function Ha(p){return!!p}function qp(p){return""+p}function Le(p){var y=Lp(p);return Dp(y)?y:qp(y)}function qa(p){return Array.isArray?Array.isArray(p):p instanceof Object?p instanceof Array:Object.prototype.toString.call(p)==="[object Array]"}function Wn(p){return typeof p=="function"}function Ua(p){return typeof p=="function"}function Up(p){switch(La(p)){case 3:return!0;case 4:return!0;default:return!1}}function ar(p,y){return p===y||p!==p&&y!==y}function _a(p,y){var k=p[y];if(k!=null){if(!Wn(k))throw new TypeError;return k}}function ja(p){var y=_a(p,a);if(!Wn(y))throw new TypeError;var k=y.call(p);if(!ne(k))throw new TypeError;return k}function Wa(p){return p.value}function Ga(p){var y=p.next();return y.done?!1:y}function Za(p){var y=p.return;y&&y.call(p)}function lr(p){var y=Object.getPrototypeOf(p);if(typeof p!="function"||p===f||y!==f)return y;var k=p.prototype,x=k&&Object.getPrototypeOf(k);if(x==null||x===Object.prototype)return y;var V=x.constructor;return typeof V!="function"||V===p?y:V}function _p(){var p;!T(b)&&typeof n.Reflect<"u"&&!(b in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(p=Gp(n.Reflect));var y,k,x,V=new C,ae={registerProvider:ie,getProvider:M,setProvider:v};return ae;function ie(N){if(!Object.isExtensible(ae))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case p===N:break;case T(y):y=N;break;case y===N:break;case T(k):k=N;break;case k===N:break;default:x===void 0&&(x=new g),x.add(N);break}}function q(N,U){if(!T(y)){if(y.isProviderFor(N,U))return y;if(!T(k)){if(k.isProviderFor(N,U))return y;if(!T(x))for(var X=ja(x);;){var Q=Ga(X);if(!Q)return;var Ae=Wa(Q);if(Ae.isProviderFor(N,U))return Za(X),Ae}}}if(!T(p)&&p.isProviderFor(N,U))return p}function M(N,U){var X=V.get(N),Q;return T(X)||(Q=X.get(U)),T(Q)&&(Q=q(N,U),T(Q)||(T(X)&&(X=new m,V.set(N,X)),X.set(U,Q))),Q}function $(N){if(T(N))throw new TypeError;return y===N||k===N||!T(x)&&x.has(N)}function v(N,U,X){if(!$(X))throw new Error("Metadata provider not registered.");var Q=M(N,U);if(Q!==X){if(!T(Q))return!1;var Ae=V.get(N);T(Ae)&&(Ae=new m,V.set(N,Ae)),Ae.set(U,X)}return!0}}function jp(){var p;return!T(b)&&ne(n.Reflect)&&Object.isExtensible(n.Reflect)&&(p=n.Reflect[b]),T(p)&&(p=_p()),!T(b)&&ne(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:p}),p}function Wp(p){var y=new C,k={isProviderFor:function($,v){var N=y.get($);return T(N)?!1:N.has(v)},OrdinaryDefineOwnMetadata:ie,OrdinaryHasOwnMetadata:V,OrdinaryGetOwnMetadata:ae,OrdinaryOwnMetadataKeys:q,OrdinaryDeleteMetadata:M};return S.registerProvider(k),k;function x($,v,N){var U=y.get($),X=!1;if(T(U)){if(!N)return;U=new m,y.set($,U),X=!0}var Q=U.get(v);if(T(Q)){if(!N)return;if(Q=new m,U.set(v,Q),!p.setProvider($,v,k))throw U.delete(v),X&&y.delete($),new Error("Wrong provider for target.")}return Q}function V($,v,N){var U=x(v,N,!1);return T(U)?!1:Ha(U.has($))}function ae($,v,N){var U=x(v,N,!1);if(!T(U))return U.get($)}function ie($,v,N,U){var X=x(N,U,!0);X.set($,v)}function q($,v){var N=[],U=x($,v,!1);if(T(U))return N;for(var X=U.keys(),Q=ja(X),Ae=0;;){var Xa=Ga(Q);if(!Xa)return N.length=Ae,N;var Jp=Wa(Xa);try{N[Ae]=Jp}catch(Qp){try{Za(Q)}finally{throw Qp}}Ae++}}function M($,v,N){var U=x(v,N,!1);if(T(U)||!U.delete($))return!1;if(U.size===0){var X=y.get(v);T(X)||(X.delete(N),X.size===0&&y.delete(X))}return!0}}function Gp(p){var y=p.defineMetadata,k=p.hasOwnMetadata,x=p.getOwnMetadata,V=p.getOwnMetadataKeys,ae=p.deleteMetadata,ie=new C,q={isProviderFor:function(M,$){var v=ie.get(M);return!T(v)&&v.has($)?!0:V(M,$).length?(T(v)&&(v=new g,ie.set(M,v)),v.add($),!0):!1},OrdinaryDefineOwnMetadata:y,OrdinaryHasOwnMetadata:k,OrdinaryGetOwnMetadata:x,OrdinaryOwnMetadataKeys:V,OrdinaryDeleteMetadata:ae};return q}function Gt(p,y,k){var x=S.getProvider(p,y);if(!T(x))return x;if(k){if(S.setProvider(p,y,I))return I;throw new Error("Illegal state.")}}function Zp(){var p={},y=[],k=function(){function q(M,$,v){this._index=0,this._keys=M,this._values=$,this._selector=v}return q.prototype["@@iterator"]=function(){return this},q.prototype[a]=function(){return this},q.prototype.next=function(){var M=this._index;if(M>=0&&M<this._keys.length){var $=this._selector(this._keys[M],this._values[M]);return M+1>=this._keys.length?(this._index=-1,this._keys=y,this._values=y):this._index++,{value:$,done:!1}}return{value:void 0,done:!0}},q.prototype.throw=function(M){throw this._index>=0&&(this._index=-1,this._keys=y,this._values=y),M},q.prototype.return=function(M){return this._index>=0&&(this._index=-1,this._keys=y,this._values=y),{value:M,done:!0}},q}(),x=function(){function q(){this._keys=[],this._values=[],this._cacheKey=p,this._cacheIndex=-2}return Object.defineProperty(q.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),q.prototype.has=function(M){return this._find(M,!1)>=0},q.prototype.get=function(M){var $=this._find(M,!1);return $>=0?this._values[$]:void 0},q.prototype.set=function(M,$){var v=this._find(M,!0);return this._values[v]=$,this},q.prototype.delete=function(M){var $=this._find(M,!1);if($>=0){for(var v=this._keys.length,N=$+1;N<v;N++)this._keys[N-1]=this._keys[N],this._values[N-1]=this._values[N];return this._keys.length--,this._values.length--,ar(M,this._cacheKey)&&(this._cacheKey=p,this._cacheIndex=-2),!0}return!1},q.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=p,this._cacheIndex=-2},q.prototype.keys=function(){return new k(this._keys,this._values,V)},q.prototype.values=function(){return new k(this._keys,this._values,ae)},q.prototype.entries=function(){return new k(this._keys,this._values,ie)},q.prototype["@@iterator"]=function(){return this.entries()},q.prototype[a]=function(){return this.entries()},q.prototype._find=function(M,$){if(!ar(this._cacheKey,M)){this._cacheIndex=-1;for(var v=0;v<this._keys.length;v++)if(ar(this._keys[v],M)){this._cacheIndex=v;break}}return this._cacheIndex<0&&$&&(this._cacheIndex=this._keys.length,this._keys.push(M),this._values.push(void 0)),this._cacheIndex},q}();return x;function V(q,M){return q}function ae(q,M){return M}function ie(q,M){return[q,M]}}function Xp(){var p=function(){function y(){this._map=new m}return Object.defineProperty(y.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),y.prototype.has=function(k){return this._map.has(k)},y.prototype.add=function(k){return this._map.set(k,k),this},y.prototype.delete=function(k){return this._map.delete(k)},y.prototype.clear=function(){this._map.clear()},y.prototype.keys=function(){return this._map.keys()},y.prototype.values=function(){return this._map.keys()},y.prototype.entries=function(){return this._map.entries()},y.prototype["@@iterator"]=function(){return this.keys()},y.prototype[a]=function(){return this.keys()},y}();return p}function Yp(){var p=16,y=h.create(),k=x();return function(){function M(){this._key=x()}return M.prototype.has=function($){var v=V($,!1);return v!==void 0?h.has(v,this._key):!1},M.prototype.get=function($){var v=V($,!1);return v!==void 0?h.get(v,this._key):void 0},M.prototype.set=function($,v){var N=V($,!0);return N[this._key]=v,this},M.prototype.delete=function($){var v=V($,!1);return v!==void 0?delete v[this._key]:!1},M.prototype.clear=function(){this._key=x()},M}();function x(){var M;do M="@@WeakMap@@"+q();while(h.has(y,M));return y[M]=!0,M}function V(M,$){if(!r.call(M,k)){if(!$)return;Object.defineProperty(M,k,{value:h.create()})}return M[k]}function ae(M,$){for(var v=0;v<$;++v)M[v]=Math.random()*255|0;return M}function ie(M){if(typeof Uint8Array=="function"){var $=new Uint8Array(M);return typeof crypto<"u"?crypto.getRandomValues($):typeof msCrypto<"u"?msCrypto.getRandomValues($):ae($,M),$}return ae(new Array(M),M)}function q(){var M=ie(p);M[6]=M[6]&79|64,M[8]=M[8]&191|128;for(var $="",v=0;v<p;++v){var N=M[v];(v===4||v===6||v===8)&&($+="-"),N<16&&($+="0"),$+=N.toString(16).toLowerCase()}return $}}function cr(p){return p.__=void 0,delete p.__,p}})})(Sr||(Sr={}));let tn;const hl=new Uint8Array(16);function fl(){if(!tn&&(tn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!tn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return tn(hl)}const de=[];for(let t=0;t<256;++t)de.push((t+256).toString(16).slice(1));function ml(t,e=0){return de[t[e+0]]+de[t[e+1]]+de[t[e+2]]+de[t[e+3]]+"-"+de[t[e+4]]+de[t[e+5]]+"-"+de[t[e+6]]+de[t[e+7]]+"-"+de[t[e+8]]+de[t[e+9]]+"-"+de[t[e+10]]+de[t[e+11]]+de[t[e+12]]+de[t[e+13]]+de[t[e+14]]+de[t[e+15]]}const kr={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Xe(t,e,n){if(kr.randomUUID&&!t)return kr.randomUUID();t=t||{};const r=t.random||(t.rng||fl)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,ml(r)}class ee{static UUID(){return Xe()}static GUID(){const e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}class j{static Capitalize(e){return e?e[0].toUpperCase()+e.slice(1):""}static ToCamelCase(e){const n=new RegExp(["[А-Я][а-я][A-Z][a-z]+","[А-Я]+(?=[А-Я][а-я])","[A-Z]+(?=[A-Z][a-z])","[А-Я]+","[A-Z]+","[а-я]+","[a-z]+","[0-9]+"].join("|"),"g");return e.match(n).map((s,o)=>o===0?s.toLowerCase():j.Capitalize(s.toLowerCase())).join("")}static ToKebabCase(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}static GetStringBetweenChars(e,n,r){return e.substring(e.indexOf(n)+2,e.lastIndexOf(r))}static Translit(e,n){const r={q:"й",w:"ц",e:"у",r:"к",t:"е",y:"н",u:"г",i:"ш",o:"щ",p:"з","[":"х","]":"ъ",a:"ф",s:"ы",d:"в",f:"а",g:"п",h:"р",j:"о",k:"л",l:"д",";":"ж","'":"э",z:"я",x:"ч",c:"с",v:"м",b:"и",n:"т",m:"ь",",":"б",".":"ю","/":"."};return n&&/[а-яА-Я]/g.test(e)?e.replace(/[А-я/,.;'\][]/g,s=>{if(s===s.toLowerCase()){const a=Object.keys(r).find(d=>r[d]===s);return a||""}const o=Object.keys(r).find(a=>r[a]===s.toLowerCase());return o?o.toUpperCase():""}):e.replace(/[A-z/,.;'\][]/g,s=>s===s.toLowerCase()?r[s]:r[s.toLowerCase()].toUpperCase())}static RemoveEmoji(e){const n=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;return e.replace(n,"")}static CanBeTranslited(e){return/^[~`!@#$%^&*()_+=[\]\\{}|;':",.\/<>?a-zA-Z0-9-]+$/.test(e)}static StringsEquals(e,n){const r=e.toLowerCase().replaceAll(/\s/g,""),s=n.toLowerCase().replaceAll(/\s/g,""),o=j.Translit(r),a=j.Translit(s);return r.includes(s)||o.includes(s)||r.includes(a)}static SearchIn(e,n){return j.StringsEquals(e,n)}static FormatToPercentage(e){return`${e}%`}static ApplyClassToSubStr(e,n,r){const s=r??"highlight-text",o=new RegExp(j.GetVariants(n).join("|"),"gi");return e.replace(o,`<span class="${s}">$&</span>`)}static GetVariants(e){const n=j.Translit(e);return[e,j.Capitalize(e),e.toLowerCase(),e.toUpperCase(),n,j.Capitalize(n),n.toLowerCase(),n.toUpperCase()]}static ContainsNum(e){return/\d/.test(e)}static JoinSnake(...e){return e.join("_")}static GetDynamicCountName(e,n){const r=[2,0,1,1,1,2];return e.length+" "+n[e.length%100>4&&e.length%100<20?2:r[e.length%10<5?e.length%10:5]]}static TrimText(e){return typeof e=="string"?e.trim():e}}const Ke=class Ke{static BuildClass(e,n){n&&Object.keys(n).forEach(r=>{const s=n[r];if(this.isPrimitive(s))e[r]instanceof Date?e[r]=new Date(s):e[r]=s;else if(s!=null&&!Array.isArray(s))if(e[r]&&e[r].constructor)e[r]=new e[r].constructor(s);else{const o=Reflect.getMetadata(r,e);o&&(e[r]=new o[r](s))}if(Array.isArray(s)){if(s.length===0)return;const o=Reflect.getMetadata(r,e);o&&(e[r]=s.map(a=>new o[r](a)))}})}static isPrimitive(e){return e!==null&&typeof e<"u"&&e!==Object(e)}static RemoveFromClassByIndex(e,n,r){Ke.RemoveFromClass(e,n,r)}static RemoveFromClassById(e,n,r){if(!e)return;const s=n.findIndex(o=>o.id===e);Ke.RemoveFromClass(s,n,r)}static RemoveFromClass(e,n,r){if(e<0)return;const s=n[e].id;s&&r&&r.push(s),n.splice(e,1)}static GetPropertyName(e){const n=new e;return new Proxy(n,{get(r,s){return s}})}static InitClassInstance(e,n){const r=e.constructor(n);return Ke.BuildClass(r),r.id=ee.UUID(),r}static ExistsWithId(e,n){return e.some(r=>r.id===n)}static DeepMap(e){return n=>Array.isArray(n)?n.map(Ke.DeepMap(e)):Object(n)===n?Object.fromEntries(Object.entries(n).map(([r,s])=>[r,Ke.DeepMap(e)(s)])):e(n)}static DeepTrim(e){return this.DeepMap(j.TrimText)(e)}};l(Ke,"GetClassConstructor",e=>(n,r)=>{const s=Reflect.getMetadata(`property:${r}`,n)||{};s[r]=e,Reflect.defineMetadata(r,s,n)});let B=Ke;class rt{constructor(e){l(this,"id");l(this,"address");l(this,"description");l(this,"contactId");B.BuildClass(this,e)}static Create(){const e=new rt;return e.id=ee.UUID(),e}}class Kn{static Setup(e){this.staticUrl=e}static get StaticUrl(){return this.staticUrl}}l(Kn,"staticUrl","");class fe{constructor(e){l(this,"name","");l(this,"url","");l(this,"src","");l(this,"raw");l(this,"blob");l(this,"file");l(this,"type","");l(this,"id");l(this,"originalName","");l(this,"fileSystemPath","");l(this,"itemId");l(this,"itemOneId");l(this,"description","");l(this,"order",0);B.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${Kn.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ie&&Ie.tagName.toUpperCase()==="SCRIPT"&&Ie.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,n){const r=new fe;return r.id=n??ee.UUID(),r.originalName=e.name,r.file=e.blob,r.fileSystemPath=ee.UUID(),r}setFile(e){this.id||(this.id=ee.UUID()),this.originalName=e.name,this.file=e.blob,this.fileSystemPath=ee.UUID(),this.url=e.src}clearFile(){this.url="",this.file=void 0,this.fileSystemPath="",this.originalName=""}errorImg(e,n){if(e.target){let r="";return n&&(r=`@/assets/img/${n}`),new URL(r,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ie&&Ie.tagName.toUpperCase()==="SCRIPT"&&Ie.src||new URL("sprof.umd.cjs",document.baseURI).href)}}getFileInfos(){return[this]}isPdf(){return this.getExtension(this.originalName)===""}getExtension(e){const n=e.split(".");return n[n.length-1]}}class Er{constructor(e){l(this,"id");l(this,"name","");l(this,"surname","");l(this,"patronymic","");l(this,"isMale",!0);l(this,"dateBirth",new Date);l(this,"contactId");l(this,"slug","");l(this,"postIndex","");l(this,"address","");l(this,"editNameMode",!1);B.BuildClass(this,e)}setEditNameMode(e){this.editNameMode=e}getFullName(){return!this.surname.length&&!this.name.length&&!this.patronymic.length?"":`${this.surname} ${this.name} ${this.patronymic}`}getInitialsName(){return`${this.name.slice(0,1)}.${this.patronymic.slice(0,1)}. ${this.surname}`}getGender(e){return e?this.isMale?"Мужской":"Женский":this.isMale?"М":"Ж"}capitalizeName(){this.name=j.Capitalize(this.name),this.surname=j.Capitalize(this.surname),this.patronymic=j.Capitalize(this.patronymic)}trimName(){this.name=this.name.trim(),this.surname=this.surname.trim(),this.patronymic=this.patronymic.trim()}sanitizeName(){this.trimName(),this.capitalizeName()}setFullName(e){this.surname=e.surname,this.name=e.name,this.patronymic=e.patronymic}}class st{constructor(e){l(this,"id");l(this,"number");l(this,"description");l(this,"contactId");B.BuildClass(this,e)}static Create(){const e=new st;return e.id=ee.UUID(),e}}class nn{constructor(e){l(this,"id");l(this,"address");l(this,"description");B.BuildClass(this,e)}}class ei{constructor(e){l(this,"id");l(this,"address");l(this,"description");B.BuildClass(this,e)}}let pl=(et=class{},l(et,"Phone",st),l(et,"FileInfo",fe),l(et,"PostAddress",nn),l(et,"Website",ei),l(et,"Email",rt),l(et,"Human",Er),et);class qe{static Shuffle(e){for(let n=e.length-1;n>0;n--){const r=Math.floor(Math.random()*(n+1));[e[n],e[r]]=[e[r],e[n]]}}static GenerateNumsRange(e,n,r=1){return Array.from({length:(n-e)/r+1},(s,o)=>e+o*r)}static GetLast(e){return e[e.length-1]}static GetFirst(e){return e[0]}static GetRandEL(e){return e[Math.floor(Math.random()*e.length)]}static Sort(e){e.forEach((n,r)=>n.order=r)}static Refill(e,n){e.splice(0,e.length),e.push(...n)}static Eq(e,n){return e.length===n.length&&(e==null?void 0:e.every((r,s)=>e[s]==n[s]))}static SwipeById(e,n,r){const s=e.findIndex(a=>n.id===a.id),o=e.findIndex(a=>r.id===a.id);s||o||([e[s],e[o]]=[e[o],e[s]])}static Swap(e,n,r){if(n<0||n>=e.length||r<0||r>=e.length)return;const s=e[n];e[n]=e[r],e[r]=s}static MoveUp(e,n){e[n].order=n-1,e[n-1]&&(e[n-1].order=n),[e[n],e[n-1]]=[e[n-1],e[n]]}static MoveDown(e,n){e[n].order=n+1,e[n+1]&&(e[n+1].order=n),[e[n],e[n+1]]=[e[n+1],e[n]]}}var se=(t=>(t.Date="date",t.String="string",t.Boolean="boolean",t.Number="number",t.Set="set",t.Join="join",t))(se||{}),me=(t=>(t.Eq="=",t.Ne="!=",t.Gt=">",t.Lt="<",t.Btw="between",t.In="in",t.Like="like",t.Null="is null",t.NotNull="is not null",t))(me||{}),gl=Object.defineProperty,yl=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&gl(e,n,s),s};const xr=class Zt{constructor(e){l(this,"id");l(this,"model","");l(this,"label","");l(this,"col","");l(this,"operator",me.Eq);l(this,"date1");l(this,"date2");l(this,"value1","");l(this,"boolean",!1);l(this,"number",0);l(this,"type",se.String);l(this,"set",[]);l(this,"isSet",!1);l(this,"joinTable","");l(this,"joinTableModel","");l(this,"joinTableFk","");l(this,"joinTablePk","");l(this,"joinTableId","");l(this,"joinTableIdCol","");B.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===se.Join){const n=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===me.In?n&&qe.Eq(this.set,e.set):n}return e.model===this.model&&e.col===this.col&&e.operator===this.operator}valueEq(e){return!this||!e||!this.eq(e)?!1:this.type===se.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===se.String?this.value1===(e==null?void 0:e.value1):this.type===se.Join&&this.set.length?qe.Eq(this.set,e.set):!1}toUrlQuery(){const e=this.type?`"type":"${this.type}"`:"",n=this.model?`"model":"${this.model}"`:"",r=this.col?`"col":"${this.col}"`:"",s=this.operator?`"operator":"${this.operator}"`:"",o=this.value1?`"value1":"${this.value1}"`:"",a=this.type===se.Boolean?`"boolean":${this.boolean}`:"",d=this.type===se.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",c=this.type===se.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===se.Number?`"number":${this.number}`:"",h=this.type===se.Set||this.operator===me.In?`"set":${JSON.stringify(this.set)}`:"",f=this.type===se.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[e,n,r,s,o,a,d,c,u,h,f].filter(m=>m!=="").toString()}fromUrlQuery(e){this.model=e.get("model")??"",this.col=e.get("col")??"",this.label=e.get("label")??"",this.operator=e.get("operator")??"",this.value1=e.get("value1")??"",this.type=e.get("type")??"",this.boolean=!!(e.get("boolean")??""),this.joinTableModel=e.get("joinTableModel")??"",this.joinTableId=e.get("joinTableId")??"",this.joinTableFk=e.get("joinTableFk")??"",this.joinTableIdCol=e.get("joinTableIdCol")??"",this.joinTablePk=e.get("joinTablePk")??""}isUnaryFilter(){return this.operator===me.Eq||this.operator===me.Gt||this.operator===me.Lt}isBetweenFilter(){return this.operator===me.Btw}isSetFilter(){return this.operator===me.In}static Create(e,n,r){const s=new Zt;return s.model=e.GetClassName(),s.col=n??"",s.type=r,s.type===se.Number&&(s.value1="0"),s.type===se.String&&(s.value1=""),s.type===se.Boolean&&(s.value1="false",s.operator=me.Eq),s}static CreateFilterModelWithJoin(e,n,r,s,o,a,d,c){const u=new Zt;return u.id=Xe(),u.joinTable=r,u.joinTablePk=s,u.joinTableFk=o,u.col=n,u.type=a,d&&(u.joinTableId=d),c&&(u.joinTableIdCol=c),u}static CreateFilterModelWithJoinV2(e,n,r,s,o,a,d){const c=new Zt;return c.model=e,c.joinTableModel=r,c.joinTablePk=s,c.joinTableFk=o,c.col=n,c.type=se.Join,a&&(c.joinTableId=a),d&&(c.joinTableIdCol=d),c}static OnlyIfSecondModelExists(e,n){const r=new Zt;return r.id=Xe(),r.model=j.ToCamelCase(e.GetClassName()),r.joinTableModel=j.ToCamelCase(n.GetClassName()),r.type=se.Join,r}addToSet(...e){e.forEach(n=>{if(this.set.indexOf(n)===-1){this.set.push(n);return}this.set=this.set.filter(r=>r!==n)})}pushToSet(...e){e.forEach(n=>{this.set.indexOf(n)===-1&&this.set.push(n)})}replaceSet(...e){this.set=e}setBoolean(e){this.boolean=e}toRef(){return i.ref(this)}setDate1(e){this.date1=e}setDate2(e){this.date2=e}dropDates(){this.setDate1(),this.setDate2()}setDatesRange(e,n){if(!e&&!n){this.dropDates();return}if(!n){this.setDate1(e),this.operator=me.Eq;return}this.setDate2(n),this.operator=me.Btw}};yl([B.GetClassConstructor(String)],xr.prototype,"set");let ti=xr;class wl{constructor(){l(this,"operation",me.Lt);l(this,"column","");l(this,"value");l(this,"initial",!0);l(this,"tableName","");l(this,"version","");l(this,"model","")}toUrlQuery(){const e=this.operation?`"operation":"${this.operation}"`:"",n=this.column?`"column":"${this.column}"`:"",r=this.value&&typeof this.value.toISOString=="function"?this.value.toISOString():this.value,s=r?`"value":"${r}"`:"",o=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[e,n,s,o,a].filter(d=>d!=="").toString()}fromUrlQuery(e){e.cursvalue&&(this.value=e.cursvalue),e.curscolumn&&(this.column=String(e.curscolumn)),e.cursinitial!==void 0&&(this.initial=!!e.cursinitial),e.curstableName&&(this.tableName=String(e.curstableName)),e.cursoperation&&(this.operation=e.cursoperation)}}class rn{constructor(e){l(this,"offset",0);l(this,"limit",25);l(this,"cursor",new wl);l(this,"cursorMode",!1);l(this,"append",!1);l(this,"allLoaded",!1);l(this,"version","");B.BuildClass(this,e)}setLoadMore(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=me.Gt,this.cursor.column=n,this.cursor.tableName=r,this.cursorMode=!0}setLoadMoreV2(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=me.Gt,this.cursor.column=n,this.cursor.model=r,this.cursorMode=!0,this.version="v2"}setOffset(e){this.offset=e}toUrlQuery(){const e=`"offset":${this.offset}`,n=`"limit":${this.limit}`,r=`"cursorMode":${this.cursorMode}`,s=`"append":${this.append}`,o=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[e,n,r,s,o,a].toString()}fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("p=")+2,e.lastIndexOf("|")),r=new URLSearchParams(decodeURIComponent(n));this.offset=Number(r.get("offset")),this.limit=Number(r.get("col"))}setAllLoaded(e){this.allLoaded=!(e>=this.limit)}resetAllLoaded(){this.allLoaded=!1}getPageNum(){return this.offset/this.limit+1}drop(){this.offset=0,this.limit=25,B.BuildClass(this)}}var Ee=(t=>(t.Asc="asc",t.Desc="desc",t))(Ee||{});class sn{constructor(e){l(this,"model","");l(this,"col","");l(this,"order");l(this,"label","");l(this,"default",!1);l(this,"selected",!1);B.BuildClass(this,e)}static Create(e,n,r=Ee.Asc,s,o){const a=new sn;return a.model=e.GetClassName(),a.col=n??"",a.order=r??Ee.Asc,a.label=s??"",a.default=o??!1,a}isAsc(){return this.order===Ee.Asc}isDesc(){return this.order===Ee.Desc}eq(e){return e.model===this.model&&e.col===this.col&&e.order===this.order}toUrlQuery(){const e=this.model?`"model":"${this.model}"`:"",n=this.col?`"col":"${this.col}"`:"",r=this.order?`"order":"${this.order}"`:"";return[e,n,r].toString()}async fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("s=")+2,e.indexOf("|")),r=new URLSearchParams(decodeURIComponent(n));this.model=r.get("model")??"",this.col=r.get("col")??"",this.label=r.get("label")??"",this.default=!!r.get("default"),this.order=r.get("order")??""}asc(){this.order=Ee.Asc}desc(){this.order=Ee.Desc}}class on{constructor(){l(this,"model","");l(this,"cols",[]);l(this,"models",[])}static Create(e,n){const r=new on;return r.model=e.GetClassName(),r.cols=n,r}}var bl=Object.defineProperty,an=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&bl(e,n,s),s};const At=(Se=class{constructor(e){l(this,"id");l(this,"f",[]);l(this,"s",[]);l(this,"p",new rn);l(this,"t",new on);B.BuildClass(this,e)}static Get(){return this.instance||(this.instance=new Se),this.instance}createFrom(e){const n=new Se(JSON.parse(e));this.f=n.f}clearForHTTP(){const e=new Se(this);return e.f=this.f.map(n=>Se.EmptyEntiries(n)),e.s=this.s.map(n=>Se.EmptyEntiries(n)),e.p=Se.EmptyEntiries(this.p),e.t=Se.EmptyEntiries(this.t),e}static EmptyEntiries(e){if(!e)return;const r=Object.entries(e).filter(([s,o])=>s!=="label"&&o!==""&&o!==null);return Object.fromEntries(r)}findFilterModel(e){return this.f.find(n=>e.id===n.id)}getFirstSortModel(){return qe.GetLast(this.s)}setSortModel(e){e&&(this.s[0]=e)}setS(e){this.s[0]=e}setF(e){this.f.push(e)}replaceF(e,n){this.removeF(n),e&&this.setF(e)}removeF(e){const n=this.f.findIndex(r=>r.eq(e));B.RemoveFromClassByIndex(n,this.f)}reset(){this.f=[],this.s=[],this.p=new rn}resetF(){this.f=[]}},l(Se,"instance"),Se);an([B.GetClassConstructor(ti)],At.prototype,"f"),an([B.GetClassConstructor(sn)],At.prototype,"s"),an([B.GetClassConstructor(rn)],At.prototype,"p"),an([B.GetClassConstructor(on)],At.prototype,"t");let Ue=At,Cl=(Wt=class{},l(Wt,"SortModel",sn),l(Wt,"FilterModel",ti),l(Wt,"FTSP",i.reactive(Ue)),Wt);function Mr(t,e){return function(){return t.apply(e,arguments)}}const{toString:Sl}=Object.prototype,{getPrototypeOf:ni}=Object,ln=(t=>e=>{const n=Sl.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Re=t=>(t=t.toLowerCase(),e=>ln(e)===t),cn=t=>e=>typeof e===t,{isArray:pt}=Array,Pt=cn("undefined");function kl(t){return t!==null&&!Pt(t)&&t.constructor!==null&&!Pt(t.constructor)&&Ce(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Br=Re("ArrayBuffer");function El(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Br(t.buffer),e}const xl=cn("string"),Ce=cn("function"),$r=cn("number"),dn=t=>t!==null&&typeof t=="object",Ml=t=>t===!0||t===!1,un=t=>{if(ln(t)!=="object")return!1;const e=ni(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Bl=Re("Date"),$l=Re("File"),Il=Re("Blob"),vl=Re("FileList"),Rl=t=>dn(t)&&Ce(t.pipe),Nl=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Ce(t.append)&&((e=ln(t))==="formdata"||e==="object"&&Ce(t.toString)&&t.toString()==="[object FormData]"))},Al=Re("URLSearchParams"),[Pl,zl,Vl,Tl]=["ReadableStream","Request","Response","Headers"].map(Re),Fl=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zt(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),pt(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),a=o.length;let d;for(r=0;r<a;r++)d=o[r],e.call(null,t[d],d,t)}}function Ir(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const ot=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,vr=t=>!Pt(t)&&t!==ot;function ii(){const{caseless:t}=vr(this)&&this||{},e={},n=(r,s)=>{const o=t&&Ir(e,s)||s;un(e[o])&&un(r)?e[o]=ii(e[o],r):un(r)?e[o]=ii({},r):pt(r)?e[o]=r.slice():e[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&zt(arguments[r],n);return e}const Ol=(t,e,n,{allOwnKeys:r}={})=>(zt(e,(s,o)=>{n&&Ce(s)?t[o]=Mr(s,n):t[o]=s},{allOwnKeys:r}),t),Dl=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Ll=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Hl=(t,e,n,r)=>{let s,o,a;const d={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)a=s[o],(!r||r(a,t,e))&&!d[a]&&(e[a]=t[a],d[a]=!0);t=n!==!1&&ni(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},ql=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Ul=t=>{if(!t)return null;if(pt(t))return t;let e=t.length;if(!$r(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},_l=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ni(Uint8Array)),jl=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const o=s.value;e.call(t,o[0],o[1])}},Wl=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Gl=Re("HTMLFormElement"),Zl=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Rr=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Xl=Re("RegExp"),Nr=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};zt(n,(s,o)=>{let a;(a=e(s,o,t))!==!1&&(r[o]=a||s)}),Object.defineProperties(t,r)},Yl=t=>{Nr(t,(e,n)=>{if(Ce(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Ce(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Jl=(t,e)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return pt(t)?r(t):r(String(t).split(e)),n},Ql=()=>{},Kl=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,ri="abcdefghijklmnopqrstuvwxyz",Ar="0123456789",Pr={DIGIT:Ar,ALPHA:ri,ALPHA_DIGIT:ri+ri.toUpperCase()+Ar},ec=(t=16,e=Pr.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function tc(t){return!!(t&&Ce(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const nc=t=>{const e=new Array(10),n=(r,s)=>{if(dn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const o=pt(r)?[]:{};return zt(r,(a,d)=>{const c=n(a,s+1);!Pt(c)&&(o[d]=c)}),e[s]=void 0,o}}return r};return n(t,0)},ic=Re("AsyncFunction"),rc=t=>t&&(dn(t)||Ce(t))&&Ce(t.then)&&Ce(t.catch),zr=((t,e)=>t?setImmediate:e?((n,r)=>(ot.addEventListener("message",({source:s,data:o})=>{s===ot&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ot.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ce(ot.postMessage)),sc=typeof queueMicrotask<"u"?queueMicrotask.bind(ot):typeof process<"u"&&process.nextTick||zr,w={isArray:pt,isArrayBuffer:Br,isBuffer:kl,isFormData:Nl,isArrayBufferView:El,isString:xl,isNumber:$r,isBoolean:Ml,isObject:dn,isPlainObject:un,isReadableStream:Pl,isRequest:zl,isResponse:Vl,isHeaders:Tl,isUndefined:Pt,isDate:Bl,isFile:$l,isBlob:Il,isRegExp:Xl,isFunction:Ce,isStream:Rl,isURLSearchParams:Al,isTypedArray:_l,isFileList:vl,forEach:zt,merge:ii,extend:Ol,trim:Fl,stripBOM:Dl,inherits:Ll,toFlatObject:Hl,kindOf:ln,kindOfTest:Re,endsWith:ql,toArray:Ul,forEachEntry:jl,matchAll:Wl,isHTMLForm:Gl,hasOwnProperty:Rr,hasOwnProp:Rr,reduceDescriptors:Nr,freezeMethods:Yl,toObjectSet:Jl,toCamelCase:Zl,noop:Ql,toFiniteNumber:Kl,findKey:Ir,global:ot,isContextDefined:vr,ALPHABET:Pr,generateString:ec,isSpecCompliantForm:tc,toJSONObject:nc,isAsyncFn:ic,isThenable:rc,setImmediate:zr,asap:sc};function F(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}w.inherits(F,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.status}}});const Vr=F.prototype,Tr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Tr[t]={value:t}}),Object.defineProperties(F,Tr),Object.defineProperty(Vr,"isAxiosError",{value:!0}),F.from=(t,e,n,r,s,o)=>{const a=Object.create(Vr);return w.toFlatObject(t,a,function(c){return c!==Error.prototype},d=>d!=="isAxiosError"),F.call(a,t.message,e,n,r,s),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};const oc=null;function si(t){return w.isPlainObject(t)||w.isArray(t)}function Fr(t){return w.endsWith(t,"[]")?t.slice(0,-2):t}function Or(t,e,n){return t?t.concat(e).map(function(s,o){return s=Fr(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function ac(t){return w.isArray(t)&&!t.some(si)}const lc=w.toFlatObject(w,{},null,function(e){return/^is[A-Z]/.test(e)});function hn(t,e,n){if(!w.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,S){return!w.isUndefined(S[b])});const r=n.metaTokens,s=n.visitor||h,o=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(e);if(!w.isFunction(s))throw new TypeError("visitor must be a function");function u(C){if(C===null)return"";if(w.isDate(C))return C.toISOString();if(!c&&w.isBlob(C))throw new F("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(C)||w.isTypedArray(C)?c&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function h(C,b,S){let I=C;if(C&&!S&&typeof C=="object"){if(w.endsWith(b,"{}"))b=r?b:b.slice(0,-2),C=JSON.stringify(C);else if(w.isArray(C)&&ac(C)||(w.isFileList(C)||w.endsWith(b,"[]"))&&(I=w.toArray(C)))return b=Fr(b),I.forEach(function(z,R){!(w.isUndefined(z)||z===null)&&e.append(a===!0?Or([b],R,o):a===null?b:b+"[]",u(z))}),!1}return si(C)?!0:(e.append(Or(S,b,o),u(C)),!1)}const f=[],m=Object.assign(lc,{defaultVisitor:h,convertValue:u,isVisitable:si});function g(C,b){if(!w.isUndefined(C)){if(f.indexOf(C)!==-1)throw Error("Circular reference detected in "+b.join("."));f.push(C),w.forEach(C,function(I,O){(!(w.isUndefined(I)||I===null)&&s.call(e,I,w.isString(O)?O.trim():O,b,m))===!0&&g(I,b?b.concat(O):[O])}),f.pop()}}if(!w.isObject(t))throw new TypeError("data must be an object");return g(t),e}function Dr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function oi(t,e){this._pairs=[],t&&hn(t,this,e)}const Lr=oi.prototype;Lr.append=function(e,n){this._pairs.push([e,n])},Lr.toString=function(e){const n=e?function(r){return e.call(this,r,Dr)}:Dr;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function cc(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Hr(t,e,n){if(!e)return t;const r=n&&n.encode||cc;w.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(e,n):o=w.isURLSearchParams(e)?e.toString():new oi(e,n).toString(r),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class qr{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){w.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Ur={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dc={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:oi,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ai=typeof window<"u"&&typeof document<"u",li=typeof navigator=="object"&&navigator||void 0,uc=ai&&(!li||["ReactNative","NativeScript","NS"].indexOf(li.product)<0),hc=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fc=ai&&window.location.href||"http://localhost",pe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ai,hasStandardBrowserEnv:uc,hasStandardBrowserWebWorkerEnv:hc,navigator:li,origin:fc},Symbol.toStringTag,{value:"Module"})),...dc};function mc(t,e){return hn(t,new pe.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return pe.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function pc(t){return w.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function gc(t){const e={},n=Object.keys(t);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],e[o]=t[o];return e}function _r(t){function e(n,r,s,o){let a=n[o++];if(a==="__proto__")return!0;const d=Number.isFinite(+a),c=o>=n.length;return a=!a&&w.isArray(s)?s.length:a,c?(w.hasOwnProp(s,a)?s[a]=[s[a],r]:s[a]=r,!d):((!s[a]||!w.isObject(s[a]))&&(s[a]=[]),e(n,r,s[a],o)&&w.isArray(s[a])&&(s[a]=gc(s[a])),!d)}if(w.isFormData(t)&&w.isFunction(t.entries)){const n={};return w.forEachEntry(t,(r,s)=>{e(pc(r),s,n,0)}),n}return null}function yc(t,e,n){if(w.isString(t))try{return(e||JSON.parse)(t),w.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const Vt={transitional:Ur,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=w.isObject(e);if(o&&w.isHTMLForm(e)&&(e=new FormData(e)),w.isFormData(e))return s?JSON.stringify(_r(e)):e;if(w.isArrayBuffer(e)||w.isBuffer(e)||w.isStream(e)||w.isFile(e)||w.isBlob(e)||w.isReadableStream(e))return e;if(w.isArrayBufferView(e))return e.buffer;if(w.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return mc(e,this.formSerializer).toString();if((d=w.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return hn(d?{"files[]":e}:e,c&&new c,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),yc(e)):e}],transformResponse:[function(e){const n=this.transitional||Vt.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(w.isResponse(e)||w.isReadableStream(e))return e;if(e&&w.isString(e)&&(r&&!this.responseType||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(d){if(a)throw d.name==="SyntaxError"?F.from(d,F.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pe.classes.FormData,Blob:pe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],t=>{Vt.headers[t]={}});const wc=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bc=t=>{const e={};let n,r,s;return t&&t.split(`
14
+ ***************************************************************************** */var Sr;(function(t){(function(e){var n=typeof globalThis=="object"?globalThis:typeof Cr=="object"?Cr:typeof self=="object"?self:typeof this=="object"?this:d(),r=s(t);typeof n.Reflect<"u"&&(r=s(n.Reflect,r)),e(r,n),typeof n.Reflect>"u"&&(n.Reflect=t);function s(c,u){return function(h,f){Object.defineProperty(c,h,{configurable:!0,writable:!0,value:f}),u&&u(h,f)}}function o(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function d(){return o()||a()}})(function(e,n){var r=Object.prototype.hasOwnProperty,s=typeof Symbol=="function",o=s&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=s&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",d=typeof Object.create=="function",c={__proto__:[]}instanceof Array,u=!d&&!c,h={create:d?function(){return cr(Object.create(null))}:c?function(){return cr({__proto__:null})}:function(){return cr({})},has:u?function(p,y){return r.call(p,y)}:function(p,y){return y in p},get:u?function(p,y){return r.call(p,y)?p[y]:void 0}:function(p,y){return p[y]}},f=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Zp(),g=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Xp(),C=typeof WeakMap=="function"?WeakMap:Yp(),b=s?Symbol.for("@reflect-metadata:registry"):void 0,S=jp(),I=Wp(S);function O(p,y,k,x){if(T(k)){if(!qa(p))throw new TypeError;if(!Ua(y))throw new TypeError;return Fp(p,y)}else{if(!qa(p))throw new TypeError;if(!ne(y))throw new TypeError;if(!ne(x)&&!T(x)&&!vt(x))throw new TypeError;return vt(x)&&(x=void 0),k=Le(k),Op(p,y,k,x)}}e("decorate",O);function z(p,y){function k(x,V){if(!ne(x))throw new TypeError;if(!T(V)&&!Up(V))throw new TypeError;Fa(p,y,x,V)}return k}e("metadata",z);function R(p,y,k,x){if(!ne(k))throw new TypeError;return T(x)||(x=Le(x)),Fa(p,y,k,x)}e("defineMetadata",R);function H(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=Le(k)),za(p,y,k)}e("hasMetadata",H);function Be(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=Le(k)),or(p,y,k)}e("hasOwnMetadata",Be);function $e(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=Le(k)),Va(p,y,k)}e("getMetadata",$e);function nt(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=Le(k)),Ta(p,y,k)}e("getOwnMetadata",nt);function It(p,y){if(!ne(p))throw new TypeError;return T(y)||(y=Le(y)),Oa(p,y)}e("getMetadataKeys",It);function jn(p,y){if(!ne(p))throw new TypeError;return T(y)||(y=Le(y)),Da(p,y)}e("getOwnMetadataKeys",jn);function Tp(p,y,k){if(!ne(y))throw new TypeError;if(T(k)||(k=Le(k)),!ne(y))throw new TypeError;T(k)||(k=Le(k));var x=Gt(y,k,!1);return T(x)?!1:x.OrdinaryDeleteMetadata(p,y,k)}e("deleteMetadata",Tp);function Fp(p,y){for(var k=p.length-1;k>=0;--k){var x=p[k],V=x(y);if(!T(V)&&!vt(V)){if(!Ua(V))throw new TypeError;y=V}}return y}function Op(p,y,k,x){for(var V=p.length-1;V>=0;--V){var ae=p[V],ie=ae(y,k,x);if(!T(ie)&&!vt(ie)){if(!ne(ie))throw new TypeError;x=ie}}return x}function za(p,y,k){var x=or(p,y,k);if(x)return!0;var V=lr(y);return vt(V)?!1:za(p,V,k)}function or(p,y,k){var x=Gt(y,k,!1);return T(x)?!1:Ha(x.OrdinaryHasOwnMetadata(p,y,k))}function Va(p,y,k){var x=or(p,y,k);if(x)return Ta(p,y,k);var V=lr(y);if(!vt(V))return Va(p,V,k)}function Ta(p,y,k){var x=Gt(y,k,!1);if(!T(x))return x.OrdinaryGetOwnMetadata(p,y,k)}function Fa(p,y,k,x){var V=Gt(k,x,!0);V.OrdinaryDefineOwnMetadata(p,y,k,x)}function Oa(p,y){var k=Da(p,y),x=lr(p);if(x===null)return k;var V=Oa(x,y);if(V.length<=0)return k;if(k.length<=0)return V;for(var ae=new g,ie=[],q=0,M=k;q<M.length;q++){var $=M[q],v=ae.has($);v||(ae.add($),ie.push($))}for(var N=0,U=V;N<U.length;N++){var $=U[N],v=ae.has($);v||(ae.add($),ie.push($))}return ie}function Da(p,y){var k=Gt(p,y,!1);return k?k.OrdinaryOwnMetadataKeys(p,y):[]}function La(p){if(p===null)return 1;switch(typeof p){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return p===null?1:6;default:return 6}}function T(p){return p===void 0}function vt(p){return p===null}function Dp(p){return typeof p=="symbol"}function ne(p){return typeof p=="object"?p!==null:typeof p=="function"}function Lp(p,y){switch(La(p)){case 0:return p;case 1:return p;case 2:return p;case 3:return p;case 4:return p;case 5:return p}var k="string",x=_a(p,o);if(x!==void 0){var V=x.call(p,k);if(ne(V))throw new TypeError;return V}return Hp(p)}function Hp(p,y){var k,x;{var V=p.toString;if(Wn(V)){var x=V.call(p);if(!ne(x))return x}var k=p.valueOf;if(Wn(k)){var x=k.call(p);if(!ne(x))return x}}throw new TypeError}function Ha(p){return!!p}function qp(p){return""+p}function Le(p){var y=Lp(p);return Dp(y)?y:qp(y)}function qa(p){return Array.isArray?Array.isArray(p):p instanceof Object?p instanceof Array:Object.prototype.toString.call(p)==="[object Array]"}function Wn(p){return typeof p=="function"}function Ua(p){return typeof p=="function"}function Up(p){switch(La(p)){case 3:return!0;case 4:return!0;default:return!1}}function ar(p,y){return p===y||p!==p&&y!==y}function _a(p,y){var k=p[y];if(k!=null){if(!Wn(k))throw new TypeError;return k}}function ja(p){var y=_a(p,a);if(!Wn(y))throw new TypeError;var k=y.call(p);if(!ne(k))throw new TypeError;return k}function Wa(p){return p.value}function Ga(p){var y=p.next();return y.done?!1:y}function Za(p){var y=p.return;y&&y.call(p)}function lr(p){var y=Object.getPrototypeOf(p);if(typeof p!="function"||p===f||y!==f)return y;var k=p.prototype,x=k&&Object.getPrototypeOf(k);if(x==null||x===Object.prototype)return y;var V=x.constructor;return typeof V!="function"||V===p?y:V}function _p(){var p;!T(b)&&typeof n.Reflect<"u"&&!(b in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(p=Gp(n.Reflect));var y,k,x,V=new C,ae={registerProvider:ie,getProvider:M,setProvider:v};return ae;function ie(N){if(!Object.isExtensible(ae))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case p===N:break;case T(y):y=N;break;case y===N:break;case T(k):k=N;break;case k===N:break;default:x===void 0&&(x=new g),x.add(N);break}}function q(N,U){if(!T(y)){if(y.isProviderFor(N,U))return y;if(!T(k)){if(k.isProviderFor(N,U))return y;if(!T(x))for(var X=ja(x);;){var Q=Ga(X);if(!Q)return;var Ae=Wa(Q);if(Ae.isProviderFor(N,U))return Za(X),Ae}}}if(!T(p)&&p.isProviderFor(N,U))return p}function M(N,U){var X=V.get(N),Q;return T(X)||(Q=X.get(U)),T(Q)&&(Q=q(N,U),T(Q)||(T(X)&&(X=new m,V.set(N,X)),X.set(U,Q))),Q}function $(N){if(T(N))throw new TypeError;return y===N||k===N||!T(x)&&x.has(N)}function v(N,U,X){if(!$(X))throw new Error("Metadata provider not registered.");var Q=M(N,U);if(Q!==X){if(!T(Q))return!1;var Ae=V.get(N);T(Ae)&&(Ae=new m,V.set(N,Ae)),Ae.set(U,X)}return!0}}function jp(){var p;return!T(b)&&ne(n.Reflect)&&Object.isExtensible(n.Reflect)&&(p=n.Reflect[b]),T(p)&&(p=_p()),!T(b)&&ne(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:p}),p}function Wp(p){var y=new C,k={isProviderFor:function($,v){var N=y.get($);return T(N)?!1:N.has(v)},OrdinaryDefineOwnMetadata:ie,OrdinaryHasOwnMetadata:V,OrdinaryGetOwnMetadata:ae,OrdinaryOwnMetadataKeys:q,OrdinaryDeleteMetadata:M};return S.registerProvider(k),k;function x($,v,N){var U=y.get($),X=!1;if(T(U)){if(!N)return;U=new m,y.set($,U),X=!0}var Q=U.get(v);if(T(Q)){if(!N)return;if(Q=new m,U.set(v,Q),!p.setProvider($,v,k))throw U.delete(v),X&&y.delete($),new Error("Wrong provider for target.")}return Q}function V($,v,N){var U=x(v,N,!1);return T(U)?!1:Ha(U.has($))}function ae($,v,N){var U=x(v,N,!1);if(!T(U))return U.get($)}function ie($,v,N,U){var X=x(N,U,!0);X.set($,v)}function q($,v){var N=[],U=x($,v,!1);if(T(U))return N;for(var X=U.keys(),Q=ja(X),Ae=0;;){var Xa=Ga(Q);if(!Xa)return N.length=Ae,N;var Jp=Wa(Xa);try{N[Ae]=Jp}catch(Qp){try{Za(Q)}finally{throw Qp}}Ae++}}function M($,v,N){var U=x(v,N,!1);if(T(U)||!U.delete($))return!1;if(U.size===0){var X=y.get(v);T(X)||(X.delete(N),X.size===0&&y.delete(X))}return!0}}function Gp(p){var y=p.defineMetadata,k=p.hasOwnMetadata,x=p.getOwnMetadata,V=p.getOwnMetadataKeys,ae=p.deleteMetadata,ie=new C,q={isProviderFor:function(M,$){var v=ie.get(M);return!T(v)&&v.has($)?!0:V(M,$).length?(T(v)&&(v=new g,ie.set(M,v)),v.add($),!0):!1},OrdinaryDefineOwnMetadata:y,OrdinaryHasOwnMetadata:k,OrdinaryGetOwnMetadata:x,OrdinaryOwnMetadataKeys:V,OrdinaryDeleteMetadata:ae};return q}function Gt(p,y,k){var x=S.getProvider(p,y);if(!T(x))return x;if(k){if(S.setProvider(p,y,I))return I;throw new Error("Illegal state.")}}function Zp(){var p={},y=[],k=function(){function q(M,$,v){this._index=0,this._keys=M,this._values=$,this._selector=v}return q.prototype["@@iterator"]=function(){return this},q.prototype[a]=function(){return this},q.prototype.next=function(){var M=this._index;if(M>=0&&M<this._keys.length){var $=this._selector(this._keys[M],this._values[M]);return M+1>=this._keys.length?(this._index=-1,this._keys=y,this._values=y):this._index++,{value:$,done:!1}}return{value:void 0,done:!0}},q.prototype.throw=function(M){throw this._index>=0&&(this._index=-1,this._keys=y,this._values=y),M},q.prototype.return=function(M){return this._index>=0&&(this._index=-1,this._keys=y,this._values=y),{value:M,done:!0}},q}(),x=function(){function q(){this._keys=[],this._values=[],this._cacheKey=p,this._cacheIndex=-2}return Object.defineProperty(q.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),q.prototype.has=function(M){return this._find(M,!1)>=0},q.prototype.get=function(M){var $=this._find(M,!1);return $>=0?this._values[$]:void 0},q.prototype.set=function(M,$){var v=this._find(M,!0);return this._values[v]=$,this},q.prototype.delete=function(M){var $=this._find(M,!1);if($>=0){for(var v=this._keys.length,N=$+1;N<v;N++)this._keys[N-1]=this._keys[N],this._values[N-1]=this._values[N];return this._keys.length--,this._values.length--,ar(M,this._cacheKey)&&(this._cacheKey=p,this._cacheIndex=-2),!0}return!1},q.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=p,this._cacheIndex=-2},q.prototype.keys=function(){return new k(this._keys,this._values,V)},q.prototype.values=function(){return new k(this._keys,this._values,ae)},q.prototype.entries=function(){return new k(this._keys,this._values,ie)},q.prototype["@@iterator"]=function(){return this.entries()},q.prototype[a]=function(){return this.entries()},q.prototype._find=function(M,$){if(!ar(this._cacheKey,M)){this._cacheIndex=-1;for(var v=0;v<this._keys.length;v++)if(ar(this._keys[v],M)){this._cacheIndex=v;break}}return this._cacheIndex<0&&$&&(this._cacheIndex=this._keys.length,this._keys.push(M),this._values.push(void 0)),this._cacheIndex},q}();return x;function V(q,M){return q}function ae(q,M){return M}function ie(q,M){return[q,M]}}function Xp(){var p=function(){function y(){this._map=new m}return Object.defineProperty(y.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),y.prototype.has=function(k){return this._map.has(k)},y.prototype.add=function(k){return this._map.set(k,k),this},y.prototype.delete=function(k){return this._map.delete(k)},y.prototype.clear=function(){this._map.clear()},y.prototype.keys=function(){return this._map.keys()},y.prototype.values=function(){return this._map.keys()},y.prototype.entries=function(){return this._map.entries()},y.prototype["@@iterator"]=function(){return this.keys()},y.prototype[a]=function(){return this.keys()},y}();return p}function Yp(){var p=16,y=h.create(),k=x();return function(){function M(){this._key=x()}return M.prototype.has=function($){var v=V($,!1);return v!==void 0?h.has(v,this._key):!1},M.prototype.get=function($){var v=V($,!1);return v!==void 0?h.get(v,this._key):void 0},M.prototype.set=function($,v){var N=V($,!0);return N[this._key]=v,this},M.prototype.delete=function($){var v=V($,!1);return v!==void 0?delete v[this._key]:!1},M.prototype.clear=function(){this._key=x()},M}();function x(){var M;do M="@@WeakMap@@"+q();while(h.has(y,M));return y[M]=!0,M}function V(M,$){if(!r.call(M,k)){if(!$)return;Object.defineProperty(M,k,{value:h.create()})}return M[k]}function ae(M,$){for(var v=0;v<$;++v)M[v]=Math.random()*255|0;return M}function ie(M){if(typeof Uint8Array=="function"){var $=new Uint8Array(M);return typeof crypto<"u"?crypto.getRandomValues($):typeof msCrypto<"u"?msCrypto.getRandomValues($):ae($,M),$}return ae(new Array(M),M)}function q(){var M=ie(p);M[6]=M[6]&79|64,M[8]=M[8]&191|128;for(var $="",v=0;v<p;++v){var N=M[v];(v===4||v===6||v===8)&&($+="-"),N<16&&($+="0"),$+=N.toString(16).toLowerCase()}return $}}function cr(p){return p.__=void 0,delete p.__,p}})})(Sr||(Sr={}));let tn;const hl=new Uint8Array(16);function fl(){if(!tn&&(tn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!tn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return tn(hl)}const de=[];for(let t=0;t<256;++t)de.push((t+256).toString(16).slice(1));function ml(t,e=0){return de[t[e+0]]+de[t[e+1]]+de[t[e+2]]+de[t[e+3]]+"-"+de[t[e+4]]+de[t[e+5]]+"-"+de[t[e+6]]+de[t[e+7]]+"-"+de[t[e+8]]+de[t[e+9]]+"-"+de[t[e+10]]+de[t[e+11]]+de[t[e+12]]+de[t[e+13]]+de[t[e+14]]+de[t[e+15]]}const kr={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Xe(t,e,n){if(kr.randomUUID&&!t)return kr.randomUUID();t=t||{};const r=t.random||(t.rng||fl)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,ml(r)}class ee{static UUID(){return Xe()}static GUID(){const e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}class j{static Capitalize(e){return e?e[0].toUpperCase()+e.slice(1):""}static ToCamelCase(e){const n=new RegExp(["[А-Я][а-я][A-Z][a-z]+","[А-Я]+(?=[А-Я][а-я])","[A-Z]+(?=[A-Z][a-z])","[А-Я]+","[A-Z]+","[а-я]+","[a-z]+","[0-9]+"].join("|"),"g");return e.match(n).map((s,o)=>o===0?s.toLowerCase():j.Capitalize(s.toLowerCase())).join("")}static ToKebabCase(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}static GetStringBetweenChars(e,n,r){return e.substring(e.indexOf(n)+2,e.lastIndexOf(r))}static Translit(e,n){const r={q:"й",w:"ц",e:"у",r:"к",t:"е",y:"н",u:"г",i:"ш",o:"щ",p:"з","[":"х","]":"ъ",a:"ф",s:"ы",d:"в",f:"а",g:"п",h:"р",j:"о",k:"л",l:"д",";":"ж","'":"э",z:"я",x:"ч",c:"с",v:"м",b:"и",n:"т",m:"ь",",":"б",".":"ю","/":"."};return n&&/[а-яА-Я]/g.test(e)?e.replace(/[А-я/,.;'\][]/g,s=>{if(s===s.toLowerCase()){const a=Object.keys(r).find(d=>r[d]===s);return a||""}const o=Object.keys(r).find(a=>r[a]===s.toLowerCase());return o?o.toUpperCase():""}):e.replace(/[A-z/,.;'\][]/g,s=>s===s.toLowerCase()?r[s]:r[s.toLowerCase()].toUpperCase())}static RemoveEmoji(e){const n=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;return e.replace(n,"")}static CanBeTranslited(e){return/^[~`!@#$%^&*()_+=[\]\\{}|;':",.\/<>?a-zA-Z0-9-]+$/.test(e)}static StringsEquals(e,n){const r=e.toLowerCase().replaceAll(/\s/g,""),s=n.toLowerCase().replaceAll(/\s/g,""),o=j.Translit(r),a=j.Translit(s);return r.includes(s)||o.includes(s)||r.includes(a)}static SearchIn(e,n){return j.StringsEquals(e,n)}static SearchInFields(e,n){let r=!1;for(let s=0;s<n.length;s++)if(j.SearchIn(n[s],e)){r=!0;break}return r}static FormatToPercentage(e){return`${e}%`}static ApplyClassToSubStr(e,n,r){const s=r??"highlight-text",o=new RegExp(j.GetVariants(n).join("|"),"gi");return e.replace(o,`<span class="${s}">$&</span>`)}static GetVariants(e){const n=j.Translit(e);return[e,j.Capitalize(e),e.toLowerCase(),e.toUpperCase(),n,j.Capitalize(n),n.toLowerCase(),n.toUpperCase()]}static ContainsNum(e){return/\d/.test(e)}static JoinSnake(...e){return e.join("_")}static GetDynamicCountName(e,n){const r=[2,0,1,1,1,2];return e.length+" "+n[e.length%100>4&&e.length%100<20?2:r[e.length%10<5?e.length%10:5]]}static TrimText(e){return typeof e=="string"?e.trim():e}}const Ke=class Ke{static BuildClass(e,n){n&&Object.keys(n).forEach(r=>{const s=n[r];if(this.isPrimitive(s))e[r]instanceof Date?e[r]=new Date(s):e[r]=s;else if(s!=null&&!Array.isArray(s))if(e[r]&&e[r].constructor)e[r]=new e[r].constructor(s);else{const o=Reflect.getMetadata(r,e);o&&(e[r]=new o[r](s))}if(Array.isArray(s)){if(s.length===0)return;const o=Reflect.getMetadata(r,e);o&&(e[r]=s.map(a=>new o[r](a)))}})}static isPrimitive(e){return e!==null&&typeof e<"u"&&e!==Object(e)}static RemoveFromClassByIndex(e,n,r){Ke.RemoveFromClass(e,n,r)}static RemoveFromClassById(e,n,r){if(!e)return;const s=n.findIndex(o=>o.id===e);Ke.RemoveFromClass(s,n,r)}static RemoveFromClass(e,n,r){if(e<0)return;const s=n[e].id;s&&r&&r.push(s),n.splice(e,1)}static GetPropertyName(e){const n=new e;return new Proxy(n,{get(r,s){return s}})}static InitClassInstance(e,n){const r=e.constructor(n);return Ke.BuildClass(r),r.id=ee.UUID(),r}static ExistsWithId(e,n){return e.some(r=>r.id===n)}static DeepMap(e){return n=>Array.isArray(n)?n.map(Ke.DeepMap(e)):Object(n)===n?Object.fromEntries(Object.entries(n).map(([r,s])=>[r,Ke.DeepMap(e)(s)])):e(n)}static DeepTrim(e){return this.DeepMap(j.TrimText)(e)}};l(Ke,"GetClassConstructor",e=>(n,r)=>{const s=Reflect.getMetadata(`property:${r}`,n)||{};s[r]=e,Reflect.defineMetadata(r,s,n)});let B=Ke;class rt{constructor(e){l(this,"id");l(this,"address");l(this,"description");l(this,"contactId");B.BuildClass(this,e)}static Create(){const e=new rt;return e.id=ee.UUID(),e}}class Kn{static Setup(e){this.staticUrl=e}static get StaticUrl(){return this.staticUrl}}l(Kn,"staticUrl","");class fe{constructor(e){l(this,"name","");l(this,"url","");l(this,"src","");l(this,"raw");l(this,"blob");l(this,"file");l(this,"type","");l(this,"id");l(this,"originalName","");l(this,"fileSystemPath","");l(this,"itemId");l(this,"itemOneId");l(this,"description","");l(this,"order",0);B.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${Kn.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ie&&Ie.tagName.toUpperCase()==="SCRIPT"&&Ie.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,n){const r=new fe;return r.id=n??ee.UUID(),r.originalName=e.name,r.file=e.blob,r.fileSystemPath=ee.UUID(),r}setFile(e){this.id||(this.id=ee.UUID()),this.originalName=e.name,this.file=e.blob,this.fileSystemPath=ee.UUID(),this.url=e.src}clearFile(){this.url="",this.file=void 0,this.fileSystemPath="",this.originalName=""}errorImg(e,n){if(e.target){let r="";return n&&(r=`@/assets/img/${n}`),new URL(r,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ie&&Ie.tagName.toUpperCase()==="SCRIPT"&&Ie.src||new URL("sprof.umd.cjs",document.baseURI).href)}}getFileInfos(){return[this]}isPdf(){return this.getExtension(this.originalName)===""}getExtension(e){const n=e.split(".");return n[n.length-1]}}class Er{constructor(e){l(this,"id");l(this,"name","");l(this,"surname","");l(this,"patronymic","");l(this,"isMale",!0);l(this,"dateBirth",new Date);l(this,"contactId");l(this,"slug","");l(this,"postIndex","");l(this,"address","");l(this,"editNameMode",!1);B.BuildClass(this,e)}setEditNameMode(e){this.editNameMode=e}getFullName(){return!this.surname.length&&!this.name.length&&!this.patronymic.length?"":`${this.surname} ${this.name} ${this.patronymic}`}getInitialsName(){return`${this.name.slice(0,1)}.${this.patronymic.slice(0,1)}. ${this.surname}`}getGender(e){return e?this.isMale?"Мужской":"Женский":this.isMale?"М":"Ж"}capitalizeName(){this.name=j.Capitalize(this.name),this.surname=j.Capitalize(this.surname),this.patronymic=j.Capitalize(this.patronymic)}trimName(){this.name=this.name.trim(),this.surname=this.surname.trim(),this.patronymic=this.patronymic.trim()}sanitizeName(){this.trimName(),this.capitalizeName()}setFullName(e){this.surname=e.surname,this.name=e.name,this.patronymic=e.patronymic}}class st{constructor(e){l(this,"id");l(this,"number");l(this,"description");l(this,"contactId");B.BuildClass(this,e)}static Create(){const e=new st;return e.id=ee.UUID(),e}}class nn{constructor(e){l(this,"id");l(this,"address");l(this,"description");B.BuildClass(this,e)}}class ei{constructor(e){l(this,"id");l(this,"address");l(this,"description");B.BuildClass(this,e)}}let pl=(et=class{},l(et,"Phone",st),l(et,"FileInfo",fe),l(et,"PostAddress",nn),l(et,"Website",ei),l(et,"Email",rt),l(et,"Human",Er),et);class qe{static Shuffle(e){for(let n=e.length-1;n>0;n--){const r=Math.floor(Math.random()*(n+1));[e[n],e[r]]=[e[r],e[n]]}}static GenerateNumsRange(e,n,r=1){return Array.from({length:(n-e)/r+1},(s,o)=>e+o*r)}static GetLast(e){return e[e.length-1]}static GetFirst(e){return e[0]}static GetRandEL(e){return e[Math.floor(Math.random()*e.length)]}static Sort(e){e.forEach((n,r)=>n.order=r)}static Refill(e,n){e.splice(0,e.length),e.push(...n)}static Eq(e,n){return e.length===n.length&&(e==null?void 0:e.every((r,s)=>e[s]==n[s]))}static SwipeById(e,n,r){const s=e.findIndex(a=>n.id===a.id),o=e.findIndex(a=>r.id===a.id);s||o||([e[s],e[o]]=[e[o],e[s]])}static Swap(e,n,r){if(n<0||n>=e.length||r<0||r>=e.length)return;const s=e[n];e[n]=e[r],e[r]=s}static MoveUp(e,n){e[n].order=n-1,e[n-1]&&(e[n-1].order=n),[e[n],e[n-1]]=[e[n-1],e[n]]}static MoveDown(e,n){e[n].order=n+1,e[n+1]&&(e[n+1].order=n),[e[n],e[n+1]]=[e[n+1],e[n]]}}var se=(t=>(t.Date="date",t.String="string",t.Boolean="boolean",t.Number="number",t.Set="set",t.Join="join",t))(se||{}),me=(t=>(t.Eq="=",t.Ne="!=",t.Gt=">",t.Lt="<",t.Btw="between",t.In="in",t.Like="like",t.Null="is null",t.NotNull="is not null",t))(me||{}),gl=Object.defineProperty,yl=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&gl(e,n,s),s};const xr=class Zt{constructor(e){l(this,"id");l(this,"model","");l(this,"label","");l(this,"col","");l(this,"operator",me.Eq);l(this,"date1");l(this,"date2");l(this,"value1","");l(this,"boolean",!1);l(this,"number",0);l(this,"type",se.String);l(this,"set",[]);l(this,"isSet",!1);l(this,"joinTable","");l(this,"joinTableModel","");l(this,"joinTableFk","");l(this,"joinTablePk","");l(this,"joinTableId","");l(this,"joinTableIdCol","");B.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===se.Join){const n=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===me.In?n&&qe.Eq(this.set,e.set):n}return e.model===this.model&&e.col===this.col&&e.operator===this.operator}valueEq(e){return!this||!e||!this.eq(e)?!1:this.type===se.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===se.String?this.value1===(e==null?void 0:e.value1):this.type===se.Join&&this.set.length?qe.Eq(this.set,e.set):!1}toUrlQuery(){const e=this.type?`"type":"${this.type}"`:"",n=this.model?`"model":"${this.model}"`:"",r=this.col?`"col":"${this.col}"`:"",s=this.operator?`"operator":"${this.operator}"`:"",o=this.value1?`"value1":"${this.value1}"`:"",a=this.type===se.Boolean?`"boolean":${this.boolean}`:"",d=this.type===se.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",c=this.type===se.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===se.Number?`"number":${this.number}`:"",h=this.type===se.Set||this.operator===me.In?`"set":${JSON.stringify(this.set)}`:"",f=this.type===se.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[e,n,r,s,o,a,d,c,u,h,f].filter(m=>m!=="").toString()}fromUrlQuery(e){this.model=e.get("model")??"",this.col=e.get("col")??"",this.label=e.get("label")??"",this.operator=e.get("operator")??"",this.value1=e.get("value1")??"",this.type=e.get("type")??"",this.boolean=!!(e.get("boolean")??""),this.joinTableModel=e.get("joinTableModel")??"",this.joinTableId=e.get("joinTableId")??"",this.joinTableFk=e.get("joinTableFk")??"",this.joinTableIdCol=e.get("joinTableIdCol")??"",this.joinTablePk=e.get("joinTablePk")??""}isUnaryFilter(){return this.operator===me.Eq||this.operator===me.Gt||this.operator===me.Lt}isBetweenFilter(){return this.operator===me.Btw}isSetFilter(){return this.operator===me.In}static Create(e,n,r){const s=new Zt;return s.model=e.GetClassName(),s.col=n??"",s.type=r,s.type===se.Number&&(s.value1="0"),s.type===se.String&&(s.value1=""),s.type===se.Boolean&&(s.value1="false",s.operator=me.Eq),s}static CreateFilterModelWithJoin(e,n,r,s,o,a,d,c){const u=new Zt;return u.id=Xe(),u.joinTable=r,u.joinTablePk=s,u.joinTableFk=o,u.col=n,u.type=a,d&&(u.joinTableId=d),c&&(u.joinTableIdCol=c),u}static CreateFilterModelWithJoinV2(e,n,r,s,o,a,d){const c=new Zt;return c.model=e,c.joinTableModel=r,c.joinTablePk=s,c.joinTableFk=o,c.col=n,c.type=se.Join,a&&(c.joinTableId=a),d&&(c.joinTableIdCol=d),c}static OnlyIfSecondModelExists(e,n){const r=new Zt;return r.id=Xe(),r.model=j.ToCamelCase(e.GetClassName()),r.joinTableModel=j.ToCamelCase(n.GetClassName()),r.type=se.Join,r}addToSet(...e){e.forEach(n=>{if(this.set.indexOf(n)===-1){this.set.push(n);return}this.set=this.set.filter(r=>r!==n)})}pushToSet(...e){e.forEach(n=>{this.set.indexOf(n)===-1&&this.set.push(n)})}replaceSet(...e){this.set=e}setBoolean(e){this.boolean=e}toRef(){return i.ref(this)}setDate1(e){this.date1=e}setDate2(e){this.date2=e}dropDates(){this.setDate1(),this.setDate2()}setDatesRange(e,n){if(!e&&!n){this.dropDates();return}if(!n){this.setDate1(e),this.operator=me.Eq;return}this.setDate2(n),this.operator=me.Btw}};yl([B.GetClassConstructor(String)],xr.prototype,"set");let ti=xr;class wl{constructor(){l(this,"operation",me.Lt);l(this,"column","");l(this,"value");l(this,"initial",!0);l(this,"tableName","");l(this,"version","");l(this,"model","")}toUrlQuery(){const e=this.operation?`"operation":"${this.operation}"`:"",n=this.column?`"column":"${this.column}"`:"",r=this.value&&typeof this.value.toISOString=="function"?this.value.toISOString():this.value,s=r?`"value":"${r}"`:"",o=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[e,n,s,o,a].filter(d=>d!=="").toString()}fromUrlQuery(e){e.cursvalue&&(this.value=e.cursvalue),e.curscolumn&&(this.column=String(e.curscolumn)),e.cursinitial!==void 0&&(this.initial=!!e.cursinitial),e.curstableName&&(this.tableName=String(e.curstableName)),e.cursoperation&&(this.operation=e.cursoperation)}}class rn{constructor(e){l(this,"offset",0);l(this,"limit",25);l(this,"cursor",new wl);l(this,"cursorMode",!1);l(this,"append",!1);l(this,"allLoaded",!1);l(this,"version","");B.BuildClass(this,e)}setLoadMore(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=me.Gt,this.cursor.column=n,this.cursor.tableName=r,this.cursorMode=!0}setLoadMoreV2(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=me.Gt,this.cursor.column=n,this.cursor.model=r,this.cursorMode=!0,this.version="v2"}setOffset(e){this.offset=e}toUrlQuery(){const e=`"offset":${this.offset}`,n=`"limit":${this.limit}`,r=`"cursorMode":${this.cursorMode}`,s=`"append":${this.append}`,o=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[e,n,r,s,o,a].toString()}fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("p=")+2,e.lastIndexOf("|")),r=new URLSearchParams(decodeURIComponent(n));this.offset=Number(r.get("offset")),this.limit=Number(r.get("col"))}setAllLoaded(e){this.allLoaded=!(e>=this.limit)}resetAllLoaded(){this.allLoaded=!1}getPageNum(){return this.offset/this.limit+1}drop(){this.offset=0,this.limit=25,B.BuildClass(this)}}var Ee=(t=>(t.Asc="asc",t.Desc="desc",t))(Ee||{});class sn{constructor(e){l(this,"model","");l(this,"col","");l(this,"order");l(this,"label","");l(this,"default",!1);l(this,"selected",!1);B.BuildClass(this,e)}static Create(e,n,r=Ee.Asc,s,o){const a=new sn;return a.model=e.GetClassName(),a.col=n??"",a.order=r??Ee.Asc,a.label=s??"",a.default=o??!1,a}isAsc(){return this.order===Ee.Asc}isDesc(){return this.order===Ee.Desc}eq(e){return e.model===this.model&&e.col===this.col&&e.order===this.order}toUrlQuery(){const e=this.model?`"model":"${this.model}"`:"",n=this.col?`"col":"${this.col}"`:"",r=this.order?`"order":"${this.order}"`:"";return[e,n,r].toString()}async fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("s=")+2,e.indexOf("|")),r=new URLSearchParams(decodeURIComponent(n));this.model=r.get("model")??"",this.col=r.get("col")??"",this.label=r.get("label")??"",this.default=!!r.get("default"),this.order=r.get("order")??""}asc(){this.order=Ee.Asc}desc(){this.order=Ee.Desc}}class on{constructor(){l(this,"model","");l(this,"cols",[]);l(this,"models",[])}static Create(e,n){const r=new on;return r.model=e.GetClassName(),r.cols=n,r}}var bl=Object.defineProperty,an=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&bl(e,n,s),s};const At=(Se=class{constructor(e){l(this,"id");l(this,"f",[]);l(this,"s",[]);l(this,"p",new rn);l(this,"t",new on);B.BuildClass(this,e)}static Get(){return this.instance||(this.instance=new Se),this.instance}createFrom(e){const n=new Se(JSON.parse(e));this.f=n.f}clearForHTTP(){const e=new Se(this);return e.f=this.f.map(n=>Se.EmptyEntiries(n)),e.s=this.s.map(n=>Se.EmptyEntiries(n)),e.p=Se.EmptyEntiries(this.p),e.t=Se.EmptyEntiries(this.t),e}static EmptyEntiries(e){if(!e)return;const r=Object.entries(e).filter(([s,o])=>s!=="label"&&o!==""&&o!==null);return Object.fromEntries(r)}findFilterModel(e){return this.f.find(n=>e.id===n.id)}getFirstSortModel(){return qe.GetLast(this.s)}setSortModel(e){e&&(this.s[0]=e)}setS(e){this.s[0]=e}setF(e){this.f.push(e)}replaceF(e,n){this.removeF(n),e&&this.setF(e)}removeF(e){const n=this.f.findIndex(r=>r.eq(e));B.RemoveFromClassByIndex(n,this.f)}reset(){this.f=[],this.s=[],this.p=new rn}resetF(){this.f=[]}},l(Se,"instance"),Se);an([B.GetClassConstructor(ti)],At.prototype,"f"),an([B.GetClassConstructor(sn)],At.prototype,"s"),an([B.GetClassConstructor(rn)],At.prototype,"p"),an([B.GetClassConstructor(on)],At.prototype,"t");let Ue=At,Cl=(Wt=class{},l(Wt,"SortModel",sn),l(Wt,"FilterModel",ti),l(Wt,"FTSP",i.reactive(Ue)),Wt);function Mr(t,e){return function(){return t.apply(e,arguments)}}const{toString:Sl}=Object.prototype,{getPrototypeOf:ni}=Object,ln=(t=>e=>{const n=Sl.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Re=t=>(t=t.toLowerCase(),e=>ln(e)===t),cn=t=>e=>typeof e===t,{isArray:pt}=Array,Pt=cn("undefined");function kl(t){return t!==null&&!Pt(t)&&t.constructor!==null&&!Pt(t.constructor)&&Ce(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Br=Re("ArrayBuffer");function El(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Br(t.buffer),e}const xl=cn("string"),Ce=cn("function"),$r=cn("number"),dn=t=>t!==null&&typeof t=="object",Ml=t=>t===!0||t===!1,un=t=>{if(ln(t)!=="object")return!1;const e=ni(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Bl=Re("Date"),$l=Re("File"),Il=Re("Blob"),vl=Re("FileList"),Rl=t=>dn(t)&&Ce(t.pipe),Nl=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Ce(t.append)&&((e=ln(t))==="formdata"||e==="object"&&Ce(t.toString)&&t.toString()==="[object FormData]"))},Al=Re("URLSearchParams"),[Pl,zl,Vl,Tl]=["ReadableStream","Request","Response","Headers"].map(Re),Fl=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zt(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),pt(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),a=o.length;let d;for(r=0;r<a;r++)d=o[r],e.call(null,t[d],d,t)}}function Ir(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const ot=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,vr=t=>!Pt(t)&&t!==ot;function ii(){const{caseless:t}=vr(this)&&this||{},e={},n=(r,s)=>{const o=t&&Ir(e,s)||s;un(e[o])&&un(r)?e[o]=ii(e[o],r):un(r)?e[o]=ii({},r):pt(r)?e[o]=r.slice():e[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&zt(arguments[r],n);return e}const Ol=(t,e,n,{allOwnKeys:r}={})=>(zt(e,(s,o)=>{n&&Ce(s)?t[o]=Mr(s,n):t[o]=s},{allOwnKeys:r}),t),Dl=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Ll=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Hl=(t,e,n,r)=>{let s,o,a;const d={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)a=s[o],(!r||r(a,t,e))&&!d[a]&&(e[a]=t[a],d[a]=!0);t=n!==!1&&ni(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},ql=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Ul=t=>{if(!t)return null;if(pt(t))return t;let e=t.length;if(!$r(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},_l=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ni(Uint8Array)),jl=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const o=s.value;e.call(t,o[0],o[1])}},Wl=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Gl=Re("HTMLFormElement"),Zl=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Rr=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Xl=Re("RegExp"),Nr=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};zt(n,(s,o)=>{let a;(a=e(s,o,t))!==!1&&(r[o]=a||s)}),Object.defineProperties(t,r)},Yl=t=>{Nr(t,(e,n)=>{if(Ce(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Ce(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Jl=(t,e)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return pt(t)?r(t):r(String(t).split(e)),n},Ql=()=>{},Kl=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,ri="abcdefghijklmnopqrstuvwxyz",Ar="0123456789",Pr={DIGIT:Ar,ALPHA:ri,ALPHA_DIGIT:ri+ri.toUpperCase()+Ar},ec=(t=16,e=Pr.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function tc(t){return!!(t&&Ce(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const nc=t=>{const e=new Array(10),n=(r,s)=>{if(dn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const o=pt(r)?[]:{};return zt(r,(a,d)=>{const c=n(a,s+1);!Pt(c)&&(o[d]=c)}),e[s]=void 0,o}}return r};return n(t,0)},ic=Re("AsyncFunction"),rc=t=>t&&(dn(t)||Ce(t))&&Ce(t.then)&&Ce(t.catch),zr=((t,e)=>t?setImmediate:e?((n,r)=>(ot.addEventListener("message",({source:s,data:o})=>{s===ot&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ot.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ce(ot.postMessage)),sc=typeof queueMicrotask<"u"?queueMicrotask.bind(ot):typeof process<"u"&&process.nextTick||zr,w={isArray:pt,isArrayBuffer:Br,isBuffer:kl,isFormData:Nl,isArrayBufferView:El,isString:xl,isNumber:$r,isBoolean:Ml,isObject:dn,isPlainObject:un,isReadableStream:Pl,isRequest:zl,isResponse:Vl,isHeaders:Tl,isUndefined:Pt,isDate:Bl,isFile:$l,isBlob:Il,isRegExp:Xl,isFunction:Ce,isStream:Rl,isURLSearchParams:Al,isTypedArray:_l,isFileList:vl,forEach:zt,merge:ii,extend:Ol,trim:Fl,stripBOM:Dl,inherits:Ll,toFlatObject:Hl,kindOf:ln,kindOfTest:Re,endsWith:ql,toArray:Ul,forEachEntry:jl,matchAll:Wl,isHTMLForm:Gl,hasOwnProperty:Rr,hasOwnProp:Rr,reduceDescriptors:Nr,freezeMethods:Yl,toObjectSet:Jl,toCamelCase:Zl,noop:Ql,toFiniteNumber:Kl,findKey:Ir,global:ot,isContextDefined:vr,ALPHABET:Pr,generateString:ec,isSpecCompliantForm:tc,toJSONObject:nc,isAsyncFn:ic,isThenable:rc,setImmediate:zr,asap:sc};function F(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}w.inherits(F,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.status}}});const Vr=F.prototype,Tr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Tr[t]={value:t}}),Object.defineProperties(F,Tr),Object.defineProperty(Vr,"isAxiosError",{value:!0}),F.from=(t,e,n,r,s,o)=>{const a=Object.create(Vr);return w.toFlatObject(t,a,function(c){return c!==Error.prototype},d=>d!=="isAxiosError"),F.call(a,t.message,e,n,r,s),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};const oc=null;function si(t){return w.isPlainObject(t)||w.isArray(t)}function Fr(t){return w.endsWith(t,"[]")?t.slice(0,-2):t}function Or(t,e,n){return t?t.concat(e).map(function(s,o){return s=Fr(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function ac(t){return w.isArray(t)&&!t.some(si)}const lc=w.toFlatObject(w,{},null,function(e){return/^is[A-Z]/.test(e)});function hn(t,e,n){if(!w.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,S){return!w.isUndefined(S[b])});const r=n.metaTokens,s=n.visitor||h,o=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(e);if(!w.isFunction(s))throw new TypeError("visitor must be a function");function u(C){if(C===null)return"";if(w.isDate(C))return C.toISOString();if(!c&&w.isBlob(C))throw new F("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(C)||w.isTypedArray(C)?c&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function h(C,b,S){let I=C;if(C&&!S&&typeof C=="object"){if(w.endsWith(b,"{}"))b=r?b:b.slice(0,-2),C=JSON.stringify(C);else if(w.isArray(C)&&ac(C)||(w.isFileList(C)||w.endsWith(b,"[]"))&&(I=w.toArray(C)))return b=Fr(b),I.forEach(function(z,R){!(w.isUndefined(z)||z===null)&&e.append(a===!0?Or([b],R,o):a===null?b:b+"[]",u(z))}),!1}return si(C)?!0:(e.append(Or(S,b,o),u(C)),!1)}const f=[],m=Object.assign(lc,{defaultVisitor:h,convertValue:u,isVisitable:si});function g(C,b){if(!w.isUndefined(C)){if(f.indexOf(C)!==-1)throw Error("Circular reference detected in "+b.join("."));f.push(C),w.forEach(C,function(I,O){(!(w.isUndefined(I)||I===null)&&s.call(e,I,w.isString(O)?O.trim():O,b,m))===!0&&g(I,b?b.concat(O):[O])}),f.pop()}}if(!w.isObject(t))throw new TypeError("data must be an object");return g(t),e}function Dr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function oi(t,e){this._pairs=[],t&&hn(t,this,e)}const Lr=oi.prototype;Lr.append=function(e,n){this._pairs.push([e,n])},Lr.toString=function(e){const n=e?function(r){return e.call(this,r,Dr)}:Dr;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function cc(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Hr(t,e,n){if(!e)return t;const r=n&&n.encode||cc;w.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(e,n):o=w.isURLSearchParams(e)?e.toString():new oi(e,n).toString(r),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class qr{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){w.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Ur={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dc={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:oi,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ai=typeof window<"u"&&typeof document<"u",li=typeof navigator=="object"&&navigator||void 0,uc=ai&&(!li||["ReactNative","NativeScript","NS"].indexOf(li.product)<0),hc=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fc=ai&&window.location.href||"http://localhost",pe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ai,hasStandardBrowserEnv:uc,hasStandardBrowserWebWorkerEnv:hc,navigator:li,origin:fc},Symbol.toStringTag,{value:"Module"})),...dc};function mc(t,e){return hn(t,new pe.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return pe.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function pc(t){return w.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function gc(t){const e={},n=Object.keys(t);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],e[o]=t[o];return e}function _r(t){function e(n,r,s,o){let a=n[o++];if(a==="__proto__")return!0;const d=Number.isFinite(+a),c=o>=n.length;return a=!a&&w.isArray(s)?s.length:a,c?(w.hasOwnProp(s,a)?s[a]=[s[a],r]:s[a]=r,!d):((!s[a]||!w.isObject(s[a]))&&(s[a]=[]),e(n,r,s[a],o)&&w.isArray(s[a])&&(s[a]=gc(s[a])),!d)}if(w.isFormData(t)&&w.isFunction(t.entries)){const n={};return w.forEachEntry(t,(r,s)=>{e(pc(r),s,n,0)}),n}return null}function yc(t,e,n){if(w.isString(t))try{return(e||JSON.parse)(t),w.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const Vt={transitional:Ur,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=w.isObject(e);if(o&&w.isHTMLForm(e)&&(e=new FormData(e)),w.isFormData(e))return s?JSON.stringify(_r(e)):e;if(w.isArrayBuffer(e)||w.isBuffer(e)||w.isStream(e)||w.isFile(e)||w.isBlob(e)||w.isReadableStream(e))return e;if(w.isArrayBufferView(e))return e.buffer;if(w.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return mc(e,this.formSerializer).toString();if((d=w.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return hn(d?{"files[]":e}:e,c&&new c,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),yc(e)):e}],transformResponse:[function(e){const n=this.transitional||Vt.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(w.isResponse(e)||w.isReadableStream(e))return e;if(e&&w.isString(e)&&(r&&!this.responseType||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(d){if(a)throw d.name==="SyntaxError"?F.from(d,F.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pe.classes.FormData,Blob:pe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],t=>{Vt.headers[t]={}});const wc=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bc=t=>{const e={};let n,r,s;return t&&t.split(`
15
15
  `).forEach(function(a){s=a.indexOf(":"),n=a.substring(0,s).trim().toLowerCase(),r=a.substring(s+1).trim(),!(!n||e[n]&&wc[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},jr=Symbol("internals");function Tt(t){return t&&String(t).trim().toLowerCase()}function fn(t){return t===!1||t==null?t:w.isArray(t)?t.map(fn):String(t)}function Cc(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Sc=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ci(t,e,n,r,s){if(w.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!w.isString(e)){if(w.isString(r))return e.indexOf(r)!==-1;if(w.isRegExp(r))return r.test(e)}}function kc(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Ec(t,e){const n=w.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,o,a){return this[r].call(this,e,s,o,a)},configurable:!0})})}class we{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function o(d,c,u){const h=Tt(c);if(!h)throw new Error("header name must be a non-empty string");const f=w.findKey(s,h);(!f||s[f]===void 0||u===!0||u===void 0&&s[f]!==!1)&&(s[f||c]=fn(d))}const a=(d,c)=>w.forEach(d,(u,h)=>o(u,h,c));if(w.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(w.isString(e)&&(e=e.trim())&&!Sc(e))a(bc(e),n);else if(w.isHeaders(e))for(const[d,c]of e.entries())o(c,d,r);else e!=null&&o(n,e,r);return this}get(e,n){if(e=Tt(e),e){const r=w.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return Cc(s);if(w.isFunction(n))return n.call(this,s,r);if(w.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Tt(e),e){const r=w.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||ci(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function o(a){if(a=Tt(a),a){const d=w.findKey(r,a);d&&(!n||ci(r,r[d],d,n))&&(delete r[d],s=!0)}}return w.isArray(e)?e.forEach(o):o(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!e||ci(this,this[o],o,e,!0))&&(delete this[o],s=!0)}return s}normalize(e){const n=this,r={};return w.forEach(this,(s,o)=>{const a=w.findKey(r,o);if(a){n[a]=fn(s),delete n[o];return}const d=e?kc(o):String(o).trim();d!==o&&delete n[o],n[d]=fn(s),r[d]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return w.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&w.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
16
16
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[jr]=this[jr]={accessors:{}}).accessors,s=this.prototype;function o(a){const d=Tt(a);r[d]||(Ec(s,a),r[d]=!0)}return w.isArray(e)?e.forEach(o):o(e),this}}we.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.reduceDescriptors(we.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),w.freezeMethods(we);function di(t,e){const n=this||Vt,r=e||n,s=we.from(r.headers);let o=r.data;return w.forEach(t,function(d){o=d.call(n,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function Wr(t){return!!(t&&t.__CANCEL__)}function gt(t,e,n){F.call(this,t??"canceled",F.ERR_CANCELED,e,n),this.name="CanceledError"}w.inherits(gt,F,{__CANCEL__:!0});function Gr(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new F("Request failed with status code "+n.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function xc(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Mc(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,o=0,a;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),h=r[o];a||(a=u),n[s]=c,r[s]=u;let f=o,m=0;for(;f!==s;)m+=n[f++],f=f%t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),u-a<e)return;const g=h&&u-h;return g?Math.round(m*1e3/g):void 0}}function Bc(t,e){let n=0,r=1e3/e,s,o;const a=(u,h=Date.now())=>{n=h,s=null,o&&(clearTimeout(o),o=null),t.apply(null,u)};return[(...u)=>{const h=Date.now(),f=h-n;f>=r?a(u,h):(s=u,o||(o=setTimeout(()=>{o=null,a(s)},r-f)))},()=>s&&a(s)]}const mn=(t,e,n=3)=>{let r=0;const s=Mc(50,250);return Bc(o=>{const a=o.loaded,d=o.lengthComputable?o.total:void 0,c=a-r,u=s(c),h=a<=d;r=a;const f={loaded:a,total:d,progress:d?a/d:void 0,bytes:c,rate:u||void 0,estimated:u&&d&&h?(d-a)/u:void 0,event:o,lengthComputable:d!=null,[e?"download":"upload"]:!0};t(f)},n)},Zr=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Xr=t=>(...e)=>w.asap(()=>t(...e)),$c=pe.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,pe.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(pe.origin),pe.navigator&&/(msie|trident)/i.test(pe.navigator.userAgent)):()=>!0,Ic=pe.hasStandardBrowserEnv?{write(t,e,n,r,s,o){const a=[t+"="+encodeURIComponent(e)];w.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),w.isString(r)&&a.push("path="+r),w.isString(s)&&a.push("domain="+s),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function vc(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Rc(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Yr(t,e){return t&&!vc(e)?Rc(t,e):e}const Jr=t=>t instanceof we?{...t}:t;function at(t,e){e=e||{};const n={};function r(u,h,f,m){return w.isPlainObject(u)&&w.isPlainObject(h)?w.merge.call({caseless:m},u,h):w.isPlainObject(h)?w.merge({},h):w.isArray(h)?h.slice():h}function s(u,h,f,m){if(w.isUndefined(h)){if(!w.isUndefined(u))return r(void 0,u,f,m)}else return r(u,h,f,m)}function o(u,h){if(!w.isUndefined(h))return r(void 0,h)}function a(u,h){if(w.isUndefined(h)){if(!w.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function d(u,h,f){if(f in e)return r(u,h);if(f in t)return r(void 0,u)}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:d,headers:(u,h,f)=>s(Jr(u),Jr(h),f,!0)};return w.forEach(Object.keys(Object.assign({},t,e)),function(h){const f=c[h]||s,m=f(t[h],e[h],h);w.isUndefined(m)&&f!==d||(n[h]=m)}),n}const Qr=t=>{const e=at({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:a,auth:d}=e;e.headers=a=we.from(a),e.url=Hr(Yr(e.baseURL,e.url),t.params,t.paramsSerializer),d&&a.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let c;if(w.isFormData(n)){if(pe.hasStandardBrowserEnv||pe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[u,...h]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...h].join("; "))}}if(pe.hasStandardBrowserEnv&&(r&&w.isFunction(r)&&(r=r(e)),r||r!==!1&&$c(e.url))){const u=s&&o&&Ic.read(o);u&&a.set(s,u)}return e},Nc=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const s=Qr(t);let o=s.data;const a=we.from(s.headers).normalize();let{responseType:d,onUploadProgress:c,onDownloadProgress:u}=s,h,f,m,g,C;function b(){g&&g(),C&&C(),s.cancelToken&&s.cancelToken.unsubscribe(h),s.signal&&s.signal.removeEventListener("abort",h)}let S=new XMLHttpRequest;S.open(s.method.toUpperCase(),s.url,!0),S.timeout=s.timeout;function I(){if(!S)return;const z=we.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),H={data:!d||d==="text"||d==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:z,config:t,request:S};Gr(function($e){n($e),b()},function($e){r($e),b()},H),S=null}"onloadend"in S?S.onloadend=I:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(I)},S.onabort=function(){S&&(r(new F("Request aborted",F.ECONNABORTED,t,S)),S=null)},S.onerror=function(){r(new F("Network Error",F.ERR_NETWORK,t,S)),S=null},S.ontimeout=function(){let R=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const H=s.transitional||Ur;s.timeoutErrorMessage&&(R=s.timeoutErrorMessage),r(new F(R,H.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,t,S)),S=null},o===void 0&&a.setContentType(null),"setRequestHeader"in S&&w.forEach(a.toJSON(),function(R,H){S.setRequestHeader(H,R)}),w.isUndefined(s.withCredentials)||(S.withCredentials=!!s.withCredentials),d&&d!=="json"&&(S.responseType=s.responseType),u&&([m,C]=mn(u,!0),S.addEventListener("progress",m)),c&&S.upload&&([f,g]=mn(c),S.upload.addEventListener("progress",f),S.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(h=z=>{S&&(r(!z||z.type?new gt(null,t,S):z),S.abort(),S=null)},s.cancelToken&&s.cancelToken.subscribe(h),s.signal&&(s.signal.aborted?h():s.signal.addEventListener("abort",h)));const O=xc(s.url);if(O&&pe.protocols.indexOf(O)===-1){r(new F("Unsupported protocol "+O+":",F.ERR_BAD_REQUEST,t));return}S.send(o||null)})},Ac=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,s;const o=function(u){if(!s){s=!0,d();const h=u instanceof Error?u:this.reason;r.abort(h instanceof F?h:new gt(h instanceof Error?h.message:h))}};let a=e&&setTimeout(()=>{a=null,o(new F(`timeout ${e} of ms exceeded`,F.ETIMEDOUT))},e);const d=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),t=null)};t.forEach(u=>u.addEventListener("abort",o));const{signal:c}=r;return c.unsubscribe=()=>w.asap(d),c}},Pc=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,s;for(;r<n;)s=r+e,yield t.slice(r,s),r=s},zc=async function*(t,e){for await(const n of Vc(t))yield*Pc(n,e)},Vc=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Kr=(t,e,n,r)=>{const s=zc(t,e);let o=0,a,d=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:h}=await s.next();if(u){d(),c.close();return}let f=h.byteLength;if(n){let m=o+=f;n(m)}c.enqueue(new Uint8Array(h))}catch(u){throw d(u),u}},cancel(c){return d(c),s.return()}},{highWaterMark:2})},pn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",es=pn&&typeof ReadableStream=="function",Tc=pn&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ts=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Fc=es&&ts(()=>{let t=!1;const e=new Request(pe.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),ns=64*1024,ui=es&&ts(()=>w.isReadableStream(new Response("").body)),gn={stream:ui&&(t=>t.body)};pn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!gn[e]&&(gn[e]=w.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new F(`Response type '${e}' is not supported`,F.ERR_NOT_SUPPORT,r)})})})(new Response);const Oc=async t=>{if(t==null)return 0;if(w.isBlob(t))return t.size;if(w.isSpecCompliantForm(t))return(await new Request(pe.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(w.isArrayBufferView(t)||w.isArrayBuffer(t))return t.byteLength;if(w.isURLSearchParams(t)&&(t=t+""),w.isString(t))return(await Tc(t)).byteLength},Dc=async(t,e)=>{const n=w.toFiniteNumber(t.getContentLength());return n??Oc(e)},hi={http:oc,xhr:Nc,fetch:pn&&(async t=>{let{url:e,method:n,data:r,signal:s,cancelToken:o,timeout:a,onDownloadProgress:d,onUploadProgress:c,responseType:u,headers:h,withCredentials:f="same-origin",fetchOptions:m}=Qr(t);u=u?(u+"").toLowerCase():"text";let g=Ac([s,o&&o.toAbortSignal()],a),C;const b=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let S;try{if(c&&Fc&&n!=="get"&&n!=="head"&&(S=await Dc(h,r))!==0){let H=new Request(e,{method:"POST",body:r,duplex:"half"}),Be;if(w.isFormData(r)&&(Be=H.headers.get("content-type"))&&h.setContentType(Be),H.body){const[$e,nt]=Zr(S,mn(Xr(c)));r=Kr(H.body,ns,$e,nt)}}w.isString(f)||(f=f?"include":"omit");const I="credentials"in Request.prototype;C=new Request(e,{...m,signal:g,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:r,duplex:"half",credentials:I?f:void 0});let O=await fetch(C);const z=ui&&(u==="stream"||u==="response");if(ui&&(d||z&&b)){const H={};["status","statusText","headers"].forEach(It=>{H[It]=O[It]});const Be=w.toFiniteNumber(O.headers.get("content-length")),[$e,nt]=d&&Zr(Be,mn(Xr(d),!0))||[];O=new Response(Kr(O.body,ns,$e,()=>{nt&&nt(),b&&b()}),H)}u=u||"text";let R=await gn[w.findKey(gn,u)||"text"](O,t);return!z&&b&&b(),await new Promise((H,Be)=>{Gr(H,Be,{data:R,headers:we.from(O.headers),status:O.status,statusText:O.statusText,config:t,request:C})})}catch(I){throw b&&b(),I&&I.name==="TypeError"&&/fetch/i.test(I.message)?Object.assign(new F("Network Error",F.ERR_NETWORK,t,C),{cause:I.cause||I}):F.from(I,I&&I.code,t,C)}})};w.forEach(hi,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const is=t=>`- ${t}`,Lc=t=>w.isFunction(t)||t===null||t===!1,rs={getAdapter:t=>{t=w.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let o=0;o<e;o++){n=t[o];let a;if(r=n,!Lc(n)&&(r=hi[(a=String(n)).toLowerCase()],r===void 0))throw new F(`Unknown adapter '${a}'`);if(r)break;s[a||"#"+o]=r}if(!r){const o=Object.entries(s).map(([d,c])=>`adapter ${d} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=e?o.length>1?`since :
17
17
  `+o.map(is).join(`
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "sprof",
3
3
  "description": "components for the designer and uikit",
4
4
  "author": "Stanislav Lushnikov, Daniil Gaivoronskiy",
5
- "version": "0.0.227",
5
+ "version": "0.0.228",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "main": "./dist/sprof.umd.cjs",