@peculiar/certificates-viewer 1.20.0 → 2.0.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.
@@ -1,110 +0,0 @@
1
- import{h as e,r as t,H as a,c as i}from"./p-bd949790.js";import{A as n,a as o,i as r,b as s,c as l,E as c,d,e as b,f as p,U as h,g as u,C as f,h as g,V as m,j as v,I as x,k as y,W as w,l as k,m as _,n as C,T as z,o as A,D as S,p as I,q as N,r as L,s as D,t as j,u as E,v as T,w as K,x as P,y as O,z as G,B as R,N as V,F as H,G as q,H as $,R as B,O as F,J as U,K as Y,L as M,M as X,P as W,Q,S as J,X as Z,Y as ee,Z as te,_ as ae,$ as ie,a0 as ne,a1 as oe,a2 as re,a3 as se,a4 as le,a5 as ce,a6 as de,a7 as be,a8 as pe,a9 as he,aa as ue,ab as fe,ac as ge,ad as me,ae as ve,af as xe,ag as ye,ah as we,ai as ke,aj as _e,ak as Ce,al as ze,am as Ae,an as Se,ao as Ie,ap as Ne,aq as Le,ar as De,as as je,at as Ee,au as Te}from"./p-e5769859.js";import{d as Ke,l as Pe,a as Oe,h as Ge}from"./p-cf1841f8.js";
2
- /**
3
- * @license
4
- * Copyright (c) Peculiar Ventures, LLC.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */function Re(e){return new Promise((t,a)=>{const i=new FileReader;i.onload=()=>t({value:i.result,fileName:e.name,fileSize:e.size,sourceMime:e.type}),i.onerror=()=>a(i.error),i.readAsBinaryString(e)})}
9
- /**
10
- * @license
11
- * Copyright (c) Peculiar Ventures, LLC.
12
- *
13
- * This source code is licensed under the MIT license found in the
14
- * LICENSE file in the root directory of this source tree.
15
- */class Ve extends n{constructor(e){super(e,o);const t=this.getAsnExtnValue();switch(this.asn.type){case j:this.value=l.parse(t,E);break;case L:this.value=l.parse(t,D);break;case I:this.value=l.parse(t,N);break;case A:this.value=l.parse(t,S);break;case C:this.value=l.parse(t,z);break;case k:this.value=l.parse(t,_);break;case y:this.value=l.parse(t,w);break;case v:this.value=l.parse(t,x);break;case g:this.value=l.parse(t,m);break;case u:this.value=l.parse(t,f);break;case p:this.value=l.parse(t,h);break;case s:{const e=l.parse(t,c);this.value=e.map(e=>new d(b.serialize(e)));break}default:this.value=r.Convert.ToHex(t)}}getAsnExtnValue(){return this.asn.values[0]}}
16
- /**
17
- * @license
18
- * Copyright (c) Peculiar Ventures, LLC.
19
- *
20
- * This source code is licensed under the MIT license found in the
21
- * LICENSE file in the root directory of this source tree.
22
- */class He extends n{constructor(e){var t;super(T(e),K),this.thumbprints={},this.type="X.509 Attribute Certificate";const{acinfo:a}=this.asn;this.serialNumber=r.Convert.ToHex(a.serialNumber),this.version=a.version;const i=a.attrCertValidityPeriod.notBeforeTime;if(!i)throw new Error("Cannot get 'notBefore' value");this.notBefore=i;const n=a.attrCertValidityPeriod.notAfterTime;if(!n)throw new Error("Cannot get 'notAfter' value");this.notAfter=n,this.validity=Ke(this.notBefore,this.notAfter),this.issuer=a.issuer.v1Form||(null===(t=a.issuer.v2Form)||void 0===t?void 0:t.issuerName),this.holder=a.holder}get signature(){const{signatureValue:e,signatureAlgorithm:t}=this.asn;return{value:e,algorithm:t.algorithm}}parseExtensions(){const{acinfo:e}=this.asn;e.extensions&&(this.extensions=e.extensions.map(e=>new d(b.serialize(e))))}parseAttributes(){const{acinfo:e}=this.asn;e.attributes&&(this.attributes=e.attributes.map(e=>new Ve(b.serialize(e))))}async getThumbprint(e="SHA-1"){try{const t=await P(e,this.raw);this.thumbprints[e.name||e]=r.Convert.ToHex(t)}catch(t){console.error("Error thumbprint get:",t)}}exportAsBase64(){return r.Convert.ToBase64(this.raw)}exportAsHexFormatted(){return O(r.Convert.ToHex(this.raw))}exportAsPemFormatted(){return`-----BEGIN ATTRIBUTE CERTIFICATE-----\n${G(this.exportAsBase64())}\n-----END ATTRIBUTE CERTIFICATE-----`}get commonName(){return"attribute-certificate-"+this.thumbprints["SHA-1"]}}
23
- /**
24
- * @license
25
- * Copyright (c) Peculiar Ventures, LLC.
26
- *
27
- * This source code is licensed under the MIT license found in the
28
- * LICENSE file in the root directory of this source tree.
29
- */class qe extends n{constructor(e){super(T(e),R),this.thumbprints={},this.type="PKCS#10 Certificate Request";const{certificationRequestInfo:t}=this.asn;this.subject=new V(t.subject).toJSON(),this.version=t.version}get publicKey(){const{subjectPublicKey:e,algorithm:t}=this.asn.certificationRequestInfo.subjectPKInfo;let a;return t.algorithm===H&&t.parameters&&(a=b.parse(t.parameters,q)),t.algorithm===$&&(a=b.parse(e,B)),{params:a,value:b.serialize(this.asn.certificationRequestInfo.subjectPKInfo),algorithm:t.algorithm}}get signature(){const{signature:e,signatureAlgorithm:t}=this.asn;return{value:e,algorithm:t.algorithm}}get commonName(){if(!this.subject)return"";for(let e=0;e<this.subject.length;e+=1){const t=this.subject[e];if("CN"===t.shortName||"E"===t.shortName||"O"===t.shortName)return t.value}return""}async getThumbprint(e="SHA-1"){try{const t=await P(e,this.raw);this.thumbprints[e.name||e]=r.Convert.ToHex(t)}catch(t){console.error("Error thumbprint get:",t)}}parseAttributes(){const{certificationRequestInfo:e}=this.asn;e.attributes&&(this.attributes=e.attributes.map(e=>new Ve(b.serialize(e))))}exportAsBase64(){return r.Convert.ToBase64(this.raw)}exportAsHexFormatted(){return O(r.Convert.ToHex(this.raw))}exportAsPemFormatted(){return`-----BEGIN CERTIFICATE REQUEST-----\n${G(this.exportAsBase64())}\n-----END CERTIFICATE REQUEST-----`}}
30
- /**
31
- * @license
32
- * Copyright (c) Peculiar Ventures, LLC.
33
- *
34
- * This source code is licensed under the MIT license found in the
35
- * LICENSE file in the root directory of this source tree.
36
- */function $e(e){const t=F[e];return t?`${t} (${e})`:e}
37
- /**
38
- * @license
39
- * Copyright (c) Peculiar Ventures, LLC.
40
- *
41
- * This source code is licensed under the MIT license found in the
42
- * LICENSE file in the root directory of this source tree.
43
- */
44
- /**
45
- * @license
46
- * Copyright (c) Peculiar Ventures, LLC.
47
- *
48
- * This source code is licensed under the MIT license found in the
49
- * LICENSE file in the root directory of this source tree.
50
- */
51
- const Be=t=>{const{value:a}=t;return a?e("tr",{class:"title"},e("td",{colSpan:2},e("peculiar-typography",{type:"h6"},a))):null},Fe=t=>{const{name:a,value:i,monospace:n,collapse:o,href:r,extraValue:s}=t;if(!a)return null;if(null==i)return null;let l;l=o?e("peculiar-text-hider",null,i):i;const c=!!i.toString();return e("tr",null,e("td",{colSpan:c?1:2},e("peculiar-typography",{color:"grey_5"},a,c?":":"")),c&&e("td",{class:{monospace:n}},function(e){return 0===e.indexOf("http")}(i.toString())||r?e("peculiar-link",{href:r||i.toString()},i):e("peculiar-typography",{monospace:n},l,s)))},Ue=t=>{const{signature:a}=t;return a?[e(Be,{value:Pe.getString("signature")}),e(Fe,{name:Pe.getString("algorithm"),value:$e(a.algorithm)}),e(Fe,{name:Pe.getString("value"),value:r.Convert.ToHex(a.value),monospace:!0,collapse:!0})]:null},Ye=(t,a)=>{const{attribute:i}=t;return[e(Fe,{name:"Name",value:$e(i.asn.type)}),a,e("tr",null,e("td",{colSpan:2,class:"divider"},e("span",{class:"bg_fill"})))]},Me=t=>{const{name:a}=t;return a?a.map(t=>t.map(t=>e(Fe,{name:F[t.type]||t.type,value:t.value.toString()}))):null},Xe=t=>{const{attribute:a}=t;return e(Ye,{attribute:a},e(Me,{name:a.value}))},We={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"},Qe=t=>{const{generalName:a,getDNSNameLink:i,getIPAddressLink:n}=t;return a?Object.keys(a).map(t=>{const o=a[t];if(o instanceof U)return[e(Fe,{name:We[t]||t,value:""}),o.map(t=>t.map(t=>e(Fe,{name:F[t.type]||t.type,value:t.value.toString()})))];if(o instanceof Y){try{const t=l.parse(o.value,M);return e(Fe,{name:F[o.typeId]||o.typeId,value:t.toString()})}catch(s){}try{const t=l.parse(o.value,X);if(t.explicitText)return e(Fe,{name:F[o.typeId]||o.typeId,value:t.explicitText.toString()})}catch(s){}return e(Fe,{name:F[o.typeId]||o.typeId,value:r.Convert.ToHex(o.value),monospace:!0})}return r.BufferSourceConverter.isBufferSource(o)?e(Fe,{name:We[t]||t,value:r.Convert.ToString(o)}):e(Fe,o instanceof W?{name:We[t]||t,value:r.Convert.ToString(o.partyName)}:"dNSName"===t?{name:We[t]||t,value:o,href:i(o)}:"iPAddress"===t?{name:We[t]||t,value:o,href:n(o)}:{name:We[t]||t,value:o})}):null},Je=t=>{const{attribute:a}=t;return e(Ye,{attribute:a},e(Fe,{name:"Code Authority",value:""}),e(Qe,{generalName:a.value.codeAuthority,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(Fe,{name:"Code Id",value:""}),e(Qe,{generalName:a.value.codeId,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(Fe,{name:"Short Name",value:a.value.shortName}),e(Fe,{name:"Short Description",value:a.value.shortDescription}))},Ze=t=>{const{attribute:a}=t;return e(Ye,{attribute:a},e(Fe,{name:"Assessment Authority",value:""}),e(Qe,{generalName:a.value.assessmentAuthority,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(Fe,{name:"Assessment Location",value:""}),e(Qe,{generalName:a.value.assessmentLocation,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(Fe,{name:"Assessment Ref",value:""}),e(Qe,{generalName:a.value.assessmentRef,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(Fe,{name:"Data Storage Territory",value:a.value.dataStorageTerritory}),e(Fe,{name:"Description",value:a.value.description}))},et=t=>{const{attribute:a}=t;return e(Ye,{attribute:a},e(Fe,{name:"Value",value:`${a.value.base} * 10^${a.value.degree} ${a.value.location}`}))},tt=t=>{const{attribute:a}=t;return e(Ye,{attribute:a},Object.keys(a.value).map(t=>e(Fe,{name:t,value:a.value[t].toNumber()?"YES":"NO"})))},at=e=>{let t=1;return e/100>1?t=100:e/10>1&&(t=10),`${e}/${5*t}`},it=t=>{const{attribute:a}=t,i=Object.keys(a.value).map(t=>[at(a.value[t]),e("br",null)]);return e(Ye,{attribute:a},e(Fe,{name:"Value",value:i}))},nt=t=>{const{attribute:a}=t;return e(Ye,{attribute:a},e(Fe,{name:"Value",value:a.value,monospace:!0}))},ot=t=>{const{attribute:a}=t;return e(Ye,{attribute:a},e(Fe,{name:"Value",value:a.value.utf8String}))},rt=t=>{const{attribute:a}=t;return e(Ye,{attribute:a},e(Fe,{name:"Value",value:a.value.toString()}))},st=t=>{const{attributes:a}=t;return a&&a.length?[e(Be,{value:"Attributes"}),a.map(t=>{try{return e(t.value instanceof U?Xe:t.value instanceof _?Je:t.value instanceof w?Ze:t.value instanceof x?et:t.value instanceof z?tt:t.value instanceof m?it:t.value instanceof h?ot:t.value instanceof f?rt:"string"==typeof t.value?nt:Ye,{attribute:t})}catch(a){return console.error("Error render attribute:",t.asn.type),null}})]:null},lt=t=>{const{thumbprints:a}=t;if(!a)return null;const i=Object.keys(a);return i.length?[e(Be,{value:Pe.getString("fingerprints")}),i.map(t=>e(Fe,{name:t,value:a[t],monospace:!0}))]:null},ct=(t,a)=>{const{extension:i}=t;return[e(Fe,{name:"Name",value:$e(i.asn.extnID)}),e(Fe,{name:"Critical",value:i.asn.critical?"YES":"NO"}),a,e("tr",null,e("td",{colSpan:2,class:"divider"},e("span",{class:"bg_fill"})))]},dt=t=>{const{extension:a}=t;return e(ct,{extension:a},e(Fe,{name:"Usage",value:a.value.toJSON().join(", ")}))},bt=t=>{const{extension:a}=t;return e(ct,{extension:a},e(Fe,{name:"Certificate Authority",value:a.value.cA?"YES":"NO"}),e(Fe,{name:"Path Length Constraint",value:a.value.pathLenConstraint}))},pt=t=>{const{extension:a}=t;return e(ct,{extension:a},a.value.map((t,a)=>e(Fe,{name:"Purpose #"+(a+1),value:$e(t)})))},ht=t=>{const{extension:a,getSubjectKeyIdChildrenLink:i,getSubjectKeyIdSiblingsLink:n}=t,o=r.Convert.ToHex(a.value.buffer),s=i(o),l=n(o);return e(ct,{extension:a},e(Fe,{name:"Key ID",value:o,monospace:!0,extraValue:[s&&e("span",null," [",e("peculiar-link",{href:s},"children"),"]"),l&&e("span",null," [",e("peculiar-link",{href:l},"siblings"),"]")]}))},ut=t=>{const{extension:a,getAuthKeyIdParentLink:i,getAuthKeyIdSiblingsLink:n}=t,o=r.Convert.ToHex(a.value.keyIdentifier.buffer),s=i(o),l=n(o);return e(ct,{extension:a},e(Fe,{name:"Key ID",value:o,monospace:!0,extraValue:[s&&e("span",null," [",e("peculiar-link",{href:s},"parents"),"]"),l&&e("span",null," [",e("peculiar-link",{href:l},"siblings"),"]")]}))},ft=t=>{const{extension:a}=t;return e(ct,{extension:a},a.value.map(a=>{var i;return null===(i=null==a?void 0:a.distributionPoint)||void 0===i?void 0:i.fullName.map(a=>e(Qe,Object.assign({generalName:a},t)))}))},gt=t=>{const{extension:a}=t;return e(ct,{extension:a},a.value.map((a,i)=>[e(Fe,{name:"Description #"+(i+1),value:""}),e(Fe,{name:"Method",value:$e(a.accessMethod)}),e(Qe,Object.assign({generalName:a.accessLocation},t))]))},mt=t=>{const{extension:a}=t;return e(ct,{extension:a},a.value.map(a=>e(Qe,Object.assign({generalName:a},t))))},vt=t=>{const{extension:a}=t;return e(ct,{extension:a},a.value.map((t,a)=>{var i;return[e(Fe,{name:"Policy #"+(a+1),value:""}),e(Fe,{name:"ID",value:$e(t.policyIdentifier)}),null===(i=t.policyQualifiers)||void 0===i?void 0:i.map((t,i)=>{const n=[e(Fe,{name:`Qualifier #${a+1}.${i+1}`,value:""}),e(Fe,{name:"ID",value:$e(t.policyQualifierId)})];if("1.3.6.1.5.5.7.2.1"===t.policyQualifierId){const a=l.parse(t.qualifier,M);n.push(e(Fe,{name:"Value",value:a.toString()}))}if("1.3.6.1.5.5.7.2.2"===t.policyQualifierId){const a=l.parse(t.qualifier,X);a.explicitText&&n.push(e(Fe,{name:"Value",value:a.explicitText.toString()}))}return n})]}))},xt={"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"},yt=t=>{const{extension:a}=t;return e(ct,{extension:a},a.value.toJSON().map((t,a)=>[e(Fe,{name:"SCT #"+(a+1),value:""}),e(Fe,{name:"Version",value:t.version+1}),e(Fe,{name:"Log Operator",value:xt[t.logId]||t.logId}),e(Fe,{name:"Log Key ID",value:t.logId,monospace:!0}),e(Fe,{name:"Timestamp",value:Oe(t.timestamp)}),e(Fe,{name:"Signature Algorithm",value:`${t.hashAlgorithm} ${t.signatureAlgorithm}`.toUpperCase()}),e(Fe,{name:"Signature",value:t.signature,monospace:!0})]))},wt=t=>{var a,i;const{extension:n}=t;return e(ct,{extension:n},null===(a=n.value.excludedSubtrees)||void 0===a?void 0:a.map(a=>e(Qe,Object.assign({generalName:a.base},t))),null===(i=n.value.permittedSubtrees)||void 0===i?void 0:i.map(a=>e(Qe,Object.assign({generalName:a.base},t))))},kt=t=>{const{extension:a}=t;return e(ct,{extension:a},e(Fe,{name:"Template ID",value:a.value.templateID}),e(Fe,{name:"Template Major Version",value:a.value.templateMajorVersion}),e(Fe,{name:"Template Minor Version",value:a.value.templateMinorVersion}))},_t=t=>{const{extension:a}=t;return e(ct,{extension:a},e(Fe,{name:"Name",value:a.value.toString()}))},Ct=t=>{const{extension:a}=t,i=a.value.getVersion();return e(ct,{extension:a},e(Fe,{name:"Certificate Index",value:i.certificateIndex}),e(Fe,{name:"Key Index",value:i.keyIndex}))},zt=t=>{const{extension:a}=t;return e(ct,{extension:a},a.value.map((t,a)=>[e(Fe,{name:"Statement #"+(a+1),value:""}),e(Fe,{name:"ID",value:$e(t.statementId)}),e(Fe,{name:"Info",value:t.statementInfo.byteLength?r.Convert.ToHex(t.statementInfo):null,monospace:!0})]))},At=t=>{const{extension:a}=t;return e(ct,{extension:a},e(Fe,{name:"Comment",value:a.value.value}))},St=t=>{const{extension:a}=t;return e(ct,{extension:a},e(Fe,{name:"Type",value:a.value.toJSON().join(", ")}))},It=t=>{const{extension:a}=t;return e(ct,{extension:a},e(Fe,{name:"Role",value:a.value.text}))},Nt=t=>{const{extension:a,getLEILink:i}=t;return e(ct,{extension:a},e(Fe,{name:"Identifier",value:a.value.text,href:i(a.value.text)}))},Lt=t=>{const{extension:a}=t;return e(ct,{extension:a},e(Fe,{name:"Version",value:a.value.version}),e(Qe,Object.assign({generalName:a.value.location},t)),e(Fe,{name:"Requires Auth",value:a.value.requiresAuth?"YES":"NO"}))},Dt=t=>{const{extension:a}=t;return e(ct,{extension:a},e(Fe,{name:"Version",value:a.value.version}))},jt=t=>{const{extension:a}=t;return e(ct,{extension:a},e(Fe,{name:"Reason",value:a.value.toJSON()}))};
52
- /**
53
- * @license
54
- * Copyright (c) Peculiar Ventures, LLC.
55
- *
56
- * This source code is licensed under the MIT license found in the
57
- * LICENSE file in the root directory of this source tree.
58
- */
59
- function Et(e){return r.Convert.ToString(e.values[0])}
60
- /**
61
- * @license
62
- * Copyright (c) Peculiar Ventures, LLC.
63
- *
64
- * This source code is licensed under the MIT license found in the
65
- * LICENSE file in the root directory of this source tree.
66
- */const Tt=t=>{const{extension:a}=t;return e(ct,{extension:a},a.value.map((t,a)=>[e(Fe,{name:"Attribute #"+(a+1),value:""}),e(Fe,{name:"Type",value:$e(t.type)}),e(Fe,{name:"Value",value:Et(t)})]))},Kt=t=>{const{extension:a}=t;return e(ct,{extension:a},e(Fe,{name:"Value",value:a.value,monospace:!0}))},Pt=t=>{const{extension:a}=t;return e(ct,{extension:a},e(Fe,{name:"Not Before",value:Oe(a.value.notBefore)}),e(Fe,{name:"Not After",value:Oe(a.value.notAfter)}))},Ot=t=>{const{extension:a}=t;return e(ct,{extension:a},e(Fe,{name:"Version",value:a.value.entrustVers}),e(Fe,{name:"Info Flags",value:a.value.entrustInfoFlags.toJSON().join(", ")}))},Gt=t=>{const{extension:a}=t;return e(ct,{extension:a},a.value.map((t,a)=>[e(Fe,{name:"Biometric #"+(a+1),value:""}),e(Fe,{name:"OID",value:$e(t.typeOfBiometricData.biometricDataOid)}),e(Fe,{name:"Type",value:t.typeOfBiometricData.predefinedBiometricType}),e(Fe,{name:"Algorithm",value:$e(t.hashAlgorithm.algorithm)}),e(Fe,{name:"Hash",value:r.Convert.ToHex(t.biometricDataHash.buffer),monospace:!0}),e(Fe,{name:"Source Uri",value:t.sourceDataUri})]))},Rt=t=>{const{extension:a}=t,i=t=>t?t.map(t=>{const{imageDetails:a}=t;return[e(Fe,{name:"Image Type",value:a.mediaType}),e(Fe,{name:"Image Hash",value:r.Convert.ToHex(a.logotypeHash[0].hashValue),monospace:!0}),e(Fe,{name:"Image URL",value:a.logotypeURI[0],monospace:!0,collapse:!0}),e(Fe,{name:"Image Hash Algorithm",value:$e(a.logotypeHash[0].hashAlg.algorithm)})]}):null,n=t=>t?t.map(t=>{const{audioDetails:a}=t;return[e(Fe,{name:"Audio Type",value:a.mediaType}),e(Fe,{name:"Audio Hash",value:r.Convert.ToHex(a.logotypeHash[0].hashValue),monospace:!0}),e(Fe,{name:"Audio URL",value:a.logotypeURI[0],monospace:!0,collapse:!0}),e(Fe,{name:"Audio Hash Algorithm",value:$e(a.logotypeHash[0].hashAlg.algorithm)})]}):null,o=(t,a)=>{if(!a||!a.direct)return null;const{image:o,audio:r}=a.direct;return[e(Fe,{name:"Type",value:t}),i(o),n(r),e("tr",null,e("td",null),e("td",null))]};return e(ct,{extension:a},o("Subject",a.value.subjectLogo),o("Issuer",a.value.issuerLogo))},Vt=t=>{const{extension:a}=t;return e(ct,{extension:a},a.value.map((t,a)=>[e(Fe,{name:"Entry #"+(a+1),value:""}),e(Fe,{name:"SPC",value:t.spc}),e(Fe,{name:"Range",value:t.range?`start=${t.range.start} count==${t.range.count}`:null}),e(Fe,{name:"One",value:t.one})]))},Ht=t=>{const{extension:a}=t;return e(ct,{extension:a},a.value.requireExplicitPolicy&&e(Fe,{name:"Require Explicit Policy",value:Q.toASN(a.value.requireExplicitPolicy).valueBlock.toString()}),a.value.inhibitPolicyMapping&&e(Fe,{name:"Inhibit Policy Mapping",value:Q.toASN(a.value.inhibitPolicyMapping).valueBlock.toString()}))},qt=t=>{const{extension:a}=t;return e(ct,{extension:a},a.value.map((t,a)=>[e(Fe,{name:"Policy #"+(a+1),value:""}),e(Fe,{name:"Issuer Domain",value:$e(t.issuerDomainPolicy)}),e(Fe,{name:"Subject Domain",value:$e(t.subjectDomainPolicy)})]))},$t=t=>{const{extensions:a,title:i}=t;return a&&a.length?[e(Be,{value:i||"Extensions"}),a.map(a=>{try{return a.value instanceof J?e(dt,{extension:a}):a.value instanceof Z?e(bt,{extension:a}):a.value instanceof ee?e(pt,{extension:a}):a.value instanceof te?e(ht,Object.assign({extension:a},t)):a.value instanceof ae?e(ut,Object.assign({extension:a},t)):a.value instanceof ie?e(ft,Object.assign({extension:a},t)):a.value instanceof ne||a.value instanceof oe?e(gt,Object.assign({extension:a},t)):a.value instanceof re?e(mt,Object.assign({extension:a},t)):a.value instanceof se?e(vt,{extension:a}):a.value instanceof le?e(yt,{extension:a}):a.value instanceof ce?e(wt,Object.assign({extension:a},t)):a.value instanceof de?e(kt,{extension:a}):a.value instanceof be?e(_t,{extension:a}):a.value instanceof pe?e(Ct,{extension:a}):a.value instanceof he?e(zt,{extension:a}):a.value instanceof ue?e(At,{extension:a}):a.value instanceof fe?e(St,{extension:a}):a.value instanceof ge?e(It,{extension:a}):a.value instanceof me?e(Nt,Object.assign({extension:a},t)):a.value instanceof ve?e(Lt,Object.assign({extension:a},t)):e(a.value instanceof xe?Dt:a.value instanceof ye?jt:a.value instanceof we?Tt:a.value instanceof ke?Pt:a.value instanceof _e?Ot:a.value instanceof Ce?Gt:a.value instanceof ze?Rt:a.value instanceof Ae?Vt:a.value instanceof Se?Ht:a.value instanceof Ie?qt:"string"==typeof a.value?Kt:ct,{extension:a})}catch(i){return console.error("Error render extension:",a.asn.extnID),null}})]:null},Bt=t=>{const{serialNumber:a,version:i,validity:n,notBefore:o,notAfter:r,type:s}=t;return[e(Be,{value:Pe.getString("basicInformation")}),e(Fe,{name:Pe.getString("type"),value:s}),e(Fe,{name:Pe.getString("serialNumber"),value:a,monospace:!0}),e(Fe,{name:Pe.getString("version"),value:i}),e(Fe,{name:Pe.getString("validity"),value:n}),e(Fe,{name:Pe.getString("issued"),value:o?Oe(o):void 0}),e(Fe,{name:Pe.getString("expired"),value:r?Oe(r):void 0})]};
67
- /**
68
- * @license
69
- * Copyright (c) Peculiar Ventures, LLC.
70
- *
71
- * This source code is licensed under the MIT license found in the
72
- * LICENSE file in the root directory of this source tree.
73
- */
74
- /**
75
- * @license
76
- * Copyright (c) Peculiar Ventures, LLC.
77
- *
78
- * This source code is licensed under the MIT license found in the
79
- * LICENSE file in the root directory of this source tree.
80
- */
81
- function Ft(e){e instanceof qe?Ne.certificateRequest.asPEM(e.exportAsPemFormatted(),e.commonName):Ne.certificate.asPEM(e.exportAsPemFormatted(),e.commonName)}function Ut(e){e instanceof qe?Ne.certificateRequest.asDER(e.exportAsHexFormatted(),e.commonName):Ne.certificate.asDER(e.exportAsHexFormatted(),e.commonName)}const Yt=t=>{const{certificate:a}=t;return[e(Be,{value:Pe.getString("miscellaneous")}),e("tr",null,e("td",{class:"vertical_align_middle"},e("peculiar-typography",{color:"grey_5"},Pe.getString("download"),":")),e("td",null,e("peculiar-button-split",{onClick:Ft.bind(void 0,a),actions:[{text:Pe.getString("download.der"),onClick:Ut.bind(void 0,a)}]},Pe.getString("download.pem"))))]},Mt=e=>"https://search.gleif.org/#/record/"+e,Xt=e=>"https://search.censys.io/search?resource=hosts&q=dns.names%3A"+e,Wt=e=>"https://search.censys.io/search?resource=hosts&q=ip%3A"
82
- /**
83
- * @license
84
- * Copyright (c) Peculiar Ventures, LLC.
85
- *
86
- * This source code is licensed under the MIT license found in the
87
- * LICENSE file in the root directory of this source tree.
88
- */+e,Qt=t=>{const{issuer:a}=t;return a?[e(Be,{value:Pe.getString("issuer")}),a.map(t=>e(Qe,{generalName:t,getDNSNameLink:()=>"",getIPAddressLink:()=>""}))]:null},Jt=t=>{const{holder:a}=t;if(!a)return null;const{baseCertificateID:i,objectDigestInfo:n}=a;return[e(Be,{value:Pe.getString("holder")}),i&&[i.issuer.map(t=>e(Qe,{generalName:t,getDNSNameLink:()=>"",getIPAddressLink:()=>""})),e("tr",null,e("td",null),e("td",null)),e(Fe,{name:Pe.getString("serialNumber"),value:r.Convert.ToHex(i.serial),monospace:!0}),e("tr",null,e("td",null),e("td",null))],n&&[e(Fe,{name:Pe.getString("digestInfo"),value:""}),e(Fe,{name:Pe.getString("algorithm"),value:$e(n.digestAlgorithm.algorithm)}),e(Fe,{name:Pe.getString("value"),value:r.Convert.ToHex(n.objectDigest),monospace:!0}),e(Fe,{name:Pe.getString("type"),value:n.digestedObjectType})]]},Zt=class{constructor(e){t(this,e),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=e=>{var t;return null===(t=this.authKeyIdParentLink)||void 0===t?void 0:t.replace("{{authKeyId}}",e)},this.getAuthKeyIdSiblingsLink=e=>{var t;return null===(t=this.authKeyIdSiblingsLink)||void 0===t?void 0:t.replace("{{authKeyId}}",e)},this.getSubjectKeyIdChildrenLink=e=>{var t;return null===(t=this.subjectKeyIdChildrenLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)},this.getSubjectKeyIdSiblingsLink=e=>{var t;return null===(t=this.subjectKeyIdSiblingsLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(e){this.isDecodeInProcess=!0;try{if(e instanceof He)this.certificateDecoded=e;else{if("string"!=typeof e)return;this.certificateDecoded=new He(e)}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(e,t){"string"!=typeof e||"string"!=typeof t?e instanceof He&&t instanceof He&&e.serialNumber!==t.serialNumber&&this.decodeCertificate(e):e!==t&&this.decodeCertificate(e)}renderErrorState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this attribute certificate."))}renderEmptyState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no attribute certificate available."))}render(){return this.certificateDecodeError?this.renderErrorState():this.certificateDecoded?e(a,null,e("table",null,e(Bt,Object.assign({},this.certificateDecoded)),e(Qt,{issuer:this.certificateDecoded.issuer}),e(Jt,{holder:this.certificateDecoded.holder}),e(Ue,{signature:this.certificateDecoded.signature}),e(lt,{thumbprints:this.certificateDecoded.thumbprints}),e(st,{attributes:this.certificateDecoded.attributes,getLEILink:Mt,getDNSNameLink:Xt,getIPAddressLink:Wt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),e($t,{extensions:this.certificateDecoded.extensions,getLEILink:Mt,getDNSNameLink:Xt,getIPAddressLink:Wt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&e(Yt,{certificate:this.certificateDecoded}))):this.renderEmptyState()}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};
89
- /**
90
- * @license
91
- * Copyright (c) Peculiar Ventures, LLC.
92
- *
93
- * This source code is licensed under the MIT license found in the
94
- * LICENSE file in the root directory of this source tree.
95
- */Zt.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 ea=class{constructor(e){t(this,e),this.fill="stroke",this.handleClick=e=>{if(this.disabled)return e.preventDefault(),void e.stopPropagation();this.onClick&&this.onClick(e)}}render(){const t=!!this.href;return e(t?"a":"button",{class:{button:!0,button_stroke:"stroke"===this.fill,button_fill:"fill"===this.fill,button_disabled:this.disabled},disabled:this.disabled,type:!t&&"button",href:t&&this.href,target:t&&this.target?this.target:null,rel:t&&"noreferrer noopener",onClick:this.handleClick,part:"base"},e("span",{part:"label",class:"button_label"},e("slot",null)))}};ea.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-block;width:auto;cursor:pointer;position:relative;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;--pv-button-padding-end:5px;--pv-button-padding-start:5px}.button{font-family:"Open Sans", "Arial", sans-serif;font-family:var(--pv-font-family);font-size:13px;font-size:var(--pv-font-size-b3);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;border-style:solid;border-width:1px;font-weight:400;text-decoration:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;vertical-align:middle;cursor:inherit;height:30px;line-height:30px;border-radius:2px;padding:0 5px;padding:0 var(--pv-button-padding-end) 0 var(--pv-button-padding-start)}.button::-moz-focus-inner{border:0}.button:focus{outline:none;-webkit-box-shadow:0 4px 10px 0 rgba(var(--pv-color-dark-rgb), 0.1);box-shadow:0 4px 10px 0 rgba(var(--pv-color-dark-rgb), 0.1)}.button[disabled]{opacity:0.5;cursor:not-allowed}.button_stroke{border-color:rgba(53, 132, 247, 0.3);border-color:rgba(var(--pv-color-primary-rgb), 0.3);color:#3584f7;color:rgba(var(--pv-color-primary-rgb), 1);background-color:transparent}.button_fill{border-color:#3584f7;border-color:rgba(var(--pv-color-primary-rgb), 1);background-color:#3584f7;background-color:rgba(var(--pv-color-primary-rgb), 1);color:white;color:rgba(var(--pv-color-light-rgb), 1)}.button_label{-webkit-transition:opacity 200ms;transition:opacity 200ms}.button:hover .button_label{opacity:0.7}';const ta=class{constructor(e){t(this,e),this.fill="stroke",this.actions=[],this.open=!1,this.onClickSplitButton=e=>{e.stopPropagation(),this.open=!this.open}}onClickActiveButton(e,t){this.open=!1,e(t)}renderActiveSplitState(){return this.open?e("div",{class:"button_split_container"},this.actions.map(t=>e("peculiar-button",{fill:"fill",class:"button_split_action",onClick:this.onClickActiveButton.bind(this,t.onClick)},t.text))):null}render(){return e("div",{class:{button_split:!0}},e("peculiar-button",{fill:this.fill,onClick:this.onClick},e("slot",null)),e("peculiar-button",{fill:this.fill,onClick:this.onClickSplitButton,class:{button_split_with_icon:!0,m_open:this.open}},e("svg",{viewBox:"0 0 7 5",xmlns:"http://www.w3.org/2000/svg",class:"button_split_icon"},e("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.459.124c.934.001 1.442.994.84 1.644L4.425 3.794c-.44.475-1.244.475-1.684 0L.862 1.764C.26 1.115.77.12 1.705.122l3.754.003z"}))),this.renderActiveSplitState())}};ta.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-block;vertical-align:top;position:relative;white-space:nowrap;font-size:0}.button_split_icon{width:7px;height:5px;display:inline-block;vertical-align:middle}.button_split_with_icon{width:25px;border-bottom-left-radius:0;border-top-left-radius:0}.button_split_with_icon.m_open::part(base):before{position:fixed;width:100%;height:100%;top:0;left:0;content:""}.button_split_action{width:100%}.button_split_container{position:absolute;bottom:calc(100% + 1px);left:0;width:100%;border-radius:2px;-webkit-box-shadow:0px -2px 1px rgb(var(--pv-color-light-rgb)), 0px 0px 10px rgba(var(--pv-color-dark-rgb), 0.0241168);box-shadow:0px -2px 1px rgb(var(--pv-color-light-rgb)), 0px 0px 10px rgba(var(--pv-color-dark-rgb), 0.0241168);z-index:1}.button_split>peculiar-button:first-of-type::part(base){border-top-right-radius:0;border-bottom-right-radius:0}.button_split>peculiar-button:last-of-type::part(base){border-top-left-radius:0;border-bottom-left-radius:0}.button_split>peculiar-button:not(:first-child){margin-left:-1px}';const aa=class{constructor(e){t(this,e),this.onClickDecode=()=>{const{value:e}=this.inputPaste;e&&this.decode(e)},this.onClickExample=()=>{this.decode(this.certificateExample)},this.onClickClear=()=>{this.clearValue()},this.onChangeInputFile=async e=>{const t=e.target;if(t.files){const e=await Re(t.files[0]);"string"==typeof e.value&&this.decode(e.value),t.value=""}},this.onDropFile=async e=>{e.stopPropagation(),e.preventDefault();const t=e.dataTransfer;if(t.files){const e=await Re(t.files[0]);"string"==typeof e.value&&this.decode(e.value)}}}componentDidLoad(){const e=Ge.parseHash(window.location.search);e.cert&&setTimeout(()=>this.decode(e.cert),100)}clearValue(){this.inputPaste.value="",this.certificateDecoded=null,Ge.replace({search:""})}setValue(e){this.certificateDecoded=e,this.inputPaste.value=e.exportAsPemFormatted(),Ge.replace({search:Ge.queryStringify({cert:e.exportAsBase64()})})}decode(e){const t=Le(e),a=De(e),i=je(e),n=Ee(e);let o,r;if(t&&!(a||n||i))return this.clearValue(),void alert("Unsupported file type. Please try to use Certificate/AttributeCertificate/CertificateRequest.");try{a&&(o=new Te(e)),n&&(o=new He(e)),i&&(o=new qe(e))}catch(s){r=s}if(!o)try{o=new Te(e)}catch(s){r=s}if(!o)try{o=new He(e)}catch(s){r=s}if(!o)try{o=new qe(e)}catch(s){r=s}o?this.setValue(o):(this.clearValue(),console.log(r),alert("Error decoding file. Please try to use Certificate/AttributeCertificate/CertificateRequest."))}render(){return e(a,null,e("textarea",{placeholder:"Certificate DER or PEM",class:"textarea",ref:e=>{this.inputPaste=e},onDrop:this.onDropFile}),e("div",{class:"controls"},e("peculiar-button",{fill:"fill",class:"button",onClick:this.onClickDecode},"Decode"),e("peculiar-button",{class:"button"},"Choose file",e("input",{type:"file",class:"input_file",accept:"application/pkix-cert,application/x-x509-ca-cert,application/x-x509-user-cert,application/pkcs10,.csr,.req",onChange:this.onChangeInputFile,value:""})),e("peculiar-button",{class:"button",onClick:this.onClickClear},"Clear"),this.certificateExample&&e("peculiar-button",{class:"button",onClick:this.onClickExample},"Example")),this.certificateDecoded instanceof Te&&e("peculiar-certificate-viewer",{certificate:this.certificateDecoded,class:"viewer",download:!0}),this.certificateDecoded instanceof He&&e("peculiar-attribute-certificate-viewer",{certificate:this.certificateDecoded,class:"viewer",download:!0}),this.certificateDecoded instanceof qe&&e("peculiar-csr-viewer",{certificate:this.certificateDecoded,class:"viewer",download:!0}))}};
96
- /**
97
- * @license
98
- * Copyright (c) Peculiar Ventures, LLC.
99
- *
100
- * This source code is licensed under the MIT license found in the
101
- * LICENSE file in the root directory of this source tree.
102
- */
103
- function ia(e){var t;if(null===(t=e.params)||void 0===t?void 0:t.modulus){let t=e.params.modulus.byteLength;return t%2&&(t-=1),8*t}return null}function na(e){var t;return(null===(t=e.params)||void 0===t?void 0:t.publicExponent)?3===e.params.publicExponent.byteLength?65537:3:null}aa.style=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;display:block;width:100%;font-size:0}.textarea{min-height:300px;width:100%;border-radius:3px;border-width:1px;border-style:solid;padding:14px;font-family:monospace;resize:vertical;background-color:white;background-color:rgba(var(--pv-color-light-rgb), 1);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);font-size:14px;font-size:var(--pv-font-size-h7)}.controls{margin-top:10px}.button{position:relative}.button:not(:first-child){margin-left:10px}.viewer{margin-top:64px}.input_file{opacity:0;width:100%;height:100%;top:0;left:0;display:block;position:absolute}";const oa=t=>{var a;const{publicKey:i}=t;return i?[e(Be,{value:Pe.getString("publicKeyInfo")}),e(Fe,{name:Pe.getString("algorithm"),value:$e(i.algorithm)}),e(Fe,{name:Pe.getString("namedCurve"),value:$e(null===(a=i.params)||void 0===a?void 0:a.namedCurve)}),e(Fe,{name:Pe.getString("exponent"),value:na(i)}),e(Fe,{name:Pe.getString("modulus"),value:ia(i)}),e(Fe,{name:Pe.getString("value"),value:r.Convert.ToHex(i.value),monospace:!0,collapse:!0})]:null},ra=t=>{const{name:a}=t;return[e(Be,{value:Pe.getString("subjectName")}),a.map(t=>e(Fe,{name:t.name||t.type,value:t.value}))]},sa=t=>{const{name:a,issuerDnLink:i}=t,n=Pe.getString("issuerName");return[e(Be,{value:i?e("peculiar-link",{href:i,type:"h6"},n):n}),a.map(t=>e(Fe,{name:t.name||t.type,value:t.value}))]},la=class{constructor(e){t(this,e),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=e=>{var t;return null===(t=this.authKeyIdParentLink)||void 0===t?void 0:t.replace("{{authKeyId}}",e)},this.getAuthKeyIdSiblingsLink=e=>{var t;return null===(t=this.authKeyIdSiblingsLink)||void 0===t?void 0:t.replace("{{authKeyId}}",e)},this.getSubjectKeyIdChildrenLink=e=>{var t;return null===(t=this.subjectKeyIdChildrenLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)},this.getSubjectKeyIdSiblingsLink=e=>{var t;return null===(t=this.subjectKeyIdSiblingsLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(e){this.isDecodeInProcess=!0;try{if(e instanceof Te)this.certificateDecoded=e;else{if("string"!=typeof e)return;this.certificateDecoded=new Te(e)}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(e,t){"string"!=typeof e||"string"!=typeof t?e instanceof Te&&t instanceof Te&&e.serialNumber!==t.serialNumber&&this.decodeCertificate(e):e!==t&&this.decodeCertificate(e)}getIssuerDnLink(){return this.issuerDnLink}renderErrorState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate."))}renderEmptyState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate available."))}render(){return this.certificateDecodeError?this.renderErrorState():this.certificateDecoded?e(a,{"data-view":this.view},e("table",null,e(Bt,Object.assign({},this.certificateDecoded)),e(ra,{name:this.certificateDecoded.subject}),e(sa,{name:this.certificateDecoded.issuer,issuerDnLink:this.getIssuerDnLink()}),e(oa,{publicKey:this.certificateDecoded.publicKey}),e(Ue,{signature:this.certificateDecoded.signature}),e(lt,{thumbprints:this.certificateDecoded.thumbprints}),e($t,{extensions:this.certificateDecoded.extensions,getLEILink:Mt,getDNSNameLink:Xt,getIPAddressLink:Wt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&e(Yt,{certificate:this.certificateDecoded}))):this.renderEmptyState()}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};
104
- /**
105
- * @license
106
- * Copyright (c) Peculiar Ventures, LLC.
107
- *
108
- * This source code is licensed under the MIT license found in the
109
- * LICENSE file in the root directory of this source tree.
110
- */la.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 ca=class{constructor(e){t(this,e),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=e=>e,this.getAuthKeyIdSiblingsLink=e=>e,this.getSubjectKeyIdChildrenLink=e=>{var t;return null===(t=this.subjectKeyIdChildrenLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)},this.getSubjectKeyIdSiblingsLink=e=>{var t;return null===(t=this.subjectKeyIdSiblingsLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(e){this.isDecodeInProcess=!0;try{if(e instanceof qe)this.certificateDecoded=e;else{if("string"!=typeof e)return;this.certificateDecoded=new qe(e)}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(e,t){"string"!=typeof e||"string"!=typeof t?e instanceof qe&&t instanceof qe&&e.commonName!==t.commonName&&this.decodeCertificate(e):e!==t&&this.decodeCertificate(e)}renderErrorState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate request."))}renderEmptyState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate request available."))}getExtensionRequestAttribute(){if(this.certificateDecoded)return this.certificateDecoded.attributes.find(e=>"1.2.840.113549.1.9.14"===e.asn.type)}render(){if(this.certificateDecodeError)return this.renderErrorState();if(!this.certificateDecoded)return this.renderEmptyState();const t=this.getExtensionRequestAttribute();return e(a,{"data-view":this.view},e("table",null,e(Bt,Object.assign({},this.certificateDecoded)),e(ra,{name:this.certificateDecoded.subject}),e(oa,{publicKey:this.certificateDecoded.publicKey}),e(Ue,{signature:this.certificateDecoded.signature}),e(lt,{thumbprints:this.certificateDecoded.thumbprints}),e(st,{attributes:this.certificateDecoded.attributes,getLEILink:Mt,getDNSNameLink:Xt,getIPAddressLink:Wt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),e($t,{extensions:null==t?void 0:t.value,title:"Extension Request",getLEILink:Mt,getDNSNameLink:Xt,getIPAddressLink:Wt,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&e(Yt,{certificate:this.certificateDecoded})))}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};ca.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 da=class{constructor(e){t(this,e),this.type="b3"}render(){return e("a",{href:this.href,target:"_blank",rel:"noreferrer noopener",class:{link:!0,["link_type_"+(this.type||"b3")]:!0}},e("slot",null))}};da.style=':host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;display:inline-block}.link{font-family:"Open Sans", "Arial", sans-serif;font-family:var(--pv-font-family);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);line-height:1.4;line-height:var(--pv-line-height-normal);color:#3584f7;color:rgba(var(--pv-color-primary-rgb), 1);font-weight:400;margin:0;padding:0;word-break:break-all}.link_type_h4{font-size:17px;font-size:var(--pv-font-size-h4);font-weight:600}.link_type_h6{font-size:15px;font-size:var(--pv-font-size-h6);font-weight:600}.link_type_h7{font-size:14px;font-size:var(--pv-font-size-h7);font-weight:600}.link_type_b1{font-size:15px;font-size:var(--pv-font-size-b1)}.link_type_b3{font-size:13px;font-size:var(--pv-font-size-b3)}.link:hover{text-decoration:none}';const ba=class{constructor(e){t(this,e),this.textExpand=i(this,"textExpand",7),this.opened=!1}textExpandHandler(){this.opened=!this.opened}render(){return e(a,null,e("div",{class:"root"},e("div",{class:{text:!0,m_opened:this.opened}},e("slot",null)),e("div",{class:"action"},e("peculiar-button",{onClick:this.textExpand.emit,class:{button_action:!0,m_opened:this.opened},fill:this.opened?"fill":"stroke"},e("svg",{viewBox:"0 0 7 5",xmlns:"http://www.w3.org/2000/svg",class:"expand_icon"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M5.459.124c.934.001 1.442.994.84 1.644L4.425 3.794c-.44.475-1.244.475-1.684 0L.862 1.764C.26 1.115.77.12 1.705.122l3.754.003z"}))))))}};ba.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%}.text{display:inline-block;width:calc(100% - 60px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}.text.m_opened{white-space:initial}.action{vertical-align:top;display:inline-block;width:60px;text-align:right;position:relative;top:-6px}.button_action{width:30px}.expand_icon{width:7px;height:5px;display:inline-block}.m_opened .expand_icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}";const pa=class{constructor(e){t(this,e),this.type="b3",this.color="dark"}render(){const t=this.type&&this.type.includes("h")?this.type:"p";return e(t,{class:{typography:!0,["typography_type_"+(this.type||"b3")]:!0,["typography_color_"+(this.color||"dark")]:!0,["typography_align_"+this.align]:!!this.align,typography_ellipsis:this.ellipsis,typography_monospace:this.monospace}},e("slot",null))}};pa.style=':host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;display:block}.typography{font-family:"Open Sans", "Arial", sans-serif;font-family:var(--pv-font-family);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);line-height:1.4;line-height:var(--pv-line-height-normal);font-weight:400;margin:0;padding:0;display:block}.typography_type_h4{font-size:17px;font-size:var(--pv-font-size-h4);font-weight:600}.typography_type_h6{font-size:15px;font-size:var(--pv-font-size-h6);font-weight:600}.typography_type_h7{font-size:14px;font-size:var(--pv-font-size-h7);font-weight:600}.typography_type_b1{font-size:15px;font-size:var(--pv-font-size-b1)}.typography_type_b3{font-size:13px;font-size:var(--pv-font-size-b3)}.typography_color_dark{color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1)}.typography_color_light{color:white;color:rgba(var(--pv-color-light-rgb), 1)}.typography_color_grey_3{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.typography_color_grey_5{color:#869196;color:rgba(var(--pv-color-grey_5-rgb), 1)}.typography_color_attention{color:#f7a831;color:rgba(var(--pv-color-attention-rgb), 1)}.typography_color_primary{color:#3584f7;color:rgba(var(--pv-color-primary-rgb), 1)}.typography_ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.typography_monospace{font-family:monospace}.typography_align_left{text-align:left}.typography_align_center{text-align:center}.typography_align_right{text-align:right}';export{Zt as peculiar_attribute_certificate_viewer,ea as peculiar_button,ta as peculiar_button_split,aa as peculiar_certificate_decoder,la as peculiar_certificate_viewer,ca as peculiar_csr_viewer,da as peculiar_link,ba as peculiar_text_hider,pa as peculiar_typography}