@opencloud-eu/web-client 6.1.0 → 7.0.0

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.
@@ -1,5 +1,5 @@
1
- import { a as e, i as t, n, r } from "./axios-Drchb9eh.js";
2
- import { c as i, i as a, l as o, n as s, o as c, r as l, t as u, u as d } from "./toString-tGn_k7yU.js";
1
+ import { a as e, i as t, n, r } from "./axios-DAxu7d04.js";
2
+ import { c as i, i as a, l as o, n as s, o as c, r as l, t as u, u as d } from "./toString-9BJo4tor.js";
3
3
  //#region src/helpers/call.ts
4
4
  var f = function* (e) {
5
5
  return yield e;
@@ -23,12 +23,12 @@ var f = function* (e) {
23
23
  function g(e, t = "") {
24
24
  return `/public-files/${e}/${t}`.split("/").filter(Boolean).join("/");
25
25
  }
26
- function ee(e, t = "") {
26
+ function _(e, t = "") {
27
27
  return `/ocm/${e}/${t}`.split("/").filter(Boolean).join("/");
28
28
  }
29
29
  //#endregion
30
- //#region ../../node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js
31
- var te = /* @__PURE__ */ t(((e, t) => {
30
+ //#region src/webdav/constants/dav.ts
31
+ var v = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
32
32
  n();
33
33
  function i(e) {
34
34
  if (typeof e != "string") throw TypeError("Path must be a string. Received " + JSON.stringify(e));
@@ -196,7 +196,7 @@ var te = /* @__PURE__ */ t(((e, t) => {
196
196
  posix: null
197
197
  };
198
198
  s.posix = s, t.exports = s;
199
- })), _ = class {
199
+ })))(), 1), y = class {
200
200
  static Shared = "S";
201
201
  static Shareable = "R";
202
202
  static Mounted = "M";
@@ -208,24 +208,24 @@ var te = /* @__PURE__ */ t(((e, t) => {
208
208
  static FolderCreateable = "CK";
209
209
  static Deny = "Z";
210
210
  static SecureView = "X";
211
- }, ne = /* @__PURE__ */ function(e) {
211
+ }, ee = /* @__PURE__ */ function(e) {
212
212
  return e.copy = "COPY", e.delete = "DELETE", e.lock = "LOCK", e.mkcol = "MKCOL", e.move = "MOVE", e.propfind = "PROPFIND", e.proppatch = "PROPPATCH", e.put = "PUT", e.report = "REPORT", e.unlock = "UNLOCK", e;
213
- }({}), v = (e) => ({
213
+ }({}), b = (e) => ({
214
214
  value: e,
215
215
  type: null
216
- }), re = (e) => v(e), y = (e) => v(e), b = (e) => v(e), ie = {
217
- Permissions: y("permissions"),
218
- IsFavorite: b("favorite"),
219
- FileId: y("fileid"),
220
- FileParent: y("file-parent"),
221
- Name: y("name"),
222
- OwnerId: y("owner-id"),
223
- OwnerDisplayName: y("owner-display-name"),
224
- PrivateLink: y("privatelink"),
225
- ContentLength: b("getcontentlength"),
226
- ContentSize: b("size"),
227
- LastModifiedDate: y("getlastmodified"),
228
- Tags: re("tags"),
216
+ }), te = (e) => b(e), x = (e) => b(e), S = (e) => b(e), ne = {
217
+ Permissions: x("permissions"),
218
+ IsFavorite: S("favorite"),
219
+ FileId: x("fileid"),
220
+ FileParent: x("file-parent"),
221
+ Name: x("name"),
222
+ OwnerId: x("owner-id"),
223
+ OwnerDisplayName: x("owner-display-name"),
224
+ PrivateLink: x("privatelink"),
225
+ ContentLength: S("getcontentlength"),
226
+ ContentSize: S("size"),
227
+ LastModifiedDate: x("getlastmodified"),
228
+ Tags: te("tags"),
229
229
  Audio: {
230
230
  value: "audio",
231
231
  type: null
@@ -242,101 +242,101 @@ var te = /* @__PURE__ */ t(((e, t) => {
242
242
  value: "photo",
243
243
  type: null
244
244
  },
245
- ETag: y("getetag"),
246
- MimeType: y("getcontenttype"),
247
- ResourceType: ((e) => v(e))("resourcetype"),
245
+ ETag: x("getetag"),
246
+ MimeType: x("getcontenttype"),
247
+ ResourceType: ((e) => b(e))("resourcetype"),
248
248
  LockDiscovery: {
249
249
  value: "lockdiscovery",
250
250
  type: null
251
251
  },
252
- LockOwner: y("owner"),
253
- LockTime: y("locktime"),
252
+ LockOwner: x("owner"),
253
+ LockTime: x("locktime"),
254
254
  ActiveLock: {
255
255
  value: "activelock",
256
256
  type: null
257
257
  },
258
- DownloadURL: y("downloadURL"),
259
- Highlights: y("highlights"),
260
- MetaPathForUser: y("meta-path-for-user"),
261
- RemoteItemId: y("remote-item-id"),
262
- HasPreview: b("has-preview"),
263
- ShareId: y("shareid"),
264
- ShareRoot: y("shareroot"),
258
+ DownloadURL: x("downloadURL"),
259
+ Highlights: x("highlights"),
260
+ MetaPathForUser: x("meta-path-for-user"),
261
+ RemoteItemId: x("remote-item-id"),
262
+ HasPreview: S("has-preview"),
263
+ ShareId: x("shareid"),
264
+ ShareRoot: x("shareroot"),
265
265
  ShareTypes: {
266
266
  value: "share-types",
267
267
  type: null
268
268
  },
269
- SharePermissions: y("share-permissions"),
270
- TrashbinOriginalFilename: y("trashbin-original-filename"),
271
- TrashbinOriginalLocation: y("trashbin-original-location"),
272
- TrashbinDeletedDate: y("trashbin-delete-datetime"),
273
- PublicLinkItemType: y("public-link-item-type"),
274
- PublicLinkPermission: y("public-link-permission"),
275
- PublicLinkExpiration: y("public-link-expiration"),
276
- PublicLinkShareDate: y("public-link-share-datetime"),
277
- PublicLinkShareOwner: y("public-link-share-owner")
278
- }, x = Object.fromEntries(Object.entries(ie).map(([e, t]) => [e, t.value])), ae = class e {
269
+ SharePermissions: x("share-permissions"),
270
+ TrashbinOriginalFilename: x("trashbin-original-filename"),
271
+ TrashbinOriginalLocation: x("trashbin-original-location"),
272
+ TrashbinDeletedDate: x("trashbin-delete-datetime"),
273
+ PublicLinkItemType: x("public-link-item-type"),
274
+ PublicLinkPermission: x("public-link-permission"),
275
+ PublicLinkExpiration: x("public-link-expiration"),
276
+ PublicLinkShareDate: x("public-link-share-datetime"),
277
+ PublicLinkShareOwner: x("public-link-share-owner")
278
+ }, C = Object.fromEntries(Object.entries(ne).map(([e, t]) => [e, t.value])), re = class e {
279
279
  static Default = [
280
- x.Permissions,
281
- x.IsFavorite,
282
- x.FileId,
283
- x.FileParent,
284
- x.Name,
285
- x.LockDiscovery,
286
- x.ActiveLock,
287
- x.OwnerId,
288
- x.OwnerDisplayName,
289
- x.RemoteItemId,
290
- x.ShareRoot,
291
- x.ShareTypes,
292
- x.PrivateLink,
293
- x.ContentLength,
294
- x.ContentSize,
295
- x.LastModifiedDate,
296
- x.ETag,
297
- x.MimeType,
298
- x.ResourceType,
299
- x.Tags,
300
- x.Audio,
301
- x.Location,
302
- x.Image,
303
- x.Photo,
304
- x.HasPreview
280
+ C.Permissions,
281
+ C.IsFavorite,
282
+ C.FileId,
283
+ C.FileParent,
284
+ C.Name,
285
+ C.LockDiscovery,
286
+ C.ActiveLock,
287
+ C.OwnerId,
288
+ C.OwnerDisplayName,
289
+ C.RemoteItemId,
290
+ C.ShareRoot,
291
+ C.ShareTypes,
292
+ C.PrivateLink,
293
+ C.ContentLength,
294
+ C.ContentSize,
295
+ C.LastModifiedDate,
296
+ C.ETag,
297
+ C.MimeType,
298
+ C.ResourceType,
299
+ C.Tags,
300
+ C.Audio,
301
+ C.Location,
302
+ C.Image,
303
+ C.Photo,
304
+ C.HasPreview
305
305
  ];
306
306
  static PublicLink = e.Default.concat([
307
- x.PublicLinkItemType,
308
- x.PublicLinkPermission,
309
- x.PublicLinkExpiration,
310
- x.PublicLinkShareDate,
311
- x.PublicLinkShareOwner
307
+ C.PublicLinkItemType,
308
+ C.PublicLinkPermission,
309
+ C.PublicLinkExpiration,
310
+ C.PublicLinkShareDate,
311
+ C.PublicLinkShareOwner
312
312
  ]);
313
313
  static Trashbin = [
314
- x.ContentLength,
315
- x.ResourceType,
316
- x.TrashbinOriginalLocation,
317
- x.TrashbinOriginalFilename,
318
- x.TrashbinDeletedDate,
319
- x.Permissions,
320
- x.FileParent
314
+ C.ContentLength,
315
+ C.ResourceType,
316
+ C.TrashbinOriginalLocation,
317
+ C.TrashbinOriginalFilename,
318
+ C.TrashbinDeletedDate,
319
+ C.Permissions,
320
+ C.FileParent
321
321
  ];
322
322
  static DavNamespace = [
323
- x.ContentLength,
324
- x.LastModifiedDate,
325
- x.ETag,
326
- x.MimeType,
327
- x.ResourceType,
328
- x.LockDiscovery,
329
- x.ActiveLock
323
+ C.ContentLength,
324
+ C.LastModifiedDate,
325
+ C.ETag,
326
+ C.MimeType,
327
+ C.ResourceType,
328
+ C.LockDiscovery,
329
+ C.ActiveLock
330
330
  ];
331
331
  };
332
332
  //#endregion
333
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/identity.js
334
- function oe(e) {
333
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/identity.js
334
+ function w(e) {
335
335
  return e;
336
336
  }
337
337
  //#endregion
338
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_apply.js
339
- function se(e, t, n) {
338
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_apply.js
339
+ function ie(e, t, n) {
340
340
  switch (n.length) {
341
341
  case 0: return e.call(t);
342
342
  case 1: return e.call(t, n[0]);
@@ -346,184 +346,184 @@ function se(e, t, n) {
346
346
  return e.apply(t, n);
347
347
  }
348
348
  //#endregion
349
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/noop.js
350
- function ce() {}
349
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/noop.js
350
+ function ae() {}
351
351
  //#endregion
352
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_shortOut.js
353
- var le = 800, ue = 16, de = Date.now;
354
- function fe(e) {
352
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js
353
+ var oe = 800, se = 16, ce = Date.now;
354
+ function le(e) {
355
355
  var t = 0, n = 0;
356
356
  return function() {
357
- var r = de(), i = ue - (r - n);
357
+ var r = ce(), i = se - (r - n);
358
358
  if (n = r, i > 0) {
359
- if (++t >= le) return arguments[0];
359
+ if (++t >= oe) return arguments[0];
360
360
  } else t = 0;
361
361
  return e.apply(void 0, arguments);
362
362
  };
363
363
  }
364
364
  //#endregion
365
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/constant.js
366
- function pe(e) {
365
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/constant.js
366
+ function ue(e) {
367
367
  return function() {
368
368
  return e;
369
369
  };
370
370
  }
371
371
  //#endregion
372
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.js
373
- var me = function() {
372
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js
373
+ var de = function() {
374
374
  try {
375
375
  var e = l(Object, "defineProperty");
376
376
  return e({}, "", {}), e;
377
377
  } catch {}
378
- }(), he = fe(me ? function(e, t) {
379
- return me(e, "toString", {
378
+ }(), fe = le(de ? function(e, t) {
379
+ return de(e, "toString", {
380
380
  configurable: !0,
381
381
  enumerable: !1,
382
- value: pe(t),
382
+ value: ue(t),
383
383
  writable: !0
384
384
  });
385
- } : oe);
385
+ } : w);
386
386
  //#endregion
387
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseFindIndex.js
388
- function ge(e, t, n, r) {
387
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js
388
+ function pe(e, t, n, r) {
389
389
  for (var i = e.length, a = n + (r ? 1 : -1); r ? a-- : ++a < i;) if (t(e[a], a, e)) return a;
390
390
  return -1;
391
391
  }
392
392
  //#endregion
393
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNaN.js
394
- function _e(e) {
393
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js
394
+ function me(e) {
395
395
  return e !== e;
396
396
  }
397
397
  //#endregion
398
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_strictIndexOf.js
399
- function ve(e, t, n) {
398
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js
399
+ function he(e, t, n) {
400
400
  for (var r = n - 1, i = e.length; ++r < i;) if (e[r] === t) return r;
401
401
  return -1;
402
402
  }
403
403
  //#endregion
404
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIndexOf.js
405
- function ye(e, t, n) {
406
- return t === t ? ve(e, t, n) : ge(e, _e, n);
404
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js
405
+ function ge(e, t, n) {
406
+ return t === t ? he(e, t, n) : pe(e, me, n);
407
407
  }
408
408
  //#endregion
409
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayIncludes.js
410
- function be(e, t) {
411
- return !!(e != null && e.length) && ye(e, t, 0) > -1;
409
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js
410
+ function _e(e, t) {
411
+ return !!(e != null && e.length) && ge(e, t, 0) > -1;
412
412
  }
413
413
  //#endregion
414
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_overRest.js
415
- var xe = Math.max;
416
- function Se(e, t, n) {
417
- return t = xe(t === void 0 ? e.length - 1 : t, 0), function() {
418
- for (var r = arguments, i = -1, a = xe(r.length - t, 0), o = Array(a); ++i < a;) o[i] = r[t + i];
414
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js
415
+ var ve = Math.max;
416
+ function ye(e, t, n) {
417
+ return t = ve(t === void 0 ? e.length - 1 : t, 0), function() {
418
+ for (var r = arguments, i = -1, a = ve(r.length - t, 0), o = Array(a); ++i < a;) o[i] = r[t + i];
419
419
  i = -1;
420
420
  for (var s = Array(t + 1); ++i < t;) s[i] = r[i];
421
- return s[t] = n(o), se(e, this, s);
421
+ return s[t] = n(o), ie(e, this, s);
422
422
  };
423
423
  }
424
424
  //#endregion
425
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseRest.js
426
- function Ce(e, t) {
427
- return he(Se(e, t, oe), e + "");
425
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js
426
+ function be(e, t) {
427
+ return fe(ye(e, t, w), e + "");
428
428
  }
429
429
  //#endregion
430
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isLength.js
431
- var we = 9007199254740991;
432
- function Te(e) {
433
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= we;
430
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.js
431
+ var xe = 9007199254740991;
432
+ function Se(e) {
433
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= xe;
434
434
  }
435
435
  //#endregion
436
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.js
437
- function Ee(e) {
438
- return e != null && Te(e.length) && !a(e);
436
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js
437
+ function Ce(e) {
438
+ return e != null && Se(e.length) && !a(e);
439
439
  }
440
440
  //#endregion
441
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseUnary.js
442
- function De(e) {
441
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js
442
+ function we(e) {
443
443
  return function(t) {
444
444
  return e(t);
445
445
  };
446
446
  }
447
447
  //#endregion
448
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSlice.js
449
- function Oe(e, t, n) {
448
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSlice.js
449
+ function Te(e, t, n) {
450
450
  var r = -1, i = e.length;
451
451
  t < 0 && (t = -t > i ? 0 : i + t), n = n > i ? i : n, n < 0 && (n += i), i = t > n ? 0 : n - t >>> 0, t >>>= 0;
452
452
  for (var a = Array(i); ++r < i;) a[r] = e[r + t];
453
453
  return a;
454
454
  }
455
455
  //#endregion
456
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_castSlice.js
457
- function ke(e, t, n) {
456
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castSlice.js
457
+ function Ee(e, t, n) {
458
458
  var r = e.length;
459
- return n = n === void 0 ? r : n, !t && n >= r ? e : Oe(e, t, n);
459
+ return n = n === void 0 ? r : n, !t && n >= r ? e : Te(e, t, n);
460
460
  }
461
461
  //#endregion
462
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hasUnicode.js
463
- var Ae = RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");
464
- function je(e) {
465
- return Ae.test(e);
462
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasUnicode.js
463
+ var De = RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");
464
+ function Oe(e) {
465
+ return De.test(e);
466
466
  }
467
467
  //#endregion
468
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_asciiToArray.js
469
- function Me(e) {
468
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_asciiToArray.js
469
+ function ke(e) {
470
470
  return e.split("");
471
471
  }
472
472
  //#endregion
473
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_unicodeToArray.js
474
- var Ne = "\\ud800-\\udfff", Pe = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff", Fe = "\\ufe0e\\ufe0f", Ie = "[" + Ne + "]", S = "[" + Pe + "]", C = "\\ud83c[\\udffb-\\udfff]", Le = "(?:" + S + "|" + C + ")", Re = "[^" + Ne + "]", w = "(?:\\ud83c[\\udde6-\\uddff]){2}", T = "[\\ud800-\\udbff][\\udc00-\\udfff]", ze = "\\u200d", E = Le + "?", D = "[" + Fe + "]?", Be = "(?:" + ze + "(?:" + [
475
- Re,
476
- w,
477
- T
478
- ].join("|") + ")" + D + E + ")*", Ve = D + E + Be, He = "(?:" + [
479
- Re + S + "?",
480
- S,
481
- w,
473
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_unicodeToArray.js
474
+ var Ae = "\\ud800-\\udfff", je = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff", Me = "\\ufe0e\\ufe0f", Ne = "[" + Ae + "]", T = "[" + je + "]", E = "\\ud83c[\\udffb-\\udfff]", Pe = "(?:" + T + "|" + E + ")", Fe = "[^" + Ae + "]", Ie = "(?:\\ud83c[\\udde6-\\uddff]){2}", Le = "[\\ud800-\\udbff][\\udc00-\\udfff]", Re = "\\u200d", ze = Pe + "?", Be = "[" + Me + "]?", Ve = "(?:" + Re + "(?:" + [
475
+ Fe,
476
+ Ie,
477
+ Le
478
+ ].join("|") + ")" + Be + ze + ")*", He = Be + ze + Ve, Ue = "(?:" + [
479
+ Fe + T + "?",
482
480
  T,
483
- Ie
484
- ].join("|") + ")", Ue = RegExp(C + "(?=" + C + ")|" + He + Ve, "g");
485
- function We(e) {
486
- return e.match(Ue) || [];
487
- }
488
- //#endregion
489
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stringToArray.js
481
+ Ie,
482
+ Le,
483
+ Ne
484
+ ].join("|") + ")", We = RegExp(E + "(?=" + E + ")|" + Ue + He, "g");
490
485
  function Ge(e) {
491
- return je(e) ? We(e) : Me(e);
486
+ return e.match(We) || [];
492
487
  }
493
488
  //#endregion
494
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_createCaseFirst.js
489
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToArray.js
495
490
  function Ke(e) {
491
+ return Oe(e) ? Ge(e) : ke(e);
492
+ }
493
+ //#endregion
494
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createCaseFirst.js
495
+ function qe(e) {
496
496
  return function(t) {
497
497
  t = u(t);
498
- var n = je(t) ? Ge(t) : void 0, r = n ? n[0] : t.charAt(0), i = n ? ke(n, 1).join("") : t.slice(1);
498
+ var n = Oe(t) ? Ke(t) : void 0, r = n ? n[0] : t.charAt(0), i = n ? Ee(n, 1).join("") : t.slice(1);
499
499
  return r[e]() + i;
500
500
  };
501
501
  }
502
502
  //#endregion
503
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/upperFirst.js
504
- var qe = Ke("toUpperCase");
503
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/upperFirst.js
504
+ var Je = qe("toUpperCase");
505
505
  //#endregion
506
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/capitalize.js
507
- function Je(e) {
508
- return qe(u(e).toLowerCase());
506
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/capitalize.js
507
+ function Ye(e) {
508
+ return Je(u(e).toLowerCase());
509
509
  }
510
510
  //#endregion
511
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayReduce.js
512
- function Ye(e, t, n, r) {
511
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayReduce.js
512
+ function Xe(e, t, n, r) {
513
513
  var i = -1, a = e == null ? 0 : e.length;
514
514
  for (r && a && (n = e[++i]); ++i < a;) n = t(n, e[i], i, e);
515
515
  return n;
516
516
  }
517
517
  //#endregion
518
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_basePropertyOf.js
519
- function Xe(e) {
518
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyOf.js
519
+ function Ze(e) {
520
520
  return function(t) {
521
521
  return e?.[t];
522
522
  };
523
523
  }
524
524
  //#endregion
525
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_deburrLetter.js
526
- var Ze = Xe({
525
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_deburrLetter.js
526
+ var Qe = Ze({
527
527
  À: "A",
528
528
  Á: "A",
529
529
  Â: "A",
@@ -714,117 +714,117 @@ var Ze = Xe({
714
714
  œ: "oe",
715
715
  ʼn: "'n",
716
716
  ſ: "s"
717
- }), Qe = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, $e = RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]", "g");
718
- function et(e) {
719
- return e = u(e), e && e.replace(Qe, Ze).replace($e, "");
717
+ }), $e = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, et = RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]", "g");
718
+ function tt(e) {
719
+ return e = u(e), e && e.replace($e, Qe).replace(et, "");
720
720
  }
721
721
  //#endregion
722
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_asciiWords.js
723
- var tt = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
724
- function nt(e) {
725
- return e.match(tt) || [];
722
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_asciiWords.js
723
+ var nt = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
724
+ function rt(e) {
725
+ return e.match(nt) || [];
726
726
  }
727
727
  //#endregion
728
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hasUnicodeWord.js
729
- var rt = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
730
- function it(e) {
731
- return rt.test(e);
728
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasUnicodeWord.js
729
+ var it = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
730
+ function at(e) {
731
+ return it.test(e);
732
732
  }
733
733
  //#endregion
734
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_unicodeWords.js
735
- var O = "\\ud800-\\udfff", at = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff", k = "\\u2700-\\u27bf", A = "a-z\\xdf-\\xf6\\xf8-\\xff", ot = "\\xac\\xb1\\xd7\\xf7", st = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", ct = "\\u2000-\\u206f", lt = " \\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", j = "A-Z\\xc0-\\xd6\\xd8-\\xde", ut = "\\ufe0e\\ufe0f", M = ot + st + ct + lt, N = "['’]", dt = "[" + M + "]", ft = "[" + at + "]", pt = "\\d+", mt = "[" + k + "]", P = "[" + A + "]", ht = "[^" + O + M + pt + k + A + j + "]", gt = "(?:" + ft + "|\\ud83c[\\udffb-\\udfff])", _t = "[^" + O + "]", vt = "(?:\\ud83c[\\udde6-\\uddff]){2}", yt = "[\\ud800-\\udbff][\\udc00-\\udfff]", F = "[" + j + "]", bt = "\\u200d", xt = "(?:" + P + "|" + ht + ")", St = "(?:" + F + "|" + ht + ")", Ct = "(?:" + N + "(?:d|ll|m|re|s|t|ve))?", wt = "(?:" + N + "(?:D|LL|M|RE|S|T|VE))?", Tt = gt + "?", Et = "[" + ut + "]?", Dt = "(?:" + bt + "(?:" + [
736
- _t,
737
- vt,
738
- yt
739
- ].join("|") + ")" + Et + Tt + ")*", Ot = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", kt = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", At = Et + Tt + Dt, jt = "(?:" + [
740
- mt,
741
- vt,
742
- yt
734
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_unicodeWords.js
735
+ var ot = "\\ud800-\\udfff", st = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff", ct = "\\u2700-\\u27bf", lt = "a-z\\xdf-\\xf6\\xf8-\\xff", ut = "\\xac\\xb1\\xd7\\xf7", dt = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", ft = "\\u2000-\\u206f", pt = " \\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", mt = "A-Z\\xc0-\\xd6\\xd8-\\xde", ht = "\\ufe0e\\ufe0f", gt = ut + dt + ft + pt, _t = "['’]", vt = "[" + gt + "]", yt = "[" + st + "]", bt = "\\d+", xt = "[" + ct + "]", St = "[" + lt + "]", D = "[^" + ot + gt + bt + ct + lt + mt + "]", Ct = "(?:" + yt + "|\\ud83c[\\udffb-\\udfff])", wt = "[^" + ot + "]", O = "(?:\\ud83c[\\udde6-\\uddff]){2}", k = "[\\ud800-\\udbff][\\udc00-\\udfff]", A = "[" + mt + "]", Tt = "\\u200d", j = "(?:" + St + "|" + D + ")", Et = "(?:" + A + "|" + D + ")", M = "(?:" + _t + "(?:d|ll|m|re|s|t|ve))?", N = "(?:" + _t + "(?:D|LL|M|RE|S|T|VE))?", P = Ct + "?", F = "[" + ht + "]?", Dt = "(?:" + Tt + "(?:" + [
736
+ wt,
737
+ O,
738
+ k
739
+ ].join("|") + ")" + F + P + ")*", Ot = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", kt = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", At = F + P + Dt, jt = "(?:" + [
740
+ xt,
741
+ O,
742
+ k
743
743
  ].join("|") + ")" + At, Mt = RegExp([
744
- F + "?" + P + "+" + Ct + "(?=" + [
745
- dt,
746
- F,
744
+ A + "?" + St + "+" + M + "(?=" + [
745
+ vt,
746
+ A,
747
747
  "$"
748
748
  ].join("|") + ")",
749
- St + "+" + wt + "(?=" + [
750
- dt,
751
- F + xt,
749
+ Et + "+" + N + "(?=" + [
750
+ vt,
751
+ A + j,
752
752
  "$"
753
753
  ].join("|") + ")",
754
- F + "?" + xt + "+" + Ct,
755
- F + "+" + wt,
754
+ A + "?" + j + "+" + M,
755
+ A + "+" + N,
756
756
  kt,
757
757
  Ot,
758
- pt,
758
+ bt,
759
759
  jt
760
760
  ].join("|"), "g");
761
761
  function Nt(e) {
762
762
  return e.match(Mt) || [];
763
763
  }
764
764
  //#endregion
765
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/words.js
765
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/words.js
766
766
  function Pt(e, t, n) {
767
- return e = u(e), t = n ? void 0 : t, t === void 0 ? it(e) ? Nt(e) : nt(e) : e.match(t) || [];
767
+ return e = u(e), t = n ? void 0 : t, t === void 0 ? at(e) ? Nt(e) : rt(e) : e.match(t) || [];
768
768
  }
769
769
  //#endregion
770
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_createCompounder.js
770
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createCompounder.js
771
771
  var Ft = RegExp("['’]", "g");
772
772
  function It(e) {
773
773
  return function(t) {
774
- return Ye(Pt(et(t).replace(Ft, "")), e, "");
774
+ return Xe(Pt(tt(t).replace(Ft, "")), e, "");
775
775
  };
776
776
  }
777
777
  //#endregion
778
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/camelCase.js
778
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/camelCase.js
779
779
  var Lt = It(function(e, t, n) {
780
- return t = t.toLowerCase(), e + (n ? Je(t) : t);
780
+ return t = t.toLowerCase(), e + (n ? Ye(t) : t);
781
781
  }), I = l(o, "Set"), Rt = "__lodash_hash_undefined__";
782
782
  function zt(e) {
783
783
  return this.__data__.set(e, Rt), this;
784
784
  }
785
785
  //#endregion
786
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_setCacheHas.js
786
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js
787
787
  function Bt(e) {
788
788
  return this.__data__.has(e);
789
789
  }
790
790
  //#endregion
791
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_SetCache.js
791
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js
792
792
  function L(e) {
793
793
  var t = -1, n = e == null ? 0 : e.length;
794
794
  for (this.__data__ = new s(); ++t < n;) this.add(e[t]);
795
795
  }
796
796
  L.prototype.add = L.prototype.push = zt, L.prototype.has = Bt;
797
797
  //#endregion
798
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cacheHas.js
798
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js
799
799
  function R(e, t) {
800
800
  return e.has(t);
801
801
  }
802
802
  //#endregion
803
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_setToArray.js
804
- function Vt(e) {
803
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js
804
+ function z(e) {
805
805
  var t = -1, n = Array(e.size);
806
806
  return e.forEach(function(e) {
807
807
  n[++t] = e;
808
808
  }), n;
809
809
  }
810
810
  //#endregion
811
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArrayLikeObject.js
812
- function Ht(e) {
813
- return i(e) && Ee(e);
811
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js
812
+ function Vt(e) {
813
+ return i(e) && Ce(e);
814
814
  }
815
815
  //#endregion
816
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayIncludesWith.js
817
- function Ut(e, t, n) {
816
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js
817
+ function Ht(e, t, n) {
818
818
  for (var r = -1, i = e == null ? 0 : e.length; ++r < i;) if (n(t, e[r])) return !0;
819
819
  return !1;
820
820
  }
821
821
  //#endregion
822
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIntersection.js
823
- var Wt = Math.min;
824
- function Gt(e, t, n) {
825
- for (var r = n ? Ut : be, i = e[0].length, a = e.length, o = a, s = Array(a), l = Infinity, u = []; o--;) {
822
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIntersection.js
823
+ var Ut = Math.min;
824
+ function Wt(e, t, n) {
825
+ for (var r = n ? Ht : _e, i = e[0].length, a = e.length, o = a, s = Array(a), l = Infinity, u = []; o--;) {
826
826
  var d = e[o];
827
- o && t && (d = c(d, De(t))), l = Wt(d.length, l), s[o] = !n && (t || i >= 120 && d.length >= 120) ? new L(o && d) : void 0;
827
+ o && t && (d = c(d, we(t))), l = Ut(d.length, l), s[o] = !n && (t || i >= 120 && d.length >= 120) ? new L(o && d) : void 0;
828
828
  }
829
829
  d = e[0];
830
830
  var f = -1, p = s[0];
@@ -841,24 +841,24 @@ function Gt(e, t, n) {
841
841
  return u;
842
842
  }
843
843
  //#endregion
844
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_castArrayLikeObject.js
845
- function Kt(e) {
846
- return Ht(e) ? e : [];
844
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castArrayLikeObject.js
845
+ function Gt(e) {
846
+ return Vt(e) ? e : [];
847
847
  }
848
848
  //#endregion
849
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/intersection.js
850
- var qt = Ce(function(e) {
851
- var t = c(e, Kt);
852
- return t.length && t[0] === e[0] ? Gt(t) : [];
853
- }), Jt = I && 1 / Vt(new I([, -0]))[1] == Infinity ? function(e) {
849
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/intersection.js
850
+ var Kt = be(function(e) {
851
+ var t = c(e, Gt);
852
+ return t.length && t[0] === e[0] ? Wt(t) : [];
853
+ }), qt = I && 1 / z(new I([, -0]))[1] == Infinity ? function(e) {
854
854
  return new I(e);
855
- } : ce, Yt = 200;
856
- function Xt(e, t, n) {
857
- var r = -1, i = be, a = e.length, o = !0, s = [], c = s;
858
- if (n) o = !1, i = Ut;
859
- else if (a >= Yt) {
860
- var l = t ? null : Jt(e);
861
- if (l) return Vt(l);
855
+ } : ae, Jt = 200;
856
+ function Yt(e, t, n) {
857
+ var r = -1, i = _e, a = e.length, o = !0, s = [], c = s;
858
+ if (n) o = !1, i = Ht;
859
+ else if (a >= Jt) {
860
+ var l = t ? null : qt(e);
861
+ if (l) return z(l);
862
862
  o = !1, i = R, c = new L();
863
863
  } else c = t ? [] : s;
864
864
  outer: for (; ++r < a;) {
@@ -871,17 +871,17 @@ function Xt(e, t, n) {
871
871
  return s;
872
872
  }
873
873
  //#endregion
874
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/uniq.js
875
- function Zt(e) {
876
- return e && e.length ? Xt(e) : [];
874
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/uniq.js
875
+ function Xt(e) {
876
+ return e && e.length ? Yt(e) : [];
877
877
  }
878
878
  //#endregion
879
879
  //#region src/helpers/resource/functions.ts
880
- var z = /* @__PURE__ */ e(te(), 1), Qt = { complex: [
880
+ var Zt = { complex: [
881
881
  "tar.bz2",
882
882
  "tar.gz",
883
883
  "tar.xz"
884
- ] }, $t = (e) => Object.hasOwn(e, "ddate"), en = (e) => Object.hasOwn(e, "highlights"), B = (e) => e.replace(/[^A-Za-z0-9\-_]/g, ""), tn = (e, t) => !e || typeof e != "string" ? "" : e.indexOf("!") >= 0 ? e.split("!")[t] : "", V = (e) => tn(e, 0), H = (e) => tn(e, 1), nn = (e) => {
884
+ ] }, Qt = (e) => Object.hasOwn(e, "ddate"), $t = (e) => Object.hasOwn(e, "highlights"), B = (e) => e.replace(/[^A-Za-z0-9\-_]/g, ""), en = (e, t) => !e || typeof e != "string" ? "" : e.indexOf("!") >= 0 ? e.split("!")[t] : "", V = (e) => en(e, 0), H = (e) => en(e, 1), tn = (e) => {
885
885
  let t = e.extension || "", n = e.name || "";
886
886
  if (!t.length) return n;
887
887
  let r = n.lastIndexOf(`.${t}`);
@@ -890,28 +890,28 @@ var z = /* @__PURE__ */ e(te(), 1), Qt = { complex: [
890
890
  let t = e.name.split(".");
891
891
  if (t.length > 2) for (let e = 0; e < t.length; e++) {
892
892
  let n = t.slice(e, t.length).join(".");
893
- if (Qt.complex.includes(n)) return n;
893
+ if (Zt.complex.includes(n)) return n;
894
894
  }
895
895
  return t.length < 2 ? "" : t[t.length - 1];
896
- }, rn = (e) => (0, z.basename)((0, z.dirname)(e.path)) || null, an = (e) => typeof e.isShareRoot == "function" && e.isShareRoot(), W = (e) => {
896
+ }, nn = (e) => (0, v.basename)((0, v.dirname)(e.path)) || null, rn = (e) => typeof e.isShareRoot == "function" && e.isShareRoot(), W = (e) => {
897
897
  if (!e) return e;
898
898
  let t = {};
899
899
  return Object.keys(e).forEach((n) => {
900
900
  t[Lt(n)] = e[n];
901
901
  }), t;
902
902
  };
903
- function on(e, t = []) {
904
- let n = e.props[x.Name]?.toString() || (0, z.basename)(e.filename), r = e.props[x.FileId], i = e.type === "directory", a;
903
+ function an(e, t = []) {
904
+ let n = e.props[C.Name]?.toString() || (0, v.basename)(e.filename), r = e.props[C.FileId], i = e.type === "directory", a;
905
905
  a = e.filename.startsWith("/files") || e.filename.startsWith("/space") ? e.filename.split("/").slice(3).join("/") : e.filename, a.startsWith("/") || (a = `/${a}`);
906
906
  let o = U({
907
907
  ...e,
908
908
  id: r,
909
909
  name: n,
910
910
  path: a
911
- }), s = e.props[x.LockDiscovery], c, l, u;
912
- s && (c = s[x.ActiveLock], l = c[x.LockOwner], u = c[x.LockTime]);
911
+ }), s = e.props[C.LockDiscovery], c, l, u;
912
+ s && (c = s[C.ActiveLock], l = c[C.LockOwner], u = c[C.LockTime]);
913
913
  let d = [];
914
- e.props[x.ShareTypes] && (d = e.props[x.ShareTypes]["share-type"], Array.isArray(d) || (d = [d]));
914
+ e.props[C.ShareTypes] && (d = e.props[C.ShareTypes]["share-type"], Array.isArray(d) || (d = [d]));
915
915
  let f = {};
916
916
  for (let n of t || []) {
917
917
  let t = n.split(":").pop();
@@ -921,8 +921,8 @@ function on(e, t = []) {
921
921
  id: r,
922
922
  fileId: r,
923
923
  storageId: V(r),
924
- parentFolderId: e.props[x.FileParent],
925
- mimeType: e.props[x.MimeType],
924
+ parentFolderId: e.props[C.FileParent],
925
+ mimeType: e.props[C.MimeType],
926
926
  name: n,
927
927
  extension: o,
928
928
  path: a,
@@ -933,56 +933,56 @@ function on(e, t = []) {
933
933
  lockOwner: l,
934
934
  lockTime: u,
935
935
  processing: e.processing || !1,
936
- mdate: e.props[x.LastModifiedDate],
937
- size: i ? e.props[x.ContentSize]?.toString() || "0" : e.props[x.ContentLength]?.toString() || "0",
938
- permissions: e.props[x.Permissions] || "",
939
- starred: e.props[x.IsFavorite] === 1,
940
- etag: e.props[x.ETag],
936
+ mdate: e.props[C.LastModifiedDate],
937
+ size: i ? e.props[C.ContentSize]?.toString() || "0" : e.props[C.ContentLength]?.toString() || "0",
938
+ permissions: e.props[C.Permissions] || "",
939
+ starred: e.props[C.IsFavorite] === 1,
940
+ etag: e.props[C.ETag],
941
941
  shareTypes: d,
942
- privateLink: e.props[x.PrivateLink],
943
- downloadURL: e.props[x.DownloadURL],
944
- remoteItemId: e.props[x.RemoteItemId],
945
- remoteItemPath: e.props[x.ShareRoot],
942
+ privateLink: e.props[C.PrivateLink],
943
+ downloadURL: e.props[C.DownloadURL],
944
+ remoteItemId: e.props[C.RemoteItemId],
945
+ remoteItemPath: e.props[C.ShareRoot],
946
946
  owner: {
947
- id: e.props[x.OwnerId],
948
- displayName: e.props[x.OwnerDisplayName]
947
+ id: e.props[C.OwnerId],
948
+ displayName: e.props[C.OwnerDisplayName]
949
949
  },
950
- tags: (e.props[x.Tags] || "").toString().split(",").filter(Boolean),
951
- audio: W(e.props[x.Audio]),
952
- location: W(e.props[x.Location]),
953
- image: W(e.props[x.Image]),
954
- photo: W(e.props[x.Photo]),
950
+ tags: (e.props[C.Tags] || "").toString().split(",").filter(Boolean),
951
+ audio: W(e.props[C.Audio]),
952
+ location: W(e.props[C.Location]),
953
+ image: W(e.props[C.Image]),
954
+ photo: W(e.props[C.Photo]),
955
955
  extraProps: f,
956
- hasPreview: () => e.props[x.HasPreview] === 1,
956
+ hasPreview: () => e.props[C.HasPreview] === 1,
957
957
  canUpload: function() {
958
- return this.permissions.indexOf(_.FolderCreateable) >= 0;
958
+ return this.permissions.indexOf(y.FolderCreateable) >= 0;
959
959
  },
960
960
  canDownload: function() {
961
- return this.permissions.indexOf(_.SecureView) === -1;
961
+ return this.permissions.indexOf(y.SecureView) === -1;
962
962
  },
963
963
  canBeDeleted: function() {
964
- return this.permissions.indexOf(_.Deletable) >= 0;
964
+ return this.permissions.indexOf(y.Deletable) >= 0;
965
965
  },
966
966
  canRename: function() {
967
- return this.permissions.indexOf(_.Renameable) >= 0;
967
+ return this.permissions.indexOf(y.Renameable) >= 0;
968
968
  },
969
969
  canShare: function({ ability: e }) {
970
- return e.can("create-all", "Share") && this.permissions.indexOf(_.Shareable) >= 0;
970
+ return e.can("create-all", "Share") && this.permissions.indexOf(y.Shareable) >= 0;
971
971
  },
972
972
  canCreate: function() {
973
- return this.permissions.indexOf(_.FolderCreateable) >= 0;
973
+ return this.permissions.indexOf(y.FolderCreateable) >= 0;
974
974
  },
975
975
  canEditTags: function() {
976
- return this.permissions.indexOf(_.Updateable) >= 0 || this.permissions.indexOf(_.FileUpdateable) >= 0 || this.permissions.indexOf(_.FolderCreateable) >= 0;
976
+ return this.permissions.indexOf(y.Updateable) >= 0 || this.permissions.indexOf(y.FileUpdateable) >= 0 || this.permissions.indexOf(y.FolderCreateable) >= 0;
977
977
  },
978
978
  isMounted: function() {
979
- return this.permissions.indexOf(_.Mounted) >= 0;
979
+ return this.permissions.indexOf(y.Mounted) >= 0;
980
980
  },
981
981
  isReceivedShare: function() {
982
- return this.permissions.indexOf(_.Shared) >= 0;
982
+ return this.permissions.indexOf(y.Shared) >= 0;
983
983
  },
984
984
  isShareRoot() {
985
- return e.props[x.ShareRoot] ? e.filename.split("/").length === 3 : !1;
985
+ return e.props[C.ShareRoot] ? e.filename.split("/").length === 3 : !1;
986
986
  },
987
987
  getDomSelector: () => B(r)
988
988
  };
@@ -990,20 +990,20 @@ function on(e, t = []) {
990
990
  return H(this.id);
991
991
  } }), p;
992
992
  }
993
- function sn(e) {
994
- let t = e.type === "directory", n = e.props[x.TrashbinOriginalFilename]?.toString(), r = U({
993
+ function on(e) {
994
+ let t = e.type === "directory", n = e.props[C.TrashbinOriginalFilename]?.toString(), r = U({
995
995
  name: n,
996
996
  type: e.type
997
- }), i = z.default.basename(e.filename);
997
+ }), i = v.default.basename(e.filename);
998
998
  return {
999
999
  type: t ? "folder" : e.type,
1000
1000
  isFolder: t,
1001
- ddate: e.props[x.TrashbinDeletedDate],
1002
- name: z.default.basename(n),
1001
+ ddate: e.props[C.TrashbinDeletedDate],
1002
+ name: v.default.basename(n),
1003
1003
  extension: r,
1004
- path: d(e.props[x.TrashbinOriginalLocation], { leadingSlash: !0 }),
1004
+ path: d(e.props[C.TrashbinOriginalLocation], { leadingSlash: !0 }),
1005
1005
  id: i,
1006
- parentFolderId: e.props[x.FileParent],
1006
+ parentFolderId: e.props[C.FileParent],
1007
1007
  webDavPath: "",
1008
1008
  canUpload: () => !1,
1009
1009
  canDownload: () => !1,
@@ -1023,7 +1023,7 @@ function sn(e) {
1023
1023
  }
1024
1024
  //#endregion
1025
1025
  //#region src/helpers/share/constants.ts
1026
- var cn = class {
1026
+ var sn = class {
1027
1027
  static Read = 1;
1028
1028
  static Update = 2;
1029
1029
  static Create = 4;
@@ -1102,18 +1102,18 @@ var cn = class {
1102
1102
  return e.map((e) => e.value);
1103
1103
  }
1104
1104
  static containsAnyValue(e, t) {
1105
- return qt(this.getValues(e), t).length > 0;
1105
+ return Kt(this.getValues(e), t).length > 0;
1106
1106
  }
1107
- }, ln = "a0ca6a90-a365-4782-871e-d44447bbc668", un = "89f37a33-858b-45fa-8890-a1f2b27d90e1", dn = (e) => e?.type === "space", Y = (e) => e?.driveType === "personal", fn = (e) => e?.driveType === "project", pn = (e) => e?.driveType === "share", mn = (e) => e?.driveType === "mountpoint", hn = (e) => e?.driveType === "public";
1107
+ }, cn = "a0ca6a90-a365-4782-871e-d44447bbc668", ln = "89f37a33-858b-45fa-8890-a1f2b27d90e1", un = (e) => e?.type === "space", Y = (e) => e?.driveType === "personal", dn = (e) => e?.driveType === "project", fn = (e) => e?.driveType === "share", pn = (e) => e?.driveType === "mountpoint", mn = (e) => e?.driveType === "public";
1108
1108
  //#endregion
1109
1109
  //#region src/helpers/space/functions.ts
1110
1110
  function X(e, t) {
1111
1111
  return d("spaces", e, t, { leadingSlash: !0 });
1112
1112
  }
1113
- function gn(e, t = "") {
1113
+ function hn(e, t = "") {
1114
1114
  return d("spaces", "trash-bin", e, t, { leadingSlash: !0 });
1115
1115
  }
1116
- function _n(e, t) {
1116
+ function gn(e, t) {
1117
1117
  let n = e[{
1118
1118
  image: "spaceImageData",
1119
1119
  readme: "spaceReadmeData"
@@ -1122,18 +1122,18 @@ function _n(e, t) {
1122
1122
  let r = decodeURI(n.webDavUrl).split("/"), i = r.find((t) => t.startsWith(e.id));
1123
1123
  return i ? r.slice(r.indexOf(i) + 1).join("/") : "";
1124
1124
  }
1125
- function vn(e) {
1125
+ function _n(e) {
1126
1126
  return e.permissions.includes(G.deletePermissions);
1127
1127
  }
1128
- var yn = (e, t) => e.root.permissions?.filter((e) => {
1128
+ var vn = (e, t) => e.root.permissions?.filter((e) => {
1129
1129
  let n = [];
1130
1130
  e["@libre.graph.permissions.actions"] && (n = e["@libre.graph.permissions.actions"]);
1131
1131
  let r = t[e.roles?.[0]];
1132
1132
  return r && !n.length && (n = r.rolePermissions.find(({ condition: e }) => e === "exists @Resource.Root")?.allowedResourceActions || []), n.includes(G.deletePermissions);
1133
1133
  });
1134
- function bn(e) {
1135
- let t = e.publicLinkPassword, n = e.props?.[x.FileId], r = e.props?.[x.PublicLinkItemType], i = e.props?.[x.PublicLinkPermission], a = e.props?.[x.PublicLinkExpiration], o = e.props?.[x.PublicLinkShareDate], s = e.props?.[x.PublicLinkShareOwner], c = e.publicLinkType, l, u;
1136
- return c === "ocm" ? (l = `ocm/${e.id}`, u = ee(e.id)) : (l = `public/${e.id}`, u = g(e.id)), Object.assign(Z({
1134
+ function yn(e) {
1135
+ let t = e.publicLinkPassword, n = e.props?.[C.FileId], r = e.props?.[C.PublicLinkItemType], i = e.props?.[C.PublicLinkPermission], a = e.props?.[C.PublicLinkExpiration], o = e.props?.[C.PublicLinkShareDate], s = e.props?.[C.PublicLinkShareOwner], c = e.publicLinkType, l, u;
1136
+ return c === "ocm" ? (l = `ocm/${e.id}`, u = _(e.id)) : (l = `public/${e.id}`, u = g(e.id)), Object.assign(Z({
1137
1137
  ...e,
1138
1138
  driveType: "public",
1139
1139
  driveAlias: l,
@@ -1149,7 +1149,7 @@ function bn(e) {
1149
1149
  publicLinkType: c
1150
1150
  });
1151
1151
  }
1152
- function xn({ driveAliasPrefix: e, id: t, shareName: n, serverUrl: r }) {
1152
+ function bn({ driveAliasPrefix: e, id: t, shareName: n, serverUrl: r }) {
1153
1153
  let i = Z({
1154
1154
  id: t,
1155
1155
  driveAlias: `${e}/${n}`,
@@ -1164,7 +1164,7 @@ function xn({ driveAliasPrefix: e, id: t, shareName: n, serverUrl: r }) {
1164
1164
  function Z(e) {
1165
1165
  let t, n;
1166
1166
  e.special && (t = e.special.find((e) => e.specialFolder.name === "image"), n = e.special.find((e) => e.specialFolder.name === "readme"), t && (t.webDavUrl = decodeURI(t.webDavUrl)), n && (n.webDavUrl = decodeURI(n.webDavUrl)));
1167
- let r = e.root?.deleted?.state === "trashed", i = d(e.webDavPath || X(e.id), { leadingSlash: !0 }), a = d(e.serverUrl, "remote.php/dav", i), o = d(e.webDavTrashPath || gn(e.id), { leadingSlash: !0 }), s = d(e.serverUrl, "remote.php/dav", o), c = {
1167
+ let r = e.root?.deleted?.state === "trashed", i = d(e.webDavPath || X(e.id), { leadingSlash: !0 }), a = d(e.serverUrl, "remote.php/dav", i), o = d(e.webDavTrashPath || hn(e.id), { leadingSlash: !0 }), s = d(e.serverUrl, "remote.php/dav", o), c = {
1168
1168
  id: e.id,
1169
1169
  fileId: e.id,
1170
1170
  storageId: e.id,
@@ -1272,7 +1272,7 @@ function Z(e) {
1272
1272
  return H(this.id);
1273
1273
  } }), c;
1274
1274
  }
1275
- function Sn(e) {
1275
+ function xn(e) {
1276
1276
  return {
1277
1277
  id: e.spaceImageData.id,
1278
1278
  name: e.spaceImageData.name,
@@ -1287,10 +1287,10 @@ function Sn(e) {
1287
1287
  }
1288
1288
  //#endregion
1289
1289
  //#region src/helpers/share/functions.ts
1290
- var Q = (e) => Object.hasOwn(e, "sharedWith"), Cn = (e) => Q(e) && e.outgoing, wn = (e) => Q(e) && !e.outgoing, Tn = (e) => Object.hasOwn(e, "role"), En = (e) => !Object.hasOwn(e, "role"), Dn = ({ driveItem: e, graphRoles: t }) => e.remoteItem?.permissions.reduce((e, n) => (n.roles?.forEach((n) => {
1290
+ var Q = (e) => Object.hasOwn(e, "sharedWith"), Sn = (e) => Q(e) && e.outgoing, Cn = (e) => Q(e) && !e.outgoing, wn = (e) => Object.hasOwn(e, "role"), Tn = (e) => !Object.hasOwn(e, "role"), En = ({ driveItem: e, graphRoles: t }) => e.remoteItem?.permissions.reduce((e, n) => (n.roles?.forEach((n) => {
1291
1291
  let r = t[n];
1292
1292
  r && !e.some(({ id: e }) => e === r.id) && e.push(r);
1293
- }), e), []), On = ({ driveItem: e, shareRoles: t }) => {
1293
+ }), e), []), Dn = ({ driveItem: e, shareRoles: t }) => {
1294
1294
  if (!t.length) {
1295
1295
  let t = e.remoteItem?.permissions.reduce((e, t) => {
1296
1296
  let n = t["@libre.graph.permissions.actions"];
@@ -1303,7 +1303,7 @@ var Q = (e) => Object.hasOwn(e, "sharedWith"), Cn = (e) => Q(e) && e.outgoing, w
1303
1303
  }), e), []);
1304
1304
  return [...new Set(n)];
1305
1305
  };
1306
- function kn({ driveItem: e, graphRoles: t, serverUrl: n }) {
1306
+ function On({ driveItem: e, graphRoles: t, serverUrl: n }) {
1307
1307
  let r = e.name || e.remoteItem.name, i = V(e.remoteItem.id), a = e.remoteItem.permissions.map((e) => {
1308
1308
  let { grantedToV2: t } = e;
1309
1309
  return {
@@ -1313,12 +1313,12 @@ function kn({ driveItem: e, graphRoles: t, serverUrl: n }) {
1313
1313
  }), o = e.remoteItem.permissions.reduce((e, t) => {
1314
1314
  let n = t.invitation.invitedBy.user;
1315
1315
  return e.some(({ id: e }) => e === n.id) || e.push(n), e;
1316
- }, []), s = Zt(e.remoteItem.permissions.map($));
1316
+ }, []), s = Xt(e.remoteItem.permissions.map($));
1317
1317
  o.some((e) => e["@libre.graph.userType"] === "Federated") && (s = [J.remote.value]);
1318
- let c = Dn({
1318
+ let c = En({
1319
1319
  driveItem: e,
1320
1320
  graphRoles: t
1321
- }), l = On({
1321
+ }), l = Dn({
1322
1322
  driveItem: e,
1323
1323
  shareRoles: c
1324
1324
  }), u = {
@@ -1363,7 +1363,7 @@ function kn({ driveItem: e, graphRoles: t, serverUrl: n }) {
1363
1363
  };
1364
1364
  return u.extension = U(u), u;
1365
1365
  }
1366
- function An({ driveItem: e, user: t, serverUrl: n }) {
1366
+ function kn({ driveItem: e, user: t, serverUrl: n }) {
1367
1367
  let r = V(e.id), i = d(e.parentReference.path, e.name), a = {
1368
1368
  id: e.id,
1369
1369
  driveId: e.parentReference?.driveId,
@@ -1417,7 +1417,7 @@ function An({ driveItem: e, user: t, serverUrl: n }) {
1417
1417
  };
1418
1418
  return a.extension = U(a), a;
1419
1419
  }
1420
- function jn({ graphPermission: e, graphRoles: t, resourceId: n, indirect: r = !1 }) {
1420
+ function An({ graphPermission: e, graphRoles: t, resourceId: n, indirect: r = !1 }) {
1421
1421
  let i = t[e.roles?.[0]], a = e.invitation?.invitedBy?.user;
1422
1422
  return {
1423
1423
  id: e.id,
@@ -1435,7 +1435,7 @@ function jn({ graphPermission: e, graphRoles: t, resourceId: n, indirect: r = !1
1435
1435
  expirationDateTime: e.expirationDateTime
1436
1436
  };
1437
1437
  }
1438
- function Mn({ graphPermission: e, resourceId: t, indirect: n = !1 }) {
1438
+ function jn({ graphPermission: e, resourceId: t, indirect: n = !1 }) {
1439
1439
  let r = e.invitation?.invitedBy?.user;
1440
1440
  return {
1441
1441
  id: e.id,
@@ -1460,4 +1460,4 @@ function $({ link: e, grantedToV2: t }) {
1460
1460
  return e ? J.link.value : t?.group ? J.group.value : t?.user?.["@libre.graph.userType"] === "Federated" ? J.remote.value : J.user.value;
1461
1461
  }
1462
1462
  //#endregion
1463
- export { f as $, J as A, V as B, mn as C, pn as D, hn as E, B as F, _ as G, an as H, U as I, ee as J, ae as K, nn as L, cn as M, sn as N, dn as O, on as P, p as Q, H as R, ln as S, fn as T, $t as U, en as V, ne as W, h as X, g as Y, m as Z, gn as _, On as a, vn as b, wn as c, Q as d, bn as f, X as g, Sn as h, An as i, G as j, q as k, En as l, Z as m, kn as n, Dn as o, xn as p, x as q, Mn as r, Tn as s, jn as t, Cn as u, _n as v, Y as w, un as x, yn as y, rn as z };
1463
+ export { f as $, J as A, V as B, pn as C, fn as D, mn as E, B as F, y as G, rn as H, U as I, _ as J, re as K, tn as L, sn as M, on as N, un as O, an as P, p as Q, H as R, cn as S, dn as T, Qt as U, $t as V, ee as W, h as X, g as Y, m as Z, hn as _, Dn as a, _n as b, Cn as c, Q as d, yn as f, X as g, xn as h, kn as i, G as j, q as k, Tn as l, Z as m, On as n, En as o, bn as p, C as q, jn as r, wn as s, An as t, Sn as u, gn as v, Y as w, ln as x, vn as y, nn as z };