@opensecret/react 1.3.4 → 1.3.6

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.
@@ -1,10 +1,10 @@
1
- var By = Object.defineProperty;
1
+ var Oy = Object.defineProperty;
2
2
  var _f = (r) => {
3
3
  throw TypeError(r);
4
4
  };
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 He = (r, e, t) => Oy(r, typeof e != "symbol" ? e + "" : e, t), Mc = (r, e, t) => e.has(r) || _f("Cannot " + t);
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);
5
+ var Ty = (r, e, t) => e in r ? Oy(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
6
+ var He = (r, e, t) => Ty(r, typeof e != "symbol" ? e + "" : e, t), Mc = (r, e, t) => e.has(r) || _f("Cannot " + t);
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), De = (r, e, t) => (Mc(r, e, "access private method"), t);
8
8
  var Ef = (r, e, t, n) => ({
9
9
  set _(i) {
10
10
  kt(r, e, i, t);
@@ -15,7 +15,7 @@ var Ef = (r, e, t, n) => ({
15
15
  });
16
16
  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
- class Ty {
18
+ class Ny {
19
19
  constructor() {
20
20
  He(this, "_appApiUrl", "");
21
21
  He(this, "_platformApiUrl", "");
@@ -70,11 +70,11 @@ class Ty {
70
70
  return this.isPlatformPath(e) ? "platformRefreshToken" : "refreshToken";
71
71
  }
72
72
  }
73
- const Ho = new Ty(), xd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
73
+ const Ho = new Ny(), xd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
74
74
  __proto__: null,
75
75
  apiConfig: Ho
76
76
  }, Symbol.toStringTag, { value: "Module" })), hr = 256;
77
- class Ny {
77
+ class Py {
78
78
  // TODO(dchest): methods to encode chunk-by-chunk.
79
79
  constructor(e = "=") {
80
80
  He(this, "_paddingCharacter");
@@ -142,7 +142,7 @@ class Ny {
142
142
  return t;
143
143
  }
144
144
  }
145
- const Ad = new Ny();
145
+ const Ad = new Py();
146
146
  function $r(r) {
147
147
  return Ad.encode(r);
148
148
  }
@@ -160,12 +160,12 @@ function Cr(r) {
160
160
  r[e] = 0;
161
161
  return r;
162
162
  }
163
- const Py = 20;
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, tt = G, At = N, It = v, dt = A, Xe = O, ae = I, Ee = P;
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, 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);
163
+ const jy = 20;
164
+ function Ry(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, je = c, W = u, ne = h, ie = m, xe = x, tt = G, At = N, It = v, dt = A, Qe = O, ae = I, Ee = P;
166
+ for (let gt = 0; gt < jy; gt += 2)
167
+ R = R + je | 0, dt ^= R, dt = dt >>> 16 | dt << 16, xe = xe + dt | 0, je ^= xe, je = je >>> 20 | je << 12, ue = ue + W | 0, Qe ^= ue, Qe = Qe >>> 16 | Qe << 16, tt = tt + Qe | 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, Qe ^= ue, Qe = Qe >>> 24 | Qe << 8, tt = tt + Qe | 0, W ^= tt, W = W >>> 25 | W << 7, R = R + je | 0, dt ^= R, dt = dt >>> 24 | dt << 8, xe = xe + dt | 0, je ^= xe, je = je >>> 25 | je << 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, Qe ^= Ge, Qe = Qe >>> 16 | Qe << 16, xe = xe + Qe | 0, ie ^= xe, ie = ie >>> 20 | ie << 12, Ye = Ye + je | 0, ae ^= Ye, ae = ae >>> 16 | ae << 16, tt = tt + ae | 0, je ^= tt, je = je >>> 20 | je << 12, Ge = Ge + ie | 0, Qe ^= Ge, Qe = Qe >>> 24 | Qe << 8, xe = xe + Qe | 0, ie ^= xe, ie = ie >>> 25 | ie << 7, Ye = Ye + je | 0, ae ^= Ye, ae = ae >>> 24 | ae << 8, tt = tt + ae | 0, je ^= tt, je = je >>> 25 | je << 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(je + 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(Qe + 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)
@@ -184,24 +184,24 @@ function il(r, e, t, n, i = 0) {
184
184
  }
185
185
  const c = new Uint8Array(64);
186
186
  for (let u = 0; u < t.length; u += 64) {
187
- jy(c, s, r);
187
+ Ry(c, s, r);
188
188
  for (let h = u; h < u + 64 && h < t.length; h++)
189
189
  n[h] = t[h] ^ c[h - u];
190
- Ry(s, 0, o);
190
+ Uy(s, 0, o);
191
191
  }
192
192
  return Cr(c), i === 0 && Cr(s), n;
193
193
  }
194
194
  function kf(r, e, t, n = 0) {
195
195
  return Cr(t), il(r, e, t, t, n);
196
196
  }
197
- function Ry(r, e, t) {
197
+ function Uy(r, e, t) {
198
198
  let n = 1;
199
199
  for (; t--; )
200
200
  n = n + (r[e] & 255) | 0, r[e] = n & 255, n >>>= 8, e++;
201
201
  if (n > 0)
202
202
  throw new Error("ChaCha: counter overflow");
203
203
  }
204
- function Uy(r, e) {
204
+ function Dy(r, e) {
205
205
  if (r.length !== e.length)
206
206
  return 0;
207
207
  let t = 0;
@@ -209,13 +209,13 @@ function Uy(r, e) {
209
209
  t |= r[n] ^ e[n];
210
210
  return 1 & t - 1 >>> 8;
211
211
  }
212
- function Dy(r, e) {
213
- return r.length === 0 || e.length === 0 ? !1 : Uy(r, e) !== 0;
212
+ function $y(r, e) {
213
+ return r.length === 0 || e.length === 0 ? !1 : Dy(r, e) !== 0;
214
214
  }
215
- const $y = 16;
216
- class My {
215
+ const My = 16;
216
+ class Vy {
217
217
  constructor(e) {
218
- He(this, "digestLength", $y);
218
+ He(this, "digestLength", My);
219
219
  He(this, "_buffer", new Uint8Array(16));
220
220
  He(this, "_r", new Uint16Array(10));
221
221
  He(this, "_h", new Uint16Array(10));
@@ -241,7 +241,7 @@ class My {
241
241
  this._r[8] = (u >>> 8 | h << 8) & 8191, this._r[9] = h >>> 5 & 127, this._pad[0] = e[16] | e[17] << 8, this._pad[1] = e[18] | e[19] << 8, this._pad[2] = e[20] | e[21] << 8, this._pad[3] = e[22] | e[23] << 8, this._pad[4] = e[24] | e[25] << 8, this._pad[5] = e[26] | e[27] << 8, this._pad[6] = e[28] | e[29] << 8, this._pad[7] = e[30] | e[31] << 8;
242
242
  }
243
243
  _blocks(e, t, n) {
244
- let i = this._fin ? 0 : 2048, s = this._h[0], o = this._h[1], c = this._h[2], u = this._h[3], h = this._h[4], m = this._h[5], x = this._h[6], G = this._h[7], N = this._h[8], v = this._h[9], A = this._r[0], O = this._r[1], I = this._r[2], P = this._r[3], R = this._r[4], ue = this._r[5], Ge = this._r[6], Ye = this._r[7], Pe = this._r[8], W = this._r[9];
244
+ let i = this._fin ? 0 : 2048, s = this._h[0], o = this._h[1], c = this._h[2], u = this._h[3], h = this._h[4], m = this._h[5], x = this._h[6], G = this._h[7], N = this._h[8], v = this._h[9], A = this._r[0], O = this._r[1], I = this._r[2], P = this._r[3], R = this._r[4], ue = this._r[5], Ge = this._r[6], Ye = this._r[7], je = this._r[8], W = this._r[9];
245
245
  for (; n >= 16; ) {
246
246
  let ne = e[t + 0] | e[t + 1] << 8;
247
247
  s += ne & 8191;
@@ -257,28 +257,28 @@ class My {
257
257
  x += (At >>> 14 | It << 2) & 8191;
258
258
  let dt = e[t + 12] | e[t + 13] << 8;
259
259
  G += (It >>> 11 | dt << 5) & 8191;
260
- let Xe = e[t + 14] | e[t + 15] << 8;
261
- N += (dt >>> 8 | Xe << 8) & 8191, v += Xe >>> 5 | i;
260
+ let Qe = e[t + 14] | e[t + 15] << 8;
261
+ N += (dt >>> 8 | Qe << 8) & 8191, v += Qe >>> 5 | i;
262
262
  let ae = 0, Ee = ae;
263
- Ee += s * A, Ee += o * (5 * W), Ee += c * (5 * Pe), Ee += u * (5 * Ye), Ee += h * (5 * Ge), ae = Ee >>> 13, Ee &= 8191, Ee += m * (5 * ue), Ee += x * (5 * R), Ee += G * (5 * P), Ee += N * (5 * I), Ee += v * (5 * O), ae += Ee >>> 13, Ee &= 8191;
263
+ Ee += s * A, Ee += o * (5 * W), Ee += c * (5 * je), Ee += u * (5 * Ye), Ee += h * (5 * Ge), ae = Ee >>> 13, Ee &= 8191, Ee += m * (5 * ue), Ee += x * (5 * R), Ee += G * (5 * P), Ee += N * (5 * I), Ee += v * (5 * O), ae += Ee >>> 13, Ee &= 8191;
264
264
  let gt = ae;
265
- gt += s * O, gt += o * A, gt += c * (5 * W), gt += u * (5 * Pe), gt += h * (5 * Ye), ae = gt >>> 13, gt &= 8191, gt += m * (5 * Ge), gt += x * (5 * ue), gt += G * (5 * R), gt += N * (5 * P), gt += v * (5 * I), ae += gt >>> 13, gt &= 8191;
265
+ gt += s * O, gt += o * A, gt += c * (5 * W), gt += u * (5 * je), gt += h * (5 * Ye), ae = gt >>> 13, gt &= 8191, gt += m * (5 * Ge), gt += x * (5 * ue), gt += G * (5 * R), gt += N * (5 * P), gt += v * (5 * I), ae += gt >>> 13, gt &= 8191;
266
266
  let Ut = ae;
267
- Ut += s * I, Ut += o * O, Ut += c * A, Ut += u * (5 * W), Ut += h * (5 * Pe), ae = Ut >>> 13, Ut &= 8191, Ut += m * (5 * Ye), Ut += x * (5 * Ge), Ut += G * (5 * ue), Ut += N * (5 * R), Ut += v * (5 * P), ae += Ut >>> 13, Ut &= 8191;
267
+ Ut += s * I, Ut += o * O, Ut += c * A, Ut += u * (5 * W), Ut += h * (5 * je), ae = Ut >>> 13, Ut &= 8191, Ut += m * (5 * Ye), Ut += x * (5 * Ge), Ut += G * (5 * ue), Ut += N * (5 * R), Ut += v * (5 * P), ae += Ut >>> 13, Ut &= 8191;
268
268
  let Dt = ae;
269
- Dt += s * P, Dt += o * I, Dt += c * O, Dt += u * A, Dt += h * (5 * W), ae = Dt >>> 13, Dt &= 8191, Dt += m * (5 * Pe), Dt += x * (5 * Ye), Dt += G * (5 * Ge), Dt += N * (5 * ue), Dt += v * (5 * R), ae += Dt >>> 13, Dt &= 8191;
269
+ Dt += s * P, Dt += o * I, Dt += c * O, Dt += u * A, Dt += h * (5 * W), ae = Dt >>> 13, Dt &= 8191, Dt += m * (5 * je), Dt += x * (5 * Ye), Dt += G * (5 * Ge), Dt += N * (5 * ue), Dt += v * (5 * R), ae += Dt >>> 13, Dt &= 8191;
270
270
  let fe = ae;
271
- fe += s * R, fe += o * P, fe += c * I, fe += u * O, fe += h * A, ae = fe >>> 13, fe &= 8191, fe += m * (5 * W), fe += x * (5 * Pe), fe += G * (5 * Ye), fe += N * (5 * Ge), fe += v * (5 * ue), ae += fe >>> 13, fe &= 8191;
271
+ fe += s * R, fe += o * P, fe += c * I, fe += u * O, fe += h * A, ae = fe >>> 13, fe &= 8191, fe += m * (5 * W), fe += x * (5 * je), fe += G * (5 * Ye), fe += N * (5 * Ge), fe += v * (5 * ue), ae += fe >>> 13, fe &= 8191;
272
272
  let st = ae;
273
- st += s * ue, st += o * R, st += c * P, st += u * I, st += h * O, ae = st >>> 13, st &= 8191, st += m * A, st += x * (5 * W), st += G * (5 * Pe), st += N * (5 * Ye), st += v * (5 * Ge), ae += st >>> 13, st &= 8191;
273
+ st += s * ue, st += o * R, st += c * P, st += u * I, st += h * O, ae = st >>> 13, st &= 8191, st += m * A, st += x * (5 * W), st += G * (5 * je), st += N * (5 * Ye), st += v * (5 * Ge), ae += st >>> 13, st &= 8191;
274
274
  let vt = ae;
275
- vt += s * Ge, vt += o * ue, vt += c * R, vt += u * P, vt += h * I, ae = vt >>> 13, vt &= 8191, vt += m * O, vt += x * A, vt += G * (5 * W), vt += N * (5 * Pe), vt += v * (5 * Ye), ae += vt >>> 13, vt &= 8191;
275
+ vt += s * Ge, vt += o * ue, vt += c * R, vt += u * P, vt += h * I, ae = vt >>> 13, vt &= 8191, vt += m * O, vt += x * A, vt += G * (5 * W), vt += N * (5 * je), vt += v * (5 * Ye), ae += vt >>> 13, vt &= 8191;
276
276
  let ee = ae;
277
- ee += s * Ye, ee += o * Ge, ee += c * ue, ee += u * R, ee += h * P, ae = ee >>> 13, ee &= 8191, ee += m * I, ee += x * O, ee += G * A, ee += N * (5 * W), ee += v * (5 * Pe), ae += ee >>> 13, ee &= 8191;
277
+ ee += s * Ye, ee += o * Ge, ee += c * ue, ee += u * R, ee += h * P, ae = ee >>> 13, ee &= 8191, ee += m * I, ee += x * O, ee += G * A, ee += N * (5 * W), ee += v * (5 * je), ae += ee >>> 13, ee &= 8191;
278
278
  let pt = ae;
279
- pt += s * Pe, pt += o * Ye, pt += c * Ge, pt += u * ue, pt += h * R, ae = pt >>> 13, pt &= 8191, pt += m * P, pt += x * I, pt += G * O, pt += N * A, pt += v * (5 * W), ae += pt >>> 13, pt &= 8191;
279
+ pt += s * je, pt += o * Ye, pt += c * Ge, pt += u * ue, pt += h * R, ae = pt >>> 13, pt &= 8191, pt += m * P, pt += x * I, pt += G * O, pt += N * A, pt += v * (5 * W), ae += pt >>> 13, pt &= 8191;
280
280
  let Vt = ae;
281
- Vt += s * W, Vt += o * Pe, Vt += c * Ye, Vt += u * Ge, Vt += h * ue, ae = Vt >>> 13, Vt &= 8191, Vt += m * R, Vt += x * P, Vt += G * I, Vt += N * O, Vt += v * A, ae += Vt >>> 13, Vt &= 8191, ae = (ae << 2) + ae | 0, ae = ae + Ee | 0, Ee = ae & 8191, ae = ae >>> 13, gt += ae, s = Ee, o = gt, c = Ut, u = Dt, h = fe, m = st, x = vt, G = ee, N = pt, v = Vt, t += 16, n -= 16;
281
+ Vt += s * W, Vt += o * je, Vt += c * Ye, Vt += u * Ge, Vt += h * ue, ae = Vt >>> 13, Vt &= 8191, Vt += m * R, Vt += x * P, Vt += G * I, Vt += N * O, Vt += v * A, ae += Vt >>> 13, Vt &= 8191, ae = (ae << 2) + ae | 0, ae = ae + Ee | 0, Ee = ae & 8191, ae = ae >>> 13, gt += ae, s = Ee, o = gt, c = Ut, u = Dt, h = fe, m = st, x = vt, G = ee, N = pt, v = Vt, t += 16, n -= 16;
282
282
  }
283
283
  this._h[0] = s, this._h[1] = o, this._h[2] = c, this._h[3] = u, this._h[4] = h, this._h[5] = m, this._h[6] = x, this._h[7] = G, this._h[8] = N, this._h[9] = v;
284
284
  }
@@ -329,16 +329,16 @@ class My {
329
329
  return Cr(this._buffer), Cr(this._r), Cr(this._h), Cr(this._pad), this._leftover = 0, this._fin = 0, this._finished = !0, this;
330
330
  }
331
331
  }
332
- const Vy = 32, Ly = 12, Hy = 16, Cf = new Uint8Array(16);
332
+ const Ly = 32, Hy = 12, Fy = 16, Cf = new Uint8Array(16);
333
333
  class Tu {
334
334
  /**
335
335
  * Creates a new instance with the given 32-byte key.
336
336
  */
337
337
  constructor(e) {
338
- He(this, "nonceLength", Ly);
339
- He(this, "tagLength", Hy);
338
+ He(this, "nonceLength", Hy);
339
+ He(this, "tagLength", Fy);
340
340
  He(this, "_key");
341
- if (e.length !== Vy)
341
+ if (e.length !== Ly)
342
342
  throw new Error("ChaCha20Poly1305 needs 32-byte key");
343
343
  this._key = new Uint8Array(e);
344
344
  }
@@ -394,7 +394,7 @@ class Tu {
394
394
  const o = new Uint8Array(32);
395
395
  kf(this._key, s, o, 4);
396
396
  const c = new Uint8Array(this.tagLength);
397
- if (this._authenticate(c, o, t.subarray(0, t.length - this.tagLength), n), !Dy(c, t.subarray(t.length - this.tagLength, t.length)))
397
+ if (this._authenticate(c, o, t.subarray(0, t.length - this.tagLength), n), !$y(c, t.subarray(t.length - this.tagLength, t.length)))
398
398
  return null;
399
399
  const u = t.length - this.tagLength;
400
400
  let h;
@@ -410,7 +410,7 @@ class Tu {
410
410
  return Cr(this._key), this;
411
411
  }
412
412
  _authenticate(e, t, n, i) {
413
- const s = new My(t);
413
+ const s = new Vy(t);
414
414
  i && (s.update(i), i.length % 16 > 0 && s.update(Cf.subarray(i.length % 16))), s.update(n), n.length % 16 > 0 && s.update(Cf.subarray(n.length % 16));
415
415
  const o = new Uint8Array(8);
416
416
  i && If(i.length, o), s.update(o), If(n.length, o), s.update(o);
@@ -421,7 +421,7 @@ class Tu {
421
421
  }
422
422
  }
423
423
  const Bf = 65536;
424
- class Fy {
424
+ class zy {
425
425
  constructor() {
426
426
  He(this, "isAvailable", !1);
427
427
  He(this, "isInstantiated", !1);
@@ -436,12 +436,12 @@ class Fy {
436
436
  return t;
437
437
  }
438
438
  }
439
- const zy = new Fy();
440
- function Gy(r, e = zy) {
439
+ const Gy = new zy();
440
+ function qy(r, e = Gy) {
441
441
  return e.randomBytes(r);
442
442
  }
443
443
  function Sd(r, e) {
444
- const t = new Tu(r), n = Gy(12), s = new TextEncoder().encode(e), o = t.seal(n, s), c = new Uint8Array(n.length + o.length);
444
+ const t = new Tu(r), n = qy(12), s = new TextEncoder().encode(e), o = t.seal(n, s), c = new Uint8Array(n.length + o.length);
445
445
  return c.set(n), c.set(o, n.length), $r(c);
446
446
  }
447
447
  function _d(r, 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 qy(r) {
454
+ function Ky(r) {
455
455
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
456
456
  }
457
- function Ky(r) {
457
+ function Zy(r) {
458
458
  if (r.__esModule) return r;
459
459
  var e = r.default;
460
460
  if (typeof e == "function") {
@@ -580,12 +580,12 @@ var Of;
580
580
  return fe(T) || (T = or(T)), dt(_, k, T);
581
581
  }
582
582
  e("hasOwnMetadata", Ye);
583
- function Pe(_, k, T) {
583
+ function je(_, k, T) {
584
584
  if (!ee(k))
585
585
  throw new TypeError();
586
- return fe(T) || (T = or(T)), Xe(_, k, T);
586
+ return fe(T) || (T = or(T)), Qe(_, k, T);
587
587
  }
588
- e("getMetadata", Pe);
588
+ e("getMetadata", je);
589
589
  function W(_, k, T) {
590
590
  if (!ee(k))
591
591
  throw new TypeError();
@@ -657,13 +657,13 @@ var Of;
657
657
  );
658
658
  return fe(q) ? !1 : fs(q.OrdinaryHasOwnMetadata(_, k, T));
659
659
  }
660
- function Xe(_, k, T) {
660
+ function Qe(_, k, T) {
661
661
  var q = dt(_, k, T);
662
662
  if (q)
663
663
  return ae(_, k, T);
664
664
  var be = Bi(k);
665
665
  if (!st(be))
666
- return Xe(_, be, T);
666
+ return Qe(_, be, T);
667
667
  }
668
668
  function ae(_, k, T) {
669
669
  var q = Wr(
@@ -693,8 +693,8 @@ var Of;
693
693
  return T;
694
694
  if (T.length <= 0)
695
695
  return be;
696
- for (var St = new N(), _t = [], je = 0, Z = T; je < Z.length; je++) {
697
- var te = Z[je], he = St.has(te);
696
+ for (var St = new N(), _t = [], Re = 0, Z = T; Re < Z.length; Re++) {
697
+ var te = Z[Re], he = St.has(te);
698
698
  he || (St.add(te), _t.push(te));
699
699
  }
700
700
  for (var ge = 0, Je = be; ge < Je.length; ge++) {
@@ -886,7 +886,7 @@ var Of;
886
886
  break;
887
887
  }
888
888
  }
889
- function je(ge, Je) {
889
+ function Re(ge, Je) {
890
890
  if (!fe(k)) {
891
891
  if (k.isProviderFor(ge, Je))
892
892
  return k;
@@ -909,7 +909,7 @@ var Of;
909
909
  }
910
910
  function Z(ge, Je) {
911
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;
912
+ return fe(rt) || (mt = rt.get(Je)), fe(mt) && (mt = Re(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))
@@ -947,7 +947,7 @@ var Of;
947
947
  OrdinaryDefineOwnMetadata: _t,
948
948
  OrdinaryHasOwnMetadata: be,
949
949
  OrdinaryGetOwnMetadata: St,
950
- OrdinaryOwnMetadataKeys: je,
950
+ OrdinaryOwnMetadataKeys: Re,
951
951
  OrdinaryDeleteMetadata: Z
952
952
  };
953
953
  return O.registerProvider(T), T;
@@ -995,7 +995,7 @@ var Of;
995
995
  );
996
996
  rt.set(te, he);
997
997
  }
998
- function je(te, he) {
998
+ function Re(te, he) {
999
999
  var ge = [], Je = q(
1000
1000
  te,
1001
1001
  he,
@@ -1038,7 +1038,7 @@ var Of;
1038
1038
  }
1039
1039
  }
1040
1040
  function ws(_) {
1041
- var k = _.defineMetadata, T = _.hasOwnMetadata, q = _.getOwnMetadata, be = _.getOwnMetadataKeys, St = _.deleteMetadata, _t = new v(), je = {
1041
+ var k = _.defineMetadata, T = _.hasOwnMetadata, q = _.getOwnMetadata, be = _.getOwnMetadataKeys, St = _.deleteMetadata, _t = new v(), Re = {
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;
@@ -1049,7 +1049,7 @@ var Of;
1049
1049
  OrdinaryOwnMetadataKeys: be,
1050
1050
  OrdinaryDeleteMetadata: St
1051
1051
  };
1052
- return je;
1052
+ return Re;
1053
1053
  }
1054
1054
  function Wr(_, k, T) {
1055
1055
  var q = O.getProvider(_, k);
@@ -1065,59 +1065,59 @@ var Of;
1065
1065
  var _ = {}, k = [], T = (
1066
1066
  /** @class */
1067
1067
  function() {
1068
- function je(Z, te, he) {
1068
+ function Re(Z, te, he) {
1069
1069
  this._index = 0, this._keys = Z, this._values = te, this._selector = he;
1070
1070
  }
1071
- return je.prototype["@@iterator"] = function() {
1071
+ return Re.prototype["@@iterator"] = function() {
1072
1072
  return this;
1073
- }, je.prototype[o] = function() {
1073
+ }, Re.prototype[o] = function() {
1074
1074
  return this;
1075
- }, je.prototype.next = function() {
1075
+ }, Re.prototype.next = function() {
1076
1076
  var Z = this._index;
1077
1077
  if (Z >= 0 && Z < this._keys.length) {
1078
1078
  var te = this._selector(this._keys[Z], this._values[Z]);
1079
1079
  return Z + 1 >= this._keys.length ? (this._index = -1, this._keys = k, this._values = k) : this._index++, { value: te, done: !1 };
1080
1080
  }
1081
1081
  return { value: void 0, done: !0 };
1082
- }, je.prototype.throw = function(Z) {
1082
+ }, Re.prototype.throw = function(Z) {
1083
1083
  throw this._index >= 0 && (this._index = -1, this._keys = k, this._values = k), Z;
1084
- }, je.prototype.return = function(Z) {
1084
+ }, Re.prototype.return = function(Z) {
1085
1085
  return this._index >= 0 && (this._index = -1, this._keys = k, this._values = k), { value: Z, done: !0 };
1086
- }, je;
1086
+ }, Re;
1087
1087
  }()
1088
1088
  ), q = (
1089
1089
  /** @class */
1090
1090
  function() {
1091
- function je() {
1091
+ function Re() {
1092
1092
  this._keys = [], this._values = [], this._cacheKey = _, this._cacheIndex = -2;
1093
1093
  }
1094
- return Object.defineProperty(je.prototype, "size", {
1094
+ return Object.defineProperty(Re.prototype, "size", {
1095
1095
  get: function() {
1096
1096
  return this._keys.length;
1097
1097
  },
1098
1098
  enumerable: !0,
1099
1099
  configurable: !0
1100
- }), je.prototype.has = function(Z) {
1100
+ }), Re.prototype.has = function(Z) {
1101
1101
  return this._find(
1102
1102
  Z,
1103
1103
  /*insert*/
1104
1104
  !1
1105
1105
  ) >= 0;
1106
- }, je.prototype.get = function(Z) {
1106
+ }, Re.prototype.get = function(Z) {
1107
1107
  var te = this._find(
1108
1108
  Z,
1109
1109
  /*insert*/
1110
1110
  !1
1111
1111
  );
1112
1112
  return te >= 0 ? this._values[te] : void 0;
1113
- }, je.prototype.set = function(Z, te) {
1113
+ }, Re.prototype.set = function(Z, te) {
1114
1114
  var he = this._find(
1115
1115
  Z,
1116
1116
  /*insert*/
1117
1117
  !0
1118
1118
  );
1119
1119
  return this._values[he] = te, this;
1120
- }, je.prototype.delete = function(Z) {
1120
+ }, Re.prototype.delete = function(Z) {
1121
1121
  var te = this._find(
1122
1122
  Z,
1123
1123
  /*insert*/
@@ -1129,19 +1129,19 @@ var Of;
1129
1129
  return this._keys.length--, this._values.length--, ps(Z, this._cacheKey) && (this._cacheKey = _, this._cacheIndex = -2), !0;
1130
1130
  }
1131
1131
  return !1;
1132
- }, je.prototype.clear = function() {
1132
+ }, Re.prototype.clear = function() {
1133
1133
  this._keys.length = 0, this._values.length = 0, this._cacheKey = _, this._cacheIndex = -2;
1134
- }, je.prototype.keys = function() {
1134
+ }, Re.prototype.keys = function() {
1135
1135
  return new T(this._keys, this._values, be);
1136
- }, je.prototype.values = function() {
1136
+ }, Re.prototype.values = function() {
1137
1137
  return new T(this._keys, this._values, St);
1138
- }, je.prototype.entries = function() {
1138
+ }, Re.prototype.entries = function() {
1139
1139
  return new T(this._keys, this._values, _t);
1140
- }, je.prototype["@@iterator"] = function() {
1140
+ }, Re.prototype["@@iterator"] = function() {
1141
1141
  return this.entries();
1142
- }, je.prototype[o] = function() {
1142
+ }, Re.prototype[o] = function() {
1143
1143
  return this.entries();
1144
- }, je.prototype._find = function(Z, te) {
1144
+ }, Re.prototype._find = function(Z, te) {
1145
1145
  if (!ps(this._cacheKey, Z)) {
1146
1146
  this._cacheIndex = -1;
1147
1147
  for (var he = 0; he < this._keys.length; he++)
@@ -1151,18 +1151,18 @@ var Of;
1151
1151
  }
1152
1152
  }
1153
1153
  return this._cacheIndex < 0 && te && (this._cacheIndex = this._keys.length, this._keys.push(Z), this._values.push(void 0)), this._cacheIndex;
1154
- }, je;
1154
+ }, Re;
1155
1155
  }()
1156
1156
  );
1157
1157
  return q;
1158
- function be(je, Z) {
1159
- return je;
1158
+ function be(Re, Z) {
1159
+ return Re;
1160
1160
  }
1161
- function St(je, Z) {
1161
+ function St(Re, Z) {
1162
1162
  return Z;
1163
1163
  }
1164
- function _t(je, Z) {
1165
- return [je, Z];
1164
+ function _t(Re, Z) {
1165
+ return [Re, Z];
1166
1166
  }
1167
1167
  }
1168
1168
  function xs() {
@@ -1245,7 +1245,7 @@ var Of;
1245
1245
  function q() {
1246
1246
  var Z;
1247
1247
  do
1248
- Z = "@@WeakMap@@" + je();
1248
+ Z = "@@WeakMap@@" + Re();
1249
1249
  while (m.has(k, Z));
1250
1250
  return k[Z] = !0, Z;
1251
1251
  }
@@ -1269,7 +1269,7 @@ var Of;
1269
1269
  }
1270
1270
  return St(new Array(Z), Z);
1271
1271
  }
1272
- function je() {
1272
+ function Re() {
1273
1273
  var Z = _t(_);
1274
1274
  Z[6] = Z[6] & 79 | 64, Z[8] = Z[8] & 191 | 128;
1275
1275
  for (var te = "", he = 0; he < _; ++he) {
@@ -1308,10 +1308,10 @@ var Of;
1308
1308
  * SOFTWARE.
1309
1309
  *
1310
1310
  */
1311
- const Zy = "[object ArrayBuffer]";
1311
+ const Wy = "[object ArrayBuffer]";
1312
1312
  class Y {
1313
1313
  static isArrayBuffer(e) {
1314
- return Object.prototype.toString.call(e) === Zy;
1314
+ return Object.prototype.toString.call(e) === Wy;
1315
1315
  }
1316
1316
  static toArrayBuffer(e) {
1317
1317
  return this.isArrayBuffer(e) ? e : e.byteLength === e.buffer.byteLength || e.byteOffset === 0 && e.byteLength === e.buffer.byteLength ? e.buffer : this.toUint8Array(e.buffer).slice(e.byteOffset, e.byteOffset + e.byteLength).buffer;
@@ -1358,7 +1358,7 @@ class Y {
1358
1358
  return e[e.length - 1] instanceof Function ? this.toView(i, e[e.length - 1]) : i.buffer;
1359
1359
  }
1360
1360
  }
1361
- const Vc = "string", Wy = /^[0-9a-f]+$/i, Yy = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/, Jy = /^[a-zA-Z0-9-_]+$/;
1361
+ const Vc = "string", Yy = /^[0-9a-f]+$/i, Jy = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/, Xy = /^[a-zA-Z0-9-_]+$/;
1362
1362
  class Tf {
1363
1363
  static fromString(e) {
1364
1364
  const t = unescape(encodeURIComponent(e)), n = new Uint8Array(t.length);
@@ -1393,13 +1393,13 @@ class Yr {
1393
1393
  }
1394
1394
  class de {
1395
1395
  static isHex(e) {
1396
- return typeof e === Vc && Wy.test(e);
1396
+ return typeof e === Vc && Yy.test(e);
1397
1397
  }
1398
1398
  static isBase64(e) {
1399
- return typeof e === Vc && Yy.test(e);
1399
+ return typeof e === Vc && Jy.test(e);
1400
1400
  }
1401
1401
  static isBase64Url(e) {
1402
- return typeof e === Vc && Jy.test(e);
1402
+ return typeof e === Vc && Xy.test(e);
1403
1403
  }
1404
1404
  static ToString(e, t = "utf8") {
1405
1405
  const n = Y.toUint8Array(e);
@@ -1560,7 +1560,7 @@ class de {
1560
1560
  }
1561
1561
  }
1562
1562
  de.DEFAULT_UTF8_ENCODING = "utf8";
1563
- function Xy(...r) {
1563
+ function Qy(...r) {
1564
1564
  const e = r.map((i) => i.byteLength).reduce((i, s) => i + s), t = new Uint8Array(e);
1565
1565
  let n = 0;
1566
1566
  return r.map((i) => new Uint8Array(i)).forEach((i) => {
@@ -1636,7 +1636,7 @@ function Ed() {
1636
1636
  s[c] = r[c];
1637
1637
  return s[0] &= 127, Mi(s, 8) - n;
1638
1638
  }
1639
- function Qy(r) {
1639
+ function eg(r) {
1640
1640
  const e = r < 0 ? r * -1 : r;
1641
1641
  let t = 128;
1642
1642
  for (let n = 1; n < 8; n++) {
@@ -1659,7 +1659,7 @@ function Qy(r) {
1659
1659
  }
1660
1660
  return new ArrayBuffer(0);
1661
1661
  }
1662
- function eg(r, e) {
1662
+ function tg(r, e) {
1663
1663
  if (r.byteLength !== e.byteLength)
1664
1664
  return !1;
1665
1665
  const t = new Uint8Array(r), n = new Uint8Array(e);
@@ -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 = "", qr = new ArrayBuffer(0), Fa = new Uint8Array(0), Us = "EndOfContent", Id = "OCTET STRING", kd = "BIT STRING";
1744
+ const _s = [new Uint8Array([1])], Nf = "0123456789", Lc = "name", Pf = "valueHexView", rg = "isHexOnly", ng = "idBlock", ig = "tagClass", sg = "tagNumber", og = "isConstructed", ag = "fromBER", cg = "toBER", lg = "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 {
@@ -2033,7 +2033,7 @@ class Jt extends Ei {
2033
2033
  if (!(e instanceof this.constructor))
2034
2034
  return !1;
2035
2035
  const t = this.toBER(), n = e.toBER();
2036
- return eg(t, n);
2036
+ return tg(t, n);
2037
2037
  }
2038
2038
  }
2039
2039
  Jt.NAME = "BaseBlock";
@@ -2077,7 +2077,7 @@ class fo extends Jt {
2077
2077
  Nd = fo;
2078
2078
  ce.Primitive = Nd;
2079
2079
  fo.NAME = "PRIMITIVE";
2080
- function lg(r, e) {
2080
+ function ug(r, e) {
2081
2081
  if (r instanceof e)
2082
2082
  return r;
2083
2083
  const t = new e();
@@ -2234,7 +2234,7 @@ function ns(r, e = 0, t = r.length) {
2234
2234
  default:
2235
2235
  u = i.idBlock.isConstructed ? ce.Constructed : ce.Primitive;
2236
2236
  }
2237
- return i = lg(i, u), c = i.fromBER(r, e, i.lenBlock.isIndefiniteForm ? t : i.lenBlock.length), i.valueBeforeDecodeView = r.subarray(n, n + i.blockLength), {
2237
+ return i = ug(i, u), c = i.fromBER(r, e, i.lenBlock.isIndefiniteForm ? t : i.lenBlock.length), i.valueBeforeDecodeView = r.subarray(n, n + i.blockLength), {
2238
2238
  offset: c,
2239
2239
  result: i
2240
2240
  };
@@ -2249,7 +2249,7 @@ function Ui(r) {
2249
2249
  }
2250
2250
  return ns(Y.toUint8Array(r).slice(), 0, r.byteLength);
2251
2251
  }
2252
- function ug(r, e) {
2252
+ function fg(r, e) {
2253
2253
  return r ? 1 : e;
2254
2254
  }
2255
2255
  class Vn extends fr {
@@ -2263,7 +2263,7 @@ class Vn extends fr {
2263
2263
  if (this.valueBeforeDecodeView = i.subarray(t, t + n), this.valueBeforeDecodeView.length === 0)
2264
2264
  return this.warnings.push("Zero buffer length"), t;
2265
2265
  let s = t;
2266
- for (; ug(this.isIndefiniteForm, n) > 0; ) {
2266
+ for (; fg(this.isIndefiniteForm, n) > 0; ) {
2267
2267
  const o = ns(i, s, n);
2268
2268
  if (o.offset === -1)
2269
2269
  return this.error = o.result.error, this.warnings.concat(o.result.warnings), -1;
@@ -2581,7 +2581,7 @@ Fd = oi;
2581
2581
  ce.BitString = Fd;
2582
2582
  oi.NAME = kd;
2583
2583
  var zd;
2584
- function fg(r, e) {
2584
+ function hg(r, e) {
2585
2585
  const t = new Uint8Array([0]), n = new Uint8Array(r), i = new Uint8Array(e);
2586
2586
  let s = n.slice(0);
2587
2587
  const o = s.length - 1, c = i.slice(0), u = c.length - 1;
@@ -2619,7 +2619,7 @@ function jf(r) {
2619
2619
  }
2620
2620
  return _s[r];
2621
2621
  }
2622
- function hg(r, e) {
2622
+ function dg(r, e) {
2623
2623
  let t = 0;
2624
2624
  const n = new Uint8Array(r), i = new Uint8Array(e), s = n.slice(0), o = s.length - 1, c = i.slice(0), u = c.length - 1;
2625
2625
  let h, m = 0;
@@ -2649,7 +2649,7 @@ class Ru extends fn(fr) {
2649
2649
  this.valueHexView.length >= 4 ? (this.warnings.push("Too big Integer for decoding, hex only"), this.isHexOnly = !0, this._valueDec = 0) : (this.isHexOnly = !1, this.valueHexView.length > 0 && (this._valueDec = Ed.call(this)));
2650
2650
  }
2651
2651
  set valueDec(e) {
2652
- this._valueDec = e, this.isHexOnly = !1, this.valueHexView = new Uint8Array(Qy(e));
2652
+ this._valueDec = e, this.isHexOnly = !1, this.valueHexView = new Uint8Array(eg(e));
2653
2653
  }
2654
2654
  get valueDec() {
2655
2655
  return this._valueDec;
@@ -2700,10 +2700,10 @@ class Ru extends fn(fr) {
2700
2700
  if ((i & 1) === 1)
2701
2701
  switch (n) {
2702
2702
  case e:
2703
- t = hg(jf(n), t), o = "-";
2703
+ t = dg(jf(n), t), o = "-";
2704
2704
  break;
2705
2705
  default:
2706
- t = fg(t, jf(n));
2706
+ t = hg(t, jf(n));
2707
2707
  }
2708
2708
  n++, i >>= 1;
2709
2709
  }
@@ -3521,7 +3521,7 @@ class Go extends ui {
3521
3521
  super(n), this.value = e, this.local = t;
3522
3522
  }
3523
3523
  }
3524
- class dg {
3524
+ class pg {
3525
3525
  constructor({ data: e = Fa } = {}) {
3526
3526
  this.dataView = Y.toUint8Array(e);
3527
3527
  }
@@ -3577,17 +3577,17 @@ function ri(r, e, t) {
3577
3577
  verified: !1,
3578
3578
  result: { error: "Wrong ASN.1 schema" }
3579
3579
  };
3580
- if (!(rg in t))
3580
+ if (!(ng in t))
3581
3581
  return {
3582
3582
  verified: !1,
3583
3583
  result: { error: "Wrong ASN.1 schema" }
3584
3584
  };
3585
- if (!(og in t.idBlock))
3585
+ if (!(ag in t.idBlock))
3586
3586
  return {
3587
3587
  verified: !1,
3588
3588
  result: { error: "Wrong ASN.1 schema" }
3589
3589
  };
3590
- if (!(ag in t.idBlock))
3590
+ if (!(cg in t.idBlock))
3591
3591
  return {
3592
3592
  verified: !1,
3593
3593
  result: { error: "Wrong ASN.1 schema" }
@@ -3603,7 +3603,7 @@ function ri(r, e, t) {
3603
3603
  verified: !1,
3604
3604
  result: { error: "Error decoding idBlock for ASN.1 schema" }
3605
3605
  };
3606
- if (t.idBlock.hasOwnProperty(ng) === !1)
3606
+ if (t.idBlock.hasOwnProperty(ig) === !1)
3607
3607
  return {
3608
3608
  verified: !1,
3609
3609
  result: { error: "Wrong ASN.1 schema" }
@@ -3613,7 +3613,7 @@ function ri(r, e, t) {
3613
3613
  verified: !1,
3614
3614
  result: r
3615
3615
  };
3616
- if (t.idBlock.hasOwnProperty(ig) === !1)
3616
+ if (t.idBlock.hasOwnProperty(sg) === !1)
3617
3617
  return {
3618
3618
  verified: !1,
3619
3619
  result: { error: "Wrong ASN.1 schema" }
@@ -3623,7 +3623,7 @@ function ri(r, e, t) {
3623
3623
  verified: !1,
3624
3624
  result: r
3625
3625
  };
3626
- if (t.idBlock.hasOwnProperty(sg) === !1)
3626
+ if (t.idBlock.hasOwnProperty(og) === !1)
3627
3627
  return {
3628
3628
  verified: !1,
3629
3629
  result: { error: "Wrong ASN.1 schema" }
@@ -3633,7 +3633,7 @@ function ri(r, e, t) {
3633
3633
  verified: !1,
3634
3634
  result: r
3635
3635
  };
3636
- if (!(tg in t.idBlock))
3636
+ if (!(rg in t.idBlock))
3637
3637
  return {
3638
3638
  verified: !1,
3639
3639
  result: { error: "Wrong ASN.1 schema" }
@@ -3703,7 +3703,7 @@ function ri(r, e, t) {
3703
3703
  return t.name && (t.name = t.name.replace(/^\s+|\s+$/g, yr), t.name && delete r[t.name]), o;
3704
3704
  if (Lc in t.valueBlock.value[0] && t.valueBlock.value[0].name.length > 0) {
3705
3705
  let h = {};
3706
- cg in t.valueBlock.value[0] && t.valueBlock.value[0].local ? h = e : h = r, typeof h[t.valueBlock.value[0].name] > "u" && (h[t.valueBlock.value[0].name] = []), h[t.valueBlock.value[0].name].push(e.valueBlock.value[u]);
3706
+ lg in t.valueBlock.value[0] && t.valueBlock.value[0].local ? h = e : h = r, typeof h[t.valueBlock.value[0].name] > "u" && (h[t.valueBlock.value[0].name] = []), h[t.valueBlock.value[0].name].push(e.valueBlock.value[u]);
3707
3707
  }
3708
3708
  } else if (o = ri(r, e.valueBlock.value[u - s], t.valueBlock.value[u]), o.verified === !1)
3709
3709
  if (t.valueBlock.value[u].optional)
@@ -3738,7 +3738,7 @@ function ri(r, e, t) {
3738
3738
  result: r
3739
3739
  };
3740
3740
  }
3741
- function pg(r, e) {
3741
+ function yg(r, e) {
3742
3742
  if (!(e instanceof Object))
3743
3743
  return {
3744
3744
  verified: !1,
@@ -3778,7 +3778,7 @@ const Sp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3778
3778
  OctetString: si,
3779
3779
  Primitive: fo,
3780
3780
  PrintableString: Ya,
3781
- RawData: dg,
3781
+ RawData: pg,
3782
3782
  RelativeObjectIdentifier: Uu,
3783
3783
  Repeated: Go,
3784
3784
  Sequence: mn,
@@ -3795,7 +3795,7 @@ const Sp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3795
3795
  VisibleString: ho,
3796
3796
  compareSchema: ri,
3797
3797
  fromBER: Ui,
3798
- verifySchema: pg
3798
+ verifySchema: yg
3799
3799
  }, Symbol.toStringTag, { value: "Module" }));
3800
3800
  var M;
3801
3801
  (function(r) {
@@ -3867,7 +3867,7 @@ class it {
3867
3867
  return new si({ name: e });
3868
3868
  }
3869
3869
  }
3870
- const yg = {
3870
+ const gg = {
3871
3871
  fromASN: (r) => r instanceof li ? null : r.valueBeforeDecodeView,
3872
3872
  toASN: (r) => {
3873
3873
  if (r === null)
@@ -3877,28 +3877,28 @@ const yg = {
3877
3877
  throw new Error(e.result.error);
3878
3878
  return e.result;
3879
3879
  }
3880
- }, gg = {
3880
+ }, vg = {
3881
3881
  fromASN: (r) => r.valueBlock.valueHexView.byteLength >= 4 ? r.valueBlock.toString() : r.valueBlock.valueDec,
3882
3882
  toASN: (r) => new nn({ value: +r })
3883
- }, vg = {
3883
+ }, mg = {
3884
3884
  fromASN: (r) => r.valueBlock.valueDec,
3885
3885
  toASN: (r) => new Ga({ value: r })
3886
3886
  }, xt = {
3887
3887
  fromASN: (r) => r.valueBlock.valueHexView,
3888
3888
  toASN: (r) => new nn({ valueHex: r })
3889
- }, mg = {
3889
+ }, wg = {
3890
3890
  fromASN: (r) => r.valueBlock.valueHexView,
3891
3891
  toASN: (r) => new oi({ valueHex: r })
3892
- }, wg = {
3892
+ }, bg = {
3893
3893
  fromASN: (r) => r.valueBlock.toString(),
3894
3894
  toASN: (r) => new qa({ value: r })
3895
- }, bg = {
3895
+ }, xg = {
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
- }, xg = {
3901
+ }, Ag = {
3902
3902
  fromASN: (r) => new it(r.getValue()),
3903
3903
  toASN: (r) => r.toASN()
3904
3904
  };
@@ -3908,62 +3908,62 @@ function Tr(r) {
3908
3908
  toASN: (e) => new r({ value: e })
3909
3909
  };
3910
3910
  }
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 = {
3911
+ const _p = Tr(kn), Sg = Tr(Ka), _g = Tr(Za), Eg = Tr(Wa), Ig = Tr(Ya), kg = Tr(Ja), Cg = Tr(Xa), Bg = Tr(Qa), Og = Tr(ec), Tg = Tr(ho), Ng = Tr(tc), Pg = Tr(rc), jg = {
3912
3912
  fromASN: (r) => r.toDate(),
3913
3913
  toASN: (r) => new po({ valueDate: r })
3914
- }, jg = {
3914
+ }, Rg = {
3915
3915
  fromASN: (r) => r.toDate(),
3916
3916
  toASN: (r) => new nc({ valueDate: r })
3917
- }, Rg = {
3917
+ }, Ug = {
3918
3918
  fromASN: () => null,
3919
3919
  toASN: () => new li()
3920
3920
  };
3921
3921
  function Fu(r) {
3922
3922
  switch (r) {
3923
3923
  case b.Any:
3924
- return yg;
3924
+ return gg;
3925
3925
  case b.BitString:
3926
- return mg;
3926
+ return wg;
3927
3927
  case b.BmpString:
3928
- return Ag;
3928
+ return Sg;
3929
3929
  case b.Boolean:
3930
- return bg;
3930
+ return xg;
3931
3931
  case b.CharacterString:
3932
- return Ng;
3932
+ return Pg;
3933
3933
  case b.Enumerated:
3934
- return vg;
3934
+ return mg;
3935
3935
  case b.GeneralString:
3936
- return Tg;
3936
+ return Ng;
3937
3937
  case b.GeneralizedTime:
3938
- return jg;
3938
+ return Rg;
3939
3939
  case b.GraphicString:
3940
- return Bg;
3940
+ return Og;
3941
3941
  case b.IA5String:
3942
- return Cg;
3942
+ return Bg;
3943
3943
  case b.Integer:
3944
- return gg;
3944
+ return vg;
3945
3945
  case b.Null:
3946
- return Rg;
3946
+ return Ug;
3947
3947
  case b.NumericString:
3948
- return _g;
3948
+ return Eg;
3949
3949
  case b.ObjectIdentifier:
3950
- return wg;
3950
+ return bg;
3951
3951
  case b.OctetString:
3952
3952
  return qo;
3953
3953
  case b.PrintableString:
3954
- return Eg;
3955
- case b.TeletexString:
3956
3954
  return Ig;
3955
+ case b.TeletexString:
3956
+ return kg;
3957
3957
  case b.UTCTime:
3958
- return Pg;
3958
+ return jg;
3959
3959
  case b.UniversalString:
3960
- return Sg;
3960
+ return _g;
3961
3961
  case b.Utf8String:
3962
3962
  return _p;
3963
3963
  case b.VideotexString:
3964
- return kg;
3964
+ return Cg;
3965
3965
  case b.VisibleString:
3966
- return Og;
3966
+ return Tg;
3967
3967
  default:
3968
3968
  return null;
3969
3969
  }
@@ -3979,7 +3979,7 @@ function Ep(r) {
3979
3979
  }
3980
3980
  return !1;
3981
3981
  }
3982
- function Ug(r, e) {
3982
+ function Dg(r, e) {
3983
3983
  if (!(r && e) || r.byteLength !== e.byteLength)
3984
3984
  return !1;
3985
3985
  const t = new Uint8Array(r), n = new Uint8Array(e);
@@ -3988,7 +3988,7 @@ function Ug(r, e) {
3988
3988
  return !1;
3989
3989
  return !0;
3990
3990
  }
3991
- class Dg {
3991
+ class $g {
3992
3992
  constructor() {
3993
3993
  this.items = /* @__PURE__ */ new WeakMap();
3994
3994
  }
@@ -4096,7 +4096,7 @@ class Dg {
4096
4096
  return t ? this.items.get(t) || this.findParentSchema(t) : null;
4097
4097
  }
4098
4098
  }
4099
- const Br = new Dg(), H = (r) => (e) => {
4099
+ const Br = new $g(), H = (r) => (e) => {
4100
4100
  let t;
4101
4101
  Br.has(e) ? t = Br.get(e) : (t = Br.createDefault(e), Br.set(e, t)), Object.assign(t, r);
4102
4102
  }, y = (r) => (e, t) => {
@@ -4116,7 +4116,7 @@ class Rf extends Error {
4116
4116
  super(...arguments), this.schemas = [];
4117
4117
  }
4118
4118
  }
4119
- class $g {
4119
+ class Mg {
4120
4120
  static parse(e, t) {
4121
4121
  const n = Ui(e);
4122
4122
  if (n.result.error)
@@ -4234,7 +4234,7 @@ class zu {
4234
4234
  } else
4235
4235
  for (const o in n.items) {
4236
4236
  const c = n.items[o], u = e[o];
4237
- if (u === void 0 || c.defaultValue === u || typeof c.defaultValue == "object" && typeof u == "object" && Ug(this.serialize(c.defaultValue), this.serialize(u)))
4237
+ if (u === void 0 || c.defaultValue === u || typeof c.defaultValue == "object" && typeof u == "object" && Dg(this.serialize(c.defaultValue), this.serialize(u)))
4238
4238
  continue;
4239
4239
  const h = zu.toAsnItem(c, o, t, u);
4240
4240
  if (typeof c.context == "number")
@@ -4328,7 +4328,7 @@ class K {
4328
4328
  return zu.serialize(e);
4329
4329
  }
4330
4330
  static parse(e, t) {
4331
- return $g.parse(e, t);
4331
+ return Mg.parse(e, t);
4332
4332
  }
4333
4333
  static toString(e) {
4334
4334
  const t = Y.isBufferSource(e) ? Y.toArrayBuffer(e) : K.serialize(e), n = Ui(t);
@@ -4369,8 +4369,8 @@ var Ip = { exports: {} };
4369
4369
  R += "0:";
4370
4370
  return v = v.replace("::", R), v[0] === ":" && (v = v.slice(1)), v[v.length - 1] === ":" && (v = v.slice(0, -1)), A = function() {
4371
4371
  const Ge = v.split(":"), Ye = [];
4372
- for (let Pe = 0; Pe < Ge.length; Pe++)
4373
- Ye.push(parseInt(Ge[Pe], 16));
4372
+ for (let je = 0; je < Ge.length; je++)
4373
+ Ye.push(parseInt(Ge[je], 16));
4374
4374
  return Ye;
4375
4375
  }(), {
4376
4376
  parts: A,
@@ -4939,7 +4939,7 @@ let Ht = fl = class extends hl {
4939
4939
  Ht = fl = f([
4940
4940
  H({ type: M.Sequence })
4941
4941
  ], Ht);
4942
- const Mg = {
4942
+ const Vg = {
4943
4943
  fromASN: (r) => Df.toString(qo.fromASN(r)),
4944
4944
  toASN: (r) => qo.toASN(Df.fromString(r))
4945
4945
  };
@@ -4965,54 +4965,54 @@ f([
4965
4965
  f([
4966
4966
  y({ type: Xt, context: 1, implicit: !0 })
4967
4967
  ], Gu.prototype, "partyName", void 0);
4968
- let De = class {
4968
+ let $e = class {
4969
4969
  constructor(e = {}) {
4970
4970
  Object.assign(this, e);
4971
4971
  }
4972
4972
  };
4973
4973
  f([
4974
4974
  y({ type: Ds, context: 0, implicit: !0 })
4975
- ], De.prototype, "otherName", void 0);
4975
+ ], $e.prototype, "otherName", void 0);
4976
4976
  f([
4977
4977
  y({ type: b.IA5String, context: 1, implicit: !0 })
4978
- ], De.prototype, "rfc822Name", void 0);
4978
+ ], $e.prototype, "rfc822Name", void 0);
4979
4979
  f([
4980
4980
  y({ type: b.IA5String, context: 2, implicit: !0 })
4981
- ], De.prototype, "dNSName", void 0);
4981
+ ], $e.prototype, "dNSName", void 0);
4982
4982
  f([
4983
4983
  y({ type: b.Any, context: 3, implicit: !0 })
4984
- ], De.prototype, "x400Address", void 0);
4984
+ ], $e.prototype, "x400Address", void 0);
4985
4985
  f([
4986
4986
  y({ type: Ht, context: 4, implicit: !1 })
4987
- ], De.prototype, "directoryName", void 0);
4987
+ ], $e.prototype, "directoryName", void 0);
4988
4988
  f([
4989
4989
  y({ type: Gu, context: 5 })
4990
- ], De.prototype, "ediPartyName", void 0);
4990
+ ], $e.prototype, "ediPartyName", void 0);
4991
4991
  f([
4992
4992
  y({ type: b.IA5String, context: 6, implicit: !0 })
4993
- ], De.prototype, "uniformResourceIdentifier", void 0);
4993
+ ], $e.prototype, "uniformResourceIdentifier", void 0);
4994
4994
  f([
4995
- y({ type: b.OctetString, context: 7, implicit: !0, converter: Mg })
4996
- ], De.prototype, "iPAddress", void 0);
4995
+ y({ type: b.OctetString, context: 7, implicit: !0, converter: Vg })
4996
+ ], $e.prototype, "iPAddress", void 0);
4997
4997
  f([
4998
4998
  y({ type: b.ObjectIdentifier, context: 8, implicit: !0 })
4999
- ], De.prototype, "registeredID", void 0);
5000
- De = f([
4999
+ ], $e.prototype, "registeredID", void 0);
5000
+ $e = f([
5001
5001
  H({ type: M.Choice })
5002
- ], De);
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";
5002
+ ], $e);
5003
+ const qu = "1.3.6.1.5.5.7", Lg = `${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
- const pl = `${Vg}.1`;
5005
+ const pl = `${Lg}.1`;
5006
5006
  class yo {
5007
5007
  constructor(e = {}) {
5008
- this.accessMethod = "", this.accessLocation = new De(), Object.assign(this, e);
5008
+ this.accessMethod = "", this.accessLocation = new $e(), Object.assign(this, e);
5009
5009
  }
5010
5010
  }
5011
5011
  f([
5012
5012
  y({ type: b.ObjectIdentifier })
5013
5013
  ], yo.prototype, "accessMethod", void 0);
5014
5014
  f([
5015
- y({ type: De })
5015
+ y({ type: $e })
5016
5016
  ], yo.prototype, "accessLocation", void 0);
5017
5017
  let ji = dl = class extends yt {
5018
5018
  constructor(e) {
@@ -5034,7 +5034,7 @@ f([
5034
5034
  y({ type: Ku, context: 0, optional: !0, implicit: !0 })
5035
5035
  ], ni.prototype, "keyIdentifier", void 0);
5036
5036
  f([
5037
- y({ type: De, context: 1, optional: !0, implicit: !0, repeated: "sequence" })
5037
+ y({ type: $e, context: 1, optional: !0, implicit: !0, repeated: "sequence" })
5038
5038
  ], ni.prototype, "authorityCertIssuer", void 0);
5039
5039
  f([
5040
5040
  y({
@@ -5064,7 +5064,7 @@ let cr = yl = class extends yt {
5064
5064
  }
5065
5065
  };
5066
5066
  cr = yl = f([
5067
- H({ type: M.Sequence, itemType: De })
5067
+ H({ type: M.Sequence, itemType: $e })
5068
5068
  ], cr);
5069
5069
  var gl;
5070
5070
  let Hf = gl = class extends cr {
@@ -5203,7 +5203,7 @@ let fi = class {
5203
5203
  }
5204
5204
  };
5205
5205
  f([
5206
- y({ type: De, context: 0, repeated: "sequence", implicit: !0 })
5206
+ y({ type: $e, context: 0, repeated: "sequence", implicit: !0 })
5207
5207
  ], fi.prototype, "fullName", void 0);
5208
5208
  f([
5209
5209
  y({ type: Li, context: 1, implicit: !0 })
@@ -5223,7 +5223,7 @@ f([
5223
5223
  y({ type: Bp, context: 1, optional: !0, implicit: !0 })
5224
5224
  ], ss.prototype, "reasons", void 0);
5225
5225
  f([
5226
- y({ type: De, context: 2, optional: !0, repeated: "sequence", implicit: !0 })
5226
+ y({ type: $e, context: 2, optional: !0, repeated: "sequence", implicit: !0 })
5227
5227
  ], ss.prototype, "cRLIssuer", void 0);
5228
5228
  let Di = ml = class extends yt {
5229
5229
  constructor(e) {
@@ -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`, qg = `${is}.9`;
5300
+ const Hg = `${is}.1`, Fg = `${is}.2`, zg = `${is}.3`, Gg = `${is}.4`, qg = `${is}.8`, Kg = `${is}.9`;
5301
5301
  let Sl = class {
5302
5302
  constructor(e = new ArrayBuffer(0)) {
5303
5303
  this.value = e;
@@ -5346,11 +5346,11 @@ class Hc extends ic {
5346
5346
  var Il;
5347
5347
  class cc {
5348
5348
  constructor(e = {}) {
5349
- this.base = new De(), this.minimum = 0, Object.assign(this, e);
5349
+ this.base = new $e(), this.minimum = 0, Object.assign(this, e);
5350
5350
  }
5351
5351
  }
5352
5352
  f([
5353
- y({ type: De })
5353
+ y({ type: $e })
5354
5354
  ], cc.prototype, "base", void 0);
5355
5355
  f([
5356
5356
  y({ type: b.Integer, context: 0, defaultValue: 0, implicit: !0 })
@@ -5830,11 +5830,11 @@ Jf = f([
5830
5830
  ], Jf);
5831
5831
  class tf {
5832
5832
  constructor(e = {}) {
5833
- this.acIssuer = new De(), this.acSerial = 0, this.attrs = [], Object.assign(this, e);
5833
+ this.acIssuer = new $e(), this.acSerial = 0, this.attrs = [], Object.assign(this, e);
5834
5834
  }
5835
5835
  }
5836
5836
  f([
5837
- y({ type: De })
5837
+ y({ type: $e })
5838
5838
  ], tf.prototype, "acIssuer", void 0);
5839
5839
  f([
5840
5840
  y({ type: b.Integer })
@@ -5923,7 +5923,7 @@ let zi = class {
5923
5923
  }
5924
5924
  };
5925
5925
  f([
5926
- y({ type: De, repeated: "sequence" })
5926
+ y({ type: $e, repeated: "sequence" })
5927
5927
  ], zi.prototype, "v1Form", void 0);
5928
5928
  f([
5929
5929
  y({ type: hc, context: 0, implicit: !0 })
@@ -6072,7 +6072,7 @@ f([
6072
6072
  y({ type: Ii })
6073
6073
  ], gc.prototype, "targetCertificate", void 0);
6074
6074
  f([
6075
- y({ type: De, optional: !0 })
6075
+ y({ type: $e, optional: !0 })
6076
6076
  ], gc.prototype, "targetName", void 0);
6077
6077
  f([
6078
6078
  y({ type: ki, optional: !0 })
@@ -6083,10 +6083,10 @@ let Gi = class {
6083
6083
  }
6084
6084
  };
6085
6085
  f([
6086
- y({ type: De, context: 0, implicit: !0 })
6086
+ y({ type: $e, context: 0, implicit: !0 })
6087
6087
  ], Gi.prototype, "targetName", void 0);
6088
6088
  f([
6089
- y({ type: De, context: 1, implicit: !0 })
6089
+ y({ type: $e, context: 1, implicit: !0 })
6090
6090
  ], Gi.prototype, "targetGroup", void 0);
6091
6091
  f([
6092
6092
  y({ type: gc, context: 2, implicit: !0 })
@@ -6120,18 +6120,18 @@ f([
6120
6120
  y({ type: cr, implicit: !0, context: 0, optional: !0 })
6121
6121
  ], Mp.prototype, "roleAuthority", void 0);
6122
6122
  f([
6123
- y({ type: De, implicit: !0, context: 1 })
6123
+ y({ type: $e, implicit: !0, context: 1 })
6124
6124
  ], Mp.prototype, "roleName", void 0);
6125
6125
  class sf {
6126
6126
  constructor(e = {}) {
6127
- this.service = new De(), this.ident = new De(), Object.assign(this, e);
6127
+ this.service = new $e(), this.ident = new $e(), Object.assign(this, e);
6128
6128
  }
6129
6129
  }
6130
6130
  f([
6131
- y({ type: De })
6131
+ y({ type: $e })
6132
6132
  ], sf.prototype, "service", void 0);
6133
6133
  f([
6134
- y({ type: De })
6134
+ y({ type: $e })
6135
6135
  ], sf.prototype, "ident", void 0);
6136
6136
  f([
6137
6137
  y({ type: it, optional: !0 })
@@ -6218,7 +6218,7 @@ f([
6218
6218
  y({ type: it, context: 0, implicit: !0, optional: !0 })
6219
6219
  ], Vs.prototype, "value", void 0);
6220
6220
  f([
6221
- y({ type: it, converter: xg, context: 0, implicit: !0, optional: !0, repeated: "sequence" })
6221
+ y({ type: it, converter: Ag, 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 })
@@ -6537,7 +6537,7 @@ f([
6537
6537
  f([
6538
6538
  y({ type: Kl, context: 1, implicit: !0, optional: !0 })
6539
6539
  ], Ao.prototype, "unprotectedAttrs", void 0);
6540
- const Kg = "1.2.840.113549.1.7.1", Zl = "1.2.840.113549.1.7.2";
6540
+ const Zg = "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) {
@@ -6574,9 +6574,9 @@ const Ls = "1.2.840.10045.2.1", ff = "1.2.840.10045.4.1", Vp = "1.2.840.10045.4.
6574
6574
  function So(r) {
6575
6575
  return new oe({ algorithm: r });
6576
6576
  }
6577
- const Zg = So(ff);
6577
+ const Wg = So(ff);
6578
6578
  So(Vp);
6579
- const Wg = So(hf), Yg = So(df), Jg = So(pf);
6579
+ const Yg = So(hf), Jg = So(df), Xg = So(pf);
6580
6580
  let Hs = class {
6581
6581
  constructor(e = {}) {
6582
6582
  Object.assign(this, e);
@@ -6591,7 +6591,7 @@ f([
6591
6591
  Hs = f([
6592
6592
  H({ type: M.Sequence })
6593
6593
  ], Hs);
6594
- class Xg extends it {
6594
+ class Qg extends it {
6595
6595
  }
6596
6596
  let Wi = class {
6597
6597
  constructor(e = {}) {
@@ -6629,7 +6629,7 @@ f([
6629
6629
  y({ type: Wi })
6630
6630
  ], _n.prototype, "curve", void 0);
6631
6631
  f([
6632
- y({ type: Xg })
6632
+ y({ type: Qg })
6633
6633
  ], _n.prototype, "base", void 0);
6634
6634
  f([
6635
6635
  y({ type: b.Integer, converter: xt })
@@ -6685,29 +6685,29 @@ f([
6685
6685
  f([
6686
6686
  y({ type: b.Integer, converter: xt })
6687
6687
  ], ua.prototype, "s", void 0);
6688
- const wr = "1.2.840.113549.1.1", gi = `${wr}.1`, Qg = `${wr}.7`, ev = `${wr}.9`, Ps = `${wr}.10`, tv = `${wr}.2`, rv = `${wr}.4`, fa = `${wr}.5`, nv = `${wr}.14`, Jl = `${wr}.11`, ha = `${wr}.12`, da = `${wr}.13`, Lp = `${wr}.15`, Hp = `${wr}.16`, pa = "1.3.14.3.2.26", Fp = "2.16.840.1.101.3.4.2.4", ya = "2.16.840.1.101.3.4.2.1", ga = "2.16.840.1.101.3.4.2.2", va = "2.16.840.1.101.3.4.2.3", iv = "2.16.840.1.101.3.4.2.5", sv = "2.16.840.1.101.3.4.2.6", ov = "1.2.840.113549.2.2", av = "1.2.840.113549.2.5", Ac = `${wr}.8`;
6688
+ const wr = "1.2.840.113549.1.1", gi = `${wr}.1`, ev = `${wr}.7`, tv = `${wr}.9`, Ps = `${wr}.10`, rv = `${wr}.2`, nv = `${wr}.4`, fa = `${wr}.5`, iv = `${wr}.14`, Jl = `${wr}.11`, ha = `${wr}.12`, da = `${wr}.13`, Lp = `${wr}.15`, Hp = `${wr}.16`, pa = "1.3.14.3.2.26", Fp = "2.16.840.1.101.3.4.2.4", ya = "2.16.840.1.101.3.4.2.1", ga = "2.16.840.1.101.3.4.2.2", va = "2.16.840.1.101.3.4.2.3", sv = "2.16.840.1.101.3.4.2.5", ov = "2.16.840.1.101.3.4.2.6", av = "1.2.840.113549.2.2", cv = "1.2.840.113549.2.5", Ac = `${wr}.8`;
6689
6689
  function Ft(r) {
6690
6690
  return new oe({ algorithm: r, parameters: null });
6691
6691
  }
6692
- Ft(ov);
6693
6692
  Ft(av);
6693
+ Ft(cv);
6694
6694
  const vi = Ft(pa);
6695
6695
  Ft(Fp);
6696
6696
  Ft(ya);
6697
6697
  Ft(ga);
6698
6698
  Ft(va);
6699
- Ft(iv);
6700
6699
  Ft(sv);
6700
+ Ft(ov);
6701
6701
  const zp = new oe({
6702
6702
  algorithm: Ac,
6703
6703
  parameters: K.serialize(vi)
6704
6704
  }), Gp = new oe({
6705
- algorithm: ev,
6705
+ algorithm: tv,
6706
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
- Ft(tv);
6710
6709
  Ft(rv);
6710
+ Ft(nv);
6711
6711
  Ft(fa);
6712
6712
  Ft(Lp);
6713
6713
  Ft(Hp);
@@ -6733,7 +6733,7 @@ f([
6733
6733
  y({ type: oe, context: 2, defaultValue: Gp })
6734
6734
  ], Sc.prototype, "pSourceAlgorithm", void 0);
6735
6735
  new oe({
6736
- algorithm: Qg,
6736
+ algorithm: ev,
6737
6737
  parameters: K.serialize(new Sc())
6738
6738
  });
6739
6739
  class mi {
@@ -6873,7 +6873,7 @@ function gf(r, e) {
6873
6873
  }
6874
6874
  r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
6875
6875
  }
6876
- function cv(r, e, t, n) {
6876
+ function lv(r, e, t, n) {
6877
6877
  function i(s) {
6878
6878
  return s instanceof t ? s : new t(function(o) {
6879
6879
  o(s);
@@ -6900,7 +6900,7 @@ function cv(r, e, t, n) {
6900
6900
  h((n = n.apply(r, [])).next());
6901
6901
  });
6902
6902
  }
6903
- function lv(r, e) {
6903
+ function uv(r, e) {
6904
6904
  var t = { label: 0, sent: function() {
6905
6905
  if (s[0] & 1) throw s[1];
6906
6906
  return s[1];
@@ -6992,9 +6992,9 @@ function ti() {
6992
6992
  r = r.concat(ma(arguments[e]));
6993
6993
  return r;
6994
6994
  }
6995
- var uv = "injectionTokens";
6996
- function fv(r) {
6997
- var e = Reflect.getMetadata("design:paramtypes", r) || [], t = Reflect.getOwnMetadata(uv, r) || {};
6995
+ var fv = "injectionTokens";
6996
+ function hv(r) {
6997
+ var e = Reflect.getMetadata("design:paramtypes", r) || [], t = Reflect.getOwnMetadata(fv, r) || {};
6998
6998
  return Object.keys(t).forEach(function(n) {
6999
6999
  e[+n] = t[n];
7000
7000
  }), e;
@@ -7042,13 +7042,13 @@ var Kp = function() {
7042
7042
  function Ni(r) {
7043
7043
  return typeof r == "string" || typeof r == "symbol";
7044
7044
  }
7045
- function hv(r) {
7045
+ function dv(r) {
7046
7046
  return typeof r == "object" && "token" in r && "multiple" in r;
7047
7047
  }
7048
7048
  function rh(r) {
7049
7049
  return typeof r == "object" && "token" in r && "transform" in r;
7050
7050
  }
7051
- function dv(r) {
7051
+ function pv(r) {
7052
7052
  return typeof r == "function" || r instanceof Kp;
7053
7053
  }
7054
7054
  function Do(r) {
@@ -7057,7 +7057,7 @@ function Do(r) {
7057
7057
  function $o(r) {
7058
7058
  return r.useValue != null;
7059
7059
  }
7060
- function pv(r) {
7060
+ function yv(r) {
7061
7061
  return qp(r) || $o(r) || Do(r) || ru(r);
7062
7062
  }
7063
7063
  var vf = function() {
@@ -7083,7 +7083,7 @@ var vf = function() {
7083
7083
  }, r.prototype.ensure = function(e) {
7084
7084
  this._registryMap.has(e) || this._registryMap.set(e, []);
7085
7085
  }, r;
7086
- }(), yv = function(r) {
7086
+ }(), gv = function(r) {
7087
7087
  gf(e, r);
7088
7088
  function e() {
7089
7089
  return r !== null && r.apply(this, arguments) || this;
@@ -7095,54 +7095,54 @@ var vf = function() {
7095
7095
  }
7096
7096
  return r;
7097
7097
  }();
7098
- function gv(r, e) {
7098
+ function vv(r, e) {
7099
7099
  if (r === null)
7100
7100
  return "at position #" + e;
7101
7101
  var t = r.split(",")[e].trim();
7102
7102
  return '"' + t + '" at position #' + e;
7103
7103
  }
7104
- function vv(r, e, t) {
7104
+ function mv(r, e, t) {
7105
7105
  return t === void 0 && (t = " "), ti([r], e.message.split(`
7106
7106
  `).map(function(n) {
7107
7107
  return t + n;
7108
7108
  })).join(`
7109
7109
  `);
7110
7110
  }
7111
- function mv(r, e, t) {
7112
- var n = ma(r.toString().match(/constructor\(([\w, ]+)\)/) || [], 2), i = n[1], s = i === void 0 ? null : i, o = gv(s, e);
7113
- return vv("Cannot inject the dependency " + o + ' of "' + r.name + '" constructor. Reason:', t);
7111
+ function wv(r, e, t) {
7112
+ var n = ma(r.toString().match(/constructor\(([\w, ]+)\)/) || [], 2), i = n[1], s = i === void 0 ? null : i, o = vv(s, e);
7113
+ return mv("Cannot inject the dependency " + o + ' of "' + r.name + '" constructor. Reason:', t);
7114
7114
  }
7115
- function wv(r) {
7115
+ function bv(r) {
7116
7116
  if (typeof r.dispose != "function")
7117
7117
  return !1;
7118
7118
  var e = r.dispose;
7119
7119
  return !(e.length > 0);
7120
7120
  }
7121
- var bv = function(r) {
7121
+ var xv = function(r) {
7122
7122
  gf(e, r);
7123
7123
  function e() {
7124
7124
  return r !== null && r.apply(this, arguments) || this;
7125
7125
  }
7126
7126
  return e;
7127
- }(vf), xv = function(r) {
7127
+ }(vf), Av = function(r) {
7128
7128
  gf(e, r);
7129
7129
  function e() {
7130
7130
  return r !== null && r.apply(this, arguments) || this;
7131
7131
  }
7132
7132
  return e;
7133
- }(vf), Av = /* @__PURE__ */ function() {
7133
+ }(vf), Sv = /* @__PURE__ */ function() {
7134
7134
  function r() {
7135
- this.preResolution = new bv(), this.postResolution = new xv();
7135
+ this.preResolution = new xv(), this.postResolution = new Av();
7136
7136
  }
7137
7137
  return r;
7138
- }(), Zp = /* @__PURE__ */ new Map(), Sv = function() {
7138
+ }(), Zp = /* @__PURE__ */ new Map(), _v = function() {
7139
7139
  function r(e) {
7140
- this.parent = e, this._registry = new yv(), this.interceptors = new Av(), this.disposed = !1, this.disposables = /* @__PURE__ */ new Set();
7140
+ this.parent = e, this._registry = new gv(), this.interceptors = new Sv(), this.disposed = !1, this.disposables = /* @__PURE__ */ new Set();
7141
7141
  }
7142
7142
  return r.prototype.register = function(e, t, n) {
7143
7143
  n === void 0 && (n = { lifecycle: dr.Transient }), this.ensureNotDisposed();
7144
7144
  var i;
7145
- if (pv(t) ? i = t : i = { useClass: t }, Do(i))
7145
+ if (yv(t) ? i = t : i = { useClass: t }, Do(i))
7146
7146
  for (var s = [e], o = i; o != null; ) {
7147
7147
  var c = o.useToken;
7148
7148
  if (s.includes(c))
@@ -7189,7 +7189,7 @@ var bv = function(r) {
7189
7189
  var i = this.resolveRegistration(n, t);
7190
7190
  return this.executePostResolutionInterceptor(e, i, "Single"), i;
7191
7191
  }
7192
- if (dv(e)) {
7192
+ if (pv(e)) {
7193
7193
  var i = this.construct(e, t);
7194
7194
  return this.executePostResolutionInterceptor(e, i, "Single"), i;
7195
7195
  }
@@ -7316,9 +7316,9 @@ var bv = function(r) {
7316
7316
  options: n
7317
7317
  });
7318
7318
  }, r.prototype.dispose = function() {
7319
- return cv(this, void 0, void 0, function() {
7319
+ return lv(this, void 0, void 0, function() {
7320
7320
  var e;
7321
- return lv(this, function(t) {
7321
+ return uv(this, function(t) {
7322
7322
  switch (t.label) {
7323
7323
  case 0:
7324
7324
  return this.disposed = !0, e = [], this.disposables.forEach(function(n) {
@@ -7350,25 +7350,25 @@ var bv = function(r) {
7350
7350
  var o = s.map(n.resolveParams(t, e));
7351
7351
  return new (e.bind.apply(e, ti([void 0], o)))();
7352
7352
  }();
7353
- return wv(i) && this.disposables.add(i), i;
7353
+ return bv(i) && this.disposables.add(i), i;
7354
7354
  }, r.prototype.resolveParams = function(e, t) {
7355
7355
  var n = this;
7356
7356
  return function(i, s) {
7357
7357
  var o, c, u;
7358
7358
  try {
7359
- return hv(i) ? rh(i) ? i.multiple ? (o = n.resolve(i.transform)).transform.apply(o, ti([n.resolveAll(i.token)], i.transformArgs)) : (c = n.resolve(i.transform)).transform.apply(c, ti([n.resolve(i.token, e)], i.transformArgs)) : i.multiple ? n.resolveAll(i.token) : n.resolve(i.token, e) : rh(i) ? (u = n.resolve(i.transform, e)).transform.apply(u, ti([n.resolve(i.token, e)], i.transformArgs)) : n.resolve(i, e);
7359
+ return dv(i) ? rh(i) ? i.multiple ? (o = n.resolve(i.transform)).transform.apply(o, ti([n.resolveAll(i.token)], i.transformArgs)) : (c = n.resolve(i.transform)).transform.apply(c, ti([n.resolve(i.token, e)], i.transformArgs)) : i.multiple ? n.resolveAll(i.token) : n.resolve(i.token, e) : rh(i) ? (u = n.resolve(i.transform, e)).transform.apply(u, ti([n.resolve(i.token, e)], i.transformArgs)) : n.resolve(i, e);
7360
7360
  } catch (h) {
7361
- throw new Error(mv(t, s, h));
7361
+ throw new Error(wv(t, s, h));
7362
7362
  }
7363
7363
  };
7364
7364
  }, r.prototype.ensureNotDisposed = function() {
7365
7365
  if (this.disposed)
7366
7366
  throw new Error("This container has been disposed, you cannot interact with a disposed container");
7367
7367
  }, r;
7368
- }(), lr = new Sv();
7368
+ }(), lr = new _v();
7369
7369
  function Ic() {
7370
7370
  return function(r) {
7371
- Zp.set(r, fv(r));
7371
+ Zp.set(r, hv(r));
7372
7372
  };
7373
7373
  }
7374
7374
  if (typeof Reflect > "u" || !Reflect.getMetadata)
@@ -7800,7 +7800,7 @@ f([
7800
7800
  *
7801
7801
  */
7802
7802
  const Io = "crypto.algorithm";
7803
- class _v {
7803
+ class Ev {
7804
7804
  getAlgorithms() {
7805
7805
  return lr.resolveAll(Io);
7806
7806
  }
@@ -7836,7 +7836,7 @@ class _v {
7836
7836
  }
7837
7837
  }
7838
7838
  const Yi = "crypto.algorithmProvider";
7839
- lr.registerSingleton(Yi, _v);
7839
+ lr.registerSingleton(Yi, Ev);
7840
7840
  var Mo;
7841
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 {
@@ -7846,13 +7846,13 @@ let zs = Mo = class {
7846
7846
  if ("hash" in e)
7847
7847
  switch ((typeof e.hash == "string" ? e.hash : e.hash.name).toLowerCase()) {
7848
7848
  case "sha-1":
7849
- return Zg;
7850
- case "sha-256":
7851
7849
  return Wg;
7852
- case "sha-384":
7850
+ case "sha-256":
7853
7851
  return Yg;
7854
- case "sha-512":
7852
+ case "sha-384":
7855
7853
  return Jg;
7854
+ case "sha-512":
7855
+ return Xg;
7856
7856
  }
7857
7857
  else if ("namedCurve" in e) {
7858
7858
  let t = "";
@@ -7992,7 +7992,7 @@ class nt {
7992
7992
  }
7993
7993
  nt.NAME = r0;
7994
7994
  nt.VALUE = n0;
7995
- class Ev {
7995
+ class Iv {
7996
7996
  static toTextObject(e) {
7997
7997
  const t = new nt("Algorithm Identifier", {}, Bn.toString(e.algorithm));
7998
7998
  if (e.parameters)
@@ -8022,7 +8022,7 @@ Bn.items = {
8022
8022
  [va]: "sha512",
8023
8023
  [gi]: "rsaEncryption",
8024
8024
  [fa]: "sha1WithRSAEncryption",
8025
- [nv]: "sha224WithRSAEncryption",
8025
+ [iv]: "sha224WithRSAEncryption",
8026
8026
  [Jl]: "sha256WithRSAEncryption",
8027
8027
  [ha]: "sha384WithRSAEncryption",
8028
8028
  [da]: "sha512WithRSAEncryption",
@@ -8032,12 +8032,12 @@ Bn.items = {
8032
8032
  [hf]: "ecdsaWithSHA256",
8033
8033
  [df]: "ecdsaWithSHA384",
8034
8034
  [pf]: "ecdsaWithSHA512",
8035
- [Lg]: "TLS WWW server authentication",
8036
- [Hg]: "TLS WWW client authentication",
8037
- [Fg]: "Code Signing",
8038
- [zg]: "E-mail Protection",
8039
- [Gg]: "Time Stamping",
8040
- [qg]: "OCSP Signing",
8035
+ [Hg]: "TLS WWW server authentication",
8036
+ [Fg]: "TLS WWW client authentication",
8037
+ [zg]: "Code Signing",
8038
+ [Gg]: "E-mail Protection",
8039
+ [qg]: "Time Stamping",
8040
+ [Kg]: "OCSP Signing",
8041
8041
  [Zl]: "Signed Data"
8042
8042
  };
8043
8043
  class Gn {
@@ -8094,7 +8094,7 @@ class Gn {
8094
8094
  }
8095
8095
  }
8096
8096
  Gn.oidSerializer = Bn;
8097
- Gn.algorithmSerializer = Ev;
8097
+ Gn.algorithmSerializer = Iv;
8098
8098
  class Jn {
8099
8099
  constructor(...e) {
8100
8100
  if (e.length === 1) {
@@ -8213,9 +8213,9 @@ class Dn {
8213
8213
  }
8214
8214
  i0 = Symbol.toStringTag;
8215
8215
  Dn.DEFAULT = "default";
8216
- const Zt = new Dn(), Iv = /^[0-2](?:\.[1-9][0-9]*)+$/;
8217
- function kv(r) {
8218
- return new RegExp(Iv).test(r);
8216
+ const Zt = new Dn(), kv = /^[0-2](?:\.[1-9][0-9]*)+$/;
8217
+ function Cv(r) {
8218
+ return new RegExp(kv).test(r);
8219
8219
  }
8220
8220
  class s0 {
8221
8221
  constructor(e = {}) {
@@ -8227,7 +8227,7 @@ class s0 {
8227
8227
  return this.items[e] || null;
8228
8228
  }
8229
8229
  findId(e) {
8230
- return kv(e) ? e : this.get(e);
8230
+ return Cv(e) ? e : this.get(e);
8231
8231
  }
8232
8232
  register(e, t) {
8233
8233
  this.items[e] = t, this.items[t] = e;
@@ -8246,11 +8246,11 @@ mr.register("G", "2.5.4.42");
8246
8246
  mr.register("I", "2.5.4.43");
8247
8247
  mr.register("SN", "2.5.4.4");
8248
8248
  mr.register("T", "2.5.4.12");
8249
- function Cv(r, e) {
8249
+ function Bv(r, e) {
8250
8250
  return `\\${de.ToHex(de.FromUtf8String(e)).toUpperCase()}`;
8251
8251
  }
8252
- function Bv(r) {
8253
- return r.replace(/([,+"\\<>;])/g, "\\$1").replace(/^([ #])/, "\\$1").replace(/([ ]$)/, "\\$1").replace(/([\r\n\t])/, Cv);
8252
+ function Ov(r) {
8253
+ return r.replace(/([,+"\\<>;])/g, "\\$1").replace(/^([ #])/, "\\$1").replace(/([ ]$)/, "\\$1").replace(/([\r\n\t])/, Bv);
8254
8254
  }
8255
8255
  class Hn {
8256
8256
  static isASCII(e) {
@@ -8283,7 +8283,7 @@ class Hn {
8283
8283
  }
8284
8284
  toString() {
8285
8285
  return this.asn.map((e) => e.map((t) => {
8286
- const n = this.getName(t.type) || t.type, i = t.value.anyValue ? `#${de.ToHex(t.value.anyValue)}` : Bv(t.value.toString());
8286
+ const n = this.getName(t.type) || t.type, i = t.value.anyValue ? `#${de.ToHex(t.value.anyValue)}` : Ov(t.value.toString());
8287
8287
  return `${n}=${i}`;
8288
8288
  }).join("+")).join(", ");
8289
8289
  }
@@ -8377,7 +8377,7 @@ 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", qc = "ip", Kc = "url", Zc = "guid", Wc = "upn", No = "id";
8380
+ const o0 = "Cannot initialize GeneralName from ASN.1 data.", Yh = `${o0} Unsupported string format in use.`, Tv = `${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;
@@ -8385,21 +8385,21 @@ class $n extends Jn {
8385
8385
  switch (e[0]) {
8386
8386
  case zc: {
8387
8387
  const n = new Hn(e[1]).toArrayBuffer(), i = K.parse(n, Ht);
8388
- t = new De({ directoryName: i });
8388
+ t = new $e({ directoryName: i });
8389
8389
  break;
8390
8390
  }
8391
8391
  case Fc:
8392
- t = new De({ dNSName: e[1] });
8392
+ t = new $e({ dNSName: e[1] });
8393
8393
  break;
8394
8394
  case Gc:
8395
- t = new De({ rfc822Name: e[1] });
8395
+ t = new $e({ rfc822Name: e[1] });
8396
8396
  break;
8397
8397
  case Zc: {
8398
8398
  const n = new RegExp(Jh, "i").exec(e[1]);
8399
8399
  if (!n)
8400
8400
  throw new Error("Cannot parse GUID value. Value doesn't match to regular expression");
8401
8401
  const i = n.slice(1).map((s, o) => o < 3 ? de.ToHex(new Uint8Array(de.FromHex(s)).reverse()) : s).join("");
8402
- t = new De({
8402
+ t = new $e({
8403
8403
  otherName: new Ds({
8404
8404
  typeId: Xh,
8405
8405
  value: K.serialize(new it(de.FromHex(i)))
@@ -8408,13 +8408,13 @@ class $n extends Jn {
8408
8408
  break;
8409
8409
  }
8410
8410
  case qc:
8411
- t = new De({ iPAddress: e[1] });
8411
+ t = new $e({ iPAddress: e[1] });
8412
8412
  break;
8413
8413
  case No:
8414
- t = new De({ registeredID: e[1] });
8414
+ t = new $e({ registeredID: e[1] });
8415
8415
  break;
8416
8416
  case Wc: {
8417
- t = new De({
8417
+ t = new $e({
8418
8418
  otherName: new Ds({
8419
8419
  typeId: Qh,
8420
8420
  value: K.serialize(_p.toASN(e[1]))
@@ -8423,12 +8423,12 @@ class $n extends Jn {
8423
8423
  break;
8424
8424
  }
8425
8425
  case Kc:
8426
- t = new De({ uniformResourceIdentifier: e[1] });
8426
+ t = new $e({ 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 = K.parse(e[0], De) : t = e[0];
8431
+ else Y.isBufferSource(e[0]) ? t = K.parse(e[0], $e) : t = e[0];
8432
8432
  super(t);
8433
8433
  }
8434
8434
  onInit(e) {
@@ -8449,7 +8449,7 @@ class $n extends Jn {
8449
8449
  this.type = Zc;
8450
8450
  const t = K.parse(e.otherName.value, it), n = new RegExp(Jh, "i").exec(de.ToHex(t));
8451
8451
  if (!n)
8452
- throw new Error(Ov);
8452
+ throw new Error(Tv);
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
8455
  this.type = Wc, this.value = K.parse(e.otherName.value, Xt).toString();
@@ -8494,10 +8494,10 @@ class Gs extends Jn {
8494
8494
  else if (Array.isArray(e)) {
8495
8495
  const n = [];
8496
8496
  for (const i of e)
8497
- if (i instanceof De)
8497
+ if (i instanceof $e)
8498
8498
  n.push(i);
8499
8499
  else {
8500
- const s = K.parse(new $n(i.type, i.value).rawData, De);
8500
+ const s = K.parse(new $n(i.type, i.value).rawData, $e);
8501
8501
  n.push(s);
8502
8502
  }
8503
8503
  t = new cr(n);
@@ -8534,7 +8534,7 @@ class Gs extends Jn {
8534
8534
  }
8535
8535
  }
8536
8536
  Gs.NAME = "GeneralNames";
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}`;
8537
+ const js = "-{5}", qs = "\\n", Nv = `[^${qs}]+`, Pv = `${js}BEGIN (${Nv}(?=${js}))${js}`, jv = `${js}END \\1${js}`, Ji = "\\n", Rv = `[^:${qs}]+`, Uv = `(?:[^${qs}]+${Ji}(?: +[^${qs}]+${Ji})*)`, Dv = "[a-zA-Z0-9=+/]+", $v = `(?:${Dv}${Ji})+`, ed = `${Pv}${Ji}(?:((?:${Rv}: ${Uv})+))?${Ji}?(${$v})${jv}`;
8538
8538
  class gr {
8539
8539
  static isPem(e) {
8540
8540
  return typeof e == "string" && new RegExp(ed, "g").test(e);
@@ -8681,7 +8681,7 @@ class sn extends Fr {
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
8683
  const o = K.parse(this.rawData, rn);
8684
- return o.algorithm.algorithm === Ps && (s = $v(o, s)), t.subtle.importKey("spki", s, i, !0, n);
8684
+ return o.algorithm.algorithm === Ps && (s = Mv(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);
@@ -8717,7 +8717,7 @@ class sn extends Fr {
8717
8717
  return e;
8718
8718
  }
8719
8719
  }
8720
- function $v(r, e) {
8720
+ function Mv(r, e) {
8721
8721
  return r.algorithm = new oe({
8722
8722
  algorithm: gi,
8723
8723
  parameters: null
@@ -8897,7 +8897,7 @@ class h0 extends Pr {
8897
8897
  else if (Array.isArray(e[0]) && typeof e[0][0] == "string") {
8898
8898
  const i = e[0].map((o) => new ss({
8899
8899
  distributionPoint: new fi({
8900
- fullName: [new De({ uniformResourceIdentifier: o })]
8900
+ fullName: [new $e({ uniformResourceIdentifier: o })]
8901
8901
  })
8902
8902
  })), s = new Di(i);
8903
8903
  super(wl, e[1], K.serialize(s));
@@ -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: K.parse(o.rawData, De)
8980
+ accessLocation: K.parse(o.rawData, $e)
8981
8981
  }));
8982
8982
  });
8983
8983
  }
@@ -9068,7 +9068,7 @@ class Nc {
9068
9068
  }
9069
9069
  Nc.items = /* @__PURE__ */ new Map();
9070
9070
  const Pc = "crypto.signatureFormatter";
9071
- class Mv {
9071
+ class Vv {
9072
9072
  toAsnSignature(e, t) {
9073
9073
  return Y.toArrayBuffer(t);
9074
9074
  }
@@ -9220,7 +9220,7 @@ class Or {
9220
9220
  toWebSignature(e, t) {
9221
9221
  if (e.name === "ECDSA") {
9222
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
- return Xy(o, c);
9223
+ return Qy(o, c);
9224
9224
  }
9225
9225
  return null;
9226
9226
  }
@@ -9280,7 +9280,7 @@ Au = f([
9280
9280
  Ic()
9281
9281
  ], Au);
9282
9282
  lr.registerSingleton(Io, Au);
9283
- class Vv extends Fr {
9283
+ class Lv extends Fr {
9284
9284
  constructor(e) {
9285
9285
  Fr.isAsnEncoded(e) ? super(e, Fs) : super(e), this.tag = gr.CertificateRequestTag;
9286
9286
  }
@@ -9339,7 +9339,7 @@ class Vv extends Fr {
9339
9339
  }), e;
9340
9340
  }
9341
9341
  }
9342
- Vv.NAME = "PKCS#10 Certificate Request";
9342
+ Lv.NAME = "PKCS#10 Certificate Request";
9343
9343
  class wi extends Fr {
9344
9344
  constructor(e) {
9345
9345
  Fr.isAsnEncoded(e) ? super(e, di) : super(e), this.tag = gr.CertificateTag;
@@ -9438,7 +9438,7 @@ class wi extends Fr {
9438
9438
  }
9439
9439
  }
9440
9440
  wi.NAME = "Certificate";
9441
- class Lv extends Array {
9441
+ class Hv extends Array {
9442
9442
  constructor(e) {
9443
9443
  if (super(), Fr.isAsnEncoded(e))
9444
9444
  this.import(e);
@@ -9450,7 +9450,7 @@ class Lv extends Array {
9450
9450
  }
9451
9451
  export(e) {
9452
9452
  const t = new xn();
9453
- t.version = 1, t.encapContentInfo.eContentType = Kg, t.encapContentInfo.eContent = new qi({
9453
+ t.version = 1, t.encapContentInfo.eContentType = Zg, t.encapContentInfo.eContent = new qi({
9454
9454
  single: new it()
9455
9455
  }), t.certificates = new Ms(this.map((s) => new pi({
9456
9456
  certificate: K.parse(s.rawData, di)
@@ -9507,12 +9507,12 @@ class Lv extends Array {
9507
9507
  });
9508
9508
  }
9509
9509
  }
9510
- class Hv {
9510
+ class Fv {
9511
9511
  constructor(e = {}) {
9512
9512
  this.certificates = [], e.certificates && (this.certificates = e.certificates);
9513
9513
  }
9514
9514
  async build(e, t = Zt.get()) {
9515
- const n = new Lv(e);
9515
+ const n = new Hv(e);
9516
9516
  let i = e;
9517
9517
  for (; i = await this.findIssuer(i, t); ) {
9518
9518
  const s = await i.getThumbprint(t);
@@ -9568,7 +9568,7 @@ jr.register(wl, h0);
9568
9568
  jr.register(pl, d0);
9569
9569
  Nc.register(t0, p0);
9570
9570
  Nc.register(mf, wf);
9571
- lr.registerSingleton(Pc, Mv);
9571
+ lr.registerSingleton(Pc, Vv);
9572
9572
  lr.registerSingleton(Pc, Or);
9573
9573
  Or.namedCurveSize.set("P-256", 32);
9574
9574
  Or.namedCurveSize.set("K-256", 32);
@@ -9622,7 +9622,7 @@ let We = (vn = class {
9622
9622
  function _a(r) {
9623
9623
  if (r != null && typeof r == "object") return r[Er.ENCODED];
9624
9624
  }
9625
- function Fv(r) {
9625
+ function zv(r) {
9626
9626
  if (r != null && typeof r == "object") return r[Er.LENGTH];
9627
9627
  }
9628
9628
  function Zs(r, e) {
@@ -9642,7 +9642,7 @@ function y0(r) {
9642
9642
  function Vr(r) {
9643
9643
  return r.reduce((e, t) => e + t.toString(16).padStart(2, "0"), "");
9644
9644
  }
9645
- function zv(r) {
9645
+ function Gv(r) {
9646
9646
  const e = r.reduce((i, s) => i + s.length, 0), t = new Uint8Array(e);
9647
9647
  let n = 0;
9648
9648
  for (const i of r) t.set(i, n), n += i.length;
@@ -9652,12 +9652,12 @@ function bf(r) {
9652
9652
  const e = atob(r);
9653
9653
  return Uint8Array.from(e, (t) => t.codePointAt(0));
9654
9654
  }
9655
- const Gv = { "-": "+", _: "/" };
9656
- function qv(r) {
9657
- const e = r.replace(/[_-]/g, (t) => Gv[t]);
9655
+ const qv = { "-": "+", _: "/" };
9656
+ function Kv(r) {
9657
+ const e = r.replace(/[_-]/g, (t) => qv[t]);
9658
9658
  return bf(e.padEnd(Math.ceil(e.length / 4) * 4, "="));
9659
9659
  }
9660
- function Kv() {
9660
+ function Zv() {
9661
9661
  const r = new Uint8Array(4), e = new Uint32Array(r.buffer);
9662
9662
  return !((e[0] = 1) & r[0]);
9663
9663
  }
@@ -9688,51 +9688,51 @@ const Ma = class Ma {
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, et, Qn).call(this);
9691
+ De(this, et, Qn).call(this);
9692
9692
  }
9693
9693
  get length() {
9694
9694
  return $(this, Un);
9695
9695
  }
9696
9696
  read() {
9697
- Ue(this, et, Lo).call(this);
9697
+ De(this, et, Lo).call(this);
9698
9698
  const e = new Uint8Array($(this, Un));
9699
9699
  let t = 0;
9700
9700
  for (const n of $(this, qt)) e.set(n, t), t += n.length;
9701
- return Ue(this, et, Qn).call(this), e;
9701
+ return De(this, et, Qn).call(this), e;
9702
9702
  }
9703
9703
  write(e) {
9704
9704
  const t = e.length;
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);
9705
+ t > De(this, et, Su).call(this) ? (De(this, et, Lo).call(this), t > $(this, Rn).chunkSize ? ($(this, qt).push(e), De(this, et, Qn).call(this)) : (De(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, et, Jr).call(this, 1), $(this, pr).setUint8($(this, Mt), e), Ue(this, et, Xr).call(this, 1);
9708
+ De(this, et, Jr).call(this, 1), $(this, pr).setUint8($(this, Mt), e), De(this, et, Xr).call(this, 1);
9709
9709
  }
9710
9710
  writeUint16(e, t = !1) {
9711
- Ue(this, et, Jr).call(this, 2), $(this, pr).setUint16($(this, Mt), e, t), Ue(this, et, Xr).call(this, 2);
9711
+ De(this, et, Jr).call(this, 2), $(this, pr).setUint16($(this, Mt), e, t), De(this, et, Xr).call(this, 2);
9712
9712
  }
9713
9713
  writeUint32(e, t = !1) {
9714
- Ue(this, et, Jr).call(this, 4), $(this, pr).setUint32($(this, Mt), e, t), Ue(this, et, Xr).call(this, 4);
9714
+ De(this, et, Jr).call(this, 4), $(this, pr).setUint32($(this, Mt), e, t), De(this, et, Xr).call(this, 4);
9715
9715
  }
9716
9716
  writeBigUint64(e, t = !1) {
9717
- Ue(this, et, Jr).call(this, 8), $(this, pr).setBigUint64($(this, Mt), e, t), Ue(this, et, Xr).call(this, 8);
9717
+ De(this, et, Jr).call(this, 8), $(this, pr).setBigUint64($(this, Mt), e, t), De(this, et, Xr).call(this, 8);
9718
9718
  }
9719
9719
  writeInt16(e, t = !1) {
9720
- Ue(this, et, Jr).call(this, 2), $(this, pr).setInt16($(this, Mt), e, t), Ue(this, et, Xr).call(this, 2);
9720
+ De(this, et, Jr).call(this, 2), $(this, pr).setInt16($(this, Mt), e, t), De(this, et, Xr).call(this, 2);
9721
9721
  }
9722
9722
  writeInt32(e, t = !1) {
9723
- Ue(this, et, Jr).call(this, 4), $(this, pr).setInt32($(this, Mt), e, t), Ue(this, et, Xr).call(this, 4);
9723
+ De(this, et, Jr).call(this, 4), $(this, pr).setInt32($(this, Mt), e, t), De(this, et, Xr).call(this, 4);
9724
9724
  }
9725
9725
  writeBigInt64(e, t = !1) {
9726
- Ue(this, et, Jr).call(this, 8), $(this, pr).setBigInt64($(this, Mt), e, t), Ue(this, et, Xr).call(this, 8);
9726
+ De(this, et, Jr).call(this, 8), $(this, pr).setBigInt64($(this, Mt), e, t), De(this, et, Xr).call(this, 8);
9727
9727
  }
9728
9728
  writeFloat32(e, t = !1) {
9729
- Ue(this, et, Jr).call(this, 4), $(this, pr).setFloat32($(this, Mt), e, t), Ue(this, et, Xr).call(this, 4);
9729
+ De(this, et, Jr).call(this, 4), $(this, pr).setFloat32($(this, Mt), e, t), De(this, et, Xr).call(this, 4);
9730
9730
  }
9731
9731
  writeFloat64(e, t = !1) {
9732
- Ue(this, et, Jr).call(this, 8), $(this, pr).setFloat64($(this, Mt), e, t), Ue(this, et, Xr).call(this, 8);
9732
+ De(this, et, Jr).call(this, 8), $(this, pr).setFloat64($(this, Mt), e, t), De(this, et, Xr).call(this, 8);
9733
9733
  }
9734
9734
  clear() {
9735
- kt(this, Un, 0), kt(this, qt, []), Ue(this, et, Qn).call(this);
9735
+ kt(this, Un, 0), kt(this, qt, []), De(this, et, Qn).call(this);
9736
9736
  }
9737
9737
  };
9738
9738
  Rn = new WeakMap(), qt = new WeakMap(), pr = new WeakMap(), Mt = new WeakMap(), Un = new WeakMap(), et = new WeakSet(), Qn = function() {
@@ -9749,7 +9749,7 @@ Rn = new WeakMap(), qt = new WeakMap(), pr = new WeakMap(), Mt = new WeakMap(),
9749
9749
  const e = $(this, qt).length - 1;
9750
9750
  return $(this, qt)[e].length - $(this, Mt);
9751
9751
  }, Jr = function(e) {
9752
- Ue(this, et, Su).call(this) < e && (Ue(this, et, Lo).call(this), Ue(this, et, Qn).call(this));
9752
+ De(this, et, Su).call(this) < e && (De(this, et, Lo).call(this), De(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 });
@@ -9762,7 +9762,7 @@ function v0(r, e = 0, t = !1) {
9762
9762
  } else if (i === 31) return s ? NaN : n * (1 / 0);
9763
9763
  return n * 2 ** (i - 25) * (1024 + s);
9764
9764
  }
9765
- function Zv(r) {
9765
+ function Wv(r) {
9766
9766
  const e = new DataView(new ArrayBuffer(4));
9767
9767
  e.setFloat32(0, r, !1);
9768
9768
  const t = e.getUint32(0, !1);
@@ -9777,7 +9777,7 @@ function Zv(r) {
9777
9777
  else return null;
9778
9778
  return n;
9779
9779
  }
9780
- function Wv(r) {
9780
+ function Yv(r) {
9781
9781
  if (r !== 0) {
9782
9782
  const e = new ArrayBuffer(8), t = new DataView(e);
9783
9783
  t.setFloat64(0, r, !1);
@@ -9786,7 +9786,7 @@ function Wv(r) {
9786
9786
  }
9787
9787
  return r;
9788
9788
  }
9789
- function Yv(r) {
9789
+ function Jv(r) {
9790
9790
  switch (r.length) {
9791
9791
  case 2:
9792
9792
  v0(r, 0, !0);
@@ -9805,7 +9805,7 @@ function Yv(r) {
9805
9805
  throw new TypeError(`Bad input to isSubnormal: ${r}`);
9806
9806
  }
9807
9807
  }
9808
- const ad = me.SIMPLE_FLOAT << 5 | bt.TWO, Jv = me.SIMPLE_FLOAT << 5 | bt.FOUR, Xv = me.SIMPLE_FLOAT << 5 | bt.EIGHT, Qv = me.SIMPLE_FLOAT << 5 | Mn.TRUE, em = me.SIMPLE_FLOAT << 5 | Mn.FALSE, tm = me.SIMPLE_FLOAT << 5 | Mn.UNDEFINED, rm = me.SIMPLE_FLOAT << 5 | Mn.NULL, nm = new TextEncoder(), im = { ...Ea.defaultOptions, avoidInts: !1, cde: !1, collapseBigInts: !0, dcbor: !1, float64: !1, flushToZero: !1, forceEndian: null, ignoreOriginalEncoding: !1, largeNegativeAsBigInt: !1, reduceUnsafeNumbers: !1, rejectBigInts: !1, rejectCustomSimples: !1, rejectDuplicateKeys: !1, rejectFloats: !1, rejectUndefined: !1, simplifyNegativeZero: !1, sortKeys: null, stringNormalization: null }, m0 = { cde: !0, ignoreOriginalEncoding: !0, sortKeys: g0 }, sm = { ...m0, dcbor: !0, largeNegativeAsBigInt: !0, reduceUnsafeNumbers: !0, rejectCustomSimples: !0, rejectDuplicateKeys: !0, rejectUndefined: !0, simplifyNegativeZero: !0, stringNormalization: "NFC" };
9808
+ const ad = me.SIMPLE_FLOAT << 5 | bt.TWO, Xv = me.SIMPLE_FLOAT << 5 | bt.FOUR, Qv = me.SIMPLE_FLOAT << 5 | bt.EIGHT, em = me.SIMPLE_FLOAT << 5 | Mn.TRUE, tm = me.SIMPLE_FLOAT << 5 | Mn.FALSE, rm = me.SIMPLE_FLOAT << 5 | Mn.UNDEFINED, nm = me.SIMPLE_FLOAT << 5 | Mn.NULL, im = new TextEncoder(), sm = { ...Ea.defaultOptions, avoidInts: !1, cde: !1, collapseBigInts: !0, dcbor: !1, float64: !1, flushToZero: !1, forceEndian: null, ignoreOriginalEncoding: !1, largeNegativeAsBigInt: !1, reduceUnsafeNumbers: !1, rejectBigInts: !1, rejectCustomSimples: !1, rejectDuplicateKeys: !1, rejectFloats: !1, rejectUndefined: !1, simplifyNegativeZero: !1, sortKeys: null, stringNormalization: null }, m0 = { cde: !0, ignoreOriginalEncoding: !0, sortKeys: g0 }, om = { ...m0, dcbor: !0, largeNegativeAsBigInt: !0, reduceUnsafeNumbers: !0, rejectCustomSimples: !0, rejectDuplicateKeys: !0, rejectUndefined: !0, simplifyNegativeZero: !0, stringNormalization: "NFC" };
9809
9809
  function w0(r) {
9810
9810
  const e = r < 0;
9811
9811
  return typeof r == "bigint" ? [e ? -r - 1n : r, e] : [e ? -r - 1 : r, e];
@@ -9814,9 +9814,9 @@ function Xc(r, e, t) {
9814
9814
  if (t.rejectFloats) throw new Error(`Attempt to encode an unwanted floating point number: ${r}`);
9815
9815
  if (isNaN(r)) e.writeUint8(ad), e.writeUint16(32256);
9816
9816
  else if (!t.float64 && Math.fround(r) === r) {
9817
- const n = Zv(r);
9818
- n === null ? (e.writeUint8(Jv), e.writeFloat32(r)) : (e.writeUint8(ad), e.writeUint16(n));
9819
- } else e.writeUint8(Xv), e.writeFloat64(r);
9817
+ const n = Wv(r);
9818
+ n === null ? (e.writeUint8(Xv), e.writeFloat32(r)) : (e.writeUint8(ad), e.writeUint16(n));
9819
+ } else e.writeUint8(Qv), e.writeFloat64(r);
9820
9820
  }
9821
9821
  function zr(r, e, t) {
9822
9822
  const [n, i] = w0(r);
@@ -9845,34 +9845,34 @@ function b0(r, e, t) {
9845
9845
  const u = y0(c + o);
9846
9846
  zr(u.length, e, me.BYTE_STRING), e.write(u);
9847
9847
  }
9848
- function om(r, e, t) {
9849
- t.flushToZero && (r = Wv(r)), Object.is(r, -0) ? t.simplifyNegativeZero ? t.avoidInts ? Xc(0, e, t) : zr(0, e) : Xc(r, e, t) : !t.avoidInts && Number.isSafeInteger(r) ? zr(r, e) : t.reduceUnsafeNumbers && Math.floor(r) === r && r >= Sa.MIN && r <= Sa.MAX ? b0(BigInt(r), e, t) : Xc(r, e, t);
9850
- }
9851
9848
  function am(r, e, t) {
9852
- const n = t.stringNormalization ? r.normalize(t.stringNormalization) : r, i = nm.encode(n);
9853
- zr(i.length, e, me.UTF8_STRING), e.write(i);
9849
+ t.flushToZero && (r = Yv(r)), Object.is(r, -0) ? t.simplifyNegativeZero ? t.avoidInts ? Xc(0, e, t) : zr(0, e) : Xc(r, e, t) : !t.avoidInts && Number.isSafeInteger(r) ? zr(r, e) : t.reduceUnsafeNumbers && Math.floor(r) === r && r >= Sa.MIN && r <= Sa.MAX ? b0(BigInt(r), e, t) : Xc(r, e, t);
9854
9850
  }
9855
9851
  function cm(r, e, t) {
9852
+ const n = t.stringNormalization ? r.normalize(t.stringNormalization) : r, i = im.encode(n);
9853
+ zr(i.length, e, me.UTF8_STRING), e.write(i);
9854
+ }
9855
+ function lm(r, e, t) {
9856
9856
  const n = r;
9857
9857
  xf(n, n.length, me.ARRAY, e, t);
9858
9858
  for (const i of n) ii(i, e, t);
9859
9859
  }
9860
- function lm(r, e) {
9860
+ function um(r, e) {
9861
9861
  const t = r;
9862
9862
  zr(t.length, e, me.BYTE_STRING), e.write(t);
9863
9863
  }
9864
- const _u = /* @__PURE__ */ new Map([[Array, cm], [Uint8Array, lm]]);
9864
+ const _u = /* @__PURE__ */ new Map([[Array, lm], [Uint8Array, um]]);
9865
9865
  function Rt(r, e) {
9866
9866
  const t = _u.get(r);
9867
9867
  return _u.set(r, e), t;
9868
9868
  }
9869
9869
  function xf(r, e, t, n, i) {
9870
- const s = Fv(r);
9870
+ const s = zv(r);
9871
9871
  s && !i.ignoreOriginalEncoding ? n.write(s) : zr(e, n, t);
9872
9872
  }
9873
- function um(r, e, t) {
9873
+ function fm(r, e, t) {
9874
9874
  if (r === null) {
9875
- e.writeUint8(rm);
9875
+ e.writeUint8(nm);
9876
9876
  return;
9877
9877
  }
9878
9878
  if (!t.ignoreOriginalEncoding && Er.ENCODED in r) {
@@ -9901,23 +9901,23 @@ function um(r, e, t) {
9901
9901
  function ii(r, e, t) {
9902
9902
  switch (typeof r) {
9903
9903
  case "number":
9904
- om(r, e, t);
9904
+ am(r, e, t);
9905
9905
  break;
9906
9906
  case "bigint":
9907
9907
  b0(r, e, t);
9908
9908
  break;
9909
9909
  case "string":
9910
- am(r, e, t);
9910
+ cm(r, e, t);
9911
9911
  break;
9912
9912
  case "boolean":
9913
- e.writeUint8(r ? Qv : em);
9913
+ e.writeUint8(r ? em : tm);
9914
9914
  break;
9915
9915
  case "undefined":
9916
9916
  if (t.rejectUndefined) throw new Error("Attempt to encode unwanted undefined.");
9917
- e.writeUint8(tm);
9917
+ e.writeUint8(rm);
9918
9918
  break;
9919
9919
  case "object":
9920
- um(r, e, t);
9920
+ fm(r, e, t);
9921
9921
  break;
9922
9922
  case "symbol":
9923
9923
  throw new TypeError(`Unknown symbol: ${r.toString()}`);
@@ -9926,8 +9926,8 @@ function ii(r, e, t) {
9926
9926
  }
9927
9927
  }
9928
9928
  function jc(r, e = {}) {
9929
- const t = { ...im };
9930
- e.dcbor ? Object.assign(t, sm) : e.cde && Object.assign(t, m0), Object.assign(t, e);
9929
+ const t = { ...sm };
9930
+ e.dcbor ? Object.assign(t, om) : e.cde && Object.assign(t, m0), Object.assign(t, e);
9931
9931
  const n = new Ea(t);
9932
9932
  return ii(r, n, t), n.read();
9933
9933
  }
@@ -9956,7 +9956,7 @@ const Tn = class Tn {
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
- const fm = new TextDecoder("utf8", { fatal: !0, ignoreBOM: !0 });
9959
+ const hm = new TextDecoder("utf8", { fatal: !0, ignoreBOM: !0 });
9960
9960
  var Ar, Dr, Kt, kr, Wt, ei, Eu, ks;
9961
9961
  const Va = class Va {
9962
9962
  constructor(e, t) {
@@ -9982,7 +9982,7 @@ const Va = class Va {
9982
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, Kt) !== $(this, Ar).length) throw new Error("Extra data in input");
9985
+ if (yield* De(this, Wt, ei).call(this, 0), $(this, Kt) !== $(this, Ar).length) throw new Error("Extra data in input");
9986
9986
  }
9987
9987
  };
9988
9988
  Ar = new WeakMap(), Dr = new WeakMap(), Kt = new WeakMap(), kr = new WeakMap(), Wt = new WeakSet(), ei = function* (e) {
@@ -10036,29 +10036,29 @@ Ar = new WeakMap(), Dr = new WeakMap(), Kt = new WeakMap(), kr = new WeakMap(),
10036
10036
  yield [i, s, typeof o == "bigint" ? -1n - o : -1 - Number(o), t, u];
10037
10037
  break;
10038
10038
  case me.BYTE_STRING:
10039
- o === 1 / 0 ? yield* Ue(this, Wt, ks).call(this, i, e, t) : yield [i, s, Ue(this, Wt, Eu).call(this, o), t, o];
10039
+ o === 1 / 0 ? yield* De(this, Wt, ks).call(this, i, e, t) : yield [i, s, De(this, Wt, Eu).call(this, o), t, o];
10040
10040
  break;
10041
10041
  case me.UTF8_STRING:
10042
- o === 1 / 0 ? yield* Ue(this, Wt, ks).call(this, i, e, t) : yield [i, s, fm.decode(Ue(this, Wt, Eu).call(this, o)), t, o];
10042
+ o === 1 / 0 ? yield* De(this, Wt, ks).call(this, i, e, t) : yield [i, s, hm.decode(De(this, Wt, Eu).call(this, o)), t, o];
10043
10043
  break;
10044
10044
  case me.ARRAY:
10045
- if (o === 1 / 0) yield* Ue(this, Wt, ks).call(this, i, e, t, !1);
10045
+ if (o === 1 / 0) yield* De(this, Wt, ks).call(this, i, e, t, !1);
10046
10046
  else {
10047
10047
  const h = Number(o);
10048
10048
  yield [i, s, h, t, u];
10049
- for (let m = 0; m < h; m++) yield* Ue(this, Wt, ei).call(this, e + 1);
10049
+ for (let m = 0; m < h; m++) yield* De(this, Wt, ei).call(this, e + 1);
10050
10050
  }
10051
10051
  break;
10052
10052
  case me.MAP:
10053
- if (o === 1 / 0) yield* Ue(this, Wt, ks).call(this, i, e, t, !1);
10053
+ if (o === 1 / 0) yield* De(this, Wt, ks).call(this, i, e, t, !1);
10054
10054
  else {
10055
10055
  const h = Number(o);
10056
10056
  yield [i, s, h, t, u];
10057
- for (let m = 0; m < h; m++) yield* Ue(this, Wt, ei).call(this, e), yield* Ue(this, Wt, ei).call(this, e);
10057
+ for (let m = 0; m < h; m++) yield* De(this, Wt, ei).call(this, e), yield* De(this, Wt, ei).call(this, e);
10058
10058
  }
10059
10059
  break;
10060
10060
  case me.TAG:
10061
- yield [i, s, o, t, u], yield* Ue(this, Wt, ei).call(this, e);
10061
+ yield [i, s, o, t, u], yield* De(this, Wt, ei).call(this, e);
10062
10062
  break;
10063
10063
  case me.SIMPLE_FLOAT: {
10064
10064
  const h = o;
@@ -10072,7 +10072,7 @@ Ar = new WeakMap(), Dr = new WeakMap(), Kt = new WeakMap(), kr = new WeakMap(),
10072
10072
  return t;
10073
10073
  }, ks = function* (e, t, n, i = !0) {
10074
10074
  for (yield [e, bt.INDEFINITE, 1 / 0, n, 1 / 0]; ; ) {
10075
- const s = Ue(this, Wt, ei).call(this, t), o = s.next(), [c, u, h] = o.value;
10075
+ const s = De(this, Wt, ei).call(this, t), o = s.next(), [c, u, h] = o.value;
10076
10076
  if (h === Er.BREAK) {
10077
10077
  yield o.value, s.next();
10078
10078
  return;
@@ -10085,7 +10085,7 @@ Ar = new WeakMap(), Dr = new WeakMap(), Kt = new WeakMap(), kr = new WeakMap(),
10085
10085
  }
10086
10086
  }, He(Va, "defaultOptions", { maxDepth: 1024, encoding: "hex", requirePreferred: !1 });
10087
10087
  let Ys = Va;
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);
10088
+ const dm = /* @__PURE__ */ new Map([[bt.ZERO, 1], [bt.ONE, 2], [bt.TWO, 3], [bt.FOUR, 5], [bt.EIGHT, 9]]), pm = new Uint8Array(0);
10089
10089
  var tn, ar, en, La, A0;
10090
10090
  let Nn = (tn = class {
10091
10091
  constructor(e, t, n, i) {
@@ -10126,10 +10126,10 @@ let Nn = (tn = class {
10126
10126
  const h = i.toHere(u);
10127
10127
  if (h.length !== 3 || h[1] !== 126 || h[2] !== 0) throw new Error(`Invalid NaN encoding: "${Vr(h)}"`);
10128
10128
  }
10129
- if (n.rejectSubnormals && Yv(i.toHere(u + 1)), n.rejectLongFloats) {
10129
+ if (n.rejectSubnormals && Jv(i.toHere(u + 1)), n.rejectLongFloats) {
10130
10130
  const h = jc(c, { chunkSize: 9, reduceUnsafeNumbers: n.rejectUnsafeFloatInts });
10131
10131
  if (h[0] >> 5 !== s) throw new Error(`Should have been encoded as int, not float: ${c}`);
10132
- if (h.length < hm.get(o)) throw new Error(`Number should have been encoded shorter: ${c}`);
10132
+ if (h.length < dm.get(o)) throw new Error(`Number should have been encoded shorter: ${c}`);
10133
10133
  }
10134
10134
  if (typeof c == "number" && n.boxed) return Is(c, i.toHere(u));
10135
10135
  } else {
@@ -10178,7 +10178,7 @@ let Nn = (tn = class {
10178
10178
  t = this.children;
10179
10179
  break;
10180
10180
  case me.MAP: {
10181
- const n = Ue(this, La, A0).call(this);
10181
+ const n = De(this, La, A0).call(this);
10182
10182
  if ($(this, ar).sortKeys) {
10183
10183
  let i;
10184
10184
  for (const s of n) {
@@ -10197,7 +10197,7 @@ let Nn = (tn = class {
10197
10197
  break;
10198
10198
  }
10199
10199
  case me.BYTE_STRING:
10200
- return zv(this.children);
10200
+ return Gv(this.children);
10201
10201
  case me.UTF8_STRING: {
10202
10202
  const n = this.children.join("");
10203
10203
  t = $(this, ar).boxed ? Is(n, e.toHere(this.offset)) : n;
@@ -10216,7 +10216,7 @@ let Nn = (tn = class {
10216
10216
  if (t % 2) throw new Error("Missing map value");
10217
10217
  const n = new Array(t / 2);
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
- else for (let i = 0; i < t; i += 2) n[i >> 1] = [e[i], e[i + 1], dm];
10219
+ else for (let i = 0; i < t; i += 2) n[i >> 1] = [e[i], e[i + 1], pm];
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;
@@ -10314,9 +10314,9 @@ function _0(r, e, t) {
10314
10314
  }
10315
10315
  return n;
10316
10316
  }
10317
- const pm = { ...Nn.defaultDecodeOptions, initialDepth: 0, noPrefixHex: !1, minCol: 0 };
10318
- function ym(r, e) {
10319
- const t = { ...pm, ...e, ParentType: Iu, saveOriginal: !0 }, n = new Ys(r, t);
10317
+ const ym = { ...Nn.defaultDecodeOptions, initialDepth: 0, noPrefixHex: !1, minCol: 0 };
10318
+ function gm(r, e) {
10319
+ const t = { ...ym, ...e, ParentType: Iu, saveOriginal: !0 }, n = new Ys(r, t);
10320
10320
  let i, s;
10321
10321
  for (const c of n) {
10322
10322
  if (s = Nn.create(c, i, t, n), c[2] === Er.BREAK) if (i != null && i.isStreaming) i.left = 1;
@@ -10334,7 +10334,7 @@ function ym(r, e) {
10334
10334
  `;
10335
10335
  return o += _0(s, t), o;
10336
10336
  }
10337
- const cd = !Kv();
10337
+ const cd = !Zv();
10338
10338
  function E0(r) {
10339
10339
  if (typeof r == "object" && r) {
10340
10340
  if (r.constructor !== Number) throw new Error(`Expected number: ${r}`);
@@ -10391,12 +10391,12 @@ el.comment = (r, e, t) => {
10391
10391
  const o = i[s] & 31;
10392
10392
  let c = Vr(i.subarray(s, ++s));
10393
10393
  o >= 24 && (c += " ", c += Vr(i.subarray(s, s + 2 ** (o - 24)))), n.minCol = Math.max(n.minCol, (t + 1) * 2 + c.length);
10394
- const u = ym(r.contents, n);
10394
+ const u = gm(r.contents, n);
10395
10395
  let h = `Embedded CBOR
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), 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) => {
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), Kv(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]`);
@@ -10559,7 +10559,7 @@ const se = ct.arrayToEnum([
10559
10559
  "invalid_intersection_types",
10560
10560
  "not_multiple_of",
10561
10561
  "not_finite"
10562
- ]), gm = (r) => JSON.stringify(r, null, 2).replace(/"([^"]+)":/g, "$1:");
10562
+ ]), vm = (r) => JSON.stringify(r, null, 2).replace(/"([^"]+)":/g, "$1:");
10563
10563
  class _r extends Error {
10564
10564
  constructor(e) {
10565
10565
  super(), this.issues = [], this.addIssue = (n) => {
@@ -10677,7 +10677,7 @@ const Xi = (r, e) => {
10677
10677
  return { message: t };
10678
10678
  };
10679
10679
  let k0 = Xi;
10680
- function vm(r) {
10680
+ function mm(r) {
10681
10681
  k0 = r;
10682
10682
  }
10683
10683
  function Ba() {
@@ -10703,7 +10703,7 @@ const Oa = (r) => {
10703
10703
  path: s,
10704
10704
  message: c
10705
10705
  };
10706
- }, mm = [];
10706
+ }, wm = [];
10707
10707
  function Q(r, e) {
10708
10708
  const t = Ba(), n = Oa({
10709
10709
  issueData: e,
@@ -10994,14 +10994,14 @@ class Ke {
10994
10994
  return this.safeParse(null).success;
10995
10995
  }
10996
10996
  }
10997
- const wm = /^c[^\s-]{8,}$/i, bm = /^[0-9a-z]+$/, xm = /^[0-9A-HJKMNP-TV-Z]{26}$/, Am = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Sm = /^[a-z0-9_-]{21}$/i, _m = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Em = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Im = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
10997
+ const bm = /^c[^\s-]{8,}$/i, xm = /^[0-9a-z]+$/, Am = /^[0-9A-HJKMNP-TV-Z]{26}$/, Sm = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, _m = /^[a-z0-9_-]{21}$/i, Em = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Im = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, km = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
10998
10998
  let rl;
10999
- const km = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Cm = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, Bm = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, B0 = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Om = new RegExp(`^${B0}$`);
10999
+ const Cm = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Bm = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, Om = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, B0 = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Tm = new RegExp(`^${B0}$`);
11000
11000
  function O0(r) {
11001
11001
  let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
11002
11002
  return r.precision ? e = `${e}\\.\\d{${r.precision}}` : r.precision == null && (e = `${e}(\\.\\d+)?`), e;
11003
11003
  }
11004
- function Tm(r) {
11004
+ function Nm(r) {
11005
11005
  return new RegExp(`^${O0(r)}$`);
11006
11006
  }
11007
11007
  function T0(r) {
@@ -11009,8 +11009,8 @@ function T0(r) {
11009
11009
  const t = [];
11010
11010
  return t.push(r.local ? "Z?" : "Z"), r.offset && t.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${t.join("|")})`, new RegExp(`^${e}$`);
11011
11011
  }
11012
- function Nm(r, e) {
11013
- return !!((e === "v4" || !e) && km.test(r) || (e === "v6" || !e) && Cm.test(r));
11012
+ function Pm(r, e) {
11013
+ return !!((e === "v4" || !e) && Cm.test(r) || (e === "v6" || !e) && Bm.test(r));
11014
11014
  }
11015
11015
  class Mr extends Ke {
11016
11016
  _parse(e) {
@@ -11061,43 +11061,43 @@ class Mr extends Ke {
11061
11061
  message: s.message
11062
11062
  }), n.dirty());
11063
11063
  } else if (s.kind === "email")
11064
- Em.test(e.data) || (i = this._getOrReturnCtx(e, i), Q(i, {
11064
+ Im.test(e.data) || (i = this._getOrReturnCtx(e, i), Q(i, {
11065
11065
  validation: "email",
11066
11066
  code: F.invalid_string,
11067
11067
  message: s.message
11068
11068
  }), n.dirty());
11069
11069
  else if (s.kind === "emoji")
11070
- rl || (rl = new RegExp(Im, "u")), rl.test(e.data) || (i = this._getOrReturnCtx(e, i), Q(i, {
11070
+ rl || (rl = new RegExp(km, "u")), rl.test(e.data) || (i = this._getOrReturnCtx(e, i), Q(i, {
11071
11071
  validation: "emoji",
11072
11072
  code: F.invalid_string,
11073
11073
  message: s.message
11074
11074
  }), n.dirty());
11075
11075
  else if (s.kind === "uuid")
11076
- Am.test(e.data) || (i = this._getOrReturnCtx(e, i), Q(i, {
11076
+ Sm.test(e.data) || (i = this._getOrReturnCtx(e, i), Q(i, {
11077
11077
  validation: "uuid",
11078
11078
  code: F.invalid_string,
11079
11079
  message: s.message
11080
11080
  }), n.dirty());
11081
11081
  else if (s.kind === "nanoid")
11082
- Sm.test(e.data) || (i = this._getOrReturnCtx(e, i), Q(i, {
11082
+ _m.test(e.data) || (i = this._getOrReturnCtx(e, i), Q(i, {
11083
11083
  validation: "nanoid",
11084
11084
  code: F.invalid_string,
11085
11085
  message: s.message
11086
11086
  }), n.dirty());
11087
11087
  else if (s.kind === "cuid")
11088
- wm.test(e.data) || (i = this._getOrReturnCtx(e, i), Q(i, {
11088
+ bm.test(e.data) || (i = this._getOrReturnCtx(e, i), Q(i, {
11089
11089
  validation: "cuid",
11090
11090
  code: F.invalid_string,
11091
11091
  message: s.message
11092
11092
  }), n.dirty());
11093
11093
  else if (s.kind === "cuid2")
11094
- bm.test(e.data) || (i = this._getOrReturnCtx(e, i), Q(i, {
11094
+ xm.test(e.data) || (i = this._getOrReturnCtx(e, i), Q(i, {
11095
11095
  validation: "cuid2",
11096
11096
  code: F.invalid_string,
11097
11097
  message: s.message
11098
11098
  }), n.dirty());
11099
11099
  else if (s.kind === "ulid")
11100
- xm.test(e.data) || (i = this._getOrReturnCtx(e, i), Q(i, {
11100
+ Am.test(e.data) || (i = this._getOrReturnCtx(e, i), Q(i, {
11101
11101
  validation: "ulid",
11102
11102
  code: F.invalid_string,
11103
11103
  message: s.message
@@ -11132,23 +11132,23 @@ class Mr extends Ke {
11132
11132
  code: F.invalid_string,
11133
11133
  validation: "datetime",
11134
11134
  message: s.message
11135
- }), n.dirty()) : s.kind === "date" ? Om.test(e.data) || (i = this._getOrReturnCtx(e, i), Q(i, {
11135
+ }), n.dirty()) : s.kind === "date" ? Tm.test(e.data) || (i = this._getOrReturnCtx(e, i), Q(i, {
11136
11136
  code: F.invalid_string,
11137
11137
  validation: "date",
11138
11138
  message: s.message
11139
- }), n.dirty()) : s.kind === "time" ? Tm(s).test(e.data) || (i = this._getOrReturnCtx(e, i), Q(i, {
11139
+ }), n.dirty()) : s.kind === "time" ? Nm(s).test(e.data) || (i = this._getOrReturnCtx(e, i), Q(i, {
11140
11140
  code: F.invalid_string,
11141
11141
  validation: "time",
11142
11142
  message: s.message
11143
- }), n.dirty()) : s.kind === "duration" ? _m.test(e.data) || (i = this._getOrReturnCtx(e, i), Q(i, {
11143
+ }), n.dirty()) : s.kind === "duration" ? Em.test(e.data) || (i = this._getOrReturnCtx(e, i), Q(i, {
11144
11144
  validation: "duration",
11145
11145
  code: F.invalid_string,
11146
11146
  message: s.message
11147
- }), n.dirty()) : s.kind === "ip" ? Nm(e.data, s.version) || (i = this._getOrReturnCtx(e, i), Q(i, {
11147
+ }), n.dirty()) : s.kind === "ip" ? Pm(e.data, s.version) || (i = this._getOrReturnCtx(e, i), Q(i, {
11148
11148
  validation: "ip",
11149
11149
  code: F.invalid_string,
11150
11150
  message: s.message
11151
- }), n.dirty()) : s.kind === "base64" ? Bm.test(e.data) || (i = this._getOrReturnCtx(e, i), Q(i, {
11151
+ }), n.dirty()) : s.kind === "base64" ? Om.test(e.data) || (i = this._getOrReturnCtx(e, i), Q(i, {
11152
11152
  validation: "base64",
11153
11153
  code: F.invalid_string,
11154
11154
  message: s.message
@@ -11370,7 +11370,7 @@ Mr.create = (r) => {
11370
11370
  ...Fe(r)
11371
11371
  });
11372
11372
  };
11373
- function Pm(r, e) {
11373
+ function jm(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
  }
@@ -11409,7 +11409,7 @@ class qn extends Ke {
11409
11409
  inclusive: s.inclusive,
11410
11410
  exact: !1,
11411
11411
  message: s.message
11412
- }), i.dirty()) : s.kind === "multipleOf" ? Pm(e.data, s.value) !== 0 && (n = this._getOrReturnCtx(e, n), Q(n, {
11412
+ }), i.dirty()) : s.kind === "multipleOf" ? jm(e.data, s.value) !== 0 && (n = this._getOrReturnCtx(e, n), Q(n, {
11413
11413
  code: F.not_multiple_of,
11414
11414
  multipleOf: s.value,
11415
11415
  message: s.message
@@ -13110,7 +13110,7 @@ Ra.create = (r) => new Ra({
13110
13110
  typeName: Ie.ZodNaN,
13111
13111
  ...Fe(r)
13112
13112
  });
13113
- const jm = Symbol("zod_brand");
13113
+ const Rm = Symbol("zod_brand");
13114
13114
  class Af extends Ke {
13115
13115
  _parse(e) {
13116
13116
  const { ctx: t } = this._processInputParams(e), n = t.data;
@@ -13187,16 +13187,16 @@ function P0(r, e = {}, t) {
13187
13187
  }
13188
13188
  }) : Qi.create();
13189
13189
  }
13190
- const Rm = {
13190
+ const Um = {
13191
13191
  object: Ot.lazycreate
13192
13192
  };
13193
13193
  var Ie;
13194
13194
  (function(r) {
13195
13195
  r.ZodString = "ZodString", r.ZodNumber = "ZodNumber", r.ZodNaN = "ZodNaN", r.ZodBigInt = "ZodBigInt", r.ZodBoolean = "ZodBoolean", r.ZodDate = "ZodDate", r.ZodSymbol = "ZodSymbol", r.ZodUndefined = "ZodUndefined", r.ZodNull = "ZodNull", r.ZodAny = "ZodAny", r.ZodUnknown = "ZodUnknown", r.ZodNever = "ZodNever", r.ZodVoid = "ZodVoid", r.ZodArray = "ZodArray", r.ZodObject = "ZodObject", r.ZodUnion = "ZodUnion", r.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", r.ZodIntersection = "ZodIntersection", r.ZodTuple = "ZodTuple", r.ZodRecord = "ZodRecord", r.ZodMap = "ZodMap", r.ZodSet = "ZodSet", r.ZodFunction = "ZodFunction", r.ZodLazy = "ZodLazy", r.ZodLiteral = "ZodLiteral", r.ZodEnum = "ZodEnum", r.ZodEffects = "ZodEffects", r.ZodNativeEnum = "ZodNativeEnum", r.ZodOptional = "ZodOptional", r.ZodNullable = "ZodNullable", r.ZodDefault = "ZodDefault", r.ZodCatch = "ZodCatch", r.ZodPromise = "ZodPromise", r.ZodBranded = "ZodBranded", r.ZodPipeline = "ZodPipeline", r.ZodReadonly = "ZodReadonly";
13196
13196
  })(Ie || (Ie = {}));
13197
- const Um = (r, e = {
13197
+ const Dm = (r, e = {
13198
13198
  message: `Input not instance of ${r.name}`
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 = {
13199
+ }) => P0((t) => t instanceof r, e), j0 = Mr.create, R0 = qn.create, $m = Ra.create, Mm = Kn.create, U0 = Qs.create, Vm = xi.create, Lm = Na.create, Hm = eo.create, Fm = to.create, zm = Qi.create, Gm = ai.create, qm = En.create, Km = Pa.create, Zm = Lr.create, Wm = Ot.create, Ym = Ot.strictCreate, Jm = ro.create, Xm = Rc.create, Qm = no.create, e1 = un.create, t1 = io.create, r1 = ja.create, n1 = Ai.create, i1 = $i.create, s1 = so.create, o1 = oo.create, a1 = Zn.create, c1 = ao.create, l1 = es.create, pd = Gr.create, u1 = on.create, f1 = Wn.create, h1 = Gr.createWithPreprocess, d1 = ko.create, p1 = () => j0().optional(), y1 = () => R0().optional(), g1 = () => U0().optional(), v1 = {
13200
13200
  string: (r) => Mr.create({ ...r, coerce: !0 }),
13201
13201
  number: (r) => qn.create({ ...r, coerce: !0 }),
13202
13202
  boolean: (r) => Qs.create({
@@ -13205,14 +13205,14 @@ const Um = (r, e = {
13205
13205
  }),
13206
13206
  bigint: (r) => Kn.create({ ...r, coerce: !0 }),
13207
13207
  date: (r) => xi.create({ ...r, coerce: !0 })
13208
- }, v1 = ke;
13208
+ }, m1 = ke;
13209
13209
  var Bt = /* @__PURE__ */ Object.freeze({
13210
13210
  __proto__: null,
13211
13211
  defaultErrorMap: Xi,
13212
- setErrorMap: vm,
13212
+ setErrorMap: mm,
13213
13213
  getErrorMap: Ba,
13214
13214
  makeIssue: Oa,
13215
- EMPTY_PATH: mm,
13215
+ EMPTY_PATH: wm,
13216
13216
  addIssueToContext: Q,
13217
13217
  ParseStatus: sr,
13218
13218
  INVALID: ke,
@@ -13266,66 +13266,66 @@ var Bt = /* @__PURE__ */ Object.freeze({
13266
13266
  ZodDefault: co,
13267
13267
  ZodCatch: lo,
13268
13268
  ZodNaN: Ra,
13269
- BRAND: jm,
13269
+ BRAND: Rm,
13270
13270
  ZodBranded: Af,
13271
13271
  ZodPipeline: ko,
13272
13272
  ZodReadonly: uo,
13273
13273
  custom: P0,
13274
13274
  Schema: Ke,
13275
13275
  ZodSchema: Ke,
13276
- late: Rm,
13276
+ late: Um,
13277
13277
  get ZodFirstPartyTypeKind() {
13278
13278
  return Ie;
13279
13279
  },
13280
- coerce: g1,
13281
- any: Fm,
13282
- array: Km,
13283
- bigint: $m,
13280
+ coerce: v1,
13281
+ any: zm,
13282
+ array: Zm,
13283
+ bigint: Mm,
13284
13284
  boolean: U0,
13285
- date: Mm,
13286
- discriminatedUnion: Jm,
13285
+ date: Vm,
13286
+ discriminatedUnion: Xm,
13287
13287
  effect: pd,
13288
- enum: o1,
13289
- function: n1,
13290
- instanceof: Um,
13291
- intersection: Xm,
13292
- lazy: i1,
13293
- literal: s1,
13294
- map: t1,
13295
- nan: Dm,
13296
- nativeEnum: a1,
13297
- never: Gm,
13298
- null: Hm,
13299
- nullable: u1,
13288
+ enum: a1,
13289
+ function: i1,
13290
+ instanceof: Dm,
13291
+ intersection: Qm,
13292
+ lazy: s1,
13293
+ literal: o1,
13294
+ map: r1,
13295
+ nan: $m,
13296
+ nativeEnum: c1,
13297
+ never: qm,
13298
+ null: Fm,
13299
+ nullable: f1,
13300
13300
  number: R0,
13301
- object: Zm,
13302
- oboolean: y1,
13303
- onumber: p1,
13304
- optional: l1,
13305
- ostring: d1,
13306
- pipeline: h1,
13307
- preprocess: f1,
13308
- promise: c1,
13309
- record: e1,
13310
- set: r1,
13311
- strictObject: Wm,
13301
+ object: Wm,
13302
+ oboolean: g1,
13303
+ onumber: y1,
13304
+ optional: u1,
13305
+ ostring: p1,
13306
+ pipeline: d1,
13307
+ preprocess: h1,
13308
+ promise: l1,
13309
+ record: t1,
13310
+ set: n1,
13311
+ strictObject: Ym,
13312
13312
  string: j0,
13313
- symbol: Vm,
13313
+ symbol: Lm,
13314
13314
  transformer: pd,
13315
- tuple: Qm,
13316
- undefined: Lm,
13317
- union: Ym,
13318
- unknown: zm,
13319
- void: qm,
13320
- NEVER: v1,
13315
+ tuple: e1,
13316
+ undefined: Hm,
13317
+ union: Jm,
13318
+ unknown: Gm,
13319
+ void: Km,
13320
+ NEVER: m1,
13321
13321
  ZodIssueCode: F,
13322
- quotelessJson: gm,
13322
+ quotelessJson: vm,
13323
13323
  ZodError: _r
13324
13324
  });
13325
13325
  const Ua = new Uint8Array([48, 130, 2, 17, 48, 130, 1, 150, 160, 3, 2, 1, 2, 2, 17, 0, 249, 49, 117, 104, 27, 144, 175, 225, 29, 70, 204, 180, 228, 231, 248, 86, 48, 10, 6, 8, 42, 134, 72, 206, 61, 4, 3, 3, 48, 73, 49, 11, 48, 9, 6, 3, 85, 4, 6, 19, 2, 85, 83, 49, 15, 48, 13, 6, 3, 85, 4, 10, 12, 6, 65, 109, 97, 122, 111, 110, 49, 12, 48, 10, 6, 3, 85, 4, 11, 12, 3, 65, 87, 83, 49, 27, 48, 25, 6, 3, 85, 4, 3, 12, 18, 97, 119, 115, 46, 110, 105, 116, 114, 111, 45, 101, 110, 99, 108, 97, 118, 101, 115, 48, 30, 23, 13, 49, 57, 49, 48, 50, 56, 49, 51, 50, 56, 48, 53, 90, 23, 13, 52, 57, 49, 48, 50, 56, 49, 52, 50, 56, 48, 53, 90, 48, 73, 49, 11, 48, 9, 6, 3, 85, 4, 6, 19, 2, 85, 83, 49, 15, 48, 13, 6, 3, 85, 4, 10, 12, 6, 65, 109, 97, 122, 111, 110, 49, 12, 48, 10, 6, 3, 85, 4, 11, 12, 3, 65, 87, 83, 49, 27, 48, 25, 6, 3, 85, 4, 3, 12, 18, 97, 119, 115, 46, 110, 105, 116, 114, 111, 45, 101, 110, 99, 108, 97, 118, 101, 115, 48, 118, 48, 16, 6, 7, 42, 134, 72, 206, 61, 2, 1, 6, 5, 43, 129, 4, 0, 34, 3, 98, 0, 4, 252, 2, 84, 235, 166, 8, 193, 243, 104, 112, 226, 154, 218, 144, 190, 70, 56, 50, 146, 115, 110, 137, 75, 255, 246, 114, 217, 137, 68, 75, 80, 81, 229, 52, 164, 177, 246, 219, 227, 192, 188, 88, 26, 50, 183, 177, 118, 7, 14, 222, 18, 214, 154, 63, 234, 33, 27, 102, 231, 82, 207, 125, 209, 221, 9, 95, 111, 19, 112, 244, 23, 8, 67, 217, 220, 16, 1, 33, 228, 207, 99, 1, 40, 9, 102, 68, 135, 201, 121, 98, 132, 48, 77, 197, 63, 244, 163, 66, 48, 64, 48, 15, 6, 3, 85, 29, 19, 1, 1, 255, 4, 5, 48, 3, 1, 1, 255, 48, 29, 6, 3, 85, 29, 14, 4, 22, 4, 20, 144, 37, 181, 13, 217, 5, 71, 231, 150, 195, 150, 250, 114, 157, 207, 153, 169, 223, 75, 150, 48, 14, 6, 3, 85, 29, 15, 1, 1, 255, 4, 4, 3, 2, 1, 134, 48, 10, 6, 8, 42, 134, 72, 206, 61, 4, 3, 3, 3, 105, 0, 48, 102, 2, 49, 0, 163, 127, 47, 145, 161, 201, 189, 94, 231, 184, 98, 124, 22, 152, 210, 85, 3, 142, 31, 3, 67, 249, 91, 99, 169, 98, 140, 61, 57, 128, 149, 69, 161, 30, 188, 191, 46, 59, 85, 216, 174, 238, 113, 180, 195, 214, 173, 243, 2, 49, 0, 162, 243, 155, 22, 5, 178, 112, 40, 165, 221, 75, 160, 105, 181, 1, 110, 101, 180, 251, 222, 143, 224, 6, 29, 106, 83, 25, 127, 156, 218, 245, 217, 67, 188, 97, 252, 43, 235, 3, 203, 111, 238, 141, 35, 2, 243, 223, 246]);
13326
13326
  if (!Ua || Ua.length === 0)
13327
13327
  throw new Error("AWS root certificate is empty or not loaded correctly");
13328
- const m1 = Bt.object({
13328
+ const w1 = Bt.object({
13329
13329
  module_id: Bt.string().min(1),
13330
13330
  digest: Bt.literal("SHA384"),
13331
13331
  timestamp: Bt.number().min(1677721600),
@@ -13335,18 +13335,18 @@ const m1 = Bt.object({
13335
13335
  public_key: Bt.nullable(Bt.instanceof(Uint8Array)),
13336
13336
  user_data: Bt.nullable(Bt.instanceof(Uint8Array)),
13337
13337
  nonce: Bt.nullable(Bt.instanceof(Uint8Array))
13338
- }), w1 = Bt.object({
13338
+ }), b1 = Bt.object({
13339
13339
  protected: Bt.instanceof(Uint8Array),
13340
13340
  // There's an "unprotected" header in the CBOR, but we never use it
13341
13341
  payload: Bt.instanceof(Uint8Array),
13342
13342
  signature: Bt.instanceof(Uint8Array)
13343
13343
  });
13344
- async function b1(r) {
13344
+ async function x1(r) {
13345
13345
  try {
13346
13346
  if (!r)
13347
13347
  throw new Error("Attestation document is empty.");
13348
13348
  const e = Rs(r), t = Ca(e), n = t[0], i = t[2], s = t[3];
13349
- return w1.parse({
13349
+ return b1.parse({
13350
13350
  protected: n,
13351
13351
  payload: i,
13352
13352
  signature: s
@@ -13355,15 +13355,15 @@ async function b1(r) {
13355
13355
  throw console.error("Error parsing document data:", e), new Error("Failed to parse document data.");
13356
13356
  }
13357
13357
  }
13358
- async function x1(r) {
13358
+ async function A1(r) {
13359
13359
  try {
13360
13360
  const e = Ca(r);
13361
- return m1.parse(e);
13361
+ return w1.parse(e);
13362
13362
  } catch (e) {
13363
13363
  throw console.error("Error parsing document payload:", e), new Error("Failed to parse document payload.");
13364
13364
  }
13365
13365
  }
13366
- function A1(r, e) {
13366
+ function S1(r, e) {
13367
13367
  const t = [
13368
13368
  "Signature1",
13369
13369
  // Context string
@@ -13376,10 +13376,10 @@ function A1(r, e) {
13376
13376
  ];
13377
13377
  return jc(t);
13378
13378
  }
13379
- async function S1(r, e) {
13379
+ async function _1(r, e) {
13380
13380
  try {
13381
13381
  console.log("SIGNATURE:"), console.log($r(r.signature));
13382
- const t = A1(r.protected, r.payload), n = await crypto.subtle.digest("SHA-384", t);
13382
+ const t = S1(r.protected, r.payload), n = await crypto.subtle.digest("SHA-384", t);
13383
13383
  return console.log("SIGNATURE STRUCTURE DIGEST:"), console.log($r(new Uint8Array(n))), await crypto.subtle.verify(
13384
13384
  // TODO: these could be derived from the document, but we're hardcoding them for now
13385
13385
  {
@@ -13396,7 +13396,7 @@ async function S1(r, e) {
13396
13396
  }
13397
13397
  async function Si(r, e, t) {
13398
13398
  try {
13399
- const n = await b1(r), i = await x1(n.payload);
13399
+ const n = await x1(r), i = await A1(n.payload);
13400
13400
  if (!i.nonce)
13401
13401
  throw new Error("Attestation document does not have a nonce.");
13402
13402
  const o = new TextDecoder("utf-8").decode(i.nonce);
@@ -13409,7 +13409,7 @@ async function Si(r, e, t) {
13409
13409
  const P = new wi(i.cabundle[I]);
13410
13410
  c.push(P);
13411
13411
  }
13412
- const h = new wi(i.certificate), x = await new Hv({
13412
+ const h = new wi(i.certificate), x = await new Fv({
13413
13413
  certificates: c
13414
13414
  }).build(h);
13415
13415
  console.log("Chain items:", x);
@@ -13424,7 +13424,7 @@ async function Si(r, e, t) {
13424
13424
  throw new Error("Certificate chain length does not match length of cabundle.");
13425
13425
  const v = h.publicKey;
13426
13426
  console.log("PUBLIC KEY:"), console.log($r(new Uint8Array(v.rawData)));
13427
- const A = await v.export(), O = await S1(n, A);
13427
+ const A = await v.export(), O = await _1(n, A);
13428
13428
  if (console.log("Signature verified:", O), !O)
13429
13429
  throw new Error("Signature verification failed.");
13430
13430
  return i;
@@ -13432,29 +13432,29 @@ async function Si(r, e, t) {
13432
13432
  throw console.error("Error verifying attestation document:", n), n;
13433
13433
  }
13434
13434
  }
13435
- const _1 = Bt.object({
13435
+ const E1 = Bt.object({
13436
13436
  public_key: Bt.nullable(Bt.instanceof(Uint8Array))
13437
13437
  });
13438
- async function E1(r) {
13438
+ async function I1(r) {
13439
13439
  const e = Rs(r), n = Ca(e)[2], i = Ca(n);
13440
- return await _1.parse(i);
13440
+ return await E1.parse(i);
13441
13441
  }
13442
- async function I1(r, e) {
13442
+ async function k1(r, e) {
13443
13443
  try {
13444
- const t = await Z1(r, e), n = e || L1();
13445
- return n && (n === "http://127.0.0.1:3000" || n === "http://localhost:3000" || n === "http://0.0.0.0:3000") ? (console.log("DEV MODE: Using fake attestation document"), await E1(t)) : await Si(t, Ua, r);
13444
+ const t = await W1(r, e), n = e || H1();
13445
+ return n && (n === "http://127.0.0.1:3000" || n === "http://localhost:3000" || n === "http://0.0.0.0:3000") ? (console.log("DEV MODE: Using fake attestation document"), await I1(t)) : await Si(t, Ua, r);
13446
13446
  } catch (t) {
13447
13447
  throw t instanceof Error ? (console.error("Error verifying attestation document:", t), new Error(`Couldn't process attestation document: ${t.message}`)) : (console.error("Error verifying attestation document:", t), new Error("Couldn't process attestation document."));
13448
13448
  }
13449
13449
  }
13450
- function k1(r) {
13450
+ function C1(r) {
13451
13451
  throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
13452
13452
  }
13453
13453
  var D0 = { exports: {} };
13454
- const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13454
+ const B1 = {}, O1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13455
13455
  __proto__: null,
13456
- default: C1
13457
- }, Symbol.toStringTag, { value: "Module" })), O1 = /* @__PURE__ */ Ky(B1);
13456
+ default: B1
13457
+ }, Symbol.toStringTag, { value: "Module" })), T1 = /* @__PURE__ */ Zy(O1);
13458
13458
  (function(r) {
13459
13459
  (function(e) {
13460
13460
  var t = function(l) {
@@ -13481,12 +13481,12 @@ 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, 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)
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, Ue = 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 = Ue, Ve = Oe, ze = Ne, Le = Te, w, Ze = 0; Ze < 20; Ze += 2)
13485
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;
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 + Ue | 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, 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)
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, Ue = 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 = Ue, Ve = Oe, ze = Ne, Le = Te, w, Ze = 0; Ze < 20; Ze += 2)
13490
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
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
  }
@@ -13497,7 +13497,7 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
13497
13497
  R(l, p, d, a);
13498
13498
  }
13499
13499
  var Ye = new Uint8Array([101, 120, 112, 97, 110, 100, 32, 51, 50, 45, 98, 121, 116, 101, 32, 107]);
13500
- function Pe(l, p, d, a, g, S, E) {
13500
+ function je(l, p, d, a, g, S, E) {
13501
13501
  var U = new Uint8Array(16), z = new Uint8Array(64), we, X;
13502
13502
  for (X = 0; X < 16; X++) U[X] = 0;
13503
13503
  for (X = 0; X < 8; X++) U[X] = S[X];
@@ -13535,7 +13535,7 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
13535
13535
  var U = new Uint8Array(32);
13536
13536
  Ge(U, S, E, Ye);
13537
13537
  for (var z = new Uint8Array(8), we = 0; we < 8; we++) z[we] = S[we + 16];
13538
- return Pe(l, p, d, a, g, z, U);
13538
+ return je(l, p, d, a, g, z, U);
13539
13539
  }
13540
13540
  var xe = function(l) {
13541
13541
  this.buffer = new Uint8Array(16), this.r = new Uint16Array(10), this.h = new Uint16Array(10), this.pad = new Uint16Array(8), this.leftover = 0, this.fin = 0;
@@ -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, 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;
13546
+ for (var a = this.fin ? 0 : 2048, g, S, E, U, z, we, X, ut, le, Ce, Be, Me, Ue, 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, Ue = le, Ue += ye * w, Ue += ve * Le, Ue += J * ze, Ue += C * Ve, Ue += B * (5 * at), le = Ue >>> 13, Ue &= 8191, Ue += V * (5 * ot), Ue += j * (5 * qe), Ue += D * (5 * ht), Ue += L * (5 * ft), Ue += _e * (5 * Ze), le += Ue >>> 13, Ue &= 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 = Ue, 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;
@@ -13596,7 +13596,7 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
13596
13596
  for (ie(l, 0, p, 0, d, a, g), S = 0; S < 32; S++) l[S] = 0;
13597
13597
  return 0;
13598
13598
  }
13599
- function Xe(l, p) {
13599
+ function Qe(l, p) {
13600
13600
  var d;
13601
13601
  for (d = 0; d < 16; d++) l[d] = p[d] | 0;
13602
13602
  }
@@ -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, 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;
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, Ue = 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, Ue += 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, Ue += 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, Ue += 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, Ue += 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, Ue += 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, Ue += 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, Ue += 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, Ue += 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, Ue += 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, Ue += 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, Ue += 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], Ue += 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, Ue += 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 = Ue + g + 65535, g = Math.floor(a / 65536), Ue = 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 = Ue + g + 65535, g = Math.floor(a / 65536), Ue = 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] = Ue, 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,11 +13855,11 @@ 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, 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; ) {
13858
+ for (var g = new Int32Array(16), S = new Int32Array(16), E, U, z, we, X, ut, le, Ce, Be, Me, Ue, 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 = 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)
13862
+ if (E = _e, U = Ve, z = ze, we = Le, X = w, ut = Ze, le = ft, Ce = ht, Be = qe, Me = ot, Ue = 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 = Ue, 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
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;
@@ -13887,12 +13887,12 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
13887
13887
  }
13888
13888
  function ms(l, p, d) {
13889
13889
  var a, g;
13890
- for (Xe(l[0], o), Xe(l[1], c), Xe(l[2], c), Xe(l[3], o), g = 255; g >= 0; --g)
13890
+ for (Qe(l[0], o), Qe(l[1], c), Qe(l[2], c), Qe(l[3], o), g = 255; g >= 0; --g)
13891
13891
  a = d[g / 8 | 0] >> (g & 7) & 1, Bi(l, p, a), Xn(p, l), Xn(l, l), Bi(l, p, a);
13892
13892
  }
13893
13893
  function Oi(l, p) {
13894
13894
  var d = [t(), t(), t(), t()];
13895
- Xe(d[0], x), Xe(d[1], G), Xe(d[2], c), ee(d[3], x, G), ms(l, d, p);
13895
+ Qe(d[0], x), Qe(d[1], G), Qe(d[2], c), ee(d[3], x, G), ms(l, d, p);
13896
13896
  }
13897
13897
  function ws(l, p, d) {
13898
13898
  var a = new Uint8Array(64), g = [t(), t(), t(), t()], S;
@@ -13935,7 +13935,7 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
13935
13935
  }
13936
13936
  function As(l, p) {
13937
13937
  var d = t(), a = t(), g = t(), S = t(), E = t(), U = t(), z = t();
13938
- return Xe(l[2], c), fe(l[1], p), pt(g, l[1]), ee(S, g, h), vt(g, g, l[2]), st(S, l[2], S), pt(E, S), pt(U, E), ee(z, U, E), ee(d, z, g), ee(d, d, S), fs(d, d), ee(d, d, g), ee(d, d, S), ee(d, d, S), ee(l[0], d, S), pt(a, l[0]), ee(a, a, S), Ut(a, g) && ee(l[0], l[0], N), pt(a, l[0]), ee(a, a, S), Ut(a, g) ? -1 : (Dt(l[0]) === p[31] >> 7 && vt(l[0], o, l[0]), ee(l[3], l[0], l[1]), 0);
13938
+ return Qe(l[2], c), fe(l[1], p), pt(g, l[1]), ee(S, g, h), vt(g, g, l[2]), st(S, l[2], S), pt(E, S), pt(U, E), ee(z, U, E), ee(d, z, g), ee(d, d, S), fs(d, d), ee(d, d, g), ee(d, d, S), ee(d, d, S), ee(l[0], d, S), pt(a, l[0]), ee(a, a, S), Ut(a, g) && ee(l[0], l[0], N), pt(a, l[0]), ee(a, a, S), Ut(a, g) ? -1 : (Dt(l[0]) === p[31] >> 7 && vt(l[0], o, l[0]), ee(l[3], l[0], l[1]), 0);
13939
13939
  }
13940
13940
  function _(l, p, d, a) {
13941
13941
  var g, S = new Uint8Array(32), E = new Uint8Array(64), U = [t(), t(), t(), t()], z = [t(), t(), t(), t()];
@@ -13949,12 +13949,12 @@ 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, 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;
13952
+ var k = 32, T = 24, q = 32, be = 16, St = 32, _t = 32, Re = 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
- crypto_stream_salsa20_xor: Pe,
13957
+ crypto_stream_salsa20_xor: je,
13958
13958
  crypto_stream_salsa20: W,
13959
13959
  crypto_onetimeauth: tt,
13960
13960
  crypto_onetimeauth_verify: At,
@@ -13979,7 +13979,7 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
13979
13979
  crypto_secretbox_BOXZEROBYTES: be,
13980
13980
  crypto_scalarmult_BYTES: St,
13981
13981
  crypto_scalarmult_SCALARBYTES: _t,
13982
- crypto_box_PUBLICKEYBYTES: je,
13982
+ crypto_box_PUBLICKEYBYTES: Re,
13983
13983
  crypto_box_SECRETKEYBYTES: Z,
13984
13984
  crypto_box_BEFORENMBYTES: te,
13985
13985
  crypto_box_NONCEBYTES: he,
@@ -14001,7 +14001,7 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
14001
14001
  Z: vt,
14002
14002
  pow2523: fs,
14003
14003
  add: Xn,
14004
- set25519: Xe,
14004
+ set25519: Qe,
14005
14005
  modL: bs,
14006
14006
  scalarmult: ms,
14007
14007
  scalarbase: Oi
@@ -14010,8 +14010,8 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
14010
14010
  if (l.length !== k) throw new Error("bad key size");
14011
14011
  if (p.length !== T) throw new Error("bad nonce size");
14012
14012
  }
14013
- function Cy(l, p) {
14014
- if (l.length !== je) throw new Error("bad public key size");
14013
+ function By(l, p) {
14014
+ if (l.length !== Re) throw new Error("bad public key size");
14015
14015
  if (p.length !== Z) throw new Error("bad secret key size");
14016
14016
  }
14017
14017
  function xr() {
@@ -14046,21 +14046,21 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
14046
14046
  var g = e.box.before(d, a);
14047
14047
  return e.secretbox(l, p, g);
14048
14048
  }, e.box.before = function(l, p) {
14049
- xr(l, p), Cy(l, p);
14049
+ xr(l, p), By(l, p);
14050
14050
  var d = new Uint8Array(te);
14051
14051
  return pn(d, l, p), d;
14052
14052
  }, e.box.after = e.secretbox, e.box.open = function(l, p, d, a) {
14053
14053
  var g = e.box.before(d, a);
14054
14054
  return e.secretbox.open(l, p, g);
14055
14055
  }, e.box.open.after = e.secretbox.open, e.box.keyPair = function() {
14056
- var l = new Uint8Array(je), p = new Uint8Array(Z);
14056
+ var l = new Uint8Array(Re), p = new Uint8Array(Z);
14057
14057
  return hs(l, p), { publicKey: l, secretKey: p };
14058
14058
  }, e.box.keyPair.fromSecretKey = function(l) {
14059
14059
  if (xr(l), l.length !== Z)
14060
14060
  throw new Error("bad secret key size");
14061
- var p = new Uint8Array(je);
14061
+ var p = new Uint8Array(Re);
14062
14062
  return or(p, l), { publicKey: p, secretKey: new Uint8Array(l) };
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) {
14063
+ }, e.box.publicKeyLength = Re, 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
14066
  var d = new Uint8Array(rt + l.length);
@@ -14116,7 +14116,7 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
14116
14116
  for (g = 0; g < a; g++) d[g] = S[g];
14117
14117
  Sf(S);
14118
14118
  });
14119
- } else typeof k1 < "u" && (l = O1, l && l.randomBytes && e.setPRNG(function(d, a) {
14119
+ } else typeof C1 < "u" && (l = T1, l && l.randomBytes && e.setPRNG(function(d, a) {
14120
14120
  var g, S = l.randomBytes(a);
14121
14121
  for (g = 0; g < a; g++) d[g] = S[g];
14122
14122
  Sf(S);
@@ -14124,9 +14124,9 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
14124
14124
  }();
14125
14125
  })(r.exports ? r.exports : self.nacl = self.nacl || {});
14126
14126
  })(D0);
14127
- var T1 = D0.exports;
14128
- const $0 = /* @__PURE__ */ qy(T1);
14129
- function N1() {
14127
+ var N1 = D0.exports;
14128
+ const $0 = /* @__PURE__ */ Ky(N1);
14129
+ function P1() {
14130
14130
  return $0.box.keyPair();
14131
14131
  }
14132
14132
  async function _i(r, e) {
@@ -14139,12 +14139,12 @@ async function _i(r, e) {
14139
14139
  }
14140
14140
  const i = window.crypto.randomUUID();
14141
14141
  console.log("Generated attestation nonce:", i);
14142
- const s = await I1(i, e);
14142
+ const s = await k1(i, e);
14143
14143
  if (s && s.public_key) {
14144
14144
  console.log("Attestation document verification succeeded");
14145
- const o = N1();
14145
+ const o = P1();
14146
14146
  console.log("Generated client key pair");
14147
- const c = new Uint8Array(s.public_key), { encrypted_session_key: u, session_id: h } = await W1(
14147
+ const c = new Uint8Array(s.public_key), { encrypted_session_key: u, session_id: h } = await Y1(
14148
14148
  $r(o.publicKey),
14149
14149
  i,
14150
14150
  e
@@ -14163,10 +14163,10 @@ async function _i(r, e) {
14163
14163
  }
14164
14164
  }
14165
14165
  let lt = "";
14166
- function P1(r) {
14166
+ function j1(r) {
14167
14167
  lt = r;
14168
14168
  }
14169
- async function j1(r, e) {
14169
+ async function R1(r, e) {
14170
14170
  return Tt(
14171
14171
  `${lt}/platform/login`,
14172
14172
  "POST",
@@ -14175,7 +14175,7 @@ async function j1(r, e) {
14175
14175
  "Failed to login"
14176
14176
  );
14177
14177
  }
14178
- async function R1(r, e, t, n) {
14178
+ async function U1(r, e, t, n) {
14179
14179
  return Tt(
14180
14180
  `${lt}/platform/register`,
14181
14181
  "POST",
@@ -14184,7 +14184,7 @@ async function R1(r, e, t, n) {
14184
14184
  "Failed to register"
14185
14185
  );
14186
14186
  }
14187
- async function U1(r) {
14187
+ async function D1(r) {
14188
14188
  return Tt(
14189
14189
  `${lt}/platform/logout`,
14190
14190
  "POST",
@@ -14193,7 +14193,7 @@ async function U1(r) {
14193
14193
  "Failed to logout"
14194
14194
  );
14195
14195
  }
14196
- async function D1() {
14196
+ async function $1() {
14197
14197
  const r = window.localStorage.getItem("refresh_token");
14198
14198
  if (!r) throw new Error("No refresh token available");
14199
14199
  const e = { refresh_token: r };
@@ -14211,113 +14211,113 @@ async function D1() {
14211
14211
  }
14212
14212
  }
14213
14213
  async function M0(r) {
14214
- return $e(
14214
+ return Pe(
14215
14215
  `${lt}/platform/orgs`,
14216
14216
  "POST",
14217
14217
  { name: r }
14218
14218
  );
14219
14219
  }
14220
14220
  async function V0() {
14221
- return $e(
14221
+ return Pe(
14222
14222
  `${lt}/platform/orgs`,
14223
14223
  "GET",
14224
14224
  void 0
14225
14225
  );
14226
14226
  }
14227
14227
  async function L0(r) {
14228
- return $e(
14228
+ return Pe(
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 $e(
14235
+ return Pe(
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 $e(
14242
+ return Pe(
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 $e(
14249
+ return Pe(
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 $e(
14256
+ return Pe(
14257
14257
  `${lt}/platform/orgs/${r}/projects/${e}`,
14258
14258
  "PATCH",
14259
14259
  t
14260
14260
  );
14261
14261
  }
14262
14262
  async function q0(r, e) {
14263
- return $e(
14263
+ return Pe(
14264
14264
  `${lt}/platform/orgs/${r}/projects/${e}`,
14265
14265
  "DELETE",
14266
14266
  void 0
14267
14267
  );
14268
14268
  }
14269
- function $1(r) {
14269
+ function M1(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
14273
  async function K0(r, e, t, n) {
14274
- if (!$1(n))
14274
+ if (!M1(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 $e(
14278
+ return Pe(
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 $e(
14285
+ return Pe(
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 $e(
14292
+ return Pe(
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 $e(
14299
+ return Pe(
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 $e(
14306
+ return Pe(
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 $e(
14313
+ return Pe(
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 $e(
14320
+ return Pe(
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 $e(
14329
+ return Pe(
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 $e(
14336
+ return Pe(
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 $e(
14343
+ return Pe(
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 $e(
14350
+ return Pe(
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 $e(
14357
+ return Pe(
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 $e(
14364
+ return Pe(
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 $e(
14371
+ return Pe(
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 $e(
14378
+ return Pe(
14379
14379
  `${lt}/platform/accept_invite/${r}`,
14380
14380
  "POST",
14381
14381
  void 0
14382
14382
  );
14383
14383
  }
14384
- async function M1() {
14385
- return $e(`${lt}/platform/me`, "GET", void 0);
14384
+ async function V1() {
14385
+ return Pe(`${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 $e(
14397
+ return Pe(
14398
14398
  `${lt}/platform/request_verification`,
14399
14399
  "POST",
14400
14400
  void 0,
@@ -14434,20 +14434,20 @@ async function fy(r, e) {
14434
14434
  current_password: r,
14435
14435
  new_password: e
14436
14436
  };
14437
- return $e(
14437
+ return Pe(
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 $e(r, e, t, n) {
14444
+ async function Pe(r, e, t, n) {
14445
14445
  const i = async (s = !1) => {
14446
14446
  try {
14447
14447
  if (s) {
14448
14448
  console.log("Refreshing access token");
14449
14449
  const u = Ho.getRefreshFunction(r);
14450
- console.log(`Using ${u}`), u === "platformRefreshToken" ? await D1() : await Uc();
14450
+ console.log(`Using ${u}`), u === "platformRefreshToken" ? await $1() : await Uc();
14451
14451
  }
14452
14452
  const o = window.localStorage.getItem("access_token");
14453
14453
  if (!o)
@@ -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 Qe = "";
14541
- function V1(r) {
14542
- Qe = r;
14540
+ let Xe = "";
14541
+ function L1(r) {
14542
+ Xe = r;
14543
14543
  }
14544
- function L1() {
14545
- return Qe;
14544
+ function H1() {
14545
+ return Xe;
14546
14546
  }
14547
- async function H1(r, e, t) {
14547
+ async function F1(r, e, t) {
14548
14548
  return Tt(
14549
- `${Qe}/login`,
14549
+ `${Xe}/login`,
14550
14550
  "POST",
14551
14551
  { email: r, password: e, client_id: t }
14552
14552
  );
14553
14553
  }
14554
- async function F1(r, e, t) {
14554
+ async function z1(r, e, t) {
14555
14555
  return Tt(
14556
- `${Qe}/login`,
14556
+ `${Xe}/login`,
14557
14557
  "POST",
14558
14558
  { id: r, password: e, client_id: t }
14559
14559
  );
14560
14560
  }
14561
- async function z1(r, e, t, n, i) {
14562
- return Tt(`${Qe}/register`, "POST", {
14561
+ async function G1(r, e, t, n, i) {
14562
+ return Tt(`${Xe}/register`, "POST", {
14563
14563
  email: r,
14564
14564
  password: e,
14565
14565
  inviteCode: t.toLowerCase(),
@@ -14567,8 +14567,8 @@ async function z1(r, e, t, n, i) {
14567
14567
  name: i
14568
14568
  });
14569
14569
  }
14570
- async function G1(r, e, t) {
14571
- return Tt(`${Qe}/register`, "POST", {
14570
+ async function q1(r, e, t) {
14571
+ return Tt(`${Xe}/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
- `${Qe}/refresh`,
14583
+ `${Xe}/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 q1() {
14595
- return $e(
14596
- `${Qe}/protected/user`,
14594
+ async function K1() {
14595
+ return Pe(
14596
+ `${Xe}/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 $e(
14604
- `${Qe}/protected/kv/${r}`,
14603
+ return Pe(
14604
+ `${Xe}/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 $e(
14612
- `${Qe}/protected/kv/${r}`,
14611
+ return Pe(
14612
+ `${Xe}/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 $e(
14621
- `${Qe}/protected/kv/${r}`,
14620
+ return await Pe(
14621
+ `${Xe}/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 $e(
14633
- `${Qe}/protected/kv`,
14632
+ return Pe(
14633
+ `${Xe}/protected/kv`,
14634
14634
  "GET",
14635
14635
  void 0,
14636
14636
  "Failed to list key-value pairs"
14637
14637
  );
14638
14638
  }
14639
- async function K1(r) {
14639
+ async function Z1(r) {
14640
14640
  const e = { refresh_token: r };
14641
- return Tt(`${Qe}/logout`, "POST", e);
14641
+ return Tt(`${Xe}/logout`, "POST", e);
14642
14642
  }
14643
14643
  async function vy(r) {
14644
14644
  return Tt(
14645
- `${Qe}/verify-email/${r}`,
14645
+ `${Xe}/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 $e(
14654
- `${Qe}/protected/request_verification`,
14653
+ return Pe(
14654
+ `${Xe}/protected/request_verification`,
14655
14655
  "POST",
14656
14656
  void 0,
14657
14657
  "Failed to request new verification code"
14658
14658
  );
14659
14659
  }
14660
- async function Z1(r, e) {
14661
- const n = await fetch(`${e || Qe}/attestation/${r}`);
14660
+ async function W1(r, e) {
14661
+ const n = await fetch(`${e || Xe}/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
- async function W1(r, e, t) {
14667
- const i = await fetch(`${t || Qe}/key_exchange`, {
14666
+ async function Y1(r, e, t) {
14667
+ const i = await fetch(`${t || Xe}/key_exchange`, {
14668
14668
  method: "POST",
14669
14669
  headers: {
14670
14670
  "Content-Type": "application/json"
@@ -14675,21 +14675,21 @@ async function W1(r, e, t) {
14675
14675
  throw new Error("Key exchange failed");
14676
14676
  return i.json();
14677
14677
  }
14678
- async function Y1(r, e, t) {
14678
+ async function J1(r, e, t) {
14679
14679
  const n = {
14680
14680
  email: r,
14681
14681
  hashed_secret: e,
14682
14682
  client_id: t
14683
14683
  };
14684
14684
  return Tt(
14685
- `${Qe}/password-reset/request`,
14685
+ `${Xe}/password-reset/request`,
14686
14686
  "POST",
14687
14687
  n,
14688
14688
  void 0,
14689
14689
  "Failed to request password reset"
14690
14690
  );
14691
14691
  }
14692
- async function J1(r, e, t, n, i) {
14692
+ async function X1(r, e, t, n, i) {
14693
14693
  const s = {
14694
14694
  email: r,
14695
14695
  alphanumeric_code: e,
@@ -14698,7 +14698,7 @@ async function J1(r, e, t, n, i) {
14698
14698
  client_id: i
14699
14699
  };
14700
14700
  return Tt(
14701
- `${Qe}/password-reset/confirm`,
14701
+ `${Xe}/password-reset/confirm`,
14702
14702
  "POST",
14703
14703
  s,
14704
14704
  void 0,
@@ -14710,17 +14710,17 @@ async function my(r, e) {
14710
14710
  current_password: r,
14711
14711
  new_password: e
14712
14712
  };
14713
- return $e(
14714
- `${Qe}/protected/change_password`,
14713
+ return Pe(
14714
+ `${Xe}/protected/change_password`,
14715
14715
  "POST",
14716
14716
  t,
14717
14717
  "Failed to change password"
14718
14718
  );
14719
14719
  }
14720
- async function X1(r, e) {
14720
+ async function Q1(r, e) {
14721
14721
  try {
14722
14722
  return await Tt(
14723
- `${Qe}/auth/github`,
14723
+ `${Xe}/auth/github`,
14724
14724
  "POST",
14725
14725
  e ? { invite_code: e, client_id: r } : { client_id: r },
14726
14726
  void 0,
@@ -14730,11 +14730,11 @@ async function X1(r, e) {
14730
14730
  throw t instanceof Error && t.message.includes("Invalid invite code") ? new Error("Invalid invite code. Please check and try again.") : t;
14731
14731
  }
14732
14732
  }
14733
- async function Q1(r, e, t) {
14733
+ async function ew(r, e, t) {
14734
14734
  const n = { code: r, state: e, invite_code: t };
14735
14735
  try {
14736
14736
  return await Tt(
14737
- `${Qe}/auth/github/callback`,
14737
+ `${Xe}/auth/github/callback`,
14738
14738
  "POST",
14739
14739
  n,
14740
14740
  void 0,
@@ -14748,10 +14748,10 @@ async function Q1(r, e, t) {
14748
14748
  ) : new Error("Failed to authenticate with GitHub. Please try again.") : i;
14749
14749
  }
14750
14750
  }
14751
- async function ew(r, e) {
14751
+ async function tw(r, e) {
14752
14752
  try {
14753
14753
  return await Tt(
14754
- `${Qe}/auth/google`,
14754
+ `${Xe}/auth/google`,
14755
14755
  "POST",
14756
14756
  e ? { invite_code: e, client_id: r } : { client_id: r },
14757
14757
  void 0,
@@ -14761,11 +14761,11 @@ async function ew(r, e) {
14761
14761
  throw t instanceof Error && t.message.includes("Invalid invite code") ? new Error("Invalid invite code. Please check and try again.") : t;
14762
14762
  }
14763
14763
  }
14764
- async function tw(r, e, t) {
14764
+ async function rw(r, e, t) {
14765
14765
  const n = { code: r, state: e, invite_code: t };
14766
14766
  try {
14767
14767
  return await Tt(
14768
- `${Qe}/auth/google/callback`,
14768
+ `${Xe}/auth/google/callback`,
14769
14769
  "POST",
14770
14770
  n,
14771
14771
  void 0,
@@ -14779,10 +14779,10 @@ async function tw(r, e, t) {
14779
14779
  ) : new Error("Failed to authenticate with Google. Please try again.") : i;
14780
14780
  }
14781
14781
  }
14782
- async function rw(r, e) {
14782
+ async function nw(r, e) {
14783
14783
  try {
14784
14784
  return await Tt(
14785
- `${Qe}/auth/apple`,
14785
+ `${Xe}/auth/apple`,
14786
14786
  "POST",
14787
14787
  e ? { invite_code: e, client_id: r } : { client_id: r },
14788
14788
  void 0,
@@ -14792,11 +14792,11 @@ async function rw(r, e) {
14792
14792
  throw t instanceof Error && t.message.includes("Invalid invite code") ? new Error("Invalid invite code. Please check and try again.") : t;
14793
14793
  }
14794
14794
  }
14795
- async function nw(r, e, t) {
14795
+ async function iw(r, e, t) {
14796
14796
  const n = { code: r, state: e, invite_code: t };
14797
14797
  try {
14798
14798
  return await Tt(
14799
- `${Qe}/auth/apple/callback`,
14799
+ `${Xe}/auth/apple/callback`,
14800
14800
  "POST",
14801
14801
  n,
14802
14802
  void 0,
@@ -14810,7 +14810,7 @@ async function nw(r, e, t) {
14810
14810
  ) : new Error("Failed to authenticate with Apple. Please try again.") : i;
14811
14811
  }
14812
14812
  }
14813
- async function iw(r, e, t) {
14813
+ async function sw(r, e, t) {
14814
14814
  const n = {
14815
14815
  ...r,
14816
14816
  client_id: e,
@@ -14818,7 +14818,7 @@ async function iw(r, e, t) {
14818
14818
  };
14819
14819
  try {
14820
14820
  return await Tt(
14821
- `${Qe}/auth/apple/native`,
14821
+ `${Xe}/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 = `${Qe}/protected/private_key`;
14836
+ let e = `${Xe}/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("&")}`), $e(
14842
+ ), t.length > 0 && (e += `?${t.join("&")}`), Pe(
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 = `${Qe}/protected/private_key_bytes`;
14850
+ let e = `${Xe}/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("&")}`), $e(
14856
+ ), t.length > 0 && (e += `?${t.join("&")}`), Pe(
14857
14857
  e,
14858
14858
  "GET",
14859
14859
  void 0,
@@ -14866,38 +14866,38 @@ 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 $e(
14870
- `${Qe}/protected/sign_message`,
14869
+ return Pe(
14870
+ `${Xe}/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 = `${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(
14877
+ let t = `${Xe}/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)}`), Pe(
14879
14879
  t,
14880
14880
  "GET",
14881
14881
  void 0,
14882
14882
  "Failed to fetch public key"
14883
14883
  );
14884
14884
  }
14885
- async function sw(r, e, t) {
14885
+ async function ow(r, e, t) {
14886
14886
  const n = {
14887
14887
  email: r,
14888
14888
  password: e,
14889
14889
  ...t !== void 0 && { name: t }
14890
14890
  };
14891
- return $e(
14892
- `${Qe}/protected/convert_guest`,
14891
+ return Pe(
14892
+ `${Xe}/protected/convert_guest`,
14893
14893
  "POST",
14894
14894
  n,
14895
14895
  "Failed to convert guest account"
14896
14896
  );
14897
14897
  }
14898
- async function ow(r) {
14899
- return $e(
14900
- `${Qe}/protected/third_party_token`,
14898
+ async function aw(r) {
14899
+ return Pe(
14900
+ `${Xe}/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 $e(
14912
- `${Qe}/protected/encrypt`,
14911
+ return Pe(
14912
+ `${Xe}/protected/encrypt`,
14913
14913
  "POST",
14914
14914
  t,
14915
14915
  "Failed to encrypt data"
@@ -14920,37 +14920,54 @@ 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 $e(
14924
- `${Qe}/protected/decrypt`,
14923
+ return Pe(
14924
+ `${Xe}/protected/decrypt`,
14925
14925
  "POST",
14926
14926
  t,
14927
14927
  "Failed to decrypt data"
14928
14928
  );
14929
14929
  }
14930
- async function aw(r) {
14930
+ async function cw(r) {
14931
14931
  const e = {
14932
14932
  hashed_secret: r
14933
14933
  };
14934
- return $e(
14935
- `${Qe}/protected/delete-account/request`,
14934
+ return Pe(
14935
+ `${Xe}/protected/delete-account/request`,
14936
14936
  "POST",
14937
14937
  e,
14938
14938
  "Failed to request account deletion"
14939
14939
  );
14940
14940
  }
14941
- async function cw(r, e) {
14941
+ async function lw(r, e) {
14942
14942
  const t = {
14943
14943
  confirmation_code: r,
14944
14944
  plaintext_secret: e
14945
14945
  };
14946
- return $e(
14947
- `${Qe}/protected/delete-account/confirm`,
14946
+ return Pe(
14947
+ `${Xe}/protected/delete-account/confirm`,
14948
14948
  "POST",
14949
14949
  t,
14950
14950
  "Failed to confirm account deletion"
14951
14951
  );
14952
14952
  }
14953
- function lw() {
14953
+ async function Ey() {
14954
+ try {
14955
+ const r = await Pe(
14956
+ `${Xe}/v1/models`,
14957
+ "GET",
14958
+ void 0,
14959
+ "Failed to fetch models"
14960
+ );
14961
+ if (!r || typeof r != "object")
14962
+ throw new Error("Invalid response from models endpoint");
14963
+ if (r.object !== "list" || !Array.isArray(r.data))
14964
+ throw new Error("Models response missing expected 'object' or 'data' fields");
14965
+ return r.data;
14966
+ } catch (r) {
14967
+ throw console.error("Error fetching models:", r), r;
14968
+ }
14969
+ }
14970
+ function uw() {
14954
14971
  return async (r, e) => {
14955
14972
  var n, i;
14956
14973
  const t = () => {
@@ -14992,7 +15009,7 @@ function lw() {
14992
15009
  const I = x.decode(O);
14993
15010
  G += I;
14994
15011
  let P;
14995
- for (; P = uw(G); )
15012
+ for (; P = fw(G); )
14996
15013
  if (G = G.slice(P.length), P.trim().startsWith("data: ")) {
14997
15014
  const R = P.slice(6).trim();
14998
15015
  if (R === "[DONE]")
@@ -15036,13 +15053,13 @@ function lw() {
15036
15053
  }
15037
15054
  };
15038
15055
  }
15039
- function uw(r) {
15056
+ function fw(r) {
15040
15057
  const e = r.indexOf(`
15041
15058
 
15042
15059
  `);
15043
15060
  return e === -1 ? null : r.slice(0, e + 2);
15044
15061
  }
15045
- const fw = [
15062
+ const hw = [
15046
15063
  "eeddbb58f57c38894d6d5af5e575fbe791c5bf3bbcfb5df8da8cfcf0c2e1da1913108e6a762112444740b88c163d7f4b",
15047
15064
  "74ed417f88cb0ca76c4a3d10f278bd010f1d3f95eafb254d4732511bb50e404507a4049b779c5230137e4091a5582271",
15048
15065
  "9043fcab93b972d3c14ad2dc8fa78ca7ad374fc937c02435681772a003f7a72876bc4d578089b5c4cf3fe9b480f1aabb",
@@ -15050,7 +15067,7 @@ const fw = [
15050
15067
  "91cb67311e910cce68cd5b7d0de77aa40610d87c6681439b44c46c3ff786ae643956ab2c812478a1da8745b259f07a45",
15051
15068
  "859065ac81b81d3735130ba08b8af72a7256b603fefb74faabae25ed28cca6edcaa7c10ea32b5948d675c18a9b0f2b1d",
15052
15069
  "acd82a7d3943e23e95a9dc3ce0b0107ea358d6287f9e3afa245622f7c7e3e0a66142a928b6efcc02f594a95366d3a99d"
15053
- ], hw = [
15070
+ ], dw = [
15054
15071
  "62c0407056217a4c10764ed9045694c29fa93255d3cc04c2f989cdd9a1f8050c8b169714c71f1118ebce2fcc9951d1a9",
15055
15072
  "cb95519905443f9f66f05f63c548b61ad1561a27fd5717b69285861aaea3c3063fe12a2571773b67fea3c6c11b4d8ec6",
15056
15073
  "deb5895831b5e4286f5a2dcf5e9c27383821446f8df2b465f141d10743599be20ba3bb381ce063bf7139cc89f7f61d4c",
@@ -15058,14 +15075,14 @@ const fw = [
15058
15075
  "669404ea71435b8f498b48db7816a5c2ab1d258b1a77685b11d84d15a73189504d79c4dee13a658de9f4a0cbfc39cfe8",
15059
15076
  "a791bf92c25ffdfd372660e460a0e238c6778c090672df6509ae4bc065cf8668b6baac6b6a11d554af53ee0ff0172ad5",
15060
15077
  "c4285443b87b9b12a6cea3bef1064ec060f652b235a297095975af8f134e5ed65f92d70d4616fdec80af9dff48bb9f35"
15061
- ], dw = "MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEHiUY9kFWK1GqBGzczohhwEwElXzgWLDZa9R6wBx3JOBocgSt9+UIzZlJbPDjYeGBfDUXh7Z62BG2vVsh2NgclLB5S7A2ucBBtb1wd8vSQHP8jpdPhZX1slauPgbnROIP", pw = {
15078
+ ], pw = "MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEHiUY9kFWK1GqBGzczohhwEwElXzgWLDZa9R6wBx3JOBocgSt9+UIzZlJbPDjYeGBfDUXh7Z62BG2vVsh2NgclLB5S7A2ucBBtb1wd8vSQHP8jpdPhZX1slauPgbnROIP", yw = {
15062
15079
  prod: "https://raw.githubusercontent.com/OpenSecretCloud/opensecret/master/pcrProdHistory.json",
15063
15080
  dev: "https://raw.githubusercontent.com/OpenSecretCloud/opensecret/master/pcrDevHistory.json"
15064
15081
  };
15065
- async function yw() {
15082
+ async function gw() {
15066
15083
  try {
15067
15084
  const r = new Uint8Array(
15068
- atob(dw).split("").map((e) => e.charCodeAt(0))
15085
+ atob(pw).split("").map((e) => e.charCodeAt(0))
15069
15086
  );
15070
15087
  return await crypto.subtle.importKey(
15071
15088
  "spki",
@@ -15087,9 +15104,9 @@ async function yw() {
15087
15104
  throw console.error("Error importing verification key:", r), new Error("Failed to import PCR verification key");
15088
15105
  }
15089
15106
  }
15090
- async function gw(r, e) {
15107
+ async function vw(r, e) {
15091
15108
  try {
15092
- const t = (e == null ? void 0 : e[r]) || pw[r], n = await fetch(t);
15109
+ const t = (e == null ? void 0 : e[r]) || yw[r], n = await fetch(t);
15093
15110
  if (!n.ok)
15094
15111
  throw new Error(`Failed to fetch PCR history: ${n.status}`);
15095
15112
  return await n.json();
@@ -15097,7 +15114,7 @@ async function gw(r, e) {
15097
15114
  throw console.error("Error fetching PCR history:", t), new Error("Failed to fetch PCR history");
15098
15115
  }
15099
15116
  }
15100
- async function vw(r, e, t) {
15117
+ async function mw(r, e, t) {
15101
15118
  try {
15102
15119
  const i = new TextEncoder().encode(r), s = new Uint8Array(
15103
15120
  atob(e).split("").map((o) => o.charCodeAt(0))
@@ -15118,9 +15135,9 @@ async function vw(r, e, t) {
15118
15135
  }
15119
15136
  async function yd(r, e, t) {
15120
15137
  try {
15121
- const n = await yw(), i = await gw(e, t);
15138
+ const n = await gw(), i = await vw(e, t);
15122
15139
  for (const s of i)
15123
- if (s.PCR0 === r && await vw(s.PCR0, s.signature, n))
15140
+ if (s.PCR0 === r && await mw(s.PCR0, s.signature, n))
15124
15141
  return {
15125
15142
  isMatch: !0,
15126
15143
  text: "PCR0 matches remotely attested value",
@@ -15131,8 +15148,8 @@ async function yd(r, e, t) {
15131
15148
  return console.error("PCR remote validation error:", n), null;
15132
15149
  }
15133
15150
  }
15134
- async function mw(r, e) {
15135
- const t = [...(e == null ? void 0 : e.pcr0Values) || [], ...fw], n = [...(e == null ? void 0 : e.pcr0DevValues) || [], ...hw];
15151
+ async function ww(r, e) {
15152
+ const t = [...(e == null ? void 0 : e.pcr0Values) || [], ...hw], n = [...(e == null ? void 0 : e.pcr0DevValues) || [], ...dw];
15136
15153
  if (t.includes(r))
15137
15154
  return {
15138
15155
  isMatch: !0,
@@ -15168,21 +15185,21 @@ async function mw(r, e) {
15168
15185
  };
15169
15186
  }
15170
15187
  const ts = Ua, Dc = "641a0321a3e244efe456463195d606317ed7cdcc3c1756e09893f3c68f79bb5b";
15171
- function Ey(r) {
15188
+ function Iy(r) {
15172
15189
  return Array.from(r).map((e) => e.toString(16).padStart(2, "0")).join("");
15173
15190
  }
15174
- async function ww(r) {
15191
+ async function bw(r) {
15175
15192
  const e = await crypto.subtle.digest("SHA-256", r);
15176
- return Ey(new Uint8Array(e));
15193
+ return Iy(new Uint8Array(e));
15177
15194
  }
15178
15195
  async function rs(r, e, t) {
15179
15196
  console.log("Raw timestamp:", r.timestamp), console.log("Date object:", new Date(r.timestamp));
15180
15197
  const n = Array.from(r.pcrs.entries()).map(([m, x]) => ({
15181
15198
  id: m,
15182
- value: Ey(x)
15199
+ value: Iy(x)
15183
15200
  })).filter((m) => !m.value.match(/^0+$/)), i = n.find((m) => m.id === 0);
15184
15201
  let s = null;
15185
- i && (s = await mw(i.value, t));
15202
+ i && (s = await ww(i.value, t));
15186
15203
  const o = [...e, r.certificate].map((m) => {
15187
15204
  const x = new wi(m);
15188
15205
  return {
@@ -15192,7 +15209,7 @@ async function rs(r, e, t) {
15192
15209
  pem: x.toString("pem"),
15193
15210
  isRoot: x.subject === "C=US, O=Amazon, OU=AWS, CN=aws.nitro-enclaves"
15194
15211
  };
15195
- }), c = new TextDecoder(), u = new wi(e[0]), h = await ww(u.rawData);
15212
+ }), c = new TextDecoder(), u = new wi(e[0]), h = await bw(u.rawData);
15196
15213
  return {
15197
15214
  moduleId: r.module_id,
15198
15215
  publicKey: r.public_key ? $r(r.public_key) : null,
@@ -15214,7 +15231,7 @@ async function rs(r, e, t) {
15214
15231
  validatedPcr0Hash: s
15215
15232
  };
15216
15233
  }
15217
- const Iy = wd({
15234
+ const ky = wd({
15218
15235
  auth: {
15219
15236
  loading: !0,
15220
15237
  user: void 0
@@ -15283,9 +15300,10 @@ const Iy = wd({
15283
15300
  },
15284
15301
  generateThirdPartyToken: async () => ({ token: "" }),
15285
15302
  encryptData: Sy,
15286
- decryptData: _y
15303
+ decryptData: _y,
15304
+ fetchModels: Ey
15287
15305
  });
15288
- function bx({
15306
+ function xx({
15289
15307
  children: r,
15290
15308
  apiUrl: e,
15291
15309
  clientId: t,
@@ -15304,12 +15322,12 @@ function bx({
15304
15322
  throw new Error(
15305
15323
  "OpenSecretProvider requires a non-empty clientId. Please provide a valid project UUID."
15306
15324
  );
15307
- V1(e), Promise.resolve().then(() => xd).then(({ apiConfig: W }) => {
15325
+ L1(e), Promise.resolve().then(() => xd).then(({ apiConfig: W }) => {
15308
15326
  const ne = W.platformApiUrl || "";
15309
15327
  W.configure(e, ne);
15310
15328
  });
15311
15329
  }, [e, t]), Os(() => {
15312
- i.user ? c(() => lw()) : c(void 0);
15330
+ i.user ? c(() => uw()) : c(void 0);
15313
15331
  }, [i.user]);
15314
15332
  async function u() {
15315
15333
  const W = window.localStorage.getItem("access_token"), ne = window.localStorage.getItem("refresh_token");
@@ -15321,7 +15339,7 @@ function bx({
15321
15339
  return;
15322
15340
  }
15323
15341
  try {
15324
- const ie = await q1();
15342
+ const ie = await K1();
15325
15343
  s({
15326
15344
  loading: !1,
15327
15345
  user: ie
@@ -15339,7 +15357,7 @@ function bx({
15339
15357
  async function h(W, ne) {
15340
15358
  console.log("Signing in");
15341
15359
  try {
15342
- const { access_token: ie, refresh_token: xe } = await H1(W, ne, t);
15360
+ const { access_token: ie, refresh_token: xe } = await F1(W, ne, t);
15343
15361
  window.localStorage.setItem("access_token", ie), window.localStorage.setItem("refresh_token", xe), await u();
15344
15362
  } catch (ie) {
15345
15363
  throw console.error(ie), ie;
@@ -15347,7 +15365,7 @@ function bx({
15347
15365
  }
15348
15366
  async function m(W, ne, ie, xe) {
15349
15367
  try {
15350
- const { access_token: tt, refresh_token: At } = await z1(
15368
+ const { access_token: tt, refresh_token: At } = await G1(
15351
15369
  W,
15352
15370
  ne,
15353
15371
  ie,
@@ -15362,7 +15380,7 @@ function bx({
15362
15380
  async function x(W, ne) {
15363
15381
  console.log("Signing in Guest");
15364
15382
  try {
15365
- const { access_token: ie, refresh_token: xe } = await F1(W, ne, t);
15383
+ const { access_token: ie, refresh_token: xe } = await z1(W, ne, t);
15366
15384
  window.localStorage.setItem("access_token", ie), window.localStorage.setItem("refresh_token", xe), await u();
15367
15385
  } catch (ie) {
15368
15386
  throw console.error(ie), ie;
@@ -15370,7 +15388,7 @@ function bx({
15370
15388
  }
15371
15389
  async function G(W, ne) {
15372
15390
  try {
15373
- const { access_token: ie, refresh_token: xe, id: tt } = await G1(
15391
+ const { access_token: ie, refresh_token: xe, id: tt } = await q1(
15374
15392
  W,
15375
15393
  ne,
15376
15394
  t
@@ -15382,7 +15400,7 @@ function bx({
15382
15400
  }
15383
15401
  async function N(W, ne, ie) {
15384
15402
  try {
15385
- await sw(W, ne, ie), await u();
15403
+ await ow(W, ne, ie), await u();
15386
15404
  } catch (xe) {
15387
15405
  throw console.error(xe), xe;
15388
15406
  }
@@ -15391,7 +15409,7 @@ function bx({
15391
15409
  const W = window.localStorage.getItem("refresh_token");
15392
15410
  if (W)
15393
15411
  try {
15394
- await K1(W);
15412
+ await Z1(W);
15395
15413
  } catch (ne) {
15396
15414
  console.error("Error during logout:", ne);
15397
15415
  }
@@ -15400,7 +15418,7 @@ function bx({
15400
15418
  user: void 0
15401
15419
  });
15402
15420
  }
15403
- const Pe = {
15421
+ const je = {
15404
15422
  auth: i,
15405
15423
  clientId: t,
15406
15424
  signIn: h,
@@ -15419,20 +15437,20 @@ function bx({
15419
15437
  requestNewVerificationEmail: $a,
15420
15438
  changePassword: my,
15421
15439
  refreshAccessToken: Uc,
15422
- requestPasswordReset: (W, ne) => Y1(W, ne, t),
15423
- confirmPasswordReset: (W, ne, ie, xe) => J1(W, ne, ie, xe, t),
15424
- requestAccountDeletion: aw,
15425
- confirmAccountDeletion: cw,
15440
+ requestPasswordReset: (W, ne) => J1(W, ne, t),
15441
+ confirmPasswordReset: (W, ne, ie, xe) => X1(W, ne, ie, xe, t),
15442
+ requestAccountDeletion: cw,
15443
+ confirmAccountDeletion: lw,
15426
15444
  initiateGitHubAuth: async (W) => {
15427
15445
  try {
15428
- return await X1(t, W);
15446
+ return await Q1(t, W);
15429
15447
  } catch (ne) {
15430
15448
  throw console.error("Failed to initiate GitHub auth:", ne), ne;
15431
15449
  }
15432
15450
  },
15433
15451
  handleGitHubCallback: async (W, ne, ie) => {
15434
15452
  try {
15435
- const { access_token: xe, refresh_token: tt } = await Q1(
15453
+ const { access_token: xe, refresh_token: tt } = await ew(
15436
15454
  W,
15437
15455
  ne,
15438
15456
  ie
@@ -15444,14 +15462,14 @@ function bx({
15444
15462
  },
15445
15463
  initiateGoogleAuth: async (W) => {
15446
15464
  try {
15447
- return await ew(t, W);
15465
+ return await tw(t, W);
15448
15466
  } catch (ne) {
15449
15467
  throw console.error("Failed to initiate Google auth:", ne), ne;
15450
15468
  }
15451
15469
  },
15452
15470
  handleGoogleCallback: async (W, ne, ie) => {
15453
15471
  try {
15454
- const { access_token: xe, refresh_token: tt } = await tw(
15472
+ const { access_token: xe, refresh_token: tt } = await rw(
15455
15473
  W,
15456
15474
  ne,
15457
15475
  ie
@@ -15463,14 +15481,14 @@ function bx({
15463
15481
  },
15464
15482
  initiateAppleAuth: async (W) => {
15465
15483
  try {
15466
- return await rw(t, W);
15484
+ return await nw(t, W);
15467
15485
  } catch (ne) {
15468
15486
  throw console.error("Failed to initiate Apple auth:", ne), ne;
15469
15487
  }
15470
15488
  },
15471
15489
  handleAppleCallback: async (W, ne, ie) => {
15472
15490
  try {
15473
- const { access_token: xe, refresh_token: tt } = await nw(
15491
+ const { access_token: xe, refresh_token: tt } = await iw(
15474
15492
  W,
15475
15493
  ne,
15476
15494
  ie
@@ -15482,7 +15500,7 @@ function bx({
15482
15500
  },
15483
15501
  handleAppleNativeSignIn: async (W, ne) => {
15484
15502
  try {
15485
- const { access_token: ie, refresh_token: xe } = await iw(
15503
+ const { access_token: ie, refresh_token: xe } = await sw(
15486
15504
  W,
15487
15505
  t,
15488
15506
  ne
@@ -15515,13 +15533,14 @@ function bx({
15515
15533
  );
15516
15534
  return rs(xe, xe.cabundle, n);
15517
15535
  },
15518
- generateThirdPartyToken: ow,
15536
+ generateThirdPartyToken: aw,
15519
15537
  encryptData: Sy,
15520
- decryptData: _y
15538
+ decryptData: _y,
15539
+ fetchModels: Ey
15521
15540
  };
15522
- return /* @__PURE__ */ md(Iy.Provider, { value: Pe, children: r });
15541
+ return /* @__PURE__ */ md(ky.Provider, { value: je, children: r });
15523
15542
  }
15524
- const ky = wd({
15543
+ const Cy = wd({
15525
15544
  auth: {
15526
15545
  loading: !0,
15527
15546
  developer: void 0
@@ -15578,7 +15597,7 @@ const ky = wd({
15578
15597
  acceptInvite: ay,
15579
15598
  apiUrl: ""
15580
15599
  });
15581
- function xx({
15600
+ function Ax({
15582
15601
  children: r,
15583
15602
  apiUrl: e,
15584
15603
  pcrConfig: t = {}
@@ -15592,7 +15611,7 @@ function xx({
15592
15611
  throw new Error(
15593
15612
  "OpenSecretDeveloper requires a non-empty apiUrl. Please provide a valid API endpoint URL."
15594
15613
  );
15595
- P1(e), Promise.resolve().then(() => xd).then(({ apiConfig: m }) => {
15614
+ j1(e), Promise.resolve().then(() => xd).then(({ apiConfig: m }) => {
15596
15615
  const x = m.appApiUrl || "";
15597
15616
  m.configure(x, e);
15598
15617
  }).catch((m) => {
@@ -15611,7 +15630,7 @@ function xx({
15611
15630
  return;
15612
15631
  }
15613
15632
  try {
15614
- const G = await M1();
15633
+ const G = await V1();
15615
15634
  i({
15616
15635
  loading: !1,
15617
15636
  developer: {
@@ -15642,7 +15661,7 @@ function xx({
15642
15661
  }, []);
15643
15662
  async function c(m, x) {
15644
15663
  try {
15645
- const { access_token: G, refresh_token: N } = await j1(m, x);
15664
+ const { access_token: G, refresh_token: N } = await R1(m, x);
15646
15665
  return window.localStorage.setItem("access_token", G), window.localStorage.setItem("refresh_token", N), await s(), { access_token: G, refresh_token: N, id: "", email: m };
15647
15666
  } catch (G) {
15648
15667
  throw console.error("Login error:", G), G;
@@ -15650,7 +15669,7 @@ function xx({
15650
15669
  }
15651
15670
  async function u(m, x, G, N) {
15652
15671
  try {
15653
- const { access_token: v, refresh_token: A } = await R1(
15672
+ const { access_token: v, refresh_token: A } = await U1(
15654
15673
  m,
15655
15674
  x,
15656
15675
  G,
@@ -15670,7 +15689,7 @@ function xx({
15670
15689
  const m = window.localStorage.getItem("refresh_token");
15671
15690
  if (m)
15672
15691
  try {
15673
- await U1(m);
15692
+ await D1(m);
15674
15693
  } catch (x) {
15675
15694
  console.error("Error during logout:", x);
15676
15695
  }
@@ -15717,30 +15736,30 @@ function xx({
15717
15736
  acceptInvite: ay,
15718
15737
  apiUrl: e
15719
15738
  };
15720
- return /* @__PURE__ */ md(ky.Provider, { value: h, children: r });
15721
- }
15722
- function Ax() {
15723
- return bd(Iy);
15739
+ return /* @__PURE__ */ md(Cy.Provider, { value: h, children: r });
15724
15740
  }
15725
15741
  function Sx() {
15726
15742
  return bd(ky);
15727
15743
  }
15728
15744
  function _x() {
15745
+ return bd(Cy);
15746
+ }
15747
+ function Ex() {
15729
15748
  const r = new Uint8Array(32);
15730
15749
  return crypto.getRandomValues(r), Array.from(r, (e) => e.toString(16).padStart(2, "0")).join("");
15731
15750
  }
15732
- async function Ex(r) {
15751
+ async function Ix(r) {
15733
15752
  const t = new TextEncoder().encode(r), n = await crypto.subtle.digest("SHA-256", t);
15734
15753
  return Array.from(new Uint8Array(n)).map((s) => s.toString(16).padStart(2, "0")).join("");
15735
15754
  }
15736
15755
  export {
15737
- Iy as OpenSecretContext,
15738
- xx as OpenSecretDeveloper,
15739
- ky as OpenSecretDeveloperContext,
15740
- bx as OpenSecretProvider,
15756
+ ky as OpenSecretContext,
15757
+ Ax as OpenSecretDeveloper,
15758
+ Cy as OpenSecretDeveloperContext,
15759
+ xx as OpenSecretProvider,
15741
15760
  Ho as apiConfig,
15742
- _x as generateSecureSecret,
15743
- Ex as hashSecret,
15744
- Ax as useOpenSecret,
15745
- Sx as useOpenSecretDeveloper
15761
+ Ex as generateSecureSecret,
15762
+ Ix as hashSecret,
15763
+ Sx as useOpenSecret,
15764
+ _x as useOpenSecretDeveloper
15746
15765
  };