sprof 0.0.184 → 0.0.186

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
@@ -1,7 +1,7 @@
1
1
  var _l = Object.defineProperty;
2
2
  var Zl = (t, e, i) => e in t ? _l(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
3
3
  var a = (t, e, i) => Zl(t, typeof e != "symbol" ? e + "" : e, i);
4
- import { reactive as Oe, ref as T, openBlock as g, createElementBlock as w, createElementVNode as f, getCurrentInstance as Xl, inject as Yl, onUnmounted as Tr, onDeactivated as Jl, onActivated as Ql, onBeforeMount as ot, defineComponent as $, computed as he, mergeProps as kt, unref as p, withModifiers as Fe, renderSlot as P, createTextVNode as es, toDisplayString as Me, Fragment as G, normalizeClass as ie, normalizeStyle as I, mergeModels as Ae, useModel as mt, withDirectives as Xe, vModelCheckbox as Kl, createVNode as R, createCommentVNode as J, vModelDynamic as eu, resolveComponent as L, isRef as Ve, withKeys as tu, vModelText as zr, watch as Ye, createBlock as N, vModelRadio as iu, vShow as ts, vModelSelect as nu, useCssVars as Or, onMounted as Zt, renderList as Ee, withCtx as X, resolveDirective as Fr, nextTick as su, Transition as Dr, onBeforeUnmount as is, createStaticVNode as Lr, onUpdated as ru, useTemplateRef as ou, resolveDynamicComponent as ai } from "vue";
4
+ import { reactive as Oe, ref as T, openBlock as g, createElementBlock as w, createElementVNode as f, getCurrentInstance as Xl, inject as Yl, onUnmounted as Tr, onDeactivated as Jl, onActivated as Ql, onBeforeMount as ot, defineComponent as $, computed as he, mergeProps as kt, unref as p, withModifiers as Fe, renderSlot as P, createTextVNode as es, toDisplayString as xe, Fragment as G, normalizeClass as ie, normalizeStyle as I, mergeModels as Ae, useModel as mt, withDirectives as Xe, vModelCheckbox as Kl, createVNode as R, createCommentVNode as J, vModelDynamic as eu, resolveComponent as L, isRef as Ve, withKeys as tu, vModelText as zr, watch as Ye, createBlock as N, vModelRadio as iu, vShow as ts, vModelSelect as nu, useCssVars as Or, onMounted as Zt, renderList as Ee, withCtx as X, resolveDirective as Fr, nextTick as su, Transition as Dr, onBeforeUnmount as is, createStaticVNode as Lr, onUpdated as ru, useTemplateRef as ou, resolveDynamicComponent as ai } from "vue";
5
5
  var Re = /* @__PURE__ */ ((t) => (t.Login = "login", t.Register = "register", t.Restore = "restore", t.Refresh = "refresh", t))(Re || {}), Pe = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Success = "success", t.Warning = "warning", t.Error = "error", t.Info = "info", t))(Pe || {});
