oauth0-js-lib 2.2.9 → 2.2.11
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/dist/config.d.ts +1 -0
- package/dist/index.es.js +441 -439
- package/dist/index.umd.js +12 -12
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
const
|
|
5
|
-
baseUrl:
|
|
1
|
+
var xn = Object.defineProperty;
|
|
2
|
+
var Fn = (e, t, r) => t in e ? xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var k = (e, t, r) => Fn(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
const Mn = {
|
|
5
|
+
baseUrl: jn(),
|
|
6
6
|
createEndpoint: "/api/oauth0/create",
|
|
7
7
|
authEventEndpoint: "/api/oauth0/auth-events",
|
|
8
|
-
authConfirmEndpoint: "/api/oauth0/auth-confirm"
|
|
9
|
-
|
|
8
|
+
authConfirmEndpoint: "/api/oauth0/auth-confirm",
|
|
9
|
+
linkType: "WEB_APP"
|
|
10
|
+
}, Dn = typeof __OAUTH_LIB_CONFIG__ < "u" ? __OAUTH_LIB_CONFIG__ : void 0, qn = typeof globalThis < "u" && globalThis.OAUTH_LIB_CONFIG ? globalThis.OAUTH_LIB_CONFIG : void 0;
|
|
10
11
|
let nt = {
|
|
11
|
-
...Fn,
|
|
12
12
|
...Mn,
|
|
13
|
-
...
|
|
13
|
+
...Dn,
|
|
14
|
+
...qn
|
|
14
15
|
};
|
|
15
|
-
function
|
|
16
|
+
function Jo(e) {
|
|
16
17
|
nt = { ...nt, ...e };
|
|
17
18
|
}
|
|
18
|
-
function
|
|
19
|
+
function on() {
|
|
19
20
|
return nt;
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
+
function jn() {
|
|
22
23
|
var e, t;
|
|
23
24
|
return typeof window < "u" && ((e = window.location) != null && e.origin) ? window.location.origin : typeof globalThis < "u" && ((t = globalThis.location) != null && t.origin) ? globalThis.location.origin : "";
|
|
24
25
|
}
|
|
25
|
-
const
|
|
26
|
+
const Hn = `.oauth-modal-overlay {\r
|
|
26
27
|
position: fixed;\r
|
|
27
28
|
top: 0;\r
|
|
28
29
|
left: 0;\r
|
|
@@ -192,7 +193,7 @@ const jn = `.oauth-modal-overlay {\r
|
|
|
192
193
|
margin-bottom: 10px;\r
|
|
193
194
|
}`;
|
|
194
195
|
var oe = {}, Le, ht;
|
|
195
|
-
function
|
|
196
|
+
function zn() {
|
|
196
197
|
return ht || (ht = 1, Le = function() {
|
|
197
198
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
198
199
|
}), Le;
|
|
@@ -305,7 +306,7 @@ function at() {
|
|
|
305
306
|
})(_e)), _e;
|
|
306
307
|
}
|
|
307
308
|
var ve, mt;
|
|
308
|
-
function
|
|
309
|
+
function $n() {
|
|
309
310
|
if (mt) return ve;
|
|
310
311
|
mt = 1;
|
|
311
312
|
function e() {
|
|
@@ -349,8 +350,8 @@ function Vn() {
|
|
|
349
350
|
return this.reservedBit[t * this.size + r];
|
|
350
351
|
}, Ue = e, Ue;
|
|
351
352
|
}
|
|
352
|
-
var
|
|
353
|
-
function
|
|
353
|
+
var ke = {}, wt;
|
|
354
|
+
function Jn() {
|
|
354
355
|
return wt || (wt = 1, (function(e) {
|
|
355
356
|
const t = Z().getSymbolSize;
|
|
356
357
|
e.getRowColCoords = function(n) {
|
|
@@ -368,14 +369,14 @@ function $n() {
|
|
|
368
369
|
a === s - 1 && u === 0 || o.push([i[a], i[u]]);
|
|
369
370
|
return o;
|
|
370
371
|
};
|
|
371
|
-
})(
|
|
372
|
+
})(ke)), ke;
|
|
372
373
|
}
|
|
373
|
-
var
|
|
374
|
-
function
|
|
375
|
-
if (bt) return
|
|
374
|
+
var xe = {}, bt;
|
|
375
|
+
function Kn() {
|
|
376
|
+
if (bt) return xe;
|
|
376
377
|
bt = 1;
|
|
377
378
|
const e = Z().getSymbolSize, t = 7;
|
|
378
|
-
return
|
|
379
|
+
return xe.getPositions = function(n) {
|
|
379
380
|
const o = e(n);
|
|
380
381
|
return [
|
|
381
382
|
// top-left
|
|
@@ -385,10 +386,10 @@ function Jn() {
|
|
|
385
386
|
// bottom-left
|
|
386
387
|
[0, o - t]
|
|
387
388
|
];
|
|
388
|
-
},
|
|
389
|
+
}, xe;
|
|
389
390
|
}
|
|
390
|
-
var
|
|
391
|
-
function
|
|
391
|
+
var Fe = {}, Et;
|
|
392
|
+
function Wn() {
|
|
392
393
|
return Et || (Et = 1, (function(e) {
|
|
393
394
|
e.Patterns = {
|
|
394
395
|
PATTERN000: 0,
|
|
@@ -483,10 +484,10 @@ function Kn() {
|
|
|
483
484
|
}
|
|
484
485
|
return a;
|
|
485
486
|
};
|
|
486
|
-
})(
|
|
487
|
+
})(Fe)), Fe;
|
|
487
488
|
}
|
|
488
489
|
var we = {}, Ct;
|
|
489
|
-
function
|
|
490
|
+
function sn() {
|
|
490
491
|
if (Ct) return we;
|
|
491
492
|
Ct = 1;
|
|
492
493
|
const e = at(), t = [
|
|
@@ -842,8 +843,8 @@ function rn() {
|
|
|
842
843
|
}
|
|
843
844
|
}, we;
|
|
844
845
|
}
|
|
845
|
-
var
|
|
846
|
-
function
|
|
846
|
+
var Me = {}, le = {}, St;
|
|
847
|
+
function Gn() {
|
|
847
848
|
if (St) return le;
|
|
848
849
|
St = 1;
|
|
849
850
|
const e = new Uint8Array(512), t = new Uint8Array(256);
|
|
@@ -863,9 +864,9 @@ function Wn() {
|
|
|
863
864
|
}, le;
|
|
864
865
|
}
|
|
865
866
|
var Rt;
|
|
866
|
-
function
|
|
867
|
+
function Qn() {
|
|
867
868
|
return Rt || (Rt = 1, (function(e) {
|
|
868
|
-
const t =
|
|
869
|
+
const t = Gn();
|
|
869
870
|
e.mul = function(n, o) {
|
|
870
871
|
const i = new Uint8Array(n.length + o.length - 1);
|
|
871
872
|
for (let s = 0; s < n.length; s++)
|
|
@@ -889,13 +890,13 @@ function Gn() {
|
|
|
889
890
|
o = e.mul(o, new Uint8Array([1, t.exp(i)]));
|
|
890
891
|
return o;
|
|
891
892
|
};
|
|
892
|
-
})(
|
|
893
|
+
})(Me)), Me;
|
|
893
894
|
}
|
|
894
895
|
var De, Tt;
|
|
895
|
-
function
|
|
896
|
+
function Yn() {
|
|
896
897
|
if (Tt) return De;
|
|
897
898
|
Tt = 1;
|
|
898
|
-
const e =
|
|
899
|
+
const e = Qn();
|
|
899
900
|
function t(r) {
|
|
900
901
|
this.genPoly = void 0, this.degree = r, this.degree && this.initialize(this.degree);
|
|
901
902
|
}
|
|
@@ -915,13 +916,13 @@ function Qn() {
|
|
|
915
916
|
}, De = t, De;
|
|
916
917
|
}
|
|
917
918
|
var qe = {}, je = {}, He = {}, At;
|
|
918
|
-
function
|
|
919
|
+
function an() {
|
|
919
920
|
return At || (At = 1, He.isValid = function(t) {
|
|
920
921
|
return !isNaN(t) && t >= 1 && t <= 40;
|
|
921
922
|
}), He;
|
|
922
923
|
}
|
|
923
924
|
var z = {}, Bt;
|
|
924
|
-
function
|
|
925
|
+
function un() {
|
|
925
926
|
if (Bt) return z;
|
|
926
927
|
Bt = 1;
|
|
927
928
|
const e = "[0-9]+", t = "[A-Z $%*+\\-./:]+";
|
|
@@ -939,10 +940,10 @@ function sn() {
|
|
|
939
940
|
return s.test(u);
|
|
940
941
|
}, z;
|
|
941
942
|
}
|
|
942
|
-
var
|
|
943
|
+
var Pt;
|
|
943
944
|
function ee() {
|
|
944
|
-
return
|
|
945
|
-
const t =
|
|
945
|
+
return Pt || (Pt = 1, (function(e) {
|
|
946
|
+
const t = an(), r = un();
|
|
946
947
|
e.NUMERIC = {
|
|
947
948
|
id: "Numeric",
|
|
948
949
|
bit: 1,
|
|
@@ -1001,10 +1002,10 @@ function ee() {
|
|
|
1001
1002
|
};
|
|
1002
1003
|
})(je)), je;
|
|
1003
1004
|
}
|
|
1004
|
-
var
|
|
1005
|
-
function
|
|
1006
|
-
return
|
|
1007
|
-
const t = Z(), r =
|
|
1005
|
+
var Nt;
|
|
1006
|
+
function Xn() {
|
|
1007
|
+
return Nt || (Nt = 1, (function(e) {
|
|
1008
|
+
const t = Z(), r = sn(), n = at(), o = ee(), i = an(), s = 7973, a = t.getBCHDigit(s);
|
|
1008
1009
|
function u(m, y, d) {
|
|
1009
1010
|
for (let p = 1; p <= 40; p++)
|
|
1010
1011
|
if (y <= e.getCapacity(p, d, m))
|
|
@@ -1031,9 +1032,9 @@ function Yn() {
|
|
|
1031
1032
|
if (!i.isValid(y))
|
|
1032
1033
|
throw new Error("Invalid QR Code version");
|
|
1033
1034
|
typeof p > "u" && (p = o.BYTE);
|
|
1034
|
-
const g = t.getSymbolTotalCodewords(y), w = r.getTotalCodewordsCount(y, d),
|
|
1035
|
-
if (p === o.MIXED) return
|
|
1036
|
-
const E =
|
|
1035
|
+
const g = t.getSymbolTotalCodewords(y), w = r.getTotalCodewordsCount(y, d), N = (g - w) * 8;
|
|
1036
|
+
if (p === o.MIXED) return N;
|
|
1037
|
+
const E = N - l(p, y);
|
|
1037
1038
|
switch (p) {
|
|
1038
1039
|
case o.NUMERIC:
|
|
1039
1040
|
return Math.floor(E / 10 * 3);
|
|
@@ -1068,7 +1069,7 @@ function Yn() {
|
|
|
1068
1069
|
})(qe)), qe;
|
|
1069
1070
|
}
|
|
1070
1071
|
var ze = {}, Ot;
|
|
1071
|
-
function
|
|
1072
|
+
function Zn() {
|
|
1072
1073
|
if (Ot) return ze;
|
|
1073
1074
|
Ot = 1;
|
|
1074
1075
|
const e = Z(), t = 1335, r = 21522, n = e.getBCHDigit(t);
|
|
@@ -1080,9 +1081,9 @@ function Xn() {
|
|
|
1080
1081
|
return (a << 10 | u) ^ r;
|
|
1081
1082
|
}, ze;
|
|
1082
1083
|
}
|
|
1083
|
-
var
|
|
1084
|
-
function
|
|
1085
|
-
if (Lt) return
|
|
1084
|
+
var $e = {}, Ve, Lt;
|
|
1085
|
+
function er() {
|
|
1086
|
+
if (Lt) return Ve;
|
|
1086
1087
|
Lt = 1;
|
|
1087
1088
|
const e = ee();
|
|
1088
1089
|
function t(r) {
|
|
@@ -1100,10 +1101,10 @@ function Zn() {
|
|
|
1100
1101
|
i = this.data.substr(o, 3), s = parseInt(i, 10), n.put(s, 10);
|
|
1101
1102
|
const a = this.data.length - o;
|
|
1102
1103
|
a > 0 && (i = this.data.substr(o), s = parseInt(i, 10), n.put(s, a * 3 + 1));
|
|
1103
|
-
},
|
|
1104
|
+
}, Ve = t, Ve;
|
|
1104
1105
|
}
|
|
1105
1106
|
var Je, It;
|
|
1106
|
-
function
|
|
1107
|
+
function tr() {
|
|
1107
1108
|
if (It) return Je;
|
|
1108
1109
|
It = 1;
|
|
1109
1110
|
const e = ee(), t = [
|
|
@@ -1172,7 +1173,7 @@ function er() {
|
|
|
1172
1173
|
}, Je = r, Je;
|
|
1173
1174
|
}
|
|
1174
1175
|
var Ke, _t;
|
|
1175
|
-
function
|
|
1176
|
+
function nr() {
|
|
1176
1177
|
if (_t) return Ke;
|
|
1177
1178
|
_t = 1;
|
|
1178
1179
|
const e = ee();
|
|
@@ -1191,7 +1192,7 @@ function tr() {
|
|
|
1191
1192
|
}, Ke = t, Ke;
|
|
1192
1193
|
}
|
|
1193
1194
|
var We, vt;
|
|
1194
|
-
function
|
|
1195
|
+
function rr() {
|
|
1195
1196
|
if (vt) return We;
|
|
1196
1197
|
vt = 1;
|
|
1197
1198
|
const e = ee(), t = Z();
|
|
@@ -1222,7 +1223,7 @@ Make sure your charset is UTF-8`
|
|
|
1222
1223
|
}, We = r, We;
|
|
1223
1224
|
}
|
|
1224
1225
|
var Ge = { exports: {} }, Ut;
|
|
1225
|
-
function
|
|
1226
|
+
function or() {
|
|
1226
1227
|
return Ut || (Ut = 1, (function(e) {
|
|
1227
1228
|
var t = {
|
|
1228
1229
|
single_source_shortest_paths: function(r, n, o) {
|
|
@@ -1289,29 +1290,29 @@ function rr() {
|
|
|
1289
1290
|
e.exports = t;
|
|
1290
1291
|
})(Ge)), Ge.exports;
|
|
1291
1292
|
}
|
|
1292
|
-
var
|
|
1293
|
-
function
|
|
1294
|
-
return
|
|
1295
|
-
const t = ee(), r =
|
|
1293
|
+
var kt;
|
|
1294
|
+
function ir() {
|
|
1295
|
+
return kt || (kt = 1, (function(e) {
|
|
1296
|
+
const t = ee(), r = er(), n = tr(), o = nr(), i = rr(), s = un(), a = Z(), u = or();
|
|
1296
1297
|
function l(w) {
|
|
1297
1298
|
return unescape(encodeURIComponent(w)).length;
|
|
1298
1299
|
}
|
|
1299
|
-
function c(w,
|
|
1300
|
+
function c(w, N, E) {
|
|
1300
1301
|
const R = [];
|
|
1301
1302
|
let _;
|
|
1302
1303
|
for (; (_ = w.exec(E)) !== null; )
|
|
1303
1304
|
R.push({
|
|
1304
1305
|
data: _[0],
|
|
1305
1306
|
index: _.index,
|
|
1306
|
-
mode:
|
|
1307
|
+
mode: N,
|
|
1307
1308
|
length: _[0].length
|
|
1308
1309
|
});
|
|
1309
1310
|
return R;
|
|
1310
1311
|
}
|
|
1311
1312
|
function h(w) {
|
|
1312
|
-
const
|
|
1313
|
+
const N = c(s.NUMERIC, t.NUMERIC, w), E = c(s.ALPHANUMERIC, t.ALPHANUMERIC, w);
|
|
1313
1314
|
let R, _;
|
|
1314
|
-
return a.isKanjiModeEnabled() ? (R = c(s.BYTE, t.BYTE, w), _ = c(s.KANJI, t.KANJI, w)) : (R = c(s.BYTE_KANJI, t.BYTE, w), _ = []),
|
|
1315
|
+
return a.isKanjiModeEnabled() ? (R = c(s.BYTE, t.BYTE, w), _ = c(s.KANJI, t.KANJI, w)) : (R = c(s.BYTE_KANJI, t.BYTE, w), _ = []), N.concat(E, R, _).sort(function(S, A) {
|
|
1315
1316
|
return S.index - A.index;
|
|
1316
1317
|
}).map(function(S) {
|
|
1317
1318
|
return {
|
|
@@ -1321,8 +1322,8 @@ function or() {
|
|
|
1321
1322
|
};
|
|
1322
1323
|
});
|
|
1323
1324
|
}
|
|
1324
|
-
function m(w,
|
|
1325
|
-
switch (
|
|
1325
|
+
function m(w, N) {
|
|
1326
|
+
switch (N) {
|
|
1326
1327
|
case t.NUMERIC:
|
|
1327
1328
|
return r.getBitsLength(w);
|
|
1328
1329
|
case t.ALPHANUMERIC:
|
|
@@ -1334,44 +1335,44 @@ function or() {
|
|
|
1334
1335
|
}
|
|
1335
1336
|
}
|
|
1336
1337
|
function y(w) {
|
|
1337
|
-
return w.reduce(function(
|
|
1338
|
-
const R =
|
|
1339
|
-
return R && R.mode === E.mode ? (
|
|
1338
|
+
return w.reduce(function(N, E) {
|
|
1339
|
+
const R = N.length - 1 >= 0 ? N[N.length - 1] : null;
|
|
1340
|
+
return R && R.mode === E.mode ? (N[N.length - 1].data += E.data, N) : (N.push(E), N);
|
|
1340
1341
|
}, []);
|
|
1341
1342
|
}
|
|
1342
1343
|
function d(w) {
|
|
1343
|
-
const
|
|
1344
|
+
const N = [];
|
|
1344
1345
|
for (let E = 0; E < w.length; E++) {
|
|
1345
1346
|
const R = w[E];
|
|
1346
1347
|
switch (R.mode) {
|
|
1347
1348
|
case t.NUMERIC:
|
|
1348
|
-
|
|
1349
|
+
N.push([
|
|
1349
1350
|
R,
|
|
1350
1351
|
{ data: R.data, mode: t.ALPHANUMERIC, length: R.length },
|
|
1351
1352
|
{ data: R.data, mode: t.BYTE, length: R.length }
|
|
1352
1353
|
]);
|
|
1353
1354
|
break;
|
|
1354
1355
|
case t.ALPHANUMERIC:
|
|
1355
|
-
|
|
1356
|
+
N.push([
|
|
1356
1357
|
R,
|
|
1357
1358
|
{ data: R.data, mode: t.BYTE, length: R.length }
|
|
1358
1359
|
]);
|
|
1359
1360
|
break;
|
|
1360
1361
|
case t.KANJI:
|
|
1361
|
-
|
|
1362
|
+
N.push([
|
|
1362
1363
|
R,
|
|
1363
1364
|
{ data: R.data, mode: t.BYTE, length: l(R.data) }
|
|
1364
1365
|
]);
|
|
1365
1366
|
break;
|
|
1366
1367
|
case t.BYTE:
|
|
1367
|
-
|
|
1368
|
+
N.push([
|
|
1368
1369
|
{ data: R.data, mode: t.BYTE, length: l(R.data) }
|
|
1369
1370
|
]);
|
|
1370
1371
|
}
|
|
1371
1372
|
}
|
|
1372
|
-
return
|
|
1373
|
+
return N;
|
|
1373
1374
|
}
|
|
1374
|
-
function p(w,
|
|
1375
|
+
function p(w, N) {
|
|
1375
1376
|
const E = {}, R = { start: {} };
|
|
1376
1377
|
let _ = ["start"];
|
|
1377
1378
|
for (let b = 0; b < w.length; b++) {
|
|
@@ -1379,9 +1380,9 @@ function or() {
|
|
|
1379
1380
|
for (let C = 0; C < S.length; C++) {
|
|
1380
1381
|
const L = S[C], B = "" + b + C;
|
|
1381
1382
|
A.push(B), E[B] = { node: L, lastCount: 0 }, R[B] = {};
|
|
1382
|
-
for (let
|
|
1383
|
-
const T = _[
|
|
1384
|
-
E[T] && E[T].node.mode === L.mode ? (R[T][B] = m(E[T].lastCount + L.length, L.mode) - m(E[T].lastCount, L.mode), E[T].lastCount += L.length) : (E[T] && (E[T].lastCount = L.length), R[T][B] = m(L.length, L.mode) + 4 + t.getCharCountIndicator(L.mode,
|
|
1383
|
+
for (let P = 0; P < _.length; P++) {
|
|
1384
|
+
const T = _[P];
|
|
1385
|
+
E[T] && E[T].node.mode === L.mode ? (R[T][B] = m(E[T].lastCount + L.length, L.mode) - m(E[T].lastCount, L.mode), E[T].lastCount += L.length) : (E[T] && (E[T].lastCount = L.length), R[T][B] = m(L.length, L.mode) + 4 + t.getCharCountIndicator(L.mode, N));
|
|
1385
1386
|
}
|
|
1386
1387
|
}
|
|
1387
1388
|
_ = A;
|
|
@@ -1390,10 +1391,10 @@ function or() {
|
|
|
1390
1391
|
R[_[b]].end = 0;
|
|
1391
1392
|
return { map: R, table: E };
|
|
1392
1393
|
}
|
|
1393
|
-
function g(w,
|
|
1394
|
+
function g(w, N) {
|
|
1394
1395
|
let E;
|
|
1395
1396
|
const R = t.getBestModeForData(w);
|
|
1396
|
-
if (E = t.from(
|
|
1397
|
+
if (E = t.from(N, R), E !== t.BYTE && E.bit < R.bit)
|
|
1397
1398
|
throw new Error('"' + w + '" cannot be encoded with mode ' + t.toString(E) + `.
|
|
1398
1399
|
Suggested mode is: ` + t.toString(R));
|
|
1399
1400
|
switch (E === t.KANJI && !a.isKanjiModeEnabled() && (E = t.BYTE), E) {
|
|
@@ -1407,35 +1408,35 @@ function or() {
|
|
|
1407
1408
|
return new o(w);
|
|
1408
1409
|
}
|
|
1409
1410
|
}
|
|
1410
|
-
e.fromArray = function(
|
|
1411
|
-
return
|
|
1411
|
+
e.fromArray = function(N) {
|
|
1412
|
+
return N.reduce(function(E, R) {
|
|
1412
1413
|
return typeof R == "string" ? E.push(g(R, null)) : R.data && E.push(g(R.data, R.mode)), E;
|
|
1413
1414
|
}, []);
|
|
1414
|
-
}, e.fromString = function(
|
|
1415
|
-
const R = h(
|
|
1415
|
+
}, e.fromString = function(N, E) {
|
|
1416
|
+
const R = h(N, a.isKanjiModeEnabled()), _ = d(R), b = p(_, E), S = u.find_path(b.map, "start", "end"), A = [];
|
|
1416
1417
|
for (let C = 1; C < S.length - 1; C++)
|
|
1417
1418
|
A.push(b.table[S[C]].node);
|
|
1418
1419
|
return e.fromArray(y(A));
|
|
1419
|
-
}, e.rawSplit = function(
|
|
1420
|
+
}, e.rawSplit = function(N) {
|
|
1420
1421
|
return e.fromArray(
|
|
1421
|
-
h(
|
|
1422
|
+
h(N, a.isKanjiModeEnabled())
|
|
1422
1423
|
);
|
|
1423
1424
|
};
|
|
1424
|
-
})(
|
|
1425
|
+
})($e)), $e;
|
|
1425
1426
|
}
|
|
1426
|
-
var
|
|
1427
|
-
function
|
|
1428
|
-
if (
|
|
1429
|
-
|
|
1430
|
-
const e = Z(), t = at(), r =
|
|
1427
|
+
var xt;
|
|
1428
|
+
function sr() {
|
|
1429
|
+
if (xt) return Ie;
|
|
1430
|
+
xt = 1;
|
|
1431
|
+
const e = Z(), t = at(), r = $n(), n = Vn(), o = Jn(), i = Kn(), s = Wn(), a = sn(), u = Yn(), l = Xn(), c = Zn(), h = ee(), m = ir();
|
|
1431
1432
|
function y(b, S) {
|
|
1432
1433
|
const A = b.size, C = i.getPositions(S);
|
|
1433
1434
|
for (let L = 0; L < C.length; L++) {
|
|
1434
|
-
const B = C[L][0],
|
|
1435
|
+
const B = C[L][0], P = C[L][1];
|
|
1435
1436
|
for (let T = -1; T <= 7; T++)
|
|
1436
1437
|
if (!(B + T <= -1 || A <= B + T))
|
|
1437
1438
|
for (let O = -1; O <= 7; O++)
|
|
1438
|
-
|
|
1439
|
+
P + O <= -1 || A <= P + O || (T >= 0 && T <= 6 && (O === 0 || O === 6) || O >= 0 && O <= 6 && (T === 0 || T === 6) || T >= 2 && T <= 4 && O >= 2 && O <= 4 ? b.set(B + T, P + O, !0, !0) : b.set(B + T, P + O, !1, !0));
|
|
1439
1440
|
}
|
|
1440
1441
|
}
|
|
1441
1442
|
function d(b) {
|
|
@@ -1449,33 +1450,33 @@ function ir() {
|
|
|
1449
1450
|
const A = o.getPositions(S);
|
|
1450
1451
|
for (let C = 0; C < A.length; C++) {
|
|
1451
1452
|
const L = A[C][0], B = A[C][1];
|
|
1452
|
-
for (let
|
|
1453
|
+
for (let P = -2; P <= 2; P++)
|
|
1453
1454
|
for (let T = -2; T <= 2; T++)
|
|
1454
|
-
|
|
1455
|
+
P === -2 || P === 2 || T === -2 || T === 2 || P === 0 && T === 0 ? b.set(L + P, B + T, !0, !0) : b.set(L + P, B + T, !1, !0);
|
|
1455
1456
|
}
|
|
1456
1457
|
}
|
|
1457
1458
|
function g(b, S) {
|
|
1458
1459
|
const A = b.size, C = l.getEncodedBits(S);
|
|
1459
|
-
let L, B,
|
|
1460
|
+
let L, B, P;
|
|
1460
1461
|
for (let T = 0; T < 18; T++)
|
|
1461
|
-
L = Math.floor(T / 3), B = T % 3 + A - 8 - 3,
|
|
1462
|
+
L = Math.floor(T / 3), B = T % 3 + A - 8 - 3, P = (C >> T & 1) === 1, b.set(L, B, P, !0), b.set(B, L, P, !0);
|
|
1462
1463
|
}
|
|
1463
1464
|
function w(b, S, A) {
|
|
1464
1465
|
const C = b.size, L = c.getEncodedBits(S, A);
|
|
1465
|
-
let B,
|
|
1466
|
+
let B, P;
|
|
1466
1467
|
for (B = 0; B < 15; B++)
|
|
1467
|
-
|
|
1468
|
+
P = (L >> B & 1) === 1, B < 6 ? b.set(B, 8, P, !0) : B < 8 ? b.set(B + 1, 8, P, !0) : b.set(C - 15 + B, 8, P, !0), B < 8 ? b.set(8, C - B - 1, P, !0) : B < 9 ? b.set(8, 15 - B - 1 + 1, P, !0) : b.set(8, 15 - B - 1, P, !0);
|
|
1468
1469
|
b.set(C - 8, 8, 1, !0);
|
|
1469
1470
|
}
|
|
1470
|
-
function
|
|
1471
|
+
function N(b, S) {
|
|
1471
1472
|
const A = b.size;
|
|
1472
|
-
let C = -1, L = A - 1, B = 7,
|
|
1473
|
+
let C = -1, L = A - 1, B = 7, P = 0;
|
|
1473
1474
|
for (let T = A - 1; T > 0; T -= 2)
|
|
1474
1475
|
for (T === 6 && T--; ; ) {
|
|
1475
1476
|
for (let O = 0; O < 2; O++)
|
|
1476
1477
|
if (!b.isReserved(L, T - O)) {
|
|
1477
1478
|
let q = !1;
|
|
1478
|
-
|
|
1479
|
+
P < S.length && (q = (S[P] >>> B & 1) === 1), b.set(L, T - O, q), B--, B === -1 && (P++, B = 7);
|
|
1479
1480
|
}
|
|
1480
1481
|
if (L += C, L < 0 || A <= L) {
|
|
1481
1482
|
L -= C, C = -C;
|
|
@@ -1488,32 +1489,32 @@ function ir() {
|
|
|
1488
1489
|
A.forEach(function(O) {
|
|
1489
1490
|
C.put(O.mode.bit, 4), C.put(O.getLength(), h.getCharCountIndicator(O.mode, b)), O.write(C);
|
|
1490
1491
|
});
|
|
1491
|
-
const L = e.getSymbolTotalCodewords(b), B = a.getTotalCodewordsCount(b, S),
|
|
1492
|
-
for (C.getLengthInBits() + 4 <=
|
|
1492
|
+
const L = e.getSymbolTotalCodewords(b), B = a.getTotalCodewordsCount(b, S), P = (L - B) * 8;
|
|
1493
|
+
for (C.getLengthInBits() + 4 <= P && C.put(0, 4); C.getLengthInBits() % 8 !== 0; )
|
|
1493
1494
|
C.putBit(0);
|
|
1494
|
-
const T = (
|
|
1495
|
+
const T = (P - C.getLengthInBits()) / 8;
|
|
1495
1496
|
for (let O = 0; O < T; O++)
|
|
1496
1497
|
C.put(O % 2 ? 17 : 236, 8);
|
|
1497
1498
|
return R(C, b, S);
|
|
1498
1499
|
}
|
|
1499
1500
|
function R(b, S, A) {
|
|
1500
|
-
const C = e.getSymbolTotalCodewords(S), L = a.getTotalCodewordsCount(S, A), B = C - L,
|
|
1501
|
+
const C = e.getSymbolTotalCodewords(S), L = a.getTotalCodewordsCount(S, A), B = C - L, P = a.getBlocksCount(S, A), T = C % P, O = P - T, q = Math.floor(C / P), U = Math.floor(B / P), me = U + 1, j = q - U, ye = new u(j);
|
|
1501
1502
|
let ue = 0;
|
|
1502
|
-
const D = new Array(
|
|
1503
|
+
const D = new Array(P), V = new Array(P);
|
|
1503
1504
|
let G = 0;
|
|
1504
1505
|
const te = new Uint8Array(b.buffer);
|
|
1505
|
-
for (let re = 0; re <
|
|
1506
|
+
for (let re = 0; re < P; re++) {
|
|
1506
1507
|
const Oe = re < O ? U : me;
|
|
1507
|
-
D[re] = te.slice(ue, ue + Oe),
|
|
1508
|
+
D[re] = te.slice(ue, ue + Oe), V[re] = ye.encode(D[re]), ue += Oe, G = Math.max(G, Oe);
|
|
1508
1509
|
}
|
|
1509
1510
|
const ne = new Uint8Array(C);
|
|
1510
1511
|
let dt = 0, J, K;
|
|
1511
1512
|
for (J = 0; J < G; J++)
|
|
1512
|
-
for (K = 0; K <
|
|
1513
|
+
for (K = 0; K < P; K++)
|
|
1513
1514
|
J < D[K].length && (ne[dt++] = D[K][J]);
|
|
1514
1515
|
for (J = 0; J < j; J++)
|
|
1515
|
-
for (K = 0; K <
|
|
1516
|
-
ne[dt++] =
|
|
1516
|
+
for (K = 0; K < P; K++)
|
|
1517
|
+
ne[dt++] = V[K][J];
|
|
1517
1518
|
return ne;
|
|
1518
1519
|
}
|
|
1519
1520
|
function _(b, S, A, C) {
|
|
@@ -1541,8 +1542,8 @@ The chosen QR Code version cannot contain this amount of data.
|
|
|
1541
1542
|
Minimum version required to store current data is: ` + B + `.
|
|
1542
1543
|
`
|
|
1543
1544
|
);
|
|
1544
|
-
const
|
|
1545
|
-
return y(O, S), d(O), p(O, S), w(O, A, 0), S >= 7 && g(O, S),
|
|
1545
|
+
const P = E(S, A, L), T = e.getSymbolSize(S), O = new n(T);
|
|
1546
|
+
return y(O, S), d(O), p(O, S), w(O, A, 0), S >= 7 && g(O, S), N(O, P), isNaN(C) && (C = s.getBestMask(
|
|
1546
1547
|
O,
|
|
1547
1548
|
w.bind(null, O, A)
|
|
1548
1549
|
)), s.applyMask(C, O), w(O, A, C), {
|
|
@@ -1560,9 +1561,9 @@ Minimum version required to store current data is: ` + B + `.
|
|
|
1560
1561
|
return typeof A < "u" && (C = t.from(A.errorCorrectionLevel, t.M), L = l.from(A.version), B = s.from(A.maskPattern), A.toSJISFunc && e.setToSJISFunction(A.toSJISFunc)), _(S, L, C, B);
|
|
1561
1562
|
}, Ie;
|
|
1562
1563
|
}
|
|
1563
|
-
var Qe = {}, Ye = {},
|
|
1564
|
-
function
|
|
1565
|
-
return
|
|
1564
|
+
var Qe = {}, Ye = {}, Ft;
|
|
1565
|
+
function ln() {
|
|
1566
|
+
return Ft || (Ft = 1, (function(e) {
|
|
1566
1567
|
function t(r) {
|
|
1567
1568
|
if (typeof r == "number" && (r = r.toString()), typeof r != "string")
|
|
1568
1569
|
throw new Error("Color should be defined as hex string");
|
|
@@ -1614,10 +1615,10 @@ function an() {
|
|
|
1614
1615
|
};
|
|
1615
1616
|
})(Ye)), Ye;
|
|
1616
1617
|
}
|
|
1617
|
-
var
|
|
1618
|
-
function
|
|
1619
|
-
return
|
|
1620
|
-
const t =
|
|
1618
|
+
var Mt;
|
|
1619
|
+
function ar() {
|
|
1620
|
+
return Mt || (Mt = 1, (function(e) {
|
|
1621
|
+
const t = ln();
|
|
1621
1622
|
function r(o, i, s) {
|
|
1622
1623
|
o.clearRect(0, 0, i.width, i.height), i.style || (i.style = {}), i.height = s, i.width = s, i.style.height = s + "px", i.style.width = s + "px";
|
|
1623
1624
|
}
|
|
@@ -1642,10 +1643,10 @@ function sr() {
|
|
|
1642
1643
|
})(Qe)), Qe;
|
|
1643
1644
|
}
|
|
1644
1645
|
var Xe = {}, Dt;
|
|
1645
|
-
function
|
|
1646
|
+
function ur() {
|
|
1646
1647
|
if (Dt) return Xe;
|
|
1647
1648
|
Dt = 1;
|
|
1648
|
-
const e =
|
|
1649
|
+
const e = ln();
|
|
1649
1650
|
function t(o, i) {
|
|
1650
1651
|
const s = o.a / 255, a = i + '="' + o.hex + '"';
|
|
1651
1652
|
return s < 1 ? a + " " + i + '-opacity="' + s.toFixed(2).slice(1) + '"' : a;
|
|
@@ -1669,10 +1670,10 @@ function ar() {
|
|
|
1669
1670
|
}, Xe;
|
|
1670
1671
|
}
|
|
1671
1672
|
var qt;
|
|
1672
|
-
function
|
|
1673
|
+
function lr() {
|
|
1673
1674
|
if (qt) return oe;
|
|
1674
1675
|
qt = 1;
|
|
1675
|
-
const e =
|
|
1676
|
+
const e = zn(), t = sr(), r = ar(), n = ur();
|
|
1676
1677
|
function o(i, s, a, u, l) {
|
|
1677
1678
|
const c = [].slice.call(arguments, 1), h = c.length, m = typeof c[h - 1] == "function";
|
|
1678
1679
|
if (!m && !e())
|
|
@@ -1704,30 +1705,30 @@ function ur() {
|
|
|
1704
1705
|
return n.render(i, a);
|
|
1705
1706
|
}), oe;
|
|
1706
1707
|
}
|
|
1707
|
-
var
|
|
1708
|
-
function
|
|
1708
|
+
var cr = lr();
|
|
1709
|
+
function cn(e, t) {
|
|
1709
1710
|
return function() {
|
|
1710
1711
|
return e.apply(t, arguments);
|
|
1711
1712
|
};
|
|
1712
1713
|
}
|
|
1713
|
-
const { toString:
|
|
1714
|
-
const r =
|
|
1714
|
+
const { toString: fr } = Object.prototype, { getPrototypeOf: ut } = Object, { iterator: Te, toStringTag: fn } = Symbol, Ae = /* @__PURE__ */ ((e) => (t) => {
|
|
1715
|
+
const r = fr.call(t);
|
|
1715
1716
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
1716
1717
|
})(/* @__PURE__ */ Object.create(null)), H = (e) => (e = e.toLowerCase(), (t) => Ae(t) === e), Be = (e) => (t) => typeof t === e, { isArray: se } = Array, ie = Be("undefined");
|
|
1717
1718
|
function de(e) {
|
|
1718
|
-
return e !== null && !ie(e) && e.constructor !== null && !ie(e.constructor) &&
|
|
1719
|
+
return e !== null && !ie(e) && e.constructor !== null && !ie(e.constructor) && F(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
1719
1720
|
}
|
|
1720
|
-
const
|
|
1721
|
-
function
|
|
1721
|
+
const dn = H("ArrayBuffer");
|
|
1722
|
+
function dr(e) {
|
|
1722
1723
|
let t;
|
|
1723
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
1724
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && dn(e.buffer), t;
|
|
1724
1725
|
}
|
|
1725
|
-
const
|
|
1726
|
+
const hr = Be("string"), F = Be("function"), hn = Be("number"), he = (e) => e !== null && typeof e == "object", pr = (e) => e === !0 || e === !1, Ee = (e) => {
|
|
1726
1727
|
if (Ae(e) !== "object")
|
|
1727
1728
|
return !1;
|
|
1728
1729
|
const t = ut(e);
|
|
1729
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
1730
|
-
},
|
|
1730
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(fn in e) && !(Te in e);
|
|
1731
|
+
}, gr = (e) => {
|
|
1731
1732
|
if (!he(e) || de(e))
|
|
1732
1733
|
return !1;
|
|
1733
1734
|
try {
|
|
@@ -1735,11 +1736,11 @@ const dr = Be("string"), M = Be("function"), fn = Be("number"), he = (e) => e !=
|
|
|
1735
1736
|
} catch {
|
|
1736
1737
|
return !1;
|
|
1737
1738
|
}
|
|
1738
|
-
},
|
|
1739
|
+
}, mr = H("Date"), yr = H("File"), wr = H("Blob"), br = H("FileList"), Er = (e) => he(e) && F(e.pipe), Cr = (e) => {
|
|
1739
1740
|
let t;
|
|
1740
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
1741
|
-
t === "object" &&
|
|
1742
|
-
},
|
|
1741
|
+
return e && (typeof FormData == "function" && e instanceof FormData || F(e.append) && ((t = Ae(e)) === "formdata" || // detect form-data instance
|
|
1742
|
+
t === "object" && F(e.toString) && e.toString() === "[object FormData]"));
|
|
1743
|
+
}, Sr = H("URLSearchParams"), [Rr, Tr, Ar, Br] = ["ReadableStream", "Request", "Response", "Headers"].map(H), Pr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
1743
1744
|
function pe(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
1744
1745
|
if (e === null || typeof e > "u")
|
|
1745
1746
|
return;
|
|
@@ -1756,7 +1757,7 @@ function pe(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
|
1756
1757
|
a = i[n], t.call(null, e[a], a, e);
|
|
1757
1758
|
}
|
|
1758
1759
|
}
|
|
1759
|
-
function
|
|
1760
|
+
function pn(e, t) {
|
|
1760
1761
|
if (de(e))
|
|
1761
1762
|
return null;
|
|
1762
1763
|
t = t.toLowerCase();
|
|
@@ -1767,10 +1768,10 @@ function dn(e, t) {
|
|
|
1767
1768
|
return o;
|
|
1768
1769
|
return null;
|
|
1769
1770
|
}
|
|
1770
|
-
const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
1771
|
+
const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, gn = (e) => !ie(e) && e !== Q;
|
|
1771
1772
|
function rt() {
|
|
1772
|
-
const { caseless: e, skipUndefined: t } =
|
|
1773
|
-
const s = e &&
|
|
1773
|
+
const { caseless: e, skipUndefined: t } = gn(this) && this || {}, r = {}, n = (o, i) => {
|
|
1774
|
+
const s = e && pn(r, i) || i;
|
|
1774
1775
|
Ee(r[s]) && Ee(o) ? r[s] = rt(r[s], o) : Ee(o) ? r[s] = rt({}, o) : se(o) ? r[s] = o.slice() : (!t || !ie(o)) && (r[s] = o);
|
|
1775
1776
|
};
|
|
1776
1777
|
for (let o = 0, i = arguments.length; o < i; o++)
|
|
@@ -1778,12 +1779,12 @@ function rt() {
|
|
|
1778
1779
|
return r;
|
|
1779
1780
|
}
|
|
1780
1781
|
const Nr = (e, t, r, { allOwnKeys: n } = {}) => (pe(t, (o, i) => {
|
|
1781
|
-
r &&
|
|
1782
|
-
}, { allOwnKeys: n }), e),
|
|
1782
|
+
r && F(o) ? e[i] = cn(o, r) : e[i] = o;
|
|
1783
|
+
}, { allOwnKeys: n }), e), Or = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Lr = (e, t, r, n) => {
|
|
1783
1784
|
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
1784
1785
|
value: t.prototype
|
|
1785
1786
|
}), r && Object.assign(e.prototype, r);
|
|
1786
|
-
},
|
|
1787
|
+
}, Ir = (e, t, r, n) => {
|
|
1787
1788
|
let o, i, s;
|
|
1788
1789
|
const a = {};
|
|
1789
1790
|
if (t = t || {}, e == null) return t;
|
|
@@ -1793,20 +1794,20 @@ const Nr = (e, t, r, { allOwnKeys: n } = {}) => (pe(t, (o, i) => {
|
|
|
1793
1794
|
e = r !== !1 && ut(e);
|
|
1794
1795
|
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
1795
1796
|
return t;
|
|
1796
|
-
},
|
|
1797
|
+
}, _r = (e, t, r) => {
|
|
1797
1798
|
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
|
|
1798
1799
|
const n = e.indexOf(t, r);
|
|
1799
1800
|
return n !== -1 && n === r;
|
|
1800
|
-
},
|
|
1801
|
+
}, vr = (e) => {
|
|
1801
1802
|
if (!e) return null;
|
|
1802
1803
|
if (se(e)) return e;
|
|
1803
1804
|
let t = e.length;
|
|
1804
|
-
if (!
|
|
1805
|
+
if (!hn(t)) return null;
|
|
1805
1806
|
const r = new Array(t);
|
|
1806
1807
|
for (; t-- > 0; )
|
|
1807
1808
|
r[t] = e[t];
|
|
1808
1809
|
return r;
|
|
1809
|
-
},
|
|
1810
|
+
}, Ur = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ut(Uint8Array)), kr = (e, t) => {
|
|
1810
1811
|
const n = (e && e[Te]).call(e);
|
|
1811
1812
|
let o;
|
|
1812
1813
|
for (; (o = n.next()) && !o.done; ) {
|
|
@@ -1824,18 +1825,18 @@ const Nr = (e, t, r, { allOwnKeys: n } = {}) => (pe(t, (o, i) => {
|
|
|
1824
1825
|
function(r, n, o) {
|
|
1825
1826
|
return n.toUpperCase() + o;
|
|
1826
1827
|
}
|
|
1827
|
-
), jt = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype),
|
|
1828
|
+
), jt = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Dr = H("RegExp"), mn = (e, t) => {
|
|
1828
1829
|
const r = Object.getOwnPropertyDescriptors(e), n = {};
|
|
1829
1830
|
pe(r, (o, i) => {
|
|
1830
1831
|
let s;
|
|
1831
1832
|
(s = t(o, i, e)) !== !1 && (n[i] = s || o);
|
|
1832
1833
|
}), Object.defineProperties(e, n);
|
|
1833
|
-
},
|
|
1834
|
-
|
|
1835
|
-
if (
|
|
1834
|
+
}, qr = (e) => {
|
|
1835
|
+
mn(e, (t, r) => {
|
|
1836
|
+
if (F(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
1836
1837
|
return !1;
|
|
1837
1838
|
const n = e[r];
|
|
1838
|
-
if (
|
|
1839
|
+
if (F(n)) {
|
|
1839
1840
|
if (t.enumerable = !1, "writable" in t) {
|
|
1840
1841
|
t.writable = !1;
|
|
1841
1842
|
return;
|
|
@@ -1845,17 +1846,17 @@ const Nr = (e, t, r, { allOwnKeys: n } = {}) => (pe(t, (o, i) => {
|
|
|
1845
1846
|
});
|
|
1846
1847
|
}
|
|
1847
1848
|
});
|
|
1848
|
-
},
|
|
1849
|
+
}, jr = (e, t) => {
|
|
1849
1850
|
const r = {}, n = (o) => {
|
|
1850
1851
|
o.forEach((i) => {
|
|
1851
1852
|
r[i] = !0;
|
|
1852
1853
|
});
|
|
1853
1854
|
};
|
|
1854
1855
|
return se(e) ? n(e) : n(String(e).split(t)), r;
|
|
1855
|
-
},
|
|
1856
|
-
},
|
|
1857
|
-
function
|
|
1858
|
-
return !!(e &&
|
|
1856
|
+
}, Hr = () => {
|
|
1857
|
+
}, zr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
1858
|
+
function $r(e) {
|
|
1859
|
+
return !!(e && F(e.append) && e[fn] === "FormData" && e[Te]);
|
|
1859
1860
|
}
|
|
1860
1861
|
const Vr = (e) => {
|
|
1861
1862
|
const t = new Array(10), r = (n, o) => {
|
|
@@ -1876,72 +1877,72 @@ const Vr = (e) => {
|
|
|
1876
1877
|
return n;
|
|
1877
1878
|
};
|
|
1878
1879
|
return r(e, 0);
|
|
1879
|
-
},
|
|
1880
|
+
}, Jr = H("AsyncFunction"), Kr = (e) => e && (he(e) || F(e)) && F(e.then) && F(e.catch), yn = ((e, t) => e ? setImmediate : t ? ((r, n) => (Q.addEventListener("message", ({ source: o, data: i }) => {
|
|
1880
1881
|
o === Q && i === r && n.length && n.shift()();
|
|
1881
1882
|
}, !1), (o) => {
|
|
1882
1883
|
n.push(o), Q.postMessage(r, "*");
|
|
1883
1884
|
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
1884
1885
|
typeof setImmediate == "function",
|
|
1885
|
-
|
|
1886
|
-
),
|
|
1886
|
+
F(Q.postMessage)
|
|
1887
|
+
), Wr = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || yn, Gr = (e) => e != null && F(e[Te]), f = {
|
|
1887
1888
|
isArray: se,
|
|
1888
|
-
isArrayBuffer:
|
|
1889
|
+
isArrayBuffer: dn,
|
|
1889
1890
|
isBuffer: de,
|
|
1890
|
-
isFormData:
|
|
1891
|
-
isArrayBufferView:
|
|
1892
|
-
isString:
|
|
1893
|
-
isNumber:
|
|
1894
|
-
isBoolean:
|
|
1891
|
+
isFormData: Cr,
|
|
1892
|
+
isArrayBufferView: dr,
|
|
1893
|
+
isString: hr,
|
|
1894
|
+
isNumber: hn,
|
|
1895
|
+
isBoolean: pr,
|
|
1895
1896
|
isObject: he,
|
|
1896
1897
|
isPlainObject: Ee,
|
|
1897
|
-
isEmptyObject:
|
|
1898
|
-
isReadableStream:
|
|
1899
|
-
isRequest:
|
|
1900
|
-
isResponse:
|
|
1901
|
-
isHeaders:
|
|
1898
|
+
isEmptyObject: gr,
|
|
1899
|
+
isReadableStream: Rr,
|
|
1900
|
+
isRequest: Tr,
|
|
1901
|
+
isResponse: Ar,
|
|
1902
|
+
isHeaders: Br,
|
|
1902
1903
|
isUndefined: ie,
|
|
1903
|
-
isDate:
|
|
1904
|
-
isFile:
|
|
1905
|
-
isBlob:
|
|
1906
|
-
isRegExp:
|
|
1907
|
-
isFunction:
|
|
1908
|
-
isStream:
|
|
1909
|
-
isURLSearchParams:
|
|
1910
|
-
isTypedArray:
|
|
1911
|
-
isFileList:
|
|
1904
|
+
isDate: mr,
|
|
1905
|
+
isFile: yr,
|
|
1906
|
+
isBlob: wr,
|
|
1907
|
+
isRegExp: Dr,
|
|
1908
|
+
isFunction: F,
|
|
1909
|
+
isStream: Er,
|
|
1910
|
+
isURLSearchParams: Sr,
|
|
1911
|
+
isTypedArray: Ur,
|
|
1912
|
+
isFileList: br,
|
|
1912
1913
|
forEach: pe,
|
|
1913
1914
|
merge: rt,
|
|
1914
1915
|
extend: Nr,
|
|
1915
|
-
trim:
|
|
1916
|
-
stripBOM:
|
|
1917
|
-
inherits:
|
|
1918
|
-
toFlatObject:
|
|
1916
|
+
trim: Pr,
|
|
1917
|
+
stripBOM: Or,
|
|
1918
|
+
inherits: Lr,
|
|
1919
|
+
toFlatObject: Ir,
|
|
1919
1920
|
kindOf: Ae,
|
|
1920
1921
|
kindOfTest: H,
|
|
1921
|
-
endsWith:
|
|
1922
|
-
toArray:
|
|
1923
|
-
forEachEntry:
|
|
1922
|
+
endsWith: _r,
|
|
1923
|
+
toArray: vr,
|
|
1924
|
+
forEachEntry: kr,
|
|
1924
1925
|
matchAll: xr,
|
|
1925
1926
|
isHTMLForm: Fr,
|
|
1926
1927
|
hasOwnProperty: jt,
|
|
1927
1928
|
hasOwnProp: jt,
|
|
1928
1929
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
1929
|
-
reduceDescriptors:
|
|
1930
|
-
freezeMethods:
|
|
1931
|
-
toObjectSet:
|
|
1930
|
+
reduceDescriptors: mn,
|
|
1931
|
+
freezeMethods: qr,
|
|
1932
|
+
toObjectSet: jr,
|
|
1932
1933
|
toCamelCase: Mr,
|
|
1933
|
-
noop:
|
|
1934
|
-
toFiniteNumber:
|
|
1935
|
-
findKey:
|
|
1934
|
+
noop: Hr,
|
|
1935
|
+
toFiniteNumber: zr,
|
|
1936
|
+
findKey: pn,
|
|
1936
1937
|
global: Q,
|
|
1937
|
-
isContextDefined:
|
|
1938
|
-
isSpecCompliantForm:
|
|
1938
|
+
isContextDefined: gn,
|
|
1939
|
+
isSpecCompliantForm: $r,
|
|
1939
1940
|
toJSONObject: Vr,
|
|
1940
|
-
isAsyncFn:
|
|
1941
|
-
isThenable:
|
|
1942
|
-
setImmediate:
|
|
1943
|
-
asap:
|
|
1944
|
-
isIterable:
|
|
1941
|
+
isAsyncFn: Jr,
|
|
1942
|
+
isThenable: Kr,
|
|
1943
|
+
setImmediate: yn,
|
|
1944
|
+
asap: Wr,
|
|
1945
|
+
isIterable: Gr
|
|
1945
1946
|
};
|
|
1946
1947
|
function I(e, t, r, n, o) {
|
|
1947
1948
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
@@ -1967,7 +1968,7 @@ f.inherits(I, Error, {
|
|
|
1967
1968
|
};
|
|
1968
1969
|
}
|
|
1969
1970
|
});
|
|
1970
|
-
const
|
|
1971
|
+
const wn = I.prototype, bn = {};
|
|
1971
1972
|
[
|
|
1972
1973
|
"ERR_BAD_OPTION_VALUE",
|
|
1973
1974
|
"ERR_BAD_OPTION",
|
|
@@ -1983,37 +1984,37 @@ const mn = I.prototype, yn = {};
|
|
|
1983
1984
|
"ERR_INVALID_URL"
|
|
1984
1985
|
// eslint-disable-next-line func-names
|
|
1985
1986
|
].forEach((e) => {
|
|
1986
|
-
|
|
1987
|
+
bn[e] = { value: e };
|
|
1987
1988
|
});
|
|
1988
|
-
Object.defineProperties(I,
|
|
1989
|
-
Object.defineProperty(
|
|
1989
|
+
Object.defineProperties(I, bn);
|
|
1990
|
+
Object.defineProperty(wn, "isAxiosError", { value: !0 });
|
|
1990
1991
|
I.from = (e, t, r, n, o, i) => {
|
|
1991
|
-
const s = Object.create(
|
|
1992
|
+
const s = Object.create(wn);
|
|
1992
1993
|
f.toFlatObject(e, s, function(c) {
|
|
1993
1994
|
return c !== Error.prototype;
|
|
1994
1995
|
}, (l) => l !== "isAxiosError");
|
|
1995
1996
|
const a = e && e.message ? e.message : "Error", u = t == null && e ? e.code : t;
|
|
1996
1997
|
return I.call(s, a, u, r, n, o), e && s.cause == null && Object.defineProperty(s, "cause", { value: e, configurable: !0 }), s.name = e && e.name || "Error", i && Object.assign(s, i), s;
|
|
1997
1998
|
};
|
|
1998
|
-
const
|
|
1999
|
+
const Qr = null;
|
|
1999
2000
|
function ot(e) {
|
|
2000
2001
|
return f.isPlainObject(e) || f.isArray(e);
|
|
2001
2002
|
}
|
|
2002
|
-
function
|
|
2003
|
+
function En(e) {
|
|
2003
2004
|
return f.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
2004
2005
|
}
|
|
2005
2006
|
function Ht(e, t, r) {
|
|
2006
2007
|
return e ? e.concat(t).map(function(o, i) {
|
|
2007
|
-
return o =
|
|
2008
|
+
return o = En(o), !r && i ? "[" + o + "]" : o;
|
|
2008
2009
|
}).join(r ? "." : "") : t;
|
|
2009
2010
|
}
|
|
2010
|
-
function
|
|
2011
|
+
function Yr(e) {
|
|
2011
2012
|
return f.isArray(e) && !e.some(ot);
|
|
2012
2013
|
}
|
|
2013
|
-
const
|
|
2014
|
+
const Xr = f.toFlatObject(f, {}, null, function(t) {
|
|
2014
2015
|
return /^is[A-Z]/.test(t);
|
|
2015
2016
|
});
|
|
2016
|
-
function
|
|
2017
|
+
function Pe(e, t, r) {
|
|
2017
2018
|
if (!f.isObject(e))
|
|
2018
2019
|
throw new TypeError("target must be an object");
|
|
2019
2020
|
t = t || new FormData(), r = f.toFlatObject(r, {
|
|
@@ -2041,8 +2042,8 @@ function Ne(e, t, r) {
|
|
|
2041
2042
|
if (d && !g && typeof d == "object") {
|
|
2042
2043
|
if (f.endsWith(p, "{}"))
|
|
2043
2044
|
p = n ? p : p.slice(0, -2), d = JSON.stringify(d);
|
|
2044
|
-
else if (f.isArray(d) &&
|
|
2045
|
-
return p =
|
|
2045
|
+
else if (f.isArray(d) && Yr(d) || (f.isFileList(d) || f.endsWith(p, "[]")) && (w = f.toArray(d)))
|
|
2046
|
+
return p = En(p), w.forEach(function(E, R) {
|
|
2046
2047
|
!(f.isUndefined(E) || E === null) && t.append(
|
|
2047
2048
|
// eslint-disable-next-line no-nested-ternary
|
|
2048
2049
|
s === !0 ? Ht([p], R, i) : s === null ? p : p + "[]",
|
|
@@ -2052,7 +2053,7 @@ function Ne(e, t, r) {
|
|
|
2052
2053
|
}
|
|
2053
2054
|
return ot(d) ? !0 : (t.append(Ht(g, p, i), l(d)), !1);
|
|
2054
2055
|
}
|
|
2055
|
-
const h = [], m = Object.assign(
|
|
2056
|
+
const h = [], m = Object.assign(Xr, {
|
|
2056
2057
|
defaultVisitor: c,
|
|
2057
2058
|
convertValue: l,
|
|
2058
2059
|
isVisitable: ot
|
|
@@ -2061,14 +2062,14 @@ function Ne(e, t, r) {
|
|
|
2061
2062
|
if (!f.isUndefined(d)) {
|
|
2062
2063
|
if (h.indexOf(d) !== -1)
|
|
2063
2064
|
throw Error("Circular reference detected in " + p.join("."));
|
|
2064
|
-
h.push(d), f.forEach(d, function(w,
|
|
2065
|
+
h.push(d), f.forEach(d, function(w, N) {
|
|
2065
2066
|
(!(f.isUndefined(w) || w === null) && o.call(
|
|
2066
2067
|
t,
|
|
2067
2068
|
w,
|
|
2068
|
-
f.isString(
|
|
2069
|
+
f.isString(N) ? N.trim() : N,
|
|
2069
2070
|
p,
|
|
2070
2071
|
m
|
|
2071
|
-
)) === !0 && y(w, p ? p.concat(
|
|
2072
|
+
)) === !0 && y(w, p ? p.concat(N) : [N]);
|
|
2072
2073
|
}), h.pop();
|
|
2073
2074
|
}
|
|
2074
2075
|
}
|
|
@@ -2091,13 +2092,13 @@ function zt(e) {
|
|
|
2091
2092
|
});
|
|
2092
2093
|
}
|
|
2093
2094
|
function lt(e, t) {
|
|
2094
|
-
this._pairs = [], e &&
|
|
2095
|
+
this._pairs = [], e && Pe(e, this, t);
|
|
2095
2096
|
}
|
|
2096
|
-
const
|
|
2097
|
-
|
|
2097
|
+
const Cn = lt.prototype;
|
|
2098
|
+
Cn.append = function(t, r) {
|
|
2098
2099
|
this._pairs.push([t, r]);
|
|
2099
2100
|
};
|
|
2100
|
-
|
|
2101
|
+
Cn.toString = function(t) {
|
|
2101
2102
|
const r = t ? function(n) {
|
|
2102
2103
|
return t.call(this, n, zt);
|
|
2103
2104
|
} : zt;
|
|
@@ -2105,13 +2106,13 @@ bn.toString = function(t) {
|
|
|
2105
2106
|
return r(o[0]) + "=" + r(o[1]);
|
|
2106
2107
|
}, "").join("&");
|
|
2107
2108
|
};
|
|
2108
|
-
function
|
|
2109
|
+
function Zr(e) {
|
|
2109
2110
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
2110
2111
|
}
|
|
2111
|
-
function
|
|
2112
|
+
function Sn(e, t, r) {
|
|
2112
2113
|
if (!t)
|
|
2113
2114
|
return e;
|
|
2114
|
-
const n = r && r.encode ||
|
|
2115
|
+
const n = r && r.encode || Zr;
|
|
2115
2116
|
f.isFunction(r) && (r = {
|
|
2116
2117
|
serialize: r
|
|
2117
2118
|
});
|
|
@@ -2123,7 +2124,7 @@ function En(e, t, r) {
|
|
|
2123
2124
|
}
|
|
2124
2125
|
return e;
|
|
2125
2126
|
}
|
|
2126
|
-
class
|
|
2127
|
+
class $t {
|
|
2127
2128
|
constructor() {
|
|
2128
2129
|
this.handlers = [];
|
|
2129
2130
|
}
|
|
@@ -2177,42 +2178,42 @@ class Vt {
|
|
|
2177
2178
|
});
|
|
2178
2179
|
}
|
|
2179
2180
|
}
|
|
2180
|
-
const
|
|
2181
|
+
const Rn = {
|
|
2181
2182
|
silentJSONParsing: !0,
|
|
2182
2183
|
forcedJSONParsing: !0,
|
|
2183
2184
|
clarifyTimeoutError: !1
|
|
2184
|
-
},
|
|
2185
|
+
}, eo = typeof URLSearchParams < "u" ? URLSearchParams : lt, to = typeof FormData < "u" ? FormData : null, no = typeof Blob < "u" ? Blob : null, ro = {
|
|
2185
2186
|
isBrowser: !0,
|
|
2186
2187
|
classes: {
|
|
2187
|
-
URLSearchParams:
|
|
2188
|
-
FormData:
|
|
2189
|
-
Blob:
|
|
2188
|
+
URLSearchParams: eo,
|
|
2189
|
+
FormData: to,
|
|
2190
|
+
Blob: no
|
|
2190
2191
|
},
|
|
2191
2192
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
2192
|
-
}, ct = typeof window < "u" && typeof document < "u", it = typeof navigator == "object" && navigator || void 0,
|
|
2193
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
2193
|
+
}, ct = typeof window < "u" && typeof document < "u", it = typeof navigator == "object" && navigator || void 0, oo = ct && (!it || ["ReactNative", "NativeScript", "NS"].indexOf(it.product) < 0), io = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
2194
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", so = ct && window.location.href || "http://localhost", ao = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2194
2195
|
__proto__: null,
|
|
2195
2196
|
hasBrowserEnv: ct,
|
|
2196
|
-
hasStandardBrowserEnv:
|
|
2197
|
-
hasStandardBrowserWebWorkerEnv:
|
|
2197
|
+
hasStandardBrowserEnv: oo,
|
|
2198
|
+
hasStandardBrowserWebWorkerEnv: io,
|
|
2198
2199
|
navigator: it,
|
|
2199
|
-
origin:
|
|
2200
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2201
|
-
...
|
|
2202
|
-
...
|
|
2200
|
+
origin: so
|
|
2201
|
+
}, Symbol.toStringTag, { value: "Module" })), x = {
|
|
2202
|
+
...ao,
|
|
2203
|
+
...ro
|
|
2203
2204
|
};
|
|
2204
|
-
function
|
|
2205
|
-
return
|
|
2205
|
+
function uo(e, t) {
|
|
2206
|
+
return Pe(e, new x.classes.URLSearchParams(), {
|
|
2206
2207
|
visitor: function(r, n, o, i) {
|
|
2207
|
-
return
|
|
2208
|
+
return x.isNode && f.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
2208
2209
|
},
|
|
2209
2210
|
...t
|
|
2210
2211
|
});
|
|
2211
2212
|
}
|
|
2212
|
-
function
|
|
2213
|
+
function lo(e) {
|
|
2213
2214
|
return f.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
2214
2215
|
}
|
|
2215
|
-
function
|
|
2216
|
+
function co(e) {
|
|
2216
2217
|
const t = {}, r = Object.keys(e);
|
|
2217
2218
|
let n;
|
|
2218
2219
|
const o = r.length;
|
|
@@ -2221,22 +2222,22 @@ function lo(e) {
|
|
|
2221
2222
|
i = r[n], t[i] = e[i];
|
|
2222
2223
|
return t;
|
|
2223
2224
|
}
|
|
2224
|
-
function
|
|
2225
|
+
function Tn(e) {
|
|
2225
2226
|
function t(r, n, o, i) {
|
|
2226
2227
|
let s = r[i++];
|
|
2227
2228
|
if (s === "__proto__") return !0;
|
|
2228
2229
|
const a = Number.isFinite(+s), u = i >= r.length;
|
|
2229
|
-
return s = !s && f.isArray(o) ? o.length : s, u ? (f.hasOwnProp(o, s) ? o[s] = [o[s], n] : o[s] = n, !a) : ((!o[s] || !f.isObject(o[s])) && (o[s] = []), t(r, n, o[s], i) && f.isArray(o[s]) && (o[s] =
|
|
2230
|
+
return s = !s && f.isArray(o) ? o.length : s, u ? (f.hasOwnProp(o, s) ? o[s] = [o[s], n] : o[s] = n, !a) : ((!o[s] || !f.isObject(o[s])) && (o[s] = []), t(r, n, o[s], i) && f.isArray(o[s]) && (o[s] = co(o[s])), !a);
|
|
2230
2231
|
}
|
|
2231
2232
|
if (f.isFormData(e) && f.isFunction(e.entries)) {
|
|
2232
2233
|
const r = {};
|
|
2233
2234
|
return f.forEachEntry(e, (n, o) => {
|
|
2234
|
-
t(
|
|
2235
|
+
t(lo(n), o, r, 0);
|
|
2235
2236
|
}), r;
|
|
2236
2237
|
}
|
|
2237
2238
|
return null;
|
|
2238
2239
|
}
|
|
2239
|
-
function
|
|
2240
|
+
function fo(e, t, r) {
|
|
2240
2241
|
if (f.isString(e))
|
|
2241
2242
|
try {
|
|
2242
2243
|
return (t || JSON.parse)(e), f.trim(e);
|
|
@@ -2247,12 +2248,12 @@ function co(e, t, r) {
|
|
|
2247
2248
|
return (r || JSON.stringify)(e);
|
|
2248
2249
|
}
|
|
2249
2250
|
const ge = {
|
|
2250
|
-
transitional:
|
|
2251
|
+
transitional: Rn,
|
|
2251
2252
|
adapter: ["xhr", "http", "fetch"],
|
|
2252
2253
|
transformRequest: [function(t, r) {
|
|
2253
2254
|
const n = r.getContentType() || "", o = n.indexOf("application/json") > -1, i = f.isObject(t);
|
|
2254
2255
|
if (i && f.isHTMLForm(t) && (t = new FormData(t)), f.isFormData(t))
|
|
2255
|
-
return o ? JSON.stringify(
|
|
2256
|
+
return o ? JSON.stringify(Tn(t)) : t;
|
|
2256
2257
|
if (f.isArrayBuffer(t) || f.isBuffer(t) || f.isStream(t) || f.isFile(t) || f.isBlob(t) || f.isReadableStream(t))
|
|
2257
2258
|
return t;
|
|
2258
2259
|
if (f.isArrayBufferView(t))
|
|
@@ -2262,17 +2263,17 @@ const ge = {
|
|
|
2262
2263
|
let a;
|
|
2263
2264
|
if (i) {
|
|
2264
2265
|
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
2265
|
-
return
|
|
2266
|
+
return uo(t, this.formSerializer).toString();
|
|
2266
2267
|
if ((a = f.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
|
2267
2268
|
const u = this.env && this.env.FormData;
|
|
2268
|
-
return
|
|
2269
|
+
return Pe(
|
|
2269
2270
|
a ? { "files[]": t } : t,
|
|
2270
2271
|
u && new u(),
|
|
2271
2272
|
this.formSerializer
|
|
2272
2273
|
);
|
|
2273
2274
|
}
|
|
2274
2275
|
}
|
|
2275
|
-
return i || o ? (r.setContentType("application/json", !1),
|
|
2276
|
+
return i || o ? (r.setContentType("application/json", !1), fo(t)) : t;
|
|
2276
2277
|
}],
|
|
2277
2278
|
transformResponse: [function(t) {
|
|
2278
2279
|
const r = this.transitional || ge.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
|
|
@@ -2299,8 +2300,8 @@ const ge = {
|
|
|
2299
2300
|
maxContentLength: -1,
|
|
2300
2301
|
maxBodyLength: -1,
|
|
2301
2302
|
env: {
|
|
2302
|
-
FormData:
|
|
2303
|
-
Blob:
|
|
2303
|
+
FormData: x.classes.FormData,
|
|
2304
|
+
Blob: x.classes.Blob
|
|
2304
2305
|
},
|
|
2305
2306
|
validateStatus: function(t) {
|
|
2306
2307
|
return t >= 200 && t < 300;
|
|
@@ -2315,7 +2316,7 @@ const ge = {
|
|
|
2315
2316
|
f.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
2316
2317
|
ge.headers[e] = {};
|
|
2317
2318
|
});
|
|
2318
|
-
const
|
|
2319
|
+
const ho = f.toObjectSet([
|
|
2319
2320
|
"age",
|
|
2320
2321
|
"authorization",
|
|
2321
2322
|
"content-length",
|
|
@@ -2333,28 +2334,28 @@ const fo = f.toObjectSet([
|
|
|
2333
2334
|
"referer",
|
|
2334
2335
|
"retry-after",
|
|
2335
2336
|
"user-agent"
|
|
2336
|
-
]),
|
|
2337
|
+
]), po = (e) => {
|
|
2337
2338
|
const t = {};
|
|
2338
2339
|
let r, n, o;
|
|
2339
2340
|
return e && e.split(`
|
|
2340
2341
|
`).forEach(function(s) {
|
|
2341
|
-
o = s.indexOf(":"), r = s.substring(0, o).trim().toLowerCase(), n = s.substring(o + 1).trim(), !(!r || t[r] &&
|
|
2342
|
+
o = s.indexOf(":"), r = s.substring(0, o).trim().toLowerCase(), n = s.substring(o + 1).trim(), !(!r || t[r] && ho[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
|
|
2342
2343
|
}), t;
|
|
2343
|
-
},
|
|
2344
|
+
}, Vt = Symbol("internals");
|
|
2344
2345
|
function ce(e) {
|
|
2345
2346
|
return e && String(e).trim().toLowerCase();
|
|
2346
2347
|
}
|
|
2347
2348
|
function Ce(e) {
|
|
2348
2349
|
return e === !1 || e == null ? e : f.isArray(e) ? e.map(Ce) : String(e);
|
|
2349
2350
|
}
|
|
2350
|
-
function
|
|
2351
|
+
function go(e) {
|
|
2351
2352
|
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
2352
2353
|
let n;
|
|
2353
2354
|
for (; n = r.exec(e); )
|
|
2354
2355
|
t[n[1]] = n[2];
|
|
2355
2356
|
return t;
|
|
2356
2357
|
}
|
|
2357
|
-
const
|
|
2358
|
+
const mo = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
2358
2359
|
function Ze(e, t, r, n, o) {
|
|
2359
2360
|
if (f.isFunction(n))
|
|
2360
2361
|
return n.call(this, t, r);
|
|
@@ -2365,10 +2366,10 @@ function Ze(e, t, r, n, o) {
|
|
|
2365
2366
|
return n.test(t);
|
|
2366
2367
|
}
|
|
2367
2368
|
}
|
|
2368
|
-
function
|
|
2369
|
+
function yo(e) {
|
|
2369
2370
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
|
|
2370
2371
|
}
|
|
2371
|
-
function
|
|
2372
|
+
function wo(e, t) {
|
|
2372
2373
|
const r = f.toCamelCase(" " + t);
|
|
2373
2374
|
["get", "set", "has"].forEach((n) => {
|
|
2374
2375
|
Object.defineProperty(e, n + r, {
|
|
@@ -2379,7 +2380,7 @@ function yo(e, t) {
|
|
|
2379
2380
|
});
|
|
2380
2381
|
});
|
|
2381
2382
|
}
|
|
2382
|
-
let
|
|
2383
|
+
let M = class {
|
|
2383
2384
|
constructor(t) {
|
|
2384
2385
|
t && this.set(t);
|
|
2385
2386
|
}
|
|
@@ -2395,8 +2396,8 @@ let k = class {
|
|
|
2395
2396
|
const s = (a, u) => f.forEach(a, (l, c) => i(l, c, u));
|
|
2396
2397
|
if (f.isPlainObject(t) || t instanceof this.constructor)
|
|
2397
2398
|
s(t, r);
|
|
2398
|
-
else if (f.isString(t) && (t = t.trim()) && !
|
|
2399
|
-
s(
|
|
2399
|
+
else if (f.isString(t) && (t = t.trim()) && !mo(t))
|
|
2400
|
+
s(po(t), r);
|
|
2400
2401
|
else if (f.isObject(t) && f.isIterable(t)) {
|
|
2401
2402
|
let a = {}, u, l;
|
|
2402
2403
|
for (const c of t) {
|
|
@@ -2417,7 +2418,7 @@ let k = class {
|
|
|
2417
2418
|
if (!r)
|
|
2418
2419
|
return o;
|
|
2419
2420
|
if (r === !0)
|
|
2420
|
-
return
|
|
2421
|
+
return go(o);
|
|
2421
2422
|
if (f.isFunction(r))
|
|
2422
2423
|
return r.call(this, o, n);
|
|
2423
2424
|
if (f.isRegExp(r))
|
|
@@ -2461,7 +2462,7 @@ let k = class {
|
|
|
2461
2462
|
r[s] = Ce(o), delete r[i];
|
|
2462
2463
|
return;
|
|
2463
2464
|
}
|
|
2464
|
-
const a = t ?
|
|
2465
|
+
const a = t ? yo(i) : String(i).trim();
|
|
2465
2466
|
a !== i && delete r[i], r[a] = Ce(o), n[a] = !0;
|
|
2466
2467
|
}), this;
|
|
2467
2468
|
}
|
|
@@ -2495,18 +2496,18 @@ let k = class {
|
|
|
2495
2496
|
return r.forEach((o) => n.set(o)), n;
|
|
2496
2497
|
}
|
|
2497
2498
|
static accessor(t) {
|
|
2498
|
-
const n = (this[
|
|
2499
|
+
const n = (this[Vt] = this[Vt] = {
|
|
2499
2500
|
accessors: {}
|
|
2500
2501
|
}).accessors, o = this.prototype;
|
|
2501
2502
|
function i(s) {
|
|
2502
2503
|
const a = ce(s);
|
|
2503
|
-
n[a] || (
|
|
2504
|
+
n[a] || (wo(o, s), n[a] = !0);
|
|
2504
2505
|
}
|
|
2505
2506
|
return f.isArray(t) ? t.forEach(i) : i(t), this;
|
|
2506
2507
|
}
|
|
2507
2508
|
};
|
|
2508
|
-
|
|
2509
|
-
f.reduceDescriptors(
|
|
2509
|
+
M.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
2510
|
+
f.reduceDescriptors(M.prototype, ({ value: e }, t) => {
|
|
2510
2511
|
let r = t[0].toUpperCase() + t.slice(1);
|
|
2511
2512
|
return {
|
|
2512
2513
|
get: () => e,
|
|
@@ -2515,15 +2516,15 @@ f.reduceDescriptors(k.prototype, ({ value: e }, t) => {
|
|
|
2515
2516
|
}
|
|
2516
2517
|
};
|
|
2517
2518
|
});
|
|
2518
|
-
f.freezeMethods(
|
|
2519
|
+
f.freezeMethods(M);
|
|
2519
2520
|
function et(e, t) {
|
|
2520
|
-
const r = this || ge, n = t || r, o =
|
|
2521
|
+
const r = this || ge, n = t || r, o = M.from(n.headers);
|
|
2521
2522
|
let i = n.data;
|
|
2522
2523
|
return f.forEach(e, function(a) {
|
|
2523
2524
|
i = a.call(r, i, o.normalize(), t ? t.status : void 0);
|
|
2524
2525
|
}), o.normalize(), i;
|
|
2525
2526
|
}
|
|
2526
|
-
function
|
|
2527
|
+
function An(e) {
|
|
2527
2528
|
return !!(e && e.__CANCEL__);
|
|
2528
2529
|
}
|
|
2529
2530
|
function ae(e, t, r) {
|
|
@@ -2532,7 +2533,7 @@ function ae(e, t, r) {
|
|
|
2532
2533
|
f.inherits(ae, I, {
|
|
2533
2534
|
__CANCEL__: !0
|
|
2534
2535
|
});
|
|
2535
|
-
function
|
|
2536
|
+
function Bn(e, t, r) {
|
|
2536
2537
|
const n = r.config.validateStatus;
|
|
2537
2538
|
!r.status || !n || n(r.status) ? e(r) : t(new I(
|
|
2538
2539
|
"Request failed with status code " + r.status,
|
|
@@ -2542,11 +2543,11 @@ function Tn(e, t, r) {
|
|
|
2542
2543
|
r
|
|
2543
2544
|
));
|
|
2544
2545
|
}
|
|
2545
|
-
function
|
|
2546
|
+
function bo(e) {
|
|
2546
2547
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
2547
2548
|
return t && t[1] || "";
|
|
2548
2549
|
}
|
|
2549
|
-
function
|
|
2550
|
+
function Eo(e, t) {
|
|
2550
2551
|
e = e || 10;
|
|
2551
2552
|
const r = new Array(e), n = new Array(e);
|
|
2552
2553
|
let o = 0, i = 0, s;
|
|
@@ -2562,7 +2563,7 @@ function bo(e, t) {
|
|
|
2562
2563
|
return y ? Math.round(m * 1e3 / y) : void 0;
|
|
2563
2564
|
};
|
|
2564
2565
|
}
|
|
2565
|
-
function
|
|
2566
|
+
function Co(e, t) {
|
|
2566
2567
|
let r = 0, n = 1e3 / t, o, i;
|
|
2567
2568
|
const s = (l, c = Date.now()) => {
|
|
2568
2569
|
r = c, o = null, i && (clearTimeout(i), i = null), e(...l);
|
|
@@ -2576,8 +2577,8 @@ function Eo(e, t) {
|
|
|
2576
2577
|
}
|
|
2577
2578
|
const Re = (e, t, r = 3) => {
|
|
2578
2579
|
let n = 0;
|
|
2579
|
-
const o =
|
|
2580
|
-
return
|
|
2580
|
+
const o = Eo(50, 250);
|
|
2581
|
+
return Co((i) => {
|
|
2581
2582
|
const s = i.loaded, a = i.lengthComputable ? i.total : void 0, u = s - n, l = o(u), c = s <= a;
|
|
2582
2583
|
n = s;
|
|
2583
2584
|
const h = {
|
|
@@ -2600,10 +2601,10 @@ const Re = (e, t, r = 3) => {
|
|
|
2600
2601
|
total: e,
|
|
2601
2602
|
loaded: n
|
|
2602
2603
|
}), t[1]];
|
|
2603
|
-
}, Kt = (e) => (...t) => f.asap(() => e(...t)),
|
|
2604
|
-
new URL(
|
|
2605
|
-
|
|
2606
|
-
) : () => !0,
|
|
2604
|
+
}, Kt = (e) => (...t) => f.asap(() => e(...t)), So = x.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, x.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
|
|
2605
|
+
new URL(x.origin),
|
|
2606
|
+
x.navigator && /(msie|trident)/i.test(x.navigator.userAgent)
|
|
2607
|
+
) : () => !0, Ro = x.hasStandardBrowserEnv ? (
|
|
2607
2608
|
// Standard browser envs support document.cookie
|
|
2608
2609
|
{
|
|
2609
2610
|
write(e, t, r, n, o, i, s) {
|
|
@@ -2632,17 +2633,17 @@ const Re = (e, t, r = 3) => {
|
|
|
2632
2633
|
}
|
|
2633
2634
|
}
|
|
2634
2635
|
);
|
|
2635
|
-
function
|
|
2636
|
+
function To(e) {
|
|
2636
2637
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
2637
2638
|
}
|
|
2638
|
-
function
|
|
2639
|
+
function Ao(e, t) {
|
|
2639
2640
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
2640
2641
|
}
|
|
2641
|
-
function
|
|
2642
|
-
let n = !
|
|
2643
|
-
return e && (n || r == !1) ?
|
|
2642
|
+
function Pn(e, t, r) {
|
|
2643
|
+
let n = !To(t);
|
|
2644
|
+
return e && (n || r == !1) ? Ao(e, t) : t;
|
|
2644
2645
|
}
|
|
2645
|
-
const Wt = (e) => e instanceof
|
|
2646
|
+
const Wt = (e) => e instanceof M ? { ...e } : e;
|
|
2646
2647
|
function X(e, t) {
|
|
2647
2648
|
t = t || {};
|
|
2648
2649
|
const r = {};
|
|
@@ -2707,14 +2708,14 @@ function X(e, t) {
|
|
|
2707
2708
|
f.isUndefined(m) && h !== a || (r[c] = m);
|
|
2708
2709
|
}), r;
|
|
2709
2710
|
}
|
|
2710
|
-
const
|
|
2711
|
+
const Nn = (e) => {
|
|
2711
2712
|
const t = X({}, e);
|
|
2712
2713
|
let { data: r, withXSRFToken: n, xsrfHeaderName: o, xsrfCookieName: i, headers: s, auth: a } = t;
|
|
2713
|
-
if (t.headers = s =
|
|
2714
|
+
if (t.headers = s = M.from(s), t.url = Sn(Pn(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && s.set(
|
|
2714
2715
|
"Authorization",
|
|
2715
2716
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
2716
2717
|
), f.isFormData(r)) {
|
|
2717
|
-
if (
|
|
2718
|
+
if (x.hasStandardBrowserEnv || x.hasStandardBrowserWebWorkerEnv)
|
|
2718
2719
|
s.setContentType(void 0);
|
|
2719
2720
|
else if (f.isFunction(r.getHeaders)) {
|
|
2720
2721
|
const u = r.getHeaders(), l = ["content-type", "content-length"];
|
|
@@ -2723,16 +2724,16 @@ const Bn = (e) => {
|
|
|
2723
2724
|
});
|
|
2724
2725
|
}
|
|
2725
2726
|
}
|
|
2726
|
-
if (
|
|
2727
|
-
const u = o && i &&
|
|
2727
|
+
if (x.hasStandardBrowserEnv && (n && f.isFunction(n) && (n = n(t)), n || n !== !1 && So(t.url))) {
|
|
2728
|
+
const u = o && i && Ro.read(i);
|
|
2728
2729
|
u && s.set(o, u);
|
|
2729
2730
|
}
|
|
2730
2731
|
return t;
|
|
2731
|
-
},
|
|
2732
|
+
}, Bo = typeof XMLHttpRequest < "u", Po = Bo && function(e) {
|
|
2732
2733
|
return new Promise(function(r, n) {
|
|
2733
|
-
const o =
|
|
2734
|
+
const o = Nn(e);
|
|
2734
2735
|
let i = o.data;
|
|
2735
|
-
const s =
|
|
2736
|
+
const s = M.from(o.headers).normalize();
|
|
2736
2737
|
let { responseType: a, onUploadProgress: u, onDownloadProgress: l } = o, c, h, m, y, d;
|
|
2737
2738
|
function p() {
|
|
2738
2739
|
y && y(), d && d(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
|
|
@@ -2742,7 +2743,7 @@ const Bn = (e) => {
|
|
|
2742
2743
|
function w() {
|
|
2743
2744
|
if (!g)
|
|
2744
2745
|
return;
|
|
2745
|
-
const E =
|
|
2746
|
+
const E = M.from(
|
|
2746
2747
|
"getAllResponseHeaders" in g && g.getAllResponseHeaders()
|
|
2747
2748
|
), _ = {
|
|
2748
2749
|
data: !a || a === "text" || a === "json" ? g.responseText : g.response,
|
|
@@ -2752,7 +2753,7 @@ const Bn = (e) => {
|
|
|
2752
2753
|
config: e,
|
|
2753
2754
|
request: g
|
|
2754
2755
|
};
|
|
2755
|
-
|
|
2756
|
+
Bn(function(S) {
|
|
2756
2757
|
r(S), p();
|
|
2757
2758
|
}, function(S) {
|
|
2758
2759
|
n(S), p();
|
|
@@ -2767,7 +2768,7 @@ const Bn = (e) => {
|
|
|
2767
2768
|
b.event = R || null, n(b), g = null;
|
|
2768
2769
|
}, g.ontimeout = function() {
|
|
2769
2770
|
let R = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
2770
|
-
const _ = o.transitional ||
|
|
2771
|
+
const _ = o.transitional || Rn;
|
|
2771
2772
|
o.timeoutErrorMessage && (R = o.timeoutErrorMessage), n(new I(
|
|
2772
2773
|
R,
|
|
2773
2774
|
_.clarifyTimeoutError ? I.ETIMEDOUT : I.ECONNABORTED,
|
|
@@ -2779,9 +2780,9 @@ const Bn = (e) => {
|
|
|
2779
2780
|
}), f.isUndefined(o.withCredentials) || (g.withCredentials = !!o.withCredentials), a && a !== "json" && (g.responseType = o.responseType), l && ([m, d] = Re(l, !0), g.addEventListener("progress", m)), u && g.upload && ([h, y] = Re(u), g.upload.addEventListener("progress", h), g.upload.addEventListener("loadend", y)), (o.cancelToken || o.signal) && (c = (E) => {
|
|
2780
2781
|
g && (n(!E || E.type ? new ae(null, e, g) : E), g.abort(), g = null);
|
|
2781
2782
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
2782
|
-
const
|
|
2783
|
-
if (
|
|
2784
|
-
n(new I("Unsupported protocol " +
|
|
2783
|
+
const N = bo(o.url);
|
|
2784
|
+
if (N && x.protocols.indexOf(N) === -1) {
|
|
2785
|
+
n(new I("Unsupported protocol " + N + ":", I.ERR_BAD_REQUEST, e));
|
|
2785
2786
|
return;
|
|
2786
2787
|
}
|
|
2787
2788
|
g.send(i || null);
|
|
@@ -2809,7 +2810,7 @@ const Bn = (e) => {
|
|
|
2809
2810
|
const { signal: u } = n;
|
|
2810
2811
|
return u.unsubscribe = () => f.asap(a), u;
|
|
2811
2812
|
}
|
|
2812
|
-
},
|
|
2813
|
+
}, Oo = function* (e, t) {
|
|
2813
2814
|
let r = e.byteLength;
|
|
2814
2815
|
if (r < t) {
|
|
2815
2816
|
yield e;
|
|
@@ -2818,10 +2819,10 @@ const Bn = (e) => {
|
|
|
2818
2819
|
let n = 0, o;
|
|
2819
2820
|
for (; n < r; )
|
|
2820
2821
|
o = n + t, yield e.slice(n, o), n = o;
|
|
2821
|
-
},
|
|
2822
|
-
for await (const r of
|
|
2823
|
-
yield*
|
|
2824
|
-
},
|
|
2822
|
+
}, Lo = async function* (e, t) {
|
|
2823
|
+
for await (const r of Io(e))
|
|
2824
|
+
yield* Oo(r, t);
|
|
2825
|
+
}, Io = async function* (e) {
|
|
2825
2826
|
if (e[Symbol.asyncIterator]) {
|
|
2826
2827
|
yield* e;
|
|
2827
2828
|
return;
|
|
@@ -2838,7 +2839,7 @@ const Bn = (e) => {
|
|
|
2838
2839
|
await t.cancel();
|
|
2839
2840
|
}
|
|
2840
2841
|
}, Gt = (e, t, r, n) => {
|
|
2841
|
-
const o =
|
|
2842
|
+
const o = Lo(e, t);
|
|
2842
2843
|
let i = 0, s, a = (u) => {
|
|
2843
2844
|
s || (s = !0, n && n(u));
|
|
2844
2845
|
};
|
|
@@ -2866,7 +2867,7 @@ const Bn = (e) => {
|
|
|
2866
2867
|
}, {
|
|
2867
2868
|
highWaterMark: 2
|
|
2868
2869
|
});
|
|
2869
|
-
}, Qt = 64 * 1024, { isFunction: be } = f,
|
|
2870
|
+
}, Qt = 64 * 1024, { isFunction: be } = f, _o = (({ Request: e, Response: t }) => ({
|
|
2870
2871
|
Request: e,
|
|
2871
2872
|
Response: t
|
|
2872
2873
|
}))(f.global), {
|
|
@@ -2878,16 +2879,16 @@ const Bn = (e) => {
|
|
|
2878
2879
|
} catch {
|
|
2879
2880
|
return !1;
|
|
2880
2881
|
}
|
|
2881
|
-
},
|
|
2882
|
+
}, vo = (e) => {
|
|
2882
2883
|
e = f.merge.call({
|
|
2883
2884
|
skipUndefined: !0
|
|
2884
|
-
},
|
|
2885
|
+
}, _o, e);
|
|
2885
2886
|
const { fetch: t, Request: r, Response: n } = e, o = t ? be(t) : typeof fetch == "function", i = be(r), s = be(n);
|
|
2886
2887
|
if (!o)
|
|
2887
2888
|
return !1;
|
|
2888
2889
|
const a = o && be(Yt), u = o && (typeof Xt == "function" ? /* @__PURE__ */ ((d) => (p) => d.encode(p))(new Xt()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), l = i && a && Zt(() => {
|
|
2889
2890
|
let d = !1;
|
|
2890
|
-
const p = new r(
|
|
2891
|
+
const p = new r(x.origin, {
|
|
2891
2892
|
body: new Yt(),
|
|
2892
2893
|
method: "POST",
|
|
2893
2894
|
get duplex() {
|
|
@@ -2912,7 +2913,7 @@ const Bn = (e) => {
|
|
|
2912
2913
|
if (f.isBlob(d))
|
|
2913
2914
|
return d.size;
|
|
2914
2915
|
if (f.isSpecCompliantForm(d))
|
|
2915
|
-
return (await new r(
|
|
2916
|
+
return (await new r(x.origin, {
|
|
2916
2917
|
method: "POST",
|
|
2917
2918
|
body: d
|
|
2918
2919
|
}).arrayBuffer()).byteLength;
|
|
@@ -2929,7 +2930,7 @@ const Bn = (e) => {
|
|
|
2929
2930
|
url: p,
|
|
2930
2931
|
method: g,
|
|
2931
2932
|
data: w,
|
|
2932
|
-
signal:
|
|
2933
|
+
signal: N,
|
|
2933
2934
|
cancelToken: E,
|
|
2934
2935
|
timeout: R,
|
|
2935
2936
|
onDownloadProgress: _,
|
|
@@ -2938,11 +2939,11 @@ const Bn = (e) => {
|
|
|
2938
2939
|
headers: A,
|
|
2939
2940
|
withCredentials: C = "same-origin",
|
|
2940
2941
|
fetchOptions: L
|
|
2941
|
-
} =
|
|
2942
|
+
} = Nn(d), B = t || fetch;
|
|
2942
2943
|
S = S ? (S + "").toLowerCase() : "text";
|
|
2943
|
-
let
|
|
2944
|
-
const O =
|
|
2945
|
-
|
|
2944
|
+
let P = No([N, E && E.toAbortSignal()], R), T = null;
|
|
2945
|
+
const O = P && P.unsubscribe && (() => {
|
|
2946
|
+
P.unsubscribe();
|
|
2946
2947
|
});
|
|
2947
2948
|
let q;
|
|
2948
2949
|
try {
|
|
@@ -2951,8 +2952,8 @@ const Bn = (e) => {
|
|
|
2951
2952
|
method: "POST",
|
|
2952
2953
|
body: w,
|
|
2953
2954
|
duplex: "half"
|
|
2954
|
-
}),
|
|
2955
|
-
if (f.isFormData(w) && (
|
|
2955
|
+
}), V;
|
|
2956
|
+
if (f.isFormData(w) && (V = D.headers.get("content-type")) && A.setContentType(V), D.body) {
|
|
2956
2957
|
const [G, te] = Jt(
|
|
2957
2958
|
q,
|
|
2958
2959
|
Re(Kt(b))
|
|
@@ -2963,7 +2964,7 @@ const Bn = (e) => {
|
|
|
2963
2964
|
f.isString(C) || (C = C ? "include" : "omit");
|
|
2964
2965
|
const U = i && "credentials" in r.prototype, me = {
|
|
2965
2966
|
...L,
|
|
2966
|
-
signal:
|
|
2967
|
+
signal: P,
|
|
2967
2968
|
method: g.toUpperCase(),
|
|
2968
2969
|
headers: A.normalize().toJSON(),
|
|
2969
2970
|
body: w,
|
|
@@ -2978,8 +2979,8 @@ const Bn = (e) => {
|
|
|
2978
2979
|
["status", "statusText", "headers"].forEach((ne) => {
|
|
2979
2980
|
D[ne] = j[ne];
|
|
2980
2981
|
});
|
|
2981
|
-
const
|
|
2982
|
-
|
|
2982
|
+
const V = f.toFiniteNumber(j.headers.get("content-length")), [G, te] = _ && Jt(
|
|
2983
|
+
V,
|
|
2983
2984
|
Re(Kt(_), !0)
|
|
2984
2985
|
) || [];
|
|
2985
2986
|
j = new n(
|
|
@@ -2991,10 +2992,10 @@ const Bn = (e) => {
|
|
|
2991
2992
|
}
|
|
2992
2993
|
S = S || "text";
|
|
2993
2994
|
let ue = await h[f.findKey(h, S) || "text"](j, d);
|
|
2994
|
-
return !ye && O && O(), await new Promise((D,
|
|
2995
|
-
|
|
2995
|
+
return !ye && O && O(), await new Promise((D, V) => {
|
|
2996
|
+
Bn(D, V, {
|
|
2996
2997
|
data: ue,
|
|
2997
|
-
headers:
|
|
2998
|
+
headers: M.from(j.headers),
|
|
2998
2999
|
status: j.status,
|
|
2999
3000
|
statusText: j.statusText,
|
|
3000
3001
|
config: d,
|
|
@@ -3010,24 +3011,24 @@ const Bn = (e) => {
|
|
|
3010
3011
|
) : I.from(U, U && U.code, d, T);
|
|
3011
3012
|
}
|
|
3012
3013
|
};
|
|
3013
|
-
},
|
|
3014
|
+
}, Uo = /* @__PURE__ */ new Map(), On = (e) => {
|
|
3014
3015
|
let t = e && e.env || {};
|
|
3015
3016
|
const { fetch: r, Request: n, Response: o } = t, i = [
|
|
3016
3017
|
n,
|
|
3017
3018
|
o,
|
|
3018
3019
|
r
|
|
3019
3020
|
];
|
|
3020
|
-
let s = i.length, a = s, u, l, c =
|
|
3021
|
+
let s = i.length, a = s, u, l, c = Uo;
|
|
3021
3022
|
for (; a--; )
|
|
3022
|
-
u = i[a], l = c.get(u), l === void 0 && c.set(u, l = a ? /* @__PURE__ */ new Map() :
|
|
3023
|
+
u = i[a], l = c.get(u), l === void 0 && c.set(u, l = a ? /* @__PURE__ */ new Map() : vo(t)), c = l;
|
|
3023
3024
|
return l;
|
|
3024
3025
|
};
|
|
3025
|
-
|
|
3026
|
+
On();
|
|
3026
3027
|
const ft = {
|
|
3027
|
-
http:
|
|
3028
|
-
xhr:
|
|
3028
|
+
http: Qr,
|
|
3029
|
+
xhr: Po,
|
|
3029
3030
|
fetch: {
|
|
3030
|
-
get:
|
|
3031
|
+
get: On
|
|
3031
3032
|
}
|
|
3032
3033
|
};
|
|
3033
3034
|
f.forEach(ft, (e, t) => {
|
|
@@ -3039,7 +3040,7 @@ f.forEach(ft, (e, t) => {
|
|
|
3039
3040
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
3040
3041
|
}
|
|
3041
3042
|
});
|
|
3042
|
-
const en = (e) => `- ${e}`,
|
|
3043
|
+
const en = (e) => `- ${e}`, ko = (e) => f.isFunction(e) || e === null || e === !1;
|
|
3043
3044
|
function xo(e, t) {
|
|
3044
3045
|
e = f.isArray(e) ? e : [e];
|
|
3045
3046
|
const { length: r } = e;
|
|
@@ -3048,7 +3049,7 @@ function xo(e, t) {
|
|
|
3048
3049
|
for (let s = 0; s < r; s++) {
|
|
3049
3050
|
n = e[s];
|
|
3050
3051
|
let a;
|
|
3051
|
-
if (o = n, !
|
|
3052
|
+
if (o = n, !ko(n) && (o = ft[(a = String(n)).toLowerCase()], o === void 0))
|
|
3052
3053
|
throw new I(`Unknown adapter '${a}'`);
|
|
3053
3054
|
if (o && (f.isFunction(o) || (o = o.get(t))))
|
|
3054
3055
|
break;
|
|
@@ -3068,7 +3069,7 @@ function xo(e, t) {
|
|
|
3068
3069
|
}
|
|
3069
3070
|
return o;
|
|
3070
3071
|
}
|
|
3071
|
-
const
|
|
3072
|
+
const Ln = {
|
|
3072
3073
|
/**
|
|
3073
3074
|
* Resolve an adapter from a list of adapter names or functions.
|
|
3074
3075
|
* @type {Function}
|
|
@@ -3085,33 +3086,33 @@ function tt(e) {
|
|
|
3085
3086
|
throw new ae(null, e);
|
|
3086
3087
|
}
|
|
3087
3088
|
function tn(e) {
|
|
3088
|
-
return tt(e), e.headers =
|
|
3089
|
+
return tt(e), e.headers = M.from(e.headers), e.data = et.call(
|
|
3089
3090
|
e,
|
|
3090
3091
|
e.transformRequest
|
|
3091
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
3092
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ln.getAdapter(e.adapter || ge.adapter, e)(e).then(function(n) {
|
|
3092
3093
|
return tt(e), n.data = et.call(
|
|
3093
3094
|
e,
|
|
3094
3095
|
e.transformResponse,
|
|
3095
3096
|
n
|
|
3096
|
-
), n.headers =
|
|
3097
|
+
), n.headers = M.from(n.headers), n;
|
|
3097
3098
|
}, function(n) {
|
|
3098
|
-
return
|
|
3099
|
+
return An(n) || (tt(e), n && n.response && (n.response.data = et.call(
|
|
3099
3100
|
e,
|
|
3100
3101
|
e.transformResponse,
|
|
3101
3102
|
n.response
|
|
3102
|
-
), n.response.headers =
|
|
3103
|
+
), n.response.headers = M.from(n.response.headers))), Promise.reject(n);
|
|
3103
3104
|
});
|
|
3104
3105
|
}
|
|
3105
|
-
const
|
|
3106
|
+
const In = "1.13.1", Ne = {};
|
|
3106
3107
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
3107
|
-
|
|
3108
|
+
Ne[e] = function(n) {
|
|
3108
3109
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
3109
3110
|
};
|
|
3110
3111
|
});
|
|
3111
3112
|
const nn = {};
|
|
3112
|
-
|
|
3113
|
+
Ne.transitional = function(t, r, n) {
|
|
3113
3114
|
function o(i, s) {
|
|
3114
|
-
return "[Axios v" +
|
|
3115
|
+
return "[Axios v" + In + "] Transitional option '" + i + "'" + s + (n ? ". " + n : "");
|
|
3115
3116
|
}
|
|
3116
3117
|
return (i, s, a) => {
|
|
3117
3118
|
if (t === !1)
|
|
@@ -3127,7 +3128,7 @@ Pe.transitional = function(t, r, n) {
|
|
|
3127
3128
|
)), t ? t(i, s, a) : !0;
|
|
3128
3129
|
};
|
|
3129
3130
|
};
|
|
3130
|
-
|
|
3131
|
+
Ne.spelling = function(t) {
|
|
3131
3132
|
return (r, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
|
|
3132
3133
|
};
|
|
3133
3134
|
function Fo(e, t, r) {
|
|
@@ -3149,13 +3150,13 @@ function Fo(e, t, r) {
|
|
|
3149
3150
|
}
|
|
3150
3151
|
const Se = {
|
|
3151
3152
|
assertOptions: Fo,
|
|
3152
|
-
validators:
|
|
3153
|
-
},
|
|
3153
|
+
validators: Ne
|
|
3154
|
+
}, $ = Se.validators;
|
|
3154
3155
|
let Y = class {
|
|
3155
3156
|
constructor(t) {
|
|
3156
3157
|
this.defaults = t || {}, this.interceptors = {
|
|
3157
|
-
request: new
|
|
3158
|
-
response: new
|
|
3158
|
+
request: new $t(),
|
|
3159
|
+
response: new $t()
|
|
3159
3160
|
};
|
|
3160
3161
|
}
|
|
3161
3162
|
/**
|
|
@@ -3187,17 +3188,17 @@ let Y = class {
|
|
|
3187
3188
|
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = X(this.defaults, r);
|
|
3188
3189
|
const { transitional: n, paramsSerializer: o, headers: i } = r;
|
|
3189
3190
|
n !== void 0 && Se.assertOptions(n, {
|
|
3190
|
-
silentJSONParsing:
|
|
3191
|
-
forcedJSONParsing:
|
|
3192
|
-
clarifyTimeoutError:
|
|
3191
|
+
silentJSONParsing: $.transitional($.boolean),
|
|
3192
|
+
forcedJSONParsing: $.transitional($.boolean),
|
|
3193
|
+
clarifyTimeoutError: $.transitional($.boolean)
|
|
3193
3194
|
}, !1), o != null && (f.isFunction(o) ? r.paramsSerializer = {
|
|
3194
3195
|
serialize: o
|
|
3195
3196
|
} : Se.assertOptions(o, {
|
|
3196
|
-
encode:
|
|
3197
|
-
serialize:
|
|
3197
|
+
encode: $.function,
|
|
3198
|
+
serialize: $.function
|
|
3198
3199
|
}, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), Se.assertOptions(r, {
|
|
3199
|
-
baseUrl:
|
|
3200
|
-
withXsrfToken:
|
|
3200
|
+
baseUrl: $.spelling("baseURL"),
|
|
3201
|
+
withXsrfToken: $.spelling("withXSRFToken")
|
|
3201
3202
|
}, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
3202
3203
|
let s = i && f.merge(
|
|
3203
3204
|
i.common,
|
|
@@ -3208,7 +3209,7 @@ let Y = class {
|
|
|
3208
3209
|
(d) => {
|
|
3209
3210
|
delete i[d];
|
|
3210
3211
|
}
|
|
3211
|
-
), r.headers =
|
|
3212
|
+
), r.headers = M.concat(s, i);
|
|
3212
3213
|
const a = [];
|
|
3213
3214
|
let u = !0;
|
|
3214
3215
|
this.interceptors.request.forEach(function(p) {
|
|
@@ -3247,8 +3248,8 @@ let Y = class {
|
|
|
3247
3248
|
}
|
|
3248
3249
|
getUri(t) {
|
|
3249
3250
|
t = X(this.defaults, t);
|
|
3250
|
-
const r =
|
|
3251
|
-
return
|
|
3251
|
+
const r = Pn(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
3252
|
+
return Sn(r, t.params, t.paramsSerializer);
|
|
3252
3253
|
}
|
|
3253
3254
|
};
|
|
3254
3255
|
f.forEach(["delete", "get", "head", "options"], function(t) {
|
|
@@ -3275,7 +3276,7 @@ f.forEach(["post", "put", "patch"], function(t) {
|
|
|
3275
3276
|
}
|
|
3276
3277
|
Y.prototype[t] = r(), Y.prototype[t + "Form"] = r(!0);
|
|
3277
3278
|
});
|
|
3278
|
-
let Mo = class
|
|
3279
|
+
let Mo = class _n {
|
|
3279
3280
|
constructor(t) {
|
|
3280
3281
|
if (typeof t != "function")
|
|
3281
3282
|
throw new TypeError("executor must be a function.");
|
|
@@ -3341,19 +3342,19 @@ let Mo = class Ln {
|
|
|
3341
3342
|
static source() {
|
|
3342
3343
|
let t;
|
|
3343
3344
|
return {
|
|
3344
|
-
token: new
|
|
3345
|
+
token: new _n(function(o) {
|
|
3345
3346
|
t = o;
|
|
3346
3347
|
}),
|
|
3347
3348
|
cancel: t
|
|
3348
3349
|
};
|
|
3349
3350
|
}
|
|
3350
3351
|
};
|
|
3351
|
-
function
|
|
3352
|
+
function Do(e) {
|
|
3352
3353
|
return function(r) {
|
|
3353
3354
|
return e.apply(null, r);
|
|
3354
3355
|
};
|
|
3355
3356
|
}
|
|
3356
|
-
function
|
|
3357
|
+
function qo(e) {
|
|
3357
3358
|
return f.isObject(e) && e.isAxiosError === !0;
|
|
3358
3359
|
}
|
|
3359
3360
|
const st = {
|
|
@@ -3430,58 +3431,58 @@ const st = {
|
|
|
3430
3431
|
Object.entries(st).forEach(([e, t]) => {
|
|
3431
3432
|
st[t] = e;
|
|
3432
3433
|
});
|
|
3433
|
-
function
|
|
3434
|
-
const t = new Y(e), r =
|
|
3434
|
+
function vn(e) {
|
|
3435
|
+
const t = new Y(e), r = cn(Y.prototype.request, t);
|
|
3435
3436
|
return f.extend(r, Y.prototype, t, { allOwnKeys: !0 }), f.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(o) {
|
|
3436
|
-
return
|
|
3437
|
+
return vn(X(e, o));
|
|
3437
3438
|
}, r;
|
|
3438
3439
|
}
|
|
3439
|
-
const v =
|
|
3440
|
+
const v = vn(ge);
|
|
3440
3441
|
v.Axios = Y;
|
|
3441
3442
|
v.CanceledError = ae;
|
|
3442
3443
|
v.CancelToken = Mo;
|
|
3443
|
-
v.isCancel =
|
|
3444
|
-
v.VERSION =
|
|
3445
|
-
v.toFormData =
|
|
3444
|
+
v.isCancel = An;
|
|
3445
|
+
v.VERSION = In;
|
|
3446
|
+
v.toFormData = Pe;
|
|
3446
3447
|
v.AxiosError = I;
|
|
3447
3448
|
v.Cancel = v.CanceledError;
|
|
3448
3449
|
v.all = function(t) {
|
|
3449
3450
|
return Promise.all(t);
|
|
3450
3451
|
};
|
|
3451
|
-
v.spread =
|
|
3452
|
-
v.isAxiosError =
|
|
3452
|
+
v.spread = Do;
|
|
3453
|
+
v.isAxiosError = qo;
|
|
3453
3454
|
v.mergeConfig = X;
|
|
3454
|
-
v.AxiosHeaders =
|
|
3455
|
-
v.formToJSON = (e) =>
|
|
3456
|
-
v.getAdapter =
|
|
3455
|
+
v.AxiosHeaders = M;
|
|
3456
|
+
v.formToJSON = (e) => Tn(f.isHTMLForm(e) ? new FormData(e) : e);
|
|
3457
|
+
v.getAdapter = Ln.getAdapter;
|
|
3457
3458
|
v.HttpStatusCode = st;
|
|
3458
3459
|
v.default = v;
|
|
3459
3460
|
const {
|
|
3460
|
-
Axios:
|
|
3461
|
-
AxiosError:
|
|
3462
|
-
CanceledError:
|
|
3463
|
-
isCancel:
|
|
3464
|
-
CancelToken:
|
|
3465
|
-
VERSION:
|
|
3466
|
-
all:
|
|
3467
|
-
Cancel:
|
|
3468
|
-
isAxiosError:
|
|
3469
|
-
spread:
|
|
3470
|
-
toFormData:
|
|
3471
|
-
AxiosHeaders:
|
|
3472
|
-
HttpStatusCode:
|
|
3473
|
-
formToJSON:
|
|
3474
|
-
getAdapter:
|
|
3475
|
-
mergeConfig:
|
|
3476
|
-
} = v, fe =
|
|
3461
|
+
Axios: Go,
|
|
3462
|
+
AxiosError: Qo,
|
|
3463
|
+
CanceledError: Yo,
|
|
3464
|
+
isCancel: Xo,
|
|
3465
|
+
CancelToken: Zo,
|
|
3466
|
+
VERSION: ei,
|
|
3467
|
+
all: ti,
|
|
3468
|
+
Cancel: ni,
|
|
3469
|
+
isAxiosError: ri,
|
|
3470
|
+
spread: oi,
|
|
3471
|
+
toFormData: ii,
|
|
3472
|
+
AxiosHeaders: si,
|
|
3473
|
+
HttpStatusCode: ai,
|
|
3474
|
+
formToJSON: ui,
|
|
3475
|
+
getAdapter: li,
|
|
3476
|
+
mergeConfig: ci
|
|
3477
|
+
} = v, fe = on(), Un = v.create({
|
|
3477
3478
|
baseURL: fe.baseUrl
|
|
3478
3479
|
});
|
|
3479
|
-
async function
|
|
3480
|
-
return (await
|
|
3480
|
+
async function jo(e = {}) {
|
|
3481
|
+
return (await Un.post(fe.createEndpoint, e, {
|
|
3481
3482
|
withCredentials: !0
|
|
3482
3483
|
})).data;
|
|
3483
3484
|
}
|
|
3484
|
-
function
|
|
3485
|
+
function Ho(e = () => {
|
|
3485
3486
|
}, t = () => {
|
|
3486
3487
|
}) {
|
|
3487
3488
|
const r = new URL(fe.authEventEndpoint, fe.baseUrl), n = new EventSource(r, {
|
|
@@ -3489,7 +3490,7 @@ function jo(e = () => {
|
|
|
3489
3490
|
});
|
|
3490
3491
|
return n.addEventListener("auth-success", async (o) => {
|
|
3491
3492
|
try {
|
|
3492
|
-
await
|
|
3493
|
+
await Un.post(fe.authConfirmEndpoint, null, {
|
|
3493
3494
|
withCredentials: !0
|
|
3494
3495
|
}), e();
|
|
3495
3496
|
} catch (i) {
|
|
@@ -3501,27 +3502,28 @@ function jo(e = () => {
|
|
|
3501
3502
|
console.error("EventSource failed:", o), n.close();
|
|
3502
3503
|
}, n;
|
|
3503
3504
|
}
|
|
3504
|
-
|
|
3505
|
+
const rn = on();
|
|
3506
|
+
class zo {
|
|
3505
3507
|
constructor() {
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3508
|
+
k(this, "overlay", null);
|
|
3509
|
+
k(this, "isOpen", !1);
|
|
3510
|
+
k(this, "authEvent", null);
|
|
3509
3511
|
// Элементы для управления состояниями
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3512
|
+
k(this, "contentContainer", null);
|
|
3513
|
+
k(this, "loader", null);
|
|
3514
|
+
k(this, "qrContainer", null);
|
|
3515
|
+
k(this, "separator", null);
|
|
3516
|
+
k(this, "loginButton", null);
|
|
3517
|
+
k(this, "errorContainer", null);
|
|
3518
|
+
k(this, "timerContainer", null);
|
|
3517
3519
|
// Таймер
|
|
3518
|
-
|
|
3520
|
+
k(this, "timerInterval", null);
|
|
3519
3521
|
// Промис
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3522
|
+
k(this, "resolvePromise", null);
|
|
3523
|
+
k(this, "rejectPromise", null);
|
|
3524
|
+
k(this, "currentPromise", null);
|
|
3523
3525
|
// Добавим свойство для хранения данных запроса
|
|
3524
|
-
|
|
3526
|
+
k(this, "requestData", null);
|
|
3525
3527
|
}
|
|
3526
3528
|
createElement(t, r, n) {
|
|
3527
3529
|
const o = document.createElement(t);
|
|
@@ -3539,7 +3541,7 @@ class Ho {
|
|
|
3539
3541
|
try {
|
|
3540
3542
|
t.innerHTML = "";
|
|
3541
3543
|
const n = document.createElement("canvas");
|
|
3542
|
-
await
|
|
3544
|
+
await cr.toCanvas(n, r, { width: 200, margin: 1 }), t.appendChild(n);
|
|
3543
3545
|
} catch (n) {
|
|
3544
3546
|
console.error("Ошибка при генерации QR-кода:", n), t.innerHTML = "<p>Не удалось загрузить QR-код</p>";
|
|
3545
3547
|
}
|
|
@@ -3562,16 +3564,16 @@ class Ho {
|
|
|
3562
3564
|
renderSuccessState(t) {
|
|
3563
3565
|
this.loader.style.display = "none", this.errorContainer.style.display = "none", this.qrContainer.style.display = "flex", this.separator.style.display = "block", this.loginButton.style.display = "block";
|
|
3564
3566
|
const r = this.chooseLink(t);
|
|
3565
|
-
this.generateQR(this.qrContainer, r), this.loginButton.onclick = () => window.open(r), this.authEvent =
|
|
3567
|
+
this.generateQR(this.qrContainer, r), this.loginButton.onclick = () => window.open(r), this.authEvent = Ho(() => {
|
|
3566
3568
|
this.close(), this.resolvePromise();
|
|
3567
3569
|
}, (n) => this.renderErrorState(n)), t.validUntil ? (this.timerContainer.style.display = "block", this.startTimer(t.validUntil)) : this.timerContainer.style.display = "none";
|
|
3568
3570
|
}
|
|
3569
3571
|
chooseLink(t) {
|
|
3570
3572
|
const r = t.links, n = r.find((i) => i.type == "WEB_APP");
|
|
3571
|
-
if (n)
|
|
3573
|
+
if (n && rn.linkType == "WEB_APP")
|
|
3572
3574
|
return n.link;
|
|
3573
3575
|
const o = r.find((i) => i.type == "BOT");
|
|
3574
|
-
if (o)
|
|
3576
|
+
if (o && rn.linkType == "BOT")
|
|
3575
3577
|
return o.link;
|
|
3576
3578
|
if (r.length > 0)
|
|
3577
3579
|
return r[0].link;
|
|
@@ -3605,7 +3607,7 @@ class Ho {
|
|
|
3605
3607
|
if (this.requestData) {
|
|
3606
3608
|
this.setLoadingState();
|
|
3607
3609
|
try {
|
|
3608
|
-
const t = await
|
|
3610
|
+
const t = await jo(this.requestData);
|
|
3609
3611
|
this.renderSuccessState(t);
|
|
3610
3612
|
} catch (t) {
|
|
3611
3613
|
this.renderErrorState(t);
|
|
@@ -3618,24 +3620,24 @@ class Ho {
|
|
|
3618
3620
|
}, 400));
|
|
3619
3621
|
}
|
|
3620
3622
|
}
|
|
3621
|
-
|
|
3622
|
-
const
|
|
3623
|
-
async function
|
|
3624
|
-
return
|
|
3623
|
+
$o();
|
|
3624
|
+
const kn = new zo();
|
|
3625
|
+
async function fi(e = {}) {
|
|
3626
|
+
return kn.show(e);
|
|
3625
3627
|
}
|
|
3626
|
-
function
|
|
3627
|
-
|
|
3628
|
+
function di() {
|
|
3629
|
+
kn.close();
|
|
3628
3630
|
}
|
|
3629
|
-
function
|
|
3631
|
+
function $o() {
|
|
3630
3632
|
if (document.getElementById("oauth0-js-lib-styles")) return;
|
|
3631
3633
|
const e = document.createElement("style");
|
|
3632
|
-
e.id = "oauth0-js-lib-styles", e.innerHTML =
|
|
3634
|
+
e.id = "oauth0-js-lib-styles", e.innerHTML = Hn, document.head.appendChild(e);
|
|
3633
3635
|
}
|
|
3634
3636
|
export {
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3637
|
+
di as closeQrLogin,
|
|
3638
|
+
Ho as createAuthEvent,
|
|
3639
|
+
jo as createAuthSession,
|
|
3640
|
+
on as getConfig,
|
|
3641
|
+
Jo as setConfig,
|
|
3642
|
+
fi as showQrLogin
|
|
3641
3643
|
};
|