authhero 0.98.0 → 0.99.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/authhero.mjs CHANGED
@@ -375,12 +375,12 @@ class es extends zs {
375
375
  const V = Array.isArray(m), ee = V ? [] : {}, ue = V ? f : v;
376
376
  for (const de in m)
377
377
  if (Object.prototype.hasOwnProperty.call(m, de)) {
378
- const De = `${ue}${s}${de}`;
379
- ee[de] = this.translate(De, {
378
+ const He = `${ue}${s}${de}`;
379
+ ee[de] = this.translate(He, {
380
380
  ...n,
381
381
  joinArrays: !1,
382
382
  ns: c
383
- }), ee[de] === De && (ee[de] = m[de]);
383
+ }), ee[de] === He && (ee[de] = m[de]);
384
384
  }
385
385
  m = ee;
386
386
  }
@@ -388,9 +388,9 @@ class es extends zs {
388
388
  m = m.join(S), m && (m = this.extendTranslation(m, e, n, r));
389
389
  else {
390
390
  let V = !1, ee = !1;
391
- const ue = n.count !== void 0 && !re(n.count), de = es.hasDefaultValue(n), De = ue ? this.pluralResolver.getSuffix(u, n.count, n) : "", Fe = n.ordinal && ue ? this.pluralResolver.getSuffix(u, n.count, {
391
+ const ue = n.count !== void 0 && !re(n.count), de = es.hasDefaultValue(n), He = ue ? this.pluralResolver.getSuffix(u, n.count, n) : "", Me = n.ordinal && ue ? this.pluralResolver.getSuffix(u, n.count, {
392
392
  ordinal: !1
393
- }) : "", Xe = ue && !n.ordinal && n.count === 0, $ = Xe && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${De}`] || n[`defaultValue${Fe}`] || n.defaultValue;
393
+ }) : "", Ve = ue && !n.ordinal && n.count === 0, $ = Ve && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${He}`] || n[`defaultValue${Me}`] || n.defaultValue;
394
394
  !this.isValidLookup(m) && de && (V = !0, m = $), this.isValidLookup(m) || (ee = !0, m = o);
395
395
  const E = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && ee ? void 0 : m, x = de && $ !== m && this.options.updateMissing;
396
396
  if (ee || V || x) {
@@ -414,7 +414,7 @@ class es extends zs {
414
414
  };
415
415
  this.options.saveMissing && (this.options.saveMissingPlurals && ue ? k.forEach((Q) => {
416
416
  const J = this.pluralResolver.getSuffixes(Q, n);
417
- Xe && n[`defaultValue${this.options.pluralSeparator}zero`] && J.indexOf(`${this.options.pluralSeparator}zero`) < 0 && J.push(`${this.options.pluralSeparator}zero`), J.forEach((se) => {
417
+ Ve && n[`defaultValue${this.options.pluralSeparator}zero`] && J.indexOf(`${this.options.pluralSeparator}zero`) < 0 && J.push(`${this.options.pluralSeparator}zero`), J.forEach((se) => {
418
418
  q([Q], o + se, n[`defaultValue${se}`] || $);
419
419
  });
420
420
  }) : q(k, o, $));
@@ -491,10 +491,10 @@ class es extends zs {
491
491
  else {
492
492
  let de;
493
493
  m && (de = this.pluralResolver.getSuffix(T, n.count, n));
494
- const De = `${this.options.pluralSeparator}zero`, Fe = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
495
- if (m && (V.push(p + de), n.ordinal && de.indexOf(Fe) === 0 && V.push(p + de.replace(Fe, this.options.pluralSeparator)), v && V.push(p + De)), f) {
496
- const Xe = `${p}${this.options.contextSeparator}${n.context}`;
497
- V.push(Xe), m && (V.push(Xe + de), n.ordinal && de.indexOf(Fe) === 0 && V.push(Xe + de.replace(Fe, this.options.pluralSeparator)), v && V.push(Xe + De));
494
+ const He = `${this.options.pluralSeparator}zero`, Me = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
495
+ if (m && (V.push(p + de), n.ordinal && de.indexOf(Me) === 0 && V.push(p + de.replace(Me, this.options.pluralSeparator)), v && V.push(p + He)), f) {
496
+ const Ve = `${p}${this.options.contextSeparator}${n.context}`;
497
+ V.push(Ve), m && (V.push(Ve + de), n.ordinal && de.indexOf(Me) === 0 && V.push(Ve + de.replace(Me, this.options.pluralSeparator)), v && V.push(Ve + He));
498
498
  }
499
499
  }
500
500
  let ee;
@@ -2184,12 +2184,12 @@ const Qm = {}, e_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2184
2184
  }, e.hashSync = function($, C) {
2185
2185
  if (typeof C > "u" && (C = _), typeof C == "number" && (C = e.genSaltSync(C)), typeof $ != "string" || typeof C != "string")
2186
2186
  throw Error("Illegal arguments: " + typeof $ + ", " + typeof C);
2187
- return Xe($, C);
2187
+ return Ve($, C);
2188
2188
  }, e.hash = function($, C, E, x) {
2189
2189
  function k(O) {
2190
2190
  typeof $ == "string" && typeof C == "number" ? e.genSalt(C, function(q, Q) {
2191
- Xe($, Q, O, x);
2192
- }) : typeof $ == "string" && typeof C == "string" ? Xe($, C, O, x) : o(O.bind(this, Error("Illegal arguments: " + typeof $ + ", " + typeof C)));
2191
+ Ve($, Q, O, x);
2192
+ }) : typeof $ == "string" && typeof C == "string" ? Ve($, C, O, x) : o(O.bind(this, Error("Illegal arguments: " + typeof $ + ", " + typeof C)));
2193
2193
  }
2194
2194
  if (E) {
2195
2195
  if (typeof E != "function")
@@ -3552,7 +3552,7 @@ const Qm = {}, e_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3552
3552
  for (J = 0; J < q; J += 2)
3553
3553
  k = ee(k, 0, C, E), E[J] = k[0], E[J + 1] = k[1];
3554
3554
  }
3555
- function De($, C, E, x) {
3555
+ function He($, C, E, x) {
3556
3556
  for (var k = 0, O = [0, 0], q = E.length, Q = x.length, J, se = 0; se < q; se++)
3557
3557
  J = ue(C, k), k = J.offp, E[se] = E[se] ^ J.key;
3558
3558
  for (k = 0, se = 0; se < q; se += 2)
@@ -3560,7 +3560,7 @@ const Qm = {}, e_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3560
3560
  for (se = 0; se < Q; se += 2)
3561
3561
  J = ue($, k), k = J.offp, O[0] ^= J.key, J = ue($, k), k = J.offp, O[1] ^= J.key, O = ee(O, 0, E, x), x[se] = O[0], x[se + 1] = O[1];
3562
3562
  }
3563
- function Fe($, C, E, x, k) {
3563
+ function Me($, C, E, x, k) {
3564
3564
  var O = V.slice(), q = O.length, Q;
3565
3565
  if (E < 4 || E > 31)
3566
3566
  if (Q = Error("Illegal number of rounds (4-31): " + E), x) {
@@ -3576,7 +3576,7 @@ const Qm = {}, e_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3576
3576
  throw Q;
3577
3577
  E = 1 << E >>> 0;
3578
3578
  var J, se, fe = 0, H;
3579
- Int32Array ? (J = new Int32Array(j), se = new Int32Array(T)) : (J = j.slice(), se = T.slice()), De(C, $, J, se);
3579
+ Int32Array ? (J = new Int32Array(j), se = new Int32Array(T)) : (J = j.slice(), se = T.slice()), He(C, $, J, se);
3580
3580
  function $e() {
3581
3581
  if (k && k(fe / E), fe < E)
3582
3582
  for (var me = Date.now(); fe < E && (fe = fe + 1, de($, J, se), de(C, J, se), !(Date.now() - me > S)); )
@@ -3603,7 +3603,7 @@ const Qm = {}, e_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3603
3603
  if (typeof (dn = $e()) < "u")
3604
3604
  return dn || [];
3605
3605
  }
3606
- function Xe($, C, E, x) {
3606
+ function Ve($, C, E, x) {
3607
3607
  var k;
3608
3608
  if (typeof $ != "string" || typeof C != "string")
3609
3609
  if (k = Error("Invalid string / salt: Not a string"), E) {
@@ -3643,8 +3643,8 @@ const Qm = {}, e_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3643
3643
  return Ee.push("$2"), O >= "a" && Ee.push(O), Ee.push("$"), se < 10 && Ee.push("0"), Ee.push(se.toString()), Ee.push("$"), Ee.push(h($e, $e.length)), Ee.push(h(me, V.length * 4 - 1)), Ee.join("");
3644
3644
  }
3645
3645
  if (typeof E > "u")
3646
- return dn(Fe(H, $e, se));
3647
- Fe(H, $e, se, function(me, Ee) {
3646
+ return dn(Me(H, $e, se));
3647
+ Me(H, $e, se, function(me, Ee) {
3648
3648
  me ? E(me, null) : E(null, dn(Ee));
3649
3649
  }, x);
3650
3650
  }
@@ -4171,11 +4171,11 @@ nl.validate = function(t, e) {
4171
4171
  l += t[s];
4172
4172
  if (l = l.trim(), l[l.length - 1] === "/" && (l = l.substring(0, l.length - 1), s--), !P_(l)) {
4173
4173
  let h;
4174
- return l.trim().length === 0 ? h = "Invalid space after '<'." : h = "Tag '" + l + "' is an invalid name.", xe("InvalidTag", h, qe(t, s));
4174
+ return l.trim().length === 0 ? h = "Invalid space after '<'." : h = "Tag '" + l + "' is an invalid name.", xe("InvalidTag", h, ze(t, s));
4175
4175
  }
4176
4176
  const u = j_(t, s);
4177
4177
  if (u === !1)
4178
- return xe("InvalidAttr", "Attributes for '" + l + "' have open quote.", qe(t, s));
4178
+ return xe("InvalidAttr", "Attributes for '" + l + "' have open quote.", ze(t, s));
4179
4179
  let p = u.value;
4180
4180
  if (s = u.index, p[p.length - 1] === "/") {
4181
4181
  const h = s - p.length;
@@ -4184,32 +4184,32 @@ nl.validate = function(t, e) {
4184
4184
  if (m === !0)
4185
4185
  r = !0;
4186
4186
  else
4187
- return xe(m.err.code, m.err.msg, qe(t, h + m.err.line));
4187
+ return xe(m.err.code, m.err.msg, ze(t, h + m.err.line));
4188
4188
  } else if (c)
4189
4189
  if (u.tagClosed) {
4190
4190
  if (p.trim().length > 0)
4191
- return xe("InvalidTag", "Closing tag '" + l + "' can't have attributes or invalid starting.", qe(t, o));
4191
+ return xe("InvalidTag", "Closing tag '" + l + "' can't have attributes or invalid starting.", ze(t, o));
4192
4192
  if (n.length === 0)
4193
- return xe("InvalidTag", "Closing tag '" + l + "' has not been opened.", qe(t, o));
4193
+ return xe("InvalidTag", "Closing tag '" + l + "' has not been opened.", ze(t, o));
4194
4194
  {
4195
4195
  const h = n.pop();
4196
4196
  if (l !== h.tagName) {
4197
- let m = qe(t, h.tagStartPos);
4197
+ let m = ze(t, h.tagStartPos);
4198
4198
  return xe(
4199
4199
  "InvalidTag",
4200
4200
  "Expected closing tag '" + h.tagName + "' (opened in line " + m.line + ", col " + m.col + ") instead of closing tag '" + l + "'.",
4201
- qe(t, o)
4201
+ ze(t, o)
4202
4202
  );
4203
4203
  }
4204
4204
  n.length == 0 && (i = !0);
4205
4205
  }
4206
- } else return xe("InvalidTag", "Closing tag '" + l + "' doesn't have proper closing.", qe(t, s));
4206
+ } else return xe("InvalidTag", "Closing tag '" + l + "' doesn't have proper closing.", ze(t, s));
4207
4207
  else {
4208
4208
  const h = Du(p, e);
4209
4209
  if (h !== !0)
4210
- return xe(h.err.code, h.err.msg, qe(t, s - p.length + h.err.line));
4210
+ return xe(h.err.code, h.err.msg, ze(t, s - p.length + h.err.line));
4211
4211
  if (i === !0)
4212
- return xe("InvalidXml", "Multiple possible root nodes found.", qe(t, s));
4212
+ return xe("InvalidXml", "Multiple possible root nodes found.", ze(t, s));
4213
4213
  e.unpairedTags.indexOf(l) !== -1 || n.push({ tagName: l, tagStartPos: o }), r = !0;
4214
4214
  }
4215
4215
  for (s++; s < t.length; s++)
@@ -4224,20 +4224,20 @@ nl.validate = function(t, e) {
4224
4224
  else if (t[s] === "&") {
4225
4225
  const h = B_(t, s);
4226
4226
  if (h == -1)
4227
- return xe("InvalidChar", "char '&' is not expected.", qe(t, s));
4227
+ return xe("InvalidChar", "char '&' is not expected.", ze(t, s));
4228
4228
  s = h;
4229
4229
  } else if (i === !0 && !qu(t[s]))
4230
- return xe("InvalidXml", "Extra text at the end", qe(t, s));
4230
+ return xe("InvalidXml", "Extra text at the end", ze(t, s));
4231
4231
  t[s] === "<" && s--;
4232
4232
  }
4233
4233
  } else {
4234
4234
  if (qu(t[s]))
4235
4235
  continue;
4236
- return xe("InvalidChar", "char '" + t[s] + "' is not expected.", qe(t, s));
4236
+ return xe("InvalidChar", "char '" + t[s] + "' is not expected.", ze(t, s));
4237
4237
  }
4238
4238
  if (r) {
4239
4239
  if (n.length == 1)
4240
- return xe("InvalidTag", "Unclosed tag '" + n[0].tagName + "'.", qe(t, n[0].tagStartPos));
4240
+ return xe("InvalidTag", "Unclosed tag '" + n[0].tagName + "'.", ze(t, n[0].tagStartPos));
4241
4241
  if (n.length > 0)
4242
4242
  return xe("InvalidXml", "Invalid '" + JSON.stringify(n.map((s) => s.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 });
4243
4243
  } else return xe("InvalidXml", "Start tag expected.", 1);
@@ -4253,7 +4253,7 @@ function Mu(t, e) {
4253
4253
  if (t[e] == "?" || t[e] == " ") {
4254
4254
  const r = t.substr(n, e - n);
4255
4255
  if (e > 5 && r === "xml")
4256
- return xe("InvalidXml", "XML declaration allowed only at the start of the document.", qe(t, e));
4256
+ return xe("InvalidXml", "XML declaration allowed only at the start of the document.", ze(t, e));
4257
4257
  if (t[e] == "?" && t[e + 1] == ">") {
4258
4258
  e++;
4259
4259
  break;
@@ -4363,7 +4363,7 @@ function T_(t) {
4363
4363
  function P_(t) {
4364
4364
  return rl.isName(t);
4365
4365
  }
4366
- function qe(t, e) {
4366
+ function ze(t, e) {
4367
4367
  const n = t.substring(0, e).split(/\r?\n/);
4368
4368
  return {
4369
4369
  line: n.length,
@@ -6619,24 +6619,24 @@ var Wu;
6619
6619
  return H(B) || (B = kt(B)), O(A, I, B);
6620
6620
  }
6621
6621
  e("getMetadata", de);
6622
- function De(A, I, B) {
6622
+ function He(A, I, B) {
6623
6623
  if (!me(I))
6624
6624
  throw new TypeError();
6625
6625
  return H(B) || (B = kt(B)), q(A, I, B);
6626
6626
  }
6627
- e("getOwnMetadata", De);
6628
- function Fe(A, I) {
6627
+ e("getOwnMetadata", He);
6628
+ function Me(A, I) {
6629
6629
  if (!me(A))
6630
6630
  throw new TypeError();
6631
6631
  return H(I) || (I = kt(I)), J(A, I);
6632
6632
  }
6633
- e("getMetadataKeys", Fe);
6634
- function Xe(A, I) {
6633
+ e("getMetadataKeys", Me);
6634
+ function Ve(A, I) {
6635
6635
  if (!me(A))
6636
6636
  throw new TypeError();
6637
6637
  return H(I) || (I = kt(I)), se(A, I);
6638
6638
  }
6639
- e("getOwnMetadataKeys", Xe);
6639
+ e("getOwnMetadataKeys", Ve);
6640
6640
  function $(A, I, B) {
6641
6641
  if (!me(I))
6642
6642
  throw new TypeError();
@@ -7774,7 +7774,7 @@ class Zs {
7774
7774
  return al(this.items);
7775
7775
  }
7776
7776
  }
7777
- const Nr = [new Uint8Array([1])], Ju = "0123456789", Zo = "name", Zu = "valueHexView", fy = "isHexOnly", hy = "idBlock", gy = "tagClass", my = "tagNumber", _y = "isConstructed", yy = "fromBER", vy = "toBER", wy = "local", Ke = "", wt = new ArrayBuffer(0), Ys = new Uint8Array(0), Dr = "EndOfContent", jf = "OCTET STRING", $f = "BIT STRING";
7777
+ const Nr = [new Uint8Array([1])], Ju = "0123456789", Zo = "name", Zu = "valueHexView", fy = "isHexOnly", hy = "idBlock", gy = "tagClass", my = "tagNumber", _y = "isConstructed", yy = "fromBER", vy = "toBER", wy = "local", We = "", wt = new ArrayBuffer(0), Ys = new Uint8Array(0), Dr = "EndOfContent", jf = "OCTET STRING", $f = "BIT STRING";
7778
7778
  function jt(t) {
7779
7779
  var e;
7780
7780
  return e = class extends t {
@@ -7810,7 +7810,7 @@ function jt(t) {
7810
7810
  }, e.NAME = "hexBlock", e;
7811
7811
  }
7812
7812
  class Pn {
7813
- constructor({ blockLength: e = 0, error: n = Ke, warnings: r = [], valueBeforeDecode: i = Ys } = {}) {
7813
+ constructor({ blockLength: e = 0, error: n = We, warnings: r = [], valueBeforeDecode: i = Ys } = {}) {
7814
7814
  this.blockLength = e, this.error = n, this.warnings = r, this.valueBeforeDecodeView = D.toUint8Array(i);
7815
7815
  }
7816
7816
  static blockName() {
@@ -7833,7 +7833,7 @@ class Pn {
7833
7833
  }
7834
7834
  }
7835
7835
  Pn.NAME = "baseBlock";
7836
- class ze extends Pn {
7836
+ class Fe extends Pn {
7837
7837
  fromBER(e, n, r) {
7838
7838
  throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'");
7839
7839
  }
@@ -7841,7 +7841,7 @@ class ze extends Pn {
7841
7841
  throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'");
7842
7842
  }
7843
7843
  }
7844
- ze.NAME = "valueBlock";
7844
+ Fe.NAME = "valueBlock";
7845
7845
  class Of extends jt(Pn) {
7846
7846
  constructor({ idBlock: e = {} } = {}) {
7847
7847
  var n, r, i, s;
@@ -8022,8 +8022,8 @@ class Bf extends Pn {
8022
8022
  Bf.NAME = "lengthBlock";
8023
8023
  const W = {};
8024
8024
  class Re extends Pn {
8025
- constructor({ name: e = Ke, optional: n = !1, primitiveSchema: r, ...i } = {}, s) {
8026
- super(i), this.name = e, this.optional = n, r && (this.primitiveSchema = r), this.idBlock = new Of(i), this.lenBlock = new Bf(i), this.valueBlock = s ? new s(i) : new ze(i);
8025
+ constructor({ name: e = We, optional: n = !1, primitiveSchema: r, ...i } = {}, s) {
8026
+ super(i), this.name = e, this.optional = n, r && (this.primitiveSchema = r), this.idBlock = new Of(i), this.lenBlock = new Bf(i), this.valueBlock = s ? new s(i) : new Fe(i);
8027
8027
  }
8028
8028
  fromBER(e, n, r) {
8029
8029
  const i = this.valueBlock.fromBER(e, n, this.lenBlock.isIndefiniteForm ? r : this.lenBlock.length);
@@ -8077,7 +8077,7 @@ function Tf(t) {
8077
8077
  return !!t.lenBlock.isIndefiniteForm;
8078
8078
  }
8079
8079
  class cl extends Re {
8080
- constructor({ value: e = Ke, ...n } = {}, r) {
8080
+ constructor({ value: e = We, ...n } = {}, r) {
8081
8081
  super(n, r), e && this.fromString(e);
8082
8082
  }
8083
8083
  getValue() {
@@ -8095,7 +8095,7 @@ class cl extends Re {
8095
8095
  }
8096
8096
  }
8097
8097
  cl.NAME = "BaseStringBlock";
8098
- class Pf extends jt(ze) {
8098
+ class Pf extends jt(Fe) {
8099
8099
  constructor({ isHexOnly: e = !0, ...n } = {}) {
8100
8100
  super(n), this.isHexOnly = e;
8101
8101
  }
@@ -8118,7 +8118,7 @@ function by(t, e) {
8118
8118
  }
8119
8119
  function pr(t, e = 0, n = t.length) {
8120
8120
  const r = e;
8121
- let i = new Re({}, ze);
8121
+ let i = new Re({}, Fe);
8122
8122
  const s = new Pn();
8123
8123
  if (!Dt(s, t, e, n))
8124
8124
  return i.error = s.error, {
@@ -8274,7 +8274,7 @@ function pr(t, e = 0, n = t.length) {
8274
8274
  }
8275
8275
  function Kn(t) {
8276
8276
  if (!t.byteLength) {
8277
- const e = new Re({}, ze);
8277
+ const e = new Re({}, Fe);
8278
8278
  return e.error = "Input buffer has zero length", {
8279
8279
  offset: -1,
8280
8280
  result: e
@@ -8285,7 +8285,7 @@ function Kn(t) {
8285
8285
  function ky(t, e) {
8286
8286
  return t ? 1 : e;
8287
8287
  }
8288
- class Gt extends ze {
8288
+ class Gt extends Fe {
8289
8289
  constructor({ value: e = [], isIndefiniteForm: n = !1, ...r } = {}) {
8290
8290
  super(r), this.value = e, this.isIndefiniteForm = n;
8291
8291
  }
@@ -8324,7 +8324,7 @@ class Gt extends ze {
8324
8324
  }
8325
8325
  Gt.NAME = "ConstructedValueBlock";
8326
8326
  var Lf;
8327
- class We extends Re {
8327
+ class Ge extends Re {
8328
8328
  constructor(e = {}) {
8329
8329
  super(e, Gt), this.idBlock.isConstructed = !0;
8330
8330
  }
@@ -8345,10 +8345,10 @@ ${e.join(`
8345
8345
  `)}` : `${n} :`;
8346
8346
  }
8347
8347
  }
8348
- Lf = We;
8348
+ Lf = Ge;
8349
8349
  W.Constructed = Lf;
8350
- We.NAME = "CONSTRUCTED";
8351
- class Uf extends ze {
8350
+ Ge.NAME = "CONSTRUCTED";
8351
+ class Uf extends Fe {
8352
8352
  fromBER(e, n, r) {
8353
8353
  return n;
8354
8354
  }
@@ -8369,7 +8369,7 @@ ll.NAME = Dr;
8369
8369
  var qf;
8370
8370
  class kn extends Re {
8371
8371
  constructor(e = {}) {
8372
- super(e, ze), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 5;
8372
+ super(e, Fe), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 5;
8373
8373
  }
8374
8374
  fromBER(e, n, r) {
8375
8375
  return this.lenBlock.length > 0 && this.warnings.push("Non-zero length of value block for Null type"), this.idBlock.error.length || (this.blockLength += this.idBlock.blockLength), this.lenBlock.error.length || (this.blockLength += this.lenBlock.blockLength), this.blockLength += r, n + r > e.byteLength ? (this.error = "End of input reached before message was fully decoded (inconsistent offset and length values)", -1) : n + r;
@@ -8389,7 +8389,7 @@ class kn extends Re {
8389
8389
  qf = kn;
8390
8390
  W.Null = qf;
8391
8391
  kn.NAME = "NULL";
8392
- class Mf extends jt(ze) {
8392
+ class Mf extends jt(Fe) {
8393
8393
  constructor({ value: e, ...n } = {}) {
8394
8394
  super(n), n.valueHex ? this.valueHexView = D.toUint8Array(n.valueHex) : this.valueHexView = new Uint8Array(1), e && (this.value = e);
8395
8395
  }
@@ -8501,7 +8501,7 @@ let yn = class Hf extends Re {
8501
8501
  return super.fromBER(e, n, r);
8502
8502
  }
8503
8503
  onAsciiEncoding() {
8504
- return this.valueBlock.isConstructed || this.valueBlock.value && this.valueBlock.value.length ? We.prototype.onAsciiEncoding.call(this) : `${this.constructor.NAME} : ${Z.ToHex(this.valueBlock.valueHexView)}`;
8504
+ return this.valueBlock.isConstructed || this.valueBlock.value && this.valueBlock.value.length ? Ge.prototype.onAsciiEncoding.call(this) : `${this.constructor.NAME} : ${Z.ToHex(this.valueBlock.valueHexView)}`;
8505
8505
  }
8506
8506
  getValue() {
8507
8507
  if (!this.idBlock.isConstructed)
@@ -8600,7 +8600,7 @@ let vn = class extends Re {
8600
8600
  }
8601
8601
  onAsciiEncoding() {
8602
8602
  if (this.valueBlock.isConstructed || this.valueBlock.value && this.valueBlock.value.length)
8603
- return We.prototype.onAsciiEncoding.call(this);
8603
+ return Ge.prototype.onAsciiEncoding.call(this);
8604
8604
  {
8605
8605
  const e = [], n = this.valueBlock.valueHexView;
8606
8606
  for (const i of n)
@@ -8674,7 +8674,7 @@ function Sy(t, e) {
8674
8674
  }
8675
8675
  return s.slice();
8676
8676
  }
8677
- class ul extends jt(ze) {
8677
+ class ul extends jt(Fe) {
8678
8678
  constructor({ value: e, ...n } = {}) {
8679
8679
  super(n), this._valueDec = 0, n.valueHex && this.setValueHex(), e !== void 0 && (this.valueDec = e);
8680
8680
  }
@@ -8803,7 +8803,7 @@ class Qs extends Et {
8803
8803
  Zf = Qs;
8804
8804
  W.Enumerated = Zf;
8805
8805
  Qs.NAME = "ENUMERATED";
8806
- class Ca extends jt(ze) {
8806
+ class Ca extends jt(Fe) {
8807
8807
  constructor({ valueDec: e = -1, isFirstSid: n = !1, ...r } = {}) {
8808
8808
  super(r), this.valueDec = e, this.isFirstSid = n;
8809
8809
  }
@@ -8873,8 +8873,8 @@ class Ca extends jt(ze) {
8873
8873
  }
8874
8874
  }
8875
8875
  Ca.NAME = "sidBlock";
8876
- class Yf extends ze {
8877
- constructor({ value: e = Ke, ...n } = {}) {
8876
+ class Yf extends Fe {
8877
+ constructor({ value: e = We, ...n } = {}) {
8878
8878
  super(n), this.value = [], e && this.fromString(e);
8879
8879
  }
8880
8880
  fromBER(e, n, r) {
@@ -9030,8 +9030,8 @@ class ja extends jt(Pn) {
9030
9030
  }
9031
9031
  }
9032
9032
  ja.NAME = "relativeSidBlock";
9033
- class Qf extends ze {
9034
- constructor({ value: e = Ke, ...n } = {}) {
9033
+ class Qf extends Fe {
9034
+ constructor({ value: e = We, ...n } = {}) {
9035
9035
  super(n), this.value = [], e && this.fromString(e);
9036
9036
  }
9037
9037
  fromBER(e, n, r) {
@@ -9112,7 +9112,7 @@ eh = dl;
9112
9112
  W.RelativeObjectIdentifier = eh;
9113
9113
  dl.NAME = "RelativeObjectIdentifier";
9114
9114
  var th;
9115
- class Rt extends We {
9115
+ class Rt extends Ge {
9116
9116
  constructor(e = {}) {
9117
9117
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 16;
9118
9118
  }
@@ -9121,7 +9121,7 @@ th = Rt;
9121
9121
  W.Sequence = th;
9122
9122
  Rt.NAME = "SEQUENCE";
9123
9123
  var nh;
9124
- let Lt = class extends We {
9124
+ let Lt = class extends Ge {
9125
9125
  constructor(e = {}) {
9126
9126
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 17;
9127
9127
  }
@@ -9129,9 +9129,9 @@ let Lt = class extends We {
9129
9129
  nh = Lt;
9130
9130
  W.Set = nh;
9131
9131
  Lt.NAME = "SET";
9132
- class rh extends jt(ze) {
9132
+ class rh extends jt(Fe) {
9133
9133
  constructor({ ...e } = {}) {
9134
- super(e), this.isHexOnly = !0, this.value = Ke;
9134
+ super(e), this.isHexOnly = !0, this.value = We;
9135
9135
  }
9136
9136
  toJSON() {
9137
9137
  return {
@@ -9540,7 +9540,7 @@ Eh = ml;
9540
9540
  W.TIME = Eh;
9541
9541
  ml.NAME = "TIME";
9542
9542
  class xn {
9543
- constructor({ name: e = Ke, optional: n = !1 } = {}) {
9543
+ constructor({ name: e = We, optional: n = !1 } = {}) {
9544
9544
  this.name = e, this.optional = n;
9545
9545
  }
9546
9546
  }
@@ -9695,7 +9695,7 @@ function gn(t, e, n) {
9695
9695
  result: t
9696
9696
  };
9697
9697
  }
9698
- if (n.name && (n.name = n.name.replace(/^\s+|\s+$/g, Ke), n.name && (t[n.name] = e)), n instanceof W.Constructed) {
9698
+ if (n.name && (n.name = n.name.replace(/^\s+|\s+$/g, We), n.name && (t[n.name] = e)), n instanceof W.Constructed) {
9699
9699
  let s = 0, o = {
9700
9700
  verified: !1,
9701
9701
  result: {
@@ -9714,7 +9714,7 @@ function gn(t, e, n) {
9714
9714
  return l ? {
9715
9715
  verified: !0,
9716
9716
  result: t
9717
- } : (n.name && (n.name = n.name.replace(/^\s+|\s+$/g, Ke), n.name && delete t[n.name]), t.error = "Inconsistent object length", {
9717
+ } : (n.name && (n.name = n.name.replace(/^\s+|\s+$/g, We), n.name && delete t[n.name]), t.error = "Inconsistent object length", {
9718
9718
  verified: !1,
9719
9719
  result: t
9720
9720
  });
@@ -9726,14 +9726,14 @@ function gn(t, e, n) {
9726
9726
  verified: !1,
9727
9727
  result: t
9728
9728
  };
9729
- return t.error = "Inconsistent length between ASN.1 data and schema", n.name && (n.name = n.name.replace(/^\s+|\s+$/g, Ke), n.name && (delete t[n.name], u.name = n.name)), u;
9729
+ return t.error = "Inconsistent length between ASN.1 data and schema", n.name && (n.name = n.name.replace(/^\s+|\s+$/g, We), n.name && (delete t[n.name], u.name = n.name)), u;
9730
9730
  }
9731
9731
  } else if (n.valueBlock.value[0] instanceof ss) {
9732
9732
  if (o = gn(t, e.valueBlock.value[l], n.valueBlock.value[0].value), o.verified === !1)
9733
9733
  if (n.valueBlock.value[0].optional)
9734
9734
  s++;
9735
9735
  else
9736
- return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, Ke), n.name && delete t[n.name]), o;
9736
+ return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, We), n.name && delete t[n.name]), o;
9737
9737
  if (Zo in n.valueBlock.value[0] && n.valueBlock.value[0].name.length > 0) {
9738
9738
  let u = {};
9739
9739
  wy in n.valueBlock.value[0] && n.valueBlock.value[0].local ? u = e : u = t, typeof u[n.valueBlock.value[0].name] > "u" && (u[n.valueBlock.value[0].name] = []), u[n.valueBlock.value[0].name].push(e.valueBlock.value[l]);
@@ -9742,13 +9742,13 @@ function gn(t, e, n) {
9742
9742
  if (n.valueBlock.value[l].optional)
9743
9743
  s++;
9744
9744
  else
9745
- return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, Ke), n.name && delete t[n.name]), o;
9745
+ return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, We), n.name && delete t[n.name]), o;
9746
9746
  if (o.verified === !1) {
9747
9747
  const l = {
9748
9748
  verified: !1,
9749
9749
  result: t
9750
9750
  };
9751
- return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, Ke), n.name && (delete t[n.name], l.name = n.name)), l;
9751
+ return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, We), n.name && (delete t[n.name], l.name = n.name)), l;
9752
9752
  }
9753
9753
  return {
9754
9754
  verified: !0,
@@ -9762,7 +9762,7 @@ function gn(t, e, n) {
9762
9762
  verified: !1,
9763
9763
  result: s.result
9764
9764
  };
9765
- return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, Ke), n.name && (delete t[n.name], o.name = n.name)), o;
9765
+ return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, We), n.name && (delete t[n.name], o.name = n.name)), o;
9766
9766
  }
9767
9767
  return gn(t, s.result, n.primitiveSchema);
9768
9768
  }
@@ -9793,7 +9793,7 @@ const Ih = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9793
9793
  Boolean: Xs,
9794
9794
  CharacterString: uo,
9795
9795
  Choice: _l,
9796
- Constructed: We,
9796
+ Constructed: Ge,
9797
9797
  DATE: pl,
9798
9798
  DateTime: hl,
9799
9799
  Duration: gl,
@@ -9822,7 +9822,7 @@ const Ih = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9822
9822
  UTCTime: li,
9823
9823
  UniversalString: no,
9824
9824
  Utf8String: Ft,
9825
- ValueBlock: ze,
9825
+ ValueBlock: Fe,
9826
9826
  VideotexString: oo,
9827
9827
  ViewWriter: Zs,
9828
9828
  VisibleString: ci,
@@ -10075,7 +10075,7 @@ class Jy {
10075
10075
  if (o.context !== null && o.context !== void 0)
10076
10076
  if (o.implicit)
10077
10077
  if (typeof o.type == "number" || Pt(o.type)) {
10078
- const p = o.repeated ? We : ai;
10078
+ const p = o.repeated ? Ge : ai;
10079
10079
  i.push(new p({
10080
10080
  name: c,
10081
10081
  optional: u,
@@ -10088,7 +10088,7 @@ class Jy {
10088
10088
  this.cache(o.type);
10089
10089
  const p = !!o.repeated;
10090
10090
  let h = p ? l : this.get(o.type, !0).schema;
10091
- h = "valueBlock" in h ? h.valueBlock.value : h.value, i.push(new We({
10091
+ h = "valueBlock" in h ? h.valueBlock.value : h.value, i.push(new Ge({
10092
10092
  name: p ? "" : c,
10093
10093
  optional: u,
10094
10094
  idBlock: {
@@ -10099,7 +10099,7 @@ class Jy {
10099
10099
  }));
10100
10100
  }
10101
10101
  else
10102
- i.push(new We({
10102
+ i.push(new Ge({
10103
10103
  optional: u,
10104
10104
  idBlock: {
10105
10105
  tagClass: 3,
@@ -10164,8 +10164,8 @@ class Zy {
10164
10164
  const i = st.get(n);
10165
10165
  st.cache(n);
10166
10166
  let s = i.schema;
10167
- if (e.constructor === We && i.type !== P.Choice) {
10168
- s = new We({
10167
+ if (e.constructor === Ge && i.type !== P.Choice) {
10168
+ s = new Ge({
10169
10169
  idBlock: {
10170
10170
  tagClass: 3,
10171
10171
  tagNumber: e.idBlock.tagNumber
@@ -10283,7 +10283,7 @@ class vl {
10283
10283
  ...p
10284
10284
  }));
10285
10285
  } else
10286
- i.push(new We({
10286
+ i.push(new Ge({
10287
10287
  optional: c.optional,
10288
10288
  idBlock: {
10289
10289
  tagClass: 3,
@@ -10292,7 +10292,7 @@ class vl {
10292
10292
  value: u.valueBlock.value
10293
10293
  }));
10294
10294
  else
10295
- i.push(new We({
10295
+ i.push(new Ge({
10296
10296
  optional: c.optional,
10297
10297
  idBlock: {
10298
10298
  tagClass: 3,
@@ -11091,16 +11091,16 @@ d([
11091
11091
  g({ type: b.Integer, optional: !0 })
11092
11092
  ], as.prototype, "pathLenConstraint", void 0);
11093
11093
  var Ua;
11094
- let Me = Ua = class extends ge {
11094
+ let De = Ua = class extends ge {
11095
11095
  constructor(e) {
11096
11096
  super(e), Object.setPrototypeOf(this, Ua.prototype);
11097
11097
  }
11098
11098
  };
11099
- Me = Ua = d([
11099
+ De = Ua = d([
11100
11100
  L({ type: P.Sequence, itemType: ie })
11101
- ], Me);
11101
+ ], De);
11102
11102
  var Va;
11103
- let sd = Va = class extends Me {
11103
+ let sd = Va = class extends De {
11104
11104
  constructor(e) {
11105
11105
  super(e), Object.setPrototypeOf(this, Va.prototype);
11106
11106
  }
@@ -11275,30 +11275,30 @@ let ad = Da = class extends Wn {
11275
11275
  ad = Da = d([
11276
11276
  L({ type: P.Sequence, itemType: hr })
11277
11277
  ], ad);
11278
- class Ve {
11278
+ class qe {
11279
11279
  constructor(e = {}) {
11280
- this.onlyContainsUserCerts = Ve.ONLY, this.onlyContainsCACerts = Ve.ONLY, this.indirectCRL = Ve.ONLY, this.onlyContainsAttributeCerts = Ve.ONLY, Object.assign(this, e);
11280
+ this.onlyContainsUserCerts = qe.ONLY, this.onlyContainsCACerts = qe.ONLY, this.indirectCRL = qe.ONLY, this.onlyContainsAttributeCerts = qe.ONLY, Object.assign(this, e);
11281
11281
  }
11282
11282
  }
11283
- Ve.ONLY = !1;
11283
+ qe.ONLY = !1;
11284
11284
  d([
11285
11285
  g({ type: Sn, context: 0, optional: !0 })
11286
- ], Ve.prototype, "distributionPoint", void 0);
11286
+ ], qe.prototype, "distributionPoint", void 0);
11287
11287
  d([
11288
- g({ type: b.Boolean, context: 1, defaultValue: Ve.ONLY, implicit: !0 })
11289
- ], Ve.prototype, "onlyContainsUserCerts", void 0);
11288
+ g({ type: b.Boolean, context: 1, defaultValue: qe.ONLY, implicit: !0 })
11289
+ ], qe.prototype, "onlyContainsUserCerts", void 0);
11290
11290
  d([
11291
- g({ type: b.Boolean, context: 2, defaultValue: Ve.ONLY, implicit: !0 })
11292
- ], Ve.prototype, "onlyContainsCACerts", void 0);
11291
+ g({ type: b.Boolean, context: 2, defaultValue: qe.ONLY, implicit: !0 })
11292
+ ], qe.prototype, "onlyContainsCACerts", void 0);
11293
11293
  d([
11294
11294
  g({ type: Bh, context: 3, optional: !0, implicit: !0 })
11295
- ], Ve.prototype, "onlySomeReasons", void 0);
11295
+ ], qe.prototype, "onlySomeReasons", void 0);
11296
11296
  d([
11297
- g({ type: b.Boolean, context: 4, defaultValue: Ve.ONLY, implicit: !0 })
11298
- ], Ve.prototype, "indirectCRL", void 0);
11297
+ g({ type: b.Boolean, context: 4, defaultValue: qe.ONLY, implicit: !0 })
11298
+ ], qe.prototype, "indirectCRL", void 0);
11299
11299
  d([
11300
- g({ type: b.Boolean, context: 5, defaultValue: Ve.ONLY, implicit: !0 })
11301
- ], Ve.prototype, "onlyContainsAttributeCerts", void 0);
11300
+ g({ type: b.Boolean, context: 5, defaultValue: qe.ONLY, implicit: !0 })
11301
+ ], qe.prototype, "onlyContainsAttributeCerts", void 0);
11302
11302
  var Rr;
11303
11303
  (function(t) {
11304
11304
  t[t.unspecified = 0] = "unspecified", t[t.keyCompromise = 1] = "keyCompromise", t[t.cACompromise = 2] = "cACompromise", t[t.affiliationChanged = 3] = "affiliationChanged", t[t.superseded = 4] = "superseded", t[t.cessationOfOperation = 5] = "cessationOfOperation", t[t.certificateHold = 6] = "certificateHold", t[t.removeFromCRL = 8] = "removeFromCRL", t[t.privilegeWithdrawn = 9] = "privilegeWithdrawn", t[t.aACompromise = 10] = "aACompromise";
@@ -11354,7 +11354,7 @@ Wa = d([
11354
11354
  L({ type: P.Choice })
11355
11355
  ], Wa);
11356
11356
  var Ga;
11357
- let cd = Ga = class extends Me {
11357
+ let cd = Ga = class extends De {
11358
11358
  constructor(e) {
11359
11359
  super(e), Object.setPrototypeOf(this, Ga.prototype);
11360
11360
  }
@@ -11455,7 +11455,7 @@ ld = Za = d([
11455
11455
  ], ld);
11456
11456
  var Ya;
11457
11457
  const Uh = `${on}.17`;
11458
- let Xa = Ya = class extends Me {
11458
+ let Xa = Ya = class extends De {
11459
11459
  constructor(e) {
11460
11460
  super(e), Object.setPrototypeOf(this, Ya.prototype);
11461
11461
  }
@@ -11903,11 +11903,11 @@ d([
11903
11903
  ], vo.prototype, "permitUnSpecified", void 0);
11904
11904
  class Rn {
11905
11905
  constructor(e = {}) {
11906
- this.issuer = new Me(), this.serial = new ArrayBuffer(0), this.issuerUID = new ArrayBuffer(0), Object.assign(this, e);
11906
+ this.issuer = new De(), this.serial = new ArrayBuffer(0), this.issuerUID = new ArrayBuffer(0), Object.assign(this, e);
11907
11907
  }
11908
11908
  }
11909
11909
  d([
11910
- g({ type: Me })
11910
+ g({ type: De })
11911
11911
  ], Rn.prototype, "issuer", void 0);
11912
11912
  d([
11913
11913
  g({ type: b.Integer, converter: ve })
@@ -11942,7 +11942,7 @@ class wo {
11942
11942
  }
11943
11943
  }
11944
11944
  d([
11945
- g({ type: Me, optional: !0 })
11945
+ g({ type: De, optional: !0 })
11946
11946
  ], wo.prototype, "issuerName", void 0);
11947
11947
  d([
11948
11948
  g({ type: Rn, context: 0, implicit: !0, optional: !0 })
@@ -11984,7 +11984,7 @@ d([
11984
11984
  g({ type: Rn, implicit: !0, context: 0, optional: !0 })
11985
11985
  ], pi.prototype, "baseCertificateID", void 0);
11986
11986
  d([
11987
- g({ type: Me, implicit: !0, context: 1, optional: !0 })
11987
+ g({ type: De, implicit: !0, context: 1, optional: !0 })
11988
11988
  ], pi.prototype, "entityName", void 0);
11989
11989
  d([
11990
11990
  g({ type: Ln, implicit: !0, context: 2, optional: !0 })
@@ -12090,7 +12090,7 @@ class Fh {
12090
12090
  }
12091
12091
  }
12092
12092
  d([
12093
- g({ type: Me, implicit: !0, context: 0, optional: !0 })
12093
+ g({ type: De, implicit: !0, context: 0, optional: !0 })
12094
12094
  ], Fh.prototype, "policyAuthority", void 0);
12095
12095
  d([
12096
12096
  g({ type: xo, repeated: "sequence" })
@@ -12150,7 +12150,7 @@ class Hh {
12150
12150
  }
12151
12151
  }
12152
12152
  d([
12153
- g({ type: Me, implicit: !0, context: 0, optional: !0 })
12153
+ g({ type: De, implicit: !0, context: 0, optional: !0 })
12154
12154
  ], Hh.prototype, "roleAuthority", void 0);
12155
12155
  d([
12156
12156
  g({ type: ie, implicit: !0, context: 1 })
@@ -12718,7 +12718,7 @@ d([
12718
12718
  d([
12719
12719
  g({ type: b.Integer, converter: ve })
12720
12720
  ], Ss.prototype, "s", void 0);
12721
- const Je = "1.2.840.113549.1.1", Nn = `${Je}.1`, dv = `${Je}.7`, pv = `${Je}.9`, Ur = `${Je}.10`, fv = `${Je}.2`, hv = `${Je}.4`, As = `${Je}.5`, gv = `${Je}.14`, vc = `${Je}.11`, Es = `${Je}.12`, Is = `${Je}.13`, Wh = `${Je}.15`, Gh = `${Je}.16`, Ns = "1.3.14.3.2.26", Jh = "2.16.840.1.101.3.4.2.4", Cs = "2.16.840.1.101.3.4.2.1", js = "2.16.840.1.101.3.4.2.2", $s = "2.16.840.1.101.3.4.2.3", mv = "2.16.840.1.101.3.4.2.5", _v = "2.16.840.1.101.3.4.2.6", yv = "1.2.840.113549.2.2", vv = "1.2.840.113549.2.5", jo = `${Je}.8`;
12721
+ const Ze = "1.2.840.113549.1.1", Nn = `${Ze}.1`, dv = `${Ze}.7`, pv = `${Ze}.9`, Ur = `${Ze}.10`, fv = `${Ze}.2`, hv = `${Ze}.4`, As = `${Ze}.5`, gv = `${Ze}.14`, vc = `${Ze}.11`, Es = `${Ze}.12`, Is = `${Ze}.13`, Wh = `${Ze}.15`, Gh = `${Ze}.16`, Ns = "1.3.14.3.2.26", Jh = "2.16.840.1.101.3.4.2.4", Cs = "2.16.840.1.101.3.4.2.1", js = "2.16.840.1.101.3.4.2.2", $s = "2.16.840.1.101.3.4.2.3", mv = "2.16.840.1.101.3.4.2.5", _v = "2.16.840.1.101.3.4.2.6", yv = "1.2.840.113549.2.2", vv = "1.2.840.113549.2.5", jo = `${Ze}.8`;
12722
12722
  function je(t) {
12723
12723
  return new K({ algorithm: t, parameters: null });
12724
12724
  }
@@ -12877,7 +12877,7 @@ var kc;
12877
12877
  (function(t) {
12878
12878
  t[t.Transient = 0] = "Transient", t[t.Singleton = 1] = "Singleton", t[t.ResolutionScoped = 2] = "ResolutionScoped", t[t.ContainerScoped = 3] = "ContainerScoped";
12879
12879
  })(kc || (kc = {}));
12880
- const He = kc;
12880
+ const Ke = kc;
12881
12881
  /*! *****************************************************************************
12882
12882
  Copyright (c) Microsoft Corporation.
12883
12883
 
@@ -13173,7 +13173,7 @@ var Ov = function(t) {
13173
13173
  this.parent = e, this._registry = new Iv(), this.interceptors = new Tv(), this.disposed = !1, this.disposables = /* @__PURE__ */ new Set();
13174
13174
  }
13175
13175
  return t.prototype.register = function(e, n, r) {
13176
- r === void 0 && (r = { lifecycle: He.Transient }), this.ensureNotDisposed();
13176
+ r === void 0 && (r = { lifecycle: Ke.Transient }), this.ensureNotDisposed();
13177
13177
  var i;
13178
13178
  if (Ev(n) ? i = n : i = { useClass: n }, qi(i))
13179
13179
  for (var s = [e], o = i; o != null; ) {
@@ -13184,8 +13184,8 @@ var Ov = function(t) {
13184
13184
  var l = this._registry.get(c);
13185
13185
  l && qi(l.provider) ? o = l.provider : o = null;
13186
13186
  }
13187
- if ((r.lifecycle === He.Singleton || r.lifecycle == He.ContainerScoped || r.lifecycle == He.ResolutionScoped) && (Mi(i) || Sc(i)))
13188
- throw new Error('Cannot use lifecycle "' + He[r.lifecycle] + '" with ValueProviders or FactoryProviders');
13187
+ if ((r.lifecycle === Ke.Singleton || r.lifecycle == Ke.ContainerScoped || r.lifecycle == Ke.ResolutionScoped) && (Mi(i) || Sc(i)))
13188
+ throw new Error('Cannot use lifecycle "' + Ke[r.lifecycle] + '" with ValueProviders or FactoryProviders');
13189
13189
  return this._registry.set(e, { provider: i, options: r }), this;
13190
13190
  }, t.prototype.registerType = function(e, n) {
13191
13191
  return this.ensureNotDisposed(), zn(n) ? this.register(e, {
@@ -13202,17 +13202,17 @@ var Ov = function(t) {
13202
13202
  if (zn(n))
13203
13203
  return this.register(e, {
13204
13204
  useToken: n
13205
- }, { lifecycle: He.Singleton });
13205
+ }, { lifecycle: Ke.Singleton });
13206
13206
  if (n)
13207
13207
  return this.register(e, {
13208
13208
  useClass: n
13209
- }, { lifecycle: He.Singleton });
13209
+ }, { lifecycle: Ke.Singleton });
13210
13210
  throw new Error('Cannot register a type name as a singleton without a "to" token');
13211
13211
  }
13212
13212
  var r = e;
13213
13213
  return n && !zn(n) && (r = n), this.register(e, {
13214
13214
  useClass: r
13215
- }, { lifecycle: He.Singleton });
13215
+ }, { lifecycle: Ke.Singleton });
13216
13216
  }, t.prototype.resolve = function(e, n) {
13217
13217
  n === void 0 && (n = new wd()), this.ensureNotDisposed();
13218
13218
  var r = this.getRegistration(e);
@@ -13268,10 +13268,10 @@ var Ov = function(t) {
13268
13268
  this.interceptors.postResolution.setAll(e, o);
13269
13269
  }
13270
13270
  }, t.prototype.resolveRegistration = function(e, n) {
13271
- if (this.ensureNotDisposed(), e.options.lifecycle === He.ResolutionScoped && n.scopedResolutions.has(e))
13271
+ if (this.ensureNotDisposed(), e.options.lifecycle === Ke.ResolutionScoped && n.scopedResolutions.has(e))
13272
13272
  return n.scopedResolutions.get(e);
13273
- var r = e.options.lifecycle === He.Singleton, i = e.options.lifecycle === He.ContainerScoped, s = r || i, o;
13274
- return Mi(e.provider) ? o = e.provider.useValue : qi(e.provider) ? o = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, n)) : this.resolve(e.provider.useToken, n) : Xh(e.provider) ? o = s ? e.instance || (e.instance = this.construct(e.provider.useClass, n)) : this.construct(e.provider.useClass, n) : Sc(e.provider) ? o = e.provider.useFactory(this) : o = this.construct(e.provider, n), e.options.lifecycle === He.ResolutionScoped && n.scopedResolutions.set(e, o), o;
13273
+ var r = e.options.lifecycle === Ke.Singleton, i = e.options.lifecycle === Ke.ContainerScoped, s = r || i, o;
13274
+ return Mi(e.provider) ? o = e.provider.useValue : qi(e.provider) ? o = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, n)) : this.resolve(e.provider.useToken, n) : Xh(e.provider) ? o = s ? e.instance || (e.instance = this.construct(e.provider.useClass, n)) : this.construct(e.provider.useClass, n) : Sc(e.provider) ? o = e.provider.useFactory(this) : o = this.construct(e.provider, n), e.options.lifecycle === Ke.ResolutionScoped && n.scopedResolutions.set(e, o), o;
13275
13275
  }, t.prototype.resolveAll = function(e, n) {
13276
13276
  var r = this;
13277
13277
  n === void 0 && (n = new wd()), this.ensureNotDisposed();
@@ -13320,9 +13320,9 @@ var Ov = function(t) {
13320
13320
  var o = Os(s.value, 2), c = o[0], l = o[1];
13321
13321
  l.some(function(u) {
13322
13322
  var p = u.options;
13323
- return p.lifecycle === He.ContainerScoped;
13323
+ return p.lifecycle === Ke.ContainerScoped;
13324
13324
  }) && r._registry.setAll(c, l.map(function(u) {
13325
- return u.options.lifecycle === He.ContainerScoped ? {
13325
+ return u.options.lifecycle === Ke.ContainerScoped ? {
13326
13326
  provider: u.provider,
13327
13327
  options: u.options
13328
13328
  } : u;
@@ -13871,7 +13871,7 @@ class Rv {
13871
13871
  const $n = "crypto.algorithmProvider";
13872
13872
  Ue.registerSingleton($n, Rv);
13873
13873
  var zi;
13874
- const Ze = "1.3.36.3.3.2.8.1.1", Vd = `${Ze}.1`, qd = `${Ze}.2`, Md = `${Ze}.3`, zd = `${Ze}.4`, Dd = `${Ze}.5`, Fd = `${Ze}.6`, Hd = `${Ze}.7`, Kd = `${Ze}.8`, Wd = `${Ze}.9`, Gd = `${Ze}.10`, Jd = `${Ze}.11`, Zd = `${Ze}.12`, Yd = `${Ze}.13`, Xd = `${Ze}.14`, Qd = "brainpoolP160r1", ep = "brainpoolP160t1", tp = "brainpoolP192r1", np = "brainpoolP192t1", rp = "brainpoolP224r1", ip = "brainpoolP224t1", sp = "brainpoolP256r1", op = "brainpoolP256t1", ap = "brainpoolP320r1", cp = "brainpoolP320t1", lp = "brainpoolP384r1", up = "brainpoolP384t1", dp = "brainpoolP512r1", pp = "brainpoolP512t1", we = "ECDSA";
13874
+ const Ye = "1.3.36.3.3.2.8.1.1", Vd = `${Ye}.1`, qd = `${Ye}.2`, Md = `${Ye}.3`, zd = `${Ye}.4`, Dd = `${Ye}.5`, Fd = `${Ye}.6`, Hd = `${Ye}.7`, Kd = `${Ye}.8`, Wd = `${Ye}.9`, Gd = `${Ye}.10`, Jd = `${Ye}.11`, Zd = `${Ye}.12`, Yd = `${Ye}.13`, Xd = `${Ye}.14`, Qd = "brainpoolP160r1", ep = "brainpoolP160t1", tp = "brainpoolP192r1", np = "brainpoolP192t1", rp = "brainpoolP224r1", ip = "brainpoolP224t1", sp = "brainpoolP256r1", op = "brainpoolP256t1", ap = "brainpoolP320r1", cp = "brainpoolP320t1", lp = "brainpoolP384r1", up = "brainpoolP384t1", dp = "brainpoolP512r1", pp = "brainpoolP512t1", we = "ECDSA";
13875
13875
  let Yr = zi = class {
13876
13876
  toAsnAlgorithm(e) {
13877
13877
  switch (e.name.toLowerCase()) {
@@ -14266,19 +14266,19 @@ class dg {
14266
14266
  this.items[e] = n, this.items[n] = e;
14267
14267
  }
14268
14268
  }
14269
- const Ge = new dg();
14270
- Ge.register("CN", "2.5.4.3");
14271
- Ge.register("L", "2.5.4.7");
14272
- Ge.register("ST", "2.5.4.8");
14273
- Ge.register("O", "2.5.4.10");
14274
- Ge.register("OU", "2.5.4.11");
14275
- Ge.register("C", "2.5.4.6");
14276
- Ge.register("DC", "0.9.2342.19200300.100.1.25");
14277
- Ge.register("E", "1.2.840.113549.1.9.1");
14278
- Ge.register("G", "2.5.4.42");
14279
- Ge.register("I", "2.5.4.43");
14280
- Ge.register("SN", "2.5.4.4");
14281
- Ge.register("T", "2.5.4.12");
14269
+ const Je = new dg();
14270
+ Je.register("CN", "2.5.4.3");
14271
+ Je.register("L", "2.5.4.7");
14272
+ Je.register("ST", "2.5.4.8");
14273
+ Je.register("O", "2.5.4.10");
14274
+ Je.register("OU", "2.5.4.11");
14275
+ Je.register("C", "2.5.4.6");
14276
+ Je.register("DC", "0.9.2342.19200300.100.1.25");
14277
+ Je.register("E", "1.2.840.113549.1.9.1");
14278
+ Je.register("G", "2.5.4.42");
14279
+ Je.register("I", "2.5.4.43");
14280
+ Je.register("SN", "2.5.4.4");
14281
+ Je.register("T", "2.5.4.12");
14282
14282
  function qv(t, e) {
14283
14283
  return `\\${Z.ToHex(Z.FromUtf8String(e)).toUpperCase()}`;
14284
14284
  }
@@ -14305,14 +14305,14 @@ class ot {
14305
14305
  typeof e == "string" ? this.asn = this.fromString(e) : e instanceof Se ? this.asn = e : D.isBufferSource(e) ? this.asn = z.parse(e, Se) : this.asn = this.fromJSON(e);
14306
14306
  }
14307
14307
  getField(e) {
14308
- const n = this.extraNames.findId(e) || Ge.findId(e), r = [];
14308
+ const n = this.extraNames.findId(e) || Je.findId(e), r = [];
14309
14309
  for (const i of this.asn)
14310
14310
  for (const s of i)
14311
14311
  s.type === n && r.push(s.value.toString());
14312
14312
  return r;
14313
14313
  }
14314
14314
  getName(e) {
14315
- return this.extraNames.get(e) || Ge.get(e);
14315
+ return this.extraNames.get(e) || Je.get(e);
14316
14316
  }
14317
14317
  toString() {
14318
14318
  return this.asn.map((e) => e.map((n) => {
@@ -14522,7 +14522,7 @@ class Wt extends cn {
14522
14522
  class Xr extends cn {
14523
14523
  constructor(e) {
14524
14524
  let n;
14525
- if (e instanceof Me)
14525
+ if (e instanceof De)
14526
14526
  n = e;
14527
14527
  else if (Array.isArray(e)) {
14528
14528
  const r = [];
@@ -14533,9 +14533,9 @@ class Xr extends cn {
14533
14533
  const s = z.parse(new Wt(i.type, i.value).rawData, ie);
14534
14534
  r.push(s);
14535
14535
  }
14536
- n = new Me(r);
14536
+ n = new De(r);
14537
14537
  } else if (D.isBufferSource(e))
14538
- n = z.parse(e, Me);
14538
+ n = z.parse(e, De);
14539
14539
  else
14540
14540
  throw new Error("Cannot initialize GeneralNames. Incorrect incoming arguments");
14541
14541
  super(n);
@@ -14770,7 +14770,7 @@ class ei extends ut {
14770
14770
  const n = new mn({ keyIdentifier: new kl(Z.FromHex(e[0])) });
14771
14771
  super(La, e[1], z.serialize(n));
14772
14772
  } else {
14773
- const n = e[0], r = n.name instanceof Xr ? z.parse(n.name.rawData, Me) : n.name, i = new mn({
14773
+ const n = e[0], r = n.name instanceof Xr ? z.parse(n.name.rawData, De) : n.name, i = new mn({
14774
14774
  authorityCertIssuer: r,
14775
14775
  authorityCertSerialNumber: Z.FromHex(n.serialNumber)
14776
14776
  });
@@ -18579,8 +18579,26 @@ const cb = new ae().openapi(
18579
18579
  u.user_id
18580
18580
  );
18581
18581
  p && (t.set("user_id", p.user_id), t.set("connection", p.connection));
18582
+ const h = await t.env.data.refreshTokens.list(
18583
+ r.tenant.id,
18584
+ {
18585
+ q: `session_id=${l}`,
18586
+ page: 0,
18587
+ per_page: 100,
18588
+ include_totals: !1
18589
+ }
18590
+ );
18591
+ await Promise.all(
18592
+ h.refresh_tokens.map(
18593
+ (m) => t.env.data.refreshTokens.remove(
18594
+ r.tenant.id,
18595
+ m.id
18596
+ )
18597
+ )
18598
+ ), await t.env.data.sessions.update(r.tenant.id, l, {
18599
+ revoked_at: (/* @__PURE__ */ new Date()).toISOString()
18600
+ });
18582
18601
  }
18583
- await t.env.data.sessions.remove(r.tenant.id, l);
18584
18602
  }
18585
18603
  }
18586
18604
  const c = be(t, {
@@ -20125,10 +20143,10 @@ const $b = new ae().openapi(
20125
20143
  throw new N(400, {
20126
20144
  message: `Invalid redirect URI - ${ue.redirect_uri}`
20127
20145
  });
20128
- const De = ns(
20146
+ const He = ns(
20129
20147
  ee.tenant.id,
20130
20148
  t.req.header("cookie")
20131
- ), Fe = De ? await e.data.sessions.get(ee.tenant.id, De) : void 0;
20149
+ ), Me = He ? await e.data.sessions.get(ee.tenant.id, He) : void 0, Ve = Me && !Me.revoked_at ? Me : void 0;
20132
20150
  if (f == "none") {
20133
20151
  if (!p)
20134
20152
  throw new N(400, {
@@ -20136,7 +20154,7 @@ const $b = new ae().openapi(
20136
20154
  });
20137
20155
  return jb({
20138
20156
  ctx: t,
20139
- session: Fe || void 0,
20157
+ session: Ve || void 0,
20140
20158
  redirect_uri: i,
20141
20159
  state: o,
20142
20160
  response_type: p,
@@ -20159,7 +20177,7 @@ const $b = new ae().openapi(
20159
20177
  client: ee,
20160
20178
  auth0Client: S,
20161
20179
  authParams: ue,
20162
- session: Fe || void 0,
20180
+ session: Ve || void 0,
20163
20181
  connection: u,
20164
20182
  login_hint: j
20165
20183
  });
@@ -20777,7 +20795,7 @@ const s1 = (t) => {
20777
20795
  --text-on-primary: ${e.buttonTextColor};
20778
20796
  }
20779
20797
  `;
20780
- }, o1 = "https://assets.sesamy.com/images/login-bg.jpg", Ye = ({
20798
+ }, o1 = "https://assets.sesamy.com/images/login-bg.jpg", Xe = ({
20781
20799
  title: t,
20782
20800
  children: e,
20783
20801
  vendorSettings: n
@@ -21090,7 +21108,7 @@ const s1 = (t) => {
21090
21108
  impersonation: s
21091
21109
  }) => {
21092
21110
  const o = i.connections.map(({ name: m }) => m), c = o.includes("facebook"), l = o.includes("google-oauth2"), u = o.includes("apple"), p = o.includes("vipps"), h = c || l || u || p;
21093
- return /* @__PURE__ */ y(Ye, { title: R.t("welcome"), vendorSettings: e, children: [
21111
+ return /* @__PURE__ */ y(Xe, { title: R.t("welcome"), vendorSettings: e, children: [
21094
21112
  /* @__PURE__ */ y("div", { className: "mb-4 text-lg font-medium sm:text-2xl", children: R.t("welcome") }),
21095
21113
  /* @__PURE__ */ y("div", { className: "mb-8 text-gray-300", children: R.t("login_description") }),
21096
21114
  /* @__PURE__ */ y("div", { className: "flex flex-1 flex-col justify-center", children: [
@@ -21935,7 +21953,7 @@ const du = (t) => {
21935
21953
  state: r
21936
21954
  }), l = i.connections.map(({ name: u }) => u).includes("auth2");
21937
21955
  return /* @__PURE__ */ y(
21938
- Ye,
21956
+ Xe,
21939
21957
  {
21940
21958
  title: R.t("verify_your_email"),
21941
21959
  vendorSettings: e,
@@ -22122,7 +22140,7 @@ const du = (t) => {
22122
22140
  ), L1 = (t) => {
22123
22141
  const { vendorSettings: e, state: n } = t;
22124
22142
  return /* @__PURE__ */ y(
22125
- Ye,
22143
+ Xe,
22126
22144
  {
22127
22145
  title: R.t("unverified_email"),
22128
22146
  vendorSettings: e,
@@ -22143,7 +22161,7 @@ const du = (t) => {
22143
22161
  const { error: e, vendorSettings: n, email: r, state: i } = t, s = new URLSearchParams({
22144
22162
  state: i
22145
22163
  });
22146
- return /* @__PURE__ */ y(Ye, { title: R.t("enter_password"), vendorSettings: n, children: [
22164
+ return /* @__PURE__ */ y(Xe, { title: R.t("enter_password"), vendorSettings: n, children: [
22147
22165
  /* @__PURE__ */ y("div", { className: "mb-4 text-lg font-medium sm:text-2xl", children: R.t("enter_password") }),
22148
22166
  /* @__PURE__ */ y("div", { className: "mb-6 text-gray-300", children: R.t("enter_password_description") }),
22149
22167
  /* @__PURE__ */ y("div", { className: "flex flex-1 flex-col justify-center", children: [
@@ -22325,7 +22343,7 @@ const du = (t) => {
22325
22343
  ), jr = (t) => {
22326
22344
  const { state: e, error: n, vendorSettings: r, email: i, code: s } = t;
22327
22345
  return /* @__PURE__ */ y(
22328
- Ye,
22346
+ Xe,
22329
22347
  {
22330
22348
  title: R.t("create_account_title"),
22331
22349
  vendorSettings: r,
@@ -22375,7 +22393,7 @@ const du = (t) => {
22375
22393
  );
22376
22394
  }, pu = (t) => {
22377
22395
  const { message: e, vendorSettings: n, pageTitle: r, state: i } = t;
22378
- return /* @__PURE__ */ y(Ye, { title: "Login", vendorSettings: n, children: [
22396
+ return /* @__PURE__ */ y(Xe, { title: "Login", vendorSettings: n, children: [
22379
22397
  r ? /* @__PURE__ */ y("div", { className: "mb-6 text-gray-300", children: r }) : "",
22380
22398
  /* @__PURE__ */ y("div", { className: "flex flex-1 flex-col justify-center", children: e }),
22381
22399
  i ? /* @__PURE__ */ y(Ct, { state: i }) : ""
@@ -22566,7 +22584,7 @@ const du = (t) => {
22566
22584
  ), $r = (t) => {
22567
22585
  const { error: e, vendorSettings: n, email: r } = t;
22568
22586
  return /* @__PURE__ */ y(
22569
- Ye,
22587
+ Xe,
22570
22588
  {
22571
22589
  title: R.t("reset_password_title"),
22572
22590
  vendorSettings: n,
@@ -22758,7 +22776,7 @@ const du = (t) => {
22758
22776
  ), M1 = (t) => {
22759
22777
  const { error: e, vendorSettings: n, email: r, state: i } = t;
22760
22778
  return /* @__PURE__ */ y(
22761
- Ye,
22779
+ Xe,
22762
22780
  {
22763
22781
  title: R.t("forgot_password_title"),
22764
22782
  vendorSettings: n,
@@ -22788,7 +22806,7 @@ const du = (t) => {
22788
22806
  );
22789
22807
  }, z1 = (t) => {
22790
22808
  const { vendorSettings: e, state: n } = t;
22791
- return /* @__PURE__ */ y(Ye, { title: "Login", vendorSettings: e, children: [
22809
+ return /* @__PURE__ */ y(Xe, { title: "Login", vendorSettings: e, children: [
22792
22810
  /* @__PURE__ */ y("div", { className: "flex flex-1 flex-col justify-center", children: [
22793
22811
  /* @__PURE__ */ y("div", { children: R.t("forgot_password_email_sent") }),
22794
22812
  /* @__PURE__ */ y("div", { className: "my-4 flex space-x-2 text-sm text-[#B2B2B2]", children: [
@@ -22867,7 +22885,7 @@ const du = (t) => {
22867
22885
  )
22868
22886
  );
22869
22887
  }
22870
- ), F1 = ({ vendorSettings: t, state: e, user: n }) => /* @__PURE__ */ y(Ye, { title: oe("check_email_title"), vendorSettings: t, children: /* @__PURE__ */ y("div", { className: "flex flex-1 flex-col justify-center", children: [
22888
+ ), F1 = ({ vendorSettings: t, state: e, user: n }) => /* @__PURE__ */ y(Xe, { title: oe("check_email_title"), vendorSettings: t, children: /* @__PURE__ */ y("div", { className: "flex flex-1 flex-col justify-center", children: [
22871
22889
  /* @__PURE__ */ y("div", { className: "mb-8 text-gray-700 dark:text-gray-300", children: [
22872
22890
  /* @__PURE__ */ y(
22873
22891
  du,
@@ -22978,7 +22996,7 @@ const du = (t) => {
22978
22996
  ), K1 = (t) => {
22979
22997
  const { vendorSettings: e, email: n, state: r } = t;
22980
22998
  return /* @__PURE__ */ y(
22981
- Ye,
22999
+ Xe,
22982
23000
  {
22983
23001
  title: R.t("create_password_account_title"),
22984
23002
  vendorSettings: e,
@@ -23077,7 +23095,7 @@ const du = (t) => {
23077
23095
  ), G1 = (t) => {
23078
23096
  const { redirectUrl: e, vendorSettings: n } = t;
23079
23097
  return /* @__PURE__ */ y(
23080
- Ye,
23098
+ Xe,
23081
23099
  {
23082
23100
  title: R.t("invalid_session_title"),
23083
23101
  vendorSettings: n,
@@ -23166,7 +23184,7 @@ const du = (t) => {
23166
23184
  state: e
23167
23185
  });
23168
23186
  return /* @__PURE__ */ y(
23169
- Ye,
23187
+ Xe,
23170
23188
  {
23171
23189
  title: R.t("email_validated"),
23172
23190
  vendorSettings: t,
@@ -23255,7 +23273,7 @@ const du = (t) => {
23255
23273
  ), Q1 = (t) => {
23256
23274
  const { vendorSettings: e, email: n, state: r } = t;
23257
23275
  return /* @__PURE__ */ y(
23258
- Ye,
23276
+ Xe,
23259
23277
  {
23260
23278
  title: R.t("email_verification_for_signup_sent_title"),
23261
23279
  vendorSettings: e,