@peculiar/certificates-viewer 3.3.1 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{certification_request-50ce61b3.js → certification_request-ea440617.js} +10 -10
- package/dist/cjs/{crl-0c15e04a.js → crl-fd60d923.js} +11 -2
- package/dist/cjs/{l10n-4eaa5263.js → l10n-17c96aba.js} +5 -3
- package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +33 -8
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +4 -4
- package/dist/cjs/peculiar-certificate-summary_3.cjs.entry.js +1 -1
- package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +4 -4
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +3 -3
- package/dist/cjs/{public_key-2b73778a.js → public_key-14290c77.js} +2 -2
- package/dist/cjs/{x509_certificate-c94ce29e.js → x509_certificate-262bac06.js} +2 -2
- package/dist/collection/components/crl-viewer/crl-viewer.js +1 -1
- package/dist/collection/components/crl-viewer/revoked_certificates.js +31 -3
- package/dist/collection/crypto/crl.js +9 -0
- package/dist/collection/locales/en.json +3 -2
- package/dist/esm/{certification_request-5b5c2fa2.js → certification_request-0ecd0af1.js} +2 -2
- package/dist/esm/{crl-10d4db54.js → crl-c09357a9.js} +11 -2
- package/dist/esm/{l10n-116c79fa.js → l10n-a68d5748.js} +5 -3
- package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +33 -8
- package/dist/esm/peculiar-certificate-decoder.entry.js +4 -4
- package/dist/esm/peculiar-certificate-summary_3.entry.js +1 -1
- package/dist/esm/peculiar-certificate-viewer.entry.js +4 -4
- package/dist/esm/peculiar-certificates-viewer.entry.js +3 -3
- package/dist/esm/{public_key-c1e6801e.js → public_key-e6d12f27.js} +2 -2
- package/dist/esm/{x509_certificate-61126913.js → x509_certificate-59d7a03c.js} +2 -2
- package/dist/peculiar/locales/en.json +3 -2
- package/dist/peculiar/{p-53aac672.js → p-1b11aa24.js} +4 -4
- package/dist/peculiar/{p-10aa0b03.entry.js → p-1d6d0160.entry.js} +1 -1
- package/dist/peculiar/{p-7ef69178.entry.js → p-37c38f22.entry.js} +1 -1
- package/dist/peculiar/{p-bbf0fd6c.js → p-3a4556ef.js} +2 -2
- package/dist/peculiar/{p-5a898f51.js → p-7321a8d6.js} +5 -5
- package/dist/peculiar/p-7a31bffb.entry.js +26 -0
- package/dist/peculiar/{p-652f77d0.entry.js → p-870c3592.entry.js} +1 -1
- package/dist/peculiar/{p-309fdd02.js → p-c9f01b83.js} +1 -1
- package/dist/peculiar/{p-318a1e9f.entry.js → p-e7d81a43.entry.js} +1 -1
- package/dist/peculiar/{p-ed58acd0.js → p-fec9d812.js} +2 -2
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/dist/types/components/crl-viewer/revoked_certificates.d.ts +3 -3
- package/dist/types/crypto/crl.d.ts +7 -1
- package/dist/types/utils/l10n.d.ts +2 -1
- package/package.json +2 -2
- package/dist/peculiar/p-ff867be1.entry.js +0 -26
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-bbd484d9.js';
|
|
5
|
-
import { X as X509Certificate } from './x509_certificate-
|
|
6
|
-
import { Q as OIDs } from './certification_request-
|
|
5
|
+
import { X as X509Certificate } from './x509_certificate-59d7a03c.js';
|
|
6
|
+
import { Q as OIDs } from './certification_request-0ecd0af1.js';
|
|
7
7
|
import './download-67ac9120.js';
|
|
8
|
-
import { l as l10n } from './l10n-
|
|
8
|
+
import { l as l10n } from './l10n-a68d5748.js';
|
|
9
9
|
|
|
10
10
|
const certificatesViewerCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;min-width:280px;overflow:auto;position:relative;background:white;background:rgba(var(--pv-color-light-rgb), 1)}table{width:100%;table-layout:fixed;border-collapse:collapse;border-spacing:0}table thead{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07)}table tr td{vertical-align:middle}table tbody tr:not(.expanded_summary){cursor:pointer}table tr{border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table th{padding:15px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table td{padding:8px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table .col_issuer,table .col_name,table .col_public_key{width:16%}table .col_actions,table .col_tests{width:18%}table.m_extra .col_issuer,table.m_extra .col_name,table.m_extra .col_public_key{width:12%}table.m_extra .col_actions,table.m_extra .col_tests{width:17%}table tr.expanded td:not(:last-child){border-right-color:transparent}table tr.expanded td{border-bottom-color:transparent}.expanded{border-bottom-color:transparent;background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary td{vertical-align:top;padding:10px 20px 26px}@-webkit-keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}.modal_wrapper{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1;overflow:auto;text-align:center;-webkit-animation:fadeIn 200ms;animation:fadeIn 200ms;padding:30px 10px}.modal_wrapper:before{display:inline-block;vertical-align:middle;width:0;height:100%;content:\"\"}.modal_backdrop{background:rgba(42, 49, 52, 0.5);background:rgba(var(--pv-color-dark-rgb), 0.5);z-index:-1;position:fixed;top:0;right:0;bottom:0;left:0}.modal_container{position:relative;display:inline-block;vertical-align:middle;width:100%;max-width:900px;text-align:left;border-radius:3px;overflow:hidden;background-color:white;background-color:rgba(var(--pv-color-light-rgb), 1);height:100%}.modal_title{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);border-bottom-width:1px;border-bottom-style:solid;padding:20px 60px 16px 20px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:60px}.modal_content{height:calc(100% - 60px);overflow-y:auto}.modal_close{cursor:pointer;border:none;background-color:transparent;position:absolute;top:0;bottom:0;right:0;padding:0 12px;-webkit-transition:opacity 100ms;transition:opacity 100ms;outline:none}.modal_close:hover{opacity:0.6}.modal_close svg{fill:#2a3134;fill:rgba(var(--pv-color-dark-rgb), 1)}.button_table_action{margin:2px}.mobile_title{display:none}.status_wrapper{height:85px;text-align:center;pointer-events:none}.search_section{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);height:50px;padding:10px;border-width:1px 1px 0 1px;border-style:solid}.input_search{height:100%;width:100%;border-radius:3px;border-width:1px;border-style:solid;padding:0 14px;font-size:12px;outline:none;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1)}.input_search::-webkit-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-moz-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search:-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.loading_container{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(42, 49, 52, 0.3);background:rgba(var(--pv-color-dark-rgb), 0.3);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.align_center{text-align:center}@media (hover: hover){table tbody tr:not(.expanded_summary):hover{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}}@media (max-width: 900px){table,tbody,tr,td{display:block}thead{display:none}tr{padding:0 15px;border-width:1px;border-style:solid}tr:not(:first-child){margin-top:-1px}tr:not(.expanded_summary) td:first-child{border:none !important}table td{padding-left:0;padding-right:0;border-width:1px 0 0 0 !important;border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr.expanded_summary td{padding:15px 0}.mobile_title{display:inline-block;width:90px;vertical-align:middle}.modal_title{padding:17px 60px 17px 15px}.content{display:inline-block;width:calc(100% - 90px);vertical-align:middle;text-align:left}.expanded_summary{border-top-color:transparent;padding-bottom:10px}.expanded_summary td:before{content:none}.status_wrapper{height:266px;display:table-cell}.search_section{height:60px;padding:15px}.align_center{text-align:inherit}}";
|
|
11
11
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { h } from './index-bbd484d9.js';
|
|
5
5
|
import { b as build } from './download-67ac9120.js';
|
|
6
|
-
import { l as l10n, a as dateShort } from './l10n-
|
|
7
|
-
import { Q as OIDs, S as Name,
|
|
6
|
+
import { l as l10n, a as dateShort } from './l10n-a68d5748.js';
|
|
7
|
+
import { Q as OIDs, S as Name, _ as OtherName, p as AsnParser, $ as DisplayText, a0 as UserNotice, a1 as EDIPartyName, a2 as AsnIntegerArrayBufferConverter, a3 as KeyUsage, a4 as BasicConstraints, a5 as ExtendedKeyUsage, a6 as SubjectKeyIdentifier, a7 as AuthorityKeyIdentifier, a8 as CRLDistributionPoints, a9 as AuthorityInfoAccessSyntax, aa as SubjectInfoAccessSyntax, ab as SubjectAlternativeName, ac as CertificatePolicies, ad as CertificateTransparency, ae as NameConstraints, af as CertificateTemplate, ag as EnrollCertTypeChoice, ah as CaVersion, ai as QCStatements, aj as NetscapeComment, ak as NetscapeCertType, al as LeiRole, am as LeiChoice, an as Timestamp, ao as ArchiveRevInfo, X as CRLReason, ap as SubjectDirectoryAttributes, aq as PrivateKeyUsagePeriod, ar as EntrustVersionInfo, as as BiometricSyntax, at as LogotypeExtn, au as TNAuthorizationList, av as PolicyConstraints, aw as PolicyMappings, ax as CRLNumber, ay as IssuingDistributionPoint } from './certification_request-0ecd0af1.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @license
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { A as AsnData, e as certificateRawToBuffer, C as Certificate, N as Name, E as Extension, f as AsnConvert, g as id_ecPublicKey, h as ECParameters, j as id_rsaEncryption, R as RSAPublicKey, k as hexFormat, l as base64Format, m as getCertificateThumbprint } from './certification_request-
|
|
4
|
+
import { A as AsnData, e as certificateRawToBuffer, C as Certificate, N as Name, E as Extension, f as AsnConvert, g as id_ecPublicKey, h as ECParameters, j as id_rsaEncryption, R as RSAPublicKey, k as hexFormat, l as base64Format, m as getCertificateThumbprint } from './certification_request-0ecd0af1.js';
|
|
5
5
|
import { b as build, D as Download } from './download-67ac9120.js';
|
|
6
|
-
import { d as dateDiff } from './l10n-
|
|
6
|
+
import { d as dateDiff } from './l10n-a68d5748.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
@@ -36,12 +36,13 @@
|
|
|
36
36
|
"digestInfo": "Digest Info",
|
|
37
37
|
"type": "Type",
|
|
38
38
|
"revokedCertificates": "Revoked Certificates",
|
|
39
|
-
"
|
|
39
|
+
"revocationDate": "Revocation Date",
|
|
40
40
|
"yes": "Yes",
|
|
41
41
|
"no": "No",
|
|
42
42
|
"onlyUserCertificates": "Only User Certificates",
|
|
43
43
|
"onlyAttributeCertificates": "Only Attribute Certificates",
|
|
44
44
|
"onlyCACertificates": "Only CA Certificates",
|
|
45
45
|
"indirectCRL": "Indirect CRL",
|
|
46
|
-
"onlyReasons": "Only Reasons"
|
|
46
|
+
"onlyReasons": "Only Reasons",
|
|
47
|
+
"crlEntryExtensions": "CRL Entry Extensions"
|
|
47
48
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{h as e}from"./p-f7683ba5.js";import{b as a}from"./p-cff9655c.js";import{l as n,a as c}from"./p-
|
|
4
|
+
import{h as e}from"./p-f7683ba5.js";import{b as a}from"./p-cff9655c.js";import{l as n,a as c}from"./p-fec9d812.js";import{Q as t,S as o,_ as s,p as f,$ as i,a0 as d,a1 as b,a2 as r,a3 as l,a4 as u,a5 as m,a6 as v,a7 as x,a8 as g,a9 as p,aa as y,ab as C,ac as h,ad as N,ae as S,af as A,ag as D,ah as I,ai as G,aj as j,ak as T,al as O,am as k,an as $,ao as P,X as L,ap as V,aq as R,ar as U,as as E,at as K,au as H,av as X,aw as M,ax as Y,ay as _}from"./p-3a4556ef.js";
|
|
5
5
|
/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -23,7 +23,7 @@ import{h as e}from"./p-f7683ba5.js";import{b as a}from"./p-cff9655c.js";import{l
|
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
25
|
*/
|
|
26
|
-
const B=a=>{const{value:n}=a;return n?e("tr",{class:"title"},e("td",{colSpan:2},e("peculiar-typography",{type:"h6"},n))):null},w=a=>{const{name:n,value:c,monospace:t,collapse:o,href:s,extraValue:f}=a;if(!n)return null;if(null==c)return null;let i;i=o?e("peculiar-text-hider",null,c):c;const d=!!c.toString();return e("tr",null,e("td",{colSpan:d?1:2},e("peculiar-typography",{color:"grey_5"},n,d?":":"")),d&&e("td",{class:{monospace:t}},function(e){return 0===e.indexOf("http")}(c.toString())||s?e("peculiar-link",{href:s||c.toString()},c):e("peculiar-typography",{monospace:t},i,f)))},W=c=>{const{signature:t}=c;return t?[e(B,{value:n.getString("signature")}),e(w,{name:n.getString("algorithm"),value:q(t.algorithm)}),e(w,{name:n.getString("value"),value:a.Convert.ToHex(t.value),monospace:!0,collapse:!0})]:null},z={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"},F=n=>{const{generalName:c,getDNSNameLink:r,getIPAddressLink:l}=n;return c?Object.keys(c).map((n=>{const u=c[n];if(u instanceof o)return[e(w,{name:z[n]||n,value:""}),u.map((a=>a.map((a=>e(w,{name:t[a.type]||a.type,value:a.value.toString()})))))];if(u instanceof s){try{const a=f.parse(u.value,i);return e(w,{name:t[u.typeId]||u.typeId,value:a.toString()})}catch(e){}try{const a=f.parse(u.value,d);if(a.explicitText)return e(w,{name:t[u.typeId]||u.typeId,value:a.explicitText.toString()})}catch(e){}return e(w,{name:t[u.typeId]||u.typeId,value:a.Convert.ToHex(u.value),monospace:!0})}return a.BufferSourceConverter.isBufferSource(u)?e(w,{name:z[n]||n,value:a.Convert.ToString(u)}):e(w,u instanceof b?{name:z[n]||n,value:a.Convert.ToString(u.partyName)}:"dNSName"===n?{name:z[n]||n,value:u,href:r(u)}:"iPAddress"===n?{name:z[n]||n,value:u,href:l(u)}:{name:z[n]||n,value:u})})):null},Q=a=>{const{thumbprints:c}=a;if(!c)return null;const t=Object.keys(c);return t.length?[e(B,{value:n.getString("fingerprints")}),t.map((a=>e(w,{name:a,value:c[a],monospace:!0})))]:null},Z=(a,c)=>{const{extension:t}=a;return[e(w,{name:"Name",value:q(t.asn.extnID)}),e(w,{name:"Critical",value:n.getString(t.asn.critical?"yes":"no")}),c,e("tr",null,e("td",{colSpan:2,class:"divider"},e("span",{class:"bg_fill"})))]},J=a=>{const{extension:n}=a;return e(Z,{extension:n},e(w,{name:"Usage",value:n.value.toJSON().join(", ")}))},ee=a=>{const{extension:c}=a;return e(Z,{extension:c},e(w,{name:"Certificate Authority",value:n.getString(c.value.cA?"yes":"no")}),e(w,{name:"Path Length Constraint",value:c.value.pathLenConstraint}))},ae=a=>{const{extension:n}=a;return e(Z,{extension:n},n.value.map(((a,n)=>e(w,{name:`Purpose #${n+1}`,value:q(a)}))))},ne=n=>{const{extension:c,getSubjectKeyIdChildrenLink:t,getSubjectKeyIdSiblingsLink:o}=n,s=a.Convert.ToHex(c.value.buffer),f=t(s),i=o(s);return e(Z,{extension:c},e(w,{name:"Key ID",value:s,monospace:!0,extraValue:[f&&e("span",null," [",e("peculiar-link",{href:f},"children"),"]"),i&&e("span",null," [",e("peculiar-link",{href:i},"siblings"),"]")]}))},ce=n=>{const{extension:c,getAuthKeyIdParentLink:t,getAuthKeyIdSiblingsLink:o}=n,s=a.Convert.ToHex(c.value.keyIdentifier.buffer),f=t(s),i=o(s);return e(Z,{extension:c},e(w,{name:"Key ID",value:s,monospace:!0,extraValue:[f&&e("span",null," [",e("peculiar-link",{href:f},"parents"),"]"),i&&e("span",null," [",e("peculiar-link",{href:i},"siblings"),"]")]}))},te=a=>{const{extension:n}=a;return e(Z,{extension:n},n.value.map((n=>{var c,t;return[null===(c=n.distributionPoint)||void 0===c?void 0:c.fullName.map((n=>e(F,Object.assign({generalName:n},a)))),null===(t=n.cRLIssuer)||void 0===t?void 0:t.map((n=>e(F,Object.assign({generalName:n},a))))]})))},oe=a=>{const{extension:n}=a;return e(Z,{extension:n},n.value.map(((n,c)=>[e(w,{name:`Description #${c+1}`,value:""}),e(w,{name:"Method",value:q(n.accessMethod)}),e(F,Object.assign({generalName:n.accessLocation},a))])))},se=a=>{const{extension:n}=a;return e(Z,{extension:n},n.value.map((n=>e(F,Object.assign({generalName:n},a)))))},fe=a=>{const{extension:n}=a;return e(Z,{extension:n},n.value.map(((a,n)=>{var c;return[e(w,{name:`Policy #${n+1}`,value:""}),e(w,{name:"ID",value:q(a.policyIdentifier)}),null===(c=a.policyQualifiers)||void 0===c?void 0:c.map(((a,c)=>{const t=[e(w,{name:`Qualifier #${n+1}.${c+1}`,value:""}),e(w,{name:"ID",value:q(a.policyQualifierId)})];if("1.3.6.1.5.5.7.2.1"===a.policyQualifierId){const n=f.parse(a.qualifier,i);t.push(e(w,{name:"Value",value:n.toString()}))}if("1.3.6.1.5.5.7.2.2"===a.policyQualifierId){const n=f.parse(a.qualifier,d);n.explicitText&&t.push(e(w,{name:"Value",value:n.explicitText.toString()}))}return t}))]})))},ie={"9606c02c690033aa1d145f59c6e2648d0549f0df96aab8db915a70d8ecf390a5":"Akamai CT","39376f545f7b4607f59742d768cd5d2437bf3473b6534a4834bcf72e681c83c9":"Alpha CT",a577ac9ced7548dd8f025b67a241089df86e0f476ec203c2ecbedb185f282638:"CNNIC CT",cdb5179b7fc1c046feea31136a3f8f002e6182faf8896fecc8b2f5b5ab604900:"Certly.IO","1fbc36e002ede97f40199e86b3573b8a4217d80187746ad0da03a06054d20df4":"Cloudflare “Nimbus2017”",db74afeecb29ecb1feca3e716d2ce5b9aabb36f7847183c75d9d4f37b61fbf64:"Cloudflare “Nimbus2018”","747eda8331ad331091219cce254f4270c2bffd5e422008c6373579e6107bcc56":"Cloudflare “Nimbus2019”","5ea773f9df56c0e7b536487dd049e0327a919a0c84a112128418759681714558":"Cloudflare “Nimbus2020”","4494652eb0eeceafc44007d8a8fe28c0dae682bed8cb31b53fd33396b5b681a8":"Cloudflare “Nimbus2021”","41c8cab1df22464a10c6a13a0942875e4e318b1b03ebeb4bc768f090629606f6":"Cloudflare “Nimbus2022”","7a328c54d8b72db620ea38e0521ee98416703213854d3bd22bc13a57a352eb52":"Cloudflare “Nimbus2023”","6ff141b5647e4222f7ef052cefae7c21fd608e27d2af5a6e9f4b8a37d6633ee5":"DigiCert Nessie2018",fe446108b1d01ab78a62ccfeab6ab2b2babff3abdad80a4d8b30df2d0008830c:"DigiCert Nessie2019",c652a0ec48ceb3fcab170992c43a87413309e80065a26252401ba3362a17c565:"DigiCert Nessie2020",eec095ee8d72640f92e3c3b91bc712a3696a097b4b6a1a1438e647b2cbedc5f9:"DigiCert Nessie2021","51a3b0f5fd01799c566db837788f0ca47acc1b27cbf79e88429a0dfed48b05e5":"DigiCert Nessie2022",b3737707e18450f86386d605a9dc11094a792db1670c0b87dcf0030e7936a59a:"DigiCert Nessie2023","5614069a2fd7c2ecd3f5e1bd44b23ec74676b9bc99115cc0ef949855d689d0dd":"DigiCert Server","8775bfe7597cf88c43995fbdf36eff568d475636ff4ab560c1b4eaff5ea0830f":"DigiCert Server 2",c1164ae0a772d2d4392dc80ac10770d4f0c49bde991a4840c1fa075164f63360:"DigiCert Yeti2018",e2694bae26e8e94009e8861bb63b83d43ee7fe7488fba48f2893019dddf1dbfe:"DigiCert Yeti2019",f095a459f200d18240102d2f93888ead4bfe1d47e399e1d034a6b0a8aa8eb273:"DigiCert Yeti2020","5cdc4392fee6ab4544b15e9ad456e61037fbd5fa47dca17394b25ee6f6c70eca":"DigiCert Yeti2021","2245450759552456963fa12ff1f76d86e0232663adc04b7f5dc6835c6ee20f02":"DigiCert Yeti2022","35cf191bbfb16c57bf0fad4c6d42cbbbb627202651ea3fe12aefa803c33bd64c":"DigiCert Yeti2023","717ea7420975be84a2723553f1777c26dd51af4e102144094d9019b462fb6668":"GDCA 1","14308d90ccd030135005c01ca526d81e84e87624e39b6248e08f724aea3bb42a":"GDCA 2",c9cf890a21109c666cc17a3ed065c930d0e0135a9feba85af14210b8072421aa:"GDCA CT #1","924a30f909336ff435d6993a10ac75a2c641728e7fc2d659ae6188ffad40ce01":"GDCA CT #2",fad4c97cc49ee2f8ac85c5ea5cea09d0220dbbf4e49c6b50662ff868f86b8c28:"Google “Argon2017”",a4501269055a15545e6211ab37bc103f62ae5576a45e4b1714453e1b22106a25:"Google “Argon2018”","63f2dbcde83bcc2ccf0b728427576b33a48d61778fbd75a638b1c768544bd88d":"Google “Argon2019”",b21e05cc8ba2cd8a204e8766f92bb98a2520676bdafa70e7b249532def8b905e:"Google “Argon2020”",f65c942fd1773022145418083094568ee34d131933bfdf0c2f200bcc4ef164e3:"Google “Argon2021”","2979bef09e393921f056739f63a577e5be577d9c600af8f94d5d265c255dc784":"Google “Argon2022”","68f698f81f6482be3a8ceeb9281d4cfc71515d6793d444d10a67acbb4f4ffbc4":"Google “Aviator”",c3bf03a7e1ca8841c607bae3ff4270fca5ec45b186ebbe4e2cf3fc778630f5f6:"Google “Crucible”","1d024b8eb1498b344dfd87ea3efc0996f7506f235d1d497061a4773c439c25fb":"Google “Daedalus”","293c519654c83965baaa50fc5807d4b76fbf587a2972dca4c30cf4e54547f478":"Google “Icarus”",a4b90990b418581487bb13a2cc67700a3c359804f91bdfb8e377cd0ec80ddc10:"Google “Pilot”",ee4bbdb775ce60bae142691fabe19e66a30f7e5fb072d88300c47b897aa8fdcb:"Google “Rocketeer”",bbd9dfbc1f8a71b593942397aa927b473857950aab52e81a909664368e1ed185:"Google “Skydiver”","52eb4b225ec896974850675f23e43bc1d021e3214ce52ecd5fa87c203cdfca03":"Google “Solera2018”","0b760e9a8b9a682f88985b15e947501a56446bba8830785c3842994386450c00":"Google “Solera2019”","1fc72ce5a1b799f400c359bff96ca3913548e8644220610952e9ba1774f7bac7":"Google “Solera2020”",a3c99845e80ab7ce00157b3742df0207dd272b2b602ecf98ee2c12db9c5ae7e7:"Google “Solera2021”","697aafca1a6b536fae21205046debad7e0eaea13d2432e6e9d8fb379f2b9aaf3":"Google “Solera2022”",a899d8780c9290aaf462f31880ccfbd52451e970d0fbf591ef75b0d99b645681:"Google “Submariner”",b0cc83e5a5f97d6baf7c09cc284904872ac7e88b132c6350b7c6fd26e16c6c77:"Google “Testtube”",b10cd559a6d67846811f7df9a51532739ac48d703bea0323da5d38755bc0ad4e:"Google “Xenon2018”","084114980071532c16190460bcfc47fdc2653afa292c72b37ff863ae29ccc9f0":"Google “Xenon2019”","07b75c1be57d68fff1b0c61d2315c7bae6577c5794b76aeebc613a1a69d3a21c":"Google “Xenon2020”","7d3ef2f88fff88556824c2c0ca9e5289792bc50e78097f2e6a9768997e22f0d7":"Google “Xenon2021”","46a555eb75fa912030b5a28969f4f37d112c4174befd49b885abf2fc70fe6d47":"Google “Xenon2022”","7461b4a09cfb3d41d75159575b2e7649a445a8d27709b0cc564a6482b7eb41a3":"Izenpe","8941449c70742e06b9fc9ce7b116ba0024aa36d59af44f0204404f00f7ea8566":"Izenpe “Argi”","296afa2d568bca0d2ea844956ae9721fc35fa355ecda99693aafd458a71aefdd":"Let“s Encrypt ”Clicky”","537b69a3564335a9c04904e39593b2c298eb8d7a6e83023635c627248cd6b440":"Nordu “flimsy”",aae70b7f3cb8d566c86c2f16979c9f445f69ab0eb4535589b2f77a030104f3cd:"Nordu “plausible”",e0127629e90496564e3d0147984498aa48f8adb16600eb7902a1ef9909906273:"PuChuangSiDa CT",cf55e28923497c340d5206d05353aeb25834b52f1f8dc9526809f212efdd7ca6:"SHECA CT 1","32dc59c2d4c41968d56e14bc61ac8f0e45db39faf3c155aa4252f5001fa0c623":"SHECA CT 2",db76fdadac65e7d09508886e2159bd8b90352f5fead3e3dc5e22eb350acc7b98:"Sectigo (Comodo) “Dodo” CT","6f5376ac31f03119d89900a45115ff77151c11d902c10029068db2089a37d913":"Sectigo (Comodo) “Mammoth” CT","5581d4c2169036014aea0b9b573c53f0c0e43878702508172fa3aa1d0713d30c":"Sectigo (Comodo) “Sabre” CT","34bb6ad6c3df9c03eea8a499ff7891486c9d5e5cac92d01f7bfd1bce19db48ef":"StartCom",ddeb1d2b7a0d4fa6208b81ad8168707e2e8e9d01d55c888d3d11c4cdb6ecbecc:"Symantec",a7ce4a4e6207e0addee5fdaa4b1f86768767b5d002a55d47310e7e670a95eab2:"Symantec Deneb","15970488d7b997a05beb52512adee8d2e8b4a3165264121a9fabfbd5f85ad93f":"Symantec “Sirius”",bc78e1dfc5f63c684649334da10fa15f0979692009c081b4f3f6917f3ed9b8a5:"Symantec “Vega”",b0b784bc81c0ddc47544e883f05985bb9077d134d8ab88b2b2e533980b8e508b:"Up In The Air “Behind the Sofa”",ac3b9aed7fa9674757159e6d7d575672f9d98100941e9bdeffeca1313b75782d:"Venafi","03019df3fd85a69a8ebd1facc6da9ba73e469774fe77f579fc5a08b8328c1d6b":"Venafi Gen2 CT","41b2dc2e89e63ce4af1ba7bb29bf68c6dee6f9f1cc047e30dffae3b3ba259263":"WoSign","63d0006026dde10bb0601f452446965ee2b6ea2cd4fbc95ac866a550af9075b7":"WoSign 2","9e4ff73dc3ce220b69217c899e468076abf8d78636d5ccfc85a31a75628ba88b":"WoSign CT #1"},de=a=>{const{extension:n}=a;return e(Z,{extension:n},n.value.toJSON().map(((a,n)=>[e(w,{name:`SCT #${n+1}`,value:""}),e(w,{name:"Version",value:a.version+1}),e(w,{name:"Log Operator",value:ie[a.logId]||a.logId}),e(w,{name:"Log Key ID",value:a.logId,monospace:!0}),e(w,{name:"Timestamp",value:c(a.timestamp)}),e(w,{name:"Signature Algorithm",value:`${a.hashAlgorithm} ${a.signatureAlgorithm}`.toUpperCase()}),e(w,{name:"Signature",value:a.signature,monospace:!0})])))},be=a=>{var n,c;const{extension:t}=a;return e(Z,{extension:t},null===(n=t.value.excludedSubtrees)||void 0===n?void 0:n.map((n=>e(F,Object.assign({generalName:n.base},a)))),null===(c=t.value.permittedSubtrees)||void 0===c?void 0:c.map((n=>e(F,Object.assign({generalName:n.base},a)))))},re=a=>{const{extension:n}=a;return e(Z,{extension:n},e(w,{name:"Template ID",value:n.value.templateID}),e(w,{name:"Template Major Version",value:n.value.templateMajorVersion}),e(w,{name:"Template Minor Version",value:n.value.templateMinorVersion}))},le=a=>{const{extension:n}=a;return e(Z,{extension:n},e(w,{name:"Name",value:n.value.toString()}))},ue=a=>{const{extension:n}=a,c=n.value.getVersion();return e(Z,{extension:n},e(w,{name:"Certificate Index",value:c.certificateIndex}),e(w,{name:"Key Index",value:c.keyIndex}))},me=n=>{const{extension:c}=n;return e(Z,{extension:c},c.value.map(((n,c)=>[e(w,{name:`Statement #${c+1}`,value:""}),e(w,{name:"ID",value:q(n.statementId)}),e(w,{name:"Info",value:n.statementInfo.byteLength?a.Convert.ToHex(n.statementInfo):null,monospace:!0})])))},ve=a=>{const{extension:n}=a;return e(Z,{extension:n},e(w,{name:"Comment",value:n.value.value}))},xe=a=>{const{extension:n}=a;return e(Z,{extension:n},e(w,{name:"Type",value:n.value.toJSON().join(", ")}))},ge=a=>{const{extension:n}=a;return e(Z,{extension:n},e(w,{name:"Role",value:n.value.text}))},pe=a=>{const{extension:n,getLEILink:c}=a;return e(Z,{extension:n},e(w,{name:"Identifier",value:n.value.text,href:c(n.value.text)}))},ye=a=>{const{extension:c}=a;return e(Z,{extension:c},e(w,{name:"Version",value:c.value.version}),e(F,Object.assign({generalName:c.value.location},a)),e(w,{name:"Requires Auth",value:n.getString(c.value.requiresAuth?"yes":"no")}))},Ce=a=>{const{extension:n}=a;return e(Z,{extension:n},e(w,{name:"Version",value:n.value.version}))},he=a=>{const{extension:n}=a;return e(Z,{extension:n},e(w,{name:"Reason",value:n.value.toJSON()}))};
|
|
26
|
+
const B=a=>{const{value:n}=a;return n?e("tr",{class:"title"},e("td",{colSpan:2},e("peculiar-typography",{type:"h6"},n))):null},w=a=>{const{name:n,value:c,monospace:t,collapse:o,href:s,extraValue:f}=a;if(!n)return null;if(null==c)return null;let i;i=o?e("peculiar-text-hider",null,c):c;const d=!!c.toString();return e("tr",null,e("td",{colSpan:d?1:2},e("peculiar-typography",{color:"grey_5"},n,d?":":"")),d&&e("td",{class:{monospace:t}},function(e){return 0===e.indexOf("http")}(c.toString())||s?e("peculiar-link",{href:s||c.toString()},c):e("peculiar-typography",{monospace:t},i,f)))},W=c=>{const{signature:t}=c;return t?[e(B,{value:n.getString("signature")}),e(w,{name:n.getString("algorithm"),value:q(t.algorithm)}),e(w,{name:n.getString("value"),value:a.Convert.ToHex(t.value),monospace:!0,collapse:!0})]:null},z={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"},F=n=>{const{generalName:c,getDNSNameLink:r,getIPAddressLink:l}=n;return c?Object.keys(c).map((n=>{const u=c[n];if(u instanceof o)return[e(w,{name:z[n]||n,value:""}),u.map((a=>a.map((a=>e(w,{name:t[a.type]||a.type,value:a.value.toString()})))))];if(u instanceof s){try{const a=f.parse(u.value,i);return e(w,{name:t[u.typeId]||u.typeId,value:a.toString()})}catch(e){}try{const a=f.parse(u.value,d);if(a.explicitText)return e(w,{name:t[u.typeId]||u.typeId,value:a.explicitText.toString()})}catch(e){}return e(w,{name:t[u.typeId]||u.typeId,value:a.Convert.ToHex(u.value),monospace:!0})}return a.BufferSourceConverter.isBufferSource(u)?e(w,{name:z[n]||n,value:a.Convert.ToString(u)}):e(w,u instanceof b?{name:z[n]||n,value:a.Convert.ToString(u.partyName)}:"dNSName"===n?{name:z[n]||n,value:u,href:r(u)}:"iPAddress"===n?{name:z[n]||n,value:u,href:l(u)}:{name:z[n]||n,value:u})})):null},Q=a=>{const{thumbprints:c}=a;if(!c)return null;const t=Object.keys(c);return t.length?[e(B,{value:n.getString("fingerprints")}),t.map((a=>e(w,{name:a,value:c[a],monospace:!0})))]:null},J=(a,c)=>{const{extension:t}=a;return[e(w,{name:"Name",value:q(t.asn.extnID)}),e(w,{name:"Critical",value:n.getString(t.asn.critical?"yes":"no")}),c,e("tr",null,e("td",{colSpan:2,class:"divider"},e("span",{class:"bg_fill"})))]},Z=a=>{const{extension:n}=a;return e(J,{extension:n},e(w,{name:"Usage",value:n.value.toJSON().join(", ")}))},ee=a=>{const{extension:c}=a;return e(J,{extension:c},e(w,{name:"Certificate Authority",value:n.getString(c.value.cA?"yes":"no")}),e(w,{name:"Path Length Constraint",value:c.value.pathLenConstraint}))},ae=a=>{const{extension:n}=a;return e(J,{extension:n},n.value.map(((a,n)=>e(w,{name:`Purpose #${n+1}`,value:q(a)}))))},ne=n=>{const{extension:c,getSubjectKeyIdChildrenLink:t,getSubjectKeyIdSiblingsLink:o}=n,s=a.Convert.ToHex(c.value.buffer),f=t(s),i=o(s);return e(J,{extension:c},e(w,{name:"Key ID",value:s,monospace:!0,extraValue:[f&&e("span",null," [",e("peculiar-link",{href:f},"children"),"]"),i&&e("span",null," [",e("peculiar-link",{href:i},"siblings"),"]")]}))},ce=n=>{const{extension:c,getAuthKeyIdParentLink:t,getAuthKeyIdSiblingsLink:o}=n,s=a.Convert.ToHex(c.value.keyIdentifier.buffer),f=t(s),i=o(s);return e(J,{extension:c},e(w,{name:"Key ID",value:s,monospace:!0,extraValue:[f&&e("span",null," [",e("peculiar-link",{href:f},"parents"),"]"),i&&e("span",null," [",e("peculiar-link",{href:i},"siblings"),"]")]}))},te=a=>{const{extension:n}=a;return e(J,{extension:n},n.value.map((n=>{var c,t;return[null===(c=n.distributionPoint)||void 0===c?void 0:c.fullName.map((n=>e(F,Object.assign({generalName:n},a)))),null===(t=n.cRLIssuer)||void 0===t?void 0:t.map((n=>e(F,Object.assign({generalName:n},a))))]})))},oe=a=>{const{extension:n}=a;return e(J,{extension:n},n.value.map(((n,c)=>[e(w,{name:`Description #${c+1}`,value:""}),e(w,{name:"Method",value:q(n.accessMethod)}),e(F,Object.assign({generalName:n.accessLocation},a))])))},se=a=>{const{extension:n}=a;return e(J,{extension:n},n.value.map((n=>e(F,Object.assign({generalName:n},a)))))},fe=a=>{const{extension:n}=a;return e(J,{extension:n},n.value.map(((a,n)=>{var c;return[e(w,{name:`Policy #${n+1}`,value:""}),e(w,{name:"ID",value:q(a.policyIdentifier)}),null===(c=a.policyQualifiers)||void 0===c?void 0:c.map(((a,c)=>{const t=[e(w,{name:`Qualifier #${n+1}.${c+1}`,value:""}),e(w,{name:"ID",value:q(a.policyQualifierId)})];if("1.3.6.1.5.5.7.2.1"===a.policyQualifierId){const n=f.parse(a.qualifier,i);t.push(e(w,{name:"Value",value:n.toString()}))}if("1.3.6.1.5.5.7.2.2"===a.policyQualifierId){const n=f.parse(a.qualifier,d);n.explicitText&&t.push(e(w,{name:"Value",value:n.explicitText.toString()}))}return t}))]})))},ie={"9606c02c690033aa1d145f59c6e2648d0549f0df96aab8db915a70d8ecf390a5":"Akamai CT","39376f545f7b4607f59742d768cd5d2437bf3473b6534a4834bcf72e681c83c9":"Alpha CT",a577ac9ced7548dd8f025b67a241089df86e0f476ec203c2ecbedb185f282638:"CNNIC CT",cdb5179b7fc1c046feea31136a3f8f002e6182faf8896fecc8b2f5b5ab604900:"Certly.IO","1fbc36e002ede97f40199e86b3573b8a4217d80187746ad0da03a06054d20df4":"Cloudflare “Nimbus2017”",db74afeecb29ecb1feca3e716d2ce5b9aabb36f7847183c75d9d4f37b61fbf64:"Cloudflare “Nimbus2018”","747eda8331ad331091219cce254f4270c2bffd5e422008c6373579e6107bcc56":"Cloudflare “Nimbus2019”","5ea773f9df56c0e7b536487dd049e0327a919a0c84a112128418759681714558":"Cloudflare “Nimbus2020”","4494652eb0eeceafc44007d8a8fe28c0dae682bed8cb31b53fd33396b5b681a8":"Cloudflare “Nimbus2021”","41c8cab1df22464a10c6a13a0942875e4e318b1b03ebeb4bc768f090629606f6":"Cloudflare “Nimbus2022”","7a328c54d8b72db620ea38e0521ee98416703213854d3bd22bc13a57a352eb52":"Cloudflare “Nimbus2023”","6ff141b5647e4222f7ef052cefae7c21fd608e27d2af5a6e9f4b8a37d6633ee5":"DigiCert Nessie2018",fe446108b1d01ab78a62ccfeab6ab2b2babff3abdad80a4d8b30df2d0008830c:"DigiCert Nessie2019",c652a0ec48ceb3fcab170992c43a87413309e80065a26252401ba3362a17c565:"DigiCert Nessie2020",eec095ee8d72640f92e3c3b91bc712a3696a097b4b6a1a1438e647b2cbedc5f9:"DigiCert Nessie2021","51a3b0f5fd01799c566db837788f0ca47acc1b27cbf79e88429a0dfed48b05e5":"DigiCert Nessie2022",b3737707e18450f86386d605a9dc11094a792db1670c0b87dcf0030e7936a59a:"DigiCert Nessie2023","5614069a2fd7c2ecd3f5e1bd44b23ec74676b9bc99115cc0ef949855d689d0dd":"DigiCert Server","8775bfe7597cf88c43995fbdf36eff568d475636ff4ab560c1b4eaff5ea0830f":"DigiCert Server 2",c1164ae0a772d2d4392dc80ac10770d4f0c49bde991a4840c1fa075164f63360:"DigiCert Yeti2018",e2694bae26e8e94009e8861bb63b83d43ee7fe7488fba48f2893019dddf1dbfe:"DigiCert Yeti2019",f095a459f200d18240102d2f93888ead4bfe1d47e399e1d034a6b0a8aa8eb273:"DigiCert Yeti2020","5cdc4392fee6ab4544b15e9ad456e61037fbd5fa47dca17394b25ee6f6c70eca":"DigiCert Yeti2021","2245450759552456963fa12ff1f76d86e0232663adc04b7f5dc6835c6ee20f02":"DigiCert Yeti2022","35cf191bbfb16c57bf0fad4c6d42cbbbb627202651ea3fe12aefa803c33bd64c":"DigiCert Yeti2023","717ea7420975be84a2723553f1777c26dd51af4e102144094d9019b462fb6668":"GDCA 1","14308d90ccd030135005c01ca526d81e84e87624e39b6248e08f724aea3bb42a":"GDCA 2",c9cf890a21109c666cc17a3ed065c930d0e0135a9feba85af14210b8072421aa:"GDCA CT #1","924a30f909336ff435d6993a10ac75a2c641728e7fc2d659ae6188ffad40ce01":"GDCA CT #2",fad4c97cc49ee2f8ac85c5ea5cea09d0220dbbf4e49c6b50662ff868f86b8c28:"Google “Argon2017”",a4501269055a15545e6211ab37bc103f62ae5576a45e4b1714453e1b22106a25:"Google “Argon2018”","63f2dbcde83bcc2ccf0b728427576b33a48d61778fbd75a638b1c768544bd88d":"Google “Argon2019”",b21e05cc8ba2cd8a204e8766f92bb98a2520676bdafa70e7b249532def8b905e:"Google “Argon2020”",f65c942fd1773022145418083094568ee34d131933bfdf0c2f200bcc4ef164e3:"Google “Argon2021”","2979bef09e393921f056739f63a577e5be577d9c600af8f94d5d265c255dc784":"Google “Argon2022”","68f698f81f6482be3a8ceeb9281d4cfc71515d6793d444d10a67acbb4f4ffbc4":"Google “Aviator”",c3bf03a7e1ca8841c607bae3ff4270fca5ec45b186ebbe4e2cf3fc778630f5f6:"Google “Crucible”","1d024b8eb1498b344dfd87ea3efc0996f7506f235d1d497061a4773c439c25fb":"Google “Daedalus”","293c519654c83965baaa50fc5807d4b76fbf587a2972dca4c30cf4e54547f478":"Google “Icarus”",a4b90990b418581487bb13a2cc67700a3c359804f91bdfb8e377cd0ec80ddc10:"Google “Pilot”",ee4bbdb775ce60bae142691fabe19e66a30f7e5fb072d88300c47b897aa8fdcb:"Google “Rocketeer”",bbd9dfbc1f8a71b593942397aa927b473857950aab52e81a909664368e1ed185:"Google “Skydiver”","52eb4b225ec896974850675f23e43bc1d021e3214ce52ecd5fa87c203cdfca03":"Google “Solera2018”","0b760e9a8b9a682f88985b15e947501a56446bba8830785c3842994386450c00":"Google “Solera2019”","1fc72ce5a1b799f400c359bff96ca3913548e8644220610952e9ba1774f7bac7":"Google “Solera2020”",a3c99845e80ab7ce00157b3742df0207dd272b2b602ecf98ee2c12db9c5ae7e7:"Google “Solera2021”","697aafca1a6b536fae21205046debad7e0eaea13d2432e6e9d8fb379f2b9aaf3":"Google “Solera2022”",a899d8780c9290aaf462f31880ccfbd52451e970d0fbf591ef75b0d99b645681:"Google “Submariner”",b0cc83e5a5f97d6baf7c09cc284904872ac7e88b132c6350b7c6fd26e16c6c77:"Google “Testtube”",b10cd559a6d67846811f7df9a51532739ac48d703bea0323da5d38755bc0ad4e:"Google “Xenon2018”","084114980071532c16190460bcfc47fdc2653afa292c72b37ff863ae29ccc9f0":"Google “Xenon2019”","07b75c1be57d68fff1b0c61d2315c7bae6577c5794b76aeebc613a1a69d3a21c":"Google “Xenon2020”","7d3ef2f88fff88556824c2c0ca9e5289792bc50e78097f2e6a9768997e22f0d7":"Google “Xenon2021”","46a555eb75fa912030b5a28969f4f37d112c4174befd49b885abf2fc70fe6d47":"Google “Xenon2022”","7461b4a09cfb3d41d75159575b2e7649a445a8d27709b0cc564a6482b7eb41a3":"Izenpe","8941449c70742e06b9fc9ce7b116ba0024aa36d59af44f0204404f00f7ea8566":"Izenpe “Argi”","296afa2d568bca0d2ea844956ae9721fc35fa355ecda99693aafd458a71aefdd":"Let“s Encrypt ”Clicky”","537b69a3564335a9c04904e39593b2c298eb8d7a6e83023635c627248cd6b440":"Nordu “flimsy”",aae70b7f3cb8d566c86c2f16979c9f445f69ab0eb4535589b2f77a030104f3cd:"Nordu “plausible”",e0127629e90496564e3d0147984498aa48f8adb16600eb7902a1ef9909906273:"PuChuangSiDa CT",cf55e28923497c340d5206d05353aeb25834b52f1f8dc9526809f212efdd7ca6:"SHECA CT 1","32dc59c2d4c41968d56e14bc61ac8f0e45db39faf3c155aa4252f5001fa0c623":"SHECA CT 2",db76fdadac65e7d09508886e2159bd8b90352f5fead3e3dc5e22eb350acc7b98:"Sectigo (Comodo) “Dodo” CT","6f5376ac31f03119d89900a45115ff77151c11d902c10029068db2089a37d913":"Sectigo (Comodo) “Mammoth” CT","5581d4c2169036014aea0b9b573c53f0c0e43878702508172fa3aa1d0713d30c":"Sectigo (Comodo) “Sabre” CT","34bb6ad6c3df9c03eea8a499ff7891486c9d5e5cac92d01f7bfd1bce19db48ef":"StartCom",ddeb1d2b7a0d4fa6208b81ad8168707e2e8e9d01d55c888d3d11c4cdb6ecbecc:"Symantec",a7ce4a4e6207e0addee5fdaa4b1f86768767b5d002a55d47310e7e670a95eab2:"Symantec Deneb","15970488d7b997a05beb52512adee8d2e8b4a3165264121a9fabfbd5f85ad93f":"Symantec “Sirius”",bc78e1dfc5f63c684649334da10fa15f0979692009c081b4f3f6917f3ed9b8a5:"Symantec “Vega”",b0b784bc81c0ddc47544e883f05985bb9077d134d8ab88b2b2e533980b8e508b:"Up In The Air “Behind the Sofa”",ac3b9aed7fa9674757159e6d7d575672f9d98100941e9bdeffeca1313b75782d:"Venafi","03019df3fd85a69a8ebd1facc6da9ba73e469774fe77f579fc5a08b8328c1d6b":"Venafi Gen2 CT","41b2dc2e89e63ce4af1ba7bb29bf68c6dee6f9f1cc047e30dffae3b3ba259263":"WoSign","63d0006026dde10bb0601f452446965ee2b6ea2cd4fbc95ac866a550af9075b7":"WoSign 2","9e4ff73dc3ce220b69217c899e468076abf8d78636d5ccfc85a31a75628ba88b":"WoSign CT #1"},de=a=>{const{extension:n}=a;return e(J,{extension:n},n.value.toJSON().map(((a,n)=>[e(w,{name:`SCT #${n+1}`,value:""}),e(w,{name:"Version",value:a.version+1}),e(w,{name:"Log Operator",value:ie[a.logId]||a.logId}),e(w,{name:"Log Key ID",value:a.logId,monospace:!0}),e(w,{name:"Timestamp",value:c(a.timestamp)}),e(w,{name:"Signature Algorithm",value:`${a.hashAlgorithm} ${a.signatureAlgorithm}`.toUpperCase()}),e(w,{name:"Signature",value:a.signature,monospace:!0})])))},be=a=>{var n,c;const{extension:t}=a;return e(J,{extension:t},null===(n=t.value.excludedSubtrees)||void 0===n?void 0:n.map((n=>e(F,Object.assign({generalName:n.base},a)))),null===(c=t.value.permittedSubtrees)||void 0===c?void 0:c.map((n=>e(F,Object.assign({generalName:n.base},a)))))},re=a=>{const{extension:n}=a;return e(J,{extension:n},e(w,{name:"Template ID",value:n.value.templateID}),e(w,{name:"Template Major Version",value:n.value.templateMajorVersion}),e(w,{name:"Template Minor Version",value:n.value.templateMinorVersion}))},le=a=>{const{extension:n}=a;return e(J,{extension:n},e(w,{name:"Name",value:n.value.toString()}))},ue=a=>{const{extension:n}=a,c=n.value.getVersion();return e(J,{extension:n},e(w,{name:"Certificate Index",value:c.certificateIndex}),e(w,{name:"Key Index",value:c.keyIndex}))},me=n=>{const{extension:c}=n;return e(J,{extension:c},c.value.map(((n,c)=>[e(w,{name:`Statement #${c+1}`,value:""}),e(w,{name:"ID",value:q(n.statementId)}),e(w,{name:"Info",value:n.statementInfo.byteLength?a.Convert.ToHex(n.statementInfo):null,monospace:!0})])))},ve=a=>{const{extension:n}=a;return e(J,{extension:n},e(w,{name:"Comment",value:n.value.value}))},xe=a=>{const{extension:n}=a;return e(J,{extension:n},e(w,{name:"Type",value:n.value.toJSON().join(", ")}))},ge=a=>{const{extension:n}=a;return e(J,{extension:n},e(w,{name:"Role",value:n.value.text}))},pe=a=>{const{extension:n,getLEILink:c}=a;return e(J,{extension:n},e(w,{name:"Identifier",value:n.value.text,href:c(n.value.text)}))},ye=a=>{const{extension:c}=a;return e(J,{extension:c},e(w,{name:"Version",value:c.value.version}),e(F,Object.assign({generalName:c.value.location},a)),e(w,{name:"Requires Auth",value:n.getString(c.value.requiresAuth?"yes":"no")}))},Ce=a=>{const{extension:n}=a;return e(J,{extension:n},e(w,{name:"Version",value:n.value.version}))},he=a=>{const{extension:n}=a;return e(J,{extension:n},e(w,{name:"Reason",value:n.value.toJSON()}))};
|
|
27
27
|
/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -38,7 +38,7 @@ function Ne(e){return a.Convert.ToString(e.values[0])}
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const Se=a=>{const{extension:n}=a;return e(
|
|
41
|
+
*/const Se=a=>{const{extension:n}=a;return e(J,{extension:n},n.value.map(((a,n)=>[e(w,{name:`Attribute #${n+1}`,value:""}),e(w,{name:"Type",value:q(a.type)}),e(w,{name:"Value",value:Ne(a)})])))},Ae=a=>{const{extension:n}=a;return e(J,{extension:n},e(w,{name:"Value",value:n.value,monospace:!0}))},De=a=>{const{extension:n}=a;return e(J,{extension:n},e(w,{name:"Not Before",value:c(n.value.notBefore)}),e(w,{name:"Not After",value:c(n.value.notAfter)}))},Ie=a=>{const{extension:n}=a;return e(J,{extension:n},e(w,{name:"Version",value:n.value.entrustVers}),e(w,{name:"Info Flags",value:n.value.entrustInfoFlags.toJSON().join(", ")}))},Ge=n=>{const{extension:c}=n;return e(J,{extension:c},c.value.map(((n,c)=>[e(w,{name:`Biometric #${c+1}`,value:""}),e(w,{name:"OID",value:q(n.typeOfBiometricData.biometricDataOid)}),e(w,{name:"Type",value:n.typeOfBiometricData.predefinedBiometricType}),e(w,{name:"Algorithm",value:q(n.hashAlgorithm.algorithm)}),e(w,{name:"Hash",value:a.Convert.ToHex(n.biometricDataHash.buffer),monospace:!0}),e(w,{name:"Source Uri",value:n.sourceDataUri})])))},je=n=>{const{extension:c}=n,t=n=>n?n.map((n=>{const{imageDetails:c}=n;return[e(w,{name:"Image Type",value:c.mediaType}),e(w,{name:"Image Hash",value:a.Convert.ToHex(c.logotypeHash[0].hashValue),monospace:!0}),e(w,{name:"Image URL",value:c.logotypeURI[0],monospace:!0,collapse:!0}),e(w,{name:"Image Hash Algorithm",value:q(c.logotypeHash[0].hashAlg.algorithm)})]})):null,o=n=>n?n.map((n=>{const{audioDetails:c}=n;return[e(w,{name:"Audio Type",value:c.mediaType}),e(w,{name:"Audio Hash",value:a.Convert.ToHex(c.logotypeHash[0].hashValue),monospace:!0}),e(w,{name:"Audio URL",value:c.logotypeURI[0],monospace:!0,collapse:!0}),e(w,{name:"Audio Hash Algorithm",value:q(c.logotypeHash[0].hashAlg.algorithm)})]})):null,s=(a,n)=>{if(!n||!n.direct)return null;const{image:c,audio:s}=n.direct;return[e(w,{name:"Type",value:a}),t(c),o(s),e("tr",null,e("td",null),e("td",null))]};return e(J,{extension:c},s("Subject",c.value.subjectLogo),s("Issuer",c.value.issuerLogo))},Te=a=>{const{extension:n}=a;return e(J,{extension:n},n.value.map(((a,n)=>[e(w,{name:`Entry #${n+1}`,value:""}),e(w,{name:"SPC",value:a.spc}),e(w,{name:"Range",value:a.range?`start=${a.range.start} count==${a.range.count}`:null}),e(w,{name:"One",value:a.one})])))},Oe=a=>{const{extension:n}=a;return e(J,{extension:n},n.value.requireExplicitPolicy&&e(w,{name:"Require Explicit Policy",value:r.toASN(n.value.requireExplicitPolicy).valueBlock.toString()}),n.value.inhibitPolicyMapping&&e(w,{name:"Inhibit Policy Mapping",value:r.toASN(n.value.inhibitPolicyMapping).valueBlock.toString()}))},ke=a=>{const{extension:n}=a;return e(J,{extension:n},n.value.map(((a,n)=>[e(w,{name:`Policy #${n+1}`,value:""}),e(w,{name:"Issuer Domain",value:q(a.issuerDomainPolicy)}),e(w,{name:"Subject Domain",value:q(a.subjectDomainPolicy)})])))},$e=a=>{const{extension:c}=a;return e(J,{extension:c},e(w,{name:n.getString("value"),value:c.value.value}))},Pe=a=>{var c;const{extension:t}=a;return e(J,{extension:t},null===(c=t.value.distributionPoint)||void 0===c?void 0:c.fullName.map((n=>e(F,Object.assign({generalName:n},a)))),t.value.onlySomeReasons&&e(w,{name:n.getString("onlyReasons"),value:t.value.onlySomeReasons.toJSON().join(", ")}),t.value.indirectCRL&&e(w,{name:n.getString("indirectCRL"),value:n.getString("yes")}),t.value.onlyContainsUserCerts&&e(w,{name:n.getString("onlyUserCertificates"),value:n.getString("yes")}),t.value.onlyContainsAttributeCerts&&e(w,{name:n.getString("onlyAttributeCertificates"),value:n.getString("yes")}),t.value.onlyContainsCACerts&&e(w,{name:n.getString("onlyCACertificates"),value:n.getString("yes")}))},Le=a=>{const{extensions:n,title:c}=a;return n&&n.length?[e(B,{value:c||"Extensions"}),n.map((n=>{try{return n.value instanceof l?e(Z,{extension:n}):n.value instanceof u?e(ee,{extension:n}):n.value instanceof m?e(ae,{extension:n}):n.value instanceof v?e(ne,Object.assign({extension:n},a)):n.value instanceof x?e(ce,Object.assign({extension:n},a)):n.value instanceof g?e(te,Object.assign({extension:n},a)):n.value instanceof p||n.value instanceof y?e(oe,Object.assign({extension:n},a)):n.value instanceof C?e(se,Object.assign({extension:n},a)):n.value instanceof h?e(fe,{extension:n}):n.value instanceof N?e(de,{extension:n}):n.value instanceof S?e(be,Object.assign({extension:n},a)):n.value instanceof A?e(re,{extension:n}):n.value instanceof D?e(le,{extension:n}):n.value instanceof I?e(ue,{extension:n}):n.value instanceof G?e(me,{extension:n}):n.value instanceof j?e(ve,{extension:n}):n.value instanceof T?e(xe,{extension:n}):n.value instanceof O?e(ge,{extension:n}):n.value instanceof k?e(pe,Object.assign({extension:n},a)):n.value instanceof $?e(ye,Object.assign({extension:n},a)):n.value instanceof P?e(Ce,{extension:n}):n.value instanceof L?e(he,{extension:n}):n.value instanceof V?e(Se,{extension:n}):n.value instanceof R?e(De,{extension:n}):n.value instanceof U?e(Ie,{extension:n}):n.value instanceof E?e(Ge,{extension:n}):n.value instanceof K?e(je,{extension:n}):n.value instanceof H?e(Te,{extension:n}):n.value instanceof X?e(Oe,{extension:n}):n.value instanceof M?e(ke,{extension:n}):n.value instanceof Y?e($e,{extension:n}):n.value instanceof _?e(Pe,Object.assign({extension:n},a)):e("string"==typeof n.value?Ae:J,{extension:n})}catch(e){return console.error("Error render extension:",n.asn.extnID),null}}))]:null},Ve=a=>{const{serialNumber:t,version:o,validity:s,notBefore:f,notAfter:i,lastUpdate:d,nextUpdate:b,type:r}=a;return[e(B,{value:n.getString("basicInformation")}),e(w,{name:n.getString("type"),value:r}),e(w,{name:n.getString("serialNumber"),value:t,monospace:!0}),e(w,{name:n.getString("version"),value:o}),e(w,{name:n.getString("validity"),value:s}),e(w,{name:n.getString("issued"),value:f?c(f):void 0}),e(w,{name:n.getString("expired"),value:i?c(i):void 0}),e(w,{name:n.getString("lastUpdate"),value:d?c(d):void 0}),e(w,{name:n.getString("nextUpdate"),value:b?c(b):void 0})]},Re=a=>{const{certificate:c}=a;return[e(B,{value:n.getString("miscellaneous")}),e("tr",null,e("td",{class:"vertical_align_middle"},e("peculiar-typography",{color:"grey_5"},n.getString("download"),":")),e("td",null,e("peculiar-button-split",{onClick:()=>c.downloadAsPEM(),actions:[{text:n.getString("download.der"),onClick:()=>c.downloadAsDER()}]},n.getString("download.pem"))))]},Ue=e=>`https://search.gleif.org/#/record/${e}`,Ee=e=>`https://search.censys.io/search?resource=hosts&q=dns.names%3A${e}`,Ke=e=>`https://search.censys.io/search?resource=hosts&q=ip%3A${e}`
|
|
42
42
|
/**
|
|
43
43
|
* @license
|
|
44
44
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -60,4 +60,4 @@ function Ne(e){return a.Convert.ToString(e.values[0])}
|
|
|
60
60
|
* This source code is licensed under the MIT license found in the
|
|
61
61
|
* LICENSE file in the root directory of this source tree.
|
|
62
62
|
*/
|
|
63
|
-
function
|
|
63
|
+
function Me(e){var a;if(null===(a=e.params)||void 0===a?void 0:a.modulus){let a=e.params.modulus.byteLength;return a%2&&(a-=1),8*a}return null}function Ye(e){var a;return(null===(a=e.params)||void 0===a?void 0:a.publicExponent)?3===e.params.publicExponent.byteLength?65537:3:null}const _e=c=>{var t;const{publicKey:o}=c;return o?[e(B,{value:n.getString("publicKeyInfo")}),e(w,{name:n.getString("algorithm"),value:q(o.algorithm)}),e(w,{name:n.getString("namedCurve"),value:q(null===(t=o.params)||void 0===t?void 0:t.namedCurve)}),e(w,{name:n.getString("exponent"),value:Ye(o)}),e(w,{name:n.getString("modulus"),value:Me(o)}),e(w,{name:n.getString("value"),value:a.Convert.ToHex(o.value),monospace:!0,collapse:!0})]:null};export{Ve as B,Le as E,F as G,He as I,Re as M,_e as P,w as R,W as S,Q as T,B as a,Ue as b,Ee as c,Ke as d,Xe as e,q as g}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,c as i,h as e,H as s}from"./p-f7683ba5.js";import{i as o,a as r,b as a,c,d as n}from"./p-
|
|
4
|
+
import{r as t,c as i,h as e,H as s}from"./p-f7683ba5.js";import{i as o,a as r,b as a,c,d as n}from"./p-3a4556ef.js";import"./p-fec9d812.js";import"./p-cff9655c.js";import{X as l}from"./p-c9f01b83.js";import{X as p,C as h,a as f}from"./p-7321a8d6.js";
|
|
5
5
|
/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,h as i,H as e}from"./p-f7683ba5.js";import{X as a}from"./p-
|
|
4
|
+
import{r as t,h as i,H as e}from"./p-f7683ba5.js";import{X as a}from"./p-c9f01b83.js";import"./p-3a4556ef.js";import"./p-cff9655c.js";import"./p-fec9d812.js";import{B as r,e as d,I as s,P as o,S as n,T as l,E as p,b as h,c,d as b,M as g}from"./p-1b11aa24.js";const x=class{constructor(i){t(this,i),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=t=>{var i;return null===(i=this.authKeyIdParentLink)||void 0===i?void 0:i.replace("{{authKeyId}}",t)},this.getAuthKeyIdSiblingsLink=t=>{var i;return null===(i=this.authKeyIdSiblingsLink)||void 0===i?void 0:i.replace("{{authKeyId}}",t)},this.getSubjectKeyIdChildrenLink=t=>{var i;return null===(i=this.subjectKeyIdChildrenLink)||void 0===i?void 0:i.replace("{{subjectKeyId}}",t)},this.getSubjectKeyIdSiblingsLink=t=>{var i;return null===(i=this.subjectKeyIdSiblingsLink)||void 0===i?void 0:i.replace("{{subjectKeyId}}",t)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(t){this.isDecodeInProcess=!0;try{if(t instanceof a)this.certificateDecoded=t;else{if("string"!=typeof t)return;this.certificateDecoded=new a(t)}this.certificateDecoded.parseExtensions(),await this.certificateDecoded.getThumbprint("SHA-1"),await this.certificateDecoded.getThumbprint("SHA-256")}catch(t){this.certificateDecodeError=t,console.error("Error certificate parse:",t)}this.isDecodeInProcess=!1}watchCertificateAndDecode(t,i){"string"!=typeof t||"string"!=typeof i?t instanceof a&&i instanceof a&&t.serialNumber!==i.serialNumber&&this.decodeCertificate(t):t!==i&&this.decodeCertificate(t)}getIssuerDnLink(){return this.issuerDnLink}renderErrorState(){return i("div",{class:"status_wrapper"},i("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate."))}renderEmptyState(){return i("div",{class:"status_wrapper"},i("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate available."))}render(){return this.certificateDecodeError?this.renderErrorState():this.certificateDecoded?i(e,{"data-view":this.view},i("table",null,i(r,Object.assign({},this.certificateDecoded)),i(d,{name:this.certificateDecoded.subject}),i(s,{name:this.certificateDecoded.issuer,issuerDnLink:this.getIssuerDnLink()}),i(o,{publicKey:this.certificateDecoded.publicKey}),i(n,{signature:this.certificateDecoded.signature}),i(l,{thumbprints:this.certificateDecoded.thumbprints}),i(p,{extensions:this.certificateDecoded.extensions,getLEILink:h,getDNSNameLink:c,getIPAddressLink:b,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&i(g,{certificate:this.certificateDecoded}))):this.renderEmptyState()}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};x.style=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";export{x as peculiar_certificate_viewer}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{b as t,c as e,a as i}from"./p-cff9655c.js";import"./p-
|
|
4
|
+
import{b as t,c as e,a as i}from"./p-cff9655c.js";import"./p-fec9d812.js";
|
|
5
5
|
/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -84,4 +84,4 @@ class vn extends gn{constructor(e){super(e,Zi);const i=this.getAsnExtnValue();tr
|
|
|
84
84
|
*
|
|
85
85
|
* This source code is licensed under the MIT license found in the
|
|
86
86
|
* LICENSE file in the root directory of this source tree.
|
|
87
|
-
*/class En{constructor(){this.providers=new Map;const t=window.crypto||window.msCrypto;void 0!==t&&this.set(En.DEFAULT,t)}static isCryptoKeyPair(t){return t&&t.privateKey&&t.publicKey}get(t=En.DEFAULT){const e=this.providers.get(t.toLowerCase());if(!e)throw new Error(`Cannot get Crypto by name '${t}'`);return e}set(t,e){if("string"==typeof t){if(!e)throw new TypeError("Argument 'value' is required");this.providers.set(t.toLowerCase(),e)}else this.providers.set(En.DEFAULT,t);return this}}En.DEFAULT="default";const wn=new En,Pn=/-----BEGIN [^-]+-----([A-Za-z0-9+/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+/=\s]+)====/,bn=t=>t.replace(/(.{32})/g,"$1\n").replace(/(.{4})/g,"$1 ").trim(),Dn=t=>t.replace(/(.{64})/g,"$1\n"),In=e=>{const i=(t=>{const e=Pn.exec(t);return e?e[1]||e[2]:t})(e);let s;return s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(i)?t.Convert.FromHex(i):(t=>{try{return window.atob(t),!0}catch(t){return!1}})(i)||r(i)?t.Convert.FromBase64(i):t.Convert.FromBinary(e),s},Bn=async(t,e)=>{const i=wn.get();if(i.subtle)return i.subtle.digest(t,e)};class Tn{constructor(t={}){this.acIssuer=new je,this.acSerial=0,this.attrs=[],Object.assign(this,t)}}var xn;Ee([Se({type:je})],Tn.prototype,"acIssuer",void 0),Ee([Se({type:Kt.Integer})],Tn.prototype,"acSerial",void 0),Ee([Se({type:Mi,repeated:"sequence"})],Tn.prototype,"attrs",void 0);let On=xn=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,xn.prototype)}};On=xn=Ee([fe({type:Mt.Sequence,itemType:Kt.ObjectIdentifier})],On);class Rn{constructor(t={}){this.permitUnSpecified=!0,Object.assign(this,t)}}Ee([Se({type:Kt.Integer,optional:!0})],Rn.prototype,"pathLenConstraint",void 0),Ee([Se({type:On,implicit:!0,context:0,optional:!0})],Rn.prototype,"permittedAttrs",void 0),Ee([Se({type:On,implicit:!0,context:1,optional:!0})],Rn.prototype,"excludedAttrs",void 0),Ee([Se({type:Kt.Boolean,defaultValue:!0})],Rn.prototype,"permitUnSpecified",void 0);class Nn{constructor(t={}){this.issuer=new We,this.serial=new ArrayBuffer(0),this.issuerUID=new ArrayBuffer(0),Object.assign(this,t)}}var kn;Ee([Se({type:We})],Nn.prototype,"issuer",void 0),Ee([Se({type:Kt.Integer,converter:Vt})],Nn.prototype,"serial",void 0),Ee([Se({type:Kt.BitString,optional:!0})],Nn.prototype,"issuerUID",void 0),function(t){t[t.publicKey=0]="publicKey",t[t.publicKeyCert=1]="publicKeyCert",t[t.otherObjectTypes=2]="otherObjectTypes"}(kn||(kn={}));class Mn{constructor(t={}){this.digestedObjectType=kn.publicKey,this.digestAlgorithm=new Qi,this.objectDigest=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.Enumerated})],Mn.prototype,"digestedObjectType",void 0),Ee([Se({type:Kt.ObjectIdentifier,optional:!0})],Mn.prototype,"otherObjectTypeID",void 0),Ee([Se({type:Qi})],Mn.prototype,"digestAlgorithm",void 0),Ee([Se({type:Kt.BitString})],Mn.prototype,"objectDigest",void 0);class Kn{constructor(t={}){Object.assign(this,t)}}Ee([Se({type:We,optional:!0})],Kn.prototype,"issuerName",void 0),Ee([Se({type:Nn,context:0,implicit:!0,optional:!0})],Kn.prototype,"baseCertificateID",void 0),Ee([Se({type:Mn,context:1,implicit:!0,optional:!0})],Kn.prototype,"objectDigestInfo",void 0);let jn=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:je,repeated:"sequence"})],jn.prototype,"v1Form",void 0),Ee([Se({type:Kn,context:0,implicit:!0})],jn.prototype,"v2Form",void 0),jn=Ee([fe({type:Mt.Choice})],jn);class Hn{constructor(t={}){this.notBeforeTime=new Date,this.notAfterTime=new Date,Object.assign(this,t)}}Ee([Se({type:Kt.GeneralizedTime})],Hn.prototype,"notBeforeTime",void 0),Ee([Se({type:Kt.GeneralizedTime})],Hn.prototype,"notAfterTime",void 0);class _n{constructor(t={}){Object.assign(this,t)}}var Un,Fn,Vn;Ee([Se({type:Nn,implicit:!0,context:0,optional:!0})],_n.prototype,"baseCertificateID",void 0),Ee([Se({type:We,implicit:!0,context:1,optional:!0})],_n.prototype,"entityName",void 0),Ee([Se({type:Mn,implicit:!0,context:2,optional:!0})],_n.prototype,"objectDigestInfo",void 0),function(t){t[t.v2=1]="v2"}(Un||(Un={}));class Ln{constructor(t={}){this.version=Un.v2,this.holder=new _n,this.issuer=new jn,this.signature=new Qi,this.serialNumber=new ArrayBuffer(0),this.attrCertValidityPeriod=new Hn,this.attributes=[],Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],Ln.prototype,"version",void 0),Ee([Se({type:_n})],Ln.prototype,"holder",void 0),Ee([Se({type:jn})],Ln.prototype,"issuer",void 0),Ee([Se({type:Qi})],Ln.prototype,"signature",void 0),Ee([Se({type:Kt.Integer,converter:Vt})],Ln.prototype,"serialNumber",void 0),Ee([Se({type:Hn})],Ln.prototype,"attrCertValidityPeriod",void 0),Ee([Se({type:Mi,repeated:"sequence"})],Ln.prototype,"attributes",void 0),Ee([Se({type:Kt.BitString,optional:!0})],Ln.prototype,"issuerUniqueID",void 0),Ee([Se({type:Xi,optional:!0})],Ln.prototype,"extensions",void 0);class Gn{constructor(t={}){this.acinfo=new Ln,this.signatureAlgorithm=new Qi,this.signatureValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Ln})],Gn.prototype,"acinfo",void 0),Ee([Se({type:Qi})],Gn.prototype,"signatureAlgorithm",void 0),Ee([Se({type:Kt.BitString})],Gn.prototype,"signatureValue",void 0),function(t){t[t.unmarked=1]="unmarked",t[t.unclassified=2]="unclassified",t[t.restricted=4]="restricted",t[t.confidential=8]="confidential",t[t.secret=16]="secret",t[t.topSecret=32]="topSecret"}(Fn||(Fn={}));class $n extends jt{}class Qn{constructor(t={}){this.type="",this.value=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier,implicit:!0,context:0})],Qn.prototype,"type",void 0),Ee([Se({type:Kt.Any,implicit:!0,context:1})],Qn.prototype,"value",void 0);class Wn{constructor(t={}){this.policyId="",this.classList=new $n(Fn.unclassified),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],Wn.prototype,"policyId",void 0),Ee([Se({type:$n,defaultValue:new $n(Fn.unclassified)})],Wn.prototype,"classList",void 0),Ee([Se({type:Qn,repeated:"set"})],Wn.prototype,"securityCategories",void 0);class qn{constructor(t={}){Object.assign(this,t)}}Ee([Se({type:Ht})],qn.prototype,"cotets",void 0),Ee([Se({type:Kt.ObjectIdentifier})],qn.prototype,"oid",void 0),Ee([Se({type:Kt.Utf8String})],qn.prototype,"string",void 0);class zn{constructor(t={}){this.values=[],Object.assign(this,t)}}Ee([Se({type:We,implicit:!0,context:0,optional:!0})],zn.prototype,"policyAuthority",void 0),Ee([Se({type:qn,repeated:"sequence"})],zn.prototype,"values",void 0);class Jn{constructor(t={}){this.targetCertificate=new Nn,Object.assign(this,t)}}Ee([Se({type:Nn})],Jn.prototype,"targetCertificate",void 0),Ee([Se({type:je,optional:!0})],Jn.prototype,"targetName",void 0),Ee([Se({type:Mn,optional:!0})],Jn.prototype,"certDigestInfo",void 0);let Zn=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:je,context:0,implicit:!0})],Zn.prototype,"targetName",void 0),Ee([Se({type:je,context:1,implicit:!0})],Zn.prototype,"targetGroup",void 0),Ee([Se({type:Jn,context:2,implicit:!0})],Zn.prototype,"targetCert",void 0),Zn=Ee([fe({type:Mt.Choice})],Zn);let Xn=Vn=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Vn.prototype)}};var Yn;Xn=Vn=Ee([fe({type:Mt.Sequence,itemType:Zn})],Xn);let to=Yn=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Yn.prototype)}};to=Yn=Ee([fe({type:Mt.Sequence,itemType:Xn})],to);class eo{constructor(t={}){Object.assign(this,t)}}Ee([Se({type:We,implicit:!0,context:0,optional:!0})],eo.prototype,"roleAuthority",void 0),Ee([Se({type:je,implicit:!0,context:1})],eo.prototype,"roleName",void 0);class io{constructor(t={}){this.service=new je,this.ident=new je,Object.assign(this,t)}}Ee([Se({type:je})],io.prototype,"service",void 0),Ee([Se({type:je})],io.prototype,"ident",void 0),Ee([Se({type:Ht,optional:!0})],io.prototype,"authInfo",void 0);const ro="0.4.0.9496.6";let so=class{constructor(t={}){this.codeAuthority=new je,this.codeId=new je,this.shortName="",this.shortDescription="",Object.assign(this,t)}};Ee([Se({type:je,context:0})],so.prototype,"codeAuthority",void 0),Ee([Se({type:je,context:1})],so.prototype,"codeId",void 0),Ee([Se({type:Kt.Utf8String,context:2})],so.prototype,"shortName",void 0),Ee([Se({type:Kt.Utf8String,context:3})],so.prototype,"shortDescription",void 0),so=Ee([fe({type:Mt.Sequence})],so);let no=class extends Ne{constructor(t){super(t),Object.setPrototypeOf(this,Ne.prototype)}};no=Ee([fe({type:Mt.Sequence})],no);const oo="0.4.0.9496.1";let ao=class extends no{constructor(t){super(t),Object.setPrototypeOf(this,Ne.prototype)}};ao=Ee([fe({type:Mt.Sequence})],ao);const co="0.4.0.9496.2";let lo=class extends no{constructor(t){super(t),Object.setPrototypeOf(this,Ne.prototype)}};lo=Ee([fe({type:Mt.Sequence})],lo);const uo="0.4.0.9496.3";let ho=class extends no{constructor(t){super(t),Object.setPrototypeOf(this,Ne.prototype)}};ho=Ee([fe({type:Mt.Sequence})],ho);const po="0.4.0.9496.4";let yo=class extends no{constructor(t){super(t),Object.setPrototypeOf(this,Ne.prototype)}};yo=Ee([fe({type:Mt.Sequence})],yo);const fo="0.4.0.9496.8";let So=class{constructor(t={}){this.location="",this.base=0,this.degree=0,Object.assign(this,t)}toString(){return`${this.base} x 10^${this.degree} ${this.location}`}};Ee([Se({type:Kt.PrintableString})],So.prototype,"location",void 0),Ee([Se({type:Kt.Integer})],So.prototype,"base",void 0),Ee([Se({type:Kt.Integer})],So.prototype,"degree",void 0),So=Ee([fe({type:Mt.Sequence})],So);const Co="0.4.0.9496.9";let Ao=class{constructor(t={}){this.stars5=0,this.stars4=0,this.stars3=0,this.stars2=0,this.stars1=0,Object.assign(this,t)}};Ee([Se({type:Kt.Integer})],Ao.prototype,"stars5",void 0),Ee([Se({type:Kt.Integer})],Ao.prototype,"stars4",void 0),Ee([Se({type:Kt.Integer})],Ao.prototype,"stars3",void 0),Ee([Se({type:Kt.Integer})],Ao.prototype,"stars2",void 0),Ee([Se({type:Kt.Integer})],Ao.prototype,"stars1",void 0),Ao=Ee([fe({type:Mt.Sequence})],Ao);const mo="0.4.0.9496.5";let go=class{constructor(t={}){this.DNBvsDNO=new jt(0),this.DNBvsDNT=new jt(0),this.DNOvsDNT=new jt(0),Object.assign(this,t)}};Ee([Se({type:jt,context:0})],go.prototype,"DNBvsDNO",void 0),Ee([Se({type:jt,context:1})],go.prototype,"DNBvsDNT",void 0),Ee([Se({type:jt,context:2})],go.prototype,"DNOvsDNT",void 0),go=Ee([fe({type:Mt.Sequence})],go);const vo="0.4.0.9496.7";let Eo=class{constructor(t={}){this.assessmentAuthority=new je,this.assessmentRef=new je,this.assessmentLocation=new je,this.dataStorageTerritory="",this.description="",Object.assign(this,t)}};Ee([Se({type:je,context:0})],Eo.prototype,"assessmentAuthority",void 0),Ee([Se({type:je,context:1})],Eo.prototype,"assessmentRef",void 0),Ee([Se({type:je,context:2})],Eo.prototype,"assessmentLocation",void 0),Ee([Se({type:Kt.PrintableString,context:3})],Eo.prototype,"dataStorageTerritory",void 0),Ee([Se({type:Kt.Utf8String,context:4})],Eo.prototype,"description",void 0),Eo=Ee([fe({type:Mt.Sequence})],Eo);class wo{constructor(t={}){this.attrType="",this.attrValues=[],Object.assign(this,t)}}var Po;Ee([Se({type:Kt.ObjectIdentifier})],wo.prototype,"attrType",void 0),Ee([Se({type:Kt.Any,repeated:"set"})],wo.prototype,"attrValues",void 0);class bo{constructor(t={}){this.otherCertFormat="",this.otherCert=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],bo.prototype,"otherCertFormat",void 0),Ee([Se({type:Kt.Any})],bo.prototype,"otherCert",void 0);let Do=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:er})],Do.prototype,"certificate",void 0),Ee([Se({type:Gn,context:2,implicit:!0})],Do.prototype,"v2AttrCert",void 0),Ee([Se({type:bo,context:3,implicit:!0})],Do.prototype,"other",void 0),Do=Ee([fe({type:Mt.Choice})],Do);let Io=Po=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Po.prototype)}};Io=Po=Ee([fe({type:Mt.Set,itemType:Do})],Io);class Bo{constructor(t={}){this.contentType="",this.content=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],Bo.prototype,"contentType",void 0),Ee([Se({type:Kt.Any,context:0})],Bo.prototype,"content",void 0);let To=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:Ht})],To.prototype,"single",void 0),Ee([Se({type:Kt.Any})],To.prototype,"any",void 0),To=Ee([fe({type:Mt.Choice})],To);class xo{constructor(t={}){this.eContentType="",Object.assign(this,t)}}var Oo;Ee([Se({type:Kt.ObjectIdentifier})],xo.prototype,"eContentType",void 0),Ee([Se({type:To,context:0,optional:!0})],xo.prototype,"eContent",void 0),function(t){t[t.v0=0]="v0",t[t.v1=1]="v1",t[t.v2=2]="v2",t[t.v3=3]="v3",t[t.v4=4]="v4",t[t.v5=5]="v5"}(Oo||(Oo={}));let Ro=class extends Qi{};Ro=Ee([fe({type:Mt.Sequence})],Ro);let No=class extends Qi{};No=Ee([fe({type:Mt.Sequence})],No);let ko=class extends Qi{};ko=Ee([fe({type:Mt.Sequence})],ko);let Mo=class extends Qi{};Mo=Ee([fe({type:Mt.Sequence})],Mo);let Ko=class extends Qi{};Ko=Ee([fe({type:Mt.Sequence})],Ko);let jo=class extends Qi{};jo=Ee([fe({type:Mt.Sequence})],jo);let Ho=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:Ht,context:0,implicit:!0,optional:!0})],Ho.prototype,"value",void 0),Ee([Se({type:Ht,converter:Wt,context:0,implicit:!0,optional:!0,repeated:"sequence"})],Ho.prototype,"constructedValue",void 0),Ho=Ee([fe({type:Mt.Choice})],Ho);class _o{constructor(t={}){this.contentType="",this.contentEncryptionAlgorithm=new Mo,Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],_o.prototype,"contentType",void 0),Ee([Se({type:Mo})],_o.prototype,"contentEncryptionAlgorithm",void 0),Ee([Se({type:Ho,optional:!0})],_o.prototype,"encryptedContent",void 0);class Uo{constructor(t={}){this.issuer=new Ne,this.serialNumber=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Ne})],Uo.prototype,"issuer",void 0),Ee([Se({type:Kt.Integer,converter:Vt})],Uo.prototype,"serialNumber",void 0);class Fo{constructor(t={}){this.keyAttrId="",Object.assign(this,t)}}var Vo;Ee([Se({type:Kt.ObjectIdentifier})],Fo.prototype,"keyAttrId",void 0),Ee([Se({type:Kt.Any,optional:!0})],Fo.prototype,"keyAttr",void 0);class Lo{constructor(t={}){this.subjectKeyIdentifier=new Hi,Object.assign(this,t)}}Ee([Se({type:Hi})],Lo.prototype,"subjectKeyIdentifier",void 0),Ee([Se({type:Kt.GeneralizedTime,optional:!0})],Lo.prototype,"date",void 0),Ee([Se({type:Fo,optional:!0})],Lo.prototype,"other",void 0);let Go=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:Lo,context:0,implicit:!0,optional:!0})],Go.prototype,"rKeyId",void 0),Ee([Se({type:Uo,optional:!0})],Go.prototype,"issuerAndSerialNumber",void 0),Go=Ee([fe({type:Mt.Choice})],Go);class $o{constructor(t={}){this.rid=new Go,this.encryptedKey=new Ht,Object.assign(this,t)}}Ee([Se({type:Go})],$o.prototype,"rid",void 0),Ee([Se({type:Ht})],$o.prototype,"encryptedKey",void 0);let Qo=Vo=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Vo.prototype)}};Qo=Vo=Ee([fe({type:Mt.Sequence,itemType:$o})],Qo);class Wo{constructor(t={}){this.algorithm=new Qi,this.publicKey=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Qi})],Wo.prototype,"algorithm",void 0),Ee([Se({type:Kt.BitString})],Wo.prototype,"publicKey",void 0);let qo=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:Hi,context:0,implicit:!0,optional:!0})],qo.prototype,"subjectKeyIdentifier",void 0),Ee([Se({type:Wo,context:1,implicit:!0,optional:!0})],qo.prototype,"originatorKey",void 0),Ee([Se({type:Uo,optional:!0})],qo.prototype,"issuerAndSerialNumber",void 0),qo=Ee([fe({type:Mt.Choice})],qo);class zo{constructor(t={}){this.version=Oo.v3,this.originator=new qo,this.keyEncryptionAlgorithm=new ko,this.recipientEncryptedKeys=new Qo,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],zo.prototype,"version",void 0),Ee([Se({type:qo,context:0})],zo.prototype,"originator",void 0),Ee([Se({type:Ht,context:1,optional:!0})],zo.prototype,"ukm",void 0),Ee([Se({type:ko})],zo.prototype,"keyEncryptionAlgorithm",void 0),Ee([Se({type:Qo})],zo.prototype,"recipientEncryptedKeys",void 0);let Jo=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:Hi,context:0,implicit:!0})],Jo.prototype,"subjectKeyIdentifier",void 0),Ee([Se({type:Uo})],Jo.prototype,"issuerAndSerialNumber",void 0),Jo=Ee([fe({type:Mt.Choice})],Jo);class Zo{constructor(t={}){this.version=Oo.v0,this.rid=new Jo,this.keyEncryptionAlgorithm=new ko,this.encryptedKey=new Ht,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],Zo.prototype,"version",void 0),Ee([Se({type:Jo})],Zo.prototype,"rid",void 0),Ee([Se({type:ko})],Zo.prototype,"keyEncryptionAlgorithm",void 0),Ee([Se({type:Ht})],Zo.prototype,"encryptedKey",void 0);class Xo{constructor(t={}){this.keyIdentifier=new Ht,Object.assign(this,t)}}Ee([Se({type:Ht})],Xo.prototype,"keyIdentifier",void 0),Ee([Se({type:Kt.GeneralizedTime,optional:!0})],Xo.prototype,"date",void 0),Ee([Se({type:Fo,optional:!0})],Xo.prototype,"other",void 0);class Yo{constructor(t={}){this.version=Oo.v4,this.kekid=new Xo,this.keyEncryptionAlgorithm=new ko,this.encryptedKey=new Ht,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],Yo.prototype,"version",void 0),Ee([Se({type:Xo})],Yo.prototype,"kekid",void 0),Ee([Se({type:ko})],Yo.prototype,"keyEncryptionAlgorithm",void 0),Ee([Se({type:Ht})],Yo.prototype,"encryptedKey",void 0);class ta{constructor(t={}){this.version=Oo.v0,this.keyEncryptionAlgorithm=new ko,this.encryptedKey=new Ht,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],ta.prototype,"version",void 0),Ee([Se({type:jo,context:0,optional:!0})],ta.prototype,"keyDerivationAlgorithm",void 0),Ee([Se({type:ko})],ta.prototype,"keyEncryptionAlgorithm",void 0),Ee([Se({type:Ht})],ta.prototype,"encryptedKey",void 0);class ea{constructor(t={}){this.oriType="",this.oriValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],ea.prototype,"oriType",void 0),Ee([Se({type:Kt.Any})],ea.prototype,"oriValue",void 0);let ia=class{constructor(t={}){Object.assign(this,t)}};var ra;Ee([Se({type:Zo,optional:!0})],ia.prototype,"ktri",void 0),Ee([Se({type:zo,context:1,implicit:!0,optional:!0})],ia.prototype,"kari",void 0),Ee([Se({type:Yo,context:2,implicit:!0,optional:!0})],ia.prototype,"kekri",void 0),Ee([Se({type:ta,context:3,implicit:!0,optional:!0})],ia.prototype,"pwri",void 0),Ee([Se({type:ea,context:4,implicit:!0,optional:!0})],ia.prototype,"ori",void 0),ia=Ee([fe({type:Mt.Choice})],ia);let sa=ra=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,ra.prototype)}};var na;sa=ra=Ee([fe({type:Mt.Set,itemType:ia})],sa);class oa{constructor(t={}){this.otherRevInfoFormat="",this.otherRevInfo=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],oa.prototype,"otherRevInfoFormat",void 0),Ee([Se({type:Kt.Any})],oa.prototype,"otherRevInfo",void 0);let aa=class{constructor(t={}){this.other=new oa,Object.assign(this,t)}};Ee([Se({type:oa,context:1,implicit:!0})],aa.prototype,"other",void 0),aa=Ee([fe({type:Mt.Choice})],aa);let ca=na=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,na.prototype)}};ca=na=Ee([fe({type:Mt.Set,itemType:aa})],ca);class la{constructor(t={}){Object.assign(this,t)}}var ua;Ee([Se({type:Io,context:0,implicit:!0,optional:!0})],la.prototype,"certs",void 0),Ee([Se({type:ca,context:1,implicit:!0,optional:!0})],la.prototype,"crls",void 0);let ha=ua=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,ua.prototype)}};ha=ua=Ee([fe({type:Mt.Set,itemType:wo})],ha);class pa{constructor(t={}){this.version=Oo.v0,this.recipientInfos=new sa,this.encryptedContentInfo=new _o,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],pa.prototype,"version",void 0),Ee([Se({type:la,context:0,implicit:!0,optional:!0})],pa.prototype,"originatorInfo",void 0),Ee([Se({type:sa})],pa.prototype,"recipientInfos",void 0),Ee([Se({type:_o})],pa.prototype,"encryptedContentInfo",void 0),Ee([Se({type:ha,context:1,implicit:!0,optional:!0})],pa.prototype,"unprotectedAttrs",void 0);let da=class{constructor(t={}){Object.assign(this,t)}};var ya;Ee([Se({type:Hi,context:0,implicit:!0})],da.prototype,"subjectKeyIdentifier",void 0),Ee([Se({type:Uo})],da.prototype,"issuerAndSerialNumber",void 0),da=Ee([fe({type:Mt.Choice})],da);class fa{constructor(t={}){this.version=Oo.v0,this.sid=new da,this.digestAlgorithm=new Ro,this.signatureAlgorithm=new No,this.signature=new Ht,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],fa.prototype,"version",void 0),Ee([Se({type:da})],fa.prototype,"sid",void 0),Ee([Se({type:Ro})],fa.prototype,"digestAlgorithm",void 0),Ee([Se({type:wo,repeated:"set",context:0,implicit:!0,optional:!0})],fa.prototype,"signedAttrs",void 0),Ee([Se({type:No})],fa.prototype,"signatureAlgorithm",void 0),Ee([Se({type:Ht})],fa.prototype,"signature",void 0),Ee([Se({type:wo,repeated:"set",context:1,implicit:!0,optional:!0})],fa.prototype,"unsignedAttrs",void 0);let Sa=ya=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,ya.prototype)}};var Ca;Sa=ya=Ee([fe({type:Mt.Set,itemType:fa})],Sa);let Aa=Ca=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Ca.prototype)}};Aa=Ca=Ee([fe({type:Mt.Set,itemType:Ro})],Aa);class ma{constructor(t={}){this.version=Oo.v0,this.digestAlgorithms=new Aa,this.encapContentInfo=new xo,this.signerInfos=new Sa,Object.assign(this,t)}}var ga;Ee([Se({type:Kt.Integer})],ma.prototype,"version",void 0),Ee([Se({type:Aa})],ma.prototype,"digestAlgorithms",void 0),Ee([Se({type:xo})],ma.prototype,"encapContentInfo",void 0),Ee([Se({type:Io,context:0,implicit:!0,optional:!0})],ma.prototype,"certificates",void 0),Ee([Se({type:aa,context:1,implicit:!0,optional:!0})],ma.prototype,"crls",void 0),Ee([Se({type:Sa})],ma.prototype,"signerInfos",void 0);class va{constructor(t={}){this.attrId="",this.attrValues=[],Object.assign(t)}}Ee([Se({type:Kt.ObjectIdentifier})],va.prototype,"attrId",void 0),Ee([Se({type:Kt.Any,repeated:"set"})],va.prototype,"attrValues",void 0);let Ea=ga=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,ga.prototype)}};var wa;Ea=ga=Ee([fe({type:Mt.Sequence,itemType:va})],Ea);let Pa=wa=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,wa.prototype)}};Pa=wa=Ee([fe({type:Mt.Sequence,itemType:Bo})],Pa);class ba{constructor(t={}){this.certId="",this.certValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],ba.prototype,"certId",void 0),Ee([Se({type:Kt.Any,context:0})],ba.prototype,"certValue",void 0);class Da{constructor(t={}){this.crlId="",this.crltValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],Da.prototype,"crlId",void 0),Ee([Se({type:Kt.Any,context:0})],Da.prototype,"crltValue",void 0);class Ia extends Ht{}class Ba{constructor(t={}){this.encryptionAlgorithm=new Qi,this.encryptedData=new Ia,Object.assign(this,t)}}var Ta,xa;Ee([Se({type:Qi})],Ba.prototype,"encryptionAlgorithm",void 0),Ee([Se({type:Ia})],Ba.prototype,"encryptedData",void 0),function(t){t[t.v1=0]="v1"}(xa||(xa={}));class Oa extends Ht{}let Ra=Ta=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Ta.prototype)}};Ra=Ta=Ee([fe({type:Mt.Sequence,itemType:Mi})],Ra);class Na{constructor(t={}){this.version=xa.v1,this.privateKeyAlgorithm=new Qi,this.privateKey=new Oa,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],Na.prototype,"version",void 0),Ee([Se({type:Qi})],Na.prototype,"privateKeyAlgorithm",void 0),Ee([Se({type:Oa})],Na.prototype,"privateKey",void 0),Ee([Se({type:Ra,implicit:!0,context:0,optional:!0})],Na.prototype,"attributes",void 0);let ka=class extends Na{};ka=Ee([fe({type:Mt.Sequence})],ka);let Ma=class extends Ba{};Ma=Ee([fe({type:Mt.Sequence})],Ma);class Ka{constructor(t={}){this.secretTypeId="",this.secretValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],Ka.prototype,"secretTypeId",void 0),Ee([Se({type:Kt.Any,context:0})],Ka.prototype,"secretValue",void 0);class ja{constructor(t={}){this.mac=new Tr,this.macSalt=new Ht,this.iterations=1,Object.assign(this,t)}}Ee([Se({type:Tr})],ja.prototype,"mac",void 0),Ee([Se({type:Ht})],ja.prototype,"macSalt",void 0),Ee([Se({type:Kt.Integer,defaultValue:1})],ja.prototype,"iterations",void 0);class Ha{constructor(t={}){this.version=3,this.authSafe=new Bo,this.macData=new ja,Object.assign(this,t)}}var _a;Ee([Se({type:Kt.Integer})],Ha.prototype,"version",void 0),Ee([Se({type:Bo})],Ha.prototype,"authSafe",void 0),Ee([Se({type:ja,optional:!0})],Ha.prototype,"macData",void 0);class Ua{constructor(t={}){this.bagId="",this.bagValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],Ua.prototype,"bagId",void 0),Ee([Se({type:Kt.Any,context:0})],Ua.prototype,"bagValue",void 0),Ee([Se({type:va,repeated:"set",optional:!0})],Ua.prototype,"bagAttributes",void 0);let Fa=_a=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,_a.prototype)}};var Va,La,Ga;Fa=_a=Ee([fe({type:Mt.Sequence,itemType:Ua})],Fa);const $a="1.2.840.113549.1.9",Qa=`${$a}.2`,Wa=`${$a}.7`,qa=`${$a}.14`;let za=class extends Be{constructor(t={}){super(t)}toString(){return{}.toString(),this.ia5String||super.toString()}};Ee([Se({type:Kt.IA5String})],za.prototype,"ia5String",void 0),za=Ee([fe({type:Mt.Choice})],za);let Ja=class extends Bo{};Ja=Ee([fe({type:Mt.Sequence})],Ja);let Za=class extends Ha{};Za=Ee([fe({type:Mt.Sequence})],Za);let Xa=class extends Ba{};Xa=Ee([fe({type:Mt.Sequence})],Xa);let Ya=class{constructor(t=""){this.value=t}toString(){return this.value}};Ee([Se({type:Kt.IA5String})],Ya.prototype,"value",void 0),Ya=Ee([fe({type:Mt.Choice})],Ya);let tc=class extends za{};tc=Ee([fe({type:Mt.Choice})],tc);let ec=class extends Be{};ec=Ee([fe({type:Mt.Choice})],ec);let ic=class{constructor(t=new Date){this.value=t}};Ee([Se({type:Kt.GeneralizedTime})],ic.prototype,"value",void 0),ic=Ee([fe({type:Mt.Choice})],ic);let rc=class extends Be{};rc=Ee([fe({type:Mt.Choice})],rc);let sc=class{constructor(t="M"){this.value=t}toString(){return this.value}};Ee([Se({type:Kt.PrintableString})],sc.prototype,"value",void 0),sc=Ee([fe({type:Mt.Choice})],sc);let nc=class{constructor(t=""){this.value=t}toString(){return this.value}};Ee([Se({type:Kt.PrintableString})],nc.prototype,"value",void 0),nc=Ee([fe({type:Mt.Choice})],nc);let oc=class extends nc{};oc=Ee([fe({type:Mt.Choice})],oc);let ac=class extends Be{};ac=Ee([fe({type:Mt.Choice})],ac);let cc=class{constructor(t=""){this.value=t}toString(){return this.value}};Ee([Se({type:Kt.ObjectIdentifier})],cc.prototype,"value",void 0),cc=Ee([fe({type:Mt.Choice})],cc);let lc=class extends qi{};lc=Ee([fe({type:Mt.Choice})],lc);let uc=class{constructor(t=0){this.value=t}toString(){return this.value.toString()}};Ee([Se({type:Kt.Integer})],uc.prototype,"value",void 0),uc=Ee([fe({type:Mt.Choice})],uc);let hc=class extends fa{};hc=Ee([fe({type:Mt.Sequence})],hc);let pc=class extends Be{};pc=Ee([fe({type:Mt.Choice})],pc);let dc=Va=class extends Xi{constructor(t){super(t),Object.setPrototypeOf(this,Va.prototype)}};dc=Va=Ee([fe({type:Mt.Sequence})],dc);let yc=La=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,La.prototype)}};yc=La=Ee([fe({type:Mt.Set,itemType:wo})],yc);let fc=class{constructor(t=""){this.value=t}toString(){return this.value}};Ee([Se({type:Kt.BmpString})],fc.prototype,"value",void 0),fc=Ee([fe({type:Mt.Choice})],fc);let Sc=class extends Qi{};Sc=Ee([fe({type:Mt.Sequence})],Sc);let Cc=Ga=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Ga.prototype)}};var Ac;Cc=Ga=Ee([fe({type:Mt.Sequence,itemType:Sc})],Cc);let mc=Ac=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Ac.prototype)}};mc=Ac=Ee([fe({type:Mt.Sequence,itemType:Mi})],mc);class gc{constructor(t={}){this.version=0,this.subject=new Ne,this.subjectPKInfo=new Wi,this.attributes=new mc,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],gc.prototype,"version",void 0),Ee([Se({type:Ne})],gc.prototype,"subject",void 0),Ee([Se({type:Wi})],gc.prototype,"subjectPKInfo",void 0),Ee([Se({type:mc,implicit:!0,context:0})],gc.prototype,"attributes",void 0);class vc{constructor(t={}){this.certificationRequestInfo=new gc,this.signatureAlgorithm=new Qi,this.signature=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:gc})],vc.prototype,"certificationRequestInfo",void 0),Ee([Se({type:Qi})],vc.prototype,"signatureAlgorithm",void 0),Ee([Se({type:Kt.BitString})],vc.prototype,"signature",void 0);export{Vt as $,gn as A,po as B,er as C,yo as D,vn as E,uo as F,ho as G,co as H,So as I,lo as J,oo as K,ao as L,Gn as M,Ur as N,vc as O,sr as P,Kr as Q,kr as R,Ne as S,go as T,tc as U,Ao as V,Eo as W,Me as X,Ze as Y,Ye as Z,Ke as _,s as a,bi as a0,$e as a1,Ai as a2,Hi as a3,Ge as a4,hi as a5,Ve as a6,$i as a7,ki as a8,ri as a9,Ls as aa,Bi as ab,rs as ac,ns as ad,os as ae,Xr as af,Ts as ag,Bs as ah,Ms as ai,ks as aj,$s as ak,Gs as al,Si as am,ji as an,_i as ao,Li as ap,$r as aq,nn as ar,fn as as,Ti as at,Ri as au,si as av,yi as aw,o as b,a as c,n as d,In as e,ve as f,nr as g,ar as h,r as i,hr as j,bn as k,Dn as l,Bn as m,Mi as n,qa as o,Ae as p,dc as q,Qa as r,Wa as s,pc as t,Co as u,fo as v,vo as w,ro as x,so as y,mo as z}
|
|
87
|
+
*/class En{constructor(){this.providers=new Map;const t=window.crypto||window.msCrypto;void 0!==t&&this.set(En.DEFAULT,t)}static isCryptoKeyPair(t){return t&&t.privateKey&&t.publicKey}get(t=En.DEFAULT){const e=this.providers.get(t.toLowerCase());if(!e)throw new Error(`Cannot get Crypto by name '${t}'`);return e}set(t,e){if("string"==typeof t){if(!e)throw new TypeError("Argument 'value' is required");this.providers.set(t.toLowerCase(),e)}else this.providers.set(En.DEFAULT,t);return this}}En.DEFAULT="default";const wn=new En,Pn=/-----BEGIN [^-]+-----([A-Za-z0-9+/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+/=\s]+)====/,bn=t=>t.replace(/(.{32})/g,"$1\n").replace(/(.{4})/g,"$1 ").trim(),Dn=t=>t.replace(/(.{64})/g,"$1\n"),In=e=>{const i=(t=>{const e=Pn.exec(t);return e?e[1]||e[2]:t})(e);let s;return s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(i)?t.Convert.FromHex(i):(t=>{try{return window.atob(t),!0}catch(t){return!1}})(i)||r(i)?t.Convert.FromBase64(i):t.Convert.FromBinary(e),s},Bn=async(t,e)=>{const i=wn.get();if(i.subtle)return i.subtle.digest(t,e)};class Tn{constructor(t={}){this.acIssuer=new je,this.acSerial=0,this.attrs=[],Object.assign(this,t)}}var xn;Ee([Se({type:je})],Tn.prototype,"acIssuer",void 0),Ee([Se({type:Kt.Integer})],Tn.prototype,"acSerial",void 0),Ee([Se({type:Mi,repeated:"sequence"})],Tn.prototype,"attrs",void 0);let On=xn=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,xn.prototype)}};On=xn=Ee([fe({type:Mt.Sequence,itemType:Kt.ObjectIdentifier})],On);class Rn{constructor(t={}){this.permitUnSpecified=!0,Object.assign(this,t)}}Ee([Se({type:Kt.Integer,optional:!0})],Rn.prototype,"pathLenConstraint",void 0),Ee([Se({type:On,implicit:!0,context:0,optional:!0})],Rn.prototype,"permittedAttrs",void 0),Ee([Se({type:On,implicit:!0,context:1,optional:!0})],Rn.prototype,"excludedAttrs",void 0),Ee([Se({type:Kt.Boolean,defaultValue:!0})],Rn.prototype,"permitUnSpecified",void 0);class Nn{constructor(t={}){this.issuer=new We,this.serial=new ArrayBuffer(0),this.issuerUID=new ArrayBuffer(0),Object.assign(this,t)}}var kn;Ee([Se({type:We})],Nn.prototype,"issuer",void 0),Ee([Se({type:Kt.Integer,converter:Vt})],Nn.prototype,"serial",void 0),Ee([Se({type:Kt.BitString,optional:!0})],Nn.prototype,"issuerUID",void 0),function(t){t[t.publicKey=0]="publicKey",t[t.publicKeyCert=1]="publicKeyCert",t[t.otherObjectTypes=2]="otherObjectTypes"}(kn||(kn={}));class Mn{constructor(t={}){this.digestedObjectType=kn.publicKey,this.digestAlgorithm=new Qi,this.objectDigest=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.Enumerated})],Mn.prototype,"digestedObjectType",void 0),Ee([Se({type:Kt.ObjectIdentifier,optional:!0})],Mn.prototype,"otherObjectTypeID",void 0),Ee([Se({type:Qi})],Mn.prototype,"digestAlgorithm",void 0),Ee([Se({type:Kt.BitString})],Mn.prototype,"objectDigest",void 0);class Kn{constructor(t={}){Object.assign(this,t)}}Ee([Se({type:We,optional:!0})],Kn.prototype,"issuerName",void 0),Ee([Se({type:Nn,context:0,implicit:!0,optional:!0})],Kn.prototype,"baseCertificateID",void 0),Ee([Se({type:Mn,context:1,implicit:!0,optional:!0})],Kn.prototype,"objectDigestInfo",void 0);let jn=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:je,repeated:"sequence"})],jn.prototype,"v1Form",void 0),Ee([Se({type:Kn,context:0,implicit:!0})],jn.prototype,"v2Form",void 0),jn=Ee([fe({type:Mt.Choice})],jn);class Hn{constructor(t={}){this.notBeforeTime=new Date,this.notAfterTime=new Date,Object.assign(this,t)}}Ee([Se({type:Kt.GeneralizedTime})],Hn.prototype,"notBeforeTime",void 0),Ee([Se({type:Kt.GeneralizedTime})],Hn.prototype,"notAfterTime",void 0);class _n{constructor(t={}){Object.assign(this,t)}}var Un,Fn,Vn;Ee([Se({type:Nn,implicit:!0,context:0,optional:!0})],_n.prototype,"baseCertificateID",void 0),Ee([Se({type:We,implicit:!0,context:1,optional:!0})],_n.prototype,"entityName",void 0),Ee([Se({type:Mn,implicit:!0,context:2,optional:!0})],_n.prototype,"objectDigestInfo",void 0),function(t){t[t.v2=1]="v2"}(Un||(Un={}));class Ln{constructor(t={}){this.version=Un.v2,this.holder=new _n,this.issuer=new jn,this.signature=new Qi,this.serialNumber=new ArrayBuffer(0),this.attrCertValidityPeriod=new Hn,this.attributes=[],Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],Ln.prototype,"version",void 0),Ee([Se({type:_n})],Ln.prototype,"holder",void 0),Ee([Se({type:jn})],Ln.prototype,"issuer",void 0),Ee([Se({type:Qi})],Ln.prototype,"signature",void 0),Ee([Se({type:Kt.Integer,converter:Vt})],Ln.prototype,"serialNumber",void 0),Ee([Se({type:Hn})],Ln.prototype,"attrCertValidityPeriod",void 0),Ee([Se({type:Mi,repeated:"sequence"})],Ln.prototype,"attributes",void 0),Ee([Se({type:Kt.BitString,optional:!0})],Ln.prototype,"issuerUniqueID",void 0),Ee([Se({type:Xi,optional:!0})],Ln.prototype,"extensions",void 0);class Gn{constructor(t={}){this.acinfo=new Ln,this.signatureAlgorithm=new Qi,this.signatureValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Ln})],Gn.prototype,"acinfo",void 0),Ee([Se({type:Qi})],Gn.prototype,"signatureAlgorithm",void 0),Ee([Se({type:Kt.BitString})],Gn.prototype,"signatureValue",void 0),function(t){t[t.unmarked=1]="unmarked",t[t.unclassified=2]="unclassified",t[t.restricted=4]="restricted",t[t.confidential=8]="confidential",t[t.secret=16]="secret",t[t.topSecret=32]="topSecret"}(Fn||(Fn={}));class $n extends jt{}class Qn{constructor(t={}){this.type="",this.value=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier,implicit:!0,context:0})],Qn.prototype,"type",void 0),Ee([Se({type:Kt.Any,implicit:!0,context:1})],Qn.prototype,"value",void 0);class Wn{constructor(t={}){this.policyId="",this.classList=new $n(Fn.unclassified),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],Wn.prototype,"policyId",void 0),Ee([Se({type:$n,defaultValue:new $n(Fn.unclassified)})],Wn.prototype,"classList",void 0),Ee([Se({type:Qn,repeated:"set"})],Wn.prototype,"securityCategories",void 0);class qn{constructor(t={}){Object.assign(this,t)}}Ee([Se({type:Ht})],qn.prototype,"cotets",void 0),Ee([Se({type:Kt.ObjectIdentifier})],qn.prototype,"oid",void 0),Ee([Se({type:Kt.Utf8String})],qn.prototype,"string",void 0);class zn{constructor(t={}){this.values=[],Object.assign(this,t)}}Ee([Se({type:We,implicit:!0,context:0,optional:!0})],zn.prototype,"policyAuthority",void 0),Ee([Se({type:qn,repeated:"sequence"})],zn.prototype,"values",void 0);class Jn{constructor(t={}){this.targetCertificate=new Nn,Object.assign(this,t)}}Ee([Se({type:Nn})],Jn.prototype,"targetCertificate",void 0),Ee([Se({type:je,optional:!0})],Jn.prototype,"targetName",void 0),Ee([Se({type:Mn,optional:!0})],Jn.prototype,"certDigestInfo",void 0);let Zn=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:je,context:0,implicit:!0})],Zn.prototype,"targetName",void 0),Ee([Se({type:je,context:1,implicit:!0})],Zn.prototype,"targetGroup",void 0),Ee([Se({type:Jn,context:2,implicit:!0})],Zn.prototype,"targetCert",void 0),Zn=Ee([fe({type:Mt.Choice})],Zn);let Xn=Vn=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Vn.prototype)}};var Yn;Xn=Vn=Ee([fe({type:Mt.Sequence,itemType:Zn})],Xn);let to=Yn=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Yn.prototype)}};to=Yn=Ee([fe({type:Mt.Sequence,itemType:Xn})],to);class eo{constructor(t={}){Object.assign(this,t)}}Ee([Se({type:We,implicit:!0,context:0,optional:!0})],eo.prototype,"roleAuthority",void 0),Ee([Se({type:je,implicit:!0,context:1})],eo.prototype,"roleName",void 0);class io{constructor(t={}){this.service=new je,this.ident=new je,Object.assign(this,t)}}Ee([Se({type:je})],io.prototype,"service",void 0),Ee([Se({type:je})],io.prototype,"ident",void 0),Ee([Se({type:Ht,optional:!0})],io.prototype,"authInfo",void 0);const ro="0.4.0.9496.6";let so=class{constructor(t={}){this.codeAuthority=new je,this.codeId=new je,this.shortName="",this.shortDescription="",Object.assign(this,t)}};Ee([Se({type:je,context:0})],so.prototype,"codeAuthority",void 0),Ee([Se({type:je,context:1})],so.prototype,"codeId",void 0),Ee([Se({type:Kt.Utf8String,context:2})],so.prototype,"shortName",void 0),Ee([Se({type:Kt.Utf8String,context:3})],so.prototype,"shortDescription",void 0),so=Ee([fe({type:Mt.Sequence})],so);let no=class extends Ne{constructor(t){super(t),Object.setPrototypeOf(this,Ne.prototype)}};no=Ee([fe({type:Mt.Sequence})],no);const oo="0.4.0.9496.1";let ao=class extends no{constructor(t){super(t),Object.setPrototypeOf(this,Ne.prototype)}};ao=Ee([fe({type:Mt.Sequence})],ao);const co="0.4.0.9496.2";let lo=class extends no{constructor(t){super(t),Object.setPrototypeOf(this,Ne.prototype)}};lo=Ee([fe({type:Mt.Sequence})],lo);const uo="0.4.0.9496.3";let ho=class extends no{constructor(t){super(t),Object.setPrototypeOf(this,Ne.prototype)}};ho=Ee([fe({type:Mt.Sequence})],ho);const po="0.4.0.9496.4";let yo=class extends no{constructor(t){super(t),Object.setPrototypeOf(this,Ne.prototype)}};yo=Ee([fe({type:Mt.Sequence})],yo);const fo="0.4.0.9496.8";let So=class{constructor(t={}){this.location="",this.base=0,this.degree=0,Object.assign(this,t)}toString(){return`${this.base} x 10^${this.degree} ${this.location}`}};Ee([Se({type:Kt.PrintableString})],So.prototype,"location",void 0),Ee([Se({type:Kt.Integer})],So.prototype,"base",void 0),Ee([Se({type:Kt.Integer})],So.prototype,"degree",void 0),So=Ee([fe({type:Mt.Sequence})],So);const Co="0.4.0.9496.9";let Ao=class{constructor(t={}){this.stars5=0,this.stars4=0,this.stars3=0,this.stars2=0,this.stars1=0,Object.assign(this,t)}};Ee([Se({type:Kt.Integer})],Ao.prototype,"stars5",void 0),Ee([Se({type:Kt.Integer})],Ao.prototype,"stars4",void 0),Ee([Se({type:Kt.Integer})],Ao.prototype,"stars3",void 0),Ee([Se({type:Kt.Integer})],Ao.prototype,"stars2",void 0),Ee([Se({type:Kt.Integer})],Ao.prototype,"stars1",void 0),Ao=Ee([fe({type:Mt.Sequence})],Ao);const mo="0.4.0.9496.5";let go=class{constructor(t={}){this.DNBvsDNO=new jt(0),this.DNBvsDNT=new jt(0),this.DNOvsDNT=new jt(0),Object.assign(this,t)}};Ee([Se({type:jt,context:0})],go.prototype,"DNBvsDNO",void 0),Ee([Se({type:jt,context:1})],go.prototype,"DNBvsDNT",void 0),Ee([Se({type:jt,context:2})],go.prototype,"DNOvsDNT",void 0),go=Ee([fe({type:Mt.Sequence})],go);const vo="0.4.0.9496.7";let Eo=class{constructor(t={}){this.assessmentAuthority=new je,this.assessmentRef=new je,this.assessmentLocation=new je,this.dataStorageTerritory="",this.description="",Object.assign(this,t)}};Ee([Se({type:je,context:0})],Eo.prototype,"assessmentAuthority",void 0),Ee([Se({type:je,context:1})],Eo.prototype,"assessmentRef",void 0),Ee([Se({type:je,context:2})],Eo.prototype,"assessmentLocation",void 0),Ee([Se({type:Kt.PrintableString,context:3})],Eo.prototype,"dataStorageTerritory",void 0),Ee([Se({type:Kt.Utf8String,context:4})],Eo.prototype,"description",void 0),Eo=Ee([fe({type:Mt.Sequence})],Eo);class wo{constructor(t={}){this.attrType="",this.attrValues=[],Object.assign(this,t)}}var Po;Ee([Se({type:Kt.ObjectIdentifier})],wo.prototype,"attrType",void 0),Ee([Se({type:Kt.Any,repeated:"set"})],wo.prototype,"attrValues",void 0);class bo{constructor(t={}){this.otherCertFormat="",this.otherCert=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],bo.prototype,"otherCertFormat",void 0),Ee([Se({type:Kt.Any})],bo.prototype,"otherCert",void 0);let Do=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:er})],Do.prototype,"certificate",void 0),Ee([Se({type:Gn,context:2,implicit:!0})],Do.prototype,"v2AttrCert",void 0),Ee([Se({type:bo,context:3,implicit:!0})],Do.prototype,"other",void 0),Do=Ee([fe({type:Mt.Choice})],Do);let Io=Po=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Po.prototype)}};Io=Po=Ee([fe({type:Mt.Set,itemType:Do})],Io);class Bo{constructor(t={}){this.contentType="",this.content=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],Bo.prototype,"contentType",void 0),Ee([Se({type:Kt.Any,context:0})],Bo.prototype,"content",void 0);let To=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:Ht})],To.prototype,"single",void 0),Ee([Se({type:Kt.Any})],To.prototype,"any",void 0),To=Ee([fe({type:Mt.Choice})],To);class xo{constructor(t={}){this.eContentType="",Object.assign(this,t)}}var Oo;Ee([Se({type:Kt.ObjectIdentifier})],xo.prototype,"eContentType",void 0),Ee([Se({type:To,context:0,optional:!0})],xo.prototype,"eContent",void 0),function(t){t[t.v0=0]="v0",t[t.v1=1]="v1",t[t.v2=2]="v2",t[t.v3=3]="v3",t[t.v4=4]="v4",t[t.v5=5]="v5"}(Oo||(Oo={}));let Ro=class extends Qi{};Ro=Ee([fe({type:Mt.Sequence})],Ro);let No=class extends Qi{};No=Ee([fe({type:Mt.Sequence})],No);let ko=class extends Qi{};ko=Ee([fe({type:Mt.Sequence})],ko);let Mo=class extends Qi{};Mo=Ee([fe({type:Mt.Sequence})],Mo);let Ko=class extends Qi{};Ko=Ee([fe({type:Mt.Sequence})],Ko);let jo=class extends Qi{};jo=Ee([fe({type:Mt.Sequence})],jo);let Ho=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:Ht,context:0,implicit:!0,optional:!0})],Ho.prototype,"value",void 0),Ee([Se({type:Ht,converter:Wt,context:0,implicit:!0,optional:!0,repeated:"sequence"})],Ho.prototype,"constructedValue",void 0),Ho=Ee([fe({type:Mt.Choice})],Ho);class _o{constructor(t={}){this.contentType="",this.contentEncryptionAlgorithm=new Mo,Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],_o.prototype,"contentType",void 0),Ee([Se({type:Mo})],_o.prototype,"contentEncryptionAlgorithm",void 0),Ee([Se({type:Ho,optional:!0})],_o.prototype,"encryptedContent",void 0);class Uo{constructor(t={}){this.issuer=new Ne,this.serialNumber=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Ne})],Uo.prototype,"issuer",void 0),Ee([Se({type:Kt.Integer,converter:Vt})],Uo.prototype,"serialNumber",void 0);class Fo{constructor(t={}){this.keyAttrId="",Object.assign(this,t)}}var Vo;Ee([Se({type:Kt.ObjectIdentifier})],Fo.prototype,"keyAttrId",void 0),Ee([Se({type:Kt.Any,optional:!0})],Fo.prototype,"keyAttr",void 0);class Lo{constructor(t={}){this.subjectKeyIdentifier=new Hi,Object.assign(this,t)}}Ee([Se({type:Hi})],Lo.prototype,"subjectKeyIdentifier",void 0),Ee([Se({type:Kt.GeneralizedTime,optional:!0})],Lo.prototype,"date",void 0),Ee([Se({type:Fo,optional:!0})],Lo.prototype,"other",void 0);let Go=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:Lo,context:0,implicit:!0,optional:!0})],Go.prototype,"rKeyId",void 0),Ee([Se({type:Uo,optional:!0})],Go.prototype,"issuerAndSerialNumber",void 0),Go=Ee([fe({type:Mt.Choice})],Go);class $o{constructor(t={}){this.rid=new Go,this.encryptedKey=new Ht,Object.assign(this,t)}}Ee([Se({type:Go})],$o.prototype,"rid",void 0),Ee([Se({type:Ht})],$o.prototype,"encryptedKey",void 0);let Qo=Vo=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Vo.prototype)}};Qo=Vo=Ee([fe({type:Mt.Sequence,itemType:$o})],Qo);class Wo{constructor(t={}){this.algorithm=new Qi,this.publicKey=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Qi})],Wo.prototype,"algorithm",void 0),Ee([Se({type:Kt.BitString})],Wo.prototype,"publicKey",void 0);let qo=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:Hi,context:0,implicit:!0,optional:!0})],qo.prototype,"subjectKeyIdentifier",void 0),Ee([Se({type:Wo,context:1,implicit:!0,optional:!0})],qo.prototype,"originatorKey",void 0),Ee([Se({type:Uo,optional:!0})],qo.prototype,"issuerAndSerialNumber",void 0),qo=Ee([fe({type:Mt.Choice})],qo);class zo{constructor(t={}){this.version=Oo.v3,this.originator=new qo,this.keyEncryptionAlgorithm=new ko,this.recipientEncryptedKeys=new Qo,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],zo.prototype,"version",void 0),Ee([Se({type:qo,context:0})],zo.prototype,"originator",void 0),Ee([Se({type:Ht,context:1,optional:!0})],zo.prototype,"ukm",void 0),Ee([Se({type:ko})],zo.prototype,"keyEncryptionAlgorithm",void 0),Ee([Se({type:Qo})],zo.prototype,"recipientEncryptedKeys",void 0);let Jo=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:Hi,context:0,implicit:!0})],Jo.prototype,"subjectKeyIdentifier",void 0),Ee([Se({type:Uo})],Jo.prototype,"issuerAndSerialNumber",void 0),Jo=Ee([fe({type:Mt.Choice})],Jo);class Zo{constructor(t={}){this.version=Oo.v0,this.rid=new Jo,this.keyEncryptionAlgorithm=new ko,this.encryptedKey=new Ht,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],Zo.prototype,"version",void 0),Ee([Se({type:Jo})],Zo.prototype,"rid",void 0),Ee([Se({type:ko})],Zo.prototype,"keyEncryptionAlgorithm",void 0),Ee([Se({type:Ht})],Zo.prototype,"encryptedKey",void 0);class Xo{constructor(t={}){this.keyIdentifier=new Ht,Object.assign(this,t)}}Ee([Se({type:Ht})],Xo.prototype,"keyIdentifier",void 0),Ee([Se({type:Kt.GeneralizedTime,optional:!0})],Xo.prototype,"date",void 0),Ee([Se({type:Fo,optional:!0})],Xo.prototype,"other",void 0);class Yo{constructor(t={}){this.version=Oo.v4,this.kekid=new Xo,this.keyEncryptionAlgorithm=new ko,this.encryptedKey=new Ht,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],Yo.prototype,"version",void 0),Ee([Se({type:Xo})],Yo.prototype,"kekid",void 0),Ee([Se({type:ko})],Yo.prototype,"keyEncryptionAlgorithm",void 0),Ee([Se({type:Ht})],Yo.prototype,"encryptedKey",void 0);class ta{constructor(t={}){this.version=Oo.v0,this.keyEncryptionAlgorithm=new ko,this.encryptedKey=new Ht,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],ta.prototype,"version",void 0),Ee([Se({type:jo,context:0,optional:!0})],ta.prototype,"keyDerivationAlgorithm",void 0),Ee([Se({type:ko})],ta.prototype,"keyEncryptionAlgorithm",void 0),Ee([Se({type:Ht})],ta.prototype,"encryptedKey",void 0);class ea{constructor(t={}){this.oriType="",this.oriValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],ea.prototype,"oriType",void 0),Ee([Se({type:Kt.Any})],ea.prototype,"oriValue",void 0);let ia=class{constructor(t={}){Object.assign(this,t)}};var ra;Ee([Se({type:Zo,optional:!0})],ia.prototype,"ktri",void 0),Ee([Se({type:zo,context:1,implicit:!0,optional:!0})],ia.prototype,"kari",void 0),Ee([Se({type:Yo,context:2,implicit:!0,optional:!0})],ia.prototype,"kekri",void 0),Ee([Se({type:ta,context:3,implicit:!0,optional:!0})],ia.prototype,"pwri",void 0),Ee([Se({type:ea,context:4,implicit:!0,optional:!0})],ia.prototype,"ori",void 0),ia=Ee([fe({type:Mt.Choice})],ia);let sa=ra=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,ra.prototype)}};var na;sa=ra=Ee([fe({type:Mt.Set,itemType:ia})],sa);class oa{constructor(t={}){this.otherRevInfoFormat="",this.otherRevInfo=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],oa.prototype,"otherRevInfoFormat",void 0),Ee([Se({type:Kt.Any})],oa.prototype,"otherRevInfo",void 0);let aa=class{constructor(t={}){this.other=new oa,Object.assign(this,t)}};Ee([Se({type:oa,context:1,implicit:!0})],aa.prototype,"other",void 0),aa=Ee([fe({type:Mt.Choice})],aa);let ca=na=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,na.prototype)}};ca=na=Ee([fe({type:Mt.Set,itemType:aa})],ca);class la{constructor(t={}){Object.assign(this,t)}}var ua;Ee([Se({type:Io,context:0,implicit:!0,optional:!0})],la.prototype,"certs",void 0),Ee([Se({type:ca,context:1,implicit:!0,optional:!0})],la.prototype,"crls",void 0);let ha=ua=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,ua.prototype)}};ha=ua=Ee([fe({type:Mt.Set,itemType:wo})],ha);class pa{constructor(t={}){this.version=Oo.v0,this.recipientInfos=new sa,this.encryptedContentInfo=new _o,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],pa.prototype,"version",void 0),Ee([Se({type:la,context:0,implicit:!0,optional:!0})],pa.prototype,"originatorInfo",void 0),Ee([Se({type:sa})],pa.prototype,"recipientInfos",void 0),Ee([Se({type:_o})],pa.prototype,"encryptedContentInfo",void 0),Ee([Se({type:ha,context:1,implicit:!0,optional:!0})],pa.prototype,"unprotectedAttrs",void 0);let da=class{constructor(t={}){Object.assign(this,t)}};var ya;Ee([Se({type:Hi,context:0,implicit:!0})],da.prototype,"subjectKeyIdentifier",void 0),Ee([Se({type:Uo})],da.prototype,"issuerAndSerialNumber",void 0),da=Ee([fe({type:Mt.Choice})],da);class fa{constructor(t={}){this.version=Oo.v0,this.sid=new da,this.digestAlgorithm=new Ro,this.signatureAlgorithm=new No,this.signature=new Ht,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],fa.prototype,"version",void 0),Ee([Se({type:da})],fa.prototype,"sid",void 0),Ee([Se({type:Ro})],fa.prototype,"digestAlgorithm",void 0),Ee([Se({type:wo,repeated:"set",context:0,implicit:!0,optional:!0})],fa.prototype,"signedAttrs",void 0),Ee([Se({type:No})],fa.prototype,"signatureAlgorithm",void 0),Ee([Se({type:Ht})],fa.prototype,"signature",void 0),Ee([Se({type:wo,repeated:"set",context:1,implicit:!0,optional:!0})],fa.prototype,"unsignedAttrs",void 0);let Sa=ya=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,ya.prototype)}};var Ca;Sa=ya=Ee([fe({type:Mt.Set,itemType:fa})],Sa);let Aa=Ca=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Ca.prototype)}};Aa=Ca=Ee([fe({type:Mt.Set,itemType:Ro})],Aa);class ma{constructor(t={}){this.version=Oo.v0,this.digestAlgorithms=new Aa,this.encapContentInfo=new xo,this.signerInfos=new Sa,Object.assign(this,t)}}var ga;Ee([Se({type:Kt.Integer})],ma.prototype,"version",void 0),Ee([Se({type:Aa})],ma.prototype,"digestAlgorithms",void 0),Ee([Se({type:xo})],ma.prototype,"encapContentInfo",void 0),Ee([Se({type:Io,context:0,implicit:!0,optional:!0})],ma.prototype,"certificates",void 0),Ee([Se({type:aa,context:1,implicit:!0,optional:!0})],ma.prototype,"crls",void 0),Ee([Se({type:Sa})],ma.prototype,"signerInfos",void 0);class va{constructor(t={}){this.attrId="",this.attrValues=[],Object.assign(t)}}Ee([Se({type:Kt.ObjectIdentifier})],va.prototype,"attrId",void 0),Ee([Se({type:Kt.Any,repeated:"set"})],va.prototype,"attrValues",void 0);let Ea=ga=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,ga.prototype)}};var wa;Ea=ga=Ee([fe({type:Mt.Sequence,itemType:va})],Ea);let Pa=wa=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,wa.prototype)}};Pa=wa=Ee([fe({type:Mt.Sequence,itemType:Bo})],Pa);class ba{constructor(t={}){this.certId="",this.certValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],ba.prototype,"certId",void 0),Ee([Se({type:Kt.Any,context:0})],ba.prototype,"certValue",void 0);class Da{constructor(t={}){this.crlId="",this.crltValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],Da.prototype,"crlId",void 0),Ee([Se({type:Kt.Any,context:0})],Da.prototype,"crltValue",void 0);class Ia extends Ht{}class Ba{constructor(t={}){this.encryptionAlgorithm=new Qi,this.encryptedData=new Ia,Object.assign(this,t)}}var Ta,xa;Ee([Se({type:Qi})],Ba.prototype,"encryptionAlgorithm",void 0),Ee([Se({type:Ia})],Ba.prototype,"encryptedData",void 0),function(t){t[t.v1=0]="v1"}(xa||(xa={}));class Oa extends Ht{}let Ra=Ta=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Ta.prototype)}};Ra=Ta=Ee([fe({type:Mt.Sequence,itemType:Mi})],Ra);class Na{constructor(t={}){this.version=xa.v1,this.privateKeyAlgorithm=new Qi,this.privateKey=new Oa,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],Na.prototype,"version",void 0),Ee([Se({type:Qi})],Na.prototype,"privateKeyAlgorithm",void 0),Ee([Se({type:Oa})],Na.prototype,"privateKey",void 0),Ee([Se({type:Ra,implicit:!0,context:0,optional:!0})],Na.prototype,"attributes",void 0);let ka=class extends Na{};ka=Ee([fe({type:Mt.Sequence})],ka);let Ma=class extends Ba{};Ma=Ee([fe({type:Mt.Sequence})],Ma);class Ka{constructor(t={}){this.secretTypeId="",this.secretValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],Ka.prototype,"secretTypeId",void 0),Ee([Se({type:Kt.Any,context:0})],Ka.prototype,"secretValue",void 0);class ja{constructor(t={}){this.mac=new Tr,this.macSalt=new Ht,this.iterations=1,Object.assign(this,t)}}Ee([Se({type:Tr})],ja.prototype,"mac",void 0),Ee([Se({type:Ht})],ja.prototype,"macSalt",void 0),Ee([Se({type:Kt.Integer,defaultValue:1})],ja.prototype,"iterations",void 0);class Ha{constructor(t={}){this.version=3,this.authSafe=new Bo,this.macData=new ja,Object.assign(this,t)}}var _a;Ee([Se({type:Kt.Integer})],Ha.prototype,"version",void 0),Ee([Se({type:Bo})],Ha.prototype,"authSafe",void 0),Ee([Se({type:ja,optional:!0})],Ha.prototype,"macData",void 0);class Ua{constructor(t={}){this.bagId="",this.bagValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],Ua.prototype,"bagId",void 0),Ee([Se({type:Kt.Any,context:0})],Ua.prototype,"bagValue",void 0),Ee([Se({type:va,repeated:"set",optional:!0})],Ua.prototype,"bagAttributes",void 0);let Fa=_a=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,_a.prototype)}};var Va,La,Ga;Fa=_a=Ee([fe({type:Mt.Sequence,itemType:Ua})],Fa);const $a="1.2.840.113549.1.9",Qa=`${$a}.2`,Wa=`${$a}.7`,qa=`${$a}.14`;let za=class extends Be{constructor(t={}){super(t)}toString(){return{}.toString(),this.ia5String||super.toString()}};Ee([Se({type:Kt.IA5String})],za.prototype,"ia5String",void 0),za=Ee([fe({type:Mt.Choice})],za);let Ja=class extends Bo{};Ja=Ee([fe({type:Mt.Sequence})],Ja);let Za=class extends Ha{};Za=Ee([fe({type:Mt.Sequence})],Za);let Xa=class extends Ba{};Xa=Ee([fe({type:Mt.Sequence})],Xa);let Ya=class{constructor(t=""){this.value=t}toString(){return this.value}};Ee([Se({type:Kt.IA5String})],Ya.prototype,"value",void 0),Ya=Ee([fe({type:Mt.Choice})],Ya);let tc=class extends za{};tc=Ee([fe({type:Mt.Choice})],tc);let ec=class extends Be{};ec=Ee([fe({type:Mt.Choice})],ec);let ic=class{constructor(t=new Date){this.value=t}};Ee([Se({type:Kt.GeneralizedTime})],ic.prototype,"value",void 0),ic=Ee([fe({type:Mt.Choice})],ic);let rc=class extends Be{};rc=Ee([fe({type:Mt.Choice})],rc);let sc=class{constructor(t="M"){this.value=t}toString(){return this.value}};Ee([Se({type:Kt.PrintableString})],sc.prototype,"value",void 0),sc=Ee([fe({type:Mt.Choice})],sc);let nc=class{constructor(t=""){this.value=t}toString(){return this.value}};Ee([Se({type:Kt.PrintableString})],nc.prototype,"value",void 0),nc=Ee([fe({type:Mt.Choice})],nc);let oc=class extends nc{};oc=Ee([fe({type:Mt.Choice})],oc);let ac=class extends Be{};ac=Ee([fe({type:Mt.Choice})],ac);let cc=class{constructor(t=""){this.value=t}toString(){return this.value}};Ee([Se({type:Kt.ObjectIdentifier})],cc.prototype,"value",void 0),cc=Ee([fe({type:Mt.Choice})],cc);let lc=class extends qi{};lc=Ee([fe({type:Mt.Choice})],lc);let uc=class{constructor(t=0){this.value=t}toString(){return this.value.toString()}};Ee([Se({type:Kt.Integer})],uc.prototype,"value",void 0),uc=Ee([fe({type:Mt.Choice})],uc);let hc=class extends fa{};hc=Ee([fe({type:Mt.Sequence})],hc);let pc=class extends Be{};pc=Ee([fe({type:Mt.Choice})],pc);let dc=Va=class extends Xi{constructor(t){super(t),Object.setPrototypeOf(this,Va.prototype)}};dc=Va=Ee([fe({type:Mt.Sequence})],dc);let yc=La=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,La.prototype)}};yc=La=Ee([fe({type:Mt.Set,itemType:wo})],yc);let fc=class{constructor(t=""){this.value=t}toString(){return this.value}};Ee([Se({type:Kt.BmpString})],fc.prototype,"value",void 0),fc=Ee([fe({type:Mt.Choice})],fc);let Sc=class extends Qi{};Sc=Ee([fe({type:Mt.Sequence})],Sc);let Cc=Ga=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Ga.prototype)}};var Ac;Cc=Ga=Ee([fe({type:Mt.Sequence,itemType:Sc})],Cc);let mc=Ac=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Ac.prototype)}};mc=Ac=Ee([fe({type:Mt.Sequence,itemType:Mi})],mc);class gc{constructor(t={}){this.version=0,this.subject=new Ne,this.subjectPKInfo=new Wi,this.attributes=new mc,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],gc.prototype,"version",void 0),Ee([Se({type:Ne})],gc.prototype,"subject",void 0),Ee([Se({type:Wi})],gc.prototype,"subjectPKInfo",void 0),Ee([Se({type:mc,implicit:!0,context:0})],gc.prototype,"attributes",void 0);class vc{constructor(t={}){this.certificationRequestInfo=new gc,this.signatureAlgorithm=new Qi,this.signature=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:gc})],vc.prototype,"certificationRequestInfo",void 0),Ee([Se({type:Qi})],vc.prototype,"signatureAlgorithm",void 0),Ee([Se({type:Kt.BitString})],vc.prototype,"signature",void 0);export{Ze as $,gn as A,po as B,er as C,yo as D,vn as E,uo as F,ho as G,co as H,So as I,lo as J,oo as K,ao as L,Gn as M,Ur as N,vc as O,sr as P,Kr as Q,kr as R,Ne as S,go as T,tc as U,Ao as V,Eo as W,Si as X,gi as Y,ze as Z,Me as _,s as a,Ye as a0,Ke as a1,Vt as a2,bi as a3,$e as a4,Ai as a5,Hi as a6,Ge as a7,hi as a8,Ve as a9,$i as aa,ki as ab,ri as ac,Ls as ad,Bi as ae,rs as af,ns as ag,os as ah,Xr as ai,Ts as aj,Bs as ak,Ms as al,ks as am,$s as an,Gs as ao,ji as ap,_i as aq,Li as ar,$r as as,nn as at,fn as au,Ti as av,Ri as aw,si as ax,yi as ay,o as b,a as c,n as d,In as e,ve as f,nr as g,ar as h,r as i,hr as j,bn as k,Dn as l,Bn as m,Mi as n,qa as o,Ae as p,dc as q,Qa as r,Wa as s,pc as t,Co as u,fo as v,vo as w,ro as x,so as y,mo as z}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{A as t,n as s,o as e,p as
|
|
4
|
+
import{A as t,n as s,o as e,p as r,q as i,E as a,f as n,r as o,U as h,s as c,t as u,u as l,V as m,v as E,I as g,w as p,W as A,x as f,y as d,z as b,T as w,B as x,D as C,F as T,G as R,H as I,J as v,K as k,L as N,e as F,M as y,m as B,k as D,l as P,O as H,N as L,g as S,h as j,j as U,R as X,P as q}from"./p-3a4556ef.js";import{b as G,D as K}from"./p-cff9655c.js";import{d as M}from"./p-fec9d812.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
|
-
*/class $ extends t{constructor(t){super(t,s);const F=this.getAsnExtnValue();switch(this.asn.type){case
|
|
11
|
+
*/class $ extends t{constructor(t){super(t,s);const F=this.getAsnExtnValue();switch(this.asn.type){case k:this.value=r.parse(F,N);break;case I:this.value=r.parse(F,v);break;case T:this.value=r.parse(F,R);break;case x:this.value=r.parse(F,C);break;case b:this.value=r.parse(F,w);break;case f:this.value=r.parse(F,d);break;case p:this.value=r.parse(F,A);break;case E:this.value=r.parse(F,g);break;case l:this.value=r.parse(F,m);break;case c:this.value=r.parse(F,u);break;case o:this.value=r.parse(F,h);break;case e:{const t=r.parse(F,i);this.value=t.map((t=>new a(n.serialize(t))));break}default:this.value=G.Convert.ToHex(F)}}getAsnExtnValue(){return this.asn.values[0]}}
|
|
12
12
|
/**
|
|
13
13
|
* @license
|
|
14
14
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/class O extends t{constructor(t){var s;super(F(t),
|
|
18
|
+
*/class O extends t{constructor(t){var s;super(F(t),y),this.thumbprints={},this.type="X.509 Attribute Certificate";const{acinfo:e}=this.asn;this.serialNumber=G.Convert.ToHex(e.serialNumber),this.version=e.version;const r=e.attrCertValidityPeriod.notBeforeTime;if(!r)throw new Error("Cannot get 'notBefore' value");this.notBefore=r;const i=e.attrCertValidityPeriod.notAfterTime;if(!i)throw new Error("Cannot get 'notAfter' value");this.notAfter=i,this.validity=M(this.notBefore,this.notAfter),this.issuer=e.issuer.v1Form||(null===(s=e.issuer.v2Form)||void 0===s?void 0:s.issuerName),this.holder=e.holder}get signature(){const{signatureValue:t,signatureAlgorithm:s}=this.asn;return{value:t,algorithm:s.algorithm}}parseExtensions(){const{acinfo:t}=this.asn;t.extensions&&(this.extensions=t.extensions.map((t=>new a(n.serialize(t)))))}parseAttributes(){const{acinfo:t}=this.asn;t.attributes&&(this.attributes=t.attributes.map((t=>new $(n.serialize(t)))))}async getThumbprint(t="SHA-1"){try{const s=await B(t,this.raw);s&&(this.thumbprints[t.name||t]=G.Convert.ToHex(s))}catch(t){console.error("Error thumbprint get:",t)}}exportAsBase64(){return G.Convert.ToBase64(this.raw)}exportAsHexFormatted(){return D(G.Convert.ToHex(this.raw))}exportAsPemFormatted(){return`-----BEGIN ATTRIBUTE CERTIFICATE-----\n${P(this.exportAsBase64())}\n-----END ATTRIBUTE CERTIFICATE-----`}get commonName(){return`attribute-certificate-${this.thumbprints["SHA-1"]}`}downloadAsPEM(t){K.attrCert.asPEM(this.exportAsPemFormatted(),t||this.commonName)}downloadAsDER(t){K.attrCert.asDER(this.exportAsHexFormatted(),t||this.commonName)}}
|
|
19
19
|
/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/class V extends t{constructor(t){super(F(t),H),this.thumbprints={},this.type="PKCS#10 Certificate Request";const{certificationRequestInfo:s}=this.asn;this.subject=new L(s.subject).toJSON(),this.version=s.version}get publicKey(){const{subjectPublicKey:t,algorithm:s}=this.asn.certificationRequestInfo.subjectPKInfo;let e;return s.algorithm===S&&s.parameters&&(e=n.parse(s.parameters,j)),s.algorithm===U&&(e=n.parse(t,X)),{params:e,value:n.serialize(this.asn.certificationRequestInfo.subjectPKInfo),algorithm:s.algorithm}}get signature(){const{signature:t,signatureAlgorithm:s}=this.asn;return{value:t,algorithm:s.algorithm}}get commonName(){if(!this.subject)return"";for(let t=0;t<this.subject.length;t+=1){const s=this.subject[t];if("CN"===s.shortName||"E"===s.shortName||"O"===s.shortName)return s.value}return""}async getThumbprint(t="SHA-1"){try{const s=await
|
|
25
|
+
*/class V extends t{constructor(t){super(F(t),H),this.thumbprints={},this.type="PKCS#10 Certificate Request";const{certificationRequestInfo:s}=this.asn;this.subject=new L(s.subject).toJSON(),this.version=s.version}get publicKey(){const{subjectPublicKey:t,algorithm:s}=this.asn.certificationRequestInfo.subjectPKInfo;let e;return s.algorithm===S&&s.parameters&&(e=n.parse(s.parameters,j)),s.algorithm===U&&(e=n.parse(t,X)),{params:e,value:n.serialize(this.asn.certificationRequestInfo.subjectPKInfo),algorithm:s.algorithm}}get signature(){const{signature:t,signatureAlgorithm:s}=this.asn;return{value:t,algorithm:s.algorithm}}get commonName(){if(!this.subject)return"";for(let t=0;t<this.subject.length;t+=1){const s=this.subject[t];if("CN"===s.shortName||"E"===s.shortName||"O"===s.shortName)return s.value}return""}async getThumbprint(t="SHA-1"){try{const s=await B(t,this.raw);s&&(this.thumbprints[t.name||t]=G.Convert.ToHex(s))}catch(t){console.error("Error thumbprint get:",t)}}parseAttributes(){const{certificationRequestInfo:t}=this.asn;t.attributes&&(this.attributes=t.attributes.map((t=>new $(n.serialize(t)))))}exportAsBase64(){return G.Convert.ToBase64(this.raw)}exportAsHexFormatted(){return D(G.Convert.ToHex(this.raw))}exportAsPemFormatted(){return`-----BEGIN CERTIFICATE REQUEST-----\n${P(this.exportAsBase64())}\n-----END CERTIFICATE REQUEST-----`}downloadAsPEM(t){K.csr.asPEM(this.exportAsPemFormatted(),t||this.commonName)}downloadAsDER(t){K.csr.asDER(this.exportAsHexFormatted(),t||this.commonName)}}
|
|
26
26
|
/**
|
|
27
27
|
* @license
|
|
28
28
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
29
29
|
*
|
|
30
30
|
* This source code is licensed under the MIT license found in the
|
|
31
31
|
* LICENSE file in the root directory of this source tree.
|
|
32
|
-
*/class Q extends t{constructor(t){super(F(t),q),this.thumbprints={},this.type="X.509 Certificate Revocation List";const{tbsCertList:s}=this.asn;this.issuer=new L(s.issuer).toJSON(),this.version=s.version+1,this.lastUpdate=s.thisUpdate.getTime(),this.nextUpdate=s.nextUpdate.getTime()}async getThumbprint(t="SHA-1"){try{const s=await
|
|
32
|
+
*/class Q extends t{constructor(t){super(F(t),q),this.thumbprints={},this.type="X.509 Certificate Revocation List";const{tbsCertList:s}=this.asn;this.issuer=new L(s.issuer).toJSON(),this.version=s.version+1,this.lastUpdate=s.thisUpdate.getTime(),this.nextUpdate=s.nextUpdate.getTime(),this.revokedCertificates=(s.revokedCertificates||[]).map((t=>{var s;return{revocationDate:t.revocationDate,userCertificate:t.userCertificate,crlEntryExtensions:null===(s=t.crlEntryExtensions)||void 0===s?void 0:s.map((t=>new a(n.serialize(t))))}}))}async getThumbprint(t="SHA-1"){try{const s=await B(t,this.raw);s&&(this.thumbprints[t.name||t]=G.Convert.ToHex(s))}catch(t){console.error("Error thumbprint get:",t)}}get signature(){const{signature:t,signatureAlgorithm:s}=this.asn;return{value:t,algorithm:s.algorithm}}get commonName(){if(!this.issuer)return"";for(let t=0;t<this.issuer.length;t+=1){const s=this.issuer[t];if("CN"===s.shortName||"E"===s.shortName||"O"===s.shortName)return s.value}return""}parseExtensions(){const{tbsCertList:t}=this.asn;t.crlExtensions&&(this.extensions=t.crlExtensions.map((t=>new a(n.serialize(t)))))}exportAsBase64(){return G.Convert.ToBase64(this.raw)}exportAsHexFormatted(){return D(G.Convert.ToHex(this.raw))}exportAsPemFormatted(){return`-----BEGIN X509 CRL-----\n${P(this.exportAsBase64())}\n-----END X509 CRL-----`}downloadAsPEM(t){K.crl.asPEM(this.exportAsPemFormatted(),t||this.commonName)}downloadAsDER(t){K.crl.asDER(this.exportAsHexFormatted(),t||this.commonName)}}export{V as C,O as X,Q as a}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import{h as t,r as e,H as i}from"./p-f7683ba5.js";import{Q as a,S as r,y as s,W as n,I as d,T as o,V as l,U as c,t as h,X as p,Y as b,Z as g}from"./p-3a4556ef.js";import{b as u}from"./p-cff9655c.js";import{l as m,a as x}from"./p-fec9d812.js";import{X as v,a as f,C as w}from"./p-7321a8d6.js";import{g as y,R as k,G as L,a as I,B as S,S as A,T as N,b as _,c as D,d as j,E as K,M as P,I as C,e as E,P as z}from"./p-1b11aa24.js";
|
|
5
|
+
/**
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/const T=(e,i)=>{const{attribute:a}=e;return[t(k,{name:"Name",value:y(a.asn.type)}),i,t("tr",null,t("td",{colSpan:2,class:"divider"},t("span",{class:"bg_fill"})))]},H=e=>{const{name:i}=e;return i?i.map((e=>e.map((e=>t(k,{name:a[e.type]||e.type,value:e.value.toString()}))))):null},$=e=>{const{attribute:i}=e;return t(T,{attribute:i},t(H,{name:i.value}))},V=e=>{const{attribute:i}=e;return t(T,{attribute:i},t(k,{name:"Code Authority",value:""}),t(L,{generalName:i.value.codeAuthority,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),t(k,{name:"Code Id",value:""}),t(L,{generalName:i.value.codeId,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),t(k,{name:"Short Name",value:i.value.shortName}),t(k,{name:"Short Description",value:i.value.shortDescription}))},O=e=>{const{attribute:i}=e;return t(T,{attribute:i},t(k,{name:"Assessment Authority",value:""}),t(L,{generalName:i.value.assessmentAuthority,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),t(k,{name:"Assessment Location",value:""}),t(L,{generalName:i.value.assessmentLocation,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),t(k,{name:"Assessment Ref",value:""}),t(L,{generalName:i.value.assessmentRef,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),t(k,{name:"Data Storage Territory",value:i.value.dataStorageTerritory}),t(k,{name:"Description",value:i.value.description}))},q=e=>{const{attribute:i}=e;return t(T,{attribute:i},t(k,{name:"Value",value:`${i.value.base} * 10^${i.value.degree} ${i.value.location}`}))},R=e=>{const{attribute:i}=e;return t(T,{attribute:i},Object.keys(i.value).map((e=>t(k,{name:e,value:i.value[e].toNumber()?m.getString("yes"):m.getString("no")}))))},W=t=>{let e=1;return t/100>1?e=100:t/10>1&&(e=10),`${t}/${5*e}`},X=e=>{const{attribute:i}=e,a=Object.keys(i.value).map((e=>[W(i.value[e]),t("br",null)]));return t(T,{attribute:i},t(k,{name:"Value",value:a}))},B=e=>{const{attribute:i}=e;return t(T,{attribute:i},t(k,{name:"Value",value:i.value,monospace:!0}))},G=e=>{const{attribute:i}=e;return t(T,{attribute:i},t(k,{name:"Value",value:i.value.utf8String}))},M=e=>{const{attribute:i}=e;return t(T,{attribute:i},t(k,{name:"Value",value:i.value.toString()}))},Q=e=>{const{attributes:i}=e;return i&&i.length?[t(I,{value:"Attributes"}),i.map((e=>{try{return t(e.value instanceof r?$:e.value instanceof s?V:e.value instanceof n?O:e.value instanceof d?q:e.value instanceof o?R:e.value instanceof l?X:e.value instanceof c?G:e.value instanceof h?M:"string"==typeof e.value?B:T,{attribute:e})}catch(t){return console.error("Error render attribute:",e.asn.type),null}}))]:null},U=e=>{const{issuer:i}=e;return i?[t(I,{value:m.getString("issuer")}),i.map((e=>t(L,{generalName:e,getDNSNameLink:()=>"",getIPAddressLink:()=>""})))]:null},Y=e=>{const{holder:i}=e;if(!i)return null;const{baseCertificateID:a,objectDigestInfo:r}=i;return[t(I,{value:m.getString("holder")}),a&&[a.issuer.map((e=>t(L,{generalName:e,getDNSNameLink:()=>"",getIPAddressLink:()=>""}))),t("tr",null,t("td",null),t("td",null)),t(k,{name:m.getString("serialNumber"),value:u.Convert.ToHex(a.serial),monospace:!0}),t("tr",null,t("td",null),t("td",null))],r&&[t(k,{name:m.getString("digestInfo"),value:""}),t(k,{name:m.getString("algorithm"),value:y(r.digestAlgorithm.algorithm)}),t(k,{name:m.getString("value"),value:u.Convert.ToHex(r.objectDigest),monospace:!0}),t(k,{name:m.getString("type"),value:r.digestedObjectType})]]},Z=class{constructor(t){e(this,t),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=t=>{var e;return null===(e=this.authKeyIdParentLink)||void 0===e?void 0:e.replace("{{authKeyId}}",t)},this.getAuthKeyIdSiblingsLink=t=>{var e;return null===(e=this.authKeyIdSiblingsLink)||void 0===e?void 0:e.replace("{{authKeyId}}",t)},this.getSubjectKeyIdChildrenLink=t=>{var e;return null===(e=this.subjectKeyIdChildrenLink)||void 0===e?void 0:e.replace("{{subjectKeyId}}",t)},this.getSubjectKeyIdSiblingsLink=t=>{var e;return null===(e=this.subjectKeyIdSiblingsLink)||void 0===e?void 0:e.replace("{{subjectKeyId}}",t)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(t){this.isDecodeInProcess=!0;try{if(t instanceof v)this.certificateDecoded=t;else{if("string"!=typeof t)return;this.certificateDecoded=new v(t)}this.certificateDecoded.parseExtensions(),this.certificateDecoded.parseAttributes(),await this.certificateDecoded.getThumbprint("SHA-1"),await this.certificateDecoded.getThumbprint("SHA-256")}catch(t){this.certificateDecodeError=t,console.error("Error certificate parse:",t)}this.isDecodeInProcess=!1}watchCertificateAndDecode(t,e){"string"!=typeof t||"string"!=typeof e?t instanceof v&&e instanceof v&&t.serialNumber!==e.serialNumber&&this.decodeCertificate(t):t!==e&&this.decodeCertificate(t)}renderErrorState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this attribute certificate."))}renderEmptyState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no attribute certificate available."))}render(){return this.certificateDecodeError?this.renderErrorState():this.certificateDecoded?t(i,null,t("table",null,t(S,Object.assign({},this.certificateDecoded)),t(U,{issuer:this.certificateDecoded.issuer}),t(Y,{holder:this.certificateDecoded.holder}),t(A,{signature:this.certificateDecoded.signature}),t(N,{thumbprints:this.certificateDecoded.thumbprints}),t(Q,{attributes:this.certificateDecoded.attributes,getLEILink:_,getDNSNameLink:D,getIPAddressLink:j,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),t(K,{extensions:this.certificateDecoded.extensions,getLEILink:_,getDNSNameLink:D,getIPAddressLink:j,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&t(P,{certificate:this.certificateDecoded}))):this.renderEmptyState()}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};
|
|
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
|
+
*/Z.style=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";
|
|
19
|
+
/**
|
|
20
|
+
* @license
|
|
21
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/
|
|
26
|
+
const F=(e,i)=>t("tr",null,t("td",{colSpan:2},t("table",null,i))),J=e=>{const{revokedCertificates:i,getDNSNameLink:a,getIPAddressLink:r}=e;return i&&i.length?[t(I,{value:m.getString("revokedCertificates")}),i.map((e=>[t(k,{name:m.getString("serialNumber"),value:u.Convert.ToHex(e.userCertificate),monospace:!0}),t(k,{name:m.getString("revocationDate"),value:x(e.revocationDate.getTime())}),e.crlEntryExtensions&&e.crlEntryExtensions.length&&[t(k,{name:`${m.getString("crlEntryExtensions")}:`,value:""}),t(F,null,e.crlEntryExtensions.map((e=>e.value instanceof p?t(k,{name:y(e.asn.extnID),value:e.value.toJSON()||e.value.reason}):e.value instanceof b?t(k,{name:y(e.asn.extnID),value:e.value.value.getTime()}):e.value instanceof g&&e.value.length?[t(k,{name:`${y(e.asn.extnID)}:`,value:""}),e.value.map((e=>t(F,null,t(L,{generalName:e,getDNSNameLink:a,getIPAddressLink:r}))))]:t(k,{name:y(e.asn.extnID),value:u.Convert.ToHex(e.asn.extnValue),monospace:!0}))))],t("tr",null,t("td",{colSpan:2,class:"divider"},t("span",{class:"bg_fill"})))]))]:null},tt=class{constructor(t){e(this,t),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=t=>{var e;return null===(e=this.authKeyIdParentLink)||void 0===e?void 0:e.replace("{{authKeyId}}",t)},this.getAuthKeyIdSiblingsLink=t=>{var e;return null===(e=this.authKeyIdSiblingsLink)||void 0===e?void 0:e.replace("{{authKeyId}}",t)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(t){this.isDecodeInProcess=!0;try{if(t instanceof f)this.certificateDecoded=t;else{if("string"!=typeof t)return;this.certificateDecoded=new f(t)}this.certificateDecoded.parseExtensions(),await this.certificateDecoded.getThumbprint("SHA-1"),await this.certificateDecoded.getThumbprint("SHA-256")}catch(t){this.certificateDecodeError=t,console.error("Error certificate parse:",t)}this.isDecodeInProcess=!1}getIssuerDnLink(){return this.issuerDnLink}watchCertificateAndDecode(t,e){"string"!=typeof t||"string"!=typeof e?t instanceof f&&e instanceof f&&t.commonName!==e.commonName&&this.decodeCertificate(t):t!==e&&this.decodeCertificate(t)}renderErrorState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate revocation list."))}renderEmptyState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate revocation list available."))}render(){return this.certificateDecodeError?this.renderErrorState():this.certificateDecoded?t(i,{"data-view":this.view},t("table",null,t(S,Object.assign({},this.certificateDecoded)),t(C,{name:this.certificateDecoded.issuer,issuerDnLink:this.getIssuerDnLink()}),t(A,{signature:this.certificateDecoded.signature}),t(N,{thumbprints:this.certificateDecoded.thumbprints}),t(K,{extensions:this.certificateDecoded.extensions,getLEILink:_,getDNSNameLink:D,getIPAddressLink:j,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink}),t(J,{revokedCertificates:this.certificateDecoded.revokedCertificates,getDNSNameLink:D,getIPAddressLink:j}),this.download&&t(P,{certificate:this.certificateDecoded}))):this.renderEmptyState()}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};tt.style=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";const et=class{constructor(t){e(this,t),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=t=>t,this.getAuthKeyIdSiblingsLink=t=>t,this.getSubjectKeyIdChildrenLink=t=>{var e;return null===(e=this.subjectKeyIdChildrenLink)||void 0===e?void 0:e.replace("{{subjectKeyId}}",t)},this.getSubjectKeyIdSiblingsLink=t=>{var e;return null===(e=this.subjectKeyIdSiblingsLink)||void 0===e?void 0:e.replace("{{subjectKeyId}}",t)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(t){this.isDecodeInProcess=!0;try{if(t instanceof w)this.certificateDecoded=t;else{if("string"!=typeof t)return;this.certificateDecoded=new w(t)}this.certificateDecoded.parseAttributes(),await this.certificateDecoded.getThumbprint("SHA-1"),await this.certificateDecoded.getThumbprint("SHA-256")}catch(t){this.certificateDecodeError=t,console.error("Error certificate parse:",t)}this.isDecodeInProcess=!1}watchCertificateAndDecode(t,e){"string"!=typeof t||"string"!=typeof e?t instanceof w&&e instanceof w&&t.commonName!==e.commonName&&this.decodeCertificate(t):t!==e&&this.decodeCertificate(t)}renderErrorState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate request."))}renderEmptyState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate request available."))}getExtensionRequestAttribute(){if(this.certificateDecoded)return this.certificateDecoded.attributes.find((t=>"1.2.840.113549.1.9.14"===t.asn.type))}render(){if(this.certificateDecodeError)return this.renderErrorState();if(!this.certificateDecoded)return this.renderEmptyState();const e=this.getExtensionRequestAttribute();return t(i,{"data-view":this.view},t("table",null,t(S,Object.assign({},this.certificateDecoded)),t(E,{name:this.certificateDecoded.subject}),t(z,{publicKey:this.certificateDecoded.publicKey}),t(A,{signature:this.certificateDecoded.signature}),t(N,{thumbprints:this.certificateDecoded.thumbprints}),t(Q,{attributes:this.certificateDecoded.attributes,getLEILink:_,getDNSNameLink:D,getIPAddressLink:j,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),t(K,{extensions:null==e?void 0:e.value,title:"Extension Request",getLEILink:_,getDNSNameLink:D,getIPAddressLink:j,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&t(P,{certificate:this.certificateDecoded})))}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};et.style=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";export{Z as peculiar_attribute_certificate_viewer,tt as peculiar_crl_viewer,et as peculiar_csr_viewer}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,h as r,H as s,g as i}from"./p-f7683ba5.js";import{l as e,a as o}from"./p-
|
|
4
|
+
import{r as t,h as r,H as s,g as i}from"./p-f7683ba5.js";import{l as e,a as o}from"./p-fec9d812.js";import"./p-cff9655c.js";const a=class{constructor(r){t(this,r),this.showIssuer=!0}renderRow(t,s,i){return r("tr",null,r("td",null,r("peculiar-typography",{color:"grey_5"},t,":")),r("td",null,r("peculiar-typography",{class:"meta_value",monospace:i},s)))}render(){return r(s,null,r("table",null,r("tbody",null,this.renderRow(e.getString("subjectName"),this.certificate.subjectToString()),this.showIssuer&&this.renderRow(e.getString("issuerName"),this.certificate.issuerToString()),this.renderRow(e.getString("serialNumber"),this.certificate.serialNumber,!0),this.renderRow(e.getString("version"),this.certificate.version),this.renderRow(e.getString("validity"),this.certificate.validity),this.renderRow(e.getString("issued"),o(this.certificate.notBefore)),this.renderRow(e.getString("expired"),o(this.certificate.notAfter)))))}};a.style=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%}td{border:none;padding:0}table{width:100%;border-spacing:0;border-collapse:collapse}td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td:first-child{width:130px;padding-right:10px}table td:last-child{width:calc(100% - 130px)}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{width:100%}}";const h=class{constructor(r){t(this,r),this.size=24,this.width=4,this.box=50}render(){return r(s,null,r("div",{class:"circle_progress",style:{width:`${this.size}px`,height:`${this.size}px`}},r("svg",{class:"circle_progress_svg",viewBox:`0 0 ${this.box} ${this.box}`},r("circle",{class:"circle_progress_backdrop",cx:this.box/2,cy:this.box/2,r:this.box/2-5,fill:"none",style:{strokeWidth:`${this.width}px`}}),r("circle",{class:"circle_progress_circle",cx:this.box/2,cy:this.box/2,r:this.box/2-5,fill:"none",style:{strokeWidth:`${this.width}px`}}))))}};h.style=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%}@-webkit-keyframes circular-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes circular-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes circular-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:100, 200;stroke-dashoffset:-15}to{stroke-dasharray:100, 200;stroke-dashoffset:-120}}@keyframes circular-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:100, 200;stroke-dashoffset:-15}to{stroke-dasharray:100, 200;stroke-dashoffset:-120}}.circle_progress{margin:0 auto}.circle_progress_svg{-webkit-animation:circular-rotate 1.4s linear infinite;animation:circular-rotate 1.4s linear infinite}.circle_progress_circle{stroke-linecap:round;-webkit-animation:circular-dash 1.4s ease-in-out infinite;animation:circular-dash 1.4s ease-in-out infinite;stroke-dasharray:80, 200;stroke-dashoffset:0;stroke:#3584f7;stroke:rgba(var(--pv-color-primary-rgb), 1)}.circle_progress_backdrop{stroke:#d1d5d9;stroke:rgba(var(--pv-color-grey_3-rgb), 1)}";const l=class{constructor(r){t(this,r),this.tag="mark"}componentDidLoad(){this.handleHighlightSearch()}componentDidUpdate(){this.handleHighlightSearch()}handleHighlightSearch(){const t=this.resetHighlightSearch(this.host.innerHTML);let r=t;if(this.search){const s=new RegExp(`(${this.search})`,"gi");r=t.replace(s,`<${this.tag}>$1</${this.tag}>`)}this.host.innerHTML=r}resetHighlightSearch(t){const r=new RegExp(`</?${this.tag}>`,"g");return t.replace(r,"")}render(){return r(s,null,r("slot",null))}get host(){return i(this)}};l.style=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:inline}::slotted(mark){background-color:rgba(247, 168, 49, 0.4);background-color:rgba(var(--pv-color-attention-rgb), 0.4)}";export{a as peculiar_certificate_summary,h as peculiar_circular_progress,l as peculiar_highlight_words}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{A as t,e as s,C as r,N as e,E as i,f as n,g as o,h as a,j as h,R as u,k as c,l as m,m as f}from"./p-
|
|
4
|
+
import{A as t,e as s,C as r,N as e,E as i,f as n,g as o,h as a,j as h,R as u,k as c,l as m,m as f}from"./p-3a4556ef.js";import{b as g,D as l}from"./p-cff9655c.js";import{d as p}from"./p-fec9d812.js";
|
|
5
5
|
/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright (c) Peculiar Ventures, LLC.
|