@peculiar/certificates-viewer 4.0.1 → 4.1.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.
Files changed (242) hide show
  1. package/README.md +1 -1
  2. package/components/actions.js +21 -0
  3. package/components/actions.js.map +1 -0
  4. package/components/arrow_top.js +1 -1
  5. package/components/attribute-certificate-viewer.js +7 -7
  6. package/components/attribute-certificate-viewer.js.map +1 -1
  7. package/components/button-menu.js +2 -14
  8. package/components/button-menu.js.map +1 -1
  9. package/components/certificate-viewer.js +5 -5
  10. package/components/certificate-viewer.js.map +1 -1
  11. package/components/crl-viewer.js +6 -6
  12. package/components/crl-viewer.js.map +1 -1
  13. package/components/cross.js +47 -0
  14. package/components/cross.js.map +1 -0
  15. package/components/csr-viewer.js +4 -4
  16. package/components/csr-viewer.js.map +1 -1
  17. package/components/download.js +404 -374
  18. package/components/download.js.map +1 -1
  19. package/components/index.js +5 -1
  20. package/components/index.js.map +1 -1
  21. package/components/index2.js +2 -2
  22. package/components/index2.js.map +1 -1
  23. package/components/issuer_name.js +2 -2
  24. package/components/miscellaneous.js +648 -245
  25. package/components/miscellaneous.js.map +1 -1
  26. package/components/peculiar-certificates-viewer.js +4 -42
  27. package/components/peculiar-certificates-viewer.js.map +1 -1
  28. package/components/peculiar-text-hider.js +1 -1
  29. package/components/subject_name.js +2 -2
  30. package/components/subject_name.js.map +1 -1
  31. package/dist/cjs/actions-19013d4a.js +23 -0
  32. package/dist/cjs/actions-19013d4a.js.map +1 -0
  33. package/dist/cjs/{certification_request-c0cafa72.js → certification_request-bf416170.js} +553 -214
  34. package/dist/cjs/certification_request-bf416170.js.map +1 -0
  35. package/dist/cjs/{crl-b4322166.js → crl-d9591b95.js} +14 -14
  36. package/dist/cjs/{crl-b4322166.js.map → crl-d9591b95.js.map} +1 -1
  37. package/dist/cjs/cross-9872c473.js +51 -0
  38. package/dist/cjs/cross-9872c473.js.map +1 -0
  39. package/dist/cjs/{download-972dda8a.js → download-0fa5b33c.js} +377 -377
  40. package/dist/cjs/download-0fa5b33c.js.map +1 -0
  41. package/dist/cjs/index.cjs.js +18 -1
  42. package/dist/cjs/index.cjs.js.map +1 -1
  43. package/dist/cjs/link-6aea0be4.js +25 -0
  44. package/dist/cjs/link-6aea0be4.js.map +1 -0
  45. package/dist/cjs/{miscellaneous-806a04a5.js → miscellaneous-6e800553.js} +114 -33
  46. package/dist/cjs/miscellaneous-6e800553.js.map +1 -0
  47. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +9 -8
  48. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js.map +1 -1
  49. package/dist/cjs/peculiar-button-menu_3.cjs.entry.js +2 -14
  50. package/dist/cjs/peculiar-button-menu_3.cjs.entry.js.map +1 -1
  51. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +4 -4
  52. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +5 -4
  53. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js.map +1 -1
  54. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +9 -47
  55. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js.map +1 -1
  56. package/dist/cjs/{x509_certificate-989b1435.js → x509_certificate-53feebd3.js} +7 -7
  57. package/dist/cjs/{x509_certificate-989b1435.js.map → x509_certificate-53feebd3.js.map} +1 -1
  58. package/dist/collection/components/certificate-details-parts/extensions/index.js +5 -0
  59. package/dist/collection/components/certificate-details-parts/extensions/index.js.map +1 -1
  60. package/dist/collection/components/certificate-details-parts/extensions/key_description_extension.js +80 -0
  61. package/dist/collection/components/certificate-details-parts/extensions/key_description_extension.js.map +1 -0
  62. package/dist/collection/constants/oids.js +1 -0
  63. package/dist/collection/constants/oids.js.map +1 -1
  64. package/dist/collection/crypto/extension.js +4 -0
  65. package/dist/collection/crypto/extension.js.map +1 -1
  66. package/dist/collection/index.js +4 -0
  67. package/dist/collection/index.js.map +1 -1
  68. package/dist/collection/utils/camel_case_to_words.js +15 -0
  69. package/dist/collection/utils/camel_case_to_words.js.map +1 -0
  70. package/dist/collection/utils/index.js +1 -0
  71. package/dist/collection/utils/index.js.map +1 -1
  72. package/dist/esm/actions-8d745b2a.js +21 -0
  73. package/dist/esm/actions-8d745b2a.js.map +1 -0
  74. package/dist/esm/{arrow_top-efd3a56d.js → arrow_top-fc298828.js} +2 -2
  75. package/dist/esm/{arrow_top-efd3a56d.js.map → arrow_top-fc298828.js.map} +1 -1
  76. package/dist/esm/{certification_request-5cadde9f.js → certification_request-c9dc8e9c.js} +545 -209
  77. package/dist/esm/certification_request-c9dc8e9c.js.map +1 -0
  78. package/dist/esm/{crl-11670c3e.js → crl-70e85374.js} +14 -14
  79. package/dist/esm/{crl-11670c3e.js.map → crl-70e85374.js.map} +1 -1
  80. package/dist/esm/cross-9ec9a759.js +47 -0
  81. package/dist/esm/cross-9ec9a759.js.map +1 -0
  82. package/dist/esm/{download-57c5bf8f.js → download-aacb6eff.js} +375 -375
  83. package/dist/esm/download-aacb6eff.js.map +1 -0
  84. package/dist/esm/index.js +8 -1
  85. package/dist/esm/index.js.map +1 -1
  86. package/dist/esm/link-ad24c3be.js +23 -0
  87. package/dist/esm/link-ad24c3be.js.map +1 -0
  88. package/dist/esm/{miscellaneous-1d4e8b41.js → miscellaneous-0763f98e.js} +108 -27
  89. package/dist/esm/miscellaneous-0763f98e.js.map +1 -0
  90. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +9 -8
  91. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -1
  92. package/dist/esm/peculiar-button-menu_3.entry.js +2 -14
  93. package/dist/esm/peculiar-button-menu_3.entry.js.map +1 -1
  94. package/dist/esm/peculiar-certificate-decoder.entry.js +4 -4
  95. package/dist/esm/peculiar-certificate-viewer.entry.js +5 -4
  96. package/dist/esm/peculiar-certificate-viewer.entry.js.map +1 -1
  97. package/dist/esm/peculiar-certificates-viewer.entry.js +5 -43
  98. package/dist/esm/peculiar-certificates-viewer.entry.js.map +1 -1
  99. package/dist/esm/peculiar-text-hider.entry.js +1 -1
  100. package/dist/esm/{x509_certificate-dfae6999.js → x509_certificate-8cf268d1.js} +7 -7
  101. package/dist/esm/{x509_certificate-dfae6999.js.map → x509_certificate-8cf268d1.js.map} +1 -1
  102. package/dist/esm-es5/actions-8d745b2a.js +12 -0
  103. package/dist/esm-es5/actions-8d745b2a.js.map +1 -0
  104. package/dist/esm-es5/{arrow_top-efd3a56d.js → arrow_top-fc298828.js} +2 -2
  105. package/dist/esm-es5/certification_request-c9dc8e9c.js +97 -0
  106. package/dist/esm-es5/certification_request-c9dc8e9c.js.map +1 -0
  107. package/dist/esm-es5/{crl-11670c3e.js → crl-70e85374.js} +6 -6
  108. package/dist/esm-es5/{crl-11670c3e.js.map → crl-70e85374.js.map} +1 -1
  109. package/dist/esm-es5/cross-9ec9a759.js +26 -0
  110. package/dist/esm-es5/cross-9ec9a759.js.map +1 -0
  111. package/dist/esm-es5/download-aacb6eff.js +43 -0
  112. package/dist/esm-es5/download-aacb6eff.js.map +1 -0
  113. package/dist/esm-es5/index.js +1 -1
  114. package/dist/esm-es5/link-ad24c3be.js +12 -0
  115. package/dist/esm-es5/link-ad24c3be.js.map +1 -0
  116. package/dist/esm-es5/{miscellaneous-1d4e8b41.js → miscellaneous-0763f98e.js} +58 -51
  117. package/dist/esm-es5/miscellaneous-0763f98e.js.map +1 -0
  118. package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js +3 -3
  119. package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -1
  120. package/dist/esm-es5/peculiar-button-menu_3.entry.js +1 -8
  121. package/dist/esm-es5/peculiar-button-menu_3.entry.js.map +1 -1
  122. package/dist/esm-es5/peculiar-certificate-decoder.entry.js +1 -1
  123. package/dist/esm-es5/peculiar-certificate-viewer.entry.js +1 -1
  124. package/dist/esm-es5/peculiar-certificate-viewer.entry.js.map +1 -1
  125. package/dist/esm-es5/peculiar-certificates-viewer.entry.js +2 -23
  126. package/dist/esm-es5/peculiar-certificates-viewer.entry.js.map +1 -1
  127. package/dist/esm-es5/peculiar-text-hider.entry.js +1 -1
  128. package/dist/esm-es5/x509_certificate-8cf268d1.js +12 -0
  129. package/dist/esm-es5/{x509_certificate-dfae6999.js.map → x509_certificate-8cf268d1.js.map} +1 -1
  130. package/dist/peculiar/index.esm.js +1 -1
  131. package/dist/peculiar/p-025b3cfb.entry.js +5 -0
  132. package/dist/peculiar/{p-fd4b9a50.entry.js.map → p-025b3cfb.entry.js.map} +1 -1
  133. package/dist/peculiar/p-0bd7c6bc.system.entry.js +13 -0
  134. package/dist/peculiar/p-0bd7c6bc.system.entry.js.map +1 -0
  135. package/dist/peculiar/{p-709994c1.js → p-0fc2e2b4.js} +2 -2
  136. package/dist/peculiar/p-10d2d400.system.js +34 -0
  137. package/dist/peculiar/{p-6667fe6e.system.js.map → p-10d2d400.system.js.map} +1 -1
  138. package/dist/peculiar/p-14f281b0.system.js +43 -0
  139. package/dist/peculiar/p-14f281b0.system.js.map +1 -0
  140. package/dist/peculiar/p-15cb92b5.system.js +97 -0
  141. package/dist/peculiar/p-15cb92b5.system.js.map +1 -0
  142. package/dist/peculiar/p-1ceb0fe3.js +12 -0
  143. package/dist/peculiar/p-1ceb0fe3.js.map +1 -0
  144. package/dist/peculiar/p-1ef997ee.js +97 -0
  145. package/dist/peculiar/p-1ef997ee.js.map +1 -0
  146. package/dist/peculiar/{p-e39de121.system.entry.js → p-24050d82.system.entry.js} +2 -2
  147. package/dist/peculiar/p-2f48fe70.entry.js +12 -0
  148. package/dist/peculiar/p-2f48fe70.entry.js.map +1 -0
  149. package/dist/peculiar/{p-0bdcdbf7.system.js → p-31b60224.system.js} +59 -52
  150. package/dist/peculiar/p-31b60224.system.js.map +1 -0
  151. package/dist/peculiar/p-33196289.entry.js +5 -0
  152. package/dist/peculiar/{p-90459cec.entry.js.map → p-33196289.entry.js.map} +1 -1
  153. package/dist/peculiar/p-370cee20.js +26 -0
  154. package/dist/peculiar/p-370cee20.js.map +1 -0
  155. package/dist/peculiar/{p-7ed7cd97.system.entry.js → p-4ab9673f.system.entry.js} +4 -4
  156. package/dist/peculiar/{p-7ed7cd97.system.entry.js.map → p-4ab9673f.system.entry.js.map} +1 -1
  157. package/dist/peculiar/{p-8748391f.system.entry.js → p-5151cb6f.system.entry.js} +2 -2
  158. package/dist/peculiar/p-53784f15.system.entry.js +5 -0
  159. package/dist/peculiar/p-53784f15.system.entry.js.map +1 -0
  160. package/dist/peculiar/p-542412ae.js +33 -0
  161. package/dist/peculiar/{p-43eb3721.js.map → p-542412ae.js.map} +1 -1
  162. package/dist/peculiar/p-59e5ac12.js +43 -0
  163. package/dist/peculiar/p-59e5ac12.js.map +1 -0
  164. package/dist/peculiar/p-5ab007e9.entry.js +5 -0
  165. package/dist/peculiar/p-5ab007e9.entry.js.map +1 -0
  166. package/dist/peculiar/p-5e49b881.system.entry.js +5 -0
  167. package/dist/peculiar/{p-26981468.system.entry.js.map → p-5e49b881.system.entry.js.map} +1 -1
  168. package/dist/peculiar/p-6cb88fd6.system.js +13 -0
  169. package/dist/peculiar/p-6cb88fd6.system.js.map +1 -0
  170. package/dist/peculiar/p-72f53d81.js +12 -0
  171. package/dist/peculiar/{p-6e79b9c8.js.map → p-72f53d81.js.map} +1 -1
  172. package/dist/peculiar/p-80832207.system.js +1 -1
  173. package/dist/peculiar/p-94a453d7.js +12 -0
  174. package/dist/peculiar/p-94a453d7.js.map +1 -0
  175. package/dist/peculiar/{p-f3d85a5f.entry.js → p-9c91dd68.entry.js} +5 -5
  176. package/dist/peculiar/{p-f3d85a5f.entry.js.map → p-9c91dd68.entry.js.map} +1 -1
  177. package/dist/peculiar/p-a3eeb94b.system.js +5 -0
  178. package/dist/peculiar/p-b313be9e.system.js +13 -0
  179. package/dist/peculiar/p-b313be9e.system.js.map +1 -0
  180. package/dist/peculiar/{p-daf23673.system.js → p-c99507d4.system.js} +3 -3
  181. package/dist/peculiar/p-ca02a823.js +362 -0
  182. package/dist/peculiar/p-ca02a823.js.map +1 -0
  183. package/dist/peculiar/p-cfca7dae.system.js +13 -0
  184. package/dist/peculiar/{p-31586b23.system.js.map → p-cfca7dae.system.js.map} +1 -1
  185. package/dist/peculiar/p-ddae2f8e.system.js +27 -0
  186. package/dist/peculiar/p-ddae2f8e.system.js.map +1 -0
  187. package/dist/peculiar/{p-882e1281.entry.js → p-e5b18cd1.entry.js} +2 -2
  188. package/dist/peculiar/peculiar.esm.js +1 -1
  189. package/dist/types/components/certificate-details-parts/extensions/key_description_extension.d.ts +15 -0
  190. package/dist/types/constants/oids.d.ts +1 -0
  191. package/dist/types/crypto/extension.d.ts +2 -1
  192. package/dist/types/index.d.ts +4 -0
  193. package/dist/types/utils/camel_case_to_words.d.ts +8 -0
  194. package/dist/types/utils/index.d.ts +1 -0
  195. package/hydrate/index.js +1039 -609
  196. package/package.json +22 -21
  197. package/dist/cjs/certification_request-c0cafa72.js.map +0 -1
  198. package/dist/cjs/download-972dda8a.js.map +0 -1
  199. package/dist/cjs/miscellaneous-806a04a5.js.map +0 -1
  200. package/dist/esm/certification_request-5cadde9f.js.map +0 -1
  201. package/dist/esm/download-57c5bf8f.js.map +0 -1
  202. package/dist/esm/miscellaneous-1d4e8b41.js.map +0 -1
  203. package/dist/esm-es5/certification_request-5cadde9f.js +0 -97
  204. package/dist/esm-es5/certification_request-5cadde9f.js.map +0 -1
  205. package/dist/esm-es5/download-57c5bf8f.js +0 -19
  206. package/dist/esm-es5/download-57c5bf8f.js.map +0 -1
  207. package/dist/esm-es5/miscellaneous-1d4e8b41.js.map +0 -1
  208. package/dist/esm-es5/x509_certificate-dfae6999.js +0 -12
  209. package/dist/peculiar/p-0bdcdbf7.system.js.map +0 -1
  210. package/dist/peculiar/p-23555789.system.entry.js +0 -34
  211. package/dist/peculiar/p-23555789.system.entry.js.map +0 -1
  212. package/dist/peculiar/p-26981468.system.entry.js +0 -5
  213. package/dist/peculiar/p-31586b23.system.js +0 -13
  214. package/dist/peculiar/p-43eb3721.js +0 -33
  215. package/dist/peculiar/p-5823e6e8.entry.js +0 -12
  216. package/dist/peculiar/p-5823e6e8.entry.js.map +0 -1
  217. package/dist/peculiar/p-596836a7.entry.js +0 -33
  218. package/dist/peculiar/p-596836a7.entry.js.map +0 -1
  219. package/dist/peculiar/p-6667fe6e.system.js +0 -34
  220. package/dist/peculiar/p-6e79b9c8.js +0 -12
  221. package/dist/peculiar/p-74c241e7.js +0 -97
  222. package/dist/peculiar/p-74c241e7.js.map +0 -1
  223. package/dist/peculiar/p-90459cec.entry.js +0 -5
  224. package/dist/peculiar/p-97688065.js +0 -355
  225. package/dist/peculiar/p-97688065.js.map +0 -1
  226. package/dist/peculiar/p-a053c132.js +0 -19
  227. package/dist/peculiar/p-a053c132.js.map +0 -1
  228. package/dist/peculiar/p-ae9189f6.system.js +0 -19
  229. package/dist/peculiar/p-ae9189f6.system.js.map +0 -1
  230. package/dist/peculiar/p-bd485115.system.entry.js +0 -13
  231. package/dist/peculiar/p-bd485115.system.entry.js.map +0 -1
  232. package/dist/peculiar/p-c0a298fd.system.js +0 -97
  233. package/dist/peculiar/p-c0a298fd.system.js.map +0 -1
  234. package/dist/peculiar/p-e1960173.system.js +0 -5
  235. package/dist/peculiar/p-fd4b9a50.entry.js +0 -5
  236. /package/dist/esm-es5/{arrow_top-efd3a56d.js.map → arrow_top-fc298828.js.map} +0 -0
  237. /package/dist/peculiar/{p-709994c1.js.map → p-0fc2e2b4.js.map} +0 -0
  238. /package/dist/peculiar/{p-e39de121.system.entry.js.map → p-24050d82.system.entry.js.map} +0 -0
  239. /package/dist/peculiar/{p-8748391f.system.entry.js.map → p-5151cb6f.system.entry.js.map} +0 -0
  240. /package/dist/peculiar/{p-e1960173.system.js.map → p-a3eeb94b.system.js.map} +0 -0
  241. /package/dist/peculiar/{p-daf23673.system.js.map → p-c99507d4.system.js.map} +0 -0
  242. /package/dist/peculiar/{p-882e1281.entry.js.map → p-e5b18cd1.entry.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
3
  */
4
- import { b as build, c as createCommonjsModule, a as commonjsGlobal } from './download.js';
4
+ import { B as BufferSourceConverter_1, C as Convert_1, i as isEqual_1, L as Link, a as DownloadIcon } from './download.js';
5
5
  import { h } from '@stencil/core/internal/client';
6
6
  import { T as Typography, B as Button } from './button.js';
7
7
 
@@ -262,7 +262,7 @@ function HexBlock(BaseClass) {
262
262
  super(...args);
263
263
  const params = args[0] || {};
264
264
  this.isHexOnly = (_a = params.isHexOnly) !== null && _a !== void 0 ? _a : false;
265
- this.valueHexView = params.valueHex ? build.BufferSourceConverter.toUint8Array(params.valueHex) : EMPTY_VIEW;
265
+ this.valueHexView = params.valueHex ? BufferSourceConverter_1.toUint8Array(params.valueHex) : EMPTY_VIEW;
266
266
  }
267
267
  get valueHex() {
268
268
  return this.valueHexView.slice().buffer;
@@ -300,7 +300,7 @@ function HexBlock(BaseClass) {
300
300
  return {
301
301
  ...super.toJSON(),
302
302
  isHexOnly: this.isHexOnly,
303
- valueHex: build.Convert.ToHex(this.valueHexView),
303
+ valueHex: Convert_1.ToHex(this.valueHexView),
304
304
  };
305
305
  }
306
306
  },
@@ -313,7 +313,7 @@ class LocalBaseBlock {
313
313
  this.blockLength = blockLength;
314
314
  this.error = error;
315
315
  this.warnings = warnings;
316
- this.valueBeforeDecodeView = build.BufferSourceConverter.toUint8Array(valueBeforeDecode);
316
+ this.valueBeforeDecodeView = BufferSourceConverter_1.toUint8Array(valueBeforeDecode);
317
317
  }
318
318
  static blockName() {
319
319
  return this.NAME;
@@ -330,7 +330,7 @@ class LocalBaseBlock {
330
330
  blockLength: this.blockLength,
331
331
  error: this.error,
332
332
  warnings: this.warnings,
333
- valueBeforeDecode: build.Convert.ToHex(this.valueBeforeDecodeView),
333
+ valueBeforeDecode: Convert_1.ToHex(this.valueBeforeDecodeView),
334
334
  };
335
335
  }
336
336
  }
