vuefinder 2.5.4 → 2.5.5

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 zo = Object.defineProperty;
2
2
  var Po = (t, e, s) => e in t ? zo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
3
  var mn = (t, e, s) => Po(t, typeof e != "symbol" ? e + "" : e, s);
4
- import { reactive as Ot, watch as Je, ref as M, shallowRef as jo, 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 me, toDisplayString as _, createBlock as X, withCtx as se, Fragment as he, renderList as $e, createCommentVNode as P, withDirectives as pe, vModelCheckbox as jt, createTextVNode as Q, createVNode as W, vModelSelect as Ss, isRef as Fn, vModelText as St, onBeforeUnmount as In, customRef as qo, vShow as ze, TransitionGroup as Go, normalizeStyle as os, mergeModels as Ko, useModel as Wo, resolveComponent as Yo, provide as Xo, Transition as Jo, resolveDynamicComponent as Qo } from "vue";
4
+ import { reactive as Ot, watch as Je, ref as M, shallowRef as jo, 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 me, toDisplayString as _, createBlock as X, withCtx as se, Fragment as he, renderList as $e, createCommentVNode as P, withDirectives as ve, vModelCheckbox as jt, createTextVNode as Q, createVNode as W, vModelSelect as Ss, isRef as Fn, vModelText as St, onBeforeUnmount as In, customRef as qo, vShow as ze, TransitionGroup as Go, normalizeStyle as os, mergeModels as Ko, useModel as Wo, resolveComponent as Yo, provide as Xo, Transition as Jo, resolveDynamicComponent as Qo } from "vue";
5
5
  import Zo from "mitt";
6
6
  import er from "dragselect";
7
7
  import tr from "@uppy/core";
