@das-fed/upf-utils 6.4.0-dev.227 → 6.4.0-dev.229
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 +1082 -1077
- package/api-services/index.js +846 -842
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +1418 -1403
- package/api-services/modules/app-manage/index.js +1198 -1180
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +161 -158
- package/api-services/modules/authentication/index.js +138 -138
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +1180 -1165
- package/api-services/modules/bems/index.js +976 -958
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +702 -699
- package/api-services/modules/contract/index.js +619 -619
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +1389 -1374
- package/api-services/modules/duty-manage/index.js +1180 -1162
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +1174 -1159
- package/api-services/modules/enterpriseright/index.js +971 -953
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1337 -1346
- package/api-services/modules/file/es5.js +1222 -1231
- package/api-services/modules/file/index.js +987 -1005
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +1384 -1391
- package/api-services/modules/gateway-edge/index.js +1165 -1179
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1046 -1064
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +1206 -1191
- package/api-services/modules/iot/index.js +1006 -988
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +1148 -1133
- package/api-services/modules/justauth/index.js +954 -936
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +1157 -1163
- package/api-services/modules/knowledge/index.js +955 -969
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +1384 -1393
- package/api-services/modules/link/index.js +1165 -1183
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +1157 -1163
- package/api-services/modules/permission/index.js +955 -969
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +171 -168
- package/api-services/modules/platformManage/index.js +150 -150
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +235 -232
- package/api-services/modules/portal/index.js +209 -209
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +919 -913
- package/api-services/modules/space-manage/index.js +728 -724
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +1117 -1126
- package/api-services/modules/super-admin/index.js +916 -934
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +165 -162
- package/api-services/modules/supplier/index.js +141 -141
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +1134 -1143
- package/api-services/modules/supplychain-manage/index.js +932 -950
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +1145 -1133
- package/api-services/modules/systemConfiguration/index.js +948 -934
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +1174 -1159
- package/api-services/modules/tool/index.js +971 -953
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +1390 -1397
- package/api-services/src/create-service/index.js +1164 -1178
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +1635 -1596
- package/common-info/getPermissionMethod/es5.js +1160 -1148
- package/common-info/getPermissionMethod/index.js +956 -942
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.d.ts +9 -2
- package/common-info/index.js +1417 -1397
- package/common-info/index.js.gz +0 -0
- package/create-api-service/es5.js +165 -161
- package/create-api-service/index.d.ts +6 -6
- package/create-api-service/index.js +151 -150
- package/create-api-service/index.js.gz +0 -0
- package/directive/auth/es5.js +49 -56
- package/directive/auth/index.js +33 -41
- package/directive/auth/index.js.gz +0 -0
- package/esm-map.json +4 -1
- package/hooks/use-get-auth/es5.js +57 -191
- package/hooks/use-get-auth/index.d.ts +2 -7
- package/hooks/use-get-auth/index.js +16 -50
- package/package.json +3 -3
- package/hooks/use-get-auth/apis.d.ts +0 -4
- package/hooks/use-get-auth/index.js.gz +0 -0
|
@@ -294,8 +294,8 @@ var Ho = function Ho(t) {
|
|
|
294
294
|
};
|
|
295
295
|
return _r2(t, 0);
|
|
296
296
|
},
|
|
297
|
-
|
|
298
|
-
|
|
297
|
+
zo = q("AsyncFunction"),
|
|
298
|
+
Wo = function Wo(t) {
|
|
299
299
|
return t && (xe(t) || I(t)) && I(t.then) && I(t["catch"]);
|
|
300
300
|
},
|
|
301
301
|
on = function (t, e) {
|
|
@@ -369,8 +369,8 @@ var Ho = function Ho(t) {
|
|
|
369
369
|
isContextDefined: rn,
|
|
370
370
|
isSpecCompliantForm: jo,
|
|
371
371
|
toJSONObject: Ho,
|
|
372
|
-
isAsyncFn:
|
|
373
|
-
isThenable:
|
|
372
|
+
isAsyncFn: zo,
|
|
373
|
+
isThenable: Wo,
|
|
374
374
|
setImmediate: on,
|
|
375
375
|
asap: Go,
|
|
376
376
|
isIterable: Jo
|
|
@@ -486,8 +486,8 @@ function Ye(t, e, r) {
|
|
|
486
486
|
function v(d, m) {
|
|
487
487
|
if (!f.isUndefined(d)) {
|
|
488
488
|
if (p.indexOf(d) !== -1) throw Error("Circular reference detected in " + m.join("."));
|
|
489
|
-
p.push(d), f.forEach(d, function (S,
|
|
490
|
-
(!(f.isUndefined(S) || S === null) && o.call(e, S, f.isString(
|
|
489
|
+
p.push(d), f.forEach(d, function (S, O) {
|
|
490
|
+
(!(f.isUndefined(S) || S === null) && o.call(e, S, f.isString(O) ? O.trim() : O, m, y)) === true && v(S, m ? m.concat(O) : [O]);
|
|
491
491
|
}), p.pop();
|
|
492
492
|
}
|
|
493
493
|
}
|
|
@@ -1055,7 +1055,7 @@ function vi(t, e) {
|
|
|
1055
1055
|
return o && a(o);
|
|
1056
1056
|
}];
|
|
1057
1057
|
}
|
|
1058
|
-
var
|
|
1058
|
+
var We = function We(t, e) {
|
|
1059
1059
|
var r = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 3;
|
|
1060
1060
|
var n = 0;
|
|
1061
1061
|
var o = gi(50, 250);
|
|
@@ -1237,7 +1237,7 @@ var mn = function mn(t) {
|
|
|
1237
1237
|
Oi = (typeof XMLHttpRequest === "undefined" ? "undefined" : _typeof(XMLHttpRequest)) < "u",
|
|
1238
1238
|
Ai = Oi && function (t) {
|
|
1239
1239
|
return new Promise(function (r, n) {
|
|
1240
|
-
var
|
|
1240
|
+
var _We, _We2, _We3, _We4;
|
|
1241
1241
|
var o = mn(t);
|
|
1242
1242
|
var i = o.data;
|
|
1243
1243
|
var a = D.from(o.headers).normalize();
|
|
@@ -1257,7 +1257,7 @@ var mn = function mn(t) {
|
|
|
1257
1257
|
function S() {
|
|
1258
1258
|
if (!h) return;
|
|
1259
1259
|
var g = D.from("getAllResponseHeaders" in h && h.getAllResponseHeaders()),
|
|
1260
|
-
|
|
1260
|
+
P = {
|
|
1261
1261
|
data: !s || s === "text" || s === "json" ? h.responseText : h.response,
|
|
1262
1262
|
status: h.status,
|
|
1263
1263
|
statusText: h.statusText,
|
|
@@ -1269,28 +1269,28 @@ var mn = function mn(t) {
|
|
|
1269
1269
|
r(T), m();
|
|
1270
1270
|
}, function (T) {
|
|
1271
1271
|
n(T), m();
|
|
1272
|
-
},
|
|
1272
|
+
}, P), h = null;
|
|
1273
1273
|
}
|
|
1274
1274
|
"onloadend" in h ? h.onloadend = S : h.onreadystatechange = function () {
|
|
1275
1275
|
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(S);
|
|
1276
1276
|
}, h.onabort = function () {
|
|
1277
1277
|
h && (n(new w("Request aborted", w.ECONNABORTED, t, h)), h = null);
|
|
1278
1278
|
}, h.onerror = function (E) {
|
|
1279
|
-
var
|
|
1280
|
-
U = new w(
|
|
1279
|
+
var P = E && E.message ? E.message : "Network Error",
|
|
1280
|
+
U = new w(P, w.ERR_NETWORK, t, h);
|
|
1281
1281
|
U.event = E || null, n(U), h = null;
|
|
1282
1282
|
}, h.ontimeout = function () {
|
|
1283
1283
|
var E = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1284
|
-
var
|
|
1285
|
-
o.timeoutErrorMessage && (E = o.timeoutErrorMessage), n(new w(E,
|
|
1286
|
-
}, i === undefined && a.setContentType(null), "setRequestHeader" in h && f.forEach(a.toJSON(), function (E,
|
|
1287
|
-
h.setRequestHeader(
|
|
1288
|
-
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), u && (
|
|
1284
|
+
var P = o.transitional || fn;
|
|
1285
|
+
o.timeoutErrorMessage && (E = o.timeoutErrorMessage), n(new w(E, P.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED, t, h)), h = null;
|
|
1286
|
+
}, i === undefined && a.setContentType(null), "setRequestHeader" in h && f.forEach(a.toJSON(), function (E, P) {
|
|
1287
|
+
h.setRequestHeader(P, E);
|
|
1288
|
+
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), u && (_We = We(u, true), _We2 = _slicedToArray(_We, 2), y = _We2[0], d = _We2[1], h.addEventListener("progress", y)), c && h.upload && (_We3 = We(c), _We4 = _slicedToArray(_We3, 2), p = _We4[0], v = _We4[1], h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (l = function l(g) {
|
|
1289
1289
|
h && (n(!g || g.type ? new me(null, t, h) : g), h.abort(), h = null);
|
|
1290
1290
|
}, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
|
|
1291
|
-
var
|
|
1292
|
-
if (
|
|
1293
|
-
n(new w("Unsupported protocol " +
|
|
1291
|
+
var O = mi(o.url);
|
|
1292
|
+
if (O && $.protocols.indexOf(O) === -1) {
|
|
1293
|
+
n(new w("Unsupported protocol " + O + ":", w.ERR_BAD_REQUEST, t));
|
|
1294
1294
|
return;
|
|
1295
1295
|
}
|
|
1296
1296
|
h.send(i || null);
|
|
@@ -1677,13 +1677,13 @@ var mn = function mn(t) {
|
|
|
1677
1677
|
}();
|
|
1678
1678
|
return /*#__PURE__*/function () {
|
|
1679
1679
|
var _ref15 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(d) {
|
|
1680
|
-
var _mn, m, h, S,
|
|
1680
|
+
var _mn, m, h, S, O, g, E, P, U, T, V, _mn$withCredentials, L, M, Z, k, C, F, B, K, se, _ar, _ar2, it, Ie, N, ae, j, ve, _K, _se, _ref16, _ref17, _it, _Ie, we, _t8, _t9, _t0;
|
|
1681
1681
|
return _regenerator().w(function (_context8) {
|
|
1682
1682
|
while (1) switch (_context8.p = _context8.n) {
|
|
1683
1683
|
case 0:
|
|
1684
|
-
_mn = mn(d), m = _mn.url, h = _mn.method, S = _mn.data,
|
|
1684
|
+
_mn = mn(d), m = _mn.url, h = _mn.method, S = _mn.data, O = _mn.signal, g = _mn.cancelToken, E = _mn.timeout, P = _mn.onDownloadProgress, U = _mn.onUploadProgress, T = _mn.responseType, V = _mn.headers, _mn$withCredentials = _mn.withCredentials, L = _mn$withCredentials === void 0 ? "same-origin" : _mn$withCredentials, M = _mn.fetchOptions, Z = e || fetch;
|
|
1685
1685
|
T = T ? (T + "").toLowerCase() : "text";
|
|
1686
|
-
k = Ri([
|
|
1686
|
+
k = Ri([O, g && g.toAbortSignal()], E), C = null;
|
|
1687
1687
|
F = k && k.unsubscribe && function () {
|
|
1688
1688
|
k.unsubscribe();
|
|
1689
1689
|
};
|
|
@@ -1709,7 +1709,7 @@ var mn = function mn(t) {
|
|
|
1709
1709
|
duplex: "half"
|
|
1710
1710
|
});
|
|
1711
1711
|
if (f.isFormData(S) && (se = K.headers.get("content-type")) && V.setContentType(se), K.body) {
|
|
1712
|
-
_ar = ar(B,
|
|
1712
|
+
_ar = ar(B, We(sr(U))), _ar2 = _slicedToArray(_ar, 2), it = _ar2[0], Ie = _ar2[1];
|
|
1713
1713
|
S = cr(K.body, ur, it, Ie);
|
|
1714
1714
|
}
|
|
1715
1715
|
case 4:
|
|
@@ -1728,12 +1728,12 @@ var mn = function mn(t) {
|
|
|
1728
1728
|
case 5:
|
|
1729
1729
|
j = _context8.v;
|
|
1730
1730
|
ve = l && (T === "stream" || T === "response");
|
|
1731
|
-
if (l && (
|
|
1731
|
+
if (l && (P || ve && F)) {
|
|
1732
1732
|
_K = {};
|
|
1733
1733
|
["status", "statusText", "headers"].forEach(function (er) {
|
|
1734
1734
|
_K[er] = j[er];
|
|
1735
1735
|
});
|
|
1736
|
-
_se = f.toFiniteNumber(j.headers.get("content-length")), _ref16 =
|
|
1736
|
+
_se = f.toFiniteNumber(j.headers.get("content-length")), _ref16 = P && ar(_se, We(sr(P), !0)) || [], _ref17 = _slicedToArray(_ref16, 2), _it = _ref17[0], _Ie = _ref17[1];
|
|
1737
1737
|
j = new n(cr(j.body, ur, _it, function () {
|
|
1738
1738
|
_Ie && _Ie(), F && F();
|
|
1739
1739
|
}), _K);
|
|
@@ -2050,9 +2050,9 @@ f.forEach(["post", "put", "patch"], function (e) {
|
|
|
2050
2050
|
}
|
|
2051
2051
|
te.prototype[e] = r(), te.prototype[e + "Form"] = r(true);
|
|
2052
2052
|
});
|
|
2053
|
-
var
|
|
2054
|
-
function
|
|
2055
|
-
_classCallCheck(this,
|
|
2053
|
+
var zt = /*#__PURE__*/function () {
|
|
2054
|
+
function zt(e) {
|
|
2055
|
+
_classCallCheck(this, zt);
|
|
2056
2056
|
if (typeof e != "function") throw new TypeError("executor must be a function.");
|
|
2057
2057
|
var r;
|
|
2058
2058
|
this.promise = new Promise(function (i) {
|
|
@@ -2079,7 +2079,7 @@ var Wt = /*#__PURE__*/function () {
|
|
|
2079
2079
|
/**
|
|
2080
2080
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
2081
2081
|
*/
|
|
2082
|
-
return _createClass(
|
|
2082
|
+
return _createClass(zt, [{
|
|
2083
2083
|
key: "throwIfRequested",
|
|
2084
2084
|
value: function throwIfRequested() {
|
|
2085
2085
|
if (this.reason) throw this.reason;
|
|
@@ -2127,7 +2127,7 @@ var Wt = /*#__PURE__*/function () {
|
|
|
2127
2127
|
value: function source() {
|
|
2128
2128
|
var e;
|
|
2129
2129
|
return {
|
|
2130
|
-
token: new
|
|
2130
|
+
token: new zt(function (o) {
|
|
2131
2131
|
e = o;
|
|
2132
2132
|
}),
|
|
2133
2133
|
cancel: e
|
|
@@ -2231,28 +2231,28 @@ function bn(t) {
|
|
|
2231
2231
|
return bn(ne(t, o));
|
|
2232
2232
|
}, r;
|
|
2233
2233
|
}
|
|
2234
|
-
var
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2234
|
+
var R = bn(Ce);
|
|
2235
|
+
R.Axios = te;
|
|
2236
|
+
R.CanceledError = me;
|
|
2237
|
+
R.CancelToken = zt;
|
|
2238
|
+
R.isCancel = dn;
|
|
2239
|
+
R.VERSION = wn;
|
|
2240
|
+
R.toFormData = Ye;
|
|
2241
|
+
R.AxiosError = w;
|
|
2242
|
+
R.Cancel = R.CanceledError;
|
|
2243
|
+
R.all = function (e) {
|
|
2244
2244
|
return Promise.all(e);
|
|
2245
2245
|
};
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2246
|
+
R.spread = Di;
|
|
2247
|
+
R.isAxiosError = Ui;
|
|
2248
|
+
R.mergeConfig = ne;
|
|
2249
|
+
R.AxiosHeaders = D;
|
|
2250
|
+
R.formToJSON = function (t) {
|
|
2251
2251
|
return pn(f.isHTMLForm(t) ? new FormData(t) : t);
|
|
2252
2252
|
};
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2253
|
+
R.getAdapter = vn.getAdapter;
|
|
2254
|
+
R.HttpStatusCode = Ft;
|
|
2255
|
+
R["default"] = R;
|
|
2256
2256
|
var gr = (typeof globalThis === "undefined" ? "undefined" : _typeof(globalThis)) < "u" ? globalThis : (typeof window === "undefined" ? "undefined" : _typeof(window)) < "u" ? window : (typeof global === "undefined" ? "undefined" : _typeof(global)) < "u" ? global : (typeof self === "undefined" ? "undefined" : _typeof(self)) < "u" ? self : {};
|
|
2257
2257
|
function Li(t) {
|
|
2258
2258
|
return t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t["default"] : t;
|
|
@@ -2287,10 +2287,10 @@ var Mi = {},
|
|
|
2287
2287
|
value: "Module"
|
|
2288
2288
|
})),
|
|
2289
2289
|
qi = /* @__PURE__ */Bi(ki);
|
|
2290
|
-
var
|
|
2291
|
-
ct = Object.getOwnPropertyDescriptor &&
|
|
2292
|
-
Ge =
|
|
2293
|
-
vr =
|
|
2290
|
+
var Wt = typeof Map == "function" && Map.prototype,
|
|
2291
|
+
ct = Object.getOwnPropertyDescriptor && Wt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null,
|
|
2292
|
+
Ge = Wt && ct && typeof ct.get == "function" ? ct.get : null,
|
|
2293
|
+
vr = Wt && Map.prototype.forEach,
|
|
2294
2294
|
Gt = typeof Set == "function" && Set.prototype,
|
|
2295
2295
|
ut = Object.getOwnPropertyDescriptor && Gt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null,
|
|
2296
2296
|
Je = Gt && ut && typeof ut.get == "function" ? ut.get : null,
|
|
@@ -2299,9 +2299,9 @@ var zt = typeof Map == "function" && Map.prototype,
|
|
|
2299
2299
|
Ee = ji ? WeakMap.prototype.has : null,
|
|
2300
2300
|
Hi = typeof WeakSet == "function" && WeakSet.prototype,
|
|
2301
2301
|
Oe = Hi ? WeakSet.prototype.has : null,
|
|
2302
|
-
|
|
2303
|
-
br =
|
|
2304
|
-
|
|
2302
|
+
zi = typeof WeakRef == "function" && WeakRef.prototype,
|
|
2303
|
+
br = zi ? WeakRef.prototype.deref : null,
|
|
2304
|
+
Wi = Boolean.prototype.valueOf,
|
|
2305
2305
|
Gi = Object.prototype.toString,
|
|
2306
2306
|
Ji = Function.prototype.toString,
|
|
2307
2307
|
Vi = String.prototype.match,
|
|
@@ -2394,7 +2394,7 @@ var It = qi,
|
|
|
2394
2394
|
return _typeof(e) == "object" && !de ? Se(m) : m;
|
|
2395
2395
|
}
|
|
2396
2396
|
if (pa(e)) {
|
|
2397
|
-
for (var h = "<" + Sr.call(String(e.nodeName)), S = e.attributes || [],
|
|
2397
|
+
for (var h = "<" + Sr.call(String(e.nodeName)), S = e.attributes || [], O = 0; O < S.length; O++) h += " " + S[O].name + "=" + An(Zi(S[O].value), "double", i);
|
|
2398
2398
|
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + Sr.call(String(e.nodeName)) + ">", h;
|
|
2399
2399
|
}
|
|
2400
2400
|
if (Dt(e)) {
|
|
@@ -2413,10 +2413,10 @@ var It = qi,
|
|
|
2413
2413
|
if (a !== "symbol" && typeof e.inspect == "function") return e.inspect();
|
|
2414
2414
|
}
|
|
2415
2415
|
if (sa(e)) {
|
|
2416
|
-
var
|
|
2416
|
+
var P = [];
|
|
2417
2417
|
return vr && vr.call(e, function (C, F) {
|
|
2418
|
-
|
|
2419
|
-
}), _r("Map", Ge.call(e),
|
|
2418
|
+
P.push(y(F, e, true) + " => " + y(C, e));
|
|
2419
|
+
}), _r("Map", Ge.call(e), P, p);
|
|
2420
2420
|
}
|
|
2421
2421
|
if (ua(e)) {
|
|
2422
2422
|
var U = [];
|
|
@@ -2429,7 +2429,7 @@ var It = qi,
|
|
|
2429
2429
|
if (ca(e)) return pt("WeakRef");
|
|
2430
2430
|
if (ra(e)) return Se(y(Number(e)));
|
|
2431
2431
|
if (oa(e)) return Se(y(Nt.call(e)));
|
|
2432
|
-
if (na(e)) return Se(
|
|
2432
|
+
if (na(e)) return Se(Wi.call(e));
|
|
2433
2433
|
if (ta(e)) return Se(y(String(e)));
|
|
2434
2434
|
if ((typeof window === "undefined" ? "undefined" : _typeof(window)) < "u" && e === window) return "{ [object Window] }";
|
|
2435
2435
|
if ((typeof globalThis === "undefined" ? "undefined" : _typeof(globalThis)) < "u" && e === globalThis || _typeof(gr) < "u" && e === gr) return "{ [object globalThis] }";
|
|
@@ -2777,8 +2777,8 @@ function Fn() {
|
|
|
2777
2777
|
}
|
|
2778
2778
|
var ja = "Function.prototype.bind called on incompatible ",
|
|
2779
2779
|
Ha = Object.prototype.toString,
|
|
2780
|
-
|
|
2781
|
-
|
|
2780
|
+
za = Math.max,
|
|
2781
|
+
Wa = "[object Function]",
|
|
2782
2782
|
Ir = function Ir(e, r) {
|
|
2783
2783
|
for (var n = [], o = 0; o < e.length; o += 1) n[o] = e[o];
|
|
2784
2784
|
for (var i = 0; i < r.length; i += 1) n[i + e.length] = r[i];
|
|
@@ -2794,14 +2794,14 @@ var ja = "Function.prototype.bind called on incompatible ",
|
|
|
2794
2794
|
},
|
|
2795
2795
|
Va = function Va(e) {
|
|
2796
2796
|
var r = this;
|
|
2797
|
-
if (typeof r != "function" || Ha.apply(r) !==
|
|
2797
|
+
if (typeof r != "function" || Ha.apply(r) !== Wa) throw new TypeError(ja + r);
|
|
2798
2798
|
for (var n = Ga(arguments, 1), o, i = function i() {
|
|
2799
2799
|
if (this instanceof o) {
|
|
2800
2800
|
var l = r.apply(this, Ir(n, arguments));
|
|
2801
2801
|
return Object(l) === l ? l : this;
|
|
2802
2802
|
}
|
|
2803
2803
|
return r.apply(e, Ir(n, arguments));
|
|
2804
|
-
}, a =
|
|
2804
|
+
}, a = za(0, r.length - n.length), s = [], c = 0; c < a; c++) s[c] = "$" + c;
|
|
2805
2805
|
if (o = Function("binder", "return function (" + Ja(s, ",") + "){ return binder.apply(this,arguments); }")(i), r.prototype) {
|
|
2806
2806
|
var u = function u() {};
|
|
2807
2807
|
u.prototype = r.prototype, o.prototype = new u(), u.prototype = null;
|
|
@@ -3161,7 +3161,7 @@ var xs = function t(e) {
|
|
|
3161
3161
|
qs = $e("Map.prototype.set", true),
|
|
3162
3162
|
js = $e("Map.prototype.has", true),
|
|
3163
3163
|
Hs = $e("Map.prototype.delete", true),
|
|
3164
|
-
|
|
3164
|
+
zs = $e("Map.prototype.size", true),
|
|
3165
3165
|
Mn = !!qr && /** @type {Exclude<import('.'), false>} */
|
|
3166
3166
|
function () {
|
|
3167
3167
|
var e,
|
|
@@ -3172,7 +3172,7 @@ var xs = function t(e) {
|
|
|
3172
3172
|
"delete": function _delete(n) {
|
|
3173
3173
|
if (e) {
|
|
3174
3174
|
var o = Hs(e, n);
|
|
3175
|
-
return
|
|
3175
|
+
return zs(e) === 0 && (e = undefined), o;
|
|
3176
3176
|
}
|
|
3177
3177
|
return false;
|
|
3178
3178
|
},
|
|
@@ -3188,12 +3188,12 @@ var xs = function t(e) {
|
|
|
3188
3188
|
};
|
|
3189
3189
|
return r;
|
|
3190
3190
|
},
|
|
3191
|
-
|
|
3191
|
+
Ws = Kt,
|
|
3192
3192
|
ot = Bn,
|
|
3193
3193
|
Gs = tt,
|
|
3194
3194
|
Le = Mn,
|
|
3195
3195
|
Js = ge,
|
|
3196
|
-
ce =
|
|
3196
|
+
ce = Ws("%WeakMap%", true),
|
|
3197
3197
|
Vs = ot("WeakMap.prototype.get", true),
|
|
3198
3198
|
Ks = ot("WeakMap.prototype.set", true),
|
|
3199
3199
|
Qs = ot("WeakMap.prototype.has", true),
|
|
@@ -3273,7 +3273,7 @@ var xs = function t(e) {
|
|
|
3273
3273
|
ll = Qt,
|
|
3274
3274
|
At = Object.prototype.hasOwnProperty,
|
|
3275
3275
|
Y = Array.isArray,
|
|
3276
|
-
|
|
3276
|
+
z = function () {
|
|
3277
3277
|
for (var t = [], e = 0; e < 256; ++e) t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
3278
3278
|
return t;
|
|
3279
3279
|
}(),
|
|
@@ -3340,18 +3340,18 @@ var xs = function t(e) {
|
|
|
3340
3340
|
continue;
|
|
3341
3341
|
}
|
|
3342
3342
|
if (y < 128) {
|
|
3343
|
-
l[l.length] =
|
|
3343
|
+
l[l.length] = z[y];
|
|
3344
3344
|
continue;
|
|
3345
3345
|
}
|
|
3346
3346
|
if (y < 2048) {
|
|
3347
|
-
l[l.length] =
|
|
3347
|
+
l[l.length] = z[192 | y >> 6] + z[128 | y & 63];
|
|
3348
3348
|
continue;
|
|
3349
3349
|
}
|
|
3350
3350
|
if (y < 55296 || y >= 57344) {
|
|
3351
|
-
l[l.length] =
|
|
3351
|
+
l[l.length] = z[224 | y >> 12] + z[128 | y >> 6 & 63] + z[128 | y & 63];
|
|
3352
3352
|
continue;
|
|
3353
3353
|
}
|
|
3354
|
-
p += 1, y = 65536 + ((y & 1023) << 10 | u.charCodeAt(p) & 1023), l[l.length] =
|
|
3354
|
+
p += 1, y = 65536 + ((y & 1023) << 10 | u.charCodeAt(p) & 1023), l[l.length] = z[240 | y >> 18] + z[128 | y >> 12 & 63] + z[128 | y >> 6 & 63] + z[128 | y & 63];
|
|
3355
3355
|
}
|
|
3356
3356
|
s += l.join("");
|
|
3357
3357
|
}
|
|
@@ -3402,7 +3402,7 @@ var xs = function t(e) {
|
|
|
3402
3402
|
merge: ul
|
|
3403
3403
|
},
|
|
3404
3404
|
jn = il,
|
|
3405
|
-
|
|
3405
|
+
ze = qn,
|
|
3406
3406
|
Re = Qt,
|
|
3407
3407
|
wl = Object.prototype.hasOwnProperty,
|
|
3408
3408
|
Hn = {
|
|
@@ -3417,10 +3417,10 @@ var xs = function t(e) {
|
|
|
3417
3417
|
return e;
|
|
3418
3418
|
}
|
|
3419
3419
|
},
|
|
3420
|
-
|
|
3420
|
+
W = Array.isArray,
|
|
3421
3421
|
bl = Array.prototype.push,
|
|
3422
|
-
|
|
3423
|
-
bl.apply(t,
|
|
3422
|
+
zn = function zn(t, e) {
|
|
3423
|
+
bl.apply(t, W(e) ? e : [e]);
|
|
3424
3424
|
},
|
|
3425
3425
|
Sl = Date.prototype.toISOString,
|
|
3426
3426
|
jr = Re["default"],
|
|
@@ -3435,7 +3435,7 @@ var xs = function t(e) {
|
|
|
3435
3435
|
delimiter: "&",
|
|
3436
3436
|
encode: true,
|
|
3437
3437
|
encodeDotInKeys: false,
|
|
3438
|
-
encoder:
|
|
3438
|
+
encoder: ze.encode,
|
|
3439
3439
|
encodeValuesOnly: false,
|
|
3440
3440
|
filter: undefined,
|
|
3441
3441
|
format: jr,
|
|
@@ -3452,22 +3452,22 @@ var xs = function t(e) {
|
|
|
3452
3452
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || _typeof(e) == "symbol" || typeof e == "bigint";
|
|
3453
3453
|
},
|
|
3454
3454
|
Pt = {},
|
|
3455
|
-
Ol = function t(e, r, n, o, i, a, s, c, u, l, p, y, v, d, m, h, S,
|
|
3456
|
-
for (var g = e, E =
|
|
3455
|
+
Ol = function t(e, r, n, o, i, a, s, c, u, l, p, y, v, d, m, h, S, O) {
|
|
3456
|
+
for (var g = e, E = O, P = 0, U = false; (E = E.get(Pt)) !== undefined && !U;) {
|
|
3457
3457
|
var T = E.get(e);
|
|
3458
|
-
if (
|
|
3459
|
-
if (T ===
|
|
3458
|
+
if (P += 1, _typeof(T) < "u") {
|
|
3459
|
+
if (T === P) throw new RangeError("Cyclic object value");
|
|
3460
3460
|
U = true;
|
|
3461
3461
|
}
|
|
3462
|
-
_typeof(E.get(Pt)) > "u" && (
|
|
3462
|
+
_typeof(E.get(Pt)) > "u" && (P = 0);
|
|
3463
3463
|
}
|
|
3464
|
-
if (typeof l == "function" ? g = l(r, g) : g instanceof Date ? g = v(g) : n === "comma" &&
|
|
3464
|
+
if (typeof l == "function" ? g = l(r, g) : g instanceof Date ? g = v(g) : n === "comma" && W(g) && (g = ze.maybeMap(g, function (we) {
|
|
3465
3465
|
return we instanceof Date ? v(we) : we;
|
|
3466
3466
|
})), g === null) {
|
|
3467
3467
|
if (a) return u && !h ? u(r, x.encoder, S, "key", d) : r;
|
|
3468
3468
|
g = "";
|
|
3469
3469
|
}
|
|
3470
|
-
if (El(g) ||
|
|
3470
|
+
if (El(g) || ze.isBuffer(g)) {
|
|
3471
3471
|
if (u) {
|
|
3472
3472
|
var V = h ? r : u(r, x.encoder, S, "key", d);
|
|
3473
3473
|
return [m(V) + "=" + m(u(g, x.encoder, S, "value", d))];
|
|
@@ -3477,24 +3477,24 @@ var xs = function t(e) {
|
|
|
3477
3477
|
var L = [];
|
|
3478
3478
|
if (_typeof(g) > "u") return L;
|
|
3479
3479
|
var M;
|
|
3480
|
-
if (n === "comma" &&
|
|
3480
|
+
if (n === "comma" && W(g)) h && u && (g = ze.maybeMap(g, u)), M = [{
|
|
3481
3481
|
value: g.length > 0 ? g.join(",") || null : undefined
|
|
3482
|
-
}];else if (
|
|
3482
|
+
}];else if (W(l)) M = l;else {
|
|
3483
3483
|
var Z = Object.keys(g);
|
|
3484
3484
|
M = p ? Z.sort(p) : Z;
|
|
3485
3485
|
}
|
|
3486
3486
|
var k = c ? String(r).replace(/\./g, "%2E") : String(r),
|
|
3487
|
-
C = o &&
|
|
3488
|
-
if (i &&
|
|
3487
|
+
C = o && W(g) && g.length === 1 ? k + "[]" : k;
|
|
3488
|
+
if (i && W(g) && g.length === 0) return C + "[]";
|
|
3489
3489
|
for (var F = 0; F < M.length; ++F) {
|
|
3490
3490
|
var B = M[F],
|
|
3491
3491
|
N = _typeof(B) == "object" && B && _typeof(B.value) < "u" ? B.value : g[B];
|
|
3492
3492
|
if (!(s && N === null)) {
|
|
3493
3493
|
var ae = y && c ? String(B).replace(/\./g, "%2E") : String(B),
|
|
3494
|
-
j =
|
|
3495
|
-
|
|
3494
|
+
j = W(g) ? typeof n == "function" ? n(C, ae) : C : C + (y ? "." + ae : "[" + ae + "]");
|
|
3495
|
+
O.set(e, P);
|
|
3496
3496
|
var ve = jn();
|
|
3497
|
-
ve.set(Pt,
|
|
3497
|
+
ve.set(Pt, O), zn(L, t(N, j, n, o, i, a, s, c, n === "comma" && h && W(g) ? null : u, l, p, y, v, d, m, h, S, ve));
|
|
3498
3498
|
}
|
|
3499
3499
|
}
|
|
3500
3500
|
return L;
|
|
@@ -3513,7 +3513,7 @@ var xs = function t(e) {
|
|
|
3513
3513
|
}
|
|
3514
3514
|
var o = Re.formatters[n],
|
|
3515
3515
|
i = x.filter;
|
|
3516
|
-
(typeof e.filter == "function" ||
|
|
3516
|
+
(typeof e.filter == "function" || W(e.filter)) && (i = e.filter);
|
|
3517
3517
|
var a;
|
|
3518
3518
|
if (e.arrayFormat in Hn ? a = e.arrayFormat : "indices" in e ? a = e.indices ? "indices" : "repeat" : a = x.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean") throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
3519
3519
|
var s = _typeof(e.allowDots) > "u" ? e.encodeDotInKeys === true ? true : x.allowDots : !!e.allowDots;
|
|
@@ -3544,7 +3544,7 @@ var xs = function t(e) {
|
|
|
3544
3544
|
n = Al(e),
|
|
3545
3545
|
o,
|
|
3546
3546
|
i;
|
|
3547
|
-
typeof n.filter == "function" ? (i = n.filter, r = i("", r)) :
|
|
3547
|
+
typeof n.filter == "function" ? (i = n.filter, r = i("", r)) : W(n.filter) && (i = n.filter, o = i);
|
|
3548
3548
|
var a = [];
|
|
3549
3549
|
if (_typeof(r) != "object" || r === null) return "";
|
|
3550
3550
|
var s = Hn[n.arrayFormat],
|
|
@@ -3553,7 +3553,7 @@ var xs = function t(e) {
|
|
|
3553
3553
|
for (var u = jn(), l = 0; l < o.length; ++l) {
|
|
3554
3554
|
var p = o[l],
|
|
3555
3555
|
y = r[p];
|
|
3556
|
-
n.skipNulls && y === null ||
|
|
3556
|
+
n.skipNulls && y === null || zn(a, Ol(y, p, s, c, n.allowEmptyArrays, n.strictNullHandling, n.skipNulls, n.encodeDotInKeys, n.encode ? n.encoder : null, n.filter, n.sort, n.allowDots, n.serializeDate, n.format, n.formatter, n.encodeValuesOnly, n.charset, u));
|
|
3557
3557
|
}
|
|
3558
3558
|
var v = a.join(n.delimiter),
|
|
3559
3559
|
d = n.addQueryPrefix === true ? "?" : "";
|
|
@@ -3562,7 +3562,7 @@ var xs = function t(e) {
|
|
|
3562
3562
|
oe = qn,
|
|
3563
3563
|
Lt = Object.prototype.hasOwnProperty,
|
|
3564
3564
|
Hr = Array.isArray,
|
|
3565
|
-
|
|
3565
|
+
A = {
|
|
3566
3566
|
allowDots: false,
|
|
3567
3567
|
allowEmptyArrays: false,
|
|
3568
3568
|
allowPrototypes: false,
|
|
@@ -3590,7 +3590,7 @@ var xs = function t(e) {
|
|
|
3590
3590
|
return String.fromCharCode(parseInt(r, 10));
|
|
3591
3591
|
});
|
|
3592
3592
|
},
|
|
3593
|
-
|
|
3593
|
+
Wn = function Wn(t, e, r) {
|
|
3594
3594
|
if (t && typeof t == "string" && e.comma && t.indexOf(",") > -1) return t.split(",");
|
|
3595
3595
|
if (e.throwOnLimitExceeded && r >= e.arrayLimit) throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
3596
3596
|
return t;
|
|
@@ -3616,8 +3616,8 @@ var xs = function t(e) {
|
|
|
3616
3616
|
y = p === -1 ? l.indexOf("=") : p + 1,
|
|
3617
3617
|
v,
|
|
3618
3618
|
d;
|
|
3619
|
-
y === -1 ? (v = r.decoder(l,
|
|
3620
|
-
return r.decoder(h,
|
|
3619
|
+
y === -1 ? (v = r.decoder(l, A.decoder, u, "key"), d = r.strictNullHandling ? null : "") : (v = r.decoder(l.slice(0, y), A.decoder, u, "key"), d = oe.maybeMap(Wn(l.slice(y + 1), r, Hr(n[v]) ? n[v].length : 0), function (h) {
|
|
3620
|
+
return r.decoder(h, A.decoder, u, "value");
|
|
3621
3621
|
})), d && r.interpretNumericEntities && u === "iso-8859-1" && (d = Pl(String(d))), l.indexOf("[]=") > -1 && (d = Hr(d) ? [d] : d);
|
|
3622
3622
|
var m = Lt.call(n, v);
|
|
3623
3623
|
m && r.duplicates === "combine" ? n[v] = oe.combine(n[v], d) : (!m || r.duplicates === "last") && (n[v] = d);
|
|
@@ -3630,7 +3630,7 @@ var xs = function t(e) {
|
|
|
3630
3630
|
var i = t.slice(0, -1).join("");
|
|
3631
3631
|
o = Array.isArray(e) && e[i] ? e[i].length : 0;
|
|
3632
3632
|
}
|
|
3633
|
-
for (var a = n ? e :
|
|
3633
|
+
for (var a = n ? e : Wn(e, r, o), s = t.length - 1; s >= 0; --s) {
|
|
3634
3634
|
var c,
|
|
3635
3635
|
u = t[s];
|
|
3636
3636
|
if (u === "[]" && r.parseArrays) c = r.allowEmptyArrays && (a === "" || r.strictNullHandling && a === null) ? [] : oe.combine([], a);else {
|
|
@@ -3672,38 +3672,38 @@ var xs = function t(e) {
|
|
|
3672
3672
|
}
|
|
3673
3673
|
},
|
|
3674
3674
|
Nl = function Nl(e) {
|
|
3675
|
-
if (!e) return
|
|
3675
|
+
if (!e) return A;
|
|
3676
3676
|
if (_typeof(e.allowEmptyArrays) < "u" && typeof e.allowEmptyArrays != "boolean") throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
3677
3677
|
if (_typeof(e.decodeDotInKeys) < "u" && typeof e.decodeDotInKeys != "boolean") throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
3678
3678
|
if (e.decoder !== null && _typeof(e.decoder) < "u" && typeof e.decoder != "function") throw new TypeError("Decoder has to be a function.");
|
|
3679
3679
|
if (_typeof(e.charset) < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1") throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
3680
3680
|
if (_typeof(e.throwOnLimitExceeded) < "u" && typeof e.throwOnLimitExceeded != "boolean") throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
|
|
3681
|
-
var r = _typeof(e.charset) > "u" ?
|
|
3682
|
-
n = _typeof(e.duplicates) > "u" ?
|
|
3681
|
+
var r = _typeof(e.charset) > "u" ? A.charset : e.charset,
|
|
3682
|
+
n = _typeof(e.duplicates) > "u" ? A.duplicates : e.duplicates;
|
|
3683
3683
|
if (n !== "combine" && n !== "first" && n !== "last") throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
3684
|
-
var o = _typeof(e.allowDots) > "u" ? e.decodeDotInKeys === true ? true :
|
|
3684
|
+
var o = _typeof(e.allowDots) > "u" ? e.decodeDotInKeys === true ? true : A.allowDots : !!e.allowDots;
|
|
3685
3685
|
return {
|
|
3686
3686
|
allowDots: o,
|
|
3687
|
-
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays :
|
|
3688
|
-
allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes :
|
|
3689
|
-
allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse :
|
|
3690
|
-
arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit :
|
|
3687
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : A.allowEmptyArrays,
|
|
3688
|
+
allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : A.allowPrototypes,
|
|
3689
|
+
allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : A.allowSparse,
|
|
3690
|
+
arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : A.arrayLimit,
|
|
3691
3691
|
charset: r,
|
|
3692
|
-
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel :
|
|
3693
|
-
comma: typeof e.comma == "boolean" ? e.comma :
|
|
3694
|
-
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys :
|
|
3695
|
-
decoder: typeof e.decoder == "function" ? e.decoder :
|
|
3696
|
-
delimiter: typeof e.delimiter == "string" || oe.isRegExp(e.delimiter) ? e.delimiter :
|
|
3692
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : A.charsetSentinel,
|
|
3693
|
+
comma: typeof e.comma == "boolean" ? e.comma : A.comma,
|
|
3694
|
+
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : A.decodeDotInKeys,
|
|
3695
|
+
decoder: typeof e.decoder == "function" ? e.decoder : A.decoder,
|
|
3696
|
+
delimiter: typeof e.delimiter == "string" || oe.isRegExp(e.delimiter) ? e.delimiter : A.delimiter,
|
|
3697
3697
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
3698
|
-
depth: typeof e.depth == "number" || e.depth === false ? +e.depth :
|
|
3698
|
+
depth: typeof e.depth == "number" || e.depth === false ? +e.depth : A.depth,
|
|
3699
3699
|
duplicates: n,
|
|
3700
3700
|
ignoreQueryPrefix: e.ignoreQueryPrefix === true,
|
|
3701
|
-
interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities :
|
|
3702
|
-
parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit :
|
|
3701
|
+
interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : A.interpretNumericEntities,
|
|
3702
|
+
parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : A.parameterLimit,
|
|
3703
3703
|
parseArrays: e.parseArrays !== false,
|
|
3704
|
-
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects :
|
|
3705
|
-
strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth :
|
|
3706
|
-
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling :
|
|
3704
|
+
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : A.plainObjects,
|
|
3705
|
+
strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : A.strictDepth,
|
|
3706
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : A.strictNullHandling,
|
|
3707
3707
|
throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : false
|
|
3708
3708
|
};
|
|
3709
3709
|
},
|
|
@@ -3791,14 +3791,14 @@ function Bt(t, e) {
|
|
|
3791
3791
|
}
|
|
3792
3792
|
});
|
|
3793
3793
|
}
|
|
3794
|
-
var
|
|
3794
|
+
var zr = Bt(Ml, {
|
|
3795
3795
|
path: "/"
|
|
3796
3796
|
});
|
|
3797
3797
|
Mt.extend(ro);
|
|
3798
3798
|
Mt.extend(no);
|
|
3799
3799
|
var Xt = config.getConfig(),
|
|
3800
3800
|
Gn = (_Xt$sso = Xt.sso) !== null && _Xt$sso !== void 0 ? _Xt$sso : true,
|
|
3801
|
-
|
|
3801
|
+
Wr = (_Xt$i18n = Xt.i18n) !== null && _Xt$i18n !== void 0 ? _Xt$i18n : true,
|
|
3802
3802
|
Jn = (_Xt$noRedireLogin = Xt.noRedireLogin) !== null && _Xt$noRedireLogin !== void 0 ? _Xt$noRedireLogin : false;
|
|
3803
3803
|
var Gr = "",
|
|
3804
3804
|
Jr = 0;
|
|
@@ -3857,7 +3857,12 @@ var ql = 5e3,
|
|
|
3857
3857
|
var t = "/login";
|
|
3858
3858
|
location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = false, (e = window.top) != null && e.vueRouter ? (r = window.top) == null || r.vueRouter.replace(t) : window.location.replace("/#".concat(t)));
|
|
3859
3859
|
},
|
|
3860
|
-
jl =
|
|
3860
|
+
jl = function jl() {
|
|
3861
|
+
return sso.getQuery("code") || "" || Jn ? false : Vn() ? (Gn ? sso.login(_objectSpread(_objectSpread({}, sso.getTokenParams), {}, {
|
|
3862
|
+
redirect_uri: sso.real_uri
|
|
3863
|
+
})) : Kn(), true) : false;
|
|
3864
|
+
},
|
|
3865
|
+
Hl = /*#__PURE__*/function () {
|
|
3861
3866
|
var _ref23 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(t) {
|
|
3862
3867
|
var _t$data;
|
|
3863
3868
|
var r;
|
|
@@ -3868,13 +3873,13 @@ var ql = 5e3,
|
|
|
3868
3873
|
}
|
|
3869
3874
|
}, _callee0);
|
|
3870
3875
|
}));
|
|
3871
|
-
return function
|
|
3876
|
+
return function Hl(_x11) {
|
|
3872
3877
|
return _ref23.apply(this, arguments);
|
|
3873
3878
|
};
|
|
3874
3879
|
}(),
|
|
3875
|
-
|
|
3880
|
+
zl = /*#__PURE__*/function () {
|
|
3876
3881
|
var _ref24 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(t, e) {
|
|
3877
|
-
var m, h, S,
|
|
3882
|
+
var d, m, h, S, _i18nBridge$getI18nBr, r, n, o, i, a, s, c, u, _ref25, O, g, E, _ref26, _ref27, _O, _g, _E, p, y, v, _t11, _t12, _t13;
|
|
3878
3883
|
return _regenerator().w(function (_context10) {
|
|
3879
3884
|
while (1) switch (_context10.n) {
|
|
3880
3885
|
case 0:
|
|
@@ -3885,33 +3890,31 @@ var ql = 5e3,
|
|
|
3885
3890
|
404: r("接口地址未找到"),
|
|
3886
3891
|
500: r("服务器内部错误")
|
|
3887
3892
|
};
|
|
3888
|
-
s = ((
|
|
3889
|
-
c =
|
|
3890
|
-
if (!(
|
|
3893
|
+
s = ((d = t == null ? undefined : t.response) == null ? undefined : d.data) || {};
|
|
3894
|
+
c = s == null ? undefined : s.code, u = (m = t.response) == null ? undefined : m.status;
|
|
3895
|
+
if (!(c === 401 || u === 401)) {
|
|
3891
3896
|
_context10.n = 6;
|
|
3892
3897
|
break;
|
|
3893
3898
|
}
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
g = (_ref25 = e == null ? undefined : e.i18n) !== null && _ref25 !== void 0 ? _ref25 : true;
|
|
3898
|
-
if (!(zr && g && s != null && s.status)) {
|
|
3899
|
+
jl(), n = c || u, i = s;
|
|
3900
|
+
O = (_ref25 = e == null ? undefined : e.i18n) !== null && _ref25 !== void 0 ? _ref25 : true;
|
|
3901
|
+
if (!(Wr && O && s != null && s.status)) {
|
|
3899
3902
|
_context10.n = 4;
|
|
3900
3903
|
break;
|
|
3901
3904
|
}
|
|
3902
|
-
|
|
3903
|
-
if (!(
|
|
3905
|
+
g = !(s != null && s.data) || !s.data.length ? [] : s.data, E = r.apply(void 0, [s.status].concat(_toConsumableArray(g)));
|
|
3906
|
+
if (!(E === s.status)) {
|
|
3904
3907
|
_context10.n = 2;
|
|
3905
3908
|
break;
|
|
3906
3909
|
}
|
|
3907
3910
|
_context10.n = 1;
|
|
3908
|
-
return Vr(r, s.status,
|
|
3911
|
+
return Vr(r, s.status, g);
|
|
3909
3912
|
case 1:
|
|
3910
3913
|
_t11 = _context10.v;
|
|
3911
3914
|
_context10.n = 3;
|
|
3912
3915
|
break;
|
|
3913
3916
|
case 2:
|
|
3914
|
-
_t11 =
|
|
3917
|
+
_t11 = E;
|
|
3915
3918
|
case 3:
|
|
3916
3919
|
o = _t11;
|
|
3917
3920
|
_context10.n = 5;
|
|
@@ -3932,13 +3935,13 @@ var ql = 5e3,
|
|
|
3932
3935
|
break;
|
|
3933
3936
|
}
|
|
3934
3937
|
_context10.n = 7;
|
|
3935
|
-
return new Promise(function (
|
|
3936
|
-
var
|
|
3937
|
-
|
|
3938
|
+
return new Promise(function (O) {
|
|
3939
|
+
var g = new FileReader();
|
|
3940
|
+
g.readAsText(s, "utf-8"), g.onload = function () {
|
|
3938
3941
|
try {
|
|
3939
|
-
|
|
3942
|
+
O(JSON.parse(g.result || "{}"));
|
|
3940
3943
|
} catch (_unused21) {
|
|
3941
|
-
|
|
3944
|
+
O({
|
|
3942
3945
|
code: 400,
|
|
3943
3946
|
msg: r("解析错误")
|
|
3944
3947
|
});
|
|
@@ -3953,24 +3956,24 @@ var ql = 5e3,
|
|
|
3953
3956
|
break;
|
|
3954
3957
|
}
|
|
3955
3958
|
n = s.code, i = s;
|
|
3956
|
-
|
|
3957
|
-
if (!(
|
|
3959
|
+
_O = (_ref26 = e == null ? undefined : e.i18n) !== null && _ref26 !== void 0 ? _ref26 : true;
|
|
3960
|
+
if (!(Wr && _O && s != null && s.status)) {
|
|
3958
3961
|
_context10.n = 12;
|
|
3959
3962
|
break;
|
|
3960
3963
|
}
|
|
3961
|
-
|
|
3962
|
-
if (!(
|
|
3964
|
+
_g = !(s != null && s.data) || !s.data.length ? [] : s.data, _E = r.apply(void 0, [s.status].concat(_toConsumableArray(_g)));
|
|
3965
|
+
if (!(_E === s.status)) {
|
|
3963
3966
|
_context10.n = 10;
|
|
3964
3967
|
break;
|
|
3965
3968
|
}
|
|
3966
3969
|
_context10.n = 9;
|
|
3967
|
-
return Vr(r, s.status,
|
|
3970
|
+
return Vr(r, s.status, _g);
|
|
3968
3971
|
case 9:
|
|
3969
3972
|
_t13 = _context10.v;
|
|
3970
3973
|
_context10.n = 11;
|
|
3971
3974
|
break;
|
|
3972
3975
|
case 10:
|
|
3973
|
-
_t13 =
|
|
3976
|
+
_t13 = _E;
|
|
3974
3977
|
case 11:
|
|
3975
3978
|
o = _t13;
|
|
3976
3979
|
_context10.n = 13;
|
|
@@ -3990,11 +3993,11 @@ var ql = 5e3,
|
|
|
3990
3993
|
t.request ? (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("网络异常,请检查您的网络情况")) : (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("请求配置异常"));
|
|
3991
3994
|
case 17:
|
|
3992
3995
|
e != null && e.customErrorMessage && (o = e == null ? undefined : e.customErrorMessage(o, t));
|
|
3993
|
-
|
|
3994
|
-
return _context10.a(2, (!(e != null && e.ignoreErrorMessage) && o && (!
|
|
3996
|
+
p = Date.now(), y = o === Gr, v = p - Jr < kl;
|
|
3997
|
+
return _context10.a(2, (!(e != null && e.ignoreErrorMessage) && o && (!y || !v) && ((S = (h = window.DasMessage) == null ? undefined : h.error) == null || S.call(h, {
|
|
3995
3998
|
message: o,
|
|
3996
3999
|
showClose: true
|
|
3997
|
-
}), Gr = o, Jr =
|
|
4000
|
+
}), Gr = o, Jr = p), _objectSpread(_objectSpread({}, i), {}, {
|
|
3998
4001
|
code: n,
|
|
3999
4002
|
msg: o,
|
|
4000
4003
|
error: t
|
|
@@ -4002,12 +4005,12 @@ var ql = 5e3,
|
|
|
4002
4005
|
}
|
|
4003
4006
|
}, _callee1);
|
|
4004
4007
|
}));
|
|
4005
|
-
return function
|
|
4008
|
+
return function zl(_x12, _x13) {
|
|
4006
4009
|
return _ref24.apply(this, arguments);
|
|
4007
4010
|
};
|
|
4008
4011
|
}();
|
|
4009
4012
|
function Zt(t, e) {
|
|
4010
|
-
var r =
|
|
4013
|
+
var r = R.create();
|
|
4011
4014
|
return curringHttp.curringHttp(r, /*#__PURE__*/function () {
|
|
4012
4015
|
var _ref28 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10(n) {
|
|
4013
4016
|
var _n$csrf, _ref29;
|
|
@@ -4067,7 +4070,7 @@ function Zt(t, e) {
|
|
|
4067
4070
|
indices: false
|
|
4068
4071
|
});
|
|
4069
4072
|
}
|
|
4070
|
-
}), n.onSuccess || (n.onSuccess =
|
|
4073
|
+
}), n.onSuccess || (n.onSuccess = Hl), n.onError || (n.onError = zl), ((_n$csrf = n.csrf) !== null && _n$csrf !== void 0 ? _n$csrf : false) && (n.headers["csrf-token"] = zr.get("csrf-token"));
|
|
4071
4074
|
c = n.params || {};
|
|
4072
4075
|
if (c.project === undefined) {
|
|
4073
4076
|
_p = 0;
|
|
@@ -4080,7 +4083,7 @@ function Zt(t, e) {
|
|
|
4080
4083
|
}
|
|
4081
4084
|
n.params = c, n.headers.Timezone = Mt.tz.guess(), n.headers["X-Origin"] = location.origin;
|
|
4082
4085
|
l = (_ref29 = o == null ? undefined : o.value) !== null && _ref29 !== void 0 ? _ref29 : "";
|
|
4083
|
-
return _context11.a(2, (l && (n.headers["Accept-Language"] = l), l &&
|
|
4086
|
+
return _context11.a(2, (l && (n.headers["Accept-Language"] = l), l && zr.set("locale", l), n));
|
|
4084
4087
|
}
|
|
4085
4088
|
}, _callee10);
|
|
4086
4089
|
}));
|
|
@@ -4090,9 +4093,9 @@ function Zt(t, e) {
|
|
|
4090
4093
|
}());
|
|
4091
4094
|
}
|
|
4092
4095
|
var Yt = "v1",
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
exports.supplier =
|
|
4097
|
-
exports.supplierClassification =
|
|
4098
|
-
exports.supplierManage =
|
|
4096
|
+
tc = Zt("/api/supply/supplier/".concat(Yt)),
|
|
4097
|
+
rc = Zt("/api/supplier/".concat(Yt)),
|
|
4098
|
+
nc = Zt("/api/supplier/".concat(Yt, "/classification"));
|
|
4099
|
+
exports.supplier = tc;
|
|
4100
|
+
exports.supplierClassification = nc;
|
|
4101
|
+
exports.supplierManage = rc;
|