node-opcua-crypto-web 5.4.0 → 5.6.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/index_web.js CHANGED
@@ -232,7 +232,7 @@ var require_buffer = __commonJS({
232
232
  "../../node_modules/buffer/index.js"(exports2) {
233
233
  "use strict";
234
234
  init_inject_buffer();
235
- var base64 = require_base64_js();
235
+ var base642 = require_base64_js();
236
236
  var ieee754 = require_ieee754();
237
237
  var customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
238
238
  exports2.Buffer = Buffer2;
@@ -931,9 +931,9 @@ var require_buffer = __commonJS({
931
931
  };
932
932
  function base64Slice(buf, start, end) {
933
933
  if (start === 0 && end === buf.length) {
934
- return base64.fromByteArray(buf);
934
+ return base642.fromByteArray(buf);
935
935
  } else {
936
- return base64.fromByteArray(buf.slice(start, end));
936
+ return base642.fromByteArray(buf.slice(start, end));
937
937
  }
938
938
  }
939
939
  function utf8Slice(buf, start, end) {
@@ -1784,7 +1784,7 @@ var require_buffer = __commonJS({
1784
1784
  return byteArray;
1785
1785
  }
1786
1786
  function base64ToBytes(str) {
1787
- return base64.toByteArray(base64clean(str));
1787
+ return base642.toByteArray(base64clean(str));
1788
1788
  }
1789
1789
  function blitBuffer(src, dst, offset, length) {
1790
1790
  let i;
@@ -19813,9 +19813,9 @@ var require_dh = __commonJS({
19813
19813
  var primeCache = {};
19814
19814
  function checkPrime(prime, generator) {
19815
19815
  var gen = generator.toString("hex");
19816
- var hex = [gen, prime.toString(16)].join("_");
19817
- if (hex in primeCache) {
19818
- return primeCache[hex];
19816
+ var hex2 = [gen, prime.toString(16)].join("_");
19817
+ if (hex2 in primeCache) {
19818
+ return primeCache[hex2];
19819
19819
  }
19820
19820
  var error = 0;
19821
19821
  if (prime.isEven() || !primes.simpleSieve || !primes.fermatTest(prime) || !millerRabin.test(prime)) {
@@ -19825,7 +19825,7 @@ var require_dh = __commonJS({
19825
19825
  } else {
19826
19826
  error += 4;
19827
19827
  }
19828
- primeCache[hex] = error;
19828
+ primeCache[hex2] = error;
19829
19829
  return error;
19830
19830
  }
19831
19831
  if (!millerRabin.test(prime.shrn(1))) {
@@ -19847,7 +19847,7 @@ var require_dh = __commonJS({
19847
19847
  default:
19848
19848
  error += 4;
19849
19849
  }
19850
- primeCache[hex] = error;
19850
+ primeCache[hex2] = error;
19851
19851
  return error;
19852
19852
  }
19853
19853
  function DH(prime, generator, malleable) {
@@ -25823,7 +25823,7 @@ var require_utils2 = __commonJS({
25823
25823
  return res;
25824
25824
  }
25825
25825
  utils.toHex = toHex;
25826
- utils.encode = function encode(arr, enc) {
25826
+ utils.encode = function encode3(arr, enc) {
25827
25827
  if (enc === "hex")
25828
25828
  return toHex(arr);
25829
25829
  else
@@ -26197,7 +26197,7 @@ var require_base = __commonJS({
26197
26197
  return [this.getY().isEven() ? 2 : 3].concat(x);
26198
26198
  return [4].concat(x, this.getY().toArray("be", len));
26199
26199
  };
26200
- BasePoint.prototype.encode = function encode(enc, compact) {
26200
+ BasePoint.prototype.encode = function encode3(enc, compact) {
26201
26201
  return utils.encode(this._encode(compact), enc);
26202
26202
  };
26203
26203
  BasePoint.prototype.precompute = function precompute(power) {
@@ -27078,7 +27078,7 @@ var require_mont = __commonJS({
27078
27078
  Point.prototype.eq = function eq(other) {
27079
27079
  return this.getX().cmp(other.getX()) === 0;
27080
27080
  };
27081
- Point.prototype.normalize = function normalize() {
27081
+ Point.prototype.normalize = function normalize2() {
27082
27082
  this.x = this.x.redMul(this.z.redInvm());
27083
27083
  this.z = this.curve.one;
27084
27084
  return this;
@@ -27341,7 +27341,7 @@ var require_edwards = __commonJS({
27341
27341
  Point.prototype.jmulAdd = function jmulAdd(k1, p, k2) {
27342
27342
  return this.curve._wnafMulAdd(1, [this, p], [k1, k2], 2, true);
27343
27343
  };
27344
- Point.prototype.normalize = function normalize() {
27344
+ Point.prototype.normalize = function normalize2() {
27345
27345
  if (this.zOne)
27346
27346
  return this;
27347
27347
  var zi = this.z.redInvm();
@@ -33798,7 +33798,7 @@ var require_api = __commonJS({
33798
33798
  this.decoders[enc] = this._createNamed(asn12.decoders[enc]);
33799
33799
  return this.decoders[enc];
33800
33800
  };
33801
- Entity.prototype.decode = function decode(data, enc, options) {
33801
+ Entity.prototype.decode = function decode3(data, enc, options) {
33802
33802
  return this._getDecoder(enc).decode(data, options);
33803
33803
  };
33804
33804
  Entity.prototype._getEncoder = function _getEncoder(enc) {
@@ -33807,7 +33807,7 @@ var require_api = __commonJS({
33807
33807
  this.encoders[enc] = this._createNamed(asn12.encoders[enc]);
33808
33808
  return this.encoders[enc];
33809
33809
  };
33810
- Entity.prototype.encode = function encode(data, enc, reporter) {
33810
+ Entity.prototype.encode = function encode3(data, enc, reporter) {
33811
33811
  return this._getEncoder(enc).encode(data, reporter);
33812
33812
  };
33813
33813
  }
@@ -34271,7 +34271,7 @@ var require_node = __commonJS({
34271
34271
  state.contains = item;
34272
34272
  return this;
34273
34273
  };
34274
- Node.prototype._decode = function decode(input, options) {
34274
+ Node.prototype._decode = function decode3(input, options) {
34275
34275
  var state = this._baseState;
34276
34276
  if (state.parent === null)
34277
34277
  return input.wrapResult(state.children[0]._decode(input, options));
@@ -34427,7 +34427,7 @@ var require_node = __commonJS({
34427
34427
  Node.prototype._createEncoderBuffer = function createEncoderBuffer(data) {
34428
34428
  return new EncoderBuffer(data, this.reporter);
34429
34429
  };
34430
- Node.prototype._encode = function encode(data, reporter, parent) {
34430
+ Node.prototype._encode = function encode3(data, reporter, parent) {
34431
34431
  var state = this._baseState;
34432
34432
  if (state["default"] !== null && state["default"] === data)
34433
34433
  return;
@@ -34438,7 +34438,7 @@ var require_node = __commonJS({
34438
34438
  return;
34439
34439
  return result;
34440
34440
  };
34441
- Node.prototype._encodeValue = function encode(data, reporter, parent) {
34441
+ Node.prototype._encodeValue = function encode3(data, reporter, parent) {
34442
34442
  var state = this._baseState;
34443
34443
  if (state.parent === null)
34444
34444
  return state.children[0]._encode(data, reporter || new Reporter());
@@ -34646,7 +34646,7 @@ var require_der2 = __commonJS({
34646
34646
  this.tree._init(entity.body);
34647
34647
  }
34648
34648
  module2.exports = DERDecoder;
34649
- DERDecoder.prototype.decode = function decode(data, options) {
34649
+ DERDecoder.prototype.decode = function decode3(data, options) {
34650
34650
  if (!(data instanceof base.DecoderBuffer))
34651
34651
  data = new base.DecoderBuffer(data, options);
34652
34652
  return this.tree._decode(data, options);
@@ -34906,7 +34906,7 @@ var require_pem = __commonJS({
34906
34906
  }
34907
34907
  inherits(PEMDecoder, DERDecoder);
34908
34908
  module2.exports = PEMDecoder;
34909
- PEMDecoder.prototype.decode = function decode(data, options) {
34909
+ PEMDecoder.prototype.decode = function decode3(data, options) {
34910
34910
  var lines = data.toString().split(/[\r\n]+/g);
34911
34911
  var label = options.label.toUpperCase();
34912
34912
  var re = /^-----(BEGIN|END) ([^-]+)-----$/;
@@ -34931,9 +34931,9 @@ var require_pem = __commonJS({
34931
34931
  }
34932
34932
  if (start === -1 || end === -1)
34933
34933
  throw new Error("PEM section not found for: " + label);
34934
- var base64 = lines.slice(start + 1, end).join("");
34935
- base64.replace(/[^a-z0-9\+\/=]+/gi, "");
34936
- var input = new Buffer2(base64, "base64");
34934
+ var base642 = lines.slice(start + 1, end).join("");
34935
+ base642.replace(/[^a-z0-9\+\/=]+/gi, "");
34936
+ var input = new Buffer2(base642, "base64");
34937
34937
  return DERDecoder.prototype.decode.call(this, input, options);
34938
34938
  };
34939
34939
  }
@@ -34966,7 +34966,7 @@ var require_der3 = __commonJS({
34966
34966
  this.tree._init(entity.body);
34967
34967
  }
34968
34968
  module2.exports = DEREncoder;
34969
- DEREncoder.prototype.encode = function encode(data, reporter) {
34969
+ DEREncoder.prototype.encode = function encode3(data, reporter) {
34970
34970
  return this.tree._encode(data, reporter).join();
34971
34971
  };
34972
34972
  function DERNode(parent) {
@@ -35193,7 +35193,7 @@ var require_pem2 = __commonJS({
35193
35193
  }
35194
35194
  inherits(PEMEncoder, DEREncoder);
35195
35195
  module2.exports = PEMEncoder;
35196
- PEMEncoder.prototype.encode = function encode(data, options) {
35196
+ PEMEncoder.prototype.encode = function encode3(data, options) {
35197
35197
  var buf = DEREncoder.prototype.encode.call(this, data);
35198
35198
  var p = buf.toString("base64");
35199
35199
  var out = ["-----BEGIN " + options.label + "-----"];
@@ -38804,9 +38804,9 @@ var require_browser11 = __commonJS({
38804
38804
  this.curve = new elliptic.ec(this.curveType.name);
38805
38805
  this.keys = void 0;
38806
38806
  }
38807
- ECDH.prototype.generateKeys = function(enc, format) {
38807
+ ECDH.prototype.generateKeys = function(enc, format2) {
38808
38808
  this.keys = this.curve.genKeyPair();
38809
- return this.getPublicKey(enc, format);
38809
+ return this.getPublicKey(enc, format2);
38810
38810
  };
38811
38811
  ECDH.prototype.computeSecret = function(other, inenc, enc) {
38812
38812
  inenc = inenc || "utf8";
@@ -38817,9 +38817,9 @@ var require_browser11 = __commonJS({
38817
38817
  var out = otherPub.mul(this.keys.getPrivate()).getX();
38818
38818
  return formatReturnValue(out, enc, this.curveType.byteLength);
38819
38819
  };
38820
- ECDH.prototype.getPublicKey = function(enc, format) {
38821
- var key = this.keys.getPublic(format === "compressed", true);
38822
- if (format === "hybrid") {
38820
+ ECDH.prototype.getPublicKey = function(enc, format2) {
38821
+ var key = this.keys.getPublic(format2 === "compressed", true);
38822
+ if (format2 === "hybrid") {
38823
38823
  if (key[key.length - 1] % 2) {
38824
38824
  key[0] = 7;
38825
38825
  } else {
@@ -42184,15 +42184,15 @@ function skipChildren(buf, offset, count) {
42184
42184
  return offset;
42185
42185
  }
42186
42186
  function pemToDer(pem) {
42187
- const base64 = pem.replace(/-----[^-]+-----/g, "").replace(/\s+/g, "");
42188
- return import_buffer.Buffer.from(base64, "base64");
42187
+ const base642 = pem.replace(/-----[^-]+-----/g, "").replace(/\s+/g, "");
42188
+ return import_buffer.Buffer.from(base642, "base64");
42189
42189
  }
42190
42190
  function derToPem(der, label) {
42191
- const base64 = (import_buffer.Buffer.isBuffer(der) ? der : import_buffer.Buffer.from(der)).toString("base64");
42191
+ const base642 = (import_buffer.Buffer.isBuffer(der) ? der : import_buffer.Buffer.from(der)).toString("base64");
42192
42192
  let pem = `-----BEGIN ${label}-----
42193
42193
  `;
42194
- for (let i = 0; i < base64.length; i += 64) {
42195
- pem += base64.substring(i, i + 64) + "\n";
42194
+ for (let i = 0; i < base642.length; i += 64) {
42195
+ pem += base642.substring(i, i + 64) + "\n";
42196
42196
  }
42197
42197
  pem += `-----END ${label}-----`;
42198
42198
  return pem;
@@ -43358,7 +43358,7 @@ var require_implementation4 = __commonJS({
43358
43358
  var numberIsNaN = function(value) {
43359
43359
  return value !== value;
43360
43360
  };
43361
- module2.exports = function is(a, b) {
43361
+ module2.exports = function is2(a, b) {
43362
43362
  if (a === 0 && b === 0) {
43363
43363
  return 1 / a === 1 / b;
43364
43364
  }
@@ -45822,7 +45822,7 @@ var require_build = __commonJS({
45822
45822
  return res;
45823
45823
  }
45824
45824
  };
45825
- var Convert5 = class _Convert {
45825
+ var Convert3 = class _Convert {
45826
45826
  static isHex(data) {
45827
45827
  return typeof data === STRING_TYPE && HEX_REGEX.test(data);
45828
45828
  }
@@ -45887,8 +45887,8 @@ var require_build = __commonJS({
45887
45887
  return import_buffer.Buffer.from(buf).toString("base64");
45888
45888
  }
45889
45889
  }
45890
- static FromBase64(base64) {
45891
- const formatted = this.formatString(base64);
45890
+ static FromBase64(base642) {
45891
+ const formatted = this.formatString(base642);
45892
45892
  if (!formatted) {
45893
45893
  return new ArrayBuffer(0);
45894
45894
  }
@@ -45999,20 +45999,20 @@ var require_build = __commonJS({
45999
45999
  static FromUtf16String(text, littleEndian = false) {
46000
46000
  return Utf16Converter.fromString(text, littleEndian);
46001
46001
  }
46002
- static Base64Padding(base64) {
46003
- const padCount = 4 - base64.length % 4;
46002
+ static Base64Padding(base642) {
46003
+ const padCount = 4 - base642.length % 4;
46004
46004
  if (padCount < 4) {
46005
46005
  for (let i = 0; i < padCount; i++) {
46006
- base64 += "=";
46006
+ base642 += "=";
46007
46007
  }
46008
46008
  }
46009
- return base64;
46009
+ return base642;
46010
46010
  }
46011
46011
  static formatString(data) {
46012
46012
  return (data === null || data === void 0 ? void 0 : data.replace(/[\n\r\t ]/g, "")) || "";
46013
46013
  }
46014
46014
  };
46015
- Convert5.DEFAULT_UTF8_ENCODING = "utf8";
46015
+ Convert3.DEFAULT_UTF8_ENCODING = "utf8";
46016
46016
  function assign(target, ...sources) {
46017
46017
  const res = arguments[0];
46018
46018
  for (let i = 1; i < arguments.length; i++) {
@@ -46034,7 +46034,7 @@ var require_build = __commonJS({
46034
46034
  });
46035
46035
  return res.buffer;
46036
46036
  }
46037
- function isEqual3(bytes1, bytes2) {
46037
+ function isEqual2(bytes1, bytes2) {
46038
46038
  if (!(bytes1 && bytes2)) {
46039
46039
  return false;
46040
46040
  }
@@ -46051,10 +46051,10 @@ var require_build = __commonJS({
46051
46051
  return true;
46052
46052
  }
46053
46053
  exports2.BufferSourceConverter = BufferSourceConverter3;
46054
- exports2.Convert = Convert5;
46054
+ exports2.Convert = Convert3;
46055
46055
  exports2.assign = assign;
46056
46056
  exports2.combine = combine2;
46057
- exports2.isEqual = isEqual3;
46057
+ exports2.isEqual = isEqual2;
46058
46058
  }
46059
46059
  });
46060
46060
 
@@ -46075,6 +46075,30 @@ function isKeyObject(mayBeKeyObject) {
46075
46075
  }
46076
46076
  return typeof mayBeKeyObject === "object" && typeof mayBeKeyObject.type === "string";
46077
46077
  }
46078
+ var PrivateKeyPassphraseRequiredError = class extends Error {
46079
+ constructor(message = "This private key is encrypted and requires a passphrase to be read") {
46080
+ super(message);
46081
+ this.name = "PrivateKeyPassphraseRequiredError";
46082
+ }
46083
+ };
46084
+ var PfxIntegrityError = class extends Error {
46085
+ constructor(message = "PFX integrity check failed: wrong password, or the file is corrupted or has been tampered with") {
46086
+ super(message);
46087
+ this.name = "PfxIntegrityError";
46088
+ }
46089
+ };
46090
+ var PfxMalformedError = class extends Error {
46091
+ constructor(message) {
46092
+ super(message);
46093
+ this.name = "PfxMalformedError";
46094
+ }
46095
+ };
46096
+ var Pkcs12UnsupportedAlgorithmError = class extends Error {
46097
+ constructor(message) {
46098
+ super(message);
46099
+ this.name = "Pkcs12UnsupportedAlgorithmError";
46100
+ }
46101
+ };
46078
46102
  var CertificatePurpose = /* @__PURE__ */ ((CertificatePurpose2) => {
46079
46103
  CertificatePurpose2[CertificatePurpose2["NotSpecified"] = 0] = "NotSpecified";
46080
46104
  CertificatePurpose2[CertificatePurpose2["ForCertificateAuthority"] = 1] = "ForCertificateAuthority";
@@ -46160,6 +46184,7 @@ var oid_map = {
46160
46184
  "1.3.6.1.4.1.311.10.3.1": { d: "1.3.6.1.4.1.311.10.3.1", c: "Signer of CTLs -- szOID_KP_CTL_USAGE_SIGNING" },
46161
46185
  "1.3.6.1.4.1.311.10.3.4": { d: "1.3.6.1.4.1.311.10.3.4", c: "szOID_EFS_RECOVERY (Encryption File System)" },
46162
46186
  "1.3.6.1.4.1.311.20.2.3": { d: "1.3.6.1.4.1.311.20.2.3", c: "id-on-personalData" },
46187
+ "1.3.6.1.5.5.7.1.1": { d: "authorityInfoAccess", c: "PKIX private extension", w: false },
46163
46188
  "1.3.6.1.5.5.7.3.17": { d: "1.3.6.1.5.5.7.3.17", c: "Internet Key Exchange (IKE)" },
46164
46189
  "1.3.6.1.5.5.7.3.1": { d: "serverAuth", c: "PKIX key purpose" },
46165
46190
  "1.3.6.1.5.5.7.3.2": { d: "clientAuth", c: "PKIX key purpose" },
@@ -46877,15 +46902,15 @@ var createFastUninitializedBuffer = import_buffer.Buffer.allocUnsafe ? import_bu
46877
46902
 
46878
46903
  // ../node-opcua-crypto/source/hexy.ts
46879
46904
  init_inject_buffer();
46880
- function hexy(buffer, { width, format } = {}) {
46905
+ function hexy(buffer, { width, format: format2 } = {}) {
46881
46906
  width = width || 80;
46882
- if (format === "twos") {
46907
+ if (format2 === "twos") {
46883
46908
  width = 26 * 3;
46884
46909
  }
46885
46910
  const regex = new RegExp(`.{1,${width}}`, "g");
46886
46911
  const regexTwos = new RegExp(`.{1,${2}}`, "g");
46887
46912
  let fullHex = buffer.toString("hex");
46888
- if (format === "twos") {
46913
+ if (format2 === "twos") {
46889
46914
  fullHex = fullHex.match(regexTwos)?.join(" ") || "";
46890
46915
  }
46891
46916
  return fullHex.match(regex)?.join("\n") || "";
@@ -47093,46 +47118,34 @@ init_inject_buffer();
47093
47118
  var import_node_assert3 = __toESM(require_assert(), 1);
47094
47119
  function readDirectoryName(buffer, block) {
47095
47120
  const set_blocks = readStruct(buffer, block);
47096
- const names2 = {};
47121
+ const entries = [];
47097
47122
  for (const set_block of set_blocks) {
47098
47123
  (0, import_node_assert3.default)(set_block.tag === 49);
47099
47124
  const blocks = readStruct(buffer, set_block);
47100
- (0, import_node_assert3.default)(blocks.length === 1);
47101
- (0, import_node_assert3.default)(blocks[0].tag === 48);
47102
- const sequenceBlock = readStruct(buffer, blocks[0]);
47103
- (0, import_node_assert3.default)(sequenceBlock.length === 2);
47104
- const type = readObjectIdentifier(buffer, sequenceBlock[0]);
47105
- names2[type.name] = readValue(buffer, sequenceBlock[1]);
47125
+ for (const attribute_block of blocks) {
47126
+ (0, import_node_assert3.default)(attribute_block.tag === 48);
47127
+ const sequenceBlock = readStruct(buffer, attribute_block);
47128
+ (0, import_node_assert3.default)(sequenceBlock.length === 2);
47129
+ const type = readObjectIdentifier(buffer, sequenceBlock[0]);
47130
+ const value = readValue(buffer, sequenceBlock[1]);
47131
+ entries.push({ oid: type.oid, name: type.name, value });
47132
+ }
47133
+ }
47134
+ const names2 = { entries };
47135
+ const asRecord = names2;
47136
+ for (const entry of entries) {
47137
+ asRecord[entry.name] = entry.value;
47138
+ if (entry.name === "organizationalUnitName") {
47139
+ asRecord.organizationUnitName = entry.value;
47140
+ }
47106
47141
  }
47107
47142
  return names2;
47108
47143
  }
47109
47144
 
47110
47145
  // ../node-opcua-crypto/source/crypto_explore_certificate.ts
47111
47146
  var doDebug = false;
47112
- function _readAttributeTypeAndValue(buffer, block) {
47113
- let inner_blocks = readStruct(buffer, block);
47114
- inner_blocks = readStruct(buffer, inner_blocks[0]);
47115
- const data = {
47116
- identifier: readObjectIdentifier(buffer, inner_blocks[0]).name,
47117
- value: readValue(buffer, inner_blocks[1])
47118
- };
47119
- const result = {};
47120
- for (const [key, value] of Object.entries(data)) {
47121
- result[key] = value;
47122
- }
47123
- return result;
47124
- }
47125
- function _readRelativeDistinguishedName(buffer, block) {
47126
- const inner_blocks = readStruct(buffer, block);
47127
- const data = inner_blocks.map((block2) => _readAttributeTypeAndValue(buffer, block2));
47128
- const result = {};
47129
- for (const e of data) {
47130
- result[e.identifier] = e.value;
47131
- }
47132
- return result;
47133
- }
47134
47147
  function _readName(buffer, block) {
47135
- return _readRelativeDistinguishedName(buffer, block);
47148
+ return readDirectoryName(buffer, block);
47136
47149
  }
47137
47150
  function _readValidity(buffer, block) {
47138
47151
  const inner_blocks = readStruct(buffer, block);
@@ -47255,6 +47268,43 @@ function _readSubjectAltNames(buffer) {
47255
47268
  const block_info = readTag(buffer, 0);
47256
47269
  return _readGeneralNames(buffer, block_info);
47257
47270
  }
47271
+ function _readCrlDistributionPoints(buffer) {
47272
+ const result = {};
47273
+ const outer = readTag(buffer, 0);
47274
+ for (const distributionPoint of readStruct(buffer, outer)) {
47275
+ for (const member of readStruct(buffer, distributionPoint)) {
47276
+ if ((member.tag & 31) !== 0) continue;
47277
+ for (const choice of readStruct(buffer, member)) {
47278
+ if ((choice.tag & 31) !== 0) continue;
47279
+ const names2 = _readGeneralNames(buffer, choice);
47280
+ for (const key of Object.keys(names2)) {
47281
+ result[key] = (result[key] || []).concat(names2[key]);
47282
+ }
47283
+ }
47284
+ }
47285
+ }
47286
+ return result;
47287
+ }
47288
+ var OID_AD_OCSP = "1.3.6.1.5.5.7.48.1";
47289
+ var OID_AD_CA_ISSUERS = "1.3.6.1.5.5.7.48.2";
47290
+ function _readAuthorityInformationAccess(buffer) {
47291
+ const result = {};
47292
+ const outer = readTag(buffer, 0);
47293
+ for (const accessDescription of readStruct(buffer, outer)) {
47294
+ const parts = readStruct(buffer, accessDescription);
47295
+ if (parts.length < 2 || parts[0].tag !== 6 /* OBJECT_IDENTIFIER */) continue;
47296
+ const accessMethod = readObjectIdentifier(buffer, parts[0]);
47297
+ const accessLocation = parts[1];
47298
+ if ((accessLocation.tag & 31) !== 6) continue;
47299
+ const uri = buffer.subarray(accessLocation.position, accessLocation.position + accessLocation.length).toString("ascii");
47300
+ if (accessMethod.oid === OID_AD_OCSP) {
47301
+ result.ocsp = (result.ocsp || []).concat(uri);
47302
+ } else if (accessMethod.oid === OID_AD_CA_ISSUERS) {
47303
+ result.caIssuers = (result.caIssuers || []).concat(uri);
47304
+ }
47305
+ }
47306
+ return result;
47307
+ }
47258
47308
  function readKeyUsage(_oid, buffer) {
47259
47309
  const block_info = readTag(buffer, 0);
47260
47310
  let b2 = 0;
@@ -47331,6 +47381,12 @@ function readExtension(buffer, block) {
47331
47381
  case "extKeyUsage":
47332
47382
  value = readExtKeyUsage(identifier.oid, buf);
47333
47383
  break;
47384
+ case "cRLDistributionPoints":
47385
+ value = _readCrlDistributionPoints(buf);
47386
+ break;
47387
+ case "authorityInfoAccess":
47388
+ value = _readAuthorityInformationAccess(buf);
47389
+ break;
47334
47390
  case "keyUsage":
47335
47391
  value = readKeyUsage(identifier.oid, buf);
47336
47392
  break;
@@ -49883,8 +49939,8 @@ var Integer = class extends BaseBlock {
49883
49939
  assertBigInt();
49884
49940
  const bigIntValue = BigInt(value);
49885
49941
  const writer = new ViewWriter();
49886
- const hex = bigIntValue.toString(16).replace(/^-/, "");
49887
- const view = new Uint8Array(pvtsutils.Convert.FromHex(hex));
49942
+ const hex2 = bigIntValue.toString(16).replace(/^-/, "");
49943
+ const view = new Uint8Array(pvtsutils.Convert.FromHex(hex2));
49888
49944
  if (bigIntValue < 0) {
49889
49945
  const first = new Uint8Array(view.length + (view[0] & 128 ? 1 : 0));
49890
49946
  first[0] |= 128;
@@ -51413,6 +51469,19 @@ init_inject_buffer();
51413
51469
 
51414
51470
  // ../../node_modules/@peculiar/utils/build/esm/bytes/equal.js
51415
51471
  init_inject_buffer();
51472
+ function equal(a, b, options = {}) {
51473
+ const left = toUint8Array(a);
51474
+ const right = toUint8Array(b);
51475
+ if (!options.constantTime && left.byteLength !== right.byteLength) {
51476
+ return false;
51477
+ }
51478
+ const length = Math.max(left.byteLength, right.byteLength);
51479
+ let diff = left.byteLength ^ right.byteLength;
51480
+ for (let i = 0; i < length; i++) {
51481
+ diff |= (left[i] ?? 0) ^ (right[i] ?? 0);
51482
+ }
51483
+ return diff === 0;
51484
+ }
51416
51485
 
51417
51486
  // ../../node_modules/@peculiar/utils/build/esm/bytes/sequence.js
51418
51487
  init_inject_buffer();
@@ -51454,6 +51523,7 @@ var AsnPropTypes;
51454
51523
  AsnPropTypes2[AsnPropTypes2["Duration"] = 25] = "Duration";
51455
51524
  AsnPropTypes2[AsnPropTypes2["TIME"] = 26] = "TIME";
51456
51525
  AsnPropTypes2[AsnPropTypes2["Null"] = 27] = "Null";
51526
+ AsnPropTypes2[AsnPropTypes2["RelativeObjectIdentifier"] = 28] = "RelativeObjectIdentifier";
51457
51527
  })(AsnPropTypes || (AsnPropTypes = {}));
51458
51528
 
51459
51529
  // ../../node_modules/@peculiar/asn1-schema/build/es2015/types/index.js
@@ -51592,6 +51662,10 @@ var AsnObjectIdentifierConverter = {
51592
51662
  fromASN: (value) => value.valueBlock.toString(),
51593
51663
  toASN: (value) => new ObjectIdentifier({ value })
51594
51664
  };
51665
+ var AsnRelativeObjectIdentifierConverter = {
51666
+ fromASN: (value) => value.valueBlock.toString(),
51667
+ toASN: (value) => new RelativeObjectIdentifier({ value })
51668
+ };
51595
51669
  var AsnBooleanConverter = {
51596
51670
  fromASN: (value) => value.valueBlock.value,
51597
51671
  toASN: (value) => new Boolean2({ value })
@@ -51666,6 +51740,8 @@ function defaultConverter(type) {
51666
51740
  return AsnNumericStringConverter;
51667
51741
  case AsnPropTypes.ObjectIdentifier:
51668
51742
  return AsnObjectIdentifierConverter;
51743
+ case AsnPropTypes.RelativeObjectIdentifier:
51744
+ return AsnRelativeObjectIdentifierConverter;
51669
51745
  case AsnPropTypes.OctetString:
51670
51746
  return AsnOctetStringConverter;
51671
51747
  case AsnPropTypes.PrintableString:
@@ -51804,10 +51880,12 @@ var AsnSchemaStorage = class {
51804
51880
  const Container = item.repeated === "set" ? Set2 : Sequence;
51805
51881
  asn1Item = new Container({
51806
51882
  name: "",
51807
- value: [new Repeated({
51808
- name,
51809
- value: asn1Item
51810
- })]
51883
+ value: [
51884
+ new Repeated({
51885
+ name,
51886
+ value: asn1Item
51887
+ })
51888
+ ]
51811
51889
  });
51812
51890
  }
51813
51891
  if (item.context !== null && item.context !== void 0) {
@@ -51934,15 +52012,15 @@ var AsnSchemaValidationError = class extends Error {
51934
52012
 
51935
52013
  // ../../node_modules/@peculiar/asn1-schema/build/es2015/parser.js
51936
52014
  var AsnParser = class {
51937
- static parse(data, target) {
51938
- const asn1Parsed = fromBER(toArrayBuffer(data));
52015
+ static parse(data, target, options) {
52016
+ const asn1Parsed = fromBER(toArrayBuffer(data), options?.berOptions);
51939
52017
  if (asn1Parsed.result.error) {
51940
52018
  throw new Error(asn1Parsed.result.error);
51941
52019
  }
51942
- const res = this.fromASN(asn1Parsed.result, target);
52020
+ const res = this.fromASN(asn1Parsed.result, target, options);
51943
52021
  return res;
51944
52022
  }
51945
- static fromASN(asn1Schema, target) {
52023
+ static fromASN(asn1Schema, target, options) {
51946
52024
  try {
51947
52025
  if (isConvertible(target)) {
51948
52026
  const value = new target();
@@ -51951,7 +52029,7 @@ var AsnParser = class {
51951
52029
  const schema = schemaStorage.get(target);
51952
52030
  schemaStorage.cache(target);
51953
52031
  let targetSchema = schema.schema;
51954
- const choiceResult = this.handleChoiceTypes(asn1Schema, schema, target, targetSchema);
52032
+ const choiceResult = this.handleChoiceTypes(asn1Schema, schema, target, targetSchema, options);
51955
52033
  if (choiceResult?.result) {
51956
52034
  return choiceResult.result;
51957
52035
  }
@@ -51961,9 +52039,9 @@ var AsnParser = class {
51961
52039
  const sequenceResult = this.handleSequenceTypes(asn1Schema, schema, target, targetSchema);
51962
52040
  const res = new target();
51963
52041
  if (isTypeOfArray(target)) {
51964
- return this.handleArrayTypes(asn1Schema, schema, target);
52042
+ return this.handleArrayTypes(asn1Schema, schema, target, options);
51965
52043
  }
51966
- this.processSchemaItems(schema, sequenceResult, res);
52044
+ this.processSchemaItems(schema, sequenceResult, res, options);
51967
52045
  return res;
51968
52046
  } catch (error) {
51969
52047
  if (error instanceof AsnSchemaValidationError) {
@@ -51972,7 +52050,7 @@ var AsnParser = class {
51972
52050
  throw error;
51973
52051
  }
51974
52052
  }
51975
- static handleChoiceTypes(asn1Schema, schema, target, targetSchema) {
52053
+ static handleChoiceTypes(asn1Schema, schema, target, targetSchema, options) {
51976
52054
  if (asn1Schema.constructor === Constructed && schema.type === AsnTypeTypes.Choice && asn1Schema.idBlock.tagClass === 3) {
51977
52055
  for (const key in schema.items) {
51978
52056
  const schemaItem = schema.items[key];
@@ -51983,7 +52061,7 @@ var AsnParser = class {
51983
52061
  const newSeq = new Sequence();
51984
52062
  if ("value" in asn1Schema.valueBlock && Array.isArray(asn1Schema.valueBlock.value) && "value" in newSeq.valueBlock) {
51985
52063
  newSeq.valueBlock.value = asn1Schema.valueBlock.value;
51986
- const fieldValue = this.fromASN(newSeq, schemaItem.type);
52064
+ const fieldValue = this.fromASN(newSeq, schemaItem.type, options);
51987
52065
  const res = new target();
51988
52066
  res[key] = fieldValue;
51989
52067
  return { result: res };
@@ -52074,7 +52152,7 @@ var AsnParser = class {
52074
52152
  throw err;
52075
52153
  }
52076
52154
  }
52077
- static handleArrayTypes(asn1Schema, schema, target) {
52155
+ static handleArrayTypes(asn1Schema, schema, target, options) {
52078
52156
  if (!("value" in asn1Schema.valueBlock && Array.isArray(asn1Schema.valueBlock.value))) {
52079
52157
  throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");
52080
52158
  }
@@ -52086,10 +52164,10 @@ var AsnParser = class {
52086
52164
  }
52087
52165
  return target.from(asn1Schema.valueBlock.value, (element) => converter.fromASN(element));
52088
52166
  } else {
52089
- return target.from(asn1Schema.valueBlock.value, (element) => this.fromASN(element, itemType));
52167
+ return target.from(asn1Schema.valueBlock.value, (element) => this.fromASN(element, itemType, options));
52090
52168
  }
52091
52169
  }
52092
- static processSchemaItems(schema, asn1ComparedSchema, res) {
52170
+ static processSchemaItems(schema, asn1ComparedSchema, res, options) {
52093
52171
  for (const key in schema.items) {
52094
52172
  const asn1SchemaValue = asn1ComparedSchema.result[key];
52095
52173
  if (!asn1SchemaValue) {
@@ -52099,9 +52177,9 @@ var AsnParser = class {
52099
52177
  const schemaItemType = schemaItem.type;
52100
52178
  let parsedValue;
52101
52179
  if (typeof schemaItemType === "number" || isConvertible(schemaItemType)) {
52102
- parsedValue = this.processPrimitiveSchemaItem(asn1SchemaValue, schemaItem, schemaItemType);
52180
+ parsedValue = this.processPrimitiveSchemaItem(asn1SchemaValue, schemaItem, schemaItemType, options);
52103
52181
  } else {
52104
- parsedValue = this.processComplexSchemaItem(asn1SchemaValue, schemaItem, schemaItemType);
52182
+ parsedValue = this.processComplexSchemaItem(asn1SchemaValue, schemaItem, schemaItemType, options);
52105
52183
  }
52106
52184
  if (parsedValue && typeof parsedValue === "object" && "value" in parsedValue && "raw" in parsedValue) {
52107
52185
  res[key] = parsedValue.value;
@@ -52111,23 +52189,23 @@ var AsnParser = class {
52111
52189
  }
52112
52190
  }
52113
52191
  }
52114
- static processPrimitiveSchemaItem(asn1SchemaValue, schemaItem, schemaItemType) {
52192
+ static processPrimitiveSchemaItem(asn1SchemaValue, schemaItem, schemaItemType, options) {
52115
52193
  const converter = schemaItem.converter ?? (isConvertible(schemaItemType) ? new schemaItemType() : null);
52116
52194
  if (!converter) {
52117
52195
  throw new Error("Converter is empty");
52118
52196
  }
52119
52197
  if (schemaItem.repeated) {
52120
- return this.processRepeatedPrimitiveItem(asn1SchemaValue, schemaItem, converter);
52198
+ return this.processRepeatedPrimitiveItem(asn1SchemaValue, schemaItem, converter, options);
52121
52199
  } else {
52122
- return this.processSinglePrimitiveItem(asn1SchemaValue, schemaItem, schemaItemType, converter);
52200
+ return this.processSinglePrimitiveItem(asn1SchemaValue, schemaItem, schemaItemType, converter, options);
52123
52201
  }
52124
52202
  }
52125
- static processRepeatedPrimitiveItem(asn1SchemaValue, schemaItem, converter) {
52203
+ static processRepeatedPrimitiveItem(asn1SchemaValue, schemaItem, converter, options) {
52126
52204
  if (schemaItem.implicit) {
52127
52205
  const Container = schemaItem.repeated === "sequence" ? Sequence : Set2;
52128
52206
  const newItem = new Container();
52129
52207
  newItem.valueBlock = asn1SchemaValue.valueBlock;
52130
- const newItemAsn = fromBER(newItem.toBER(false));
52208
+ const newItemAsn = fromBER(newItem.toBER(false), options?.berOptions);
52131
52209
  if (newItemAsn.offset === -1) {
52132
52210
  throw new Error(`Cannot parse the child item. ${newItemAsn.result.error}`);
52133
52211
  }
@@ -52140,7 +52218,7 @@ var AsnParser = class {
52140
52218
  return Array.from(asn1SchemaValue, (element) => converter.fromASN(element));
52141
52219
  }
52142
52220
  }
52143
- static processSinglePrimitiveItem(asn1SchemaValue, schemaItem, schemaItemType, converter) {
52221
+ static processSinglePrimitiveItem(asn1SchemaValue, schemaItem, schemaItemType, converter, options) {
52144
52222
  let value = asn1SchemaValue;
52145
52223
  if (schemaItem.implicit) {
52146
52224
  let newItem;
@@ -52155,21 +52233,21 @@ var AsnParser = class {
52155
52233
  newItem = new Asn1Type();
52156
52234
  }
52157
52235
  newItem.valueBlock = value.valueBlock;
52158
- value = fromBER(newItem.toBER(false)).result;
52236
+ value = fromBER(newItem.toBER(false), options?.berOptions).result;
52159
52237
  }
52160
52238
  return converter.fromASN(value);
52161
52239
  }
52162
- static processComplexSchemaItem(asn1SchemaValue, schemaItem, schemaItemType) {
52240
+ static processComplexSchemaItem(asn1SchemaValue, schemaItem, schemaItemType, options) {
52163
52241
  if (schemaItem.repeated) {
52164
52242
  if (!Array.isArray(asn1SchemaValue)) {
52165
52243
  throw new Error("Cannot get list of items from the ASN.1 parsed value. ASN.1 value should be iterable.");
52166
52244
  }
52167
- return Array.from(asn1SchemaValue, (element) => this.fromASN(element, schemaItemType));
52245
+ return Array.from(asn1SchemaValue, (element) => this.fromASN(element, schemaItemType, options));
52168
52246
  } else {
52169
52247
  const valueToProcess = this.handleImplicitTagging(asn1SchemaValue, schemaItem, schemaItemType);
52170
52248
  if (this.isOptionalChoiceField(schemaItem)) {
52171
52249
  try {
52172
- return this.fromASN(valueToProcess, schemaItemType);
52250
+ return this.fromASN(valueToProcess, schemaItemType, options);
52173
52251
  } catch (err) {
52174
52252
  if (err instanceof AsnSchemaValidationError && /Wrong values for Choice type/.test(err.message)) {
52175
52253
  return void 0;
@@ -52177,7 +52255,7 @@ var AsnParser = class {
52177
52255
  throw err;
52178
52256
  }
52179
52257
  } else {
52180
- const parsedValue = this.fromASN(valueToProcess, schemaItemType);
52258
+ const parsedValue = this.fromASN(valueToProcess, schemaItemType, options);
52181
52259
  if (schemaItem.raw) {
52182
52260
  return {
52183
52261
  value: parsedValue,
@@ -52361,12 +52439,12 @@ var AsnConvert = class _AsnConvert {
52361
52439
  static serialize(obj) {
52362
52440
  return AsnSerializer.serialize(obj);
52363
52441
  }
52364
- static parse(data, target) {
52365
- return AsnParser.parse(data, target);
52442
+ static parse(data, target, options) {
52443
+ return AsnParser.parse(data, target, options);
52366
52444
  }
52367
- static toString(data) {
52445
+ static toString(data, options) {
52368
52446
  const buf = isBufferSource(data) ? toArrayBuffer(data) : _AsnConvert.serialize(data);
52369
- const asn = fromBER(buf);
52447
+ const asn = fromBER(buf, options?.berOptions);
52370
52448
  if (asn.offset === -1) {
52371
52449
  throw new Error(`Cannot decode ASN.1 data. ${asn.result.error}`);
52372
52450
  }
@@ -52408,7 +52486,257 @@ init_inject_buffer();
52408
52486
 
52409
52487
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/ip_converter.js
52410
52488
  init_inject_buffer();
52411
- var import_pvtsutils = __toESM(require_build());
52489
+
52490
+ // ../../node_modules/@peculiar/utils/build/esm/encoding/index.js
52491
+ init_inject_buffer();
52492
+
52493
+ // ../../node_modules/@peculiar/utils/build/esm/encoding/binary.js
52494
+ init_inject_buffer();
52495
+
52496
+ // ../../node_modules/@peculiar/utils/build/esm/encoding/hex.js
52497
+ var hex_exports = {};
52498
+ __export(hex_exports, {
52499
+ decode: () => decode,
52500
+ encode: () => encode,
52501
+ format: () => format,
52502
+ formats: () => formats,
52503
+ hex: () => hex,
52504
+ is: () => is,
52505
+ normalize: () => normalize,
52506
+ parse: () => parse
52507
+ });
52508
+ init_inject_buffer();
52509
+ var HEX_CHARACTER_REGEX = /^[0-9a-f]$/i;
52510
+ var COMMON_SEPARATORS = [" ", " ", "\n", "\r", ":", "-", "."];
52511
+ function resolveSeparators(options) {
52512
+ if (options.separators === "none") {
52513
+ return [];
52514
+ }
52515
+ if (!options.separators || options.separators === "common") {
52516
+ return COMMON_SEPARATORS;
52517
+ }
52518
+ return options.separators;
52519
+ }
52520
+ function validateSeparator(separator) {
52521
+ if (!separator) {
52522
+ throw new TypeError("Hex separators must be non-empty strings");
52523
+ }
52524
+ }
52525
+ function matchSeparator(text, index, separators) {
52526
+ for (const separator of separators) {
52527
+ if (text.startsWith(separator, index)) {
52528
+ return separator;
52529
+ }
52530
+ }
52531
+ return void 0;
52532
+ }
52533
+ function detectCase(text) {
52534
+ const hasUpper = /[A-F]/.test(text);
52535
+ const hasLower = /[a-f]/.test(text);
52536
+ return hasUpper && !hasLower ? "upper" : "lower";
52537
+ }
52538
+ function detectLineSeparator(text) {
52539
+ const match = /\r\n|\n/.exec(text);
52540
+ if (!match) {
52541
+ return void 0;
52542
+ }
52543
+ return match[0] === "\r\n" ? "\r\n" : "\n";
52544
+ }
52545
+ function compactForDetection(text) {
52546
+ return text.replace(/[^0-9a-f]/gi, "");
52547
+ }
52548
+ function detectGroup(text) {
52549
+ const segments = text.match(/[0-9A-Fa-f]+|[^0-9A-Fa-f]+/g) ?? [];
52550
+ if (segments.length < 3) {
52551
+ return void 0;
52552
+ }
52553
+ const hexSegments = segments.filter((_, index) => index % 2 === 0);
52554
+ const separators = segments.filter((_, index) => index % 2 === 1);
52555
+ const separator = separators[0];
52556
+ if (!separator || separators.some((item) => item !== separator)) {
52557
+ return void 0;
52558
+ }
52559
+ if (hexSegments.some((segment) => segment.length === 0 || segment.length % 2 !== 0)) {
52560
+ return void 0;
52561
+ }
52562
+ const firstLength = hexSegments[0]?.length ?? 0;
52563
+ if (!firstLength) {
52564
+ return void 0;
52565
+ }
52566
+ if (hexSegments.slice(0, -1).some((segment) => segment.length !== firstLength)) {
52567
+ return void 0;
52568
+ }
52569
+ if ((hexSegments[hexSegments.length - 1]?.length ?? 0) > firstLength) {
52570
+ return void 0;
52571
+ }
52572
+ return {
52573
+ size: firstLength / 2,
52574
+ separator
52575
+ };
52576
+ }
52577
+ function detectFormat(text) {
52578
+ const trimmed = text.trim();
52579
+ const prefix = /^0x/i.test(trimmed) ? "0x" : "";
52580
+ const body = prefix ? trimmed.slice(2) : trimmed;
52581
+ const lineSeparator = detectLineSeparator(body);
52582
+ const lines = body.split(/\r\n|\n/).filter((line) => line.length > 0);
52583
+ const sampleLine = lines[0]?.trim() ?? "";
52584
+ const group = detectGroup(sampleLine);
52585
+ const format2 = {
52586
+ case: detectCase(trimmed),
52587
+ prefix
52588
+ };
52589
+ if (group) {
52590
+ format2.group = group;
52591
+ }
52592
+ if (lineSeparator && lines.length > 1) {
52593
+ const firstLineBytes = compactForDetection(lines[0] ?? "").length / 2;
52594
+ if (firstLineBytes > 0 && lines.slice(0, -1).every((line) => compactForDetection(line).length / 2 === firstLineBytes)) {
52595
+ format2.line = {
52596
+ bytesPerLine: firstLineBytes,
52597
+ separator: lineSeparator
52598
+ };
52599
+ }
52600
+ }
52601
+ return format2;
52602
+ }
52603
+ function normalizeText(text, options) {
52604
+ const allowPrefix = options.allowPrefix ?? true;
52605
+ const separators = [...resolveSeparators(options)].sort((left, right) => right.length - left.length);
52606
+ for (const separator of separators) {
52607
+ validateSeparator(separator);
52608
+ }
52609
+ let working = text.trim();
52610
+ if (/^0x/i.test(working)) {
52611
+ if (!allowPrefix) {
52612
+ throw new TypeError("Hexadecimal text must not include a 0x prefix");
52613
+ }
52614
+ working = working.slice(2);
52615
+ }
52616
+ let normalized = "";
52617
+ let lastTokenWasSeparator = false;
52618
+ for (let index = 0; index < working.length; ) {
52619
+ const character = working[index] ?? "";
52620
+ if (HEX_CHARACTER_REGEX.test(character)) {
52621
+ normalized += character;
52622
+ lastTokenWasSeparator = false;
52623
+ index += 1;
52624
+ continue;
52625
+ }
52626
+ const separator = matchSeparator(working, index, separators);
52627
+ if (!separator) {
52628
+ throw new TypeError("Input is not valid hexadecimal text");
52629
+ }
52630
+ if (options.strict && (lastTokenWasSeparator || normalized.length === 0)) {
52631
+ throw new TypeError("Hexadecimal text contains misplaced separators");
52632
+ }
52633
+ lastTokenWasSeparator = true;
52634
+ index += separator.length;
52635
+ }
52636
+ if (options.strict && lastTokenWasSeparator && normalized.length > 0) {
52637
+ throw new TypeError("Hexadecimal text must not end with a separator");
52638
+ }
52639
+ if (normalized.length % 2 !== 0) {
52640
+ if (!options.allowOddLength) {
52641
+ throw new TypeError("Hexadecimal text must contain an even number of characters");
52642
+ }
52643
+ normalized = `0${normalized}`;
52644
+ }
52645
+ return normalized.toLowerCase();
52646
+ }
52647
+ function groupPairs(pairs, group) {
52648
+ if (!group) {
52649
+ return pairs.join("");
52650
+ }
52651
+ if (!Number.isInteger(group.size) || group.size < 1) {
52652
+ throw new RangeError("Hex group size must be a positive integer");
52653
+ }
52654
+ const chunks = [];
52655
+ for (let index = 0; index < pairs.length; index += group.size) {
52656
+ chunks.push(pairs.slice(index, index + group.size).join(""));
52657
+ }
52658
+ return chunks.join(group.separator);
52659
+ }
52660
+ function normalize(text, options = {}) {
52661
+ return normalizeText(text, options);
52662
+ }
52663
+ function is(text, options = {}) {
52664
+ if (typeof text !== "string") {
52665
+ return false;
52666
+ }
52667
+ try {
52668
+ normalize(text, options);
52669
+ return true;
52670
+ } catch {
52671
+ return false;
52672
+ }
52673
+ }
52674
+ function encode(data, options = {}) {
52675
+ const bytes = toUint8Array(data);
52676
+ const casing = options.case ?? "lower";
52677
+ const pairs = Array.from(bytes, (byte) => {
52678
+ const text = byte.toString(16).padStart(2, "0");
52679
+ return casing === "upper" ? text.toUpperCase() : text;
52680
+ });
52681
+ let body = "";
52682
+ if (options.line) {
52683
+ const bytesPerLine = options.line.bytesPerLine;
52684
+ if (!Number.isInteger(bytesPerLine) || bytesPerLine < 1) {
52685
+ throw new RangeError("Hex bytesPerLine must be a positive integer");
52686
+ }
52687
+ const separator = options.line.separator ?? "\n";
52688
+ const lines = [];
52689
+ for (let index = 0; index < pairs.length; index += bytesPerLine) {
52690
+ lines.push(groupPairs(pairs.slice(index, index + bytesPerLine), options.group));
52691
+ }
52692
+ body = lines.join(separator);
52693
+ } else {
52694
+ body = groupPairs(pairs, options.group);
52695
+ }
52696
+ return `${options.prefix ?? ""}${body}`;
52697
+ }
52698
+ function decode(text, options = {}) {
52699
+ const normalized = normalize(text, options);
52700
+ const result = new Uint8Array(normalized.length / 2);
52701
+ for (let i = 0; i < normalized.length; i += 2) {
52702
+ result[i / 2] = Number.parseInt(normalized.slice(i, i + 2), 16);
52703
+ }
52704
+ return result;
52705
+ }
52706
+ function parse(text, options = {}) {
52707
+ const normalized = normalize(text, options);
52708
+ return {
52709
+ bytes: decode(normalized),
52710
+ format: detectFormat(text),
52711
+ normalized
52712
+ };
52713
+ }
52714
+ function format(data, value) {
52715
+ return encode(data, value);
52716
+ }
52717
+ var formats = {
52718
+ compact: Object.freeze({}),
52719
+ upper: Object.freeze({ case: "upper" }),
52720
+ colon: Object.freeze({ group: { size: 1, separator: ":" } }),
52721
+ colonUpper: Object.freeze({ case: "upper", group: { size: 1, separator: ":" } }),
52722
+ groupsOf4: Object.freeze({ group: { size: 4, separator: " " } }),
52723
+ prefixed: Object.freeze({ prefix: "0x" })
52724
+ };
52725
+ var hex = { encode, decode, format, formats, is, normalize, parse };
52726
+
52727
+ // ../../node_modules/@peculiar/utils/build/esm/encoding/utf8.js
52728
+ init_inject_buffer();
52729
+
52730
+ // ../../node_modules/@peculiar/utils/build/esm/encoding/utf16.js
52731
+ init_inject_buffer();
52732
+
52733
+ // ../../node_modules/@peculiar/utils/build/esm/encoding/base64.js
52734
+ init_inject_buffer();
52735
+
52736
+ // ../../node_modules/@peculiar/utils/build/esm/encoding/base64url.js
52737
+ init_inject_buffer();
52738
+
52739
+ // ../../node_modules/@peculiar/asn1-x509/build/es2015/ip_converter.js
52412
52740
  var IpConverter = class {
52413
52741
  static isIPv4(ip) {
52414
52742
  return /^(\d{1,3}\.){3}\d{1,3}$/.test(ip);
@@ -52549,7 +52877,7 @@ var IpConverter = class {
52549
52877
  return `${addrStr}/${prefixLen}`;
52550
52878
  }
52551
52879
  }
52552
- return this.decodeIP(import_pvtsutils.Convert.ToHex(buf));
52880
+ return this.decodeIP(hex_exports.encode(buf));
52553
52881
  }
52554
52882
  static fromString(text) {
52555
52883
  if (text.includes("/")) {
@@ -52577,11 +52905,15 @@ var IpConverter = class {
52577
52905
 
52578
52906
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/name.js
52579
52907
  init_inject_buffer();
52580
- var import_pvtsutils2 = __toESM(require_build());
52581
52908
  var RelativeDistinguishedName_1;
52582
52909
  var RDNSequence_1;
52583
52910
  var Name_1;
52584
52911
  var DirectoryString = class DirectoryString2 {
52912
+ teletexString;
52913
+ printableString;
52914
+ universalString;
52915
+ utf8String;
52916
+ bmpString;
52585
52917
  constructor(params = {}) {
52586
52918
  Object.assign(this, params);
52587
52919
  }
@@ -52608,12 +52940,14 @@ DirectoryString = __decorate([
52608
52940
  AsnType({ type: AsnTypeTypes.Choice })
52609
52941
  ], DirectoryString);
52610
52942
  var AttributeValue = class AttributeValue2 extends DirectoryString {
52943
+ ia5String;
52944
+ anyValue;
52611
52945
  constructor(params = {}) {
52612
52946
  super(params);
52613
52947
  Object.assign(this, params);
52614
52948
  }
52615
52949
  toString() {
52616
- return this.ia5String || (this.anyValue ? import_pvtsutils2.Convert.ToHex(this.anyValue) : super.toString());
52950
+ return this.ia5String || (this.anyValue ? hex_exports.encode(this.anyValue) : super.toString());
52617
52951
  }
52618
52952
  };
52619
52953
  __decorate([
@@ -52626,9 +52960,9 @@ AttributeValue = __decorate([
52626
52960
  AsnType({ type: AsnTypeTypes.Choice })
52627
52961
  ], AttributeValue);
52628
52962
  var AttributeTypeAndValue = class {
52963
+ type = "";
52964
+ value = new AttributeValue();
52629
52965
  constructor(params = {}) {
52630
- this.type = "";
52631
- this.value = new AttributeValue();
52632
52966
  Object.assign(this, params);
52633
52967
  }
52634
52968
  };
@@ -52645,7 +52979,10 @@ var RelativeDistinguishedName = RelativeDistinguishedName_1 = class RelativeDist
52645
52979
  }
52646
52980
  };
52647
52981
  RelativeDistinguishedName = RelativeDistinguishedName_1 = __decorate([
52648
- AsnType({ type: AsnTypeTypes.Set, itemType: AttributeTypeAndValue })
52982
+ AsnType({
52983
+ type: AsnTypeTypes.Set,
52984
+ itemType: AttributeTypeAndValue
52985
+ })
52649
52986
  ], RelativeDistinguishedName);
52650
52987
  var RDNSequence = RDNSequence_1 = class RDNSequence2 extends AsnArray {
52651
52988
  constructor(items) {
@@ -52654,7 +52991,10 @@ var RDNSequence = RDNSequence_1 = class RDNSequence2 extends AsnArray {
52654
52991
  }
52655
52992
  };
52656
52993
  RDNSequence = RDNSequence_1 = __decorate([
52657
- AsnType({ type: AsnTypeTypes.Sequence, itemType: RelativeDistinguishedName })
52994
+ AsnType({
52995
+ type: AsnTypeTypes.Sequence,
52996
+ itemType: RelativeDistinguishedName
52997
+ })
52658
52998
  ], RDNSequence);
52659
52999
  var Name = Name_1 = class Name2 extends RDNSequence {
52660
53000
  constructor(items) {
@@ -52672,9 +53012,9 @@ var AsnIpConverter = {
52672
53012
  toASN: (value) => AsnOctetStringConverter.toASN(IpConverter.fromString(value))
52673
53013
  };
52674
53014
  var OtherName = class {
53015
+ typeId = "";
53016
+ value = new ArrayBuffer(0);
52675
53017
  constructor(params = {}) {
52676
- this.typeId = "";
52677
- this.value = new ArrayBuffer(0);
52678
53018
  Object.assign(this, params);
52679
53019
  }
52680
53020
  };
@@ -52682,45 +53022,94 @@ __decorate([
52682
53022
  AsnProp({ type: AsnPropTypes.ObjectIdentifier })
52683
53023
  ], OtherName.prototype, "typeId", void 0);
52684
53024
  __decorate([
52685
- AsnProp({ type: AsnPropTypes.Any, context: 0 })
53025
+ AsnProp({
53026
+ type: AsnPropTypes.Any,
53027
+ context: 0
53028
+ })
52686
53029
  ], OtherName.prototype, "value", void 0);
52687
53030
  var EDIPartyName = class {
53031
+ nameAssigner;
53032
+ partyName = new DirectoryString();
52688
53033
  constructor(params = {}) {
52689
- this.partyName = new DirectoryString();
52690
53034
  Object.assign(this, params);
52691
53035
  }
52692
53036
  };
52693
53037
  __decorate([
52694
- AsnProp({ type: DirectoryString, optional: true, context: 0, implicit: true })
53038
+ AsnProp({
53039
+ type: DirectoryString,
53040
+ optional: true,
53041
+ context: 0,
53042
+ implicit: true
53043
+ })
52695
53044
  ], EDIPartyName.prototype, "nameAssigner", void 0);
52696
53045
  __decorate([
52697
- AsnProp({ type: DirectoryString, context: 1, implicit: true })
53046
+ AsnProp({
53047
+ type: DirectoryString,
53048
+ context: 1,
53049
+ implicit: true
53050
+ })
52698
53051
  ], EDIPartyName.prototype, "partyName", void 0);
52699
53052
  var GeneralName = class GeneralName2 {
53053
+ otherName;
53054
+ rfc822Name;
53055
+ dNSName;
53056
+ x400Address;
53057
+ directoryName;
53058
+ ediPartyName;
53059
+ uniformResourceIdentifier;
53060
+ iPAddress;
53061
+ registeredID;
52700
53062
  constructor(params = {}) {
52701
53063
  Object.assign(this, params);
52702
53064
  }
52703
53065
  };
52704
53066
  __decorate([
52705
- AsnProp({ type: OtherName, context: 0, implicit: true })
53067
+ AsnProp({
53068
+ type: OtherName,
53069
+ context: 0,
53070
+ implicit: true
53071
+ })
52706
53072
  ], GeneralName.prototype, "otherName", void 0);
52707
53073
  __decorate([
52708
- AsnProp({ type: AsnPropTypes.IA5String, context: 1, implicit: true })
53074
+ AsnProp({
53075
+ type: AsnPropTypes.IA5String,
53076
+ context: 1,
53077
+ implicit: true
53078
+ })
52709
53079
  ], GeneralName.prototype, "rfc822Name", void 0);
52710
53080
  __decorate([
52711
- AsnProp({ type: AsnPropTypes.IA5String, context: 2, implicit: true })
53081
+ AsnProp({
53082
+ type: AsnPropTypes.IA5String,
53083
+ context: 2,
53084
+ implicit: true
53085
+ })
52712
53086
  ], GeneralName.prototype, "dNSName", void 0);
52713
53087
  __decorate([
52714
- AsnProp({ type: AsnPropTypes.Any, context: 3, implicit: true })
53088
+ AsnProp({
53089
+ type: AsnPropTypes.Any,
53090
+ context: 3,
53091
+ implicit: true
53092
+ })
52715
53093
  ], GeneralName.prototype, "x400Address", void 0);
52716
53094
  __decorate([
52717
- AsnProp({ type: Name, context: 4, implicit: false })
53095
+ AsnProp({
53096
+ type: Name,
53097
+ context: 4,
53098
+ implicit: false
53099
+ })
52718
53100
  ], GeneralName.prototype, "directoryName", void 0);
52719
53101
  __decorate([
52720
- AsnProp({ type: EDIPartyName, context: 5 })
53102
+ AsnProp({
53103
+ type: EDIPartyName,
53104
+ context: 5
53105
+ })
52721
53106
  ], GeneralName.prototype, "ediPartyName", void 0);
52722
53107
  __decorate([
52723
- AsnProp({ type: AsnPropTypes.IA5String, context: 6, implicit: true })
53108
+ AsnProp({
53109
+ type: AsnPropTypes.IA5String,
53110
+ context: 6,
53111
+ implicit: true
53112
+ })
52724
53113
  ], GeneralName.prototype, "uniformResourceIdentifier", void 0);
52725
53114
  __decorate([
52726
53115
  AsnProp({
@@ -52731,7 +53120,11 @@ __decorate([
52731
53120
  })
52732
53121
  ], GeneralName.prototype, "iPAddress", void 0);
52733
53122
  __decorate([
52734
- AsnProp({ type: AsnPropTypes.ObjectIdentifier, context: 8, implicit: true })
53123
+ AsnProp({
53124
+ type: AsnPropTypes.ObjectIdentifier,
53125
+ context: 8,
53126
+ implicit: true
53127
+ })
52735
53128
  ], GeneralName.prototype, "registeredID", void 0);
52736
53129
  GeneralName = __decorate([
52737
53130
  AsnType({ type: AsnTypeTypes.Choice })
@@ -52756,9 +53149,9 @@ var id_ce = "2.5.29";
52756
53149
  var AuthorityInfoAccessSyntax_1;
52757
53150
  var id_pe_authorityInfoAccess = `${id_pe}.1`;
52758
53151
  var AccessDescription = class {
53152
+ accessMethod = "";
53153
+ accessLocation = new GeneralName();
52759
53154
  constructor(params = {}) {
52760
- this.accessMethod = "";
52761
- this.accessLocation = new GeneralName();
52762
53155
  Object.assign(this, params);
52763
53156
  }
52764
53157
  };
@@ -52775,7 +53168,10 @@ var AuthorityInfoAccessSyntax = AuthorityInfoAccessSyntax_1 = class AuthorityInf
52775
53168
  }
52776
53169
  };
52777
53170
  AuthorityInfoAccessSyntax = AuthorityInfoAccessSyntax_1 = __decorate([
52778
- AsnType({ type: AsnTypeTypes.Sequence, itemType: AccessDescription })
53171
+ AsnType({
53172
+ type: AsnTypeTypes.Sequence,
53173
+ itemType: AccessDescription
53174
+ })
52779
53175
  ], AuthorityInfoAccessSyntax);
52780
53176
 
52781
53177
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/extensions/authority_key_identifier.js
@@ -52784,6 +53180,9 @@ var id_ce_authorityKeyIdentifier = `${id_ce}.35`;
52784
53180
  var KeyIdentifier = class extends OctetString2 {
52785
53181
  };
52786
53182
  var AuthorityKeyIdentifier = class {
53183
+ keyIdentifier;
53184
+ authorityCertIssuer;
53185
+ authorityCertSerialNumber;
52787
53186
  constructor(params = {}) {
52788
53187
  if (params) {
52789
53188
  Object.assign(this, params);
@@ -52791,10 +53190,21 @@ var AuthorityKeyIdentifier = class {
52791
53190
  }
52792
53191
  };
52793
53192
  __decorate([
52794
- AsnProp({ type: KeyIdentifier, context: 0, optional: true, implicit: true })
53193
+ AsnProp({
53194
+ type: KeyIdentifier,
53195
+ context: 0,
53196
+ optional: true,
53197
+ implicit: true
53198
+ })
52795
53199
  ], AuthorityKeyIdentifier.prototype, "keyIdentifier", void 0);
52796
53200
  __decorate([
52797
- AsnProp({ type: GeneralName, context: 1, optional: true, implicit: true, repeated: "sequence" })
53201
+ AsnProp({
53202
+ type: GeneralName,
53203
+ context: 1,
53204
+ optional: true,
53205
+ implicit: true,
53206
+ repeated: "sequence"
53207
+ })
52798
53208
  ], AuthorityKeyIdentifier.prototype, "authorityCertIssuer", void 0);
52799
53209
  __decorate([
52800
53210
  AsnProp({
@@ -52810,16 +53220,23 @@ __decorate([
52810
53220
  init_inject_buffer();
52811
53221
  var id_ce_basicConstraints = `${id_ce}.19`;
52812
53222
  var BasicConstraints = class {
53223
+ cA = false;
53224
+ pathLenConstraint;
52813
53225
  constructor(params = {}) {
52814
- this.cA = false;
52815
53226
  Object.assign(this, params);
52816
53227
  }
52817
53228
  };
52818
53229
  __decorate([
52819
- AsnProp({ type: AsnPropTypes.Boolean, defaultValue: false })
53230
+ AsnProp({
53231
+ type: AsnPropTypes.Boolean,
53232
+ defaultValue: false
53233
+ })
52820
53234
  ], BasicConstraints.prototype, "cA", void 0);
52821
53235
  __decorate([
52822
- AsnProp({ type: AsnPropTypes.Integer, optional: true })
53236
+ AsnProp({
53237
+ type: AsnPropTypes.Integer,
53238
+ optional: true
53239
+ })
52823
53240
  ], BasicConstraints.prototype, "pathLenConstraint", void 0);
52824
53241
 
52825
53242
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/extensions/certificate_issuer.js
@@ -52835,7 +53252,10 @@ var GeneralNames = GeneralNames_1 = class GeneralNames2 extends AsnArray {
52835
53252
  }
52836
53253
  };
52837
53254
  GeneralNames = GeneralNames_1 = __decorate([
52838
- AsnType({ type: AsnTypeTypes.Sequence, itemType: GeneralName })
53255
+ AsnType({
53256
+ type: AsnTypeTypes.Sequence,
53257
+ itemType: GeneralName
53258
+ })
52839
53259
  ], GeneralNames);
52840
53260
 
52841
53261
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/extensions/certificate_issuer.js
@@ -52857,6 +53277,10 @@ var CertificatePolicies_1;
52857
53277
  var id_ce_certificatePolicies = `${id_ce}.32`;
52858
53278
  var id_ce_certificatePolicies_anyPolicy = `${id_ce_certificatePolicies}.0`;
52859
53279
  var DisplayText = class DisplayText2 {
53280
+ ia5String;
53281
+ visibleString;
53282
+ bmpString;
53283
+ utf8String;
52860
53284
  constructor(params = {}) {
52861
53285
  Object.assign(this, params);
52862
53286
  }
@@ -52880,9 +53304,9 @@ DisplayText = __decorate([
52880
53304
  AsnType({ type: AsnTypeTypes.Choice })
52881
53305
  ], DisplayText);
52882
53306
  var NoticeReference = class {
53307
+ organization = new DisplayText();
53308
+ noticeNumbers = [];
52883
53309
  constructor(params = {}) {
52884
- this.organization = new DisplayText();
52885
- this.noticeNumbers = [];
52886
53310
  Object.assign(this, params);
52887
53311
  }
52888
53312
  };
@@ -52890,20 +53314,33 @@ __decorate([
52890
53314
  AsnProp({ type: DisplayText })
52891
53315
  ], NoticeReference.prototype, "organization", void 0);
52892
53316
  __decorate([
52893
- AsnProp({ type: AsnPropTypes.Integer, repeated: "sequence" })
53317
+ AsnProp({
53318
+ type: AsnPropTypes.Integer,
53319
+ repeated: "sequence"
53320
+ })
52894
53321
  ], NoticeReference.prototype, "noticeNumbers", void 0);
52895
53322
  var UserNotice = class {
53323
+ noticeRef;
53324
+ explicitText;
52896
53325
  constructor(params = {}) {
52897
53326
  Object.assign(this, params);
52898
53327
  }
52899
53328
  };
52900
53329
  __decorate([
52901
- AsnProp({ type: NoticeReference, optional: true })
53330
+ AsnProp({
53331
+ type: NoticeReference,
53332
+ optional: true
53333
+ })
52902
53334
  ], UserNotice.prototype, "noticeRef", void 0);
52903
53335
  __decorate([
52904
- AsnProp({ type: DisplayText, optional: true })
53336
+ AsnProp({
53337
+ type: DisplayText,
53338
+ optional: true
53339
+ })
52905
53340
  ], UserNotice.prototype, "explicitText", void 0);
52906
53341
  var Qualifier = class Qualifier2 {
53342
+ cPSuri;
53343
+ userNotice;
52907
53344
  constructor(params = {}) {
52908
53345
  Object.assign(this, params);
52909
53346
  }
@@ -52918,9 +53355,9 @@ Qualifier = __decorate([
52918
53355
  AsnType({ type: AsnTypeTypes.Choice })
52919
53356
  ], Qualifier);
52920
53357
  var PolicyQualifierInfo = class {
53358
+ policyQualifierId = "";
53359
+ qualifier = new ArrayBuffer(0);
52921
53360
  constructor(params = {}) {
52922
- this.policyQualifierId = "";
52923
- this.qualifier = new ArrayBuffer(0);
52924
53361
  Object.assign(this, params);
52925
53362
  }
52926
53363
  };
@@ -52931,8 +53368,9 @@ __decorate([
52931
53368
  AsnProp({ type: AsnPropTypes.Any })
52932
53369
  ], PolicyQualifierInfo.prototype, "qualifier", void 0);
52933
53370
  var PolicyInformation = class {
53371
+ policyIdentifier = "";
53372
+ policyQualifiers;
52934
53373
  constructor(params = {}) {
52935
- this.policyIdentifier = "";
52936
53374
  Object.assign(this, params);
52937
53375
  }
52938
53376
  };
@@ -52940,7 +53378,11 @@ __decorate([
52940
53378
  AsnProp({ type: AsnPropTypes.ObjectIdentifier })
52941
53379
  ], PolicyInformation.prototype, "policyIdentifier", void 0);
52942
53380
  __decorate([
52943
- AsnProp({ type: PolicyQualifierInfo, repeated: "sequence", optional: true })
53381
+ AsnProp({
53382
+ type: PolicyQualifierInfo,
53383
+ repeated: "sequence",
53384
+ optional: true
53385
+ })
52944
53386
  ], PolicyInformation.prototype, "policyQualifiers", void 0);
52945
53387
  var CertificatePolicies = CertificatePolicies_1 = class CertificatePolicies2 extends AsnArray {
52946
53388
  constructor(items) {
@@ -52949,7 +53391,10 @@ var CertificatePolicies = CertificatePolicies_1 = class CertificatePolicies2 ext
52949
53391
  }
52950
53392
  };
52951
53393
  CertificatePolicies = CertificatePolicies_1 = __decorate([
52952
- AsnType({ type: AsnTypeTypes.Sequence, itemType: PolicyInformation })
53394
+ AsnType({
53395
+ type: AsnTypeTypes.Sequence,
53396
+ itemType: PolicyInformation
53397
+ })
52953
53398
  ], CertificatePolicies);
52954
53399
 
52955
53400
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_delta_indicator.js
@@ -52959,6 +53404,7 @@ init_inject_buffer();
52959
53404
  init_inject_buffer();
52960
53405
  var id_ce_cRLNumber = `${id_ce}.20`;
52961
53406
  var CRLNumber = class CRLNumber2 {
53407
+ value;
52962
53408
  constructor(value = 0) {
52963
53409
  this.value = value;
52964
53410
  }
@@ -53032,32 +53478,61 @@ var Reason = class extends BitString2 {
53032
53478
  }
53033
53479
  };
53034
53480
  var DistributionPointName = class DistributionPointName2 {
53481
+ fullName;
53482
+ nameRelativeToCRLIssuer;
53035
53483
  constructor(params = {}) {
53036
53484
  Object.assign(this, params);
53037
53485
  }
53038
53486
  };
53039
53487
  __decorate([
53040
- AsnProp({ type: GeneralName, context: 0, repeated: "sequence", implicit: true })
53488
+ AsnProp({
53489
+ type: GeneralName,
53490
+ context: 0,
53491
+ repeated: "sequence",
53492
+ implicit: true
53493
+ })
53041
53494
  ], DistributionPointName.prototype, "fullName", void 0);
53042
53495
  __decorate([
53043
- AsnProp({ type: RelativeDistinguishedName, context: 1, implicit: true })
53496
+ AsnProp({
53497
+ type: RelativeDistinguishedName,
53498
+ context: 1,
53499
+ implicit: true
53500
+ })
53044
53501
  ], DistributionPointName.prototype, "nameRelativeToCRLIssuer", void 0);
53045
53502
  DistributionPointName = __decorate([
53046
53503
  AsnType({ type: AsnTypeTypes.Choice })
53047
53504
  ], DistributionPointName);
53048
53505
  var DistributionPoint = class {
53506
+ distributionPoint;
53507
+ reasons;
53508
+ cRLIssuer;
53049
53509
  constructor(params = {}) {
53050
53510
  Object.assign(this, params);
53051
53511
  }
53052
53512
  };
53053
53513
  __decorate([
53054
- AsnProp({ type: DistributionPointName, context: 0, optional: true })
53514
+ AsnProp({
53515
+ type: DistributionPointName,
53516
+ context: 0,
53517
+ optional: true
53518
+ })
53055
53519
  ], DistributionPoint.prototype, "distributionPoint", void 0);
53056
53520
  __decorate([
53057
- AsnProp({ type: Reason, context: 1, optional: true, implicit: true })
53521
+ AsnProp({
53522
+ type: Reason,
53523
+ context: 1,
53524
+ optional: true,
53525
+ implicit: true
53526
+ })
53058
53527
  ], DistributionPoint.prototype, "reasons", void 0);
53059
53528
  __decorate([
53060
- AsnProp({ type: GeneralName, context: 2, optional: true, repeated: "sequence", implicit: true })
53529
+ AsnProp({
53530
+ type: GeneralName,
53531
+ context: 2,
53532
+ optional: true,
53533
+ repeated: "sequence",
53534
+ implicit: true
53535
+ })
53061
53536
  ], DistributionPoint.prototype, "cRLIssuer", void 0);
53062
53537
  var CRLDistributionPoints = CRLDistributionPoints_1 = class CRLDistributionPoints2 extends AsnArray {
53063
53538
  constructor(items) {
@@ -53066,7 +53541,10 @@ var CRLDistributionPoints = CRLDistributionPoints_1 = class CRLDistributionPoint
53066
53541
  }
53067
53542
  };
53068
53543
  CRLDistributionPoints = CRLDistributionPoints_1 = __decorate([
53069
- AsnType({ type: AsnTypeTypes.Sequence, itemType: DistributionPoint })
53544
+ AsnType({
53545
+ type: AsnTypeTypes.Sequence,
53546
+ itemType: DistributionPoint
53547
+ })
53070
53548
  ], CRLDistributionPoints);
53071
53549
 
53072
53550
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_freshest.js
@@ -53080,24 +53558,33 @@ var FreshestCRL = FreshestCRL_1 = class FreshestCRL2 extends CRLDistributionPoin
53080
53558
  }
53081
53559
  };
53082
53560
  FreshestCRL = FreshestCRL_1 = __decorate([
53083
- AsnType({ type: AsnTypeTypes.Sequence, itemType: DistributionPoint })
53561
+ AsnType({
53562
+ type: AsnTypeTypes.Sequence,
53563
+ itemType: DistributionPoint
53564
+ })
53084
53565
  ], FreshestCRL);
53085
53566
 
53086
53567
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_issuing_distribution_point.js
53087
53568
  init_inject_buffer();
53088
53569
  var id_ce_issuingDistributionPoint = `${id_ce}.28`;
53089
53570
  var IssuingDistributionPoint = class _IssuingDistributionPoint {
53571
+ static ONLY = false;
53572
+ distributionPoint;
53573
+ onlyContainsUserCerts = _IssuingDistributionPoint.ONLY;
53574
+ onlyContainsCACerts = _IssuingDistributionPoint.ONLY;
53575
+ onlySomeReasons;
53576
+ indirectCRL = _IssuingDistributionPoint.ONLY;
53577
+ onlyContainsAttributeCerts = _IssuingDistributionPoint.ONLY;
53090
53578
  constructor(params = {}) {
53091
- this.onlyContainsUserCerts = _IssuingDistributionPoint.ONLY;
53092
- this.onlyContainsCACerts = _IssuingDistributionPoint.ONLY;
53093
- this.indirectCRL = _IssuingDistributionPoint.ONLY;
53094
- this.onlyContainsAttributeCerts = _IssuingDistributionPoint.ONLY;
53095
53579
  Object.assign(this, params);
53096
53580
  }
53097
53581
  };
53098
- IssuingDistributionPoint.ONLY = false;
53099
53582
  __decorate([
53100
- AsnProp({ type: DistributionPointName, context: 0, optional: true })
53583
+ AsnProp({
53584
+ type: DistributionPointName,
53585
+ context: 0,
53586
+ optional: true
53587
+ })
53101
53588
  ], IssuingDistributionPoint.prototype, "distributionPoint", void 0);
53102
53589
  __decorate([
53103
53590
  AsnProp({
@@ -53116,7 +53603,12 @@ __decorate([
53116
53603
  })
53117
53604
  ], IssuingDistributionPoint.prototype, "onlyContainsCACerts", void 0);
53118
53605
  __decorate([
53119
- AsnProp({ type: Reason, context: 3, optional: true, implicit: true })
53606
+ AsnProp({
53607
+ type: Reason,
53608
+ context: 3,
53609
+ optional: true,
53610
+ implicit: true
53611
+ })
53120
53612
  ], IssuingDistributionPoint.prototype, "onlySomeReasons", void 0);
53121
53613
  __decorate([
53122
53614
  AsnProp({
@@ -53152,8 +53644,8 @@ var CRLReasons;
53152
53644
  CRLReasons2[CRLReasons2["aACompromise"] = 10] = "aACompromise";
53153
53645
  })(CRLReasons || (CRLReasons = {}));
53154
53646
  var CRLReason = class CRLReason2 {
53647
+ reason = CRLReasons.unspecified;
53155
53648
  constructor(reason = CRLReasons.unspecified) {
53156
- this.reason = CRLReasons.unspecified;
53157
53649
  this.reason = reason;
53158
53650
  }
53159
53651
  toJSON() {
@@ -53181,7 +53673,10 @@ var ExtendedKeyUsage = ExtendedKeyUsage_1 = class ExtendedKeyUsage2 extends AsnA
53181
53673
  }
53182
53674
  };
53183
53675
  ExtendedKeyUsage = ExtendedKeyUsage_1 = __decorate([
53184
- AsnType({ type: AsnTypeTypes.Sequence, itemType: AsnPropTypes.ObjectIdentifier })
53676
+ AsnType({
53677
+ type: AsnTypeTypes.Sequence,
53678
+ itemType: AsnPropTypes.ObjectIdentifier
53679
+ })
53185
53680
  ], ExtendedKeyUsage);
53186
53681
  var anyExtendedKeyUsage = `${id_ce_extKeyUsage}.0`;
53187
53682
  var id_kp_serverAuth = `${id_kp}.1`;
@@ -53195,12 +53690,16 @@ var id_kp_OCSPSigning = `${id_kp}.9`;
53195
53690
  init_inject_buffer();
53196
53691
  var id_ce_inhibitAnyPolicy = `${id_ce}.54`;
53197
53692
  var InhibitAnyPolicy = class InhibitAnyPolicy2 {
53693
+ value;
53198
53694
  constructor(value = new ArrayBuffer(0)) {
53199
53695
  this.value = value;
53200
53696
  }
53201
53697
  };
53202
53698
  __decorate([
53203
- AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
53699
+ AsnProp({
53700
+ type: AsnPropTypes.Integer,
53701
+ converter: AsnIntegerArrayBufferConverter
53702
+ })
53204
53703
  ], InhibitAnyPolicy.prototype, "value", void 0);
53205
53704
  InhibitAnyPolicy = __decorate([
53206
53705
  AsnType({ type: AsnTypeTypes.Choice })
@@ -53210,8 +53709,8 @@ InhibitAnyPolicy = __decorate([
53210
53709
  init_inject_buffer();
53211
53710
  var id_ce_invalidityDate = `${id_ce}.24`;
53212
53711
  var InvalidityDate = class InvalidityDate2 {
53712
+ value = /* @__PURE__ */ new Date();
53213
53713
  constructor(value) {
53214
- this.value = /* @__PURE__ */ new Date();
53215
53714
  if (value) {
53216
53715
  this.value = value;
53217
53716
  }
@@ -53296,9 +53795,10 @@ init_inject_buffer();
53296
53795
  var GeneralSubtrees_1;
53297
53796
  var id_ce_nameConstraints = `${id_ce}.30`;
53298
53797
  var GeneralSubtree = class {
53798
+ base = new GeneralName();
53799
+ minimum = 0;
53800
+ maximum;
53299
53801
  constructor(params = {}) {
53300
- this.base = new GeneralName();
53301
- this.minimum = 0;
53302
53802
  Object.assign(this, params);
53303
53803
  }
53304
53804
  };
@@ -53306,10 +53806,20 @@ __decorate([
53306
53806
  AsnProp({ type: GeneralName })
53307
53807
  ], GeneralSubtree.prototype, "base", void 0);
53308
53808
  __decorate([
53309
- AsnProp({ type: AsnPropTypes.Integer, context: 0, defaultValue: 0, implicit: true })
53809
+ AsnProp({
53810
+ type: AsnPropTypes.Integer,
53811
+ context: 0,
53812
+ defaultValue: 0,
53813
+ implicit: true
53814
+ })
53310
53815
  ], GeneralSubtree.prototype, "minimum", void 0);
53311
53816
  __decorate([
53312
- AsnProp({ type: AsnPropTypes.Integer, context: 1, optional: true, implicit: true })
53817
+ AsnProp({
53818
+ type: AsnPropTypes.Integer,
53819
+ context: 1,
53820
+ optional: true,
53821
+ implicit: true
53822
+ })
53313
53823
  ], GeneralSubtree.prototype, "maximum", void 0);
53314
53824
  var GeneralSubtrees = GeneralSubtrees_1 = class GeneralSubtrees2 extends AsnArray {
53315
53825
  constructor(items) {
@@ -53318,24 +53828,41 @@ var GeneralSubtrees = GeneralSubtrees_1 = class GeneralSubtrees2 extends AsnArra
53318
53828
  }
53319
53829
  };
53320
53830
  GeneralSubtrees = GeneralSubtrees_1 = __decorate([
53321
- AsnType({ type: AsnTypeTypes.Sequence, itemType: GeneralSubtree })
53831
+ AsnType({
53832
+ type: AsnTypeTypes.Sequence,
53833
+ itemType: GeneralSubtree
53834
+ })
53322
53835
  ], GeneralSubtrees);
53323
53836
  var NameConstraints = class {
53837
+ permittedSubtrees;
53838
+ excludedSubtrees;
53324
53839
  constructor(params = {}) {
53325
53840
  Object.assign(this, params);
53326
53841
  }
53327
53842
  };
53328
53843
  __decorate([
53329
- AsnProp({ type: GeneralSubtrees, context: 0, optional: true, implicit: true })
53844
+ AsnProp({
53845
+ type: GeneralSubtrees,
53846
+ context: 0,
53847
+ optional: true,
53848
+ implicit: true
53849
+ })
53330
53850
  ], NameConstraints.prototype, "permittedSubtrees", void 0);
53331
53851
  __decorate([
53332
- AsnProp({ type: GeneralSubtrees, context: 1, optional: true, implicit: true })
53852
+ AsnProp({
53853
+ type: GeneralSubtrees,
53854
+ context: 1,
53855
+ optional: true,
53856
+ implicit: true
53857
+ })
53333
53858
  ], NameConstraints.prototype, "excludedSubtrees", void 0);
53334
53859
 
53335
53860
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/extensions/policy_constraints.js
53336
53861
  init_inject_buffer();
53337
53862
  var id_ce_policyConstraints = `${id_ce}.36`;
53338
53863
  var PolicyConstraints = class {
53864
+ requireExplicitPolicy;
53865
+ inhibitPolicyMapping;
53339
53866
  constructor(params = {}) {
53340
53867
  Object.assign(this, params);
53341
53868
  }
@@ -53364,9 +53891,9 @@ init_inject_buffer();
53364
53891
  var PolicyMappings_1;
53365
53892
  var id_ce_policyMappings = `${id_ce}.33`;
53366
53893
  var PolicyMapping = class {
53894
+ issuerDomainPolicy = "";
53895
+ subjectDomainPolicy = "";
53367
53896
  constructor(params = {}) {
53368
- this.issuerDomainPolicy = "";
53369
- this.subjectDomainPolicy = "";
53370
53897
  Object.assign(this, params);
53371
53898
  }
53372
53899
  };
@@ -53383,7 +53910,10 @@ var PolicyMappings = PolicyMappings_1 = class PolicyMappings2 extends AsnArray {
53383
53910
  }
53384
53911
  };
53385
53912
  PolicyMappings = PolicyMappings_1 = __decorate([
53386
- AsnType({ type: AsnTypeTypes.Sequence, itemType: PolicyMapping })
53913
+ AsnType({
53914
+ type: AsnTypeTypes.Sequence,
53915
+ itemType: PolicyMapping
53916
+ })
53387
53917
  ], PolicyMappings);
53388
53918
 
53389
53919
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_alternative_name.js
@@ -53406,9 +53936,9 @@ init_inject_buffer();
53406
53936
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/attribute.js
53407
53937
  init_inject_buffer();
53408
53938
  var Attribute = class {
53939
+ type = "";
53940
+ values = [];
53409
53941
  constructor(params = {}) {
53410
- this.type = "";
53411
- this.values = [];
53412
53942
  Object.assign(this, params);
53413
53943
  }
53414
53944
  };
@@ -53416,7 +53946,10 @@ __decorate([
53416
53946
  AsnProp({ type: AsnPropTypes.ObjectIdentifier })
53417
53947
  ], Attribute.prototype, "type", void 0);
53418
53948
  __decorate([
53419
- AsnProp({ type: AsnPropTypes.Any, repeated: "set" })
53949
+ AsnProp({
53950
+ type: AsnPropTypes.Any,
53951
+ repeated: "set"
53952
+ })
53420
53953
  ], Attribute.prototype, "values", void 0);
53421
53954
 
53422
53955
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_directory_attributes.js
@@ -53429,7 +53962,10 @@ var SubjectDirectoryAttributes = SubjectDirectoryAttributes_1 = class SubjectDir
53429
53962
  }
53430
53963
  };
53431
53964
  SubjectDirectoryAttributes = SubjectDirectoryAttributes_1 = __decorate([
53432
- AsnType({ type: AsnTypeTypes.Sequence, itemType: Attribute })
53965
+ AsnType({
53966
+ type: AsnTypeTypes.Sequence,
53967
+ itemType: Attribute
53968
+ })
53433
53969
  ], SubjectDirectoryAttributes);
53434
53970
 
53435
53971
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_key_identifier.js
@@ -53442,15 +53978,27 @@ var SubjectKeyIdentifier = class extends KeyIdentifier {
53442
53978
  init_inject_buffer();
53443
53979
  var id_ce_privateKeyUsagePeriod = `${id_ce}.16`;
53444
53980
  var PrivateKeyUsagePeriod = class {
53981
+ notBefore;
53982
+ notAfter;
53445
53983
  constructor(params = {}) {
53446
53984
  Object.assign(this, params);
53447
53985
  }
53448
53986
  };
53449
53987
  __decorate([
53450
- AsnProp({ type: AsnPropTypes.GeneralizedTime, context: 0, implicit: true, optional: true })
53988
+ AsnProp({
53989
+ type: AsnPropTypes.GeneralizedTime,
53990
+ context: 0,
53991
+ implicit: true,
53992
+ optional: true
53993
+ })
53451
53994
  ], PrivateKeyUsagePeriod.prototype, "notBefore", void 0);
53452
53995
  __decorate([
53453
- AsnProp({ type: AsnPropTypes.GeneralizedTime, context: 1, implicit: true, optional: true })
53996
+ AsnProp({
53997
+ type: AsnPropTypes.GeneralizedTime,
53998
+ context: 1,
53999
+ implicit: true,
54000
+ optional: true
54001
+ })
53454
54002
  ], PrivateKeyUsagePeriod.prototype, "notAfter", void 0);
53455
54003
 
53456
54004
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/extensions/entrust_version_info.js
@@ -53481,9 +54029,9 @@ var EntrustInfo = class extends BitString2 {
53481
54029
  }
53482
54030
  };
53483
54031
  var EntrustVersionInfo = class {
54032
+ entrustVers = "";
54033
+ entrustInfoFlags = new EntrustInfo();
53484
54034
  constructor(params = {}) {
53485
- this.entrustVers = "";
53486
- this.entrustInfoFlags = new EntrustInfo();
53487
54035
  Object.assign(this, params);
53488
54036
  }
53489
54037
  };
@@ -53505,25 +54053,26 @@ var SubjectInfoAccessSyntax = SubjectInfoAccessSyntax_1 = class SubjectInfoAcces
53505
54053
  }
53506
54054
  };
53507
54055
  SubjectInfoAccessSyntax = SubjectInfoAccessSyntax_1 = __decorate([
53508
- AsnType({ type: AsnTypeTypes.Sequence, itemType: AccessDescription })
54056
+ AsnType({
54057
+ type: AsnTypeTypes.Sequence,
54058
+ itemType: AccessDescription
54059
+ })
53509
54060
  ], SubjectInfoAccessSyntax);
53510
54061
 
53511
54062
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/algorithm_identifier.js
53512
54063
  init_inject_buffer();
53513
- var pvtsutils2 = __toESM(require_build());
53514
54064
  var AlgorithmIdentifier = class _AlgorithmIdentifier {
54065
+ algorithm = "";
54066
+ parameters;
53515
54067
  constructor(params = {}) {
53516
- this.algorithm = "";
53517
54068
  Object.assign(this, params);
53518
54069
  }
53519
54070
  isEqual(data) {
53520
- return data instanceof _AlgorithmIdentifier && data.algorithm == this.algorithm && (data.parameters && this.parameters && pvtsutils2.isEqual(data.parameters, this.parameters) || data.parameters === this.parameters);
54071
+ return data instanceof _AlgorithmIdentifier && data.algorithm == this.algorithm && (data.parameters && this.parameters && equal(data.parameters, this.parameters) || data.parameters === this.parameters);
53521
54072
  }
53522
54073
  };
53523
54074
  __decorate([
53524
- AsnProp({
53525
- type: AsnPropTypes.ObjectIdentifier
53526
- })
54075
+ AsnProp({ type: AsnPropTypes.ObjectIdentifier })
53527
54076
  ], AlgorithmIdentifier.prototype, "algorithm", void 0);
53528
54077
  __decorate([
53529
54078
  AsnProp({
@@ -53541,9 +54090,9 @@ init_inject_buffer();
53541
54090
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/subject_public_key_info.js
53542
54091
  init_inject_buffer();
53543
54092
  var SubjectPublicKeyInfo = class {
54093
+ algorithm = new AlgorithmIdentifier();
54094
+ subjectPublicKey = new ArrayBuffer(0);
53544
54095
  constructor(params = {}) {
53545
- this.algorithm = new AlgorithmIdentifier();
53546
- this.subjectPublicKey = new ArrayBuffer(0);
53547
54096
  Object.assign(this, params);
53548
54097
  }
53549
54098
  };
@@ -53560,10 +54109,13 @@ init_inject_buffer();
53560
54109
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/time.js
53561
54110
  init_inject_buffer();
53562
54111
  var Time = class Time2 {
54112
+ utcTime;
54113
+ generalTime;
53563
54114
  constructor(time) {
53564
54115
  if (time) {
53565
54116
  if (typeof time === "string" || typeof time === "number" || time instanceof Date) {
53566
54117
  const date = new Date(time);
54118
+ date.setMilliseconds(0);
53567
54119
  if (date.getUTCFullYear() > 2049) {
53568
54120
  this.generalTime = date;
53569
54121
  } else {
@@ -53583,14 +54135,10 @@ var Time = class Time2 {
53583
54135
  }
53584
54136
  };
53585
54137
  __decorate([
53586
- AsnProp({
53587
- type: AsnPropTypes.UTCTime
53588
- })
54138
+ AsnProp({ type: AsnPropTypes.UTCTime })
53589
54139
  ], Time.prototype, "utcTime", void 0);
53590
54140
  __decorate([
53591
- AsnProp({
53592
- type: AsnPropTypes.GeneralizedTime
53593
- })
54141
+ AsnProp({ type: AsnPropTypes.GeneralizedTime })
53594
54142
  ], Time.prototype, "generalTime", void 0);
53595
54143
  Time = __decorate([
53596
54144
  AsnType({ type: AsnTypeTypes.Choice })
@@ -53598,9 +54146,9 @@ Time = __decorate([
53598
54146
 
53599
54147
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/validity.js
53600
54148
  var Validity = class {
54149
+ notBefore = new Time(/* @__PURE__ */ new Date());
54150
+ notAfter = new Time(/* @__PURE__ */ new Date());
53601
54151
  constructor(params) {
53602
- this.notBefore = new Time(/* @__PURE__ */ new Date());
53603
- this.notAfter = new Time(/* @__PURE__ */ new Date());
53604
54152
  if (params) {
53605
54153
  this.notBefore = new Time(params.notBefore);
53606
54154
  this.notAfter = new Time(params.notAfter);
@@ -53618,14 +54166,14 @@ __decorate([
53618
54166
  init_inject_buffer();
53619
54167
  var Extensions_1;
53620
54168
  var Extension = class _Extension {
54169
+ static CRITICAL = false;
54170
+ extnID = "";
54171
+ critical = _Extension.CRITICAL;
54172
+ extnValue = new OctetString2();
53621
54173
  constructor(params = {}) {
53622
- this.extnID = "";
53623
- this.critical = _Extension.CRITICAL;
53624
- this.extnValue = new OctetString2();
53625
54174
  Object.assign(this, params);
53626
54175
  }
53627
54176
  };
53628
- Extension.CRITICAL = false;
53629
54177
  __decorate([
53630
54178
  AsnProp({ type: AsnPropTypes.ObjectIdentifier })
53631
54179
  ], Extension.prototype, "extnID", void 0);
@@ -53645,7 +54193,10 @@ var Extensions = Extensions_1 = class Extensions2 extends AsnArray {
53645
54193
  }
53646
54194
  };
53647
54195
  Extensions = Extensions_1 = __decorate([
53648
- AsnType({ type: AsnTypeTypes.Sequence, itemType: Extension })
54196
+ AsnType({
54197
+ type: AsnTypeTypes.Sequence,
54198
+ itemType: Extension
54199
+ })
53649
54200
  ], Extensions);
53650
54201
 
53651
54202
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/types.js
@@ -53659,14 +54210,17 @@ var Version;
53659
54210
 
53660
54211
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/tbs_certificate.js
53661
54212
  var TBSCertificate = class {
54213
+ version = Version.v1;
54214
+ serialNumber = new ArrayBuffer(0);
54215
+ signature = new AlgorithmIdentifier();
54216
+ issuer = new Name();
54217
+ validity = new Validity();
54218
+ subject = new Name();
54219
+ subjectPublicKeyInfo = new SubjectPublicKeyInfo();
54220
+ issuerUniqueID;
54221
+ subjectUniqueID;
54222
+ extensions;
53662
54223
  constructor(params = {}) {
53663
- this.version = Version.v1;
53664
- this.serialNumber = new ArrayBuffer(0);
53665
- this.signature = new AlgorithmIdentifier();
53666
- this.issuer = new Name();
53667
- this.validity = new Validity();
53668
- this.subject = new Name();
53669
- this.subjectPublicKeyInfo = new SubjectPublicKeyInfo();
53670
54224
  Object.assign(this, params);
53671
54225
  }
53672
54226
  };
@@ -53707,23 +54261,36 @@ __decorate([
53707
54261
  })
53708
54262
  ], TBSCertificate.prototype, "issuerUniqueID", void 0);
53709
54263
  __decorate([
53710
- AsnProp({ type: AsnPropTypes.BitString, context: 2, implicit: true, optional: true })
54264
+ AsnProp({
54265
+ type: AsnPropTypes.BitString,
54266
+ context: 2,
54267
+ implicit: true,
54268
+ optional: true
54269
+ })
53711
54270
  ], TBSCertificate.prototype, "subjectUniqueID", void 0);
53712
54271
  __decorate([
53713
- AsnProp({ type: Extensions, context: 3, optional: true })
54272
+ AsnProp({
54273
+ type: Extensions,
54274
+ context: 3,
54275
+ optional: true
54276
+ })
53714
54277
  ], TBSCertificate.prototype, "extensions", void 0);
53715
54278
 
53716
54279
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/certificate.js
53717
54280
  var Certificate = class {
54281
+ tbsCertificate = new TBSCertificate();
54282
+ tbsCertificateRaw;
54283
+ signatureAlgorithm = new AlgorithmIdentifier();
54284
+ signatureValue = new ArrayBuffer(0);
53718
54285
  constructor(params = {}) {
53719
- this.tbsCertificate = new TBSCertificate();
53720
- this.signatureAlgorithm = new AlgorithmIdentifier();
53721
- this.signatureValue = new ArrayBuffer(0);
53722
54286
  Object.assign(this, params);
53723
54287
  }
53724
54288
  };
53725
54289
  __decorate([
53726
- AsnProp({ type: TBSCertificate, raw: true })
54290
+ AsnProp({
54291
+ type: TBSCertificate,
54292
+ raw: true
54293
+ })
53727
54294
  ], Certificate.prototype, "tbsCertificate", void 0);
53728
54295
  __decorate([
53729
54296
  AsnProp({ type: AlgorithmIdentifier })
@@ -53738,31 +54305,46 @@ init_inject_buffer();
53738
54305
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/tbs_cert_list.js
53739
54306
  init_inject_buffer();
53740
54307
  var RevokedCertificate = class {
54308
+ userCertificate = new ArrayBuffer(0);
54309
+ revocationDate = new Time();
54310
+ crlEntryExtensions;
53741
54311
  constructor(params = {}) {
53742
- this.userCertificate = new ArrayBuffer(0);
53743
- this.revocationDate = new Time();
53744
54312
  Object.assign(this, params);
53745
54313
  }
53746
54314
  };
53747
54315
  __decorate([
53748
- AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
54316
+ AsnProp({
54317
+ type: AsnPropTypes.Integer,
54318
+ converter: AsnIntegerArrayBufferConverter
54319
+ })
53749
54320
  ], RevokedCertificate.prototype, "userCertificate", void 0);
53750
54321
  __decorate([
53751
54322
  AsnProp({ type: Time })
53752
54323
  ], RevokedCertificate.prototype, "revocationDate", void 0);
53753
54324
  __decorate([
53754
- AsnProp({ type: Extension, optional: true, repeated: "sequence" })
54325
+ AsnProp({
54326
+ type: Extension,
54327
+ optional: true,
54328
+ repeated: "sequence"
54329
+ })
53755
54330
  ], RevokedCertificate.prototype, "crlEntryExtensions", void 0);
53756
54331
  var TBSCertList = class {
54332
+ version;
54333
+ signature = new AlgorithmIdentifier();
54334
+ issuer = new Name();
54335
+ thisUpdate = new Time();
54336
+ nextUpdate;
54337
+ revokedCertificates;
54338
+ crlExtensions;
53757
54339
  constructor(params = {}) {
53758
- this.signature = new AlgorithmIdentifier();
53759
- this.issuer = new Name();
53760
- this.thisUpdate = new Time();
53761
54340
  Object.assign(this, params);
53762
54341
  }
53763
54342
  };
53764
54343
  __decorate([
53765
- AsnProp({ type: AsnPropTypes.Integer, optional: true })
54344
+ AsnProp({
54345
+ type: AsnPropTypes.Integer,
54346
+ optional: true
54347
+ })
53766
54348
  ], TBSCertList.prototype, "version", void 0);
53767
54349
  __decorate([
53768
54350
  AsnProp({ type: AlgorithmIdentifier })
@@ -53774,26 +54356,42 @@ __decorate([
53774
54356
  AsnProp({ type: Time })
53775
54357
  ], TBSCertList.prototype, "thisUpdate", void 0);
53776
54358
  __decorate([
53777
- AsnProp({ type: Time, optional: true })
54359
+ AsnProp({
54360
+ type: Time,
54361
+ optional: true
54362
+ })
53778
54363
  ], TBSCertList.prototype, "nextUpdate", void 0);
53779
54364
  __decorate([
53780
- AsnProp({ type: RevokedCertificate, repeated: "sequence", optional: true })
54365
+ AsnProp({
54366
+ type: RevokedCertificate,
54367
+ repeated: "sequence",
54368
+ optional: true
54369
+ })
53781
54370
  ], TBSCertList.prototype, "revokedCertificates", void 0);
53782
54371
  __decorate([
53783
- AsnProp({ type: Extension, optional: true, context: 0, repeated: "sequence" })
54372
+ AsnProp({
54373
+ type: Extension,
54374
+ optional: true,
54375
+ context: 0,
54376
+ repeated: "sequence"
54377
+ })
53784
54378
  ], TBSCertList.prototype, "crlExtensions", void 0);
53785
54379
 
53786
54380
  // ../../node_modules/@peculiar/asn1-x509/build/es2015/certificate_list.js
53787
54381
  var CertificateList = class {
54382
+ tbsCertList = new TBSCertList();
54383
+ tbsCertListRaw;
54384
+ signatureAlgorithm = new AlgorithmIdentifier();
54385
+ signature = new ArrayBuffer(0);
53788
54386
  constructor(params = {}) {
53789
- this.tbsCertList = new TBSCertList();
53790
- this.signatureAlgorithm = new AlgorithmIdentifier();
53791
- this.signature = new ArrayBuffer(0);
53792
54387
  Object.assign(this, params);
53793
54388
  }
53794
54389
  };
53795
54390
  __decorate([
53796
- AsnProp({ type: TBSCertList, raw: true })
54391
+ AsnProp({
54392
+ type: TBSCertList,
54393
+ raw: true
54394
+ })
53797
54395
  ], CertificateList.prototype, "tbsCertList", void 0);
53798
54396
  __decorate([
53799
54397
  AsnProp({ type: AlgorithmIdentifier })
@@ -53803,7 +54401,7 @@ __decorate([
53803
54401
  ], CertificateList.prototype, "signature", void 0);
53804
54402
 
53805
54403
  // ../../node_modules/@peculiar/x509/build/x509.es.js
53806
- var import_pvtsutils3 = __toESM(require_build());
54404
+ var import_pvtsutils = __toESM(require_build());
53807
54405
 
53808
54406
  // ../../node_modules/@peculiar/asn1-cms/build/es2015/index.js
53809
54407
  init_inject_buffer();
@@ -53823,9 +54421,9 @@ init_inject_buffer();
53823
54421
  // ../../node_modules/@peculiar/asn1-cms/build/es2015/issuer_and_serial_number.js
53824
54422
  init_inject_buffer();
53825
54423
  var IssuerAndSerialNumber = class {
54424
+ issuer = new Name();
54425
+ serialNumber = new ArrayBuffer(0);
53826
54426
  constructor(params = {}) {
53827
- this.issuer = new Name();
53828
- this.serialNumber = new ArrayBuffer(0);
53829
54427
  Object.assign(this, params);
53830
54428
  }
53831
54429
  };
@@ -53833,17 +54431,26 @@ __decorate([
53833
54431
  AsnProp({ type: Name })
53834
54432
  ], IssuerAndSerialNumber.prototype, "issuer", void 0);
53835
54433
  __decorate([
53836
- AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
54434
+ AsnProp({
54435
+ type: AsnPropTypes.Integer,
54436
+ converter: AsnIntegerArrayBufferConverter
54437
+ })
53837
54438
  ], IssuerAndSerialNumber.prototype, "serialNumber", void 0);
53838
54439
 
53839
54440
  // ../../node_modules/@peculiar/asn1-cms/build/es2015/signer_identifier.js
53840
54441
  var SignerIdentifier = class SignerIdentifier2 {
54442
+ subjectKeyIdentifier;
54443
+ issuerAndSerialNumber;
53841
54444
  constructor(params = {}) {
53842
54445
  Object.assign(this, params);
53843
54446
  }
53844
54447
  };
53845
54448
  __decorate([
53846
- AsnProp({ type: SubjectKeyIdentifier, context: 0, implicit: true })
54449
+ AsnProp({
54450
+ type: SubjectKeyIdentifier,
54451
+ context: 0,
54452
+ implicit: true
54453
+ })
53847
54454
  ], SignerIdentifier.prototype, "subjectKeyIdentifier", void 0);
53848
54455
  __decorate([
53849
54456
  AsnProp({ type: IssuerAndSerialNumber })
@@ -53897,9 +54504,9 @@ KeyDerivationAlgorithmIdentifier = __decorate([
53897
54504
  // ../../node_modules/@peculiar/asn1-cms/build/es2015/attribute.js
53898
54505
  init_inject_buffer();
53899
54506
  var Attribute2 = class {
54507
+ attrType = "";
54508
+ attrValues = [];
53900
54509
  constructor(params = {}) {
53901
- this.attrType = "";
53902
- this.attrValues = [];
53903
54510
  Object.assign(this, params);
53904
54511
  }
53905
54512
  };
@@ -53907,18 +54514,24 @@ __decorate([
53907
54514
  AsnProp({ type: AsnPropTypes.ObjectIdentifier })
53908
54515
  ], Attribute2.prototype, "attrType", void 0);
53909
54516
  __decorate([
53910
- AsnProp({ type: AsnPropTypes.Any, repeated: "set" })
54517
+ AsnProp({
54518
+ type: AsnPropTypes.Any,
54519
+ repeated: "set"
54520
+ })
53911
54521
  ], Attribute2.prototype, "attrValues", void 0);
53912
54522
 
53913
54523
  // ../../node_modules/@peculiar/asn1-cms/build/es2015/signer_info.js
53914
54524
  var SignerInfos_1;
53915
54525
  var SignerInfo = class {
54526
+ version = CMSVersion.v0;
54527
+ sid = new SignerIdentifier();
54528
+ digestAlgorithm = new DigestAlgorithmIdentifier();
54529
+ signedAttrs;
54530
+ signedAttrsRaw;
54531
+ signatureAlgorithm = new SignatureAlgorithmIdentifier();
54532
+ signature = new OctetString2();
54533
+ unsignedAttrs;
53916
54534
  constructor(params = {}) {
53917
- this.version = CMSVersion.v0;
53918
- this.sid = new SignerIdentifier();
53919
- this.digestAlgorithm = new DigestAlgorithmIdentifier();
53920
- this.signatureAlgorithm = new SignatureAlgorithmIdentifier();
53921
- this.signature = new OctetString2();
53922
54535
  Object.assign(this, params);
53923
54536
  }
53924
54537
  };
@@ -53948,7 +54561,13 @@ __decorate([
53948
54561
  AsnProp({ type: OctetString2 })
53949
54562
  ], SignerInfo.prototype, "signature", void 0);
53950
54563
  __decorate([
53951
- AsnProp({ type: Attribute2, repeated: "set", context: 1, implicit: true, optional: true })
54564
+ AsnProp({
54565
+ type: Attribute2,
54566
+ repeated: "set",
54567
+ context: 1,
54568
+ implicit: true,
54569
+ optional: true
54570
+ })
53952
54571
  ], SignerInfo.prototype, "unsignedAttrs", void 0);
53953
54572
  var SignerInfos = SignerInfos_1 = class SignerInfos2 extends AsnArray {
53954
54573
  constructor(items) {
@@ -53957,7 +54576,10 @@ var SignerInfos = SignerInfos_1 = class SignerInfos2 extends AsnArray {
53957
54576
  }
53958
54577
  };
53959
54578
  SignerInfos = SignerInfos_1 = __decorate([
53960
- AsnType({ type: AsnTypeTypes.Set, itemType: SignerInfo })
54579
+ AsnType({
54580
+ type: AsnTypeTypes.Set,
54581
+ itemType: SignerInfo
54582
+ })
53961
54583
  ], SignerInfos);
53962
54584
 
53963
54585
  // ../../node_modules/@peculiar/asn1-cms/build/es2015/attributes/counter_signature.js
@@ -53987,10 +54609,10 @@ init_inject_buffer();
53987
54609
  // ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/aa_clear_attrs.js
53988
54610
  init_inject_buffer();
53989
54611
  var ACClearAttrs = class {
54612
+ acIssuer = new GeneralName();
54613
+ acSerial = 0;
54614
+ attrs = [];
53990
54615
  constructor(params = {}) {
53991
- this.acIssuer = new GeneralName();
53992
- this.acSerial = 0;
53993
- this.attrs = [];
53994
54616
  Object.assign(this, params);
53995
54617
  }
53996
54618
  };
@@ -54001,7 +54623,10 @@ __decorate([
54001
54623
  AsnProp({ type: AsnPropTypes.Integer })
54002
54624
  ], ACClearAttrs.prototype, "acSerial", void 0);
54003
54625
  __decorate([
54004
- AsnProp({ type: Attribute, repeated: "sequence" })
54626
+ AsnProp({
54627
+ type: Attribute,
54628
+ repeated: "sequence"
54629
+ })
54005
54630
  ], ACClearAttrs.prototype, "attrs", void 0);
54006
54631
 
54007
54632
  // ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/aa_controls.js
@@ -54017,27 +54642,49 @@ var AttrSpec = AttrSpec_1 = class AttrSpec2 extends AsnArray {
54017
54642
  }
54018
54643
  };
54019
54644
  AttrSpec = AttrSpec_1 = __decorate([
54020
- AsnType({ type: AsnTypeTypes.Sequence, itemType: AsnPropTypes.ObjectIdentifier })
54645
+ AsnType({
54646
+ type: AsnTypeTypes.Sequence,
54647
+ itemType: AsnPropTypes.ObjectIdentifier
54648
+ })
54021
54649
  ], AttrSpec);
54022
54650
 
54023
54651
  // ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/aa_controls.js
54024
54652
  var AAControls = class {
54653
+ pathLenConstraint;
54654
+ permittedAttrs;
54655
+ excludedAttrs;
54656
+ permitUnSpecified = true;
54025
54657
  constructor(params = {}) {
54026
- this.permitUnSpecified = true;
54027
54658
  Object.assign(this, params);
54028
54659
  }
54029
54660
  };
54030
54661
  __decorate([
54031
- AsnProp({ type: AsnPropTypes.Integer, optional: true })
54662
+ AsnProp({
54663
+ type: AsnPropTypes.Integer,
54664
+ optional: true
54665
+ })
54032
54666
  ], AAControls.prototype, "pathLenConstraint", void 0);
54033
54667
  __decorate([
54034
- AsnProp({ type: AttrSpec, implicit: true, context: 0, optional: true })
54668
+ AsnProp({
54669
+ type: AttrSpec,
54670
+ implicit: true,
54671
+ context: 0,
54672
+ optional: true
54673
+ })
54035
54674
  ], AAControls.prototype, "permittedAttrs", void 0);
54036
54675
  __decorate([
54037
- AsnProp({ type: AttrSpec, implicit: true, context: 1, optional: true })
54676
+ AsnProp({
54677
+ type: AttrSpec,
54678
+ implicit: true,
54679
+ context: 1,
54680
+ optional: true
54681
+ })
54038
54682
  ], AAControls.prototype, "excludedAttrs", void 0);
54039
54683
  __decorate([
54040
- AsnProp({ type: AsnPropTypes.Boolean, defaultValue: true })
54684
+ AsnProp({
54685
+ type: AsnPropTypes.Boolean,
54686
+ defaultValue: true
54687
+ })
54041
54688
  ], AAControls.prototype, "permitUnSpecified", void 0);
54042
54689
 
54043
54690
  // ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/attr_cert_issuer.js
@@ -54049,10 +54696,10 @@ init_inject_buffer();
54049
54696
  // ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/issuer_serial.js
54050
54697
  init_inject_buffer();
54051
54698
  var IssuerSerial = class {
54699
+ issuer = new GeneralNames();
54700
+ serial = new ArrayBuffer(0);
54701
+ issuerUID = new ArrayBuffer(0);
54052
54702
  constructor(params = {}) {
54053
- this.issuer = new GeneralNames();
54054
- this.serial = new ArrayBuffer(0);
54055
- this.issuerUID = new ArrayBuffer(0);
54056
54703
  Object.assign(this, params);
54057
54704
  }
54058
54705
  };
@@ -54060,10 +54707,16 @@ __decorate([
54060
54707
  AsnProp({ type: GeneralNames })
54061
54708
  ], IssuerSerial.prototype, "issuer", void 0);
54062
54709
  __decorate([
54063
- AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
54710
+ AsnProp({
54711
+ type: AsnPropTypes.Integer,
54712
+ converter: AsnIntegerArrayBufferConverter
54713
+ })
54064
54714
  ], IssuerSerial.prototype, "serial", void 0);
54065
54715
  __decorate([
54066
- AsnProp({ type: AsnPropTypes.BitString, optional: true })
54716
+ AsnProp({
54717
+ type: AsnPropTypes.BitString,
54718
+ optional: true
54719
+ })
54067
54720
  ], IssuerSerial.prototype, "issuerUID", void 0);
54068
54721
 
54069
54722
  // ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/object_digest_info.js
@@ -54075,10 +54728,11 @@ var DigestedObjectType;
54075
54728
  DigestedObjectType2[DigestedObjectType2["otherObjectTypes"] = 2] = "otherObjectTypes";
54076
54729
  })(DigestedObjectType || (DigestedObjectType = {}));
54077
54730
  var ObjectDigestInfo = class {
54731
+ digestedObjectType = DigestedObjectType.publicKey;
54732
+ otherObjectTypeID;
54733
+ digestAlgorithm = new AlgorithmIdentifier();
54734
+ objectDigest = new ArrayBuffer(0);
54078
54735
  constructor(params = {}) {
54079
- this.digestedObjectType = DigestedObjectType.publicKey;
54080
- this.digestAlgorithm = new AlgorithmIdentifier();
54081
- this.objectDigest = new ArrayBuffer(0);
54082
54736
  Object.assign(this, params);
54083
54737
  }
54084
54738
  };
@@ -54086,7 +54740,10 @@ __decorate([
54086
54740
  AsnProp({ type: AsnPropTypes.Enumerated })
54087
54741
  ], ObjectDigestInfo.prototype, "digestedObjectType", void 0);
54088
54742
  __decorate([
54089
- AsnProp({ type: AsnPropTypes.ObjectIdentifier, optional: true })
54743
+ AsnProp({
54744
+ type: AsnPropTypes.ObjectIdentifier,
54745
+ optional: true
54746
+ })
54090
54747
  ], ObjectDigestInfo.prototype, "otherObjectTypeID", void 0);
54091
54748
  __decorate([
54092
54749
  AsnProp({ type: AlgorithmIdentifier })
@@ -54097,31 +54754,56 @@ __decorate([
54097
54754
 
54098
54755
  // ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/v2_form.js
54099
54756
  var V2Form = class {
54757
+ issuerName;
54758
+ baseCertificateID;
54759
+ objectDigestInfo;
54100
54760
  constructor(params = {}) {
54101
54761
  Object.assign(this, params);
54102
54762
  }
54103
54763
  };
54104
54764
  __decorate([
54105
- AsnProp({ type: GeneralNames, optional: true })
54765
+ AsnProp({
54766
+ type: GeneralNames,
54767
+ optional: true
54768
+ })
54106
54769
  ], V2Form.prototype, "issuerName", void 0);
54107
54770
  __decorate([
54108
- AsnProp({ type: IssuerSerial, context: 0, implicit: true, optional: true })
54771
+ AsnProp({
54772
+ type: IssuerSerial,
54773
+ context: 0,
54774
+ implicit: true,
54775
+ optional: true
54776
+ })
54109
54777
  ], V2Form.prototype, "baseCertificateID", void 0);
54110
54778
  __decorate([
54111
- AsnProp({ type: ObjectDigestInfo, context: 1, implicit: true, optional: true })
54779
+ AsnProp({
54780
+ type: ObjectDigestInfo,
54781
+ context: 1,
54782
+ implicit: true,
54783
+ optional: true
54784
+ })
54112
54785
  ], V2Form.prototype, "objectDigestInfo", void 0);
54113
54786
 
54114
54787
  // ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/attr_cert_issuer.js
54115
54788
  var AttCertIssuer = class AttCertIssuer2 {
54789
+ v1Form;
54790
+ v2Form;
54116
54791
  constructor(params = {}) {
54117
54792
  Object.assign(this, params);
54118
54793
  }
54119
54794
  };
54120
54795
  __decorate([
54121
- AsnProp({ type: GeneralName, repeated: "sequence" })
54796
+ AsnProp({
54797
+ type: GeneralName,
54798
+ repeated: "sequence"
54799
+ })
54122
54800
  ], AttCertIssuer.prototype, "v1Form", void 0);
54123
54801
  __decorate([
54124
- AsnProp({ type: V2Form, context: 0, implicit: true })
54802
+ AsnProp({
54803
+ type: V2Form,
54804
+ context: 0,
54805
+ implicit: true
54806
+ })
54125
54807
  ], AttCertIssuer.prototype, "v2Form", void 0);
54126
54808
  AttCertIssuer = __decorate([
54127
54809
  AsnType({ type: AsnTypeTypes.Choice })
@@ -54130,9 +54812,9 @@ AttCertIssuer = __decorate([
54130
54812
  // ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/attr_cert_validity_period.js
54131
54813
  init_inject_buffer();
54132
54814
  var AttCertValidityPeriod = class {
54815
+ notBeforeTime = /* @__PURE__ */ new Date();
54816
+ notAfterTime = /* @__PURE__ */ new Date();
54133
54817
  constructor(params = {}) {
54134
- this.notBeforeTime = /* @__PURE__ */ new Date();
54135
- this.notAfterTime = /* @__PURE__ */ new Date();
54136
54818
  Object.assign(this, params);
54137
54819
  }
54138
54820
  };
@@ -54152,18 +54834,36 @@ init_inject_buffer();
54152
54834
  // ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/holder.js
54153
54835
  init_inject_buffer();
54154
54836
  var Holder = class {
54837
+ baseCertificateID;
54838
+ entityName;
54839
+ objectDigestInfo;
54155
54840
  constructor(params = {}) {
54156
54841
  Object.assign(this, params);
54157
54842
  }
54158
54843
  };
54159
54844
  __decorate([
54160
- AsnProp({ type: IssuerSerial, implicit: true, context: 0, optional: true })
54845
+ AsnProp({
54846
+ type: IssuerSerial,
54847
+ implicit: true,
54848
+ context: 0,
54849
+ optional: true
54850
+ })
54161
54851
  ], Holder.prototype, "baseCertificateID", void 0);
54162
54852
  __decorate([
54163
- AsnProp({ type: GeneralNames, implicit: true, context: 1, optional: true })
54853
+ AsnProp({
54854
+ type: GeneralNames,
54855
+ implicit: true,
54856
+ context: 1,
54857
+ optional: true
54858
+ })
54164
54859
  ], Holder.prototype, "entityName", void 0);
54165
54860
  __decorate([
54166
- AsnProp({ type: ObjectDigestInfo, implicit: true, context: 2, optional: true })
54861
+ AsnProp({
54862
+ type: ObjectDigestInfo,
54863
+ implicit: true,
54864
+ context: 2,
54865
+ optional: true
54866
+ })
54167
54867
  ], Holder.prototype, "objectDigestInfo", void 0);
54168
54868
 
54169
54869
  // ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/attribute_certificate_info.js
@@ -54172,14 +54872,16 @@ var AttCertVersion;
54172
54872
  AttCertVersion2[AttCertVersion2["v2"] = 1] = "v2";
54173
54873
  })(AttCertVersion || (AttCertVersion = {}));
54174
54874
  var AttributeCertificateInfo = class {
54875
+ version = AttCertVersion.v2;
54876
+ holder = new Holder();
54877
+ issuer = new AttCertIssuer();
54878
+ signature = new AlgorithmIdentifier();
54879
+ serialNumber = new ArrayBuffer(0);
54880
+ attrCertValidityPeriod = new AttCertValidityPeriod();
54881
+ attributes = [];
54882
+ issuerUniqueID;
54883
+ extensions;
54175
54884
  constructor(params = {}) {
54176
- this.version = AttCertVersion.v2;
54177
- this.holder = new Holder();
54178
- this.issuer = new AttCertIssuer();
54179
- this.signature = new AlgorithmIdentifier();
54180
- this.serialNumber = new ArrayBuffer(0);
54181
- this.attrCertValidityPeriod = new AttCertValidityPeriod();
54182
- this.attributes = [];
54183
54885
  Object.assign(this, params);
54184
54886
  }
54185
54887
  };
@@ -54196,27 +54898,39 @@ __decorate([
54196
54898
  AsnProp({ type: AlgorithmIdentifier })
54197
54899
  ], AttributeCertificateInfo.prototype, "signature", void 0);
54198
54900
  __decorate([
54199
- AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
54901
+ AsnProp({
54902
+ type: AsnPropTypes.Integer,
54903
+ converter: AsnIntegerArrayBufferConverter
54904
+ })
54200
54905
  ], AttributeCertificateInfo.prototype, "serialNumber", void 0);
54201
54906
  __decorate([
54202
54907
  AsnProp({ type: AttCertValidityPeriod })
54203
54908
  ], AttributeCertificateInfo.prototype, "attrCertValidityPeriod", void 0);
54204
54909
  __decorate([
54205
- AsnProp({ type: Attribute, repeated: "sequence" })
54910
+ AsnProp({
54911
+ type: Attribute,
54912
+ repeated: "sequence"
54913
+ })
54206
54914
  ], AttributeCertificateInfo.prototype, "attributes", void 0);
54207
54915
  __decorate([
54208
- AsnProp({ type: AsnPropTypes.BitString, optional: true })
54916
+ AsnProp({
54917
+ type: AsnPropTypes.BitString,
54918
+ optional: true
54919
+ })
54209
54920
  ], AttributeCertificateInfo.prototype, "issuerUniqueID", void 0);
54210
54921
  __decorate([
54211
- AsnProp({ type: Extensions, optional: true })
54922
+ AsnProp({
54923
+ type: Extensions,
54924
+ optional: true
54925
+ })
54212
54926
  ], AttributeCertificateInfo.prototype, "extensions", void 0);
54213
54927
 
54214
54928
  // ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/attribute_certificate.js
54215
54929
  var AttributeCertificate = class {
54930
+ acinfo = new AttributeCertificateInfo();
54931
+ signatureAlgorithm = new AlgorithmIdentifier();
54932
+ signatureValue = new ArrayBuffer(0);
54216
54933
  constructor(params = {}) {
54217
- this.acinfo = new AttributeCertificateInfo();
54218
- this.signatureAlgorithm = new AlgorithmIdentifier();
54219
- this.signatureValue = new ArrayBuffer(0);
54220
54934
  Object.assign(this, params);
54221
54935
  }
54222
54936
  };
@@ -54250,24 +54964,33 @@ init_inject_buffer();
54250
54964
  // ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/security_category.js
54251
54965
  init_inject_buffer();
54252
54966
  var SecurityCategory = class {
54967
+ type = "";
54968
+ value = new ArrayBuffer(0);
54253
54969
  constructor(params = {}) {
54254
- this.type = "";
54255
- this.value = new ArrayBuffer(0);
54256
54970
  Object.assign(this, params);
54257
54971
  }
54258
54972
  };
54259
54973
  __decorate([
54260
- AsnProp({ type: AsnPropTypes.ObjectIdentifier, implicit: true, context: 0 })
54974
+ AsnProp({
54975
+ type: AsnPropTypes.ObjectIdentifier,
54976
+ implicit: true,
54977
+ context: 0
54978
+ })
54261
54979
  ], SecurityCategory.prototype, "type", void 0);
54262
54980
  __decorate([
54263
- AsnProp({ type: AsnPropTypes.Any, implicit: true, context: 1 })
54981
+ AsnProp({
54982
+ type: AsnPropTypes.Any,
54983
+ implicit: true,
54984
+ context: 1
54985
+ })
54264
54986
  ], SecurityCategory.prototype, "value", void 0);
54265
54987
 
54266
54988
  // ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/clearance.js
54267
54989
  var Clearance = class {
54990
+ policyId = "";
54991
+ classList = new ClassList(ClassListFlags.unclassified);
54992
+ securityCategories;
54268
54993
  constructor(params = {}) {
54269
- this.policyId = "";
54270
- this.classList = new ClassList(ClassListFlags.unclassified);
54271
54994
  Object.assign(this, params);
54272
54995
  }
54273
54996
  };
@@ -54275,15 +54998,24 @@ __decorate([
54275
54998
  AsnProp({ type: AsnPropTypes.ObjectIdentifier })
54276
54999
  ], Clearance.prototype, "policyId", void 0);
54277
55000
  __decorate([
54278
- AsnProp({ type: ClassList, defaultValue: new ClassList(ClassListFlags.unclassified) })
55001
+ AsnProp({
55002
+ type: ClassList,
55003
+ defaultValue: new ClassList(ClassListFlags.unclassified)
55004
+ })
54279
55005
  ], Clearance.prototype, "classList", void 0);
54280
55006
  __decorate([
54281
- AsnProp({ type: SecurityCategory, repeated: "set" })
55007
+ AsnProp({
55008
+ type: SecurityCategory,
55009
+ repeated: "set"
55010
+ })
54282
55011
  ], Clearance.prototype, "securityCategories", void 0);
54283
55012
 
54284
55013
  // ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/ietf_attr_syntax.js
54285
55014
  init_inject_buffer();
54286
55015
  var IetfAttrSyntaxValueChoices = class {
55016
+ cotets;
55017
+ oid;
55018
+ string;
54287
55019
  constructor(params = {}) {
54288
55020
  Object.assign(this, params);
54289
55021
  }
@@ -54298,16 +55030,25 @@ __decorate([
54298
55030
  AsnProp({ type: AsnPropTypes.Utf8String })
54299
55031
  ], IetfAttrSyntaxValueChoices.prototype, "string", void 0);
54300
55032
  var IetfAttrSyntax = class {
55033
+ policyAuthority;
55034
+ values = [];
54301
55035
  constructor(params = {}) {
54302
- this.values = [];
54303
55036
  Object.assign(this, params);
54304
55037
  }
54305
55038
  };
54306
55039
  __decorate([
54307
- AsnProp({ type: GeneralNames, implicit: true, context: 0, optional: true })
55040
+ AsnProp({
55041
+ type: GeneralNames,
55042
+ implicit: true,
55043
+ context: 0,
55044
+ optional: true
55045
+ })
54308
55046
  ], IetfAttrSyntax.prototype, "policyAuthority", void 0);
54309
55047
  __decorate([
54310
- AsnProp({ type: IetfAttrSyntaxValueChoices, repeated: "sequence" })
55048
+ AsnProp({
55049
+ type: IetfAttrSyntaxValueChoices,
55050
+ repeated: "sequence"
55051
+ })
54311
55052
  ], IetfAttrSyntax.prototype, "values", void 0);
54312
55053
 
54313
55054
  // ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/object_identifiers.js
@@ -54332,8 +55073,10 @@ init_inject_buffer();
54332
55073
  init_inject_buffer();
54333
55074
  var Targets_1;
54334
55075
  var TargetCert = class {
55076
+ targetCertificate = new IssuerSerial();
55077
+ targetName;
55078
+ certDigestInfo;
54335
55079
  constructor(params = {}) {
54336
- this.targetCertificate = new IssuerSerial();
54337
55080
  Object.assign(this, params);
54338
55081
  }
54339
55082
  };
@@ -54341,24 +55084,45 @@ __decorate([
54341
55084
  AsnProp({ type: IssuerSerial })
54342
55085
  ], TargetCert.prototype, "targetCertificate", void 0);
54343
55086
  __decorate([
54344
- AsnProp({ type: GeneralName, optional: true })
55087
+ AsnProp({
55088
+ type: GeneralName,
55089
+ optional: true
55090
+ })
54345
55091
  ], TargetCert.prototype, "targetName", void 0);
54346
55092
  __decorate([
54347
- AsnProp({ type: ObjectDigestInfo, optional: true })
55093
+ AsnProp({
55094
+ type: ObjectDigestInfo,
55095
+ optional: true
55096
+ })
54348
55097
  ], TargetCert.prototype, "certDigestInfo", void 0);
54349
55098
  var Target = class Target2 {
55099
+ targetName;
55100
+ targetGroup;
55101
+ targetCert;
54350
55102
  constructor(params = {}) {
54351
55103
  Object.assign(this, params);
54352
55104
  }
54353
55105
  };
54354
55106
  __decorate([
54355
- AsnProp({ type: GeneralName, context: 0, implicit: true })
55107
+ AsnProp({
55108
+ type: GeneralName,
55109
+ context: 0,
55110
+ implicit: true
55111
+ })
54356
55112
  ], Target.prototype, "targetName", void 0);
54357
55113
  __decorate([
54358
- AsnProp({ type: GeneralName, context: 1, implicit: true })
55114
+ AsnProp({
55115
+ type: GeneralName,
55116
+ context: 1,
55117
+ implicit: true
55118
+ })
54359
55119
  ], Target.prototype, "targetGroup", void 0);
54360
55120
  __decorate([
54361
- AsnProp({ type: TargetCert, context: 2, implicit: true })
55121
+ AsnProp({
55122
+ type: TargetCert,
55123
+ context: 2,
55124
+ implicit: true
55125
+ })
54362
55126
  ], Target.prototype, "targetCert", void 0);
54363
55127
  Target = __decorate([
54364
55128
  AsnType({ type: AsnTypeTypes.Choice })
@@ -54370,7 +55134,10 @@ var Targets = Targets_1 = class Targets2 extends AsnArray {
54370
55134
  }
54371
55135
  };
54372
55136
  Targets = Targets_1 = __decorate([
54373
- AsnType({ type: AsnTypeTypes.Sequence, itemType: Target })
55137
+ AsnType({
55138
+ type: AsnTypeTypes.Sequence,
55139
+ itemType: Target
55140
+ })
54374
55141
  ], Targets);
54375
55142
 
54376
55143
  // ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/proxy_info.js
@@ -54382,29 +55149,44 @@ var ProxyInfo = ProxyInfo_1 = class ProxyInfo2 extends AsnArray {
54382
55149
  }
54383
55150
  };
54384
55151
  ProxyInfo = ProxyInfo_1 = __decorate([
54385
- AsnType({ type: AsnTypeTypes.Sequence, itemType: Targets })
55152
+ AsnType({
55153
+ type: AsnTypeTypes.Sequence,
55154
+ itemType: Targets
55155
+ })
54386
55156
  ], ProxyInfo);
54387
55157
 
54388
55158
  // ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/role_syntax.js
54389
55159
  init_inject_buffer();
54390
55160
  var RoleSyntax = class {
55161
+ roleAuthority;
55162
+ roleName;
54391
55163
  constructor(params = {}) {
54392
55164
  Object.assign(this, params);
54393
55165
  }
54394
55166
  };
54395
55167
  __decorate([
54396
- AsnProp({ type: GeneralNames, implicit: true, context: 0, optional: true })
55168
+ AsnProp({
55169
+ type: GeneralNames,
55170
+ implicit: true,
55171
+ context: 0,
55172
+ optional: true
55173
+ })
54397
55174
  ], RoleSyntax.prototype, "roleAuthority", void 0);
54398
55175
  __decorate([
54399
- AsnProp({ type: GeneralName, implicit: true, context: 1 })
55176
+ AsnProp({
55177
+ type: GeneralName,
55178
+ implicit: true,
55179
+ context: 1
55180
+ })
54400
55181
  ], RoleSyntax.prototype, "roleName", void 0);
54401
55182
 
54402
55183
  // ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/svce_auth_info.js
54403
55184
  init_inject_buffer();
54404
55185
  var SvceAuthInfo = class {
55186
+ service = new GeneralName();
55187
+ ident = new GeneralName();
55188
+ authInfo;
54405
55189
  constructor(params = {}) {
54406
- this.service = new GeneralName();
54407
- this.ident = new GeneralName();
54408
55190
  Object.assign(this, params);
54409
55191
  }
54410
55192
  };
@@ -54415,15 +55197,18 @@ __decorate([
54415
55197
  AsnProp({ type: GeneralName })
54416
55198
  ], SvceAuthInfo.prototype, "ident", void 0);
54417
55199
  __decorate([
54418
- AsnProp({ type: OctetString2, optional: true })
55200
+ AsnProp({
55201
+ type: OctetString2,
55202
+ optional: true
55203
+ })
54419
55204
  ], SvceAuthInfo.prototype, "authInfo", void 0);
54420
55205
 
54421
55206
  // ../../node_modules/@peculiar/asn1-cms/build/es2015/certificate_choices.js
54422
55207
  var CertificateSet_1;
54423
55208
  var OtherCertificateFormat = class {
55209
+ otherCertFormat = "";
55210
+ otherCert = new ArrayBuffer(0);
54424
55211
  constructor(params = {}) {
54425
- this.otherCertFormat = "";
54426
- this.otherCert = new ArrayBuffer(0);
54427
55212
  Object.assign(this, params);
54428
55213
  }
54429
55214
  };
@@ -54434,6 +55219,9 @@ __decorate([
54434
55219
  AsnProp({ type: AsnPropTypes.Any })
54435
55220
  ], OtherCertificateFormat.prototype, "otherCert", void 0);
54436
55221
  var CertificateChoices = class CertificateChoices2 {
55222
+ certificate;
55223
+ v2AttrCert;
55224
+ other;
54437
55225
  constructor(params = {}) {
54438
55226
  Object.assign(this, params);
54439
55227
  }
@@ -54442,10 +55230,18 @@ __decorate([
54442
55230
  AsnProp({ type: Certificate })
54443
55231
  ], CertificateChoices.prototype, "certificate", void 0);
54444
55232
  __decorate([
54445
- AsnProp({ type: AttributeCertificate, context: 2, implicit: true })
55233
+ AsnProp({
55234
+ type: AttributeCertificate,
55235
+ context: 2,
55236
+ implicit: true
55237
+ })
54446
55238
  ], CertificateChoices.prototype, "v2AttrCert", void 0);
54447
55239
  __decorate([
54448
- AsnProp({ type: OtherCertificateFormat, context: 3, implicit: true })
55240
+ AsnProp({
55241
+ type: OtherCertificateFormat,
55242
+ context: 3,
55243
+ implicit: true
55244
+ })
54449
55245
  ], CertificateChoices.prototype, "other", void 0);
54450
55246
  CertificateChoices = __decorate([
54451
55247
  AsnType({ type: AsnTypeTypes.Choice })
@@ -54457,15 +55253,18 @@ var CertificateSet = CertificateSet_1 = class CertificateSet2 extends AsnArray {
54457
55253
  }
54458
55254
  };
54459
55255
  CertificateSet = CertificateSet_1 = __decorate([
54460
- AsnType({ type: AsnTypeTypes.Set, itemType: CertificateChoices })
55256
+ AsnType({
55257
+ type: AsnTypeTypes.Set,
55258
+ itemType: CertificateChoices
55259
+ })
54461
55260
  ], CertificateSet);
54462
55261
 
54463
55262
  // ../../node_modules/@peculiar/asn1-cms/build/es2015/content_info.js
54464
55263
  init_inject_buffer();
54465
55264
  var ContentInfo = class {
55265
+ contentType = "";
55266
+ content = new ArrayBuffer(0);
54466
55267
  constructor(params = {}) {
54467
- this.contentType = "";
54468
- this.content = new ArrayBuffer(0);
54469
55268
  Object.assign(this, params);
54470
55269
  }
54471
55270
  };
@@ -54473,12 +55272,17 @@ __decorate([
54473
55272
  AsnProp({ type: AsnPropTypes.ObjectIdentifier })
54474
55273
  ], ContentInfo.prototype, "contentType", void 0);
54475
55274
  __decorate([
54476
- AsnProp({ type: AsnPropTypes.Any, context: 0 })
55275
+ AsnProp({
55276
+ type: AsnPropTypes.Any,
55277
+ context: 0
55278
+ })
54477
55279
  ], ContentInfo.prototype, "content", void 0);
54478
55280
 
54479
55281
  // ../../node_modules/@peculiar/asn1-cms/build/es2015/encapsulated_content_info.js
54480
55282
  init_inject_buffer();
54481
55283
  var EncapsulatedContent = class EncapsulatedContent2 {
55284
+ single;
55285
+ any;
54482
55286
  constructor(params = {}) {
54483
55287
  Object.assign(this, params);
54484
55288
  }
@@ -54493,8 +55297,9 @@ EncapsulatedContent = __decorate([
54493
55297
  AsnType({ type: AsnTypeTypes.Choice })
54494
55298
  ], EncapsulatedContent);
54495
55299
  var EncapsulatedContentInfo = class {
55300
+ eContentType = "";
55301
+ eContent;
54496
55302
  constructor(params = {}) {
54497
- this.eContentType = "";
54498
55303
  Object.assign(this, params);
54499
55304
  }
54500
55305
  };
@@ -54502,18 +55307,29 @@ __decorate([
54502
55307
  AsnProp({ type: AsnPropTypes.ObjectIdentifier })
54503
55308
  ], EncapsulatedContentInfo.prototype, "eContentType", void 0);
54504
55309
  __decorate([
54505
- AsnProp({ type: EncapsulatedContent, context: 0, optional: true })
55310
+ AsnProp({
55311
+ type: EncapsulatedContent,
55312
+ context: 0,
55313
+ optional: true
55314
+ })
54506
55315
  ], EncapsulatedContentInfo.prototype, "eContent", void 0);
54507
55316
 
54508
55317
  // ../../node_modules/@peculiar/asn1-cms/build/es2015/encrypted_content_info.js
54509
55318
  init_inject_buffer();
54510
55319
  var EncryptedContent = class EncryptedContent2 {
55320
+ value;
55321
+ constructedValue;
54511
55322
  constructor(params = {}) {
54512
55323
  Object.assign(this, params);
54513
55324
  }
54514
55325
  };
54515
55326
  __decorate([
54516
- AsnProp({ type: OctetString2, context: 0, implicit: true, optional: true })
55327
+ AsnProp({
55328
+ type: OctetString2,
55329
+ context: 0,
55330
+ implicit: true,
55331
+ optional: true
55332
+ })
54517
55333
  ], EncryptedContent.prototype, "value", void 0);
54518
55334
  __decorate([
54519
55335
  AsnProp({
@@ -54529,9 +55345,10 @@ EncryptedContent = __decorate([
54529
55345
  AsnType({ type: AsnTypeTypes.Choice })
54530
55346
  ], EncryptedContent);
54531
55347
  var EncryptedContentInfo = class {
55348
+ contentType = "";
55349
+ contentEncryptionAlgorithm = new ContentEncryptionAlgorithmIdentifier();
55350
+ encryptedContent;
54532
55351
  constructor(params = {}) {
54533
- this.contentType = "";
54534
- this.contentEncryptionAlgorithm = new ContentEncryptionAlgorithmIdentifier();
54535
55352
  Object.assign(this, params);
54536
55353
  }
54537
55354
  };
@@ -54542,7 +55359,10 @@ __decorate([
54542
55359
  AsnProp({ type: ContentEncryptionAlgorithmIdentifier })
54543
55360
  ], EncryptedContentInfo.prototype, "contentEncryptionAlgorithm", void 0);
54544
55361
  __decorate([
54545
- AsnProp({ type: EncryptedContent, optional: true })
55362
+ AsnProp({
55363
+ type: EncryptedContent,
55364
+ optional: true
55365
+ })
54546
55366
  ], EncryptedContentInfo.prototype, "encryptedContent", void 0);
54547
55367
 
54548
55368
  // ../../node_modules/@peculiar/asn1-cms/build/es2015/enveloped_data.js
@@ -54560,8 +55380,9 @@ init_inject_buffer();
54560
55380
  // ../../node_modules/@peculiar/asn1-cms/build/es2015/other_key_attribute.js
54561
55381
  init_inject_buffer();
54562
55382
  var OtherKeyAttribute = class {
55383
+ keyAttrId = "";
55384
+ keyAttr;
54563
55385
  constructor(params = {}) {
54564
- this.keyAttrId = "";
54565
55386
  Object.assign(this, params);
54566
55387
  }
54567
55388
  };
@@ -54569,14 +55390,19 @@ __decorate([
54569
55390
  AsnProp({ type: AsnPropTypes.ObjectIdentifier })
54570
55391
  ], OtherKeyAttribute.prototype, "keyAttrId", void 0);
54571
55392
  __decorate([
54572
- AsnProp({ type: AsnPropTypes.Any, optional: true })
55393
+ AsnProp({
55394
+ type: AsnPropTypes.Any,
55395
+ optional: true
55396
+ })
54573
55397
  ], OtherKeyAttribute.prototype, "keyAttr", void 0);
54574
55398
 
54575
55399
  // ../../node_modules/@peculiar/asn1-cms/build/es2015/key_agree_recipient_info.js
54576
55400
  var RecipientEncryptedKeys_1;
54577
55401
  var RecipientKeyIdentifier = class {
55402
+ subjectKeyIdentifier = new SubjectKeyIdentifier();
55403
+ date;
55404
+ other;
54578
55405
  constructor(params = {}) {
54579
- this.subjectKeyIdentifier = new SubjectKeyIdentifier();
54580
55406
  Object.assign(this, params);
54581
55407
  }
54582
55408
  };
@@ -54584,29 +55410,45 @@ __decorate([
54584
55410
  AsnProp({ type: SubjectKeyIdentifier })
54585
55411
  ], RecipientKeyIdentifier.prototype, "subjectKeyIdentifier", void 0);
54586
55412
  __decorate([
54587
- AsnProp({ type: AsnPropTypes.GeneralizedTime, optional: true })
55413
+ AsnProp({
55414
+ type: AsnPropTypes.GeneralizedTime,
55415
+ optional: true
55416
+ })
54588
55417
  ], RecipientKeyIdentifier.prototype, "date", void 0);
54589
55418
  __decorate([
54590
- AsnProp({ type: OtherKeyAttribute, optional: true })
55419
+ AsnProp({
55420
+ type: OtherKeyAttribute,
55421
+ optional: true
55422
+ })
54591
55423
  ], RecipientKeyIdentifier.prototype, "other", void 0);
54592
55424
  var KeyAgreeRecipientIdentifier = class KeyAgreeRecipientIdentifier2 {
55425
+ rKeyId;
55426
+ issuerAndSerialNumber;
54593
55427
  constructor(params = {}) {
54594
55428
  Object.assign(this, params);
54595
55429
  }
54596
55430
  };
54597
55431
  __decorate([
54598
- AsnProp({ type: RecipientKeyIdentifier, context: 0, implicit: true, optional: true })
55432
+ AsnProp({
55433
+ type: RecipientKeyIdentifier,
55434
+ context: 0,
55435
+ implicit: true,
55436
+ optional: true
55437
+ })
54599
55438
  ], KeyAgreeRecipientIdentifier.prototype, "rKeyId", void 0);
54600
55439
  __decorate([
54601
- AsnProp({ type: IssuerAndSerialNumber, optional: true })
55440
+ AsnProp({
55441
+ type: IssuerAndSerialNumber,
55442
+ optional: true
55443
+ })
54602
55444
  ], KeyAgreeRecipientIdentifier.prototype, "issuerAndSerialNumber", void 0);
54603
55445
  KeyAgreeRecipientIdentifier = __decorate([
54604
55446
  AsnType({ type: AsnTypeTypes.Choice })
54605
55447
  ], KeyAgreeRecipientIdentifier);
54606
55448
  var RecipientEncryptedKey = class {
55449
+ rid = new KeyAgreeRecipientIdentifier();
55450
+ encryptedKey = new OctetString2();
54607
55451
  constructor(params = {}) {
54608
- this.rid = new KeyAgreeRecipientIdentifier();
54609
- this.encryptedKey = new OctetString2();
54610
55452
  Object.assign(this, params);
54611
55453
  }
54612
55454
  };
@@ -54623,12 +55465,15 @@ var RecipientEncryptedKeys = RecipientEncryptedKeys_1 = class RecipientEncrypted
54623
55465
  }
54624
55466
  };
54625
55467
  RecipientEncryptedKeys = RecipientEncryptedKeys_1 = __decorate([
54626
- AsnType({ type: AsnTypeTypes.Sequence, itemType: RecipientEncryptedKey })
55468
+ AsnType({
55469
+ type: AsnTypeTypes.Sequence,
55470
+ itemType: RecipientEncryptedKey
55471
+ })
54627
55472
  ], RecipientEncryptedKeys);
54628
55473
  var OriginatorPublicKey = class {
55474
+ algorithm = new AlgorithmIdentifier();
55475
+ publicKey = new ArrayBuffer(0);
54629
55476
  constructor(params = {}) {
54630
- this.algorithm = new AlgorithmIdentifier();
54631
- this.publicKey = new ArrayBuffer(0);
54632
55477
  Object.assign(this, params);
54633
55478
  }
54634
55479
  };
@@ -54639,28 +55484,45 @@ __decorate([
54639
55484
  AsnProp({ type: AsnPropTypes.BitString })
54640
55485
  ], OriginatorPublicKey.prototype, "publicKey", void 0);
54641
55486
  var OriginatorIdentifierOrKey = class OriginatorIdentifierOrKey2 {
55487
+ subjectKeyIdentifier;
55488
+ originatorKey;
55489
+ issuerAndSerialNumber;
54642
55490
  constructor(params = {}) {
54643
55491
  Object.assign(this, params);
54644
55492
  }
54645
55493
  };
54646
55494
  __decorate([
54647
- AsnProp({ type: SubjectKeyIdentifier, context: 0, implicit: true, optional: true })
55495
+ AsnProp({
55496
+ type: SubjectKeyIdentifier,
55497
+ context: 0,
55498
+ implicit: true,
55499
+ optional: true
55500
+ })
54648
55501
  ], OriginatorIdentifierOrKey.prototype, "subjectKeyIdentifier", void 0);
54649
55502
  __decorate([
54650
- AsnProp({ type: OriginatorPublicKey, context: 1, implicit: true, optional: true })
55503
+ AsnProp({
55504
+ type: OriginatorPublicKey,
55505
+ context: 1,
55506
+ implicit: true,
55507
+ optional: true
55508
+ })
54651
55509
  ], OriginatorIdentifierOrKey.prototype, "originatorKey", void 0);
54652
55510
  __decorate([
54653
- AsnProp({ type: IssuerAndSerialNumber, optional: true })
55511
+ AsnProp({
55512
+ type: IssuerAndSerialNumber,
55513
+ optional: true
55514
+ })
54654
55515
  ], OriginatorIdentifierOrKey.prototype, "issuerAndSerialNumber", void 0);
54655
55516
  OriginatorIdentifierOrKey = __decorate([
54656
55517
  AsnType({ type: AsnTypeTypes.Choice })
54657
55518
  ], OriginatorIdentifierOrKey);
54658
55519
  var KeyAgreeRecipientInfo = class {
55520
+ version = CMSVersion.v3;
55521
+ originator = new OriginatorIdentifierOrKey();
55522
+ ukm;
55523
+ keyEncryptionAlgorithm = new KeyEncryptionAlgorithmIdentifier();
55524
+ recipientEncryptedKeys = new RecipientEncryptedKeys();
54659
55525
  constructor(params = {}) {
54660
- this.version = CMSVersion.v3;
54661
- this.originator = new OriginatorIdentifierOrKey();
54662
- this.keyEncryptionAlgorithm = new KeyEncryptionAlgorithmIdentifier();
54663
- this.recipientEncryptedKeys = new RecipientEncryptedKeys();
54664
55526
  Object.assign(this, params);
54665
55527
  }
54666
55528
  };
@@ -54668,10 +55530,17 @@ __decorate([
54668
55530
  AsnProp({ type: AsnPropTypes.Integer })
54669
55531
  ], KeyAgreeRecipientInfo.prototype, "version", void 0);
54670
55532
  __decorate([
54671
- AsnProp({ type: OriginatorIdentifierOrKey, context: 0 })
55533
+ AsnProp({
55534
+ type: OriginatorIdentifierOrKey,
55535
+ context: 0
55536
+ })
54672
55537
  ], KeyAgreeRecipientInfo.prototype, "originator", void 0);
54673
55538
  __decorate([
54674
- AsnProp({ type: OctetString2, context: 1, optional: true })
55539
+ AsnProp({
55540
+ type: OctetString2,
55541
+ context: 1,
55542
+ optional: true
55543
+ })
54675
55544
  ], KeyAgreeRecipientInfo.prototype, "ukm", void 0);
54676
55545
  __decorate([
54677
55546
  AsnProp({ type: KeyEncryptionAlgorithmIdentifier })
@@ -54683,12 +55552,18 @@ __decorate([
54683
55552
  // ../../node_modules/@peculiar/asn1-cms/build/es2015/key_trans_recipient_info.js
54684
55553
  init_inject_buffer();
54685
55554
  var RecipientIdentifier = class RecipientIdentifier2 {
55555
+ subjectKeyIdentifier;
55556
+ issuerAndSerialNumber;
54686
55557
  constructor(params = {}) {
54687
55558
  Object.assign(this, params);
54688
55559
  }
54689
55560
  };
54690
55561
  __decorate([
54691
- AsnProp({ type: SubjectKeyIdentifier, context: 0, implicit: true })
55562
+ AsnProp({
55563
+ type: SubjectKeyIdentifier,
55564
+ context: 0,
55565
+ implicit: true
55566
+ })
54692
55567
  ], RecipientIdentifier.prototype, "subjectKeyIdentifier", void 0);
54693
55568
  __decorate([
54694
55569
  AsnProp({ type: IssuerAndSerialNumber })
@@ -54697,11 +55572,11 @@ RecipientIdentifier = __decorate([
54697
55572
  AsnType({ type: AsnTypeTypes.Choice })
54698
55573
  ], RecipientIdentifier);
54699
55574
  var KeyTransRecipientInfo = class {
55575
+ version = CMSVersion.v0;
55576
+ rid = new RecipientIdentifier();
55577
+ keyEncryptionAlgorithm = new KeyEncryptionAlgorithmIdentifier();
55578
+ encryptedKey = new OctetString2();
54700
55579
  constructor(params = {}) {
54701
- this.version = CMSVersion.v0;
54702
- this.rid = new RecipientIdentifier();
54703
- this.keyEncryptionAlgorithm = new KeyEncryptionAlgorithmIdentifier();
54704
- this.encryptedKey = new OctetString2();
54705
55580
  Object.assign(this, params);
54706
55581
  }
54707
55582
  };
@@ -54721,8 +55596,10 @@ __decorate([
54721
55596
  // ../../node_modules/@peculiar/asn1-cms/build/es2015/kek_recipient_info.js
54722
55597
  init_inject_buffer();
54723
55598
  var KEKIdentifier = class {
55599
+ keyIdentifier = new OctetString2();
55600
+ date;
55601
+ other;
54724
55602
  constructor(params = {}) {
54725
- this.keyIdentifier = new OctetString2();
54726
55603
  Object.assign(this, params);
54727
55604
  }
54728
55605
  };
@@ -54730,17 +55607,23 @@ __decorate([
54730
55607
  AsnProp({ type: OctetString2 })
54731
55608
  ], KEKIdentifier.prototype, "keyIdentifier", void 0);
54732
55609
  __decorate([
54733
- AsnProp({ type: AsnPropTypes.GeneralizedTime, optional: true })
55610
+ AsnProp({
55611
+ type: AsnPropTypes.GeneralizedTime,
55612
+ optional: true
55613
+ })
54734
55614
  ], KEKIdentifier.prototype, "date", void 0);
54735
55615
  __decorate([
54736
- AsnProp({ type: OtherKeyAttribute, optional: true })
55616
+ AsnProp({
55617
+ type: OtherKeyAttribute,
55618
+ optional: true
55619
+ })
54737
55620
  ], KEKIdentifier.prototype, "other", void 0);
54738
55621
  var KEKRecipientInfo = class {
55622
+ version = CMSVersion.v4;
55623
+ kekid = new KEKIdentifier();
55624
+ keyEncryptionAlgorithm = new KeyEncryptionAlgorithmIdentifier();
55625
+ encryptedKey = new OctetString2();
54739
55626
  constructor(params = {}) {
54740
- this.version = CMSVersion.v4;
54741
- this.kekid = new KEKIdentifier();
54742
- this.keyEncryptionAlgorithm = new KeyEncryptionAlgorithmIdentifier();
54743
- this.encryptedKey = new OctetString2();
54744
55627
  Object.assign(this, params);
54745
55628
  }
54746
55629
  };
@@ -54760,10 +55643,11 @@ __decorate([
54760
55643
  // ../../node_modules/@peculiar/asn1-cms/build/es2015/password_recipient_info.js
54761
55644
  init_inject_buffer();
54762
55645
  var PasswordRecipientInfo = class {
55646
+ version = CMSVersion.v0;
55647
+ keyDerivationAlgorithm;
55648
+ keyEncryptionAlgorithm = new KeyEncryptionAlgorithmIdentifier();
55649
+ encryptedKey = new OctetString2();
54763
55650
  constructor(params = {}) {
54764
- this.version = CMSVersion.v0;
54765
- this.keyEncryptionAlgorithm = new KeyEncryptionAlgorithmIdentifier();
54766
- this.encryptedKey = new OctetString2();
54767
55651
  Object.assign(this, params);
54768
55652
  }
54769
55653
  };
@@ -54771,7 +55655,11 @@ __decorate([
54771
55655
  AsnProp({ type: AsnPropTypes.Integer })
54772
55656
  ], PasswordRecipientInfo.prototype, "version", void 0);
54773
55657
  __decorate([
54774
- AsnProp({ type: KeyDerivationAlgorithmIdentifier, context: 0, optional: true })
55658
+ AsnProp({
55659
+ type: KeyDerivationAlgorithmIdentifier,
55660
+ context: 0,
55661
+ optional: true
55662
+ })
54775
55663
  ], PasswordRecipientInfo.prototype, "keyDerivationAlgorithm", void 0);
54776
55664
  __decorate([
54777
55665
  AsnProp({ type: KeyEncryptionAlgorithmIdentifier })
@@ -54782,9 +55670,9 @@ __decorate([
54782
55670
 
54783
55671
  // ../../node_modules/@peculiar/asn1-cms/build/es2015/recipient_info.js
54784
55672
  var OtherRecipientInfo = class {
55673
+ oriType = "";
55674
+ oriValue = new ArrayBuffer(0);
54785
55675
  constructor(params = {}) {
54786
- this.oriType = "";
54787
- this.oriValue = new ArrayBuffer(0);
54788
55676
  Object.assign(this, params);
54789
55677
  }
54790
55678
  };
@@ -54795,24 +55683,52 @@ __decorate([
54795
55683
  AsnProp({ type: AsnPropTypes.Any })
54796
55684
  ], OtherRecipientInfo.prototype, "oriValue", void 0);
54797
55685
  var RecipientInfo = class RecipientInfo2 {
55686
+ ktri;
55687
+ kari;
55688
+ kekri;
55689
+ pwri;
55690
+ ori;
54798
55691
  constructor(params = {}) {
54799
55692
  Object.assign(this, params);
54800
55693
  }
54801
55694
  };
54802
55695
  __decorate([
54803
- AsnProp({ type: KeyTransRecipientInfo, optional: true })
55696
+ AsnProp({
55697
+ type: KeyTransRecipientInfo,
55698
+ optional: true
55699
+ })
54804
55700
  ], RecipientInfo.prototype, "ktri", void 0);
54805
55701
  __decorate([
54806
- AsnProp({ type: KeyAgreeRecipientInfo, context: 1, implicit: true, optional: true })
55702
+ AsnProp({
55703
+ type: KeyAgreeRecipientInfo,
55704
+ context: 1,
55705
+ implicit: true,
55706
+ optional: true
55707
+ })
54807
55708
  ], RecipientInfo.prototype, "kari", void 0);
54808
55709
  __decorate([
54809
- AsnProp({ type: KEKRecipientInfo, context: 2, implicit: true, optional: true })
55710
+ AsnProp({
55711
+ type: KEKRecipientInfo,
55712
+ context: 2,
55713
+ implicit: true,
55714
+ optional: true
55715
+ })
54810
55716
  ], RecipientInfo.prototype, "kekri", void 0);
54811
55717
  __decorate([
54812
- AsnProp({ type: PasswordRecipientInfo, context: 3, implicit: true, optional: true })
55718
+ AsnProp({
55719
+ type: PasswordRecipientInfo,
55720
+ context: 3,
55721
+ implicit: true,
55722
+ optional: true
55723
+ })
54813
55724
  ], RecipientInfo.prototype, "pwri", void 0);
54814
55725
  __decorate([
54815
- AsnProp({ type: OtherRecipientInfo, context: 4, implicit: true, optional: true })
55726
+ AsnProp({
55727
+ type: OtherRecipientInfo,
55728
+ context: 4,
55729
+ implicit: true,
55730
+ optional: true
55731
+ })
54816
55732
  ], RecipientInfo.prototype, "ori", void 0);
54817
55733
  RecipientInfo = __decorate([
54818
55734
  AsnType({ type: AsnTypeTypes.Choice })
@@ -54827,7 +55743,10 @@ var RecipientInfos = RecipientInfos_1 = class RecipientInfos2 extends AsnArray {
54827
55743
  }
54828
55744
  };
54829
55745
  RecipientInfos = RecipientInfos_1 = __decorate([
54830
- AsnType({ type: AsnTypeTypes.Set, itemType: RecipientInfo })
55746
+ AsnType({
55747
+ type: AsnTypeTypes.Set,
55748
+ itemType: RecipientInfo
55749
+ })
54831
55750
  ], RecipientInfos);
54832
55751
 
54833
55752
  // ../../node_modules/@peculiar/asn1-cms/build/es2015/originator_info.js
@@ -54840,9 +55759,9 @@ var id_ri = `${id_pkix}.16`;
54840
55759
  var id_ri_ocsp_response = `${id_ri}.2`;
54841
55760
  var id_ri_scvp = `${id_ri}.4`;
54842
55761
  var OtherRevocationInfoFormat = class {
55762
+ otherRevInfoFormat = "";
55763
+ otherRevInfo = new ArrayBuffer(0);
54843
55764
  constructor(params = {}) {
54844
- this.otherRevInfoFormat = "";
54845
- this.otherRevInfo = new ArrayBuffer(0);
54846
55765
  Object.assign(this, params);
54847
55766
  }
54848
55767
  };
@@ -54853,13 +55772,17 @@ __decorate([
54853
55772
  AsnProp({ type: AsnPropTypes.Any })
54854
55773
  ], OtherRevocationInfoFormat.prototype, "otherRevInfo", void 0);
54855
55774
  var RevocationInfoChoice = class RevocationInfoChoice2 {
55775
+ other = new OtherRevocationInfoFormat();
54856
55776
  constructor(params = {}) {
54857
- this.other = new OtherRevocationInfoFormat();
54858
55777
  Object.assign(this, params);
54859
55778
  }
54860
55779
  };
54861
55780
  __decorate([
54862
- AsnProp({ type: OtherRevocationInfoFormat, context: 1, implicit: true })
55781
+ AsnProp({
55782
+ type: OtherRevocationInfoFormat,
55783
+ context: 1,
55784
+ implicit: true
55785
+ })
54863
55786
  ], RevocationInfoChoice.prototype, "other", void 0);
54864
55787
  RevocationInfoChoice = __decorate([
54865
55788
  AsnType({ type: AsnTypeTypes.Choice })
@@ -54871,20 +55794,35 @@ var RevocationInfoChoices = RevocationInfoChoices_1 = class RevocationInfoChoice
54871
55794
  }
54872
55795
  };
54873
55796
  RevocationInfoChoices = RevocationInfoChoices_1 = __decorate([
54874
- AsnType({ type: AsnTypeTypes.Set, itemType: RevocationInfoChoice })
55797
+ AsnType({
55798
+ type: AsnTypeTypes.Set,
55799
+ itemType: RevocationInfoChoice
55800
+ })
54875
55801
  ], RevocationInfoChoices);
54876
55802
 
54877
55803
  // ../../node_modules/@peculiar/asn1-cms/build/es2015/originator_info.js
54878
55804
  var OriginatorInfo = class {
55805
+ certs;
55806
+ crls;
54879
55807
  constructor(params = {}) {
54880
55808
  Object.assign(this, params);
54881
55809
  }
54882
55810
  };
54883
55811
  __decorate([
54884
- AsnProp({ type: CertificateSet, context: 0, implicit: true, optional: true })
55812
+ AsnProp({
55813
+ type: CertificateSet,
55814
+ context: 0,
55815
+ implicit: true,
55816
+ optional: true
55817
+ })
54885
55818
  ], OriginatorInfo.prototype, "certs", void 0);
54886
55819
  __decorate([
54887
- AsnProp({ type: RevocationInfoChoices, context: 1, implicit: true, optional: true })
55820
+ AsnProp({
55821
+ type: RevocationInfoChoices,
55822
+ context: 1,
55823
+ implicit: true,
55824
+ optional: true
55825
+ })
54888
55826
  ], OriginatorInfo.prototype, "crls", void 0);
54889
55827
 
54890
55828
  // ../../node_modules/@peculiar/asn1-cms/build/es2015/enveloped_data.js
@@ -54896,13 +55834,18 @@ var UnprotectedAttributes = UnprotectedAttributes_1 = class UnprotectedAttribute
54896
55834
  }
54897
55835
  };
54898
55836
  UnprotectedAttributes = UnprotectedAttributes_1 = __decorate([
54899
- AsnType({ type: AsnTypeTypes.Set, itemType: Attribute2 })
55837
+ AsnType({
55838
+ type: AsnTypeTypes.Set,
55839
+ itemType: Attribute2
55840
+ })
54900
55841
  ], UnprotectedAttributes);
54901
55842
  var EnvelopedData = class {
55843
+ version = CMSVersion.v0;
55844
+ originatorInfo;
55845
+ recipientInfos = new RecipientInfos();
55846
+ encryptedContentInfo = new EncryptedContentInfo();
55847
+ unprotectedAttrs;
54902
55848
  constructor(params = {}) {
54903
- this.version = CMSVersion.v0;
54904
- this.recipientInfos = new RecipientInfos();
54905
- this.encryptedContentInfo = new EncryptedContentInfo();
54906
55849
  Object.assign(this, params);
54907
55850
  }
54908
55851
  };
@@ -54910,7 +55853,12 @@ __decorate([
54910
55853
  AsnProp({ type: AsnPropTypes.Integer })
54911
55854
  ], EnvelopedData.prototype, "version", void 0);
54912
55855
  __decorate([
54913
- AsnProp({ type: OriginatorInfo, context: 0, implicit: true, optional: true })
55856
+ AsnProp({
55857
+ type: OriginatorInfo,
55858
+ context: 0,
55859
+ implicit: true,
55860
+ optional: true
55861
+ })
54914
55862
  ], EnvelopedData.prototype, "originatorInfo", void 0);
54915
55863
  __decorate([
54916
55864
  AsnProp({ type: RecipientInfos })
@@ -54919,7 +55867,12 @@ __decorate([
54919
55867
  AsnProp({ type: EncryptedContentInfo })
54920
55868
  ], EnvelopedData.prototype, "encryptedContentInfo", void 0);
54921
55869
  __decorate([
54922
- AsnProp({ type: UnprotectedAttributes, context: 1, implicit: true, optional: true })
55870
+ AsnProp({
55871
+ type: UnprotectedAttributes,
55872
+ context: 1,
55873
+ implicit: true,
55874
+ optional: true
55875
+ })
54923
55876
  ], EnvelopedData.prototype, "unprotectedAttrs", void 0);
54924
55877
 
54925
55878
  // ../../node_modules/@peculiar/asn1-cms/build/es2015/object_identifiers.js
@@ -54937,14 +55890,19 @@ var DigestAlgorithmIdentifiers = DigestAlgorithmIdentifiers_1 = class DigestAlgo
54937
55890
  }
54938
55891
  };
54939
55892
  DigestAlgorithmIdentifiers = DigestAlgorithmIdentifiers_1 = __decorate([
54940
- AsnType({ type: AsnTypeTypes.Set, itemType: DigestAlgorithmIdentifier })
55893
+ AsnType({
55894
+ type: AsnTypeTypes.Set,
55895
+ itemType: DigestAlgorithmIdentifier
55896
+ })
54941
55897
  ], DigestAlgorithmIdentifiers);
54942
55898
  var SignedData = class {
55899
+ version = CMSVersion.v0;
55900
+ digestAlgorithms = new DigestAlgorithmIdentifiers();
55901
+ encapContentInfo = new EncapsulatedContentInfo();
55902
+ certificates;
55903
+ crls;
55904
+ signerInfos = new SignerInfos();
54943
55905
  constructor(params = {}) {
54944
- this.version = CMSVersion.v0;
54945
- this.digestAlgorithms = new DigestAlgorithmIdentifiers();
54946
- this.encapContentInfo = new EncapsulatedContentInfo();
54947
- this.signerInfos = new SignerInfos();
54948
55906
  Object.assign(this, params);
54949
55907
  }
54950
55908
  };
@@ -54958,10 +55916,20 @@ __decorate([
54958
55916
  AsnProp({ type: EncapsulatedContentInfo })
54959
55917
  ], SignedData.prototype, "encapContentInfo", void 0);
54960
55918
  __decorate([
54961
- AsnProp({ type: CertificateSet, context: 0, implicit: true, optional: true })
55919
+ AsnProp({
55920
+ type: CertificateSet,
55921
+ context: 0,
55922
+ implicit: true,
55923
+ optional: true
55924
+ })
54962
55925
  ], SignedData.prototype, "certificates", void 0);
54963
55926
  __decorate([
54964
- AsnProp({ type: RevocationInfoChoices, context: 1, implicit: true, optional: true })
55927
+ AsnProp({
55928
+ type: RevocationInfoChoices,
55929
+ context: 1,
55930
+ implicit: true,
55931
+ optional: true
55932
+ })
54965
55933
  ], SignedData.prototype, "crls", void 0);
54966
55934
  __decorate([
54967
55935
  AsnProp({ type: SignerInfos })
@@ -55161,7 +56129,10 @@ var id_mgf1 = `${id_pkcs_1}.8`;
55161
56129
  // ../../node_modules/@peculiar/asn1-rsa/build/es2015/algorithms.js
55162
56130
  init_inject_buffer();
55163
56131
  function create2(algorithm) {
55164
- return new AlgorithmIdentifier({ algorithm, parameters: null });
56132
+ return new AlgorithmIdentifier({
56133
+ algorithm,
56134
+ parameters: null
56135
+ });
55165
56136
  }
55166
56137
  var md2 = create2(id_md2);
55167
56138
  var md4 = create2(id_md5);
@@ -55178,28 +56149,7 @@ var mgf1SHA1 = new AlgorithmIdentifier({
55178
56149
  });
55179
56150
  var pSpecifiedEmpty = new AlgorithmIdentifier({
55180
56151
  algorithm: id_pSpecified,
55181
- parameters: AsnConvert.serialize(AsnOctetStringConverter.toASN(new Uint8Array([
55182
- 218,
55183
- 57,
55184
- 163,
55185
- 238,
55186
- 94,
55187
- 107,
55188
- 75,
55189
- 13,
55190
- 50,
55191
- 85,
55192
- 191,
55193
- 239,
55194
- 149,
55195
- 96,
55196
- 24,
55197
- 144,
55198
- 175,
55199
- 216,
55200
- 7,
55201
- 9
55202
- ]).buffer))
56152
+ parameters: AsnConvert.serialize(AsnOctetStringConverter.toASN(new Uint8Array([218, 57, 163, 238, 94, 107, 75, 13, 50, 85, 191, 239, 149, 96, 24, 144, 175, 216, 7, 9]).buffer))
55203
56153
  });
55204
56154
  var rsaEncryption = create2(id_rsaEncryption);
55205
56155
  var md2WithRSAEncryption = create2(id_md2WithRSAEncryption);
@@ -55214,24 +56164,36 @@ var sha512_256WithRSAEncryption = create2(id_sha512_256WithRSAEncryption);
55214
56164
 
55215
56165
  // ../../node_modules/@peculiar/asn1-rsa/build/es2015/parameters/rsaes_oaep.js
55216
56166
  var RsaEsOaepParams = class {
56167
+ hashAlgorithm = new AlgorithmIdentifier(sha1);
56168
+ maskGenAlgorithm = new AlgorithmIdentifier({
56169
+ algorithm: id_mgf1,
56170
+ parameters: AsnConvert.serialize(sha1)
56171
+ });
56172
+ pSourceAlgorithm = new AlgorithmIdentifier(pSpecifiedEmpty);
55217
56173
  constructor(params = {}) {
55218
- this.hashAlgorithm = new AlgorithmIdentifier(sha1);
55219
- this.maskGenAlgorithm = new AlgorithmIdentifier({
55220
- algorithm: id_mgf1,
55221
- parameters: AsnConvert.serialize(sha1)
55222
- });
55223
- this.pSourceAlgorithm = new AlgorithmIdentifier(pSpecifiedEmpty);
55224
56174
  Object.assign(this, params);
55225
56175
  }
55226
56176
  };
55227
56177
  __decorate([
55228
- AsnProp({ type: AlgorithmIdentifier, context: 0, defaultValue: sha1 })
56178
+ AsnProp({
56179
+ type: AlgorithmIdentifier,
56180
+ context: 0,
56181
+ defaultValue: sha1
56182
+ })
55229
56183
  ], RsaEsOaepParams.prototype, "hashAlgorithm", void 0);
55230
56184
  __decorate([
55231
- AsnProp({ type: AlgorithmIdentifier, context: 1, defaultValue: mgf1SHA1 })
56185
+ AsnProp({
56186
+ type: AlgorithmIdentifier,
56187
+ context: 1,
56188
+ defaultValue: mgf1SHA1
56189
+ })
55232
56190
  ], RsaEsOaepParams.prototype, "maskGenAlgorithm", void 0);
55233
56191
  __decorate([
55234
- AsnProp({ type: AlgorithmIdentifier, context: 2, defaultValue: pSpecifiedEmpty })
56192
+ AsnProp({
56193
+ type: AlgorithmIdentifier,
56194
+ context: 2,
56195
+ defaultValue: pSpecifiedEmpty
56196
+ })
55235
56197
  ], RsaEsOaepParams.prototype, "pSourceAlgorithm", void 0);
55236
56198
  var RSAES_OAEP = new AlgorithmIdentifier({
55237
56199
  algorithm: id_RSAES_OAEP,
@@ -55241,28 +56203,44 @@ var RSAES_OAEP = new AlgorithmIdentifier({
55241
56203
  // ../../node_modules/@peculiar/asn1-rsa/build/es2015/parameters/rsassa_pss.js
55242
56204
  init_inject_buffer();
55243
56205
  var RsaSaPssParams = class {
56206
+ hashAlgorithm = new AlgorithmIdentifier(sha1);
56207
+ maskGenAlgorithm = new AlgorithmIdentifier({
56208
+ algorithm: id_mgf1,
56209
+ parameters: AsnConvert.serialize(sha1)
56210
+ });
56211
+ saltLength = 20;
56212
+ trailerField = 1;
55244
56213
  constructor(params = {}) {
55245
- this.hashAlgorithm = new AlgorithmIdentifier(sha1);
55246
- this.maskGenAlgorithm = new AlgorithmIdentifier({
55247
- algorithm: id_mgf1,
55248
- parameters: AsnConvert.serialize(sha1)
55249
- });
55250
- this.saltLength = 20;
55251
- this.trailerField = 1;
55252
56214
  Object.assign(this, params);
55253
56215
  }
55254
56216
  };
55255
56217
  __decorate([
55256
- AsnProp({ type: AlgorithmIdentifier, context: 0, defaultValue: sha1 })
56218
+ AsnProp({
56219
+ type: AlgorithmIdentifier,
56220
+ context: 0,
56221
+ defaultValue: sha1
56222
+ })
55257
56223
  ], RsaSaPssParams.prototype, "hashAlgorithm", void 0);
55258
56224
  __decorate([
55259
- AsnProp({ type: AlgorithmIdentifier, context: 1, defaultValue: mgf1SHA1 })
56225
+ AsnProp({
56226
+ type: AlgorithmIdentifier,
56227
+ context: 1,
56228
+ defaultValue: mgf1SHA1
56229
+ })
55260
56230
  ], RsaSaPssParams.prototype, "maskGenAlgorithm", void 0);
55261
56231
  __decorate([
55262
- AsnProp({ type: AsnPropTypes.Integer, context: 2, defaultValue: 20 })
56232
+ AsnProp({
56233
+ type: AsnPropTypes.Integer,
56234
+ context: 2,
56235
+ defaultValue: 20
56236
+ })
55263
56237
  ], RsaSaPssParams.prototype, "saltLength", void 0);
55264
56238
  __decorate([
55265
- AsnProp({ type: AsnPropTypes.Integer, context: 3, defaultValue: 1 })
56239
+ AsnProp({
56240
+ type: AsnPropTypes.Integer,
56241
+ context: 3,
56242
+ defaultValue: 1
56243
+ })
55266
56244
  ], RsaSaPssParams.prototype, "trailerField", void 0);
55267
56245
  var RSASSA_PSS = new AlgorithmIdentifier({
55268
56246
  algorithm: id_RSASSA_PSS,
@@ -55272,9 +56250,9 @@ var RSASSA_PSS = new AlgorithmIdentifier({
55272
56250
  // ../../node_modules/@peculiar/asn1-rsa/build/es2015/parameters/rsassa_pkcs1_v1_5.js
55273
56251
  init_inject_buffer();
55274
56252
  var DigestInfo = class {
56253
+ digestAlgorithm = new AlgorithmIdentifier();
56254
+ digest = new OctetString2();
55275
56255
  constructor(params = {}) {
55276
- this.digestAlgorithm = new AlgorithmIdentifier();
55277
- this.digest = new OctetString2();
55278
56256
  Object.assign(this, params);
55279
56257
  }
55280
56258
  };
@@ -55289,21 +56267,30 @@ __decorate([
55289
56267
  init_inject_buffer();
55290
56268
  var OtherPrimeInfos_1;
55291
56269
  var OtherPrimeInfo = class {
56270
+ prime = new ArrayBuffer(0);
56271
+ exponent = new ArrayBuffer(0);
56272
+ coefficient = new ArrayBuffer(0);
55292
56273
  constructor(params = {}) {
55293
- this.prime = new ArrayBuffer(0);
55294
- this.exponent = new ArrayBuffer(0);
55295
- this.coefficient = new ArrayBuffer(0);
55296
56274
  Object.assign(this, params);
55297
56275
  }
55298
56276
  };
55299
56277
  __decorate([
55300
- AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
56278
+ AsnProp({
56279
+ type: AsnPropTypes.Integer,
56280
+ converter: AsnIntegerArrayBufferConverter
56281
+ })
55301
56282
  ], OtherPrimeInfo.prototype, "prime", void 0);
55302
56283
  __decorate([
55303
- AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
56284
+ AsnProp({
56285
+ type: AsnPropTypes.Integer,
56286
+ converter: AsnIntegerArrayBufferConverter
56287
+ })
55304
56288
  ], OtherPrimeInfo.prototype, "exponent", void 0);
55305
56289
  __decorate([
55306
- AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
56290
+ AsnProp({
56291
+ type: AsnPropTypes.Integer,
56292
+ converter: AsnIntegerArrayBufferConverter
56293
+ })
55307
56294
  ], OtherPrimeInfo.prototype, "coefficient", void 0);
55308
56295
  var OtherPrimeInfos = OtherPrimeInfos_1 = class OtherPrimeInfos2 extends AsnArray {
55309
56296
  constructor(items) {
@@ -55312,22 +56299,26 @@ var OtherPrimeInfos = OtherPrimeInfos_1 = class OtherPrimeInfos2 extends AsnArra
55312
56299
  }
55313
56300
  };
55314
56301
  OtherPrimeInfos = OtherPrimeInfos_1 = __decorate([
55315
- AsnType({ type: AsnTypeTypes.Sequence, itemType: OtherPrimeInfo })
56302
+ AsnType({
56303
+ type: AsnTypeTypes.Sequence,
56304
+ itemType: OtherPrimeInfo
56305
+ })
55316
56306
  ], OtherPrimeInfos);
55317
56307
 
55318
56308
  // ../../node_modules/@peculiar/asn1-rsa/build/es2015/rsa_private_key.js
55319
56309
  init_inject_buffer();
55320
56310
  var RSAPrivateKey = class {
56311
+ version = 0;
56312
+ modulus = new ArrayBuffer(0);
56313
+ publicExponent = new ArrayBuffer(0);
56314
+ privateExponent = new ArrayBuffer(0);
56315
+ prime1 = new ArrayBuffer(0);
56316
+ prime2 = new ArrayBuffer(0);
56317
+ exponent1 = new ArrayBuffer(0);
56318
+ exponent2 = new ArrayBuffer(0);
56319
+ coefficient = new ArrayBuffer(0);
56320
+ otherPrimeInfos;
55321
56321
  constructor(params = {}) {
55322
- this.version = 0;
55323
- this.modulus = new ArrayBuffer(0);
55324
- this.publicExponent = new ArrayBuffer(0);
55325
- this.privateExponent = new ArrayBuffer(0);
55326
- this.prime1 = new ArrayBuffer(0);
55327
- this.prime2 = new ArrayBuffer(0);
55328
- this.exponent1 = new ArrayBuffer(0);
55329
- this.exponent2 = new ArrayBuffer(0);
55330
- this.coefficient = new ArrayBuffer(0);
55331
56322
  Object.assign(this, params);
55332
56323
  }
55333
56324
  };
@@ -55335,47 +56326,80 @@ __decorate([
55335
56326
  AsnProp({ type: AsnPropTypes.Integer })
55336
56327
  ], RSAPrivateKey.prototype, "version", void 0);
55337
56328
  __decorate([
55338
- AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
56329
+ AsnProp({
56330
+ type: AsnPropTypes.Integer,
56331
+ converter: AsnIntegerArrayBufferConverter
56332
+ })
55339
56333
  ], RSAPrivateKey.prototype, "modulus", void 0);
55340
56334
  __decorate([
55341
- AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
56335
+ AsnProp({
56336
+ type: AsnPropTypes.Integer,
56337
+ converter: AsnIntegerArrayBufferConverter
56338
+ })
55342
56339
  ], RSAPrivateKey.prototype, "publicExponent", void 0);
55343
56340
  __decorate([
55344
- AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
56341
+ AsnProp({
56342
+ type: AsnPropTypes.Integer,
56343
+ converter: AsnIntegerArrayBufferConverter
56344
+ })
55345
56345
  ], RSAPrivateKey.prototype, "privateExponent", void 0);
55346
56346
  __decorate([
55347
- AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
56347
+ AsnProp({
56348
+ type: AsnPropTypes.Integer,
56349
+ converter: AsnIntegerArrayBufferConverter
56350
+ })
55348
56351
  ], RSAPrivateKey.prototype, "prime1", void 0);
55349
56352
  __decorate([
55350
- AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
56353
+ AsnProp({
56354
+ type: AsnPropTypes.Integer,
56355
+ converter: AsnIntegerArrayBufferConverter
56356
+ })
55351
56357
  ], RSAPrivateKey.prototype, "prime2", void 0);
55352
56358
  __decorate([
55353
- AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
56359
+ AsnProp({
56360
+ type: AsnPropTypes.Integer,
56361
+ converter: AsnIntegerArrayBufferConverter
56362
+ })
55354
56363
  ], RSAPrivateKey.prototype, "exponent1", void 0);
55355
56364
  __decorate([
55356
- AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
56365
+ AsnProp({
56366
+ type: AsnPropTypes.Integer,
56367
+ converter: AsnIntegerArrayBufferConverter
56368
+ })
55357
56369
  ], RSAPrivateKey.prototype, "exponent2", void 0);
55358
56370
  __decorate([
55359
- AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
56371
+ AsnProp({
56372
+ type: AsnPropTypes.Integer,
56373
+ converter: AsnIntegerArrayBufferConverter
56374
+ })
55360
56375
  ], RSAPrivateKey.prototype, "coefficient", void 0);
55361
56376
  __decorate([
55362
- AsnProp({ type: OtherPrimeInfos, optional: true })
56377
+ AsnProp({
56378
+ type: OtherPrimeInfos,
56379
+ optional: true
56380
+ })
55363
56381
  ], RSAPrivateKey.prototype, "otherPrimeInfos", void 0);
55364
56382
 
55365
56383
  // ../../node_modules/@peculiar/asn1-rsa/build/es2015/rsa_public_key.js
55366
56384
  init_inject_buffer();
55367
56385
  var RSAPublicKey = class {
56386
+ modulus = new ArrayBuffer(0);
56387
+ publicExponent = new ArrayBuffer(0);
55368
56388
  constructor(params = {}) {
55369
- this.modulus = new ArrayBuffer(0);
55370
- this.publicExponent = new ArrayBuffer(0);
55371
56389
  Object.assign(this, params);
55372
56390
  }
55373
56391
  };
55374
56392
  __decorate([
55375
- AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
56393
+ AsnProp({
56394
+ type: AsnPropTypes.Integer,
56395
+ converter: AsnIntegerArrayBufferConverter
56396
+ })
55376
56397
  ], RSAPublicKey.prototype, "modulus", void 0);
55377
56398
  __decorate([
55378
- AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
56399
+ AsnProp({
56400
+ type: AsnPropTypes.Integer,
56401
+ converter: AsnIntegerArrayBufferConverter
56402
+ })
55379
56403
  ], RSAPublicKey.prototype, "publicExponent", void 0);
55380
56404
 
55381
56405
  // ../../node_modules/tsyringe/dist/esm5/index.js
@@ -56249,9 +57273,9 @@ init_inject_buffer();
56249
57273
  init_inject_buffer();
56250
57274
  var PKCS12AttrSet_1;
56251
57275
  var PKCS12Attribute = class {
57276
+ attrId = "";
57277
+ attrValues = [];
56252
57278
  constructor(params = {}) {
56253
- this.attrId = "";
56254
- this.attrValues = [];
56255
57279
  Object.assign(params);
56256
57280
  }
56257
57281
  };
@@ -56259,7 +57283,10 @@ __decorate([
56259
57283
  AsnProp({ type: AsnPropTypes.ObjectIdentifier })
56260
57284
  ], PKCS12Attribute.prototype, "attrId", void 0);
56261
57285
  __decorate([
56262
- AsnProp({ type: AsnPropTypes.Any, repeated: "set" })
57286
+ AsnProp({
57287
+ type: AsnPropTypes.Any,
57288
+ repeated: "set"
57289
+ })
56263
57290
  ], PKCS12Attribute.prototype, "attrValues", void 0);
56264
57291
  var PKCS12AttrSet = PKCS12AttrSet_1 = class PKCS12AttrSet2 extends AsnArray {
56265
57292
  constructor(items) {
@@ -56268,7 +57295,10 @@ var PKCS12AttrSet = PKCS12AttrSet_1 = class PKCS12AttrSet2 extends AsnArray {
56268
57295
  }
56269
57296
  };
56270
57297
  PKCS12AttrSet = PKCS12AttrSet_1 = __decorate([
56271
- AsnType({ type: AsnTypeTypes.Sequence, itemType: PKCS12Attribute })
57298
+ AsnType({
57299
+ type: AsnTypeTypes.Sequence,
57300
+ itemType: PKCS12Attribute
57301
+ })
56272
57302
  ], PKCS12AttrSet);
56273
57303
 
56274
57304
  // ../../node_modules/@peculiar/asn1-pfx/build/es2015/authenticated_safe.js
@@ -56281,7 +57311,10 @@ var AuthenticatedSafe = AuthenticatedSafe_1 = class AuthenticatedSafe2 extends A
56281
57311
  }
56282
57312
  };
56283
57313
  AuthenticatedSafe = AuthenticatedSafe_1 = __decorate([
56284
- AsnType({ type: AsnTypeTypes.Sequence, itemType: ContentInfo })
57314
+ AsnType({
57315
+ type: AsnTypeTypes.Sequence,
57316
+ itemType: ContentInfo
57317
+ })
56285
57318
  ], AuthenticatedSafe);
56286
57319
 
56287
57320
  // ../../node_modules/@peculiar/asn1-pfx/build/es2015/bags/index.js
@@ -56318,9 +57351,9 @@ var id_pkcs_9 = "1.2.840.113549.1.9";
56318
57351
 
56319
57352
  // ../../node_modules/@peculiar/asn1-pfx/build/es2015/bags/cert_bag.js
56320
57353
  var CertBag = class {
57354
+ certId = "";
57355
+ certValue = new ArrayBuffer(0);
56321
57356
  constructor(params = {}) {
56322
- this.certId = "";
56323
- this.certValue = new ArrayBuffer(0);
56324
57357
  Object.assign(this, params);
56325
57358
  }
56326
57359
  };
@@ -56328,7 +57361,10 @@ __decorate([
56328
57361
  AsnProp({ type: AsnPropTypes.ObjectIdentifier })
56329
57362
  ], CertBag.prototype, "certId", void 0);
56330
57363
  __decorate([
56331
- AsnProp({ type: AsnPropTypes.Any, context: 0 })
57364
+ AsnProp({
57365
+ type: AsnPropTypes.Any,
57366
+ context: 0
57367
+ })
56332
57368
  ], CertBag.prototype, "certValue", void 0);
56333
57369
  var id_certTypes = `${id_pkcs_9}.22`;
56334
57370
  var id_x509Certificate = `${id_certTypes}.1`;
@@ -56337,9 +57373,9 @@ var id_sdsiCertificate = `${id_certTypes}.2`;
56337
57373
  // ../../node_modules/@peculiar/asn1-pfx/build/es2015/bags/crl_bag.js
56338
57374
  init_inject_buffer();
56339
57375
  var CRLBag = class {
57376
+ crlId = "";
57377
+ crltValue = new ArrayBuffer(0);
56340
57378
  constructor(params = {}) {
56341
- this.crlId = "";
56342
- this.crltValue = new ArrayBuffer(0);
56343
57379
  Object.assign(this, params);
56344
57380
  }
56345
57381
  };
@@ -56347,7 +57383,10 @@ __decorate([
56347
57383
  AsnProp({ type: AsnPropTypes.ObjectIdentifier })
56348
57384
  ], CRLBag.prototype, "crlId", void 0);
56349
57385
  __decorate([
56350
- AsnProp({ type: AsnPropTypes.Any, context: 0 })
57386
+ AsnProp({
57387
+ type: AsnPropTypes.Any,
57388
+ context: 0
57389
+ })
56351
57390
  ], CRLBag.prototype, "crltValue", void 0);
56352
57391
  var id_crlTypes = `${id_pkcs_9}.23`;
56353
57392
  var id_x509CRL = `${id_crlTypes}.1`;
@@ -56363,9 +57402,9 @@ init_inject_buffer();
56363
57402
  var EncryptedData = class extends OctetString2 {
56364
57403
  };
56365
57404
  var EncryptedPrivateKeyInfo = class {
57405
+ encryptionAlgorithm = new AlgorithmIdentifier();
57406
+ encryptedData = new EncryptedData();
56366
57407
  constructor(params = {}) {
56367
- this.encryptionAlgorithm = new AlgorithmIdentifier();
56368
- this.encryptedData = new EncryptedData();
56369
57408
  Object.assign(this, params);
56370
57409
  }
56371
57410
  };
@@ -56392,13 +57431,17 @@ var Attributes = Attributes_1 = class Attributes2 extends AsnArray {
56392
57431
  }
56393
57432
  };
56394
57433
  Attributes = Attributes_1 = __decorate([
56395
- AsnType({ type: AsnTypeTypes.Sequence, itemType: Attribute })
57434
+ AsnType({
57435
+ type: AsnTypeTypes.Sequence,
57436
+ itemType: Attribute
57437
+ })
56396
57438
  ], Attributes);
56397
57439
  var PrivateKeyInfo = class {
57440
+ version = Version2.v1;
57441
+ privateKeyAlgorithm = new AlgorithmIdentifier();
57442
+ privateKey = new PrivateKey();
57443
+ attributes;
56398
57444
  constructor(params = {}) {
56399
- this.version = Version2.v1;
56400
- this.privateKeyAlgorithm = new AlgorithmIdentifier();
56401
- this.privateKey = new PrivateKey();
56402
57445
  Object.assign(this, params);
56403
57446
  }
56404
57447
  };
@@ -56412,7 +57455,12 @@ __decorate([
56412
57455
  AsnProp({ type: PrivateKey })
56413
57456
  ], PrivateKeyInfo.prototype, "privateKey", void 0);
56414
57457
  __decorate([
56415
- AsnProp({ type: Attributes, implicit: true, context: 0, optional: true })
57458
+ AsnProp({
57459
+ type: Attributes,
57460
+ implicit: true,
57461
+ context: 0,
57462
+ optional: true
57463
+ })
56416
57464
  ], PrivateKeyInfo.prototype, "attributes", void 0);
56417
57465
 
56418
57466
  // ../../node_modules/@peculiar/asn1-pfx/build/es2015/bags/key_bag.js
@@ -56433,9 +57481,9 @@ PKCS8ShroudedKeyBag = __decorate([
56433
57481
  // ../../node_modules/@peculiar/asn1-pfx/build/es2015/bags/secret_bag.js
56434
57482
  init_inject_buffer();
56435
57483
  var SecretBag = class {
57484
+ secretTypeId = "";
57485
+ secretValue = new ArrayBuffer(0);
56436
57486
  constructor(params = {}) {
56437
- this.secretTypeId = "";
56438
- this.secretValue = new ArrayBuffer(0);
56439
57487
  Object.assign(this, params);
56440
57488
  }
56441
57489
  };
@@ -56443,16 +57491,19 @@ __decorate([
56443
57491
  AsnProp({ type: AsnPropTypes.ObjectIdentifier })
56444
57492
  ], SecretBag.prototype, "secretTypeId", void 0);
56445
57493
  __decorate([
56446
- AsnProp({ type: AsnPropTypes.Any, context: 0 })
57494
+ AsnProp({
57495
+ type: AsnPropTypes.Any,
57496
+ context: 0
57497
+ })
56447
57498
  ], SecretBag.prototype, "secretValue", void 0);
56448
57499
 
56449
57500
  // ../../node_modules/@peculiar/asn1-pfx/build/es2015/mac_data.js
56450
57501
  init_inject_buffer();
56451
57502
  var MacData = class {
57503
+ mac = new DigestInfo();
57504
+ macSalt = new OctetString2();
57505
+ iterations = 1;
56452
57506
  constructor(params = {}) {
56453
- this.mac = new DigestInfo();
56454
- this.macSalt = new OctetString2();
56455
- this.iterations = 1;
56456
57507
  Object.assign(this, params);
56457
57508
  }
56458
57509
  };
@@ -56463,16 +57514,19 @@ __decorate([
56463
57514
  AsnProp({ type: OctetString2 })
56464
57515
  ], MacData.prototype, "macSalt", void 0);
56465
57516
  __decorate([
56466
- AsnProp({ type: AsnPropTypes.Integer, defaultValue: 1 })
57517
+ AsnProp({
57518
+ type: AsnPropTypes.Integer,
57519
+ defaultValue: 1
57520
+ })
56467
57521
  ], MacData.prototype, "iterations", void 0);
56468
57522
 
56469
57523
  // ../../node_modules/@peculiar/asn1-pfx/build/es2015/pfx.js
56470
57524
  init_inject_buffer();
56471
57525
  var PFX = class {
57526
+ version = 3;
57527
+ authSafe = new ContentInfo();
57528
+ macData = new MacData();
56472
57529
  constructor(params = {}) {
56473
- this.version = 3;
56474
- this.authSafe = new ContentInfo();
56475
- this.macData = new MacData();
56476
57530
  Object.assign(this, params);
56477
57531
  }
56478
57532
  };
@@ -56483,16 +57537,20 @@ __decorate([
56483
57537
  AsnProp({ type: ContentInfo })
56484
57538
  ], PFX.prototype, "authSafe", void 0);
56485
57539
  __decorate([
56486
- AsnProp({ type: MacData, optional: true })
57540
+ AsnProp({
57541
+ type: MacData,
57542
+ optional: true
57543
+ })
56487
57544
  ], PFX.prototype, "macData", void 0);
56488
57545
 
56489
57546
  // ../../node_modules/@peculiar/asn1-pfx/build/es2015/safe_bag.js
56490
57547
  init_inject_buffer();
56491
57548
  var SafeContents_1;
56492
57549
  var SafeBag = class {
57550
+ bagId = "";
57551
+ bagValue = new ArrayBuffer(0);
57552
+ bagAttributes;
56493
57553
  constructor(params = {}) {
56494
- this.bagId = "";
56495
- this.bagValue = new ArrayBuffer(0);
56496
57554
  Object.assign(this, params);
56497
57555
  }
56498
57556
  };
@@ -56500,10 +57558,17 @@ __decorate([
56500
57558
  AsnProp({ type: AsnPropTypes.ObjectIdentifier })
56501
57559
  ], SafeBag.prototype, "bagId", void 0);
56502
57560
  __decorate([
56503
- AsnProp({ type: AsnPropTypes.Any, context: 0 })
57561
+ AsnProp({
57562
+ type: AsnPropTypes.Any,
57563
+ context: 0
57564
+ })
56504
57565
  ], SafeBag.prototype, "bagValue", void 0);
56505
57566
  __decorate([
56506
- AsnProp({ type: PKCS12Attribute, repeated: "set", optional: true })
57567
+ AsnProp({
57568
+ type: PKCS12Attribute,
57569
+ repeated: "set",
57570
+ optional: true
57571
+ })
56507
57572
  ], SafeBag.prototype, "bagAttributes", void 0);
56508
57573
  var SafeContents = SafeContents_1 = class SafeContents2 extends AsnArray {
56509
57574
  constructor(items) {
@@ -56512,7 +57577,10 @@ var SafeContents = SafeContents_1 = class SafeContents2 extends AsnArray {
56512
57577
  }
56513
57578
  };
56514
57579
  SafeContents = SafeContents_1 = __decorate([
56515
- AsnType({ type: AsnTypeTypes.Sequence, itemType: SafeBag })
57580
+ AsnType({
57581
+ type: AsnTypeTypes.Sequence,
57582
+ itemType: SafeBag
57583
+ })
56516
57584
  ], SafeContents);
56517
57585
 
56518
57586
  // ../../node_modules/@peculiar/asn1-pkcs9/build/es2015/index.js
@@ -56546,7 +57614,7 @@ var id_pkcs9_at_encryptedPrivateKeyInfo = `${id_pkcs9_at}.2`;
56546
57614
  var id_pkcs9_at_randomNonce = `${id_pkcs9_at}.3`;
56547
57615
  var id_pkcs9_at_sequenceNumber = `${id_pkcs9_at}.4`;
56548
57616
  var id_pkcs9_at_pkcs7PDU = `${id_pkcs9_at}.5`;
56549
- var id_ietf_at = `1.3.6.1.5.5.7.9`;
57617
+ var id_ietf_at = "1.3.6.1.5.5.7.9";
56550
57618
  var id_pkcs9_at_dateOfBirth = `${id_ietf_at}.1`;
56551
57619
  var id_pkcs9_at_placeOfBirth = `${id_ietf_at}.2`;
56552
57620
  var id_pkcs9_at_gender = `${id_ietf_at}.3`;
@@ -56561,6 +57629,7 @@ var id_certTypes2 = `${id_pkcs9}.22`;
56561
57629
  var crlTypes = `${id_pkcs9}.23`;
56562
57630
  var id_at_pseudonym = `${id_at}.65`;
56563
57631
  var PKCS9String = class PKCS9String2 extends DirectoryString {
57632
+ ia5String;
56564
57633
  constructor(params = {}) {
56565
57634
  super(params);
56566
57635
  }
@@ -56592,6 +57661,7 @@ EncryptedPrivateKeyInfo2 = __decorate([
56592
57661
  AsnType({ type: AsnTypeTypes.Sequence })
56593
57662
  ], EncryptedPrivateKeyInfo2);
56594
57663
  var EmailAddress = class EmailAddress2 {
57664
+ value;
56595
57665
  constructor(value = "") {
56596
57666
  this.value = value;
56597
57667
  }
@@ -56616,6 +57686,7 @@ UnstructuredAddress = __decorate([
56616
57686
  AsnType({ type: AsnTypeTypes.Choice })
56617
57687
  ], UnstructuredAddress);
56618
57688
  var DateOfBirth = class DateOfBirth2 {
57689
+ value;
56619
57690
  constructor(value = /* @__PURE__ */ new Date()) {
56620
57691
  this.value = value;
56621
57692
  }
@@ -56632,6 +57703,7 @@ PlaceOfBirth = __decorate([
56632
57703
  AsnType({ type: AsnTypeTypes.Choice })
56633
57704
  ], PlaceOfBirth);
56634
57705
  var Gender = class Gender2 {
57706
+ value;
56635
57707
  constructor(value = "M") {
56636
57708
  this.value = value;
56637
57709
  }
@@ -56646,6 +57718,7 @@ Gender = __decorate([
56646
57718
  AsnType({ type: AsnTypeTypes.Choice })
56647
57719
  ], Gender);
56648
57720
  var CountryOfCitizenship = class CountryOfCitizenship2 {
57721
+ value;
56649
57722
  constructor(value = "") {
56650
57723
  this.value = value;
56651
57724
  }
@@ -56670,6 +57743,7 @@ Pseudonym = __decorate([
56670
57743
  AsnType({ type: AsnTypeTypes.Choice })
56671
57744
  ], Pseudonym);
56672
57745
  var ContentType = class ContentType2 {
57746
+ value;
56673
57747
  constructor(value = "") {
56674
57748
  this.value = value;
56675
57749
  }
@@ -56689,6 +57763,7 @@ SigningTime3 = __decorate([
56689
57763
  AsnType({ type: AsnTypeTypes.Choice })
56690
57764
  ], SigningTime3);
56691
57765
  var SequenceNumber = class SequenceNumber2 {
57766
+ value;
56692
57767
  constructor(value = 0) {
56693
57768
  this.value = value;
56694
57769
  }
@@ -56728,9 +57803,13 @@ var ExtendedCertificateAttributes = ExtendedCertificateAttributes_1 = class Exte
56728
57803
  }
56729
57804
  };
56730
57805
  ExtendedCertificateAttributes = ExtendedCertificateAttributes_1 = __decorate([
56731
- AsnType({ type: AsnTypeTypes.Set, itemType: Attribute2 })
57806
+ AsnType({
57807
+ type: AsnTypeTypes.Set,
57808
+ itemType: Attribute2
57809
+ })
56732
57810
  ], ExtendedCertificateAttributes);
56733
57811
  var FriendlyName = class FriendlyName2 {
57812
+ value;
56734
57813
  constructor(value = "") {
56735
57814
  this.value = value;
56736
57815
  }
@@ -56756,7 +57835,10 @@ var SMIMECapabilities = SMIMECapabilities_1 = class SMIMECapabilities2 extends A
56756
57835
  }
56757
57836
  };
56758
57837
  SMIMECapabilities = SMIMECapabilities_1 = __decorate([
56759
- AsnType({ type: AsnTypeTypes.Sequence, itemType: SMIMECapability })
57838
+ AsnType({
57839
+ type: AsnTypeTypes.Sequence,
57840
+ itemType: SMIMECapability
57841
+ })
56760
57842
  ], SMIMECapabilities);
56761
57843
 
56762
57844
  // ../../node_modules/@peculiar/asn1-csr/build/es2015/index.js
@@ -57212,7 +58294,7 @@ var TextConverter = class {
57212
58294
  } else if (value2 instanceof TextObject) {
57213
58295
  value2[TextObject.NAME] = key;
57214
58296
  res.push(...this.serializeObj(value2, deep));
57215
- } else if (import_pvtsutils3.BufferSourceConverter.isBufferSource(value2)) {
58297
+ } else if (import_pvtsutils.BufferSourceConverter.isBufferSource(value2)) {
57216
58298
  if (key) {
57217
58299
  res.push(`${pad}${keyValue}`);
57218
58300
  res.push(...this.serializeBufferSource(value2, deep + 1));
@@ -57231,7 +58313,7 @@ var TextConverter = class {
57231
58313
  }
57232
58314
  static serializeBufferSource(buffer, deep = 0) {
57233
58315
  const pad = this.pad(deep);
57234
- const view = import_pvtsutils3.BufferSourceConverter.toUint8Array(buffer);
58316
+ const view = import_pvtsutils.BufferSourceConverter.toUint8Array(buffer);
57235
58317
  const res = [];
57236
58318
  for (let i = 0; i < view.length; ) {
57237
58319
  const row = [];
@@ -57239,8 +58321,8 @@ var TextConverter = class {
57239
58321
  if (j === 8) {
57240
58322
  row.push("");
57241
58323
  }
57242
- const hex = view[i++].toString(16).padStart(2, "0");
57243
- row.push(hex);
58324
+ const hex2 = view[i++].toString(16).padStart(2, "0");
58325
+ row.push(hex2);
57244
58326
  }
57245
58327
  res.push(`${pad}${row.join(" ")}`);
57246
58328
  }
@@ -57262,9 +58344,9 @@ var AsnData = class _AsnData {
57262
58344
  }
57263
58345
  constructor(...args) {
57264
58346
  _AsnData_rawData.set(this, void 0);
57265
- if (import_pvtsutils3.BufferSourceConverter.isBufferSource(args[0])) {
58347
+ if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
57266
58348
  this.asn = AsnConvert.parse(args[0], args[1]);
57267
- __classPrivateFieldSet(this, _AsnData_rawData, import_pvtsutils3.BufferSourceConverter.toArrayBuffer(args[0]), "f");
58349
+ __classPrivateFieldSet(this, _AsnData_rawData, import_pvtsutils.BufferSourceConverter.toArrayBuffer(args[0]), "f");
57268
58350
  this.onInit(this.asn);
57269
58351
  } else {
57270
58352
  this.asn = args[0];
@@ -57273,22 +58355,22 @@ var AsnData = class _AsnData {
57273
58355
  }
57274
58356
  equal(data) {
57275
58357
  if (data instanceof _AsnData) {
57276
- return (0, import_pvtsutils3.isEqual)(data.rawData, this.rawData);
58358
+ return (0, import_pvtsutils.isEqual)(data.rawData, this.rawData);
57277
58359
  }
57278
58360
  return false;
57279
58361
  }
57280
- toString(format = "text") {
57281
- switch (format) {
58362
+ toString(format2 = "text") {
58363
+ switch (format2) {
57282
58364
  case "asn":
57283
58365
  return AsnConvert.toString(this.rawData);
57284
58366
  case "text":
57285
58367
  return TextConverter.serialize(this.toTextObject());
57286
58368
  case "hex":
57287
- return import_pvtsutils3.Convert.ToHex(this.rawData);
58369
+ return import_pvtsutils.Convert.ToHex(this.rawData);
57288
58370
  case "base64":
57289
- return import_pvtsutils3.Convert.ToBase64(this.rawData);
58371
+ return import_pvtsutils.Convert.ToBase64(this.rawData);
57290
58372
  case "base64url":
57291
- return import_pvtsutils3.Convert.ToBase64Url(this.rawData);
58373
+ return import_pvtsutils.Convert.ToBase64Url(this.rawData);
57292
58374
  default:
57293
58375
  throw TypeError("Argument 'format' is unsupported value");
57294
58376
  }
@@ -57311,13 +58393,13 @@ AsnData.NAME = "ASN";
57311
58393
  var Extension2 = class _Extension extends AsnData {
57312
58394
  constructor(...args) {
57313
58395
  let raw;
57314
- if (import_pvtsutils3.BufferSourceConverter.isBufferSource(args[0])) {
57315
- raw = import_pvtsutils3.BufferSourceConverter.toArrayBuffer(args[0]);
58396
+ if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
58397
+ raw = import_pvtsutils.BufferSourceConverter.toArrayBuffer(args[0]);
57316
58398
  } else {
57317
58399
  raw = AsnConvert.serialize(new Extension({
57318
58400
  extnID: args[0],
57319
58401
  critical: args[1],
57320
- extnValue: new OctetString2(import_pvtsutils3.BufferSourceConverter.toArrayBuffer(args[2]))
58402
+ extnValue: new OctetString2(import_pvtsutils.BufferSourceConverter.toArrayBuffer(args[2]))
57321
58403
  }));
57322
58404
  }
57323
58405
  super(raw, Extension);
@@ -57445,7 +58527,7 @@ names.register("I", "2.5.4.43");
57445
58527
  names.register("SN", "2.5.4.4");
57446
58528
  names.register("T", "2.5.4.12");
57447
58529
  function replaceUnknownCharacter(text, char) {
57448
- return `\\${import_pvtsutils3.Convert.ToHex(import_pvtsutils3.Convert.FromUtf8String(char)).toUpperCase()}`;
58530
+ return `\\${import_pvtsutils.Convert.ToHex(import_pvtsutils.Convert.FromUtf8String(char)).toUpperCase()}`;
57449
58531
  }
57450
58532
  function escape2(data) {
57451
58533
  return data.replace(/([,+"\\<>;])/g, "\\$1").replace(/^([ #])/, "\\$1").replace(/([ ]$)/, "\\$1").replace(/([\r\n\t])/, replaceUnknownCharacter);
@@ -57476,7 +58558,7 @@ var Name3 = class _Name {
57476
58558
  this.asn = this.fromString(data);
57477
58559
  } else if (data instanceof Name) {
57478
58560
  this.asn = data;
57479
- } else if (import_pvtsutils3.BufferSourceConverter.isBufferSource(data)) {
58561
+ } else if (import_pvtsutils.BufferSourceConverter.isBufferSource(data)) {
57480
58562
  this.asn = AsnConvert.parse(data, Name);
57481
58563
  } else {
57482
58564
  this.asn = this.fromJSON(data);
@@ -57500,7 +58582,7 @@ var Name3 = class _Name {
57500
58582
  toString() {
57501
58583
  return this.asn.map((rdn) => rdn.map((o) => {
57502
58584
  const type = this.getName(o.type) || o.type;
57503
- const value = o.value.anyValue ? `#${import_pvtsutils3.Convert.ToHex(o.value.anyValue)}` : escape2(o.value.toString());
58585
+ const value = o.value.anyValue ? `#${import_pvtsutils.Convert.ToHex(o.value.anyValue)}` : escape2(o.value.toString());
57504
58586
  return `${type}=${value}`;
57505
58587
  }).join("+")).join(", ");
57506
58588
  }
@@ -57512,7 +58594,7 @@ var Name3 = class _Name {
57512
58594
  for (const attr of rdn) {
57513
58595
  const type = this.getName(attr.type) || attr.type;
57514
58596
  (_a3 = jsonItem[type]) !== null && _a3 !== void 0 ? _a3 : jsonItem[type] = [];
57515
- jsonItem[type].push(attr.value.anyValue ? `#${import_pvtsutils3.Convert.ToHex(attr.value.anyValue)}` : attr.value.toString());
58597
+ jsonItem[type].push(attr.value.anyValue ? `#${import_pvtsutils.Convert.ToHex(attr.value.anyValue)}` : attr.value.toString());
57516
58598
  }
57517
58599
  json.push(jsonItem);
57518
58600
  }
@@ -57590,7 +58672,7 @@ var Name3 = class _Name {
57590
58672
  }
57591
58673
  }
57592
58674
  } else if (value[0] === "#") {
57593
- attr.value.anyValue = import_pvtsutils3.Convert.FromHex(value.slice(1));
58675
+ attr.value.anyValue = import_pvtsutils.Convert.FromHex(value.slice(1));
57594
58676
  } else {
57595
58677
  const processedValue = this.processStringValue(value);
57596
58678
  if (type === this.getName("E") || type === this.getName("DC")) {
@@ -57666,16 +58748,16 @@ var GeneralName3 = class extends AsnData {
57666
58748
  if (!matches) {
57667
58749
  throw new Error("Cannot parse GUID value. Value doesn't match to regular expression");
57668
58750
  }
57669
- const hex = matches.slice(1).map((o, i) => {
58751
+ const hex2 = matches.slice(1).map((o, i) => {
57670
58752
  if (i < 3) {
57671
- return import_pvtsutils3.Convert.ToHex(new Uint8Array(import_pvtsutils3.Convert.FromHex(o)).reverse());
58753
+ return import_pvtsutils.Convert.ToHex(new Uint8Array(import_pvtsutils.Convert.FromHex(o)).reverse());
57672
58754
  }
57673
58755
  return o;
57674
58756
  }).join("");
57675
58757
  name = new GeneralName({
57676
58758
  otherName: new OtherName({
57677
58759
  typeId: id_GUID,
57678
- value: AsnConvert.serialize(new OctetString2(import_pvtsutils3.Convert.FromHex(hex)))
58760
+ value: AsnConvert.serialize(new OctetString2(import_pvtsutils.Convert.FromHex(hex2)))
57679
58761
  })
57680
58762
  });
57681
58763
  break;
@@ -57701,7 +58783,7 @@ var GeneralName3 = class extends AsnData {
57701
58783
  default:
57702
58784
  throw new Error("Cannot create GeneralName. Unsupported type of the name");
57703
58785
  }
57704
- } else if (import_pvtsutils3.BufferSourceConverter.isBufferSource(args[0])) {
58786
+ } else if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
57705
58787
  name = AsnConvert.parse(args[0], GeneralName);
57706
58788
  } else {
57707
58789
  name = args[0];
@@ -57731,13 +58813,13 @@ var GeneralName3 = class extends AsnData {
57731
58813
  if (asn.otherName.typeId === id_GUID) {
57732
58814
  this.type = GUID;
57733
58815
  const guid = AsnConvert.parse(asn.otherName.value, OctetString2);
57734
- const matches = new RegExp(GUID_REGEX, "i").exec(import_pvtsutils3.Convert.ToHex(guid));
58816
+ const matches = new RegExp(GUID_REGEX, "i").exec(import_pvtsutils.Convert.ToHex(guid));
57735
58817
  if (!matches) {
57736
58818
  throw new Error(ERR_GUID);
57737
58819
  }
57738
58820
  this.value = matches.slice(1).map((o, i) => {
57739
58821
  if (i < 3) {
57740
- return import_pvtsutils3.Convert.ToHex(new Uint8Array(import_pvtsutils3.Convert.FromHex(o)).reverse());
58822
+ return import_pvtsutils.Convert.ToHex(new Uint8Array(import_pvtsutils.Convert.FromHex(o)).reverse());
57741
58823
  }
57742
58824
  return o;
57743
58825
  }).join("-");
@@ -57798,7 +58880,7 @@ var GeneralNames3 = class extends AsnData {
57798
58880
  }
57799
58881
  }
57800
58882
  names2 = new GeneralNames(items);
57801
- } else if (import_pvtsutils3.BufferSourceConverter.isBufferSource(params)) {
58883
+ } else if (import_pvtsutils.BufferSourceConverter.isBufferSource(params)) {
57802
58884
  names2 = AsnConvert.parse(params, GeneralNames);
57803
58885
  } else {
57804
58886
  throw new Error("Cannot initialize GeneralNames. Incorrect incoming arguments");
@@ -57858,11 +58940,11 @@ var PemConverter = class {
57858
58940
  const res = [];
57859
58941
  let matches = null;
57860
58942
  while (matches = pattern.exec(pem)) {
57861
- const base64 = matches[3].replace(rEolPattern, "");
58943
+ const base642 = matches[3].replace(rEolPattern, "");
57862
58944
  const pemStruct = {
57863
58945
  type: matches[1],
57864
58946
  headers: [],
57865
- rawData: import_pvtsutils3.Convert.FromBase64(base64)
58947
+ rawData: import_pvtsutils.Convert.FromBase64(base642)
57866
58948
  };
57867
58949
  const headersString = matches[2];
57868
58950
  if (headersString) {
@@ -57909,12 +58991,12 @@ var PemConverter = class {
57909
58991
  const raws = new Array();
57910
58992
  if (tag) {
57911
58993
  rawData.forEach((element) => {
57912
- if (!import_pvtsutils3.BufferSourceConverter.isBufferSource(element)) {
58994
+ if (!import_pvtsutils.BufferSourceConverter.isBufferSource(element)) {
57913
58995
  throw new TypeError("Cannot encode array of BufferSource in PEM format. Not all items of the array are BufferSource");
57914
58996
  }
57915
58997
  raws.push(this.encodeStruct({
57916
58998
  type: tag,
57917
- rawData: import_pvtsutils3.BufferSourceConverter.toArrayBuffer(element)
58999
+ rawData: import_pvtsutils.BufferSourceConverter.toArrayBuffer(element)
57918
59000
  }));
57919
59001
  });
57920
59002
  } else {
@@ -57932,7 +59014,7 @@ var PemConverter = class {
57932
59014
  }
57933
59015
  return this.encodeStruct({
57934
59016
  type: tag,
57935
- rawData: import_pvtsutils3.BufferSourceConverter.toArrayBuffer(rawData)
59017
+ rawData: import_pvtsutils.BufferSourceConverter.toArrayBuffer(rawData)
57936
59018
  });
57937
59019
  }
57938
59020
  }
@@ -57947,9 +59029,9 @@ var PemConverter = class {
57947
59029
  }
57948
59030
  res.push("");
57949
59031
  }
57950
- const base64 = import_pvtsutils3.Convert.ToBase64(pem.rawData);
57951
- for (let i = 0; i < base64.length; i += 64) {
57952
- res.push(base64.substring(i, i + 64));
59032
+ const base642 = import_pvtsutils.Convert.ToBase64(pem.rawData);
59033
+ for (let i = 0; i < base642.length; i += 64) {
59034
+ res.push(base642.substring(i, i + 64));
57953
59035
  }
57954
59036
  res.push(`-----END ${upperCaseType}-----`);
57955
59037
  return res.join("\n");
@@ -57962,35 +59044,35 @@ PemConverter.PublicKeyTag = "PUBLIC KEY";
57962
59044
  PemConverter.PrivateKeyTag = "PRIVATE KEY";
57963
59045
  var PemData = class _PemData extends AsnData {
57964
59046
  static isAsnEncoded(data) {
57965
- return import_pvtsutils3.BufferSourceConverter.isBufferSource(data) || typeof data === "string";
59047
+ return import_pvtsutils.BufferSourceConverter.isBufferSource(data) || typeof data === "string";
57966
59048
  }
57967
59049
  static toArrayBuffer(raw) {
57968
59050
  if (typeof raw === "string") {
57969
59051
  if (PemConverter.isPem(raw)) {
57970
59052
  return PemConverter.decode(raw)[0];
57971
- } else if (import_pvtsutils3.Convert.isHex(raw)) {
57972
- return import_pvtsutils3.Convert.FromHex(raw);
57973
- } else if (import_pvtsutils3.Convert.isBase64(raw)) {
57974
- return import_pvtsutils3.Convert.FromBase64(raw);
57975
- } else if (import_pvtsutils3.Convert.isBase64Url(raw)) {
57976
- return import_pvtsutils3.Convert.FromBase64Url(raw);
59053
+ } else if (import_pvtsutils.Convert.isHex(raw)) {
59054
+ return import_pvtsutils.Convert.FromHex(raw);
59055
+ } else if (import_pvtsutils.Convert.isBase64(raw)) {
59056
+ return import_pvtsutils.Convert.FromBase64(raw);
59057
+ } else if (import_pvtsutils.Convert.isBase64Url(raw)) {
59058
+ return import_pvtsutils.Convert.FromBase64Url(raw);
57977
59059
  } else {
57978
59060
  throw new TypeError("Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url");
57979
59061
  }
57980
59062
  } else {
57981
- const buffer = import_pvtsutils3.BufferSourceConverter.toUint8Array(raw);
59063
+ const buffer = import_pvtsutils.BufferSourceConverter.toUint8Array(raw);
57982
59064
  if (buffer.length > 0 && buffer[0] === 48) {
57983
- return import_pvtsutils3.BufferSourceConverter.toArrayBuffer(raw);
59065
+ return import_pvtsutils.BufferSourceConverter.toArrayBuffer(raw);
57984
59066
  }
57985
- const stringRaw = import_pvtsutils3.Convert.ToBinary(raw);
59067
+ const stringRaw = import_pvtsutils.Convert.ToBinary(raw);
57986
59068
  if (PemConverter.isPem(stringRaw)) {
57987
59069
  return PemConverter.decode(stringRaw)[0];
57988
- } else if (import_pvtsutils3.Convert.isHex(stringRaw)) {
57989
- return import_pvtsutils3.Convert.FromHex(stringRaw);
57990
- } else if (import_pvtsutils3.Convert.isBase64(stringRaw)) {
57991
- return import_pvtsutils3.Convert.FromBase64(stringRaw);
57992
- } else if (import_pvtsutils3.Convert.isBase64Url(stringRaw)) {
57993
- return import_pvtsutils3.Convert.FromBase64Url(stringRaw);
59070
+ } else if (import_pvtsutils.Convert.isHex(stringRaw)) {
59071
+ return import_pvtsutils.Convert.FromHex(stringRaw);
59072
+ } else if (import_pvtsutils.Convert.isBase64(stringRaw)) {
59073
+ return import_pvtsutils.Convert.FromBase64(stringRaw);
59074
+ } else if (import_pvtsutils.Convert.isBase64Url(stringRaw)) {
59075
+ return import_pvtsutils.Convert.FromBase64Url(stringRaw);
57994
59076
  }
57995
59077
  throw new TypeError("Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url");
57996
59078
  }
@@ -58002,12 +59084,12 @@ var PemData = class _PemData extends AsnData {
58002
59084
  super(args[0]);
58003
59085
  }
58004
59086
  }
58005
- toString(format = "pem") {
58006
- switch (format) {
59087
+ toString(format2 = "pem") {
59088
+ switch (format2) {
58007
59089
  case "pem":
58008
59090
  return PemConverter.encode(this.rawData, this.tag);
58009
59091
  default:
58010
- return super.toString(format);
59092
+ return super.toString(format2);
58011
59093
  }
58012
59094
  }
58013
59095
  };
@@ -58023,7 +59105,7 @@ var PublicKey = class _PublicKey extends PemData {
58023
59105
  return new _PublicKey(spki);
58024
59106
  } else if (data.publicKey) {
58025
59107
  return data.publicKey;
58026
- } else if (import_pvtsutils3.BufferSourceConverter.isBufferSource(data)) {
59108
+ } else if (import_pvtsutils.BufferSourceConverter.isBufferSource(data)) {
58027
59109
  return new _PublicKey(data);
58028
59110
  } else {
58029
59111
  throw new TypeError("Unsupported PublicKeyType");
@@ -58065,8 +59147,8 @@ var PublicKey = class _PublicKey extends PemData {
58065
59147
  switch (asn.algorithm.algorithm) {
58066
59148
  case id_rsaEncryption: {
58067
59149
  const rsaPublicKey = AsnConvert.parse(asn.subjectPublicKey, RSAPublicKey);
58068
- const modulus = import_pvtsutils3.BufferSourceConverter.toUint8Array(rsaPublicKey.modulus);
58069
- algorithm.publicExponent = import_pvtsutils3.BufferSourceConverter.toUint8Array(rsaPublicKey.publicExponent);
59150
+ const modulus = import_pvtsutils.BufferSourceConverter.toUint8Array(rsaPublicKey.modulus);
59151
+ algorithm.publicExponent = import_pvtsutils.BufferSourceConverter.toUint8Array(rsaPublicKey.publicExponent);
58070
59152
  algorithm.modulusLength = (!modulus[0] ? modulus.slice(1) : modulus).byteLength << 3;
58071
59153
  break;
58072
59154
  }
@@ -58131,20 +59213,20 @@ var AuthorityKeyIdentifierExtension = class _AuthorityKeyIdentifierExtension ext
58131
59213
  }
58132
59214
  const key = await PublicKey.create(param, crypto4);
58133
59215
  const id = await key.getKeyIdentifier(crypto4);
58134
- return new _AuthorityKeyIdentifierExtension(import_pvtsutils3.Convert.ToHex(id), critical);
59216
+ return new _AuthorityKeyIdentifierExtension(import_pvtsutils.Convert.ToHex(id), critical);
58135
59217
  }
58136
59218
  constructor(...args) {
58137
- if (import_pvtsutils3.BufferSourceConverter.isBufferSource(args[0])) {
59219
+ if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
58138
59220
  super(args[0]);
58139
59221
  } else if (typeof args[0] === "string") {
58140
- const value = new AuthorityKeyIdentifier({ keyIdentifier: new KeyIdentifier(import_pvtsutils3.Convert.FromHex(args[0])) });
59222
+ const value = new AuthorityKeyIdentifier({ keyIdentifier: new KeyIdentifier(import_pvtsutils.Convert.FromHex(args[0])) });
58141
59223
  super(id_ce_authorityKeyIdentifier, args[1], AsnConvert.serialize(value));
58142
59224
  } else {
58143
59225
  const certId = args[0];
58144
59226
  const certIdName = certId.name instanceof GeneralNames3 ? AsnConvert.parse(certId.name.rawData, GeneralNames) : certId.name;
58145
59227
  const value = new AuthorityKeyIdentifier({
58146
59228
  authorityCertIssuer: certIdName,
58147
- authorityCertSerialNumber: import_pvtsutils3.Convert.FromHex(certId.serialNumber)
59229
+ authorityCertSerialNumber: import_pvtsutils.Convert.FromHex(certId.serialNumber)
58148
59230
  });
58149
59231
  super(id_ce_authorityKeyIdentifier, args[1], AsnConvert.serialize(value));
58150
59232
  }
@@ -58153,12 +59235,12 @@ var AuthorityKeyIdentifierExtension = class _AuthorityKeyIdentifierExtension ext
58153
59235
  super.onInit(asn);
58154
59236
  const aki = AsnConvert.parse(asn.extnValue, AuthorityKeyIdentifier);
58155
59237
  if (aki.keyIdentifier) {
58156
- this.keyId = import_pvtsutils3.Convert.ToHex(aki.keyIdentifier);
59238
+ this.keyId = import_pvtsutils.Convert.ToHex(aki.keyIdentifier);
58157
59239
  }
58158
59240
  if (aki.authorityCertIssuer || aki.authorityCertSerialNumber) {
58159
59241
  this.certId = {
58160
59242
  name: aki.authorityCertIssuer || [],
58161
- serialNumber: aki.authorityCertSerialNumber ? import_pvtsutils3.Convert.ToHex(aki.authorityCertSerialNumber) : ""
59243
+ serialNumber: aki.authorityCertSerialNumber ? import_pvtsutils.Convert.ToHex(aki.authorityCertSerialNumber) : ""
58162
59244
  };
58163
59245
  }
58164
59246
  }
@@ -58180,7 +59262,7 @@ var AuthorityKeyIdentifierExtension = class _AuthorityKeyIdentifierExtension ext
58180
59262
  AuthorityKeyIdentifierExtension.NAME = "Authority Key Identifier";
58181
59263
  var BasicConstraintsExtension = class extends Extension2 {
58182
59264
  constructor(...args) {
58183
- if (import_pvtsutils3.BufferSourceConverter.isBufferSource(args[0])) {
59265
+ if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
58184
59266
  super(args[0]);
58185
59267
  const value = AsnConvert.parse(this.value, BasicConstraints);
58186
59268
  this.ca = value.cA;
@@ -58218,7 +59300,7 @@ var ExtendedKeyUsage3;
58218
59300
  })(ExtendedKeyUsage3 || (ExtendedKeyUsage3 = {}));
58219
59301
  var ExtendedKeyUsageExtension = class extends Extension2 {
58220
59302
  constructor(...args) {
58221
- if (import_pvtsutils3.BufferSourceConverter.isBufferSource(args[0])) {
59303
+ if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
58222
59304
  super(args[0]);
58223
59305
  const value = AsnConvert.parse(this.value, ExtendedKeyUsage);
58224
59306
  this.usages = value.map((o) => o);
@@ -58249,7 +59331,7 @@ var KeyUsageFlags2;
58249
59331
  })(KeyUsageFlags2 || (KeyUsageFlags2 = {}));
58250
59332
  var KeyUsagesExtension = class extends Extension2 {
58251
59333
  constructor(...args) {
58252
- if (import_pvtsutils3.BufferSourceConverter.isBufferSource(args[0])) {
59334
+ if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
58253
59335
  super(args[0]);
58254
59336
  const value = AsnConvert.parse(this.value, KeyUsage);
58255
59337
  this.usages = value.toNumber();
@@ -58271,18 +59353,18 @@ var SubjectKeyIdentifierExtension = class _SubjectKeyIdentifierExtension extends
58271
59353
  static async create(publicKey, critical = false, crypto4 = cryptoProvider.get()) {
58272
59354
  const key = await PublicKey.create(publicKey, crypto4);
58273
59355
  const id = await key.getKeyIdentifier(crypto4);
58274
- return new _SubjectKeyIdentifierExtension(import_pvtsutils3.Convert.ToHex(id), critical);
59356
+ return new _SubjectKeyIdentifierExtension(import_pvtsutils.Convert.ToHex(id), critical);
58275
59357
  }
58276
59358
  constructor(...args) {
58277
- if (import_pvtsutils3.BufferSourceConverter.isBufferSource(args[0])) {
59359
+ if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
58278
59360
  super(args[0]);
58279
59361
  const value = AsnConvert.parse(this.value, SubjectKeyIdentifier);
58280
- this.keyId = import_pvtsutils3.Convert.ToHex(value);
59362
+ this.keyId = import_pvtsutils.Convert.ToHex(value);
58281
59363
  } else {
58282
- const identifier = typeof args[0] === "string" ? import_pvtsutils3.Convert.FromHex(args[0]) : args[0];
59364
+ const identifier = typeof args[0] === "string" ? import_pvtsutils.Convert.FromHex(args[0]) : args[0];
58283
59365
  const value = new SubjectKeyIdentifier(identifier);
58284
59366
  super(id_ce_subjectKeyIdentifier, args[1], AsnConvert.serialize(value));
58285
- this.keyId = import_pvtsutils3.Convert.ToHex(identifier);
59367
+ this.keyId = import_pvtsutils.Convert.ToHex(identifier);
58286
59368
  }
58287
59369
  }
58288
59370
  toTextObject() {
@@ -58295,7 +59377,7 @@ var SubjectKeyIdentifierExtension = class _SubjectKeyIdentifierExtension extends
58295
59377
  SubjectKeyIdentifierExtension.NAME = "Subject Key Identifier";
58296
59378
  var SubjectAlternativeNameExtension = class extends Extension2 {
58297
59379
  constructor(...args) {
58298
- if (import_pvtsutils3.BufferSourceConverter.isBufferSource(args[0])) {
59380
+ if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
58299
59381
  super(args[0]);
58300
59382
  } else {
58301
59383
  super(id_ce_subjectAltName, args[1], new GeneralNames3(args[0] || []).rawData);
@@ -58333,7 +59415,7 @@ ExtensionFactory.items = /* @__PURE__ */ new Map();
58333
59415
  var CertificatePolicyExtension = class extends Extension2 {
58334
59416
  constructor(...args) {
58335
59417
  var _a3;
58336
- if (import_pvtsutils3.BufferSourceConverter.isBufferSource(args[0])) {
59418
+ if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
58337
59419
  super(args[0]);
58338
59420
  const asnPolicies = AsnConvert.parse(this.value, CertificatePolicies);
58339
59421
  this.policies = asnPolicies.map((o) => o.policyIdentifier);
@@ -58356,7 +59438,7 @@ ExtensionFactory.register(id_ce_certificatePolicies, CertificatePolicyExtension)
58356
59438
  var CRLDistributionPointsExtension = class extends Extension2 {
58357
59439
  constructor(...args) {
58358
59440
  var _a3;
58359
- if (import_pvtsutils3.BufferSourceConverter.isBufferSource(args[0])) {
59441
+ if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
58360
59442
  super(args[0]);
58361
59443
  } else if (Array.isArray(args[0]) && typeof args[0][0] === "string") {
58362
59444
  const urls = args[0];
@@ -58401,7 +59483,7 @@ CRLDistributionPointsExtension.NAME = "CRL Distribution Points";
58401
59483
  var AuthorityInfoAccessExtension = class extends Extension2 {
58402
59484
  constructor(...args) {
58403
59485
  var _a3, _b, _c, _d;
58404
- if (import_pvtsutils3.BufferSourceConverter.isBufferSource(args[0])) {
59486
+ if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
58405
59487
  super(args[0]);
58406
59488
  } else if (args[0] instanceof AuthorityInfoAccessSyntax) {
58407
59489
  const value = new AuthorityInfoAccessSyntax(args[0]);
@@ -58497,7 +59579,7 @@ function addAccessDescriptions(value, params, method, key) {
58497
59579
  }
58498
59580
  var IssuerAlternativeNameExtension = class extends Extension2 {
58499
59581
  constructor(...args) {
58500
- if (import_pvtsutils3.BufferSourceConverter.isBufferSource(args[0])) {
59582
+ if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
58501
59583
  super(args[0]);
58502
59584
  } else {
58503
59585
  super(id_ce_issuerAltName, args[1], new GeneralNames3(args[0] || []).rawData);
@@ -58521,11 +59603,11 @@ IssuerAlternativeNameExtension.NAME = "Issuer Alternative Name";
58521
59603
  var Attribute3 = class _Attribute extends AsnData {
58522
59604
  constructor(...args) {
58523
59605
  let raw;
58524
- if (import_pvtsutils3.BufferSourceConverter.isBufferSource(args[0])) {
58525
- raw = import_pvtsutils3.BufferSourceConverter.toArrayBuffer(args[0]);
59606
+ if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
59607
+ raw = import_pvtsutils.BufferSourceConverter.toArrayBuffer(args[0]);
58526
59608
  } else {
58527
59609
  const type = args[0];
58528
- const values = Array.isArray(args[1]) ? args[1].map((o) => import_pvtsutils3.BufferSourceConverter.toArrayBuffer(o)) : [];
59610
+ const values = Array.isArray(args[1]) ? args[1].map((o) => import_pvtsutils.BufferSourceConverter.toArrayBuffer(o)) : [];
58529
59611
  raw = AsnConvert.serialize(new Attribute({
58530
59612
  type,
58531
59613
  values
@@ -58554,7 +59636,7 @@ Attribute3.NAME = "Attribute";
58554
59636
  var ChallengePasswordAttribute = class extends Attribute3 {
58555
59637
  constructor(...args) {
58556
59638
  var _a3;
58557
- if (import_pvtsutils3.BufferSourceConverter.isBufferSource(args[0])) {
59639
+ if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
58558
59640
  super(args[0]);
58559
59641
  } else {
58560
59642
  const value = new ChallengePassword({ printableString: args[0] });
@@ -58579,7 +59661,7 @@ ChallengePasswordAttribute.NAME = "Challenge Password";
58579
59661
  var ExtensionsAttribute = class extends Attribute3 {
58580
59662
  constructor(...args) {
58581
59663
  var _a3;
58582
- if (import_pvtsutils3.BufferSourceConverter.isBufferSource(args[0])) {
59664
+ if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
58583
59665
  super(args[0]);
58584
59666
  } else {
58585
59667
  const extensions = args[0];
@@ -58625,10 +59707,10 @@ AttributeFactory.items = /* @__PURE__ */ new Map();
58625
59707
  var diAsnSignatureFormatter = "crypto.signatureFormatter";
58626
59708
  var AsnDefaultSignatureFormatter = class {
58627
59709
  toAsnSignature(algorithm, signature) {
58628
- return import_pvtsutils3.BufferSourceConverter.toArrayBuffer(signature);
59710
+ return import_pvtsutils.BufferSourceConverter.toArrayBuffer(signature);
58629
59711
  }
58630
59712
  toWebSignature(algorithm, signature) {
58631
- return import_pvtsutils3.BufferSourceConverter.toArrayBuffer(signature);
59713
+ return import_pvtsutils.BufferSourceConverter.toArrayBuffer(signature);
58632
59714
  }
58633
59715
  };
58634
59716
  var RsaAlgorithm_1;
@@ -58799,13 +59881,13 @@ ShaAlgorithm = __decorate([
58799
59881
  instance.registerSingleton(diAlgorithm, ShaAlgorithm);
58800
59882
  var AsnEcSignatureFormatter = class _AsnEcSignatureFormatter {
58801
59883
  addPadding(pointSize, data) {
58802
- const bytes = import_pvtsutils3.BufferSourceConverter.toUint8Array(data);
59884
+ const bytes = import_pvtsutils.BufferSourceConverter.toUint8Array(data);
58803
59885
  const res = new Uint8Array(pointSize);
58804
59886
  res.set(bytes, pointSize - bytes.length);
58805
59887
  return res.buffer;
58806
59888
  }
58807
59889
  removePadding(data, positive = false) {
58808
- let bytes = import_pvtsutils3.BufferSourceConverter.toUint8Array(data);
59890
+ let bytes = import_pvtsutils.BufferSourceConverter.toUint8Array(data);
58809
59891
  for (let i = 0; i < bytes.length; i++) {
58810
59892
  if (!bytes[i]) {
58811
59893
  continue;
@@ -58825,7 +59907,7 @@ var AsnEcSignatureFormatter = class _AsnEcSignatureFormatter {
58825
59907
  const namedCurve = algorithm.namedCurve;
58826
59908
  const pointSize = _AsnEcSignatureFormatter.namedCurveSize.get(namedCurve) || _AsnEcSignatureFormatter.defaultNamedCurveSize;
58827
59909
  const ecSignature = new ECDSASigValue();
58828
- const uint8Signature = import_pvtsutils3.BufferSourceConverter.toUint8Array(signature);
59910
+ const uint8Signature = import_pvtsutils.BufferSourceConverter.toUint8Array(signature);
58829
59911
  ecSignature.r = this.removePadding(uint8Signature.slice(0, pointSize), true);
58830
59912
  ecSignature.s = this.removePadding(uint8Signature.slice(pointSize, pointSize + pointSize), true);
58831
59913
  return AsnConvert.serialize(ecSignature);
@@ -58839,7 +59921,7 @@ var AsnEcSignatureFormatter = class _AsnEcSignatureFormatter {
58839
59921
  const pointSize = _AsnEcSignatureFormatter.namedCurveSize.get(namedCurve) || _AsnEcSignatureFormatter.defaultNamedCurveSize;
58840
59922
  const r = this.addPadding(pointSize, this.removePadding(ecSigValue.r));
58841
59923
  const s = this.addPadding(pointSize, this.removePadding(ecSigValue.s));
58842
- return (0, import_pvtsutils3.combine)(r, s);
59924
+ return (0, import_pvtsutils.combine)(r, s);
58843
59925
  }
58844
59926
  return null;
58845
59927
  }
@@ -59134,7 +60216,7 @@ var X509Certificate = class extends PemData {
59134
60216
  if (serialNumberBytes.length > 1 && serialNumberBytes[0] === 0 && serialNumberBytes[1] > 127) {
59135
60217
  serialNumberBytes = serialNumberBytes.slice(1);
59136
60218
  }
59137
- __classPrivateFieldSet(this, _X509Certificate_serialNumber, import_pvtsutils3.Convert.ToHex(serialNumberBytes), "f");
60219
+ __classPrivateFieldSet(this, _X509Certificate_serialNumber, import_pvtsutils.Convert.ToHex(serialNumberBytes), "f");
59138
60220
  }
59139
60221
  return __classPrivateFieldGet(this, _X509Certificate_serialNumber, "f");
59140
60222
  }
@@ -59275,7 +60357,7 @@ var X509Certificate = class extends PemData {
59275
60357
  ...this.signatureAlgorithm
59276
60358
  };
59277
60359
  publicKey = await paramsKey.export(keyAlgorithm, ["verify"], crypto4);
59278
- } else if (import_pvtsutils3.BufferSourceConverter.isBufferSource(paramsKey)) {
60360
+ } else if (import_pvtsutils.BufferSourceConverter.isBufferSource(paramsKey)) {
59279
60361
  const key = new PublicKey(paramsKey);
59280
60362
  keyAlgorithm = {
59281
60363
  ...key.algorithm,
@@ -59382,7 +60464,7 @@ var X509Certificates = class extends Array {
59382
60464
  }
59383
60465
  }
59384
60466
  }
59385
- export(format) {
60467
+ export(format2) {
59386
60468
  const signedData = new SignedData();
59387
60469
  signedData.version = 1;
59388
60470
  signedData.encapContentInfo.eContentType = id_data;
@@ -59393,10 +60475,10 @@ var X509Certificates = class extends Array {
59393
60475
  content: AsnConvert.serialize(signedData)
59394
60476
  });
59395
60477
  const raw = AsnConvert.serialize(cms);
59396
- if (format === "raw") {
60478
+ if (format2 === "raw") {
59397
60479
  return raw;
59398
60480
  }
59399
- return this.toString(format);
60481
+ return this.toString(format2);
59400
60482
  }
59401
60483
  import(data) {
59402
60484
  const raw = PemData.toArrayBuffer(data);
@@ -59416,9 +60498,9 @@ var X509Certificates = class extends Array {
59416
60498
  while (this.pop()) {
59417
60499
  }
59418
60500
  }
59419
- toString(format = "pem") {
60501
+ toString(format2 = "pem") {
59420
60502
  const raw = this.export("raw");
59421
- switch (format) {
60503
+ switch (format2) {
59422
60504
  case "pem":
59423
60505
  return PemConverter.encode(raw, "CMS");
59424
60506
  case "pem-chain":
@@ -59426,11 +60508,11 @@ var X509Certificates = class extends Array {
59426
60508
  case "asn":
59427
60509
  return AsnConvert.toString(raw);
59428
60510
  case "hex":
59429
- return import_pvtsutils3.Convert.ToHex(raw);
60511
+ return import_pvtsutils.Convert.ToHex(raw);
59430
60512
  case "base64":
59431
- return import_pvtsutils3.Convert.ToBase64(raw);
60513
+ return import_pvtsutils.Convert.ToBase64(raw);
59432
60514
  case "base64url":
59433
- return import_pvtsutils3.Convert.ToBase64Url(raw);
60515
+ return import_pvtsutils.Convert.ToBase64Url(raw);
59434
60516
  case "text":
59435
60517
  return TextConverter.serialize(this.toTextObject());
59436
60518
  default:
@@ -59464,7 +60546,7 @@ var X509ChainBuilder = class {
59464
60546
  const thumbprint = await current.getThumbprint(crypto4);
59465
60547
  for (const item of chain) {
59466
60548
  const thumbprint2 = await item.getThumbprint(crypto4);
59467
- if ((0, import_pvtsutils3.isEqual)(thumbprint, thumbprint2)) {
60549
+ if ((0, import_pvtsutils.isEqual)(thumbprint, thumbprint2)) {
59468
60550
  throw new Error("Cannot build a certificate chain. Circular dependency.");
59469
60551
  }
59470
60552
  }
@@ -59487,7 +60569,7 @@ var X509ChainBuilder = class {
59487
60569
  }
59488
60570
  } else if (akiExt.certId) {
59489
60571
  const sanExt = item.getExtension(id_ce_subjectAltName);
59490
- if (sanExt && !(akiExt.certId.serialNumber === item.serialNumber && (0, import_pvtsutils3.isEqual)(AsnConvert.serialize(akiExt.certId.name), AsnConvert.serialize(sanExt)))) {
60572
+ if (sanExt && !(akiExt.certId.serialNumber === item.serialNumber && (0, import_pvtsutils.isEqual)(AsnConvert.serialize(akiExt.certId.name), AsnConvert.serialize(sanExt)))) {
59491
60573
  continue;
59492
60574
  }
59493
60575
  }
@@ -59515,7 +60597,7 @@ var X509ChainBuilder = class {
59515
60597
  }
59516
60598
  };
59517
60599
  function generateCertificateSerialNumber(input, crypto4 = cryptoProvider.get()) {
59518
- const inputView = import_pvtsutils3.BufferSourceConverter.toUint8Array(import_pvtsutils3.Convert.FromHex(input || ""));
60600
+ const inputView = import_pvtsutils.BufferSourceConverter.toUint8Array(import_pvtsutils.Convert.FromHex(input || ""));
59519
60601
  let serialNumber = inputView && inputView.length && inputView.some((o) => o > 0) ? new Uint8Array(inputView) : void 0;
59520
60602
  if (!serialNumber) {
59521
60603
  serialNumber = crypto4.getRandomValues(new Uint8Array(16));
@@ -59560,7 +60642,7 @@ var X509CertificateGenerator = class {
59560
60642
  spki = params.publicKey.rawData;
59561
60643
  } else if ("publicKey" in params.publicKey) {
59562
60644
  spki = params.publicKey.publicKey.rawData;
59563
- } else if (import_pvtsutils3.BufferSourceConverter.isBufferSource(params.publicKey)) {
60645
+ } else if (import_pvtsutils.BufferSourceConverter.isBufferSource(params.publicKey)) {
59564
60646
  spki = params.publicKey;
59565
60647
  } else {
59566
60648
  spki = await crypto4.subtle.exportKey("spki", params.publicKey);
@@ -59637,7 +60719,7 @@ var X509CrlReason;
59637
60719
  var X509CrlEntry = class extends AsnData {
59638
60720
  get serialNumber() {
59639
60721
  if (!__classPrivateFieldGet(this, _X509CrlEntry_serialNumber, "f")) {
59640
- __classPrivateFieldSet(this, _X509CrlEntry_serialNumber, import_pvtsutils3.Convert.ToHex(this.asn.userCertificate), "f");
60722
+ __classPrivateFieldSet(this, _X509CrlEntry_serialNumber, import_pvtsutils.Convert.ToHex(this.asn.userCertificate), "f");
59641
60723
  }
59642
60724
  return __classPrivateFieldGet(this, _X509CrlEntry_serialNumber, "f");
59643
60725
  }
@@ -59685,8 +60767,8 @@ var X509CrlEntry = class extends AsnData {
59685
60767
  }
59686
60768
  constructor(...args) {
59687
60769
  let raw;
59688
- if (import_pvtsutils3.BufferSourceConverter.isBufferSource(args[0])) {
59689
- raw = import_pvtsutils3.BufferSourceConverter.toArrayBuffer(args[0]);
60770
+ if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
60771
+ raw = import_pvtsutils.BufferSourceConverter.toArrayBuffer(args[0]);
59690
60772
  } else if (typeof args[0] === "string") {
59691
60773
  raw = AsnConvert.serialize(new RevokedCertificate({
59692
60774
  userCertificate: generateCertificateSerialNumber(args[0]),
@@ -59882,7 +60964,7 @@ var X509Crl = class extends PemData {
59882
60964
  const serialNumber = typeof certOrSerialNumber === "string" ? certOrSerialNumber : certOrSerialNumber.serialNumber;
59883
60965
  const serialBuffer = generateCertificateSerialNumber(serialNumber);
59884
60966
  for (const revoked of this.asn.tbsCertList.revokedCertificates || []) {
59885
- if (import_pvtsutils3.BufferSourceConverter.isEqual(revoked.userCertificate, serialBuffer)) {
60967
+ if (import_pvtsutils.BufferSourceConverter.isEqual(revoked.userCertificate, serialBuffer)) {
59886
60968
  return new X509CrlEntry(AsnConvert.serialize(revoked));
59887
60969
  }
59888
60970
  }
@@ -59911,7 +60993,7 @@ var X509CrlGenerator = class {
59911
60993
  asnX509Crl.tbsCertList.revokedCertificates = [];
59912
60994
  for (const entry of params.entries) {
59913
60995
  const userCertificate = PemData.toArrayBuffer(entry.serialNumber);
59914
- const index = asnX509Crl.tbsCertList.revokedCertificates.findIndex((cert) => (0, import_pvtsutils3.isEqual)(cert.userCertificate, userCertificate));
60996
+ const index = asnX509Crl.tbsCertList.revokedCertificates.findIndex((cert) => (0, import_pvtsutils.isEqual)(cert.userCertificate, userCertificate));
59915
60997
  if (index > -1) {
59916
60998
  throw new Error(`Certificate serial number ${entry.serialNumber} already exists in tbsCertList`);
59917
60999
  }
@@ -60016,6 +61098,7 @@ function getCrypto() {
60016
61098
 
60017
61099
  // ../node-opcua-crypto/source/x509/create_key_pair.ts
60018
61100
  init_inject_buffer();
61101
+ var ENCRYPTED_PEM_HEADER = "-----BEGIN ENCRYPTED PRIVATE KEY-----";
60019
61102
  async function generateKeyPair(modulusLength = 2048) {
60020
61103
  const crypto4 = getCrypto();
60021
61104
  const alg = {
@@ -60060,6 +61143,11 @@ async function derToPrivateKey(privDer) {
60060
61143
  return importedKey;
60061
61144
  }
60062
61145
  async function pemToPrivateKey(pem) {
61146
+ if (pem.includes(ENCRYPTED_PEM_HEADER)) {
61147
+ throw new Error(
61148
+ "This private key is encrypted (PKCS#8 ENCRYPTED PRIVATE KEY). Encrypted private keys are not supported by the WebCrypto-based browser build; use the Node.js build's readPrivateKey()/readPrivateKeyAsync() with a passphrase instead."
61149
+ );
61150
+ }
60063
61151
  const privDer = x509_es_exports.PemConverter.decode(pem);
60064
61152
  return derToPrivateKey(privDer[0]);
60065
61153
  }
@@ -60067,9 +61155,13 @@ async function pemToPrivateKey(pem) {
60067
61155
  // ../node-opcua-crypto/source/x509/coerce_private_key.ts
60068
61156
  var crypto3 = getCrypto();
60069
61157
  var doDebug4 = false;
60070
- function coercePEMorDerToPrivateKey(privateKeyInDerOrPem) {
61158
+ var ENCRYPTED_PEM_HEADER2 = "-----BEGIN ENCRYPTED PRIVATE KEY-----";
61159
+ function coercePEMorDerToPrivateKey(privateKeyInDerOrPem, passphrase) {
60071
61160
  if (typeof privateKeyInDerOrPem === "string") {
60072
- const hidden = createPrivateKeyFromNodeJSCrypto(privateKeyInDerOrPem);
61161
+ if (privateKeyInDerOrPem.includes(ENCRYPTED_PEM_HEADER2) && passphrase === void 0) {
61162
+ throw new PrivateKeyPassphraseRequiredError();
61163
+ }
61164
+ const hidden = passphrase !== void 0 ? createPrivateKeyFromNodeJSCrypto({ key: privateKeyInDerOrPem, format: "pem", passphrase }) : createPrivateKeyFromNodeJSCrypto(privateKeyInDerOrPem);
60073
61165
  return { hidden };
60074
61166
  }
60075
61167
  throw new Error("not implemented");
@@ -60492,6 +61584,10 @@ var asn1 = { readDirectoryName, readTag, readStruct, readAlgorithmIdentifier, re
60492
61584
  export {
60493
61585
  CertificatePurpose,
60494
61586
  PaddingAlgorithm,
61587
+ PfxIntegrityError,
61588
+ PfxMalformedError,
61589
+ Pkcs12UnsupportedAlgorithmError,
61590
+ PrivateKeyPassphraseRequiredError,
60495
61591
  RSA_PKCS1_OAEP_PADDING,
60496
61592
  RSA_PKCS1_PADDING,
60497
61593
  Subject,