@peculiar/certificates-viewer 4.0.2 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/README.md +1 -1
  2. package/components/attribute-certificate-viewer.js +7 -7
  3. package/components/attribute-certificate-viewer.js.map +1 -1
  4. package/components/certificate-viewer.js +5 -5
  5. package/components/certificate-viewer.js.map +1 -1
  6. package/components/crl-viewer.js +6 -6
  7. package/components/crl-viewer.js.map +1 -1
  8. package/components/csr-viewer.js +4 -4
  9. package/components/csr-viewer.js.map +1 -1
  10. package/components/download.js +374 -374
  11. package/components/download.js.map +1 -1
  12. package/components/index2.js +2 -2
  13. package/components/index2.js.map +1 -1
  14. package/components/miscellaneous.js +647 -217
  15. package/components/miscellaneous.js.map +1 -1
  16. package/components/subject_name.js +2 -2
  17. package/components/subject_name.js.map +1 -1
  18. package/dist/cjs/{certification_request-c0cafa72.js → certification_request-bf416170.js} +553 -214
  19. package/dist/cjs/certification_request-bf416170.js.map +1 -0
  20. package/dist/cjs/{crl-b4322166.js → crl-d9591b95.js} +14 -14
  21. package/dist/cjs/{crl-b4322166.js.map → crl-d9591b95.js.map} +1 -1
  22. package/dist/cjs/{download-972dda8a.js → download-0fa5b33c.js} +377 -377
  23. package/dist/cjs/download-0fa5b33c.js.map +1 -0
  24. package/dist/cjs/index.cjs.js +1 -1
  25. package/dist/cjs/{miscellaneous-e43aaae5.js → miscellaneous-6e800553.js} +109 -15
  26. package/dist/cjs/miscellaneous-6e800553.js.map +1 -0
  27. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +8 -8
  28. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js.map +1 -1
  29. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +4 -4
  30. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +4 -4
  31. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +3 -3
  32. package/dist/cjs/{x509_certificate-989b1435.js → x509_certificate-53feebd3.js} +7 -7
  33. package/dist/cjs/{x509_certificate-989b1435.js.map → x509_certificate-53feebd3.js.map} +1 -1
  34. package/dist/collection/components/certificate-details-parts/extensions/index.js +5 -0
  35. package/dist/collection/components/certificate-details-parts/extensions/index.js.map +1 -1
  36. package/dist/collection/components/certificate-details-parts/extensions/key_description_extension.js +80 -0
  37. package/dist/collection/components/certificate-details-parts/extensions/key_description_extension.js.map +1 -0
  38. package/dist/collection/constants/oids.js +1 -0
  39. package/dist/collection/constants/oids.js.map +1 -1
  40. package/dist/collection/crypto/extension.js +4 -0
  41. package/dist/collection/crypto/extension.js.map +1 -1
  42. package/dist/collection/utils/camel_case_to_words.js +15 -0
  43. package/dist/collection/utils/camel_case_to_words.js.map +1 -0
  44. package/dist/collection/utils/index.js +1 -0
  45. package/dist/collection/utils/index.js.map +1 -1
  46. package/dist/esm/{certification_request-5cadde9f.js → certification_request-c9dc8e9c.js} +545 -209
  47. package/dist/esm/certification_request-c9dc8e9c.js.map +1 -0
  48. package/dist/esm/{crl-11670c3e.js → crl-70e85374.js} +14 -14
  49. package/dist/esm/{crl-11670c3e.js.map → crl-70e85374.js.map} +1 -1
  50. package/dist/esm/{download-57c5bf8f.js → download-aacb6eff.js} +375 -375
  51. package/dist/esm/download-aacb6eff.js.map +1 -0
  52. package/dist/esm/index.js +1 -1
  53. package/dist/esm/{miscellaneous-7793a310.js → miscellaneous-0763f98e.js} +109 -15
  54. package/dist/esm/miscellaneous-0763f98e.js.map +1 -0
  55. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +8 -8
  56. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -1
  57. package/dist/esm/peculiar-certificate-decoder.entry.js +4 -4
  58. package/dist/esm/peculiar-certificate-viewer.entry.js +4 -4
  59. package/dist/esm/peculiar-certificates-viewer.entry.js +3 -3
  60. package/dist/esm/{x509_certificate-dfae6999.js → x509_certificate-8cf268d1.js} +7 -7
  61. package/dist/esm/{x509_certificate-dfae6999.js.map → x509_certificate-8cf268d1.js.map} +1 -1
  62. package/dist/esm-es5/certification_request-c9dc8e9c.js +97 -0
  63. package/dist/esm-es5/certification_request-c9dc8e9c.js.map +1 -0
  64. package/dist/esm-es5/{crl-11670c3e.js → crl-70e85374.js} +6 -6
  65. package/dist/esm-es5/{crl-11670c3e.js.map → crl-70e85374.js.map} +1 -1
  66. package/dist/esm-es5/download-aacb6eff.js +43 -0
  67. package/dist/esm-es5/download-aacb6eff.js.map +1 -0
  68. package/dist/esm-es5/index.js +1 -1
  69. package/dist/esm-es5/{miscellaneous-7793a310.js → miscellaneous-0763f98e.js} +63 -49
  70. package/dist/esm-es5/miscellaneous-0763f98e.js.map +1 -0
  71. package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js +3 -3
  72. package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -1
  73. package/dist/esm-es5/peculiar-certificate-decoder.entry.js +1 -1
  74. package/dist/esm-es5/peculiar-certificate-viewer.entry.js +1 -1
  75. package/dist/esm-es5/peculiar-certificates-viewer.entry.js +1 -1
  76. package/dist/esm-es5/x509_certificate-8cf268d1.js +12 -0
  77. package/dist/esm-es5/{x509_certificate-dfae6999.js.map → x509_certificate-8cf268d1.js.map} +1 -1
  78. package/dist/peculiar/index.esm.js +1 -1
  79. package/dist/peculiar/{p-7f9fef87.entry.js → p-025b3cfb.entry.js} +2 -2
  80. package/dist/peculiar/{p-441109db.system.entry.js → p-0bd7c6bc.system.entry.js} +2 -2
  81. package/dist/peculiar/p-10d2d400.system.js +34 -0
  82. package/dist/peculiar/{p-6667fe6e.system.js.map → p-10d2d400.system.js.map} +1 -1
  83. package/dist/peculiar/p-14f281b0.system.js +43 -0
  84. package/dist/peculiar/p-14f281b0.system.js.map +1 -0
  85. package/dist/peculiar/p-15cb92b5.system.js +97 -0
  86. package/dist/peculiar/p-15cb92b5.system.js.map +1 -0
  87. package/dist/peculiar/p-1ef997ee.js +97 -0
  88. package/dist/peculiar/p-1ef997ee.js.map +1 -0
  89. package/dist/peculiar/{p-e39de121.system.entry.js → p-24050d82.system.entry.js} +2 -2
  90. package/dist/peculiar/{p-bcc86979.entry.js → p-2f48fe70.entry.js} +2 -2
  91. package/dist/peculiar/{p-c362dc5e.system.js → p-31b60224.system.js} +65 -51
  92. package/dist/peculiar/p-31b60224.system.js.map +1 -0
  93. package/dist/peculiar/{p-0b475f2a.system.entry.js → p-4ab9673f.system.entry.js} +4 -4
  94. package/dist/peculiar/{p-0b475f2a.system.entry.js.map → p-4ab9673f.system.entry.js.map} +1 -1
  95. package/dist/peculiar/p-542412ae.js +33 -0
  96. package/dist/peculiar/{p-43eb3721.js.map → p-542412ae.js.map} +1 -1
  97. package/dist/peculiar/p-59e5ac12.js +43 -0
  98. package/dist/peculiar/p-59e5ac12.js.map +1 -0
  99. package/dist/peculiar/{p-1844b807.system.entry.js → p-5e49b881.system.entry.js} +2 -2
  100. package/dist/peculiar/p-72f53d81.js +12 -0
  101. package/dist/peculiar/{p-6e79b9c8.js.map → p-72f53d81.js.map} +1 -1
  102. package/dist/peculiar/p-80832207.system.js +1 -1
  103. package/dist/peculiar/{p-673336cf.entry.js → p-9c91dd68.entry.js} +5 -5
  104. package/dist/peculiar/{p-673336cf.entry.js.map → p-9c91dd68.entry.js.map} +1 -1
  105. package/dist/peculiar/{p-1de0381c.system.js → p-a3eeb94b.system.js} +2 -2
  106. package/dist/peculiar/p-ca02a823.js +362 -0
  107. package/dist/peculiar/p-ca02a823.js.map +1 -0
  108. package/dist/peculiar/p-cfca7dae.system.js +13 -0
  109. package/dist/peculiar/{p-31586b23.system.js.map → p-cfca7dae.system.js.map} +1 -1
  110. package/dist/peculiar/{p-882e1281.entry.js → p-e5b18cd1.entry.js} +2 -2
  111. package/dist/peculiar/peculiar.esm.js +1 -1
  112. package/dist/types/components/certificate-details-parts/extensions/key_description_extension.d.ts +15 -0
  113. package/dist/types/constants/oids.d.ts +1 -0
  114. package/dist/types/crypto/extension.d.ts +2 -1
  115. package/dist/types/utils/camel_case_to_words.d.ts +8 -0
  116. package/dist/types/utils/index.d.ts +1 -0
  117. package/hydrate/index.js +1039 -609
  118. package/package.json +22 -21
  119. package/dist/cjs/certification_request-c0cafa72.js.map +0 -1
  120. package/dist/cjs/download-972dda8a.js.map +0 -1
  121. package/dist/cjs/miscellaneous-e43aaae5.js.map +0 -1
  122. package/dist/esm/certification_request-5cadde9f.js.map +0 -1
  123. package/dist/esm/download-57c5bf8f.js.map +0 -1
  124. package/dist/esm/miscellaneous-7793a310.js.map +0 -1
  125. package/dist/esm-es5/certification_request-5cadde9f.js +0 -97
  126. package/dist/esm-es5/certification_request-5cadde9f.js.map +0 -1
  127. package/dist/esm-es5/download-57c5bf8f.js +0 -19
  128. package/dist/esm-es5/download-57c5bf8f.js.map +0 -1
  129. package/dist/esm-es5/miscellaneous-7793a310.js.map +0 -1
  130. package/dist/esm-es5/x509_certificate-dfae6999.js +0 -12
  131. package/dist/peculiar/p-31586b23.system.js +0 -13
  132. package/dist/peculiar/p-43eb3721.js +0 -33
  133. package/dist/peculiar/p-6667fe6e.system.js +0 -34
  134. package/dist/peculiar/p-6e79b9c8.js +0 -12
  135. package/dist/peculiar/p-74c241e7.js +0 -97
  136. package/dist/peculiar/p-74c241e7.js.map +0 -1
  137. package/dist/peculiar/p-a053c132.js +0 -19
  138. package/dist/peculiar/p-a053c132.js.map +0 -1
  139. package/dist/peculiar/p-a6e2e335.js +0 -348
  140. package/dist/peculiar/p-a6e2e335.js.map +0 -1
  141. package/dist/peculiar/p-ae9189f6.system.js +0 -19
  142. package/dist/peculiar/p-ae9189f6.system.js.map +0 -1
  143. package/dist/peculiar/p-c0a298fd.system.js +0 -97
  144. package/dist/peculiar/p-c0a298fd.system.js.map +0 -1
  145. package/dist/peculiar/p-c362dc5e.system.js.map +0 -1
  146. /package/dist/peculiar/{p-7f9fef87.entry.js.map → p-025b3cfb.entry.js.map} +0 -0
  147. /package/dist/peculiar/{p-441109db.system.entry.js.map → p-0bd7c6bc.system.entry.js.map} +0 -0
  148. /package/dist/peculiar/{p-e39de121.system.entry.js.map → p-24050d82.system.entry.js.map} +0 -0
  149. /package/dist/peculiar/{p-bcc86979.entry.js.map → p-2f48fe70.entry.js.map} +0 -0
  150. /package/dist/peculiar/{p-1844b807.system.entry.js.map → p-5e49b881.system.entry.js.map} +0 -0
  151. /package/dist/peculiar/{p-1de0381c.system.js.map → p-a3eeb94b.system.js.map} +0 -0
  152. /package/dist/peculiar/{p-882e1281.entry.js.map → p-e5b18cd1.entry.js.map} +0 -0
