@pristy/pristy-libvue 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pristy-libvue.mjs +289 -226
- package/dist/pristy-libvue.umd.js +5 -5
- package/package.json +1 -1
package/dist/pristy-libvue.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AlfrescoApi as Lt, ContentApi as Tt, UploadApi as
|
|
2
|
-
import { getCurrentInstance as ot, inject as $t, markRaw as B, ref as it, watch as zt, reactive as qt, effectScope as Ht, isRef as Y, isReactive as
|
|
1
|
+
import { AlfrescoApi as Lt, ContentApi as Tt, UploadApi as Ft, RenditionsApi as Dt, NodesApi as jt, SitesApi as Ut, SearchApi as Bt, PeopleApi as It, FavoritesApi as Vt, TrashcanApi as Mt } from "@alfresco/js-api";
|
|
2
|
+
import { getCurrentInstance as ot, inject as $t, markRaw as B, ref as it, watch as zt, reactive as qt, effectScope as Ht, isRef as Y, isReactive as Fe, toRef as fe, toRaw as Wt, nextTick as Ve, computed as at, onUnmounted as Jt, toRefs as Me } from "vue";
|
|
3
3
|
let de = null;
|
|
4
|
-
function
|
|
4
|
+
function v() {
|
|
5
5
|
return de || (de = new Lt({
|
|
6
6
|
hostEcm: window.config.ALFRESCO_HOST,
|
|
7
7
|
authType: window.config.ALFRESCO_AUTH,
|
|
@@ -10,39 +10,39 @@ function R() {
|
|
|
10
10
|
}
|
|
11
11
|
let pe = null;
|
|
12
12
|
function he() {
|
|
13
|
-
return pe || (pe = new Tt(
|
|
13
|
+
return pe || (pe = new Tt(v())), pe;
|
|
14
14
|
}
|
|
15
15
|
let me = null;
|
|
16
16
|
function Xt() {
|
|
17
|
-
return me || (me = new
|
|
17
|
+
return me || (me = new Ft(v())), me;
|
|
18
18
|
}
|
|
19
19
|
let Ee = null;
|
|
20
20
|
function $e() {
|
|
21
|
-
return Ee || (Ee = new
|
|
21
|
+
return Ee || (Ee = new Dt(v())), Ee;
|
|
22
22
|
}
|
|
23
23
|
let be = null;
|
|
24
|
-
function
|
|
25
|
-
return be || (be = new jt(
|
|
24
|
+
function P() {
|
|
25
|
+
return be || (be = new jt(v())), be;
|
|
26
26
|
}
|
|
27
27
|
let we = null;
|
|
28
28
|
function L() {
|
|
29
|
-
return we || (we = new Ut(
|
|
29
|
+
return we || (we = new Ut(v())), we;
|
|
30
30
|
}
|
|
31
31
|
let ye = null;
|
|
32
32
|
function Gt() {
|
|
33
|
-
return ye || (ye = new Bt(
|
|
33
|
+
return ye || (ye = new Bt(v())), ye;
|
|
34
34
|
}
|
|
35
35
|
let ge = null;
|
|
36
|
-
function
|
|
37
|
-
return ge || (ge = new It(
|
|
36
|
+
function Re() {
|
|
37
|
+
return ge || (ge = new It(v())), ge;
|
|
38
38
|
}
|
|
39
39
|
let Ne = null;
|
|
40
40
|
function Se() {
|
|
41
|
-
return Ne || (Ne = new Vt(
|
|
41
|
+
return Ne || (Ne = new Vt(v())), Ne;
|
|
42
42
|
}
|
|
43
43
|
let Ae = null;
|
|
44
|
-
function
|
|
45
|
-
return Ae || (Ae = new Mt(
|
|
44
|
+
function bn() {
|
|
45
|
+
return Ae || (Ae = new Mt(v())), Ae;
|
|
46
46
|
}
|
|
47
47
|
class ct {
|
|
48
48
|
uploadFileError(t, r) {
|
|
@@ -69,6 +69,12 @@ class ct {
|
|
|
69
69
|
case 422:
|
|
70
70
|
n = "Exception d'int\xE9grit\xE9 du mod\xE8le incluant un nom de fichier contenant des caract\xE8res non valides.";
|
|
71
71
|
break;
|
|
72
|
+
case 502:
|
|
73
|
+
n = "La r\xE9ponse re\xE7ue est non valide.";
|
|
74
|
+
break;
|
|
75
|
+
case 504:
|
|
76
|
+
n = "Le d\xE9lai d'attente de la r\xE9ponse \xE0 \xE9t\xE9 d\xE9pass\xE9.";
|
|
77
|
+
break;
|
|
72
78
|
case 507:
|
|
73
79
|
n = "Le contenu d\xE9passe la limite de quota de stockage globale configur\xE9e pour le r\xE9seau ou le syst\xE8me.";
|
|
74
80
|
break;
|
|
@@ -271,10 +277,67 @@ function er(e) {
|
|
|
271
277
|
}
|
|
272
278
|
throw new Error(t);
|
|
273
279
|
}
|
|
274
|
-
function tr() {
|
|
280
|
+
function tr(e) {
|
|
281
|
+
let t;
|
|
282
|
+
switch (e.status) {
|
|
283
|
+
case 404:
|
|
284
|
+
t = "Impossible de trouver la liste des favoris.";
|
|
285
|
+
break;
|
|
286
|
+
case 502:
|
|
287
|
+
t = "La r\xE9ponse re\xE7ue est non valide.";
|
|
288
|
+
break;
|
|
289
|
+
case 504:
|
|
290
|
+
t = "Le d\xE9lai d'attente de la r\xE9ponse \xE0 \xE9t\xE9 d\xE9pass\xE9.";
|
|
291
|
+
break;
|
|
292
|
+
default:
|
|
293
|
+
t = e.message;
|
|
294
|
+
}
|
|
295
|
+
throw new Error(t);
|
|
296
|
+
}
|
|
297
|
+
function rr(e) {
|
|
298
|
+
let t;
|
|
299
|
+
switch (e.status) {
|
|
300
|
+
case 401:
|
|
301
|
+
t = "L'authentification \xE0 \xE9chou\xE9, veuillez vous reconnecter.";
|
|
302
|
+
break;
|
|
303
|
+
case 404:
|
|
304
|
+
t = "Impossible de trouver l'\xE9l\xE9ment \xE0 ajouter aux favoris.";
|
|
305
|
+
break;
|
|
306
|
+
case 409:
|
|
307
|
+
t = "L'\xE9l\xE9ment est d\xE9j\xE0 favori.";
|
|
308
|
+
break;
|
|
309
|
+
case 502:
|
|
310
|
+
t = "La r\xE9ponse re\xE7ue est non valide.";
|
|
311
|
+
break;
|
|
312
|
+
case 504:
|
|
313
|
+
t = "Le d\xE9lai d'attente de la r\xE9ponse \xE0 \xE9t\xE9 d\xE9pass\xE9.";
|
|
314
|
+
break;
|
|
315
|
+
default:
|
|
316
|
+
t = e.message;
|
|
317
|
+
}
|
|
318
|
+
throw new Error(t);
|
|
319
|
+
}
|
|
320
|
+
function nr(e) {
|
|
321
|
+
let t;
|
|
322
|
+
switch (e.status) {
|
|
323
|
+
case 404:
|
|
324
|
+
t = "Impossible de trouver l'\xE9l\xE9ment \xE0 supprimer des favoris.";
|
|
325
|
+
break;
|
|
326
|
+
case 502:
|
|
327
|
+
t = "La r\xE9ponse re\xE7ue est non valide.";
|
|
328
|
+
break;
|
|
329
|
+
case 504:
|
|
330
|
+
t = "Le d\xE9lai d'attente de la r\xE9ponse \xE0 \xE9t\xE9 d\xE9pass\xE9.";
|
|
331
|
+
break;
|
|
332
|
+
default:
|
|
333
|
+
t = e.message;
|
|
334
|
+
}
|
|
335
|
+
throw new Error(t);
|
|
336
|
+
}
|
|
337
|
+
function sr() {
|
|
275
338
|
return new ct();
|
|
276
339
|
}
|
|
277
|
-
class
|
|
340
|
+
class wn {
|
|
278
341
|
getThumbnailUrl(t) {
|
|
279
342
|
return he().getDocumentThumbnailUrl(t);
|
|
280
343
|
}
|
|
@@ -290,7 +353,7 @@ class mn {
|
|
|
290
353
|
}).then(
|
|
291
354
|
(s) => this.createAllRendition(s.entry.id).then(() => s).catch((i) => i),
|
|
292
355
|
(s) => {
|
|
293
|
-
|
|
356
|
+
sr().uploadFileError(s, n.name);
|
|
294
357
|
}
|
|
295
358
|
);
|
|
296
359
|
}
|
|
@@ -313,7 +376,7 @@ class mn {
|
|
|
313
376
|
function $() {
|
|
314
377
|
return new ct();
|
|
315
378
|
}
|
|
316
|
-
class
|
|
379
|
+
class yn {
|
|
317
380
|
getNode(t) {
|
|
318
381
|
const r = {
|
|
319
382
|
include: [
|
|
@@ -323,10 +386,10 @@ class En {
|
|
|
323
386
|
"permissions"
|
|
324
387
|
]
|
|
325
388
|
};
|
|
326
|
-
return
|
|
389
|
+
return P().getNode(t, r).then((n) => n.entry);
|
|
327
390
|
}
|
|
328
391
|
createNode(t, r) {
|
|
329
|
-
return
|
|
392
|
+
return P().createNode(t, r).then(
|
|
330
393
|
(n) => n,
|
|
331
394
|
(n) => {
|
|
332
395
|
$().createNodeError(n);
|
|
@@ -342,7 +405,7 @@ class En {
|
|
|
342
405
|
"permissions"
|
|
343
406
|
]
|
|
344
407
|
};
|
|
345
|
-
return
|
|
408
|
+
return P().listNodeChildren(t, r).then((n) => {
|
|
346
409
|
let s = n.list.entries.map((o) => o.entry), i = s.filter(
|
|
347
410
|
(o) => o.name === "documentLibrary"
|
|
348
411
|
)[0];
|
|
@@ -353,7 +416,7 @@ class En {
|
|
|
353
416
|
});
|
|
354
417
|
}
|
|
355
418
|
updateNode(t, r) {
|
|
356
|
-
return
|
|
419
|
+
return P().updateNode(t, r).then(
|
|
357
420
|
(n) => n,
|
|
358
421
|
function(n) {
|
|
359
422
|
$().updateNodeError(n);
|
|
@@ -362,7 +425,7 @@ class En {
|
|
|
362
425
|
}
|
|
363
426
|
deleteNode(t, r) {
|
|
364
427
|
const n = {};
|
|
365
|
-
return
|
|
428
|
+
return P().deleteNode(t, n).then(
|
|
366
429
|
(s) => s,
|
|
367
430
|
function(s) {
|
|
368
431
|
$().deleteNodeError(s, r);
|
|
@@ -373,7 +436,7 @@ class En {
|
|
|
373
436
|
const r = {
|
|
374
437
|
include: ["isFavorite", "properties"]
|
|
375
438
|
};
|
|
376
|
-
return
|
|
439
|
+
return P().listParents(t, r).then((n) => {
|
|
377
440
|
let s = n.list.entries.map((o) => o.entry), i = s[0];
|
|
378
441
|
return i && i.name === "documentLibrary" ? this.getParents(i.id).then((o) => ({
|
|
379
442
|
documentLibrary: i,
|
|
@@ -390,10 +453,10 @@ class En {
|
|
|
390
453
|
"permissions"
|
|
391
454
|
]
|
|
392
455
|
};
|
|
393
|
-
return
|
|
456
|
+
return P().listNodeChildren(t, r).then((n) => n.list.entries.map((i) => i.entry).find((i) => i.name === "documentLibrary"));
|
|
394
457
|
}
|
|
395
458
|
updateContentNode(t, r) {
|
|
396
|
-
return
|
|
459
|
+
return P().updateNodeContent(t, r).then(
|
|
397
460
|
(n) => n,
|
|
398
461
|
function(n) {
|
|
399
462
|
$().updateContentNodeError(n);
|
|
@@ -409,7 +472,7 @@ class En {
|
|
|
409
472
|
}, i = {
|
|
410
473
|
include: ["path"]
|
|
411
474
|
};
|
|
412
|
-
return
|
|
475
|
+
return P().copyNode(t, s, i).then(
|
|
413
476
|
(o) => o,
|
|
414
477
|
function(o) {
|
|
415
478
|
$().copyNodeError(o);
|
|
@@ -425,7 +488,7 @@ class En {
|
|
|
425
488
|
}, i = {
|
|
426
489
|
include: ["path"]
|
|
427
490
|
};
|
|
428
|
-
return
|
|
491
|
+
return P().moveNode(t, s, i).then(
|
|
429
492
|
(o) => o,
|
|
430
493
|
function(o) {
|
|
431
494
|
$().moveNodeError(o);
|
|
@@ -433,13 +496,13 @@ class En {
|
|
|
433
496
|
);
|
|
434
497
|
}
|
|
435
498
|
}
|
|
436
|
-
class
|
|
499
|
+
class gn {
|
|
437
500
|
getPublicLink() {
|
|
438
501
|
}
|
|
439
502
|
createPublicLink() {
|
|
440
503
|
}
|
|
441
504
|
}
|
|
442
|
-
class
|
|
505
|
+
class Nn {
|
|
443
506
|
getWorkspaces() {
|
|
444
507
|
const t = {
|
|
445
508
|
skipCount: 0,
|
|
@@ -580,7 +643,7 @@ class wn {
|
|
|
580
643
|
"pm:typeEspace": r
|
|
581
644
|
}
|
|
582
645
|
};
|
|
583
|
-
return
|
|
646
|
+
return P().updateNode(t, n).then((s) => s).catch((s) => {
|
|
584
647
|
let i;
|
|
585
648
|
switch (s.status) {
|
|
586
649
|
case 404:
|
|
@@ -593,7 +656,7 @@ class wn {
|
|
|
593
656
|
});
|
|
594
657
|
}
|
|
595
658
|
async getAllUsers() {
|
|
596
|
-
return
|
|
659
|
+
return Re().listPeople().then((t) => t.list.entries.map((r) => {
|
|
597
660
|
let n = r.entry;
|
|
598
661
|
return n.email = (n == null ? void 0 : n.email) || "", n.firstName = (n == null ? void 0 : n.firstName) || n.email, n.lastName = (n == null ? void 0 : n.lastName) || n.email, {
|
|
599
662
|
firstname: n.firstName,
|
|
@@ -619,7 +682,7 @@ class wn {
|
|
|
619
682
|
});
|
|
620
683
|
}
|
|
621
684
|
}
|
|
622
|
-
var
|
|
685
|
+
var or = !1;
|
|
623
686
|
function se(e, t, r) {
|
|
624
687
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, r), r) : (e[t] = r, r);
|
|
625
688
|
}
|
|
@@ -636,7 +699,7 @@ function Oe(e, t) {
|
|
|
636
699
|
* @license MIT
|
|
637
700
|
*/
|
|
638
701
|
let X;
|
|
639
|
-
const ae = (e) => X = e,
|
|
702
|
+
const ae = (e) => X = e, ir = process.env.NODE_ENV !== "production" ? Symbol("pinia") : Symbol();
|
|
640
703
|
function V(e) {
|
|
641
704
|
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
642
705
|
}
|
|
@@ -651,7 +714,7 @@ function ut(e, t) {
|
|
|
651
714
|
if (!(r in e))
|
|
652
715
|
continue;
|
|
653
716
|
const s = e[r];
|
|
654
|
-
V(s) && V(n) && !Y(n) && !
|
|
717
|
+
V(s) && V(n) && !Y(n) && !Fe(n) ? e[r] = ut(s, n) : e[r] = n;
|
|
655
718
|
}
|
|
656
719
|
return e;
|
|
657
720
|
}
|
|
@@ -670,18 +733,18 @@ function z(e, ...t) {
|
|
|
670
733
|
r(...t);
|
|
671
734
|
});
|
|
672
735
|
}
|
|
673
|
-
function
|
|
736
|
+
function ke(e, t) {
|
|
674
737
|
for (const r in t) {
|
|
675
738
|
if (!t.hasOwnProperty(r))
|
|
676
739
|
continue;
|
|
677
740
|
const n = t[r], s = e[r];
|
|
678
|
-
V(s) && V(n) && e.hasOwnProperty(r) && !Y(n) && !
|
|
741
|
+
V(s) && V(n) && e.hasOwnProperty(r) && !Y(n) && !Fe(n) ? e[r] = ke(s, n) : e[r] = n;
|
|
679
742
|
}
|
|
680
743
|
return e;
|
|
681
744
|
}
|
|
682
|
-
const
|
|
683
|
-
function
|
|
684
|
-
return !V(e) || !e.hasOwnProperty(
|
|
745
|
+
const ar = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : Symbol();
|
|
746
|
+
function cr(e) {
|
|
747
|
+
return !V(e) || !e.hasOwnProperty(ar);
|
|
685
748
|
}
|
|
686
749
|
const { assign: x } = Object;
|
|
687
750
|
function qe(e) {
|
|
@@ -699,14 +762,14 @@ function He(e, t, r, n) {
|
|
|
699
762
|
return o[g].call(h, h);
|
|
700
763
|
})), m), {}));
|
|
701
764
|
}
|
|
702
|
-
return f =
|
|
765
|
+
return f = Pe(e, c, t, r, n, !0), f.$reset = function() {
|
|
703
766
|
const m = s ? s() : {};
|
|
704
767
|
this.$patch((g) => {
|
|
705
768
|
x(g, m);
|
|
706
769
|
});
|
|
707
770
|
}, f;
|
|
708
771
|
}
|
|
709
|
-
function
|
|
772
|
+
function Pe(e, t, r = {}, n, s, i) {
|
|
710
773
|
let o;
|
|
711
774
|
const u = x({ actions: {} }, r);
|
|
712
775
|
if (process.env.NODE_ENV !== "production" && !n._e.active)
|
|
@@ -714,7 +777,7 @@ function ke(e, t, r = {}, n, s, i) {
|
|
|
714
777
|
const f = {
|
|
715
778
|
deep: !0
|
|
716
779
|
};
|
|
717
|
-
process.env.NODE_ENV !== "production" && !
|
|
780
|
+
process.env.NODE_ENV !== "production" && !or && (f.onTrigger = (b) => {
|
|
718
781
|
c ? h = b : c == !1 && !E._hotUpdating && (Array.isArray(h) ? h.push(b) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
719
782
|
});
|
|
720
783
|
let c, d, m = B([]), g = B([]), h;
|
|
@@ -728,7 +791,7 @@ function ke(e, t, r = {}, n, s, i) {
|
|
|
728
791
|
type: Q.patchFunction,
|
|
729
792
|
storeId: e,
|
|
730
793
|
events: h
|
|
731
|
-
}) : (
|
|
794
|
+
}) : (ke(n.state.value[e], b), p = {
|
|
732
795
|
type: Q.patchObject,
|
|
733
796
|
payload: b,
|
|
734
797
|
storeId: e,
|
|
@@ -739,7 +802,7 @@ function ke(e, t, r = {}, n, s, i) {
|
|
|
739
802
|
C === w && (c = !0);
|
|
740
803
|
}), d = !0, z(m, p, n.state.value[e]);
|
|
741
804
|
}
|
|
742
|
-
const
|
|
805
|
+
const D = process.env.NODE_ENV !== "production" ? () => {
|
|
743
806
|
throw new Error(`\u{1F34D}: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
744
807
|
} : lt;
|
|
745
808
|
function M() {
|
|
@@ -748,12 +811,12 @@ function ke(e, t, r = {}, n, s, i) {
|
|
|
748
811
|
function re(b, p) {
|
|
749
812
|
return function() {
|
|
750
813
|
ae(n);
|
|
751
|
-
const w = Array.from(arguments), O = [],
|
|
814
|
+
const w = Array.from(arguments), O = [], k = [];
|
|
752
815
|
function xt(_) {
|
|
753
816
|
O.push(_);
|
|
754
817
|
}
|
|
755
818
|
function Ct(_) {
|
|
756
|
-
|
|
819
|
+
k.push(_);
|
|
757
820
|
}
|
|
758
821
|
z(g, {
|
|
759
822
|
args: w,
|
|
@@ -766,9 +829,9 @@ function ke(e, t, r = {}, n, s, i) {
|
|
|
766
829
|
try {
|
|
767
830
|
W = p.apply(this && this.$id === e ? this : E, w);
|
|
768
831
|
} catch (_) {
|
|
769
|
-
throw z(
|
|
832
|
+
throw z(k, _), _;
|
|
770
833
|
}
|
|
771
|
-
return W instanceof Promise ? W.then((_) => (z(O, _), _)).catch((_) => (z(
|
|
834
|
+
return W instanceof Promise ? W.then((_) => (z(O, _), _)).catch((_) => (z(k, _), Promise.reject(_))) : (z(O, W), W);
|
|
772
835
|
};
|
|
773
836
|
}
|
|
774
837
|
const ne = /* @__PURE__ */ B({
|
|
@@ -776,19 +839,19 @@ function ke(e, t, r = {}, n, s, i) {
|
|
|
776
839
|
getters: {},
|
|
777
840
|
state: [],
|
|
778
841
|
hotState: N
|
|
779
|
-
}),
|
|
842
|
+
}), Pt = {
|
|
780
843
|
_p: n,
|
|
781
844
|
$id: e,
|
|
782
845
|
$onAction: ze.bind(null, g),
|
|
783
846
|
$patch: A,
|
|
784
|
-
$reset:
|
|
847
|
+
$reset: D,
|
|
785
848
|
$subscribe(b, p = {}) {
|
|
786
|
-
const w = ze(m, b, p.detached, () => O()), O = o.run(() => zt(() => n.state.value[e], (
|
|
849
|
+
const w = ze(m, b, p.detached, () => O()), O = o.run(() => zt(() => n.state.value[e], (k) => {
|
|
787
850
|
(p.flush === "sync" ? d : c) && b({
|
|
788
851
|
storeId: e,
|
|
789
852
|
type: Q.direct,
|
|
790
853
|
events: h
|
|
791
|
-
},
|
|
854
|
+
}, k);
|
|
792
855
|
}, x({}, f, p)));
|
|
793
856
|
return w;
|
|
794
857
|
},
|
|
@@ -798,14 +861,14 @@ function ke(e, t, r = {}, n, s, i) {
|
|
|
798
861
|
_customProperties: B(/* @__PURE__ */ new Set()),
|
|
799
862
|
_hmrPayload: ne
|
|
800
863
|
} : {},
|
|
801
|
-
|
|
864
|
+
Pt
|
|
802
865
|
));
|
|
803
866
|
n._s.set(e, E);
|
|
804
867
|
const j = n._e.run(() => (o = Ht(), o.run(() => t())));
|
|
805
868
|
for (const b in j) {
|
|
806
869
|
const p = j[b];
|
|
807
|
-
if (Y(p) && !qe(p) ||
|
|
808
|
-
process.env.NODE_ENV !== "production" && s ? se(N.value, b, fe(j, b)) : i || (l &&
|
|
870
|
+
if (Y(p) && !qe(p) || Fe(p))
|
|
871
|
+
process.env.NODE_ENV !== "production" && s ? se(N.value, b, fe(j, b)) : i || (l && cr(p) && (Y(p) ? p.value = l[b] : ke(p, l[b])), n.state.value[e][b] = p), process.env.NODE_ENV !== "production" && ne.state.push(b);
|
|
809
872
|
else if (typeof p == "function") {
|
|
810
873
|
const w = process.env.NODE_ENV !== "production" && s ? p : re(b, p);
|
|
811
874
|
j[b] = w, process.env.NODE_ENV !== "production" && (ne.actions[b] = p), u.actions[b] = p;
|
|
@@ -825,8 +888,8 @@ function ke(e, t, r = {}, n, s, i) {
|
|
|
825
888
|
E._hotUpdate = B((p) => {
|
|
826
889
|
E._hotUpdating = !0, p._hmrPayload.state.forEach((w) => {
|
|
827
890
|
if (w in E.$state) {
|
|
828
|
-
const O = p.$state[w],
|
|
829
|
-
typeof O == "object" && V(O) && V(
|
|
891
|
+
const O = p.$state[w], k = E.$state[w];
|
|
892
|
+
typeof O == "object" && V(O) && V(k) ? ut(O, k) : p.$state[w] = k;
|
|
830
893
|
}
|
|
831
894
|
se(E, w, fe(p.$state, w));
|
|
832
895
|
}), Object.keys(E.$state).forEach((w) => {
|
|
@@ -839,8 +902,8 @@ function ke(e, t, r = {}, n, s, i) {
|
|
|
839
902
|
se(E, w, re(w, O));
|
|
840
903
|
}
|
|
841
904
|
for (const w in p._hmrPayload.getters) {
|
|
842
|
-
const O = p._hmrPayload.getters[w],
|
|
843
|
-
se(E, w,
|
|
905
|
+
const O = p._hmrPayload.getters[w], k = i ? at(() => (ae(n), O.call(E, E))) : O;
|
|
906
|
+
se(E, w, k);
|
|
844
907
|
}
|
|
845
908
|
Object.keys(E._hmrPayload.getters).forEach((w) => {
|
|
846
909
|
w in p._hmrPayload.getters || Oe(E, w);
|
|
@@ -880,21 +943,21 @@ function ke(e, t, r = {}, n, s, i) {
|
|
|
880
943
|
state: () => new MyClass()
|
|
881
944
|
Found in store "${E.$id}".`), l && i && r.hydrate && r.hydrate(E.$state, l), c = !0, d = !0, E;
|
|
882
945
|
}
|
|
883
|
-
function
|
|
946
|
+
function ur(e, t, r) {
|
|
884
947
|
let n, s;
|
|
885
948
|
const i = typeof t == "function";
|
|
886
949
|
typeof e == "string" ? (n = e, s = i ? r : t) : (s = e, n = e.id);
|
|
887
950
|
function o(u, f) {
|
|
888
951
|
const c = ot();
|
|
889
|
-
if (u = (process.env.NODE_ENV === "test" && X && X._testing ? null : u) || c && $t(
|
|
952
|
+
if (u = (process.env.NODE_ENV === "test" && X && X._testing ? null : u) || c && $t(ir), u && ae(u), process.env.NODE_ENV !== "production" && !X)
|
|
890
953
|
throw new Error(`[\u{1F34D}]: getActivePinia was called with no active Pinia. Did you forget to install pinia?
|
|
891
954
|
const pinia = createPinia()
|
|
892
955
|
app.use(pinia)
|
|
893
956
|
This will fail in production.`);
|
|
894
|
-
u = X, u._s.has(n) || (i ?
|
|
957
|
+
u = X, u._s.has(n) || (i ? Pe(n, t, s, u) : He(n, s, u), process.env.NODE_ENV !== "production" && (o._pinia = u));
|
|
895
958
|
const d = u._s.get(n);
|
|
896
959
|
if (process.env.NODE_ENV !== "production" && f) {
|
|
897
|
-
const m = "__hot:" + n, g = i ?
|
|
960
|
+
const m = "__hot:" + n, g = i ? Pe(m, t, s, u, !0) : He(m, x({}, s), u, !0);
|
|
898
961
|
f._hotUpdate(g), delete u.state.value[m], u._s.delete(m);
|
|
899
962
|
}
|
|
900
963
|
if (process.env.NODE_ENV !== "production" && G && c && c.proxy && !f) {
|
|
@@ -905,7 +968,7 @@ This will fail in production.`);
|
|
|
905
968
|
}
|
|
906
969
|
return o.$id = n, o;
|
|
907
970
|
}
|
|
908
|
-
const We =
|
|
971
|
+
const We = ur({
|
|
909
972
|
id: "user",
|
|
910
973
|
state: () => ({
|
|
911
974
|
displayName: "",
|
|
@@ -930,10 +993,10 @@ const We = ir({
|
|
|
930
993
|
},
|
|
931
994
|
isLoggedIn() {
|
|
932
995
|
let e;
|
|
933
|
-
return this.apiAlfresco ? e = this.apiAlfresco : e =
|
|
996
|
+
return this.apiAlfresco ? e = this.apiAlfresco : e = v(), Re().getPerson("-me-").then((t) => (this.$patch({
|
|
934
997
|
person: t.entry,
|
|
935
998
|
apiAlfresco: e
|
|
936
|
-
}), !0)).catch((t) =>
|
|
999
|
+
}), !0)).catch((t) => lr(t));
|
|
937
1000
|
},
|
|
938
1001
|
async login(e, t) {
|
|
939
1002
|
if (!e || !t)
|
|
@@ -947,9 +1010,9 @@ const We = ir({
|
|
|
947
1010
|
});
|
|
948
1011
|
},
|
|
949
1012
|
apiLogin(e, t) {
|
|
950
|
-
return
|
|
951
|
-
apiAlfresco:
|
|
952
|
-
}),
|
|
1013
|
+
return v().login(e, t).then(() => (this.$patch({
|
|
1014
|
+
apiAlfresco: v()
|
|
1015
|
+
}), Re().getPerson("-me-"))).catch((r) => Promise.reject(r));
|
|
953
1016
|
},
|
|
954
1017
|
async publiclogoff() {
|
|
955
1018
|
const e = localStorage.getItem("ACS_USERNAME");
|
|
@@ -975,33 +1038,33 @@ const We = ir({
|
|
|
975
1038
|
}
|
|
976
1039
|
}
|
|
977
1040
|
});
|
|
978
|
-
function
|
|
1041
|
+
function lr(e) {
|
|
979
1042
|
let t = JSON.parse(e.message).error;
|
|
980
1043
|
if (t.statusCode === 401 || t.statusCode === 403)
|
|
981
1044
|
return !1;
|
|
982
1045
|
throw new Error(e);
|
|
983
1046
|
}
|
|
984
|
-
class
|
|
985
|
-
getFavorites() {
|
|
986
|
-
const
|
|
1047
|
+
class Sn {
|
|
1048
|
+
getFavorites(t) {
|
|
1049
|
+
const r = We(), n = {
|
|
987
1050
|
skipCount: 0,
|
|
988
1051
|
maxItems: 100,
|
|
989
1052
|
include: ["properties", "path"]
|
|
990
1053
|
};
|
|
991
|
-
return Se().listFavorites(
|
|
992
|
-
|
|
1054
|
+
return t && (n.where = `(EXISTS(target/${t}))`), Se().listFavorites(r.person.id, n).then((s) => s.list.entries.map((i) => i.entry)).catch((s) => {
|
|
1055
|
+
tr(s);
|
|
993
1056
|
});
|
|
994
1057
|
}
|
|
995
1058
|
changeSingleFavorite(t) {
|
|
996
1059
|
const r = We();
|
|
997
1060
|
if (t.isFavorite)
|
|
998
1061
|
return Se().deleteFavorite(r.person.id, t.id).then(() => (t.isFavorite = !1, t)).catch((n) => {
|
|
999
|
-
|
|
1062
|
+
nr(n);
|
|
1000
1063
|
});
|
|
1001
1064
|
{
|
|
1002
1065
|
let n = { target: {} }, s = { guid: t.id };
|
|
1003
|
-
return t.
|
|
1004
|
-
|
|
1066
|
+
return t.nodeType === "st:site" ? n.target = { site: s } : t.isFile ? n.target = { file: s } : n.target = { folder: s }, Se().createFavorite(r.person.id, n).then((i) => (t.isFavorite = i.entry.targetGuid === t.id, t)).catch((i) => {
|
|
1067
|
+
rr(i);
|
|
1005
1068
|
});
|
|
1006
1069
|
}
|
|
1007
1070
|
}
|
|
@@ -1011,27 +1074,27 @@ function ft(e, t) {
|
|
|
1011
1074
|
return e.apply(t, arguments);
|
|
1012
1075
|
};
|
|
1013
1076
|
}
|
|
1014
|
-
const { toString: dt } = Object.prototype, { getPrototypeOf:
|
|
1077
|
+
const { toString: dt } = Object.prototype, { getPrototypeOf: De } = Object, je = ((e) => (t) => {
|
|
1015
1078
|
const r = dt.call(t);
|
|
1016
1079
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
1017
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
1018
|
-
function
|
|
1080
|
+
})(/* @__PURE__ */ Object.create(null)), F = (e) => (e = e.toLowerCase(), (t) => je(t) === e), ce = (e) => (t) => typeof t === e, { isArray: ee } = Array, xe = ce("undefined");
|
|
1081
|
+
function fr(e) {
|
|
1019
1082
|
return e !== null && !xe(e) && e.constructor !== null && !xe(e.constructor) && q(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
1020
1083
|
}
|
|
1021
|
-
const pt =
|
|
1022
|
-
function
|
|
1084
|
+
const pt = F("ArrayBuffer");
|
|
1085
|
+
function dr(e) {
|
|
1023
1086
|
let t;
|
|
1024
1087
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && pt(e.buffer), t;
|
|
1025
1088
|
}
|
|
1026
|
-
const
|
|
1089
|
+
const pr = ce("string"), q = ce("function"), ht = ce("number"), mt = (e) => e !== null && typeof e == "object", hr = (e) => e === !0 || e === !1, oe = (e) => {
|
|
1027
1090
|
if (je(e) !== "object")
|
|
1028
1091
|
return !1;
|
|
1029
|
-
const t =
|
|
1092
|
+
const t = De(e);
|
|
1030
1093
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
1031
|
-
},
|
|
1094
|
+
}, mr = F("Date"), Er = F("File"), br = F("Blob"), wr = F("FileList"), yr = (e) => mt(e) && q(e.pipe), gr = (e) => {
|
|
1032
1095
|
const t = "[object FormData]";
|
|
1033
1096
|
return e && (typeof FormData == "function" && e instanceof FormData || dt.call(e) === t || q(e.toString) && e.toString() === t);
|
|
1034
|
-
},
|
|
1097
|
+
}, Nr = F("URLSearchParams"), Sr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
1035
1098
|
function ue(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
1036
1099
|
if (e === null || typeof e > "u")
|
|
1037
1100
|
return;
|
|
@@ -1054,13 +1117,13 @@ function Ce() {
|
|
|
1054
1117
|
arguments[r] && ue(arguments[r], t);
|
|
1055
1118
|
return e;
|
|
1056
1119
|
}
|
|
1057
|
-
const
|
|
1120
|
+
const Ar = (e, t, r, { allOwnKeys: n } = {}) => (ue(t, (s, i) => {
|
|
1058
1121
|
r && q(s) ? e[i] = ft(s, r) : e[i] = s;
|
|
1059
|
-
}, { allOwnKeys: n }), e),
|
|
1122
|
+
}, { allOwnKeys: n }), e), Or = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), _r = (e, t, r, n) => {
|
|
1060
1123
|
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
1061
1124
|
value: t.prototype
|
|
1062
1125
|
}), r && Object.assign(e.prototype, r);
|
|
1063
|
-
},
|
|
1126
|
+
}, vr = (e, t, r, n) => {
|
|
1064
1127
|
let s, i, o;
|
|
1065
1128
|
const u = {};
|
|
1066
1129
|
if (t = t || {}, e == null)
|
|
@@ -1068,14 +1131,14 @@ const gr = (e, t, r, { allOwnKeys: n } = {}) => (ue(t, (s, i) => {
|
|
|
1068
1131
|
do {
|
|
1069
1132
|
for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
|
|
1070
1133
|
o = s[i], (!n || n(o, e, t)) && !u[o] && (t[o] = e[o], u[o] = !0);
|
|
1071
|
-
e = r !== !1 &&
|
|
1134
|
+
e = r !== !1 && De(e);
|
|
1072
1135
|
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
1073
1136
|
return t;
|
|
1074
|
-
},
|
|
1137
|
+
}, Rr = (e, t, r) => {
|
|
1075
1138
|
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
|
|
1076
1139
|
const n = e.indexOf(t, r);
|
|
1077
1140
|
return n !== -1 && n === r;
|
|
1078
|
-
},
|
|
1141
|
+
}, kr = (e) => {
|
|
1079
1142
|
if (!e)
|
|
1080
1143
|
return null;
|
|
1081
1144
|
if (ee(e))
|
|
@@ -1087,30 +1150,30 @@ const gr = (e, t, r, { allOwnKeys: n } = {}) => (ue(t, (s, i) => {
|
|
|
1087
1150
|
for (; t-- > 0; )
|
|
1088
1151
|
r[t] = e[t];
|
|
1089
1152
|
return r;
|
|
1090
|
-
},
|
|
1153
|
+
}, Pr = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && De(Uint8Array)), xr = (e, t) => {
|
|
1091
1154
|
const n = (e && e[Symbol.iterator]).call(e);
|
|
1092
1155
|
let s;
|
|
1093
1156
|
for (; (s = n.next()) && !s.done; ) {
|
|
1094
1157
|
const i = s.value;
|
|
1095
1158
|
t.call(e, i[0], i[1]);
|
|
1096
1159
|
}
|
|
1097
|
-
},
|
|
1160
|
+
}, Cr = (e, t) => {
|
|
1098
1161
|
let r;
|
|
1099
1162
|
const n = [];
|
|
1100
1163
|
for (; (r = e.exec(t)) !== null; )
|
|
1101
1164
|
n.push(r);
|
|
1102
1165
|
return n;
|
|
1103
|
-
},
|
|
1166
|
+
}, Lr = F("HTMLFormElement"), Tr = (e) => e.toLowerCase().replace(
|
|
1104
1167
|
/[_-\s]([a-z\d])(\w*)/g,
|
|
1105
1168
|
function(r, n, s) {
|
|
1106
1169
|
return n.toUpperCase() + s;
|
|
1107
1170
|
}
|
|
1108
|
-
), Je = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype),
|
|
1171
|
+
), Je = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Fr = F("RegExp"), Et = (e, t) => {
|
|
1109
1172
|
const r = Object.getOwnPropertyDescriptors(e), n = {};
|
|
1110
1173
|
ue(r, (s, i) => {
|
|
1111
1174
|
t(s, i, e) !== !1 && (n[i] = s);
|
|
1112
1175
|
}), Object.defineProperties(e, n);
|
|
1113
|
-
},
|
|
1176
|
+
}, Dr = (e) => {
|
|
1114
1177
|
Et(e, (t, r) => {
|
|
1115
1178
|
const n = e[r];
|
|
1116
1179
|
if (!!q(n)) {
|
|
@@ -1123,57 +1186,57 @@ const gr = (e, t, r, { allOwnKeys: n } = {}) => (ue(t, (s, i) => {
|
|
|
1123
1186
|
});
|
|
1124
1187
|
}
|
|
1125
1188
|
});
|
|
1126
|
-
},
|
|
1189
|
+
}, jr = (e, t) => {
|
|
1127
1190
|
const r = {}, n = (s) => {
|
|
1128
1191
|
s.forEach((i) => {
|
|
1129
1192
|
r[i] = !0;
|
|
1130
1193
|
});
|
|
1131
1194
|
};
|
|
1132
1195
|
return ee(e) ? n(e) : n(String(e).split(t)), r;
|
|
1133
|
-
},
|
|
1134
|
-
},
|
|
1196
|
+
}, Ur = () => {
|
|
1197
|
+
}, Br = (e, t) => (e = +e, Number.isFinite(e) ? e : t), a = {
|
|
1135
1198
|
isArray: ee,
|
|
1136
1199
|
isArrayBuffer: pt,
|
|
1137
|
-
isBuffer:
|
|
1138
|
-
isFormData:
|
|
1139
|
-
isArrayBufferView:
|
|
1140
|
-
isString:
|
|
1200
|
+
isBuffer: fr,
|
|
1201
|
+
isFormData: gr,
|
|
1202
|
+
isArrayBufferView: dr,
|
|
1203
|
+
isString: pr,
|
|
1141
1204
|
isNumber: ht,
|
|
1142
|
-
isBoolean:
|
|
1205
|
+
isBoolean: hr,
|
|
1143
1206
|
isObject: mt,
|
|
1144
1207
|
isPlainObject: oe,
|
|
1145
1208
|
isUndefined: xe,
|
|
1146
|
-
isDate:
|
|
1147
|
-
isFile:
|
|
1148
|
-
isBlob:
|
|
1149
|
-
isRegExp:
|
|
1209
|
+
isDate: mr,
|
|
1210
|
+
isFile: Er,
|
|
1211
|
+
isBlob: br,
|
|
1212
|
+
isRegExp: Fr,
|
|
1150
1213
|
isFunction: q,
|
|
1151
|
-
isStream:
|
|
1152
|
-
isURLSearchParams:
|
|
1153
|
-
isTypedArray:
|
|
1154
|
-
isFileList:
|
|
1214
|
+
isStream: yr,
|
|
1215
|
+
isURLSearchParams: Nr,
|
|
1216
|
+
isTypedArray: Pr,
|
|
1217
|
+
isFileList: wr,
|
|
1155
1218
|
forEach: ue,
|
|
1156
1219
|
merge: Ce,
|
|
1157
|
-
extend:
|
|
1158
|
-
trim:
|
|
1159
|
-
stripBOM:
|
|
1160
|
-
inherits:
|
|
1161
|
-
toFlatObject:
|
|
1220
|
+
extend: Ar,
|
|
1221
|
+
trim: Sr,
|
|
1222
|
+
stripBOM: Or,
|
|
1223
|
+
inherits: _r,
|
|
1224
|
+
toFlatObject: vr,
|
|
1162
1225
|
kindOf: je,
|
|
1163
|
-
kindOfTest:
|
|
1164
|
-
endsWith:
|
|
1165
|
-
toArray:
|
|
1166
|
-
forEachEntry:
|
|
1167
|
-
matchAll:
|
|
1168
|
-
isHTMLForm:
|
|
1226
|
+
kindOfTest: F,
|
|
1227
|
+
endsWith: Rr,
|
|
1228
|
+
toArray: kr,
|
|
1229
|
+
forEachEntry: xr,
|
|
1230
|
+
matchAll: Cr,
|
|
1231
|
+
isHTMLForm: Lr,
|
|
1169
1232
|
hasOwnProperty: Je,
|
|
1170
1233
|
hasOwnProp: Je,
|
|
1171
1234
|
reduceDescriptors: Et,
|
|
1172
|
-
freezeMethods:
|
|
1173
|
-
toObjectSet:
|
|
1174
|
-
toCamelCase:
|
|
1175
|
-
noop:
|
|
1176
|
-
toFiniteNumber:
|
|
1235
|
+
freezeMethods: Dr,
|
|
1236
|
+
toObjectSet: jr,
|
|
1237
|
+
toCamelCase: Tr,
|
|
1238
|
+
noop: Ur,
|
|
1239
|
+
toFiniteNumber: Br
|
|
1177
1240
|
};
|
|
1178
1241
|
function y(e, t, r, n, s) {
|
|
1179
1242
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), s && (this.response = s);
|
|
@@ -1220,7 +1283,7 @@ y.from = (e, t, r, n, s, i) => {
|
|
|
1220
1283
|
return f !== Error.prototype;
|
|
1221
1284
|
}, (u) => u !== "isAxiosError"), y.call(o, e.message, t, r, n, s), o.cause = e, o.name = e.name, i && Object.assign(o, i), o;
|
|
1222
1285
|
};
|
|
1223
|
-
var
|
|
1286
|
+
var Ir = typeof self == "object" ? self.FormData : window.FormData;
|
|
1224
1287
|
function Le(e) {
|
|
1225
1288
|
return a.isPlainObject(e) || a.isArray(e);
|
|
1226
1289
|
}
|
|
@@ -1232,26 +1295,26 @@ function Xe(e, t, r) {
|
|
|
1232
1295
|
return s = yt(s), !r && i ? "[" + s + "]" : s;
|
|
1233
1296
|
}).join(r ? "." : "") : t;
|
|
1234
1297
|
}
|
|
1235
|
-
function
|
|
1298
|
+
function Vr(e) {
|
|
1236
1299
|
return a.isArray(e) && !e.some(Le);
|
|
1237
1300
|
}
|
|
1238
|
-
const
|
|
1301
|
+
const Mr = a.toFlatObject(a, {}, null, function(t) {
|
|
1239
1302
|
return /^is[A-Z]/.test(t);
|
|
1240
1303
|
});
|
|
1241
|
-
function
|
|
1304
|
+
function $r(e) {
|
|
1242
1305
|
return e && a.isFunction(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator];
|
|
1243
1306
|
}
|
|
1244
1307
|
function le(e, t, r) {
|
|
1245
1308
|
if (!a.isObject(e))
|
|
1246
1309
|
throw new TypeError("target must be an object");
|
|
1247
|
-
t = t || new (
|
|
1310
|
+
t = t || new (Ir || FormData)(), r = a.toFlatObject(r, {
|
|
1248
1311
|
metaTokens: !0,
|
|
1249
1312
|
dots: !1,
|
|
1250
1313
|
indexes: !1
|
|
1251
1314
|
}, !1, function(N, C) {
|
|
1252
1315
|
return !a.isUndefined(C[N]);
|
|
1253
1316
|
});
|
|
1254
|
-
const n = r.metaTokens, s = r.visitor || d, i = r.dots, o = r.indexes, f = (r.Blob || typeof Blob < "u" && Blob) &&
|
|
1317
|
+
const n = r.metaTokens, s = r.visitor || d, i = r.dots, o = r.indexes, f = (r.Blob || typeof Blob < "u" && Blob) && $r(t);
|
|
1255
1318
|
if (!a.isFunction(s))
|
|
1256
1319
|
throw new TypeError("visitor must be a function");
|
|
1257
1320
|
function c(l) {
|
|
@@ -1268,7 +1331,7 @@ function le(e, t, r) {
|
|
|
1268
1331
|
if (l && !C && typeof l == "object") {
|
|
1269
1332
|
if (a.endsWith(N, "{}"))
|
|
1270
1333
|
N = n ? N : N.slice(0, -2), l = JSON.stringify(l);
|
|
1271
|
-
else if (a.isArray(l) &&
|
|
1334
|
+
else if (a.isArray(l) && Vr(l) || a.isFileList(l) || a.endsWith(N, "[]") && (A = a.toArray(l)))
|
|
1272
1335
|
return N = yt(N), A.forEach(function(M, re) {
|
|
1273
1336
|
!(a.isUndefined(M) || M === null) && t.append(
|
|
1274
1337
|
o === !0 ? Xe([N], re, i) : o === null ? N : N + "[]",
|
|
@@ -1278,7 +1341,7 @@ function le(e, t, r) {
|
|
|
1278
1341
|
}
|
|
1279
1342
|
return Le(l) ? !0 : (t.append(Xe(C, N, i), c(l)), !1);
|
|
1280
1343
|
}
|
|
1281
|
-
const m = [], g = Object.assign(
|
|
1344
|
+
const m = [], g = Object.assign(Mr, {
|
|
1282
1345
|
defaultVisitor: d,
|
|
1283
1346
|
convertValue: c,
|
|
1284
1347
|
isVisitable: Le
|
|
@@ -1287,14 +1350,14 @@ function le(e, t, r) {
|
|
|
1287
1350
|
if (!a.isUndefined(l)) {
|
|
1288
1351
|
if (m.indexOf(l) !== -1)
|
|
1289
1352
|
throw Error("Circular reference detected in " + N.join("."));
|
|
1290
|
-
m.push(l), a.forEach(l, function(A,
|
|
1353
|
+
m.push(l), a.forEach(l, function(A, D) {
|
|
1291
1354
|
(!(a.isUndefined(A) || A === null) && s.call(
|
|
1292
1355
|
t,
|
|
1293
1356
|
A,
|
|
1294
|
-
a.isString(
|
|
1357
|
+
a.isString(D) ? D.trim() : D,
|
|
1295
1358
|
N,
|
|
1296
1359
|
g
|
|
1297
|
-
)) === !0 && h(A, N ? N.concat(
|
|
1360
|
+
)) === !0 && h(A, N ? N.concat(D) : [D]);
|
|
1298
1361
|
}), m.pop();
|
|
1299
1362
|
}
|
|
1300
1363
|
}
|
|
@@ -1331,13 +1394,13 @@ gt.toString = function(t) {
|
|
|
1331
1394
|
return r(s[0]) + "=" + r(s[1]);
|
|
1332
1395
|
}, "").join("&");
|
|
1333
1396
|
};
|
|
1334
|
-
function
|
|
1397
|
+
function zr(e) {
|
|
1335
1398
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
1336
1399
|
}
|
|
1337
1400
|
function Nt(e, t, r) {
|
|
1338
1401
|
if (!t)
|
|
1339
1402
|
return e;
|
|
1340
|
-
const n = r && r.encode ||
|
|
1403
|
+
const n = r && r.encode || zr, s = r && r.serialize;
|
|
1341
1404
|
let i;
|
|
1342
1405
|
if (s ? i = s(t, r) : i = a.isURLSearchParams(t) ? t.toString() : new Ue(t, r).toString(n), i) {
|
|
1343
1406
|
const o = e.indexOf("#");
|
|
@@ -1373,30 +1436,30 @@ const St = {
|
|
|
1373
1436
|
silentJSONParsing: !0,
|
|
1374
1437
|
forcedJSONParsing: !0,
|
|
1375
1438
|
clarifyTimeoutError: !1
|
|
1376
|
-
},
|
|
1439
|
+
}, qr = typeof URLSearchParams < "u" ? URLSearchParams : Ue, Hr = FormData, Wr = (() => {
|
|
1377
1440
|
let e;
|
|
1378
1441
|
return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
1379
1442
|
})(), T = {
|
|
1380
1443
|
isBrowser: !0,
|
|
1381
1444
|
classes: {
|
|
1382
|
-
URLSearchParams:
|
|
1383
|
-
FormData:
|
|
1445
|
+
URLSearchParams: qr,
|
|
1446
|
+
FormData: Hr,
|
|
1384
1447
|
Blob
|
|
1385
1448
|
},
|
|
1386
|
-
isStandardBrowserEnv:
|
|
1449
|
+
isStandardBrowserEnv: Wr,
|
|
1387
1450
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
1388
1451
|
};
|
|
1389
|
-
function
|
|
1452
|
+
function Jr(e, t) {
|
|
1390
1453
|
return le(e, new T.classes.URLSearchParams(), Object.assign({
|
|
1391
1454
|
visitor: function(r, n, s, i) {
|
|
1392
1455
|
return T.isNode && a.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
1393
1456
|
}
|
|
1394
1457
|
}, t));
|
|
1395
1458
|
}
|
|
1396
|
-
function
|
|
1459
|
+
function Xr(e) {
|
|
1397
1460
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
1398
1461
|
}
|
|
1399
|
-
function
|
|
1462
|
+
function Gr(e) {
|
|
1400
1463
|
const t = {}, r = Object.keys(e);
|
|
1401
1464
|
let n;
|
|
1402
1465
|
const s = r.length;
|
|
@@ -1409,17 +1472,17 @@ function At(e) {
|
|
|
1409
1472
|
function t(r, n, s, i) {
|
|
1410
1473
|
let o = r[i++];
|
|
1411
1474
|
const u = Number.isFinite(+o), f = i >= r.length;
|
|
1412
|
-
return o = !o && a.isArray(s) ? s.length : o, f ? (a.hasOwnProp(s, o) ? s[o] = [s[o], n] : s[o] = n, !u) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(r, n, s[o], i) && a.isArray(s[o]) && (s[o] =
|
|
1475
|
+
return o = !o && a.isArray(s) ? s.length : o, f ? (a.hasOwnProp(s, o) ? s[o] = [s[o], n] : s[o] = n, !u) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(r, n, s[o], i) && a.isArray(s[o]) && (s[o] = Gr(s[o])), !u);
|
|
1413
1476
|
}
|
|
1414
1477
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
1415
1478
|
const r = {};
|
|
1416
1479
|
return a.forEachEntry(e, (n, s) => {
|
|
1417
|
-
t(
|
|
1480
|
+
t(Xr(n), s, r, 0);
|
|
1418
1481
|
}), r;
|
|
1419
1482
|
}
|
|
1420
1483
|
return null;
|
|
1421
1484
|
}
|
|
1422
|
-
function
|
|
1485
|
+
function Kr(e, t, r) {
|
|
1423
1486
|
const n = r.config.validateStatus;
|
|
1424
1487
|
!r.status || !n || n(r.status) ? e(r) : t(new y(
|
|
1425
1488
|
"Request failed with status code " + r.status,
|
|
@@ -1429,7 +1492,7 @@ function Jr(e, t, r) {
|
|
|
1429
1492
|
r
|
|
1430
1493
|
));
|
|
1431
1494
|
}
|
|
1432
|
-
const
|
|
1495
|
+
const Qr = T.isStandardBrowserEnv ? function() {
|
|
1433
1496
|
return {
|
|
1434
1497
|
write: function(r, n, s, i, o, u) {
|
|
1435
1498
|
const f = [];
|
|
@@ -1454,16 +1517,16 @@ const Xr = T.isStandardBrowserEnv ? function() {
|
|
|
1454
1517
|
}
|
|
1455
1518
|
};
|
|
1456
1519
|
}();
|
|
1457
|
-
function
|
|
1520
|
+
function Yr(e) {
|
|
1458
1521
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
1459
1522
|
}
|
|
1460
|
-
function
|
|
1523
|
+
function Zr(e, t) {
|
|
1461
1524
|
return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
1462
1525
|
}
|
|
1463
1526
|
function Ot(e, t) {
|
|
1464
|
-
return e && !
|
|
1527
|
+
return e && !Yr(t) ? Zr(e, t) : t;
|
|
1465
1528
|
}
|
|
1466
|
-
const
|
|
1529
|
+
const en = T.isStandardBrowserEnv ? function() {
|
|
1467
1530
|
const t = /(msie|trident)/i.test(navigator.userAgent), r = document.createElement("a");
|
|
1468
1531
|
let n;
|
|
1469
1532
|
function s(i) {
|
|
@@ -1494,11 +1557,11 @@ function te(e, t, r) {
|
|
|
1494
1557
|
a.inherits(te, y, {
|
|
1495
1558
|
__CANCEL__: !0
|
|
1496
1559
|
});
|
|
1497
|
-
function
|
|
1560
|
+
function tn(e) {
|
|
1498
1561
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
1499
1562
|
return t && t[1] || "";
|
|
1500
1563
|
}
|
|
1501
|
-
const
|
|
1564
|
+
const rn = a.toObjectSet([
|
|
1502
1565
|
"age",
|
|
1503
1566
|
"authorization",
|
|
1504
1567
|
"content-length",
|
|
@@ -1516,12 +1579,12 @@ const Zr = a.toObjectSet([
|
|
|
1516
1579
|
"referer",
|
|
1517
1580
|
"retry-after",
|
|
1518
1581
|
"user-agent"
|
|
1519
|
-
]),
|
|
1582
|
+
]), nn = (e) => {
|
|
1520
1583
|
const t = {};
|
|
1521
1584
|
let r, n, s;
|
|
1522
1585
|
return e && e.split(`
|
|
1523
1586
|
`).forEach(function(o) {
|
|
1524
|
-
s = o.indexOf(":"), r = o.substring(0, s).trim().toLowerCase(), n = o.substring(s + 1).trim(), !(!r || t[r] &&
|
|
1587
|
+
s = o.indexOf(":"), r = o.substring(0, s).trim().toLowerCase(), n = o.substring(s + 1).trim(), !(!r || t[r] && rn[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
|
|
1525
1588
|
}), t;
|
|
1526
1589
|
}, Qe = Symbol("internals"), _t = Symbol("defaults");
|
|
1527
1590
|
function K(e) {
|
|
@@ -1530,7 +1593,7 @@ function K(e) {
|
|
|
1530
1593
|
function ie(e) {
|
|
1531
1594
|
return e === !1 || e == null ? e : a.isArray(e) ? e.map(ie) : String(e);
|
|
1532
1595
|
}
|
|
1533
|
-
function
|
|
1596
|
+
function sn(e) {
|
|
1534
1597
|
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
1535
1598
|
let n;
|
|
1536
1599
|
for (; n = r.exec(e); )
|
|
@@ -1547,10 +1610,10 @@ function Ye(e, t, r, n) {
|
|
|
1547
1610
|
return n.test(t);
|
|
1548
1611
|
}
|
|
1549
1612
|
}
|
|
1550
|
-
function
|
|
1613
|
+
function on(e) {
|
|
1551
1614
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
|
|
1552
1615
|
}
|
|
1553
|
-
function
|
|
1616
|
+
function an(e, t) {
|
|
1554
1617
|
const r = a.toCamelCase(" " + t);
|
|
1555
1618
|
["get", "set", "has"].forEach((n) => {
|
|
1556
1619
|
Object.defineProperty(e, n + r, {
|
|
@@ -1570,10 +1633,10 @@ function J(e, t) {
|
|
|
1570
1633
|
return s;
|
|
1571
1634
|
return null;
|
|
1572
1635
|
}
|
|
1573
|
-
function
|
|
1636
|
+
function R(e, t) {
|
|
1574
1637
|
e && this.set(e), this[_t] = t || null;
|
|
1575
1638
|
}
|
|
1576
|
-
Object.assign(
|
|
1639
|
+
Object.assign(R.prototype, {
|
|
1577
1640
|
set: function(e, t, r) {
|
|
1578
1641
|
const n = this;
|
|
1579
1642
|
function s(i, o, u) {
|
|
@@ -1596,7 +1659,7 @@ Object.assign(v.prototype, {
|
|
|
1596
1659
|
if (!t)
|
|
1597
1660
|
return n;
|
|
1598
1661
|
if (t === !0)
|
|
1599
|
-
return
|
|
1662
|
+
return sn(n);
|
|
1600
1663
|
if (a.isFunction(t))
|
|
1601
1664
|
return t.call(this, n, r);
|
|
1602
1665
|
if (a.isRegExp(t))
|
|
@@ -1633,7 +1696,7 @@ Object.assign(v.prototype, {
|
|
|
1633
1696
|
t[i] = ie(n), delete t[s];
|
|
1634
1697
|
return;
|
|
1635
1698
|
}
|
|
1636
|
-
const o = e ?
|
|
1699
|
+
const o = e ? on(s) : String(s).trim();
|
|
1637
1700
|
o !== s && delete t[s], t[o] = ie(n), r[o] = !0;
|
|
1638
1701
|
}), this;
|
|
1639
1702
|
},
|
|
@@ -1647,9 +1710,9 @@ Object.assign(v.prototype, {
|
|
|
1647
1710
|
), t;
|
|
1648
1711
|
}
|
|
1649
1712
|
});
|
|
1650
|
-
Object.assign(
|
|
1713
|
+
Object.assign(R, {
|
|
1651
1714
|
from: function(e) {
|
|
1652
|
-
return a.isString(e) ? new this(
|
|
1715
|
+
return a.isString(e) ? new this(nn(e)) : e instanceof this ? e : new this(e);
|
|
1653
1716
|
},
|
|
1654
1717
|
accessor: function(e) {
|
|
1655
1718
|
const r = (this[Qe] = this[Qe] = {
|
|
@@ -1657,15 +1720,15 @@ Object.assign(v, {
|
|
|
1657
1720
|
}).accessors, n = this.prototype;
|
|
1658
1721
|
function s(i) {
|
|
1659
1722
|
const o = K(i);
|
|
1660
|
-
r[o] || (
|
|
1723
|
+
r[o] || (an(n, i), r[o] = !0);
|
|
1661
1724
|
}
|
|
1662
1725
|
return a.isArray(e) ? e.forEach(s) : s(e), this;
|
|
1663
1726
|
}
|
|
1664
1727
|
});
|
|
1665
|
-
|
|
1666
|
-
a.freezeMethods(
|
|
1667
|
-
a.freezeMethods(
|
|
1668
|
-
function
|
|
1728
|
+
R.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent"]);
|
|
1729
|
+
a.freezeMethods(R.prototype);
|
|
1730
|
+
a.freezeMethods(R);
|
|
1731
|
+
function cn(e, t) {
|
|
1669
1732
|
e = e || 10;
|
|
1670
1733
|
const r = new Array(e), n = new Array(e);
|
|
1671
1734
|
let s = 0, i = 0, o;
|
|
@@ -1683,7 +1746,7 @@ function sn(e, t) {
|
|
|
1683
1746
|
}
|
|
1684
1747
|
function Ze(e, t) {
|
|
1685
1748
|
let r = 0;
|
|
1686
|
-
const n =
|
|
1749
|
+
const n = cn(50, 250);
|
|
1687
1750
|
return (s) => {
|
|
1688
1751
|
const i = s.loaded, o = s.lengthComputable ? s.total : void 0, u = i - r, f = n(u), c = i <= o;
|
|
1689
1752
|
r = i;
|
|
@@ -1701,7 +1764,7 @@ function Ze(e, t) {
|
|
|
1701
1764
|
function et(e) {
|
|
1702
1765
|
return new Promise(function(r, n) {
|
|
1703
1766
|
let s = e.data;
|
|
1704
|
-
const i =
|
|
1767
|
+
const i = R.from(e.headers).normalize(), o = e.responseType;
|
|
1705
1768
|
let u;
|
|
1706
1769
|
function f() {
|
|
1707
1770
|
e.cancelToken && e.cancelToken.unsubscribe(u), e.signal && e.signal.removeEventListener("abort", u);
|
|
@@ -1717,7 +1780,7 @@ function et(e) {
|
|
|
1717
1780
|
function m() {
|
|
1718
1781
|
if (!c)
|
|
1719
1782
|
return;
|
|
1720
|
-
const h =
|
|
1783
|
+
const h = R.from(
|
|
1721
1784
|
"getAllResponseHeaders" in c && c.getAllResponseHeaders()
|
|
1722
1785
|
), N = {
|
|
1723
1786
|
data: !o || o === "text" || o === "json" ? c.responseText : c.response,
|
|
@@ -1727,7 +1790,7 @@ function et(e) {
|
|
|
1727
1790
|
config: e,
|
|
1728
1791
|
request: c
|
|
1729
1792
|
};
|
|
1730
|
-
|
|
1793
|
+
Kr(function(A) {
|
|
1731
1794
|
r(A), f();
|
|
1732
1795
|
}, function(A) {
|
|
1733
1796
|
n(A), f();
|
|
@@ -1749,7 +1812,7 @@ function et(e) {
|
|
|
1749
1812
|
c
|
|
1750
1813
|
)), c = null;
|
|
1751
1814
|
}, T.isStandardBrowserEnv) {
|
|
1752
|
-
const h = (e.withCredentials ||
|
|
1815
|
+
const h = (e.withCredentials || en(d)) && e.xsrfCookieName && Qr.read(e.xsrfCookieName);
|
|
1753
1816
|
h && i.set(e.xsrfHeaderName, h);
|
|
1754
1817
|
}
|
|
1755
1818
|
s === void 0 && i.setContentType(null), "setRequestHeader" in c && a.forEach(i.toJSON(), function(l, N) {
|
|
@@ -1757,7 +1820,7 @@ function et(e) {
|
|
|
1757
1820
|
}), a.isUndefined(e.withCredentials) || (c.withCredentials = !!e.withCredentials), o && o !== "json" && (c.responseType = e.responseType), typeof e.onDownloadProgress == "function" && c.addEventListener("progress", Ze(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", Ze(e.onUploadProgress)), (e.cancelToken || e.signal) && (u = (h) => {
|
|
1758
1821
|
!c || (n(!h || h.type ? new te(null, e, c) : h), c.abort(), c = null);
|
|
1759
1822
|
}, e.cancelToken && e.cancelToken.subscribe(u), e.signal && (e.signal.aborted ? u() : e.signal.addEventListener("abort", u)));
|
|
1760
|
-
const g =
|
|
1823
|
+
const g = tn(d);
|
|
1761
1824
|
if (g && T.protocols.indexOf(g) === -1) {
|
|
1762
1825
|
n(new y("Unsupported protocol " + g + ":", y.ERR_BAD_REQUEST, e));
|
|
1763
1826
|
return;
|
|
@@ -1783,14 +1846,14 @@ const tt = {
|
|
|
1783
1846
|
return e;
|
|
1784
1847
|
},
|
|
1785
1848
|
adapters: tt
|
|
1786
|
-
},
|
|
1849
|
+
}, un = {
|
|
1787
1850
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
1788
1851
|
};
|
|
1789
|
-
function
|
|
1852
|
+
function ln() {
|
|
1790
1853
|
let e;
|
|
1791
1854
|
return typeof XMLHttpRequest < "u" ? e = rt.getAdapter("xhr") : typeof process < "u" && a.kindOf(process) === "process" && (e = rt.getAdapter("http")), e;
|
|
1792
1855
|
}
|
|
1793
|
-
function
|
|
1856
|
+
function fn(e, t, r) {
|
|
1794
1857
|
if (a.isString(e))
|
|
1795
1858
|
try {
|
|
1796
1859
|
return (t || JSON.parse)(e), a.trim(e);
|
|
@@ -1802,7 +1865,7 @@ function cn(e, t, r) {
|
|
|
1802
1865
|
}
|
|
1803
1866
|
const H = {
|
|
1804
1867
|
transitional: St,
|
|
1805
|
-
adapter:
|
|
1868
|
+
adapter: ln(),
|
|
1806
1869
|
transformRequest: [function(t, r) {
|
|
1807
1870
|
const n = r.getContentType() || "", s = n.indexOf("application/json") > -1, i = a.isObject(t);
|
|
1808
1871
|
if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
@@ -1816,7 +1879,7 @@ const H = {
|
|
|
1816
1879
|
let u;
|
|
1817
1880
|
if (i) {
|
|
1818
1881
|
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
1819
|
-
return
|
|
1882
|
+
return Jr(t, this.formSerializer).toString();
|
|
1820
1883
|
if ((u = a.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
|
1821
1884
|
const f = this.env && this.env.FormData;
|
|
1822
1885
|
return le(
|
|
@@ -1826,7 +1889,7 @@ const H = {
|
|
|
1826
1889
|
);
|
|
1827
1890
|
}
|
|
1828
1891
|
}
|
|
1829
|
-
return i || s ? (r.setContentType("application/json", !1),
|
|
1892
|
+
return i || s ? (r.setContentType("application/json", !1), fn(t)) : t;
|
|
1830
1893
|
}],
|
|
1831
1894
|
transformResponse: [function(t) {
|
|
1832
1895
|
const r = this.transitional || H.transitional, n = r && r.forcedJSONParsing, s = this.responseType === "json";
|
|
@@ -1863,38 +1926,38 @@ a.forEach(["delete", "get", "head"], function(t) {
|
|
|
1863
1926
|
H.headers[t] = {};
|
|
1864
1927
|
});
|
|
1865
1928
|
a.forEach(["post", "put", "patch"], function(t) {
|
|
1866
|
-
H.headers[t] = a.merge(
|
|
1929
|
+
H.headers[t] = a.merge(un);
|
|
1867
1930
|
});
|
|
1868
1931
|
function _e(e, t) {
|
|
1869
|
-
const r = this || H, n = t || r, s =
|
|
1932
|
+
const r = this || H, n = t || r, s = R.from(n.headers);
|
|
1870
1933
|
let i = n.data;
|
|
1871
1934
|
return a.forEach(e, function(u) {
|
|
1872
1935
|
i = u.call(r, i, s.normalize(), t ? t.status : void 0);
|
|
1873
1936
|
}), s.normalize(), i;
|
|
1874
1937
|
}
|
|
1875
|
-
function
|
|
1938
|
+
function vt(e) {
|
|
1876
1939
|
return !!(e && e.__CANCEL__);
|
|
1877
1940
|
}
|
|
1878
|
-
function
|
|
1941
|
+
function ve(e) {
|
|
1879
1942
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1880
1943
|
throw new te();
|
|
1881
1944
|
}
|
|
1882
1945
|
function nt(e) {
|
|
1883
|
-
return
|
|
1946
|
+
return ve(e), e.headers = R.from(e.headers), e.data = _e.call(
|
|
1884
1947
|
e,
|
|
1885
1948
|
e.transformRequest
|
|
1886
1949
|
), (e.adapter || H.adapter)(e).then(function(n) {
|
|
1887
|
-
return
|
|
1950
|
+
return ve(e), n.data = _e.call(
|
|
1888
1951
|
e,
|
|
1889
1952
|
e.transformResponse,
|
|
1890
1953
|
n
|
|
1891
|
-
), n.headers =
|
|
1954
|
+
), n.headers = R.from(n.headers), n;
|
|
1892
1955
|
}, function(n) {
|
|
1893
|
-
return
|
|
1956
|
+
return vt(n) || (ve(e), n && n.response && (n.response.data = _e.call(
|
|
1894
1957
|
e,
|
|
1895
1958
|
e.transformResponse,
|
|
1896
1959
|
n.response
|
|
1897
|
-
), n.response.headers =
|
|
1960
|
+
), n.response.headers = R.from(n.response.headers))), Promise.reject(n);
|
|
1898
1961
|
});
|
|
1899
1962
|
}
|
|
1900
1963
|
function Z(e, t) {
|
|
@@ -1961,7 +2024,7 @@ function Z(e, t) {
|
|
|
1961
2024
|
a.isUndefined(g) && m !== u || (r[d] = g);
|
|
1962
2025
|
}), r;
|
|
1963
2026
|
}
|
|
1964
|
-
const
|
|
2027
|
+
const Rt = "1.1.3", Be = {};
|
|
1965
2028
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1966
2029
|
Be[e] = function(n) {
|
|
1967
2030
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
@@ -1970,7 +2033,7 @@ const vt = "1.1.3", Be = {};
|
|
|
1970
2033
|
const st = {};
|
|
1971
2034
|
Be.transitional = function(t, r, n) {
|
|
1972
2035
|
function s(i, o) {
|
|
1973
|
-
return "[Axios v" +
|
|
2036
|
+
return "[Axios v" + Rt + "] Transitional option '" + i + "'" + o + (n ? ". " + n : "");
|
|
1974
2037
|
}
|
|
1975
2038
|
return (i, o, u) => {
|
|
1976
2039
|
if (t === !1)
|
|
@@ -1986,7 +2049,7 @@ Be.transitional = function(t, r, n) {
|
|
|
1986
2049
|
)), t ? t(i, o, u) : !0;
|
|
1987
2050
|
};
|
|
1988
2051
|
};
|
|
1989
|
-
function
|
|
2052
|
+
function dn(e, t, r) {
|
|
1990
2053
|
if (typeof e != "object")
|
|
1991
2054
|
throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
|
|
1992
2055
|
const n = Object.keys(e);
|
|
@@ -2004,7 +2067,7 @@ function un(e, t, r) {
|
|
|
2004
2067
|
}
|
|
2005
2068
|
}
|
|
2006
2069
|
const Te = {
|
|
2007
|
-
assertOptions:
|
|
2070
|
+
assertOptions: dn,
|
|
2008
2071
|
validators: Be
|
|
2009
2072
|
}, U = Te.validators;
|
|
2010
2073
|
class I {
|
|
@@ -2034,7 +2097,7 @@ class I {
|
|
|
2034
2097
|
function(l) {
|
|
2035
2098
|
delete r.headers[l];
|
|
2036
2099
|
}
|
|
2037
|
-
), r.headers = new
|
|
2100
|
+
), r.headers = new R(r.headers, i);
|
|
2038
2101
|
const o = [];
|
|
2039
2102
|
let u = !0;
|
|
2040
2103
|
this.interceptors.request.forEach(function(l) {
|
|
@@ -2156,36 +2219,36 @@ class Ie {
|
|
|
2156
2219
|
};
|
|
2157
2220
|
}
|
|
2158
2221
|
}
|
|
2159
|
-
function
|
|
2222
|
+
function pn(e) {
|
|
2160
2223
|
return function(r) {
|
|
2161
2224
|
return e.apply(null, r);
|
|
2162
2225
|
};
|
|
2163
2226
|
}
|
|
2164
|
-
function
|
|
2227
|
+
function hn(e) {
|
|
2165
2228
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
2166
2229
|
}
|
|
2167
|
-
function
|
|
2230
|
+
function kt(e) {
|
|
2168
2231
|
const t = new I(e), r = ft(I.prototype.request, t);
|
|
2169
2232
|
return a.extend(r, I.prototype, t, { allOwnKeys: !0 }), a.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(s) {
|
|
2170
|
-
return
|
|
2233
|
+
return kt(Z(e, s));
|
|
2171
2234
|
}, r;
|
|
2172
2235
|
}
|
|
2173
|
-
const S =
|
|
2236
|
+
const S = kt(H);
|
|
2174
2237
|
S.Axios = I;
|
|
2175
2238
|
S.CanceledError = te;
|
|
2176
2239
|
S.CancelToken = Ie;
|
|
2177
|
-
S.isCancel =
|
|
2178
|
-
S.VERSION =
|
|
2240
|
+
S.isCancel = vt;
|
|
2241
|
+
S.VERSION = Rt;
|
|
2179
2242
|
S.toFormData = le;
|
|
2180
2243
|
S.AxiosError = y;
|
|
2181
2244
|
S.Cancel = S.CanceledError;
|
|
2182
2245
|
S.all = function(t) {
|
|
2183
2246
|
return Promise.all(t);
|
|
2184
2247
|
};
|
|
2185
|
-
S.spread =
|
|
2186
|
-
S.isAxiosError =
|
|
2248
|
+
S.spread = pn;
|
|
2249
|
+
S.isAxiosError = hn;
|
|
2187
2250
|
S.formToJSON = (e) => At(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
2188
|
-
class
|
|
2251
|
+
class An {
|
|
2189
2252
|
getLoolUrl(t) {
|
|
2190
2253
|
let r = `${t}/alfresco/service/lool/host/url`;
|
|
2191
2254
|
return S.get(r).then((n) => n.data).catch((n) => {
|
|
@@ -2205,7 +2268,7 @@ class gn {
|
|
|
2205
2268
|
});
|
|
2206
2269
|
}
|
|
2207
2270
|
}
|
|
2208
|
-
class
|
|
2271
|
+
class On {
|
|
2209
2272
|
getCollaboraExtensions(t) {
|
|
2210
2273
|
return S.get(`${t}/hosting/discovery`).then((r) => new DOMParser().parseFromString(r.data, "text/xml")).catch((r) => {
|
|
2211
2274
|
Zt(r);
|
|
@@ -2226,22 +2289,22 @@ class Nn {
|
|
|
2226
2289
|
}
|
|
2227
2290
|
}
|
|
2228
2291
|
export {
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2292
|
+
wn as AlfrescoFileService,
|
|
2293
|
+
yn as AlfrescoNodeService,
|
|
2294
|
+
gn as AlfrescoPermissionService,
|
|
2295
|
+
An as CollaboraAccessService,
|
|
2296
|
+
On as CollaboraExtensionService,
|
|
2234
2297
|
ct as ErrorService,
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2298
|
+
Sn as FavoriteService,
|
|
2299
|
+
Nn as WorkspaceService,
|
|
2300
|
+
v as alfrescoApi,
|
|
2238
2301
|
Se as favoritesApi,
|
|
2239
|
-
|
|
2240
|
-
|
|
2302
|
+
P as nodesApi,
|
|
2303
|
+
Re as peopleApi,
|
|
2241
2304
|
$e as renditionsApi,
|
|
2242
2305
|
Gt as searchApi,
|
|
2243
2306
|
L as sitesApi,
|
|
2244
|
-
|
|
2307
|
+
bn as trashcanApi,
|
|
2245
2308
|
Xt as uploadApi,
|
|
2246
2309
|
We as useUserStore
|
|
2247
2310
|
};
|