@pristy/pristy-libvue 0.3.2 → 0.4.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.
- package/README.md +2 -0
- package/dist/pristy-libvue.mjs +1833 -556
- package/dist/pristy-libvue.umd.js +5 -4
- package/package.json +3 -2
package/dist/pristy-libvue.mjs
CHANGED
|
@@ -1,250 +1,306 @@
|
|
|
1
|
-
import { AlfrescoApi as
|
|
2
|
-
import { getCurrentInstance as
|
|
3
|
-
let
|
|
4
|
-
function
|
|
5
|
-
return
|
|
1
|
+
import { AlfrescoApi as Lt, ContentApi as Tt, UploadApi as Dt, RenditionsApi as Ft, 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 De, toRef as fe, toRaw as Wt, nextTick as Ve, computed as at, onUnmounted as Jt, toRefs as Me } from "vue";
|
|
3
|
+
let de = null;
|
|
4
|
+
function R() {
|
|
5
|
+
return de || (de = new Lt({
|
|
6
6
|
hostEcm: window.config.ALFRESCO_HOST,
|
|
7
7
|
authType: window.config.ALFRESCO_AUTH,
|
|
8
8
|
contextRoot: window.config.ALFRESCO_ROOT
|
|
9
|
-
})),
|
|
9
|
+
})), de;
|
|
10
10
|
}
|
|
11
|
-
let
|
|
12
|
-
function
|
|
13
|
-
return
|
|
11
|
+
let pe = null;
|
|
12
|
+
function he() {
|
|
13
|
+
return pe || (pe = new Tt(R())), pe;
|
|
14
14
|
}
|
|
15
|
-
let
|
|
16
|
-
function
|
|
17
|
-
return
|
|
15
|
+
let me = null;
|
|
16
|
+
function Xt() {
|
|
17
|
+
return me || (me = new Dt(R())), me;
|
|
18
18
|
}
|
|
19
|
-
let
|
|
20
|
-
function
|
|
21
|
-
return
|
|
19
|
+
let Ee = null;
|
|
20
|
+
function $e() {
|
|
21
|
+
return Ee || (Ee = new Ft(R())), Ee;
|
|
22
22
|
}
|
|
23
|
-
let
|
|
24
|
-
function y() {
|
|
25
|
-
return B || (B = new Ve(E())), B;
|
|
26
|
-
}
|
|
27
|
-
let G = null;
|
|
23
|
+
let be = null;
|
|
28
24
|
function k() {
|
|
29
|
-
return
|
|
25
|
+
return be || (be = new jt(R())), be;
|
|
26
|
+
}
|
|
27
|
+
let we = null;
|
|
28
|
+
function L() {
|
|
29
|
+
return we || (we = new Ut(R())), we;
|
|
30
30
|
}
|
|
31
|
-
let
|
|
32
|
-
function
|
|
33
|
-
return
|
|
31
|
+
let ye = null;
|
|
32
|
+
function Gt() {
|
|
33
|
+
return ye || (ye = new Bt(R())), ye;
|
|
34
34
|
}
|
|
35
|
-
let
|
|
36
|
-
function
|
|
37
|
-
return
|
|
35
|
+
let ge = null;
|
|
36
|
+
function ve() {
|
|
37
|
+
return ge || (ge = new It(R())), ge;
|
|
38
38
|
}
|
|
39
|
-
let
|
|
40
|
-
function
|
|
41
|
-
return
|
|
39
|
+
let Ne = null;
|
|
40
|
+
function Se() {
|
|
41
|
+
return Ne || (Ne = new Vt(R())), Ne;
|
|
42
42
|
}
|
|
43
|
-
let
|
|
44
|
-
function
|
|
45
|
-
return
|
|
43
|
+
let Ae = null;
|
|
44
|
+
function hn() {
|
|
45
|
+
return Ae || (Ae = new Mt(R())), Ae;
|
|
46
46
|
}
|
|
47
|
-
class
|
|
48
|
-
uploadFileError(
|
|
49
|
-
let
|
|
50
|
-
switch (
|
|
47
|
+
class ct {
|
|
48
|
+
uploadFileError(t, r) {
|
|
49
|
+
let n;
|
|
50
|
+
switch (t.status) {
|
|
51
51
|
case 400:
|
|
52
|
-
|
|
52
|
+
n = "Les param\xE8tres de la requ\xEAte sont invalides.";
|
|
53
53
|
break;
|
|
54
54
|
case 403:
|
|
55
|
-
|
|
55
|
+
n = "Vous n'avez pas les droits pour cr\xE9er un fichier.";
|
|
56
56
|
break;
|
|
57
57
|
case 404:
|
|
58
|
-
|
|
58
|
+
n = "Impossible de trouver le dossier parent.";
|
|
59
59
|
break;
|
|
60
60
|
case 409:
|
|
61
|
-
|
|
61
|
+
n = "Le fichier " + r + " existe d\xE9j\xE0.";
|
|
62
62
|
break;
|
|
63
63
|
case 413:
|
|
64
|
-
|
|
64
|
+
n = "Le contenu d\xE9passe la limite de taille de fichier individuelle configur\xE9e pour le r\xE9seau ou le syst\xE8me";
|
|
65
65
|
break;
|
|
66
66
|
case 415:
|
|
67
|
-
|
|
67
|
+
n = "Le type du contenu du noeud n'est pas support\xE9.";
|
|
68
68
|
break;
|
|
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
72
|
case 507:
|
|
73
|
-
|
|
73
|
+
n = "Le contenu d\xE9passe la limite de quota de stockage globale configur\xE9e pour le r\xE9seau ou le syst\xE8me.";
|
|
74
74
|
break;
|
|
75
75
|
default:
|
|
76
|
-
|
|
76
|
+
n = t.message;
|
|
77
77
|
}
|
|
78
|
-
throw new Error(
|
|
78
|
+
throw new Error(n);
|
|
79
79
|
}
|
|
80
|
-
createNodeError(
|
|
81
|
-
let
|
|
82
|
-
switch (
|
|
80
|
+
createNodeError(t) {
|
|
81
|
+
let r;
|
|
82
|
+
switch (t.status) {
|
|
83
83
|
case 400:
|
|
84
|
-
|
|
84
|
+
r = "Le nom choisi est invalide.";
|
|
85
85
|
break;
|
|
86
86
|
case 409:
|
|
87
|
-
|
|
87
|
+
r = "Le nom choisi est d\xE9j\xE0 existant.";
|
|
88
88
|
break;
|
|
89
89
|
case 422:
|
|
90
|
-
|
|
90
|
+
r = "Le nom choisi ne respecte pas le format requis.";
|
|
91
91
|
break;
|
|
92
92
|
default:
|
|
93
|
-
|
|
93
|
+
r = t.message;
|
|
94
94
|
}
|
|
95
|
-
throw new Error(
|
|
95
|
+
throw new Error(r);
|
|
96
96
|
}
|
|
97
|
-
updateNodeError(
|
|
98
|
-
let
|
|
99
|
-
switch (
|
|
97
|
+
updateNodeError(t) {
|
|
98
|
+
let r;
|
|
99
|
+
switch (t.status) {
|
|
100
100
|
case 400:
|
|
101
|
-
|
|
101
|
+
r = "Le nom choisi est invalide.";
|
|
102
102
|
break;
|
|
103
103
|
case 409:
|
|
104
|
-
|
|
104
|
+
r = "Le nom choisi est d\xE9j\xE0 existant.";
|
|
105
105
|
break;
|
|
106
106
|
case 422:
|
|
107
|
-
|
|
107
|
+
r = "Le nom choisi ne respecte pas le format requis.";
|
|
108
108
|
break;
|
|
109
109
|
default:
|
|
110
|
-
|
|
110
|
+
r = t.message;
|
|
111
111
|
}
|
|
112
|
-
throw new Error(
|
|
112
|
+
throw new Error(r);
|
|
113
113
|
}
|
|
114
|
-
deleteNodeError(
|
|
115
|
-
let
|
|
116
|
-
switch (
|
|
114
|
+
deleteNodeError(t, r) {
|
|
115
|
+
let n;
|
|
116
|
+
switch (t.status) {
|
|
117
117
|
case 403:
|
|
118
|
-
|
|
118
|
+
n = `Vous n'avez pas la permission de supprimer ce ${r}.`;
|
|
119
119
|
break;
|
|
120
120
|
case 404:
|
|
121
|
-
|
|
121
|
+
n = `Le ${r} \xE0 supprimer n'existe pas.`;
|
|
122
122
|
break;
|
|
123
123
|
case 409:
|
|
124
|
-
|
|
124
|
+
n = `Vous ne pouvez pas supprimer ce ${r}, ce dernier est verrouill\xE9.`;
|
|
125
125
|
break;
|
|
126
126
|
default:
|
|
127
|
-
|
|
127
|
+
n = t.message;
|
|
128
128
|
}
|
|
129
|
-
throw new Error(
|
|
129
|
+
throw new Error(n);
|
|
130
130
|
}
|
|
131
|
-
updateContentNodeError(
|
|
132
|
-
let
|
|
133
|
-
switch (
|
|
131
|
+
updateContentNodeError(t) {
|
|
132
|
+
let r;
|
|
133
|
+
switch (t.status) {
|
|
134
134
|
case 400:
|
|
135
|
-
|
|
135
|
+
r = "Le type du contenu du noeud n'est pas support\xE9.";
|
|
136
136
|
break;
|
|
137
137
|
case 403:
|
|
138
|
-
|
|
138
|
+
r = "Vous n'avez pas la permission pour mettre \xE0 jour.";
|
|
139
139
|
break;
|
|
140
140
|
case 404:
|
|
141
|
-
|
|
141
|
+
r = "Impossible de mettre \xE0 jour un fichier inexistant.";
|
|
142
142
|
break;
|
|
143
143
|
case 409:
|
|
144
|
-
|
|
144
|
+
r = "Le nom du fichier est d\xE9j\xE0 existant.";
|
|
145
145
|
break;
|
|
146
146
|
case 413:
|
|
147
|
-
|
|
147
|
+
r = "Le contenu d\xE9passe la taille limite individuelle de fichier configur\xE9e pour le r\xE9seau ou le syst\xE8me.";
|
|
148
148
|
break;
|
|
149
149
|
case 422:
|
|
150
|
-
|
|
150
|
+
r = "Exception d'int\xE9grit\xE9 du mod\xE8le incluant un nom de fichier contenant des caract\xE8res non valides.";
|
|
151
151
|
break;
|
|
152
152
|
case 507:
|
|
153
|
-
|
|
153
|
+
r = "Le contenu d\xE9passe la limite de quota de stockage globale configur\xE9e pour le r\xE9seau ou le syst\xE8me.";
|
|
154
154
|
break;
|
|
155
155
|
default:
|
|
156
|
-
|
|
156
|
+
r = t.message;
|
|
157
157
|
}
|
|
158
|
-
throw new Error(
|
|
158
|
+
throw new Error(r);
|
|
159
159
|
}
|
|
160
|
-
copyNodeError(
|
|
161
|
-
let
|
|
162
|
-
switch (
|
|
160
|
+
copyNodeError(t) {
|
|
161
|
+
let r;
|
|
162
|
+
switch (t.status) {
|
|
163
163
|
case 403:
|
|
164
|
-
|
|
164
|
+
r = "Vous n'avez pas la permission pour copier cet \xE9l\xE9ment";
|
|
165
165
|
break;
|
|
166
166
|
case 404:
|
|
167
|
-
|
|
167
|
+
r = "Impossible de copier un \xE9l\xE9ment inexistant.";
|
|
168
168
|
break;
|
|
169
169
|
case 409:
|
|
170
|
-
|
|
170
|
+
r = "Le nom de l'\xE9l\xE9ment entre en conflit avec un \xE9l\xE9ment existant au m\xEAme endroit.";
|
|
171
171
|
break;
|
|
172
172
|
case 422:
|
|
173
|
-
|
|
173
|
+
r = "Exception d'int\xE9grit\xE9 du mod\xE8le incluant un nom d'\xE9l\xE9ment contenant des caract\xE8res non valides.";
|
|
174
174
|
break;
|
|
175
175
|
default:
|
|
176
|
-
|
|
176
|
+
r = t.message;
|
|
177
177
|
}
|
|
178
|
-
throw new Error(
|
|
178
|
+
throw new Error(r);
|
|
179
179
|
}
|
|
180
|
-
moveNodeError(
|
|
181
|
-
let
|
|
182
|
-
switch (
|
|
180
|
+
moveNodeError(t) {
|
|
181
|
+
let r;
|
|
182
|
+
switch (t.status) {
|
|
183
183
|
case 400:
|
|
184
|
-
|
|
184
|
+
r = "Vous ne pouvez pas d\xE9placer l'\xE9l\xE9ment \xE0 l'endroit ou il se trouve.";
|
|
185
185
|
break;
|
|
186
186
|
case 403:
|
|
187
|
-
|
|
187
|
+
r = "Vous n'avez pas la permission pour d\xE9placer cet \xE9l\xE9ment";
|
|
188
188
|
break;
|
|
189
189
|
case 404:
|
|
190
|
-
|
|
190
|
+
r = "Impossible de d\xE9placer un \xE9l\xE9ment inexistant.";
|
|
191
191
|
break;
|
|
192
192
|
case 409:
|
|
193
|
-
|
|
193
|
+
r = "Le nom de l'\xE9l\xE9ment entre en conflit avec un \xE9l\xE9ment existant au m\xEAme endroit.";
|
|
194
194
|
break;
|
|
195
195
|
case 422:
|
|
196
|
-
|
|
196
|
+
r = "Exception d'int\xE9grit\xE9 du mod\xE8le incluant un nom d'\xE9l\xE9ment contenant des caract\xE8res non valides.";
|
|
197
197
|
break;
|
|
198
198
|
default:
|
|
199
|
-
|
|
199
|
+
r = t.message;
|
|
200
200
|
}
|
|
201
|
-
throw new Error(
|
|
201
|
+
throw new Error(r);
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
let
|
|
206
|
-
switch (
|
|
204
|
+
function Kt(e) {
|
|
205
|
+
let t, r = JSON.parse(e.message).error;
|
|
206
|
+
switch (r.statusCode) {
|
|
207
207
|
case 401:
|
|
208
|
-
|
|
208
|
+
t = "L'authentification a \xE9chou\xE9";
|
|
209
209
|
break;
|
|
210
210
|
case 403:
|
|
211
|
-
|
|
211
|
+
t = "Nom d'utilisateur ou mot de passe incorrect.";
|
|
212
212
|
break;
|
|
213
213
|
default:
|
|
214
|
-
|
|
214
|
+
t = r.message;
|
|
215
215
|
}
|
|
216
|
-
throw new Error(
|
|
216
|
+
throw new Error(t);
|
|
217
217
|
}
|
|
218
|
-
function
|
|
219
|
-
|
|
218
|
+
function Qt(e) {
|
|
219
|
+
let t;
|
|
220
|
+
switch (e.status) {
|
|
221
|
+
case 404:
|
|
222
|
+
t = "Impossible de trouver le lool url";
|
|
223
|
+
break;
|
|
224
|
+
case 500:
|
|
225
|
+
t = "Erreur du serveur Alfresco";
|
|
226
|
+
break;
|
|
227
|
+
default:
|
|
228
|
+
t = e.message;
|
|
229
|
+
}
|
|
230
|
+
throw new Error(t);
|
|
220
231
|
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
232
|
+
function Yt(e) {
|
|
233
|
+
let t;
|
|
234
|
+
switch (e.status) {
|
|
235
|
+
case 404:
|
|
236
|
+
t = "Impossible de trouver le token.";
|
|
237
|
+
break;
|
|
238
|
+
case 500:
|
|
239
|
+
t = "Erreur du serveur Alfresco";
|
|
240
|
+
break;
|
|
241
|
+
default:
|
|
242
|
+
t = e.message;
|
|
224
243
|
}
|
|
225
|
-
|
|
226
|
-
|
|
244
|
+
throw new Error(t);
|
|
245
|
+
}
|
|
246
|
+
function Zt(e) {
|
|
247
|
+
let t;
|
|
248
|
+
switch (e.status) {
|
|
249
|
+
case 404:
|
|
250
|
+
t = "Impossible de trouver les extensions compatibles avec Collabora.";
|
|
251
|
+
break;
|
|
252
|
+
case 500:
|
|
253
|
+
t = "Erreur du serveur Collabora";
|
|
254
|
+
break;
|
|
255
|
+
default:
|
|
256
|
+
t = e.message;
|
|
227
257
|
}
|
|
228
|
-
|
|
229
|
-
|
|
258
|
+
throw new Error(t);
|
|
259
|
+
}
|
|
260
|
+
function er(e) {
|
|
261
|
+
let t;
|
|
262
|
+
switch (e.status) {
|
|
263
|
+
case 404:
|
|
264
|
+
t = "Impossible de trouver si l'\xE9l\xE9ment peut \xEAtre ouvert avec Collabora.";
|
|
265
|
+
break;
|
|
266
|
+
case 500:
|
|
267
|
+
t = "Erreur du serveur Collabora";
|
|
268
|
+
break;
|
|
269
|
+
default:
|
|
270
|
+
t = e.message;
|
|
230
271
|
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
272
|
+
throw new Error(t);
|
|
273
|
+
}
|
|
274
|
+
function tr() {
|
|
275
|
+
return new ct();
|
|
276
|
+
}
|
|
277
|
+
class mn {
|
|
278
|
+
getThumbnailUrl(t) {
|
|
279
|
+
return he().getDocumentThumbnailUrl(t);
|
|
280
|
+
}
|
|
281
|
+
getPreviewUrl(t) {
|
|
282
|
+
return he().getDocumentPreviewUrl(t);
|
|
283
|
+
}
|
|
284
|
+
getContentUrl(t) {
|
|
285
|
+
return he().getContentUrl(t);
|
|
286
|
+
}
|
|
287
|
+
uploadFile(t, r, n) {
|
|
288
|
+
return Xt().uploadFile(n, null, t, null, r).on("progress", (s) => {
|
|
289
|
+
console.log("Percent :" + s.percent);
|
|
234
290
|
}).then(
|
|
235
|
-
(
|
|
236
|
-
(
|
|
237
|
-
|
|
291
|
+
(s) => this.createAllRendition(s.entry.id).then(() => s).catch((i) => i),
|
|
292
|
+
(s) => {
|
|
293
|
+
tr().uploadFileError(s, n.name);
|
|
238
294
|
}
|
|
239
295
|
);
|
|
240
296
|
}
|
|
241
|
-
createRendition(
|
|
242
|
-
return
|
|
243
|
-
id:
|
|
297
|
+
createRendition(t, r) {
|
|
298
|
+
return $e().createRendition(t, {
|
|
299
|
+
id: r
|
|
244
300
|
});
|
|
245
301
|
}
|
|
246
|
-
createAllRendition(
|
|
247
|
-
return
|
|
302
|
+
createAllRendition(t) {
|
|
303
|
+
return $e().createRendition(t, [
|
|
248
304
|
{
|
|
249
305
|
id: "doclib"
|
|
250
306
|
},
|
|
@@ -254,12 +310,12 @@ class et {
|
|
|
254
310
|
]);
|
|
255
311
|
}
|
|
256
312
|
}
|
|
257
|
-
function
|
|
258
|
-
return new
|
|
313
|
+
function $() {
|
|
314
|
+
return new ct();
|
|
259
315
|
}
|
|
260
|
-
class
|
|
261
|
-
getNode(
|
|
262
|
-
const
|
|
316
|
+
class En {
|
|
317
|
+
getNode(t) {
|
|
318
|
+
const r = {
|
|
263
319
|
include: [
|
|
264
320
|
"isFavorite",
|
|
265
321
|
"properties",
|
|
@@ -267,18 +323,18 @@ class tt {
|
|
|
267
323
|
"permissions"
|
|
268
324
|
]
|
|
269
325
|
};
|
|
270
|
-
return
|
|
326
|
+
return k().getNode(t, r).then((n) => n.entry);
|
|
271
327
|
}
|
|
272
|
-
createNode(
|
|
273
|
-
return
|
|
274
|
-
(
|
|
275
|
-
(
|
|
276
|
-
|
|
328
|
+
createNode(t, r) {
|
|
329
|
+
return k().createNode(t, r).then(
|
|
330
|
+
(n) => n,
|
|
331
|
+
(n) => {
|
|
332
|
+
$().createNodeError(n);
|
|
277
333
|
}
|
|
278
334
|
);
|
|
279
335
|
}
|
|
280
|
-
getChildren(
|
|
281
|
-
const
|
|
336
|
+
getChildren(t) {
|
|
337
|
+
const r = {
|
|
282
338
|
include: [
|
|
283
339
|
"isFavorite",
|
|
284
340
|
"properties",
|
|
@@ -286,47 +342,47 @@ class tt {
|
|
|
286
342
|
"permissions"
|
|
287
343
|
]
|
|
288
344
|
};
|
|
289
|
-
return
|
|
290
|
-
let
|
|
291
|
-
(
|
|
345
|
+
return k().listNodeChildren(t, r).then((n) => {
|
|
346
|
+
let s = n.list.entries.map((o) => o.entry), i = s.filter(
|
|
347
|
+
(o) => o.name === "documentLibrary"
|
|
292
348
|
)[0];
|
|
293
|
-
return
|
|
294
|
-
documentLibrary:
|
|
295
|
-
subChildren:
|
|
296
|
-
})) :
|
|
349
|
+
return i ? this.getChildren(i.id).then((o) => ({
|
|
350
|
+
documentLibrary: i,
|
|
351
|
+
subChildren: o
|
|
352
|
+
})) : s;
|
|
297
353
|
});
|
|
298
354
|
}
|
|
299
|
-
updateNode(
|
|
300
|
-
return
|
|
301
|
-
(
|
|
302
|
-
function(
|
|
303
|
-
|
|
355
|
+
updateNode(t, r) {
|
|
356
|
+
return k().updateNode(t, r).then(
|
|
357
|
+
(n) => n,
|
|
358
|
+
function(n) {
|
|
359
|
+
$().updateNodeError(n);
|
|
304
360
|
}
|
|
305
361
|
);
|
|
306
362
|
}
|
|
307
|
-
deleteNode(
|
|
308
|
-
const
|
|
309
|
-
return
|
|
310
|
-
(
|
|
311
|
-
function(
|
|
312
|
-
|
|
363
|
+
deleteNode(t, r) {
|
|
364
|
+
const n = {};
|
|
365
|
+
return k().deleteNode(t, n).then(
|
|
366
|
+
(s) => s,
|
|
367
|
+
function(s) {
|
|
368
|
+
$().deleteNodeError(s, r);
|
|
313
369
|
}
|
|
314
370
|
);
|
|
315
371
|
}
|
|
316
|
-
getParents(
|
|
317
|
-
const
|
|
372
|
+
getParents(t) {
|
|
373
|
+
const r = {
|
|
318
374
|
include: ["isFavorite", "properties"]
|
|
319
375
|
};
|
|
320
|
-
return
|
|
321
|
-
let
|
|
322
|
-
return
|
|
323
|
-
documentLibrary:
|
|
324
|
-
supParent:
|
|
325
|
-
})) :
|
|
376
|
+
return k().listParents(t, r).then((n) => {
|
|
377
|
+
let s = n.list.entries.map((o) => o.entry), i = s[0];
|
|
378
|
+
return i && i.name === "documentLibrary" ? this.getParents(i.id).then((o) => ({
|
|
379
|
+
documentLibrary: i,
|
|
380
|
+
supParent: o
|
|
381
|
+
})) : s[0];
|
|
326
382
|
});
|
|
327
383
|
}
|
|
328
|
-
getDocumentLibrary(
|
|
329
|
-
const
|
|
384
|
+
getDocumentLibrary(t) {
|
|
385
|
+
const r = {
|
|
330
386
|
include: [
|
|
331
387
|
"isFavorite",
|
|
332
388
|
"properties",
|
|
@@ -334,69 +390,69 @@ class tt {
|
|
|
334
390
|
"permissions"
|
|
335
391
|
]
|
|
336
392
|
};
|
|
337
|
-
return
|
|
393
|
+
return k().listNodeChildren(t, r).then((n) => n.list.entries.map((i) => i.entry).find((i) => i.name === "documentLibrary"));
|
|
338
394
|
}
|
|
339
|
-
updateContentNode(
|
|
340
|
-
return
|
|
341
|
-
(
|
|
342
|
-
function(
|
|
343
|
-
|
|
395
|
+
updateContentNode(t, r) {
|
|
396
|
+
return k().updateNodeContent(t, r).then(
|
|
397
|
+
(n) => n,
|
|
398
|
+
function(n) {
|
|
399
|
+
$().updateContentNodeError(n);
|
|
344
400
|
}
|
|
345
401
|
);
|
|
346
402
|
}
|
|
347
|
-
copyNode(
|
|
348
|
-
const
|
|
349
|
-
targetParentId:
|
|
350
|
-
name:
|
|
403
|
+
copyNode(t, r, n) {
|
|
404
|
+
const s = n !== null ? {
|
|
405
|
+
targetParentId: r,
|
|
406
|
+
name: n
|
|
351
407
|
} : {
|
|
352
|
-
targetParentId:
|
|
353
|
-
},
|
|
408
|
+
targetParentId: r
|
|
409
|
+
}, i = {
|
|
354
410
|
include: ["path"]
|
|
355
411
|
};
|
|
356
|
-
return
|
|
357
|
-
(
|
|
358
|
-
function(
|
|
359
|
-
|
|
412
|
+
return k().copyNode(t, s, i).then(
|
|
413
|
+
(o) => o,
|
|
414
|
+
function(o) {
|
|
415
|
+
$().copyNodeError(o);
|
|
360
416
|
}
|
|
361
417
|
);
|
|
362
418
|
}
|
|
363
|
-
moveNode(
|
|
364
|
-
const
|
|
365
|
-
targetParentId:
|
|
366
|
-
name:
|
|
419
|
+
moveNode(t, r, n) {
|
|
420
|
+
const s = n !== null ? {
|
|
421
|
+
targetParentId: r,
|
|
422
|
+
name: n
|
|
367
423
|
} : {
|
|
368
|
-
targetParentId:
|
|
369
|
-
},
|
|
424
|
+
targetParentId: r
|
|
425
|
+
}, i = {
|
|
370
426
|
include: ["path"]
|
|
371
427
|
};
|
|
372
|
-
return
|
|
373
|
-
(
|
|
374
|
-
function(
|
|
375
|
-
|
|
428
|
+
return k().moveNode(t, s, i).then(
|
|
429
|
+
(o) => o,
|
|
430
|
+
function(o) {
|
|
431
|
+
$().moveNodeError(o);
|
|
376
432
|
}
|
|
377
433
|
);
|
|
378
434
|
}
|
|
379
435
|
}
|
|
380
|
-
class
|
|
436
|
+
class bn {
|
|
381
437
|
getPublicLink() {
|
|
382
438
|
}
|
|
383
439
|
createPublicLink() {
|
|
384
440
|
}
|
|
385
441
|
}
|
|
386
|
-
class
|
|
442
|
+
class wn {
|
|
387
443
|
getWorkspaces() {
|
|
388
|
-
const
|
|
444
|
+
const t = {
|
|
389
445
|
skipCount: 0,
|
|
390
446
|
maxItems: 100
|
|
391
447
|
};
|
|
392
|
-
return
|
|
393
|
-
throw new Error(
|
|
448
|
+
return L().listSites(t).then((r) => r.list.entries.map((n) => n.entry)).catch((r) => {
|
|
449
|
+
throw new Error(r.message);
|
|
394
450
|
});
|
|
395
451
|
}
|
|
396
|
-
searchAllWorkspaces(
|
|
397
|
-
const
|
|
452
|
+
searchAllWorkspaces(t = "") {
|
|
453
|
+
const r = {
|
|
398
454
|
query: {
|
|
399
|
-
query: "TYPE: 'st:site' " +
|
|
455
|
+
query: "TYPE: 'st:site' " + t
|
|
400
456
|
},
|
|
401
457
|
include: ["properties"],
|
|
402
458
|
paging: {
|
|
@@ -405,35 +461,35 @@ class st {
|
|
|
405
461
|
},
|
|
406
462
|
localization: { locales: ["fr_FR"] }
|
|
407
463
|
};
|
|
408
|
-
return
|
|
409
|
-
let
|
|
410
|
-
return
|
|
411
|
-
})).catch((
|
|
412
|
-
throw new Error(
|
|
464
|
+
return Gt().search(r).then((n) => n.list.entries.map((s) => {
|
|
465
|
+
let i = s.entry;
|
|
466
|
+
return i.title = s.entry.properties["cm:title"], i.visibility = s.entry.properties["st:siteVisibility"], i.typeEspace = s.entry.properties["pm:typeEspace"], i;
|
|
467
|
+
})).catch((n) => {
|
|
468
|
+
throw new Error(n.message);
|
|
413
469
|
});
|
|
414
470
|
}
|
|
415
|
-
getWorkspace(
|
|
416
|
-
const
|
|
417
|
-
return
|
|
418
|
-
throw new Error(
|
|
471
|
+
getWorkspace(t) {
|
|
472
|
+
const r = {};
|
|
473
|
+
return L().getSite(t, r).then((n) => n.entry).catch((n) => {
|
|
474
|
+
throw new Error(n.message);
|
|
419
475
|
});
|
|
420
476
|
}
|
|
421
|
-
getWorkspaceMemberships(
|
|
422
|
-
const
|
|
423
|
-
return
|
|
424
|
-
throw new Error(
|
|
477
|
+
getWorkspaceMemberships(t) {
|
|
478
|
+
const r = {};
|
|
479
|
+
return L().listSiteMemberships(t, r).then((n) => n.list.entries.map((s) => s.entry)).catch((n) => {
|
|
480
|
+
throw new Error(n.message);
|
|
425
481
|
});
|
|
426
482
|
}
|
|
427
|
-
createWorkspace(
|
|
428
|
-
const
|
|
429
|
-
id:
|
|
430
|
-
title:
|
|
431
|
-
description:
|
|
432
|
-
visibility:
|
|
483
|
+
createWorkspace(t, r, n, s) {
|
|
484
|
+
const i = {
|
|
485
|
+
id: t,
|
|
486
|
+
title: r,
|
|
487
|
+
description: n,
|
|
488
|
+
visibility: s
|
|
433
489
|
};
|
|
434
|
-
return
|
|
490
|
+
return L().createSite(i).then((o) => o).catch((o) => {
|
|
435
491
|
let u;
|
|
436
|
-
switch (
|
|
492
|
+
switch (o.status) {
|
|
437
493
|
case 400:
|
|
438
494
|
u = "L'identifiant choisi ne respecte pas le format requis.";
|
|
439
495
|
break;
|
|
@@ -441,29 +497,29 @@ class st {
|
|
|
441
497
|
u = "L'identifiant choisi est d\xE9j\xE0 existant.";
|
|
442
498
|
break;
|
|
443
499
|
default:
|
|
444
|
-
u =
|
|
500
|
+
u = o.message;
|
|
445
501
|
}
|
|
446
502
|
throw new Error(u);
|
|
447
503
|
});
|
|
448
504
|
}
|
|
449
|
-
async getWorskpaceUuid(
|
|
450
|
-
const
|
|
505
|
+
async getWorskpaceUuid(t) {
|
|
506
|
+
const r = {
|
|
451
507
|
skipCount: 0,
|
|
452
508
|
maxItems: 100
|
|
453
509
|
};
|
|
454
|
-
let
|
|
455
|
-
const
|
|
456
|
-
for (let
|
|
457
|
-
|
|
458
|
-
return
|
|
510
|
+
let n = null;
|
|
511
|
+
const s = (await L.listSiteContainers(t, r)).list.entries;
|
|
512
|
+
for (let i in s)
|
|
513
|
+
s[i].entry.folderId === "documentLibrary" && (n = s[i].entry.id);
|
|
514
|
+
return n;
|
|
459
515
|
}
|
|
460
|
-
updateWorkspaceMemberRole(
|
|
461
|
-
const
|
|
462
|
-
role:
|
|
463
|
-
},
|
|
464
|
-
return
|
|
516
|
+
updateWorkspaceMemberRole(t, r, n) {
|
|
517
|
+
const s = {
|
|
518
|
+
role: n
|
|
519
|
+
}, i = {};
|
|
520
|
+
return L().updateSiteMembership(t, r, s, i).then((o) => o).catch((o) => {
|
|
465
521
|
let u;
|
|
466
|
-
switch (
|
|
522
|
+
switch (o.status) {
|
|
467
523
|
case 404:
|
|
468
524
|
u = "L'identifiant entr\xE9 ne correspond \xE0 aucun utilisateur.";
|
|
469
525
|
break;
|
|
@@ -471,38 +527,38 @@ class st {
|
|
|
471
527
|
u = "Au moins un utilisateur doit \xEAtre Gestionnaire. Si ce n'est pas le cas, vous n'avez pas la permission de modifier le r\xF4le de cet utilisateur.";
|
|
472
528
|
break;
|
|
473
529
|
default:
|
|
474
|
-
u =
|
|
530
|
+
u = o.message;
|
|
475
531
|
}
|
|
476
532
|
throw new Error(u);
|
|
477
533
|
});
|
|
478
534
|
}
|
|
479
|
-
deleteWorkspaceMember(
|
|
480
|
-
return
|
|
481
|
-
let
|
|
482
|
-
switch (
|
|
535
|
+
deleteWorkspaceMember(t, r) {
|
|
536
|
+
return L().deleteSiteMembership(t, r).then(() => r).catch((n) => {
|
|
537
|
+
let s;
|
|
538
|
+
switch (n.status) {
|
|
483
539
|
case 400:
|
|
484
|
-
|
|
540
|
+
s = "Impossible de supprimer le seul Gestionnaire de l'espace.";
|
|
485
541
|
break;
|
|
486
542
|
case 404:
|
|
487
|
-
|
|
543
|
+
s = "Vous ne pouvez pas supprimer un utilisateur inexistant.";
|
|
488
544
|
break;
|
|
489
545
|
case 422:
|
|
490
|
-
|
|
546
|
+
s = "Vous n'avez pas la permission de supprimer l'acc\xE8s \xE0 cet utilisateur.";
|
|
491
547
|
break;
|
|
492
548
|
default:
|
|
493
|
-
|
|
549
|
+
s = n.message;
|
|
494
550
|
}
|
|
495
|
-
throw new Error(
|
|
551
|
+
throw new Error(s);
|
|
496
552
|
});
|
|
497
553
|
}
|
|
498
|
-
addWorkspaceMember(
|
|
499
|
-
const
|
|
500
|
-
role:
|
|
501
|
-
id:
|
|
502
|
-
},
|
|
503
|
-
return
|
|
554
|
+
addWorkspaceMember(t, r, n) {
|
|
555
|
+
const s = {
|
|
556
|
+
role: n,
|
|
557
|
+
id: r
|
|
558
|
+
}, i = {};
|
|
559
|
+
return L().createSiteMembership(t, s, i).then((o) => o).catch((o) => {
|
|
504
560
|
let u;
|
|
505
|
-
switch (
|
|
561
|
+
switch (o.status) {
|
|
506
562
|
case 403:
|
|
507
563
|
u = "Vous ne pouvez pas inviter sur ce site.";
|
|
508
564
|
break;
|
|
@@ -513,343 +569,343 @@ class st {
|
|
|
513
569
|
u = "L'utilisateur a d\xE9j\xE0 acc\xE8s \xE0 cet espace.";
|
|
514
570
|
break;
|
|
515
571
|
default:
|
|
516
|
-
u =
|
|
572
|
+
u = o.message;
|
|
517
573
|
}
|
|
518
574
|
throw new Error(u);
|
|
519
575
|
});
|
|
520
576
|
}
|
|
521
|
-
updateWorkspaceType(
|
|
522
|
-
const
|
|
577
|
+
updateWorkspaceType(t, r) {
|
|
578
|
+
const n = {
|
|
523
579
|
properties: {
|
|
524
|
-
"pm:typeEspace":
|
|
580
|
+
"pm:typeEspace": r
|
|
525
581
|
}
|
|
526
582
|
};
|
|
527
|
-
return
|
|
528
|
-
let
|
|
529
|
-
switch (
|
|
583
|
+
return k().updateNode(t, n).then((s) => s).catch((s) => {
|
|
584
|
+
let i;
|
|
585
|
+
switch (s.status) {
|
|
530
586
|
case 404:
|
|
531
|
-
|
|
587
|
+
i = "Vous ne pouvez pas mettre \xE0 jour un espace inexistant.";
|
|
532
588
|
break;
|
|
533
589
|
default:
|
|
534
|
-
|
|
590
|
+
i = s.message;
|
|
535
591
|
}
|
|
536
|
-
throw new Error(
|
|
592
|
+
throw new Error(i);
|
|
537
593
|
});
|
|
538
594
|
}
|
|
539
595
|
async getAllUsers() {
|
|
540
|
-
return
|
|
541
|
-
let
|
|
542
|
-
return
|
|
543
|
-
firstname:
|
|
544
|
-
lastname:
|
|
545
|
-
email:
|
|
546
|
-
id:
|
|
547
|
-
label: `${
|
|
548
|
-
label2: `${
|
|
596
|
+
return ve().listPeople().then((t) => t.list.entries.map((r) => {
|
|
597
|
+
let n = r.entry;
|
|
598
|
+
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
|
+
firstname: n.firstName,
|
|
600
|
+
lastname: n.lastName,
|
|
601
|
+
email: n.email,
|
|
602
|
+
id: n.id,
|
|
603
|
+
label: `${n.firstName} ${n.lastName}`,
|
|
604
|
+
label2: `${n.lastName} ${n.firstName}`
|
|
549
605
|
};
|
|
550
606
|
}));
|
|
551
607
|
}
|
|
552
|
-
deleteWorkspace(
|
|
553
|
-
const
|
|
554
|
-
return
|
|
608
|
+
deleteWorkspace(t) {
|
|
609
|
+
const r = {};
|
|
610
|
+
return L().deleteSite(t, r).then(() => {
|
|
555
611
|
console.log("Site deletion successful.");
|
|
556
|
-
}).catch((
|
|
557
|
-
throw new Error(
|
|
612
|
+
}).catch((n) => {
|
|
613
|
+
throw new Error(n.message);
|
|
558
614
|
});
|
|
559
615
|
}
|
|
560
|
-
updateWorkspace(
|
|
561
|
-
return
|
|
562
|
-
throw new Error(
|
|
616
|
+
updateWorkspace(t, r) {
|
|
617
|
+
return L().updateSite(t, r).then((n) => n).catch((n) => {
|
|
618
|
+
throw new Error(n.message);
|
|
563
619
|
});
|
|
564
620
|
}
|
|
565
621
|
}
|
|
566
|
-
var
|
|
567
|
-
function
|
|
568
|
-
return Array.isArray(
|
|
622
|
+
var rr = !1;
|
|
623
|
+
function se(e, t, r) {
|
|
624
|
+
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, r), r) : (e[t] = r, r);
|
|
569
625
|
}
|
|
570
|
-
function
|
|
571
|
-
if (Array.isArray(
|
|
572
|
-
|
|
626
|
+
function Oe(e, t) {
|
|
627
|
+
if (Array.isArray(e)) {
|
|
628
|
+
e.splice(t, 1);
|
|
573
629
|
return;
|
|
574
630
|
}
|
|
575
|
-
delete
|
|
631
|
+
delete e[t];
|
|
576
632
|
}
|
|
577
633
|
/*!
|
|
578
634
|
* pinia v2.0.17
|
|
579
635
|
* (c) 2022 Eduardo San Martin Morote
|
|
580
636
|
* @license MIT
|
|
581
637
|
*/
|
|
582
|
-
let
|
|
583
|
-
const
|
|
584
|
-
function
|
|
585
|
-
return
|
|
586
|
-
}
|
|
587
|
-
var
|
|
588
|
-
(function(
|
|
589
|
-
|
|
590
|
-
})(
|
|
591
|
-
const
|
|
592
|
-
function
|
|
593
|
-
for (const
|
|
594
|
-
const
|
|
595
|
-
if (!(
|
|
638
|
+
let X;
|
|
639
|
+
const ae = (e) => X = e, nr = process.env.NODE_ENV !== "production" ? Symbol("pinia") : Symbol();
|
|
640
|
+
function V(e) {
|
|
641
|
+
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
642
|
+
}
|
|
643
|
+
var Q;
|
|
644
|
+
(function(e) {
|
|
645
|
+
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
646
|
+
})(Q || (Q = {}));
|
|
647
|
+
const G = typeof window < "u";
|
|
648
|
+
function ut(e, t) {
|
|
649
|
+
for (const r in t) {
|
|
650
|
+
const n = t[r];
|
|
651
|
+
if (!(r in e))
|
|
596
652
|
continue;
|
|
597
|
-
const
|
|
598
|
-
|
|
653
|
+
const s = e[r];
|
|
654
|
+
V(s) && V(n) && !Y(n) && !De(n) ? e[r] = ut(s, n) : e[r] = n;
|
|
599
655
|
}
|
|
600
|
-
return
|
|
656
|
+
return e;
|
|
601
657
|
}
|
|
602
|
-
const
|
|
658
|
+
const lt = () => {
|
|
603
659
|
};
|
|
604
|
-
function
|
|
605
|
-
|
|
606
|
-
const
|
|
607
|
-
const
|
|
608
|
-
|
|
660
|
+
function ze(e, t, r, n = lt) {
|
|
661
|
+
e.push(t);
|
|
662
|
+
const s = () => {
|
|
663
|
+
const i = e.indexOf(t);
|
|
664
|
+
i > -1 && (e.splice(i, 1), n());
|
|
609
665
|
};
|
|
610
|
-
return !
|
|
666
|
+
return !r && ot() && Jt(s), s;
|
|
611
667
|
}
|
|
612
|
-
function
|
|
613
|
-
|
|
614
|
-
|
|
668
|
+
function z(e, ...t) {
|
|
669
|
+
e.slice().forEach((r) => {
|
|
670
|
+
r(...t);
|
|
615
671
|
});
|
|
616
672
|
}
|
|
617
|
-
function
|
|
618
|
-
for (const
|
|
619
|
-
if (!
|
|
673
|
+
function Pe(e, t) {
|
|
674
|
+
for (const r in t) {
|
|
675
|
+
if (!t.hasOwnProperty(r))
|
|
620
676
|
continue;
|
|
621
|
-
const
|
|
622
|
-
|
|
623
|
-
}
|
|
624
|
-
return
|
|
625
|
-
}
|
|
626
|
-
const
|
|
627
|
-
function
|
|
628
|
-
return !
|
|
629
|
-
}
|
|
630
|
-
const { assign:
|
|
631
|
-
function
|
|
632
|
-
return !!(
|
|
633
|
-
}
|
|
634
|
-
function
|
|
635
|
-
const { state:
|
|
636
|
-
let
|
|
637
|
-
function
|
|
638
|
-
!u && (process.env.NODE_ENV === "production" || !
|
|
639
|
-
const
|
|
640
|
-
return
|
|
641
|
-
|
|
642
|
-
const
|
|
643
|
-
return
|
|
644
|
-
})),
|
|
645
|
-
}
|
|
646
|
-
return
|
|
647
|
-
const
|
|
648
|
-
this.$patch((
|
|
649
|
-
|
|
677
|
+
const n = t[r], s = e[r];
|
|
678
|
+
V(s) && V(n) && e.hasOwnProperty(r) && !Y(n) && !De(n) ? e[r] = Pe(s, n) : e[r] = n;
|
|
679
|
+
}
|
|
680
|
+
return e;
|
|
681
|
+
}
|
|
682
|
+
const sr = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : Symbol();
|
|
683
|
+
function or(e) {
|
|
684
|
+
return !V(e) || !e.hasOwnProperty(sr);
|
|
685
|
+
}
|
|
686
|
+
const { assign: x } = Object;
|
|
687
|
+
function qe(e) {
|
|
688
|
+
return !!(Y(e) && e.effect);
|
|
689
|
+
}
|
|
690
|
+
function He(e, t, r, n) {
|
|
691
|
+
const { state: s, actions: i, getters: o } = t, u = r.state.value[e];
|
|
692
|
+
let f;
|
|
693
|
+
function c() {
|
|
694
|
+
!u && (process.env.NODE_ENV === "production" || !n) && (r.state.value[e] = s ? s() : {});
|
|
695
|
+
const d = process.env.NODE_ENV !== "production" && n ? Me(it(s ? s() : {}).value) : Me(r.state.value[e]);
|
|
696
|
+
return x(d, i, Object.keys(o || {}).reduce((m, g) => (process.env.NODE_ENV !== "production" && g in d && console.warn(`[\u{1F34D}]: A getter cannot have the same name as another state property. Rename one of them. Found with "${g}" in store "${e}".`), m[g] = B(at(() => {
|
|
697
|
+
ae(r);
|
|
698
|
+
const h = r._s.get(e);
|
|
699
|
+
return o[g].call(h, h);
|
|
700
|
+
})), m), {}));
|
|
701
|
+
}
|
|
702
|
+
return f = ke(e, c, t, r, n, !0), f.$reset = function() {
|
|
703
|
+
const m = s ? s() : {};
|
|
704
|
+
this.$patch((g) => {
|
|
705
|
+
x(g, m);
|
|
650
706
|
});
|
|
651
|
-
},
|
|
707
|
+
}, f;
|
|
652
708
|
}
|
|
653
|
-
function
|
|
654
|
-
let
|
|
655
|
-
const u =
|
|
656
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
709
|
+
function ke(e, t, r = {}, n, s, i) {
|
|
710
|
+
let o;
|
|
711
|
+
const u = x({ actions: {} }, r);
|
|
712
|
+
if (process.env.NODE_ENV !== "production" && !n._e.active)
|
|
657
713
|
throw new Error("Pinia destroyed");
|
|
658
|
-
const
|
|
714
|
+
const f = {
|
|
659
715
|
deep: !0
|
|
660
716
|
};
|
|
661
|
-
process.env.NODE_ENV !== "production" && !
|
|
662
|
-
|
|
717
|
+
process.env.NODE_ENV !== "production" && !rr && (f.onTrigger = (b) => {
|
|
718
|
+
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."));
|
|
663
719
|
});
|
|
664
|
-
let
|
|
665
|
-
const
|
|
666
|
-
!
|
|
667
|
-
const
|
|
668
|
-
let
|
|
669
|
-
function
|
|
670
|
-
let
|
|
671
|
-
|
|
672
|
-
type:
|
|
673
|
-
storeId:
|
|
674
|
-
events:
|
|
675
|
-
}) : (
|
|
676
|
-
type:
|
|
677
|
-
payload:
|
|
678
|
-
storeId:
|
|
679
|
-
events:
|
|
720
|
+
let c, d, m = B([]), g = B([]), h;
|
|
721
|
+
const l = n.state.value[e];
|
|
722
|
+
!i && !l && (process.env.NODE_ENV === "production" || !s) && (n.state.value[e] = {});
|
|
723
|
+
const N = it({});
|
|
724
|
+
let C;
|
|
725
|
+
function A(b) {
|
|
726
|
+
let p;
|
|
727
|
+
c = d = !1, process.env.NODE_ENV !== "production" && (h = []), typeof b == "function" ? (b(n.state.value[e]), p = {
|
|
728
|
+
type: Q.patchFunction,
|
|
729
|
+
storeId: e,
|
|
730
|
+
events: h
|
|
731
|
+
}) : (Pe(n.state.value[e], b), p = {
|
|
732
|
+
type: Q.patchObject,
|
|
733
|
+
payload: b,
|
|
734
|
+
storeId: e,
|
|
735
|
+
events: h
|
|
680
736
|
});
|
|
681
|
-
const
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
}),
|
|
685
|
-
}
|
|
686
|
-
const
|
|
687
|
-
throw new Error(`\u{1F34D}: Store "${
|
|
688
|
-
} :
|
|
689
|
-
function
|
|
690
|
-
|
|
691
|
-
}
|
|
692
|
-
function
|
|
737
|
+
const w = C = Symbol();
|
|
738
|
+
Ve().then(() => {
|
|
739
|
+
C === w && (c = !0);
|
|
740
|
+
}), d = !0, z(m, p, n.state.value[e]);
|
|
741
|
+
}
|
|
742
|
+
const F = process.env.NODE_ENV !== "production" ? () => {
|
|
743
|
+
throw new Error(`\u{1F34D}: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
744
|
+
} : lt;
|
|
745
|
+
function M() {
|
|
746
|
+
o.stop(), m = [], g = [], n._s.delete(e);
|
|
747
|
+
}
|
|
748
|
+
function re(b, p) {
|
|
693
749
|
return function() {
|
|
694
|
-
|
|
695
|
-
const
|
|
696
|
-
function
|
|
697
|
-
|
|
750
|
+
ae(n);
|
|
751
|
+
const w = Array.from(arguments), O = [], P = [];
|
|
752
|
+
function xt(_) {
|
|
753
|
+
O.push(_);
|
|
698
754
|
}
|
|
699
|
-
function
|
|
700
|
-
|
|
755
|
+
function Ct(_) {
|
|
756
|
+
P.push(_);
|
|
701
757
|
}
|
|
702
|
-
|
|
703
|
-
args:
|
|
704
|
-
name:
|
|
705
|
-
store:
|
|
706
|
-
after:
|
|
707
|
-
onError:
|
|
758
|
+
z(g, {
|
|
759
|
+
args: w,
|
|
760
|
+
name: b,
|
|
761
|
+
store: E,
|
|
762
|
+
after: xt,
|
|
763
|
+
onError: Ct
|
|
708
764
|
});
|
|
709
|
-
let
|
|
765
|
+
let W;
|
|
710
766
|
try {
|
|
711
|
-
|
|
712
|
-
} catch (
|
|
713
|
-
throw
|
|
767
|
+
W = p.apply(this && this.$id === e ? this : E, w);
|
|
768
|
+
} catch (_) {
|
|
769
|
+
throw z(P, _), _;
|
|
714
770
|
}
|
|
715
|
-
return
|
|
771
|
+
return W instanceof Promise ? W.then((_) => (z(O, _), _)).catch((_) => (z(P, _), Promise.reject(_))) : (z(O, W), W);
|
|
716
772
|
};
|
|
717
773
|
}
|
|
718
|
-
const
|
|
774
|
+
const ne = /* @__PURE__ */ B({
|
|
719
775
|
actions: {},
|
|
720
776
|
getters: {},
|
|
721
777
|
state: [],
|
|
722
|
-
hotState:
|
|
723
|
-
}),
|
|
724
|
-
_p:
|
|
725
|
-
$id:
|
|
726
|
-
$onAction:
|
|
727
|
-
$patch:
|
|
728
|
-
$reset:
|
|
729
|
-
$subscribe(
|
|
730
|
-
const
|
|
731
|
-
(
|
|
732
|
-
storeId:
|
|
733
|
-
type:
|
|
734
|
-
events:
|
|
735
|
-
},
|
|
736
|
-
},
|
|
737
|
-
return
|
|
778
|
+
hotState: N
|
|
779
|
+
}), kt = {
|
|
780
|
+
_p: n,
|
|
781
|
+
$id: e,
|
|
782
|
+
$onAction: ze.bind(null, g),
|
|
783
|
+
$patch: A,
|
|
784
|
+
$reset: F,
|
|
785
|
+
$subscribe(b, p = {}) {
|
|
786
|
+
const w = ze(m, b, p.detached, () => O()), O = o.run(() => zt(() => n.state.value[e], (P) => {
|
|
787
|
+
(p.flush === "sync" ? d : c) && b({
|
|
788
|
+
storeId: e,
|
|
789
|
+
type: Q.direct,
|
|
790
|
+
events: h
|
|
791
|
+
}, P);
|
|
792
|
+
}, x({}, f, p)));
|
|
793
|
+
return w;
|
|
738
794
|
},
|
|
739
|
-
$dispose:
|
|
740
|
-
},
|
|
741
|
-
process.env.NODE_ENV !== "production" &&
|
|
742
|
-
_customProperties:
|
|
743
|
-
_hmrPayload:
|
|
795
|
+
$dispose: M
|
|
796
|
+
}, E = qt(x(
|
|
797
|
+
process.env.NODE_ENV !== "production" && G ? {
|
|
798
|
+
_customProperties: B(/* @__PURE__ */ new Set()),
|
|
799
|
+
_hmrPayload: ne
|
|
744
800
|
} : {},
|
|
745
|
-
|
|
801
|
+
kt
|
|
746
802
|
));
|
|
747
|
-
|
|
748
|
-
const
|
|
749
|
-
for (const
|
|
750
|
-
const
|
|
751
|
-
if (
|
|
752
|
-
process.env.NODE_ENV !== "production" &&
|
|
753
|
-
else if (typeof
|
|
754
|
-
const
|
|
755
|
-
|
|
803
|
+
n._s.set(e, E);
|
|
804
|
+
const j = n._e.run(() => (o = Ht(), o.run(() => t())));
|
|
805
|
+
for (const b in j) {
|
|
806
|
+
const p = j[b];
|
|
807
|
+
if (Y(p) && !qe(p) || De(p))
|
|
808
|
+
process.env.NODE_ENV !== "production" && s ? se(N.value, b, fe(j, b)) : i || (l && or(p) && (Y(p) ? p.value = l[b] : Pe(p, l[b])), n.state.value[e][b] = p), process.env.NODE_ENV !== "production" && ne.state.push(b);
|
|
809
|
+
else if (typeof p == "function") {
|
|
810
|
+
const w = process.env.NODE_ENV !== "production" && s ? p : re(b, p);
|
|
811
|
+
j[b] = w, process.env.NODE_ENV !== "production" && (ne.actions[b] = p), u.actions[b] = p;
|
|
756
812
|
} else
|
|
757
|
-
process.env.NODE_ENV !== "production" &&
|
|
813
|
+
process.env.NODE_ENV !== "production" && qe(p) && (ne.getters[b] = i ? r.getters[b] : p, G && (j._getters || (j._getters = B([]))).push(b));
|
|
758
814
|
}
|
|
759
|
-
if (
|
|
760
|
-
get: () => process.env.NODE_ENV !== "production" &&
|
|
761
|
-
set: (
|
|
762
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
815
|
+
if (x(E, j), x(Wt(E), j), Object.defineProperty(E, "$state", {
|
|
816
|
+
get: () => process.env.NODE_ENV !== "production" && s ? N.value : n.state.value[e],
|
|
817
|
+
set: (b) => {
|
|
818
|
+
if (process.env.NODE_ENV !== "production" && s)
|
|
763
819
|
throw new Error("cannot set hotState");
|
|
764
|
-
|
|
765
|
-
|
|
820
|
+
A((p) => {
|
|
821
|
+
x(p, b);
|
|
766
822
|
});
|
|
767
823
|
}
|
|
768
824
|
}), process.env.NODE_ENV !== "production") {
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
if (
|
|
772
|
-
const
|
|
773
|
-
typeof
|
|
825
|
+
E._hotUpdate = B((p) => {
|
|
826
|
+
E._hotUpdating = !0, p._hmrPayload.state.forEach((w) => {
|
|
827
|
+
if (w in E.$state) {
|
|
828
|
+
const O = p.$state[w], P = E.$state[w];
|
|
829
|
+
typeof O == "object" && V(O) && V(P) ? ut(O, P) : p.$state[w] = P;
|
|
774
830
|
}
|
|
775
|
-
|
|
776
|
-
}), Object.keys(
|
|
777
|
-
|
|
778
|
-
}),
|
|
779
|
-
|
|
831
|
+
se(E, w, fe(p.$state, w));
|
|
832
|
+
}), Object.keys(E.$state).forEach((w) => {
|
|
833
|
+
w in p.$state || Oe(E, w);
|
|
834
|
+
}), c = !1, d = !1, n.state.value[e] = fe(p._hmrPayload, "hotState"), d = !0, Ve().then(() => {
|
|
835
|
+
c = !0;
|
|
780
836
|
});
|
|
781
|
-
for (const
|
|
782
|
-
const
|
|
783
|
-
|
|
837
|
+
for (const w in p._hmrPayload.actions) {
|
|
838
|
+
const O = p[w];
|
|
839
|
+
se(E, w, re(w, O));
|
|
784
840
|
}
|
|
785
|
-
for (const
|
|
786
|
-
const
|
|
787
|
-
|
|
841
|
+
for (const w in p._hmrPayload.getters) {
|
|
842
|
+
const O = p._hmrPayload.getters[w], P = i ? at(() => (ae(n), O.call(E, E))) : O;
|
|
843
|
+
se(E, w, P);
|
|
788
844
|
}
|
|
789
|
-
Object.keys(
|
|
790
|
-
|
|
791
|
-
}), Object.keys(
|
|
792
|
-
|
|
793
|
-
}),
|
|
845
|
+
Object.keys(E._hmrPayload.getters).forEach((w) => {
|
|
846
|
+
w in p._hmrPayload.getters || Oe(E, w);
|
|
847
|
+
}), Object.keys(E._hmrPayload.actions).forEach((w) => {
|
|
848
|
+
w in p._hmrPayload.actions || Oe(E, w);
|
|
849
|
+
}), E._hmrPayload = p._hmrPayload, E._getters = p._getters, E._hotUpdating = !1;
|
|
794
850
|
});
|
|
795
|
-
const
|
|
851
|
+
const b = {
|
|
796
852
|
writable: !0,
|
|
797
853
|
configurable: !0,
|
|
798
854
|
enumerable: !1
|
|
799
855
|
};
|
|
800
|
-
|
|
801
|
-
Object.defineProperty(
|
|
802
|
-
value:
|
|
803
|
-
...
|
|
856
|
+
G && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((p) => {
|
|
857
|
+
Object.defineProperty(E, p, {
|
|
858
|
+
value: E[p],
|
|
859
|
+
...b
|
|
804
860
|
});
|
|
805
861
|
});
|
|
806
862
|
}
|
|
807
|
-
return
|
|
808
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
809
|
-
const
|
|
810
|
-
store:
|
|
811
|
-
app:
|
|
812
|
-
pinia:
|
|
863
|
+
return n._p.forEach((b) => {
|
|
864
|
+
if (process.env.NODE_ENV !== "production" && G) {
|
|
865
|
+
const p = o.run(() => b({
|
|
866
|
+
store: E,
|
|
867
|
+
app: n._a,
|
|
868
|
+
pinia: n,
|
|
813
869
|
options: u
|
|
814
870
|
}));
|
|
815
|
-
Object.keys(
|
|
871
|
+
Object.keys(p || {}).forEach((w) => E._customProperties.add(w)), x(E, p);
|
|
816
872
|
} else
|
|
817
|
-
|
|
818
|
-
store:
|
|
819
|
-
app:
|
|
820
|
-
pinia:
|
|
873
|
+
x(E, o.run(() => b({
|
|
874
|
+
store: E,
|
|
875
|
+
app: n._a,
|
|
876
|
+
pinia: n,
|
|
821
877
|
options: u
|
|
822
878
|
})));
|
|
823
|
-
}), process.env.NODE_ENV !== "production" &&
|
|
879
|
+
}), process.env.NODE_ENV !== "production" && E.$state && typeof E.$state == "object" && typeof E.$state.constructor == "function" && !E.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
|
|
824
880
|
state: () => new MyClass()
|
|
825
|
-
Found in store "${
|
|
826
|
-
}
|
|
827
|
-
function
|
|
828
|
-
let
|
|
829
|
-
const
|
|
830
|
-
typeof
|
|
831
|
-
function
|
|
832
|
-
const
|
|
833
|
-
if (u = (process.env.NODE_ENV === "test" &&
|
|
881
|
+
Found in store "${E.$id}".`), l && i && r.hydrate && r.hydrate(E.$state, l), c = !0, d = !0, E;
|
|
882
|
+
}
|
|
883
|
+
function ir(e, t, r) {
|
|
884
|
+
let n, s;
|
|
885
|
+
const i = typeof t == "function";
|
|
886
|
+
typeof e == "string" ? (n = e, s = i ? r : t) : (s = e, n = e.id);
|
|
887
|
+
function o(u, f) {
|
|
888
|
+
const c = ot();
|
|
889
|
+
if (u = (process.env.NODE_ENV === "test" && X && X._testing ? null : u) || c && $t(nr), u && ae(u), process.env.NODE_ENV !== "production" && !X)
|
|
834
890
|
throw new Error(`[\u{1F34D}]: getActivePinia was called with no active Pinia. Did you forget to install pinia?
|
|
835
891
|
const pinia = createPinia()
|
|
836
892
|
app.use(pinia)
|
|
837
893
|
This will fail in production.`);
|
|
838
|
-
u =
|
|
839
|
-
const
|
|
840
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
841
|
-
const
|
|
842
|
-
|
|
894
|
+
u = X, u._s.has(n) || (i ? ke(n, t, s, u) : He(n, s, u), process.env.NODE_ENV !== "production" && (o._pinia = u));
|
|
895
|
+
const d = u._s.get(n);
|
|
896
|
+
if (process.env.NODE_ENV !== "production" && f) {
|
|
897
|
+
const m = "__hot:" + n, g = i ? ke(m, t, s, u, !0) : He(m, x({}, s), u, !0);
|
|
898
|
+
f._hotUpdate(g), delete u.state.value[m], u._s.delete(m);
|
|
843
899
|
}
|
|
844
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
845
|
-
const
|
|
846
|
-
|
|
900
|
+
if (process.env.NODE_ENV !== "production" && G && c && c.proxy && !f) {
|
|
901
|
+
const m = c.proxy, g = "_pStores" in m ? m._pStores : m._pStores = {};
|
|
902
|
+
g[n] = d;
|
|
847
903
|
}
|
|
848
|
-
return
|
|
904
|
+
return d;
|
|
849
905
|
}
|
|
850
|
-
return
|
|
906
|
+
return o.$id = n, o;
|
|
851
907
|
}
|
|
852
|
-
const
|
|
908
|
+
const We = ir({
|
|
853
909
|
id: "user",
|
|
854
910
|
state: () => ({
|
|
855
911
|
displayName: "",
|
|
@@ -859,8 +915,8 @@ const fe = Ye({
|
|
|
859
915
|
apiAlfresco: null
|
|
860
916
|
}),
|
|
861
917
|
getters: {
|
|
862
|
-
displayName(
|
|
863
|
-
return
|
|
918
|
+
displayName(e) {
|
|
919
|
+
return e.person == null ? "" : e.person.displayName;
|
|
864
920
|
}
|
|
865
921
|
},
|
|
866
922
|
actions: {
|
|
@@ -873,36 +929,36 @@ const fe = Ye({
|
|
|
873
929
|
});
|
|
874
930
|
},
|
|
875
931
|
isLoggedIn() {
|
|
876
|
-
let
|
|
877
|
-
return this.apiAlfresco ?
|
|
878
|
-
person:
|
|
879
|
-
apiAlfresco:
|
|
880
|
-
}), !0)).catch((
|
|
932
|
+
let e;
|
|
933
|
+
return this.apiAlfresco ? e = this.apiAlfresco : e = R(), ve().getPerson("-me-").then((t) => (this.$patch({
|
|
934
|
+
person: t.entry,
|
|
935
|
+
apiAlfresco: e
|
|
936
|
+
}), !0)).catch((t) => ar(t));
|
|
881
937
|
},
|
|
882
|
-
async login(
|
|
883
|
-
if (!
|
|
938
|
+
async login(e, t) {
|
|
939
|
+
if (!e || !t)
|
|
884
940
|
return !1;
|
|
885
|
-
await this.apiLogin(
|
|
941
|
+
await this.apiLogin(e, t).then((r) => {
|
|
886
942
|
this.$patch({
|
|
887
|
-
person:
|
|
943
|
+
person: r.entry
|
|
888
944
|
});
|
|
889
|
-
}).catch((
|
|
890
|
-
|
|
945
|
+
}).catch((r) => {
|
|
946
|
+
Kt(r);
|
|
891
947
|
});
|
|
892
948
|
},
|
|
893
|
-
apiLogin(
|
|
894
|
-
return
|
|
895
|
-
apiAlfresco:
|
|
896
|
-
}),
|
|
949
|
+
apiLogin(e, t) {
|
|
950
|
+
return R().login(e, t).then(() => (this.$patch({
|
|
951
|
+
apiAlfresco: R()
|
|
952
|
+
}), ve().getPerson("-me-"))).catch((r) => Promise.reject(r));
|
|
897
953
|
},
|
|
898
954
|
async publiclogoff() {
|
|
899
|
-
const
|
|
900
|
-
|
|
955
|
+
const e = localStorage.getItem("ACS_USERNAME");
|
|
956
|
+
e && e.startsWith("user_publication_") && (localStorage.removeItem("ticket-ECM"), localStorage.removeItem("ACS_USERNAME"));
|
|
901
957
|
},
|
|
902
|
-
async publiclogin(
|
|
903
|
-
let
|
|
904
|
-
typeof
|
|
905
|
-
window.config.ALFRESCO_HOST + "/alfresco/s/fr/jeci/pristy/authentication/ticket/publication/site/" +
|
|
958
|
+
async publiclogin(e) {
|
|
959
|
+
let t = window.localStorage.getItem("ticket-ECM");
|
|
960
|
+
typeof t < "u" && t != null || await fetch(
|
|
961
|
+
window.config.ALFRESCO_HOST + "/alfresco/s/fr/jeci/pristy/authentication/ticket/publication/site/" + e,
|
|
906
962
|
{
|
|
907
963
|
method: "GET",
|
|
908
964
|
headers: {
|
|
@@ -910,8 +966,8 @@ const fe = Ye({
|
|
|
910
966
|
Accept: "application/json"
|
|
911
967
|
}
|
|
912
968
|
}
|
|
913
|
-
).then((
|
|
914
|
-
window.localStorage.setItem("ticket-ECM",
|
|
969
|
+
).then((r) => r.json()).then((r) => {
|
|
970
|
+
window.localStorage.setItem("ticket-ECM", r.ticket), window.localStorage.setItem("ACS_USERNAME", r.login);
|
|
915
971
|
});
|
|
916
972
|
},
|
|
917
973
|
alfrescoApi() {
|
|
@@ -919,52 +975,1273 @@ const fe = Ye({
|
|
|
919
975
|
}
|
|
920
976
|
}
|
|
921
977
|
});
|
|
922
|
-
function
|
|
923
|
-
let
|
|
924
|
-
if (
|
|
978
|
+
function ar(e) {
|
|
979
|
+
let t = JSON.parse(e.message).error;
|
|
980
|
+
if (t.statusCode === 401 || t.statusCode === 403)
|
|
925
981
|
return !1;
|
|
926
|
-
throw new Error(
|
|
982
|
+
throw new Error(e);
|
|
927
983
|
}
|
|
928
|
-
class
|
|
984
|
+
class yn {
|
|
929
985
|
getFavorites() {
|
|
930
|
-
const
|
|
986
|
+
const t = We(), r = {
|
|
931
987
|
skipCount: 0,
|
|
932
988
|
maxItems: 100,
|
|
933
989
|
include: ["properties", "path"]
|
|
934
990
|
};
|
|
935
|
-
return
|
|
936
|
-
throw new Error(
|
|
991
|
+
return Se().listFavorites(t.person.id, r).then((n) => n.list.entries.map((s) => s.entry)).catch((n) => {
|
|
992
|
+
throw new Error(n.message);
|
|
937
993
|
});
|
|
938
994
|
}
|
|
939
|
-
changeSingleFavorite(
|
|
940
|
-
const
|
|
941
|
-
if (
|
|
942
|
-
return
|
|
943
|
-
throw new Error(
|
|
995
|
+
changeSingleFavorite(t) {
|
|
996
|
+
const r = We();
|
|
997
|
+
if (t.isFavorite)
|
|
998
|
+
return Se().deleteFavorite(r.person.id, t.id).then(() => (t.isFavorite = !1, t)).catch((n) => {
|
|
999
|
+
throw new Error(n.message);
|
|
944
1000
|
});
|
|
945
1001
|
{
|
|
946
|
-
let
|
|
947
|
-
return
|
|
948
|
-
throw new Error(
|
|
1002
|
+
let n = { target: {} }, s = { guid: t.id };
|
|
1003
|
+
return t.isFolder ? n.target = { folder: s } : n.target = { file: s }, Se().createFavorite(r.person.id, n).then((i) => (i.entry.targetGuid === t.id && (t.isFavorite = !0), t)).catch((i) => {
|
|
1004
|
+
throw new Error(i.message);
|
|
1005
|
+
});
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
function ft(e, t) {
|
|
1010
|
+
return function() {
|
|
1011
|
+
return e.apply(t, arguments);
|
|
1012
|
+
};
|
|
1013
|
+
}
|
|
1014
|
+
const { toString: dt } = Object.prototype, { getPrototypeOf: Fe } = Object, je = ((e) => (t) => {
|
|
1015
|
+
const r = dt.call(t);
|
|
1016
|
+
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
1017
|
+
})(/* @__PURE__ */ Object.create(null)), D = (e) => (e = e.toLowerCase(), (t) => je(t) === e), ce = (e) => (t) => typeof t === e, { isArray: ee } = Array, xe = ce("undefined");
|
|
1018
|
+
function cr(e) {
|
|
1019
|
+
return e !== null && !xe(e) && e.constructor !== null && !xe(e.constructor) && q(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
1020
|
+
}
|
|
1021
|
+
const pt = D("ArrayBuffer");
|
|
1022
|
+
function ur(e) {
|
|
1023
|
+
let t;
|
|
1024
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && pt(e.buffer), t;
|
|
1025
|
+
}
|
|
1026
|
+
const lr = ce("string"), q = ce("function"), ht = ce("number"), mt = (e) => e !== null && typeof e == "object", fr = (e) => e === !0 || e === !1, oe = (e) => {
|
|
1027
|
+
if (je(e) !== "object")
|
|
1028
|
+
return !1;
|
|
1029
|
+
const t = Fe(e);
|
|
1030
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
1031
|
+
}, dr = D("Date"), pr = D("File"), hr = D("Blob"), mr = D("FileList"), Er = (e) => mt(e) && q(e.pipe), br = (e) => {
|
|
1032
|
+
const t = "[object FormData]";
|
|
1033
|
+
return e && (typeof FormData == "function" && e instanceof FormData || dt.call(e) === t || q(e.toString) && e.toString() === t);
|
|
1034
|
+
}, wr = D("URLSearchParams"), yr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
1035
|
+
function ue(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
1036
|
+
if (e === null || typeof e > "u")
|
|
1037
|
+
return;
|
|
1038
|
+
let n, s;
|
|
1039
|
+
if (typeof e != "object" && (e = [e]), ee(e))
|
|
1040
|
+
for (n = 0, s = e.length; n < s; n++)
|
|
1041
|
+
t.call(null, e[n], n, e);
|
|
1042
|
+
else {
|
|
1043
|
+
const i = r ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
|
|
1044
|
+
let u;
|
|
1045
|
+
for (n = 0; n < o; n++)
|
|
1046
|
+
u = i[n], t.call(null, e[u], u, e);
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
function Ce() {
|
|
1050
|
+
const e = {}, t = (r, n) => {
|
|
1051
|
+
oe(e[n]) && oe(r) ? e[n] = Ce(e[n], r) : oe(r) ? e[n] = Ce({}, r) : ee(r) ? e[n] = r.slice() : e[n] = r;
|
|
1052
|
+
};
|
|
1053
|
+
for (let r = 0, n = arguments.length; r < n; r++)
|
|
1054
|
+
arguments[r] && ue(arguments[r], t);
|
|
1055
|
+
return e;
|
|
1056
|
+
}
|
|
1057
|
+
const gr = (e, t, r, { allOwnKeys: n } = {}) => (ue(t, (s, i) => {
|
|
1058
|
+
r && q(s) ? e[i] = ft(s, r) : e[i] = s;
|
|
1059
|
+
}, { allOwnKeys: n }), e), Nr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Sr = (e, t, r, n) => {
|
|
1060
|
+
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
1061
|
+
value: t.prototype
|
|
1062
|
+
}), r && Object.assign(e.prototype, r);
|
|
1063
|
+
}, Ar = (e, t, r, n) => {
|
|
1064
|
+
let s, i, o;
|
|
1065
|
+
const u = {};
|
|
1066
|
+
if (t = t || {}, e == null)
|
|
1067
|
+
return t;
|
|
1068
|
+
do {
|
|
1069
|
+
for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
|
|
1070
|
+
o = s[i], (!n || n(o, e, t)) && !u[o] && (t[o] = e[o], u[o] = !0);
|
|
1071
|
+
e = r !== !1 && Fe(e);
|
|
1072
|
+
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
1073
|
+
return t;
|
|
1074
|
+
}, Or = (e, t, r) => {
|
|
1075
|
+
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
|
|
1076
|
+
const n = e.indexOf(t, r);
|
|
1077
|
+
return n !== -1 && n === r;
|
|
1078
|
+
}, _r = (e) => {
|
|
1079
|
+
if (!e)
|
|
1080
|
+
return null;
|
|
1081
|
+
if (ee(e))
|
|
1082
|
+
return e;
|
|
1083
|
+
let t = e.length;
|
|
1084
|
+
if (!ht(t))
|
|
1085
|
+
return null;
|
|
1086
|
+
const r = new Array(t);
|
|
1087
|
+
for (; t-- > 0; )
|
|
1088
|
+
r[t] = e[t];
|
|
1089
|
+
return r;
|
|
1090
|
+
}, Rr = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Fe(Uint8Array)), vr = (e, t) => {
|
|
1091
|
+
const n = (e && e[Symbol.iterator]).call(e);
|
|
1092
|
+
let s;
|
|
1093
|
+
for (; (s = n.next()) && !s.done; ) {
|
|
1094
|
+
const i = s.value;
|
|
1095
|
+
t.call(e, i[0], i[1]);
|
|
1096
|
+
}
|
|
1097
|
+
}, Pr = (e, t) => {
|
|
1098
|
+
let r;
|
|
1099
|
+
const n = [];
|
|
1100
|
+
for (; (r = e.exec(t)) !== null; )
|
|
1101
|
+
n.push(r);
|
|
1102
|
+
return n;
|
|
1103
|
+
}, kr = D("HTMLFormElement"), xr = (e) => e.toLowerCase().replace(
|
|
1104
|
+
/[_-\s]([a-z\d])(\w*)/g,
|
|
1105
|
+
function(r, n, s) {
|
|
1106
|
+
return n.toUpperCase() + s;
|
|
1107
|
+
}
|
|
1108
|
+
), Je = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Cr = D("RegExp"), Et = (e, t) => {
|
|
1109
|
+
const r = Object.getOwnPropertyDescriptors(e), n = {};
|
|
1110
|
+
ue(r, (s, i) => {
|
|
1111
|
+
t(s, i, e) !== !1 && (n[i] = s);
|
|
1112
|
+
}), Object.defineProperties(e, n);
|
|
1113
|
+
}, Lr = (e) => {
|
|
1114
|
+
Et(e, (t, r) => {
|
|
1115
|
+
const n = e[r];
|
|
1116
|
+
if (!!q(n)) {
|
|
1117
|
+
if (t.enumerable = !1, "writable" in t) {
|
|
1118
|
+
t.writable = !1;
|
|
1119
|
+
return;
|
|
1120
|
+
}
|
|
1121
|
+
t.set || (t.set = () => {
|
|
1122
|
+
throw Error("Can not read-only method '" + r + "'");
|
|
949
1123
|
});
|
|
950
1124
|
}
|
|
1125
|
+
});
|
|
1126
|
+
}, Tr = (e, t) => {
|
|
1127
|
+
const r = {}, n = (s) => {
|
|
1128
|
+
s.forEach((i) => {
|
|
1129
|
+
r[i] = !0;
|
|
1130
|
+
});
|
|
1131
|
+
};
|
|
1132
|
+
return ee(e) ? n(e) : n(String(e).split(t)), r;
|
|
1133
|
+
}, Dr = () => {
|
|
1134
|
+
}, Fr = (e, t) => (e = +e, Number.isFinite(e) ? e : t), a = {
|
|
1135
|
+
isArray: ee,
|
|
1136
|
+
isArrayBuffer: pt,
|
|
1137
|
+
isBuffer: cr,
|
|
1138
|
+
isFormData: br,
|
|
1139
|
+
isArrayBufferView: ur,
|
|
1140
|
+
isString: lr,
|
|
1141
|
+
isNumber: ht,
|
|
1142
|
+
isBoolean: fr,
|
|
1143
|
+
isObject: mt,
|
|
1144
|
+
isPlainObject: oe,
|
|
1145
|
+
isUndefined: xe,
|
|
1146
|
+
isDate: dr,
|
|
1147
|
+
isFile: pr,
|
|
1148
|
+
isBlob: hr,
|
|
1149
|
+
isRegExp: Cr,
|
|
1150
|
+
isFunction: q,
|
|
1151
|
+
isStream: Er,
|
|
1152
|
+
isURLSearchParams: wr,
|
|
1153
|
+
isTypedArray: Rr,
|
|
1154
|
+
isFileList: mr,
|
|
1155
|
+
forEach: ue,
|
|
1156
|
+
merge: Ce,
|
|
1157
|
+
extend: gr,
|
|
1158
|
+
trim: yr,
|
|
1159
|
+
stripBOM: Nr,
|
|
1160
|
+
inherits: Sr,
|
|
1161
|
+
toFlatObject: Ar,
|
|
1162
|
+
kindOf: je,
|
|
1163
|
+
kindOfTest: D,
|
|
1164
|
+
endsWith: Or,
|
|
1165
|
+
toArray: _r,
|
|
1166
|
+
forEachEntry: vr,
|
|
1167
|
+
matchAll: Pr,
|
|
1168
|
+
isHTMLForm: kr,
|
|
1169
|
+
hasOwnProperty: Je,
|
|
1170
|
+
hasOwnProp: Je,
|
|
1171
|
+
reduceDescriptors: Et,
|
|
1172
|
+
freezeMethods: Lr,
|
|
1173
|
+
toObjectSet: Tr,
|
|
1174
|
+
toCamelCase: xr,
|
|
1175
|
+
noop: Dr,
|
|
1176
|
+
toFiniteNumber: Fr
|
|
1177
|
+
};
|
|
1178
|
+
function y(e, t, r, n, s) {
|
|
1179
|
+
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);
|
|
1180
|
+
}
|
|
1181
|
+
a.inherits(y, Error, {
|
|
1182
|
+
toJSON: function() {
|
|
1183
|
+
return {
|
|
1184
|
+
message: this.message,
|
|
1185
|
+
name: this.name,
|
|
1186
|
+
description: this.description,
|
|
1187
|
+
number: this.number,
|
|
1188
|
+
fileName: this.fileName,
|
|
1189
|
+
lineNumber: this.lineNumber,
|
|
1190
|
+
columnNumber: this.columnNumber,
|
|
1191
|
+
stack: this.stack,
|
|
1192
|
+
config: this.config,
|
|
1193
|
+
code: this.code,
|
|
1194
|
+
status: this.response && this.response.status ? this.response.status : null
|
|
1195
|
+
};
|
|
1196
|
+
}
|
|
1197
|
+
});
|
|
1198
|
+
const bt = y.prototype, wt = {};
|
|
1199
|
+
[
|
|
1200
|
+
"ERR_BAD_OPTION_VALUE",
|
|
1201
|
+
"ERR_BAD_OPTION",
|
|
1202
|
+
"ECONNABORTED",
|
|
1203
|
+
"ETIMEDOUT",
|
|
1204
|
+
"ERR_NETWORK",
|
|
1205
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
1206
|
+
"ERR_DEPRECATED",
|
|
1207
|
+
"ERR_BAD_RESPONSE",
|
|
1208
|
+
"ERR_BAD_REQUEST",
|
|
1209
|
+
"ERR_CANCELED",
|
|
1210
|
+
"ERR_NOT_SUPPORT",
|
|
1211
|
+
"ERR_INVALID_URL"
|
|
1212
|
+
].forEach((e) => {
|
|
1213
|
+
wt[e] = { value: e };
|
|
1214
|
+
});
|
|
1215
|
+
Object.defineProperties(y, wt);
|
|
1216
|
+
Object.defineProperty(bt, "isAxiosError", { value: !0 });
|
|
1217
|
+
y.from = (e, t, r, n, s, i) => {
|
|
1218
|
+
const o = Object.create(bt);
|
|
1219
|
+
return a.toFlatObject(e, o, function(f) {
|
|
1220
|
+
return f !== Error.prototype;
|
|
1221
|
+
}, (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
|
+
};
|
|
1223
|
+
var jr = typeof self == "object" ? self.FormData : window.FormData;
|
|
1224
|
+
function Le(e) {
|
|
1225
|
+
return a.isPlainObject(e) || a.isArray(e);
|
|
1226
|
+
}
|
|
1227
|
+
function yt(e) {
|
|
1228
|
+
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
1229
|
+
}
|
|
1230
|
+
function Xe(e, t, r) {
|
|
1231
|
+
return e ? e.concat(t).map(function(s, i) {
|
|
1232
|
+
return s = yt(s), !r && i ? "[" + s + "]" : s;
|
|
1233
|
+
}).join(r ? "." : "") : t;
|
|
1234
|
+
}
|
|
1235
|
+
function Ur(e) {
|
|
1236
|
+
return a.isArray(e) && !e.some(Le);
|
|
1237
|
+
}
|
|
1238
|
+
const Br = a.toFlatObject(a, {}, null, function(t) {
|
|
1239
|
+
return /^is[A-Z]/.test(t);
|
|
1240
|
+
});
|
|
1241
|
+
function Ir(e) {
|
|
1242
|
+
return e && a.isFunction(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator];
|
|
1243
|
+
}
|
|
1244
|
+
function le(e, t, r) {
|
|
1245
|
+
if (!a.isObject(e))
|
|
1246
|
+
throw new TypeError("target must be an object");
|
|
1247
|
+
t = t || new (jr || FormData)(), r = a.toFlatObject(r, {
|
|
1248
|
+
metaTokens: !0,
|
|
1249
|
+
dots: !1,
|
|
1250
|
+
indexes: !1
|
|
1251
|
+
}, !1, function(N, C) {
|
|
1252
|
+
return !a.isUndefined(C[N]);
|
|
1253
|
+
});
|
|
1254
|
+
const n = r.metaTokens, s = r.visitor || d, i = r.dots, o = r.indexes, f = (r.Blob || typeof Blob < "u" && Blob) && Ir(t);
|
|
1255
|
+
if (!a.isFunction(s))
|
|
1256
|
+
throw new TypeError("visitor must be a function");
|
|
1257
|
+
function c(l) {
|
|
1258
|
+
if (l === null)
|
|
1259
|
+
return "";
|
|
1260
|
+
if (a.isDate(l))
|
|
1261
|
+
return l.toISOString();
|
|
1262
|
+
if (!f && a.isBlob(l))
|
|
1263
|
+
throw new y("Blob is not supported. Use a Buffer instead.");
|
|
1264
|
+
return a.isArrayBuffer(l) || a.isTypedArray(l) ? f && typeof Blob == "function" ? new Blob([l]) : Buffer.from(l) : l;
|
|
1265
|
+
}
|
|
1266
|
+
function d(l, N, C) {
|
|
1267
|
+
let A = l;
|
|
1268
|
+
if (l && !C && typeof l == "object") {
|
|
1269
|
+
if (a.endsWith(N, "{}"))
|
|
1270
|
+
N = n ? N : N.slice(0, -2), l = JSON.stringify(l);
|
|
1271
|
+
else if (a.isArray(l) && Ur(l) || a.isFileList(l) || a.endsWith(N, "[]") && (A = a.toArray(l)))
|
|
1272
|
+
return N = yt(N), A.forEach(function(M, re) {
|
|
1273
|
+
!(a.isUndefined(M) || M === null) && t.append(
|
|
1274
|
+
o === !0 ? Xe([N], re, i) : o === null ? N : N + "[]",
|
|
1275
|
+
c(M)
|
|
1276
|
+
);
|
|
1277
|
+
}), !1;
|
|
1278
|
+
}
|
|
1279
|
+
return Le(l) ? !0 : (t.append(Xe(C, N, i), c(l)), !1);
|
|
1280
|
+
}
|
|
1281
|
+
const m = [], g = Object.assign(Br, {
|
|
1282
|
+
defaultVisitor: d,
|
|
1283
|
+
convertValue: c,
|
|
1284
|
+
isVisitable: Le
|
|
1285
|
+
});
|
|
1286
|
+
function h(l, N) {
|
|
1287
|
+
if (!a.isUndefined(l)) {
|
|
1288
|
+
if (m.indexOf(l) !== -1)
|
|
1289
|
+
throw Error("Circular reference detected in " + N.join("."));
|
|
1290
|
+
m.push(l), a.forEach(l, function(A, F) {
|
|
1291
|
+
(!(a.isUndefined(A) || A === null) && s.call(
|
|
1292
|
+
t,
|
|
1293
|
+
A,
|
|
1294
|
+
a.isString(F) ? F.trim() : F,
|
|
1295
|
+
N,
|
|
1296
|
+
g
|
|
1297
|
+
)) === !0 && h(A, N ? N.concat(F) : [F]);
|
|
1298
|
+
}), m.pop();
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
if (!a.isObject(e))
|
|
1302
|
+
throw new TypeError("data must be an object");
|
|
1303
|
+
return h(e), t;
|
|
1304
|
+
}
|
|
1305
|
+
function Ge(e) {
|
|
1306
|
+
const t = {
|
|
1307
|
+
"!": "%21",
|
|
1308
|
+
"'": "%27",
|
|
1309
|
+
"(": "%28",
|
|
1310
|
+
")": "%29",
|
|
1311
|
+
"~": "%7E",
|
|
1312
|
+
"%20": "+",
|
|
1313
|
+
"%00": "\0"
|
|
1314
|
+
};
|
|
1315
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(n) {
|
|
1316
|
+
return t[n];
|
|
1317
|
+
});
|
|
1318
|
+
}
|
|
1319
|
+
function Ue(e, t) {
|
|
1320
|
+
this._pairs = [], e && le(e, this, t);
|
|
1321
|
+
}
|
|
1322
|
+
const gt = Ue.prototype;
|
|
1323
|
+
gt.append = function(t, r) {
|
|
1324
|
+
this._pairs.push([t, r]);
|
|
1325
|
+
};
|
|
1326
|
+
gt.toString = function(t) {
|
|
1327
|
+
const r = t ? function(n) {
|
|
1328
|
+
return t.call(this, n, Ge);
|
|
1329
|
+
} : Ge;
|
|
1330
|
+
return this._pairs.map(function(s) {
|
|
1331
|
+
return r(s[0]) + "=" + r(s[1]);
|
|
1332
|
+
}, "").join("&");
|
|
1333
|
+
};
|
|
1334
|
+
function Vr(e) {
|
|
1335
|
+
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
1336
|
+
}
|
|
1337
|
+
function Nt(e, t, r) {
|
|
1338
|
+
if (!t)
|
|
1339
|
+
return e;
|
|
1340
|
+
const n = r && r.encode || Vr, s = r && r.serialize;
|
|
1341
|
+
let i;
|
|
1342
|
+
if (s ? i = s(t, r) : i = a.isURLSearchParams(t) ? t.toString() : new Ue(t, r).toString(n), i) {
|
|
1343
|
+
const o = e.indexOf("#");
|
|
1344
|
+
o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
1345
|
+
}
|
|
1346
|
+
return e;
|
|
1347
|
+
}
|
|
1348
|
+
class Ke {
|
|
1349
|
+
constructor() {
|
|
1350
|
+
this.handlers = [];
|
|
1351
|
+
}
|
|
1352
|
+
use(t, r, n) {
|
|
1353
|
+
return this.handlers.push({
|
|
1354
|
+
fulfilled: t,
|
|
1355
|
+
rejected: r,
|
|
1356
|
+
synchronous: n ? n.synchronous : !1,
|
|
1357
|
+
runWhen: n ? n.runWhen : null
|
|
1358
|
+
}), this.handlers.length - 1;
|
|
1359
|
+
}
|
|
1360
|
+
eject(t) {
|
|
1361
|
+
this.handlers[t] && (this.handlers[t] = null);
|
|
1362
|
+
}
|
|
1363
|
+
clear() {
|
|
1364
|
+
this.handlers && (this.handlers = []);
|
|
1365
|
+
}
|
|
1366
|
+
forEach(t) {
|
|
1367
|
+
a.forEach(this.handlers, function(n) {
|
|
1368
|
+
n !== null && t(n);
|
|
1369
|
+
});
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
const St = {
|
|
1373
|
+
silentJSONParsing: !0,
|
|
1374
|
+
forcedJSONParsing: !0,
|
|
1375
|
+
clarifyTimeoutError: !1
|
|
1376
|
+
}, Mr = typeof URLSearchParams < "u" ? URLSearchParams : Ue, $r = FormData, zr = (() => {
|
|
1377
|
+
let e;
|
|
1378
|
+
return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
1379
|
+
})(), T = {
|
|
1380
|
+
isBrowser: !0,
|
|
1381
|
+
classes: {
|
|
1382
|
+
URLSearchParams: Mr,
|
|
1383
|
+
FormData: $r,
|
|
1384
|
+
Blob
|
|
1385
|
+
},
|
|
1386
|
+
isStandardBrowserEnv: zr,
|
|
1387
|
+
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
1388
|
+
};
|
|
1389
|
+
function qr(e, t) {
|
|
1390
|
+
return le(e, new T.classes.URLSearchParams(), Object.assign({
|
|
1391
|
+
visitor: function(r, n, s, i) {
|
|
1392
|
+
return T.isNode && a.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
1393
|
+
}
|
|
1394
|
+
}, t));
|
|
1395
|
+
}
|
|
1396
|
+
function Hr(e) {
|
|
1397
|
+
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
1398
|
+
}
|
|
1399
|
+
function Wr(e) {
|
|
1400
|
+
const t = {}, r = Object.keys(e);
|
|
1401
|
+
let n;
|
|
1402
|
+
const s = r.length;
|
|
1403
|
+
let i;
|
|
1404
|
+
for (n = 0; n < s; n++)
|
|
1405
|
+
i = r[n], t[i] = e[i];
|
|
1406
|
+
return t;
|
|
1407
|
+
}
|
|
1408
|
+
function At(e) {
|
|
1409
|
+
function t(r, n, s, i) {
|
|
1410
|
+
let o = r[i++];
|
|
1411
|
+
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] = Wr(s[o])), !u);
|
|
1413
|
+
}
|
|
1414
|
+
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
1415
|
+
const r = {};
|
|
1416
|
+
return a.forEachEntry(e, (n, s) => {
|
|
1417
|
+
t(Hr(n), s, r, 0);
|
|
1418
|
+
}), r;
|
|
1419
|
+
}
|
|
1420
|
+
return null;
|
|
1421
|
+
}
|
|
1422
|
+
function Jr(e, t, r) {
|
|
1423
|
+
const n = r.config.validateStatus;
|
|
1424
|
+
!r.status || !n || n(r.status) ? e(r) : t(new y(
|
|
1425
|
+
"Request failed with status code " + r.status,
|
|
1426
|
+
[y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
|
|
1427
|
+
r.config,
|
|
1428
|
+
r.request,
|
|
1429
|
+
r
|
|
1430
|
+
));
|
|
1431
|
+
}
|
|
1432
|
+
const Xr = T.isStandardBrowserEnv ? function() {
|
|
1433
|
+
return {
|
|
1434
|
+
write: function(r, n, s, i, o, u) {
|
|
1435
|
+
const f = [];
|
|
1436
|
+
f.push(r + "=" + encodeURIComponent(n)), a.isNumber(s) && f.push("expires=" + new Date(s).toGMTString()), a.isString(i) && f.push("path=" + i), a.isString(o) && f.push("domain=" + o), u === !0 && f.push("secure"), document.cookie = f.join("; ");
|
|
1437
|
+
},
|
|
1438
|
+
read: function(r) {
|
|
1439
|
+
const n = document.cookie.match(new RegExp("(^|;\\s*)(" + r + ")=([^;]*)"));
|
|
1440
|
+
return n ? decodeURIComponent(n[3]) : null;
|
|
1441
|
+
},
|
|
1442
|
+
remove: function(r) {
|
|
1443
|
+
this.write(r, "", Date.now() - 864e5);
|
|
1444
|
+
}
|
|
1445
|
+
};
|
|
1446
|
+
}() : function() {
|
|
1447
|
+
return {
|
|
1448
|
+
write: function() {
|
|
1449
|
+
},
|
|
1450
|
+
read: function() {
|
|
1451
|
+
return null;
|
|
1452
|
+
},
|
|
1453
|
+
remove: function() {
|
|
1454
|
+
}
|
|
1455
|
+
};
|
|
1456
|
+
}();
|
|
1457
|
+
function Gr(e) {
|
|
1458
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
1459
|
+
}
|
|
1460
|
+
function Kr(e, t) {
|
|
1461
|
+
return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
1462
|
+
}
|
|
1463
|
+
function Ot(e, t) {
|
|
1464
|
+
return e && !Gr(t) ? Kr(e, t) : t;
|
|
1465
|
+
}
|
|
1466
|
+
const Qr = T.isStandardBrowserEnv ? function() {
|
|
1467
|
+
const t = /(msie|trident)/i.test(navigator.userAgent), r = document.createElement("a");
|
|
1468
|
+
let n;
|
|
1469
|
+
function s(i) {
|
|
1470
|
+
let o = i;
|
|
1471
|
+
return t && (r.setAttribute("href", o), o = r.href), r.setAttribute("href", o), {
|
|
1472
|
+
href: r.href,
|
|
1473
|
+
protocol: r.protocol ? r.protocol.replace(/:$/, "") : "",
|
|
1474
|
+
host: r.host,
|
|
1475
|
+
search: r.search ? r.search.replace(/^\?/, "") : "",
|
|
1476
|
+
hash: r.hash ? r.hash.replace(/^#/, "") : "",
|
|
1477
|
+
hostname: r.hostname,
|
|
1478
|
+
port: r.port,
|
|
1479
|
+
pathname: r.pathname.charAt(0) === "/" ? r.pathname : "/" + r.pathname
|
|
1480
|
+
};
|
|
1481
|
+
}
|
|
1482
|
+
return n = s(window.location.href), function(o) {
|
|
1483
|
+
const u = a.isString(o) ? s(o) : o;
|
|
1484
|
+
return u.protocol === n.protocol && u.host === n.host;
|
|
1485
|
+
};
|
|
1486
|
+
}() : function() {
|
|
1487
|
+
return function() {
|
|
1488
|
+
return !0;
|
|
1489
|
+
};
|
|
1490
|
+
}();
|
|
1491
|
+
function te(e, t, r) {
|
|
1492
|
+
y.call(this, e == null ? "canceled" : e, y.ERR_CANCELED, t, r), this.name = "CanceledError";
|
|
1493
|
+
}
|
|
1494
|
+
a.inherits(te, y, {
|
|
1495
|
+
__CANCEL__: !0
|
|
1496
|
+
});
|
|
1497
|
+
function Yr(e) {
|
|
1498
|
+
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
1499
|
+
return t && t[1] || "";
|
|
1500
|
+
}
|
|
1501
|
+
const Zr = a.toObjectSet([
|
|
1502
|
+
"age",
|
|
1503
|
+
"authorization",
|
|
1504
|
+
"content-length",
|
|
1505
|
+
"content-type",
|
|
1506
|
+
"etag",
|
|
1507
|
+
"expires",
|
|
1508
|
+
"from",
|
|
1509
|
+
"host",
|
|
1510
|
+
"if-modified-since",
|
|
1511
|
+
"if-unmodified-since",
|
|
1512
|
+
"last-modified",
|
|
1513
|
+
"location",
|
|
1514
|
+
"max-forwards",
|
|
1515
|
+
"proxy-authorization",
|
|
1516
|
+
"referer",
|
|
1517
|
+
"retry-after",
|
|
1518
|
+
"user-agent"
|
|
1519
|
+
]), en = (e) => {
|
|
1520
|
+
const t = {};
|
|
1521
|
+
let r, n, s;
|
|
1522
|
+
return e && e.split(`
|
|
1523
|
+
`).forEach(function(o) {
|
|
1524
|
+
s = o.indexOf(":"), r = o.substring(0, s).trim().toLowerCase(), n = o.substring(s + 1).trim(), !(!r || t[r] && Zr[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
|
|
1525
|
+
}), t;
|
|
1526
|
+
}, Qe = Symbol("internals"), _t = Symbol("defaults");
|
|
1527
|
+
function K(e) {
|
|
1528
|
+
return e && String(e).trim().toLowerCase();
|
|
1529
|
+
}
|
|
1530
|
+
function ie(e) {
|
|
1531
|
+
return e === !1 || e == null ? e : a.isArray(e) ? e.map(ie) : String(e);
|
|
1532
|
+
}
|
|
1533
|
+
function tn(e) {
|
|
1534
|
+
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
1535
|
+
let n;
|
|
1536
|
+
for (; n = r.exec(e); )
|
|
1537
|
+
t[n[1]] = n[2];
|
|
1538
|
+
return t;
|
|
1539
|
+
}
|
|
1540
|
+
function Ye(e, t, r, n) {
|
|
1541
|
+
if (a.isFunction(n))
|
|
1542
|
+
return n.call(this, t, r);
|
|
1543
|
+
if (!!a.isString(t)) {
|
|
1544
|
+
if (a.isString(n))
|
|
1545
|
+
return t.indexOf(n) !== -1;
|
|
1546
|
+
if (a.isRegExp(n))
|
|
1547
|
+
return n.test(t);
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
function rn(e) {
|
|
1551
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
|
|
1552
|
+
}
|
|
1553
|
+
function nn(e, t) {
|
|
1554
|
+
const r = a.toCamelCase(" " + t);
|
|
1555
|
+
["get", "set", "has"].forEach((n) => {
|
|
1556
|
+
Object.defineProperty(e, n + r, {
|
|
1557
|
+
value: function(s, i, o) {
|
|
1558
|
+
return this[n].call(this, t, s, i, o);
|
|
1559
|
+
},
|
|
1560
|
+
configurable: !0
|
|
1561
|
+
});
|
|
1562
|
+
});
|
|
1563
|
+
}
|
|
1564
|
+
function J(e, t) {
|
|
1565
|
+
t = t.toLowerCase();
|
|
1566
|
+
const r = Object.keys(e);
|
|
1567
|
+
let n = r.length, s;
|
|
1568
|
+
for (; n-- > 0; )
|
|
1569
|
+
if (s = r[n], t === s.toLowerCase())
|
|
1570
|
+
return s;
|
|
1571
|
+
return null;
|
|
1572
|
+
}
|
|
1573
|
+
function v(e, t) {
|
|
1574
|
+
e && this.set(e), this[_t] = t || null;
|
|
1575
|
+
}
|
|
1576
|
+
Object.assign(v.prototype, {
|
|
1577
|
+
set: function(e, t, r) {
|
|
1578
|
+
const n = this;
|
|
1579
|
+
function s(i, o, u) {
|
|
1580
|
+
const f = K(o);
|
|
1581
|
+
if (!f)
|
|
1582
|
+
throw new Error("header name must be a non-empty string");
|
|
1583
|
+
const c = J(n, f);
|
|
1584
|
+
c && u !== !0 && (n[c] === !1 || u === !1) || (n[c || o] = ie(i));
|
|
1585
|
+
}
|
|
1586
|
+
return a.isPlainObject(e) ? a.forEach(e, (i, o) => {
|
|
1587
|
+
s(i, o, t);
|
|
1588
|
+
}) : s(t, e, r), this;
|
|
1589
|
+
},
|
|
1590
|
+
get: function(e, t) {
|
|
1591
|
+
if (e = K(e), !e)
|
|
1592
|
+
return;
|
|
1593
|
+
const r = J(this, e);
|
|
1594
|
+
if (r) {
|
|
1595
|
+
const n = this[r];
|
|
1596
|
+
if (!t)
|
|
1597
|
+
return n;
|
|
1598
|
+
if (t === !0)
|
|
1599
|
+
return tn(n);
|
|
1600
|
+
if (a.isFunction(t))
|
|
1601
|
+
return t.call(this, n, r);
|
|
1602
|
+
if (a.isRegExp(t))
|
|
1603
|
+
return t.exec(n);
|
|
1604
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
1605
|
+
}
|
|
1606
|
+
},
|
|
1607
|
+
has: function(e, t) {
|
|
1608
|
+
if (e = K(e), e) {
|
|
1609
|
+
const r = J(this, e);
|
|
1610
|
+
return !!(r && (!t || Ye(this, this[r], r, t)));
|
|
1611
|
+
}
|
|
1612
|
+
return !1;
|
|
1613
|
+
},
|
|
1614
|
+
delete: function(e, t) {
|
|
1615
|
+
const r = this;
|
|
1616
|
+
let n = !1;
|
|
1617
|
+
function s(i) {
|
|
1618
|
+
if (i = K(i), i) {
|
|
1619
|
+
const o = J(r, i);
|
|
1620
|
+
o && (!t || Ye(r, r[o], o, t)) && (delete r[o], n = !0);
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
return a.isArray(e) ? e.forEach(s) : s(e), n;
|
|
1624
|
+
},
|
|
1625
|
+
clear: function() {
|
|
1626
|
+
return Object.keys(this).forEach(this.delete.bind(this));
|
|
1627
|
+
},
|
|
1628
|
+
normalize: function(e) {
|
|
1629
|
+
const t = this, r = {};
|
|
1630
|
+
return a.forEach(this, (n, s) => {
|
|
1631
|
+
const i = J(r, s);
|
|
1632
|
+
if (i) {
|
|
1633
|
+
t[i] = ie(n), delete t[s];
|
|
1634
|
+
return;
|
|
1635
|
+
}
|
|
1636
|
+
const o = e ? rn(s) : String(s).trim();
|
|
1637
|
+
o !== s && delete t[s], t[o] = ie(n), r[o] = !0;
|
|
1638
|
+
}), this;
|
|
1639
|
+
},
|
|
1640
|
+
toJSON: function(e) {
|
|
1641
|
+
const t = /* @__PURE__ */ Object.create(null);
|
|
1642
|
+
return a.forEach(
|
|
1643
|
+
Object.assign({}, this[_t] || null, this),
|
|
1644
|
+
(r, n) => {
|
|
1645
|
+
r == null || r === !1 || (t[n] = e && a.isArray(r) ? r.join(", ") : r);
|
|
1646
|
+
}
|
|
1647
|
+
), t;
|
|
1648
|
+
}
|
|
1649
|
+
});
|
|
1650
|
+
Object.assign(v, {
|
|
1651
|
+
from: function(e) {
|
|
1652
|
+
return a.isString(e) ? new this(en(e)) : e instanceof this ? e : new this(e);
|
|
1653
|
+
},
|
|
1654
|
+
accessor: function(e) {
|
|
1655
|
+
const r = (this[Qe] = this[Qe] = {
|
|
1656
|
+
accessors: {}
|
|
1657
|
+
}).accessors, n = this.prototype;
|
|
1658
|
+
function s(i) {
|
|
1659
|
+
const o = K(i);
|
|
1660
|
+
r[o] || (nn(n, i), r[o] = !0);
|
|
1661
|
+
}
|
|
1662
|
+
return a.isArray(e) ? e.forEach(s) : s(e), this;
|
|
1663
|
+
}
|
|
1664
|
+
});
|
|
1665
|
+
v.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent"]);
|
|
1666
|
+
a.freezeMethods(v.prototype);
|
|
1667
|
+
a.freezeMethods(v);
|
|
1668
|
+
function sn(e, t) {
|
|
1669
|
+
e = e || 10;
|
|
1670
|
+
const r = new Array(e), n = new Array(e);
|
|
1671
|
+
let s = 0, i = 0, o;
|
|
1672
|
+
return t = t !== void 0 ? t : 1e3, function(f) {
|
|
1673
|
+
const c = Date.now(), d = n[i];
|
|
1674
|
+
o || (o = c), r[s] = f, n[s] = c;
|
|
1675
|
+
let m = i, g = 0;
|
|
1676
|
+
for (; m !== s; )
|
|
1677
|
+
g += r[m++], m = m % e;
|
|
1678
|
+
if (s = (s + 1) % e, s === i && (i = (i + 1) % e), c - o < t)
|
|
1679
|
+
return;
|
|
1680
|
+
const h = d && c - d;
|
|
1681
|
+
return h ? Math.round(g * 1e3 / h) : void 0;
|
|
1682
|
+
};
|
|
1683
|
+
}
|
|
1684
|
+
function Ze(e, t) {
|
|
1685
|
+
let r = 0;
|
|
1686
|
+
const n = sn(50, 250);
|
|
1687
|
+
return (s) => {
|
|
1688
|
+
const i = s.loaded, o = s.lengthComputable ? s.total : void 0, u = i - r, f = n(u), c = i <= o;
|
|
1689
|
+
r = i;
|
|
1690
|
+
const d = {
|
|
1691
|
+
loaded: i,
|
|
1692
|
+
total: o,
|
|
1693
|
+
progress: o ? i / o : void 0,
|
|
1694
|
+
bytes: u,
|
|
1695
|
+
rate: f || void 0,
|
|
1696
|
+
estimated: f && o && c ? (o - i) / f : void 0
|
|
1697
|
+
};
|
|
1698
|
+
d[t ? "download" : "upload"] = !0, e(d);
|
|
1699
|
+
};
|
|
1700
|
+
}
|
|
1701
|
+
function et(e) {
|
|
1702
|
+
return new Promise(function(r, n) {
|
|
1703
|
+
let s = e.data;
|
|
1704
|
+
const i = v.from(e.headers).normalize(), o = e.responseType;
|
|
1705
|
+
let u;
|
|
1706
|
+
function f() {
|
|
1707
|
+
e.cancelToken && e.cancelToken.unsubscribe(u), e.signal && e.signal.removeEventListener("abort", u);
|
|
1708
|
+
}
|
|
1709
|
+
a.isFormData(s) && T.isStandardBrowserEnv && i.setContentType(!1);
|
|
1710
|
+
let c = new XMLHttpRequest();
|
|
1711
|
+
if (e.auth) {
|
|
1712
|
+
const h = e.auth.username || "", l = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
1713
|
+
i.set("Authorization", "Basic " + btoa(h + ":" + l));
|
|
1714
|
+
}
|
|
1715
|
+
const d = Ot(e.baseURL, e.url);
|
|
1716
|
+
c.open(e.method.toUpperCase(), Nt(d, e.params, e.paramsSerializer), !0), c.timeout = e.timeout;
|
|
1717
|
+
function m() {
|
|
1718
|
+
if (!c)
|
|
1719
|
+
return;
|
|
1720
|
+
const h = v.from(
|
|
1721
|
+
"getAllResponseHeaders" in c && c.getAllResponseHeaders()
|
|
1722
|
+
), N = {
|
|
1723
|
+
data: !o || o === "text" || o === "json" ? c.responseText : c.response,
|
|
1724
|
+
status: c.status,
|
|
1725
|
+
statusText: c.statusText,
|
|
1726
|
+
headers: h,
|
|
1727
|
+
config: e,
|
|
1728
|
+
request: c
|
|
1729
|
+
};
|
|
1730
|
+
Jr(function(A) {
|
|
1731
|
+
r(A), f();
|
|
1732
|
+
}, function(A) {
|
|
1733
|
+
n(A), f();
|
|
1734
|
+
}, N), c = null;
|
|
1735
|
+
}
|
|
1736
|
+
if ("onloadend" in c ? c.onloadend = m : c.onreadystatechange = function() {
|
|
1737
|
+
!c || c.readyState !== 4 || c.status === 0 && !(c.responseURL && c.responseURL.indexOf("file:") === 0) || setTimeout(m);
|
|
1738
|
+
}, c.onabort = function() {
|
|
1739
|
+
!c || (n(new y("Request aborted", y.ECONNABORTED, e, c)), c = null);
|
|
1740
|
+
}, c.onerror = function() {
|
|
1741
|
+
n(new y("Network Error", y.ERR_NETWORK, e, c)), c = null;
|
|
1742
|
+
}, c.ontimeout = function() {
|
|
1743
|
+
let l = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
1744
|
+
const N = e.transitional || St;
|
|
1745
|
+
e.timeoutErrorMessage && (l = e.timeoutErrorMessage), n(new y(
|
|
1746
|
+
l,
|
|
1747
|
+
N.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
|
|
1748
|
+
e,
|
|
1749
|
+
c
|
|
1750
|
+
)), c = null;
|
|
1751
|
+
}, T.isStandardBrowserEnv) {
|
|
1752
|
+
const h = (e.withCredentials || Qr(d)) && e.xsrfCookieName && Xr.read(e.xsrfCookieName);
|
|
1753
|
+
h && i.set(e.xsrfHeaderName, h);
|
|
1754
|
+
}
|
|
1755
|
+
s === void 0 && i.setContentType(null), "setRequestHeader" in c && a.forEach(i.toJSON(), function(l, N) {
|
|
1756
|
+
c.setRequestHeader(N, l);
|
|
1757
|
+
}), 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
|
+
!c || (n(!h || h.type ? new te(null, e, c) : h), c.abort(), c = null);
|
|
1759
|
+
}, e.cancelToken && e.cancelToken.subscribe(u), e.signal && (e.signal.aborted ? u() : e.signal.addEventListener("abort", u)));
|
|
1760
|
+
const g = Yr(d);
|
|
1761
|
+
if (g && T.protocols.indexOf(g) === -1) {
|
|
1762
|
+
n(new y("Unsupported protocol " + g + ":", y.ERR_BAD_REQUEST, e));
|
|
1763
|
+
return;
|
|
1764
|
+
}
|
|
1765
|
+
c.send(s || null);
|
|
1766
|
+
});
|
|
1767
|
+
}
|
|
1768
|
+
const tt = {
|
|
1769
|
+
http: et,
|
|
1770
|
+
xhr: et
|
|
1771
|
+
}, rt = {
|
|
1772
|
+
getAdapter: (e) => {
|
|
1773
|
+
if (a.isString(e)) {
|
|
1774
|
+
const t = tt[e];
|
|
1775
|
+
if (!e)
|
|
1776
|
+
throw Error(
|
|
1777
|
+
a.hasOwnProp(e) ? `Adapter '${e}' is not available in the build` : `Can not resolve adapter '${e}'`
|
|
1778
|
+
);
|
|
1779
|
+
return t;
|
|
1780
|
+
}
|
|
1781
|
+
if (!a.isFunction(e))
|
|
1782
|
+
throw new TypeError("adapter is not a function");
|
|
1783
|
+
return e;
|
|
1784
|
+
},
|
|
1785
|
+
adapters: tt
|
|
1786
|
+
}, on = {
|
|
1787
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
1788
|
+
};
|
|
1789
|
+
function an() {
|
|
1790
|
+
let e;
|
|
1791
|
+
return typeof XMLHttpRequest < "u" ? e = rt.getAdapter("xhr") : typeof process < "u" && a.kindOf(process) === "process" && (e = rt.getAdapter("http")), e;
|
|
1792
|
+
}
|
|
1793
|
+
function cn(e, t, r) {
|
|
1794
|
+
if (a.isString(e))
|
|
1795
|
+
try {
|
|
1796
|
+
return (t || JSON.parse)(e), a.trim(e);
|
|
1797
|
+
} catch (n) {
|
|
1798
|
+
if (n.name !== "SyntaxError")
|
|
1799
|
+
throw n;
|
|
1800
|
+
}
|
|
1801
|
+
return (r || JSON.stringify)(e);
|
|
1802
|
+
}
|
|
1803
|
+
const H = {
|
|
1804
|
+
transitional: St,
|
|
1805
|
+
adapter: an(),
|
|
1806
|
+
transformRequest: [function(t, r) {
|
|
1807
|
+
const n = r.getContentType() || "", s = n.indexOf("application/json") > -1, i = a.isObject(t);
|
|
1808
|
+
if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
1809
|
+
return s && s ? JSON.stringify(At(t)) : t;
|
|
1810
|
+
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t))
|
|
1811
|
+
return t;
|
|
1812
|
+
if (a.isArrayBufferView(t))
|
|
1813
|
+
return t.buffer;
|
|
1814
|
+
if (a.isURLSearchParams(t))
|
|
1815
|
+
return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
1816
|
+
let u;
|
|
1817
|
+
if (i) {
|
|
1818
|
+
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
1819
|
+
return qr(t, this.formSerializer).toString();
|
|
1820
|
+
if ((u = a.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
|
1821
|
+
const f = this.env && this.env.FormData;
|
|
1822
|
+
return le(
|
|
1823
|
+
u ? { "files[]": t } : t,
|
|
1824
|
+
f && new f(),
|
|
1825
|
+
this.formSerializer
|
|
1826
|
+
);
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
return i || s ? (r.setContentType("application/json", !1), cn(t)) : t;
|
|
1830
|
+
}],
|
|
1831
|
+
transformResponse: [function(t) {
|
|
1832
|
+
const r = this.transitional || H.transitional, n = r && r.forcedJSONParsing, s = this.responseType === "json";
|
|
1833
|
+
if (t && a.isString(t) && (n && !this.responseType || s)) {
|
|
1834
|
+
const o = !(r && r.silentJSONParsing) && s;
|
|
1835
|
+
try {
|
|
1836
|
+
return JSON.parse(t);
|
|
1837
|
+
} catch (u) {
|
|
1838
|
+
if (o)
|
|
1839
|
+
throw u.name === "SyntaxError" ? y.from(u, y.ERR_BAD_RESPONSE, this, null, this.response) : u;
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
return t;
|
|
1843
|
+
}],
|
|
1844
|
+
timeout: 0,
|
|
1845
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
1846
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
1847
|
+
maxContentLength: -1,
|
|
1848
|
+
maxBodyLength: -1,
|
|
1849
|
+
env: {
|
|
1850
|
+
FormData: T.classes.FormData,
|
|
1851
|
+
Blob: T.classes.Blob
|
|
1852
|
+
},
|
|
1853
|
+
validateStatus: function(t) {
|
|
1854
|
+
return t >= 200 && t < 300;
|
|
1855
|
+
},
|
|
1856
|
+
headers: {
|
|
1857
|
+
common: {
|
|
1858
|
+
Accept: "application/json, text/plain, */*"
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
};
|
|
1862
|
+
a.forEach(["delete", "get", "head"], function(t) {
|
|
1863
|
+
H.headers[t] = {};
|
|
1864
|
+
});
|
|
1865
|
+
a.forEach(["post", "put", "patch"], function(t) {
|
|
1866
|
+
H.headers[t] = a.merge(on);
|
|
1867
|
+
});
|
|
1868
|
+
function _e(e, t) {
|
|
1869
|
+
const r = this || H, n = t || r, s = v.from(n.headers);
|
|
1870
|
+
let i = n.data;
|
|
1871
|
+
return a.forEach(e, function(u) {
|
|
1872
|
+
i = u.call(r, i, s.normalize(), t ? t.status : void 0);
|
|
1873
|
+
}), s.normalize(), i;
|
|
1874
|
+
}
|
|
1875
|
+
function Rt(e) {
|
|
1876
|
+
return !!(e && e.__CANCEL__);
|
|
1877
|
+
}
|
|
1878
|
+
function Re(e) {
|
|
1879
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1880
|
+
throw new te();
|
|
1881
|
+
}
|
|
1882
|
+
function nt(e) {
|
|
1883
|
+
return Re(e), e.headers = v.from(e.headers), e.data = _e.call(
|
|
1884
|
+
e,
|
|
1885
|
+
e.transformRequest
|
|
1886
|
+
), (e.adapter || H.adapter)(e).then(function(n) {
|
|
1887
|
+
return Re(e), n.data = _e.call(
|
|
1888
|
+
e,
|
|
1889
|
+
e.transformResponse,
|
|
1890
|
+
n
|
|
1891
|
+
), n.headers = v.from(n.headers), n;
|
|
1892
|
+
}, function(n) {
|
|
1893
|
+
return Rt(n) || (Re(e), n && n.response && (n.response.data = _e.call(
|
|
1894
|
+
e,
|
|
1895
|
+
e.transformResponse,
|
|
1896
|
+
n.response
|
|
1897
|
+
), n.response.headers = v.from(n.response.headers))), Promise.reject(n);
|
|
1898
|
+
});
|
|
1899
|
+
}
|
|
1900
|
+
function Z(e, t) {
|
|
1901
|
+
t = t || {};
|
|
1902
|
+
const r = {};
|
|
1903
|
+
function n(c, d) {
|
|
1904
|
+
return a.isPlainObject(c) && a.isPlainObject(d) ? a.merge(c, d) : a.isPlainObject(d) ? a.merge({}, d) : a.isArray(d) ? d.slice() : d;
|
|
1905
|
+
}
|
|
1906
|
+
function s(c) {
|
|
1907
|
+
if (a.isUndefined(t[c])) {
|
|
1908
|
+
if (!a.isUndefined(e[c]))
|
|
1909
|
+
return n(void 0, e[c]);
|
|
1910
|
+
} else
|
|
1911
|
+
return n(e[c], t[c]);
|
|
1912
|
+
}
|
|
1913
|
+
function i(c) {
|
|
1914
|
+
if (!a.isUndefined(t[c]))
|
|
1915
|
+
return n(void 0, t[c]);
|
|
1916
|
+
}
|
|
1917
|
+
function o(c) {
|
|
1918
|
+
if (a.isUndefined(t[c])) {
|
|
1919
|
+
if (!a.isUndefined(e[c]))
|
|
1920
|
+
return n(void 0, e[c]);
|
|
1921
|
+
} else
|
|
1922
|
+
return n(void 0, t[c]);
|
|
1923
|
+
}
|
|
1924
|
+
function u(c) {
|
|
1925
|
+
if (c in t)
|
|
1926
|
+
return n(e[c], t[c]);
|
|
1927
|
+
if (c in e)
|
|
1928
|
+
return n(void 0, e[c]);
|
|
1929
|
+
}
|
|
1930
|
+
const f = {
|
|
1931
|
+
url: i,
|
|
1932
|
+
method: i,
|
|
1933
|
+
data: i,
|
|
1934
|
+
baseURL: o,
|
|
1935
|
+
transformRequest: o,
|
|
1936
|
+
transformResponse: o,
|
|
1937
|
+
paramsSerializer: o,
|
|
1938
|
+
timeout: o,
|
|
1939
|
+
timeoutMessage: o,
|
|
1940
|
+
withCredentials: o,
|
|
1941
|
+
adapter: o,
|
|
1942
|
+
responseType: o,
|
|
1943
|
+
xsrfCookieName: o,
|
|
1944
|
+
xsrfHeaderName: o,
|
|
1945
|
+
onUploadProgress: o,
|
|
1946
|
+
onDownloadProgress: o,
|
|
1947
|
+
decompress: o,
|
|
1948
|
+
maxContentLength: o,
|
|
1949
|
+
maxBodyLength: o,
|
|
1950
|
+
beforeRedirect: o,
|
|
1951
|
+
transport: o,
|
|
1952
|
+
httpAgent: o,
|
|
1953
|
+
httpsAgent: o,
|
|
1954
|
+
cancelToken: o,
|
|
1955
|
+
socketPath: o,
|
|
1956
|
+
responseEncoding: o,
|
|
1957
|
+
validateStatus: u
|
|
1958
|
+
};
|
|
1959
|
+
return a.forEach(Object.keys(e).concat(Object.keys(t)), function(d) {
|
|
1960
|
+
const m = f[d] || s, g = m(d);
|
|
1961
|
+
a.isUndefined(g) && m !== u || (r[d] = g);
|
|
1962
|
+
}), r;
|
|
1963
|
+
}
|
|
1964
|
+
const vt = "1.1.3", Be = {};
|
|
1965
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1966
|
+
Be[e] = function(n) {
|
|
1967
|
+
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1968
|
+
};
|
|
1969
|
+
});
|
|
1970
|
+
const st = {};
|
|
1971
|
+
Be.transitional = function(t, r, n) {
|
|
1972
|
+
function s(i, o) {
|
|
1973
|
+
return "[Axios v" + vt + "] Transitional option '" + i + "'" + o + (n ? ". " + n : "");
|
|
1974
|
+
}
|
|
1975
|
+
return (i, o, u) => {
|
|
1976
|
+
if (t === !1)
|
|
1977
|
+
throw new y(
|
|
1978
|
+
s(o, " has been removed" + (r ? " in " + r : "")),
|
|
1979
|
+
y.ERR_DEPRECATED
|
|
1980
|
+
);
|
|
1981
|
+
return r && !st[o] && (st[o] = !0, console.warn(
|
|
1982
|
+
s(
|
|
1983
|
+
o,
|
|
1984
|
+
" has been deprecated since v" + r + " and will be removed in the near future"
|
|
1985
|
+
)
|
|
1986
|
+
)), t ? t(i, o, u) : !0;
|
|
1987
|
+
};
|
|
1988
|
+
};
|
|
1989
|
+
function un(e, t, r) {
|
|
1990
|
+
if (typeof e != "object")
|
|
1991
|
+
throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
|
|
1992
|
+
const n = Object.keys(e);
|
|
1993
|
+
let s = n.length;
|
|
1994
|
+
for (; s-- > 0; ) {
|
|
1995
|
+
const i = n[s], o = t[i];
|
|
1996
|
+
if (o) {
|
|
1997
|
+
const u = e[i], f = u === void 0 || o(u, i, e);
|
|
1998
|
+
if (f !== !0)
|
|
1999
|
+
throw new y("option " + i + " must be " + f, y.ERR_BAD_OPTION_VALUE);
|
|
2000
|
+
continue;
|
|
2001
|
+
}
|
|
2002
|
+
if (r !== !0)
|
|
2003
|
+
throw new y("Unknown option " + i, y.ERR_BAD_OPTION);
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
const Te = {
|
|
2007
|
+
assertOptions: un,
|
|
2008
|
+
validators: Be
|
|
2009
|
+
}, U = Te.validators;
|
|
2010
|
+
class I {
|
|
2011
|
+
constructor(t) {
|
|
2012
|
+
this.defaults = t, this.interceptors = {
|
|
2013
|
+
request: new Ke(),
|
|
2014
|
+
response: new Ke()
|
|
2015
|
+
};
|
|
2016
|
+
}
|
|
2017
|
+
request(t, r) {
|
|
2018
|
+
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = Z(this.defaults, r);
|
|
2019
|
+
const { transitional: n, paramsSerializer: s } = r;
|
|
2020
|
+
n !== void 0 && Te.assertOptions(n, {
|
|
2021
|
+
silentJSONParsing: U.transitional(U.boolean),
|
|
2022
|
+
forcedJSONParsing: U.transitional(U.boolean),
|
|
2023
|
+
clarifyTimeoutError: U.transitional(U.boolean)
|
|
2024
|
+
}, !1), s !== void 0 && Te.assertOptions(s, {
|
|
2025
|
+
encode: U.function,
|
|
2026
|
+
serialize: U.function
|
|
2027
|
+
}, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
2028
|
+
const i = r.headers && a.merge(
|
|
2029
|
+
r.headers.common,
|
|
2030
|
+
r.headers[r.method]
|
|
2031
|
+
);
|
|
2032
|
+
i && a.forEach(
|
|
2033
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
2034
|
+
function(l) {
|
|
2035
|
+
delete r.headers[l];
|
|
2036
|
+
}
|
|
2037
|
+
), r.headers = new v(r.headers, i);
|
|
2038
|
+
const o = [];
|
|
2039
|
+
let u = !0;
|
|
2040
|
+
this.interceptors.request.forEach(function(l) {
|
|
2041
|
+
typeof l.runWhen == "function" && l.runWhen(r) === !1 || (u = u && l.synchronous, o.unshift(l.fulfilled, l.rejected));
|
|
2042
|
+
});
|
|
2043
|
+
const f = [];
|
|
2044
|
+
this.interceptors.response.forEach(function(l) {
|
|
2045
|
+
f.push(l.fulfilled, l.rejected);
|
|
2046
|
+
});
|
|
2047
|
+
let c, d = 0, m;
|
|
2048
|
+
if (!u) {
|
|
2049
|
+
const h = [nt.bind(this), void 0];
|
|
2050
|
+
for (h.unshift.apply(h, o), h.push.apply(h, f), m = h.length, c = Promise.resolve(r); d < m; )
|
|
2051
|
+
c = c.then(h[d++], h[d++]);
|
|
2052
|
+
return c;
|
|
2053
|
+
}
|
|
2054
|
+
m = o.length;
|
|
2055
|
+
let g = r;
|
|
2056
|
+
for (d = 0; d < m; ) {
|
|
2057
|
+
const h = o[d++], l = o[d++];
|
|
2058
|
+
try {
|
|
2059
|
+
g = h(g);
|
|
2060
|
+
} catch (N) {
|
|
2061
|
+
l.call(this, N);
|
|
2062
|
+
break;
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
try {
|
|
2066
|
+
c = nt.call(this, g);
|
|
2067
|
+
} catch (h) {
|
|
2068
|
+
return Promise.reject(h);
|
|
2069
|
+
}
|
|
2070
|
+
for (d = 0, m = f.length; d < m; )
|
|
2071
|
+
c = c.then(f[d++], f[d++]);
|
|
2072
|
+
return c;
|
|
2073
|
+
}
|
|
2074
|
+
getUri(t) {
|
|
2075
|
+
t = Z(this.defaults, t);
|
|
2076
|
+
const r = Ot(t.baseURL, t.url);
|
|
2077
|
+
return Nt(r, t.params, t.paramsSerializer);
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
2081
|
+
I.prototype[t] = function(r, n) {
|
|
2082
|
+
return this.request(Z(n || {}, {
|
|
2083
|
+
method: t,
|
|
2084
|
+
url: r,
|
|
2085
|
+
data: (n || {}).data
|
|
2086
|
+
}));
|
|
2087
|
+
};
|
|
2088
|
+
});
|
|
2089
|
+
a.forEach(["post", "put", "patch"], function(t) {
|
|
2090
|
+
function r(n) {
|
|
2091
|
+
return function(i, o, u) {
|
|
2092
|
+
return this.request(Z(u || {}, {
|
|
2093
|
+
method: t,
|
|
2094
|
+
headers: n ? {
|
|
2095
|
+
"Content-Type": "multipart/form-data"
|
|
2096
|
+
} : {},
|
|
2097
|
+
url: i,
|
|
2098
|
+
data: o
|
|
2099
|
+
}));
|
|
2100
|
+
};
|
|
2101
|
+
}
|
|
2102
|
+
I.prototype[t] = r(), I.prototype[t + "Form"] = r(!0);
|
|
2103
|
+
});
|
|
2104
|
+
class Ie {
|
|
2105
|
+
constructor(t) {
|
|
2106
|
+
if (typeof t != "function")
|
|
2107
|
+
throw new TypeError("executor must be a function.");
|
|
2108
|
+
let r;
|
|
2109
|
+
this.promise = new Promise(function(i) {
|
|
2110
|
+
r = i;
|
|
2111
|
+
});
|
|
2112
|
+
const n = this;
|
|
2113
|
+
this.promise.then((s) => {
|
|
2114
|
+
if (!n._listeners)
|
|
2115
|
+
return;
|
|
2116
|
+
let i = n._listeners.length;
|
|
2117
|
+
for (; i-- > 0; )
|
|
2118
|
+
n._listeners[i](s);
|
|
2119
|
+
n._listeners = null;
|
|
2120
|
+
}), this.promise.then = (s) => {
|
|
2121
|
+
let i;
|
|
2122
|
+
const o = new Promise((u) => {
|
|
2123
|
+
n.subscribe(u), i = u;
|
|
2124
|
+
}).then(s);
|
|
2125
|
+
return o.cancel = function() {
|
|
2126
|
+
n.unsubscribe(i);
|
|
2127
|
+
}, o;
|
|
2128
|
+
}, t(function(i, o, u) {
|
|
2129
|
+
n.reason || (n.reason = new te(i, o, u), r(n.reason));
|
|
2130
|
+
});
|
|
2131
|
+
}
|
|
2132
|
+
throwIfRequested() {
|
|
2133
|
+
if (this.reason)
|
|
2134
|
+
throw this.reason;
|
|
2135
|
+
}
|
|
2136
|
+
subscribe(t) {
|
|
2137
|
+
if (this.reason) {
|
|
2138
|
+
t(this.reason);
|
|
2139
|
+
return;
|
|
2140
|
+
}
|
|
2141
|
+
this._listeners ? this._listeners.push(t) : this._listeners = [t];
|
|
2142
|
+
}
|
|
2143
|
+
unsubscribe(t) {
|
|
2144
|
+
if (!this._listeners)
|
|
2145
|
+
return;
|
|
2146
|
+
const r = this._listeners.indexOf(t);
|
|
2147
|
+
r !== -1 && this._listeners.splice(r, 1);
|
|
2148
|
+
}
|
|
2149
|
+
static source() {
|
|
2150
|
+
let t;
|
|
2151
|
+
return {
|
|
2152
|
+
token: new Ie(function(s) {
|
|
2153
|
+
t = s;
|
|
2154
|
+
}),
|
|
2155
|
+
cancel: t
|
|
2156
|
+
};
|
|
2157
|
+
}
|
|
2158
|
+
}
|
|
2159
|
+
function ln(e) {
|
|
2160
|
+
return function(r) {
|
|
2161
|
+
return e.apply(null, r);
|
|
2162
|
+
};
|
|
2163
|
+
}
|
|
2164
|
+
function fn(e) {
|
|
2165
|
+
return a.isObject(e) && e.isAxiosError === !0;
|
|
2166
|
+
}
|
|
2167
|
+
function Pt(e) {
|
|
2168
|
+
const t = new I(e), r = ft(I.prototype.request, t);
|
|
2169
|
+
return a.extend(r, I.prototype, t, { allOwnKeys: !0 }), a.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(s) {
|
|
2170
|
+
return Pt(Z(e, s));
|
|
2171
|
+
}, r;
|
|
2172
|
+
}
|
|
2173
|
+
const S = Pt(H);
|
|
2174
|
+
S.Axios = I;
|
|
2175
|
+
S.CanceledError = te;
|
|
2176
|
+
S.CancelToken = Ie;
|
|
2177
|
+
S.isCancel = Rt;
|
|
2178
|
+
S.VERSION = vt;
|
|
2179
|
+
S.toFormData = le;
|
|
2180
|
+
S.AxiosError = y;
|
|
2181
|
+
S.Cancel = S.CanceledError;
|
|
2182
|
+
S.all = function(t) {
|
|
2183
|
+
return Promise.all(t);
|
|
2184
|
+
};
|
|
2185
|
+
S.spread = ln;
|
|
2186
|
+
S.isAxiosError = fn;
|
|
2187
|
+
S.formToJSON = (e) => At(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
2188
|
+
class gn {
|
|
2189
|
+
getLoolUrl(t) {
|
|
2190
|
+
let r = `${t}/alfresco/service/lool/host/url`;
|
|
2191
|
+
return S.get(r).then((n) => n.data).catch((n) => {
|
|
2192
|
+
Qt(n);
|
|
2193
|
+
});
|
|
2194
|
+
}
|
|
2195
|
+
getAccessToken(t, r, n) {
|
|
2196
|
+
let s = `${t}/alfresco/service/lool/token?nodeRef=workspace://SpacesStore/${r}&action=${n}`, i = {
|
|
2197
|
+
headers: {
|
|
2198
|
+
Authorization: `basic ${window.btoa(
|
|
2199
|
+
window.localStorage["ticket-ECM"]
|
|
2200
|
+
)}`
|
|
2201
|
+
}
|
|
2202
|
+
};
|
|
2203
|
+
return S.get(s, i).then((o) => o.data).catch((o) => {
|
|
2204
|
+
Yt(o);
|
|
2205
|
+
});
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
class Nn {
|
|
2209
|
+
getCollaboraExtensions(t) {
|
|
2210
|
+
return S.get(`${t}/hosting/discovery`).then((r) => new DOMParser().parseFromString(r.data, "text/xml")).catch((r) => {
|
|
2211
|
+
Zt(r);
|
|
2212
|
+
});
|
|
2213
|
+
}
|
|
2214
|
+
canOpenWithCollabora(t, r, n) {
|
|
2215
|
+
return this.getCollaboraExtensions(t).then((s) => this.checkIfExists(s, r, n)).catch((s) => {
|
|
2216
|
+
er(s);
|
|
2217
|
+
});
|
|
2218
|
+
}
|
|
2219
|
+
checkIfExists(t, r, n) {
|
|
2220
|
+
const i = [...t.getElementsByTagName("app")].find(
|
|
2221
|
+
(o) => o.attributes.name.value === r
|
|
2222
|
+
);
|
|
2223
|
+
return i ? !![...i.getElementsByTagName("action")].find(
|
|
2224
|
+
(f) => f.attributes.name.value === n
|
|
2225
|
+
) : !!i;
|
|
951
2226
|
}
|
|
952
2227
|
}
|
|
953
2228
|
export {
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
2229
|
+
mn as AlfrescoFileService,
|
|
2230
|
+
En as AlfrescoNodeService,
|
|
2231
|
+
bn as AlfrescoPermissionService,
|
|
2232
|
+
gn as CollaboraAccessService,
|
|
2233
|
+
Nn as CollaboraExtensionService,
|
|
2234
|
+
ct as ErrorService,
|
|
2235
|
+
yn as FavoriteService,
|
|
2236
|
+
wn as WorkspaceService,
|
|
2237
|
+
R as alfrescoApi,
|
|
2238
|
+
Se as favoritesApi,
|
|
2239
|
+
k as nodesApi,
|
|
2240
|
+
ve as peopleApi,
|
|
2241
|
+
$e as renditionsApi,
|
|
2242
|
+
Gt as searchApi,
|
|
2243
|
+
L as sitesApi,
|
|
2244
|
+
hn as trashcanApi,
|
|
2245
|
+
Xt as uploadApi,
|
|
2246
|
+
We as useUserStore
|
|
970
2247
|
};
|