@opensecret/react 1.3.0 → 1.3.2
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/index.d.ts +65 -0
- package/dist/opensecret-react.es.js +711 -682
- package/dist/opensecret-react.umd.js +17 -17
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ var _f = (r) => {
|
|
|
3
3
|
throw TypeError(r);
|
|
4
4
|
};
|
|
5
5
|
var Oy = (r, e, t) => e in r ? By(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
6
|
-
var
|
|
6
|
+
var He = (r, e, t) => Oy(r, typeof e != "symbol" ? e + "" : e, t), Mc = (r, e, t) => e.has(r) || _f("Cannot " + t);
|
|
7
7
|
var $ = (r, e, t) => (Mc(r, e, "read from private field"), t ? t.call(r) : e.get(r)), rr = (r, e, t) => e.has(r) ? _f("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), kt = (r, e, t, n) => (Mc(r, e, "write to private field"), n ? n.call(r, t) : e.set(r, t), t), Ue = (r, e, t) => (Mc(r, e, "access private method"), t);
|
|
8
8
|
var Ef = (r, e, t, n) => ({
|
|
9
9
|
set _(i) {
|
|
@@ -17,8 +17,8 @@ import { jsx as md } from "react/jsx-runtime";
|
|
|
17
17
|
import { createContext as wd, useState as nl, useEffect as Os, useContext as bd } from "react";
|
|
18
18
|
class Ty {
|
|
19
19
|
constructor() {
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
He(this, "_appApiUrl", "");
|
|
21
|
+
He(this, "_platformApiUrl", "");
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Configure the API URLs for both app and platform contexts
|
|
@@ -77,7 +77,7 @@ const Ho = new Ty(), xd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
77
77
|
class Ny {
|
|
78
78
|
// TODO(dchest): methods to encode chunk-by-chunk.
|
|
79
79
|
constructor(e = "=") {
|
|
80
|
-
|
|
80
|
+
He(this, "_paddingCharacter");
|
|
81
81
|
this._paddingCharacter = e;
|
|
82
82
|
}
|
|
83
83
|
encodedLength(e) {
|
|
@@ -162,10 +162,10 @@ function Cr(r) {
|
|
|
162
162
|
}
|
|
163
163
|
const Py = 20;
|
|
164
164
|
function jy(r, e, t) {
|
|
165
|
-
let n = 1634760805, i = 857760878, s = 2036477234, o = 1797285236, c = t[3] << 24 | t[2] << 16 | t[1] << 8 | t[0], u = t[7] << 24 | t[6] << 16 | t[5] << 8 | t[4], h = t[11] << 24 | t[10] << 16 | t[9] << 8 | t[8], m = t[15] << 24 | t[14] << 16 | t[13] << 8 | t[12], x = t[19] << 24 | t[18] << 16 | t[17] << 8 | t[16], G = t[23] << 24 | t[22] << 16 | t[21] << 8 | t[20], N = t[27] << 24 | t[26] << 16 | t[25] << 8 | t[24], v = t[31] << 24 | t[30] << 16 | t[29] << 8 | t[28], A = e[3] << 24 | e[2] << 16 | e[1] << 8 | e[0], O = e[7] << 24 | e[6] << 16 | e[5] << 8 | e[4], I = e[11] << 24 | e[10] << 16 | e[9] << 8 | e[8], P = e[15] << 24 | e[14] << 16 | e[13] << 8 | e[12], R = n, ue = i, Ge = s, Ye = o, Pe = c, W = u, ne = h, ie = m, xe = x,
|
|
165
|
+
let n = 1634760805, i = 857760878, s = 2036477234, o = 1797285236, c = t[3] << 24 | t[2] << 16 | t[1] << 8 | t[0], u = t[7] << 24 | t[6] << 16 | t[5] << 8 | t[4], h = t[11] << 24 | t[10] << 16 | t[9] << 8 | t[8], m = t[15] << 24 | t[14] << 16 | t[13] << 8 | t[12], x = t[19] << 24 | t[18] << 16 | t[17] << 8 | t[16], G = t[23] << 24 | t[22] << 16 | t[21] << 8 | t[20], N = t[27] << 24 | t[26] << 16 | t[25] << 8 | t[24], v = t[31] << 24 | t[30] << 16 | t[29] << 8 | t[28], A = e[3] << 24 | e[2] << 16 | e[1] << 8 | e[0], O = e[7] << 24 | e[6] << 16 | e[5] << 8 | e[4], I = e[11] << 24 | e[10] << 16 | e[9] << 8 | e[8], P = e[15] << 24 | e[14] << 16 | e[13] << 8 | e[12], R = n, ue = i, Ge = s, Ye = o, Pe = c, W = u, ne = h, ie = m, xe = x, tt = G, At = N, It = v, dt = A, Xe = O, ae = I, Ee = P;
|
|
166
166
|
for (let gt = 0; gt < Py; gt += 2)
|
|
167
|
-
R = R + Pe | 0, dt ^= R, dt = dt >>> 16 | dt << 16, xe = xe + dt | 0, Pe ^= xe, Pe = Pe >>> 20 | Pe << 12, ue = ue + W | 0, Xe ^= ue, Xe = Xe >>> 16 | Xe << 16,
|
|
168
|
-
Gt(R + n | 0, r, 0), Gt(ue + i | 0, r, 4), Gt(Ge + s | 0, r, 8), Gt(Ye + o | 0, r, 12), Gt(Pe + c | 0, r, 16), Gt(W + u | 0, r, 20), Gt(ne + h | 0, r, 24), Gt(ie + m | 0, r, 28), Gt(xe + x | 0, r, 32), Gt(
|
|
167
|
+
R = R + Pe | 0, dt ^= R, dt = dt >>> 16 | dt << 16, xe = xe + dt | 0, Pe ^= xe, Pe = Pe >>> 20 | Pe << 12, ue = ue + W | 0, Xe ^= ue, Xe = Xe >>> 16 | Xe << 16, tt = tt + Xe | 0, W ^= tt, W = W >>> 20 | W << 12, Ge = Ge + ne | 0, ae ^= Ge, ae = ae >>> 16 | ae << 16, At = At + ae | 0, ne ^= At, ne = ne >>> 20 | ne << 12, Ye = Ye + ie | 0, Ee ^= Ye, Ee = Ee >>> 16 | Ee << 16, It = It + Ee | 0, ie ^= It, ie = ie >>> 20 | ie << 12, Ge = Ge + ne | 0, ae ^= Ge, ae = ae >>> 24 | ae << 8, At = At + ae | 0, ne ^= At, ne = ne >>> 25 | ne << 7, Ye = Ye + ie | 0, Ee ^= Ye, Ee = Ee >>> 24 | Ee << 8, It = It + Ee | 0, ie ^= It, ie = ie >>> 25 | ie << 7, ue = ue + W | 0, Xe ^= ue, Xe = Xe >>> 24 | Xe << 8, tt = tt + Xe | 0, W ^= tt, W = W >>> 25 | W << 7, R = R + Pe | 0, dt ^= R, dt = dt >>> 24 | dt << 8, xe = xe + dt | 0, Pe ^= xe, Pe = Pe >>> 25 | Pe << 7, R = R + W | 0, Ee ^= R, Ee = Ee >>> 16 | Ee << 16, At = At + Ee | 0, W ^= At, W = W >>> 20 | W << 12, ue = ue + ne | 0, dt ^= ue, dt = dt >>> 16 | dt << 16, It = It + dt | 0, ne ^= It, ne = ne >>> 20 | ne << 12, Ge = Ge + ie | 0, Xe ^= Ge, Xe = Xe >>> 16 | Xe << 16, xe = xe + Xe | 0, ie ^= xe, ie = ie >>> 20 | ie << 12, Ye = Ye + Pe | 0, ae ^= Ye, ae = ae >>> 16 | ae << 16, tt = tt + ae | 0, Pe ^= tt, Pe = Pe >>> 20 | Pe << 12, Ge = Ge + ie | 0, Xe ^= Ge, Xe = Xe >>> 24 | Xe << 8, xe = xe + Xe | 0, ie ^= xe, ie = ie >>> 25 | ie << 7, Ye = Ye + Pe | 0, ae ^= Ye, ae = ae >>> 24 | ae << 8, tt = tt + ae | 0, Pe ^= tt, Pe = Pe >>> 25 | Pe << 7, ue = ue + ne | 0, dt ^= ue, dt = dt >>> 24 | dt << 8, It = It + dt | 0, ne ^= It, ne = ne >>> 25 | ne << 7, R = R + W | 0, Ee ^= R, Ee = Ee >>> 24 | Ee << 8, At = At + Ee | 0, W ^= At, W = W >>> 25 | W << 7;
|
|
168
|
+
Gt(R + n | 0, r, 0), Gt(ue + i | 0, r, 4), Gt(Ge + s | 0, r, 8), Gt(Ye + o | 0, r, 12), Gt(Pe + c | 0, r, 16), Gt(W + u | 0, r, 20), Gt(ne + h | 0, r, 24), Gt(ie + m | 0, r, 28), Gt(xe + x | 0, r, 32), Gt(tt + G | 0, r, 36), Gt(At + N | 0, r, 40), Gt(It + v | 0, r, 44), Gt(dt + A | 0, r, 48), Gt(Xe + O | 0, r, 52), Gt(ae + I | 0, r, 56), Gt(Ee + P | 0, r, 60);
|
|
169
169
|
}
|
|
170
170
|
function il(r, e, t, n, i = 0) {
|
|
171
171
|
if (r.length !== 32)
|
|
@@ -215,14 +215,14 @@ function Dy(r, e) {
|
|
|
215
215
|
const $y = 16;
|
|
216
216
|
class My {
|
|
217
217
|
constructor(e) {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
218
|
+
He(this, "digestLength", $y);
|
|
219
|
+
He(this, "_buffer", new Uint8Array(16));
|
|
220
|
+
He(this, "_r", new Uint16Array(10));
|
|
221
|
+
He(this, "_h", new Uint16Array(10));
|
|
222
|
+
He(this, "_pad", new Uint16Array(8));
|
|
223
|
+
He(this, "_leftover", 0);
|
|
224
|
+
He(this, "_fin", 0);
|
|
225
|
+
He(this, "_finished", !1);
|
|
226
226
|
let t = e[0] | e[1] << 8;
|
|
227
227
|
this._r[0] = t & 8191;
|
|
228
228
|
let n = e[2] | e[3] << 8;
|
|
@@ -249,10 +249,10 @@ class My {
|
|
|
249
249
|
o += (ne >>> 13 | ie << 3) & 8191;
|
|
250
250
|
let xe = e[t + 4] | e[t + 5] << 8;
|
|
251
251
|
c += (ie >>> 10 | xe << 6) & 8191;
|
|
252
|
-
let
|
|
253
|
-
u += (xe >>> 7 |
|
|
252
|
+
let tt = e[t + 6] | e[t + 7] << 8;
|
|
253
|
+
u += (xe >>> 7 | tt << 9) & 8191;
|
|
254
254
|
let At = e[t + 8] | e[t + 9] << 8;
|
|
255
|
-
h += (
|
|
255
|
+
h += (tt >>> 4 | At << 12) & 8191, m += At >>> 1 & 8191;
|
|
256
256
|
let It = e[t + 10] | e[t + 11] << 8;
|
|
257
257
|
x += (At >>> 14 | It << 2) & 8191;
|
|
258
258
|
let dt = e[t + 12] | e[t + 13] << 8;
|
|
@@ -335,9 +335,9 @@ class Tu {
|
|
|
335
335
|
* Creates a new instance with the given 32-byte key.
|
|
336
336
|
*/
|
|
337
337
|
constructor(e) {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
338
|
+
He(this, "nonceLength", Ly);
|
|
339
|
+
He(this, "tagLength", Hy);
|
|
340
|
+
He(this, "_key");
|
|
341
341
|
if (e.length !== Vy)
|
|
342
342
|
throw new Error("ChaCha20Poly1305 needs 32-byte key");
|
|
343
343
|
this._key = new Uint8Array(e);
|
|
@@ -423,8 +423,8 @@ class Tu {
|
|
|
423
423
|
const Bf = 65536;
|
|
424
424
|
class Fy {
|
|
425
425
|
constructor() {
|
|
426
|
-
|
|
427
|
-
|
|
426
|
+
He(this, "isAvailable", !1);
|
|
427
|
+
He(this, "isInstantiated", !1);
|
|
428
428
|
typeof crypto < "u" && "getRandomValues" in crypto && (this.isAvailable = !0, this.isInstantiated = !0);
|
|
429
429
|
}
|
|
430
430
|
randomBytes(e) {
|
|
@@ -451,10 +451,10 @@ function _d(r, e) {
|
|
|
451
451
|
return new TextDecoder().decode(c);
|
|
452
452
|
}
|
|
453
453
|
var sl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
454
|
-
function
|
|
454
|
+
function qy(r) {
|
|
455
455
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function Ky(r) {
|
|
458
458
|
if (r.__esModule) return r;
|
|
459
459
|
var e = r.default;
|
|
460
460
|
if (typeof e == "function") {
|
|
@@ -533,39 +533,39 @@ var Of;
|
|
|
533
533
|
return _[k];
|
|
534
534
|
}
|
|
535
535
|
}, x = Object.getPrototypeOf(Function), G = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : bs(), N = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : xs(), v = typeof WeakMap == "function" ? WeakMap : Bo(), A = i ? Symbol.for("@reflect-metadata:registry") : void 0, O = ms(), I = Oi(O);
|
|
536
|
-
function P(_, k, T,
|
|
536
|
+
function P(_, k, T, q) {
|
|
537
537
|
if (fe(T)) {
|
|
538
538
|
if (!hs(_))
|
|
539
539
|
throw new TypeError();
|
|
540
540
|
if (!ds(k))
|
|
541
541
|
throw new TypeError();
|
|
542
|
-
return
|
|
542
|
+
return tt(_, k);
|
|
543
543
|
} else {
|
|
544
544
|
if (!hs(_))
|
|
545
545
|
throw new TypeError();
|
|
546
546
|
if (!ee(k))
|
|
547
547
|
throw new TypeError();
|
|
548
|
-
if (!ee(
|
|
548
|
+
if (!ee(q) && !fe(q) && !st(q))
|
|
549
549
|
throw new TypeError();
|
|
550
|
-
return st(
|
|
550
|
+
return st(q) && (q = void 0), T = or(T), At(_, k, T, q);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
e("decorate", P);
|
|
554
554
|
function R(_, k) {
|
|
555
|
-
function T(
|
|
556
|
-
if (!ee(
|
|
555
|
+
function T(q, be) {
|
|
556
|
+
if (!ee(q))
|
|
557
557
|
throw new TypeError();
|
|
558
558
|
if (!fe(be) && !$c(be))
|
|
559
559
|
throw new TypeError();
|
|
560
|
-
Ee(_, k,
|
|
560
|
+
Ee(_, k, q, be);
|
|
561
561
|
}
|
|
562
562
|
return T;
|
|
563
563
|
}
|
|
564
564
|
e("metadata", R);
|
|
565
|
-
function ue(_, k, T,
|
|
565
|
+
function ue(_, k, T, q) {
|
|
566
566
|
if (!ee(T))
|
|
567
567
|
throw new TypeError();
|
|
568
|
-
return fe(
|
|
568
|
+
return fe(q) || (q = or(q)), Ee(_, k, T, q);
|
|
569
569
|
}
|
|
570
570
|
e("defineMetadata", ue);
|
|
571
571
|
function Ge(_, k, T) {
|
|
@@ -610,18 +610,18 @@ var Of;
|
|
|
610
610
|
if (fe(T) || (T = or(T)), !ee(k))
|
|
611
611
|
throw new TypeError();
|
|
612
612
|
fe(T) || (T = or(T));
|
|
613
|
-
var
|
|
613
|
+
var q = Wr(
|
|
614
614
|
k,
|
|
615
615
|
T,
|
|
616
616
|
/*Create*/
|
|
617
617
|
!1
|
|
618
618
|
);
|
|
619
|
-
return fe(
|
|
619
|
+
return fe(q) ? !1 : q.OrdinaryDeleteMetadata(_, k, T);
|
|
620
620
|
}
|
|
621
621
|
e("deleteMetadata", xe);
|
|
622
|
-
function
|
|
622
|
+
function tt(_, k) {
|
|
623
623
|
for (var T = _.length - 1; T >= 0; --T) {
|
|
624
|
-
var
|
|
624
|
+
var q = _[T], be = q(k);
|
|
625
625
|
if (!fe(be) && !st(be)) {
|
|
626
626
|
if (!ds(be))
|
|
627
627
|
throw new TypeError();
|
|
@@ -630,65 +630,65 @@ var Of;
|
|
|
630
630
|
}
|
|
631
631
|
return k;
|
|
632
632
|
}
|
|
633
|
-
function At(_, k, T,
|
|
633
|
+
function At(_, k, T, q) {
|
|
634
634
|
for (var be = _.length - 1; be >= 0; --be) {
|
|
635
|
-
var St = _[be], _t = St(k, T,
|
|
635
|
+
var St = _[be], _t = St(k, T, q);
|
|
636
636
|
if (!fe(_t) && !st(_t)) {
|
|
637
637
|
if (!ee(_t))
|
|
638
638
|
throw new TypeError();
|
|
639
|
-
|
|
639
|
+
q = _t;
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
|
-
return
|
|
642
|
+
return q;
|
|
643
643
|
}
|
|
644
644
|
function It(_, k, T) {
|
|
645
|
-
var
|
|
646
|
-
if (
|
|
645
|
+
var q = dt(_, k, T);
|
|
646
|
+
if (q)
|
|
647
647
|
return !0;
|
|
648
648
|
var be = Bi(k);
|
|
649
649
|
return st(be) ? !1 : It(_, be, T);
|
|
650
650
|
}
|
|
651
651
|
function dt(_, k, T) {
|
|
652
|
-
var
|
|
652
|
+
var q = Wr(
|
|
653
653
|
k,
|
|
654
654
|
T,
|
|
655
655
|
/*Create*/
|
|
656
656
|
!1
|
|
657
657
|
);
|
|
658
|
-
return fe(
|
|
658
|
+
return fe(q) ? !1 : fs(q.OrdinaryHasOwnMetadata(_, k, T));
|
|
659
659
|
}
|
|
660
660
|
function Xe(_, k, T) {
|
|
661
|
-
var
|
|
662
|
-
if (
|
|
661
|
+
var q = dt(_, k, T);
|
|
662
|
+
if (q)
|
|
663
663
|
return ae(_, k, T);
|
|
664
664
|
var be = Bi(k);
|
|
665
665
|
if (!st(be))
|
|
666
666
|
return Xe(_, be, T);
|
|
667
667
|
}
|
|
668
668
|
function ae(_, k, T) {
|
|
669
|
-
var
|
|
669
|
+
var q = Wr(
|
|
670
670
|
k,
|
|
671
671
|
T,
|
|
672
672
|
/*Create*/
|
|
673
673
|
!1
|
|
674
674
|
);
|
|
675
|
-
if (!fe(
|
|
676
|
-
return
|
|
675
|
+
if (!fe(q))
|
|
676
|
+
return q.OrdinaryGetOwnMetadata(_, k, T);
|
|
677
677
|
}
|
|
678
|
-
function Ee(_, k, T,
|
|
678
|
+
function Ee(_, k, T, q) {
|
|
679
679
|
var be = Wr(
|
|
680
680
|
T,
|
|
681
|
-
|
|
681
|
+
q,
|
|
682
682
|
/*Create*/
|
|
683
683
|
!0
|
|
684
684
|
);
|
|
685
|
-
be.OrdinaryDefineOwnMetadata(_, k, T,
|
|
685
|
+
be.OrdinaryDefineOwnMetadata(_, k, T, q);
|
|
686
686
|
}
|
|
687
687
|
function gt(_, k) {
|
|
688
|
-
var T = Ut(_, k),
|
|
689
|
-
if (
|
|
688
|
+
var T = Ut(_, k), q = Bi(_);
|
|
689
|
+
if (q === null)
|
|
690
690
|
return T;
|
|
691
|
-
var be = gt(
|
|
691
|
+
var be = gt(q, k);
|
|
692
692
|
if (be.length <= 0)
|
|
693
693
|
return T;
|
|
694
694
|
if (T.length <= 0)
|
|
@@ -759,9 +759,9 @@ var Of;
|
|
|
759
759
|
case 5:
|
|
760
760
|
return _;
|
|
761
761
|
}
|
|
762
|
-
var T = "string",
|
|
763
|
-
if (
|
|
764
|
-
var be =
|
|
762
|
+
var T = "string", q = Co(_, s);
|
|
763
|
+
if (q !== void 0) {
|
|
764
|
+
var be = q.call(_, T);
|
|
765
765
|
if (ee(be))
|
|
766
766
|
throw new TypeError();
|
|
767
767
|
return be;
|
|
@@ -769,19 +769,19 @@ var Of;
|
|
|
769
769
|
return Vt(_);
|
|
770
770
|
}
|
|
771
771
|
function Vt(_, k) {
|
|
772
|
-
var T,
|
|
772
|
+
var T, q;
|
|
773
773
|
{
|
|
774
774
|
var be = _.toString;
|
|
775
775
|
if (pn(be)) {
|
|
776
|
-
var
|
|
777
|
-
if (!ee(
|
|
778
|
-
return
|
|
776
|
+
var q = be.call(_);
|
|
777
|
+
if (!ee(q))
|
|
778
|
+
return q;
|
|
779
779
|
}
|
|
780
780
|
var T = _.valueOf;
|
|
781
781
|
if (pn(T)) {
|
|
782
|
-
var
|
|
783
|
-
if (!ee(
|
|
784
|
-
return
|
|
782
|
+
var q = T.call(_);
|
|
783
|
+
if (!ee(q))
|
|
784
|
+
return q;
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
787
|
throw new TypeError();
|
|
@@ -850,16 +850,16 @@ var Of;
|
|
|
850
850
|
var k = Object.getPrototypeOf(_);
|
|
851
851
|
if (typeof _ != "function" || _ === x || k !== x)
|
|
852
852
|
return k;
|
|
853
|
-
var T = _.prototype,
|
|
854
|
-
if (
|
|
853
|
+
var T = _.prototype, q = T && Object.getPrototypeOf(T);
|
|
854
|
+
if (q == null || q === Object.prototype)
|
|
855
855
|
return k;
|
|
856
|
-
var be =
|
|
856
|
+
var be = q.constructor;
|
|
857
857
|
return typeof be != "function" || be === _ ? k : be;
|
|
858
858
|
}
|
|
859
859
|
function vs() {
|
|
860
860
|
var _;
|
|
861
861
|
!fe(A) && typeof t.Reflect < "u" && !(A in t.Reflect) && typeof t.Reflect.defineMetadata == "function" && (_ = ws(t.Reflect));
|
|
862
|
-
var k, T,
|
|
862
|
+
var k, T, q, be = new v(), St = {
|
|
863
863
|
registerProvider: _t,
|
|
864
864
|
getProvider: Z,
|
|
865
865
|
setProvider: he
|
|
@@ -882,7 +882,7 @@ var Of;
|
|
|
882
882
|
case T === ge:
|
|
883
883
|
break;
|
|
884
884
|
default:
|
|
885
|
-
|
|
885
|
+
q === void 0 && (q = new N()), q.add(ge);
|
|
886
886
|
break;
|
|
887
887
|
}
|
|
888
888
|
}
|
|
@@ -893,14 +893,14 @@ var Of;
|
|
|
893
893
|
if (!fe(T)) {
|
|
894
894
|
if (T.isProviderFor(ge, Je))
|
|
895
895
|
return k;
|
|
896
|
-
if (!fe(
|
|
897
|
-
for (var
|
|
898
|
-
var mt = Zr(
|
|
896
|
+
if (!fe(q))
|
|
897
|
+
for (var rt = ys(q); ; ) {
|
|
898
|
+
var mt = Zr(rt);
|
|
899
899
|
if (!mt)
|
|
900
900
|
return;
|
|
901
901
|
var zt = gs(mt);
|
|
902
902
|
if (zt.isProviderFor(ge, Je))
|
|
903
|
-
return Xn(
|
|
903
|
+
return Xn(rt), zt;
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
906
|
}
|
|
@@ -908,23 +908,23 @@ var Of;
|
|
|
908
908
|
return _;
|
|
909
909
|
}
|
|
910
910
|
function Z(ge, Je) {
|
|
911
|
-
var
|
|
912
|
-
return fe(
|
|
911
|
+
var rt = be.get(ge), mt;
|
|
912
|
+
return fe(rt) || (mt = rt.get(Je)), fe(mt) && (mt = je(ge, Je), fe(mt) || (fe(rt) && (rt = new G(), be.set(ge, rt)), rt.set(Je, mt))), mt;
|
|
913
913
|
}
|
|
914
914
|
function te(ge) {
|
|
915
915
|
if (fe(ge))
|
|
916
916
|
throw new TypeError();
|
|
917
|
-
return k === ge || T === ge || !fe(
|
|
917
|
+
return k === ge || T === ge || !fe(q) && q.has(ge);
|
|
918
918
|
}
|
|
919
|
-
function he(ge, Je,
|
|
920
|
-
if (!te(
|
|
919
|
+
function he(ge, Je, rt) {
|
|
920
|
+
if (!te(rt))
|
|
921
921
|
throw new Error("Metadata provider not registered.");
|
|
922
922
|
var mt = Z(ge, Je);
|
|
923
|
-
if (mt !==
|
|
923
|
+
if (mt !== rt) {
|
|
924
924
|
if (!fe(mt))
|
|
925
925
|
return !1;
|
|
926
926
|
var zt = be.get(ge);
|
|
927
|
-
fe(zt) && (zt = new G(), be.set(ge, zt)), zt.set(Je,
|
|
927
|
+
fe(zt) && (zt = new G(), be.set(ge, zt)), zt.set(Je, rt);
|
|
928
928
|
}
|
|
929
929
|
return !0;
|
|
930
930
|
}
|
|
@@ -951,24 +951,24 @@ var Of;
|
|
|
951
951
|
OrdinaryDeleteMetadata: Z
|
|
952
952
|
};
|
|
953
953
|
return O.registerProvider(T), T;
|
|
954
|
-
function
|
|
955
|
-
var Je = k.get(te),
|
|
954
|
+
function q(te, he, ge) {
|
|
955
|
+
var Je = k.get(te), rt = !1;
|
|
956
956
|
if (fe(Je)) {
|
|
957
957
|
if (!ge)
|
|
958
958
|
return;
|
|
959
|
-
Je = new G(), k.set(te, Je),
|
|
959
|
+
Je = new G(), k.set(te, Je), rt = !0;
|
|
960
960
|
}
|
|
961
961
|
var mt = Je.get(he);
|
|
962
962
|
if (fe(mt)) {
|
|
963
963
|
if (!ge)
|
|
964
964
|
return;
|
|
965
965
|
if (mt = new G(), Je.set(he, mt), !_.setProvider(te, he, T))
|
|
966
|
-
throw Je.delete(he),
|
|
966
|
+
throw Je.delete(he), rt && k.delete(te), new Error("Wrong provider for target.");
|
|
967
967
|
}
|
|
968
968
|
return mt;
|
|
969
969
|
}
|
|
970
970
|
function be(te, he, ge) {
|
|
971
|
-
var Je =
|
|
971
|
+
var Je = q(
|
|
972
972
|
he,
|
|
973
973
|
ge,
|
|
974
974
|
/*Create*/
|
|
@@ -977,7 +977,7 @@ var Of;
|
|
|
977
977
|
return fe(Je) ? !1 : fs(Je.has(te));
|
|
978
978
|
}
|
|
979
979
|
function St(te, he, ge) {
|
|
980
|
-
var Je =
|
|
980
|
+
var Je = q(
|
|
981
981
|
he,
|
|
982
982
|
ge,
|
|
983
983
|
/*Create*/
|
|
@@ -987,16 +987,16 @@ var Of;
|
|
|
987
987
|
return Je.get(te);
|
|
988
988
|
}
|
|
989
989
|
function _t(te, he, ge, Je) {
|
|
990
|
-
var
|
|
990
|
+
var rt = q(
|
|
991
991
|
ge,
|
|
992
992
|
Je,
|
|
993
993
|
/*Create*/
|
|
994
994
|
!0
|
|
995
995
|
);
|
|
996
|
-
|
|
996
|
+
rt.set(te, he);
|
|
997
997
|
}
|
|
998
998
|
function je(te, he) {
|
|
999
|
-
var ge = [], Je =
|
|
999
|
+
var ge = [], Je = q(
|
|
1000
1000
|
te,
|
|
1001
1001
|
he,
|
|
1002
1002
|
/*Create*/
|
|
@@ -1004,7 +1004,7 @@ var Of;
|
|
|
1004
1004
|
);
|
|
1005
1005
|
if (fe(Je))
|
|
1006
1006
|
return ge;
|
|
1007
|
-
for (var
|
|
1007
|
+
for (var rt = Je.keys(), mt = ys(rt), zt = 0; ; ) {
|
|
1008
1008
|
var Ti = Zr(mt);
|
|
1009
1009
|
if (!Ti)
|
|
1010
1010
|
return ge.length = zt, ge;
|
|
@@ -1022,7 +1022,7 @@ var Of;
|
|
|
1022
1022
|
}
|
|
1023
1023
|
}
|
|
1024
1024
|
function Z(te, he, ge) {
|
|
1025
|
-
var Je =
|
|
1025
|
+
var Je = q(
|
|
1026
1026
|
he,
|
|
1027
1027
|
ge,
|
|
1028
1028
|
/*Create*/
|
|
@@ -1031,30 +1031,30 @@ var Of;
|
|
|
1031
1031
|
if (fe(Je) || !Je.delete(te))
|
|
1032
1032
|
return !1;
|
|
1033
1033
|
if (Je.size === 0) {
|
|
1034
|
-
var
|
|
1035
|
-
fe(
|
|
1034
|
+
var rt = k.get(he);
|
|
1035
|
+
fe(rt) || (rt.delete(ge), rt.size === 0 && k.delete(rt));
|
|
1036
1036
|
}
|
|
1037
1037
|
return !0;
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
1040
|
function ws(_) {
|
|
1041
|
-
var k = _.defineMetadata, T = _.hasOwnMetadata,
|
|
1041
|
+
var k = _.defineMetadata, T = _.hasOwnMetadata, q = _.getOwnMetadata, be = _.getOwnMetadataKeys, St = _.deleteMetadata, _t = new v(), je = {
|
|
1042
1042
|
isProviderFor: function(Z, te) {
|
|
1043
1043
|
var he = _t.get(Z);
|
|
1044
1044
|
return !fe(he) && he.has(te) ? !0 : be(Z, te).length ? (fe(he) && (he = new N(), _t.set(Z, he)), he.add(te), !0) : !1;
|
|
1045
1045
|
},
|
|
1046
1046
|
OrdinaryDefineOwnMetadata: k,
|
|
1047
1047
|
OrdinaryHasOwnMetadata: T,
|
|
1048
|
-
OrdinaryGetOwnMetadata:
|
|
1048
|
+
OrdinaryGetOwnMetadata: q,
|
|
1049
1049
|
OrdinaryOwnMetadataKeys: be,
|
|
1050
1050
|
OrdinaryDeleteMetadata: St
|
|
1051
1051
|
};
|
|
1052
1052
|
return je;
|
|
1053
1053
|
}
|
|
1054
1054
|
function Wr(_, k, T) {
|
|
1055
|
-
var
|
|
1056
|
-
if (!fe(
|
|
1057
|
-
return
|
|
1055
|
+
var q = O.getProvider(_, k);
|
|
1056
|
+
if (!fe(q))
|
|
1057
|
+
return q;
|
|
1058
1058
|
if (T) {
|
|
1059
1059
|
if (O.setProvider(_, k, I))
|
|
1060
1060
|
return I;
|
|
@@ -1085,7 +1085,7 @@ var Of;
|
|
|
1085
1085
|
return this._index >= 0 && (this._index = -1, this._keys = k, this._values = k), { value: Z, done: !0 };
|
|
1086
1086
|
}, je;
|
|
1087
1087
|
}()
|
|
1088
|
-
),
|
|
1088
|
+
), q = (
|
|
1089
1089
|
/** @class */
|
|
1090
1090
|
function() {
|
|
1091
1091
|
function je() {
|
|
@@ -1154,7 +1154,7 @@ var Of;
|
|
|
1154
1154
|
}, je;
|
|
1155
1155
|
}()
|
|
1156
1156
|
);
|
|
1157
|
-
return
|
|
1157
|
+
return q;
|
|
1158
1158
|
function be(je, Z) {
|
|
1159
1159
|
return je;
|
|
1160
1160
|
}
|
|
@@ -1202,12 +1202,12 @@ var Of;
|
|
|
1202
1202
|
return _;
|
|
1203
1203
|
}
|
|
1204
1204
|
function Bo() {
|
|
1205
|
-
var _ = 16, k = m.create(), T =
|
|
1205
|
+
var _ = 16, k = m.create(), T = q();
|
|
1206
1206
|
return (
|
|
1207
1207
|
/** @class */
|
|
1208
1208
|
function() {
|
|
1209
1209
|
function Z() {
|
|
1210
|
-
this._key =
|
|
1210
|
+
this._key = q();
|
|
1211
1211
|
}
|
|
1212
1212
|
return Z.prototype.has = function(te) {
|
|
1213
1213
|
var he = be(
|
|
@@ -1238,11 +1238,11 @@ var Of;
|
|
|
1238
1238
|
);
|
|
1239
1239
|
return he !== void 0 ? delete he[this._key] : !1;
|
|
1240
1240
|
}, Z.prototype.clear = function() {
|
|
1241
|
-
this._key =
|
|
1241
|
+
this._key = q();
|
|
1242
1242
|
}, Z;
|
|
1243
1243
|
}()
|
|
1244
1244
|
);
|
|
1245
|
-
function
|
|
1245
|
+
function q() {
|
|
1246
1246
|
var Z;
|
|
1247
1247
|
do
|
|
1248
1248
|
Z = "@@WeakMap@@" + je();
|
|
@@ -1741,7 +1741,7 @@ class Ha {
|
|
|
1741
1741
|
return Nu(this.items);
|
|
1742
1742
|
}
|
|
1743
1743
|
}
|
|
1744
|
-
const _s = [new Uint8Array([1])], Nf = "0123456789", Lc = "name", Pf = "valueHexView", tg = "isHexOnly", rg = "idBlock", ng = "tagClass", ig = "tagNumber", sg = "isConstructed", og = "fromBER", ag = "toBER", cg = "local", yr = "",
|
|
1744
|
+
const _s = [new Uint8Array([1])], Nf = "0123456789", Lc = "name", Pf = "valueHexView", tg = "isHexOnly", rg = "idBlock", ng = "tagClass", ig = "tagNumber", sg = "isConstructed", og = "fromBER", ag = "toBER", cg = "local", yr = "", qr = new ArrayBuffer(0), Fa = new Uint8Array(0), Us = "EndOfContent", Id = "OCTET STRING", kd = "BIT STRING";
|
|
1745
1745
|
function fn(r) {
|
|
1746
1746
|
var e;
|
|
1747
1747
|
return e = class extends r {
|
|
@@ -1765,7 +1765,7 @@ function fn(r) {
|
|
|
1765
1765
|
return this.valueHexView = o.subarray(i, c), this.valueHexView.length ? (this.blockLength = s, c) : (this.warnings.push("Zero buffer length"), i);
|
|
1766
1766
|
}
|
|
1767
1767
|
toBER(n = !1) {
|
|
1768
|
-
return this.isHexOnly ? n ? new ArrayBuffer(this.valueHexView.byteLength) : this.valueHexView.byteLength === this.valueHexView.buffer.byteLength ? this.valueHexView.buffer : this.valueHexView.slice().buffer : (this.error = "Flag 'isHexOnly' is not set, abort",
|
|
1768
|
+
return this.isHexOnly ? n ? new ArrayBuffer(this.valueHexView.byteLength) : this.valueHexView.byteLength === this.valueHexView.buffer.byteLength ? this.valueHexView.buffer : this.valueHexView.slice().buffer : (this.error = "Flag 'isHexOnly' is not set, abort", qr);
|
|
1769
1769
|
}
|
|
1770
1770
|
toJSON() {
|
|
1771
1771
|
return {
|
|
@@ -1830,7 +1830,7 @@ class Cd extends fn(Ei) {
|
|
|
1830
1830
|
t |= 192;
|
|
1831
1831
|
break;
|
|
1832
1832
|
default:
|
|
1833
|
-
return this.error = "Unknown tag class",
|
|
1833
|
+
return this.error = "Unknown tag class", qr;
|
|
1834
1834
|
}
|
|
1835
1835
|
if (this.isConstructed && (t |= 32), this.tagNumber < 31 && !this.isHexOnly) {
|
|
1836
1836
|
const i = new Uint8Array(1);
|
|
@@ -1966,7 +1966,7 @@ class Bd extends Ei {
|
|
|
1966
1966
|
if (this.longFormUsed) {
|
|
1967
1967
|
const i = ci(this.length, 8);
|
|
1968
1968
|
if (i.byteLength > 127)
|
|
1969
|
-
return this.error = "Too big length",
|
|
1969
|
+
return this.error = "Too big length", qr;
|
|
1970
1970
|
if (t = new ArrayBuffer(i.byteLength + 1), e)
|
|
1971
1971
|
return t;
|
|
1972
1972
|
const s = new Uint8Array(i);
|
|
@@ -2008,7 +2008,7 @@ class Jt extends Ei {
|
|
|
2008
2008
|
const o = this.lenBlock.toBER(e);
|
|
2009
2009
|
n.write(o), n.write(s);
|
|
2010
2010
|
}
|
|
2011
|
-
return t ?
|
|
2011
|
+
return t ? qr : n.final();
|
|
2012
2012
|
}
|
|
2013
2013
|
toJSON() {
|
|
2014
2014
|
const e = {
|
|
@@ -2276,7 +2276,7 @@ class Vn extends fr {
|
|
|
2276
2276
|
const n = t || new Ha();
|
|
2277
2277
|
for (let i = 0; i < this.value.length; i++)
|
|
2278
2278
|
this.value[i].toBER(e, n);
|
|
2279
|
-
return t ?
|
|
2279
|
+
return t ? qr : n.final();
|
|
2280
2280
|
}
|
|
2281
2281
|
toJSON() {
|
|
2282
2282
|
const e = {
|
|
@@ -2320,7 +2320,7 @@ class jd extends fr {
|
|
|
2320
2320
|
return t;
|
|
2321
2321
|
}
|
|
2322
2322
|
toBER(e) {
|
|
2323
|
-
return
|
|
2323
|
+
return qr;
|
|
2324
2324
|
}
|
|
2325
2325
|
}
|
|
2326
2326
|
jd.override = "EndOfContentValueBlock";
|
|
@@ -2533,7 +2533,7 @@ class Hd extends fn(Vn) {
|
|
|
2533
2533
|
if (e)
|
|
2534
2534
|
return new ArrayBuffer(this.valueHexView.byteLength + 1);
|
|
2535
2535
|
if (!this.valueHexView.byteLength)
|
|
2536
|
-
return
|
|
2536
|
+
return qr;
|
|
2537
2537
|
const n = new Uint8Array(this.valueHexView.length + 1);
|
|
2538
2538
|
return n[0] = this.unusedBits, n.set(this.valueHexView, 1), n.buffer;
|
|
2539
2539
|
}
|
|
@@ -2761,14 +2761,14 @@ class nn extends Jt {
|
|
|
2761
2761
|
Gd = nn;
|
|
2762
2762
|
ce.Integer = Gd;
|
|
2763
2763
|
nn.NAME = "INTEGER";
|
|
2764
|
-
var
|
|
2764
|
+
var qd;
|
|
2765
2765
|
class Ga extends nn {
|
|
2766
2766
|
constructor(e = {}) {
|
|
2767
2767
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 10;
|
|
2768
2768
|
}
|
|
2769
2769
|
}
|
|
2770
|
-
|
|
2771
|
-
ce.Enumerated =
|
|
2770
|
+
qd = Ga;
|
|
2771
|
+
ce.Enumerated = qd;
|
|
2772
2772
|
Ga.NAME = "ENUMERATED";
|
|
2773
2773
|
class al extends fn(fr) {
|
|
2774
2774
|
constructor({ valueDec: e = -1, isFirstSid: t = !1, ...n } = {}) {
|
|
@@ -2810,7 +2810,7 @@ class al extends fn(fr) {
|
|
|
2810
2810
|
}
|
|
2811
2811
|
const t = ci(this.valueDec, 7);
|
|
2812
2812
|
if (t.byteLength === 0)
|
|
2813
|
-
return this.error = "Error during encoding SID value",
|
|
2813
|
+
return this.error = "Error during encoding SID value", qr;
|
|
2814
2814
|
const n = new Uint8Array(t.byteLength);
|
|
2815
2815
|
if (!e) {
|
|
2816
2816
|
const i = new Uint8Array(t), s = t.byteLength - 1;
|
|
@@ -2840,7 +2840,7 @@ class al extends fn(fr) {
|
|
|
2840
2840
|
}
|
|
2841
2841
|
}
|
|
2842
2842
|
al.NAME = "sidBlock";
|
|
2843
|
-
class
|
|
2843
|
+
class Kd extends fr {
|
|
2844
2844
|
constructor({ value: e = yr, ...t } = {}) {
|
|
2845
2845
|
super(t), this.value = [], e && this.fromString(e);
|
|
2846
2846
|
}
|
|
@@ -2859,7 +2859,7 @@ class qd extends fr {
|
|
|
2859
2859
|
for (let n = 0; n < this.value.length; n++) {
|
|
2860
2860
|
const i = this.value[n].toBER(e);
|
|
2861
2861
|
if (i.byteLength === 0)
|
|
2862
|
-
return this.error = this.value[n].error,
|
|
2862
|
+
return this.error = this.value[n].error, qr;
|
|
2863
2863
|
t.push(i);
|
|
2864
2864
|
}
|
|
2865
2865
|
return Nu(t);
|
|
@@ -2920,11 +2920,11 @@ class qd extends fr {
|
|
|
2920
2920
|
return e;
|
|
2921
2921
|
}
|
|
2922
2922
|
}
|
|
2923
|
-
|
|
2923
|
+
Kd.NAME = "ObjectIdentifierValueBlock";
|
|
2924
2924
|
var Zd;
|
|
2925
|
-
class
|
|
2925
|
+
class qa extends Jt {
|
|
2926
2926
|
constructor(e = {}) {
|
|
2927
|
-
super(e,
|
|
2927
|
+
super(e, Kd), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 6;
|
|
2928
2928
|
}
|
|
2929
2929
|
getValue() {
|
|
2930
2930
|
return this.valueBlock.toString();
|
|
@@ -2942,9 +2942,9 @@ class Ka extends Jt {
|
|
|
2942
2942
|
};
|
|
2943
2943
|
}
|
|
2944
2944
|
}
|
|
2945
|
-
Zd =
|
|
2945
|
+
Zd = qa;
|
|
2946
2946
|
ce.ObjectIdentifier = Zd;
|
|
2947
|
-
|
|
2947
|
+
qa.NAME = "OBJECT IDENTIFIER";
|
|
2948
2948
|
class cl extends fn(Ei) {
|
|
2949
2949
|
constructor({ valueDec: e = 0, ...t } = {}) {
|
|
2950
2950
|
super(t), this.valueDec = e;
|
|
@@ -2975,7 +2975,7 @@ class cl extends fn(Ei) {
|
|
|
2975
2975
|
}
|
|
2976
2976
|
const t = ci(this.valueDec, 7);
|
|
2977
2977
|
if (t.byteLength === 0)
|
|
2978
|
-
return this.error = "Error during encoding SID value",
|
|
2978
|
+
return this.error = "Error during encoding SID value", qr;
|
|
2979
2979
|
const n = new Uint8Array(t.byteLength);
|
|
2980
2980
|
if (!e) {
|
|
2981
2981
|
const i = new Uint8Array(t), s = t.byteLength - 1;
|
|
@@ -3016,7 +3016,7 @@ class Wd extends fr {
|
|
|
3016
3016
|
for (let i = 0; i < this.value.length; i++) {
|
|
3017
3017
|
const s = this.value[i].toBER(e);
|
|
3018
3018
|
if (s.byteLength === 0)
|
|
3019
|
-
return this.error = this.value[i].error,
|
|
3019
|
+
return this.error = this.value[i].error, qr;
|
|
3020
3020
|
n.push(s);
|
|
3021
3021
|
}
|
|
3022
3022
|
return Nu(n);
|
|
@@ -3159,14 +3159,14 @@ class np extends Ir {
|
|
|
3159
3159
|
}
|
|
3160
3160
|
np.NAME = "BmpStringValueBlock";
|
|
3161
3161
|
var ip;
|
|
3162
|
-
class
|
|
3162
|
+
class Ka extends np {
|
|
3163
3163
|
constructor({ ...e } = {}) {
|
|
3164
3164
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 30;
|
|
3165
3165
|
}
|
|
3166
3166
|
}
|
|
3167
|
-
ip =
|
|
3167
|
+
ip = Ka;
|
|
3168
3168
|
ce.BmpString = ip;
|
|
3169
|
-
|
|
3169
|
+
Ka.NAME = "BMPString";
|
|
3170
3170
|
class sp extends Ir {
|
|
3171
3171
|
fromBuffer(e) {
|
|
3172
3172
|
const t = ArrayBuffer.isView(e) ? e.slice().buffer : e.slice(0), n = new Uint8Array(t);
|
|
@@ -3756,7 +3756,7 @@ const Sp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3756
3756
|
BaseBlock: Jt,
|
|
3757
3757
|
BaseStringBlock: Pu,
|
|
3758
3758
|
BitString: oi,
|
|
3759
|
-
BmpString:
|
|
3759
|
+
BmpString: Ka,
|
|
3760
3760
|
Boolean: za,
|
|
3761
3761
|
CharacterString: rc,
|
|
3762
3762
|
Choice: Hu,
|
|
@@ -3774,7 +3774,7 @@ const Sp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3774
3774
|
Integer: nn,
|
|
3775
3775
|
Null: li,
|
|
3776
3776
|
NumericString: Wa,
|
|
3777
|
-
ObjectIdentifier:
|
|
3777
|
+
ObjectIdentifier: qa,
|
|
3778
3778
|
OctetString: si,
|
|
3779
3779
|
Primitive: fo,
|
|
3780
3780
|
PrintableString: Ya,
|
|
@@ -3845,7 +3845,7 @@ class ic {
|
|
|
3845
3845
|
this.value = i.buffer;
|
|
3846
3846
|
}
|
|
3847
3847
|
}
|
|
3848
|
-
class
|
|
3848
|
+
class it {
|
|
3849
3849
|
get byteLength() {
|
|
3850
3850
|
return this.buffer.byteLength;
|
|
3851
3851
|
}
|
|
@@ -3891,15 +3891,15 @@ const yg = {
|
|
|
3891
3891
|
toASN: (r) => new oi({ valueHex: r })
|
|
3892
3892
|
}, wg = {
|
|
3893
3893
|
fromASN: (r) => r.valueBlock.toString(),
|
|
3894
|
-
toASN: (r) => new
|
|
3894
|
+
toASN: (r) => new qa({ value: r })
|
|
3895
3895
|
}, bg = {
|
|
3896
3896
|
fromASN: (r) => r.valueBlock.value,
|
|
3897
3897
|
toASN: (r) => new za({ value: r })
|
|
3898
|
-
},
|
|
3898
|
+
}, qo = {
|
|
3899
3899
|
fromASN: (r) => r.valueBlock.valueHexView,
|
|
3900
3900
|
toASN: (r) => new si({ valueHex: r })
|
|
3901
3901
|
}, xg = {
|
|
3902
|
-
fromASN: (r) => new
|
|
3902
|
+
fromASN: (r) => new it(r.getValue()),
|
|
3903
3903
|
toASN: (r) => r.toASN()
|
|
3904
3904
|
};
|
|
3905
3905
|
function Tr(r) {
|
|
@@ -3908,7 +3908,7 @@ function Tr(r) {
|
|
|
3908
3908
|
toASN: (e) => new r({ value: e })
|
|
3909
3909
|
};
|
|
3910
3910
|
}
|
|
3911
|
-
const _p = Tr(kn), Ag = Tr(
|
|
3911
|
+
const _p = Tr(kn), Ag = Tr(Ka), Sg = Tr(Za), _g = Tr(Wa), Eg = Tr(Ya), Ig = Tr(Ja), kg = Tr(Xa), Cg = Tr(Qa), Bg = Tr(ec), Og = Tr(ho), Tg = Tr(tc), Ng = Tr(rc), Pg = {
|
|
3912
3912
|
fromASN: (r) => r.toDate(),
|
|
3913
3913
|
toASN: (r) => new po({ valueDate: r })
|
|
3914
3914
|
}, jg = {
|
|
@@ -3949,7 +3949,7 @@ function Fu(r) {
|
|
|
3949
3949
|
case b.ObjectIdentifier:
|
|
3950
3950
|
return wg;
|
|
3951
3951
|
case b.OctetString:
|
|
3952
|
-
return
|
|
3952
|
+
return qo;
|
|
3953
3953
|
case b.PrintableString:
|
|
3954
3954
|
return Eg;
|
|
3955
3955
|
case b.TeletexString:
|
|
@@ -4323,7 +4323,7 @@ class yt extends Array {
|
|
|
4323
4323
|
}
|
|
4324
4324
|
}
|
|
4325
4325
|
}
|
|
4326
|
-
class
|
|
4326
|
+
class K {
|
|
4327
4327
|
static serialize(e) {
|
|
4328
4328
|
return zu.serialize(e);
|
|
4329
4329
|
}
|
|
@@ -4331,7 +4331,7 @@ class q {
|
|
|
4331
4331
|
return $g.parse(e, t);
|
|
4332
4332
|
}
|
|
4333
4333
|
static toString(e) {
|
|
4334
|
-
const t = Y.isBufferSource(e) ? Y.toArrayBuffer(e) :
|
|
4334
|
+
const t = Y.isBufferSource(e) ? Y.toArrayBuffer(e) : K.serialize(e), n = Ui(t);
|
|
4335
4335
|
if (n.offset === -1)
|
|
4336
4336
|
throw new Error(`Cannot decode ASN.1 data. ${n.result.error}`);
|
|
4337
4337
|
return n.result.toString();
|
|
@@ -4940,8 +4940,8 @@ Ht = fl = f([
|
|
|
4940
4940
|
H({ type: M.Sequence })
|
|
4941
4941
|
], Ht);
|
|
4942
4942
|
const Mg = {
|
|
4943
|
-
fromASN: (r) => Df.toString(
|
|
4944
|
-
toASN: (r) =>
|
|
4943
|
+
fromASN: (r) => Df.toString(qo.fromASN(r)),
|
|
4944
|
+
toASN: (r) => qo.toASN(Df.fromString(r))
|
|
4945
4945
|
};
|
|
4946
4946
|
class Ds {
|
|
4947
4947
|
constructor(e = {}) {
|
|
@@ -5000,7 +5000,7 @@ f([
|
|
|
5000
5000
|
De = f([
|
|
5001
5001
|
H({ type: M.Choice })
|
|
5002
5002
|
], De);
|
|
5003
|
-
const
|
|
5003
|
+
const qu = "1.3.6.1.5.5.7", Vg = `${qu}.1`, is = `${qu}.3`, oc = `${qu}.48`, $f = `${oc}.1`, Mf = `${oc}.2`, Vf = `${oc}.3`, Lf = `${oc}.5`, Yn = "2.5.29";
|
|
5004
5004
|
var dl;
|
|
5005
5005
|
const pl = `${Vg}.1`;
|
|
5006
5006
|
class yo {
|
|
@@ -5022,8 +5022,8 @@ let ji = dl = class extends yt {
|
|
|
5022
5022
|
ji = dl = f([
|
|
5023
5023
|
H({ type: M.Sequence, itemType: yo })
|
|
5024
5024
|
], ji);
|
|
5025
|
-
const
|
|
5026
|
-
class
|
|
5025
|
+
const Ko = `${Yn}.35`;
|
|
5026
|
+
class Ku extends it {
|
|
5027
5027
|
}
|
|
5028
5028
|
class ni {
|
|
5029
5029
|
constructor(e = {}) {
|
|
@@ -5031,7 +5031,7 @@ class ni {
|
|
|
5031
5031
|
}
|
|
5032
5032
|
}
|
|
5033
5033
|
f([
|
|
5034
|
-
y({ type:
|
|
5034
|
+
y({ type: Ku, context: 0, optional: !0, implicit: !0 })
|
|
5035
5035
|
], ni.prototype, "keyIdentifier", void 0);
|
|
5036
5036
|
f([
|
|
5037
5037
|
y({ type: De, context: 1, optional: !0, implicit: !0, repeated: "sequence" })
|
|
@@ -5297,7 +5297,7 @@ let Xo = Al = class extends yt {
|
|
|
5297
5297
|
Xo = Al = f([
|
|
5298
5298
|
H({ type: M.Sequence, itemType: b.ObjectIdentifier })
|
|
5299
5299
|
], Xo);
|
|
5300
|
-
const Lg = `${is}.1`, Hg = `${is}.2`, Fg = `${is}.3`, zg = `${is}.4`, Gg = `${is}.8`,
|
|
5300
|
+
const Lg = `${is}.1`, Hg = `${is}.2`, Fg = `${is}.3`, zg = `${is}.4`, Gg = `${is}.8`, qg = `${is}.9`;
|
|
5301
5301
|
let Sl = class {
|
|
5302
5302
|
constructor(e = new ArrayBuffer(0)) {
|
|
5303
5303
|
this.value = e;
|
|
@@ -5412,14 +5412,14 @@ f([
|
|
|
5412
5412
|
f([
|
|
5413
5413
|
y({ type: b.ObjectIdentifier })
|
|
5414
5414
|
], Ju.prototype, "subjectDomainPolicy", void 0);
|
|
5415
|
-
let
|
|
5415
|
+
let qf = kl = class extends yt {
|
|
5416
5416
|
constructor(e) {
|
|
5417
5417
|
super(e), Object.setPrototypeOf(this, kl.prototype);
|
|
5418
5418
|
}
|
|
5419
5419
|
};
|
|
5420
|
-
|
|
5420
|
+
qf = kl = f([
|
|
5421
5421
|
H({ type: M.Sequence, itemType: Ju })
|
|
5422
|
-
],
|
|
5422
|
+
], qf);
|
|
5423
5423
|
var Cl;
|
|
5424
5424
|
const Xu = `${Yn}.17`;
|
|
5425
5425
|
let Bl = Cl = class extends cr {
|
|
@@ -5442,16 +5442,16 @@ f([
|
|
|
5442
5442
|
y({ type: b.Any, repeated: "set" })
|
|
5443
5443
|
], Sn.prototype, "values", void 0);
|
|
5444
5444
|
var Ol;
|
|
5445
|
-
let
|
|
5445
|
+
let Kf = Ol = class extends yt {
|
|
5446
5446
|
constructor(e) {
|
|
5447
5447
|
super(e), Object.setPrototypeOf(this, Ol.prototype);
|
|
5448
5448
|
}
|
|
5449
5449
|
};
|
|
5450
|
-
|
|
5450
|
+
Kf = Ol = f([
|
|
5451
5451
|
H({ type: M.Sequence, itemType: Sn })
|
|
5452
|
-
],
|
|
5452
|
+
], Kf);
|
|
5453
5453
|
const Qu = `${Yn}.14`;
|
|
5454
|
-
class Ln extends
|
|
5454
|
+
class Ln extends Ku {
|
|
5455
5455
|
}
|
|
5456
5456
|
class jp {
|
|
5457
5457
|
constructor(e = {}) {
|
|
@@ -5570,7 +5570,7 @@ f([
|
|
|
5570
5570
|
var Nl;
|
|
5571
5571
|
let Hr = class Dp {
|
|
5572
5572
|
constructor(e = {}) {
|
|
5573
|
-
this.extnID = "", this.critical = Dp.CRITICAL, this.extnValue = new
|
|
5573
|
+
this.extnID = "", this.critical = Dp.CRITICAL, this.extnValue = new it(), Object.assign(this, e);
|
|
5574
5574
|
}
|
|
5575
5575
|
};
|
|
5576
5576
|
Hr.CRITICAL = !1;
|
|
@@ -5584,7 +5584,7 @@ f([
|
|
|
5584
5584
|
})
|
|
5585
5585
|
], Hr.prototype, "critical", void 0);
|
|
5586
5586
|
f([
|
|
5587
|
-
y({ type:
|
|
5587
|
+
y({ type: it })
|
|
5588
5588
|
], Hr.prototype, "extnValue", void 0);
|
|
5589
5589
|
let hi = Nl = class extends yt {
|
|
5590
5590
|
constructor(e) {
|
|
@@ -5786,7 +5786,7 @@ f([
|
|
|
5786
5786
|
var jl;
|
|
5787
5787
|
class hn {
|
|
5788
5788
|
constructor(e = {}) {
|
|
5789
|
-
this.version = an.v0, this.sid = new Fi(), this.digestAlgorithm = new $s(), this.signatureAlgorithm = new ea(), this.signature = new
|
|
5789
|
+
this.version = an.v0, this.sid = new Fi(), this.digestAlgorithm = new $s(), this.signatureAlgorithm = new ea(), this.signature = new it(), Object.assign(this, e);
|
|
5790
5790
|
}
|
|
5791
5791
|
}
|
|
5792
5792
|
f([
|
|
@@ -5805,7 +5805,7 @@ f([
|
|
|
5805
5805
|
y({ type: ea })
|
|
5806
5806
|
], hn.prototype, "signatureAlgorithm", void 0);
|
|
5807
5807
|
f([
|
|
5808
|
-
y({ type:
|
|
5808
|
+
y({ type: it })
|
|
5809
5809
|
], hn.prototype, "signature", void 0);
|
|
5810
5810
|
f([
|
|
5811
5811
|
y({ type: as, repeated: "set", context: 1, implicit: !0, optional: !0 })
|
|
@@ -5960,45 +5960,45 @@ var Dl;
|
|
|
5960
5960
|
(function(r) {
|
|
5961
5961
|
r[r.v2 = 1] = "v2";
|
|
5962
5962
|
})(Dl || (Dl = {}));
|
|
5963
|
-
class
|
|
5963
|
+
class Kr {
|
|
5964
5964
|
constructor(e = {}) {
|
|
5965
5965
|
this.version = Dl.v2, this.holder = new go(), this.issuer = new zi(), this.signature = new oe(), this.serialNumber = new ArrayBuffer(0), this.attrCertValidityPeriod = new dc(), this.attributes = [], Object.assign(this, e);
|
|
5966
5966
|
}
|
|
5967
5967
|
}
|
|
5968
5968
|
f([
|
|
5969
5969
|
y({ type: b.Integer })
|
|
5970
|
-
],
|
|
5970
|
+
], Kr.prototype, "version", void 0);
|
|
5971
5971
|
f([
|
|
5972
5972
|
y({ type: go })
|
|
5973
|
-
],
|
|
5973
|
+
], Kr.prototype, "holder", void 0);
|
|
5974
5974
|
f([
|
|
5975
5975
|
y({ type: zi })
|
|
5976
|
-
],
|
|
5976
|
+
], Kr.prototype, "issuer", void 0);
|
|
5977
5977
|
f([
|
|
5978
5978
|
y({ type: oe })
|
|
5979
|
-
],
|
|
5979
|
+
], Kr.prototype, "signature", void 0);
|
|
5980
5980
|
f([
|
|
5981
5981
|
y({ type: b.Integer, converter: xt })
|
|
5982
|
-
],
|
|
5982
|
+
], Kr.prototype, "serialNumber", void 0);
|
|
5983
5983
|
f([
|
|
5984
5984
|
y({ type: dc })
|
|
5985
|
-
],
|
|
5985
|
+
], Kr.prototype, "attrCertValidityPeriod", void 0);
|
|
5986
5986
|
f([
|
|
5987
5987
|
y({ type: Sn, repeated: "sequence" })
|
|
5988
|
-
],
|
|
5988
|
+
], Kr.prototype, "attributes", void 0);
|
|
5989
5989
|
f([
|
|
5990
5990
|
y({ type: b.BitString, optional: !0 })
|
|
5991
|
-
],
|
|
5991
|
+
], Kr.prototype, "issuerUniqueID", void 0);
|
|
5992
5992
|
f([
|
|
5993
5993
|
y({ type: hi, optional: !0 })
|
|
5994
|
-
],
|
|
5994
|
+
], Kr.prototype, "extensions", void 0);
|
|
5995
5995
|
class pc {
|
|
5996
5996
|
constructor(e = {}) {
|
|
5997
|
-
this.acinfo = new
|
|
5997
|
+
this.acinfo = new Kr(), this.signatureAlgorithm = new oe(), this.signatureValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
5998
5998
|
}
|
|
5999
5999
|
}
|
|
6000
6000
|
f([
|
|
6001
|
-
y({ type:
|
|
6001
|
+
y({ type: Kr })
|
|
6002
6002
|
], pc.prototype, "acinfo", void 0);
|
|
6003
6003
|
f([
|
|
6004
6004
|
y({ type: oe })
|
|
@@ -6043,7 +6043,7 @@ class yc {
|
|
|
6043
6043
|
}
|
|
6044
6044
|
}
|
|
6045
6045
|
f([
|
|
6046
|
-
y({ type:
|
|
6046
|
+
y({ type: it })
|
|
6047
6047
|
], yc.prototype, "cotets", void 0);
|
|
6048
6048
|
f([
|
|
6049
6049
|
y({ type: b.ObjectIdentifier })
|
|
@@ -6134,7 +6134,7 @@ f([
|
|
|
6134
6134
|
y({ type: De })
|
|
6135
6135
|
], sf.prototype, "ident", void 0);
|
|
6136
6136
|
f([
|
|
6137
|
-
y({ type:
|
|
6137
|
+
y({ type: it, optional: !0 })
|
|
6138
6138
|
], sf.prototype, "authInfo", void 0);
|
|
6139
6139
|
var Hl;
|
|
6140
6140
|
class of {
|
|
@@ -6184,20 +6184,20 @@ f([
|
|
|
6184
6184
|
f([
|
|
6185
6185
|
y({ type: b.Any, context: 0 })
|
|
6186
6186
|
], bn.prototype, "content", void 0);
|
|
6187
|
-
let
|
|
6187
|
+
let qi = class {
|
|
6188
6188
|
constructor(e = {}) {
|
|
6189
6189
|
Object.assign(this, e);
|
|
6190
6190
|
}
|
|
6191
6191
|
};
|
|
6192
6192
|
f([
|
|
6193
|
-
y({ type:
|
|
6194
|
-
],
|
|
6193
|
+
y({ type: it })
|
|
6194
|
+
], qi.prototype, "single", void 0);
|
|
6195
6195
|
f([
|
|
6196
6196
|
y({ type: b.Any })
|
|
6197
|
-
],
|
|
6198
|
-
|
|
6197
|
+
], qi.prototype, "any", void 0);
|
|
6198
|
+
qi = f([
|
|
6199
6199
|
H({ type: M.Choice })
|
|
6200
|
-
],
|
|
6200
|
+
], qi);
|
|
6201
6201
|
class vc {
|
|
6202
6202
|
constructor(e = {}) {
|
|
6203
6203
|
this.eContentType = "", Object.assign(this, e);
|
|
@@ -6207,7 +6207,7 @@ f([
|
|
|
6207
6207
|
y({ type: b.ObjectIdentifier })
|
|
6208
6208
|
], vc.prototype, "eContentType", void 0);
|
|
6209
6209
|
f([
|
|
6210
|
-
y({ type:
|
|
6210
|
+
y({ type: qi, context: 0, optional: !0 })
|
|
6211
6211
|
], vc.prototype, "eContent", void 0);
|
|
6212
6212
|
let Vs = class {
|
|
6213
6213
|
constructor(e = {}) {
|
|
@@ -6215,10 +6215,10 @@ let Vs = class {
|
|
|
6215
6215
|
}
|
|
6216
6216
|
};
|
|
6217
6217
|
f([
|
|
6218
|
-
y({ type:
|
|
6218
|
+
y({ type: it, context: 0, implicit: !0, optional: !0 })
|
|
6219
6219
|
], Vs.prototype, "value", void 0);
|
|
6220
6220
|
f([
|
|
6221
|
-
y({ type:
|
|
6221
|
+
y({ type: it, converter: xg, context: 0, implicit: !0, optional: !0, repeated: "sequence" })
|
|
6222
6222
|
], Vs.prototype, "constructedValue", void 0);
|
|
6223
6223
|
Vs = f([
|
|
6224
6224
|
H({ type: M.Choice })
|
|
@@ -6263,30 +6263,30 @@ f([
|
|
|
6263
6263
|
f([
|
|
6264
6264
|
y({ type: mc, optional: !0 })
|
|
6265
6265
|
], wc.prototype, "other", void 0);
|
|
6266
|
-
let
|
|
6266
|
+
let Ki = class {
|
|
6267
6267
|
constructor(e = {}) {
|
|
6268
6268
|
Object.assign(this, e);
|
|
6269
6269
|
}
|
|
6270
6270
|
};
|
|
6271
6271
|
f([
|
|
6272
6272
|
y({ type: wc, context: 0, implicit: !0, optional: !0 })
|
|
6273
|
-
],
|
|
6273
|
+
], Ki.prototype, "rKeyId", void 0);
|
|
6274
6274
|
f([
|
|
6275
6275
|
y({ type: os, optional: !0 })
|
|
6276
|
-
],
|
|
6277
|
-
|
|
6276
|
+
], Ki.prototype, "issuerAndSerialNumber", void 0);
|
|
6277
|
+
Ki = f([
|
|
6278
6278
|
H({ type: M.Choice })
|
|
6279
|
-
],
|
|
6279
|
+
], Ki);
|
|
6280
6280
|
class af {
|
|
6281
6281
|
constructor(e = {}) {
|
|
6282
|
-
this.rid = new
|
|
6282
|
+
this.rid = new Ki(), this.encryptedKey = new it(), Object.assign(this, e);
|
|
6283
6283
|
}
|
|
6284
6284
|
}
|
|
6285
6285
|
f([
|
|
6286
|
-
y({ type:
|
|
6286
|
+
y({ type: Ki })
|
|
6287
6287
|
], af.prototype, "rid", void 0);
|
|
6288
6288
|
f([
|
|
6289
|
-
y({ type:
|
|
6289
|
+
y({ type: it })
|
|
6290
6290
|
], af.prototype, "encryptedKey", void 0);
|
|
6291
6291
|
let sa = Fl = class extends yt {
|
|
6292
6292
|
constructor(e) {
|
|
@@ -6336,7 +6336,7 @@ f([
|
|
|
6336
6336
|
y({ type: yi, context: 0 })
|
|
6337
6337
|
], cs.prototype, "originator", void 0);
|
|
6338
6338
|
f([
|
|
6339
|
-
y({ type:
|
|
6339
|
+
y({ type: it, context: 1, optional: !0 })
|
|
6340
6340
|
], cs.prototype, "ukm", void 0);
|
|
6341
6341
|
f([
|
|
6342
6342
|
y({ type: cn })
|
|
@@ -6360,7 +6360,7 @@ Zi = f([
|
|
|
6360
6360
|
], Zi);
|
|
6361
6361
|
class mo {
|
|
6362
6362
|
constructor(e = {}) {
|
|
6363
|
-
this.version = an.v0, this.rid = new Zi(), this.keyEncryptionAlgorithm = new cn(), this.encryptedKey = new
|
|
6363
|
+
this.version = an.v0, this.rid = new Zi(), this.keyEncryptionAlgorithm = new cn(), this.encryptedKey = new it(), Object.assign(this, e);
|
|
6364
6364
|
}
|
|
6365
6365
|
}
|
|
6366
6366
|
f([
|
|
@@ -6373,15 +6373,15 @@ f([
|
|
|
6373
6373
|
y({ type: cn })
|
|
6374
6374
|
], mo.prototype, "keyEncryptionAlgorithm", void 0);
|
|
6375
6375
|
f([
|
|
6376
|
-
y({ type:
|
|
6376
|
+
y({ type: it })
|
|
6377
6377
|
], mo.prototype, "encryptedKey", void 0);
|
|
6378
6378
|
class wo {
|
|
6379
6379
|
constructor(e = {}) {
|
|
6380
|
-
this.keyIdentifier = new
|
|
6380
|
+
this.keyIdentifier = new it(), Object.assign(this, e);
|
|
6381
6381
|
}
|
|
6382
6382
|
}
|
|
6383
6383
|
f([
|
|
6384
|
-
y({ type:
|
|
6384
|
+
y({ type: it })
|
|
6385
6385
|
], wo.prototype, "keyIdentifier", void 0);
|
|
6386
6386
|
f([
|
|
6387
6387
|
y({ type: b.GeneralizedTime, optional: !0 })
|
|
@@ -6391,7 +6391,7 @@ f([
|
|
|
6391
6391
|
], wo.prototype, "other", void 0);
|
|
6392
6392
|
class bo {
|
|
6393
6393
|
constructor(e = {}) {
|
|
6394
|
-
this.version = an.v4, this.kekid = new wo(), this.keyEncryptionAlgorithm = new cn(), this.encryptedKey = new
|
|
6394
|
+
this.version = an.v4, this.kekid = new wo(), this.keyEncryptionAlgorithm = new cn(), this.encryptedKey = new it(), Object.assign(this, e);
|
|
6395
6395
|
}
|
|
6396
6396
|
}
|
|
6397
6397
|
f([
|
|
@@ -6404,11 +6404,11 @@ f([
|
|
|
6404
6404
|
y({ type: cn })
|
|
6405
6405
|
], bo.prototype, "keyEncryptionAlgorithm", void 0);
|
|
6406
6406
|
f([
|
|
6407
|
-
y({ type:
|
|
6407
|
+
y({ type: it })
|
|
6408
6408
|
], bo.prototype, "encryptedKey", void 0);
|
|
6409
6409
|
class xo {
|
|
6410
6410
|
constructor(e = {}) {
|
|
6411
|
-
this.version = an.v0, this.keyEncryptionAlgorithm = new cn(), this.encryptedKey = new
|
|
6411
|
+
this.version = an.v0, this.keyEncryptionAlgorithm = new cn(), this.encryptedKey = new it(), Object.assign(this, e);
|
|
6412
6412
|
}
|
|
6413
6413
|
}
|
|
6414
6414
|
f([
|
|
@@ -6421,7 +6421,7 @@ f([
|
|
|
6421
6421
|
y({ type: cn })
|
|
6422
6422
|
], xo.prototype, "keyEncryptionAlgorithm", void 0);
|
|
6423
6423
|
f([
|
|
6424
|
-
y({ type:
|
|
6424
|
+
y({ type: it })
|
|
6425
6425
|
], xo.prototype, "encryptedKey", void 0);
|
|
6426
6426
|
class lf {
|
|
6427
6427
|
constructor(e = {}) {
|
|
@@ -6508,15 +6508,15 @@ f([
|
|
|
6508
6508
|
f([
|
|
6509
6509
|
y({ type: ca, context: 1, implicit: !0, optional: !0 })
|
|
6510
6510
|
], uf.prototype, "crls", void 0);
|
|
6511
|
-
var
|
|
6512
|
-
let
|
|
6511
|
+
var ql;
|
|
6512
|
+
let Kl = ql = class extends yt {
|
|
6513
6513
|
constructor(e) {
|
|
6514
|
-
super(e), Object.setPrototypeOf(this,
|
|
6514
|
+
super(e), Object.setPrototypeOf(this, ql.prototype);
|
|
6515
6515
|
}
|
|
6516
6516
|
};
|
|
6517
|
-
|
|
6517
|
+
Kl = ql = f([
|
|
6518
6518
|
H({ type: M.Set, itemType: as })
|
|
6519
|
-
],
|
|
6519
|
+
], Kl);
|
|
6520
6520
|
class Ao {
|
|
6521
6521
|
constructor(e = {}) {
|
|
6522
6522
|
this.version = an.v0, this.recipientInfos = new oa(), this.encryptedContentInfo = new vo(), Object.assign(this, e);
|
|
@@ -6535,9 +6535,9 @@ f([
|
|
|
6535
6535
|
y({ type: vo })
|
|
6536
6536
|
], Ao.prototype, "encryptedContentInfo", void 0);
|
|
6537
6537
|
f([
|
|
6538
|
-
y({ type:
|
|
6538
|
+
y({ type: Kl, context: 1, implicit: !0, optional: !0 })
|
|
6539
6539
|
], Ao.prototype, "unprotectedAttrs", void 0);
|
|
6540
|
-
const
|
|
6540
|
+
const Kg = "1.2.840.113549.1.7.1", Zl = "1.2.840.113549.1.7.2";
|
|
6541
6541
|
var Wl;
|
|
6542
6542
|
let la = Wl = class extends yt {
|
|
6543
6543
|
constructor(e) {
|
|
@@ -6591,7 +6591,7 @@ f([
|
|
|
6591
6591
|
Hs = f([
|
|
6592
6592
|
H({ type: M.Sequence })
|
|
6593
6593
|
], Hs);
|
|
6594
|
-
class Xg extends
|
|
6594
|
+
class Xg extends it {
|
|
6595
6595
|
}
|
|
6596
6596
|
let Wi = class {
|
|
6597
6597
|
constructor(e = {}) {
|
|
@@ -6659,14 +6659,14 @@ zn = f([
|
|
|
6659
6659
|
], zn);
|
|
6660
6660
|
class xc {
|
|
6661
6661
|
constructor(e = {}) {
|
|
6662
|
-
this.version = 1, this.privateKey = new
|
|
6662
|
+
this.version = 1, this.privateKey = new it(), Object.assign(this, e);
|
|
6663
6663
|
}
|
|
6664
6664
|
}
|
|
6665
6665
|
f([
|
|
6666
6666
|
y({ type: b.Integer })
|
|
6667
6667
|
], xc.prototype, "version", void 0);
|
|
6668
6668
|
f([
|
|
6669
|
-
y({ type:
|
|
6669
|
+
y({ type: it })
|
|
6670
6670
|
], xc.prototype, "privateKey", void 0);
|
|
6671
6671
|
f([
|
|
6672
6672
|
y({ type: zn, context: 0, optional: !0 })
|
|
@@ -6700,10 +6700,10 @@ Ft(iv);
|
|
|
6700
6700
|
Ft(sv);
|
|
6701
6701
|
const zp = new oe({
|
|
6702
6702
|
algorithm: Ac,
|
|
6703
|
-
parameters:
|
|
6703
|
+
parameters: K.serialize(vi)
|
|
6704
6704
|
}), Gp = new oe({
|
|
6705
6705
|
algorithm: ev,
|
|
6706
|
-
parameters:
|
|
6706
|
+
parameters: K.serialize(qo.toASN(new Uint8Array([218, 57, 163, 238, 94, 107, 75, 13, 50, 85, 191, 239, 149, 96, 24, 144, 175, 216, 7, 9]).buffer))
|
|
6707
6707
|
});
|
|
6708
6708
|
Ft(gi);
|
|
6709
6709
|
Ft(tv);
|
|
@@ -6719,7 +6719,7 @@ class Sc {
|
|
|
6719
6719
|
constructor(e = {}) {
|
|
6720
6720
|
this.hashAlgorithm = new oe(vi), this.maskGenAlgorithm = new oe({
|
|
6721
6721
|
algorithm: Ac,
|
|
6722
|
-
parameters:
|
|
6722
|
+
parameters: K.serialize(vi)
|
|
6723
6723
|
}), this.pSourceAlgorithm = new oe(Gp), Object.assign(this, e);
|
|
6724
6724
|
}
|
|
6725
6725
|
}
|
|
@@ -6734,13 +6734,13 @@ f([
|
|
|
6734
6734
|
], Sc.prototype, "pSourceAlgorithm", void 0);
|
|
6735
6735
|
new oe({
|
|
6736
6736
|
algorithm: Qg,
|
|
6737
|
-
parameters:
|
|
6737
|
+
parameters: K.serialize(new Sc())
|
|
6738
6738
|
});
|
|
6739
6739
|
class mi {
|
|
6740
6740
|
constructor(e = {}) {
|
|
6741
6741
|
this.hashAlgorithm = new oe(vi), this.maskGenAlgorithm = new oe({
|
|
6742
6742
|
algorithm: Ac,
|
|
6743
|
-
parameters:
|
|
6743
|
+
parameters: K.serialize(vi)
|
|
6744
6744
|
}), this.saltLength = 20, this.trailerField = 1, Object.assign(this, e);
|
|
6745
6745
|
}
|
|
6746
6746
|
}
|
|
@@ -6758,18 +6758,18 @@ f([
|
|
|
6758
6758
|
], mi.prototype, "trailerField", void 0);
|
|
6759
6759
|
new oe({
|
|
6760
6760
|
algorithm: Ps,
|
|
6761
|
-
parameters:
|
|
6761
|
+
parameters: K.serialize(new mi())
|
|
6762
6762
|
});
|
|
6763
6763
|
class _c {
|
|
6764
6764
|
constructor(e = {}) {
|
|
6765
|
-
this.digestAlgorithm = new oe(), this.digest = new
|
|
6765
|
+
this.digestAlgorithm = new oe(), this.digest = new it(), Object.assign(this, e);
|
|
6766
6766
|
}
|
|
6767
6767
|
}
|
|
6768
6768
|
f([
|
|
6769
6769
|
y({ type: oe })
|
|
6770
6770
|
], _c.prototype, "digestAlgorithm", void 0);
|
|
6771
6771
|
f([
|
|
6772
|
-
y({ type:
|
|
6772
|
+
y({ type: it })
|
|
6773
6773
|
], _c.prototype, "digest", void 0);
|
|
6774
6774
|
var Xl;
|
|
6775
6775
|
class Ec {
|
|
@@ -6999,13 +6999,13 @@ function fv(r) {
|
|
|
6999
6999
|
e[+n] = t[n];
|
|
7000
7000
|
}), e;
|
|
7001
7001
|
}
|
|
7002
|
-
function
|
|
7002
|
+
function qp(r) {
|
|
7003
7003
|
return !!r.useClass;
|
|
7004
7004
|
}
|
|
7005
7005
|
function ru(r) {
|
|
7006
7006
|
return !!r.useFactory;
|
|
7007
7007
|
}
|
|
7008
|
-
var
|
|
7008
|
+
var Kp = function() {
|
|
7009
7009
|
function r(e) {
|
|
7010
7010
|
this.wrap = e, this.reflectMethods = [
|
|
7011
7011
|
"get",
|
|
@@ -7049,7 +7049,7 @@ function rh(r) {
|
|
|
7049
7049
|
return typeof r == "object" && "token" in r && "transform" in r;
|
|
7050
7050
|
}
|
|
7051
7051
|
function dv(r) {
|
|
7052
|
-
return typeof r == "function" || r instanceof
|
|
7052
|
+
return typeof r == "function" || r instanceof Kp;
|
|
7053
7053
|
}
|
|
7054
7054
|
function Do(r) {
|
|
7055
7055
|
return !!r.useToken;
|
|
@@ -7058,7 +7058,7 @@ function $o(r) {
|
|
|
7058
7058
|
return r.useValue != null;
|
|
7059
7059
|
}
|
|
7060
7060
|
function pv(r) {
|
|
7061
|
-
return
|
|
7061
|
+
return qp(r) || $o(r) || Do(r) || ru(r);
|
|
7062
7062
|
}
|
|
7063
7063
|
var vf = function() {
|
|
7064
7064
|
function r() {
|
|
@@ -7238,7 +7238,7 @@ var bv = function(r) {
|
|
|
7238
7238
|
if (this.ensureNotDisposed(), e.options.lifecycle === dr.ResolutionScoped && t.scopedResolutions.has(e))
|
|
7239
7239
|
return t.scopedResolutions.get(e);
|
|
7240
7240
|
var n = e.options.lifecycle === dr.Singleton, i = e.options.lifecycle === dr.ContainerScoped, s = n || i, o;
|
|
7241
|
-
return $o(e.provider) ? o = e.provider.useValue : Do(e.provider) ? o = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, t)) : this.resolve(e.provider.useToken, t) :
|
|
7241
|
+
return $o(e.provider) ? o = e.provider.useValue : Do(e.provider) ? o = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, t)) : this.resolve(e.provider.useToken, t) : qp(e.provider) ? o = s ? e.instance || (e.instance = this.construct(e.provider.useClass, t)) : this.construct(e.provider.useClass, t) : ru(e.provider) ? o = e.provider.useFactory(this) : o = this.construct(e.provider, t), e.options.lifecycle === dr.ResolutionScoped && t.scopedResolutions.set(e, o), o;
|
|
7242
7242
|
}, r.prototype.resolveAll = function(e, t) {
|
|
7243
7243
|
var n = this;
|
|
7244
7244
|
t === void 0 && (t = new nh()), this.ensureNotDisposed();
|
|
@@ -7336,7 +7336,7 @@ var bv = function(r) {
|
|
|
7336
7336
|
return this.isRegistered(e) ? this._registry.getAll(e) : this.parent ? this.parent.getAllRegistrations(e) : null;
|
|
7337
7337
|
}, r.prototype.construct = function(e, t) {
|
|
7338
7338
|
var n = this;
|
|
7339
|
-
if (e instanceof
|
|
7339
|
+
if (e instanceof Kp)
|
|
7340
7340
|
return e.createProxy(function(s) {
|
|
7341
7341
|
return n.resolve(s, t);
|
|
7342
7342
|
});
|
|
@@ -7424,7 +7424,7 @@ f([
|
|
|
7424
7424
|
f([
|
|
7425
7425
|
y({ type: b.Any, context: 0 })
|
|
7426
7426
|
], Yp.prototype, "crltValue", void 0);
|
|
7427
|
-
class Jp extends
|
|
7427
|
+
class Jp extends it {
|
|
7428
7428
|
}
|
|
7429
7429
|
let Cc = class {
|
|
7430
7430
|
constructor(e = {}) {
|
|
@@ -7441,7 +7441,7 @@ var su, ou;
|
|
|
7441
7441
|
(function(r) {
|
|
7442
7442
|
r[r.v1 = 0] = "v1";
|
|
7443
7443
|
})(ou || (ou = {}));
|
|
7444
|
-
class Xp extends
|
|
7444
|
+
class Xp extends it {
|
|
7445
7445
|
}
|
|
7446
7446
|
let au = su = class extends yt {
|
|
7447
7447
|
constructor(e) {
|
|
@@ -7491,14 +7491,14 @@ f([
|
|
|
7491
7491
|
], Qp.prototype, "secretValue", void 0);
|
|
7492
7492
|
class Eo {
|
|
7493
7493
|
constructor(e = {}) {
|
|
7494
|
-
this.mac = new _c(), this.macSalt = new
|
|
7494
|
+
this.mac = new _c(), this.macSalt = new it(), this.iterations = 1, Object.assign(this, e);
|
|
7495
7495
|
}
|
|
7496
7496
|
}
|
|
7497
7497
|
f([
|
|
7498
7498
|
y({ type: _c })
|
|
7499
7499
|
], Eo.prototype, "mac", void 0);
|
|
7500
7500
|
f([
|
|
7501
|
-
y({ type:
|
|
7501
|
+
y({ type: it })
|
|
7502
7502
|
], Eo.prototype, "macSalt", void 0);
|
|
7503
7503
|
f([
|
|
7504
7504
|
y({ type: b.Integer, defaultValue: 1 })
|
|
@@ -7838,7 +7838,7 @@ class _v {
|
|
|
7838
7838
|
const Yi = "crypto.algorithmProvider";
|
|
7839
7839
|
lr.registerSingleton(Yi, _v);
|
|
7840
7840
|
var Mo;
|
|
7841
|
-
const br = "1.3.36.3.3.2.8.1.1", Ah = `${br}.1`, Sh = `${br}.2`, _h = `${br}.3`, Eh = `${br}.4`, Ih = `${br}.5`, kh = `${br}.6`, Ch = `${br}.7`, Bh = `${br}.8`, Oh = `${br}.9`, Th = `${br}.10`, Nh = `${br}.11`, Ph = `${br}.12`, jh = `${br}.13`, Rh = `${br}.14`, Uh = "brainpoolP160r1", Dh = "brainpoolP160t1", $h = "brainpoolP192r1", Mh = "brainpoolP192t1", Vh = "brainpoolP224r1", Lh = "brainpoolP224t1", Hh = "brainpoolP256r1", Fh = "brainpoolP256t1", zh = "brainpoolP320r1", Gh = "brainpoolP320t1",
|
|
7841
|
+
const br = "1.3.36.3.3.2.8.1.1", Ah = `${br}.1`, Sh = `${br}.2`, _h = `${br}.3`, Eh = `${br}.4`, Ih = `${br}.5`, kh = `${br}.6`, Ch = `${br}.7`, Bh = `${br}.8`, Oh = `${br}.9`, Th = `${br}.10`, Nh = `${br}.11`, Ph = `${br}.12`, jh = `${br}.13`, Rh = `${br}.14`, Uh = "brainpoolP160r1", Dh = "brainpoolP160t1", $h = "brainpoolP192r1", Mh = "brainpoolP192t1", Vh = "brainpoolP224r1", Lh = "brainpoolP224t1", Hh = "brainpoolP256r1", Fh = "brainpoolP256t1", zh = "brainpoolP320r1", Gh = "brainpoolP320t1", qh = "brainpoolP384r1", Kh = "brainpoolP384t1", Zh = "brainpoolP512r1", Wh = "brainpoolP512t1", Ct = "ECDSA";
|
|
7842
7842
|
let zs = Mo = class {
|
|
7843
7843
|
toAsnAlgorithm(e) {
|
|
7844
7844
|
switch (e.name.toLowerCase()) {
|
|
@@ -7899,10 +7899,10 @@ let zs = Mo = class {
|
|
|
7899
7899
|
case Gh:
|
|
7900
7900
|
t = Th;
|
|
7901
7901
|
break;
|
|
7902
|
-
case
|
|
7902
|
+
case qh:
|
|
7903
7903
|
t = Nh;
|
|
7904
7904
|
break;
|
|
7905
|
-
case
|
|
7905
|
+
case Kh:
|
|
7906
7906
|
t = Ph;
|
|
7907
7907
|
break;
|
|
7908
7908
|
case Zh:
|
|
@@ -7915,7 +7915,7 @@ let zs = Mo = class {
|
|
|
7915
7915
|
if (t)
|
|
7916
7916
|
return new oe({
|
|
7917
7917
|
algorithm: Ls,
|
|
7918
|
-
parameters:
|
|
7918
|
+
parameters: K.serialize(new zn({ namedCurve: t }))
|
|
7919
7919
|
});
|
|
7920
7920
|
}
|
|
7921
7921
|
}
|
|
@@ -7934,7 +7934,7 @@ let zs = Mo = class {
|
|
|
7934
7934
|
case Ls: {
|
|
7935
7935
|
if (!e.parameters)
|
|
7936
7936
|
throw new TypeError("Cannot get required parameters from EC algorithm");
|
|
7937
|
-
switch (
|
|
7937
|
+
switch (K.parse(e.parameters, zn).namedCurve) {
|
|
7938
7938
|
case Qf:
|
|
7939
7939
|
return { name: Ct, namedCurve: "P-256" };
|
|
7940
7940
|
case Mo.SECP256K1:
|
|
@@ -7964,9 +7964,9 @@ let zs = Mo = class {
|
|
|
7964
7964
|
case Th:
|
|
7965
7965
|
return { name: Ct, namedCurve: Gh };
|
|
7966
7966
|
case Nh:
|
|
7967
|
-
return { name: Ct, namedCurve: Kh };
|
|
7968
|
-
case Ph:
|
|
7969
7967
|
return { name: Ct, namedCurve: qh };
|
|
7968
|
+
case Ph:
|
|
7969
|
+
return { name: Ct, namedCurve: Kh };
|
|
7970
7970
|
case jh:
|
|
7971
7971
|
return { name: Ct, namedCurve: Zh };
|
|
7972
7972
|
case Rh:
|
|
@@ -7983,18 +7983,18 @@ zs = Mo = f([
|
|
|
7983
7983
|
], zs);
|
|
7984
7984
|
lr.registerSingleton(Io, zs);
|
|
7985
7985
|
const r0 = Symbol("name"), n0 = Symbol("value");
|
|
7986
|
-
class
|
|
7986
|
+
class nt {
|
|
7987
7987
|
constructor(e, t = {}, n = "") {
|
|
7988
7988
|
this[r0] = e, this[n0] = n;
|
|
7989
7989
|
for (const i in t)
|
|
7990
7990
|
this[i] = t[i];
|
|
7991
7991
|
}
|
|
7992
7992
|
}
|
|
7993
|
-
|
|
7994
|
-
|
|
7993
|
+
nt.NAME = r0;
|
|
7994
|
+
nt.VALUE = n0;
|
|
7995
7995
|
class Ev {
|
|
7996
7996
|
static toTextObject(e) {
|
|
7997
|
-
const t = new
|
|
7997
|
+
const t = new nt("Algorithm Identifier", {}, Bn.toString(e.algorithm));
|
|
7998
7998
|
if (e.parameters)
|
|
7999
7999
|
switch (e.algorithm) {
|
|
8000
8000
|
case Ls: {
|
|
@@ -8037,7 +8037,7 @@ Bn.items = {
|
|
|
8037
8037
|
[Fg]: "Code Signing",
|
|
8038
8038
|
[zg]: "E-mail Protection",
|
|
8039
8039
|
[Gg]: "Time Stamping",
|
|
8040
|
-
[
|
|
8040
|
+
[qg]: "OCSP Signing",
|
|
8041
8041
|
[Zl]: "Signed Data"
|
|
8042
8042
|
};
|
|
8043
8043
|
class Gn {
|
|
@@ -8051,8 +8051,8 @@ class Gn {
|
|
|
8051
8051
|
static serializeObj(e, t = 0) {
|
|
8052
8052
|
const n = [];
|
|
8053
8053
|
let i = this.pad(t++), s = "";
|
|
8054
|
-
const o = e[
|
|
8055
|
-
o && (s = ` ${o}`), n.push(`${i}${e[
|
|
8054
|
+
const o = e[nt.VALUE];
|
|
8055
|
+
o && (s = ` ${o}`), n.push(`${i}${e[nt.NAME]}:${s}`), i = this.pad(t);
|
|
8056
8056
|
for (const c in e) {
|
|
8057
8057
|
if (typeof c == "symbol")
|
|
8058
8058
|
continue;
|
|
@@ -8063,14 +8063,14 @@ class Gn {
|
|
|
8063
8063
|
n.push(`${i}${h}${u.toUTCString()}`);
|
|
8064
8064
|
else if (Array.isArray(u))
|
|
8065
8065
|
for (const m of u)
|
|
8066
|
-
m[
|
|
8067
|
-
else if (u instanceof
|
|
8068
|
-
u[
|
|
8066
|
+
m[nt.NAME] = c, n.push(...this.serializeObj(m, t));
|
|
8067
|
+
else if (u instanceof nt)
|
|
8068
|
+
u[nt.NAME] = c, n.push(...this.serializeObj(u, t));
|
|
8069
8069
|
else if (Y.isBufferSource(u))
|
|
8070
8070
|
c ? (n.push(`${i}${h}`), n.push(...this.serializeBufferSource(u, t + 1))) : n.push(...this.serializeBufferSource(u, t));
|
|
8071
8071
|
else if ("toTextObject" in u) {
|
|
8072
8072
|
const m = u.toTextObject();
|
|
8073
|
-
m[
|
|
8073
|
+
m[nt.NAME] = c, n.push(...this.serializeObj(m, t));
|
|
8074
8074
|
} else
|
|
8075
8075
|
throw new TypeError("Cannot serialize data in text format. Unsupported type.");
|
|
8076
8076
|
}
|
|
@@ -8099,9 +8099,9 @@ class Jn {
|
|
|
8099
8099
|
constructor(...e) {
|
|
8100
8100
|
if (e.length === 1) {
|
|
8101
8101
|
const t = e[0];
|
|
8102
|
-
this.rawData =
|
|
8102
|
+
this.rawData = K.serialize(t), this.onInit(t);
|
|
8103
8103
|
} else {
|
|
8104
|
-
const t =
|
|
8104
|
+
const t = K.parse(e[0], e[1]);
|
|
8105
8105
|
this.rawData = Y.toArrayBuffer(e[0]), this.onInit(t);
|
|
8106
8106
|
}
|
|
8107
8107
|
}
|
|
@@ -8111,7 +8111,7 @@ class Jn {
|
|
|
8111
8111
|
toString(e = "text") {
|
|
8112
8112
|
switch (e) {
|
|
8113
8113
|
case "asn":
|
|
8114
|
-
return
|
|
8114
|
+
return K.toString(this.rawData);
|
|
8115
8115
|
case "text":
|
|
8116
8116
|
return Gn.serialize(this.toTextObject());
|
|
8117
8117
|
case "hex":
|
|
@@ -8132,17 +8132,17 @@ class Jn {
|
|
|
8132
8132
|
return e[""] = this.rawData, e;
|
|
8133
8133
|
}
|
|
8134
8134
|
toTextObjectEmpty(e) {
|
|
8135
|
-
return new
|
|
8135
|
+
return new nt(this.getTextName(), {}, e);
|
|
8136
8136
|
}
|
|
8137
8137
|
}
|
|
8138
8138
|
Jn.NAME = "ASN";
|
|
8139
8139
|
class Pr extends Jn {
|
|
8140
8140
|
constructor(...e) {
|
|
8141
8141
|
let t;
|
|
8142
|
-
Y.isBufferSource(e[0]) ? t = Y.toArrayBuffer(e[0]) : t =
|
|
8142
|
+
Y.isBufferSource(e[0]) ? t = Y.toArrayBuffer(e[0]) : t = K.serialize(new Hr({
|
|
8143
8143
|
extnID: e[0],
|
|
8144
8144
|
critical: e[1],
|
|
8145
|
-
extnValue: new
|
|
8145
|
+
extnValue: new it(Y.toArrayBuffer(e[2]))
|
|
8146
8146
|
})), super(t, Hr);
|
|
8147
8147
|
}
|
|
8148
8148
|
onInit(e) {
|
|
@@ -8154,7 +8154,7 @@ class Pr extends Jn {
|
|
|
8154
8154
|
}
|
|
8155
8155
|
toTextObjectWithoutValue() {
|
|
8156
8156
|
const e = this.toTextObjectEmpty(this.critical ? "critical" : void 0);
|
|
8157
|
-
return e[
|
|
8157
|
+
return e[nt.NAME] === Pr.NAME && (e[nt.NAME] = Bn.toString(this.type)), e;
|
|
8158
8158
|
}
|
|
8159
8159
|
}
|
|
8160
8160
|
var i0;
|
|
@@ -8269,7 +8269,7 @@ class Hn {
|
|
|
8269
8269
|
const i = t[n];
|
|
8270
8270
|
this.extraNames.register(n, i);
|
|
8271
8271
|
}
|
|
8272
|
-
typeof e == "string" ? this.asn = this.fromString(e) : e instanceof Ht ? this.asn = e : Y.isBufferSource(e) ? this.asn =
|
|
8272
|
+
typeof e == "string" ? this.asn = this.fromString(e) : e instanceof Ht ? this.asn = e : Y.isBufferSource(e) ? this.asn = K.parse(e, Ht) : this.asn = this.fromJSON(e);
|
|
8273
8273
|
}
|
|
8274
8274
|
getField(e) {
|
|
8275
8275
|
const t = this.extraNames.findId(e) || mr.findId(e), n = [];
|
|
@@ -8369,7 +8369,7 @@ class Hn {
|
|
|
8369
8369
|
`).replace(/\\0d/ig, "\r").replace(/\\0g/ig, " ").replace(/\\(.)/g, "$1");
|
|
8370
8370
|
}
|
|
8371
8371
|
toArrayBuffer() {
|
|
8372
|
-
return
|
|
8372
|
+
return K.serialize(this.asn);
|
|
8373
8373
|
}
|
|
8374
8374
|
async getThumbprint(...e) {
|
|
8375
8375
|
var t;
|
|
@@ -8377,14 +8377,14 @@ class Hn {
|
|
|
8377
8377
|
return e.length >= 1 && !(!((t = e[0]) === null || t === void 0) && t.subtle) ? (i = e[0] || i, n = e[1] || Zt.get()) : n = e[0] || Zt.get(), await n.subtle.digest(i, this.toArrayBuffer());
|
|
8378
8378
|
}
|
|
8379
8379
|
}
|
|
8380
|
-
const o0 = "Cannot initialize GeneralName from ASN.1 data.", Yh = `${o0} Unsupported string format in use.`, Ov = `${o0} Value doesn't match to GUID regular expression.`, Jh = /^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i, Xh = "1.3.6.1.4.1.311.25.1", Qh = "1.3.6.1.4.1.311.20.2.3", Fc = "dns", zc = "dn", Gc = "email",
|
|
8380
|
+
const o0 = "Cannot initialize GeneralName from ASN.1 data.", Yh = `${o0} Unsupported string format in use.`, Ov = `${o0} Value doesn't match to GUID regular expression.`, Jh = /^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i, Xh = "1.3.6.1.4.1.311.25.1", Qh = "1.3.6.1.4.1.311.20.2.3", Fc = "dns", zc = "dn", Gc = "email", qc = "ip", Kc = "url", Zc = "guid", Wc = "upn", No = "id";
|
|
8381
8381
|
class $n extends Jn {
|
|
8382
8382
|
constructor(...e) {
|
|
8383
8383
|
let t;
|
|
8384
8384
|
if (e.length === 2)
|
|
8385
8385
|
switch (e[0]) {
|
|
8386
8386
|
case zc: {
|
|
8387
|
-
const n = new Hn(e[1]).toArrayBuffer(), i =
|
|
8387
|
+
const n = new Hn(e[1]).toArrayBuffer(), i = K.parse(n, Ht);
|
|
8388
8388
|
t = new De({ directoryName: i });
|
|
8389
8389
|
break;
|
|
8390
8390
|
}
|
|
@@ -8402,12 +8402,12 @@ class $n extends Jn {
|
|
|
8402
8402
|
t = new De({
|
|
8403
8403
|
otherName: new Ds({
|
|
8404
8404
|
typeId: Xh,
|
|
8405
|
-
value:
|
|
8405
|
+
value: K.serialize(new it(de.FromHex(i)))
|
|
8406
8406
|
})
|
|
8407
8407
|
});
|
|
8408
8408
|
break;
|
|
8409
8409
|
}
|
|
8410
|
-
case
|
|
8410
|
+
case qc:
|
|
8411
8411
|
t = new De({ iPAddress: e[1] });
|
|
8412
8412
|
break;
|
|
8413
8413
|
case No:
|
|
@@ -8417,18 +8417,18 @@ class $n extends Jn {
|
|
|
8417
8417
|
t = new De({
|
|
8418
8418
|
otherName: new Ds({
|
|
8419
8419
|
typeId: Qh,
|
|
8420
|
-
value:
|
|
8420
|
+
value: K.serialize(_p.toASN(e[1]))
|
|
8421
8421
|
})
|
|
8422
8422
|
});
|
|
8423
8423
|
break;
|
|
8424
8424
|
}
|
|
8425
|
-
case
|
|
8425
|
+
case Kc:
|
|
8426
8426
|
t = new De({ uniformResourceIdentifier: e[1] });
|
|
8427
8427
|
break;
|
|
8428
8428
|
default:
|
|
8429
8429
|
throw new Error("Cannot create GeneralName. Unsupported type of the name");
|
|
8430
8430
|
}
|
|
8431
|
-
else Y.isBufferSource(e[0]) ? t =
|
|
8431
|
+
else Y.isBufferSource(e[0]) ? t = K.parse(e[0], De) : t = e[0];
|
|
8432
8432
|
super(t);
|
|
8433
8433
|
}
|
|
8434
8434
|
onInit(e) {
|
|
@@ -8437,9 +8437,9 @@ class $n extends Jn {
|
|
|
8437
8437
|
else if (e.rfc822Name != null)
|
|
8438
8438
|
this.type = Gc, this.value = e.rfc822Name;
|
|
8439
8439
|
else if (e.iPAddress != null)
|
|
8440
|
-
this.type =
|
|
8440
|
+
this.type = qc, this.value = e.iPAddress;
|
|
8441
8441
|
else if (e.uniformResourceIdentifier != null)
|
|
8442
|
-
this.type =
|
|
8442
|
+
this.type = Kc, this.value = e.uniformResourceIdentifier;
|
|
8443
8443
|
else if (e.registeredID != null)
|
|
8444
8444
|
this.type = No, this.value = e.registeredID;
|
|
8445
8445
|
else if (e.directoryName != null)
|
|
@@ -8447,12 +8447,12 @@ class $n extends Jn {
|
|
|
8447
8447
|
else if (e.otherName != null)
|
|
8448
8448
|
if (e.otherName.typeId === Xh) {
|
|
8449
8449
|
this.type = Zc;
|
|
8450
|
-
const t =
|
|
8450
|
+
const t = K.parse(e.otherName.value, it), n = new RegExp(Jh, "i").exec(de.ToHex(t));
|
|
8451
8451
|
if (!n)
|
|
8452
8452
|
throw new Error(Ov);
|
|
8453
8453
|
this.value = n.slice(1).map((i, s) => s < 3 ? de.ToHex(new Uint8Array(de.FromHex(i)).reverse()) : i).join("-");
|
|
8454
8454
|
} else if (e.otherName.typeId === Qh)
|
|
8455
|
-
this.type = Wc, this.value =
|
|
8455
|
+
this.type = Wc, this.value = K.parse(e.otherName.value, Xt).toString();
|
|
8456
8456
|
else
|
|
8457
8457
|
throw new Error(Yh);
|
|
8458
8458
|
else
|
|
@@ -8470,10 +8470,10 @@ class $n extends Jn {
|
|
|
8470
8470
|
case zc:
|
|
8471
8471
|
case Fc:
|
|
8472
8472
|
case Zc:
|
|
8473
|
-
case
|
|
8473
|
+
case qc:
|
|
8474
8474
|
case No:
|
|
8475
8475
|
case Wc:
|
|
8476
|
-
case
|
|
8476
|
+
case Kc:
|
|
8477
8477
|
e = this.type.toUpperCase();
|
|
8478
8478
|
break;
|
|
8479
8479
|
case Gc:
|
|
@@ -8483,7 +8483,7 @@ class $n extends Jn {
|
|
|
8483
8483
|
throw new Error("Unsupported GeneralName type");
|
|
8484
8484
|
}
|
|
8485
8485
|
let t = this.value;
|
|
8486
|
-
return this.type === No && (t = Bn.toString(t)), new
|
|
8486
|
+
return this.type === No && (t = Bn.toString(t)), new nt(e, void 0, t);
|
|
8487
8487
|
}
|
|
8488
8488
|
}
|
|
8489
8489
|
class Gs extends Jn {
|
|
@@ -8497,12 +8497,12 @@ class Gs extends Jn {
|
|
|
8497
8497
|
if (i instanceof De)
|
|
8498
8498
|
n.push(i);
|
|
8499
8499
|
else {
|
|
8500
|
-
const s =
|
|
8500
|
+
const s = K.parse(new $n(i.type, i.value).rawData, De);
|
|
8501
8501
|
n.push(s);
|
|
8502
8502
|
}
|
|
8503
8503
|
t = new cr(n);
|
|
8504
8504
|
} else if (Y.isBufferSource(e))
|
|
8505
|
-
t =
|
|
8505
|
+
t = K.parse(e, cr);
|
|
8506
8506
|
else
|
|
8507
8507
|
throw new Error("Cannot initialize GeneralNames. Incorrect incoming arguments");
|
|
8508
8508
|
super(t);
|
|
@@ -8527,14 +8527,14 @@ class Gs extends Jn {
|
|
|
8527
8527
|
const e = super.toTextObjectEmpty();
|
|
8528
8528
|
for (const t of this.items) {
|
|
8529
8529
|
const n = t.toTextObject();
|
|
8530
|
-
let i = e[n[
|
|
8531
|
-
Array.isArray(i) || (i = [], e[n[
|
|
8530
|
+
let i = e[n[nt.NAME]];
|
|
8531
|
+
Array.isArray(i) || (i = [], e[n[nt.NAME]] = i), i.push(n);
|
|
8532
8532
|
}
|
|
8533
8533
|
return e;
|
|
8534
8534
|
}
|
|
8535
8535
|
}
|
|
8536
8536
|
Gs.NAME = "GeneralNames";
|
|
8537
|
-
const js = "-{5}",
|
|
8537
|
+
const js = "-{5}", qs = "\\n", Tv = `[^${qs}]+`, Nv = `${js}BEGIN (${Tv}(?=${js}))${js}`, Pv = `${js}END \\1${js}`, Ji = "\\n", jv = `[^:${qs}]+`, Rv = `(?:[^${qs}]+${Ji}(?: +[^${qs}]+${Ji})*)`, Uv = "[a-zA-Z0-9=+/]+", Dv = `(?:${Uv}${Ji})+`, ed = `${Nv}${Ji}(?:((?:${jv}: ${Rv})+))?${Ji}?(${Dv})${Pv}`;
|
|
8538
8538
|
class gr {
|
|
8539
8539
|
static isPem(e) {
|
|
8540
8540
|
return typeof e == "string" && new RegExp(ed, "g").test(e);
|
|
@@ -8544,7 +8544,7 @@ class gr {
|
|
|
8544
8544
|
const t = new RegExp(ed, "g"), n = [];
|
|
8545
8545
|
let i = null;
|
|
8546
8546
|
for (; i = t.exec(e); ) {
|
|
8547
|
-
const s = i[3].replace(new RegExp(`[${
|
|
8547
|
+
const s = i[3].replace(new RegExp(`[${qs}]+`, "g"), ""), o = {
|
|
8548
8548
|
type: i[1],
|
|
8549
8549
|
headers: [],
|
|
8550
8550
|
rawData: de.FromBase64(s)
|
|
@@ -8680,14 +8680,14 @@ class sn extends Fr {
|
|
|
8680
8680
|
let t, n = ["verify"], i = { hash: "SHA-256", ...this.algorithm };
|
|
8681
8681
|
e.length > 1 ? (i = e[0] || i, n = e[1] || n, t = e[2] || Zt.get()) : t = e[0] || Zt.get();
|
|
8682
8682
|
let s = this.rawData;
|
|
8683
|
-
const o =
|
|
8683
|
+
const o = K.parse(this.rawData, rn);
|
|
8684
8684
|
return o.algorithm.algorithm === Ps && (s = $v(o, s)), t.subtle.importKey("spki", s, i, !0, n);
|
|
8685
8685
|
}
|
|
8686
8686
|
onInit(e) {
|
|
8687
8687
|
const t = lr.resolve(Yi), n = this.algorithm = t.toWebAlgorithm(e.algorithm);
|
|
8688
8688
|
switch (e.algorithm.algorithm) {
|
|
8689
8689
|
case gi: {
|
|
8690
|
-
const i =
|
|
8690
|
+
const i = K.parse(e.subjectPublicKey, yf), s = Y.toUint8Array(i.modulus);
|
|
8691
8691
|
n.publicExponent = Y.toUint8Array(i.publicExponent), n.modulusLength = (s[0] ? s : s.slice(1)).byteLength << 3;
|
|
8692
8692
|
break;
|
|
8693
8693
|
}
|
|
@@ -8701,11 +8701,11 @@ class sn extends Fr {
|
|
|
8701
8701
|
async getKeyIdentifier(...e) {
|
|
8702
8702
|
let t, n = "SHA-1";
|
|
8703
8703
|
e.length === 1 ? typeof e[0] == "string" ? (n = e[0], t = Zt.get()) : t = e[0] : e.length === 2 ? (n = e[0], t = e[1]) : t = Zt.get();
|
|
8704
|
-
const i =
|
|
8704
|
+
const i = K.parse(this.rawData, rn);
|
|
8705
8705
|
return await t.subtle.digest(n, i.subjectPublicKey);
|
|
8706
8706
|
}
|
|
8707
8707
|
toTextObject() {
|
|
8708
|
-
const e = this.toTextObjectEmpty(), t =
|
|
8708
|
+
const e = this.toTextObjectEmpty(), t = K.parse(this.rawData, rn);
|
|
8709
8709
|
switch (e.Algorithm = Gn.serializeAlgorithm(t.algorithm), t.algorithm.algorithm) {
|
|
8710
8710
|
case Ls:
|
|
8711
8711
|
e["EC Point"] = t.subjectPublicKey;
|
|
@@ -8721,55 +8721,55 @@ function $v(r, e) {
|
|
|
8721
8721
|
return r.algorithm = new oe({
|
|
8722
8722
|
algorithm: gi,
|
|
8723
8723
|
parameters: null
|
|
8724
|
-
}), e =
|
|
8724
|
+
}), e = K.serialize(r), e;
|
|
8725
8725
|
}
|
|
8726
|
-
class
|
|
8726
|
+
class Ks extends Pr {
|
|
8727
8727
|
static async create(e, t = !1, n = Zt.get()) {
|
|
8728
8728
|
if ("name" in e && "serialNumber" in e)
|
|
8729
|
-
return new
|
|
8729
|
+
return new Ks(e, t);
|
|
8730
8730
|
const s = await (await sn.create(e, n)).getKeyIdentifier(n);
|
|
8731
|
-
return new
|
|
8731
|
+
return new Ks(de.ToHex(s), t);
|
|
8732
8732
|
}
|
|
8733
8733
|
constructor(...e) {
|
|
8734
8734
|
if (Y.isBufferSource(e[0]))
|
|
8735
8735
|
super(e[0]);
|
|
8736
8736
|
else if (typeof e[0] == "string") {
|
|
8737
|
-
const t = new ni({ keyIdentifier: new
|
|
8738
|
-
super(
|
|
8737
|
+
const t = new ni({ keyIdentifier: new Ku(de.FromHex(e[0])) });
|
|
8738
|
+
super(Ko, e[1], K.serialize(t));
|
|
8739
8739
|
} else {
|
|
8740
|
-
const t = e[0], n = t.name instanceof Gs ?
|
|
8740
|
+
const t = e[0], n = t.name instanceof Gs ? K.parse(t.name.rawData, cr) : t.name, i = new ni({
|
|
8741
8741
|
authorityCertIssuer: n,
|
|
8742
8742
|
authorityCertSerialNumber: de.FromHex(t.serialNumber)
|
|
8743
8743
|
});
|
|
8744
|
-
super(
|
|
8744
|
+
super(Ko, e[1], K.serialize(i));
|
|
8745
8745
|
}
|
|
8746
8746
|
}
|
|
8747
8747
|
onInit(e) {
|
|
8748
8748
|
super.onInit(e);
|
|
8749
|
-
const t =
|
|
8749
|
+
const t = K.parse(e.extnValue, ni);
|
|
8750
8750
|
t.keyIdentifier && (this.keyId = de.ToHex(t.keyIdentifier)), (t.authorityCertIssuer || t.authorityCertSerialNumber) && (this.certId = {
|
|
8751
8751
|
name: t.authorityCertIssuer || [],
|
|
8752
8752
|
serialNumber: t.authorityCertSerialNumber ? de.ToHex(t.authorityCertSerialNumber) : ""
|
|
8753
8753
|
});
|
|
8754
8754
|
}
|
|
8755
8755
|
toTextObject() {
|
|
8756
|
-
const e = this.toTextObjectWithoutValue(), t =
|
|
8756
|
+
const e = this.toTextObjectWithoutValue(), t = K.parse(this.value, ni);
|
|
8757
8757
|
return t.authorityCertIssuer && (e["Authority Issuer"] = new Gs(t.authorityCertIssuer).toTextObject()), t.authorityCertSerialNumber && (e["Authority Serial Number"] = t.authorityCertSerialNumber), t.keyIdentifier && (e[""] = t.keyIdentifier), e;
|
|
8758
8758
|
}
|
|
8759
8759
|
}
|
|
8760
|
-
|
|
8760
|
+
Ks.NAME = "Authority Key Identifier";
|
|
8761
8761
|
class a0 extends Pr {
|
|
8762
8762
|
constructor(...e) {
|
|
8763
8763
|
if (Y.isBufferSource(e[0])) {
|
|
8764
8764
|
super(e[0]);
|
|
8765
|
-
const t =
|
|
8765
|
+
const t = K.parse(this.value, Zo);
|
|
8766
8766
|
this.ca = t.cA, this.pathLength = t.pathLenConstraint;
|
|
8767
8767
|
} else {
|
|
8768
8768
|
const t = new Zo({
|
|
8769
8769
|
cA: e[0],
|
|
8770
8770
|
pathLenConstraint: e[1]
|
|
8771
8771
|
});
|
|
8772
|
-
super(kp, e[2],
|
|
8772
|
+
super(kp, e[2], K.serialize(t)), this.ca = e[0], this.pathLength = e[1];
|
|
8773
8773
|
}
|
|
8774
8774
|
}
|
|
8775
8775
|
toTextObject() {
|
|
@@ -8786,11 +8786,11 @@ class c0 extends Pr {
|
|
|
8786
8786
|
constructor(...e) {
|
|
8787
8787
|
if (Y.isBufferSource(e[0])) {
|
|
8788
8788
|
super(e[0]);
|
|
8789
|
-
const t =
|
|
8789
|
+
const t = K.parse(this.value, Xo);
|
|
8790
8790
|
this.usages = t.map((n) => n);
|
|
8791
8791
|
} else {
|
|
8792
8792
|
const t = new Xo(e[0]);
|
|
8793
|
-
super(Op, e[1],
|
|
8793
|
+
super(Op, e[1], K.serialize(t)), this.usages = e[0];
|
|
8794
8794
|
}
|
|
8795
8795
|
}
|
|
8796
8796
|
toTextObject() {
|
|
@@ -8807,15 +8807,15 @@ class l0 extends Pr {
|
|
|
8807
8807
|
constructor(...e) {
|
|
8808
8808
|
if (Y.isBufferSource(e[0])) {
|
|
8809
8809
|
super(e[0]);
|
|
8810
|
-
const t =
|
|
8810
|
+
const t = K.parse(this.value, Hc);
|
|
8811
8811
|
this.usages = t.toNumber();
|
|
8812
8812
|
} else {
|
|
8813
8813
|
const t = new Hc(e[0]);
|
|
8814
|
-
super(Tp, e[1],
|
|
8814
|
+
super(Tp, e[1], K.serialize(t)), this.usages = e[0];
|
|
8815
8815
|
}
|
|
8816
8816
|
}
|
|
8817
8817
|
toTextObject() {
|
|
8818
|
-
const e = this.toTextObjectWithoutValue(), t =
|
|
8818
|
+
const e = this.toTextObjectWithoutValue(), t = K.parse(this.value, Hc);
|
|
8819
8819
|
return e[""] = t.toJSON().join(", "), e;
|
|
8820
8820
|
}
|
|
8821
8821
|
}
|
|
@@ -8828,15 +8828,15 @@ class Tc extends Pr {
|
|
|
8828
8828
|
constructor(...e) {
|
|
8829
8829
|
if (Y.isBufferSource(e[0])) {
|
|
8830
8830
|
super(e[0]);
|
|
8831
|
-
const t =
|
|
8831
|
+
const t = K.parse(this.value, Ln);
|
|
8832
8832
|
this.keyId = de.ToHex(t);
|
|
8833
8833
|
} else {
|
|
8834
8834
|
const t = typeof e[0] == "string" ? de.FromHex(e[0]) : e[0], n = new Ln(t);
|
|
8835
|
-
super(Qu, e[1],
|
|
8835
|
+
super(Qu, e[1], K.serialize(n)), this.keyId = de.ToHex(t);
|
|
8836
8836
|
}
|
|
8837
8837
|
}
|
|
8838
8838
|
toTextObject() {
|
|
8839
|
-
const e = this.toTextObjectWithoutValue(), t =
|
|
8839
|
+
const e = this.toTextObjectWithoutValue(), t = K.parse(this.value, Ln);
|
|
8840
8840
|
return e[""] = t, e;
|
|
8841
8841
|
}
|
|
8842
8842
|
}
|
|
@@ -8847,7 +8847,7 @@ class u0 extends Pr {
|
|
|
8847
8847
|
}
|
|
8848
8848
|
onInit(e) {
|
|
8849
8849
|
super.onInit(e);
|
|
8850
|
-
const t =
|
|
8850
|
+
const t = K.parse(e.extnValue, Bl);
|
|
8851
8851
|
this.names = new Gs(t);
|
|
8852
8852
|
}
|
|
8853
8853
|
toTextObject() {
|
|
@@ -8873,18 +8873,18 @@ class f0 extends Pr {
|
|
|
8873
8873
|
var t;
|
|
8874
8874
|
if (Y.isBufferSource(e[0])) {
|
|
8875
8875
|
super(e[0]);
|
|
8876
|
-
const n =
|
|
8876
|
+
const n = K.parse(this.value, Yo);
|
|
8877
8877
|
this.policies = n.map((i) => i.policyIdentifier);
|
|
8878
8878
|
} else {
|
|
8879
8879
|
const n = e[0], i = (t = e[1]) !== null && t !== void 0 ? t : !1, s = new Yo(n.map((o) => new ac({
|
|
8880
8880
|
policyIdentifier: o
|
|
8881
8881
|
})));
|
|
8882
|
-
super(Cp, i,
|
|
8882
|
+
super(Cp, i, K.serialize(s)), this.policies = n;
|
|
8883
8883
|
}
|
|
8884
8884
|
}
|
|
8885
8885
|
toTextObject() {
|
|
8886
8886
|
const e = this.toTextObjectWithoutValue();
|
|
8887
|
-
return e.Policy = this.policies.map((t) => new
|
|
8887
|
+
return e.Policy = this.policies.map((t) => new nt("", {}, Bn.toString(t))), e;
|
|
8888
8888
|
}
|
|
8889
8889
|
}
|
|
8890
8890
|
f0.NAME = "Certificate Policies";
|
|
@@ -8900,16 +8900,16 @@ class h0 extends Pr {
|
|
|
8900
8900
|
fullName: [new De({ uniformResourceIdentifier: o })]
|
|
8901
8901
|
})
|
|
8902
8902
|
})), s = new Di(i);
|
|
8903
|
-
super(wl, e[1],
|
|
8903
|
+
super(wl, e[1], K.serialize(s));
|
|
8904
8904
|
} else {
|
|
8905
8905
|
const n = new Di(e[0]);
|
|
8906
|
-
super(wl, e[1],
|
|
8906
|
+
super(wl, e[1], K.serialize(n));
|
|
8907
8907
|
}
|
|
8908
8908
|
(t = this.distributionPoints) !== null && t !== void 0 || (this.distributionPoints = []);
|
|
8909
8909
|
}
|
|
8910
8910
|
onInit(e) {
|
|
8911
8911
|
super.onInit(e);
|
|
8912
|
-
const t =
|
|
8912
|
+
const t = K.parse(e.extnValue, Di);
|
|
8913
8913
|
this.distributionPoints = t;
|
|
8914
8914
|
}
|
|
8915
8915
|
toTextObject() {
|
|
@@ -8929,15 +8929,15 @@ class d0 extends Pr {
|
|
|
8929
8929
|
super(e[0]);
|
|
8930
8930
|
else if (e[0] instanceof ji) {
|
|
8931
8931
|
const o = new ji(e[0]);
|
|
8932
|
-
super(pl, e[1],
|
|
8932
|
+
super(pl, e[1], K.serialize(o));
|
|
8933
8933
|
} else {
|
|
8934
8934
|
const o = e[0], c = new ji();
|
|
8935
|
-
jo(c, o, $f, "ocsp"), jo(c, o, Mf, "caIssuers"), jo(c, o, Vf, "timeStamping"), jo(c, o, Lf, "caRepository"), super(pl, e[1],
|
|
8935
|
+
jo(c, o, $f, "ocsp"), jo(c, o, Mf, "caIssuers"), jo(c, o, Vf, "timeStamping"), jo(c, o, Lf, "caRepository"), super(pl, e[1], K.serialize(c));
|
|
8936
8936
|
}
|
|
8937
8937
|
(t = this.ocsp) !== null && t !== void 0 || (this.ocsp = []), (n = this.caIssuers) !== null && n !== void 0 || (this.caIssuers = []), (i = this.timeStamping) !== null && i !== void 0 || (this.timeStamping = []), (s = this.caRepository) !== null && s !== void 0 || (this.caRepository = []);
|
|
8938
8938
|
}
|
|
8939
8939
|
onInit(e) {
|
|
8940
|
-
super.onInit(e), this.ocsp = [], this.caIssuers = [], this.timeStamping = [], this.caRepository = [],
|
|
8940
|
+
super.onInit(e), this.ocsp = [], this.caIssuers = [], this.timeStamping = [], this.caRepository = [], K.parse(e.extnValue, ji).forEach((n) => {
|
|
8941
8941
|
switch (n.accessMethod) {
|
|
8942
8942
|
case $f:
|
|
8943
8943
|
this.ocsp.push(new $n(n.accessLocation));
|
|
@@ -8964,9 +8964,9 @@ function Po(r, e, t) {
|
|
|
8964
8964
|
if (t.length === 1)
|
|
8965
8965
|
r[e] = t[0].toTextObject();
|
|
8966
8966
|
else {
|
|
8967
|
-
const n = new
|
|
8967
|
+
const n = new nt("");
|
|
8968
8968
|
t.forEach((i, s) => {
|
|
8969
|
-
const o = i.toTextObject(), c = `${o[
|
|
8969
|
+
const o = i.toTextObject(), c = `${o[nt.NAME]} ${s + 1}`;
|
|
8970
8970
|
let u = n[c];
|
|
8971
8971
|
Array.isArray(u) || (u = [], n[c] = u), u.push(o);
|
|
8972
8972
|
}), r[e] = n;
|
|
@@ -8977,7 +8977,7 @@ function jo(r, e, t, n) {
|
|
|
8977
8977
|
i && (Array.isArray(i) ? i : [i]).forEach((o) => {
|
|
8978
8978
|
typeof o == "string" && (o = new $n("url", o)), r.push(new yo({
|
|
8979
8979
|
accessMethod: t,
|
|
8980
|
-
accessLocation:
|
|
8980
|
+
accessLocation: K.parse(o.rawData, De)
|
|
8981
8981
|
}));
|
|
8982
8982
|
});
|
|
8983
8983
|
}
|
|
@@ -8988,7 +8988,7 @@ class us extends Jn {
|
|
|
8988
8988
|
t = Y.toArrayBuffer(e[0]);
|
|
8989
8989
|
else {
|
|
8990
8990
|
const n = e[0], i = Array.isArray(e[1]) ? e[1].map((s) => Y.toArrayBuffer(s)) : [];
|
|
8991
|
-
t =
|
|
8991
|
+
t = K.serialize(new Sn({ type: n, values: i }));
|
|
8992
8992
|
}
|
|
8993
8993
|
super(t, Sn);
|
|
8994
8994
|
}
|
|
@@ -8997,11 +8997,11 @@ class us extends Jn {
|
|
|
8997
8997
|
}
|
|
8998
8998
|
toTextObject() {
|
|
8999
8999
|
const e = this.toTextObjectWithoutValue();
|
|
9000
|
-
return e.Value = this.values.map((t) => new
|
|
9000
|
+
return e.Value = this.values.map((t) => new nt("", { "": t })), e;
|
|
9001
9001
|
}
|
|
9002
9002
|
toTextObjectWithoutValue() {
|
|
9003
9003
|
const e = this.toTextObjectEmpty();
|
|
9004
|
-
return e[
|
|
9004
|
+
return e[nt.NAME] === us.NAME && (e[nt.NAME] = Bn.toString(this.type)), e;
|
|
9005
9005
|
}
|
|
9006
9006
|
}
|
|
9007
9007
|
us.NAME = "Attribute";
|
|
@@ -9014,19 +9014,19 @@ class p0 extends us {
|
|
|
9014
9014
|
const n = new xa({
|
|
9015
9015
|
printableString: e[0]
|
|
9016
9016
|
});
|
|
9017
|
-
super(t0, [
|
|
9017
|
+
super(t0, [K.serialize(n)]);
|
|
9018
9018
|
}
|
|
9019
9019
|
(t = this.password) !== null && t !== void 0 || (this.password = "");
|
|
9020
9020
|
}
|
|
9021
9021
|
onInit(e) {
|
|
9022
9022
|
if (super.onInit(e), this.values[0]) {
|
|
9023
|
-
const t =
|
|
9023
|
+
const t = K.parse(this.values[0], xa);
|
|
9024
9024
|
this.password = t.toString();
|
|
9025
9025
|
}
|
|
9026
9026
|
}
|
|
9027
9027
|
toTextObject() {
|
|
9028
9028
|
const e = this.toTextObjectWithoutValue();
|
|
9029
|
-
return e[
|
|
9029
|
+
return e[nt.VALUE] = this.password, e;
|
|
9030
9030
|
}
|
|
9031
9031
|
}
|
|
9032
9032
|
p0.NAME = "Challenge Password";
|
|
@@ -9038,21 +9038,21 @@ class wf extends us {
|
|
|
9038
9038
|
else {
|
|
9039
9039
|
const n = e[0], i = new hi();
|
|
9040
9040
|
for (const s of n)
|
|
9041
|
-
i.push(
|
|
9042
|
-
super(mf, [
|
|
9041
|
+
i.push(K.parse(s.rawData, Hr));
|
|
9042
|
+
super(mf, [K.serialize(i)]);
|
|
9043
9043
|
}
|
|
9044
9044
|
(t = this.items) !== null && t !== void 0 || (this.items = []);
|
|
9045
9045
|
}
|
|
9046
9046
|
onInit(e) {
|
|
9047
9047
|
if (super.onInit(e), this.values[0]) {
|
|
9048
|
-
const t =
|
|
9049
|
-
this.items = t.map((n) => jr.create(
|
|
9048
|
+
const t = K.parse(this.values[0], hi);
|
|
9049
|
+
this.items = t.map((n) => jr.create(K.serialize(n)));
|
|
9050
9050
|
}
|
|
9051
9051
|
}
|
|
9052
9052
|
toTextObject() {
|
|
9053
9053
|
const e = this.toTextObjectWithoutValue(), t = this.items.map((n) => n.toTextObject());
|
|
9054
9054
|
for (const n of t)
|
|
9055
|
-
e[n[
|
|
9055
|
+
e[n[nt.NAME]] = n;
|
|
9056
9056
|
return e;
|
|
9057
9057
|
}
|
|
9058
9058
|
}
|
|
@@ -9084,7 +9084,7 @@ let bu = Vo = class {
|
|
|
9084
9084
|
hashAlgorithm: n,
|
|
9085
9085
|
maskGenAlgorithm: new oe({
|
|
9086
9086
|
algorithm: Ac,
|
|
9087
|
-
parameters:
|
|
9087
|
+
parameters: K.serialize(n)
|
|
9088
9088
|
}),
|
|
9089
9089
|
saltLength: t
|
|
9090
9090
|
}) : null;
|
|
@@ -9124,7 +9124,7 @@ let bu = Vo = class {
|
|
|
9124
9124
|
const t = Vo.createPssParams(e.hash, e.saltLength);
|
|
9125
9125
|
if (!t)
|
|
9126
9126
|
throw new Error("Cannot create PSS parameters");
|
|
9127
|
-
return new oe({ algorithm: Ps, parameters:
|
|
9127
|
+
return new oe({ algorithm: Ps, parameters: K.serialize(t) });
|
|
9128
9128
|
} else
|
|
9129
9129
|
return new oe({ algorithm: Ps, parameters: null });
|
|
9130
9130
|
}
|
|
@@ -9144,7 +9144,7 @@ let bu = Vo = class {
|
|
|
9144
9144
|
return { name: "RSASSA-PKCS1-v1_5", hash: { name: "SHA-512" } };
|
|
9145
9145
|
case Ps:
|
|
9146
9146
|
if (e.parameters) {
|
|
9147
|
-
const t =
|
|
9147
|
+
const t = K.parse(e.parameters, mi);
|
|
9148
9148
|
return {
|
|
9149
9149
|
name: "RSA-PSS",
|
|
9150
9150
|
hash: lr.resolve(Yi).toWebAlgorithm(t.hashAlgorithm),
|
|
@@ -9213,13 +9213,13 @@ class Or {
|
|
|
9213
9213
|
toAsnSignature(e, t) {
|
|
9214
9214
|
if (e.name === "ECDSA") {
|
|
9215
9215
|
const n = e.namedCurve, i = Or.namedCurveSize.get(n) || Or.defaultNamedCurveSize, s = new ua(), o = Y.toUint8Array(t);
|
|
9216
|
-
return s.r = this.removePadding(o.slice(0, i), !0), s.s = this.removePadding(o.slice(i, i + i), !0),
|
|
9216
|
+
return s.r = this.removePadding(o.slice(0, i), !0), s.s = this.removePadding(o.slice(i, i + i), !0), K.serialize(s);
|
|
9217
9217
|
}
|
|
9218
9218
|
return null;
|
|
9219
9219
|
}
|
|
9220
9220
|
toWebSignature(e, t) {
|
|
9221
9221
|
if (e.name === "ECDSA") {
|
|
9222
|
-
const n =
|
|
9222
|
+
const n = K.parse(t, ua), i = e.namedCurve, s = Or.namedCurveSize.get(i) || Or.defaultNamedCurveSize, o = this.addPadding(s, this.removePadding(n.r)), c = this.addPadding(s, this.removePadding(n.s));
|
|
9223
9223
|
return Xy(o, c);
|
|
9224
9224
|
}
|
|
9225
9225
|
return null;
|
|
@@ -9285,9 +9285,9 @@ class Vv extends Fr {
|
|
|
9285
9285
|
Fr.isAsnEncoded(e) ? super(e, Fs) : super(e), this.tag = gr.CertificateRequestTag;
|
|
9286
9286
|
}
|
|
9287
9287
|
onInit(e) {
|
|
9288
|
-
this.tbs =
|
|
9288
|
+
this.tbs = K.serialize(e.certificationRequestInfo), this.publicKey = new sn(e.certificationRequestInfo.subjectPKInfo);
|
|
9289
9289
|
const t = lr.resolve(Yi);
|
|
9290
|
-
this.signatureAlgorithm = t.toWebAlgorithm(e.signatureAlgorithm), this.signature = e.signature, this.attributes = e.certificationRequestInfo.attributes.map((i) => Nc.create(
|
|
9290
|
+
this.signatureAlgorithm = t.toWebAlgorithm(e.signatureAlgorithm), this.signature = e.signature, this.attributes = e.certificationRequestInfo.attributes.map((i) => Nc.create(K.serialize(i)));
|
|
9291
9291
|
const n = this.getAttribute(mf);
|
|
9292
9292
|
this.extensions = [], n instanceof wf && (this.extensions = n.items), this.subjectName = new Hn(e.certificationRequestInfo.subject), this.subject = this.subjectName.toString();
|
|
9293
9293
|
}
|
|
@@ -9320,20 +9320,20 @@ class Vv extends Fr {
|
|
|
9320
9320
|
return await e.subtle.verify(this.signatureAlgorithm, n, s, this.tbs);
|
|
9321
9321
|
}
|
|
9322
9322
|
toTextObject() {
|
|
9323
|
-
const e = this.toTextObjectEmpty(), t =
|
|
9323
|
+
const e = this.toTextObjectEmpty(), t = K.parse(this.rawData, Fs), n = t.certificationRequestInfo, i = new nt("", {
|
|
9324
9324
|
Version: `${Hi[n.version]} (${n.version})`,
|
|
9325
9325
|
Subject: this.subject,
|
|
9326
9326
|
"Subject Public Key Info": this.publicKey
|
|
9327
9327
|
});
|
|
9328
9328
|
if (this.attributes.length) {
|
|
9329
|
-
const s = new
|
|
9329
|
+
const s = new nt("");
|
|
9330
9330
|
for (const o of this.attributes) {
|
|
9331
9331
|
const c = o.toTextObject();
|
|
9332
|
-
s[c[
|
|
9332
|
+
s[c[nt.NAME]] = c;
|
|
9333
9333
|
}
|
|
9334
9334
|
i.Attributes = s;
|
|
9335
9335
|
}
|
|
9336
|
-
return e.Data = i, e.Signature = new
|
|
9336
|
+
return e.Data = i, e.Signature = new nt("", {
|
|
9337
9337
|
Algorithm: Gn.serializeAlgorithm(t.signatureAlgorithm),
|
|
9338
9338
|
"": t.signature
|
|
9339
9339
|
}), e;
|
|
@@ -9346,7 +9346,7 @@ class wi extends Fr {
|
|
|
9346
9346
|
}
|
|
9347
9347
|
onInit(e) {
|
|
9348
9348
|
const t = e.tbsCertificate;
|
|
9349
|
-
this.tbs =
|
|
9349
|
+
this.tbs = K.serialize(t), this.serialNumber = de.ToHex(t.serialNumber), this.subjectName = new Hn(t.subject), this.subject = new Hn(t.subject).toString(), this.issuerName = new Hn(t.issuer), this.issuer = this.issuerName.toString();
|
|
9350
9350
|
const n = lr.resolve(Yi);
|
|
9351
9351
|
this.signatureAlgorithm = n.toWebAlgorithm(e.signatureAlgorithm), this.signature = e.signatureValue;
|
|
9352
9352
|
const i = t.validity.notBefore.utcTime || t.validity.notBefore.generalTime;
|
|
@@ -9356,7 +9356,7 @@ class wi extends Fr {
|
|
|
9356
9356
|
const s = t.validity.notAfter.utcTime || t.validity.notAfter.generalTime;
|
|
9357
9357
|
if (!s)
|
|
9358
9358
|
throw new Error("Cannot get 'notAfter' value");
|
|
9359
|
-
this.notAfter = s, this.extensions = [], t.extensions && (this.extensions = t.extensions.map((o) => jr.create(
|
|
9359
|
+
this.notAfter = s, this.extensions = [], t.extensions && (this.extensions = t.extensions.map((o) => jr.create(K.serialize(o)))), this.publicKey = new sn(t.subjectPublicKeyInfo);
|
|
9360
9360
|
}
|
|
9361
9361
|
getExtension(e) {
|
|
9362
9362
|
for (const t of this.extensions)
|
|
@@ -9411,12 +9411,12 @@ class wi extends Fr {
|
|
|
9411
9411
|
return this.subject === this.issuer && await this.verify({ signatureOnly: !0 }, e);
|
|
9412
9412
|
}
|
|
9413
9413
|
toTextObject() {
|
|
9414
|
-
const e = this.toTextObjectEmpty(), t =
|
|
9414
|
+
const e = this.toTextObjectEmpty(), t = K.parse(this.rawData, di), n = t.tbsCertificate, i = new nt("", {
|
|
9415
9415
|
Version: `${Hi[n.version]} (${n.version})`,
|
|
9416
9416
|
"Serial Number": n.serialNumber,
|
|
9417
9417
|
"Signature Algorithm": Gn.serializeAlgorithm(n.signature),
|
|
9418
9418
|
Issuer: this.issuer,
|
|
9419
|
-
Validity: new
|
|
9419
|
+
Validity: new nt("", {
|
|
9420
9420
|
"Not Before": n.validity.notBefore.getTime(),
|
|
9421
9421
|
"Not After": n.validity.notAfter.getTime()
|
|
9422
9422
|
}),
|
|
@@ -9424,14 +9424,14 @@ class wi extends Fr {
|
|
|
9424
9424
|
"Subject Public Key Info": this.publicKey
|
|
9425
9425
|
});
|
|
9426
9426
|
if (n.issuerUniqueID && (i["Issuer Unique ID"] = n.issuerUniqueID), n.subjectUniqueID && (i["Subject Unique ID"] = n.subjectUniqueID), this.extensions.length) {
|
|
9427
|
-
const s = new
|
|
9427
|
+
const s = new nt("");
|
|
9428
9428
|
for (const o of this.extensions) {
|
|
9429
9429
|
const c = o.toTextObject();
|
|
9430
|
-
s[c[
|
|
9430
|
+
s[c[nt.NAME]] = c;
|
|
9431
9431
|
}
|
|
9432
9432
|
i.Extensions = s;
|
|
9433
9433
|
}
|
|
9434
|
-
return e.Data = i, e.Signature = new
|
|
9434
|
+
return e.Data = i, e.Signature = new nt("", {
|
|
9435
9435
|
Algorithm: Gn.serializeAlgorithm(t.signatureAlgorithm),
|
|
9436
9436
|
"": t.signatureValue
|
|
9437
9437
|
}), e;
|
|
@@ -9450,22 +9450,22 @@ class Lv extends Array {
|
|
|
9450
9450
|
}
|
|
9451
9451
|
export(e) {
|
|
9452
9452
|
const t = new xn();
|
|
9453
|
-
t.version = 1, t.encapContentInfo.eContentType =
|
|
9454
|
-
single: new
|
|
9453
|
+
t.version = 1, t.encapContentInfo.eContentType = Kg, t.encapContentInfo.eContent = new qi({
|
|
9454
|
+
single: new it()
|
|
9455
9455
|
}), t.certificates = new Ms(this.map((s) => new pi({
|
|
9456
|
-
certificate:
|
|
9456
|
+
certificate: K.parse(s.rawData, di)
|
|
9457
9457
|
})));
|
|
9458
9458
|
const n = new bn({
|
|
9459
9459
|
contentType: Zl,
|
|
9460
|
-
content:
|
|
9461
|
-
}), i =
|
|
9460
|
+
content: K.serialize(t)
|
|
9461
|
+
}), i = K.serialize(n);
|
|
9462
9462
|
return e === "raw" ? i : this.toString(e);
|
|
9463
9463
|
}
|
|
9464
9464
|
import(e) {
|
|
9465
|
-
const t = Fr.toArrayBuffer(e), n =
|
|
9465
|
+
const t = Fr.toArrayBuffer(e), n = K.parse(t, bn);
|
|
9466
9466
|
if (n.contentType !== Zl)
|
|
9467
9467
|
throw new TypeError("Cannot parse CMS package. Incoming data is not a SignedData object.");
|
|
9468
|
-
const i =
|
|
9468
|
+
const i = K.parse(n.content, xn);
|
|
9469
9469
|
this.clear();
|
|
9470
9470
|
for (const s of i.certificates || [])
|
|
9471
9471
|
s.certificate && this.push(new wi(s.certificate));
|
|
@@ -9483,7 +9483,7 @@ class Lv extends Array {
|
|
|
9483
9483
|
return this.map((n) => n.toString("pem")).join(`
|
|
9484
9484
|
`);
|
|
9485
9485
|
case "asn":
|
|
9486
|
-
return
|
|
9486
|
+
return K.toString(t);
|
|
9487
9487
|
case "hex":
|
|
9488
9488
|
return de.ToHex(t);
|
|
9489
9489
|
case "base64":
|
|
@@ -9497,12 +9497,12 @@ class Lv extends Array {
|
|
|
9497
9497
|
}
|
|
9498
9498
|
}
|
|
9499
9499
|
toTextObject() {
|
|
9500
|
-
const e =
|
|
9501
|
-
return new
|
|
9500
|
+
const e = K.parse(this.export("raw"), bn), t = K.parse(e.content, xn);
|
|
9501
|
+
return new nt("X509Certificates", {
|
|
9502
9502
|
"Content Type": Bn.toString(e.contentType),
|
|
9503
|
-
Content: new
|
|
9503
|
+
Content: new nt("", {
|
|
9504
9504
|
Version: `${an[t.version]} (${t.version})`,
|
|
9505
|
-
Certificates: new
|
|
9505
|
+
Certificates: new nt("", { Certificate: this.map((i) => i.toTextObject()) })
|
|
9506
9506
|
})
|
|
9507
9507
|
});
|
|
9508
9508
|
}
|
|
@@ -9527,7 +9527,7 @@ class Hv {
|
|
|
9527
9527
|
}
|
|
9528
9528
|
async findIssuer(e, t = Zt.get()) {
|
|
9529
9529
|
if (!await e.isSelfSigned(t)) {
|
|
9530
|
-
const n = e.getExtension(
|
|
9530
|
+
const n = e.getExtension(Ko);
|
|
9531
9531
|
for (const i of this.certificates)
|
|
9532
9532
|
if (i.subject === e.issuer) {
|
|
9533
9533
|
if (n) {
|
|
@@ -9537,7 +9537,7 @@ class Hv {
|
|
|
9537
9537
|
continue;
|
|
9538
9538
|
} else if (n.certId) {
|
|
9539
9539
|
const s = i.getExtension(Xu);
|
|
9540
|
-
if (s && !(n.certId.serialNumber === i.serialNumber && Fo(
|
|
9540
|
+
if (s && !(n.certId.serialNumber === i.serialNumber && Fo(K.serialize(n.certId.name), K.serialize(s))))
|
|
9541
9541
|
continue;
|
|
9542
9542
|
}
|
|
9543
9543
|
}
|
|
@@ -9562,7 +9562,7 @@ jr.register(kp, a0);
|
|
|
9562
9562
|
jr.register(Op, c0);
|
|
9563
9563
|
jr.register(Tp, l0);
|
|
9564
9564
|
jr.register(Qu, Tc);
|
|
9565
|
-
jr.register(
|
|
9565
|
+
jr.register(Ko, Ks);
|
|
9566
9566
|
jr.register(Xu, u0);
|
|
9567
9567
|
jr.register(wl, h0);
|
|
9568
9568
|
jr.register(pl, d0);
|
|
@@ -9577,13 +9577,13 @@ Or.namedCurveSize.set("P-521", 66);
|
|
|
9577
9577
|
const me = { POS_INT: 0, NEG_INT: 1, BYTE_STRING: 2, UTF8_STRING: 3, ARRAY: 4, MAP: 5, TAG: 6, SIMPLE_FLOAT: 7 }, Et = { DATE_STRING: 0, DATE_EPOCH: 1, POS_BIGINT: 2, NEG_BIGINT: 3, DECIMAL_FRAC: 4, BIGFLOAT: 5, BASE64URL_EXPECTED: 21, BASE64_EXPECTED: 22, BASE16_EXPECTED: 23, CBOR: 24, URI: 32, BASE64URL: 33, BASE64: 34, MIME: 36, SET: 258, JSON: 262, REGEXP: 21066, SELF_DESCRIBED: 55799, INVALID_16: 65535, INVALID_32: 4294967295, INVALID_64: 0xffffffffffffffffn }, bt = { ZERO: 0, ONE: 24, TWO: 25, FOUR: 26, EIGHT: 27, INDEFINITE: 31 }, Mn = { FALSE: 20, TRUE: 21, NULL: 22, UNDEFINED: 23 };
|
|
9578
9578
|
var Es;
|
|
9579
9579
|
let Er = (Es = class {
|
|
9580
|
-
},
|
|
9580
|
+
}, He(Es, "BREAK", Symbol.for("github.com/hildjj/cbor2/break")), He(Es, "ENCODED", Symbol.for("github.com/hildjj/cbor2/cbor-encoded")), He(Es, "LENGTH", Symbol.for("github.com/hildjj/cbor2/length")), Es);
|
|
9581
9581
|
const Sa = { MIN: -(2n ** 63n), MAX: 2n ** 64n - 1n };
|
|
9582
9582
|
var vn, Qr;
|
|
9583
9583
|
let We = (vn = class {
|
|
9584
9584
|
constructor(e, t = void 0) {
|
|
9585
|
-
|
|
9586
|
-
|
|
9585
|
+
He(this, "tag");
|
|
9586
|
+
He(this, "contents");
|
|
9587
9587
|
this.tag = e, this.contents = t;
|
|
9588
9588
|
}
|
|
9589
9589
|
get noChildren() {
|
|
@@ -9653,11 +9653,11 @@ function bf(r) {
|
|
|
9653
9653
|
return Uint8Array.from(e, (t) => t.codePointAt(0));
|
|
9654
9654
|
}
|
|
9655
9655
|
const Gv = { "-": "+", _: "/" };
|
|
9656
|
-
function
|
|
9656
|
+
function qv(r) {
|
|
9657
9657
|
const e = r.replace(/[_-]/g, (t) => Gv[t]);
|
|
9658
9658
|
return bf(e.padEnd(Math.ceil(e.length / 4) * 4, "="));
|
|
9659
9659
|
}
|
|
9660
|
-
function
|
|
9660
|
+
function Kv() {
|
|
9661
9661
|
const r = new Uint8Array(4), e = new Uint32Array(r.buffer);
|
|
9662
9662
|
return !((e[0] = 1) & r[0]);
|
|
9663
9663
|
}
|
|
@@ -9678,81 +9678,81 @@ function g0(r, e) {
|
|
|
9678
9678
|
}
|
|
9679
9679
|
return 0;
|
|
9680
9680
|
}
|
|
9681
|
-
var Rn,
|
|
9681
|
+
var Rn, qt, pr, Mt, Un, et, Qn, Lo, Su, Jr, Xr;
|
|
9682
9682
|
const Ma = class Ma {
|
|
9683
9683
|
constructor(e = {}) {
|
|
9684
|
-
rr(this,
|
|
9684
|
+
rr(this, et);
|
|
9685
9685
|
rr(this, Rn);
|
|
9686
|
-
rr(this,
|
|
9686
|
+
rr(this, qt, []);
|
|
9687
9687
|
rr(this, pr, null);
|
|
9688
9688
|
rr(this, Mt, 0);
|
|
9689
9689
|
rr(this, Un, 0);
|
|
9690
9690
|
if (kt(this, Rn, { ...Ma.defaultOptions, ...e }), $(this, Rn).chunkSize < 8) throw new RangeError(`Expected size >= 8, got ${$(this, Rn).chunkSize}`);
|
|
9691
|
-
Ue(this,
|
|
9691
|
+
Ue(this, et, Qn).call(this);
|
|
9692
9692
|
}
|
|
9693
9693
|
get length() {
|
|
9694
9694
|
return $(this, Un);
|
|
9695
9695
|
}
|
|
9696
9696
|
read() {
|
|
9697
|
-
Ue(this,
|
|
9697
|
+
Ue(this, et, Lo).call(this);
|
|
9698
9698
|
const e = new Uint8Array($(this, Un));
|
|
9699
9699
|
let t = 0;
|
|
9700
|
-
for (const n of $(this,
|
|
9701
|
-
return Ue(this,
|
|
9700
|
+
for (const n of $(this, qt)) e.set(n, t), t += n.length;
|
|
9701
|
+
return Ue(this, et, Qn).call(this), e;
|
|
9702
9702
|
}
|
|
9703
9703
|
write(e) {
|
|
9704
9704
|
const t = e.length;
|
|
9705
|
-
t > Ue(this,
|
|
9705
|
+
t > Ue(this, et, Su).call(this) ? (Ue(this, et, Lo).call(this), t > $(this, Rn).chunkSize ? ($(this, qt).push(e), Ue(this, et, Qn).call(this)) : (Ue(this, et, Qn).call(this), $(this, qt)[$(this, qt).length - 1].set(e), kt(this, Mt, t))) : ($(this, qt)[$(this, qt).length - 1].set(e, $(this, Mt)), kt(this, Mt, $(this, Mt) + t)), kt(this, Un, $(this, Un) + t);
|
|
9706
9706
|
}
|
|
9707
9707
|
writeUint8(e) {
|
|
9708
|
-
Ue(this,
|
|
9708
|
+
Ue(this, et, Jr).call(this, 1), $(this, pr).setUint8($(this, Mt), e), Ue(this, et, Xr).call(this, 1);
|
|
9709
9709
|
}
|
|
9710
9710
|
writeUint16(e, t = !1) {
|
|
9711
|
-
Ue(this,
|
|
9711
|
+
Ue(this, et, Jr).call(this, 2), $(this, pr).setUint16($(this, Mt), e, t), Ue(this, et, Xr).call(this, 2);
|
|
9712
9712
|
}
|
|
9713
9713
|
writeUint32(e, t = !1) {
|
|
9714
|
-
Ue(this,
|
|
9714
|
+
Ue(this, et, Jr).call(this, 4), $(this, pr).setUint32($(this, Mt), e, t), Ue(this, et, Xr).call(this, 4);
|
|
9715
9715
|
}
|
|
9716
9716
|
writeBigUint64(e, t = !1) {
|
|
9717
|
-
Ue(this,
|
|
9717
|
+
Ue(this, et, Jr).call(this, 8), $(this, pr).setBigUint64($(this, Mt), e, t), Ue(this, et, Xr).call(this, 8);
|
|
9718
9718
|
}
|
|
9719
9719
|
writeInt16(e, t = !1) {
|
|
9720
|
-
Ue(this,
|
|
9720
|
+
Ue(this, et, Jr).call(this, 2), $(this, pr).setInt16($(this, Mt), e, t), Ue(this, et, Xr).call(this, 2);
|
|
9721
9721
|
}
|
|
9722
9722
|
writeInt32(e, t = !1) {
|
|
9723
|
-
Ue(this,
|
|
9723
|
+
Ue(this, et, Jr).call(this, 4), $(this, pr).setInt32($(this, Mt), e, t), Ue(this, et, Xr).call(this, 4);
|
|
9724
9724
|
}
|
|
9725
9725
|
writeBigInt64(e, t = !1) {
|
|
9726
|
-
Ue(this,
|
|
9726
|
+
Ue(this, et, Jr).call(this, 8), $(this, pr).setBigInt64($(this, Mt), e, t), Ue(this, et, Xr).call(this, 8);
|
|
9727
9727
|
}
|
|
9728
9728
|
writeFloat32(e, t = !1) {
|
|
9729
|
-
Ue(this,
|
|
9729
|
+
Ue(this, et, Jr).call(this, 4), $(this, pr).setFloat32($(this, Mt), e, t), Ue(this, et, Xr).call(this, 4);
|
|
9730
9730
|
}
|
|
9731
9731
|
writeFloat64(e, t = !1) {
|
|
9732
|
-
Ue(this,
|
|
9732
|
+
Ue(this, et, Jr).call(this, 8), $(this, pr).setFloat64($(this, Mt), e, t), Ue(this, et, Xr).call(this, 8);
|
|
9733
9733
|
}
|
|
9734
9734
|
clear() {
|
|
9735
|
-
kt(this, Un, 0), kt(this,
|
|
9735
|
+
kt(this, Un, 0), kt(this, qt, []), Ue(this, et, Qn).call(this);
|
|
9736
9736
|
}
|
|
9737
9737
|
};
|
|
9738
|
-
Rn = new WeakMap(),
|
|
9738
|
+
Rn = new WeakMap(), qt = new WeakMap(), pr = new WeakMap(), Mt = new WeakMap(), Un = new WeakMap(), et = new WeakSet(), Qn = function() {
|
|
9739
9739
|
const e = new Uint8Array($(this, Rn).chunkSize);
|
|
9740
|
-
$(this,
|
|
9740
|
+
$(this, qt).push(e), kt(this, Mt, 0), kt(this, pr, new DataView(e.buffer, e.byteOffset, e.byteLength));
|
|
9741
9741
|
}, Lo = function() {
|
|
9742
9742
|
if ($(this, Mt) === 0) {
|
|
9743
|
-
$(this,
|
|
9743
|
+
$(this, qt).pop();
|
|
9744
9744
|
return;
|
|
9745
9745
|
}
|
|
9746
|
-
const e = $(this,
|
|
9747
|
-
$(this,
|
|
9746
|
+
const e = $(this, qt).length - 1;
|
|
9747
|
+
$(this, qt)[e] = $(this, qt)[e].subarray(0, $(this, Mt)), kt(this, Mt, 0), kt(this, pr, null);
|
|
9748
9748
|
}, Su = function() {
|
|
9749
|
-
const e = $(this,
|
|
9750
|
-
return $(this,
|
|
9749
|
+
const e = $(this, qt).length - 1;
|
|
9750
|
+
return $(this, qt)[e].length - $(this, Mt);
|
|
9751
9751
|
}, Jr = function(e) {
|
|
9752
|
-
Ue(this,
|
|
9752
|
+
Ue(this, et, Su).call(this) < e && (Ue(this, et, Lo).call(this), Ue(this, et, Qn).call(this));
|
|
9753
9753
|
}, Xr = function(e) {
|
|
9754
9754
|
kt(this, Mt, $(this, Mt) + e), kt(this, Un, $(this, Un) + e);
|
|
9755
|
-
},
|
|
9755
|
+
}, He(Ma, "defaultOptions", { chunkSize: 4096 });
|
|
9756
9756
|
let Ea = Ma;
|
|
9757
9757
|
function v0(r, e = 0, t = !1) {
|
|
9758
9758
|
const n = r[e] & 128 ? -1 : 1, i = (r[e] & 124) >> 2, s = (r[e] & 3) << 8 | r[e + 1];
|
|
@@ -9934,7 +9934,7 @@ function jc(r, e = {}) {
|
|
|
9934
9934
|
var x0 = ((r) => (r[r.NEVER = -1] = "NEVER", r[r.PREFERRED = 0] = "PREFERRED", r[r.ALWAYS = 1] = "ALWAYS", r))(x0 || {});
|
|
9935
9935
|
const Tn = class Tn {
|
|
9936
9936
|
constructor(e) {
|
|
9937
|
-
|
|
9937
|
+
He(this, "value");
|
|
9938
9938
|
this.value = e;
|
|
9939
9939
|
}
|
|
9940
9940
|
static create(e) {
|
|
@@ -9954,16 +9954,16 @@ const Tn = class Tn {
|
|
|
9954
9954
|
return `simple(${n(this.value, t)})`;
|
|
9955
9955
|
}
|
|
9956
9956
|
};
|
|
9957
|
-
|
|
9957
|
+
He(Tn, "KnownSimple", /* @__PURE__ */ new Map([[Mn.FALSE, !1], [Mn.TRUE, !0], [Mn.NULL, null], [Mn.UNDEFINED, void 0]]));
|
|
9958
9958
|
let Ws = Tn;
|
|
9959
9959
|
const fm = new TextDecoder("utf8", { fatal: !0, ignoreBOM: !0 });
|
|
9960
|
-
var Ar, Dr,
|
|
9960
|
+
var Ar, Dr, Kt, kr, Wt, ei, Eu, ks;
|
|
9961
9961
|
const Va = class Va {
|
|
9962
9962
|
constructor(e, t) {
|
|
9963
9963
|
rr(this, Wt);
|
|
9964
9964
|
rr(this, Ar);
|
|
9965
9965
|
rr(this, Dr);
|
|
9966
|
-
rr(this,
|
|
9966
|
+
rr(this, Kt, 0);
|
|
9967
9967
|
rr(this, kr);
|
|
9968
9968
|
if (kt(this, kr, { ...Va.defaultOptions, ...t }), typeof e == "string") switch ($(this, kr).encoding) {
|
|
9969
9969
|
case "hex":
|
|
@@ -9979,34 +9979,34 @@ const Va = class Va {
|
|
|
9979
9979
|
kt(this, Dr, new DataView($(this, Ar).buffer, $(this, Ar).byteOffset, $(this, Ar).byteLength));
|
|
9980
9980
|
}
|
|
9981
9981
|
toHere(e) {
|
|
9982
|
-
return $(this, Ar).subarray(e, $(this,
|
|
9982
|
+
return $(this, Ar).subarray(e, $(this, Kt));
|
|
9983
9983
|
}
|
|
9984
9984
|
*[Symbol.iterator]() {
|
|
9985
|
-
if (yield* Ue(this, Wt, ei).call(this, 0), $(this,
|
|
9985
|
+
if (yield* Ue(this, Wt, ei).call(this, 0), $(this, Kt) !== $(this, Ar).length) throw new Error("Extra data in input");
|
|
9986
9986
|
}
|
|
9987
9987
|
};
|
|
9988
|
-
Ar = new WeakMap(), Dr = new WeakMap(),
|
|
9988
|
+
Ar = new WeakMap(), Dr = new WeakMap(), Kt = new WeakMap(), kr = new WeakMap(), Wt = new WeakSet(), ei = function* (e) {
|
|
9989
9989
|
if (e++ > $(this, kr).maxDepth) throw new Error(`Maximum depth ${$(this, kr).maxDepth} exceeded`);
|
|
9990
|
-
const t = $(this,
|
|
9990
|
+
const t = $(this, Kt), n = $(this, Dr).getUint8(Ef(this, Kt)._++), i = n >> 5, s = n & 31;
|
|
9991
9991
|
let o = s, c = !1, u = 0;
|
|
9992
9992
|
switch (s) {
|
|
9993
9993
|
case bt.ONE:
|
|
9994
|
-
if (u = 1, o = $(this, Dr).getUint8($(this,
|
|
9994
|
+
if (u = 1, o = $(this, Dr).getUint8($(this, Kt)), i === me.SIMPLE_FLOAT) {
|
|
9995
9995
|
if (o < 32) throw new Error(`Invalid simple encoding in extra byte: ${o}`);
|
|
9996
9996
|
c = !0;
|
|
9997
9997
|
} else if ($(this, kr).requirePreferred && o < 24) throw new Error(`Unexpectedly long integer encoding (1) for ${o}`);
|
|
9998
9998
|
break;
|
|
9999
9999
|
case bt.TWO:
|
|
10000
|
-
if (u = 2, i === me.SIMPLE_FLOAT) o = v0($(this, Ar), $(this,
|
|
10001
|
-
else if (o = $(this, Dr).getUint16($(this,
|
|
10000
|
+
if (u = 2, i === me.SIMPLE_FLOAT) o = v0($(this, Ar), $(this, Kt));
|
|
10001
|
+
else if (o = $(this, Dr).getUint16($(this, Kt), !1), $(this, kr).requirePreferred && o <= 255) throw new Error(`Unexpectedly long integer encoding (2) for ${o}`);
|
|
10002
10002
|
break;
|
|
10003
10003
|
case bt.FOUR:
|
|
10004
|
-
if (u = 4, i === me.SIMPLE_FLOAT) o = $(this, Dr).getFloat32($(this,
|
|
10005
|
-
else if (o = $(this, Dr).getUint32($(this,
|
|
10004
|
+
if (u = 4, i === me.SIMPLE_FLOAT) o = $(this, Dr).getFloat32($(this, Kt), !1);
|
|
10005
|
+
else if (o = $(this, Dr).getUint32($(this, Kt), !1), $(this, kr).requirePreferred && o <= 65535) throw new Error(`Unexpectedly long integer encoding (4) for ${o}`);
|
|
10006
10006
|
break;
|
|
10007
10007
|
case bt.EIGHT: {
|
|
10008
|
-
if (u = 8, i === me.SIMPLE_FLOAT) o = $(this, Dr).getFloat64($(this,
|
|
10009
|
-
else if (o = $(this, Dr).getBigUint64($(this,
|
|
10008
|
+
if (u = 8, i === me.SIMPLE_FLOAT) o = $(this, Dr).getFloat64($(this, Kt), !1);
|
|
10009
|
+
else if (o = $(this, Dr).getBigUint64($(this, Kt), !1), o <= Number.MAX_SAFE_INTEGER && (o = Number(o)), $(this, kr).requirePreferred && o <= 4294967295) throw new Error(`Unexpectedly long integer encoding (8) for ${o}`);
|
|
10010
10010
|
break;
|
|
10011
10011
|
}
|
|
10012
10012
|
case 28:
|
|
@@ -10028,7 +10028,7 @@ Ar = new WeakMap(), Dr = new WeakMap(), qt = new WeakMap(), kr = new WeakMap(),
|
|
|
10028
10028
|
default:
|
|
10029
10029
|
c = !0;
|
|
10030
10030
|
}
|
|
10031
|
-
switch (kt(this,
|
|
10031
|
+
switch (kt(this, Kt, $(this, Kt) + u), i) {
|
|
10032
10032
|
case me.POS_INT:
|
|
10033
10033
|
yield [i, s, o, t, u];
|
|
10034
10034
|
break;
|
|
@@ -10067,7 +10067,7 @@ Ar = new WeakMap(), Dr = new WeakMap(), qt = new WeakMap(), kr = new WeakMap(),
|
|
|
10067
10067
|
}
|
|
10068
10068
|
}
|
|
10069
10069
|
}, Eu = function(e) {
|
|
10070
|
-
const t = $(this, Ar).subarray($(this,
|
|
10070
|
+
const t = $(this, Ar).subarray($(this, Kt), kt(this, Kt, $(this, Kt) + e));
|
|
10071
10071
|
if (t.length !== e) throw new Error(`Unexpected end of stream reading ${e} bytes, got ${t.length}`);
|
|
10072
10072
|
return t;
|
|
10073
10073
|
}, ks = function* (e, t, n, i = !0) {
|
|
@@ -10083,21 +10083,21 @@ Ar = new WeakMap(), Dr = new WeakMap(), qt = new WeakMap(), kr = new WeakMap(),
|
|
|
10083
10083
|
}
|
|
10084
10084
|
yield o.value, yield* s;
|
|
10085
10085
|
}
|
|
10086
|
-
},
|
|
10086
|
+
}, He(Va, "defaultOptions", { maxDepth: 1024, encoding: "hex", requirePreferred: !1 });
|
|
10087
10087
|
let Ys = Va;
|
|
10088
10088
|
const hm = /* @__PURE__ */ new Map([[bt.ZERO, 1], [bt.ONE, 2], [bt.TWO, 3], [bt.FOUR, 5], [bt.EIGHT, 9]]), dm = new Uint8Array(0);
|
|
10089
10089
|
var tn, ar, en, La, A0;
|
|
10090
10090
|
let Nn = (tn = class {
|
|
10091
10091
|
constructor(e, t, n, i) {
|
|
10092
10092
|
rr(this, La);
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
|
|
10096
|
-
|
|
10097
|
-
|
|
10098
|
-
|
|
10099
|
-
|
|
10100
|
-
|
|
10093
|
+
He(this, "parent");
|
|
10094
|
+
He(this, "mt");
|
|
10095
|
+
He(this, "ai");
|
|
10096
|
+
He(this, "left");
|
|
10097
|
+
He(this, "offset");
|
|
10098
|
+
He(this, "count", 0);
|
|
10099
|
+
He(this, "children", []);
|
|
10100
|
+
He(this, "depth", 0);
|
|
10101
10101
|
rr(this, ar);
|
|
10102
10102
|
rr(this, en, null);
|
|
10103
10103
|
if ([this.mt, this.ai, , this.offset] = e, this.left = t, this.parent = n, kt(this, ar, i), n && (this.depth = n.depth + 1), this.mt === me.MAP && ($(this, ar).sortKeys || $(this, ar).rejectDuplicateKeys) && kt(this, en, []), $(this, ar).rejectStreaming && this.ai === bt.INDEFINITE) throw new Error("Streaming not supported");
|
|
@@ -10218,16 +10218,16 @@ let Nn = (tn = class {
|
|
|
10218
10218
|
if ($(this, en)) for (let i = 0; i < t; i += 2) n[i >> 1] = [e[i], e[i + 1], $(this, en)[i]];
|
|
10219
10219
|
else for (let i = 0; i < t; i += 2) n[i >> 1] = [e[i], e[i + 1], dm];
|
|
10220
10220
|
return n;
|
|
10221
|
-
},
|
|
10221
|
+
}, He(tn, "defaultDecodeOptions", { ...Ys.defaultOptions, ParentType: tn, boxed: !1, cde: !1, dcbor: !1, diagnosticSizes: x0.PREFERRED, convertUnsafeIntsToFloat: !1, pretty: !1, preferMap: !1, rejectLargeNegatives: !1, rejectBigInts: !1, rejectDuplicateKeys: !1, rejectFloats: !1, rejectInts: !1, rejectLongLoundNaN: !1, rejectLongFloats: !1, rejectNegativeZero: !1, rejectSimple: !1, rejectStreaming: !1, rejectStringsNotNormalizedAs: null, rejectSubnormals: !1, rejectUndefined: !1, rejectUnsafeFloatInts: !1, saveOriginal: !1, sortKeys: null }), He(tn, "cdeDecodeOptions", { cde: !0, rejectStreaming: !0, requirePreferred: !0, sortKeys: g0 }), He(tn, "dcborDecodeOptions", { ...tn.cdeDecodeOptions, dcbor: !0, convertUnsafeIntsToFloat: !0, rejectDuplicateKeys: !0, rejectLargeNegatives: !0, rejectLongLoundNaN: !0, rejectLongFloats: !0, rejectNegativeZero: !0, rejectSimple: !0, rejectUndefined: !0, rejectUnsafeFloatInts: !0, rejectStringsNotNormalizedAs: "NFC" }), tn);
|
|
10222
10222
|
var gd, vd;
|
|
10223
10223
|
class Iu extends (vd = Nn, gd = Er.ENCODED, vd) {
|
|
10224
10224
|
constructor(t, n, i, s) {
|
|
10225
10225
|
super(t, n, i, s);
|
|
10226
|
-
|
|
10227
|
-
|
|
10228
|
-
|
|
10229
|
-
|
|
10230
|
-
|
|
10226
|
+
He(this, "depth", 0);
|
|
10227
|
+
He(this, "leaf", !1);
|
|
10228
|
+
He(this, "value");
|
|
10229
|
+
He(this, "length");
|
|
10230
|
+
He(this, gd);
|
|
10231
10231
|
this.parent ? this.depth = this.parent.depth + 1 : this.depth = s.initialDepth, [, , this.value, , this.length] = t;
|
|
10232
10232
|
}
|
|
10233
10233
|
numBytes() {
|
|
@@ -10334,7 +10334,7 @@ function ym(r, e) {
|
|
|
10334
10334
|
`;
|
|
10335
10335
|
return o += _0(s, t), o;
|
|
10336
10336
|
}
|
|
10337
|
-
const cd = !
|
|
10337
|
+
const cd = !Kv();
|
|
10338
10338
|
function E0(r) {
|
|
10339
10339
|
if (typeof r == "object" && r) {
|
|
10340
10340
|
if (r.constructor !== Number) throw new Error(`Expected number: ${r}`);
|
|
@@ -10396,7 +10396,7 @@ el.comment = (r, e, t) => {
|
|
|
10396
10396
|
`;
|
|
10397
10397
|
return h += `${"".padStart((t + 1) * 2, " ")}${c}`.padEnd(n.minCol + 1, " "), h += `-- Bytes (Length: ${r.contents.length})
|
|
10398
10398
|
`, h += u, h;
|
|
10399
|
-
}, el.noChildren = !0, We.registerDecoder(Et.CBOR, el), We.registerDecoder(Et.URI, (r) => (Pn(r.contents), new URL(r.contents)), "URI"), Rt(URL, (r) => [Et.URI, r.toString()]), We.registerDecoder(Et.BASE64URL, (r) => (Pn(r.contents),
|
|
10399
|
+
}, el.noChildren = !0, We.registerDecoder(Et.CBOR, el), We.registerDecoder(Et.URI, (r) => (Pn(r.contents), new URL(r.contents)), "URI"), Rt(URL, (r) => [Et.URI, r.toString()]), We.registerDecoder(Et.BASE64URL, (r) => (Pn(r.contents), qv(r.contents)), "Base64url-encoded"), We.registerDecoder(Et.BASE64, (r) => (Pn(r.contents), bf(r.contents)), "Base64-encoded"), We.registerDecoder(35, (r) => (Pn(r.contents), new RegExp(r.contents)), "RegExp"), We.registerDecoder(21065, (r) => {
|
|
10400
10400
|
Pn(r.contents);
|
|
10401
10401
|
let e = r.contents.replace(new RegExp("(?<!\\\\)(?<!\\[(?:[^\\]]|\\\\\\])*)\\.", "g"), `[^
|
|
10402
10402
|
\r]`);
|
|
@@ -10799,7 +10799,7 @@ const dd = (r, e) => {
|
|
|
10799
10799
|
}
|
|
10800
10800
|
};
|
|
10801
10801
|
};
|
|
10802
|
-
function
|
|
10802
|
+
function Fe(r) {
|
|
10803
10803
|
if (!r)
|
|
10804
10804
|
return {};
|
|
10805
10805
|
const { errorMap: e, invalid_type_error: t, required_error: n, description: i } = r;
|
|
@@ -10811,7 +10811,7 @@ function He(r) {
|
|
|
10811
10811
|
return o.code === "invalid_enum_value" ? { message: m ?? c.defaultError } : typeof c.data > "u" ? { message: (u = m ?? n) !== null && u !== void 0 ? u : c.defaultError } : o.code !== "invalid_type" ? { message: c.defaultError } : { message: (h = m ?? t) !== null && h !== void 0 ? h : c.defaultError };
|
|
10812
10812
|
}, description: i };
|
|
10813
10813
|
}
|
|
10814
|
-
class
|
|
10814
|
+
class Ke {
|
|
10815
10815
|
constructor(e) {
|
|
10816
10816
|
this.spa = this.safeParseAsync, this._def = e, this.parse = this.parse.bind(this), this.safeParse = this.safeParse.bind(this), this.parseAsync = this.parseAsync.bind(this), this.safeParseAsync = this.safeParseAsync.bind(this), this.spa = this.spa.bind(this), this.refine = this.refine.bind(this), this.refinement = this.refinement.bind(this), this.superRefine = this.superRefine.bind(this), this.optional = this.optional.bind(this), this.nullable = this.nullable.bind(this), this.nullish = this.nullish.bind(this), this.array = this.array.bind(this), this.promise = this.promise.bind(this), this.or = this.or.bind(this), this.and = this.and.bind(this), this.transform = this.transform.bind(this), this.brand = this.brand.bind(this), this.default = this.default.bind(this), this.catch = this.catch.bind(this), this.describe = this.describe.bind(this), this.pipe = this.pipe.bind(this), this.readonly = this.readonly.bind(this), this.isNullable = this.isNullable.bind(this), this.isOptional = this.isOptional.bind(this);
|
|
10817
10817
|
}
|
|
@@ -10943,7 +10943,7 @@ class qe {
|
|
|
10943
10943
|
}
|
|
10944
10944
|
transform(e) {
|
|
10945
10945
|
return new Gr({
|
|
10946
|
-
...
|
|
10946
|
+
...Fe(this._def),
|
|
10947
10947
|
schema: this,
|
|
10948
10948
|
typeName: Ie.ZodEffects,
|
|
10949
10949
|
effect: { type: "transform", transform: e }
|
|
@@ -10952,7 +10952,7 @@ class qe {
|
|
|
10952
10952
|
default(e) {
|
|
10953
10953
|
const t = typeof e == "function" ? e : () => e;
|
|
10954
10954
|
return new co({
|
|
10955
|
-
...
|
|
10955
|
+
...Fe(this._def),
|
|
10956
10956
|
innerType: this,
|
|
10957
10957
|
defaultValue: t,
|
|
10958
10958
|
typeName: Ie.ZodDefault
|
|
@@ -10962,13 +10962,13 @@ class qe {
|
|
|
10962
10962
|
return new Af({
|
|
10963
10963
|
typeName: Ie.ZodBranded,
|
|
10964
10964
|
type: this,
|
|
10965
|
-
...
|
|
10965
|
+
...Fe(this._def)
|
|
10966
10966
|
});
|
|
10967
10967
|
}
|
|
10968
10968
|
catch(e) {
|
|
10969
10969
|
const t = typeof e == "function" ? e : () => e;
|
|
10970
10970
|
return new lo({
|
|
10971
|
-
...
|
|
10971
|
+
...Fe(this._def),
|
|
10972
10972
|
innerType: this,
|
|
10973
10973
|
catchValue: t,
|
|
10974
10974
|
typeName: Ie.ZodCatch
|
|
@@ -11012,7 +11012,7 @@ function T0(r) {
|
|
|
11012
11012
|
function Nm(r, e) {
|
|
11013
11013
|
return !!((e === "v4" || !e) && km.test(r) || (e === "v6" || !e) && Cm.test(r));
|
|
11014
11014
|
}
|
|
11015
|
-
class Mr extends
|
|
11015
|
+
class Mr extends Ke {
|
|
11016
11016
|
_parse(e) {
|
|
11017
11017
|
if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== se.string) {
|
|
11018
11018
|
const s = this._getOrReturnCtx(e);
|
|
@@ -11367,14 +11367,14 @@ Mr.create = (r) => {
|
|
|
11367
11367
|
checks: [],
|
|
11368
11368
|
typeName: Ie.ZodString,
|
|
11369
11369
|
coerce: (e = r == null ? void 0 : r.coerce) !== null && e !== void 0 ? e : !1,
|
|
11370
|
-
...
|
|
11370
|
+
...Fe(r)
|
|
11371
11371
|
});
|
|
11372
11372
|
};
|
|
11373
11373
|
function Pm(r, e) {
|
|
11374
11374
|
const t = (r.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, i = t > n ? t : n, s = parseInt(r.toFixed(i).replace(".", "")), o = parseInt(e.toFixed(i).replace(".", ""));
|
|
11375
11375
|
return s % o / Math.pow(10, i);
|
|
11376
11376
|
}
|
|
11377
|
-
class
|
|
11377
|
+
class qn extends Ke {
|
|
11378
11378
|
constructor() {
|
|
11379
11379
|
super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
|
|
11380
11380
|
}
|
|
@@ -11432,7 +11432,7 @@ class Kn extends qe {
|
|
|
11432
11432
|
return this.setLimit("max", e, !1, Se.toString(t));
|
|
11433
11433
|
}
|
|
11434
11434
|
setLimit(e, t, n, i) {
|
|
11435
|
-
return new
|
|
11435
|
+
return new qn({
|
|
11436
11436
|
...this._def,
|
|
11437
11437
|
checks: [
|
|
11438
11438
|
...this._def.checks,
|
|
@@ -11446,7 +11446,7 @@ class Kn extends qe {
|
|
|
11446
11446
|
});
|
|
11447
11447
|
}
|
|
11448
11448
|
_addCheck(e) {
|
|
11449
|
-
return new
|
|
11449
|
+
return new qn({
|
|
11450
11450
|
...this._def,
|
|
11451
11451
|
checks: [...this._def.checks, e]
|
|
11452
11452
|
});
|
|
@@ -11540,13 +11540,13 @@ class Kn extends qe {
|
|
|
11540
11540
|
return Number.isFinite(t) && Number.isFinite(e);
|
|
11541
11541
|
}
|
|
11542
11542
|
}
|
|
11543
|
-
|
|
11543
|
+
qn.create = (r) => new qn({
|
|
11544
11544
|
checks: [],
|
|
11545
11545
|
typeName: Ie.ZodNumber,
|
|
11546
11546
|
coerce: (r == null ? void 0 : r.coerce) || !1,
|
|
11547
|
-
...
|
|
11547
|
+
...Fe(r)
|
|
11548
11548
|
});
|
|
11549
|
-
class
|
|
11549
|
+
class Kn extends Ke {
|
|
11550
11550
|
constructor() {
|
|
11551
11551
|
super(...arguments), this.min = this.gte, this.max = this.lte;
|
|
11552
11552
|
}
|
|
@@ -11594,7 +11594,7 @@ class qn extends qe {
|
|
|
11594
11594
|
return this.setLimit("max", e, !1, Se.toString(t));
|
|
11595
11595
|
}
|
|
11596
11596
|
setLimit(e, t, n, i) {
|
|
11597
|
-
return new
|
|
11597
|
+
return new Kn({
|
|
11598
11598
|
...this._def,
|
|
11599
11599
|
checks: [
|
|
11600
11600
|
...this._def.checks,
|
|
@@ -11608,7 +11608,7 @@ class qn extends qe {
|
|
|
11608
11608
|
});
|
|
11609
11609
|
}
|
|
11610
11610
|
_addCheck(e) {
|
|
11611
|
-
return new
|
|
11611
|
+
return new Kn({
|
|
11612
11612
|
...this._def,
|
|
11613
11613
|
checks: [...this._def.checks, e]
|
|
11614
11614
|
});
|
|
@@ -11665,16 +11665,16 @@ class qn extends qe {
|
|
|
11665
11665
|
return e;
|
|
11666
11666
|
}
|
|
11667
11667
|
}
|
|
11668
|
-
|
|
11668
|
+
Kn.create = (r) => {
|
|
11669
11669
|
var e;
|
|
11670
|
-
return new
|
|
11670
|
+
return new Kn({
|
|
11671
11671
|
checks: [],
|
|
11672
11672
|
typeName: Ie.ZodBigInt,
|
|
11673
11673
|
coerce: (e = r == null ? void 0 : r.coerce) !== null && e !== void 0 ? e : !1,
|
|
11674
|
-
...
|
|
11674
|
+
...Fe(r)
|
|
11675
11675
|
});
|
|
11676
11676
|
};
|
|
11677
|
-
class Qs extends
|
|
11677
|
+
class Qs extends Ke {
|
|
11678
11678
|
_parse(e) {
|
|
11679
11679
|
if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== se.boolean) {
|
|
11680
11680
|
const n = this._getOrReturnCtx(e);
|
|
@@ -11690,9 +11690,9 @@ class Qs extends qe {
|
|
|
11690
11690
|
Qs.create = (r) => new Qs({
|
|
11691
11691
|
typeName: Ie.ZodBoolean,
|
|
11692
11692
|
coerce: (r == null ? void 0 : r.coerce) || !1,
|
|
11693
|
-
...
|
|
11693
|
+
...Fe(r)
|
|
11694
11694
|
});
|
|
11695
|
-
class xi extends
|
|
11695
|
+
class xi extends Ke {
|
|
11696
11696
|
_parse(e) {
|
|
11697
11697
|
if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== se.date) {
|
|
11698
11698
|
const s = this._getOrReturnCtx(e);
|
|
@@ -11768,9 +11768,9 @@ xi.create = (r) => new xi({
|
|
|
11768
11768
|
checks: [],
|
|
11769
11769
|
coerce: (r == null ? void 0 : r.coerce) || !1,
|
|
11770
11770
|
typeName: Ie.ZodDate,
|
|
11771
|
-
...
|
|
11771
|
+
...Fe(r)
|
|
11772
11772
|
});
|
|
11773
|
-
class Na extends
|
|
11773
|
+
class Na extends Ke {
|
|
11774
11774
|
_parse(e) {
|
|
11775
11775
|
if (this._getType(e) !== se.symbol) {
|
|
11776
11776
|
const n = this._getOrReturnCtx(e);
|
|
@@ -11785,9 +11785,9 @@ class Na extends qe {
|
|
|
11785
11785
|
}
|
|
11786
11786
|
Na.create = (r) => new Na({
|
|
11787
11787
|
typeName: Ie.ZodSymbol,
|
|
11788
|
-
...
|
|
11788
|
+
...Fe(r)
|
|
11789
11789
|
});
|
|
11790
|
-
class eo extends
|
|
11790
|
+
class eo extends Ke {
|
|
11791
11791
|
_parse(e) {
|
|
11792
11792
|
if (this._getType(e) !== se.undefined) {
|
|
11793
11793
|
const n = this._getOrReturnCtx(e);
|
|
@@ -11802,9 +11802,9 @@ class eo extends qe {
|
|
|
11802
11802
|
}
|
|
11803
11803
|
eo.create = (r) => new eo({
|
|
11804
11804
|
typeName: Ie.ZodUndefined,
|
|
11805
|
-
...
|
|
11805
|
+
...Fe(r)
|
|
11806
11806
|
});
|
|
11807
|
-
class to extends
|
|
11807
|
+
class to extends Ke {
|
|
11808
11808
|
_parse(e) {
|
|
11809
11809
|
if (this._getType(e) !== se.null) {
|
|
11810
11810
|
const n = this._getOrReturnCtx(e);
|
|
@@ -11819,9 +11819,9 @@ class to extends qe {
|
|
|
11819
11819
|
}
|
|
11820
11820
|
to.create = (r) => new to({
|
|
11821
11821
|
typeName: Ie.ZodNull,
|
|
11822
|
-
...
|
|
11822
|
+
...Fe(r)
|
|
11823
11823
|
});
|
|
11824
|
-
class Qi extends
|
|
11824
|
+
class Qi extends Ke {
|
|
11825
11825
|
constructor() {
|
|
11826
11826
|
super(...arguments), this._any = !0;
|
|
11827
11827
|
}
|
|
@@ -11831,9 +11831,9 @@ class Qi extends qe {
|
|
|
11831
11831
|
}
|
|
11832
11832
|
Qi.create = (r) => new Qi({
|
|
11833
11833
|
typeName: Ie.ZodAny,
|
|
11834
|
-
...
|
|
11834
|
+
...Fe(r)
|
|
11835
11835
|
});
|
|
11836
|
-
class ai extends
|
|
11836
|
+
class ai extends Ke {
|
|
11837
11837
|
constructor() {
|
|
11838
11838
|
super(...arguments), this._unknown = !0;
|
|
11839
11839
|
}
|
|
@@ -11843,9 +11843,9 @@ class ai extends qe {
|
|
|
11843
11843
|
}
|
|
11844
11844
|
ai.create = (r) => new ai({
|
|
11845
11845
|
typeName: Ie.ZodUnknown,
|
|
11846
|
-
...
|
|
11846
|
+
...Fe(r)
|
|
11847
11847
|
});
|
|
11848
|
-
class En extends
|
|
11848
|
+
class En extends Ke {
|
|
11849
11849
|
_parse(e) {
|
|
11850
11850
|
const t = this._getOrReturnCtx(e);
|
|
11851
11851
|
return Q(t, {
|
|
@@ -11857,9 +11857,9 @@ class En extends qe {
|
|
|
11857
11857
|
}
|
|
11858
11858
|
En.create = (r) => new En({
|
|
11859
11859
|
typeName: Ie.ZodNever,
|
|
11860
|
-
...
|
|
11860
|
+
...Fe(r)
|
|
11861
11861
|
});
|
|
11862
|
-
class Pa extends
|
|
11862
|
+
class Pa extends Ke {
|
|
11863
11863
|
_parse(e) {
|
|
11864
11864
|
if (this._getType(e) !== se.undefined) {
|
|
11865
11865
|
const n = this._getOrReturnCtx(e);
|
|
@@ -11874,9 +11874,9 @@ class Pa extends qe {
|
|
|
11874
11874
|
}
|
|
11875
11875
|
Pa.create = (r) => new Pa({
|
|
11876
11876
|
typeName: Ie.ZodVoid,
|
|
11877
|
-
...
|
|
11877
|
+
...Fe(r)
|
|
11878
11878
|
});
|
|
11879
|
-
class Lr extends
|
|
11879
|
+
class Lr extends Ke {
|
|
11880
11880
|
_parse(e) {
|
|
11881
11881
|
const { ctx: t, status: n } = this._processInputParams(e), i = this._def;
|
|
11882
11882
|
if (t.parsedType !== se.array)
|
|
@@ -11947,7 +11947,7 @@ Lr.create = (r, e) => new Lr({
|
|
|
11947
11947
|
maxLength: null,
|
|
11948
11948
|
exactLength: null,
|
|
11949
11949
|
typeName: Ie.ZodArray,
|
|
11950
|
-
...
|
|
11950
|
+
...Fe(e)
|
|
11951
11951
|
});
|
|
11952
11952
|
function Pi(r) {
|
|
11953
11953
|
if (r instanceof Ot) {
|
|
@@ -11965,7 +11965,7 @@ function Pi(r) {
|
|
|
11965
11965
|
type: Pi(r.element)
|
|
11966
11966
|
}) : r instanceof on ? on.create(Pi(r.unwrap())) : r instanceof Wn ? Wn.create(Pi(r.unwrap())) : r instanceof un ? un.create(r.items.map((e) => Pi(e))) : r;
|
|
11967
11967
|
}
|
|
11968
|
-
class Ot extends
|
|
11968
|
+
class Ot extends Ke {
|
|
11969
11969
|
constructor() {
|
|
11970
11970
|
super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
|
|
11971
11971
|
}
|
|
@@ -12236,23 +12236,23 @@ Ot.create = (r, e) => new Ot({
|
|
|
12236
12236
|
unknownKeys: "strip",
|
|
12237
12237
|
catchall: En.create(),
|
|
12238
12238
|
typeName: Ie.ZodObject,
|
|
12239
|
-
...
|
|
12239
|
+
...Fe(e)
|
|
12240
12240
|
});
|
|
12241
12241
|
Ot.strictCreate = (r, e) => new Ot({
|
|
12242
12242
|
shape: () => r,
|
|
12243
12243
|
unknownKeys: "strict",
|
|
12244
12244
|
catchall: En.create(),
|
|
12245
12245
|
typeName: Ie.ZodObject,
|
|
12246
|
-
...
|
|
12246
|
+
...Fe(e)
|
|
12247
12247
|
});
|
|
12248
12248
|
Ot.lazycreate = (r, e) => new Ot({
|
|
12249
12249
|
shape: r,
|
|
12250
12250
|
unknownKeys: "strip",
|
|
12251
12251
|
catchall: En.create(),
|
|
12252
12252
|
typeName: Ie.ZodObject,
|
|
12253
|
-
...
|
|
12253
|
+
...Fe(e)
|
|
12254
12254
|
});
|
|
12255
|
-
class ro extends
|
|
12255
|
+
class ro extends Ke {
|
|
12256
12256
|
_parse(e) {
|
|
12257
12257
|
const { ctx: t } = this._processInputParams(e), n = this._def.options;
|
|
12258
12258
|
function i(s) {
|
|
@@ -12323,10 +12323,10 @@ class ro extends qe {
|
|
|
12323
12323
|
ro.create = (r, e) => new ro({
|
|
12324
12324
|
options: r,
|
|
12325
12325
|
typeName: Ie.ZodUnion,
|
|
12326
|
-
...
|
|
12326
|
+
...Fe(e)
|
|
12327
12327
|
});
|
|
12328
12328
|
const yn = (r) => r instanceof so ? yn(r.schema) : r instanceof Gr ? yn(r.innerType()) : r instanceof oo ? [r.value] : r instanceof Zn ? r.options : r instanceof ao ? ct.objectValues(r.enum) : r instanceof co ? yn(r._def.innerType) : r instanceof eo ? [void 0] : r instanceof to ? [null] : r instanceof on ? [void 0, ...yn(r.unwrap())] : r instanceof Wn ? [null, ...yn(r.unwrap())] : r instanceof Af || r instanceof uo ? yn(r.unwrap()) : r instanceof lo ? yn(r._def.innerType) : [];
|
|
12329
|
-
class Rc extends
|
|
12329
|
+
class Rc extends Ke {
|
|
12330
12330
|
_parse(e) {
|
|
12331
12331
|
const { ctx: t } = this._processInputParams(e);
|
|
12332
12332
|
if (t.parsedType !== se.object)
|
|
@@ -12384,7 +12384,7 @@ class Rc extends qe {
|
|
|
12384
12384
|
discriminator: e,
|
|
12385
12385
|
options: t,
|
|
12386
12386
|
optionsMap: i,
|
|
12387
|
-
...
|
|
12387
|
+
...Fe(n)
|
|
12388
12388
|
});
|
|
12389
12389
|
}
|
|
12390
12390
|
}
|
|
@@ -12414,7 +12414,7 @@ function Ou(r, e) {
|
|
|
12414
12414
|
return { valid: !0, data: i };
|
|
12415
12415
|
} else return t === se.date && n === se.date && +r == +e ? { valid: !0, data: r } : { valid: !1 };
|
|
12416
12416
|
}
|
|
12417
|
-
class no extends
|
|
12417
|
+
class no extends Ke {
|
|
12418
12418
|
_parse(e) {
|
|
12419
12419
|
const { status: t, ctx: n } = this._processInputParams(e), i = (s, o) => {
|
|
12420
12420
|
if (Cu(s) || Cu(o))
|
|
@@ -12450,9 +12450,9 @@ no.create = (r, e, t) => new no({
|
|
|
12450
12450
|
left: r,
|
|
12451
12451
|
right: e,
|
|
12452
12452
|
typeName: Ie.ZodIntersection,
|
|
12453
|
-
...
|
|
12453
|
+
...Fe(t)
|
|
12454
12454
|
});
|
|
12455
|
-
class un extends
|
|
12455
|
+
class un extends Ke {
|
|
12456
12456
|
_parse(e) {
|
|
12457
12457
|
const { status: t, ctx: n } = this._processInputParams(e);
|
|
12458
12458
|
if (n.parsedType !== se.array)
|
|
@@ -12499,10 +12499,10 @@ un.create = (r, e) => {
|
|
|
12499
12499
|
items: r,
|
|
12500
12500
|
typeName: Ie.ZodTuple,
|
|
12501
12501
|
rest: null,
|
|
12502
|
-
...
|
|
12502
|
+
...Fe(e)
|
|
12503
12503
|
});
|
|
12504
12504
|
};
|
|
12505
|
-
class io extends
|
|
12505
|
+
class io extends Ke {
|
|
12506
12506
|
get keySchema() {
|
|
12507
12507
|
return this._def.keyType;
|
|
12508
12508
|
}
|
|
@@ -12530,20 +12530,20 @@ class io extends qe {
|
|
|
12530
12530
|
return this._def.valueType;
|
|
12531
12531
|
}
|
|
12532
12532
|
static create(e, t, n) {
|
|
12533
|
-
return t instanceof
|
|
12533
|
+
return t instanceof Ke ? new io({
|
|
12534
12534
|
keyType: e,
|
|
12535
12535
|
valueType: t,
|
|
12536
12536
|
typeName: Ie.ZodRecord,
|
|
12537
|
-
...
|
|
12537
|
+
...Fe(n)
|
|
12538
12538
|
}) : new io({
|
|
12539
12539
|
keyType: Mr.create(),
|
|
12540
12540
|
valueType: e,
|
|
12541
12541
|
typeName: Ie.ZodRecord,
|
|
12542
|
-
...
|
|
12542
|
+
...Fe(t)
|
|
12543
12543
|
});
|
|
12544
12544
|
}
|
|
12545
12545
|
}
|
|
12546
|
-
class ja extends
|
|
12546
|
+
class ja extends Ke {
|
|
12547
12547
|
get keySchema() {
|
|
12548
12548
|
return this._def.keyType;
|
|
12549
12549
|
}
|
|
@@ -12589,9 +12589,9 @@ ja.create = (r, e, t) => new ja({
|
|
|
12589
12589
|
valueType: e,
|
|
12590
12590
|
keyType: r,
|
|
12591
12591
|
typeName: Ie.ZodMap,
|
|
12592
|
-
...
|
|
12592
|
+
...Fe(t)
|
|
12593
12593
|
});
|
|
12594
|
-
class Ai extends
|
|
12594
|
+
class Ai extends Ke {
|
|
12595
12595
|
_parse(e) {
|
|
12596
12596
|
const { status: t, ctx: n } = this._processInputParams(e);
|
|
12597
12597
|
if (n.parsedType !== se.set)
|
|
@@ -12653,9 +12653,9 @@ Ai.create = (r, e) => new Ai({
|
|
|
12653
12653
|
minSize: null,
|
|
12654
12654
|
maxSize: null,
|
|
12655
12655
|
typeName: Ie.ZodSet,
|
|
12656
|
-
...
|
|
12656
|
+
...Fe(e)
|
|
12657
12657
|
});
|
|
12658
|
-
class $i extends
|
|
12658
|
+
class $i extends Ke {
|
|
12659
12659
|
constructor() {
|
|
12660
12660
|
super(...arguments), this.validate = this.implement;
|
|
12661
12661
|
}
|
|
@@ -12752,11 +12752,11 @@ class $i extends qe {
|
|
|
12752
12752
|
args: e || un.create([]).rest(ai.create()),
|
|
12753
12753
|
returns: t || ai.create(),
|
|
12754
12754
|
typeName: Ie.ZodFunction,
|
|
12755
|
-
...
|
|
12755
|
+
...Fe(n)
|
|
12756
12756
|
});
|
|
12757
12757
|
}
|
|
12758
12758
|
}
|
|
12759
|
-
class so extends
|
|
12759
|
+
class so extends Ke {
|
|
12760
12760
|
get schema() {
|
|
12761
12761
|
return this._def.getter();
|
|
12762
12762
|
}
|
|
@@ -12768,9 +12768,9 @@ class so extends qe {
|
|
|
12768
12768
|
so.create = (r, e) => new so({
|
|
12769
12769
|
getter: r,
|
|
12770
12770
|
typeName: Ie.ZodLazy,
|
|
12771
|
-
...
|
|
12771
|
+
...Fe(e)
|
|
12772
12772
|
});
|
|
12773
|
-
class oo extends
|
|
12773
|
+
class oo extends Ke {
|
|
12774
12774
|
_parse(e) {
|
|
12775
12775
|
if (e.data !== this._def.value) {
|
|
12776
12776
|
const t = this._getOrReturnCtx(e);
|
|
@@ -12789,16 +12789,16 @@ class oo extends qe {
|
|
|
12789
12789
|
oo.create = (r, e) => new oo({
|
|
12790
12790
|
value: r,
|
|
12791
12791
|
typeName: Ie.ZodLiteral,
|
|
12792
|
-
...
|
|
12792
|
+
...Fe(e)
|
|
12793
12793
|
});
|
|
12794
12794
|
function N0(r, e) {
|
|
12795
12795
|
return new Zn({
|
|
12796
12796
|
values: r,
|
|
12797
12797
|
typeName: Ie.ZodEnum,
|
|
12798
|
-
...
|
|
12798
|
+
...Fe(e)
|
|
12799
12799
|
});
|
|
12800
12800
|
}
|
|
12801
|
-
class Zn extends
|
|
12801
|
+
class Zn extends Ke {
|
|
12802
12802
|
constructor() {
|
|
12803
12803
|
super(...arguments), Cs.set(this, void 0);
|
|
12804
12804
|
}
|
|
@@ -12857,7 +12857,7 @@ class Zn extends qe {
|
|
|
12857
12857
|
}
|
|
12858
12858
|
Cs = /* @__PURE__ */ new WeakMap();
|
|
12859
12859
|
Zn.create = N0;
|
|
12860
|
-
class ao extends
|
|
12860
|
+
class ao extends Ke {
|
|
12861
12861
|
constructor() {
|
|
12862
12862
|
super(...arguments), Bs.set(this, void 0);
|
|
12863
12863
|
}
|
|
@@ -12889,9 +12889,9 @@ Bs = /* @__PURE__ */ new WeakMap();
|
|
|
12889
12889
|
ao.create = (r, e) => new ao({
|
|
12890
12890
|
values: r,
|
|
12891
12891
|
typeName: Ie.ZodNativeEnum,
|
|
12892
|
-
...
|
|
12892
|
+
...Fe(e)
|
|
12893
12893
|
});
|
|
12894
|
-
class es extends
|
|
12894
|
+
class es extends Ke {
|
|
12895
12895
|
unwrap() {
|
|
12896
12896
|
return this._def.type;
|
|
12897
12897
|
}
|
|
@@ -12913,9 +12913,9 @@ class es extends qe {
|
|
|
12913
12913
|
es.create = (r, e) => new es({
|
|
12914
12914
|
type: r,
|
|
12915
12915
|
typeName: Ie.ZodPromise,
|
|
12916
|
-
...
|
|
12916
|
+
...Fe(e)
|
|
12917
12917
|
});
|
|
12918
|
-
class Gr extends
|
|
12918
|
+
class Gr extends Ke {
|
|
12919
12919
|
innerType() {
|
|
12920
12920
|
return this._def.schema;
|
|
12921
12921
|
}
|
|
@@ -12996,15 +12996,15 @@ Gr.create = (r, e, t) => new Gr({
|
|
|
12996
12996
|
schema: r,
|
|
12997
12997
|
typeName: Ie.ZodEffects,
|
|
12998
12998
|
effect: e,
|
|
12999
|
-
...
|
|
12999
|
+
...Fe(t)
|
|
13000
13000
|
});
|
|
13001
13001
|
Gr.createWithPreprocess = (r, e, t) => new Gr({
|
|
13002
13002
|
schema: e,
|
|
13003
13003
|
effect: { type: "preprocess", transform: r },
|
|
13004
13004
|
typeName: Ie.ZodEffects,
|
|
13005
|
-
...
|
|
13005
|
+
...Fe(t)
|
|
13006
13006
|
});
|
|
13007
|
-
class on extends
|
|
13007
|
+
class on extends Ke {
|
|
13008
13008
|
_parse(e) {
|
|
13009
13009
|
return this._getType(e) === se.undefined ? ur(void 0) : this._def.innerType._parse(e);
|
|
13010
13010
|
}
|
|
@@ -13015,9 +13015,9 @@ class on extends qe {
|
|
|
13015
13015
|
on.create = (r, e) => new on({
|
|
13016
13016
|
innerType: r,
|
|
13017
13017
|
typeName: Ie.ZodOptional,
|
|
13018
|
-
...
|
|
13018
|
+
...Fe(e)
|
|
13019
13019
|
});
|
|
13020
|
-
class Wn extends
|
|
13020
|
+
class Wn extends Ke {
|
|
13021
13021
|
_parse(e) {
|
|
13022
13022
|
return this._getType(e) === se.null ? ur(null) : this._def.innerType._parse(e);
|
|
13023
13023
|
}
|
|
@@ -13028,9 +13028,9 @@ class Wn extends qe {
|
|
|
13028
13028
|
Wn.create = (r, e) => new Wn({
|
|
13029
13029
|
innerType: r,
|
|
13030
13030
|
typeName: Ie.ZodNullable,
|
|
13031
|
-
...
|
|
13031
|
+
...Fe(e)
|
|
13032
13032
|
});
|
|
13033
|
-
class co extends
|
|
13033
|
+
class co extends Ke {
|
|
13034
13034
|
_parse(e) {
|
|
13035
13035
|
const { ctx: t } = this._processInputParams(e);
|
|
13036
13036
|
let n = t.data;
|
|
@@ -13048,9 +13048,9 @@ co.create = (r, e) => new co({
|
|
|
13048
13048
|
innerType: r,
|
|
13049
13049
|
typeName: Ie.ZodDefault,
|
|
13050
13050
|
defaultValue: typeof e.default == "function" ? e.default : () => e.default,
|
|
13051
|
-
...
|
|
13051
|
+
...Fe(e)
|
|
13052
13052
|
});
|
|
13053
|
-
class lo extends
|
|
13053
|
+
class lo extends Ke {
|
|
13054
13054
|
_parse(e) {
|
|
13055
13055
|
const { ctx: t } = this._processInputParams(e), n = {
|
|
13056
13056
|
...t,
|
|
@@ -13091,9 +13091,9 @@ lo.create = (r, e) => new lo({
|
|
|
13091
13091
|
innerType: r,
|
|
13092
13092
|
typeName: Ie.ZodCatch,
|
|
13093
13093
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
13094
|
-
...
|
|
13094
|
+
...Fe(e)
|
|
13095
13095
|
});
|
|
13096
|
-
class Ra extends
|
|
13096
|
+
class Ra extends Ke {
|
|
13097
13097
|
_parse(e) {
|
|
13098
13098
|
if (this._getType(e) !== se.nan) {
|
|
13099
13099
|
const n = this._getOrReturnCtx(e);
|
|
@@ -13108,10 +13108,10 @@ class Ra extends qe {
|
|
|
13108
13108
|
}
|
|
13109
13109
|
Ra.create = (r) => new Ra({
|
|
13110
13110
|
typeName: Ie.ZodNaN,
|
|
13111
|
-
...
|
|
13111
|
+
...Fe(r)
|
|
13112
13112
|
});
|
|
13113
13113
|
const jm = Symbol("zod_brand");
|
|
13114
|
-
class Af extends
|
|
13114
|
+
class Af extends Ke {
|
|
13115
13115
|
_parse(e) {
|
|
13116
13116
|
const { ctx: t } = this._processInputParams(e), n = t.data;
|
|
13117
13117
|
return this._def.type._parse({
|
|
@@ -13124,7 +13124,7 @@ class Af extends qe {
|
|
|
13124
13124
|
return this._def.type;
|
|
13125
13125
|
}
|
|
13126
13126
|
}
|
|
13127
|
-
class ko extends
|
|
13127
|
+
class ko extends Ke {
|
|
13128
13128
|
_parse(e) {
|
|
13129
13129
|
const { status: t, ctx: n } = this._processInputParams(e);
|
|
13130
13130
|
if (n.common.async)
|
|
@@ -13164,7 +13164,7 @@ class ko extends qe {
|
|
|
13164
13164
|
});
|
|
13165
13165
|
}
|
|
13166
13166
|
}
|
|
13167
|
-
class uo extends
|
|
13167
|
+
class uo extends Ke {
|
|
13168
13168
|
_parse(e) {
|
|
13169
13169
|
const t = this._def.innerType._parse(e), n = (i) => (Js(i) && (i.value = Object.freeze(i.value)), i);
|
|
13170
13170
|
return Xs(t) ? t.then((i) => n(i)) : n(t);
|
|
@@ -13176,7 +13176,7 @@ class uo extends qe {
|
|
|
13176
13176
|
uo.create = (r, e) => new uo({
|
|
13177
13177
|
innerType: r,
|
|
13178
13178
|
typeName: Ie.ZodReadonly,
|
|
13179
|
-
...
|
|
13179
|
+
...Fe(e)
|
|
13180
13180
|
});
|
|
13181
13181
|
function P0(r, e = {}, t) {
|
|
13182
13182
|
return r ? Qi.create().superRefine((n, i) => {
|
|
@@ -13196,14 +13196,14 @@ var Ie;
|
|
|
13196
13196
|
})(Ie || (Ie = {}));
|
|
13197
13197
|
const Um = (r, e = {
|
|
13198
13198
|
message: `Input not instance of ${r.name}`
|
|
13199
|
-
}) => P0((t) => t instanceof r, e), j0 = Mr.create, R0 =
|
|
13199
|
+
}) => P0((t) => t instanceof r, e), j0 = Mr.create, R0 = qn.create, Dm = Ra.create, $m = Kn.create, U0 = Qs.create, Mm = xi.create, Vm = Na.create, Lm = eo.create, Hm = to.create, Fm = Qi.create, zm = ai.create, Gm = En.create, qm = Pa.create, Km = Lr.create, Zm = Ot.create, Wm = Ot.strictCreate, Ym = ro.create, Jm = Rc.create, Xm = no.create, Qm = un.create, e1 = io.create, t1 = ja.create, r1 = Ai.create, n1 = $i.create, i1 = so.create, s1 = oo.create, o1 = Zn.create, a1 = ao.create, c1 = es.create, pd = Gr.create, l1 = on.create, u1 = Wn.create, f1 = Gr.createWithPreprocess, h1 = ko.create, d1 = () => j0().optional(), p1 = () => R0().optional(), y1 = () => U0().optional(), g1 = {
|
|
13200
13200
|
string: (r) => Mr.create({ ...r, coerce: !0 }),
|
|
13201
|
-
number: (r) =>
|
|
13201
|
+
number: (r) => qn.create({ ...r, coerce: !0 }),
|
|
13202
13202
|
boolean: (r) => Qs.create({
|
|
13203
13203
|
...r,
|
|
13204
13204
|
coerce: !0
|
|
13205
13205
|
}),
|
|
13206
|
-
bigint: (r) =>
|
|
13206
|
+
bigint: (r) => Kn.create({ ...r, coerce: !0 }),
|
|
13207
13207
|
date: (r) => xi.create({ ...r, coerce: !0 })
|
|
13208
13208
|
}, v1 = ke;
|
|
13209
13209
|
var Bt = /* @__PURE__ */ Object.freeze({
|
|
@@ -13230,11 +13230,11 @@ var Bt = /* @__PURE__ */ Object.freeze({
|
|
|
13230
13230
|
},
|
|
13231
13231
|
ZodParsedType: se,
|
|
13232
13232
|
getParsedType: jn,
|
|
13233
|
-
ZodType:
|
|
13233
|
+
ZodType: Ke,
|
|
13234
13234
|
datetimeRegex: T0,
|
|
13235
13235
|
ZodString: Mr,
|
|
13236
|
-
ZodNumber:
|
|
13237
|
-
ZodBigInt:
|
|
13236
|
+
ZodNumber: qn,
|
|
13237
|
+
ZodBigInt: Kn,
|
|
13238
13238
|
ZodBoolean: Qs,
|
|
13239
13239
|
ZodDate: xi,
|
|
13240
13240
|
ZodSymbol: Na,
|
|
@@ -13271,15 +13271,15 @@ var Bt = /* @__PURE__ */ Object.freeze({
|
|
|
13271
13271
|
ZodPipeline: ko,
|
|
13272
13272
|
ZodReadonly: uo,
|
|
13273
13273
|
custom: P0,
|
|
13274
|
-
Schema:
|
|
13275
|
-
ZodSchema:
|
|
13274
|
+
Schema: Ke,
|
|
13275
|
+
ZodSchema: Ke,
|
|
13276
13276
|
late: Rm,
|
|
13277
13277
|
get ZodFirstPartyTypeKind() {
|
|
13278
13278
|
return Ie;
|
|
13279
13279
|
},
|
|
13280
13280
|
coerce: g1,
|
|
13281
13281
|
any: Fm,
|
|
13282
|
-
array:
|
|
13282
|
+
array: Km,
|
|
13283
13283
|
bigint: $m,
|
|
13284
13284
|
boolean: U0,
|
|
13285
13285
|
date: Mm,
|
|
@@ -13316,7 +13316,7 @@ var Bt = /* @__PURE__ */ Object.freeze({
|
|
|
13316
13316
|
undefined: Lm,
|
|
13317
13317
|
union: Ym,
|
|
13318
13318
|
unknown: zm,
|
|
13319
|
-
void:
|
|
13319
|
+
void: qm,
|
|
13320
13320
|
NEVER: v1,
|
|
13321
13321
|
ZodIssueCode: F,
|
|
13322
13322
|
quotelessJson: gm,
|
|
@@ -13454,7 +13454,7 @@ var D0 = { exports: {} };
|
|
|
13454
13454
|
const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13455
13455
|
__proto__: null,
|
|
13456
13456
|
default: C1
|
|
13457
|
-
}, Symbol.toStringTag, { value: "Module" })), O1 = /* @__PURE__ */
|
|
13457
|
+
}, Symbol.toStringTag, { value: "Module" })), O1 = /* @__PURE__ */ Ky(B1);
|
|
13458
13458
|
(function(r) {
|
|
13459
13459
|
(function(e) {
|
|
13460
13460
|
var t = function(l) {
|
|
@@ -13481,14 +13481,14 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13481
13481
|
return A(l, p, d, a, 32);
|
|
13482
13482
|
}
|
|
13483
13483
|
function P(l, p, d, a) {
|
|
13484
|
-
for (var g = a[0] & 255 | (a[1] & 255) << 8 | (a[2] & 255) << 16 | (a[3] & 255) << 24, S = d[0] & 255 | (d[1] & 255) << 8 | (d[2] & 255) << 16 | (d[3] & 255) << 24, E = d[4] & 255 | (d[5] & 255) << 8 | (d[6] & 255) << 16 | (d[7] & 255) << 24, U = d[8] & 255 | (d[9] & 255) << 8 | (d[10] & 255) << 16 | (d[11] & 255) << 24, z = d[12] & 255 | (d[13] & 255) << 8 | (d[14] & 255) << 16 | (d[15] & 255) << 24, we = a[4] & 255 | (a[5] & 255) << 8 | (a[6] & 255) << 16 | (a[7] & 255) << 24, X = p[0] & 255 | (p[1] & 255) << 8 | (p[2] & 255) << 16 | (p[3] & 255) << 24, ut = p[4] & 255 | (p[5] & 255) << 8 | (p[6] & 255) << 16 | (p[7] & 255) << 24, le = p[8] & 255 | (p[9] & 255) << 8 | (p[10] & 255) << 16 | (p[11] & 255) << 24, Ce = p[12] & 255 | (p[13] & 255) << 8 | (p[14] & 255) << 16 | (p[15] & 255) << 24, Be = a[8] & 255 | (a[9] & 255) << 8 | (a[10] & 255) << 16 | (a[11] & 255) << 24,
|
|
13485
|
-
w = pe + _e | 0, ve ^= w << 7 | w >>> 25, w = ve + pe | 0, V ^= w << 9 | w >>> 23, w = V + ve | 0, _e ^= w << 13 | w >>> 19, w = _e + V | 0, pe ^= w << 18 | w >>> 14, w = J + Ae | 0, j ^= w << 7 | w >>> 25, w = j + J | 0,
|
|
13486
|
-
pe = pe + g | 0, Ae = Ae + S | 0, re = re + E | 0, ye = ye + U | 0, ve = ve + z | 0, J = J + we | 0, C = C + X | 0, B = B + ut | 0, V = V + le | 0, j = j + Ce | 0, D = D + Be | 0, L = L +
|
|
13484
|
+
for (var g = a[0] & 255 | (a[1] & 255) << 8 | (a[2] & 255) << 16 | (a[3] & 255) << 24, S = d[0] & 255 | (d[1] & 255) << 8 | (d[2] & 255) << 16 | (d[3] & 255) << 24, E = d[4] & 255 | (d[5] & 255) << 8 | (d[6] & 255) << 16 | (d[7] & 255) << 24, U = d[8] & 255 | (d[9] & 255) << 8 | (d[10] & 255) << 16 | (d[11] & 255) << 24, z = d[12] & 255 | (d[13] & 255) << 8 | (d[14] & 255) << 16 | (d[15] & 255) << 24, we = a[4] & 255 | (a[5] & 255) << 8 | (a[6] & 255) << 16 | (a[7] & 255) << 24, X = p[0] & 255 | (p[1] & 255) << 8 | (p[2] & 255) << 16 | (p[3] & 255) << 24, ut = p[4] & 255 | (p[5] & 255) << 8 | (p[6] & 255) << 16 | (p[7] & 255) << 24, le = p[8] & 255 | (p[9] & 255) << 8 | (p[10] & 255) << 16 | (p[11] & 255) << 24, Ce = p[12] & 255 | (p[13] & 255) << 8 | (p[14] & 255) << 16 | (p[15] & 255) << 24, Be = a[8] & 255 | (a[9] & 255) << 8 | (a[10] & 255) << 16 | (a[11] & 255) << 24, Me = d[16] & 255 | (d[17] & 255) << 8 | (d[18] & 255) << 16 | (d[19] & 255) << 24, Re = d[20] & 255 | (d[21] & 255) << 8 | (d[22] & 255) << 16 | (d[23] & 255) << 24, Oe = d[24] & 255 | (d[25] & 255) << 8 | (d[26] & 255) << 16 | (d[27] & 255) << 24, Ne = d[28] & 255 | (d[29] & 255) << 8 | (d[30] & 255) << 16 | (d[31] & 255) << 24, Te = a[12] & 255 | (a[13] & 255) << 8 | (a[14] & 255) << 16 | (a[15] & 255) << 24, pe = g, Ae = S, re = E, ye = U, ve = z, J = we, C = X, B = ut, V = le, j = Ce, D = Be, L = Me, _e = Re, Ve = Oe, ze = Ne, Le = Te, w, Ze = 0; Ze < 20; Ze += 2)
|
|
13485
|
+
w = pe + _e | 0, ve ^= w << 7 | w >>> 25, w = ve + pe | 0, V ^= w << 9 | w >>> 23, w = V + ve | 0, _e ^= w << 13 | w >>> 19, w = _e + V | 0, pe ^= w << 18 | w >>> 14, w = J + Ae | 0, j ^= w << 7 | w >>> 25, w = j + J | 0, Ve ^= w << 9 | w >>> 23, w = Ve + j | 0, Ae ^= w << 13 | w >>> 19, w = Ae + Ve | 0, J ^= w << 18 | w >>> 14, w = D + C | 0, ze ^= w << 7 | w >>> 25, w = ze + D | 0, re ^= w << 9 | w >>> 23, w = re + ze | 0, C ^= w << 13 | w >>> 19, w = C + re | 0, D ^= w << 18 | w >>> 14, w = Le + L | 0, ye ^= w << 7 | w >>> 25, w = ye + Le | 0, B ^= w << 9 | w >>> 23, w = B + ye | 0, L ^= w << 13 | w >>> 19, w = L + B | 0, Le ^= w << 18 | w >>> 14, w = pe + ye | 0, Ae ^= w << 7 | w >>> 25, w = Ae + pe | 0, re ^= w << 9 | w >>> 23, w = re + Ae | 0, ye ^= w << 13 | w >>> 19, w = ye + re | 0, pe ^= w << 18 | w >>> 14, w = J + ve | 0, C ^= w << 7 | w >>> 25, w = C + J | 0, B ^= w << 9 | w >>> 23, w = B + C | 0, ve ^= w << 13 | w >>> 19, w = ve + B | 0, J ^= w << 18 | w >>> 14, w = D + j | 0, L ^= w << 7 | w >>> 25, w = L + D | 0, V ^= w << 9 | w >>> 23, w = V + L | 0, j ^= w << 13 | w >>> 19, w = j + V | 0, D ^= w << 18 | w >>> 14, w = Le + ze | 0, _e ^= w << 7 | w >>> 25, w = _e + Le | 0, Ve ^= w << 9 | w >>> 23, w = Ve + _e | 0, ze ^= w << 13 | w >>> 19, w = ze + Ve | 0, Le ^= w << 18 | w >>> 14;
|
|
13486
|
+
pe = pe + g | 0, Ae = Ae + S | 0, re = re + E | 0, ye = ye + U | 0, ve = ve + z | 0, J = J + we | 0, C = C + X | 0, B = B + ut | 0, V = V + le | 0, j = j + Ce | 0, D = D + Be | 0, L = L + Me | 0, _e = _e + Re | 0, Ve = Ve + Oe | 0, ze = ze + Ne | 0, Le = Le + Te | 0, l[0] = pe >>> 0 & 255, l[1] = pe >>> 8 & 255, l[2] = pe >>> 16 & 255, l[3] = pe >>> 24 & 255, l[4] = Ae >>> 0 & 255, l[5] = Ae >>> 8 & 255, l[6] = Ae >>> 16 & 255, l[7] = Ae >>> 24 & 255, l[8] = re >>> 0 & 255, l[9] = re >>> 8 & 255, l[10] = re >>> 16 & 255, l[11] = re >>> 24 & 255, l[12] = ye >>> 0 & 255, l[13] = ye >>> 8 & 255, l[14] = ye >>> 16 & 255, l[15] = ye >>> 24 & 255, l[16] = ve >>> 0 & 255, l[17] = ve >>> 8 & 255, l[18] = ve >>> 16 & 255, l[19] = ve >>> 24 & 255, l[20] = J >>> 0 & 255, l[21] = J >>> 8 & 255, l[22] = J >>> 16 & 255, l[23] = J >>> 24 & 255, l[24] = C >>> 0 & 255, l[25] = C >>> 8 & 255, l[26] = C >>> 16 & 255, l[27] = C >>> 24 & 255, l[28] = B >>> 0 & 255, l[29] = B >>> 8 & 255, l[30] = B >>> 16 & 255, l[31] = B >>> 24 & 255, l[32] = V >>> 0 & 255, l[33] = V >>> 8 & 255, l[34] = V >>> 16 & 255, l[35] = V >>> 24 & 255, l[36] = j >>> 0 & 255, l[37] = j >>> 8 & 255, l[38] = j >>> 16 & 255, l[39] = j >>> 24 & 255, l[40] = D >>> 0 & 255, l[41] = D >>> 8 & 255, l[42] = D >>> 16 & 255, l[43] = D >>> 24 & 255, l[44] = L >>> 0 & 255, l[45] = L >>> 8 & 255, l[46] = L >>> 16 & 255, l[47] = L >>> 24 & 255, l[48] = _e >>> 0 & 255, l[49] = _e >>> 8 & 255, l[50] = _e >>> 16 & 255, l[51] = _e >>> 24 & 255, l[52] = Ve >>> 0 & 255, l[53] = Ve >>> 8 & 255, l[54] = Ve >>> 16 & 255, l[55] = Ve >>> 24 & 255, l[56] = ze >>> 0 & 255, l[57] = ze >>> 8 & 255, l[58] = ze >>> 16 & 255, l[59] = ze >>> 24 & 255, l[60] = Le >>> 0 & 255, l[61] = Le >>> 8 & 255, l[62] = Le >>> 16 & 255, l[63] = Le >>> 24 & 255;
|
|
13487
13487
|
}
|
|
13488
13488
|
function R(l, p, d, a) {
|
|
13489
|
-
for (var g = a[0] & 255 | (a[1] & 255) << 8 | (a[2] & 255) << 16 | (a[3] & 255) << 24, S = d[0] & 255 | (d[1] & 255) << 8 | (d[2] & 255) << 16 | (d[3] & 255) << 24, E = d[4] & 255 | (d[5] & 255) << 8 | (d[6] & 255) << 16 | (d[7] & 255) << 24, U = d[8] & 255 | (d[9] & 255) << 8 | (d[10] & 255) << 16 | (d[11] & 255) << 24, z = d[12] & 255 | (d[13] & 255) << 8 | (d[14] & 255) << 16 | (d[15] & 255) << 24, we = a[4] & 255 | (a[5] & 255) << 8 | (a[6] & 255) << 16 | (a[7] & 255) << 24, X = p[0] & 255 | (p[1] & 255) << 8 | (p[2] & 255) << 16 | (p[3] & 255) << 24, ut = p[4] & 255 | (p[5] & 255) << 8 | (p[6] & 255) << 16 | (p[7] & 255) << 24, le = p[8] & 255 | (p[9] & 255) << 8 | (p[10] & 255) << 16 | (p[11] & 255) << 24, Ce = p[12] & 255 | (p[13] & 255) << 8 | (p[14] & 255) << 16 | (p[15] & 255) << 24, Be = a[8] & 255 | (a[9] & 255) << 8 | (a[10] & 255) << 16 | (a[11] & 255) << 24,
|
|
13490
|
-
w = pe + _e | 0, ve ^= w << 7 | w >>> 25, w = ve + pe | 0, V ^= w << 9 | w >>> 23, w = V + ve | 0, _e ^= w << 13 | w >>> 19, w = _e + V | 0, pe ^= w << 18 | w >>> 14, w = J + Ae | 0, j ^= w << 7 | w >>> 25, w = j + J | 0,
|
|
13491
|
-
l[0] = pe >>> 0 & 255, l[1] = pe >>> 8 & 255, l[2] = pe >>> 16 & 255, l[3] = pe >>> 24 & 255, l[4] = J >>> 0 & 255, l[5] = J >>> 8 & 255, l[6] = J >>> 16 & 255, l[7] = J >>> 24 & 255, l[8] = D >>> 0 & 255, l[9] = D >>> 8 & 255, l[10] = D >>> 16 & 255, l[11] = D >>> 24 & 255, l[12] =
|
|
13489
|
+
for (var g = a[0] & 255 | (a[1] & 255) << 8 | (a[2] & 255) << 16 | (a[3] & 255) << 24, S = d[0] & 255 | (d[1] & 255) << 8 | (d[2] & 255) << 16 | (d[3] & 255) << 24, E = d[4] & 255 | (d[5] & 255) << 8 | (d[6] & 255) << 16 | (d[7] & 255) << 24, U = d[8] & 255 | (d[9] & 255) << 8 | (d[10] & 255) << 16 | (d[11] & 255) << 24, z = d[12] & 255 | (d[13] & 255) << 8 | (d[14] & 255) << 16 | (d[15] & 255) << 24, we = a[4] & 255 | (a[5] & 255) << 8 | (a[6] & 255) << 16 | (a[7] & 255) << 24, X = p[0] & 255 | (p[1] & 255) << 8 | (p[2] & 255) << 16 | (p[3] & 255) << 24, ut = p[4] & 255 | (p[5] & 255) << 8 | (p[6] & 255) << 16 | (p[7] & 255) << 24, le = p[8] & 255 | (p[9] & 255) << 8 | (p[10] & 255) << 16 | (p[11] & 255) << 24, Ce = p[12] & 255 | (p[13] & 255) << 8 | (p[14] & 255) << 16 | (p[15] & 255) << 24, Be = a[8] & 255 | (a[9] & 255) << 8 | (a[10] & 255) << 16 | (a[11] & 255) << 24, Me = d[16] & 255 | (d[17] & 255) << 8 | (d[18] & 255) << 16 | (d[19] & 255) << 24, Re = d[20] & 255 | (d[21] & 255) << 8 | (d[22] & 255) << 16 | (d[23] & 255) << 24, Oe = d[24] & 255 | (d[25] & 255) << 8 | (d[26] & 255) << 16 | (d[27] & 255) << 24, Ne = d[28] & 255 | (d[29] & 255) << 8 | (d[30] & 255) << 16 | (d[31] & 255) << 24, Te = a[12] & 255 | (a[13] & 255) << 8 | (a[14] & 255) << 16 | (a[15] & 255) << 24, pe = g, Ae = S, re = E, ye = U, ve = z, J = we, C = X, B = ut, V = le, j = Ce, D = Be, L = Me, _e = Re, Ve = Oe, ze = Ne, Le = Te, w, Ze = 0; Ze < 20; Ze += 2)
|
|
13490
|
+
w = pe + _e | 0, ve ^= w << 7 | w >>> 25, w = ve + pe | 0, V ^= w << 9 | w >>> 23, w = V + ve | 0, _e ^= w << 13 | w >>> 19, w = _e + V | 0, pe ^= w << 18 | w >>> 14, w = J + Ae | 0, j ^= w << 7 | w >>> 25, w = j + J | 0, Ve ^= w << 9 | w >>> 23, w = Ve + j | 0, Ae ^= w << 13 | w >>> 19, w = Ae + Ve | 0, J ^= w << 18 | w >>> 14, w = D + C | 0, ze ^= w << 7 | w >>> 25, w = ze + D | 0, re ^= w << 9 | w >>> 23, w = re + ze | 0, C ^= w << 13 | w >>> 19, w = C + re | 0, D ^= w << 18 | w >>> 14, w = Le + L | 0, ye ^= w << 7 | w >>> 25, w = ye + Le | 0, B ^= w << 9 | w >>> 23, w = B + ye | 0, L ^= w << 13 | w >>> 19, w = L + B | 0, Le ^= w << 18 | w >>> 14, w = pe + ye | 0, Ae ^= w << 7 | w >>> 25, w = Ae + pe | 0, re ^= w << 9 | w >>> 23, w = re + Ae | 0, ye ^= w << 13 | w >>> 19, w = ye + re | 0, pe ^= w << 18 | w >>> 14, w = J + ve | 0, C ^= w << 7 | w >>> 25, w = C + J | 0, B ^= w << 9 | w >>> 23, w = B + C | 0, ve ^= w << 13 | w >>> 19, w = ve + B | 0, J ^= w << 18 | w >>> 14, w = D + j | 0, L ^= w << 7 | w >>> 25, w = L + D | 0, V ^= w << 9 | w >>> 23, w = V + L | 0, j ^= w << 13 | w >>> 19, w = j + V | 0, D ^= w << 18 | w >>> 14, w = Le + ze | 0, _e ^= w << 7 | w >>> 25, w = _e + Le | 0, Ve ^= w << 9 | w >>> 23, w = Ve + _e | 0, ze ^= w << 13 | w >>> 19, w = ze + Ve | 0, Le ^= w << 18 | w >>> 14;
|
|
13491
|
+
l[0] = pe >>> 0 & 255, l[1] = pe >>> 8 & 255, l[2] = pe >>> 16 & 255, l[3] = pe >>> 24 & 255, l[4] = J >>> 0 & 255, l[5] = J >>> 8 & 255, l[6] = J >>> 16 & 255, l[7] = J >>> 24 & 255, l[8] = D >>> 0 & 255, l[9] = D >>> 8 & 255, l[10] = D >>> 16 & 255, l[11] = D >>> 24 & 255, l[12] = Le >>> 0 & 255, l[13] = Le >>> 8 & 255, l[14] = Le >>> 16 & 255, l[15] = Le >>> 24 & 255, l[16] = C >>> 0 & 255, l[17] = C >>> 8 & 255, l[18] = C >>> 16 & 255, l[19] = C >>> 24 & 255, l[20] = B >>> 0 & 255, l[21] = B >>> 8 & 255, l[22] = B >>> 16 & 255, l[23] = B >>> 24 & 255, l[24] = V >>> 0 & 255, l[25] = V >>> 8 & 255, l[26] = V >>> 16 & 255, l[27] = V >>> 24 & 255, l[28] = j >>> 0 & 255, l[29] = j >>> 8 & 255, l[30] = j >>> 16 & 255, l[31] = j >>> 24 & 255;
|
|
13492
13492
|
}
|
|
13493
13493
|
function ue(l, p, d, a) {
|
|
13494
13494
|
P(l, p, d, a);
|
|
@@ -13543,8 +13543,8 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13543
13543
|
p = l[0] & 255 | (l[1] & 255) << 8, this.r[0] = p & 8191, d = l[2] & 255 | (l[3] & 255) << 8, this.r[1] = (p >>> 13 | d << 3) & 8191, a = l[4] & 255 | (l[5] & 255) << 8, this.r[2] = (d >>> 10 | a << 6) & 7939, g = l[6] & 255 | (l[7] & 255) << 8, this.r[3] = (a >>> 7 | g << 9) & 8191, S = l[8] & 255 | (l[9] & 255) << 8, this.r[4] = (g >>> 4 | S << 12) & 255, this.r[5] = S >>> 1 & 8190, E = l[10] & 255 | (l[11] & 255) << 8, this.r[6] = (S >>> 14 | E << 2) & 8191, U = l[12] & 255 | (l[13] & 255) << 8, this.r[7] = (E >>> 11 | U << 5) & 8065, z = l[14] & 255 | (l[15] & 255) << 8, this.r[8] = (U >>> 8 | z << 8) & 8191, this.r[9] = z >>> 5 & 127, this.pad[0] = l[16] & 255 | (l[17] & 255) << 8, this.pad[1] = l[18] & 255 | (l[19] & 255) << 8, this.pad[2] = l[20] & 255 | (l[21] & 255) << 8, this.pad[3] = l[22] & 255 | (l[23] & 255) << 8, this.pad[4] = l[24] & 255 | (l[25] & 255) << 8, this.pad[5] = l[26] & 255 | (l[27] & 255) << 8, this.pad[6] = l[28] & 255 | (l[29] & 255) << 8, this.pad[7] = l[30] & 255 | (l[31] & 255) << 8;
|
|
13544
13544
|
};
|
|
13545
13545
|
xe.prototype.blocks = function(l, p, d) {
|
|
13546
|
-
for (var a = this.fin ? 0 : 2048, g, S, E, U, z, we, X, ut, le, Ce, Be,
|
|
13547
|
-
g = l[p + 0] & 255 | (l[p + 1] & 255) << 8, ye += g & 8191, S = l[p + 2] & 255 | (l[p + 3] & 255) << 8, ve += (g >>> 13 | S << 3) & 8191, E = l[p + 4] & 255 | (l[p + 5] & 255) << 8, J += (S >>> 10 | E << 6) & 8191, U = l[p + 6] & 255 | (l[p + 7] & 255) << 8, C += (E >>> 7 | U << 9) & 8191, z = l[p + 8] & 255 | (l[p + 9] & 255) << 8, B += (U >>> 4 | z << 12) & 8191, V += z >>> 1 & 8191, we = l[p + 10] & 255 | (l[p + 11] & 255) << 8, j += (z >>> 14 | we << 2) & 8191, X = l[p + 12] & 255 | (l[p + 13] & 255) << 8, D += (we >>> 11 | X << 5) & 8191, ut = l[p + 14] & 255 | (l[p + 15] & 255) << 8, L += (X >>> 8 | ut << 8) & 8191, _e += ut >>> 5 | a, le = 0, Ce = le, Ce += ye *
|
|
13546
|
+
for (var a = this.fin ? 0 : 2048, g, S, E, U, z, we, X, ut, le, Ce, Be, Me, Re, Oe, Ne, Te, pe, Ae, re, ye = this.h[0], ve = this.h[1], J = this.h[2], C = this.h[3], B = this.h[4], V = this.h[5], j = this.h[6], D = this.h[7], L = this.h[8], _e = this.h[9], Ve = this.r[0], ze = this.r[1], Le = this.r[2], w = this.r[3], Ze = this.r[4], ft = this.r[5], ht = this.r[6], qe = this.r[7], ot = this.r[8], at = this.r[9]; d >= 16; )
|
|
13547
|
+
g = l[p + 0] & 255 | (l[p + 1] & 255) << 8, ye += g & 8191, S = l[p + 2] & 255 | (l[p + 3] & 255) << 8, ve += (g >>> 13 | S << 3) & 8191, E = l[p + 4] & 255 | (l[p + 5] & 255) << 8, J += (S >>> 10 | E << 6) & 8191, U = l[p + 6] & 255 | (l[p + 7] & 255) << 8, C += (E >>> 7 | U << 9) & 8191, z = l[p + 8] & 255 | (l[p + 9] & 255) << 8, B += (U >>> 4 | z << 12) & 8191, V += z >>> 1 & 8191, we = l[p + 10] & 255 | (l[p + 11] & 255) << 8, j += (z >>> 14 | we << 2) & 8191, X = l[p + 12] & 255 | (l[p + 13] & 255) << 8, D += (we >>> 11 | X << 5) & 8191, ut = l[p + 14] & 255 | (l[p + 15] & 255) << 8, L += (X >>> 8 | ut << 8) & 8191, _e += ut >>> 5 | a, le = 0, Ce = le, Ce += ye * Ve, Ce += ve * (5 * at), Ce += J * (5 * ot), Ce += C * (5 * qe), Ce += B * (5 * ht), le = Ce >>> 13, Ce &= 8191, Ce += V * (5 * ft), Ce += j * (5 * Ze), Ce += D * (5 * w), Ce += L * (5 * Le), Ce += _e * (5 * ze), le += Ce >>> 13, Ce &= 8191, Be = le, Be += ye * ze, Be += ve * Ve, Be += J * (5 * at), Be += C * (5 * ot), Be += B * (5 * qe), le = Be >>> 13, Be &= 8191, Be += V * (5 * ht), Be += j * (5 * ft), Be += D * (5 * Ze), Be += L * (5 * w), Be += _e * (5 * Le), le += Be >>> 13, Be &= 8191, Me = le, Me += ye * Le, Me += ve * ze, Me += J * Ve, Me += C * (5 * at), Me += B * (5 * ot), le = Me >>> 13, Me &= 8191, Me += V * (5 * qe), Me += j * (5 * ht), Me += D * (5 * ft), Me += L * (5 * Ze), Me += _e * (5 * w), le += Me >>> 13, Me &= 8191, Re = le, Re += ye * w, Re += ve * Le, Re += J * ze, Re += C * Ve, Re += B * (5 * at), le = Re >>> 13, Re &= 8191, Re += V * (5 * ot), Re += j * (5 * qe), Re += D * (5 * ht), Re += L * (5 * ft), Re += _e * (5 * Ze), le += Re >>> 13, Re &= 8191, Oe = le, Oe += ye * Ze, Oe += ve * w, Oe += J * Le, Oe += C * ze, Oe += B * Ve, le = Oe >>> 13, Oe &= 8191, Oe += V * (5 * at), Oe += j * (5 * ot), Oe += D * (5 * qe), Oe += L * (5 * ht), Oe += _e * (5 * ft), le += Oe >>> 13, Oe &= 8191, Ne = le, Ne += ye * ft, Ne += ve * Ze, Ne += J * w, Ne += C * Le, Ne += B * ze, le = Ne >>> 13, Ne &= 8191, Ne += V * Ve, Ne += j * (5 * at), Ne += D * (5 * ot), Ne += L * (5 * qe), Ne += _e * (5 * ht), le += Ne >>> 13, Ne &= 8191, Te = le, Te += ye * ht, Te += ve * ft, Te += J * Ze, Te += C * w, Te += B * Le, le = Te >>> 13, Te &= 8191, Te += V * ze, Te += j * Ve, Te += D * (5 * at), Te += L * (5 * ot), Te += _e * (5 * qe), le += Te >>> 13, Te &= 8191, pe = le, pe += ye * qe, pe += ve * ht, pe += J * ft, pe += C * Ze, pe += B * w, le = pe >>> 13, pe &= 8191, pe += V * Le, pe += j * ze, pe += D * Ve, pe += L * (5 * at), pe += _e * (5 * ot), le += pe >>> 13, pe &= 8191, Ae = le, Ae += ye * ot, Ae += ve * qe, Ae += J * ht, Ae += C * ft, Ae += B * Ze, le = Ae >>> 13, Ae &= 8191, Ae += V * w, Ae += j * Le, Ae += D * ze, Ae += L * Ve, Ae += _e * (5 * at), le += Ae >>> 13, Ae &= 8191, re = le, re += ye * at, re += ve * ot, re += J * qe, re += C * ht, re += B * ft, le = re >>> 13, re &= 8191, re += V * Ze, re += j * w, re += D * Le, re += L * ze, re += _e * Ve, le += re >>> 13, re &= 8191, le = (le << 2) + le | 0, le = le + Ce | 0, Ce = le & 8191, le = le >>> 13, Be += le, ye = Ce, ve = Be, J = Me, C = Re, B = Oe, V = Ne, j = Te, D = pe, L = Ae, _e = re, p += 16, d -= 16;
|
|
13548
13548
|
this.h[0] = ye, this.h[1] = ve, this.h[2] = J, this.h[3] = C, this.h[4] = B, this.h[5] = V, this.h[6] = j, this.h[7] = D, this.h[8] = L, this.h[9] = _e;
|
|
13549
13549
|
}, xe.prototype.finish = function(l, p) {
|
|
13550
13550
|
var d = new Uint16Array(10), a, g, S, E;
|
|
@@ -13576,18 +13576,18 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13576
13576
|
this.leftover += d;
|
|
13577
13577
|
}
|
|
13578
13578
|
};
|
|
13579
|
-
function
|
|
13579
|
+
function tt(l, p, d, a, g, S) {
|
|
13580
13580
|
var E = new xe(S);
|
|
13581
13581
|
return E.update(d, a, g), E.finish(l, p), 0;
|
|
13582
13582
|
}
|
|
13583
13583
|
function At(l, p, d, a, g, S) {
|
|
13584
13584
|
var E = new Uint8Array(16);
|
|
13585
|
-
return
|
|
13585
|
+
return tt(E, 0, d, a, g, S), O(l, p, E, 0);
|
|
13586
13586
|
}
|
|
13587
13587
|
function It(l, p, d, a, g) {
|
|
13588
13588
|
var S;
|
|
13589
13589
|
if (d < 32) return -1;
|
|
13590
|
-
for (ie(l, 0, p, 0, d, a, g),
|
|
13590
|
+
for (ie(l, 0, p, 0, d, a, g), tt(l, 16, l, 32, d - 32, l), S = 0; S < 16; S++) l[S] = 0;
|
|
13591
13591
|
return 0;
|
|
13592
13592
|
}
|
|
13593
13593
|
function dt(l, p, d, a, g) {
|
|
@@ -13641,8 +13641,8 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13641
13641
|
for (var a = 0; a < 16; a++) l[a] = p[a] - d[a];
|
|
13642
13642
|
}
|
|
13643
13643
|
function ee(l, p, d) {
|
|
13644
|
-
var a, g, S = 0, E = 0, U = 0, z = 0, we = 0, X = 0, ut = 0, le = 0, Ce = 0, Be = 0,
|
|
13645
|
-
a = p[0], S += a * w, E += a * Ze, U += a * ft, z += a * ht, we += a *
|
|
13644
|
+
var a, g, S = 0, E = 0, U = 0, z = 0, we = 0, X = 0, ut = 0, le = 0, Ce = 0, Be = 0, Me = 0, Re = 0, Oe = 0, Ne = 0, Te = 0, pe = 0, Ae = 0, re = 0, ye = 0, ve = 0, J = 0, C = 0, B = 0, V = 0, j = 0, D = 0, L = 0, _e = 0, Ve = 0, ze = 0, Le = 0, w = d[0], Ze = d[1], ft = d[2], ht = d[3], qe = d[4], ot = d[5], at = d[6], $t = d[7], wt = d[8], Nt = d[9], Pt = d[10], jt = d[11], Lt = d[12], Qt = d[13], er = d[14], tr = d[15];
|
|
13645
|
+
a = p[0], S += a * w, E += a * Ze, U += a * ft, z += a * ht, we += a * qe, X += a * ot, ut += a * at, le += a * $t, Ce += a * wt, Be += a * Nt, Me += a * Pt, Re += a * jt, Oe += a * Lt, Ne += a * Qt, Te += a * er, pe += a * tr, a = p[1], E += a * w, U += a * Ze, z += a * ft, we += a * ht, X += a * qe, ut += a * ot, le += a * at, Ce += a * $t, Be += a * wt, Me += a * Nt, Re += a * Pt, Oe += a * jt, Ne += a * Lt, Te += a * Qt, pe += a * er, Ae += a * tr, a = p[2], U += a * w, z += a * Ze, we += a * ft, X += a * ht, ut += a * qe, le += a * ot, Ce += a * at, Be += a * $t, Me += a * wt, Re += a * Nt, Oe += a * Pt, Ne += a * jt, Te += a * Lt, pe += a * Qt, Ae += a * er, re += a * tr, a = p[3], z += a * w, we += a * Ze, X += a * ft, ut += a * ht, le += a * qe, Ce += a * ot, Be += a * at, Me += a * $t, Re += a * wt, Oe += a * Nt, Ne += a * Pt, Te += a * jt, pe += a * Lt, Ae += a * Qt, re += a * er, ye += a * tr, a = p[4], we += a * w, X += a * Ze, ut += a * ft, le += a * ht, Ce += a * qe, Be += a * ot, Me += a * at, Re += a * $t, Oe += a * wt, Ne += a * Nt, Te += a * Pt, pe += a * jt, Ae += a * Lt, re += a * Qt, ye += a * er, ve += a * tr, a = p[5], X += a * w, ut += a * Ze, le += a * ft, Ce += a * ht, Be += a * qe, Me += a * ot, Re += a * at, Oe += a * $t, Ne += a * wt, Te += a * Nt, pe += a * Pt, Ae += a * jt, re += a * Lt, ye += a * Qt, ve += a * er, J += a * tr, a = p[6], ut += a * w, le += a * Ze, Ce += a * ft, Be += a * ht, Me += a * qe, Re += a * ot, Oe += a * at, Ne += a * $t, Te += a * wt, pe += a * Nt, Ae += a * Pt, re += a * jt, ye += a * Lt, ve += a * Qt, J += a * er, C += a * tr, a = p[7], le += a * w, Ce += a * Ze, Be += a * ft, Me += a * ht, Re += a * qe, Oe += a * ot, Ne += a * at, Te += a * $t, pe += a * wt, Ae += a * Nt, re += a * Pt, ye += a * jt, ve += a * Lt, J += a * Qt, C += a * er, B += a * tr, a = p[8], Ce += a * w, Be += a * Ze, Me += a * ft, Re += a * ht, Oe += a * qe, Ne += a * ot, Te += a * at, pe += a * $t, Ae += a * wt, re += a * Nt, ye += a * Pt, ve += a * jt, J += a * Lt, C += a * Qt, B += a * er, V += a * tr, a = p[9], Be += a * w, Me += a * Ze, Re += a * ft, Oe += a * ht, Ne += a * qe, Te += a * ot, pe += a * at, Ae += a * $t, re += a * wt, ye += a * Nt, ve += a * Pt, J += a * jt, C += a * Lt, B += a * Qt, V += a * er, j += a * tr, a = p[10], Me += a * w, Re += a * Ze, Oe += a * ft, Ne += a * ht, Te += a * qe, pe += a * ot, Ae += a * at, re += a * $t, ye += a * wt, ve += a * Nt, J += a * Pt, C += a * jt, B += a * Lt, V += a * Qt, j += a * er, D += a * tr, a = p[11], Re += a * w, Oe += a * Ze, Ne += a * ft, Te += a * ht, pe += a * qe, Ae += a * ot, re += a * at, ye += a * $t, ve += a * wt, J += a * Nt, C += a * Pt, B += a * jt, V += a * Lt, j += a * Qt, D += a * er, L += a * tr, a = p[12], Oe += a * w, Ne += a * Ze, Te += a * ft, pe += a * ht, Ae += a * qe, re += a * ot, ye += a * at, ve += a * $t, J += a * wt, C += a * Nt, B += a * Pt, V += a * jt, j += a * Lt, D += a * Qt, L += a * er, _e += a * tr, a = p[13], Ne += a * w, Te += a * Ze, pe += a * ft, Ae += a * ht, re += a * qe, ye += a * ot, ve += a * at, J += a * $t, C += a * wt, B += a * Nt, V += a * Pt, j += a * jt, D += a * Lt, L += a * Qt, _e += a * er, Ve += a * tr, a = p[14], Te += a * w, pe += a * Ze, Ae += a * ft, re += a * ht, ye += a * qe, ve += a * ot, J += a * at, C += a * $t, B += a * wt, V += a * Nt, j += a * Pt, D += a * jt, L += a * Lt, _e += a * Qt, Ve += a * er, ze += a * tr, a = p[15], pe += a * w, Ae += a * Ze, re += a * ft, ye += a * ht, ve += a * qe, J += a * ot, C += a * at, B += a * $t, V += a * wt, j += a * Nt, D += a * Pt, L += a * jt, _e += a * Lt, Ve += a * Qt, ze += a * er, Le += a * tr, S += 38 * Ae, E += 38 * re, U += 38 * ye, z += 38 * ve, we += 38 * J, X += 38 * C, ut += 38 * B, le += 38 * V, Ce += 38 * j, Be += 38 * D, Me += 38 * L, Re += 38 * _e, Oe += 38 * Ve, Ne += 38 * ze, Te += 38 * Le, g = 1, a = S + g + 65535, g = Math.floor(a / 65536), S = a - g * 65536, a = E + g + 65535, g = Math.floor(a / 65536), E = a - g * 65536, a = U + g + 65535, g = Math.floor(a / 65536), U = a - g * 65536, a = z + g + 65535, g = Math.floor(a / 65536), z = a - g * 65536, a = we + g + 65535, g = Math.floor(a / 65536), we = a - g * 65536, a = X + g + 65535, g = Math.floor(a / 65536), X = a - g * 65536, a = ut + g + 65535, g = Math.floor(a / 65536), ut = a - g * 65536, a = le + g + 65535, g = Math.floor(a / 65536), le = a - g * 65536, a = Ce + g + 65535, g = Math.floor(a / 65536), Ce = a - g * 65536, a = Be + g + 65535, g = Math.floor(a / 65536), Be = a - g * 65536, a = Me + g + 65535, g = Math.floor(a / 65536), Me = a - g * 65536, a = Re + g + 65535, g = Math.floor(a / 65536), Re = a - g * 65536, a = Oe + g + 65535, g = Math.floor(a / 65536), Oe = a - g * 65536, a = Ne + g + 65535, g = Math.floor(a / 65536), Ne = a - g * 65536, a = Te + g + 65535, g = Math.floor(a / 65536), Te = a - g * 65536, a = pe + g + 65535, g = Math.floor(a / 65536), pe = a - g * 65536, S += g - 1 + 37 * (g - 1), g = 1, a = S + g + 65535, g = Math.floor(a / 65536), S = a - g * 65536, a = E + g + 65535, g = Math.floor(a / 65536), E = a - g * 65536, a = U + g + 65535, g = Math.floor(a / 65536), U = a - g * 65536, a = z + g + 65535, g = Math.floor(a / 65536), z = a - g * 65536, a = we + g + 65535, g = Math.floor(a / 65536), we = a - g * 65536, a = X + g + 65535, g = Math.floor(a / 65536), X = a - g * 65536, a = ut + g + 65535, g = Math.floor(a / 65536), ut = a - g * 65536, a = le + g + 65535, g = Math.floor(a / 65536), le = a - g * 65536, a = Ce + g + 65535, g = Math.floor(a / 65536), Ce = a - g * 65536, a = Be + g + 65535, g = Math.floor(a / 65536), Be = a - g * 65536, a = Me + g + 65535, g = Math.floor(a / 65536), Me = a - g * 65536, a = Re + g + 65535, g = Math.floor(a / 65536), Re = a - g * 65536, a = Oe + g + 65535, g = Math.floor(a / 65536), Oe = a - g * 65536, a = Ne + g + 65535, g = Math.floor(a / 65536), Ne = a - g * 65536, a = Te + g + 65535, g = Math.floor(a / 65536), Te = a - g * 65536, a = pe + g + 65535, g = Math.floor(a / 65536), pe = a - g * 65536, S += g - 1 + 37 * (g - 1), l[0] = S, l[1] = E, l[2] = U, l[3] = z, l[4] = we, l[5] = X, l[6] = ut, l[7] = le, l[8] = Ce, l[9] = Be, l[10] = Me, l[11] = Re, l[12] = Oe, l[13] = Ne, l[14] = Te, l[15] = pe;
|
|
13646
13646
|
}
|
|
13647
13647
|
function pt(l, p) {
|
|
13648
13648
|
ee(l, p, p);
|
|
@@ -13855,14 +13855,14 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13855
13855
|
1246189591
|
|
13856
13856
|
];
|
|
13857
13857
|
function gs(l, p, d, a) {
|
|
13858
|
-
for (var g = new Int32Array(16), S = new Int32Array(16), E, U, z, we, X, ut, le, Ce, Be,
|
|
13858
|
+
for (var g = new Int32Array(16), S = new Int32Array(16), E, U, z, we, X, ut, le, Ce, Be, Me, Re, Oe, Ne, Te, pe, Ae, re, ye, ve, J, C, B, V, j, D, L, _e = l[0], Ve = l[1], ze = l[2], Le = l[3], w = l[4], Ze = l[5], ft = l[6], ht = l[7], qe = p[0], ot = p[1], at = p[2], $t = p[3], wt = p[4], Nt = p[5], Pt = p[6], jt = p[7], Lt = 0; a >= 128; ) {
|
|
13859
13859
|
for (ve = 0; ve < 16; ve++)
|
|
13860
13860
|
J = 8 * ve + Lt, g[ve] = d[J + 0] << 24 | d[J + 1] << 16 | d[J + 2] << 8 | d[J + 3], S[ve] = d[J + 4] << 24 | d[J + 5] << 16 | d[J + 6] << 8 | d[J + 7];
|
|
13861
13861
|
for (ve = 0; ve < 80; ve++)
|
|
13862
|
-
if (E = _e, U =
|
|
13862
|
+
if (E = _e, U = Ve, z = ze, we = Le, X = w, ut = Ze, le = ft, Ce = ht, Be = qe, Me = ot, Re = at, Oe = $t, Ne = wt, Te = Nt, pe = Pt, Ae = jt, C = ht, B = jt, V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = (w >>> 14 | wt << 18) ^ (w >>> 18 | wt << 14) ^ (wt >>> 9 | w << 23), B = (wt >>> 14 | w << 18) ^ (wt >>> 18 | w << 14) ^ (w >>> 9 | wt << 23), V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, C = w & Ze ^ ~w & ft, B = wt & Nt ^ ~wt & Pt, V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, C = ys[ve * 2], B = ys[ve * 2 + 1], V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, C = g[ve % 16], B = S[ve % 16], V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, re = D & 65535 | L << 16, ye = V & 65535 | j << 16, C = re, B = ye, V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = (_e >>> 28 | qe << 4) ^ (qe >>> 2 | _e << 30) ^ (qe >>> 7 | _e << 25), B = (qe >>> 28 | _e << 4) ^ (_e >>> 2 | qe << 30) ^ (_e >>> 7 | qe << 25), V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, C = _e & Ve ^ _e & ze ^ Ve & ze, B = qe & ot ^ qe & at ^ ot & at, V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, Ce = D & 65535 | L << 16, Ae = V & 65535 | j << 16, C = we, B = Oe, V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = re, B = ye, V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, we = D & 65535 | L << 16, Oe = V & 65535 | j << 16, Ve = E, ze = U, Le = z, w = we, Ze = X, ft = ut, ht = le, _e = Ce, ot = Be, at = Me, $t = Re, wt = Oe, Nt = Ne, Pt = Te, jt = pe, qe = Ae, ve % 16 === 15)
|
|
13863
13863
|
for (J = 0; J < 16; J++)
|
|
13864
13864
|
C = g[J], B = S[J], V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = g[(J + 9) % 16], B = S[(J + 9) % 16], V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, re = g[(J + 1) % 16], ye = S[(J + 1) % 16], C = (re >>> 1 | ye << 31) ^ (re >>> 8 | ye << 24) ^ re >>> 7, B = (ye >>> 1 | re << 31) ^ (ye >>> 8 | re << 24) ^ (ye >>> 7 | re << 25), V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, re = g[(J + 14) % 16], ye = S[(J + 14) % 16], C = (re >>> 19 | ye << 13) ^ (ye >>> 29 | re << 3) ^ re >>> 6, B = (ye >>> 19 | re << 13) ^ (re >>> 29 | ye << 3) ^ (ye >>> 6 | re << 26), V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, g[J] = D & 65535 | L << 16, S[J] = V & 65535 | j << 16;
|
|
13865
|
-
C = _e, B =
|
|
13865
|
+
C = _e, B = qe, V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = l[0], B = p[0], V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, l[0] = _e = D & 65535 | L << 16, p[0] = qe = V & 65535 | j << 16, C = Ve, B = ot, V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = l[1], B = p[1], V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, l[1] = Ve = D & 65535 | L << 16, p[1] = ot = V & 65535 | j << 16, C = ze, B = at, V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = l[2], B = p[2], V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, l[2] = ze = D & 65535 | L << 16, p[2] = at = V & 65535 | j << 16, C = Le, B = $t, V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = l[3], B = p[3], V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, l[3] = Le = D & 65535 | L << 16, p[3] = $t = V & 65535 | j << 16, C = w, B = wt, V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = l[4], B = p[4], V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, l[4] = w = D & 65535 | L << 16, p[4] = wt = V & 65535 | j << 16, C = Ze, B = Nt, V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = l[5], B = p[5], V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, l[5] = Ze = D & 65535 | L << 16, p[5] = Nt = V & 65535 | j << 16, C = ft, B = Pt, V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = l[6], B = p[6], V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, l[6] = ft = D & 65535 | L << 16, p[6] = Pt = V & 65535 | j << 16, C = ht, B = jt, V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = l[7], B = p[7], V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, l[7] = ht = D & 65535 | L << 16, p[7] = jt = V & 65535 | j << 16, Lt += 128, a -= 128;
|
|
13866
13866
|
}
|
|
13867
13867
|
return a;
|
|
13868
13868
|
}
|
|
@@ -13949,14 +13949,14 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13949
13949
|
for (g = 0; g < d; g++) l[g] = p[g + 64];
|
|
13950
13950
|
return d;
|
|
13951
13951
|
}
|
|
13952
|
-
var k = 32, T = 24,
|
|
13952
|
+
var k = 32, T = 24, q = 32, be = 16, St = 32, _t = 32, je = 32, Z = 32, te = 32, he = T, ge = q, Je = be, rt = 64, mt = 32, zt = 64, Ti = 32, Ss = 64;
|
|
13953
13953
|
e.lowlevel = {
|
|
13954
13954
|
crypto_core_hsalsa20: Ge,
|
|
13955
13955
|
crypto_stream_xor: ie,
|
|
13956
13956
|
crypto_stream: ne,
|
|
13957
13957
|
crypto_stream_salsa20_xor: Pe,
|
|
13958
13958
|
crypto_stream_salsa20: W,
|
|
13959
|
-
crypto_onetimeauth:
|
|
13959
|
+
crypto_onetimeauth: tt,
|
|
13960
13960
|
crypto_onetimeauth_verify: At,
|
|
13961
13961
|
crypto_verify_16: O,
|
|
13962
13962
|
crypto_verify_32: I,
|
|
@@ -13975,7 +13975,7 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13975
13975
|
crypto_sign_open: _,
|
|
13976
13976
|
crypto_secretbox_KEYBYTES: k,
|
|
13977
13977
|
crypto_secretbox_NONCEBYTES: T,
|
|
13978
|
-
crypto_secretbox_ZEROBYTES:
|
|
13978
|
+
crypto_secretbox_ZEROBYTES: q,
|
|
13979
13979
|
crypto_secretbox_BOXZEROBYTES: be,
|
|
13980
13980
|
crypto_scalarmult_BYTES: St,
|
|
13981
13981
|
crypto_scalarmult_SCALARBYTES: _t,
|
|
@@ -13985,7 +13985,7 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13985
13985
|
crypto_box_NONCEBYTES: he,
|
|
13986
13986
|
crypto_box_ZEROBYTES: ge,
|
|
13987
13987
|
crypto_box_BOXZEROBYTES: Je,
|
|
13988
|
-
crypto_sign_BYTES:
|
|
13988
|
+
crypto_sign_BYTES: rt,
|
|
13989
13989
|
crypto_sign_PUBLICKEYBYTES: mt,
|
|
13990
13990
|
crypto_sign_SECRETKEYBYTES: zt,
|
|
13991
13991
|
crypto_sign_SEEDBYTES: Ti,
|
|
@@ -14027,12 +14027,12 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14027
14027
|
return n(p, l), p;
|
|
14028
14028
|
}, e.secretbox = function(l, p, d) {
|
|
14029
14029
|
xr(l, p, d), Oo(d, p);
|
|
14030
|
-
for (var a = new Uint8Array(
|
|
14030
|
+
for (var a = new Uint8Array(q + l.length), g = new Uint8Array(a.length), S = 0; S < l.length; S++) a[S + q] = l[S];
|
|
14031
14031
|
return It(g, a, a.length, p, d), g.subarray(be);
|
|
14032
14032
|
}, e.secretbox.open = function(l, p, d) {
|
|
14033
14033
|
xr(l, p, d), Oo(d, p);
|
|
14034
14034
|
for (var a = new Uint8Array(be + l.length), g = new Uint8Array(a.length), S = 0; S < l.length; S++) a[S + be] = l[S];
|
|
14035
|
-
return a.length < 32 || dt(g, a, a.length, p, d) !== 0 ? null : g.subarray(
|
|
14035
|
+
return a.length < 32 || dt(g, a, a.length, p, d) !== 0 ? null : g.subarray(q);
|
|
14036
14036
|
}, e.secretbox.keyLength = k, e.secretbox.nonceLength = T, e.secretbox.overheadLength = be, e.scalarMult = function(l, p) {
|
|
14037
14037
|
if (xr(l, p), l.length !== _t) throw new Error("bad n size");
|
|
14038
14038
|
if (p.length !== St) throw new Error("bad p size");
|
|
@@ -14063,7 +14063,7 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14063
14063
|
}, e.box.publicKeyLength = je, e.box.secretKeyLength = Z, e.box.sharedKeyLength = te, e.box.nonceLength = he, e.box.overheadLength = e.secretbox.overheadLength, e.sign = function(l, p) {
|
|
14064
14064
|
if (xr(l, p), p.length !== zt)
|
|
14065
14065
|
throw new Error("bad secret key size");
|
|
14066
|
-
var d = new Uint8Array(
|
|
14066
|
+
var d = new Uint8Array(rt + l.length);
|
|
14067
14067
|
return Bo(d, l, l.length, p), d;
|
|
14068
14068
|
}, e.sign.open = function(l, p) {
|
|
14069
14069
|
if (xr(l, p), p.length !== mt)
|
|
@@ -14073,16 +14073,16 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14073
14073
|
for (var g = new Uint8Array(a), S = 0; S < g.length; S++) g[S] = d[S];
|
|
14074
14074
|
return g;
|
|
14075
14075
|
}, e.sign.detached = function(l, p) {
|
|
14076
|
-
for (var d = e.sign(l, p), a = new Uint8Array(
|
|
14076
|
+
for (var d = e.sign(l, p), a = new Uint8Array(rt), g = 0; g < a.length; g++) a[g] = d[g];
|
|
14077
14077
|
return a;
|
|
14078
14078
|
}, e.sign.detached.verify = function(l, p, d) {
|
|
14079
|
-
if (xr(l, p, d), p.length !==
|
|
14079
|
+
if (xr(l, p, d), p.length !== rt)
|
|
14080
14080
|
throw new Error("bad signature size");
|
|
14081
14081
|
if (d.length !== mt)
|
|
14082
14082
|
throw new Error("bad public key size");
|
|
14083
|
-
var a = new Uint8Array(
|
|
14084
|
-
for (S = 0; S <
|
|
14085
|
-
for (S = 0; S < l.length; S++) a[S +
|
|
14083
|
+
var a = new Uint8Array(rt + l.length), g = new Uint8Array(rt + l.length), S;
|
|
14084
|
+
for (S = 0; S < rt; S++) a[S] = p[S];
|
|
14085
|
+
for (S = 0; S < l.length; S++) a[S + rt] = l[S];
|
|
14086
14086
|
return _(g, a, a.length, d) >= 0;
|
|
14087
14087
|
}, e.sign.keyPair = function() {
|
|
14088
14088
|
var l = new Uint8Array(mt), p = new Uint8Array(zt);
|
|
@@ -14097,7 +14097,7 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14097
14097
|
throw new Error("bad seed size");
|
|
14098
14098
|
for (var p = new Uint8Array(mt), d = new Uint8Array(zt), a = 0; a < 32; a++) d[a] = l[a];
|
|
14099
14099
|
return ws(p, d, !0), { publicKey: p, secretKey: d };
|
|
14100
|
-
}, e.sign.publicKeyLength = mt, e.sign.secretKeyLength = zt, e.sign.seedLength = Ti, e.sign.signatureLength =
|
|
14100
|
+
}, e.sign.publicKeyLength = mt, e.sign.secretKeyLength = zt, e.sign.seedLength = Ti, e.sign.signatureLength = rt, e.hash = function(l) {
|
|
14101
14101
|
xr(l);
|
|
14102
14102
|
var p = new Uint8Array(Ss);
|
|
14103
14103
|
return Zr(p, l, l.length), p;
|
|
@@ -14125,7 +14125,7 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14125
14125
|
})(r.exports ? r.exports : self.nacl = self.nacl || {});
|
|
14126
14126
|
})(D0);
|
|
14127
14127
|
var T1 = D0.exports;
|
|
14128
|
-
const $0 = /* @__PURE__ */
|
|
14128
|
+
const $0 = /* @__PURE__ */ qy(T1);
|
|
14129
14129
|
function N1() {
|
|
14130
14130
|
return $0.box.keyPair();
|
|
14131
14131
|
}
|
|
@@ -14211,56 +14211,56 @@ async function D1() {
|
|
|
14211
14211
|
}
|
|
14212
14212
|
}
|
|
14213
14213
|
async function M0(r) {
|
|
14214
|
-
return
|
|
14214
|
+
return $e(
|
|
14215
14215
|
`${lt}/platform/orgs`,
|
|
14216
14216
|
"POST",
|
|
14217
14217
|
{ name: r }
|
|
14218
14218
|
);
|
|
14219
14219
|
}
|
|
14220
14220
|
async function V0() {
|
|
14221
|
-
return
|
|
14221
|
+
return $e(
|
|
14222
14222
|
`${lt}/platform/orgs`,
|
|
14223
14223
|
"GET",
|
|
14224
14224
|
void 0
|
|
14225
14225
|
);
|
|
14226
14226
|
}
|
|
14227
14227
|
async function L0(r) {
|
|
14228
|
-
return
|
|
14228
|
+
return $e(
|
|
14229
14229
|
`${lt}/platform/orgs/${r}`,
|
|
14230
14230
|
"DELETE",
|
|
14231
14231
|
void 0
|
|
14232
14232
|
);
|
|
14233
14233
|
}
|
|
14234
14234
|
async function H0(r, e, t) {
|
|
14235
|
-
return
|
|
14235
|
+
return $e(
|
|
14236
14236
|
`${lt}/platform/orgs/${r}/projects`,
|
|
14237
14237
|
"POST",
|
|
14238
14238
|
{ name: e, description: t }
|
|
14239
14239
|
);
|
|
14240
14240
|
}
|
|
14241
14241
|
async function F0(r) {
|
|
14242
|
-
return
|
|
14242
|
+
return $e(
|
|
14243
14243
|
`${lt}/platform/orgs/${r}/projects`,
|
|
14244
14244
|
"GET",
|
|
14245
14245
|
void 0
|
|
14246
14246
|
);
|
|
14247
14247
|
}
|
|
14248
14248
|
async function z0(r, e) {
|
|
14249
|
-
return
|
|
14249
|
+
return $e(
|
|
14250
14250
|
`${lt}/platform/orgs/${r}/projects/${e}`,
|
|
14251
14251
|
"GET",
|
|
14252
14252
|
void 0
|
|
14253
14253
|
);
|
|
14254
14254
|
}
|
|
14255
14255
|
async function G0(r, e, t) {
|
|
14256
|
-
return
|
|
14256
|
+
return $e(
|
|
14257
14257
|
`${lt}/platform/orgs/${r}/projects/${e}`,
|
|
14258
14258
|
"PATCH",
|
|
14259
14259
|
t
|
|
14260
14260
|
);
|
|
14261
14261
|
}
|
|
14262
|
-
async function
|
|
14263
|
-
return
|
|
14262
|
+
async function q0(r, e) {
|
|
14263
|
+
return $e(
|
|
14264
14264
|
`${lt}/platform/orgs/${r}/projects/${e}`,
|
|
14265
14265
|
"DELETE",
|
|
14266
14266
|
void 0
|
|
@@ -14270,54 +14270,54 @@ function $1(r) {
|
|
|
14270
14270
|
const e = /^[A-Za-z0-9+/]*[=]{0,2}$/, t = r.length % 4 === 0, n = e.test(r);
|
|
14271
14271
|
return t && n;
|
|
14272
14272
|
}
|
|
14273
|
-
async function
|
|
14273
|
+
async function K0(r, e, t, n) {
|
|
14274
14274
|
if (!$1(n))
|
|
14275
14275
|
throw new Error(
|
|
14276
14276
|
"Secret must be base64 encoded. Use @stablelib/base64's encode function to encode your data."
|
|
14277
14277
|
);
|
|
14278
|
-
return
|
|
14278
|
+
return $e(
|
|
14279
14279
|
`${lt}/platform/orgs/${r}/projects/${e}/secrets`,
|
|
14280
14280
|
"POST",
|
|
14281
14281
|
{ key_name: t, secret: n }
|
|
14282
14282
|
);
|
|
14283
14283
|
}
|
|
14284
14284
|
async function Z0(r, e) {
|
|
14285
|
-
return
|
|
14285
|
+
return $e(
|
|
14286
14286
|
`${lt}/platform/orgs/${r}/projects/${e}/secrets`,
|
|
14287
14287
|
"GET",
|
|
14288
14288
|
void 0
|
|
14289
14289
|
);
|
|
14290
14290
|
}
|
|
14291
14291
|
async function W0(r, e, t) {
|
|
14292
|
-
return
|
|
14292
|
+
return $e(
|
|
14293
14293
|
`${lt}/platform/orgs/${r}/projects/${e}/secrets/${t}`,
|
|
14294
14294
|
"DELETE",
|
|
14295
14295
|
void 0
|
|
14296
14296
|
);
|
|
14297
14297
|
}
|
|
14298
14298
|
async function Y0(r, e) {
|
|
14299
|
-
return
|
|
14299
|
+
return $e(
|
|
14300
14300
|
`${lt}/platform/orgs/${r}/projects/${e}/settings/email`,
|
|
14301
14301
|
"GET",
|
|
14302
14302
|
void 0
|
|
14303
14303
|
);
|
|
14304
14304
|
}
|
|
14305
14305
|
async function J0(r, e, t) {
|
|
14306
|
-
return
|
|
14306
|
+
return $e(
|
|
14307
14307
|
`${lt}/platform/orgs/${r}/projects/${e}/settings/email`,
|
|
14308
14308
|
"PUT",
|
|
14309
14309
|
t
|
|
14310
14310
|
);
|
|
14311
14311
|
}
|
|
14312
14312
|
async function X0(r, e) {
|
|
14313
|
-
return
|
|
14313
|
+
return $e(
|
|
14314
14314
|
`${lt}/platform/orgs/${r}/projects/${e}/settings/oauth`,
|
|
14315
14315
|
"GET",
|
|
14316
14316
|
void 0
|
|
14317
14317
|
);
|
|
14318
14318
|
}
|
|
14319
14319
|
async function Q0(r, e, t) {
|
|
14320
|
-
return
|
|
14320
|
+
return $e(
|
|
14321
14321
|
`${lt}/platform/orgs/${r}/projects/${e}/settings/oauth`,
|
|
14322
14322
|
"PUT",
|
|
14323
14323
|
t
|
|
@@ -14326,63 +14326,63 @@ async function Q0(r, e, t) {
|
|
|
14326
14326
|
async function ey(r, e, t) {
|
|
14327
14327
|
if (!e || e.trim() === "")
|
|
14328
14328
|
throw new Error("Email is required");
|
|
14329
|
-
return
|
|
14329
|
+
return $e(
|
|
14330
14330
|
`${lt}/platform/orgs/${r}/invites`,
|
|
14331
14331
|
"POST",
|
|
14332
14332
|
{ email: e, role: t }
|
|
14333
14333
|
);
|
|
14334
14334
|
}
|
|
14335
14335
|
async function ty(r) {
|
|
14336
|
-
return
|
|
14336
|
+
return $e(
|
|
14337
14337
|
`${lt}/platform/orgs/${r}/invites`,
|
|
14338
14338
|
"GET",
|
|
14339
14339
|
void 0
|
|
14340
14340
|
);
|
|
14341
14341
|
}
|
|
14342
14342
|
async function ry(r, e) {
|
|
14343
|
-
return
|
|
14343
|
+
return $e(
|
|
14344
14344
|
`${lt}/platform/orgs/${r}/invites/${e}`,
|
|
14345
14345
|
"GET",
|
|
14346
14346
|
void 0
|
|
14347
14347
|
);
|
|
14348
14348
|
}
|
|
14349
14349
|
async function ny(r, e) {
|
|
14350
|
-
return
|
|
14350
|
+
return $e(
|
|
14351
14351
|
`${lt}/platform/orgs/${r}/invites/${e}`,
|
|
14352
14352
|
"DELETE",
|
|
14353
14353
|
void 0
|
|
14354
14354
|
);
|
|
14355
14355
|
}
|
|
14356
14356
|
async function iy(r) {
|
|
14357
|
-
return
|
|
14357
|
+
return $e(
|
|
14358
14358
|
`${lt}/platform/orgs/${r}/memberships`,
|
|
14359
14359
|
"GET",
|
|
14360
14360
|
void 0
|
|
14361
14361
|
);
|
|
14362
14362
|
}
|
|
14363
14363
|
async function sy(r, e, t) {
|
|
14364
|
-
return
|
|
14364
|
+
return $e(
|
|
14365
14365
|
`${lt}/platform/orgs/${r}/memberships/${e}`,
|
|
14366
14366
|
"PATCH",
|
|
14367
14367
|
{ role: t }
|
|
14368
14368
|
);
|
|
14369
14369
|
}
|
|
14370
14370
|
async function oy(r, e) {
|
|
14371
|
-
return
|
|
14371
|
+
return $e(
|
|
14372
14372
|
`${lt}/platform/orgs/${r}/memberships/${e}`,
|
|
14373
14373
|
"DELETE",
|
|
14374
14374
|
void 0
|
|
14375
14375
|
);
|
|
14376
14376
|
}
|
|
14377
14377
|
async function ay(r) {
|
|
14378
|
-
return
|
|
14378
|
+
return $e(
|
|
14379
14379
|
`${lt}/platform/accept_invite/${r}`,
|
|
14380
14380
|
"POST",
|
|
14381
14381
|
void 0
|
|
14382
14382
|
);
|
|
14383
14383
|
}
|
|
14384
14384
|
async function M1() {
|
|
14385
|
-
return
|
|
14385
|
+
return $e(`${lt}/platform/me`, "GET", void 0);
|
|
14386
14386
|
}
|
|
14387
14387
|
async function cy(r) {
|
|
14388
14388
|
return Tt(
|
|
@@ -14394,7 +14394,7 @@ async function cy(r) {
|
|
|
14394
14394
|
);
|
|
14395
14395
|
}
|
|
14396
14396
|
async function Da() {
|
|
14397
|
-
return
|
|
14397
|
+
return $e(
|
|
14398
14398
|
`${lt}/platform/request_verification`,
|
|
14399
14399
|
"POST",
|
|
14400
14400
|
void 0,
|
|
@@ -14434,14 +14434,14 @@ async function fy(r, e) {
|
|
|
14434
14434
|
current_password: r,
|
|
14435
14435
|
new_password: e
|
|
14436
14436
|
};
|
|
14437
|
-
return
|
|
14437
|
+
return $e(
|
|
14438
14438
|
`${lt}/platform/change-password`,
|
|
14439
14439
|
"POST",
|
|
14440
14440
|
t,
|
|
14441
14441
|
"Failed to change platform password"
|
|
14442
14442
|
);
|
|
14443
14443
|
}
|
|
14444
|
-
async function
|
|
14444
|
+
async function $e(r, e, t, n) {
|
|
14445
14445
|
const i = async (s = !1) => {
|
|
14446
14446
|
try {
|
|
14447
14447
|
if (s) {
|
|
@@ -14537,29 +14537,29 @@ async function Tt(r, e, t, n, i) {
|
|
|
14537
14537
|
throw new Error("No data received from the server");
|
|
14538
14538
|
return s.data;
|
|
14539
14539
|
}
|
|
14540
|
-
let
|
|
14540
|
+
let Qe = "";
|
|
14541
14541
|
function V1(r) {
|
|
14542
|
-
|
|
14542
|
+
Qe = r;
|
|
14543
14543
|
}
|
|
14544
14544
|
function L1() {
|
|
14545
|
-
return
|
|
14545
|
+
return Qe;
|
|
14546
14546
|
}
|
|
14547
14547
|
async function H1(r, e, t) {
|
|
14548
14548
|
return Tt(
|
|
14549
|
-
`${
|
|
14549
|
+
`${Qe}/login`,
|
|
14550
14550
|
"POST",
|
|
14551
14551
|
{ email: r, password: e, client_id: t }
|
|
14552
14552
|
);
|
|
14553
14553
|
}
|
|
14554
14554
|
async function F1(r, e, t) {
|
|
14555
14555
|
return Tt(
|
|
14556
|
-
`${
|
|
14556
|
+
`${Qe}/login`,
|
|
14557
14557
|
"POST",
|
|
14558
14558
|
{ id: r, password: e, client_id: t }
|
|
14559
14559
|
);
|
|
14560
14560
|
}
|
|
14561
14561
|
async function z1(r, e, t, n, i) {
|
|
14562
|
-
return Tt(`${
|
|
14562
|
+
return Tt(`${Qe}/register`, "POST", {
|
|
14563
14563
|
email: r,
|
|
14564
14564
|
password: e,
|
|
14565
14565
|
inviteCode: t.toLowerCase(),
|
|
@@ -14568,7 +14568,7 @@ async function z1(r, e, t, n, i) {
|
|
|
14568
14568
|
});
|
|
14569
14569
|
}
|
|
14570
14570
|
async function G1(r, e, t) {
|
|
14571
|
-
return Tt(`${
|
|
14571
|
+
return Tt(`${Qe}/register`, "POST", {
|
|
14572
14572
|
password: r,
|
|
14573
14573
|
inviteCode: e.toLowerCase(),
|
|
14574
14574
|
client_id: t
|
|
@@ -14580,7 +14580,7 @@ async function Uc() {
|
|
|
14580
14580
|
const e = { refresh_token: r };
|
|
14581
14581
|
try {
|
|
14582
14582
|
const t = await Tt(
|
|
14583
|
-
`${
|
|
14583
|
+
`${Qe}/refresh`,
|
|
14584
14584
|
"POST",
|
|
14585
14585
|
e,
|
|
14586
14586
|
void 0,
|
|
@@ -14591,25 +14591,25 @@ async function Uc() {
|
|
|
14591
14591
|
throw console.error("Error refreshing token:", t), t;
|
|
14592
14592
|
}
|
|
14593
14593
|
}
|
|
14594
|
-
async function
|
|
14595
|
-
return
|
|
14596
|
-
`${
|
|
14594
|
+
async function q1() {
|
|
14595
|
+
return $e(
|
|
14596
|
+
`${Qe}/protected/user`,
|
|
14597
14597
|
"GET",
|
|
14598
14598
|
void 0,
|
|
14599
14599
|
"Failed to fetch user"
|
|
14600
14600
|
);
|
|
14601
14601
|
}
|
|
14602
14602
|
async function dy(r, e) {
|
|
14603
|
-
return
|
|
14604
|
-
`${
|
|
14603
|
+
return $e(
|
|
14604
|
+
`${Qe}/protected/kv/${r}`,
|
|
14605
14605
|
"PUT",
|
|
14606
14606
|
e,
|
|
14607
14607
|
"Failed to put key-value pair"
|
|
14608
14608
|
);
|
|
14609
14609
|
}
|
|
14610
14610
|
async function py(r) {
|
|
14611
|
-
return
|
|
14612
|
-
`${
|
|
14611
|
+
return $e(
|
|
14612
|
+
`${Qe}/protected/kv/${r}`,
|
|
14613
14613
|
"DELETE",
|
|
14614
14614
|
void 0,
|
|
14615
14615
|
"Failed to delete key-value pair"
|
|
@@ -14617,8 +14617,8 @@ async function py(r) {
|
|
|
14617
14617
|
}
|
|
14618
14618
|
async function yy(r) {
|
|
14619
14619
|
try {
|
|
14620
|
-
return await
|
|
14621
|
-
`${
|
|
14620
|
+
return await $e(
|
|
14621
|
+
`${Qe}/protected/kv/${r}`,
|
|
14622
14622
|
"GET",
|
|
14623
14623
|
void 0,
|
|
14624
14624
|
"Failed to get key-value pair"
|
|
@@ -14629,20 +14629,20 @@ async function yy(r) {
|
|
|
14629
14629
|
}
|
|
14630
14630
|
}
|
|
14631
14631
|
async function gy() {
|
|
14632
|
-
return
|
|
14633
|
-
`${
|
|
14632
|
+
return $e(
|
|
14633
|
+
`${Qe}/protected/kv`,
|
|
14634
14634
|
"GET",
|
|
14635
14635
|
void 0,
|
|
14636
14636
|
"Failed to list key-value pairs"
|
|
14637
14637
|
);
|
|
14638
14638
|
}
|
|
14639
|
-
async function
|
|
14639
|
+
async function K1(r) {
|
|
14640
14640
|
const e = { refresh_token: r };
|
|
14641
|
-
return Tt(`${
|
|
14641
|
+
return Tt(`${Qe}/logout`, "POST", e);
|
|
14642
14642
|
}
|
|
14643
14643
|
async function vy(r) {
|
|
14644
14644
|
return Tt(
|
|
14645
|
-
`${
|
|
14645
|
+
`${Qe}/verify-email/${r}`,
|
|
14646
14646
|
"GET",
|
|
14647
14647
|
void 0,
|
|
14648
14648
|
void 0,
|
|
@@ -14650,21 +14650,21 @@ async function vy(r) {
|
|
|
14650
14650
|
);
|
|
14651
14651
|
}
|
|
14652
14652
|
async function $a() {
|
|
14653
|
-
return
|
|
14654
|
-
`${
|
|
14653
|
+
return $e(
|
|
14654
|
+
`${Qe}/protected/request_verification`,
|
|
14655
14655
|
"POST",
|
|
14656
14656
|
void 0,
|
|
14657
14657
|
"Failed to request new verification code"
|
|
14658
14658
|
);
|
|
14659
14659
|
}
|
|
14660
14660
|
async function Z1(r, e) {
|
|
14661
|
-
const n = await fetch(`${e ||
|
|
14661
|
+
const n = await fetch(`${e || Qe}/attestation/${r}`);
|
|
14662
14662
|
if (!n.ok)
|
|
14663
14663
|
throw new Error(`Request failed with status ${n.status}`);
|
|
14664
14664
|
return (await n.json()).attestation_document;
|
|
14665
14665
|
}
|
|
14666
14666
|
async function W1(r, e, t) {
|
|
14667
|
-
const i = await fetch(`${t ||
|
|
14667
|
+
const i = await fetch(`${t || Qe}/key_exchange`, {
|
|
14668
14668
|
method: "POST",
|
|
14669
14669
|
headers: {
|
|
14670
14670
|
"Content-Type": "application/json"
|
|
@@ -14682,7 +14682,7 @@ async function Y1(r, e, t) {
|
|
|
14682
14682
|
client_id: t
|
|
14683
14683
|
};
|
|
14684
14684
|
return Tt(
|
|
14685
|
-
`${
|
|
14685
|
+
`${Qe}/password-reset/request`,
|
|
14686
14686
|
"POST",
|
|
14687
14687
|
n,
|
|
14688
14688
|
void 0,
|
|
@@ -14698,7 +14698,7 @@ async function J1(r, e, t, n, i) {
|
|
|
14698
14698
|
client_id: i
|
|
14699
14699
|
};
|
|
14700
14700
|
return Tt(
|
|
14701
|
-
`${
|
|
14701
|
+
`${Qe}/password-reset/confirm`,
|
|
14702
14702
|
"POST",
|
|
14703
14703
|
s,
|
|
14704
14704
|
void 0,
|
|
@@ -14710,8 +14710,8 @@ async function my(r, e) {
|
|
|
14710
14710
|
current_password: r,
|
|
14711
14711
|
new_password: e
|
|
14712
14712
|
};
|
|
14713
|
-
return
|
|
14714
|
-
`${
|
|
14713
|
+
return $e(
|
|
14714
|
+
`${Qe}/protected/change_password`,
|
|
14715
14715
|
"POST",
|
|
14716
14716
|
t,
|
|
14717
14717
|
"Failed to change password"
|
|
@@ -14720,7 +14720,7 @@ async function my(r, e) {
|
|
|
14720
14720
|
async function X1(r, e) {
|
|
14721
14721
|
try {
|
|
14722
14722
|
return await Tt(
|
|
14723
|
-
`${
|
|
14723
|
+
`${Qe}/auth/github`,
|
|
14724
14724
|
"POST",
|
|
14725
14725
|
e ? { invite_code: e, client_id: r } : { client_id: r },
|
|
14726
14726
|
void 0,
|
|
@@ -14734,7 +14734,7 @@ async function Q1(r, e, t) {
|
|
|
14734
14734
|
const n = { code: r, state: e, invite_code: t };
|
|
14735
14735
|
try {
|
|
14736
14736
|
return await Tt(
|
|
14737
|
-
`${
|
|
14737
|
+
`${Qe}/auth/github/callback`,
|
|
14738
14738
|
"POST",
|
|
14739
14739
|
n,
|
|
14740
14740
|
void 0,
|
|
@@ -14751,7 +14751,7 @@ async function Q1(r, e, t) {
|
|
|
14751
14751
|
async function ew(r, e) {
|
|
14752
14752
|
try {
|
|
14753
14753
|
return await Tt(
|
|
14754
|
-
`${
|
|
14754
|
+
`${Qe}/auth/google`,
|
|
14755
14755
|
"POST",
|
|
14756
14756
|
e ? { invite_code: e, client_id: r } : { client_id: r },
|
|
14757
14757
|
void 0,
|
|
@@ -14765,7 +14765,7 @@ async function tw(r, e, t) {
|
|
|
14765
14765
|
const n = { code: r, state: e, invite_code: t };
|
|
14766
14766
|
try {
|
|
14767
14767
|
return await Tt(
|
|
14768
|
-
`${
|
|
14768
|
+
`${Qe}/auth/google/callback`,
|
|
14769
14769
|
"POST",
|
|
14770
14770
|
n,
|
|
14771
14771
|
void 0,
|
|
@@ -14782,7 +14782,7 @@ async function tw(r, e, t) {
|
|
|
14782
14782
|
async function rw(r, e) {
|
|
14783
14783
|
try {
|
|
14784
14784
|
return await Tt(
|
|
14785
|
-
`${
|
|
14785
|
+
`${Qe}/auth/apple`,
|
|
14786
14786
|
"POST",
|
|
14787
14787
|
e ? { invite_code: e, client_id: r } : { client_id: r },
|
|
14788
14788
|
void 0,
|
|
@@ -14796,7 +14796,7 @@ async function nw(r, e, t) {
|
|
|
14796
14796
|
const n = { code: r, state: e, invite_code: t };
|
|
14797
14797
|
try {
|
|
14798
14798
|
return await Tt(
|
|
14799
|
-
`${
|
|
14799
|
+
`${Qe}/auth/apple/callback`,
|
|
14800
14800
|
"POST",
|
|
14801
14801
|
n,
|
|
14802
14802
|
void 0,
|
|
@@ -14818,7 +14818,7 @@ async function iw(r, e, t) {
|
|
|
14818
14818
|
};
|
|
14819
14819
|
try {
|
|
14820
14820
|
return await Tt(
|
|
14821
|
-
`${
|
|
14821
|
+
`${Qe}/auth/apple/native`,
|
|
14822
14822
|
"POST",
|
|
14823
14823
|
n,
|
|
14824
14824
|
void 0,
|
|
@@ -14833,13 +14833,13 @@ async function iw(r, e, t) {
|
|
|
14833
14833
|
}
|
|
14834
14834
|
}
|
|
14835
14835
|
async function wy(r) {
|
|
14836
|
-
let e = `${
|
|
14836
|
+
let e = `${Qe}/protected/private_key`;
|
|
14837
14837
|
const t = [];
|
|
14838
14838
|
return r != null && r.seed_phrase_derivation_path && t.push(
|
|
14839
14839
|
`seed_phrase_derivation_path=${encodeURIComponent(r.seed_phrase_derivation_path)}`
|
|
14840
14840
|
), r != null && r.private_key_derivation_path && t.push(
|
|
14841
14841
|
`private_key_derivation_path=${encodeURIComponent(r.private_key_derivation_path)}`
|
|
14842
|
-
), t.length > 0 && (e += `?${t.join("&")}`),
|
|
14842
|
+
), t.length > 0 && (e += `?${t.join("&")}`), $e(
|
|
14843
14843
|
e,
|
|
14844
14844
|
"GET",
|
|
14845
14845
|
void 0,
|
|
@@ -14847,13 +14847,13 @@ async function wy(r) {
|
|
|
14847
14847
|
);
|
|
14848
14848
|
}
|
|
14849
14849
|
async function by(r) {
|
|
14850
|
-
let e = `${
|
|
14850
|
+
let e = `${Qe}/protected/private_key_bytes`;
|
|
14851
14851
|
const t = [];
|
|
14852
14852
|
return r != null && r.seed_phrase_derivation_path && t.push(
|
|
14853
14853
|
`seed_phrase_derivation_path=${encodeURIComponent(r.seed_phrase_derivation_path)}`
|
|
14854
14854
|
), r != null && r.private_key_derivation_path && t.push(
|
|
14855
14855
|
`private_key_derivation_path=${encodeURIComponent(r.private_key_derivation_path)}`
|
|
14856
|
-
), t.length > 0 && (e += `?${t.join("&")}`),
|
|
14856
|
+
), t.length > 0 && (e += `?${t.join("&")}`), $e(
|
|
14857
14857
|
e,
|
|
14858
14858
|
"GET",
|
|
14859
14859
|
void 0,
|
|
@@ -14866,16 +14866,16 @@ async function xy(r, e, t) {
|
|
|
14866
14866
|
algorithm: e,
|
|
14867
14867
|
...t && Object.keys(t).length > 0 && { key_options: t }
|
|
14868
14868
|
};
|
|
14869
|
-
return
|
|
14870
|
-
`${
|
|
14869
|
+
return $e(
|
|
14870
|
+
`${Qe}/protected/sign_message`,
|
|
14871
14871
|
"POST",
|
|
14872
14872
|
i,
|
|
14873
14873
|
"Failed to sign message"
|
|
14874
14874
|
);
|
|
14875
14875
|
}
|
|
14876
14876
|
async function Ay(r, e) {
|
|
14877
|
-
let t = `${
|
|
14878
|
-
return e != null && e.seed_phrase_derivation_path && (t += `&seed_phrase_derivation_path=${encodeURIComponent(e.seed_phrase_derivation_path)}`), e != null && e.private_key_derivation_path && (t += `&private_key_derivation_path=${encodeURIComponent(e.private_key_derivation_path)}`),
|
|
14877
|
+
let t = `${Qe}/protected/public_key?algorithm=${r}`;
|
|
14878
|
+
return e != null && e.seed_phrase_derivation_path && (t += `&seed_phrase_derivation_path=${encodeURIComponent(e.seed_phrase_derivation_path)}`), e != null && e.private_key_derivation_path && (t += `&private_key_derivation_path=${encodeURIComponent(e.private_key_derivation_path)}`), $e(
|
|
14879
14879
|
t,
|
|
14880
14880
|
"GET",
|
|
14881
14881
|
void 0,
|
|
@@ -14888,16 +14888,16 @@ async function sw(r, e, t) {
|
|
|
14888
14888
|
password: e,
|
|
14889
14889
|
...t !== void 0 && { name: t }
|
|
14890
14890
|
};
|
|
14891
|
-
return
|
|
14892
|
-
`${
|
|
14891
|
+
return $e(
|
|
14892
|
+
`${Qe}/protected/convert_guest`,
|
|
14893
14893
|
"POST",
|
|
14894
14894
|
n,
|
|
14895
14895
|
"Failed to convert guest account"
|
|
14896
14896
|
);
|
|
14897
14897
|
}
|
|
14898
14898
|
async function ow(r) {
|
|
14899
|
-
return
|
|
14900
|
-
`${
|
|
14899
|
+
return $e(
|
|
14900
|
+
`${Qe}/protected/third_party_token`,
|
|
14901
14901
|
"POST",
|
|
14902
14902
|
r ? { audience: r } : {},
|
|
14903
14903
|
"Failed to generate third party token"
|
|
@@ -14908,8 +14908,8 @@ async function Sy(r, e) {
|
|
|
14908
14908
|
data: r,
|
|
14909
14909
|
...e && Object.keys(e).length > 0 && { key_options: e }
|
|
14910
14910
|
};
|
|
14911
|
-
return
|
|
14912
|
-
`${
|
|
14911
|
+
return $e(
|
|
14912
|
+
`${Qe}/protected/encrypt`,
|
|
14913
14913
|
"POST",
|
|
14914
14914
|
t,
|
|
14915
14915
|
"Failed to encrypt data"
|
|
@@ -14920,14 +14920,37 @@ async function _y(r, e) {
|
|
|
14920
14920
|
encrypted_data: r,
|
|
14921
14921
|
...e && Object.keys(e).length > 0 && { key_options: e }
|
|
14922
14922
|
};
|
|
14923
|
-
return
|
|
14924
|
-
`${
|
|
14923
|
+
return $e(
|
|
14924
|
+
`${Qe}/protected/decrypt`,
|
|
14925
14925
|
"POST",
|
|
14926
14926
|
t,
|
|
14927
14927
|
"Failed to decrypt data"
|
|
14928
14928
|
);
|
|
14929
14929
|
}
|
|
14930
|
-
function aw() {
|
|
14930
|
+
async function aw(r) {
|
|
14931
|
+
const e = {
|
|
14932
|
+
hashed_secret: r
|
|
14933
|
+
};
|
|
14934
|
+
return $e(
|
|
14935
|
+
`${Qe}/protected/delete-account/request`,
|
|
14936
|
+
"POST",
|
|
14937
|
+
e,
|
|
14938
|
+
"Failed to request account deletion"
|
|
14939
|
+
);
|
|
14940
|
+
}
|
|
14941
|
+
async function cw(r, e) {
|
|
14942
|
+
const t = {
|
|
14943
|
+
uuid: r,
|
|
14944
|
+
plaintext_secret: e
|
|
14945
|
+
};
|
|
14946
|
+
return $e(
|
|
14947
|
+
`${Qe}/protected/delete-account/confirm`,
|
|
14948
|
+
"POST",
|
|
14949
|
+
t,
|
|
14950
|
+
"Failed to confirm account deletion"
|
|
14951
|
+
);
|
|
14952
|
+
}
|
|
14953
|
+
function lw() {
|
|
14931
14954
|
return async (r, e) => {
|
|
14932
14955
|
var n, i;
|
|
14933
14956
|
const t = () => {
|
|
@@ -14969,7 +14992,7 @@ function aw() {
|
|
|
14969
14992
|
const I = x.decode(O);
|
|
14970
14993
|
G += I;
|
|
14971
14994
|
let P;
|
|
14972
|
-
for (; P =
|
|
14995
|
+
for (; P = uw(G); )
|
|
14973
14996
|
if (G = G.slice(P.length), P.trim().startsWith("data: ")) {
|
|
14974
14997
|
const R = P.slice(6).trim();
|
|
14975
14998
|
if (R === "[DONE]")
|
|
@@ -15013,13 +15036,13 @@ function aw() {
|
|
|
15013
15036
|
}
|
|
15014
15037
|
};
|
|
15015
15038
|
}
|
|
15016
|
-
function
|
|
15039
|
+
function uw(r) {
|
|
15017
15040
|
const e = r.indexOf(`
|
|
15018
15041
|
|
|
15019
15042
|
`);
|
|
15020
15043
|
return e === -1 ? null : r.slice(0, e + 2);
|
|
15021
15044
|
}
|
|
15022
|
-
const
|
|
15045
|
+
const fw = [
|
|
15023
15046
|
"eeddbb58f57c38894d6d5af5e575fbe791c5bf3bbcfb5df8da8cfcf0c2e1da1913108e6a762112444740b88c163d7f4b",
|
|
15024
15047
|
"74ed417f88cb0ca76c4a3d10f278bd010f1d3f95eafb254d4732511bb50e404507a4049b779c5230137e4091a5582271",
|
|
15025
15048
|
"9043fcab93b972d3c14ad2dc8fa78ca7ad374fc937c02435681772a003f7a72876bc4d578089b5c4cf3fe9b480f1aabb",
|
|
@@ -15027,7 +15050,7 @@ const lw = [
|
|
|
15027
15050
|
"91cb67311e910cce68cd5b7d0de77aa40610d87c6681439b44c46c3ff786ae643956ab2c812478a1da8745b259f07a45",
|
|
15028
15051
|
"859065ac81b81d3735130ba08b8af72a7256b603fefb74faabae25ed28cca6edcaa7c10ea32b5948d675c18a9b0f2b1d",
|
|
15029
15052
|
"acd82a7d3943e23e95a9dc3ce0b0107ea358d6287f9e3afa245622f7c7e3e0a66142a928b6efcc02f594a95366d3a99d"
|
|
15030
|
-
],
|
|
15053
|
+
], hw = [
|
|
15031
15054
|
"62c0407056217a4c10764ed9045694c29fa93255d3cc04c2f989cdd9a1f8050c8b169714c71f1118ebce2fcc9951d1a9",
|
|
15032
15055
|
"cb95519905443f9f66f05f63c548b61ad1561a27fd5717b69285861aaea3c3063fe12a2571773b67fea3c6c11b4d8ec6",
|
|
15033
15056
|
"deb5895831b5e4286f5a2dcf5e9c27383821446f8df2b465f141d10743599be20ba3bb381ce063bf7139cc89f7f61d4c",
|
|
@@ -15035,14 +15058,14 @@ const lw = [
|
|
|
15035
15058
|
"669404ea71435b8f498b48db7816a5c2ab1d258b1a77685b11d84d15a73189504d79c4dee13a658de9f4a0cbfc39cfe8",
|
|
15036
15059
|
"a791bf92c25ffdfd372660e460a0e238c6778c090672df6509ae4bc065cf8668b6baac6b6a11d554af53ee0ff0172ad5",
|
|
15037
15060
|
"c4285443b87b9b12a6cea3bef1064ec060f652b235a297095975af8f134e5ed65f92d70d4616fdec80af9dff48bb9f35"
|
|
15038
|
-
],
|
|
15061
|
+
], dw = "MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEHiUY9kFWK1GqBGzczohhwEwElXzgWLDZa9R6wBx3JOBocgSt9+UIzZlJbPDjYeGBfDUXh7Z62BG2vVsh2NgclLB5S7A2ucBBtb1wd8vSQHP8jpdPhZX1slauPgbnROIP", pw = {
|
|
15039
15062
|
prod: "https://raw.githubusercontent.com/OpenSecretCloud/opensecret/master/pcrProdHistory.json",
|
|
15040
15063
|
dev: "https://raw.githubusercontent.com/OpenSecretCloud/opensecret/master/pcrDevHistory.json"
|
|
15041
15064
|
};
|
|
15042
|
-
async function
|
|
15065
|
+
async function yw() {
|
|
15043
15066
|
try {
|
|
15044
15067
|
const r = new Uint8Array(
|
|
15045
|
-
atob(
|
|
15068
|
+
atob(dw).split("").map((e) => e.charCodeAt(0))
|
|
15046
15069
|
);
|
|
15047
15070
|
return await crypto.subtle.importKey(
|
|
15048
15071
|
"spki",
|
|
@@ -15064,9 +15087,9 @@ async function dw() {
|
|
|
15064
15087
|
throw console.error("Error importing verification key:", r), new Error("Failed to import PCR verification key");
|
|
15065
15088
|
}
|
|
15066
15089
|
}
|
|
15067
|
-
async function
|
|
15090
|
+
async function gw(r, e) {
|
|
15068
15091
|
try {
|
|
15069
|
-
const t = (e == null ? void 0 : e[r]) ||
|
|
15092
|
+
const t = (e == null ? void 0 : e[r]) || pw[r], n = await fetch(t);
|
|
15070
15093
|
if (!n.ok)
|
|
15071
15094
|
throw new Error(`Failed to fetch PCR history: ${n.status}`);
|
|
15072
15095
|
return await n.json();
|
|
@@ -15074,7 +15097,7 @@ async function pw(r, e) {
|
|
|
15074
15097
|
throw console.error("Error fetching PCR history:", t), new Error("Failed to fetch PCR history");
|
|
15075
15098
|
}
|
|
15076
15099
|
}
|
|
15077
|
-
async function
|
|
15100
|
+
async function vw(r, e, t) {
|
|
15078
15101
|
try {
|
|
15079
15102
|
const i = new TextEncoder().encode(r), s = new Uint8Array(
|
|
15080
15103
|
atob(e).split("").map((o) => o.charCodeAt(0))
|
|
@@ -15095,9 +15118,9 @@ async function yw(r, e, t) {
|
|
|
15095
15118
|
}
|
|
15096
15119
|
async function yd(r, e, t) {
|
|
15097
15120
|
try {
|
|
15098
|
-
const n = await
|
|
15121
|
+
const n = await yw(), i = await gw(e, t);
|
|
15099
15122
|
for (const s of i)
|
|
15100
|
-
if (s.PCR0 === r && await
|
|
15123
|
+
if (s.PCR0 === r && await vw(s.PCR0, s.signature, n))
|
|
15101
15124
|
return {
|
|
15102
15125
|
isMatch: !0,
|
|
15103
15126
|
text: "PCR0 matches remotely attested value",
|
|
@@ -15108,8 +15131,8 @@ async function yd(r, e, t) {
|
|
|
15108
15131
|
return console.error("PCR remote validation error:", n), null;
|
|
15109
15132
|
}
|
|
15110
15133
|
}
|
|
15111
|
-
async function
|
|
15112
|
-
const t = [...(e == null ? void 0 : e.pcr0Values) || [], ...
|
|
15134
|
+
async function mw(r, e) {
|
|
15135
|
+
const t = [...(e == null ? void 0 : e.pcr0Values) || [], ...fw], n = [...(e == null ? void 0 : e.pcr0DevValues) || [], ...hw];
|
|
15113
15136
|
if (t.includes(r))
|
|
15114
15137
|
return {
|
|
15115
15138
|
isMatch: !0,
|
|
@@ -15148,7 +15171,7 @@ const ts = Ua, Dc = "641a0321a3e244efe456463195d606317ed7cdcc3c1756e09893f3c68f7
|
|
|
15148
15171
|
function Ey(r) {
|
|
15149
15172
|
return Array.from(r).map((e) => e.toString(16).padStart(2, "0")).join("");
|
|
15150
15173
|
}
|
|
15151
|
-
async function
|
|
15174
|
+
async function ww(r) {
|
|
15152
15175
|
const e = await crypto.subtle.digest("SHA-256", r);
|
|
15153
15176
|
return Ey(new Uint8Array(e));
|
|
15154
15177
|
}
|
|
@@ -15159,7 +15182,7 @@ async function rs(r, e, t) {
|
|
|
15159
15182
|
value: Ey(x)
|
|
15160
15183
|
})).filter((m) => !m.value.match(/^0+$/)), i = n.find((m) => m.id === 0);
|
|
15161
15184
|
let s = null;
|
|
15162
|
-
i && (s = await
|
|
15185
|
+
i && (s = await mw(i.value, t));
|
|
15163
15186
|
const o = [...e, r.certificate].map((m) => {
|
|
15164
15187
|
const x = new wi(m);
|
|
15165
15188
|
return {
|
|
@@ -15169,7 +15192,7 @@ async function rs(r, e, t) {
|
|
|
15169
15192
|
pem: x.toString("pem"),
|
|
15170
15193
|
isRoot: x.subject === "C=US, O=Amazon, OU=AWS, CN=aws.nitro-enclaves"
|
|
15171
15194
|
};
|
|
15172
|
-
}), c = new TextDecoder(), u = new wi(e[0]), h = await
|
|
15195
|
+
}), c = new TextDecoder(), u = new wi(e[0]), h = await ww(u.rawData);
|
|
15173
15196
|
return {
|
|
15174
15197
|
moduleId: r.module_id,
|
|
15175
15198
|
publicKey: r.public_key ? $r(r.public_key) : null,
|
|
@@ -15228,6 +15251,10 @@ const Iy = wd({
|
|
|
15228
15251
|
},
|
|
15229
15252
|
confirmPasswordReset: async () => {
|
|
15230
15253
|
},
|
|
15254
|
+
requestAccountDeletion: async () => {
|
|
15255
|
+
},
|
|
15256
|
+
confirmAccountDeletion: async () => {
|
|
15257
|
+
},
|
|
15231
15258
|
initiateGitHubAuth: async () => ({ auth_url: "", csrf_token: "" }),
|
|
15232
15259
|
handleGitHubCallback: async () => {
|
|
15233
15260
|
},
|
|
@@ -15258,7 +15285,7 @@ const Iy = wd({
|
|
|
15258
15285
|
encryptData: Sy,
|
|
15259
15286
|
decryptData: _y
|
|
15260
15287
|
});
|
|
15261
|
-
function
|
|
15288
|
+
function bx({
|
|
15262
15289
|
children: r,
|
|
15263
15290
|
apiUrl: e,
|
|
15264
15291
|
clientId: t,
|
|
@@ -15282,7 +15309,7 @@ function mx({
|
|
|
15282
15309
|
W.configure(e, ne);
|
|
15283
15310
|
});
|
|
15284
15311
|
}, [e, t]), Os(() => {
|
|
15285
|
-
i.user ? c(() =>
|
|
15312
|
+
i.user ? c(() => lw()) : c(void 0);
|
|
15286
15313
|
}, [i.user]);
|
|
15287
15314
|
async function u() {
|
|
15288
15315
|
const W = window.localStorage.getItem("access_token"), ne = window.localStorage.getItem("refresh_token");
|
|
@@ -15294,7 +15321,7 @@ function mx({
|
|
|
15294
15321
|
return;
|
|
15295
15322
|
}
|
|
15296
15323
|
try {
|
|
15297
|
-
const ie = await
|
|
15324
|
+
const ie = await q1();
|
|
15298
15325
|
s({
|
|
15299
15326
|
loading: !1,
|
|
15300
15327
|
user: ie
|
|
@@ -15320,16 +15347,16 @@ function mx({
|
|
|
15320
15347
|
}
|
|
15321
15348
|
async function m(W, ne, ie, xe) {
|
|
15322
15349
|
try {
|
|
15323
|
-
const { access_token:
|
|
15350
|
+
const { access_token: tt, refresh_token: At } = await z1(
|
|
15324
15351
|
W,
|
|
15325
15352
|
ne,
|
|
15326
15353
|
ie,
|
|
15327
15354
|
t,
|
|
15328
15355
|
xe || null
|
|
15329
15356
|
);
|
|
15330
|
-
window.localStorage.setItem("access_token",
|
|
15331
|
-
} catch (
|
|
15332
|
-
throw console.error(
|
|
15357
|
+
window.localStorage.setItem("access_token", tt), window.localStorage.setItem("refresh_token", At), await u();
|
|
15358
|
+
} catch (tt) {
|
|
15359
|
+
throw console.error(tt), tt;
|
|
15333
15360
|
}
|
|
15334
15361
|
}
|
|
15335
15362
|
async function x(W, ne) {
|
|
@@ -15343,12 +15370,12 @@ function mx({
|
|
|
15343
15370
|
}
|
|
15344
15371
|
async function G(W, ne) {
|
|
15345
15372
|
try {
|
|
15346
|
-
const { access_token: ie, refresh_token: xe, id:
|
|
15373
|
+
const { access_token: ie, refresh_token: xe, id: tt } = await G1(
|
|
15347
15374
|
W,
|
|
15348
15375
|
ne,
|
|
15349
15376
|
t
|
|
15350
15377
|
);
|
|
15351
|
-
return window.localStorage.setItem("access_token", ie), window.localStorage.setItem("refresh_token", xe), await u(), { access_token: ie, refresh_token: xe, id:
|
|
15378
|
+
return window.localStorage.setItem("access_token", ie), window.localStorage.setItem("refresh_token", xe), await u(), { access_token: ie, refresh_token: xe, id: tt };
|
|
15352
15379
|
} catch (ie) {
|
|
15353
15380
|
throw console.error(ie), ie;
|
|
15354
15381
|
}
|
|
@@ -15364,7 +15391,7 @@ function mx({
|
|
|
15364
15391
|
const W = window.localStorage.getItem("refresh_token");
|
|
15365
15392
|
if (W)
|
|
15366
15393
|
try {
|
|
15367
|
-
await
|
|
15394
|
+
await K1(W);
|
|
15368
15395
|
} catch (ne) {
|
|
15369
15396
|
console.error("Error during logout:", ne);
|
|
15370
15397
|
}
|
|
@@ -15394,6 +15421,8 @@ function mx({
|
|
|
15394
15421
|
refreshAccessToken: Uc,
|
|
15395
15422
|
requestPasswordReset: (W, ne) => Y1(W, ne, t),
|
|
15396
15423
|
confirmPasswordReset: (W, ne, ie, xe) => J1(W, ne, ie, xe, t),
|
|
15424
|
+
requestAccountDeletion: aw,
|
|
15425
|
+
confirmAccountDeletion: cw,
|
|
15397
15426
|
initiateGitHubAuth: async (W) => {
|
|
15398
15427
|
try {
|
|
15399
15428
|
return await X1(t, W);
|
|
@@ -15403,12 +15432,12 @@ function mx({
|
|
|
15403
15432
|
},
|
|
15404
15433
|
handleGitHubCallback: async (W, ne, ie) => {
|
|
15405
15434
|
try {
|
|
15406
|
-
const { access_token: xe, refresh_token:
|
|
15435
|
+
const { access_token: xe, refresh_token: tt } = await Q1(
|
|
15407
15436
|
W,
|
|
15408
15437
|
ne,
|
|
15409
15438
|
ie
|
|
15410
15439
|
);
|
|
15411
|
-
window.localStorage.setItem("access_token", xe), window.localStorage.setItem("refresh_token",
|
|
15440
|
+
window.localStorage.setItem("access_token", xe), window.localStorage.setItem("refresh_token", tt), await u();
|
|
15412
15441
|
} catch (xe) {
|
|
15413
15442
|
throw console.error("GitHub callback error:", xe), xe;
|
|
15414
15443
|
}
|
|
@@ -15422,12 +15451,12 @@ function mx({
|
|
|
15422
15451
|
},
|
|
15423
15452
|
handleGoogleCallback: async (W, ne, ie) => {
|
|
15424
15453
|
try {
|
|
15425
|
-
const { access_token: xe, refresh_token:
|
|
15454
|
+
const { access_token: xe, refresh_token: tt } = await tw(
|
|
15426
15455
|
W,
|
|
15427
15456
|
ne,
|
|
15428
15457
|
ie
|
|
15429
15458
|
);
|
|
15430
|
-
window.localStorage.setItem("access_token", xe), window.localStorage.setItem("refresh_token",
|
|
15459
|
+
window.localStorage.setItem("access_token", xe), window.localStorage.setItem("refresh_token", tt), await u();
|
|
15431
15460
|
} catch (xe) {
|
|
15432
15461
|
throw console.error("Google callback error:", xe), xe;
|
|
15433
15462
|
}
|
|
@@ -15441,12 +15470,12 @@ function mx({
|
|
|
15441
15470
|
},
|
|
15442
15471
|
handleAppleCallback: async (W, ne, ie) => {
|
|
15443
15472
|
try {
|
|
15444
|
-
const { access_token: xe, refresh_token:
|
|
15473
|
+
const { access_token: xe, refresh_token: tt } = await nw(
|
|
15445
15474
|
W,
|
|
15446
15475
|
ne,
|
|
15447
15476
|
ie
|
|
15448
15477
|
);
|
|
15449
|
-
window.localStorage.setItem("access_token", xe), window.localStorage.setItem("refresh_token",
|
|
15478
|
+
window.localStorage.setItem("access_token", xe), window.localStorage.setItem("refresh_token", tt), await u();
|
|
15450
15479
|
} catch (xe) {
|
|
15451
15480
|
throw console.error("Apple callback error:", xe), xe;
|
|
15452
15481
|
}
|
|
@@ -15531,8 +15560,8 @@ const ky = wd({
|
|
|
15531
15560
|
listProjects: F0,
|
|
15532
15561
|
getProject: z0,
|
|
15533
15562
|
updateProject: G0,
|
|
15534
|
-
deleteProject:
|
|
15535
|
-
createProjectSecret:
|
|
15563
|
+
deleteProject: q0,
|
|
15564
|
+
createProjectSecret: K0,
|
|
15536
15565
|
listProjectSecrets: Z0,
|
|
15537
15566
|
deleteProjectSecret: W0,
|
|
15538
15567
|
getEmailSettings: Y0,
|
|
@@ -15549,7 +15578,7 @@ const ky = wd({
|
|
|
15549
15578
|
acceptInvite: ay,
|
|
15550
15579
|
apiUrl: ""
|
|
15551
15580
|
});
|
|
15552
|
-
function
|
|
15581
|
+
function xx({
|
|
15553
15582
|
children: r,
|
|
15554
15583
|
apiUrl: e,
|
|
15555
15584
|
pcrConfig: t = {}
|
|
@@ -15670,8 +15699,8 @@ function wx({
|
|
|
15670
15699
|
listProjects: F0,
|
|
15671
15700
|
getProject: z0,
|
|
15672
15701
|
updateProject: G0,
|
|
15673
|
-
deleteProject:
|
|
15674
|
-
createProjectSecret:
|
|
15702
|
+
deleteProject: q0,
|
|
15703
|
+
createProjectSecret: K0,
|
|
15675
15704
|
listProjectSecrets: Z0,
|
|
15676
15705
|
deleteProjectSecret: W0,
|
|
15677
15706
|
getEmailSettings: Y0,
|
|
@@ -15690,28 +15719,28 @@ function wx({
|
|
|
15690
15719
|
};
|
|
15691
15720
|
return /* @__PURE__ */ md(ky.Provider, { value: h, children: r });
|
|
15692
15721
|
}
|
|
15693
|
-
function
|
|
15722
|
+
function Ax() {
|
|
15694
15723
|
return bd(Iy);
|
|
15695
15724
|
}
|
|
15696
|
-
function
|
|
15725
|
+
function Sx() {
|
|
15697
15726
|
return bd(ky);
|
|
15698
15727
|
}
|
|
15699
|
-
function
|
|
15728
|
+
function _x() {
|
|
15700
15729
|
const r = new Uint8Array(32);
|
|
15701
15730
|
return crypto.getRandomValues(r), Array.from(r, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
15702
15731
|
}
|
|
15703
|
-
async function
|
|
15732
|
+
async function Ex(r) {
|
|
15704
15733
|
const t = new TextEncoder().encode(r), n = await crypto.subtle.digest("SHA-256", t);
|
|
15705
15734
|
return Array.from(new Uint8Array(n)).map((s) => s.toString(16).padStart(2, "0")).join("");
|
|
15706
15735
|
}
|
|
15707
15736
|
export {
|
|
15708
15737
|
Iy as OpenSecretContext,
|
|
15709
|
-
|
|
15738
|
+
xx as OpenSecretDeveloper,
|
|
15710
15739
|
ky as OpenSecretDeveloperContext,
|
|
15711
|
-
|
|
15740
|
+
bx as OpenSecretProvider,
|
|
15712
15741
|
Ho as apiConfig,
|
|
15713
|
-
|
|
15714
|
-
|
|
15715
|
-
|
|
15716
|
-
|
|
15742
|
+
_x as generateSecureSecret,
|
|
15743
|
+
Ex as hashSecret,
|
|
15744
|
+
Ax as useOpenSecret,
|
|
15745
|
+
Sx as useOpenSecretDeveloper
|
|
15717
15746
|
};
|