sprof 0.0.85 → 0.0.87

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 Jo = Object.defineProperty;
2
2
  var Xo = (t, e, i) => e in t ? Jo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
3
3
  var u = (t, e, i) => Xo(t, typeof e != "symbol" ? e + "" : e, i);
4
- import { defineComponent as $, ref as z, onBeforeMount as it, openBlock as m, createElementBlock as b, Fragment as W, renderSlot as T, unref as p, createElementVNode as f, normalizeStyle as I, createCommentVNode as K, resolveComponent as E, createVNode as A, withCtx as j, withModifiers as Ae, withDirectives as Ne, vModelText as zn, computed as ge, mergeProps as It, createTextVNode as $i, toDisplayString as pe, mergeModels as Te, useModel as gt, vModelCheckbox as Yo, vModelDynamic as Qo, isRef as Ve, withKeys as Ko, normalizeClass as ne, watch as et, createBlock as q, vModelRadio as ea, vShow as On, vModelSelect as ta, useCssVars as Ks, onMounted as ei, renderList as Re, resolveDirective as er, createStaticVNode as tr, resolveDynamicComponent as Zt, nextTick as ia, onUpdated as na, onBeforeUnmount as Ln, onUnmounted as ir, Transition as nr, reactive as lt, getCurrentInstance as sa, inject as ra, onDeactivated as oa, onActivated as aa } from "vue";
4
+ import { defineComponent as $, ref as z, onBeforeMount as it, openBlock as m, createElementBlock as b, Fragment as W, renderSlot as T, unref as p, createElementVNode as f, normalizeStyle as I, createCommentVNode as K, resolveComponent as E, createVNode as A, withCtx as j, withModifiers as Ae, withDirectives as Ne, vModelText as zn, computed as ge, mergeProps as It, createTextVNode as $i, toDisplayString as pe, mergeModels as Te, useModel as gt, vModelCheckbox as Yo, vModelDynamic as Qo, isRef as Ve, withKeys as Ko, normalizeClass as ne, watch as et, createBlock as q, vModelRadio as ea, vShow as On, vModelSelect as ta, useCssVars as Ks, onMounted as ei, renderList as Re, resolveDirective as er, createStaticVNode as tr, resolveDynamicComponent as Zt, nextTick as ia, onUpdated as na, onBeforeUnmount as Ln, onUnmounted as ir, Transition as nr, reactive as at, getCurrentInstance as sa, inject as ra, onDeactivated as oa, onActivated as aa } from "vue";
5
5
  const la = {
6
6
  key: 0,
7
7
  class: "mainblock"
@@ -733,7 +733,7 @@ const Qi = /* @__PURE__ */ new WeakMap(), Ja = (t, e) => {
733
733
  ], 4));
734
734
  }
735
735
  }), tl = /* @__PURE__ */ P(el, [["__scopeId", "data-v-4e2bdb1a"]]), il = ["ВС", "ПН", "ВТ", "СР", "ЧТ", "ПТ", "СБ"], nl = "ru-RU";
