dccxx-s3-explorer 1.0.65 → 1.0.66

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.
@@ -3721,7 +3721,7 @@ ${c}`);
3721
3721
  * @param stateString
3722
3722
  */
3723
3723
  static async generateAuthenticationResult(e, n, r, o, a, c, l, d, f) {
3724
- var O, M, S, H, j;
3724
+ var O, M, S, z, j;
3725
3725
  let h = ae.EMPTY_STRING, g = [], y = null, v, C, b = ae.EMPTY_STRING;
3726
3726
  if (r.accessToken) {
3727
3727
  if (r.accessToken.tokenType === It.POP && !a.popKid) {
@@ -3761,7 +3761,7 @@ ${c}`);
3761
3761
  familyId: b,
3762
3762
  tokenType: ((S = r.accessToken) == null ? void 0 : S.tokenType) || ae.EMPTY_STRING,
3763
3763
  state: l ? l.userRequestState : ae.EMPTY_STRING,
3764
- cloudGraphHostName: ((H = r.account) == null ? void 0 : H.cloudGraphHostName) || ae.EMPTY_STRING,
3764
+ cloudGraphHostName: ((z = r.account) == null ? void 0 : z.cloudGraphHostName) || ae.EMPTY_STRING,
3765
3765
  msGraphHost: ((j = r.account) == null ? void 0 : j.msGraphHost) || ae.EMPTY_STRING,
3766
3766
  code: d == null ? void 0 : d.spa_code,
3767
3767
  fromNativeBroker: !1
@@ -10292,7 +10292,7 @@ var GL = "DismissableLayer", Sg = "dismissableLayer.update", jL = "dismissableLa
10292
10292
  } = t, f = w.useContext(nE), [h, g] = w.useState(null), y = (h == null ? void 0 : h.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = w.useState({}), C = yr(e, (j) => g(j)), b = Array.from(f.layers), [_] = [...f.layersWithOutsidePointerEventsDisabled].slice(-1), R = b.indexOf(_), I = h ? b.indexOf(h) : -1, O = f.layersWithOutsidePointerEventsDisabled.size > 0, M = I >= R, S = YL((j) => {
10293
10293
  const G = j.target, te = [...f.branches].some((q) => q.contains(G));
10294
10294
  !M || te || (o == null || o(j), c == null || c(j), j.defaultPrevented || l == null || l());
10295
- }, y), H = JL((j) => {
10295
+ }, y), z = JL((j) => {
10296
10296
  const G = j.target;
10297
10297
  [...f.branches].some((q) => q.contains(G)) || (a == null || a(j), c == null || c(j), j.defaultPrevented || l == null || l());
10298
10298
  }, y);
@@ -10317,8 +10317,8 @@ var GL = "DismissableLayer", Sg = "dismissableLayer.update", jL = "dismissableLa
10317
10317
  pointerEvents: O ? M ? "auto" : "none" : void 0,
10318
10318
  ...t.style
10319
10319
  },
10320
- onFocusCapture: en(t.onFocusCapture, H.onFocusCapture),
10321
- onBlurCapture: en(t.onBlurCapture, H.onBlurCapture),
10320
+ onFocusCapture: en(t.onFocusCapture, z.onFocusCapture),
10321
+ onBlurCapture: en(t.onBlurCapture, z.onBlurCapture),
10322
10322
  onPointerDownCapture: en(
10323
10323
  t.onPointerDownCapture,
10324
10324
  S.onPointerDownCapture
@@ -10799,12 +10799,12 @@ var dE = yF(), Cp = function() {
10799
10799
  onScrollCapture: Cp,
10800
10800
  onWheelCapture: Cp,
10801
10801
  onTouchMoveCapture: Cp
10802
- }), o = r[0], a = r[1], c = t.forwardProps, l = t.children, d = t.className, f = t.removeScrollBar, h = t.enabled, g = t.shards, y = t.sideCar, v = t.noIsolation, C = t.inert, b = t.allowPinchZoom, _ = t.as, R = _ === void 0 ? "div" : _, I = t.gapMode, O = sE(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), M = y, S = gF([n, e]), H = uo(uo({}, O), o);
10802
+ }), o = r[0], a = r[1], c = t.forwardProps, l = t.children, d = t.className, f = t.removeScrollBar, h = t.enabled, g = t.shards, y = t.sideCar, v = t.noIsolation, C = t.inert, b = t.allowPinchZoom, _ = t.as, R = _ === void 0 ? "div" : _, I = t.gapMode, O = sE(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), M = y, S = gF([n, e]), z = uo(uo({}, O), o);
10803
10803
  return w.createElement(
10804
10804
  w.Fragment,
10805
10805
  null,
10806
10806
  h && w.createElement(M, { sideCar: dE, removeScrollBar: f, shards: g, noIsolation: v, inert: C, setCallbacks: a, allowPinchZoom: !!b, lockRef: n, gapMode: I }),
10807
- c ? w.cloneElement(w.Children.only(l), uo(uo({}, H), { ref: S })) : w.createElement(R, uo({}, H, { className: d, ref: S }), l)
10807
+ c ? w.cloneElement(w.Children.only(l), uo(uo({}, z), { ref: S })) : w.createElement(R, uo({}, z, { className: d, ref: S }), l)
10808
10808
  );
10809
10809
  });