@@ -37,8 +37,8 @@ class rr {
37
37
  _s != null && _s !== "" && (r[s.xsrfHeaderName] = _s);
38
38
  const n = Object.assign({}, s.headers, r, e.headers), c = Object.assign({}, s.params, e.params), i = e.body, d = s.baseUrl + e.url, l = e.method;
39
39
  let u;
40
- l !== "get" && (i instanceof FormData ? (u = i, s.body != null && Object.entries(this.config.body).forEach(([m, p]) => {
41
- u.append(m, p);
40
+ l !== "get" && (i instanceof FormData ? (u = i, s.body != null && Object.entries(this.config.body).forEach(([m, v]) => {
41
+ u.append(m, v);
42
42
  })) : (u = { ...i }, s.body != null && Object.assign(u, this.config.body)));
43
43
  const h = {
44
44
  url: d,
@@ -157,21 +157,21 @@ async function ir(t, e) {
157
157
  return typeof s == "function" ? (await s()).default : s;
158
158
  }
159
159
  function cr(t, e, s, r) {
160
- const { getStore: n, setStore: c } = t, i = M({}), d = M(n("locale", e)), l = (m, p = e) => {
161
- ir(m, r).then((v) => {
162
- i.value = v, c("locale", m), d.value = m, c("translations", v), Object.values(r).length > 1 && (s.emit("vf-toast-push", { label: "The language is set to " + m }), s.emit("vf-language-saved"));
163
- }).catch((v) => {
164
- p ? (s.emit("vf-toast-push", { label: "The selected locale is not yet supported!", type: "error" }), l(p, null)) : s.emit("vf-toast-push", { label: "Locale cannot be loaded!", type: "error" });
160
+ const { getStore: n, setStore: c } = t, i = M({}), d = M(n("locale", e)), l = (m, v = e) => {
161
+ ir(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) => {
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
- const u = (m, ...p) => p.length ? u(m = m.replace("%s", p.shift()), ...p) : m;
169
- function h(m, ...p) {
170
- return i.value && i.value.hasOwnProperty(m) ? u(i.value[m], ...p) : u(m, ...p);
168
+ const u = (m, ...v) => v.length ? u(m = m.replace("%s", v.shift()), ...v) : m;
169
+ function h(m, ...v) {
170
+ return i.value && i.value.hasOwnProperty(m) ? u(i.value[m], ...v) : u(m, ...v);
171
171
  }
172
172
  return { t: h, changeLocale: l, locale: d };
173
173
  }
174
- const ve = {
174
+ const pe = {
175
175
  EDIT: "edit",
176
176
  NEW_FILE: "newfile",
177
177
  NEW_FOLDER: "newfolder",
@@ -185,7 +185,7 @@ const ve = {
185
185
  FULL_SCREEN: "fullscreen",
186
186
  DOWNLOAD: "download",
187
187
  LANGUAGE: "language"
188
- }, dr = Object.values(ve), ur = "2.5.4";
188
+ }, dr = Object.values(pe), ur = "2.5.5";
189
189
  function Nn(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
  }
@@ -245,11 +245,11 @@ const Ve = (t, e) => {
245
245
  const { o: s, i: r, u: n } = t;
246
246
  let c = s, i;
247
247
  const d = (h, m) => {
248
- const p = c, v = h, x = m || (r ? !r(p, v) : p !== v);
249
- return (x || n) && (c = v, i = p), [c, x, i];
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];
250
250
  };
251
251
  return [e ? (h) => d(e(c, i), h) : d, (h) => [c, !!h, i]];
252
- }, zn = typeof window < "u" && typeof document < "u", Ae = zn ? window : {}, Pn = Math.max, vr = Math.min, Cs = Math.round, Jt = Math.abs, fn = Math.sign, jn = Ae.cancelAnimationFrame, Gs = Ae.requestAnimationFrame, Qt = Ae.setTimeout, Es = Ae.clearTimeout, rs = (t) => typeof Ae[t] < "u" ? Ae[t] : void 0, pr = rs("MutationObserver"), hn = rs("IntersectionObserver"), Zt = rs("ResizeObserver"), Ts = rs("ScrollTimeline"), qn = zn && Node.ELEMENT_NODE, { toString: Of, hasOwnProperty: xs } = Object.prototype, as = (t) => t === void 0, Ks = (t) => t === null, je = (t) => typeof t == "number", ls = (t) => typeof t == "string", Gn = (t) => typeof t == "boolean", Fe = (t) => typeof t == "function", qe = (t) => Array.isArray(t), Lt = (t) => typeof t == "object" && !qe(t) && !Ks(t), is = (t) => {
252
+ }, zn = typeof window < "u" && typeof document < "u", Ae = zn ? window : {}, Pn = Math.max, pr = Math.min, Cs = Math.round, Jt = Math.abs, fn = Math.sign, jn = Ae.cancelAnimationFrame, Gs = Ae.requestAnimationFrame, Qt = Ae.setTimeout, Es = Ae.clearTimeout, rs = (t) => typeof Ae[t] < "u" ? Ae[t] : void 0, vr = rs("MutationObserver"), hn = rs("IntersectionObserver"), Zt = rs("ResizeObserver"), Ts = rs("ScrollTimeline"), qn = zn && Node.ELEMENT_NODE, { toString: Of, hasOwnProperty: xs } = Object.prototype, as = (t) => t === void 0, Ks = (t) => t === null, je = (t) => typeof t == "number", ls = (t) => typeof t == "string", Gn = (t) => typeof t == "boolean", Fe = (t) => typeof t == "function", qe = (t) => Array.isArray(t), Lt = (t) => typeof t == "object" && !qe(t) && !Ks(t), is = (t) => {
253
253
  const e = !!t && t.length, s = je(e) && e > -1 && e % 1 == 0;
254
254
  return qe(t) || !Fe(t) && s ? e > 0 && Lt(t) ? e - 1 in t : !0 : !1;
255
255
  }, es = (t) => {
@@ -276,7 +276,7 @@ function ce(t, e) {
276
276
  else t && ce(Object.keys(t), (s) => e(t[s], s, t));
277
277
  return t;
278
278
  }
279
- const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e, s) => (!ls(e) && is(e) ? Array.prototype.push.apply(t, e) : t.push(e), t), dt = (t) => Array.from(t || []), Kn = (t) => qe(t) ? t : [t], Ms = (t) => !!t && !t.length, vn = (t) => dt(new Set(t)), Ie = (t, e, s) => {
279
+ const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e, s) => (!ls(e) && is(e) ? Array.prototype.push.apply(t, e) : t.push(e), t), dt = (t) => Array.from(t || []), Kn = (t) => qe(t) ? t : [t], Ms = (t) => !!t && !t.length, pn = (t) => dt(new Set(t)), Ie = (t, e, s) => {
280
280
  ce(t, (n) => n && n.apply(void 0, e || [])), !s && (t.length = 0);
281
281
  }, Wn = "paddingTop", Yn = "paddingRight", Xn = "paddingLeft", Jn = "paddingBottom", Qn = "marginLeft", Zn = "marginRight", eo = "marginBottom", gr = "overflowX", _r = "overflowY", bt = "width", yt = "height", ot = "visible", ut = "hidden", wt = "scroll", xr = (t) => {
282
282
  const e = String(t || "");
@@ -302,18 +302,18 @@ const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e,
302
302
  let i, d, l, u, h = at;
303
303
  const m = function(b) {
304
304
  h(), Es(i), u = i = d = void 0, h = at, t.apply(this, b);
305
- }, p = (y) => c && d ? c(d, y) : y, v = () => {
306
- h !== at && m(p(l) || l);
305
+ }, v = (y) => c && d ? c(d, y) : y, p = () => {
306
+ h !== at && m(v(l) || l);
307
307
  }, x = function() {
308
308
  const b = dt(arguments), A = Fe(s) ? s() : s;
309
309
  if (je(A) && A >= 0) {
310
- const U = Fe(r) ? r() : r, B = je(U) && U >= 0, D = A > 0 ? Qt : Gs, L = A > 0 ? Es : jn, E = p(b) || b, O = m.bind(0, E);
310
+ const U = Fe(r) ? r() : r, B = je(U) && U >= 0, D = A > 0 ? Qt : Gs, L = A > 0 ? Es : jn, E = v(b) || b, O = m.bind(0, E);
311
311
  let T;
312
- h(), n && !u ? (O(), u = !0, T = D(() => u = void 0, A)) : (T = D(O, A), B && !i && (i = Qt(v, U))), h = () => L(T), d = l = E;
312
+ h(), n && !u ? (O(), u = !0, T = D(() => u = void 0, A)) : (T = D(O, A), B && !i && (i = Qt(p, U))), h = () => L(T), d = l = E;
313
313
  } else
314
314
  m(b);
315
315
  };
316
- return x.S = v, x;
316
+ return x.S = p, x;
317
317
  }, so = (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) => {
@@ -321,13 +321,13 @@ const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e,
321
321
  const m = l[h];
322
322
  if (t === m)
323
323
  return !0;
324
- const p = qe(m);
324
+ const v = qe(m);
325
325
  if (m && es(m)) {
326
- const v = t[h];
327
- let x = v;
328
- p && !qe(v) ? x = [] : !p && !es(v) && (x = {}), t[h] = re(x, m);
326
+ const p = t[h];
327
+ let x = p;
328
+ v && !qe(p) ? x = [] : !v && !es(p) && (x = {}), t[h] = re(x, m);
329
329
  } else
330
- t[h] = p ? m.slice() : m;
330
+ t[h] = v ? m.slice() : m;
331
331
  });
332
332
  }), t;
333
333
  }, no = (t, e) => ce(re({}, t), (s, r, n) => {
@@ -336,7 +336,7 @@ const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e,
336
336
  for (const e in t)
337
337
  return !1;
338
338
  return !0;
339
- }, Ds = (t, e, s) => Pn(t, vr(e, s)), ht = (t) => dt(new Set((qe(t) ? t : (t || "").split(" ")).filter((e) => e))), Xs = (t, e) => t && t.getAttribute(e), pn = (t, e) => t && t.hasAttribute(e), Xe = (t, e, s) => {
339
+ }, Ds = (t, e, s) => Pn(t, pr(e, s)), ht = (t) => dt(new Set((qe(t) ? t : (t || "").split(" ")).filter((e) => e))), Xs = (t, e) => t && t.getAttribute(e), vn = (t, e) => t && t.hasAttribute(e), Xe = (t, e, s) => {
340
340
  ce(ht(e), (r) => {
341
341
  t && t.setAttribute(r, String(s || ""));
342
342
  });
@@ -402,7 +402,7 @@ function Vt(t, e) {
402
402
  }
403
403
  });
404
404
  }
405
- function vt(t, e, s) {
405
+ function pt(t, e, s) {
406
406
  const r = ls(e);
407
407
  let n = r ? "" : {};
408
408
  if (t) {
@@ -412,7 +412,7 @@ function vt(t, e, s) {
412
412
  return n;
413
413
  }
414
414
  const bn = (t, e, s) => {
415
- const r = e ? `${e}-` : "", n = s ? `-${s}` : "", c = `${r}top${n}`, i = `${r}right${n}`, d = `${r}bottom${n}`, l = `${r}left${n}`, u = vt(t, [c, i, d, l]);
415
+ const r = e ? `${e}-` : "", n = s ? `-${s}` : "", c = `${r}top${n}`, i = `${r}right${n}`, d = `${r}bottom${n}`, l = `${r}left${n}`, u = pt(t, [c, i, d, l]);
416
416
  return {
417
417
  t: qt(u[c]),
418
418
  r: qt(u[i]),
@@ -426,7 +426,7 @@ const bn = (t, e, s) => {
426
426
  w: e[`${t}Width`],
427
427
  h: e[`${t}Height`]
428
428
  } : Sr, Cr = (t) => ms("inner", t || Ae), Mt = J(ms, "offset"), mo = J(ms, "client"), Bs = J(ms, "scroll"), tn = (t) => {
429
- const e = parseFloat(vt(t, bt)) || 0, s = parseFloat(vt(t, yt)) || 0;
429
+ const e = parseFloat(pt(t, bt)) || 0, s = parseFloat(pt(t, yt)) || 0;
430
430
  return {
431
431
  w: e - Cs(e),
432
432
  h: s - Cs(s)
@@ -450,7 +450,7 @@ const bn = (t, e, s) => {
450
450
  } : s;
451
451
  return t && t.addEventListener(u, h, l), J(yn, t, u, h, i);
452
452
  }));
453
- }, ho = (t) => t.stopPropagation(), Fs = (t) => t.preventDefault(), vo = (t) => ho(t) || Fs(t), Pe = (t, e) => {
453
+ }, ho = (t) => t.stopPropagation(), Fs = (t) => t.preventDefault(), po = (t) => ho(t) || Fs(t), Pe = (t, e) => {
454
454
  const { x: s, y: r } = je(e) ? {
455
455
  x: e,
456
456
  y: e
@@ -459,7 +459,7 @@ const bn = (t, e, s) => {
459
459
  }, He = (t) => ({
460
460
  x: t.scrollLeft,
461
461
  y: t.scrollTop
462
- }), po = () => ({
462
+ }), vo = () => ({
463
463
  T: {
464
464
  x: 0,
465
465
  y: 0
@@ -469,10 +469,10 @@ const bn = (t, e, s) => {
469
469
  y: 0
470
470
  }
471
471
  }), Tr = (t, e) => {
472
- const { T: s, D: r } = t, { w: n, h: c } = e, i = (m, p, v) => {
473
- let x = fn(m) * v, y = fn(p) * v;
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;
474
474
  if (x === y) {
475
- const b = Jt(m), A = Jt(p);
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];
@@ -592,17 +592,17 @@ const Kr = () => {
592
592
  let U = !1;
593
593
  const B = Zs(k, Gt);
594
594
  try {
595
- U = vt(k, "scrollbar-width") === "none" || vt(k, "display", "::-webkit-scrollbar") === "none";
595
+ U = pt(k, "scrollbar-width") === "none" || pt(k, "display", "::-webkit-scrollbar") === "none";
596
596
  } catch {
597
597
  }
598
598
  return B(), U;
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 = uo(`<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), p = {
602
+ }, J(t, n, c, !0)), [h] = u(), m = e(n), v = {
603
603
  x: h.x === 0,
604
604
  y: h.y === 0
605
- }, v = {
605
+ }, p = {
606
606
  elements: {
607
607
  host: null,
608
608
  padding: !m,
@@ -616,22 +616,22 @@ const Kr = () => {
616
616
  nativeScrollbarsOverlaid: !1,
617
617
  body: null
618
618
  }
619
- }, x = re({}, Mr), y = J(re, {}, x), b = J(re, {}, v), A = {
619
+ }, x = re({}, Mr), y = J(re, {}, x), b = J(re, {}, p), A = {
620
620
  k: h,
621
- M: p,
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(v, k) && b(),
626
+ U: (k) => re(p, k) && b(),
627
627
  N: y,
628
628
  q: (k) => re(x, k) && y(),
629
- B: re({}, v),
629
+ B: re({}, p),
630
630
  F: re({}, x)
631
631
  };
632
632
  if (Ue(n, "style"), it(n), fe(Ae, "resize", () => {
633
633
  d("r", []);
634
- }), Fe(Ae.matchMedia) && !m && (!p.x || !p.y)) {
634
+ }), Fe(Ae.matchMedia) && !m && (!v.x || !v.y)) {
635
635
  const k = (U) => {
636
636
  const B = Ae.matchMedia(`(resolution: ${Ae.devicePixelRatio}dppx)`);
637
637
  fe(B, "change", () => {
@@ -653,8 +653,8 @@ const Kr = () => {
653
653
  const n = as(r) ? s : r, c = yo(t, n);
654
654
  return !!c && (ts(c) ? c : e.apply(0, t));
655
655
  }, Yr = (t, e) => {
656
- const { nativeScrollbarsOverlaid: s, body: r } = e || {}, { M: n, R: c, P: i } = Ge(), { nativeScrollbarsOverlaid: d, body: l } = i().cancel, u = s ?? d, h = as(r) ? l : r, m = (n.x || n.y) && u, p = t && (Ks(h) ? !c : h);
657
- return !!m || !!p;
656
+ const { nativeScrollbarsOverlaid: s, body: r } = e || {}, { M: n, R: c, P: i } = Ge(), { 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);
657
+ return !!m || !!v;
658
658
  }, on = /* @__PURE__ */ new WeakMap(), Xr = (t, e) => {
659
659
  on.set(t, e);
660
660
  }, Jr = (t) => {
@@ -670,14 +670,14 @@ const Kr = () => {
670
670
  return [m && h ? (d || lo)(h, t) : [], m];
671
671
  });
672
672
  ce(l, (u) => ce(u[0], (h) => {
673
- const m = u[1], p = n.get(h) || [];
673
+ const m = u[1], v = n.get(h) || [];
674
674
  if (t.contains(h) && m) {
675
675
  const x = fe(h, m, (y) => {
676
676
  r ? (x(), n.delete(h)) : e(y);
677
677
  });
678
- n.set(h, xe(p, x));
678
+ n.set(h, xe(v, x));
679
679
  } else
680
- Ie(p), n.delete(h);
680
+ Ie(v), n.delete(h);
681
681
  }));
682
682
  }
683
683
  };
@@ -687,7 +687,7 @@ const Kr = () => {
687
687
  const { j: c, X: i, Y: d, W: l, J: u, K: h } = r || {}, m = As(() => n && s(!0), {
688
688
  _: 33,
689
689
  p: 99
690
- }), [p, v] = Qr(t, m, d), x = c || [], y = i || [], b = Qe(x, y), A = (U, B) => {
690
+ }), [v, p] = Qr(t, m, d), x = c || [], y = i || [], b = Qe(x, y), A = (U, B) => {
691
691
  if (!Ms(B)) {
692
692
  const D = u || at, L = h || at, V = [], E = [];
693
693
  let O = !1, T = !1;
@@ -698,14 +698,14 @@ const Kr = () => {
698
698
  ce(R, (G) => xe(V, G)), ce(ne, (G) => xe(V, G)), T = T || N;
699
699
  }
700
700
  !e && F && ue && !D($, H, I, Y) && (xe(E, H), O = O || z);
701
- }), v((S) => vn(V).reduce((H, $) => (xe(H, lo(S, $)), ss($, S) ? xe(H, $) : H), [])), e)
701
+ }), p((S) => pn(V).reduce((H, $) => (xe(H, lo(S, $)), ss($, S) ? xe(H, $) : H), [])), e)
702
702
  return !U && T && s(!1), [!1];
703
703
  if (!Ms(E) || O) {
704
- const S = [vn(E), O];
704
+ const S = [pn(E), O];
705
705
  return !U && s.apply(0, S), S;
706
706
  }
707
707
  }
708
- }, k = new pr(J(A, !1));
708
+ }, k = new vr(J(A, !1));
709
709
  return [() => (k.observe(t, {
710
710
  attributes: !0,
711
711
  attributeOldValue: !0,
@@ -714,7 +714,7 @@ const Kr = () => {
714
714
  childList: e,
715
715
  characterData: e
716
716
  }), n = !0, () => {
717
- n && (p(), k.disconnect(), n = !1);
717
+ n && (v(), k.disconnect(), n = !1);
718
718
  }), () => {
719
719
  if (n)
720
720
  return m.S(), A(!0, k.takeRecords());
@@ -754,26 +754,26 @@ const Kr = () => {
754
754
  });
755
755
  return () => {
756
756
  const i = [], l = uo(`<div class="${sn}"><div class="${Rr}"></div></div>`)[0], u = l.firstChild, h = (m) => {
757
- const p = m instanceof ResizeObserverEntry;
758
- let v = !1, x = !1;
759
- if (p) {
757
+ const v = m instanceof ResizeObserverEntry;
758
+ let p = !1, x = !1;
759
+ if (v) {
760
760
  const [y, , b] = c(m.contentRect), A = Rs(y);
761
- x = fo(y, b), v = !x && !A;
761
+ x = fo(y, b), p = !x && !A;
762
762
  } else
763
763
  x = m === !0;
764
- v || e({
764
+ p || e({
765
765
  ft: !0,
766
766
  dt: x
767
767
  });
768
768
  };
769
769
  if (Zt) {
770
- const m = new Zt((p) => h(p.pop()));
770
+ const m = new Zt((v) => h(v.pop()));
771
771
  m.observe(u), xe(i, () => {
772
772
  m.disconnect();
773
773
  });
774
774
  } else if (n) {
775
- const [m, p] = n(u, h, r);
776
- xe(i, Qe([Zs(l, Br), fe(l, "animationstart", m)], p));
775
+ const [m, v] = n(u, h, r);
776
+ xe(i, Qe([Zs(l, Br), fe(l, "animationstart", m)], v));
777
777
  } else
778
778
  return at;
779
779
  return J(Ie, xe(i, Oe(t, l)));
@@ -807,7 +807,7 @@ const Kr = () => {
807
807
  }, () => s && d(!0, s.takeRecords())];
808
808
  }, aa = (t, e, s, r) => {
809
809
  let n, c, i, d, l, u;
810
- const h = `[${lt}]`, m = `[${nt}]`, p = [], v = ["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: E } = t, O = (C) => vt(C, "direction") === "rtl", T = {
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: E } = t, O = (C) => pt(C, "direction") === "rtl", T = {
811
811
  $t: !1,
812
812
  ct: O(y)
813
813
  }, S = Ge(), H = Ht(Eo), [$] = Ve({
@@ -822,7 +822,7 @@ const Kr = () => {
822
822
  w: Se.w + oe.w,
823
823
  h: Se.h + oe.h
824
824
  };
825
- }), w = B ? v : Qe(x, v), I = As(r, {
825
+ }), w = B ? p : Qe(x, p), I = As(r, {
826
826
  _: () => n,
827
827
  p: () => c,
828
828
  m(C, N) {
@@ -863,7 +863,7 @@ const Kr = () => {
863
863
  dt: !0
864
864
  }), [ue, z] = On(b, !1, F, {
865
865
  X: x,
866
- j: Qe(x, p)
866
+ j: Qe(x, v)
867
867
  }), q = D && Zt && new Zt((C) => {
868
868
  const N = C[C.length - 1].contentRect;
869
869
  de({
@@ -916,13 +916,13 @@ const Kr = () => {
916
916
  return R(K), K;
917
917
  }, T];
918
918
  }, la = (t, e, s, r) => {
919
- const { P: n } = Ge(), { scrollbars: c } = n(), { slot: i } = c, { vt: d, ht: l, ot: u, Dt: h, gt: m, yt: p, nt: v } = e, { scrollbars: x } = h ? {} : t, { slot: y } = x || {}, b = /* @__PURE__ */ new Map(), A = (z) => Ts && new Ts({
919
+ const { P: n } = Ge(), { 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({
920
920
  source: m,
921
921
  axis: z
922
922
  }), k = {
923
923
  x: A("x"),
924
924
  y: A("y")
925
- }, U = wo([d, l, u], () => v && p ? d : l, i, y), B = (z, q) => {
925
+ }, U = wo([d, l, u], () => p && 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 Kr = () => {
975
975
  }) : T(z, (Z) => [Z.Mt, {
976
976
  transform: K(Z, kn(j, He(m))[C])
977
977
  }]);
978
- }, $ = (z) => v && !p && kt(z) === u, w = [], I = [], R = [], ne = (z, q, j) => {
978
+ }, $ = (z) => p && !v && kt(z) === u, w = [], I = [], R = [], ne = (z, q, j) => {
979
979
  const C = Gn(j), N = C ? j : !0, G = C ? !j : !0;
980
980
  N && O(I, z, q), G && O(R, z, q);
981
981
  }, de = () => {
@@ -983,7 +983,7 @@ const Kr = () => {
983
983
  }, le = () => {
984
984
  H(I, !0), H(R);
985
985
  }, F = () => {
986
- if (v) {
986
+ if (p) {
987
987
  const { Rt: z, Pt: q } = s, j = 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 Kr = () => {
1038
1038
  }
1039
1039
  }, ue];
1040
1040
  }, ia = (t, e, s, r) => (n, c, i, d) => {
1041
- const { ht: l, ot: u, nt: h, gt: m, Jt: p, Ot: v } = e, { Lt: x, kt: y, Mt: b } = n, [A, k] = mt(333), [U, B] = mt(444), [D, L] = mt(), V = J(i, [n], d), E = ($) => {
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), E = ($) => {
1042
1042
  Fe(m.scrollBy) && m.scrollBy({
1043
1043
  behavior: "smooth",
1044
1044
  left: $.x,
@@ -1057,7 +1057,7 @@ const Kr = () => {
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 = de(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 = () => v(Or, !0), ge = be(), Te = [() => {
1060
+ }, be = () => p(Or, !0), ge = be(), Te = [() => {
1061
1061
  const _e = He(m);
1062
1062
  ge();
1063
1063
  const Me = He(m), Le = {
@@ -1065,7 +1065,7 @@ const Kr = () => {
1065
1065
  y: Me.y - _e.y
1066
1066
  };
1067
1067
  (Jt(Le.x) > 3 || Jt(Le.y) > 3) && (be(), Pe(m, _e), E(Le), U(ge));
1068
- }, fe(p, $, De), fe(p, "selectstart", (_e) => Fs(_e), {
1068
+ }, fe(v, $, De), fe(v, "selectstart", (_e) => Fs(_e), {
1069
1069
  H: !1
1070
1070
  }), fe(y, $, De), fe(y, "pointermove", (_e) => {
1071
1071
  const Me = _e[w] - ye;
@@ -1088,7 +1088,7 @@ const Kr = () => {
1088
1088
  c(An, !1);
1089
1089
  }), !h && fe(x, "mousedown", () => {
1090
1090
  const $ = Os();
1091
- (pn($, nt) || pn($, lt) || $ === document.body) && Qt(J(Is, u), 25);
1091
+ (vn($, nt) || vn($, lt) || $ === document.body) && Qt(J(Is, u), 25);
1092
1092
  }), fe(x, "wheel", ($) => {
1093
1093
  const { deltaX: w, deltaY: I, deltaMode: R } = $;
1094
1094
  S && R === 0 && kt(x) === l && E({
@@ -1109,7 +1109,7 @@ const Kr = () => {
1109
1109
  }
1110
1110
  }), fe(b, "transitionend transitioncancel", ($) => {
1111
1111
  H($) && (L(), V());
1112
- }), fe(x, "pointerdown", J(fe, p, "click", vo, {
1112
+ }), fe(x, "pointerdown", J(fe, v, "click", po, {
1113
1113
  A: !0,
1114
1114
  I: !0,
1115
1115
  H: !1
@@ -1117,13 +1117,13 @@ const Kr = () => {
1117
1117
  I: !0
1118
1118
  }), T(), k, B, L]);
1119
1119
  }, ca = (t, e, s, r, n, c) => {
1120
- let i, d, l, u, h, m = at, p = 0;
1121
- const v = (F) => F.pointerType === "mouse", [x, y] = mt(), [b, A] = mt(100), [k, U] = mt(100), [B, D] = mt(() => p), [L, V] = la(t, n, r, ia(e, n, r, (F) => v(F) && R())), { ht: E, Kt: O, yt: T } = n, { Bt: S, Ut: H, Nt: $, qt: w } = L, I = (F, ee) => {
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] = la(t, n, r, ia(e, n, r, (F) => p(F) && R())), { ht: E, Kt: O, yt: T } = n, { Bt: S, Ut: H, Nt: $, qt: w } = L, I = (F, ee) => {
1122
1122
  if (D(), F)
1123
1123
  S(Ln);
1124
1124
  else {
1125
1125
  const te = J(S, Ln, !0);
1126
- p > 0 && !ee ? B(te) : te();
1126
+ v > 0 && !ee ? B(te) : te();
1127
1127
  }
1128
1128
  }, R = () => {
1129
1129
  (l ? !i : !u) && (I(!0), b(() => {
@@ -1132,35 +1132,35 @@ const Kr = () => {
1132
1132
  }, ne = (F) => {
1133
1133
  S(zs, F, !0), S(zs, F, !1);
1134
1134
  }, de = (F) => {
1135
- v(F) && (i = l, l && I(!0));
1135
+ p(F) && (i = l, l && I(!0));
1136
1136
  }, le = [D, A, U, y, () => m(), fe(E, "pointerover", de, {
1137
1137
  A: !0
1138
1138
  }), fe(E, "pointerenter", de), fe(E, "pointerleave", (F) => {
1139
- v(F) && (i = !1, l && I(!1));
1139
+ p(F) && (i = !1, l && I(!1));
1140
1140
  }), fe(E, "pointermove", (F) => {
1141
- v(F) && d && R();
1141
+ p(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: Y }) => {
1148
- const { Zt: ue, tn: z, nn: q, sn: j } = Y || {}, { Ct: C, dt: N } = te || {}, { ct: G } = s, { M: K } = Ge(), { 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, pt] = F("scrollbars.clickScroll"), [Bt, hs] = F("overflow"), vs = N && !ee, ps = ie.x || ie.y, Ne = ue || z || j || C || ee, gs = q || Re || hs, Rt = ye && K.x && K.y, Ft = (tt, Et, Tt) => {
1148
+ const { Zt: ue, tn: z, nn: q, sn: j } = Y || {}, { Ct: C, dt: N } = te || {}, { ct: G } = s, { M: K } = Ge(), { 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 = ue || z || j || 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(Pr, It, Tt), It;
1151
1151
  };
1152
- if (p = Te, vs && (be && ps ? (ne(!1), m(), k(() => {
1152
+ if (v = Te, ps && (be && vs ? (ne(!1), m(), k(() => {
1153
1153
  m = fe(O, "scroll", J(ne, !0), {
1154
1154
  A: !0
1155
1155
  });
1156
- })) : ne(!0)), Se && S(Ir, 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(Gr, _e), pt && S(qr, Le), gs) {
1156
+ })) : ne(!0)), Se && S(Ir, 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(Gr, _e), vt && S(qr, Le), gs) {
1157
1157
  const tt = Ft(Bt.x, Z.x, !0), Et = Ft(Bt.y, Z.y, !1);
1158
1158
  S(jr, !(tt && Et));
1159
1159
  }
1160
1160
  Ne && (H(), $(), w(), S(Dn, !ie.x, !0), S(Dn, !ie.y, !1), S(Nr, G && !T));
1161
1161
  }, {}, L];
1162
1162
  }, da = (t) => {
1163
- const e = Ge(), { 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: p, padding: v, viewport: x, content: y } = m || {}, b = u ? t : h.target, A = io(b), k = ss(b, "textarea"), U = b.ownerDocument, B = U.documentElement, D = () => U.defaultView || Ae, L = J(Wr, [b]), V = J(wo, [b]), E = J(xt, ""), O = J(L, E, d), T = J(V, E, l), S = O(x), H = S === b, $ = H && A, w = !H && T(y), I = !H && S === w, R = $ ? B : S, ne = k ? L(E, c, p) : b, de = $ ? R : ne, le = !H && V(E, i, v), F = !I && w, ee = [F, R, le, de].map((oe) => ts(oe) && !kt(oe) && oe), te = (oe) => oe && Ws(ee, oe), Y = te(R) ? b : R, ue = {
1163
+ const e = Ge(), { 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 = io(b), k = ss(b, "textarea"), U = b.ownerDocument, B = U.documentElement, D = () => U.defaultView || Ae, L = J(Wr, [b]), V = J(wo, [b]), E = J(xt, ""), O = J(L, E, d), T = J(V, E, l), S = O(x), H = S === b, $ = H && A, w = !H && T(y), I = !H && S === w, R = $ ? B : S, ne = k ? L(E, c, v) : b, de = $ ? R : ne, le = !H && V(E, i, p), F = !I && w, ee = [F, R, le, de].map((oe) => ts(oe) && !kt(oe) && oe), te = (oe) => oe && Ws(ee, oe), Y = te(R) ? b : R, ue = {
1164
1164
  vt: b,
1165
1165
  ht: de,
1166
1166
  ot: R,
@@ -1185,7 +1185,7 @@ const Kr = () => {
1185
1185
  return [ue, () => {
1186
1186
  const oe = D(), we = Os(), Ee = (ge) => {
1187
1187
  Oe(kt(ge), Vs(ge)), it(ge);
1188
- }, Re = (ge) => fe(ge, "focusin focusout focus blur", vo, {
1188
+ }, Re = (ge) => fe(ge, "focusin focusout focus blur", po, {
1189
1189
  I: !0,
1190
1190
  H: !1
1191
1191
  }), ke = "tabindex", De = Xs(C, ke), be = Re(we);
@@ -1207,12 +1207,12 @@ const Kr = () => {
1207
1207
  o: bn()
1208
1208
  }, J(bn, t, "padding", ""));
1209
1209
  return ({ It: d, Gt: l, an: u, Tt: h }) => {
1210
- let [m, p] = i(h);
1211
- const { R: v } = Ge(), { ft: x, Ht: y, Ct: b } = l || {}, { ct: A } = u, [k, U] = d("paddingAbsolute");
1212
- (x || p || (h || y)) && ([m, p] = c(h));
1213
- const D = !r && (U || b || p);
1210
+ let [m, v] = i(h);
1211
+ const { R: p } = Ge(), { ft: x, Ht: y, Ct: b } = l || {}, { ct: A } = u, [k, U] = d("paddingAbsolute");
1212
+ (x || v || (h || y)) && ([m, v] = c(h));
1213
+ const D = !r && (U || b || v);
1214
1214
  if (D) {
1215
- const L = !k || !e && !v, V = m.r + m.l, E = m.t + m.b, O = {
1215
+ const L = !k || !e && !p, V = m.r + m.l, E = m.t + m.b, O = {
1216
1216
  [Zn]: L && !A ? -V : 0,
1217
1217
  [eo]: L ? -E : 0,
1218
1218
  [Qn]: L && A ? -V : 0,
@@ -1237,7 +1237,7 @@ const Kr = () => {
1237
1237
  };
1238
1238
  };
1239
1239
  }, fa = (t, e) => {
1240
- const s = Ge(), { ht: r, cn: n, ot: c, nt: i, Kt: d, gt: l, yt: u, Ot: h, ln: m } = t, { R: p } = s, v = u && i, x = J(Pn, 0), y = ["display", "direction", "flexDirection", "writingMode"], b = {
1240
+ const s = Ge(), { 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 = {
1241
1241
  i: to,
1242
1242
  o: {
1243
1243
  w: 0,
@@ -1247,7 +1247,7 @@ const Kr = () => {
1247
1247
  i: Wt,
1248
1248
  o: {}
1249
1249
  }, k = (F) => {
1250
- h(_o, !v && F);
1250
+ h(_o, !p && F);
1251
1251
  }, U = (F, ee) => {
1252
1252
  const te = Ae.devicePixelRatio % 1 !== 0 ? 1 : 0, Y = {
1253
1253
  w: x(F.w - ee.w),
@@ -1260,9 +1260,9 @@ const Kr = () => {
1260
1260
  }, [B, D] = Ve(b, J(tn, c)), [L, V] = Ve(b, J(Bs, c)), [E, O] = Ve(b), [T] = Ve(A), [S, H] = Ve(b), [$] = Ve(A), [w] = Ve({
1261
1261
  i: (F, ee) => ds(F, ee, y),
1262
1262
  o: {}
1263
- }, () => Er(c) ? vt(c, y) : {}), [I, R] = Ve({
1263
+ }, () => Er(c) ? pt(c, y) : {}), [I, R] = Ve({
1264
1264
  i: (F, ee) => Wt(F.T, ee.T) && Wt(F.D, ee.D),
1265
- o: po()
1265
+ o: vo()
1266
1266
  }, () => {
1267
1267
  k(!0);
1268
1268
  const F = He(l), ee = h(Hr, !0), te = fe(d, wt, (j) => {
@@ -1298,9 +1298,9 @@ const Kr = () => {
1298
1298
  return ({ It: F, Gt: ee, an: te, Tt: Y }, { _n: ue }) => {
1299
1299
  const { ft: z, Ht: q, Ct: j, dt: C, zt: N } = ee || {}, G = ne && ne.tt(t, e, te, s, F), { it: K, ut: Z, _t: ie } = G || {}, [ye, Se] = sa(F, s), [oe, we] = F("overflow"), Ee = ns(oe.x), Re = ns(oe.y), ke = z || ue || q || j || N || Se;
1300
1300
  let De = D(Y), be = V(Y), ge = O(Y), Te = H(Y);
1301
- if (Se && p && h(xo, !ye), ke) {
1301
+ if (Se && v && h(xo, !ye), ke) {
1302
1302
  Qs(r, lt, Xt) && k(!0);
1303
- const [dn] = Z ? Z() : [], [Nt] = De = B(Y), [Ut] = be = L(Y), zt = mo(c), Pt = v && Cr(m()), Uo = {
1303
+ const [dn] = Z ? Z() : [], [Nt] = De = B(Y), [Ut] = be = L(Y), zt = mo(c), Pt = p && Cr(m()), Uo = {
1304
1304
  w: x(Ut.w + Nt.w),
1305
1305
  h: x(Ut.h + Nt.h)
1306
1306
  }, un = {
@@ -1309,11 +1309,11 @@ const Kr = () => {
1309
1309
  };
1310
1310
  dn && dn(), Te = S(un), ge = E(U(Uo, un), Y);
1311
1311
  }
1312
- const [_e, Me] = Te, [Le, pt] = ge, [Bt, hs] = be, [vs, ps] = De, [Ne, gs] = T({
1312
+ const [_e, Me] = Te, [Le, vt] = ge, [Bt, hs] = be, [ps, vs] = De, [Ne, gs] = T({
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 = ue || j || N || ps || hs || Me || pt || we || Se || ke, tt = na(Ne, oe), [Et, Tt] = $(tt.G), [, It] = w(Y), cn = j || C || It || gs || Y, [Io, No] = cn ? I(Y) : R();
1316
- return Ft && (Tt && le(tt.G), ie && K && Vt(c, ie(tt, te, K(tt, Bt, vs)))), k(!1), Ls(r, lt, Xt, Rt), Ls(n, Us, Xt, Rt), re(e, {
1315
+ }), Rt = Ee && Re && (Ne.x || Ne.y) || Ee && Ne.x && !Ne.y || Re && Ne.y && !Ne.x, Ft = ue || j || N || vs || hs || Me || vt || we || Se || ke, tt = na(Ne, oe), [Et, Tt] = $(tt.G), [, It] = w(Y), cn = j || C || It || gs || Y, [Io, No] = cn ? I(Y) : R();
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: {
1319
1319
  x: _e.w,
@@ -1328,8 +1328,8 @@ const Kr = () => {
1328
1328
  }), {
1329
1329
  nn: Tt,
1330
1330
  Zt: Me,
1331
- tn: pt,
1332
- sn: No || pt,
1331
+ tn: vt,
1332
+ sn: No || vt,
1333
1333
  dn: cn
1334
1334
  };
1335
1335
  };
@@ -1367,18 +1367,18 @@ const Kr = () => {
1367
1367
  x: !1,
1368
1368
  y: !1
1369
1369
  },
1370
- Pt: po()
1370
+ Pt: vo()
1371
1371
  }, { vt: c, gt: i, nt: d } = e, { R: l, M: u } = Ge(), h = !l && (u.x || u.y), m = [ua(e), ma(e, n), fa(e, n)];
1372
- return [s, (p) => {
1373
- const v = {}, y = h && He(i);
1372
+ return [s, (v) => {
1373
+ const p = {}, y = h && He(i);
1374
1374
  return ce(m, (b) => {
1375
- re(v, b(p, v) || {});
1376
- }), Pe(i, y), !d && Pe(c, 0), v;
1375
+ re(p, b(v, p) || {});
1376
+ }), Pe(i, y), !d && Pe(c, 0), p;
1377
1377
  }, n, e, r];
1378
- }, va = (t, e, s, r, n) => {
1379
- const c = En(e, {}), [i, d, l, u, h] = ha(t), [m, p, v] = aa(u, l, c, (U) => {
1378
+ }, pa = (t, e, s, r, n) => {
1379
+ const c = En(e, {}), [i, d, l, u, h] = ha(t), [m, v, p] = aa(u, l, c, (U) => {
1380
1380
  k({}, U);
1381
- }), [x, y, , b] = ca(t, e, v, l, u, n), A = (U) => et(U).some((B) => !!U[B]), k = (U, B) => {
1381
+ }), [x, y, , b] = ca(t, e, p, 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: E } = U, O = D || {}, T = !!L, S = {
@@ -1388,10 +1388,10 @@ const Kr = () => {
1388
1388
  };
1389
1389
  if (E)
1390
1390
  return y(S), !1;
1391
- const H = B || p(re({}, S, {
1391
+ const H = B || v(re({}, S, {
1392
1392
  At: V
1393
1393
  })), $ = d(re({}, S, {
1394
- an: v,
1394
+ an: p,
1395
1395
  Gt: H
1396
1396
  }));
1397
1397
  y(re({}, S, {
@@ -1408,7 +1408,7 @@ const Kr = () => {
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: v,
1411
+ vn: p,
1412
1412
  hn: l
1413
1413
  }), {
1414
1414
  gn: u,
@@ -1421,9 +1421,9 @@ const Kr = () => {
1421
1421
  const l = [], u = {}, h = (T) => {
1422
1422
  const S = no(T), H = Ht(ea);
1423
1423
  return H ? H(S, !0) : S;
1424
- }, m = re({}, r(), h(e)), [p, v, x] = Ns(), [y, b, A] = Ns(s), k = (T, S) => {
1424
+ }, m = re({}, r(), h(e)), [v, p, x] = Ns(), [y, b, A] = Ns(s), k = (T, S) => {
1425
1425
  A(T, S), x(T, S);
1426
- }, [U, B, D, L, V] = va(t, m, () => d, ({ fn: T, Tt: S }, { Gt: H, Qt: $ }) => {
1426
+ }, [U, B, D, L, V] = pa(t, m, () => d, ({ fn: T, Tt: S }, { Gt: H, Qt: $ }) => {
1427
1427
  const { ft: w, Ct: I, xt: R, Ht: ne, Et: de, dt: le } = H, { Zt: F, tn: ee, nn: te, sn: Y } = $;
1428
1428
  k("updated", [O, {
1429
1429
  updateHints: {
@@ -1442,7 +1442,7 @@ const Kr = () => {
1442
1442
  force: !!S
1443
1443
  }]);
1444
1444
  }, (T) => k("scroll", [O, T])), E = (T) => {
1445
- Jr(c), Ie(l), d = !0, k("destroyed", [O, T]), v(), b();
1445
+ Jr(c), Ie(l), d = !0, k("destroyed", [O, T]), p(), b();
1446
1446
  }, O = {
1447
1447
  options(T, S) {
1448
1448
  if (T) {
@@ -1512,7 +1512,7 @@ const Kr = () => {
1512
1512
  destroy: J(E, !1),
1513
1513
  plugin: (T) => u[et(T)[0]]
1514
1514
  };
1515
- return xe(l, [V]), Xr(c, O), Co($o, ct, [O, p, u]), Yr(L.gn.yt, !n && t.cancel) ? (E(!0), O) : (xe(l, U()), k("initialized", [O]), O.update(!0), O);
1515
+ return xe(l, [V]), Xr(c, O), Co($o, ct, [O, v, u]), Yr(L.gn.yt, !n && t.cancel) ? (E(!0), O) : (xe(l, U()), k("initialized", [O]), O.update(!0), O);
1516
1516
  }
1517
1517
  return i;
1518
1518
  };
@@ -1539,10 +1539,10 @@ ct.env = () => {
1539
1539
  setDefaultOptions: u
1540
1540
  });
1541
1541
  };
1542
- function pa() {
1542
+ function va() {
1543
1543
  let t;
1544
- const e = M(null), s = Math.floor(Math.random() * 2 ** 32), r = M(!1), n = M([]), c = () => n.value, i = () => t.getSelection(), d = () => n.value.length, l = () => t.clearSelection(!0), u = M(), h = M(null), m = M(null), p = M(null);
1545
- function v() {
1544
+ const e = M(null), s = Math.floor(Math.random() * 2 ** 32), r = M(!1), n = M([]), c = () => n.value, i = () => t.getSelection(), d = () => n.value.length, l = () => t.clearSelection(!0), u = M(), h = M(null), m = M(null), v = M(null);
1545
+ function p() {
1546
1546
  t = new er({
1547
1547
  area: e.value,
1548
1548
  keyboardDrag: !1,
@@ -1591,7 +1591,7 @@ function pa() {
1591
1591
  );
1592
1592
  };
1593
1593
  return Ce(() => {
1594
- ct(p.value, {
1594
+ ct(v.value, {
1595
1595
  scrollbars: {
1596
1596
  theme: "vf-theme-dark dark:vf-theme-light"
1597
1597
  },
@@ -1612,7 +1612,7 @@ function pa() {
1612
1612
  left: 0
1613
1613
  });
1614
1614
  }
1615
- }), v(), k(), new ResizeObserver(k).observe(e.value), e.value.addEventListener("scroll", U), t.subscribe("DS:scroll", ({ isDragging: B }) => B || U());
1615
+ }), p(), 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(() => {
@@ -1622,7 +1622,7 @@ function pa() {
1622
1622
  explorerId: s,
1623
1623
  isDraggingRef: r,
1624
1624
  scrollBar: m,
1625
- scrollBarContainer: p,
1625
+ scrollBarContainer: v,
1626
1626
  getSelected: c,
1627
1627
  getSelection: i,
1628
1628
  selectAll: x,
@@ -1641,7 +1641,7 @@ function ga(t, e) {
1641
1641
  dirname: r,
1642
1642
  files: []
1643
1643
  });
1644
- function p() {
1644
+ function v() {
1645
1645
  let k = [], U = [], B = r.value ?? s.value + "://";
1646
1646
  B.length === 0 && (n.value = []), B.replace(s.value + "://", "").split("/").forEach(function(V) {
1647
1647
  k.push(V), k.join("/") !== "" && U.push({
@@ -1654,8 +1654,8 @@ function ga(t, e) {
1654
1654
  const [D, L] = x(U, l.value);
1655
1655
  i.value = L, n.value = D;
1656
1656
  }
1657
- function v(k) {
1658
- l.value = k, p();
1657
+ function p(k) {
1658
+ l.value = k, v();
1659
1659
  }
1660
1660
  function x(k, U) {
1661
1661
  return k.length > U ? [k.slice(-U), k.slice(0, -U)] : [k, []];
@@ -1671,7 +1671,7 @@ function ga(t, e) {
1671
1671
  return ((k = n.value[n.value.length - 2]) == null ? void 0 : k.path) ?? s.value + "://";
1672
1672
  });
1673
1673
  return Ce(() => {
1674
- }), Je(r, p), Ce(p), {
1674
+ }), Je(r, v), Ce(v), {
1675
1675
  adapter: s,
1676
1676
  path: r,
1677
1677
  loading: u,
@@ -1679,7 +1679,7 @@ function ga(t, e) {
1679
1679
  data: m,
1680
1680
  breadcrumbs: n,
1681
1681
  breadcrumbItems: c,
1682
- limitBreadcrumbItems: v,
1682
+ limitBreadcrumbItems: p,
1683
1683
  hiddenBreadcrumbs: i,
1684
1684
  showHiddenBreadcrumbs: d,
1685
1685
  toggleHiddenBreadcrumbs: y,
@@ -1688,7 +1688,7 @@ function ga(t, e) {
1688
1688
  };
1689
1689
  }
1690
1690
  const _a = (t, e) => {
1691
- const s = lr(t.id), r = Zo(), n = s.getStore("metricUnits", !1), c = fr(s, t.theme), i = e.i18n, d = t.locale ?? e.locale, l = s.getStore("adapter"), u = (p) => Array.isArray(p) ? p : dr, h = s.getStore("persist-path", t.persist), m = h ? s.getStore("path", t.path) : t.path;
1691
+ const s = lr(t.id), r = Zo(), n = s.getStore("metricUnits", !1), c = fr(s, t.theme), i = e.i18n, d = t.locale ?? e.locale, l = s.getStore("adapter"), u = (v) => Array.isArray(v) ? v : dr, h = s.getStore("persist-path", t.persist), m = h ? s.getStore("path", t.path) : t.path;
1692
1692
  return Ot({
1693
1693
  /**
1694
1694
  * Core properties
@@ -1708,7 +1708,7 @@ const _a = (t, e) => {
1708
1708
  // modal state
1709
1709
  modal: hr(),
1710
1710
  // dragSelect object, it is responsible for selecting items
1711
- dragSelect: Ze(() => pa()),
1711
+ dragSelect: Ze(() => va()),
1712
1712
  // http object
1713
1713
  requester: ar(t.request),
1714
1714
  // active features
@@ -1886,10 +1886,10 @@ const gt = /* @__PURE__ */ ka($a, [["render", Ca]]), Ea = { class: "sm:flex sm:i
1886
1886
  }, dl = { class: "h-6 items-center" }, ul = {
1887
1887
  for: "language",
1888
1888
  class: "flex w-full font-medium text-gray-900 dark:text-gray-400 text-sm text-nowrap"
1889
- }, ml = { class: "flex text-sm" }, fl = ["label"], hl = ["value"], vl = {
1889
+ }, ml = { class: "flex text-sm" }, fl = ["label"], hl = ["value"], pl = {
1890
1890
  key: 2,
1891
1891
  class: "mt-3"
1892
- }, pl = { class: "space-y-2 sm:w-1/2" }, gl = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, _l = /* @__PURE__ */ o("kbd", null, "F2", -1), xl = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, bl = /* @__PURE__ */ o("kbd", null, "F5", -1), yl = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, wl = /* @__PURE__ */ o("kbd", null, "Del", -1), kl = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, $l = /* @__PURE__ */ o("div", null, [
1892
+ }, vl = { class: "space-y-2 sm:w-1/2" }, gl = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, _l = /* @__PURE__ */ o("kbd", null, "F2", -1), xl = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, bl = /* @__PURE__ */ o("kbd", null, "F5", -1), yl = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, wl = /* @__PURE__ */ o("kbd", null, "Del", -1), kl = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, $l = /* @__PURE__ */ o("div", null, [
1893
1893
  /* @__PURE__ */ o("kbd", null, "Esc")
1894
1894
  ], -1), Sl = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, Cl = /* @__PURE__ */ o("div", null, [
1895
1895
  /* @__PURE__ */ o("kbd", null, "Ctrl"),
@@ -1931,9 +1931,9 @@ const gt = /* @__PURE__ */ ka($a, [["render", Ca]]), Ea = { class: "sm:flex sm:i
1931
1931
  r(), location.reload();
1932
1932
  }, m = (B) => {
1933
1933
  e.theme.set(B), e.emitter.emit("vf-theme-saved");
1934
- }, p = () => {
1935
- e.metricUnits = !e.metricUnits, e.filesize = e.metricUnits ? Un : Nn, s("metricUnits", e.metricUnits), e.emitter.emit("vf-metric-units-saved");
1936
1934
  }, v = () => {
1935
+ e.metricUnits = !e.metricUnits, e.filesize = e.metricUnits ? Un : Nn, s("metricUnits", e.metricUnits), e.emitter.emit("vf-metric-units-saved");
1936
+ }, p = () => {
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");
@@ -1995,12 +1995,12 @@ const gt = /* @__PURE__ */ ka($a, [["render", Ca]]), Ea = { class: "sm:flex sm:i
1995
1995
  o("div", Na, [
1996
1996
  o("div", Ua, [
1997
1997
  o("div", za, [
1998
- pe(o("input", {
1998
+ ve(o("input", {
1999
1999
  id: "metric_unit",
2000
2000
  name: "metric_unit",
2001
2001
  type: "checkbox",
2002
2002
  "onUpdate:modelValue": D[0] || (D[0] = (L) => a(e).metricUnits = L),
2003
- onClick: p,
2003
+ onClick: v,
2004
2004
  class: "h-4 w-4 rounded border-gray-300 text-indigo-600 dark:accent-slate-400 focus:ring-indigo-600"
2005
2005
  }, null, 512), [
2006
2006
  [jt, a(e).metricUnits]
@@ -2023,12 +2023,12 @@ const gt = /* @__PURE__ */ ka($a, [["render", Ca]]), Ea = { class: "sm:flex sm:i
2023
2023
  ]),
2024
2024
  o("div", qa, [
2025
2025
  o("div", Ga, [
2026
- pe(o("input", {
2026
+ ve(o("input", {
2027
2027
  id: "large_icons",
2028
2028
  name: "large_icons",
2029
2029
  type: "checkbox",
2030
2030
  "onUpdate:modelValue": D[1] || (D[1] = (L) => a(e).compactListView = L),
2031
- onClick: v,
2031
+ onClick: p,
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
  [jt, a(e).compactListView]
@@ -2051,7 +2051,7 @@ const gt = /* @__PURE__ */ ka($a, [["render", Ca]]), Ea = { class: "sm:flex sm:i
2051
2051
  ]),
2052
2052
  o("div", Ya, [
2053
2053
  o("div", Xa, [
2054
- pe(o("input", {
2054
+ ve(o("input", {
2055
2055
  id: "persist_path",
2056
2056
  name: "persist_path",
2057
2057
  type: "checkbox",
@@ -2079,7 +2079,7 @@ const gt = /* @__PURE__ */ ka($a, [["render", Ca]]), Ea = { class: "sm:flex sm:i
2079
2079
  ]),
2080
2080
  o("div", Za, [
2081
2081
  o("div", el, [
2082
- pe(o("input", {
2082
+ ve(o("input", {
2083
2083
  id: "show_thumbnails",
2084
2084
  name: "show_thumbnails",
2085
2085
  type: "checkbox",
@@ -2110,7 +2110,7 @@ const gt = /* @__PURE__ */ ka($a, [["render", Ca]]), Ea = { class: "sm:flex sm:i
2110
2110
  o("label", rl, _(a(n)("Theme")), 1)
2111
2111
  ]),
2112
2112
  o("div", al, [
2113
- pe(o("select", {
2113
+ ve(o("select", {
2114
2114
  id: "theme",
2115
2115
  "onUpdate:modelValue": D[4] || (D[4] = (L) => a(e).theme.value = L),
2116
2116
  onChange: D[5] || (D[5] = (L) => m(L.target.value)),
@@ -2135,12 +2135,12 @@ const gt = /* @__PURE__ */ ka($a, [["render", Ca]]), Ea = { class: "sm:flex sm:i
2135
2135
  })
2136
2136
  ])
2137
2137
  ]),
2138
- a(e).features.includes(a(ve).LANGUAGE) && Object.keys(a(k)).length > 1 ? (f(), g("div", cl, [
2138
+ a(e).features.includes(a(pe).LANGUAGE) && Object.keys(a(k)).length > 1 ? (f(), g("div", cl, [
2139
2139
  o("div", dl, [
2140
2140
  o("label", ul, _(a(n)("Language")), 1)
2141
2141
  ]),
2142
2142
  o("div", ml, [
2143
- pe(o("select", {
2143
+ ve(o("select", {
2144
2144
  id: "language",
2145
2145
  "onUpdate:modelValue": D[6] || (D[6] = (L) => Fn(i) ? i.value = L : null),
2146
2146
  onChange: D[7] || (D[7] = (L) => a(c)(L.target.value)),
@@ -2169,8 +2169,8 @@ const gt = /* @__PURE__ */ ka($a, [["render", Ca]]), Ea = { class: "sm:flex sm:i
2169
2169
  ])
2170
2170
  ])
2171
2171
  ])) : P("", !0),
2172
- u.value === d.SHORTCUTS ? (f(), g("div", vl, [
2173
- o("div", pl, [
2172
+ u.value === d.SHORTCUTS ? (f(), g("div", pl, [
2173
+ o("div", vl, [
2174
2174
  o("div", gl, [
2175
2175
  o("div", null, _(a(n)("Rename")), 1),
2176
2176
  _l
@@ -2477,7 +2477,7 @@ const gt = /* @__PURE__ */ ka($a, [["render", Ca]]), Ea = { class: "sm:flex sm:i
2477
2477
  r.value.type === "dir" ? (f(), g("svg", ii, di)) : (f(), g("svg", ui, fi)),
2478
2478
  o("span", hi, _(r.value.basename), 1)
2479
2479
  ]),
2480
- pe(o("input", {
2480
+ ve(o("input", {
2481
2481
  "onUpdate:modelValue": l[0] || (l[0] = (u) => n.value = u),
2482
2482
  onKeyup: $t(i, ["enter"]),
2483
2483
  class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
@@ -2514,9 +2514,9 @@ const gt = /* @__PURE__ */ ka($a, [["render", Ca]]), Ea = { class: "sm:flex sm:i
2514
2514
  KEY_E: "KeyE",
2515
2515
  KEY_F: "KeyF"
2516
2516
  };
2517
- function vi(t) {
2517
+ function pi(t) {
2518
2518
  const e = (s) => {
2519
- s.code === Ye.ESCAPE && (t.modal.close(), t.root.focus()), !t.modal.visible && (t.fs.searchMode || (s.code === Ye.F2 && t.features.includes(ve.RENAME) && (t.dragSelect.getCount() !== 1 || t.modal.open(an, { items: t.dragSelect.getSelected() })), s.code === Ye.F5 && t.emitter.emit("vf-fetch", { params: { q: "index", adapter: t.fs.adapter, path: t.fs.data.dirname } }), s.code === Ye.DELETE && (!t.dragSelect.getCount() || t.modal.open(rn, { items: t.dragSelect.getSelected() })), s.metaKey && s.code === Ye.BACKSLASH && t.modal.open(Mo), s.metaKey && s.code === Ye.KEY_F && t.features.includes(ve.SEARCH) && (t.fs.searchMode = !0, s.preventDefault()), s.metaKey && s.code === Ye.KEY_E && (t.showTreeView = !t.showTreeView, t.storage.setStore("show-tree-view", t.showTreeView)), s.metaKey && s.code === Ye.ENTER && (t.fullScreen = !t.fullScreen, t.root.focus()), s.metaKey && s.code === Ye.KEY_A && (t.dragSelect.selectAll(), s.preventDefault())));
2519
+ s.code === Ye.ESCAPE && (t.modal.close(), t.root.focus()), !t.modal.visible && (t.fs.searchMode || (s.code === Ye.F2 && t.features.includes(pe.RENAME) && (t.dragSelect.getCount() !== 1 || t.modal.open(an, { items: t.dragSelect.getSelected() })), s.code === Ye.F5 && t.emitter.emit("vf-fetch", { params: { q: "index", adapter: t.fs.adapter, path: t.fs.data.dirname } }), s.code === Ye.DELETE && (!t.dragSelect.getCount() || t.modal.open(rn, { items: t.dragSelect.getSelected() })), s.metaKey && s.code === Ye.BACKSLASH && t.modal.open(Mo), s.metaKey && s.code === Ye.KEY_F && t.features.includes(pe.SEARCH) && (t.fs.searchMode = !0, s.preventDefault()), s.metaKey && s.code === Ye.KEY_E && (t.showTreeView = !t.showTreeView, t.storage.setStore("show-tree-view", t.showTreeView)), s.metaKey && s.code === Ye.ENTER && (t.fullScreen = !t.fullScreen, t.root.focus()), s.metaKey && s.code === Ye.KEY_A && (t.dragSelect.selectAll(), s.preventDefault())));
2520
2520
  };
2521
2521
  Ce(() => {
2522
2522
  t.root.addEventListener("keydown", e);
@@ -2524,7 +2524,7 @@ function vi(t) {
2524
2524
  t.root.removeEventListener("keydown", e);
2525
2525
  });
2526
2526
  }
2527
- const pi = { class: "sm:flex sm:items-start" }, gi = /* @__PURE__ */ o("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
2527
+ const vi = { class: "sm:flex sm:items-start" }, gi = /* @__PURE__ */ o("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
2528
2528
  /* @__PURE__ */ o("svg", {
2529
2529
  xmlns: "http://www.w3.org/2000/svg",
2530
2530
  class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
@@ -2580,13 +2580,13 @@ const pi = { class: "sm:flex sm:items-start" }, gi = /* @__PURE__ */ o("div", {
2580
2580
  }, _(a(s)("Cancel")), 1)
2581
2581
  ]),
2582
2582
  default: se(() => [
2583
- o("div", pi, [
2583
+ o("div", vi, [
2584
2584
  gi,
2585
2585
  o("div", _i, [
2586
2586
  o("h3", xi, _(a(s)("New Folder")), 1),
2587
2587
  o("div", bi, [
2588
2588
  o("p", yi, _(a(s)("Create a new folder")), 1),
2589
- pe(o("input", {
2589
+ ve(o("input", {
2590
2590
  "onUpdate:modelValue": d[0] || (d[0] = (l) => r.value = l),
2591
2591
  onKeyup: $t(c, ["enter"]),
2592
2592
  class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
@@ -2674,7 +2674,7 @@ const pi = { class: "sm:flex sm:items-start" }, gi = /* @__PURE__ */ o("div", {
2674
2674
  o("h3", Ci, _(a(s)("New File")), 1),
2675
2675
  o("div", Ei, [
2676
2676
  o("p", Ti, _(a(s)("Create a new file")), 1),
2677
- pe(o("input", {
2677
+ ve(o("input", {
2678
2678
  "onUpdate:modelValue": d[0] || (d[0] = (l) => r.value = l),
2679
2679
  onKeyup: $t(c, ["enter"]),
2680
2680
  class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
@@ -2759,10 +2759,10 @@ const Di = { class: "sm:flex sm:items-start" }, Li = /* @__PURE__ */ o("div", {
2759
2759
  UPLOADING: 2,
2760
2760
  ERROR: 3,
2761
2761
  DONE: 10
2762
- }, c = M({ QUEUE_ENTRY_STATUS: n }), i = M(null), d = M(null), l = M(null), u = M(null), h = M(null), m = M(null), p = M([]), v = M(""), x = M(!1), y = M(!1);
2762
+ }, c = M({ QUEUE_ENTRY_STATUS: n }), i = M(null), d = M(null), l = M(null), u = M(null), h = M(null), m = M(null), v = M([]), p = M(""), x = M(!1), y = M(!1);
2763
2763
  let b;
2764
2764
  function A(H) {
2765
- return p.value.findIndex(($) => $.id === H);
2765
+ return v.value.findIndex(($) => $.id === H);
2766
2766
  }
2767
2767
  function k(H, $ = null) {
2768
2768
  $ = $ ?? (H.webkitRelativePath || H.name), b.addFile({
@@ -2802,33 +2802,33 @@ const Di = { class: "sm:flex sm:items-start" }, Li = /* @__PURE__ */ o("div", {
2802
2802
  }
2803
2803
  function L() {
2804
2804
  if (!x.value) {
2805
- if (!p.value.filter((H) => H.status !== n.DONE).length) {
2806
- v.value = s("Please select file to upload first.");
2805
+ if (!v.value.filter((H) => H.status !== n.DONE).length) {
2806
+ p.value = s("Please select file to upload first.");
2807
2807
  return;
2808
2808
  }
2809
- v.value = "", b.retryAll(), b.upload();
2809
+ p.value = "", b.retryAll(), b.upload();
2810
2810
  }
2811
2811
  }
2812
2812
  function V() {
2813
- b.cancelAll({ reason: "user" }), p.value.forEach((H) => {
2813
+ b.cancelAll({ reason: "user" }), v.value.forEach((H) => {
2814
2814
  H.status !== n.DONE && (H.status = n.CANCELED, H.statusName = s("Canceled"));
2815
2815
  }), x.value = !1;
2816
2816
  }
2817
2817
  function E(H) {
2818
- x.value || (b.removeFile(H.id, "removed-by-user"), p.value.splice(A(H.id), 1));
2818
+ x.value || (b.removeFile(H.id, "removed-by-user"), v.value.splice(A(H.id), 1));
2819
2819
  }
2820
2820
  function O(H) {
2821
2821
  if (!x.value) {
2822
2822
  if (b.cancelAll({ reason: "user" }), H) {
2823
2823
  const $ = [];
2824
- p.value.forEach((w) => {
2824
+ v.value.forEach((w) => {
2825
2825
  w.status !== n.DONE && $.push(w);
2826
- }), p.value = [], $.forEach((w) => {
2826
+ }), v.value = [], $.forEach((w) => {
2827
2827
  k(w.originalFile, w.name);
2828
2828
  });
2829
2829
  return;
2830
2830
  }
2831
- p.value.splice(0);
2831
+ v.value.splice(0);
2832
2832
  }
2833
2833
  }
2834
2834
  function T() {
@@ -2853,9 +2853,9 @@ const Di = { class: "sm:flex sm:items-start" }, Li = /* @__PURE__ */ o("div", {
2853
2853
  onBeforeFileAdded(w, I) {
2854
2854
  if (I[w.id] != null) {
2855
2855
  const ne = A(w.id);
2856
- p.value[ne].status === n.PENDING && (v.value = b.i18n("noDuplicates", { fileName: w.name })), p.value = p.value.filter((de) => de.id !== w.id);
2856
+ v.value[ne].status === n.PENDING && (p.value = b.i18n("noDuplicates", { fileName: w.name })), v.value = v.value.filter((de) => de.id !== w.id);
2857
2857
  }
2858
- return p.value.push({
2858
+ return v.value.push({
2859
2859
  id: w.id,
2860
2860
  name: w.name,
2861
2861
  size: e.filesize(w.size),
@@ -2879,26 +2879,26 @@ const Di = { class: "sm:flex sm:items-start" }, Li = /* @__PURE__ */ o("div", {
2879
2879
  return new Error(R);
2880
2880
  }
2881
2881
  }), b.on("restriction-failed", (w, I) => {
2882
- const R = p.value[A(w.id)];
2883
- E(R), v.value = I.message;
2882
+ const R = v.value[A(w.id)];
2883
+ E(R), p.value = I.message;
2884
2884
  }), b.on("upload", () => {
2885
2885
  const w = S();
2886
2886
  b.setMeta({ ...w.body });
2887
2887
  const I = b.getPlugin("XHRUpload");
2888
- I.opts.method = w.method, I.opts.endpoint = w.url + "?" + new URLSearchParams(w.params), I.opts.headers = w.headers, delete w.headers["Content-Type"], x.value = !0, p.value.forEach((R) => {
2888
+ I.opts.method = w.method, I.opts.endpoint = w.url + "?" + new URLSearchParams(w.params), I.opts.headers = w.headers, delete w.headers["Content-Type"], x.value = !0, v.value.forEach((R) => {
2889
2889
  R.status !== n.DONE && (R.percent = null, R.status = n.UPLOADING, R.statusName = s("Pending upload"));
2890
2890
  });
2891
2891
  }), b.on("upload-progress", (w, I) => {
2892
2892
  const R = Math.floor(I.bytesUploaded / I.bytesTotal * 100);
2893
- p.value[A(w.id)].percent = `${R}%`;
2893
+ v.value[A(w.id)].percent = `${R}%`;
2894
2894
  }), b.on("upload-success", (w) => {
2895
- const I = p.value[A(w.id)];
2895
+ const I = v.value[A(w.id)];
2896
2896
  I.status = n.DONE, I.statusName = s("Done");
2897
2897
  }), b.on("upload-error", (w, I) => {
2898
- const R = p.value[A(w.id)];
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
- v.value = w.message, x.value = !1, e.emitter.emit("vf-fetch", {
2901
+ p.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
  });
@@ -3007,7 +3007,7 @@ const Di = { class: "sm:flex sm:items-start" }, Li = /* @__PURE__ */ o("div", {
3007
3007
  }, _(a(s)("Clear only successful")), 9, Ii)
3008
3008
  ], 512),
3009
3009
  o("div", Ni, [
3010
- (f(!0), g(he, null, $e(p.value, (w) => (f(), g("div", {
3010
+ (f(!0), g(he, null, $e(v.value, (w) => (f(), g("div", {
3011
3011
  class: "flex hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-gray-300",
3012
3012
  key: w.id
3013
3013
  }, [
@@ -3035,15 +3035,15 @@ const Di = { class: "sm:flex sm:items-start" }, Li = /* @__PURE__ */ o("div", {
3035
3035
  onClick: (I) => E(w)
3036
3036
  }, Yi, 10, Ki)
3037
3037
  ]))), 128)),
3038
- p.value.length ? P("", !0) : (f(), g("div", Xi, _(a(s)("No files selected!")), 1))
3038
+ v.value.length ? P("", !0) : (f(), g("div", Xi, _(a(s)("No files selected!")), 1))
3039
3039
  ]),
3040
- v.value.length ? (f(), X(We, {
3040
+ p.value.length ? (f(), X(We, {
3041
3041
  key: 0,
3042
- onHidden: $[2] || ($[2] = (w) => v.value = ""),
3042
+ onHidden: $[2] || ($[2] = (w) => p.value = ""),
3043
3043
  error: ""
3044
3044
  }, {
3045
3045
  default: se(() => [
3046
- Q(_(v.value), 1)
3046
+ Q(_(p.value), 1)
3047
3047
  ]),
3048
3048
  _: 1
3049
3049
  })) : P("", !0)
@@ -3193,7 +3193,7 @@ const Di = { class: "sm:flex sm:items-start" }, Li = /* @__PURE__ */ o("div", {
3193
3193
  d: "M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"
3194
3194
  })
3195
3195
  ])
3196
- ], -1), vc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, pc = {
3196
+ ], -1), pc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, vc = {
3197
3197
  class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
3198
3198
  id: "modal-title"
3199
3199
  }, gc = { class: "mt-2" }, _c = {
@@ -3266,8 +3266,8 @@ const Di = { class: "sm:flex sm:items-start" }, Li = /* @__PURE__ */ o("div", {
3266
3266
  default: se(() => [
3267
3267
  o("div", fc, [
3268
3268
  hc,
3269
- o("div", vc, [
3270
- o("h3", pc, _(a(s)("Archive the files")), 1),
3269
+ o("div", pc, [
3270
+ o("h3", vc, _(a(s)("Archive the files")), 1),
3271
3271
  o("div", gc, [
3272
3272
  o("div", _c, [
3273
3273
  (f(!0), g(he, null, $e(c.value, (u) => (f(), g("p", xc, [
@@ -3275,7 +3275,7 @@ const Di = { class: "sm:flex sm:items-start" }, Li = /* @__PURE__ */ o("div", {
3275
3275
  o("span", Cc, _(u.basename), 1)
3276
3276
  ]))), 256))
3277
3277
  ]),
3278
- pe(o("input", {
3278
+ ve(o("input", {
3279
3279
  "onUpdate:modelValue": l[0] || (l[0] = (u) => r.value = u),
3280
3280
  onKeyup: $t(i, ["enter"]),
3281
3281
  class: "my-1 px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
@@ -3414,11 +3414,11 @@ const ln = { render: fd }, hd = {
3414
3414
  "stroke-width": "1.5",
3415
3415
  class: "h-6 w-6 md:h-8 md:w-8 m-auto vf-toolbar-icon",
3416
3416
  viewBox: "0 0 24 24"
3417
- }, vd = /* @__PURE__ */ o("path", { d: "M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15" }, null, -1), pd = [
3418
- vd
3417
+ }, pd = /* @__PURE__ */ o("path", { d: "M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15" }, null, -1), vd = [
3418
+ pd
3419
3419
  ];
3420
3420
  function gd(t, e) {
3421
- return f(), g("svg", hd, [...pd]);
3421
+ return f(), g("svg", hd, [...vd]);
3422
3422
  }
3423
3423
  const _d = { render: gd }, xd = {
3424
3424
  xmlns: "http://www.w3.org/2000/svg",
@@ -3486,7 +3486,7 @@ const Vd = { render: Ld }, Od = { class: "border-neutral-300 flex justify-betwee
3486
3486
  ]),
3487
3487
  a(e).fs.loading ? (f(), X(a(ln), { key: 0 })) : P("", !0)
3488
3488
  ])) : (f(), g("div", Hd, [
3489
- a(e).features.includes(a(ve).NEW_FOLDER) ? (f(), g("div", {
3489
+ a(e).features.includes(a(pe).NEW_FOLDER) ? (f(), g("div", {
3490
3490
  key: 0,
3491
3491
  class: "mx-1.5",
3492
3492
  title: a(r)("New Folder"),
@@ -3494,7 +3494,7 @@ const Vd = { render: Ld }, Od = { class: "border-neutral-300 flex justify-betwee
3494
3494
  }, [
3495
3495
  W(a(Lc))
3496
3496
  ], 8, Bd)) : P("", !0),
3497
- a(e).features.includes(a(ve).NEW_FILE) ? (f(), g("div", {
3497
+ a(e).features.includes(a(pe).NEW_FILE) ? (f(), g("div", {
3498
3498
  key: 1,
3499
3499
  class: "mx-1.5",
3500
3500
  title: a(r)("New File"),
@@ -3502,7 +3502,7 @@ const Vd = { render: Ld }, Od = { class: "border-neutral-300 flex justify-betwee
3502
3502
  }, [
3503
3503
  W(a(Rc))
3504
3504
  ], 8, Rd)) : P("", !0),
3505
- a(e).features.includes(a(ve).RENAME) ? (f(), g("div", {
3505
+ a(e).features.includes(a(pe).RENAME) ? (f(), g("div", {
3506
3506
  key: 2,
3507
3507
  class: "mx-1.5",
3508
3508
  title: a(r)("Rename"),
@@ -3512,7 +3512,7 @@ const Vd = { render: Ld }, Od = { class: "border-neutral-300 flex justify-betwee
3512
3512
  class: me(a(n).getCount() === 1 ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
3513
3513
  }, null, 8, ["class"])
3514
3514
  ], 8, Fd)) : P("", !0),
3515
- a(e).features.includes(a(ve).DELETE) ? (f(), g("div", {
3515
+ a(e).features.includes(a(pe).DELETE) ? (f(), g("div", {
3516
3516
  key: 3,
3517
3517
  class: "mx-1.5",
3518
3518
  title: a(r)("Delete"),
@@ -3522,7 +3522,7 @@ const Vd = { render: Ld }, Od = { class: "border-neutral-300 flex justify-betwee
3522
3522
  class: me(a(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
3523
3523
  }, null, 8, ["class"])
3524
3524
  ], 8, Id)) : P("", !0),
3525
- a(e).features.includes(a(ve).UPLOAD) ? (f(), g("div", {
3525
+ a(e).features.includes(a(pe).UPLOAD) ? (f(), g("div", {
3526
3526
  key: 4,
3527
3527
  class: "mx-1.5",
3528
3528
  title: a(r)("Upload"),
@@ -3530,7 +3530,7 @@ const Vd = { render: Ld }, Od = { class: "border-neutral-300 flex justify-betwee
3530
3530
  }, [
3531
3531
  W(a(Qc))
3532
3532
  ], 8, Nd)) : P("", !0),
3533
- a(e).features.includes(a(ve).UNARCHIVE) && a(n).getCount() === 1 && a(n).getSelected()[0].mime_type === "application/zip" ? (f(), g("div", {
3533
+ a(e).features.includes(a(pe).UNARCHIVE) && a(n).getCount() === 1 && a(n).getSelected()[0].mime_type === "application/zip" ? (f(), g("div", {
3534
3534
  key: 5,
3535
3535
  class: "mx-1.5",
3536
3536
  title: a(r)("Unarchive"),
@@ -3540,7 +3540,7 @@ const Vd = { render: Ld }, Od = { class: "border-neutral-300 flex justify-betwee
3540
3540
  class: me(a(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
3541
3541
  }, null, 8, ["class"])
3542
3542
  ], 8, Ud)) : P("", !0),
3543
- a(e).features.includes(a(ve).ARCHIVE) ? (f(), g("div", {
3543
+ a(e).features.includes(a(pe).ARCHIVE) ? (f(), g("div", {
3544
3544
  key: 6,
3545
3545
  class: "mx-1.5",
3546
3546
  title: a(r)("Archive"),
@@ -3552,7 +3552,7 @@ const Vd = { render: Ld }, Od = { class: "border-neutral-300 flex justify-betwee
3552
3552
  ], 8, zd)) : P("", !0)
3553
3553
  ])),
3554
3554
  o("div", Gd, [
3555
- a(e).features.includes(a(ve).FULL_SCREEN) ? (f(), g("div", {
3555
+ a(e).features.includes(a(pe).FULL_SCREEN) ? (f(), g("div", {
3556
3556
  key: 0,
3557
3557
  onClick: i,
3558
3558
  class: "mx-1.5",
@@ -3658,7 +3658,7 @@ const Vd = { render: Ld }, Od = { class: "border-neutral-300 flex justify-betwee
3658
3658
  "stroke-linejoin": "round",
3659
3659
  d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
3660
3660
  })
3661
- ], -1), hu = { class: "ml-1.5 overflow-auto" }, vu = { class: "m-1 mr-auto font-bold text-gray-500 text-sm dark:text-gray-200 self-center" }, js = {
3661
+ ], -1), hu = { class: "ml-1.5 overflow-auto" }, pu = { class: "m-1 mr-auto font-bold text-gray-500 text-sm dark:text-gray-200 self-center" }, js = {
3662
3662
  __name: "ModalMove",
3663
3663
  setup(t) {
3664
3664
  const e = ae("ServiceContainer"), { t: s } = e.i18n, r = M(e.modal.data.items.from), n = M(""), c = () => {
@@ -3693,7 +3693,7 @@ const Vd = { render: Ld }, Od = { class: "border-neutral-300 flex justify-betwee
3693
3693
  onClick: d[1] || (d[1] = (l) => a(e).modal.close()),
3694
3694
  class: "vf-btn vf-btn-secondary"
3695
3695
  }, _(a(s)("Cancel")), 1),
3696
- o("div", vu, _(a(s)("%s item(s) selected.", r.value.length)), 1)
3696
+ o("div", pu, _(a(s)("%s item(s) selected.", r.value.length)), 1)
3697
3697
  ]),
3698
3698
  default: se(() => [
3699
3699
  o("div", Jd, [
@@ -3730,7 +3730,7 @@ const Vd = { render: Ld }, Od = { class: "border-neutral-300 flex justify-betwee
3730
3730
  _: 1
3731
3731
  }));
3732
3732
  }
3733
- }, pu = {
3733
+ }, vu = {
3734
3734
  xmlns: "http://www.w3.org/2000/svg",
3735
3735
  fill: "currentColor",
3736
3736
  class: "h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer",
@@ -3739,7 +3739,7 @@ const Vd = { render: Ld }, Od = { class: "border-neutral-300 flex justify-betwee
3739
3739
  gu
3740
3740
  ];
3741
3741
  function xu(t, e) {
3742
- return f(), g("svg", pu, [..._u]);
3742
+ return f(), g("svg", vu, [..._u]);
3743
3743
  }
3744
3744
  const bu = { render: xu }, yu = {
3745
3745
  xmlns: "http://www.w3.org/2000/svg",
@@ -3864,7 +3864,7 @@ function r0(t, e) {
3864
3864
  const a0 = { render: r0 }, l0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100 dark:bg-gray-800 border-t border-b border-neutral-300 dark:border-gray-700/50 items-center select-none text-sm grow-0" }, i0 = ["title"], c0 = ["title"], d0 = ["title"], u0 = ["title"], m0 = { class: "flex leading-6" }, f0 = {
3865
3865
  key: 0,
3866
3866
  class: "flex"
3867
- }, h0 = /* @__PURE__ */ o("div", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), v0 = { class: "relative" }, p0 = /* @__PURE__ */ o("span", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), g0 = ["onDragover", "onDragleave", "onDrop", "title", "onClick"], _0 = { class: "relative flex bg-white dark:bg-gray-700 justify-between items-center rounded p-1 ml-2 w-full" }, x0 = ["placeholder"], b0 = { class: "z-30 absolute top-[65px] md:top-[75px] left-[90px] rounded -mx-1.5 mt-1 bg-neutral-50 dark:bg-gray-800 max-w-80 max-h-50 shadow overflow-y-auto text-gray-700 dark:text-gray-200 border border-neutral-300 dark:border-gray-600" }, y0 = ["onDrop", "onClick"], w0 = { class: "flex pointer-events-none" }, k0 = { class: "inline-block w-full text-ellipsis overflow-hidden" }, $0 = {
3867
+ }, h0 = /* @__PURE__ */ o("div", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), p0 = { class: "relative" }, v0 = /* @__PURE__ */ o("span", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), g0 = ["onDragover", "onDragleave", "onDrop", "title", "onClick"], _0 = { class: "relative flex bg-white dark:bg-gray-700 justify-between items-center rounded p-1 ml-2 w-full" }, x0 = ["placeholder"], b0 = { class: "z-30 absolute top-[65px] md:top-[75px] left-[90px] rounded -mx-1.5 mt-1 bg-neutral-50 dark:bg-gray-800 max-w-80 max-h-50 shadow overflow-y-auto text-gray-700 dark:text-gray-200 border border-neutral-300 dark:border-gray-600" }, y0 = ["onDrop", "onClick"], w0 = { class: "flex pointer-events-none" }, k0 = { class: "inline-block w-full text-ellipsis overflow-hidden" }, $0 = {
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 = M(null), i = Hn(0, 100);
@@ -3913,9 +3913,9 @@ const a0 = { render: r0 }, l0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
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
- }, p = () => {
3917
- D(), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: e.fs.data.dirname } });
3918
3916
  }, v = () => {
3917
+ D(), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: e.fs.data.dirname } });
3918
+ }, p = () => {
3919
3919
  D(), !e.fs.isGoUpAvailable() || e.emitter.emit("vf-fetch", {
3920
3920
  params: {
3921
3921
  q: "index",
@@ -3943,7 +3943,7 @@ const a0 = { render: r0 }, l0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
3943
3943
  V !== E && n("show-tree-view", V);
3944
3944
  });
3945
3945
  const k = M(null), U = () => {
3946
- e.features.includes(ve.SEARCH) && (e.fs.searchMode = !0, ft(() => k.value.focus()));
3946
+ e.features.includes(pe.SEARCH) && (e.fs.searchMode = !0, ft(() => k.value.focus()));
3947
3947
  }, B = Hn("", 400);
3948
3948
  Je(B, (V) => {
3949
3949
  e.emitter.emit("vf-toast-clear"), e.emitter.emit("vf-search-query", { newQuery: V });
@@ -3975,7 +3975,7 @@ const a0 = { render: r0 }, l0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
3975
3975
  onDragover: E[0] || (E[0] = (O) => h(O)),
3976
3976
  onDragleave: E[1] || (E[1] = (O) => m(O)),
3977
3977
  onDrop: E[2] || (E[2] = (O) => u(O)),
3978
- onClick: v,
3978
+ onClick: p,
3979
3979
  class: me(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, c0),
@@ -3990,9 +3990,9 @@ const a0 = { render: r0 }, l0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
3990
3990
  key: 0,
3991
3991
  title: a(s)("Refresh")
3992
3992
  }, [
3993
- W(a(bu), { onClick: p })
3993
+ W(a(bu), { onClick: v })
3994
3994
  ], 8, d0)),
3995
- pe(o("div", {
3995
+ ve(o("div", {
3996
3996
  onClick: rt(U, ["self"]),
3997
3997
  class: "group flex bg-white dark:bg-gray-700 items-center rounded p-1 ml-2 w-full overflow-hidden"
3998
3998
  }, [
@@ -4005,9 +4005,9 @@ const a0 = { render: r0 }, l0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
4005
4005
  })
4006
4006
  ]),
4007
4007
  o("div", m0, [
4008
- a(e).fs.hiddenBreadcrumbs.length ? pe((f(), g("div", f0, [
4008
+ a(e).fs.hiddenBreadcrumbs.length ? ve((f(), g("div", f0, [
4009
4009
  h0,
4010
- o("div", v0, [
4010
+ o("div", p0, [
4011
4011
  o("span", {
4012
4012
  onDragenter: E[8] || (E[8] = (O) => a(e).fs.toggleHiddenBreadcrumbs(!0)),
4013
4013
  onClick: E[9] || (E[9] = (O) => a(e).fs.toggleHiddenBreadcrumbs()),
@@ -4027,7 +4027,7 @@ const a0 = { render: r0 }, l0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
4027
4027
  onClick: rt(U, ["self"])
4028
4028
  }, [
4029
4029
  (f(!0), g(he, null, $e(a(e).fs.breadcrumbs, (O, T) => (f(), g("div", { key: T }, [
4030
- p0,
4030
+ v0,
4031
4031
  o("span", {
4032
4032
  onDragover: (S) => T === a(e).fs.breadcrumbs.length - 1 || h(S),
4033
4033
  onDragleave: (S) => T === a(e).fs.breadcrumbs.length - 1 || m(S),
@@ -4042,11 +4042,11 @@ const a0 = { render: r0 }, l0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
4042
4042
  ], 512), [
4043
4043
  [ze, !a(e).fs.searchMode]
4044
4044
  ]),
4045
- pe(o("div", _0, [
4045
+ ve(o("div", _0, [
4046
4046
  o("div", null, [
4047
4047
  W(a(Nu))
4048
4048
  ]),
4049
- pe(o("input", {
4049
+ ve(o("input", {
4050
4050
  ref_key: "searchInput",
4051
4051
  ref: k,
4052
4052
  onKeydown: $t(D, ["esc"]),
@@ -4062,7 +4062,7 @@ const a0 = { render: r0 }, l0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
4062
4062
  ], 512), [
4063
4063
  [ze, a(e).fs.searchMode]
4064
4064
  ]),
4065
- pe(o("div", b0, [
4065
+ ve(o("div", b0, [
4066
4066
  (f(!0), g(he, null, $e(a(e).fs.hiddenBreadcrumbs, (O, T) => (f(), g("div", {
4067
4067
  key: T,
4068
4068
  onDragover: E[11] || (E[11] = (S) => h(S)),
@@ -4110,7 +4110,7 @@ const a0 = { render: r0 }, l0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
4110
4110
  }, {
4111
4111
  default: se(() => [
4112
4112
  (f(!0), g(he, null, $e(n.value, (h, m) => (f(), g("div", {
4113
- onClick: (p) => i(m),
4113
+ onClick: (v) => i(m),
4114
4114
  key: h,
4115
4115
  class: me([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
4116
  }, _(h.label), 11, S0))), 128))
@@ -4242,13 +4242,13 @@ const G0 = { render: q0 }, K0 = { class: "absolute -z-50 -top-96" }, W0 = { clas
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((v) => {
4246
- r.value = v, s("success");
4245
+ }).then((p) => {
4246
+ r.value = p, s("success");
4247
4247
  });
4248
4248
  });
4249
4249
  const m = () => {
4250
4250
  i.value = !i.value, n.value = r.value;
4251
- }, p = () => {
4251
+ }, v = () => {
4252
4252
  d.value = "", l.value = !1, u.requester.send({
4253
4253
  url: "",
4254
4254
  method: "post",
@@ -4261,13 +4261,13 @@ const G0 = { render: q0 }, K0 = { class: "absolute -z-50 -top-96" }, W0 = { clas
4261
4261
  content: n.value
4262
4262
  },
4263
4263
  responseType: "text"
4264
- }).then((v) => {
4265
- d.value = h("Updated."), r.value = v, s("success"), i.value = !i.value;
4266
- }).catch((v) => {
4267
- d.value = h(v.message), l.value = !0;
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;
4268
4268
  });
4269
4269
  };
4270
- return (v, x) => (f(), g(he, null, [
4270
+ return (p, x) => (f(), g(he, null, [
4271
4271
  o("div", X0, [
4272
4272
  o("div", {
4273
4273
  class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
@@ -4277,10 +4277,10 @@ const G0 = { render: q0 }, K0 = { class: "absolute -z-50 -top-96" }, W0 = { clas
4277
4277
  o("div", Q0, [
4278
4278
  i.value ? (f(), g("button", {
4279
4279
  key: 0,
4280
- onClick: p,
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
4282
  }, _(a(h)("Save")), 1)) : P("", !0),
4283
- a(u).features.includes(a(ve).EDIT) ? (f(), g("button", {
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())
@@ -4289,7 +4289,7 @@ const G0 = { render: q0 }, K0 = { class: "absolute -z-50 -top-96" }, W0 = { clas
4289
4289
  ]),
4290
4290
  o("div", null, [
4291
4291
  i.value ? (f(), g("div", em, [
4292
- pe(o("textarea", {
4292
+ ve(o("textarea", {
4293
4293
  ref_key: "editInput",
4294
4294
  ref: c,
4295
4295
  "onUpdate:modelValue": x[1] || (x[1] = (y) => n.value = y),
@@ -4321,7 +4321,7 @@ const G0 = { render: q0 }, K0 = { class: "absolute -z-50 -top-96" }, W0 = { clas
4321
4321
  setup(t, { emit: e }) {
4322
4322
  const s = e, r = ae("ServiceContainer"), { t: n } = r.i18n, c = M(null), i = M(null), d = M(!1), l = M(""), u = M(!1), h = () => {
4323
4323
  d.value = !d.value, d.value ? i.value = new or(c.value, {
4324
- crop(p) {
4324
+ crop(v) {
4325
4325
  }
4326
4326
  }) : i.value.destroy();
4327
4327
  }, m = () => {
@@ -4329,10 +4329,10 @@ const G0 = { render: q0 }, K0 = { class: "absolute -z-50 -top-96" }, W0 = { clas
4329
4329
  width: 795,
4330
4330
  height: 341
4331
4331
  }).toBlob(
4332
- (p) => {
4332
+ (v) => {
4333
4333
  l.value = "", u.value = !1;
4334
- const v = new FormData();
4335
- v.set("file", p), r.requester.send({
4334
+ const p = new FormData();
4335
+ p.set("file", v), r.requester.send({
4336
4336
  url: "",
4337
4337
  method: "post",
4338
4338
  params: {
@@ -4340,7 +4340,7 @@ const G0 = { render: q0 }, K0 = { class: "absolute -z-50 -top-96" }, W0 = { clas
4340
4340
  adapter: r.modal.data.adapter,
4341
4341
  path: r.modal.data.item.path
4342
4342
  },
4343
- body: v
4343
+ body: p
4344
4344
  }).then((x) => {
4345
4345
  l.value = n("Updated."), c.value.src = r.requester.getPreviewUrl(r.modal.data.adapter, r.modal.data.item), h(), s("success");
4346
4346
  }).catch((x) => {
@@ -4351,7 +4351,7 @@ const G0 = { render: q0 }, K0 = { class: "absolute -z-50 -top-96" }, W0 = { clas
4351
4351
  };
4352
4352
  return Ce(() => {
4353
4353
  s("success");
4354
- }), (p, v) => (f(), g(he, null, [
4354
+ }), (v, p) => (f(), g(he, null, [
4355
4355
  o("div", sm, [
4356
4356
  o("h3", {
4357
4357
  class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
@@ -4364,10 +4364,10 @@ const G0 = { render: q0 }, K0 = { class: "absolute -z-50 -top-96" }, W0 = { clas
4364
4364
  onClick: m,
4365
4365
  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"
4366
4366
  }, _(a(n)("Crop")), 1)) : P("", !0),
4367
- a(r).features.includes(a(ve).EDIT) ? (f(), g("button", {
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: v[0] || (v[0] = (x) => h())
4370
+ onClick: p[0] || (p[0] = (x) => h())
4371
4371
  }, _(d.value ? a(n)("Cancel") : a(n)("Edit")), 1)) : P("", !0)
4372
4372
  ])
4373
4373
  ]),
@@ -4382,7 +4382,7 @@ const G0 = { render: q0 }, K0 = { class: "absolute -z-50 -top-96" }, W0 = { clas
4382
4382
  ]),
4383
4383
  l.value.length ? (f(), X(We, {
4384
4384
  key: 0,
4385
- onHidden: v[1] || (v[1] = (x) => l.value = ""),
4385
+ onHidden: p[1] || (p[1] = (x) => l.value = ""),
4386
4386
  error: u.value
4387
4387
  }, {
4388
4388
  default: se(() => [
@@ -4414,7 +4414,7 @@ const G0 = { render: q0 }, K0 = { class: "absolute -z-50 -top-96" }, W0 = { clas
4414
4414
  class: "w-full aspect-video",
4415
4415
  preload: "",
4416
4416
  controls: ""
4417
- }, hm = ["src"], vm = {
4417
+ }, hm = ["src"], pm = {
4418
4418
  __name: "Video",
4419
4419
  emits: ["success"],
4420
4420
  setup(t, { emit: e }) {
@@ -4438,7 +4438,7 @@ const G0 = { render: q0 }, K0 = { class: "absolute -z-50 -top-96" }, W0 = { clas
4438
4438
  ])
4439
4439
  ]));
4440
4440
  }
4441
- }, pm = ["title"], gm = {
4441
+ }, vm = ["title"], gm = {
4442
4442
  class: "w-full",
4443
4443
  controls: ""
4444
4444
  }, _m = ["src"], xm = {
@@ -4453,7 +4453,7 @@ const G0 = { render: q0 }, K0 = { class: "absolute -z-50 -top-96" }, W0 = { clas
4453
4453
  class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
4454
4454
  id: "modal-title",
4455
4455
  title: a(r).modal.data.item.path
4456
- }, _(a(r).modal.data.item.basename), 9, pm),
4456
+ }, _(a(r).modal.data.item.basename), 9, vm),
4457
4457
  o("div", null, [
4458
4458
  o("audio", gm, [
4459
4459
  o("source", {
@@ -4530,7 +4530,7 @@ const G0 = { render: q0 }, K0 = { class: "absolute -z-50 -top-96" }, W0 = { clas
4530
4530
  }, Bm = ["download", "href"], Oo = {
4531
4531
  __name: "ModalPreview",
4532
4532
  setup(t) {
4533
- const e = ae("ServiceContainer"), { t: s } = e.i18n, r = M(!1), n = (i) => (e.modal.data.item.mime_type ?? "").startsWith(i), c = e.features.includes(ve.PREVIEW);
4533
+ const e = ae("ServiceContainer"), { t: s } = e.i18n, r = M(!1), n = (i) => (e.modal.data.item.mime_type ?? "").startsWith(i), c = e.features.includes(pe.PREVIEW);
4534
4534
  return c || (r.value = !0), (i, d) => (f(), X(Ke, null, {
4535
4535
  buttons: se(() => [
4536
4536
  o("button", {
@@ -4538,7 +4538,7 @@ const G0 = { render: q0 }, K0 = { class: "absolute -z-50 -top-96" }, W0 = { clas
4538
4538
  onClick: d[6] || (d[6] = (l) => a(e).modal.close()),
4539
4539
  class: "vf-btn vf-btn-secondary"
4540
4540
  }, _(a(s)("Close")), 1),
4541
- a(e).features.includes(a(ve).DOWNLOAD) ? (f(), g("a", {
4541
+ a(e).features.includes(a(pe).DOWNLOAD) ? (f(), g("a", {
4542
4542
  key: 0,
4543
4543
  target: "_blank",
4544
4544
  class: "vf-btn vf-btn-primary",
@@ -4556,7 +4556,7 @@ const G0 = { render: q0 }, K0 = { class: "absolute -z-50 -top-96" }, W0 = { clas
4556
4556
  })) : n("image") ? (f(), X(lm, {
4557
4557
  key: 1,
4558
4558
  onSuccess: d[1] || (d[1] = (l) => r.value = !0)
4559
- })) : n("video") ? (f(), X(vm, {
4559
+ })) : n("video") ? (f(), X(pm, {
4560
4560
  key: 2,
4561
4561
  onSuccess: d[2] || (d[2] = (l) => r.value = !0)
4562
4562
  })) : n("audio") ? (f(), X(xm, {
@@ -4588,7 +4588,7 @@ const G0 = { render: q0 }, K0 = { class: "absolute -z-50 -top-96" }, W0 = { clas
4588
4588
  Q(" " + _(a(Vo)(a(e).modal.data.item.last_modified)), 1)
4589
4589
  ])
4590
4590
  ]),
4591
- a(e).features.includes(a(ve).DOWNLOAD) ? (f(), g("div", Hm, [
4591
+ a(e).features.includes(a(pe).DOWNLOAD) ? (f(), g("div", Hm, [
4592
4592
  o("span", null, _(a(s)(`Download doesn't work? You can try right-click "Download" button, select "Save link as...".`)), 1)
4593
4593
  ])) : P("", !0)
4594
4594
  ]),
@@ -4622,34 +4622,34 @@ const Ho = { render: Um }, zm = ["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 = (v) => {
4626
- v.type === "dir" ? (e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: v.path } })) : e.modal.open(Oo, { adapter: e.fs.adapter, item: v });
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(Oo, { adapter: e.fs.adapter, item: p });
4627
4627
  }, c = {
4628
- mounted(v, x, y, b) {
4629
- y.props.draggable && (v.addEventListener("dragstart", (A) => i(A, x.value)), v.addEventListener("dragover", (A) => l(A, x.value)), v.addEventListener("drop", (A) => d(A, x.value)));
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)));
4630
4630
  },
4631
- beforeUnmount(v, x, y, b) {
4632
- y.props.draggable && (v.removeEventListener("dragstart", i), v.removeEventListener("dragover", l), v.removeEventListener("drop", d));
4631
+ beforeUnmount(p, x, y, b) {
4632
+ y.props.draggable && (p.removeEventListener("dragstart", i), p.removeEventListener("dragover", l), p.removeEventListener("drop", d));
4633
4633
  }
4634
- }, i = (v, x) => {
4635
- if (v.altKey || v.ctrlKey || v.metaKey)
4636
- return v.preventDefault(), !1;
4637
- s.isDraggingRef.value = !0, v.dataTransfer.setDragImage(r.dragImage.$el, 0, 15), v.dataTransfer.effectAllowed = "all", v.dataTransfer.dropEffect = "copy", v.dataTransfer.setData("items", JSON.stringify(s.getSelected()));
4638
- }, d = (v, x) => {
4639
- v.preventDefault(), s.isDraggingRef.value = !1;
4640
- let y = JSON.parse(v.dataTransfer.getData("items"));
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"));
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(js, { items: { from: y, to: x } });
4646
- }, l = (v, x) => {
4647
- v.preventDefault(), !x || x.type !== "dir" || s.getSelection().find((y) => y === v.currentTarget) ? (v.dataTransfer.dropEffect = "none", v.dataTransfer.effectAllowed = "none") : v.dataTransfer.dropEffect = "copy";
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";
4648
4648
  };
4649
4649
  let u = null, h = !1;
4650
4650
  const m = () => {
4651
4651
  u && clearTimeout(u);
4652
- }, p = (v) => {
4652
+ }, v = (p) => {
4653
4653
  if (!h)
4654
4654
  h = !0, setTimeout(() => h = !1, 300);
4655
4655
  else
@@ -4661,25 +4661,25 @@ const Ho = { render: Um }, zm = ["data-type", "data-item", "data-index"], $s = {
4661
4661
  view: window,
4662
4662
  button: 2,
4663
4663
  buttons: 0,
4664
- clientX: v.target.getBoundingClientRect().x,
4665
- clientY: v.target.getBoundingClientRect().y
4664
+ clientX: p.target.getBoundingClientRect().x,
4665
+ clientY: p.target.getBoundingClientRect().y
4666
4666
  });
4667
- v.target.dispatchEvent(x);
4667
+ p.target.dispatchEvent(x);
4668
4668
  }, 500);
4669
4669
  };
4670
- return (v, x) => pe((f(), g("div", {
4671
- style: os({ opacity: a(s).isDraggingRef.value && a(s).getSelection().find((y) => v.$el === y) ? "0.5 !important" : "" }),
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" : "" }),
4672
4672
  class: me(["vf-item-" + a(s).explorerId, "relative"]),
4673
4673
  "data-type": t.item.type,
4674
4674
  key: t.item.path,
4675
4675
  "data-item": JSON.stringify(t.item),
4676
4676
  "data-index": t.index,
4677
4677
  onDblclick: x[0] || (x[0] = (y) => n(t.item)),
4678
- onTouchstart: x[1] || (x[1] = (y) => p(y)),
4678
+ onTouchstart: x[1] || (x[1] = (y) => v(y)),
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(v.$slots, "default"),
4682
+ Dt(p.$slots, "default"),
4683
4683
  a(e).pinnedFolders.find((y) => y.path === t.item.path) ? (f(), X(a(Ho), {
4684
4684
  key: 0,
4685
4685
  class: "absolute top-0 right-0 text-amber-600"
@@ -4709,17 +4709,17 @@ const Ho = { render: Um }, zm = ["data-type", "data-item", "data-index"], $s = {
4709
4709
  path: e.fs.data.dirname,
4710
4710
  filter: m
4711
4711
  },
4712
- onSuccess: (p) => {
4713
- p.files.length || e.emitter.emit("vf-toast-push", { label: s("No search result found.") });
4712
+ onSuccess: (v) => {
4713
+ v.files.length || e.emitter.emit("vf-toast-push", { label: s("No search result found.") });
4714
4714
  }
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 p = [...e.fs.data.files], v = l.column, x = l.order === "asc" ? 1 : -1;
4718
+ let v = [...e.fs.data.files], p = l.column, x = l.order === "asc" ? 1 : -1;
4719
4719
  if (!m)
4720
- return p;
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 && (p = p.slice().sort((b, A) => y(b[v], A[v]) * x)), p;
4722
+ return l.active && (v = v.slice().sort((b, A) => y(b[p], A[p]) * x)), v;
4723
4723
  }, h = (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
  };
@@ -4729,14 +4729,14 @@ const Ho = { render: Um }, zm = ["data-type", "data-item", "data-index"], $s = {
4729
4729
  d.update();
4730
4730
  }), In(() => {
4731
4731
  d.destroy();
4732
- }), (m, p) => (f(), g("div", Pm, [
4732
+ }), (m, v) => (f(), g("div", Pm, [
4733
4733
  a(e).view === "list" || c.value.length ? (f(), g("div", jm, [
4734
4734
  o("div", {
4735
- onClick: p[0] || (p[0] = (v) => h("basename")),
4735
+ onClick: v[0] || (v[0] = (p) => h("basename")),
4736
4736
  class: "col-span-7 vf-sort-button"
4737
4737
  }, [
4738
4738
  Q(_(a(s)("Name")) + " ", 1),
4739
- pe(W(Kt, {
4739
+ ve(W(Kt, {
4740
4740
  direction: l.order
4741
4741
  }, null, 8, ["direction"]), [
4742
4742
  [ze, l.active && l.column === "basename"]
@@ -4744,11 +4744,11 @@ const Ho = { render: Um }, zm = ["data-type", "data-item", "data-index"], $s = {
4744
4744
  ]),
4745
4745
  c.value.length ? P("", !0) : (f(), g("div", {
4746
4746
  key: 0,
4747
- onClick: p[1] || (p[1] = (v) => h("file_size")),
4747
+ onClick: v[1] || (v[1] = (p) => h("file_size")),
4748
4748
  class: "justify-center col-span-2 vf-sort-button"
4749
4749
  }, [
4750
4750
  Q(_(a(s)("Size")) + " ", 1),
4751
- pe(W(Kt, {
4751
+ ve(W(Kt, {
4752
4752
  direction: l.order
4753
4753
  }, null, 8, ["direction"]), [
4754
4754
  [ze, l.active && l.column === "file_size"]
@@ -4756,11 +4756,11 @@ const Ho = { render: Um }, zm = ["data-type", "data-item", "data-index"], $s = {
4756
4756
  ])),
4757
4757
  c.value.length ? P("", !0) : (f(), g("div", {
4758
4758
  key: 1,
4759
- onClick: p[2] || (p[2] = (v) => h("last_modified")),
4759
+ onClick: v[2] || (v[2] = (p) => h("last_modified")),
4760
4760
  class: "justify-center col-span-3 vf-sort-button"
4761
4761
  }, [
4762
4762
  Q(_(a(s)("Date")) + " ", 1),
4763
- pe(W(Kt, {
4763
+ ve(W(Kt, {
4764
4764
  direction: l.order
4765
4765
  }, null, 8, ["direction"]), [
4766
4766
  [ze, l.active && l.column === "last_modified"]
@@ -4768,11 +4768,11 @@ const Ho = { render: Um }, zm = ["data-type", "data-item", "data-index"], $s = {
4768
4768
  ])),
4769
4769
  c.value.length ? (f(), g("div", {
4770
4770
  key: 2,
4771
- onClick: p[3] || (p[3] = (v) => h("path")),
4771
+ onClick: v[3] || (v[3] = (p) => h("path")),
4772
4772
  class: "justify-center col-span-5 vf-sort-button"
4773
4773
  }, [
4774
4774
  Q(_(a(s)("Filepath")) + " ", 1),
4775
- pe(W(Kt, {
4775
+ ve(W(Kt, {
4776
4776
  direction: l.order
4777
4777
  }, null, 8, ["direction"]), [
4778
4778
  [ze, l.active && l.column === "path"]
@@ -4798,10 +4798,10 @@ const Ho = { render: Um }, zm = ["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: p[4] || (p[4] = rt((v) => a(e).emitter.emit("vf-contextmenu-show", { event: v, items: a(i).getSelected() }), ["self", "prevent"]))
4801
+ onContextmenu: v[4] || (v[4] = rt((p) => a(e).emitter.emit("vf-contextmenu-show", { event: p, items: a(i).getSelected() }), ["self", "prevent"]))
4802
4802
  }, [
4803
- c.value.length ? (f(!0), g(he, { key: 0 }, $e(u(), (v, x) => (f(), X($s, {
4804
- item: v,
4803
+ c.value.length ? (f(!0), g(he, { key: 0 }, $e(u(), (p, x) => (f(), X($s, {
4804
+ item: p,
4805
4805
  index: x,
4806
4806
  dragImage: n.value,
4807
4807
  class: "vf-item vf-item-list"
@@ -4810,41 +4810,41 @@ const Ho = { render: Um }, zm = ["data-type", "data-item", "data-index"], $s = {
4810
4810
  o("div", Gm, [
4811
4811
  o("div", Km, [
4812
4812
  W(ks, {
4813
- type: v.type,
4813
+ type: p.type,
4814
4814
  small: a(e).compactListView
4815
4815
  }, null, 8, ["type", "small"]),
4816
- o("span", Wm, _(v.basename), 1)
4816
+ o("span", Wm, _(p.basename), 1)
4817
4817
  ]),
4818
- o("div", Ym, _(v.path), 1)
4818
+ o("div", Ym, _(p.path), 1)
4819
4819
  ])
4820
4820
  ]),
4821
4821
  _: 2
4822
4822
  }, 1032, ["item", "index", "dragImage"]))), 256)) : P("", !0),
4823
- a(e).view === "list" && !c.value.length ? (f(!0), g(he, { key: 1 }, $e(u(), (v, x) => (f(), X($s, {
4824
- item: v,
4823
+ a(e).view === "list" && !c.value.length ? (f(!0), g(he, { key: 1 }, $e(u(), (p, x) => (f(), X($s, {
4824
+ item: p,
4825
4825
  index: x,
4826
4826
  dragImage: n.value,
4827
4827
  class: "vf-item vf-item-list",
4828
4828
  draggable: "true",
4829
- key: v.path
4829
+ key: p.path
4830
4830
  }, {
4831
4831
  default: se(() => [
4832
4832
  o("div", Xm, [
4833
4833
  o("div", Jm, [
4834
4834
  W(ks, {
4835
- type: v.type,
4835
+ type: p.type,
4836
4836
  small: a(e).compactListView
4837
4837
  }, null, 8, ["type", "small"]),
4838
- o("span", Qm, _(v.basename), 1)
4838
+ o("span", Qm, _(p.basename), 1)
4839
4839
  ]),
4840
- o("div", Zm, _(v.file_size ? a(e).filesize(v.file_size) : ""), 1),
4841
- o("div", e1, _(a(Vo)(v.last_modified)), 1)
4840
+ o("div", Zm, _(p.file_size ? a(e).filesize(p.file_size) : ""), 1),
4841
+ o("div", e1, _(a(Vo)(p.last_modified)), 1)
4842
4842
  ])
4843
4843
  ]),
4844
4844
  _: 2
4845
4845
  }, 1032, ["item", "index", "dragImage"]))), 128)) : P("", !0),
4846
- a(e).view === "grid" && !c.value.length ? (f(!0), g(he, { key: 2 }, $e(u(!1), (v, x) => (f(), X($s, {
4847
- item: v,
4846
+ a(e).view === "grid" && !c.value.length ? (f(!0), g(he, { key: 2 }, $e(u(!1), (p, x) => (f(), X($s, {
4847
+ item: p,
4848
4848
  index: x,
4849
4849
  dragImage: n.value,
4850
4850
  class: "vf-item vf-item-grid",
@@ -4853,19 +4853,19 @@ const Ho = { render: Um }, zm = ["data-type", "data-item", "data-index"], $s = {
4853
4853
  default: se(() => [
4854
4854
  o("div", null, [
4855
4855
  o("div", t1, [
4856
- (v.mime_type ?? "").startsWith("image") && a(e).showThumbnails ? (f(), g("img", {
4856
+ (p.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, v),
4860
- alt: v.basename,
4861
- key: v.path
4859
+ "data-src": a(e).requester.getPreviewUrl(a(e).fs.adapter, p),
4860
+ alt: p.basename,
4861
+ key: p.path
4862
4862
  }, null, 8, s1)) : (f(), X(ks, {
4863
4863
  key: 1,
4864
- type: v.type
4864
+ type: p.type
4865
4865
  }, null, 8, ["type"])),
4866
- !((v.mime_type ?? "").startsWith("image") && a(e).showThumbnails) && v.type !== "dir" ? (f(), g("div", n1, _(r(v.extension)), 1)) : P("", !0)
4866
+ !((p.mime_type ?? "").startsWith("image") && a(e).showThumbnails) && p.type !== "dir" ? (f(), g("div", n1, _(r(p.extension)), 1)) : P("", !0)
4867
4867
  ]),
4868
- o("span", o1, _(a(Ps)(v.basename)), 1)
4868
+ o("span", o1, _(a(Ps)(p.basename)), 1)
4869
4869
  ])
4870
4870
  ]),
4871
4871
  _: 2
@@ -4890,7 +4890,7 @@ const Ho = { render: Um }, zm = ["data-type", "data-item", "data-index"], $s = {
4890
4890
  });
4891
4891
  const l = {
4892
4892
  newfolder: {
4893
- key: ve.NEW_FOLDER,
4893
+ key: pe.NEW_FOLDER,
4894
4894
  title: () => s("New Folder"),
4895
4895
  action: () => e.modal.open(Ao)
4896
4896
  },
@@ -4907,11 +4907,11 @@ const Ho = { render: Um }, zm = ["data-type", "data-item", "data-index"], $s = {
4907
4907
  unpinFolder: {
4908
4908
  title: () => s("Unpin Folder"),
4909
4909
  action: () => {
4910
- e.pinnedFolders = e.pinnedFolders.filter((m) => !n.value.find((p) => p.path === m.path)), e.storage.setStore("pinned-folders", e.pinnedFolders);
4910
+ e.pinnedFolders = e.pinnedFolders.filter((m) => !n.value.find((v) => v.path === m.path)), e.storage.setStore("pinned-folders", e.pinnedFolders);
4911
4911
  }
4912
4912
  },
4913
4913
  delete: {
4914
- key: ve.DELETE,
4914
+ key: pe.DELETE,
4915
4915
  title: () => s("Delete"),
4916
4916
  action: () => {
4917
4917
  e.modal.open(rn, { items: n });
@@ -4924,7 +4924,7 @@ const Ho = { render: Um }, zm = ["data-type", "data-item", "data-index"], $s = {
4924
4924
  }
4925
4925
  },
4926
4926
  preview: {
4927
- key: ve.PREVIEW,
4927
+ key: pe.PREVIEW,
4928
4928
  title: () => s("Preview"),
4929
4929
  action: () => e.modal.open(Oo, { adapter: e.fs.adapter, item: n.value[0] })
4930
4930
  },
@@ -4953,24 +4953,24 @@ const Ho = { render: Um }, zm = ["data-type", "data-item", "data-index"], $s = {
4953
4953
  }
4954
4954
  },
4955
4955
  download: {
4956
- key: ve.DOWNLOAD,
4956
+ key: pe.DOWNLOAD,
4957
4957
  link: Ze(() => e.requester.getDownloadUrl(e.fs.adapter, n.value[0])),
4958
4958
  title: () => s("Download"),
4959
4959
  action: () => {
4960
4960
  }
4961
4961
  },
4962
4962
  archive: {
4963
- key: ve.ARCHIVE,
4963
+ key: pe.ARCHIVE,
4964
4964
  title: () => s("Archive"),
4965
4965
  action: () => e.modal.open(Lo, { items: n })
4966
4966
  },
4967
4967
  unarchive: {
4968
- key: ve.UNARCHIVE,
4968
+ key: pe.UNARCHIVE,
4969
4969
  title: () => s("Unarchive"),
4970
4970
  action: () => e.modal.open(Do, { items: n })
4971
4971
  },
4972
4972
  rename: {
4973
- key: ve.RENAME,
4973
+ key: pe.RENAME,
4974
4974
  title: () => s("Rename"),
4975
4975
  action: () => e.modal.open(an, { items: n })
4976
4976
  }
@@ -4979,20 +4979,20 @@ const Ho = { render: Um }, zm = ["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: p, target: v = null }) => {
4982
+ }), e.emitter.on("vf-contextmenu-show", ({ event: m, items: v, target: p = null }) => {
4983
4983
  if (i.items = [], c.value)
4984
- if (v)
4985
- i.items.push(l.openDir), e.emitter.emit("vf-context-selected", [v]);
4984
+ if (p)
4985
+ i.items.push(l.openDir), e.emitter.emit("vf-context-selected", [p]);
4986
4986
  else
4987
4987
  return;
4988
- else !v && !c.value ? (i.items.push(l.refresh), i.items.push(l.selectAll), i.items.push(l.newfolder), e.emitter.emit("vf-context-selected", [])) : p.length > 1 && p.some((x) => x.path === v.path) ? (i.items.push(l.refresh), i.items.push(l.archive), i.items.push(l.delete), e.emitter.emit("vf-context-selected", p)) : (v.type === "dir" ? (i.items.push(l.open), e.pinnedFolders.findIndex((x) => x.path === v.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), v.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", [v]));
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
4989
  h(m);
4990
4990
  }), e.emitter.on("vf-contextmenu-hide", () => {
4991
4991
  i.active = !1;
4992
4992
  });
4993
4993
  const h = (m) => {
4994
- const p = e.dragSelect.area.value, v = e.root.getBoundingClientRect(), x = p.getBoundingClientRect();
4995
- let y = m.clientX - v.left, b = m.clientY - v.top;
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;
4996
4996
  i.active = !0, ft(() => {
4997
4997
  var B;
4998
4998
  const A = (B = r.value) == null ? void 0 : B.getBoundingClientRect();
@@ -5003,31 +5003,31 @@ const Ho = { render: Um }, zm = ["data-type", "data-item", "data-index"], $s = {
5003
5003
  };
5004
5004
  });
5005
5005
  };
5006
- return (m, p) => pe((f(), g("ul", {
5006
+ return (m, v) => ve((f(), g("ul", {
5007
5007
  ref_key: "contextmenu",
5008
5008
  ref: r,
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, (v) => (f(), g("li", {
5012
+ (f(!0), g(he, null, $e(d.value, (p) => (f(), g("li", {
5013
5013
  class: "cursor-pointer hover:bg-neutral-200 dark:hover:bg-gray-700",
5014
- key: v.title
5014
+ key: p.title
5015
5015
  }, [
5016
- v.link ? (f(), g("a", {
5016
+ p.link ? (f(), g("a", {
5017
5017
  key: 0,
5018
5018
  class: "block pl-2 pr-3 py-2",
5019
5019
  target: "_blank",
5020
- href: v.link,
5021
- download: v.link,
5022
- onClick: p[0] || (p[0] = (x) => a(e).emitter.emit("vf-contextmenu-hide"))
5020
+ href: p.link,
5021
+ download: p.link,
5022
+ onClick: v[0] || (v[0] = (x) => a(e).emitter.emit("vf-contextmenu-hide"))
5023
5023
  }, [
5024
- o("span", null, _(v.title()), 1)
5024
+ o("span", null, _(p.title()), 1)
5025
5025
  ], 8, a1)) : (f(), g("div", {
5026
5026
  key: 1,
5027
5027
  class: "pl-2 pr-3 py-1.5",
5028
- onClick: (x) => u(v)
5028
+ onClick: (x) => u(p)
5029
5029
  }, [
5030
- o("span", null, _(v.title()), 1)
5030
+ o("span", null, _(p.title()), 1)
5031
5031
  ], 8, l1))
5032
5032
  ]))), 128))
5033
5033
  ], 4)), [
@@ -5061,13 +5061,13 @@ const Bo = { render: m1 }, f1 = {
5061
5061
  "stroke-linecap": "round",
5062
5062
  "stroke-linejoin": "round",
5063
5063
  d: "M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0"
5064
- }, null, -1), v1 = [
5064
+ }, null, -1), p1 = [
5065
5065
  h1
5066
5066
  ];
5067
- function p1(t, e) {
5068
- return f(), g("svg", f1, [...v1]);
5067
+ function v1(t, e) {
5068
+ return f(), g("svg", f1, [...p1]);
5069
5069
  }
5070
- const g1 = { render: p1 }, _1 = { class: "p-1 text-xs border-t border-neutral-300 dark:border-gray-700/50 flex justify-between select-none grow-0" }, x1 = { class: "flex leading-5 items-center" }, b1 = ["title"], y1 = ["value"], w1 = { class: "ml-3" }, k1 = { key: 0 }, $1 = { class: "ml-1" }, S1 = { class: "flex leading-5 items-center justify-end" }, C1 = ["disabled"], E1 = ["title"], T1 = {
5070
+ const g1 = { render: v1 }, _1 = { class: "p-1 text-xs border-t border-neutral-300 dark:border-gray-700/50 flex justify-between select-none grow-0" }, x1 = { class: "flex leading-5 items-center" }, b1 = ["title"], y1 = ["value"], w1 = { class: "ml-3" }, k1 = { key: 0 }, $1 = { class: "ml-1" }, S1 = { class: "flex leading-5 items-center justify-end" }, C1 = ["disabled"], E1 = ["title"], T1 = {
5071
5071
  __name: "Statusbar",
5072
5072
  setup(t) {
5073
5073
  const e = ae("ServiceContainer"), { t: s } = e.i18n, { setStore: r } = e.storage, n = e.dragSelect, c = () => {
@@ -5083,15 +5083,15 @@ const g1 = { render: p1 }, _1 = { class: "p-1 text-xs border-t border-neutral-30
5083
5083
  return (l, u) => (f(), g("div", _1, [
5084
5084
  o("div", x1, [
5085
5085
  o("div", {
5086
- class: "mx-2",
5086
+ class: "z-[1] pl-1 pointer-events-none",
5087
5087
  title: a(s)("Storage")
5088
5088
  }, [
5089
5089
  W(a(Bo))
5090
5090
  ], 8, b1),
5091
- pe(o("select", {
5091
+ ve(o("select", {
5092
5092
  "onUpdate:modelValue": u[0] || (u[0] = (h) => a(e).fs.adapter = h),
5093
5093
  onChange: c,
5094
- class: "py-0.5 text-sm text-slate-500 border dark:border-gray-600 dark:text-neutral-50 dark:bg-gray-700 rounded pl-2 pr-8",
5094
+ class: "-translate-x-5 pl-4 pr-2 py-0.5 text-xs text-slate-500 border dark:border-gray-600 dark:text-neutral-50 dark:bg-gray-700 rounded uppercase focus:outline-0",
5095
5095
  tabindex: "-1"
5096
5096
  }, [
5097
5097
  (f(!0), g(he, null, $e(a(e).fs.data.storages, (h) => (f(), g("option", { value: h }, _(h), 9, y1))), 256))
@@ -5226,8 +5226,8 @@ const K1 = {
5226
5226
  return f(), g("div", {
5227
5227
  class: "h-5 w-5 shrink-0",
5228
5228
  onClick: u[0] || (u[0] = (m) => {
5229
- var p;
5230
- return (!r.value || ((p = i()) == null ? void 0 : p.folders.length)) && c() && (i() || d());
5229
+ var v;
5230
+ return (!r.value || ((v = i()) == null ? void 0 : v.folders.length)) && c() && (i() || d());
5231
5231
  })
5232
5232
  }, [
5233
5233
  n.value ? (f(), X(a(ln), {
@@ -5307,7 +5307,7 @@ const Q1 = { render: J1 }, Z1 = { class: "block" }, ef = { class: "flex hover:te
5307
5307
  ], 8, sf)
5308
5308
  ]),
5309
5309
  o("div", rf, [
5310
- pe(W(d, {
5310
+ ve(W(d, {
5311
5311
  adapter: r.adapter,
5312
5312
  path: l.path
5313
5313
  }, null, 8, ["adapter", "path"]), [
@@ -5350,7 +5350,7 @@ const Q1 = { render: J1 }, Z1 = { class: "block" }, ef = { class: "flex hover:te
5350
5350
  }, null, 8, ["adapter", "path", "modelValue"])
5351
5351
  ])
5352
5352
  ]),
5353
- pe(W(af, {
5353
+ ve(W(af, {
5354
5354
  adapter: t.storage,
5355
5355
  path: t.storage + "://",
5356
5356
  class: "overflow-x-auto"
@@ -5359,7 +5359,7 @@ const Q1 = { render: J1 }, Z1 = { class: "block" }, ef = { class: "flex hover:te
5359
5359
  ])
5360
5360
  ], 64));
5361
5361
  }
5362
- }, mf = { class: "sticky left-0 z-[1] top-0 bg-gray-50 dark:bg-[#242f41] shadow" }, ff = { class: "p-1 uppercase font-bold text-gray-400 dark:text-gray-400 text-xs flex items-center space-x-1" }, hf = { class: "text-nowrap" }, vf = { class: "block" }, pf = { class: "flex pl-2 py-0.5 text-sm space-x-2" }, gf = ["onClick"], _f = ["title"], xf = ["onClick"], bf = { key: 0 }, yf = { class: "rounded-lg p-1 bg-gray-100 dark:bg-gray-700 text-xs text-center" }, wf = {
5362
+ }, mf = { class: "sticky left-0 z-[1] top-0 bg-gray-50 dark:bg-[#242f41] border-b dark:border-gray-600" }, ff = { class: "p-1 uppercase font-bold text-gray-400 dark:text-gray-400 text-xs flex items-center space-x-1" }, hf = { class: "text-nowrap" }, pf = { class: "block" }, vf = { class: "flex pl-2 py-0.5 text-sm space-x-2" }, gf = ["onClick"], _f = ["title"], xf = ["onClick"], bf = { key: 0 }, yf = { class: "rounded-lg p-1 bg-gray-100 dark:bg-gray-700 text-xs text-center" }, wf = {
5363
5363
  __name: "TreeView",
5364
5364
  setup(t) {
5365
5365
  const e = ae("ServiceContainer"), { t: s } = e.i18n, r = M(190), n = (d) => {
@@ -5367,13 +5367,13 @@ const Q1 = { render: J1 }, Z1 = { class: "block" }, ef = { class: "flex hover:te
5367
5367
  }, c = (d) => {
5368
5368
  const l = d.clientX, u = d.target.parentElement, h = u.getBoundingClientRect().width;
5369
5369
  u.classList.remove("transition-[width]"), u.classList.add("transition-none");
5370
- const m = (v) => {
5371
- r.value = h + v.clientX - l, r.value < 50 && (r.value = 0, e.showTreeView = !1), r.value > 50 && (e.showTreeView = !0);
5372
- }, p = () => {
5373
- const v = u.getBoundingClientRect();
5374
- r.value = v.width, u.classList.add("transition-[width]"), u.classList.remove("transition-none"), window.removeEventListener("mousemove", m), window.removeEventListener("mouseup", p);
5370
+ const m = (p) => {
5371
+ r.value = h + p.clientX - l, r.value < 50 && (r.value = 0, e.showTreeView = !1), r.value > 50 && (e.showTreeView = !0);
5372
+ }, v = () => {
5373
+ const p = u.getBoundingClientRect();
5374
+ r.value = p.width, u.classList.add("transition-[width]"), u.classList.remove("transition-none"), window.removeEventListener("mousemove", m), window.removeEventListener("mouseup", v);
5375
5375
  };
5376
- window.addEventListener("mousemove", m), window.addEventListener("mouseup", p);
5376
+ window.addEventListener("mousemove", m), window.addEventListener("mouseup", v);
5377
5377
  }, i = M(null);
5378
5378
  return Ce(() => {
5379
5379
  ct(i.value, {});
@@ -5405,8 +5405,8 @@ const Q1 = { render: J1 }, Z1 = { class: "block" }, ef = { class: "flex hover:te
5405
5405
  ]),
5406
5406
  o("div", hf, _(a(s)("Pinned Folders")), 1)
5407
5407
  ]),
5408
- o("ul", vf, [
5409
- (f(!0), g(he, null, $e(a(e).pinnedFolders, (u) => (f(), g("li", pf, [
5408
+ o("ul", pf, [
5409
+ (f(!0), g(he, null, $e(a(e).pinnedFolders, (u) => (f(), g("li", vf, [
5410
5410
  o("div", {
5411
5411
  class: "flex hover:text-sky-500 dark:hover:text-sky-200/50 rounded cursor-pointer",
5412
5412
  onClick: (h) => a(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: u.storage, path: u.path } })
@@ -5518,14 +5518,14 @@ const Q1 = { render: J1 }, Z1 = { class: "block" }, ef = { class: "flex hover:te
5518
5518
  const { setStore: c } = n.storage, i = M(null);
5519
5519
  n.root = i;
5520
5520
  const d = n.dragSelect;
5521
- vi(n);
5521
+ pi(n);
5522
5522
  const l = (h) => {
5523
5523
  Object.assign(n.fs.data, h), d.clearSelection(), d.refreshSelection();
5524
5524
  };
5525
5525
  let u;
5526
5526
  return n.emitter.on("vf-fetch-abort", () => {
5527
5527
  u.abort(), n.fs.loading = !1;
5528
- }), n.emitter.on("vf-fetch", ({ params: h, body: m = null, onSuccess: p = null, onError: v = null, noCloseModal: x = !1 }) => {
5528
+ }), n.emitter.on("vf-fetch", ({ params: h, body: m = null, onSuccess: v = null, onError: p = null, noCloseModal: x = !1 }) => {
5529
5529
  ["index", "search"].includes(h.q) && (u && u.abort(), n.fs.loading = !0), u = new AbortController();
5530
5530
  const y = u.signal;
5531
5531
  n.requester.send({
@@ -5535,9 +5535,9 @@ const Q1 = { render: J1 }, Z1 = { class: "block" }, ef = { class: "flex hover:te
5535
5535
  body: m,
5536
5536
  abortSignal: y
5537
5537
  }).then((b) => {
5538
- 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), p && p(b);
5538
+ 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);
5539
5539
  }).catch((b) => {
5540
- console.error(b), v && v(b);
5540
+ console.error(b), p && p(b);
5541
5541
  });
5542
5542
  }), Ce(() => {
5543
5543
  let h = {};
@@ -5559,8 +5559,8 @@ const Q1 = { render: J1 }, Z1 = { class: "block" }, ef = { class: "flex hover:te
5559
5559
  o("div", {
5560
5560
  class: me([a(n).fullScreen ? "fixed w-screen inset-0 z-20" : "relative rounded resize-y ", "overflow-hidden min-h-44 border flex flex-col bg-white dark:bg-gray-800 text-gray-700 dark:text-neutral-400 border-neutral-300 dark:border-gray-900 select-none"]),
5561
5561
  style: os(a(n).fullScreen ? "" : "max-height: " + t.maxHeight),
5562
- onMousedown: m[0] || (m[0] = (p) => a(n).emitter.emit("vf-contextmenu-hide")),
5563
- onTouchstart: m[1] || (m[1] = (p) => a(n).emitter.emit("vf-contextmenu-hide"))
5562
+ onMousedown: m[0] || (m[0] = (v) => a(n).emitter.emit("vf-contextmenu-hide")),
5563
+ onTouchstart: m[1] || (m[1] = (v) => a(n).emitter.emit("vf-contextmenu-hide"))
5564
5564
  }, [
5565
5565
  W(Yd),
5566
5566
  W($0),