6
6
  class Rt {
7
7
  constructor(e, i, n, s) {
@@ -758,7 +758,7 @@ var Ks;
758
758
  }
759
759
  function Tl(v, b, k, E) {
760
760
  for (var W = v.length - 1; W >= 0; --W) {
761
- var ye = v[W], ge = ye(b, k, E);
761
+ var ve = v[W], ge = ve(b, k, E);
762
762
  if (!V(ge) && !Bt(ge)) {
763
763
  if (!me(ge))
764
764
  throw new TypeError();
@@ -819,13 +819,13 @@ var Ks;
819
819
  return k;
820
820
  if (k.length <= 0)
821
821
  return W;
822
- for (var ye = new y(), ge = [], Q = 0, z = k; Q < z.length; Q++) {
823
- var D = z[Q], H = ye.has(D);
824
- H || (ye.add(D), ge.push(D));
822
+ for (var ve = new y(), ge = [], Q = 0, z = k; Q < z.length; Q++) {
823
+ var D = z[Q], H = ve.has(D);
824
+ H || (ve.add(D), ge.push(D));
825
825
  }
826
826
  for (var q = 0, te = W; q < te.length; q++) {
827
- var D = te[q], H = ye.has(D);
828
- H || (ye.add(D), ge.push(D));
827
+ var D = te[q], H = ve.has(D);
828
+ H || (ve.add(D), ge.push(D));
829
829
  }
830
830
  return ge;
831
831
  }
@@ -985,14 +985,14 @@ var Ks;
985
985
  function Bl() {
986
986
  var v;
987
987
  !V(M) && typeof i.Reflect < "u" && !(M in i.Reflect) && typeof i.Reflect.defineMetadata == "function" && (v = Nl(i.Reflect));
988
- var b, k, E, W = new x(), ye = {
988
+ var b, k, E, W = new x(), ve = {
989
989
  registerProvider: ge,
990
990
  getProvider: z,
991
991
  setProvider: H
992
992
  };
993
- return ye;
993
+ return ve;
994
994
  function ge(q) {
995
- if (!Object.isExtensible(ye))
995
+ if (!Object.isExtensible(ve))
996
996
  throw new Error("Cannot add provider to a frozen registry.");
997
997
  switch (!0) {
998
998
  case v === q:
@@ -1072,7 +1072,7 @@ var Ks;
1072
1072
  },
1073
1073
  OrdinaryDefineOwnMetadata: ge,
1074
1074
  OrdinaryHasOwnMetadata: W,
1075
- OrdinaryGetOwnMetadata: ye,
1075
+ OrdinaryGetOwnMetadata: ve,
1076
1076
  OrdinaryOwnMetadataKeys: Q,
1077
1077
  OrdinaryDeleteMetadata: z
1078
1078
  };
@@ -1102,7 +1102,7 @@ var Ks;
1102
1102
  );
1103
1103
  return V(te) ? !1 : Ns(te.has(D));
1104
1104
  }
1105
- function ye(D, H, q) {
1105
+ function ve(D, H, q) {
1106
1106
  var te = E(
1107
1107
  H,
1108
1108
  q,
@@ -1164,7 +1164,7 @@ var Ks;
1164
1164
  }
1165
1165
  }
1166
1166
  function Nl(v) {
1167
- var b = v.defineMetadata, k = v.hasOwnMetadata, E = v.getOwnMetadata, W = v.getOwnMetadataKeys, ye = v.deleteMetadata, ge = new x(), Q = {
1167
+ var b = v.defineMetadata, k = v.hasOwnMetadata, E = v.getOwnMetadata, W = v.getOwnMetadataKeys, ve = v.deleteMetadata, ge = new x(), Q = {
1168
1168
  isProviderFor: function(z, D) {
1169
1169
  var H = ge.get(z);
1170
1170
  return !V(H) && H.has(D) ? !0 : W(z, D).length ? (V(H) && (H = new y(), ge.set(z, H)), H.add(D), !0) : !1;
@@ -1173,7 +1173,7 @@ var Ks;
1173
1173
  OrdinaryHasOwnMetadata: k,
1174
1174
  OrdinaryGetOwnMetadata: E,
1175
1175
  OrdinaryOwnMetadataKeys: W,
1176
- OrdinaryDeleteMetadata: ye
1176
+ OrdinaryDeleteMetadata: ve
1177
1177
  };
1178
1178
  return Q;
1179
1179
  }
@@ -1260,7 +1260,7 @@ var Ks;
1260
1260
  }, Q.prototype.keys = function() {
1261
1261
  return new k(this._keys, this._values, W);
1262
1262
  }, Q.prototype.values = function() {
1263
- return new k(this._keys, this._values, ye);
1263
+ return new k(this._keys, this._values, ve);
1264
1264
  }, Q.prototype.entries = function() {
1265
1265
  return new k(this._keys, this._values, ge);
1266
1266
  }, Q.prototype["@@iterator"] = function() {
@@ -1284,7 +1284,7 @@ var Ks;
1284
1284
  function W(Q, z) {
1285
1285
  return Q;
1286
1286
  }
1287
- function ye(Q, z) {
1287
+ function ve(Q, z) {
1288
1288
  return z;
1289
1289
  }
1290
1290
  function ge(Q, z) {
@@ -1383,7 +1383,7 @@ var Ks;
1383
1383
  }
1384
1384
  return z[k];
1385
1385
  }
1386
- function ye(z, D) {
1386
+ function ve(z, D) {
1387
1387
  for (var H = 0; H < D; ++H)
1388
1388
  z[H] = Math.random() * 255 | 0;
1389
1389
  return z;
@@ -1391,9 +1391,9 @@ var Ks;
1391
1391
  function ge(z) {
1392
1392
  if (typeof Uint8Array == "function") {
1393
1393
  var D = new Uint8Array(z);
1394
- return typeof crypto < "u" ? crypto.getRandomValues(D) : typeof msCrypto < "u" ? msCrypto.getRandomValues(D) : ye(D, z), D;
1394
+ return typeof crypto < "u" ? crypto.getRandomValues(D) : typeof msCrypto < "u" ? msCrypto.getRandomValues(D) : ve(D, z), D;
1395
1395
  }
1396
- return ye(new Array(z), z);
1396
+ return ve(new Array(z), z);
1397
1397
  }
1398
1398
  function Q() {
1399
1399
  var z = ge(v);
@@ -1417,11 +1417,11 @@ function xu() {
1417
1417
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1418
1418
  return xi(Cu);
1419
1419
  }
1420
- const Se = [];
1420
+ const be = [];
1421
1421
  for (let t = 0; t < 256; ++t)
1422
- Se.push((t + 256).toString(16).slice(1));
1422
+ be.push((t + 256).toString(16).slice(1));
1423
1423
  function Mu(t, e = 0) {
1424
- return Se[t[e + 0]] + Se[t[e + 1]] + Se[t[e + 2]] + Se[t[e + 3]] + "-" + Se[t[e + 4]] + Se[t[e + 5]] + "-" + Se[t[e + 6]] + Se[t[e + 7]] + "-" + Se[t[e + 8]] + Se[t[e + 9]] + "-" + Se[t[e + 10]] + Se[t[e + 11]] + Se[t[e + 12]] + Se[t[e + 13]] + Se[t[e + 14]] + Se[t[e + 15]];
1424
+ return be[t[e + 0]] + be[t[e + 1]] + be[t[e + 2]] + be[t[e + 3]] + "-" + be[t[e + 4]] + be[t[e + 5]] + "-" + be[t[e + 6]] + be[t[e + 7]] + "-" + be[t[e + 8]] + be[t[e + 9]] + "-" + be[t[e + 10]] + be[t[e + 11]] + be[t[e + 12]] + be[t[e + 13]] + be[t[e + 14]] + be[t[e + 15]];
1425
1425
  }
1426
1426
  const ku = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), er = {
1427
1427
  randomUUID: ku
@@ -1433,7 +1433,7 @@ function xt(t, e, i) {
1433
1433
  const n = t.random || (t.rng || xu)();
1434
1434
  return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Mu(n);
1435
1435
  }
1436
- class ve {
1436
+ class Me {
1437
1437
  static UUID() {
1438
1438
  return xt();
1439
1439
  }
@@ -1592,7 +1592,7 @@ const yt = class yt {
1592
1592
  }
1593
1593
  static InitClassInstance(e, i) {
1594
1594
  const n = e.constructor(i);
1595
- return yt.BuildClass(n), n.id = ve.UUID(), n;
1595
+ return yt.BuildClass(n), n.id = Me.UUID(), n;
1596
1596
  }
1597
1597
  static ExistsWithId(e, i) {
1598
1598
  return e.some((n) => n.id === i);
@@ -1619,7 +1619,7 @@ class Pt {
1619
1619
  }
1620
1620
  static Create() {
1621
1621
  const e = new Pt();
1622
- return e.id = ve.UUID(), e;
1622
+ return e.id = Me.UUID(), e;
1623
1623
  }
1624
1624
  }
1625
1625
  class ns {
@@ -1656,16 +1656,10 @@ class Te {
1656
1656
  }
1657
1657
  static CreatePreviewFile(e, i) {
1658
1658
  const n = new Te();
1659
- return n.id = i ?? ve.UUID(), n.originalName = e.name, n.file = e.blob, n.fileSystemPath = ve.UUID(), n;
1660
- }
1661
- uploadNewFile(e) {
1662
- this.id || (this.id = ve.UUID()), this.originalName = e.name, this.file = e.blob, this.fileSystemPath = ve.UUID();
1659
+ return n.id = i ?? Me.UUID(), n.originalName = e.name, n.file = e.blob, n.fileSystemPath = Me.UUID(), n;
1663
1660
  }
1664
1661
  setFile(e) {
1665
- this.file = e.raw, this.url = e.src;
1666
- }
1667
- uploadAndSetFile(e) {
1668
- this.uploadNewFile(e), this.setFile(e), this.url = e.url;
1662
+ this.id || (this.id = O.H.Id.UUID()), this.originalName = e.name, this.file = e.blob, this.fileSystemPath = O.H.Id.UUID(), this.url = e.src;
1669
1663
  }
1670
1664
  clearFile() {
1671
1665
  this.url = "", this.file = void 0, this.fileSystemPath = "", this.originalName = "";
@@ -1737,7 +1731,7 @@ class Et {
1737
1731
  }
1738
1732
  static Create() {
1739
1733
  const e = new Et();
1740
- return e.id = ve.UUID(), e;
1734
+ return e.id = Me.UUID(), e;
1741
1735
  }
1742
1736
  }
1743
1737
  class Di {
@@ -1804,7 +1798,7 @@ class ft {
1804
1798
  e[i].order = i + 1, e[i + 1] && (e[i + 1].order = i), [e[i], e[i + 1]] = [e[i + 1], e[i]];
1805
1799
  }
1806
1800
  }
1807
- var we = /* @__PURE__ */ ((t) => (t.Date = "date", t.String = "string", t.Boolean = "boolean", t.Number = "number", t.Set = "set", t.Join = "join", t))(we || {}), ke = /* @__PURE__ */ ((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))(ke || {}), Ru = Object.defineProperty, $u = (t, e, i, n) => {
1801
+ var ye = /* @__PURE__ */ ((t) => (t.Date = "date", t.String = "string", t.Boolean = "boolean", t.Number = "number", t.Set = "set", t.Join = "join", t))(ye || {}), ke = /* @__PURE__ */ ((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))(ke || {}), Ru = Object.defineProperty, $u = (t, e, i, n) => {
1808
1802
  for (var s = void 0, r = t.length - 1, o; r >= 0; r--)
1809
1803
  (o = t[r]) && (s = o(e, i, s) || s);
1810
1804
  return s && Ru(e, i, s), s;
@@ -1821,7 +1815,7 @@ const Gr = class ii {
1821
1815
  a(this, "value1", "");
1822
1816
  a(this, "boolean", !1);
1823
1817
  a(this, "number", 0);
1824
- a(this, "type", we.String);
1818
+ a(this, "type", ye.String);
1825
1819
  a(this, "set", []);
1826
1820
  a(this, "isSet", !1);
1827
1821
  a(this, "joinTable", "");
@@ -1835,17 +1829,17 @@ const Gr = class ii {
1835
1829
  eq(e) {
1836
1830
  if (!e)
1837
1831
  return !1;
1838
- if (this.type === we.Join) {
1832
+ if (this.type === ye.Join) {
1839
1833
  const i = e.model === this.model && e.operator === this.operator && this.joinTableModel === e.joinTableModel;
1840
1834
  return e.operator === ke.In ? i && ft.Eq(this.set, e.set) : i;
1841
1835
  }
1842
1836
  return e.model === this.model && e.col === this.col && e.operator === this.operator;
1843
1837
  }
1844
1838
  valueEq(e) {
1845
- return !this || !e || !this.eq(e) ? !1 : this.type === we.Boolean ? this.boolean === (e == null ? void 0 : e.boolean) : this.type === we.String ? this.value1 === (e == null ? void 0 : e.value1) : this.type === we.Join && this.set.length ? ft.Eq(this.set, e.set) : !1;
1839
+ return !this || !e || !this.eq(e) ? !1 : this.type === ye.Boolean ? this.boolean === (e == null ? void 0 : e.boolean) : this.type === ye.String ? this.value1 === (e == null ? void 0 : e.value1) : this.type === ye.Join && this.set.length ? ft.Eq(this.set, e.set) : !1;
1846
1840
  }
1847
1841
  toUrlQuery() {
1848
- const e = this.type ? `"type":"${this.type}"` : "", i = this.model ? `"model":"${this.model}"` : "", n = this.col ? `"col":"${this.col}"` : "", s = this.operator ? `"operator":"${this.operator}"` : "", r = this.value1 ? `"value1":"${this.value1}"` : "", o = this.type === we.Boolean ? `"boolean":${this.boolean}` : "", u = this.type === we.Date && this.date1 ? `"date1":"${this.date1.toISOString()}"` : "", l = this.type === we.Date && this.date2 ? `"date2":"${this.date2.toISOString()}"` : "", c = this.type === we.Number ? `"number":${this.number}` : "", d = this.type === we.Set || this.operator === ke.In ? `"set":${JSON.stringify(this.set)}` : "", h = this.type === we.Join ? `"joinTableModel":"${this.joinTableModel}"` : "";
1842
+ const e = this.type ? `"type":"${this.type}"` : "", i = this.model ? `"model":"${this.model}"` : "", n = this.col ? `"col":"${this.col}"` : "", s = this.operator ? `"operator":"${this.operator}"` : "", r = this.value1 ? `"value1":"${this.value1}"` : "", o = this.type === ye.Boolean ? `"boolean":${this.boolean}` : "", u = this.type === ye.Date && this.date1 ? `"date1":"${this.date1.toISOString()}"` : "", l = this.type === ye.Date && this.date2 ? `"date2":"${this.date2.toISOString()}"` : "", c = this.type === ye.Number ? `"number":${this.number}` : "", d = this.type === ye.Set || this.operator === ke.In ? `"set":${JSON.stringify(this.set)}` : "", h = this.type === ye.Join ? `"joinTableModel":"${this.joinTableModel}"` : "";
1849
1843
  return [e, i, n, s, r, o, u, l, c, d, h].filter((m) => m !== "").toString();
1850
1844
  }
1851
1845
  fromUrlQuery(e) {
@@ -1862,7 +1856,7 @@ const Gr = class ii {
1862
1856
  }
1863
1857
  static Create(e, i, n) {
1864
1858
  const s = new ii();
1865
- return s.model = e.GetClassName(), s.col = i ?? "", s.type = n, s.type === we.Number && (s.value1 = "0"), s.type === we.String && (s.value1 = ""), s.type === we.Boolean && (s.value1 = "false", s.operator = ke.Eq), s;
1859
+ return s.model = e.GetClassName(), s.col = i ?? "", s.type = n, s.type === ye.Number && (s.value1 = "0"), s.type === ye.String && (s.value1 = ""), s.type === ye.Boolean && (s.value1 = "false", s.operator = ke.Eq), s;
1866
1860
  }
1867
1861
  static CreateFilterModelWithJoin(e, i, n, s, r, o, u, l) {
1868
1862
  const c = new ii();
@@ -1870,11 +1864,11 @@ const Gr = class ii {
1870
1864
  }
1871
1865
  static CreateFilterModelWithJoinV2(e, i, n, s, r, o, u) {
1872
1866
  const l = new ii();
1873
- return l.model = e, l.joinTableModel = n, l.joinTablePk = s, l.joinTableFk = r, l.col = i, l.type = we.Join, o && (l.joinTableId = o), u && (l.joinTableIdCol = u), l;
1867
+ return l.model = e, l.joinTableModel = n, l.joinTablePk = s, l.joinTableFk = r, l.col = i, l.type = ye.Join, o && (l.joinTableId = o), u && (l.joinTableIdCol = u), l;
1874
1868
  }
1875
1869
  static OnlyIfSecondModelExists(e, i) {
1876
1870
  const n = new ii();
1877
- return n.id = xt(), n.model = ne.ToCamelCase(e.GetClassName()), n.joinTableModel = ne.ToCamelCase(i.GetClassName()), n.type = we.Join, n;
1871
+ return n.id = xt(), n.model = ne.ToCamelCase(e.GetClassName()), n.joinTableModel = ne.ToCamelCase(i.GetClassName()), n.type = ye.Join, n;
1878
1872
  }
1879
1873
  addToSet(...e) {
1880
1874
  e.forEach((i) => {
@@ -4801,7 +4795,7 @@ var K;
4801
4795
  let Nd = (K = class {
4802
4796
  }, a(K, "Arrays", ft), a(K, "Axios", si), a(K, "BaseStore", ue), // static Phone = Phone;
4803
4797
  a(K, "Cache", Ki), a(K, "Classes", B), a(K, "CarouselSwipe", dd), a(K, "Color", fd), a(K, "CreateSortModels", yo), a(K, "Cursor", md), a(K, "DateMask", bd), a(K, "Dates", ct), a(K, "Dragger", xd), a(K, "Extension", wo), a(K, "Favourite", Md), // static FTSP = FTSP;
4804
- a(K, "Hooks", Pd), a(K, "HttpClient", de), a(K, "Id", ve), a(K, "MakeCarousel", bo), a(K, "Period", Dn), a(K, "PhoneService", Vn), a(K, "Rating", Ed), a(K, "Router", Mt), a(K, "RouterGuard", Td), a(K, "Scheduler", zd), a(K, "Scroll", Fd), // static Sizes = Sizes;
4798
+ a(K, "Hooks", Pd), a(K, "HttpClient", de), a(K, "Id", Me), a(K, "MakeCarousel", bo), a(K, "Period", Dn), a(K, "PhoneService", Vn), a(K, "Rating", Ed), a(K, "Router", Mt), a(K, "RouterGuard", Td), a(K, "Scheduler", zd), a(K, "Scroll", Fd), // static Sizes = Sizes;
4805
4799
  a(K, "Sorter", Dd), a(K, "Static", ns), // static Statuses = Statuses;
4806
4800
  a(K, "Strings", ne), a(K, "Time", ee), a(K, "Timer", ui), a(K, "Token", hi), a(K, "Menus", hs), // static useConfirmLeavePage = useConfirmLeavePage();
4807
4801
  a(K, "validate", Ld), a(K, "WaitElement", Bd), a(K, "WebSocketClient", qd), K);
@@ -4898,7 +4892,7 @@ const yi = class So {
4898
4892
  }
4899
4893
  static Create() {
4900
4894
  const e = new So();
4901
- return e.id = ve.UUID(), e;
4895
+ return e.id = Me.UUID(), e;
4902
4896
  }
4903
4897
  removeEmail(e) {
4904
4898
  B.RemoveFromClassById(e, this.emails);
@@ -4970,7 +4964,7 @@ class fs {
4970
4964
  }
4971
4965
  static Create(e) {
4972
4966
  const i = new fs();
4973
- return i.id = ve.UUID(), i.ftsp = JSON.stringify(e), i;
4967
+ return i.id = Me.UUID(), i.ftsp = JSON.stringify(e), i;
4974
4968
  }
4975
4969
  }
4976
4970
  let Kd = class extends ue {
@@ -5156,7 +5150,7 @@ class ms {
5156
5150
  }
5157
5151
  static Create() {
5158
5152
  const e = new ms();
5159
- return e.id = ve.UUID(), e;
5153
+ return e.id = Me.UUID(), e;
5160
5154
  }
5161
5155
  }
5162
5156
  let fh = class extends ue {
@@ -5225,7 +5219,7 @@ let vh = (Be = class {
5225
5219
  }, a(Be, "Auth", Gd), a(Be, "Contacts", Zd), a(Be, "Emails", Yd), a(Be, "FileInfos", Qd), a(Be, "FTSPPresets", eh), a(Be, "Humans", ih), a(Be, "Phones", sh), a(Be, "Schemas", uh), a(Be, "UserAccounts", mh), a(Be, "ValueTypes", ph), a(Be, "Search", Io), Be);
5226
5220
  var gs = /* @__PURE__ */ ((t) => (t.XS = "xs", t.S = "s", t.M = "m", t.L = "l", t.XL = "xl", t))(gs || {}), vt;
5227
5221
  let yh = (vt = class {
5228
- }, a(vt, "Orders", je), a(vt, "Sizes", gs), a(vt, "Statuses", Pe), a(vt, "DataTypes", we), a(vt, "ValueTypes", Ie), a(vt, "Operators", ke), vt);
5222
+ }, a(vt, "Orders", je), a(vt, "Sizes", gs), a(vt, "Statuses", Pe), a(vt, "DataTypes", ye), a(vt, "ValueTypes", Ie), a(vt, "Operators", ke), vt);
5229
5223
  class wh {
5230
5224
  constructor() {
5231
5225
  a(this, "title", "");
@@ -6027,7 +6021,7 @@ class sn {
6027
6021
  B.BuildClass(this, e);
6028
6022
  }
6029
6023
  addFile(e) {
6030
- this.icon.id || (this.icon.id = ve.UUID()), this.icon.originalName = e.name, this.icon.file = e.raw;
6024
+ this.icon.id || (this.icon.id = Me.UUID()), this.icon.originalName = e.name, this.icon.file = e.raw;
6031
6025
  }
6032
6026
  }
6033
6027
  var mf = Object.defineProperty, gf = (t, e, i, n) => {
@@ -6064,7 +6058,7 @@ class bs {
6064
6058
  }), e;
6065
6059
  }
6066
6060
  addFile(e) {
6067
- this.icon.id || (this.icon.id = ve.UUID()), this.icon.originalName = e.name, this.icon.file = e.raw;
6061
+ this.icon.id || (this.icon.id = Me.UUID()), this.icon.originalName = e.name, this.icon.file = e.raw;
6068
6062
  }
6069
6063
  addSubMenu() {
6070
6064
  this.subMenus.push(new sn());
@@ -6272,7 +6266,7 @@ class bt {
6272
6266
  }
6273
6267
  addPageSection() {
6274
6268
  const e = new Jt();
6275
- e.order = this.pageSections.length + 1, e.name = `Новой раздел ${e.order}`, e.id = ve.UUID(), this.pageSections.push(e);
6269
+ e.order = this.pageSections.length + 1, e.name = `Новой раздел ${e.order}`, e.id = Me.UUID(), this.pageSections.push(e);
6276
6270
  }
6277
6271
  infoExists(e) {
6278
6272
  const i = ne.SearchIn(this.name, e), n = ne.SearchIn(this.description, e), s = this.getPageSections(e).length > 0;
@@ -6345,7 +6339,7 @@ class Qt {
6345
6339
  }
6346
6340
  addSideMenu() {
6347
6341
  const e = new bt();
6348
- return e.order = this.pageSideMenus.length + 1, e.name = `Новое меню ${e.order}`, e.id = ve.UUID(), this.pageSideMenus.push(e), e.id;
6342
+ return e.order = this.pageSideMenus.length + 1, e.name = `Новое меню ${e.order}`, e.id = Me.UUID(), this.pageSideMenus.push(e), e.id;
6349
6343
  }
6350
6344
  selectSideMenu(e, i) {
6351
6345
  if (!e && this.pageSideMenus.length > 0) {
@@ -6539,7 +6533,7 @@ const Kf = "p-button", em = /* @__PURE__ */ $({
6539
6533
  onClick: Fe(s, ["prevent"])
6540
6534
  }), [
6541
6535
  P(c.$slots, "default", {}, void 0, !0),
6542
- es(" " + Me(t.text), 1)
6536
+ es(" " + xe(t.text), 1)
6543
6537
  ], 16));
6544
6538
  }
6545
6539
  }), cn = /* @__PURE__ */ A(em, [["__scopeId", "data-v-9f699dcb"]]), tm = /* @__PURE__ */ $({
@@ -6633,7 +6627,7 @@ const Kf = "p-button", em = /* @__PURE__ */ $({
6633
6627
  }, null, 8, ["size"])
6634
6628
  ], 4)) : J("", !0)
6635
6629
  ], 4),
6636
- es(" " + Me(t.label), 1)
6630
+ es(" " + xe(t.label), 1)
6637
6631
  ], 4)
6638
6632
  ], 4));
6639
6633
  }
@@ -6663,7 +6657,7 @@ const Kf = "p-button", em = /* @__PURE__ */ $({
6663
6657
  key: 0,
6664
6658
  class: "text-field__label",
6665
6659
  for: t.label
6666
- }, Me(t.label), 9, sm)) : J("", !0),
6660
+ }, xe(t.label), 9, sm)) : J("", !0),
6667
6661
  f("div", rm, [
6668
6662
  f("div", om, [
6669
6663
  P(o.$slots, "default", {}, void 0, !0)
@@ -6933,7 +6927,7 @@ const An = /* @__PURE__ */ new WeakMap(), wm = (t, e) => {
6933
6927
  key: 0,
6934
6928
  class: "text-field__label",
6935
6929
  for: t.label
6936
- }, Me(t.label), 9, bm)) : J("", !0),
6930
+ }, xe(t.label), 9, bm)) : J("", !0),
6937
6931
  f("div", {
6938
6932
  class: "field",
6939
6933
  style: I({
@@ -7044,7 +7038,7 @@ const An = /* @__PURE__ */ new WeakMap(), wm = (t, e) => {
7044
7038
  key: 0,
7045
7039
  class: "text-field__label",
7046
7040
  for: t.label
7047
- }, Me(t.label), 9, km)) : J("", !0),
7041
+ }, xe(t.label), 9, km)) : J("", !0),
7048
7042
  f("div", Im, [
7049
7043
  f("button", {
7050
7044
  class: "number-minus",
@@ -7243,7 +7237,7 @@ const An = /* @__PURE__ */ new WeakMap(), wm = (t, e) => {
7243
7237
  }),
7244
7238
  emits: /* @__PURE__ */ Ae(["change"], ["update:modelValue"]),
7245
7239
  setup(t, { emit: e }) {
7246
- const i = mt(t, "modelValue"), n = e, s = t, r = ve.GUID(), o = he(() => i.value === s.value), u = () => {
7240
+ const i = mt(t, "modelValue"), n = e, s = t, r = Me.GUID(), o = he(() => i.value === s.value), u = () => {
7247
7241
  n("change", s.value);
7248
7242
  };
7249
7243
  return (l, c) => (g(), w("div", {
@@ -7277,7 +7271,7 @@ const An = /* @__PURE__ */ new WeakMap(), wm = (t, e) => {
7277
7271
  style: I({ width: `calc(${t.size} - 50%)`, height: `calc(${t.size} - 50%)` })
7278
7272
  }, null, 4)) : J("", !0)
7279
7273
  ], 4),
7280
- f("span", { onClick: u }, Me(t.label), 1)
7274
+ f("span", { onClick: u }, xe(t.label), 1)
7281
7275
  ], 12, Tm)
7282
7276
  ], 4));
7283
7277
  }
@@ -7453,7 +7447,7 @@ const An = /* @__PURE__ */ new WeakMap(), wm = (t, e) => {
7453
7447
  key: 0,
7454
7448
  class: "text-field__label",
7455
7449
  for: t.label
7456
- }, Me(t.label), 9, Hm)) : J("", !0),
7450
+ }, xe(t.label), 9, Hm)) : J("", !0),
7457
7451
  f("div", qm, [
7458
7452
  f("div", Nm, [
7459
7453
  P(l.$slots, "left", {}, void 0, !0)
@@ -7480,7 +7474,7 @@ const An = /* @__PURE__ */ new WeakMap(), wm = (t, e) => {
7480
7474
  class: "text-field__input",
7481
7475
  onChange: o
7482
7476
  }), [
7483
- f("option", jm, Me(t.placeholder), 1),
7477
+ f("option", jm, xe(t.placeholder), 1),
7484
7478
  P(l.$slots, "default", {}, void 0, !0)
7485
7479
  ], 16), [
7486
7480
  [nu, i.value]
@@ -7554,7 +7548,7 @@ const An = /* @__PURE__ */ new WeakMap(), wm = (t, e) => {
7554
7548
  t.isHtml ? (g(), w("span", {
7555
7549
  key: 0,
7556
7550
  innerHTML: t.string
7557
- }, null, 8, _m)) : (g(), w("span", Zm, Me(t.string), 1))
7551
+ }, null, 8, _m)) : (g(), w("span", Zm, xe(t.string), 1))
7558
7552
  ], 2));
