@peculiar/certificates-viewer 4.7.1-alpha.5 → 4.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (371) hide show
  1. package/components/actions.js +1 -2
  2. package/components/actions.js.map +1 -1
  3. package/components/arrow_top.js +2 -4
  4. package/components/arrow_top.js.map +1 -1
  5. package/components/attribute-certificate-viewer.js +8 -13
  6. package/components/attribute-certificate-viewer.js.map +1 -1
  7. package/components/button-menu.js +5 -3
  8. package/components/button-menu.js.map +1 -1
  9. package/components/button.js +5 -8
  10. package/components/button.js.map +1 -1
  11. package/components/certificate-chain-viewer.js +5 -3
  12. package/components/certificate-chain-viewer.js.map +1 -1
  13. package/components/certificate-viewer.js +5 -3
  14. package/components/certificate-viewer.js.map +1 -1
  15. package/components/circular-progress.js +4 -2
  16. package/components/circular-progress.js.map +1 -1
  17. package/components/crl-viewer.js +7 -8
  18. package/components/crl-viewer.js.map +1 -1
  19. package/components/cross.js +3 -6
  20. package/components/cross.js.map +1 -1
  21. package/components/csr-viewer.js +5 -3
  22. package/components/csr-viewer.js.map +1 -1
  23. package/components/download.js +89 -89
  24. package/components/download.js.map +1 -1
  25. package/components/highlight-words.js +4 -2
  26. package/components/highlight-words.js.map +1 -1
  27. package/components/index2.js +14 -49
  28. package/components/index2.js.map +1 -1
  29. package/components/issuer_name.js.map +1 -1
  30. package/components/miscellaneous.js +61 -153
  31. package/components/miscellaneous.js.map +1 -1
  32. package/components/peculiar-certificate-decoder.js +6 -4
  33. package/components/peculiar-certificate-decoder.js.map +1 -1
  34. package/components/peculiar-certificates-viewer.js +7 -17
  35. package/components/peculiar-certificates-viewer.js.map +1 -1
  36. package/components/pkcs10_certificate_request.js.map +1 -1
  37. package/components/row.js +6 -17
  38. package/components/row.js.map +1 -1
  39. package/components/ssh-certificate-viewer.js +6 -6
  40. package/components/ssh-certificate-viewer.js.map +1 -1
  41. package/components/subject_name.js.map +1 -1
  42. package/components/text-hider.js +5 -3
  43. package/components/text-hider.js.map +1 -1
  44. package/dist/cjs/{actions-ByC9jQU-.js → actions-C1jYRZ3Q.js} +4 -5
  45. package/dist/cjs/{actions-ByC9jQU-.js.map → actions-C1jYRZ3Q.js.map} +1 -1
  46. package/dist/cjs/{arrow_top-Cw9KN115.js → arrow_top-mevx21kO.js} +5 -7
  47. package/dist/cjs/{arrow_top-Cw9KN115.js.map → arrow_top-mevx21kO.js.map} +1 -1
  48. package/dist/cjs/{button-C8EWG_-r.js → button-DsojEA1A.js} +8 -11
  49. package/dist/{esm-es5/button-Bbh7MwG6.js.map → cjs/button-DsojEA1A.js.map} +1 -1
  50. package/dist/cjs/cross-DrayJL9P.js +49 -0
  51. package/dist/cjs/{cross-3DqhA0G_.js.map → cross-DrayJL9P.js.map} +1 -1
  52. package/dist/cjs/download-DiAVqjk3.js +23 -0
  53. package/dist/cjs/{download-DQP0KR4o.js.map → download-DiAVqjk3.js.map} +1 -1
  54. package/dist/cjs/{extension-CjXYQXbF.js → extension-BDpdRJkE.js} +3 -3
  55. package/dist/cjs/extension-BDpdRJkE.js.map +1 -0
  56. package/dist/cjs/{index-uHmGhObe.js → index-BazYhMnZ.js} +89 -48
  57. package/dist/cjs/index-BazYhMnZ.js.map +1 -0
  58. package/dist/cjs/index.cjs.js +9 -11
  59. package/dist/cjs/{link-Cgh8wnbs.js → link-D9y0M_nJ.js} +5 -5
  60. package/dist/cjs/{link-Cgh8wnbs.js.map → link-D9y0M_nJ.js.map} +1 -1
  61. package/dist/cjs/loader.cjs.js +2 -4
  62. package/dist/cjs/{miscellaneous-7gtHz795.js → miscellaneous-DmTT_MGG.js} +75 -178
  63. package/dist/cjs/miscellaneous-DmTT_MGG.js.map +1 -0
  64. package/dist/cjs/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.peculiar-ssh-certificate-viewer.entry.cjs.js.map +1 -1
  65. package/dist/cjs/peculiar-attribute-certificate-viewer_5.cjs.entry.js +34 -83
  66. package/dist/cjs/peculiar-button-menu.peculiar-circular-progress.peculiar-highlight-words.entry.cjs.js.map +1 -1
  67. package/dist/cjs/peculiar-button-menu_3.cjs.entry.js +4 -6
  68. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +8 -10
  69. package/dist/cjs/peculiar-certificate-decoder.entry.cjs.js.map +1 -1
  70. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +9 -11
  71. package/dist/cjs/peculiar-certificate-viewer.entry.cjs.js.map +1 -1
  72. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +11 -25
  73. package/dist/cjs/peculiar-certificates-viewer.entry.cjs.js.map +1 -1
  74. package/dist/cjs/peculiar-text-hider.cjs.entry.js +4 -6
  75. package/dist/cjs/peculiar-text-hider.entry.cjs.js.map +1 -1
  76. package/dist/cjs/peculiar.cjs.js +3 -5
  77. package/dist/cjs/peculiar.cjs.js.map +1 -1
  78. package/dist/cjs/{pkcs10_certificate_request-CIOxDu_Z.js → pkcs10_certificate_request-DZLiHGCV.js} +3 -3
  79. package/dist/cjs/{pkcs10_certificate_request-CIOxDu_Z.js.map → pkcs10_certificate_request-DZLiHGCV.js.map} +1 -1
  80. package/dist/cjs/{ssh_certificate-DnXj2sM0.js → ssh_certificate-Bh14rhzR.js} +89 -88
  81. package/dist/cjs/ssh_certificate-Bh14rhzR.js.map +1 -0
  82. package/dist/cjs/{x509_certificate-DPgu-mwG.js → x509_certificate-p8RMn7Hw.js} +4 -4
  83. package/dist/cjs/{x509_certificate-DPgu-mwG.js.map → x509_certificate-p8RMn7Hw.js.map} +1 -1
  84. package/dist/cjs/{x509_crl-D_DKkGcn.js → x509_crl-tjmX6l3R.js} +5 -5
  85. package/dist/cjs/{x509_crl-D_DKkGcn.js.map → x509_crl-tjmX6l3R.js.map} +1 -1
  86. package/dist/collection/collection-manifest.json +2 -2
  87. package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +14 -14
  88. package/dist/collection/components/button-menu/button-menu.css +4 -4
  89. package/dist/collection/components/button-menu/button-menu.js +1 -2
  90. package/dist/collection/components/button-menu/button-menu.js.map +1 -1
  91. package/dist/collection/components/certificate-chain-viewer/certificate-chain-viewer.css +16 -463
  92. package/dist/collection/components/certificate-chain-viewer/certificate-chain-viewer.js +2 -3
  93. package/dist/collection/components/certificate-chain-viewer/certificate-chain-viewer.js.map +1 -1
  94. package/dist/collection/components/certificate-decoder/certificate-decoder.css +7 -7
  95. package/dist/collection/components/certificate-decoder/certificate-decoder.js +2 -3
  96. package/dist/collection/components/certificate-decoder/certificate-decoder.js.map +1 -1
  97. package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js +1 -1
  98. package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js.map +1 -1
  99. package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js +1 -1
  100. package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js.map +1 -1
  101. package/dist/collection/components/certificate-viewer/certificate-viewer.css +12 -12
  102. package/dist/collection/components/certificate-viewer/certificate-viewer.js +16 -16
  103. package/dist/collection/components/certificates-viewer/certificates-viewer.css +20 -20
  104. package/dist/collection/components/certificates-viewer/certificates-viewer.js +4 -5
  105. package/dist/collection/components/certificates-viewer/certificates-viewer.js.map +1 -1
  106. package/dist/collection/components/circular-progress/circular-progress.js +2 -2
  107. package/dist/collection/components/crl-viewer/crl-viewer.js +12 -12
  108. package/dist/collection/components/csr-viewer/csr-viewer.js +10 -10
  109. package/dist/collection/components/highlight-words/highlight-words.js +2 -2
  110. package/dist/collection/components/ssh-certificate-viewer/ssh-certificate-viewer.js +6 -6
  111. package/dist/collection/components/text-hider/text-hider.css +1 -1
  112. package/dist/collection/crypto/extensions/cabforganization_identifier.js.map +1 -1
  113. package/dist/collection/crypto/ssh_certificate.js +8 -3
  114. package/dist/collection/crypto/ssh_certificate.js.map +1 -1
  115. package/dist/esm/{actions-BOY2Tl0T.js → actions-CgJF68SC.js} +4 -5
  116. package/dist/esm/{actions-BOY2Tl0T.js.map → actions-CgJF68SC.js.map} +1 -1
  117. package/dist/esm/{arrow_top-DL0RWe4n.js → arrow_top-D9kTyEez.js} +5 -7
  118. package/dist/{esm-es5/arrow_top-DL0RWe4n.js.map → esm/arrow_top-D9kTyEez.js.map} +1 -1
  119. package/dist/esm/{button-Bbh7MwG6.js → button-B_ORW96s.js} +8 -11
  120. package/dist/esm/{button-Bbh7MwG6.js.map → button-B_ORW96s.js.map} +1 -1
  121. package/dist/esm/cross-C5dZw2z0.js +45 -0
  122. package/dist/{esm-es5/cross-G84H_-QL.js.map → esm/cross-C5dZw2z0.js.map} +1 -1
  123. package/dist/esm/download-DBNGcuiq.js +21 -0
  124. package/dist/esm/{download-ykcxSgxU.js.map → download-DBNGcuiq.js.map} +1 -1
  125. package/dist/esm/{extension-B3br1_Py.js → extension-xW03sQxn.js} +3 -3
  126. package/dist/esm/extension-xW03sQxn.js.map +1 -0
  127. package/dist/esm/{index-CwgZaF40.js → index-Dpo1Lsuj.js} +89 -48
  128. package/dist/esm/index-Dpo1Lsuj.js.map +1 -0
  129. package/dist/esm/index.js +9 -11
  130. package/dist/esm/{link-CGURvKy1.js → link-CHi4u6ex.js} +5 -5
  131. package/dist/esm/{link-CGURvKy1.js.map → link-CHi4u6ex.js.map} +1 -1
  132. package/dist/esm/loader.js +3 -5
  133. package/dist/esm/{miscellaneous-phHcBJWR.js → miscellaneous-D-Qxv14j.js} +75 -178
  134. package/dist/esm/miscellaneous-D-Qxv14j.js.map +1 -0
  135. package/dist/esm/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.peculiar-ssh-certificate-viewer.entry.js.map +1 -1
  136. package/dist/esm/peculiar-attribute-certificate-viewer_5.entry.js +34 -83
  137. package/dist/esm/peculiar-button-menu.peculiar-circular-progress.peculiar-highlight-words.entry.js.map +1 -1
  138. package/dist/esm/peculiar-button-menu_3.entry.js +4 -6
  139. package/dist/esm/peculiar-certificate-decoder.entry.js +8 -10
  140. package/dist/esm/peculiar-certificate-decoder.entry.js.map +1 -1
  141. package/dist/esm/peculiar-certificate-viewer.entry.js +9 -11
  142. package/dist/esm/peculiar-certificate-viewer.entry.js.map +1 -1
  143. package/dist/esm/peculiar-certificates-viewer.entry.js +11 -25
  144. package/dist/esm/peculiar-certificates-viewer.entry.js.map +1 -1
  145. package/dist/esm/peculiar-text-hider.entry.js +4 -6
  146. package/dist/esm/peculiar-text-hider.entry.js.map +1 -1
  147. package/dist/esm/peculiar.js +4 -6
  148. package/dist/esm/peculiar.js.map +1 -1
  149. package/dist/esm/{pkcs10_certificate_request-HIoLPXGQ.js → pkcs10_certificate_request-Crr9FABo.js} +3 -3
  150. package/dist/esm/{pkcs10_certificate_request-HIoLPXGQ.js.map → pkcs10_certificate_request-Crr9FABo.js.map} +1 -1
  151. package/dist/esm/{ssh_certificate-rmToyzuK.js → ssh_certificate-CmOVFH_Z.js} +89 -88
  152. package/dist/esm/ssh_certificate-CmOVFH_Z.js.map +1 -0
  153. package/dist/esm/{x509_certificate-C1VvfHQ5.js → x509_certificate-C2EVTspY.js} +4 -4
  154. package/dist/{esm-es5/x509_certificate-C1VvfHQ5.js.map → esm/x509_certificate-C2EVTspY.js.map} +1 -1
  155. package/dist/esm/{x509_crl-rfnWQkGD.js → x509_crl-Bdnys_YT.js} +5 -5
  156. package/dist/{esm-es5/x509_crl-rfnWQkGD.js.map → esm/x509_crl-Bdnys_YT.js.map} +1 -1
  157. package/dist/esm-es5/{actions-BOY2Tl0T.js → actions-CgJF68SC.js} +2 -2
  158. package/dist/esm-es5/{actions-BOY2Tl0T.js.map → actions-CgJF68SC.js.map} +1 -1
  159. package/dist/esm-es5/{arrow_top-DL0RWe4n.js → arrow_top-D9kTyEez.js} +2 -2
  160. package/dist/{esm/arrow_top-DL0RWe4n.js.map → esm-es5/arrow_top-D9kTyEez.js.map} +1 -1
  161. package/dist/esm-es5/{button-Bbh7MwG6.js → button-B_ORW96s.js} +2 -2
  162. package/dist/{cjs/button-C8EWG_-r.js.map → esm-es5/button-B_ORW96s.js.map} +1 -1
  163. package/dist/esm-es5/{cross-G84H_-QL.js → cross-C5dZw2z0.js} +2 -2
  164. package/dist/{esm/cross-G84H_-QL.js.map → esm-es5/cross-C5dZw2z0.js.map} +1 -1
  165. package/dist/esm-es5/{download-ykcxSgxU.js → download-DBNGcuiq.js} +2 -2
  166. package/dist/esm-es5/{download-ykcxSgxU.js.map → download-DBNGcuiq.js.map} +1 -1
  167. package/dist/esm-es5/{extension-B3br1_Py.js → extension-xW03sQxn.js} +2 -2
  168. package/dist/esm-es5/extension-xW03sQxn.js.map +1 -0
  169. package/dist/esm-es5/index-Dpo1Lsuj.js +6 -0
  170. package/dist/esm-es5/index-Dpo1Lsuj.js.map +1 -0
  171. package/dist/esm-es5/index.js +1 -1
  172. package/dist/esm-es5/{link-CGURvKy1.js → link-CHi4u6ex.js} +3 -3
  173. package/dist/esm-es5/{link-CGURvKy1.js.map → link-CHi4u6ex.js.map} +1 -1
  174. package/dist/esm-es5/loader.js +2 -2
  175. package/dist/esm-es5/{miscellaneous-phHcBJWR.js → miscellaneous-D-Qxv14j.js} +4 -4
  176. package/dist/esm-es5/miscellaneous-D-Qxv14j.js.map +1 -0
  177. package/dist/esm-es5/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.peculiar-ssh-certificate-viewer.entry.js.map +1 -1
  178. package/dist/esm-es5/peculiar-attribute-certificate-viewer_5.entry.js +4 -4
  179. package/dist/esm-es5/peculiar-attribute-certificate-viewer_5.entry.js.map +1 -1
  180. package/dist/esm-es5/peculiar-button-menu.peculiar-circular-progress.peculiar-highlight-words.entry.js.map +1 -1
  181. package/dist/esm-es5/peculiar-button-menu_3.entry.js +1 -1
  182. package/dist/esm-es5/peculiar-button-menu_3.entry.js.map +1 -1
  183. package/dist/esm-es5/peculiar-certificate-decoder.entry.js +2 -2
  184. package/dist/esm-es5/peculiar-certificate-decoder.entry.js.map +1 -1
  185. package/dist/esm-es5/peculiar-certificate-viewer.entry.js +2 -2
  186. package/dist/esm-es5/peculiar-certificate-viewer.entry.js.map +1 -1
  187. package/dist/esm-es5/peculiar-certificates-viewer.entry.js +3 -3
  188. package/dist/esm-es5/peculiar-certificates-viewer.entry.js.map +1 -1
  189. package/dist/esm-es5/peculiar-text-hider.entry.js +1 -1
  190. package/dist/esm-es5/peculiar-text-hider.entry.js.map +1 -1
  191. package/dist/esm-es5/peculiar.js +2 -2
  192. package/dist/esm-es5/peculiar.js.map +1 -1
  193. package/dist/esm-es5/{pkcs10_certificate_request-HIoLPXGQ.js → pkcs10_certificate_request-Crr9FABo.js} +3 -3
  194. package/dist/esm-es5/{pkcs10_certificate_request-HIoLPXGQ.js.map → pkcs10_certificate_request-Crr9FABo.js.map} +1 -1
  195. package/dist/esm-es5/{ssh_certificate-rmToyzuK.js → ssh_certificate-CmOVFH_Z.js} +5 -5
  196. package/dist/esm-es5/ssh_certificate-CmOVFH_Z.js.map +1 -0
  197. package/dist/esm-es5/{x509_certificate-C1VvfHQ5.js → x509_certificate-C2EVTspY.js} +3 -3
  198. package/dist/{esm/x509_certificate-C1VvfHQ5.js.map → esm-es5/x509_certificate-C2EVTspY.js.map} +1 -1
  199. package/dist/esm-es5/{x509_crl-rfnWQkGD.js → x509_crl-Bdnys_YT.js} +4 -4
  200. package/dist/{esm/x509_crl-rfnWQkGD.js.map → esm-es5/x509_crl-Bdnys_YT.js.map} +1 -1
  201. package/dist/peculiar/index.esm.js +1 -1
  202. package/dist/peculiar/{p-019339d6.entry.js → p-09ff70a5.entry.js} +2 -2
  203. package/dist/peculiar/p-09ff70a5.entry.js.map +1 -0
  204. package/dist/peculiar/{p-B8_0p5ke.js → p-1yfbC8AM.js} +18 -18
  205. package/dist/peculiar/p-1yfbC8AM.js.map +1 -0
  206. package/dist/peculiar/p-3424de20.system.entry.js +5 -0
  207. package/dist/peculiar/p-3424de20.system.entry.js.map +1 -0
  208. package/dist/peculiar/p-342e499f.system.entry.js +5 -0
  209. package/dist/peculiar/p-342e499f.system.entry.js.map +1 -0
  210. package/dist/peculiar/p-3a493e87.entry.js +5 -0
  211. package/dist/peculiar/p-3a493e87.entry.js.map +1 -0
  212. package/dist/peculiar/p-4ff3d82a.system.entry.js +13 -0
  213. package/dist/peculiar/p-4ff3d82a.system.entry.js.map +1 -0
  214. package/dist/peculiar/p-529dac51.system.entry.js +153 -0
  215. package/dist/peculiar/p-529dac51.system.entry.js.map +1 -0
  216. package/dist/peculiar/{p-6f0f2749.system.entry.js → p-64517c6e.system.entry.js} +3 -3
  217. package/dist/peculiar/p-64517c6e.system.entry.js.map +1 -0
  218. package/dist/peculiar/{p-154dd0da.entry.js → p-7777c7dc.entry.js} +2 -2
  219. package/dist/peculiar/p-7777c7dc.entry.js.map +1 -0
  220. package/dist/peculiar/p-7HEye5oH.system.js.map +1 -0
  221. package/dist/peculiar/{p-a4454e2d.system.entry.js → p-83235159.system.entry.js} +3 -3
  222. package/dist/peculiar/p-83235159.system.entry.js.map +1 -0
  223. package/dist/peculiar/{p-NnCM1ETy.system.js → p-8GnZ3R6T.system.js} +2 -2
  224. package/dist/peculiar/{p-NnCM1ETy.system.js.map → p-8GnZ3R6T.system.js.map} +1 -1
  225. package/dist/peculiar/{p-B1eGYq5U.js → p-B4vvBwd6.js} +3 -3
  226. package/dist/peculiar/{p-B1eGYq5U.js.map → p-B4vvBwd6.js.map} +1 -1
  227. package/dist/peculiar/{p-CdS84qJs.system.js → p-B6FmalFa.system.js} +5 -5
  228. package/dist/peculiar/{p-CdS84qJs.system.js.map → p-B6FmalFa.system.js.map} +1 -1
  229. package/dist/peculiar/{p-CYFfXlCT.js → p-B7cL9SBA.js} +4 -4
  230. package/dist/peculiar/{p-CYFfXlCT.js.map → p-B7cL9SBA.js.map} +1 -1
  231. package/dist/peculiar/p-BJbjDQRd.system.js.map +1 -0
  232. package/dist/peculiar/{p-Bknpl7EO.system.js → p-BPj_AI1m.system.js} +3 -3
  233. package/dist/peculiar/{p-Bknpl7EO.system.js.map → p-BPj_AI1m.system.js.map} +1 -1
  234. package/dist/peculiar/{p-ZT6tVIen.js → p-BUdiU0IO.js} +2 -2
  235. package/dist/peculiar/{p-ZT6tVIen.js.map → p-BUdiU0IO.js.map} +1 -1
  236. package/dist/peculiar/{p-CTksa0ml.system.js → p-Bfl7RVFY.system.js} +4 -4
  237. package/dist/peculiar/{p-CTksa0ml.system.js.map → p-Bfl7RVFY.system.js.map} +1 -1
  238. package/dist/peculiar/{p-DMZr5ztF.js → p-BoVBJ09p.js} +2 -2
  239. package/dist/peculiar/{p-DMZr5ztF.js.map → p-BoVBJ09p.js.map} +1 -1
  240. package/dist/peculiar/{p-DanjeXNk.js → p-BqjR5Yyc.js} +2 -2
  241. package/dist/peculiar/{p-DanjeXNk.js.map → p-BqjR5Yyc.js.map} +1 -1
  242. package/dist/peculiar/{p-N3w4Sc5c.system.js.map → p-BrbKF6Q_.system.js.map} +1 -1
  243. package/dist/peculiar/p-BvX2AYI4.system.js.map +1 -0
  244. package/dist/peculiar/{p-CkePJXWQ.js → p-BxiR02Uf.js} +4 -4
  245. package/dist/peculiar/{p-CkePJXWQ.js.map → p-BxiR02Uf.js.map} +1 -1
  246. package/dist/peculiar/p-CCyzZ5j5.system.js +6 -0
  247. package/dist/peculiar/p-CCyzZ5j5.system.js.map +1 -0
  248. package/dist/peculiar/{p-ZxTK29QB.system.js → p-CGipIfjs.system.js} +5 -5
  249. package/dist/peculiar/{p-ZxTK29QB.system.js.map → p-CGipIfjs.system.js.map} +1 -1
  250. package/dist/peculiar/{p-kq9wAWxW.system.js → p-CLcRtCZ9.system.js} +5 -5
  251. package/dist/peculiar/p-CLcRtCZ9.system.js.map +1 -0
  252. package/dist/peculiar/p-Ck3muCzg.system.js.map +1 -0
  253. package/dist/peculiar/p-Ckf8xErP.system.js +12 -0
  254. package/dist/peculiar/p-Ckf8xErP.system.js.map +1 -0
  255. package/dist/peculiar/{p-Bi5mjeeg.system.js → p-ClIFRyyo.system.js} +2 -2
  256. package/dist/peculiar/{p-Bi5mjeeg.system.js.map → p-ClIFRyyo.system.js.map} +1 -1
  257. package/dist/peculiar/{p-rmToyzuK.js → p-CmOVFH_Z.js} +4 -4
  258. package/dist/peculiar/p-CmOVFH_Z.js.map +1 -0
  259. package/dist/peculiar/p-Cq11_gqW.system.js +5 -0
  260. package/dist/peculiar/p-Cq11_gqW.system.js.map +1 -0
  261. package/dist/peculiar/p-DXA1451q.js +12 -0
  262. package/dist/peculiar/p-DXA1451q.js.map +1 -0
  263. package/dist/peculiar/{p-DkshB-5z.system.js → p-DberG072.system.js} +5 -5
  264. package/dist/peculiar/{p-DkshB-5z.system.js.map → p-DberG072.system.js.map} +1 -1
  265. package/dist/peculiar/{p-B4PdAFCr.system.js → p-DfK0DWXj.system.js} +2 -2
  266. package/dist/peculiar/{p-B4PdAFCr.system.js.map → p-DfK0DWXj.system.js.map} +1 -1
  267. package/dist/peculiar/p-Dpo1Lsuj.js +6 -0
  268. package/dist/peculiar/p-Dpo1Lsuj.js.map +1 -0
  269. package/dist/peculiar/p-Drk9aw2j.system.js.map +1 -0
  270. package/dist/peculiar/{p-JyD6URnB.js → p-DzEcDVLW.js} +2 -2
  271. package/dist/peculiar/{p-JyD6URnB.js.map → p-DzEcDVLW.js.map} +1 -1
  272. package/dist/peculiar/{p-CutTi-2B.js → p-GTlYmF1j.js} +2 -2
  273. package/dist/peculiar/{p-CutTi-2B.js.map → p-GTlYmF1j.js.map} +1 -1
  274. package/dist/peculiar/{p-CHnDlTqM.js → p-JgecEXqD.js} +2 -2
  275. package/dist/peculiar/{p-CHnDlTqM.js.map → p-JgecEXqD.js.map} +1 -1
  276. package/dist/peculiar/{p-D8xU284r.system.js → p-at6kSwVv.system.js} +2 -2
  277. package/dist/peculiar/{p-D8xU284r.system.js.map → p-at6kSwVv.system.js.map} +1 -1
  278. package/dist/peculiar/p-cc647eff.entry.js +152 -0
  279. package/dist/peculiar/p-cc647eff.entry.js.map +1 -0
  280. package/dist/peculiar/p-ce08fab1.entry.js +5 -0
  281. package/dist/peculiar/p-ce08fab1.entry.js.map +1 -0
  282. package/dist/peculiar/p-f7ee4d56.entry.js +12 -0
  283. package/dist/peculiar/p-f7ee4d56.entry.js.map +1 -0
  284. package/dist/peculiar/{p-BGASC3UX.system.js → p-hEr9Uo3G.system.js} +3 -3
  285. package/dist/peculiar/p-hEr9Uo3G.system.js.map +1 -0
  286. package/dist/peculiar/{p-DorRvFf7.system.js → p-tkt_tT15.system.js} +43 -43
  287. package/dist/peculiar/p-tkt_tT15.system.js.map +1 -0
  288. package/dist/peculiar/p-vXPL1mjI.system.js.map +1 -0
  289. package/dist/peculiar/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.peculiar-ssh-certificate-viewer.entry.esm.js.map +1 -1
  290. package/dist/peculiar/peculiar-button-menu.peculiar-circular-progress.peculiar-highlight-words.entry.esm.js.map +1 -1
  291. package/dist/peculiar/peculiar-certificate-decoder.entry.esm.js.map +1 -1
  292. package/dist/peculiar/peculiar-certificate-viewer.entry.esm.js.map +1 -1
  293. package/dist/peculiar/peculiar-certificates-viewer.entry.esm.js.map +1 -1
  294. package/dist/peculiar/peculiar-text-hider.entry.esm.js.map +1 -1
  295. package/dist/peculiar/peculiar.css +1 -1
  296. package/dist/peculiar/peculiar.esm.js +1 -1
  297. package/dist/peculiar/peculiar.esm.js.map +1 -1
  298. package/dist/peculiar/peculiar.js +1 -1
  299. package/dist/types/crypto/ssh_certificate.d.ts +1 -1
  300. package/dist/types/interface.d.ts +86 -86
  301. package/dist/types/stencil-public-runtime.d.ts +49 -2
  302. package/hydrate/index.d.ts +2 -0
  303. package/hydrate/index.js +379 -507
  304. package/hydrate/index.mjs +379 -507
  305. package/package.json +4 -4
  306. package/dist/cjs/cross-3DqhA0G_.js +0 -52
  307. package/dist/cjs/download-DQP0KR4o.js +0 -24
  308. package/dist/cjs/extension-CjXYQXbF.js.map +0 -1
  309. package/dist/cjs/index-uHmGhObe.js.map +0 -1
  310. package/dist/cjs/miscellaneous-7gtHz795.js.map +0 -1
  311. package/dist/cjs/peculiar-attribute-certificate-viewer_5.cjs.entry.js.map +0 -1
  312. package/dist/cjs/peculiar-button-menu_3.cjs.entry.js.map +0 -1
  313. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js.map +0 -1
  314. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js.map +0 -1
  315. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js.map +0 -1
  316. package/dist/cjs/peculiar-text-hider.cjs.entry.js.map +0 -1
  317. package/dist/cjs/ssh_certificate-DnXj2sM0.js.map +0 -1
  318. package/dist/esm/cross-G84H_-QL.js +0 -48
  319. package/dist/esm/download-ykcxSgxU.js +0 -22
  320. package/dist/esm/extension-B3br1_Py.js.map +0 -1
  321. package/dist/esm/index-CwgZaF40.js.map +0 -1
  322. package/dist/esm/miscellaneous-phHcBJWR.js.map +0 -1
  323. package/dist/esm/peculiar-attribute-certificate-viewer_5.entry.js.map +0 -1
  324. package/dist/esm/peculiar-button-menu_3.entry.js.map +0 -1
  325. package/dist/esm/ssh_certificate-rmToyzuK.js.map +0 -1
  326. package/dist/esm-es5/extension-B3br1_Py.js.map +0 -1
  327. package/dist/esm-es5/index-CwgZaF40.js +0 -6
  328. package/dist/esm-es5/index-CwgZaF40.js.map +0 -1
  329. package/dist/esm-es5/miscellaneous-phHcBJWR.js.map +0 -1
  330. package/dist/esm-es5/ssh_certificate-rmToyzuK.js.map +0 -1
  331. package/dist/peculiar/p-019339d6.entry.js.map +0 -1
  332. package/dist/peculiar/p-04422929.entry.js +0 -12
  333. package/dist/peculiar/p-04422929.entry.js.map +0 -1
  334. package/dist/peculiar/p-154dd0da.entry.js.map +0 -1
  335. package/dist/peculiar/p-27ae6a3a.entry.js +0 -5
  336. package/dist/peculiar/p-27ae6a3a.entry.js.map +0 -1
  337. package/dist/peculiar/p-3685975d.system.entry.js +0 -13
  338. package/dist/peculiar/p-3685975d.system.entry.js.map +0 -1
  339. package/dist/peculiar/p-607d08e8.system.entry.js +0 -5
  340. package/dist/peculiar/p-607d08e8.system.entry.js.map +0 -1
  341. package/dist/peculiar/p-6f0f2749.system.entry.js.map +0 -1
  342. package/dist/peculiar/p-7385d0bb.entry.js +0 -152
  343. package/dist/peculiar/p-7385d0bb.entry.js.map +0 -1
  344. package/dist/peculiar/p-872f7312.system.entry.js +0 -153
  345. package/dist/peculiar/p-872f7312.system.entry.js.map +0 -1
  346. package/dist/peculiar/p-9d9f24bd.entry.js +0 -5
  347. package/dist/peculiar/p-9d9f24bd.entry.js.map +0 -1
  348. package/dist/peculiar/p-B2GW-g6v.system.js +0 -5
  349. package/dist/peculiar/p-B2GW-g6v.system.js.map +0 -1
  350. package/dist/peculiar/p-B8_0p5ke.js.map +0 -1
  351. package/dist/peculiar/p-BGASC3UX.system.js.map +0 -1
  352. package/dist/peculiar/p-BdfvItQB.system.js.map +0 -1
  353. package/dist/peculiar/p-BtqN4pgo.js +0 -12
  354. package/dist/peculiar/p-BtqN4pgo.js.map +0 -1
  355. package/dist/peculiar/p-CbJQZ9Hh.system.js.map +0 -1
  356. package/dist/peculiar/p-CuX3t1Hg.system.js.map +0 -1
  357. package/dist/peculiar/p-Cv-b9S6H.system.js.map +0 -1
  358. package/dist/peculiar/p-CwgZaF40.js +0 -6
  359. package/dist/peculiar/p-CwgZaF40.js.map +0 -1
  360. package/dist/peculiar/p-D0w6miI2.system.js +0 -12
  361. package/dist/peculiar/p-D0w6miI2.system.js.map +0 -1
  362. package/dist/peculiar/p-DKl0YViA.system.js +0 -6
  363. package/dist/peculiar/p-DKl0YViA.system.js.map +0 -1
  364. package/dist/peculiar/p-DOFJd-ye.system.js.map +0 -1
  365. package/dist/peculiar/p-DorRvFf7.system.js.map +0 -1
  366. package/dist/peculiar/p-a4454e2d.system.entry.js.map +0 -1
  367. package/dist/peculiar/p-de857304.system.entry.js +0 -5
  368. package/dist/peculiar/p-de857304.system.entry.js.map +0 -1
  369. package/dist/peculiar/p-eziSY5IJ.system.js.map +0 -1
  370. package/dist/peculiar/p-kq9wAWxW.system.js.map +0 -1
  371. package/dist/peculiar/p-rmToyzuK.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
