@peculiar/certificates-viewer 4.2.0 → 4.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (707) hide show
  1. package/components/actions.js +3 -3
  2. package/components/actions.js.map +1 -1
  3. package/components/arrow_top.js +6 -6
  4. package/components/arrow_top.js.map +1 -1
  5. package/components/attribute-certificate-viewer.js +227 -222
  6. package/components/attribute-certificate-viewer.js.map +1 -1
  7. package/components/attribute.js +53 -0
  8. package/components/attribute.js.map +1 -0
  9. package/components/button-menu.js +36 -35
  10. package/components/button-menu.js.map +1 -1
  11. package/components/button.js +42 -42
  12. package/components/button.js.map +1 -1
  13. package/components/certificate-viewer.js +254 -251
  14. package/components/certificate-viewer.js.map +1 -1
  15. package/components/circular-progress.js +34 -33
  16. package/components/circular-progress.js.map +1 -1
  17. package/components/crl-viewer.js +219 -216
  18. package/components/crl-viewer.js.map +1 -1
  19. package/components/cross.js +9 -9
  20. package/components/cross.js.map +1 -1
  21. package/components/csr-viewer.js +117 -209
  22. package/components/csr-viewer.js.map +1 -1
  23. package/components/download.js +12578 -64
  24. package/components/download.js.map +1 -1
  25. package/components/highlight-words.js +45 -44
  26. package/components/highlight-words.js.map +1 -1
  27. package/components/index.js +2 -0
  28. package/components/index.js.map +1 -1
  29. package/components/index2.js +114 -169
  30. package/components/index2.js.map +1 -1
  31. package/components/issuer_name.js +8 -8
  32. package/components/issuer_name.js.map +1 -1
  33. package/components/miscellaneous.js +729 -13311
  34. package/components/miscellaneous.js.map +1 -1
  35. package/components/peculiar-attribute-certificate-viewer.d.ts +2 -2
  36. package/components/peculiar-button-menu.d.ts +2 -2
  37. package/components/peculiar-certificate-decoder.d.ts +2 -2
  38. package/components/peculiar-certificate-decoder.js +177 -207
  39. package/components/peculiar-certificate-decoder.js.map +1 -1
  40. package/components/peculiar-certificate-viewer.d.ts +2 -2
  41. package/components/peculiar-certificates-viewer.d.ts +2 -2
  42. package/components/peculiar-certificates-viewer.js +297 -297
  43. package/components/peculiar-certificates-viewer.js.map +1 -1
  44. package/components/peculiar-circular-progress.d.ts +2 -2
  45. package/components/peculiar-crl-viewer.d.ts +2 -2
  46. package/components/peculiar-crl-viewer.js +1 -1
  47. package/components/peculiar-csr-viewer.d.ts +2 -2
  48. package/components/peculiar-csr-viewer.js +1 -1
  49. package/components/peculiar-highlight-words.d.ts +2 -2
  50. package/components/peculiar-text-hider.d.ts +2 -2
  51. package/components/peculiar-text-hider.js +23 -22
  52. package/components/peculiar-text-hider.js.map +1 -1
  53. package/components/pkcs10_certificate_request.js +102 -0
  54. package/components/pkcs10_certificate_request.js.map +1 -0
  55. package/components/read_file.js +110 -0
  56. package/components/read_file.js.map +1 -0
  57. package/components/subject_name.js +36 -36
  58. package/components/subject_name.js.map +1 -1
  59. package/dist/cjs/actions-789906f5.js +23 -0
  60. package/dist/cjs/{actions-19013d4a.js.map → actions-789906f5.js.map} +1 -1
  61. package/dist/cjs/app-globals-c20ffa41.js +10 -0
  62. package/dist/cjs/app-globals-c20ffa41.js.map +1 -0
  63. package/dist/cjs/arrow_top-76e4261e.js +37 -0
  64. package/dist/cjs/{arrow_top-834fb7ec.js.map → arrow_top-76e4261e.js.map} +1 -1
  65. package/dist/cjs/button-87086210.js +77 -0
  66. package/dist/cjs/{button-14e2b73f.js.map → button-87086210.js.map} +1 -1
  67. package/dist/cjs/{certification_request-5672c667.js → certification_request-815ec558.js} +3284 -2888
  68. package/dist/cjs/certification_request-815ec558.js.map +1 -0
  69. package/dist/cjs/cross-bd099933.js +51 -0
  70. package/dist/cjs/{cross-9872c473.js.map → cross-bd099933.js.map} +1 -1
  71. package/dist/cjs/download-820d66ba.js +23 -0
  72. package/dist/cjs/{download-254ddc57.js.map → download-820d66ba.js.map} +1 -1
  73. package/dist/cjs/{index-efd561e9.js → index-e2ae280a.js} +398 -145
  74. package/dist/cjs/index-e2ae280a.js.map +1 -0
  75. package/dist/cjs/index.cjs.js +18 -11
  76. package/dist/cjs/index.cjs.js.map +1 -1
  77. package/dist/cjs/link-a3d3799d.js +25 -0
  78. package/dist/cjs/{link-6aea0be4.js.map → link-a3d3799d.js.map} +1 -1
  79. package/dist/cjs/loader.cjs.js +4 -2
  80. package/dist/cjs/loader.cjs.js.map +1 -1
  81. package/dist/cjs/miscellaneous-9a573276.js +1418 -0
  82. package/dist/cjs/miscellaneous-9a573276.js.map +1 -0
  83. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +481 -480
  84. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js.map +1 -1
  85. package/dist/cjs/peculiar-button-menu_3.cjs.entry.js +72 -69
  86. package/dist/cjs/peculiar-button-menu_3.cjs.entry.js.map +1 -1
  87. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +142 -172
  88. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js.map +1 -1
  89. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +106 -106
  90. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js.map +1 -1
  91. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +257 -257
  92. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js.map +1 -1
  93. package/dist/cjs/peculiar-text-hider.cjs.entry.js +12 -11
  94. package/dist/cjs/peculiar-text-hider.cjs.entry.js.map +1 -1
  95. package/dist/cjs/peculiar.cjs.js +5 -3
  96. package/dist/cjs/peculiar.cjs.js.map +1 -1
  97. package/dist/cjs/pkcs10_certificate_request-0ebc0023.js +149 -0
  98. package/dist/cjs/pkcs10_certificate_request-0ebc0023.js.map +1 -0
  99. package/dist/cjs/read_file-2e22a97e.js +115 -0
  100. package/dist/cjs/read_file-2e22a97e.js.map +1 -0
  101. package/dist/cjs/x509_certificate-9914b149.js +161 -0
  102. package/dist/cjs/x509_certificate-9914b149.js.map +1 -0
  103. package/dist/cjs/x509_crl-86b6e71d.js +179 -0
  104. package/dist/cjs/x509_crl-86b6e71d.js.map +1 -0
  105. package/dist/collection/collection-manifest.json +2 -2
  106. package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +259 -259
  107. package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js.map +1 -1
  108. package/dist/collection/components/button/button.js +9 -9
  109. package/dist/collection/components/button/button.js.map +1 -1
  110. package/dist/collection/components/button-menu/button-menu.js +60 -60
  111. package/dist/collection/components/button-menu/button-menu.js.map +1 -1
  112. package/dist/collection/components/certificate-decoder/certificate-decoder.js +212 -212
  113. package/dist/collection/components/certificate-decoder/certificate-decoder.js.map +1 -1
  114. package/dist/collection/components/certificate-details-parts/attributes/activity_description_attribute.js +4 -3
  115. package/dist/collection/components/certificate-details-parts/attributes/activity_description_attribute.js.map +1 -1
  116. package/dist/collection/components/certificate-details-parts/attributes/as_string_attribute.js +2 -2
  117. package/dist/collection/components/certificate-details-parts/attributes/as_string_attribute.js.map +1 -1
  118. package/dist/collection/components/certificate-details-parts/attributes/basic_attribute.js +6 -6
  119. package/dist/collection/components/certificate-details-parts/attributes/basic_attribute.js.map +1 -1
  120. package/dist/collection/components/certificate-details-parts/attributes/challenge_password_attribute.js +2 -2
  121. package/dist/collection/components/certificate-details-parts/attributes/challenge_password_attribute.js.map +1 -1
  122. package/dist/collection/components/certificate-details-parts/attributes/index.js +42 -42
  123. package/dist/collection/components/certificate-details-parts/attributes/index.js.map +1 -1
  124. package/dist/collection/components/certificate-details-parts/attributes/insurance_value_attribute.js +3 -3
  125. package/dist/collection/components/certificate-details-parts/attributes/insurance_value_attribute.js.map +1 -1
  126. package/dist/collection/components/certificate-details-parts/attributes/name_attribute.js +2 -2
  127. package/dist/collection/components/certificate-details-parts/attributes/name_attribute.js.map +1 -1
  128. package/dist/collection/components/certificate-details-parts/attributes/name_part.js +5 -5
  129. package/dist/collection/components/certificate-details-parts/attributes/name_part.js.map +1 -1
  130. package/dist/collection/components/certificate-details-parts/attributes/type_relationship_attribute.js +2 -2
  131. package/dist/collection/components/certificate-details-parts/attributes/type_relationship_attribute.js.map +1 -1
  132. package/dist/collection/components/certificate-details-parts/attributes/unstructured_name_attribute.js +2 -2
  133. package/dist/collection/components/certificate-details-parts/attributes/unstructured_name_attribute.js.map +1 -1
  134. package/dist/collection/components/certificate-details-parts/attributes/valuation_ranking_attribute.js +14 -14
  135. package/dist/collection/components/certificate-details-parts/attributes/valuation_ranking_attribute.js.map +1 -1
  136. package/dist/collection/components/certificate-details-parts/attributes/web_gdpr_attribute.js +4 -3
  137. package/dist/collection/components/certificate-details-parts/attributes/web_gdpr_attribute.js.map +1 -1
  138. package/dist/collection/components/certificate-details-parts/basic_information.js +12 -12
  139. package/dist/collection/components/certificate-details-parts/basic_information.js.map +1 -1
  140. package/dist/collection/components/certificate-details-parts/extensions/archive_rev_info_extension.js +2 -2
  141. package/dist/collection/components/certificate-details-parts/extensions/archive_rev_info_extension.js.map +1 -1
  142. package/dist/collection/components/certificate-details-parts/extensions/as_string_extension.js +2 -2
  143. package/dist/collection/components/certificate-details-parts/extensions/as_string_extension.js.map +1 -1
  144. package/dist/collection/components/certificate-details-parts/extensions/attribute_value.js +1 -1
  145. package/dist/collection/components/certificate-details-parts/extensions/attribute_value.js.map +1 -1
  146. package/dist/collection/components/certificate-details-parts/extensions/authority_key_identifier_extension.js +8 -8
  147. package/dist/collection/components/certificate-details-parts/extensions/authority_key_identifier_extension.js.map +1 -1
  148. package/dist/collection/components/certificate-details-parts/extensions/basic_constraints_extension.js +2 -2
  149. package/dist/collection/components/certificate-details-parts/extensions/basic_constraints_extension.js.map +1 -1
  150. package/dist/collection/components/certificate-details-parts/extensions/basic_extension.js +7 -7
  151. package/dist/collection/components/certificate-details-parts/extensions/basic_extension.js.map +1 -1
  152. package/dist/collection/components/certificate-details-parts/extensions/biometric_syntax_extension.js +5 -5
  153. package/dist/collection/components/certificate-details-parts/extensions/biometric_syntax_extension.js.map +1 -1
  154. package/dist/collection/components/certificate-details-parts/extensions/ca_version_extension.js +3 -3
  155. package/dist/collection/components/certificate-details-parts/extensions/ca_version_extension.js.map +1 -1
  156. package/dist/collection/components/certificate-details-parts/extensions/cabforganization_identifier_extension.js +2 -2
  157. package/dist/collection/components/certificate-details-parts/extensions/cabforganization_identifier_extension.js.map +1 -1
  158. package/dist/collection/components/certificate-details-parts/extensions/certificate_policies_extension.js +23 -23
  159. package/dist/collection/components/certificate-details-parts/extensions/certificate_policies_extension.js.map +1 -1
  160. package/dist/collection/components/certificate-details-parts/extensions/certificate_template_extension.js +2 -2
  161. package/dist/collection/components/certificate-details-parts/extensions/certificate_template_extension.js.map +1 -1
  162. package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js +5 -5
  163. package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js.map +1 -1
  164. package/dist/collection/components/certificate-details-parts/extensions/crl_distribution_points_extension.js +8 -8
  165. package/dist/collection/components/certificate-details-parts/extensions/crl_distribution_points_extension.js.map +1 -1
  166. package/dist/collection/components/certificate-details-parts/extensions/crl_number_extension.js +2 -2
  167. package/dist/collection/components/certificate-details-parts/extensions/crl_number_extension.js.map +1 -1
  168. package/dist/collection/components/certificate-details-parts/extensions/crl_reason_extension.js +2 -2
  169. package/dist/collection/components/certificate-details-parts/extensions/crl_reason_extension.js.map +1 -1
  170. package/dist/collection/components/certificate-details-parts/extensions/enroll_cert_type_extension.js +2 -2
  171. package/dist/collection/components/certificate-details-parts/extensions/enroll_cert_type_extension.js.map +1 -1
  172. package/dist/collection/components/certificate-details-parts/extensions/entrust_version_info_extension.js +2 -2
  173. package/dist/collection/components/certificate-details-parts/extensions/entrust_version_info_extension.js.map +1 -1
  174. package/dist/collection/components/certificate-details-parts/extensions/extended_key_usage_extension.js +5 -5
  175. package/dist/collection/components/certificate-details-parts/extensions/extended_key_usage_extension.js.map +1 -1
  176. package/dist/collection/components/certificate-details-parts/extensions/general_name_part.js +52 -52
  177. package/dist/collection/components/certificate-details-parts/extensions/general_name_part.js.map +1 -1
  178. package/dist/collection/components/certificate-details-parts/extensions/index.js +121 -121
  179. package/dist/collection/components/certificate-details-parts/extensions/index.js.map +1 -1
  180. package/dist/collection/components/certificate-details-parts/extensions/info_access_syntax_extension.js +5 -5
  181. package/dist/collection/components/certificate-details-parts/extensions/info_access_syntax_extension.js.map +1 -1
  182. package/dist/collection/components/certificate-details-parts/extensions/issuing_distribution_point_extension.js +4 -4
  183. package/dist/collection/components/certificate-details-parts/extensions/issuing_distribution_point_extension.js.map +1 -1
  184. package/dist/collection/components/certificate-details-parts/extensions/key_description_extension.js +58 -58
  185. package/dist/collection/components/certificate-details-parts/extensions/key_description_extension.js.map +1 -1
  186. package/dist/collection/components/certificate-details-parts/extensions/key_usage_extension.js +2 -2
  187. package/dist/collection/components/certificate-details-parts/extensions/key_usage_extension.js.map +1 -1
  188. package/dist/collection/components/certificate-details-parts/extensions/lei_extension.js +2 -2
  189. package/dist/collection/components/certificate-details-parts/extensions/lei_extension.js.map +1 -1
  190. package/dist/collection/components/certificate-details-parts/extensions/lei_role_extennsion.js +2 -2
  191. package/dist/collection/components/certificate-details-parts/extensions/lei_role_extennsion.js.map +1 -1
  192. package/dist/collection/components/certificate-details-parts/extensions/logotype_extension.js +42 -42
  193. package/dist/collection/components/certificate-details-parts/extensions/logotype_extension.js.map +1 -1
  194. package/dist/collection/components/certificate-details-parts/extensions/name_constraints_extension.js +5 -5
  195. package/dist/collection/components/certificate-details-parts/extensions/name_constraints_extension.js.map +1 -1
  196. package/dist/collection/components/certificate-details-parts/extensions/netscape_cert_type_extension.js +2 -2
  197. package/dist/collection/components/certificate-details-parts/extensions/netscape_cert_type_extension.js.map +1 -1
  198. package/dist/collection/components/certificate-details-parts/extensions/netscape_comment_extension.js +2 -2
  199. package/dist/collection/components/certificate-details-parts/extensions/netscape_comment_extension.js.map +1 -1
  200. package/dist/collection/components/certificate-details-parts/extensions/policy_constraints_extension.js +2 -2
  201. package/dist/collection/components/certificate-details-parts/extensions/policy_constraints_extension.js.map +1 -1
  202. package/dist/collection/components/certificate-details-parts/extensions/policy_mappings_extension.js +6 -7
  203. package/dist/collection/components/certificate-details-parts/extensions/policy_mappings_extension.js.map +1 -1
  204. package/dist/collection/components/certificate-details-parts/extensions/private_key_usage_period_extension.js +2 -2
  205. package/dist/collection/components/certificate-details-parts/extensions/private_key_usage_period_extension.js.map +1 -1
  206. package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js +29 -29
  207. package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js.map +1 -1
  208. package/dist/collection/components/certificate-details-parts/extensions/subject_alternative_name_extension.js +2 -2
  209. package/dist/collection/components/certificate-details-parts/extensions/subject_alternative_name_extension.js.map +1 -1
  210. package/dist/collection/components/certificate-details-parts/extensions/subject_directory_attributes_extension.js +5 -5
  211. package/dist/collection/components/certificate-details-parts/extensions/subject_directory_attributes_extension.js.map +1 -1
  212. package/dist/collection/components/certificate-details-parts/extensions/subject_key_identifier_extension.js +8 -8
  213. package/dist/collection/components/certificate-details-parts/extensions/subject_key_identifier_extension.js.map +1 -1
  214. package/dist/collection/components/certificate-details-parts/extensions/timestamp_extension.js +2 -2
  215. package/dist/collection/components/certificate-details-parts/extensions/timestamp_extension.js.map +1 -1
  216. package/dist/collection/components/certificate-details-parts/extensions/tn_auth_list_extension.js +6 -8
  217. package/dist/collection/components/certificate-details-parts/extensions/tn_auth_list_extension.js.map +1 -1
  218. package/dist/collection/components/certificate-details-parts/holder.js +19 -21
  219. package/dist/collection/components/certificate-details-parts/holder.js.map +1 -1
  220. package/dist/collection/components/certificate-details-parts/issuer.js +8 -8
  221. package/dist/collection/components/certificate-details-parts/issuer.js.map +1 -1
  222. package/dist/collection/components/certificate-details-parts/issuer_name.js +6 -6
  223. package/dist/collection/components/certificate-details-parts/issuer_name.js.map +1 -1
  224. package/dist/collection/components/certificate-details-parts/miscellaneous.js +6 -6
  225. package/dist/collection/components/certificate-details-parts/miscellaneous.js.map +1 -1
  226. package/dist/collection/components/certificate-details-parts/public_key.js +29 -29
  227. package/dist/collection/components/certificate-details-parts/public_key.js.map +1 -1
  228. package/dist/collection/components/certificate-details-parts/revoked_certificates.js +30 -30
  229. package/dist/collection/components/certificate-details-parts/revoked_certificates.js.map +1 -1
  230. package/dist/collection/components/certificate-details-parts/row.js +26 -26
  231. package/dist/collection/components/certificate-details-parts/row.js.map +1 -1
  232. package/dist/collection/components/certificate-details-parts/signature.js +13 -13
  233. package/dist/collection/components/certificate-details-parts/signature.js.map +1 -1
  234. package/dist/collection/components/certificate-details-parts/subject_name.js +5 -5
  235. package/dist/collection/components/certificate-details-parts/subject_name.js.map +1 -1
  236. package/dist/collection/components/certificate-details-parts/thumbprints.js +12 -12
  237. package/dist/collection/components/certificate-details-parts/thumbprints.js.map +1 -1
  238. package/dist/collection/components/certificate-summary/certificate-summary.js +3 -3
  239. package/dist/collection/components/certificate-summary/certificate-summary.js.map +1 -1
  240. package/dist/collection/components/certificate-viewer/certificate-viewer.js +278 -278
  241. package/dist/collection/components/certificate-viewer/certificate-viewer.js.map +1 -1
  242. package/dist/collection/components/certificates-viewer/certificates-viewer.js +374 -374
  243. package/dist/collection/components/certificates-viewer/certificates-viewer.js.map +1 -1
  244. package/dist/collection/components/circular-progress/circular-progress.js +67 -67
  245. package/dist/collection/components/circular-progress/circular-progress.js.map +1 -1
  246. package/dist/collection/components/crl-viewer/crl-viewer.js +230 -230
  247. package/dist/collection/components/crl-viewer/crl-viewer.js.map +1 -1
  248. package/dist/collection/components/csr-viewer/csr-viewer.js +212 -220
  249. package/dist/collection/components/csr-viewer/csr-viewer.js.map +1 -1
  250. package/dist/collection/components/highlight-words/highlight-words.js +60 -60
  251. package/dist/collection/components/highlight-words/highlight-words.js.map +1 -1
  252. package/dist/collection/components/icons/actions.js +2 -2
  253. package/dist/collection/components/icons/actions.js.map +1 -1
  254. package/dist/collection/components/icons/arrow_bottom.js +2 -2
  255. package/dist/collection/components/icons/arrow_bottom.js.map +1 -1
  256. package/dist/collection/components/icons/arrow_top.js +2 -2
  257. package/dist/collection/components/icons/arrow_top.js.map +1 -1
  258. package/dist/collection/components/icons/cross.js +2 -2
  259. package/dist/collection/components/icons/cross.js.map +1 -1
  260. package/dist/collection/components/icons/details.js +2 -2
  261. package/dist/collection/components/icons/details.js.map +1 -1
  262. package/dist/collection/components/icons/download.js +2 -2
  263. package/dist/collection/components/icons/download.js.map +1 -1
  264. package/dist/collection/components/icons/link.js +2 -2
  265. package/dist/collection/components/icons/link.js.map +1 -1
  266. package/dist/collection/components/link/link.js +4 -4
  267. package/dist/collection/components/link/link.js.map +1 -1
  268. package/dist/collection/components/text-hider/text-hider.js +23 -23
  269. package/dist/collection/components/text-hider/text-hider.js.map +1 -1
  270. package/dist/collection/components/typography/typography.js +32 -32
  271. package/dist/collection/components/typography/typography.js.map +1 -1
  272. package/dist/collection/constants/logs.js +77 -77
  273. package/dist/collection/constants/logs.js.map +1 -1
  274. package/dist/collection/constants/oids.js +2334 -2334
  275. package/dist/collection/constants/oids.js.map +1 -1
  276. package/dist/collection/crypto/asn_data.js +31 -31
  277. package/dist/collection/crypto/asn_data.js.map +1 -1
  278. package/dist/collection/crypto/attribute.js +35 -51
  279. package/dist/collection/crypto/attribute.js.map +1 -1
  280. package/dist/collection/crypto/extension.js +63 -138
  281. package/dist/collection/crypto/extension.js.map +1 -1
  282. package/dist/collection/crypto/extensions/cabforganization_identifier.js +20 -15
  283. package/dist/collection/crypto/extensions/cabforganization_identifier.js.map +1 -1
  284. package/dist/collection/crypto/index.js +2 -2
  285. package/dist/collection/crypto/index.js.map +1 -1
  286. package/dist/collection/crypto/name.js +31 -31
  287. package/dist/collection/crypto/name.js.map +1 -1
  288. package/dist/collection/crypto/pkcs10_certificate_request.js +108 -0
  289. package/dist/collection/crypto/pkcs10_certificate_request.js.map +1 -0
  290. package/dist/collection/crypto/provider.js +26 -26
  291. package/dist/collection/crypto/provider.js.map +1 -1
  292. package/dist/collection/crypto/utils.js +23 -23
  293. package/dist/collection/crypto/utils.js.map +1 -1
  294. package/dist/collection/crypto/x509_attribute_certificate.js +68 -66
  295. package/dist/collection/crypto/x509_attribute_certificate.js.map +1 -1
  296. package/dist/collection/crypto/x509_certificate.js +127 -125
  297. package/dist/collection/crypto/x509_certificate.js.map +1 -1
  298. package/dist/collection/crypto/x509_crl.js +94 -0
  299. package/dist/collection/crypto/x509_crl.js.map +1 -0
  300. package/dist/collection/index.js +2 -0
  301. package/dist/collection/index.js.map +1 -1
  302. package/dist/collection/utils/camel_case_to_words.js +2 -2
  303. package/dist/collection/utils/camel_case_to_words.js.map +1 -1
  304. package/dist/collection/utils/date_formatter.js +6 -6
  305. package/dist/collection/utils/date_formatter.js.map +1 -1
  306. package/dist/collection/utils/download.js +24 -24
  307. package/dist/collection/utils/download.js.map +1 -1
  308. package/dist/collection/utils/download_from_buffer.js +25 -25
  309. package/dist/collection/utils/download_from_buffer.js.map +1 -1
  310. package/dist/collection/utils/get_string_by_oid.js +5 -5
  311. package/dist/collection/utils/get_string_by_oid.js.map +1 -1
  312. package/dist/collection/utils/is_link.js +1 -1
  313. package/dist/collection/utils/is_link.js.map +1 -1
  314. package/dist/collection/utils/l10n.js +25 -25
  315. package/dist/collection/utils/l10n.js.map +1 -1
  316. package/dist/collection/utils/read_file.js +40 -40
  317. package/dist/collection/utils/read_file.js.map +1 -1
  318. package/dist/collection/utils/validator.js +13 -13
  319. package/dist/collection/utils/validator.js.map +1 -1
  320. package/dist/esm/actions-aebcbc9d.js +21 -0
  321. package/dist/esm/{actions-8d745b2a.js.map → actions-aebcbc9d.js.map} +1 -1
  322. package/dist/esm/app-globals-5e9b67e0.js +8 -0
  323. package/dist/esm/app-globals-5e9b67e0.js.map +1 -0
  324. package/dist/esm/arrow_top-aee1ee02.js +34 -0
  325. package/dist/esm/{arrow_top-fc298828.js.map → arrow_top-aee1ee02.js.map} +1 -1
  326. package/dist/esm/button-a2fabf9a.js +74 -0
  327. package/dist/esm/{button-35146bdd.js.map → button-a2fabf9a.js.map} +1 -1
  328. package/dist/esm/{certification_request-d5ea5973.js → certification_request-08b4deb8.js} +3227 -2835
  329. package/dist/esm/certification_request-08b4deb8.js.map +1 -0
  330. package/dist/esm/cross-1377606f.js +47 -0
  331. package/dist/esm/{cross-9ec9a759.js.map → cross-1377606f.js.map} +1 -1
  332. package/dist/esm/download-14dc1047.js +21 -0
  333. package/dist/esm/{download-0cc3077a.js.map → download-14dc1047.js.map} +1 -1
  334. package/dist/esm/{index-4079bbb5.js → index-ae188432.js} +398 -145
  335. package/dist/esm/index-ae188432.js.map +1 -0
  336. package/dist/esm/index.js +10 -8
  337. package/dist/esm/index.js.map +1 -1
  338. package/dist/esm/link-7e4e9060.js +23 -0
  339. package/dist/esm/{link-ad24c3be.js.map → link-7e4e9060.js.map} +1 -1
  340. package/dist/esm/loader.js +5 -3
  341. package/dist/esm/loader.js.map +1 -1
  342. package/dist/esm/miscellaneous-d4bbc6f2.js +1400 -0
  343. package/dist/esm/miscellaneous-d4bbc6f2.js.map +1 -0
  344. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +481 -480
  345. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -1
  346. package/dist/esm/peculiar-button-menu_3.entry.js +72 -69
  347. package/dist/esm/peculiar-button-menu_3.entry.js.map +1 -1
  348. package/dist/esm/peculiar-certificate-decoder.entry.js +142 -172
  349. package/dist/esm/peculiar-certificate-decoder.entry.js.map +1 -1
  350. package/dist/esm/peculiar-certificate-viewer.entry.js +106 -106
  351. package/dist/esm/peculiar-certificate-viewer.entry.js.map +1 -1
  352. package/dist/esm/peculiar-certificates-viewer.entry.js +257 -257
  353. package/dist/esm/peculiar-certificates-viewer.entry.js.map +1 -1
  354. package/dist/esm/peculiar-text-hider.entry.js +12 -11
  355. package/dist/esm/peculiar-text-hider.entry.js.map +1 -1
  356. package/dist/esm/peculiar.js +6 -4
  357. package/dist/esm/peculiar.js.map +1 -1
  358. package/dist/esm/pkcs10_certificate_request-3763c2af.js +146 -0
  359. package/dist/esm/pkcs10_certificate_request-3763c2af.js.map +1 -0
  360. package/dist/esm/read_file-bb0b1450.js +110 -0
  361. package/dist/esm/read_file-bb0b1450.js.map +1 -0
  362. package/dist/esm/x509_certificate-47b4c5ee.js +159 -0
  363. package/dist/esm/x509_certificate-47b4c5ee.js.map +1 -0
  364. package/dist/esm/x509_crl-ba76d3ed.js +176 -0
  365. package/dist/esm/x509_crl-ba76d3ed.js.map +1 -0
  366. package/dist/esm-es5/{actions-8d745b2a.js → actions-aebcbc9d.js} +2 -2
  367. package/dist/esm-es5/app-globals-5e9b67e0.js +5 -0
  368. package/dist/esm-es5/app-globals-5e9b67e0.js.map +1 -0
  369. package/dist/esm-es5/{arrow_top-fc298828.js → arrow_top-aee1ee02.js} +2 -2
  370. package/dist/esm-es5/button-a2fabf9a.js +19 -0
  371. package/dist/esm-es5/{certification_request-d5ea5973.js → certification_request-08b4deb8.js} +60 -22
  372. package/dist/esm-es5/certification_request-08b4deb8.js.map +1 -0
  373. package/dist/esm-es5/{cross-9ec9a759.js → cross-1377606f.js} +2 -2
  374. package/dist/esm-es5/{download-0cc3077a.js → download-14dc1047.js} +2 -2
  375. package/dist/esm-es5/index-ae188432.js +6 -0
  376. package/dist/esm-es5/index-ae188432.js.map +1 -0
  377. package/dist/esm-es5/index.js +1 -1
  378. package/dist/esm-es5/{link-ad24c3be.js → link-7e4e9060.js} +3 -3
  379. package/dist/esm-es5/loader.js +2 -2
  380. package/dist/esm-es5/loader.js.map +1 -1
  381. package/dist/esm-es5/{miscellaneous-cdfd8905.js → miscellaneous-d4bbc6f2.js} +51 -51
  382. package/dist/esm-es5/miscellaneous-d4bbc6f2.js.map +1 -0
  383. package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js +17 -17
  384. package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -1
  385. package/dist/esm-es5/peculiar-button-menu_3.entry.js +1 -1
  386. package/dist/esm-es5/peculiar-button-menu_3.entry.js.map +1 -1
  387. package/dist/esm-es5/peculiar-certificate-decoder.entry.js +2 -9
  388. package/dist/esm-es5/peculiar-certificate-decoder.entry.js.map +1 -1
  389. package/dist/esm-es5/peculiar-certificate-viewer.entry.js +2 -2
  390. package/dist/esm-es5/peculiar-certificate-viewer.entry.js.map +1 -1
  391. package/dist/esm-es5/peculiar-certificates-viewer.entry.js +3 -3
  392. package/dist/esm-es5/peculiar-certificates-viewer.entry.js.map +1 -1
  393. package/dist/esm-es5/peculiar-text-hider.entry.js +1 -1
  394. package/dist/esm-es5/peculiar-text-hider.entry.js.map +1 -1
  395. package/dist/esm-es5/peculiar.js +2 -2
  396. package/dist/esm-es5/peculiar.js.map +1 -1
  397. package/dist/esm-es5/pkcs10_certificate_request-3763c2af.js +19 -0
  398. package/dist/esm-es5/pkcs10_certificate_request-3763c2af.js.map +1 -0
  399. package/dist/esm-es5/read_file-bb0b1450.js +12 -0
  400. package/dist/esm-es5/read_file-bb0b1450.js.map +1 -0
  401. package/dist/esm-es5/x509_certificate-47b4c5ee.js +12 -0
  402. package/dist/esm-es5/x509_certificate-47b4c5ee.js.map +1 -0
  403. package/dist/esm-es5/x509_crl-ba76d3ed.js +19 -0
  404. package/dist/esm-es5/x509_crl-ba76d3ed.js.map +1 -0
  405. package/dist/peculiar/index.esm.js +1 -1
  406. package/dist/peculiar/{p-a67b8793.system.entry.js → p-0f3787cf.system.entry.js} +10 -10
  407. package/dist/peculiar/p-0f3787cf.system.entry.js.map +1 -0
  408. package/dist/peculiar/p-1818204e.system.js +13 -0
  409. package/dist/peculiar/p-1818204e.system.js.map +1 -0
  410. package/dist/peculiar/p-243244af.system.js +13 -0
  411. package/dist/peculiar/p-25a532a3.js +12 -0
  412. package/dist/peculiar/p-25a532a3.js.map +1 -0
  413. package/dist/peculiar/{p-0fc2e2b4.js → p-27ca6743.js} +2 -2
  414. package/dist/peculiar/p-28b4d316.system.js +5 -0
  415. package/dist/peculiar/p-30e18f2d.system.js +20 -0
  416. package/dist/peculiar/p-30e18f2d.system.js.map +1 -0
  417. package/dist/peculiar/p-31d5da39.js +12 -0
  418. package/dist/peculiar/p-31d5da39.js.map +1 -0
  419. package/dist/peculiar/p-364df80d.system.entry.js +111 -0
  420. package/dist/peculiar/p-364df80d.system.entry.js.map +1 -0
  421. package/dist/peculiar/p-3cb79cd9.js +6 -0
  422. package/dist/peculiar/p-3cb79cd9.js.map +1 -0
  423. package/dist/peculiar/p-4bc5ddbe.js +19 -0
  424. package/dist/peculiar/p-4ee5140c.system.js +19 -0
  425. package/dist/peculiar/p-4ee5140c.system.js.map +1 -0
  426. package/dist/peculiar/p-55303453.system.js +12 -0
  427. package/dist/peculiar/p-55303453.system.js.map +1 -0
  428. package/dist/peculiar/p-5a662d6f.system.js +13 -0
  429. package/dist/peculiar/p-6acca6ea.js +135 -0
  430. package/dist/peculiar/p-6acca6ea.js.map +1 -0
  431. package/dist/peculiar/p-713563fb.entry.js +5 -0
  432. package/dist/peculiar/p-713563fb.entry.js.map +1 -0
  433. package/dist/peculiar/p-78a6b479.js +19 -0
  434. package/dist/peculiar/p-78a6b479.js.map +1 -0
  435. package/dist/peculiar/p-82005297.system.entry.js +5 -0
  436. package/dist/peculiar/p-82005297.system.entry.js.map +1 -0
  437. package/dist/peculiar/p-821bdcdc.system.js +6 -0
  438. package/dist/peculiar/p-821bdcdc.system.js.map +1 -0
  439. package/dist/peculiar/p-82e4faf0.js +19 -0
  440. package/dist/peculiar/p-82e4faf0.js.map +1 -0
  441. package/dist/peculiar/p-8393399a.system.js +5 -0
  442. package/dist/peculiar/p-8393399a.system.js.map +1 -0
  443. package/dist/peculiar/p-84e3e94a.entry.js +110 -0
  444. package/dist/peculiar/p-84e3e94a.entry.js.map +1 -0
  445. package/dist/peculiar/p-8bbee8f4.system.js +13 -0
  446. package/dist/peculiar/p-8db3e1fd.system.entry.js +5 -0
  447. package/dist/peculiar/p-8db3e1fd.system.entry.js.map +1 -0
  448. package/dist/peculiar/p-9712b827.system.js +20 -0
  449. package/dist/peculiar/{p-2fcad8cb.system.js.map → p-9712b827.system.js.map} +1 -1
  450. package/dist/peculiar/{p-370cee20.js → p-99efefea.js} +2 -2
  451. package/dist/peculiar/p-9c8dc738.entry.js +5 -0
  452. package/dist/peculiar/p-9c8dc738.entry.js.map +1 -0
  453. package/dist/peculiar/{p-1ceb0fe3.js → p-a9487007.js} +2 -2
  454. package/dist/peculiar/{p-17e3c47b.js → p-ae91d778.js} +2 -2
  455. package/dist/peculiar/p-afbd1c8e.entry.js +5 -0
  456. package/dist/peculiar/p-afbd1c8e.entry.js.map +1 -0
  457. package/dist/peculiar/{p-67156853.js → p-b0c963b1.js} +26 -26
  458. package/dist/peculiar/p-b0c963b1.js.map +1 -0
  459. package/dist/peculiar/p-b5389885.system.entry.js +5 -0
  460. package/dist/peculiar/p-b5389885.system.entry.js.map +1 -0
  461. package/dist/peculiar/p-c10bfa6a.system.js +369 -0
  462. package/dist/peculiar/p-c10bfa6a.system.js.map +1 -0
  463. package/dist/peculiar/p-c241e4ba.system.js +20 -0
  464. package/dist/peculiar/{p-c99507d4.system.js.map → p-c241e4ba.system.js.map} +1 -1
  465. package/dist/peculiar/p-c2995a63.system.js +5 -0
  466. package/dist/peculiar/p-c2995a63.system.js.map +1 -0
  467. package/dist/peculiar/p-c3fce3f5.entry.js +5 -0
  468. package/dist/peculiar/p-c3fce3f5.entry.js.map +1 -0
  469. package/dist/peculiar/p-dac867e8.js +5 -0
  470. package/dist/peculiar/p-dac867e8.js.map +1 -0
  471. package/dist/peculiar/p-df2c8826.system.js +135 -0
  472. package/dist/peculiar/p-df2c8826.system.js.map +1 -0
  473. package/dist/peculiar/p-e4ad4f13.system.entry.js +5 -0
  474. package/dist/peculiar/p-e4ad4f13.system.entry.js.map +1 -0
  475. package/dist/peculiar/p-e6a6e602.js +12 -0
  476. package/dist/peculiar/p-eea904d7.system.js +27 -0
  477. package/dist/peculiar/{p-ddae2f8e.system.js.map → p-eea904d7.system.js.map} +1 -1
  478. package/dist/peculiar/{p-c35b180c.entry.js → p-f8efbe93.entry.js} +3 -3
  479. package/dist/peculiar/p-f8efbe93.entry.js.map +1 -0
  480. package/dist/peculiar/peculiar.esm.js +1 -1
  481. package/dist/peculiar/peculiar.esm.js.map +1 -1
  482. package/dist/peculiar/peculiar.js +15 -15
  483. package/dist/types/components/attribute-certificate-viewer/attribute-certificate-viewer.d.ts +68 -68
  484. package/dist/types/components/button/button.d.ts +4 -4
  485. package/dist/types/components/button-menu/button-menu.d.ts +7 -7
  486. package/dist/types/components/certificate-decoder/certificate-decoder.d.ts +32 -32
  487. package/dist/types/components/certificate-details-parts/attributes/activity_description_attribute.d.ts +1 -1
  488. package/dist/types/components/certificate-details-parts/attributes/as_string_attribute.d.ts +1 -1
  489. package/dist/types/components/certificate-details-parts/attributes/basic_attribute.d.ts +1 -1
  490. package/dist/types/components/certificate-details-parts/attributes/challenge_password_attribute.d.ts +1 -1
  491. package/dist/types/components/certificate-details-parts/attributes/index.d.ts +1 -1
  492. package/dist/types/components/certificate-details-parts/attributes/insurance_value_attribute.d.ts +1 -1
  493. package/dist/types/components/certificate-details-parts/attributes/name_attribute.d.ts +1 -1
  494. package/dist/types/components/certificate-details-parts/attributes/name_part.d.ts +1 -1
  495. package/dist/types/components/certificate-details-parts/attributes/type_relationship_attribute.d.ts +1 -1
  496. package/dist/types/components/certificate-details-parts/attributes/unstructured_name_attribute.d.ts +1 -1
  497. package/dist/types/components/certificate-details-parts/attributes/valuation_ranking_attribute.d.ts +1 -1
  498. package/dist/types/components/certificate-details-parts/attributes/web_gdpr_attribute.d.ts +1 -1
  499. package/dist/types/components/certificate-details-parts/basic_information.d.ts +8 -8
  500. package/dist/types/components/certificate-details-parts/extensions/archive_rev_info_extension.d.ts +1 -1
  501. package/dist/types/components/certificate-details-parts/extensions/as_string_extension.d.ts +1 -1
  502. package/dist/types/components/certificate-details-parts/extensions/authority_key_identifier_extension.d.ts +1 -1
  503. package/dist/types/components/certificate-details-parts/extensions/basic_constraints_extension.d.ts +1 -1
  504. package/dist/types/components/certificate-details-parts/extensions/basic_extension.d.ts +1 -1
  505. package/dist/types/components/certificate-details-parts/extensions/biometric_syntax_extension.d.ts +1 -1
  506. package/dist/types/components/certificate-details-parts/extensions/ca_version_extension.d.ts +1 -1
  507. package/dist/types/components/certificate-details-parts/extensions/cabforganization_identifier_extension.d.ts +1 -1
  508. package/dist/types/components/certificate-details-parts/extensions/certificate_policies_extension.d.ts +1 -1
  509. package/dist/types/components/certificate-details-parts/extensions/certificate_template_extension.d.ts +1 -1
  510. package/dist/types/components/certificate-details-parts/extensions/certificate_transparency_extension.d.ts +1 -1
  511. package/dist/types/components/certificate-details-parts/extensions/crl_distribution_points_extension.d.ts +1 -1
  512. package/dist/types/components/certificate-details-parts/extensions/crl_number_extension.d.ts +1 -1
  513. package/dist/types/components/certificate-details-parts/extensions/crl_reason_extension.d.ts +1 -1
  514. package/dist/types/components/certificate-details-parts/extensions/enroll_cert_type_extension.d.ts +1 -1
  515. package/dist/types/components/certificate-details-parts/extensions/entrust_version_info_extension.d.ts +1 -1
  516. package/dist/types/components/certificate-details-parts/extensions/extended_key_usage_extension.d.ts +1 -1
  517. package/dist/types/components/certificate-details-parts/extensions/general_name_part.d.ts +1 -1
  518. package/dist/types/components/certificate-details-parts/extensions/index.d.ts +2 -2
  519. package/dist/types/components/certificate-details-parts/extensions/info_access_syntax_extension.d.ts +1 -1
  520. package/dist/types/components/certificate-details-parts/extensions/issuing_distribution_point_extension.d.ts +1 -1
  521. package/dist/types/components/certificate-details-parts/extensions/key_description_extension.d.ts +1 -1
  522. package/dist/types/components/certificate-details-parts/extensions/key_usage_extension.d.ts +1 -1
  523. package/dist/types/components/certificate-details-parts/extensions/lei_extension.d.ts +1 -1
  524. package/dist/types/components/certificate-details-parts/extensions/lei_role_extennsion.d.ts +1 -1
  525. package/dist/types/components/certificate-details-parts/extensions/logotype_extension.d.ts +1 -1
  526. package/dist/types/components/certificate-details-parts/extensions/name_constraints_extension.d.ts +1 -1
  527. package/dist/types/components/certificate-details-parts/extensions/netscape_cert_type_extension.d.ts +1 -1
  528. package/dist/types/components/certificate-details-parts/extensions/netscape_comment_extension.d.ts +1 -1
  529. package/dist/types/components/certificate-details-parts/extensions/policy_constraints_extension.d.ts +1 -1
  530. package/dist/types/components/certificate-details-parts/extensions/policy_mappings_extension.d.ts +1 -1
  531. package/dist/types/components/certificate-details-parts/extensions/private_key_usage_period_extension.d.ts +1 -1
  532. package/dist/types/components/certificate-details-parts/extensions/qc_statements_extension.d.ts +1 -1
  533. package/dist/types/components/certificate-details-parts/extensions/subject_alternative_name_extension.d.ts +1 -1
  534. package/dist/types/components/certificate-details-parts/extensions/subject_directory_attributes_extension.d.ts +1 -1
  535. package/dist/types/components/certificate-details-parts/extensions/subject_key_identifier_extension.d.ts +1 -1
  536. package/dist/types/components/certificate-details-parts/extensions/timestamp_extension.d.ts +1 -1
  537. package/dist/types/components/certificate-details-parts/extensions/tn_auth_list_extension.d.ts +1 -1
  538. package/dist/types/components/certificate-details-parts/holder.d.ts +1 -1
  539. package/dist/types/components/certificate-details-parts/issuer.d.ts +1 -1
  540. package/dist/types/components/certificate-details-parts/issuer_name.d.ts +2 -2
  541. package/dist/types/components/certificate-details-parts/miscellaneous.d.ts +3 -3
  542. package/dist/types/components/certificate-details-parts/public_key.d.ts +1 -1
  543. package/dist/types/components/certificate-details-parts/revoked_certificates.d.ts +1 -1
  544. package/dist/types/components/certificate-details-parts/row.d.ts +7 -7
  545. package/dist/types/components/certificate-details-parts/signature.d.ts +1 -1
  546. package/dist/types/components/certificate-details-parts/subject_name.d.ts +1 -1
  547. package/dist/types/components/certificate-details-parts/thumbprints.d.ts +1 -1
  548. package/dist/types/components/certificate-summary/certificate-summary.d.ts +2 -2
  549. package/dist/types/components/certificate-viewer/certificate-viewer.d.ts +74 -74
  550. package/dist/types/components/certificates-viewer/certificates-viewer.d.ts +75 -75
  551. package/dist/types/components/circular-progress/circular-progress.d.ts +10 -10
  552. package/dist/types/components/crl-viewer/crl-viewer.d.ts +58 -58
  553. package/dist/types/components/csr-viewer/csr-viewer.d.ts +54 -55
  554. package/dist/types/components/highlight-words/highlight-words.d.ts +8 -8
  555. package/dist/types/components/icons/actions.d.ts +1 -1
  556. package/dist/types/components/icons/arrow_bottom.d.ts +1 -1
  557. package/dist/types/components/icons/arrow_top.d.ts +1 -1
  558. package/dist/types/components/icons/cross.d.ts +1 -1
  559. package/dist/types/components/icons/details.d.ts +1 -1
  560. package/dist/types/components/icons/download.d.ts +1 -1
  561. package/dist/types/components/icons/link.d.ts +1 -1
  562. package/dist/types/components/link/link.d.ts +2 -2
  563. package/dist/types/components/text-hider/text-hider.d.ts +2 -2
  564. package/dist/types/components/typography/typography.d.ts +4 -4
  565. package/dist/types/components.d.ts +24 -0
  566. package/dist/types/constants/logs.d.ts +77 -77
  567. package/dist/types/constants/oids.d.ts +2326 -2326
  568. package/dist/types/crypto/asn_data.d.ts +6 -6
  569. package/dist/types/crypto/attribute.d.ts +21 -6
  570. package/dist/types/crypto/extension.d.ts +51 -5
  571. package/dist/types/crypto/extensions/cabforganization_identifier.d.ts +5 -5
  572. package/dist/types/crypto/index.d.ts +2 -2
  573. package/dist/types/crypto/name.d.ts +7 -7
  574. package/dist/types/crypto/pkcs10_certificate_request.d.ts +42 -0
  575. package/dist/types/crypto/provider.d.ts +15 -15
  576. package/dist/types/crypto/x509_attribute_certificate.d.ts +23 -24
  577. package/dist/types/crypto/x509_certificate.d.ts +32 -33
  578. package/dist/types/crypto/x509_crl.d.ts +33 -0
  579. package/dist/types/index.d.ts +2 -0
  580. package/dist/types/stencil-public-runtime.d.ts +29 -0
  581. package/dist/types/utils/download.d.ts +16 -16
  582. package/dist/types/utils/l10n.d.ts +56 -56
  583. package/dist/types/utils/read_file.d.ts +7 -7
  584. package/hydrate/index.d.ts +2 -2
  585. package/hydrate/index.js +11369 -9539
  586. package/package.json +21 -13
  587. package/dist/cjs/actions-19013d4a.js +0 -23
  588. package/dist/cjs/arrow_top-834fb7ec.js +0 -37
  589. package/dist/cjs/button-14e2b73f.js +0 -77
  590. package/dist/cjs/certification_request-5672c667.js.map +0 -1
  591. package/dist/cjs/crl-3f681d44.js +0 -322
  592. package/dist/cjs/crl-3f681d44.js.map +0 -1
  593. package/dist/cjs/cross-9872c473.js +0 -51
  594. package/dist/cjs/download-0fa5b33c.js +0 -476
  595. package/dist/cjs/download-0fa5b33c.js.map +0 -1
  596. package/dist/cjs/download-254ddc57.js +0 -23
  597. package/dist/cjs/index-efd561e9.js.map +0 -1
  598. package/dist/cjs/link-6aea0be4.js +0 -25
  599. package/dist/cjs/miscellaneous-905ec852.js +0 -1416
  600. package/dist/cjs/miscellaneous-905ec852.js.map +0 -1
  601. package/dist/cjs/x509_certificate-69764c52.js +0 -160
  602. package/dist/cjs/x509_certificate-69764c52.js.map +0 -1
  603. package/dist/collection/crypto/crl.js +0 -92
  604. package/dist/collection/crypto/crl.js.map +0 -1
  605. package/dist/collection/crypto/csr.js +0 -99
  606. package/dist/collection/crypto/csr.js.map +0 -1
  607. package/dist/esm/actions-8d745b2a.js +0 -21
  608. package/dist/esm/arrow_top-fc298828.js +0 -34
  609. package/dist/esm/button-35146bdd.js +0 -74
  610. package/dist/esm/certification_request-d5ea5973.js.map +0 -1
  611. package/dist/esm/crl-d13d9ec5.js +0 -318
  612. package/dist/esm/crl-d13d9ec5.js.map +0 -1
  613. package/dist/esm/cross-9ec9a759.js +0 -47
  614. package/dist/esm/download-0cc3077a.js +0 -21
  615. package/dist/esm/download-aacb6eff.js +0 -470
  616. package/dist/esm/download-aacb6eff.js.map +0 -1
  617. package/dist/esm/index-4079bbb5.js.map +0 -1
  618. package/dist/esm/link-ad24c3be.js +0 -23
  619. package/dist/esm/miscellaneous-cdfd8905.js +0 -1399
  620. package/dist/esm/miscellaneous-cdfd8905.js.map +0 -1
  621. package/dist/esm/x509_certificate-a9fcab55.js +0 -158
  622. package/dist/esm/x509_certificate-a9fcab55.js.map +0 -1
  623. package/dist/esm-es5/button-35146bdd.js +0 -19
  624. package/dist/esm-es5/certification_request-d5ea5973.js.map +0 -1
  625. package/dist/esm-es5/crl-d13d9ec5.js +0 -33
  626. package/dist/esm-es5/crl-d13d9ec5.js.map +0 -1
  627. package/dist/esm-es5/download-aacb6eff.js +0 -43
  628. package/dist/esm-es5/download-aacb6eff.js.map +0 -1
  629. package/dist/esm-es5/index-4079bbb5.js +0 -6
  630. package/dist/esm-es5/index-4079bbb5.js.map +0 -1
  631. package/dist/esm-es5/miscellaneous-cdfd8905.js.map +0 -1
  632. package/dist/esm-es5/x509_certificate-a9fcab55.js +0 -12
  633. package/dist/esm-es5/x509_certificate-a9fcab55.js.map +0 -1
  634. package/dist/peculiar/p-0b356bb5.js +0 -6
  635. package/dist/peculiar/p-0b356bb5.js.map +0 -1
  636. package/dist/peculiar/p-14f281b0.system.js +0 -43
  637. package/dist/peculiar/p-14f281b0.system.js.map +0 -1
  638. package/dist/peculiar/p-2fcad8cb.system.js +0 -20
  639. package/dist/peculiar/p-33196289.entry.js +0 -5
  640. package/dist/peculiar/p-33196289.entry.js.map +0 -1
  641. package/dist/peculiar/p-3b395604.system.entry.js +0 -5
  642. package/dist/peculiar/p-3b395604.system.entry.js.map +0 -1
  643. package/dist/peculiar/p-48474b8d.js +0 -12
  644. package/dist/peculiar/p-48474b8d.js.map +0 -1
  645. package/dist/peculiar/p-4a6ceeda.js +0 -97
  646. package/dist/peculiar/p-4a6ceeda.js.map +0 -1
  647. package/dist/peculiar/p-5151cb6f.system.entry.js +0 -5
  648. package/dist/peculiar/p-5151cb6f.system.entry.js.map +0 -1
  649. package/dist/peculiar/p-53784f15.system.entry.js +0 -5
  650. package/dist/peculiar/p-53784f15.system.entry.js.map +0 -1
  651. package/dist/peculiar/p-59e5ac12.js +0 -43
  652. package/dist/peculiar/p-59e5ac12.js.map +0 -1
  653. package/dist/peculiar/p-5aabeba7.system.js +0 -6
  654. package/dist/peculiar/p-5aabeba7.system.js.map +0 -1
  655. package/dist/peculiar/p-5ab007e9.entry.js +0 -5
  656. package/dist/peculiar/p-5ab007e9.entry.js.map +0 -1
  657. package/dist/peculiar/p-609ee9f0.entry.js +0 -5
  658. package/dist/peculiar/p-609ee9f0.entry.js.map +0 -1
  659. package/dist/peculiar/p-67156853.js.map +0 -1
  660. package/dist/peculiar/p-6cb88fd6.system.js +0 -13
  661. package/dist/peculiar/p-6daee4d7.system.js +0 -369
  662. package/dist/peculiar/p-6daee4d7.system.js.map +0 -1
  663. package/dist/peculiar/p-6e48afc4.system.js +0 -34
  664. package/dist/peculiar/p-6e48afc4.system.js.map +0 -1
  665. package/dist/peculiar/p-718982f4.system.entry.js +0 -111
  666. package/dist/peculiar/p-718982f4.system.entry.js.map +0 -1
  667. package/dist/peculiar/p-7f9beaa8.js +0 -19
  668. package/dist/peculiar/p-80832207.system.js +0 -5
  669. package/dist/peculiar/p-80832207.system.js.map +0 -1
  670. package/dist/peculiar/p-8fac1d56.js +0 -33
  671. package/dist/peculiar/p-8fac1d56.js.map +0 -1
  672. package/dist/peculiar/p-94a453d7.js +0 -12
  673. package/dist/peculiar/p-a3eeb94b.system.js +0 -5
  674. package/dist/peculiar/p-a67b8793.system.entry.js.map +0 -1
  675. package/dist/peculiar/p-a720c0a5.system.entry.js +0 -13
  676. package/dist/peculiar/p-a720c0a5.system.entry.js.map +0 -1
  677. package/dist/peculiar/p-a7386b78.entry.js +0 -12
  678. package/dist/peculiar/p-a7386b78.entry.js.map +0 -1
  679. package/dist/peculiar/p-ab7dc738.system.js +0 -13
  680. package/dist/peculiar/p-ab7dc738.system.js.map +0 -1
  681. package/dist/peculiar/p-b313be9e.system.js +0 -13
  682. package/dist/peculiar/p-c35b180c.entry.js.map +0 -1
  683. package/dist/peculiar/p-c99507d4.system.js +0 -20
  684. package/dist/peculiar/p-ddae2f8e.system.js +0 -27
  685. package/dist/peculiar/p-e0f4bda5.system.js +0 -97
  686. package/dist/peculiar/p-e0f4bda5.system.js.map +0 -1
  687. package/dist/peculiar/p-e6a3b4d4.system.js +0 -13
  688. package/dist/peculiar/p-f86279f6.entry.js +0 -110
  689. package/dist/peculiar/p-f86279f6.entry.js.map +0 -1
  690. package/dist/types/crypto/crl.d.ts +0 -34
  691. package/dist/types/crypto/csr.d.ts +0 -41
  692. /package/dist/esm-es5/{actions-8d745b2a.js.map → actions-aebcbc9d.js.map} +0 -0
  693. /package/dist/esm-es5/{arrow_top-fc298828.js.map → arrow_top-aee1ee02.js.map} +0 -0
  694. /package/dist/esm-es5/{button-35146bdd.js.map → button-a2fabf9a.js.map} +0 -0
  695. /package/dist/esm-es5/{cross-9ec9a759.js.map → cross-1377606f.js.map} +0 -0
  696. /package/dist/esm-es5/{download-0cc3077a.js.map → download-14dc1047.js.map} +0 -0
  697. /package/dist/esm-es5/{link-ad24c3be.js.map → link-7e4e9060.js.map} +0 -0
  698. /package/dist/peculiar/{p-6cb88fd6.system.js.map → p-243244af.system.js.map} +0 -0
  699. /package/dist/peculiar/{p-0fc2e2b4.js.map → p-27ca6743.js.map} +0 -0
  700. /package/dist/peculiar/{p-a3eeb94b.system.js.map → p-28b4d316.system.js.map} +0 -0
  701. /package/dist/peculiar/{p-7f9beaa8.js.map → p-4bc5ddbe.js.map} +0 -0
  702. /package/dist/peculiar/{p-b313be9e.system.js.map → p-5a662d6f.system.js.map} +0 -0
  703. /package/dist/peculiar/{p-e6a3b4d4.system.js.map → p-8bbee8f4.system.js.map} +0 -0
  704. /package/dist/peculiar/{p-370cee20.js.map → p-99efefea.js.map} +0 -0
  705. /package/dist/peculiar/{p-1ceb0fe3.js.map → p-a9487007.js.map} +0 -0
  706. /package/dist/peculiar/{p-17e3c47b.js.map → p-ae91d778.js.map} +0 -0
  707. /package/dist/peculiar/{p-94a453d7.js.map → p-e6a6e602.js.map} +0 -0