@@ -1,14 +1,21 @@
1
- var __extends=this&&this.__extends||function(){var e=function(n,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)if(Object.prototype.hasOwnProperty.call(n,a))e[a]=n[a]};return e(n,a)};return function(n,a){if(typeof a!=="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(n,a);function t(){this.constructor=n}n.prototype=a===null?Object.create(a):(t.prototype=a.prototype,new t)}}();
1
+ var __extends=this&&this.__extends||function(){var e=function(a,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)if(Object.prototype.hasOwnProperty.call(a,n))e[n]=a[n]};return e(a,n)};return function(a,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(a,n);function t(){this.constructor=a}a.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();
2
2
  /*!
3
3
  * © Peculiar Ventures https://peculiarventures.com/ - MIT License
4
- */import{h}from"./index-4079bbb5.js";import{a1 as OIDs,$ as l10n,a0 as dateShort,a2 as Name,a6 as OtherName,v as AsnParser,a7 as DisplayText,a8 as UserNotice,a9 as EDIPartyName,aa as __decorate,ab as AsnProp,ac as AsnPropTypes,ad as AsnType,ae as AsnTypeTypes,af as AsnArray,ag as id_qcs_pkixQCSyntax_v2,ah as SemanticsInformation,ai as AsnIntegerArrayBufferConverter,aj as KeyUsage,ak as BasicConstraints,al as ExtendedKeyUsage,am as SubjectKeyIdentifier,an as AuthorityKeyIdentifier,ao as CRLDistributionPoints,ap as AuthorityInfoAccessSyntax,aq as SubjectInfoAccessSyntax,ar as SubjectAlternativeName,as as CertificatePolicies,at as CertificateTransparency,au as NameConstraints,av as CertificateTemplate,aw as EnrollCertTypeChoice,ax as CaVersion,ay as QCStatements,az as NetscapeComment,aA as NetscapeCertType,aB as LeiRole,aC as LeiChoice,aD as Timestamp,aE as ArchiveRevInfo,a3 as CRLReason,aF as SubjectDirectoryAttributes,aG as PrivateKeyUsagePeriod,aH as EntrustVersionInfo,aI as BiometricSyntax,aJ as LogotypeExtn,aK as TNAuthorizationList,aL as PolicyConstraints,aM as PolicyMappings,aN as CRLNumber,aO as IssuingDistributionPoint}from"./certification_request-5cadde9f.js";import{b as build}from"./download-57c5bf8f.js";import{L as Link}from"./link-ad24c3be.js";import{T as Typography,B as Button}from"./button-35146bdd.js";import{D as DownloadIcon}from"./download-0cc3077a.js";
4
+ */import{h}from"./index-4079bbb5.js";import{a1 as OIDs,$ as l10n,a0 as dateShort,a2 as Name,a6 as OtherName,v as AsnParser,a7 as DisplayText,a8 as UserNotice,a9 as EDIPartyName,aa as __decorate,ab as AsnProp,ac as AsnPropTypes,ad as AsnType,ae as AsnTypeTypes,af as AsnArray,ag as id_qcs_pkixQCSyntax_v2,ah as SemanticsInformation,ai as AsnIntegerArrayBufferConverter,aj as AttestationApplicationId,ak as RootOfTrust,al as IntegerSet,am as KeyUsage,an as BasicConstraints,ao as ExtendedKeyUsage,ap as SubjectKeyIdentifier,aq as AuthorityKeyIdentifier,ar as CRLDistributionPoints,as as AuthorityInfoAccessSyntax,at as SubjectInfoAccessSyntax,au as SubjectAlternativeName,av as CertificatePolicies,aw as CertificateTransparency,ax as NameConstraints,ay as CertificateTemplate,az as EnrollCertTypeChoice,aA as CaVersion,aB as QCStatements,aC as NetscapeComment,aD as NetscapeCertType,aE as LeiRole,aF as LeiChoice,aG as Timestamp,aH as ArchiveRevInfo,a3 as CRLReason,aI as SubjectDirectoryAttributes,aJ as PrivateKeyUsagePeriod,aK as EntrustVersionInfo,aL as BiometricSyntax,aM as LogotypeExtn,aN as TNAuthorizationList,aO as PolicyConstraints,aP as PolicyMappings,aQ as CRLNumber,aR as IssuingDistributionPoint,aS as NonStandardKeyDescription}from"./certification_request-c9dc8e9c.js";import{C as Convert_1,B as BufferSourceConverter_1}from"./download-aacb6eff.js";import{L as Link}from"./link-ad24c3be.js";import{T as Typography,B as Button}from"./button-35146bdd.js";import{D as DownloadIcon}from"./download-0cc3077a.js";
5
5
  /**
6
6
  * @license
7
7
  * Copyright (c) Peculiar Ventures, LLC.
8
8
  *
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
- */function getStringByOID(e){var n=OIDs[e];if(n){return"".concat(n," (").concat(e,")")}return e}
11
+ */function getStringByOID(e){var a=OIDs[e];if(a){return"".concat(a," (").concat(e,")")}return e}
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
+ */function camelCaseToWords(e){var a=e.replace(/([A-Z])/g," $1");return a.charAt(0).toUpperCase()+a.slice(1)}
12
19
  /**
13
20
  * @license
14
21
  * Copyright (c) Peculiar Ventures, LLC.
@@ -29,126 +36,126 @@ var __extends=this&&this.__extends||function(){var e=function(n,a){e=Object.setP
29
36
  *
30
37
  * This source code is licensed under the MIT license found in the
31
38
  * LICENSE file in the root directory of this source tree.
32
- */var TableRowTable=function(e,n){return h("tr",null,h("td",{colSpan:2},h("table",null,n)))};var RowTitle=function(e){var n=e.value;if(!n){return null}return[h("tr",{class:"title"},h("td",{colSpan:2},h(Typography,{variant:"s1",color:"black"},n))),h("tr",null,h("td",{colSpan:2,class:"divider"},h("span",null)))]};var RowValue=function(e){var n=e.name,a=e.value,t=e.monospace,i=e.collapse,o=e.href,r=e.extraValue;if(!n){return null}if(a===undefined||a===null){return null}var s;if(i){s=h("peculiar-text-hider",null,a)}else{s=a}var u=!!a.toString();return h("tr",null,h("td",{colSpan:u?1:2},h(Typography,{variant:"b2",color:"gray-9"},n)),u&&h("td",{class:{monospace:t}},isLink(a.toString())||o?h(Link,{variant:"b2",href:o||a.toString()},a):h(Typography,{variant:"b2",color:"black"},s,r)))};
39
+ */var TableRowTable=function(e,a){return h("tr",null,h("td",{colSpan:2},h("table",null,a)))};var RowTitle=function(e){var a=e.value;if(!a){return null}return[h("tr",{class:"title"},h("td",{colSpan:2},h(Typography,{variant:"s1",color:"black"},a))),h("tr",null,h("td",{colSpan:2,class:"divider"},h("span",null)))]};var RowValue=function(e){var a=e.name,n=e.value,t=e.monospace,o=e.collapse,i=e.href,r=e.extraValue;if(!a){return null}if(n===undefined||n===null){return null}var s;if(o){s=h("peculiar-text-hider",null,n)}else{s=n}var u=!!n.toString();return h("tr",null,h("td",{colSpan:u?1:2},h(Typography,{variant:"b2",color:"gray-9"},a)),u&&h("td",{class:{monospace:t}},isLink(n.toString())||i?h(Link,{variant:"b2",href:i||n.toString()},n):h(Typography,{variant:"b2",color:"black"},s,r)))};
33
40
  /**
34
41
  * @license
35
42
  * Copyright (c) Peculiar Ventures, LLC.
36
43
  *
37
44
  * This source code is licensed under the MIT license found in the
38
45
  * LICENSE file in the root directory of this source tree.
39
- */var BasicInformation=function(e){var n=e.serialNumber,a=e.version,t=e.validity,i=e.notBefore,o=e.notAfter,r=e.lastUpdate,s=e.nextUpdate,u=e.type;return[h(RowTitle,{value:l10n.getString("basicInformation")}),h(RowValue,{name:l10n.getString("type"),value:u}),h(RowValue,{name:l10n.getString("serialNumber"),value:n,monospace:true}),h(RowValue,{name:l10n.getString("version"),value:a}),h(RowValue,{name:l10n.getString("validity"),value:t}),h(RowValue,{name:l10n.getString("issued"),value:i?dateShort(i):undefined}),h(RowValue,{name:l10n.getString("expired"),value:o?dateShort(o):undefined}),h(RowValue,{name:l10n.getString("lastUpdate"),value:r?dateShort(r):undefined}),h(RowValue,{name:l10n.getString("nextUpdate"),value:s?dateShort(s):undefined})]};
46
+ */var BasicInformation=function(e){var a=e.serialNumber,n=e.version,t=e.validity,o=e.notBefore,i=e.notAfter,r=e.lastUpdate,s=e.nextUpdate,u=e.type;return[h(RowTitle,{value:l10n.getString("basicInformation")}),h(RowValue,{name:l10n.getString("type"),value:u}),h(RowValue,{name:l10n.getString("serialNumber"),value:a,monospace:true}),h(RowValue,{name:l10n.getString("version"),value:n}),h(RowValue,{name:l10n.getString("validity"),value:t}),h(RowValue,{name:l10n.getString("issued"),value:o?dateShort(o):undefined}),h(RowValue,{name:l10n.getString("expired"),value:i?dateShort(i):undefined}),h(RowValue,{name:l10n.getString("lastUpdate"),value:r?dateShort(r):undefined}),h(RowValue,{name:l10n.getString("nextUpdate"),value:s?dateShort(s):undefined})]};
40
47
  /**
41
48
  * @license
42
49
  * Copyright (c) Peculiar Ventures, LLC.
43
50
  *
44
51
  * This source code is licensed under the MIT license found in the
45
52
  * LICENSE file in the root directory of this source tree.
46
- */function getPublicKeyModulus(e){if(e.params&&"modulus"in e.params){var n=e.params.modulus.byteLength;if(n%2){n-=1}return n*8}return null}function getPublicKeyExponent(e){if(e.params&&"publicExponent"in e.params){return e.params.publicExponent.byteLength===3?65537:3}return null}var PublicKey=function(e){var n=e.publicKey;if(!n){return null}function a(e){return[h(RowValue,{name:l10n.getString("algorithm"),value:getStringByOID(e.algorithm)}),h(RowValue,{name:l10n.getString("namedCurve"),value:getStringByOID(e.params&&"namedCurve"in e.params?e.params.namedCurve:undefined)}),h(RowValue,{name:l10n.getString("exponent"),value:getPublicKeyExponent(e)}),h(RowValue,{name:l10n.getString("modulus"),value:getPublicKeyModulus(e)}),h(RowValue,{name:l10n.getString("value"),value:build.Convert.ToHex(e.value),monospace:true,collapse:true})]}return[h(RowTitle,{value:l10n.getString("publicKeyInfo")}),a(n),Array.isArray(n.params)&&n.params.length&&n.params.map((function(e){return h(TableRowTable,null,a(e))}))]};
53
+ */function getPublicKeyModulus(e){if(e.params&&"modulus"in e.params){var a=e.params.modulus.byteLength;if(a%2){a-=1}return a*8}return null}function getPublicKeyExponent(e){if(e.params&&"publicExponent"in e.params){return e.params.publicExponent.byteLength===3?65537:3}return null}var PublicKey=function(e){var a=e.publicKey;if(!a){return null}function n(e){return[h(RowValue,{name:l10n.getString("algorithm"),value:getStringByOID(e.algorithm)}),h(RowValue,{name:l10n.getString("namedCurve"),value:getStringByOID(e.params&&"namedCurve"in e.params?e.params.namedCurve:undefined)}),h(RowValue,{name:l10n.getString("exponent"),value:getPublicKeyExponent(e)}),h(RowValue,{name:l10n.getString("modulus"),value:getPublicKeyModulus(e)}),h(RowValue,{name:l10n.getString("value"),value:Convert_1.ToHex(e.value),monospace:true,collapse:true})]}return[h(RowTitle,{value:l10n.getString("publicKeyInfo")}),n(a),Array.isArray(a.params)&&a.params.length&&a.params.map((function(e){return h(TableRowTable,null,n(e))}))]};
47
54
  /**
48
55
  * @license
49
56
  * Copyright (c) Peculiar Ventures, LLC.
50
57
  *
51
58
  * This source code is licensed under the MIT license found in the
52
59
  * LICENSE file in the root directory of this source tree.
53
- */var SubjectName=function(e){var n=e.name;return[h(RowTitle,{value:l10n.getString("subjectName")}),n.map((function(e){return h(RowValue,{name:e.name||e.type,value:e.value})}))]};
60
+ */var SubjectName=function(e){var a=e.name;return[h(RowTitle,{value:l10n.getString("subjectName")}),a.map((function(e){return h(RowValue,{name:e.name||e.type,value:e.value})}))]};
54
61
  /**
55
62
  * @license
56
63
  * Copyright (c) Peculiar Ventures, LLC.
57
64
  *
58
65
  * This source code is licensed under the MIT license found in the
59
66
  * LICENSE file in the root directory of this source tree.
60
- */var IssuerName=function(e){var n=e.name,a=e.issuerDnLink;var t=l10n.getString("issuerName");return[h(RowTitle,{value:a?h(Link,{href:a},t):t}),n.map((function(e){return h(RowValue,{name:e.name||e.type,value:e.value})}))]};
67
+ */var IssuerName=function(e){var a=e.name,n=e.issuerDnLink;var t=l10n.getString("issuerName");return[h(RowTitle,{value:n?h(Link,{href:n},t):t}),a.map((function(e){return h(RowValue,{name:e.name||e.type,value:e.value})}))]};
61
68
  /**
62
69
  * @license
63
70
  * Copyright (c) Peculiar Ventures, LLC.
64
71
  *
65
72
  * This source code is licensed under the MIT license found in the
66
73
  * LICENSE file in the root directory of this source tree.
67
- */var Signature=function(e){var n=e.signature;if(!n){return null}function a(e){return[h(RowValue,{name:l10n.getString("algorithm"),value:getStringByOID(e.algorithm)}),h(RowValue,{name:l10n.getString("value"),value:build.Convert.ToHex(e.value),monospace:true,collapse:true})]}return[h(RowTitle,{value:l10n.getString("signature")}),a(n),n.params&&n.params.length&&n.params.map((function(e){return h(TableRowTable,null,a(e))}))]};
74
+ */var Signature=function(e){var a=e.signature;if(!a){return null}function n(e){return[h(RowValue,{name:l10n.getString("algorithm"),value:getStringByOID(e.algorithm)}),h(RowValue,{name:l10n.getString("value"),value:Convert_1.ToHex(e.value),monospace:true,collapse:true})]}return[h(RowTitle,{value:l10n.getString("signature")}),n(a),a.params&&a.params.length&&a.params.map((function(e){return h(TableRowTable,null,n(e))}))]};
68
75
  /**
69
76
  * @license
70
77
  * Copyright (c) Peculiar Ventures, LLC.
71
78
  *
72
79
  * This source code is licensed under the MIT license found in the
73
80
  * LICENSE file in the root directory of this source tree.
74
- */var Thumbprints=function(e){var n=e.thumbprints;if(!n){return null}var a=Object.keys(n);if(!a.length){return null}return[h(RowTitle,{value:l10n.getString("fingerprints")}),a.map((function(e){return h(RowValue,{name:e,value:n[e],monospace:true})}))]};
81
+ */var Thumbprints=function(e){var a=e.thumbprints;if(!a){return null}var n=Object.keys(a);if(!n.length){return null}return[h(RowTitle,{value:l10n.getString("fingerprints")}),n.map((function(e){return h(RowValue,{name:e,value:a[e],monospace:true})}))]};
75
82
  /**
76
83
  * @license
77
84
  * Copyright (c) Peculiar Ventures, LLC.
78
85
  *
79
86
  * This source code is licensed under the MIT license found in the
80
87
  * LICENSE file in the root directory of this source tree.
81
- */var BasicExtension=function(e,n){var a=e.extension;return[h(RowValue,{name:"Name",value:getStringByOID(a.asn.extnID)}),h(RowValue,{name:"Critical",value:a.asn.critical?l10n.getString("yes"):l10n.getString("no")}),n,h("tr",null,h("td",{colSpan:2,class:"divider"},h("span",null)))]};
88
+ */var BasicExtension=function(e,a){var n=e.extension;return[h(RowValue,{name:"Name",value:getStringByOID(n.asn.extnID)}),h(RowValue,{name:"Critical",value:n.asn.critical?l10n.getString("yes"):l10n.getString("no")}),a,h("tr",null,h("td",{colSpan:2,class:"divider"},h("span",null)))]};
82
89
  /**
83
90
  * @license
84
91
  * Copyright (c) Peculiar Ventures, LLC.
85
92
  *
86
93
  * This source code is licensed under the MIT license found in the
87
94
  * LICENSE file in the root directory of this source tree.
88
- */var KeyUsageExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},h(RowValue,{name:"Usage",value:n.value.toJSON().join(", ")}))};
95
+ */var KeyUsageExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},h(RowValue,{name:"Usage",value:a.value.toJSON().join(", ")}))};
89
96
  /**
90
97
  * @license
91
98
  * Copyright (c) Peculiar Ventures, LLC.
92
99
  *
93
100
  * This source code is licensed under the MIT license found in the
94
101
  * LICENSE file in the root directory of this source tree.
95
- */var BasicConstraintsExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},h(RowValue,{name:"Certificate Authority",value:n.value.cA?l10n.getString("yes"):l10n.getString("no")}),h(RowValue,{name:"Path Length Constraint",value:n.value.pathLenConstraint}))};
102
+ */var BasicConstraintsExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},h(RowValue,{name:"Certificate Authority",value:a.value.cA?l10n.getString("yes"):l10n.getString("no")}),h(RowValue,{name:"Path Length Constraint",value:a.value.pathLenConstraint}))};
96
103
  /**
97
104
  * @license
98
105
  * Copyright (c) Peculiar Ventures, LLC.
99
106
  *
100
107
  * This source code is licensed under the MIT license found in the
101
108
  * LICENSE file in the root directory of this source tree.
102
- */var ExtendedKeyUsageExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},Boolean(n.value.length)&&[h(RowValue,{name:"Purposes",value:""}),n.value.map((function(e){return h(TableRowTable,null,h(RowValue,{name:"Purpose",value:getStringByOID(e)}))}))])};
109
+ */var ExtendedKeyUsageExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},Boolean(a.value.length)&&[h(RowValue,{name:"Purposes",value:""}),a.value.map((function(e){return h(TableRowTable,null,h(RowValue,{name:"Purpose",value:getStringByOID(e)}))}))])};
103
110
  /**
104
111
  * @license
105
112
  * Copyright (c) Peculiar Ventures, LLC.
106
113
  *
107
114
  * This source code is licensed under the MIT license found in the
108
115
  * LICENSE file in the root directory of this source tree.
109
- */var SubjectKeyIdentifierExtension=function(e){var n=e.extension,a=e.getSubjectKeyIdChildrenLink,t=e.getSubjectKeyIdSiblingsLink;var i=build.Convert.ToHex(n.value.buffer);var o=a(i);var r=t(i);return h(BasicExtension,{extension:n},h(RowValue,{name:"Key ID",value:i,monospace:true,extraValue:[o&&h("span",null," [",h(Link,{href:o},"children"),"]"),r&&h("span",null," [",h(Link,{href:r},"siblings"),"]")]}))};
116
+ */var SubjectKeyIdentifierExtension=function(e){var a=e.extension,n=e.getSubjectKeyIdChildrenLink,t=e.getSubjectKeyIdSiblingsLink;var o=Convert_1.ToHex(a.value.buffer);var i=n(o);var r=t(o);return h(BasicExtension,{extension:a},h(RowValue,{name:"Key ID",value:o,monospace:true,extraValue:[i&&h("span",null," [",h(Link,{href:i},"children"),"]"),r&&h("span",null," [",h(Link,{href:r},"siblings"),"]")]}))};
110
117
  /**
111
118
  * @license
112
119
  * Copyright (c) Peculiar Ventures, LLC.
113
120
  *
114
121
  * This source code is licensed under the MIT license found in the
115
122
  * LICENSE file in the root directory of this source tree.
116
- */var AuthorityKeyIdentifierExtension=function(e){var n=e.extension,a=e.getAuthKeyIdParentLink,t=e.getAuthKeyIdSiblingsLink;var i=build.Convert.ToHex(n.value.keyIdentifier.buffer);var o=a(i);var r=t(i);return h(BasicExtension,{extension:n},h(RowValue,{name:"Key ID",value:i,monospace:true,extraValue:[o&&h("span",null," [",h(Link,{href:o},"parents"),"]"),r&&h("span",null," [",h(Link,{href:r},"siblings"),"]")]}))};
123
+ */var AuthorityKeyIdentifierExtension=function(e){var a=e.extension,n=e.getAuthKeyIdParentLink,t=e.getAuthKeyIdSiblingsLink;var o=Convert_1.ToHex(a.value.keyIdentifier.buffer);var i=n(o);var r=t(o);return h(BasicExtension,{extension:a},h(RowValue,{name:"Key ID",value:o,monospace:true,extraValue:[i&&h("span",null," [",h(Link,{href:i},"parents"),"]"),r&&h("span",null," [",h(Link,{href:r},"siblings"),"]")]}))};
117
124
  /**
118
125
  * @license
119
126
  * Copyright (c) Peculiar Ventures, LLC.
120
127
  *
121
128
  * This source code is licensed under the MIT license found in the
122
129
  * LICENSE file in the root directory of this source tree.
123
- */var names={otherName:"Other Name",rfc822Name:"RFC 822 Name",dNSName:"DNS Name",x400Address:"X400 Address",directoryName:"Directory Name",ediPartyName:"Edi Party Name ",uniformResourceIdentifier:"URI",iPAddress:"IP Address",registeredID:"Registered ID"};var GeneralNamePart=function(e){var n=e.generalName,a=e.getDNSNameLink,t=e.getIPAddressLink;if(!n){return null}return Object.keys(n).map((function(e){var i=n[e];if(i instanceof Name){return[h(RowValue,{name:names[e]||e,value:""}),h(TableRowTable,null,i.map((function(e){return e.map((function(e){return h(RowValue,{name:OIDs[e.type]||e.type,value:e.value.toString()})}))})))]}if(i instanceof OtherName){try{var o=AsnParser.parse(i.value,DisplayText);return h(RowValue,{name:OIDs[i.typeId]||i.typeId,value:o.toString()})}catch(e){}try{var o=AsnParser.parse(i.value,UserNotice);if(o.explicitText){return h(RowValue,{name:OIDs[i.typeId]||i.typeId,value:o.explicitText.toString()})}}catch(e){}return h(RowValue,{name:OIDs[i.typeId]||i.typeId,value:build.Convert.ToHex(i.value),monospace:true})}if(build.BufferSourceConverter.isBufferSource(i)){return h(RowValue,{name:names[e]||e,value:build.Convert.ToString(i)})}if(i instanceof EDIPartyName){return h(RowValue,{name:names[e]||e,value:i.partyName.toString()})}if(e==="dNSName"){return h(RowValue,{name:names[e]||e,value:i,href:a(i)})}if(e==="iPAddress"){return h(RowValue,{name:names[e]||e,value:i,href:t(i)})}return h(RowValue,{name:names[e]||e,value:i})}))};
130
+ */var names={otherName:"Other Name",rfc822Name:"RFC 822 Name",dNSName:"DNS Name",x400Address:"X400 Address",directoryName:"Directory Name",ediPartyName:"Edi Party Name ",uniformResourceIdentifier:"URI",iPAddress:"IP Address",registeredID:"Registered ID"};var GeneralNamePart=function(e){var a=e.generalName,n=e.getDNSNameLink,t=e.getIPAddressLink;if(!a){return null}return Object.keys(a).map((function(e){var o=a[e];if(o instanceof Name){return[h(RowValue,{name:names[e]||e,value:""}),h(TableRowTable,null,o.map((function(e){return e.map((function(e){return h(RowValue,{name:OIDs[e.type]||e.type,value:e.value.toString()})}))})))]}if(o instanceof OtherName){try{var i=AsnParser.parse(o.value,DisplayText);return h(RowValue,{name:OIDs[o.typeId]||o.typeId,value:i.toString()})}catch(e){}try{var i=AsnParser.parse(o.value,UserNotice);if(i.explicitText){return h(RowValue,{name:OIDs[o.typeId]||o.typeId,value:i.explicitText.toString()})}}catch(e){}return h(RowValue,{name:OIDs[o.typeId]||o.typeId,value:Convert_1.ToHex(o.value),monospace:true})}if(BufferSourceConverter_1.isBufferSource(o)){return h(RowValue,{name:names[e]||e,value:Convert_1.ToString(o)})}if(o instanceof EDIPartyName){return h(RowValue,{name:names[e]||e,value:o.partyName.toString()})}if(e==="dNSName"){return h(RowValue,{name:names[e]||e,value:o,href:n(o)})}if(e==="iPAddress"){return h(RowValue,{name:names[e]||e,value:o,href:t(o)})}return h(RowValue,{name:names[e]||e,value:o})}))};
124
131
  /**
125
132
  * @license
126
133
  * Copyright (c) Peculiar Ventures, LLC.
127
134
  *
128
135
  * This source code is licensed under the MIT license found in the
129
136
  * LICENSE file in the root directory of this source tree.
130
- */var CRLDistributionPointsExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},n.value.map((function(n){var a,t;return[(a=n.distributionPoint)===null||a===void 0?void 0:a.fullName.map((function(n){return h(GeneralNamePart,Object.assign({generalName:n},e))})),(t=n.cRLIssuer)===null||t===void 0?void 0:t.map((function(n){return h(GeneralNamePart,Object.assign({generalName:n},e))}))]})))};
137
+ */var CRLDistributionPointsExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},a.value.map((function(a){var n,t;return[(n=a.distributionPoint)===null||n===void 0?void 0:n.fullName.map((function(a){return h(GeneralNamePart,Object.assign({generalName:a},e))})),(t=a.cRLIssuer)===null||t===void 0?void 0:t.map((function(a){return h(GeneralNamePart,Object.assign({generalName:a},e))}))]})))};
131
138
  /**
132
139
  * @license
133
140
  * Copyright (c) Peculiar Ventures, LLC.
134
141
  *
135
142
  * This source code is licensed under the MIT license found in the
136
143
  * LICENSE file in the root directory of this source tree.
137
- */var InfoAccessSyntaxExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},Boolean(n.value.length)&&[h(RowValue,{name:"Descriptions",value:""}),n.value.map((function(n){return h(TableRowTable,null,h(RowValue,{name:"Method",value:getStringByOID(n.accessMethod)}),h(GeneralNamePart,Object.assign({generalName:n.accessLocation},e)))}))])};
144
+ */var InfoAccessSyntaxExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},Boolean(a.value.length)&&[h(RowValue,{name:"Descriptions",value:""}),a.value.map((function(a){return h(TableRowTable,null,h(RowValue,{name:"Method",value:getStringByOID(a.accessMethod)}),h(GeneralNamePart,Object.assign({generalName:a.accessLocation},e)))}))])};
138
145
  /**
139
146
  * @license
140
147
  * Copyright (c) Peculiar Ventures, LLC.
141
148
  *
142
149
  * This source code is licensed under the MIT license found in the
143
150
  * LICENSE file in the root directory of this source tree.
144
- */var SubjectAlternativeNameExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},n.value.map((function(n){return h(GeneralNamePart,Object.assign({generalName:n},e))})))};
151
+ */var SubjectAlternativeNameExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},a.value.map((function(a){return h(GeneralNamePart,Object.assign({generalName:a},e))})))};
145
152
  /**
146
153
  * @license
147
154
  * Copyright (c) Peculiar Ventures, LLC.
148
155
  *
149
156
  * This source code is licensed under the MIT license found in the
150
157
  * LICENSE file in the root directory of this source tree.
151
- */var CertificatePoliciesExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},Boolean(n.value.length)&&[h(RowValue,{name:"Policies",value:""}),n.value.map((function(e){return h(TableRowTable,null,h(RowValue,{name:"Policy ID",value:getStringByOID(e.policyIdentifier)}),e.policyQualifiers&&Boolean(e.policyQualifiers.length)&&[h(RowValue,{name:"Qualifiers",value:""}),e.policyQualifiers.map((function(e){var n=[h(RowValue,{name:"Qualifier ID",value:getStringByOID(e.policyQualifierId)})];if(e.policyQualifierId==="1.3.6.1.5.5.7.2.1"){var a=AsnParser.parse(e.qualifier,DisplayText);n.push(h(RowValue,{name:"Value",value:a.toString()}))}if(e.policyQualifierId==="1.3.6.1.5.5.7.2.2"){var a=AsnParser.parse(e.qualifier,UserNotice);if(a.explicitText){n.push(h(RowValue,{name:"Value",value:a.explicitText.toString()}))}}return h(TableRowTable,null,n)}))])}))])};
158
+ */var CertificatePoliciesExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},Boolean(a.value.length)&&[h(RowValue,{name:"Policies",value:""}),a.value.map((function(e){return h(TableRowTable,null,h(RowValue,{name:"Policy ID",value:getStringByOID(e.policyIdentifier)}),e.policyQualifiers&&Boolean(e.policyQualifiers.length)&&[h(RowValue,{name:"Qualifiers",value:""}),e.policyQualifiers.map((function(e){var a=[h(RowValue,{name:"Qualifier ID",value:getStringByOID(e.policyQualifierId)})];if(e.policyQualifierId==="1.3.6.1.5.5.7.2.1"){var n=AsnParser.parse(e.qualifier,DisplayText);a.push(h(RowValue,{name:"Value",value:n.toString()}))}if(e.policyQualifierId==="1.3.6.1.5.5.7.2.2"){var n=AsnParser.parse(e.qualifier,UserNotice);if(n.explicitText){a.push(h(RowValue,{name:"Value",value:n.explicitText.toString()}))}}return h(TableRowTable,null,a)}))])}))])};
152
159
  /**
153
160
  * @license
154
161
  * Copyright (c) Peculiar Ventures, LLC.
@@ -162,187 +169,194 @@ var __extends=this&&this.__extends||function(){var e=function(n,a){e=Object.setP
162
169
  *
163
170
  * This source code is licensed under the MIT license found in the
164
171
  * LICENSE file in the root directory of this source tree.
165
- */var CertificateTransparencyExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},Boolean(n.value.items.length)&&[h(RowValue,{name:"Signed Certificate Timestamps",value:""}),n.value.toJSON().map((function(e){return h(TableRowTable,null,h(RowValue,{name:"Version",value:e.version+1}),h(RowValue,{name:"Log Operator",value:logs[e.logId]||e.logId}),h(RowValue,{name:"Log Key ID",value:e.logId,monospace:true}),h(RowValue,{name:"Timestamp",value:dateShort(e.timestamp)}),h(RowValue,{name:"Signature Algorithm",value:"".concat(e.hashAlgorithm," ").concat(e.signatureAlgorithm).toUpperCase()}),h(RowValue,{name:"Signature",value:e.signature,monospace:true}))}))])};
172
+ */var CertificateTransparencyExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},Boolean(a.value.items.length)&&[h(RowValue,{name:"Signed Certificate Timestamps",value:""}),a.value.toJSON().map((function(e){return h(TableRowTable,null,h(RowValue,{name:"Version",value:e.version+1}),h(RowValue,{name:"Log Operator",value:logs[e.logId]||e.logId}),h(RowValue,{name:"Log Key ID",value:e.logId,monospace:true}),h(RowValue,{name:"Timestamp",value:dateShort(e.timestamp)}),h(RowValue,{name:"Signature Algorithm",value:"".concat(e.hashAlgorithm," ").concat(e.signatureAlgorithm).toUpperCase()}),h(RowValue,{name:"Signature",value:e.signature,monospace:true}))}))])};
173
+ /**
174
+ * @license
175
+ * Copyright (c) Peculiar Ventures, LLC.
176
+ *
177
+ * This source code is licensed under the MIT license found in the
178
+ * LICENSE file in the root directory of this source tree.
179
+ */var NameConstraintsExtension=function(e){var a,n;var t=e.extension;return h(BasicExtension,{extension:t},(a=t.value.excludedSubtrees)===null||a===void 0?void 0:a.map((function(a){return h(GeneralNamePart,Object.assign({generalName:a.base},e))})),(n=t.value.permittedSubtrees)===null||n===void 0?void 0:n.map((function(a){return h(GeneralNamePart,Object.assign({generalName:a.base},e))})))};
166
180
  /**
167
181
  * @license
168
182
  * Copyright (c) Peculiar Ventures, LLC.
169
183
  *
170
184
  * This source code is licensed under the MIT license found in the
171
185
  * LICENSE file in the root directory of this source tree.
172
- */var NameConstraintsExtension=function(e){var n,a;var t=e.extension;return h(BasicExtension,{extension:t},(n=t.value.excludedSubtrees)===null||n===void 0?void 0:n.map((function(n){return h(GeneralNamePart,Object.assign({generalName:n.base},e))})),(a=t.value.permittedSubtrees)===null||a===void 0?void 0:a.map((function(n){return h(GeneralNamePart,Object.assign({generalName:n.base},e))})))};
186
+ */var CertificateTemplateExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},h(RowValue,{name:"Template ID",value:a.value.templateID}),h(RowValue,{name:"Template Major Version",value:a.value.templateMajorVersion}),h(RowValue,{name:"Template Minor Version",value:a.value.templateMinorVersion}))};
173
187
  /**
174
188
  * @license
175
189
  * Copyright (c) Peculiar Ventures, LLC.
176
190
  *
177
191
  * This source code is licensed under the MIT license found in the
178
192
  * LICENSE file in the root directory of this source tree.
179
- */var CertificateTemplateExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},h(RowValue,{name:"Template ID",value:n.value.templateID}),h(RowValue,{name:"Template Major Version",value:n.value.templateMajorVersion}),h(RowValue,{name:"Template Minor Version",value:n.value.templateMinorVersion}))};
193
+ */var EnrollCertTypeChoiceExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},h(RowValue,{name:"Name",value:a.value.toString()}))};
180
194
  /**
181
195
  * @license
182
196
  * Copyright (c) Peculiar Ventures, LLC.
183
197
  *
184
198
  * This source code is licensed under the MIT license found in the
185
199
  * LICENSE file in the root directory of this source tree.
186
- */var EnrollCertTypeChoiceExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},h(RowValue,{name:"Name",value:n.value.toString()}))};
200
+ */var CaVersionExtension=function(e){var a=e.extension;var n=a.value.getVersion();return h(BasicExtension,{extension:a},h(RowValue,{name:"Certificate Index",value:n.certificateIndex}),h(RowValue,{name:"Key Index",value:n.keyIndex}))};var PdsLocations_1,QcEuPDS_1,QcType_1,QcCClegislation_1;var Iso4217CurrencyCode=function(){function e(e){if(typeof e==="string"){this.alphabetic=e}else if(typeof e==="number"){this.numeric=e}}return e}();__decorate([AsnProp({type:AsnPropTypes.PrintableString})],Iso4217CurrencyCode.prototype,"alphabetic",void 0);__decorate([AsnProp({type:AsnPropTypes.PrintableString})],Iso4217CurrencyCode.prototype,"numeric",void 0);Iso4217CurrencyCode=__decorate([AsnType({type:AsnTypeTypes.Choice})],Iso4217CurrencyCode);var MonetaryValue=function(){function e(e){if(e===void 0){e={}}this.currency=new Iso4217CurrencyCode;this.amount=0;this.exponent=0;Object.assign(this,e)}return e}();__decorate([AsnProp({type:Iso4217CurrencyCode})],MonetaryValue.prototype,"currency",void 0);__decorate([AsnProp({type:AsnPropTypes.Integer})],MonetaryValue.prototype,"amount",void 0);__decorate([AsnProp({type:AsnPropTypes.Integer})],MonetaryValue.prototype,"exponent",void 0);var QcEuLimitValue=function(e){__extends(a,e);function a(){return e!==null&&e.apply(this,arguments)||this}return a}(MonetaryValue);QcEuLimitValue=__decorate([AsnType({type:AsnTypeTypes.Sequence})],QcEuLimitValue);var QcEuRetentionPeriod=function(){function e(e){if(e===void 0){e=0}this.value=e}return e}();__decorate([AsnProp({type:AsnPropTypes.Integer})],QcEuRetentionPeriod.prototype,"value",void 0);QcEuRetentionPeriod=__decorate([AsnType({type:AsnTypeTypes.Choice})],QcEuRetentionPeriod);var PdsLocation=function(){function e(e){if(e===void 0){e={}}this.url="";this.language="";Object.assign(this,e)}return e}();__decorate([AsnProp({type:AsnPropTypes.IA5String})],PdsLocation.prototype,"url",void 0);__decorate([AsnProp({type:AsnPropTypes.PrintableString})],PdsLocation.prototype,"language",void 0);PdsLocation=__decorate([AsnType({type:AsnTypeTypes.Sequence})],PdsLocation);var PdsLocations=PdsLocations_1=function(e){__extends(a,e);function a(a){var n=e.call(this,a)||this;Object.setPrototypeOf(n,PdsLocations_1.prototype);return n}return a}(AsnArray);PdsLocations=PdsLocations_1=__decorate([AsnType({type:AsnTypeTypes.Sequence,itemType:PdsLocation})],PdsLocations);var QcEuPDS=QcEuPDS_1=function(e){__extends(a,e);function a(a){var n=e.call(this,a)||this;Object.setPrototypeOf(n,QcEuPDS_1.prototype);return n}return a}(PdsLocations);QcEuPDS=QcEuPDS_1=__decorate([AsnType({type:AsnTypeTypes.Sequence,itemType:PdsLocation})],QcEuPDS);var QcType=QcType_1=function(e){__extends(a,e);function a(a){var n=e.call(this,a)||this;Object.setPrototypeOf(n,QcType_1.prototype);return n}return a}(AsnArray);QcType=QcType_1=__decorate([AsnType({type:AsnTypeTypes.Sequence,itemType:AsnPropTypes.ObjectIdentifier})],QcType);var QcCClegislation=QcCClegislation_1=function(e){__extends(a,e);function a(a){var n=e.call(this,a)||this;Object.setPrototypeOf(n,QcCClegislation_1.prototype);return n}return a}(AsnArray);QcCClegislation=QcCClegislation_1=__decorate([AsnType({type:AsnTypeTypes.Sequence,itemType:AsnPropTypes.PrintableString})],QcCClegislation);var id_etsi_qcs="0.4.0.1862.1";var id_etsi_qcs_qcRetentionPeriod="".concat(id_etsi_qcs,".3");var id_etsi_qcs_qcPDS="".concat(id_etsi_qcs,".5");var id_etsi_qcs_qcType="".concat(id_etsi_qcs,".6");
187
201
  /**
188
202
  * @license
189
203
  * Copyright (c) Peculiar Ventures, LLC.
190
204
  *
191
205
  * This source code is licensed under the MIT license found in the
192
206
  * LICENSE file in the root directory of this source tree.
193
- */var CaVersionExtension=function(e){var n=e.extension;var a=n.value.getVersion();return h(BasicExtension,{extension:n},h(RowValue,{name:"Certificate Index",value:a.certificateIndex}),h(RowValue,{name:"Key Index",value:a.keyIndex}))};var PdsLocations_1,QcEuPDS_1,QcType_1,QcCClegislation_1;var Iso4217CurrencyCode=function(){function e(e){if(typeof e==="string"){this.alphabetic=e}else if(typeof e==="number"){this.numeric=e}}return e}();__decorate([AsnProp({type:AsnPropTypes.PrintableString})],Iso4217CurrencyCode.prototype,"alphabetic",void 0);__decorate([AsnProp({type:AsnPropTypes.PrintableString})],Iso4217CurrencyCode.prototype,"numeric",void 0);Iso4217CurrencyCode=__decorate([AsnType({type:AsnTypeTypes.Choice})],Iso4217CurrencyCode);var MonetaryValue=function(){function e(e){if(e===void 0){e={}}this.currency=new Iso4217CurrencyCode;this.amount=0;this.exponent=0;Object.assign(this,e)}return e}();__decorate([AsnProp({type:Iso4217CurrencyCode})],MonetaryValue.prototype,"currency",void 0);__decorate([AsnProp({type:AsnPropTypes.Integer})],MonetaryValue.prototype,"amount",void 0);__decorate([AsnProp({type:AsnPropTypes.Integer})],MonetaryValue.prototype,"exponent",void 0);var QcEuLimitValue=function(e){__extends(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(MonetaryValue);QcEuLimitValue=__decorate([AsnType({type:AsnTypeTypes.Sequence})],QcEuLimitValue);var QcEuRetentionPeriod=function(){function e(e){if(e===void 0){e=0}this.value=e}return e}();__decorate([AsnProp({type:AsnPropTypes.Integer})],QcEuRetentionPeriod.prototype,"value",void 0);QcEuRetentionPeriod=__decorate([AsnType({type:AsnTypeTypes.Choice})],QcEuRetentionPeriod);var PdsLocation=function(){function e(e){if(e===void 0){e={}}this.url="";this.language="";Object.assign(this,e)}return e}();__decorate([AsnProp({type:AsnPropTypes.IA5String})],PdsLocation.prototype,"url",void 0);__decorate([AsnProp({type:AsnPropTypes.PrintableString})],PdsLocation.prototype,"language",void 0);PdsLocation=__decorate([AsnType({type:AsnTypeTypes.Sequence})],PdsLocation);var PdsLocations=PdsLocations_1=function(e){__extends(n,e);function n(n){var a=e.call(this,n)||this;Object.setPrototypeOf(a,PdsLocations_1.prototype);return a}return n}(AsnArray);PdsLocations=PdsLocations_1=__decorate([AsnType({type:AsnTypeTypes.Sequence,itemType:PdsLocation})],PdsLocations);var QcEuPDS=QcEuPDS_1=function(e){__extends(n,e);function n(n){var a=e.call(this,n)||this;Object.setPrototypeOf(a,QcEuPDS_1.prototype);return a}return n}(PdsLocations);QcEuPDS=QcEuPDS_1=__decorate([AsnType({type:AsnTypeTypes.Sequence,itemType:PdsLocation})],QcEuPDS);var QcType=QcType_1=function(e){__extends(n,e);function n(n){var a=e.call(this,n)||this;Object.setPrototypeOf(a,QcType_1.prototype);return a}return n}(AsnArray);QcType=QcType_1=__decorate([AsnType({type:AsnTypeTypes.Sequence,itemType:AsnPropTypes.ObjectIdentifier})],QcType);var QcCClegislation=QcCClegislation_1=function(e){__extends(n,e);function n(n){var a=e.call(this,n)||this;Object.setPrototypeOf(a,QcCClegislation_1.prototype);return a}return n}(AsnArray);QcCClegislation=QcCClegislation_1=__decorate([AsnType({type:AsnTypeTypes.Sequence,itemType:AsnPropTypes.PrintableString})],QcCClegislation);var id_etsi_qcs="0.4.0.1862.1";var id_etsi_qcs_qcRetentionPeriod="".concat(id_etsi_qcs,".3");var id_etsi_qcs_qcPDS="".concat(id_etsi_qcs,".5");var id_etsi_qcs_qcType="".concat(id_etsi_qcs,".6");
207
+ */var QCStatementsExtension=function(e){var a=e.extension;function n(e,a){if(!a.byteLength){return null}if(e===id_qcs_pkixQCSyntax_v2){var n=AsnParser.parse(a,SemanticsInformation);return h(RowValue,{name:"Semantics Identifier",value:getStringByOID(n.semanticsIdentifier)})}if(e===id_etsi_qcs_qcType){var t=AsnParser.parse(a,QcType);return h(RowValue,{name:"QC Types",value:t.map((function(e){return getStringByOID(e)})).join(", ")})}if(e===id_etsi_qcs_qcRetentionPeriod){var o=AsnParser.parse(a,QcEuRetentionPeriod);return h(RowValue,{name:"Retention Period",value:"".concat(o.value," years")})}if(e===id_etsi_qcs_qcPDS){var i=AsnParser.parse(a,PdsLocations);return[h(RowValue,{name:"PDS Locations",value:""}),i.map((function(e){return h(TableRowTable,null,h(RowValue,{name:"URL",value:e.url}),h(RowValue,{name:"Language",value:e.language}))}))]}return h(RowValue,{name:"Info",value:Convert_1.ToHex(a),monospace:true})}return h(BasicExtension,{extension:a},Boolean(a.value.length)&&[h(RowValue,{name:"Statements",value:""}),a.value.map((function(e){return h(TableRowTable,null,h(RowValue,{name:"Statement ID",value:getStringByOID(e.statementId)}),n(e.statementId,e.statementInfo))}))])};
194
208
  /**
195
209
  * @license
196
210
  * Copyright (c) Peculiar Ventures, LLC.
197
211
  *
198
212
  * This source code is licensed under the MIT license found in the
199
213
  * LICENSE file in the root directory of this source tree.
200
- */var QCStatementsExtension=function(e){var n=e.extension;function a(e,n){if(!n.byteLength){return null}if(e===id_qcs_pkixQCSyntax_v2){var a=AsnParser.parse(n,SemanticsInformation);return h(RowValue,{name:"Semantics Identifier",value:getStringByOID(a.semanticsIdentifier)})}if(e===id_etsi_qcs_qcType){var t=AsnParser.parse(n,QcType);return h(RowValue,{name:"QC Types",value:t.map((function(e){return getStringByOID(e)})).join(", ")})}if(e===id_etsi_qcs_qcRetentionPeriod){var i=AsnParser.parse(n,QcEuRetentionPeriod);return h(RowValue,{name:"Retention Period",value:"".concat(i.value," years")})}if(e===id_etsi_qcs_qcPDS){var o=AsnParser.parse(n,PdsLocations);return[h(RowValue,{name:"PDS Locations",value:""}),o.map((function(e){return h(TableRowTable,null,h(RowValue,{name:"URL",value:e.url}),h(RowValue,{name:"Language",value:e.language}))}))]}return h(RowValue,{name:"Info",value:build.Convert.ToHex(n),monospace:true})}return h(BasicExtension,{extension:n},Boolean(n.value.length)&&[h(RowValue,{name:"Statements",value:""}),n.value.map((function(e){return h(TableRowTable,null,h(RowValue,{name:"Statement ID",value:getStringByOID(e.statementId)}),a(e.statementId,e.statementInfo))}))])};
214
+ */var NetscapeCommentExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},h(RowValue,{name:"Comment",value:a.value.value}))};
201
215
  /**
202
216
  * @license
203
217
  * Copyright (c) Peculiar Ventures, LLC.
204
218
  *
205
219
  * This source code is licensed under the MIT license found in the
206
220
  * LICENSE file in the root directory of this source tree.
207
- */var NetscapeCommentExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},h(RowValue,{name:"Comment",value:n.value.value}))};
221
+ */var NetscapeCertTypeExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},h(RowValue,{name:"Type",value:a.value.toJSON().join(", ")}))};
208
222
  /**
209
223
  * @license
210
224
  * Copyright (c) Peculiar Ventures, LLC.
211
225
  *
212
226
  * This source code is licensed under the MIT license found in the
213
227
  * LICENSE file in the root directory of this source tree.
214
- */var NetscapeCertTypeExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},h(RowValue,{name:"Type",value:n.value.toJSON().join(", ")}))};
228
+ */var LeiRoleExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},h(RowValue,{name:"Role",value:a.value.text}))};
215
229
  /**
216
230
  * @license
217
231
  * Copyright (c) Peculiar Ventures, LLC.
218
232
  *
219
233
  * This source code is licensed under the MIT license found in the
220
234
  * LICENSE file in the root directory of this source tree.
221
- */var LeiRoleExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},h(RowValue,{name:"Role",value:n.value.text}))};
235
+ */var LeiExtension=function(e){var a=e.extension,n=e.getLEILink;return h(BasicExtension,{extension:a},h(RowValue,{name:"Identifier",value:a.value.text,href:n(a.value.text)}))};
222
236
  /**
223
237
  * @license
224
238
  * Copyright (c) Peculiar Ventures, LLC.
225
239
  *
226
240
  * This source code is licensed under the MIT license found in the
227
241
  * LICENSE file in the root directory of this source tree.
228
- */var LeiExtension=function(e){var n=e.extension,a=e.getLEILink;return h(BasicExtension,{extension:n},h(RowValue,{name:"Identifier",value:n.value.text,href:a(n.value.text)}))};
242
+ */var TimestampExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},h(RowValue,{name:"Version",value:a.value.version}),h(GeneralNamePart,Object.assign({generalName:a.value.location},e)),h(RowValue,{name:"Requires Auth",value:a.value.requiresAuth?l10n.getString("yes"):l10n.getString("no")}))};
229
243
  /**
230
244
  * @license
231
245
  * Copyright (c) Peculiar Ventures, LLC.
232
246
  *
233
247
  * This source code is licensed under the MIT license found in the
234
248
  * LICENSE file in the root directory of this source tree.
235
- */var TimestampExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},h(RowValue,{name:"Version",value:n.value.version}),h(GeneralNamePart,Object.assign({generalName:n.value.location},e)),h(RowValue,{name:"Requires Auth",value:n.value.requiresAuth?l10n.getString("yes"):l10n.getString("no")}))};
249
+ */var ArchiveRevInfoExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},h(RowValue,{name:"Version",value:a.value.version}))};
236
250
  /**
237
251
  * @license
238
252
  * Copyright (c) Peculiar Ventures, LLC.
239
253
  *
240
254
  * This source code is licensed under the MIT license found in the
241
255
  * LICENSE file in the root directory of this source tree.
242
- */var ArchiveRevInfoExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},h(RowValue,{name:"Version",value:n.value.version}))};
256
+ */var CRLReasonExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},h(RowValue,{name:"Reason",value:a.value.toJSON()}))};
243
257
  /**
244
258
  * @license
245
259
  * Copyright (c) Peculiar Ventures, LLC.
246
260
  *
247
261
  * This source code is licensed under the MIT license found in the
248
262
  * LICENSE file in the root directory of this source tree.
249
- */var CRLReasonExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},h(RowValue,{name:"Reason",value:n.value.toJSON()}))};
263
+ */function getAttributeValue(e){return Convert_1.ToString(e.values[0])}
250
264
  /**
251
265
  * @license
252
266
  * Copyright (c) Peculiar Ventures, LLC.
253
267
  *
254
268
  * This source code is licensed under the MIT license found in the
255
269
  * LICENSE file in the root directory of this source tree.
256
- */function getAttributeValue(e){return build.Convert.ToString(e.values[0])}
270
+ */var SubjectDirectoryAttributesExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},Boolean(a.value.length)&&[h(RowValue,{name:"Attributes",value:""}),a.value.map((function(e){return h(TableRowTable,null,h(RowValue,{name:"Type",value:getStringByOID(e.type)}),h(RowValue,{name:"Value",value:getAttributeValue(e)}))}))])};
257
271
  /**
258
272
  * @license
259
273
  * Copyright (c) Peculiar Ventures, LLC.
260
274
  *
261
275
  * This source code is licensed under the MIT license found in the
262
276
  * LICENSE file in the root directory of this source tree.
263
- */var SubjectDirectoryAttributesExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},Boolean(n.value.length)&&[h(RowValue,{name:"Attributes",value:""}),n.value.map((function(e){return h(TableRowTable,null,h(RowValue,{name:"Type",value:getStringByOID(e.type)}),h(RowValue,{name:"Value",value:getAttributeValue(e)}))}))])};
277
+ */var AsStringExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},h(RowValue,{name:"Value",value:a.value,monospace:true}))};
264
278
  /**
265
279
  * @license
266
280
  * Copyright (c) Peculiar Ventures, LLC.
267
281
  *
268
282
  * This source code is licensed under the MIT license found in the
269
283
  * LICENSE file in the root directory of this source tree.
270
- */var AsStringExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},h(RowValue,{name:"Value",value:n.value,monospace:true}))};
284
+ */var PrivateKeyUsagePeriodExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},h(RowValue,{name:"Not Before",value:dateShort(a.value.notBefore)}),h(RowValue,{name:"Not After",value:dateShort(a.value.notAfter)}))};
271
285
  /**
272
286
  * @license
273
287
  * Copyright (c) Peculiar Ventures, LLC.
274
288
  *
275
289
  * This source code is licensed under the MIT license found in the
276
290
  * LICENSE file in the root directory of this source tree.
277
- */var PrivateKeyUsagePeriodExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},h(RowValue,{name:"Not Before",value:dateShort(n.value.notBefore)}),h(RowValue,{name:"Not After",value:dateShort(n.value.notAfter)}))};
291
+ */var EntrustVersionInfoExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},h(RowValue,{name:"Version",value:a.value.entrustVers}),h(RowValue,{name:"Info Flags",value:a.value.entrustInfoFlags.toJSON().join(", ")}))};
278
292
  /**
279
293
  * @license
280
294
  * Copyright (c) Peculiar Ventures, LLC.
281
295
  *
282
296
  * This source code is licensed under the MIT license found in the
283
297
  * LICENSE file in the root directory of this source tree.
284
- */var EntrustVersionInfoExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},h(RowValue,{name:"Version",value:n.value.entrustVers}),h(RowValue,{name:"Info Flags",value:n.value.entrustInfoFlags.toJSON().join(", ")}))};
298
+ */var BiometricSyntaxExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},Boolean(a.value.length)&&[h(RowValue,{name:"Biometrics",value:""}),a.value.map((function(e){return h(TableRowTable,null,h(RowValue,{name:"OID",value:getStringByOID(e.typeOfBiometricData.biometricDataOid)}),h(RowValue,{name:"Type",value:e.typeOfBiometricData.predefinedBiometricType}),h(RowValue,{name:"Algorithm",value:getStringByOID(e.hashAlgorithm.algorithm)}),h(RowValue,{name:"Hash",value:Convert_1.ToHex(e.biometricDataHash.buffer),monospace:true}),h(RowValue,{name:"Source Uri",value:e.sourceDataUri}))}))])};
285
299
  /**
286
300
  * @license
287
301
  * Copyright (c) Peculiar Ventures, LLC.
288
302
  *
289
303
  * This source code is licensed under the MIT license found in the
290
304
  * LICENSE file in the root directory of this source tree.
291
- */var BiometricSyntaxExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},Boolean(n.value.length)&&[h(RowValue,{name:"Biometrics",value:""}),n.value.map((function(e){return h(TableRowTable,null,h(RowValue,{name:"OID",value:getStringByOID(e.typeOfBiometricData.biometricDataOid)}),h(RowValue,{name:"Type",value:e.typeOfBiometricData.predefinedBiometricType}),h(RowValue,{name:"Algorithm",value:getStringByOID(e.hashAlgorithm.algorithm)}),h(RowValue,{name:"Hash",value:build.Convert.ToHex(e.biometricDataHash.buffer),monospace:true}),h(RowValue,{name:"Source Uri",value:e.sourceDataUri}))}))])};
305
+ */var LogotypeExtension=function(e){var a=e.extension;var n=function(e){if(!e){return null}return e.map((function(e){var a=e.imageDetails;return[h(RowValue,{name:"Image Type",value:a.mediaType}),h(RowValue,{name:"Image Hash",value:Convert_1.ToHex(a.logotypeHash[0].hashValue),monospace:true}),h(RowValue,{name:"Image URL",value:a.logotypeURI[0],monospace:true,collapse:true}),h(RowValue,{name:"Image Hash Algorithm",value:getStringByOID(a.logotypeHash[0].hashAlg.algorithm)})]}))};var t=function(e){if(!e){return null}return e.map((function(e){var a=e.audioDetails;return[h(RowValue,{name:"Audio Type",value:a.mediaType}),h(RowValue,{name:"Audio Hash",value:Convert_1.ToHex(a.logotypeHash[0].hashValue),monospace:true}),h(RowValue,{name:"Audio URL",value:a.logotypeURI[0],monospace:true,collapse:true}),h(RowValue,{name:"Audio Hash Algorithm",value:getStringByOID(a.logotypeHash[0].hashAlg.algorithm)})]}))};var o=function(e,a){if(!a||!a.direct){return null}var o=a.direct,i=o.image,r=o.audio;return[h(RowValue,{name:"Type",value:e}),n(i),t(r),h("tr",null,h("td",null),h("td",null))]};return h(BasicExtension,{extension:a},o("Subject",a.value.subjectLogo),o("Issuer",a.value.issuerLogo))};
292
306
  /**
293
307
  * @license
294
308
  * Copyright (c) Peculiar Ventures, LLC.
295
309
  *
296
310
  * This source code is licensed under the MIT license found in the
297
311
  * LICENSE file in the root directory of this source tree.
298
- */var LogotypeExtension=function(e){var n=e.extension;var a=function(e){if(!e){return null}return e.map((function(e){var n=e.imageDetails;return[h(RowValue,{name:"Image Type",value:n.mediaType}),h(RowValue,{name:"Image Hash",value:build.Convert.ToHex(n.logotypeHash[0].hashValue),monospace:true}),h(RowValue,{name:"Image URL",value:n.logotypeURI[0],monospace:true,collapse:true}),h(RowValue,{name:"Image Hash Algorithm",value:getStringByOID(n.logotypeHash[0].hashAlg.algorithm)})]}))};var t=function(e){if(!e){return null}return e.map((function(e){var n=e.audioDetails;return[h(RowValue,{name:"Audio Type",value:n.mediaType}),h(RowValue,{name:"Audio Hash",value:build.Convert.ToHex(n.logotypeHash[0].hashValue),monospace:true}),h(RowValue,{name:"Audio URL",value:n.logotypeURI[0],monospace:true,collapse:true}),h(RowValue,{name:"Audio Hash Algorithm",value:getStringByOID(n.logotypeHash[0].hashAlg.algorithm)})]}))};var i=function(e,n){if(!n||!n.direct){return null}var i=n.direct,o=i.image,r=i.audio;return[h(RowValue,{name:"Type",value:e}),a(o),t(r),h("tr",null,h("td",null),h("td",null))]};return h(BasicExtension,{extension:n},i("Subject",n.value.subjectLogo),i("Issuer",n.value.issuerLogo))};
312
+ */var TNAuthListExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},a.value.map((function(e,a){return[h(RowValue,{name:"Entry #".concat(a+1),value:""}),h(RowValue,{name:"SPC",value:e.spc}),h(RowValue,{name:"Range",value:e.range?"start=".concat(e.range.start," count==").concat(e.range.count):null}),h(RowValue,{name:"One",value:e.one})]})))};
299
313
  /**
300
314
  * @license
301
315
  * Copyright (c) Peculiar Ventures, LLC.
302
316
  *
303
317
  * This source code is licensed under the MIT license found in the
304
318
  * LICENSE file in the root directory of this source tree.
305
- */var TNAuthListExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},n.value.map((function(e,n){return[h(RowValue,{name:"Entry #".concat(n+1),value:""}),h(RowValue,{name:"SPC",value:e.spc}),h(RowValue,{name:"Range",value:e.range?"start=".concat(e.range.start," count==").concat(e.range.count):null}),h(RowValue,{name:"One",value:e.one})]})))};
319
+ */var PolicyConstraintsExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},a.value.requireExplicitPolicy&&h(RowValue,{name:"Require Explicit Policy",value:AsnIntegerArrayBufferConverter.toASN(a.value.requireExplicitPolicy).valueBlock.toString()}),a.value.inhibitPolicyMapping&&h(RowValue,{name:"Inhibit Policy Mapping",value:AsnIntegerArrayBufferConverter.toASN(a.value.inhibitPolicyMapping).valueBlock.toString()}))};
306
320
  /**
307
321
  * @license
308
322
  * Copyright (c) Peculiar Ventures, LLC.
309
323
  *
310
324
  * This source code is licensed under the MIT license found in the
311
325
  * LICENSE file in the root directory of this source tree.
312
- */var PolicyConstraintsExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},n.value.requireExplicitPolicy&&h(RowValue,{name:"Require Explicit Policy",value:AsnIntegerArrayBufferConverter.toASN(n.value.requireExplicitPolicy).valueBlock.toString()}),n.value.inhibitPolicyMapping&&h(RowValue,{name:"Inhibit Policy Mapping",value:AsnIntegerArrayBufferConverter.toASN(n.value.inhibitPolicyMapping).valueBlock.toString()}))};
326
+ */var PolicyMappingsExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},a.value.map((function(e,a){return[h(RowValue,{name:"Policy #".concat(a+1),value:""}),h(RowValue,{name:"Issuer Domain",value:getStringByOID(e.issuerDomainPolicy)}),h(RowValue,{name:"Subject Domain",value:getStringByOID(e.subjectDomainPolicy)})]})))};
313
327
  /**
314
328
  * @license
315
329
  * Copyright (c) Peculiar Ventures, LLC.
316
330
  *
317
331
  * This source code is licensed under the MIT license found in the
318
332
  * LICENSE file in the root directory of this source tree.
319
- */var PolicyMappingsExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},n.value.map((function(e,n){return[h(RowValue,{name:"Policy #".concat(n+1),value:""}),h(RowValue,{name:"Issuer Domain",value:getStringByOID(e.issuerDomainPolicy)}),h(RowValue,{name:"Subject Domain",value:getStringByOID(e.subjectDomainPolicy)})]})))};
333
+ */var CRLNumberExtension=function(e){var a=e.extension;return h(BasicExtension,{extension:a},h(RowValue,{name:l10n.getString("value"),value:a.value.value}))};
320
334
  /**
321
335
  * @license
322
336
  * Copyright (c) Peculiar Ventures, LLC.
323
337
  *
324
338
  * This source code is licensed under the MIT license found in the
325
339
  * LICENSE file in the root directory of this source tree.
326
- */var CRLNumberExtension=function(e){var n=e.extension;return h(BasicExtension,{extension:n},h(RowValue,{name:l10n.getString("value"),value:n.value.value}))};
340
+ */var IssuingDistributionPointExtension=function(e){var a;var n=e.extension;return h(BasicExtension,{extension:n},(a=n.value.distributionPoint)===null||a===void 0?void 0:a.fullName.map((function(a){return h(GeneralNamePart,Object.assign({generalName:a},e))})),n.value.onlySomeReasons&&h(RowValue,{name:l10n.getString("onlyReasons"),value:n.value.onlySomeReasons.toJSON().join(", ")}),n.value.indirectCRL&&h(RowValue,{name:l10n.getString("indirectCRL"),value:l10n.getString("yes")}),n.value.onlyContainsUserCerts&&h(RowValue,{name:l10n.getString("onlyUserCertificates"),value:l10n.getString("yes")}),n.value.onlyContainsAttributeCerts&&h(RowValue,{name:l10n.getString("onlyAttributeCertificates"),value:l10n.getString("yes")}),n.value.onlyContainsCACerts&&h(RowValue,{name:l10n.getString("onlyCACertificates"),value:l10n.getString("yes")}))};
327
341
  /**
328
342
  * @license
329
343
  * Copyright (c) Peculiar Ventures, LLC.
330
344
  *
331
345
  * This source code is licensed under the MIT license found in the
332
346
  * LICENSE file in the root directory of this source tree.
333
- */var IssuingDistributionPointExtension=function(e){var n;var a=e.extension;return h(BasicExtension,{extension:a},(n=a.value.distributionPoint)===null||n===void 0?void 0:n.fullName.map((function(n){return h(GeneralNamePart,Object.assign({generalName:n},e))})),a.value.onlySomeReasons&&h(RowValue,{name:l10n.getString("onlyReasons"),value:a.value.onlySomeReasons.toJSON().join(", ")}),a.value.indirectCRL&&h(RowValue,{name:l10n.getString("indirectCRL"),value:l10n.getString("yes")}),a.value.onlyContainsUserCerts&&h(RowValue,{name:l10n.getString("onlyUserCertificates"),value:l10n.getString("yes")}),a.value.onlyContainsAttributeCerts&&h(RowValue,{name:l10n.getString("onlyAttributeCertificates"),value:l10n.getString("yes")}),a.value.onlyContainsCACerts&&h(RowValue,{name:l10n.getString("onlyCACertificates"),value:l10n.getString("yes")}))};
347
+ */var KeyDescriptionExtension=function(e){var a=e.extension;var n=function(e){return Object.keys(e).map((function(a){var t=e[a];var o="";switch(true){case typeof t==="string"||typeof t==="number":o=t;break;case t instanceof IntegerSet:o=t.join(", ");break;case typeof t==="boolean":o=t?l10n.getString("yes"):l10n.getString("no");break;case Object.is(t,null):o="NULL";break;case t instanceof RootOfTrust:return[h(RowValue,{name:camelCaseToWords(a),value:""}),h(TableRowTable,null,n(t))];case BufferSourceConverter_1.isBufferSource(t):if(a==="attestationApplicationId"){try{var i=AsnParser.parse(t,AttestationApplicationId);if(i.packageInfos.length||i.signatureDigests.length){return[h(RowValue,{name:camelCaseToWords(a),value:""}),Boolean(i.packageInfos)&&h(TableRowTable,null,h(RowValue,{name:camelCaseToWords("packageInfos"),value:""}),i.packageInfos.map((function(e){return h(TableRowTable,null,n(e))})))]}}catch(e){}}try{o=Convert_1.ToString(t)}catch(e){o=Convert_1.ToHex(t)}break}return h(RowValue,{name:camelCaseToWords(a),value:o})}))};var t=function(e,a){if(a.length===0){return null}return[h(RowValue,{name:e,value:""}),h(TableRowTable,null,a.map(n))]};return h(BasicExtension,{extension:a},h(RowValue,{name:camelCaseToWords("attestationVersion"),value:a.value.attestationVersion}),h(RowValue,{name:camelCaseToWords("attestationSecurityLevel"),value:a.value.attestationSecurityLevel}),h(RowValue,{name:camelCaseToWords("keymasterVersion"),value:a.value.keymasterVersion}),h(RowValue,{name:camelCaseToWords("keymasterSecurityLevel"),value:a.value.keymasterSecurityLevel}),h(RowValue,{name:camelCaseToWords("attestationChallenge"),value:Convert_1.ToString(a.value.attestationChallenge)}),h(RowValue,{name:camelCaseToWords("uniqueId"),value:Convert_1.ToString(a.value.uniqueId)||undefined}),t(camelCaseToWords("softwareEnforced"),a.value.softwareEnforced),t(camelCaseToWords("teeEnforced"),a.value.teeEnforced))};
334
348
  /**
335
349
  * @license
336
350
  * Copyright (c) Peculiar Ventures, LLC.
337
351
  *
338
352
  * This source code is licensed under the MIT license found in the
339
353
  * LICENSE file in the root directory of this source tree.
340
- */var Extensions=function(e){var n=e.extensions,a=e.title;if(!n||!n.length){return null}return[h(RowTitle,{value:a||"Extensions"}),n.map((function(n){try{if(n.value instanceof KeyUsage){return h(KeyUsageExtension,{extension:n})}if(n.value instanceof BasicConstraints){return h(BasicConstraintsExtension,{extension:n})}if(n.value instanceof ExtendedKeyUsage){return h(ExtendedKeyUsageExtension,{extension:n})}if(n.value instanceof SubjectKeyIdentifier){return h(SubjectKeyIdentifierExtension,Object.assign({extension:n},e))}if(n.value instanceof AuthorityKeyIdentifier){return h(AuthorityKeyIdentifierExtension,Object.assign({extension:n},e))}if(n.value instanceof CRLDistributionPoints){return h(CRLDistributionPointsExtension,Object.assign({extension:n},e))}if(n.value instanceof AuthorityInfoAccessSyntax||n.value instanceof SubjectInfoAccessSyntax){return h(InfoAccessSyntaxExtension,Object.assign({extension:n},e))}if(n.value instanceof SubjectAlternativeName){return h(SubjectAlternativeNameExtension,Object.assign({extension:n},e))}if(n.value instanceof CertificatePolicies){return h(CertificatePoliciesExtension,{extension:n})}if(n.value instanceof CertificateTransparency){return h(CertificateTransparencyExtension,{extension:n})}if(n.value instanceof NameConstraints){return h(NameConstraintsExtension,Object.assign({extension:n},e))}if(n.value instanceof CertificateTemplate){return h(CertificateTemplateExtension,{extension:n})}if(n.value instanceof EnrollCertTypeChoice){return h(EnrollCertTypeChoiceExtension,{extension:n})}if(n.value instanceof CaVersion){return h(CaVersionExtension,{extension:n})}if(n.value instanceof QCStatements){return h(QCStatementsExtension,{extension:n})}if(n.value instanceof NetscapeComment){return h(NetscapeCommentExtension,{extension:n})}if(n.value instanceof NetscapeCertType){return h(NetscapeCertTypeExtension,{extension:n})}if(n.value instanceof LeiRole){return h(LeiRoleExtension,{extension:n})}if(n.value instanceof LeiChoice){return h(LeiExtension,Object.assign({extension:n},e))}if(n.value instanceof Timestamp){return h(TimestampExtension,Object.assign({extension:n},e))}if(n.value instanceof ArchiveRevInfo){return h(ArchiveRevInfoExtension,{extension:n})}if(n.value instanceof CRLReason){return h(CRLReasonExtension,{extension:n})}if(n.value instanceof SubjectDirectoryAttributes){return h(SubjectDirectoryAttributesExtension,{extension:n})}if(n.value instanceof PrivateKeyUsagePeriod){return h(PrivateKeyUsagePeriodExtension,{extension:n})}if(n.value instanceof EntrustVersionInfo){return h(EntrustVersionInfoExtension,{extension:n})}if(n.value instanceof BiometricSyntax){return h(BiometricSyntaxExtension,{extension:n})}if(n.value instanceof LogotypeExtn){return h(LogotypeExtension,{extension:n})}if(n.value instanceof TNAuthorizationList){return h(TNAuthListExtension,{extension:n})}if(n.value instanceof PolicyConstraints){return h(PolicyConstraintsExtension,{extension:n})}if(n.value instanceof PolicyMappings){return h(PolicyMappingsExtension,{extension:n})}if(n.value instanceof CRLNumber){return h(CRLNumberExtension,{extension:n})}if(n.value instanceof IssuingDistributionPoint){return h(IssuingDistributionPointExtension,Object.assign({extension:n},e))}if(typeof n.value==="string"){return h(AsStringExtension,{extension:n})}return h(BasicExtension,{extension:n})}catch(e){console.error("Error render extension:",n.asn.extnID);return null}}))]};
354
+ */var Extensions=function(e){var a=e.extensions,n=e.title;if(!a||!a.length){return null}return[h(RowTitle,{value:n||"Extensions"}),a.map((function(a){try{if(a.value instanceof KeyUsage){return h(KeyUsageExtension,{extension:a})}if(a.value instanceof BasicConstraints){return h(BasicConstraintsExtension,{extension:a})}if(a.value instanceof ExtendedKeyUsage){return h(ExtendedKeyUsageExtension,{extension:a})}if(a.value instanceof SubjectKeyIdentifier){return h(SubjectKeyIdentifierExtension,Object.assign({extension:a},e))}if(a.value instanceof AuthorityKeyIdentifier){return h(AuthorityKeyIdentifierExtension,Object.assign({extension:a},e))}if(a.value instanceof CRLDistributionPoints){return h(CRLDistributionPointsExtension,Object.assign({extension:a},e))}if(a.value instanceof AuthorityInfoAccessSyntax||a.value instanceof SubjectInfoAccessSyntax){return h(InfoAccessSyntaxExtension,Object.assign({extension:a},e))}if(a.value instanceof SubjectAlternativeName){return h(SubjectAlternativeNameExtension,Object.assign({extension:a},e))}if(a.value instanceof CertificatePolicies){return h(CertificatePoliciesExtension,{extension:a})}if(a.value instanceof CertificateTransparency){return h(CertificateTransparencyExtension,{extension:a})}if(a.value instanceof NameConstraints){return h(NameConstraintsExtension,Object.assign({extension:a},e))}if(a.value instanceof CertificateTemplate){return h(CertificateTemplateExtension,{extension:a})}if(a.value instanceof EnrollCertTypeChoice){return h(EnrollCertTypeChoiceExtension,{extension:a})}if(a.value instanceof CaVersion){return h(CaVersionExtension,{extension:a})}if(a.value instanceof QCStatements){return h(QCStatementsExtension,{extension:a})}if(a.value instanceof NetscapeComment){return h(NetscapeCommentExtension,{extension:a})}if(a.value instanceof NetscapeCertType){return h(NetscapeCertTypeExtension,{extension:a})}if(a.value instanceof LeiRole){return h(LeiRoleExtension,{extension:a})}if(a.value instanceof LeiChoice){return h(LeiExtension,Object.assign({extension:a},e))}if(a.value instanceof Timestamp){return h(TimestampExtension,Object.assign({extension:a},e))}if(a.value instanceof ArchiveRevInfo){return h(ArchiveRevInfoExtension,{extension:a})}if(a.value instanceof CRLReason){return h(CRLReasonExtension,{extension:a})}if(a.value instanceof SubjectDirectoryAttributes){return h(SubjectDirectoryAttributesExtension,{extension:a})}if(a.value instanceof PrivateKeyUsagePeriod){return h(PrivateKeyUsagePeriodExtension,{extension:a})}if(a.value instanceof EntrustVersionInfo){return h(EntrustVersionInfoExtension,{extension:a})}if(a.value instanceof BiometricSyntax){return h(BiometricSyntaxExtension,{extension:a})}if(a.value instanceof LogotypeExtn){return h(LogotypeExtension,{extension:a})}if(a.value instanceof TNAuthorizationList){return h(TNAuthListExtension,{extension:a})}if(a.value instanceof PolicyConstraints){return h(PolicyConstraintsExtension,{extension:a})}if(a.value instanceof PolicyMappings){return h(PolicyMappingsExtension,{extension:a})}if(a.value instanceof CRLNumber){return h(CRLNumberExtension,{extension:a})}if(a.value instanceof IssuingDistributionPoint){return h(IssuingDistributionPointExtension,Object.assign({extension:a},e))}if(a.value instanceof NonStandardKeyDescription){return h(KeyDescriptionExtension,Object.assign({extension:a},e))}if(typeof a.value==="string"){return h(AsStringExtension,{extension:a})}return h(BasicExtension,{extension:a})}catch(e){console.error("Error render extension:",a.asn.extnID);return null}}))]};
341
355
  /**
342
356
  * @license
343
357
  * Copyright (c) Peculiar Ventures, LLC.
344
358
  *
345
359
  * This source code is licensed under the MIT license found in the
346
360
  * LICENSE file in the root directory of this source tree.
347
- */var Miscellaneous=function(e){var n=e.certificate;return[h(RowTitle,{value:l10n.getString("miscellaneous")}),h("tr",null,h("td",null,h(Button,{onClick:function(){return n.downloadAsPEM()},startIcon:h(DownloadIcon,null)},l10n.getString("download.pem")))),h("tr",null,h("td",null,h(Button,{onClick:function(){return n.downloadAsDER()},startIcon:h(DownloadIcon,null)},l10n.getString("download.der"))))]};export{BasicInformation as B,Extensions as E,GeneralNamePart as G,IssuerName as I,Miscellaneous as M,PublicKey as P,RowValue as R,Signature as S,TableRowTable as T,RowTitle as a,Thumbprints as b,getLEILink as c,getDNSNameLink as d,getIPAddressLink as e,SubjectName as f,getStringByOID as g};
348
- //# sourceMappingURL=miscellaneous-7793a310.js.map
361
+ */var Miscellaneous=function(e){var a=e.certificate;return[h(RowTitle,{value:l10n.getString("miscellaneous")}),h("tr",null,h("td",null,h(Button,{onClick:function(){return a.downloadAsPEM()},startIcon:h(DownloadIcon,null)},l10n.getString("download.pem")))),h("tr",null,h("td",null,h(Button,{onClick:function(){return a.downloadAsDER()},startIcon:h(DownloadIcon,null)},l10n.getString("download.der"))))]};export{BasicInformation as B,Extensions as E,GeneralNamePart as G,IssuerName as I,Miscellaneous as M,PublicKey as P,RowValue as R,Signature as S,TableRowTable as T,RowTitle as a,Thumbprints as b,getLEILink as c,getDNSNameLink as d,getIPAddressLink as e,SubjectName as f,getStringByOID as g};
362
+ //# sourceMappingURL=miscellaneous-0763f98e.js.map