7559
7553
  }
7560
7554
  }), ks = /* @__PURE__ */ A(Xm, [["__scopeId", "data-v-98febd87"]]), ta = /* @__PURE__ */ $({
@@ -7605,7 +7599,7 @@ const An = /* @__PURE__ */ new WeakMap(), wm = (t, e) => {
7605
7599
  key: 0,
7606
7600
  class: "text-field__label",
7607
7601
  for: t.label
7608
- }, Me(t.label), 9, Ym)) : J("", !0),
7602
+ }, xe(t.label), 9, Ym)) : J("", !0),
7609
7603
  f("div", {
7610
7604
  class: "field",
7611
7605
  style: I({
@@ -8052,7 +8046,7 @@ const hg = { class: "container" }, fg = { class: "slide-box" }, mg = { class: "l
8052
8046
  class: "number",
8053
8047
  style: I({ background: S.toString() === p(n).toString() ? "#9D9D9D" : "" }),
8054
8048
  onClick: Fe((F) => d(S), ["stop"])
8055
- }, Me(S + 1), 13, gg))), 128))
8049
+ }, xe(S + 1), 13, gg))), 128))
8056
8050
  ]),
8057
8051
  _: 1
8058
8052
  })
@@ -8696,7 +8690,7 @@ const ca = /* @__PURE__ */ A(wg, [["render", Sg], ["__scopeId", "data-v-d28c6f33
8696
8690
  },
8697
8691
  setup(t) {
8698
8692
  return (e, i) => (g(), w("div", null, [
8699
- f("div", Bg, Me(t.title), 1),
8693
+ f("div", Bg, xe(t.title), 1),
8700
8694
  f("div", {
8701
8695
  class: "message-text",
8702
8696
  innerHTML: t.text
@@ -8755,7 +8749,7 @@ const ca = /* @__PURE__ */ A(wg, [["render", Sg], ["__scopeId", "data-v-d28c6f33
8755
8749
  (g(!0), w(G, null, Ee(p(r), (y) => (g(), w("li", {
8756
8750
  key: y.value,
8757
8751
  onClick: (x) => l(y)
8758
- }, Me(y.label), 9, Wg))), 128))
8752
+ }, xe(y.label), 9, Wg))), 128))
8759
8753
  ])
8760
8754
  ])) : J("", !0)
