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