736
- class ot {
736
+ class rt {
737
737
  constructor() {
738
738
  u(this, "locale", "ru-RU");
739
739
  }
@@ -758,11 +758,11 @@ class ot {
758
758
  return this.GetPeriod(n, s, e || { month: "2-digit", day: "numeric", year: void 0 });
759
759
  }
760
760
  static GetDurationInDay(e, i) {
761
- const n = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date(), r = ot.SplitHourTime(e), o = ot.SplitHourTime(i);
761
+ const n = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date(), r = rt.SplitHourTime(e), o = rt.SplitHourTime(i);
762
762
  return n.setHours(r[0], r[1], 0, 0), s.setHours(o[0], o[1], 0, 0), (s.getTime() - n.getTime()) / 1e3 / 60;
763
763
  }
764
764
  static HourTimeinMunutes(e) {
765
- const i = ot.SplitHourTime(e);
765
+ const i = rt.SplitHourTime(e);
766
766
  return i[0] * 60 + i[1];
767
767
  }
768
768
  static SplitHourTime(e) {
@@ -770,7 +770,7 @@ class ot {
770
770
  return [Number(i[0]), Number(i[1])];
771
771
  }
772
772
  static AddMinutesToHM(e, i) {
773
- const n = /* @__PURE__ */ new Date(), s = ot.SplitHourTime(e);
773
+ const n = /* @__PURE__ */ new Date(), s = rt.SplitHourTime(e);
774
774
  n.setHours(s[0], s[1], 0, 0);
775
775
  const r = new Date(n.getTime() + i * 6e4), o = r.getHours(), l = r.getMinutes();
776
776
  return `${o}:${l}`;
@@ -792,7 +792,7 @@ class ot {
792
792
  const n = [new Date(e)];
793
793
  let s = e;
794
794
  for (; s <= i; )
795
- s = ot.AddDays(s, 1), n.push(s);
795
+ s = rt.AddDays(s, 1), n.push(s);
796
796
  return n;
797
797
  }
798
798
  static AddDays(e, i) {
@@ -819,10 +819,10 @@ const sl = /* @__PURE__ */ $({
819
819
  }),
820
820
  emits: /* @__PURE__ */ Te(["update:modelValue", "change", "beforeChange"], ["update:modelValue"]),
821
821
  setup(t, { emit: e }) {
822
- const i = e, n = gt(t, "modelValue"), s = ot.Format(n.value), r = z(s), o = (a) => {
822
+ const i = e, n = gt(t, "modelValue"), s = rt.Format(n.value), r = z(s), o = (a) => {
823
823
  if (!l(a))
824
824
  return;
825
- const c = ot.FromRuStr(a);
825
+ const c = rt.FromRuStr(a);
826
826
  n.value = c, i("beforeChange", c), i("change", c);
827
827
  }, l = (a) => a.length != 10 ? (r.value = s, M.UI.Notify.Error("Неверный формат даты"), !1) : Number(r.value.slice(0, 2)) > 31 ? (r.value = s, M.UI.Notify.Error("Неверный день месяца"), !1) : Number(r.value.slice(3, 5)) > 12 ? (r.value = s, M.UI.Notify.Error("Неверный месяц"), !1) : Number(r.value.slice(6, 10)) > 2100 ? (r.value = s, M.UI.Notify.Error("Неверный год"), !1) : !0;
828
828
  return (a, c) => {
@@ -1925,7 +1925,7 @@ function wu(t, e = 0) {
1925
1925
  const bu = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Cs = {
1926
1926
  randomUUID: bu
1927
1927
  };
1928
- function ut(t, e, i) {
1928
+ function lt(t, e, i) {
1929
1929
  if (Cs.randomUUID && !e && !t)
1930
1930
  return Cs.randomUUID();
1931
1931
  t = t || {};
@@ -2046,12 +2046,12 @@ var Ms;
2046
2046
  return V(k) || (k = Xe(k)), ss(w, C, k);
2047
2047
  }
2048
2048
  e("getMetadata", De);
2049
- function ct(w, C, k) {
2049
+ function ut(w, C, k) {
2050
2050
  if (!he(C))
2051
2051
  throw new TypeError();
2052
2052
  return V(k) || (k = Xe(k)), rs(w, C, k);
2053
2053
  }
2054
- e("getOwnMetadata", ct);
2054
+ e("getOwnMetadata", ut);
2055
2055
  function Rt(w, C) {
2056
2056
  if (!he(w))
2057
2057
  throw new TypeError();
@@ -2746,7 +2746,7 @@ var Ms;
2746
2746
  })(Ms || (Ms = {}));
2747
2747
  class Ge {
2748
2748
  static UUID() {
2749
- return ut();
2749
+ return lt();
2750
2750
  }
2751
2751
  static GUID() {
2752
2752
  const e = function() {
@@ -2973,11 +2973,11 @@ const lr = class Pt {
2973
2973
  }
2974
2974
  static CreateFilterModel(e, i, n) {
2975
2975
  const s = new Pt();
2976
- return s.id = ut(), s.model = typeof e == "string" ? e : e.GetClassName(), s.col = i ?? "", s.type = n, s.type === ce.Number && (s.value1 = "0"), s.type === ce.String && (s.value1 = ""), s.type === ce.Boolean && (s.value1 = "false"), s;
2976
+ return s.id = lt(), s.model = typeof e == "string" ? e : e.GetClassName(), s.col = i ?? "", s.type = n, s.type === ce.Number && (s.value1 = "0"), s.type === ce.String && (s.value1 = ""), s.type === ce.Boolean && (s.value1 = "false"), s;
2977
2977
  }
2978
2978
  static CreateFilterModelWithJoin(e, i, n, s, r, o, l, a) {
2979
2979
  const c = new Pt();
2980
- return c.id = ut(), c.joinTable = n, c.joinTablePk = s, c.joinTableFk = r, c.col = i, c.type = o, l && (c.joinTableId = l), a && (c.joinTableIdCol = a), c;
2980
+ return c.id = lt(), c.joinTable = n, c.joinTablePk = s, c.joinTableFk = r, c.col = i, c.type = o, l && (c.joinTableId = l), a && (c.joinTableIdCol = a), c;
2981
2981
  }
2982
2982
  static CreateFilterModelWithJoinV2(e, i, n, s, r, o, l) {
2983
2983
  const a = new Pt();
@@ -2985,7 +2985,7 @@ const lr = class Pt {
2985
2985
  }
2986
2986
  static OnlyIfSecondModelExists(e, i) {
2987
2987
  const n = new Pt();
2988
- return n.id = ut(), n.model = we.ToCamelCase(e.GetClassName()), n.joinTableModel = we.ToCamelCase(i.GetClassName()), n.type = ce.Join, n;
2988
+ return n.id = lt(), n.model = we.ToCamelCase(e.GetClassName()), n.joinTableModel = we.ToCamelCase(i.GetClassName()), n.type = ce.Join, n;
2989
2989
  }
2990
2990
  addToSet(...e) {
2991
2991
  e.forEach((i) => {
@@ -4253,7 +4253,7 @@ function Es(t) {
4253
4253
  function Ts(t, e) {
4254
4254
  return Math.pow(t.width - e.width, 2) + Math.pow(t.height - e.height, 2);
4255
4255
  }
4256
- function at(t) {
4256
+ function ot(t) {
4257
4257
  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)) };
4258
4258
  function o(c, d) {
4259
4259
  return d === void 0 && (d = !1), c.reduce(function(h, g) {
@@ -4278,7 +4278,7 @@ function bc(t) {
4278
4278
  return (Array.isArray(i) ? i : [i]).forEach(function(d) {
4279
4279
  var h = {};
4280
4280
  ye((h = typeof d == "function" ? d({ coordinates: c, imageSize: n, visibleArea: l }) : d).width) && ye(h.height) || (c = function(g, y) {
4281
- var v = N(N(N({}, g), at({ width: y.width, height: y.height, sizeRestrictions: s, aspectRatio: o })), { left: 0, top: 0 });
4281
+ var v = N(N(N({}, g), ot({ width: y.width, height: y.height, sizeRestrictions: s, aspectRatio: o })), { left: 0, top: 0 });
4282
4282
  return a(v, { left: g.left, top: g.top });
4283
4283
  }(c, N(N({}, c), h))), ye(h.left) && ye(h.top) || (c = a(c, N(N({}, c), h)));
4284
4284
  }), c;
@@ -4290,7 +4290,7 @@ function Sc(t) {
4290
4290
  var r = t.stencilSize, o = t.sizeRestrictions, l = t.positionRestrictions;
4291
4291
  t.stencilReference;
4292
4292
  var a, c, d, h = N({}, n), g = N({}, s), y = N({}, r);
4293
- a = re(y), 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), at({ sizeRestrictions: o, width: h.width, height: h.height, aspectRatio: { minimum: re(y), maximum: re(y) } })));
4293
+ a = re(y), 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), ot({ sizeRestrictions: o, width: h.width, height: h.height, aspectRatio: { minimum: re(y), maximum: re(y) } })));
4294
4294
  var v = Ei(g = qe(g, h.width * i.width / (g.width * y.width)), e({ visibleArea: g, type: "resize" }));
4295
4295
  return v !== 1 && (g = qe(g, v), h = qe(h, v)), g = xe(g = $e(g, Ot(Ce(h), Ce(g))), e({ visibleArea: g, type: "move" })), { coordinates: h = xe(h, Ti(tt(g), l)), visibleArea: g };
4296
4296
  }
@@ -4322,11 +4322,11 @@ function Mc(t) {
4322
4322
  }
4323
4323
  function kc(t) {
4324
4324
  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 };
4325
- return at(N(N({}, l), { aspectRatio: n, sizeRestrictions: s }));
4325
+ return ot(N(N({}, l), { aspectRatio: n, sizeRestrictions: s }));
4326
4326
  }
4327
4327
  function Ic(t) {
4328
4328
  var e, i, n = t.imageSize, s = t.visibleArea, r = t.boundaries, o = t.aspectRatio, l = t.sizeRestrictions, a = t.stencilSize, c = s || n;
4329
- 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), at({ width: i, height: e, aspectRatio: o, sizeRestrictions: l });
4329
+ 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), ot({ width: i, height: e, aspectRatio: o, sizeRestrictions: l });
4330
4330
  }
4331
4331
  function Rc(t) {
4332
4332
  var e = t.getAreaRestrictions, i = t.coordinates, n = t.imageSize, s = re(t.boundaries);
@@ -4350,7 +4350,7 @@ function Ac(t) {
4350
4350
  }
4351
4351
  function $c(t) {
4352
4352
  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 = ht(Ce(N({ left: 0, top: 0 }, a)), c);
4353
- return (d = N(N({}, at({ sizeRestrictions: r, aspectRatio: e, width: d.width, height: d.height })), ht(Ce(d), c))).left -= g.left - l.width / 2 + d.width / 2, d.top -= g.top - l.height / 2 + d.height / 2, h = qe(h, Ei(h, i({ visibleArea: h, type: "resize" }))), { coordinates: d = xe(d, o), visibleArea: h = xe(h = $e(h, Ot(Ce(d), Ce(n))), i({ visibleArea: h, type: "move" })) };
4353
+ return (d = N(N({}, ot({ sizeRestrictions: r, aspectRatio: e, width: d.width, height: d.height })), ht(Ce(d), c))).left -= g.left - l.width / 2 + d.width / 2, d.top -= g.top - l.height / 2 + d.height / 2, h = qe(h, Ei(h, i({ visibleArea: h, type: "resize" }))), { coordinates: d = xe(d, o), visibleArea: h = xe(h = $e(h, Ot(Ce(d), Ce(n))), i({ visibleArea: h, type: "move" })) };
4354
4354
  }
4355
4355
  function Pc(t) {
4356
4356
  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;
@@ -4840,7 +4840,7 @@ var qc = ["transitions"], nt = _e("vue-advanced-cropper"), Ir = { name: "Cropper
4840
4840
  var e = t.stretcher, i = t.imageSize, n = re(i);
4841
4841
  e.style.width = i.width + "px", e.style.height = e.clientWidth / n + "px", e.style.width = e.clientWidth + "px";
4842
4842
  } }, fitCoordinates: { type: Function, default: function(t) {
4843
- var e = t.visibleArea, i = t.coordinates, n = t.aspectRatio, s = t.sizeRestrictions, r = t.positionRestrictions, o = N(N({}, i), at({ 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) } }));
4843
+ var e = t.visibleArea, i = t.coordinates, n = t.aspectRatio, s = t.sizeRestrictions, r = t.positionRestrictions, o = N(N({}, i), ot({ 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) } }));
4844
4844
  return o = xe(o = $e(o, Ot(Ce(i), Ce(o))), Ti(tt(e), r));
4845
4845
  } }, fitVisibleArea: { type: Function, default: function(t) {
4846
4846
  var e = t.visibleArea, i = t.boundaries, n = t.getAreaRestrictions, s = t.coordinates, r = N({}, e);
@@ -5015,7 +5015,7 @@ var qc = ["transitions"], nt = _e("vue-advanced-cropper"), Ir = { name: "Cropper
5015
5015
  return c = a, !Number.isNaN(parseFloat(c)) && isFinite(c);
5016
5016
  var c;
5017
5017
  });
5018
- }, r = at({ 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 } });
5018
+ }, r = ot({ 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 } });
5019
5019
  if (n.maxArea && r.width * r.height > n.maxArea) {
5020
5020
  var o = Math.sqrt(n.maxArea / (r.width * r.height));
5021
5021
  r = { width: Math.round(o * r.width), height: Math.round(o * r.height) };
@@ -5203,7 +5203,7 @@ var qc = ["transitions"], nt = _e("vue-advanced-cropper"), Ir = { name: "Cropper
5203
5203
  }
5204
5204
  return { minimum: e, maximum: i };
5205
5205
  }, getStencilSize: function() {
5206
- 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, tn(re(s = $t(i) ? i({ boundaries: e, aspectRatio: n }) : i), n) && (s = at({ 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 = at({ 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;
5206
+ 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, tn(re(s = $t(i) ? i({ boundaries: e, aspectRatio: n }) : i), n) && (s = ot({ 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 = ot({ 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;
5207
5207
  var t, e, i, n, s;
5208
5208
  }, getPublicProperties: function() {
5209
5209
  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 };
@@ -5440,7 +5440,7 @@ const Wc = { class: "background-container" }, jc = { class: "tools-line" }, Gc =
5440
5440
  o.value = !1, l.value = !1;
5441
5441
  };
5442
5442
  return (_, G) => {
5443
- const Fe = E("PString"), De = E("PButton"), ct = E("PModal"), Rt = er("click-outside");
5443
+ const Fe = E("PString"), De = E("PButton"), ut = E("PModal"), Rt = er("click-outside");
5444
5444
  return m(), b(W, null, [
5445
5445
  p(o) ? (m(), b("div", Jc)) : K("", !0),
5446
5446
  f("div", {
@@ -5494,7 +5494,7 @@ const Wc = { class: "background-container" }, jc = { class: "tools-line" }, Gc =
5494
5494
  ], 4)
5495
5495
  ], 38)
5496
5496
  ], 4),
5497
- A(ct, {
5497
+ A(ut, {
5498
5498
  show: p(l),
5499
5499
  title: "У вас остались несохраненные изменения, вы уверены что хотите закрыть окно?"
5500
5500
  }, {
@@ -9746,11 +9746,11 @@ const sg = async (t) => {
9746
9746
  duplex: "half"
9747
9747
  }), Fe;
9748
9748
  if (x.isFormData(n) && (Fe = G.headers.get("content-type")) && d.setContentType(Fe), G.body) {
9749
- const [De, ct] = Ns(
9749
+ const [De, ut] = Ns(
9750
9750
  S,
9751
9751
  ki(Us(a))
9752
9752
  );
9753
- n = js(G.body, Gs, De, ct);
9753
+ n = js(G.body, Gs, De, ut);
9754
9754
  }
9755
9755
  }
9756
9756
  x.isString(h) || (h = h ? "include" : "omit");
@@ -9771,13 +9771,13 @@ const sg = async (t) => {
9771
9771
  ["status", "statusText", "headers"].forEach((Rt) => {
9772
9772
  G[Rt] = J[Rt];
9773
9773
  });
9774
- const Fe = x.toFiniteNumber(J.headers.get("content-length")), [De, ct] = l && Ns(
9774
+ const Fe = x.toFiniteNumber(J.headers.get("content-length")), [De, ut] = l && Ns(
9775
9775
  Fe,
9776
9776
  ki(Us(l), !0)
9777
9777
  ) || [];
9778
9778
  J = new Response(
9779
9779
  js(J.body, Gs, De, () => {
9780
- ct && ct(), R && R();
9780
+ ut && ut(), R && R();
9781
9781
  }),
9782
9782
  G
9783
9783
  );
@@ -9914,7 +9914,7 @@ function lg(t, e, i) {
9914
9914
  const Rn = {
9915
9915
  assertOptions: lg,
9916
9916
  validators: _n
9917
- }, dt = Rn.validators;
9917
+ }, ct = Rn.validators;
9918
9918
  class yt {
9919
9919
  constructor(e) {
9920
9920
  this.defaults = e, this.interceptors = {
@@ -9951,14 +9951,14 @@ class yt {
9951
9951
  typeof e == "string" ? (i = i || {}, i.url = e) : i = e || {}, i = Ct(this.defaults, i);
9952
9952
  const { transitional: n, paramsSerializer: s, headers: r } = i;
9953
9953
  n !== void 0 && Rn.assertOptions(n, {
9954
- silentJSONParsing: dt.transitional(dt.boolean),
9955
- forcedJSONParsing: dt.transitional(dt.boolean),
9956
- clarifyTimeoutError: dt.transitional(dt.boolean)
9954
+ silentJSONParsing: ct.transitional(ct.boolean),
9955
+ forcedJSONParsing: ct.transitional(ct.boolean),
9956
+ clarifyTimeoutError: ct.transitional(ct.boolean)
9957
9957
  }, !1), s != null && (x.isFunction(s) ? i.paramsSerializer = {
9958
9958
  serialize: s
9959
9959
  } : Rn.assertOptions(s, {
9960
- encode: dt.function,
9961
- serialize: dt.function
9960
+ encode: ct.function,
9961
+ serialize: ct.function
9962
9962
  }, !0)), i.method = (i.method || this.defaults.method || "get").toLowerCase();
9963
9963
  let o = r && x.merge(
9964
9964
  r.common,
@@ -10451,7 +10451,7 @@ const dg = [
10451
10451
  name: "NotFound",
10452
10452
  component: Ar
10453
10453
  }
10454
- ], rt = class rt {
10454
+ ], dt = class dt {
10455
10455
  static Set(e) {
10456
10456
  this.router = e, this.AddRoutes(dg);
10457
10457
  }
@@ -10472,16 +10472,16 @@ const dg = [
10472
10472
  await this.Get().replace(e);
10473
10473
  }
10474
10474
  static Id() {
10475
- return rt.GetStringParam("id");
10475
+ return dt.GetStringParam("id");
10476
10476
  }
10477
10477
  static Slug() {
10478
- return rt.GetStringParam("slug");
10478
+ return dt.GetStringParam("slug");
10479
10479
  }
10480
10480
  static async Back() {
10481
10481
  this.Get().go(-1);
10482
10482
  }
10483
10483
  static GetQid() {
10484
- return rt.GetStringQueryParam("qid");
10484
+ return dt.GetStringQueryParam("qid");
10485
10485
  }
10486
10486
  static Route() {
10487
10487
  return this.Get().currentRoute.value;
@@ -10492,7 +10492,7 @@ const dg = [
10492
10492
  }
10493
10493
  static GetPath() {
10494
10494
  var i;
10495
- const e = (i = rt.Route()) == null ? void 0 : i.path.split("/");
10495
+ const e = (i = dt.Route()) == null ? void 0 : i.path.split("/");
10496
10496
  return !e || e.length <= 0 ? "" : e[e.length - 1];
10497
10497
  }
10498
10498
  static async ToAdmin(e) {
@@ -10501,7 +10501,7 @@ const dg = [
10501
10501
  return;
10502
10502
  }
10503
10503
  let i = e;
10504
- i[0] === "/" && (i = e.substring(1)), await rt.To(`/admin/${i}`);
10504
+ i[0] === "/" && (i = e.substring(1)), await dt.To(`/admin/${i}`);
10505
10505
  }
10506
10506
  static GetStringQueryParam(e) {
10507
10507
  return String(this.Route().query[e]);
@@ -10513,24 +10513,23 @@ const dg = [
10513
10513
  return this.Route().params[e];
10514
10514
  }
10515
10515
  static SetQueryParam(e, i) {
10516
- this.Get().replace({ path: rt.Route().path, query: { [e]: i } });
10517
10516
  const n = new URL(window.location);
10518
- n.searchParams.set(e, i), history.pushState(null, "", n);
10517
+ n.searchParams.set(e, String(i)), history.replaceState(null, "", n);
10519
10518
  }
10520
10519
  static Resolve(e) {
10521
10520
  return this.Get().resolve(e);
10522
10521
  }
10523
10522
  };
10524
- u(rt, "router");
10525
- let mt = rt;
10523
+ u(dt, "router");
10524
+ let mt = dt;
10526
10525
  class le {
10527
10526
  constructor(e, i) {
10528
- u(this, "items", lt([]));
10527
+ u(this, "items", at([]));
10529
10528
  u(this, "item");
10530
10529
  u(this, "count", z(0));
10531
10530
  u(this, "classConstructor");
10532
10531
  u(this, "url", "");
10533
- this.classConstructor = e, this.item = lt(new this.classConstructor()), this.url = i;
10532
+ this.classConstructor = e, this.item = at(new this.classConstructor()), this.url = i;
10534
10533
  }
10535
10534
  Set(e) {
10536
10535
  Object.assign(this.item, new this.classConstructor(e));
@@ -11043,11 +11042,11 @@ class Ri {
11043
11042
  }
11044
11043
  static Create(e, i, n, s) {
11045
11044
  const r = new Ri();
11046
- return r.id = ut(), r.chatId = e, r.message = n, r.userName = s, r;
11045
+ return r.id = lt(), r.chatId = e, r.message = n, r.userName = s, r;
11047
11046
  }
11048
11047
  static CreatePingMessage() {
11049
11048
  const e = new Ri();
11050
- return e.type = "ping", e.id = ut(), e;
11049
+ return e.type = "ping", e.id = lt(), e;
11051
11050
  }
11052
11051
  isMessage() {
11053
11052
  return this.type === "message" || this.type === "";
@@ -11089,7 +11088,7 @@ class Hg {
11089
11088
  }
11090
11089
  class Q {
11091
11090
  }
11092
- u(Q, "Arrays", ft), u(Q, "Axios", Gt), u(Q, "BaseStore", le), u(Q, "Phone", St), u(Q, "Cache", Wi), u(Q, "Classes", Z), u(Q, "CarouselSwipe", hg), u(Q, "Color", mg), u(Q, "CreateSortModels", $r), u(Q, "Cursor", gg), u(Q, "DateMask", Sg), u(Q, "Dates", ot), u(Q, "Dragger", Cg), u(Q, "Extension", xg), u(Q, "Favourite", Mg), u(Q, "FTSP", qr), u(Q, "Hooks", $g), u(Q, "HttpClient", Se), u(Q, "Id", Ge), u(Q, "MakeCarousel", ar), u(Q, "Period", Sn), u(Q, "PhoneService", En), u(Q, "Rating", Pg), u(Q, "Router", mt), u(Q, "RouterGuard", Eg), u(Q, "Scheduler", Tg), u(Q, "Scroll", zg), u(Q, "Sizes", Dn), u(Q, "Sorter", Og), u(Q, "Static", Wn), u(Q, "Statuses", Ie), u(Q, "Strings", we), u(Q, "Time", te), u(Q, "Timer", Yt), u(Q, "Token", Kt), u(Q, "TabsStore", Xn), // static useConfirmLeavePage = useConfirmLeavePage();
11091
+ u(Q, "Arrays", ft), u(Q, "Axios", Gt), u(Q, "BaseStore", le), u(Q, "Phone", St), u(Q, "Cache", Wi), u(Q, "Classes", Z), u(Q, "CarouselSwipe", hg), u(Q, "Color", mg), u(Q, "CreateSortModels", $r), u(Q, "Cursor", gg), u(Q, "DateMask", Sg), u(Q, "Dates", rt), u(Q, "Dragger", Cg), u(Q, "Extension", xg), u(Q, "Favourite", Mg), u(Q, "FTSP", qr), u(Q, "Hooks", $g), u(Q, "HttpClient", Se), u(Q, "Id", Ge), u(Q, "MakeCarousel", ar), u(Q, "Period", Sn), u(Q, "PhoneService", En), u(Q, "Rating", Pg), u(Q, "Router", mt), u(Q, "RouterGuard", Eg), u(Q, "Scheduler", Tg), u(Q, "Scroll", zg), u(Q, "Sizes", Dn), u(Q, "Sorter", Og), u(Q, "Static", Wn), u(Q, "Statuses", Ie), u(Q, "Strings", we), u(Q, "Time", te), u(Q, "Timer", Yt), u(Q, "Token", Kt), u(Q, "TabsStore", Xn), // static useConfirmLeavePage = useConfirmLeavePage();
11093
11092
  u(Q, "validate", Lg), u(Q, "WaitElement", Dg), u(Q, "WebSocketClient", Hg);
11094
11093
  class qg {
11095
11094
  constructor() {
@@ -11163,8 +11162,8 @@ class jg {
11163
11162
  const Gg = new jg();
11164
11163
  class Vg {
11165
11164
  constructor() {
11166
- u(this, "Menu", lt(Gg));
11167
- u(this, "Head", lt(Wg));
11165
+ u(this, "Menu", at(Gg));
11166
+ u(this, "Head", at(Wg));
11168
11167
  }
11169
11168
  }
11170
11169
  const _g = new Vg();
@@ -11528,8 +11527,8 @@ class dn {
11528
11527
  let Mp = class {
11529
11528
  constructor() {
11530
11529
  u(this, "isSearchDrawerOpen", z(!1));
11531
- u(this, "searchModel", lt(new dn()));
11532
- u(this, "searchGroups", lt([]));
11530
+ u(this, "searchModel", at(new dn()));
11531
+ u(this, "searchGroups", at([]));
11533
11532
  u(this, "count", 0);
11534
11533
  }
11535
11534
  async Search(e) {
@@ -11660,7 +11659,7 @@ const $p = new Ap(), Pp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
11660
11659
  }, Symbol.toStringTag, { value: "Module" }));
11661
11660
  class M {
11662
11661
  }
11663
- u(M, "Auth", lt(Br)), u(M, "UI", lt(Qg)), u(M, "Paginator", lt(Ng)), u(M, "S", Pp), u(M, "H", Q), u(M, "C", Ff);
11662
+ u(M, "Auth", at(Br)), u(M, "UI", at(Qg)), u(M, "Paginator", at(Ng)), u(M, "S", Pp), u(M, "H", Q), u(M, "C", Ff);
11664
11663
  class bo {
11665
11664
  constructor(e) {
11666
11665
  u(this, "id");
@@ -11950,7 +11949,7 @@ class kt {
11950
11949
  }
11951
11950
  static Create(e, i) {
11952
11951
  const n = new kt();
11953
- return n.id = ut(), n.fieldFillId = e, n.answerVariantId = i, n;
11952
+ return n.id = lt(), n.fieldFillId = e, n.answerVariantId = i, n;
11954
11953
  }
11955
11954
  static GetClassName() {
11956
11955
  return "selectedAnswerVariant";
@@ -11987,7 +11986,7 @@ const is = class Fn {
11987
11986
  }
11988
11987
  static Create(e, i) {
11989
11988
  const n = new Fn();
11990
- return n.id = ut(), n.fieldId = e.id, n.formFillId = i, n.order = e.order, n.valueNumber = 0, n.valueString = "", n.valueDate = /* @__PURE__ */ new Date(), n;
11989
+ return n.id = lt(), n.fieldId = e.id, n.formFillId = i, n.order = e.order, n.valueNumber = 0, n.valueString = "", n.valueDate = /* @__PURE__ */ new Date(), n;
11991
11990
  }
11992
11991
  setString(e) {
11993
11992
  this.valueString = e, this.valueString && (this.filled = this.valueString.length > 0);
@@ -12009,7 +12008,7 @@ const is = class Fn {
12009
12008
  }
12010
12009
  addFile() {
12011
12010
  const e = new ts();
12012
- return e.id = ut(), e.answerId = this.id, this.answerFiles.push(e), e;
12011
+ return e.id = lt(), e.answerId = this.id, this.answerFiles.push(e), e;
12013
12012
  }
12014
12013
  getFileInfos() {
12015
12014
  const e = [];