8761
8755
  ]);
@@ -10323,7 +10317,7 @@ function J1(t, e, i, n, s, r) {
10323
10317
  marginRight: t.isCollaps ? "50px" : "0",
10324
10318
  width: t.isCollaps ? "calc(100% - 50px)" : "100%"
10325
10319
  })
10326
- }, Me(t.title), 5)) : (g(), w("div", {
10320
+ }, xe(t.title), 5)) : (g(), w("div", {
10327
10321
  key: 1,
10328
10322
  class: "title-in",
10329
10323
  style: I({
@@ -10986,7 +10980,7 @@ const mv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10986
10980
  maxHeight: t.tabHeight
10987
10981
  }),
10988
10982
  onClick: (x) => c(y)
10989
- }, Me(m.name), 15, gp)
10983
+ }, xe(m.name), 15, gp)
10990
10984
  ]))), 128))
10991
10985
  ], 4),
10992
10986
  f("div", {
@@ -11028,7 +11022,7 @@ const mv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11028
11022
  },
11029
11023
  emits: ["upload", "remove"],
11030
11024
  setup(t, { emit: e }) {
11031
- const i = t, n = e, s = ve.GUID(), r = ve.GUID(), o = () => {
11025
+ const i = t, n = e, s = Me.GUID(), r = Me.GUID(), o = () => {
11032
11026
  const c = document.getElementById(s);
11033
11027
  if (!c.files)
11034
11028
  return;
@@ -11038,7 +11032,7 @@ const mv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11038
11032
  ze.Error("Загруженный файл должен быть в формате pdf, jpg или jpeg");
11039
11033
  return;
11040
11034
  }
11041
- i.fileInfo.uploadAndSetFile(d), n("upload", i.fileInfo);
11035
+ i.fileInfo.setFile(d), n("upload", i.fileInfo);
11042
11036
  }
11043
11037
  }, u = () => {
11044
11038
  i.fileInfo.clearFile(), n("remove", i.fileInfo);
@@ -11071,7 +11065,7 @@ const mv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11071
11065
  key: 0,
11072
11066
  class: "text-field__label",
11073
11067
  for: t.label
11074
- }, Me(t.label), 9, yp)) : J("", !0),
11068
+ }, xe(t.label), 9, yp)) : J("", !0),
11075
11069
  f("div", {
11076
11070
  class: "field",
11077
11071
  style: I({
@@ -11104,7 +11098,7 @@ const mv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11104
11098
  target: "_blank",
11105
11099
  download: t.fileInfo.originalName
11106
11100
  }, [
11107
- f("div", null, Me(t.fileInfo.originalName), 1)
11101
+ f("div", null, xe(t.fileInfo.originalName), 1)
11108
11102
  ], 8, bp),
11109
11103
  R(y, {
11110
11104
  skin: "text",
@@ -11142,7 +11136,7 @@ const mv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11142
11136
  ], 64);
11143
11137
  };
11144
11138
  }
