@das-fed/upf-utils 6.4.0-dev.231 → 6.4.0-dev.233
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/api-services/es5.js +551 -550
- package/api-services/index.js +391 -390
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +462 -461
- package/api-services/modules/app-manage/index.js +350 -349
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +451 -450
- package/api-services/modules/authentication/index.js +342 -341
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +482 -481
- package/api-services/modules/bems/index.js +367 -366
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +824 -826
- package/api-services/modules/contract/index.js +638 -641
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +479 -478
- package/api-services/modules/duty-manage/index.js +367 -366
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +451 -450
- package/api-services/modules/enterpriseright/index.js +342 -341
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1359 -1346
- package/api-services/modules/file/es5.js +473 -472
- package/api-services/modules/file/index.js +351 -350
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +451 -450
- package/api-services/modules/gateway-edge/index.js +342 -341
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1111 -1092
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +459 -458
- package/api-services/modules/iot/index.js +348 -347
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +451 -450
- package/api-services/modules/justauth/index.js +342 -341
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +1255 -1266
- package/api-services/modules/knowledge/index.js +1050 -1067
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +451 -450
- package/api-services/modules/link/index.js +342 -341
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +1250 -1240
- package/api-services/modules/permission/index.js +1055 -1040
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +457 -456
- package/api-services/modules/platformManage/index.js +345 -344
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +451 -450
- package/api-services/modules/portal/index.js +342 -341
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +451 -450
- package/api-services/modules/space-manage/index.js +342 -341
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +1265 -1255
- package/api-services/modules/super-admin/index.js +1066 -1051
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +453 -452
- package/api-services/modules/supplier/index.js +343 -342
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +451 -450
- package/api-services/modules/supplychain-manage/index.js +342 -341
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +451 -450
- package/api-services/modules/systemConfiguration/index.js +342 -341
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +1262 -1273
- package/api-services/modules/tool/index.js +1056 -1073
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +1256 -1243
- package/api-services/src/create-service/index.js +1060 -1041
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +513 -512
- package/common-info/getPermissionMethod/es5.js +857 -854
- package/common-info/getPermissionMethod/index.js +666 -661
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.js +396 -395
- package/common-info/index.js.gz +0 -0
- package/create-api-service/access-token-auto-refresh/es5.js +325 -0
- package/create-api-service/access-token-auto-refresh/index.d.ts +20 -0
- package/create-api-service/access-token-auto-refresh/index.js +182 -0
- package/create-api-service/access-token-auto-refresh/index.js.gz +0 -0
- package/create-api-service/check-token/es5.js +72 -2272
- package/create-api-service/check-token/index.d.ts +3 -8
- package/create-api-service/check-token/index.js +40 -1729
- package/create-api-service/check-token/index.js.gz +0 -0
- package/create-api-service/es5.js +450 -449
- package/create-api-service/index.js +342 -341
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/token-refresh-shared/es5.js +2327 -0
- package/create-api-service/token-refresh-shared/index.d.ts +30 -0
- package/create-api-service/token-refresh-shared/index.js +1752 -0
- package/create-api-service/token-refresh-shared/index.js.gz +0 -0
- package/esm-map.json +19 -1
- package/package.json +3 -3
- package/token-tools/es5.js +85 -18
- package/token-tools/index.js +80 -8
- package/token-tools/index.js.gz +0 -0
|
@@ -7,34 +7,35 @@ import eo from "dayjs/plugin/timezone";
|
|
|
7
7
|
import { getProjectInfo as to, getInstanceInfo as ro } from "@das-fed/upf-utils/common-info";
|
|
8
8
|
import { getAccessToken as no } from "@das-fed/upf-utils/token-tools";
|
|
9
9
|
import { getConfig as Wr } from "@das-fed/upf-utils/config";
|
|
10
|
-
import {
|
|
10
|
+
import { applyRefreshedToken as oo } from "@das-fed/upf-utils/create-api-service/access-token-auto-refresh";
|
|
11
|
+
import { getValidAccessToken as ao } from "@das-fed/upf-utils/create-api-service/check-token";
|
|
11
12
|
function Gr(t, e) {
|
|
12
13
|
return function() {
|
|
13
14
|
return t.apply(e, arguments);
|
|
14
15
|
};
|
|
15
16
|
}
|
|
16
|
-
const { toString:
|
|
17
|
-
const n =
|
|
17
|
+
const { toString: io } = Object.prototype, { getPrototypeOf: Mt } = Object, { iterator: qe, toStringTag: Jr } = Symbol, je = /* @__PURE__ */ ((t) => (e) => {
|
|
18
|
+
const n = io.call(e);
|
|
18
19
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
19
20
|
})(/* @__PURE__ */ Object.create(null)), $ = (t) => (t = t.toLowerCase(), (e) => je(e) === t), He = (t) => (e) => typeof e === t, { isArray: le } = Array, ve = He("undefined");
|
|
20
|
-
function
|
|
21
|
+
function so(t) {
|
|
21
22
|
return t !== null && !ve(t) && t.constructor !== null && !ve(t.constructor) && N(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
22
23
|
}
|
|
23
24
|
const Vr = $("ArrayBuffer");
|
|
24
|
-
function
|
|
25
|
+
function lo(t) {
|
|
25
26
|
let e;
|
|
26
27
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Vr(t.buffer), e;
|
|
27
28
|
}
|
|
28
|
-
const
|
|
29
|
+
const co = He("string"), N = He("function"), Kr = He("number"), ze = (t) => t !== null && typeof t == "object", uo = (t) => t === !0 || t === !1, _e = (t) => {
|
|
29
30
|
if (je(t) !== "object")
|
|
30
31
|
return !1;
|
|
31
32
|
const e = Mt(t);
|
|
32
33
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Jr in t) && !(qe in t);
|
|
33
|
-
},
|
|
34
|
+
}, fo = $("Date"), po = $("File"), yo = $("Blob"), ho = $("FileList"), mo = (t) => ze(t) && N(t.pipe), go = (t) => {
|
|
34
35
|
let e;
|
|
35
36
|
return t && (typeof FormData == "function" && t instanceof FormData || N(t.append) && ((e = je(t)) === "formdata" || // detect form-data instance
|
|
36
37
|
e === "object" && N(t.toString) && t.toString() === "[object FormData]"));
|
|
37
|
-
},
|
|
38
|
+
}, vo = $("URLSearchParams"), [wo, bo, So, Eo] = ["ReadableStream", "Request", "Response", "Headers"].map($), Oo = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
38
39
|
function be(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
39
40
|
if (t === null || typeof t > "u")
|
|
40
41
|
return;
|
|
@@ -68,13 +69,13 @@ function Rt() {
|
|
|
68
69
|
arguments[r] && be(arguments[r], n);
|
|
69
70
|
return e;
|
|
70
71
|
}
|
|
71
|
-
const
|
|
72
|
+
const Ao = (t, e, n, { allOwnKeys: r } = {}) => (be(e, (o, a) => {
|
|
72
73
|
n && N(o) ? t[a] = Gr(o, n) : t[a] = o;
|
|
73
|
-
}, { allOwnKeys: r }), t),
|
|
74
|
+
}, { allOwnKeys: r }), t), Ro = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Po = (t, e, n, r) => {
|
|
74
75
|
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
75
76
|
value: e.prototype
|
|
76
77
|
}), n && Object.assign(t.prototype, n);
|
|
77
|
-
},
|
|
78
|
+
}, To = (t, e, n, r) => {
|
|
78
79
|
let o, a, i;
|
|
79
80
|
const s = {};
|
|
80
81
|
if (e = e || {}, t == null) return e;
|
|
@@ -84,11 +85,11 @@ const Oo = (t, e, n, { allOwnKeys: r } = {}) => (be(e, (o, a) => {
|
|
|
84
85
|
t = n !== !1 && Mt(t);
|
|
85
86
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
86
87
|
return e;
|
|
87
|
-
},
|
|
88
|
+
}, xo = (t, e, n) => {
|
|
88
89
|
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
|
|
89
90
|
const r = t.indexOf(e, n);
|
|
90
91
|
return r !== -1 && r === n;
|
|
91
|
-
},
|
|
92
|
+
}, _o = (t) => {
|
|
92
93
|
if (!t) return null;
|
|
93
94
|
if (le(t)) return t;
|
|
94
95
|
let e = t.length;
|
|
@@ -97,31 +98,31 @@ const Oo = (t, e, n, { allOwnKeys: r } = {}) => (be(e, (o, a) => {
|
|
|
97
98
|
for (; e-- > 0; )
|
|
98
99
|
n[e] = t[e];
|
|
99
100
|
return n;
|
|
100
|
-
},
|
|
101
|
+
}, Co = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Mt(Uint8Array)), Fo = (t, e) => {
|
|
101
102
|
const r = (t && t[qe]).call(t);
|
|
102
103
|
let o;
|
|
103
104
|
for (; (o = r.next()) && !o.done; ) {
|
|
104
105
|
const a = o.value;
|
|
105
106
|
e.call(t, a[0], a[1]);
|
|
106
107
|
}
|
|
107
|
-
},
|
|
108
|
+
}, No = (t, e) => {
|
|
108
109
|
let n;
|
|
109
110
|
const r = [];
|
|
110
111
|
for (; (n = t.exec(e)) !== null; )
|
|
111
112
|
r.push(n);
|
|
112
113
|
return r;
|
|
113
|
-
},
|
|
114
|
+
}, Do = $("HTMLFormElement"), Io = (t) => t.toLowerCase().replace(
|
|
114
115
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
115
116
|
function(n, r, o) {
|
|
116
117
|
return r.toUpperCase() + o;
|
|
117
118
|
}
|
|
118
|
-
), Xt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype),
|
|
119
|
+
), Xt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), $o = $("RegExp"), Zr = (t, e) => {
|
|
119
120
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
120
121
|
be(n, (o, a) => {
|
|
121
122
|
let i;
|
|
122
123
|
(i = e(o, a, t)) !== !1 && (r[a] = i || o);
|
|
123
124
|
}), Object.defineProperties(t, r);
|
|
124
|
-
},
|
|
125
|
+
}, Bo = (t) => {
|
|
125
126
|
Zr(t, (e, n) => {
|
|
126
127
|
if (N(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
127
128
|
return !1;
|
|
@@ -136,19 +137,19 @@ const Oo = (t, e, n, { allOwnKeys: r } = {}) => (be(e, (o, a) => {
|
|
|
136
137
|
});
|
|
137
138
|
}
|
|
138
139
|
});
|
|
139
|
-
},
|
|
140
|
+
}, Uo = (t, e) => {
|
|
140
141
|
const n = {}, r = (o) => {
|
|
141
142
|
o.forEach((a) => {
|
|
142
143
|
n[a] = !0;
|
|
143
144
|
});
|
|
144
145
|
};
|
|
145
146
|
return le(t) ? r(t) : r(String(t).split(e)), n;
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
function
|
|
147
|
+
}, Lo = () => {
|
|
148
|
+
}, Mo = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
149
|
+
function ko(t) {
|
|
149
150
|
return !!(t && N(t.append) && t[Jr] === "FormData" && t[qe]);
|
|
150
151
|
}
|
|
151
|
-
const
|
|
152
|
+
const qo = (t) => {
|
|
152
153
|
const e = new Array(10), n = (r, o) => {
|
|
153
154
|
if (ze(r)) {
|
|
154
155
|
if (e.indexOf(r) >= 0)
|
|
@@ -165,71 +166,71 @@ const ko = (t) => {
|
|
|
165
166
|
return r;
|
|
166
167
|
};
|
|
167
168
|
return n(t, 0);
|
|
168
|
-
},
|
|
169
|
+
}, jo = $("AsyncFunction"), Ho = (t) => t && (ze(t) || N(t)) && N(t.then) && N(t.catch), Yr = ((t, e) => t ? setImmediate : e ? ((n, r) => (K.addEventListener("message", ({ source: o, data: a }) => {
|
|
169
170
|
o === K && a === n && r.length && r.shift()();
|
|
170
171
|
}, !1), (o) => {
|
|
171
172
|
r.push(o), K.postMessage(n, "*");
|
|
172
173
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
173
174
|
typeof setImmediate == "function",
|
|
174
175
|
N(K.postMessage)
|
|
175
|
-
),
|
|
176
|
+
), zo = typeof queueMicrotask < "u" ? queueMicrotask.bind(K) : typeof process < "u" && process.nextTick || Yr, Wo = (t) => t != null && N(t[qe]), p = {
|
|
176
177
|
isArray: le,
|
|
177
178
|
isArrayBuffer: Vr,
|
|
178
|
-
isBuffer:
|
|
179
|
-
isFormData:
|
|
180
|
-
isArrayBufferView:
|
|
181
|
-
isString:
|
|
179
|
+
isBuffer: so,
|
|
180
|
+
isFormData: go,
|
|
181
|
+
isArrayBufferView: lo,
|
|
182
|
+
isString: co,
|
|
182
183
|
isNumber: Kr,
|
|
183
|
-
isBoolean:
|
|
184
|
+
isBoolean: uo,
|
|
184
185
|
isObject: ze,
|
|
185
186
|
isPlainObject: _e,
|
|
186
|
-
isReadableStream:
|
|
187
|
-
isRequest:
|
|
188
|
-
isResponse:
|
|
189
|
-
isHeaders:
|
|
187
|
+
isReadableStream: wo,
|
|
188
|
+
isRequest: bo,
|
|
189
|
+
isResponse: So,
|
|
190
|
+
isHeaders: Eo,
|
|
190
191
|
isUndefined: ve,
|
|
191
|
-
isDate:
|
|
192
|
-
isFile:
|
|
193
|
-
isBlob:
|
|
194
|
-
isRegExp:
|
|
192
|
+
isDate: fo,
|
|
193
|
+
isFile: po,
|
|
194
|
+
isBlob: yo,
|
|
195
|
+
isRegExp: $o,
|
|
195
196
|
isFunction: N,
|
|
196
|
-
isStream:
|
|
197
|
-
isURLSearchParams:
|
|
198
|
-
isTypedArray:
|
|
199
|
-
isFileList:
|
|
197
|
+
isStream: mo,
|
|
198
|
+
isURLSearchParams: vo,
|
|
199
|
+
isTypedArray: Co,
|
|
200
|
+
isFileList: ho,
|
|
200
201
|
forEach: be,
|
|
201
202
|
merge: Rt,
|
|
202
|
-
extend:
|
|
203
|
-
trim:
|
|
204
|
-
stripBOM:
|
|
205
|
-
inherits:
|
|
206
|
-
toFlatObject:
|
|
203
|
+
extend: Ao,
|
|
204
|
+
trim: Oo,
|
|
205
|
+
stripBOM: Ro,
|
|
206
|
+
inherits: Po,
|
|
207
|
+
toFlatObject: To,
|
|
207
208
|
kindOf: je,
|
|
208
209
|
kindOfTest: $,
|
|
209
|
-
endsWith:
|
|
210
|
-
toArray:
|
|
211
|
-
forEachEntry:
|
|
212
|
-
matchAll:
|
|
213
|
-
isHTMLForm:
|
|
210
|
+
endsWith: xo,
|
|
211
|
+
toArray: _o,
|
|
212
|
+
forEachEntry: Fo,
|
|
213
|
+
matchAll: No,
|
|
214
|
+
isHTMLForm: Do,
|
|
214
215
|
hasOwnProperty: Xt,
|
|
215
216
|
hasOwnProp: Xt,
|
|
216
217
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
217
218
|
reduceDescriptors: Zr,
|
|
218
|
-
freezeMethods:
|
|
219
|
-
toObjectSet:
|
|
220
|
-
toCamelCase:
|
|
221
|
-
noop:
|
|
222
|
-
toFiniteNumber:
|
|
219
|
+
freezeMethods: Bo,
|
|
220
|
+
toObjectSet: Uo,
|
|
221
|
+
toCamelCase: Io,
|
|
222
|
+
noop: Lo,
|
|
223
|
+
toFiniteNumber: Mo,
|
|
223
224
|
findKey: Qr,
|
|
224
225
|
global: K,
|
|
225
226
|
isContextDefined: Xr,
|
|
226
|
-
isSpecCompliantForm:
|
|
227
|
-
toJSONObject:
|
|
228
|
-
isAsyncFn:
|
|
229
|
-
isThenable:
|
|
227
|
+
isSpecCompliantForm: ko,
|
|
228
|
+
toJSONObject: qo,
|
|
229
|
+
isAsyncFn: jo,
|
|
230
|
+
isThenable: Ho,
|
|
230
231
|
setImmediate: Yr,
|
|
231
|
-
asap:
|
|
232
|
-
isIterable:
|
|
232
|
+
asap: zo,
|
|
233
|
+
isIterable: Wo
|
|
233
234
|
};
|
|
234
235
|
function w(t, e, n, r, o) {
|
|
235
236
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
@@ -281,7 +282,7 @@ w.from = (t, e, n, r, o, a) => {
|
|
|
281
282
|
return u !== Error.prototype;
|
|
282
283
|
}, (s) => s !== "isAxiosError"), w.call(i, t.message, e, n, r, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
|
|
283
284
|
};
|
|
284
|
-
const
|
|
285
|
+
const Go = null;
|
|
285
286
|
function Pt(t) {
|
|
286
287
|
return p.isPlainObject(t) || p.isArray(t);
|
|
287
288
|
}
|
|
@@ -293,10 +294,10 @@ function Zt(t, e, n) {
|
|
|
293
294
|
return o = rn(o), !n && a ? "[" + o + "]" : o;
|
|
294
295
|
}).join(n ? "." : "") : e;
|
|
295
296
|
}
|
|
296
|
-
function
|
|
297
|
+
function Jo(t) {
|
|
297
298
|
return p.isArray(t) && !t.some(Pt);
|
|
298
299
|
}
|
|
299
|
-
const
|
|
300
|
+
const Vo = p.toFlatObject(p, {}, null, function(e) {
|
|
300
301
|
return /^is[A-Z]/.test(e);
|
|
301
302
|
});
|
|
302
303
|
function We(t, e, n) {
|
|
@@ -327,7 +328,7 @@ function We(t, e, n) {
|
|
|
327
328
|
if (y && !h && typeof y == "object") {
|
|
328
329
|
if (p.endsWith(m, "{}"))
|
|
329
330
|
m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
|
|
330
|
-
else if (p.isArray(y) &&
|
|
331
|
+
else if (p.isArray(y) && Jo(y) || (p.isFileList(y) || p.endsWith(m, "[]")) && (b = p.toArray(y)))
|
|
331
332
|
return m = rn(m), b.forEach(function(g, O) {
|
|
332
333
|
!(p.isUndefined(g) || g === null) && e.append(
|
|
333
334
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -338,7 +339,7 @@ function We(t, e, n) {
|
|
|
338
339
|
}
|
|
339
340
|
return Pt(y) ? !0 : (e.append(Zt(h, m, a), c(y)), !1);
|
|
340
341
|
}
|
|
341
|
-
const f = [], d = Object.assign(
|
|
342
|
+
const f = [], d = Object.assign(Vo, {
|
|
342
343
|
defaultVisitor: l,
|
|
343
344
|
convertValue: c,
|
|
344
345
|
isVisitable: Pt
|
|
@@ -391,13 +392,13 @@ nn.toString = function(e) {
|
|
|
391
392
|
return n(o[0]) + "=" + n(o[1]);
|
|
392
393
|
}, "").join("&");
|
|
393
394
|
};
|
|
394
|
-
function
|
|
395
|
+
function Ko(t) {
|
|
395
396
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
396
397
|
}
|
|
397
398
|
function on(t, e, n) {
|
|
398
399
|
if (!e)
|
|
399
400
|
return t;
|
|
400
|
-
const r = n && n.encode ||
|
|
401
|
+
const r = n && n.encode || Ko;
|
|
401
402
|
p.isFunction(n) && (n = {
|
|
402
403
|
serialize: n
|
|
403
404
|
});
|
|
@@ -467,37 +468,37 @@ const an = {
|
|
|
467
468
|
silentJSONParsing: !0,
|
|
468
469
|
forcedJSONParsing: !0,
|
|
469
470
|
clarifyTimeoutError: !1
|
|
470
|
-
},
|
|
471
|
+
}, Qo = typeof URLSearchParams < "u" ? URLSearchParams : kt, Xo = typeof FormData < "u" ? FormData : null, Zo = typeof Blob < "u" ? Blob : null, Yo = {
|
|
471
472
|
isBrowser: !0,
|
|
472
473
|
classes: {
|
|
473
|
-
URLSearchParams:
|
|
474
|
-
FormData:
|
|
475
|
-
Blob:
|
|
474
|
+
URLSearchParams: Qo,
|
|
475
|
+
FormData: Xo,
|
|
476
|
+
Blob: Zo
|
|
476
477
|
},
|
|
477
478
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
478
|
-
}, qt = typeof window < "u" && typeof document < "u", Tt = typeof navigator == "object" && navigator || void 0,
|
|
479
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
479
|
+
}, qt = typeof window < "u" && typeof document < "u", Tt = typeof navigator == "object" && navigator || void 0, ea = qt && (!Tt || ["ReactNative", "NativeScript", "NS"].indexOf(Tt.product) < 0), ta = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
480
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ra = qt && window.location.href || "http://localhost", na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
480
481
|
__proto__: null,
|
|
481
482
|
hasBrowserEnv: qt,
|
|
482
|
-
hasStandardBrowserEnv:
|
|
483
|
-
hasStandardBrowserWebWorkerEnv:
|
|
483
|
+
hasStandardBrowserEnv: ea,
|
|
484
|
+
hasStandardBrowserWebWorkerEnv: ta,
|
|
484
485
|
navigator: Tt,
|
|
485
|
-
origin:
|
|
486
|
+
origin: ra
|
|
486
487
|
}, Symbol.toStringTag, { value: "Module" })), _ = {
|
|
487
|
-
...
|
|
488
|
-
...
|
|
488
|
+
...na,
|
|
489
|
+
...Yo
|
|
489
490
|
};
|
|
490
|
-
function
|
|
491
|
+
function oa(t, e) {
|
|
491
492
|
return We(t, new _.classes.URLSearchParams(), Object.assign({
|
|
492
493
|
visitor: function(n, r, o, a) {
|
|
493
494
|
return _.isNode && p.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
494
495
|
}
|
|
495
496
|
}, e));
|
|
496
497
|
}
|
|
497
|
-
function
|
|
498
|
+
function aa(t) {
|
|
498
499
|
return p.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
499
500
|
}
|
|
500
|
-
function
|
|
501
|
+
function ia(t) {
|
|
501
502
|
const e = {}, n = Object.keys(t);
|
|
502
503
|
let r;
|
|
503
504
|
const o = n.length;
|
|
@@ -511,17 +512,17 @@ function sn(t) {
|
|
|
511
512
|
let i = n[a++];
|
|
512
513
|
if (i === "__proto__") return !0;
|
|
513
514
|
const s = Number.isFinite(+i), u = a >= n.length;
|
|
514
|
-
return i = !i && p.isArray(o) ? o.length : i, u ? (p.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !p.isObject(o[i])) && (o[i] = []), e(n, r, o[i], a) && p.isArray(o[i]) && (o[i] =
|
|
515
|
+
return i = !i && p.isArray(o) ? o.length : i, u ? (p.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !p.isObject(o[i])) && (o[i] = []), e(n, r, o[i], a) && p.isArray(o[i]) && (o[i] = ia(o[i])), !s);
|
|
515
516
|
}
|
|
516
517
|
if (p.isFormData(t) && p.isFunction(t.entries)) {
|
|
517
518
|
const n = {};
|
|
518
519
|
return p.forEachEntry(t, (r, o) => {
|
|
519
|
-
e(
|
|
520
|
+
e(aa(r), o, n, 0);
|
|
520
521
|
}), n;
|
|
521
522
|
}
|
|
522
523
|
return null;
|
|
523
524
|
}
|
|
524
|
-
function
|
|
525
|
+
function sa(t, e, n) {
|
|
525
526
|
if (p.isString(t))
|
|
526
527
|
try {
|
|
527
528
|
return (e || JSON.parse)(t), p.trim(t);
|
|
@@ -547,7 +548,7 @@ const Se = {
|
|
|
547
548
|
let s;
|
|
548
549
|
if (a) {
|
|
549
550
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
550
|
-
return
|
|
551
|
+
return oa(e, this.formSerializer).toString();
|
|
551
552
|
if ((s = p.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
|
|
552
553
|
const u = this.env && this.env.FormData;
|
|
553
554
|
return We(
|
|
@@ -557,7 +558,7 @@ const Se = {
|
|
|
557
558
|
);
|
|
558
559
|
}
|
|
559
560
|
}
|
|
560
|
-
return a || o ? (n.setContentType("application/json", !1),
|
|
561
|
+
return a || o ? (n.setContentType("application/json", !1), sa(e)) : e;
|
|
561
562
|
}],
|
|
562
563
|
transformResponse: [function(e) {
|
|
563
564
|
const n = this.transitional || Se.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
@@ -600,7 +601,7 @@ const Se = {
|
|
|
600
601
|
p.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
601
602
|
Se.headers[t] = {};
|
|
602
603
|
});
|
|
603
|
-
const
|
|
604
|
+
const la = p.toObjectSet([
|
|
604
605
|
"age",
|
|
605
606
|
"authorization",
|
|
606
607
|
"content-length",
|
|
@@ -618,12 +619,12 @@ const sa = p.toObjectSet([
|
|
|
618
619
|
"referer",
|
|
619
620
|
"retry-after",
|
|
620
621
|
"user-agent"
|
|
621
|
-
]),
|
|
622
|
+
]), ca = (t) => {
|
|
622
623
|
const e = {};
|
|
623
624
|
let n, r, o;
|
|
624
625
|
return t && t.split(`
|
|
625
626
|
`).forEach(function(i) {
|
|
626
|
-
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || e[n] &&
|
|
627
|
+
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || e[n] && la[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
|
|
627
628
|
}), e;
|
|
628
629
|
}, tr = Symbol("internals");
|
|
629
630
|
function pe(t) {
|
|
@@ -632,14 +633,14 @@ function pe(t) {
|
|
|
632
633
|
function Ce(t) {
|
|
633
634
|
return t === !1 || t == null ? t : p.isArray(t) ? t.map(Ce) : String(t);
|
|
634
635
|
}
|
|
635
|
-
function
|
|
636
|
+
function ua(t) {
|
|
636
637
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
637
638
|
let r;
|
|
638
639
|
for (; r = n.exec(t); )
|
|
639
640
|
e[r[1]] = r[2];
|
|
640
641
|
return e;
|
|
641
642
|
}
|
|
642
|
-
const
|
|
643
|
+
const fa = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
643
644
|
function et(t, e, n, r, o) {
|
|
644
645
|
if (p.isFunction(r))
|
|
645
646
|
return r.call(this, e, n);
|
|
@@ -650,10 +651,10 @@ function et(t, e, n, r, o) {
|
|
|
650
651
|
return r.test(e);
|
|
651
652
|
}
|
|
652
653
|
}
|
|
653
|
-
function
|
|
654
|
+
function pa(t) {
|
|
654
655
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
|
|
655
656
|
}
|
|
656
|
-
function
|
|
657
|
+
function da(t, e) {
|
|
657
658
|
const n = p.toCamelCase(" " + e);
|
|
658
659
|
["get", "set", "has"].forEach((r) => {
|
|
659
660
|
Object.defineProperty(t, r + n, {
|
|
@@ -680,8 +681,8 @@ class D {
|
|
|
680
681
|
const i = (s, u) => p.forEach(s, (c, l) => a(c, l, u));
|
|
681
682
|
if (p.isPlainObject(e) || e instanceof this.constructor)
|
|
682
683
|
i(e, n);
|
|
683
|
-
else if (p.isString(e) && (e = e.trim()) && !
|
|
684
|
-
i(
|
|
684
|
+
else if (p.isString(e) && (e = e.trim()) && !fa(e))
|
|
685
|
+
i(ca(e), n);
|
|
685
686
|
else if (p.isObject(e) && p.isIterable(e)) {
|
|
686
687
|
let s = {}, u, c;
|
|
687
688
|
for (const l of e) {
|
|
@@ -702,7 +703,7 @@ class D {
|
|
|
702
703
|
if (!n)
|
|
703
704
|
return o;
|
|
704
705
|
if (n === !0)
|
|
705
|
-
return
|
|
706
|
+
return ua(o);
|
|
706
707
|
if (p.isFunction(n))
|
|
707
708
|
return n.call(this, o, r);
|
|
708
709
|
if (p.isRegExp(n))
|
|
@@ -746,7 +747,7 @@ class D {
|
|
|
746
747
|
n[i] = Ce(o), delete n[a];
|
|
747
748
|
return;
|
|
748
749
|
}
|
|
749
|
-
const s = e ?
|
|
750
|
+
const s = e ? pa(a) : String(a).trim();
|
|
750
751
|
s !== a && delete n[a], n[s] = Ce(o), r[s] = !0;
|
|
751
752
|
}), this;
|
|
752
753
|
}
|
|
@@ -785,7 +786,7 @@ class D {
|
|
|
785
786
|
}).accessors, o = this.prototype;
|
|
786
787
|
function a(i) {
|
|
787
788
|
const s = pe(i);
|
|
788
|
-
r[s] || (
|
|
789
|
+
r[s] || (da(o, i), r[s] = !0);
|
|
789
790
|
}
|
|
790
791
|
return p.isArray(e) ? e.forEach(a) : a(e), this;
|
|
791
792
|
}
|
|
@@ -827,11 +828,11 @@ function cn(t, e, n) {
|
|
|
827
828
|
n
|
|
828
829
|
));
|
|
829
830
|
}
|
|
830
|
-
function
|
|
831
|
+
function ya(t) {
|
|
831
832
|
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
832
833
|
return e && e[1] || "";
|
|
833
834
|
}
|
|
834
|
-
function
|
|
835
|
+
function ha(t, e) {
|
|
835
836
|
t = t || 10;
|
|
836
837
|
const n = new Array(t), r = new Array(t);
|
|
837
838
|
let o = 0, a = 0, i;
|
|
@@ -847,7 +848,7 @@ function ya(t, e) {
|
|
|
847
848
|
return v ? Math.round(d * 1e3 / v) : void 0;
|
|
848
849
|
};
|
|
849
850
|
}
|
|
850
|
-
function
|
|
851
|
+
function ma(t, e) {
|
|
851
852
|
let n = 0, r = 1e3 / e, o, a;
|
|
852
853
|
const i = (c, l = Date.now()) => {
|
|
853
854
|
n = l, o = null, a && (clearTimeout(a), a = null), t.apply(null, c);
|
|
@@ -861,8 +862,8 @@ function ha(t, e) {
|
|
|
861
862
|
}
|
|
862
863
|
const $e = (t, e, n = 3) => {
|
|
863
864
|
let r = 0;
|
|
864
|
-
const o =
|
|
865
|
-
return
|
|
865
|
+
const o = ha(50, 250);
|
|
866
|
+
return ma((a) => {
|
|
866
867
|
const i = a.loaded, s = a.lengthComputable ? a.total : void 0, u = i - r, c = o(u), l = i <= s;
|
|
867
868
|
r = i;
|
|
868
869
|
const f = {
|
|
@@ -885,10 +886,10 @@ const $e = (t, e, n = 3) => {
|
|
|
885
886
|
total: t,
|
|
886
887
|
loaded: r
|
|
887
888
|
}), e[1]];
|
|
888
|
-
}, nr = (t) => (...e) => p.asap(() => t(...e)),
|
|
889
|
+
}, nr = (t) => (...e) => p.asap(() => t(...e)), ga = _.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, _.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
|
|
889
890
|
new URL(_.origin),
|
|
890
891
|
_.navigator && /(msie|trident)/i.test(_.navigator.userAgent)
|
|
891
|
-
) : () => !0,
|
|
892
|
+
) : () => !0, va = _.hasStandardBrowserEnv ? (
|
|
892
893
|
// Standard browser envs support document.cookie
|
|
893
894
|
{
|
|
894
895
|
write(t, e, n, r, o, a) {
|
|
@@ -915,15 +916,15 @@ const $e = (t, e, n = 3) => {
|
|
|
915
916
|
}
|
|
916
917
|
}
|
|
917
918
|
);
|
|
918
|
-
function
|
|
919
|
+
function wa(t) {
|
|
919
920
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
920
921
|
}
|
|
921
|
-
function
|
|
922
|
+
function ba(t, e) {
|
|
922
923
|
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
923
924
|
}
|
|
924
925
|
function un(t, e, n) {
|
|
925
|
-
let r = !
|
|
926
|
-
return t && (r || n == !1) ?
|
|
926
|
+
let r = !wa(e);
|
|
927
|
+
return t && (r || n == !1) ? ba(t, e) : e;
|
|
927
928
|
}
|
|
928
929
|
const or = (t) => t instanceof D ? { ...t } : t;
|
|
929
930
|
function Z(t, e) {
|
|
@@ -1006,12 +1007,12 @@ const fn = (t) => {
|
|
|
1006
1007
|
i.setContentType([c || "multipart/form-data", ...l].join("; "));
|
|
1007
1008
|
}
|
|
1008
1009
|
}
|
|
1009
|
-
if (_.hasStandardBrowserEnv && (r && p.isFunction(r) && (r = r(e)), r || r !== !1 &&
|
|
1010
|
-
const c = o && a &&
|
|
1010
|
+
if (_.hasStandardBrowserEnv && (r && p.isFunction(r) && (r = r(e)), r || r !== !1 && ga(e.url))) {
|
|
1011
|
+
const c = o && a && va.read(a);
|
|
1011
1012
|
c && i.set(o, c);
|
|
1012
1013
|
}
|
|
1013
1014
|
return e;
|
|
1014
|
-
},
|
|
1015
|
+
}, Sa = typeof XMLHttpRequest < "u", Ea = Sa && function(t) {
|
|
1015
1016
|
return new Promise(function(n, r) {
|
|
1016
1017
|
const o = fn(t);
|
|
1017
1018
|
let a = o.data;
|
|
@@ -1061,14 +1062,14 @@ const fn = (t) => {
|
|
|
1061
1062
|
}), p.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), c && ([d, y] = $e(c, !0), h.addEventListener("progress", d)), u && h.upload && ([f, v] = $e(u), h.upload.addEventListener("progress", f), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (l = (g) => {
|
|
1062
1063
|
h && (r(!g || g.type ? new ce(null, t, h) : g), h.abort(), h = null);
|
|
1063
1064
|
}, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
|
|
1064
|
-
const E =
|
|
1065
|
+
const E = ya(o.url);
|
|
1065
1066
|
if (E && _.protocols.indexOf(E) === -1) {
|
|
1066
1067
|
r(new w("Unsupported protocol " + E + ":", w.ERR_BAD_REQUEST, t));
|
|
1067
1068
|
return;
|
|
1068
1069
|
}
|
|
1069
1070
|
h.send(a || null);
|
|
1070
1071
|
});
|
|
1071
|
-
},
|
|
1072
|
+
}, Oa = (t, e) => {
|
|
1072
1073
|
const { length: n } = t = t ? t.filter(Boolean) : [];
|
|
1073
1074
|
if (e || n) {
|
|
1074
1075
|
let r = new AbortController(), o;
|
|
@@ -1091,7 +1092,7 @@ const fn = (t) => {
|
|
|
1091
1092
|
const { signal: u } = r;
|
|
1092
1093
|
return u.unsubscribe = () => p.asap(s), u;
|
|
1093
1094
|
}
|
|
1094
|
-
},
|
|
1095
|
+
}, Aa = function* (t, e) {
|
|
1095
1096
|
let n = t.byteLength;
|
|
1096
1097
|
if (n < e) {
|
|
1097
1098
|
yield t;
|
|
@@ -1100,10 +1101,10 @@ const fn = (t) => {
|
|
|
1100
1101
|
let r = 0, o;
|
|
1101
1102
|
for (; r < n; )
|
|
1102
1103
|
o = r + e, yield t.slice(r, o), r = o;
|
|
1103
|
-
},
|
|
1104
|
-
for await (const n of
|
|
1105
|
-
yield*
|
|
1106
|
-
},
|
|
1104
|
+
}, Ra = async function* (t, e) {
|
|
1105
|
+
for await (const n of Pa(t))
|
|
1106
|
+
yield* Aa(n, e);
|
|
1107
|
+
}, Pa = async function* (t) {
|
|
1107
1108
|
if (t[Symbol.asyncIterator]) {
|
|
1108
1109
|
yield* t;
|
|
1109
1110
|
return;
|
|
@@ -1120,7 +1121,7 @@ const fn = (t) => {
|
|
|
1120
1121
|
await e.cancel();
|
|
1121
1122
|
}
|
|
1122
1123
|
}, ar = (t, e, n, r) => {
|
|
1123
|
-
const o =
|
|
1124
|
+
const o = Ra(t, e);
|
|
1124
1125
|
let a = 0, i, s = (u) => {
|
|
1125
1126
|
i || (i = !0, r && r(u));
|
|
1126
1127
|
};
|
|
@@ -1148,13 +1149,13 @@ const fn = (t) => {
|
|
|
1148
1149
|
}, {
|
|
1149
1150
|
highWaterMark: 2
|
|
1150
1151
|
});
|
|
1151
|
-
}, Ge = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", pn = Ge && typeof ReadableStream == "function",
|
|
1152
|
+
}, Ge = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", pn = Ge && typeof ReadableStream == "function", Ta = Ge && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), dn = (t, ...e) => {
|
|
1152
1153
|
try {
|
|
1153
1154
|
return !!t(...e);
|
|
1154
1155
|
} catch {
|
|
1155
1156
|
return !1;
|
|
1156
1157
|
}
|
|
1157
|
-
},
|
|
1158
|
+
}, xa = pn && dn(() => {
|
|
1158
1159
|
let t = !1;
|
|
1159
1160
|
const e = new Request(_.origin, {
|
|
1160
1161
|
body: new ReadableStream(),
|
|
@@ -1174,7 +1175,7 @@ Ge && ((t) => {
|
|
|
1174
1175
|
});
|
|
1175
1176
|
});
|
|
1176
1177
|
})(new Response());
|
|
1177
|
-
const
|
|
1178
|
+
const _a = async (t) => {
|
|
1178
1179
|
if (t == null)
|
|
1179
1180
|
return 0;
|
|
1180
1181
|
if (p.isBlob(t))
|
|
@@ -1187,11 +1188,11 @@ const xa = async (t) => {
|
|
|
1187
1188
|
if (p.isArrayBufferView(t) || p.isArrayBuffer(t))
|
|
1188
1189
|
return t.byteLength;
|
|
1189
1190
|
if (p.isURLSearchParams(t) && (t = t + ""), p.isString(t))
|
|
1190
|
-
return (await
|
|
1191
|
-
},
|
|
1191
|
+
return (await Ta(t)).byteLength;
|
|
1192
|
+
}, Ca = async (t, e) => {
|
|
1192
1193
|
const n = p.toFiniteNumber(t.getContentLength());
|
|
1193
|
-
return n ??
|
|
1194
|
-
},
|
|
1194
|
+
return n ?? _a(e);
|
|
1195
|
+
}, Fa = Ge && (async (t) => {
|
|
1195
1196
|
let {
|
|
1196
1197
|
url: e,
|
|
1197
1198
|
method: n,
|
|
@@ -1207,13 +1208,13 @@ const xa = async (t) => {
|
|
|
1207
1208
|
fetchOptions: d
|
|
1208
1209
|
} = fn(t);
|
|
1209
1210
|
c = c ? (c + "").toLowerCase() : "text";
|
|
1210
|
-
let v =
|
|
1211
|
+
let v = Oa([o, a && a.toAbortSignal()], i), y;
|
|
1211
1212
|
const m = v && v.unsubscribe && (() => {
|
|
1212
1213
|
v.unsubscribe();
|
|
1213
1214
|
});
|
|
1214
1215
|
let h;
|
|
1215
1216
|
try {
|
|
1216
|
-
if (u &&
|
|
1217
|
+
if (u && xa && n !== "get" && n !== "head" && (h = await Ca(l, r)) !== 0) {
|
|
1217
1218
|
let A = new Request(e, {
|
|
1218
1219
|
method: "POST",
|
|
1219
1220
|
body: r,
|
|
@@ -1277,9 +1278,9 @@ const xa = async (t) => {
|
|
|
1277
1278
|
) : w.from(b, b && b.code, t, y);
|
|
1278
1279
|
}
|
|
1279
1280
|
}), _t = {
|
|
1280
|
-
http:
|
|
1281
|
-
xhr:
|
|
1282
|
-
fetch:
|
|
1281
|
+
http: Go,
|
|
1282
|
+
xhr: Ea,
|
|
1283
|
+
fetch: Fa
|
|
1283
1284
|
};
|
|
1284
1285
|
p.forEach(_t, (t, e) => {
|
|
1285
1286
|
if (t) {
|
|
@@ -1290,7 +1291,7 @@ p.forEach(_t, (t, e) => {
|
|
|
1290
1291
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
1291
1292
|
}
|
|
1292
1293
|
});
|
|
1293
|
-
const sr = (t) => `- ${t}`,
|
|
1294
|
+
const sr = (t) => `- ${t}`, Na = (t) => p.isFunction(t) || t === null || t === !1, yn = {
|
|
1294
1295
|
getAdapter: (t) => {
|
|
1295
1296
|
t = p.isArray(t) ? t : [t];
|
|
1296
1297
|
const { length: e } = t;
|
|
@@ -1299,7 +1300,7 @@ const sr = (t) => `- ${t}`, Fa = (t) => p.isFunction(t) || t === null || t === !
|
|
|
1299
1300
|
for (let a = 0; a < e; a++) {
|
|
1300
1301
|
n = t[a];
|
|
1301
1302
|
let i;
|
|
1302
|
-
if (r = n, !
|
|
1303
|
+
if (r = n, !Na(n) && (r = _t[(i = String(n)).toLowerCase()], r === void 0))
|
|
1303
1304
|
throw new w(`Unknown adapter '${i}'`);
|
|
1304
1305
|
if (r)
|
|
1305
1306
|
break;
|
|
@@ -1366,7 +1367,7 @@ Je.transitional = function(e, n, r) {
|
|
|
1366
1367
|
Je.spelling = function(e) {
|
|
1367
1368
|
return (n, r) => !0;
|
|
1368
1369
|
};
|
|
1369
|
-
function
|
|
1370
|
+
function Da(t, e, n) {
|
|
1370
1371
|
if (typeof t != "object")
|
|
1371
1372
|
throw new w("options must be an object", w.ERR_BAD_OPTION_VALUE);
|
|
1372
1373
|
const r = Object.keys(t);
|
|
@@ -1384,7 +1385,7 @@ function Na(t, e, n) {
|
|
|
1384
1385
|
}
|
|
1385
1386
|
}
|
|
1386
1387
|
const Fe = {
|
|
1387
|
-
assertOptions:
|
|
1388
|
+
assertOptions: Da,
|
|
1388
1389
|
validators: Je
|
|
1389
1390
|
}, U = Fe.validators;
|
|
1390
1391
|
class Q {
|
|
@@ -1584,12 +1585,12 @@ class jt {
|
|
|
1584
1585
|
};
|
|
1585
1586
|
}
|
|
1586
1587
|
}
|
|
1587
|
-
function
|
|
1588
|
+
function Ia(t) {
|
|
1588
1589
|
return function(n) {
|
|
1589
1590
|
return t.apply(null, n);
|
|
1590
1591
|
};
|
|
1591
1592
|
}
|
|
1592
|
-
function
|
|
1593
|
+
function $a(t) {
|
|
1593
1594
|
return p.isObject(t) && t.isAxiosError === !0;
|
|
1594
1595
|
}
|
|
1595
1596
|
const Ct = {
|
|
@@ -1678,8 +1679,8 @@ P.Cancel = P.CanceledError;
|
|
|
1678
1679
|
P.all = function(e) {
|
|
1679
1680
|
return Promise.all(e);
|
|
1680
1681
|
};
|
|
1681
|
-
P.spread =
|
|
1682
|
-
P.isAxiosError =
|
|
1682
|
+
P.spread = Ia;
|
|
1683
|
+
P.isAxiosError = $a;
|
|
1683
1684
|
P.mergeConfig = Z;
|
|
1684
1685
|
P.AxiosHeaders = D;
|
|
1685
1686
|
P.formToJSON = (t) => sn(p.isHTMLForm(t) ? new FormData(t) : t);
|
|
@@ -1687,10 +1688,10 @@ P.getAdapter = yn.getAdapter;
|
|
|
1687
1688
|
P.HttpStatusCode = Ct;
|
|
1688
1689
|
P.default = P;
|
|
1689
1690
|
var ur = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1690
|
-
function
|
|
1691
|
+
function Ba(t) {
|
|
1691
1692
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1692
1693
|
}
|
|
1693
|
-
function
|
|
1694
|
+
function Ua(t) {
|
|
1694
1695
|
if (t.__esModule) return t;
|
|
1695
1696
|
var e = t.default;
|
|
1696
1697
|
if (typeof e == "function") {
|
|
@@ -1710,11 +1711,11 @@ function Ba(t) {
|
|
|
1710
1711
|
}), n;
|
|
1711
1712
|
}
|
|
1712
1713
|
var ue = TypeError;
|
|
1713
|
-
const
|
|
1714
|
+
const La = {}, Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1714
1715
|
__proto__: null,
|
|
1715
|
-
default:
|
|
1716
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1717
|
-
var Ht = typeof Map == "function" && Map.prototype, nt = Object.getOwnPropertyDescriptor && Ht ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ue = Ht && nt && typeof nt.get == "function" ? nt.get : null, fr = Ht && Map.prototype.forEach, zt = typeof Set == "function" && Set.prototype, ot = Object.getOwnPropertyDescriptor && zt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Le = zt && ot && typeof ot.get == "function" ? ot.get : null, pr = zt && Set.prototype.forEach,
|
|
1716
|
+
default: La
|
|
1717
|
+
}, Symbol.toStringTag, { value: "Module" })), ka = /* @__PURE__ */ Ua(Ma);
|
|
1718
|
+
var Ht = typeof Map == "function" && Map.prototype, nt = Object.getOwnPropertyDescriptor && Ht ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ue = Ht && nt && typeof nt.get == "function" ? nt.get : null, fr = Ht && Map.prototype.forEach, zt = typeof Set == "function" && Set.prototype, ot = Object.getOwnPropertyDescriptor && zt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Le = zt && ot && typeof ot.get == "function" ? ot.get : null, pr = zt && Set.prototype.forEach, qa = typeof WeakMap == "function" && WeakMap.prototype, ye = qa ? WeakMap.prototype.has : null, ja = typeof WeakSet == "function" && WeakSet.prototype, he = ja ? WeakSet.prototype.has : null, Ha = typeof WeakRef == "function" && WeakRef.prototype, dr = Ha ? WeakRef.prototype.deref : null, za = Boolean.prototype.valueOf, Wa = Object.prototype.toString, Ga = Function.prototype.toString, Ja = String.prototype.match, Wt = String.prototype.slice, G = String.prototype.replace, Va = String.prototype.toUpperCase, yr = String.prototype.toLowerCase, gn = RegExp.prototype.test, hr = Array.prototype.concat, k = Array.prototype.join, Ka = Array.prototype.slice, mr = Math.floor, Ft = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, at = Object.getOwnPropertySymbols, Nt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ie = typeof Symbol == "function" && typeof Symbol.iterator == "object", me = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ie || !0) ? Symbol.toStringTag : null, vn = Object.prototype.propertyIsEnumerable, gr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1718
1719
|
return t.__proto__;
|
|
1719
1720
|
} : null);
|
|
1720
1721
|
function vr(t, e) {
|
|
@@ -1730,11 +1731,11 @@ function vr(t, e) {
|
|
|
1730
1731
|
}
|
|
1731
1732
|
return G.call(e, n, "$&_");
|
|
1732
1733
|
}
|
|
1733
|
-
var Dt =
|
|
1734
|
+
var Dt = ka, wr = Dt.custom, br = Sn(wr) ? wr : null, wn = {
|
|
1734
1735
|
__proto__: null,
|
|
1735
1736
|
double: '"',
|
|
1736
1737
|
single: "'"
|
|
1737
|
-
},
|
|
1738
|
+
}, Qa = {
|
|
1738
1739
|
__proto__: null,
|
|
1739
1740
|
double: /(["\\])/g,
|
|
1740
1741
|
single: /(['\\])/g
|
|
@@ -1773,13 +1774,13 @@ var Dt = Ma, wr = Dt.custom, br = Sn(wr) ? wr : null, wn = {
|
|
|
1773
1774
|
var l = typeof a.depth > "u" ? 5 : a.depth;
|
|
1774
1775
|
if (typeof r > "u" && (r = 0), r >= l && l > 0 && typeof e == "object")
|
|
1775
1776
|
return It(e) ? "[Array]" : "[Object]";
|
|
1776
|
-
var f =
|
|
1777
|
+
var f = yi(a, r);
|
|
1777
1778
|
if (typeof o > "u")
|
|
1778
1779
|
o = [];
|
|
1779
1780
|
else if (En(o, e) >= 0)
|
|
1780
1781
|
return "[Circular]";
|
|
1781
1782
|
function d(I, W, j) {
|
|
1782
|
-
if (W && (o =
|
|
1783
|
+
if (W && (o = Ka.call(o), o.push(W)), j) {
|
|
1783
1784
|
var fe = {
|
|
1784
1785
|
depth: a.depth
|
|
1785
1786
|
};
|
|
@@ -1788,25 +1789,25 @@ var Dt = Ma, wr = Dt.custom, br = Sn(wr) ? wr : null, wn = {
|
|
|
1788
1789
|
return t(I, a, r + 1, o);
|
|
1789
1790
|
}
|
|
1790
1791
|
if (typeof e == "function" && !Sr(e)) {
|
|
1791
|
-
var v =
|
|
1792
|
+
var v = ai(e), y = Pe(e, d);
|
|
1792
1793
|
return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + k.call(y, ", ") + " }" : "");
|
|
1793
1794
|
}
|
|
1794
1795
|
if (Sn(e)) {
|
|
1795
1796
|
var m = ie ? G.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Nt.call(e);
|
|
1796
1797
|
return typeof e == "object" && !ie ? de(m) : m;
|
|
1797
1798
|
}
|
|
1798
|
-
if (
|
|
1799
|
+
if (fi(e)) {
|
|
1799
1800
|
for (var h = "<" + yr.call(String(e.nodeName)), b = e.attributes || [], E = 0; E < b.length; E++)
|
|
1800
|
-
h += " " + b[E].name + "=" + bn(
|
|
1801
|
+
h += " " + b[E].name + "=" + bn(Xa(b[E].value), "double", a);
|
|
1801
1802
|
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + yr.call(String(e.nodeName)) + ">", h;
|
|
1802
1803
|
}
|
|
1803
1804
|
if (It(e)) {
|
|
1804
1805
|
if (e.length === 0)
|
|
1805
1806
|
return "[]";
|
|
1806
1807
|
var g = Pe(e, d);
|
|
1807
|
-
return f && !
|
|
1808
|
+
return f && !di(g) ? "[" + $t(g, f) + "]" : "[ " + k.call(g, ", ") + " ]";
|
|
1808
1809
|
}
|
|
1809
|
-
if (
|
|
1810
|
+
if (Ya(e)) {
|
|
1810
1811
|
var O = Pe(e, d);
|
|
1811
1812
|
return !("cause" in Error.prototype) && "cause" in e && !vn.call(e, "cause") ? "{ [" + String(e) + "] " + k.call(hr.call("[cause]: " + d(e.cause), O), ", ") + " }" : O.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + k.call(O, ", ") + " }";
|
|
1812
1813
|
}
|
|
@@ -1816,37 +1817,37 @@ var Dt = Ma, wr = Dt.custom, br = Sn(wr) ? wr : null, wn = {
|
|
|
1816
1817
|
if (i !== "symbol" && typeof e.inspect == "function")
|
|
1817
1818
|
return e.inspect();
|
|
1818
1819
|
}
|
|
1819
|
-
if (
|
|
1820
|
+
if (ii(e)) {
|
|
1820
1821
|
var A = [];
|
|
1821
1822
|
return fr && fr.call(e, function(I, W) {
|
|
1822
1823
|
A.push(d(W, e, !0) + " => " + d(I, e));
|
|
1823
1824
|
}), Er("Map", Ue.call(e), A, f);
|
|
1824
1825
|
}
|
|
1825
|
-
if (
|
|
1826
|
+
if (ci(e)) {
|
|
1826
1827
|
var C = [];
|
|
1827
1828
|
return pr && pr.call(e, function(I) {
|
|
1828
1829
|
C.push(d(I, e));
|
|
1829
1830
|
}), Er("Set", Le.call(e), C, f);
|
|
1830
1831
|
}
|
|
1831
|
-
if (
|
|
1832
|
+
if (si(e))
|
|
1832
1833
|
return it("WeakMap");
|
|
1833
|
-
if (
|
|
1834
|
+
if (ui(e))
|
|
1834
1835
|
return it("WeakSet");
|
|
1835
|
-
if (
|
|
1836
|
+
if (li(e))
|
|
1836
1837
|
return it("WeakRef");
|
|
1837
|
-
if (
|
|
1838
|
+
if (ti(e))
|
|
1838
1839
|
return de(d(Number(e)));
|
|
1839
|
-
if (
|
|
1840
|
+
if (ni(e))
|
|
1840
1841
|
return de(d(Ft.call(e)));
|
|
1841
|
-
if (
|
|
1842
|
-
return de(
|
|
1843
|
-
if (
|
|
1842
|
+
if (ri(e))
|
|
1843
|
+
return de(za.call(e));
|
|
1844
|
+
if (ei(e))
|
|
1844
1845
|
return de(d(String(e)));
|
|
1845
1846
|
if (typeof window < "u" && e === window)
|
|
1846
1847
|
return "{ [object Window] }";
|
|
1847
1848
|
if (typeof globalThis < "u" && e === globalThis || typeof ur < "u" && e === ur)
|
|
1848
1849
|
return "{ [object globalThis] }";
|
|
1849
|
-
if (!
|
|
1850
|
+
if (!Za(e) && !Sr(e)) {
|
|
1850
1851
|
var F = Pe(e, d), q = gr ? gr(e) === Object.prototype : e instanceof Object || e.constructor === Object, B = e instanceof Object ? "" : "null prototype", z = !q && me && Object(e) === e && me in e ? Wt.call(J(e), 8, -1) : B ? "Object" : "", Re = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", te = Re + (z || B ? "[" + k.call(hr.call([], z || [], B || []), ": ") + "] " : "");
|
|
1851
1852
|
return F.length === 0 ? te + "{}" : f ? te + "{" + $t(F, f) + "}" : te + "{ " + k.call(F, ", ") + " }";
|
|
1852
1853
|
}
|
|
@@ -1856,7 +1857,7 @@ function bn(t, e, n) {
|
|
|
1856
1857
|
var r = n.quoteStyle || e, o = wn[r];
|
|
1857
1858
|
return o + t + o;
|
|
1858
1859
|
}
|
|
1859
|
-
function
|
|
1860
|
+
function Xa(t) {
|
|
1860
1861
|
return G.call(String(t), /"/g, """);
|
|
1861
1862
|
}
|
|
1862
1863
|
function ee(t) {
|
|
@@ -1865,22 +1866,22 @@ function ee(t) {
|
|
|
1865
1866
|
function It(t) {
|
|
1866
1867
|
return J(t) === "[object Array]" && ee(t);
|
|
1867
1868
|
}
|
|
1868
|
-
function
|
|
1869
|
+
function Za(t) {
|
|
1869
1870
|
return J(t) === "[object Date]" && ee(t);
|
|
1870
1871
|
}
|
|
1871
1872
|
function Sr(t) {
|
|
1872
1873
|
return J(t) === "[object RegExp]" && ee(t);
|
|
1873
1874
|
}
|
|
1874
|
-
function
|
|
1875
|
+
function Ya(t) {
|
|
1875
1876
|
return J(t) === "[object Error]" && ee(t);
|
|
1876
1877
|
}
|
|
1877
|
-
function
|
|
1878
|
+
function ei(t) {
|
|
1878
1879
|
return J(t) === "[object String]" && ee(t);
|
|
1879
1880
|
}
|
|
1880
|
-
function
|
|
1881
|
+
function ti(t) {
|
|
1881
1882
|
return J(t) === "[object Number]" && ee(t);
|
|
1882
1883
|
}
|
|
1883
|
-
function
|
|
1884
|
+
function ri(t) {
|
|
1884
1885
|
return J(t) === "[object Boolean]" && ee(t);
|
|
1885
1886
|
}
|
|
1886
1887
|
function Sn(t) {
|
|
@@ -1896,7 +1897,7 @@ function Sn(t) {
|
|
|
1896
1897
|
}
|
|
1897
1898
|
return !1;
|
|
1898
1899
|
}
|
|
1899
|
-
function
|
|
1900
|
+
function ni(t) {
|
|
1900
1901
|
if (!t || typeof t != "object" || !Ft)
|
|
1901
1902
|
return !1;
|
|
1902
1903
|
try {
|
|
@@ -1905,19 +1906,19 @@ function ri(t) {
|
|
|
1905
1906
|
}
|
|
1906
1907
|
return !1;
|
|
1907
1908
|
}
|
|
1908
|
-
var
|
|
1909
|
+
var oi = Object.prototype.hasOwnProperty || function(t) {
|
|
1909
1910
|
return t in this;
|
|
1910
1911
|
};
|
|
1911
1912
|
function H(t, e) {
|
|
1912
|
-
return
|
|
1913
|
+
return oi.call(t, e);
|
|
1913
1914
|
}
|
|
1914
1915
|
function J(t) {
|
|
1915
|
-
return
|
|
1916
|
+
return Wa.call(t);
|
|
1916
1917
|
}
|
|
1917
|
-
function
|
|
1918
|
+
function ai(t) {
|
|
1918
1919
|
if (t.name)
|
|
1919
1920
|
return t.name;
|
|
1920
|
-
var e =
|
|
1921
|
+
var e = Ja.call(Ga.call(t), /^function\s*([\w$]+)/);
|
|
1921
1922
|
return e ? e[1] : null;
|
|
1922
1923
|
}
|
|
1923
1924
|
function En(t, e) {
|
|
@@ -1928,7 +1929,7 @@ function En(t, e) {
|
|
|
1928
1929
|
return n;
|
|
1929
1930
|
return -1;
|
|
1930
1931
|
}
|
|
1931
|
-
function
|
|
1932
|
+
function ii(t) {
|
|
1932
1933
|
if (!Ue || !t || typeof t != "object")
|
|
1933
1934
|
return !1;
|
|
1934
1935
|
try {
|
|
@@ -1943,7 +1944,7 @@ function ai(t) {
|
|
|
1943
1944
|
}
|
|
1944
1945
|
return !1;
|
|
1945
1946
|
}
|
|
1946
|
-
function
|
|
1947
|
+
function si(t) {
|
|
1947
1948
|
if (!ye || !t || typeof t != "object")
|
|
1948
1949
|
return !1;
|
|
1949
1950
|
try {
|
|
@@ -1958,7 +1959,7 @@ function ii(t) {
|
|
|
1958
1959
|
}
|
|
1959
1960
|
return !1;
|
|
1960
1961
|
}
|
|
1961
|
-
function
|
|
1962
|
+
function li(t) {
|
|
1962
1963
|
if (!dr || !t || typeof t != "object")
|
|
1963
1964
|
return !1;
|
|
1964
1965
|
try {
|
|
@@ -1967,7 +1968,7 @@ function si(t) {
|
|
|
1967
1968
|
}
|
|
1968
1969
|
return !1;
|
|
1969
1970
|
}
|
|
1970
|
-
function
|
|
1971
|
+
function ci(t) {
|
|
1971
1972
|
if (!Le || !t || typeof t != "object")
|
|
1972
1973
|
return !1;
|
|
1973
1974
|
try {
|
|
@@ -1982,7 +1983,7 @@ function li(t) {
|
|
|
1982
1983
|
}
|
|
1983
1984
|
return !1;
|
|
1984
1985
|
}
|
|
1985
|
-
function
|
|
1986
|
+
function ui(t) {
|
|
1986
1987
|
if (!he || !t || typeof t != "object")
|
|
1987
1988
|
return !1;
|
|
1988
1989
|
try {
|
|
@@ -1997,7 +1998,7 @@ function ci(t) {
|
|
|
1997
1998
|
}
|
|
1998
1999
|
return !1;
|
|
1999
2000
|
}
|
|
2000
|
-
function
|
|
2001
|
+
function fi(t) {
|
|
2001
2002
|
return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
|
|
2002
2003
|
}
|
|
2003
2004
|
function On(t, e) {
|
|
@@ -2005,12 +2006,12 @@ function On(t, e) {
|
|
|
2005
2006
|
var n = t.length - e.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
|
|
2006
2007
|
return On(Wt.call(t, 0, e.maxStringLength), e) + r;
|
|
2007
2008
|
}
|
|
2008
|
-
var o =
|
|
2009
|
+
var o = Qa[e.quoteStyle || "single"];
|
|
2009
2010
|
o.lastIndex = 0;
|
|
2010
|
-
var a = G.call(G.call(t, o, "\\$1"), /[\x00-\x1f]/g,
|
|
2011
|
+
var a = G.call(G.call(t, o, "\\$1"), /[\x00-\x1f]/g, pi);
|
|
2011
2012
|
return bn(a, "single", e);
|
|
2012
2013
|
}
|
|
2013
|
-
function
|
|
2014
|
+
function pi(t) {
|
|
2014
2015
|
var e = t.charCodeAt(0), n = {
|
|
2015
2016
|
8: "b",
|
|
2016
2017
|
9: "t",
|
|
@@ -2018,7 +2019,7 @@ function fi(t) {
|
|
|
2018
2019
|
12: "f",
|
|
2019
2020
|
13: "r"
|
|
2020
2021
|
}[e];
|
|
2021
|
-
return n ? "\\" + n : "\\x" + (e < 16 ? "0" : "") +
|
|
2022
|
+
return n ? "\\" + n : "\\x" + (e < 16 ? "0" : "") + Va.call(e.toString(16));
|
|
2022
2023
|
}
|
|
2023
2024
|
function de(t) {
|
|
2024
2025
|
return "Object(" + t + ")";
|
|
@@ -2030,14 +2031,14 @@ function Er(t, e, n, r) {
|
|
|
2030
2031
|
var o = r ? $t(n, r) : k.call(n, ", ");
|
|
2031
2032
|
return t + " (" + e + ") {" + o + "}";
|
|
2032
2033
|
}
|
|
2033
|
-
function
|
|
2034
|
+
function di(t) {
|
|
2034
2035
|
for (var e = 0; e < t.length; e++)
|
|
2035
2036
|
if (En(t[e], `
|
|
2036
2037
|
`) >= 0)
|
|
2037
2038
|
return !1;
|
|
2038
2039
|
return !0;
|
|
2039
2040
|
}
|
|
2040
|
-
function
|
|
2041
|
+
function yi(t, e) {
|
|
2041
2042
|
var n;
|
|
2042
2043
|
if (t.indent === " ")
|
|
2043
2044
|
n = " ";
|
|
@@ -2078,17 +2079,17 @@ function Pe(t, e) {
|
|
|
2078
2079
|
vn.call(t, a[c]) && r.push("[" + e(a[c]) + "]: " + e(t[a[c]], t));
|
|
2079
2080
|
return r;
|
|
2080
2081
|
}
|
|
2081
|
-
var
|
|
2082
|
+
var hi = Ve, mi = ue, Ke = function(t, e, n) {
|
|
2082
2083
|
for (var r = t, o; (o = r.next) != null; r = o)
|
|
2083
2084
|
if (o.key === e)
|
|
2084
2085
|
return r.next = o.next, n || (o.next = /** @type {NonNullable<typeof list.next>} */
|
|
2085
2086
|
t.next, t.next = o), o;
|
|
2086
|
-
},
|
|
2087
|
+
}, gi = function(t, e) {
|
|
2087
2088
|
if (t) {
|
|
2088
2089
|
var n = Ke(t, e);
|
|
2089
2090
|
return n && n.value;
|
|
2090
2091
|
}
|
|
2091
|
-
},
|
|
2092
|
+
}, vi = function(t, e, n) {
|
|
2092
2093
|
var r = Ke(t, e);
|
|
2093
2094
|
r ? r.value = n : t.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
|
|
2094
2095
|
{
|
|
@@ -2097,31 +2098,31 @@ var yi = Ve, hi = ue, Ke = function(t, e, n) {
|
|
|
2097
2098
|
next: t.next,
|
|
2098
2099
|
value: n
|
|
2099
2100
|
};
|
|
2100
|
-
}, vi = function(t, e) {
|
|
2101
|
-
return t ? !!Ke(t, e) : !1;
|
|
2102
2101
|
}, wi = function(t, e) {
|
|
2102
|
+
return t ? !!Ke(t, e) : !1;
|
|
2103
|
+
}, bi = function(t, e) {
|
|
2103
2104
|
if (t)
|
|
2104
2105
|
return Ke(t, e, !0);
|
|
2105
|
-
},
|
|
2106
|
+
}, Si = function() {
|
|
2106
2107
|
var e, n = {
|
|
2107
2108
|
assert: function(r) {
|
|
2108
2109
|
if (!n.has(r))
|
|
2109
|
-
throw new
|
|
2110
|
+
throw new mi("Side channel does not contain " + hi(r));
|
|
2110
2111
|
},
|
|
2111
2112
|
delete: function(r) {
|
|
2112
|
-
var o = e && e.next, a =
|
|
2113
|
+
var o = e && e.next, a = bi(e, r);
|
|
2113
2114
|
return a && o && o === a && (e = void 0), !!a;
|
|
2114
2115
|
},
|
|
2115
2116
|
get: function(r) {
|
|
2116
|
-
return
|
|
2117
|
+
return gi(e, r);
|
|
2117
2118
|
},
|
|
2118
2119
|
has: function(r) {
|
|
2119
|
-
return
|
|
2120
|
+
return wi(e, r);
|
|
2120
2121
|
},
|
|
2121
2122
|
set: function(r, o) {
|
|
2122
2123
|
e || (e = {
|
|
2123
2124
|
next: void 0
|
|
2124
|
-
}),
|
|
2125
|
+
}), vi(
|
|
2125
2126
|
/** @type {NonNullable<typeof $o>} */
|
|
2126
2127
|
e,
|
|
2127
2128
|
r,
|
|
@@ -2130,11 +2131,11 @@ var yi = Ve, hi = ue, Ke = function(t, e, n) {
|
|
|
2130
2131
|
}
|
|
2131
2132
|
};
|
|
2132
2133
|
return n;
|
|
2133
|
-
}, An = Object,
|
|
2134
|
+
}, An = Object, Ei = Error, Oi = EvalError, Ai = RangeError, Ri = ReferenceError, Pi = SyntaxError, Ti = URIError, xi = Math.abs, _i = Math.floor, Ci = Math.max, Fi = Math.min, Ni = Math.pow, Di = Math.round, Ii = Number.isNaN || function(e) {
|
|
2134
2135
|
return e !== e;
|
|
2135
|
-
},
|
|
2136
|
-
return
|
|
2137
|
-
},
|
|
2136
|
+
}, $i = Ii, Bi = function(e) {
|
|
2137
|
+
return $i(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
2138
|
+
}, Ui = Object.getOwnPropertyDescriptor, Ne = Ui;
|
|
2138
2139
|
if (Ne)
|
|
2139
2140
|
try {
|
|
2140
2141
|
Ne([], "length");
|
|
@@ -2148,8 +2149,8 @@ if (De)
|
|
|
2148
2149
|
} catch {
|
|
2149
2150
|
De = !1;
|
|
2150
2151
|
}
|
|
2151
|
-
var
|
|
2152
|
-
function
|
|
2152
|
+
var Li = De, st, Or;
|
|
2153
|
+
function Mi() {
|
|
2153
2154
|
return Or || (Or = 1, st = function() {
|
|
2154
2155
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2155
2156
|
return !1;
|
|
@@ -2179,10 +2180,10 @@ function Li() {
|
|
|
2179
2180
|
}), st;
|
|
2180
2181
|
}
|
|
2181
2182
|
var lt, Ar;
|
|
2182
|
-
function
|
|
2183
|
+
function ki() {
|
|
2183
2184
|
if (Ar) return lt;
|
|
2184
2185
|
Ar = 1;
|
|
2185
|
-
var t = typeof Symbol < "u" && Symbol, e =
|
|
2186
|
+
var t = typeof Symbol < "u" && Symbol, e = Mi();
|
|
2186
2187
|
return lt = function() {
|
|
2187
2188
|
return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
|
|
2188
2189
|
}, lt;
|
|
@@ -2199,7 +2200,7 @@ function Tn() {
|
|
|
2199
2200
|
return ut = t.getPrototypeOf || null, ut;
|
|
2200
2201
|
}
|
|
2201
2202
|
var ft, Tr;
|
|
2202
|
-
function
|
|
2203
|
+
function qi() {
|
|
2203
2204
|
if (Tr) return ft;
|
|
2204
2205
|
Tr = 1;
|
|
2205
2206
|
var t = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, n = Math.max, r = "[object Function]", o = function(u, c) {
|
|
@@ -2247,7 +2248,7 @@ var pt, xr;
|
|
|
2247
2248
|
function Qe() {
|
|
2248
2249
|
if (xr) return pt;
|
|
2249
2250
|
xr = 1;
|
|
2250
|
-
var t =
|
|
2251
|
+
var t = qi();
|
|
2251
2252
|
return pt = Function.prototype.bind || t, pt;
|
|
2252
2253
|
}
|
|
2253
2254
|
var dt, _r;
|
|
@@ -2258,12 +2259,12 @@ var yt, Cr;
|
|
|
2258
2259
|
function xn() {
|
|
2259
2260
|
return Cr || (Cr = 1, yt = Function.prototype.apply), yt;
|
|
2260
2261
|
}
|
|
2261
|
-
var
|
|
2262
|
+
var ji = typeof Reflect < "u" && Reflect && Reflect.apply, Hi = Qe(), zi = xn(), Wi = Gt(), Gi = ji, Ji = Gi || Hi.call(Wi, zi), Vi = Qe(), Ki = ue, Qi = Gt(), Xi = Ji, _n = function(e) {
|
|
2262
2263
|
if (e.length < 1 || typeof e[0] != "function")
|
|
2263
|
-
throw new
|
|
2264
|
-
return
|
|
2264
|
+
throw new Ki("a function is required");
|
|
2265
|
+
return Xi(Vi, Qi, e);
|
|
2265
2266
|
}, ht, Fr;
|
|
2266
|
-
function
|
|
2267
|
+
function Zi() {
|
|
2267
2268
|
if (Fr) return ht;
|
|
2268
2269
|
Fr = 1;
|
|
2269
2270
|
var t = _n, e = Rn, n;
|
|
@@ -2287,10 +2288,10 @@ function Xi() {
|
|
|
2287
2288
|
) : !1, ht;
|
|
2288
2289
|
}
|
|
2289
2290
|
var mt, Nr;
|
|
2290
|
-
function
|
|
2291
|
+
function Yi() {
|
|
2291
2292
|
if (Nr) return mt;
|
|
2292
2293
|
Nr = 1;
|
|
2293
|
-
var t = Pn(), e = Tn(), n =
|
|
2294
|
+
var t = Pn(), e = Tn(), n = Zi();
|
|
2294
2295
|
return mt = t ? function(o) {
|
|
2295
2296
|
return t(o);
|
|
2296
2297
|
} : e ? function(o) {
|
|
@@ -2302,20 +2303,20 @@ function Zi() {
|
|
|
2302
2303
|
} : null, mt;
|
|
2303
2304
|
}
|
|
2304
2305
|
var gt, Dr;
|
|
2305
|
-
function
|
|
2306
|
+
function es() {
|
|
2306
2307
|
if (Dr) return gt;
|
|
2307
2308
|
Dr = 1;
|
|
2308
2309
|
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = Qe();
|
|
2309
2310
|
return gt = n.call(t, e), gt;
|
|
2310
2311
|
}
|
|
2311
|
-
var S,
|
|
2312
|
+
var S, ts = An, rs = Ei, ns = Oi, os = Ai, as = Ri, se = Pi, ae = ue, is = Ti, ss = xi, ls = _i, cs = Ci, us = Fi, fs = Ni, ps = Di, ds = Bi, Cn = Function, vt = function(t) {
|
|
2312
2313
|
try {
|
|
2313
2314
|
return Cn('"use strict"; return (' + t + ").constructor;")();
|
|
2314
2315
|
} catch {
|
|
2315
2316
|
}
|
|
2316
|
-
}, we = Rn,
|
|
2317
|
+
}, we = Rn, ys = Li, wt = function() {
|
|
2317
2318
|
throw new ae();
|
|
2318
|
-
},
|
|
2319
|
+
}, hs = we ? function() {
|
|
2319
2320
|
try {
|
|
2320
2321
|
return arguments.callee, wt;
|
|
2321
2322
|
} catch {
|
|
@@ -2325,7 +2326,7 @@ var S, es = An, ts = Si, rs = Ei, ns = Oi, os = Ai, se = Ri, ae = ue, as = Pi, i
|
|
|
2325
2326
|
return wt;
|
|
2326
2327
|
}
|
|
2327
2328
|
}
|
|
2328
|
-
}() : wt, re =
|
|
2329
|
+
}() : wt, re = ki()(), x = Yi(), ms = Tn(), gs = Pn(), Fn = xn(), Ee = Gt(), oe = {}, vs = typeof Uint8Array > "u" || !x ? S : x(Uint8Array), X = {
|
|
2329
2330
|
__proto__: null,
|
|
2330
2331
|
"%AggregateError%": typeof AggregateError > "u" ? S : AggregateError,
|
|
2331
2332
|
"%Array%": Array,
|
|
@@ -2347,10 +2348,10 @@ var S, es = An, ts = Si, rs = Ei, ns = Oi, os = Ai, se = Ri, ae = ue, as = Pi, i
|
|
|
2347
2348
|
"%decodeURIComponent%": decodeURIComponent,
|
|
2348
2349
|
"%encodeURI%": encodeURI,
|
|
2349
2350
|
"%encodeURIComponent%": encodeURIComponent,
|
|
2350
|
-
"%Error%":
|
|
2351
|
+
"%Error%": rs,
|
|
2351
2352
|
"%eval%": eval,
|
|
2352
2353
|
// eslint-disable-line no-eval
|
|
2353
|
-
"%EvalError%":
|
|
2354
|
+
"%EvalError%": ns,
|
|
2354
2355
|
"%Float16Array%": typeof Float16Array > "u" ? S : Float16Array,
|
|
2355
2356
|
"%Float32Array%": typeof Float32Array > "u" ? S : Float32Array,
|
|
2356
2357
|
"%Float64Array%": typeof Float64Array > "u" ? S : Float64Array,
|
|
@@ -2368,14 +2369,14 @@ var S, es = An, ts = Si, rs = Ei, ns = Oi, os = Ai, se = Ri, ae = ue, as = Pi, i
|
|
|
2368
2369
|
"%MapIteratorPrototype%": typeof Map > "u" || !re || !x ? S : x((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2369
2370
|
"%Math%": Math,
|
|
2370
2371
|
"%Number%": Number,
|
|
2371
|
-
"%Object%":
|
|
2372
|
+
"%Object%": ts,
|
|
2372
2373
|
"%Object.getOwnPropertyDescriptor%": we,
|
|
2373
2374
|
"%parseFloat%": parseFloat,
|
|
2374
2375
|
"%parseInt%": parseInt,
|
|
2375
2376
|
"%Promise%": typeof Promise > "u" ? S : Promise,
|
|
2376
2377
|
"%Proxy%": typeof Proxy > "u" ? S : Proxy,
|
|
2377
|
-
"%RangeError%":
|
|
2378
|
-
"%ReferenceError%":
|
|
2378
|
+
"%RangeError%": os,
|
|
2379
|
+
"%ReferenceError%": as,
|
|
2379
2380
|
"%Reflect%": typeof Reflect > "u" ? S : Reflect,
|
|
2380
2381
|
"%RegExp%": RegExp,
|
|
2381
2382
|
"%Set%": typeof Set > "u" ? S : Set,
|
|
@@ -2385,38 +2386,38 @@ var S, es = An, ts = Si, rs = Ei, ns = Oi, os = Ai, se = Ri, ae = ue, as = Pi, i
|
|
|
2385
2386
|
"%StringIteratorPrototype%": re && x ? x(""[Symbol.iterator]()) : S,
|
|
2386
2387
|
"%Symbol%": re ? Symbol : S,
|
|
2387
2388
|
"%SyntaxError%": se,
|
|
2388
|
-
"%ThrowTypeError%":
|
|
2389
|
-
"%TypedArray%":
|
|
2389
|
+
"%ThrowTypeError%": hs,
|
|
2390
|
+
"%TypedArray%": vs,
|
|
2390
2391
|
"%TypeError%": ae,
|
|
2391
2392
|
"%Uint8Array%": typeof Uint8Array > "u" ? S : Uint8Array,
|
|
2392
2393
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? S : Uint8ClampedArray,
|
|
2393
2394
|
"%Uint16Array%": typeof Uint16Array > "u" ? S : Uint16Array,
|
|
2394
2395
|
"%Uint32Array%": typeof Uint32Array > "u" ? S : Uint32Array,
|
|
2395
|
-
"%URIError%":
|
|
2396
|
+
"%URIError%": is,
|
|
2396
2397
|
"%WeakMap%": typeof WeakMap > "u" ? S : WeakMap,
|
|
2397
2398
|
"%WeakRef%": typeof WeakRef > "u" ? S : WeakRef,
|
|
2398
2399
|
"%WeakSet%": typeof WeakSet > "u" ? S : WeakSet,
|
|
2399
2400
|
"%Function.prototype.call%": Ee,
|
|
2400
2401
|
"%Function.prototype.apply%": Fn,
|
|
2401
|
-
"%Object.defineProperty%":
|
|
2402
|
-
"%Object.getPrototypeOf%":
|
|
2403
|
-
"%Math.abs%":
|
|
2404
|
-
"%Math.floor%":
|
|
2405
|
-
"%Math.max%":
|
|
2406
|
-
"%Math.min%":
|
|
2407
|
-
"%Math.pow%":
|
|
2408
|
-
"%Math.round%":
|
|
2409
|
-
"%Math.sign%":
|
|
2410
|
-
"%Reflect.getPrototypeOf%":
|
|
2402
|
+
"%Object.defineProperty%": ys,
|
|
2403
|
+
"%Object.getPrototypeOf%": ms,
|
|
2404
|
+
"%Math.abs%": ss,
|
|
2405
|
+
"%Math.floor%": ls,
|
|
2406
|
+
"%Math.max%": cs,
|
|
2407
|
+
"%Math.min%": us,
|
|
2408
|
+
"%Math.pow%": fs,
|
|
2409
|
+
"%Math.round%": ps,
|
|
2410
|
+
"%Math.sign%": ds,
|
|
2411
|
+
"%Reflect.getPrototypeOf%": gs
|
|
2411
2412
|
};
|
|
2412
2413
|
if (x)
|
|
2413
2414
|
try {
|
|
2414
2415
|
null.error;
|
|
2415
2416
|
} catch (t) {
|
|
2416
|
-
var
|
|
2417
|
-
X["%Error.prototype%"] =
|
|
2417
|
+
var ws = x(x(t));
|
|
2418
|
+
X["%Error.prototype%"] = ws;
|
|
2418
2419
|
}
|
|
2419
|
-
var
|
|
2420
|
+
var bs = function t(e) {
|
|
2420
2421
|
var n;
|
|
2421
2422
|
if (e === "%AsyncFunction%")
|
|
2422
2423
|
n = vt("async function () {}");
|
|
@@ -2485,21 +2486,21 @@ var ws = function t(e) {
|
|
|
2485
2486
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2486
2487
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2487
2488
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2488
|
-
}, Oe = Qe(), Me =
|
|
2489
|
+
}, Oe = Qe(), Me = es(), Ss = Oe.call(Ee, Array.prototype.concat), Es = Oe.call(Fn, Array.prototype.splice), $r = Oe.call(Ee, String.prototype.replace), ke = Oe.call(Ee, String.prototype.slice), Os = Oe.call(Ee, RegExp.prototype.exec), As = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Rs = /\\(\\)?/g, Ps = function(e) {
|
|
2489
2490
|
var n = ke(e, 0, 1), r = ke(e, -1);
|
|
2490
2491
|
if (n === "%" && r !== "%")
|
|
2491
2492
|
throw new se("invalid intrinsic syntax, expected closing `%`");
|
|
2492
2493
|
if (r === "%" && n !== "%")
|
|
2493
2494
|
throw new se("invalid intrinsic syntax, expected opening `%`");
|
|
2494
2495
|
var o = [];
|
|
2495
|
-
return $r(e,
|
|
2496
|
-
o[o.length] = s ? $r(u,
|
|
2496
|
+
return $r(e, As, function(a, i, s, u) {
|
|
2497
|
+
o[o.length] = s ? $r(u, Rs, "$1") : i || a;
|
|
2497
2498
|
}), o;
|
|
2498
|
-
},
|
|
2499
|
+
}, Ts = function(e, n) {
|
|
2499
2500
|
var r = e, o;
|
|
2500
2501
|
if (Me(Ir, r) && (o = Ir[r], r = "%" + o[0] + "%"), Me(X, r)) {
|
|
2501
2502
|
var a = X[r];
|
|
2502
|
-
if (a === oe && (a =
|
|
2503
|
+
if (a === oe && (a = bs(r)), typeof a > "u" && !n)
|
|
2503
2504
|
throw new ae("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
2504
2505
|
return {
|
|
2505
2506
|
alias: o,
|
|
@@ -2513,10 +2514,10 @@ var ws = function t(e) {
|
|
|
2513
2514
|
throw new ae("intrinsic name must be a non-empty string");
|
|
2514
2515
|
if (arguments.length > 1 && typeof n != "boolean")
|
|
2515
2516
|
throw new ae('"allowMissing" argument must be a boolean');
|
|
2516
|
-
if (
|
|
2517
|
+
if (Os(/^%?[^%]*%?$/, e) === null)
|
|
2517
2518
|
throw new se("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2518
|
-
var r =
|
|
2519
|
-
c && (o = c[0],
|
|
2519
|
+
var r = Ps(e), o = r.length > 0 ? r[0] : "", a = Ts("%" + o + "%", n), i = a.name, s = a.value, u = !1, c = a.alias;
|
|
2520
|
+
c && (o = c[0], Es(r, Ss([0, 1], c)));
|
|
2520
2521
|
for (var l = 1, f = !0; l < r.length; l += 1) {
|
|
2521
2522
|
var d = r[l], v = ke(d, 0, 1), y = ke(d, -1);
|
|
2522
2523
|
if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
|
|
@@ -2538,74 +2539,74 @@ var ws = function t(e) {
|
|
|
2538
2539
|
}
|
|
2539
2540
|
}
|
|
2540
2541
|
return s;
|
|
2541
|
-
}, Nn = Jt, Dn = _n,
|
|
2542
|
+
}, Nn = Jt, Dn = _n, xs = Dn([Nn("%String.prototype.indexOf%")]), In = function(e, n) {
|
|
2542
2543
|
var r = (
|
|
2543
2544
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
2544
2545
|
Nn(e, !!n)
|
|
2545
2546
|
);
|
|
2546
|
-
return typeof r == "function" &&
|
|
2547
|
+
return typeof r == "function" && xs(e, ".prototype.") > -1 ? Dn(
|
|
2547
2548
|
/** @type {const} */
|
|
2548
2549
|
[r]
|
|
2549
2550
|
) : r;
|
|
2550
|
-
},
|
|
2551
|
+
}, _s = Jt, Ae = In, Cs = Ve, Fs = ue, Br = _s("%Map%", !0), Ns = Ae("Map.prototype.get", !0), Ds = Ae("Map.prototype.set", !0), Is = Ae("Map.prototype.has", !0), $s = Ae("Map.prototype.delete", !0), Bs = Ae("Map.prototype.size", !0), $n = !!Br && /** @type {Exclude<import('.'), false>} */
|
|
2551
2552
|
function() {
|
|
2552
2553
|
var e, n = {
|
|
2553
2554
|
assert: function(r) {
|
|
2554
2555
|
if (!n.has(r))
|
|
2555
|
-
throw new
|
|
2556
|
+
throw new Fs("Side channel does not contain " + Cs(r));
|
|
2556
2557
|
},
|
|
2557
2558
|
delete: function(r) {
|
|
2558
2559
|
if (e) {
|
|
2559
|
-
var o =
|
|
2560
|
-
return
|
|
2560
|
+
var o = $s(e, r);
|
|
2561
|
+
return Bs(e) === 0 && (e = void 0), o;
|
|
2561
2562
|
}
|
|
2562
2563
|
return !1;
|
|
2563
2564
|
},
|
|
2564
2565
|
get: function(r) {
|
|
2565
2566
|
if (e)
|
|
2566
|
-
return
|
|
2567
|
+
return Ns(e, r);
|
|
2567
2568
|
},
|
|
2568
2569
|
has: function(r) {
|
|
2569
|
-
return e ?
|
|
2570
|
+
return e ? Is(e, r) : !1;
|
|
2570
2571
|
},
|
|
2571
2572
|
set: function(r, o) {
|
|
2572
|
-
e || (e = new Br()),
|
|
2573
|
+
e || (e = new Br()), Ds(e, r, o);
|
|
2573
2574
|
}
|
|
2574
2575
|
};
|
|
2575
2576
|
return n;
|
|
2576
|
-
},
|
|
2577
|
+
}, Us = Jt, Xe = In, Ls = Ve, Te = $n, Ms = ue, ne = Us("%WeakMap%", !0), ks = Xe("WeakMap.prototype.get", !0), qs = Xe("WeakMap.prototype.set", !0), js = Xe("WeakMap.prototype.has", !0), Hs = Xe("WeakMap.prototype.delete", !0), zs = ne ? (
|
|
2577
2578
|
/** @type {Exclude<import('.'), false>} */
|
|
2578
2579
|
function() {
|
|
2579
2580
|
var e, n, r = {
|
|
2580
2581
|
assert: function(o) {
|
|
2581
2582
|
if (!r.has(o))
|
|
2582
|
-
throw new
|
|
2583
|
+
throw new Ms("Side channel does not contain " + Ls(o));
|
|
2583
2584
|
},
|
|
2584
2585
|
delete: function(o) {
|
|
2585
2586
|
if (ne && o && (typeof o == "object" || typeof o == "function")) {
|
|
2586
2587
|
if (e)
|
|
2587
|
-
return
|
|
2588
|
+
return Hs(e, o);
|
|
2588
2589
|
} else if (Te && n)
|
|
2589
2590
|
return n.delete(o);
|
|
2590
2591
|
return !1;
|
|
2591
2592
|
},
|
|
2592
2593
|
get: function(o) {
|
|
2593
|
-
return ne && o && (typeof o == "object" || typeof o == "function") && e ?
|
|
2594
|
+
return ne && o && (typeof o == "object" || typeof o == "function") && e ? ks(e, o) : n && n.get(o);
|
|
2594
2595
|
},
|
|
2595
2596
|
has: function(o) {
|
|
2596
|
-
return ne && o && (typeof o == "object" || typeof o == "function") && e ?
|
|
2597
|
+
return ne && o && (typeof o == "object" || typeof o == "function") && e ? js(e, o) : !!n && n.has(o);
|
|
2597
2598
|
},
|
|
2598
2599
|
set: function(o, a) {
|
|
2599
|
-
ne && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new ne()),
|
|
2600
|
+
ne && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new ne()), qs(e, o, a)) : Te && (n || (n = Te()), n.set(o, a));
|
|
2600
2601
|
}
|
|
2601
2602
|
};
|
|
2602
2603
|
return r;
|
|
2603
2604
|
}
|
|
2604
|
-
) : Te,
|
|
2605
|
+
) : Te, Ws = ue, Gs = Ve, Js = Si, Vs = $n, Ks = zs, Qs = Ks || Vs || Js, Xs = function() {
|
|
2605
2606
|
var e, n = {
|
|
2606
2607
|
assert: function(r) {
|
|
2607
2608
|
if (!n.has(r))
|
|
2608
|
-
throw new
|
|
2609
|
+
throw new Ws("Side channel does not contain " + Gs(r));
|
|
2609
2610
|
},
|
|
2610
2611
|
delete: function(r) {
|
|
2611
2612
|
return !!e && e.delete(r);
|
|
@@ -2617,18 +2618,18 @@ function() {
|
|
|
2617
2618
|
return !!e && e.has(r);
|
|
2618
2619
|
},
|
|
2619
2620
|
set: function(r, o) {
|
|
2620
|
-
e || (e =
|
|
2621
|
+
e || (e = Qs()), e.set(r, o);
|
|
2621
2622
|
}
|
|
2622
2623
|
};
|
|
2623
2624
|
return n;
|
|
2624
|
-
},
|
|
2625
|
+
}, Zs = String.prototype.replace, Ys = /%20/g, bt = {
|
|
2625
2626
|
RFC1738: "RFC1738",
|
|
2626
2627
|
RFC3986: "RFC3986"
|
|
2627
2628
|
}, Vt = {
|
|
2628
2629
|
default: bt.RFC3986,
|
|
2629
2630
|
formatters: {
|
|
2630
2631
|
RFC1738: function(t) {
|
|
2631
|
-
return
|
|
2632
|
+
return Zs.call(t, Ys, "+");
|
|
2632
2633
|
},
|
|
2633
2634
|
RFC3986: function(t) {
|
|
2634
2635
|
return String(t);
|
|
@@ -2636,11 +2637,11 @@ function() {
|
|
|
2636
2637
|
},
|
|
2637
2638
|
RFC1738: bt.RFC1738,
|
|
2638
2639
|
RFC3986: bt.RFC3986
|
|
2639
|
-
},
|
|
2640
|
+
}, el = Vt, St = Object.prototype.hasOwnProperty, V = Array.isArray, L = function() {
|
|
2640
2641
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2641
2642
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2642
2643
|
return t;
|
|
2643
|
-
}(),
|
|
2644
|
+
}(), tl = function(e) {
|
|
2644
2645
|
for (; e.length > 1; ) {
|
|
2645
2646
|
var n = e.pop(), r = n.obj[n.prop];
|
|
2646
2647
|
if (V(r)) {
|
|
@@ -2653,7 +2654,7 @@ function() {
|
|
|
2653
2654
|
for (var r = n && n.plainObjects ? { __proto__: null } : {}, o = 0; o < e.length; ++o)
|
|
2654
2655
|
typeof e[o] < "u" && (r[o] = e[o]);
|
|
2655
2656
|
return r;
|
|
2656
|
-
},
|
|
2657
|
+
}, rl = function t(e, n, r) {
|
|
2657
2658
|
if (!n)
|
|
2658
2659
|
return e;
|
|
2659
2660
|
if (typeof n != "object" && typeof n != "function") {
|
|
@@ -2678,11 +2679,11 @@ function() {
|
|
|
2678
2679
|
var s = n[i];
|
|
2679
2680
|
return St.call(a, i) ? a[i] = t(a[i], s, r) : a[i] = s, a;
|
|
2680
2681
|
}, o);
|
|
2681
|
-
},
|
|
2682
|
+
}, nl = function(e, n) {
|
|
2682
2683
|
return Object.keys(n).reduce(function(r, o) {
|
|
2683
2684
|
return r[o] = n[o], r;
|
|
2684
2685
|
}, e);
|
|
2685
|
-
},
|
|
2686
|
+
}, ol = function(t, e, n) {
|
|
2686
2687
|
var r = t.replace(/\+/g, " ");
|
|
2687
2688
|
if (n === "iso-8859-1")
|
|
2688
2689
|
return r.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -2691,7 +2692,7 @@ function() {
|
|
|
2691
2692
|
} catch {
|
|
2692
2693
|
return r;
|
|
2693
2694
|
}
|
|
2694
|
-
}, Et = 1024,
|
|
2695
|
+
}, Et = 1024, al = function(e, n, r, o, a) {
|
|
2695
2696
|
if (e.length === 0)
|
|
2696
2697
|
return e;
|
|
2697
2698
|
var i = e;
|
|
@@ -2702,7 +2703,7 @@ function() {
|
|
|
2702
2703
|
for (var s = "", u = 0; u < i.length; u += Et) {
|
|
2703
2704
|
for (var c = i.length >= Et ? i.slice(u, u + Et) : i, l = [], f = 0; f < c.length; ++f) {
|
|
2704
2705
|
var d = c.charCodeAt(f);
|
|
2705
|
-
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || a ===
|
|
2706
|
+
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || a === el.RFC1738 && (d === 40 || d === 41)) {
|
|
2706
2707
|
l[l.length] = c.charAt(f);
|
|
2707
2708
|
continue;
|
|
2708
2709
|
}
|
|
@@ -2723,20 +2724,20 @@ function() {
|
|
|
2723
2724
|
s += l.join("");
|
|
2724
2725
|
}
|
|
2725
2726
|
return s;
|
|
2726
|
-
},
|
|
2727
|
+
}, il = function(e) {
|
|
2727
2728
|
for (var n = [{ obj: { o: e }, prop: "o" }], r = [], o = 0; o < n.length; ++o)
|
|
2728
2729
|
for (var a = n[o], i = a.obj[a.prop], s = Object.keys(i), u = 0; u < s.length; ++u) {
|
|
2729
2730
|
var c = s[u], l = i[c];
|
|
2730
2731
|
typeof l == "object" && l !== null && r.indexOf(l) === -1 && (n.push({ obj: i, prop: c }), r.push(l));
|
|
2731
2732
|
}
|
|
2732
|
-
return
|
|
2733
|
-
}, il = function(e) {
|
|
2734
|
-
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
2733
|
+
return tl(n), e;
|
|
2735
2734
|
}, sl = function(e) {
|
|
2735
|
+
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
2736
|
+
}, ll = function(e) {
|
|
2736
2737
|
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
|
|
2737
|
-
}, ll = function(e, n) {
|
|
2738
|
-
return [].concat(e, n);
|
|
2739
2738
|
}, cl = function(e, n) {
|
|
2739
|
+
return [].concat(e, n);
|
|
2740
|
+
}, ul = function(e, n) {
|
|
2740
2741
|
if (V(e)) {
|
|
2741
2742
|
for (var r = [], o = 0; o < e.length; o += 1)
|
|
2742
2743
|
r.push(n(e[o]));
|
|
@@ -2745,16 +2746,16 @@ function() {
|
|
|
2745
2746
|
return n(e);
|
|
2746
2747
|
}, Un = {
|
|
2747
2748
|
arrayToObject: Bn,
|
|
2748
|
-
assign:
|
|
2749
|
-
combine:
|
|
2750
|
-
compact:
|
|
2751
|
-
decode:
|
|
2752
|
-
encode:
|
|
2753
|
-
isBuffer:
|
|
2754
|
-
isRegExp:
|
|
2755
|
-
maybeMap:
|
|
2756
|
-
merge:
|
|
2757
|
-
}, Ln =
|
|
2749
|
+
assign: nl,
|
|
2750
|
+
combine: cl,
|
|
2751
|
+
compact: il,
|
|
2752
|
+
decode: ol,
|
|
2753
|
+
encode: al,
|
|
2754
|
+
isBuffer: ll,
|
|
2755
|
+
isRegExp: sl,
|
|
2756
|
+
maybeMap: ul,
|
|
2757
|
+
merge: rl
|
|
2758
|
+
}, Ln = Xs, Ie = Un, ge = Vt, fl = Object.prototype.hasOwnProperty, Mn = {
|
|
2758
2759
|
brackets: function(e) {
|
|
2759
2760
|
return e + "[]";
|
|
2760
2761
|
},
|
|
@@ -2765,9 +2766,9 @@ function() {
|
|
|
2765
2766
|
repeat: function(e) {
|
|
2766
2767
|
return e;
|
|
2767
2768
|
}
|
|
2768
|
-
}, M = Array.isArray,
|
|
2769
|
-
|
|
2770
|
-
},
|
|
2769
|
+
}, M = Array.isArray, pl = Array.prototype.push, kn = function(t, e) {
|
|
2770
|
+
pl.apply(t, M(e) ? e : [e]);
|
|
2771
|
+
}, dl = Date.prototype.toISOString, Ur = ge.default, T = {
|
|
2771
2772
|
addQueryPrefix: !1,
|
|
2772
2773
|
allowDots: !1,
|
|
2773
2774
|
allowEmptyArrays: !1,
|
|
@@ -2786,13 +2787,13 @@ function() {
|
|
|
2786
2787
|
// deprecated
|
|
2787
2788
|
indices: !1,
|
|
2788
2789
|
serializeDate: function(e) {
|
|
2789
|
-
return
|
|
2790
|
+
return dl.call(e);
|
|
2790
2791
|
},
|
|
2791
2792
|
skipNulls: !1,
|
|
2792
2793
|
strictNullHandling: !1
|
|
2793
|
-
},
|
|
2794
|
+
}, yl = function(e) {
|
|
2794
2795
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2795
|
-
}, Ot = {},
|
|
2796
|
+
}, Ot = {}, hl = function t(e, n, r, o, a, i, s, u, c, l, f, d, v, y, m, h, b, E) {
|
|
2796
2797
|
for (var g = e, O = E, A = 0, C = !1; (O = O.get(Ot)) !== void 0 && !C; ) {
|
|
2797
2798
|
var F = O.get(e);
|
|
2798
2799
|
if (A += 1, typeof F < "u") {
|
|
@@ -2809,7 +2810,7 @@ function() {
|
|
|
2809
2810
|
return c && !h ? c(n, T.encoder, b, "key", y) : n;
|
|
2810
2811
|
g = "";
|
|
2811
2812
|
}
|
|
2812
|
-
if (
|
|
2813
|
+
if (yl(g) || Ie.isBuffer(g)) {
|
|
2813
2814
|
if (c) {
|
|
2814
2815
|
var q = h ? n : c(n, T.encoder, b, "key", y);
|
|
2815
2816
|
return [m(q) + "=" + m(c(g, T.encoder, b, "value", y))];
|
|
@@ -2860,7 +2861,7 @@ function() {
|
|
|
2860
2861
|
}
|
|
2861
2862
|
}
|
|
2862
2863
|
return B;
|
|
2863
|
-
},
|
|
2864
|
+
}, ml = function(e) {
|
|
2864
2865
|
if (!e)
|
|
2865
2866
|
return T;
|
|
2866
2867
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -2874,7 +2875,7 @@ function() {
|
|
|
2874
2875
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
2875
2876
|
var r = ge.default;
|
|
2876
2877
|
if (typeof e.format < "u") {
|
|
2877
|
-
if (!
|
|
2878
|
+
if (!fl.call(ge.formatters, e.format))
|
|
2878
2879
|
throw new TypeError("Unknown format option provided.");
|
|
2879
2880
|
r = e.format;
|
|
2880
2881
|
}
|
|
@@ -2905,8 +2906,8 @@ function() {
|
|
|
2905
2906
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
2906
2907
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : T.strictNullHandling
|
|
2907
2908
|
};
|
|
2908
|
-
},
|
|
2909
|
-
var n = t, r =
|
|
2909
|
+
}, gl = function(t, e) {
|
|
2910
|
+
var n = t, r = ml(e), o, a;
|
|
2910
2911
|
typeof r.filter == "function" ? (a = r.filter, n = a("", n)) : M(r.filter) && (a = r.filter, o = a);
|
|
2911
2912
|
var i = [];
|
|
2912
2913
|
if (typeof n != "object" || n === null)
|
|
@@ -2915,7 +2916,7 @@ function() {
|
|
|
2915
2916
|
o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
|
|
2916
2917
|
for (var c = Ln(), l = 0; l < o.length; ++l) {
|
|
2917
2918
|
var f = o[l], d = n[f];
|
|
2918
|
-
r.skipNulls && d === null || kn(i,
|
|
2919
|
+
r.skipNulls && d === null || kn(i, hl(
|
|
2919
2920
|
d,
|
|
2920
2921
|
f,
|
|
2921
2922
|
s,
|
|
@@ -2960,7 +2961,7 @@ function() {
|
|
|
2960
2961
|
strictDepth: !1,
|
|
2961
2962
|
strictNullHandling: !1,
|
|
2962
2963
|
throwOnLimitExceeded: !1
|
|
2963
|
-
},
|
|
2964
|
+
}, vl = function(t) {
|
|
2964
2965
|
return t.replace(/&#(\d+);/g, function(e, n) {
|
|
2965
2966
|
return String.fromCharCode(parseInt(n, 10));
|
|
2966
2967
|
});
|
|
@@ -2970,7 +2971,7 @@ function() {
|
|
|
2970
2971
|
if (e.throwOnLimitExceeded && n >= e.arrayLimit)
|
|
2971
2972
|
throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
2972
2973
|
return t;
|
|
2973
|
-
},
|
|
2974
|
+
}, wl = "utf8=%26%2310003%3B", bl = "utf8=%E2%9C%93", Sl = function(e, n) {
|
|
2974
2975
|
var r = { __proto__: null }, o = n.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
|
|
2975
2976
|
o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
2976
2977
|
var a = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, i = o.split(
|
|
@@ -2982,7 +2983,7 @@ function() {
|
|
|
2982
2983
|
var s = -1, u, c = n.charset;
|
|
2983
2984
|
if (n.charsetSentinel)
|
|
2984
2985
|
for (u = 0; u < i.length; ++u)
|
|
2985
|
-
i[u].indexOf("utf8=") === 0 && (i[u] ===
|
|
2986
|
+
i[u].indexOf("utf8=") === 0 && (i[u] === bl ? c = "utf-8" : i[u] === wl && (c = "iso-8859-1"), s = u, u = i.length);
|
|
2986
2987
|
for (u = 0; u < i.length; ++u)
|
|
2987
2988
|
if (u !== s) {
|
|
2988
2989
|
var l = i[u], f = l.indexOf("]="), d = f === -1 ? l.indexOf("=") : f + 1, v, y;
|
|
@@ -2995,12 +2996,12 @@ function() {
|
|
|
2995
2996
|
function(h) {
|
|
2996
2997
|
return n.decoder(h, R.decoder, c, "value");
|
|
2997
2998
|
}
|
|
2998
|
-
)), y && n.interpretNumericEntities && c === "iso-8859-1" && (y =
|
|
2999
|
+
)), y && n.interpretNumericEntities && c === "iso-8859-1" && (y = vl(String(y))), l.indexOf("[]=") > -1 && (y = Lr(y) ? [y] : y);
|
|
2999
3000
|
var m = Bt.call(r, v);
|
|
3000
3001
|
m && n.duplicates === "combine" ? r[v] = Y.combine(r[v], y) : (!m || n.duplicates === "last") && (r[v] = y);
|
|
3001
3002
|
}
|
|
3002
3003
|
return r;
|
|
3003
|
-
},
|
|
3004
|
+
}, El = function(t, e, n, r) {
|
|
3004
3005
|
var o = 0;
|
|
3005
3006
|
if (t.length > 0 && t[t.length - 1] === "[]") {
|
|
3006
3007
|
var a = t.slice(0, -1).join("");
|
|
@@ -3018,7 +3019,7 @@ function() {
|
|
|
3018
3019
|
i = u;
|
|
3019
3020
|
}
|
|
3020
3021
|
return i;
|
|
3021
|
-
},
|
|
3022
|
+
}, Ol = function(e, n, r, o) {
|
|
3022
3023
|
if (e) {
|
|
3023
3024
|
var a = r.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, u = r.depth > 0 && i.exec(a), c = u ? a.slice(0, u.index) : a, l = [];
|
|
3024
3025
|
if (c) {
|
|
@@ -3036,9 +3037,9 @@ function() {
|
|
|
3036
3037
|
throw new RangeError("Input depth exceeded depth option of " + r.depth + " and strictDepth is true");
|
|
3037
3038
|
l.push("[" + a.slice(u.index) + "]");
|
|
3038
3039
|
}
|
|
3039
|
-
return
|
|
3040
|
+
return El(l, n, r, o);
|
|
3040
3041
|
}
|
|
3041
|
-
},
|
|
3042
|
+
}, Al = function(e) {
|
|
3042
3043
|
if (!e)
|
|
3043
3044
|
return R;
|
|
3044
3045
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -3079,21 +3080,21 @@ function() {
|
|
|
3079
3080
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : R.strictNullHandling,
|
|
3080
3081
|
throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
|
|
3081
3082
|
};
|
|
3082
|
-
},
|
|
3083
|
-
var n =
|
|
3083
|
+
}, Rl = function(t, e) {
|
|
3084
|
+
var n = Al(e);
|
|
3084
3085
|
if (t === "" || t === null || typeof t > "u")
|
|
3085
3086
|
return n.plainObjects ? { __proto__: null } : {};
|
|
3086
|
-
for (var r = typeof t == "string" ?
|
|
3087
|
-
var s = a[i], u =
|
|
3087
|
+
for (var r = typeof t == "string" ? Sl(t, n) : t, o = n.plainObjects ? { __proto__: null } : {}, a = Object.keys(r), i = 0; i < a.length; ++i) {
|
|
3088
|
+
var s = a[i], u = Ol(s, r[s], n, typeof t == "string");
|
|
3088
3089
|
o = Y.merge(o, u, n);
|
|
3089
3090
|
}
|
|
3090
3091
|
return n.allowSparse === !0 ? o : Y.compact(o);
|
|
3091
|
-
},
|
|
3092
|
-
formats:
|
|
3093
|
-
parse:
|
|
3094
|
-
stringify:
|
|
3092
|
+
}, Pl = gl, Tl = Rl, xl = Vt, _l = {
|
|
3093
|
+
formats: xl,
|
|
3094
|
+
parse: Tl,
|
|
3095
|
+
stringify: Pl
|
|
3095
3096
|
};
|
|
3096
|
-
const
|
|
3097
|
+
const Cl = /* @__PURE__ */ Ba(_l);
|
|
3097
3098
|
/*! js-cookie v3.0.5 | MIT */
|
|
3098
3099
|
function xe(t) {
|
|
3099
3100
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -3103,7 +3104,7 @@ function xe(t) {
|
|
|
3103
3104
|
}
|
|
3104
3105
|
return t;
|
|
3105
3106
|
}
|
|
3106
|
-
var
|
|
3107
|
+
var Fl = {
|
|
3107
3108
|
read: function(t) {
|
|
3108
3109
|
return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
3109
3110
|
},
|
|
@@ -3164,12 +3165,12 @@ function Ut(t, e) {
|
|
|
3164
3165
|
}
|
|
3165
3166
|
);
|
|
3166
3167
|
}
|
|
3167
|
-
var Mr = Ut(
|
|
3168
|
+
var Mr = Ut(Fl, { path: "/" });
|
|
3168
3169
|
Lt.extend(Yn);
|
|
3169
3170
|
Lt.extend(eo);
|
|
3170
3171
|
const Kt = Wr(), jn = Kt.sso ?? !0, kr = Kt.i18n ?? !0, Hn = Kt.noRedireLogin ?? !1;
|
|
3171
3172
|
let qr = "", jr = 0;
|
|
3172
|
-
const
|
|
3173
|
+
const Nl = 1e3, Hr = async (t, e, n = []) => {
|
|
3173
3174
|
const r = Date.now(), o = 1200, a = 60;
|
|
3174
3175
|
for (; Date.now() - r < o; ) {
|
|
3175
3176
|
const i = t(e, ...n);
|
|
@@ -3179,17 +3180,17 @@ const Fl = 1e3, Hr = async (t, e, n = []) => {
|
|
|
3179
3180
|
return t(e, ...n);
|
|
3180
3181
|
};
|
|
3181
3182
|
let At = !1;
|
|
3182
|
-
const
|
|
3183
|
+
const Dl = 5e3, zn = () => At ? !1 : (At = !0, setTimeout(() => {
|
|
3183
3184
|
At = !1;
|
|
3184
|
-
},
|
|
3185
|
+
}, Dl), !0), Wn = () => {
|
|
3185
3186
|
var e, n;
|
|
3186
3187
|
if (Hn) return;
|
|
3187
3188
|
const t = "/login";
|
|
3188
3189
|
location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1, (e = window.top) != null && e.vueRouter ? (n = window.top) == null || n.vueRouter.replace(t) : window.location.replace(`/#${t}`));
|
|
3189
|
-
},
|
|
3190
|
+
}, Il = () => Kn("code") || "" || Hn ? !1 : zn() ? (jn ? Qn({ ...Xn, redirect_uri: Zn }) : Wn(), !0) : !1, $l = async (t) => {
|
|
3190
3191
|
var n;
|
|
3191
3192
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3192
|
-
},
|
|
3193
|
+
}, Bl = async (t, e) => {
|
|
3193
3194
|
var y, m, h, b;
|
|
3194
3195
|
const { t: n } = zr();
|
|
3195
3196
|
let r, o, a = {};
|
|
@@ -3197,7 +3198,7 @@ const Nl = 5e3, zn = () => At ? !1 : (At = !0, setTimeout(() => {
|
|
|
3197
3198
|
let s = ((y = t == null ? void 0 : t.response) == null ? void 0 : y.data) || {};
|
|
3198
3199
|
const u = s == null ? void 0 : s.code, c = (m = t.response) == null ? void 0 : m.status;
|
|
3199
3200
|
if (u === 401 || c === 401) {
|
|
3200
|
-
|
|
3201
|
+
Il(), r = u || c, a = s;
|
|
3201
3202
|
const E = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3202
3203
|
if (kr && E && (s != null && s.status)) {
|
|
3203
3204
|
const g = !(s != null && s.data) || !s.data.length ? [] : s.data, O = n(s.status, ...g);
|
|
@@ -3227,10 +3228,10 @@ const Nl = 5e3, zn = () => At ? !1 : (At = !0, setTimeout(() => {
|
|
|
3227
3228
|
o || (o = i[t.response.status] || t.message);
|
|
3228
3229
|
} else t.request ? (r = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = n("网络异常,请检查您的网络情况")) : (r = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = n("请求配置异常"));
|
|
3229
3230
|
e != null && e.customErrorMessage && (o = e == null ? void 0 : e.customErrorMessage(o, t));
|
|
3230
|
-
const f = Date.now(), d = o === qr, v = f - jr <
|
|
3231
|
+
const f = Date.now(), d = o === qr, v = f - jr < Nl;
|
|
3231
3232
|
return !(e != null && e.ignoreErrorMessage) && o && (!d || !v) && ((b = (h = window.DasMessage) == null ? void 0 : h.error) == null || b.call(h, { message: o, showClose: !0 }), qr = o, jr = f), { ...a, code: r, msg: o, error: t };
|
|
3232
3233
|
};
|
|
3233
|
-
function
|
|
3234
|
+
function Ul(t, e) {
|
|
3234
3235
|
const n = P.create();
|
|
3235
3236
|
return Jn(n, async (r) => {
|
|
3236
3237
|
const { currentLang: o } = zr(), a = Wr();
|
|
@@ -3245,13 +3246,13 @@ function Bl(t, e) {
|
|
|
3245
3246
|
else {
|
|
3246
3247
|
f || (f = no());
|
|
3247
3248
|
let d = JSON.parse(window.localStorage.getItem("tokenInfo") || "{}");
|
|
3248
|
-
f ? f = await
|
|
3249
|
-
|
|
3249
|
+
f ? f = await ao(d, (y) => {
|
|
3250
|
+
oo(y);
|
|
3250
3251
|
}) : zn() && Wn();
|
|
3251
3252
|
}
|
|
3252
3253
|
f && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${f}`);
|
|
3253
3254
|
}
|
|
3254
|
-
r.baseURL || (r.baseURL = a.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (f) =>
|
|
3255
|
+
r.baseURL || (r.baseURL = a.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (f) => Cl.stringify(f, { indices: !1 }) }), r.onSuccess || (r.onSuccess = $l), r.onError || (r.onError = Bl), (r.csrf ?? !1) && (r.headers["csrf-token"] = Mr.get("csrf-token"));
|
|
3255
3256
|
const u = r.params || {};
|
|
3256
3257
|
if (u.project === void 0) {
|
|
3257
3258
|
let f = 0;
|
|
@@ -3267,7 +3268,7 @@ function Bl(t, e) {
|
|
|
3267
3268
|
return l && (r.headers["Accept-Language"] = l), l && Mr.set("locale", l), r;
|
|
3268
3269
|
});
|
|
3269
3270
|
}
|
|
3270
|
-
const
|
|
3271
|
+
const Ll = "v1", Ql = Ul(`/api/license/admin/${Ll}`);
|
|
3271
3272
|
export {
|
|
3272
|
-
|
|
3273
|
+
Ql as authentication
|
|
3273
3274
|
};
|