vuefinder 2.5.7 → 2.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vuefinder.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Go = Object.defineProperty;
2
2
  var Ko = (t, e, s) => e in t ? Go(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
3
  var mn = (t, e, s) => Ko(t, typeof e != "symbol" ? e + "" : e, s);
4
- import { reactive as Ot, watch as ze, ref as E, shallowRef as Wo, onMounted as Ce, onUnmounted as qs, onUpdated as Rn, nextTick as ft, computed as Ze, inject as ae, openBlock as f, createElementBlock as g, withKeys as $t, unref as a, createElementVNode as o, withModifiers as rt, renderSlot as Dt, normalizeClass as de, toDisplayString as _, createBlock as W, withCtx as se, Fragment as he, renderList as $e, createCommentVNode as j, withDirectives as ve, vModelCheckbox as Pt, createTextVNode as Q, createVNode as Y, vModelSelect as Ss, isRef as Fn, vModelText as St, onBeforeUnmount as In, customRef as Yo, vShow as je, TransitionGroup as Xo, normalizeStyle as os, mergeModels as Jo, useModel as Nn, resolveComponent as Qo, provide as Zo, Transition as er, resolveDynamicComponent as tr } from "vue";
4
+ import { reactive as Ot, watch as Ne, ref as E, shallowRef as Wo, onMounted as Ce, onUnmounted as qs, onUpdated as Rn, nextTick as ft, computed as Ze, inject as ae, openBlock as f, createElementBlock as g, withKeys as $t, unref as a, createElementVNode as o, withModifiers as rt, renderSlot as Dt, normalizeClass as de, toDisplayString as _, createBlock as W, withCtx as se, Fragment as he, renderList as $e, createCommentVNode as j, withDirectives as ve, vModelCheckbox as Pt, createTextVNode as Q, createVNode as Y, vModelSelect as Ss, isRef as Fn, vModelText as St, onBeforeUnmount as In, customRef as Yo, vShow as je, TransitionGroup as Xo, normalizeStyle as os, mergeModels as Jo, useModel as Nn, resolveComponent as Qo, provide as Zo, Transition as er, resolveDynamicComponent as tr } from "vue";
5
5
  import sr from "mitt";
6
6
  import nr from "dragselect";
7
7
  import or from "@uppy/core";
@@ -40,7 +40,7 @@ class ir {
40
40
  l !== "get" && (i instanceof FormData ? (u = i, s.body != null && Object.entries(this.config.body).forEach(([m, v]) => {
41
41
  u.append(m, v);
42
42
  })) : (u = { ...i }, s.body != null && Object.assign(u, this.config.body)));
43
- const h = {
43
+ const p = {
44
44
  url: d,
45
45
  method: l,
46
46
  headers: n,
@@ -55,9 +55,9 @@ class ir {
55
55
  params: c,
56
56
  body: u
57
57
  });
58
- m.url != null && (h.url = m.url), m.method != null && (h.method = m.method), m.params != null && (h.params = m.params ?? {}), m.headers != null && (h.headers = m.headers ?? {}), m.body != null && (h.body = m.body);
58
+ m.url != null && (p.url = m.url), m.method != null && (p.method = m.method), m.params != null && (p.params = m.params ?? {}), m.headers != null && (p.headers = m.headers ?? {}), m.body != null && (p.body = m.body);
59
59
  }
60
- return h;
60
+ return p;
61
61
  }
62
62
  /**
63
63
  * Get download url
@@ -137,7 +137,7 @@ function cr(t) {
137
137
  function dr(t) {
138
138
  let e = localStorage.getItem(t + "_storage");
139
139
  const s = Ot(JSON.parse(e ?? "{}"));
140
- ze(s, r);
140
+ Ne(s, r);
141
141
  function r() {
142
142
  Object.keys(s).length ? localStorage.setItem(t + "_storage", JSON.stringify(s)) : localStorage.removeItem(t + "_storage");
143
143
  }
@@ -158,18 +158,18 @@ async function ur(t, e) {
158
158
  }
159
159
  function mr(t, e, s, r) {
160
160
  const { getStore: n, setStore: c } = t, i = E({}), d = E(n("locale", e)), l = (m, v = e) => {
161
- ur(m, r).then((p) => {
162
- i.value = p, c("locale", m), d.value = m, c("translations", p), Object.values(r).length > 1 && (s.emit("vf-toast-push", { label: "The language is set to " + m }), s.emit("vf-language-saved"));
163
- }).catch((p) => {
161
+ ur(m, r).then((h) => {
162
+ i.value = h, c("locale", m), d.value = m, c("translations", h), Object.values(r).length > 1 && (s.emit("vf-toast-push", { label: "The language is set to " + m }), s.emit("vf-language-saved"));
163
+ }).catch((h) => {
164
164
  v ? (s.emit("vf-toast-push", { label: "The selected locale is not yet supported!", type: "error" }), l(v, null)) : s.emit("vf-toast-push", { label: "Locale cannot be loaded!", type: "error" });
165
165
  });
166
166
  };
167
167
  !n("locale") && !r.length ? l(e) : i.value = n("translations");
168
168
  const u = (m, ...v) => v.length ? u(m = m.replace("%s", v.shift()), ...v) : m;
169
- function h(m, ...v) {
169
+ function p(m, ...v) {
170
170
  return i.value && i.value.hasOwnProperty(m) ? u(i.value[m], ...v) : u(m, ...v);
171
171
  }
172
- return { t: h, changeLocale: l, locale: d };
172
+ return { t: p, changeLocale: l, locale: d };
173
173
  }
174
174
  const pe = {
175
175
  EDIT: "edit",
@@ -185,7 +185,7 @@ const pe = {
185
185
  FULL_SCREEN: "fullscreen",
186
186
  DOWNLOAD: "download",
187
187
  LANGUAGE: "language"
188
- }, fr = Object.values(pe), hr = "2.5.7";
188
+ }, fr = Object.values(pe), hr = "2.5.8";
189
189
  function Un(t, e, s, r, n) {
190
190
  return (e = Math, s = e.log, r = 1024, n = s(t) / s(r) | 0, t / e.pow(r, n)).toFixed(0) + " " + (n ? "KMGTPEZY"[--n] + "iB" : "B");
191
191
  }
@@ -244,12 +244,12 @@ function gr() {
244
244
  const Ve = (t, e) => {
245
245
  const { o: s, i: r, u: n } = t;
246
246
  let c = s, i;
247
- const d = (h, m) => {
248
- const v = c, p = h, x = m || (r ? !r(v, p) : v !== p);
249
- return (x || n) && (c = p, i = v), [c, x, i];
247
+ const d = (p, m) => {
248
+ const v = c, h = p, x = m || (r ? !r(v, h) : v !== h);
249
+ return (x || n) && (c = h, i = v), [c, x, i];
250
250
  };
251
- return [e ? (h) => d(e(c, i), h) : d, (h) => [c, !!h, i]];
252
- }, jn = typeof window < "u" && typeof document < "u", Ae = jn ? window : {}, Pn = Math.max, _r = Math.min, Cs = Math.round, Jt = Math.abs, fn = Math.sign, qn = Ae.cancelAnimationFrame, Gs = Ae.requestAnimationFrame, Qt = Ae.setTimeout, Es = Ae.clearTimeout, rs = (t) => typeof Ae[t] < "u" ? Ae[t] : void 0, xr = rs("MutationObserver"), hn = rs("IntersectionObserver"), Zt = rs("ResizeObserver"), Ts = rs("ScrollTimeline"), Gn = jn && Node.ELEMENT_NODE, { toString: Hf, hasOwnProperty: xs } = Object.prototype, as = (t) => t === void 0, Ks = (t) => t === null, qe = (t) => typeof t == "number", ls = (t) => typeof t == "string", Kn = (t) => typeof t == "boolean", Fe = (t) => typeof t == "function", Ge = (t) => Array.isArray(t), Lt = (t) => typeof t == "object" && !Ge(t) && !Ks(t), is = (t) => {
251
+ return [e ? (p) => d(e(c, i), p) : d, (p) => [c, !!p, i]];
252
+ }, jn = typeof window < "u" && typeof document < "u", Ae = jn ? window : {}, Pn = Math.max, _r = Math.min, Cs = Math.round, Jt = Math.abs, fn = Math.sign, qn = Ae.cancelAnimationFrame, Gs = Ae.requestAnimationFrame, Qt = Ae.setTimeout, Es = Ae.clearTimeout, rs = (t) => typeof Ae[t] < "u" ? Ae[t] : void 0, xr = rs("MutationObserver"), hn = rs("IntersectionObserver"), Zt = rs("ResizeObserver"), Ts = rs("ScrollTimeline"), Gn = jn && Node.ELEMENT_NODE, { toString: Bf, hasOwnProperty: xs } = Object.prototype, as = (t) => t === void 0, Ks = (t) => t === null, qe = (t) => typeof t == "number", ls = (t) => typeof t == "string", Kn = (t) => typeof t == "boolean", Fe = (t) => typeof t == "function", Ge = (t) => Array.isArray(t), Lt = (t) => typeof t == "object" && !Ge(t) && !Ks(t), is = (t) => {
253
253
  const e = !!t && t.length, s = qe(e) && e > -1 && e % 1 == 0;
254
254
  return Ge(t) || !Fe(t) && s ? e > 0 && Lt(t) ? e - 1 in t : !0 : !1;
255
255
  }, es = (t) => {
@@ -299,35 +299,35 @@ const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e,
299
299
  }, () => r(e)];
300
300
  }, As = (t, e) => {
301
301
  const { _: s, p: r, v: n, m: c } = e || {};
302
- let i, d, l, u, h = at;
302
+ let i, d, l, u, p = at;
303
303
  const m = function(b) {
304
- h(), Es(i), u = i = d = void 0, h = at, t.apply(this, b);
305
- }, v = (y) => c && d ? c(d, y) : y, p = () => {
306
- h !== at && m(v(l) || l);
304
+ p(), Es(i), u = i = d = void 0, p = at, t.apply(this, b);
305
+ }, v = (y) => c && d ? c(d, y) : y, h = () => {
306
+ p !== at && m(v(l) || l);
307
307
  }, x = function() {
308
308
  const b = dt(arguments), A = Fe(s) ? s() : s;
309
309
  if (qe(A) && A >= 0) {
310
310
  const U = Fe(r) ? r() : r, B = qe(U) && U >= 0, D = A > 0 ? Qt : Gs, L = A > 0 ? Es : qn, T = v(b) || b, O = m.bind(0, T);
311
311
  let M;
312
- h(), n && !u ? (O(), u = !0, M = D(() => u = void 0, A)) : (M = D(O, A), B && !i && (i = Qt(p, U))), h = () => L(M), d = l = T;
312
+ p(), n && !u ? (O(), u = !0, M = D(() => u = void 0, A)) : (M = D(O, A), B && !i && (i = Qt(h, U))), p = () => L(M), d = l = T;
313
313
  } else
314
314
  m(b);
315
315
  };
316
- return x.S = p, x;
316
+ return x.S = h, x;
317
317
  }, no = (t, e) => Object.prototype.hasOwnProperty.call(t, e), et = (t) => t ? Object.keys(t) : [], re = (t, e, s, r, n, c, i) => {
318
318
  const d = [e, s, r, n, c, i];
319
319
  return (typeof t != "object" || Ks(t)) && !Fe(t) && (t = {}), ce(d, (l) => {
320
- ce(l, (u, h) => {
321
- const m = l[h];
320
+ ce(l, (u, p) => {
321
+ const m = l[p];
322
322
  if (t === m)
323
323
  return !0;
324
324
  const v = Ge(m);
325
325
  if (m && es(m)) {
326
- const p = t[h];
327
- let x = p;
328
- v && !Ge(p) ? x = [] : !v && !es(p) && (x = {}), t[h] = re(x, m);
326
+ const h = t[p];
327
+ let x = h;
328
+ v && !Ge(h) ? x = [] : !v && !es(h) && (x = {}), t[p] = re(x, m);
329
329
  } else
330
- t[h] = v ? m.slice() : m;
330
+ t[p] = v ? m.slice() : m;
331
331
  });
332
332
  }), t;
333
333
  }, oo = (t, e) => ce(re({}, t), (s, r, n) => {
@@ -340,7 +340,7 @@ const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e,
340
340
  ce(ht(e), (r) => {
341
341
  t && t.setAttribute(r, String(s || ""));
342
342
  });
343
- }, Ue = (t, e) => {
343
+ }, ze = (t, e) => {
344
344
  ce(ht(e), (s) => t && t.removeAttribute(s));
345
345
  }, us = (t, e) => {
346
346
  const s = ht(Xs(t, e)), r = J(Je, t, e), n = (c, i) => {
@@ -445,10 +445,10 @@ const bn = (t, e, s) => {
445
445
  capture: i
446
446
  };
447
447
  return J(Ie, ht(e).map((u) => {
448
- const h = d ? (m) => {
449
- yn(t, u, h, i), s && s(m);
448
+ const p = d ? (m) => {
449
+ yn(t, u, p, i), s && s(m);
450
450
  } : s;
451
- return t && t.addEventListener(u, h, l), J(yn, t, u, h, i);
451
+ return t && t.addEventListener(u, p, l), J(yn, t, u, p, i);
452
452
  }));
453
453
  }, po = (t) => t.stopPropagation(), Fs = (t) => t.preventDefault(), vo = (t) => po(t) || Fs(t), Pe = (t, e) => {
454
454
  const { x: s, y: r } = qe(e) ? {
@@ -469,14 +469,14 @@ const bn = (t, e, s) => {
469
469
  y: 0
470
470
  }
471
471
  }), Dr = (t, e) => {
472
- const { T: s, D: r } = t, { w: n, h: c } = e, i = (m, v, p) => {
473
- let x = fn(m) * p, y = fn(v) * p;
472
+ const { T: s, D: r } = t, { w: n, h: c } = e, i = (m, v, h) => {
473
+ let x = fn(m) * h, y = fn(v) * h;
474
474
  if (x === y) {
475
475
  const b = Jt(m), A = Jt(v);
476
476
  y = b > A ? 0 : y, x = b < A ? 0 : x;
477
477
  }
478
478
  return x = x === y ? 0 : x, [x + 0, y + 0];
479
- }, [d, l] = i(s.x, r.x, n), [u, h] = i(s.y, r.y, c);
479
+ }, [d, l] = i(s.x, r.x, n), [u, p] = i(s.y, r.y, c);
480
480
  return {
481
481
  T: {
482
482
  x: d,
@@ -484,7 +484,7 @@ const bn = (t, e, s) => {
484
484
  },
485
485
  D: {
486
486
  x: l,
487
- y: h
487
+ y: p
488
488
  }
489
489
  };
490
490
  }, wn = ({ T: t, D: e }) => {
@@ -519,15 +519,15 @@ const bn = (t, e, s) => {
519
519
  }, r = (c, i) => {
520
520
  if (ls(c)) {
521
521
  const u = e.get(c) || /* @__PURE__ */ new Set();
522
- return e.set(c, u), $n((h) => {
523
- Fe(h) && u.add(h);
522
+ return e.set(c, u), $n((p) => {
523
+ Fe(p) && u.add(p);
524
524
  }, i), J(s, c, i);
525
525
  }
526
526
  Kn(i) && i && s();
527
527
  const d = et(c), l = [];
528
528
  return ce(d, (u) => {
529
- const h = c[u];
530
- h && xe(l, r(u, h));
529
+ const p = c[u];
530
+ p && xe(l, r(u, p));
531
531
  }), J(Ie, l);
532
532
  }, n = (c, i) => {
533
533
  ce(dt(e.get(c)), (d) => {
@@ -599,10 +599,10 @@ const Xr = () => {
599
599
  }, s = `.${Yt}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${Yt} div{width:200%;height:200%;margin:10px 0}.${Gt}{scrollbar-width:none!important}.${Gt}::-webkit-scrollbar,.${Gt}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`, n = mo(`<div class="${Yt}"><div></div><style>${s}</style></div>`)[0], c = n.firstChild, [i, , d] = Ns(), [l, u] = Ve({
600
600
  o: t(n, c),
601
601
  i: Wt
602
- }, J(t, n, c, !0)), [h] = u(), m = e(n), v = {
603
- x: h.x === 0,
604
- y: h.y === 0
605
- }, p = {
602
+ }, J(t, n, c, !0)), [p] = u(), m = e(n), v = {
603
+ x: p.x === 0,
604
+ y: p.y === 0
605
+ }, h = {
606
606
  elements: {
607
607
  host: null,
608
608
  padding: !m,
@@ -616,20 +616,20 @@ const Xr = () => {
616
616
  nativeScrollbarsOverlaid: !1,
617
617
  body: null
618
618
  }
619
- }, x = re({}, Lr), y = J(re, {}, x), b = J(re, {}, p), A = {
620
- k: h,
619
+ }, x = re({}, Lr), y = J(re, {}, x), b = J(re, {}, h), A = {
620
+ k: p,
621
621
  M: v,
622
622
  R: m,
623
623
  V: !!Ts,
624
624
  L: J(i, "r"),
625
625
  P: b,
626
- U: (k) => re(p, k) && b(),
626
+ U: (k) => re(h, k) && b(),
627
627
  N: y,
628
628
  q: (k) => re(x, k) && y(),
629
- B: re({}, p),
629
+ B: re({}, h),
630
630
  F: re({}, x)
631
631
  };
632
- if (Ue(n, "style"), it(n), fe(Ae, "resize", () => {
632
+ if (ze(n, "style"), it(n), fe(Ae, "resize", () => {
633
633
  d("r", []);
634
634
  }), Fe(Ae.matchMedia) && !m && (!v.x || !v.y)) {
635
635
  const k = (U) => {
@@ -653,7 +653,7 @@ const Xr = () => {
653
653
  const n = as(r) ? s : r, c = wo(t, n);
654
654
  return !!c && (ts(c) ? c : e.apply(0, t));
655
655
  }, Qr = (t, e) => {
656
- const { nativeScrollbarsOverlaid: s, body: r } = e || {}, { M: n, R: c, P: i } = Ke(), { nativeScrollbarsOverlaid: d, body: l } = i().cancel, u = s ?? d, h = as(r) ? l : r, m = (n.x || n.y) && u, v = t && (Ks(h) ? !c : h);
656
+ const { nativeScrollbarsOverlaid: s, body: r } = e || {}, { M: n, R: c, P: i } = Ke(), { nativeScrollbarsOverlaid: d, body: l } = i().cancel, u = s ?? d, p = as(r) ? l : r, m = (n.x || n.y) && u, v = t && (Ks(p) ? !c : p);
657
657
  return !!m || !!v;
658
658
  }, on = /* @__PURE__ */ new WeakMap(), Zr = (t, e) => {
659
659
  on.set(t, e);
@@ -666,30 +666,30 @@ const Xr = () => {
666
666
  }, i = (d) => {
667
667
  if (n && s) {
668
668
  const l = s.map((u) => {
669
- const [h, m] = u || [];
670
- return [m && h ? (d || io)(h, t) : [], m];
669
+ const [p, m] = u || [];
670
+ return [m && p ? (d || io)(p, t) : [], m];
671
671
  });
672
- ce(l, (u) => ce(u[0], (h) => {
673
- const m = u[1], v = n.get(h) || [];
674
- if (t.contains(h) && m) {
675
- const x = fe(h, m, (y) => {
676
- r ? (x(), n.delete(h)) : e(y);
672
+ ce(l, (u) => ce(u[0], (p) => {
673
+ const m = u[1], v = n.get(p) || [];
674
+ if (t.contains(p) && m) {
675
+ const x = fe(p, m, (y) => {
676
+ r ? (x(), n.delete(p)) : e(y);
677
677
  });
678
- n.set(h, xe(v, x));
678
+ n.set(p, xe(v, x));
679
679
  } else
680
- Ie(v), n.delete(h);
680
+ Ie(v), n.delete(p);
681
681
  }));
682
682
  }
683
683
  };
684
684
  return i(), [c, i];
685
685
  }, On = (t, e, s, r) => {
686
686
  let n = !1;
687
- const { j: c, X: i, Y: d, W: l, J: u, K: h } = r || {}, m = As(() => n && s(!0), {
687
+ const { j: c, X: i, Y: d, W: l, J: u, K: p } = r || {}, m = As(() => n && s(!0), {
688
688
  _: 33,
689
689
  p: 99
690
- }), [v, p] = ta(t, m, d), x = c || [], y = i || [], b = Qe(x, y), A = (U, B) => {
690
+ }), [v, h] = ta(t, m, d), x = c || [], y = i || [], b = Qe(x, y), A = (U, B) => {
691
691
  if (!Ms(B)) {
692
- const D = u || at, L = h || at, V = [], T = [];
692
+ const D = u || at, L = p || at, V = [], T = [];
693
693
  let O = !1, M = !1;
694
694
  if (ce(B, (S) => {
695
695
  const { attributeName: H, target: $, type: w, oldValue: I, addedNodes: R, removedNodes: ne } = S, ue = w === "attributes", le = w === "childList", F = t === $, ee = ue && H, te = ee && Xs($, H || ""), X = ls(te) ? te : null, me = ee && I !== X, z = Ws(y, H) && me;
@@ -698,7 +698,7 @@ const Xr = () => {
698
698
  ce(R, (G) => xe(V, G)), ce(ne, (G) => xe(V, G)), M = M || N;
699
699
  }
700
700
  !e && F && me && !D($, H, I, X) && (xe(T, H), O = O || z);
701
- }), p((S) => pn(V).reduce((H, $) => (xe(H, io(S, $)), ss($, S) ? xe(H, $) : H), [])), e)
701
+ }), h((S) => pn(V).reduce((H, $) => (xe(H, io(S, $)), ss($, S) ? xe(H, $) : H), [])), e)
702
702
  return !U && M && s(!1), [!1];
703
703
  if (!Ms(T) || O) {
704
704
  const S = [pn(T), O];
@@ -726,16 +726,16 @@ const Xr = () => {
726
726
  }, Eo = (t, e, s) => et(t).map((r) => {
727
727
  const { static: n, instance: c } = t[r], [i, d, l] = s || [], u = s ? c : n;
728
728
  if (u) {
729
- const h = s ? u(i, d, e) : u(e);
730
- return (l || Co)[r] = h;
729
+ const p = s ? u(i, d, e) : u(e);
730
+ return (l || Co)[r] = p;
731
731
  }
732
732
  }), Ht = (t) => Co[t], na = "__osOptionsValidationPlugin", oa = "__osSizeObserverPlugin", ra = (t, e) => {
733
733
  const { M: s } = e, [r, n] = t("showNativeOverlaidScrollbars");
734
734
  return [r && s.x && s.y, n];
735
735
  }, ns = (t) => t.indexOf(ot) === 0, aa = (t, e) => {
736
736
  const s = (n, c, i, d) => {
737
- const l = n === ot ? ut : n.replace(`${ot}-`, ""), u = ns(n), h = ns(i);
738
- return !c && !d ? ut : u && h ? ot : u ? c && d ? l : c ? ot : ut : c ? l : h && d ? ot : ut;
737
+ const l = n === ot ? ut : n.replace(`${ot}-`, ""), u = ns(n), p = ns(i);
738
+ return !c && !d ? ut : u && p ? ot : u ? c && d ? l : c ? ot : ut : c ? l : p && d ? ot : ut;
739
739
  }, r = {
740
740
  x: s(e.x, t.x, e.y, t.y),
741
741
  y: s(e.y, t.y, e.x, t.x)
@@ -753,26 +753,26 @@ const Xr = () => {
753
753
  u: !0
754
754
  });
755
755
  return () => {
756
- const i = [], l = mo(`<div class="${sn}"><div class="${Nr}"></div></div>`)[0], u = l.firstChild, h = (m) => {
756
+ const i = [], l = mo(`<div class="${sn}"><div class="${Nr}"></div></div>`)[0], u = l.firstChild, p = (m) => {
757
757
  const v = m instanceof ResizeObserverEntry;
758
- let p = !1, x = !1;
758
+ let h = !1, x = !1;
759
759
  if (v) {
760
760
  const [y, , b] = c(m.contentRect), A = Rs(y);
761
- x = ho(y, b), p = !x && !A;
761
+ x = ho(y, b), h = !x && !A;
762
762
  } else
763
763
  x = m === !0;
764
- p || e({
764
+ h || e({
765
765
  ft: !0,
766
766
  dt: x
767
767
  });
768
768
  };
769
769
  if (Zt) {
770
- const m = new Zt((v) => h(v.pop()));
770
+ const m = new Zt((v) => p(v.pop()));
771
771
  m.observe(u), xe(i, () => {
772
772
  m.disconnect();
773
773
  });
774
774
  } else if (n) {
775
- const [m, v] = n(u, h, r);
775
+ const [m, v] = n(u, p, r);
776
776
  xe(i, Qe([Zs(l, Ir), fe(l, "animationstart", m)], v));
777
777
  } else
778
778
  return at;
@@ -784,8 +784,8 @@ const Xr = () => {
784
784
  o: !1
785
785
  }), i = (l, u) => {
786
786
  if (l) {
787
- const h = c(r(l)), [, m] = h;
788
- return m && !u && e(h) && [h];
787
+ const p = c(r(l)), [, m] = p;
788
+ return m && !u && e(p) && [p];
789
789
  }
790
790
  }, d = (l, u) => i(u.pop(), l);
791
791
  return [() => {
@@ -798,8 +798,8 @@ const Xr = () => {
798
798
  });
799
799
  else {
800
800
  const u = () => {
801
- const h = Mt(n);
802
- i(h);
801
+ const p = Mt(n);
802
+ i(p);
803
803
  };
804
804
  xe(l, Mo(n, u)()), u();
805
805
  }
@@ -807,7 +807,7 @@ const Xr = () => {
807
807
  }, () => s && d(!0, s.takeRecords())];
808
808
  }, ca = (t, e, s, r) => {
809
809
  let n, c, i, d, l, u;
810
- const h = `[${lt}]`, m = `[${nt}]`, v = [], p = ["wrap", "cols", "rows"], x = ["id", "class", "style", "open"], { vt: y, ht: b, ot: A, gt: k, bt: U, wt: B, nt: D, yt: L, St: V, Ot: T } = t, O = (C) => pt(C, "direction") === "rtl", M = {
810
+ const p = `[${lt}]`, m = `[${nt}]`, v = [], h = ["wrap", "cols", "rows"], x = ["id", "class", "style", "open"], { vt: y, ht: b, ot: A, gt: k, bt: U, wt: B, nt: D, yt: L, St: V, Ot: T } = t, O = (C) => pt(C, "direction") === "rtl", M = {
811
811
  $t: !1,
812
812
  ct: O(y)
813
813
  }, S = Ke(), H = Ht(To), [$] = Ve({
@@ -822,7 +822,7 @@ const Xr = () => {
822
822
  w: Se.w + oe.w,
823
823
  h: Se.h + oe.h
824
824
  };
825
- }), w = B ? p : Qe(x, p), I = As(r, {
825
+ }), w = B ? h : Qe(x, h), I = As(r, {
826
826
  _: () => n,
827
827
  p: () => c,
828
828
  m(C, N) {
@@ -896,10 +896,10 @@ const Xr = () => {
896
896
  const [be, ge] = On(U || A, !0, le, {
897
897
  j: Qe(w, ie || []),
898
898
  Y: Se,
899
- W: h,
899
+ W: p,
900
900
  K: (Te, _e) => {
901
901
  const { target: Me, attributeName: Le } = Te;
902
- return (!_e && Le && !D ? Sr(Me, h, m) : !1) || !!_t(Me, `.${Be}`) || !!De(Te);
902
+ return (!_e && Le && !D ? Sr(Me, p, m) : !1) || !!_t(Me, `.${Be}`) || !!De(Te);
903
903
  }
904
904
  });
905
905
  d = be(), i = ge;
@@ -916,13 +916,13 @@ const Xr = () => {
916
916
  return R(K), K;
917
917
  }, M];
918
918
  }, da = (t, e, s, r) => {
919
- const { P: n } = Ke(), { scrollbars: c } = n(), { slot: i } = c, { vt: d, ht: l, ot: u, Dt: h, gt: m, yt: v, nt: p } = e, { scrollbars: x } = h ? {} : t, { slot: y } = x || {}, b = /* @__PURE__ */ new Map(), A = (z) => Ts && new Ts({
919
+ const { P: n } = Ke(), { scrollbars: c } = n(), { slot: i } = c, { vt: d, ht: l, ot: u, Dt: p, gt: m, yt: v, nt: h } = e, { scrollbars: x } = p ? {} : t, { slot: y } = x || {}, b = /* @__PURE__ */ new Map(), A = (z) => Ts && new Ts({
920
920
  source: m,
921
921
  axis: z
922
922
  }), k = {
923
923
  x: A("x"),
924
924
  y: A("y")
925
- }, U = ko([d, l, u], () => p && v ? d : l, i, y), B = (z, q) => {
925
+ }, U = ko([d, l, u], () => h && v ? d : l, i, y), B = (z, q) => {
926
926
  if (q) {
927
927
  const Z = z ? bt : yt, { kt: ie, Mt: ye } = q, Se = At(ye)[Z], oe = At(ie)[Z];
928
928
  return Ds(0, 1, Se / oe || 0);
@@ -975,7 +975,7 @@ const Xr = () => {
975
975
  }) : M(z, (Z) => [Z.Mt, {
976
976
  transform: K(Z, kn(P, He(m))[C])
977
977
  }]);
978
- }, $ = (z) => p && !v && kt(z) === u, w = [], I = [], R = [], ne = (z, q, P) => {
978
+ }, $ = (z) => h && !v && kt(z) === u, w = [], I = [], R = [], ne = (z, q, P) => {
979
979
  const C = Kn(P), N = C ? P : !0, G = C ? !P : !0;
980
980
  N && O(I, z, q), G && O(R, z, q);
981
981
  }, ue = () => {
@@ -983,7 +983,7 @@ const Xr = () => {
983
983
  }, le = () => {
984
984
  H(I, !0), H(R);
985
985
  }, F = () => {
986
- if (p) {
986
+ if (h) {
987
987
  const { Rt: z, Pt: q } = s, P = wn(q), C = 0.5;
988
988
  if (k.x && k.y)
989
989
  ce(Qe(R, I), ({ Lt: N }) => {
@@ -1038,7 +1038,7 @@ const Xr = () => {
1038
1038
  }
1039
1039
  }, me];
1040
1040
  }, ua = (t, e, s, r) => (n, c, i, d) => {
1041
- const { ht: l, ot: u, nt: h, gt: m, Jt: v, Ot: p } = e, { Lt: x, kt: y, Mt: b } = n, [A, k] = mt(333), [U, B] = mt(444), [D, L] = mt(), V = J(i, [n], d), T = ($) => {
1041
+ const { ht: l, ot: u, nt: p, gt: m, Jt: v, Ot: h } = e, { Lt: x, kt: y, Mt: b } = n, [A, k] = mt(333), [U, B] = mt(444), [D, L] = mt(), V = J(i, [n], d), T = ($) => {
1042
1042
  Fe(m.scrollBy) && m.scrollBy({
1043
1043
  behavior: "smooth",
1044
1044
  left: $.x,
@@ -1057,7 +1057,7 @@ const Xr = () => {
1057
1057
  B();
1058
1058
  const C = !F && le.shiftKey, N = J(At, b), G = J(At, y), K = (_e, Me) => (_e || N())[I] - (Me || G())[I], Z = Cs(At(m)[O]) / Mt(m)[R] || 1, ie = ue(He(m)[ne], 1 / Z), ye = le[w], Se = N(), oe = G(), we = Se[O], Ee = K(Se, oe) + we / 2, Re = ye - oe[I], ke = F ? 0 : Re - Ee, De = (_e) => {
1059
1059
  Ie(Te), ee.releasePointerCapture(_e.pointerId);
1060
- }, be = () => p(Rr, !0), ge = be(), Te = [() => {
1060
+ }, be = () => h(Rr, !0), ge = be(), Te = [() => {
1061
1061
  const _e = He(m);
1062
1062
  ge();
1063
1063
  const Me = He(m), Le = {
@@ -1086,7 +1086,7 @@ const Xr = () => {
1086
1086
  c(An, !0);
1087
1087
  }), fe(x, "pointerleave pointercancel", () => {
1088
1088
  c(An, !1);
1089
- }), !h && fe(x, "mousedown", () => {
1089
+ }), !p && fe(x, "mousedown", () => {
1090
1090
  const $ = Os();
1091
1091
  (vn($, nt) || vn($, lt) || $ === document.body) && Qt(J(Is, u), 25);
1092
1092
  }), fe(x, "wheel", ($) => {
@@ -1117,8 +1117,8 @@ const Xr = () => {
1117
1117
  I: !0
1118
1118
  }), M(), k, B, L]);
1119
1119
  }, ma = (t, e, s, r, n, c) => {
1120
- let i, d, l, u, h, m = at, v = 0;
1121
- const p = (F) => F.pointerType === "mouse", [x, y] = mt(), [b, A] = mt(100), [k, U] = mt(100), [B, D] = mt(() => v), [L, V] = da(t, n, r, ua(e, n, r, (F) => p(F) && R())), { ht: T, Kt: O, yt: M } = n, { Bt: S, Ut: H, Nt: $, qt: w } = L, I = (F, ee) => {
1120
+ let i, d, l, u, p, m = at, v = 0;
1121
+ const h = (F) => F.pointerType === "mouse", [x, y] = mt(), [b, A] = mt(100), [k, U] = mt(100), [B, D] = mt(() => v), [L, V] = da(t, n, r, ua(e, n, r, (F) => h(F) && R())), { ht: T, Kt: O, yt: M } = n, { Bt: S, Ut: H, Nt: $, qt: w } = L, I = (F, ee) => {
1122
1122
  if (D(), F)
1123
1123
  S(Ln);
1124
1124
  else {
@@ -1132,20 +1132,20 @@ const Xr = () => {
1132
1132
  }, ne = (F) => {
1133
1133
  S(zs, F, !0), S(zs, F, !1);
1134
1134
  }, ue = (F) => {
1135
- p(F) && (i = l, l && I(!0));
1135
+ h(F) && (i = l, l && I(!0));
1136
1136
  }, le = [D, A, U, y, () => m(), fe(T, "pointerover", ue, {
1137
1137
  A: !0
1138
1138
  }), fe(T, "pointerenter", ue), fe(T, "pointerleave", (F) => {
1139
- p(F) && (i = !1, l && I(!1));
1139
+ h(F) && (i = !1, l && I(!1));
1140
1140
  }), fe(T, "pointermove", (F) => {
1141
- p(F) && d && R();
1141
+ h(F) && d && R();
1142
1142
  }), fe(O, "scroll", (F) => {
1143
1143
  x(() => {
1144
1144
  $(), R();
1145
1145
  }), c(F), w();
1146
1146
  })];
1147
1147
  return [() => J(Ie, xe(le, V())), ({ It: F, Tt: ee, Gt: te, Qt: X }) => {
1148
- const { Zt: me, tn: z, nn: q, sn: P } = X || {}, { Ct: C, dt: N } = te || {}, { ct: G } = s, { M: K } = Ke(), { G: Z, en: ie } = r, [ye, Se] = F("showNativeOverlaidScrollbars"), [oe, we] = F("scrollbars.theme"), [Ee, Re] = F("scrollbars.visibility"), [ke, De] = F("scrollbars.autoHide"), [be, ge] = F("scrollbars.autoHideSuspend"), [Te] = F("scrollbars.autoHideDelay"), [_e, Me] = F("scrollbars.dragScroll"), [Le, vt] = F("scrollbars.clickScroll"), [Bt, hs] = F("overflow"), ps = N && !ee, vs = ie.x || ie.y, Ne = me || z || P || C || ee, gs = q || Re || hs, Rt = ye && K.x && K.y, Ft = (tt, Et, Tt) => {
1148
+ const { Zt: me, tn: z, nn: q, sn: P } = X || {}, { Ct: C, dt: N } = te || {}, { ct: G } = s, { M: K } = Ke(), { G: Z, en: ie } = r, [ye, Se] = F("showNativeOverlaidScrollbars"), [oe, we] = F("scrollbars.theme"), [Ee, Re] = F("scrollbars.visibility"), [ke, De] = F("scrollbars.autoHide"), [be, ge] = F("scrollbars.autoHideSuspend"), [Te] = F("scrollbars.autoHideDelay"), [_e, Me] = F("scrollbars.dragScroll"), [Le, vt] = F("scrollbars.clickScroll"), [Bt, hs] = F("overflow"), ps = N && !ee, vs = ie.x || ie.y, Ue = me || z || P || C || ee, gs = q || Re || hs, Rt = ye && K.x && K.y, Ft = (tt, Et, Tt) => {
1149
1149
  const It = tt.includes(wt) && (Ee === ot || Ee === "auto" && Et === wt);
1150
1150
  return S(Gr, It, Tt), It;
1151
1151
  };
@@ -1153,14 +1153,14 @@ const Xr = () => {
1153
1153
  m = fe(O, "scroll", J(ne, !0), {
1154
1154
  A: !0
1155
1155
  });
1156
- })) : ne(!0)), Se && S(zr, Rt), we && (S(h), S(oe, !0), h = oe), ge && !be && ne(!0), De && (d = ke === "move", l = ke === "leave", u = ke === "never", I(u, !0)), Me && S(Yr, _e), vt && S(Wr, Le), gs) {
1156
+ })) : ne(!0)), Se && S(zr, Rt), we && (S(p), S(oe, !0), p = oe), ge && !be && ne(!0), De && (d = ke === "move", l = ke === "leave", u = ke === "never", I(u, !0)), Me && S(Yr, _e), vt && S(Wr, Le), gs) {
1157
1157
  const tt = Ft(Bt.x, Z.x, !0), Et = Ft(Bt.y, Z.y, !1);
1158
1158
  S(Kr, !(tt && Et));
1159
1159
  }
1160
- Ne && (H(), $(), w(), S(Dn, !ie.x, !0), S(Dn, !ie.y, !1), S(jr, G && !M));
1160
+ Ue && (H(), $(), w(), S(Dn, !ie.x, !0), S(Dn, !ie.y, !1), S(jr, G && !M));
1161
1161
  }, {}, L];
1162
1162
  }, fa = (t) => {
1163
- const e = Ke(), { P: s, R: r } = e, { elements: n } = s(), { host: c, padding: i, viewport: d, content: l } = n, u = ts(t), h = u ? {} : t, { elements: m } = h, { host: v, padding: p, viewport: x, content: y } = m || {}, b = u ? t : h.target, A = co(b), k = ss(b, "textarea"), U = b.ownerDocument, B = U.documentElement, D = () => U.defaultView || Ae, L = J(Jr, [b]), V = J(ko, [b]), T = J(xt, ""), O = J(L, T, d), M = J(V, T, l), S = O(x), H = S === b, $ = H && A, w = !H && M(y), I = !H && S === w, R = $ ? B : S, ne = k ? L(T, c, v) : b, ue = $ ? R : ne, le = !H && V(T, i, p), F = !I && w, ee = [F, R, le, ue].map((oe) => ts(oe) && !kt(oe) && oe), te = (oe) => oe && Ws(ee, oe), X = te(R) ? b : R, me = {
1163
+ const e = Ke(), { P: s, R: r } = e, { elements: n } = s(), { host: c, padding: i, viewport: d, content: l } = n, u = ts(t), p = u ? {} : t, { elements: m } = p, { host: v, padding: h, viewport: x, content: y } = m || {}, b = u ? t : p.target, A = co(b), k = ss(b, "textarea"), U = b.ownerDocument, B = U.documentElement, D = () => U.defaultView || Ae, L = J(Jr, [b]), V = J(ko, [b]), T = J(xt, ""), O = J(L, T, d), M = J(V, T, l), S = O(x), H = S === b, $ = H && A, w = !H && M(y), I = !H && S === w, R = $ ? B : S, ne = k ? L(T, c, v) : b, ue = $ ? R : ne, le = !H && V(T, i, h), F = !I && w, ee = [F, R, le, ue].map((oe) => ts(oe) && !kt(oe) && oe), te = (oe) => oe && Ws(ee, oe), X = te(R) ? b : R, me = {
1164
1164
  vt: b,
1165
1165
  ht: ue,
1166
1166
  ot: R,
@@ -1178,7 +1178,7 @@ const Xr = () => {
1178
1178
  St: (oe) => Qs(R, nt, oe),
1179
1179
  Ot: (oe, we) => Ls(R, nt, oe, we)
1180
1180
  }, { vt: z, ht: q, cn: P, ot: C, bt: N } = me, G = [() => {
1181
- Ue(q, [lt, ys]), Ue(z, ys), A && Ue(B, [ys, lt]);
1181
+ ze(q, [lt, ys]), ze(z, ys), A && ze(B, [ys, lt]);
1182
1182
  }], K = k && te(q);
1183
1183
  let Z = k ? z : Vs([N, C, P, q, z].find((oe) => oe && !te(oe)));
1184
1184
  const ie = $ ? z : N || C, ye = J(Ie, G);
@@ -1193,8 +1193,8 @@ const Xr = () => {
1193
1193
  gn(q, z), it(q);
1194
1194
  })), Oe(ie, Z), Oe(q, P), Oe(P || q, !H && C), Oe(C, N), xe(G, [be, () => {
1195
1195
  const ge = Os(), Te = te(C), _e = Te && ge === C ? z : ge, Me = Re(_e);
1196
- Ue(P, Us), Ue(N, Mn), Ue(C, nt), A && Ue(B, Tn), De ? Je(C, ke, De) : Ue(C, ke), te(N) && Ee(N), Te && Ee(C), te(P) && Ee(P), Is(_e), Me();
1197
- }]), r && !H && (Js(C, nt, bo), xe(G, J(Ue, C, nt))), Is(!H && A && we === z && oe.top === oe ? C : we), be(), Z = 0, ye;
1196
+ ze(P, Us), ze(N, Mn), ze(C, nt), A && ze(B, Tn), De ? Je(C, ke, De) : ze(C, ke), te(N) && Ee(N), Te && Ee(C), te(P) && Ee(P), Is(_e), Me();
1197
+ }]), r && !H && (Js(C, nt, bo), xe(G, J(ze, C, nt))), Is(!H && A && we === z && oe.top === oe ? C : we), be(), Z = 0, ye;
1198
1198
  }, ye];
1199
1199
  }, ha = ({ bt: t }) => ({ Gt: e, an: s, Tt: r }) => {
1200
1200
  const { xt: n } = e || {}, { $t: c } = s;
@@ -1206,13 +1206,13 @@ const Xr = () => {
1206
1206
  i: kr,
1207
1207
  o: bn()
1208
1208
  }, J(bn, t, "padding", ""));
1209
- return ({ It: d, Gt: l, an: u, Tt: h }) => {
1210
- let [m, v] = i(h);
1211
- const { R: p } = Ke(), { ft: x, Ht: y, Ct: b } = l || {}, { ct: A } = u, [k, U] = d("paddingAbsolute");
1212
- (x || v || (h || y)) && ([m, v] = c(h));
1209
+ return ({ It: d, Gt: l, an: u, Tt: p }) => {
1210
+ let [m, v] = i(p);
1211
+ const { R: h } = Ke(), { ft: x, Ht: y, Ct: b } = l || {}, { ct: A } = u, [k, U] = d("paddingAbsolute");
1212
+ (x || v || (p || y)) && ([m, v] = c(p));
1213
1213
  const D = !r && (U || b || v);
1214
1214
  if (D) {
1215
- const L = !k || !e && !p, V = m.r + m.l, T = m.t + m.b, O = {
1215
+ const L = !k || !e && !h, V = m.r + m.l, T = m.t + m.b, O = {
1216
1216
  [eo]: L && !A ? -V : 0,
1217
1217
  [to]: L ? -T : 0,
1218
1218
  [Zn]: L && A ? -V : 0,
@@ -1237,7 +1237,7 @@ const Xr = () => {
1237
1237
  };
1238
1238
  };
1239
1239
  }, va = (t, e) => {
1240
- const s = Ke(), { ht: r, cn: n, ot: c, nt: i, Kt: d, gt: l, yt: u, Ot: h, ln: m } = t, { R: v } = s, p = u && i, x = J(Pn, 0), y = ["display", "direction", "flexDirection", "writingMode"], b = {
1240
+ const s = Ke(), { ht: r, cn: n, ot: c, nt: i, Kt: d, gt: l, yt: u, Ot: p, ln: m } = t, { R: v } = s, h = u && i, x = J(Pn, 0), y = ["display", "direction", "flexDirection", "writingMode"], b = {
1241
1241
  i: so,
1242
1242
  o: {
1243
1243
  w: 0,
@@ -1247,7 +1247,7 @@ const Xr = () => {
1247
1247
  i: Wt,
1248
1248
  o: {}
1249
1249
  }, k = (F) => {
1250
- h(xo, !p && F);
1250
+ p(xo, !h && F);
1251
1251
  }, U = (F, ee) => {
1252
1252
  const te = Ae.devicePixelRatio % 1 !== 0 ? 1 : 0, X = {
1253
1253
  w: x(F.w - ee.w),
@@ -1265,7 +1265,7 @@ const Xr = () => {
1265
1265
  o: go()
1266
1266
  }, () => {
1267
1267
  k(!0);
1268
- const F = He(l), ee = h(Fr, !0), te = fe(d, wt, (P) => {
1268
+ const F = He(l), ee = p(Fr, !0), te = fe(d, wt, (P) => {
1269
1269
  const C = He(l);
1270
1270
  P.isTrusted && C.x === F.x && C.y === F.y && po(P);
1271
1271
  }, {
@@ -1293,14 +1293,14 @@ const Xr = () => {
1293
1293
  };
1294
1294
  }), ne = Ht(To), ue = (F, ee) => `${ee ? Or : Hr}${wr(F)}`, le = (F) => {
1295
1295
  const ee = (X) => [ot, ut, wt].map((me) => ue(me, X)), te = ee(!0).concat(ee()).join(" ");
1296
- h(te), h(et(F).map((X) => ue(F[X], X === "x")).join(" "), !0);
1296
+ p(te), p(et(F).map((X) => ue(F[X], X === "x")).join(" "), !0);
1297
1297
  };
1298
1298
  return ({ It: F, Gt: ee, an: te, Tt: X }, { _n: me }) => {
1299
1299
  const { ft: z, Ht: q, Ct: P, dt: C, zt: N } = ee || {}, G = ne && ne.tt(t, e, te, s, F), { it: K, ut: Z, _t: ie } = G || {}, [ye, Se] = ra(F, s), [oe, we] = F("overflow"), Ee = ns(oe.x), Re = ns(oe.y), ke = z || me || q || P || N || Se;
1300
1300
  let De = D(X), be = V(X), ge = O(X), Te = H(X);
1301
- if (Se && v && h(bo, !ye), ke) {
1301
+ if (Se && v && p(bo, !ye), ke) {
1302
1302
  Qs(r, lt, Xt) && k(!0);
1303
- const [dn] = Z ? Z() : [], [Nt] = De = B(X), [Ut] = be = L(X), zt = fo(c), jt = p && Mr(m()), qo = {
1303
+ const [dn] = Z ? Z() : [], [Nt] = De = B(X), [Ut] = be = L(X), zt = fo(c), jt = h && Mr(m()), qo = {
1304
1304
  w: x(Ut.w + Nt.w),
1305
1305
  h: x(Ut.h + Nt.h)
1306
1306
  }, un = {
@@ -1309,10 +1309,10 @@ const Xr = () => {
1309
1309
  };
1310
1310
  dn && dn(), Te = S(un), ge = T(U(qo, un), X);
1311
1311
  }
1312
- const [_e, Me] = Te, [Le, vt] = ge, [Bt, hs] = be, [ps, vs] = De, [Ne, gs] = M({
1312
+ const [_e, Me] = Te, [Le, vt] = ge, [Bt, hs] = be, [ps, vs] = De, [Ue, gs] = M({
1313
1313
  x: Le.w > 0,
1314
1314
  y: Le.h > 0
1315
- }), Rt = Ee && Re && (Ne.x || Ne.y) || Ee && Ne.x && !Ne.y || Re && Ne.y && !Ne.x, Ft = me || P || N || vs || hs || Me || vt || we || Se || ke, tt = aa(Ne, oe), [Et, Tt] = $(tt.G), [, It] = w(X), cn = P || C || It || gs || X, [jo, Po] = cn ? I(X) : R();
1315
+ }), Rt = Ee && Re && (Ue.x || Ue.y) || Ee && Ue.x && !Ue.y || Re && Ue.y && !Ue.x, Ft = me || P || N || vs || hs || Me || vt || we || Se || ke, tt = aa(Ue, oe), [Et, Tt] = $(tt.G), [, It] = w(X), cn = P || C || It || gs || X, [jo, Po] = cn ? I(X) : R();
1316
1316
  return Ft && (Tt && le(tt.G), ie && K && Vt(c, ie(tt, te, K(tt, Bt, ps)))), k(!1), Ls(r, lt, Xt, Rt), Ls(n, Us, Xt, Rt), re(e, {
1317
1317
  G: Et,
1318
1318
  Vt: {
@@ -1323,7 +1323,7 @@ const Xr = () => {
1323
1323
  x: Le.w,
1324
1324
  y: Le.h
1325
1325
  },
1326
- en: Ne,
1326
+ en: Ue,
1327
1327
  Pt: Dr(jo, Le)
1328
1328
  }), {
1329
1329
  nn: Tt,
@@ -1368,17 +1368,17 @@ const Xr = () => {
1368
1368
  y: !1
1369
1369
  },
1370
1370
  Pt: go()
1371
- }, { vt: c, gt: i, nt: d } = e, { R: l, M: u } = Ke(), h = !l && (u.x || u.y), m = [ha(e), pa(e, n), va(e, n)];
1371
+ }, { vt: c, gt: i, nt: d } = e, { R: l, M: u } = Ke(), p = !l && (u.x || u.y), m = [ha(e), pa(e, n), va(e, n)];
1372
1372
  return [s, (v) => {
1373
- const p = {}, y = h && He(i);
1373
+ const h = {}, y = p && He(i);
1374
1374
  return ce(m, (b) => {
1375
- re(p, b(v, p) || {});
1376
- }), Pe(i, y), !d && Pe(c, 0), p;
1375
+ re(h, b(v, h) || {});
1376
+ }), Pe(i, y), !d && Pe(c, 0), h;
1377
1377
  }, n, e, r];
1378
1378
  }, _a = (t, e, s, r, n) => {
1379
- const c = En(e, {}), [i, d, l, u, h] = ga(t), [m, v, p] = ca(u, l, c, (U) => {
1379
+ const c = En(e, {}), [i, d, l, u, p] = ga(t), [m, v, h] = ca(u, l, c, (U) => {
1380
1380
  k({}, U);
1381
- }), [x, y, , b] = ma(t, e, p, l, u, n), A = (U) => et(U).some((B) => !!U[B]), k = (U, B) => {
1381
+ }), [x, y, , b] = ma(t, e, h, l, u, n), A = (U) => et(U).some((B) => !!U[B]), k = (U, B) => {
1382
1382
  if (s())
1383
1383
  return !1;
1384
1384
  const { fn: D, Tt: L, At: V, pn: T } = U, O = D || {}, M = !!L, S = {
@@ -1391,7 +1391,7 @@ const Xr = () => {
1391
1391
  const H = B || v(re({}, S, {
1392
1392
  At: V
1393
1393
  })), $ = d(re({}, S, {
1394
- an: p,
1394
+ an: h,
1395
1395
  Gt: H
1396
1396
  }));
1397
1397
  y(re({}, S, {
@@ -1408,20 +1408,20 @@ const Xr = () => {
1408
1408
  const { rn: U, gt: B } = u, D = He(U), L = [m(), i(), x()];
1409
1409
  return Pe(B, D), J(Ie, L);
1410
1410
  }, k, () => ({
1411
- vn: p,
1411
+ vn: h,
1412
1412
  hn: l
1413
1413
  }), {
1414
1414
  gn: u,
1415
1415
  bn: b
1416
- }, h];
1416
+ }, p];
1417
1417
  }, ct = (t, e, s) => {
1418
1418
  const { N: r } = Ke(), n = ts(t), c = n ? t : t.target, i = $o(c);
1419
1419
  if (e && !i) {
1420
1420
  let d = !1;
1421
- const l = [], u = {}, h = (M) => {
1421
+ const l = [], u = {}, p = (M) => {
1422
1422
  const S = oo(M), H = Ht(na);
1423
1423
  return H ? H(S, !0) : S;
1424
- }, m = re({}, r(), h(e)), [v, p, x] = Ns(), [y, b, A] = Ns(s), k = (M, S) => {
1424
+ }, m = re({}, r(), p(e)), [v, h, x] = Ns(), [y, b, A] = Ns(s), k = (M, S) => {
1425
1425
  A(M, S), x(M, S);
1426
1426
  }, [U, B, D, L, V] = _a(t, m, () => d, ({ fn: M, Tt: S }, { Gt: H, Qt: $ }) => {
1427
1427
  const { ft: w, Ct: I, xt: R, Ht: ne, Et: ue, dt: le } = H, { Zt: F, tn: ee, nn: te, sn: X } = $;
@@ -1442,11 +1442,11 @@ const Xr = () => {
1442
1442
  force: !!S
1443
1443
  }]);
1444
1444
  }, (M) => k("scroll", [O, M])), T = (M) => {
1445
- ea(c), Ie(l), d = !0, k("destroyed", [O, M]), p(), b();
1445
+ ea(c), Ie(l), d = !0, k("destroyed", [O, M]), h(), b();
1446
1446
  }, O = {
1447
1447
  options(M, S) {
1448
1448
  if (M) {
1449
- const H = S ? r() : {}, $ = _o(m, re(H, h(M)));
1449
+ const H = S ? r() : {}, $ = _o(m, re(H, p(M)));
1450
1450
  Ys($) || (re(m, $), B({
1451
1451
  fn: $
1452
1452
  }));
@@ -1541,8 +1541,8 @@ ct.env = () => {
1541
1541
  };
1542
1542
  function xa() {
1543
1543
  let t;
1544
- const e = E(null), s = Math.floor(Math.random() * 2 ** 32), r = E(!1), n = E([]), c = () => n.value, i = () => t.getSelection(), d = () => n.value.length, l = () => t.clearSelection(!0), u = E(), h = E(null), m = E(null), v = E(null);
1545
- function p() {
1544
+ const e = E(null), s = Math.floor(Math.random() * 2 ** 32), r = E(!1), n = E([]), c = () => n.value, i = () => t.getSelection(), d = () => n.value.length, l = () => t.clearSelection(!0), u = E(), p = E(null), m = E(null), v = E(null);
1545
+ function h() {
1546
1546
  t = new nr({
1547
1547
  area: e.value,
1548
1548
  keyboardDrag: !1,
@@ -1578,11 +1578,11 @@ function xa() {
1578
1578
  n.value = D.map((T) => JSON.parse(T.dataset.item)), B(D.map((T) => JSON.parse(T.dataset.item)));
1579
1579
  });
1580
1580
  }, k = () => {
1581
- h.value && (e.value.getBoundingClientRect().height < e.value.scrollHeight ? (m.value.style.height = e.value.scrollHeight + "px", m.value.style.display = "block") : (m.value.style.height = "100%", m.value.style.display = "none"));
1581
+ p.value && (e.value.getBoundingClientRect().height < e.value.scrollHeight ? (m.value.style.height = e.value.scrollHeight + "px", m.value.style.display = "block") : (m.value.style.height = "100%", m.value.style.display = "none"));
1582
1582
  }, U = (B) => {
1583
- if (!h.value)
1583
+ if (!p.value)
1584
1584
  return;
1585
- const { scrollOffsetElement: D } = h.value.elements();
1585
+ const { scrollOffsetElement: D } = p.value.elements();
1586
1586
  D.scrollTo(
1587
1587
  {
1588
1588
  top: e.value.scrollTop,
@@ -1603,7 +1603,7 @@ function xa() {
1603
1603
  }
1604
1604
  }, {
1605
1605
  initialized: (B) => {
1606
- h.value = B;
1606
+ p.value = B;
1607
1607
  },
1608
1608
  scroll: (B, D) => {
1609
1609
  const { scrollOffsetElement: L } = B.elements();
@@ -1612,7 +1612,7 @@ function xa() {
1612
1612
  left: 0
1613
1613
  });
1614
1614
  }
1615
- }), p(), k(), new ResizeObserver(k).observe(e.value), e.value.addEventListener("scroll", U), t.subscribe("DS:scroll", ({ isDragging: B }) => B || U());
1615
+ }), h(), k(), new ResizeObserver(k).observe(e.value), e.value.addEventListener("scroll", U), t.subscribe("DS:scroll", ({ isDragging: B }) => B || U());
1616
1616
  }), qs(() => {
1617
1617
  t && t.stop();
1618
1618
  }), Rn(() => {
@@ -1634,7 +1634,7 @@ function xa() {
1634
1634
  }
1635
1635
  function ba(t, e) {
1636
1636
  const s = E(t), r = E(e), n = E([]), c = E([]), i = E([]), d = E(!1), l = E(5);
1637
- let u = !1, h = !1;
1637
+ let u = !1, p = !1;
1638
1638
  const m = Ot({
1639
1639
  adapter: s,
1640
1640
  storages: [],
@@ -1654,7 +1654,7 @@ function ba(t, e) {
1654
1654
  const [D, L] = x(U, l.value);
1655
1655
  i.value = L, n.value = D;
1656
1656
  }
1657
- function p(k) {
1657
+ function h(k) {
1658
1658
  l.value = k, v();
1659
1659
  }
1660
1660
  function x(k, U) {
@@ -1664,22 +1664,22 @@ function ba(t, e) {
1664
1664
  d.value = k ?? !d.value;
1665
1665
  }
1666
1666
  function b() {
1667
- return n.value && n.value.length && !h;
1667
+ return n.value && n.value.length && !p;
1668
1668
  }
1669
1669
  const A = Ze(() => {
1670
1670
  var k;
1671
1671
  return ((k = n.value[n.value.length - 2]) == null ? void 0 : k.path) ?? s.value + "://";
1672
1672
  });
1673
1673
  return Ce(() => {
1674
- }), ze(r, v), Ce(v), {
1674
+ }), Ne(r, v), Ce(v), {
1675
1675
  adapter: s,
1676
1676
  path: r,
1677
1677
  loading: u,
1678
- searchMode: h,
1678
+ searchMode: p,
1679
1679
  data: m,
1680
1680
  breadcrumbs: n,
1681
1681
  breadcrumbItems: c,
1682
- limitBreadcrumbItems: p,
1682
+ limitBreadcrumbItems: h,
1683
1683
  hiddenBreadcrumbs: i,
1684
1684
  showHiddenBreadcrumbs: d,
1685
1685
  toggleHiddenBreadcrumbs: y,
@@ -1688,7 +1688,7 @@ function ba(t, e) {
1688
1688
  };
1689
1689
  }
1690
1690
  const ya = (t, e) => {
1691
- const s = dr(t.id), r = sr(), n = s.getStore("metricUnits", !1), c = vr(s, t.theme), i = e.i18n, d = t.locale ?? e.locale, l = s.getStore("adapter"), u = (v) => Array.isArray(v) ? v : fr, h = s.getStore("persist-path", t.persist), m = h ? s.getStore("path", t.path) : t.path;
1691
+ const s = dr(t.id), r = sr(), n = s.getStore("metricUnits", !1), c = vr(s, t.theme), i = e.i18n, d = t.locale ?? e.locale, l = s.getStore("adapter"), u = (v) => Array.isArray(v) ? v : fr, p = s.getStore("persist-path", t.persist), m = p ? s.getStore("path", t.path) : t.path;
1692
1692
  return Ot({
1693
1693
  /**
1694
1694
  * Core properties
@@ -1739,7 +1739,7 @@ const ya = (t, e) => {
1739
1739
  // show large icons in list view
1740
1740
  compactListView: s.getStore("compact-list-view", !0),
1741
1741
  // persist state
1742
- persist: h,
1742
+ persist: p,
1743
1743
  // show thumbnails
1744
1744
  showThumbnails: s.getStore("show-thumbnails", t.showThumbnails),
1745
1745
  // file system
@@ -1927,13 +1927,13 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
1927
1927
  { name: n("Settings"), key: d.SETTINGS },
1928
1928
  { name: n("Shortcuts"), key: d.SHORTCUTS },
1929
1929
  { name: n("Reset"), key: d.RESET }
1930
- ]), u = E("about"), h = async () => {
1930
+ ]), u = E("about"), p = async () => {
1931
1931
  r(), location.reload();
1932
1932
  }, m = (B) => {
1933
1933
  e.theme.set(B), e.emitter.emit("vf-theme-saved");
1934
1934
  }, v = () => {
1935
1935
  e.metricUnits = !e.metricUnits, e.filesize = e.metricUnits ? zn : Un, s("metricUnits", e.metricUnits), e.emitter.emit("vf-metric-units-saved");
1936
- }, p = () => {
1936
+ }, h = () => {
1937
1937
  e.compactListView = !e.compactListView, s("compactListView", e.compactListView), e.emitter.emit("vf-compact-view-saved");
1938
1938
  }, x = () => {
1939
1939
  e.showThumbnails = !e.showThumbnails, s("show-thumbnails", e.showThumbnails), e.emitter.emit("vf-show-thumbnails-saved");
@@ -2028,7 +2028,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2028
2028
  name: "large_icons",
2029
2029
  type: "checkbox",
2030
2030
  "onUpdate:modelValue": D[1] || (D[1] = (L) => a(e).compactListView = L),
2031
- onClick: p,
2031
+ onClick: h,
2032
2032
  class: "h-4 w-4 rounded border-gray-300 text-indigo-600 dark:accent-slate-400 focus:ring-indigo-600"
2033
2033
  }, null, 512), [
2034
2034
  [Pt, a(e).compactListView]
@@ -2212,7 +2212,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2212
2212
  u.value === d.RESET ? (f(), g("div", Fl, [
2213
2213
  o("div", Il, _(a(n)("Reset all settings to default")), 1),
2214
2214
  o("button", {
2215
- onClick: h,
2215
+ onClick: p,
2216
2216
  type: "button",
2217
2217
  class: "vf-btn vf-btn-secondary"
2218
2218
  }, _(a(n)("Reset Settings")), 1)
@@ -2250,18 +2250,18 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2250
2250
  setup(t, { emit: e }) {
2251
2251
  var u;
2252
2252
  const s = e, r = ae("ServiceContainer"), { t: n } = r.i18n, c = E(!1), i = E(null), d = E((u = i.value) == null ? void 0 : u.strMessage);
2253
- ze(d, () => c.value = !1);
2253
+ Ne(d, () => c.value = !1);
2254
2254
  const l = () => {
2255
2255
  s("hidden"), c.value = !0;
2256
2256
  };
2257
- return (h, m) => (f(), g("div", null, [
2257
+ return (p, m) => (f(), g("div", null, [
2258
2258
  c.value ? j("", !0) : (f(), g("div", {
2259
2259
  key: 0,
2260
2260
  ref_key: "strMessage",
2261
2261
  ref: i,
2262
2262
  class: de(["flex mt-2 p-1 px-2 rounded text-sm break-all dark:opacity-75", t.error ? "bg-red-100 text-red-600 " : "bg-emerald-100 text-emerald-600"])
2263
2263
  }, [
2264
- Dt(h.$slots, "default"),
2264
+ Dt(p.$slots, "default"),
2265
2265
  o("div", {
2266
2266
  class: "ml-auto cursor-pointer",
2267
2267
  onClick: l,
@@ -2759,7 +2759,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2759
2759
  UPLOADING: 2,
2760
2760
  ERROR: 3,
2761
2761
  DONE: 10
2762
- }, c = E({ QUEUE_ENTRY_STATUS: n }), i = E(null), d = E(null), l = E(null), u = E(null), h = E(null), m = E(null), v = E([]), p = E(""), x = E(!1), y = E(!1);
2762
+ }, c = E({ QUEUE_ENTRY_STATUS: n }), i = E(null), d = E(null), l = E(null), u = E(null), p = E(null), m = E(null), v = E([]), h = E(""), x = E(!1), y = E(!1);
2763
2763
  let b;
2764
2764
  function A(H) {
2765
2765
  return v.value.findIndex(($) => $.id === H);
@@ -2803,10 +2803,10 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2803
2803
  function L() {
2804
2804
  if (!x.value) {
2805
2805
  if (!v.value.filter((H) => H.status !== n.DONE).length) {
2806
- p.value = s("Please select file to upload first.");
2806
+ h.value = s("Please select file to upload first.");
2807
2807
  return;
2808
2808
  }
2809
- p.value = "", b.retryAll(), b.upload();
2809
+ h.value = "", b.retryAll(), b.upload();
2810
2810
  }
2811
2811
  }
2812
2812
  function V() {
@@ -2853,7 +2853,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2853
2853
  onBeforeFileAdded(w, I) {
2854
2854
  if (I[w.id] != null) {
2855
2855
  const ne = A(w.id);
2856
- v.value[ne].status === n.PENDING && (p.value = b.i18n("noDuplicates", { fileName: w.name })), v.value = v.value.filter((ue) => ue.id !== w.id);
2856
+ v.value[ne].status === n.PENDING && (h.value = b.i18n("noDuplicates", { fileName: w.name })), v.value = v.value.filter((ue) => ue.id !== w.id);
2857
2857
  }
2858
2858
  return v.value.push({
2859
2859
  id: w.id,
@@ -2880,7 +2880,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2880
2880
  }
2881
2881
  }), b.on("restriction-failed", (w, I) => {
2882
2882
  const R = v.value[A(w.id)];
2883
- T(R), p.value = I.message;
2883
+ T(R), h.value = I.message;
2884
2884
  }), b.on("upload", () => {
2885
2885
  const w = S();
2886
2886
  b.setMeta({ ...w.body });
@@ -2898,7 +2898,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2898
2898
  const R = v.value[A(w.id)];
2899
2899
  R.percent = null, R.status = n.ERROR, I.isNetworkError ? R.statusName = s("Network Error, Unable establish connection to the server or interrupted.") : R.statusName = I ? I.message : s("Unknown Error");
2900
2900
  }), b.on("error", (w) => {
2901
- p.value = w.message, x.value = !1, e.emitter.emit("vf-fetch", {
2901
+ h.value = w.message, x.value = !1, e.emitter.emit("vf-fetch", {
2902
2902
  params: { q: "index", adapter: e.fs.adapter, path: e.fs.data.dirname },
2903
2903
  noCloseModal: !0
2904
2904
  });
@@ -2909,7 +2909,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2909
2909
  });
2910
2910
  }), u.value.addEventListener("click", () => {
2911
2911
  d.value.click();
2912
- }), h.value.addEventListener("click", () => {
2912
+ }), p.value.addEventListener("click", () => {
2913
2913
  l.value.click();
2914
2914
  }), m.value.addEventListener("dragover", (w) => {
2915
2915
  w.preventDefault(), y.value = !0;
@@ -2989,7 +2989,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2989
2989
  }, _(a(s)("Select Files")), 513),
2990
2990
  o("button", {
2991
2991
  ref_key: "pickFolders",
2992
- ref: h,
2992
+ ref: p,
2993
2993
  type: "button",
2994
2994
  class: "vf-btn vf-btn-secondary"
2995
2995
  }, _(a(s)("Select Folders")), 513),
@@ -3037,13 +3037,13 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
3037
3037
  ]))), 128)),
3038
3038
  v.value.length ? j("", !0) : (f(), g("div", Zi, _(a(s)("No files selected!")), 1))
3039
3039
  ]),
3040
- p.value.length ? (f(), W(Ye, {
3040
+ h.value.length ? (f(), W(Ye, {
3041
3041
  key: 0,
3042
- onHidden: $[2] || ($[2] = (w) => p.value = ""),
3042
+ onHidden: $[2] || ($[2] = (w) => h.value = ""),
3043
3043
  error: ""
3044
3044
  }, {
3045
3045
  default: se(() => [
3046
- Q(_(p.value), 1)
3046
+ Q(_(h.value), 1)
3047
3047
  ]),
3048
3048
  _: 1
3049
3049
  })) : j("", !0)
@@ -3472,7 +3472,7 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
3472
3472
  const i = () => {
3473
3473
  e.fullScreen = !e.fullScreen;
3474
3474
  };
3475
- ze(() => e.fullScreen, () => {
3475
+ Ne(() => e.fullScreen, () => {
3476
3476
  e.fullScreen ? document.querySelector("body").style.overflow = "hidden" : document.querySelector("body").style.overflow = "", s("full-screen", e.fullScreen), e.emitter.emit("vf-fullscreen-toggle");
3477
3477
  });
3478
3478
  const d = () => {
@@ -3490,7 +3490,7 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
3490
3490
  key: 0,
3491
3491
  class: "mx-1.5",
3492
3492
  title: a(r)("New Folder"),
3493
- onClick: u[0] || (u[0] = (h) => a(e).modal.open(Do, { items: a(n).getSelected() }))
3493
+ onClick: u[0] || (u[0] = (p) => a(e).modal.open(Do, { items: a(n).getSelected() }))
3494
3494
  }, [
3495
3495
  Y(a(Hc))
3496
3496
  ], 8, Id)) : j("", !0),
@@ -3498,7 +3498,7 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
3498
3498
  key: 1,
3499
3499
  class: "mx-1.5",
3500
3500
  title: a(r)("New File"),
3501
- onClick: u[1] || (u[1] = (h) => a(e).modal.open(Vi, { items: a(n).getSelected() }))
3501
+ onClick: u[1] || (u[1] = (p) => a(e).modal.open(Vi, { items: a(n).getSelected() }))
3502
3502
  }, [
3503
3503
  Y(a(Nc))
3504
3504
  ], 8, Nd)) : j("", !0),
@@ -3506,7 +3506,7 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
3506
3506
  key: 2,
3507
3507
  class: "mx-1.5",
3508
3508
  title: a(r)("Rename"),
3509
- onClick: u[2] || (u[2] = (h) => a(n).getCount() !== 1 || a(e).modal.open(an, { items: a(n).getSelected() }))
3509
+ onClick: u[2] || (u[2] = (p) => a(n).getCount() !== 1 || a(e).modal.open(an, { items: a(n).getSelected() }))
3510
3510
  }, [
3511
3511
  Y(a(qc), {
3512
3512
  class: de(a(n).getCount() === 1 ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
@@ -3516,7 +3516,7 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
3516
3516
  key: 3,
3517
3517
  class: "mx-1.5",
3518
3518
  title: a(r)("Delete"),
3519
- onClick: u[3] || (u[3] = (h) => !a(n).getCount() || a(e).modal.open(rn, { items: a(n).getSelected() }))
3519
+ onClick: u[3] || (u[3] = (p) => !a(n).getCount() || a(e).modal.open(rn, { items: a(n).getSelected() }))
3520
3520
  }, [
3521
3521
  Y(a(Xc), {
3522
3522
  class: de(a(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
@@ -3526,7 +3526,7 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
3526
3526
  key: 4,
3527
3527
  class: "mx-1.5",
3528
3528
  title: a(r)("Upload"),
3529
- onClick: u[4] || (u[4] = (h) => a(e).modal.open(tc, { items: a(n).getSelected() }))
3529
+ onClick: u[4] || (u[4] = (p) => a(e).modal.open(tc, { items: a(n).getSelected() }))
3530
3530
  }, [
3531
3531
  Y(a(td))
3532
3532
  ], 8, jd)) : j("", !0),
@@ -3534,7 +3534,7 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
3534
3534
  key: 5,
3535
3535
  class: "mx-1.5",
3536
3536
  title: a(r)("Unarchive"),
3537
- onClick: u[5] || (u[5] = (h) => !a(n).getCount() || a(e).modal.open(Lo, { items: a(n).getSelected() }))
3537
+ onClick: u[5] || (u[5] = (p) => !a(n).getCount() || a(e).modal.open(Lo, { items: a(n).getSelected() }))
3538
3538
  }, [
3539
3539
  Y(a(ud), {
3540
3540
  class: de(a(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
@@ -3544,7 +3544,7 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
3544
3544
  key: 6,
3545
3545
  class: "mx-1.5",
3546
3546
  title: a(r)("Archive"),
3547
- onClick: u[6] || (u[6] = (h) => !a(n).getCount() || a(e).modal.open(Vo, { items: a(n).getSelected() }))
3547
+ onClick: u[6] || (u[6] = (p) => !a(n).getCount() || a(e).modal.open(Vo, { items: a(n).getSelected() }))
3548
3548
  }, [
3549
3549
  Y(a(ad), {
3550
3550
  class: de(a(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
@@ -3563,7 +3563,7 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
3563
3563
  o("div", {
3564
3564
  class: "mx-1.5",
3565
3565
  title: a(r)("Change View"),
3566
- onClick: u[7] || (u[7] = (h) => c.value.length || d())
3566
+ onClick: u[7] || (u[7] = (p) => c.value.length || d())
3567
3567
  }, [
3568
3568
  a(e).view === "grid" ? (f(), W(a(Dd), {
3569
3569
  key: 0,
@@ -3868,7 +3868,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
3868
3868
  __name: "Breadcrumb",
3869
3869
  setup(t) {
3870
3870
  const e = ae("ServiceContainer"), { t: s } = e.i18n, r = e.dragSelect, { setStore: n } = e.storage, c = E(null), i = Hn(0, 100);
3871
- ze(i, (V) => {
3871
+ Ne(i, (V) => {
3872
3872
  const T = c.value.children;
3873
3873
  let O = 0, M = 0, S = 5, H = 1;
3874
3874
  e.fs.limitBreadcrumbItems(S), ft(() => {
@@ -3909,13 +3909,13 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
3909
3909
  to: e.fs.breadcrumbs[T] ?? { path: e.fs.adapter + "://" }
3910
3910
  }
3911
3911
  });
3912
- }, h = (V) => {
3912
+ }, p = (V) => {
3913
3913
  V.preventDefault(), e.fs.isGoUpAvailable() ? (V.dataTransfer.dropEffect = "copy", V.currentTarget.classList.add("bg-blue-200", "dark:bg-slate-600")) : (V.dataTransfer.dropEffect = "none", V.dataTransfer.effectAllowed = "none");
3914
3914
  }, m = (V) => {
3915
3915
  V.preventDefault(), V.currentTarget.classList.remove("bg-blue-200", "dark:bg-slate-600"), e.fs.isGoUpAvailable() && V.currentTarget.classList.remove("bg-blue-200", "dark:bg-slate-600");
3916
3916
  }, v = () => {
3917
3917
  D(), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: e.fs.data.dirname } });
3918
- }, p = () => {
3918
+ }, h = () => {
3919
3919
  D(), !e.fs.isGoUpAvailable() || e.emitter.emit("vf-fetch", {
3920
3920
  params: {
3921
3921
  q: "index",
@@ -3939,15 +3939,15 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
3939
3939
  }, A = () => {
3940
3940
  e.showTreeView = !e.showTreeView;
3941
3941
  };
3942
- ze(() => e.showTreeView, (V, T) => {
3942
+ Ne(() => e.showTreeView, (V, T) => {
3943
3943
  V !== T && n("show-tree-view", V);
3944
3944
  });
3945
3945
  const k = E(null), U = () => {
3946
3946
  e.features.includes(pe.SEARCH) && (e.fs.searchMode = !0, ft(() => k.value.focus()));
3947
3947
  }, B = Hn("", 400);
3948
- ze(B, (V) => {
3948
+ Ne(B, (V) => {
3949
3949
  e.emitter.emit("vf-toast-clear"), e.emitter.emit("vf-search-query", { newQuery: V });
3950
- }), ze(() => e.fs.searchMode, (V) => {
3950
+ }), Ne(() => e.fs.searchMode, (V) => {
3951
3951
  V && ft(() => k.value.focus());
3952
3952
  });
3953
3953
  const D = () => {
@@ -3972,10 +3972,10 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
3972
3972
  title: a(s)("Go up a directory")
3973
3973
  }, [
3974
3974
  Y(a(Tu), {
3975
- onDragover: T[0] || (T[0] = (O) => h(O)),
3975
+ onDragover: T[0] || (T[0] = (O) => p(O)),
3976
3976
  onDragleave: T[1] || (T[1] = (O) => m(O)),
3977
3977
  onDrop: T[2] || (T[2] = (O) => u(O)),
3978
- onClick: p,
3978
+ onClick: h,
3979
3979
  class: de(a(e).fs.isGoUpAvailable() ? "text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer" : "text-gray-400 dark:text-neutral-500")
3980
3980
  }, null, 8, ["class"])
3981
3981
  ], 8, m0),
@@ -3998,7 +3998,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
3998
3998
  }, [
3999
3999
  o("div", null, [
4000
4000
  Y(a(Fu), {
4001
- onDragover: T[4] || (T[4] = (O) => h(O)),
4001
+ onDragover: T[4] || (T[4] = (O) => p(O)),
4002
4002
  onDragleave: T[5] || (T[5] = (O) => m(O)),
4003
4003
  onDrop: T[6] || (T[6] = (O) => u(O, -1)),
4004
4004
  onClick: T[7] || (T[7] = (O) => a(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: a(e).fs.adapter } }))
@@ -4029,7 +4029,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
4029
4029
  (f(!0), g(he, null, $e(a(e).fs.breadcrumbs, (O, M) => (f(), g("div", { key: M }, [
4030
4030
  x0,
4031
4031
  o("span", {
4032
- onDragover: (S) => M === a(e).fs.breadcrumbs.length - 1 || h(S),
4032
+ onDragover: (S) => M === a(e).fs.breadcrumbs.length - 1 || p(S),
4033
4033
  onDragleave: (S) => M === a(e).fs.breadcrumbs.length - 1 || m(S),
4034
4034
  onDrop: (S) => M === a(e).fs.breadcrumbs.length - 1 || u(S, M),
4035
4035
  class: "px-1.5 py-1 text-slate-700 dark:text-slate-200 hover:bg-neutral-100 dark:hover:bg-gray-800 rounded cursor-pointer whitespace-nowrap",
@@ -4065,7 +4065,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
4065
4065
  ve(o("div", k0, [
4066
4066
  (f(!0), g(he, null, $e(a(e).fs.hiddenBreadcrumbs, (O, M) => (f(), g("div", {
4067
4067
  key: M,
4068
- onDragover: T[11] || (T[11] = (S) => h(S)),
4068
+ onDragover: T[11] || (T[11] = (S) => p(S)),
4069
4069
  onDragleave: T[12] || (T[12] = (S) => m(S)),
4070
4070
  onDrop: (S) => l(S, M),
4071
4071
  onClick: (S) => x(O),
@@ -4090,7 +4090,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
4090
4090
  const e = ae("ServiceContainer"), { getStore: s } = e.storage, r = E(s("full-screen", !1)), n = E([]), c = (l) => l === "error" ? "text-red-400 border-red-400 dark:text-red-300 dark:border-red-300" : "text-lime-600 border-lime-600 dark:text-lime-300 dark:border-lime-1300", i = (l) => {
4091
4091
  n.value.splice(l, 1);
4092
4092
  }, d = (l) => {
4093
- let u = n.value.findIndex((h) => h.id === l);
4093
+ let u = n.value.findIndex((p) => p.id === l);
4094
4094
  u !== -1 && i(u);
4095
4095
  };
4096
4096
  return e.emitter.on("vf-toast-clear", () => {
@@ -4109,11 +4109,11 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
4109
4109
  "leave-to-class": "opacity-0"
4110
4110
  }, {
4111
4111
  default: se(() => [
4112
- (f(!0), g(he, null, $e(n.value, (h, m) => (f(), g("div", {
4112
+ (f(!0), g(he, null, $e(n.value, (p, m) => (f(), g("div", {
4113
4113
  onClick: (v) => i(m),
4114
- key: h,
4115
- class: de([c(h.type), "inline-block mx-auto my-0.5 py-0.5 px-2 min-w-max bg-gray-50 dark:bg-gray-600 border text-xs sm:text-sm rounded cursor-pointer"])
4116
- }, _(h.label), 11, T0))), 128))
4114
+ key: p,
4115
+ class: de([c(p.type), "inline-block mx-auto my-0.5 py-0.5 px-2 min-w-max bg-gray-50 dark:bg-gray-600 border text-xs sm:text-sm rounded cursor-pointer"])
4116
+ }, _(p.label), 11, T0))), 128))
4117
4117
  ]),
4118
4118
  _: 1
4119
4119
  })
@@ -4235,15 +4235,15 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4235
4235
  __name: "Text",
4236
4236
  emits: ["success"],
4237
4237
  setup(t, { emit: e }) {
4238
- const s = e, r = E(""), n = E(""), c = E(null), i = E(!1), d = E(""), l = E(!1), u = ae("ServiceContainer"), { t: h } = u.i18n;
4238
+ const s = e, r = E(""), n = E(""), c = E(null), i = E(!1), d = E(""), l = E(!1), u = ae("ServiceContainer"), { t: p } = u.i18n;
4239
4239
  Ce(() => {
4240
4240
  u.requester.send({
4241
4241
  url: "",
4242
4242
  method: "get",
4243
4243
  params: { q: "preview", adapter: u.modal.data.adapter, path: u.modal.data.item.path },
4244
4244
  responseType: "text"
4245
- }).then((p) => {
4246
- r.value = p, s("success");
4245
+ }).then((h) => {
4246
+ r.value = h, s("success");
4247
4247
  });
4248
4248
  });
4249
4249
  const m = () => {
@@ -4261,13 +4261,13 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4261
4261
  content: n.value
4262
4262
  },
4263
4263
  responseType: "text"
4264
- }).then((p) => {
4265
- d.value = h("Updated."), r.value = p, s("success"), i.value = !i.value;
4266
- }).catch((p) => {
4267
- d.value = h(p.message), l.value = !0;
4264
+ }).then((h) => {
4265
+ d.value = p("Updated."), r.value = h, s("success"), i.value = !i.value;
4266
+ }).catch((h) => {
4267
+ d.value = p(h.message), l.value = !0;
4268
4268
  });
4269
4269
  };
4270
- return (p, x) => (f(), g(he, null, [
4270
+ return (h, x) => (f(), g(he, null, [
4271
4271
  o("div", Z0, [
4272
4272
  o("div", {
4273
4273
  class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
@@ -4279,12 +4279,12 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4279
4279
  key: 0,
4280
4280
  onClick: v,
4281
4281
  class: "ml-1 px-2 py-1 rounded border border-transparent shadow-sm bg-blue-700/75 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-700/50 text-base font-medium text-white sm:ml-3 sm:w-auto sm:text-sm"
4282
- }, _(a(h)("Save")), 1)) : j("", !0),
4282
+ }, _(a(p)("Save")), 1)) : j("", !0),
4283
4283
  a(u).features.includes(a(pe).EDIT) ? (f(), g("button", {
4284
4284
  key: 1,
4285
4285
  class: "ml-1 px-2 py-1 text-blue-500",
4286
4286
  onClick: x[0] || (x[0] = (y) => m())
4287
- }, _(i.value ? a(h)("Cancel") : a(h)("Edit")), 1)) : j("", !0)
4287
+ }, _(i.value ? a(p)("Cancel") : a(p)("Edit")), 1)) : j("", !0)
4288
4288
  ])
4289
4289
  ]),
4290
4290
  o("div", null, [
@@ -4319,7 +4319,7 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4319
4319
  __name: "Image",
4320
4320
  emits: ["success"],
4321
4321
  setup(t, { emit: e }) {
4322
- const s = e, r = ae("ServiceContainer"), { t: n } = r.i18n, c = E(null), i = E(null), d = E(!1), l = E(""), u = E(!1), h = () => {
4322
+ const s = e, r = ae("ServiceContainer"), { t: n } = r.i18n, c = E(null), i = E(null), d = E(!1), l = E(""), u = E(!1), p = () => {
4323
4323
  d.value = !d.value, d.value ? i.value = new lr(c.value, {
4324
4324
  crop(v) {
4325
4325
  }
@@ -4331,8 +4331,8 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4331
4331
  }).toBlob(
4332
4332
  (v) => {
4333
4333
  l.value = "", u.value = !1;
4334
- const p = new FormData();
4335
- p.set("file", v), r.requester.send({
4334
+ const h = new FormData();
4335
+ h.set("file", v), r.requester.send({
4336
4336
  url: "",
4337
4337
  method: "post",
4338
4338
  params: {
@@ -4340,9 +4340,9 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4340
4340
  adapter: r.modal.data.adapter,
4341
4341
  path: r.modal.data.item.path
4342
4342
  },
4343
- body: p
4343
+ body: h
4344
4344
  }).then((x) => {
4345
- l.value = n("Updated."), c.value.src = r.requester.getPreviewUrl(r.modal.data.adapter, r.modal.data.item), h(), s("success");
4345
+ l.value = n("Updated."), c.value.src = r.requester.getPreviewUrl(r.modal.data.adapter, r.modal.data.item), p(), s("success");
4346
4346
  }).catch((x) => {
4347
4347
  l.value = n(x.message), u.value = !0;
4348
4348
  });
@@ -4351,7 +4351,7 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4351
4351
  };
4352
4352
  return Ce(() => {
4353
4353
  s("success");
4354
- }), (v, p) => (f(), g(he, null, [
4354
+ }), (v, h) => (f(), g(he, null, [
4355
4355
  o("div", rm, [
4356
4356
  o("h3", {
4357
4357
  class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
@@ -4367,7 +4367,7 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4367
4367
  a(r).features.includes(a(pe).EDIT) ? (f(), g("button", {
4368
4368
  key: 1,
4369
4369
  class: "ml-1 px-2 py-1 text-blue-500",
4370
- onClick: p[0] || (p[0] = (x) => h())
4370
+ onClick: h[0] || (h[0] = (x) => p())
4371
4371
  }, _(d.value ? a(n)("Cancel") : a(n)("Edit")), 1)) : j("", !0)
4372
4372
  ])
4373
4373
  ]),
@@ -4382,7 +4382,7 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4382
4382
  ]),
4383
4383
  l.value.length ? (f(), W(Ye, {
4384
4384
  key: 0,
4385
- onHidden: p[1] || (p[1] = (x) => l.value = ""),
4385
+ onHidden: h[1] || (h[1] = (x) => l.value = ""),
4386
4386
  error: u.value
4387
4387
  }, {
4388
4388
  default: se(() => [
@@ -4622,38 +4622,38 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4622
4622
  dragImage: { type: Object }
4623
4623
  },
4624
4624
  setup(t) {
4625
- const e = ae("ServiceContainer"), s = e.dragSelect, r = t, n = (p) => {
4626
- p.type === "dir" ? (e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: p.path } })) : e.modal.open(Ho, { adapter: e.fs.adapter, item: p });
4625
+ const e = ae("ServiceContainer"), s = e.dragSelect, r = t, n = (h) => {
4626
+ h.type === "dir" ? (e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: h.path } })) : e.modal.open(Ho, { adapter: e.fs.adapter, item: h });
4627
4627
  }, c = {
4628
- mounted(p, x, y, b) {
4629
- y.props.draggable && (p.addEventListener("dragstart", (A) => i(A, x.value)), p.addEventListener("dragover", (A) => l(A, x.value)), p.addEventListener("drop", (A) => d(A, x.value)));
4628
+ mounted(h, x, y, b) {
4629
+ y.props.draggable && (h.addEventListener("dragstart", (A) => i(A, x.value)), h.addEventListener("dragover", (A) => l(A, x.value)), h.addEventListener("drop", (A) => d(A, x.value)));
4630
4630
  },
4631
- beforeUnmount(p, x, y, b) {
4632
- y.props.draggable && (p.removeEventListener("dragstart", i), p.removeEventListener("dragover", l), p.removeEventListener("drop", d));
4631
+ beforeUnmount(h, x, y, b) {
4632
+ y.props.draggable && (h.removeEventListener("dragstart", i), h.removeEventListener("dragover", l), h.removeEventListener("drop", d));
4633
4633
  }
4634
- }, i = (p, x) => {
4635
- if (p.altKey || p.ctrlKey || p.metaKey)
4636
- return p.preventDefault(), !1;
4637
- s.isDraggingRef.value = !0, p.dataTransfer.setDragImage(r.dragImage.$el, 0, 15), p.dataTransfer.effectAllowed = "all", p.dataTransfer.dropEffect = "copy", p.dataTransfer.setData("items", JSON.stringify(s.getSelected()));
4638
- }, d = (p, x) => {
4639
- p.preventDefault(), s.isDraggingRef.value = !1;
4640
- let y = JSON.parse(p.dataTransfer.getData("items"));
4634
+ }, i = (h, x) => {
4635
+ if (h.altKey || h.ctrlKey || h.metaKey)
4636
+ return h.preventDefault(), !1;
4637
+ s.isDraggingRef.value = !0, h.dataTransfer.setDragImage(r.dragImage.$el, 0, 15), h.dataTransfer.effectAllowed = "all", h.dataTransfer.dropEffect = "copy", h.dataTransfer.setData("items", JSON.stringify(s.getSelected()));
4638
+ }, d = (h, x) => {
4639
+ h.preventDefault(), s.isDraggingRef.value = !1;
4640
+ let y = JSON.parse(h.dataTransfer.getData("items"));
4641
4641
  if (y.find((b) => b.storage !== e.fs.adapter)) {
4642
4642
  alert("Moving items between different storages is not supported yet.");
4643
4643
  return;
4644
4644
  }
4645
4645
  e.modal.open(Ps, { items: { from: y, to: x } });
4646
- }, l = (p, x) => {
4647
- p.preventDefault(), !x || x.type !== "dir" || s.getSelection().find((y) => y === p.currentTarget) ? (p.dataTransfer.dropEffect = "none", p.dataTransfer.effectAllowed = "none") : p.dataTransfer.dropEffect = "copy";
4646
+ }, l = (h, x) => {
4647
+ h.preventDefault(), !x || x.type !== "dir" || s.getSelection().find((y) => y === h.currentTarget) ? (h.dataTransfer.dropEffect = "none", h.dataTransfer.effectAllowed = "none") : h.dataTransfer.dropEffect = "copy";
4648
4648
  };
4649
- let u = null, h = !1;
4649
+ let u = null, p = !1;
4650
4650
  const m = () => {
4651
4651
  u && clearTimeout(u);
4652
- }, v = (p) => {
4653
- if (!h)
4654
- h = !0, setTimeout(() => h = !1, 300);
4652
+ }, v = (h) => {
4653
+ if (!p)
4654
+ p = !0, setTimeout(() => p = !1, 300);
4655
4655
  else
4656
- return h = !1, n(r.item), clearTimeout(u), !1;
4656
+ return p = !1, n(r.item), clearTimeout(u), !1;
4657
4657
  u = setTimeout(() => {
4658
4658
  const x = new MouseEvent("contextmenu", {
4659
4659
  bubbles: !0,
@@ -4661,14 +4661,14 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4661
4661
  view: window,
4662
4662
  button: 2,
4663
4663
  buttons: 0,
4664
- clientX: p.target.getBoundingClientRect().x,
4665
- clientY: p.target.getBoundingClientRect().y
4664
+ clientX: h.target.getBoundingClientRect().x,
4665
+ clientY: h.target.getBoundingClientRect().y
4666
4666
  });
4667
- p.target.dispatchEvent(x);
4667
+ h.target.dispatchEvent(x);
4668
4668
  }, 500);
4669
4669
  };
4670
- return (p, x) => ve((f(), g("div", {
4671
- style: os({ opacity: a(s).isDraggingRef.value && a(s).getSelection().find((y) => p.$el === y) ? "0.5 !important" : "" }),
4670
+ return (h, x) => ve((f(), g("div", {
4671
+ style: os({ opacity: a(s).isDraggingRef.value && a(s).getSelection().find((y) => h.$el === y) ? "0.5 !important" : "" }),
4672
4672
  class: de(["vf-item-" + a(s).explorerId, "relative"]),
4673
4673
  "data-type": t.item.type,
4674
4674
  key: t.item.path,
@@ -4679,7 +4679,7 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4679
4679
  onTouchend: x[2] || (x[2] = (y) => m()),
4680
4680
  onContextmenu: x[3] || (x[3] = rt((y) => a(e).emitter.emit("vf-contextmenu-show", { event: y, items: a(s).getSelected(), target: t.item }), ["prevent"]))
4681
4681
  }, [
4682
- Dt(p.$slots, "default"),
4682
+ Dt(h.$slots, "default"),
4683
4683
  a(e).pinnedFolders.find((y) => y.path === t.item.path) ? (f(), W(a(Bo), {
4684
4684
  key: 0,
4685
4685
  class: "absolute top-0 right-0 text-amber-600"
@@ -4715,12 +4715,12 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4715
4715
  }) : e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: e.fs.data.dirname } });
4716
4716
  });
4717
4717
  const l = Ot({ active: !1, column: "", order: "" }), u = (m = !0) => {
4718
- let v = [...e.fs.data.files], p = l.column, x = l.order === "asc" ? 1 : -1;
4718
+ let v = [...e.fs.data.files], h = l.column, x = l.order === "asc" ? 1 : -1;
4719
4719
  if (!m)
4720
4720
  return v;
4721
4721
  const y = (b, A) => typeof b == "string" && typeof A == "string" ? b.toLowerCase().localeCompare(A.toLowerCase()) : b < A ? -1 : b > A ? 1 : 0;
4722
- return l.active && (v = v.slice().sort((b, A) => y(b[p], A[p]) * x)), v;
4723
- }, h = (m) => {
4722
+ return l.active && (v = v.slice().sort((b, A) => y(b[h], A[h]) * x)), v;
4723
+ }, p = (m) => {
4724
4724
  l.active && l.column === m ? (l.active = l.order === "asc", l.column = m, l.order = "desc") : (l.active = !0, l.column = m, l.order = "asc");
4725
4725
  };
4726
4726
  return Ce(() => {
@@ -4732,7 +4732,7 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4732
4732
  }), (m, v) => (f(), g("div", Gm, [
4733
4733
  a(e).view === "list" || c.value.length ? (f(), g("div", Km, [
4734
4734
  o("div", {
4735
- onClick: v[0] || (v[0] = (p) => h("basename")),
4735
+ onClick: v[0] || (v[0] = (h) => p("basename")),
4736
4736
  class: "col-span-7 vf-sort-button"
4737
4737
  }, [
4738
4738
  Q(_(a(s)("Name")) + " ", 1),
@@ -4744,7 +4744,7 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4744
4744
  ]),
4745
4745
  c.value.length ? j("", !0) : (f(), g("div", {
4746
4746
  key: 0,
4747
- onClick: v[1] || (v[1] = (p) => h("file_size")),
4747
+ onClick: v[1] || (v[1] = (h) => p("file_size")),
4748
4748
  class: "justify-center col-span-2 vf-sort-button"
4749
4749
  }, [
4750
4750
  Q(_(a(s)("Size")) + " ", 1),
@@ -4756,7 +4756,7 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4756
4756
  ])),
4757
4757
  c.value.length ? j("", !0) : (f(), g("div", {
4758
4758
  key: 1,
4759
- onClick: v[2] || (v[2] = (p) => h("last_modified")),
4759
+ onClick: v[2] || (v[2] = (h) => p("last_modified")),
4760
4760
  class: "justify-center col-span-3 vf-sort-button"
4761
4761
  }, [
4762
4762
  Q(_(a(s)("Date")) + " ", 1),
@@ -4768,7 +4768,7 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4768
4768
  ])),
4769
4769
  c.value.length ? (f(), g("div", {
4770
4770
  key: 2,
4771
- onClick: v[3] || (v[3] = (p) => h("path")),
4771
+ onClick: v[3] || (v[3] = (h) => p("path")),
4772
4772
  class: "justify-center col-span-5 vf-sort-button"
4773
4773
  }, [
4774
4774
  Q(_(a(s)("Filepath")) + " ", 1),
@@ -4798,10 +4798,10 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4798
4798
  o("div", {
4799
4799
  ref: a(i).area,
4800
4800
  class: "h-full w-full text-xs p-1 vf-explorer-scrollbar vf-selector-area min-h-[150px] z-0 overflow-y-auto",
4801
- onContextmenu: v[4] || (v[4] = rt((p) => a(e).emitter.emit("vf-contextmenu-show", { event: p, items: a(i).getSelected() }), ["self", "prevent"]))
4801
+ onContextmenu: v[4] || (v[4] = rt((h) => a(e).emitter.emit("vf-contextmenu-show", { event: h, items: a(i).getSelected() }), ["self", "prevent"]))
4802
4802
  }, [
4803
- c.value.length ? (f(!0), g(he, { key: 0 }, $e(u(), (p, x) => (f(), W($s, {
4804
- item: p,
4803
+ c.value.length ? (f(!0), g(he, { key: 0 }, $e(u(), (h, x) => (f(), W($s, {
4804
+ item: h,
4805
4805
  index: x,
4806
4806
  dragImage: n.value,
4807
4807
  class: "vf-item vf-item-list"
@@ -4810,41 +4810,41 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4810
4810
  o("div", Ym, [
4811
4811
  o("div", Xm, [
4812
4812
  Y(ks, {
4813
- type: p.type,
4813
+ type: h.type,
4814
4814
  small: a(e).compactListView
4815
4815
  }, null, 8, ["type", "small"]),
4816
- o("span", Jm, _(p.basename), 1)
4816
+ o("span", Jm, _(h.basename), 1)
4817
4817
  ]),
4818
- o("div", Qm, _(p.path), 1)
4818
+ o("div", Qm, _(h.path), 1)
4819
4819
  ])
4820
4820
  ]),
4821
4821
  _: 2
4822
4822
  }, 1032, ["item", "index", "dragImage"]))), 256)) : j("", !0),
4823
- a(e).view === "list" && !c.value.length ? (f(!0), g(he, { key: 1 }, $e(u(), (p, x) => (f(), W($s, {
4824
- item: p,
4823
+ a(e).view === "list" && !c.value.length ? (f(!0), g(he, { key: 1 }, $e(u(), (h, x) => (f(), W($s, {
4824
+ item: h,
4825
4825
  index: x,
4826
4826
  dragImage: n.value,
4827
4827
  class: "vf-item vf-item-list",
4828
4828
  draggable: "true",
4829
- key: p.path
4829
+ key: h.path
4830
4830
  }, {
4831
4831
  default: se(() => [
4832
4832
  o("div", Zm, [
4833
4833
  o("div", e1, [
4834
4834
  Y(ks, {
4835
- type: p.type,
4835
+ type: h.type,
4836
4836
  small: a(e).compactListView
4837
4837
  }, null, 8, ["type", "small"]),
4838
- o("span", t1, _(p.basename), 1)
4838
+ o("span", t1, _(h.basename), 1)
4839
4839
  ]),
4840
- o("div", s1, _(p.file_size ? a(e).filesize(p.file_size) : ""), 1),
4841
- o("div", n1, _(a(Oo)(p.last_modified)), 1)
4840
+ o("div", s1, _(h.file_size ? a(e).filesize(h.file_size) : ""), 1),
4841
+ o("div", n1, _(a(Oo)(h.last_modified)), 1)
4842
4842
  ])
4843
4843
  ]),
4844
4844
  _: 2
4845
4845
  }, 1032, ["item", "index", "dragImage"]))), 128)) : j("", !0),
4846
- a(e).view === "grid" && !c.value.length ? (f(!0), g(he, { key: 2 }, $e(u(!1), (p, x) => (f(), W($s, {
4847
- item: p,
4846
+ a(e).view === "grid" && !c.value.length ? (f(!0), g(he, { key: 2 }, $e(u(!1), (h, x) => (f(), W($s, {
4847
+ item: h,
4848
4848
  index: x,
4849
4849
  dragImage: n.value,
4850
4850
  class: "vf-item vf-item-grid",
@@ -4853,19 +4853,19 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4853
4853
  default: se(() => [
4854
4854
  o("div", null, [
4855
4855
  o("div", o1, [
4856
- (p.mime_type ?? "").startsWith("image") && a(e).showThumbnails ? (f(), g("img", {
4856
+ (h.mime_type ?? "").startsWith("image") && a(e).showThumbnails ? (f(), g("img", {
4857
4857
  src: "data:image/png;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
4858
4858
  class: "lazy h-10 md:h-12 m-auto",
4859
- "data-src": a(e).requester.getPreviewUrl(a(e).fs.adapter, p),
4860
- alt: p.basename,
4861
- key: p.path
4859
+ "data-src": a(e).requester.getPreviewUrl(a(e).fs.adapter, h),
4860
+ alt: h.basename,
4861
+ key: h.path
4862
4862
  }, null, 8, r1)) : (f(), W(ks, {
4863
4863
  key: 1,
4864
- type: p.type
4864
+ type: h.type
4865
4865
  }, null, 8, ["type"])),
4866
- !((p.mime_type ?? "").startsWith("image") && a(e).showThumbnails) && p.type !== "dir" ? (f(), g("div", a1, _(r(p.extension)), 1)) : j("", !0)
4866
+ !((h.mime_type ?? "").startsWith("image") && a(e).showThumbnails) && h.type !== "dir" ? (f(), g("div", a1, _(r(h.extension)), 1)) : j("", !0)
4867
4867
  ]),
4868
- o("span", l1, _(a(js)(p.basename)), 1)
4868
+ o("span", l1, _(a(js)(h.basename)), 1)
4869
4869
  ])
4870
4870
  ]),
4871
4871
  _: 2
@@ -4979,20 +4979,20 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4979
4979
  };
4980
4980
  e.emitter.on("vf-search-query", ({ newQuery: m }) => {
4981
4981
  c.value = m;
4982
- }), e.emitter.on("vf-contextmenu-show", ({ event: m, items: v, target: p = null }) => {
4982
+ }), e.emitter.on("vf-contextmenu-show", ({ event: m, items: v, target: h = null }) => {
4983
4983
  if (i.items = [], c.value)
4984
- if (p)
4985
- i.items.push(l.openDir), e.emitter.emit("vf-context-selected", [p]);
4984
+ if (h)
4985
+ i.items.push(l.openDir), e.emitter.emit("vf-context-selected", [h]);
4986
4986
  else
4987
4987
  return;
4988
- else !p && !c.value ? (i.items.push(l.refresh), i.items.push(l.selectAll), i.items.push(l.newfolder), e.emitter.emit("vf-context-selected", [])) : v.length > 1 && v.some((x) => x.path === p.path) ? (i.items.push(l.refresh), i.items.push(l.archive), i.items.push(l.delete), e.emitter.emit("vf-context-selected", v)) : (p.type === "dir" ? (i.items.push(l.open), e.pinnedFolders.findIndex((x) => x.path === p.path) !== -1 ? i.items.push(l.unpinFolder) : i.items.push(l.pinFolder)) : (i.items.push(l.preview), i.items.push(l.download)), i.items.push(l.rename), p.mime_type === "application/zip" ? i.items.push(l.unarchive) : i.items.push(l.archive), i.items.push(l.delete), e.emitter.emit("vf-context-selected", [p]));
4989
- h(m);
4988
+ else !h && !c.value ? (i.items.push(l.refresh), i.items.push(l.selectAll), i.items.push(l.newfolder), e.emitter.emit("vf-context-selected", [])) : v.length > 1 && v.some((x) => x.path === h.path) ? (i.items.push(l.refresh), i.items.push(l.archive), i.items.push(l.delete), e.emitter.emit("vf-context-selected", v)) : (h.type === "dir" ? (i.items.push(l.open), e.pinnedFolders.findIndex((x) => x.path === h.path) !== -1 ? i.items.push(l.unpinFolder) : i.items.push(l.pinFolder)) : (i.items.push(l.preview), i.items.push(l.download)), i.items.push(l.rename), h.mime_type === "application/zip" ? i.items.push(l.unarchive) : i.items.push(l.archive), i.items.push(l.delete), e.emitter.emit("vf-context-selected", [h]));
4989
+ p(m);
4990
4990
  }), e.emitter.on("vf-contextmenu-hide", () => {
4991
4991
  i.active = !1;
4992
4992
  });
4993
- const h = (m) => {
4994
- const v = e.dragSelect.area.value, p = e.root.getBoundingClientRect(), x = v.getBoundingClientRect();
4995
- let y = m.clientX - p.left, b = m.clientY - p.top;
4993
+ const p = (m) => {
4994
+ const v = e.dragSelect.area.value, h = e.root.getBoundingClientRect(), x = v.getBoundingClientRect();
4995
+ let y = m.clientX - h.left, b = m.clientY - h.top;
4996
4996
  i.active = !0, ft(() => {
4997
4997
  var B;
4998
4998
  const A = (B = r.value) == null ? void 0 : B.getBoundingClientRect();
@@ -5009,25 +5009,25 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
5009
5009
  style: os(i.positions),
5010
5010
  class: "z-30 absolute text-xs bg-neutral-50 dark:bg-gray-800 text-gray-700 dark:text-gray-200 border border-neutral-300 dark:border-gray-600 shadow rounded-sm select-none"
5011
5011
  }, [
5012
- (f(!0), g(he, null, $e(d.value, (p) => (f(), g("li", {
5012
+ (f(!0), g(he, null, $e(d.value, (h) => (f(), g("li", {
5013
5013
  class: "cursor-pointer hover:bg-neutral-200 dark:hover:bg-gray-700",
5014
- key: p.title
5014
+ key: h.title
5015
5015
  }, [
5016
- p.link ? (f(), g("a", {
5016
+ h.link ? (f(), g("a", {
5017
5017
  key: 0,
5018
5018
  class: "block pl-2 pr-3 py-2",
5019
5019
  target: "_blank",
5020
- href: p.link,
5021
- download: p.link,
5020
+ href: h.link,
5021
+ download: h.link,
5022
5022
  onClick: v[0] || (v[0] = (x) => a(e).emitter.emit("vf-contextmenu-hide"))
5023
5023
  }, [
5024
- o("span", null, _(p.title()), 1)
5024
+ o("span", null, _(h.title()), 1)
5025
5025
  ], 8, c1)) : (f(), g("div", {
5026
5026
  key: 1,
5027
5027
  class: "pl-2 pr-3 py-1.5",
5028
- onClick: (x) => u(p)
5028
+ onClick: (x) => u(h)
5029
5029
  }, [
5030
- o("span", null, _(p.title()), 1)
5030
+ o("span", null, _(h.title()), 1)
5031
5031
  ], 8, d1))
5032
5032
  ]))), 128))
5033
5033
  ], 4)), [
@@ -5090,12 +5090,12 @@ const b1 = { render: x1 }, y1 = { class: "p-1 text-xs border-t border-neutral-30
5090
5090
  Y(a(Ro))
5091
5091
  ]),
5092
5092
  ve(o("select", {
5093
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(e).fs.adapter = h),
5093
+ "onUpdate:modelValue": u[0] || (u[0] = (p) => a(e).fs.adapter = p),
5094
5094
  onChange: c,
5095
5095
  class: "border-0 py-0.5 text-xs text-slate-500 bg-white dark:text-neutral-50 dark:bg-gray-700 rounded uppercase focus:outline-0 cursor-pointer",
5096
5096
  tabindex: "-1"
5097
5097
  }, [
5098
- (f(!0), g(he, null, $e(a(e).fs.data.storages, (h) => (f(), g("option", { value: h }, _(h), 9, S1))), 256))
5098
+ (f(!0), g(he, null, $e(a(e).fs.data.storages, (p) => (f(), g("option", { value: p }, _(p), 9, S1))), 256))
5099
5099
  ], 544), [
5100
5100
  [Ss, a(e).fs.adapter]
5101
5101
  ])
@@ -5110,12 +5110,12 @@ const b1 = { render: x1 }, y1 = { class: "p-1 text-xs border-t border-neutral-30
5110
5110
  key: 0,
5111
5111
  class: de(["vf-btn py-0 vf-btn-primary", { disabled: !d.value }]),
5112
5112
  disabled: !d.value,
5113
- onClick: u[1] || (u[1] = (h) => a(e).selectButton.click(a(n).getSelected(), h))
5113
+ onClick: u[1] || (u[1] = (p) => a(e).selectButton.click(a(n).getSelected(), p))
5114
5114
  }, _(a(s)("Select")), 11, A1)) : j("", !0),
5115
5115
  o("span", {
5116
5116
  class: "mr-1",
5117
5117
  title: a(s)("About"),
5118
- onClick: u[2] || (u[2] = (h) => a(e).modal.open(Ao))
5118
+ onClick: u[2] || (u[2] = (p) => a(e).modal.open(Ao))
5119
5119
  }, [
5120
5120
  Y(a(b1))
5121
5121
  ], 8, D1)
@@ -5195,7 +5195,7 @@ function Uo(t, e) {
5195
5195
  const s = t.findIndex((r) => r.path === e.path);
5196
5196
  s > -1 ? t[s] = e : t.push(e);
5197
5197
  }
5198
- const Z1 = {
5198
+ const Z1 = { class: "h-5 w-5 shrink-0" }, ef = {
5199
5199
  key: 1,
5200
5200
  class: "cursor-pointer"
5201
5201
  }, zo = {
@@ -5218,13 +5218,17 @@ const Z1 = {
5218
5218
  const e = t, s = ae("ServiceContainer");
5219
5219
  s.i18n;
5220
5220
  const r = Nn(t, "modelValue"), n = E(!1);
5221
+ Ne(
5222
+ () => r.value,
5223
+ () => {
5224
+ var d;
5225
+ return ((d = c()) == null ? void 0 : d.folders.length) || i();
5226
+ }
5227
+ );
5221
5228
  function c() {
5222
- return r.value = !r.value;
5229
+ return s.treeViewData.find((d) => d.path === e.path);
5223
5230
  }
5224
- function i() {
5225
- return s.treeViewData.find((l) => l.path === e.path);
5226
- }
5227
- const d = () => {
5231
+ const i = () => {
5228
5232
  n.value = !0, s.requester.send({
5229
5233
  url: "",
5230
5234
  method: "get",
@@ -5233,27 +5237,21 @@ const Z1 = {
5233
5237
  adapter: e.adapter,
5234
5238
  path: e.path
5235
5239
  }
5236
- }).then((l) => {
5237
- Uo(s.treeViewData, { path: e.path, ...l });
5238
- }).catch((l) => {
5240
+ }).then((d) => {
5241
+ Uo(s.treeViewData, { path: e.path, ...d });
5242
+ }).catch((d) => {
5239
5243
  }).finally(() => {
5240
5244
  n.value = !1;
5241
5245
  });
5242
5246
  };
5243
- return (l, u) => {
5244
- var h;
5245
- return f(), g("div", {
5246
- class: "h-5 w-5 shrink-0",
5247
- onClick: u[0] || (u[0] = (m) => {
5248
- var v;
5249
- return (!r.value || ((v = i()) == null ? void 0 : v.folders.length)) && c() && (i() || d());
5250
- })
5251
- }, [
5247
+ return (d, l) => {
5248
+ var u;
5249
+ return f(), g("div", Z1, [
5252
5250
  n.value ? (f(), W(a(ln), {
5253
5251
  key: 0,
5254
5252
  class: "p-1"
5255
- })) : (f(), g("div", Z1, [
5256
- r.value && ((h = i()) != null && h.folders.length) ? (f(), W(a(No), {
5253
+ })) : (f(), g("div", ef, [
5254
+ r.value && ((u = c()) != null && u.folders.length) ? (f(), W(a(No), {
5257
5255
  key: 0,
5258
5256
  class: "text-gray-600"
5259
5257
  })) : j("", !0),
@@ -5265,7 +5263,7 @@ const Z1 = {
5265
5263
  ]);
5266
5264
  };
5267
5265
  }
5268
- }, ef = { class: "block" }, tf = { class: "flex hover:text-sky-700 dark:hover:text-sky-200/50 rounded" }, sf = { class: "h-5 w-5 shrink-0" }, nf = ["onClick"], of = { class: "h-5 w-5 shrink-0" }, rf = { class: "pl-4" }, af = {
5266
+ }, tf = { class: "block" }, sf = { class: "flex hover:text-sky-700 dark:hover:text-sky-200/50 rounded" }, nf = ["onClick"], of = ["onClick"], rf = { class: "h-5 w-5 shrink-0" }, af = { class: "pl-4" }, lf = {
5269
5267
  __name: "TreeSubfolderList",
5270
5268
  props: {
5271
5269
  adapter: {
@@ -5284,33 +5282,36 @@ const Z1 = {
5284
5282
  });
5285
5283
  return (c, i) => {
5286
5284
  const d = Qo("TreeSubfolderList", !0);
5287
- return f(), g("ul", ef, [
5285
+ return f(), g("ul", tf, [
5288
5286
  (f(!0), g(he, null, $e(n.value, (l, u) => (f(), g("li", {
5289
5287
  class: "flex flex-col space-x-0.5 py-0.5 text-sm",
5290
5288
  key: l.path
5291
5289
  }, [
5292
- o("div", tf, [
5293
- o("div", sf, [
5290
+ o("div", sf, [
5291
+ o("div", {
5292
+ class: "h-5 w-5 shrink-0",
5293
+ onClick: (p) => s.value[l.path] = !s.value[l.path]
5294
+ }, [
5294
5295
  Y(zo, {
5295
5296
  adapter: t.adapter,
5296
5297
  path: l.path,
5297
5298
  modelValue: s.value[l.path],
5298
- "onUpdate:modelValue": (h) => s.value[l.path] = h
5299
+ "onUpdate:modelValue": (p) => s.value[l.path] = p
5299
5300
  }, null, 8, ["adapter", "path", "modelValue", "onUpdate:modelValue"])
5300
- ]),
5301
+ ], 8, nf),
5301
5302
  o("div", {
5302
5303
  class: "flex cursor-pointer",
5303
- onClick: (h) => a(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: r.adapter, path: l.path } })
5304
+ onClick: (p) => a(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: r.adapter, path: l.path } })
5304
5305
  }, [
5305
- o("div", of, [
5306
+ o("div", rf, [
5306
5307
  a(e).fs.path === l.path ? (f(), W(a(Fo), { key: 0 })) : (f(), W(a(fs), { key: 1 }))
5307
5308
  ]),
5308
5309
  o("div", {
5309
5310
  class: de(["text-nowrap", { "underline decoration-blue-300 dark:decoration-gray-400": a(e).fs.path === l.path }])
5310
5311
  }, _(l.basename), 3)
5311
- ], 8, nf)
5312
+ ], 8, of)
5312
5313
  ]),
5313
- o("div", rf, [
5314
+ o("div", af, [
5314
5315
  ve(Y(d, {
5315
5316
  adapter: r.adapter,
5316
5317
  path: l.path
@@ -5322,7 +5323,7 @@ const Z1 = {
5322
5323
  ]);
5323
5324
  };
5324
5325
  }
5325
- }, lf = { class: "pt-1 px-1 uppercase font-bold text-gray-400 dark:text-gray-500 text-xs flex justify-between bg-gray-100 dark:bg-[#2e3c51] border-b dark:border-gray-600" }, cf = {
5326
+ }, cf = { class: "pointer-events-none" }, df = {
5326
5327
  __name: "TreeStorageItem",
5327
5328
  props: {
5328
5329
  storage: {
@@ -5332,13 +5333,15 @@ const Z1 = {
5332
5333
  },
5333
5334
  setup(t) {
5334
5335
  const e = ae("ServiceContainer"), s = E(!1), r = (n) => {
5335
- e.fs.adapter = n, s.value = !s.value, e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: n } }), e.storage.setStore("adapter", n);
5336
+ console.log("ok"), s.value = !s.value;
5336
5337
  };
5337
5338
  return (n, c) => (f(), g(he, null, [
5338
- o("div", lf, [
5339
+ o("div", {
5340
+ onClick: r,
5341
+ class: "pt-1 px-1 uppercase font-bold text-gray-400 dark:text-gray-500 text-xs flex justify-between bg-gray-100 dark:bg-[#2e3c51] border-b dark:border-gray-600 cursor-pointer"
5342
+ }, [
5339
5343
  o("div", {
5340
- class: de(["flex flex-1 space-x-1 items-center cursor-pointer", t.storage === a(e).fs.adapter ? "text-gray-700/80 dark:text-gray-300/80 text-bold" : ""]),
5341
- onClick: c[0] || (c[0] = (i) => r(t.storage))
5344
+ class: de(["flex flex-1 space-x-1 items-center", t.storage === a(e).fs.adapter ? "text-gray-700/80 dark:text-gray-300/80 text-bold" : ""])
5342
5345
  }, [
5343
5346
  o("div", {
5344
5347
  class: de(["h-5 w-5 shrink-0", t.storage === a(e).fs.adapter ? "text-sky-500 dark:text-slate-300" : ""])
@@ -5347,16 +5350,16 @@ const Z1 = {
5347
5350
  ], 2),
5348
5351
  o("div", null, _(t.storage), 1)
5349
5352
  ], 2),
5350
- o("div", null, [
5353
+ o("div", cf, [
5351
5354
  Y(zo, {
5352
5355
  adapter: t.storage,
5353
5356
  path: t.storage + "://",
5354
5357
  modelValue: s.value,
5355
- "onUpdate:modelValue": c[1] || (c[1] = (i) => s.value = i)
5358
+ "onUpdate:modelValue": c[0] || (c[0] = (i) => s.value = i)
5356
5359
  }, null, 8, ["adapter", "path", "modelValue"])
5357
5360
  ])
5358
5361
  ]),
5359
- ve(Y(af, {
5362
+ ve(Y(lf, {
5360
5363
  adapter: t.storage,
5361
5364
  path: t.storage + "://",
5362
5365
  class: "overflow-x-auto"
@@ -5365,7 +5368,7 @@ const Z1 = {
5365
5368
  ])
5366
5369
  ], 64));
5367
5370
  }
5368
- }, df = { class: "h-5 w-5 shrink-0" }, uf = { class: "cursor-pointer" }, mf = {
5371
+ }, uf = { class: "h-5 w-5 shrink-0" }, mf = { class: "cursor-pointer" }, ff = {
5369
5372
  __name: "FolderIndicator",
5370
5373
  props: {
5371
5374
  modelValue: {},
@@ -5374,8 +5377,8 @@ const Z1 = {
5374
5377
  emits: ["update:modelValue"],
5375
5378
  setup(t) {
5376
5379
  const e = Nn(t, "modelValue");
5377
- return (s, r) => (f(), g("div", df, [
5378
- o("div", uf, [
5380
+ return (s, r) => (f(), g("div", uf, [
5381
+ o("div", mf, [
5379
5382
  e.value ? (f(), W(a(No), {
5380
5383
  key: 0,
5381
5384
  class: "text-gray-600"
@@ -5387,21 +5390,21 @@ const Z1 = {
5387
5390
  ])
5388
5391
  ]));
5389
5392
  }
5390
- }, ff = { class: "sticky left-0 dark:border-gray-600" }, hf = { class: "flex items-center space-x-1" }, pf = { class: "text-nowrap" }, vf = {
5393
+ }, hf = { class: "sticky left-0 dark:border-gray-600" }, pf = { class: "flex items-center space-x-1" }, vf = { class: "text-nowrap" }, gf = {
5391
5394
  key: 0,
5392
5395
  class: "block"
5393
- }, gf = { class: "flex pl-2 py-0.5 text-sm justify-between pr-1" }, _f = ["onClick"], xf = ["title"], bf = ["onClick"], yf = { key: 0 }, wf = { class: "p-1 text-xs text-center" }, kf = {
5396
+ }, _f = { class: "flex pl-2 py-0.5 text-sm justify-between pr-1" }, xf = ["onClick"], bf = ["title"], yf = ["onClick"], wf = { key: 0 }, kf = { class: "p-1 text-xs text-center" }, $f = {
5394
5397
  __name: "TreeView",
5395
5398
  setup(t) {
5396
5399
  const e = ae("ServiceContainer"), { t: s } = e.i18n, { getStore: r, setStore: n } = e.storage, c = E(190), i = E(r("pinned-folders-opened", !0));
5397
- ze(i, (h) => n("pinned-folders-opened", h));
5398
- const d = (h) => {
5399
- e.pinnedFolders = e.pinnedFolders.filter((m) => m.path !== h.path), e.storage.setStore("pinned-folders", e.pinnedFolders);
5400
- }, l = (h) => {
5401
- const m = h.clientX, v = h.target.parentElement, p = v.getBoundingClientRect().width;
5400
+ Ne(i, (p) => n("pinned-folders-opened", p));
5401
+ const d = (p) => {
5402
+ e.pinnedFolders = e.pinnedFolders.filter((m) => m.path !== p.path), e.storage.setStore("pinned-folders", e.pinnedFolders);
5403
+ }, l = (p) => {
5404
+ const m = p.clientX, v = p.target.parentElement, h = v.getBoundingClientRect().width;
5402
5405
  v.classList.remove("transition-[width]"), v.classList.add("transition-none");
5403
5406
  const x = (b) => {
5404
- c.value = p + b.clientX - m, c.value < 50 && (c.value = 0, e.showTreeView = !1), c.value > 50 && (e.showTreeView = !0);
5407
+ c.value = h + b.clientX - m, c.value < 50 && (c.value = 0, e.showTreeView = !1), c.value > 50 && (e.showTreeView = !0);
5405
5408
  }, y = () => {
5406
5409
  const b = v.getBoundingClientRect();
5407
5410
  c.value = b.width, v.classList.add("transition-[width]"), v.classList.remove("transition-none"), window.removeEventListener("mousemove", x), window.removeEventListener("mouseup", y);
@@ -5410,14 +5413,14 @@ const Z1 = {
5410
5413
  }, u = E(null);
5411
5414
  return Ce(() => {
5412
5415
  ct(u.value, {});
5413
- }), ze(e.fs.data, (h, m) => {
5414
- const v = h.files.filter((p) => p.type === "dir");
5415
- Uo(e.treeViewData, { path: e.fs.path, folders: v.map((p) => ({
5416
- adapter: p.storage,
5417
- path: p.path,
5418
- basename: p.basename
5416
+ }), Ne(e.fs.data, (p, m) => {
5417
+ const v = p.files.filter((h) => h.type === "dir");
5418
+ Uo(e.treeViewData, { path: e.fs.path, folders: v.map((h) => ({
5419
+ adapter: h.storage,
5420
+ path: h.path,
5421
+ basename: h.basename
5419
5422
  })) });
5420
- }), (h, m) => (f(), g(he, null, [
5423
+ }), (p, m) => (f(), g(he, null, [
5421
5424
  o("div", {
5422
5425
  onClick: m[0] || (m[0] = (v) => a(e).showTreeView = !a(e).showTreeView),
5423
5426
  class: de(["w-full h-full bg-gray-300/10 dark:bg-gray-700/10 z-[1]", a(e).showTreeView ? "backdrop-blur-sm absolute md:hidden" : "hidden"])
@@ -5431,25 +5434,25 @@ const Z1 = {
5431
5434
  ref: u,
5432
5435
  class: "h-full border-r dark:border-gray-600/50 pb-4"
5433
5436
  }, [
5434
- o("div", ff, [
5437
+ o("div", hf, [
5435
5438
  o("div", {
5436
5439
  onClick: m[2] || (m[2] = (v) => i.value = !i.value),
5437
5440
  class: "bg-gray-100 dark:bg-[#2e3c51] dark:border-gray-600 border-b p-1 uppercase font-bold text-gray-400 dark:text-gray-400 text-xs flex items-center justify-between cursor-pointer"
5438
5441
  }, [
5439
- o("div", hf, [
5442
+ o("div", pf, [
5440
5443
  Y(a(Bo), { class: "text-amber-600" }),
5441
- o("div", pf, _(a(s)("Pinned Folders")), 1)
5444
+ o("div", vf, _(a(s)("Pinned Folders")), 1)
5442
5445
  ]),
5443
- Y(mf, {
5446
+ Y(ff, {
5444
5447
  modelValue: i.value,
5445
5448
  "onUpdate:modelValue": m[1] || (m[1] = (v) => i.value = v)
5446
5449
  }, null, 8, ["modelValue"])
5447
5450
  ]),
5448
- i.value ? (f(), g("ul", vf, [
5449
- (f(!0), g(he, null, $e(a(e).pinnedFolders, (v) => (f(), g("li", gf, [
5451
+ i.value ? (f(), g("ul", gf, [
5452
+ (f(!0), g(he, null, $e(a(e).pinnedFolders, (v) => (f(), g("li", _f, [
5450
5453
  o("div", {
5451
5454
  class: "flex hover:text-sky-500 dark:hover:text-sky-200/50 rounded cursor-pointer",
5452
- onClick: (p) => a(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: v.storage, path: v.path } })
5455
+ onClick: (h) => a(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: v.storage, path: v.path } })
5453
5456
  }, [
5454
5457
  a(e).fs.path !== v.path ? (f(), W(a(fs), {
5455
5458
  key: 0,
@@ -5462,22 +5465,22 @@ const Z1 = {
5462
5465
  o("div", {
5463
5466
  title: v.path,
5464
5467
  class: de(["text-nowrap", { "underline decoration-blue-300 dark:decoration-gray-400": a(e).fs.path === v.path }])
5465
- }, _(v.basename), 11, xf)
5466
- ], 8, _f),
5468
+ }, _(v.basename), 11, bf)
5469
+ ], 8, xf),
5467
5470
  o("div", {
5468
5471
  class: "cursor-pointer",
5469
- onClick: (p) => d(v)
5472
+ onClick: (h) => d(v)
5470
5473
  }, [
5471
5474
  Y(a(z1), { class: "p-0.5 text-gray-300 hover:text-gray-400 dark:text-gray-600 hover:dark:text-gray-400" })
5472
- ], 8, bf)
5475
+ ], 8, yf)
5473
5476
  ]))), 256)),
5474
- a(e).pinnedFolders.length ? j("", !0) : (f(), g("li", yf, [
5475
- o("div", wf, _(a(s)("No folders pinned")), 1)
5477
+ a(e).pinnedFolders.length ? j("", !0) : (f(), g("li", wf, [
5478
+ o("div", kf, _(a(s)("No folders pinned")), 1)
5476
5479
  ]))
5477
5480
  ])) : j("", !0)
5478
5481
  ]),
5479
5482
  (f(!0), g(he, null, $e(a(e).fs.data.storages, (v) => (f(), g("div", null, [
5480
- Y(cf, { storage: v }, null, 8, ["storage"])
5483
+ Y(df, { storage: v }, null, 8, ["storage"])
5481
5484
  ]))), 256))
5482
5485
  ], 512),
5483
5486
  o("div", {
@@ -5487,7 +5490,7 @@ const Z1 = {
5487
5490
  ], 4)
5488
5491
  ], 64));
5489
5492
  }
5490
- }, $f = { class: "relative flex overflow-hidden h-full" }, Sf = {
5493
+ }, Sf = { class: "relative flex overflow-hidden h-full" }, Cf = {
5491
5494
  __name: "VueFinder",
5492
5495
  props: {
5493
5496
  id: {
@@ -5567,35 +5570,35 @@ const Z1 = {
5567
5570
  n.root = i;
5568
5571
  const d = n.dragSelect;
5569
5572
  _i(n);
5570
- const l = (h) => {
5571
- Object.assign(n.fs.data, h), d.clearSelection(), d.refreshSelection();
5573
+ const l = (p) => {
5574
+ Object.assign(n.fs.data, p), d.clearSelection(), d.refreshSelection();
5572
5575
  };
5573
5576
  let u;
5574
5577
  return n.emitter.on("vf-fetch-abort", () => {
5575
5578
  u.abort(), n.fs.loading = !1;
5576
- }), n.emitter.on("vf-fetch", ({ params: h, body: m = null, onSuccess: v = null, onError: p = null, noCloseModal: x = !1 }) => {
5577
- ["index", "search"].includes(h.q) && (u && u.abort(), n.fs.loading = !0), u = new AbortController();
5579
+ }), n.emitter.on("vf-fetch", ({ params: p, body: m = null, onSuccess: v = null, onError: h = null, noCloseModal: x = !1 }) => {
5580
+ ["index", "search"].includes(p.q) && (u && u.abort(), n.fs.loading = !0), u = new AbortController();
5578
5581
  const y = u.signal;
5579
5582
  n.requester.send({
5580
5583
  url: "",
5581
- method: h.m || "get",
5582
- params: h,
5584
+ method: p.m || "get",
5585
+ params: p,
5583
5586
  body: m,
5584
5587
  abortSignal: y
5585
5588
  }).then((b) => {
5586
- n.fs.adapter = b.adapter, n.persist && (n.fs.path = b.dirname, c("path", n.fs.path)), ["index", "search"].includes(h.q) && (n.fs.loading = !1), x || n.modal.close(), l(b), v && v(b);
5589
+ n.fs.adapter = b.adapter, n.persist && (n.fs.path = b.dirname, c("path", n.fs.path)), ["index", "search"].includes(p.q) && (n.fs.loading = !1), x || n.modal.close(), l(b), v && v(b);
5587
5590
  }).catch((b) => {
5588
- console.error(b), p && p(b);
5591
+ console.error(b), h && h(b);
5589
5592
  });
5590
5593
  }), Ce(() => {
5591
- let h = {};
5592
- n.fs.path.includes("://") && (h = {
5594
+ let p = {};
5595
+ n.fs.path.includes("://") && (p = {
5593
5596
  adapter: n.fs.path.split("://")[0],
5594
5597
  path: n.fs.path
5595
- }), n.emitter.emit("vf-fetch", { params: { q: "index", adapter: n.fs.adapter, ...h } }), d.onSelect((m) => {
5598
+ }), n.emitter.emit("vf-fetch", { params: { q: "index", adapter: n.fs.adapter, ...p } }), d.onSelect((m) => {
5596
5599
  s("select", m);
5597
5600
  });
5598
- }), (h, m) => (f(), g("div", {
5601
+ }), (p, m) => (f(), g("div", {
5599
5602
  class: "vuefinder",
5600
5603
  ref_key: "root",
5601
5604
  ref: i,
@@ -5612,8 +5615,8 @@ const Z1 = {
5612
5615
  }, [
5613
5616
  Y(Qd),
5614
5617
  Y(E0),
5615
- o("div", $f, [
5616
- Y(kf),
5618
+ o("div", Sf, [
5619
+ Y($f),
5617
5620
  Y(i1)
5618
5621
  ]),
5619
5622
  Y(L1)
@@ -5628,7 +5631,7 @@ const Z1 = {
5628
5631
  ], 2)
5629
5632
  ], 512));
5630
5633
  }
5631
- }, Bf = {
5634
+ }, Rf = {
5632
5635
  /**
5633
5636
  * @param {import('vue').App} app
5634
5637
  * @param options
@@ -5636,9 +5639,9 @@ const Z1 = {
5636
5639
  install(t, e = {}) {
5637
5640
  e.i18n = e.i18n ?? {};
5638
5641
  let [s] = Object.keys(e.i18n);
5639
- e.locale = e.locale ?? s ?? "en", t.provide("VueFinderOptions", e), t.component("VueFinder", Sf);
5642
+ e.locale = e.locale ?? s ?? "en", t.provide("VueFinderOptions", e), t.component("VueFinder", Cf);
5640
5643
  }
5641
5644
  };
5642
5645
  export {
5643
- Bf as default
5646
+ Rf as default
5644
5647
  };