11145
- }), cl = /* @__PURE__ */ A(xp, [["__scopeId", "data-v-9918f6e1"]]);
11139
+ }), cl = /* @__PURE__ */ A(xp, [["__scopeId", "data-v-da26d0d4"]]);
11146
11140
  function Cr(t, e) {
11147
11141
  var i = Object.keys(t);
11148
11142
  if (Object.getOwnPropertySymbols) {
@@ -11300,7 +11294,7 @@ function Mr(t) {
11300
11294
  function Ht(t) {
11301
11295
  return !!(t && t.constructor && t.call && t.apply);
11302
11296
  }
11303
- function be(t) {
11297
+ function we(t) {
11304
11298
  return t === void 0;
11305
11299
  }
11306
11300
  function Oi(t) {
@@ -11309,7 +11303,7 @@ function Oi(t) {
11309
11303
  function Yn(t, e, i) {
11310
11304
  var n = {};
11311
11305
  return Oi(t) ? (Object.keys(e).forEach(function(s) {
11312
- be(t[s]) ? n[s] = e[s] : Oi(e[s]) ? Oi(t[s]) ? n[s] = Yn(t[s], e[s], i[s]) : n[s] = t[s] ? e[s] : i[s] : e[s] === !0 || e[s] === !1 ? n[s] = !!t[s] : n[s] = t[s];
11306
+ we(t[s]) ? n[s] = e[s] : Oi(e[s]) ? Oi(t[s]) ? n[s] = Yn(t[s], e[s], i[s]) : n[s] = t[s] ? e[s] : i[s] : e[s] === !0 || e[s] === !1 ? n[s] = !!t[s] : n[s] = t[s];
11313
11307
  }), n) : t ? e : i;
11314
11308
  }
11315
11309
  function Ii(t) {
@@ -11451,7 +11445,7 @@ function rt(t) {
11451
11445
  function Gt(t, e) {
11452
11446
  return { left: t.left - e.left, top: t.top - e.top };
11453
11447
  }
11454
- function Ce(t) {
11448
+ function Se(t) {
11455
11449
  return { left: t.left + t.width / 2, top: t.top + t.height / 2 };
11456
11450
  }
11457
11451
  function fi(t, e) {
@@ -11473,7 +11467,7 @@ function Le(t, e) {
11473
11467
  function Ge(t, e, i, n) {
11474
11468
  if (e !== 1) {
11475
11469
  if (i) {
11476
- var s = Ce(t);
11470
+ var s = Se(t);
11477
11471
  return { width: t.width * e, height: t.height * e, left: t.left + t.width * (1 - e) / 2 + (i.left - s.left) * (1 - e), top: t.top + t.height * (1 - e) / 2 + (i.top - s.top) * (1 - e) };
11478
11472
  }
11479
11473
  return { width: t.width * e, height: t.height * e, left: t.left + t.width * (1 - e) / 2, top: t.top + t.height * (1 - e) / 2 };
@@ -11507,10 +11501,10 @@ function wt(t, e) {
11507
11501
  return { left: t.left * Math.cos(i) - t.top * Math.sin(i), top: t.left * Math.sin(i) + t.top * Math.cos(i) };
11508
11502
  }
11509
11503
  function mn(t, e) {
11510
- var i = fi(xe(t, e), e);
11504
+ var i = fi(Ce(t, e), e);
11511
11505
  return i.left + i.right + i.top + i.bottom ? i.left + i.right > i.top + i.bottom ? Math.min((t.width + i.left + i.right) / t.width, Vt(t, e)) : Math.min((t.height + i.top + i.bottom) / t.height, Vt(t, e)) : 1;
11512
11506
  }
11513
- function xe(t, e, i) {
11507
+ function Ce(t, e, i) {
11514
11508
  i === void 0 && (i = !1);
11515
11509
  var n = _t(t, e);
11516
11510
  return Le(t, i ? fn(n) : n);
@@ -11563,10 +11557,10 @@ function Op(t) {
11563
11557
  }, c = U({}, e);
11564
11558
  return (Array.isArray(i) ? i : [i]).forEach(function(d) {
11565
11559
  var h = {};
11566
- be((h = typeof d == "function" ? d({ coordinates: c, imageSize: n, visibleArea: u }) : d).width) && be(h.height) || (c = function(m, y) {
11560
+ we((h = typeof d == "function" ? d({ coordinates: c, imageSize: n, visibleArea: u }) : d).width) && we(h.height) || (c = function(m, y) {
11567
11561
  var x = U(U(U({}, m), ht({ width: y.width, height: y.height, sizeRestrictions: s, aspectRatio: o })), { left: 0, top: 0 });
11568
11562
  return l(x, { left: m.left, top: m.top });
11569
- }(c, U(U({}, c), h))), be(h.left) && be(h.top) || (c = l(c, U(U({}, c), h)));
11563
+ }(c, U(U({}, c), h))), we(h.left) && we(h.top) || (c = l(c, U(U({}, c), h)));
11570
11564
  }), c;
11571
11565
  }
11572
11566
  function Fp(t) {
@@ -11578,7 +11572,7 @@ function Fp(t) {
11578
11572
  var l, c, d, h = U({}, n), m = U({}, s), y = U({}, r);
11579
11573
  l = oe(y), c = oe(h), d === void 0 && (d = 1e-3), (l === 0 || c === 0 ? Math.abs(c - l) < d : Math.abs(c / l) < 1 + d && Math.abs(c / l) > 1 - d) || (h = U(U({}, h), ht({ sizeRestrictions: o, width: h.width, height: h.height, aspectRatio: { minimum: oe(y), maximum: oe(y) } })));
11580
11574
  var x = mn(m = Ge(m, h.width * i.width / (m.width * y.width)), e({ visibleArea: m, type: "resize" }));
11581
- return x !== 1 && (m = Ge(m, x), h = Ge(h, x)), m = xe(m = Le(m, Gt(Ce(h), Ce(m))), e({ visibleArea: m, type: "move" })), { coordinates: h = xe(h, gn(rt(m), u)), visibleArea: m };
11575
+ return x !== 1 && (m = Ge(m, x), h = Ge(h, x)), m = Ce(m = Le(m, Gt(Se(h), Se(m))), e({ visibleArea: m, type: "move" })), { coordinates: h = Ce(h, gn(rt(m), u)), visibleArea: m };
11582
11576
  }
11583
11577
  function Dp(t) {
11584
11578
  var e = t.event, i = t.getAreaRestrictions, n = t.boundaries, s = t.coordinates, r = t.visibleArea;
@@ -11590,7 +11584,7 @@ function Dp(t) {
11590
11584
  var c = { width: 0, height: 0 };
11591
11585
  l.width, n.width, oe(n) > oe(u) ? (c.height = 0.8 * n.height, c.width = c.height * oe(u)) : (c.width = 0.8 * n.width, c.height = c.width * oe(u));
11592
11586
  var d = mn(l = Ge(l, u.width * n.width / (l.width * c.width)), i({ visibleArea: l, type: "resize" }));
11593
- l = Ge(l, d), d !== 1 && (c.height /= d, c.width /= d), l = xe(l = Le(l, Gt(Ce(u), Ce(l))), i({ visibleArea: l, type: "move" })), u = xe(u, gn(rt(l), o));
11587
+ l = Ge(l, d), d !== 1 && (c.height /= d, c.width /= d), l = Ce(l = Le(l, Gt(Se(u), Se(l))), i({ visibleArea: l, type: "move" })), u = Ce(u, gn(rt(l), o));
11594
11588
  }
11595
11589
  return { coordinates: u, visibleArea: l };
11596
11590
  }
@@ -11598,7 +11592,7 @@ function Lp(t) {
11598
11592
  var e = t.event, i = t.coordinates, n = t.visibleArea, s = t.getAreaRestrictions, r = U({}, n), o = U({}, i);
11599
11593
  if (e.type === "setCoordinates") {
11600
11594
  var u = Math.max(0, o.width - r.width), l = Math.max(0, o.height - r.height);
11601
- u > l ? r = Ge(r, Math.min(o.width / r.width, Vt(r, s({ visibleArea: r, type: "resize" })))) : l > u && (r = Ge(r, Math.min(o.height / r.height, Vt(r, s({ visibleArea: r, type: "resize" }))))), r = xe(r = Le(r, fn(_t(o, rt(r)))), s({ visibleArea: r, type: "move" }));
11595
+ u > l ? r = Ge(r, Math.min(o.width / r.width, Vt(r, s({ visibleArea: r, type: "resize" })))) : l > u && (r = Ge(r, Math.min(o.height / r.height, Vt(r, s({ visibleArea: r, type: "resize" }))))), r = Ce(r = Le(r, fn(_t(o, rt(r)))), s({ visibleArea: r, type: "move" }));
11602
11596
  }
11603
11597
  return { visibleArea: r, coordinates: o };
11604
11598
  }
@@ -11618,7 +11612,7 @@ function Np(t) {
11618
11612
  var e = t.getAreaRestrictions, i = t.coordinates, n = t.imageSize, s = oe(t.boundaries);
11619
11613
  if (i) {
11620
11614
  var r = { height: Math.max(i.height, n.height), width: Math.max(i.width, n.width) }, o = vl({ width: oe(r) > s ? r.width : r.height * s, height: oe(r) > s ? r.width / s : r.height }, Jn(e())), u = { left: i.left + i.width / 2 - o.width / 2, top: i.top + i.height / 2 - o.height / 2, width: o.width, height: o.height }, l = fi(i, rt(U({ left: 0, top: 0 }, n))), c = {};
11621
- return !l.left && !l.right && u.width <= n.width && (c.left = 0, c.right = n.width), !l.top && !l.bottom && u.height <= n.height && (c.top = 0, c.bottom = n.height), xe(u, c);
11615
+ return !l.left && !l.right && u.width <= n.width && (c.left = 0, c.right = n.width), !l.top && !l.bottom && u.height <= n.height && (c.top = 0, c.bottom = n.height), Ce(u, c);
11622
11616
  }
11623
11617
  var d = oe(n);
11624
11618
  return o = { height: d > s ? n.height : n.width / s, width: d > s ? n.height * s : n.width }, { left: n.width / 2 - o.width / 2, top: n.height / 2 - o.height / 2, width: o.width, height: o.height };
@@ -11632,17 +11626,17 @@ function Up(t) {
11632
11626
  var M = { stencil: { minimum: Math.max(s.minWidth ? s.minWidth / h.width : 0, s.minHeight ? s.minHeight / h.height : 0), maximum: Math.min(s.maxWidth ? s.maxWidth / h.width : 1 / 0, s.maxHeight ? s.maxHeight / h.height : 1 / 0, Vt(h, o)) }, area: { maximum: Vt(d, r({ visibleArea: d, type: "resize" })) } };
11633
11627
  l.factor && x && (l.factor < 1 ? (y = Math.max(l.factor, M.stencil.minimum)) > 1 && (y = 1) : l.factor > 1 && (y = Math.min(l.factor, Math.min(M.area.maximum, M.stencil.maximum))) < 1 && (y = 1)), y && (d = Ge(d, y, l.center));
11634
11628
  var S = i.left - n.left, F = n.width + n.left - (i.width + i.left), _ = i.top - n.top, Y = n.height + n.top - (i.height + i.top);
11635
- return d = xe(d = Le(d, _t(d, { left: o.left !== void 0 ? o.left - S * y : void 0, top: o.top !== void 0 ? o.top - _ * y : void 0, bottom: o.bottom !== void 0 ? o.bottom + Y * y : void 0, right: o.right !== void 0 ? o.right + F * y : void 0 })), r({ visibleArea: d, type: "move" })), h.width = h.width * y, h.height = h.height * y, h.left = d.left + S * y, h.top = d.top + _ * y, h = xe(h, gn(rt(d), o)), l.factor && x && u && (l.factor > 1 ? m = Math.min(M.area.maximum, l.factor) / y : l.factor < 1 && (m = Math.max(h.height / d.height, h.width / d.width, l.factor / y)), m !== 1 && (d = Le(d = xe(d = Ge(d, m, l.factor > 1 ? l.center : Ce(h)), r({ visibleArea: d, type: "move" })), fn(_t(h, rt(d)))))), { coordinates: h, visibleArea: d };
11629
+ return d = Ce(d = Le(d, _t(d, { left: o.left !== void 0 ? o.left - S * y : void 0, top: o.top !== void 0 ? o.top - _ * y : void 0, bottom: o.bottom !== void 0 ? o.bottom + Y * y : void 0, right: o.right !== void 0 ? o.right + F * y : void 0 })), r({ visibleArea: d, type: "move" })), h.width = h.width * y, h.height = h.height * y, h.left = d.left + S * y, h.top = d.top + _ * y, h = Ce(h, gn(rt(d), o)), l.factor && x && u && (l.factor > 1 ? m = Math.min(M.area.maximum, l.factor) / y : l.factor < 1 && (m = Math.max(h.height / d.height, h.width / d.width, l.factor / y)), m !== 1 && (d = Le(d = Ce(d = Ge(d, m, l.factor > 1 ? l.center : Se(h)), r({ visibleArea: d, type: "move" })), fn(_t(h, rt(d)))))), { coordinates: h, visibleArea: d };
11636
11630
  }
11637
11631
  function jp(t) {
11638
- var e = t.aspectRatio, i = t.getAreaRestrictions, n = t.coordinates, s = t.visibleArea, r = t.sizeRestrictions, o = t.positionRestrictions, u = t.imageSize, l = t.previousImageSize, c = t.angle, d = U({}, n), h = U({}, s), m = wt(Ce(U({ left: 0, top: 0 }, l)), c);
11639
- return (d = U(U({}, ht({ sizeRestrictions: r, aspectRatio: e, width: d.width, height: d.height })), wt(Ce(d), c))).left -= m.left - u.width / 2 + d.width / 2, d.top -= m.top - u.height / 2 + d.height / 2, h = Ge(h, mn(h, i({ visibleArea: h, type: "resize" }))), { coordinates: d = xe(d, o), visibleArea: h = xe(h = Le(h, Gt(Ce(d), Ce(n))), i({ visibleArea: h, type: "move" })) };
11632
+ var e = t.aspectRatio, i = t.getAreaRestrictions, n = t.coordinates, s = t.visibleArea, r = t.sizeRestrictions, o = t.positionRestrictions, u = t.imageSize, l = t.previousImageSize, c = t.angle, d = U({}, n), h = U({}, s), m = wt(Se(U({ left: 0, top: 0 }, l)), c);
11633
+ return (d = U(U({}, ht({ sizeRestrictions: r, aspectRatio: e, width: d.width, height: d.height })), wt(Se(d), c))).left -= m.left - u.width / 2 + d.width / 2, d.top -= m.top - u.height / 2 + d.height / 2, h = Ge(h, mn(h, i({ visibleArea: h, type: "resize" }))), { coordinates: d = Ce(d, o), visibleArea: h = Ce(h = Le(h, Gt(Se(d), Se(n))), i({ visibleArea: h, type: "move" })) };
11640
11634
  }
11641
11635
  function Wp(t) {
11642
11636
  var e = t.flip, i = t.previousFlip, n = t.rotate, s = t.getAreaRestrictions, r = t.coordinates, o = t.visibleArea, u = t.imageSize, l = U({}, r), c = U({}, o), d = i.horizontal !== e.horizontal, h = i.vertical !== e.vertical;
11643
11637
  if (d || h) {
11644
- var m = wt({ left: u.width / 2, top: u.height / 2 }, -n), y = wt(Ce(l), -n), x = wt({ left: d ? m.left - (y.left - m.left) : y.left, top: h ? m.top - (y.top - m.top) : y.top }, n);
11645
- l = Le(l, Gt(x, Ce(l))), y = wt(Ce(c), -n), c = xe(c = Le(c, Gt(x = wt({ left: d ? m.left - (y.left - m.left) : y.left, top: h ? m.top - (y.top - m.top) : y.top }, n), Ce(c))), s({ visibleArea: c, type: "move" }));
11638
+ var m = wt({ left: u.width / 2, top: u.height / 2 }, -n), y = wt(Se(l), -n), x = wt({ left: d ? m.left - (y.left - m.left) : y.left, top: h ? m.top - (y.top - m.top) : y.top }, n);
11639
+ l = Le(l, Gt(x, Se(l))), y = wt(Se(c), -n), c = Ce(c = Le(c, Gt(x = wt({ left: d ? m.left - (y.left - m.left) : y.left, top: h ? m.top - (y.top - m.top) : y.top }, n), Se(c))), s({ visibleArea: c, type: "move" }));
11646
11640
  }
11647
11641
  return { coordinates: l, visibleArea: c };
11648
11642
  }
@@ -12127,12 +12121,12 @@ var e0 = ["transitions"], at = Qe("vue-advanced-cropper"), Rl = { name: "Cropper
12127
12121
  e.style.width = i.width + "px", e.style.height = e.clientWidth / n + "px", e.style.width = e.clientWidth + "px";
12128
12122
  } }, fitCoordinates: { type: Function, default: function(t) {
12129
12123
  var e = t.visibleArea, i = t.coordinates, n = t.aspectRatio, s = t.sizeRestrictions, r = t.positionRestrictions, o = U(U({}, i), ht({ width: i.width, height: i.height, aspectRatio: n, sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minHeight: Math.min(e.height, s.minHeight), minWidth: Math.min(e.width, s.minWidth) } }));
12130
- return o = xe(o = Le(o, Gt(Ce(i), Ce(o))), gn(rt(e), r));
12124
+ return o = Ce(o = Le(o, Gt(Se(i), Se(o))), gn(rt(e), r));
12131
12125
  } }, fitVisibleArea: { type: Function, default: function(t) {
12132
12126
  var e = t.visibleArea, i = t.boundaries, n = t.getAreaRestrictions, s = t.coordinates, r = U({}, e);
12133
12127
  r.height = r.width / oe(i), r.top += (e.height - r.height) / 2, (s.height - r.height > 0 || s.width - r.width > 0) && (r = Ge(r, Math.max(s.height / r.height, s.width / r.width)));
12134
12128
  var o = fn(_t(s, rt(r = Ge(r, mn(r, n({ visibleArea: r, type: "resize" }))))));
12135
- return r.width < s.width && (o.left = 0), r.height < s.height && (o.top = 0), r = xe(r = Le(r, o), n({ visibleArea: r, type: "move" }));
12129
+ return r.width < s.width && (o.left = 0), r.height < s.height && (o.top = 0), r = Ce(r = Le(r, o), n({ visibleArea: r, type: "move" }));
12136
12130
  } }, areaRestrictionsAlgorithm: { type: Function, default: function(t) {
12137
12131
  var e = t.visibleArea, i = t.boundaries, n = t.imageSize, s = t.imageRestriction, r = t.type, o = {};
12138
12132
  return s === "fill-area" ? o = { left: 0, top: 0, right: n.width, bottom: n.height } : s === "fit-area" && (oe(i) > oe(n) ? (o = { top: 0, bottom: n.height }, e && r === "move" && (e.width > n.width ? (o.left = -(e.width - n.width) / 2, o.right = n.width - o.left) : (o.left = 0, o.right = n.width))) : (o = { left: 0, right: n.width }, e && r === "move" && (e.height > n.height ? (o.top = -(e.height - n.height) / 2, o.bottom = n.height - o.top) : (o.top = 0, o.bottom = n.height)))), o;
@@ -12165,7 +12159,7 @@ var e0 = ["transitions"], at = Qe("vue-advanced-cropper"), Rl = { name: "Cropper
12165
12159
  return { enabled: this.transitionsActive, timingFunction: "ease-in-out", time: 350 };
12166
12160
  }, sizeRestrictions: function() {
12167
12161
  if (this.boundaries.width && this.boundaries.height && this.imageSize.width && this.imageSize.height) {
12168
- var t = this.sizeRestrictionsAlgorithm({ imageSize: this.imageSize, minWidth: be(this.minWidth) ? 0 : Ii(this.minWidth), minHeight: be(this.minHeight) ? 0 : Ii(this.minHeight), maxWidth: be(this.maxWidth) ? 1 / 0 : Ii(this.maxWidth), maxHeight: be(this.maxHeight) ? 1 / 0 : Ii(this.maxHeight) });
12162
+ var t = this.sizeRestrictionsAlgorithm({ imageSize: this.imageSize, minWidth: we(this.minWidth) ? 0 : Ii(this.minWidth), minHeight: we(this.minHeight) ? 0 : Ii(this.minHeight), maxWidth: we(this.maxWidth) ? 1 / 0 : Ii(this.maxWidth), maxHeight: we(this.maxHeight) ? 1 / 0 : Ii(this.maxHeight) });
12169
12163
  if (t = function(n) {
12170
12164
  var s = n.areaRestrictions, r = n.sizeRestrictions, o = n.boundaries, u = n.positionRestrictions, l = U(U({}, r), { minWidth: r.minWidth !== void 0 ? r.minWidth : 0, minHeight: r.minHeight !== void 0 ? r.minHeight : 0, maxWidth: r.maxWidth !== void 0 ? r.maxWidth : 1 / 0, maxHeight: r.maxHeight !== void 0 ? r.maxHeight : 1 / 0 });
12171
12165
  u.left !== void 0 && u.right !== void 0 && (l.maxWidth = Math.min(l.maxWidth, u.right - u.left)), u.bottom !== void 0 && u.top !== void 0 && (l.maxHeight = Math.min(l.maxHeight, u.bottom - u.top));
@@ -12261,7 +12255,7 @@ var e0 = ["transitions"], at = Qe("vue-advanced-cropper"), Rl = { name: "Cropper
12261
12255
  }, prepareResult: function(t) {
12262
12256
  return this.roundResult ? function(e) {
12263
12257
  var i = e.coordinates, n = e.sizeRestrictions, s = e.positionRestrictions, r = { width: Math.round(i.width), height: Math.round(i.height), left: Math.round(i.left), top: Math.round(i.top) };
12264
- return r.width > n.maxWidth ? r.width = Math.floor(i.width) : r.width < n.minWidth && (r.width = Math.ceil(i.width)), r.height > n.maxHeight ? r.height = Math.floor(i.height) : r.height < n.minHeight && (r.height = Math.ceil(i.height)), xe(r, s);
12258
+ return r.width > n.maxWidth ? r.width = Math.floor(i.width) : r.width < n.minWidth && (r.width = Math.ceil(i.width)), r.height > n.maxHeight ? r.height = Math.floor(i.height) : r.height < n.minHeight && (r.height = Math.ceil(i.height)), Ce(r, s);
12265
12259
  }(re(re({}, this.getPublicProperties()), {}, { positionRestrictions: Ri(this.positionRestrictions, this.visibleArea), coordinates: t })) : t;
12266
12260
  }, processAutoZoom: function(t, e, i, n) {
12267
12261
  var s = this.autoZoomAlgorithm;
@@ -12294,7 +12288,7 @@ var e0 = ["transitions"], at = Qe("vue-advanced-cropper"), Rl = { name: "Cropper
12294
12288
  var t = this.$refs.canvas, e = this.$refs.image, i = this.imageTransforms.rotate !== 0 || this.imageTransforms.flip.horizontal || this.imageTransforms.flip.vertical ? function(u, l, c) {
12295
12289
  var d = c.rotate, h = c.flip, m = { width: l.naturalWidth, height: l.naturalHeight }, y = yl(m, d), x = u.getContext("2d");
12296
12290
  u.height = y.height, u.width = y.width, x.save();
12297
- var M = wt(Ce(U({ left: 0, top: 0 }, m)), d);
12291
+ var M = wt(Se(U({ left: 0, top: 0 }, m)), d);
12298
12292
  return x.translate(-(M.left - y.width / 2), -(M.top - y.height / 2)), x.rotate(d * Math.PI / 180), x.translate(h.horizontal ? m.width : 0, h.vertical ? m.height : 0), x.scale(h.horizontal ? -1 : 1, h.vertical ? -1 : 1), x.drawImage(l, 0, 0, m.width, m.height), x.restore(), u;
12299
12293
  }(this.$refs.sourceCanvas, e, this.imageTransforms) : e, n = re({ minWidth: 0, minHeight: 0, maxWidth: 1 / 0, maxHeight: 1 / 0, maxArea: this.maxCanvasSize, imageSmoothingEnabled: !0, imageSmoothingQuality: "high", fillColor: "transparent" }, this.canvas), s = function(u) {
12300
12294
  return u.find(function(l) {
@@ -12360,7 +12354,7 @@ var e0 = ["transitions"], at = Qe("vue-advanced-cropper"), Rl = { name: "Cropper
12360
12354
  return this.appliedImageTransforms = re(re({}, this.defaultImageTransforms), {}, { flip: re({}, this.defaultImageTransforms.flip) }), this.updateBoundaries().then(function() {
12361
12355
  t.priority !== "visible-area" && (t.visibleArea = null, t.resetCoordinates());
12362
12356
  var e, i, n, s, r, o, u = t.defaultVisibleArea || Np;
12363
- t.visibleArea = Ht(u) ? u({ imageSize: t.imageSize, boundaries: t.boundaries, coordinates: t.priority !== "visible-area" ? t.coordinates : null, getAreaRestrictions: t.getAreaRestrictions, stencilSize: t.getStencilSize() }) : t.defaultVisibleArea, t.visibleArea = (e = { visibleArea: t.visibleArea, boundaries: t.boundaries, getAreaRestrictions: t.getAreaRestrictions }, i = e.visibleArea, n = e.boundaries, s = e.getAreaRestrictions, r = U({}, i), o = oe(n), r.width / r.height !== o && (r.height = r.width / o), xe(r, s({ visibleArea: r, type: "move" }))), t.priority === "visible-area" ? t.resetCoordinates() : t.coordinates = t.fitCoordinates({ visibleArea: t.visibleArea, coordinates: t.coordinates, aspectRatio: t.getAspectRatio(), positionRestrictions: t.positionRestrictions, sizeRestrictions: t.sizeRestrictions }), t.runAutoZoom("resetVisibleArea");
12357
+ t.visibleArea = Ht(u) ? u({ imageSize: t.imageSize, boundaries: t.boundaries, coordinates: t.priority !== "visible-area" ? t.coordinates : null, getAreaRestrictions: t.getAreaRestrictions, stencilSize: t.getStencilSize() }) : t.defaultVisibleArea, t.visibleArea = (e = { visibleArea: t.visibleArea, boundaries: t.boundaries, getAreaRestrictions: t.getAreaRestrictions }, i = e.visibleArea, n = e.boundaries, s = e.getAreaRestrictions, r = U({}, i), o = oe(n), r.width / r.height !== o && (r.height = r.width / o), Ce(r, s({ visibleArea: r, type: "move" }))), t.priority === "visible-area" ? t.resetCoordinates() : t.coordinates = t.fitCoordinates({ visibleArea: t.visibleArea, coordinates: t.coordinates, aspectRatio: t.getAspectRatio(), positionRestrictions: t.positionRestrictions, sizeRestrictions: t.sizeRestrictions }), t.runAutoZoom("resetVisibleArea");
12364
12358
  }).catch(function() {
12365
12359
  t.visibleArea = null;
12366
12360
  });
@@ -12384,7 +12378,7 @@ var e0 = ["transitions"], at = Qe("vue-advanced-cropper"), Rl = { name: "Cropper
12384
12378
  };
12385
12379
  return !(!u.protocol && !u.host && !u.port || u.protocol && u.protocol == r.protocol && u.host && u.host == r.host && u.host && l(u) == l(r));
12386
12380
  }(this.src)) {
12387
- var i = be(this.crossOrigin) ? this.canvas : this.crossOrigin;
12381
+ var i = we(this.crossOrigin) ? this.canvas : this.crossOrigin;
12388
12382
  i === !0 && (i = "anonymous"), this.imageAttributes.crossOrigin = i || null;
12389
12383
  }
12390
12384
  if (this.checkOrientation) {
@@ -12483,9 +12477,9 @@ var e0 = ["transitions"], at = Qe("vue-advanced-cropper"), Rl = { name: "Cropper
12483
12477
  var u = this.$refs.stencil.aspectRatios();
12484
12478
  e = u.minimum, i = u.maximum;
12485
12479
  }
12486
- if (be(e) && (e = be(s) ? r : s), be(i) && (i = be(s) ? o : s), !t && (be(e) || be(i))) {
12480
+ if (we(e) && (e = we(s) ? r : s), we(i) && (i = we(s) ? o : s), !t && (we(e) || we(i))) {
12487
12481
  var l = this.getStencilSize(), c = l ? oe(l) : null;
12488
- be(e) && (e = kr(c) ? c : void 0), be(i) && (i = kr(c) ? c : void 0);
12482
+ we(e) && (e = kr(c) ? c : void 0), we(i) && (i = kr(c) ? c : void 0);
12489
12483
  }
12490
12484
  return { minimum: e, maximum: i };
12491
12485
  }, getStencilSize: function() {
@@ -12803,7 +12797,7 @@ const s0 = { class: "background-container" }, r0 = { class: "dialog-footer" }, o
12803
12797
  },
12804
12798
  emits: ["crop", "removeFile", "update:ratio"],
12805
12799
  setup(t, { emit: e }) {
12806
- const i = t, n = e, s = T(void 0), r = ve.GUID(), o = T(!1), u = T(), l = T(i.ratio), c = T(""), d = () => {
12800
+ const i = t, n = e, s = T(void 0), r = Me.GUID(), o = T(!1), u = T(), l = T(i.ratio), c = T(""), d = () => {
12807
12801
  s.value = void 0, l.value = 1, n("update:ratio", 1), n("removeFile"), m = document.getElementById(r), m.value = "";
12808
12802
  }, h = (S) => {
12809
12803
  i.fileInfo.setFile(S), i.fileInfo.fileSystemPath && (s.value = i.fileInfo), o.value = !1, n("crop");
@@ -12902,7 +12896,7 @@ const s0 = { class: "background-container" }, r0 = { class: "dialog-footer" }, o
12902
12896
  }, 8, ["show"])
12903
12897
  ], 64));
12904
12898
  }
12905
- }), $l = /* @__PURE__ */ A(w0, [["__scopeId", "data-v-562cf695"]]);
12899
+ }), $l = /* @__PURE__ */ A(w0, [["__scopeId", "data-v-12befa10"]]);
12906
12900
  function Al(t) {
12907
12901
  t.component("PTabs", ul), t.component("PUploaderFile", cl), t.component("PUploaderImage", $l), t.component("PAuthForm", $s), t.component("PAuthModal", al), t.component("PNameEdit", ll);
12908
12902
  }