@@ -352,7 +352,7 @@ class LocalIdentificationBlock extends HexBlock(LocalBaseBlock) {
352
352
  super();
353
353
  if (idBlock) {
354
354
  this.isHexOnly = (_a = idBlock.isHexOnly) !== null && _a !== void 0 ? _a : false;
355
- this.valueHexView = idBlock.valueHex ? build.BufferSourceConverter.toUint8Array(idBlock.valueHex) : EMPTY_VIEW;
355
+ this.valueHexView = idBlock.valueHex ? BufferSourceConverter_1.toUint8Array(idBlock.valueHex) : EMPTY_VIEW;
356
356
  this.tagClass = (_b = idBlock.tagClass) !== null && _b !== void 0 ? _b : -1;
357
357
  this.tagNumber = (_c = idBlock.tagNumber) !== null && _c !== void 0 ? _c : -1;
358
358
  this.isConstructed = (_d = idBlock.isConstructed) !== null && _d !== void 0 ? _d : false;
@@ -418,7 +418,7 @@ class LocalIdentificationBlock extends HexBlock(LocalBaseBlock) {
418
418
  return retView.buffer;
419
419
  }
420
420
  fromBER(inputBuffer, inputOffset, inputLength) {
421
- const inputView = build.BufferSourceConverter.toUint8Array(inputBuffer);
421
+ const inputView = BufferSourceConverter_1.toUint8Array(inputBuffer);
422
422
  if (!checkBufferParams(this, inputView, inputOffset, inputLength)) {
423
423
  return -1;
424
424
  }
@@ -527,7 +527,7 @@ class LocalLengthBlock extends LocalBaseBlock {
527
527
  this.length = (_c = lenBlock.length) !== null && _c !== void 0 ? _c : 0;
528
528
  }
529
529
  fromBER(inputBuffer, inputOffset, inputLength) {
530
- const view = build.BufferSourceConverter.toUint8Array(inputBuffer);
530
+ const view = BufferSourceConverter_1.toUint8Array(inputBuffer);
531
531
  if (!checkBufferParams(this, view, inputOffset, inputLength)) {
532
532
  return -1;
533
533
  }
@@ -686,10 +686,10 @@ class BaseBlock extends LocalBaseBlock {
686
686
  if (encoding === "ascii") {
687
687
  return this.onAsciiEncoding();
688
688
  }
689
- return build.Convert.ToHex(this.toBER());
689
+ return Convert_1.ToHex(this.toBER());
690
690
  }
691
691
  onAsciiEncoding() {
692
- return `${this.constructor.NAME} : ${build.Convert.ToHex(this.valueBlock.valueBeforeDecodeView)}`;
692
+ return `${this.constructor.NAME} : ${Convert_1.ToHex(this.valueBlock.valueBeforeDecodeView)}`;
693
693
  }
694
694
  isEqual(other) {
695
695
  if (this === other) {
@@ -987,7 +987,7 @@ function fromBER(inputBuffer) {
987
987
  result
988
988
  };
989
989
  }
990
- return localFromBER(build.BufferSourceConverter.toUint8Array(inputBuffer).slice(), 0, inputBuffer.byteLength);
990
+ return localFromBER(BufferSourceConverter_1.toUint8Array(inputBuffer).slice(), 0, inputBuffer.byteLength);
991
991
  }
992
992
 
993
993
  function checkLen(indefiniteLength, length) {
@@ -1003,7 +1003,7 @@ class LocalConstructedValueBlock extends ValueBlock {
1003
1003
  this.isIndefiniteForm = isIndefiniteForm;
1004
1004
  }
1005
1005
  fromBER(inputBuffer, inputOffset, inputLength) {
1006
- const view = build.BufferSourceConverter.toUint8Array(inputBuffer);
1006
+ const view = BufferSourceConverter_1.toUint8Array(inputBuffer);
1007
1007
  if (!checkBufferParams(this, view, inputOffset, inputLength)) {
1008
1008
  return -1;
1009
1009
  }
@@ -1173,7 +1173,7 @@ class LocalBooleanValueBlock extends HexBlock(ValueBlock) {
1173
1173
  constructor({ value, ...parameters } = {}) {
1174
1174
  super(parameters);
1175
1175
  if (parameters.valueHex) {
1176
- this.valueHexView = build.BufferSourceConverter.toUint8Array(parameters.valueHex);
1176
+ this.valueHexView = BufferSourceConverter_1.toUint8Array(parameters.valueHex);
1177
1177
  }
1178
1178
  else {
1179
1179
  this.valueHexView = new Uint8Array(1);
@@ -1194,7 +1194,7 @@ class LocalBooleanValueBlock extends HexBlock(ValueBlock) {
1194
1194
  this.valueHexView[0] = value ? 0xFF : 0x00;
1195
1195
  }
1196
1196
  fromBER(inputBuffer, inputOffset, inputLength) {
1197
- const inputView = build.BufferSourceConverter.toUint8Array(inputBuffer);
1197
+ const inputView = BufferSourceConverter_1.toUint8Array(inputBuffer);
1198
1198
  if (!checkBufferParams(this, inputView, inputOffset, inputLength)) {
1199
1199
  return -1;
1200
1200
  }
@@ -1341,7 +1341,7 @@ class OctetString$1 extends BaseBlock {
1341
1341
  if (this.valueBlock.isConstructed || (this.valueBlock.value && this.valueBlock.value.length)) {
1342
1342
  return Constructed.prototype.onAsciiEncoding.call(this);
1343
1343
  }
1344
- return `${this.constructor.NAME} : ${build.Convert.ToHex(this.valueBlock.valueHexView)}`;
1344
+ return `${this.constructor.NAME} : ${Convert_1.ToHex(this.valueBlock.valueHexView)}`;
1345
1345
  }
1346
1346
  getValue() {
1347
1347
  if (!this.idBlock.isConstructed) {
@@ -1353,7 +1353,7 @@ class OctetString$1 extends BaseBlock {
1353
1353
  array.push(content.valueBlock.valueHexView);
1354
1354
  }
1355
1355
  }
1356
- return build.BufferSourceConverter.concat(array);
1356
+ return BufferSourceConverter_1.concat(array);
1357
1357
  }
1358
1358
  }
1359
1359
  _a$r = OctetString$1;
@@ -1401,7 +1401,7 @@ class LocalBitStringValueBlock extends HexBlock(LocalConstructedValueBlock) {
1401
1401
  }
1402
1402
  return resultOffset;
1403
1403
  }
1404
- const inputView = build.BufferSourceConverter.toUint8Array(inputBuffer);
1404
+ const inputView = BufferSourceConverter_1.toUint8Array(inputBuffer);
1405
1405
  if (!checkBufferParams(this, inputView, inputOffset, inputLength)) {
1406
1406
  return -1;
1407
1407
  }
@@ -1741,13 +1741,13 @@ class Integer extends BaseBlock {
1741
1741
  const bigIntValue = BigInt(value);
1742
1742
  const writer = new ViewWriter();
1743
1743
  const hex = bigIntValue.toString(16).replace(/^-/, "");
1744
- const view = new Uint8Array(build.Convert.FromHex(hex));
1744
+ const view = new Uint8Array(Convert_1.FromHex(hex));
1745
1745
  if (bigIntValue < 0) {
1746
1746
  const first = new Uint8Array(view.length + (view[0] & 0x80 ? 1 : 0));
1747
1747
  first[0] |= 0x80;
1748
- const firstInt = BigInt(`0x${build.Convert.ToHex(first)}`);
1748
+ const firstInt = BigInt(`0x${Convert_1.ToHex(first)}`);
1749
1749
  const secondInt = firstInt + bigIntValue;
1750
- const second = build.BufferSourceConverter.toUint8Array(build.Convert.FromHex(secondInt.toString(16)));
1750
+ const second = BufferSourceConverter_1.toUint8Array(Convert_1.FromHex(secondInt.toString(16)));
1751
1751
  second[0] |= 0x80;
1752
1752
  writer.write(second);
1753
1753
  }
@@ -1808,7 +1808,7 @@ class LocalSidValueBlock extends HexBlock(ValueBlock) {
1808
1808
  if (!inputLength) {
1809
1809
  return inputOffset;
1810
1810
  }
1811
- const inputView = build.BufferSourceConverter.toUint8Array(inputBuffer);
1811
+ const inputView = BufferSourceConverter_1.toUint8Array(inputBuffer);
1812
1812
  if (!checkBufferParams(this, inputView, inputOffset, inputLength)) {
1813
1813
  return -1;
1814
1814
  }
@@ -1880,7 +1880,7 @@ class LocalSidValueBlock extends HexBlock(ValueBlock) {
1880
1880
  toString() {
1881
1881
  let result = "";
1882
1882
  if (this.isHexOnly)
1883
- result = build.Convert.ToHex(this.valueHexView);
1883
+ result = Convert_1.ToHex(this.valueHexView);
1884
1884
  else {
1885
1885
  if (this.isFirstSid) {
1886
1886
  let sidValue = this.valueDec;
@@ -2077,7 +2077,7 @@ class LocalRelativeSidValueBlock extends HexBlock(LocalBaseBlock) {
2077
2077
  fromBER(inputBuffer, inputOffset, inputLength) {
2078
2078
  if (inputLength === 0)
2079
2079
  return inputOffset;
2080
- const inputView = build.BufferSourceConverter.toUint8Array(inputBuffer);
2080
+ const inputView = BufferSourceConverter_1.toUint8Array(inputBuffer);
2081
2081
  if (!checkBufferParams(this, inputView, inputOffset, inputLength))
2082
2082
  return -1;
2083
2083
  const intBuffer = inputView.subarray(inputOffset, inputOffset + inputLength);
@@ -2135,7 +2135,7 @@ class LocalRelativeSidValueBlock extends HexBlock(LocalBaseBlock) {
2135
2135
  toString() {
2136
2136
  let result = "";
2137
2137
  if (this.isHexOnly)
2138
- result = build.Convert.ToHex(this.valueHexView);
2138
+ result = Convert_1.ToHex(this.valueHexView);
2139
2139
  else {
2140
2140
  result = this.valueDec.toString();
2141
2141
  }
@@ -2317,7 +2317,7 @@ class LocalSimpleStringBlock extends BaseStringBlock {
2317
2317
  super(parameters, LocalSimpleStringValueBlock);
2318
2318
  }
2319
2319
  fromBuffer(inputBuffer) {
2320
- this.valueBlock.value = String.fromCharCode.apply(null, build.BufferSourceConverter.toUint8Array(inputBuffer));
2320
+ this.valueBlock.value = String.fromCharCode.apply(null, BufferSourceConverter_1.toUint8Array(inputBuffer));
2321
2321
  }
2322
2322
  fromString(inputString) {
2323
2323
  const strLen = inputString.length;
@@ -2331,17 +2331,17 @@ LocalSimpleStringBlock.NAME = "SIMPLE STRING";
2331
2331
 
2332
2332
  class LocalUtf8StringValueBlock extends LocalSimpleStringBlock {
2333
2333
  fromBuffer(inputBuffer) {
2334
- this.valueBlock.valueHexView = build.BufferSourceConverter.toUint8Array(inputBuffer);
2334
+ this.valueBlock.valueHexView = BufferSourceConverter_1.toUint8Array(inputBuffer);
2335
2335
  try {
2336
- this.valueBlock.value = build.Convert.ToUtf8String(inputBuffer);
2336
+ this.valueBlock.value = Convert_1.ToUtf8String(inputBuffer);
2337
2337
  }
2338
2338
  catch (ex) {
2339
2339
  this.warnings.push(`Error during "decodeURIComponent": ${ex}, using raw string`);
2340
- this.valueBlock.value = build.Convert.ToBinary(inputBuffer);
2340
+ this.valueBlock.value = Convert_1.ToBinary(inputBuffer);
2341
2341
  }
2342
2342
  }
2343
2343
  fromString(inputString) {
2344
- this.valueBlock.valueHexView = new Uint8Array(build.Convert.FromUtf8String(inputString));
2344
+ this.valueBlock.valueHexView = new Uint8Array(Convert_1.FromUtf8String(inputString));
2345
2345
  this.valueBlock.value = inputString;
2346
2346
  }
2347
2347
  }
@@ -2363,12 +2363,12 @@ Utf8String.NAME = "UTF8String";
2363
2363
 
2364
2364
  class LocalBmpStringValueBlock extends LocalSimpleStringBlock {
2365
2365
  fromBuffer(inputBuffer) {
2366
- this.valueBlock.value = build.Convert.ToUtf16String(inputBuffer);
2367
- this.valueBlock.valueHexView = build.BufferSourceConverter.toUint8Array(inputBuffer);
2366
+ this.valueBlock.value = Convert_1.ToUtf16String(inputBuffer);
2367
+ this.valueBlock.valueHexView = BufferSourceConverter_1.toUint8Array(inputBuffer);
2368
2368
  }
2369
2369
  fromString(inputString) {
2370
2370
  this.valueBlock.value = inputString;
2371
- this.valueBlock.valueHexView = new Uint8Array(build.Convert.FromUtf16String(inputString));
2371
+ this.valueBlock.valueHexView = new Uint8Array(Convert_1.FromUtf16String(inputString));
2372
2372
  }
2373
2373
  }
2374
2374
  LocalBmpStringValueBlock.NAME = "BmpStringValueBlock";
@@ -2580,7 +2580,7 @@ class UTCTime extends VisibleString {
2580
2580
  this.idBlock.tagNumber = 23;
2581
2581
  }
2582
2582
  fromBuffer(inputBuffer) {
2583
- this.fromString(String.fromCharCode.apply(null, build.BufferSourceConverter.toUint8Array(inputBuffer)));
2583
+ this.fromString(String.fromCharCode.apply(null, BufferSourceConverter_1.toUint8Array(inputBuffer)));
2584
2584
  }
2585
2585
  toBuffer() {
2586
2586
  const str = this.toString();
@@ -2930,17 +2930,17 @@ class Repeated extends Any {
2930
2930
 
2931
2931
  class RawData {
2932
2932
  constructor({ data = EMPTY_VIEW } = {}) {
2933
- this.dataView = build.BufferSourceConverter.toUint8Array(data);
2933
+ this.dataView = BufferSourceConverter_1.toUint8Array(data);
2934
2934
  }
2935
2935
  get data() {
2936
2936
  return this.dataView.slice().buffer;
2937
2937
  }
2938
2938
  set data(value) {
2939
- this.dataView = build.BufferSourceConverter.toUint8Array(value);
2939
+ this.dataView = BufferSourceConverter_1.toUint8Array(value);
2940
2940
  }
2941
2941
  fromBER(inputBuffer, inputOffset, inputLength) {
2942
2942
  const endLength = inputOffset + inputLength;
2943
- this.dataView = build.BufferSourceConverter.toUint8Array(inputBuffer).subarray(inputOffset, endLength);
2943
+ this.dataView = BufferSourceConverter_1.toUint8Array(inputBuffer).subarray(inputOffset, endLength);
2944
2944
  return endLength;
2945
2945
  }
2946
2946
  toBER(sizeOnly) {
@@ -3259,7 +3259,7 @@ function verifySchema(inputBuffer, inputSchema) {
3259
3259
  result: { error: "Wrong ASN.1 schema type" }
3260
3260
  };
3261
3261
  }
3262
- const asn1 = localFromBER(build.BufferSourceConverter.toUint8Array(inputBuffer));
3262
+ const asn1 = localFromBER(BufferSourceConverter_1.toUint8Array(inputBuffer));
3263
3263
  if (asn1.offset === -1) {
3264
3264
  return {
3265
3265
  verified: false,
@@ -3362,9 +3362,9 @@ class BitString {
3362
3362
  if (typeof params === "number") {
3363
3363
  this.fromNumber(params);
3364
3364
  }
3365
- else if (build.BufferSourceConverter.isBufferSource(params)) {
3365
+ else if (BufferSourceConverter_1.isBufferSource(params)) {
3366
3366
  this.unusedBits = unusedBits;
3367
- this.value = build.BufferSourceConverter.toArrayBuffer(params);
3367
+ this.value = BufferSourceConverter_1.toArrayBuffer(params);
3368
3368
  }
3369
3369
  else {
3370
3370
  throw TypeError("Unsupported type of 'params' argument for BitString");
@@ -3413,13 +3413,19 @@ class BitString {
3413
3413
  }
3414
3414
 
3415
3415
  class OctetString {
3416
+ get byteLength() {
3417
+ return this.buffer.byteLength;
3418
+ }
3419
+ get byteOffset() {
3420
+ return 0;
3421
+ }
3416
3422
  constructor(param) {
3417
3423
  if (typeof param === "number") {
3418
3424
  this.buffer = new ArrayBuffer(param);
3419
3425
  }
3420
3426
  else {
3421
- if (build.BufferSourceConverter.isBufferSource(param)) {
3422
- this.buffer = build.BufferSourceConverter.toArrayBuffer(param);
3427
+ if (BufferSourceConverter_1.isBufferSource(param)) {
3428
+ this.buffer = BufferSourceConverter_1.toArrayBuffer(param);
3423
3429
  }
3424
3430
  else if (Array.isArray(param)) {
3425
3431
  this.buffer = new Uint8Array(param);
@@ -3429,12 +3435,6 @@ class OctetString {
3429
3435
  }
3430
3436
  }
3431
3437
  }
3432
- get byteLength() {
3433
- return this.buffer.byteLength;
3434
- }
3435
- get byteOffset() {
3436
- return 0;
3437
- }
3438
3438
  fromASN(asn) {
3439
3439
  if (!(asn instanceof OctetString$1)) {
3440
3440
  throw new TypeError("Argument 'asn' is not instance of ASN.1 OctetString");
@@ -4121,8 +4121,8 @@ class AsnConvert {
4121
4121
  return AsnParser.parse(data, target);
4122
4122
  }
4123
4123
  static toString(data) {
4124
- const buf = build.BufferSourceConverter.isBufferSource(data)
4125
- ? build.BufferSourceConverter.toArrayBuffer(data)
4124
+ const buf = BufferSourceConverter_1.isBufferSource(data)
4125
+ ? BufferSourceConverter_1.toArrayBuffer(data)
4126
4126
  : AsnConvert.serialize(data);
4127
4127
  const asn = fromBER(buf);
4128
4128
  if (asn.offset === -1) {
@@ -4152,6 +4152,27 @@ function __decorate(decorators, target, key, desc) {
4152
4152
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4153
4153
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
4154
4154
  return c > 3 && r && Object.defineProperty(target, key, r), r;
4155
+ }
4156
+
4157
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
4158
+ var e = new Error(message);
4159
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
4160
+ };
4161
+
4162
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4163
+
4164
+ function createCommonjsModule(fn, basedir, module) {
4165
+ return module = {
4166
+ path: basedir,
4167
+ exports: {},
4168
+ require: function (path, base) {
4169
+ return commonjsRequire();
4170
+ }
4171
+ }, fn(module, module.exports), module.exports;
4172
+ }
4173
+
4174
+ function commonjsRequire () {
4175
+ throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
4155
4176
  }
4156
4177
 
4157
4178
  var ipaddr = createCommonjsModule(function (module) {
@@ -4359,6 +4380,7 @@ var ipaddr = createCommonjsModule(function (module) {
4359
4380
  [new IPv4([192, 0, 0, 0]), 24],
4360
4381
  [new IPv4([192, 0, 2, 0]), 24],
4361
4382
  [new IPv4([192, 88, 99, 0]), 24],
4383
+ [new IPv4([198, 18, 0, 0]), 15],
4362
4384
  [new IPv4([198, 51, 100, 0]), 24],
4363
4385
  [new IPv4([203, 0, 113, 0]), 24],
4364
4386
  [new IPv4([240, 0, 0, 0]), 4]
@@ -4701,7 +4723,12 @@ var ipaddr = createCommonjsModule(function (module) {
4701
4723
  // RFC6052, RFC6146
4702
4724
  teredo: [new IPv6([0x2001, 0, 0, 0, 0, 0, 0, 0]), 32],
4703
4725
  // RFC4291
4704
- reserved: [[new IPv6([0x2001, 0xdb8, 0, 0, 0, 0, 0, 0]), 32]]
4726
+ reserved: [[new IPv6([0x2001, 0xdb8, 0, 0, 0, 0, 0, 0]), 32]],
4727
+ benchmarking: [new IPv6([0x2001, 0x2, 0, 0, 0, 0, 0, 0]), 48],
4728
+ amt: [new IPv6([0x2001, 0x3, 0, 0, 0, 0, 0, 0]), 32],
4729
+ as112v6: [new IPv6([0x2001, 0x4, 0x112, 0, 0, 0, 0, 0]), 48],
4730
+ deprecated: [new IPv6([0x2001, 0x10, 0, 0, 0, 0, 0, 0]), 28],
4731
+ orchid2: [new IPv6([0x2001, 0x20, 0, 0, 0, 0, 0, 0]), 28]
4705
4732
  };
4706
4733
 
4707
4734
  // Checks if this address is an IPv4-mapped IPv6 address.
@@ -4886,11 +4913,9 @@ var ipaddr = createCommonjsModule(function (module) {
4886
4913
 
4887
4914
  // Returns the address in compact, human-readable format like
4888
4915
  // 2001:db8:8:66::1
4889
- //
4890
- // Deprecated: use toRFC5952String() instead.
4916
+ // Calls toRFC5952String under the hood.
4891
4917
  IPv6.prototype.toString = function () {
4892
- // Replace the first sequence of 1 or more '0' parts with '::'
4893
- return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/, '::');
4918
+ return this.toRFC5952String();
4894
4919
  };
4895
4920
 
4896
4921
  return IPv6;
@@ -5175,7 +5200,7 @@ class IpConverter {
5175
5200
  const addr = ipaddr.fromByteArray(Array.from(uint8));
5176
5201
  return addr.toString();
5177
5202
  }
5178
- return this.decodeIP(build.Convert.ToHex(buf));
5203
+ return this.decodeIP(Convert_1.ToHex(buf));
5179
5204
  }
5180
5205
  static fromString(text) {
5181
5206
  const addr = ipaddr.parse(text);
@@ -5217,7 +5242,7 @@ let AttributeValue = class AttributeValue extends DirectoryString {
5217
5242
  Object.assign(this, params);
5218
5243
  }
5219
5244
  toString() {
5220
- return this.ia5String || (this.anyValue ? build.Convert.ToHex(this.anyValue) : super.toString());
5245
+ return this.ia5String || (this.anyValue ? Convert_1.ToHex(this.anyValue) : super.toString());
5221
5246
  }
5222
5247
  };
5223
5248
  __decorate([
@@ -6011,7 +6036,7 @@ class AlgorithmIdentifier {
6011
6036
  return data instanceof AlgorithmIdentifier
6012
6037
  && data.algorithm == this.algorithm
6013
6038
  && ((data.parameters && this.parameters
6014
- && build.isEqual(data.parameters, this.parameters))
6039
+ && isEqual_1(data.parameters, this.parameters))
6015
6040
  ||
6016
6041
  (data.parameters === this.parameters));
6017
6042
  }
@@ -6130,16 +6155,16 @@ Extensions$1 = Extensions_1 = __decorate([
6130
6155
  AsnType({ type: AsnTypeTypes.Sequence, itemType: Extension$1 })
6131
6156
  ], Extensions$1);
6132
6157
 
6133
- var Version$3;
6158
+ var Version$4;
6134
6159
  (function (Version) {
6135
6160
  Version[Version["v1"] = 0] = "v1";
6136
6161
  Version[Version["v2"] = 1] = "v2";
6137
6162
  Version[Version["v3"] = 2] = "v3";
6138
- })(Version$3 || (Version$3 = {}));
6163
+ })(Version$4 || (Version$4 = {}));
6139
6164
 
6140
6165
  class TBSCertificate {
6141
6166
  constructor(params = {}) {
6142
- this.version = Version$3.v1;
6167
+ this.version = Version$4.v1;
6143
6168
  this.serialNumber = new ArrayBuffer(0);
6144
6169
  this.signature = new AlgorithmIdentifier();
6145
6170
  this.issuer = new Name$1();
@@ -6153,7 +6178,7 @@ __decorate([
6153
6178
  AsnProp({
6154
6179
  type: AsnPropTypes.Integer,
6155
6180
  context: 0,
6156
- defaultValue: Version$3.v1,
6181
+ defaultValue: Version$4.v1,
6157
6182
  })
6158
6183
  ], TBSCertificate.prototype, "version", void 0);
6159
6184
  __decorate([
@@ -6583,10 +6608,10 @@ __decorate([
6583
6608
  ], EncryptedPrivateKeyInfo$1.prototype, "encryptedData", void 0);
6584
6609
 
6585
6610
  var Attributes_1$1;
6586
- var Version$2;
6611
+ var Version$3;
6587
6612
  (function (Version) {
6588
6613
  Version[Version["v1"] = 0] = "v1";
6589
- })(Version$2 || (Version$2 = {}));
6614
+ })(Version$3 || (Version$3 = {}));
6590
6615
  class PrivateKey extends OctetString {
6591
6616
  }
6592
6617
  let Attributes$1 = Attributes_1$1 = class Attributes extends AsnArray {
@@ -6600,7 +6625,7 @@ Attributes$1 = Attributes_1$1 = __decorate([
6600
6625
  ], Attributes$1);
6601
6626
  class PrivateKeyInfo$1 {
6602
6627
  constructor(params = {}) {
6603
- this.version = Version$2.v1;
6628
+ this.version = Version$3.v1;
6604
6629
  this.privateKeyAlgorithm = new AlgorithmIdentifier();
6605
6630
  this.privateKey = new PrivateKey();
6606
6631
  Object.assign(this, params);
@@ -6620,11 +6645,11 @@ __decorate([
6620
6645
  ], PrivateKeyInfo$1.prototype, "attributes", void 0);
6621
6646
 
6622
6647
  var AsymmetricKeyPackage_1;
6623
- var Version$1;
6648
+ var Version$2;
6624
6649
  (function (Version) {
6625
6650
  Version[Version["v1"] = 0] = "v1";
6626
6651
  Version[Version["v2"] = 1] = "v2";
6627
- })(Version$1 || (Version$1 = {}));
6652
+ })(Version$2 || (Version$2 = {}));
6628
6653
  let PrivateKeyAlgorithmIdentifier = class PrivateKeyAlgorithmIdentifier extends AlgorithmIdentifier {
6629
6654
  };
6630
6655
  PrivateKeyAlgorithmIdentifier = __decorate([
@@ -6632,7 +6657,7 @@ PrivateKeyAlgorithmIdentifier = __decorate([
6632
6657
  ], PrivateKeyAlgorithmIdentifier);
6633
6658
  let OneAsymmetricKey = class OneAsymmetricKey {
6634
6659
  constructor() {
6635
- this.version = Version$1.v1;
6660
+ this.version = Version$2.v1;
6636
6661
  this.privateKeyAlgorithm = new AlgorithmIdentifier();
6637
6662
  this.privateKey = new ArrayBuffer(0);
6638
6663
  }
@@ -9190,6 +9215,7 @@ const OIDs = {
9190
9215
  '1.3.6.1.4.1.4329.7': 'Siemens Public Key Infrastructure',
9191
9216
  '1.3.6.1.4.1.52266.1': 'Legal Entity Identifier',
9192
9217
  '1.3.6.1.4.1.52266.2': 'Role',
9218
+ '1.3.6.1.4.1.11129.2.1.17': 'Android Key Attestation',
9193
9219
  // https://ec.europa.eu/futurium/sites/futurium/files/ntqwac_pilot.pdf
9194
9220
  '0.4.0.9496.1': 'Domain Name Beneficiary',
9195
9221
  '0.4.0.9496.2': 'DNB Legal representative',
@@ -9227,6 +9253,18 @@ function getStringByOID(value) {
9227
9253
  return value;
9228
9254
  }
9229
9255
 
9256
+ /**
9257
+ * @license
9258
+ * Copyright (c) Peculiar Ventures, LLC.
9259
+ *
9260
+ * This source code is licensed under the MIT license found in the
9261
+ * LICENSE file in the root directory of this source tree.
9262
+ */
9263
+ function camelCaseToWords(value) {
9264
+ const result = value.replace(/([A-Z])/g, ' $1');
9265
+ return result.charAt(0).toUpperCase() + result.slice(1);
9266
+ }
9267
+
9230
9268
  /**
9231
9269
  * @license
9232
9270
  * Copyright (c) Peculiar Ventures, LLC.
@@ -9249,7 +9287,7 @@ var _Name_asn;
9249
9287
  class Name {
9250
9288
  constructor(data) {
9251
9289
  _Name_asn.set(this, new Name$1());
9252
- if (build.BufferSourceConverter.isBufferSource(data)) {
9290
+ if (BufferSourceConverter_1.isBufferSource(data)) {
9253
9291
  __classPrivateFieldSet$1(this, _Name_asn, AsnParser.parse(data, Name$1), "f");
9254
9292
  }
9255
9293
  else {
@@ -9457,8 +9495,8 @@ let CaVersion = class CaVersion {
9457
9495
  data.set(new Uint8Array(this.value), 4 - this.value.byteLength);
9458
9496
  }
9459
9497
  return {
9460
- keyIndex: parseInt(build.Convert.ToHex(data.slice(0, 2)), 16),
9461
- certificateIndex: parseInt(build.Convert.ToHex(data.slice(2)), 16),
9498
+ keyIndex: parseInt(Convert_1.ToHex(data.slice(0, 2)), 16),
9499
+ certificateIndex: parseInt(Convert_1.ToHex(data.slice(2)), 16),
9462
9500
  };
9463
9501
  }
9464
9502
  };
@@ -9804,11 +9842,6 @@ Lei = __decorate([
9804
9842
  AsnType({ type: AsnTypeTypes.Sequence })
9805
9843
  ], Lei);
9806
9844
  let BaseLeiChoice = class BaseLeiChoice {
9807
- constructor(value) {
9808
- if (value) {
9809
- this.text = value;
9810
- }
9811
- }
9812
9845
  get text() {
9813
9846
  if (this.bmpString !== undefined) {
9814
9847
  return this.bmpString;
@@ -9830,6 +9863,11 @@ let BaseLeiChoice = class BaseLeiChoice {
9830
9863
  set text(value) {
9831
9864
  this.printableString = value;
9832
9865
  }
9866
+ constructor(value) {
9867
+ if (value) {
9868
+ this.text = value;
9869
+ }
9870
+ }
9833
9871
  };
9834
9872
  __decorate([
9835
9873
  AsnProp({ type: AsnPropTypes.IA5String })
@@ -9874,13 +9912,13 @@ LeiRole = __decorate([
9874
9912
  ], LeiRole);
9875
9913
 
9876
9914
  class ByteStream {
9877
- constructor(bytes) {
9878
- this.offset = 0;
9879
- this.view = build.BufferSourceConverter.toUint8Array(bytes);
9880
- }
9881
9915
  get position() {
9882
9916
  return this.offset;
9883
9917
  }
9918
+ constructor(bytes) {
9919
+ this.offset = 0;
9920
+ this.view = BufferSourceConverter_1.toUint8Array(bytes);
9921
+ }
9884
9922
  read(size = 1) {
9885
9923
  const res = this.view.slice(this.offset, this.offset + size);
9886
9924
  this.offset = this.offset + res.length;
@@ -9895,7 +9933,7 @@ class ByteStream {
9895
9933
  }
9896
9934
  readNumber(size) {
9897
9935
  const bytes = this.read(size);
9898
- const hex = build.Convert.ToHex(bytes);
9936
+ const hex = Convert_1.ToHex(bytes);
9899
9937
  return parseInt(hex, 16);
9900
9938
  }
9901
9939
  readEnd() {
@@ -9908,7 +9946,7 @@ class ByteStream {
9908
9946
 
9909
9947
  class Structure {
9910
9948
  static createStream(bytes) {
9911
- const view = build.BufferSourceConverter.toUint8Array(bytes);
9949
+ const view = BufferSourceConverter_1.toUint8Array(bytes);
9912
9950
  return new ByteStream(view);
9913
9951
  }
9914
9952
  }
@@ -9952,7 +9990,7 @@ class SignedCertificateTimestamp extends Structure {
9952
9990
  parse(stream) {
9953
9991
  this.version = stream.readByte();
9954
9992
  stream.read(2);
9955
- this.logId = build.BufferSourceConverter.toArrayBuffer(stream.read(32));
9993
+ this.logId = BufferSourceConverter_1.toArrayBuffer(stream.read(32));
9956
9994
  this.timestamp = new Date(stream.readNumber(8));
9957
9995
  const extLen = stream.readNumber(2);
9958
9996
  this.extensions = stream.read(extLen).buffer;
@@ -9963,12 +10001,12 @@ class SignedCertificateTimestamp extends Structure {
9963
10001
  toJSON() {
9964
10002
  return {
9965
10003
  version: this.version,
9966
- logId: build.Convert.ToHex(this.logId),
10004
+ logId: Convert_1.ToHex(this.logId),
9967
10005
  timestamp: this.timestamp,
9968
- extensions: build.Convert.ToBase64(this.extensions),
10006
+ extensions: Convert_1.ToBase64(this.extensions),
9969
10007
  hashAlgorithm: HashAlgorithm[this.hashAlgorithm] || "undefined",
9970
10008
  signatureAlgorithm: SignatureAlgorithm[this.signatureAlgorithm] || "undefined",
9971
- signature: build.Convert.ToBase64(this.signature),
10009
+ signature: Convert_1.ToBase64(this.signature),
9972
10010
  };
9973
10011
  }
9974
10012
  }
@@ -9994,15 +10032,15 @@ class CertificateTransparency extends OctetString {
9994
10032
  }
9995
10033
  }
9996
10034
 
9997
- var Version;
10035
+ var Version$1;
9998
10036
  (function (Version) {
9999
10037
  Version[Version["v1"] = 1] = "v1";
10000
- })(Version || (Version = {}));
10038
+ })(Version$1 || (Version$1 = {}));
10001
10039
 
10002
10040
  const id_adbe_archiveRevInfo = "1.2.840.113583.1.1.9.2";
10003
10041
  class ArchiveRevInfo {
10004
10042
  constructor(params = {}) {
10005
- this.version = Version.v1;
10043
+ this.version = Version$1.v1;
10006
10044
  Object.assign(this, params);
10007
10045
  }
10008
10046
  }
@@ -10013,7 +10051,7 @@ __decorate([
10013
10051
  const id_adbe_timestamp = "1.2.840.113583.1.1.9.1";
10014
10052
  class Timestamp {
10015
10053
  constructor(params = {}) {
10016
- this.version = Version.v1;
10054
+ this.version = Version$1.v1;
10017
10055
  this.location = new GeneralName();
10018
10056
  this.requiresAuth = false;
10019
10057
  Object.assign(this, params);
@@ -10358,6 +10396,302 @@ TNAuthorizationList = TNAuthorizationList_1 = __decorate([
10358
10396
  })
10359
10397
  ], TNAuthorizationList);
10360
10398
 
10399
+ var IntegerSet_1;
10400
+ const id_ce_keyDescription = "1.3.6.1.4.1.11129.2.1.17";
10401
+ var VerifiedBootState;
10402
+ (function (VerifiedBootState) {
10403
+ VerifiedBootState[VerifiedBootState["verified"] = 0] = "verified";
10404
+ VerifiedBootState[VerifiedBootState["selfSigned"] = 1] = "selfSigned";
10405
+ VerifiedBootState[VerifiedBootState["unverified"] = 2] = "unverified";
10406
+ VerifiedBootState[VerifiedBootState["failed"] = 3] = "failed";
10407
+ })(VerifiedBootState || (VerifiedBootState = {}));
10408
+ class RootOfTrust {
10409
+ constructor(params = {}) {
10410
+ this.verifiedBootKey = new OctetString();
10411
+ this.deviceLocked = false;
10412
+ this.verifiedBootState = VerifiedBootState.verified;
10413
+ Object.assign(this, params);
10414
+ }
10415
+ }
10416
+ __decorate([
10417
+ AsnProp({ type: OctetString })
10418
+ ], RootOfTrust.prototype, "verifiedBootKey", void 0);
10419
+ __decorate([
10420
+ AsnProp({ type: AsnPropTypes.Boolean })
10421
+ ], RootOfTrust.prototype, "deviceLocked", void 0);
10422
+ __decorate([
10423
+ AsnProp({ type: AsnPropTypes.Enumerated })
10424
+ ], RootOfTrust.prototype, "verifiedBootState", void 0);
10425
+ __decorate([
10426
+ AsnProp({ type: OctetString, optional: true })
10427
+ ], RootOfTrust.prototype, "verifiedBootHash", void 0);
10428
+ let IntegerSet = IntegerSet_1 = class IntegerSet extends AsnArray {
10429
+ constructor(items) {
10430
+ super(items);
10431
+ Object.setPrototypeOf(this, IntegerSet_1.prototype);
10432
+ }
10433
+ };
10434
+ IntegerSet = IntegerSet_1 = __decorate([
10435
+ AsnType({ type: AsnTypeTypes.Set, itemType: AsnPropTypes.Integer })
10436
+ ], IntegerSet);
10437
+ class AuthorizationList {
10438
+ constructor(params = {}) {
10439
+ Object.assign(this, params);
10440
+ }
10441
+ }
10442
+ __decorate([
10443
+ AsnProp({ context: 1, type: IntegerSet, optional: true })
10444
+ ], AuthorizationList.prototype, "purpose", void 0);
10445
+ __decorate([
10446
+ AsnProp({ context: 2, type: AsnPropTypes.Integer, optional: true })
10447
+ ], AuthorizationList.prototype, "algorithm", void 0);
10448
+ __decorate([
10449
+ AsnProp({ context: 3, type: AsnPropTypes.Integer, optional: true })
10450
+ ], AuthorizationList.prototype, "keySize", void 0);
10451
+ __decorate([
10452
+ AsnProp({ context: 5, type: IntegerSet, optional: true })
10453
+ ], AuthorizationList.prototype, "digest", void 0);
10454
+ __decorate([
10455
+ AsnProp({ context: 6, type: IntegerSet, optional: true })
10456
+ ], AuthorizationList.prototype, "padding", void 0);
10457
+ __decorate([
10458
+ AsnProp({ context: 10, type: AsnPropTypes.Integer, optional: true })
10459
+ ], AuthorizationList.prototype, "ecCurve", void 0);
10460
+ __decorate([
10461
+ AsnProp({ context: 200, type: AsnPropTypes.Integer, optional: true })
10462
+ ], AuthorizationList.prototype, "rsaPublicExponent", void 0);
10463
+ __decorate([
10464
+ AsnProp({ context: 303, type: AsnPropTypes.Null, optional: true })
10465
+ ], AuthorizationList.prototype, "rollbackResistance", void 0);
10466
+ __decorate([
10467
+ AsnProp({ context: 305, type: AsnPropTypes.Null, optional: true })
10468
+ ], AuthorizationList.prototype, "earlyBootOnly", void 0);
10469
+ __decorate([
10470
+ AsnProp({ context: 400, type: AsnPropTypes.Integer, optional: true })
10471
+ ], AuthorizationList.prototype, "activeDateTime", void 0);
10472
+ __decorate([
10473
+ AsnProp({ context: 401, type: AsnPropTypes.Integer, optional: true })
10474
+ ], AuthorizationList.prototype, "originationExpireDateTime", void 0);
10475
+ __decorate([
10476
+ AsnProp({ context: 402, type: AsnPropTypes.Integer, optional: true })
10477
+ ], AuthorizationList.prototype, "usageExpireDateTime", void 0);
10478
+ __decorate([
10479
+ AsnProp({ context: 503, type: AsnPropTypes.Null, optional: true })
10480
+ ], AuthorizationList.prototype, "noAuthRequired", void 0);
10481
+ __decorate([
10482
+ AsnProp({ context: 504, type: AsnPropTypes.Integer, optional: true })
10483
+ ], AuthorizationList.prototype, "userAuthType", void 0);
10484
+ __decorate([
10485
+ AsnProp({ context: 505, type: AsnPropTypes.Integer, optional: true })
10486
+ ], AuthorizationList.prototype, "authTimeout", void 0);
10487
+ __decorate([
10488
+ AsnProp({ context: 506, type: AsnPropTypes.Null, optional: true })
10489
+ ], AuthorizationList.prototype, "allowWhileOnBody", void 0);
10490
+ __decorate([
10491
+ AsnProp({ context: 507, type: AsnPropTypes.Null, optional: true })
10492
+ ], AuthorizationList.prototype, "trustedUserPresenceRequired", void 0);
10493
+ __decorate([
10494
+ AsnProp({ context: 508, type: AsnPropTypes.Null, optional: true })
10495
+ ], AuthorizationList.prototype, "trustedConfirmationRequired", void 0);
10496
+ __decorate([
10497
+ AsnProp({ context: 509, type: AsnPropTypes.Null, optional: true })
10498
+ ], AuthorizationList.prototype, "unlockedDeviceRequired", void 0);
10499
+ __decorate([
10500
+ AsnProp({ context: 600, type: AsnPropTypes.Null, optional: true })
10501
+ ], AuthorizationList.prototype, "allApplications", void 0);
10502
+ __decorate([
10503
+ AsnProp({ context: 601, type: OctetString, optional: true })
10504
+ ], AuthorizationList.prototype, "applicationId", void 0);
10505
+ __decorate([
10506
+ AsnProp({ context: 701, type: AsnPropTypes.Integer, optional: true })
10507
+ ], AuthorizationList.prototype, "creationDateTime", void 0);
10508
+ __decorate([
10509
+ AsnProp({ context: 702, type: AsnPropTypes.Integer, optional: true })
10510
+ ], AuthorizationList.prototype, "origin", void 0);
10511
+ __decorate([
10512
+ AsnProp({ context: 703, type: AsnPropTypes.Null, optional: true })
10513
+ ], AuthorizationList.prototype, "rollbackResistant", void 0);
10514
+ __decorate([
10515
+ AsnProp({ context: 704, type: RootOfTrust, optional: true })
10516
+ ], AuthorizationList.prototype, "rootOfTrust", void 0);
10517
+ __decorate([
10518
+ AsnProp({ context: 705, type: AsnPropTypes.Integer, optional: true })
10519
+ ], AuthorizationList.prototype, "osVersion", void 0);
10520
+ __decorate([
10521
+ AsnProp({ context: 706, type: AsnPropTypes.Integer, optional: true })
10522
+ ], AuthorizationList.prototype, "osPatchLevel", void 0);
10523
+ __decorate([
10524
+ AsnProp({ context: 709, type: OctetString, optional: true })
10525
+ ], AuthorizationList.prototype, "attestationApplicationId", void 0);
10526
+ __decorate([
10527
+ AsnProp({ context: 710, type: OctetString, optional: true })
10528
+ ], AuthorizationList.prototype, "attestationIdBrand", void 0);
10529
+ __decorate([
10530
+ AsnProp({ context: 711, type: OctetString, optional: true })
10531
+ ], AuthorizationList.prototype, "attestationIdDevice", void 0);
10532
+ __decorate([
10533
+ AsnProp({ context: 712, type: OctetString, optional: true })
10534
+ ], AuthorizationList.prototype, "attestationIdProduct", void 0);
10535
+ __decorate([
10536
+ AsnProp({ context: 713, type: OctetString, optional: true })
10537
+ ], AuthorizationList.prototype, "attestationIdSerial", void 0);
10538
+ __decorate([
10539
+ AsnProp({ context: 714, type: OctetString, optional: true })
10540
+ ], AuthorizationList.prototype, "attestationIdImei", void 0);
10541
+ __decorate([
10542
+ AsnProp({ context: 715, type: OctetString, optional: true })
10543
+ ], AuthorizationList.prototype, "attestationIdMeid", void 0);
10544
+ __decorate([
10545
+ AsnProp({ context: 716, type: OctetString, optional: true })
10546
+ ], AuthorizationList.prototype, "attestationIdManufacturer", void 0);
10547
+ __decorate([
10548
+ AsnProp({ context: 717, type: OctetString, optional: true })
10549
+ ], AuthorizationList.prototype, "attestationIdModel", void 0);
10550
+ __decorate([
10551
+ AsnProp({ context: 718, type: AsnPropTypes.Integer, optional: true })
10552
+ ], AuthorizationList.prototype, "vendorPatchLevel", void 0);
10553
+ __decorate([
10554
+ AsnProp({ context: 719, type: AsnPropTypes.Integer, optional: true })
10555
+ ], AuthorizationList.prototype, "bootPatchLevel", void 0);
10556
+ __decorate([
10557
+ AsnProp({ context: 720, type: AsnPropTypes.Null, optional: true })
10558
+ ], AuthorizationList.prototype, "deviceUniqueAttestation", void 0);
10559
+ var SecurityLevel;
10560
+ (function (SecurityLevel) {
10561
+ SecurityLevel[SecurityLevel["software"] = 0] = "software";
10562
+ SecurityLevel[SecurityLevel["trustedEnvironment"] = 1] = "trustedEnvironment";
10563
+ SecurityLevel[SecurityLevel["strongBox"] = 2] = "strongBox";
10564
+ })(SecurityLevel || (SecurityLevel = {}));
10565
+ var Version;
10566
+ (function (Version) {
10567
+ Version[Version["KM2"] = 1] = "KM2";
10568
+ Version[Version["KM3"] = 2] = "KM3";
10569
+ Version[Version["KM4"] = 3] = "KM4";
10570
+ Version[Version["KM4_1"] = 4] = "KM4_1";
10571
+ Version[Version["keyMint1"] = 100] = "keyMint1";
10572
+ Version[Version["keyMint2"] = 200] = "keyMint2";
10573
+ })(Version || (Version = {}));
10574
+ class KeyDescription {
10575
+ constructor(params = {}) {
10576
+ this.attestationVersion = Version.KM4;
10577
+ this.attestationSecurityLevel = SecurityLevel.software;
10578
+ this.keymasterVersion = 0;
10579
+ this.keymasterSecurityLevel = SecurityLevel.software;
10580
+ this.attestationChallenge = new OctetString();
10581
+ this.uniqueId = new OctetString();
10582
+ this.softwareEnforced = new AuthorizationList();
10583
+ this.teeEnforced = new AuthorizationList();
10584
+ Object.assign(this, params);
10585
+ }
10586
+ }
10587
+ __decorate([
10588
+ AsnProp({ type: AsnPropTypes.Integer })
10589
+ ], KeyDescription.prototype, "attestationVersion", void 0);
10590
+ __decorate([
10591
+ AsnProp({ type: AsnPropTypes.Enumerated })
10592
+ ], KeyDescription.prototype, "attestationSecurityLevel", void 0);
10593
+ __decorate([
10594
+ AsnProp({ type: AsnPropTypes.Integer })
10595
+ ], KeyDescription.prototype, "keymasterVersion", void 0);
10596
+ __decorate([
10597
+ AsnProp({ type: AsnPropTypes.Enumerated })
10598
+ ], KeyDescription.prototype, "keymasterSecurityLevel", void 0);
10599
+ __decorate([
10600
+ AsnProp({ type: OctetString })
10601
+ ], KeyDescription.prototype, "attestationChallenge", void 0);
10602
+ __decorate([
10603
+ AsnProp({ type: OctetString })
10604
+ ], KeyDescription.prototype, "uniqueId", void 0);
10605
+ __decorate([
10606
+ AsnProp({ type: AuthorizationList })
10607
+ ], KeyDescription.prototype, "softwareEnforced", void 0);
10608
+ __decorate([
10609
+ AsnProp({ type: AuthorizationList })
10610
+ ], KeyDescription.prototype, "teeEnforced", void 0);
10611
+
10612
+ var NonStandardAuthorizationList_1;
10613
+ let NonStandardAuthorization = class NonStandardAuthorization extends AuthorizationList {
10614
+ };
10615
+ NonStandardAuthorization = __decorate([
10616
+ AsnType({ type: AsnTypeTypes.Choice })
10617
+ ], NonStandardAuthorization);
10618
+ let NonStandardAuthorizationList = NonStandardAuthorizationList_1 = class NonStandardAuthorizationList extends AsnArray {
10619
+ constructor(items) {
10620
+ super(items);
10621
+ Object.setPrototypeOf(this, NonStandardAuthorizationList_1.prototype);
10622
+ }
10623
+ findProperty(key) {
10624
+ const prop = this.find((o => key in o));
10625
+ if (prop) {
10626
+ return prop[key];
10627
+ }
10628
+ return undefined;
10629
+ }
10630
+ };
10631
+ NonStandardAuthorizationList = NonStandardAuthorizationList_1 = __decorate([
10632
+ AsnType({ type: AsnTypeTypes.Sequence, itemType: NonStandardAuthorization })
10633
+ ], NonStandardAuthorizationList);
10634
+ class NonStandardKeyDescription {
10635
+ constructor(params = {}) {
10636
+ this.attestationVersion = Version.KM4;
10637
+ this.attestationSecurityLevel = SecurityLevel.software;
10638
+ this.keymasterVersion = 0;
10639
+ this.keymasterSecurityLevel = SecurityLevel.software;
10640
+ this.attestationChallenge = new OctetString();
10641
+ this.uniqueId = new OctetString();
10642
+ this.softwareEnforced = new NonStandardAuthorizationList();
10643
+ this.teeEnforced = new NonStandardAuthorizationList();
10644
+ Object.assign(this, params);
10645
+ }
10646
+ }
10647
+ __decorate([
10648
+ AsnProp({ type: AsnPropTypes.Integer })
10649
+ ], NonStandardKeyDescription.prototype, "attestationVersion", void 0);
10650
+ __decorate([
10651
+ AsnProp({ type: AsnPropTypes.Enumerated })
10652
+ ], NonStandardKeyDescription.prototype, "attestationSecurityLevel", void 0);
10653
+ __decorate([
10654
+ AsnProp({ type: AsnPropTypes.Integer })
10655
+ ], NonStandardKeyDescription.prototype, "keymasterVersion", void 0);
10656
+ __decorate([
10657
+ AsnProp({ type: AsnPropTypes.Enumerated })
10658
+ ], NonStandardKeyDescription.prototype, "keymasterSecurityLevel", void 0);
10659
+ __decorate([
10660
+ AsnProp({ type: OctetString })
10661
+ ], NonStandardKeyDescription.prototype, "attestationChallenge", void 0);
10662
+ __decorate([
10663
+ AsnProp({ type: OctetString })
10664
+ ], NonStandardKeyDescription.prototype, "uniqueId", void 0);
10665
+ __decorate([
10666
+ AsnProp({ type: NonStandardAuthorizationList })
10667
+ ], NonStandardKeyDescription.prototype, "softwareEnforced", void 0);
10668
+ __decorate([
10669
+ AsnProp({ type: NonStandardAuthorizationList })
10670
+ ], NonStandardKeyDescription.prototype, "teeEnforced", void 0);
10671
+
10672
+ class AttestationPackageInfo {
10673
+ constructor(params = {}) {
10674
+ Object.assign(this, params);
10675
+ }
10676
+ }
10677
+ __decorate([
10678
+ AsnProp({ type: AsnPropTypes.OctetString })
10679
+ ], AttestationPackageInfo.prototype, "packageName", void 0);
10680
+ __decorate([
10681
+ AsnProp({ type: AsnPropTypes.Integer })
10682
+ ], AttestationPackageInfo.prototype, "version", void 0);
10683
+ class AttestationApplicationId {
10684
+ constructor(params = {}) {
10685
+ Object.assign(this, params);
10686
+ }
10687
+ }
10688
+ __decorate([
10689
+ AsnProp({ type: AttestationPackageInfo, repeated: "set" })
10690
+ ], AttestationApplicationId.prototype, "packageInfos", void 0);
10691
+ __decorate([
10692
+ AsnProp({ type: AsnPropTypes.OctetString, repeated: "set" })
10693
+ ], AttestationApplicationId.prototype, "signatureDigests", void 0);
10694
+
10361
10695
  /**
10362
10696
  * @license
10363
10697
  * Copyright (c) Peculiar Ventures, LLC.
@@ -10390,7 +10724,7 @@ class AsnData {
10390
10724
  else {
10391
10725
  // raw, type
10392
10726
  __classPrivateFieldSet(this, _AsnData_asn, AsnConvert.parse(args[0], args[1]), "f");
10393
- __classPrivateFieldSet(this, _AsnData_raw, build.BufferSourceConverter.toArrayBuffer(args[0]), "f");
10727
+ __classPrivateFieldSet(this, _AsnData_raw, BufferSourceConverter_1.toArrayBuffer(args[0]), "f");
10394
10728
  }
10395
10729
  }
10396
10730
  get asn() {
@@ -10534,14 +10868,17 @@ class Extension extends AsnData {
10534
10868
  case id_ce_deltaCRLIndicator:
10535
10869
  this.value = AsnParser.parse(asnExtnValue, BaseCRLNumber);
10536
10870
  break;
10871
+ case id_ce_keyDescription:
10872
+ this.value = AsnParser.parse(asnExtnValue, NonStandardKeyDescription);
10873
+ break;
10537
10874
  default:
10538
10875
  console.warn(`Didn't detect parser for "${this.asn.extnID}" extension.`);
10539
- this.value = build.Convert.ToHex(asnExtnValue);
10876
+ this.value = Convert_1.ToHex(asnExtnValue);
10540
10877
  }
10541
10878
  }
10542
10879
  catch (error) {
10543
10880
  console.error(`Error parse "${this.asn.extnID}" extension:`, error.message);
10544
- this.value = build.Convert.ToHex(asnExtnValue);
10881
+ this.value = Convert_1.ToHex(asnExtnValue);
10545
10882
  }
10546
10883
  }
10547
10884
  }
@@ -10603,13 +10940,13 @@ const certificateRawToBuffer = (raw) => {
10603
10940
  const rawClarified = base64Clarify(raw);
10604
10941
  let buffer;
10605
10942
  if (isHex(rawClarified)) {
10606
- buffer = build.Convert.FromHex(rawClarified);
10943
+ buffer = Convert_1.FromHex(rawClarified);
10607
10944
  }
10608
10945
  else if (isBase64(rawClarified) || isPem(rawClarified)) {
10609
- buffer = build.Convert.FromBase64(rawClarified);
10946
+ buffer = Convert_1.FromBase64(rawClarified);
10610
10947
  }
10611
10948
  else {
10612
- buffer = build.Convert.FromBinary(raw);
10949
+ buffer = Convert_1.FromBinary(raw);
10613
10950
  }
10614
10951
  return buffer;
10615
10952
  };
@@ -11177,6 +11514,75 @@ WebGDPR = __decorate([
11177
11514
  AsnType({ type: AsnTypeTypes.Sequence })
11178
11515
  ], WebGDPR);
11179
11516
 
11517
+ class IssuerAndSerialNumber {
11518
+ constructor(params = {}) {
11519
+ this.issuer = new Name$1;
11520
+ this.serialNumber = new ArrayBuffer(0);
11521
+ Object.assign(this, params);
11522
+ }
11523
+ }
11524
+ __decorate([
11525
+ AsnProp({ type: Name$1 })
11526
+ ], IssuerAndSerialNumber.prototype, "issuer", void 0);
11527
+ __decorate([
11528
+ AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
11529
+ ], IssuerAndSerialNumber.prototype, "serialNumber", void 0);
11530
+
11531
+ let SignerIdentifier = class SignerIdentifier {
11532
+ constructor(params = {}) {
11533
+ Object.assign(this, params);
11534
+ }
11535
+ };
11536
+ __decorate([
11537
+ AsnProp({ type: SubjectKeyIdentifier, context: 0, implicit: true })
11538
+ ], SignerIdentifier.prototype, "subjectKeyIdentifier", void 0);
11539
+ __decorate([
11540
+ AsnProp({ type: IssuerAndSerialNumber })
11541
+ ], SignerIdentifier.prototype, "issuerAndSerialNumber", void 0);
11542
+ SignerIdentifier = __decorate([
11543
+ AsnType({ type: AsnTypeTypes.Choice })
11544
+ ], SignerIdentifier);
11545
+
11546
+ var CMSVersion;
11547
+ (function (CMSVersion) {
11548
+ CMSVersion[CMSVersion["v0"] = 0] = "v0";
11549
+ CMSVersion[CMSVersion["v1"] = 1] = "v1";
11550
+ CMSVersion[CMSVersion["v2"] = 2] = "v2";
11551
+ CMSVersion[CMSVersion["v3"] = 3] = "v3";
11552
+ CMSVersion[CMSVersion["v4"] = 4] = "v4";
11553
+ CMSVersion[CMSVersion["v5"] = 5] = "v5";
11554
+ })(CMSVersion || (CMSVersion = {}));
11555
+ let DigestAlgorithmIdentifier = class DigestAlgorithmIdentifier extends AlgorithmIdentifier {
11556
+ };
11557
+ DigestAlgorithmIdentifier = __decorate([
11558
+ AsnType({ type: AsnTypeTypes.Sequence })
11559
+ ], DigestAlgorithmIdentifier);
11560
+ let SignatureAlgorithmIdentifier = class SignatureAlgorithmIdentifier extends AlgorithmIdentifier {
11561
+ };
11562
+ SignatureAlgorithmIdentifier = __decorate([
11563
+ AsnType({ type: AsnTypeTypes.Sequence })
11564
+ ], SignatureAlgorithmIdentifier);
11565
+ let KeyEncryptionAlgorithmIdentifier = class KeyEncryptionAlgorithmIdentifier extends AlgorithmIdentifier {
11566
+ };
11567
+ KeyEncryptionAlgorithmIdentifier = __decorate([
11568
+ AsnType({ type: AsnTypeTypes.Sequence })
11569
+ ], KeyEncryptionAlgorithmIdentifier);
11570
+ let ContentEncryptionAlgorithmIdentifier = class ContentEncryptionAlgorithmIdentifier extends AlgorithmIdentifier {
11571
+ };
11572
+ ContentEncryptionAlgorithmIdentifier = __decorate([
11573
+ AsnType({ type: AsnTypeTypes.Sequence })
11574
+ ], ContentEncryptionAlgorithmIdentifier);
11575
+ let MessageAuthenticationCodeAlgorithm = class MessageAuthenticationCodeAlgorithm extends AlgorithmIdentifier {
11576
+ };
11577
+ MessageAuthenticationCodeAlgorithm = __decorate([
11578
+ AsnType({ type: AsnTypeTypes.Sequence })
11579
+ ], MessageAuthenticationCodeAlgorithm);
11580
+ let KeyDerivationAlgorithmIdentifier = class KeyDerivationAlgorithmIdentifier extends AlgorithmIdentifier {
11581
+ };
11582
+ KeyDerivationAlgorithmIdentifier = __decorate([
11583
+ AsnType({ type: AsnTypeTypes.Sequence })
11584
+ ], KeyDerivationAlgorithmIdentifier);
11585
+
11180
11586
  class Attribute {
11181
11587
  constructor(params = {}) {
11182
11588
  this.attrType = "";
@@ -11191,6 +11597,59 @@ __decorate([
11191
11597
  AsnProp({ type: AsnPropTypes.Any, repeated: "set" })
11192
11598
  ], Attribute.prototype, "attrValues", void 0);
11193
11599
 
11600
+ var SignerInfos_1;
11601
+ class SignerInfo {
11602
+ constructor(params = {}) {
11603
+ this.version = CMSVersion.v0;
11604
+ this.sid = new SignerIdentifier();
11605
+ this.digestAlgorithm = new DigestAlgorithmIdentifier();
11606
+ this.signatureAlgorithm = new SignatureAlgorithmIdentifier();
11607
+ this.signature = new OctetString();
11608
+ Object.assign(this, params);
11609
+ }
11610
+ }
11611
+ __decorate([
11612
+ AsnProp({ type: AsnPropTypes.Integer })
11613
+ ], SignerInfo.prototype, "version", void 0);
11614
+ __decorate([
11615
+ AsnProp({ type: SignerIdentifier })
11616
+ ], SignerInfo.prototype, "sid", void 0);
11617
+ __decorate([
11618
+ AsnProp({ type: DigestAlgorithmIdentifier })
11619
+ ], SignerInfo.prototype, "digestAlgorithm", void 0);
11620
+ __decorate([
11621
+ AsnProp({ type: Attribute, repeated: "set", context: 0, implicit: true, optional: true })
11622
+ ], SignerInfo.prototype, "signedAttrs", void 0);
11623
+ __decorate([
11624
+ AsnProp({ type: SignatureAlgorithmIdentifier })
11625
+ ], SignerInfo.prototype, "signatureAlgorithm", void 0);
11626
+ __decorate([
11627
+ AsnProp({ type: OctetString })
11628
+ ], SignerInfo.prototype, "signature", void 0);
11629
+ __decorate([
11630
+ AsnProp({ type: Attribute, repeated: "set", context: 1, implicit: true, optional: true })
11631
+ ], SignerInfo.prototype, "unsignedAttrs", void 0);
11632
+ let SignerInfos = SignerInfos_1 = class SignerInfos extends AsnArray {
11633
+ constructor(items) {
11634
+ super(items);
11635
+ Object.setPrototypeOf(this, SignerInfos_1.prototype);
11636
+ }
11637
+ };
11638
+ SignerInfos = SignerInfos_1 = __decorate([
11639
+ AsnType({ type: AsnTypeTypes.Set, itemType: SignerInfo })
11640
+ ], SignerInfos);
11641
+
11642
+ let SigningTime$1 = class SigningTime extends Time {
11643
+ };
11644
+ SigningTime$1 = __decorate([
11645
+ AsnType({ type: AsnTypeTypes.Choice })
11646
+ ], SigningTime$1);
11647
+ let CounterSignature$1 = class CounterSignature extends SignerInfo {
11648
+ };
11649
+ CounterSignature$1 = __decorate([
11650
+ AsnType({ type: AsnTypeTypes.Sequence })
11651
+ ], CounterSignature$1);
11652
+
11194
11653
  var CertificateSet_1;
11195
11654
  class OtherCertificateFormat {
11196
11655
  constructor(params = {}) {
@@ -11273,46 +11732,6 @@ __decorate([
11273
11732
  AsnProp({ type: EncapsulatedContent, context: 0, optional: true })
11274
11733
  ], EncapsulatedContentInfo.prototype, "eContent", void 0);
11275
11734
 
11276
- var CMSVersion;
11277
- (function (CMSVersion) {
11278
- CMSVersion[CMSVersion["v0"] = 0] = "v0";
11279
- CMSVersion[CMSVersion["v1"] = 1] = "v1";
11280
- CMSVersion[CMSVersion["v2"] = 2] = "v2";
11281
- CMSVersion[CMSVersion["v3"] = 3] = "v3";
11282
- CMSVersion[CMSVersion["v4"] = 4] = "v4";
11283
- CMSVersion[CMSVersion["v5"] = 5] = "v5";
11284
- })(CMSVersion || (CMSVersion = {}));
11285
- let DigestAlgorithmIdentifier = class DigestAlgorithmIdentifier extends AlgorithmIdentifier {
11286
- };
11287
- DigestAlgorithmIdentifier = __decorate([
11288
- AsnType({ type: AsnTypeTypes.Sequence })
11289
- ], DigestAlgorithmIdentifier);
11290
- let SignatureAlgorithmIdentifier = class SignatureAlgorithmIdentifier extends AlgorithmIdentifier {
11291
- };
11292
- SignatureAlgorithmIdentifier = __decorate([
11293
- AsnType({ type: AsnTypeTypes.Sequence })
11294
- ], SignatureAlgorithmIdentifier);
11295
- let KeyEncryptionAlgorithmIdentifier = class KeyEncryptionAlgorithmIdentifier extends AlgorithmIdentifier {
11296
- };
11297
- KeyEncryptionAlgorithmIdentifier = __decorate([
11298
- AsnType({ type: AsnTypeTypes.Sequence })
11299
- ], KeyEncryptionAlgorithmIdentifier);
11300
- let ContentEncryptionAlgorithmIdentifier = class ContentEncryptionAlgorithmIdentifier extends AlgorithmIdentifier {
11301
- };
11302
- ContentEncryptionAlgorithmIdentifier = __decorate([
11303
- AsnType({ type: AsnTypeTypes.Sequence })
11304
- ], ContentEncryptionAlgorithmIdentifier);
11305
- let MessageAuthenticationCodeAlgorithm = class MessageAuthenticationCodeAlgorithm extends AlgorithmIdentifier {
11306
- };
11307
- MessageAuthenticationCodeAlgorithm = __decorate([
11308
- AsnType({ type: AsnTypeTypes.Sequence })
11309
- ], MessageAuthenticationCodeAlgorithm);
11310
- let KeyDerivationAlgorithmIdentifier = class KeyDerivationAlgorithmIdentifier extends AlgorithmIdentifier {
11311
- };
11312
- KeyDerivationAlgorithmIdentifier = __decorate([
11313
- AsnType({ type: AsnTypeTypes.Sequence })
11314
- ], KeyDerivationAlgorithmIdentifier);
11315
-
11316
11735
  let EncryptedContent = class EncryptedContent {
11317
11736
  constructor(params = {}) {
11318
11737
  Object.assign(this, params);
@@ -11344,20 +11763,6 @@ __decorate([
11344
11763
  AsnProp({ type: EncryptedContent, optional: true })
11345
11764
  ], EncryptedContentInfo.prototype, "encryptedContent", void 0);
11346
11765
 
11347
- class IssuerAndSerialNumber {
11348
- constructor(params = {}) {
11349
- this.issuer = new Name$1;
11350
- this.serialNumber = new ArrayBuffer(0);
11351
- Object.assign(this, params);
11352
- }
11353
- }
11354
- __decorate([
11355
- AsnProp({ type: Name$1 })
11356
- ], IssuerAndSerialNumber.prototype, "issuer", void 0);
11357
- __decorate([
11358
- AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
11359
- ], IssuerAndSerialNumber.prototype, "serialNumber", void 0);
11360
-
11361
11766
  class OtherKeyAttribute {
11362
11767
  constructor(params = {}) {
11363
11768
  this.keyAttrId = "";
@@ -11702,63 +12107,6 @@ __decorate([
11702
12107
  AsnProp({ type: UnprotectedAttributes, context: 1, implicit: true, optional: true })
11703
12108
  ], EnvelopedData.prototype, "unprotectedAttrs", void 0);
11704
12109
 
11705
- let SignerIdentifier = class SignerIdentifier {
11706
- constructor(params = {}) {
11707
- Object.assign(this, params);
11708
- }
11709
- };
11710
- __decorate([
11711
- AsnProp({ type: SubjectKeyIdentifier, context: 0, implicit: true })
11712
- ], SignerIdentifier.prototype, "subjectKeyIdentifier", void 0);
11713
- __decorate([
11714
- AsnProp({ type: IssuerAndSerialNumber })
11715
- ], SignerIdentifier.prototype, "issuerAndSerialNumber", void 0);
11716
- SignerIdentifier = __decorate([
11717
- AsnType({ type: AsnTypeTypes.Choice })
11718
- ], SignerIdentifier);
11719
-
11720
- var SignerInfos_1;
11721
- class SignerInfo {
11722
- constructor(params = {}) {
11723
- this.version = CMSVersion.v0;
11724
- this.sid = new SignerIdentifier();
11725
- this.digestAlgorithm = new DigestAlgorithmIdentifier();
11726
- this.signatureAlgorithm = new SignatureAlgorithmIdentifier();
11727
- this.signature = new OctetString();
11728
- Object.assign(this, params);
11729
- }
11730
- }
11731
- __decorate([
11732
- AsnProp({ type: AsnPropTypes.Integer })
11733
- ], SignerInfo.prototype, "version", void 0);
11734
- __decorate([
11735
- AsnProp({ type: SignerIdentifier })
11736
- ], SignerInfo.prototype, "sid", void 0);
11737
- __decorate([
11738
- AsnProp({ type: DigestAlgorithmIdentifier })
11739
- ], SignerInfo.prototype, "digestAlgorithm", void 0);
11740
- __decorate([
11741
- AsnProp({ type: Attribute, repeated: "set", context: 0, implicit: true, optional: true })
11742
- ], SignerInfo.prototype, "signedAttrs", void 0);
11743
- __decorate([
11744
- AsnProp({ type: SignatureAlgorithmIdentifier })
11745
- ], SignerInfo.prototype, "signatureAlgorithm", void 0);
11746
- __decorate([
11747
- AsnProp({ type: OctetString })
11748
- ], SignerInfo.prototype, "signature", void 0);
11749
- __decorate([
11750
- AsnProp({ type: Attribute, repeated: "set", context: 1, implicit: true, optional: true })
11751
- ], SignerInfo.prototype, "unsignedAttrs", void 0);
11752
- let SignerInfos = SignerInfos_1 = class SignerInfos extends AsnArray {
11753
- constructor(items) {
11754
- super(items);
11755
- Object.setPrototypeOf(this, SignerInfos_1.prototype);
11756
- }
11757
- };
11758
- SignerInfos = SignerInfos_1 = __decorate([
11759
- AsnType({ type: AsnTypeTypes.Set, itemType: SignerInfo })
11760
- ], SignerInfos);
11761
-
11762
12110
  var DigestAlgorithmIdentifiers_1;
11763
12111
  let DigestAlgorithmIdentifiers = DigestAlgorithmIdentifiers_1 = class DigestAlgorithmIdentifiers extends AsnArray {
11764
12112
  constructor(items) {
@@ -12226,20 +12574,6 @@ function isLink(value) {
12226
12574
  return value.indexOf('http') === 0;
12227
12575
  }
12228
12576
 
12229
- /**
12230
- * @license
12231
- * Copyright (c) Peculiar Ventures, LLC.
12232
- *
12233
- * This source code is licensed under the MIT license found in the
12234
- * LICENSE file in the root directory of this source tree.
12235
- */
12236
- const Link = (props, children) => {
12237
- const { href, variant, } = props;
12238
- return (h(Typography, { component: "a", variant: variant, color: "secondary",
12239
- // @ts-ignore
12240
- href: href, target: "_blank", rel: "noreferrer noopener" }, children));
12241
- };
12242
-
12243
12577
  /**
12244
12578
  * @license
12245
12579
  * Copyright (c) Peculiar Ventures, LLC.
@@ -12327,7 +12661,7 @@ const Signature = (props) => {
12327
12661
  function renderSignatureDetails(data) {
12328
12662
  return [
12329
12663
  h(RowValue, { name: l10n.getString('algorithm'), value: getStringByOID(data.algorithm) }),
12330
- h(RowValue, { name: l10n.getString('value'), value: build.Convert.ToHex(data.value), monospace: true, collapse: true }),
12664
+ h(RowValue, { name: l10n.getString('value'), value: Convert_1.ToHex(data.value), monospace: true, collapse: true }),
12331
12665
  ];
12332
12666
  }
12333
12667
  return [
@@ -12430,7 +12764,7 @@ const ExtendedKeyUsageExtension = (props) => {
12430
12764
  */
12431
12765
  const SubjectKeyIdentifierExtension = (props) => {
12432
12766
  const { extension, getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink } = props;
12433
- const keyId = build.Convert.ToHex(extension.value.buffer);
12767
+ const keyId = Convert_1.ToHex(extension.value.buffer);
12434
12768
  const childrenLink = getSubjectKeyIdChildrenLink(keyId);
12435
12769
  const siblingsLink = getSubjectKeyIdSiblingsLink(keyId);
12436
12770
  return (h(BasicExtension, { extension: extension },
@@ -12455,7 +12789,7 @@ const SubjectKeyIdentifierExtension = (props) => {
12455
12789
  */
12456
12790
  const AuthorityKeyIdentifierExtension = (props) => {
12457
12791
  const { extension, getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink } = props;
12458
- const keyId = build.Convert.ToHex(extension.value.keyIdentifier.buffer);
12792
+ const keyId = Convert_1.ToHex(extension.value.keyIdentifier.buffer);
12459
12793
  const parentLink = getAuthKeyIdParentLink(keyId);
12460
12794
  const siblingsLink = getAuthKeyIdSiblingsLink(keyId);
12461
12795
  return (h(BasicExtension, { extension: extension },
@@ -12519,10 +12853,10 @@ const GeneralNamePart = (props) => {
12519
12853
  catch (error) {
12520
12854
  //
12521
12855
  }
12522
- return (h(RowValue, { name: OIDs[value.typeId] || value.typeId, value: build.Convert.ToHex(value.value), monospace: true }));
12856
+ return (h(RowValue, { name: OIDs[value.typeId] || value.typeId, value: Convert_1.ToHex(value.value), monospace: true }));
12523
12857
  }
12524
- if (build.BufferSourceConverter.isBufferSource(value)) {
12525
- return (h(RowValue, { name: names[name] || name, value: build.Convert.ToString(value) }));
12858
+ if (BufferSourceConverter_1.isBufferSource(value)) {
12859
+ return (h(RowValue, { name: names[name] || name, value: Convert_1.ToString(value) }));
12526
12860
  }
12527
12861
  if (value instanceof EDIPartyName) {
12528
12862
  return (h(RowValue, { name: names[name] || name, value: value.partyName.toString() }));
@@ -12928,7 +13262,7 @@ const QCStatementsExtension = (props) => {
12928
13262
  h(RowValue, { name: "Language", value: location.language })))),
12929
13263
  ]);
12930
13264
  }
12931
- return (h(RowValue, { name: "Info", value: build.Convert.ToHex(statementInfo), monospace: true }));
13265
+ return (h(RowValue, { name: "Info", value: Convert_1.ToHex(statementInfo), monospace: true }));
12932
13266
  }
12933
13267
  return (h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
12934
13268
  h(RowValue, { name: "Statements", value: "" }),
@@ -13039,7 +13373,7 @@ const CRLReasonExtension = (props) => {
13039
13373
  * LICENSE file in the root directory of this source tree.
13040
13374
  */
13041
13375
  function getAttributeValue(attribute) {
13042
- return build.Convert.ToString(attribute.values[0]);
13376
+ return Convert_1.ToString(attribute.values[0]);
13043
13377
  }
13044
13378
 
13045
13379
  /**
@@ -13115,7 +13449,7 @@ const BiometricSyntaxExtension = (props) => {
13115
13449
  h(RowValue, { name: "OID", value: getStringByOID(data.typeOfBiometricData.biometricDataOid) }),
13116
13450
  h(RowValue, { name: "Type", value: data.typeOfBiometricData.predefinedBiometricType }),
13117
13451
  h(RowValue, { name: "Algorithm", value: getStringByOID(data.hashAlgorithm.algorithm) }),
13118
- h(RowValue, { name: "Hash", value: build.Convert.ToHex(data.biometricDataHash.buffer), monospace: true }),
13452
+ h(RowValue, { name: "Hash", value: Convert_1.ToHex(data.biometricDataHash.buffer), monospace: true }),
13119
13453
  h(RowValue, { name: "Source Uri", value: data.sourceDataUri })))),
13120
13454
  ])));
13121
13455
  };
@@ -13137,7 +13471,7 @@ const LogotypeExtension = (props) => {
13137
13471
  const { imageDetails } = img;
13138
13472
  return [
13139
13473
  h(RowValue, { name: "Image Type", value: imageDetails.mediaType }),
13140
- h(RowValue, { name: "Image Hash", value: build.Convert.ToHex(imageDetails.logotypeHash[0].hashValue), monospace: true }),
13474
+ h(RowValue, { name: "Image Hash", value: Convert_1.ToHex(imageDetails.logotypeHash[0].hashValue), monospace: true }),
13141
13475
  h(RowValue, { name: "Image URL", value: imageDetails.logotypeURI[0], monospace: true, collapse: true }),
13142
13476
  h(RowValue, { name: "Image Hash Algorithm", value: getStringByOID(imageDetails.logotypeHash[0].hashAlg.algorithm) }),
13143
13477
  ];
@@ -13151,7 +13485,7 @@ const LogotypeExtension = (props) => {
13151
13485
  const { audioDetails } = aud;
13152
13486
  return [
13153
13487
  h(RowValue, { name: "Audio Type", value: audioDetails.mediaType }),
13154
- h(RowValue, { name: "Audio Hash", value: build.Convert.ToHex(audioDetails.logotypeHash[0].hashValue), monospace: true }),
13488
+ h(RowValue, { name: "Audio Hash", value: Convert_1.ToHex(audioDetails.logotypeHash[0].hashValue), monospace: true }),
13155
13489
  h(RowValue, { name: "Audio URL", value: audioDetails.logotypeURI[0], monospace: true, collapse: true }),
13156
13490
  h(RowValue, { name: "Audio Hash Algorithm", value: getStringByOID(audioDetails.logotypeHash[0].hashAlg.algorithm) }),
13157
13491
  ];
@@ -13256,6 +13590,85 @@ const IssuingDistributionPointExtension = (props) => {
13256
13590
  extension.value.onlyContainsCACerts && (h(RowValue, { name: l10n.getString('onlyCACertificates'), value: l10n.getString('yes') }))));
13257
13591
  };
13258
13592
 
13593
+ /**
13594
+ * @license
13595
+ * Copyright (c) Peculiar Ventures, LLC.
13596
+ *
13597
+ * This source code is licensed under the MIT license found in the
13598
+ * LICENSE file in the root directory of this source tree.
13599
+ */
13600
+ const KeyDescriptionExtension = (props) => {
13601
+ const { extension } = props;
13602
+ const renderRowValue = (data) => Object.keys(data).map((keyName) => {
13603
+ const keyValue = data[keyName];
13604
+ let value = '';
13605
+ switch (true) {
13606
+ case typeof keyValue === 'string' || typeof keyValue === 'number':
13607
+ value = keyValue;
13608
+ break;
13609
+ case keyValue instanceof IntegerSet:
13610
+ value = keyValue.join(', ');
13611
+ break;
13612
+ case typeof keyValue === 'boolean':
13613
+ value = keyValue
13614
+ ? l10n.getString('yes')
13615
+ : l10n.getString('no');
13616
+ break;
13617
+ case Object.is(keyValue, null):
13618
+ value = 'NULL';
13619
+ break;
13620
+ case keyValue instanceof RootOfTrust:
13621
+ return [
13622
+ h(RowValue, { name: camelCaseToWords(keyName), value: "" }),
13623
+ h(TableRowTable, null, renderRowValue(keyValue)),
13624
+ ];
13625
+ case BufferSourceConverter_1.isBufferSource(keyValue):
13626
+ if (keyName === 'attestationApplicationId') {
13627
+ try {
13628
+ const parsed = AsnParser.parse(keyValue, AttestationApplicationId);
13629
+ if (parsed.packageInfos.length || parsed.signatureDigests.length) {
13630
+ return [
13631
+ h(RowValue, { name: camelCaseToWords(keyName), value: "" }),
13632
+ Boolean(parsed.packageInfos) && (h(TableRowTable, null,
13633
+ h(RowValue, { name: camelCaseToWords('packageInfos'), value: "" }),
13634
+ parsed.packageInfos.map((attestationPackageInfo) => (h(TableRowTable, null, renderRowValue(attestationPackageInfo)))))),
13635
+ ];
13636
+ }
13637
+ }
13638
+ catch (error) {
13639
+ //
13640
+ }
13641
+ }
13642
+ try {
13643
+ value = Convert_1.ToString(keyValue);
13644
+ }
13645
+ catch (error) {
13646
+ value = Convert_1.ToHex(keyValue);
13647
+ }
13648
+ break;
13649
+ }
13650
+ return (h(RowValue, { name: camelCaseToWords(keyName), value: value }));
13651
+ });
13652
+ const renderAuthorizationList = (title, authorizationList) => {
13653
+ if (authorizationList.length === 0) {
13654
+ return null;
13655
+ }
13656
+ return [
13657
+ h(RowValue, { name: title, value: "" }),
13658
+ h(TableRowTable, null, authorizationList.map(renderRowValue)),
13659
+ ];
13660
+ };
13661
+ return (h(BasicExtension, { extension: extension },
13662
+ h(RowValue, { name: camelCaseToWords('attestationVersion'), value: extension.value.attestationVersion }),
13663
+ h(RowValue, { name: camelCaseToWords('attestationSecurityLevel'), value: extension.value.attestationSecurityLevel }),
13664
+ h(RowValue, { name: camelCaseToWords('keymasterVersion'), value: extension.value.keymasterVersion }),
13665
+ h(RowValue, { name: camelCaseToWords('keymasterSecurityLevel'), value: extension.value.keymasterSecurityLevel }),
13666
+ h(RowValue, { name: camelCaseToWords('attestationChallenge'), value: Convert_1.ToString(extension.value.attestationChallenge) }),
13667
+ h(RowValue, { name: camelCaseToWords('uniqueId'), value: Convert_1.ToString(extension.value.uniqueId) || undefined }),
13668
+ renderAuthorizationList(camelCaseToWords('softwareEnforced'), extension.value.softwareEnforced),
13669
+ renderAuthorizationList(camelCaseToWords('teeEnforced'), extension.value.teeEnforced)));
13670
+ };
13671
+
13259
13672
  /**
13260
13673
  * @license
13261
13674
  * Copyright (c) Peculiar Ventures, LLC.
@@ -13369,6 +13782,9 @@ const Extensions = (props) => {
13369
13782
  if (extension.value instanceof IssuingDistributionPoint) {
13370
13783
  return (h(IssuingDistributionPointExtension, Object.assign({ extension: extension }, props)));
13371
13784
  }
13785
+ if (extension.value instanceof NonStandardKeyDescription) {
13786
+ return (h(KeyDescriptionExtension, Object.assign({ extension: extension }, props)));
13787
+ }
13372
13788
  if (typeof extension.value === 'string') {
13373
13789
  return (h(AsStringExtension, { extension: extension }));
13374
13790
  }
@@ -13382,19 +13798,6 @@ const Extensions = (props) => {
13382
13798
  ]);
13383
13799
  };
13384
13800
 
13385
- /**
13386
- * @license
13387
- * Copyright (c) Peculiar Ventures, LLC.
13388
- *
13389
- * This source code is licensed under the MIT license found in the
13390
- * LICENSE file in the root directory of this source tree.
13391
- */
13392
- const DownloadIcon = (props) => {
13393
- const { color = 'secondary' } = props;
13394
- return (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", fill: "none" },
13395
- h("path", { fill: `var(--pv-color-${color})`, d: "M21 12h-2c-.6 0-1 .4-1 1s.4 1 1 1h2c.6 0 1 .4 1 1v7c0 .6-.4 1-1 1H9c-.6 0-1-.4-1-1v-7c0-.6.4-1 1-1h2c.6 0 1-.4 1-1s-.4-1-1-1H9c-1.7 0-3 1.3-3 3v7c0 1.7 1.3 3 3 3h12c1.7 0 3-1.3 3-3v-7c0-1.7-1.3-3-3-3Zm-9.7 5.7 3 3c.2.2.4.3.7.3.3 0 .5-.1.7-.3l3-3c.4-.4.4-1 0-1.4-.4-.4-1-.4-1.4 0L16 17.6V6c0-.6-.4-1-1-1s-1 .4-1 1v11.6l-1.3-1.3c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4Z" })));
13396
- };
13397
-
13398
13801
  /**
13399
13802
  * @license
13400
13803
  * Copyright (c) Peculiar Ventures, LLC.
@@ -13415,6 +13818,6 @@ const Miscellaneous = (props) => {
13415
13818
  ];
13416
13819
  };
13417
13820
 
13418
- export { isX509AttributePem as $, AsnData as A, BasicInformation as B, ChallengePassword as C, TypeRelationship as D, Extension as E, id_DomainNameTechnicalOperator as F, GeneralNamePart as G, DomainNameTechnicalOperator as H, InsuranceValue as I, id_DomainNameOwner as J, DomainNameOwner as K, id_DomainNameLegalRepresentative as L, Miscellaneous as M, DomainNameLegalRepresentative as N, id_DomainNameBeneficiary as O, DomainNameBeneficiary as P, OIDs as Q, RowTitle as R, Signature as S, Thumbprints as T, UnstructuredName as U, ValuationRanking as V, WebGDPR as W, Name$1 as X, isPem as Y, isX509Pem as Z, isPkcs10Pem as _, AttributeCertificate as a, isX509CRLPem as a0, Certificate as a1, Name as a2, id_ecPublicKey as a3, ECParameters as a4, id_rsaEncryption as a5, RSAPublicKey as a6, id_composite_key as a7, CompositePublicKey as a8, id_alg_composite as a9, CompositeSignatureValue as aa, CompositeParams as ab, CertificationRequest as ac, CertificateList as ad, dateShort as ae, TableRowTable as af, CRLReason as ag, InvalidityDate as ah, CertificateIssuer as ai, Link as aj, DownloadIcon as ak, AsnConvert as b, certificateRawToBuffer as c, dateDiff as d, base64Format as e, RowValue as f, getCertificateThumbprint as g, hexFormat as h, getStringByOID as i, getLEILink as j, getDNSNameLink as k, l10n as l, getIPAddressLink as m, Extensions as n, Attribute$1 as o, id_pkcs9_at_extensionRequest as p, AsnParser as q, ExtensionRequest as r, id_pkcs9_at_unstructuredName as s, id_pkcs9_at_challengePassword as t, id_ValuationRanking as u, id_InsuranceValue as v, id_WebGDPR as w, id_ActivityDescription as x, ActivityDescription as y, id_TypeRelationship as z };
13821
+ export { isX509AttributePem as $, AsnData as A, BasicInformation as B, ChallengePassword as C, TypeRelationship as D, Extension as E, id_DomainNameTechnicalOperator as F, GeneralNamePart as G, DomainNameTechnicalOperator as H, InsuranceValue as I, id_DomainNameOwner as J, DomainNameOwner as K, id_DomainNameLegalRepresentative as L, Miscellaneous as M, DomainNameLegalRepresentative as N, id_DomainNameBeneficiary as O, DomainNameBeneficiary as P, OIDs as Q, RowTitle as R, Signature as S, Thumbprints as T, UnstructuredName as U, ValuationRanking as V, WebGDPR as W, Name$1 as X, isPem as Y, isX509Pem as Z, isPkcs10Pem as _, AttributeCertificate as a, isX509CRLPem as a0, Certificate as a1, Name as a2, id_ecPublicKey as a3, ECParameters as a4, id_rsaEncryption as a5, RSAPublicKey as a6, id_composite_key as a7, CompositePublicKey as a8, id_alg_composite as a9, CompositeSignatureValue as aa, CompositeParams as ab, CertificationRequest as ac, CertificateList as ad, dateShort as ae, TableRowTable as af, CRLReason as ag, InvalidityDate as ah, CertificateIssuer as ai, AsnConvert as b, certificateRawToBuffer as c, dateDiff as d, base64Format as e, RowValue as f, getCertificateThumbprint as g, hexFormat as h, getStringByOID as i, getLEILink as j, getDNSNameLink as k, l10n as l, getIPAddressLink as m, Extensions as n, Attribute$1 as o, id_pkcs9_at_extensionRequest as p, AsnParser as q, ExtensionRequest as r, id_pkcs9_at_unstructuredName as s, id_pkcs9_at_challengePassword as t, id_ValuationRanking as u, id_InsuranceValue as v, id_WebGDPR as w, id_ActivityDescription as x, ActivityDescription as y, id_TypeRelationship as z };
13419
13822
 
13420
13823
  //# sourceMappingURL=miscellaneous.js.map