sprof 0.0.104 → 0.0.105

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sprof.js CHANGED
@@ -92,12 +92,12 @@ var Ss;
92
92
  return k;
93
93
  }
94
94
  e("metadata", Y);
95
- function _(w, C, k, F) {
95
+ function Z(w, C, k, F) {
96
96
  if (!fe(k))
97
97
  throw new TypeError();
98
98
  return V(F) || (F = Xe(F)), as(w, C, k, F);
99
99
  }
100
- e("defineMetadata", _);
100
+ e("defineMetadata", Z);
101
101
  function j(w, C, k) {
102
102
  if (!fe(C))
103
103
  throw new TypeError();
@@ -905,7 +905,7 @@ u(Lt, "GetClassConstructor", (e) => (i, n) => {
905
905
  const s = Reflect.getMetadata(`property:${n}`, i) || {};
906
906
  s[n] = e, Reflect.defineMetadata(n, s, i);
907
907
  });
908
- let Z = Lt;
908
+ let _ = Lt;
909
909
  class Dn {
910
910
  static Setup(e) {
911
911
  this.staticUrl = e;
@@ -926,7 +926,7 @@ class nt {
926
926
  u(this, "id");
927
927
  u(this, "originalName", "");
928
928
  u(this, "fileSystemPath", "");
929
- Z.BuildClass(this, e);
929
+ _.BuildClass(this, e);
930
930
  }
931
931
  getFileUrl() {
932
932
  const e = this.url ? this.url : `${Dn.StaticUrl}/${this.fileSystemPath}`;
@@ -984,7 +984,7 @@ class ni {
984
984
  u(this, "fileInfoId");
985
985
  // fileInfo: FileInfo = new FileInfo();
986
986
  u(this, "order", 0);
987
- M.H.Classes.BuildClass(this, e);
987
+ _.BuildClass(this, e);
988
988
  }
989
989
  static Create(e) {
990
990
  const i = new ni();
@@ -1198,7 +1198,7 @@ const ur = class Ft {
1198
1198
  u(this, "joinTablePk", "");
1199
1199
  u(this, "joinTableId", "");
1200
1200
  u(this, "joinTableIdCol", "");
1201
- Z.BuildClass(this, e);
1201
+ _.BuildClass(this, e);
1202
1202
  }
1203
1203
  eq(e) {
1204
1204
  if (!e)
@@ -1293,7 +1293,7 @@ const ur = class Ft {
1293
1293
  }
1294
1294
  };
1295
1295
  va([
1296
- Z.GetClassConstructor(String)
1296
+ _.GetClassConstructor(String)
1297
1297
  ], ur.prototype, "set");
1298
1298
  let cr = ur;
1299
1299
  class ya {
@@ -1323,7 +1323,7 @@ class Mi {
1323
1323
  u(this, "append", !1);
1324
1324
  u(this, "allLoaded", !1);
1325
1325
  u(this, "version", "");
1326
- Z.BuildClass(this, e);
1326
+ _.BuildClass(this, e);
1327
1327
  }
1328
1328
  setLoadMore(e, i, n) {
1329
1329
  this.cursor.value = e, this.cursor.initial = !1, this.cursor.operation = ke.Gt, this.cursor.column = i, this.cursor.tableName = n, this.cursorMode = !0;
@@ -1352,7 +1352,7 @@ class Mi {
1352
1352
  return this.offset / this.limit + 1;
1353
1353
  }
1354
1354
  drop() {
1355
- this.offset = 0, this.limit = 25, Z.BuildClass(this);
1355
+ this.offset = 0, this.limit = 25, _.BuildClass(this);
1356
1356
  }
1357
1357
  }
1358
1358
  var Ge = /* @__PURE__ */ ((t) => (t.Asc = "asc", t.Desc = "desc", t))(Ge || {});
@@ -1364,7 +1364,7 @@ class Hn {
1364
1364
  u(this, "label", "");
1365
1365
  u(this, "default", !1);
1366
1366
  u(this, "selected", !1);
1367
- Z.BuildClass(this, e);
1367
+ _.BuildClass(this, e);
1368
1368
  }
1369
1369
  static Create(e, i, n = Ge.Asc, s, r) {
1370
1370
  const o = new Hn();
@@ -1417,7 +1417,7 @@ const si = (Oe = class {
1417
1417
  u(this, "s", []);
1418
1418
  u(this, "p", new Mi());
1419
1419
  u(this, "t", new Fi());
1420
- Z.BuildClass(this, e);
1420
+ _.BuildClass(this, e);
1421
1421
  }
1422
1422
  static Get() {
1423
1423
  return this.instance || (this.instance = new Oe()), this.instance;
@@ -1456,7 +1456,7 @@ const si = (Oe = class {
1456
1456
  }
1457
1457
  removeF(e) {
1458
1458
  const i = this.f.findIndex((n) => n.eq(e));
1459
- Z.RemoveFromClassByIndex(i, this.f);
1459
+ _.RemoveFromClassByIndex(i, this.f);
1460
1460
  }
1461
1461
  reset() {
1462
1462
  this.f = [], this.s = [], this.p = new Mi();
@@ -1466,22 +1466,22 @@ const si = (Oe = class {
1466
1466
  }
1467
1467
  }, u(Oe, "instance"), Oe);
1468
1468
  zi([
1469
- Z.GetClassConstructor(cr)
1469
+ _.GetClassConstructor(cr)
1470
1470
  ], si.prototype, "f");
1471
1471
  zi([
1472
- Z.GetClassConstructor(Hn)
1472
+ _.GetClassConstructor(Hn)
1473
1473
  ], si.prototype, "s");
1474
1474
  zi([
1475
- Z.GetClassConstructor(Mi)
1475
+ _.GetClassConstructor(Mi)
1476
1476
  ], si.prototype, "p");
1477
1477
  zi([
1478
- Z.GetClassConstructor(Fi)
1478
+ _.GetClassConstructor(Fi)
1479
1479
  ], si.prototype, "t");
1480
1480
  let dr = si;
1481
1481
  class Oi {
1482
1482
  constructor(e) {
1483
1483
  u(this, "name", "");
1484
- Z.BuildClass(this, e);
1484
+ _.BuildClass(this, e);
1485
1485
  }
1486
1486
  static Set() {
1487
1487
  }
@@ -1827,10 +1827,10 @@ function Hi(t, e, i) {
1827
1827
  if (x.endsWith(I, "{}"))
1828
1828
  I = n ? I : I.slice(0, -2), v = JSON.stringify(v);
1829
1829
  else if (x.isArray(v) && ol(v) || (x.isFileList(v) || x.endsWith(I, "[]")) && (O = x.toArray(v)))
1830
- return I = Cr(I), O.forEach(function(Y, _) {
1830
+ return I = Cr(I), O.forEach(function(Y, Z) {
1831
1831
  !(x.isUndefined(Y) || Y === null) && e.append(
1832
1832
  // eslint-disable-next-line no-nested-ternary
1833
- o === !0 ? ks([I], _, r) : o === null ? I : I + "[]",
1833
+ o === !0 ? ks([I], Z, r) : o === null ? I : I + "[]",
1834
1834
  c(Y)
1835
1835
  );
1836
1836
  }), !1;
@@ -2562,16 +2562,16 @@ const Pr = (t) => {
2562
2562
  }, S.onerror = function() {
2563
2563
  n(new X("Network Error", X.ERR_NETWORK, t, S)), S = null;
2564
2564
  }, S.ontimeout = function() {
2565
- let _ = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
2565
+ let Z = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
2566
2566
  const j = s.transitional || kr;
2567
- s.timeoutErrorMessage && (_ = s.timeoutErrorMessage), n(new X(
2568
- _,
2567
+ s.timeoutErrorMessage && (Z = s.timeoutErrorMessage), n(new X(
2568
+ Z,
2569
2569
  j.clarifyTimeoutError ? X.ETIMEDOUT : X.ECONNABORTED,
2570
2570
  t,
2571
2571
  S
2572
2572
  )), S = null;
2573
- }, r === void 0 && o.setContentType(null), "setRequestHeader" in S && x.forEach(o.toJSON(), function(_, j) {
2574
- S.setRequestHeader(j, _);
2573
+ }, r === void 0 && o.setContentType(null), "setRequestHeader" in S && x.forEach(o.toJSON(), function(Z, j) {
2574
+ S.setRequestHeader(j, Z);
2575
2575
  }), x.isUndefined(s.withCredentials) || (S.withCredentials = !!s.withCredentials), l && l !== "json" && (S.responseType = s.responseType), c && ([g, v] = ki(c, !0), S.addEventListener("progress", g)), a && S.upload && ([h, y] = ki(a), S.upload.addEventListener("progress", h), S.upload.addEventListener("loadend", y)), (s.cancelToken || s.signal) && (d = (Y) => {
2576
2576
  S && (n(!Y || Y.type ? new Wt(null, t, S) : Y), S.abort(), S = null);
2577
2577
  }, s.cancelToken && s.cancelToken.subscribe(d), s.signal && (s.signal.aborted ? d() : s.signal.addEventListener("abort", d)));
@@ -2771,10 +2771,10 @@ const Ul = async (t) => {
2771
2771
  );
2772
2772
  }
2773
2773
  c = c || "text";
2774
- let _ = await Ii[x.findKey(Ii, c) || "text"](J, t);
2774
+ let Z = await Ii[x.findKey(Ii, c) || "text"](J, t);
2775
2775
  return !Y && I && I(), await new Promise((j, ze) => {
2776
2776
  Ar(j, ze, {
2777
- data: _,
2777
+ data: Z,
2778
2778
  headers: Te.from(J.headers),
2779
2779
  status: J.status,
2780
2780
  statusText: J.statusText,
@@ -3419,7 +3419,7 @@ class jn {
3419
3419
  constructor(e) {
3420
3420
  u(this, "code", 400);
3421
3421
  u(this, "err", "");
3422
- Z.BuildClass(this, e);
3422
+ _.BuildClass(this, e);
3423
3423
  }
3424
3424
  getErr() {
3425
3425
  return this.capitalizedErr();
@@ -3817,7 +3817,7 @@ class le {
3817
3817
  this.ResetItem(), this.ClearItems(), this.count.value = 0;
3818
3818
  }
3819
3819
  ResetItem() {
3820
- Z.BuildClass(this.item, new this.classConstructor());
3820
+ _.BuildClass(this.item, new this.classConstructor());
3821
3821
  }
3822
3822
  ClearItems() {
3823
3823
  this.items.splice(0, this.items.length);
@@ -3902,7 +3902,7 @@ class Gr {
3902
3902
  u(this, "id");
3903
3903
  u(this, "name", Ie.String);
3904
3904
  u(this, "valueRelation", Wr.simple);
3905
- Z.BuildClass(this, e);
3905
+ _.BuildClass(this, e);
3906
3906
  }
3907
3907
  isString() {
3908
3908
  return this.name === "string";
@@ -4888,7 +4888,7 @@ class ui {
4888
4888
  u(this, "ratio", 0);
4889
4889
  u(this, "src", "");
4890
4890
  u(this, "store", "");
4891
- Z.BuildClass(this, e);
4891
+ _.BuildClass(this, e);
4892
4892
  }
4893
4893
  static CreateCropper(e, i, n) {
4894
4894
  const s = new ui();
@@ -4901,7 +4901,7 @@ class It {
4901
4901
  u(this, "address");
4902
4902
  u(this, "description");
4903
4903
  u(this, "contactId");
4904
- Z.BuildClass(this, e);
4904
+ _.BuildClass(this, e);
4905
4905
  }
4906
4906
  static Create() {
4907
4907
  const e = new It();
@@ -4921,7 +4921,7 @@ class so {
4921
4921
  u(this, "postIndex", "");
4922
4922
  u(this, "address", "");
4923
4923
  u(this, "editNameMode", !1);
4924
- Z.BuildClass(this, e);
4924
+ _.BuildClass(this, e);
4925
4925
  }
4926
4926
  setEditNameMode(e) {
4927
4927
  this.editNameMode = e;
@@ -4954,7 +4954,7 @@ class Rt {
4954
4954
  u(this, "number");
4955
4955
  u(this, "description");
4956
4956
  u(this, "contactId");
4957
- Z.BuildClass(this, e);
4957
+ _.BuildClass(this, e);
4958
4958
  }
4959
4959
  static Create() {
4960
4960
  const e = new Rt();
@@ -4966,7 +4966,7 @@ class Ai {
4966
4966
  u(this, "id");
4967
4967
  u(this, "address");
4968
4968
  u(this, "description");
4969
- Z.BuildClass(this, e);
4969
+ _.BuildClass(this, e);
4970
4970
  }
4971
4971
  }
4972
4972
  class Jn {
@@ -4974,7 +4974,7 @@ class Jn {
4974
4974
  u(this, "id");
4975
4975
  u(this, "address");
4976
4976
  u(this, "description");
4977
- Z.BuildClass(this, e);
4977
+ _.BuildClass(this, e);
4978
4978
  }
4979
4979
  }
4980
4980
  var rt;
@@ -5476,7 +5476,7 @@ class $i {
5476
5476
  u(this, "createdOn", /* @__PURE__ */ new Date());
5477
5477
  u(this, "chatId");
5478
5478
  u(this, "type", "message");
5479
- Z.BuildClass(this, e);
5479
+ _.BuildClass(this, e);
5480
5480
  }
5481
5481
  static Create(e, i, n, s) {
5482
5482
  const r = new $i();
@@ -5497,7 +5497,7 @@ class Ec {
5497
5497
  u(this, "endpoint", "");
5498
5498
  u(this, "query", "");
5499
5499
  u(this, "period", 2e4);
5500
- Z.BuildClass(this, { endpoint: e, query: i, mutation: n }), this.connect(), this.ping();
5500
+ _.BuildClass(this, { endpoint: e, query: i, mutation: n }), this.connect(), this.ping();
5501
5501
  }
5502
5502
  send(e) {
5503
5503
  !this.client || this.client.readyState !== 1 || this.client.send(e);
@@ -5527,7 +5527,7 @@ class Ec {
5527
5527
  var ee;
5528
5528
  let Tc = (ee = class {
5529
5529
  }, u(ee, "Arrays", pt), u(ee, "Axios", _t), u(ee, "BaseStore", le), // static Phone = Phone;
5530
- u(ee, "Cache", Oi), u(ee, "Classes", Z), u(ee, "CarouselSwipe", tc), u(ee, "Color", nc), u(ee, "CreateSortModels", ro), u(ee, "Cursor", sc), u(ee, "DateMask", cc), u(ee, "Dates", at), u(ee, "Dragger", fc), u(ee, "Extension", mc), u(ee, "Favourite", gc), // static FTSP = FTSP;
5530
+ u(ee, "Cache", Oi), u(ee, "Classes", _), u(ee, "CarouselSwipe", tc), u(ee, "Color", nc), u(ee, "CreateSortModels", ro), u(ee, "Cursor", sc), u(ee, "DateMask", cc), u(ee, "Dates", at), u(ee, "Dragger", fc), u(ee, "Extension", mc), u(ee, "Favourite", gc), // static FTSP = FTSP;
5531
5531
  u(ee, "Hooks", Sc), u(ee, "HttpClient", Se), u(ee, "Id", Ve), u(ee, "MakeCarousel", oo), u(ee, "Period", Cn), u(ee, "PhoneService", In), u(ee, "Rating", Cc), u(ee, "Router", vt), u(ee, "RouterGuard", xc), u(ee, "Scheduler", Mc), u(ee, "Scroll", Ic), // static Sizes = Sizes;
5532
5532
  u(ee, "Sorter", Rc), u(ee, "Static", Dn), // static Statuses = Statuses;
5533
5533
  u(ee, "Strings", we), u(ee, "Time", te), u(ee, "Timer", ei), u(ee, "Token", Qt), u(ee, "Menus", Xn), // static useConfirmLeavePage = useConfirmLeavePage();
@@ -5606,7 +5606,7 @@ const ci = class ao {
5606
5606
  u(this, "postAddresses", [new Ai()]);
5607
5607
  u(this, "phones", []);
5608
5608
  u(this, "websites", []);
5609
- Z.BuildClass(this, e);
5609
+ _.BuildClass(this, e);
5610
5610
  }
5611
5611
  addEmail() {
5612
5612
  const e = It.Create();
@@ -5621,10 +5621,10 @@ const ci = class ao {
5621
5621
  return e.id = Ve.UUID(), e;
5622
5622
  }
5623
5623
  removeEmail(e) {
5624
- Z.RemoveFromClassById(e, this.emails);
5624
+ _.RemoveFromClassById(e, this.emails);
5625
5625
  }
5626
5626
  removePhone(e) {
5627
- Z.RemoveFromClassById(e, this.phones);
5627
+ _.RemoveFromClassById(e, this.phones);
5628
5628
  }
5629
5629
  addPostAddress() {
5630
5630
  this.postAddresses.push(new Ai());
@@ -5652,16 +5652,16 @@ const ci = class ao {
5652
5652
  }
5653
5653
  };
5654
5654
  ji([
5655
- Z.GetClassConstructor(It)
5655
+ _.GetClassConstructor(It)
5656
5656
  ], ci.prototype, "emails");
5657
5657
  ji([
5658
- Z.GetClassConstructor(Ai)
5658
+ _.GetClassConstructor(Ai)
5659
5659
  ], ci.prototype, "postAddresses");
5660
5660
  ji([
5661
- Z.GetClassConstructor(Rt)
5661
+ _.GetClassConstructor(Rt)
5662
5662
  ], ci.prototype, "phones");
5663
5663
  ji([
5664
- Z.GetClassConstructor(Jn)
5664
+ _.GetClassConstructor(Jn)
5665
5665
  ], ci.prototype, "websites");
5666
5666
  let Bc = ci, Hc = class extends le {
5667
5667
  constructor() {
@@ -5701,7 +5701,7 @@ class Yn {
5701
5701
  u(this, "id");
5702
5702
  u(this, "ftsp");
5703
5703
  u(this, "name", "");
5704
- Z.BuildClass(this, e);
5704
+ _.BuildClass(this, e);
5705
5705
  }
5706
5706
  static Create(e) {
5707
5707
  const i = new Yn();
@@ -5730,7 +5730,7 @@ class Kc {
5730
5730
  constructor(e) {
5731
5731
  u(this, "id");
5732
5732
  u(this, "nameRus", "");
5733
- Z.BuildClass(this, e);
5733
+ _.BuildClass(this, e);
5734
5734
  }
5735
5735
  }
5736
5736
  var ed = Object.defineProperty, td = (t, e, i, n) => {
@@ -5743,11 +5743,11 @@ class lo {
5743
5743
  u(this, "id");
5744
5744
  u(this, "nameRus", "");
5745
5745
  u(this, "fields", []);
5746
- Z.BuildClass(this, e);
5746
+ _.BuildClass(this, e);
5747
5747
  }
5748
5748
  }
5749
5749
  td([
5750
- Z.GetClassConstructor(Kc)
5750
+ _.GetClassConstructor(Kc)
5751
5751
  ], lo.prototype, "fields");
5752
5752
  let id = class extends le {
5753
5753
  constructor() {
@@ -5765,7 +5765,7 @@ class uo {
5765
5765
  u(this, "route", "");
5766
5766
  // searchGroup: SearchGroup = new SearchGroup();
5767
5767
  u(this, "searchElementMetas", []);
5768
- Z.BuildClass(this, e);
5768
+ _.BuildClass(this, e);
5769
5769
  }
5770
5770
  }
5771
5771
  class sd {
@@ -5773,7 +5773,7 @@ class sd {
5773
5773
  u(this, "id");
5774
5774
  u(this, "name", "");
5775
5775
  u(this, "label", "");
5776
- Z.BuildClass(this, e);
5776
+ _.BuildClass(this, e);
5777
5777
  }
5778
5778
  }
5779
5779
  var rd = Object.defineProperty, co = (t, e, i, n) => {
@@ -5796,14 +5796,14 @@ class Ot {
5796
5796
  u(this, "valueColumn", "");
5797
5797
  u(this, "options", []);
5798
5798
  u(this, "searchGroupMetaColumns", []);
5799
- Z.BuildClass(this, e);
5799
+ _.BuildClass(this, e);
5800
5800
  }
5801
5801
  }
5802
5802
  co([
5803
- Z.GetClassConstructor(uo)
5803
+ _.GetClassConstructor(uo)
5804
5804
  ], Ot.prototype, "options");
5805
5805
  co([
5806
- Z.GetClassConstructor(sd)
5806
+ _.GetClassConstructor(sd)
5807
5807
  ], Ot.prototype, "searchGroupMetaColumns");
5808
5808
  class an {
5809
5809
  constructor(e) {
@@ -5887,7 +5887,7 @@ class Qn {
5887
5887
  u(this, "login", "");
5888
5888
  u(this, "email", "");
5889
5889
  u(this, "password", "");
5890
- Z.BuildClass(this, e);
5890
+ _.BuildClass(this, e);
5891
5891
  }
5892
5892
  static Create() {
5893
5893
  const e = new Qn();
@@ -6550,8 +6550,8 @@ let rh = class {
6550
6550
  const { mask: r, escaped: o } = this.escapeMask(i), l = [], a = this.opts.tokens != null ? this.opts.tokens : {}, c = this.isReversed() ? -1 : 1, d = this.isReversed() ? "unshift" : "push", h = this.isReversed() ? 0 : r.length - 1, g = this.isReversed() ? () => S > -1 && O > -1 : () => S < r.length && O < e.length, y = (Y) => !this.isReversed() && Y <= h || this.isReversed() && Y >= h;
6551
6551
  let v, I = -1, S = this.isReversed() ? r.length - 1 : 0, O = this.isReversed() ? e.length - 1 : 0, J = !1;
6552
6552
  for (; g(); ) {
6553
- const Y = r.charAt(S), _ = a[Y], j = (_ == null ? void 0 : _.transform) != null ? _.transform(e.charAt(O)) : e.charAt(O);
6554
- if (!o.includes(S) && _ != null ? (j.match(_.pattern) != null ? (l[d](j), _.repeated ? (I === -1 ? I = S : S === h && S !== I && (S = I - c), h === I && (S -= c)) : _.multiple && (J = !0, S -= c), S += c) : _.multiple ? J && (S += c, O -= c, J = !1) : j === v ? v = void 0 : _.optional && (S += c, O -= c), O += c) : (n && !this.isEager() && l[d](Y), j === Y && !this.isEager() ? O += c : v = Y, this.isEager() || (S += c)), this.isEager())
6553
+ const Y = r.charAt(S), Z = a[Y], j = (Z == null ? void 0 : Z.transform) != null ? Z.transform(e.charAt(O)) : e.charAt(O);
6554
+ if (!o.includes(S) && Z != null ? (j.match(Z.pattern) != null ? (l[d](j), Z.repeated ? (I === -1 ? I = S : S === h && S !== I && (S = I - c), h === I && (S -= c)) : Z.multiple && (J = !0, S -= c), S += c) : Z.multiple ? J && (S += c, O -= c, J = !1) : j === v ? v = void 0 : Z.optional && (S += c, O -= c), O += c) : (n && !this.isEager() && l[d](Y), j === Y && !this.isEager() ? O += c : v = Y, this.isEager() || (S += c)), this.isEager())
6555
6555
  for (; y(S) && (a[r.charAt(S)] == null || o.includes(S)); ) {
6556
6556
  if (n) {
6557
6557
  if (l[d](r.charAt(S)), e.charAt(O) === r.charAt(S)) {
@@ -9591,8 +9591,8 @@ var Jm = ["transitions"], st = Je("vue-advanced-cropper"), To = { name: "Cropper
9591
9591
  return !(typeof t == "string" && t !== "fill" && t !== "fit");
9592
9592
  } }, priority: { type: String, default: "coordinates" }, stencilSize: { type: [Object, Function] }, resizeImage: { type: [Boolean, Object], default: !0 }, moveImage: { type: [Boolean, Object], default: !0 }, autoZoomAlgorithm: { type: Function }, resizeAlgorithm: { type: Function, default: function(t) {
9593
9593
  var e = t.event, i = t.coordinates, n = t.aspectRatio, s = t.positionRestrictions, r = t.sizeRestrictions, o = N(N({}, i), { right: i.left + i.width, bottom: i.top + i.height }), l = e.params || {}, a = N({}, e.directions), c = l.allowedDirections || { left: !0, right: !0, bottom: !0, top: !0 };
9594
- r.widthFrozen && (a.left = 0, a.right = 0), r.heightFrozen && (a.top = 0, a.bottom = 0), Qe.forEach(function(_) {
9595
- c[_] || (a[_] = 0);
9594
+ r.widthFrozen && (a.left = 0, a.right = 0), r.heightFrozen && (a.top = 0, a.bottom = 0), Qe.forEach(function(Z) {
9595
+ c[Z] || (a[Z] = 0);
9596
9596
  });
9597
9597
  var d = Ye(o, a = er({ coordinates: o, directions: a, sizeRestrictions: r, positionRestrictions: s })).width, h = Ye(o, a).height, g = l.preserveRatio ? re(o) : dn(d / h, n);
9598
9598
  if (g) {
@@ -9612,8 +9612,8 @@ var Jm = ["transitions"], st = Je("vue-advanced-cropper"), To = { name: "Cropper
9612
9612
  }
9613
9613
  a = er({ directions: a, coordinates: o, sizeRestrictions: r, positionRestrictions: s, preserveRatio: !0, compensate: l.compensate });
9614
9614
  }
9615
- return d = Ye(o, a).width, h = Ye(o, a).height, (g = l.preserveRatio ? re(o) : dn(d / h, n)) && Math.abs(g - d / h) > 1e-3 && Qe.forEach(function(_) {
9616
- c[_] || (a[_] = 0);
9615
+ return d = Ye(o, a).width, h = Ye(o, a).height, (g = l.preserveRatio ? re(o) : dn(d / h, n)) && Math.abs(g - d / h) > 1e-3 && Qe.forEach(function(Z) {
9616
+ c[Z] || (a[Z] = 0);
9617
9617
  }), En({ event: new es({ left: -a.left, top: -a.top }), coordinates: { width: i.width + a.right + a.left, height: i.height + a.top + a.bottom, left: i.left, top: i.top }, positionRestrictions: s });
9618
9618
  } }, moveAlgorithm: { type: Function, default: En }, initStretcher: { type: Function, default: function(t) {
9619
9619
  var e = t.stretcher, i = t.imageSize, n = re(i);
@@ -10065,7 +10065,7 @@ const Qm = { class: "background-container" }, Km = { class: "tools-line" }, eg =
10065
10065
  default: G(() => [
10066
10066
  A(I, {
10067
10067
  modelValue: p(r),
10068
- "onUpdate:modelValue": v[0] || (v[0] = (_) => et(r) ? r.value = _ : null),
10068
+ "onUpdate:modelValue": v[0] || (v[0] = (Z) => et(r) ? r.value = Z : null),
10069
10069
  label: "Пропорции изображения",
10070
10070
  onChange: o
10071
10071
  }, {
@@ -10170,12 +10170,12 @@ const Qm = { class: "background-container" }, Km = { class: "tools-line" }, eg =
10170
10170
  o.value = !1;
10171
10171
  }
10172
10172
  );
10173
- const c = (_) => {
10174
- _.stopPropagation(), _.key === "Escape" && (i.showSaveDialog ? l.value = !0 : o.value = !1);
10173
+ const c = (Z) => {
10174
+ Z.stopPropagation(), Z.key === "Escape" && (i.showSaveDialog ? l.value = !0 : o.value = !1);
10175
10175
  };
10176
10176
  tt(o, async () => {
10177
- var _, j;
10178
- await aa(), o.value ? ((j = (_ = document.getElementById("info-item-opened-content")) == null ? void 0 : _.querySelector("input")) == null || j.focus(), document.body.addEventListener("keydown", c)) : document.body.removeEventListener("keydown", c, !1), o.value === !1 && n("after-close");
10177
+ var Z, j;
10178
+ await aa(), o.value ? ((j = (Z = document.getElementById("info-item-opened-content")) == null ? void 0 : Z.querySelector("input")) == null || j.focus(), document.body.addEventListener("keydown", c)) : document.body.removeEventListener("keydown", c, !1), o.value === !1 && n("after-close");
10179
10179
  });
10180
10180
  const d = () => {
10181
10181
  n("click"), o.value = !!i.withOpenWindow, a.value !== i.close && (o.value = !1, a.value = !a.value);
@@ -10218,7 +10218,7 @@ const Qm = { class: "background-container" }, Km = { class: "tools-line" }, eg =
10218
10218
  }, Y = () => {
10219
10219
  o.value = !1, l.value = !1;
10220
10220
  };
10221
- return (_, j) => {
10221
+ return (Z, j) => {
10222
10222
  const ze = E("PString"), De = E("PButton"), ht = E("PModal"), Pt = sr("click-outside");
10223
10223
  return m(), b(W, null, [
10224
10224
  p(o) ? (m(), b("div", sg)) : Q("", !0),
@@ -10238,7 +10238,7 @@ const Qm = { class: "background-container" }, Km = { class: "tools-line" }, eg =
10238
10238
  class: ne(["close-window", t.customClass]),
10239
10239
  style: R(p(v))
10240
10240
  }, [
10241
- T(_.$slots, "default", {}, void 0, !0)
10241
+ T(Z.$slots, "default", {}, void 0, !0)
10242
10242
  ], 6)),
10243
10243
  p(o) ? Ue((m(), b("div", {
10244
10244
  key: 1,
@@ -10246,7 +10246,7 @@ const Qm = { class: "background-container" }, Km = { class: "tools-line" }, eg =
10246
10246
  class: "open-window",
10247
10247
  style: R(p(I))
10248
10248
  }, [
10249
- T(_.$slots, "open-inside-content", {}, void 0, !0)
10249
+ T(Z.$slots, "open-inside-content", {}, void 0, !0)
10250
10250
  ], 4)), [
10251
10251
  [
10252
10252
  Pt,
@@ -10259,7 +10259,7 @@ const Qm = { class: "background-container" }, Km = { class: "tools-line" }, eg =
10259
10259
  class: "top-title",
10260
10260
  style: R(p(S))
10261
10261
  }, [
10262
- T(_.$slots, "title", {}, () => [
10262
+ T(Z.$slots, "title", {}, () => [
10263
10263
  A(ze, {
10264
10264
  string: t.title,
10265
10265
  "font-size": "10px",
@@ -11354,7 +11354,7 @@ const pp = /* @__PURE__ */ P(mp, [["render", gp], ["__scopeId", "data-v-0f1f2f84
11354
11354
  return Ln(() => {
11355
11355
  M.FTSP.Get().p.drop();
11356
11356
  }), (y, v) => {
11357
- const I = E("ArrowLeft"), S = E("PButton"), O = E("DoubleArrowLeft"), J = E("EllipsisSvg"), Y = E("DoubleArrowRight"), _ = E("ArrowRight");
11357
+ const I = E("ArrowLeft"), S = E("PButton"), O = E("DoubleArrowLeft"), J = E("EllipsisSvg"), Y = E("DoubleArrowRight"), Z = E("ArrowRight");
11358
11358
  return m(), b("div", wp, [
11359
11359
  f("div", {
11360
11360
  class: "pag-container",
@@ -11437,7 +11437,7 @@ const pp = /* @__PURE__ */ P(mp, [["render", gp], ["__scopeId", "data-v-0f1f2f84
11437
11437
  onClick: v[9] || (v[9] = (j) => c(p(r).curPage + 1))
11438
11438
  }, {
11439
11439
  default: G(() => [
11440
- A(_)
11440
+ A(Z)
11441
11441
  ]),
11442
11442
  _: 1
11443
11443
  }, 8, ["type"])
@@ -12288,7 +12288,7 @@ const l1 = /* @__PURE__ */ P(r1, [["render", a1], ["__scopeId", "data-v-5023d414
12288
12288
  "font-size": "20px",
12289
12289
  width: "300px",
12290
12290
  margin: "100px 0 0 0",
12291
- onClick: O[0] || (O[0] = (_) => a(p(s)))
12291
+ onClick: O[0] || (O[0] = (Z) => a(p(s)))
12292
12292
  }),
12293
12293
  A(J, {
12294
12294
  skin: "text",
@@ -12296,7 +12296,7 @@ const l1 = /* @__PURE__ */ P(r1, [["render", a1], ["__scopeId", "data-v-5023d414
12296
12296
  "font-size": "20px",
12297
12297
  width: "300px",
12298
12298
  margin: "50px 0 0 0",
12299
- onClick: O[1] || (O[1] = (_) => c())
12299
+ onClick: O[1] || (O[1] = (Z) => c())
12300
12300
  })
12301
12301
  ])
12302
12302
  ])
@@ -12325,7 +12325,7 @@ const l1 = /* @__PURE__ */ P(r1, [["render", a1], ["__scopeId", "data-v-5023d414
12325
12325
  open: p(o),
12326
12326
  "default-ratio": t.defaultRatio,
12327
12327
  onCrop: d,
12328
- onClose: O[2] || (O[2] = (_) => o.value = !1)
12328
+ onClose: O[2] || (O[2] = (Z) => o.value = !1)
12329
12329
  }, null, 8, ["open", "default-ratio"])) : Q("", !0)
12330
12330
  ], 64);
12331
12331
  };
@@ -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 Vi;(function(t){(function(e){var n=typeof globalThis=="object"?globalThis:typeof Pi=="object"?Pi:typeof self=="object"?self:typeof this=="object"?this:c(),r=o(t);typeof n.Reflect<"u"&&(r=o(n.Reflect,r)),e(r,n),typeof n.Reflect>"u"&&(n.Reflect=t);function o(l,u){return function(h,f){Object.defineProperty(l,h,{configurable:!0,writable:!0,value:f}),u&&u(h,f)}}function s(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function c(){return s()||a()}})(function(e,n){var r=Object.prototype.hasOwnProperty,o=typeof Symbol=="function",s=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=o&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",l={__proto__:[]}instanceof Array,u=!c&&!l,h={create:c?function(){return Ai(Object.create(null))}:l?function(){return Ai({__proto__:null})}:function(){return Ai({})},has:u?function(y,b){return r.call(y,b)}:function(y,b){return b in y},get:u?function(y,b){return r.call(y,b)?y[b]:void 0}:function(y,b){return y[b]}},f=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Ym(),g=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Qm(),p=typeof WeakMap=="function"?WeakMap:Km(),v=o?Symbol.for("@reflect-metadata:registry"):void 0,w=Zm(),M=Xm(w);function O(y,b,k,B){if(z(k)){if(!pa(y))throw new TypeError;if(!ga(b))throw new TypeError;return Lm(y,b)}else{if(!pa(y))throw new TypeError;if(!ee(b))throw new TypeError;if(!ee(B)&&!z(B)&&!bt(B))throw new TypeError;return bt(B)&&(B=void 0),k=Te(k),Hm(y,b,k,B)}}e("decorate",O);function L(y,b){function k(B,P){if(!ee(B))throw new TypeError;if(!z(P)&&!jm(P))throw new TypeError;da(y,b,B,P)}return k}e("metadata",L);function F(y,b,k,B){if(!ee(k))throw new TypeError;return z(B)||(B=Te(B)),da(y,b,k,B)}e("defineMetadata",F);function V(y,b,k){if(!ee(b))throw new TypeError;return z(k)||(k=Te(k)),aa(y,b,k)}e("hasMetadata",V);function be(y,b,k){if(!ee(b))throw new TypeError;return z(k)||(k=Te(k)),Ii(y,b,k)}e("hasOwnMetadata",be);function Ee(y,b,k){if(!ee(b))throw new TypeError;return z(k)||(k=Te(k)),la(y,b,k)}e("getMetadata",Ee);function Ze(y,b,k){if(!ee(b))throw new TypeError;return z(k)||(k=Te(k)),ca(y,b,k)}e("getOwnMetadata",Ze);function wt(y,b){if(!ee(y))throw new TypeError;return z(b)||(b=Te(b)),ua(y,b)}e("getMetadataKeys",wt);function vn(y,b){if(!ee(y))throw new TypeError;return z(b)||(b=Te(b)),ha(y,b)}e("getOwnMetadataKeys",vn);function Om(y,b,k){if(!ee(b))throw new TypeError;if(z(k)||(k=Te(k)),!ee(b))throw new TypeError;z(k)||(k=Te(k));var B=Dt(b,k,!1);return z(B)?!1:B.OrdinaryDeleteMetadata(y,b,k)}e("deleteMetadata",Om);function Lm(y,b){for(var k=y.length-1;k>=0;--k){var B=y[k],P=B(b);if(!z(P)&&!bt(P)){if(!ga(P))throw new TypeError;b=P}}return b}function Hm(y,b,k,B){for(var P=y.length-1;P>=0;--P){var re=y[P],te=re(b,k,B);if(!z(te)&&!bt(te)){if(!ee(te))throw new TypeError;B=te}}return B}function aa(y,b,k){var B=Ii(y,b,k);if(B)return!0;var P=$i(b);return bt(P)?!1:aa(y,P,k)}function Ii(y,b,k){var B=Dt(b,k,!1);return z(B)?!1:ma(B.OrdinaryHasOwnMetadata(y,b,k))}function la(y,b,k){var B=Ii(y,b,k);if(B)return ca(y,b,k);var P=$i(b);if(!bt(P))return la(y,P,k)}function ca(y,b,k){var B=Dt(b,k,!1);if(!z(B))return B.OrdinaryGetOwnMetadata(y,b,k)}function da(y,b,k,B){var P=Dt(k,B,!0);P.OrdinaryDefineOwnMetadata(y,b,k,B)}function ua(y,b){var k=ha(y,b),B=$i(y);if(B===null)return k;var P=ua(B,b);if(P.length<=0)return k;if(k.length<=0)return P;for(var re=new g,te=[],U=0,I=k;U<I.length;U++){var R=I[U],$=re.has(R);$||(re.add(R),te.push(R))}for(var A=0,_=P;A<_.length;A++){var R=_[A],$=re.has(R);$||(re.add(R),te.push(R))}return te}function ha(y,b){var k=Dt(y,b,!1);return k?k.OrdinaryOwnMetadataKeys(y,b):[]}function fa(y){if(y===null)return 1;switch(typeof y){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return y===null?1:6;default:return 6}}function z(y){return y===void 0}function bt(y){return y===null}function qm(y){return typeof y=="symbol"}function ee(y){return typeof y=="object"?y!==null:typeof y=="function"}function Um(y,b){switch(fa(y)){case 0:return y;case 1:return y;case 2:return y;case 3:return y;case 4:return y;case 5:return y}var k="string",B=ya(y,s);if(B!==void 0){var P=B.call(y,k);if(ee(P))throw new TypeError;return P}return _m(y)}function _m(y,b){var k,B;{var P=y.toString;if(xn(P)){var B=P.call(y);if(!ee(B))return B}var k=y.valueOf;if(xn(k)){var B=k.call(y);if(!ee(B))return B}}throw new TypeError}function ma(y){return!!y}function Wm(y){return""+y}function Te(y){var b=Um(y);return qm(b)?b:Wm(b)}function pa(y){return Array.isArray?Array.isArray(y):y instanceof Object?y instanceof Array:Object.prototype.toString.call(y)==="[object Array]"}function xn(y){return typeof y=="function"}function ga(y){return typeof y=="function"}function jm(y){switch(fa(y)){case 3:return!0;case 4:return!0;default:return!1}}function Ri(y,b){return y===b||y!==y&&b!==b}function ya(y,b){var k=y[b];if(k!=null){if(!xn(k))throw new TypeError;return k}}function wa(y){var b=ya(y,a);if(!xn(b))throw new TypeError;var k=b.call(y);if(!ee(k))throw new TypeError;return k}function ba(y){return y.value}function Ca(y){var b=y.next();return b.done?!1:b}function Sa(y){var b=y.return;b&&b.call(y)}function $i(y){var b=Object.getPrototypeOf(y);if(typeof y!="function"||y===f||b!==f)return b;var k=y.prototype,B=k&&Object.getPrototypeOf(k);if(B==null||B===Object.prototype)return b;var P=B.constructor;return typeof P!="function"||P===y?b:P}function Gm(){var y;!z(v)&&typeof n.Reflect<"u"&&!(v in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(y=Jm(n.Reflect));var b,k,B,P=new p,re={registerProvider:te,getProvider:I,setProvider:$};return re;function te(A){if(!Object.isExtensible(re))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case y===A:break;case z(b):b=A;break;case b===A:break;case z(k):k=A;break;case k===A:break;default:B===void 0&&(B=new g),B.add(A);break}}function U(A,_){if(!z(b)){if(b.isProviderFor(A,_))return b;if(!z(k)){if(k.isProviderFor(A,_))return b;if(!z(B))for(var Z=wa(B);;){var J=Ca(Z);if(!J)return;var $e=ba(J);if($e.isProviderFor(A,_))return Sa(Z),$e}}}if(!z(y)&&y.isProviderFor(A,_))return y}function I(A,_){var Z=P.get(A),J;return z(Z)||(J=Z.get(_)),z(J)&&(J=U(A,_),z(J)||(z(Z)&&(Z=new m,P.set(A,Z)),Z.set(_,J))),J}function R(A){if(z(A))throw new TypeError;return b===A||k===A||!z(B)&&B.has(A)}function $(A,_,Z){if(!R(Z))throw new Error("Metadata provider not registered.");var J=I(A,_);if(J!==Z){if(!z(J))return!1;var $e=P.get(A);z($e)&&($e=new m,P.set(A,$e)),$e.set(_,Z)}return!0}}function Zm(){var y;return!z(v)&&ee(n.Reflect)&&Object.isExtensible(n.Reflect)&&(y=n.Reflect[v]),z(y)&&(y=Gm()),!z(v)&&ee(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,v,{enumerable:!1,configurable:!1,writable:!1,value:y}),y}function Xm(y){var b=new p,k={isProviderFor:function(R,$){var A=b.get(R);return z(A)?!1:A.has($)},OrdinaryDefineOwnMetadata:te,OrdinaryHasOwnMetadata:P,OrdinaryGetOwnMetadata:re,OrdinaryOwnMetadataKeys:U,OrdinaryDeleteMetadata:I};return w.registerProvider(k),k;function B(R,$,A){var _=b.get(R),Z=!1;if(z(_)){if(!A)return;_=new m,b.set(R,_),Z=!0}var J=_.get($);if(z(J)){if(!A)return;if(J=new m,_.set($,J),!y.setProvider(R,$,k))throw _.delete($),Z&&b.delete(R),new Error("Wrong provider for target.")}return J}function P(R,$,A){var _=B($,A,!1);return z(_)?!1:ma(_.has(R))}function re(R,$,A){var _=B($,A,!1);if(!z(_))return _.get(R)}function te(R,$,A,_){var Z=B(A,_,!0);Z.set(R,$)}function U(R,$){var A=[],_=B(R,$,!1);if(z(_))return A;for(var Z=_.keys(),J=wa(Z),$e=0;;){var ka=Ca(J);if(!ka)return A.length=$e,A;var ep=ba(ka);try{A[$e]=ep}catch(tp){try{Sa(J)}finally{throw tp}}$e++}}function I(R,$,A){var _=B($,A,!1);if(z(_)||!_.delete(R))return!1;if(_.size===0){var Z=b.get($);z(Z)||(Z.delete(A),Z.size===0&&b.delete(Z))}return!0}}function Jm(y){var b=y.defineMetadata,k=y.hasOwnMetadata,B=y.getOwnMetadata,P=y.getOwnMetadataKeys,re=y.deleteMetadata,te=new p,U={isProviderFor:function(I,R){var $=te.get(I);return!z($)&&$.has(R)?!0:P(I,R).length?(z($)&&($=new g,te.set(I,$)),$.add(R),!0):!1},OrdinaryDefineOwnMetadata:b,OrdinaryHasOwnMetadata:k,OrdinaryGetOwnMetadata:B,OrdinaryOwnMetadataKeys:P,OrdinaryDeleteMetadata:re};return U}function Dt(y,b,k){var B=w.getProvider(y,b);if(!z(B))return B;if(k){if(w.setProvider(y,b,M))return M;throw new Error("Illegal state.")}}function Ym(){var y={},b=[],k=function(){function U(I,R,$){this._index=0,this._keys=I,this._values=R,this._selector=$}return U.prototype["@@iterator"]=function(){return this},U.prototype[a]=function(){return this},U.prototype.next=function(){var I=this._index;if(I>=0&&I<this._keys.length){var R=this._selector(this._keys[I],this._values[I]);return I+1>=this._keys.length?(this._index=-1,this._keys=b,this._values=b):this._index++,{value:R,done:!1}}return{value:void 0,done:!0}},U.prototype.throw=function(I){throw this._index>=0&&(this._index=-1,this._keys=b,this._values=b),I},U.prototype.return=function(I){return this._index>=0&&(this._index=-1,this._keys=b,this._values=b),{value:I,done:!0}},U}(),B=function(){function U(){this._keys=[],this._values=[],this._cacheKey=y,this._cacheIndex=-2}return Object.defineProperty(U.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),U.prototype.has=function(I){return this._find(I,!1)>=0},U.prototype.get=function(I){var R=this._find(I,!1);return R>=0?this._values[R]:void 0},U.prototype.set=function(I,R){var $=this._find(I,!0);return this._values[$]=R,this},U.prototype.delete=function(I){var R=this._find(I,!1);if(R>=0){for(var $=this._keys.length,A=R+1;A<$;A++)this._keys[A-1]=this._keys[A],this._values[A-1]=this._values[A];return this._keys.length--,this._values.length--,Ri(I,this._cacheKey)&&(this._cacheKey=y,this._cacheIndex=-2),!0}return!1},U.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=y,this._cacheIndex=-2},U.prototype.keys=function(){return new k(this._keys,this._values,P)},U.prototype.values=function(){return new k(this._keys,this._values,re)},U.prototype.entries=function(){return new k(this._keys,this._values,te)},U.prototype["@@iterator"]=function(){return this.entries()},U.prototype[a]=function(){return this.entries()},U.prototype._find=function(I,R){if(!Ri(this._cacheKey,I)){this._cacheIndex=-1;for(var $=0;$<this._keys.length;$++)if(Ri(this._keys[$],I)){this._cacheIndex=$;break}}return this._cacheIndex<0&&R&&(this._cacheIndex=this._keys.length,this._keys.push(I),this._values.push(void 0)),this._cacheIndex},U}();return B;function P(U,I){return U}function re(U,I){return I}function te(U,I){return[U,I]}}function Qm(){var y=function(){function b(){this._map=new m}return Object.defineProperty(b.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),b.prototype.has=function(k){return this._map.has(k)},b.prototype.add=function(k){return this._map.set(k,k),this},b.prototype.delete=function(k){return this._map.delete(k)},b.prototype.clear=function(){this._map.clear()},b.prototype.keys=function(){return this._map.keys()},b.prototype.values=function(){return this._map.keys()},b.prototype.entries=function(){return this._map.entries()},b.prototype["@@iterator"]=function(){return this.keys()},b.prototype[a]=function(){return this.keys()},b}();return y}function Km(){var y=16,b=h.create(),k=B();return function(){function I(){this._key=B()}return I.prototype.has=function(R){var $=P(R,!1);return $!==void 0?h.has($,this._key):!1},I.prototype.get=function(R){var $=P(R,!1);return $!==void 0?h.get($,this._key):void 0},I.prototype.set=function(R,$){var A=P(R,!0);return A[this._key]=$,this},I.prototype.delete=function(R){var $=P(R,!1);return $!==void 0?delete $[this._key]:!1},I.prototype.clear=function(){this._key=B()},I}();function B(){var I;do I="@@WeakMap@@"+U();while(h.has(b,I));return b[I]=!0,I}function P(I,R){if(!r.call(I,k)){if(!R)return;Object.defineProperty(I,k,{value:h.create()})}return I[k]}function re(I,R){for(var $=0;$<R;++$)I[$]=Math.random()*255|0;return I}function te(I){if(typeof Uint8Array=="function"){var R=new Uint8Array(I);return typeof crypto<"u"?crypto.getRandomValues(R):typeof msCrypto<"u"?msCrypto.getRandomValues(R):re(R,I),R}return re(new Array(I),I)}function U(){var I=te(y);I[6]=I[6]&79|64,I[8]=I[8]&191|128;for(var R="",$=0;$<y;++$){var A=I[$];($===4||$===6||$===8)&&(R+="-"),A<16&&(R+="0"),R+=A.toString(16).toLowerCase()}return R}}function Ai(y){return y.__=void 0,delete y.__,y}})})(Vi||(Vi={}));let Ot;const Ma=new Uint8Array(16);function Ia(){if(!Ot&&(Ot=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ot))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ot(Ma)}const oe=[];for(let t=0;t<256;++t)oe.push((t+256).toString(16).slice(1));function Ra(t,e=0){return oe[t[e+0]]+oe[t[e+1]]+oe[t[e+2]]+oe[t[e+3]]+"-"+oe[t[e+4]]+oe[t[e+5]]+"-"+oe[t[e+6]]+oe[t[e+7]]+"-"+oe[t[e+8]]+oe[t[e+9]]+"-"+oe[t[e+10]]+oe[t[e+11]]+oe[t[e+12]]+oe[t[e+13]]+oe[t[e+14]]+oe[t[e+15]]}const zi={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Fe(t,e,n){if(zi.randomUUID&&!e&&!t)return zi.randomUUID();t=t||{};const r=t.random||(t.rng||Ia)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Ra(r)}class xe{static UUID(){return Fe()}static GUID(){const e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}const yt=class yt{static BuildClass(e,n){n&&Object.keys(n).forEach(r=>{const o=n[r];if(this.isPrimitive(o))e[r]instanceof Date?e[r]=new Date(o):e[r]=o;else if(o!=null&&!Array.isArray(o))if(e[r]&&e[r].constructor)e[r]=new e[r].constructor(o);else{const s=Reflect.getMetadata(r,e);s&&(e[r]=new s[r](o))}if(Array.isArray(o)){const s=Reflect.getMetadata(r,e);s&&(e[r]=o.map(a=>new s[r](a)))}})}static isPrimitive(e){return e!==null&&typeof e<"u"&&e!==Object(e)}static RemoveFromClassByIndex(e,n,r){yt.RemoveFromClass(e,n,r)}static RemoveFromClassById(e,n,r){if(!e)return;const o=n.findIndex(s=>s.id===e);yt.RemoveFromClass(o,n,r)}static RemoveFromClass(e,n,r){if(e<0)return;const o=n[e].id;o&&r&&r.push(o),n.splice(e,1)}static GetPropertyName(e){const n=new e;return new Proxy(n,{get(r,o){return o}})}static InitClassInstance(e,n){const r=e.constructor(n);return yt.BuildClass(r),r.id=xe.UUID(),r}static ExistsWithId(e,n){return e.some(r=>r.id===n)}};d(yt,"GetClassConstructor",e=>(n,r)=>{const o=Reflect.getMetadata(`property:${r}`,n)||{};o[r]=e,Reflect.defineMetadata(r,o,n)});let T=yt;class Mn{static Setup(e){this.staticUrl=e}static get StaticUrl(){return this.staticUrl}}d(Mn,"staticUrl","");class Ae{constructor(e){d(this,"name","");d(this,"url","");d(this,"src","");d(this,"raw");d(this,"blob");d(this,"file");d(this,"id");d(this,"originalName","");d(this,"fileSystemPath","");T.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${Mn.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:ve&&ve.tagName.toUpperCase()==="SCRIPT"&&ve.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,n){const r=new Ae;return r.id=n??xe.UUID(),r.originalName=e.name,r.file=e.blob,r.fileSystemPath=xe.UUID(),r}uploadNewFile(e){this.id||(this.id=xe.UUID()),this.originalName=e.name,this.file=e.blob,this.fileSystemPath=xe.UUID()}setFile(e){this.file=e,this.url=e.src}uploadAndSetFile(e){this.uploadNewFile(e),this.setFile(e),this.url=e.url}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:ve&&ve.tagName.toUpperCase()==="SCRIPT"&&ve.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 Ti{constructor(e){d(this,"id");d(this,"num","");d(this,"fileInfoId");d(this,"fileInfo",new Ae);S.H.Classes.BuildClass(this,e)}}class St{constructor(e){d(this,"id");d(this,"passportId");d(this,"fileInfoId");d(this,"order",0);S.H.Classes.BuildClass(this,e)}static Create(e){const n=new St;return n.id=S.H.Id.UUID(),n.passportId=e,n}}var $a=Object.defineProperty,Aa=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&$a(e,n,o),o};class In{constructor(e){d(this,"id");d(this,"num","");d(this,"seria","");d(this,"division","");d(this,"divisionCode","");d(this,"citzenship","");d(this,"date",new Date);d(this,"address","");d(this,"passportScans",[]);S.H.Classes.BuildClass(this,e)}}Aa([S.H.Classes.GetClassConstructor(St)],In.prototype,"passportScans");class Fi{constructor(e){d(this,"id");d(this,"num","");d(this,"fileInfoId");d(this,"fileInfo",new Ae);S.H.Classes.BuildClass(this,e)}}const Na=Object.freeze(Object.defineProperty({__proto__:null,Inn:Ti,Passport:In,PassportScan:St,Snils:Fi},Symbol.toStringTag,{value:"Module"}));class Ue{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},(o,s)=>e+s*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,o)=>e[o]==n[o]))}static SwipeById(e,n,r){const o=e.findIndex(a=>n.id===a.id),s=e.findIndex(a=>r.id===a.id);o||s||([e[o],e[s]]=[e[s],e[o]])}static Swap(e,n,r){if(n<0||n>=e.length||r<0||r>=e.length)return;const o=e[n];e[n]=e[r],e[r]=o}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]]}}class ne{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((o,s)=>s===0?o.toLowerCase():ne.Capitalize(o.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,o=>{if(o===o.toLowerCase()){const a=Object.keys(r).find(c=>r[c]===o);return a||""}const s=Object.keys(r).find(a=>r[a]===o.toLowerCase());return s?s.toUpperCase():""}):e.replace(/[A-z/,.;'\][]/g,o=>o===o.toLowerCase()?r[o]:r[o.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,""),o=n.toLowerCase().replaceAll(/\s/g,""),s=ne.Translit(r),a=ne.Translit(o);return r.includes(o)||s.includes(o)||r.includes(a)}static SearchIn(e,n){return ne.StringsEquals(e,n)}static FormatToPercentage(e){return`${e}%`}static WrapSubStr(e,n){const r=new RegExp(ne.GetVariants(n).join("|"),"gi");return e.replace(r,`<span class="search-text">${n}</span>`)}static GetVariants(e){const n=ne.Translit(e);return[e,ne.Capitalize(e),e.toLowerCase(),e.toUpperCase(),n,ne.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]]}}var Y=(t=>(t.Date="date",t.String="string",t.Boolean="boolean",t.Number="number",t.Set="set",t.Join="join",t))(Y||{}),ce=(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))(ce||{}),Pa=Object.defineProperty,Va=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Pa(e,n,o),o};const Di=class Ct{constructor(e){d(this,"id");d(this,"model","");d(this,"label","");d(this,"col","");d(this,"operator",ce.Eq);d(this,"date1");d(this,"date2");d(this,"value1","");d(this,"boolean",!1);d(this,"number",0);d(this,"type",Y.String);d(this,"set",[]);d(this,"isSet",!1);d(this,"joinTable","");d(this,"joinTableModel","");d(this,"joinTableFk","");d(this,"joinTablePk","");d(this,"joinTableId","");d(this,"joinTableIdCol","");T.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===Y.Join){const n=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===ce.In?n&&Ue.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===Y.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===Y.String?this.value1===(e==null?void 0:e.value1):this.type===Y.Join&&this.set.length?Ue.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}"`:"",o=this.operator?`"operator":"${this.operator}"`:"",s=this.value1?`"value1":"${this.value1}"`:"",a=this.type===Y.Boolean?`"boolean":${this.boolean}`:"",c=this.type===Y.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",l=this.type===Y.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===Y.Number?`"number":${this.number}`:"",h=this.type===Y.Set||this.operator===ce.In?`"set":${JSON.stringify(this.set)}`:"",f=this.type===Y.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[e,n,r,o,s,a,c,l,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===ce.Eq||this.operator===ce.Gt||this.operator===ce.Lt}isBetweenFilter(){return this.operator===ce.Btw}isSetFilter(){return this.operator===ce.In}static Create(e,n,r){const o=new Ct;return o.model=e.GetClassName(),o.col=n??"",o.type=r,o.type===Y.Number&&(o.value1="0"),o.type===Y.String&&(o.value1=""),o.type===Y.Boolean&&(o.value1="false",o.operator=ce.Eq),o}static CreateFilterModel(e,n,r){const o=new Ct;return o.id=Fe(),o.model=typeof e=="string"?e:e.GetClassName(),o.col=n??"",o.type=r,o.type===Y.Number&&(o.value1="0"),o.type===Y.String&&(o.value1=""),o.type===Y.Boolean&&(o.value1="false"),o}static CreateFilterModelWithJoin(e,n,r,o,s,a,c,l){const u=new Ct;return u.id=Fe(),u.joinTable=r,u.joinTablePk=o,u.joinTableFk=s,u.col=n,u.type=a,c&&(u.joinTableId=c),l&&(u.joinTableIdCol=l),u}static CreateFilterModelWithJoinV2(e,n,r,o,s,a,c){const l=new Ct;return l.model=e,l.joinTableModel=r,l.joinTablePk=o,l.joinTableFk=s,l.col=n,l.type=Y.Join,a&&(l.joinTableId=a),c&&(l.joinTableIdCol=c),l}static OnlyIfSecondModelExists(e,n){const r=new Ct;return r.id=Fe(),r.model=ne.ToCamelCase(e.GetClassName()),r.joinTableModel=ne.ToCamelCase(n.GetClassName()),r.type=Y.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=ce.Eq;return}this.setDate2(n),this.operator=ce.Btw}};Va([T.GetClassConstructor(String)],Di.prototype,"set");let Oi=Di;class za{constructor(){d(this,"operation",ce.Lt);d(this,"column","");d(this,"value");d(this,"initial",!0);d(this,"tableName","");d(this,"version","");d(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,o=r?`"value":"${r}"`:"",s=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[e,n,o,s,a].filter(c=>c!=="").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 Lt{constructor(e){d(this,"offset",0);d(this,"limit",25);d(this,"cursor",new za);d(this,"cursorMode",!1);d(this,"append",!1);d(this,"allLoaded",!1);d(this,"version","");T.BuildClass(this,e)}setLoadMore(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=ce.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=ce.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}`,o=`"append":${this.append}`,s=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[e,n,r,o,s,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,T.BuildClass(this)}}var Be=(t=>(t.Asc="asc",t.Desc="desc",t))(Be||{});class Rn{constructor(e){d(this,"model","");d(this,"col","");d(this,"order");d(this,"label","");d(this,"default",!1);d(this,"selected",!1);T.BuildClass(this,e)}static Create(e,n,r=Be.Asc,o,s){const a=new Rn;return a.model=e.GetClassName(),a.col=n??"",a.order=r??Be.Asc,a.label=o??"",a.default=s??!1,a}isAsc(){return this.order===Be.Asc}isDesc(){return this.order===Be.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=Be.Asc}desc(){this.order=Be.Desc}}class Ht{constructor(){d(this,"model","");d(this,"cols",[]);d(this,"models",[])}static Create(e,n){const r=new Ht;return r.model=e.GetClassName(),r.cols=n,r}}var Ta=Object.defineProperty,qt=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Ta(e,n,o),o};const kt=(we=class{constructor(e){d(this,"id");d(this,"f",[]);d(this,"s",[]);d(this,"p",new Lt);d(this,"t",new Ht);T.BuildClass(this,e)}static Get(){return this.instance||(this.instance=new we),this.instance}createFrom(e){const n=new we(JSON.parse(e));this.f=n.f}clearForHTTP(){const e=new we(this);return e.f=this.f.map(n=>we.EmptyEntiries(n)),e.s=this.s.map(n=>we.EmptyEntiries(n)),e.p=we.EmptyEntiries(this.p),e.t=we.EmptyEntiries(this.t),e}static EmptyEntiries(e){if(!e)return;const r=Object.entries(e).filter(([o,s])=>o!=="label"&&s!==""&&s!==null);return Object.fromEntries(r)}findFilterModel(e){return this.f.find(n=>e.id===n.id)}getFirstSortModel(){return Ue.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));T.RemoveFromClassByIndex(n,this.f)}reset(){this.f=[],this.s=[],this.p=new Lt}resetF(){this.f=[]}},d(we,"instance"),we);qt([T.GetClassConstructor(Oi)],kt.prototype,"f"),qt([T.GetClassConstructor(Rn)],kt.prototype,"s"),qt([T.GetClassConstructor(Lt)],kt.prototype,"p"),qt([T.GetClassConstructor(Ht)],kt.prototype,"t");let Li=kt;class Ut{constructor(e){d(this,"name","");T.BuildClass(this,e)}static Set(){}static Get(e,n){const r=sessionStorage.getItem(e);if(r){const o=JSON.parse(r),s=new Date,a=new Date(o.time),c=s.getTime()-a.getTime();return Math.round(c/6e4)>(n||10)?null:o.data}else return null}static async TryGet(e,n,r){let o;return o=Ut.Get(e,r),o||(o=await n()),o}}function Hi(t,e){return function(){return t.apply(e,arguments)}}const{toString:Fa}=Object.prototype,{getPrototypeOf:$n}=Object,_t=(t=>e=>{const n=Fa.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Me=t=>(t=t.toLowerCase(),e=>_t(e)===t),Wt=t=>e=>typeof e===t,{isArray:st}=Array,Et=Wt("undefined");function Da(t){return t!==null&&!Et(t)&&t.constructor!==null&&!Et(t.constructor)&&ge(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const qi=Me("ArrayBuffer");function Oa(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&qi(t.buffer),e}const La=Wt("string"),ge=Wt("function"),Ui=Wt("number"),jt=t=>t!==null&&typeof t=="object",Ha=t=>t===!0||t===!1,Gt=t=>{if(_t(t)!=="object")return!1;const e=$n(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},qa=Me("Date"),Ua=Me("File"),_a=Me("Blob"),Wa=Me("FileList"),ja=t=>jt(t)&&ge(t.pipe),Ga=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||ge(t.append)&&((e=_t(t))==="formdata"||e==="object"&&ge(t.toString)&&t.toString()==="[object FormData]"))},Za=Me("URLSearchParams"),[Xa,Ja,Ya,Qa]=["ReadableStream","Request","Response","Headers"].map(Me),Ka=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vt(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),st(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let c;for(r=0;r<a;r++)c=s[r],e.call(null,t[c],c,t)}}function _i(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const Xe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wi=t=>!Et(t)&&t!==Xe;function An(){const{caseless:t}=Wi(this)&&this||{},e={},n=(r,o)=>{const s=t&&_i(e,o)||o;Gt(e[s])&&Gt(r)?e[s]=An(e[s],r):Gt(r)?e[s]=An({},r):st(r)?e[s]=r.slice():e[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&vt(arguments[r],n);return e}const el=(t,e,n,{allOwnKeys:r}={})=>(vt(e,(o,s)=>{n&&ge(o)?t[s]=Hi(o,n):t[s]=o},{allOwnKeys:r}),t),tl=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),nl=(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)},il=(t,e,n,r)=>{let o,s,a;const c={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)a=o[s],(!r||r(a,t,e))&&!c[a]&&(e[a]=t[a],c[a]=!0);t=n!==!1&&$n(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},rl=(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},ol=t=>{if(!t)return null;if(st(t))return t;let e=t.length;if(!Ui(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},sl=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&$n(Uint8Array)),al=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=r.next())&&!o.done;){const s=o.value;e.call(t,s[0],s[1])}},ll=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},cl=Me("HTMLFormElement"),dl=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),ji=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ul=Me("RegExp"),Gi=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};vt(n,(o,s)=>{let a;(a=e(o,s,t))!==!1&&(r[s]=a||o)}),Object.defineProperties(t,r)},hl=t=>{Gi(t,(e,n)=>{if(ge(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(ge(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+"'")})}})},fl=(t,e)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return st(t)?r(t):r(String(t).split(e)),n},ml=()=>{},pl=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Nn="abcdefghijklmnopqrstuvwxyz",Zi="0123456789",Xi={DIGIT:Zi,ALPHA:Nn,ALPHA_DIGIT:Nn+Nn.toUpperCase()+Zi},gl=(t=16,e=Xi.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function yl(t){return!!(t&&ge(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const wl=t=>{const e=new Array(10),n=(r,o)=>{if(jt(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const s=st(r)?[]:{};return vt(r,(a,c)=>{const l=n(a,o+1);!Et(l)&&(s[c]=l)}),e[o]=void 0,s}}return r};return n(t,0)},bl=Me("AsyncFunction"),Cl=t=>t&&(jt(t)||ge(t))&&ge(t.then)&&ge(t.catch),Ji=((t,e)=>t?setImmediate:e?((n,r)=>(Xe.addEventListener("message",({source:o,data:s})=>{o===Xe&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Xe.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ge(Xe.postMessage)),Sl=typeof queueMicrotask<"u"?queueMicrotask.bind(Xe):typeof process<"u"&&process.nextTick||Ji,C={isArray:st,isArrayBuffer:qi,isBuffer:Da,isFormData:Ga,isArrayBufferView:Oa,isString:La,isNumber:Ui,isBoolean:Ha,isObject:jt,isPlainObject:Gt,isReadableStream:Xa,isRequest:Ja,isResponse:Ya,isHeaders:Qa,isUndefined:Et,isDate:qa,isFile:Ua,isBlob:_a,isRegExp:ul,isFunction:ge,isStream:ja,isURLSearchParams:Za,isTypedArray:sl,isFileList:Wa,forEach:vt,merge:An,extend:el,trim:Ka,stripBOM:tl,inherits:nl,toFlatObject:il,kindOf:_t,kindOfTest:Me,endsWith:rl,toArray:ol,forEachEntry:al,matchAll:ll,isHTMLForm:cl,hasOwnProperty:ji,hasOwnProp:ji,reduceDescriptors:Gi,freezeMethods:hl,toObjectSet:fl,toCamelCase:dl,noop:ml,toFiniteNumber:pl,findKey:_i,global:Xe,isContextDefined:Wi,ALPHABET:Xi,generateString:gl,isSpecCompliantForm:yl,toJSONObject:wl,isAsyncFn:bl,isThenable:Cl,setImmediate:Ji,asap:Sl};function D(t,e,n,r,o){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),o&&(this.response=o,this.status=o.status?o.status:null)}C.inherits(D,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:C.toJSONObject(this.config),code:this.code,status:this.status}}});const Yi=D.prototype,Qi={};["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=>{Qi[t]={value:t}}),Object.defineProperties(D,Qi),Object.defineProperty(Yi,"isAxiosError",{value:!0}),D.from=(t,e,n,r,o,s)=>{const a=Object.create(Yi);return C.toFlatObject(t,a,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),D.call(a,t.message,e,n,r,o),a.cause=t,a.name=t.name,s&&Object.assign(a,s),a};const kl=null;function Pn(t){return C.isPlainObject(t)||C.isArray(t)}function Ki(t){return C.endsWith(t,"[]")?t.slice(0,-2):t}function er(t,e,n){return t?t.concat(e).map(function(o,s){return o=Ki(o),!n&&s?"["+o+"]":o}).join(n?".":""):e}function El(t){return C.isArray(t)&&!t.some(Pn)}const vl=C.toFlatObject(C,{},null,function(e){return/^is[A-Z]/.test(e)});function Zt(t,e,n){if(!C.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=C.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,w){return!C.isUndefined(w[v])});const r=n.metaTokens,o=n.visitor||h,s=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&C.isSpecCompliantForm(e);if(!C.isFunction(o))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(C.isDate(p))return p.toISOString();if(!l&&C.isBlob(p))throw new D("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(p)||C.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function h(p,v,w){let M=p;if(p&&!w&&typeof p=="object"){if(C.endsWith(v,"{}"))v=r?v:v.slice(0,-2),p=JSON.stringify(p);else if(C.isArray(p)&&El(p)||(C.isFileList(p)||C.endsWith(v,"[]"))&&(M=C.toArray(p)))return v=Ki(v),M.forEach(function(L,F){!(C.isUndefined(L)||L===null)&&e.append(a===!0?er([v],F,s):a===null?v:v+"[]",u(L))}),!1}return Pn(p)?!0:(e.append(er(w,v,s),u(p)),!1)}const f=[],m=Object.assign(vl,{defaultVisitor:h,convertValue:u,isVisitable:Pn});function g(p,v){if(!C.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(p),C.forEach(p,function(M,O){(!(C.isUndefined(M)||M===null)&&o.call(e,M,C.isString(O)?O.trim():O,v,m))===!0&&g(M,v?v.concat(O):[O])}),f.pop()}}if(!C.isObject(t))throw new TypeError("data must be an object");return g(t),e}function tr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Vn(t,e){this._pairs=[],t&&Zt(t,this,e)}const nr=Vn.prototype;nr.append=function(e,n){this._pairs.push([e,n])},nr.toString=function(e){const n=e?function(r){return e.call(this,r,tr)}:tr;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function xl(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ir(t,e,n){if(!e)return t;const r=n&&n.encode||xl,o=n&&n.serialize;let s;if(o?s=o(e,n):s=C.isURLSearchParams(e)?e.toString():new Vn(e,n).toString(r),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class rr{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){C.forEach(this.handlers,function(r){r!==null&&e(r)})}}const or={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Bl={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Vn,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},zn=typeof window<"u"&&typeof document<"u",Tn=typeof navigator=="object"&&navigator||void 0,Ml=zn&&(!Tn||["ReactNative","NativeScript","NS"].indexOf(Tn.product)<0),Il=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Rl=zn&&window.location.href||"http://localhost",ue={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zn,hasStandardBrowserEnv:Ml,hasStandardBrowserWebWorkerEnv:Il,navigator:Tn,origin:Rl},Symbol.toStringTag,{value:"Module"})),...Bl};function $l(t,e){return Zt(t,new ue.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return ue.isNode&&C.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function Al(t){return C.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Nl(t){const e={},n=Object.keys(t);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],e[s]=t[s];return e}function sr(t){function e(n,r,o,s){let a=n[s++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),l=s>=n.length;return a=!a&&C.isArray(o)?o.length:a,l?(C.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!c):((!o[a]||!C.isObject(o[a]))&&(o[a]=[]),e(n,r,o[a],s)&&C.isArray(o[a])&&(o[a]=Nl(o[a])),!c)}if(C.isFormData(t)&&C.isFunction(t.entries)){const n={};return C.forEachEntry(t,(r,o)=>{e(Al(r),o,n,0)}),n}return null}function Pl(t,e,n){if(C.isString(t))try{return(e||JSON.parse)(t),C.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const xt={transitional:or,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=C.isObject(e);if(s&&C.isHTMLForm(e)&&(e=new FormData(e)),C.isFormData(e))return o?JSON.stringify(sr(e)):e;if(C.isArrayBuffer(e)||C.isBuffer(e)||C.isStream(e)||C.isFile(e)||C.isBlob(e)||C.isReadableStream(e))return e;if(C.isArrayBufferView(e))return e.buffer;if(C.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return $l(e,this.formSerializer).toString();if((c=C.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Zt(c?{"files[]":e}:e,l&&new l,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Pl(e)):e}],transformResponse:[function(e){const n=this.transitional||xt.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(C.isResponse(e)||C.isReadableStream(e))return e;if(e&&C.isString(e)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(c){if(a)throw c.name==="SyntaxError"?D.from(c,D.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ue.classes.FormData,Blob:ue.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(["delete","get","head","post","put","patch"],t=>{xt.headers[t]={}});const Vl=C.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"]),zl=t=>{const e={};let n,r,o;return t&&t.split(`
14
+ ***************************************************************************** */var Vi;(function(t){(function(e){var n=typeof globalThis=="object"?globalThis:typeof Pi=="object"?Pi:typeof self=="object"?self:typeof this=="object"?this:c(),r=o(t);typeof n.Reflect<"u"&&(r=o(n.Reflect,r)),e(r,n),typeof n.Reflect>"u"&&(n.Reflect=t);function o(l,u){return function(h,f){Object.defineProperty(l,h,{configurable:!0,writable:!0,value:f}),u&&u(h,f)}}function s(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function c(){return s()||a()}})(function(e,n){var r=Object.prototype.hasOwnProperty,o=typeof Symbol=="function",s=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=o&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",l={__proto__:[]}instanceof Array,u=!c&&!l,h={create:c?function(){return Ai(Object.create(null))}:l?function(){return Ai({__proto__:null})}:function(){return Ai({})},has:u?function(y,b){return r.call(y,b)}:function(y,b){return b in y},get:u?function(y,b){return r.call(y,b)?y[b]:void 0}:function(y,b){return y[b]}},f=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Ym(),g=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Qm(),p=typeof WeakMap=="function"?WeakMap:Km(),v=o?Symbol.for("@reflect-metadata:registry"):void 0,w=Zm(),M=Xm(w);function O(y,b,k,B){if(z(k)){if(!pa(y))throw new TypeError;if(!ga(b))throw new TypeError;return Lm(y,b)}else{if(!pa(y))throw new TypeError;if(!ee(b))throw new TypeError;if(!ee(B)&&!z(B)&&!bt(B))throw new TypeError;return bt(B)&&(B=void 0),k=Te(k),Hm(y,b,k,B)}}e("decorate",O);function L(y,b){function k(B,P){if(!ee(B))throw new TypeError;if(!z(P)&&!jm(P))throw new TypeError;da(y,b,B,P)}return k}e("metadata",L);function F(y,b,k,B){if(!ee(k))throw new TypeError;return z(B)||(B=Te(B)),da(y,b,k,B)}e("defineMetadata",F);function V(y,b,k){if(!ee(b))throw new TypeError;return z(k)||(k=Te(k)),aa(y,b,k)}e("hasMetadata",V);function be(y,b,k){if(!ee(b))throw new TypeError;return z(k)||(k=Te(k)),Ii(y,b,k)}e("hasOwnMetadata",be);function Ee(y,b,k){if(!ee(b))throw new TypeError;return z(k)||(k=Te(k)),la(y,b,k)}e("getMetadata",Ee);function Ze(y,b,k){if(!ee(b))throw new TypeError;return z(k)||(k=Te(k)),ca(y,b,k)}e("getOwnMetadata",Ze);function wt(y,b){if(!ee(y))throw new TypeError;return z(b)||(b=Te(b)),ua(y,b)}e("getMetadataKeys",wt);function vn(y,b){if(!ee(y))throw new TypeError;return z(b)||(b=Te(b)),ha(y,b)}e("getOwnMetadataKeys",vn);function Om(y,b,k){if(!ee(b))throw new TypeError;if(z(k)||(k=Te(k)),!ee(b))throw new TypeError;z(k)||(k=Te(k));var B=Dt(b,k,!1);return z(B)?!1:B.OrdinaryDeleteMetadata(y,b,k)}e("deleteMetadata",Om);function Lm(y,b){for(var k=y.length-1;k>=0;--k){var B=y[k],P=B(b);if(!z(P)&&!bt(P)){if(!ga(P))throw new TypeError;b=P}}return b}function Hm(y,b,k,B){for(var P=y.length-1;P>=0;--P){var re=y[P],te=re(b,k,B);if(!z(te)&&!bt(te)){if(!ee(te))throw new TypeError;B=te}}return B}function aa(y,b,k){var B=Ii(y,b,k);if(B)return!0;var P=$i(b);return bt(P)?!1:aa(y,P,k)}function Ii(y,b,k){var B=Dt(b,k,!1);return z(B)?!1:ma(B.OrdinaryHasOwnMetadata(y,b,k))}function la(y,b,k){var B=Ii(y,b,k);if(B)return ca(y,b,k);var P=$i(b);if(!bt(P))return la(y,P,k)}function ca(y,b,k){var B=Dt(b,k,!1);if(!z(B))return B.OrdinaryGetOwnMetadata(y,b,k)}function da(y,b,k,B){var P=Dt(k,B,!0);P.OrdinaryDefineOwnMetadata(y,b,k,B)}function ua(y,b){var k=ha(y,b),B=$i(y);if(B===null)return k;var P=ua(B,b);if(P.length<=0)return k;if(k.length<=0)return P;for(var re=new g,te=[],U=0,I=k;U<I.length;U++){var R=I[U],$=re.has(R);$||(re.add(R),te.push(R))}for(var A=0,_=P;A<_.length;A++){var R=_[A],$=re.has(R);$||(re.add(R),te.push(R))}return te}function ha(y,b){var k=Dt(y,b,!1);return k?k.OrdinaryOwnMetadataKeys(y,b):[]}function fa(y){if(y===null)return 1;switch(typeof y){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return y===null?1:6;default:return 6}}function z(y){return y===void 0}function bt(y){return y===null}function qm(y){return typeof y=="symbol"}function ee(y){return typeof y=="object"?y!==null:typeof y=="function"}function Um(y,b){switch(fa(y)){case 0:return y;case 1:return y;case 2:return y;case 3:return y;case 4:return y;case 5:return y}var k="string",B=ya(y,s);if(B!==void 0){var P=B.call(y,k);if(ee(P))throw new TypeError;return P}return _m(y)}function _m(y,b){var k,B;{var P=y.toString;if(xn(P)){var B=P.call(y);if(!ee(B))return B}var k=y.valueOf;if(xn(k)){var B=k.call(y);if(!ee(B))return B}}throw new TypeError}function ma(y){return!!y}function Wm(y){return""+y}function Te(y){var b=Um(y);return qm(b)?b:Wm(b)}function pa(y){return Array.isArray?Array.isArray(y):y instanceof Object?y instanceof Array:Object.prototype.toString.call(y)==="[object Array]"}function xn(y){return typeof y=="function"}function ga(y){return typeof y=="function"}function jm(y){switch(fa(y)){case 3:return!0;case 4:return!0;default:return!1}}function Ri(y,b){return y===b||y!==y&&b!==b}function ya(y,b){var k=y[b];if(k!=null){if(!xn(k))throw new TypeError;return k}}function wa(y){var b=ya(y,a);if(!xn(b))throw new TypeError;var k=b.call(y);if(!ee(k))throw new TypeError;return k}function ba(y){return y.value}function Ca(y){var b=y.next();return b.done?!1:b}function Sa(y){var b=y.return;b&&b.call(y)}function $i(y){var b=Object.getPrototypeOf(y);if(typeof y!="function"||y===f||b!==f)return b;var k=y.prototype,B=k&&Object.getPrototypeOf(k);if(B==null||B===Object.prototype)return b;var P=B.constructor;return typeof P!="function"||P===y?b:P}function Gm(){var y;!z(v)&&typeof n.Reflect<"u"&&!(v in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(y=Jm(n.Reflect));var b,k,B,P=new p,re={registerProvider:te,getProvider:I,setProvider:$};return re;function te(A){if(!Object.isExtensible(re))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case y===A:break;case z(b):b=A;break;case b===A:break;case z(k):k=A;break;case k===A:break;default:B===void 0&&(B=new g),B.add(A);break}}function U(A,_){if(!z(b)){if(b.isProviderFor(A,_))return b;if(!z(k)){if(k.isProviderFor(A,_))return b;if(!z(B))for(var Z=wa(B);;){var J=Ca(Z);if(!J)return;var $e=ba(J);if($e.isProviderFor(A,_))return Sa(Z),$e}}}if(!z(y)&&y.isProviderFor(A,_))return y}function I(A,_){var Z=P.get(A),J;return z(Z)||(J=Z.get(_)),z(J)&&(J=U(A,_),z(J)||(z(Z)&&(Z=new m,P.set(A,Z)),Z.set(_,J))),J}function R(A){if(z(A))throw new TypeError;return b===A||k===A||!z(B)&&B.has(A)}function $(A,_,Z){if(!R(Z))throw new Error("Metadata provider not registered.");var J=I(A,_);if(J!==Z){if(!z(J))return!1;var $e=P.get(A);z($e)&&($e=new m,P.set(A,$e)),$e.set(_,Z)}return!0}}function Zm(){var y;return!z(v)&&ee(n.Reflect)&&Object.isExtensible(n.Reflect)&&(y=n.Reflect[v]),z(y)&&(y=Gm()),!z(v)&&ee(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,v,{enumerable:!1,configurable:!1,writable:!1,value:y}),y}function Xm(y){var b=new p,k={isProviderFor:function(R,$){var A=b.get(R);return z(A)?!1:A.has($)},OrdinaryDefineOwnMetadata:te,OrdinaryHasOwnMetadata:P,OrdinaryGetOwnMetadata:re,OrdinaryOwnMetadataKeys:U,OrdinaryDeleteMetadata:I};return w.registerProvider(k),k;function B(R,$,A){var _=b.get(R),Z=!1;if(z(_)){if(!A)return;_=new m,b.set(R,_),Z=!0}var J=_.get($);if(z(J)){if(!A)return;if(J=new m,_.set($,J),!y.setProvider(R,$,k))throw _.delete($),Z&&b.delete(R),new Error("Wrong provider for target.")}return J}function P(R,$,A){var _=B($,A,!1);return z(_)?!1:ma(_.has(R))}function re(R,$,A){var _=B($,A,!1);if(!z(_))return _.get(R)}function te(R,$,A,_){var Z=B(A,_,!0);Z.set(R,$)}function U(R,$){var A=[],_=B(R,$,!1);if(z(_))return A;for(var Z=_.keys(),J=wa(Z),$e=0;;){var ka=Ca(J);if(!ka)return A.length=$e,A;var ep=ba(ka);try{A[$e]=ep}catch(tp){try{Sa(J)}finally{throw tp}}$e++}}function I(R,$,A){var _=B($,A,!1);if(z(_)||!_.delete(R))return!1;if(_.size===0){var Z=b.get($);z(Z)||(Z.delete(A),Z.size===0&&b.delete(Z))}return!0}}function Jm(y){var b=y.defineMetadata,k=y.hasOwnMetadata,B=y.getOwnMetadata,P=y.getOwnMetadataKeys,re=y.deleteMetadata,te=new p,U={isProviderFor:function(I,R){var $=te.get(I);return!z($)&&$.has(R)?!0:P(I,R).length?(z($)&&($=new g,te.set(I,$)),$.add(R),!0):!1},OrdinaryDefineOwnMetadata:b,OrdinaryHasOwnMetadata:k,OrdinaryGetOwnMetadata:B,OrdinaryOwnMetadataKeys:P,OrdinaryDeleteMetadata:re};return U}function Dt(y,b,k){var B=w.getProvider(y,b);if(!z(B))return B;if(k){if(w.setProvider(y,b,M))return M;throw new Error("Illegal state.")}}function Ym(){var y={},b=[],k=function(){function U(I,R,$){this._index=0,this._keys=I,this._values=R,this._selector=$}return U.prototype["@@iterator"]=function(){return this},U.prototype[a]=function(){return this},U.prototype.next=function(){var I=this._index;if(I>=0&&I<this._keys.length){var R=this._selector(this._keys[I],this._values[I]);return I+1>=this._keys.length?(this._index=-1,this._keys=b,this._values=b):this._index++,{value:R,done:!1}}return{value:void 0,done:!0}},U.prototype.throw=function(I){throw this._index>=0&&(this._index=-1,this._keys=b,this._values=b),I},U.prototype.return=function(I){return this._index>=0&&(this._index=-1,this._keys=b,this._values=b),{value:I,done:!0}},U}(),B=function(){function U(){this._keys=[],this._values=[],this._cacheKey=y,this._cacheIndex=-2}return Object.defineProperty(U.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),U.prototype.has=function(I){return this._find(I,!1)>=0},U.prototype.get=function(I){var R=this._find(I,!1);return R>=0?this._values[R]:void 0},U.prototype.set=function(I,R){var $=this._find(I,!0);return this._values[$]=R,this},U.prototype.delete=function(I){var R=this._find(I,!1);if(R>=0){for(var $=this._keys.length,A=R+1;A<$;A++)this._keys[A-1]=this._keys[A],this._values[A-1]=this._values[A];return this._keys.length--,this._values.length--,Ri(I,this._cacheKey)&&(this._cacheKey=y,this._cacheIndex=-2),!0}return!1},U.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=y,this._cacheIndex=-2},U.prototype.keys=function(){return new k(this._keys,this._values,P)},U.prototype.values=function(){return new k(this._keys,this._values,re)},U.prototype.entries=function(){return new k(this._keys,this._values,te)},U.prototype["@@iterator"]=function(){return this.entries()},U.prototype[a]=function(){return this.entries()},U.prototype._find=function(I,R){if(!Ri(this._cacheKey,I)){this._cacheIndex=-1;for(var $=0;$<this._keys.length;$++)if(Ri(this._keys[$],I)){this._cacheIndex=$;break}}return this._cacheIndex<0&&R&&(this._cacheIndex=this._keys.length,this._keys.push(I),this._values.push(void 0)),this._cacheIndex},U}();return B;function P(U,I){return U}function re(U,I){return I}function te(U,I){return[U,I]}}function Qm(){var y=function(){function b(){this._map=new m}return Object.defineProperty(b.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),b.prototype.has=function(k){return this._map.has(k)},b.prototype.add=function(k){return this._map.set(k,k),this},b.prototype.delete=function(k){return this._map.delete(k)},b.prototype.clear=function(){this._map.clear()},b.prototype.keys=function(){return this._map.keys()},b.prototype.values=function(){return this._map.keys()},b.prototype.entries=function(){return this._map.entries()},b.prototype["@@iterator"]=function(){return this.keys()},b.prototype[a]=function(){return this.keys()},b}();return y}function Km(){var y=16,b=h.create(),k=B();return function(){function I(){this._key=B()}return I.prototype.has=function(R){var $=P(R,!1);return $!==void 0?h.has($,this._key):!1},I.prototype.get=function(R){var $=P(R,!1);return $!==void 0?h.get($,this._key):void 0},I.prototype.set=function(R,$){var A=P(R,!0);return A[this._key]=$,this},I.prototype.delete=function(R){var $=P(R,!1);return $!==void 0?delete $[this._key]:!1},I.prototype.clear=function(){this._key=B()},I}();function B(){var I;do I="@@WeakMap@@"+U();while(h.has(b,I));return b[I]=!0,I}function P(I,R){if(!r.call(I,k)){if(!R)return;Object.defineProperty(I,k,{value:h.create()})}return I[k]}function re(I,R){for(var $=0;$<R;++$)I[$]=Math.random()*255|0;return I}function te(I){if(typeof Uint8Array=="function"){var R=new Uint8Array(I);return typeof crypto<"u"?crypto.getRandomValues(R):typeof msCrypto<"u"?msCrypto.getRandomValues(R):re(R,I),R}return re(new Array(I),I)}function U(){var I=te(y);I[6]=I[6]&79|64,I[8]=I[8]&191|128;for(var R="",$=0;$<y;++$){var A=I[$];($===4||$===6||$===8)&&(R+="-"),A<16&&(R+="0"),R+=A.toString(16).toLowerCase()}return R}}function Ai(y){return y.__=void 0,delete y.__,y}})})(Vi||(Vi={}));let Ot;const Ma=new Uint8Array(16);function Ia(){if(!Ot&&(Ot=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ot))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ot(Ma)}const oe=[];for(let t=0;t<256;++t)oe.push((t+256).toString(16).slice(1));function Ra(t,e=0){return oe[t[e+0]]+oe[t[e+1]]+oe[t[e+2]]+oe[t[e+3]]+"-"+oe[t[e+4]]+oe[t[e+5]]+"-"+oe[t[e+6]]+oe[t[e+7]]+"-"+oe[t[e+8]]+oe[t[e+9]]+"-"+oe[t[e+10]]+oe[t[e+11]]+oe[t[e+12]]+oe[t[e+13]]+oe[t[e+14]]+oe[t[e+15]]}const zi={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Fe(t,e,n){if(zi.randomUUID&&!e&&!t)return zi.randomUUID();t=t||{};const r=t.random||(t.rng||Ia)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Ra(r)}class xe{static UUID(){return Fe()}static GUID(){const e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}const yt=class yt{static BuildClass(e,n){n&&Object.keys(n).forEach(r=>{const o=n[r];if(this.isPrimitive(o))e[r]instanceof Date?e[r]=new Date(o):e[r]=o;else if(o!=null&&!Array.isArray(o))if(e[r]&&e[r].constructor)e[r]=new e[r].constructor(o);else{const s=Reflect.getMetadata(r,e);s&&(e[r]=new s[r](o))}if(Array.isArray(o)){const s=Reflect.getMetadata(r,e);s&&(e[r]=o.map(a=>new s[r](a)))}})}static isPrimitive(e){return e!==null&&typeof e<"u"&&e!==Object(e)}static RemoveFromClassByIndex(e,n,r){yt.RemoveFromClass(e,n,r)}static RemoveFromClassById(e,n,r){if(!e)return;const o=n.findIndex(s=>s.id===e);yt.RemoveFromClass(o,n,r)}static RemoveFromClass(e,n,r){if(e<0)return;const o=n[e].id;o&&r&&r.push(o),n.splice(e,1)}static GetPropertyName(e){const n=new e;return new Proxy(n,{get(r,o){return o}})}static InitClassInstance(e,n){const r=e.constructor(n);return yt.BuildClass(r),r.id=xe.UUID(),r}static ExistsWithId(e,n){return e.some(r=>r.id===n)}};d(yt,"GetClassConstructor",e=>(n,r)=>{const o=Reflect.getMetadata(`property:${r}`,n)||{};o[r]=e,Reflect.defineMetadata(r,o,n)});let T=yt;class Mn{static Setup(e){this.staticUrl=e}static get StaticUrl(){return this.staticUrl}}d(Mn,"staticUrl","");class Ae{constructor(e){d(this,"name","");d(this,"url","");d(this,"src","");d(this,"raw");d(this,"blob");d(this,"file");d(this,"id");d(this,"originalName","");d(this,"fileSystemPath","");T.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${Mn.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:ve&&ve.tagName.toUpperCase()==="SCRIPT"&&ve.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,n){const r=new Ae;return r.id=n??xe.UUID(),r.originalName=e.name,r.file=e.blob,r.fileSystemPath=xe.UUID(),r}uploadNewFile(e){this.id||(this.id=xe.UUID()),this.originalName=e.name,this.file=e.blob,this.fileSystemPath=xe.UUID()}setFile(e){this.file=e,this.url=e.src}uploadAndSetFile(e){this.uploadNewFile(e),this.setFile(e),this.url=e.url}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:ve&&ve.tagName.toUpperCase()==="SCRIPT"&&ve.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 Ti{constructor(e){d(this,"id");d(this,"num","");d(this,"fileInfoId");d(this,"fileInfo",new Ae);S.H.Classes.BuildClass(this,e)}}class St{constructor(e){d(this,"id");d(this,"passportId");d(this,"fileInfoId");d(this,"order",0);T.BuildClass(this,e)}static Create(e){const n=new St;return n.id=S.H.Id.UUID(),n.passportId=e,n}}var $a=Object.defineProperty,Aa=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&$a(e,n,o),o};class In{constructor(e){d(this,"id");d(this,"num","");d(this,"seria","");d(this,"division","");d(this,"divisionCode","");d(this,"citzenship","");d(this,"date",new Date);d(this,"address","");d(this,"passportScans",[]);S.H.Classes.BuildClass(this,e)}}Aa([S.H.Classes.GetClassConstructor(St)],In.prototype,"passportScans");class Fi{constructor(e){d(this,"id");d(this,"num","");d(this,"fileInfoId");d(this,"fileInfo",new Ae);S.H.Classes.BuildClass(this,e)}}const Na=Object.freeze(Object.defineProperty({__proto__:null,Inn:Ti,Passport:In,PassportScan:St,Snils:Fi},Symbol.toStringTag,{value:"Module"}));class Ue{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},(o,s)=>e+s*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,o)=>e[o]==n[o]))}static SwipeById(e,n,r){const o=e.findIndex(a=>n.id===a.id),s=e.findIndex(a=>r.id===a.id);o||s||([e[o],e[s]]=[e[s],e[o]])}static Swap(e,n,r){if(n<0||n>=e.length||r<0||r>=e.length)return;const o=e[n];e[n]=e[r],e[r]=o}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]]}}class ne{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((o,s)=>s===0?o.toLowerCase():ne.Capitalize(o.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,o=>{if(o===o.toLowerCase()){const a=Object.keys(r).find(c=>r[c]===o);return a||""}const s=Object.keys(r).find(a=>r[a]===o.toLowerCase());return s?s.toUpperCase():""}):e.replace(/[A-z/,.;'\][]/g,o=>o===o.toLowerCase()?r[o]:r[o.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,""),o=n.toLowerCase().replaceAll(/\s/g,""),s=ne.Translit(r),a=ne.Translit(o);return r.includes(o)||s.includes(o)||r.includes(a)}static SearchIn(e,n){return ne.StringsEquals(e,n)}static FormatToPercentage(e){return`${e}%`}static WrapSubStr(e,n){const r=new RegExp(ne.GetVariants(n).join("|"),"gi");return e.replace(r,`<span class="search-text">${n}</span>`)}static GetVariants(e){const n=ne.Translit(e);return[e,ne.Capitalize(e),e.toLowerCase(),e.toUpperCase(),n,ne.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]]}}var Y=(t=>(t.Date="date",t.String="string",t.Boolean="boolean",t.Number="number",t.Set="set",t.Join="join",t))(Y||{}),ce=(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))(ce||{}),Pa=Object.defineProperty,Va=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Pa(e,n,o),o};const Di=class Ct{constructor(e){d(this,"id");d(this,"model","");d(this,"label","");d(this,"col","");d(this,"operator",ce.Eq);d(this,"date1");d(this,"date2");d(this,"value1","");d(this,"boolean",!1);d(this,"number",0);d(this,"type",Y.String);d(this,"set",[]);d(this,"isSet",!1);d(this,"joinTable","");d(this,"joinTableModel","");d(this,"joinTableFk","");d(this,"joinTablePk","");d(this,"joinTableId","");d(this,"joinTableIdCol","");T.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===Y.Join){const n=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===ce.In?n&&Ue.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===Y.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===Y.String?this.value1===(e==null?void 0:e.value1):this.type===Y.Join&&this.set.length?Ue.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}"`:"",o=this.operator?`"operator":"${this.operator}"`:"",s=this.value1?`"value1":"${this.value1}"`:"",a=this.type===Y.Boolean?`"boolean":${this.boolean}`:"",c=this.type===Y.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",l=this.type===Y.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===Y.Number?`"number":${this.number}`:"",h=this.type===Y.Set||this.operator===ce.In?`"set":${JSON.stringify(this.set)}`:"",f=this.type===Y.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[e,n,r,o,s,a,c,l,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===ce.Eq||this.operator===ce.Gt||this.operator===ce.Lt}isBetweenFilter(){return this.operator===ce.Btw}isSetFilter(){return this.operator===ce.In}static Create(e,n,r){const o=new Ct;return o.model=e.GetClassName(),o.col=n??"",o.type=r,o.type===Y.Number&&(o.value1="0"),o.type===Y.String&&(o.value1=""),o.type===Y.Boolean&&(o.value1="false",o.operator=ce.Eq),o}static CreateFilterModel(e,n,r){const o=new Ct;return o.id=Fe(),o.model=typeof e=="string"?e:e.GetClassName(),o.col=n??"",o.type=r,o.type===Y.Number&&(o.value1="0"),o.type===Y.String&&(o.value1=""),o.type===Y.Boolean&&(o.value1="false"),o}static CreateFilterModelWithJoin(e,n,r,o,s,a,c,l){const u=new Ct;return u.id=Fe(),u.joinTable=r,u.joinTablePk=o,u.joinTableFk=s,u.col=n,u.type=a,c&&(u.joinTableId=c),l&&(u.joinTableIdCol=l),u}static CreateFilterModelWithJoinV2(e,n,r,o,s,a,c){const l=new Ct;return l.model=e,l.joinTableModel=r,l.joinTablePk=o,l.joinTableFk=s,l.col=n,l.type=Y.Join,a&&(l.joinTableId=a),c&&(l.joinTableIdCol=c),l}static OnlyIfSecondModelExists(e,n){const r=new Ct;return r.id=Fe(),r.model=ne.ToCamelCase(e.GetClassName()),r.joinTableModel=ne.ToCamelCase(n.GetClassName()),r.type=Y.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=ce.Eq;return}this.setDate2(n),this.operator=ce.Btw}};Va([T.GetClassConstructor(String)],Di.prototype,"set");let Oi=Di;class za{constructor(){d(this,"operation",ce.Lt);d(this,"column","");d(this,"value");d(this,"initial",!0);d(this,"tableName","");d(this,"version","");d(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,o=r?`"value":"${r}"`:"",s=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[e,n,o,s,a].filter(c=>c!=="").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 Lt{constructor(e){d(this,"offset",0);d(this,"limit",25);d(this,"cursor",new za);d(this,"cursorMode",!1);d(this,"append",!1);d(this,"allLoaded",!1);d(this,"version","");T.BuildClass(this,e)}setLoadMore(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=ce.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=ce.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}`,o=`"append":${this.append}`,s=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[e,n,r,o,s,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,T.BuildClass(this)}}var Be=(t=>(t.Asc="asc",t.Desc="desc",t))(Be||{});class Rn{constructor(e){d(this,"model","");d(this,"col","");d(this,"order");d(this,"label","");d(this,"default",!1);d(this,"selected",!1);T.BuildClass(this,e)}static Create(e,n,r=Be.Asc,o,s){const a=new Rn;return a.model=e.GetClassName(),a.col=n??"",a.order=r??Be.Asc,a.label=o??"",a.default=s??!1,a}isAsc(){return this.order===Be.Asc}isDesc(){return this.order===Be.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=Be.Asc}desc(){this.order=Be.Desc}}class Ht{constructor(){d(this,"model","");d(this,"cols",[]);d(this,"models",[])}static Create(e,n){const r=new Ht;return r.model=e.GetClassName(),r.cols=n,r}}var Ta=Object.defineProperty,qt=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Ta(e,n,o),o};const kt=(we=class{constructor(e){d(this,"id");d(this,"f",[]);d(this,"s",[]);d(this,"p",new Lt);d(this,"t",new Ht);T.BuildClass(this,e)}static Get(){return this.instance||(this.instance=new we),this.instance}createFrom(e){const n=new we(JSON.parse(e));this.f=n.f}clearForHTTP(){const e=new we(this);return e.f=this.f.map(n=>we.EmptyEntiries(n)),e.s=this.s.map(n=>we.EmptyEntiries(n)),e.p=we.EmptyEntiries(this.p),e.t=we.EmptyEntiries(this.t),e}static EmptyEntiries(e){if(!e)return;const r=Object.entries(e).filter(([o,s])=>o!=="label"&&s!==""&&s!==null);return Object.fromEntries(r)}findFilterModel(e){return this.f.find(n=>e.id===n.id)}getFirstSortModel(){return Ue.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));T.RemoveFromClassByIndex(n,this.f)}reset(){this.f=[],this.s=[],this.p=new Lt}resetF(){this.f=[]}},d(we,"instance"),we);qt([T.GetClassConstructor(Oi)],kt.prototype,"f"),qt([T.GetClassConstructor(Rn)],kt.prototype,"s"),qt([T.GetClassConstructor(Lt)],kt.prototype,"p"),qt([T.GetClassConstructor(Ht)],kt.prototype,"t");let Li=kt;class Ut{constructor(e){d(this,"name","");T.BuildClass(this,e)}static Set(){}static Get(e,n){const r=sessionStorage.getItem(e);if(r){const o=JSON.parse(r),s=new Date,a=new Date(o.time),c=s.getTime()-a.getTime();return Math.round(c/6e4)>(n||10)?null:o.data}else return null}static async TryGet(e,n,r){let o;return o=Ut.Get(e,r),o||(o=await n()),o}}function Hi(t,e){return function(){return t.apply(e,arguments)}}const{toString:Fa}=Object.prototype,{getPrototypeOf:$n}=Object,_t=(t=>e=>{const n=Fa.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Me=t=>(t=t.toLowerCase(),e=>_t(e)===t),Wt=t=>e=>typeof e===t,{isArray:st}=Array,Et=Wt("undefined");function Da(t){return t!==null&&!Et(t)&&t.constructor!==null&&!Et(t.constructor)&&ge(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const qi=Me("ArrayBuffer");function Oa(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&qi(t.buffer),e}const La=Wt("string"),ge=Wt("function"),Ui=Wt("number"),jt=t=>t!==null&&typeof t=="object",Ha=t=>t===!0||t===!1,Gt=t=>{if(_t(t)!=="object")return!1;const e=$n(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},qa=Me("Date"),Ua=Me("File"),_a=Me("Blob"),Wa=Me("FileList"),ja=t=>jt(t)&&ge(t.pipe),Ga=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||ge(t.append)&&((e=_t(t))==="formdata"||e==="object"&&ge(t.toString)&&t.toString()==="[object FormData]"))},Za=Me("URLSearchParams"),[Xa,Ja,Ya,Qa]=["ReadableStream","Request","Response","Headers"].map(Me),Ka=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vt(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),st(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let c;for(r=0;r<a;r++)c=s[r],e.call(null,t[c],c,t)}}function _i(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const Xe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wi=t=>!Et(t)&&t!==Xe;function An(){const{caseless:t}=Wi(this)&&this||{},e={},n=(r,o)=>{const s=t&&_i(e,o)||o;Gt(e[s])&&Gt(r)?e[s]=An(e[s],r):Gt(r)?e[s]=An({},r):st(r)?e[s]=r.slice():e[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&vt(arguments[r],n);return e}const el=(t,e,n,{allOwnKeys:r}={})=>(vt(e,(o,s)=>{n&&ge(o)?t[s]=Hi(o,n):t[s]=o},{allOwnKeys:r}),t),tl=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),nl=(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)},il=(t,e,n,r)=>{let o,s,a;const c={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)a=o[s],(!r||r(a,t,e))&&!c[a]&&(e[a]=t[a],c[a]=!0);t=n!==!1&&$n(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},rl=(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},ol=t=>{if(!t)return null;if(st(t))return t;let e=t.length;if(!Ui(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},sl=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&$n(Uint8Array)),al=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=r.next())&&!o.done;){const s=o.value;e.call(t,s[0],s[1])}},ll=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},cl=Me("HTMLFormElement"),dl=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),ji=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ul=Me("RegExp"),Gi=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};vt(n,(o,s)=>{let a;(a=e(o,s,t))!==!1&&(r[s]=a||o)}),Object.defineProperties(t,r)},hl=t=>{Gi(t,(e,n)=>{if(ge(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(ge(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+"'")})}})},fl=(t,e)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return st(t)?r(t):r(String(t).split(e)),n},ml=()=>{},pl=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Nn="abcdefghijklmnopqrstuvwxyz",Zi="0123456789",Xi={DIGIT:Zi,ALPHA:Nn,ALPHA_DIGIT:Nn+Nn.toUpperCase()+Zi},gl=(t=16,e=Xi.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function yl(t){return!!(t&&ge(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const wl=t=>{const e=new Array(10),n=(r,o)=>{if(jt(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const s=st(r)?[]:{};return vt(r,(a,c)=>{const l=n(a,o+1);!Et(l)&&(s[c]=l)}),e[o]=void 0,s}}return r};return n(t,0)},bl=Me("AsyncFunction"),Cl=t=>t&&(jt(t)||ge(t))&&ge(t.then)&&ge(t.catch),Ji=((t,e)=>t?setImmediate:e?((n,r)=>(Xe.addEventListener("message",({source:o,data:s})=>{o===Xe&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Xe.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ge(Xe.postMessage)),Sl=typeof queueMicrotask<"u"?queueMicrotask.bind(Xe):typeof process<"u"&&process.nextTick||Ji,C={isArray:st,isArrayBuffer:qi,isBuffer:Da,isFormData:Ga,isArrayBufferView:Oa,isString:La,isNumber:Ui,isBoolean:Ha,isObject:jt,isPlainObject:Gt,isReadableStream:Xa,isRequest:Ja,isResponse:Ya,isHeaders:Qa,isUndefined:Et,isDate:qa,isFile:Ua,isBlob:_a,isRegExp:ul,isFunction:ge,isStream:ja,isURLSearchParams:Za,isTypedArray:sl,isFileList:Wa,forEach:vt,merge:An,extend:el,trim:Ka,stripBOM:tl,inherits:nl,toFlatObject:il,kindOf:_t,kindOfTest:Me,endsWith:rl,toArray:ol,forEachEntry:al,matchAll:ll,isHTMLForm:cl,hasOwnProperty:ji,hasOwnProp:ji,reduceDescriptors:Gi,freezeMethods:hl,toObjectSet:fl,toCamelCase:dl,noop:ml,toFiniteNumber:pl,findKey:_i,global:Xe,isContextDefined:Wi,ALPHABET:Xi,generateString:gl,isSpecCompliantForm:yl,toJSONObject:wl,isAsyncFn:bl,isThenable:Cl,setImmediate:Ji,asap:Sl};function D(t,e,n,r,o){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),o&&(this.response=o,this.status=o.status?o.status:null)}C.inherits(D,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:C.toJSONObject(this.config),code:this.code,status:this.status}}});const Yi=D.prototype,Qi={};["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=>{Qi[t]={value:t}}),Object.defineProperties(D,Qi),Object.defineProperty(Yi,"isAxiosError",{value:!0}),D.from=(t,e,n,r,o,s)=>{const a=Object.create(Yi);return C.toFlatObject(t,a,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),D.call(a,t.message,e,n,r,o),a.cause=t,a.name=t.name,s&&Object.assign(a,s),a};const kl=null;function Pn(t){return C.isPlainObject(t)||C.isArray(t)}function Ki(t){return C.endsWith(t,"[]")?t.slice(0,-2):t}function er(t,e,n){return t?t.concat(e).map(function(o,s){return o=Ki(o),!n&&s?"["+o+"]":o}).join(n?".":""):e}function El(t){return C.isArray(t)&&!t.some(Pn)}const vl=C.toFlatObject(C,{},null,function(e){return/^is[A-Z]/.test(e)});function Zt(t,e,n){if(!C.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=C.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,w){return!C.isUndefined(w[v])});const r=n.metaTokens,o=n.visitor||h,s=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&C.isSpecCompliantForm(e);if(!C.isFunction(o))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(C.isDate(p))return p.toISOString();if(!l&&C.isBlob(p))throw new D("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(p)||C.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function h(p,v,w){let M=p;if(p&&!w&&typeof p=="object"){if(C.endsWith(v,"{}"))v=r?v:v.slice(0,-2),p=JSON.stringify(p);else if(C.isArray(p)&&El(p)||(C.isFileList(p)||C.endsWith(v,"[]"))&&(M=C.toArray(p)))return v=Ki(v),M.forEach(function(L,F){!(C.isUndefined(L)||L===null)&&e.append(a===!0?er([v],F,s):a===null?v:v+"[]",u(L))}),!1}return Pn(p)?!0:(e.append(er(w,v,s),u(p)),!1)}const f=[],m=Object.assign(vl,{defaultVisitor:h,convertValue:u,isVisitable:Pn});function g(p,v){if(!C.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(p),C.forEach(p,function(M,O){(!(C.isUndefined(M)||M===null)&&o.call(e,M,C.isString(O)?O.trim():O,v,m))===!0&&g(M,v?v.concat(O):[O])}),f.pop()}}if(!C.isObject(t))throw new TypeError("data must be an object");return g(t),e}function tr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Vn(t,e){this._pairs=[],t&&Zt(t,this,e)}const nr=Vn.prototype;nr.append=function(e,n){this._pairs.push([e,n])},nr.toString=function(e){const n=e?function(r){return e.call(this,r,tr)}:tr;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function xl(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ir(t,e,n){if(!e)return t;const r=n&&n.encode||xl,o=n&&n.serialize;let s;if(o?s=o(e,n):s=C.isURLSearchParams(e)?e.toString():new Vn(e,n).toString(r),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class rr{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){C.forEach(this.handlers,function(r){r!==null&&e(r)})}}const or={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Bl={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Vn,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},zn=typeof window<"u"&&typeof document<"u",Tn=typeof navigator=="object"&&navigator||void 0,Ml=zn&&(!Tn||["ReactNative","NativeScript","NS"].indexOf(Tn.product)<0),Il=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Rl=zn&&window.location.href||"http://localhost",ue={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zn,hasStandardBrowserEnv:Ml,hasStandardBrowserWebWorkerEnv:Il,navigator:Tn,origin:Rl},Symbol.toStringTag,{value:"Module"})),...Bl};function $l(t,e){return Zt(t,new ue.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return ue.isNode&&C.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function Al(t){return C.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Nl(t){const e={},n=Object.keys(t);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],e[s]=t[s];return e}function sr(t){function e(n,r,o,s){let a=n[s++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),l=s>=n.length;return a=!a&&C.isArray(o)?o.length:a,l?(C.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!c):((!o[a]||!C.isObject(o[a]))&&(o[a]=[]),e(n,r,o[a],s)&&C.isArray(o[a])&&(o[a]=Nl(o[a])),!c)}if(C.isFormData(t)&&C.isFunction(t.entries)){const n={};return C.forEachEntry(t,(r,o)=>{e(Al(r),o,n,0)}),n}return null}function Pl(t,e,n){if(C.isString(t))try{return(e||JSON.parse)(t),C.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const xt={transitional:or,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=C.isObject(e);if(s&&C.isHTMLForm(e)&&(e=new FormData(e)),C.isFormData(e))return o?JSON.stringify(sr(e)):e;if(C.isArrayBuffer(e)||C.isBuffer(e)||C.isStream(e)||C.isFile(e)||C.isBlob(e)||C.isReadableStream(e))return e;if(C.isArrayBufferView(e))return e.buffer;if(C.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return $l(e,this.formSerializer).toString();if((c=C.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Zt(c?{"files[]":e}:e,l&&new l,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Pl(e)):e}],transformResponse:[function(e){const n=this.transitional||xt.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(C.isResponse(e)||C.isReadableStream(e))return e;if(e&&C.isString(e)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(c){if(a)throw c.name==="SyntaxError"?D.from(c,D.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ue.classes.FormData,Blob:ue.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(["delete","get","head","post","put","patch"],t=>{xt.headers[t]={}});const Vl=C.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"]),zl=t=>{const e={};let n,r,o;return t&&t.split(`
15
15
  `).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||e[n]&&Vl[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},ar=Symbol("internals");function Bt(t){return t&&String(t).trim().toLowerCase()}function Xt(t){return t===!1||t==null?t:C.isArray(t)?t.map(Xt):String(t)}function Tl(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 Fl=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Fn(t,e,n,r,o){if(C.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!C.isString(e)){if(C.isString(r))return e.indexOf(r)!==-1;if(C.isRegExp(r))return r.test(e)}}function Dl(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Ol(t,e){const n=C.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(o,s,a){return this[r].call(this,e,o,s,a)},configurable:!0})})}class he{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function s(c,l,u){const h=Bt(l);if(!h)throw new Error("header name must be a non-empty string");const f=C.findKey(o,h);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||l]=Xt(c))}const a=(c,l)=>C.forEach(c,(u,h)=>s(u,h,l));if(C.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(C.isString(e)&&(e=e.trim())&&!Fl(e))a(zl(e),n);else if(C.isHeaders(e))for(const[c,l]of e.entries())s(l,c,r);else e!=null&&s(n,e,r);return this}get(e,n){if(e=Bt(e),e){const r=C.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return Tl(o);if(C.isFunction(n))return n.call(this,o,r);if(C.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Bt(e),e){const r=C.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Fn(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function s(a){if(a=Bt(a),a){const c=C.findKey(r,a);c&&(!n||Fn(r,r[c],c,n))&&(delete r[c],o=!0)}}return C.isArray(e)?e.forEach(s):s(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!e||Fn(this,this[s],s,e,!0))&&(delete this[s],o=!0)}return o}normalize(e){const n=this,r={};return C.forEach(this,(o,s)=>{const a=C.findKey(r,s);if(a){n[a]=Xt(o),delete n[s];return}const c=e?Dl(s):String(s).trim();c!==s&&delete n[s],n[c]=Xt(o),r[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return C.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&C.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(o=>r.set(o)),r}static accessor(e){const r=(this[ar]=this[ar]={accessors:{}}).accessors,o=this.prototype;function s(a){const c=Bt(a);r[c]||(Ol(o,a),r[c]=!0)}return C.isArray(e)?e.forEach(s):s(e),this}}he.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),C.reduceDescriptors(he.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),C.freezeMethods(he);function Dn(t,e){const n=this||xt,r=e||n,o=he.from(r.headers);let s=r.data;return C.forEach(t,function(c){s=c.call(n,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function lr(t){return!!(t&&t.__CANCEL__)}function at(t,e,n){D.call(this,t??"canceled",D.ERR_CANCELED,e,n),this.name="CanceledError"}C.inherits(at,D,{__CANCEL__:!0});function cr(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new D("Request failed with status code "+n.status,[D.ERR_BAD_REQUEST,D.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Ll(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Hl(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,s=0,a;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),h=r[s];a||(a=u),n[o]=l,r[o]=u;let f=s,m=0;for(;f!==o;)m+=n[f++],f=f%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),u-a<e)return;const g=h&&u-h;return g?Math.round(m*1e3/g):void 0}}function ql(t,e){let n=0,r=1e3/e,o,s;const a=(u,h=Date.now())=>{n=h,o=null,s&&(clearTimeout(s),s=null),t.apply(null,u)};return[(...u)=>{const h=Date.now(),f=h-n;f>=r?a(u,h):(o=u,s||(s=setTimeout(()=>{s=null,a(o)},r-f)))},()=>o&&a(o)]}const Jt=(t,e,n=3)=>{let r=0;const o=Hl(50,250);return ql(s=>{const a=s.loaded,c=s.lengthComputable?s.total:void 0,l=a-r,u=o(l),h=a<=c;r=a;const f={loaded:a,total:c,progress:c?a/c:void 0,bytes:l,rate:u||void 0,estimated:u&&c&&h?(c-a)/u:void 0,event:s,lengthComputable:c!=null,[e?"download":"upload"]:!0};t(f)},n)},dr=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},ur=t=>(...e)=>C.asap(()=>t(...e)),Ul=ue.hasStandardBrowserEnv?function(){const e=ue.navigator&&/(msie|trident)/i.test(ue.navigator.userAgent),n=document.createElement("a");let r;function o(s){let a=s;return e&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const c=C.isString(a)?o(a):a;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),_l=ue.hasStandardBrowserEnv?{write(t,e,n,r,o,s){const a=[t+"="+encodeURIComponent(e)];C.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),C.isString(r)&&a.push("path="+r),C.isString(o)&&a.push("domain="+o),s===!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 Wl(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function jl(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function hr(t,e){return t&&!Wl(e)?jl(t,e):e}const fr=t=>t instanceof he?{...t}:t;function Je(t,e){e=e||{};const n={};function r(u,h,f){return C.isPlainObject(u)&&C.isPlainObject(h)?C.merge.call({caseless:f},u,h):C.isPlainObject(h)?C.merge({},h):C.isArray(h)?h.slice():h}function o(u,h,f){if(C.isUndefined(h)){if(!C.isUndefined(u))return r(void 0,u,f)}else return r(u,h,f)}function s(u,h){if(!C.isUndefined(h))return r(void 0,h)}function a(u,h){if(C.isUndefined(h)){if(!C.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function c(u,h,f){if(f in e)return r(u,h);if(f in t)return r(void 0,u)}const l={url:s,method:s,data:s,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:c,headers:(u,h)=>o(fr(u),fr(h),!0)};return C.forEach(Object.keys(Object.assign({},t,e)),function(h){const f=l[h]||o,m=f(t[h],e[h],h);C.isUndefined(m)&&f!==c||(n[h]=m)}),n}const mr=t=>{const e=Je({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:c}=e;e.headers=a=he.from(a),e.url=ir(hr(e.baseURL,e.url),t.params,t.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let l;if(C.isFormData(n)){if(ue.hasStandardBrowserEnv||ue.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...h]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...h].join("; "))}}if(ue.hasStandardBrowserEnv&&(r&&C.isFunction(r)&&(r=r(e)),r||r!==!1&&Ul(e.url))){const u=o&&s&&_l.read(s);u&&a.set(o,u)}return e},Gl=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const o=mr(t);let s=o.data;const a=he.from(o.headers).normalize();let{responseType:c,onUploadProgress:l,onDownloadProgress:u}=o,h,f,m,g,p;function v(){g&&g(),p&&p(),o.cancelToken&&o.cancelToken.unsubscribe(h),o.signal&&o.signal.removeEventListener("abort",h)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function M(){if(!w)return;const L=he.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),V={data:!c||c==="text"||c==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:L,config:t,request:w};cr(function(Ee){n(Ee),v()},function(Ee){r(Ee),v()},V),w=null}"onloadend"in w?w.onloadend=M:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(M)},w.onabort=function(){w&&(r(new D("Request aborted",D.ECONNABORTED,t,w)),w=null)},w.onerror=function(){r(new D("Network Error",D.ERR_NETWORK,t,w)),w=null},w.ontimeout=function(){let F=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const V=o.transitional||or;o.timeoutErrorMessage&&(F=o.timeoutErrorMessage),r(new D(F,V.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,t,w)),w=null},s===void 0&&a.setContentType(null),"setRequestHeader"in w&&C.forEach(a.toJSON(),function(F,V){w.setRequestHeader(V,F)}),C.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),c&&c!=="json"&&(w.responseType=o.responseType),u&&([m,p]=Jt(u,!0),w.addEventListener("progress",m)),l&&w.upload&&([f,g]=Jt(l),w.upload.addEventListener("progress",f),w.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(h=L=>{w&&(r(!L||L.type?new at(null,t,w):L),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(h),o.signal&&(o.signal.aborted?h():o.signal.addEventListener("abort",h)));const O=Ll(o.url);if(O&&ue.protocols.indexOf(O)===-1){r(new D("Unsupported protocol "+O+":",D.ERR_BAD_REQUEST,t));return}w.send(s||null)})},Zl=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,o;const s=function(u){if(!o){o=!0,c();const h=u instanceof Error?u:this.reason;r.abort(h instanceof D?h:new at(h instanceof Error?h.message:h))}};let a=e&&setTimeout(()=>{a=null,s(new D(`timeout ${e} of ms exceeded`,D.ETIMEDOUT))},e);const c=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),t=null)};t.forEach(u=>u.addEventListener("abort",s));const{signal:l}=r;return l.unsubscribe=()=>C.asap(c),l}},Xl=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},Jl=async function*(t,e){for await(const n of Yl(t))yield*Xl(n,e)},Yl=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()}},pr=(t,e,n,r)=>{const o=Jl(t,e);let s=0,a,c=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:h}=await o.next();if(u){c(),l.close();return}let f=h.byteLength;if(n){let m=s+=f;n(m)}l.enqueue(new Uint8Array(h))}catch(u){throw c(u),u}},cancel(l){return c(l),o.return()}},{highWaterMark:2})},Yt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",gr=Yt&&typeof ReadableStream=="function",Ql=Yt&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),yr=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Kl=gr&&yr(()=>{let t=!1;const e=new Request(ue.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),wr=64*1024,On=gr&&yr(()=>C.isReadableStream(new Response("").body)),Qt={stream:On&&(t=>t.body)};Yt&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Qt[e]&&(Qt[e]=C.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new D(`Response type '${e}' is not supported`,D.ERR_NOT_SUPPORT,r)})})})(new Response);const ec=async t=>{if(t==null)return 0;if(C.isBlob(t))return t.size;if(C.isSpecCompliantForm(t))return(await new Request(ue.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(C.isArrayBufferView(t)||C.isArrayBuffer(t))return t.byteLength;if(C.isURLSearchParams(t)&&(t=t+""),C.isString(t))return(await Ql(t)).byteLength},tc=async(t,e)=>{const n=C.toFiniteNumber(t.getContentLength());return n??ec(e)},Ln={http:kl,xhr:Gl,fetch:Yt&&(async t=>{let{url:e,method:n,data:r,signal:o,cancelToken:s,timeout:a,onDownloadProgress:c,onUploadProgress:l,responseType:u,headers:h,withCredentials:f="same-origin",fetchOptions:m}=mr(t);u=u?(u+"").toLowerCase():"text";let g=Zl([o,s&&s.toAbortSignal()],a),p;const v=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let w;try{if(l&&Kl&&n!=="get"&&n!=="head"&&(w=await tc(h,r))!==0){let V=new Request(e,{method:"POST",body:r,duplex:"half"}),be;if(C.isFormData(r)&&(be=V.headers.get("content-type"))&&h.setContentType(be),V.body){const[Ee,Ze]=dr(w,Jt(ur(l)));r=pr(V.body,wr,Ee,Ze)}}C.isString(f)||(f=f?"include":"omit");const M="credentials"in Request.prototype;p=new Request(e,{...m,signal:g,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:r,duplex:"half",credentials:M?f:void 0});let O=await fetch(p);const L=On&&(u==="stream"||u==="response");if(On&&(c||L&&v)){const V={};["status","statusText","headers"].forEach(wt=>{V[wt]=O[wt]});const be=C.toFiniteNumber(O.headers.get("content-length")),[Ee,Ze]=c&&dr(be,Jt(ur(c),!0))||[];O=new Response(pr(O.body,wr,Ee,()=>{Ze&&Ze(),v&&v()}),V)}u=u||"text";let F=await Qt[C.findKey(Qt,u)||"text"](O,t);return!L&&v&&v(),await new Promise((V,be)=>{cr(V,be,{data:F,headers:he.from(O.headers),status:O.status,statusText:O.statusText,config:t,request:p})})}catch(M){throw v&&v(),M&&M.name==="TypeError"&&/fetch/i.test(M.message)?Object.assign(new D("Network Error",D.ERR_NETWORK,t,p),{cause:M.cause||M}):D.from(M,M&&M.code,t,p)}})};C.forEach(Ln,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const br=t=>`- ${t}`,nc=t=>C.isFunction(t)||t===null||t===!1,Cr={getAdapter:t=>{t=C.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let s=0;s<e;s++){n=t[s];let a;if(r=n,!nc(n)&&(r=Ln[(a=String(n)).toLowerCase()],r===void 0))throw new D(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+s]=r}if(!r){const s=Object.entries(o).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=e?s.length>1?`since :
17
17
  `+s.map(br).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.104",
5
+ "version": "0.0.105",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "main": "./dist/sprof.umd.cjs",