2
  * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
3
  */
4
- import{r as registerInstance,h,H as Host}from"./index-CwgZaF40.js";import{B as Button}from"./button-Bbh7MwG6.js";import{a as ArrowTopIcon,A as ArrowBottomIcon}from"./arrow_top-DL0RWe4n.js";var textHiderCss=".sc-peculiar-text-hider-h{display:-ms-flexbox;display:flex;width:100%;gap:var(--pv-size-base-4)}[aria-expanded=true].sc-peculiar-text-hider-h .content.sc-peculiar-text-hider{white-space:initial}.content.sc-peculiar-text-hider{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.action.sc-peculiar-text-hider{-ms-flex-negative:0;flex-shrink:0;margin-top:calc(var(--pv-size-base) * -1)}";var TextHider=function(){function e(e){registerInstance(this,e);this.opened=false}e.prototype.render=function(){var e=this;return h(Host,{key:"e62e0ae5bad2145d9d0f8e47493d89f1c9bdd559","aria-expanded":String(this.opened)},h("div",{key:"ee6a5b678e4ff568d017fde3168a37c818c241da",class:"content"},h("slot",{key:"b9d073a716fec21e5e9c1dadc66da3fef292d00b"})),h(Button,{key:"398b81d7ec84ccac8803f46dd4d78104a86b9be7",class:"action",startIcon:this.opened?h(ArrowTopIcon,{color:"secondary"}):h(ArrowBottomIcon,{color:"secondary"}),onClick:function(){e.opened=!e.opened}}))};return e}();TextHider.style=textHiderCss;export{TextHider as peculiar_text_hider};
4
+ import{r as registerInstance,h,H as Host}from"./index-Dpo1Lsuj.js";import{B as Button}from"./button-B_ORW96s.js";import{a as ArrowTopIcon,A as ArrowBottomIcon}from"./arrow_top-D9kTyEez.js";var textHiderCss=".sc-peculiar-text-hider-h{display:-ms-flexbox;display:flex;width:100%;gap:calc(var(--pv-size-base) * 4)}[aria-expanded=true].sc-peculiar-text-hider-h .content.sc-peculiar-text-hider{white-space:initial}.content.sc-peculiar-text-hider{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.action.sc-peculiar-text-hider{-ms-flex-negative:0;flex-shrink:0;margin-top:calc(var(--pv-size-base) * -1)}";var TextHider=function(){function e(e){registerInstance(this,e);this.opened=false}e.prototype.render=function(){var e=this;return h(Host,{key:"e62e0ae5bad2145d9d0f8e47493d89f1c9bdd559","aria-expanded":String(this.opened)},h("div",{key:"ee6a5b678e4ff568d017fde3168a37c818c241da",class:"content"},h("slot",{key:"b9d073a716fec21e5e9c1dadc66da3fef292d00b"})),h(Button,{key:"398b81d7ec84ccac8803f46dd4d78104a86b9be7",class:"action",startIcon:this.opened?h(ArrowTopIcon,{color:"secondary"}):h(ArrowBottomIcon,{color:"secondary"}),onClick:function(){e.opened=!e.opened}}))};return e}();TextHider.style=textHiderCss;export{TextHider as peculiar_text_hider};
5
5
  //# sourceMappingURL=peculiar-text-hider.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"peculiar-text-hider.entry.js","sources":["src/components/text-hider/text-hider.scss?tag=peculiar-text-hider&encapsulation=scoped","src/components/text-hider/text-hider.tsx"],"sourcesContent":[":host {\n display: flex;\n width: 100%;\n gap: var(--pv-size-base-4);\n\n &[aria-expanded=\"true\"] {\n .content {\n white-space: initial;\n }\n }\n}\n\n.content {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 100%;\n}\n\n.action {\n flex-shrink: 0;\n margin-top: calc(var(--pv-size-base) * -1);\n}\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Host,\n h,\n State,\n} from '@stencil/core';\nimport { Button } from '../button';\nimport { ArrowBottomIcon, ArrowTopIcon } from '../icons';\n\n@Component({\n tag: 'peculiar-text-hider',\n styleUrl: 'text-hider.scss',\n scoped: true,\n})\nexport class TextHider {\n @State() opened = false;\n\n render() {\n return (\n <Host\n aria-expanded={String(this.opened)}\n >\n <div class=\"content\">\n <slot />\n </div>\n <Button\n class=\"action\"\n startIcon={this.opened ? <ArrowTopIcon color=\"secondary\" /> : <ArrowBottomIcon color=\"secondary\" />}\n onClick={() => { this.opened = !this.opened; }}\n />\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;;;;;;AAAA,MAAM,YAAY,GAAG,oZAAoZ;;MCsB5Z,SAAS,GAAA,MAAA;AALtB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAMW,QAAA,IAAM,CAAA,MAAA,GAAG,KAAK;AAkBxB;IAhBC,MAAM,GAAA;QACJ,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,eAAA,EACY,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAA,EAElC,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,SAAS,EAAA,EAClB,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAQ,CACJ,EACN,CAAC,CAAA,MAAM,qDACL,KAAK,EAAC,QAAQ,EACd,SAAS,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAA,YAAY,EAAC,EAAA,KAAK,EAAC,WAAW,EAAA,CAAG,GAAG,CAAA,CAAC,eAAe,EAAC,EAAA,KAAK,EAAC,WAAW,EAAG,CAAA,EACnG,OAAO,EAAE,MAAK,EAAG,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,EAAA,CAC9C,CACG;;;;;;;"}
