mp-front-cli 0.0.22 → 0.0.23
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/mp-front-cli.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Qy = Object.defineProperty;
|
|
2
2
|
var jy = (i, r, t) => r in i ? Qy(i, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[r] = t;
|
|
3
3
|
var we = (i, r, t) => (jy(i, typeof r != "symbol" ? r + "" : r, t), t);
|
|
4
|
-
import { Observable as e1, Subject as Uc, of as Qe, switchMap as
|
|
4
|
+
import { Observable as e1, Subject as Uc, of as Qe, switchMap as Be, catchError as Ti, filter as di } from "rxjs";
|
|
5
5
|
const t1 = {
|
|
6
6
|
type: "logger",
|
|
7
7
|
log(i) {
|
|
@@ -1530,24 +1530,69 @@ class fr extends Ii {
|
|
|
1530
1530
|
};
|
|
1531
1531
|
}
|
|
1532
1532
|
}
|
|
1533
|
-
const
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
const ui =
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1533
|
+
const Me = fr.createInstance();
|
|
1534
|
+
Me.createInstance = fr.createInstance;
|
|
1535
|
+
Me.createInstance;
|
|
1536
|
+
Me.dir;
|
|
1537
|
+
Me.init;
|
|
1538
|
+
Me.loadResources;
|
|
1539
|
+
Me.reloadResources;
|
|
1540
|
+
Me.use;
|
|
1541
|
+
Me.changeLanguage;
|
|
1542
|
+
Me.getFixedT;
|
|
1543
|
+
const ui = Me.t;
|
|
1544
|
+
Me.exists;
|
|
1545
|
+
Me.setDefaultNamespace;
|
|
1546
|
+
Me.hasLoadedNamespace;
|
|
1547
|
+
Me.loadNamespaces;
|
|
1548
|
+
Me.loadLanguages;
|
|
1549
|
+
const m_ = {
|
|
1550
|
+
errors: {}
|
|
1551
|
+
}, S1 = {
|
|
1552
|
+
errors: {
|
|
1553
|
+
default: {
|
|
1554
|
+
title: "No pudimos cargar alguno de los datos solicitados.",
|
|
1555
|
+
message: "Si continua apareciendo este mensaje por favor contacta a soporte."
|
|
1556
|
+
},
|
|
1557
|
+
"MP-001": {
|
|
1558
|
+
title: "Error",
|
|
1559
|
+
message: "Se esperaban parámetros"
|
|
1560
|
+
},
|
|
1561
|
+
"ERR-GENERAL-01": {
|
|
1562
|
+
title: "Error",
|
|
1563
|
+
message: "No se obtuvieron la configuración del sistema"
|
|
1564
|
+
},
|
|
1565
|
+
UnAuthorized: {
|
|
1566
|
+
title: "La sesión a caducado",
|
|
1567
|
+
message: "Inicia sesión nuevamente"
|
|
1568
|
+
},
|
|
1569
|
+
ErrorGeneral: {
|
|
1570
|
+
title: "",
|
|
1571
|
+
message: "{{ message }}"
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
}, b1 = {
|
|
1575
|
+
es: {
|
|
1576
|
+
translation: {
|
|
1577
|
+
...S1
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
|
+
};
|
|
1581
|
+
Me.init({
|
|
1582
|
+
resources: b1,
|
|
1583
|
+
lng: "es",
|
|
1584
|
+
// language to use, more information here: https://www.i18next.com/overview/configuration-options#languages-namespaces-resources
|
|
1585
|
+
// you can use the i18n.changeLanguage function to change the language manually: https://www.i18next.com/overview/api#changelanguage
|
|
1586
|
+
// if you're using a language detector, do not define the lng option
|
|
1587
|
+
supportedLngs: ["es", "en"],
|
|
1588
|
+
interpolation: {
|
|
1589
|
+
escapeValue: !1
|
|
1590
|
+
// react already safes from xss
|
|
1591
|
+
},
|
|
1592
|
+
debug: !1
|
|
1593
|
+
});
|
|
1549
1594
|
var Ca = /* @__PURE__ */ ((i) => (i[i.error = 0] = "error", i[i.warn = 1] = "warn", i[i.info = 2] = "info", i[i.http = 3] = "http", i[i.verbose = 4] = "verbose", i[i.debug = 5] = "debug", i[i.silly = 6] = "silly", i))(Ca || {});
|
|
1550
|
-
const
|
|
1595
|
+
const A1 = {
|
|
1551
1596
|
error: "\x1B[31m",
|
|
1552
1597
|
warn: "\x1B[33m",
|
|
1553
1598
|
info: "\x1B[34m",
|
|
@@ -1565,7 +1610,7 @@ class Hi {
|
|
|
1565
1610
|
}
|
|
1566
1611
|
consoleFormat(r, t) {
|
|
1567
1612
|
try {
|
|
1568
|
-
return `${
|
|
1613
|
+
return `${A1[r]} ${this.appName} [${(/* @__PURE__ */ new Date()).toISOString()}] [${r.toUpperCase()}]: ${t.toString()} \x1B[37m`;
|
|
1569
1614
|
} catch {
|
|
1570
1615
|
return t;
|
|
1571
1616
|
}
|
|
@@ -1633,7 +1678,7 @@ const Ft = {
|
|
|
1633
1678
|
level: "warning"
|
|
1634
1679
|
}
|
|
1635
1680
|
};
|
|
1636
|
-
class
|
|
1681
|
+
class E1 extends Hi {
|
|
1637
1682
|
get(r = "default") {
|
|
1638
1683
|
var o, u;
|
|
1639
1684
|
if (r instanceof Error)
|
|
@@ -1660,14 +1705,14 @@ class wi extends Hi {
|
|
|
1660
1705
|
constructor(t) {
|
|
1661
1706
|
super();
|
|
1662
1707
|
we(this, "messageError");
|
|
1663
|
-
const s = new
|
|
1708
|
+
const s = new E1();
|
|
1664
1709
|
this.messageError = s.get(t), this.logError("MessageErrorBFF", JSON.stringify(this.messageError));
|
|
1665
1710
|
}
|
|
1666
1711
|
get() {
|
|
1667
1712
|
return this.messageError;
|
|
1668
1713
|
}
|
|
1669
1714
|
}
|
|
1670
|
-
class
|
|
1715
|
+
class x1 extends e1 {
|
|
1671
1716
|
constructor() {
|
|
1672
1717
|
super((t) => {
|
|
1673
1718
|
this.subject$.subscribe(t);
|
|
@@ -1684,7 +1729,7 @@ class A1 extends e1 {
|
|
|
1684
1729
|
return this.subject$.unsubscribe(), this.subject$ = new Uc(), this.subject$;
|
|
1685
1730
|
}
|
|
1686
1731
|
}
|
|
1687
|
-
const mn = class mn extends
|
|
1732
|
+
const mn = class mn extends x1 {
|
|
1688
1733
|
constructor() {
|
|
1689
1734
|
super();
|
|
1690
1735
|
}
|
|
@@ -1737,7 +1782,7 @@ function Tt(...i) {
|
|
|
1737
1782
|
t.set(o, s), s += o.length;
|
|
1738
1783
|
}), t;
|
|
1739
1784
|
}
|
|
1740
|
-
function
|
|
1785
|
+
function C1(i, r) {
|
|
1741
1786
|
return Tt(ve.encode(i), new Uint8Array([0]), r);
|
|
1742
1787
|
}
|
|
1743
1788
|
function Pa(i, r, t) {
|
|
@@ -1756,7 +1801,7 @@ function Na(i) {
|
|
|
1756
1801
|
function la(i) {
|
|
1757
1802
|
return Tt(Na(i.length), i);
|
|
1758
1803
|
}
|
|
1759
|
-
async function
|
|
1804
|
+
async function P1(i, r, t) {
|
|
1760
1805
|
const s = Math.ceil((r >> 3) / 32), o = new Uint8Array(s * 32);
|
|
1761
1806
|
for (let u = 0; u < s; u++) {
|
|
1762
1807
|
const f = new Uint8Array(4 + i.length + t.length);
|
|
@@ -1906,7 +1951,7 @@ class Ja extends Ie {
|
|
|
1906
1951
|
return "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
|
|
1907
1952
|
}
|
|
1908
1953
|
}
|
|
1909
|
-
const
|
|
1954
|
+
const R1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1910
1955
|
__proto__: null,
|
|
1911
1956
|
JOSEAlgNotAllowed: Si,
|
|
1912
1957
|
JOSEError: Ie,
|
|
@@ -1948,7 +1993,7 @@ const Af = (i) => Ki(new Uint8Array(bf(i) >> 3)), Ef = (i, r) => {
|
|
|
1948
1993
|
const t = i.byteLength << 3;
|
|
1949
1994
|
if (t !== r)
|
|
1950
1995
|
throw new D(`Invalid Content Encryption Key length. Expected ${r} bits, got ${t} bits`);
|
|
1951
|
-
},
|
|
1996
|
+
}, O1 = (i, r) => {
|
|
1952
1997
|
if (!(i instanceof Uint8Array))
|
|
1953
1998
|
throw new TypeError("First argument must be a buffer");
|
|
1954
1999
|
if (!(r instanceof Uint8Array))
|
|
@@ -1970,7 +2015,7 @@ function tn(i, r) {
|
|
|
1970
2015
|
function li(i) {
|
|
1971
2016
|
return parseInt(i.name.slice(4), 10);
|
|
1972
2017
|
}
|
|
1973
|
-
function
|
|
2018
|
+
function T1(i) {
|
|
1974
2019
|
switch (i) {
|
|
1975
2020
|
case "ES256":
|
|
1976
2021
|
return "P-256";
|
|
@@ -1993,7 +2038,7 @@ function xf(i, r) {
|
|
|
1993
2038
|
throw new TypeError(t);
|
|
1994
2039
|
}
|
|
1995
2040
|
}
|
|
1996
|
-
function
|
|
2041
|
+
function I1(i, r, ...t) {
|
|
1997
2042
|
switch (r) {
|
|
1998
2043
|
case "HS256":
|
|
1999
2044
|
case "HS384":
|
|
@@ -2035,7 +2080,7 @@ function O1(i, r, ...t) {
|
|
|
2035
2080
|
case "ES512": {
|
|
2036
2081
|
if (!tn(i.algorithm, "ECDSA"))
|
|
2037
2082
|
throw Te("ECDSA");
|
|
2038
|
-
const s =
|
|
2083
|
+
const s = T1(r);
|
|
2039
2084
|
if (i.algorithm.namedCurve !== s)
|
|
2040
2085
|
throw Te(s, "algorithm.namedCurve");
|
|
2041
2086
|
break;
|
|
@@ -2113,7 +2158,7 @@ function Pf(i, r, ...t) {
|
|
|
2113
2158
|
return Cf(`Key for the ${i} algorithm must be `, r, ...t);
|
|
2114
2159
|
}
|
|
2115
2160
|
const Rf = (i) => je(i), ge = ["CryptoKey"];
|
|
2116
|
-
async function
|
|
2161
|
+
async function H1(i, r, t, s, o, u) {
|
|
2117
2162
|
if (!(r instanceof Uint8Array))
|
|
2118
2163
|
throw new TypeError(Ne(r, "Uint8Array"));
|
|
2119
2164
|
const f = parseInt(i.slice(1, 4), 10), p = await q.subtle.importKey("raw", r.subarray(f >> 3), "AES-CBC", !1, ["decrypt"]), g = await q.subtle.importKey("raw", r.subarray(0, f >> 3), {
|
|
@@ -2122,7 +2167,7 @@ async function T1(i, r, t, s, o, u) {
|
|
|
2122
2167
|
}, !1, ["sign"]), m = Tt(u, s, t, yf(u.length << 3)), w = new Uint8Array((await q.subtle.sign("HMAC", g, m)).slice(0, f >> 3));
|
|
2123
2168
|
let E;
|
|
2124
2169
|
try {
|
|
2125
|
-
E =
|
|
2170
|
+
E = O1(o, w);
|
|
2126
2171
|
} catch {
|
|
2127
2172
|
}
|
|
2128
2173
|
if (!E)
|
|
@@ -2136,7 +2181,7 @@ async function T1(i, r, t, s, o, u) {
|
|
|
2136
2181
|
throw new lr();
|
|
2137
2182
|
return S;
|
|
2138
2183
|
}
|
|
2139
|
-
async function
|
|
2184
|
+
async function L1(i, r, t, s, o, u) {
|
|
2140
2185
|
let f;
|
|
2141
2186
|
r instanceof Uint8Array ? f = await q.subtle.importKey("raw", r, "AES-GCM", !1, ["decrypt"]) : (rn(r, i, "decrypt"), f = r);
|
|
2142
2187
|
try {
|
|
@@ -2157,17 +2202,17 @@ const Of = async (i, r, t, s, o, u) => {
|
|
|
2157
2202
|
case "A128CBC-HS256":
|
|
2158
2203
|
case "A192CBC-HS384":
|
|
2159
2204
|
case "A256CBC-HS512":
|
|
2160
|
-
return r instanceof Uint8Array && bi(r, parseInt(i.slice(-3), 10)),
|
|
2205
|
+
return r instanceof Uint8Array && bi(r, parseInt(i.slice(-3), 10)), H1(i, r, t, s, o, u);
|
|
2161
2206
|
case "A128GCM":
|
|
2162
2207
|
case "A192GCM":
|
|
2163
2208
|
case "A256GCM":
|
|
2164
|
-
return r instanceof Uint8Array && bi(r, parseInt(i.slice(1, 4), 10)),
|
|
2209
|
+
return r instanceof Uint8Array && bi(r, parseInt(i.slice(1, 4), 10)), L1(i, r, t, s, o, u);
|
|
2165
2210
|
default:
|
|
2166
2211
|
throw new ne("Unsupported JWE Content Encryption Algorithm");
|
|
2167
2212
|
}
|
|
2168
|
-
},
|
|
2213
|
+
}, K1 = async () => {
|
|
2169
2214
|
throw new ne('JWE "zip" (Compression Algorithm) Header Parameter is not supported by your javascript runtime. You need to use the `inflateRaw` decrypt option to provide Inflate Raw implementation.');
|
|
2170
|
-
},
|
|
2215
|
+
}, U1 = async () => {
|
|
2171
2216
|
throw new ne('JWE "zip" (Compression Algorithm) Header Parameter is not supported by your javascript runtime. You need to use the `deflateRaw` encrypt option to provide Deflate Raw implementation.');
|
|
2172
2217
|
}, dr = (...i) => {
|
|
2173
2218
|
const r = i.filter(Boolean);
|
|
@@ -2188,11 +2233,11 @@ const Of = async (i, r, t, s, o, u) => {
|
|
|
2188
2233
|
}
|
|
2189
2234
|
return !0;
|
|
2190
2235
|
};
|
|
2191
|
-
function
|
|
2236
|
+
function D1(i) {
|
|
2192
2237
|
return typeof i == "object" && i !== null;
|
|
2193
2238
|
}
|
|
2194
2239
|
function Ce(i) {
|
|
2195
|
-
if (!
|
|
2240
|
+
if (!D1(i) || Object.prototype.toString.call(i) !== "[object Object]")
|
|
2196
2241
|
return !1;
|
|
2197
2242
|
if (Object.getPrototypeOf(i) === null)
|
|
2198
2243
|
return !0;
|
|
@@ -2241,9 +2286,9 @@ async function Hf(i, r, t, s, o = new Uint8Array(0), u = new Uint8Array(0)) {
|
|
|
2241
2286
|
name: i.algorithm.name,
|
|
2242
2287
|
public: i
|
|
2243
2288
|
}, r, p));
|
|
2244
|
-
return
|
|
2289
|
+
return P1(g, s, f);
|
|
2245
2290
|
}
|
|
2246
|
-
async function
|
|
2291
|
+
async function W1(i) {
|
|
2247
2292
|
if (!je(i))
|
|
2248
2293
|
throw new TypeError(Ne(i, ...ge));
|
|
2249
2294
|
return q.subtle.generateKey(i.algorithm, !0, ["deriveBits"]);
|
|
@@ -2253,11 +2298,11 @@ function Lf(i) {
|
|
|
2253
2298
|
throw new TypeError(Ne(i, ...ge));
|
|
2254
2299
|
return ["P-256", "P-384", "P-521"].includes(i.algorithm.namedCurve) || i.algorithm.name === "X25519" || i.algorithm.name === "X448";
|
|
2255
2300
|
}
|
|
2256
|
-
function
|
|
2301
|
+
function N1(i) {
|
|
2257
2302
|
if (!(i instanceof Uint8Array) || i.length < 8)
|
|
2258
2303
|
throw new D("PBES2 Salt Input must be 8 or more octets");
|
|
2259
2304
|
}
|
|
2260
|
-
function
|
|
2305
|
+
function M1(i, r) {
|
|
2261
2306
|
if (i instanceof Uint8Array)
|
|
2262
2307
|
return q.subtle.importKey("raw", i, "PBKDF2", !1, ["deriveBits"]);
|
|
2263
2308
|
if (je(i))
|
|
@@ -2265,8 +2310,8 @@ function W1(i, r) {
|
|
|
2265
2310
|
throw new TypeError(Ne(i, ...ge, "Uint8Array"));
|
|
2266
2311
|
}
|
|
2267
2312
|
async function Kf(i, r, t, s) {
|
|
2268
|
-
|
|
2269
|
-
const o =
|
|
2313
|
+
N1(i);
|
|
2314
|
+
const o = C1(r, i), u = parseInt(r.slice(13, 16), 10), f = {
|
|
2270
2315
|
hash: `SHA-${r.slice(8, 11)}`,
|
|
2271
2316
|
iterations: t,
|
|
2272
2317
|
name: "PBKDF2",
|
|
@@ -2274,17 +2319,17 @@ async function Kf(i, r, t, s) {
|
|
|
2274
2319
|
}, p = {
|
|
2275
2320
|
length: u,
|
|
2276
2321
|
name: "AES-KW"
|
|
2277
|
-
}, g = await
|
|
2322
|
+
}, g = await M1(s, r);
|
|
2278
2323
|
if (g.usages.includes("deriveBits"))
|
|
2279
2324
|
return new Uint8Array(await q.subtle.deriveBits(f, g, u));
|
|
2280
2325
|
if (g.usages.includes("deriveKey"))
|
|
2281
2326
|
return q.subtle.deriveKey(f, g, p, !1, ["wrapKey", "unwrapKey"]);
|
|
2282
2327
|
throw new TypeError('PBKDF2 key "usages" must include "deriveBits" or "deriveKey"');
|
|
2283
2328
|
}
|
|
2284
|
-
const
|
|
2329
|
+
const $1 = async (i, r, t, s = 2048, o = Ki(new Uint8Array(16))) => {
|
|
2285
2330
|
const u = await Kf(o, i, s, r);
|
|
2286
2331
|
return { encryptedKey: await Oa(i.slice(-6), u, t), p2c: s, p2s: _e(o) };
|
|
2287
|
-
},
|
|
2332
|
+
}, J1 = async (i, r, t, s, o) => {
|
|
2288
2333
|
const u = await Kf(o, i, s, r);
|
|
2289
2334
|
return Ta(i.slice(-6), u, t);
|
|
2290
2335
|
};
|
|
@@ -2305,7 +2350,7 @@ const Di = (i, r) => {
|
|
|
2305
2350
|
if (typeof t != "number" || t < 2048)
|
|
2306
2351
|
throw new TypeError(`${i} requires key modulusLength to be 2048 bits or larger`);
|
|
2307
2352
|
}
|
|
2308
|
-
},
|
|
2353
|
+
}, F1 = async (i, r, t) => {
|
|
2309
2354
|
if (!je(r))
|
|
2310
2355
|
throw new TypeError(Ne(r, ...ge));
|
|
2311
2356
|
if (rn(r, i, "encrypt", "wrapKey"), Di(i, r), r.usages.includes("encrypt"))
|
|
@@ -2315,7 +2360,7 @@ const Di = (i, r) => {
|
|
|
2315
2360
|
return new Uint8Array(await q.subtle.wrapKey("raw", s, r, Ai(i)));
|
|
2316
2361
|
}
|
|
2317
2362
|
throw new TypeError('RSA-OAEP key "usages" must include "encrypt" or "wrapKey" for this operation');
|
|
2318
|
-
},
|
|
2363
|
+
}, B1 = async (i, r, t) => {
|
|
2319
2364
|
if (!je(r))
|
|
2320
2365
|
throw new TypeError(Ne(r, ...ge));
|
|
2321
2366
|
if (rn(r, i, "decrypt", "unwrapKey"), Di(i, r), r.usages.includes("decrypt"))
|
|
@@ -2357,7 +2402,7 @@ ${t}
|
|
|
2357
2402
|
if (t.type !== i)
|
|
2358
2403
|
throw new TypeError(`key is not a ${i} key`);
|
|
2359
2404
|
return Uf(Ma(new Uint8Array(await q.subtle.exportKey(r, t))), `${i.toUpperCase()} KEY`);
|
|
2360
|
-
},
|
|
2405
|
+
}, k1 = (i) => Df("public", "spki", i), G1 = (i) => Df("private", "pkcs8", i), en = (i, r, t = 0) => {
|
|
2361
2406
|
t === 0 && (r.unshift(r.length), r.unshift(6));
|
|
2362
2407
|
let s = i.indexOf(r[0], t);
|
|
2363
2408
|
if (s === -1)
|
|
@@ -2431,7 +2476,7 @@ ${t}
|
|
|
2431
2476
|
throw new ne('Invalid or unsupported "alg" (Algorithm) value');
|
|
2432
2477
|
}
|
|
2433
2478
|
return q.subtle.importKey(r, g, f, (u = o == null ? void 0 : o.extractable) !== null && u !== void 0 ? u : !1, p);
|
|
2434
|
-
},
|
|
2479
|
+
}, z1 = (i, r, t) => Wf(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g, "pkcs8", i, r, t), Nf = (i, r, t) => Wf(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", i, r, t);
|
|
2435
2480
|
function zc(i) {
|
|
2436
2481
|
let r = [], t = 0;
|
|
2437
2482
|
for (; t < i.length; ) {
|
|
@@ -2475,24 +2520,24 @@ function Mf(i) {
|
|
|
2475
2520
|
raw: i.subarray(0, o)
|
|
2476
2521
|
};
|
|
2477
2522
|
}
|
|
2478
|
-
function
|
|
2523
|
+
function V1(i) {
|
|
2479
2524
|
const r = zc(zc(Mf(i).contents)[0].contents);
|
|
2480
2525
|
return Ma(r[r[0].raw[0] === 160 ? 6 : 5].raw);
|
|
2481
2526
|
}
|
|
2482
|
-
function
|
|
2527
|
+
function q1(i) {
|
|
2483
2528
|
const r = i.replace(/(?:-----(?:BEGIN|END) CERTIFICATE-----|\s)/g, ""), t = vf(r);
|
|
2484
|
-
return Uf(
|
|
2529
|
+
return Uf(V1(t), "PUBLIC KEY");
|
|
2485
2530
|
}
|
|
2486
|
-
const
|
|
2531
|
+
const Y1 = (i, r, t) => {
|
|
2487
2532
|
let s;
|
|
2488
2533
|
try {
|
|
2489
|
-
s =
|
|
2534
|
+
s = q1(i);
|
|
2490
2535
|
} catch (o) {
|
|
2491
2536
|
throw new TypeError("Failed to parse the X.509 certificate", { cause: o });
|
|
2492
2537
|
}
|
|
2493
2538
|
return Nf(s, r, t);
|
|
2494
2539
|
};
|
|
2495
|
-
function
|
|
2540
|
+
function X1(i) {
|
|
2496
2541
|
let r, t;
|
|
2497
2542
|
switch (i.kty) {
|
|
2498
2543
|
case "oct": {
|
|
@@ -2598,11 +2643,11 @@ function q1(i) {
|
|
|
2598
2643
|
}
|
|
2599
2644
|
return { algorithm: r, keyUsages: t };
|
|
2600
2645
|
}
|
|
2601
|
-
const
|
|
2646
|
+
const Z1 = async (i) => {
|
|
2602
2647
|
var r, t;
|
|
2603
2648
|
if (!i.alg)
|
|
2604
2649
|
throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
|
|
2605
|
-
const { algorithm: s, keyUsages: o } =
|
|
2650
|
+
const { algorithm: s, keyUsages: o } = X1(i), u = [
|
|
2606
2651
|
s,
|
|
2607
2652
|
(r = i.ext) !== null && r !== void 0 ? r : !1,
|
|
2608
2653
|
(t = i.key_ops) !== null && t !== void 0 ? t : o
|
|
@@ -2611,21 +2656,21 @@ const Y1 = async (i) => {
|
|
|
2611
2656
|
return q.subtle.importKey("raw", Ee(i.k), ...u);
|
|
2612
2657
|
const f = { ...i };
|
|
2613
2658
|
return delete f.alg, delete f.use, q.subtle.importKey("jwk", f, ...u);
|
|
2614
|
-
}, Vc =
|
|
2615
|
-
async function
|
|
2659
|
+
}, Vc = Z1;
|
|
2660
|
+
async function Q1(i, r, t) {
|
|
2616
2661
|
if (typeof i != "string" || i.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
|
|
2617
2662
|
throw new TypeError('"spki" must be SPKI formatted string');
|
|
2618
2663
|
return Nf(i, r, t);
|
|
2619
2664
|
}
|
|
2620
|
-
async function
|
|
2665
|
+
async function j1(i, r, t) {
|
|
2621
2666
|
if (typeof i != "string" || i.indexOf("-----BEGIN CERTIFICATE-----") !== 0)
|
|
2622
2667
|
throw new TypeError('"x509" must be X.509 formatted string');
|
|
2623
|
-
return
|
|
2668
|
+
return Y1(i, r, t);
|
|
2624
2669
|
}
|
|
2625
|
-
async function
|
|
2670
|
+
async function ev(i, r, t) {
|
|
2626
2671
|
if (typeof i != "string" || i.indexOf("-----BEGIN PRIVATE KEY-----") !== 0)
|
|
2627
2672
|
throw new TypeError('"pkcs8" must be PKCS#8 formatted string');
|
|
2628
|
-
return
|
|
2673
|
+
return z1(i, r, t);
|
|
2629
2674
|
}
|
|
2630
2675
|
async function Wi(i, r, t) {
|
|
2631
2676
|
var s;
|
|
@@ -2646,14 +2691,14 @@ async function Wi(i, r, t) {
|
|
|
2646
2691
|
throw new ne('Unsupported "kty" (Key Type) Parameter value');
|
|
2647
2692
|
}
|
|
2648
2693
|
}
|
|
2649
|
-
const
|
|
2694
|
+
const tv = (i, r) => {
|
|
2650
2695
|
if (!(r instanceof Uint8Array)) {
|
|
2651
2696
|
if (!Rf(r))
|
|
2652
2697
|
throw new TypeError(Pf(i, r, ...ge, "Uint8Array"));
|
|
2653
2698
|
if (r.type !== "secret")
|
|
2654
2699
|
throw new TypeError(`${ge.join(" or ")} instances for symmetric algorithms must be of type "secret"`);
|
|
2655
2700
|
}
|
|
2656
|
-
},
|
|
2701
|
+
}, nv = (i, r, t) => {
|
|
2657
2702
|
if (!Rf(r))
|
|
2658
2703
|
throw new TypeError(Pf(i, r, ...ge));
|
|
2659
2704
|
if (r.type === "secret")
|
|
@@ -2667,9 +2712,9 @@ const j1 = (i, r) => {
|
|
|
2667
2712
|
if (r.algorithm && t === "encrypt" && r.type === "private")
|
|
2668
2713
|
throw new TypeError(`${ge.join(" or ")} instances for asymmetric algorithm encryption must be of type "public"`);
|
|
2669
2714
|
}, Ni = (i, r, t) => {
|
|
2670
|
-
i.startsWith("HS") || i === "dir" || i.startsWith("PBES2") || /^A\d{3}(?:GCM)?KW$/.test(i) ?
|
|
2715
|
+
i.startsWith("HS") || i === "dir" || i.startsWith("PBES2") || /^A\d{3}(?:GCM)?KW$/.test(i) ? tv(i, r) : nv(i, r, t);
|
|
2671
2716
|
};
|
|
2672
|
-
async function
|
|
2717
|
+
async function rv(i, r, t, s, o) {
|
|
2673
2718
|
if (!(t instanceof Uint8Array))
|
|
2674
2719
|
throw new TypeError(Ne(t, "Uint8Array"));
|
|
2675
2720
|
const u = parseInt(i.slice(1, 4), 10), f = await q.subtle.importKey("raw", t.subarray(u >> 3), "AES-CBC", !1, ["encrypt"]), p = await q.subtle.importKey("raw", t.subarray(0, u >> 3), {
|
|
@@ -2681,7 +2726,7 @@ async function tv(i, r, t, s, o) {
|
|
|
2681
2726
|
}, f, r)), m = Tt(o, s, g, yf(o.length << 3)), w = new Uint8Array((await q.subtle.sign("HMAC", p, m)).slice(0, u >> 3));
|
|
2682
2727
|
return { ciphertext: g, tag: w };
|
|
2683
2728
|
}
|
|
2684
|
-
async function
|
|
2729
|
+
async function iv(i, r, t, s, o) {
|
|
2685
2730
|
let u;
|
|
2686
2731
|
t instanceof Uint8Array ? u = await q.subtle.importKey("raw", t, "AES-GCM", !1, ["encrypt"]) : (rn(t, i, "encrypt"), u = t);
|
|
2687
2732
|
const f = new Uint8Array(await q.subtle.encrypt({
|
|
@@ -2699,26 +2744,26 @@ const Ia = async (i, r, t, s, o) => {
|
|
|
2699
2744
|
case "A128CBC-HS256":
|
|
2700
2745
|
case "A192CBC-HS384":
|
|
2701
2746
|
case "A256CBC-HS512":
|
|
2702
|
-
return t instanceof Uint8Array && bi(t, parseInt(i.slice(-3), 10)),
|
|
2747
|
+
return t instanceof Uint8Array && bi(t, parseInt(i.slice(-3), 10)), rv(i, r, t, s, o);
|
|
2703
2748
|
case "A128GCM":
|
|
2704
2749
|
case "A192GCM":
|
|
2705
2750
|
case "A256GCM":
|
|
2706
|
-
return t instanceof Uint8Array && bi(t, parseInt(i.slice(1, 4), 10)),
|
|
2751
|
+
return t instanceof Uint8Array && bi(t, parseInt(i.slice(1, 4), 10)), iv(i, r, t, s, o);
|
|
2707
2752
|
default:
|
|
2708
2753
|
throw new ne("Unsupported JWE Content Encryption Algorithm");
|
|
2709
2754
|
}
|
|
2710
2755
|
};
|
|
2711
|
-
async function
|
|
2756
|
+
async function sv(i, r, t, s) {
|
|
2712
2757
|
const o = i.slice(0, 7);
|
|
2713
2758
|
s || (s = Af(o));
|
|
2714
2759
|
const { ciphertext: u, tag: f } = await Ia(o, t, r, s, new Uint8Array(0));
|
|
2715
2760
|
return { encryptedKey: u, iv: _e(s), tag: _e(f) };
|
|
2716
2761
|
}
|
|
2717
|
-
async function
|
|
2762
|
+
async function av(i, r, t, s, o) {
|
|
2718
2763
|
const u = i.slice(0, 7);
|
|
2719
2764
|
return Of(u, r, t, s, o, new Uint8Array(0));
|
|
2720
2765
|
}
|
|
2721
|
-
async function
|
|
2766
|
+
async function ov(i, r, t, s, o) {
|
|
2722
2767
|
switch (Ni(i, r, "decrypt"), i) {
|
|
2723
2768
|
case "dir": {
|
|
2724
2769
|
if (t !== void 0)
|
|
@@ -2769,7 +2814,7 @@ async function sv(i, r, t, s, o) {
|
|
|
2769
2814
|
case "RSA-OAEP-512": {
|
|
2770
2815
|
if (t === void 0)
|
|
2771
2816
|
throw new D("JWE Encrypted Key missing");
|
|
2772
|
-
return
|
|
2817
|
+
return B1(i, r, t);
|
|
2773
2818
|
}
|
|
2774
2819
|
case "PBES2-HS256+A128KW":
|
|
2775
2820
|
case "PBES2-HS384+A192KW":
|
|
@@ -2789,7 +2834,7 @@ async function sv(i, r, t, s, o) {
|
|
|
2789
2834
|
} catch {
|
|
2790
2835
|
throw new D("Failed to base64url decode the p2s");
|
|
2791
2836
|
}
|
|
2792
|
-
return
|
|
2837
|
+
return J1(i, r, t, s.p2c, f);
|
|
2793
2838
|
}
|
|
2794
2839
|
case "A128KW":
|
|
2795
2840
|
case "A192KW":
|
|
@@ -2819,7 +2864,7 @@ async function sv(i, r, t, s, o) {
|
|
|
2819
2864
|
} catch {
|
|
2820
2865
|
throw new D("Failed to base64url decode the tag");
|
|
2821
2866
|
}
|
|
2822
|
-
return
|
|
2867
|
+
return av(i, r, t, u, f);
|
|
2823
2868
|
}
|
|
2824
2869
|
default:
|
|
2825
2870
|
throw new ne('Invalid or unsupported "alg" (JWE Algorithm) header value');
|
|
@@ -2914,7 +2959,7 @@ async function Ba(i, r, t) {
|
|
|
2914
2959
|
typeof r == "function" && (r = await r(o, i), E = !0);
|
|
2915
2960
|
let S;
|
|
2916
2961
|
try {
|
|
2917
|
-
S = await
|
|
2962
|
+
S = await ov(f, r, w, u, t);
|
|
2918
2963
|
} catch (H) {
|
|
2919
2964
|
if (H instanceof TypeError || H instanceof D || H instanceof ne)
|
|
2920
2965
|
throw H;
|
|
@@ -2941,7 +2986,7 @@ async function Ba(i, r, t) {
|
|
|
2941
2986
|
throw new D("Failed to base64url decode the ciphertext");
|
|
2942
2987
|
}
|
|
2943
2988
|
let z = await Of(p, S, X, T, R, W);
|
|
2944
|
-
u.zip === "DEF" && (z = await ((t == null ? void 0 : t.inflateRaw) ||
|
|
2989
|
+
u.zip === "DEF" && (z = await ((t == null ? void 0 : t.inflateRaw) || K1)(z));
|
|
2945
2990
|
const U = { plaintext: z };
|
|
2946
2991
|
if (i.protected !== void 0 && (U.protectedHeader = o), i.aad !== void 0)
|
|
2947
2992
|
try {
|
|
@@ -2966,7 +3011,7 @@ async function $f(i, r, t) {
|
|
|
2966
3011
|
}, r, t), w = { plaintext: m.plaintext, protectedHeader: m.protectedHeader };
|
|
2967
3012
|
return typeof r == "function" ? { ...w, key: m.key } : w;
|
|
2968
3013
|
}
|
|
2969
|
-
async function
|
|
3014
|
+
async function uv(i, r, t) {
|
|
2970
3015
|
if (!Ce(i))
|
|
2971
3016
|
throw new D("General JWE must be an object");
|
|
2972
3017
|
if (!Array.isArray(i.recipients) || !i.recipients.every(Ce))
|
|
@@ -2989,7 +3034,7 @@ async function av(i, r, t) {
|
|
|
2989
3034
|
}
|
|
2990
3035
|
throw new lr();
|
|
2991
3036
|
}
|
|
2992
|
-
const
|
|
3037
|
+
const cv = async (i) => {
|
|
2993
3038
|
if (i instanceof Uint8Array)
|
|
2994
3039
|
return {
|
|
2995
3040
|
kty: "oct",
|
|
@@ -3001,15 +3046,15 @@ const ov = async (i) => {
|
|
|
3001
3046
|
throw new TypeError("non-extractable CryptoKey cannot be exported as a JWK");
|
|
3002
3047
|
const { ext: r, key_ops: t, alg: s, use: o, ...u } = await q.subtle.exportKey("jwk", i);
|
|
3003
3048
|
return u;
|
|
3004
|
-
},
|
|
3005
|
-
async function
|
|
3006
|
-
return
|
|
3049
|
+
}, fv = cv;
|
|
3050
|
+
async function lv(i) {
|
|
3051
|
+
return k1(i);
|
|
3007
3052
|
}
|
|
3008
|
-
async function
|
|
3009
|
-
return
|
|
3053
|
+
async function hv(i) {
|
|
3054
|
+
return G1(i);
|
|
3010
3055
|
}
|
|
3011
3056
|
async function Jf(i) {
|
|
3012
|
-
return
|
|
3057
|
+
return fv(i);
|
|
3013
3058
|
}
|
|
3014
3059
|
async function Ff(i, r, t, s, o = {}) {
|
|
3015
3060
|
let u, f, p;
|
|
@@ -3026,7 +3071,7 @@ async function Ff(i, r, t, s, o = {}) {
|
|
|
3026
3071
|
throw new ne("ECDH with the provided key is not allowed or not supported by your javascript runtime");
|
|
3027
3072
|
const { apu: g, apv: m } = o;
|
|
3028
3073
|
let { epk: w } = o;
|
|
3029
|
-
w || (w = (await
|
|
3074
|
+
w || (w = (await W1(t)).privateKey);
|
|
3030
3075
|
const { x: E, y: S, crv: T, kty: R } = await Jf(w), I = await Hf(t, w, i === "ECDH-ES" ? r : i, i === "ECDH-ES" ? Fa(r) : parseInt(i.slice(-5, -2), 10), g, m);
|
|
3031
3076
|
if (f = { epk: { x: E, crv: T, kty: R } }, R === "EC" && (f.epk.y = S), g && (f.apu = _e(g)), m && (f.apv = _e(m)), i === "ECDH-ES") {
|
|
3032
3077
|
p = I;
|
|
@@ -3042,7 +3087,7 @@ async function Ff(i, r, t, s, o = {}) {
|
|
|
3042
3087
|
case "RSA-OAEP-256":
|
|
3043
3088
|
case "RSA-OAEP-384":
|
|
3044
3089
|
case "RSA-OAEP-512": {
|
|
3045
|
-
p = s || gn(r), u = await
|
|
3090
|
+
p = s || gn(r), u = await F1(i, t, p);
|
|
3046
3091
|
break;
|
|
3047
3092
|
}
|
|
3048
3093
|
case "PBES2-HS256+A128KW":
|
|
@@ -3050,7 +3095,7 @@ async function Ff(i, r, t, s, o = {}) {
|
|
|
3050
3095
|
case "PBES2-HS512+A256KW": {
|
|
3051
3096
|
p = s || gn(r);
|
|
3052
3097
|
const { p2c: g, p2s: m } = o;
|
|
3053
|
-
({ encryptedKey: u, ...f } = await
|
|
3098
|
+
({ encryptedKey: u, ...f } = await $1(i, t, p, g, m));
|
|
3054
3099
|
break;
|
|
3055
3100
|
}
|
|
3056
3101
|
case "A128KW":
|
|
@@ -3064,7 +3109,7 @@ async function Ff(i, r, t, s, o = {}) {
|
|
|
3064
3109
|
case "A256GCMKW": {
|
|
3065
3110
|
p = s || gn(r);
|
|
3066
3111
|
const { iv: g } = o;
|
|
3067
|
-
({ encryptedKey: u, ...f } = await
|
|
3112
|
+
({ encryptedKey: u, ...f } = await sv(i, t, p, g));
|
|
3068
3113
|
break;
|
|
3069
3114
|
}
|
|
3070
3115
|
default:
|
|
@@ -3149,7 +3194,7 @@ class Ei {
|
|
|
3149
3194
|
this._protectedHeader ? m = ve.encode(_e(JSON.stringify(this._protectedHeader))) : m = ve.encode(""), this._aad ? (w = _e(this._aad), g = Tt(m, ve.encode("."), ve.encode(w))) : g = m;
|
|
3150
3195
|
let E, S;
|
|
3151
3196
|
if (s.zip === "DEF") {
|
|
3152
|
-
const R = await ((t == null ? void 0 : t.deflateRaw) ||
|
|
3197
|
+
const R = await ((t == null ? void 0 : t.deflateRaw) || U1)(this._plaintext);
|
|
3153
3198
|
({ ciphertext: E, tag: S } = await Ia(u, R, p, this._iv, g));
|
|
3154
3199
|
} else
|
|
3155
3200
|
({ ciphertext: E, tag: S } = await Ia(u, this._plaintext, p, this._iv, g));
|
|
@@ -3161,7 +3206,7 @@ class Ei {
|
|
|
3161
3206
|
return f && (T.encrypted_key = _e(f)), w && (T.aad = w), this._protectedHeader && (T.protected = mt.decode(m)), this._sharedUnprotectedHeader && (T.unprotected = this._sharedUnprotectedHeader), this._unprotectedHeader && (T.header = this._unprotectedHeader), T;
|
|
3162
3207
|
}
|
|
3163
3208
|
}
|
|
3164
|
-
class
|
|
3209
|
+
class dv {
|
|
3165
3210
|
constructor(r, t, s) {
|
|
3166
3211
|
this.parent = r, this.key = t, this.options = s;
|
|
3167
3212
|
}
|
|
@@ -3180,12 +3225,12 @@ class lv {
|
|
|
3180
3225
|
return this.parent;
|
|
3181
3226
|
}
|
|
3182
3227
|
}
|
|
3183
|
-
class
|
|
3228
|
+
class pv {
|
|
3184
3229
|
constructor(r) {
|
|
3185
3230
|
this._recipients = [], this._plaintext = r;
|
|
3186
3231
|
}
|
|
3187
3232
|
addRecipient(r, t) {
|
|
3188
|
-
const s = new
|
|
3233
|
+
const s = new dv(this, r, { crit: t == null ? void 0 : t.crit });
|
|
3189
3234
|
return this._recipients.push(s), s;
|
|
3190
3235
|
}
|
|
3191
3236
|
setProtectedHeader(r) {
|
|
@@ -3295,7 +3340,7 @@ function kf(i, r) {
|
|
|
3295
3340
|
}
|
|
3296
3341
|
function Gf(i, r, t) {
|
|
3297
3342
|
if (je(r))
|
|
3298
|
-
return
|
|
3343
|
+
return I1(r, i, t), r;
|
|
3299
3344
|
if (r instanceof Uint8Array) {
|
|
3300
3345
|
if (!i.startsWith("HS"))
|
|
3301
3346
|
throw new TypeError(Ne(r, ...ge));
|
|
@@ -3303,7 +3348,7 @@ function Gf(i, r, t) {
|
|
|
3303
3348
|
}
|
|
3304
3349
|
throw new TypeError(Ne(r, ...ge, "Uint8Array"));
|
|
3305
3350
|
}
|
|
3306
|
-
const
|
|
3351
|
+
const gv = async (i, r, t, s) => {
|
|
3307
3352
|
const o = await Gf(i, r, "verify");
|
|
3308
3353
|
Di(i, o);
|
|
3309
3354
|
const u = kf(i, o.algorithm);
|
|
@@ -3364,7 +3409,7 @@ async function ka(i, r, t) {
|
|
|
3364
3409
|
} catch {
|
|
3365
3410
|
throw new ae("Failed to base64url decode the signature");
|
|
3366
3411
|
}
|
|
3367
|
-
if (!await
|
|
3412
|
+
if (!await gv(g, r, S, E))
|
|
3368
3413
|
throw new Ja();
|
|
3369
3414
|
let R;
|
|
3370
3415
|
if (p)
|
|
@@ -3387,7 +3432,7 @@ async function zf(i, r, t) {
|
|
|
3387
3432
|
const p = await ka({ payload: o, protected: s, signature: u }, r, t), g = { payload: p.payload, protectedHeader: p.protectedHeader };
|
|
3388
3433
|
return typeof r == "function" ? { ...g, key: p.key } : g;
|
|
3389
3434
|
}
|
|
3390
|
-
async function
|
|
3435
|
+
async function mv(i, r, t) {
|
|
3391
3436
|
if (!Ce(i))
|
|
3392
3437
|
throw new ae("General JWS must be an object");
|
|
3393
3438
|
if (!Array.isArray(i.signatures) || !i.signatures.every(Ce))
|
|
@@ -3404,8 +3449,8 @@ async function pv(i, r, t) {
|
|
|
3404
3449
|
}
|
|
3405
3450
|
throw new Ja();
|
|
3406
3451
|
}
|
|
3407
|
-
const hi = (i) => Math.floor(i.getTime() / 1e3), Vf = 60, qf = Vf * 60, Ga = qf * 24,
|
|
3408
|
-
const r =
|
|
3452
|
+
const hi = (i) => Math.floor(i.getTime() / 1e3), Vf = 60, qf = Vf * 60, Ga = qf * 24, yv = Ga * 7, vv = Ga * 365.25, wv = /^(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)$/i, xi = (i) => {
|
|
3453
|
+
const r = wv.exec(i);
|
|
3409
3454
|
if (!r)
|
|
3410
3455
|
throw new TypeError("Invalid time period format");
|
|
3411
3456
|
const t = parseFloat(r[1]);
|
|
@@ -3435,11 +3480,11 @@ const hi = (i) => Math.floor(i.getTime() / 1e3), Vf = 60, qf = Vf * 60, Ga = qf
|
|
|
3435
3480
|
case "week":
|
|
3436
3481
|
case "weeks":
|
|
3437
3482
|
case "w":
|
|
3438
|
-
return Math.round(t *
|
|
3483
|
+
return Math.round(t * yv);
|
|
3439
3484
|
default:
|
|
3440
|
-
return Math.round(t *
|
|
3485
|
+
return Math.round(t * vv);
|
|
3441
3486
|
}
|
|
3442
|
-
}, qc = (i) => i.toLowerCase().replace(/^application\//, ""),
|
|
3487
|
+
}, qc = (i) => i.toLowerCase().replace(/^application\//, ""), _v = (i, r) => typeof i == "string" ? r.includes(i) : Array.isArray(i) ? r.some(Set.prototype.has.bind(new Set(i))) : !1, za = (i, r, t = {}) => {
|
|
3443
3488
|
const { typ: s } = t;
|
|
3444
3489
|
if (s && (typeof i.typ != "string" || qc(i.typ) !== qc(s)))
|
|
3445
3490
|
throw new Xe('unexpected "typ" JWT header value', "typ", "check_failed");
|
|
@@ -3459,7 +3504,7 @@ const hi = (i) => Math.floor(i.getTime() / 1e3), Vf = 60, qf = Vf * 60, Ga = qf
|
|
|
3459
3504
|
throw new Xe('unexpected "iss" claim value', "iss", "check_failed");
|
|
3460
3505
|
if (p && o.sub !== p)
|
|
3461
3506
|
throw new Xe('unexpected "sub" claim value', "sub", "check_failed");
|
|
3462
|
-
if (g && !
|
|
3507
|
+
if (g && !_v(o.aud, typeof g == "string" ? [g] : g))
|
|
3463
3508
|
throw new Xe('unexpected "aud" claim value', "aud", "check_failed");
|
|
3464
3509
|
let w;
|
|
3465
3510
|
switch (typeof t.clockTolerance) {
|
|
@@ -3499,7 +3544,7 @@ const hi = (i) => Math.floor(i.getTime() / 1e3), Vf = 60, qf = Vf * 60, Ga = qf
|
|
|
3499
3544
|
}
|
|
3500
3545
|
return o;
|
|
3501
3546
|
};
|
|
3502
|
-
async function
|
|
3547
|
+
async function Sv(i, r, t) {
|
|
3503
3548
|
var s;
|
|
3504
3549
|
const o = await zf(i, r, t);
|
|
3505
3550
|
if (!((s = o.protectedHeader.crit) === null || s === void 0) && s.includes("b64") && o.protectedHeader.b64 === !1)
|
|
@@ -3507,7 +3552,7 @@ async function wv(i, r, t) {
|
|
|
3507
3552
|
const f = { payload: za(o.protectedHeader, o.payload, t), protectedHeader: o.protectedHeader };
|
|
3508
3553
|
return typeof r == "function" ? { ...f, key: o.key } : f;
|
|
3509
3554
|
}
|
|
3510
|
-
async function
|
|
3555
|
+
async function bv(i, r, t) {
|
|
3511
3556
|
const s = await $f(i, r, t), o = za(s.protectedHeader, s.plaintext, t), { protectedHeader: u } = s;
|
|
3512
3557
|
if (u.iss !== void 0 && u.iss !== o.iss)
|
|
3513
3558
|
throw new Xe('replicated "iss" claim header parameter mismatch', "iss", "mismatch");
|
|
@@ -3539,7 +3584,7 @@ class Yf {
|
|
|
3539
3584
|
return [s.protected, s.encrypted_key, s.iv, s.ciphertext, s.tag].join(".");
|
|
3540
3585
|
}
|
|
3541
3586
|
}
|
|
3542
|
-
const
|
|
3587
|
+
const Av = async (i, r, t) => {
|
|
3543
3588
|
const s = await Gf(i, r, "sign");
|
|
3544
3589
|
Di(i, s);
|
|
3545
3590
|
const o = await q.subtle.sign(kf(i, s.algorithm), s, t);
|
|
@@ -3581,7 +3626,7 @@ class Va {
|
|
|
3581
3626
|
u && (p = ve.encode(_e(p)));
|
|
3582
3627
|
let g;
|
|
3583
3628
|
this._protectedHeader ? g = ve.encode(_e(JSON.stringify(this._protectedHeader))) : g = ve.encode("");
|
|
3584
|
-
const m = Tt(g, ve.encode("."), p), w = await
|
|
3629
|
+
const m = Tt(g, ve.encode("."), p), w = await Av(f, r, m), E = {
|
|
3585
3630
|
signature: _e(w),
|
|
3586
3631
|
payload: ""
|
|
3587
3632
|
};
|
|
@@ -3602,7 +3647,7 @@ class Xf {
|
|
|
3602
3647
|
return `${s.protected}.${s.payload}.${s.signature}`;
|
|
3603
3648
|
}
|
|
3604
3649
|
}
|
|
3605
|
-
class
|
|
3650
|
+
class Ev {
|
|
3606
3651
|
constructor(r, t, s) {
|
|
3607
3652
|
this.parent = r, this.key = t, this.options = s;
|
|
3608
3653
|
}
|
|
@@ -3626,12 +3671,12 @@ class bv {
|
|
|
3626
3671
|
return this.parent;
|
|
3627
3672
|
}
|
|
3628
3673
|
}
|
|
3629
|
-
class
|
|
3674
|
+
class xv {
|
|
3630
3675
|
constructor(r) {
|
|
3631
3676
|
this._signatures = [], this._payload = r;
|
|
3632
3677
|
}
|
|
3633
3678
|
addSignature(r, t) {
|
|
3634
|
-
const s = new
|
|
3679
|
+
const s = new Ev(this, r, t);
|
|
3635
3680
|
return this._signatures.push(s), s;
|
|
3636
3681
|
}
|
|
3637
3682
|
async sign() {
|
|
@@ -3682,7 +3727,7 @@ class qa {
|
|
|
3682
3727
|
return typeof r > "u" ? this._payload = { ...this._payload, iat: hi(/* @__PURE__ */ new Date()) } : this._payload = { ...this._payload, iat: r }, this;
|
|
3683
3728
|
}
|
|
3684
3729
|
}
|
|
3685
|
-
class
|
|
3730
|
+
class Cv extends qa {
|
|
3686
3731
|
setProtectedHeader(r) {
|
|
3687
3732
|
return this._protectedHeader = r, this;
|
|
3688
3733
|
}
|
|
@@ -3694,7 +3739,7 @@ class Ev extends qa {
|
|
|
3694
3739
|
return o.sign(r, t);
|
|
3695
3740
|
}
|
|
3696
3741
|
}
|
|
3697
|
-
class
|
|
3742
|
+
class Pv extends qa {
|
|
3698
3743
|
setProtectedHeader(r) {
|
|
3699
3744
|
if (this._protectedHeader)
|
|
3700
3745
|
throw new TypeError("setProtectedHeader can only be called once");
|
|
@@ -3758,12 +3803,12 @@ async function Zf(i, r) {
|
|
|
3758
3803
|
const s = ve.encode(JSON.stringify(t));
|
|
3759
3804
|
return _e(await mf(r, s));
|
|
3760
3805
|
}
|
|
3761
|
-
async function
|
|
3806
|
+
async function Rv(i, r) {
|
|
3762
3807
|
r ?? (r = "sha256");
|
|
3763
3808
|
const t = await Zf(i, r);
|
|
3764
3809
|
return `urn:ietf:params:oauth:jwk-thumbprint:sha-${r.slice(-3)}:${t}`;
|
|
3765
3810
|
}
|
|
3766
|
-
async function
|
|
3811
|
+
async function Ov(i, r) {
|
|
3767
3812
|
const t = {
|
|
3768
3813
|
...i,
|
|
3769
3814
|
...r == null ? void 0 : r.header
|
|
@@ -3775,7 +3820,7 @@ async function Pv(i, r) {
|
|
|
3775
3820
|
throw new ae('"jwk" (JSON Web Key) Header Parameter must be a public key');
|
|
3776
3821
|
return s;
|
|
3777
3822
|
}
|
|
3778
|
-
function
|
|
3823
|
+
function Tv(i) {
|
|
3779
3824
|
switch (typeof i == "string" && i.slice(0, 2)) {
|
|
3780
3825
|
case "RS":
|
|
3781
3826
|
case "PS":
|
|
@@ -3789,22 +3834,22 @@ function Rv(i) {
|
|
|
3789
3834
|
}
|
|
3790
3835
|
}
|
|
3791
3836
|
function Qf(i) {
|
|
3792
|
-
return i && typeof i == "object" && Array.isArray(i.keys) && i.keys.every(
|
|
3837
|
+
return i && typeof i == "object" && Array.isArray(i.keys) && i.keys.every(Iv);
|
|
3793
3838
|
}
|
|
3794
|
-
function
|
|
3839
|
+
function Iv(i) {
|
|
3795
3840
|
return Ce(i);
|
|
3796
3841
|
}
|
|
3797
|
-
function
|
|
3842
|
+
function Hv(i) {
|
|
3798
3843
|
return typeof structuredClone == "function" ? structuredClone(i) : JSON.parse(JSON.stringify(i));
|
|
3799
3844
|
}
|
|
3800
3845
|
class jf {
|
|
3801
3846
|
constructor(r) {
|
|
3802
3847
|
if (this._cached = /* @__PURE__ */ new WeakMap(), !Qf(r))
|
|
3803
3848
|
throw new Li("JSON Web Key Set malformed");
|
|
3804
|
-
this._jwks =
|
|
3849
|
+
this._jwks = Hv(r);
|
|
3805
3850
|
}
|
|
3806
3851
|
async getKey(r, t) {
|
|
3807
|
-
const { alg: s, kid: o } = { ...r, ...t == null ? void 0 : t.header }, u =
|
|
3852
|
+
const { alg: s, kid: o } = { ...r, ...t == null ? void 0 : t.header }, u = Tv(s), f = this._jwks.keys.filter((m) => {
|
|
3808
3853
|
let w = u === m.kty;
|
|
3809
3854
|
if (w && typeof o == "string" && (w = o === m.kid), w && typeof m.alg == "string" && (w = s === m.alg), w && typeof m.use == "string" && (w = m.use === "sig"), w && Array.isArray(m.key_ops) && (w = m.key_ops.includes("verify")), w && s === "EdDSA" && (w = m.crv === "Ed25519" || m.crv === "Ed448"), w)
|
|
3810
3855
|
switch (s) {
|
|
@@ -3849,13 +3894,13 @@ async function Yc(i, r, t) {
|
|
|
3849
3894
|
}
|
|
3850
3895
|
return s[t];
|
|
3851
3896
|
}
|
|
3852
|
-
function
|
|
3897
|
+
function Lv(i) {
|
|
3853
3898
|
const r = new jf(i);
|
|
3854
3899
|
return async function(t, s) {
|
|
3855
3900
|
return r.getKey(t, s);
|
|
3856
3901
|
};
|
|
3857
3902
|
}
|
|
3858
|
-
const
|
|
3903
|
+
const Kv = async (i, r, t) => {
|
|
3859
3904
|
let s, o, u = !1;
|
|
3860
3905
|
typeof AbortController == "function" && (s = new AbortController(), o = setTimeout(() => {
|
|
3861
3906
|
u = !0, s.abort();
|
|
@@ -3875,10 +3920,10 @@ const Hv = async (i, r, t) => {
|
|
|
3875
3920
|
throw new Ie("Failed to parse the JSON Web Key Set HTTP response as JSON");
|
|
3876
3921
|
}
|
|
3877
3922
|
};
|
|
3878
|
-
function
|
|
3923
|
+
function Uv() {
|
|
3879
3924
|
return typeof WebSocketPair < "u" || typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers" || typeof EdgeRuntime < "u" && EdgeRuntime === "vercel";
|
|
3880
3925
|
}
|
|
3881
|
-
class
|
|
3926
|
+
class Dv extends jf {
|
|
3882
3927
|
constructor(r, t) {
|
|
3883
3928
|
if (super({ keys: [] }), this._jwks = void 0, !(r instanceof URL))
|
|
3884
3929
|
throw new TypeError("url must be an instance of URL");
|
|
@@ -3901,7 +3946,7 @@ class Kv extends jf {
|
|
|
3901
3946
|
}
|
|
3902
3947
|
}
|
|
3903
3948
|
async reload() {
|
|
3904
|
-
this._pendingFetch &&
|
|
3949
|
+
this._pendingFetch && Uv() && (this._pendingFetch = void 0), this._pendingFetch || (this._pendingFetch = Kv(this._url, this._timeoutDuration, this._options).then((r) => {
|
|
3905
3950
|
if (!Qf(r))
|
|
3906
3951
|
throw new Li("JSON Web Key Set malformed");
|
|
3907
3952
|
this._jwks = { keys: r.keys }, this._jwksTimestamp = Date.now(), this._pendingFetch = void 0;
|
|
@@ -3910,13 +3955,13 @@ class Kv extends jf {
|
|
|
3910
3955
|
})), await this._pendingFetch;
|
|
3911
3956
|
}
|
|
3912
3957
|
}
|
|
3913
|
-
function
|
|
3914
|
-
const t = new
|
|
3958
|
+
function Wv(i, r) {
|
|
3959
|
+
const t = new Dv(i, r);
|
|
3915
3960
|
return async function(s, o) {
|
|
3916
3961
|
return t.getKey(s, o);
|
|
3917
3962
|
};
|
|
3918
3963
|
}
|
|
3919
|
-
class
|
|
3964
|
+
class Nv extends qa {
|
|
3920
3965
|
encode() {
|
|
3921
3966
|
const r = _e(JSON.stringify({ alg: "none" })), t = _e(JSON.stringify(this._payload));
|
|
3922
3967
|
return `${r}.${t}.`;
|
|
@@ -3937,12 +3982,12 @@ class Dv extends qa {
|
|
|
3937
3982
|
return { payload: za(p, Ee(o), t), header: p };
|
|
3938
3983
|
}
|
|
3939
3984
|
}
|
|
3940
|
-
const
|
|
3985
|
+
const Mv = _e, Ya = Ee, $v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3941
3986
|
__proto__: null,
|
|
3942
3987
|
decode: Ya,
|
|
3943
|
-
encode:
|
|
3988
|
+
encode: Mv
|
|
3944
3989
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3945
|
-
function
|
|
3990
|
+
function Jv(i) {
|
|
3946
3991
|
let r;
|
|
3947
3992
|
if (typeof i == "string") {
|
|
3948
3993
|
const t = i.split(".");
|
|
@@ -3963,7 +4008,7 @@ function Mv(i) {
|
|
|
3963
4008
|
throw new TypeError("Invalid Token or Protected Header formatting");
|
|
3964
4009
|
}
|
|
3965
4010
|
}
|
|
3966
|
-
function
|
|
4011
|
+
function Fv(i) {
|
|
3967
4012
|
if (typeof i != "string")
|
|
3968
4013
|
throw new Ze("JWTs must use Compact JWS serialization, JWT must be a string");
|
|
3969
4014
|
const { 1: r, length: t } = i.split(".");
|
|
@@ -3989,7 +4034,7 @@ function $v(i) {
|
|
|
3989
4034
|
throw new Ze("Invalid JWT Claims Set");
|
|
3990
4035
|
return o;
|
|
3991
4036
|
}
|
|
3992
|
-
async function
|
|
4037
|
+
async function Bv(i, r) {
|
|
3993
4038
|
var t;
|
|
3994
4039
|
let s, o, u;
|
|
3995
4040
|
switch (i) {
|
|
@@ -4027,7 +4072,7 @@ function ha(i) {
|
|
|
4027
4072
|
throw new ne("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used");
|
|
4028
4073
|
return t;
|
|
4029
4074
|
}
|
|
4030
|
-
async function
|
|
4075
|
+
async function kv(i, r) {
|
|
4031
4076
|
var t, s, o;
|
|
4032
4077
|
let u, f;
|
|
4033
4078
|
switch (i) {
|
|
@@ -4110,51 +4155,51 @@ async function Fv(i, r) {
|
|
|
4110
4155
|
}
|
|
4111
4156
|
return q.subtle.generateKey(u, (o = r == null ? void 0 : r.extractable) !== null && o !== void 0 ? o : !1, f);
|
|
4112
4157
|
}
|
|
4113
|
-
async function
|
|
4114
|
-
return
|
|
4158
|
+
async function Gv(i, r) {
|
|
4159
|
+
return kv(i, r);
|
|
4115
4160
|
}
|
|
4116
|
-
async function
|
|
4117
|
-
return
|
|
4161
|
+
async function zv(i, r) {
|
|
4162
|
+
return Bv(i, r);
|
|
4118
4163
|
}
|
|
4119
|
-
const
|
|
4164
|
+
const Vv = "WebCryptoAPI", qv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4120
4165
|
__proto__: null,
|
|
4121
4166
|
CompactEncrypt: Yf,
|
|
4122
4167
|
CompactSign: Xf,
|
|
4123
|
-
EmbeddedJWK:
|
|
4124
|
-
EncryptJWT:
|
|
4168
|
+
EmbeddedJWK: Ov,
|
|
4169
|
+
EncryptJWT: Pv,
|
|
4125
4170
|
FlattenedEncrypt: Ei,
|
|
4126
4171
|
FlattenedSign: Va,
|
|
4127
|
-
GeneralEncrypt:
|
|
4128
|
-
GeneralSign:
|
|
4129
|
-
SignJWT:
|
|
4130
|
-
UnsecuredJWT:
|
|
4131
|
-
base64url:
|
|
4172
|
+
GeneralEncrypt: pv,
|
|
4173
|
+
GeneralSign: xv,
|
|
4174
|
+
SignJWT: Cv,
|
|
4175
|
+
UnsecuredJWT: Nv,
|
|
4176
|
+
base64url: $v,
|
|
4132
4177
|
calculateJwkThumbprint: Zf,
|
|
4133
|
-
calculateJwkThumbprintUri:
|
|
4178
|
+
calculateJwkThumbprintUri: Rv,
|
|
4134
4179
|
compactDecrypt: $f,
|
|
4135
4180
|
compactVerify: zf,
|
|
4136
|
-
createLocalJWKSet:
|
|
4137
|
-
createRemoteJWKSet:
|
|
4138
|
-
cryptoRuntime:
|
|
4139
|
-
decodeJwt:
|
|
4140
|
-
decodeProtectedHeader:
|
|
4141
|
-
errors:
|
|
4181
|
+
createLocalJWKSet: Lv,
|
|
4182
|
+
createRemoteJWKSet: Wv,
|
|
4183
|
+
cryptoRuntime: Vv,
|
|
4184
|
+
decodeJwt: Fv,
|
|
4185
|
+
decodeProtectedHeader: Jv,
|
|
4186
|
+
errors: R1,
|
|
4142
4187
|
exportJWK: Jf,
|
|
4143
|
-
exportPKCS8:
|
|
4144
|
-
exportSPKI:
|
|
4188
|
+
exportPKCS8: hv,
|
|
4189
|
+
exportSPKI: lv,
|
|
4145
4190
|
flattenedDecrypt: Ba,
|
|
4146
4191
|
flattenedVerify: ka,
|
|
4147
|
-
generalDecrypt:
|
|
4148
|
-
generalVerify:
|
|
4149
|
-
generateKeyPair:
|
|
4150
|
-
generateSecret:
|
|
4192
|
+
generalDecrypt: uv,
|
|
4193
|
+
generalVerify: mv,
|
|
4194
|
+
generateKeyPair: Gv,
|
|
4195
|
+
generateSecret: zv,
|
|
4151
4196
|
importJWK: Wi,
|
|
4152
|
-
importPKCS8:
|
|
4153
|
-
importSPKI:
|
|
4154
|
-
importX509:
|
|
4155
|
-
jwtDecrypt:
|
|
4156
|
-
jwtVerify:
|
|
4157
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4197
|
+
importPKCS8: ev,
|
|
4198
|
+
importSPKI: Q1,
|
|
4199
|
+
importX509: j1,
|
|
4200
|
+
jwtDecrypt: bv,
|
|
4201
|
+
jwtVerify: Sv
|
|
4202
|
+
}, Symbol.toStringTag, { value: "Module" })), Yv = /* @__PURE__ */ Wa(qv), Xv = () => {
|
|
4158
4203
|
if (typeof globalThis < "u")
|
|
4159
4204
|
return globalThis;
|
|
4160
4205
|
if (typeof self < "u")
|
|
@@ -4162,8 +4207,8 @@ const Gv = "WebCryptoAPI", zv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
4162
4207
|
if (typeof window < "u")
|
|
4163
4208
|
return window;
|
|
4164
4209
|
throw new Error("unable to locate global object");
|
|
4165
|
-
},
|
|
4166
|
-
const { crypto: { subtle: u } } =
|
|
4210
|
+
}, Zv = async (i, r, t, s, o) => {
|
|
4211
|
+
const { crypto: { subtle: u } } = Xv();
|
|
4167
4212
|
return new Uint8Array(await u.deriveBits({
|
|
4168
4213
|
name: "HKDF",
|
|
4169
4214
|
hash: `SHA-${i.substr(3)}`,
|
|
@@ -4171,7 +4216,7 @@ const Gv = "WebCryptoAPI", zv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
4171
4216
|
info: s
|
|
4172
4217
|
}, await u.importKey("raw", r, "HKDF", !1, ["deriveBits"]), o << 3));
|
|
4173
4218
|
};
|
|
4174
|
-
function
|
|
4219
|
+
function Qv(i) {
|
|
4175
4220
|
switch (i) {
|
|
4176
4221
|
case "sha256":
|
|
4177
4222
|
case "sha384":
|
|
@@ -4189,19 +4234,19 @@ function Xa(i, r) {
|
|
|
4189
4234
|
throw new TypeError(`"${r}"" must be an instance of Uint8Array or a string`);
|
|
4190
4235
|
return i;
|
|
4191
4236
|
}
|
|
4192
|
-
function
|
|
4237
|
+
function jv(i) {
|
|
4193
4238
|
const r = Xa(i, "ikm");
|
|
4194
4239
|
if (!r.byteLength)
|
|
4195
4240
|
throw new TypeError('"ikm" must be at least one byte in length');
|
|
4196
4241
|
return r;
|
|
4197
4242
|
}
|
|
4198
|
-
function
|
|
4243
|
+
function ew(i) {
|
|
4199
4244
|
const r = Xa(i, "info");
|
|
4200
4245
|
if (r.byteLength > 1024)
|
|
4201
4246
|
throw TypeError('"info" must not contain more than 1024 bytes');
|
|
4202
4247
|
return r;
|
|
4203
4248
|
}
|
|
4204
|
-
function
|
|
4249
|
+
function tw(i, r) {
|
|
4205
4250
|
if (typeof i != "number" || !Number.isInteger(i) || i < 1)
|
|
4206
4251
|
throw new TypeError('"keylen" must be a positive integer');
|
|
4207
4252
|
const t = parseInt(r.substr(3), 10) >> 3 || 20;
|
|
@@ -4210,22 +4255,22 @@ function jv(i, r) {
|
|
|
4210
4255
|
return i;
|
|
4211
4256
|
}
|
|
4212
4257
|
async function Xc(i, r, t, s, o) {
|
|
4213
|
-
return
|
|
4258
|
+
return Zv(Qv(i), jv(r), Xa(t, "salt"), ew(s), tw(o, i));
|
|
4214
4259
|
}
|
|
4215
|
-
const
|
|
4260
|
+
const nw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4216
4261
|
__proto__: null,
|
|
4217
4262
|
default: Xc,
|
|
4218
4263
|
hkdf: Xc
|
|
4219
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4220
|
-
var ci,
|
|
4264
|
+
}, Symbol.toStringTag, { value: "Module" })), rw = /* @__PURE__ */ Wa(nw);
|
|
4265
|
+
var ci, iw = new Uint8Array(16);
|
|
4221
4266
|
function el() {
|
|
4222
4267
|
if (!ci && (ci = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !ci))
|
|
4223
4268
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
4224
|
-
return ci(
|
|
4269
|
+
return ci(iw);
|
|
4225
4270
|
}
|
|
4226
|
-
const
|
|
4271
|
+
const sw = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
4227
4272
|
function Mi(i) {
|
|
4228
|
-
return typeof i == "string" &&
|
|
4273
|
+
return typeof i == "string" && sw.test(i);
|
|
4229
4274
|
}
|
|
4230
4275
|
var Oe = [];
|
|
4231
4276
|
for (var da = 0; da < 256; ++da)
|
|
@@ -4237,7 +4282,7 @@ function $i(i) {
|
|
|
4237
4282
|
return t;
|
|
4238
4283
|
}
|
|
4239
4284
|
var Zc, pa, ga = 0, ma = 0;
|
|
4240
|
-
function
|
|
4285
|
+
function aw(i, r, t) {
|
|
4241
4286
|
var s = r && t || 0, o = r || new Array(16);
|
|
4242
4287
|
i = i || {};
|
|
4243
4288
|
var u = i.node || Zc, f = i.clockseq !== void 0 ? i.clockseq : pa;
|
|
@@ -4263,16 +4308,16 @@ function tl(i) {
|
|
|
4263
4308
|
var r, t = new Uint8Array(16);
|
|
4264
4309
|
return t[0] = (r = parseInt(i.slice(0, 8), 16)) >>> 24, t[1] = r >>> 16 & 255, t[2] = r >>> 8 & 255, t[3] = r & 255, t[4] = (r = parseInt(i.slice(9, 13), 16)) >>> 8, t[5] = r & 255, t[6] = (r = parseInt(i.slice(14, 18), 16)) >>> 8, t[7] = r & 255, t[8] = (r = parseInt(i.slice(19, 23), 16)) >>> 8, t[9] = r & 255, t[10] = (r = parseInt(i.slice(24, 36), 16)) / 1099511627776 & 255, t[11] = r / 4294967296 & 255, t[12] = r >>> 24 & 255, t[13] = r >>> 16 & 255, t[14] = r >>> 8 & 255, t[15] = r & 255, t;
|
|
4265
4310
|
}
|
|
4266
|
-
function
|
|
4311
|
+
function ow(i) {
|
|
4267
4312
|
i = unescape(encodeURIComponent(i));
|
|
4268
4313
|
for (var r = [], t = 0; t < i.length; ++t)
|
|
4269
4314
|
r.push(i.charCodeAt(t));
|
|
4270
4315
|
return r;
|
|
4271
4316
|
}
|
|
4272
|
-
var
|
|
4317
|
+
var uw = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", cw = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
4273
4318
|
function nl(i, r, t) {
|
|
4274
4319
|
function s(o, u, f, p) {
|
|
4275
|
-
if (typeof o == "string" && (o =
|
|
4320
|
+
if (typeof o == "string" && (o = ow(o)), typeof u == "string" && (u = tl(u)), u.length !== 16)
|
|
4276
4321
|
throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
|
4277
4322
|
var g = new Uint8Array(16 + o.length);
|
|
4278
4323
|
if (g.set(u), g.set(o, u.length), g = t(g), g[6] = g[6] & 15 | r, g[8] = g[8] & 63 | 128, f) {
|
|
@@ -4287,18 +4332,18 @@ function nl(i, r, t) {
|
|
|
4287
4332
|
s.name = i;
|
|
4288
4333
|
} catch {
|
|
4289
4334
|
}
|
|
4290
|
-
return s.DNS =
|
|
4335
|
+
return s.DNS = uw, s.URL = cw, s;
|
|
4291
4336
|
}
|
|
4292
|
-
function
|
|
4337
|
+
function fw(i) {
|
|
4293
4338
|
if (typeof i == "string") {
|
|
4294
4339
|
var r = unescape(encodeURIComponent(i));
|
|
4295
4340
|
i = new Uint8Array(r.length);
|
|
4296
4341
|
for (var t = 0; t < r.length; ++t)
|
|
4297
4342
|
i[t] = r.charCodeAt(t);
|
|
4298
4343
|
}
|
|
4299
|
-
return
|
|
4344
|
+
return lw(hw(dw(i), i.length * 8));
|
|
4300
4345
|
}
|
|
4301
|
-
function
|
|
4346
|
+
function lw(i) {
|
|
4302
4347
|
for (var r = [], t = i.length * 32, s = "0123456789abcdef", o = 0; o < t; o += 8) {
|
|
4303
4348
|
var u = i[o >> 5] >>> o % 32 & 255, f = parseInt(s.charAt(u >>> 4 & 15) + s.charAt(u & 15), 16);
|
|
4304
4349
|
r.push(f);
|
|
@@ -4308,7 +4353,7 @@ function cw(i) {
|
|
|
4308
4353
|
function rl(i) {
|
|
4309
4354
|
return (i + 64 >>> 9 << 4) + 14 + 1;
|
|
4310
4355
|
}
|
|
4311
|
-
function
|
|
4356
|
+
function hw(i, r) {
|
|
4312
4357
|
i[r >> 5] |= 128 << r % 32, i[rl(r) - 1] = r;
|
|
4313
4358
|
for (var t = 1732584193, s = -271733879, o = -1732584194, u = 271733878, f = 0; f < i.length; f += 16) {
|
|
4314
4359
|
var p = t, g = s, m = o, w = u;
|
|
@@ -4316,7 +4361,7 @@ function fw(i, r) {
|
|
|
4316
4361
|
}
|
|
4317
4362
|
return [t, s, o, u];
|
|
4318
4363
|
}
|
|
4319
|
-
function
|
|
4364
|
+
function dw(i) {
|
|
4320
4365
|
if (i.length === 0)
|
|
4321
4366
|
return [];
|
|
4322
4367
|
for (var r = i.length * 8, t = new Uint32Array(rl(r)), s = 0; s < r; s += 8)
|
|
@@ -4327,11 +4372,11 @@ function nn(i, r) {
|
|
|
4327
4372
|
var t = (i & 65535) + (r & 65535), s = (i >> 16) + (r >> 16) + (t >> 16);
|
|
4328
4373
|
return s << 16 | t & 65535;
|
|
4329
4374
|
}
|
|
4330
|
-
function
|
|
4375
|
+
function pw(i, r) {
|
|
4331
4376
|
return i << r | i >>> 32 - r;
|
|
4332
4377
|
}
|
|
4333
4378
|
function Ji(i, r, t, s, o, u) {
|
|
4334
|
-
return nn(
|
|
4379
|
+
return nn(pw(nn(nn(r, i), nn(s, u)), o), t);
|
|
4335
4380
|
}
|
|
4336
4381
|
function Ke(i, r, t, s, o, u, f) {
|
|
4337
4382
|
return Ji(r & t | ~r & s, i, r, o, u, f);
|
|
@@ -4345,9 +4390,9 @@ function De(i, r, t, s, o, u, f) {
|
|
|
4345
4390
|
function We(i, r, t, s, o, u, f) {
|
|
4346
4391
|
return Ji(t ^ (r | ~s), i, r, o, u, f);
|
|
4347
4392
|
}
|
|
4348
|
-
var
|
|
4349
|
-
const
|
|
4350
|
-
function
|
|
4393
|
+
var gw = nl("v3", 48, fw);
|
|
4394
|
+
const mw = gw;
|
|
4395
|
+
function yw(i, r, t) {
|
|
4351
4396
|
i = i || {};
|
|
4352
4397
|
var s = i.random || (i.rng || el)();
|
|
4353
4398
|
if (s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, r) {
|
|
@@ -4358,7 +4403,7 @@ function gw(i, r, t) {
|
|
|
4358
4403
|
}
|
|
4359
4404
|
return $i(s);
|
|
4360
4405
|
}
|
|
4361
|
-
function
|
|
4406
|
+
function vw(i, r, t, s) {
|
|
4362
4407
|
switch (i) {
|
|
4363
4408
|
case 0:
|
|
4364
4409
|
return r & t ^ ~r & s;
|
|
@@ -4373,7 +4418,7 @@ function mw(i, r, t, s) {
|
|
|
4373
4418
|
function ya(i, r) {
|
|
4374
4419
|
return i << r | i >>> 32 - r;
|
|
4375
4420
|
}
|
|
4376
|
-
function
|
|
4421
|
+
function ww(i) {
|
|
4377
4422
|
var r = [1518500249, 1859775393, 2400959708, 3395469782], t = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
|
|
4378
4423
|
if (typeof i == "string") {
|
|
4379
4424
|
var s = unescape(encodeURIComponent(i));
|
|
@@ -4395,34 +4440,34 @@ function yw(i) {
|
|
|
4395
4440
|
for (var R = 16; R < 80; ++R)
|
|
4396
4441
|
S[R] = ya(S[R - 3] ^ S[R - 8] ^ S[R - 14] ^ S[R - 16], 1);
|
|
4397
4442
|
for (var I = t[0], W = t[1], X = t[2], z = t[3], U = t[4], H = 0; H < 80; ++H) {
|
|
4398
|
-
var F = Math.floor(H / 20), j = ya(I, 5) +
|
|
4443
|
+
var F = Math.floor(H / 20), j = ya(I, 5) + vw(F, W, X, z) + U + r[F] + S[H] >>> 0;
|
|
4399
4444
|
U = z, z = X, X = ya(W, 30) >>> 0, W = I, I = j;
|
|
4400
4445
|
}
|
|
4401
4446
|
t[0] = t[0] + I >>> 0, t[1] = t[1] + W >>> 0, t[2] = t[2] + X >>> 0, t[3] = t[3] + z >>> 0, t[4] = t[4] + U >>> 0;
|
|
4402
4447
|
}
|
|
4403
4448
|
return [t[0] >> 24 & 255, t[0] >> 16 & 255, t[0] >> 8 & 255, t[0] & 255, t[1] >> 24 & 255, t[1] >> 16 & 255, t[1] >> 8 & 255, t[1] & 255, t[2] >> 24 & 255, t[2] >> 16 & 255, t[2] >> 8 & 255, t[2] & 255, t[3] >> 24 & 255, t[3] >> 16 & 255, t[3] >> 8 & 255, t[3] & 255, t[4] >> 24 & 255, t[4] >> 16 & 255, t[4] >> 8 & 255, t[4] & 255];
|
|
4404
4449
|
}
|
|
4405
|
-
var
|
|
4406
|
-
const
|
|
4407
|
-
function
|
|
4450
|
+
var _w = nl("v5", 80, ww);
|
|
4451
|
+
const Sw = _w, bw = "00000000-0000-0000-0000-000000000000";
|
|
4452
|
+
function Aw(i) {
|
|
4408
4453
|
if (!Mi(i))
|
|
4409
4454
|
throw TypeError("Invalid UUID");
|
|
4410
4455
|
return parseInt(i.substr(14, 1), 16);
|
|
4411
4456
|
}
|
|
4412
|
-
const
|
|
4457
|
+
const Ew = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4413
4458
|
__proto__: null,
|
|
4414
|
-
NIL:
|
|
4459
|
+
NIL: bw,
|
|
4415
4460
|
parse: tl,
|
|
4416
4461
|
stringify: $i,
|
|
4417
|
-
v1:
|
|
4418
|
-
v3:
|
|
4419
|
-
v4:
|
|
4420
|
-
v5:
|
|
4462
|
+
v1: aw,
|
|
4463
|
+
v3: mw,
|
|
4464
|
+
v4: yw,
|
|
4465
|
+
v5: Sw,
|
|
4421
4466
|
validate: Mi,
|
|
4422
|
-
version:
|
|
4423
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4467
|
+
version: Aw
|
|
4468
|
+
}, Symbol.toStringTag, { value: "Module" })), xw = /* @__PURE__ */ Wa(Ew);
|
|
4424
4469
|
var Wn = {}, va = { exports: {} }, wa = { exports: {} }, Qc;
|
|
4425
|
-
function
|
|
4470
|
+
function Cw() {
|
|
4426
4471
|
return Qc || (Qc = 1, function(i) {
|
|
4427
4472
|
function r(t, s) {
|
|
4428
4473
|
return s.get ? s.get.call(t) : s.value;
|
|
@@ -4442,9 +4487,9 @@ function il() {
|
|
|
4442
4487
|
}(_a)), _a.exports;
|
|
4443
4488
|
}
|
|
4444
4489
|
var ef;
|
|
4445
|
-
function
|
|
4490
|
+
function Pw() {
|
|
4446
4491
|
return ef || (ef = 1, function(i) {
|
|
4447
|
-
var r =
|
|
4492
|
+
var r = Cw(), t = il();
|
|
4448
4493
|
function s(o, u) {
|
|
4449
4494
|
var f = t(o, u, "get");
|
|
4450
4495
|
return r(o, f);
|
|
@@ -4453,7 +4498,7 @@ function xw() {
|
|
|
4453
4498
|
}(va)), va.exports;
|
|
4454
4499
|
}
|
|
4455
4500
|
var Sa = { exports: {} }, ba = { exports: {} }, tf;
|
|
4456
|
-
function
|
|
4501
|
+
function Rw() {
|
|
4457
4502
|
return tf || (tf = 1, function(i) {
|
|
4458
4503
|
function r(t, s, o) {
|
|
4459
4504
|
if (s.set)
|
|
@@ -4468,9 +4513,9 @@ function Cw() {
|
|
|
4468
4513
|
}(ba)), ba.exports;
|
|
4469
4514
|
}
|
|
4470
4515
|
var nf;
|
|
4471
|
-
function
|
|
4516
|
+
function Ow() {
|
|
4472
4517
|
return nf || (nf = 1, function(i) {
|
|
4473
|
-
var r =
|
|
4518
|
+
var r = Rw(), t = il();
|
|
4474
4519
|
function s(o, u, f) {
|
|
4475
4520
|
var p = t(o, u, "set");
|
|
4476
4521
|
return r(o, p, f), f;
|
|
@@ -4479,7 +4524,7 @@ function Pw() {
|
|
|
4479
4524
|
}(Sa)), Sa.exports;
|
|
4480
4525
|
}
|
|
4481
4526
|
var rf;
|
|
4482
|
-
function
|
|
4527
|
+
function Tw() {
|
|
4483
4528
|
if (rf)
|
|
4484
4529
|
return Wn;
|
|
4485
4530
|
rf = 1;
|
|
@@ -4487,7 +4532,7 @@ function Rw() {
|
|
|
4487
4532
|
Object.defineProperty(Wn, "__esModule", {
|
|
4488
4533
|
value: !0
|
|
4489
4534
|
}), Wn.SessionStore = void 0, Wn.defaultCookies = w;
|
|
4490
|
-
var r = i(
|
|
4535
|
+
var r = i(Pw()), t = i(Ow());
|
|
4491
4536
|
function s(U, H) {
|
|
4492
4537
|
u(U, H), H.add(U);
|
|
4493
4538
|
}
|
|
@@ -4659,7 +4704,7 @@ function Rw() {
|
|
|
4659
4704
|
return Wn;
|
|
4660
4705
|
}
|
|
4661
4706
|
var Aa = {}, sf;
|
|
4662
|
-
function
|
|
4707
|
+
function Iw() {
|
|
4663
4708
|
return sf || (sf = 1, Object.defineProperty(Aa, "__esModule", {
|
|
4664
4709
|
value: !0
|
|
4665
4710
|
})), Aa;
|
|
@@ -4675,7 +4720,7 @@ function Ow() {
|
|
|
4675
4720
|
getToken: !0
|
|
4676
4721
|
};
|
|
4677
4722
|
i.decode = E, i.encode = w, i.getToken = S;
|
|
4678
|
-
var s =
|
|
4723
|
+
var s = Yv, o = r(rw), u = xw, f = Tw(), p = Iw();
|
|
4679
4724
|
Object.keys(p).forEach(function(R) {
|
|
4680
4725
|
R === "default" || R === "__esModule" || Object.prototype.hasOwnProperty.call(t, R) || R in i && i[R] === p[R] || Object.defineProperty(i, R, {
|
|
4681
4726
|
enumerable: !0,
|
|
@@ -5420,10 +5465,10 @@ Ci.exports;
|
|
|
5420
5465
|
for (; b-- && L < N; ) {
|
|
5421
5466
|
C += n;
|
|
5422
5467
|
for (var Y = -1, J = e[C]; ++Y < O; ) {
|
|
5423
|
-
var Q = P[Y], te = Q.iteratee, st = Q.type,
|
|
5468
|
+
var Q = P[Y], te = Q.iteratee, st = Q.type, Fe = te(J);
|
|
5424
5469
|
if (st == sn)
|
|
5425
|
-
J =
|
|
5426
|
-
else if (!
|
|
5470
|
+
J = Fe;
|
|
5471
|
+
else if (!Fe) {
|
|
5427
5472
|
if (st == Bt)
|
|
5428
5473
|
continue e;
|
|
5429
5474
|
break e;
|
|
@@ -5759,7 +5804,7 @@ Ci.exports;
|
|
|
5759
5804
|
var c = n(e);
|
|
5760
5805
|
return G(e) ? c : Gt(c, a(e));
|
|
5761
5806
|
}
|
|
5762
|
-
function
|
|
5807
|
+
function $e(e) {
|
|
5763
5808
|
return e == null ? e === t ? yl : gl : on && on in oe(e) ? Ep(e) : Wp(e);
|
|
5764
5809
|
}
|
|
5765
5810
|
function Es(e, n) {
|
|
@@ -5806,13 +5851,13 @@ Ci.exports;
|
|
|
5806
5851
|
return c == null ? t : tt(c, e, a);
|
|
5807
5852
|
}
|
|
5808
5853
|
function cu(e) {
|
|
5809
|
-
return pe(e) &&
|
|
5854
|
+
return pe(e) && $e(e) == wn;
|
|
5810
5855
|
}
|
|
5811
5856
|
function Vd(e) {
|
|
5812
|
-
return pe(e) &&
|
|
5857
|
+
return pe(e) && $e(e) == zn;
|
|
5813
5858
|
}
|
|
5814
5859
|
function qd(e) {
|
|
5815
|
-
return pe(e) &&
|
|
5860
|
+
return pe(e) && $e(e) == Jn;
|
|
5816
5861
|
}
|
|
5817
5862
|
function nr(e, n, a, c, l) {
|
|
5818
5863
|
return e === n ? !0 : e == null || n == null || !pe(e) && !pe(n) ? e !== e && n !== n : Yd(e, n, a, c, nr, l);
|
|
@@ -5872,13 +5917,13 @@ Ci.exports;
|
|
|
5872
5917
|
return n.test(dn(e));
|
|
5873
5918
|
}
|
|
5874
5919
|
function Zd(e) {
|
|
5875
|
-
return pe(e) &&
|
|
5920
|
+
return pe(e) && $e(e) == Bn;
|
|
5876
5921
|
}
|
|
5877
5922
|
function Qd(e) {
|
|
5878
5923
|
return pe(e) && Le(e) == vt;
|
|
5879
5924
|
}
|
|
5880
5925
|
function jd(e) {
|
|
5881
|
-
return pe(e) && ii(e.length) && !!fe[
|
|
5926
|
+
return pe(e) && ii(e.length) && !!fe[$e(e)];
|
|
5882
5927
|
}
|
|
5883
5928
|
function lu(e) {
|
|
5884
5929
|
return typeof e == "function" ? e : e == null ? Ye : typeof e == "object" ? G(e) ? pu(e[0], e[1]) : du(e) : Lc(e);
|
|
@@ -6287,7 +6332,7 @@ Ci.exports;
|
|
|
6287
6332
|
function Tn(e) {
|
|
6288
6333
|
return Z(function(n, a) {
|
|
6289
6334
|
var c = -1, l = a.length, d = l > 1 ? a[l - 1] : t, y = l > 2 ? a[2] : t;
|
|
6290
|
-
for (d = e.length > 3 && typeof d == "function" ? (l--, d) : t, y &&
|
|
6335
|
+
for (d = e.length > 3 && typeof d == "function" ? (l--, d) : t, y && Je(a[0], a[1], y) && (d = l < 3 ? t : d, l = 1), n = oe(n); ++c < l; ) {
|
|
6291
6336
|
var v = a[c];
|
|
6292
6337
|
v && e(n, v, c, d);
|
|
6293
6338
|
}
|
|
@@ -6428,9 +6473,9 @@ Ci.exports;
|
|
|
6428
6473
|
for (var Q = arguments.length, te = A(Q), st = Q; st--; )
|
|
6429
6474
|
te[st] = arguments[st];
|
|
6430
6475
|
if (N)
|
|
6431
|
-
var
|
|
6476
|
+
var Fe = Hn(J), at = Th(te, Fe);
|
|
6432
6477
|
if (c && (te = Ou(te, c, l, N)), d && (te = Tu(te, d, y, N)), Q -= at, N && Q < C) {
|
|
6433
|
-
var ye = zt(te,
|
|
6478
|
+
var ye = zt(te, Fe);
|
|
6434
6479
|
return Nu(
|
|
6435
6480
|
e,
|
|
6436
6481
|
n,
|
|
@@ -6498,7 +6543,7 @@ Ci.exports;
|
|
|
6498
6543
|
}
|
|
6499
6544
|
function Wu(e) {
|
|
6500
6545
|
return function(n, a, c) {
|
|
6501
|
-
return c && typeof c != "number" &&
|
|
6546
|
+
return c && typeof c != "number" && Je(n, a, c) && (a = c = t), n = $t(n), a === t ? (a = n, n = 0) : a = $t(a), c = c === t ? n < a ? 1 : -1 : $t(c), ip(n, a, c, e);
|
|
6502
6547
|
};
|
|
6503
6548
|
}
|
|
6504
6549
|
function Yr(e) {
|
|
@@ -6673,8 +6718,8 @@ Ci.exports;
|
|
|
6673
6718
|
J || (J = L == "constructor");
|
|
6674
6719
|
}
|
|
6675
6720
|
if (Y && !J) {
|
|
6676
|
-
var
|
|
6677
|
-
|
|
6721
|
+
var Fe = e.constructor, at = n.constructor;
|
|
6722
|
+
Fe != at && "constructor" in e && "constructor" in n && !(typeof Fe == "function" && Fe instanceof Fe && typeof at == "function" && at instanceof at) && (Y = !1);
|
|
6678
6723
|
}
|
|
6679
6724
|
return d.delete(e), d.delete(n), Y;
|
|
6680
6725
|
}
|
|
@@ -6739,9 +6784,9 @@ Ci.exports;
|
|
|
6739
6784
|
for (var n = []; e; )
|
|
6740
6785
|
Gt(n, ks(e)), e = Ir(e);
|
|
6741
6786
|
return n;
|
|
6742
|
-
} : ua, Le =
|
|
6787
|
+
} : ua, Le = $e;
|
|
6743
6788
|
(vs && Le(new vs(new ArrayBuffer(1))) != _n || Yn && Le(new Yn()) != yt || ws && Le(ws.resolve()) != io || Pn && Le(new Pn()) != vt || Xn && Le(new Xn()) != Gn) && (Le = function(e) {
|
|
6744
|
-
var n =
|
|
6789
|
+
var n = $e(e), a = n == Ht ? e.constructor : t, c = a ? dn(a) : "";
|
|
6745
6790
|
if (c)
|
|
6746
6791
|
switch (c) {
|
|
6747
6792
|
case ad:
|
|
@@ -6847,7 +6892,7 @@ Ci.exports;
|
|
|
6847
6892
|
var a = typeof e;
|
|
6848
6893
|
return n = n ?? de, !!n && (a == "number" || a != "symbol" && Fl.test(e)) && e > -1 && e % 1 == 0 && e < n;
|
|
6849
6894
|
}
|
|
6850
|
-
function
|
|
6895
|
+
function Je(e, n, a) {
|
|
6851
6896
|
if (!he(a))
|
|
6852
6897
|
return !1;
|
|
6853
6898
|
var c = typeof n;
|
|
@@ -7005,7 +7050,7 @@ Ci.exports;
|
|
|
7005
7050
|
return n.__actions__ = ze(e.__actions__), n.__index__ = e.__index__, n.__values__ = e.__values__, n;
|
|
7006
7051
|
}
|
|
7007
7052
|
function $p(e, n, a) {
|
|
7008
|
-
(a ?
|
|
7053
|
+
(a ? Je(e, n, a) : n === t) ? n = 1 : n = Ae(V(n), 0);
|
|
7009
7054
|
var c = e == null ? 0 : e.length;
|
|
7010
7055
|
if (!c || n < 1)
|
|
7011
7056
|
return [];
|
|
@@ -7053,7 +7098,7 @@ Ci.exports;
|
|
|
7053
7098
|
}
|
|
7054
7099
|
function Xp(e, n, a, c) {
|
|
7055
7100
|
var l = e == null ? 0 : e.length;
|
|
7056
|
-
return l ? (a && typeof a != "number" &&
|
|
7101
|
+
return l ? (a && typeof a != "number" && Je(e, n, a) && (a = 0, c = l), Fd(e, n, a, c)) : [];
|
|
7057
7102
|
}
|
|
7058
7103
|
function tc(e, n, a) {
|
|
7059
7104
|
var c = e == null ? 0 : e.length;
|
|
@@ -7161,7 +7206,7 @@ Ci.exports;
|
|
|
7161
7206
|
}
|
|
7162
7207
|
function dg(e, n, a) {
|
|
7163
7208
|
var c = e == null ? 0 : e.length;
|
|
7164
|
-
return c ? (a && typeof a != "number" &&
|
|
7209
|
+
return c ? (a && typeof a != "number" && Je(e, n, a) ? (n = 0, a = c) : (n = n == null ? 0 : V(n), a = a === t ? c : V(a)), dt(e, n, a)) : [];
|
|
7165
7210
|
}
|
|
7166
7211
|
function pg(e, n) {
|
|
7167
7212
|
return Br(e, n);
|
|
@@ -7339,7 +7384,7 @@ Ci.exports;
|
|
|
7339
7384
|
});
|
|
7340
7385
|
function Zg(e, n, a) {
|
|
7341
7386
|
var c = G(e) ? Do : Jd;
|
|
7342
|
-
return a &&
|
|
7387
|
+
return a && Je(e, n, a) && (n = t), c(e, M(n, 3));
|
|
7343
7388
|
}
|
|
7344
7389
|
function Qg(e, n) {
|
|
7345
7390
|
var a = G(e) ? kt : au;
|
|
@@ -7408,7 +7453,7 @@ Ci.exports;
|
|
|
7408
7453
|
return n(e);
|
|
7409
7454
|
}
|
|
7410
7455
|
function pm(e, n, a) {
|
|
7411
|
-
(a ?
|
|
7456
|
+
(a ? Je(e, n, a) : n === t) ? n = 1 : n = V(n);
|
|
7412
7457
|
var c = G(e) ? Dd : ap;
|
|
7413
7458
|
return c(e, n);
|
|
7414
7459
|
}
|
|
@@ -7426,13 +7471,13 @@ Ci.exports;
|
|
|
7426
7471
|
}
|
|
7427
7472
|
function ym(e, n, a) {
|
|
7428
7473
|
var c = G(e) ? cs : cp;
|
|
7429
|
-
return a &&
|
|
7474
|
+
return a && Je(e, n, a) && (n = t), c(e, M(n, 3));
|
|
7430
7475
|
}
|
|
7431
7476
|
var vm = Z(function(e, n) {
|
|
7432
7477
|
if (e == null)
|
|
7433
7478
|
return [];
|
|
7434
7479
|
var a = n.length;
|
|
7435
|
-
return a > 1 &&
|
|
7480
|
+
return a > 1 && Je(e, n[0], n[1]) ? n = [] : a > 2 && Je(n[0], n[1], n[2]) && (n = [n[0]]), mu(e, Re(n, 1), []);
|
|
7436
7481
|
}), ti = Qh || function() {
|
|
7437
7482
|
return Pe.Date.now();
|
|
7438
7483
|
};
|
|
@@ -7512,7 +7557,7 @@ Ci.exports;
|
|
|
7512
7557
|
function st() {
|
|
7513
7558
|
v !== t && xu(v), C = 0, c = b = l = v = t;
|
|
7514
7559
|
}
|
|
7515
|
-
function
|
|
7560
|
+
function Fe() {
|
|
7516
7561
|
return v === t ? y : te(ti());
|
|
7517
7562
|
}
|
|
7518
7563
|
function at() {
|
|
@@ -7525,7 +7570,7 @@ Ci.exports;
|
|
|
7525
7570
|
}
|
|
7526
7571
|
return v === t && (v = ar(Q, n)), y;
|
|
7527
7572
|
}
|
|
7528
|
-
return at.cancel = st, at.flush =
|
|
7573
|
+
return at.cancel = st, at.flush = Fe, at;
|
|
7529
7574
|
}
|
|
7530
7575
|
var _m = Z(function(e, n) {
|
|
7531
7576
|
return iu(e, 1, n);
|
|
@@ -7653,7 +7698,7 @@ Ci.exports;
|
|
|
7653
7698
|
return pe(e) && Ve(e);
|
|
7654
7699
|
}
|
|
7655
7700
|
function $m(e) {
|
|
7656
|
-
return e === !0 || e === !1 || pe(e) &&
|
|
7701
|
+
return e === !0 || e === !1 || pe(e) && $e(e) == $n;
|
|
7657
7702
|
}
|
|
7658
7703
|
var Qt = ed || ca, Jm = Io ? nt(Io) : qd;
|
|
7659
7704
|
function Fm(e) {
|
|
@@ -7685,7 +7730,7 @@ Ci.exports;
|
|
|
7685
7730
|
function js(e) {
|
|
7686
7731
|
if (!pe(e))
|
|
7687
7732
|
return !1;
|
|
7688
|
-
var n =
|
|
7733
|
+
var n = $e(e);
|
|
7689
7734
|
return n == mr || n == pl || typeof e.message == "string" && typeof e.name == "string" && !or(e);
|
|
7690
7735
|
}
|
|
7691
7736
|
function zm(e) {
|
|
@@ -7694,7 +7739,7 @@ Ci.exports;
|
|
|
7694
7739
|
function Mt(e) {
|
|
7695
7740
|
if (!he(e))
|
|
7696
7741
|
return !1;
|
|
7697
|
-
var n =
|
|
7742
|
+
var n = $e(e);
|
|
7698
7743
|
return n == yr || n == ro || n == dl || n == ml;
|
|
7699
7744
|
}
|
|
7700
7745
|
function yc(e) {
|
|
@@ -7732,10 +7777,10 @@ Ci.exports;
|
|
|
7732
7777
|
return e == null;
|
|
7733
7778
|
}
|
|
7734
7779
|
function wc(e) {
|
|
7735
|
-
return typeof e == "number" || pe(e) &&
|
|
7780
|
+
return typeof e == "number" || pe(e) && $e(e) == Fn;
|
|
7736
7781
|
}
|
|
7737
7782
|
function or(e) {
|
|
7738
|
-
if (!pe(e) ||
|
|
7783
|
+
if (!pe(e) || $e(e) != Ht)
|
|
7739
7784
|
return !1;
|
|
7740
7785
|
var n = Ir(e);
|
|
7741
7786
|
if (n === null)
|
|
@@ -7749,10 +7794,10 @@ Ci.exports;
|
|
|
7749
7794
|
}
|
|
7750
7795
|
var _c = Ko ? nt(Ko) : Qd;
|
|
7751
7796
|
function si(e) {
|
|
7752
|
-
return typeof e == "string" || !G(e) && pe(e) &&
|
|
7797
|
+
return typeof e == "string" || !G(e) && pe(e) && $e(e) == kn;
|
|
7753
7798
|
}
|
|
7754
7799
|
function it(e) {
|
|
7755
|
-
return typeof e == "symbol" || pe(e) &&
|
|
7800
|
+
return typeof e == "symbol" || pe(e) && $e(e) == vr;
|
|
7756
7801
|
}
|
|
7757
7802
|
var Ln = Uo ? nt(Uo) : jd;
|
|
7758
7803
|
function e0(e) {
|
|
@@ -7762,7 +7807,7 @@ Ci.exports;
|
|
|
7762
7807
|
return pe(e) && Le(e) == Gn;
|
|
7763
7808
|
}
|
|
7764
7809
|
function n0(e) {
|
|
7765
|
-
return pe(e) &&
|
|
7810
|
+
return pe(e) && $e(e) == vl;
|
|
7766
7811
|
}
|
|
7767
7812
|
var r0 = Yr(Rs), i0 = Yr(function(e, n) {
|
|
7768
7813
|
return e <= n;
|
|
@@ -7838,7 +7883,7 @@ Ci.exports;
|
|
|
7838
7883
|
var f0 = Z(function(e, n) {
|
|
7839
7884
|
e = oe(e);
|
|
7840
7885
|
var a = -1, c = n.length, l = c > 2 ? n[2] : t;
|
|
7841
|
-
for (l &&
|
|
7886
|
+
for (l && Je(n[0], n[1], l) && (c = 1); ++a < c; )
|
|
7842
7887
|
for (var d = n[a], y = qe(d), v = -1, b = y.length; ++v < b; ) {
|
|
7843
7888
|
var C = y[v], P = e[C];
|
|
7844
7889
|
(P === t || St(P, Cn[C]) && !se.call(e, C)) && (e[C] = d[C]);
|
|
@@ -7984,7 +8029,7 @@ Ci.exports;
|
|
|
7984
8029
|
return n = $t(n), a === t ? (a = n, n = 0) : a = $t(a), e = gt(e), Gd(e, n, a);
|
|
7985
8030
|
}
|
|
7986
8031
|
function $0(e, n, a) {
|
|
7987
|
-
if (a && typeof a != "boolean" &&
|
|
8032
|
+
if (a && typeof a != "boolean" && Je(e, n, a) && (n = a = t), a === t && (typeof n == "boolean" ? (a = n, n = t) : typeof e == "boolean" && (a = e, e = t)), e === t && n === t ? (e = 0, n = 1) : (e = $t(e), n === t ? (n = e, e = 0) : n = $t(n)), e > n) {
|
|
7988
8033
|
var c = e;
|
|
7989
8034
|
e = n, n = c;
|
|
7990
8035
|
}
|
|
@@ -8043,7 +8088,7 @@ Ci.exports;
|
|
|
8043
8088
|
return a || n == null ? n = 0 : n && (n = +n), id(ie(e).replace(ji, ""), n || 0);
|
|
8044
8089
|
}
|
|
8045
8090
|
function Q0(e, n, a) {
|
|
8046
|
-
return (a ?
|
|
8091
|
+
return (a ? Je(e, n, a) : n === t) ? n = 1 : n = V(n), Is(ie(e), n);
|
|
8047
8092
|
}
|
|
8048
8093
|
function j0() {
|
|
8049
8094
|
var e = arguments, n = ie(e[0]);
|
|
@@ -8053,7 +8098,7 @@ Ci.exports;
|
|
|
8053
8098
|
return e + (a ? "_" : "") + n.toLowerCase();
|
|
8054
8099
|
});
|
|
8055
8100
|
function ty(e, n, a) {
|
|
8056
|
-
return a && typeof a != "number" &&
|
|
8101
|
+
return a && typeof a != "number" && Je(e, n, a) && (n = a = t), a = a === t ? et : a >>> 0, a ? (e = ie(e), e && (typeof n == "string" || n != null && !ea(n)) && (n = rt(n), !n && An(e)) ? Zt(wt(e), 0, a) : e.split(n, a)) : [];
|
|
8057
8102
|
}
|
|
8058
8103
|
var ny = In(function(e, n, a) {
|
|
8059
8104
|
return e + (a ? " " : "") + ra(n);
|
|
@@ -8063,17 +8108,17 @@ Ci.exports;
|
|
|
8063
8108
|
}
|
|
8064
8109
|
function iy(e, n, a) {
|
|
8065
8110
|
var c = h.templateSettings;
|
|
8066
|
-
a &&
|
|
8111
|
+
a && Je(e, n, a) && (n = t), e = ie(e), n = ai({}, n, c, $u);
|
|
8067
8112
|
var l = ai({}, n.imports, c.imports, $u), d = xe(l), y = ps(l, d), v, b, C = 0, P = n.interpolate || wr, O = "__p += '", L = ms(
|
|
8068
8113
|
(n.escape || wr).source + "|" + P.source + "|" + (P === oo ? Wl : wr).source + "|" + (n.evaluate || wr).source + "|$",
|
|
8069
8114
|
"g"
|
|
8070
8115
|
), N = "//# sourceURL=" + (se.call(n, "sourceURL") ? (n.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++dh + "]") + `
|
|
8071
8116
|
`;
|
|
8072
|
-
e.replace(L, function(J, Q, te, st,
|
|
8117
|
+
e.replace(L, function(J, Q, te, st, Fe, at) {
|
|
8073
8118
|
return te || (te = st), O += e.slice(C, at).replace(kl, Lh), Q && (v = !0, O += `' +
|
|
8074
8119
|
__e(` + Q + `) +
|
|
8075
|
-
'`),
|
|
8076
|
-
` +
|
|
8120
|
+
'`), Fe && (b = !0, O += `';
|
|
8121
|
+
` + Fe + `;
|
|
8077
8122
|
__p += '`), te && (O += `' +
|
|
8078
8123
|
((__t = (` + te + `)) == null ? '' : __t) +
|
|
8079
8124
|
'`), C = at + J.length, J;
|
|
@@ -8432,7 +8477,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
8432
8477
|
}).call(cr);
|
|
8433
8478
|
})(Ci, Ci.exports);
|
|
8434
8479
|
var af = Ci.exports;
|
|
8435
|
-
class
|
|
8480
|
+
class Hw extends Hi {
|
|
8436
8481
|
encode(r) {
|
|
8437
8482
|
try {
|
|
8438
8483
|
this.logDebug("encode CustomEncoder", JSON.stringify(r));
|
|
@@ -8459,7 +8504,7 @@ class Tw extends Hi {
|
|
|
8459
8504
|
return r;
|
|
8460
8505
|
}
|
|
8461
8506
|
}
|
|
8462
|
-
class Za extends
|
|
8507
|
+
class Za extends Hw {
|
|
8463
8508
|
async validateTokenFront(r) {
|
|
8464
8509
|
this.logDebug("entra validate Token Front");
|
|
8465
8510
|
const t = await df.getToken({ req: r });
|
|
@@ -8468,7 +8513,7 @@ class Za extends Tw {
|
|
|
8468
8513
|
return r;
|
|
8469
8514
|
}
|
|
8470
8515
|
}
|
|
8471
|
-
class
|
|
8516
|
+
class y_ extends Za {
|
|
8472
8517
|
returnData(r, t) {
|
|
8473
8518
|
Ot.getInstance().unsubscribeSubject();
|
|
8474
8519
|
const s = this.encode(t);
|
|
@@ -8481,9 +8526,9 @@ class p_ extends Za {
|
|
|
8481
8526
|
`ApiMiddleware ErrorHandler ${JSON.stringify(o)}`
|
|
8482
8527
|
), Ot.getInstance().unsubscribeSubject(), s.status(o.code ?? 520).json(o))
|
|
8483
8528
|
}), Qe(t).pipe(
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
8529
|
+
Be((o) => this.validateTokenFront(o)),
|
|
8530
|
+
Be((o) => Qe(this.decode(o.body))),
|
|
8531
|
+
Be((o) => r(o)),
|
|
8487
8532
|
Ti((o) => (Ot.getInstance().setSubject(o), Qe({})))
|
|
8488
8533
|
).subscribe({
|
|
8489
8534
|
next: (o) => {
|
|
@@ -8520,7 +8565,7 @@ var Pi = function() {
|
|
|
8520
8565
|
return r;
|
|
8521
8566
|
}, Pi.apply(this, arguments);
|
|
8522
8567
|
};
|
|
8523
|
-
function
|
|
8568
|
+
function Lw(i, r) {
|
|
8524
8569
|
var t = {};
|
|
8525
8570
|
for (var s in i)
|
|
8526
8571
|
Object.prototype.hasOwnProperty.call(i, s) && r.indexOf(s) < 0 && (t[s] = i[s]);
|
|
@@ -8529,7 +8574,7 @@ function Iw(i, r) {
|
|
|
8529
8574
|
r.indexOf(s[o]) < 0 && Object.prototype.propertyIsEnumerable.call(i, s[o]) && (t[s[o]] = i[s[o]]);
|
|
8530
8575
|
return t;
|
|
8531
8576
|
}
|
|
8532
|
-
function
|
|
8577
|
+
function Kw(i, r, t, s) {
|
|
8533
8578
|
function o(u) {
|
|
8534
8579
|
return u instanceof t ? u : new t(function(f) {
|
|
8535
8580
|
f(u);
|
|
@@ -8662,7 +8707,7 @@ function Oi(i, r, t) {
|
|
|
8662
8707
|
function Nn(i) {
|
|
8663
8708
|
return this instanceof Nn ? (this.v = i, this) : new Nn(i);
|
|
8664
8709
|
}
|
|
8665
|
-
function
|
|
8710
|
+
function Uw(i, r, t) {
|
|
8666
8711
|
if (!Symbol.asyncIterator)
|
|
8667
8712
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
8668
8713
|
var s = t.apply(i, r || []), o, u = [];
|
|
@@ -8696,7 +8741,7 @@ function Lw(i, r, t) {
|
|
|
8696
8741
|
S(T), u.shift(), u.length && p(u[0][0], u[0][1]);
|
|
8697
8742
|
}
|
|
8698
8743
|
}
|
|
8699
|
-
function
|
|
8744
|
+
function Dw(i) {
|
|
8700
8745
|
if (!Symbol.asyncIterator)
|
|
8701
8746
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
8702
8747
|
var r = i[Symbol.asyncIterator], t;
|
|
@@ -8716,16 +8761,16 @@ function Kw(i) {
|
|
|
8716
8761
|
}, f);
|
|
8717
8762
|
}
|
|
8718
8763
|
}
|
|
8719
|
-
function
|
|
8764
|
+
function ke(i) {
|
|
8720
8765
|
return typeof i == "function";
|
|
8721
8766
|
}
|
|
8722
|
-
function
|
|
8767
|
+
function Ww(i) {
|
|
8723
8768
|
var r = function(s) {
|
|
8724
8769
|
Error.call(s), s.stack = new Error().stack;
|
|
8725
8770
|
}, t = i(r);
|
|
8726
8771
|
return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
|
|
8727
8772
|
}
|
|
8728
|
-
var Ea =
|
|
8773
|
+
var Ea = Ww(function(i) {
|
|
8729
8774
|
return function(t) {
|
|
8730
8775
|
i(this), this.message = t ? t.length + ` errors occurred during unsubscription:
|
|
8731
8776
|
` + t.map(function(s, o) {
|
|
@@ -8769,7 +8814,7 @@ var ja = function() {
|
|
|
8769
8814
|
else
|
|
8770
8815
|
f.remove(this);
|
|
8771
8816
|
var w = this.initialTeardown;
|
|
8772
|
-
if (
|
|
8817
|
+
if (ke(w))
|
|
8773
8818
|
try {
|
|
8774
8819
|
w();
|
|
8775
8820
|
} catch (I) {
|
|
@@ -8833,10 +8878,10 @@ var ja = function() {
|
|
|
8833
8878
|
}();
|
|
8834
8879
|
ja.EMPTY;
|
|
8835
8880
|
function al(i) {
|
|
8836
|
-
return i instanceof ja || i && "closed" in i &&
|
|
8881
|
+
return i instanceof ja || i && "closed" in i && ke(i.remove) && ke(i.add) && ke(i.unsubscribe);
|
|
8837
8882
|
}
|
|
8838
8883
|
function uf(i) {
|
|
8839
|
-
|
|
8884
|
+
ke(i) ? i() : i.unsubscribe();
|
|
8840
8885
|
}
|
|
8841
8886
|
var ol = {
|
|
8842
8887
|
onUnhandledError: null,
|
|
@@ -8864,14 +8909,14 @@ function ul(i) {
|
|
|
8864
8909
|
}
|
|
8865
8910
|
function cf() {
|
|
8866
8911
|
}
|
|
8867
|
-
function
|
|
8912
|
+
function Nw(i) {
|
|
8868
8913
|
i();
|
|
8869
8914
|
}
|
|
8870
8915
|
var eo = function(i) {
|
|
8871
8916
|
Qa(r, i);
|
|
8872
8917
|
function r(t) {
|
|
8873
8918
|
var s = i.call(this) || this;
|
|
8874
|
-
return s.isStopped = !1, t ? (s.destination = t, al(t) && t.add(s)) : s.destination =
|
|
8919
|
+
return s.isStopped = !1, t ? (s.destination = t, al(t) && t.add(s)) : s.destination = Fw, s;
|
|
8875
8920
|
}
|
|
8876
8921
|
return r.create = function(t, s, o) {
|
|
8877
8922
|
return new Ua(t, s, o);
|
|
@@ -8898,11 +8943,11 @@ var eo = function(i) {
|
|
|
8898
8943
|
this.unsubscribe();
|
|
8899
8944
|
}
|
|
8900
8945
|
}, r;
|
|
8901
|
-
}(ja),
|
|
8946
|
+
}(ja), Mw = Function.prototype.bind;
|
|
8902
8947
|
function xa(i, r) {
|
|
8903
|
-
return
|
|
8948
|
+
return Mw.call(i, r);
|
|
8904
8949
|
}
|
|
8905
|
-
var
|
|
8950
|
+
var $w = function() {
|
|
8906
8951
|
function i(r) {
|
|
8907
8952
|
this.partialObserver = r;
|
|
8908
8953
|
}
|
|
@@ -8937,7 +8982,7 @@ var Nw = function() {
|
|
|
8937
8982
|
Qa(r, i);
|
|
8938
8983
|
function r(t, s, o) {
|
|
8939
8984
|
var u = i.call(this) || this, f;
|
|
8940
|
-
if (
|
|
8985
|
+
if (ke(t) || !t)
|
|
8941
8986
|
f = {
|
|
8942
8987
|
next: t ?? void 0,
|
|
8943
8988
|
error: s ?? void 0,
|
|
@@ -8953,26 +8998,26 @@ var Nw = function() {
|
|
|
8953
8998
|
complete: t.complete && xa(t.complete, p)
|
|
8954
8999
|
}) : f = t;
|
|
8955
9000
|
}
|
|
8956
|
-
return u.destination = new
|
|
9001
|
+
return u.destination = new $w(f), u;
|
|
8957
9002
|
}
|
|
8958
9003
|
return r;
|
|
8959
9004
|
}(eo);
|
|
8960
9005
|
function fi(i) {
|
|
8961
9006
|
ul(i);
|
|
8962
9007
|
}
|
|
8963
|
-
function
|
|
9008
|
+
function Jw(i) {
|
|
8964
9009
|
throw i;
|
|
8965
9010
|
}
|
|
8966
|
-
var
|
|
9011
|
+
var Fw = {
|
|
8967
9012
|
closed: !0,
|
|
8968
9013
|
next: cf,
|
|
8969
|
-
error:
|
|
9014
|
+
error: Jw,
|
|
8970
9015
|
complete: cf
|
|
8971
9016
|
};
|
|
8972
|
-
function
|
|
8973
|
-
return new
|
|
9017
|
+
function Bw(i, r, t, s, o) {
|
|
9018
|
+
return new kw(i, r, t, s, o);
|
|
8974
9019
|
}
|
|
8975
|
-
var
|
|
9020
|
+
var kw = function(i) {
|
|
8976
9021
|
Qa(r, i);
|
|
8977
9022
|
function r(t, s, o, u, f, p) {
|
|
8978
9023
|
var g = i.call(this, t) || this;
|
|
@@ -9010,11 +9055,11 @@ var Fw = function(i) {
|
|
|
9010
9055
|
}(eo), to = function() {
|
|
9011
9056
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
9012
9057
|
}();
|
|
9013
|
-
function
|
|
9058
|
+
function Gw(i) {
|
|
9014
9059
|
return i;
|
|
9015
9060
|
}
|
|
9016
|
-
function
|
|
9017
|
-
return i.length === 0 ?
|
|
9061
|
+
function zw(i) {
|
|
9062
|
+
return i.length === 0 ? Gw : i.length === 1 ? i[0] : function(t) {
|
|
9018
9063
|
return i.reduce(function(s, o) {
|
|
9019
9064
|
return o(s);
|
|
9020
9065
|
}, t);
|
|
@@ -9028,8 +9073,8 @@ var yn = function() {
|
|
|
9028
9073
|
var t = new i();
|
|
9029
9074
|
return t.source = this, t.operator = r, t;
|
|
9030
9075
|
}, i.prototype.subscribe = function(r, t, s) {
|
|
9031
|
-
var o = this, u =
|
|
9032
|
-
return
|
|
9076
|
+
var o = this, u = qw(r) ? r : new Ua(r, t, s);
|
|
9077
|
+
return Nw(function() {
|
|
9033
9078
|
var f = o, p = f.operator, g = f.source;
|
|
9034
9079
|
u.add(p ? p.call(u, g) : g ? o._subscribe(u) : o._trySubscribe(u));
|
|
9035
9080
|
}), u;
|
|
@@ -9063,7 +9108,7 @@ var yn = function() {
|
|
|
9063
9108
|
}, i.prototype.pipe = function() {
|
|
9064
9109
|
for (var r = [], t = 0; t < arguments.length; t++)
|
|
9065
9110
|
r[t] = arguments[t];
|
|
9066
|
-
return
|
|
9111
|
+
return zw(r)(this);
|
|
9067
9112
|
}, i.prototype.toPromise = function(r) {
|
|
9068
9113
|
var t = this;
|
|
9069
9114
|
return r = ff(r), new r(function(s, o) {
|
|
@@ -9084,36 +9129,36 @@ function ff(i) {
|
|
|
9084
9129
|
var r;
|
|
9085
9130
|
return (r = i ?? ol.Promise) !== null && r !== void 0 ? r : Promise;
|
|
9086
9131
|
}
|
|
9087
|
-
function
|
|
9088
|
-
return i &&
|
|
9132
|
+
function Vw(i) {
|
|
9133
|
+
return i && ke(i.next) && ke(i.error) && ke(i.complete);
|
|
9089
9134
|
}
|
|
9090
|
-
function
|
|
9091
|
-
return i && i instanceof eo ||
|
|
9135
|
+
function qw(i) {
|
|
9136
|
+
return i && i instanceof eo || Vw(i) && al(i);
|
|
9092
9137
|
}
|
|
9093
|
-
var
|
|
9138
|
+
var Yw = function(i) {
|
|
9094
9139
|
return i && typeof i.length == "number" && typeof i != "function";
|
|
9095
9140
|
};
|
|
9096
|
-
function qw(i) {
|
|
9097
|
-
return Be(i == null ? void 0 : i.then);
|
|
9098
|
-
}
|
|
9099
|
-
function Yw(i) {
|
|
9100
|
-
return Be(i[to]);
|
|
9101
|
-
}
|
|
9102
9141
|
function Xw(i) {
|
|
9103
|
-
return
|
|
9142
|
+
return ke(i == null ? void 0 : i.then);
|
|
9104
9143
|
}
|
|
9105
9144
|
function Zw(i) {
|
|
9145
|
+
return ke(i[to]);
|
|
9146
|
+
}
|
|
9147
|
+
function Qw(i) {
|
|
9148
|
+
return Symbol.asyncIterator && ke(i == null ? void 0 : i[Symbol.asyncIterator]);
|
|
9149
|
+
}
|
|
9150
|
+
function jw(i) {
|
|
9106
9151
|
return new TypeError("You provided " + (i !== null && typeof i == "object" ? "an invalid object" : "'" + i + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
9107
9152
|
}
|
|
9108
|
-
function
|
|
9153
|
+
function e_() {
|
|
9109
9154
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
9110
9155
|
}
|
|
9111
|
-
var
|
|
9112
|
-
function
|
|
9113
|
-
return
|
|
9156
|
+
var t_ = e_();
|
|
9157
|
+
function n_(i) {
|
|
9158
|
+
return ke(i == null ? void 0 : i[t_]);
|
|
9114
9159
|
}
|
|
9115
|
-
function
|
|
9116
|
-
return
|
|
9160
|
+
function r_(i) {
|
|
9161
|
+
return Uw(this, arguments, function() {
|
|
9117
9162
|
var t, s, o, u;
|
|
9118
9163
|
return sl(this, function(f) {
|
|
9119
9164
|
switch (f.label) {
|
|
@@ -9143,44 +9188,44 @@ function t_(i) {
|
|
|
9143
9188
|
});
|
|
9144
9189
|
});
|
|
9145
9190
|
}
|
|
9146
|
-
function
|
|
9147
|
-
return
|
|
9191
|
+
function i_(i) {
|
|
9192
|
+
return ke(i == null ? void 0 : i.getReader);
|
|
9148
9193
|
}
|
|
9149
|
-
function
|
|
9194
|
+
function s_(i) {
|
|
9150
9195
|
if (i instanceof yn)
|
|
9151
9196
|
return i;
|
|
9152
9197
|
if (i != null) {
|
|
9153
|
-
if (
|
|
9154
|
-
return i_(i);
|
|
9155
|
-
if (Vw(i))
|
|
9156
|
-
return s_(i);
|
|
9157
|
-
if (qw(i))
|
|
9198
|
+
if (Zw(i))
|
|
9158
9199
|
return a_(i);
|
|
9200
|
+
if (Yw(i))
|
|
9201
|
+
return o_(i);
|
|
9159
9202
|
if (Xw(i))
|
|
9203
|
+
return u_(i);
|
|
9204
|
+
if (Qw(i))
|
|
9160
9205
|
return cl(i);
|
|
9161
|
-
if (e_(i))
|
|
9162
|
-
return o_(i);
|
|
9163
9206
|
if (n_(i))
|
|
9164
|
-
return
|
|
9207
|
+
return c_(i);
|
|
9208
|
+
if (i_(i))
|
|
9209
|
+
return f_(i);
|
|
9165
9210
|
}
|
|
9166
|
-
throw
|
|
9211
|
+
throw jw(i);
|
|
9167
9212
|
}
|
|
9168
|
-
function
|
|
9213
|
+
function a_(i) {
|
|
9169
9214
|
return new yn(function(r) {
|
|
9170
9215
|
var t = i[to]();
|
|
9171
|
-
if (
|
|
9216
|
+
if (ke(t.subscribe))
|
|
9172
9217
|
return t.subscribe(r);
|
|
9173
9218
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
9174
9219
|
});
|
|
9175
9220
|
}
|
|
9176
|
-
function
|
|
9221
|
+
function o_(i) {
|
|
9177
9222
|
return new yn(function(r) {
|
|
9178
9223
|
for (var t = 0; t < i.length && !r.closed; t++)
|
|
9179
9224
|
r.next(i[t]);
|
|
9180
9225
|
r.complete();
|
|
9181
9226
|
});
|
|
9182
9227
|
}
|
|
9183
|
-
function
|
|
9228
|
+
function u_(i) {
|
|
9184
9229
|
return new yn(function(r) {
|
|
9185
9230
|
i.then(function(t) {
|
|
9186
9231
|
r.closed || (r.next(t), r.complete());
|
|
@@ -9189,7 +9234,7 @@ function a_(i) {
|
|
|
9189
9234
|
}).then(null, ul);
|
|
9190
9235
|
});
|
|
9191
9236
|
}
|
|
9192
|
-
function
|
|
9237
|
+
function c_(i) {
|
|
9193
9238
|
return new yn(function(r) {
|
|
9194
9239
|
var t, s;
|
|
9195
9240
|
try {
|
|
@@ -9213,22 +9258,22 @@ function o_(i) {
|
|
|
9213
9258
|
}
|
|
9214
9259
|
function cl(i) {
|
|
9215
9260
|
return new yn(function(r) {
|
|
9216
|
-
|
|
9261
|
+
l_(i, r).catch(function(t) {
|
|
9217
9262
|
return r.error(t);
|
|
9218
9263
|
});
|
|
9219
9264
|
});
|
|
9220
9265
|
}
|
|
9221
|
-
function
|
|
9222
|
-
return cl(
|
|
9266
|
+
function f_(i) {
|
|
9267
|
+
return cl(r_(i));
|
|
9223
9268
|
}
|
|
9224
|
-
function
|
|
9269
|
+
function l_(i, r) {
|
|
9225
9270
|
var t, s, o, u;
|
|
9226
|
-
return
|
|
9271
|
+
return Kw(this, void 0, void 0, function() {
|
|
9227
9272
|
var f, p;
|
|
9228
9273
|
return sl(this, function(g) {
|
|
9229
9274
|
switch (g.label) {
|
|
9230
9275
|
case 0:
|
|
9231
|
-
g.trys.push([0, 5, 6, 11]), t =
|
|
9276
|
+
g.trys.push([0, 5, 6, 11]), t = Dw(i), g.label = 1;
|
|
9232
9277
|
case 1:
|
|
9233
9278
|
return [4, t.next()];
|
|
9234
9279
|
case 2:
|
|
@@ -9263,7 +9308,7 @@ function c_(i, r) {
|
|
|
9263
9308
|
}
|
|
9264
9309
|
function no(i, r) {
|
|
9265
9310
|
r === void 0 && (r = {});
|
|
9266
|
-
var t = r.selector, s =
|
|
9311
|
+
var t = r.selector, s = Lw(r, ["selector"]);
|
|
9267
9312
|
return new yn(function(o) {
|
|
9268
9313
|
var u = new AbortController(), f = u.signal, p = !0, g = s.signal;
|
|
9269
9314
|
if (g)
|
|
@@ -9281,7 +9326,7 @@ function no(i, r) {
|
|
|
9281
9326
|
p = !1, o.error(S);
|
|
9282
9327
|
};
|
|
9283
9328
|
return fetch(i, w).then(function(S) {
|
|
9284
|
-
t ?
|
|
9329
|
+
t ? s_(t(S)).subscribe(Bw(o, void 0, function() {
|
|
9285
9330
|
p = !1, o.complete();
|
|
9286
9331
|
}, E)) : (p = !1, o.next(S), o.complete());
|
|
9287
9332
|
}).catch(E), function() {
|
|
@@ -9289,7 +9334,7 @@ function no(i, r) {
|
|
|
9289
9334
|
};
|
|
9290
9335
|
});
|
|
9291
9336
|
}
|
|
9292
|
-
class
|
|
9337
|
+
class h_ extends Hi {
|
|
9293
9338
|
constructor() {
|
|
9294
9339
|
super();
|
|
9295
9340
|
we(this, "API_AUTH_BACK_URL");
|
|
@@ -9317,8 +9362,8 @@ class f_ extends Hi {
|
|
|
9317
9362
|
password: this.API_AUTH_BACK_PASSWORD
|
|
9318
9363
|
})
|
|
9319
9364
|
}).pipe(
|
|
9320
|
-
|
|
9321
|
-
|
|
9365
|
+
Be((t) => t.json()),
|
|
9366
|
+
Be((t) => {
|
|
9322
9367
|
var s;
|
|
9323
9368
|
return this.logDebug(
|
|
9324
9369
|
`ServiceToken <URL>: \x1B[33m ${this.API_AUTH_BACK_URL} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(this.headers)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(t)} \x1B[37m`
|
|
@@ -9328,7 +9373,7 @@ class f_ extends Hi {
|
|
|
9328
9373
|
);
|
|
9329
9374
|
}
|
|
9330
9375
|
}
|
|
9331
|
-
class
|
|
9376
|
+
class d_ extends Za {
|
|
9332
9377
|
constructor() {
|
|
9333
9378
|
super();
|
|
9334
9379
|
we(this, "headers");
|
|
@@ -9338,17 +9383,17 @@ class l_ extends Za {
|
|
|
9338
9383
|
};
|
|
9339
9384
|
}
|
|
9340
9385
|
addTokenBackend(t) {
|
|
9341
|
-
return this.logDebug("addTokenBackend CustomHeader", JSON.stringify(t)), new
|
|
9342
|
-
|
|
9386
|
+
return this.logDebug("addTokenBackend CustomHeader", JSON.stringify(t)), new h_().get().pipe(
|
|
9387
|
+
Be((s) => Qe({ ...t, Authorization: `Bearer ${s}` }))
|
|
9343
9388
|
);
|
|
9344
9389
|
}
|
|
9345
9390
|
getHeaders() {
|
|
9346
9391
|
return this.logDebug("getHeaders CustomHeader"), Qe({
|
|
9347
9392
|
...this.headers
|
|
9348
|
-
}).pipe(
|
|
9393
|
+
}).pipe(Be((t) => this.addTokenBackend(t)));
|
|
9349
9394
|
}
|
|
9350
9395
|
}
|
|
9351
|
-
class
|
|
9396
|
+
class v_ extends d_ {
|
|
9352
9397
|
constructor(t, s) {
|
|
9353
9398
|
super();
|
|
9354
9399
|
we(this, "apiUrl");
|
|
@@ -9365,17 +9410,17 @@ class g_ extends l_ {
|
|
|
9365
9410
|
}
|
|
9366
9411
|
fetchData(t = {}) {
|
|
9367
9412
|
return this.logDebug("fetchData", JSON.stringify(t)), Qe(t).pipe(
|
|
9368
|
-
|
|
9369
|
-
(s) => this.getHeaders().pipe(
|
|
9413
|
+
Be(
|
|
9414
|
+
(s) => this.getHeaders().pipe(Be((o) => Qe({ params: s, headers: o })))
|
|
9370
9415
|
),
|
|
9371
|
-
|
|
9416
|
+
Be(
|
|
9372
9417
|
({ params: s, headers: o }) => no(this.apiUrl, {
|
|
9373
9418
|
method: this.method,
|
|
9374
9419
|
headers: o,
|
|
9375
9420
|
body: JSON.stringify(s)
|
|
9376
9421
|
}).pipe(
|
|
9377
|
-
|
|
9378
|
-
|
|
9422
|
+
Be((u) => u.json()),
|
|
9423
|
+
Be((u) => (this.logDebug(
|
|
9379
9424
|
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
9380
9425
|
o
|
|
9381
9426
|
)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
|
|
@@ -9389,7 +9434,7 @@ class g_ extends l_ {
|
|
|
9389
9434
|
);
|
|
9390
9435
|
}
|
|
9391
9436
|
}
|
|
9392
|
-
class
|
|
9437
|
+
class w_ extends Za {
|
|
9393
9438
|
constructor(t, s = "POST", o = {}) {
|
|
9394
9439
|
super();
|
|
9395
9440
|
we(this, "apiUrl");
|
|
@@ -9414,44 +9459,19 @@ class m_ extends Za {
|
|
|
9414
9459
|
headers: this.headers,
|
|
9415
9460
|
body: this.encode(t)
|
|
9416
9461
|
}).pipe(
|
|
9417
|
-
|
|
9418
|
-
|
|
9462
|
+
Be((s) => s.json()),
|
|
9463
|
+
Be((s) => (this.logDebug(
|
|
9419
9464
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <BODY>: ${JSON.stringify(s)}`
|
|
9420
9465
|
), Qe(s))),
|
|
9421
9466
|
di(this.errorHandler),
|
|
9422
|
-
|
|
9467
|
+
Be((s) => Qe(this.decode(s))),
|
|
9423
9468
|
Ti(this.customCatchError)
|
|
9424
9469
|
);
|
|
9425
9470
|
}
|
|
9426
9471
|
}
|
|
9427
|
-
const
|
|
9428
|
-
errors: {}
|
|
9429
|
-
}, v_ = {
|
|
9430
|
-
errors: {
|
|
9431
|
-
default: {
|
|
9432
|
-
title: "No pudimos cargar alguno de los datos solicitados.",
|
|
9433
|
-
message: "Si continua apareciendo este mensaje por favor contacta a soporte."
|
|
9434
|
-
},
|
|
9435
|
-
"MP-001": {
|
|
9436
|
-
title: "Error",
|
|
9437
|
-
message: "Se esperaban parámetros"
|
|
9438
|
-
},
|
|
9439
|
-
"ERR-GENERAL-01": {
|
|
9440
|
-
title: "Error",
|
|
9441
|
-
message: "No se obtuvieron la configuración del sistema"
|
|
9442
|
-
},
|
|
9443
|
-
UnAuthorized: {
|
|
9444
|
-
title: "La sesión a caducado",
|
|
9445
|
-
message: "Inicia sesión nuevamente"
|
|
9446
|
-
},
|
|
9447
|
-
ErrorGeneral: {
|
|
9448
|
-
title: "",
|
|
9449
|
-
message: "{{ message }}"
|
|
9450
|
-
}
|
|
9451
|
-
}
|
|
9452
|
-
}, w_ = {
|
|
9472
|
+
const __ = {
|
|
9453
9473
|
validationMessages: {}
|
|
9454
|
-
},
|
|
9474
|
+
}, S_ = {
|
|
9455
9475
|
validationMessages: {
|
|
9456
9476
|
mixed: {
|
|
9457
9477
|
required: "Campo requerido",
|
|
@@ -9491,20 +9511,20 @@ const y_ = {
|
|
|
9491
9511
|
}
|
|
9492
9512
|
};
|
|
9493
9513
|
export {
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
|
|
9514
|
+
y_ as ApiMiddleware,
|
|
9515
|
+
Hw as CustomEncoder,
|
|
9516
|
+
d_ as CustomHeader,
|
|
9497
9517
|
Hi as CustomLogger,
|
|
9498
9518
|
Za as CustomValidator,
|
|
9499
|
-
|
|
9519
|
+
E1 as ErrorCatalog,
|
|
9500
9520
|
Ot as ErrorHandler,
|
|
9501
|
-
|
|
9502
|
-
|
|
9521
|
+
v_ as FetchServiceBE,
|
|
9522
|
+
w_ as FetchServiceFE,
|
|
9503
9523
|
wi as MessageErrorBFF,
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
|
|
9507
|
-
|
|
9508
|
-
|
|
9509
|
-
|
|
9524
|
+
x1 as RxSubjectManager,
|
|
9525
|
+
h_ as ServiceToken,
|
|
9526
|
+
m_ as errorEN_EN,
|
|
9527
|
+
S1 as errorES_MX,
|
|
9528
|
+
__ as validatorEN_EN,
|
|
9529
|
+
S_ as validatorES_MX
|
|
9510
9530
|
};
|