@@ -0,0 +1,1418 @@
1
+ /*!
2
+ * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
+ */
4
+ 'use strict';
5
+
6
+ const index = require('./index-e2ae280a.js');
7
+ const certification_request = require('./certification_request-815ec558.js');
8
+ const link = require('./link-a3d3799d.js');
9
+ const button = require('./button-87086210.js');
10
+ const download = require('./download-820d66ba.js');
11
+
12
+ /**
13
+ * @license
14
+ * Copyright (c) Peculiar Ventures, LLC.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */
19
+ function getStringByOID(value) {
20
+ const oid = certification_request.OIDs[value];
21
+ if (oid) {
22
+ return `${oid} (${value})`;
23
+ }
24
+ return value;
25
+ }
26
+
27
+ /**
28
+ * @license
29
+ * Copyright (c) Peculiar Ventures, LLC.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */
34
+ function camelCaseToWords(value) {
35
+ const result = value.replace(/([A-Z])/g, ' $1');
36
+ return result.charAt(0).toUpperCase() + result.slice(1);
37
+ }
38
+
39
+ /**
40
+ * @license
41
+ * Copyright (c) Peculiar Ventures, LLC.
42
+ *
43
+ * This source code is licensed under the MIT license found in the
44
+ * LICENSE file in the root directory of this source tree.
45
+ */
46
+ const getLEILink = (lei) => `https://search.gleif.org/#/record/${lei}`;
47
+ const getDNSNameLink = (dnsName) => `https://search.censys.io/search?resource=hosts&q=dns.names%3A${dnsName}`;
48
+ const getIPAddressLink = (ipAddress) => `https://search.censys.io/search?resource=hosts&q=ip%3A${ipAddress}`;
49
+
50
+ /**
51
+ * @license
52
+ * Copyright (c) Peculiar Ventures, LLC.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE file in the root directory of this source tree.
56
+ */
57
+ function isLink(value) {
58
+ return value.indexOf('http') === 0;
59
+ }
60
+
61
+ /**
62
+ * @license
63
+ * Copyright (c) Peculiar Ventures, LLC.
64
+ *
65
+ * This source code is licensed under the MIT license found in the
66
+ * LICENSE file in the root directory of this source tree.
67
+ */
68
+ const TableRowTable = (_, children) => (index.h("tr", null,
69
+ index.h("td", { colSpan: 2 },
70
+ index.h("table", null, children))));
71
+ const RowTitle = (props) => {
72
+ const { value } = props;
73
+ if (!value) {
74
+ return null;
75
+ }
76
+ return [
77
+ index.h("tr", { class: "title" },
78
+ index.h("td", { colSpan: 2 },
79
+ index.h(button.Typography, { variant: "s1", color: "black" }, value))),
80
+ index.h("tr", null,
81
+ index.h("td", { colSpan: 2, class: "divider" },
82
+ index.h("span", null))),
83
+ ];
84
+ };
85
+ const RowValue = (props) => {
86
+ const { name, value, monospace, collapse, href, extraValue, } = props;
87
+ if (!name) {
88
+ return null;
89
+ }
90
+ if (value === undefined || value === null) {
91
+ return null;
92
+ }
93
+ let elementValue;
94
+ if (collapse) {
95
+ elementValue = (index.h("peculiar-text-hider", null, value));
96
+ }
97
+ else {
98
+ elementValue = value;
99
+ }
100
+ const hasValue = !!value.toString();
101
+ return (index.h("tr", null,
102
+ index.h("td", { colSpan: hasValue ? 1 : 2 },
103
+ index.h(button.Typography, { variant: "b2", color: "gray-9" }, name)),
104
+ hasValue && (index.h("td", { class: {
105
+ monospace,
106
+ } }, (isLink(value.toString()) || href) ? (index.h(link.Link, { variant: "b2", href: href || value.toString() }, value)) : (index.h(button.Typography, { variant: "b2", color: "black" },
107
+ elementValue,
108
+ extraValue))))));
109
+ };
110
+
111
+ /**
112
+ * @license
113
+ * Copyright (c) Peculiar Ventures, LLC.
114
+ *
115
+ * This source code is licensed under the MIT license found in the
116
+ * LICENSE file in the root directory of this source tree.
117
+ */
118
+ const BasicInformation = (props) => {
119
+ const { serialNumber, version, validity, notBefore, notAfter, lastUpdate, nextUpdate, type, } = props;
120
+ return [
121
+ index.h(RowTitle, { value: certification_request.l10n.getString('basicInformation') }),
122
+ index.h(RowValue, { name: certification_request.l10n.getString('type'), value: type }),
123
+ index.h(RowValue, { name: certification_request.l10n.getString('serialNumber'), value: serialNumber, monospace: true }),
124
+ index.h(RowValue, { name: certification_request.l10n.getString('version'), value: version }),
125
+ index.h(RowValue, { name: certification_request.l10n.getString('validity'), value: validity }),
126
+ index.h(RowValue, { name: certification_request.l10n.getString('issued'), value: notBefore ? certification_request.dateShort(notBefore) : undefined }),
127
+ index.h(RowValue, { name: certification_request.l10n.getString('expired'), value: notAfter ? certification_request.dateShort(notAfter) : undefined }),
128
+ index.h(RowValue, { name: certification_request.l10n.getString('lastUpdate'), value: lastUpdate ? certification_request.dateShort(lastUpdate) : undefined }),
129
+ index.h(RowValue, { name: certification_request.l10n.getString('nextUpdate'), value: nextUpdate ? certification_request.dateShort(nextUpdate) : undefined }),
130
+ ];
131
+ };
132
+
133
+ /**
134
+ * @license
135
+ * Copyright (c) Peculiar Ventures, LLC.
136
+ *
137
+ * This source code is licensed under the MIT license found in the
138
+ * LICENSE file in the root directory of this source tree.
139
+ */
140
+ function getPublicKeyModulus(publicKey) {
141
+ if (publicKey.params && 'modulus' in publicKey.params) {
142
+ let length = publicKey.params.modulus.byteLength;
143
+ if (length % 2) {
144
+ length -= 1;
145
+ }
146
+ return length * 8;
147
+ }
148
+ return null;
149
+ }
150
+ function getPublicKeyExponent(publicKey) {
151
+ if (publicKey.params && 'publicExponent' in publicKey.params) {
152
+ return publicKey.params.publicExponent.byteLength === 3
153
+ ? 65537
154
+ : 3;
155
+ }
156
+ return null;
157
+ }
158
+ const PublicKey = (props) => {
159
+ const { publicKey } = props;
160
+ if (!publicKey) {
161
+ return null;
162
+ }
163
+ function renderKeyDetails(key) {
164
+ return [
165
+ index.h(RowValue, { name: certification_request.l10n.getString('algorithm'), value: getStringByOID(key.algorithm) }),
166
+ index.h(RowValue, { name: certification_request.l10n.getString('namedCurve'), value: getStringByOID((key.params && 'namedCurve' in key.params) ? key.params.namedCurve : undefined) }),
167
+ index.h(RowValue, { name: certification_request.l10n.getString('exponent'), value: getPublicKeyExponent(key) }),
168
+ index.h(RowValue, { name: certification_request.l10n.getString('modulus'), value: getPublicKeyModulus(key) }),
169
+ index.h(RowValue, { name: certification_request.l10n.getString('value'), value: certification_request.Convert_1.ToHex(key.value), monospace: true, collapse: true }),
170
+ ];
171
+ }
172
+ return [
173
+ index.h(RowTitle, { value: certification_request.l10n.getString('publicKeyInfo') }),
174
+ renderKeyDetails(publicKey),
175
+ (Array.isArray(publicKey.params) && publicKey.params.length && publicKey.params.map((param) => (index.h(TableRowTable, null, renderKeyDetails(param))))),
176
+ ];
177
+ };
178
+
179
+ /**
180
+ * @license
181
+ * Copyright (c) Peculiar Ventures, LLC.
182
+ *
183
+ * This source code is licensed under the MIT license found in the
184
+ * LICENSE file in the root directory of this source tree.
185
+ */
186
+ const SubjectName = (props) => {
187
+ const { name } = props;
188
+ return [
189
+ index.h(RowTitle, { value: certification_request.l10n.getString('subjectName') }),
190
+ name.map((n) => (index.h(RowValue, { name: n.name || n.type, value: n.value }))),
191
+ ];
192
+ };
193
+
194
+ /**
195
+ * @license
196
+ * Copyright (c) Peculiar Ventures, LLC.
197
+ *
198
+ * This source code is licensed under the MIT license found in the
199
+ * LICENSE file in the root directory of this source tree.
200
+ */
201
+ const IssuerName = (props) => {
202
+ const { name, issuerDnLink } = props;
203
+ const title = certification_request.l10n.getString('issuerName');
204
+ return [
205
+ index.h(RowTitle, { value: issuerDnLink ? (index.h(link.Link, { href: issuerDnLink }, title)) : title }),
206
+ name.map((n) => (index.h(RowValue, { name: n.name || n.type, value: n.value }))),
207
+ ];
208
+ };
209
+
210
+ /**
211
+ * @license
212
+ * Copyright (c) Peculiar Ventures, LLC.
213
+ *
214
+ * This source code is licensed under the MIT license found in the
215
+ * LICENSE file in the root directory of this source tree.
216
+ */
217
+ const Signature = (props) => {
218
+ const { signature } = props;
219
+ if (!signature) {
220
+ return null;
221
+ }
222
+ function renderSignatureDetails(data) {
223
+ return [
224
+ index.h(RowValue, { name: certification_request.l10n.getString('algorithm'), value: getStringByOID(data.algorithm) }),
225
+ index.h(RowValue, { name: certification_request.l10n.getString('value'), value: certification_request.Convert_1.ToHex(data.value), monospace: true, collapse: true }),
226
+ ];
227
+ }
228
+ return [
229
+ index.h(RowTitle, { value: certification_request.l10n.getString('signature') }),
230
+ renderSignatureDetails(signature),
231
+ (signature.params && signature.params.length && signature.params.map((param) => (index.h(TableRowTable, null, renderSignatureDetails(param))))),
232
+ ];
233
+ };
234
+
235
+ /**
236
+ * @license
237
+ * Copyright (c) Peculiar Ventures, LLC.
238
+ *
239
+ * This source code is licensed under the MIT license found in the
240
+ * LICENSE file in the root directory of this source tree.
241
+ */
242
+ const Thumbprints = (props) => {
243
+ const { thumbprints } = props;
244
+ if (!thumbprints) {
245
+ return null;
246
+ }
247
+ const keys = Object.keys(thumbprints);
248
+ if (!keys.length) {
249
+ return null;
250
+ }
251
+ return [
252
+ index.h(RowTitle, { value: certification_request.l10n.getString('fingerprints') }),
253
+ keys.map((name) => (index.h(RowValue, { name: name, value: thumbprints[name], monospace: true }))),
254
+ ];
255
+ };
256
+
257
+ /**
258
+ * @license
259
+ * Copyright (c) Peculiar Ventures, LLC.
260
+ *
261
+ * This source code is licensed under the MIT license found in the
262
+ * LICENSE file in the root directory of this source tree.
263
+ */
264
+ const BasicExtension = (props, children) => {
265
+ const { extension } = props;
266
+ return ([
267
+ index.h(RowValue, { name: "Name", value: getStringByOID(extension.asn.extnID) }),
268
+ index.h(RowValue, { name: "Critical", value: extension.asn.critical ? certification_request.l10n.getString('yes') : certification_request.l10n.getString('no') }),
269
+ children,
270
+ index.h("tr", null,
271
+ index.h("td", { colSpan: 2, class: "divider" },
272
+ index.h("span", null))),
273
+ ]);
274
+ };
275
+
276
+ /**
277
+ * @license
278
+ * Copyright (c) Peculiar Ventures, LLC.
279
+ *
280
+ * This source code is licensed under the MIT license found in the
281
+ * LICENSE file in the root directory of this source tree.
282
+ */
283
+ const KeyUsageExtension = (props) => {
284
+ const { extension } = props;
285
+ return (index.h(BasicExtension, { extension: extension },
286
+ index.h(RowValue, { name: "Usage", value: extension.value.toJSON().join(', ') })));
287
+ };
288
+
289
+ /**
290
+ * @license
291
+ * Copyright (c) Peculiar Ventures, LLC.
292
+ *
293
+ * This source code is licensed under the MIT license found in the
294
+ * LICENSE file in the root directory of this source tree.
295
+ */
296
+ const BasicConstraintsExtension = (props) => {
297
+ const { extension } = props;
298
+ return (index.h(BasicExtension, { extension: extension },
299
+ index.h(RowValue, { name: "Certificate Authority", value: extension.value.cA ? certification_request.l10n.getString('yes') : certification_request.l10n.getString('no') }),
300
+ index.h(RowValue, { name: "Path Length Constraint", value: extension.value.pathLenConstraint })));
301
+ };
302
+
303
+ /**
304
+ * @license
305
+ * Copyright (c) Peculiar Ventures, LLC.
306
+ *
307
+ * This source code is licensed under the MIT license found in the
308
+ * LICENSE file in the root directory of this source tree.
309
+ */
310
+ const ExtendedKeyUsageExtension = (props) => {
311
+ const { extension } = props;
312
+ return (index.h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
313
+ index.h(RowValue, { name: "Purposes", value: "" }),
314
+ extension.value.map((usage) => (index.h(TableRowTable, null,
315
+ index.h(RowValue, { name: "Purpose", value: getStringByOID(usage) })))),
316
+ ])));
317
+ };
318
+
319
+ /**
320
+ * @license
321
+ * Copyright (c) Peculiar Ventures, LLC.
322
+ *
323
+ * This source code is licensed under the MIT license found in the
324
+ * LICENSE file in the root directory of this source tree.
325
+ */
326
+ const SubjectKeyIdentifierExtension = (props) => {
327
+ const { extension, getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink } = props;
328
+ const keyId = certification_request.Convert_1.ToHex(extension.value.buffer);
329
+ const childrenLink = getSubjectKeyIdChildrenLink(keyId);
330
+ const siblingsLink = getSubjectKeyIdSiblingsLink(keyId);
331
+ return (index.h(BasicExtension, { extension: extension },
332
+ index.h(RowValue, { name: "Key ID", value: keyId, monospace: true, extraValue: [
333
+ childrenLink && (index.h("span", null,
334
+ "\u00A0[",
335
+ index.h(link.Link, { href: childrenLink }, "children"),
336
+ "]")),
337
+ siblingsLink && (index.h("span", null,
338
+ "\u00A0[",
339
+ index.h(link.Link, { href: siblingsLink }, "siblings"),
340
+ "]")),
341
+ ] })));
342
+ };
343
+
344
+ /**
345
+ * @license
346
+ * Copyright (c) Peculiar Ventures, LLC.
347
+ *
348
+ * This source code is licensed under the MIT license found in the
349
+ * LICENSE file in the root directory of this source tree.
350
+ */
351
+ const AuthorityKeyIdentifierExtension = (props) => {
352
+ const { extension, getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink } = props;
353
+ const keyId = certification_request.Convert_1.ToHex(extension.value.keyIdentifier.buffer);
354
+ const parentLink = getAuthKeyIdParentLink(keyId);
355
+ const siblingsLink = getAuthKeyIdSiblingsLink(keyId);
356
+ return (index.h(BasicExtension, { extension: extension },
357
+ index.h(RowValue, { name: "Key ID", value: keyId, monospace: true, extraValue: [
358
+ parentLink && (index.h("span", null,
359
+ "\u00A0[",
360
+ index.h(link.Link, { href: parentLink }, "parents"),
361
+ "]")),
362
+ siblingsLink && (index.h("span", null,
363
+ "\u00A0[",
364
+ index.h(link.Link, { href: siblingsLink }, "siblings"),
365
+ "]")),
366
+ ] })));
367
+ };
368
+
369
+ /**
370
+ * @license
371
+ * Copyright (c) Peculiar Ventures, LLC.
372
+ *
373
+ * This source code is licensed under the MIT license found in the
374
+ * LICENSE file in the root directory of this source tree.
375
+ */
376
+ const names = {
377
+ otherName: 'Other Name',
378
+ rfc822Name: 'RFC 822 Name',
379
+ dNSName: 'DNS Name',
380
+ x400Address: 'X400 Address',
381
+ directoryName: 'Directory Name',
382
+ ediPartyName: 'Edi Party Name ',
383
+ uniformResourceIdentifier: 'URI',
384
+ iPAddress: 'IP Address',
385
+ registeredID: 'Registered ID',
386
+ };
387
+ const GeneralNamePart = (props) => {
388
+ const { generalName, getDNSNameLink, getIPAddressLink } = props;
389
+ if (!generalName) {
390
+ return null;
391
+ }
392
+ return Object.keys(generalName).map((name) => {
393
+ const value = generalName[name];
394
+ if (value instanceof certification_request.Name$1) {
395
+ return [
396
+ index.h(RowValue, { name: names[name] || name, value: "" }),
397
+ index.h(TableRowTable, null, value.map((relativeDistinguishedName) => (relativeDistinguishedName.map((attributeTypeAndValue) => (index.h(RowValue, { name: certification_request.OIDs[attributeTypeAndValue.type] || attributeTypeAndValue.type, value: attributeTypeAndValue.value.toString() })))))),
398
+ ];
399
+ }
400
+ if (value instanceof certification_request.OtherName) {
401
+ try {
402
+ const text = certification_request.AsnParser.parse(value.value, certification_request.DisplayText);
403
+ return (index.h(RowValue, { name: certification_request.OIDs[value.typeId] || value.typeId, value: text.toString() }));
404
+ }
405
+ catch (error) {
406
+ //
407
+ }
408
+ try {
409
+ const text = certification_request.AsnParser.parse(value.value, certification_request.UserNotice);
410
+ if (text.explicitText) {
411
+ return (index.h(RowValue, { name: certification_request.OIDs[value.typeId] || value.typeId, value: text.explicitText.toString() }));
412
+ }
413
+ }
414
+ catch (error) {
415
+ //
416
+ }
417
+ return (index.h(RowValue, { name: certification_request.OIDs[value.typeId] || value.typeId, value: certification_request.Convert_1.ToHex(value.value), monospace: true }));
418
+ }
419
+ if (certification_request.BufferSourceConverter_1.isBufferSource(value)) {
420
+ return (index.h(RowValue, { name: names[name] || name, value: certification_request.Convert_1.ToString(value) }));
421
+ }
422
+ if (value instanceof certification_request.EDIPartyName) {
423
+ return (index.h(RowValue, { name: names[name] || name, value: value.partyName.toString() }));
424
+ }
425
+ if (name === 'dNSName') {
426
+ return (index.h(RowValue, { name: names[name] || name, value: value, href: getDNSNameLink(value) }));
427
+ }
428
+ if (name === 'iPAddress') {
429
+ return (index.h(RowValue, { name: names[name] || name, value: value, href: getIPAddressLink(value) }));
430
+ }
431
+ return (index.h(RowValue, { name: names[name] || name, value: value }));
432
+ });
433
+ };
434
+
435
+ /**
436
+ * @license
437
+ * Copyright (c) Peculiar Ventures, LLC.
438
+ *
439
+ * This source code is licensed under the MIT license found in the
440
+ * LICENSE file in the root directory of this source tree.
441
+ */
442
+ const CRLDistributionPointsExtension = (props) => {
443
+ const { extension } = props;
444
+ return (index.h(BasicExtension, { extension: extension }, extension.value.map((point) => {
445
+ var _a, _b;
446
+ return ([
447
+ (_a = point.distributionPoint) === null || _a === void 0 ? void 0 : _a.fullName.map((gn) => (index.h(GeneralNamePart, Object.assign({ generalName: gn }, props)))),
448
+ (_b = point.cRLIssuer) === null || _b === void 0 ? void 0 : _b.map((gn) => (index.h(GeneralNamePart, Object.assign({ generalName: gn }, props)))),
449
+ ]);
450
+ })));
451
+ };
452
+
453
+ /**
454
+ * @license
455
+ * Copyright (c) Peculiar Ventures, LLC.
456
+ *
457
+ * This source code is licensed under the MIT license found in the
458
+ * LICENSE file in the root directory of this source tree.
459
+ */
460
+ const InfoAccessSyntaxExtension = (props) => {
461
+ const { extension } = props;
462
+ return (index.h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
463
+ index.h(RowValue, { name: "Descriptions", value: "" }),
464
+ extension.value.map((description) => (index.h(TableRowTable, null,
465
+ index.h(RowValue, { name: "Method", value: getStringByOID(description.accessMethod) }),
466
+ index.h(GeneralNamePart, Object.assign({ generalName: description.accessLocation }, props))))),
467
+ ])));
468
+ };
469
+
470
+ /**
471
+ * @license
472
+ * Copyright (c) Peculiar Ventures, LLC.
473
+ *
474
+ * This source code is licensed under the MIT license found in the
475
+ * LICENSE file in the root directory of this source tree.
476
+ */
477
+ const SubjectAlternativeNameExtension = (props) => {
478
+ const { extension } = props;
479
+ return (index.h(BasicExtension, { extension: extension }, extension.value.map((gn) => (index.h(GeneralNamePart, Object.assign({ generalName: gn }, props))))));
480
+ };
481
+
482
+ /**
483
+ * @license
484
+ * Copyright (c) Peculiar Ventures, LLC.
485
+ *
486
+ * This source code is licensed under the MIT license found in the
487
+ * LICENSE file in the root directory of this source tree.
488
+ */
489
+ const CertificatePoliciesExtension = (props) => {
490
+ const { extension } = props;
491
+ return (index.h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
492
+ index.h(RowValue, { name: "Policies", value: "" }),
493
+ extension.value.map((policy) => (index.h(TableRowTable, null,
494
+ index.h(RowValue, { name: "Policy ID", value: getStringByOID(policy.policyIdentifier) }),
495
+ policy.policyQualifiers && Boolean(policy.policyQualifiers.length) && ([
496
+ index.h(RowValue, { name: "Qualifiers", value: "" }),
497
+ policy.policyQualifiers.map((qualifierInfo) => {
498
+ const data = [
499
+ index.h(RowValue, { name: "Qualifier ID", value: getStringByOID(qualifierInfo.policyQualifierId) }),
500
+ ];
501
+ if (qualifierInfo.policyQualifierId === '1.3.6.1.5.5.7.2.1') {
502
+ const value = certification_request.AsnParser.parse(qualifierInfo.qualifier, certification_request.DisplayText);
503
+ data.push(index.h(RowValue, { name: "Value", value: value.toString() }));
504
+ }
505
+ if (qualifierInfo.policyQualifierId === '1.3.6.1.5.5.7.2.2') {
506
+ const value = certification_request.AsnParser.parse(qualifierInfo.qualifier, certification_request.UserNotice);
507
+ if (value.explicitText) {
508
+ data.push(index.h(RowValue, { name: "Value", value: value.explicitText.toString() }));
509
+ }
510
+ }
511
+ return (index.h(TableRowTable, null, data));
512
+ }),
513
+ ])))),
514
+ ])));
515
+ };
516
+
517
+ /**
518
+ * @license
519
+ * Copyright (c) Peculiar Ventures, LLC.
520
+ *
521
+ * This source code is licensed under the MIT license found in the
522
+ * LICENSE file in the root directory of this source tree.
523
+ */
524
+ const logs = {
525
+ '9606c02c690033aa1d145f59c6e2648d0549f0df96aab8db915a70d8ecf390a5': 'Akamai CT',
526
+ '39376f545f7b4607f59742d768cd5d2437bf3473b6534a4834bcf72e681c83c9': 'Alpha CT',
527
+ a577ac9ced7548dd8f025b67a241089df86e0f476ec203c2ecbedb185f282638: 'CNNIC CT',
528
+ cdb5179b7fc1c046feea31136a3f8f002e6182faf8896fecc8b2f5b5ab604900: 'Certly.IO',
529
+ '1fbc36e002ede97f40199e86b3573b8a4217d80187746ad0da03a06054d20df4': 'Cloudflare “Nimbus2017”',
530
+ db74afeecb29ecb1feca3e716d2ce5b9aabb36f7847183c75d9d4f37b61fbf64: 'Cloudflare “Nimbus2018”',
531
+ '747eda8331ad331091219cce254f4270c2bffd5e422008c6373579e6107bcc56': 'Cloudflare “Nimbus2019”',
532
+ '5ea773f9df56c0e7b536487dd049e0327a919a0c84a112128418759681714558': 'Cloudflare “Nimbus2020”',
533
+ '4494652eb0eeceafc44007d8a8fe28c0dae682bed8cb31b53fd33396b5b681a8': 'Cloudflare “Nimbus2021”',
534
+ '41c8cab1df22464a10c6a13a0942875e4e318b1b03ebeb4bc768f090629606f6': 'Cloudflare “Nimbus2022”',
535
+ '7a328c54d8b72db620ea38e0521ee98416703213854d3bd22bc13a57a352eb52': 'Cloudflare “Nimbus2023”',
536
+ '6ff141b5647e4222f7ef052cefae7c21fd608e27d2af5a6e9f4b8a37d6633ee5': 'DigiCert Nessie2018',
537
+ fe446108b1d01ab78a62ccfeab6ab2b2babff3abdad80a4d8b30df2d0008830c: 'DigiCert Nessie2019',
538
+ c652a0ec48ceb3fcab170992c43a87413309e80065a26252401ba3362a17c565: 'DigiCert Nessie2020',
539
+ eec095ee8d72640f92e3c3b91bc712a3696a097b4b6a1a1438e647b2cbedc5f9: 'DigiCert Nessie2021',
540
+ '51a3b0f5fd01799c566db837788f0ca47acc1b27cbf79e88429a0dfed48b05e5': 'DigiCert Nessie2022',
541
+ b3737707e18450f86386d605a9dc11094a792db1670c0b87dcf0030e7936a59a: 'DigiCert Nessie2023',
542
+ '5614069a2fd7c2ecd3f5e1bd44b23ec74676b9bc99115cc0ef949855d689d0dd': 'DigiCert Server',
543
+ '8775bfe7597cf88c43995fbdf36eff568d475636ff4ab560c1b4eaff5ea0830f': 'DigiCert Server 2',
544
+ c1164ae0a772d2d4392dc80ac10770d4f0c49bde991a4840c1fa075164f63360: 'DigiCert Yeti2018',
545
+ e2694bae26e8e94009e8861bb63b83d43ee7fe7488fba48f2893019dddf1dbfe: 'DigiCert Yeti2019',
546
+ f095a459f200d18240102d2f93888ead4bfe1d47e399e1d034a6b0a8aa8eb273: 'DigiCert Yeti2020',
547
+ '5cdc4392fee6ab4544b15e9ad456e61037fbd5fa47dca17394b25ee6f6c70eca': 'DigiCert Yeti2021',
548
+ '2245450759552456963fa12ff1f76d86e0232663adc04b7f5dc6835c6ee20f02': 'DigiCert Yeti2022',
549
+ '35cf191bbfb16c57bf0fad4c6d42cbbbb627202651ea3fe12aefa803c33bd64c': 'DigiCert Yeti2023',
550
+ '717ea7420975be84a2723553f1777c26dd51af4e102144094d9019b462fb6668': 'GDCA 1',
551
+ '14308d90ccd030135005c01ca526d81e84e87624e39b6248e08f724aea3bb42a': 'GDCA 2',
552
+ c9cf890a21109c666cc17a3ed065c930d0e0135a9feba85af14210b8072421aa: 'GDCA CT #1',
553
+ '924a30f909336ff435d6993a10ac75a2c641728e7fc2d659ae6188ffad40ce01': 'GDCA CT #2',
554
+ fad4c97cc49ee2f8ac85c5ea5cea09d0220dbbf4e49c6b50662ff868f86b8c28: 'Google “Argon2017”',
555
+ a4501269055a15545e6211ab37bc103f62ae5576a45e4b1714453e1b22106a25: 'Google “Argon2018”',
556
+ '63f2dbcde83bcc2ccf0b728427576b33a48d61778fbd75a638b1c768544bd88d': 'Google “Argon2019”',
557
+ b21e05cc8ba2cd8a204e8766f92bb98a2520676bdafa70e7b249532def8b905e: 'Google “Argon2020”',
558
+ f65c942fd1773022145418083094568ee34d131933bfdf0c2f200bcc4ef164e3: 'Google “Argon2021”',
559
+ '2979bef09e393921f056739f63a577e5be577d9c600af8f94d5d265c255dc784': 'Google “Argon2022”',
560
+ e83ed0da3ef5063532e75728bc896bc903d3cbd1116beceb69e1777d6d06bd6e: 'Google “Argon2023”',
561
+ '68f698f81f6482be3a8ceeb9281d4cfc71515d6793d444d10a67acbb4f4ffbc4': 'Google “Aviator”',
562
+ c3bf03a7e1ca8841c607bae3ff4270fca5ec45b186ebbe4e2cf3fc778630f5f6: 'Google “Crucible”',
563
+ '1d024b8eb1498b344dfd87ea3efc0996f7506f235d1d497061a4773c439c25fb': 'Google “Daedalus”',
564
+ '293c519654c83965baaa50fc5807d4b76fbf587a2972dca4c30cf4e54547f478': 'Google “Icarus”',
565
+ a4b90990b418581487bb13a2cc67700a3c359804f91bdfb8e377cd0ec80ddc10: 'Google “Pilot”',
566
+ ee4bbdb775ce60bae142691fabe19e66a30f7e5fb072d88300c47b897aa8fdcb: 'Google “Rocketeer”',
567
+ bbd9dfbc1f8a71b593942397aa927b473857950aab52e81a909664368e1ed185: 'Google “Skydiver”',
568
+ '52eb4b225ec896974850675f23e43bc1d021e3214ce52ecd5fa87c203cdfca03': 'Google “Solera2018”',
569
+ '0b760e9a8b9a682f88985b15e947501a56446bba8830785c3842994386450c00': 'Google “Solera2019”',
570
+ '1fc72ce5a1b799f400c359bff96ca3913548e8644220610952e9ba1774f7bac7': 'Google “Solera2020”',
571
+ a3c99845e80ab7ce00157b3742df0207dd272b2b602ecf98ee2c12db9c5ae7e7: 'Google “Solera2021”',
572
+ '697aafca1a6b536fae21205046debad7e0eaea13d2432e6e9d8fb379f2b9aaf3': 'Google “Solera2022”',
573
+ a899d8780c9290aaf462f31880ccfbd52451e970d0fbf591ef75b0d99b645681: 'Google “Submariner”',
574
+ b0cc83e5a5f97d6baf7c09cc284904872ac7e88b132c6350b7c6fd26e16c6c77: 'Google “Testtube”',
575
+ b10cd559a6d67846811f7df9a51532739ac48d703bea0323da5d38755bc0ad4e: 'Google “Xenon2018”',
576
+ '084114980071532c16190460bcfc47fdc2653afa292c72b37ff863ae29ccc9f0': 'Google “Xenon2019”',
577
+ '07b75c1be57d68fff1b0c61d2315c7bae6577c5794b76aeebc613a1a69d3a21c': 'Google “Xenon2020”',
578
+ '7d3ef2f88fff88556824c2c0ca9e5289792bc50e78097f2e6a9768997e22f0d7': 'Google “Xenon2021”',
579
+ '46a555eb75fa912030b5a28969f4f37d112c4174befd49b885abf2fc70fe6d47': 'Google “Xenon2022”',
580
+ '7461b4a09cfb3d41d75159575b2e7649a445a8d27709b0cc564a6482b7eb41a3': 'Izenpe',
581
+ '8941449c70742e06b9fc9ce7b116ba0024aa36d59af44f0204404f00f7ea8566': 'Izenpe “Argi”',
582
+ '296afa2d568bca0d2ea844956ae9721fc35fa355ecda99693aafd458a71aefdd': 'Let“s Encrypt ”Clicky”',
583
+ '537b69a3564335a9c04904e39593b2c298eb8d7a6e83023635c627248cd6b440': 'Nordu “flimsy”',
584
+ aae70b7f3cb8d566c86c2f16979c9f445f69ab0eb4535589b2f77a030104f3cd: 'Nordu “plausible”',
585
+ e0127629e90496564e3d0147984498aa48f8adb16600eb7902a1ef9909906273: 'PuChuangSiDa CT',
586
+ cf55e28923497c340d5206d05353aeb25834b52f1f8dc9526809f212efdd7ca6: 'SHECA CT 1',
587
+ '32dc59c2d4c41968d56e14bc61ac8f0e45db39faf3c155aa4252f5001fa0c623': 'SHECA CT 2',
588
+ db76fdadac65e7d09508886e2159bd8b90352f5fead3e3dc5e22eb350acc7b98: 'Sectigo (Comodo) “Dodo” CT',
589
+ '6f5376ac31f03119d89900a45115ff77151c11d902c10029068db2089a37d913': 'Sectigo (Comodo) “Mammoth” CT',
590
+ '5581d4c2169036014aea0b9b573c53f0c0e43878702508172fa3aa1d0713d30c': 'Sectigo (Comodo) “Sabre” CT',
591
+ '34bb6ad6c3df9c03eea8a499ff7891486c9d5e5cac92d01f7bfd1bce19db48ef': 'StartCom',
592
+ ddeb1d2b7a0d4fa6208b81ad8168707e2e8e9d01d55c888d3d11c4cdb6ecbecc: 'Symantec',
593
+ a7ce4a4e6207e0addee5fdaa4b1f86768767b5d002a55d47310e7e670a95eab2: 'Symantec Deneb',
594
+ '15970488d7b997a05beb52512adee8d2e8b4a3165264121a9fabfbd5f85ad93f': 'Symantec “Sirius”',
595
+ bc78e1dfc5f63c684649334da10fa15f0979692009c081b4f3f6917f3ed9b8a5: 'Symantec “Vega”',
596
+ b0b784bc81c0ddc47544e883f05985bb9077d134d8ab88b2b2e533980b8e508b: 'Up In The Air “Behind the Sofa”',
597
+ ac3b9aed7fa9674757159e6d7d575672f9d98100941e9bdeffeca1313b75782d: 'Venafi',
598
+ '03019df3fd85a69a8ebd1facc6da9ba73e469774fe77f579fc5a08b8328c1d6b': 'Venafi Gen2 CT',
599
+ '41b2dc2e89e63ce4af1ba7bb29bf68c6dee6f9f1cc047e30dffae3b3ba259263': 'WoSign',
600
+ '63d0006026dde10bb0601f452446965ee2b6ea2cd4fbc95ac866a550af9075b7': 'WoSign 2',
601
+ '9e4ff73dc3ce220b69217c899e468076abf8d78636d5ccfc85a31a75628ba88b': 'WoSign CT #1',
602
+ };
603
+
604
+ /**
605
+ * @license
606
+ * Copyright (c) Peculiar Ventures, LLC.
607
+ *
608
+ * This source code is licensed under the MIT license found in the
609
+ * LICENSE file in the root directory of this source tree.
610
+ */
611
+ const CertificateTransparencyExtension = (props) => {
612
+ const { extension } = props;
613
+ return (index.h(BasicExtension, { extension: extension }, Boolean(extension.value.items.length) && ([
614
+ index.h(RowValue, { name: "Signed Certificate Timestamps", value: "" }),
615
+ extension.value.toJSON().map((signedCertificateTimestamp) => (index.h(TableRowTable, null,
616
+ index.h(RowValue, { name: "Version", value: signedCertificateTimestamp.version + 1 }),
617
+ index.h(RowValue, { name: "Log Operator", value: logs[signedCertificateTimestamp.logId] || signedCertificateTimestamp.logId }),
618
+ index.h(RowValue, { name: "Log Key ID", value: signedCertificateTimestamp.logId, monospace: true }),
619
+ index.h(RowValue, { name: "Timestamp", value: certification_request.dateShort(signedCertificateTimestamp.timestamp) }),
620
+ index.h(RowValue, { name: "Signature Algorithm", value: `${signedCertificateTimestamp.hashAlgorithm} ${signedCertificateTimestamp.signatureAlgorithm}`.toUpperCase() }),
621
+ index.h(RowValue, { name: "Signature", value: signedCertificateTimestamp.signature, monospace: true })))),
622
+ ])));
623
+ };
624
+
625
+ /**
626
+ * @license
627
+ * Copyright (c) Peculiar Ventures, LLC.
628
+ *
629
+ * This source code is licensed under the MIT license found in the
630
+ * LICENSE file in the root directory of this source tree.
631
+ */
632
+ const NameConstraintsExtension = (props) => {
633
+ var _a, _b;
634
+ const { extension } = props;
635
+ return (index.h(BasicExtension, { extension: extension }, (_a = extension.value.excludedSubtrees) === null || _a === void 0 ? void 0 :
636
+ _a.map((generalSubtree) => (index.h(GeneralNamePart, Object.assign({ generalName: generalSubtree.base }, props)))), (_b = extension.value.permittedSubtrees) === null || _b === void 0 ? void 0 :
637
+ _b.map((generalSubtree) => (index.h(GeneralNamePart, Object.assign({ generalName: generalSubtree.base }, props))))));
638
+ };
639
+
640
+ /**
641
+ * @license
642
+ * Copyright (c) Peculiar Ventures, LLC.
643
+ *
644
+ * This source code is licensed under the MIT license found in the
645
+ * LICENSE file in the root directory of this source tree.
646
+ */
647
+ const CertificateTemplateExtension = (props) => {
648
+ const { extension } = props;
649
+ return (index.h(BasicExtension, { extension: extension },
650
+ index.h(RowValue, { name: "Template ID", value: extension.value.templateID }),
651
+ index.h(RowValue, { name: "Template Major Version", value: extension.value.templateMajorVersion }),
652
+ index.h(RowValue, { name: "Template Minor Version", value: extension.value.templateMinorVersion })));
653
+ };
654
+
655
+ /**
656
+ * @license
657
+ * Copyright (c) Peculiar Ventures, LLC.
658
+ *
659
+ * This source code is licensed under the MIT license found in the
660
+ * LICENSE file in the root directory of this source tree.
661
+ */
662
+ const EnrollCertTypeChoiceExtension = (props) => {
663
+ const { extension } = props;
664
+ return (index.h(BasicExtension, { extension: extension },
665
+ index.h(RowValue, { name: "Name", value: extension.value.toString() })));
666
+ };
667
+
668
+ /**
669
+ * @license
670
+ * Copyright (c) Peculiar Ventures, LLC.
671
+ *
672
+ * This source code is licensed under the MIT license found in the
673
+ * LICENSE file in the root directory of this source tree.
674
+ */
675
+ const CaVersionExtension = (props) => {
676
+ const { extension } = props;
677
+ const version = extension.value.getVersion();
678
+ return (index.h(BasicExtension, { extension: extension },
679
+ index.h(RowValue, { name: "Certificate Index", value: version.certificateIndex }),
680
+ index.h(RowValue, { name: "Key Index", value: version.keyIndex })));
681
+ };
682
+
683
+ var PdsLocations_1, QcEuPDS_1, QcType_1, QcCClegislation_1;
684
+ let Iso4217CurrencyCode = class Iso4217CurrencyCode {
685
+ constructor(value) {
686
+ if (typeof value === "string") {
687
+ this.alphabetic = value;
688
+ }
689
+ else if (typeof value === "number") {
690
+ this.numeric = value;
691
+ }
692
+ }
693
+ };
694
+ certification_request.__decorate([
695
+ certification_request.AsnProp({ type: certification_request.AsnPropTypes.PrintableString })
696
+ ], Iso4217CurrencyCode.prototype, "alphabetic", void 0);
697
+ certification_request.__decorate([
698
+ certification_request.AsnProp({ type: certification_request.AsnPropTypes.PrintableString })
699
+ ], Iso4217CurrencyCode.prototype, "numeric", void 0);
700
+ Iso4217CurrencyCode = certification_request.__decorate([
701
+ certification_request.AsnType({ type: certification_request.AsnTypeTypes.Choice })
702
+ ], Iso4217CurrencyCode);
703
+ class MonetaryValue {
704
+ constructor(params = {}) {
705
+ this.currency = new Iso4217CurrencyCode();
706
+ this.amount = 0;
707
+ this.exponent = 0;
708
+ Object.assign(this, params);
709
+ }
710
+ }
711
+ certification_request.__decorate([
712
+ certification_request.AsnProp({ type: Iso4217CurrencyCode })
713
+ ], MonetaryValue.prototype, "currency", void 0);
714
+ certification_request.__decorate([
715
+ certification_request.AsnProp({ type: certification_request.AsnPropTypes.Integer })
716
+ ], MonetaryValue.prototype, "amount", void 0);
717
+ certification_request.__decorate([
718
+ certification_request.AsnProp({ type: certification_request.AsnPropTypes.Integer })
719
+ ], MonetaryValue.prototype, "exponent", void 0);
720
+ let QcEuLimitValue = class QcEuLimitValue extends MonetaryValue {
721
+ };
722
+ QcEuLimitValue = certification_request.__decorate([
723
+ certification_request.AsnType({ type: certification_request.AsnTypeTypes.Sequence })
724
+ ], QcEuLimitValue);
725
+ let QcEuRetentionPeriod = class QcEuRetentionPeriod {
726
+ constructor(value = 0) {
727
+ this.value = value;
728
+ }
729
+ };
730
+ certification_request.__decorate([
731
+ certification_request.AsnProp({ type: certification_request.AsnPropTypes.Integer })
732
+ ], QcEuRetentionPeriod.prototype, "value", void 0);
733
+ QcEuRetentionPeriod = certification_request.__decorate([
734
+ certification_request.AsnType({ type: certification_request.AsnTypeTypes.Choice })
735
+ ], QcEuRetentionPeriod);
736
+ let PdsLocation = class PdsLocation {
737
+ constructor(params = {}) {
738
+ this.url = "";
739
+ this.language = "";
740
+ Object.assign(this, params);
741
+ }
742
+ };
743
+ certification_request.__decorate([
744
+ certification_request.AsnProp({ type: certification_request.AsnPropTypes.IA5String })
745
+ ], PdsLocation.prototype, "url", void 0);
746
+ certification_request.__decorate([
747
+ certification_request.AsnProp({ type: certification_request.AsnPropTypes.PrintableString })
748
+ ], PdsLocation.prototype, "language", void 0);
749
+ PdsLocation = certification_request.__decorate([
750
+ certification_request.AsnType({ type: certification_request.AsnTypeTypes.Sequence })
751
+ ], PdsLocation);
752
+ let PdsLocations = PdsLocations_1 = class PdsLocations extends certification_request.AsnArray {
753
+ constructor(items) {
754
+ super(items);
755
+ Object.setPrototypeOf(this, PdsLocations_1.prototype);
756
+ }
757
+ };
758
+ PdsLocations = PdsLocations_1 = certification_request.__decorate([
759
+ certification_request.AsnType({ type: certification_request.AsnTypeTypes.Sequence, itemType: PdsLocation })
760
+ ], PdsLocations);
761
+ let QcEuPDS = QcEuPDS_1 = class QcEuPDS extends PdsLocations {
762
+ constructor(items) {
763
+ super(items);
764
+ Object.setPrototypeOf(this, QcEuPDS_1.prototype);
765
+ }
766
+ };
767
+ QcEuPDS = QcEuPDS_1 = certification_request.__decorate([
768
+ certification_request.AsnType({ type: certification_request.AsnTypeTypes.Sequence, itemType: PdsLocation })
769
+ ], QcEuPDS);
770
+ let QcType = QcType_1 = class QcType extends certification_request.AsnArray {
771
+ constructor(items) {
772
+ super(items);
773
+ Object.setPrototypeOf(this, QcType_1.prototype);
774
+ }
775
+ };
776
+ QcType = QcType_1 = certification_request.__decorate([
777
+ certification_request.AsnType({ type: certification_request.AsnTypeTypes.Sequence, itemType: certification_request.AsnPropTypes.ObjectIdentifier })
778
+ ], QcType);
779
+ let QcCClegislation = QcCClegislation_1 = class QcCClegislation extends certification_request.AsnArray {
780
+ constructor(items) {
781
+ super(items);
782
+ Object.setPrototypeOf(this, QcCClegislation_1.prototype);
783
+ }
784
+ };
785
+ QcCClegislation = QcCClegislation_1 = certification_request.__decorate([
786
+ certification_request.AsnType({ type: certification_request.AsnTypeTypes.Sequence, itemType: certification_request.AsnPropTypes.PrintableString })
787
+ ], QcCClegislation);
788
+ const id_etsi_qcs = "0.4.0.1862.1";
789
+ const id_etsi_qcs_qcRetentionPeriod = `${id_etsi_qcs}.3`;
790
+ const id_etsi_qcs_qcPDS = `${id_etsi_qcs}.5`;
791
+ const id_etsi_qcs_qcType = `${id_etsi_qcs}.6`;
792
+
793
+ /**
794
+ * @license
795
+ * Copyright (c) Peculiar Ventures, LLC.
796
+ *
797
+ * This source code is licensed under the MIT license found in the
798
+ * LICENSE file in the root directory of this source tree.
799
+ */
800
+ const QCStatementsExtension = (props) => {
801
+ const { extension } = props;
802
+ function renderStatementInfo(statementId, statementInfo) {
803
+ if (!statementInfo.byteLength) {
804
+ return null;
805
+ }
806
+ if (statementId === certification_request.id_qcs_pkixQCSyntax_v2) {
807
+ const semanticsInformation = certification_request.AsnParser.parse(statementInfo, certification_request.SemanticsInformation);
808
+ return (index.h(RowValue, { name: "Semantics Identifier", value: getStringByOID(semanticsInformation.semanticsIdentifier) }));
809
+ }
810
+ if (statementId === id_etsi_qcs_qcType) {
811
+ const qcTypes = certification_request.AsnParser.parse(statementInfo, QcType);
812
+ return (index.h(RowValue, { name: "QC Types", value: qcTypes.map((type) => getStringByOID(type)).join(', ') }));
813
+ }
814
+ if (statementId === id_etsi_qcs_qcRetentionPeriod) {
815
+ const retentionPeriod = certification_request.AsnParser.parse(statementInfo, QcEuRetentionPeriod);
816
+ return (index.h(RowValue, { name: "Retention Period", value: `${retentionPeriod.value} years` }));
817
+ }
818
+ if (statementId === id_etsi_qcs_qcPDS) {
819
+ const pdsLocations = certification_request.AsnParser.parse(statementInfo, PdsLocations);
820
+ return ([
821
+ index.h(RowValue, { name: "PDS Locations", value: "" }),
822
+ pdsLocations.map((location) => (index.h(TableRowTable, null,
823
+ index.h(RowValue, { name: "URL", value: location.url }),
824
+ index.h(RowValue, { name: "Language", value: location.language })))),
825
+ ]);
826
+ }
827
+ return (index.h(RowValue, { name: "Info", value: certification_request.Convert_1.ToHex(statementInfo), monospace: true }));
828
+ }
829
+ return (index.h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
830
+ index.h(RowValue, { name: "Statements", value: "" }),
831
+ extension.value.map((statement) => (index.h(TableRowTable, null,
832
+ index.h(RowValue, { name: "Statement ID", value: getStringByOID(statement.statementId) }),
833
+ renderStatementInfo(statement.statementId, statement.statementInfo)))),
834
+ ])));
835
+ };
836
+
837
+ /**
838
+ * @license
839
+ * Copyright (c) Peculiar Ventures, LLC.
840
+ *
841
+ * This source code is licensed under the MIT license found in the
842
+ * LICENSE file in the root directory of this source tree.
843
+ */
844
+ const NetscapeCommentExtension = (props) => {
845
+ const { extension } = props;
846
+ return (index.h(BasicExtension, { extension: extension },
847
+ index.h(RowValue, { name: "Comment", value: extension.value.value })));
848
+ };
849
+
850
+ /**
851
+ * @license
852
+ * Copyright (c) Peculiar Ventures, LLC.
853
+ *
854
+ * This source code is licensed under the MIT license found in the
855
+ * LICENSE file in the root directory of this source tree.
856
+ */
857
+ const NetscapeCertTypeExtension = (props) => {
858
+ const { extension } = props;
859
+ return (index.h(BasicExtension, { extension: extension },
860
+ index.h(RowValue, { name: "Type", value: extension.value.toJSON().join(', ') })));
861
+ };
862
+
863
+ /**
864
+ * @license
865
+ * Copyright (c) Peculiar Ventures, LLC.
866
+ *
867
+ * This source code is licensed under the MIT license found in the
868
+ * LICENSE file in the root directory of this source tree.
869
+ */
870
+ const LeiRoleExtension = (props) => {
871
+ const { extension } = props;
872
+ return (index.h(BasicExtension, { extension: extension },
873
+ index.h(RowValue, { name: "Role", value: extension.value.text })));
874
+ };
875
+
876
+ /**
877
+ * @license
878
+ * Copyright (c) Peculiar Ventures, LLC.
879
+ *
880
+ * This source code is licensed under the MIT license found in the
881
+ * LICENSE file in the root directory of this source tree.
882
+ */
883
+ const LeiExtension = (props) => {
884
+ const { extension, getLEILink } = props;
885
+ return (index.h(BasicExtension, { extension: extension },
886
+ index.h(RowValue, { name: "Identifier", value: extension.value.text, href: getLEILink(extension.value.text) })));
887
+ };
888
+
889
+ /**
890
+ * @license
891
+ * Copyright (c) Peculiar Ventures, LLC.
892
+ *
893
+ * This source code is licensed under the MIT license found in the
894
+ * LICENSE file in the root directory of this source tree.
895
+ */
896
+ const TimestampExtension = (props) => {
897
+ const { extension } = props;
898
+ return (index.h(BasicExtension, { extension: extension },
899
+ index.h(RowValue, { name: "Version", value: extension.value.version }),
900
+ index.h(GeneralNamePart, Object.assign({ generalName: extension.value.location }, props)),
901
+ index.h(RowValue, { name: "Requires Auth", value: extension.value.requiresAuth ? certification_request.l10n.getString('yes') : certification_request.l10n.getString('no') })));
902
+ };
903
+
904
+ /**
905
+ * @license
906
+ * Copyright (c) Peculiar Ventures, LLC.
907
+ *
908
+ * This source code is licensed under the MIT license found in the
909
+ * LICENSE file in the root directory of this source tree.
910
+ */
911
+ const ArchiveRevInfoExtension = (props) => {
912
+ const { extension } = props;
913
+ return (index.h(BasicExtension, { extension: extension },
914
+ index.h(RowValue, { name: "Version", value: extension.value.version })));
915
+ };
916
+
917
+ /**
918
+ * @license
919
+ * Copyright (c) Peculiar Ventures, LLC.
920
+ *
921
+ * This source code is licensed under the MIT license found in the
922
+ * LICENSE file in the root directory of this source tree.
923
+ */
924
+ const CRLReasonExtension = (props) => {
925
+ const { extension } = props;
926
+ return (index.h(BasicExtension, { extension: extension },
927
+ index.h(RowValue, { name: "Reason", value: extension.value.toJSON() })));
928
+ };
929
+
930
+ /**
931
+ * @license
932
+ * Copyright (c) Peculiar Ventures, LLC.
933
+ *
934
+ * This source code is licensed under the MIT license found in the
935
+ * LICENSE file in the root directory of this source tree.
936
+ */
937
+ function getAttributeValue(attribute) {
938
+ return certification_request.Convert_1.ToString(attribute.values[0]);
939
+ }
940
+
941
+ /**
942
+ * @license
943
+ * Copyright (c) Peculiar Ventures, LLC.
944
+ *
945
+ * This source code is licensed under the MIT license found in the
946
+ * LICENSE file in the root directory of this source tree.
947
+ */
948
+ const SubjectDirectoryAttributesExtension = (props) => {
949
+ const { extension } = props;
950
+ return (index.h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
951
+ index.h(RowValue, { name: "Attributes", value: "" }),
952
+ extension.value.map((attribute) => (index.h(TableRowTable, null,
953
+ index.h(RowValue, { name: "Type", value: getStringByOID(attribute.type) }),
954
+ index.h(RowValue, { name: "Value", value: getAttributeValue(attribute) })))),
955
+ ])));
956
+ };
957
+
958
+ /**
959
+ * @license
960
+ * Copyright (c) Peculiar Ventures, LLC.
961
+ *
962
+ * This source code is licensed under the MIT license found in the
963
+ * LICENSE file in the root directory of this source tree.
964
+ */
965
+ const AsStringExtension = (props) => {
966
+ const { extension } = props;
967
+ return (index.h(BasicExtension, { extension: extension },
968
+ index.h(RowValue, { name: "Value", value: extension.value, monospace: true })));
969
+ };
970
+
971
+ /**
972
+ * @license
973
+ * Copyright (c) Peculiar Ventures, LLC.
974
+ *
975
+ * This source code is licensed under the MIT license found in the
976
+ * LICENSE file in the root directory of this source tree.
977
+ */
978
+ const PrivateKeyUsagePeriodExtension = (props) => {
979
+ const { extension } = props;
980
+ return (index.h(BasicExtension, { extension: extension },
981
+ index.h(RowValue, { name: "Not Before", value: certification_request.dateShort(extension.value.notBefore) }),
982
+ index.h(RowValue, { name: "Not After", value: certification_request.dateShort(extension.value.notAfter) })));
983
+ };
984
+
985
+ /**
986
+ * @license
987
+ * Copyright (c) Peculiar Ventures, LLC.
988
+ *
989
+ * This source code is licensed under the MIT license found in the
990
+ * LICENSE file in the root directory of this source tree.
991
+ */
992
+ const EntrustVersionInfoExtension = (props) => {
993
+ const { extension } = props;
994
+ return (index.h(BasicExtension, { extension: extension },
995
+ index.h(RowValue, { name: "Version", value: extension.value.entrustVers }),
996
+ index.h(RowValue, { name: "Info Flags", value: extension.value.entrustInfoFlags.toJSON().join(', ') })));
997
+ };
998
+
999
+ /**
1000
+ * @license
1001
+ * Copyright (c) Peculiar Ventures, LLC.
1002
+ *
1003
+ * This source code is licensed under the MIT license found in the
1004
+ * LICENSE file in the root directory of this source tree.
1005
+ */
1006
+ const BiometricSyntaxExtension = (props) => {
1007
+ const { extension } = props;
1008
+ return (index.h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
1009
+ index.h(RowValue, { name: "Biometrics", value: "" }),
1010
+ extension.value.map((data) => (index.h(TableRowTable, null,
1011
+ index.h(RowValue, { name: "OID", value: getStringByOID(data.typeOfBiometricData.biometricDataOid) }),
1012
+ index.h(RowValue, { name: "Type", value: data.typeOfBiometricData.predefinedBiometricType }),
1013
+ index.h(RowValue, { name: "Algorithm", value: getStringByOID(data.hashAlgorithm.algorithm) }),
1014
+ index.h(RowValue, { name: "Hash", value: certification_request.Convert_1.ToHex(data.biometricDataHash.buffer), monospace: true }),
1015
+ index.h(RowValue, { name: "Source Uri", value: data.sourceDataUri })))),
1016
+ ])));
1017
+ };
1018
+
1019
+ /**
1020
+ * @license
1021
+ * Copyright (c) Peculiar Ventures, LLC.
1022
+ *
1023
+ * This source code is licensed under the MIT license found in the
1024
+ * LICENSE file in the root directory of this source tree.
1025
+ */
1026
+ const LogotypeExtension = (props) => {
1027
+ const { extension } = props;
1028
+ const renderImage = (image) => {
1029
+ if (!image) {
1030
+ return null;
1031
+ }
1032
+ return image.map((img) => {
1033
+ const { imageDetails } = img;
1034
+ return [
1035
+ index.h(RowValue, { name: "Image Type", value: imageDetails.mediaType }),
1036
+ index.h(RowValue, { name: "Image Hash", value: certification_request.Convert_1.ToHex(imageDetails.logotypeHash[0].hashValue), monospace: true }),
1037
+ index.h(RowValue, { name: "Image URL", value: imageDetails.logotypeURI[0], monospace: true, collapse: true }),
1038
+ index.h(RowValue, { name: "Image Hash Algorithm", value: getStringByOID(imageDetails.logotypeHash[0].hashAlg.algorithm) }),
1039
+ ];
1040
+ });
1041
+ };
1042
+ const renderAudio = (audio) => {
1043
+ if (!audio) {
1044
+ return null;
1045
+ }
1046
+ return audio.map((aud) => {
1047
+ const { audioDetails } = aud;
1048
+ return [
1049
+ index.h(RowValue, { name: "Audio Type", value: audioDetails.mediaType }),
1050
+ index.h(RowValue, { name: "Audio Hash", value: certification_request.Convert_1.ToHex(audioDetails.logotypeHash[0].hashValue), monospace: true }),
1051
+ index.h(RowValue, { name: "Audio URL", value: audioDetails.logotypeURI[0], monospace: true, collapse: true }),
1052
+ index.h(RowValue, { name: "Audio Hash Algorithm", value: getStringByOID(audioDetails.logotypeHash[0].hashAlg.algorithm) }),
1053
+ ];
1054
+ });
1055
+ };
1056
+ const renderLogo = (title, info) => {
1057
+ if (!info || !info.direct) {
1058
+ return null;
1059
+ }
1060
+ const { image, audio } = info.direct;
1061
+ return [
1062
+ index.h(RowValue, { name: "Type", value: title }),
1063
+ renderImage(image),
1064
+ renderAudio(audio),
1065
+ index.h("tr", null,
1066
+ index.h("td", null),
1067
+ index.h("td", null)),
1068
+ ];
1069
+ };
1070
+ return (index.h(BasicExtension, { extension: extension },
1071
+ renderLogo('Subject', extension.value.subjectLogo),
1072
+ renderLogo('Issuer', extension.value.issuerLogo)));
1073
+ };
1074
+
1075
+ /**
1076
+ * @license
1077
+ * Copyright (c) Peculiar Ventures, LLC.
1078
+ *
1079
+ * This source code is licensed under the MIT license found in the
1080
+ * LICENSE file in the root directory of this source tree.
1081
+ */
1082
+ const TNAuthListExtension = (props) => {
1083
+ const { extension } = props;
1084
+ return (index.h(BasicExtension, { extension: extension }, extension.value.length > 0 && ([
1085
+ index.h(RowValue, { name: "Entries", value: "" }),
1086
+ extension.value.map((entry) => (index.h(TableRowTable, null,
1087
+ index.h(RowValue, { name: "SPC", value: entry.spc }),
1088
+ index.h(RowValue, { name: "Range", value: entry.range ? `start=${entry.range.start} count==${entry.range.count}` : null }),
1089
+ index.h(RowValue, { name: "One", value: entry.one })))),
1090
+ ])));
1091
+ };
1092
+
1093
+ /**
1094
+ * @license
1095
+ * Copyright (c) Peculiar Ventures, LLC.
1096
+ *
1097
+ * This source code is licensed under the MIT license found in the
1098
+ * LICENSE file in the root directory of this source tree.
1099
+ */
1100
+ const PolicyConstraintsExtension = (props) => {
1101
+ const { extension } = props;
1102
+ return (index.h(BasicExtension, { extension: extension },
1103
+ extension.value.requireExplicitPolicy && (index.h(RowValue, { name: "Require Explicit Policy", value: certification_request.AsnIntegerArrayBufferConverter.toASN(extension.value.requireExplicitPolicy).valueBlock.toString() })),
1104
+ extension.value.inhibitPolicyMapping && (index.h(RowValue, { name: "Inhibit Policy Mapping", value: certification_request.AsnIntegerArrayBufferConverter.toASN(extension.value.inhibitPolicyMapping).valueBlock.toString() }))));
1105
+ };
1106
+
1107
+ /**
1108
+ * @license
1109
+ * Copyright (c) Peculiar Ventures, LLC.
1110
+ *
1111
+ * This source code is licensed under the MIT license found in the
1112
+ * LICENSE file in the root directory of this source tree.
1113
+ */
1114
+ const PolicyMappingsExtension = (props) => {
1115
+ const { extension } = props;
1116
+ return (index.h(BasicExtension, { extension: extension }, extension.value.length > 0 && ([
1117
+ index.h(RowValue, { name: "Policies", value: "" }),
1118
+ extension.value.map((policy) => (index.h(TableRowTable, null,
1119
+ index.h(RowValue, { name: "Issuer Domain", value: getStringByOID(policy.issuerDomainPolicy) }),
1120
+ index.h(RowValue, { name: "Subject Domain", value: getStringByOID(policy.subjectDomainPolicy) })))),
1121
+ ])));
1122
+ };
1123
+
1124
+ /**
1125
+ * @license
1126
+ * Copyright (c) Peculiar Ventures, LLC.
1127
+ *
1128
+ * This source code is licensed under the MIT license found in the
1129
+ * LICENSE file in the root directory of this source tree.
1130
+ */
1131
+ const CRLNumberExtension = (props) => {
1132
+ const { extension } = props;
1133
+ return (index.h(BasicExtension, { extension: extension },
1134
+ index.h(RowValue, { name: certification_request.l10n.getString('value'), value: extension.value.value })));
1135
+ };
1136
+
1137
+ /**
1138
+ * @license
1139
+ * Copyright (c) Peculiar Ventures, LLC.
1140
+ *
1141
+ * This source code is licensed under the MIT license found in the
1142
+ * LICENSE file in the root directory of this source tree.
1143
+ */
1144
+ // eslint-disable-next-line max-len
1145
+ const IssuingDistributionPointExtension = (props) => {
1146
+ var _a;
1147
+ const { extension } = props;
1148
+ return (index.h(BasicExtension, { extension: extension }, (_a = extension.value.distributionPoint) === null || _a === void 0 ? void 0 :
1149
+ _a.fullName.map((gn) => (index.h(GeneralNamePart, Object.assign({ generalName: gn }, props)))),
1150
+ extension.value.onlySomeReasons && (index.h(RowValue, { name: certification_request.l10n.getString('onlyReasons'), value: extension.value.onlySomeReasons.toJSON().join(', ') })),
1151
+ extension.value.indirectCRL && (index.h(RowValue, { name: certification_request.l10n.getString('indirectCRL'), value: certification_request.l10n.getString('yes') })),
1152
+ extension.value.onlyContainsUserCerts && (index.h(RowValue, { name: certification_request.l10n.getString('onlyUserCertificates'), value: certification_request.l10n.getString('yes') })),
1153
+ extension.value.onlyContainsAttributeCerts && (index.h(RowValue, { name: certification_request.l10n.getString('onlyAttributeCertificates'), value: certification_request.l10n.getString('yes') })),
1154
+ extension.value.onlyContainsCACerts && (index.h(RowValue, { name: certification_request.l10n.getString('onlyCACertificates'), value: certification_request.l10n.getString('yes') }))));
1155
+ };
1156
+
1157
+ /**
1158
+ * @license
1159
+ * Copyright (c) Peculiar Ventures, LLC.
1160
+ *
1161
+ * This source code is licensed under the MIT license found in the
1162
+ * LICENSE file in the root directory of this source tree.
1163
+ */
1164
+ const KeyDescriptionExtension = (props) => {
1165
+ const { extension } = props;
1166
+ const renderRowValue = (data) => Object.keys(data).map((keyName) => {
1167
+ const keyValue = data[keyName];
1168
+ let value = '';
1169
+ switch (true) {
1170
+ case typeof keyValue === 'string' || typeof keyValue === 'number':
1171
+ value = keyValue;
1172
+ break;
1173
+ case keyValue instanceof certification_request.IntegerSet:
1174
+ value = keyValue.join(', ');
1175
+ break;
1176
+ case typeof keyValue === 'boolean':
1177
+ value = keyValue
1178
+ ? certification_request.l10n.getString('yes')
1179
+ : certification_request.l10n.getString('no');
1180
+ break;
1181
+ case Object.is(keyValue, null):
1182
+ value = 'NULL';
1183
+ break;
1184
+ case keyValue instanceof certification_request.RootOfTrust:
1185
+ return [
1186
+ index.h(RowValue, { name: camelCaseToWords(keyName), value: "" }),
1187
+ index.h(TableRowTable, null, renderRowValue(keyValue)),
1188
+ ];
1189
+ case certification_request.BufferSourceConverter_1.isBufferSource(keyValue):
1190
+ if (keyName === 'attestationApplicationId') {
1191
+ try {
1192
+ const parsed = certification_request.AsnParser.parse(keyValue, certification_request.AttestationApplicationId);
1193
+ if (parsed.packageInfos.length || parsed.signatureDigests.length) {
1194
+ return [
1195
+ index.h(RowValue, { name: camelCaseToWords(keyName), value: "" }),
1196
+ Boolean(parsed.packageInfos) && (index.h(TableRowTable, null,
1197
+ index.h(RowValue, { name: camelCaseToWords('packageInfos'), value: "" }),
1198
+ parsed.packageInfos.map((attestationPackageInfo) => (index.h(TableRowTable, null, renderRowValue(attestationPackageInfo)))))),
1199
+ ];
1200
+ }
1201
+ }
1202
+ catch (error) {
1203
+ //
1204
+ }
1205
+ }
1206
+ try {
1207
+ value = certification_request.Convert_1.ToString(keyValue);
1208
+ }
1209
+ catch (error) {
1210
+ value = certification_request.Convert_1.ToHex(keyValue);
1211
+ }
1212
+ break;
1213
+ }
1214
+ return (index.h(RowValue, { name: camelCaseToWords(keyName), value: value }));
1215
+ });
1216
+ const renderAuthorizationList = (title, authorizationList) => {
1217
+ if (authorizationList.length === 0) {
1218
+ return null;
1219
+ }
1220
+ return [
1221
+ index.h(RowValue, { name: title, value: "" }),
1222
+ index.h(TableRowTable, null, authorizationList.map(renderRowValue)),
1223
+ ];
1224
+ };
1225
+ return (index.h(BasicExtension, { extension: extension },
1226
+ index.h(RowValue, { name: camelCaseToWords('attestationVersion'), value: extension.value.attestationVersion }),
1227
+ index.h(RowValue, { name: camelCaseToWords('attestationSecurityLevel'), value: extension.value.attestationSecurityLevel }),
1228
+ index.h(RowValue, { name: camelCaseToWords('keymasterVersion'), value: extension.value.keymasterVersion }),
1229
+ index.h(RowValue, { name: camelCaseToWords('keymasterSecurityLevel'), value: extension.value.keymasterSecurityLevel }),
1230
+ index.h(RowValue, { name: camelCaseToWords('attestationChallenge'), value: certification_request.Convert_1.ToString(extension.value.attestationChallenge) }),
1231
+ index.h(RowValue, { name: camelCaseToWords('uniqueId'), value: certification_request.Convert_1.ToString(extension.value.uniqueId) || undefined }),
1232
+ renderAuthorizationList(camelCaseToWords('softwareEnforced'), extension.value.softwareEnforced),
1233
+ renderAuthorizationList(camelCaseToWords('teeEnforced'), extension.value.teeEnforced)));
1234
+ };
1235
+
1236
+ /**
1237
+ * @license
1238
+ * Copyright (c) Peculiar Ventures, LLC.
1239
+ *
1240
+ * This source code is licensed under the MIT license found in the
1241
+ * LICENSE file in the root directory of this source tree.
1242
+ */
1243
+ const CabforganizationIdentifierExtension = (props) => {
1244
+ const { extension } = props;
1245
+ return (index.h(BasicExtension, { extension: extension }, Object.keys(extension.value).map((keyName) => (index.h(RowValue, { name: camelCaseToWords(keyName), value: extension.value[keyName] })))));
1246
+ };
1247
+
1248
+ /**
1249
+ * @license
1250
+ * Copyright (c) Peculiar Ventures, LLC.
1251
+ *
1252
+ * This source code is licensed under the MIT license found in the
1253
+ * LICENSE file in the root directory of this source tree.
1254
+ */
1255
+ const Extensions = (props) => {
1256
+ const { extensions, title } = props;
1257
+ if (!extensions || !extensions.length) {
1258
+ return null;
1259
+ }
1260
+ return ([
1261
+ index.h(RowTitle, { value: title || 'Extensions' }),
1262
+ extensions.map((extension) => {
1263
+ try {
1264
+ if (extension.value instanceof certification_request.KeyUsage) {
1265
+ return (index.h(KeyUsageExtension, { extension: extension }));
1266
+ }
1267
+ if (extension.value instanceof certification_request.BasicConstraints) {
1268
+ return (index.h(BasicConstraintsExtension, { extension: extension }));
1269
+ }
1270
+ if (extension.value instanceof certification_request.ExtendedKeyUsage) {
1271
+ return (index.h(ExtendedKeyUsageExtension, { extension: extension }));
1272
+ }
1273
+ if (extension.value instanceof certification_request.SubjectKeyIdentifier) {
1274
+ return (index.h(SubjectKeyIdentifierExtension, Object.assign({ extension: extension }, props)));
1275
+ }
1276
+ if (extension.value instanceof certification_request.AuthorityKeyIdentifier) {
1277
+ return (index.h(AuthorityKeyIdentifierExtension, Object.assign({ extension: extension }, props)));
1278
+ }
1279
+ if (extension.value instanceof certification_request.CRLDistributionPoints) {
1280
+ return (index.h(CRLDistributionPointsExtension, Object.assign({ extension: extension }, props)));
1281
+ }
1282
+ if (extension.value instanceof certification_request.AuthorityInfoAccessSyntax
1283
+ || extension.value instanceof certification_request.SubjectInfoAccessSyntax) {
1284
+ return (index.h(InfoAccessSyntaxExtension, Object.assign({ extension: extension }, props)));
1285
+ }
1286
+ if (extension.value instanceof certification_request.SubjectAlternativeName) {
1287
+ return (index.h(SubjectAlternativeNameExtension, Object.assign({ extension: extension }, props)));
1288
+ }
1289
+ if (extension.value instanceof certification_request.CertificatePolicies) {
1290
+ return (index.h(CertificatePoliciesExtension, { extension: extension }));
1291
+ }
1292
+ if (extension.value instanceof certification_request.CertificateTransparency) {
1293
+ return (index.h(CertificateTransparencyExtension, { extension: extension }));
1294
+ }
1295
+ if (extension.value instanceof certification_request.NameConstraints) {
1296
+ return (index.h(NameConstraintsExtension, Object.assign({ extension: extension }, props)));
1297
+ }
1298
+ if (extension.value instanceof certification_request.CertificateTemplate) {
1299
+ return (index.h(CertificateTemplateExtension, { extension: extension }));
1300
+ }
1301
+ if (extension.value instanceof certification_request.EnrollCertTypeChoice) {
1302
+ return (index.h(EnrollCertTypeChoiceExtension, { extension: extension }));
1303
+ }
1304
+ if (extension.value instanceof certification_request.CaVersion) {
1305
+ return (index.h(CaVersionExtension, { extension: extension }));
1306
+ }
1307
+ if (extension.value instanceof certification_request.QCStatements) {
1308
+ return (index.h(QCStatementsExtension, { extension: extension }));
1309
+ }
1310
+ if (extension.value instanceof certification_request.NetscapeComment) {
1311
+ return (index.h(NetscapeCommentExtension, { extension: extension }));
1312
+ }
1313
+ if (extension.value instanceof certification_request.NetscapeCertType) {
1314
+ return (index.h(NetscapeCertTypeExtension, { extension: extension }));
1315
+ }
1316
+ if (extension.value instanceof certification_request.LeiRole) {
1317
+ return (index.h(LeiRoleExtension, { extension: extension }));
1318
+ }
1319
+ if (extension.value instanceof certification_request.LeiChoice) {
1320
+ return (index.h(LeiExtension, Object.assign({ extension: extension }, props)));
1321
+ }
1322
+ if (extension.value instanceof certification_request.Timestamp) {
1323
+ return (index.h(TimestampExtension, Object.assign({ extension: extension }, props)));
1324
+ }
1325
+ if (extension.value instanceof certification_request.ArchiveRevInfo) {
1326
+ return (index.h(ArchiveRevInfoExtension, { extension: extension }));
1327
+ }
1328
+ if (extension.value instanceof certification_request.CRLReason) {
1329
+ return (index.h(CRLReasonExtension, { extension: extension }));
1330
+ }
1331
+ if (extension.value instanceof certification_request.SubjectDirectoryAttributes) {
1332
+ return (index.h(SubjectDirectoryAttributesExtension, { extension: extension }));
1333
+ }
1334
+ if (extension.value instanceof certification_request.PrivateKeyUsagePeriod) {
1335
+ return (index.h(PrivateKeyUsagePeriodExtension, { extension: extension }));
1336
+ }
1337
+ if (extension.value instanceof certification_request.EntrustVersionInfo) {
1338
+ return (index.h(EntrustVersionInfoExtension, { extension: extension }));
1339
+ }
1340
+ if (extension.value instanceof certification_request.BiometricSyntax) {
1341
+ return (index.h(BiometricSyntaxExtension, { extension: extension }));
1342
+ }
1343
+ if (extension.value instanceof certification_request.LogotypeExtn) {
1344
+ return (index.h(LogotypeExtension, { extension: extension }));
1345
+ }
1346
+ if (extension.value instanceof certification_request.TNAuthorizationList) {
1347
+ return (index.h(TNAuthListExtension, { extension: extension }));
1348
+ }
1349
+ if (extension.value instanceof certification_request.PolicyConstraints) {
1350
+ return (index.h(PolicyConstraintsExtension, { extension: extension }));
1351
+ }
1352
+ if (extension.value instanceof certification_request.PolicyMappings) {
1353
+ return (index.h(PolicyMappingsExtension, { extension: extension }));
1354
+ }
1355
+ if (extension.value instanceof certification_request.CRLNumber) {
1356
+ return (index.h(CRLNumberExtension, { extension: extension }));
1357
+ }
1358
+ if (extension.value instanceof certification_request.IssuingDistributionPoint) {
1359
+ return (index.h(IssuingDistributionPointExtension, Object.assign({ extension: extension }, props)));
1360
+ }
1361
+ if (extension.value instanceof certification_request.NonStandardKeyDescription) {
1362
+ return (index.h(KeyDescriptionExtension, Object.assign({ extension: extension }, props)));
1363
+ }
1364
+ if (extension.value instanceof certification_request.CabforganizationIdentifier) {
1365
+ return (index.h(CabforganizationIdentifierExtension, Object.assign({ extension: extension }, props)));
1366
+ }
1367
+ if (typeof extension.value === 'string') {
1368
+ return (index.h(AsStringExtension, { extension: extension }));
1369
+ }
1370
+ return (index.h(BasicExtension, { extension: extension }));
1371
+ }
1372
+ catch (error) {
1373
+ console.error('Error render extension:', extension.asn.extnID);
1374
+ return null;
1375
+ }
1376
+ }),
1377
+ ]);
1378
+ };
1379
+
1380
+ /**
1381
+ * @license
1382
+ * Copyright (c) Peculiar Ventures, LLC.
1383
+ *
1384
+ * This source code is licensed under the MIT license found in the
1385
+ * LICENSE file in the root directory of this source tree.
1386
+ */
1387
+ const Miscellaneous = (props) => {
1388
+ const { certificate } = props;
1389
+ return [
1390
+ index.h(RowTitle, { value: certification_request.l10n.getString('miscellaneous') }),
1391
+ index.h("tr", null,
1392
+ index.h("td", null,
1393
+ index.h(button.Button, { onClick: () => certificate.downloadAsPEM(), startIcon: index.h(download.DownloadIcon, null) }, certification_request.l10n.getString('download.pem')))),
1394
+ index.h("tr", null,
1395
+ index.h("td", null,
1396
+ index.h(button.Button, { onClick: () => certificate.downloadAsDER(), startIcon: index.h(download.DownloadIcon, null) }, certification_request.l10n.getString('download.der')))),
1397
+ ];
1398
+ };
1399
+
1400
+ exports.BasicInformation = BasicInformation;
1401
+ exports.Extensions = Extensions;
1402
+ exports.GeneralNamePart = GeneralNamePart;
1403
+ exports.IssuerName = IssuerName;
1404
+ exports.Miscellaneous = Miscellaneous;
1405
+ exports.PublicKey = PublicKey;
1406
+ exports.RowTitle = RowTitle;
1407
+ exports.RowValue = RowValue;
1408
+ exports.Signature = Signature;
1409
+ exports.SubjectName = SubjectName;
1410
+ exports.TableRowTable = TableRowTable;
1411
+ exports.Thumbprints = Thumbprints;
1412
+ exports.camelCaseToWords = camelCaseToWords;
1413
+ exports.getDNSNameLink = getDNSNameLink;
1414
+ exports.getIPAddressLink = getIPAddressLink;
1415
+ exports.getLEILink = getLEILink;
1416
+ exports.getStringByOID = getStringByOID;
1417
+
1418
+ //# sourceMappingURL=miscellaneous-9a573276.js.map