@orangelogic/design-system 2.114.0 → 2.115.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/library/chunks/asset.CtPQLZOf.js +607 -0
- package/library/chunks/{color-swatch-group.5Mqr0rNP.js → color-swatch-group.DjjSIHSV.js} +1 -1
- package/library/chunks/{document-viewer.Cui5mV3v.js → document-viewer.BIC9iYpZ.js} +1232 -1228
- package/library/chunks/{endpoints.DBlquU2-.js → endpoints.CDX5PgQz.js} +251 -251
- package/library/chunks/{folder-select.Bc9x2hMO.js → folder-select.8xNjeJfp.js} +1 -1
- package/library/chunks/{list-editor.BBgFSBlF.js → list-editor.7zNWfBuW.js} +8 -8
- package/library/chunks/{table.DLrle5SR.js → table.BvbReIZh.js} +41 -40
- package/library/chunks/{time.BiQnh9wt.js → time.BSmpFe2G.js} +2 -2
- package/library/chunks/waveform.1U9U_0rd.js +60 -0
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +2 -2
- package/library/components/audio.js +131 -182
- package/library/components/color-swatch-group.js +2 -2
- package/library/components/document-viewer.js +1 -1
- package/library/components/folder-select.js +2 -2
- package/library/components/format-time.js +1 -1
- package/library/components/list-editor.js +2 -2
- package/library/components/molecules.js +2 -2
- package/library/components/organisms.js +1 -1
- package/library/components/table.js +6 -6
- package/library/components/types.js +25325 -25041
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/audio/audio.d.ts +36 -28
- package/library/packages/events/src/cx-facet-change.d.ts +16 -0
- package/library/packages/events/src/cx-faceted-filter-change.d.ts +6 -1
- package/library/packages/events/src/events.d.ts +1 -0
- package/library/packages/molecules/src/faceted-filter/components/facet-date-picker/facet-date-picker.d.ts +43 -0
- package/library/packages/molecules/src/faceted-filter/components/facet-date-picker/facet-date-picker.styles.d.ts +2 -0
- package/library/packages/molecules/src/faceted-filter/components/facet-date-range/facet-date-range.d.ts +51 -0
- package/library/packages/molecules/src/faceted-filter/components/facet-date-range/facet-date-range.styles.d.ts +2 -0
- package/library/packages/molecules/src/faceted-filter/facet-adapters.d.ts +12 -0
- package/library/packages/molecules/src/faceted-filter/faceted-filter.d.ts +14 -3
- package/library/packages/molecules/src/index.d.ts +3 -0
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/components/gallery-config/gallery-config.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/components/page-picker/page-picker.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/audio.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +2 -2
- package/library/packages/services/src/api/asset/asset.d.ts +3 -1
- package/library/packages/services/src/api/endpoints.d.ts +2 -0
- package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +6 -0
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +11 -4
- package/library/packages/types/src/faceted-filter.d.ts +71 -2
- package/library/packages/utils/src/image/index.d.ts +1 -0
- package/library/packages/utils/src/image/waveform.d.ts +29 -0
- package/library/react-web-component.d.ts +317 -194
- package/library/utils.js +174 -171
- package/package.json +1 -1
- package/library/chunks/asset.Drl4D1c7.js +0 -458
- package/library/chunks/wavesurfer.esm.Cwi1pz64.js +0 -1276
|
@@ -3,11 +3,11 @@ function Ie(e, t) {
|
|
|
3
3
|
return e.apply(t, arguments);
|
|
4
4
|
};
|
|
5
5
|
}
|
|
6
|
-
const { toString: pt } = Object.prototype, { getPrototypeOf:
|
|
6
|
+
const { toString: pt } = Object.prototype, { getPrototypeOf: ye } = Object, { iterator: te, toStringTag: Me } = Symbol, re = /* @__PURE__ */ ((e) => (t) => {
|
|
7
7
|
const r = pt.call(t);
|
|
8
8
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
9
9
|
})(/* @__PURE__ */ Object.create(null)), L = (e) => (e = e.toLowerCase(), (t) => re(t) === e), ne = (e) => (t) => typeof t === e, { isArray: I } = Array, H = ne("undefined");
|
|
10
|
-
function
|
|
10
|
+
function G(e) {
|
|
11
11
|
return e !== null && !H(e) && e.constructor !== null && !H(e.constructor) && _(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
12
12
|
}
|
|
13
13
|
const qe = L("ArrayBuffer");
|
|
@@ -15,25 +15,25 @@ function mt(e) {
|
|
|
15
15
|
let t;
|
|
16
16
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && qe(e.buffer), t;
|
|
17
17
|
}
|
|
18
|
-
const bt = ne("string"), _ = ne("function"), He = ne("number"),
|
|
18
|
+
const bt = ne("string"), _ = ne("function"), He = ne("number"), J = (e) => e !== null && typeof e == "object", wt = (e) => e === !0 || e === !1, W = (e) => {
|
|
19
19
|
if (re(e) !== "object")
|
|
20
20
|
return !1;
|
|
21
|
-
const t =
|
|
21
|
+
const t = ye(e);
|
|
22
22
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Me in e) && !(te in e);
|
|
23
|
-
},
|
|
24
|
-
if (
|
|
23
|
+
}, yt = (e) => {
|
|
24
|
+
if (!J(e) || G(e))
|
|
25
25
|
return !1;
|
|
26
26
|
try {
|
|
27
27
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
28
28
|
} catch {
|
|
29
29
|
return !1;
|
|
30
30
|
}
|
|
31
|
-
}, gt = L("Date"), Et = L("File"), St = L("Blob"), Rt = L("FileList"), Tt = (e) =>
|
|
31
|
+
}, gt = L("Date"), Et = L("File"), St = L("Blob"), Rt = L("FileList"), Tt = (e) => J(e) && _(e.pipe), Ot = (e) => {
|
|
32
32
|
let t;
|
|
33
33
|
return e && (typeof FormData == "function" && e instanceof FormData || _(e.append) && ((t = re(e)) === "formdata" || // detect form-data instance
|
|
34
34
|
t === "object" && _(e.toString) && e.toString() === "[object FormData]"));
|
|
35
|
-
},
|
|
36
|
-
function
|
|
35
|
+
}, At = L("URLSearchParams"), [_t, Ct, xt, Lt] = ["ReadableStream", "Request", "Response", "Headers"].map(L), vt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
36
|
+
function K(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
37
37
|
if (e === null || typeof e > "u")
|
|
38
38
|
return;
|
|
39
39
|
let n, s;
|
|
@@ -41,7 +41,7 @@ function G(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
|
41
41
|
for (n = 0, s = e.length; n < s; n++)
|
|
42
42
|
t.call(null, e[n], n, e);
|
|
43
43
|
else {
|
|
44
|
-
if (
|
|
44
|
+
if (G(e))
|
|
45
45
|
return;
|
|
46
46
|
const i = r ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length;
|
|
47
47
|
let o;
|
|
@@ -50,7 +50,7 @@ function G(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
function ze(e, t) {
|
|
53
|
-
if (
|
|
53
|
+
if (G(e))
|
|
54
54
|
return null;
|
|
55
55
|
t = t.toLowerCase();
|
|
56
56
|
const r = Object.keys(e);
|
|
@@ -60,33 +60,33 @@ function ze(e, t) {
|
|
|
60
60
|
return s;
|
|
61
61
|
return null;
|
|
62
62
|
}
|
|
63
|
-
const
|
|
63
|
+
const N = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ge = (e) => !H(e) && e !== N;
|
|
64
64
|
function ue() {
|
|
65
|
-
const { caseless: e } =
|
|
65
|
+
const { caseless: e } = Ge(this) && this || {}, t = {}, r = (n, s) => {
|
|
66
66
|
const i = e && ze(t, s) || s;
|
|
67
|
-
|
|
67
|
+
W(t[i]) && W(n) ? t[i] = ue(t[i], n) : W(n) ? t[i] = ue({}, n) : I(n) ? t[i] = n.slice() : t[i] = n;
|
|
68
68
|
};
|
|
69
69
|
for (let n = 0, s = arguments.length; n < s; n++)
|
|
70
|
-
arguments[n] &&
|
|
70
|
+
arguments[n] && K(arguments[n], r);
|
|
71
71
|
return t;
|
|
72
72
|
}
|
|
73
|
-
const
|
|
73
|
+
const Ft = (e, t, r, { allOwnKeys: n } = {}) => (K(t, (s, i) => {
|
|
74
74
|
r && _(s) ? e[i] = Ie(s, r) : e[i] = s;
|
|
75
|
-
}, { allOwnKeys: n }), e),
|
|
75
|
+
}, { allOwnKeys: n }), e), kt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), jt = (e, t, r, n) => {
|
|
76
76
|
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
77
77
|
value: t.prototype
|
|
78
78
|
}), r && Object.assign(e.prototype, r);
|
|
79
|
-
},
|
|
79
|
+
}, Nt = (e, t, r, n) => {
|
|
80
80
|
let s, i, a;
|
|
81
81
|
const o = {};
|
|
82
82
|
if (t = t || {}, e == null) return t;
|
|
83
83
|
do {
|
|
84
84
|
for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
|
|
85
85
|
a = s[i], (!n || n(a, e, t)) && !o[a] && (t[a] = e[a], o[a] = !0);
|
|
86
|
-
e = r !== !1 &&
|
|
86
|
+
e = r !== !1 && ye(e);
|
|
87
87
|
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
88
88
|
return t;
|
|
89
|
-
},
|
|
89
|
+
}, Pt = (e, t, r) => {
|
|
90
90
|
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
|
|
91
91
|
const n = e.indexOf(t, r);
|
|
92
92
|
return n !== -1 && n === r;
|
|
@@ -99,7 +99,7 @@ const Pt = (e, t, r, { allOwnKeys: n } = {}) => (G(t, (s, i) => {
|
|
|
99
99
|
for (; t-- > 0; )
|
|
100
100
|
r[t] = e[t];
|
|
101
101
|
return r;
|
|
102
|
-
},
|
|
102
|
+
}, Bt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ye(Uint8Array)), Dt = (e, t) => {
|
|
103
103
|
const n = (e && e[te]).call(e);
|
|
104
104
|
let s;
|
|
105
105
|
for (; (s = n.next()) && !s.done; ) {
|
|
@@ -117,14 +117,14 @@ const Pt = (e, t, r, { allOwnKeys: n } = {}) => (G(t, (s, i) => {
|
|
|
117
117
|
function(r, n, s) {
|
|
118
118
|
return n.toUpperCase() + s;
|
|
119
119
|
}
|
|
120
|
-
), Re = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Ht = L("RegExp"),
|
|
120
|
+
), Re = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Ht = L("RegExp"), Je = (e, t) => {
|
|
121
121
|
const r = Object.getOwnPropertyDescriptors(e), n = {};
|
|
122
|
-
|
|
122
|
+
K(r, (s, i) => {
|
|
123
123
|
let a;
|
|
124
124
|
(a = t(s, i, e)) !== !1 && (n[i] = a || s);
|
|
125
125
|
}), Object.defineProperties(e, n);
|
|
126
126
|
}, zt = (e) => {
|
|
127
|
-
|
|
127
|
+
Je(e, (t, r) => {
|
|
128
128
|
if (_(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
129
129
|
return !1;
|
|
130
130
|
const n = e[r];
|
|
@@ -138,29 +138,29 @@ const Pt = (e, t, r, { allOwnKeys: n } = {}) => (G(t, (s, i) => {
|
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
|
-
},
|
|
141
|
+
}, Gt = (e, t) => {
|
|
142
142
|
const r = {}, n = (s) => {
|
|
143
143
|
s.forEach((i) => {
|
|
144
144
|
r[i] = !0;
|
|
145
145
|
});
|
|
146
146
|
};
|
|
147
147
|
return I(e) ? n(e) : n(String(e).split(t)), r;
|
|
148
|
-
},
|
|
149
|
-
},
|
|
150
|
-
function
|
|
148
|
+
}, Jt = () => {
|
|
149
|
+
}, Kt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
150
|
+
function $t(e) {
|
|
151
151
|
return !!(e && _(e.append) && e[Me] === "FormData" && e[te]);
|
|
152
152
|
}
|
|
153
|
-
const
|
|
153
|
+
const Vt = (e) => {
|
|
154
154
|
const t = new Array(10), r = (n, s) => {
|
|
155
|
-
if (
|
|
155
|
+
if (J(n)) {
|
|
156
156
|
if (t.indexOf(n) >= 0)
|
|
157
157
|
return;
|
|
158
|
-
if (
|
|
158
|
+
if (G(n))
|
|
159
159
|
return n;
|
|
160
160
|
if (!("toJSON" in n)) {
|
|
161
161
|
t[s] = n;
|
|
162
162
|
const i = I(n) ? [] : {};
|
|
163
|
-
return
|
|
163
|
+
return K(n, (a, o) => {
|
|
164
164
|
const d = r(a, s + 1);
|
|
165
165
|
!H(d) && (i[o] = d);
|
|
166
166
|
}), t[s] = void 0, i;
|
|
@@ -169,25 +169,25 @@ const Wt = (e) => {
|
|
|
169
169
|
return n;
|
|
170
170
|
};
|
|
171
171
|
return r(e, 0);
|
|
172
|
-
},
|
|
173
|
-
s ===
|
|
172
|
+
}, Wt = L("AsyncFunction"), Xt = (e) => e && (J(e) || _(e)) && _(e.then) && _(e.catch), Ke = ((e, t) => e ? setImmediate : t ? ((r, n) => (N.addEventListener("message", ({ source: s, data: i }) => {
|
|
173
|
+
s === N && i === r && n.length && n.shift()();
|
|
174
174
|
}, !1), (s) => {
|
|
175
|
-
n.push(s),
|
|
175
|
+
n.push(s), N.postMessage(r, "*");
|
|
176
176
|
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
177
177
|
typeof setImmediate == "function",
|
|
178
|
-
_(
|
|
179
|
-
), Yt = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
178
|
+
_(N.postMessage)
|
|
179
|
+
), Yt = typeof queueMicrotask < "u" ? queueMicrotask.bind(N) : typeof process < "u" && process.nextTick || Ke, Qt = (e) => e != null && _(e[te]), c = {
|
|
180
180
|
isArray: I,
|
|
181
181
|
isArrayBuffer: qe,
|
|
182
|
-
isBuffer:
|
|
183
|
-
isFormData:
|
|
182
|
+
isBuffer: G,
|
|
183
|
+
isFormData: Ot,
|
|
184
184
|
isArrayBufferView: mt,
|
|
185
185
|
isString: bt,
|
|
186
186
|
isNumber: He,
|
|
187
|
-
isBoolean:
|
|
188
|
-
isObject:
|
|
189
|
-
isPlainObject:
|
|
190
|
-
isEmptyObject:
|
|
187
|
+
isBoolean: wt,
|
|
188
|
+
isObject: J,
|
|
189
|
+
isPlainObject: W,
|
|
190
|
+
isEmptyObject: yt,
|
|
191
191
|
isReadableStream: _t,
|
|
192
192
|
isRequest: Ct,
|
|
193
193
|
isResponse: xt,
|
|
@@ -199,47 +199,47 @@ const Wt = (e) => {
|
|
|
199
199
|
isRegExp: Ht,
|
|
200
200
|
isFunction: _,
|
|
201
201
|
isStream: Tt,
|
|
202
|
-
isURLSearchParams:
|
|
203
|
-
isTypedArray:
|
|
202
|
+
isURLSearchParams: At,
|
|
203
|
+
isTypedArray: Bt,
|
|
204
204
|
isFileList: Rt,
|
|
205
|
-
forEach:
|
|
205
|
+
forEach: K,
|
|
206
206
|
merge: ue,
|
|
207
|
-
extend:
|
|
207
|
+
extend: Ft,
|
|
208
208
|
trim: vt,
|
|
209
|
-
stripBOM:
|
|
210
|
-
inherits:
|
|
211
|
-
toFlatObject:
|
|
209
|
+
stripBOM: kt,
|
|
210
|
+
inherits: jt,
|
|
211
|
+
toFlatObject: Nt,
|
|
212
212
|
kindOf: re,
|
|
213
213
|
kindOfTest: L,
|
|
214
|
-
endsWith:
|
|
214
|
+
endsWith: Pt,
|
|
215
215
|
toArray: Ut,
|
|
216
|
-
forEachEntry:
|
|
216
|
+
forEachEntry: Dt,
|
|
217
217
|
matchAll: It,
|
|
218
218
|
isHTMLForm: Mt,
|
|
219
219
|
hasOwnProperty: Re,
|
|
220
220
|
hasOwnProp: Re,
|
|
221
221
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
222
|
-
reduceDescriptors:
|
|
222
|
+
reduceDescriptors: Je,
|
|
223
223
|
freezeMethods: zt,
|
|
224
|
-
toObjectSet:
|
|
224
|
+
toObjectSet: Gt,
|
|
225
225
|
toCamelCase: qt,
|
|
226
|
-
noop:
|
|
227
|
-
toFiniteNumber:
|
|
226
|
+
noop: Jt,
|
|
227
|
+
toFiniteNumber: Kt,
|
|
228
228
|
findKey: ze,
|
|
229
|
-
global:
|
|
230
|
-
isContextDefined:
|
|
231
|
-
isSpecCompliantForm:
|
|
232
|
-
toJSONObject:
|
|
233
|
-
isAsyncFn:
|
|
229
|
+
global: N,
|
|
230
|
+
isContextDefined: Ge,
|
|
231
|
+
isSpecCompliantForm: $t,
|
|
232
|
+
toJSONObject: Vt,
|
|
233
|
+
isAsyncFn: Wt,
|
|
234
234
|
isThenable: Xt,
|
|
235
|
-
setImmediate:
|
|
235
|
+
setImmediate: Ke,
|
|
236
236
|
asap: Yt,
|
|
237
237
|
isIterable: Qt
|
|
238
238
|
};
|
|
239
|
-
function
|
|
239
|
+
function w(e, t, r, n, s) {
|
|
240
240
|
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, this.status = s.status ? s.status : null);
|
|
241
241
|
}
|
|
242
|
-
c.inherits(
|
|
242
|
+
c.inherits(w, Error, {
|
|
243
243
|
toJSON: function() {
|
|
244
244
|
return {
|
|
245
245
|
// Standard
|
|
@@ -260,7 +260,7 @@ c.inherits(y, Error, {
|
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
262
|
});
|
|
263
|
-
const
|
|
263
|
+
const $e = w.prototype, Ve = {};
|
|
264
264
|
[
|
|
265
265
|
"ERR_BAD_OPTION_VALUE",
|
|
266
266
|
"ERR_BAD_OPTION",
|
|
@@ -276,26 +276,26 @@ const Ke = y.prototype, We = {};
|
|
|
276
276
|
"ERR_INVALID_URL"
|
|
277
277
|
// eslint-disable-next-line func-names
|
|
278
278
|
].forEach((e) => {
|
|
279
|
-
|
|
279
|
+
Ve[e] = { value: e };
|
|
280
280
|
});
|
|
281
|
-
Object.defineProperties(
|
|
282
|
-
Object.defineProperty(
|
|
283
|
-
|
|
284
|
-
const a = Object.create(
|
|
281
|
+
Object.defineProperties(w, Ve);
|
|
282
|
+
Object.defineProperty($e, "isAxiosError", { value: !0 });
|
|
283
|
+
w.from = (e, t, r, n, s, i) => {
|
|
284
|
+
const a = Object.create($e);
|
|
285
285
|
return c.toFlatObject(e, a, function(d) {
|
|
286
286
|
return d !== Error.prototype;
|
|
287
|
-
}, (o) => o !== "isAxiosError"),
|
|
287
|
+
}, (o) => o !== "isAxiosError"), w.call(a, e.message, t, r, n, s), a.cause = e, a.name = e.name, i && Object.assign(a, i), a;
|
|
288
288
|
};
|
|
289
289
|
const Zt = null;
|
|
290
290
|
function de(e) {
|
|
291
291
|
return c.isPlainObject(e) || c.isArray(e);
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function We(e) {
|
|
294
294
|
return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
295
295
|
}
|
|
296
296
|
function Te(e, t, r) {
|
|
297
297
|
return e ? e.concat(t).map(function(s, i) {
|
|
298
|
-
return s =
|
|
298
|
+
return s = We(s), !r && i ? "[" + s + "]" : s;
|
|
299
299
|
}).join(r ? "." : "") : t;
|
|
300
300
|
}
|
|
301
301
|
function er(e) {
|
|
@@ -324,7 +324,7 @@ function se(e, t, r) {
|
|
|
324
324
|
if (c.isBoolean(f))
|
|
325
325
|
return f.toString();
|
|
326
326
|
if (!d && c.isBlob(f))
|
|
327
|
-
throw new
|
|
327
|
+
throw new w("Blob is not supported. Use a Buffer instead.");
|
|
328
328
|
return c.isArrayBuffer(f) || c.isTypedArray(f) ? d && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
329
329
|
}
|
|
330
330
|
function l(f, m, b) {
|
|
@@ -333,7 +333,7 @@ function se(e, t, r) {
|
|
|
333
333
|
if (c.endsWith(m, "{}"))
|
|
334
334
|
m = n ? m : m.slice(0, -2), f = JSON.stringify(f);
|
|
335
335
|
else if (c.isArray(f) && er(f) || (c.isFileList(f) || c.endsWith(m, "[]")) && (g = c.toArray(f)))
|
|
336
|
-
return m =
|
|
336
|
+
return m = We(m), g.forEach(function(E, x) {
|
|
337
337
|
!(c.isUndefined(E) || E === null) && t.append(
|
|
338
338
|
// eslint-disable-next-line no-nested-ternary
|
|
339
339
|
a === !0 ? Te([m], x, i) : a === null ? m : m + "[]",
|
|
@@ -348,7 +348,7 @@ function se(e, t, r) {
|
|
|
348
348
|
convertValue: u,
|
|
349
349
|
isVisitable: de
|
|
350
350
|
});
|
|
351
|
-
function
|
|
351
|
+
function y(f, m) {
|
|
352
352
|
if (!c.isUndefined(f)) {
|
|
353
353
|
if (h.indexOf(f) !== -1)
|
|
354
354
|
throw Error("Circular reference detected in " + m.join("."));
|
|
@@ -359,15 +359,15 @@ function se(e, t, r) {
|
|
|
359
359
|
c.isString(S) ? S.trim() : S,
|
|
360
360
|
m,
|
|
361
361
|
p
|
|
362
|
-
)) === !0 &&
|
|
362
|
+
)) === !0 && y(g, m ? m.concat(S) : [S]);
|
|
363
363
|
}), h.pop();
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
if (!c.isObject(e))
|
|
367
367
|
throw new TypeError("data must be an object");
|
|
368
|
-
return
|
|
368
|
+
return y(e), t;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function Oe(e) {
|
|
371
371
|
const t = {
|
|
372
372
|
"!": "%21",
|
|
373
373
|
"'": "%27",
|
|
@@ -390,8 +390,8 @@ Xe.append = function(t, r) {
|
|
|
390
390
|
};
|
|
391
391
|
Xe.toString = function(t) {
|
|
392
392
|
const r = t ? function(n) {
|
|
393
|
-
return t.call(this, n,
|
|
394
|
-
} :
|
|
393
|
+
return t.call(this, n, Oe);
|
|
394
|
+
} : Oe;
|
|
395
395
|
return this._pairs.map(function(s) {
|
|
396
396
|
return r(s[0]) + "=" + r(s[1]);
|
|
397
397
|
}, "").join("&");
|
|
@@ -414,7 +414,7 @@ function Ye(e, t, r) {
|
|
|
414
414
|
}
|
|
415
415
|
return e;
|
|
416
416
|
}
|
|
417
|
-
class
|
|
417
|
+
class Ae {
|
|
418
418
|
constructor() {
|
|
419
419
|
this.handlers = [];
|
|
420
420
|
}
|
|
@@ -488,14 +488,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", lr
|
|
|
488
488
|
hasStandardBrowserWebWorkerEnv: cr,
|
|
489
489
|
navigator: fe,
|
|
490
490
|
origin: lr
|
|
491
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
491
|
+
}, Symbol.toStringTag, { value: "Module" })), A = {
|
|
492
492
|
...ur,
|
|
493
493
|
...ir
|
|
494
494
|
};
|
|
495
495
|
function dr(e, t) {
|
|
496
|
-
return se(e, new
|
|
496
|
+
return se(e, new A.classes.URLSearchParams(), {
|
|
497
497
|
visitor: function(r, n, s, i) {
|
|
498
|
-
return
|
|
498
|
+
return A.isNode && c.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
499
499
|
},
|
|
500
500
|
...t
|
|
501
501
|
});
|
|
@@ -537,7 +537,7 @@ function pr(e, t, r) {
|
|
|
537
537
|
}
|
|
538
538
|
return (r || JSON.stringify)(e);
|
|
539
539
|
}
|
|
540
|
-
const
|
|
540
|
+
const $ = {
|
|
541
541
|
transitional: Qe,
|
|
542
542
|
adapter: ["xhr", "http", "fetch"],
|
|
543
543
|
transformRequest: [function(t, r) {
|
|
@@ -566,7 +566,7 @@ const K = {
|
|
|
566
566
|
return i || s ? (r.setContentType("application/json", !1), pr(t)) : t;
|
|
567
567
|
}],
|
|
568
568
|
transformResponse: [function(t) {
|
|
569
|
-
const r = this.transitional ||
|
|
569
|
+
const r = this.transitional || $.transitional, n = r && r.forcedJSONParsing, s = this.responseType === "json";
|
|
570
570
|
if (c.isResponse(t) || c.isReadableStream(t))
|
|
571
571
|
return t;
|
|
572
572
|
if (t && c.isString(t) && (n && !this.responseType || s)) {
|
|
@@ -575,7 +575,7 @@ const K = {
|
|
|
575
575
|
return JSON.parse(t);
|
|
576
576
|
} catch (o) {
|
|
577
577
|
if (a)
|
|
578
|
-
throw o.name === "SyntaxError" ?
|
|
578
|
+
throw o.name === "SyntaxError" ? w.from(o, w.ERR_BAD_RESPONSE, this, null, this.response) : o;
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
return t;
|
|
@@ -590,8 +590,8 @@ const K = {
|
|
|
590
590
|
maxContentLength: -1,
|
|
591
591
|
maxBodyLength: -1,
|
|
592
592
|
env: {
|
|
593
|
-
FormData:
|
|
594
|
-
Blob:
|
|
593
|
+
FormData: A.classes.FormData,
|
|
594
|
+
Blob: A.classes.Blob
|
|
595
595
|
},
|
|
596
596
|
validateStatus: function(t) {
|
|
597
597
|
return t >= 200 && t < 300;
|
|
@@ -604,7 +604,7 @@ const K = {
|
|
|
604
604
|
}
|
|
605
605
|
};
|
|
606
606
|
c.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
607
|
-
|
|
607
|
+
$.headers[e] = {};
|
|
608
608
|
});
|
|
609
609
|
const mr = c.toObjectSet([
|
|
610
610
|
"age",
|
|
@@ -638,14 +638,14 @@ function q(e) {
|
|
|
638
638
|
function X(e) {
|
|
639
639
|
return e === !1 || e == null ? e : c.isArray(e) ? e.map(X) : String(e);
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function wr(e) {
|
|
642
642
|
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
643
643
|
let n;
|
|
644
644
|
for (; n = r.exec(e); )
|
|
645
645
|
t[n[1]] = n[2];
|
|
646
646
|
return t;
|
|
647
647
|
}
|
|
648
|
-
const
|
|
648
|
+
const yr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
649
649
|
function oe(e, t, r, n, s) {
|
|
650
650
|
if (c.isFunction(n))
|
|
651
651
|
return n.call(this, t, r);
|
|
@@ -686,7 +686,7 @@ let C = class {
|
|
|
686
686
|
const a = (o, d) => c.forEach(o, (u, l) => i(u, l, d));
|
|
687
687
|
if (c.isPlainObject(t) || t instanceof this.constructor)
|
|
688
688
|
a(t, r);
|
|
689
|
-
else if (c.isString(t) && (t = t.trim()) && !
|
|
689
|
+
else if (c.isString(t) && (t = t.trim()) && !yr(t))
|
|
690
690
|
a(br(t), r);
|
|
691
691
|
else if (c.isObject(t) && c.isIterable(t)) {
|
|
692
692
|
let o = {}, d, u;
|
|
@@ -708,7 +708,7 @@ let C = class {
|
|
|
708
708
|
if (!r)
|
|
709
709
|
return s;
|
|
710
710
|
if (r === !0)
|
|
711
|
-
return
|
|
711
|
+
return wr(s);
|
|
712
712
|
if (c.isFunction(r))
|
|
713
713
|
return r.call(this, s, n);
|
|
714
714
|
if (c.isRegExp(r))
|
|
@@ -808,7 +808,7 @@ c.reduceDescriptors(C.prototype, ({ value: e }, t) => {
|
|
|
808
808
|
});
|
|
809
809
|
c.freezeMethods(C);
|
|
810
810
|
function ce(e, t) {
|
|
811
|
-
const r = this ||
|
|
811
|
+
const r = this || $, n = t || r, s = C.from(n.headers);
|
|
812
812
|
let i = n.data;
|
|
813
813
|
return c.forEach(e, function(o) {
|
|
814
814
|
i = o.call(r, i, s.normalize(), t ? t.status : void 0);
|
|
@@ -818,16 +818,16 @@ function et(e) {
|
|
|
818
818
|
return !!(e && e.__CANCEL__);
|
|
819
819
|
}
|
|
820
820
|
function M(e, t, r) {
|
|
821
|
-
|
|
821
|
+
w.call(this, e ?? "canceled", w.ERR_CANCELED, t, r), this.name = "CanceledError";
|
|
822
822
|
}
|
|
823
|
-
c.inherits(M,
|
|
823
|
+
c.inherits(M, w, {
|
|
824
824
|
__CANCEL__: !0
|
|
825
825
|
});
|
|
826
826
|
function tt(e, t, r) {
|
|
827
827
|
const n = r.config.validateStatus;
|
|
828
|
-
!r.status || !n || n(r.status) ? e(r) : t(new
|
|
828
|
+
!r.status || !n || n(r.status) ? e(r) : t(new w(
|
|
829
829
|
"Request failed with status code " + r.status,
|
|
830
|
-
[
|
|
830
|
+
[w.ERR_BAD_REQUEST, w.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
|
|
831
831
|
r.config,
|
|
832
832
|
r.request,
|
|
833
833
|
r
|
|
@@ -849,8 +849,8 @@ function Rr(e, t) {
|
|
|
849
849
|
p += r[h++], h = h % e;
|
|
850
850
|
if (s = (s + 1) % e, s === i && (i = (i + 1) % e), u - a < t)
|
|
851
851
|
return;
|
|
852
|
-
const
|
|
853
|
-
return
|
|
852
|
+
const y = l && u - l;
|
|
853
|
+
return y ? Math.round(p * 1e3 / y) : void 0;
|
|
854
854
|
};
|
|
855
855
|
}
|
|
856
856
|
function Tr(e, t) {
|
|
@@ -891,10 +891,10 @@ const Z = (e, t, r = 3) => {
|
|
|
891
891
|
total: e,
|
|
892
892
|
loaded: n
|
|
893
893
|
}), t[1]];
|
|
894
|
-
}, xe = (e) => (...t) => c.asap(() => e(...t)),
|
|
895
|
-
new URL(
|
|
896
|
-
|
|
897
|
-
) : () => !0,
|
|
894
|
+
}, xe = (e) => (...t) => c.asap(() => e(...t)), Or = A.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, A.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
|
|
895
|
+
new URL(A.origin),
|
|
896
|
+
A.navigator && /(msie|trident)/i.test(A.navigator.userAgent)
|
|
897
|
+
) : () => !0, Ar = A.hasStandardBrowserEnv ? (
|
|
898
898
|
// Standard browser envs support document.cookie
|
|
899
899
|
{
|
|
900
900
|
write(e, t, r, n, s, i) {
|
|
@@ -1005,15 +1005,15 @@ const nt = (e) => {
|
|
|
1005
1005
|
);
|
|
1006
1006
|
let d;
|
|
1007
1007
|
if (c.isFormData(r)) {
|
|
1008
|
-
if (
|
|
1008
|
+
if (A.hasStandardBrowserEnv || A.hasStandardBrowserWebWorkerEnv)
|
|
1009
1009
|
a.setContentType(void 0);
|
|
1010
1010
|
else if ((d = a.getContentType()) !== !1) {
|
|
1011
1011
|
const [u, ...l] = d ? d.split(";").map((h) => h.trim()).filter(Boolean) : [];
|
|
1012
1012
|
a.setContentType([u || "multipart/form-data", ...l].join("; "));
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
|
-
if (
|
|
1016
|
-
const u = s && i &&
|
|
1015
|
+
if (A.hasStandardBrowserEnv && (n && c.isFunction(n) && (n = n(t)), n || n !== !1 && Or(t.url))) {
|
|
1016
|
+
const u = s && i && Ar.read(i);
|
|
1017
1017
|
u && a.set(s, u);
|
|
1018
1018
|
}
|
|
1019
1019
|
return t;
|
|
@@ -1022,9 +1022,9 @@ const nt = (e) => {
|
|
|
1022
1022
|
const s = nt(e);
|
|
1023
1023
|
let i = s.data;
|
|
1024
1024
|
const a = C.from(s.headers).normalize();
|
|
1025
|
-
let { responseType: o, onUploadProgress: d, onDownloadProgress: u } = s, l, h, p,
|
|
1025
|
+
let { responseType: o, onUploadProgress: d, onDownloadProgress: u } = s, l, h, p, y, f;
|
|
1026
1026
|
function m() {
|
|
1027
|
-
|
|
1027
|
+
y && y(), f && f(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
1028
1028
|
}
|
|
1029
1029
|
let b = new XMLHttpRequest();
|
|
1030
1030
|
b.open(s.method.toUpperCase(), s.url, !0), b.timeout = s.timeout;
|
|
@@ -1041,35 +1041,35 @@ const nt = (e) => {
|
|
|
1041
1041
|
config: e,
|
|
1042
1042
|
request: b
|
|
1043
1043
|
};
|
|
1044
|
-
tt(function(
|
|
1045
|
-
r(
|
|
1046
|
-
}, function(
|
|
1047
|
-
n(
|
|
1044
|
+
tt(function(j) {
|
|
1045
|
+
r(j), m();
|
|
1046
|
+
}, function(j) {
|
|
1047
|
+
n(j), m();
|
|
1048
1048
|
}, T), b = null;
|
|
1049
1049
|
}
|
|
1050
1050
|
"onloadend" in b ? b.onloadend = g : b.onreadystatechange = function() {
|
|
1051
1051
|
!b || b.readyState !== 4 || b.status === 0 && !(b.responseURL && b.responseURL.indexOf("file:") === 0) || setTimeout(g);
|
|
1052
1052
|
}, b.onabort = function() {
|
|
1053
|
-
b && (n(new
|
|
1053
|
+
b && (n(new w("Request aborted", w.ECONNABORTED, e, b)), b = null);
|
|
1054
1054
|
}, b.onerror = function() {
|
|
1055
|
-
n(new
|
|
1055
|
+
n(new w("Network Error", w.ERR_NETWORK, e, b)), b = null;
|
|
1056
1056
|
}, b.ontimeout = function() {
|
|
1057
1057
|
let x = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1058
1058
|
const T = s.transitional || Qe;
|
|
1059
|
-
s.timeoutErrorMessage && (x = s.timeoutErrorMessage), n(new
|
|
1059
|
+
s.timeoutErrorMessage && (x = s.timeoutErrorMessage), n(new w(
|
|
1060
1060
|
x,
|
|
1061
|
-
T.clarifyTimeoutError ?
|
|
1061
|
+
T.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED,
|
|
1062
1062
|
e,
|
|
1063
1063
|
b
|
|
1064
1064
|
)), b = null;
|
|
1065
1065
|
}, i === void 0 && a.setContentType(null), "setRequestHeader" in b && c.forEach(a.toJSON(), function(x, T) {
|
|
1066
1066
|
b.setRequestHeader(T, x);
|
|
1067
|
-
}), c.isUndefined(s.withCredentials) || (b.withCredentials = !!s.withCredentials), o && o !== "json" && (b.responseType = s.responseType), u && ([p, f] = Z(u, !0), b.addEventListener("progress", p)), d && b.upload && ([h,
|
|
1067
|
+
}), c.isUndefined(s.withCredentials) || (b.withCredentials = !!s.withCredentials), o && o !== "json" && (b.responseType = s.responseType), u && ([p, f] = Z(u, !0), b.addEventListener("progress", p)), d && b.upload && ([h, y] = Z(d), b.upload.addEventListener("progress", h), b.upload.addEventListener("loadend", y)), (s.cancelToken || s.signal) && (l = (E) => {
|
|
1068
1068
|
b && (n(!E || E.type ? new M(null, e, b) : E), b.abort(), b = null);
|
|
1069
1069
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1070
1070
|
const S = Sr(s.url);
|
|
1071
|
-
if (S &&
|
|
1072
|
-
n(new
|
|
1071
|
+
if (S && A.protocols.indexOf(S) === -1) {
|
|
1072
|
+
n(new w("Unsupported protocol " + S + ":", w.ERR_BAD_REQUEST, e));
|
|
1073
1073
|
return;
|
|
1074
1074
|
}
|
|
1075
1075
|
b.send(i || null);
|
|
@@ -1082,11 +1082,11 @@ const nt = (e) => {
|
|
|
1082
1082
|
if (!s) {
|
|
1083
1083
|
s = !0, o();
|
|
1084
1084
|
const l = u instanceof Error ? u : this.reason;
|
|
1085
|
-
n.abort(l instanceof
|
|
1085
|
+
n.abort(l instanceof w ? l : new M(l instanceof Error ? l.message : l));
|
|
1086
1086
|
}
|
|
1087
1087
|
};
|
|
1088
1088
|
let a = t && setTimeout(() => {
|
|
1089
|
-
a = null, i(new
|
|
1089
|
+
a = null, i(new w(`timeout ${t} of ms exceeded`, w.ETIMEDOUT));
|
|
1090
1090
|
}, t);
|
|
1091
1091
|
const o = () => {
|
|
1092
1092
|
e && (a && clearTimeout(a), a = null, e.forEach((u) => {
|
|
@@ -1097,7 +1097,7 @@ const nt = (e) => {
|
|
|
1097
1097
|
const { signal: d } = n;
|
|
1098
1098
|
return d.unsubscribe = () => c.asap(o), d;
|
|
1099
1099
|
}
|
|
1100
|
-
},
|
|
1100
|
+
}, Fr = function* (e, t) {
|
|
1101
1101
|
let r = e.byteLength;
|
|
1102
1102
|
if (r < t) {
|
|
1103
1103
|
yield e;
|
|
@@ -1106,10 +1106,10 @@ const nt = (e) => {
|
|
|
1106
1106
|
let n = 0, s;
|
|
1107
1107
|
for (; n < r; )
|
|
1108
1108
|
s = n + t, yield e.slice(n, s), n = s;
|
|
1109
|
-
},
|
|
1110
|
-
for await (const r of
|
|
1111
|
-
yield*
|
|
1112
|
-
},
|
|
1109
|
+
}, kr = async function* (e, t) {
|
|
1110
|
+
for await (const r of jr(e))
|
|
1111
|
+
yield* Fr(r, t);
|
|
1112
|
+
}, jr = async function* (e) {
|
|
1113
1113
|
if (e[Symbol.asyncIterator]) {
|
|
1114
1114
|
yield* e;
|
|
1115
1115
|
return;
|
|
@@ -1126,7 +1126,7 @@ const nt = (e) => {
|
|
|
1126
1126
|
await t.cancel();
|
|
1127
1127
|
}
|
|
1128
1128
|
}, ve = (e, t, r, n) => {
|
|
1129
|
-
const s =
|
|
1129
|
+
const s = kr(e, t);
|
|
1130
1130
|
let i = 0, a, o = (d) => {
|
|
1131
1131
|
a || (a = !0, n && n(d));
|
|
1132
1132
|
};
|
|
@@ -1154,15 +1154,15 @@ const nt = (e) => {
|
|
|
1154
1154
|
}, {
|
|
1155
1155
|
highWaterMark: 2
|
|
1156
1156
|
});
|
|
1157
|
-
}, ae = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", st = ae && typeof ReadableStream == "function",
|
|
1157
|
+
}, ae = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", st = ae && typeof ReadableStream == "function", Nr = ae && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), at = (e, ...t) => {
|
|
1158
1158
|
try {
|
|
1159
1159
|
return !!e(...t);
|
|
1160
1160
|
} catch {
|
|
1161
1161
|
return !1;
|
|
1162
1162
|
}
|
|
1163
|
-
},
|
|
1163
|
+
}, Pr = st && at(() => {
|
|
1164
1164
|
let e = !1;
|
|
1165
|
-
const t = new Request(
|
|
1165
|
+
const t = new Request(A.origin, {
|
|
1166
1166
|
body: new ReadableStream(),
|
|
1167
1167
|
method: "POST",
|
|
1168
1168
|
get duplex() {
|
|
@@ -1170,13 +1170,13 @@ const nt = (e) => {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
}).headers.has("Content-Type");
|
|
1172
1172
|
return e && !t;
|
|
1173
|
-
}),
|
|
1173
|
+
}), Fe = 64 * 1024, he = st && at(() => c.isReadableStream(new Response("").body)), ee = {
|
|
1174
1174
|
stream: he && ((e) => e.body)
|
|
1175
1175
|
};
|
|
1176
1176
|
ae && ((e) => {
|
|
1177
1177
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1178
1178
|
!ee[t] && (ee[t] = c.isFunction(e[t]) ? (r) => r[t]() : (r, n) => {
|
|
1179
|
-
throw new
|
|
1179
|
+
throw new w(`Response type '${t}' is not supported`, w.ERR_NOT_SUPPORT, n);
|
|
1180
1180
|
});
|
|
1181
1181
|
});
|
|
1182
1182
|
})(new Response());
|
|
@@ -1186,18 +1186,18 @@ const Ur = async (e) => {
|
|
|
1186
1186
|
if (c.isBlob(e))
|
|
1187
1187
|
return e.size;
|
|
1188
1188
|
if (c.isSpecCompliantForm(e))
|
|
1189
|
-
return (await new Request(
|
|
1189
|
+
return (await new Request(A.origin, {
|
|
1190
1190
|
method: "POST",
|
|
1191
1191
|
body: e
|
|
1192
1192
|
}).arrayBuffer()).byteLength;
|
|
1193
1193
|
if (c.isArrayBufferView(e) || c.isArrayBuffer(e))
|
|
1194
1194
|
return e.byteLength;
|
|
1195
1195
|
if (c.isURLSearchParams(e) && (e = e + ""), c.isString(e))
|
|
1196
|
-
return (await
|
|
1197
|
-
},
|
|
1196
|
+
return (await Nr(e)).byteLength;
|
|
1197
|
+
}, Br = async (e, t) => {
|
|
1198
1198
|
const r = c.toFiniteNumber(e.getContentLength());
|
|
1199
1199
|
return r ?? Ur(t);
|
|
1200
|
-
},
|
|
1200
|
+
}, Dr = ae && (async (e) => {
|
|
1201
1201
|
let {
|
|
1202
1202
|
url: t,
|
|
1203
1203
|
method: r,
|
|
@@ -1213,31 +1213,31 @@ const Ur = async (e) => {
|
|
|
1213
1213
|
fetchOptions: p
|
|
1214
1214
|
} = nt(e);
|
|
1215
1215
|
u = u ? (u + "").toLowerCase() : "text";
|
|
1216
|
-
let
|
|
1217
|
-
const m =
|
|
1218
|
-
|
|
1216
|
+
let y = vr([s, i && i.toAbortSignal()], a), f;
|
|
1217
|
+
const m = y && y.unsubscribe && (() => {
|
|
1218
|
+
y.unsubscribe();
|
|
1219
1219
|
});
|
|
1220
1220
|
let b;
|
|
1221
1221
|
try {
|
|
1222
|
-
if (d &&
|
|
1222
|
+
if (d && Pr && r !== "get" && r !== "head" && (b = await Br(l, n)) !== 0) {
|
|
1223
1223
|
let T = new Request(t, {
|
|
1224
1224
|
method: "POST",
|
|
1225
1225
|
body: n,
|
|
1226
1226
|
duplex: "half"
|
|
1227
|
-
}),
|
|
1228
|
-
if (c.isFormData(n) && (
|
|
1229
|
-
const [
|
|
1227
|
+
}), k;
|
|
1228
|
+
if (c.isFormData(n) && (k = T.headers.get("content-type")) && l.setContentType(k), T.body) {
|
|
1229
|
+
const [j, V] = Ce(
|
|
1230
1230
|
b,
|
|
1231
1231
|
Z(xe(d))
|
|
1232
1232
|
);
|
|
1233
|
-
n = ve(T.body,
|
|
1233
|
+
n = ve(T.body, Fe, j, V);
|
|
1234
1234
|
}
|
|
1235
1235
|
}
|
|
1236
1236
|
c.isString(h) || (h = h ? "include" : "omit");
|
|
1237
1237
|
const g = "credentials" in Request.prototype;
|
|
1238
1238
|
f = new Request(t, {
|
|
1239
1239
|
...p,
|
|
1240
|
-
signal:
|
|
1240
|
+
signal: y,
|
|
1241
1241
|
method: r.toUpperCase(),
|
|
1242
1242
|
headers: l.normalize().toJSON(),
|
|
1243
1243
|
body: n,
|
|
@@ -1251,21 +1251,21 @@ const Ur = async (e) => {
|
|
|
1251
1251
|
["status", "statusText", "headers"].forEach((Se) => {
|
|
1252
1252
|
T[Se] = S[Se];
|
|
1253
1253
|
});
|
|
1254
|
-
const
|
|
1255
|
-
|
|
1254
|
+
const k = c.toFiniteNumber(S.headers.get("content-length")), [j, V] = o && Ce(
|
|
1255
|
+
k,
|
|
1256
1256
|
Z(xe(o), !0)
|
|
1257
1257
|
) || [];
|
|
1258
1258
|
S = new Response(
|
|
1259
|
-
ve(S.body,
|
|
1260
|
-
|
|
1259
|
+
ve(S.body, Fe, j, () => {
|
|
1260
|
+
V && V(), m && m();
|
|
1261
1261
|
}),
|
|
1262
1262
|
T
|
|
1263
1263
|
);
|
|
1264
1264
|
}
|
|
1265
1265
|
u = u || "text";
|
|
1266
1266
|
let x = await ee[c.findKey(ee, u) || "text"](S, e);
|
|
1267
|
-
return !E && m && m(), await new Promise((T,
|
|
1268
|
-
tt(T,
|
|
1267
|
+
return !E && m && m(), await new Promise((T, k) => {
|
|
1268
|
+
tt(T, k, {
|
|
1269
1269
|
data: x,
|
|
1270
1270
|
headers: C.from(S.headers),
|
|
1271
1271
|
status: S.status,
|
|
@@ -1276,16 +1276,16 @@ const Ur = async (e) => {
|
|
|
1276
1276
|
});
|
|
1277
1277
|
} catch (g) {
|
|
1278
1278
|
throw m && m(), g && g.name === "TypeError" && /Load failed|fetch/i.test(g.message) ? Object.assign(
|
|
1279
|
-
new
|
|
1279
|
+
new w("Network Error", w.ERR_NETWORK, e, f),
|
|
1280
1280
|
{
|
|
1281
1281
|
cause: g.cause || g
|
|
1282
1282
|
}
|
|
1283
|
-
) :
|
|
1283
|
+
) : w.from(g, g && g.code, e, f);
|
|
1284
1284
|
}
|
|
1285
1285
|
}), pe = {
|
|
1286
1286
|
http: Zt,
|
|
1287
1287
|
xhr: Lr,
|
|
1288
|
-
fetch:
|
|
1288
|
+
fetch: Dr
|
|
1289
1289
|
};
|
|
1290
1290
|
c.forEach(pe, (e, t) => {
|
|
1291
1291
|
if (e) {
|
|
@@ -1296,7 +1296,7 @@ c.forEach(pe, (e, t) => {
|
|
|
1296
1296
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1297
1297
|
}
|
|
1298
1298
|
});
|
|
1299
|
-
const
|
|
1299
|
+
const ke = (e) => `- ${e}`, Ir = (e) => c.isFunction(e) || e === null || e === !1, it = {
|
|
1300
1300
|
getAdapter: (e) => {
|
|
1301
1301
|
e = c.isArray(e) ? e : [e];
|
|
1302
1302
|
const { length: t } = e;
|
|
@@ -1306,7 +1306,7 @@ const Fe = (e) => `- ${e}`, Ir = (e) => c.isFunction(e) || e === null || e === !
|
|
|
1306
1306
|
r = e[i];
|
|
1307
1307
|
let a;
|
|
1308
1308
|
if (n = r, !Ir(r) && (n = pe[(a = String(r)).toLowerCase()], n === void 0))
|
|
1309
|
-
throw new
|
|
1309
|
+
throw new w(`Unknown adapter '${a}'`);
|
|
1310
1310
|
if (n)
|
|
1311
1311
|
break;
|
|
1312
1312
|
s[a || "#" + i] = n;
|
|
@@ -1316,9 +1316,9 @@ const Fe = (e) => `- ${e}`, Ir = (e) => c.isFunction(e) || e === null || e === !
|
|
|
1316
1316
|
([o, d]) => `adapter ${o} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1317
1317
|
);
|
|
1318
1318
|
let a = t ? i.length > 1 ? `since :
|
|
1319
|
-
` + i.map(
|
|
1320
|
-
`) : " " +
|
|
1321
|
-
throw new
|
|
1319
|
+
` + i.map(ke).join(`
|
|
1320
|
+
`) : " " + ke(i[0]) : "as no adapter specified";
|
|
1321
|
+
throw new w(
|
|
1322
1322
|
"There is no suitable adapter to dispatch the request " + a,
|
|
1323
1323
|
"ERR_NOT_SUPPORT"
|
|
1324
1324
|
);
|
|
@@ -1331,11 +1331,11 @@ function le(e) {
|
|
|
1331
1331
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1332
1332
|
throw new M(null, e);
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function je(e) {
|
|
1335
1335
|
return le(e), e.headers = C.from(e.headers), e.data = ce.call(
|
|
1336
1336
|
e,
|
|
1337
1337
|
e.transformRequest
|
|
1338
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), it.getAdapter(e.adapter ||
|
|
1338
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), it.getAdapter(e.adapter || $.adapter)(e).then(function(n) {
|
|
1339
1339
|
return le(e), n.data = ce.call(
|
|
1340
1340
|
e,
|
|
1341
1341
|
e.transformResponse,
|
|
@@ -1355,18 +1355,18 @@ const ot = "1.11.0", ie = {};
|
|
|
1355
1355
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1356
1356
|
};
|
|
1357
1357
|
});
|
|
1358
|
-
const
|
|
1358
|
+
const Ne = {};
|
|
1359
1359
|
ie.transitional = function(t, r, n) {
|
|
1360
1360
|
function s(i, a) {
|
|
1361
1361
|
return "[Axios v" + ot + "] Transitional option '" + i + "'" + a + (n ? ". " + n : "");
|
|
1362
1362
|
}
|
|
1363
1363
|
return (i, a, o) => {
|
|
1364
1364
|
if (t === !1)
|
|
1365
|
-
throw new
|
|
1365
|
+
throw new w(
|
|
1366
1366
|
s(a, " has been removed" + (r ? " in " + r : "")),
|
|
1367
|
-
|
|
1367
|
+
w.ERR_DEPRECATED
|
|
1368
1368
|
);
|
|
1369
|
-
return r && !
|
|
1369
|
+
return r && !Ne[a] && (Ne[a] = !0, console.warn(
|
|
1370
1370
|
s(
|
|
1371
1371
|
a,
|
|
1372
1372
|
" has been deprecated since v" + r + " and will be removed in the near future"
|
|
@@ -1379,7 +1379,7 @@ ie.spelling = function(t) {
|
|
|
1379
1379
|
};
|
|
1380
1380
|
function Mr(e, t, r) {
|
|
1381
1381
|
if (typeof e != "object")
|
|
1382
|
-
throw new
|
|
1382
|
+
throw new w("options must be an object", w.ERR_BAD_OPTION_VALUE);
|
|
1383
1383
|
const n = Object.keys(e);
|
|
1384
1384
|
let s = n.length;
|
|
1385
1385
|
for (; s-- > 0; ) {
|
|
@@ -1387,22 +1387,22 @@ function Mr(e, t, r) {
|
|
|
1387
1387
|
if (a) {
|
|
1388
1388
|
const o = e[i], d = o === void 0 || a(o, i, e);
|
|
1389
1389
|
if (d !== !0)
|
|
1390
|
-
throw new
|
|
1390
|
+
throw new w("option " + i + " must be " + d, w.ERR_BAD_OPTION_VALUE);
|
|
1391
1391
|
continue;
|
|
1392
1392
|
}
|
|
1393
1393
|
if (r !== !0)
|
|
1394
|
-
throw new
|
|
1394
|
+
throw new w("Unknown option " + i, w.ERR_BAD_OPTION);
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
1397
|
const Y = {
|
|
1398
1398
|
assertOptions: Mr,
|
|
1399
1399
|
validators: ie
|
|
1400
1400
|
}, v = Y.validators;
|
|
1401
|
-
let
|
|
1401
|
+
let P = class {
|
|
1402
1402
|
constructor(t) {
|
|
1403
1403
|
this.defaults = t || {}, this.interceptors = {
|
|
1404
|
-
request: new
|
|
1405
|
-
response: new
|
|
1404
|
+
request: new Ae(),
|
|
1405
|
+
response: new Ae()
|
|
1406
1406
|
};
|
|
1407
1407
|
}
|
|
1408
1408
|
/**
|
|
@@ -1467,24 +1467,24 @@ let N = class {
|
|
|
1467
1467
|
});
|
|
1468
1468
|
let l, h = 0, p;
|
|
1469
1469
|
if (!d) {
|
|
1470
|
-
const f = [
|
|
1470
|
+
const f = [je.bind(this), void 0];
|
|
1471
1471
|
for (f.unshift(...o), f.push(...u), p = f.length, l = Promise.resolve(r); h < p; )
|
|
1472
1472
|
l = l.then(f[h++], f[h++]);
|
|
1473
1473
|
return l;
|
|
1474
1474
|
}
|
|
1475
1475
|
p = o.length;
|
|
1476
|
-
let
|
|
1476
|
+
let y = r;
|
|
1477
1477
|
for (h = 0; h < p; ) {
|
|
1478
1478
|
const f = o[h++], m = o[h++];
|
|
1479
1479
|
try {
|
|
1480
|
-
|
|
1480
|
+
y = f(y);
|
|
1481
1481
|
} catch (b) {
|
|
1482
1482
|
m.call(this, b);
|
|
1483
1483
|
break;
|
|
1484
1484
|
}
|
|
1485
1485
|
}
|
|
1486
1486
|
try {
|
|
1487
|
-
l =
|
|
1487
|
+
l = je.call(this, y);
|
|
1488
1488
|
} catch (f) {
|
|
1489
1489
|
return Promise.reject(f);
|
|
1490
1490
|
}
|
|
@@ -1499,7 +1499,7 @@ let N = class {
|
|
|
1499
1499
|
}
|
|
1500
1500
|
};
|
|
1501
1501
|
c.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1502
|
-
|
|
1502
|
+
P.prototype[t] = function(r, n) {
|
|
1503
1503
|
return this.request(U(n || {}, {
|
|
1504
1504
|
method: t,
|
|
1505
1505
|
url: r,
|
|
@@ -1520,7 +1520,7 @@ c.forEach(["post", "put", "patch"], function(t) {
|
|
|
1520
1520
|
}));
|
|
1521
1521
|
};
|
|
1522
1522
|
}
|
|
1523
|
-
|
|
1523
|
+
P.prototype[t] = r(), P.prototype[t + "Form"] = r(!0);
|
|
1524
1524
|
});
|
|
1525
1525
|
let qr = class ct {
|
|
1526
1526
|
constructor(t) {
|
|
@@ -1672,19 +1672,19 @@ Object.entries(me).forEach(([e, t]) => {
|
|
|
1672
1672
|
me[t] = e;
|
|
1673
1673
|
});
|
|
1674
1674
|
function lt(e) {
|
|
1675
|
-
const t = new
|
|
1676
|
-
return c.extend(r,
|
|
1675
|
+
const t = new P(e), r = Ie(P.prototype.request, t);
|
|
1676
|
+
return c.extend(r, P.prototype, t, { allOwnKeys: !0 }), c.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(s) {
|
|
1677
1677
|
return lt(U(e, s));
|
|
1678
1678
|
}, r;
|
|
1679
1679
|
}
|
|
1680
|
-
const R = lt(
|
|
1681
|
-
R.Axios =
|
|
1680
|
+
const R = lt($);
|
|
1681
|
+
R.Axios = P;
|
|
1682
1682
|
R.CanceledError = M;
|
|
1683
1683
|
R.CancelToken = qr;
|
|
1684
1684
|
R.isCancel = et;
|
|
1685
1685
|
R.VERSION = ot;
|
|
1686
1686
|
R.toFormData = se;
|
|
1687
|
-
R.AxiosError =
|
|
1687
|
+
R.AxiosError = w;
|
|
1688
1688
|
R.Cancel = R.CanceledError;
|
|
1689
1689
|
R.all = function(t) {
|
|
1690
1690
|
return Promise.all(t);
|
|
@@ -1701,35 +1701,35 @@ const {
|
|
|
1701
1701
|
Axios: Sn,
|
|
1702
1702
|
AxiosError: Rn,
|
|
1703
1703
|
CanceledError: Tn,
|
|
1704
|
-
isCancel:
|
|
1705
|
-
CancelToken:
|
|
1704
|
+
isCancel: On,
|
|
1705
|
+
CancelToken: An,
|
|
1706
1706
|
VERSION: _n,
|
|
1707
1707
|
all: Cn,
|
|
1708
1708
|
Cancel: xn,
|
|
1709
1709
|
isAxiosError: Ln,
|
|
1710
1710
|
spread: vn,
|
|
1711
|
-
toFormData:
|
|
1712
|
-
AxiosHeaders:
|
|
1713
|
-
HttpStatusCode:
|
|
1714
|
-
formToJSON:
|
|
1715
|
-
getAdapter:
|
|
1711
|
+
toFormData: Fn,
|
|
1712
|
+
AxiosHeaders: kn,
|
|
1713
|
+
HttpStatusCode: jn,
|
|
1714
|
+
formToJSON: Nn,
|
|
1715
|
+
getAdapter: Pn,
|
|
1716
1716
|
mergeConfig: Un
|
|
1717
1717
|
} = R;
|
|
1718
|
-
var
|
|
1719
|
-
function
|
|
1718
|
+
var Gr = Symbol("cache-parser");
|
|
1719
|
+
function Pe(e, t) {
|
|
1720
1720
|
(t == null || t > e.length) && (t = e.length);
|
|
1721
1721
|
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
|
|
1722
1722
|
return n;
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1724
|
+
function B(e) {
|
|
1725
1725
|
return (typeof e == "string" || typeof e == "number") && (e = Number(e)) >= 0 && e < 1 / 0;
|
|
1726
1726
|
}
|
|
1727
|
-
function
|
|
1727
|
+
function F(e) {
|
|
1728
1728
|
return e === !0 || typeof e == "number" || typeof e == "string" && e !== "false";
|
|
1729
1729
|
}
|
|
1730
|
-
var
|
|
1730
|
+
var D = Number;
|
|
1731
1731
|
function ut(e) {
|
|
1732
|
-
var t = Object.defineProperty({},
|
|
1732
|
+
var t = Object.defineProperty({}, Gr, { enumerable: !1, value: 1 });
|
|
1733
1733
|
if (!e || typeof e != "string") return t;
|
|
1734
1734
|
var r = function(u) {
|
|
1735
1735
|
for (var l, h = {}, p = function(m, b) {
|
|
@@ -1737,9 +1737,9 @@ function ut(e) {
|
|
|
1737
1737
|
if (g) return (g = g.call(m)).next.bind(g);
|
|
1738
1738
|
if (Array.isArray(m) || (g = function(E, x) {
|
|
1739
1739
|
if (E) {
|
|
1740
|
-
if (typeof E == "string") return
|
|
1740
|
+
if (typeof E == "string") return Pe(E, x);
|
|
1741
1741
|
var T = Object.prototype.toString.call(E).slice(8, -1);
|
|
1742
|
-
return T === "Object" && E.constructor && (T = E.constructor.name), T === "Map" || T === "Set" ? Array.from(E) : T === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T) ?
|
|
1742
|
+
return T === "Object" && E.constructor && (T = E.constructor.name), T === "Map" || T === "Set" ? Array.from(E) : T === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T) ? Pe(E, x) : void 0;
|
|
1743
1743
|
}
|
|
1744
1744
|
}(m))) {
|
|
1745
1745
|
g && (m = g);
|
|
@@ -1751,28 +1751,28 @@ function ut(e) {
|
|
|
1751
1751
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1752
1752
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1753
1753
|
}(u.toLowerCase().replace(/\s+/g, "").split(",")); !(l = p()).done; ) {
|
|
1754
|
-
var
|
|
1755
|
-
h[f[0]] = (
|
|
1754
|
+
var y, f = l.value.split("=", 2);
|
|
1755
|
+
h[f[0]] = (y = f[1]) == null || y;
|
|
1756
1756
|
}
|
|
1757
1757
|
return h;
|
|
1758
1758
|
}(e), n = r["max-age"], s = r["max-stale"], i = r["min-fresh"], a = r["s-maxage"], o = r["stale-if-error"], d = r["stale-while-revalidate"];
|
|
1759
|
-
return
|
|
1759
|
+
return F(r.immutable) && (t.immutable = !0), B(n) && (t.maxAge = D(n)), B(s) && (t.maxStale = D(s)), B(i) && (t.minFresh = D(i)), F(r["must-revalidate"]) && (t.mustRevalidate = !0), F(r["must-understand"]) && (t.mustUnderstand = !0), F(r["no-cache"]) && (t.noCache = !0), F(r["no-store"]) && (t.noStore = !0), F(r["no-transform"]) && (t.noTransform = !0), F(r["only-if-cached"]) && (t.onlyIfCached = !0), F(r.private) && (t.private = !0), F(r["proxy-revalidate"]) && (t.proxyRevalidate = !0), F(r.public) && (t.public = !0), B(a) && (t.sMaxAge = D(a)), B(o) && (t.staleIfError = D(o)), B(d) && (t.staleWhileRevalidate = D(d)), t;
|
|
1760
1760
|
}
|
|
1761
|
-
var
|
|
1762
|
-
function
|
|
1761
|
+
var Jr = Symbol();
|
|
1762
|
+
function Kr() {
|
|
1763
1763
|
var e, t, r = new Promise(function(n, s) {
|
|
1764
1764
|
e = n, t = s;
|
|
1765
1765
|
});
|
|
1766
|
-
return r.resolve = e, r.reject = t, r[
|
|
1766
|
+
return r.resolve = e, r.reject = t, r[Jr] = 1, r;
|
|
1767
1767
|
}
|
|
1768
|
-
function
|
|
1768
|
+
function $r(e, t) {
|
|
1769
1769
|
return e > t ? 1 : -1;
|
|
1770
1770
|
}
|
|
1771
1771
|
function Q(e, t) {
|
|
1772
1772
|
var r = 5381;
|
|
1773
1773
|
if (typeof e == "object" && e !== null && (e.toString === Object.prototype.toString || e.toString === Array.prototype.toString)) {
|
|
1774
1774
|
t || (t = /* @__PURE__ */ new WeakSet());
|
|
1775
|
-
for (var n = Object.keys(e).sort(
|
|
1775
|
+
for (var n = Object.keys(e).sort($r), s = 0; s < n.length; s++) {
|
|
1776
1776
|
var i = n[s], a = e[i];
|
|
1777
1777
|
if (r = 33 * r ^ Q(i, t), typeof a == "object" && a !== null && (e.toString === Object.prototype.toString || e.toString === Array.prototype.toString)) {
|
|
1778
1778
|
if (t.has(a)) continue;
|
|
@@ -1796,7 +1796,7 @@ function Q(e, t) {
|
|
|
1796
1796
|
* (c) 2021-present Arthur Fiorette & Contributors
|
|
1797
1797
|
* Released under the MIT License.
|
|
1798
1798
|
*/
|
|
1799
|
-
const
|
|
1799
|
+
const O = Object.freeze({
|
|
1800
1800
|
/**
|
|
1801
1801
|
* ```txt
|
|
1802
1802
|
* If-Modified-Since: <day-name>, <day> <month> <year> <hour>:<minute>:<second> GMT
|
|
@@ -1897,9 +1897,9 @@ const A = Object.freeze({
|
|
|
1897
1897
|
* ```
|
|
1898
1898
|
*/
|
|
1899
1899
|
XAxiosCacheStaleIfError: "x-axios-cache-stale-if-error"
|
|
1900
|
-
}),
|
|
1900
|
+
}), Vr = (e, t) => {
|
|
1901
1901
|
if (!e) return "not enough headers";
|
|
1902
|
-
const r = e[
|
|
1902
|
+
const r = e[O.CacheControl];
|
|
1903
1903
|
if (r) {
|
|
1904
1904
|
const s = ut(String(r));
|
|
1905
1905
|
if (
|
|
@@ -1913,7 +1913,7 @@ const A = Object.freeze({
|
|
|
1913
1913
|
cache: 1e3 * 60 * 60 * 24 * 365
|
|
1914
1914
|
};
|
|
1915
1915
|
if (s.maxAge !== void 0) {
|
|
1916
|
-
const i = e[
|
|
1916
|
+
const i = e[O.Age];
|
|
1917
1917
|
return {
|
|
1918
1918
|
cache: i ? (
|
|
1919
1919
|
// If age is present, we must subtract it from maxAge
|
|
@@ -1931,7 +1931,7 @@ const A = Object.freeze({
|
|
|
1931
1931
|
};
|
|
1932
1932
|
}
|
|
1933
1933
|
}
|
|
1934
|
-
const n = e[
|
|
1934
|
+
const n = e[O.Expires];
|
|
1935
1935
|
if (n) {
|
|
1936
1936
|
const s = Date.parse(String(n)) - Date.now();
|
|
1937
1937
|
return s >= 0 ? {
|
|
@@ -1950,7 +1950,7 @@ function z() {
|
|
|
1950
1950
|
return e;
|
|
1951
1951
|
}, z.apply(this, arguments);
|
|
1952
1952
|
}
|
|
1953
|
-
async function
|
|
1953
|
+
async function Wr(e, t) {
|
|
1954
1954
|
if (typeof t == "function")
|
|
1955
1955
|
return t(e);
|
|
1956
1956
|
const {
|
|
@@ -1988,12 +1988,12 @@ function Yr(e, t) {
|
|
|
1988
1988
|
} = t.cache;
|
|
1989
1989
|
if (r) {
|
|
1990
1990
|
var s;
|
|
1991
|
-
const i = r === !0 ? (s = e.data) == null ? void 0 : s.headers[
|
|
1992
|
-
i && (t.headers[
|
|
1991
|
+
const i = r === !0 ? (s = e.data) == null ? void 0 : s.headers[O.ETag] : r;
|
|
1992
|
+
i && (t.headers[O.IfNoneMatch] = i);
|
|
1993
1993
|
}
|
|
1994
|
-
n && (t.headers[
|
|
1994
|
+
n && (t.headers[O.IfModifiedSince] = n === !0 ? (
|
|
1995
1995
|
// If last-modified is not present, use the createdAt timestamp
|
|
1996
|
-
e.data.headers[
|
|
1996
|
+
e.data.headers[O.LastModified] || new Date(e.createdAt).toUTCString()
|
|
1997
1997
|
) : n.toUTCString());
|
|
1998
1998
|
}
|
|
1999
1999
|
function Qr(e, t) {
|
|
@@ -2025,20 +2025,20 @@ function Zr(e) {
|
|
|
2025
2025
|
}
|
|
2026
2026
|
if (r.cache.cacheTakeover) {
|
|
2027
2027
|
var n, s, i, a, o, d, u, l, h;
|
|
2028
|
-
(i = (n = r.headers)[s =
|
|
2028
|
+
(i = (n = r.headers)[s = O.CacheControl]) != null || (n[s] = "no-cache"), (d = (a = r.headers)[o = O.Pragma]) != null || (a[o] = "no-cache"), (h = (u = r.headers)[l = O.Expires]) != null || (u[l] = "0");
|
|
2029
2029
|
}
|
|
2030
2030
|
if (!be(r.method, r.cache.methods))
|
|
2031
2031
|
return r;
|
|
2032
2032
|
let p = await e.storage.get(r.id, r);
|
|
2033
|
-
const
|
|
2034
|
-
e: if (p.state === "empty" || p.state === "stale" || p.state === "must-revalidate" ||
|
|
2035
|
-
if (e.waiting.has(r.id) && !
|
|
2033
|
+
const y = r.cache.override;
|
|
2034
|
+
e: if (p.state === "empty" || p.state === "stale" || p.state === "must-revalidate" || y) {
|
|
2035
|
+
if (e.waiting.has(r.id) && !y && (p = await e.storage.get(r.id, r), p.state !== "empty" && p.state !== "must-revalidate"))
|
|
2036
2036
|
break e;
|
|
2037
|
-
const m =
|
|
2037
|
+
const m = Kr();
|
|
2038
2038
|
return e.waiting.set(r.id, m), m.catch(() => {
|
|
2039
2039
|
}), await e.storage.set(r.id, {
|
|
2040
2040
|
state: "loading",
|
|
2041
|
-
previous:
|
|
2041
|
+
previous: y ? (
|
|
2042
2042
|
// Simply determine if the request is stale or not
|
|
2043
2043
|
// based if it had previous data or not
|
|
2044
2044
|
p.data ? "stale" : "empty"
|
|
@@ -2048,7 +2048,7 @@ function Zr(e) {
|
|
|
2048
2048
|
),
|
|
2049
2049
|
data: p.data,
|
|
2050
2050
|
// If the cache is empty and asked to override it, use the current timestamp
|
|
2051
|
-
createdAt:
|
|
2051
|
+
createdAt: y && !p.createdAt ? Date.now() : p.createdAt
|
|
2052
2052
|
}, r), (p.state === "stale" || p.state === "must-revalidate") && Yr(p, r), r.validateStatus = Xr(r.validateStatus), (p.state === "stale" || p.data && p.state !== "must-revalidate") && await (r.cache.hydrate == null ? void 0 : r.cache.hydrate(p)), r;
|
|
2053
2053
|
}
|
|
2054
2054
|
let f;
|
|
@@ -2130,12 +2130,12 @@ function tn(e) {
|
|
|
2130
2130
|
return s;
|
|
2131
2131
|
if (
|
|
2132
2132
|
// For 'loading' values (previous: stale), this check already ran in the past.
|
|
2133
|
-
!d.data && !await
|
|
2133
|
+
!d.data && !await Wr(s, o.cachePredicate)
|
|
2134
2134
|
)
|
|
2135
2135
|
return await t(s.id, a, !0), s;
|
|
2136
2136
|
for (const f of Object.keys(s.headers))
|
|
2137
2137
|
f.startsWith("x-axios-cache") && delete s.headers[f];
|
|
2138
|
-
o.etag && o.etag !== !0 && (s.headers[
|
|
2138
|
+
o.etag && o.etag !== !0 && (s.headers[O.XAxiosCacheEtag] = o.etag), o.modifiedSince && (s.headers[O.XAxiosCacheLastModified] = o.modifiedSince === !0 ? "use-cache-timestamp" : o.modifiedSince.toUTCString());
|
|
2139
2139
|
let u = o.ttl || -1, l;
|
|
2140
2140
|
if (o.interpretHeader) {
|
|
2141
2141
|
const f = e.headerInterpreter(s.headers, e.location);
|
|
@@ -2144,7 +2144,7 @@ function tn(e) {
|
|
|
2144
2144
|
f !== "not enough headers" && (typeof f == "number" ? u = f : (u = f.cache, l = f.stale));
|
|
2145
2145
|
}
|
|
2146
2146
|
const h = Qr(s, d.data);
|
|
2147
|
-
typeof u == "function" && (u = await u(s)), o.staleIfError && (s.headers[
|
|
2147
|
+
typeof u == "function" && (u = await u(s)), o.staleIfError && (s.headers[O.XAxiosCacheStaleIfError] = String(u));
|
|
2148
2148
|
const p = {
|
|
2149
2149
|
state: "cached",
|
|
2150
2150
|
ttl: u,
|
|
@@ -2153,8 +2153,8 @@ function tn(e) {
|
|
|
2153
2153
|
data: h
|
|
2154
2154
|
};
|
|
2155
2155
|
await e.storage.set(s.id, p, a);
|
|
2156
|
-
const
|
|
2157
|
-
return
|
|
2156
|
+
const y = e.waiting.get(s.id);
|
|
2157
|
+
return y && (y.resolve(), e.waiting.delete(s.id)), s;
|
|
2158
2158
|
},
|
|
2159
2159
|
onRejected: async (s) => {
|
|
2160
2160
|
if (!s.isAxiosError || !s.config)
|
|
@@ -2176,7 +2176,7 @@ function tn(e) {
|
|
|
2176
2176
|
s.code !== "ERR_CANCELED" || s.code === "ERR_CANCELED" && u.state !== "cached"
|
|
2177
2177
|
), s;
|
|
2178
2178
|
if (o.staleIfError) {
|
|
2179
|
-
const l = String(d?.headers[
|
|
2179
|
+
const l = String(d?.headers[O.CacheControl]), h = l && ut(l).staleIfError, p = typeof o.staleIfError == "function" ? await o.staleIfError(d, u, s) : o.staleIfError === !0 && h ? h * 1e3 : o.staleIfError;
|
|
2180
2180
|
if (p === !0 || // staleIfError is the number of seconds that stale is allowed to be used
|
|
2181
2181
|
typeof p == "number" && u.createdAt + p > Date.now()) {
|
|
2182
2182
|
await e.storage.set(a, {
|
|
@@ -2184,8 +2184,8 @@ function tn(e) {
|
|
|
2184
2184
|
createdAt: Date.now(),
|
|
2185
2185
|
data: u.data
|
|
2186
2186
|
}, i);
|
|
2187
|
-
const
|
|
2188
|
-
return
|
|
2187
|
+
const y = e.waiting.get(a);
|
|
2188
|
+
return y && (y.resolve(), e.waiting.delete(a)), {
|
|
2189
2189
|
cached: !0,
|
|
2190
2190
|
stale: !0,
|
|
2191
2191
|
config: i,
|
|
@@ -2204,10 +2204,10 @@ function tn(e) {
|
|
|
2204
2204
|
const rn = (e) => !!e && !!e["is-storage"];
|
|
2205
2205
|
function dt(e) {
|
|
2206
2206
|
const t = e.data.headers;
|
|
2207
|
-
return
|
|
2207
|
+
return O.ETag in t || O.LastModified in t || O.XAxiosCacheEtag in t || O.XAxiosCacheLastModified in t;
|
|
2208
2208
|
}
|
|
2209
2209
|
function nn(e) {
|
|
2210
|
-
return String(e.data.headers[
|
|
2210
|
+
return String(e.data.headers[O.CacheControl]).includes("must-revalidate");
|
|
2211
2211
|
}
|
|
2212
2212
|
function ft(e) {
|
|
2213
2213
|
return dt(e) ? !0 : e.state === "cached" && e.staleTtl !== void 0 && // Only allow stale values after the ttl is already in the past and the staleTtl is in the future.
|
|
@@ -2218,7 +2218,7 @@ function ft(e) {
|
|
|
2218
2218
|
// [ past ][now is in here]
|
|
2219
2219
|
Math.abs(Date.now() - (e.createdAt + e.ttl)) <= e.staleTtl;
|
|
2220
2220
|
}
|
|
2221
|
-
function
|
|
2221
|
+
function we(e) {
|
|
2222
2222
|
return e.ttl !== void 0 && e.createdAt + e.ttl <= Date.now();
|
|
2223
2223
|
}
|
|
2224
2224
|
function sn({
|
|
@@ -2242,7 +2242,7 @@ function sn({
|
|
|
2242
2242
|
if (a.state === "empty" || a.state === "loading" || a.state === "must-revalidate")
|
|
2243
2243
|
return a;
|
|
2244
2244
|
if (a.state === "cached") {
|
|
2245
|
-
if (!
|
|
2245
|
+
if (!we(a))
|
|
2246
2246
|
return a;
|
|
2247
2247
|
if (!ft(a))
|
|
2248
2248
|
return await r(s, i), {
|
|
@@ -2258,13 +2258,13 @@ function sn({
|
|
|
2258
2258
|
state: "must-revalidate"
|
|
2259
2259
|
});
|
|
2260
2260
|
}
|
|
2261
|
-
return !
|
|
2261
|
+
return !we(a) || dt(a) ? a : (await r(s, i), {
|
|
2262
2262
|
state: "empty"
|
|
2263
2263
|
});
|
|
2264
2264
|
}
|
|
2265
2265
|
};
|
|
2266
2266
|
}
|
|
2267
|
-
const
|
|
2267
|
+
const Be = (
|
|
2268
2268
|
// https://caniuse.com/mdn-api_structuredclone (10/18/2023 92.51%)
|
|
2269
2269
|
typeof structuredClone == "function" ? structuredClone : (e) => JSON.parse(JSON.stringify(e))
|
|
2270
2270
|
);
|
|
@@ -2277,14 +2277,14 @@ function an(e = !1, t = !1, r = !1) {
|
|
|
2277
2277
|
for (n.cleanup(), a = Object.keys(n.data); a.length >= r; )
|
|
2278
2278
|
delete n.data[a.shift()];
|
|
2279
2279
|
}
|
|
2280
|
-
n.data[s] = e === "double" ?
|
|
2280
|
+
n.data[s] = e === "double" ? Be(i) : i;
|
|
2281
2281
|
},
|
|
2282
2282
|
remove: (s) => {
|
|
2283
2283
|
delete n.data[s];
|
|
2284
2284
|
},
|
|
2285
2285
|
find: (s) => {
|
|
2286
2286
|
const i = n.data[s];
|
|
2287
|
-
return e && i !== void 0 ?
|
|
2287
|
+
return e && i !== void 0 ? Be(i) : i;
|
|
2288
2288
|
},
|
|
2289
2289
|
clear: () => {
|
|
2290
2290
|
n.data = /* @__PURE__ */ Object.create(null);
|
|
@@ -2298,11 +2298,11 @@ function an(e = !1, t = !1, r = !1) {
|
|
|
2298
2298
|
n.remove(o);
|
|
2299
2299
|
continue;
|
|
2300
2300
|
}
|
|
2301
|
-
a.state === "cached" &&
|
|
2301
|
+
a.state === "cached" && we(a) && !ft(a) && n.remove(o);
|
|
2302
2302
|
}
|
|
2303
2303
|
}, t && (n.cleaner = setInterval(n.cleanup, t)), n;
|
|
2304
2304
|
}
|
|
2305
|
-
const
|
|
2305
|
+
const De = /^\/|\/$/g;
|
|
2306
2306
|
function on(e) {
|
|
2307
2307
|
return (t) => {
|
|
2308
2308
|
if (t.id)
|
|
@@ -2317,7 +2317,7 @@ const cn = on(({
|
|
|
2317
2317
|
method: r,
|
|
2318
2318
|
params: n,
|
|
2319
2319
|
data: s
|
|
2320
|
-
}) => (e !== void 0 ? e = e.replace(
|
|
2320
|
+
}) => (e !== void 0 ? e = e.replace(De, "") : e = "", t !== void 0 ? t = t.replace(De, "") : t = "", r !== void 0 ? r = r.toLowerCase() : r = "get", {
|
|
2321
2321
|
url: e + (e && t ? "/" : "") + t,
|
|
2322
2322
|
params: n,
|
|
2323
2323
|
method: r,
|
|
@@ -2330,7 +2330,7 @@ function ln(e, t = {}) {
|
|
|
2330
2330
|
throw new Error("setupCache() should be called only once");
|
|
2331
2331
|
if (l.location = typeof window > "u" ? "server" : "client", l.storage = t.storage || an(), !rn(l.storage))
|
|
2332
2332
|
throw new Error("Use buildStorage() function");
|
|
2333
|
-
return l.waiting = t.waiting || /* @__PURE__ */ new Map(), l.generateKey = t.generateKey || cn, l.headerInterpreter = t.headerInterpreter ||
|
|
2333
|
+
return l.waiting = t.waiting || /* @__PURE__ */ new Map(), l.generateKey = t.generateKey || cn, l.headerInterpreter = t.headerInterpreter || Vr, l.requestInterceptor = t.requestInterceptor || Zr(l), l.responseInterceptor = t.responseInterceptor || tn(l), l.debug = t.debug || function() {
|
|
2334
2334
|
}, l.defaults.cache = {
|
|
2335
2335
|
update: t.update || {},
|
|
2336
2336
|
ttl: (r = t.ttl) != null ? r : 1e3 * 60 * 5,
|
|
@@ -2372,13 +2372,13 @@ ht.interceptors.response.use(
|
|
|
2372
2372
|
})
|
|
2373
2373
|
), Promise.reject(e))
|
|
2374
2374
|
);
|
|
2375
|
-
const
|
|
2376
|
-
var dn = /* @__PURE__ */ ((e) => (e.GET_PAGES_AND_LINKS = "webapi/objectmanagement/teamspaces/pagesandlinks_412Y_v1", e.GET_SPACE_FONT_FAMILY = "webapi/objectmanagement/teamspaces/getspacefonts_41I6_v1", e.GET_SPACE_LIST = "webapi/objectmanagement/teamspaces/getteamspaces_41I3_v1", e.GET_USER_ROLE = "webapi/objectmanagement/teamspaces/getuserroles_41E7_v1", e))(dn || {}), fn = /* @__PURE__ */ ((e) => (e.GET_CROP_ZONE_SUGGESTION = "webapi/mediafile/assettransformation/getcropzonesuggestion_41UP_v1", e.GET_LARGEST_DOWNLOAD_LINK = "webapi/objectmanagement/share/getlargestdownloadlink_46X_v1", e.GET_TRANSFORM_ASSET_LINK = "webapi/mediafile/assettransformation/transformasset_41E6_v1", e.UPLOAD_AND_GET_RESPONSE = "webapi/mediafile/import/upload/uploadimageandgetlargestdownloadlink_4CM_v1", e.UPLOAD_RESPONSE = "api/UploadMedia/v3.0/UploadNewMedia", e))(fn || {}), hn = /* @__PURE__ */ ((e) => (e.GET_AUTOCOMPLETE_ITEMS_WITH_QUERY = "webapi/ui/autocompletion/executequery_4JD_v1-alpha", e.GET_AUTOCOMPLETE_ITEMS_WITH_SERVICE = "webapi/ui/autocompletion/callservice_41s5_v1-alpha", e))(hn || {}), pn = /* @__PURE__ */ ((e) => (e.GET_DASHBOARD_EMBEDDED_URL = "webapi/extensibility/integrations/businessintelligence/getdashboardembededurl_41JJ_v1", e.GET_DASHBOARD_LIST = "webapi/extensibility/integrations/businessintelligence/getlistdashboards_41JI_v1", e))(pn || {}), mn = /* @__PURE__ */ ((e) => (e.GET_SEARCHABLE_FIELDS = "webapi/objectmanagement/metadata/fields/getallobjectfieldsforcurrentuser_4C2_v2", e))(mn || {}), bn = /* @__PURE__ */ ((e) => (e["4.0"] = "API/Search/v4.0/Search", e))(bn || {}),
|
|
2375
|
+
const Bn = ln(ht), Dn = "webapi/extensibility/integrations/gab/assetbrowser/gethierarchy_41e8", In = "webapi/extensibility/integrations/gab/assetbrowser/AvailableProxies_4ea_v3", Mn = "webapi/extensibility/integrations/gab/assetbrowser/getallformatcodes_428H";
|
|
2376
|
+
var dn = /* @__PURE__ */ ((e) => (e.GET_PAGES_AND_LINKS = "webapi/objectmanagement/teamspaces/pagesandlinks_412Y_v1", e.GET_SPACE_FONT_FAMILY = "webapi/objectmanagement/teamspaces/getspacefonts_41I6_v1", e.GET_SPACE_LIST = "webapi/objectmanagement/teamspaces/getteamspaces_41I3_v1", e.GET_USER_ROLE = "webapi/objectmanagement/teamspaces/getuserroles_41E7_v1", e))(dn || {}), fn = /* @__PURE__ */ ((e) => (e.GET_CONTENT_V1 = "webapi/extensibility/integrations/contentBrowserSDK/getcontent_4bw_v1", e.GET_CONTENT_V3 = "webapi/extensibility/integrations/contentBrowserSDK/getcontent_4bw_v3", e.GET_CROP_ZONE_SUGGESTION = "webapi/mediafile/assettransformation/getcropzonesuggestion_41UP_v1", e.GET_LARGEST_DOWNLOAD_LINK = "webapi/objectmanagement/share/getlargestdownloadlink_46X_v1", e.GET_TRANSFORM_ASSET_LINK = "webapi/mediafile/assettransformation/transformasset_41E6_v1", e.UPLOAD_AND_GET_RESPONSE = "webapi/mediafile/import/upload/uploadimageandgetlargestdownloadlink_4CM_v1", e.UPLOAD_RESPONSE = "api/UploadMedia/v3.0/UploadNewMedia", e))(fn || {}), hn = /* @__PURE__ */ ((e) => (e.GET_AUTOCOMPLETE_ITEMS_WITH_QUERY = "webapi/ui/autocompletion/executequery_4JD_v1-alpha", e.GET_AUTOCOMPLETE_ITEMS_WITH_SERVICE = "webapi/ui/autocompletion/callservice_41s5_v1-alpha", e))(hn || {}), pn = /* @__PURE__ */ ((e) => (e.GET_DASHBOARD_EMBEDDED_URL = "webapi/extensibility/integrations/businessintelligence/getdashboardembededurl_41JJ_v1", e.GET_DASHBOARD_LIST = "webapi/extensibility/integrations/businessintelligence/getlistdashboards_41JI_v1", e))(pn || {}), mn = /* @__PURE__ */ ((e) => (e.GET_SEARCHABLE_FIELDS = "webapi/objectmanagement/metadata/fields/getallobjectfieldsforcurrentuser_4C2_v2", e))(mn || {}), bn = /* @__PURE__ */ ((e) => (e["4.0"] = "API/Search/v4.0/Search", e))(bn || {}), wn = /* @__PURE__ */ ((e) => (e.CREATE_OR_UPDATE_CHAPTERS = "webapi/mediafile/timebasedasset/createorupdatechapters_4b0_v1", e.GET_CHAPTERS = "webapi/mediafile/timebasedasset/getchapters_41T7_v1", e))(wn || {}), yn = /* @__PURE__ */ ((e) => (e.BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/418g_v1", e.GET_ADHOC_PROPERTIES = "webapi/cms/cms5/blocktemplate/getadhocpropertieslist_419s_v1", e.GET_BLOCK_TEMPLATES = "webapi/cms/cms5/blocktemplate/getblocktemplates_419y_v1", e.GET_BLOCK_TYPES = "webapi/cms/cms5/blocktemplate/getblocktypes_419z_v1", e.GET_CAN_CREATE_BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/cancreatenewblocktemplate_41cs_v1", e.GET_PAGES_FOR_BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/getpagesforblocktemplate_41ig_v1", e.GET_PERMISSION = "webapi/cms/cms5/blocktemplate/getpermission_419r_v1", e.LIST_BLOCK_TEMPLATES = "webapi/cms/cms5/blocktemplate/getlisttemplates_428o_v1", e))(yn || {});
|
|
2377
2377
|
export {
|
|
2378
2378
|
fn as A,
|
|
2379
|
-
|
|
2379
|
+
yn as C,
|
|
2380
2380
|
pn as D,
|
|
2381
|
-
|
|
2381
|
+
Dn as F,
|
|
2382
2382
|
mn as M,
|
|
2383
2383
|
bn as S,
|
|
2384
2384
|
dn as T,
|
|
@@ -2386,6 +2386,6 @@ export {
|
|
|
2386
2386
|
In as b,
|
|
2387
2387
|
Rn as c,
|
|
2388
2388
|
hn as d,
|
|
2389
|
-
|
|
2390
|
-
|
|
2389
|
+
wn as e,
|
|
2390
|
+
Bn as h
|
|
2391
2391
|
};
|