1
+ {"version":3,"file":"peculiar-text-hider.entry.js","sources":["src/components/text-hider/text-hider.scss?tag=peculiar-text-hider&encapsulation=scoped","src/components/text-hider/text-hider.tsx"],"sourcesContent":[":host {\n display: flex;\n width: 100%;\n gap: calc(var(--pv-size-base) * 4);\n\n &[aria-expanded=\"true\"] {\n .content {\n white-space: initial;\n }\n }\n}\n\n.content {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 100%;\n}\n\n.action {\n flex-shrink: 0;\n margin-top: calc(var(--pv-size-base) * -1);\n}\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Host,\n h,\n State,\n} from '@stencil/core';\nimport { Button } from '../button';\nimport { ArrowBottomIcon, ArrowTopIcon } from '../icons';\n\n@Component({\n tag: 'peculiar-text-hider',\n styleUrl: 'text-hider.scss',\n scoped: true,\n})\nexport class TextHider {\n @State() opened = false;\n\n render() {\n return (\n <Host\n aria-expanded={String(this.opened)}\n >\n <div class=\"content\">\n <slot />\n </div>\n <Button\n class=\"action\"\n startIcon={this.opened ? <ArrowTopIcon color=\"secondary\" /> : <ArrowBottomIcon color=\"secondary\" />}\n onClick={() => { this.opened = !this.opened; }}\n />\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;;;;;;AAAA,MAAM,YAAY,GAAG,4ZAA4Z;;MCsBpa,SAAS,GAAA,MAAA;AALtB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAMW,QAAA,IAAM,CAAA,MAAA,GAAG,KAAK;AAkBxB;IAhBC,MAAM,GAAA;QACJ,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,eAAA,EACY,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAA,EAElC,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,SAAS,EAAA,EAClB,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAQ,CACJ,EACN,CAAC,CAAA,MAAM,qDACL,KAAK,EAAC,QAAQ,EACd,SAAS,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAA,YAAY,EAAC,EAAA,KAAK,EAAC,WAAW,EAAA,CAAG,GAAG,CAAA,CAAC,eAAe,EAAC,EAAA,KAAK,EAAC,WAAW,EAAG,CAAA,EACnG,OAAO,EAAE,MAAK,EAAG,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,EAAA,CAC9C,CACG;;;;;;;"}
@@ -1,5 +1,5 @@
1
- var __awaiter=this&&this.__awaiter||function(e,i,t,r){function c(e){return e instanceof t?e:new t((function(i){i(e)}))}return new(t||(t=Promise))((function(t,n){function a(e){try{o(r.next(e))}catch(e){n(e)}}function s(e){try{o(r["throw"](e))}catch(e){n(e)}}function o(e){e.done?t(e.value):c(e.value).then(a,s)}o((r=r.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var t={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,c,n,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(i){return o([e,i])}}function o(s){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(t=0)),t)try{if(r=1,c&&(n=s[0]&2?c["return"]:s[0]?c["throw"]||((n=c["return"])&&n.call(c),0):c.next)&&!(n=n.call(c,s[1])).done)return n;if(c=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;c=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(n=t.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){t.label=s[1];break}if(s[0]===6&&t.label<n[1]){t.label=n[1];n=s;break}if(n&&t.label<n[2]){t.label=n[2];t.ops.push(s);break}if(n[2])t.ops.pop();t.trys.pop();continue}s=i.call(e,t)}catch(e){s=[6,e];c=0}finally{r=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
1
+ var __awaiter=this&&this.__awaiter||function(e,i,t,r){function c(e){return e instanceof t?e:new t((function(i){i(e)}))}return new(t||(t=Promise))((function(t,n){function a(e){try{s(r.next(e))}catch(e){n(e)}}function o(e){try{s(r["throw"](e))}catch(e){n(e)}}function s(e){e.done?t(e.value):c(e.value).then(a,o)}s((r=r.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var t={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,c,n,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=o(0),a["throw"]=o(1),a["return"]=o(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(e){return function(i){return s([e,i])}}function s(o){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,o[0]&&(t=0)),t)try{if(r=1,c&&(n=o[0]&2?c["return"]:o[0]?c["throw"]||((n=c["return"])&&n.call(c),0):c.next)&&!(n=n.call(c,o[1])).done)return n;if(c=0,n)o=[o[0]&2,n.value];switch(o[0]){case 0:case 1:n=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;c=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(n=t.trys,n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){t.label=o[1];break}if(o[0]===6&&t.label<n[1]){t.label=n[1];n=o;break}if(n&&t.label<n[2]){t.label=n[2];t.ops.push(o);break}if(n[2])t.ops.pop();t.trys.pop();continue}o=i.call(e,t)}catch(e){o=[6,e];c=0}finally{r=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * © Peculiar Ventures https://peculiarventures.com/ - MIT License
4
- */import{p as promiseResolve,g as globalScripts,b as bootstrapLazy}from"./index-CwgZaF40.js";export{s as setNonce}from"./index-CwgZaF40.js";var patchBrowser=function(){var e=import.meta.url;var i={};if(e!==""){i.resourcesUrl=new URL(".",e).href}return promiseResolve(i)};patchBrowser().then((function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(i){switch(i.label){case 0:return[4,globalScripts()];case 1:i.sent();return[2,bootstrapLazy([["peculiar-text-hider",[[262,"peculiar-text-hider",{opened:[32]}]]],["peculiar-certificate-viewer",[[257,"peculiar-certificate-viewer",{certificate:[513],download:[516],authKeyIdParentLink:[513,"auth-key-id-parent-link"],authKeyIdSiblingsLink:[513,"auth-key-id-siblings-link"],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],issuerDnLink:[513,"issuer-dn-link"],mobileMediaQueryString:[1,"mobile-media-query-string"],mobileScreenView:[32],isDecodeInProcess:[32]},null,{certificate:["watchCertificateAndDecode"]}]]],["peculiar-attribute-certificate-viewer_5",[[257,"peculiar-certificate-chain-viewer",{certificates:[16],download:[516],selectedCertificateIndex:[32]}],[257,"peculiar-ssh-certificate-viewer",{certificate:[513],download:[516],mobileMediaQueryString:[1,"mobile-media-query-string"],mobileScreenView:[32],isDecodeInProcess:[32]},null,{certificate:["watchCertificateAndDecode"]}],[257,"peculiar-attribute-certificate-viewer",{certificate:[1],download:[4],authKeyIdParentLink:[513,"auth-key-id-parent-link"],authKeyIdSiblingsLink:[513,"auth-key-id-siblings-link"],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],mobileMediaQueryString:[1,"mobile-media-query-string"],mobileScreenView:[32],isDecodeInProcess:[32]},null,{certificate:["watchCertificateAndDecode"]}],[257,"peculiar-crl-viewer",{certificate:[513],download:[4],authKeyIdParentLink:[513,"auth-key-id-parent-link"],authKeyIdSiblingsLink:[513,"auth-key-id-siblings-link"],issuerDnLink:[513,"issuer-dn-link"],mobileMediaQueryString:[1,"mobile-media-query-string"],mobileScreenView:[32],isDecodeInProcess:[32]},null,{certificate:["watchCertificateAndDecode"]}],[257,"peculiar-csr-viewer",{certificate:[513],download:[4],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],mobileMediaQueryString:[1,"mobile-media-query-string"],mobileScreenView:[32],isDecodeInProcess:[32]},null,{certificate:["watchCertificateAndDecode"]}]]],["peculiar-certificate-decoder",[[257,"peculiar-certificate-decoder",{certificateExamples:[16,"certificate-examples"],certificateToDecode:[1,"certificate-to-decode"],certificateDecoded:[32]}]]],["peculiar-button-menu_3",[[258,"peculiar-button-menu",{groups:[16],open:[32]}],[257,"peculiar-circular-progress",{size:[2],width:[2]}],[257,"peculiar-highlight-words",{search:[1]}]]],["peculiar-certificates-viewer",[[257,"peculiar-certificates-viewer",{certificates:[16],filterWithSearch:[4,"filter-with-search"],highlightWithSearch:[4,"highlight-with-search"],mobileMediaQueryString:[1,"mobile-media-query-string"],mobileScreenView:[32],search:[32],certificatesDecoded:[32],expandedRow:[32],certificateSelectedForDetails:[32],isDecodeInProcess:[32]},null,{certificates:["watchCertificates"]}]]]],e)]}}))}))}));
4
+ */import{p as promiseResolve,g as globalScripts,b as bootstrapLazy}from"./index-Dpo1Lsuj.js";export{s as setNonce}from"./index-Dpo1Lsuj.js";var patchBrowser=function(){var e=import.meta.url;var i={};if(e!==""){i.resourcesUrl=new URL(".",e).href}return promiseResolve(i)};patchBrowser().then((function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(i){switch(i.label){case 0:return[4,globalScripts()];case 1:i.sent();return[2,bootstrapLazy([["peculiar-text-hider",[[262,"peculiar-text-hider",{opened:[32]}]]],["peculiar-certificate-viewer",[[257,"peculiar-certificate-viewer",{certificate:[513],download:[516],authKeyIdParentLink:[513,"auth-key-id-parent-link"],authKeyIdSiblingsLink:[513,"auth-key-id-siblings-link"],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],issuerDnLink:[513,"issuer-dn-link"],mobileMediaQueryString:[1,"mobile-media-query-string"],mobileScreenView:[32],isDecodeInProcess:[32]},null,{certificate:["watchCertificateAndDecode"]}]]],["peculiar-attribute-certificate-viewer_5",[[257,"peculiar-certificate-chain-viewer",{certificates:[16],download:[516],selectedCertificateIndex:[32]}],[257,"peculiar-ssh-certificate-viewer",{certificate:[513],download:[516],mobileMediaQueryString:[1,"mobile-media-query-string"],mobileScreenView:[32],isDecodeInProcess:[32]},null,{certificate:["watchCertificateAndDecode"]}],[257,"peculiar-attribute-certificate-viewer",{certificate:[1],download:[4],authKeyIdParentLink:[513,"auth-key-id-parent-link"],authKeyIdSiblingsLink:[513,"auth-key-id-siblings-link"],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],mobileMediaQueryString:[1,"mobile-media-query-string"],mobileScreenView:[32],isDecodeInProcess:[32]},null,{certificate:["watchCertificateAndDecode"]}],[257,"peculiar-crl-viewer",{certificate:[513],download:[4],authKeyIdParentLink:[513,"auth-key-id-parent-link"],authKeyIdSiblingsLink:[513,"auth-key-id-siblings-link"],issuerDnLink:[513,"issuer-dn-link"],mobileMediaQueryString:[1,"mobile-media-query-string"],mobileScreenView:[32],isDecodeInProcess:[32]},null,{certificate:["watchCertificateAndDecode"]}],[257,"peculiar-csr-viewer",{certificate:[513],download:[4],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],mobileMediaQueryString:[1,"mobile-media-query-string"],mobileScreenView:[32],isDecodeInProcess:[32]},null,{certificate:["watchCertificateAndDecode"]}]]],["peculiar-certificate-decoder",[[257,"peculiar-certificate-decoder",{certificateExamples:[16],certificateToDecode:[1,"certificate-to-decode"],certificateDecoded:[32]}]]],["peculiar-button-menu_3",[[258,"peculiar-button-menu",{groups:[16],open:[32]}],[257,"peculiar-circular-progress",{size:[2],width:[2]}],[257,"peculiar-highlight-words",{search:[1]}]]],["peculiar-certificates-viewer",[[257,"peculiar-certificates-viewer",{certificates:[16],filterWithSearch:[4,"filter-with-search"],highlightWithSearch:[4,"highlight-with-search"],mobileMediaQueryString:[1,"mobile-media-query-string"],mobileScreenView:[32],search:[32],certificatesDecoded:[32],expandedRow:[32],certificateSelectedForDetails:[32],isDecodeInProcess:[32]},null,{certificates:["watchCertificates"]}]]]],e)]}}))}))}));
5
5
  //# sourceMappingURL=peculiar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"peculiar.js","sources":["../../node_modules/.pnpm/@stencil+core@4.36.1/node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.36.1 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, H, promiseResolve, win } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"names":[],"mappings":";;;;;;AAAA;AACA;AACA;;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG;AACpC,EAAE,MAAM,IAAI,GAAiE,EAAE;AAC/E,EAAE,IAAI,UAAU,KAAK,EAAE,EAAE;AACzB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI;AACrD;AACA,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;AAC7B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE;AACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D,CAAC,CAAC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"peculiar.js","sources":["../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.38.3 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, H, promiseResolve, win } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"names":[],"mappings":";;;;;;AAAA;AACA;AACA;;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG;AACpC,EAAE,MAAM,IAAI,GAAiE,EAAE;AAC/E,EAAE,IAAI,UAAU,KAAK,EAAE,EAAE;AACzB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI;AACrD;AACA,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;AAC7B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE;AACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D,CAAC,CAAC","x_google_ignoreList":[0]}