10810
10810
  vf.defaultProps = {
@@ -11046,13 +11046,13 @@ function VF(t) {
11046
11046
  var l = w.useCallback(function(b, _) {
11047
11047
  if ("touches" in b && b.touches.length === 2 || b.type === "wheel" && b.ctrlKey)
11048
11048
  return !c.current.allowPinchZoom;
11049
- var R = bu(b), I = n.current, O = "deltaX" in b ? b.deltaX : I[0] - R[0], M = "deltaY" in b ? b.deltaY : I[1] - R[1], S, H = b.target, j = Math.abs(O) > Math.abs(M) ? "h" : "v";
11050
- if ("touches" in b && j === "h" && H.type === "range")
11049
+ var R = bu(b), I = n.current, O = "deltaX" in b ? b.deltaX : I[0] - R[0], M = "deltaY" in b ? b.deltaY : I[1] - R[1], S, z = b.target, j = Math.abs(O) > Math.abs(M) ? "h" : "v";
11050
+ if ("touches" in b && j === "h" && z.type === "range")
11051
11051
  return !1;
11052
- var G = HC(j, H);
11052
+ var G = HC(j, z);
11053
11053
  if (!G)
11054
11054
  return !0;
11055
- if (G ? S = j : (S = j === "v" ? "h" : "v", G = HC(j, H)), !G)
11055
+ if (G ? S = j : (S = j === "v" ? "h" : "v", G = HC(j, z)), !G)
11056
11056
  return !1;
11057
11057
  if (!r.current && "changedTouches" in b && (O || M) && (r.current = S), !S)
11058
11058
  return !0;
@@ -11481,10 +11481,10 @@ function h2({ flow: t = "implicit", scope: e = "", onSuccess: n, onError: r, onN
11481
11481
  client_id: d,
11482
11482
  scope: a ? e : `openid profile email ${e}`,
11483
11483
  callback: (M) => {
11484
- var S, H;
11484
+ var S, z;
11485
11485
  if (M.error)
11486
11486
  return (S = y.current) === null || S === void 0 ? void 0 : S.call(y, M);
11487
- (H = g.current) === null || H === void 0 || H.call(g, M);
11487
+ (z = g.current) === null || z === void 0 || z.call(g, M);
11488
11488
  },
11489
11489
  error_callback: (M) => {
11490
11490
  var S;
@@ -11723,7 +11723,7 @@ function Eu(t, e, n, r) {
11723
11723
  const S = VC(n, O, {
11724
11724
  id: [r, v, O.id, _ == null ? void 0 : _.id].filter(Boolean).join("_"),
11725
11725
  isPlaceholder: M,
11726
- placeholderId: M ? `${b.filter((H) => H.column === O).length}` : void 0,
11726
+ placeholderId: M ? `${b.filter((z) => z.column === O).length}` : void 0,
11727
11727
  depth: v,
11728
11728
  index: b.length
11729
11729
  });
@@ -12252,7 +12252,7 @@ const P2 = {
12252
12252
  const c = t.getSize(), l = t ? t.getLeafHeaders().map((R) => [R.column.id, R.column.getSize()]) : [[r.id, r.getSize()]], d = Sp(a) ? Math.round(a.touches[0].clientX) : a.clientX, f = {}, h = (R, I) => {
12253
12253
  typeof I == "number" && (e.setColumnSizingInfo((O) => {
12254
12254
  var M, S;
12255
- const H = e.options.columnResizeDirection === "rtl" ? -1 : 1, j = (I - ((M = O == null ? void 0 : O.startOffset) != null ? M : 0)) * H, G = Math.max(j / ((S = O == null ? void 0 : O.startSize) != null ? S : 0), -0.999999);
12255
+ const z = e.options.columnResizeDirection === "rtl" ? -1 : 1, j = (I - ((M = O == null ? void 0 : O.startOffset) != null ? M : 0)) * z, G = Math.max(j / ((S = O == null ? void 0 : O.startSize) != null ? S : 0), -0.999999);
12256
12256
  return O.columnSizingStart.forEach((te) => {
12257
12257
  let [q, ve] = te;
12258
12258
  f[q] = Math.round(Math.max(ve + ve * G, 0) * 100) / 100;
@@ -13284,11 +13284,11 @@ function n$() {
13284
13284
  const C = a[v], b = c[C.id], _ = b.sortUndefined, R = (y = C == null ? void 0 : C.desc) != null ? y : !1;
13285
13285
  let I = 0;
13286
13286
  if (_) {
13287
- const O = h.getValue(C.id), M = g.getValue(C.id), S = O === void 0, H = M === void 0;
13288
- if (S || H) {
13287
+ const O = h.getValue(C.id), M = g.getValue(C.id), S = O === void 0, z = M === void 0;
13288
+ if (S || z) {
13289
13289
  if (_ === "first") return S ? -1 : 1;
13290
13290
  if (_ === "last") return S ? 1 : -1;
13291
- I = S && H ? 0 : S ? _ : -_;
13291
+ I = S && z ? 0 : S ? _ : -_;
13292
13292
  }
13293
13293
  }
13294
13294
  if (I === 0 && (I = b.sortingFn(h, g, C.id)), I !== 0)
@@ -14568,8 +14568,8 @@ const RU = async (t) => {
14568
14568
  method: "POST",
14569
14569
  body: r,
14570
14570
  duplex: "half"
14571
- }), H;
14572
- if (ee.isFormData(r) && (H = S.headers.get("content-type")) && h.setContentType(H), S.body) {
14571
+ }), z;
14572
+ if (ee.isFormData(r) && (z = S.headers.get("content-type")) && h.setContentType(z), S.body) {
14573
14573
  const [j, G] = QC(
14574
14574
  _,
14575
14575
  $d(XC(d))
@@ -14595,8 +14595,8 @@ const RU = async (t) => {
14595
14595
  ["status", "statusText", "headers"].forEach((te) => {
14596
14596
  S[te] = I[te];
14597
14597
  });
14598
- const H = ee.toFiniteNumber(I.headers.get("content-length")), [j, G] = l && QC(
14599
- H,
14598
+ const z = ee.toFiniteNumber(I.headers.get("content-length")), [j, G] = l && QC(
14599
+ z,
14600
14600
  $d(XC(l), !0)
14601
14601
  ) || [];
14602
14602
  I = new Response(
@@ -14608,8 +14608,8 @@ const RU = async (t) => {
14608
14608
  }
14609
14609
  f = f || "text";
14610
14610
  let M = await Ud[ee.findKey(Ud, f) || "text"](I, t);
14611
- return !O && b && b(), await new Promise((S, H) => {
14612
- dT(S, H, {
14611
+ return !O && b && b(), await new Promise((S, z) => {
14612
+ dT(S, z, {
14613
14613
  data: M,
14614
14614
  headers: Gn.from(I.headers),
14615
14615
  status: I.status,
@@ -15220,8 +15220,8 @@ var _T = { exports: {} };
15220
15220
  return { M: g, y: v, w: h, d: f, D: C, h: d, m: l, s: c, ms: a, Q: y }[W] || String(W || "").toLowerCase().replace(/s$/, "");
15221
15221
  }, u: function(W) {
15222
15222
  return W === void 0;
15223
- } }, S = "en", H = {};
15224
- H[S] = I;
15223
+ } }, S = "en", z = {};
15224
+ z[S] = I;
15225
15225
  var j = "$isDayjsObject", G = function(W) {
15226
15226
  return W instanceof ce || !(!W || !W[j]);
15227
15227
  }, te = function W(X, Y, se) {
@@ -15229,12 +15229,12 @@ var _T = { exports: {} };
15229
15229
  if (!X) return S;
15230
15230
  if (typeof X == "string") {
15231
15231
  var ne = X.toLowerCase();
15232
- H[ne] && (B = ne), Y && (H[ne] = Y, B = ne);
15232
+ z[ne] && (B = ne), Y && (z[ne] = Y, B = ne);
15233
15233
  var V = X.split("-");
15234
15234
  if (!B && V.length > 1) return W(V[0]);
15235
15235
  } else {
15236
15236
  var Z = X.name;
15237
- H[Z] = X, B = Z;
15237
+ z[Z] = X, B = Z;
15238
15238
  }
15239
15239
  return !se && B && (S = B), B || !se && S;
15240
15240
  }, q = function(W, X) {
@@ -15444,7 +15444,7 @@ var _T = { exports: {} };
15444
15444
  }, X.daysInMonth = function() {
15445
15445
  return this.endOf(g).$D;
15446
15446
  }, X.$locale = function() {
15447
- return H[this.$L];
15447
+ return z[this.$L];
15448
15448
  }, X.locale = function(Y, se) {
15449
15449
  if (!Y) return this.$L;
15450
15450
  var B = this.clone(), ne = te(Y, se, !0);
@@ -15469,7 +15469,7 @@ var _T = { exports: {} };
15469
15469
  return W.$i || (W(X, ce, q), W.$i = !0), q;
15470
15470
  }, q.locale = te, q.isDayjs = G, q.unix = function(W) {
15471
15471
  return q(1e3 * W);
15472
- }, q.en = H[S], q.Ls = H, q.p = {}, q;
15472
+ }, q.en = z[S], q.Ls = z, q.p = {}, q;
15473
15473
  });
15474
15474
  })(_T);
15475
15475
  var YU = _T.exports;
@@ -15486,7 +15486,7 @@ var Hd = { exports: {} };
15486
15486
  Hd.exports;
15487
15487
  (function(t, e) {
15488
15488
  (function() {
15489
- var n, r = "4.17.21", o = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", c = "Expected a function", l = "Invalid `variable` option passed into `_.template`", d = "__lodash_hash_undefined__", f = 500, h = "__lodash_placeholder__", g = 1, y = 2, v = 4, C = 1, b = 2, _ = 1, R = 2, I = 4, O = 8, M = 16, S = 32, H = 64, j = 128, G = 256, te = 512, q = 30, ve = "...", ce = 800, _e = 16, W = 1, X = 2, Y = 3, se = 1 / 0, B = 9007199254740991, ne = 17976931348623157e292, V = NaN, Z = 4294967295, Ee = Z - 1, Se = Z >>> 1, Te = [
15489
+ var n, r = "4.17.21", o = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", c = "Expected a function", l = "Invalid `variable` option passed into `_.template`", d = "__lodash_hash_undefined__", f = 500, h = "__lodash_placeholder__", g = 1, y = 2, v = 4, C = 1, b = 2, _ = 1, R = 2, I = 4, O = 8, M = 16, S = 32, z = 64, j = 128, G = 256, te = 512, q = 30, ve = "...", ce = 800, _e = 16, W = 1, X = 2, Y = 3, se = 1 / 0, B = 9007199254740991, ne = 17976931348623157e292, V = NaN, Z = 4294967295, Ee = Z - 1, Se = Z >>> 1, Te = [
15490
15490
  ["ary", j],
15491
15491
  ["bind", _],
15492
15492
  ["bindKey", R],
@@ -15494,7 +15494,7 @@ Hd.exports;
15494
15494
  ["curryRight", M],
15495
15495
  ["flip", te],
15496
15496
  ["partial", S],
15497
- ["partialRight", H],
15497
+ ["partialRight", z],
15498
15498
  ["rearg", G]
15499
15499
  ], Me = "[object Arguments]", Ae = "[object Array]", ke = "[object AsyncFunction]", $e = "[object Boolean]", De = "[object Date]", Le = "[object DOMException]", tt = "[object Error]", ge = "[object Function]", ft = "[object GeneratorFunction]", At = "[object Map]", Gt = "[object Number]", ar = "[object Null]", Ht = "[object Object]", N = "[object Promise]", K = "[object Proxy]", J = "[object RegExp]", Ce = "[object Set]", xe = "[object String]", me = "[object Symbol]", re = "[object Undefined]", he = "[object WeakMap]", Xe = "[object WeakSet]", Ye = "[object ArrayBuffer]", pt = "[object DataView]", sr = "[object Float32Array]", $t = "[object Float64Array]", Pn = "[object Int8Array]", Cr = "[object Int16Array]", jt = "[object Int32Array]", Nn = "[object Uint8Array]", jn = "[object Uint8ClampedArray]", br = "[object Uint16Array]", He = "[object Uint32Array]", cr = /\b__p \+= '';/g, da = /\b(__p \+=) '' \+/g, Wr = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Xo = /&(?:amp|lt|gt|quot|#39);/g, Zo = /[&<>"']/g, fa = RegExp(Xo.source), qf = RegExp(Zo.source), Oi = /<%-([\s\S]+?)%>/g, Pi = /<%([\s\S]+?)%>/g, Rs = /<%=([\s\S]+?)%>/g, nl = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Yf = /^\w*$/, bo = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ln = /[\\^$.*+?()[\]{}|]/g, Is = RegExp(ln.source), rl = /^\s+/, Jf = /\s/, oy = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, ks = /\{\n\/\* \[wrapped with (.+)\] \*/, ol = /,? & /, ha = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, il = /[()=,{}\[\]\/\s]/, al = /\\(\\)?/g, sl = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Os = /\w*$/, pa = /^[-+]0x[0-9a-f]+$/i, Ps = /^0b[01]+$/i, Qf = /^\[object .+?Constructor\]$/, ga = /^0o[0-7]+$/i, ma = /^(?:0|[1-9]\d*)$/, cl = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, va = /($^)/, ei = /['\n\r\u2028\u2029\\]/g, Ni = "\\ud800-\\udfff", Ns = "\\u0300-\\u036f", ll = "\\ufe20-\\ufe2f", Xf = "\\u20d0-\\u20ff", ya = Ns + ll + Xf, Ms = "\\u2700-\\u27bf", Ds = "a-z\\xdf-\\xf6\\xf8-\\xff", wa = "\\xac\\xb1\\xd7\\xf7", ti = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Mi = "\\u2000-\\u206f", ul = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", dl = "A-Z\\xc0-\\xd6\\xd8-\\xde", wt = "\\ufe0e\\ufe0f", Di = wa + ti + Mi + ul, Ls = "['’]", Ca = "[" + Ni + "]", fl = "[" + Di + "]", xo = "[" + ya + "]", Zf = "\\d+", iy = "[" + Ms + "]", hl = "[" + Ds + "]", eh = "[^" + Ni + Di + Zf + Ms + Ds + dl + "]", Fs = "\\ud83c[\\udffb-\\udfff]", qr = "(?:" + xo + "|" + Fs + ")", _o = "[^" + Ni + "]", $s = "(?:\\ud83c[\\udde6-\\uddff]){2}", Eo = "[\\ud800-\\udbff][\\udc00-\\udfff]", Bt = "[" + dl + "]", ba = "\\u200d", xr = "(?:" + hl + "|" + eh + ")", Us = "(?:" + Bt + "|" + eh + ")", pl = "(?:" + Ls + "(?:d|ll|m|re|s|t|ve))?", gl = "(?:" + Ls + "(?:D|LL|M|RE|S|T|VE))?", Hs = qr + "?", ml = "[" + wt + "]?", th = "(?:" + ba + "(?:" + [_o, $s, Eo].join("|") + ")" + ml + Hs + ")*", xa = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", nh = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", vl = ml + Hs + th, rh = "(?:" + [iy, $s, Eo].join("|") + ")" + vl, yl = "(?:" + [_o + xo + "?", xo, $s, Eo, Ca].join("|") + ")", oh = RegExp(Ls, "g"), wl = RegExp(xo, "g"), Li = RegExp(Fs + "(?=" + Fs + ")|" + yl + vl, "g"), ih = RegExp([
15500
15500
  Bt + "?" + hl + "+" + pl + "(?=" + [fl, Bt, "$"].join("|") + ")",
@@ -15844,7 +15844,7 @@ Hd.exports;
15844
15844
  function P($) {
15845
15845
  return $.split("");
15846
15846
  }
15847
- function z($) {
15847
+ function H($) {
15848
15848
  return $.match(ha) || [];
15849
15849
  }
15850
15850
  function ie($, oe, Q) {
@@ -17223,7 +17223,7 @@ Hd.exports;
17223
17223
  }
17224
17224
  function nw(i, s, u, p, x, A, k, D, U, le) {
17225
17225
  var de = s & O, pe = de ? k : n, Re = de ? n : k, Fe = de ? A : n, Ve = de ? n : A;
17226
- s |= de ? S : H, s &= ~(de ? H : S), s & I || (s &= ~(_ | R));
17226
+ s |= de ? S : z, s &= ~(de ? z : S), s & I || (s &= ~(_ | R));
17227
17227
  var at = [
17228
17228
  i,
17229
17229
  s,
@@ -17262,7 +17262,7 @@ Hd.exports;
17262
17262
  if (!U && typeof i != "function")
17263
17263
  throw new dr(c);
17264
17264
  var le = p ? p.length : 0;
17265
- if (le || (s &= ~(S | H), p = x = n), k = k === n ? k : on(ot(k), 0), D = D === n ? D : ot(D), le -= x ? x.length : 0, s & H) {
17265
+ if (le || (s &= ~(S | z), p = x = n), k = k === n ? k : on(ot(k), 0), D = D === n ? D : ot(D), le -= x ? x.length : 0, s & z) {
17266
17266
  var de = p, pe = x;
17267
17267
  p = x = n;
17268
17268
  }
@@ -18296,7 +18296,7 @@ Hd.exports;
18296
18296
  return Oo(i, S, n, s, u);
18297
18297
  }), Mw = st(function(i, s) {
18298
18298
  var u = oi(s, $a(Mw));
18299
- return Oo(i, H, n, s, u);
18299
+ return Oo(i, z, n, s, u);
18300
18300
  }), Jk = Po(function(i, s) {
18301
18301
  return Oo(i, G, n, n, n, s);
18302
18302
  });
@@ -18885,7 +18885,7 @@ function print() { __p += __j.call(arguments, '') }
18885
18885
  return i + (u ? " " : "") + s.toUpperCase();
18886
18886
  }), rp = Qy("toUpperCase");
18887
18887
  function Yw(i, s, u) {
18888
- return i = bt(i), s = u ? n : s, s === n ? aR(i) ? pR(i) : z(i) : i.match(s) || [];
18888
+ return i = bt(i), s = u ? n : s, s === n ? aR(i) ? pR(i) : H(i) : i.match(s) || [];
18889
18889
  }
18890
18890
  var Jw = st(function(i, s) {
18891
18891
  try {
@@ -19779,7 +19779,7 @@ const Lt = (t) => {
19779
19779
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
19780
19780
  zH.test(t) && !VH.test(t)
19781
19781
  ), FT = () => !1, eB = (t) => KH.test(t), tB = (t) => GH.test(t), nB = () => {
19782
- const t = Lt("colors"), e = Lt("spacing"), n = Lt("blur"), r = Lt("brightness"), o = Lt("borderColor"), a = Lt("borderRadius"), c = Lt("borderSpacing"), l = Lt("borderWidth"), d = Lt("contrast"), f = Lt("grayscale"), h = Lt("hueRotate"), g = Lt("invert"), y = Lt("gap"), v = Lt("gradientColorStops"), C = Lt("gradientColorStopPositions"), b = Lt("inset"), _ = Lt("margin"), R = Lt("opacity"), I = Lt("padding"), O = Lt("saturate"), M = Lt("scale"), S = Lt("sepia"), H = Lt("skew"), j = Lt("space"), G = Lt("translate"), te = () => ["auto", "contain", "none"], q = () => ["auto", "hidden", "clip", "visible", "scroll"], ve = () => ["auto", it, e], ce = () => [it, e], _e = () => ["", $o, di], W = () => ["auto", ns, it], X = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Y = () => ["solid", "dashed", "dotted", "double", "none"], se = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], B = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], ne = () => ["", "0", it], V = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Z = () => [ns, it];
19782
+ const t = Lt("colors"), e = Lt("spacing"), n = Lt("blur"), r = Lt("brightness"), o = Lt("borderColor"), a = Lt("borderRadius"), c = Lt("borderSpacing"), l = Lt("borderWidth"), d = Lt("contrast"), f = Lt("grayscale"), h = Lt("hueRotate"), g = Lt("invert"), y = Lt("gap"), v = Lt("gradientColorStops"), C = Lt("gradientColorStopPositions"), b = Lt("inset"), _ = Lt("margin"), R = Lt("opacity"), I = Lt("padding"), O = Lt("saturate"), M = Lt("scale"), S = Lt("sepia"), z = Lt("skew"), j = Lt("space"), G = Lt("translate"), te = () => ["auto", "contain", "none"], q = () => ["auto", "hidden", "clip", "visible", "scroll"], ve = () => ["auto", it, e], ce = () => [it, e], _e = () => ["", $o, di], W = () => ["auto", ns, it], X = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Y = () => ["solid", "dashed", "dotted", "double", "none"], se = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], B = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], ne = () => ["", "0", it], V = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Z = () => [ns, it];
19783
19783
  return {
19784
19784
  cacheSize: 500,
19785
19785
  separator: ":",
@@ -21459,14 +21459,14 @@ const Lt = (t) => {
21459
21459
  * @see https://tailwindcss.com/docs/skew
21460
21460
  */
21461
21461
  "skew-x": [{
21462
- "skew-x": [H]
21462
+ "skew-x": [z]
21463
21463
  }],
21464
21464
  /**
21465
21465
  * Skew Y
21466
21466
  * @see https://tailwindcss.com/docs/skew
21467
21467
  */
21468
21468
  "skew-y": [{
21469
- "skew-y": [H]
21469
+ "skew-y": [z]
21470
21470
  }],
21471
21471
  /**
21472
21472
  * Transform Origin
@@ -22635,7 +22635,7 @@ var NB = w.forwardRef((t, e) => {
22635
22635
  prop: c,
22636
22636
  defaultProp: l,
22637
22637
  onChange: d
22638
- }), [R, I] = w.useState(!1), O = On(f), M = QT(n), S = w.useRef(!1), [H, j] = w.useState(0);
22638
+ }), [R, I] = w.useState(!1), O = On(f), M = QT(n), S = w.useRef(!1), [z, j] = w.useState(0);
22639
22639
  return w.useEffect(() => {
22640
22640
  const G = y.current;
22641
22641
  if (G)
@@ -22664,7 +22664,7 @@ var NB = w.forwardRef((t, e) => {
22664
22664
  children: /* @__PURE__ */ m(
22665
22665
  YT.div,
22666
22666
  {
22667
- tabIndex: R || H === 0 ? -1 : 0,
22667
+ tabIndex: R || z === 0 ? -1 : 0,
22668
22668
  "data-orientation": r,
22669
22669
  ...g,
22670
22670
  ref: v,
@@ -23342,16 +23342,16 @@ var bS = "ToastViewport", f3 = ["F8"], Zg = "toast.viewportPause", em = "toast.v
23342
23342
  if (C && _ && R) {
23343
23343
  const I = () => {
23344
23344
  if (!c.isClosePausedRef.current) {
23345
- const H = new CustomEvent(Zg);
23346
- R.dispatchEvent(H), c.isClosePausedRef.current = !0;
23345
+ const z = new CustomEvent(Zg);
23346
+ R.dispatchEvent(z), c.isClosePausedRef.current = !0;
23347
23347
  }
23348
23348
  }, O = () => {
23349
23349
  if (c.isClosePausedRef.current) {
23350
- const H = new CustomEvent(em);
23351
- R.dispatchEvent(H), c.isClosePausedRef.current = !1;
23350
+ const z = new CustomEvent(em);
23351
+ R.dispatchEvent(z), c.isClosePausedRef.current = !1;
23352
23352
  }
23353
- }, M = (H) => {
23354
- !_.contains(H.relatedTarget) && O();
23353
+ }, M = (z) => {
23354
+ !_.contains(z.relatedTarget) && O();
23355
23355
  }, S = () => {
23356
23356
  _.contains(document.activeElement) || O();
23357
23357
  };
@@ -23374,7 +23374,7 @@ var bS = "ToastViewport", f3 = ["F8"], Zg = "toast.viewportPause", em = "toast.v
23374
23374
  const _ = g.current;
23375
23375
  if (_) {
23376
23376
  const R = (I) => {
23377
- var S, H, j;
23377
+ var S, z, j;
23378
23378
  const O = I.altKey || I.ctrlKey || I.metaKey;
23379
23379
  if (I.key === "Tab" && !O) {
23380
23380
  const G = document.activeElement, te = I.shiftKey;
@@ -23383,7 +23383,7 @@ var bS = "ToastViewport", f3 = ["F8"], Zg = "toast.viewportPause", em = "toast.v
23383
23383
  return;
23384
23384
  }
23385
23385
  const ce = b({ tabbingDirection: te ? "backwards" : "forwards" }), _e = ce.findIndex((W) => W === G);
23386
- Up(ce.slice(_e + 1)) ? I.preventDefault() : te ? (H = f.current) == null || H.focus() : (j = h.current) == null || j.focus();
23386
+ Up(ce.slice(_e + 1)) ? I.preventDefault() : te ? (z = f.current) == null || z.focus() : (j = h.current) == null || j.focus();
23387
23387
  }
23388
23388
  };
23389
23389
  return _.addEventListener("keydown", R), () => _.removeEventListener("keydown", R);
@@ -23503,12 +23503,12 @@ var [v3, y3] = wS(Uf, {
23503
23503
  onSwipeCancel: y,
23504
23504
  onSwipeEnd: v,
23505
23505
  ...C
23506
- } = t, b = $f(Uf, n), [_, R] = w.useState(null), I = yr(e, (W) => R(W)), O = w.useRef(null), M = w.useRef(null), S = o || b.duration, H = w.useRef(0), j = w.useRef(S), G = w.useRef(0), { onToastAdd: te, onToastRemove: q } = b, ve = On(() => {
23506
+ } = t, b = $f(Uf, n), [_, R] = w.useState(null), I = yr(e, (W) => R(W)), O = w.useRef(null), M = w.useRef(null), S = o || b.duration, z = w.useRef(0), j = w.useRef(S), G = w.useRef(0), { onToastAdd: te, onToastRemove: q } = b, ve = On(() => {
23507
23507
  var X;
23508
23508
  (_ == null ? void 0 : _.contains(document.activeElement)) && ((X = b.viewport) == null || X.focus()), c();
23509
23509
  }), ce = w.useCallback(
23510
23510
  (W) => {
23511
- !W || W === 1 / 0 || (window.clearTimeout(G.current), H.current = (/* @__PURE__ */ new Date()).getTime(), G.current = window.setTimeout(ve, W));
23511
+ !W || W === 1 / 0 || (window.clearTimeout(G.current), z.current = (/* @__PURE__ */ new Date()).getTime(), G.current = window.setTimeout(ve, W));
23512
23512
  },
23513
23513
  [ve]
23514
23514
  );
@@ -23518,7 +23518,7 @@ var [v3, y3] = wS(Uf, {
23518
23518
  const X = () => {
23519
23519
  ce(j.current), f == null || f();
23520
23520
  }, Y = () => {
23521
- const se = (/* @__PURE__ */ new Date()).getTime() - H.current;
23521
+ const se = (/* @__PURE__ */ new Date()).getTime() - z.current;
23522
23522
  j.current = j.current - se, window.clearTimeout(G.current), d == null || d();
23523
23523
  };
23524
23524
  return W.addEventListener(Zg, Y), W.addEventListener(em, X), () => {
@@ -23968,7 +23968,7 @@ var $3 = "DismissableLayer", nm = "dismissableLayer.update", U3 = "dismissableLa
23968
23968
  } = t, f = w.useContext(KS), [h, g] = w.useState(null), y = (h == null ? void 0 : h.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = w.useState({}), C = Qc(e, (j) => g(j)), b = Array.from(f.layers), [_] = [...f.layersWithOutsidePointerEventsDisabled].slice(-1), R = b.indexOf(_), I = h ? b.indexOf(h) : -1, O = f.layersWithOutsidePointerEventsDisabled.size > 0, M = I >= R, S = V3((j) => {
23969
23969
  const G = j.target, te = [...f.branches].some((q) => q.contains(G));
23970
23970
  !M || te || (o == null || o(j), c == null || c(j), j.defaultPrevented || l == null || l());
23971
- }, y), H = K3((j) => {
23971
+ }, y), z = K3((j) => {
23972
23972
  const G = j.target;
23973
23973
  [...f.branches].some((q) => q.contains(G)) || (a == null || a(j), c == null || c(j), j.defaultPrevented || l == null || l());
23974
23974
  }, y);
@@ -23993,8 +23993,8 @@ var $3 = "DismissableLayer", nm = "dismissableLayer.update", U3 = "dismissableLa
23993
23993
  pointerEvents: O ? M ? "auto" : "none" : void 0,
23994
23994
  ...t.style
23995
23995
  },
23996
- onFocusCapture: jo(t.onFocusCapture, H.onFocusCapture),
23997
- onBlurCapture: jo(t.onBlurCapture, H.onBlurCapture),
23996
+ onFocusCapture: jo(t.onFocusCapture, z.onFocusCapture),
23997
+ onBlurCapture: jo(t.onBlurCapture, z.onBlurCapture),
23998
23998
  onPointerDownCapture: jo(
23999
23999
  t.onPointerDownCapture,
24000
24000
  S.onPointerDownCapture
@@ -24347,9 +24347,9 @@ const ez = (t) => ({
24347
24347
  const g = WS(h), y = {
24348
24348
  x: n,
24349
24349
  y: r
24350
- }, v = zv(o), C = Bv(v), b = await c.getDimensions(f), _ = v === "y", R = _ ? "top" : "left", I = _ ? "bottom" : "right", O = _ ? "clientHeight" : "clientWidth", M = a.reference[C] + a.reference[v] - y[v] - a.floating[C], S = y[v] - a.reference[v], H = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(f));
24351
- let j = H ? H[O] : 0;
24352
- (!j || !await (c.isElement == null ? void 0 : c.isElement(H))) && (j = l.floating[O] || a.floating[C]);
24350
+ }, v = zv(o), C = Bv(v), b = await c.getDimensions(f), _ = v === "y", R = _ ? "top" : "left", I = _ ? "bottom" : "right", O = _ ? "clientHeight" : "clientWidth", M = a.reference[C] + a.reference[v] - y[v] - a.floating[C], S = y[v] - a.reference[v], z = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(f));
24351
+ let j = z ? z[O] : 0;
24352
+ (!j || !await (c.isElement == null ? void 0 : c.isElement(z))) && (j = l.floating[O] || a.floating[C]);
24353
24353
  const G = M / 2 - S / 2, te = j / 2 - b[C] / 2 - 1, q = Ai(g[R], te), ve = Ai(g[I], te), ce = q, _e = j - b[C] - ve, W = j / 2 - b[C] / 2 + G, X = rm(ce, W, _e), Y = !d.arrow && Ss(o) != null && W !== X && a.reference[C] / 2 - (W < ce ? q : ve) - b[C] / 2 < 0, se = Y ? W < ce ? W - ce : W - _e : 0;
24354
24354
  return {
24355
24355
  [v]: y[v] + se,
@@ -24387,8 +24387,8 @@ const ez = (t) => ({
24387
24387
  } = Jo(t, e);
24388
24388
  if ((n = a.arrow) != null && n.alignmentOffset)
24389
24389
  return {};
24390
- const R = Qo(o), I = Ri(l), O = Qo(l) === l, M = await (d.isRTL == null ? void 0 : d.isRTL(f.floating)), S = y || (O || !b ? [Vd(l)] : Y3(l)), H = C !== "none";
24391
- !y && H && S.push(...Q3(l, b, C, M));
24390
+ const R = Qo(o), I = Ri(l), O = Qo(l) === l, M = await (d.isRTL == null ? void 0 : d.isRTL(f.floating)), S = y || (O || !b ? [Vd(l)] : Y3(l)), z = C !== "none";
24391
+ !y && z && S.push(...Q3(l, b, C, M));
24392
24392
  const j = [l, ...S], G = await zc(e, _), te = [];
24393
24393
  let q = ((r = a.flip) == null ? void 0 : r.overflows) || [];
24394
24394
  if (h && te.push(G[R]), g) {
@@ -24417,7 +24417,7 @@ const ez = (t) => ({
24417
24417
  case "bestFit": {
24418
24418
  var _e;
24419
24419
  const se = (_e = q.filter((B) => {
24420
- if (H) {
24420
+ if (z) {
24421
24421
  const ne = Ri(B.placement);
24422
24422
  return ne === I || // Create a bias to the `y` side axis due to horizontal
24423
24423
  // reading directions favoring greater width.
@@ -24634,8 +24634,8 @@ const oz = function(t) {
24634
24634
  }
24635
24635
  if (f) {
24636
24636
  var R, I;
24637
- const O = y === "y" ? "width" : "height", M = ["top", "left"].includes(Qo(o)), S = a.reference[g] - a.floating[O] + (M && ((R = c.offset) == null ? void 0 : R[g]) || 0) + (M ? 0 : _.crossAxis), H = a.reference[g] + a.reference[O] + (M ? 0 : ((I = c.offset) == null ? void 0 : I[g]) || 0) - (M ? _.crossAxis : 0);
24638
- C < S ? C = S : C > H && (C = H);
24637
+ const O = y === "y" ? "width" : "height", M = ["top", "left"].includes(Qo(o)), S = a.reference[g] - a.floating[O] + (M && ((R = c.offset) == null ? void 0 : R[g]) || 0) + (M ? 0 : _.crossAxis), z = a.reference[g] + a.reference[O] + (M ? 0 : ((I = c.offset) == null ? void 0 : I[g]) || 0) - (M ? _.crossAxis : 0);
24638
+ C < S ? C = S : C > z && (C = z);
24639
24639
  }
24640
24640
  return {
24641
24641
  [y]: v,
@@ -24664,9 +24664,9 @@ const oz = function(t) {
24664
24664
  } = a.floating;
24665
24665
  let _, R;
24666
24666
  g === "top" || g === "bottom" ? (_ = g, R = y === (await (c.isRTL == null ? void 0 : c.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (R = g, _ = y === "end" ? "top" : "bottom");
24667
- const I = b - h.top - h.bottom, O = C - h.left - h.right, M = Ai(b - h[_], I), S = Ai(C - h[R], O), H = !e.middlewareData.shift;
24667
+ const I = b - h.top - h.bottom, O = C - h.left - h.right, M = Ai(b - h[_], I), S = Ai(C - h[R], O), z = !e.middlewareData.shift;
24668
24668
  let j = M, G = S;
24669
- if ((n = e.middlewareData.shift) != null && n.enabled.x && (G = O), (r = e.middlewareData.shift) != null && r.enabled.y && (j = I), H && !y) {
24669
+ if ((n = e.middlewareData.shift) != null && n.enabled.x && (G = O), (r = e.middlewareData.shift) != null && r.enabled.y && (j = I), z && !y) {
24670
24670
  const q = Zn(h.left, 0), ve = Zn(h.right, 0), ce = Zn(h.top, 0), _e = Zn(h.bottom, 0);
24671
24671
  v ? G = C - 2 * (q !== 0 || ve !== 0 ? q + ve : Zn(h.left, h.right)) : j = b - 2 * (ce !== 0 || _e !== 0 ? ce + _e : Zn(h.top, h.bottom));
24672
24672
  }
@@ -25097,11 +25097,11 @@ function Ez(t, e) {
25097
25097
  };
25098
25098
  let O = !0;
25099
25099
  function M(S) {
25100
- const H = S[0].intersectionRatio;
25101
- if (H !== d) {
25100
+ const z = S[0].intersectionRatio;
25101
+ if (z !== d) {
25102
25102
  if (!O)
25103
25103
  return c();
25104
- H ? c(!1, H) : r = setTimeout(() => {
25104
+ z ? c(!1, z) : r = setTimeout(() => {
25105
25105
  c(!1, 1e-7);
25106
25106
  }, 1e3);
25107
25107
  }
@@ -25237,18 +25237,18 @@ function Nz(t) {
25237
25237
  }), [y, v] = w.useState(r);
25238
25238
  Gd(y, r) || v(r);
25239
25239
  const [C, b] = w.useState(null), [_, R] = w.useState(null), I = w.useCallback((B) => {
25240
- B !== H.current && (H.current = B, b(B));
25240
+ B !== z.current && (z.current = B, b(B));
25241
25241
  }, []), O = w.useCallback((B) => {
25242
25242
  B !== j.current && (j.current = B, R(B));
25243
- }, []), M = a || C, S = c || _, H = w.useRef(null), j = w.useRef(null), G = w.useRef(h), te = d != null, q = Vp(d), ve = Vp(o), ce = Vp(f), _e = w.useCallback(() => {
25244
- if (!H.current || !j.current)
25243
+ }, []), M = a || C, S = c || _, z = w.useRef(null), j = w.useRef(null), G = w.useRef(h), te = d != null, q = Vp(d), ve = Vp(o), ce = Vp(f), _e = w.useCallback(() => {
25244
+ if (!z.current || !j.current)
25245
25245
  return;
25246
25246
  const B = {
25247
25247
  placement: e,
25248
25248
  strategy: n,
25249
25249
  middleware: y
25250
25250
  };
25251
- ve.current && (B.platform = ve.current), Pz(H.current, j.current, B).then((ne) => {
25251
+ ve.current && (B.platform = ve.current), Pz(z.current, j.current, B).then((ne) => {
25252
25252
  const V = {
25253
25253
  ...ne,
25254
25254
  // The floating element's position may be recomputed while it's closed
@@ -25272,14 +25272,14 @@ function Nz(t) {
25272
25272
  qu(() => (W.current = !0, () => {
25273
25273
  W.current = !1;
25274
25274
  }), []), qu(() => {
25275
- if (M && (H.current = M), S && (j.current = S), M && S) {
25275
+ if (M && (z.current = M), S && (j.current = S), M && S) {
25276
25276
  if (q.current)
25277
25277
  return q.current(M, S, _e);
25278
25278
  _e();
25279
25279
  }
25280
25280
  }, [M, S, _e, q, te]);
25281
25281
  const X = w.useMemo(() => ({
25282
- reference: H,
25282
+ reference: z,
25283
25283
  floating: j,
25284
25284
  setReference: I,
25285
25285
  setFloating: O
@@ -25477,7 +25477,7 @@ var qv = "PopperContent", [Yz, Jz] = iA(qv), dA = w.forwardRef(
25477
25477
  updatePositionStrategy: v = "optimized",
25478
25478
  onPlaced: C,
25479
25479
  ...b
25480
- } = t, _ = sA(qv, n), [R, I] = w.useState(null), O = rA(e, (ft) => I(ft)), [M, S] = w.useState(null), H = UT(M), j = (H == null ? void 0 : H.width) ?? 0, G = (H == null ? void 0 : H.height) ?? 0, te = r + (a !== "center" ? "-" + a : ""), q = typeof h == "number" ? h : { top: 0, right: 0, bottom: 0, left: 0, ...h }, ve = Array.isArray(f) ? f : [f], ce = ve.length > 0, _e = {
25480
+ } = t, _ = sA(qv, n), [R, I] = w.useState(null), O = rA(e, (ft) => I(ft)), [M, S] = w.useState(null), z = UT(M), j = (z == null ? void 0 : z.width) ?? 0, G = (z == null ? void 0 : z.height) ?? 0, te = r + (a !== "center" ? "-" + a : ""), q = typeof h == "number" ? h : { top: 0, right: 0, bottom: 0, left: 0, ...h }, ve = Array.isArray(f) ? f : [f], ce = ve.length > 0, _e = {
25481
25481
  padding: q,
25482
25482
  boundary: ve.filter(Xz),
25483
25483
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -25796,7 +25796,7 @@ var jf = "Tooltip", [f5, el] = Kf(jf), wA = (t) => {
25796
25796
  window.clearTimeout(v.current), v.current = 0, _.current = !1, I(!0);
25797
25797
  }, [I]), S = w.useCallback(() => {
25798
25798
  window.clearTimeout(v.current), v.current = 0, I(!1);
25799
- }, [I]), H = w.useCallback(() => {
25799
+ }, [I]), z = w.useCallback(() => {
25800
25800
  window.clearTimeout(v.current), v.current = window.setTimeout(() => {
25801
25801
  _.current = !0, I(!0), v.current = 0;
25802
25802
  }, b);
@@ -25813,8 +25813,8 @@ var jf = "Tooltip", [f5, el] = Kf(jf), wA = (t) => {
25813
25813
  trigger: h,
25814
25814
  onTriggerChange: g,
25815
25815
  onTriggerEnter: w.useCallback(() => {
25816
- d.isOpenDelayed ? H() : M();
25817
- }, [d.isOpenDelayed, H, M]),
25816
+ d.isOpenDelayed ? z() : M();
25817
+ }, [d.isOpenDelayed, z, M]),
25818
25818
  onTriggerLeave: w.useCallback(() => {
25819
25819
  C ? S() : (window.clearTimeout(v.current), v.current = 0);
25820
25820
  }, [S, C]),
@@ -26180,29 +26180,29 @@ function O4(t, e, n) {
26180
26180
  if (typeof t != "function")
26181
26181
  throw new TypeError(R4);
26182
26182
  e = Db(e) || 0, A4(n) && (h = !!n.leading, g = "maxWait" in n, a = g ? I4(Db(n.maxWait) || 0, e) : a, y = "trailing" in n ? !!n.trailing : y);
26183
- function v(H) {
26183
+ function v(z) {
26184
26184
  var j = r, G = o;
26185
- return r = o = void 0, f = H, c = t.apply(G, j), c;
26185
+ return r = o = void 0, f = z, c = t.apply(G, j), c;
26186
26186
  }
26187
- function C(H) {
26188
- return f = H, l = setTimeout(R, e), h ? v(H) : c;
26187
+ function C(z) {
26188
+ return f = z, l = setTimeout(R, e), h ? v(z) : c;
26189
26189
  }
26190
- function b(H) {
26191
- var j = H - d, G = H - f, te = e - j;
26190
+ function b(z) {
26191
+ var j = z - d, G = z - f, te = e - j;
26192
26192
  return g ? k4(te, a - G) : te;
26193
26193
  }
26194
- function _(H) {
26195
- var j = H - d, G = H - f;
26194
+ function _(z) {
26195
+ var j = z - d, G = z - f;
26196
26196
  return d === void 0 || j >= e || j < 0 || g && G >= a;
26197
26197
  }
26198
26198
  function R() {
26199
- var H = Kp();
26200
- if (_(H))
26201
- return I(H);
26202
- l = setTimeout(R, b(H));
26199
+ var z = Kp();
26200
+ if (_(z))
26201
+ return I(z);
26202
+ l = setTimeout(R, b(z));
26203
26203
  }
26204
- function I(H) {
26205
- return l = void 0, y && r ? v(H) : (r = o = void 0, c);
26204
+ function I(z) {
26205
+ return l = void 0, y && r ? v(z) : (r = o = void 0, c);
26206
26206
  }
26207
26207
  function O() {
26208
26208
  l !== void 0 && clearTimeout(l), f = 0, r = d = o = l = void 0;
@@ -26211,8 +26211,8 @@ function O4(t, e, n) {
26211
26211
  return l === void 0 ? c : I(Kp());
26212
26212
  }
26213
26213
  function S() {
26214
- var H = Kp(), j = _(H);
26215
- if (r = arguments, o = this, d = H, j) {
26214
+ var z = Kp(), j = _(z);
26215
+ if (r = arguments, o = this, d = z, j) {
26216
26216
  if (l === void 0)
26217
26217
  return C(d);
26218
26218
  if (g)
@@ -26311,8 +26311,8 @@ function $4() {
26311
26311
  var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, c = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, f = t ? Symbol.for("react.concurrent_mode") : 60111, h = t ? Symbol.for("react.forward_ref") : 60112, g = t ? Symbol.for("react.suspense") : 60113, y = t ? Symbol.for("react.suspense_list") : 60120, v = t ? Symbol.for("react.memo") : 60115, C = t ? Symbol.for("react.lazy") : 60116, b = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, R = t ? Symbol.for("react.responder") : 60118, I = t ? Symbol.for("react.scope") : 60119;
26312
26312
  function O(S) {
26313
26313
  if (typeof S == "object" && S !== null) {
26314
- var H = S.$$typeof;
26315
- switch (H) {
26314
+ var z = S.$$typeof;
26315
+ switch (z) {
26316
26316
  case e:
26317
26317
  switch (S = S.type, S) {
26318
26318
  case d:
@@ -26331,11 +26331,11 @@ function $4() {
26331
26331
  case c:
26332
26332
  return S;
26333
26333
  default:
26334
- return H;
26334
+ return z;
26335
26335
  }
26336
26336
  }
26337
26337
  case n:
26338
- return H;
26338
+ return z;
26339
26339
  }
26340
26340
  }
26341
26341
  }
@@ -26419,7 +26419,7 @@ function U4() {
26419
26419
  }
26420
26420
  }
26421
26421
  }
26422
- var S = d, H = f, j = l, G = c, te = e, q = h, ve = r, ce = C, _e = v, W = n, X = a, Y = o, se = g, B = !1;
26422
+ var S = d, z = f, j = l, G = c, te = e, q = h, ve = r, ce = C, _e = v, W = n, X = a, Y = o, se = g, B = !1;
26423
26423
  function ne(ge) {
26424
26424
  return B || (B = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), V(ge) || M(ge) === d;
26425
26425
  }
@@ -26459,7 +26459,7 @@ function U4() {
26459
26459
  function tt(ge) {
26460
26460
  return M(ge) === g;
26461
26461
  }
26462
- _t.AsyncMode = S, _t.ConcurrentMode = H, _t.ContextConsumer = j, _t.ContextProvider = G, _t.Element = te, _t.ForwardRef = q, _t.Fragment = ve, _t.Lazy = ce, _t.Memo = _e, _t.Portal = W, _t.Profiler = X, _t.StrictMode = Y, _t.Suspense = se, _t.isAsyncMode = ne, _t.isConcurrentMode = V, _t.isContextConsumer = Z, _t.isContextProvider = Ee, _t.isElement = Se, _t.isForwardRef = Te, _t.isFragment = Me, _t.isLazy = Ae, _t.isMemo = ke, _t.isPortal = $e, _t.isProfiler = De, _t.isStrictMode = Le, _t.isSuspense = tt, _t.isValidElementType = O, _t.typeOf = M;
26462
+ _t.AsyncMode = S, _t.ConcurrentMode = z, _t.ContextConsumer = j, _t.ContextProvider = G, _t.Element = te, _t.ForwardRef = q, _t.Fragment = ve, _t.Lazy = ce, _t.Memo = _e, _t.Portal = W, _t.Profiler = X, _t.StrictMode = Y, _t.Suspense = se, _t.isAsyncMode = ne, _t.isConcurrentMode = V, _t.isContextConsumer = Z, _t.isContextProvider = Ee, _t.isElement = Se, _t.isForwardRef = Te, _t.isFragment = Me, _t.isLazy = Ae, _t.isMemo = ke, _t.isPortal = $e, _t.isProfiler = De, _t.isStrictMode = Le, _t.isSuspense = tt, _t.isValidElementType = O, _t.typeOf = M;
26463
26463
  }()), _t;
26464
26464
  }
26465
26465
  var $b;
@@ -26614,7 +26614,7 @@ function z4() {
26614
26614
  arrayOf: O,
26615
26615
  element: M(),
26616
26616
  elementType: S(),
26617
- instanceOf: H,
26617
+ instanceOf: z,
26618
26618
  node: q(),
26619
26619
  objectOf: G,
26620
26620
  oneOf: j,
@@ -26709,7 +26709,7 @@ function z4() {
26709
26709
  }
26710
26710
  return _(V);
26711
26711
  }
26712
- function H(V) {
26712
+ function z(V) {
26713
26713
  function Z(Ee, Se, Te, Me, Ae) {
26714
26714
  if (!(Ee[Se] instanceof V)) {
26715
26715
  var ke = V.name || y, $e = ne(Ee[Se]);
@@ -28819,7 +28819,7 @@ var hm = {
28819
28819
  fileRejections: []
28820
28820
  };
28821
28821
  function GA() {
28822
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = Kt(Kt({}, KA), t), n = e.accept, r = e.disabled, o = e.getFilesFromEvent, a = e.maxSize, c = e.minSize, l = e.multiple, d = e.maxFiles, f = e.onDragEnter, h = e.onDragLeave, g = e.onDragOver, y = e.onDrop, v = e.onDropAccepted, C = e.onDropRejected, b = e.onFileDialogCancel, _ = e.onFileDialogOpen, R = e.useFsAccessApi, I = e.autoFocus, O = e.preventDropOnDocument, M = e.noClick, S = e.noKeyboard, H = e.noDrag, j = e.noDragEventsBubbling, G = e.onError, te = e.validator, q = Xn(function() {
28822
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = Kt(Kt({}, KA), t), n = e.accept, r = e.disabled, o = e.getFilesFromEvent, a = e.maxSize, c = e.minSize, l = e.multiple, d = e.maxFiles, f = e.onDragEnter, h = e.onDragLeave, g = e.onDragOver, y = e.onDrop, v = e.onDropAccepted, C = e.onDropRejected, b = e.onFileDialogCancel, _ = e.onFileDialogOpen, R = e.useFsAccessApi, I = e.autoFocus, O = e.preventDropOnDocument, M = e.noClick, S = e.noKeyboard, z = e.noDrag, j = e.noDragEventsBubbling, G = e.onError, te = e.validator, q = Xn(function() {
28823
28823
  return EV(n);
28824
28824
  }, [n]), ve = Xn(function() {
28825
28825
  return _V(n);
@@ -28973,7 +28973,7 @@ function GA() {
28973
28973
  }, N = function(he) {
28974
28974
  return S ? null : Ht(he);
28975
28975
  }, K = function(he) {
28976
- return H ? null : Ht(he);
28976
+ return z ? null : Ht(he);
28977
28977
  }, J = function(he) {
28978
28978
  j && he.stopPropagation();
28979
28979
  }, Ce = Xn(function() {
@@ -28993,7 +28993,7 @@ function GA() {
28993
28993
  tabIndex: 0
28994
28994
  } : {}), br);
28995
28995
  };
28996
- }, [W, ft, At, Gt, ar, ke, $e, De, tt, S, H, r]), xe = Bn(function(re) {
28996
+ }, [W, ft, At, Gt, ar, ke, $e, De, tt, S, z, r]), xe = Bn(function(re) {
28997
28997
  re.stopPropagation();
28998
28998
  }, []), me = Xn(function() {
28999
28999
  return function() {
@@ -29301,14 +29301,14 @@ const Hn = {
29301
29301
  excludePrivateFiles: c ? "false" : "true"
29302
29302
  },
29303
29303
  timeout: 3e5
29304
- }), H = [];
29304
+ }), z = [];
29305
29305
  Bd.forEach(S.data, (j, G) => {
29306
29306
  l != null && l.has(G) && Bd.forEach(j, (te) => {
29307
- (d == null ? void 0 : d.current[te.key]) !== !1 && H.push(te.key);
29307
+ (d == null ? void 0 : d.current[te.key]) !== !1 && z.push(te.key);
29308
29308
  });
29309
- }), H.length && (f == null || f((j) => {
29309
+ }), z.length && (f == null || f((j) => {
29310
29310
  const G = new Set(j);
29311
- return H.forEach((te) => G.add(te)), G;
29311
+ return z.forEach((te) => G.add(te)), G;
29312
29312
  })), g(S.data), b(null);
29313
29313
  } catch (S) {
29314
29314
  b(S instanceof Error ? S : new Error("Failed to fetch files"));
@@ -29316,7 +29316,7 @@ const Hn = {
29316
29316
  v(!1), R(0), a("");
29317
29317
  }
29318
29318
  }, M = async (S) => {
29319
- var H, j;
29319
+ var z, j;
29320
29320
  try {
29321
29321
  if (!S)
29322
29322
  return;
@@ -29327,7 +29327,7 @@ const Hn = {
29327
29327
  timeout: 3e5
29328
29328
  }
29329
29329
  );
29330
- return g({ [e]: ((H = G == null ? void 0 : G.data) == null ? void 0 : H.result) || [] }), R(((j = G == null ? void 0 : G.data) == null ? void 0 : j.estimatedTotalHits) || 0), G;
29330
+ return g({ [e]: ((z = G == null ? void 0 : G.data) == null ? void 0 : z.result) || [] }), R(((j = G == null ? void 0 : G.data) == null ? void 0 : j.estimatedTotalHits) || 0), G;
29331
29331
  } catch (G) {
29332
29332
  b(G instanceof Error ? G : new Error("Failed to fetch files"));
29333
29333
  } finally {
@@ -29378,7 +29378,7 @@ const Hn = {
29378
29378
  idCreator: l
29379
29379
  }) => {
29380
29380
  var Aa;
29381
- const [d, f] = be([]), [h, g] = be(""), [y, v] = be(new Set(c)), [C, b] = be(n), [_, R] = be(""), [I, O] = be(!1), [M, S] = be(""), [H, j] = be(!1), [G, te] = be(null), [q, ve] = be(null), [ce, _e] = be(!1), [W, X] = be(!1), [, Y] = be(null), se = dn(null), { toast: B } = Hf(), [ne, V] = be(null), [Z, Ee] = be(null), [Se, Te] = be(""), [Me, Ae] = be(!1), [ke, $e] = be(!1), [De, Le] = be(/* @__PURE__ */ new Set()), [tt, ge] = be(""), [ft, At] = be(!1), [Gt, ar] = be(!1), [Ht, N] = be("rename"), [K, J] = be(!1), [Ce, xe] = be(""), [me, re] = be("1"), [he, Xe] = be(!1), [Ye, pt] = be(!1), [sr, $t] = be(!1), [Pn, Cr] = be(!1), [jt, Nn] = be(1), [jn, br] = be(!1), { currentJob: He, elapsedTime: cr, setCurrentJob: da } = GV(e), [Wr, Xo] = be(null), [Zo, fa] = be(""), [qf, Oi] = be(!1), [Pi, Rs] = be(!1), [nl, Yf] = be(""), bo = dn({});
29381
+ const [d, f] = be([]), [h, g] = be(""), [y, v] = be(new Set(c)), [C, b] = be(n), [_, R] = be(""), [I, O] = be(!1), [M, S] = be(""), [z, j] = be(!1), [G, te] = be(null), [q, ve] = be(null), [ce, _e] = be(!1), [W, X] = be(!1), [, Y] = be(null), se = dn(null), { toast: B } = Hf(), [ne, V] = be(null), [Z, Ee] = be(null), [Se, Te] = be(""), [Me, Ae] = be(!1), [ke, $e] = be(!1), [De, Le] = be(/* @__PURE__ */ new Set()), [tt, ge] = be(""), [ft, At] = be(!1), [Gt, ar] = be(!1), [Ht, N] = be("rename"), [K, J] = be(!1), [Ce, xe] = be(""), [me, re] = be("1"), [he, Xe] = be(!1), [Ye, pt] = be(!1), [sr, $t] = be(!1), [Pn, Cr] = be(!1), [jt, Nn] = be(1), [jn, br] = be(!1), { currentJob: He, elapsedTime: cr, setCurrentJob: da } = GV(e), [Wr, Xo] = be(null), [Zo, fa] = be(""), [qf, Oi] = be(!1), [Pi, Rs] = be(!1), [nl, Yf] = be(""), bo = dn({});
29382
29382
  yt(() => {
29383
29383
  console.log("pre selected files", c);
29384
29384
  }, [c]);
@@ -29413,19 +29413,19 @@ const Hn = {
29413
29413
  }, [ba]);
29414
29414
  const pl = async () => {
29415
29415
  try {
29416
- const T = await Ue.get(`${e}/api/login-sharepoint`), { loginUrl: P } = T.data, z = window.open(P, "SharePoint Login", "width=600,height=600");
29417
- if (!z) throw new Error("Không thể mở cửa sổ pop-up");
29418
- z.focus();
29416
+ const T = await Ue.get(`${e}/api/login-sharepoint`), { loginUrl: P } = T.data, H = window.open(P, "SharePoint Login", "width=600,height=600");
29417
+ if (!H) throw new Error("Không thể mở cửa sổ pop-up");
29418
+ H.focus();
29419
29419
  const ie = setInterval(() => {
29420
29420
  try {
29421
- if (z.closed) {
29421
+ if (H.closed) {
29422
29422
  clearInterval(ie);
29423
29423
  return;
29424
29424
  }
29425
- const fe = z.location.href;
29425
+ const fe = H.location.href;
29426
29426
  if (fe.includes("code=")) {
29427
29427
  const ye = new URL(fe).searchParams.get("code");
29428
- ye && (Hs(ye), z.close(), clearInterval(ie));
29428
+ ye && (Hs(ye), H.close(), clearInterval(ie));
29429
29429
  }
29430
29430
  } catch (fe) {
29431
29431
  fe instanceof Error && !fe.message.includes("cross-origin") && console.error("SharePoint login error:", fe);
@@ -29454,8 +29454,8 @@ const Hn = {
29454
29454
  const P = await Ue.post(`${e}/api/get-sharepoint-access-token`, {
29455
29455
  code: T,
29456
29456
  userId: "1"
29457
- }), { accessToken: z } = P.data;
29458
- localStorage.setItem("sharepoint_access_token", z), ks(!0), Mi(!0);
29457
+ }), { accessToken: H } = P.data;
29458
+ localStorage.setItem("sharepoint_access_token", H), ks(!0), Mi(!0);
29459
29459
  } catch (P) {
29460
29460
  console.error("❌ Error fetching SharePoint access token:", P), B({
29461
29461
  title: "Error",
@@ -29468,14 +29468,14 @@ const Hn = {
29468
29468
  ei(!0);
29469
29469
  const P = (await Ue.post(`${e}/api/list-site-sharepoint`, {
29470
29470
  userId: "1"
29471
- })).data.sites.map((z) => {
29472
- const ie = new URL(z.webUrl);
29471
+ })).data.sites.map((H) => {
29472
+ const ie = new URL(H.webUrl);
29473
29473
  return {
29474
- id: z.id,
29475
- name: z.name,
29476
- description: z.description,
29477
- hostname: z.hostname || ie.hostname,
29478
- sitePath: z.sitePath || ie.pathname.replace(/^\/+/, "")
29474
+ id: H.id,
29475
+ name: H.name,
29476
+ description: H.description,
29477
+ hostname: H.hostname || ie.hostname,
29478
+ sitePath: H.sitePath || ie.pathname.replace(/^\/+/, "")
29479
29479
  };
29480
29480
  });
29481
29481
  console.log("data", P), dl(P), ei(!1);
@@ -29488,13 +29488,13 @@ const Hn = {
29488
29488
  }
29489
29489
  }, th = async (T) => {
29490
29490
  Di(T), console.log(T), await xa("root", T.name, T.hostname || "", T.sitePath || "");
29491
- }, xa = async (T, P, z, ie) => {
29491
+ }, xa = async (T, P, H, ie) => {
29492
29492
  try {
29493
29493
  ei(!0);
29494
29494
  const fe = await Ue.post(`${e}/api/list-file-sharepoint`, {
29495
29495
  folderId: T,
29496
29496
  userId: "1",
29497
- hostname: z,
29497
+ hostname: H,
29498
29498
  sitePath: ie
29499
29499
  });
29500
29500
  console.log("response.data.files", fe.data.files);
@@ -29534,9 +29534,9 @@ const Hn = {
29534
29534
  }
29535
29535
  ]);
29536
29536
  }, vl = (T) => {
29537
- var z;
29537
+ var H;
29538
29538
  wa((ie) => ie.slice(0, T + 1));
29539
- const P = (z = Ds[T]) == null ? void 0 : z.id;
29539
+ const P = (H = Ds[T]) == null ? void 0 : H.id;
29540
29540
  P && xa(
29541
29541
  P,
29542
29542
  "SharePoint",
@@ -29544,8 +29544,8 @@ const Hn = {
29544
29544
  (wt == null ? void 0 : wt.sitePath) || ""
29545
29545
  );
29546
29546
  }, rh = async (T, P) => {
29547
- const z = localStorage.getItem("sharepoint_access_token");
29548
- if (!z) {
29547
+ const H = localStorage.getItem("sharepoint_access_token");
29548
+ if (!H) {
29549
29549
  ct.error("Không tìm thấy access token. Vui lòng đăng nhập lại.");
29550
29550
  return;
29551
29551
  }
@@ -29565,7 +29565,7 @@ const Hn = {
29565
29565
  Ie.isFolder ? fe.folders.push({ id: Ie.id, name: Ie.name }) : fe.files.push({ id: Ie.id, name: Ie.name });
29566
29566
  });
29567
29567
  const ye = await Ue.post(`${e}/api/sync-sharepoint-to-s3`, fe, {
29568
- headers: { Authorization: `Bearer ${z}` }
29568
+ headers: { Authorization: `Bearer ${H}` }
29569
29569
  });
29570
29570
  Bt(), ct.update(ie, {
29571
29571
  render: `Đồng bộ thành công! Đã tải lên ${ye.data.uploadedKeys.length} file.`,
@@ -29617,8 +29617,8 @@ const Hn = {
29617
29617
  };
29618
29618
  function Li(T) {
29619
29619
  if (T === 0) return "0 B";
29620
- const P = 1024, z = ["B", "KB", "MB", "GB", "TB"], ie = Math.floor(Math.log(T) / Math.log(P));
29621
- return parseFloat((T / Math.pow(P, ie)).toFixed(1)) + " " + z[ie];
29620
+ const P = 1024, H = ["B", "KB", "MB", "GB", "TB"], ie = Math.floor(Math.log(T) / Math.log(P));
29621
+ return parseFloat((T / Math.pow(P, ie)).toFixed(1)) + " " + H[ie];
29622
29622
  }
29623
29623
  function ih(T) {
29624
29624
  const P = new Date(T);
@@ -29626,19 +29626,19 @@ const Hn = {
29626
29626
  }
29627
29627
  const ah = async () => {
29628
29628
  try {
29629
- const T = await Ue.get(`${e}/api/login-one-drive`), { loginUrl: P } = T.data, z = window.open(P, "OneDrive Login", "width=600,height=600");
29630
- if (!z) throw new Error("Không thể mở cửa sổ pop-up");
29631
- z.focus();
29629
+ const T = await Ue.get(`${e}/api/login-one-drive`), { loginUrl: P } = T.data, H = window.open(P, "OneDrive Login", "width=600,height=600");
29630
+ if (!H) throw new Error("Không thể mở cửa sổ pop-up");
29631
+ H.focus();
29632
29632
  const ie = setInterval(() => {
29633
29633
  try {
29634
- if (z.closed) {
29634
+ if (H.closed) {
29635
29635
  clearInterval(ie);
29636
29636
  return;
29637
29637
  }
29638
- const fe = z.location.href;
29638
+ const fe = H.location.href;
29639
29639
  if (fe.includes("code=")) {
29640
29640
  const ye = new URL(fe).searchParams.get("code");
29641
- ye && (ch(ye), z.close(), clearInterval(ie));
29641
+ ye && (ch(ye), H.close(), clearInterval(ie));
29642
29642
  }
29643
29643
  } catch (fe) {
29644
29644
  fe instanceof Error && !fe.message.includes("cross-origin") && console.error("OneDrive login error:", fe);
@@ -29659,10 +29659,10 @@ const Hn = {
29659
29659
  }
29660
29660
  }, ch = async (T) => {
29661
29661
  try {
29662
- const z = await Ue.post(`${e}/api/get-one-drive-access-token`, {
29662
+ const H = await Ue.post(`${e}/api/get-one-drive-access-token`, {
29663
29663
  authorizationCode: T,
29664
29664
  userId: "1"
29665
- }), { accessToken: ie } = z.data;
29665
+ }), { accessToken: ie } = H.data;
29666
29666
  localStorage.setItem("onedrive_access_token", ie), ks(!0), ha(!0), await _a("root", "One Drive");
29667
29667
  } catch (P) {
29668
29668
  console.error("❌ Lỗi khi lấy Access Token:", P);
@@ -29685,16 +29685,16 @@ const Hn = {
29685
29685
  })
29686
29686
  );
29687
29687
  al(fe.filter((ye) => ye.isFolder)), Os(fe.filter((ye) => !ye.isFolder)), ha(!0), Ps((ye) => ye.some((Ie) => Ie.id === T) ? ye : [...ye, { id: T, name: P === "root" ? "OneDrive" : P }]), ga(!1);
29688
- } catch (z) {
29689
- console.error("Lỗi lấy danh sách file:", z), ga(!1);
29688
+ } catch (H) {
29689
+ console.error("Lỗi lấy danh sách file:", H), ga(!1);
29690
29690
  }
29691
29691
  }, kt = (T) => {
29692
29692
  if (T === pa.length - 1) return;
29693
29693
  const P = pa[T];
29694
29694
  P && (Ps(pa.slice(0, T + 1)), _a(P.id, P.name));
29695
29695
  }, Rt = async (T, P) => {
29696
- const z = localStorage.getItem("onedrive_access_token");
29697
- if (!z) {
29696
+ const H = localStorage.getItem("onedrive_access_token");
29697
+ if (!H) {
29698
29698
  ct.error("Không tìm thấy access token. Vui lòng đăng nhập lại.");
29699
29699
  return;
29700
29700
  }
@@ -29712,7 +29712,7 @@ const Hn = {
29712
29712
  Ie.isFolder ? fe.folders.push({ id: Ie.id, name: Ie.name }) : fe.files.push({ id: Ie.id, name: Ie.name });
29713
29713
  });
29714
29714
  const ye = await Ue.post(`${e}/api/sync-one-drive-to-s3`, fe, {
29715
- headers: { Authorization: `Bearer ${z}` }
29715
+ headers: { Authorization: `Bearer ${H}` }
29716
29716
  });
29717
29717
  Bt(), ct.update(ie, {
29718
29718
  render: `Đồng bộ thành công! Đã tải lên ${ye.data.uploadedKeys.length} file.`,
@@ -29746,8 +29746,8 @@ const Hn = {
29746
29746
  window.gapi.load("picker", () => dh(T));
29747
29747
  }, document.body.appendChild(P);
29748
29748
  }, dh = (T) => {
29749
- const P = new window.google.picker.DocsView(window.google.picker.ViewId.DOCS).setIncludeFolders(!0).setSelectFolderEnabled(!0).setOwnedByMe(!1), z = new window.google.picker.DocsView(window.google.picker.ViewId.DRIVE).setIncludeFolders(!0).setSelectFolderEnabled(!0);
29750
- new window.google.picker.PickerBuilder().setDeveloperKey(zV).setOAuthToken(T).enableFeature(window.google.picker.Feature.MULTISELECT_ENABLED).setLocale("vi").addView(P).addView(z).setCallback(async (fe) => {
29749
+ const P = new window.google.picker.DocsView(window.google.picker.ViewId.DOCS).setIncludeFolders(!0).setSelectFolderEnabled(!0).setOwnedByMe(!1), H = new window.google.picker.DocsView(window.google.picker.ViewId.DRIVE).setIncludeFolders(!0).setSelectFolderEnabled(!0);
29750
+ new window.google.picker.PickerBuilder().setDeveloperKey(zV).setOAuthToken(T).enableFeature(window.google.picker.Feature.MULTISELECT_ENABLED).setLocale("vi").addView(P).addView(H).setCallback(async (fe) => {
29751
29751
  if (fe.action === window.google.picker.Action.PICKED) {
29752
29752
  const ye = fe.docs.map((Ie) => ({
29753
29753
  id: Ie.id,
@@ -29758,8 +29758,8 @@ const Hn = {
29758
29758
  }
29759
29759
  }).build().setVisible(!0);
29760
29760
  }, fh = async (T, P = "") => {
29761
- const z = localStorage.getItem("google_access_token");
29762
- if (!z) {
29761
+ const H = localStorage.getItem("google_access_token");
29762
+ if (!H) {
29763
29763
  console.error("❌ Không tìm thấy access token. Vui lòng đăng nhập lại."), ct.error("Không tìm thấy access token. Vui lòng đăng nhập lại.", {
29764
29764
  position: "bottom-right"
29765
29765
  });
@@ -29780,7 +29780,7 @@ const Hn = {
29780
29780
  Ie.mimeType === "application/vnd.google-apps.folder" ? fe.folders.push({ id: Ie.id, name: Ie.name }) : fe.files.push({ id: Ie.id, name: Ie.name });
29781
29781
  });
29782
29782
  const ye = await Ue.post(`${e}/api/sync-drive-to-s3`, fe, {
29783
- headers: { Authorization: `Bearer ${z}` }
29783
+ headers: { Authorization: `Bearer ${H}` }
29784
29784
  });
29785
29785
  Hn.current = !0, Bt(), ct.update(ie, {
29786
29786
  render: `Đồng bộ thành công! Đã tải lên ${ye.data.uploadedKeys.length} file.`,
@@ -29802,8 +29802,8 @@ const Hn = {
29802
29802
  yt(() => {
29803
29803
  const T = (P) => {
29804
29804
  if (P.data.action === "logout") {
29805
- const z = document.createElement("iframe");
29806
- z.style.display = "none", z.src = "https://accounts.google.com/Logout", document.body.appendChild(z), setTimeout(() => document.body.removeChild(z), 2e3);
29805
+ const H = document.createElement("iframe");
29806
+ H.style.display = "none", H.src = "https://accounts.google.com/Logout", document.body.appendChild(H), setTimeout(() => document.body.removeChild(H), 2e3);
29807
29807
  }
29808
29808
  };
29809
29809
  return window.addEventListener("message", T), () => window.removeEventListener("message", T);
@@ -29822,21 +29822,21 @@ const Hn = {
29822
29822
  }, [(Aa = He == null ? void 0 : He.status) == null ? void 0 : Aa.status]);
29823
29823
  const bl = Xn(() => qr[C] || [], [qr, C]), _r = Xn(() => bl, [bl, C, qr]), Fi = Xn(() => {
29824
29824
  const T = {};
29825
- return _r.forEach((P, z) => {
29826
- y.has(P.key) && (T[z] = !0);
29825
+ return _r.forEach((P, H) => {
29826
+ y.has(P.key) && (T[H] = !0);
29827
29827
  }), T;
29828
29828
  }, [y, _r]), tn = (T) => {
29829
29829
  const P = Yu(qr, T);
29830
29830
  if (P.length === 0)
29831
29831
  return y.has(T) ? "all" : "none";
29832
- const z = P.filter((ie) => y.has(ie)).length;
29833
- return z === 0 ? "none" : z === P.length ? "all" : "partial";
29832
+ const H = P.filter((ie) => y.has(ie)).length;
29833
+ return H === 0 ? "none" : H === P.length ? "all" : "partial";
29834
29834
  }, Yr = (T, P = !0) => {
29835
29835
  if (C !== T) {
29836
29836
  if (l && !C)
29837
29837
  br(!0), R(T + l), b(T + l);
29838
29838
  else if (br(!0), R(T), b(T), P && !r) {
29839
- const z = window.location.pathname === "/" ? "" : window.location.pathname, ie = T ? `${window.location.origin}${z}?prefix=${encodeURIComponent(T)}` : `${window.location.origin}${z}`;
29839
+ const H = window.location.pathname === "/" ? "" : window.location.pathname, ie = T ? `${window.location.origin}${H}?prefix=${encodeURIComponent(T)}` : `${window.location.origin}${H}`;
29840
29840
  window.history.pushState({ path: ie }, "", ie);
29841
29841
  }
29842
29842
  }
@@ -29845,7 +29845,7 @@ const Hn = {
29845
29845
  jn && (Hn.current = !0, Bt().finally(() => br(!1)));
29846
29846
  }, [jn]);
29847
29847
  const To = async (T, P) => {
29848
- var z, ie;
29848
+ var H, ie;
29849
29849
  j(!0);
29850
29850
  try {
29851
29851
  if (_r.some(
@@ -29875,7 +29875,7 @@ const Hn = {
29875
29875
  }), S(""), O(!1);
29876
29876
  } catch (fe) {
29877
29877
  console.error("Error creating folder:", fe);
29878
- const ye = ((ie = (z = fe == null ? void 0 : fe.response) == null ? void 0 : z.data) == null ? void 0 : ie.error) || "Không thể tạo thư mục";
29878
+ const ye = ((ie = (H = fe == null ? void 0 : fe.response) == null ? void 0 : H.data) == null ? void 0 : ie.error) || "Không thể tạo thư mục";
29879
29879
  B({
29880
29880
  title: "Lỗi",
29881
29881
  description: ye,
@@ -29884,9 +29884,9 @@ const Hn = {
29884
29884
  } finally {
29885
29885
  j(!1);
29886
29886
  }
29887
- }, Ea = async (T, P, z) => {
29887
+ }, Ea = async (T, P, H) => {
29888
29888
  var ie, fe, ye, Ie, zt, ur, So, Ra, Gs;
29889
- Y(z), $t(!0);
29889
+ Y(H), $t(!0);
29890
29890
  try {
29891
29891
  if (Array.from(T).reduce((nn, Tr) => nn + Tr.size, 0) >= 100 * 1024 * 1024) {
29892
29892
  B({
@@ -29920,11 +29920,11 @@ const Hn = {
29920
29920
  creatorId: ri.id,
29921
29921
  DataSource: "Tệp tải lên"
29922
29922
  })
29923
- ), z === "folder" && T[0]) {
29923
+ ), H === "folder" && T[0]) {
29924
29924
  const nn = T[0].webkitRelativePath.split("/")[0];
29925
29925
  nn && Jr.append("folderName", nn);
29926
29926
  }
29927
- Jr.append("prefix", P), Array.from(T).forEach((nn) => z === "folder" ? Jr.append("files", nn, nn.webkitRelativePath) : Jr.append("files", nn)), Hn.current = !0;
29927
+ Jr.append("prefix", P), Array.from(T).forEach((nn) => H === "folder" ? Jr.append("files", nn, nn.webkitRelativePath) : Jr.append("files", nn)), Hn.current = !0;
29928
29928
  const mt = await Ue.post(`${e}/api/check-files-existed`, Jr, {
29929
29929
  headers: { "Content-Type": "multipart/form-data" }
29930
29930
  });
@@ -29958,7 +29958,7 @@ const Hn = {
29958
29958
  var T, P;
29959
29959
  try {
29960
29960
  $t(!0);
29961
- const z = new FormData();
29961
+ const H = new FormData();
29962
29962
  if (Wr) {
29963
29963
  Y(Zo ? "folder" : "files"), Oi(!1);
29964
29964
  let ie = localStorage.getItem("dataLogin"), fe;
@@ -29967,7 +29967,7 @@ const Hn = {
29967
29967
  } catch {
29968
29968
  ie = null;
29969
29969
  }
29970
- if (fe != null && fe.id && (console.log("🚀 ~ uploadFiles ~ user:", fe), z.append(
29970
+ if (fe != null && fe.id && (console.log("🚀 ~ uploadFiles ~ user:", fe), H.append(
29971
29971
  "metadata",
29972
29972
  JSON.stringify({
29973
29973
  creator: fe.username,
@@ -29976,24 +29976,24 @@ const Hn = {
29976
29976
  })
29977
29977
  )), Zo && Wr[0]) {
29978
29978
  const ye = Wr[0].webkitRelativePath.split("/")[0];
29979
- ye && z.append("folderName", ye);
29979
+ ye && H.append("folderName", ye);
29980
29980
  }
29981
- z.append("prefix", C), Array.from(Wr).forEach((ye) => Zo && Wr[0] ? z.append("files", ye, ye.webkitRelativePath) : z.append("files", ye)), fe != null && fe.id && z.append(
29981
+ H.append("prefix", C), Array.from(Wr).forEach((ye) => Zo && Wr[0] ? H.append("files", ye, ye.webkitRelativePath) : H.append("files", ye)), fe != null && fe.id && H.append(
29982
29982
  "metadata",
29983
29983
  JSON.stringify({
29984
29984
  creator: fe.username,
29985
29985
  creatorId: fe.id,
29986
29986
  DataSource: "Tệp tải lên"
29987
29987
  })
29988
- ), await Ue.post(`${e}/api/upload`, z, {
29988
+ ), await Ue.post(`${e}/api/upload`, H, {
29989
29989
  headers: { "Content-Type": "multipart/form-data" },
29990
29990
  timeout: 0
29991
29991
  // no timeout (infinite)
29992
29992
  }), g(""), R(C), Hn.current = !0;
29993
29993
  }
29994
- } catch (z) {
29995
- console.error("Lỗi tải lên:", z);
29996
- const ie = ((P = (T = z == null ? void 0 : z.response) == null ? void 0 : T.data) == null ? void 0 : P.error) || "Không thể tải lên tập tin";
29994
+ } catch (H) {
29995
+ console.error("Lỗi tải lên:", H);
29996
+ const ie = ((P = (T = H == null ? void 0 : H.response) == null ? void 0 : T.data) == null ? void 0 : P.error) || "Không thể tải lên tập tin";
29997
29997
  B({
29998
29998
  title: "Lỗi",
29999
29999
  description: ie,
@@ -30015,13 +30015,13 @@ const Hn = {
30015
30015
  const ie = new Set(y);
30016
30016
  ie.delete(T.key), v(ie);
30017
30017
  }
30018
- const z = ((P = T.key) == null ? void 0 : P.replace(/^(.*?)(\/.*)?$/, (ie, fe, ye) => !ye || ye === "/" ? "" : fe + "/")) || "";
30019
- R(z), Hn.current = !0, B({
30018
+ const H = ((P = T.key) == null ? void 0 : P.replace(/^(.*?)(\/.*)?$/, (ie, fe, ye) => !ye || ye === "/" ? "" : fe + "/")) || "";
30019
+ R(H), Hn.current = !0, B({
30020
30020
  title: "Đã xóa tập tin",
30021
30021
  description: `Đã xóa thành công "${T.name}"`
30022
30022
  }), te(null), await lr();
30023
- } catch (z) {
30024
- console.error("Error deleting file:", z), B({
30023
+ } catch (H) {
30024
+ console.error("Error deleting file:", H), B({
30025
30025
  title: "Lỗi",
30026
30026
  description: "Không thể xóa tập tin",
30027
30027
  variant: "destructive"
@@ -30030,13 +30030,13 @@ const Hn = {
30030
30030
  Cr(!1), await Bt();
30031
30031
  }
30032
30032
  }, $i = (T) => {
30033
- const P = new Set(y), z = typeof T == "function" ? T(Fi) : T;
30033
+ const P = new Set(y), H = typeof T == "function" ? T(Fi) : T;
30034
30034
  new Set(Object.keys(Fi).map(Number)).forEach((fe) => {
30035
30035
  const ye = _r[fe];
30036
- ye && (z[fe] || (P.delete(ye.key), ye.isFolder && Yu(qr, ye.key).forEach(
30036
+ ye && (H[fe] || (P.delete(ye.key), ye.isFolder && Yu(qr, ye.key).forEach(
30037
30037
  (Ie) => P.delete(Ie)
30038
30038
  )));
30039
- }), Object.entries(z).forEach(([fe, ye]) => {
30039
+ }), Object.entries(H).forEach(([fe, ye]) => {
30040
30040
  const Ie = parseInt(fe), zt = _r[Ie];
30041
30041
  zt && ye && (P.add(zt.key), zt.isFolder && Yu(qr, zt.key).forEach((ur) => P.add(ur)));
30042
30042
  }), v(P);
@@ -30044,10 +30044,10 @@ const Hn = {
30044
30044
  var T;
30045
30045
  _e(!0);
30046
30046
  try {
30047
- const P = Array.from(y), z = P.map(
30047
+ const P = Array.from(y), H = P.map(
30048
30048
  (fe) => Object.values(qr).flat().find((ye) => ye.key === fe)
30049
30049
  ).filter((fe) => fe !== void 0);
30050
- if (z.length === 0) {
30050
+ if (H.length === 0) {
30051
30051
  B({
30052
30052
  title: "Lỗi",
30053
30053
  description: "Không có tập tin nào được chọn để xóa",
@@ -30058,10 +30058,10 @@ const Hn = {
30058
30058
  await Ue.delete(`${e}/api/files`, {
30059
30059
  data: { paths: P }
30060
30060
  });
30061
- const ie = ((T = z[0]) == null ? void 0 : T.key.replace(/^(.*?)(\/.*)?$/, (fe, ye, Ie) => !Ie || Ie === "/" ? "" : ye + "/")) || "";
30061
+ const ie = ((T = H[0]) == null ? void 0 : T.key.replace(/^(.*?)(\/.*)?$/, (fe, ye, Ie) => !Ie || Ie === "/" ? "" : ye + "/")) || "";
30062
30062
  R(ie), Hn.current = !0, Bt(), B({
30063
30063
  title: "Đã xóa tập tin",
30064
- description: `Đã xóa thành công ${z.length} mục`
30064
+ description: `Đã xóa thành công ${H.length} mục`
30065
30065
  }), X(!1), v(/* @__PURE__ */ new Set()), await lr();
30066
30066
  } catch (P) {
30067
30067
  console.error("Error deleting files:", P), B({
@@ -30083,19 +30083,19 @@ const Hn = {
30083
30083
  }
30084
30084
  $e(!0);
30085
30085
  try {
30086
- const z = T.key;
30086
+ const H = T.key;
30087
30087
  let ie;
30088
- T.isFolder ? ie = z.split("/").slice(0, -2).join("/") + "/" : ie = z.substring(0, z.lastIndexOf("/") + 1);
30088
+ T.isFolder ? ie = H.split("/").slice(0, -2).join("/") + "/" : ie = H.substring(0, H.lastIndexOf("/") + 1);
30089
30089
  const fe = ie + P + (T.isFolder ? "/" : "");
30090
30090
  await Ue.post(`${e}/api/rename`, {
30091
- oldPath: z,
30091
+ oldPath: H,
30092
30092
  newPath: fe
30093
30093
  }), Hn.current = !0, await Bt(), B({
30094
30094
  title: "Đã đổi tên",
30095
30095
  description: `Đã đổi tên thành công "${T.name}" thành "${P}"`
30096
30096
  }), V(null), Te(""), Ee(null);
30097
- } catch (z) {
30098
- console.error("Error renaming item:", z), B({
30097
+ } catch (H) {
30098
+ console.error("Error renaming item:", H), B({
30099
30099
  title: "Lỗi",
30100
30100
  description: "Không thể đổi tên",
30101
30101
  variant: "destructive"
@@ -30110,10 +30110,10 @@ const Hn = {
30110
30110
  `${e}/api/download`,
30111
30111
  { paths: T },
30112
30112
  { responseType: "blob" }
30113
- ), z = window.URL.createObjectURL(P.data), ie = document.createElement("a");
30114
- ie.href = z;
30113
+ ), H = window.URL.createObjectURL(P.data), ie = document.createElement("a");
30114
+ ie.href = H;
30115
30115
  const fe = P.headers["Content-Disposition"] || P.headers["content-disposition"], ye = fe == null ? void 0 : fe.match(/filename="(.+)"/), Ie = ye ? decodeURIComponent(ye[1]) : "download.zip";
30116
- ie.setAttribute("download", Ie), document.body.appendChild(ie), ie.click(), document.body.removeChild(ie), window.URL.revokeObjectURL(z), B({
30116
+ ie.setAttribute("download", Ie), document.body.appendChild(ie), ie.click(), document.body.removeChild(ie), window.URL.revokeObjectURL(H), B({
30117
30117
  title: "Bắt đầu tải xuống",
30118
30118
  description: `Đã bắt đầu tải xuống ${T.length} mục${T.length > 1, ""}`
30119
30119
  });
@@ -30125,28 +30125,28 @@ const Hn = {
30125
30125
  });
30126
30126
  } finally {
30127
30127
  Le((P) => {
30128
- const z = new Set(P);
30129
- return T.forEach((ie) => z.delete(ie)), z;
30128
+ const H = new Set(P);
30129
+ return T.forEach((ie) => H.delete(ie)), H;
30130
30130
  });
30131
30131
  }
30132
30132
  }, Vs = C ? C.replace(n, "").split("/").filter(Boolean) : [], El = () => {
30133
- let T = Array.from(y).map((z) => ({ key: z }));
30134
- T.length > 1 && (T = T.filter((z) => z.key !== n));
30135
- const P = (z) => Bd.findIndex(
30133
+ let T = Array.from(y).map((H) => ({ key: H }));
30134
+ T.length > 1 && (T = T.filter((H) => H.key !== n));
30135
+ const P = (H) => Bd.findIndex(
30136
30136
  T,
30137
- (ie) => !ie.key.endsWith("/") && ie.key.startsWith(z)
30137
+ (ie) => !ie.key.endsWith("/") && ie.key.startsWith(H)
30138
30138
  ) !== -1;
30139
- return T = T.filter((z) => z.key.endsWith("/") ? !P(z.key) : !0), T;
30139
+ return T = T.filter((H) => H.key.endsWith("/") ? !P(H.key) : !0), T;
30140
30140
  }, vn = Xn(() => {
30141
30141
  const T = [
30142
30142
  {
30143
30143
  id: "select",
30144
30144
  header: () => {
30145
- const P = jV(qr, C), z = P.length > 0 && P.every((fe) => y.has(fe)), ie = P.some((fe) => y.has(fe));
30145
+ const P = jV(qr, C), H = P.length > 0 && P.every((fe) => y.has(fe)), ie = P.some((fe) => y.has(fe));
30146
30146
  return /* @__PURE__ */ m(
30147
30147
  Kg,
30148
30148
  {
30149
- checked: z ? !0 : ie ? "indeterminate" : !1,
30149
+ checked: H ? !0 : ie ? "indeterminate" : !1,
30150
30150
  onCheckedChange: (fe) => {
30151
30151
  if (fe) {
30152
30152
  const ye = _r.reduce(
@@ -30167,11 +30167,11 @@ const Hn = {
30167
30167
  );
30168
30168
  },
30169
30169
  cell: ({ row: P }) => {
30170
- const z = P.original;
30171
- let fe = z.isFolder ? tn(z.key) : y.has(z.key) ? "all" : "none";
30172
- if (fe === "none" && z.key.endsWith("/")) {
30170
+ const H = P.original;
30171
+ let fe = H.isFolder ? tn(H.key) : y.has(H.key) ? "all" : "none";
30172
+ if (fe === "none" && H.key.endsWith("/")) {
30173
30173
  for (const ye of Array.from(y))
30174
- if (ye.startsWith(z.key)) {
30174
+ if (ye.startsWith(H.key)) {
30175
30175
  fe = "all";
30176
30176
  break;
30177
30177
  }
@@ -30209,21 +30209,55 @@ const Hn = {
30209
30209
  ),
30210
30210
  accessorKey: "name",
30211
30211
  cell: ({ row: P }) => {
30212
- const z = P.original, ie = z.key.substring(0, z.key.lastIndexOf("/")) || "/", fe = h.trim() !== "" && ie !== C, ye = ie.split("/").filter(Boolean);
30213
- return /* @__PURE__ */ L("div", { className: "flex flex-col", children: [
30214
- /* @__PURE__ */ L(
30215
- "div",
30216
- {
30217
- className: `flex items-center gap-2 ${z.isFolder ? "cursor-pointer hover:text-blue-600" : ""}`,
30218
- onClick: () => {
30219
- z.isFolder && Yr(z.key);
30220
- },
30221
- children: [
30222
- z.isFolder ? /* @__PURE__ */ m(ac, { className: "h-5 w-5 text-blue-500" }) : null,
30223
- z.name
30224
- ]
30225
- }
30226
- ),
30212
+ const H = P.original, ie = H.key.substring(0, H.key.lastIndexOf("/")) || "/", fe = h.trim() !== "" && ie !== C, ye = ie.split("/").filter(Boolean);
30213
+ return /* @__PURE__ */ L("div", { className: "flex flex-col group", children: [
30214
+ /* @__PURE__ */ L("div", { className: "flex items-center", children: [
30215
+ /* @__PURE__ */ L(
30216
+ "div",
30217
+ {
30218
+ className: `flex items-center gap-2 ${H.isFolder ? "cursor-pointer hover:text-blue-600" : ""}`,
30219
+ onClick: () => {
30220
+ H.isFolder && Yr(H.key);
30221
+ },
30222
+ children: [
30223
+ H.isFolder ? /* @__PURE__ */ m(ac, { className: "h-5 w-5 text-blue-500" }) : null,
30224
+ H.name
30225
+ ]
30226
+ }
30227
+ ),
30228
+ /* @__PURE__ */ m(
30229
+ "button",
30230
+ {
30231
+ className: "ml-2 opacity-0 group-hover:opacity-100 transition-opacity",
30232
+ onClick: (Ie) => {
30233
+ Ie.stopPropagation(), navigator.clipboard.writeText(H.key), B({
30234
+ title: "Copied to clipboard",
30235
+ description: `Path: ${H.key}`,
30236
+ duration: 2e3
30237
+ });
30238
+ },
30239
+ title: "Copy path to clipboard",
30240
+ children: /* @__PURE__ */ L(
30241
+ "svg",
30242
+ {
30243
+ xmlns: "http://www.w3.org/2000/svg",
30244
+ width: "16",
30245
+ height: "16",
30246
+ viewBox: "0 0 24 24",
30247
+ fill: "none",
30248
+ stroke: "currentColor",
30249
+ strokeWidth: "2",
30250
+ strokeLinecap: "round",
30251
+ strokeLinejoin: "round",
30252
+ children: [
30253
+ /* @__PURE__ */ m("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
30254
+ /* @__PURE__ */ m("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
30255
+ ]
30256
+ }
30257
+ )
30258
+ }
30259
+ )
30260
+ ] }),
30227
30261
  fe && /* @__PURE__ */ L("div", { className: "text-sm text-gray-500 flex items-center", children: [
30228
30262
  /* @__PURE__ */ m(ac, { className: "h-4 w-4 text-gray-500 my-auto" }),
30229
30263
  /* @__PURE__ */ L("span", { className: "flex items-center ml-1", children: [
@@ -30271,9 +30305,9 @@ const Hn = {
30271
30305
  }
30272
30306
  ),
30273
30307
  accessorKey: "size",
30274
- cell: ({ getValue: P, row: z }) => {
30308
+ cell: ({ getValue: P, row: H }) => {
30275
30309
  const ie = P();
30276
- return /* @__PURE__ */ m("span", { children: z.original.isFolder ? "-" : Li(ie) });
30310
+ return /* @__PURE__ */ m("span", { children: H.original.isFolder ? "-" : Li(ie) });
30277
30311
  }
30278
30312
  },
30279
30313
  {
@@ -30292,8 +30326,8 @@ const Hn = {
30292
30326
  ),
30293
30327
  accessorKey: "lastModified",
30294
30328
  cell: ({ row: P }) => {
30295
- const z = P.original.lastModified;
30296
- return /* @__PURE__ */ m("div", { className: "w-full flex-row justify-end items-center text-right", children: /* @__PURE__ */ m("span", { children: z && ab(z).isValid() ? ab(z).format("DD/MM/YYYY HH:mm") : "-" }) });
30329
+ const H = P.original.lastModified;
30330
+ return /* @__PURE__ */ m("div", { className: "w-full flex-row justify-end items-center text-right", children: /* @__PURE__ */ m("span", { children: H && ab(H).isValid() ? ab(H).format("DD/MM/YYYY HH:mm") : "-" }) });
30297
30331
  },
30298
30332
  size: 200
30299
30333
  },
@@ -30375,7 +30409,7 @@ const Hn = {
30375
30409
  getCoreRowModel: WE(),
30376
30410
  getSortedRowModel: n$()
30377
30411
  }), Dn = async (T) => {
30378
- var P, z;
30412
+ var P, H;
30379
30413
  At(!0);
30380
30414
  try {
30381
30415
  if (fc(T)) {
@@ -30387,7 +30421,7 @@ const Hn = {
30387
30421
  try {
30388
30422
  const ie = await Ue.get(`${e}/api/read-json`, {
30389
30423
  params: { path: T.key + ".metadata.json" }
30390
- }), fe = ((z = (P = ie == null ? void 0 : ie.data) == null ? void 0 : P.content) == null ? void 0 : z.metadataAttributes) || null;
30424
+ }), fe = ((H = (P = ie == null ? void 0 : ie.data) == null ? void 0 : P.content) == null ? void 0 : H.metadataAttributes) || null;
30391
30425
  return Ee({ fullPath: ne == null ? void 0 : ne.key, ...fe });
30392
30426
  } catch {
30393
30427
  return Ee("Lỗi phân tích siêu dữ liệu");
@@ -30411,8 +30445,8 @@ const Hn = {
30411
30445
  title: "Đã lưu tập tin",
30412
30446
  description: "Nội dung tập tin đã được cập nhật thành công"
30413
30447
  }), Hn.current = !0, await Bt(), V(null), ge(""), N("rename"), await lr();
30414
- } catch (z) {
30415
- console.error("Error saving file content:", z), B({
30448
+ } catch (H) {
30449
+ console.error("Error saving file content:", H), B({
30416
30450
  title: "Lỗi",
30417
30451
  description: "Không thể lưu nội dung tập tin",
30418
30452
  variant: "destructive"
@@ -30444,7 +30478,7 @@ const Hn = {
30444
30478
  ne && (ne.isFolder || Dn(ne), N("rename"));
30445
30479
  }, [ne]);
30446
30480
  const Er = async (T, P) => {
30447
- var z;
30481
+ var H;
30448
30482
  if (He) {
30449
30483
  B({
30450
30484
  title: "Đang thu thập website",
@@ -30466,7 +30500,7 @@ const Hn = {
30466
30500
  url: T,
30467
30501
  limit: P,
30468
30502
  prefix: C,
30469
- taskId: ((z = ie.task) == null ? void 0 : z.id) || ""
30503
+ taskId: ((H = ie.task) == null ? void 0 : H.id) || ""
30470
30504
  });
30471
30505
  const fe = localStorage.getItem(nx), ye = fe ? JSON.parse(fe) : [];
30472
30506
  ye.some((Ie) => Ie.id === ie.id) || (ye.unshift({
@@ -30556,7 +30590,7 @@ const Hn = {
30556
30590
  }, ph = () => {
30557
30591
  const T = Array.from(y);
30558
30592
  let P;
30559
- return C ? P = T.filter((z) => z.startsWith(C) && z !== C).length : P = new Set(T.filter((z) => z.split("/").shift())).size, `Đang chọn: ${P}`;
30593
+ return C ? P = T.filter((H) => H.startsWith(C) && H !== C).length : P = new Set(T.filter((H) => H.split("/").shift())).size, `Đang chọn: ${P}`;
30560
30594
  };
30561
30595
  return yt(() => {
30562
30596
  const T = C == null ? void 0 : C.split("/")[0];
@@ -30815,8 +30849,8 @@ const Hn = {
30815
30849
  xr(!1);
30816
30850
  const T = document.createElement("input");
30817
30851
  T.type = "file", T.multiple = !0, T.onchange = (P) => {
30818
- const z = P.target.files;
30819
- z && Ea(z, C, "files");
30852
+ const H = P.target.files;
30853
+ H && Ea(H, C, "files");
30820
30854
  }, T.click();
30821
30855
  },
30822
30856
  children: [
@@ -30833,8 +30867,8 @@ const Hn = {
30833
30867
  xr(!1);
30834
30868
  const T = document.createElement("input");
30835
30869
  T.type = "file", T.multiple = !0, T.webkitdirectory = !0, T.onchange = (P) => {
30836
- const z = P.target.files;
30837
- z && Ea(z, C, "folder");
30870
+ const H = P.target.files;
30871
+ H && Ea(H, C, "folder");
30838
30872
  }, T.click();
30839
30873
  },
30840
30874
  children: [
@@ -31102,7 +31136,7 @@ const Hn = {
31102
31136
  /* @__PURE__ */ m(
31103
31137
  io,
31104
31138
  {
31105
- disabled: H,
31139
+ disabled: z,
31106
31140
  id: "name",
31107
31141
  value: M,
31108
31142
  onChange: (T) => S(T.target.value),
@@ -31117,11 +31151,11 @@ const Hn = {
31117
31151
  onClick: () => {
31118
31152
  M.trim() && To(M, C);
31119
31153
  },
31120
- disabled: H,
31154
+ disabled: z,
31121
31155
  className: "s3-explr-create-btn",
31122
31156
  children: [
31123
- H && /* @__PURE__ */ m(sn, { className: "mr-2 h-4 w-4 animate-spin s3-explr-loader" }),
31124
- H ? "Đang tạo..." : "Tạo"
31157
+ z && /* @__PURE__ */ m(sn, { className: "mr-2 h-4 w-4 animate-spin s3-explr-loader" }),
31158
+ z ? "Đang tạo..." : "Tạo"
31125
31159
  ]
31126
31160
  }
31127
31161
  )
@@ -31605,7 +31639,7 @@ const Hn = {
31605
31639
  ] }),
31606
31640
  /* @__PURE__ */ m("div", { className: "space-y-2 mt-4 flex-1 overflow-y-auto", children: va ? /* @__PURE__ */ m("div", { className: "text-sm text-gray-500", children: "Đang tải nội dung thư mục... Vui lòng đợi." }) : wt ? [...ll, ...Ni].length === 0 ? /* @__PURE__ */ m("div", { className: "text-sm text-gray-500", children: "Không có thư mục hoặc tệp nào." }) : [...ll, ...Ni].map((T) => {
31607
31641
  const P = ya.some(
31608
- (z) => z.id === T.id
31642
+ (H) => H.id === T.id
31609
31643
  );
31610
31644
  return /* @__PURE__ */ L(
31611
31645
  "div",
@@ -31617,8 +31651,8 @@ const Hn = {
31617
31651
  {
31618
31652
  type: "checkbox",
31619
31653
  checked: P,
31620
- onChange: (z) => {
31621
- z.stopPropagation(), nh(T);
31654
+ onChange: (H) => {
31655
+ H.stopPropagation(), nh(T);
31622
31656
  },
31623
31657
  className: "cursor-pointer"
31624
31658
  }
@@ -31865,7 +31899,7 @@ const Hn = {
31865
31899
  }
31866
31900
  )
31867
31901
  ] }) }) }),
31868
- /* @__PURE__ */ m(Gu, { value: "edit-metadata", children: /* @__PURE__ */ m("div", { className: "space-y-4 py-4", children: ft ? /* @__PURE__ */ m("div", { className: "flex items-center justify-center py-4", children: /* @__PURE__ */ m(sn, { className: "h-6 w-6 animate-spin" }) }) : /* @__PURE__ */ m("div", { className: "h-[70dvh] min-h-[500px] overflow-hidden overflow-y-auto pb-3 px-1", children: Z && typeof Z == "object" && Object.entries(Z).map(([T, P], z) => /* @__PURE__ */ L("div", { className: "pb-3 flex flex-col gap-2", children: [
31902
+ /* @__PURE__ */ m(Gu, { value: "edit-metadata", children: /* @__PURE__ */ m("div", { className: "space-y-4 py-4", children: ft ? /* @__PURE__ */ m("div", { className: "flex items-center justify-center py-4", children: /* @__PURE__ */ m(sn, { className: "h-6 w-6 animate-spin" }) }) : /* @__PURE__ */ m("div", { className: "h-[70dvh] min-h-[500px] overflow-hidden overflow-y-auto pb-3 px-1", children: Z && typeof Z == "object" && Object.entries(Z).map(([T, P], H) => /* @__PURE__ */ L("div", { className: "pb-3 flex flex-col gap-2", children: [
31869
31903
  /* @__PURE__ */ L(
31870
31904
  Ho,
31871
31905
  {
@@ -31910,7 +31944,7 @@ const Hn = {
31910
31944
  disabled: Gt || Dp(T)
31911
31945
  }
31912
31946
  )
31913
- ] }, z)) }) }) })
31947
+ ] }, H)) }) }) })
31914
31948
  ] })
31915
31949
  ]
31916
31950
  }
@@ -32020,14 +32054,14 @@ const Hn = {
32020
32054
  }
32021
32055
  ),
32022
32056
  Array.from({ length: Math.ceil(Eo / 20) }, (T, P) => {
32023
- const z = P + 1, ie = Math.ceil(Eo / 20);
32024
- return ie > 7 && !(z === 1 || z === ie || z >= jt - 1 && z <= jt + 1) ? z === jt - 2 && jt > 4 || z === jt + 2 && jt < ie - 3 ? /* @__PURE__ */ m(Pf, { className: "pointer-events-none", children: "..." }, P) : null : /* @__PURE__ */ m(Lr, { className: "cursor-pointer", children: /* @__PURE__ */ m(
32057
+ const H = P + 1, ie = Math.ceil(Eo / 20);
32058
+ return ie > 7 && !(H === 1 || H === ie || H >= jt - 1 && H <= jt + 1) ? H === jt - 2 && jt > 4 || H === jt + 2 && jt < ie - 3 ? /* @__PURE__ */ m(Pf, { className: "pointer-events-none", children: "..." }, P) : null : /* @__PURE__ */ m(Lr, { className: "cursor-pointer", children: /* @__PURE__ */ m(
32025
32059
  Ts,
32026
32060
  {
32027
- isActive: jt === z,
32028
- onClick: () => Nn(z),
32029
- className: `${jt === z ? "bg-blue-500 text-white" : "bg-white text-black"} hover:bg-blue-100`,
32030
- children: z
32061
+ isActive: jt === H,
32062
+ onClick: () => Nn(H),
32063
+ className: `${jt === H ? "bg-blue-500 text-white" : "bg-white text-black"} hover:bg-blue-100`,
32064
+ children: H
32031
32065
  }
32032
32066
  ) }, P);
32033
32067
  }),
@@ -32236,7 +32270,7 @@ var Ga = (t) => Xt(t) && !Jd(t) ? t : {
32236
32270
  return {};
32237
32271
  const O = c ? c[0] : a, M = (ce) => {
32238
32272
  r && O.reportValidity && (O.setCustomValidity(so(ce) ? "" : ce || ""), O.reportValidity());
32239
- }, S = {}, H = ry(a), j = tl(a), G = H || j, te = (b || ny(a)) && qt(a.value) && qt(I) || Yd(a) && a.value === "" || I === "" || Array.isArray(I) && !I.length, q = iK.bind(null, C, n, S), ve = (ce, _e, W, X = Uo.maxLength, Y = Uo.minLength) => {
32273
+ }, S = {}, z = ry(a), j = tl(a), G = z || j, te = (b || ny(a)) && qt(a.value) && qt(I) || Yd(a) && a.value === "" || I === "" || Array.isArray(I) && !I.length, q = iK.bind(null, C, n, S), ve = (ce, _e, W, X = Uo.maxLength, Y = Uo.minLength) => {
32240
32274
  const se = ce ? _e : W;
32241
32275
  S[C] = {
32242
32276
  type: ce ? X : Y,
@@ -32245,7 +32279,7 @@ var Ga = (t) => Xt(t) && !Jd(t) ? t : {
32245
32279
  ...q(ce ? X : Y, se)
32246
32280
  };
32247
32281
  };
32248
- if (o ? !Array.isArray(I) || !I.length : l && (!G && (te || In(I)) || so(I) && !I || j && !qA(c).isValid || H && !YA(c).isValid)) {
32282
+ if (o ? !Array.isArray(I) || !I.length : l && (!G && (te || In(I)) || so(I) && !I || j && !qA(c).isValid || z && !YA(c).isValid)) {
32249
32283
  const { value: ce, message: _e } = Qu(l) ? { value: !!l, message: l } : Ga(l);
32250
32284
  if (ce && (S[C] = {
32251
32285
  type: Uo.required,
@@ -32532,7 +32566,7 @@ function mK(t = {}) {
32532
32566
  const me = Ne(a, N, qt(J) ? Ne(o, N) : J);
32533
32567
  qt(me) || Ce && Ce.defaultChecked || K ? Ft(a, N, K ? me : tg(xe._f)) : X(N, me), c.mount && _();
32534
32568
  }
32535
- }, H = (N, K, J, Ce, xe) => {
32569
+ }, z = (N, K, J, Ce, xe) => {
32536
32570
  let me = !1, re = !1;
32537
32571
  const he = {
32538
32572
  name: N
@@ -32616,7 +32650,7 @@ function mK(t = {}) {
32616
32650
  values: { ...a }
32617
32651
  })));
32618
32652
  }
32619
- (J.shouldDirty || J.shouldTouch) && H(N, xe, J.shouldTouch, J.shouldDirty, !0), J.shouldValidate && V(N);
32653
+ (J.shouldDirty || J.shouldTouch) && z(N, xe, J.shouldTouch, J.shouldDirty, !0), J.shouldValidate && V(N);
32620
32654
  }, Y = (N, K, J) => {
32621
32655
  for (const Ce in K) {
32622
32656
  const xe = K[Ce], me = `${N}.${Ce}`, re = Ne(r, me);
@@ -32646,7 +32680,7 @@ function mK(t = {}) {
32646
32680
  let he, Xe;
32647
32681
  const Ye = me(), pt = N.type === rx.BLUR || N.type === rx.FOCUS_OUT, sr = !fK(xe._f) && !e.resolver && !Ne(n.errors, J) && !xe._f.deps || hK(pt, Ne(n.touchedFields, J), n.isSubmitted, v, y), $t = ix(J, l, pt);
32648
32682
  Ft(a, J, Ye), pt ? (xe._f.onBlur && xe._f.onBlur(N), d && d(0)) : xe._f.onChange && xe._f.onChange(N);
32649
- const Pn = H(J, Ye, pt, !1), Cr = !zn(Pn) || $t;
32683
+ const Pn = z(J, Ye, pt, !1), Cr = !zn(Pn) || $t;
32650
32684
  if (!pt && g.values.next({
32651
32685
  name: J,
32652
32686
  type: N.type,
@@ -32721,7 +32755,7 @@ function mK(t = {}) {
32721
32755
  }, ke = ({ disabled: N, name: K, field: J, fields: Ce, value: xe }) => {
32722
32756
  if (so(N) && c.mount || N) {
32723
32757
  const me = N ? void 0 : qt(xe) ? tg(J ? J._f : Ne(Ce, K)._f) : xe;
32724
- (N || !N && !qt(me)) && Ft(a, K, me), H(K, me, !1, !1, !0);
32758
+ (N || !N && !qt(me)) && Ft(a, K, me), z(K, me, !1, !1, !0);
32725
32759
  }
32726
32760
  }, $e = (N, K = {}) => {
32727
32761
  let J = Ne(r, N);
@@ -33039,7 +33073,7 @@ const eR = ({ className: t, children: e, content: n, side: r }) => {
33039
33073
  }, IK = ({
33040
33074
  apiBaseUrl: t = "https://s3-explorer.cmcts1.studio.ai.vn"
33041
33075
  }) => {
33042
- var H, j;
33076
+ var z, j;
33043
33077
  const [e, n] = be([]), [r, o] = be(!1), [a, c] = be([]), [l, d] = be(1), [f, h] = be(1), [g, y] = be(null), [v, C] = be(""), b = yK(v, 500), _ = (G) => {
33044
33078
  const te = G.match(/\d{6}/);
33045
33079
  if (!te) return { month: "", year: "" };
@@ -33315,7 +33349,7 @@ const eR = ({ className: t, children: e, content: n, side: r }) => {
33315
33349
  ] }) }),
33316
33350
  /* @__PURE__ */ m("div", { className: "rounded-md border s3-explr-table-container", children: /* @__PURE__ */ L(Nf, { className: "s3-explr-table", children: [
33317
33351
  /* @__PURE__ */ m(Mf, { className: "s3-explr-table-header", children: S.getHeaderGroups().map((G) => /* @__PURE__ */ m(Fr, { className: "hover:bg-transparent s3-explr-header-row", children: G.headers.map((te) => /* @__PURE__ */ m(ao, { className: "s3-explr-header-cell", children: te.isPlaceholder ? null : Fd(te.column.columnDef.header, te.getContext()) }, te.id)) }, G.id)) }),
33318
- /* @__PURE__ */ m(Df, { className: "s3-explr-table-body", children: r ? /* @__PURE__ */ m(Fr, { children: /* @__PURE__ */ m(Vn, { colSpan: M.length, className: "h-24 text-center", children: "Đang tải dữ liệu..." }) }) : (H = S.getRowModel().rows) != null && H.length ? (j = S.getRowModel().rows) == null ? void 0 : j.map((G) => /* @__PURE__ */ m(Fr, { className: "h-12 s3-explr-row", children: G.getVisibleCells().map((te) => /* @__PURE__ */ m(Vn, { className: "align-middle s3-explr-cell", children: Fd(te.column.columnDef.cell, te.getContext()) }, te.id)) }, G.id)) : /* @__PURE__ */ m(Fr, { children: /* @__PURE__ */ m(Vn, { colSpan: M.length, className: "h-24 text-center", children: "Không có kết quả." }) }) })
33352
+ /* @__PURE__ */ m(Df, { className: "s3-explr-table-body", children: r ? /* @__PURE__ */ m(Fr, { children: /* @__PURE__ */ m(Vn, { colSpan: M.length, className: "h-24 text-center", children: "Đang tải dữ liệu..." }) }) : (z = S.getRowModel().rows) != null && z.length ? (j = S.getRowModel().rows) == null ? void 0 : j.map((G) => /* @__PURE__ */ m(Fr, { className: "h-12 s3-explr-row", children: G.getVisibleCells().map((te) => /* @__PURE__ */ m(Vn, { className: "align-middle s3-explr-cell", children: Fd(te.column.columnDef.cell, te.getContext()) }, te.id)) }, G.id)) : /* @__PURE__ */ m(Fr, { children: /* @__PURE__ */ m(Vn, { colSpan: M.length, className: "h-24 text-center", children: "Không có kết quả." }) }) })
33319
33353
  ] }) }),
33320
33354
  /* @__PURE__ */ m("div", { className: "mt-4", children: /* @__PURE__ */ m(Rf, { children: /* @__PURE__ */ L(If, { children: [
33321
33355
  /* @__PURE__ */ m(Lr, { children: /* @__PURE__ */ m(
@@ -33357,13 +33391,13 @@ const eR = ({ className: t, children: e, content: n, side: r }) => {
33357
33391
  }), [l, d] = be(!0), [f, h] = be(null), [g, y] = be(/* @__PURE__ */ new Set()), { toast: v } = Hf(), [C, b] = be(!1), _ = async (S) => {
33358
33392
  try {
33359
33393
  h(S);
33360
- const H = await Ue.get(`${t}/api/jobs`, {
33394
+ const z = await Ue.get(`${t}/api/jobs`, {
33361
33395
  params: {
33362
33396
  page: S.toString(),
33363
33397
  limit: hx.toString()
33364
33398
  }
33365
33399
  });
33366
- o(H.data.data), c(H.data.pagination);
33400
+ o(z.data.data), c(z.data.pagination);
33367
33401
  } catch {
33368
33402
  v({
33369
33403
  variant: "destructive",
@@ -33378,7 +33412,7 @@ const eR = ({ className: t, children: e, content: n, side: r }) => {
33378
33412
  _(e);
33379
33413
  }, [e, t]);
33380
33414
  const R = async (S) => {
33381
- y((H) => new Set(H).add(S.toString()));
33415
+ y((z) => new Set(z).add(S.toString()));
33382
33416
  try {
33383
33417
  await Ue.post(`${t}/api/retry-job`, { jobId: S }), v({
33384
33418
  title: "Job Restarted",
@@ -33391,8 +33425,8 @@ const eR = ({ className: t, children: e, content: n, side: r }) => {
33391
33425
  description: `Failed to restart job ${S}. Please try again.`
33392
33426
  });
33393
33427
  } finally {
33394
- y((H) => {
33395
- const j = new Set(H);
33428
+ y((z) => {
33429
+ const j = new Set(z);
33396
33430
  return j.delete(S.toString()), j;
33397
33431
  });
33398
33432
  }
@@ -33401,8 +33435,8 @@ const eR = ({ className: t, children: e, content: n, side: r }) => {
33401
33435
  }, O = (S) => new Date(S).toLocaleString(), M = (S) => {
33402
33436
  if (S = parseFloat(S), S < 60)
33403
33437
  return `${S.toFixed(2)}s`;
33404
- const H = Math.floor(S / 60), j = (S % 60).toFixed(0);
33405
- return `${H}m ${j}s`;
33438
+ const z = Math.floor(S / 60), j = (S % 60).toFixed(0);
33439
+ return `${z}m ${j}s`;
33406
33440
  };
33407
33441
  return /* @__PURE__ */ L("div", { children: [
33408
33442
  /* @__PURE__ */ L("div", { className: "flex items-center gap-2 mb-6", children: [
@@ -33431,10 +33465,10 @@ const eR = ({ className: t, children: e, content: n, side: r }) => {
33431
33465
  /* @__PURE__ */ m(ao, { children: "Thao Tác" })
33432
33466
  ] }) }),
33433
33467
  /* @__PURE__ */ m(Df, { children: l && r.length === 0 ? /* @__PURE__ */ m(Fr, { children: /* @__PURE__ */ m(Vn, { colSpan: 7, className: "text-center py-4", children: /* @__PURE__ */ m(sn, { className: "w-6 h-6 animate-spin mx-auto" }) }) }) : r.map((S) => {
33434
- var H, j;
33468
+ var z, j;
33435
33469
  return /* @__PURE__ */ L(Fr, { children: [
33436
33470
  /* @__PURE__ */ m(Vn, { className: "!w-[100px]", children: S.id }),
33437
- /* @__PURE__ */ m(Vn, { className: "font-medium", children: (H = S.job_name) == null ? void 0 : H.replace("Upload file", "Summary") }),
33471
+ /* @__PURE__ */ m(Vn, { className: "font-medium", children: (z = S.job_name) == null ? void 0 : z.replace("Upload file", "Summary") }),
33438
33472
  /* @__PURE__ */ m(Vn, { className: "!w-[200px]", children: O(S.created_at) }),
33439
33473
  /* @__PURE__ */ m(Vn, { className: "!w-[200px]", children: O(S.updated_at) }),
33440
33474
  /* @__PURE__ */ m(Vn, { className: "!w-[150px]", children: M(S.execution_time_seconds) }),
@@ -33477,10 +33511,10 @@ const eR = ({ className: t, children: e, content: n, side: r }) => {
33477
33511
  className: e === 1 ? "pointer-events-none opacity-50" : "cursor-pointer"
33478
33512
  }
33479
33513
  ) }),
33480
- Array.from({ length: a.totalPages }, (S, H) => H + 1).filter(
33514
+ Array.from({ length: a.totalPages }, (S, z) => z + 1).filter(
33481
33515
  (S) => S === 1 || S === a.totalPages || Math.abs(S - e) <= 1
33482
- ).map((S, H, j) => /* @__PURE__ */ L(vt, { children: [
33483
- H > 0 && j[H - 1] !== S - 1 && /* @__PURE__ */ m(Lr, { children: /* @__PURE__ */ m(Pf, {}) }, S + "..."),
33516
+ ).map((S, z, j) => /* @__PURE__ */ L(vt, { children: [
33517
+ z > 0 && j[z - 1] !== S - 1 && /* @__PURE__ */ m(Lr, { children: /* @__PURE__ */ m(Pf, {}) }, S + "..."),
33484
33518
  /* @__PURE__ */ m(Lr, { children: /* @__PURE__ */ m(
33485
33519
  Ts,
33486
33520
  {