sprof 0.0.122 → 0.0.123

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 ta = Object.defineProperty;
2
2
  var ia = (t, e, i) => e in t ? ta(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
3
3
  var u = (t, e, i) => ia(t, typeof e != "symbol" ? e + "" : e, i);
4
- import { ref as z, defineComponent as A, resolveComponent as E, openBlock as m, createElementBlock as w, createVNode as I, createElementVNode as f, reactive as ht, getCurrentInstance as na, inject as sa, onUnmounted as or, onDeactivated as ra, onActivated as oa, onBeforeMount as Ze, Fragment as G, renderSlot as P, unref as p, normalizeStyle as R, createCommentVNode as Y, withCtx as V, withModifiers as Te, withDirectives as je, vModelText as Bn, computed as he, mergeProps as Tt, createTextVNode as Oi, toDisplayString as ve, mergeModels as Me, useModel as mt, vModelCheckbox as aa, vModelDynamic as la, isRef as et, withKeys as ua, normalizeClass as ie, watch as tt, createBlock as q, vModelRadio as ca, vShow as Hn, vModelSelect as da, useCssVars as ar, onMounted as ri, renderList as Ae, resolveDirective as lr, createStaticVNode as ur, resolveDynamicComponent as Qt, nextTick as ha, onUpdated as fa, onBeforeUnmount as qn, Transition as cr } from "vue";
4
+ import { ref as z, defineComponent as A, resolveComponent as E, openBlock as m, createElementBlock as w, createVNode as I, createElementVNode as f, reactive as ft, getCurrentInstance as na, inject as sa, onUnmounted as or, onDeactivated as ra, onActivated as oa, onBeforeMount as Ze, Fragment as G, renderSlot as P, unref as p, normalizeStyle as R, createCommentVNode as Y, withCtx as V, withModifiers as Te, withDirectives as je, vModelText as Bn, computed as he, mergeProps as Tt, createTextVNode as Oi, toDisplayString as ve, mergeModels as Me, useModel as gt, vModelCheckbox as aa, vModelDynamic as la, isRef as tt, withKeys as ua, normalizeClass as ie, watch as it, createBlock as q, vModelRadio as ca, vShow as Hn, vModelSelect as da, useCssVars as ar, onMounted as ri, renderList as Ae, resolveDirective as lr, createStaticVNode as ur, resolveDynamicComponent as Qt, nextTick as ha, onUpdated as fa, onBeforeUnmount as qn, Transition as cr } from "vue";
5
5
  var qe = /* @__PURE__ */ ((t) => (t.Login = "login", t.Register = "register", t.Restore = "restore", t.Refresh = "refresh", t))(qe || {}), Ee = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Success = "success", t.Warning = "warning", t.Error = "error", t.Info = "info", t))(Ee || {});