@@ -1,7 +1,7 @@
1
- var __extends=this&&this.__extends||function(){var e=function(t,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]};return e(t,a)};return function(t,a){if(typeof a!=="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(t,a);function i(){this.constructor=t}t.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)}}();var __awaiter=this&&this.__awaiter||function(e,t,a,i){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function o(e){try{u(i["throw"](e))}catch(e){r(e)}}function u(e){e.done?a(e.value):n(e.value).then(s,o)}u((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,n,r,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return u([e,t])}}function u(o){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(a=0)),a)try{if(i=1,n&&(r=o[0]&2?n["return"]:o[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;if(n=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:a.label++;return{value:o[1],done:false};case 5:a.label++;n=o[1];o=[0];continue;case 7:o=a.ops.pop();a.trys.pop();continue;default:if(!(r=a.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){a=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(o[0]===6&&a.label<r[1]){a.label=r[1];r=o;break}if(r&&a.label<r[2]){a.label=r[2];a.ops.push(o);break}if(r[2])a.ops.pop();a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e];n=0}finally{i=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var _a;
1
+ var __extends=this&&this.__extends||function(){var e=function(t,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]};return e(t,a)};return function(t,a){if(typeof a!=="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(t,a);function i(){this.constructor=t}t.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)}}();var __awaiter=this&&this.__awaiter||function(e,t,a,i){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function o(e){try{u(i["throw"](e))}catch(e){r(e)}}function u(e){e.done?a(e.value):n(e.value).then(s,o)}u((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,n,r,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=o(0),s["throw"]=o(1),s["return"]=o(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return u([e,t])}}function u(o){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(a=0)),a)try{if(i=1,n&&(r=o[0]&2?n["return"]:o[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;if(n=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:a.label++;return{value:o[1],done:false};case 5:a.label++;n=o[1];o=[0];continue;case 7:o=a.ops.pop();a.trys.pop();continue;default:if(!(r=a.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){a=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(o[0]===6&&a.label<r[1]){a.label=r[1];r=o;break}if(r&&a.label<r[2]){a.label=r[2];a.ops.push(o);break}if(r[2])a.ops.pop();a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e];n=0}finally{i=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var _a;
2
2
  /*!
3
3
  * © Peculiar Ventures https://peculiarventures.com/ - MIT License
4
- */import{A as AsnData,p as Attribute$1,q as AsnParser,r as PrivateKeyPossessionStatement,s as ExtensionRequest,U as UnstructuredName,t as ChallengePassword,V as ValuationRanking,I as InsuranceValue,W as WebGDPR,u as ActivityDescription,T as TypeRelationship,v as DomainNameTechnicalOperator,w as DomainNameOwner,x as DomainNameLegalRepresentative,y as DomainNameBeneficiary,b as buildExports,z as id_at_statementOfPossession,B as id_pkcs9_at_extensionRequest,F as id_pkcs9_at_unstructuredName,G as id_pkcs9_at_challengePassword,H as id_ValuationRanking,J as id_InsuranceValue,K as id_WebGDPR,L as id_ActivityDescription,M as id_TypeRelationship,O as id_DomainNameTechnicalOperator,Q as id_DomainNameOwner,S as id_DomainNameLegalRepresentative,X as id_DomainNameBeneficiary,c as certificateRawToBuffer,Y as CertificationRequest,P as PemConverter,N as Name,i as id_ecPublicKey,e as AsnConvert,E as ECParameters,f as id_rsaEncryption,R as RSAPublicKey,m as getCertificateThumbprint,D as Download}from"./ssh_certificate-rmToyzuK.js";
4
+ */import{A as AsnData,p as Attribute$1,q as AsnParser,r as PrivateKeyPossessionStatement,s as ExtensionRequest,U as UnstructuredName,t as ChallengePassword,V as ValuationRanking,I as InsuranceValue,W as WebGDPR,u as ActivityDescription,T as TypeRelationship,v as DomainNameTechnicalOperator,w as DomainNameOwner,x as DomainNameLegalRepresentative,y as DomainNameBeneficiary,b as buildExports,z as id_at_statementOfPossession,B as id_pkcs9_at_extensionRequest,F as id_pkcs9_at_unstructuredName,G as id_pkcs9_at_challengePassword,H as id_ValuationRanking,J as id_InsuranceValue,K as id_WebGDPR,L as id_ActivityDescription,M as id_TypeRelationship,O as id_DomainNameTechnicalOperator,Q as id_DomainNameOwner,S as id_DomainNameLegalRepresentative,X as id_DomainNameBeneficiary,c as certificateRawToBuffer,Y as CertificationRequest,P as PemConverter,N as Name,i as id_ecPublicKey,e as AsnConvert,E as ECParameters,f as id_rsaEncryption,R as RSAPublicKey,m as getCertificateThumbprint,D as Download}from"./ssh_certificate-CmOVFH_Z.js";
5
5
  /**
6
6
  * @license
7
7
  * Copyright (c) Peculiar Ventures, LLC.
@@ -16,4 +16,4 @@ var __extends=this&&this.__extends||function(){var e=function(t,a){e=Object.setP
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
18
  */var Pkcs10CertificateRequest=function(e){__extends(t,e);function t(t){var a=e.call(this,certificateRawToBuffer(t),CertificationRequest)||this;a.thumbprints={};a.type="PKCS#10 Certificate Request";a.tag=PemConverter.CertificateRequestTag;var i=a.asn.certificationRequestInfo;a.subject=new Name(i.subject).toJSON();a.version=i.version;return a}Object.defineProperty(t.prototype,"publicKey",{get:function(){var e=this.asn.certificationRequestInfo.subjectPKInfo,t=e.subjectPublicKey,a=e.algorithm;var i;if(a.algorithm===id_ecPublicKey&&a.parameters){i=AsnConvert.parse(a.parameters,ECParameters)}if(a.algorithm===id_rsaEncryption){i=AsnConvert.parse(t,RSAPublicKey)}var n=AsnConvert.serialize(this.asn.certificationRequestInfo.subjectPKInfo);return{params:i,value:n,algorithm:a.algorithm}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"signature",{get:function(){var e=this.asn,t=e.signature,a=e.signatureAlgorithm;return{value:t,algorithm:a.algorithm}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"commonName",{get:function(){if(!this.subject){return""}for(var e=0;e<this.subject.length;e+=1){var t=this.subject[e];if(t.shortName==="CN"||t.shortName==="E"||t.shortName==="O"){return t.value}}return""},enumerable:false,configurable:true});t.prototype.getThumbprint=function(){return __awaiter(this,arguments,void 0,(function(e){var t,a;if(e===void 0){e="SHA-1"}return __generator(this,(function(i){switch(i.label){case 0:i.trys.push([0,2,,3]);return[4,getCertificateThumbprint(e,this.raw)];case 1:t=i.sent();if(t){this.thumbprints[e]=buildExports.Convert.ToHex(t)}return[3,3];case 2:a=i.sent();console.error("Error thumbprint get:",a);return[3,3];case 3:return[2]}}))}))};t.prototype.parseAttributes=function(){var e=this.asn.certificationRequestInfo;if(e.attributes){this.attributes=e.attributes.map((function(e){return new Attribute(AsnConvert.serialize(e))}))}};t.prototype.toString=function(e){if(e===void 0){e="pem"}switch(e){case"pem":return PemConverter.encode(this.raw,this.tag);case"base64url":return buildExports.Convert.ToBase64Url(this.raw);default:return buildExports.Convert.ToBase64(this.raw)}};t.prototype.downloadAsPEM=function(e){Download.csr.asPEM(this.toString("pem"),e||this.commonName)};t.prototype.downloadAsDER=function(e){Download.csr.asDER(this.raw,e||this.commonName)};return t}(AsnData);export{Attribute as A,Pkcs10CertificateRequest as P};
19
- //# sourceMappingURL=pkcs10_certificate_request-HIoLPXGQ.js.map
19
+ //# sourceMappingURL=pkcs10_certificate_request-Crr9FABo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pkcs10_certificate_request-HIoLPXGQ.js","sources":["src/crypto/attribute.ts","src/crypto/pkcs10_certificate_request.ts"],"sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Convert } from 'pvtsutils';\nimport { AsnParser } from '@peculiar/asn1-schema';\nimport { Attribute as AsnAttribute } from '@peculiar/asn1-x509';\nimport {\n id_DomainNameBeneficiary,\n DomainNameBeneficiary,\n\n id_DomainNameLegalRepresentative,\n DomainNameLegalRepresentative,\n\n id_DomainNameOwner,\n DomainNameOwner,\n\n id_DomainNameTechnicalOperator,\n DomainNameTechnicalOperator,\n\n id_TypeRelationship,\n TypeRelationship,\n\n id_ActivityDescription,\n ActivityDescription,\n\n id_WebGDPR,\n WebGDPR,\n\n id_InsuranceValue,\n InsuranceValue,\n\n id_ValuationRanking,\n ValuationRanking,\n} from '@peculiar/asn1-ntqwac';\nimport {\n id_pkcs9_at_extensionRequest,\n ExtensionRequest,\n\n id_pkcs9_at_challengePassword,\n ChallengePassword,\n\n id_pkcs9_at_unstructuredName,\n UnstructuredName,\n} from '@peculiar/asn1-pkcs9';\nimport {\n id_at_statementOfPossession,\n PrivateKeyPossessionStatement,\n} from '@peculiar/asn1-private-key-stmt';\nimport { AsnData } from './asn_data';\n\nconst attributesParsers = {\n [id_DomainNameBeneficiary]: DomainNameBeneficiary,\n [id_DomainNameLegalRepresentative]: DomainNameLegalRepresentative,\n [id_DomainNameOwner]: DomainNameOwner,\n [id_DomainNameTechnicalOperator]: DomainNameTechnicalOperator,\n [id_TypeRelationship]: TypeRelationship,\n [id_ActivityDescription]: ActivityDescription,\n [id_WebGDPR]: WebGDPR,\n [id_InsuranceValue]: InsuranceValue,\n [id_ValuationRanking]: ValuationRanking,\n [id_pkcs9_at_challengePassword]: ChallengePassword,\n [id_pkcs9_at_unstructuredName]: UnstructuredName,\n [id_pkcs9_at_extensionRequest]: ExtensionRequest,\n [id_at_statementOfPossession]: PrivateKeyPossessionStatement,\n};\n\ntype TAttributeKeys = keyof typeof attributesParsers;\n\nexport type TAttributeValue = InstanceType<typeof attributesParsers[TAttributeKeys]> | string;\n\nexport class Attribute<T extends TAttributeValue> extends AsnData<AsnAttribute> {\n public readonly value: T;\n\n private getAsnExtnValue() {\n return this.asn.values[0];\n }\n\n constructor(raw: BufferSource) {\n super(raw, AsnAttribute);\n\n const asnExtnValue = this.getAsnExtnValue();\n\n try {\n const target = attributesParsers[this.asn.type];\n\n if (target) {\n this.value = AsnParser.parse<T>(asnExtnValue, target);\n } else {\n console.warn(`Didn't detect parser for \"${this.asn.type}\" attribute.`);\n\n this.value = Convert.ToHex(asnExtnValue) as T;\n }\n } catch (error) {\n console.error(`Error parse \"${this.asn.type}\" attribute:`, error.message);\n\n this.value = Convert.ToHex(asnExtnValue) as T;\n }\n }\n}\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { AsnConvert } from '@peculiar/asn1-schema';\nimport { ECParameters, id_ecPublicKey } from '@peculiar/asn1-ecc';\nimport { id_rsaEncryption, RSAPublicKey } from '@peculiar/asn1-rsa';\nimport { CertificationRequest } from '@peculiar/asn1-csr';\nimport { Convert } from 'pvtsutils';\nimport { Download } from '../utils';\nimport { AsnData } from './asn_data';\nimport { Name, INameJSON } from './name';\nimport { Attribute, TAttributeValue } from './attribute';\nimport { PemConverter } from './pem_converter';\nimport {\n certificateRawToBuffer,\n getCertificateThumbprint,\n} from './utils';\n\ninterface ISignature {\n algorithm: string;\n value: BufferSource;\n}\n\ninterface IPublicKey {\n algorithm: string;\n value: BufferSource;\n params?: ECParameters | RSAPublicKey;\n}\n\nexport class Pkcs10CertificateRequest extends AsnData<CertificationRequest> {\n public readonly subject: INameJSON[];\n\n public readonly version: number;\n\n public attributes: Attribute<TAttributeValue>[];\n\n public thumbprints: Record<string, string> = {};\n\n public readonly type = 'PKCS#10 Certificate Request';\n\n public readonly tag = PemConverter.CertificateRequestTag;\n\n constructor(raw: string) {\n super(certificateRawToBuffer(raw), CertificationRequest);\n\n const { certificationRequestInfo } = this.asn;\n\n this.subject = new Name(certificationRequestInfo.subject).toJSON();\n this.version = certificationRequestInfo.version;\n }\n\n public get publicKey(): IPublicKey {\n const { subjectPublicKey, algorithm } = this.asn.certificationRequestInfo.subjectPKInfo;\n let params;\n\n if (algorithm.algorithm === id_ecPublicKey && algorithm.parameters) {\n params = AsnConvert.parse(algorithm.parameters, ECParameters);\n }\n\n if (algorithm.algorithm === id_rsaEncryption) {\n params = AsnConvert.parse(subjectPublicKey, RSAPublicKey);\n }\n\n const spki = AsnConvert.serialize(this.asn.certificationRequestInfo.subjectPKInfo);\n\n return {\n params,\n value: spki,\n algorithm: algorithm.algorithm,\n };\n }\n\n public get signature(): ISignature {\n const { signature, signatureAlgorithm } = this.asn;\n\n return {\n value: signature,\n algorithm: signatureAlgorithm.algorithm,\n };\n }\n\n public get commonName(): string {\n if (!this.subject) {\n return '';\n }\n\n for (let i = 0; i < this.subject.length; i += 1) {\n const name = this.subject[i];\n\n if (name.shortName === 'CN' || name.shortName === 'E' || name.shortName === 'O') {\n return name.value;\n }\n }\n\n return '';\n }\n\n public async getThumbprint(\n algorithm = 'SHA-1',\n ): Promise<void> {\n try {\n const thumbprint = await getCertificateThumbprint(algorithm, this.raw);\n\n if (thumbprint) {\n this.thumbprints[algorithm] = Convert.ToHex(thumbprint);\n }\n } catch (error) {\n console.error('Error thumbprint get:', error);\n }\n }\n\n public parseAttributes() {\n const { certificationRequestInfo } = this.asn;\n\n if (certificationRequestInfo.attributes) {\n this.attributes = certificationRequestInfo.attributes\n .map((e) => new Attribute(AsnConvert.serialize(e)));\n }\n }\n\n public toString(format: 'pem' | 'base64' | 'base64url' = 'pem'): string {\n switch (format) {\n case 'pem':\n return PemConverter.encode(this.raw, this.tag);\n case 'base64url':\n return Convert.ToBase64Url(this.raw);\n default:\n return Convert.ToBase64(this.raw);\n }\n }\n\n public downloadAsPEM(name?: string) {\n Download.csr.asPEM(\n this.toString('pem'),\n name || this.commonName,\n );\n }\n\n public downloadAsDER(name?: string) {\n Download.csr.asDER(\n this.raw,\n name || this.commonName,\n );\n }\n}\n"],"names":["AsnAttrib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AE;AACvC,YAAA,IAAI,CAAC,UAAU,GAAG,wBAAwB,CAAC;AACxC,iBAAA,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;;;IAIlD,QAAQ,CAAC,SAAyC,KAAK,EAAA;QAC5D,QAAQ,MAAM;AACZ,YAAA,KAAK,KAAK;AACR,gBAAA,OAAO,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC;AAChD,YAAA,KAAK,WAAW;gBACd,OAAOA,oBAAO,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC;AACtC,YAAA;gBACE,OAAOA,oBAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC;;;AAIhC,IAAA,aAAa,CAAC,IAAa,EAAA;AAChC,QAAA,QAAQ,CAAC,GAAG,CAAC,KAAK,CAChB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EACpB,IAAI,IAAI,IAAI,CAAC,UAAU,CACxB;;AAGI,IAAA,aAAa,CAAC,IAAa,EAAA;AAChC,QAAA,QAAQ,CAAC,GAAG,CAAC,KAAK,CAChB,IAAI,CAAC,GAAG,EACR,IAAI,IAAI,IAAI,CAAC,UAAU,CACxB;;AAEJ;;;;"}
1
+ {"version":3,"file":"pkcs10_certificate_request-Crr9FABo.js","sources":["src/crypto/attribute.ts","src/crypto/pkcs10_certificate_request.ts"],"sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Convert } from 'pvtsutils';\nimport { AsnParser } from '@peculiar/asn1-schema';\nimport { Attribute as AsnAttribute } from '@peculiar/asn1-x509';\nimport {\n id_DomainNameBeneficiary,\n DomainNameBeneficiary,\n\n id_DomainNameLegalRepresentative,\n DomainNameLegalRepresentative,\n\n id_DomainNameOwner,\n DomainNameOwner,\n\n id_DomainNameTechnicalOperator,\n DomainNameTechnicalOperator,\n\n id_TypeRelationship,\n TypeRelationship,\n\n id_ActivityDescription,\n ActivityDescription,\n\n id_WebGDPR,\n WebGDPR,\n\n id_InsuranceValue,\n InsuranceValue,\n\n id_ValuationRanking,\n ValuationRanking,\n} from '@peculiar/asn1-ntqwac';\nimport {\n id_pkcs9_at_extensionRequest,\n ExtensionRequest,\n\n id_pkcs9_at_challengePassword,\n ChallengePassword,\n\n id_pkcs9_at_unstructuredName,\n UnstructuredName,\n} from '@peculiar/asn1-pkcs9';\nimport {\n id_at_statementOfPossession,\n PrivateKeyPossessionStatement,\n} from '@peculiar/asn1-private-key-stmt';\nimport { AsnData } from './asn_data';\n\nconst attributesParsers = {\n [id_DomainNameBeneficiary]: DomainNameBeneficiary,\n [id_DomainNameLegalRepresentative]: DomainNameLegalRepresentative,\n [id_DomainNameOwner]: DomainNameOwner,\n [id_DomainNameTechnicalOperator]: DomainNameTechnicalOperator,\n [id_TypeRelationship]: TypeRelationship,\n [id_ActivityDescription]: ActivityDescription,\n [id_WebGDPR]: WebGDPR,\n [id_InsuranceValue]: InsuranceValue,\n [id_ValuationRanking]: ValuationRanking,\n [id_pkcs9_at_challengePassword]: ChallengePassword,\n [id_pkcs9_at_unstructuredName]: UnstructuredName,\n [id_pkcs9_at_extensionRequest]: ExtensionRequest,\n [id_at_statementOfPossession]: PrivateKeyPossessionStatement,\n};\n\ntype TAttributeKeys = keyof typeof attributesParsers;\n\nexport type TAttributeValue = InstanceType<typeof attributesParsers[TAttributeKeys]> | string;\n\nexport class Attribute<T extends TAttributeValue> extends AsnData<AsnAttribute> {\n public readonly value: T;\n\n private getAsnExtnValue() {\n return this.asn.values[0];\n }\n\n constructor(raw: BufferSource) {\n super(raw, AsnAttribute);\n\n const asnExtnValue = this.getAsnExtnValue();\n\n try {\n const target = attributesParsers[this.asn.type];\n\n if (target) {\n this.value = AsnParser.parse<T>(asnExtnValue, target);\n } else {\n console.warn(`Didn't detect parser for \"${this.asn.type}\" attribute.`);\n\n this.value = Convert.ToHex(asnExtnValue) as T;\n }\n } catch (error) {\n console.error(`Error parse \"${this.asn.type}\" attribute:`, error.message);\n\n this.value = Convert.ToHex(asnExtnValue) as T;\n }\n }\n}\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { AsnConvert } from '@peculiar/asn1-schema';\nimport { ECParameters, id_ecPublicKey } from '@peculiar/asn1-ecc';\nimport { id_rsaEncryption, RSAPublicKey } from '@peculiar/asn1-rsa';\nimport { CertificationRequest } from '@peculiar/asn1-csr';\nimport { Convert } from 'pvtsutils';\nimport { Download } from '../utils';\nimport { AsnData } from './asn_data';\nimport { Name, INameJSON } from './name';\nimport { Attribute, TAttributeValue } from './attribute';\nimport { PemConverter } from './pem_converter';\nimport {\n certificateRawToBuffer,\n getCertificateThumbprint,\n} from './utils';\n\ninterface ISignature {\n algorithm: string;\n value: BufferSource;\n}\n\ninterface IPublicKey {\n algorithm: string;\n value: BufferSource;\n params?: ECParameters | RSAPublicKey;\n}\n\nexport class Pkcs10CertificateRequest extends AsnData<CertificationRequest> {\n public readonly subject: INameJSON[];\n\n public readonly version: number;\n\n public attributes: Attribute<TAttributeValue>[];\n\n public thumbprints: Record<string, string> = {};\n\n public readonly type = 'PKCS#10 Certificate Request';\n\n public readonly tag = PemConverter.CertificateRequestTag;\n\n constructor(raw: string) {\n super(certificateRawToBuffer(raw), CertificationRequest);\n\n const { certificationRequestInfo } = this.asn;\n\n this.subject = new Name(certificationRequestInfo.subject).toJSON();\n this.version = certificationRequestInfo.version;\n }\n\n public get publicKey(): IPublicKey {\n const { subjectPublicKey, algorithm } = this.asn.certificationRequestInfo.subjectPKInfo;\n let params;\n\n if (algorithm.algorithm === id_ecPublicKey && algorithm.parameters) {\n params = AsnConvert.parse(algorithm.parameters, ECParameters);\n }\n\n if (algorithm.algorithm === id_rsaEncryption) {\n params = AsnConvert.parse(subjectPublicKey, RSAPublicKey);\n }\n\n const spki = AsnConvert.serialize(this.asn.certificationRequestInfo.subjectPKInfo);\n\n return {\n params,\n value: spki,\n algorithm: algorithm.algorithm,\n };\n }\n\n public get signature(): ISignature {\n const { signature, signatureAlgorithm } = this.asn;\n\n return {\n value: signature,\n algorithm: signatureAlgorithm.algorithm,\n };\n }\n\n public get commonName(): string {\n if (!this.subject) {\n return '';\n }\n\n for (let i = 0; i < this.subject.length; i += 1) {\n const name = this.subject[i];\n\n if (name.shortName === 'CN' || name.shortName === 'E' || name.shortName === 'O') {\n return name.value;\n }\n }\n\n return '';\n }\n\n public async getThumbprint(\n algorithm = 'SHA-1',\n ): Promise<void> {\n try {\n const thumbprint = await getCertificateThumbprint(algorithm, this.raw);\n\n if (thumbprint) {\n this.thumbprints[algorithm] = Convert.ToHex(thumbprint);\n }\n } catch (error) {\n console.error('Error thumbprint get:', error);\n }\n }\n\n public parseAttributes() {\n const { certificationRequestInfo } = this.asn;\n\n if (certificationRequestInfo.attributes) {\n this.attributes = certificationRequestInfo.attributes\n .map((e) => new Attribute(AsnConvert.serialize(e)));\n }\n }\n\n public toString(format: 'pem' | 'base64' | 'base64url' = 'pem'): string {\n switch (format) {\n case 'pem':\n return PemConverter.encode(this.raw, this.tag);\n case 'base64url':\n return Convert.ToBase64Url(this.raw);\n default:\n return Convert.ToBase64(this.raw);\n }\n }\n\n public downloadAsPEM(name?: string) {\n Download.csr.asPEM(\n this.toString('pem'),\n name || this.commonName,\n );\n }\n\n public downloadAsDER(name?: string) {\n Download.csr.asDER(\n this.raw,\n name || this.commonName,\n );\n }\n}\n"],"names":["AsnAttribute","Convert"],"mappings":";;;;;AAAA;;;;;;AAMG;AAiDH,MAAM,iBAAiB,GAAG;IACxB,CAAC,wBAAwB,GAAG,qBAAqB;IACjD,CAAC,gCAAgC,GAAG,6BAA6B;IACjE,CAAC,kBAAkB,GAAG,eAAe;IACrC,CAAC,8BAA8B,GAAG,2B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