akpm-procedures 1.1.12 → 1.1.14

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.
Files changed (2) hide show
  1. package/CDN/akpm-procedures.js +501 -500
  2. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
- /* Version: 1.1.12 */
1
+ /* Version: 1.1.14 */
2
2
  var Zs = Object.defineProperty;
3
3
  var ua = (t) => {
4
4
  throw TypeError(t);
5
5
  };
6
6
  var Ws = (t, e, r) => e in t ? Zs(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
7
- var F = (t, e, r) => Ws(t, typeof e != "symbol" ? e + "" : e, r), ca = (t, e, r) => e.has(t) || ua("Cannot " + r);
7
+ var R = (t, e, r) => Ws(t, typeof e != "symbol" ? e + "" : e, r), ca = (t, e, r) => e.has(t) || ua("Cannot " + r);
8
8
  var Rt = (t, e, r) => (ca(t, e, "read from private field"), r ? r.call(t) : e.get(t)), ei = (t, e, r) => e.has(t) ? ua("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), ri = (t, e, r, n) => (ca(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
9
9
  const Qs = "5";
10
10
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Qs);
@@ -98,7 +98,7 @@ function Ge(t, e = !1) {
98
98
  function io(t) {
99
99
  return bt !== null && bt.f & Kt && (de === null ? Rl([t]) : de.push(t)), t;
100
100
  }
101
- function A(t, e) {
101
+ function S(t, e) {
102
102
  return bt !== null && $n() && bt.f & (Kt | Rn) && // If the source was created locally within the current derived, then
103
103
  // we allow the mutation.
104
104
  (de === null || !de.includes(t)) && Tl(), vi(t, e);
@@ -190,7 +190,7 @@ function M(t, e = null, r) {
190
190
  defineProperty(l, u, c) {
191
191
  (!("value" in c) || c.configurable === !1 || c.enumerable === !1 || c.writable === !1) && El();
192
192
  var d = i.get(u);
193
- return d === void 0 ? (d = Yt(c.value), i.set(u, d)) : A(d, M(c.value, s)), !0;
193
+ return d === void 0 ? (d = Yt(c.value), i.set(u, d)) : S(d, M(c.value, s)), !0;
194
194
  },
195
195
  deleteProperty(l, u) {
196
196
  var c = i.get(u);
@@ -202,9 +202,9 @@ function M(t, e = null, r) {
202
202
  /** @type {Source<number>} */
203
203
  i.get("length")
204
204
  ), f = Number(u);
205
- Number.isInteger(f) && f < d.v && A(d, f);
205
+ Number.isInteger(f) && f < d.v && S(d, f);
206
206
  }
207
- A(c, Ft), da(o);
207
+ S(c, Ft), da(o);
208
208
  }
209
209
  return !0;
210
210
  },
@@ -256,17 +256,17 @@ function M(t, e = null, r) {
256
256
  for (var _ = c; _ < /** @type {Source<number>} */
257
257
  f.v; _ += 1) {
258
258
  var y = i.get(_ + "");
259
- y !== void 0 ? A(y, Ft) : _ in l && (y = Yt(Ft), i.set(_ + "", y));
259
+ y !== void 0 ? S(y, Ft) : _ in l && (y = Yt(Ft), i.set(_ + "", y));
260
260
  }
261
- f === void 0 ? (!v || (T = we(l, u)) != null && T.writable) && (f = Yt(void 0), A(f, M(c, s)), i.set(u, f)) : (v = f.v !== Ft, A(f, M(c, s)));
262
- var S = Reflect.getOwnPropertyDescriptor(l, u);
263
- if (S != null && S.set && S.set.call(d, c), !v) {
261
+ f === void 0 ? (!v || (T = we(l, u)) != null && T.writable) && (f = Yt(void 0), S(f, M(c, s)), i.set(u, f)) : (v = f.v !== Ft, S(f, M(c, s)));
262
+ var E = Reflect.getOwnPropertyDescriptor(l, u);
263
+ if (E != null && E.set && E.set.call(d, c), !v) {
264
264
  if (a && typeof u == "string") {
265
265
  var L = (
266
266
  /** @type {Source<number>} */
267
267
  i.get("length")
268
268
  ), I = Number(u);
269
- Number.isInteger(I) && I >= L.v && A(L, I + 1);
269
+ Number.isInteger(I) && I >= L.v && S(L, I + 1);
270
270
  }
271
271
  da(o);
272
272
  }
@@ -289,7 +289,7 @@ function M(t, e = null, r) {
289
289
  );
290
290
  }
291
291
  function da(t, e = 1) {
292
- A(t, t.v + e);
292
+ S(t, t.v + e);
293
293
  }
294
294
  function fa(t) {
295
295
  return t !== null && typeof t == "object" && xe in t ? t[xe] : t;
@@ -521,7 +521,7 @@ function Zr(t, e, r, n) {
521
521
  pt
522
522
  ), a = { effect: null, ran: !1 };
523
523
  i.l.r1.push(a), a.effect = _r(() => {
524
- t(), !a.ran && (a.ran = !0, A(i.l.r2, !0), ve(e));
524
+ t(), !a.ran && (a.ran = !0, S(i.l.r2, !0), ve(e));
525
525
  });
526
526
  }
527
527
  function Wr() {
@@ -1154,8 +1154,8 @@ function an(t) {
1154
1154
  if (y !== void 0 && !/** @type {any} */
1155
1155
  a.disabled)
1156
1156
  if (qr(y)) {
1157
- var [S, ...L] = y;
1158
- S.apply(a, [t, ...L]);
1157
+ var [E, ...L] = y;
1158
+ E.apply(a, [t, ...L]);
1159
1159
  } else
1160
1160
  y.call(a, t);
1161
1161
  } catch (T) {
@@ -1420,11 +1420,11 @@ function Ct(t, e, r, n, i, a = null) {
1420
1420
  d = _ === 0;
1421
1421
  let y = !1;
1422
1422
  if (ft) {
1423
- var S = (
1423
+ var E = (
1424
1424
  /** @type {Comment} */
1425
1425
  o.data === Hi
1426
1426
  );
1427
- S !== (_ === 0) && (o = pi(), Qt(o), _e(!1), y = !0);
1427
+ E !== (_ === 0) && (o = pi(), Qt(o), _e(!1), y = !0);
1428
1428
  }
1429
1429
  if (ft) {
1430
1430
  for (var L = null, I, T = 0; T < _; T++) {
@@ -1453,7 +1453,7 @@ function Ct(t, e, r, n, i, a = null) {
1453
1453
  }
1454
1454
  function eu(t, e, r, n, i, a, o) {
1455
1455
  var it, dt, xt, X;
1456
- var s = (i & Ks) !== 0, l = (i & (Pi | ji)) !== 0, u = t.length, c = e.items, d = e.first, f = d, v, _ = null, y, S = [], L = [], I, T, N, b;
1456
+ var s = (i & Ks) !== 0, l = (i & (Pi | ji)) !== 0, u = t.length, c = e.items, d = e.first, f = d, v, _ = null, y, E = [], L = [], I, T, N, b;
1457
1457
  if (s)
1458
1458
  for (b = 0; b < u; b += 1)
1459
1459
  I = t[b], T = o(I, b), N = c.get(T), N !== void 0 && ((it = N.a) == null || it.measure(), (y ?? (y = /* @__PURE__ */ new Set())).add(N));
@@ -1473,42 +1473,42 @@ function eu(t, e, r, n, i, a, o) {
1473
1473
  b,
1474
1474
  n,
1475
1475
  i
1476
- ), c.set(T, _), S = [], L = [], f = _.next;
1476
+ ), c.set(T, _), E = [], L = [], f = _.next;
1477
1477
  continue;
1478
1478
  }
1479
1479
  if (l && ru(N, I, b, i), N.e.f & ce && (kn(N.e), s && ((dt = N.a) == null || dt.unfix(), (y ?? (y = /* @__PURE__ */ new Set())).delete(N))), N !== f) {
1480
1480
  if (v !== void 0 && v.has(N)) {
1481
- if (S.length < L.length) {
1482
- var x = L[0], E;
1481
+ if (E.length < L.length) {
1482
+ var x = L[0], A;
1483
1483
  _ = x.prev;
1484
- var H = S[0], B = S[S.length - 1];
1485
- for (E = 0; E < S.length; E += 1)
1486
- ga(S[E], x, r);
1487
- for (E = 0; E < L.length; E += 1)
1488
- v.delete(L[E]);
1489
- ze(e, H.prev, B.next), ze(e, _, H), ze(e, B, x), f = x, _ = B, b -= 1, S = [], L = [];
1484
+ var D = E[0], H = E[E.length - 1];
1485
+ for (A = 0; A < E.length; A += 1)
1486
+ ga(E[A], x, r);
1487
+ for (A = 0; A < L.length; A += 1)
1488
+ v.delete(L[A]);
1489
+ ze(e, D.prev, H.next), ze(e, _, D), ze(e, H, x), f = x, _ = H, b -= 1, E = [], L = [];
1490
1490
  } else
1491
1491
  v.delete(N), ga(N, f, r), ze(e, N.prev, N.next), ze(e, N, _ === null ? e.first : _.next), ze(e, _, N), _ = N;
1492
1492
  continue;
1493
1493
  }
1494
- for (S = [], L = []; f !== null && f.k !== T; )
1494
+ for (E = [], L = []; f !== null && f.k !== T; )
1495
1495
  (a || !(f.e.f & ce)) && (v ?? (v = /* @__PURE__ */ new Set())).add(f), L.push(f), f = f.next;
1496
1496
  if (f === null)
1497
1497
  continue;
1498
1498
  N = f;
1499
1499
  }
1500
- S.push(N), _ = N, f = N.next;
1500
+ E.push(N), _ = N, f = N.next;
1501
1501
  }
1502
1502
  if (f !== null || v !== void 0) {
1503
1503
  for (var U = v === void 0 ? [] : Mi(v); f !== null; )
1504
1504
  (a || !(f.e.f & ce)) && U.push(f), f = f.next;
1505
- var R = U.length;
1506
- if (R > 0) {
1505
+ var F = U.length;
1506
+ if (F > 0) {
1507
1507
  var tt = i & Ja && u === 0 ? r : null;
1508
1508
  if (s) {
1509
- for (b = 0; b < R; b += 1)
1509
+ for (b = 0; b < F; b += 1)
1510
1510
  (xt = U[b].a) == null || xt.measure();
1511
- for (b = 0; b < R; b += 1)
1511
+ for (b = 0; b < F; b += 1)
1512
1512
  (X = U[b].a) == null || X.fix();
1513
1513
  }
1514
1514
  tu(e, U, tt, c);
@@ -1606,18 +1606,18 @@ function le(t) {
1606
1606
  if (!e) {
1607
1607
  if (e = !0, t.hasAttribute("value")) {
1608
1608
  var n = t.value;
1609
- D(t, "value", null), t.value = n;
1609
+ B(t, "value", null), t.value = n;
1610
1610
  }
1611
1611
  if (t.hasAttribute("checked")) {
1612
1612
  var i = t.checked;
1613
- D(t, "checked", null), t.checked = i;
1613
+ B(t, "checked", null), t.checked = i;
1614
1614
  }
1615
1615
  }
1616
1616
  };
1617
1617
  t.__on_r = r, Bl(r), Io();
1618
1618
  }
1619
1619
  }
1620
- function D(t, e, r, n) {
1620
+ function B(t, e, r, n) {
1621
1621
  var i = t.__attributes ?? (t.__attributes = {});
1622
1622
  ft && (i[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || i[e] !== (i[e] = r) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[ml] = r), r == null ? t.removeAttribute(e) : typeof r != "string" && iu(t).includes(e) ? t[e] = r : t.setAttribute(e, r));
1623
1623
  }
@@ -1745,17 +1745,17 @@ function wa(t, e, r, n) {
1745
1745
  nt
1746
1746
  );
1747
1747
  if ((y.transitions ?? (y.transitions = [])).push(_), i && wi) {
1748
- var S = s;
1749
- if (!S) {
1748
+ var E = s;
1749
+ if (!E) {
1750
1750
  for (var L = (
1751
1751
  /** @type {Effect | null} */
1752
1752
  y.parent
1753
1753
  ); L && L.f & mr; )
1754
1754
  for (; (L = L.parent) && !(L.f & Rn); )
1755
1755
  ;
1756
- S = !L || (L.f & to) !== 0;
1756
+ E = !L || (L.f & to) !== 0;
1757
1757
  }
1758
- S && Jr(() => {
1758
+ E && Jr(() => {
1759
1759
  ve(() => _.in());
1760
1760
  });
1761
1761
  }
@@ -1766,8 +1766,8 @@ function ki(t, e, r, n, i) {
1766
1766
  var o, s = !1;
1767
1767
  return Gi(() => {
1768
1768
  if (!s) {
1769
- var S = e({ direction: a ? "in" : "out" });
1770
- o = ki(t, S, r, n, i);
1769
+ var E = e({ direction: a ? "in" : "out" });
1770
+ o = ki(t, E, r, n, i);
1771
1771
  }
1772
1772
  }), {
1773
1773
  abort: () => {
@@ -1793,29 +1793,29 @@ function ki(t, e, r, n, i) {
1793
1793
  }
1794
1794
  var _ = () => 1 - n, y = t.animate(f, { duration: l });
1795
1795
  return y.onfinish = () => {
1796
- var S = (r == null ? void 0 : r.t()) ?? 1 - n;
1796
+ var E = (r == null ? void 0 : r.t()) ?? 1 - n;
1797
1797
  r == null || r.abort();
1798
- var L = n - S, I = (
1798
+ var L = n - E, I = (
1799
1799
  /** @type {number} */
1800
1800
  e.duration * Math.abs(L)
1801
1801
  ), T = [];
1802
1802
  if (I > 0) {
1803
1803
  if (u)
1804
1804
  for (var N = Math.ceil(I / 16.666666666666668), b = 0; b <= N; b += 1) {
1805
- var k = S + L * d(b / N), x = u(k, 1 - k);
1805
+ var k = E + L * d(b / N), x = u(k, 1 - k);
1806
1806
  T.push(ya(x));
1807
1807
  }
1808
1808
  _ = () => {
1809
- var E = (
1809
+ var A = (
1810
1810
  /** @type {number} */
1811
1811
  /** @type {globalThis.Animation} */
1812
1812
  y.currentTime
1813
1813
  );
1814
- return S + L * d(E / I);
1814
+ return E + L * d(A / I);
1815
1815
  }, c && su(() => {
1816
1816
  if (y.playState !== "running") return !1;
1817
- var E = _();
1818
- return c(E, 1 - E), !0;
1817
+ var A = _();
1818
+ return c(A, 1 - A), !0;
1819
1819
  });
1820
1820
  }
1821
1821
  y = t.animate(T, { duration: I, fill: "forwards" }), y.onfinish = () => {
@@ -2050,7 +2050,7 @@ function re(t, e, r) {
2050
2050
  else {
2051
2051
  var i = !0;
2052
2052
  n.unsubscribe = Ro(t, (a) => {
2053
- i ? n.source.v = a : A(n.source, a);
2053
+ i ? n.source.v = a : S(n.source, a);
2054
2054
  }), i = !1;
2055
2055
  }
2056
2056
  return h(n.source);
@@ -2135,7 +2135,7 @@ function m(t, e, r, n) {
2135
2135
  t[e]
2136
2136
  )) : u = /** @type {V} */
2137
2137
  t[e];
2138
- var c = xe in t || Ri in t, d = ((x = we(t, e)) == null ? void 0 : x.set) ?? (c && o && e in t ? (E) => t[e] = E : void 0), f = (
2138
+ var c = xe in t || Ri in t, d = ((x = we(t, e)) == null ? void 0 : x.set) ?? (c && o && e in t ? (A) => t[e] = A : void 0), f = (
2139
2139
  /** @type {V} */
2140
2140
  n
2141
2141
  ), v = !0, _ = !1, y = () => (_ = !0, v && (v = !1, s ? f = ve(
@@ -2144,14 +2144,14 @@ function m(t, e, r, n) {
2144
2144
  ) : f = /** @type {V} */
2145
2145
  n), f);
2146
2146
  u === void 0 && n !== void 0 && (d && a && kl(), u = y(), d && d(u));
2147
- var S;
2147
+ var E;
2148
2148
  if (a)
2149
- S = () => {
2150
- var E = (
2149
+ E = () => {
2150
+ var A = (
2151
2151
  /** @type {V} */
2152
2152
  t[e]
2153
2153
  );
2154
- return E === void 0 ? y() : (v = !0, _ = !1, E);
2154
+ return A === void 0 ? y() : (v = !0, _ = !1, A);
2155
2155
  };
2156
2156
  else {
2157
2157
  var L = Sa(
@@ -2160,30 +2160,30 @@ function m(t, e, r, n) {
2160
2160
  t[e]
2161
2161
  ))
2162
2162
  );
2163
- L.f |= vl, S = () => {
2164
- var E = h(L);
2165
- return E !== void 0 && (f = /** @type {V} */
2166
- void 0), E === void 0 ? f : E;
2163
+ L.f |= vl, E = () => {
2164
+ var A = h(L);
2165
+ return A !== void 0 && (f = /** @type {V} */
2166
+ void 0), A === void 0 ? f : A;
2167
2167
  };
2168
2168
  }
2169
2169
  if (!(r & nl))
2170
- return S;
2170
+ return E;
2171
2171
  if (d) {
2172
2172
  var I = t.$$legacy;
2173
- return function(E, H) {
2174
- return arguments.length > 0 ? ((!a || !H || I || l) && d(H ? S() : E), E) : S();
2173
+ return function(A, D) {
2174
+ return arguments.length > 0 ? ((!a || !D || I || l) && d(D ? E() : A), A) : E();
2175
2175
  };
2176
2176
  }
2177
2177
  var T = !1, N = !1, b = /* @__PURE__ */ Yr(u), k = Sa(
2178
2178
  () => /* @__PURE__ */ ke(() => {
2179
- var E = S(), H = h(b);
2180
- return T ? (T = !1, N = !0, H) : (N = !1, b.v = E);
2179
+ var A = E(), D = h(b);
2180
+ return T ? (T = !1, N = !0, D) : (N = !1, b.v = A);
2181
2181
  })
2182
2182
  );
2183
- return i || (k.equals = Fi), function(E, H) {
2183
+ return i || (k.equals = Fi), function(A, D) {
2184
2184
  if (arguments.length > 0) {
2185
- const B = H ? h(k) : a && o ? M(E) : E;
2186
- return k.equals(B) || (T = !0, A(b, B), _ && f !== void 0 && (f = B), ve(() => h(k))), E;
2185
+ const H = D ? h(k) : a && o ? M(A) : A;
2186
+ return k.equals(H) || (T = !0, S(b, H), _ && f !== void 0 && (f = H), ve(() => h(k))), A;
2187
2187
  }
2188
2188
  return h(k);
2189
2189
  };
@@ -2218,7 +2218,7 @@ class yu {
2218
2218
  return s === Ri ? !0 : (h(r.get(s) ?? n(s, Reflect.get(o, s))), Reflect.has(o, s));
2219
2219
  },
2220
2220
  set(o, s, l) {
2221
- return A(r.get(s) ?? n(s, l), l), Reflect.set(o, s, l);
2221
+ return S(r.get(s) ?? n(s, l), l), Reflect.set(o, s, l);
2222
2222
  }
2223
2223
  }
2224
2224
  );
@@ -2282,25 +2282,25 @@ typeof HTMLElement == "function" && (Fo = class extends HTMLElement {
2282
2282
  constructor(e, r, n) {
2283
2283
  super();
2284
2284
  /** The Svelte component constructor */
2285
- F(this, "$$ctor");
2285
+ R(this, "$$ctor");
2286
2286
  /** Slots */
2287
- F(this, "$$s");
2287
+ R(this, "$$s");
2288
2288
  /** @type {any} The Svelte component instance */
2289
- F(this, "$$c");
2289
+ R(this, "$$c");
2290
2290
  /** Whether or not the custom element is connected */
2291
- F(this, "$$cn", !1);
2291
+ R(this, "$$cn", !1);
2292
2292
  /** @type {Record<string, any>} Component props data */
2293
- F(this, "$$d", {});
2293
+ R(this, "$$d", {});
2294
2294
  /** `true` if currently in the process of reflecting component props back to attributes */
2295
- F(this, "$$r", !1);
2295
+ R(this, "$$r", !1);
2296
2296
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
2297
- F(this, "$$p_d", {});
2297
+ R(this, "$$p_d", {});
2298
2298
  /** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
2299
- F(this, "$$l", {});
2299
+ R(this, "$$l", {});
2300
2300
  /** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
2301
- F(this, "$$l_u", /* @__PURE__ */ new Map());
2301
+ R(this, "$$l_u", /* @__PURE__ */ new Map());
2302
2302
  /** @type {any} The managed render effect for reflecting attributes */
2303
- F(this, "$$me");
2303
+ R(this, "$$me");
2304
2304
  this.$$ctor = e, this.$$s = r, n && this.attachShadow({ mode: "open" });
2305
2305
  }
2306
2306
  /**
@@ -2536,8 +2536,8 @@ function Fe(t, e, r) {
2536
2536
  }, v = i.map(
2537
2537
  (_, y) => Ro(
2538
2538
  _,
2539
- (S) => {
2540
- u[y] = S, c &= ~(1 << y), l && f();
2539
+ (E) => {
2540
+ u[y] = E, c &= ~(1 << y), l && f();
2541
2541
  },
2542
2542
  () => {
2543
2543
  c |= 1 << y;
@@ -2612,8 +2612,8 @@ function Uo(t, e) {
2612
2612
  throw Error("Invalid component object");
2613
2613
  if (!k || typeof k == "string" && (k.length < 1 || k.charAt(0) != "/" && k.charAt(0) != "*") || typeof k == "object" && !(k instanceof RegExp))
2614
2614
  throw Error('Invalid value for "path" argument - strings must start with / or *');
2615
- const { pattern: E, keys: H } = xu(k);
2616
- this.path = k, typeof x == "object" && x._sveltesparouter === !0 ? (this.component = x.component, this.conditions = x.conditions || [], this.userData = x.userData, this.props = x.props || {}) : (this.component = () => Promise.resolve(x), this.conditions = [], this.props = {}), this._pattern = E, this._keys = H;
2615
+ const { pattern: A, keys: D } = xu(k);
2616
+ this.path = k, typeof x == "object" && x._sveltesparouter === !0 ? (this.component = x.component, this.conditions = x.conditions || [], this.userData = x.userData, this.props = x.props || {}) : (this.component = () => Promise.resolve(x), this.conditions = [], this.props = {}), this._pattern = A, this._keys = D;
2617
2617
  }
2618
2618
  /**
2619
2619
  * Checks if `path` matches the current route.
@@ -2631,9 +2631,9 @@ function Uo(t, e) {
2631
2631
  else
2632
2632
  return null;
2633
2633
  else if (n() instanceof RegExp) {
2634
- const B = k.match(n());
2635
- if (B && B[0])
2636
- k = k.substr(B[0].length) || "/";
2634
+ const H = k.match(n());
2635
+ if (H && H[0])
2636
+ k = k.substr(H[0].length) || "/";
2637
2637
  else
2638
2638
  return null;
2639
2639
  }
@@ -2643,17 +2643,17 @@ function Uo(t, e) {
2643
2643
  return null;
2644
2644
  if (this._keys === !1)
2645
2645
  return x;
2646
- const E = {};
2647
- let H = 0;
2648
- for (; H < this._keys.length; ) {
2646
+ const A = {};
2647
+ let D = 0;
2648
+ for (; D < this._keys.length; ) {
2649
2649
  try {
2650
- E[this._keys[H]] = decodeURIComponent(x[H + 1] || "") || null;
2650
+ A[this._keys[D]] = decodeURIComponent(x[D + 1] || "") || null;
2651
2651
  } catch {
2652
- E[this._keys[H]] = null;
2652
+ A[this._keys[D]] = null;
2653
2653
  }
2654
- H++;
2654
+ D++;
2655
2655
  }
2656
- return E;
2656
+ return A;
2657
2657
  }
2658
2658
  /**
2659
2659
  * Dictionary with route details passed to the pre-conditions functions, as well as the `routeLoading`, `routeLoaded` and `conditionsFailed` events
@@ -2696,7 +2696,7 @@ function Uo(t, e) {
2696
2696
  Eu(f);
2697
2697
  }));
2698
2698
  let _ = null, y = null;
2699
- const S = Ji.subscribe(async (b) => {
2699
+ const E = Ji.subscribe(async (b) => {
2700
2700
  _ = b;
2701
2701
  let k = 0;
2702
2702
  for (; k < o.length; ) {
@@ -2705,31 +2705,31 @@ function Uo(t, e) {
2705
2705
  k++;
2706
2706
  continue;
2707
2707
  }
2708
- const E = {
2708
+ const A = {
2709
2709
  route: o[k].path,
2710
2710
  location: b.location,
2711
2711
  querystring: b.querystring,
2712
2712
  userData: o[k].userData,
2713
2713
  params: x && typeof x == "object" && Object.keys(x).length ? x : null
2714
2714
  };
2715
- if (!await o[k].checkConditions(E)) {
2716
- A(s, null), y = null, d("conditionsFailed", E);
2715
+ if (!await o[k].checkConditions(A)) {
2716
+ S(s, null), y = null, d("conditionsFailed", A);
2717
2717
  return;
2718
2718
  }
2719
- d("routeLoading", Object.assign({}, E));
2720
- const H = o[k].component;
2721
- if (y != H) {
2722
- H.loading ? (A(s, H.loading), y = H, A(l, H.loadingParams), A(u, {}), d("routeLoaded", Object.assign({}, E, {
2719
+ d("routeLoading", Object.assign({}, A));
2720
+ const D = o[k].component;
2721
+ if (y != D) {
2722
+ D.loading ? (S(s, D.loading), y = D, S(l, D.loadingParams), S(u, {}), d("routeLoaded", Object.assign({}, A, {
2723
2723
  component: h(s),
2724
2724
  name: h(s).name,
2725
2725
  params: h(l)
2726
- }))) : (A(s, null), y = null);
2727
- const B = await H();
2726
+ }))) : (S(s, null), y = null);
2727
+ const H = await D();
2728
2728
  if (b != _)
2729
2729
  return;
2730
- A(s, B && B.default || B), y = H;
2730
+ S(s, H && H.default || H), y = D;
2731
2731
  }
2732
- x && typeof x == "object" && Object.keys(x).length ? A(l, x) : A(l, null), A(u, o[k].props), d("routeLoaded", Object.assign({}, E, {
2732
+ x && typeof x == "object" && Object.keys(x).length ? S(l, x) : S(l, null), S(u, o[k].props), d("routeLoaded", Object.assign({}, A, {
2733
2733
  component: h(s),
2734
2734
  name: h(s).name,
2735
2735
  params: h(l)
@@ -2738,10 +2738,10 @@ function Uo(t, e) {
2738
2738
  });
2739
2739
  return;
2740
2740
  }
2741
- A(s, null), y = null, Ta.set(void 0);
2741
+ S(s, null), y = null, Ta.set(void 0);
2742
2742
  });
2743
2743
  hu(() => {
2744
- S(), v && window.removeEventListener("popstate", v);
2744
+ E(), v && window.removeEventListener("popstate", v);
2745
2745
  }), Zr(
2746
2746
  () => wr(i()),
2747
2747
  () => {
@@ -2752,8 +2752,8 @@ function Uo(t, e) {
2752
2752
  {
2753
2753
  var T = (b) => {
2754
2754
  var k = je(), x = Lt(k);
2755
- ba(x, () => h(s), (E, H) => {
2756
- H(E, Ea(
2755
+ ba(x, () => h(s), (A, D) => {
2756
+ D(A, Ea(
2757
2757
  {
2758
2758
  get params() {
2759
2759
  return h(l);
@@ -2762,8 +2762,8 @@ function Uo(t, e) {
2762
2762
  () => h(u),
2763
2763
  {
2764
2764
  $$events: {
2765
- routeEvent(B) {
2766
- ka.call(this, e, B);
2765
+ routeEvent(H) {
2766
+ ka.call(this, e, H);
2767
2767
  }
2768
2768
  }
2769
2769
  }
@@ -2771,11 +2771,11 @@ function Uo(t, e) {
2771
2771
  }), C(b, k);
2772
2772
  }, N = (b) => {
2773
2773
  var k = je(), x = Lt(k);
2774
- ba(x, () => h(s), (E, H) => {
2775
- H(E, Ea(() => h(u), {
2774
+ ba(x, () => h(s), (A, D) => {
2775
+ D(A, Ea(() => h(u), {
2776
2776
  $$events: {
2777
- routeEvent(B) {
2778
- ka.call(this, e, B);
2777
+ routeEvent(H) {
2778
+ ka.call(this, e, H);
2779
2779
  }
2780
2780
  }
2781
2781
  }));
@@ -5094,18 +5094,18 @@ var yc = (
5094
5094
  return _;
5095
5095
  var y = st(i, this.clonePosition());
5096
5096
  if (u && La(u == null ? void 0 : u.style, "::", 0)) {
5097
- var S = bc(u.style.slice(2));
5097
+ var E = bc(u.style.slice(2));
5098
5098
  if (s === "number") {
5099
- var d = this.parseNumberSkeletonFromString(S, u.styleLocation);
5099
+ var d = this.parseNumberSkeletonFromString(E, u.styleLocation);
5100
5100
  return d.err ? d : {
5101
5101
  val: { type: Et.number, value: n, location: y, style: d.val },
5102
5102
  err: null
5103
5103
  };
5104
5104
  } else {
5105
- if (S.length === 0)
5105
+ if (E.length === 0)
5106
5106
  return this.error(ot.EXPECT_DATE_TIME_SKELETON, y);
5107
- var L = S;
5108
- this.locale && (L = ac(S, this.locale));
5107
+ var L = E;
5108
+ this.locale && (L = ac(E, this.locale));
5109
5109
  var f = {
5110
5110
  type: cr.dateTime,
5111
5111
  pattern: L,
@@ -5486,10 +5486,10 @@ function pn(t, e, r, n, i, a, o) {
5486
5486
  continue;
5487
5487
  }
5488
5488
  if (Qo(c)) {
5489
- var _ = c.children, y = c.value, S = i[y];
5490
- if (!Cc(S))
5489
+ var _ = c.children, y = c.value, E = i[y];
5490
+ if (!Cc(E))
5491
5491
  throw new Sc(y, "function", o);
5492
- var L = pn(_, e, r, n, i, a), I = S(L.map(function(b) {
5492
+ var L = pn(_, e, r, n, i, a), I = E(L.map(function(b) {
5493
5493
  return b.value;
5494
5494
  }));
5495
5495
  Array.isArray(I) || (I = [I]), s.push.apply(s, I.map(function(b) {
@@ -6045,11 +6045,11 @@ function vs(t, e) {
6045
6045
  Q(vs, {}, [], [], !0);
6046
6046
  class $r {
6047
6047
  constructor(e, r, n, i = [], a) {
6048
- F(this, "ID");
6049
- F(this, "opId");
6050
- F(this, "companyId");
6051
- F(this, "level");
6052
- F(this, "plans");
6048
+ R(this, "ID");
6049
+ R(this, "opId");
6050
+ R(this, "companyId");
6051
+ R(this, "level");
6052
+ R(this, "plans");
6053
6053
  this.opId = e, this.companyId = r, this.plans = i, this.level = n, this.ID = a;
6054
6054
  }
6055
6055
  getLevel(e) {
@@ -6101,9 +6101,9 @@ class $r {
6101
6101
  }
6102
6102
  class Nn {
6103
6103
  constructor(e, r, n) {
6104
- F(this, "planName");
6105
- F(this, "moduleId");
6106
- F(this, "level");
6104
+ R(this, "planName");
6105
+ R(this, "moduleId");
6106
+ R(this, "level");
6107
6107
  this.planName = e, this.moduleId = r, this.level = n;
6108
6108
  }
6109
6109
  isAdmin() {
@@ -6184,7 +6184,7 @@ const di = (t) => {
6184
6184
  });
6185
6185
  }
6186
6186
  };
6187
- F(nr, "URL");
6187
+ R(nr, "URL");
6188
6188
  let se = nr;
6189
6189
  class ps extends se {
6190
6190
  static async login() {
@@ -6373,19 +6373,19 @@ function ms(t, e) {
6373
6373
  let n = Y("");
6374
6374
  Ze(() => {
6375
6375
  const y = window.location.href.split("error=")[1].replaceAll("%20", " ");
6376
- y && A(n, M(y));
6376
+ y && S(n, M(y));
6377
6377
  });
6378
6378
  let i = Y("");
6379
6379
  ps.login().then((y) => {
6380
- A(i, "success"), ku("/");
6380
+ S(i, "success"), ku("/");
6381
6381
  }).catch((y) => {
6382
- A(i, "error " + y);
6382
+ S(i, "error " + y);
6383
6383
  });
6384
6384
  var a = Gd(), o = P(w(a), 2), s = w(o);
6385
6385
  {
6386
6386
  var l = (y) => {
6387
- var S = Fd(), L = w(S, !0);
6388
- g(S), z(() => at(L, h(n))), C(y, S);
6387
+ var E = Fd(), L = w(E, !0);
6388
+ g(E), z(() => at(L, h(n))), C(y, E);
6389
6389
  };
6390
6390
  ut(s, (y) => {
6391
6391
  h(n) && y(l);
@@ -6395,14 +6395,14 @@ function ms(t, e) {
6395
6395
  var u = P(o, 2), c = w(u);
6396
6396
  {
6397
6397
  var d = (y) => {
6398
- var S = Ud();
6399
- Ct(S, 21, () => r, Tt, (L, I) => {
6398
+ var E = Ud();
6399
+ Ct(E, 21, () => r, Tt, (L, I) => {
6400
6400
  var T = $d(), N = w(T, !0);
6401
6401
  g(T), z(() => at(N, h(I))), C(L, T);
6402
- }), g(S), C(y, S);
6402
+ }), g(E), C(y, E);
6403
6403
  }, f = (y) => {
6404
- var S = qd();
6405
- C(y, S);
6404
+ var E = qd();
6405
+ C(y, E);
6406
6406
  };
6407
6407
  ut(c, (y) => {
6408
6408
  Array.isArray(r) && r.length > 0 ? y(d) : y(f, !1);
@@ -6425,16 +6425,16 @@ function $a(t, { delay: e = 0, duration: r = 400, easing: n = Yd } = {}) {
6425
6425
  }
6426
6426
  class Pr {
6427
6427
  constructor(e, r, n, i, a, o, s) {
6428
- F(this, "_id", "");
6429
- F(this, "path", "");
6430
- F(this, "name");
6431
- F(this, "userId");
6432
- F(this, "companyId");
6433
- F(this, "isPrivate");
6434
- F(this, "isTemplate");
6435
- F(this, "tags", []);
6436
- F(this, "createdAt");
6437
- F(this, "updatedAt");
6428
+ R(this, "_id", "");
6429
+ R(this, "path", "");
6430
+ R(this, "name");
6431
+ R(this, "userId");
6432
+ R(this, "companyId");
6433
+ R(this, "isPrivate");
6434
+ R(this, "isTemplate");
6435
+ R(this, "tags", []);
6436
+ R(this, "createdAt");
6437
+ R(this, "updatedAt");
6438
6438
  this._id = e, this.path = r, this.name = n, this.userId = i, this.companyId = a, this.isPrivate = o, this.isTemplate = s, this.createdAt = Date.now(), this.updatedAt = Date.now();
6439
6439
  }
6440
6440
  static fromJSON(e) {
@@ -6478,7 +6478,7 @@ function ta(t, e) {
6478
6478
  let r = m(e, "color", 7, "none"), n = m(e, "width", 7, "320"), i = m(e, "height", 7, "440");
6479
6479
  var a = Xd(), o = w(a), s = P(o);
6480
6480
  return $i(3), g(a), z(() => {
6481
- D(a, "width", n()), D(a, "height", i()), D(o, "fill", r() === "none" ? "#3888FF" : r()), D(s, "fill", r() === "none" ? "#3888FF" : r());
6481
+ B(a, "width", n()), B(a, "height", i()), B(o, "fill", r() === "none" ? "#3888FF" : r()), B(s, "fill", r() === "none" ? "#3888FF" : r());
6482
6482
  }), C(t, a), W({
6483
6483
  get color() {
6484
6484
  return r();
@@ -6503,9 +6503,9 @@ function ta(t, e) {
6503
6503
  Q(ta, { color: {}, width: {}, height: {} }, [], [], !0);
6504
6504
  class zn {
6505
6505
  constructor(e, r, n) {
6506
- F(this, "labels");
6507
- F(this, "datasets");
6508
- F(this, "chartType");
6506
+ R(this, "labels");
6507
+ R(this, "datasets");
6508
+ R(this, "chartType");
6509
6509
  this.labels = e, this.datasets = r, this.chartType = n;
6510
6510
  }
6511
6511
  static fromJson(e) {
@@ -6532,8 +6532,8 @@ class zn {
6532
6532
  }
6533
6533
  class or {
6534
6534
  constructor(e, r) {
6535
- F(this, "data");
6536
- F(this, "backgroundColor");
6535
+ R(this, "data");
6536
+ R(this, "backgroundColor");
6537
6537
  this.data = e, this.backgroundColor = r;
6538
6538
  }
6539
6539
  static fromJson(e) {
@@ -6558,7 +6558,7 @@ class or {
6558
6558
  const Jd = (t) => t.text != null ? Ur.fromJSON(t) : t.data != null ? In.fromJSON(t) : t.chart && t.chart.labels != null ? On.fromJSON(t) : t.url != null ? Ln.fromJSON(t) : new De(t.index);
6559
6559
  class De {
6560
6560
  constructor(e) {
6561
- F(this, "Index");
6561
+ R(this, "Index");
6562
6562
  this.Index = e;
6563
6563
  }
6564
6564
  toJSON() {
@@ -6585,7 +6585,7 @@ class De {
6585
6585
  class Ur extends De {
6586
6586
  constructor(r, n) {
6587
6587
  super(r);
6588
- F(this, "Text");
6588
+ R(this, "Text");
6589
6589
  this.Text = n;
6590
6590
  }
6591
6591
  toJSON() {
@@ -6613,8 +6613,8 @@ class Ur extends De {
6613
6613
  class In extends De {
6614
6614
  constructor(r, n) {
6615
6615
  super(r);
6616
- F(this, "data");
6617
- F(this, "classes");
6616
+ R(this, "data");
6617
+ R(this, "classes");
6618
6618
  this.data = n, this.classes = [];
6619
6619
  }
6620
6620
  toJSON() {
@@ -6654,7 +6654,7 @@ class In extends De {
6654
6654
  class On extends De {
6655
6655
  constructor(r, n) {
6656
6656
  super(r);
6657
- F(this, "Chart");
6657
+ R(this, "Chart");
6658
6658
  this.Chart = n;
6659
6659
  }
6660
6660
  toJSON() {
@@ -6690,7 +6690,7 @@ class On extends De {
6690
6690
  class Ln extends De {
6691
6691
  constructor(r, n) {
6692
6692
  super(r);
6693
- F(this, "Url");
6693
+ R(this, "Url");
6694
6694
  this.Url = n;
6695
6695
  }
6696
6696
  toJSON() {
@@ -6717,16 +6717,16 @@ class Ln extends De {
6717
6717
  }
6718
6718
  class Pn {
6719
6719
  constructor(e, r, n, i, a, o, s, l, u = [], c = "it_IT") {
6720
- F(this, "_id");
6721
- F(this, "documentId");
6722
- F(this, "number");
6723
- F(this, "confirmed");
6724
- F(this, "paragraphs");
6725
- F(this, "defaultFirstPage");
6726
- F(this, "segnaposto");
6727
- F(this, "updatedAt");
6728
- F(this, "createdAt");
6729
- F(this, "language");
6720
+ R(this, "_id");
6721
+ R(this, "documentId");
6722
+ R(this, "number");
6723
+ R(this, "confirmed");
6724
+ R(this, "paragraphs");
6725
+ R(this, "defaultFirstPage");
6726
+ R(this, "segnaposto");
6727
+ R(this, "updatedAt");
6728
+ R(this, "createdAt");
6729
+ R(this, "language");
6730
6730
  this._id = l ?? "", this.documentId = n, this.number = e, this.confirmed = r, this.paragraphs = i, this.defaultFirstPage = a, this.segnaposto = u, this.updatedAt = o, this.createdAt = s, this.language = c;
6731
6731
  }
6732
6732
  toJSON() {
@@ -6793,16 +6793,16 @@ class Pn {
6793
6793
  }
6794
6794
  class Ie {
6795
6795
  constructor(e, r, n, i, a, o, s, l) {
6796
- F(this, "id");
6797
- F(this, "indexes");
6798
- F(this, "title");
6799
- F(this, "validated");
6800
- F(this, "column");
6801
- F(this, "children");
6802
- F(this, "lastUpdateUserId");
6803
- F(this, "updatedAt");
6804
- F(this, "classes");
6805
- F(this, "lastIndex", () => this.indexes.length === 1 ? this.indexes[0] : this.indexes[this.indexes.length - 1]);
6796
+ R(this, "id");
6797
+ R(this, "indexes");
6798
+ R(this, "title");
6799
+ R(this, "validated");
6800
+ R(this, "column");
6801
+ R(this, "children");
6802
+ R(this, "lastUpdateUserId");
6803
+ R(this, "updatedAt");
6804
+ R(this, "classes");
6805
+ R(this, "lastIndex", () => this.indexes.length === 1 ? this.indexes[0] : this.indexes[this.indexes.length - 1]);
6806
6806
  this.id = e, this.indexes = r, this.title = n, this.column = a, this.children = o, this.validated = i, this.lastUpdateUserId = s, this.updatedAt = l;
6807
6807
  }
6808
6808
  toJSON() {
@@ -6870,13 +6870,14 @@ class Ie {
6870
6870
  }
6871
6871
  }
6872
6872
  class ea {
6873
- constructor(e, r, n = "", i = "", a) {
6874
- F(this, "id");
6875
- F(this, "nome");
6876
- F(this, "domanda");
6877
- F(this, "idSuite");
6878
- F(this, "valore");
6879
- this.id = e, this.nome = r, this.domanda = n, this.idSuite = i, this.valore = a;
6873
+ constructor(e, r, n = "", i = "", a = "", o = !1) {
6874
+ R(this, "id");
6875
+ R(this, "nome");
6876
+ R(this, "domanda");
6877
+ R(this, "idSuite");
6878
+ R(this, "valore");
6879
+ R(this, "addToFilename", !1);
6880
+ this.id = e, this.nome = r, this.domanda = n, this.idSuite = i, this.valore = a, this.addToFilename = o;
6880
6881
  }
6881
6882
  toJSON() {
6882
6883
  return {
@@ -6884,7 +6885,8 @@ class ea {
6884
6885
  nome: this.nome,
6885
6886
  domanda: this.domanda,
6886
6887
  idSuite: this.idSuite,
6887
- valore: this.valore
6888
+ valore: this.valore,
6889
+ addToFilename: this.addToFilename
6888
6890
  };
6889
6891
  }
6890
6892
  static fromJSON(e) {
@@ -6893,7 +6895,8 @@ class ea {
6893
6895
  e.nome,
6894
6896
  e.domanda,
6895
6897
  e.idSuite,
6896
- e.valore
6898
+ e.valore,
6899
+ e.addToFilename ?? !1
6897
6900
  );
6898
6901
  }
6899
6902
  }
@@ -6970,7 +6973,7 @@ class Se extends se {
6970
6973
  }
6971
6974
  }
6972
6975
  var Zd = (t, e) => e(!1), Wd = (t, e, r, n) => {
6973
- A(e, M(h(r).number)), n(h(r)._id);
6976
+ S(e, M(h(r).number)), n(h(r)._id);
6974
6977
  }, Qd = /* @__PURE__ */ O('<i class="fa-solid fa-check pe-1" style="color: green;"></i>'), Kd = /* @__PURE__ */ O('<i class="fa-solid fa-pen-to-square"></i>'), tf = /* @__PURE__ */ O('<button class="version-button svelte-fggkup"><div class="logo svelte-fggkup"><!></div> <span class="version-name"> </span> <!></button>'), ef = /* @__PURE__ */ O('<div class="new-version svelte-fggkup"><button class="btn btn-primary svelte-fggkup"><i class="fa-solid fa-plus"></i> </button></div>'), rf = /* @__PURE__ */ O('<div class="modal-body d-flex flex-column gap-2"></div> <div class="modal-footer"><!></div>', 1), nf = (t, e, r) => e(h(r).language), af = /* @__PURE__ */ O('<i class="fa-solid fa-check pe-1" style="color: green;"></i>'), of = /* @__PURE__ */ O('<i class="fa-solid fa-pen-to-square"></i>'), sf = /* @__PURE__ */ O('<div class="d-flex flex-column gap-2"><button class="version-button svelte-fggkup"> <!></button></div>'), lf = /* @__PURE__ */ O('<div class="modal-body d-flex flex-column gap-2"></div>'), uf = /* @__PURE__ */ O('<div class="modal-backdrop show"></div>'), cf = /* @__PURE__ */ O('<div class="modal show" id="ModalBase" tabindex="-1" aria-modal="true" role="dialog"><div class="modal-dialog custom-modal svelte-fggkup"><div class="modal-content"><div class="modal-header"><h3> </h3> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button></div> <!></div></div></div> <!>', 1);
6975
6978
  const df = {
6976
6979
  hash: "svelte-fggkup",
@@ -6980,7 +6983,7 @@ function gs(t, e) {
6980
6983
  Z(e, !0), et(t, df);
6981
6984
  const r = ne(), n = () => re(pe, "$_", r);
6982
6985
  let i = m(e, "showVersionsDialog", 15), a = m(e, "versions", 15), o = m(e, "openEditor", 7), s = m(e, "addNewVersion", 7);
6983
- const l = (B) => {
6986
+ const l = (H) => {
6984
6987
  const U = {
6985
6988
  year: "numeric",
6986
6989
  month: "2-digit",
@@ -6990,38 +6993,38 @@ function gs(t, e) {
6990
6993
  hour12: !1,
6991
6994
  timeZone: "Europe/Rome"
6992
6995
  };
6993
- return new Intl.DateTimeFormat("it-IT", U).format(B).replace(",", "");
6996
+ return new Intl.DateTimeFormat("it-IT", U).format(H).replace(",", "");
6994
6997
  };
6995
- let u = a().filter((B, U, R) => R.findIndex((tt) => tt.number === B.number) === U), c = Y(0), d = Y(-1), f = (B = "it_IT") => {
6998
+ let u = a().filter((H, U, F) => F.findIndex((tt) => tt.number === H.number) === U), c = Y(0), d = Y(-1), f = (H = "it_IT") => {
6996
6999
  let U;
6997
7000
  switch (h(c)) {
6998
7001
  case 0:
6999
- if (U = a().filter((R) => R.number === h(d)), U.length == 1) {
7002
+ if (U = a().filter((F) => F.number === h(d)), U.length == 1) {
7000
7003
  o()(U[0]._id);
7001
7004
  return;
7002
7005
  } else {
7003
- A(c, 1);
7006
+ S(c, 1);
7004
7007
  return;
7005
7008
  }
7006
7009
  case 1:
7007
- if (U = a().filter((R) => R.number === h(d) && (R.language === B || R.language == null)), U.length == 1) {
7010
+ if (U = a().filter((F) => F.number === h(d) && (F.language === H || F.language == null)), U.length == 1) {
7008
7011
  o()(U[0]._id);
7009
7012
  return;
7010
7013
  } else {
7011
- A(c, 0);
7014
+ S(c, 0);
7012
7015
  return;
7013
7016
  }
7014
7017
  }
7015
7018
  };
7016
- var v = cf(), _ = Lt(v), y = w(_), S = w(y), L = w(S), I = w(L), T = w(I, !0);
7019
+ var v = cf(), _ = Lt(v), y = w(_), E = w(y), L = w(E), I = w(L), T = w(I, !0);
7017
7020
  z(() => at(T, n()("versions"))), g(I);
7018
7021
  var N = P(I, 2);
7019
7022
  N.__click = [Zd, i], g(L);
7020
7023
  var b = P(L, 2);
7021
7024
  {
7022
- var k = (B) => {
7023
- var U = rf(), R = Lt(U);
7024
- Ct(R, 21, () => u, Tt, (xt, X) => {
7025
+ var k = (H) => {
7026
+ var U = rf(), F = Lt(U);
7027
+ Ct(F, 21, () => u, Tt, (xt, X) => {
7025
7028
  var V = tf();
7026
7029
  V.__click = [
7027
7030
  Wd,
@@ -7051,8 +7054,8 @@ function gs(t, e) {
7051
7054
  });
7052
7055
  }
7053
7056
  g(V), C(xt, V);
7054
- }), g(R);
7055
- var tt = P(R, 2), it = w(tt);
7057
+ }), g(F);
7058
+ var tt = P(F, 2), it = w(tt);
7056
7059
  {
7057
7060
  var dt = (xt) => {
7058
7061
  var X = ef(), V = w(X);
@@ -7067,9 +7070,9 @@ function gs(t, e) {
7067
7070
  u[u.length - 1].confirmed && xt(dt);
7068
7071
  });
7069
7072
  }
7070
- g(tt), C(B, U);
7071
- }, x = (B) => {
7072
- var U = je(), R = Lt(U);
7073
+ g(tt), C(H, U);
7074
+ }, x = (H) => {
7075
+ var U = je(), F = Lt(U);
7073
7076
  {
7074
7077
  var tt = (it) => {
7075
7078
  var dt = lf();
@@ -7102,54 +7105,54 @@ function gs(t, e) {
7102
7105
  }), g(dt), C(it, dt);
7103
7106
  };
7104
7107
  ut(
7105
- R,
7108
+ F,
7106
7109
  (it) => {
7107
7110
  h(c) == 1 && it(tt);
7108
7111
  },
7109
7112
  !0
7110
7113
  );
7111
7114
  }
7112
- C(B, U);
7115
+ C(H, U);
7113
7116
  };
7114
- ut(b, (B) => {
7115
- h(c) == 0 ? B(k) : B(x, !1);
7117
+ ut(b, (H) => {
7118
+ h(c) == 0 ? H(k) : H(x, !1);
7116
7119
  });
7117
7120
  }
7118
- g(S), g(y), g(_);
7119
- var E = P(_, 2);
7121
+ g(E), g(y), g(_);
7122
+ var A = P(_, 2);
7120
7123
  {
7121
- var H = (B) => {
7124
+ var D = (H) => {
7122
7125
  var U = uf();
7123
- C(B, U);
7126
+ C(H, U);
7124
7127
  };
7125
- ut(E, (B) => {
7126
- i() && B(H);
7128
+ ut(A, (H) => {
7129
+ i() && H(D);
7127
7130
  });
7128
7131
  }
7129
- return z(() => D(_, "style", `display: ${(i() ? "block" : "none") ?? ""};`)), C(t, v), W({
7132
+ return z(() => B(_, "style", `display: ${(i() ? "block" : "none") ?? ""};`)), C(t, v), W({
7130
7133
  get showVersionsDialog() {
7131
7134
  return i();
7132
7135
  },
7133
- set showVersionsDialog(B) {
7134
- i(B), p();
7136
+ set showVersionsDialog(H) {
7137
+ i(H), p();
7135
7138
  },
7136
7139
  get versions() {
7137
7140
  return a();
7138
7141
  },
7139
- set versions(B) {
7140
- a(B), p();
7142
+ set versions(H) {
7143
+ a(H), p();
7141
7144
  },
7142
7145
  get openEditor() {
7143
7146
  return o();
7144
7147
  },
7145
- set openEditor(B) {
7146
- o(B), p();
7148
+ set openEditor(H) {
7149
+ o(H), p();
7147
7150
  },
7148
7151
  get addNewVersion() {
7149
7152
  return s();
7150
7153
  },
7151
- set addNewVersion(B) {
7152
- s(B), p();
7154
+ set addNewVersion(H) {
7155
+ s(H), p();
7153
7156
  }
7154
7157
  });
7155
7158
  }
@@ -7185,7 +7188,7 @@ function rn(t, e) {
7185
7188
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "0.75s"), a = m(e, "size", 12, "60"), o = m(e, "pause", 12, !1);
7186
7189
  var s = ff();
7187
7190
  return z(() => {
7188
- D(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""}`), ct(s, "pause-animation", o());
7191
+ B(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""}`), ct(s, "pause-animation", o());
7189
7192
  }), C(t, s), W({
7190
7193
  get color() {
7191
7194
  return r();
@@ -7257,7 +7260,7 @@ function mf(t, e) {
7257
7260
  let r = m(e, "size", 12, "60"), n = m(e, "unit", 12, "px"), i = m(e, "pause", 12, !1), a = m(e, "colorOuter", 12, "#FF3E00"), o = m(e, "colorCenter", 12, "#40B3FF"), s = m(e, "colorInner", 12, "#676778"), l = m(e, "durationMultiplier", 12, 1), u = m(e, "durationOuter", 28, () => `${l() * 2}s`), c = m(e, "durationInner", 28, () => `${l() * 1.5}s`), d = m(e, "durationCenter", 28, () => `${l() * 3}s`);
7258
7261
  var f = vf();
7259
7262
  return z(() => {
7260
- D(f, "style", `--size: ${r() ?? ""}${n() ?? ""}; --colorInner: ${s() ?? ""}; --colorCenter: ${o() ?? ""}; --colorOuter: ${a() ?? ""}; --durationInner: ${c() ?? ""}; --durationCenter: ${d() ?? ""}; --durationOuter: ${u() ?? ""};`), ct(f, "pause-animation", i());
7263
+ B(f, "style", `--size: ${r() ?? ""}${n() ?? ""}; --colorInner: ${s() ?? ""}; --colorCenter: ${o() ?? ""}; --colorOuter: ${a() ?? ""}; --durationInner: ${c() ?? ""}; --durationCenter: ${d() ?? ""}; --durationOuter: ${u() ?? ""};`), ct(f, "pause-animation", i());
7261
7264
  }), C(t, f), W({
7262
7265
  get size() {
7263
7266
  return r();
@@ -7376,13 +7379,13 @@ function _f(t, e) {
7376
7379
  let r = m(e, "size", 12, "60"), n = m(e, "unit", 12, "px"), i = m(e, "pause", 12, !1), a = m(e, "ballTopLeft", 12, "#FF3E00"), o = m(e, "ballTopRight", 12, "#F8B334"), s = m(e, "ballBottomLeft", 12, "#40B3FF"), l = m(e, "ballBottomRight", 12, "#676778"), u = m(e, "duration", 12, "1.5s");
7377
7380
  var c = gf(), d = w(c), f = w(d), v = w(f), _ = w(v);
7378
7381
  g(v);
7379
- var y = P(v, 2), S = w(y);
7382
+ var y = P(v, 2), E = w(y);
7380
7383
  g(y);
7381
7384
  var L = P(y, 2), I = w(L);
7382
7385
  g(L);
7383
7386
  var T = P(L, 2), N = w(T);
7384
7387
  return g(T), g(f), g(d), g(c), z(() => {
7385
- D(c, "style", `--size: ${r() ?? ""}${n() ?? ""}; --floatSize: ${r() ?? ""}; --ballTopLeftColor: ${a() ?? ""}; --ballTopRightColor: ${o() ?? ""}; --ballBottomLeftColor: ${s() ?? ""}; --ballBottomRightColor: ${l() ?? ""}; --duration: ${u() ?? ""};`), ct(f, "pause-animation", i()), ct(_, "pause-animation", i()), ct(S, "pause-animation", i()), ct(I, "pause-animation", i()), ct(N, "pause-animation", i());
7388
+ B(c, "style", `--size: ${r() ?? ""}${n() ?? ""}; --floatSize: ${r() ?? ""}; --ballTopLeftColor: ${a() ?? ""}; --ballTopRightColor: ${o() ?? ""}; --ballBottomLeftColor: ${s() ?? ""}; --ballBottomRightColor: ${l() ?? ""}; --duration: ${u() ?? ""};`), ct(f, "pause-animation", i()), ct(_, "pause-animation", i()), ct(E, "pause-animation", i()), ct(I, "pause-animation", i()), ct(N, "pause-animation", i());
7386
7389
  }), C(t, c), W({
7387
7390
  get size() {
7388
7391
  return r();
@@ -7483,9 +7486,9 @@ function kf(t, e) {
7483
7486
  return Ct(u, 5, () => ie(2, 1), Tt, (d, f) => {
7484
7487
  var v = yf();
7485
7488
  z(() => {
7486
- D(v, "style", `animation: ${i() ?? ""} ${(h(f) === 1 ? `${(+l - 0.1) / 2}${s}` : "0s") ?? ""} infinite ease-in-out`), ct(v, "pause-animation", o());
7489
+ B(v, "style", `animation: ${i() ?? ""} ${(h(f) === 1 ? `${(+l - 0.1) / 2}${s}` : "0s") ?? ""} infinite ease-in-out`), ct(v, "pause-animation", o());
7487
7490
  }), C(d, v);
7488
- }), g(u), z(() => D(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}`)), C(t, u), W({
7491
+ }), g(u), z(() => B(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}`)), C(t, u), W({
7489
7492
  get color() {
7490
7493
  return r();
7491
7494
  },
@@ -7709,14 +7712,14 @@ function Af(t, e) {
7709
7712
  const r = Ge();
7710
7713
  let n = m(e, "size", 12, "40px"), i = m(e, "duration", 12, "3s"), a = m(e, "pause", 12, !1);
7711
7714
  Zr(() => wr(n()), () => {
7712
- A(r, [
7715
+ S(r, [
7713
7716
  `width: ${n()}`,
7714
7717
  `height: ${n()}`
7715
7718
  ].join(";"));
7716
7719
  }), Wr(), Mt();
7717
7720
  var o = Ef();
7718
7721
  return z(() => {
7719
- D(o, "style", `--duration: ${i() ?? ""}; ${h(r) ?? ""}`), ct(o, "pause-animation", a());
7722
+ B(o, "style", `--duration: ${i() ?? ""}; ${h(r) ?? ""}`), ct(o, "pause-animation", a());
7720
7723
  }), C(t, o), W({
7721
7724
  get size() {
7722
7725
  return n();
@@ -7759,7 +7762,7 @@ function Nf(t, e) {
7759
7762
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "1s"), a = m(e, "size", 12, "60"), o = m(e, "pause", 12, !1);
7760
7763
  var s = Tf(), l = w(s);
7761
7764
  return g(s), z(() => {
7762
- D(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""}; --duration: ${i() ?? ""};`), ct(l, "pause-animation", o());
7765
+ B(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""}; --duration: ${i() ?? ""};`), ct(l, "pause-animation", o());
7763
7766
  }), C(t, s), W({
7764
7767
  get color() {
7765
7768
  return r();
@@ -7872,7 +7875,7 @@ function Of(t, e) {
7872
7875
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "4s"), a = m(e, "size", 12, "60"), o = m(e, "stroke", 28, () => +a() / 12 + n()), s = m(e, "pause", 12, !1);
7873
7876
  var l = zf(), u = w(l);
7874
7877
  return g(l), z(() => {
7875
- D(l, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --stroke: ${o() ?? ""}; --floatSize: ${a() ?? ""}; --duration: ${i() ?? ""}`), ct(u, "pause-animation", s());
7878
+ B(l, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --stroke: ${o() ?? ""}; --floatSize: ${a() ?? ""}; --duration: ${i() ?? ""}`), ct(u, "pause-animation", s());
7876
7879
  }), C(t, l), W({
7877
7880
  get color() {
7878
7881
  return r();
@@ -7951,9 +7954,9 @@ function Hf(t, e) {
7951
7954
  return Ct(u, 5, () => ie(5, 1), Tt, (d, f) => {
7952
7955
  var v = Lf();
7953
7956
  z(() => {
7954
- D(v, "style", `animation-delay: ${(h(f) - 1) * (+l / 12)}${s ?? ""}`), ct(v, "pause-animation", o());
7957
+ B(v, "style", `animation-delay: ${(h(f) - 1) * (+l / 12)}${s ?? ""}`), ct(v, "pause-animation", o());
7955
7958
  }), C(d, v);
7956
- }), g(u), z(() => D(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""}`)), C(t, u), W({
7959
+ }), g(u), z(() => B(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""}`)), C(t, u), W({
7957
7960
  get color() {
7958
7961
  return r();
7959
7962
  },
@@ -8043,16 +8046,16 @@ function Rf(t, e) {
8043
8046
  Zr(
8044
8047
  () => wr(r()),
8045
8048
  () => {
8046
- A(s, ra(r(), 0.2));
8049
+ S(s, ra(r(), 0.2));
8047
8050
  }
8048
8051
  ), Wr(), Mt();
8049
8052
  var l = Df();
8050
8053
  return Ct(l, 5, () => ie(2, 1), Tt, (u, c) => {
8051
8054
  var d = Bf();
8052
8055
  z(() => {
8053
- Be(d, `lines small-lines ${h(c) ?? ""} svelte-bnawe9`), D(d, "style", `--color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(d, "pause-animation", o());
8056
+ Be(d, `lines small-lines ${h(c) ?? ""} svelte-bnawe9`), B(d, "style", `--color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(d, "pause-animation", o());
8054
8057
  }), C(u, d);
8055
- }), g(l), z(() => D(l, "style", `--size: ${a() ?? ""}${n() ?? ""}; --rgba:${h(s) ?? ""}`)), C(t, l), W({
8058
+ }), g(l), z(() => B(l, "style", `--size: ${a() ?? ""}${n() ?? ""}; --rgba:${h(s) ?? ""}`)), C(t, l), W({
8056
8059
  get color() {
8057
8060
  return r();
8058
8061
  },
@@ -8126,9 +8129,9 @@ function qf(t, e) {
8126
8129
  return Ct(u, 5, () => ie(3, 1), Tt, (d, f) => {
8127
8130
  var v = Ff();
8128
8131
  z(() => {
8129
- D(v, "style", `animation-delay: ${+l / 3 * (h(f) - 1) + s};`), ct(v, "pause-animation", o());
8132
+ B(v, "style", `animation-delay: ${+l / 3 * (h(f) - 1) + s};`), ct(v, "pause-animation", o());
8130
8133
  }), C(d, v);
8131
- }), g(u), z(() => D(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`)), C(t, u), W({
8134
+ }), g(u), z(() => B(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`)), C(t, u), W({
8132
8135
  get color() {
8133
8136
  return r();
8134
8137
  },
@@ -8208,7 +8211,7 @@ function Xf(t, e) {
8208
8211
  z(() => {
8209
8212
  Be(c, `border ${h(u) ?? ""} svelte-kxapcj`), ct(c, "pause-animation", o());
8210
8213
  }), C(l, c);
8211
- }), g(s), z(() => D(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`)), C(t, s), W({
8214
+ }), g(s), z(() => B(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`)), C(t, s), W({
8212
8215
  get color() {
8213
8216
  return r();
8214
8217
  },
@@ -8298,9 +8301,9 @@ function Qf(t, e) {
8298
8301
  return Ct(u, 5, () => ie(3, 1), Tt, (d, f) => {
8299
8302
  var v = Jf();
8300
8303
  z(() => {
8301
- D(v, "style", `--dotSize:${+a() * 0.25}${n() ?? ""}; --color:${r() ?? ""}; animation-delay: ${h(f) * (+l / 10)}${s ?? ""};`), ct(v, "pause-animation", o());
8304
+ B(v, "style", `--dotSize:${+a() * 0.25}${n() ?? ""}; --color:${r() ?? ""}; animation-delay: ${h(f) * (+l / 10)}${s ?? ""};`), ct(v, "pause-animation", o());
8302
8305
  }), C(d, v);
8303
- }), g(u), z(() => D(u, "style", `--size:${a() ?? ""}${n() ?? ""}; --duration: ${i() ?? ""};`)), C(t, u), W({
8306
+ }), g(u), z(() => B(u, "style", `--size:${a() ?? ""}${n() ?? ""}; --duration: ${i() ?? ""};`)), C(t, u), W({
8304
8307
  get color() {
8305
8308
  return r();
8306
8309
  },
@@ -8375,7 +8378,7 @@ function eh(t, e) {
8375
8378
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "3s"), a = m(e, "size", 12, "60"), o = m(e, "pause", 12, !1);
8376
8379
  var s = Kf(), l = w(s);
8377
8380
  return g(s), z(() => {
8378
- D(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(l, "pause-animation", o());
8381
+ B(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(l, "pause-animation", o());
8379
8382
  }), C(t, s), W({
8380
8383
  get color() {
8381
8384
  return r();
@@ -8447,7 +8450,7 @@ function ih(t, e) {
8447
8450
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "1.25s"), a = m(e, "size", 12, "60"), o = m(e, "pause", 12, !1);
8448
8451
  var s = rh(), l = w(s);
8449
8452
  return g(s), z(() => {
8450
- D(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(l, "pause-animation", o());
8453
+ B(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(l, "pause-animation", o());
8451
8454
  }), C(t, s), W({
8452
8455
  get color() {
8453
8456
  return r();
@@ -8520,9 +8523,9 @@ function lh(t, e) {
8520
8523
  return Ct(u, 5, () => ie(3, 0), Tt, (d, f) => {
8521
8524
  var v = ah();
8522
8525
  z(() => {
8523
- D(v, "style", `animation-delay: ${h(f) * (+l / 10)}${s ?? ""}; left: ${h(f) * (+a() / 3 + +a() / 15) + n()};`), ct(v, "pause-animation", o());
8526
+ B(v, "style", `animation-delay: ${h(f) * (+l / 10)}${s ?? ""}; left: ${h(f) * (+a() / 3 + +a() / 15) + n()};`), ct(v, "pause-animation", o());
8524
8527
  }), C(d, v);
8525
- }), g(u), z(() => D(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""}`)), C(t, u), W({
8528
+ }), g(u), z(() => B(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""}`)), C(t, u), W({
8526
8529
  get color() {
8527
8530
  return r();
8528
8531
  },
@@ -8594,9 +8597,9 @@ function fh(t, e) {
8594
8597
  return Ct(u, 5, () => ie(6, 0), Tt, (d, f) => {
8595
8598
  var v = uh();
8596
8599
  z(() => {
8597
- D(v, "style", `animation-delay: ${h(f) * (+l / 25)}${s ?? ""}; width: ${h(f) * (+a() / 6) + n()}; height: ${h(f) * (+a() / 6) / 2 + n()}; `), ct(v, "pause-animation", o());
8600
+ B(v, "style", `animation-delay: ${h(f) * (+l / 25)}${s ?? ""}; width: ${h(f) * (+a() / 6) + n()}; height: ${h(f) * (+a() / 6) / 2 + n()}; `), ct(v, "pause-animation", o());
8598
8601
  }), C(d, v);
8599
- }), g(u), z(() => D(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --motionOne: ${-a() / 5}${n() ?? ""}; --motionTwo: ${+a() / 4}${n() ?? ""}; --motionThree: ${-a() / 5}${n() ?? ""}; --duration: ${i() ?? ""};`)), C(t, u), W({
8602
+ }), g(u), z(() => B(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --motionOne: ${-a() / 5}${n() ?? ""}; --motionTwo: ${+a() / 4}${n() ?? ""}; --motionThree: ${-a() / 5}${n() ?? ""}; --duration: ${i() ?? ""};`)), C(t, u), W({
8600
8603
  get color() {
8601
8604
  return r();
8602
8605
  },
@@ -8673,10 +8676,10 @@ function mh(t, e) {
8673
8676
  return Ct(c, 5, () => ie(2, 0), Tt, (f, v) => {
8674
8677
  var _ = hh();
8675
8678
  z(() => {
8676
- D(_, "style", `animation-delay: ${(h(v) === 1 ? `${+l / 2}${s}` : "0s") ?? ""}; ${(h(v) === 1 ? "bottom: 0;" : "") ?? ""} ${(h(v) === 1 ? "top: auto;" : "") ?? ""}`), ct(_, "pause-animation", o());
8679
+ B(_, "style", `animation-delay: ${(h(v) === 1 ? `${+l / 2}${s}` : "0s") ?? ""}; ${(h(v) === 1 ? "bottom: 0;" : "") ?? ""} ${(h(v) === 1 ? "top: auto;" : "") ?? ""}`), ct(_, "pause-animation", o());
8677
8680
  }), C(f, _);
8678
8681
  }), g(c), g(u), z(() => {
8679
- D(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(c, "pause-animation", o());
8682
+ B(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(c, "pause-animation", o());
8680
8683
  }), C(t, u), W({
8681
8684
  get color() {
8682
8685
  return r();
@@ -8752,7 +8755,7 @@ function _h(t, e) {
8752
8755
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "3s"), a = m(e, "size", 12, "60"), o = m(e, "pause", 12, !1);
8753
8756
  var s = gh();
8754
8757
  return z(() => {
8755
- D(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(s, "pause-animation", o());
8758
+ B(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(s, "pause-animation", o());
8756
8759
  }), C(t, s), W({
8757
8760
  get color() {
8758
8761
  return r();
@@ -8846,7 +8849,7 @@ function xh(t, e) {
8846
8849
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "1.7s"), a = m(e, "size", 12, "60"), o = m(e, "pause", 12, !1);
8847
8850
  var s = yh(), l = w(s);
8848
8851
  return g(s), z(() => {
8849
- D(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(l, "pause-animation", o());
8852
+ B(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(l, "pause-animation", o());
8850
8853
  }), C(t, s), W({
8851
8854
  get color() {
8852
8855
  return r();
@@ -8910,7 +8913,7 @@ function Sh(t, e) {
8910
8913
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "0.6s"), a = m(e, "size", 12, "60"), o = m(e, "pause", 12, !1), s = +a() / 7, l = +a() / 2 - s / 2;
8911
8914
  var u = kh(), c = w(u), d = P(c, 2);
8912
8915
  return g(u), z(() => {
8913
- D(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --moonSize: ${l ?? ""}${n() ?? ""}; --duration: ${i() ?? ""};`), ct(u, "pause-animation", o()), ct(c, "pause-animation", o()), ct(d, "pause-animation", o());
8916
+ B(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --moonSize: ${l ?? ""}${n() ?? ""}; --duration: ${i() ?? ""};`), ct(u, "pause-animation", o()), ct(c, "pause-animation", o()), ct(d, "pause-animation", o());
8914
8917
  }), C(t, u), W({
8915
8918
  get color() {
8916
8919
  return r();
@@ -8996,12 +8999,12 @@ function Ch(t, e) {
8996
8999
  Zr(
8997
9000
  () => wr(r()),
8998
9001
  () => {
8999
- A(s, ra(r(), 0.6));
9002
+ S(s, ra(r(), 0.6));
9000
9003
  }
9001
9004
  ), Wr(), Mt();
9002
9005
  var l = Ah(), u = w(l);
9003
9006
  return g(l), z(() => {
9004
- D(l, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --rgba: ${h(s) ?? ""}; --duration: ${i() ?? ""};`), ct(u, "pause-animation", o());
9007
+ B(l, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --rgba: ${h(s) ?? ""}; --duration: ${i() ?? ""};`), ct(u, "pause-animation", o());
9005
9008
  }), C(t, l), W({
9006
9009
  get color() {
9007
9010
  return r();
@@ -9070,7 +9073,7 @@ function Ih(t, e) {
9070
9073
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "1.5s"), a = m(e, "size", 12, "60"), o = m(e, "pause", 12, !1);
9071
9074
  var s = Nh();
9072
9075
  return z(() => {
9073
- D(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color:${r() ?? ""}; --duration: ${i() ?? ""};`), ct(s, "pause-animation", o());
9076
+ B(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color:${r() ?? ""}; --duration: ${i() ?? ""};`), ct(s, "pause-animation", o());
9074
9077
  }), C(t, s), W({
9075
9078
  get color() {
9076
9079
  return r();
@@ -9137,7 +9140,7 @@ function Ph(t, e) {
9137
9140
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "8s"), a = m(e, "size", 12, "60"), o = m(e, "pause", 12, !1);
9138
9141
  var s = Oh();
9139
9142
  return z(() => {
9140
- D(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color:${r() ?? ""}; --duration:${i() ?? ""}`), ct(s, "pause-animation", o());
9143
+ B(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color:${r() ?? ""}; --duration:${i() ?? ""}`), ct(s, "pause-animation", o());
9141
9144
  }), C(t, s), W({
9142
9145
  get color() {
9143
9146
  return r();
@@ -9211,9 +9214,9 @@ function Dh(t, e) {
9211
9214
  return Ct(u, 5, () => ie(10, 0), Tt, (d, f) => {
9212
9215
  var v = jh();
9213
9216
  z(() => {
9214
- D(v, "style", `left: ${h(f) * (+a() / 5 + (+a() / 15 - +a() / 100)) + n()}; animation-delay: ${h(f) * (+l / 8.3)}${s ?? ""};`), ct(v, "pause-animation", o());
9217
+ B(v, "style", `left: ${h(f) * (+a() / 5 + (+a() / 15 - +a() / 100)) + n()}; animation-delay: ${h(f) * (+l / 8.3)}${s ?? ""};`), ct(v, "pause-animation", o());
9215
9218
  }), C(d, v);
9216
- }), g(u), z(() => D(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`)), C(t, u), W({
9219
+ }), g(u), z(() => B(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`)), C(t, u), W({
9217
9220
  get color() {
9218
9221
  return r();
9219
9222
  },
@@ -9288,16 +9291,16 @@ function $h(t, e) {
9288
9291
  Zr(
9289
9292
  () => wr(r()),
9290
9293
  () => {
9291
- A(u, ra(r(), 1));
9294
+ S(u, ra(r(), 1));
9292
9295
  }
9293
9296
  ), Wr(), Mt();
9294
9297
  var c = Rh();
9295
9298
  return Ct(c, 5, () => ie(2, 1), Tt, (f, v) => {
9296
9299
  var _ = Mh();
9297
9300
  z(() => {
9298
- D(_, "style", `animation-delay: ${(h(v) === 1 ? "-1s" : "0s") ?? ""}; animation-duration: ${2 / +l + s};`), ct(_, "pause-animation", o());
9301
+ B(_, "style", `animation-delay: ${(h(v) === 1 ? "-1s" : "0s") ?? ""}; animation-duration: ${2 / +l + s};`), ct(_, "pause-animation", o());
9299
9302
  }), C(f, _);
9300
- }), g(c), z(() => D(c, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --rgba: ${h(u) ?? ""}; --duration: ${i() ?? ""}`)), C(t, c), W({
9303
+ }), g(c), z(() => B(c, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --rgba: ${h(u) ?? ""}; --duration: ${i() ?? ""}`)), C(t, c), W({
9301
9304
  get color() {
9302
9305
  return r();
9303
9306
  },
@@ -9362,7 +9365,7 @@ function Gh(t, e) {
9362
9365
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "0.4s"), a = m(e, "size", 12, "15"), o = m(e, "pause", 12, !1);
9363
9366
  var s = Uh();
9364
9367
  return z(() => {
9365
- D(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(s, "pause-animation", o());
9368
+ B(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(s, "pause-animation", o());
9366
9369
  }), C(t, s), W({
9367
9370
  get color() {
9368
9371
  return r();
@@ -9428,7 +9431,7 @@ function Xh(t, e) {
9428
9431
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "0.4s"), a = m(e, "size", 12, "15"), o = m(e, "pause", 12, !1);
9429
9432
  var s = Vh();
9430
9433
  return z(() => {
9431
- D(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(s, "pause-animation", o());
9434
+ B(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(s, "pause-animation", o());
9432
9435
  }), C(t, s), W({
9433
9436
  get color() {
9434
9437
  return r();
@@ -9486,7 +9489,7 @@ function bs(t, e) {
9486
9489
  Z(e, !0), et(t, lv);
9487
9490
  let r = m(e, "segnapostos", 15), n = m(e, "showModal", 15), i = m(e, "createProcedureFromTemplate", 7), a = Y(M({})), o = Y(!1), s = Y(M([]));
9488
9491
  async function l(k) {
9489
- if (A(o, !0), h(a)[k])
9492
+ if (S(o, !0), h(a)[k])
9490
9493
  return h(a)[k];
9491
9494
  const x = await fetch(`${di(se.getCookies().EnvId)}/v1/${k}/combo`, {
9492
9495
  method: "GET",
@@ -9496,47 +9499,45 @@ function bs(t, e) {
9496
9499
  }
9497
9500
  });
9498
9501
  if (!x.ok) return [];
9499
- const E = (await x.json()).result;
9500
- return h(a)[k] = E, A(o, !1), E;
9502
+ const A = (await x.json()).result;
9503
+ return h(a)[k] = A, S(o, !1), A;
9501
9504
  }
9502
9505
  const u = async () => {
9503
9506
  let k = !0;
9504
- if (A(s, M(r().map((x) => {
9505
- const E = x.idSuite == "anagrafica" || !!x.valore;
9506
- return E || (k = !1), !E;
9507
+ if (S(s, M(r().map((x) => {
9508
+ const A = x.idSuite == "anagrafica" || !!x.valore;
9509
+ return A || (k = !1), !A;
9507
9510
  }))), k) {
9508
- let x = r().map(async (H) => {
9509
- if (H.idSuite)
9510
- if (console.log("Fetching segnaposto value", H), H.idSuite === "anagrafica") {
9511
- let B = await fetch(`${di(se.getCookies().EnvId)}/v1/anagrafica`, {
9511
+ let x = r().map(async (D) => {
9512
+ if (D.idSuite)
9513
+ if (console.log("Fetching segnaposto value", D), D.idSuite === "anagrafica") {
9514
+ let H = await fetch(`${di(se.getCookies().EnvId)}/v1/anagrafica`, {
9512
9515
  method: "GET",
9513
9516
  headers: {
9514
9517
  "Content-Type": "application/json",
9515
9518
  "x-token": se.getCookies().token
9516
9519
  }
9517
9520
  });
9518
- if (!B.ok)
9519
- return console.error("Error fetching segnaposto value", H), H;
9520
- const U = await B.json();
9521
- H.valore = U.result[0];
9521
+ if (!H.ok)
9522
+ return console.error("Error fetching segnaposto value", D), D;
9523
+ const U = await H.json();
9524
+ D.valore = JSON.stringify(U.result[0]);
9522
9525
  } else {
9523
- let B = await fetch(`${di(se.getCookies().EnvId)}/v1/${H.idSuite}/${H.valore}`, {
9526
+ let H = await fetch(`${di(se.getCookies().EnvId)}/v1/${D.idSuite}/${D.valore}`, {
9524
9527
  method: "GET",
9525
9528
  headers: {
9526
9529
  "Content-Type": "application/json",
9527
9530
  "x-token": se.getCookies().token
9528
9531
  }
9529
9532
  });
9530
- if (!B.ok)
9531
- return console.error("Error fetching segnaposto value", H), H;
9532
- const U = await B.json();
9533
- H.valore = U.result[0];
9533
+ if (!H.ok)
9534
+ return console.error("Error fetching segnaposto value", D), D;
9535
+ const U = await H.json();
9536
+ D.valore = JSON.stringify(U.result[0]);
9534
9537
  }
9535
- return console.log("Setting segnaposto value", H), H;
9536
- });
9537
- console.log("Fetching segnaposto values", x);
9538
- let E = await Promise.all(x);
9539
- console.log("Fetched segnaposto values", E), i()(E), console.log("Creating procedure from template", E), n(!1);
9538
+ return D;
9539
+ }), A = await Promise.all(x);
9540
+ i()(A), n(!1);
9540
9541
  }
9541
9542
  };
9542
9543
  Ze(async () => {
@@ -9545,41 +9546,41 @@ function bs(t, e) {
9545
9546
  });
9546
9547
  var c = sv(), d = Lt(c), f = w(d), v = w(f), _ = w(v), y = P(w(_), 2);
9547
9548
  y.__click = [Jh, n], g(_);
9548
- var S = P(_, 2);
9549
- Ct(S, 21, r, Tt, (k, x, E) => {
9550
- var H = iv(), B = w(H);
9549
+ var E = P(_, 2);
9550
+ Ct(E, 21, r, Tt, (k, x, A) => {
9551
+ var D = iv(), H = w(D);
9551
9552
  {
9552
9553
  var U = (X) => {
9553
9554
  var V = Zh();
9554
- D(V, "for", "input-" + E);
9555
+ B(V, "for", "input-" + A);
9555
9556
  var _t = w(V, !0);
9556
9557
  g(V), z(() => at(_t, h(x).nome)), C(X, V);
9557
9558
  };
9558
- ut(B, (X) => {
9559
+ ut(H, (X) => {
9559
9560
  h(x).idSuite && h(x).idSuite !== "anagrafica" && X(U);
9560
9561
  });
9561
9562
  }
9562
- var R = P(B, 2);
9563
+ var F = P(H, 2);
9563
9564
  {
9564
9565
  var tt = (X) => {
9565
9566
  var V = Wh(), _t = w(V, !0);
9566
9567
  g(V), z(() => at(_t, h(x).domanda)), C(X, V);
9567
9568
  };
9568
- ut(R, (X) => {
9569
+ ut(F, (X) => {
9569
9570
  h(x).domanda && X(tt);
9570
9571
  });
9571
9572
  }
9572
- var it = P(R, 2);
9573
+ var it = P(F, 2);
9573
9574
  {
9574
9575
  var dt = (X) => {
9575
9576
  var V = Qh();
9576
- le(V), D(V, "id", "input-" + E), V.__input = () => h(s)[E] = !r()[E].valore, z(() => Be(V, `form-control form-control-sm ${(h(s)[E] ? "is-invalid" : "") ?? ""} svelte-1qgzhip`)), ye(V, () => r()[E].valore, (_t) => r(r()[E].valore = _t, !0)), C(X, V);
9577
+ le(V), B(V, "id", "input-" + A), V.__input = () => h(s)[A] = !r()[A].valore, z(() => Be(V, `form-control form-control-sm ${(h(s)[A] ? "is-invalid" : "") ?? ""} svelte-1qgzhip`)), ye(V, () => r()[A].valore, (_t) => r(r()[A].valore = _t, !0)), C(X, V);
9577
9578
  }, xt = (X) => {
9578
9579
  var V = je(), _t = Lt(V);
9579
9580
  {
9580
9581
  var Ot = (At) => {
9581
9582
  var yt = ev();
9582
- yt.__change = () => h(s)[E] = !r()[E].valore;
9583
+ yt.__change = () => h(s)[A] = !r()[A].valore;
9583
9584
  var zt = w(yt);
9584
9585
  {
9585
9586
  var $ = (j) => {
@@ -9598,7 +9599,7 @@ function bs(t, e) {
9598
9599
  h(a)[h(x).idSuite].length > 0 ? j($) : j(K, !1);
9599
9600
  });
9600
9601
  }
9601
- g(yt), z(() => Be(yt, `form-select form-select-sm ${(h(s)[E] ? "is-invalid" : "") ?? ""} svelte-1qgzhip`)), Xi(yt, () => r()[E].valore, (j) => r(r()[E].valore = j, !0)), C(At, yt);
9602
+ g(yt), z(() => Be(yt, `form-select form-select-sm ${(h(s)[A] ? "is-invalid" : "") ?? ""} svelte-1qgzhip`)), Xi(yt, () => r()[A].valore, (j) => r(r()[A].valore = j, !0)), C(At, yt);
9602
9603
  }, St = (At) => {
9603
9604
  var yt = je(), zt = Lt(yt);
9604
9605
  {
@@ -9633,9 +9634,9 @@ function bs(t, e) {
9633
9634
  h(x).idSuite ? X(xt, !1) : X(dt);
9634
9635
  });
9635
9636
  }
9636
- g(H), C(k, H);
9637
- }), g(S);
9638
- var L = P(S, 2), I = w(L);
9637
+ g(D), C(k, D);
9638
+ }), g(E);
9639
+ var L = P(E, 2), I = w(L);
9639
9640
  I.__click = [av, n];
9640
9641
  var T = P(I, 2);
9641
9642
  T.__click = u, g(L), g(v), g(f), g(d);
@@ -9649,7 +9650,7 @@ function bs(t, e) {
9649
9650
  n() && k(b);
9650
9651
  });
9651
9652
  }
9652
- return z(() => D(d, "style", `display: ${(n() ? "block" : "none") ?? ""};`)), C(t, c), W({
9653
+ return z(() => B(d, "style", `display: ${(n() ? "block" : "none") ?? ""};`)), C(t, c), W({
9653
9654
  get segnapostos() {
9654
9655
  return r();
9655
9656
  },
@@ -9686,7 +9687,7 @@ const uv = (t, e, r, n, i, a) => {
9686
9687
  Se.getVersions(e()._id).then((o) => {
9687
9688
  if (o) {
9688
9689
  const s = o[0];
9689
- s.segnaposto && s.segnaposto.length > 0 ? (A(r, M(s.segnaposto)), A(n, !0)) : i();
9690
+ s.segnaposto && s.segnaposto.length > 0 ? (S(r, M(s.segnaposto)), S(n, !0)) : i();
9690
9691
  } else
9691
9692
  alert(a()("alerts.error.procedure-creation-error"));
9692
9693
  });
@@ -9701,23 +9702,23 @@ function _s(t, e) {
9701
9702
  const r = ne(), n = () => re(pe, "$_", r);
9702
9703
  let i = m(e, "documents", 15), a = m(e, "doc", 15), o = m(e, "showMenu", 15), s = m(e, "menuTop", 7), l = m(e, "menuOffset", 7), u = Y(!1), c = Y(M([]));
9703
9704
  const d = (x) => {
9704
- Se.createProcedureFromTemplate(a(), x).then((E) => {
9705
- E ? (i().push(E.document), i(f(i())), alert(n()("alerts.success.procedure-created"))) : alert(n()("alerts.error.procedure-creation-error")), o(!1);
9705
+ Se.createProcedureFromTemplate(a(), x).then((A) => {
9706
+ A ? (i().push(A.document), i(f(i())), alert(n()("alerts.success.procedure-created"))) : alert(n()("alerts.error.procedure-creation-error")), o(!1);
9706
9707
  });
9707
- }, f = (x) => x.sort((E, H) => E.name.localeCompare(H.name)), v = () => {
9708
+ }, f = (x) => x.sort((A, D) => A.name.localeCompare(D.name)), v = () => {
9708
9709
  confirm(n()("alerts.confirm.procedure-deletion")) && Se.deleteDocument(a()._id).then((x) => {
9709
- x ? (i(i().filter((E) => E._id !== a()._id)), alert(n()("alerts.success.procedure-deleted"))) : alert(n()("alerts.error.procedure-deletion-error")), o(!1);
9710
+ x ? (i(i().filter((A) => A._id !== a()._id)), alert(n()("alerts.success.procedure-deleted"))) : alert(n()("alerts.error.procedure-deletion-error")), o(!1);
9710
9711
  });
9711
9712
  };
9712
9713
  var _ = vv(), y = Lt(_);
9713
9714
  y.__click = [cv, o];
9714
- var S = w(y);
9715
- S.__click = [dv];
9716
- var L = w(S);
9715
+ var E = w(y);
9716
+ E.__click = [dv];
9717
+ var L = w(E);
9717
9718
  {
9718
9719
  var I = (x) => {
9719
- var E = fv();
9720
- E.__click = [
9720
+ var A = fv();
9721
+ A.__click = [
9721
9722
  uv,
9722
9723
  a,
9723
9724
  c,
@@ -9725,8 +9726,8 @@ function _s(t, e) {
9725
9726
  d,
9726
9727
  n
9727
9728
  ];
9728
- var H = w(E, !0);
9729
- z(() => at(H, n()("sheet-menu.create-procedure-from-template"))), g(E), C(x, E);
9729
+ var D = w(A, !0);
9730
+ z(() => at(D, n()("sheet-menu.create-procedure-from-template"))), g(A), C(x, A);
9730
9731
  };
9731
9732
  ut(L, (x) => {
9732
9733
  a().path.includes("templates") && x(I);
@@ -9735,7 +9736,7 @@ function _s(t, e) {
9735
9736
  var T = P(L, 2);
9736
9737
  T.__click = [hv, v];
9737
9738
  var N = w(T, !0);
9738
- z(() => at(N, n()("sheet-menu.delete"))), g(T), g(S), g(y);
9739
+ z(() => at(N, n()("sheet-menu.delete"))), g(T), g(E), g(y);
9739
9740
  var b = P(y, 2);
9740
9741
  {
9741
9742
  var k = (x) => {
@@ -9744,14 +9745,14 @@ function _s(t, e) {
9744
9745
  get showModal() {
9745
9746
  return h(u);
9746
9747
  },
9747
- set showModal(E) {
9748
- A(u, M(E));
9748
+ set showModal(A) {
9749
+ S(u, M(A));
9749
9750
  },
9750
9751
  get segnapostos() {
9751
9752
  return h(c);
9752
9753
  },
9753
- set segnapostos(E) {
9754
- A(c, M(E));
9754
+ set segnapostos(A) {
9755
+ S(c, M(A));
9755
9756
  }
9756
9757
  });
9757
9758
  };
@@ -9759,7 +9760,7 @@ function _s(t, e) {
9759
9760
  h(u) && x(k);
9760
9761
  });
9761
9762
  }
9762
- return z(() => D(S, "style", `--menu-top: ${s() - window.scrollY}px; --menu-offset: ${l() ?? ""}px;`)), C(t, _), W({
9763
+ return z(() => B(E, "style", `--menu-top: ${s() - window.scrollY}px; --menu-offset: ${l() ?? ""}px;`)), C(t, _), W({
9763
9764
  get documents() {
9764
9765
  return i();
9765
9766
  },
@@ -9853,13 +9854,13 @@ function rr(t) {
9853
9854
  const _v = (t, e, r, n, i) => {
9854
9855
  Se.getVersions(e()._id).then((a) => {
9855
9856
  if (a) {
9856
- if (A(r, M(a)), e().path.includes("template")) {
9857
+ if (S(r, M(a)), e().path.includes("template")) {
9857
9858
  n(h(r)[0]._id);
9858
9859
  return;
9859
9860
  }
9860
9861
  if (a.length === 0)
9861
9862
  throw new Error("No versions found");
9862
- A(i, !0);
9863
+ S(i, !0);
9863
9864
  } else
9864
9865
  throw new Error("No versions found");
9865
9866
  });
@@ -9867,7 +9868,7 @@ const _v = (t, e, r, n, i) => {
9867
9868
  const i = t.target;
9868
9869
  if (i) {
9869
9870
  const a = i.getBoundingClientRect();
9870
- A(e, a.top + window.scrollY), A(r, M(a.height)), A(n, !0);
9871
+ S(e, a.top + window.scrollY), S(r, M(a.height)), S(n, !0);
9871
9872
  }
9872
9873
  };
9873
9874
  var wv = (t, e, r) => e()(r()), xv = /* @__PURE__ */ O('<button class="btn btn-sm btn-secondary aks-btn-rounded" aria-label="Edit"><i class="fa-solid fa-pen-to-square"></i></button>'), kv = /* @__PURE__ */ O('<button class="btn btn-sm btn-secondary aks-btn-rounded" data-position="left" aria-label="Open"><i class="fa-solid fa-eye"></i></button>'), Ev = /* @__PURE__ */ O('<button class="btn btn-sm btn-secondary aks-btn-rounded" aria-label="Menu"><i class="fa-solid fa-ellipsis"></i></button>'), Sv = /* @__PURE__ */ O('<!> <tr class="front-line"><td style="width: 5%" class="align-middle"><div class="d-flex justify-content-center"><!></div></td><td style="width: 55%" class="align-middle"><div class="front-line-title"><span> </span></div></td><td style="width: 20%" class="text-center align-middle"><div class="front-line__description text-center"><span> </span></div></td><td style="width: 0%" class="text-end align-middle"><div class="d-flex justify-content-end gap-1 pe-2"><!> <!> <!> <!></div></td></tr>', 1);
@@ -9886,7 +9887,7 @@ function ys(t, e) {
9886
9887
  alert(n()("alerts.error.version-not-confirmed"));
9887
9888
  return;
9888
9889
  }
9889
- j ? h(d).push(j) : (alert(n()("alerts.error.version-creation-error")), A(u, !1));
9890
+ j ? h(d).push(j) : (alert(n()("alerts.error.version-creation-error")), S(u, !1));
9890
9891
  });
9891
9892
  }, y = (j) => {
9892
9893
  if (!j)
@@ -9894,7 +9895,7 @@ function ys(t, e) {
9894
9895
  const q = new Date(j);
9895
9896
  return `${q.getDate()}/${q.getMonth() + 1}/${q.getFullYear()}`;
9896
9897
  };
9897
- let S = Y(0), L = Y(0);
9898
+ let E = Y(0), L = Y(0);
9898
9899
  var I = Sv(), T = Lt(I);
9899
9900
  {
9900
9901
  var N = (j) => {
@@ -9905,13 +9906,13 @@ function ys(t, e) {
9905
9906
  return h(u);
9906
9907
  },
9907
9908
  set showVersionsDialog(q) {
9908
- A(u, M(q));
9909
+ S(u, M(q));
9909
9910
  },
9910
9911
  get versions() {
9911
9912
  return h(d);
9912
9913
  },
9913
9914
  set versions(q) {
9914
- A(d, M(q));
9915
+ S(d, M(q));
9915
9916
  }
9916
9917
  });
9917
9918
  };
@@ -9920,18 +9921,18 @@ function ys(t, e) {
9920
9921
  });
9921
9922
  }
9922
9923
  var b = P(T, 2);
9923
- z(() => D(b, "data-intro", n()("tutorial-step.2")));
9924
- var k = w(b), x = w(k), E = w(x);
9925
- ta(E, {
9924
+ z(() => B(b, "data-intro", n()("tutorial-step.2")));
9925
+ var k = w(b), x = w(k), A = w(x);
9926
+ ta(A, {
9926
9927
  get color() {
9927
9928
  return o();
9928
9929
  },
9929
9930
  width: "20",
9930
9931
  height: "27.5"
9931
9932
  }), g(x), g(k);
9932
- var H = P(k), B = w(H), U = w(B), R = w(U, !0);
9933
- g(U), g(B), g(H);
9934
- var tt = P(H), it = w(tt), dt = w(it), xt = w(dt, !0);
9933
+ var D = P(k), H = w(D), U = w(H), F = w(U, !0);
9934
+ g(U), g(H), g(D);
9935
+ var tt = P(D), it = w(tt), dt = w(it), xt = w(dt, !0);
9935
9936
  z(() => at(xt, y(a().updatedAt))), g(dt), g(it), g(tt);
9936
9937
  var X = P(tt), V = w(X), _t = w(V), Ot = /* @__PURE__ */ ke(() => n()("sheet-line.edit"));
9937
9938
  gn(_t, {
@@ -9940,7 +9941,7 @@ function ys(t, e) {
9940
9941
  },
9941
9942
  children: (j, q) => {
9942
9943
  var rt = xv();
9943
- z(() => D(rt, "data-intro", n()("tutorial-step.7"))), rt.__click = [wv, l, a], z(() => D(rt, "data-step", s() ? 7 : "")), C(j, rt);
9944
+ z(() => B(rt, "data-intro", n()("tutorial-step.7"))), rt.__click = [wv, l, a], z(() => B(rt, "data-step", s() ? 7 : "")), C(j, rt);
9944
9945
  },
9945
9946
  $$slots: { default: !0 }
9946
9947
  });
@@ -9957,7 +9958,7 @@ function ys(t, e) {
9957
9958
  d,
9958
9959
  v,
9959
9960
  u
9960
- ], z(() => D(rt, "data-intro", n()("tutorial-step.8"))), z(() => D(rt, "data-step", s() ? 8 : "")), C(j, rt);
9961
+ ], z(() => B(rt, "data-intro", n()("tutorial-step.8"))), z(() => B(rt, "data-step", s() ? 8 : "")), C(j, rt);
9961
9962
  },
9962
9963
  $$slots: { default: !0 }
9963
9964
  });
@@ -9968,7 +9969,7 @@ function ys(t, e) {
9968
9969
  },
9969
9970
  children: (j, q) => {
9970
9971
  var rt = Ev();
9971
- rt.__click = [yv, S, L, c], z(() => D(rt, "data-intro", n()("tutorial-step.9"))), z(() => D(rt, "data-step", s() ? 9 : "")), C(j, rt);
9972
+ rt.__click = [yv, E, L, c], z(() => B(rt, "data-intro", n()("tutorial-step.9"))), z(() => B(rt, "data-step", s() ? 9 : "")), C(j, rt);
9972
9973
  },
9973
9974
  $$slots: { default: !0 }
9974
9975
  });
@@ -9977,7 +9978,7 @@ function ys(t, e) {
9977
9978
  var K = (j) => {
9978
9979
  _s(j, {
9979
9980
  get menuTop() {
9980
- return h(S);
9981
+ return h(E);
9981
9982
  },
9982
9983
  get menuOffset() {
9983
9984
  return h(L);
@@ -9998,7 +9999,7 @@ function ys(t, e) {
9998
9999
  return h(c);
9999
10000
  },
10000
10001
  set showMenu(q) {
10001
- A(c, M(q));
10002
+ S(c, M(q));
10002
10003
  }
10003
10004
  });
10004
10005
  };
@@ -10007,7 +10008,7 @@ function ys(t, e) {
10007
10008
  });
10008
10009
  }
10009
10010
  return g(V), g(X), g(b), z(() => {
10010
- D(b, "data-step", s() ? 2 : ""), at(R, a().name);
10011
+ B(b, "data-step", s() ? 2 : ""), at(F, a().name);
10011
10012
  }), C(t, I), W({
10012
10013
  get documents() {
10013
10014
  return i();
@@ -10056,9 +10057,9 @@ Q(
10056
10057
  !0
10057
10058
  );
10058
10059
  var Av = (t, e, r, n, i) => {
10059
- h(e) == "name" ? A(r, !h(r)) : A(e, "name"), n(i("name", h(r)));
10060
+ h(e) == "name" ? S(r, !h(r)) : S(e, "name"), n(i("name", h(r)));
10060
10061
  }, Tv = /* @__PURE__ */ O("<i></i>"), Cv = /* @__PURE__ */ O('<i class="akj-sort fas fa-sort me-2"></i>'), Nv = (t, e, r, n, i) => {
10061
- h(e) == "lastUpdate" ? A(r, !h(r)) : A(e, "lastUpdate"), n(i("lastUpdate", h(r)));
10062
+ h(e) == "lastUpdate" ? S(r, !h(r)) : S(e, "lastUpdate"), n(i("lastUpdate", h(r)));
10062
10063
  }, zv = /* @__PURE__ */ O("<i></i>"), Iv = /* @__PURE__ */ O('<i class="akj-sort fas fa-sort me-2"></i>'), Ov = /* @__PURE__ */ O('<thead class="aks-sticky-top"><tr><th style="width: 5%" class="align-middle text-center svelte-1bntett"></th><th style="width: 60%" class="align-middle svelte-1bntett"><!> </th><th style="width: 15%" class="align-middle text-center svelte-1bntett"><!> </th><th style="width: 20%" class="align-middle text-end svelte-1bntett"></th></tr></thead>');
10063
10064
  const Lv = {
10064
10065
  hash: "svelte-1bntett",
@@ -10071,9 +10072,9 @@ function ws(t, e) {
10071
10072
  const l = (b, k) => {
10072
10073
  switch (b) {
10073
10074
  case "name":
10074
- return i().sort((x, E) => k ? x.name.localeCompare(E.name) : E.name.localeCompare(x.name));
10075
+ return i().sort((x, A) => k ? x.name.localeCompare(A.name) : A.name.localeCompare(x.name));
10075
10076
  case "lastUpdate":
10076
- return i().sort((x, E) => x.updatedAt ? E.updatedAt ? k ? x.updatedAt > E.updatedAt ? -1 : 1 : x.updatedAt > E.updatedAt ? 1 : -1 : k ? x.updatedAt > (E.createdAt ?? 0) ? -1 : 1 : x.updatedAt > (E.createdAt ?? 0) ? 1 : -1 : E.updatedAt ? k ? (x.createdAt ?? 0) > E.updatedAt ? -1 : 1 : (x.createdAt ?? 0) > E.updatedAt ? 1 : -1 : k ? (x.createdAt ?? 0) > (E.createdAt ?? 0) ? -1 : 1 : (x.createdAt ?? 0) > (E.createdAt ?? 0) ? 1 : -1);
10077
+ return i().sort((x, A) => x.updatedAt ? A.updatedAt ? k ? x.updatedAt > A.updatedAt ? -1 : 1 : x.updatedAt > A.updatedAt ? 1 : -1 : k ? x.updatedAt > (A.createdAt ?? 0) ? -1 : 1 : x.updatedAt > (A.createdAt ?? 0) ? 1 : -1 : A.updatedAt ? k ? (x.createdAt ?? 0) > A.updatedAt ? -1 : 1 : (x.createdAt ?? 0) > A.updatedAt ? 1 : -1 : k ? (x.createdAt ?? 0) > (A.createdAt ?? 0) ? -1 : 1 : (x.createdAt ?? 0) > (A.createdAt ?? 0) ? 1 : -1);
10077
10078
  default:
10078
10079
  return i();
10079
10080
  }
@@ -10101,15 +10102,15 @@ function ws(t, e) {
10101
10102
  }
10102
10103
  var y = P(f);
10103
10104
  z(() => at(y, ` ${n()("file-name") ?? ""}`)), g(d);
10104
- var S = P(d);
10105
- S.__click = [
10105
+ var E = P(d);
10106
+ E.__click = [
10106
10107
  Nv,
10107
10108
  a,
10108
10109
  s,
10109
10110
  i,
10110
10111
  l
10111
10112
  ];
10112
- var L = w(S);
10113
+ var L = w(E);
10113
10114
  {
10114
10115
  var I = (b) => {
10115
10116
  var k = zv();
@@ -10123,7 +10124,7 @@ function ws(t, e) {
10123
10124
  });
10124
10125
  }
10125
10126
  var N = P(L);
10126
- return z(() => at(N, ` ${n()("viewer.last-update") ?? ""}`)), g(S), $i(), g(c), g(u), C(t, u), W({
10127
+ return z(() => at(N, ` ${n()("viewer.last-update") ?? ""}`)), g(E), $i(), g(c), g(u), C(t, u), W({
10127
10128
  get documents() {
10128
10129
  return i();
10129
10130
  },
@@ -10359,8 +10360,8 @@ function jv(t, e, r, n) {
10359
10360
  if (l.bottom + o > a.height && oe(i, "bottom"), l.top - o < 0 && oe(i, "top"), l.right + s > a.width && oe(i, "right"), l.left - s < 0 && oe(i, "left"), n && (n = n.split("-")[0]), i.length && (u = i[0], i.includes(n) && (u = n)), u === "top" || u === "bottom") {
10360
10361
  var c = void 0, d = [];
10361
10362
  u === "top" ? (c = "top-middle-aligned", d = ["top-left-aligned", "top-middle-aligned", "top-right-aligned"]) : (c = "bottom-middle-aligned", d = ["bottom-left-aligned", "bottom-middle-aligned", "bottom-right-aligned"]), u = function(f, v, _, y) {
10362
- var S = v / 2, L = Math.min(_, window.screen.width);
10363
- return L - f < v && (oe(y, "top-left-aligned"), oe(y, "bottom-left-aligned")), (f < S || L - f < S) && (oe(y, "top-middle-aligned"), oe(y, "bottom-middle-aligned")), f < v && (oe(y, "top-right-aligned"), oe(y, "bottom-right-aligned")), y.length ? y[0] : null;
10363
+ var E = v / 2, L = Math.min(_, window.screen.width);
10364
+ return L - f < v && (oe(y, "top-left-aligned"), oe(y, "bottom-left-aligned")), (f < E || L - f < E) && (oe(y, "top-middle-aligned"), oe(y, "bottom-middle-aligned")), f < v && (oe(y, "top-right-aligned"), oe(y, "bottom-right-aligned")), y.length ? y[0] : null;
10364
10365
  }(l.left, s, a.width, d) || c;
10365
10366
  }
10366
10367
  return u;
@@ -10452,7 +10453,7 @@ function As(t, e, r) {
10452
10453
  }
10453
10454
  function Ts(t, e) {
10454
10455
  return mt(this, void 0, void 0, function() {
10455
- var r, n, i, a, o, s, l, u, c, d, f, v, _, y, S, L, I, T, N, b, k, x, E, H, B = this;
10456
+ var r, n, i, a, o, s, l, u, c, d, f, v, _, y, E, L, I, T, N, b, k, x, A, D, H = this;
10456
10457
  return gt(this, function(U) {
10457
10458
  switch (U.label) {
10458
10459
  case 0:
@@ -10461,81 +10462,81 @@ function Ts(t, e) {
10461
10462
  U.sent(), U.label = 2;
10462
10463
  case 2:
10463
10464
  return r = document.querySelector(".introjs-helperLayer"), n = document.querySelector(".introjs-tooltipReferenceLayer"), i = "introjs-helperLayer", typeof e.highlightClass == "string" && (i += " ".concat(e.highlightClass)), typeof t._options.highlightClass == "string" && (i += " ".concat(t._options.highlightClass)), r !== null && n !== null ? (l = n.querySelector(".introjs-helperNumberLayer"), u = n.querySelector(".introjs-tooltiptext"), c = n.querySelector(".introjs-tooltip-title"), d = n.querySelector(".introjs-arrow"), f = n.querySelector(".introjs-tooltip"), s = n.querySelector(".introjs-skipbutton"), o = n.querySelector(".introjs-prevbutton"), a = n.querySelector(".introjs-nextbutton"), r.className = i, f.style.opacity = "0", f.style.display = "none", qa(t._options.scrollToElement, e.element), be(t, e, r), be(t, e, n), ks(), t._lastShowElementTimer && window.clearTimeout(t._lastShowElementTimer), t._lastShowElementTimer = window.setTimeout(function() {
10464
- l !== null && (l.innerHTML = "".concat(e.step, " ").concat(t._options.stepNumbersOfLabel, " ").concat(t._introItems.length)), u.innerHTML = e.intro || "", c.innerHTML = e.title || "", f.style.display = "block", Hn(t, e, f, d), function(R, tt, it) {
10465
- if (R) {
10465
+ l !== null && (l.innerHTML = "".concat(e.step, " ").concat(t._options.stepNumbersOfLabel, " ").concat(t._introItems.length)), u.innerHTML = e.intro || "", c.innerHTML = e.title || "", f.style.display = "block", Hn(t, e, f, d), function(F, tt, it) {
10466
+ if (F) {
10466
10467
  var dt = tt.querySelector(".introjs-bullets li > a.active"), xt = tt.querySelector('.introjs-bullets li > a[data-step-number="'.concat(it.step, '"]'));
10467
10468
  dt && xt && (dt.className = "", xt.className = "active");
10468
10469
  }
10469
10470
  }(t._options.showBullets, n, e), As(n, t._currentStep, t._introItems.length), f.style.opacity = "1", (a != null && /introjs-donebutton/gi.test(a.className) || a != null) && a.focus(), Ga(t._options.scrollToElement, e.scrollTo, t._options.scrollPadding, e.element, u);
10470
- }, 350)) : (v = lt("div", { className: i }), _ = lt("div", { className: "introjs-tooltipReferenceLayer" }), y = lt("div", { className: "introjs-arrow" }), S = lt("div", { className: "introjs-tooltip" }), L = lt("div", { className: "introjs-tooltiptext" }), I = lt("div", { className: "introjs-tooltip-header" }), T = lt("h1", { className: "introjs-tooltip-title" }), N = lt("div"), Me(v, { "box-shadow": "0 0 1px 2px rgba(33, 33, 33, 0.8), rgba(33, 33, 33, ".concat(t._options.overlayOpacity.toString(), ") 0 0 0 5000px") }), qa(t._options.scrollToElement, e.element), be(t, e, v), be(t, e, _), Va(t._targetElement, v, !0), Va(t._targetElement, _), L.innerHTML = e.intro, T.innerHTML = e.title, N.className = "introjs-tooltipbuttons", t._options.showButtons === !1 && (N.style.display = "none"), I.appendChild(T), S.appendChild(I), S.appendChild(L), t._options.dontShowAgain && (b = lt("div", { className: "introjs-dontShowAgain" }), (k = lt("input", { type: "checkbox", id: "introjs-dontShowAgain", name: "introjs-dontShowAgain" })).onchange = function(R) {
10471
- t.setDontShowAgain(R.target.checked);
10472
- }, (x = lt("label", { htmlFor: "introjs-dontShowAgain" })).innerText = t._options.dontShowAgainLabel, b.appendChild(k), b.appendChild(x), S.appendChild(b)), S.appendChild(Ss(t, e)), S.appendChild(function(R) {
10471
+ }, 350)) : (v = lt("div", { className: i }), _ = lt("div", { className: "introjs-tooltipReferenceLayer" }), y = lt("div", { className: "introjs-arrow" }), E = lt("div", { className: "introjs-tooltip" }), L = lt("div", { className: "introjs-tooltiptext" }), I = lt("div", { className: "introjs-tooltip-header" }), T = lt("h1", { className: "introjs-tooltip-title" }), N = lt("div"), Me(v, { "box-shadow": "0 0 1px 2px rgba(33, 33, 33, 0.8), rgba(33, 33, 33, ".concat(t._options.overlayOpacity.toString(), ") 0 0 0 5000px") }), qa(t._options.scrollToElement, e.element), be(t, e, v), be(t, e, _), Va(t._targetElement, v, !0), Va(t._targetElement, _), L.innerHTML = e.intro, T.innerHTML = e.title, N.className = "introjs-tooltipbuttons", t._options.showButtons === !1 && (N.style.display = "none"), I.appendChild(T), E.appendChild(I), E.appendChild(L), t._options.dontShowAgain && (b = lt("div", { className: "introjs-dontShowAgain" }), (k = lt("input", { type: "checkbox", id: "introjs-dontShowAgain", name: "introjs-dontShowAgain" })).onchange = function(F) {
10472
+ t.setDontShowAgain(F.target.checked);
10473
+ }, (x = lt("label", { htmlFor: "introjs-dontShowAgain" })).innerText = t._options.dontShowAgainLabel, b.appendChild(k), b.appendChild(x), E.appendChild(b)), E.appendChild(Ss(t, e)), E.appendChild(function(F) {
10473
10474
  var tt = lt("div");
10474
- tt.className = "introjs-progress", R._options.showProgress === !1 && (tt.style.display = "none");
10475
+ tt.className = "introjs-progress", F._options.showProgress === !1 && (tt.style.display = "none");
10475
10476
  var it = lt("div", { className: "introjs-progressbar" });
10476
- R._options.progressBarAdditionalClass && (it.className += " " + R._options.progressBarAdditionalClass);
10477
- var dt = Es(R._currentStep, R._introItems.length);
10477
+ F._options.progressBarAdditionalClass && (it.className += " " + F._options.progressBarAdditionalClass);
10478
+ var dt = Es(F._currentStep, F._introItems.length);
10478
10479
  return it.setAttribute("role", "progress"), it.setAttribute("aria-valuemin", "0"), it.setAttribute("aria-valuemax", "100"), it.setAttribute("aria-valuenow", dt.toString()), it.style.cssText = "width:".concat(dt, "%;"), tt.appendChild(it), tt;
10479
- }(t)), E = lt("div"), t._options.showStepNumbers === !0 && (E.className = "introjs-helperNumberLayer", E.innerHTML = "".concat(e.step, " ").concat(t._options.stepNumbersOfLabel, " ").concat(t._introItems.length), S.appendChild(E)), S.appendChild(y), _.appendChild(S), (a = lt("a")).onclick = function() {
10480
- return mt(B, void 0, void 0, function() {
10481
- return gt(this, function(R) {
10482
- switch (R.label) {
10480
+ }(t)), A = lt("div"), t._options.showStepNumbers === !0 && (A.className = "introjs-helperNumberLayer", A.innerHTML = "".concat(e.step, " ").concat(t._options.stepNumbersOfLabel, " ").concat(t._introItems.length), E.appendChild(A)), E.appendChild(y), _.appendChild(E), (a = lt("a")).onclick = function() {
10481
+ return mt(H, void 0, void 0, function() {
10482
+ return gt(this, function(F) {
10483
+ switch (F.label) {
10483
10484
  case 0:
10484
10485
  return t._introItems.length - 1 === t._currentStep ? [3, 2] : [4, Ye(t)];
10485
10486
  case 1:
10486
- return R.sent(), [3, 6];
10487
+ return F.sent(), [3, 6];
10487
10488
  case 2:
10488
10489
  return /introjs-donebutton/gi.test(a.className) ? kt(t._introCompleteCallback) ? [4, t._introCompleteCallback.call(t, t._currentStep, "done")] : [3, 4] : [3, 6];
10489
10490
  case 3:
10490
- R.sent(), R.label = 4;
10491
+ F.sent(), F.label = 4;
10491
10492
  case 4:
10492
10493
  return [4, Xe(t, t._targetElement)];
10493
10494
  case 5:
10494
- R.sent(), R.label = 6;
10495
+ F.sent(), F.label = 6;
10495
10496
  case 6:
10496
10497
  return [2];
10497
10498
  }
10498
10499
  });
10499
10500
  });
10500
10501
  }, jr(a), a.innerHTML = t._options.nextLabel, (o = lt("a")).onclick = function() {
10501
- return mt(B, void 0, void 0, function() {
10502
- return gt(this, function(R) {
10503
- switch (R.label) {
10502
+ return mt(H, void 0, void 0, function() {
10503
+ return gt(this, function(F) {
10504
+ switch (F.label) {
10504
10505
  case 0:
10505
10506
  return t._currentStep > 0 ? [4, Bn(t)] : [3, 2];
10506
10507
  case 1:
10507
- R.sent(), R.label = 2;
10508
+ F.sent(), F.label = 2;
10508
10509
  case 2:
10509
10510
  return [2];
10510
10511
  }
10511
10512
  });
10512
10513
  });
10513
10514
  }, jr(o), o.innerHTML = t._options.prevLabel, jr(s = lt("a", { className: "introjs-skipbutton" })), s.innerHTML = t._options.skipLabel, s.onclick = function() {
10514
- return mt(B, void 0, void 0, function() {
10515
- return gt(this, function(R) {
10516
- switch (R.label) {
10515
+ return mt(H, void 0, void 0, function() {
10516
+ return gt(this, function(F) {
10517
+ switch (F.label) {
10517
10518
  case 0:
10518
10519
  return t._introItems.length - 1 === t._currentStep && kt(t._introCompleteCallback) ? [4, t._introCompleteCallback.call(t, t._currentStep, "skip")] : [3, 2];
10519
10520
  case 1:
10520
- R.sent(), R.label = 2;
10521
+ F.sent(), F.label = 2;
10521
10522
  case 2:
10522
10523
  return kt(t._introSkipCallback) ? [4, t._introSkipCallback.call(t, t._currentStep)] : [3, 4];
10523
10524
  case 3:
10524
- R.sent(), R.label = 4;
10525
+ F.sent(), F.label = 4;
10525
10526
  case 4:
10526
10527
  return [4, Xe(t, t._targetElement)];
10527
10528
  case 5:
10528
- return R.sent(), [2];
10529
+ return F.sent(), [2];
10529
10530
  }
10530
10531
  });
10531
10532
  });
10532
- }, I.appendChild(s), t._introItems.length > 1 && N.appendChild(o), N.appendChild(a), S.appendChild(N), Hn(t, e, S, y), Ga(t._options.scrollToElement, e.scrollTo, t._options.scrollPadding, e.element, S)), (H = t._targetElement.querySelector(".introjs-disableInteraction")) && H.parentNode && H.parentNode.removeChild(H), e.disableInteraction && function(R, tt) {
10533
+ }, I.appendChild(s), t._introItems.length > 1 && N.appendChild(o), N.appendChild(a), E.appendChild(N), Hn(t, e, E, y), Ga(t._options.scrollToElement, e.scrollTo, t._options.scrollPadding, e.element, E)), (D = t._targetElement.querySelector(".introjs-disableInteraction")) && D.parentNode && D.parentNode.removeChild(D), e.disableInteraction && function(F, tt) {
10533
10534
  var it = document.querySelector(".introjs-disableInteraction");
10534
- it === null && (it = lt("div", { className: "introjs-disableInteraction" }), R._targetElement.appendChild(it)), be(R, tt, it);
10535
- }(t, e), t._currentStep === 0 && t._introItems.length > 1 ? (a != null && (a.className = "".concat(t._options.buttonClass, " introjs-nextbutton"), a.innerHTML = t._options.nextLabel), t._options.hidePrev === !0 ? (o != null && (o.className = "".concat(t._options.buttonClass, " introjs-prevbutton introjs-hidden")), a != null && ue(a, "introjs-fullbutton")) : o != null && (o.className = "".concat(t._options.buttonClass, " introjs-prevbutton introjs-disabled"))) : t._introItems.length - 1 === t._currentStep || t._introItems.length === 1 ? (o != null && (o.className = "".concat(t._options.buttonClass, " introjs-prevbutton")), t._options.hideNext === !0 ? (a != null && (a.className = "".concat(t._options.buttonClass, " introjs-nextbutton introjs-hidden")), o != null && ue(o, "introjs-fullbutton")) : a != null && (t._options.nextToDone === !0 ? (a.innerHTML = t._options.doneLabel, ue(a, "".concat(t._options.buttonClass, " introjs-nextbutton introjs-donebutton"))) : a.className = "".concat(t._options.buttonClass, " introjs-nextbutton introjs-disabled"))) : (o != null && (o.className = "".concat(t._options.buttonClass, " introjs-prevbutton")), a != null && (a.className = "".concat(t._options.buttonClass, " introjs-nextbutton"), a.innerHTML = t._options.nextLabel)), o != null && o.setAttribute("role", "button"), a != null && a.setAttribute("role", "button"), s != null && s.setAttribute("role", "button"), a != null && a.focus(), function(R) {
10536
- ue(R, "introjs-showElement");
10537
- var tt = na(R, "position");
10538
- tt !== "absolute" && tt !== "relative" && tt !== "sticky" && tt !== "fixed" && ue(R, "introjs-relativePosition");
10535
+ it === null && (it = lt("div", { className: "introjs-disableInteraction" }), F._targetElement.appendChild(it)), be(F, tt, it);
10536
+ }(t, e), t._currentStep === 0 && t._introItems.length > 1 ? (a != null && (a.className = "".concat(t._options.buttonClass, " introjs-nextbutton"), a.innerHTML = t._options.nextLabel), t._options.hidePrev === !0 ? (o != null && (o.className = "".concat(t._options.buttonClass, " introjs-prevbutton introjs-hidden")), a != null && ue(a, "introjs-fullbutton")) : o != null && (o.className = "".concat(t._options.buttonClass, " introjs-prevbutton introjs-disabled"))) : t._introItems.length - 1 === t._currentStep || t._introItems.length === 1 ? (o != null && (o.className = "".concat(t._options.buttonClass, " introjs-prevbutton")), t._options.hideNext === !0 ? (a != null && (a.className = "".concat(t._options.buttonClass, " introjs-nextbutton introjs-hidden")), o != null && ue(o, "introjs-fullbutton")) : a != null && (t._options.nextToDone === !0 ? (a.innerHTML = t._options.doneLabel, ue(a, "".concat(t._options.buttonClass, " introjs-nextbutton introjs-donebutton"))) : a.className = "".concat(t._options.buttonClass, " introjs-nextbutton introjs-disabled"))) : (o != null && (o.className = "".concat(t._options.buttonClass, " introjs-prevbutton")), a != null && (a.className = "".concat(t._options.buttonClass, " introjs-nextbutton"), a.innerHTML = t._options.nextLabel)), o != null && o.setAttribute("role", "button"), a != null && a.setAttribute("role", "button"), s != null && s.setAttribute("role", "button"), a != null && a.focus(), function(F) {
10537
+ ue(F, "introjs-showElement");
10538
+ var tt = na(F, "position");
10539
+ tt !== "absolute" && tt !== "relative" && tt !== "sticky" && tt !== "fixed" && ue(F, "introjs-relativePosition");
10539
10540
  }(e.element), kt(t._introAfterChangeCallback) ? [4, t._introAfterChangeCallback.call(t, e.element)] : [3, 4];
10540
10541
  case 3:
10541
10542
  U.sent(), U.label = 4;
@@ -10872,8 +10873,8 @@ function Ls(t, e) {
10872
10873
  l = d.hasAttribute("data-disable-interaction") ? !!d.getAttribute("data-disable-interaction") : t._options.disableInteraction, n[v] = { element: d, title: d.getAttribute("data-title") || "", intro: d.getAttribute("data-intro") || "", step: v + 1, tooltipClass: d.getAttribute("data-tooltip-class") || void 0, highlightClass: d.getAttribute("data-highlight-class") || void 0, position: d.getAttribute("data-position") || t._options.tooltipPosition, scrollTo: d.getAttribute("data-scroll-to") || t._options.scrollTo, disableInteraction: l };
10873
10874
  }
10874
10875
  }
10875
- for (var S = [], L = 0; L < n.length; L++) n[L] && S.push(n[L]);
10876
- return (n = S).sort(function(I, T) {
10876
+ for (var E = [], L = 0; L < n.length; L++) n[L] && E.push(n[L]);
10877
+ return (n = E).sort(function(I, T) {
10877
10878
  return I.step - T.step;
10878
10879
  }), n;
10879
10880
  }
@@ -11190,24 +11191,24 @@ function Mn(t, e) {
11190
11191
  }), C(I, N);
11191
11192
  }), g(f);
11192
11193
  var v = P(f, 2), _ = w(v);
11193
- le(_), z(() => D(_, "placeholder", n()("add-norm-tag"))), _.__keydown = [qv, s];
11194
+ le(_), z(() => B(_, "placeholder", n()("add-norm-tag"))), _.__keydown = [qv, s];
11194
11195
  var y = P(_, 2);
11195
11196
  y.__click = function(...I) {
11196
11197
  var T;
11197
11198
  (T = s()) == null || T.apply(this, I);
11198
11199
  }, g(v), g(d);
11199
- var S = P(d, 2);
11200
+ var E = P(d, 2);
11200
11201
  {
11201
11202
  var L = (I) => {
11202
11203
  var T = Yv();
11203
11204
  Ct(T, 21, a, Tt, (N, b) => {
11204
- var k = Vv(), x = w(k), E = w(x, !0);
11205
+ var k = Vv(), x = w(k), A = w(x, !0);
11205
11206
  g(x);
11206
- var H = P(x, 2);
11207
- H.__click = [Gv, l, b], g(k), z(() => at(E, h(b))), C(N, k);
11207
+ var D = P(x, 2);
11208
+ D.__click = [Gv, l, b], g(k), z(() => at(A, h(b))), C(N, k);
11208
11209
  }), g(T), C(I, T);
11209
11210
  };
11210
- ut(S, (I) => {
11211
+ ut(E, (I) => {
11211
11212
  a().length > 0 && I(L);
11212
11213
  });
11213
11214
  }
@@ -11266,12 +11267,12 @@ Q(
11266
11267
  !0
11267
11268
  );
11268
11269
  const Zv = (t, e, r, n, i, a, o) => {
11269
- if (A(e, !0), !r().name) {
11270
+ if (S(e, !0), !r().name) {
11270
11271
  alert(n()("alerts.error.name-required"));
11271
11272
  return;
11272
11273
  }
11273
11274
  Se.updateDocument(r()._id, r().name, h(i), r().isPrivate, h(a)).then((s) => {
11274
- s ? r(s) : console.error("Error updating document"), A(e, !1), o(!1);
11275
+ s ? r(s) : console.error("Error updating document"), S(e, !1), o(!1);
11275
11276
  });
11276
11277
  };
11277
11278
  var Wv = (t, e) => e(!1), Qv = (t, e) => t.key === "Enter" && e(), Kv = (t, e, r) => e(h(r)), tp = /* @__PURE__ */ O('<li class="svelte-1uj6rm9"><span class="svelte-1uj6rm9"> </span> <button aria-label="Remove tag" class="svelte-1uj6rm9"><i class="fa-solid fa-xmark"></i></button></li>'), ep = /* @__PURE__ */ O('<ul class="svelte-1uj6rm9"></ul>'), rp = /* @__PURE__ */ O('<div class="spinner svelte-1uj6rm9"><!></div>'), np = /* @__PURE__ */ O('<button class="btn btn-primary"><i class="fa-solid fa-floppy-disk"></i> </button>'), ip = /* @__PURE__ */ O('<div class="modal-backdrop show"></div>'), ap = /* @__PURE__ */ O('<div class="modal show" id="ModalBase" tabindex="-1" aria-modal="true" role="dialog"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><h3> </h3> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button></div> <div class="modal-body d-flex flex-column gap-3"><input class="form-control form-control-sm" type="text" placeholder="Nome norma"> <!> <div class="custom-tags svelte-1uj6rm9"><div class="d-flex gap-1"><input type="text" class="form-control form-control-sm custom-input svelte-1uj6rm9" id="tags"> <button class="btn btn-sm btn-primary aks-btn-rounded" aria-label="Add tag"><i class="fa-solid fa-plus"></i></button></div> <!></div></div> <div class="modal-footer"><!></div></div></div></div> <!>', 1);
@@ -11292,44 +11293,44 @@ function Hs(t, e) {
11292
11293
  else
11293
11294
  for (let rt of q.value)
11294
11295
  K.add(rt);
11295
- A(u, M([...Array.from(K)])), A(l, M([...Array.from(j)]));
11296
+ S(u, M([...Array.from(K)])), S(l, M([...Array.from(j)]));
11296
11297
  };
11297
11298
  let l = Y(M([])), u = Y(M([])), c = Y(""), d = Y(""), f = Y(!1);
11298
11299
  function v() {
11299
- h(c).trim() && !h(u).includes(h(c).trim()) && (A(u, M([
11300
+ h(c).trim() && !h(u).includes(h(c).trim()) && (S(u, M([
11300
11301
  ...h(u),
11301
11302
  h(c).trim()
11302
- ])), A(c, ""));
11303
+ ])), S(c, ""));
11303
11304
  }
11304
11305
  function _() {
11305
- h(d).trim() && !h(l).includes(h(d).trim()) && (A(l, M([
11306
+ h(d).trim() && !h(l).includes(h(d).trim()) && (S(l, M([
11306
11307
  ...h(l),
11307
11308
  h(d).trim()
11308
11309
  ])), o([
11309
11310
  ...o(),
11310
11311
  h(d).trim()
11311
- ]), A(d, ""));
11312
+ ]), S(d, ""));
11312
11313
  }
11313
11314
  function y($) {
11314
- h(l).includes($) || A(l, M([...h(l), $]));
11315
+ h(l).includes($) || S(l, M([...h(l), $]));
11315
11316
  }
11316
- function S($) {
11317
- A(u, M(h(u).filter((K) => K !== $)));
11317
+ function E($) {
11318
+ S(u, M(h(u).filter((K) => K !== $)));
11318
11319
  }
11319
11320
  function L($) {
11320
- A(l, M(h(l).filter((K) => K !== $)));
11321
+ S(l, M(h(l).filter((K) => K !== $)));
11321
11322
  }
11322
11323
  Ze(() => {
11323
11324
  s(a());
11324
11325
  });
11325
- var I = ap(), T = Lt(I), N = w(T), b = w(N), k = w(b), x = w(k), E = w(x, !0);
11326
- z(() => at(E, n()("sheet-line.edit"))), g(x);
11327
- var H = P(x, 2);
11328
- H.__click = [Wv, i], g(k);
11329
- var B = P(k, 2), U = w(B);
11326
+ var I = ap(), T = Lt(I), N = w(T), b = w(N), k = w(b), x = w(k), A = w(x, !0);
11327
+ z(() => at(A, n()("sheet-line.edit"))), g(x);
11328
+ var D = P(x, 2);
11329
+ D.__click = [Wv, i], g(k);
11330
+ var H = P(k, 2), U = w(H);
11330
11331
  le(U);
11331
- var R = P(U, 2);
11332
- Mn(R, {
11332
+ var F = P(U, 2);
11333
+ Mn(F, {
11333
11334
  selectNorm: y,
11334
11335
  addNorm: _,
11335
11336
  removeSelectedNorm: L,
@@ -11343,17 +11344,17 @@ function Hs(t, e) {
11343
11344
  return h(l);
11344
11345
  },
11345
11346
  set selectedNorms($) {
11346
- A(l, M($));
11347
+ S(l, M($));
11347
11348
  },
11348
11349
  get newNorm() {
11349
11350
  return h(d);
11350
11351
  },
11351
11352
  set newNorm($) {
11352
- A(d, M($));
11353
+ S(d, M($));
11353
11354
  }
11354
11355
  });
11355
- var tt = P(R, 2), it = w(tt), dt = w(it);
11356
- le(dt), z(() => D(dt, "placeholder", n()("add-document.add-custom-tag"))), dt.__keydown = [Qv, v];
11356
+ var tt = P(F, 2), it = w(tt), dt = w(it);
11357
+ le(dt), z(() => B(dt, "placeholder", n()("add-document.add-custom-tag"))), dt.__keydown = [Qv, v];
11357
11358
  var xt = P(dt, 2);
11358
11359
  xt.__click = v, g(it);
11359
11360
  var X = P(it, 2);
@@ -11364,15 +11365,15 @@ function Hs(t, e) {
11364
11365
  var rt = tp(), Wt = w(rt), J = w(Wt, !0);
11365
11366
  g(Wt);
11366
11367
  var wt = P(Wt, 2);
11367
- wt.__click = [Kv, S, q], g(rt), z(() => at(J, h(q))), C(j, rt);
11368
+ wt.__click = [Kv, E, q], g(rt), z(() => at(J, h(q))), C(j, rt);
11368
11369
  }), g(K), C($, K);
11369
11370
  };
11370
11371
  ut(X, ($) => {
11371
11372
  h(u).length > 0 && $(V);
11372
11373
  });
11373
11374
  }
11374
- g(tt), g(B);
11375
- var _t = P(B, 2), Ot = w(_t);
11375
+ g(tt), g(H);
11376
+ var _t = P(H, 2), Ot = w(_t);
11376
11377
  {
11377
11378
  var St = ($) => {
11378
11379
  var K = rp(), j = w(K);
@@ -11406,7 +11407,7 @@ function Hs(t, e) {
11406
11407
  i() && $(zt);
11407
11408
  });
11408
11409
  }
11409
- return z(() => D(T, "style", `display: ${(i() ? "block" : "none") ?? ""};`)), ye(U, () => a().name, ($) => a(a().name = $, !0)), ye(dt, () => h(c), ($) => A(c, $)), C(t, I), W({
11410
+ return z(() => B(T, "style", `display: ${(i() ? "block" : "none") ?? ""};`)), ye(U, () => a().name, ($) => a(a().name = $, !0)), ye(dt, () => h(c), ($) => S(c, $)), C(t, I), W({
11410
11411
  get showEditDialog() {
11411
11412
  return i();
11412
11413
  },
@@ -11430,14 +11431,14 @@ function Hs(t, e) {
11430
11431
  Te(["click", "keydown"]);
11431
11432
  Q(Hs, { showEditDialog: {}, doc: {}, normArray: {} }, [], [], !0);
11432
11433
  const sp = (t, e, r, n) => {
11433
- t.key === "Enter" && (A(e, M(r()("no-norms"))), n());
11434
+ t.key === "Enter" && (S(e, M(r()("no-norms"))), n());
11434
11435
  }, lp = (t, e, r, n) => {
11435
- t.target && (A(e, M(t.target.value)), h(e) === r()("no-norms") ? n(!1) : n(!0));
11436
+ t.target && (S(e, M(t.target.value)), h(e) === r()("no-norms") ? n(!1) : n(!0));
11436
11437
  };
11437
11438
  var up = /* @__PURE__ */ O("<option> </option>"), cp = () => Dn().start(), dp = (t, e) => e(!0), fp = (t, e, r) => {
11438
- A(e, "template"), r();
11439
+ S(e, "template"), r();
11439
11440
  }, hp = (t, e, r) => {
11440
- A(e, "instantiated"), r();
11441
+ S(e, "instantiated"), r();
11441
11442
  }, vp = /* @__PURE__ */ O('<div class="viewer svelte-1sevczz"><div class="row align-items-center"><div class="col-md-3"><div class="norms-select" data-step="4"><select class="form-select form-select-sm"></select></div></div> <div class="col-md-6 d-flex justify-content-center"><div class="d-flex w-100 ms-5 me-5" data-step="5"><input type="text" class="form-control form-control-sm"></div></div> <div class="col-md-3 d-flex justify-content-end gap-1 align-items-center"><button class="btn btn-sm aks-btn-answer aks-btn-rounded"><i class="fa-solid fa-question"></i></button> <button class="btn btn-primary" data-step="6" data-position="left"><i class="fa-solid fa-plus"></i> </button></div></div> <section class="classic"><ul class="nav nav-tabs" role="tablist"><li class="nav-item" data-step="1" style="cursor: pointer;"><span> </span></li> <li class="nav-item" data-step="3" style="cursor: pointer;"><span> </span></li></ul> <div class="tab-content"><div class="table-wrapper"><table class="table table-striped table-hover align-middle akj-t-doc" id="standard-table-0"><!><tbody></tbody></table></div></div></section></div> <!>', 1);
11442
11443
  const pp = {
11443
11444
  hash: "svelte-1sevczz",
@@ -11461,19 +11462,19 @@ function Bs(t, e) {
11461
11462
  return Ue === n()("no-norms").toLocaleLowerCase() ? We = nn.length === 0 : Ue && (We = nn.some((Ce) => Ce.toLowerCase() === Ue)), Ut ? Tr || We || Ar.tags.some((Ce) => Ce.value.some((Wn) => Wn.toLowerCase().includes(Ut))) : Tr || We;
11462
11463
  });
11463
11464
  }, f = () => {
11464
- A(_, M([...i()].filter((J) => J.path && J.path.includes(h(l))))), h(c) !== "" && h(c) !== n()("no-norms") && v(!0);
11465
+ S(_, M([...i()].filter((J) => J.path && J.path.includes(h(l))))), h(c) !== "" && h(c) !== n()("no-norms") && v(!0);
11465
11466
  }, v = (J = !1) => {
11466
- A(_, M(d([...i()].filter((wt) => wt.path && wt.path.includes(h(l))), h(u), h(c), J)));
11467
+ S(_, M(d([...i()].filter((wt) => wt.path && wt.path.includes(h(l))), h(u), h(c), J)));
11467
11468
  };
11468
- let _ = /* @__PURE__ */ ke(() => d([...i()].filter((J) => J.path && J.path.includes(h(l))), h(u), h(c))), y = Y(!1), S = Y(null);
11469
+ let _ = /* @__PURE__ */ ke(() => d([...i()].filter((J) => J.path && J.path.includes(h(l))), h(u), h(c))), y = Y(!1), E = Y(null);
11469
11470
  const L = (J) => {
11470
- A(S, M(J)), A(y, !0);
11471
+ S(E, M(J)), S(y, !0);
11471
11472
  };
11472
11473
  lr(() => {
11473
11474
  i(), f();
11474
11475
  }), lr(() => {
11475
11476
  s(h(l) === "template" ? "template" : "procedure");
11476
- }), A(l, "template"), f(), Ze(() => {
11477
+ }), S(l, "template"), f(), Ze(() => {
11477
11478
  (!rr("visited") || rr("visited") === "false") && setTimeout(
11478
11479
  () => {
11479
11480
  Dn().setOptions({
@@ -11485,7 +11486,7 @@ function Bs(t, e) {
11485
11486
  );
11486
11487
  });
11487
11488
  var I = vp(), T = Lt(I), N = w(T), b = w(N), k = w(b);
11488
- z(() => D(k, "data-intro", n()("tutorial-step.4")));
11489
+ z(() => B(k, "data-intro", n()("tutorial-step.4")));
11489
11490
  var x = w(k);
11490
11491
  x.__change = [
11491
11492
  lp,
@@ -11498,27 +11499,27 @@ function Bs(t, e) {
11498
11499
  ae !== (ae = h(wt)) && (It.value = (It.__value = h(wt)) == null ? "" : h(wt)), at(Ut, h(wt));
11499
11500
  }), C(J, It);
11500
11501
  }), g(x), g(k), g(b);
11501
- var E = P(b, 2), H = w(E);
11502
- z(() => D(H, "data-intro", n()("tutorial-step.5")));
11503
- var B = w(H);
11504
- le(B), z(() => D(B, "placeholder", `${n()("search") ?? ""}...`)), B.__keyup = [
11502
+ var A = P(b, 2), D = w(A);
11503
+ z(() => B(D, "data-intro", n()("tutorial-step.5")));
11504
+ var H = w(D);
11505
+ le(H), z(() => B(H, "placeholder", `${n()("search") ?? ""}...`)), H.__keyup = [
11505
11506
  sp,
11506
11507
  c,
11507
11508
  n,
11508
11509
  v
11509
- ], g(H), g(E);
11510
- var U = P(E, 2), R = w(U);
11511
- R.__click = [cp], D(R, "aria-label", "Tutorial");
11512
- var tt = P(R, 2);
11513
- tt.__click = [dp, o], z(() => D(tt, "data-intro", n()("tutorial-step.6")));
11510
+ ], g(D), g(A);
11511
+ var U = P(A, 2), F = w(U);
11512
+ F.__click = [cp], B(F, "aria-label", "Tutorial");
11513
+ var tt = P(F, 2);
11514
+ tt.__click = [dp, o], z(() => B(tt, "data-intro", n()("tutorial-step.6")));
11514
11515
  var it = P(w(tt));
11515
11516
  z(() => at(it, ` ${n()("add") ?? ""}`)), g(tt), g(U), g(N);
11516
11517
  var dt = P(N, 2), xt = w(dt), X = w(xt);
11517
- z(() => D(X, "data-intro", n()("tutorial-step.1"))), X.__click = [fp, l, f];
11518
+ z(() => B(X, "data-intro", n()("tutorial-step.1"))), X.__click = [fp, l, f];
11518
11519
  var V = w(X), _t = w(V, !0);
11519
11520
  z(() => at(_t, n()("viewer.templates"))), g(V), g(X);
11520
11521
  var Ot = P(X, 2);
11521
- z(() => D(Ot, "data-intro", n()("tutorial-step.3"))), Ot.__click = [hp, l, f];
11522
+ z(() => B(Ot, "data-intro", n()("tutorial-step.3"))), Ot.__click = [hp, l, f];
11522
11523
  var St = w(Ot), At = w(St, !0);
11523
11524
  z(() => at(At, n()("viewer.procedures"))), g(St), g(Ot), g(xt);
11524
11525
  var yt = P(xt, 2), zt = w(yt), $ = w(zt), K = w($);
@@ -11561,13 +11562,13 @@ function Bs(t, e) {
11561
11562
  return h(y);
11562
11563
  },
11563
11564
  set showEditDialog(wt) {
11564
- A(y, M(wt));
11565
+ S(y, M(wt));
11565
11566
  },
11566
11567
  get doc() {
11567
- return h(S);
11568
+ return h(E);
11568
11569
  },
11569
11570
  set doc(wt) {
11570
- A(S, M(wt));
11571
+ S(E, M(wt));
11571
11572
  },
11572
11573
  get normArray() {
11573
11574
  return a();
@@ -11583,7 +11584,7 @@ function Bs(t, e) {
11583
11584
  }
11584
11585
  return z(() => {
11585
11586
  Be(V, `${`nav-link ${h(l) == "template" ? "active" : ""}` ?? ""} svelte-1sevczz`), Be(St, `${`nav-link ${h(l) != "template" ? "active" : ""}` ?? ""} svelte-1sevczz`);
11586
- }), Xi(x, () => h(c), (J) => A(c, J)), ye(B, () => h(u), (J) => A(u, J)), C(t, I), W({
11587
+ }), Xi(x, () => h(c), (J) => S(c, J)), ye(H, () => h(u), (J) => S(u, J)), C(t, I), W({
11587
11588
  get documents() {
11588
11589
  return i();
11589
11590
  },
@@ -11631,7 +11632,7 @@ const Cp = {
11631
11632
  function Ds(t, e) {
11632
11633
  Z(e, !0), et(t, Cp);
11633
11634
  const r = ne(), n = () => re(pe, "$_", r);
11634
- let i = m(e, "showCreateDialog", 15), a = m(e, "documents", 15), o = m(e, "actSheet", 15), s = m(e, "norms", 7), l = m(e, "refreshDocuments", 7), u = Y("no-ai"), c = Y(""), d = Y(M([])), f = Y(M([])), v = Y(M([...s()])), _ = Y(""), y = Y(""), S = Y(!0), L = Y(!1), I = Y(""), T = Y(""), N = Y(void 0), b = Y(!1);
11635
+ let i = m(e, "showCreateDialog", 15), a = m(e, "documents", 15), o = m(e, "actSheet", 15), s = m(e, "norms", 7), l = m(e, "refreshDocuments", 7), u = Y("no-ai"), c = Y(""), d = Y(M([])), f = Y(M([])), v = Y(M([...s()])), _ = Y(""), y = Y(""), E = Y(!0), L = Y(!1), I = Y(""), T = Y(""), N = Y(void 0), b = Y(!1);
11635
11636
  function k(G) {
11636
11637
  return new Promise((Nt, jt) => {
11637
11638
  const Xt = new FileReader();
@@ -11639,7 +11640,7 @@ function Ds(t, e) {
11639
11640
  });
11640
11641
  }
11641
11642
  function x() {
11642
- if (A(b, !0), !h(c) || h(f).length === 0) {
11643
+ if (S(b, !0), !h(c) || h(f).length === 0) {
11643
11644
  alert(n()("alerts.error.fill-all-data"));
11644
11645
  return;
11645
11646
  }
@@ -11647,15 +11648,15 @@ function Ds(t, e) {
11647
11648
  title: h(c),
11648
11649
  norms: h(f),
11649
11650
  tags: h(d),
11650
- isTemplate: h(S),
11651
+ isTemplate: h(E),
11651
11652
  secret: h(L)
11652
11653
  }).then((G) => {
11653
- G ? (a().push(G.document), l()(), i(!1)) : alert(n()("alerts.error.procedure-creation-error")), A(b, !1);
11654
+ G ? (a().push(G.document), l()(), i(!1)) : alert(n()("alerts.error.procedure-creation-error")), S(b, !1);
11654
11655
  });
11655
11656
  }
11656
- async function E() {
11657
- if (A(b, !0), h(f).length == 0 || !h(I) || !h(T)) {
11658
- alert("Compila tutti i campi"), A(b, !1);
11657
+ async function A() {
11658
+ if (S(b, !0), h(f).length == 0 || !h(I) || !h(T)) {
11659
+ alert("Compila tutti i campi"), S(b, !1);
11659
11660
  return;
11660
11661
  }
11661
11662
  Se.createProcedureWithAI({
@@ -11666,38 +11667,38 @@ function Ds(t, e) {
11666
11667
  full: h(u) === "full",
11667
11668
  file: h(N) ? await k(h(N)) : void 0
11668
11669
  }).then((G) => {
11669
- G ? (h(S) ? alert("Template creato con successo") : alert("Procedura creata con successo"), a().push(G.document), l()(), i(!1)) : alert("Errore nella creazione della procedura");
11670
+ G ? (h(E) ? alert("Template creato con successo") : alert("Procedura creata con successo"), a().push(G.document), l()(), i(!1)) : alert("Errore nella creazione della procedura");
11670
11671
  }).catch((G) => {
11671
11672
  alert("Errore nella creazione della procedura");
11672
11673
  }).finally(() => {
11673
- A(b, !1);
11674
+ S(b, !1);
11674
11675
  });
11675
11676
  }
11676
- function H() {
11677
- h(_).trim() && !h(d).includes(h(_).trim()) && (A(d, M([
11677
+ function D() {
11678
+ h(_).trim() && !h(d).includes(h(_).trim()) && (S(d, M([
11678
11679
  ...h(d),
11679
11680
  h(_).trim()
11680
- ])), A(_, ""));
11681
+ ])), S(_, ""));
11681
11682
  }
11682
- function B() {
11683
- h(y).trim() && !h(v).includes(h(y).trim()) && (A(f, M([
11683
+ function H() {
11684
+ h(y).trim() && !h(v).includes(h(y).trim()) && (S(f, M([
11684
11685
  ...h(f),
11685
11686
  h(y).trim()
11686
- ])), A(y, ""));
11687
+ ])), S(y, ""));
11687
11688
  }
11688
11689
  function U(G) {
11689
- G != n()("no-norms") && !h(f).includes(G) && A(f, M([...h(f), G]));
11690
+ G != n()("no-norms") && !h(f).includes(G) && S(f, M([...h(f), G]));
11690
11691
  }
11691
- function R(G) {
11692
- A(d, M(h(d).filter((Nt) => Nt !== G)));
11692
+ function F(G) {
11693
+ S(d, M(h(d).filter((Nt) => Nt !== G)));
11693
11694
  }
11694
11695
  function tt(G) {
11695
- A(f, M(h(f).filter((Nt) => Nt !== G)));
11696
+ S(f, M(h(f).filter((Nt) => Nt !== G)));
11696
11697
  }
11697
11698
  Ze(() => {
11698
- A(S, o() === "template");
11699
+ S(E, o() === "template");
11699
11700
  }), lr(() => {
11700
- h(u) != "no-ai" && A(S, !0);
11701
+ h(u) != "no-ai" && S(E, !0);
11701
11702
  });
11702
11703
  var it = Tp(), dt = Lt(it), xt = w(dt), X = w(xt), V = w(X), _t = w(V), Ot = w(_t, !0);
11703
11704
  z(() => at(Ot, n()("add-document.add-new"))), g(_t);
@@ -11725,35 +11726,35 @@ function Ds(t, e) {
11725
11726
  {
11726
11727
  var We = (G) => {
11727
11728
  var Nt = wp(), jt = Lt(Nt);
11728
- le(jt), z(() => D(jt, "placeholder", n()("add-document.title")));
11729
+ le(jt), z(() => B(jt, "placeholder", n()("add-document.title")));
11729
11730
  var Xt = P(jt, 2);
11730
11731
  Mn(Xt, {
11731
11732
  selectNorm: U,
11732
- addNorm: B,
11733
+ addNorm: H,
11733
11734
  removeSelectedNorm: tt,
11734
11735
  get localNorms() {
11735
11736
  return h(v);
11736
11737
  },
11737
11738
  set localNorms(Gt) {
11738
- A(v, M(Gt));
11739
+ S(v, M(Gt));
11739
11740
  },
11740
11741
  get selectedNorms() {
11741
11742
  return h(f);
11742
11743
  },
11743
11744
  set selectedNorms(Gt) {
11744
- A(f, M(Gt));
11745
+ S(f, M(Gt));
11745
11746
  },
11746
11747
  get newNorm() {
11747
11748
  return h(y);
11748
11749
  },
11749
11750
  set newNorm(Gt) {
11750
- A(y, M(Gt));
11751
+ S(y, M(Gt));
11751
11752
  }
11752
11753
  });
11753
11754
  var Ne = P(Xt, 2), qt = w(Ne), Cr = w(qt);
11754
- le(Cr), z(() => D(Cr, "placeholder", n()("add-document.add-custom-tag"))), Cr.__keydown = [gp, H];
11755
+ le(Cr), z(() => B(Cr, "placeholder", n()("add-document.add-custom-tag"))), Cr.__keydown = [gp, D];
11755
11756
  var qs = P(Cr, 2);
11756
- qs.__click = H, g(qt);
11757
+ qs.__click = D, g(qt);
11757
11758
  var Gs = P(qt, 2);
11758
11759
  {
11759
11760
  var Vs = (Gt) => {
@@ -11762,43 +11763,43 @@ function Ds(t, e) {
11762
11763
  var Kn = _p(), ti = w(Kn), Xs = w(ti, !0);
11763
11764
  g(ti);
11764
11765
  var Js = P(ti, 2);
11765
- Js.__click = [bp, R, la], g(Kn), z(() => at(Xs, h(la))), C(Ys, Kn);
11766
+ Js.__click = [bp, F, la], g(Kn), z(() => at(Xs, h(la))), C(Ys, Kn);
11766
11767
  }), g(Qn), C(Gt, Qn);
11767
11768
  };
11768
11769
  ut(Gs, (Gt) => {
11769
11770
  h(d).length > 0 && Gt(Vs);
11770
11771
  });
11771
11772
  }
11772
- g(Ne), ye(jt, () => h(c), (Gt) => A(c, Gt)), ye(Cr, () => h(_), (Gt) => A(_, Gt)), C(G, Nt);
11773
+ g(Ne), ye(jt, () => h(c), (Gt) => S(c, Gt)), ye(Cr, () => h(_), (Gt) => S(_, Gt)), C(G, Nt);
11773
11774
  }, nn = (G) => {
11774
11775
  var Nt = xp(), jt = Lt(Nt);
11775
- le(jt), z(() => D(jt, "placeholder", n()("add-document.title")));
11776
+ le(jt), z(() => B(jt, "placeholder", n()("add-document.title")));
11776
11777
  var Xt = P(jt, 2);
11777
11778
  Mn(Xt, {
11778
11779
  selectNorm: U,
11779
- addNorm: B,
11780
+ addNorm: H,
11780
11781
  removeSelectedNorm: tt,
11781
11782
  get localNorms() {
11782
11783
  return h(v);
11783
11784
  },
11784
11785
  set localNorms(qt) {
11785
- A(v, M(qt));
11786
+ S(v, M(qt));
11786
11787
  },
11787
11788
  get selectedNorms() {
11788
11789
  return h(f);
11789
11790
  },
11790
11791
  set selectedNorms(qt) {
11791
- A(f, M(qt));
11792
+ S(f, M(qt));
11792
11793
  },
11793
11794
  get newNorm() {
11794
11795
  return h(y);
11795
11796
  },
11796
11797
  set newNorm(qt) {
11797
- A(y, M(qt));
11798
+ S(y, M(qt));
11798
11799
  }
11799
11800
  });
11800
11801
  var Ne = P(Xt, 2);
11801
- le(Ne), z(() => D(Ne, "placeholder", n()("add-document.society-type"))), ye(jt, () => h(I), (qt) => A(I, qt)), ye(Ne, () => h(T), (qt) => A(T, qt)), C(G, Nt);
11802
+ le(Ne), z(() => B(Ne, "placeholder", n()("add-document.society-type"))), ye(jt, () => h(I), (qt) => S(I, qt)), ye(Ne, () => h(T), (qt) => S(T, qt)), C(G, Nt);
11802
11803
  };
11803
11804
  ut(Tr, (G) => {
11804
11805
  h(u) === "no-ai" ? G(We) : G(nn, !1);
@@ -11816,10 +11817,10 @@ function Ds(t, e) {
11816
11817
  Ep,
11817
11818
  u,
11818
11819
  x,
11819
- E
11820
+ A
11820
11821
  ];
11821
11822
  var Xt = P(w(jt));
11822
- z(() => at(Xt, ` ${(h(S) ? n()("create.template") : n()("create.document")) ?? ""}`)), g(jt), g(Nt), C(G, Nt);
11823
+ z(() => at(Xt, ` ${(h(E) ? n()("create.template") : n()("create.document")) ?? ""}`)), g(jt), g(Nt), C(G, Nt);
11823
11824
  };
11824
11825
  ut(Wn, (G) => {
11825
11826
  h(b) ? G(Rs) : G(Fs, !1);
@@ -11837,8 +11838,8 @@ function Ds(t, e) {
11837
11838
  });
11838
11839
  }
11839
11840
  return z(() => {
11840
- D(dt, "style", `display: ${(i() ? "block" : "none") ?? ""};`), D(It, "style", h(S) ? "color: #ccc" : "font-weight: bold"), Ue.disabled = h(u) !== "no-ai", D(Ar, "style", h(S) ? "font-weight: bold" : "color: #ccc");
11841
- }), Xi(zt, () => h(u), (G) => A(u, G)), cu(Ue, () => h(S), (G) => A(S, G)), C(t, it), W({
11841
+ B(dt, "style", `display: ${(i() ? "block" : "none") ?? ""};`), B(It, "style", h(E) ? "color: #ccc" : "font-weight: bold"), Ue.disabled = h(u) !== "no-ai", B(Ar, "style", h(E) ? "font-weight: bold" : "color: #ccc");
11842
+ }), Xi(zt, () => h(u), (G) => S(u, G)), cu(Ue, () => h(E), (G) => S(E, G)), C(t, it), W({
11842
11843
  get showCreateDialog() {
11843
11844
  return i();
11844
11845
  },
@@ -11912,16 +11913,16 @@ function Ms(t, e) {
11912
11913
  else
11913
11914
  for (let x of k.value)
11914
11915
  T.add(x);
11915
- A(l, M([...Array.from(T)])), A(s, M([
11916
+ S(l, M([...Array.from(T)])), S(s, M([
11916
11917
  n()("no-norms"),
11917
11918
  ...Array.from(N)
11918
11919
  ]));
11919
11920
  }, f = () => {
11920
- A(i, M(c(h(i)))), d();
11921
+ S(i, M(c(h(i)))), d();
11921
11922
  };
11922
11923
  Ze(() => {
11923
- A(a, !0), Se.getDocuments().then((T) => {
11924
- A(i, M(c(T))), A(a, !1), d();
11924
+ S(a, !0), Se.getDocuments().then((T) => {
11925
+ S(i, M(c(T))), S(a, !1), d();
11925
11926
  }), Oi.subscribe((T) => {
11926
11927
  });
11927
11928
  });
@@ -11937,19 +11938,19 @@ function Ms(t, e) {
11937
11938
  return h(u);
11938
11939
  },
11939
11940
  set actSheet(N) {
11940
- A(u, M(N));
11941
+ S(u, M(N));
11941
11942
  },
11942
11943
  get showCreateDialog() {
11943
11944
  return h(o);
11944
11945
  },
11945
11946
  set showCreateDialog(N) {
11946
- A(o, M(N));
11947
+ S(o, M(N));
11947
11948
  },
11948
11949
  get documents() {
11949
11950
  return h(i);
11950
11951
  },
11951
11952
  set documents(N) {
11952
- A(i, M(N));
11953
+ S(i, M(N));
11953
11954
  }
11954
11955
  });
11955
11956
  };
@@ -11957,7 +11958,7 @@ function Ms(t, e) {
11957
11958
  h(o) && T(y);
11958
11959
  });
11959
11960
  }
11960
- var S = P(_, 2);
11961
+ var E = P(_, 2);
11961
11962
  {
11962
11963
  var L = (T) => {
11963
11964
  var N = Np(), b = w(N);
@@ -11968,29 +11969,29 @@ function Ms(t, e) {
11968
11969
  return h(i);
11969
11970
  },
11970
11971
  set documents(N) {
11971
- A(i, M(N));
11972
+ S(i, M(N));
11972
11973
  },
11973
11974
  get normArray() {
11974
11975
  return h(s);
11975
11976
  },
11976
11977
  set normArray(N) {
11977
- A(s, M(N));
11978
+ S(s, M(N));
11978
11979
  },
11979
11980
  get showCreateDialog() {
11980
11981
  return h(o);
11981
11982
  },
11982
11983
  set showCreateDialog(N) {
11983
- A(o, M(N));
11984
+ S(o, M(N));
11984
11985
  },
11985
11986
  get actSheet() {
11986
11987
  return h(u);
11987
11988
  },
11988
11989
  set actSheet(N) {
11989
- A(u, M(N));
11990
+ S(u, M(N));
11990
11991
  }
11991
11992
  });
11992
11993
  };
11993
- ut(S, (T) => {
11994
+ ut(E, (T) => {
11994
11995
  h(a) ? T(L) : T(I, !1);
11995
11996
  });
11996
11997
  }