6
6
  class Ct {
7
7
  constructor(e, i, n, s) {
@@ -547,7 +547,7 @@ class Ma {
547
547
  return this.modal;
548
548
  }
549
549
  }
550
- const ct = new Ma();
550
+ const dt = new Ma();
551
551
  var Rs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
552
552
  /*! *****************************************************************************
553
553
  Copyright (C) Microsoft. All rights reserved.
@@ -662,12 +662,12 @@ var Is;
662
662
  return _(k) || (k = Ye(k)), us(y, S, k);
663
663
  }
664
664
  e("getMetadata", He);
665
- function gt(y, S, k) {
665
+ function pt(y, S, k) {
666
666
  if (!me(S))
667
667
  throw new TypeError();
668
668
  return _(k) || (k = Ye(k)), cs(y, S, k);
669
669
  }
670
- e("getOwnMetadata", gt);
670
+ e("getOwnMetadata", pt);
671
671
  function zt(y, S) {
672
672
  if (!me(y))
673
673
  throw new TypeError();
@@ -1376,7 +1376,7 @@ function Ia(t, e = 0) {
1376
1376
  const Aa = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), As = {
1377
1377
  randomUUID: Aa
1378
1378
  };
1379
- function ft(t, e, i) {
1379
+ function mt(t, e, i) {
1380
1380
  if (As.randomUUID && !e && !t)
1381
1381
  return As.randomUUID();
1382
1382
  t = t || {};
@@ -1385,7 +1385,7 @@ function ft(t, e, i) {
1385
1385
  }
1386
1386
  class Ie {
1387
1387
  static UUID() {
1388
- return ft();
1388
+ return mt();
1389
1389
  }
1390
1390
  static GUID() {
1391
1391
  const e = function() {
@@ -1487,7 +1487,7 @@ class Nn {
1487
1487
  }
1488
1488
  }
1489
1489
  u(Nn, "staticUrl", "");
1490
- class st {
1490
+ class rt {
1491
1491
  constructor(e) {
1492
1492
  u(this, "name", "");
1493
1493
  u(this, "url", "");
@@ -1508,7 +1508,7 @@ class st {
1508
1508
  return { name: this.originalName, url: this.url };
1509
1509
  }
1510
1510
  static CreatePreviewFile(e, i) {
1511
- const n = new st();
1511
+ const n = new rt();
1512
1512
  return n.id = i ?? Ie.UUID(), n.originalName = e.name, n.file = e.blob, n.fileSystemPath = Ie.UUID(), n;
1513
1513
  }
1514
1514
  uploadNewFile(e) {
@@ -1707,10 +1707,10 @@ class Un {
1707
1707
  j.BuildClass(this, e);
1708
1708
  }
1709
1709
  }
1710
- var ot;
1711
- let $a = (ot = class {
1712
- }, u(ot, "Phone", Rt), u(ot, "FileInfo", st), u(ot, "PostAddress", Ii), u(ot, "Website", Un), u(ot, "Email", kt), u(ot, "Human", yr), u(ot, "Cropper", Li), ot);
1713
- class it {
1710
+ var at;
1711
+ let $a = (at = class {
1712
+ }, u(at, "Phone", Rt), u(at, "FileInfo", rt), u(at, "PostAddress", Ii), u(at, "Website", Un), u(at, "Email", kt), u(at, "Human", yr), u(at, "Cropper", Li), at);
1713
+ class nt {
1714
1714
  static Shuffle(e) {
1715
1715
  for (let i = e.length - 1; i > 0; i--) {
1716
1716
  const n = Math.floor(Math.random() * (i + 1));
@@ -1788,12 +1788,12 @@ const wr = class Lt {
1788
1788
  return !1;
1789
1789
  if (this.type === de.Join) {
1790
1790
  const i = e.model === this.model && e.operator === this.operator && this.joinTableModel === e.joinTableModel;
1791
- return e.operator === ke.In ? i && it.Eq(this.set, e.set) : i;
1791
+ return e.operator === ke.In ? i && nt.Eq(this.set, e.set) : i;
1792
1792
  }
1793
1793
  return e.model === this.model && e.col === this.col && e.operator === this.operator;
1794
1794
  }
1795
1795
  valueEq(e) {
1796
- return !this || !e || !this.eq(e) ? !1 : this.type === de.Boolean ? this.boolean === (e == null ? void 0 : e.boolean) : this.type === de.String ? this.value1 === (e == null ? void 0 : e.value1) : this.type === de.Join && this.set.length ? it.Eq(this.set, e.set) : !1;
1796
+ return !this || !e || !this.eq(e) ? !1 : this.type === de.Boolean ? this.boolean === (e == null ? void 0 : e.boolean) : this.type === de.String ? this.value1 === (e == null ? void 0 : e.value1) : this.type === de.Join && this.set.length ? nt.Eq(this.set, e.set) : !1;
1797
1797
  }
1798
1798
  toUrlQuery() {
1799
1799
  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 === de.Boolean ? `"boolean":${this.boolean}` : "", l = this.type === de.Date && this.date1 ? `"date1":"${this.date1.toISOString()}"` : "", a = this.type === de.Date && this.date2 ? `"date2":"${this.date2.toISOString()}"` : "", c = this.type === de.Number ? `"number":${this.number}` : "", d = this.type === de.Set || this.operator === ke.In ? `"set":${JSON.stringify(this.set)}` : "", h = this.type === de.Join ? `"joinTableModel":"${this.joinTableModel}"` : "";
@@ -1817,11 +1817,11 @@ const wr = class Lt {
1817
1817
  }
1818
1818
  static CreateFilterModel(e, i, n) {
1819
1819
  const s = new Lt();
1820
- return s.id = ft(), s.model = typeof e == "string" ? e : e.GetClassName(), s.col = i ?? "", s.type = n, s.type === de.Number && (s.value1 = "0"), s.type === de.String && (s.value1 = ""), s.type === de.Boolean && (s.value1 = "false"), s;
1820
+ return s.id = mt(), s.model = typeof e == "string" ? e : e.GetClassName(), s.col = i ?? "", s.type = n, s.type === de.Number && (s.value1 = "0"), s.type === de.String && (s.value1 = ""), s.type === de.Boolean && (s.value1 = "false"), s;
1821
1821
  }
1822
1822
  static CreateFilterModelWithJoin(e, i, n, s, r, o, l, a) {
1823
1823
  const c = new Lt();
1824
- return c.id = ft(), c.joinTable = n, c.joinTablePk = s, c.joinTableFk = r, c.col = i, c.type = o, l && (c.joinTableId = l), a && (c.joinTableIdCol = a), c;
1824
+ return c.id = mt(), c.joinTable = n, c.joinTablePk = s, c.joinTableFk = r, c.col = i, c.type = o, l && (c.joinTableId = l), a && (c.joinTableIdCol = a), c;
1825
1825
  }
1826
1826
  static CreateFilterModelWithJoinV2(e, i, n, s, r, o, l) {
1827
1827
  const a = new Lt();
@@ -1829,7 +1829,7 @@ const wr = class Lt {
1829
1829
  }
1830
1830
  static OnlyIfSecondModelExists(e, i) {
1831
1831
  const n = new Lt();
1832
- return n.id = ft(), n.model = ce.ToCamelCase(e.GetClassName()), n.joinTableModel = ce.ToCamelCase(i.GetClassName()), n.type = de.Join, n;
1832
+ return n.id = mt(), n.model = ce.ToCamelCase(e.GetClassName()), n.joinTableModel = ce.ToCamelCase(i.GetClassName()), n.type = de.Join, n;
1833
1833
  }
1834
1834
  addToSet(...e) {
1835
1835
  e.forEach((i) => {
@@ -2023,7 +2023,7 @@ const ai = (Le = class {
2023
2023
  return this.f.find((i) => e.id === i.id);
2024
2024
  }
2025
2025
  getFirstSortModel() {
2026
- return it.GetLast(this.s);
2026
+ return nt.GetLast(this.s);
2027
2027
  }
2028
2028
  setSortModel(e) {
2029
2029
  e && (this.s[0] = e);
@@ -3297,11 +3297,11 @@ const iu = async (t) => {
3297
3297
  duplex: "half"
3298
3298
  }), Be;
3299
3299
  if (x.isFormData(n) && (Be = ne.headers.get("content-type")) && d.setContentType(Be), ne.body) {
3300
- const [He, gt] = Fs(
3300
+ const [He, pt] = Fs(
3301
3301
  b,
3302
3302
  $i(Ls(a))
3303
3303
  );
3304
- n = Bs(ne.body, Hs, He, gt);
3304
+ n = Bs(ne.body, Hs, He, pt);
3305
3305
  }
3306
3306
  }
3307
3307
  x.isString(h) || (h = h ? "include" : "omit");
@@ -3322,13 +3322,13 @@ const iu = async (t) => {
3322
3322
  ["status", "statusText", "headers"].forEach((zt) => {
3323
3323
  ne[zt] = J[zt];
3324
3324
  });
3325
- const Be = x.toFiniteNumber(J.headers.get("content-length")), [He, gt] = l && Fs(
3325
+ const Be = x.toFiniteNumber(J.headers.get("content-length")), [He, pt] = l && Fs(
3326
3326
  Be,
3327
3327
  $i(Ls(l), !0)
3328
3328
  ) || [];
3329
3329
  J = new Response(
3330
3330
  Bs(J.body, Hs, He, () => {
3331
- gt && gt(), M && M();
3331
+ pt && pt(), M && M();
3332
3332
  }),
3333
3333
  ne
3334
3334
  );
@@ -3465,7 +3465,7 @@ function ou(t, e, i) {
3465
3465
  const Mn = {
3466
3466
  assertOptions: ou,
3467
3467
  validators: _n
3468
- }, pt = Mn.validators;
3468
+ }, vt = Mn.validators;
3469
3469
  class Mt {
3470
3470
  constructor(e) {
3471
3471
  this.defaults = e, this.interceptors = {
@@ -3502,14 +3502,14 @@ class Mt {
3502
3502
  typeof e == "string" ? (i = i || {}, i.url = e) : i = e || {}, i = It(this.defaults, i);
3503
3503
  const { transitional: n, paramsSerializer: s, headers: r } = i;
3504
3504
  n !== void 0 && Mn.assertOptions(n, {
3505
- silentJSONParsing: pt.transitional(pt.boolean),
3506
- forcedJSONParsing: pt.transitional(pt.boolean),
3507
- clarifyTimeoutError: pt.transitional(pt.boolean)
3505
+ silentJSONParsing: vt.transitional(vt.boolean),
3506
+ forcedJSONParsing: vt.transitional(vt.boolean),
3507
+ clarifyTimeoutError: vt.transitional(vt.boolean)
3508
3508
  }, !1), s != null && (x.isFunction(s) ? i.paramsSerializer = {
3509
3509
  serialize: s
3510
3510
  } : Mn.assertOptions(s, {
3511
- encode: pt.function,
3512
- serialize: pt.function
3511
+ encode: vt.function,
3512
+ serialize: vt.function
3513
3513
  }, !0)), i.method = (i.method || this.defaults.method || "get").toLowerCase();
3514
3514
  let o = r && x.merge(
3515
3515
  r.common,
@@ -4030,7 +4030,7 @@ const _r = /* @__PURE__ */ $(du, [["render", fu]]), mu = [
4030
4030
  name: "NotFound",
4031
4031
  component: _r
4032
4032
  }
4033
- ], vt = class vt {
4033
+ ], Qe = class Qe {
4034
4034
  static Set(e) {
4035
4035
  this.router = e, this.AddRoutes(mu);
4036
4036
  }
@@ -4051,16 +4051,16 @@ const _r = /* @__PURE__ */ $(du, [["render", fu]]), mu = [
4051
4051
  await this.Get().replace(e);
4052
4052
  }
4053
4053
  static Id() {
4054
- return vt.GetStringParam("id");
4054
+ return Qe.GetStringParam("id");
4055
4055
  }
4056
4056
  static Slug() {
4057
- return vt.GetStringParam("slug");
4057
+ return Qe.GetStringParam("slug");
4058
4058
  }
4059
4059
  static async Back() {
4060
4060
  this.Get().go(-1);
4061
4061
  }
4062
4062
  static GetQid() {
4063
- return vt.GetStringQueryParam("qid");
4063
+ return Qe.GetStringQueryParam("qid");
4064
4064
  }
4065
4065
  static Route() {
4066
4066
  return this.Get().currentRoute.value;
@@ -4071,7 +4071,7 @@ const _r = /* @__PURE__ */ $(du, [["render", fu]]), mu = [
4071
4071
  }
4072
4072
  static GetPath() {
4073
4073
  var i;
4074
- const e = (i = vt.Route()) == null ? void 0 : i.path.split("/");
4074
+ const e = (i = Qe.Route()) == null ? void 0 : i.path.split("/");
4075
4075
  return !e || e.length <= 0 ? "" : e[e.length - 1];
4076
4076
  }
4077
4077
  static async ToAdmin(e) {
@@ -4080,7 +4080,7 @@ const _r = /* @__PURE__ */ $(du, [["render", fu]]), mu = [
4080
4080
  return;
4081
4081
  }
4082
4082
  let i = e;
4083
- i[0] === "/" && (i = e.substring(1)), await vt.To(`/admin/${i}`);
4083
+ i[0] === "/" && (i = e.substring(1)), await Qe.To(`/admin/${i}`);
4084
4084
  }
4085
4085
  static GetStringQueryParam(e) {
4086
4086
  return String(this.Route().query[e]);
@@ -4099,16 +4099,19 @@ const _r = /* @__PURE__ */ $(du, [["render", fu]]), mu = [
4099
4099
  return this.Get().resolve(e);
4100
4100
  }
4101
4101
  };
4102
- u(vt, "router");
4103
- let bt = vt;
4102
+ u(Qe, "router"), u(Qe, "ChangeDocumentTitle", (e = "") => {
4103
+ let i = Qe.Route().meta.title ?? e;
4104
+ i && e && (i = i + `| ${e}`), document.title = i;
4105
+ });
4106
+ let bt = Qe;
4104
4107
  class le {
4105
4108
  constructor(e, i) {
4106
- u(this, "items", ht([]));
4109
+ u(this, "items", ft([]));
4107
4110
  u(this, "item");
4108
4111
  u(this, "count", z(0));
4109
4112
  u(this, "classConstructor");
4110
4113
  u(this, "url", "");
4111
- this.classConstructor = e, this.item = ht(new this.classConstructor()), this.url = i;
4114
+ this.classConstructor = e, this.item = ft(new this.classConstructor()), this.url = i;
4112
4115
  }
4113
4116
  Set(e) {
4114
4117
  Object.assign(this.item, new this.classConstructor(e));
@@ -4249,7 +4252,7 @@ function gu(t, e) {
4249
4252
  const pu = ["#31af5e", "#ff4d3b", "#006BB5", "#f3911c"];
4250
4253
  class vu {
4251
4254
  static GetRandColor(e) {
4252
- return it.GetRandEL(e ?? pu);
4255
+ return nt.GetRandEL(e ?? pu);
4253
4256
  }
4254
4257
  }
4255
4258
  function Zr(t, e) {
@@ -4292,7 +4295,7 @@ let yu = class {
4292
4295
  return this.timelinePxHeight * this.timelines.length;
4293
4296
  }
4294
4297
  getHoursArr() {
4295
- return it.GenerateNumsRange(this.startHour, this.endHour);
4298
+ return nt.GenerateNumsRange(this.startHour, this.endHour);
4296
4299
  }
4297
4300
  };
4298
4301
  const In = (t) => t === 8 || t === 46, wu = (t) => t > 46 && t < 58, bu = (t) => t > 34 && t < 41, Su = (t) => t + ".", Cu = (t, e, i) => {
@@ -4322,7 +4325,7 @@ function Mu(t) {
4322
4325
  i.length === 0 && Number(s) > 3 && (i = "3", t.preventDefault()), i.length === 1 && Number(s) > 31 && (i = "31", t.preventDefault()), s.length === 5 && Number(s.substring(3, 5)) > 12 && (i = i.substring(0, 3) + "12", t.preventDefault()), i = xu(i, n), t.srcElement.value = i;
4323
4326
  }
4324
4327
  const ku = ["ВС", "ПН", "ВТ", "СР", "ЧТ", "ПТ", "СБ"], Ru = "ru-RU";
4325
- class ut {
4328
+ class ct {
4326
4329
  constructor() {
4327
4330
  u(this, "locale", "ru-RU");
4328
4331
  }
@@ -4347,11 +4350,11 @@ class ut {
4347
4350
  return this.GetPeriod(n, s, e || { month: "2-digit", day: "numeric", year: void 0 });
4348
4351
  }
4349
4352
  static GetDurationInDay(e, i) {
4350
- const n = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date(), r = ut.SplitHourTime(e), o = ut.SplitHourTime(i);
4353
+ const n = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date(), r = ct.SplitHourTime(e), o = ct.SplitHourTime(i);
4351
4354
  return n.setHours(r[0], r[1], 0, 0), s.setHours(o[0], o[1], 0, 0), (s.getTime() - n.getTime()) / 1e3 / 60;
4352
4355
  }
4353
4356
  static HourTimeinMunutes(e) {
4354
- const i = ut.SplitHourTime(e);
4357
+ const i = ct.SplitHourTime(e);
4355
4358
  return i[0] * 60 + i[1];
4356
4359
  }
4357
4360
  static SplitHourTime(e) {
@@ -4359,7 +4362,7 @@ class ut {
4359
4362
  return [Number(i[0]), Number(i[1])];
4360
4363
  }
4361
4364
  static AddMinutesToHM(e, i) {
4362
- const n = /* @__PURE__ */ new Date(), s = ut.SplitHourTime(e);
4365
+ const n = /* @__PURE__ */ new Date(), s = ct.SplitHourTime(e);
4363
4366
  n.setHours(s[0], s[1], 0, 0);
4364
4367
  const r = new Date(n.getTime() + i * 6e4), o = r.getHours(), l = r.getMinutes();
4365
4368
  return `${o}:${l}`;
@@ -4381,7 +4384,7 @@ class ut {
4381
4384
  const n = [new Date(e)];
4382
4385
  let s = e;
4383
4386
  for (; s <= i; )
4384
- s = ut.AddDays(s, 1), n.push(s);
4387
+ s = ct.AddDays(s, 1), n.push(s);
4385
4388
  return n;
4386
4389
  }
4387
4390
  static AddDays(e, i) {
@@ -4685,7 +4688,7 @@ class Du {
4685
4688
  return this.timelinePxHeight * this.timelines.length;
4686
4689
  }
4687
4690
  getHoursArr() {
4688
- return it.GenerateNumsRange(this.startHour, this.endHour);
4691
+ return nt.GenerateNumsRange(this.startHour, this.endHour);
4689
4692
  }
4690
4693
  timeIsFree(e, i, n, s) {
4691
4694
  return s.filter((r) => r.id !== n).every(
@@ -4742,11 +4745,11 @@ class Pi {
4742
4745
  }
4743
4746
  static Create(e, i, n, s) {
4744
4747
  const r = new Pi();
4745
- return r.id = ft(), r.chatId = e, r.message = n, r.userName = s, r;
4748
+ return r.id = mt(), r.chatId = e, r.message = n, r.userName = s, r;
4746
4749
  }
4747
4750
  static CreatePingMessage() {
4748
4751
  const e = new Pi();
4749
- return e.type = "ping", e.id = ft(), e;
4752
+ return e.type = "ping", e.id = mt(), e;
4750
4753
  }
4751
4754
  isMessage() {
4752
4755
  return this.type === "message" || this.type === "";
@@ -4788,8 +4791,8 @@ class ju {
4788
4791
  }
4789
4792
  var K;
4790
4793
  let Gu = (K = class {
4791
- }, u(K, "Arrays", it), u(K, "Axios", Xt), u(K, "BaseStore", le), // static Phone = Phone;
4792
- u(K, "Cache", ji), u(K, "Classes", j), u(K, "CarouselSwipe", gu), u(K, "Color", vu), u(K, "CreateSortModels", Zr), u(K, "Cursor", yu), u(K, "DateMask", Mu), u(K, "Dates", ut), u(K, "Dragger", Iu), u(K, "Extension", Jr), u(K, "Favourite", Au), // static FTSP = FTSP;
4794
+ }, u(K, "Arrays", nt), u(K, "Axios", Xt), u(K, "BaseStore", le), // static Phone = Phone;
4795
+ u(K, "Cache", ji), u(K, "Classes", j), u(K, "CarouselSwipe", gu), u(K, "Color", vu), u(K, "CreateSortModels", Zr), u(K, "Cursor", yu), u(K, "DateMask", Mu), u(K, "Dates", ct), u(K, "Dragger", Iu), u(K, "Extension", Jr), u(K, "Favourite", Au), // static FTSP = FTSP;
4793
4796
  u(K, "Hooks", Ou), u(K, "HttpClient", Se), u(K, "Id", Ie), u(K, "MakeCarousel", Xr), u(K, "Period", yn), u(K, "PhoneService", An), u(K, "Rating", Fu), u(K, "Router", bt), u(K, "RouterGuard", Lu), u(K, "Scheduler", Du), u(K, "Scroll", Hu), // static Sizes = Sizes;
4794
4797
  u(K, "Sorter", qu), u(K, "Static", Nn), // static Statuses = Statuses;
4795
4798
  u(K, "Strings", ce), u(K, "Time", ee), u(K, "Timer", ei), u(K, "Token", ni), u(K, "Menus", Xn), // static useConfirmLeavePage = useConfirmLeavePage();
@@ -4814,7 +4817,7 @@ class Vu {
4814
4817
  const Yr = new Vu();
4815
4818
  let _u = class {
4816
4819
  async Login(e) {
4817
- const i = e ?? ct.Form.GetValues(), n = await Se.Post({
4820
+ const i = e ?? dt.Form.GetValues(), n = await Se.Post({
4818
4821
  query: "auth/login",
4819
4822
  payload: i
4820
4823
  });
@@ -4951,7 +4954,7 @@ let tc = class extends le {
4951
4954
  const ic = new tc();
4952
4955
  let nc = class extends le {
4953
4956
  constructor() {
4954
- super(st, "file-infos");
4957
+ super(rt, "file-infos");
4955
4958
  }
4956
4959
  };
4957
4960
  const sc = new nc();
@@ -5098,8 +5101,8 @@ class cn {
5098
5101
  let yc = class {
5099
5102
  constructor() {
5100
5103
  u(this, "isSearchDrawerOpen", z(!1));
5101
- u(this, "searchModel", ht(new cn()));
5102
- u(this, "searchGroups", ht([]));
5104
+ u(this, "searchModel", ft(new cn()));
5105
+ u(this, "searchGroups", ft([]));
5103
5106
  u(this, "count", 0);
5104
5107
  }
5105
5108
  async Search(e) {
@@ -5271,8 +5274,8 @@ class Rc {
5271
5274
  const Ic = new Rc();
5272
5275
  class Ac {
5273
5276
  constructor() {
5274
- u(this, "Menu", ht(Ic));
5275
- u(this, "Head", ht(kc));
5277
+ u(this, "Menu", ft(Ic));
5278
+ u(this, "Head", ft(kc));
5276
5279
  }
5277
5280
  }
5278
5281
  const $c = new Ac();
@@ -5314,7 +5317,7 @@ class Ec extends gr {
5314
5317
  this.resolve = void 0, this.reject = void 0, super.hide();
5315
5318
  }
5316
5319
  }
5317
- const at = new Ec();
5320
+ const lt = new Ec();
5318
5321
  class Pc extends mr {
5319
5322
  Show() {
5320
5323
  super.show();
@@ -5326,16 +5329,16 @@ class Pc extends mr {
5326
5329
  const Tc = new Pc();
5327
5330
  class St {
5328
5331
  }
5329
- u(St, "Admin", $c), u(St, "Dialog", at), u(St, "Loading", Tc), u(St, "Notify", Pe), u(St, "Btn", Ct), u(St, "Input", hr);
5332
+ u(St, "Admin", $c), u(St, "Dialog", lt), u(St, "Loading", Tc), u(St, "Notify", Pe), u(St, "Btn", Ct), u(St, "Input", hr);
5330
5333
  class W {
5331
5334
  }
5332
- u(W, "Auth", ht(ct)), u(W, "UI", ht(St)), u(W, "Paginator", ht(Yr)), u(W, "FTSP", ti), u(W, "S", xc), u(W, "H", Gu), u(W, "C", $a);
5335
+ u(W, "Auth", ft(dt)), u(W, "UI", ft(St)), u(W, "Paginator", ft(Yr)), u(W, "FTSP", ti), u(W, "S", xc), u(W, "H", Gu), u(W, "C", $a);
5333
5336
  class ro {
5334
5337
  constructor(e) {
5335
5338
  u(this, "id");
5336
5339
  u(this, "num", "");
5337
5340
  u(this, "fileInfoId");
5338
- u(this, "fileInfo", new st());
5341
+ u(this, "fileInfo", new rt());
5339
5342
  W.H.Classes.BuildClass(this, e);
5340
5343
  }
5341
5344
  }
@@ -5380,7 +5383,7 @@ class oo {
5380
5383
  u(this, "id");
5381
5384
  u(this, "num", "");
5382
5385
  u(this, "fileInfoId");
5383
- u(this, "fileInfo", new st());
5386
+ u(this, "fileInfo", new rt());
5384
5387
  W.H.Classes.BuildClass(this, e);
5385
5388
  }
5386
5389
  }
@@ -5605,7 +5608,7 @@ class ts {
5605
5608
  u(this, "answerId");
5606
5609
  u(this, "comment", "");
5607
5610
  u(this, "fileInfoId");
5608
- u(this, "fileInfo", new st());
5611
+ u(this, "fileInfo", new rt());
5609
5612
  W.H.Classes.BuildClass(this, e);
5610
5613
  }
5611
5614
  }
@@ -5619,7 +5622,7 @@ class Et {
5619
5622
  }
5620
5623
  static Create(e, i) {
5621
5624
  const n = new Et();
5622
- return n.id = ft(), n.fieldFillId = e, n.answerVariantId = i, n;
5625
+ return n.id = mt(), n.fieldFillId = e, n.answerVariantId = i, n;
5623
5626
  }
5624
5627
  static GetClassName() {
5625
5628
  return "selectedAnswerVariant";
@@ -5637,7 +5640,7 @@ const is = class $n {
5637
5640
  u(this, "valueOther");
5638
5641
  u(this, "valueNumber");
5639
5642
  u(this, "valueDate");
5640
- u(this, "fileInfo", new st());
5643
+ u(this, "fileInfo", new rt());
5641
5644
  u(this, "fileInfoId");
5642
5645
  u(this, "order", 0);
5643
5646
  u(this, "selectedAnswerVariants", []);
@@ -5656,7 +5659,7 @@ const is = class $n {
5656
5659
  }
5657
5660
  static Create(e, i) {
5658
5661
  const n = new $n();
5659
- return n.id = ft(), n.fieldId = e.id, n.formFillId = i, n.order = e.order, n.valueNumber = 0, n.valueString = "", n.valueDate = /* @__PURE__ */ new Date(), n;
5662
+ return n.id = mt(), n.fieldId = e.id, n.formFillId = i, n.order = e.order, n.valueNumber = 0, n.valueString = "", n.valueDate = /* @__PURE__ */ new Date(), n;
5660
5663
  }
5661
5664
  setString(e) {
5662
5665
  this.valueString = e, this.valueString && (this.filled = this.valueString.length > 0);
@@ -5678,7 +5681,7 @@ const is = class $n {
5678
5681
  }
5679
5682
  addFile() {
5680
5683
  const e = new ts();
5681
- return e.id = ft(), e.answerId = this.id, this.answerFiles.push(e), e;
5684
+ return e.id = mt(), e.answerId = this.id, this.answerFiles.push(e), e;
5682
5685
  }
5683
5686
  getFileInfos() {
5684
5687
  const e = [];
@@ -6246,7 +6249,7 @@ const xd = {
6246
6249
  list: t.fileList,
6247
6250
  "item-key": "id",
6248
6251
  handle: ".move",
6249
- onEnd: l[0] || (l[0] = (h) => p(it).Sort(t.fileList))
6252
+ onEnd: l[0] || (l[0] = (h) => p(nt).Sort(t.fileList))
6250
6253
  }, {
6251
6254
  item: V(({ element: h, index: g }) => [
6252
6255
  f("div", zd, [
@@ -6341,7 +6344,7 @@ const Nd = "p-button", Ud = /* @__PURE__ */ A({
6341
6344
  }),
6342
6345
  emits: /* @__PURE__ */ Me(["change"], ["update:modelValue"]),
6343
6346
  setup(t, { emit: e }) {
6344
- const i = mt(t, "modelValue"), n = e, s = () => {
6347
+ const i = gt(t, "modelValue"), n = e, s = () => {
6345
6348
  n("change", i.value);
6346
6349
  };
6347
6350
  return (r, o) => {
@@ -6399,7 +6402,7 @@ const Nd = "p-button", Ud = /* @__PURE__ */ A({
6399
6402
  }),
6400
6403
  emits: /* @__PURE__ */ Me(["blur", "input"], ["update:modelValue"]),
6401
6404
  setup(t, { emit: e }) {
6402
- const i = e, n = mt(t, "modelValue"), s = (o) => {
6405
+ const i = e, n = gt(t, "modelValue"), s = (o) => {
6403
6406
  const a = o.target.valueAsDate;
6404
6407
  a ? (n.value = a, i("input", r(n.value))) : (n.value = null, i("input", null));
6405
6408
  }, r = (o) => o ? new Date(o.getTime() - o.getTimezoneOffset() * 60 * 1e3).toISOString().split("T")[0] : "";
@@ -6671,7 +6674,7 @@ const dn = /* @__PURE__ */ new WeakMap(), ch = (t, e) => {
6671
6674
  }),
6672
6675
  emits: /* @__PURE__ */ Me(["blur", "input"], ["update:modelValue"]),
6673
6676
  setup(t) {
6674
- const e = mt(t, "modelValue");
6677
+ const e = gt(t, "modelValue");
6675
6678
  return (i, n) => (m(), w("div", {
6676
6679
  class: "text-field",
6677
6680
  style: R({ margin: t.margin, padding: t.padding })
@@ -6723,10 +6726,10 @@ const dn = /* @__PURE__ */ new WeakMap(), ch = (t, e) => {
6723
6726
  }),
6724
6727
  emits: /* @__PURE__ */ Me(["update:modelValue", "change", "beforeChange"], ["update:modelValue"]),
6725
6728
  setup(t, { emit: e }) {
6726
- const i = e, n = mt(t, "modelValue"), s = ut.Format(n.value), r = z(s), o = (a) => {
6729
+ const i = e, n = gt(t, "modelValue"), s = ct.Format(n.value), r = z(s), o = (a) => {
6727
6730
  if (!l(a))
6728
6731
  return;
6729
- const c = ut.FromRuStr(a);
6732
+ const c = ct.FromRuStr(a);
6730
6733
  n.value = c, i("beforeChange", c), i("change", c);
6731
6734
  }, l = (a) => a.length != 10 ? (r.value = s, Pe.Error("Неверный формат даты"), !1) : Number(r.value.slice(0, 2)) > 31 ? (r.value = s, Pe.Error("Неверный день месяца"), !1) : Number(r.value.slice(3, 5)) > 12 ? (r.value = s, Pe.Error("Неверный месяц"), !1) : Number(r.value.slice(6, 10)) > 2100 ? (r.value = s, Pe.Error("Неверный год"), !1) : !0;
6732
6735
  return (a, c) => {
@@ -6740,7 +6743,7 @@ const dn = /* @__PURE__ */ new WeakMap(), ch = (t, e) => {
6740
6743
  }, [
6741
6744
  I(d, {
6742
6745
  modelValue: p(r),
6743
- "onUpdate:modelValue": c[0] || (c[0] = (h) => et(r) ? r.value = h : null),
6746
+ "onUpdate:modelValue": c[0] || (c[0] = (h) => tt(r) ? r.value = h : null),
6744
6747
  mask: "##.##.####",
6745
6748
  placeholder: t.placeholder,
6746
6749
  margin: t.margin,
@@ -6845,7 +6848,7 @@ const dn = /* @__PURE__ */ new WeakMap(), ch = (t, e) => {
6845
6848
  }),
6846
6849
  emits: /* @__PURE__ */ Me(["blur", "input", "change"], ["update:modelValue"]),
6847
6850
  setup(t, { emit: e }) {
6848
- const i = e, n = mt(t, "modelValue"), s = he(() => n.value ?? ""), r = t, o = (c) => {
6851
+ const i = e, n = gt(t, "modelValue"), s = he(() => n.value ?? ""), r = t, o = (c) => {
6849
6852
  const d = c.toString();
6850
6853
  return d.includes(".") ? d.split(".")[1].length : 0;
6851
6854
  }, l = () => {
@@ -6944,7 +6947,7 @@ const dn = /* @__PURE__ */ new WeakMap(), ch = (t, e) => {
6944
6947
  emits: ["open"],
6945
6948
  setup(t, { emit: e }) {
6946
6949
  const i = t, n = e, s = z(i.open);
6947
- tt(
6950
+ it(
6948
6951
  () => i.open,
6949
6952
  () => {
6950
6953
  s.value = !s.value;
@@ -7062,7 +7065,7 @@ const dn = /* @__PURE__ */ new WeakMap(), ch = (t, e) => {
7062
7065
  }),
7063
7066
  emits: /* @__PURE__ */ Me(["change"], ["update:modelValue"]),
7064
7067
  setup(t, { emit: e }) {
7065
- const i = mt(t, "modelValue"), n = e, s = t, r = Ie.GUID(), o = he(() => i.value === s.value), l = () => {
7068
+ const i = gt(t, "modelValue"), n = e, s = t, r = Ie.GUID(), o = he(() => i.value === s.value), l = () => {
7066
7069
  n("change", s.value);
7067
7070
  };
7068
7071
  return (a, c) => (m(), w("div", {
@@ -7136,7 +7139,7 @@ const dn = /* @__PURE__ */ new WeakMap(), ch = (t, e) => {
7136
7139
  emits: ["open"],
7137
7140
  setup(t, { emit: e }) {
7138
7141
  const i = t, n = e, s = z(i.open);
7139
- tt(
7142
+ it(
7140
7143
  () => i.open,
7141
7144
  () => {
7142
7145
  s.value = !s.value;
@@ -7257,7 +7260,7 @@ const dn = /* @__PURE__ */ new WeakMap(), ch = (t, e) => {
7257
7260
  }),
7258
7261
  emits: /* @__PURE__ */ Me(["change", "clear"], ["update:modelValue"]),
7259
7262
  setup(t, { emit: e }) {
7260
- const i = mt(t, "modelValue"), n = z(!0), s = e, r = z(!1), o = () => {
7263
+ const i = gt(t, "modelValue"), n = z(!0), s = e, r = z(!1), o = () => {
7261
7264
  n.value = !1, s("change", i.value);
7262
7265
  }, l = () => {
7263
7266
  i.value = void 0, s("clear", void 0), s("change", void 0), n.value = !0;
@@ -7391,7 +7394,7 @@ const dn = /* @__PURE__ */ new WeakMap(), ch = (t, e) => {
7391
7394
  }),
7392
7395
  emits: /* @__PURE__ */ Me(["blur", "input"], ["update:modelValue"]),
7393
7396
  setup(t) {
7394
- const e = mt(t, "modelValue");
7397
+ const e = gt(t, "modelValue");
7395
7398
  return (i, n) => (m(), w("div", {
7396
7399
  class: "text-field",
7397
7400
  style: R({ margin: t.margin, padding: t.padding })
@@ -7449,7 +7452,7 @@ const dn = /* @__PURE__ */ new WeakMap(), ch = (t, e) => {
7449
7452
  emits: ["open"],
7450
7453
  setup(t, { emit: e }) {
7451
7454
  const i = t, n = e, s = z(i.open);
7452
- tt(
7455
+ it(
7453
7456
  () => i.open,
7454
7457
  () => {
7455
7458
  s.value = !s.value;
@@ -7499,13 +7502,13 @@ const dn = /* @__PURE__ */ new WeakMap(), ch = (t, e) => {
7499
7502
  emits: ["submit"],
7500
7503
  setup(t) {
7501
7504
  const e = () => {
7502
- ct.Form.Reset(), ct.Modal.Close();
7505
+ dt.Form.Reset(), dt.Modal.Close();
7503
7506
  };
7504
7507
  return (i, n) => {
7505
7508
  const s = E("AuthForm"), r = E("PModal");
7506
7509
  return m(), q(r, {
7507
- show: p(ct).Modal.IsVisible(),
7508
- closable: p(ct).Modal.IsClosable(),
7510
+ show: p(dt).Modal.IsVisible(),
7511
+ closable: p(dt).Modal.IsClosable(),
7509
7512
  onClose: e
7510
7513
  }, {
7511
7514
  default: V(() => [
@@ -7575,7 +7578,7 @@ const dn = /* @__PURE__ */ new WeakMap(), ch = (t, e) => {
7575
7578
  ], 2));
7576
7579
  }
7577
7580
  }), So = /* @__PURE__ */ $(ff, [["__scopeId", "data-v-a3c4743c"]]);
7578
- var lt = /* @__PURE__ */ ((t) => (t.None = "None", t.Next = "Next", t.Prev = "Prev", t))(lt || {});
7581
+ var ut = /* @__PURE__ */ ((t) => (t.None = "None", t.Next = "Next", t.Prev = "Prev", t))(ut || {});
7579
7582
  const mf = { class: "container" }, gf = { class: "slide-box" }, pf = { class: "link-number" }, vf = ["id", "onClick"], yf = /* @__PURE__ */ A({
7580
7583
  __name: "CarouselImages",
7581
7584
  props: {
@@ -7610,17 +7613,17 @@ const mf = { class: "container" }, gf = { class: "slide-box" }, pf = { class: "l
7610
7613
  ar((v) => ({
7611
7614
  a8527066: i
7612
7615
  }));
7613
- const e = t, i = `${e.animationTime}ms`, n = z(e.startActiveGroupIndex), s = z(lt.None), r = z(Xr(e.events, e.quantity)), o = he(() => r.value[n.value]);
7616
+ const e = t, i = `${e.animationTime}ms`, n = z(e.startActiveGroupIndex), s = z(ut.None), r = z(Xr(e.events, e.quantity)), o = he(() => r.value[n.value]);
7614
7617
  ri(() => {
7615
7618
  });
7616
7619
  const l = () => n.value = n.value + 1 < r.value.length ? n.value + 1 : 0, a = () => n.value = n.value - 1 < 0 ? r.value.length - 1 : n.value - 1, c = (v) => {
7617
- s.value = v, setTimeout(() => s.value = lt.None, e.animationTime);
7620
+ s.value = v, setTimeout(() => s.value = ut.None, e.animationTime);
7618
7621
  }, d = (v) => {
7619
- v != n.value && (c(v < n.value ? lt.Prev : lt.Next), setTimeout(() => n.value = v, e.animationTime / 2));
7622
+ v != n.value && (c(v < n.value ? ut.Prev : ut.Next), setTimeout(() => n.value = v, e.animationTime / 2));
7620
7623
  }, h = () => {
7621
- c(lt.Next), setTimeout(l, e.animationTime / 2);
7624
+ c(ut.Next), setTimeout(l, e.animationTime / 2);
7622
7625
  }, g = () => {
7623
- c(lt.Prev), setTimeout(a, e.animationTime / 2);
7626
+ c(ut.Prev), setTimeout(a, e.animationTime / 2);
7624
7627
  };
7625
7628
  return (v, C) => (m(), w("div", {
7626
7629
  class: "field",
@@ -7637,8 +7640,8 @@ const mf = { class: "container" }, gf = { class: "slide-box" }, pf = { class: "l
7637
7640
  (m(!0), w(G, null, Ae(p(o), (M, b) => (m(), w("div", {
7638
7641
  key: b,
7639
7642
  class: ie({
7640
- animationnext: p(s) === p(lt).Next,
7641
- animationprev: p(s) === p(lt).Prev
7643
+ animationnext: p(s) === p(ut).Next,
7644
+ animationprev: p(s) === p(ut).Prev
7642
7645
  })
7643
7646
  }, C[3] || (C[3] = [
7644
7647
  f("div", { class: "image" }, [
@@ -7720,7 +7723,7 @@ const mf = { class: "container" }, gf = { class: "slide-box" }, pf = { class: "l
7720
7723
  emits: ["update:start", "update:end", "setStart", "setEnd"],
7721
7724
  setup(t, { emit: e }) {
7722
7725
  const i = t, n = e;
7723
- tt(
7726
+ it(
7724
7727
  () => [i.start, i.end],
7725
7728
  () => {
7726
7729
  i.start || (s.value = void 0), i.end || (r.value = void 0);
@@ -7736,13 +7739,13 @@ const mf = { class: "container" }, gf = { class: "slide-box" }, pf = { class: "l
7736
7739
  return m(), w("div", Sf, [
7737
7740
  I(d, {
7738
7741
  "model-value": p(s),
7739
- "onUpdate:modelValue": c[0] || (c[0] = (h) => et(s) ? s.value = h : null),
7742
+ "onUpdate:modelValue": c[0] || (c[0] = (h) => tt(s) ? s.value = h : null),
7740
7743
  onChange: o
7741
7744
  }, null, 8, ["model-value"]),
7742
7745
  c[2] || (c[2] = Oi(" - ")),
7743
7746
  I(d, {
7744
7747
  "model-value": p(r),
7745
- "onUpdate:modelValue": c[1] || (c[1] = (h) => et(r) ? r.value = h : null),
7748
+ "onUpdate:modelValue": c[1] || (c[1] = (h) => tt(r) ? r.value = h : null),
7746
7749
  onChange: l
7747
7750
  }, null, 8, ["model-value"])
7748
7751
  ]);
@@ -7820,7 +7823,7 @@ const If = /* @__PURE__ */ $(Mf, [["render", Rf], ["__scopeId", "data-v-d28c6f33
7820
7823
  const a = E("PCheckBox");
7821
7824
  return m(), q(a, {
7822
7825
  modelValue: p(n),
7823
- "onUpdate:modelValue": l[0] || (l[0] = (c) => et(n) ? n.value = c : null),
7826
+ "onUpdate:modelValue": l[0] || (l[0] = (c) => tt(n) ? n.value = c : null),
7824
7827
  label: t.model.label,
7825
7828
  size: "mini",
7826
7829
  onChange: r
@@ -7917,7 +7920,7 @@ const If = /* @__PURE__ */ $(Mf, [["render", Rf], ["__scopeId", "data-v-d28c6f33
7917
7920
  const c = E("PSelect");
7918
7921
  return m(), q(c, {
7919
7922
  modelValue: p(s),
7920
- "onUpdate:modelValue": a[0] || (a[0] = (d) => et(s) ? s.value = d : null),
7923
+ "onUpdate:modelValue": a[0] || (a[0] = (d) => tt(s) ? s.value = d : null),
7921
7924
  clearable: p(s),
7922
7925
  placeholder: t.defaultLabel,
7923
7926
  onChange: o
@@ -8920,13 +8923,13 @@ Io.render = function(t, e, i, n, s, r) {
8920
8923
  return [P(t.$slots, "default")];
8921
8924
  }), _: 3 }, 8, ["class"]);
8922
8925
  };
8923
- var Ke = ["left", "right", "top", "bottom"], Mm = ["left", "right"], km = ["top", "bottom"], Rm = ["left", "top"], Im = ["fill-area", "fit-area", "stencil", "none"], er = { left: 0, top: 0, width: 0, height: 0 };
8926
+ var et = ["left", "right", "top", "bottom"], Mm = ["left", "right"], km = ["top", "bottom"], Rm = ["left", "top"], Im = ["fill-area", "fit-area", "stencil", "none"], er = { left: 0, top: 0, width: 0, height: 0 };
8924
8927
  function tr(t, e, i) {
8925
8928
  return !(i = i || ["width", "height", "left", "top"]).some(function(n) {
8926
8929
  return t[n] !== e[n];
8927
8930
  });
8928
8931
  }
8929
- function nt(t) {
8932
+ function st(t) {
8930
8933
  return { left: t.left, top: t.top, right: t.left + t.width, bottom: t.top + t.height };
8931
8934
  }
8932
8935
  function Ut(t, e) {
@@ -8937,12 +8940,12 @@ function Ce(t) {
8937
8940
  }
8938
8941
  function si(t, e) {
8939
8942
  var i = { left: 0, top: 0, right: 0, bottom: 0 };
8940
- return Ke.forEach(function(n) {
8941
- var s = e[n], r = nt(t)[n];
8943
+ return et.forEach(function(n) {
8944
+ var s = e[n], r = st(t)[n];
8942
8945
  i[n] = s !== void 0 && r !== void 0 ? n === "left" || n === "top" ? Math.max(0, s - r) : Math.max(0, r - s) : 0;
8943
8946
  }), i;
8944
8947
  }
8945
- function Qe(t, e) {
8948
+ function Ke(t, e) {
8946
8949
  return { left: t.left - e.left, top: t.top - e.top, width: t.width + e.left + e.right, height: t.height + e.top + e.bottom };
8947
8950
  }
8948
8951
  function Ji(t) {
@@ -9005,7 +9008,7 @@ function Am(t, e) {
9005
9008
  function Eo(t, e, i) {
9006
9009
  i === void 0 && (i = !0);
9007
9010
  var n = {};
9008
- return Ke.forEach(function(s) {
9011
+ return et.forEach(function(s) {
9009
9012
  var r = t[s], o = e[s];
9010
9013
  r !== void 0 && o !== void 0 ? n[s] = s === "left" || s === "top" ? i ? Math.max(r, o) : Math.min(r, o) : i ? Math.min(r, o) : Math.max(r, o) : o !== void 0 ? n[s] = o : r !== void 0 && (n[s] = r);
9011
9014
  }), n;
@@ -9020,7 +9023,7 @@ function ir(t) {
9020
9023
  function nr(t, e) {
9021
9024
  return Math.pow(t.width - e.width, 2) + Math.pow(t.height - e.height, 2);
9022
9025
  }
9023
- function dt(t) {
9026
+ function ht(t) {
9024
9027
  var e = t.width, i = t.height, n = t.sizeRestrictions, s = { minimum: t.aspectRatio && t.aspectRatio.minimum || 0, maximum: t.aspectRatio && t.aspectRatio.maximum || 1 / 0 }, r = { width: Math.max(n.minWidth, Math.min(n.maxWidth, e)), height: Math.max(n.minHeight, Math.min(n.maxHeight, i)) };
9025
9028
  function o(c, d) {
9026
9029
  return d === void 0 && (d = !1), c.reduce(function(h, g) {
@@ -9045,7 +9048,7 @@ function $m(t) {
9045
9048
  return (Array.isArray(i) ? i : [i]).forEach(function(d) {
9046
9049
  var h = {};
9047
9050
  we((h = typeof d == "function" ? d({ coordinates: c, imageSize: n, visibleArea: l }) : d).width) && we(h.height) || (c = function(g, v) {
9048
- var C = N(N(N({}, g), dt({ width: v.width, height: v.height, sizeRestrictions: s, aspectRatio: o })), { left: 0, top: 0 });
9051
+ var C = N(N(N({}, g), ht({ width: v.width, height: v.height, sizeRestrictions: s, aspectRatio: o })), { left: 0, top: 0 });
9049
9052
  return a(C, { left: g.left, top: g.top });
9050
9053
  }(c, N(N({}, c), h))), we(h.left) && we(h.top) || (c = a(c, N(N({}, c), h)));
9051
9054
  }), c;
@@ -9057,9 +9060,9 @@ function Em(t) {
9057
9060
  var r = t.stencilSize, o = t.sizeRestrictions, l = t.positionRestrictions;
9058
9061
  t.stencilReference;
9059
9062
  var a, c, d, h = N({}, n), g = N({}, s), v = N({}, r);
9060
- a = re(v), c = re(h), d === void 0 && (d = 1e-3), (a === 0 || c === 0 ? Math.abs(c - a) < d : Math.abs(c / a) < 1 + d && Math.abs(c / a) > 1 - d) || (h = N(N({}, h), dt({ sizeRestrictions: o, width: h.width, height: h.height, aspectRatio: { minimum: re(v), maximum: re(v) } })));
9063
+ a = re(v), c = re(h), d === void 0 && (d = 1e-3), (a === 0 || c === 0 ? Math.abs(c - a) < d : Math.abs(c / a) < 1 + d && Math.abs(c / a) > 1 - d) || (h = N(N({}, h), ht({ sizeRestrictions: o, width: h.width, height: h.height, aspectRatio: { minimum: re(v), maximum: re(v) } })));
9061
9064
  var C = Xi(g = We(g, h.width * i.width / (g.width * v.width)), e({ visibleArea: g, type: "resize" }));
9062
- return C !== 1 && (g = We(g, C), h = We(h, C)), g = xe(g = Fe(g, Ut(Ce(h), Ce(g))), e({ visibleArea: g, type: "move" })), { coordinates: h = xe(h, Yi(nt(g), l)), visibleArea: g };
9065
+ return C !== 1 && (g = We(g, C), h = We(h, C)), g = xe(g = Fe(g, Ut(Ce(h), Ce(g))), e({ visibleArea: g, type: "move" })), { coordinates: h = xe(h, Yi(st(g), l)), visibleArea: g };
9063
9066
  }
9064
9067
  function Pm(t) {
9065
9068
  var e = t.event, i = t.getAreaRestrictions, n = t.boundaries, s = t.coordinates, r = t.visibleArea;
@@ -9071,7 +9074,7 @@ function Pm(t) {
9071
9074
  var c = { width: 0, height: 0 };
9072
9075
  a.width, n.width, re(n) > re(l) ? (c.height = 0.8 * n.height, c.width = c.height * re(l)) : (c.width = 0.8 * n.width, c.height = c.width * re(l));
9073
9076
  var d = Xi(a = We(a, l.width * n.width / (a.width * c.width)), i({ visibleArea: a, type: "resize" }));
9074
- a = We(a, d), d !== 1 && (c.height /= d, c.width /= d), a = xe(a = Fe(a, Ut(Ce(l), Ce(a))), i({ visibleArea: a, type: "move" })), l = xe(l, Yi(nt(a), o));
9077
+ a = We(a, d), d !== 1 && (c.height /= d, c.width /= d), a = xe(a = Fe(a, Ut(Ce(l), Ce(a))), i({ visibleArea: a, type: "move" })), l = xe(l, Yi(st(a), o));
9075
9078
  }
9076
9079
  return { coordinates: l, visibleArea: a };
9077
9080
  }
@@ -9079,7 +9082,7 @@ function Tm(t) {
9079
9082
  var e = t.event, i = t.coordinates, n = t.visibleArea, s = t.getAreaRestrictions, r = N({}, n), o = N({}, i);
9080
9083
  if (e.type === "setCoordinates") {
9081
9084
  var l = Math.max(0, o.width - r.width), a = Math.max(0, o.height - r.height);
9082
- l > a ? r = We(r, Math.min(o.width / r.width, Wt(r, s({ visibleArea: r, type: "resize" })))) : a > l && (r = We(r, Math.min(o.height / r.height, Wt(r, s({ visibleArea: r, type: "resize" }))))), r = xe(r = Fe(r, Ji(jt(o, nt(r)))), s({ visibleArea: r, type: "move" }));
9085
+ l > a ? r = We(r, Math.min(o.width / r.width, Wt(r, s({ visibleArea: r, type: "resize" })))) : a > l && (r = We(r, Math.min(o.height / r.height, Wt(r, s({ visibleArea: r, type: "resize" }))))), r = xe(r = Fe(r, Ji(jt(o, st(r)))), s({ visibleArea: r, type: "move" }));
9083
9086
  }
9084
9087
  return { visibleArea: r, coordinates: o };
9085
9088
  }
@@ -9089,23 +9092,23 @@ function zm(t) {
9089
9092
  }
9090
9093
  function Om(t) {
9091
9094
  var e = t.imageSize, i = t.visibleArea, n = t.aspectRatio, s = t.sizeRestrictions, r = i || e, o = Math.min(n.maximum || 1 / 0, Math.max(n.minimum || 0, re(r))), l = r.width < r.height ? { width: 0.8 * r.width, height: 0.8 * r.width / o } : { height: 0.8 * r.height, width: 0.8 * r.height * o };
9092
- return dt(N(N({}, l), { aspectRatio: n, sizeRestrictions: s }));
9095
+ return ht(N(N({}, l), { aspectRatio: n, sizeRestrictions: s }));
9093
9096
  }
9094
9097
  function Fm(t) {
9095
9098
  var e, i, n = t.imageSize, s = t.visibleArea, r = t.boundaries, o = t.aspectRatio, l = t.sizeRestrictions, a = t.stencilSize, c = s || n;
9096
- return re(c) > re(r) ? i = (e = a.height * c.height / r.height) * re(a) : e = (i = a.width * c.width / r.width) / re(a), dt({ width: i, height: e, aspectRatio: o, sizeRestrictions: l });
9099
+ return re(c) > re(r) ? i = (e = a.height * c.height / r.height) * re(a) : e = (i = a.width * c.width / r.width) / re(a), ht({ width: i, height: e, aspectRatio: o, sizeRestrictions: l });
9097
9100
  }
9098
9101
  function Lm(t) {
9099
9102
  var e = t.getAreaRestrictions, i = t.coordinates, n = t.imageSize, s = re(t.boundaries);
9100
9103
  if (i) {
9101
- var r = { height: Math.max(i.height, n.height), width: Math.max(i.width, n.width) }, o = Ao({ width: re(r) > s ? r.width : r.height * s, height: re(r) > s ? r.width / s : r.height }, zn(e())), l = { left: i.left + i.width / 2 - o.width / 2, top: i.top + i.height / 2 - o.height / 2, width: o.width, height: o.height }, a = si(i, nt(N({ left: 0, top: 0 }, n))), c = {};
9104
+ var r = { height: Math.max(i.height, n.height), width: Math.max(i.width, n.width) }, o = Ao({ width: re(r) > s ? r.width : r.height * s, height: re(r) > s ? r.width / s : r.height }, zn(e())), l = { left: i.left + i.width / 2 - o.width / 2, top: i.top + i.height / 2 - o.height / 2, width: o.width, height: o.height }, a = si(i, st(N({ left: 0, top: 0 }, n))), c = {};
9102
9105
  return !a.left && !a.right && l.width <= n.width && (c.left = 0, c.right = n.width), !a.top && !a.bottom && l.height <= n.height && (c.top = 0, c.bottom = n.height), xe(l, c);
9103
9106
  }
9104
9107
  var d = re(n);
9105
9108
  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 };
9106
9109
  }
9107
9110
  function wi(t, e) {
9108
- return Eo(t, nt(e));
9111
+ return Eo(t, st(e));
9109
9112
  }
9110
9113
  function Dm(t) {
9111
9114
  var e = t.event, i = t.coordinates, n = t.visibleArea, s = t.sizeRestrictions, r = t.getAreaRestrictions, o = t.positionRestrictions, l = t.adjustStencil, a = e.scale, c = e.move, d = N({}, n), h = N({}, i), g = 1, v = 1, C = a.factor && Math.abs(a.factor - 1) > 1e-3;
@@ -9113,11 +9116,11 @@ function Dm(t) {
9113
9116
  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, Wt(h, o)) }, area: { maximum: Wt(d, r({ visibleArea: d, type: "resize" })) } };
9114
9117
  a.factor && C && (a.factor < 1 ? (v = Math.max(a.factor, M.stencil.minimum)) > 1 && (v = 1) : a.factor > 1 && (v = Math.min(a.factor, Math.min(M.area.maximum, M.stencil.maximum))) < 1 && (v = 1)), v && (d = We(d, v, a.center));
9115
9118
  var b = i.left - n.left, O = n.width + n.left - (i.width + i.left), J = i.top - n.top, X = n.height + n.top - (i.height + i.top);
9116
- return d = xe(d = Fe(d, jt(d, { left: o.left !== void 0 ? o.left - b * v : void 0, top: o.top !== void 0 ? o.top - J * v : void 0, bottom: o.bottom !== void 0 ? o.bottom + X * v : void 0, right: o.right !== void 0 ? o.right + O * v : void 0 })), r({ visibleArea: d, type: "move" })), h.width = h.width * v, h.height = h.height * v, h.left = d.left + b * v, h.top = d.top + J * v, h = xe(h, Yi(nt(d), o)), a.factor && C && l && (a.factor > 1 ? g = Math.min(M.area.maximum, a.factor) / v : a.factor < 1 && (g = Math.max(h.height / d.height, h.width / d.width, a.factor / v)), g !== 1 && (d = Fe(d = xe(d = We(d, g, a.factor > 1 ? a.center : Ce(h)), r({ visibleArea: d, type: "move" })), Ji(jt(h, nt(d)))))), { coordinates: h, visibleArea: d };
9119
+ return d = xe(d = Fe(d, jt(d, { left: o.left !== void 0 ? o.left - b * v : void 0, top: o.top !== void 0 ? o.top - J * v : void 0, bottom: o.bottom !== void 0 ? o.bottom + X * v : void 0, right: o.right !== void 0 ? o.right + O * v : void 0 })), r({ visibleArea: d, type: "move" })), h.width = h.width * v, h.height = h.height * v, h.left = d.left + b * v, h.top = d.top + J * v, h = xe(h, Yi(st(d), o)), a.factor && C && l && (a.factor > 1 ? g = Math.min(M.area.maximum, a.factor) / v : a.factor < 1 && (g = Math.max(h.height / d.height, h.width / d.width, a.factor / v)), g !== 1 && (d = Fe(d = xe(d = We(d, g, a.factor > 1 ? a.center : Ce(h)), r({ visibleArea: d, type: "move" })), Ji(jt(h, st(d)))))), { coordinates: h, visibleArea: d };
9117
9120
  }
9118
9121
  function Bm(t) {
9119
9122
  var e = t.aspectRatio, i = t.getAreaRestrictions, n = t.coordinates, s = t.visibleArea, r = t.sizeRestrictions, o = t.positionRestrictions, l = t.imageSize, a = t.previousImageSize, c = t.angle, d = N({}, n), h = N({}, s), g = yt(Ce(N({ left: 0, top: 0 }, a)), c);
9120
- return (d = N(N({}, dt({ sizeRestrictions: r, aspectRatio: e, width: d.width, height: d.height })), yt(Ce(d), c))).left -= g.left - l.width / 2 + d.width / 2, d.top -= g.top - l.height / 2 + d.height / 2, h = We(h, Xi(h, i({ visibleArea: h, type: "resize" }))), { coordinates: d = xe(d, o), visibleArea: h = xe(h = Fe(h, Ut(Ce(d), Ce(n))), i({ visibleArea: h, type: "move" })) };
9123
+ return (d = N(N({}, ht({ sizeRestrictions: r, aspectRatio: e, width: d.width, height: d.height })), yt(Ce(d), c))).left -= g.left - l.width / 2 + d.width / 2, d.top -= g.top - l.height / 2 + d.height / 2, h = We(h, Xi(h, i({ visibleArea: h, type: "resize" }))), { coordinates: d = xe(d, o), visibleArea: h = xe(h = Fe(h, Ut(Ce(d), Ce(n))), i({ visibleArea: h, type: "move" })) };
9121
9124
  }
9122
9125
  function Hm(t) {
9123
9126
  var e = t.flip, i = t.previousFlip, n = t.rotate, s = t.getAreaRestrictions, r = t.coordinates, o = t.visibleArea, l = t.imageSize, a = N({}, r), c = N({}, o), d = i.horizontal !== e.horizontal, h = i.vertical !== e.vertical;
@@ -9128,27 +9131,27 @@ function Hm(t) {
9128
9131
  return { coordinates: a, visibleArea: c };
9129
9132
  }
9130
9133
  function sr(t) {
9131
- var e = t.directions, i = t.coordinates, n = t.positionRestrictions, s = n === void 0 ? {} : n, r = t.sizeRestrictions, o = t.preserveRatio, l = t.compensate, a = N({}, e), c = Qe(i, a).width, d = Qe(i, a).height;
9134
+ var e = t.directions, i = t.coordinates, n = t.positionRestrictions, s = n === void 0 ? {} : n, r = t.sizeRestrictions, o = t.preserveRatio, l = t.compensate, a = N({}, e), c = Ke(i, a).width, d = Ke(i, a).height;
9132
9135
  c < 0 && (a.left < 0 && a.right < 0 ? (a.left = -(i.width - r.minWidth) / (a.left / a.right), a.right = -(i.width - r.minWidth) / (a.right / a.left)) : a.left < 0 ? a.left = -(i.width - r.minWidth) : a.right < 0 && (a.right = -(i.width - r.minWidth))), d < 0 && (a.top < 0 && a.bottom < 0 ? (a.top = -(i.height - r.minHeight) / (a.top / a.bottom), a.bottom = -(i.height - r.minHeight) / (a.bottom / a.top)) : a.top < 0 ? a.top = -(i.height - r.minHeight) : a.bottom < 0 && (a.bottom = -(i.height - r.minHeight)));
9133
- var h = si(Qe(i, a), s);
9134
- l && (h.left && h.left > 0 && h.right === 0 ? (a.right += h.left, a.left -= h.left) : h.right && h.right > 0 && h.left === 0 && (a.left += h.right, a.right -= h.right), h.top && h.top > 0 && h.bottom === 0 ? (a.bottom += h.top, a.top -= h.top) : h.bottom && h.bottom > 0 && h.top === 0 && (a.top += h.bottom, a.bottom -= h.bottom), h = si(Qe(i, a), s));
9136
+ var h = si(Ke(i, a), s);
9137
+ l && (h.left && h.left > 0 && h.right === 0 ? (a.right += h.left, a.left -= h.left) : h.right && h.right > 0 && h.left === 0 && (a.left += h.right, a.right -= h.right), h.top && h.top > 0 && h.bottom === 0 ? (a.bottom += h.top, a.top -= h.top) : h.bottom && h.bottom > 0 && h.top === 0 && (a.top += h.bottom, a.bottom -= h.bottom), h = si(Ke(i, a), s));
9135
9138
  var g = { width: 1 / 0, height: 1 / 0, left: 1 / 0, right: 1 / 0, top: 1 / 0, bottom: 1 / 0 };
9136
- if (Ke.forEach(function(M) {
9139
+ if (et.forEach(function(M) {
9137
9140
  var b = h[M];
9138
9141
  b && a[M] && (g[M] = Math.max(0, 1 - b / a[M]));
9139
9142
  }), o) {
9140
- var v = Math.min.apply(null, Ke.map(function(M) {
9143
+ var v = Math.min.apply(null, et.map(function(M) {
9141
9144
  return g[M];
9142
9145
  }));
9143
- v !== 1 / 0 && Ke.forEach(function(M) {
9146
+ v !== 1 / 0 && et.forEach(function(M) {
9144
9147
  a[M] *= v;
9145
9148
  });
9146
- } else Ke.forEach(function(M) {
9149
+ } else et.forEach(function(M) {
9147
9150
  g[M] !== 1 / 0 && (a[M] *= g[M]);
9148
9151
  });
9149
- if (c = Qe(i, a).width, d = Qe(i, a).height, a.right + a.left && (c > r.maxWidth ? g.width = (r.maxWidth - i.width) / (a.right + a.left) : c < r.minWidth && (g.width = (r.minWidth - i.width) / (a.right + a.left))), a.bottom + a.top && (d > r.maxHeight ? g.height = (r.maxHeight - i.height) / (a.bottom + a.top) : d < r.minHeight && (g.height = (r.minHeight - i.height) / (a.bottom + a.top))), o) {
9152
+ if (c = Ke(i, a).width, d = Ke(i, a).height, a.right + a.left && (c > r.maxWidth ? g.width = (r.maxWidth - i.width) / (a.right + a.left) : c < r.minWidth && (g.width = (r.minWidth - i.width) / (a.right + a.left))), a.bottom + a.top && (d > r.maxHeight ? g.height = (r.maxHeight - i.height) / (a.bottom + a.top) : d < r.minHeight && (g.height = (r.minHeight - i.height) / (a.bottom + a.top))), o) {
9150
9153
  var C = Math.min(g.width, g.height);
9151
- C !== 1 / 0 && Ke.forEach(function(M) {
9154
+ C !== 1 / 0 && et.forEach(function(M) {
9152
9155
  a[M] *= C;
9153
9156
  });
9154
9157
  } else g.width !== 1 / 0 && Mm.forEach(function(M) {
@@ -9567,7 +9570,7 @@ Do.render = function(t, e, i, n, s, r) {
9567
9570
  }), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
9568
9571
  }), _: 1 }, 8, ["width", "height", "transitions", "class", "handlers", "handlers-component", "handlers-classes", "handlers-wrappers-classes", "lines", "lines-component", "lines-classes", "lines-wrappers-classes", "resizable", "onResize", "onResizeEnd"])], 6);
9569
9572
  };
9570
- var Jm = ["transitions"], rt = Xe("vue-advanced-cropper"), Ln = { name: "Cropper", components: { BackgroundWrapper: Fn }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
9573
+ var Jm = ["transitions"], ot = Xe("vue-advanced-cropper"), Ln = { name: "Cropper", components: { BackgroundWrapper: Fn }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
9571
9574
  return Do;
9572
9575
  } }, backgroundWrapperComponent: { type: [Object, String], default: function() {
9573
9576
  return Fn;
@@ -9579,10 +9582,10 @@ var Jm = ["transitions"], rt = Xe("vue-advanced-cropper"), Ln = { name: "Cropper
9579
9582
  return !(typeof t == "string" && t !== "fill" && t !== "fit");
9580
9583
  } }, 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) {
9581
9584
  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 };
9582
- r.widthFrozen && (a.left = 0, a.right = 0), r.heightFrozen && (a.top = 0, a.bottom = 0), Ke.forEach(function(H) {
9585
+ r.widthFrozen && (a.left = 0, a.right = 0), r.heightFrozen && (a.top = 0, a.bottom = 0), et.forEach(function(H) {
9583
9586
  c[H] || (a[H] = 0);
9584
9587
  });
9585
- var d = Qe(o, a = sr({ coordinates: o, directions: a, sizeRestrictions: r, positionRestrictions: s })).width, h = Qe(o, a).height, g = l.preserveRatio ? re(o) : mn(d / h, n);
9588
+ var d = Ke(o, a = sr({ coordinates: o, directions: a, sizeRestrictions: r, positionRestrictions: s })).width, h = Ke(o, a).height, g = l.preserveRatio ? re(o) : mn(d / h, n);
9586
9589
  if (g) {
9587
9590
  var v = l.respectDirection;
9588
9591
  if (v || (v = o.width >= o.height || g === 1 ? "width" : "height"), v === "width") {
@@ -9600,19 +9603,19 @@ var Jm = ["transitions"], rt = Xe("vue-advanced-cropper"), Ln = { name: "Cropper
9600
9603
  }
9601
9604
  a = sr({ directions: a, coordinates: o, sizeRestrictions: r, positionRestrictions: s, preserveRatio: !0, compensate: l.compensate });
9602
9605
  }
9603
- return d = Qe(o, a).width, h = Qe(o, a).height, (g = l.preserveRatio ? re(o) : mn(d / h, n)) && Math.abs(g - d / h) > 1e-3 && Ke.forEach(function(H) {
9606
+ return d = Ke(o, a).width, h = Ke(o, a).height, (g = l.preserveRatio ? re(o) : mn(d / h, n)) && Math.abs(g - d / h) > 1e-3 && et.forEach(function(H) {
9604
9607
  c[H] || (a[H] = 0);
9605
9608
  }), On({ event: new ss({ 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 });
9606
9609
  } }, moveAlgorithm: { type: Function, default: On }, initStretcher: { type: Function, default: function(t) {
9607
9610
  var e = t.stretcher, i = t.imageSize, n = re(i);
9608
9611
  e.style.width = i.width + "px", e.style.height = e.clientWidth / n + "px", e.style.width = e.clientWidth + "px";
9609
9612
  } }, fitCoordinates: { type: Function, default: function(t) {
9610
- var e = t.visibleArea, i = t.coordinates, n = t.aspectRatio, s = t.sizeRestrictions, r = t.positionRestrictions, o = N(N({}, i), dt({ 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) } }));
9611
- return o = xe(o = Fe(o, Ut(Ce(i), Ce(o))), Yi(nt(e), r));
9613
+ var e = t.visibleArea, i = t.coordinates, n = t.aspectRatio, s = t.sizeRestrictions, r = t.positionRestrictions, o = N(N({}, 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) } }));
9614
+ return o = xe(o = Fe(o, Ut(Ce(i), Ce(o))), Yi(st(e), r));
9612
9615
  } }, fitVisibleArea: { type: Function, default: function(t) {
9613
9616
  var e = t.visibleArea, i = t.boundaries, n = t.getAreaRestrictions, s = t.coordinates, r = N({}, e);
9614
9617
  r.height = r.width / re(i), r.top += (e.height - r.height) / 2, (s.height - r.height > 0 || s.width - r.width > 0) && (r = We(r, Math.max(s.height / r.height, s.width / r.width)));
9615
- var o = Ji(jt(s, nt(r = We(r, Xi(r, n({ visibleArea: r, type: "resize" }))))));
9618
+ var o = Ji(jt(s, st(r = We(r, Xi(r, n({ visibleArea: r, type: "resize" }))))));
9616
9619
  return r.width < s.width && (o.left = 0), r.height < s.height && (o.top = 0), r = xe(r = Fe(r, o), n({ visibleArea: r, type: "move" }));
9617
9620
  } }, areaRestrictionsAlgorithm: { type: Function, default: function(t) {
9618
9621
  var e = t.visibleArea, i = t.boundaries, n = t.imageSize, s = t.imageRestriction, r = t.type, o = {};
@@ -9662,7 +9665,7 @@ var Jm = ["transitions"], rt = Xe("vue-advanced-cropper"), Ln = { name: "Cropper
9662
9665
  }, positionRestrictions: function() {
9663
9666
  return this.positionRestrictionsAlgorithm({ imageSize: this.imageSize, imageRestriction: this.imageRestriction });
9664
9667
  }, classes: function() {
9665
- return { cropper: rt(), image: pe(rt("image"), this.imageClass), stencil: rt("stencil"), boundaries: pe(rt("boundaries"), this.boundariesClass), stretcher: pe(rt("stretcher")), background: pe(rt("background"), this.backgroundClass), foreground: pe(rt("foreground"), this.foregroundClass), imageWrapper: pe(rt("image-wrapper")), cropperWrapper: pe(rt("cropper-wrapper")) };
9668
+ return { cropper: ot(), image: pe(ot("image"), this.imageClass), stencil: ot("stencil"), boundaries: pe(ot("boundaries"), this.boundariesClass), stretcher: pe(ot("stretcher")), background: pe(ot("background"), this.backgroundClass), foreground: pe(ot("foreground"), this.foregroundClass), imageWrapper: pe(ot("image-wrapper")), cropperWrapper: pe(ot("cropper-wrapper")) };
9666
9669
  }, stencilCoordinates: function() {
9667
9670
  if (this.initialized) {
9668
9671
  var t = this.coordinates, e = t.width, i = t.height, n = t.left, s = t.top;
@@ -9758,7 +9761,7 @@ var Jm = ["transitions"], rt = Xe("vue-advanced-cropper"), Ln = { name: "Cropper
9758
9761
  if (i.type === "manipulateImage") return N(N({}, i), { move: { left: i.move && i.move.left ? s * i.move.left : 0, top: i.move && i.move.top ? s * i.move.top : 0 }, scale: { factor: i.scale && i.scale.factor ? i.scale.factor : 1, center: i.scale && i.scale.center ? { left: i.scale.center.left * s + n.left, top: i.scale.center.top * s + n.top } : null } });
9759
9762
  if (i.type === "resize") {
9760
9763
  var r = N(N({}, i), { directions: N({}, i.directions) });
9761
- return Ke.forEach(function(l) {
9764
+ return et.forEach(function(l) {
9762
9765
  r.directions[l] *= s;
9763
9766
  }), r;
9764
9767
  }
@@ -9782,7 +9785,7 @@ var Jm = ["transitions"], rt = Xe("vue-advanced-cropper"), Ln = { name: "Cropper
9782
9785
  return c = a, !Number.isNaN(parseFloat(c)) && isFinite(c);
9783
9786
  var c;
9784
9787
  });
9785
- }, r = dt({ sizeRestrictions: { minWidth: s([n.width, n.minWidth]) || 0, minHeight: s([n.height, n.minHeight]) || 0, maxWidth: s([n.width, n.maxWidth]) || 1 / 0, maxHeight: s([n.height, n.maxHeight]) || 1 / 0 }, width: this.coordinates.width, height: this.coordinates.height, aspectRatio: { minimum: this.coordinates.width / this.coordinates.height, maximum: this.coordinates.width / this.coordinates.height } });
9788
+ }, r = ht({ sizeRestrictions: { minWidth: s([n.width, n.minWidth]) || 0, minHeight: s([n.height, n.minHeight]) || 0, maxWidth: s([n.width, n.maxWidth]) || 1 / 0, maxHeight: s([n.height, n.maxHeight]) || 1 / 0 }, width: this.coordinates.width, height: this.coordinates.height, aspectRatio: { minimum: this.coordinates.width / this.coordinates.height, maximum: this.coordinates.width / this.coordinates.height } });
9786
9789
  if (n.maxArea && r.width * r.height > n.maxArea) {
9787
9790
  var o = Math.sqrt(n.maxArea / (r.width * r.height));
9788
9791
  r = { width: Math.round(o * r.width), height: Math.round(o * r.height) };
@@ -9970,7 +9973,7 @@ var Jm = ["transitions"], rt = Xe("vue-advanced-cropper"), Ln = { name: "Cropper
9970
9973
  }
9971
9974
  return { minimum: e, maximum: i };
9972
9975
  }, getStencilSize: function() {
9973
- if (this.stencilSize) return t = { currentStencilSize: { width: this.stencilCoordinates.width, height: this.stencilCoordinates.height }, stencilSize: this.stencilSize, boundaries: this.boundaries, coefficient: this.coefficient, coordinates: this.coordinates, aspectRatio: this.getAspectRatio(!0) }, e = t.boundaries, i = t.stencilSize, n = t.aspectRatio, mn(re(s = Ft(i) ? i({ boundaries: e, aspectRatio: n }) : i), n) && (s = dt({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: n.minimum, maximum: n.maximum } })), (s.width > e.width || s.height > e.height) && (s = dt({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: re(s), maximum: re(s) } })), s;
9976
+ if (this.stencilSize) return t = { currentStencilSize: { width: this.stencilCoordinates.width, height: this.stencilCoordinates.height }, stencilSize: this.stencilSize, boundaries: this.boundaries, coefficient: this.coefficient, coordinates: this.coordinates, aspectRatio: this.getAspectRatio(!0) }, e = t.boundaries, i = t.stencilSize, n = t.aspectRatio, mn(re(s = Ft(i) ? i({ boundaries: e, aspectRatio: n }) : i), n) && (s = ht({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: n.minimum, maximum: n.maximum } })), (s.width > e.width || s.height > e.height) && (s = ht({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: re(s), maximum: re(s) } })), s;
9974
9977
  var t, e, i, n, s;
9975
9978
  }, getPublicProperties: function() {
9976
9979
  return { coefficient: this.coefficient, visibleArea: this.visibleArea, coordinates: this.coordinates, boundaries: this.boundaries, sizeRestrictions: this.sizeRestrictions, positionRestrictions: this.positionRestrictions, aspectRatio: this.getAspectRatio(), imageRestriction: this.imageRestriction };
@@ -10053,7 +10056,7 @@ const Qm = { class: "background-container" }, Km = { class: "tools-line" }, eg =
10053
10056
  default: V(() => [
10054
10057
  I(M, {
10055
10058
  modelValue: p(r),
10056
- "onUpdate:modelValue": C[0] || (C[0] = (H) => et(r) ? r.value = H : null),
10059
+ "onUpdate:modelValue": C[0] || (C[0] = (H) => tt(r) ? r.value = H : null),
10057
10060
  label: "Пропорции изображения",
10058
10061
  onChange: o
10059
10062
  }, {
@@ -10152,7 +10155,7 @@ const Qm = { class: "background-container" }, Km = { class: "tools-line" }, eg =
10152
10155
  emits: ["click", "keyup-enter", "after-close"],
10153
10156
  setup(t, { emit: e }) {
10154
10157
  const i = t, n = e, s = i.customClass !== "" ? i.customClass : "inside-class", r = z(!1), o = z(!1), l = z(!1), a = z(i.close);
10155
- tt(
10158
+ it(
10156
10159
  () => i.close,
10157
10160
  () => {
10158
10161
  o.value = !1;
@@ -10161,7 +10164,7 @@ const Qm = { class: "background-container" }, Km = { class: "tools-line" }, eg =
10161
10164
  const c = (H) => {
10162
10165
  H.stopPropagation(), H.key === "Escape" && (i.showSaveDialog ? l.value = !0 : o.value = !1);
10163
10166
  };
10164
- tt(o, async () => {
10167
+ it(o, async () => {
10165
10168
  var H, ne;
10166
10169
  await ha(), o.value ? ((ne = (H = document.getElementById("info-item-opened-content")) == null ? void 0 : H.querySelector("input")) == null || ne.focus(), document.body.addEventListener("keydown", c)) : document.body.removeEventListener("keydown", c, !1), o.value === !1 && n("after-close");
10167
10170
  });
@@ -10207,7 +10210,7 @@ const Qm = { class: "background-container" }, Km = { class: "tools-line" }, eg =
10207
10210
  o.value = !1, l.value = !1;
10208
10211
  };
10209
10212
  return (H, ne) => {
10210
- const Be = E("PString"), He = E("PButton"), gt = E("PModal"), zt = lr("click-outside");
10213
+ const Be = E("PString"), He = E("PButton"), pt = E("PModal"), zt = lr("click-outside");
10211
10214
  return m(), w(G, null, [
10212
10215
  p(o) ? (m(), w("div", sg)) : Y("", !0),
10213
10216
  f("div", {
@@ -10261,7 +10264,7 @@ const Qm = { class: "background-container" }, Km = { class: "tools-line" }, eg =
10261
10264
  ], 4)
10262
10265
  ], 38)
10263
10266
  ], 4),
10264
- I(gt, {
10267
+ I(pt, {
10265
10268
  show: p(l),
10266
10269
  title: "У вас остались несохраненные изменения, вы уверены что хотите закрыть окно?"
10267
10270
  }, {
@@ -10398,7 +10401,7 @@ const Qm = { class: "background-container" }, Km = { class: "tools-line" }, eg =
10398
10401
  const e = z(t.initActiveIdx), i = (n) => {
10399
10402
  e.value = n;
10400
10403
  };
10401
- return tt(
10404
+ return it(
10402
10405
  () => t.initActiveIdx,
10403
10406
  () => {
10404
10407
  i(t.initActiveIdx);
@@ -10765,7 +10768,7 @@ const Mg = /* @__PURE__ */ $(bg, [["render", xg], ["__scopeId", "data-v-0ea9a95f
10765
10768
  },
10766
10769
  emits: ["submit"],
10767
10770
  setup(t, { emit: e }) {
10768
- const i = ct.Form, n = z(!1), s = e, r = he(() => i.GetButtons()), o = async (l) => {
10771
+ const i = dt.Form, n = z(!1), s = e, r = he(() => i.GetButtons()), o = async (l) => {
10769
10772
  if (!l.submit)
10770
10773
  return i.SetStatus(l.GetStatus());
10771
10774
  i.Validate().length > 0 || s("submit");
@@ -10778,9 +10781,9 @@ const Mg = /* @__PURE__ */ $(bg, [["render", xg], ["__scopeId", "data-v-0ea9a95f
10778
10781
  class: "auth-card",
10779
10782
  style: R({ width: t.width, margin: t.margin, padding: t.padding })
10780
10783
  }, [
10781
- f("div", null, ve(p(ct).Form.GetTitle()), 1),
10784
+ f("div", null, ve(p(dt).Form.GetTitle()), 1),
10782
10785
  f("div", null, [
10783
- (m(!0), w(G, null, Ae(p(ct).Form.GetFields(), (h) => (m(), q(c, {
10786
+ (m(!0), w(G, null, Ae(p(dt).Form.GetFields(), (h) => (m(), q(c, {
10784
10787
  id: h.id,
10785
10788
  key: h,
10786
10789
  modelValue: h.value,
@@ -10983,7 +10986,7 @@ const Mg = /* @__PURE__ */ $(bg, [["render", xg], ["__scopeId", "data-v-0ea9a95f
10983
10986
  fileInfo: {
10984
10987
  type: Object,
10985
10988
  required: !1,
10986
- default: new st()
10989
+ default: new rt()
10987
10990
  },
10988
10991
  formats: {
10989
10992
  type: Array,
@@ -11152,7 +11155,7 @@ const Mg = /* @__PURE__ */ $(bg, [["render", xg], ["__scopeId", "data-v-0ea9a95f
11152
11155
  return m(), w("div", np, [
11153
11156
  I(g, {
11154
11157
  modelValue: p(s),
11155
- "onUpdate:modelValue": d[0] || (d[0] = (v) => et(s) ? s.value = v : null),
11158
+ "onUpdate:modelValue": d[0] || (d[0] = (v) => tt(s) ? s.value = v : null),
11156
11159
  placeholder: "Найти",
11157
11160
  onInput: o
11158
11161
  }, {
@@ -11176,7 +11179,7 @@ const Mg = /* @__PURE__ */ $(bg, [["render", xg], ["__scopeId", "data-v-0ea9a95f
11176
11179
  __name: "PDialog",
11177
11180
  setup(t) {
11178
11181
  const e = he(() => {
11179
- switch (at.GetType()) {
11182
+ switch (lt.GetType()) {
11180
11183
  case "info":
11181
11184
  return "message primary";
11182
11185
  case "success":
@@ -11193,26 +11196,26 @@ const Mg = /* @__PURE__ */ $(bg, [["render", xg], ["__scopeId", "data-v-0ea9a95f
11193
11196
  const s = E("MessageBody"), r = E("PButton");
11194
11197
  return m(), q(cr, { name: "fade" }, {
11195
11198
  default: V(() => [
11196
- p(at).IsVisible() ? (m(), w("div", {
11199
+ p(lt).IsVisible() ? (m(), w("div", {
11197
11200
  key: 0,
11198
11201
  class: ie(p(e))
11199
11202
  }, [
11200
11203
  I(s, {
11201
- title: p(at).GetTitle(),
11202
- text: p(at).GetText()
11204
+ title: p(lt).GetTitle(),
11205
+ text: p(lt).GetText()
11203
11206
  }, null, 8, ["title", "text"]),
11204
11207
  f("div", up, [
11205
11208
  I(r, {
11206
11209
  type: "primary",
11207
- text: p(at).GetConfirmButtonText(),
11210
+ text: p(lt).GetConfirmButtonText(),
11208
11211
  margin: "10px 0 0 0",
11209
- onClick: n[0] || (n[0] = (o) => p(at).Submit())
11212
+ onClick: n[0] || (n[0] = (o) => p(lt).Submit())
11210
11213
  }, null, 8, ["text"]),
11211
11214
  I(r, {
11212
11215
  type: "warning",
11213
- text: p(at).GetCancelButtonText(),
11216
+ text: p(lt).GetCancelButtonText(),
11214
11217
  margin: "10px 0 0 0",
11215
- onClick: n[1] || (n[1] = (o) => p(at).Cancel())
11218
+ onClick: n[1] || (n[1] = (o) => p(lt).Cancel())
11216
11219
  }, null, 8, ["text"])
11217
11220
  ])
11218
11221
  ], 2)) : Y("", !0)
@@ -11229,7 +11232,7 @@ const Mg = /* @__PURE__ */ $(bg, [["render", xg], ["__scopeId", "data-v-0ea9a95f
11229
11232
  },
11230
11233
  emits: ["update:modelValue"],
11231
11234
  setup(t) {
11232
- const e = mt(t, "modelValue"), i = async () => {
11235
+ const e = gt(t, "modelValue"), i = async () => {
11233
11236
  };
11234
11237
  return (n, s) => {
11235
11238
  const r = E("PInput");
@@ -11321,7 +11324,7 @@ const pp = /* @__PURE__ */ $(mp, [["render", gp], ["__scopeId", "data-v-0f1f2f84
11321
11324
  r.setCurPage(g), ti.Get().p.offset = (g - 1) * r.limit, await i.store.FTSP(), h();
11322
11325
  }, d = he(() => {
11323
11326
  const g = r.pagesCount();
11324
- return g < 8 ? it.GenerateNumsRange(2, g - 1).filter((v) => v < g && v > 1) : it.GenerateNumsRange(r.curPage - 2, r.curPage + 3).filter((v) => v < g && v > 1);
11327
+ return g < 8 ? nt.GenerateNumsRange(2, g - 1).filter((v) => v < g && v > 1) : nt.GenerateNumsRange(r.curPage - 2, r.curPage + 3).filter((v) => v < g && v > 1);
11325
11328
  }), h = () => {
11326
11329
  const g = document.querySelector(".el-table__body-wrapper"), v = document.querySelector("#list");
11327
11330
  g ? g.scrollTo({ top: 0 }) : v && v.scrollTo({ top: 0 });
@@ -11456,7 +11459,7 @@ const pp = /* @__PURE__ */ $(mp, [["render", gp], ["__scopeId", "data-v-0f1f2f84
11456
11459
  emits: ["select", "load", "input"],
11457
11460
  setup(t, { emit: e }) {
11458
11461
  const i = t, n = e, s = z(i.modelValue), r = z(), o = io.SearchModel();
11459
- tt(
11462
+ it(
11460
11463
  () => i.focus,
11461
11464
  () => {
11462
11465
  i.focus && setTimeout(() => {
@@ -11481,7 +11484,7 @@ const pp = /* @__PURE__ */ $(mp, [["render", gp], ["__scopeId", "data-v-0f1f2f84
11481
11484
  ref_key: "searchForm",
11482
11485
  ref: r,
11483
11486
  modelValue: p(s),
11484
- "onUpdate:modelValue": h[0] || (h[0] = (v) => et(s) ? s.value = v : null),
11487
+ "onUpdate:modelValue": h[0] || (h[0] = (v) => tt(s) ? s.value = v : null),
11485
11488
  "value-key": "label",
11486
11489
  style: { width: "100%", "margin-right": "10px" },
11487
11490
  placeholder: t.placeholder,
@@ -11572,7 +11575,7 @@ const pp = /* @__PURE__ */ $(mp, [["render", gp], ["__scopeId", "data-v-0f1f2f84
11572
11575
  emits: ["toggle"],
11573
11576
  setup(t, { emit: e }) {
11574
11577
  const i = t, n = e, s = z(!1);
11575
- tt(
11578
+ it(
11576
11579
  () => i.toggle,
11577
11580
  () => {
11578
11581
  s.value = !s.value;
@@ -11889,7 +11892,7 @@ const pp = /* @__PURE__ */ $(mp, [["render", gp], ["__scopeId", "data-v-0f1f2f84
11889
11892
  return p(i) ? (m(), q(c, {
11890
11893
  key: 0,
11891
11894
  modelValue: p(s),
11892
- "onUpdate:modelValue": a[0] || (a[0] = (h) => et(s) ? s.value = h : null),
11895
+ "onUpdate:modelValue": a[0] || (a[0] = (h) => tt(s) ? s.value = h : null),
11893
11896
  "popper-append-to-body": !1,
11894
11897
  clearable: !((d = p(s)) != null && d.default),
11895
11898
  "value-key": "label",
@@ -11931,7 +11934,7 @@ const pp = /* @__PURE__ */ $(mp, [["render", gp], ["__scopeId", "data-v-0f1f2f84
11931
11934
  const a = E("PSelect");
11932
11935
  return m(), q(a, {
11933
11936
  modelValue: p(n),
11934
- "onUpdate:modelValue": l[0] || (l[0] = (d) => et(n) ? n.value = d : null),
11937
+ "onUpdate:modelValue": l[0] || (l[0] = (d) => tt(n) ? n.value = d : null),
11935
11938
  "popper-append-to-body": !1,
11936
11939
  clearable: !((c = p(n)) != null && c.default),
11937
11940
  "value-key": "label",
@@ -12113,7 +12116,7 @@ const l1 = /* @__PURE__ */ $(r1, [["render", a1], ["__scopeId", "data-v-5023d414
12113
12116
  emits: ["toggle"],
12114
12117
  setup(t, { emit: e }) {
12115
12118
  const i = t, n = e, s = z(!0);
12116
- tt(
12119
+ it(
12117
12120
  () => i.toggle,
12118
12121
  () => {
12119
12122
  s.value = !s.value;
@@ -12169,7 +12172,7 @@ const l1 = /* @__PURE__ */ $(r1, [["render", a1], ["__scopeId", "data-v-5023d414
12169
12172
  default: !0
12170
12173
  },
12171
12174
  fileInfo: {
12172
- type: st,
12175
+ type: rt,
12173
12176
  required: !0
12174
12177
  },
12175
12178
  height: {
@@ -12314,7 +12317,7 @@ export {
12314
12317
  qd as AdminGallery,
12315
12318
  cm as ArrowLeft,
12316
12319
  hm as ArrowRight,
12317
- ct as Auth,
12320
+ dt as Auth,
12318
12321
  Ms as AuthButtonLogin,
12319
12322
  ks as AuthButtonRegister,
12320
12323
  Wg as AuthForm,