@peculiar/certificates-viewer 4.6.0 → 4.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/attribute-certificate-viewer.js +2 -2
- package/components/attribute-certificate-viewer.js.map +1 -1
- package/components/button-menu.js +1 -1
- package/components/button.js +3 -1
- package/components/button.js.map +1 -1
- package/components/certificate-chain-viewer.js +2 -2
- package/components/certificate-chain-viewer.js.map +1 -1
- package/components/certificate-viewer.js +2 -2
- package/components/certificate-viewer.js.map +1 -1
- package/components/circular-progress.js +1 -1
- package/components/crl-viewer.js +2 -2
- package/components/crl-viewer.js.map +1 -1
- package/components/csr-viewer.js +2 -2
- package/components/csr-viewer.js.map +1 -1
- package/components/download.js +3286 -3079
- package/components/download.js.map +1 -1
- package/components/highlight-words.js +1 -1
- package/components/index.js +1 -1
- package/components/miscellaneous.js.map +1 -1
- package/components/peculiar-certificate-decoder.js +2 -2
- package/components/peculiar-certificate-decoder.js.map +1 -1
- package/components/peculiar-certificates-viewer.js +1 -1
- package/components/peculiar-text-hider.js +1 -1
- package/dist/cjs/{actions-Dl4HXXlI.js → actions-ByC9jQU-.js} +3 -3
- package/dist/cjs/{actions-Dl4HXXlI.js.map → actions-ByC9jQU-.js.map} +1 -1
- package/dist/cjs/{arrow_top-DBMPHVlB.js → arrow_top-Cw9KN115.js} +3 -3
- package/dist/cjs/{arrow_top-DBMPHVlB.js.map → arrow_top-Cw9KN115.js.map} +1 -1
- package/dist/cjs/{button-B0CduHSE.js → button-C8EWG_-r.js} +6 -4
- package/dist/cjs/button-C8EWG_-r.js.map +1 -0
- package/dist/cjs/{certification_request-DaJSDP3R.js → certification_request-CxHe71zR.js} +3288 -3081
- package/dist/cjs/certification_request-CxHe71zR.js.map +1 -0
- package/dist/cjs/{cross-pi7K0cHC.js → cross-3DqhA0G_.js} +3 -3
- package/dist/cjs/{cross-pi7K0cHC.js.map → cross-3DqhA0G_.js.map} +1 -1
- package/dist/cjs/{download-D9skkVoT.js → download-DQP0KR4o.js} +3 -3
- package/dist/cjs/{download-D9skkVoT.js.map → download-DQP0KR4o.js.map} +1 -1
- package/dist/cjs/{index-BO3rFndV.js → index-uHmGhObe.js} +430 -157
- package/dist/cjs/index-uHmGhObe.js.map +1 -0
- package/dist/cjs/index.cjs.js +9 -9
- package/dist/cjs/{link-kgbgxxVh.js → link-Cgh8wnbs.js} +4 -4
- package/dist/cjs/{link-kgbgxxVh.js.map → link-Cgh8wnbs.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/{miscellaneous-Ce9aGjKB.js → miscellaneous-DeBEwLDy.js} +7 -7
- package/dist/cjs/miscellaneous-DeBEwLDy.js.map +1 -0
- package/dist/cjs/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.entry.cjs.js.map +1 -1
- package/dist/cjs/peculiar-attribute-certificate-viewer_4.cjs.entry.js +12 -12
- package/dist/cjs/peculiar-attribute-certificate-viewer_4.cjs.entry.js.map +1 -1
- package/dist/cjs/peculiar-button-menu_3.cjs.entry.js +3 -3
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +6 -6
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js.map +1 -1
- package/dist/cjs/peculiar-certificate-decoder.entry.cjs.js.map +1 -1
- package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +8 -8
- package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js.map +1 -1
- package/dist/cjs/peculiar-certificate-viewer.entry.cjs.js.map +1 -1
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +7 -7
- package/dist/cjs/peculiar-text-hider.cjs.entry.js +3 -3
- package/dist/cjs/peculiar.cjs.js +4 -5
- package/dist/cjs/peculiar.cjs.js.map +1 -1
- package/dist/cjs/{pkcs10_certificate_request-D13Ssi7Z.js → pkcs10_certificate_request-CHMDxe2Z.js} +3 -3
- package/dist/cjs/{pkcs10_certificate_request-D13Ssi7Z.js.map → pkcs10_certificate_request-CHMDxe2Z.js.map} +1 -1
- package/dist/cjs/{x509_certificate-h5GZArG6.js → x509_certificate-CzplJQ0X.js} +3 -3
- package/dist/cjs/{x509_certificate-h5GZArG6.js.map → x509_certificate-CzplJQ0X.js.map} +1 -1
- package/dist/cjs/{x509_crl-CDPt6P1z.js → x509_crl-B7kFbLDV.js} +4 -4
- package/dist/cjs/{x509_crl-CDPt6P1z.js.map → x509_crl-B7kFbLDV.js.map} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +7 -7
- package/dist/collection/components/button-menu/button-menu.js +1 -0
- package/dist/collection/components/button-menu/button-menu.js.map +1 -1
- package/dist/collection/components/certificate-chain-viewer/certificate-chain-viewer.css +3 -0
- package/dist/collection/components/certificate-chain-viewer/certificate-chain-viewer.js +2 -1
- package/dist/collection/components/certificate-chain-viewer/certificate-chain-viewer.js.map +1 -1
- package/dist/collection/components/certificate-decoder/certificate-decoder.js +2 -1
- package/dist/collection/components/certificate-decoder/certificate-decoder.js.map +1 -1
- package/dist/collection/components/certificate-viewer/certificate-viewer.css +3 -0
- package/dist/collection/components/certificate-viewer/certificate-viewer.js +8 -8
- package/dist/collection/components/certificates-viewer/certificates-viewer.js +4 -3
- package/dist/collection/components/certificates-viewer/certificates-viewer.js.map +1 -1
- package/dist/collection/components/circular-progress/circular-progress.js +2 -2
- package/dist/collection/components/crl-viewer/crl-viewer.js +6 -6
- package/dist/collection/components/csr-viewer/csr-viewer.js +5 -5
- package/dist/collection/components/highlight-words/highlight-words.js +1 -1
- package/dist/collection/components/typography/typography.js +1 -1
- package/dist/collection/components/typography/typography.js.map +1 -1
- package/dist/esm/{actions-DzoPRObK.js → actions-BOY2Tl0T.js} +3 -3
- package/dist/esm/{actions-DzoPRObK.js.map → actions-BOY2Tl0T.js.map} +1 -1
- package/dist/esm/{arrow_top-CF9pv-tQ.js → arrow_top-DL0RWe4n.js} +3 -3
- package/dist/{esm-es5/arrow_top-CF9pv-tQ.js.map → esm/arrow_top-DL0RWe4n.js.map} +1 -1
- package/dist/esm/{button-Do0R_8PZ.js → button-Bbh7MwG6.js} +6 -4
- package/dist/esm/button-Bbh7MwG6.js.map +1 -0
- package/dist/esm/{certification_request-DazysL_f.js → certification_request-PeMaLTUD.js} +3288 -3081
- package/dist/esm/certification_request-PeMaLTUD.js.map +1 -0
- package/dist/esm/{cross-DdCuR1F2.js → cross-G84H_-QL.js} +3 -3
- package/dist/{esm-es5/cross-DdCuR1F2.js.map → esm/cross-G84H_-QL.js.map} +1 -1
- package/dist/esm/{download-Cqfc-Sxf.js → download-ykcxSgxU.js} +3 -3
- package/dist/esm/{download-Cqfc-Sxf.js.map → download-ykcxSgxU.js.map} +1 -1
- package/dist/esm/{index-DDDrq3In.js → index-CwgZaF40.js} +430 -158
- package/dist/esm/index-CwgZaF40.js.map +1 -0
- package/dist/esm/index.js +9 -9
- package/dist/esm/{link-qg3yKAoS.js → link-CGURvKy1.js} +4 -4
- package/dist/esm/{link-qg3yKAoS.js.map → link-CGURvKy1.js.map} +1 -1
- package/dist/esm/loader.js +3 -4
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/{miscellaneous-BJPX0Hs_.js → miscellaneous-bVeJt-6m.js} +7 -7
- package/dist/esm/miscellaneous-bVeJt-6m.js.map +1 -0
- package/dist/esm/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.entry.js.map +1 -1
- package/dist/esm/peculiar-attribute-certificate-viewer_4.entry.js +12 -12
- package/dist/esm/peculiar-attribute-certificate-viewer_4.entry.js.map +1 -1
- package/dist/esm/peculiar-button-menu_3.entry.js +3 -3
- package/dist/esm/peculiar-certificate-decoder.entry.js +6 -6
- package/dist/esm/peculiar-certificate-decoder.entry.js.map +1 -1
- package/dist/esm/peculiar-certificate-viewer.entry.js +8 -8
- package/dist/esm/peculiar-certificate-viewer.entry.js.map +1 -1
- package/dist/esm/peculiar-certificates-viewer.entry.js +7 -7
- package/dist/esm/peculiar-text-hider.entry.js +3 -3
- package/dist/esm/peculiar.js +4 -5
- package/dist/esm/peculiar.js.map +1 -1
- package/dist/esm/{pkcs10_certificate_request-SQcYKma2.js → pkcs10_certificate_request-CK8FH47X.js} +3 -3
- package/dist/{esm-es5/pkcs10_certificate_request-SQcYKma2.js.map → esm/pkcs10_certificate_request-CK8FH47X.js.map} +1 -1
- package/dist/esm/{x509_certificate-Dmgw53TR.js → x509_certificate-CEEWtU_T.js} +3 -3
- package/dist/{esm-es5/x509_certificate-Dmgw53TR.js.map → esm/x509_certificate-CEEWtU_T.js.map} +1 -1
- package/dist/esm/{x509_crl-B5TRu79b.js → x509_crl-BcZd9KVn.js} +4 -4
- package/dist/{esm-es5/x509_crl-B5TRu79b.js.map → esm/x509_crl-BcZd9KVn.js.map} +1 -1
- package/dist/esm-es5/{actions-DzoPRObK.js → actions-BOY2Tl0T.js} +2 -2
- package/dist/esm-es5/{actions-DzoPRObK.js.map → actions-BOY2Tl0T.js.map} +1 -1
- package/dist/esm-es5/{arrow_top-CF9pv-tQ.js → arrow_top-DL0RWe4n.js} +2 -2
- package/dist/{esm/arrow_top-CF9pv-tQ.js.map → esm-es5/arrow_top-DL0RWe4n.js.map} +1 -1
- package/dist/esm-es5/button-Bbh7MwG6.js +19 -0
- package/dist/esm-es5/button-Bbh7MwG6.js.map +1 -0
- package/dist/esm-es5/{certification_request-DazysL_f.js → certification_request-PeMaLTUD.js} +14 -14
- package/dist/esm-es5/certification_request-PeMaLTUD.js.map +1 -0
- package/dist/esm-es5/{cross-DdCuR1F2.js → cross-G84H_-QL.js} +2 -2
- package/dist/{esm/cross-DdCuR1F2.js.map → esm-es5/cross-G84H_-QL.js.map} +1 -1
- package/dist/esm-es5/{download-Cqfc-Sxf.js → download-ykcxSgxU.js} +2 -2
- package/dist/esm-es5/{download-Cqfc-Sxf.js.map → download-ykcxSgxU.js.map} +1 -1
- package/dist/esm-es5/index-CwgZaF40.js +6 -0
- package/dist/esm-es5/index-CwgZaF40.js.map +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{link-qg3yKAoS.js → link-CGURvKy1.js} +3 -3
- package/dist/esm-es5/{link-qg3yKAoS.js.map → link-CGURvKy1.js.map} +1 -1
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/{miscellaneous-BJPX0Hs_.js → miscellaneous-bVeJt-6m.js} +2 -2
- package/dist/esm-es5/miscellaneous-bVeJt-6m.js.map +1 -0
- package/dist/esm-es5/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_4.entry.js +2 -2
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_4.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-button-menu_3.entry.js +1 -1
- package/dist/esm-es5/peculiar-certificate-decoder.entry.js +1 -1
- package/dist/esm-es5/peculiar-certificate-decoder.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-certificate-viewer.entry.js +1 -1
- package/dist/esm-es5/peculiar-certificate-viewer.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-certificates-viewer.entry.js +1 -1
- package/dist/esm-es5/peculiar-text-hider.entry.js +1 -1
- package/dist/esm-es5/peculiar.js +2 -2
- package/dist/esm-es5/peculiar.js.map +1 -1
- package/dist/esm-es5/{pkcs10_certificate_request-SQcYKma2.js → pkcs10_certificate_request-CK8FH47X.js} +2 -2
- package/dist/{esm/pkcs10_certificate_request-SQcYKma2.js.map → esm-es5/pkcs10_certificate_request-CK8FH47X.js.map} +1 -1
- package/dist/esm-es5/{x509_certificate-Dmgw53TR.js → x509_certificate-CEEWtU_T.js} +2 -2
- package/dist/{esm/x509_certificate-Dmgw53TR.js.map → esm-es5/x509_certificate-CEEWtU_T.js.map} +1 -1
- package/dist/esm-es5/{x509_crl-B5TRu79b.js → x509_crl-BcZd9KVn.js} +4 -4
- package/dist/{esm/x509_crl-B5TRu79b.js.map → esm-es5/x509_crl-BcZd9KVn.js.map} +1 -1
- package/dist/peculiar/index.esm.js +1 -1
- package/dist/peculiar/loader.esm.js.map +1 -1
- package/dist/peculiar/p-00d6f11f.system.entry.js +111 -0
- package/dist/peculiar/p-00d6f11f.system.entry.js.map +1 -0
- package/dist/peculiar/{p-218364f2.entry.js → p-0de4837d.entry.js} +2 -2
- package/dist/peculiar/p-0de4837d.entry.js.map +1 -0
- package/dist/peculiar/{p-16aa5600.system.entry.js → p-14fcbc5c.system.entry.js} +2 -2
- package/dist/peculiar/p-14fcbc5c.system.entry.js.map +1 -0
- package/dist/peculiar/{p-7b0e7f43.entry.js → p-27ae6a3a.entry.js} +2 -2
- package/dist/peculiar/{p-ab6a8a44.entry.js → p-315805ce.entry.js} +2 -2
- package/dist/peculiar/p-315805ce.entry.js.map +1 -0
- package/dist/peculiar/{p-5b843427.entry.js → p-5479a530.entry.js} +2 -2
- package/dist/peculiar/{p-52444a44.system.entry.js → p-591a9019.system.entry.js} +2 -2
- package/dist/peculiar/p-591a9019.system.entry.js.map +1 -0
- package/dist/peculiar/{p-a3c0f753.system.entry.js → p-607d08e8.system.entry.js} +2 -2
- package/dist/peculiar/{p-44648a8e.system.entry.js → p-84f69023.system.entry.js} +2 -2
- package/dist/peculiar/{p-15c2b820.entry.js → p-9d9f24bd.entry.js} +2 -2
- package/dist/peculiar/{p-Cm-ylIxb.system.js → p-B4PdAFCr.system.js} +4 -4
- package/dist/peculiar/p-B4PdAFCr.system.js.map +1 -0
- package/dist/peculiar/p-BGASC3UX.system.js +5 -0
- package/dist/peculiar/p-BGASC3UX.system.js.map +1 -0
- package/dist/peculiar/{p-BcFnjn1R.system.js.map → p-BaebEpW0.system.js.map} +1 -1
- package/dist/peculiar/{p-B2YrZuK2.system.js → p-Bi5mjeeg.system.js} +2 -2
- package/dist/peculiar/{p-B2YrZuK2.system.js.map → p-Bi5mjeeg.system.js.map} +1 -1
- package/dist/peculiar/{p-CDh6shXP.system.js → p-BipKYW6e.system.js} +8 -8
- package/dist/peculiar/p-BipKYW6e.system.js.map +1 -0
- package/dist/peculiar/{p-wYK0iVYg.system.js → p-Bknpl7EO.system.js} +3 -3
- package/dist/peculiar/{p-wYK0iVYg.system.js.map → p-Bknpl7EO.system.js.map} +1 -1
- package/dist/peculiar/p-BloT0Xj9.system.js.map +1 -0
- package/dist/peculiar/p-BypepohK.system.js.map +1 -0
- package/dist/peculiar/{p-DRoyzOgk.system.js → p-C9sY8yng.system.js} +2 -2
- package/dist/peculiar/{p-DRoyzOgk.system.js.map → p-C9sY8yng.system.js.map} +1 -1
- package/dist/peculiar/{p-CJro0Exb.js → p-CGRNSrHk.js} +43 -43
- package/dist/peculiar/p-CGRNSrHk.js.map +1 -0
- package/dist/peculiar/{p-DhdG07f8.js → p-CHnDlTqM.js} +2 -2
- package/dist/peculiar/{p-DhdG07f8.js.map → p-CHnDlTqM.js.map} +1 -1
- package/dist/peculiar/{p-YHrZ3f_s.system.js → p-CZwhKPgb.system.js} +2 -2
- package/dist/peculiar/p-CZwhKPgb.system.js.map +1 -0
- package/dist/peculiar/{p-BA8os2l6.system.js.map → p-CbJQZ9Hh.system.js.map} +1 -1
- package/dist/peculiar/{p-BBgwMHRZ.system.js → p-CdS84qJs.system.js} +5 -5
- package/dist/peculiar/{p-BBgwMHRZ.system.js.map → p-CdS84qJs.system.js.map} +1 -1
- package/dist/peculiar/{p-BmIps4bV.system.js → p-CezfC5i1.system.js} +41 -41
- package/dist/peculiar/p-CezfC5i1.system.js.map +1 -0
- package/dist/peculiar/{p-0HZUc9Ix.js → p-CjWRKsN-.js} +2 -2
- package/dist/peculiar/{p-0HZUc9Ix.js.map → p-CjWRKsN-.js.map} +1 -1
- package/dist/peculiar/{p-CkwiD_ia.js → p-CutTi-2B.js} +4 -4
- package/dist/peculiar/p-CutTi-2B.js.map +1 -0
- package/dist/peculiar/p-CwgZaF40.js +6 -0
- package/dist/peculiar/p-CwgZaF40.js.map +1 -0
- package/dist/peculiar/{p-DzItK48Y.js → p-D1eNnGDF.js} +4 -4
- package/dist/peculiar/{p-DzItK48Y.js.map → p-D1eNnGDF.js.map} +1 -1
- package/dist/peculiar/{p-BP2bmYR2.system.js → p-D8xU284r.system.js} +3 -3
- package/dist/peculiar/{p-BP2bmYR2.system.js.map → p-D8xU284r.system.js.map} +1 -1
- package/dist/peculiar/p-DKl0YViA.system.js +6 -0
- package/dist/peculiar/p-DKl0YViA.system.js.map +1 -0
- package/dist/peculiar/{p-CEHpBNWe.js → p-DMZr5ztF.js} +3 -3
- package/dist/peculiar/{p-CEHpBNWe.js.map → p-DMZr5ztF.js.map} +1 -1
- package/dist/peculiar/{p-BKKflyKt.system.js → p-DRvp86xt.system.js} +5 -5
- package/dist/peculiar/{p-BKKflyKt.system.js.map → p-DRvp86xt.system.js.map} +1 -1
- package/dist/peculiar/{p-DkAhB3Vy.js → p-DanjeXNk.js} +2 -2
- package/dist/peculiar/{p-DkAhB3Vy.js.map → p-DanjeXNk.js.map} +1 -1
- package/dist/peculiar/{p-3zhoLQno.js → p-DrmgUhyv.js} +4 -4
- package/dist/peculiar/{p-3zhoLQno.js.map → p-DrmgUhyv.js.map} +1 -1
- package/dist/peculiar/p-ITVWR0oT.system.js.map +1 -0
- package/dist/peculiar/{p-BBZwtkNN.system.js → p-J1t5v5N3.system.js} +4 -4
- package/dist/peculiar/{p-BBZwtkNN.system.js.map → p-J1t5v5N3.system.js.map} +1 -1
- package/dist/peculiar/{p-BHBizfwo.js → p-JyD6URnB.js} +3 -3
- package/dist/peculiar/{p-BHBizfwo.js.map → p-JyD6URnB.js.map} +1 -1
- package/dist/peculiar/{p-D13P_msn.system.js.map → p-N3w4Sc5c.system.js.map} +1 -1
- package/dist/peculiar/{p-BOSH9vjy.system.js → p-NnCM1ETy.system.js} +3 -3
- package/dist/peculiar/{p-BOSH9vjy.system.js.map → p-NnCM1ETy.system.js.map} +1 -1
- package/dist/peculiar/{p-DazysL_f.js → p-PeMaLTUD.js} +7 -7
- package/dist/peculiar/p-PeMaLTUD.js.map +1 -0
- package/dist/peculiar/{p-CeKqQ13Z.js → p-ZT6tVIen.js} +4 -4
- package/dist/peculiar/{p-CeKqQ13Z.js.map → p-ZT6tVIen.js.map} +1 -1
- package/dist/peculiar/p-c8b3766a.entry.js +110 -0
- package/dist/peculiar/p-c8b3766a.entry.js.map +1 -0
- package/dist/peculiar/{p-d16ddef8.system.entry.js → p-de857304.system.entry.js} +2 -2
- package/dist/peculiar/{p--Pej0I-A.system.js.map → p-eziSY5IJ.system.js.map} +1 -1
- package/dist/peculiar/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.entry.esm.js.map +1 -1
- package/dist/peculiar/peculiar-certificate-decoder.entry.esm.js.map +1 -1
- package/dist/peculiar/peculiar-certificate-viewer.entry.esm.js.map +1 -1
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/dist/peculiar/peculiar.esm.js.map +1 -1
- package/dist/peculiar/peculiar.js +1 -1
- package/dist/types/components/typography/typography.d.ts +2 -1
- package/dist/types/components.d.ts +26 -0
- package/dist/types/stencil-public-runtime.d.ts +34 -6
- package/hydrate/index.d.ts +38 -24
- package/hydrate/index.js +4281 -3311
- package/hydrate/index.mjs +4280 -3312
- package/package.json +32 -33
- package/dist/cjs/app-globals-BOZYdIuK.js +0 -11
- package/dist/cjs/app-globals-BOZYdIuK.js.map +0 -1
- package/dist/cjs/button-B0CduHSE.js.map +0 -1
- package/dist/cjs/certification_request-DaJSDP3R.js.map +0 -1
- package/dist/cjs/index-BO3rFndV.js.map +0 -1
- package/dist/cjs/miscellaneous-Ce9aGjKB.js.map +0 -1
- package/dist/esm/app-globals-zVR349KA.js +0 -9
- package/dist/esm/app-globals-zVR349KA.js.map +0 -1
- package/dist/esm/button-Do0R_8PZ.js.map +0 -1
- package/dist/esm/certification_request-DazysL_f.js.map +0 -1
- package/dist/esm/index-DDDrq3In.js.map +0 -1
- package/dist/esm/miscellaneous-BJPX0Hs_.js.map +0 -1
- package/dist/esm-es5/app-globals-zVR349KA.js +0 -5
- package/dist/esm-es5/app-globals-zVR349KA.js.map +0 -1
- package/dist/esm-es5/button-Do0R_8PZ.js +0 -19
- package/dist/esm-es5/button-Do0R_8PZ.js.map +0 -1
- package/dist/esm-es5/certification_request-DazysL_f.js.map +0 -1
- package/dist/esm-es5/index-DDDrq3In.js +0 -6
- package/dist/esm-es5/index-DDDrq3In.js.map +0 -1
- package/dist/esm-es5/miscellaneous-BJPX0Hs_.js.map +0 -1
- package/dist/peculiar/p-16aa5600.system.entry.js.map +0 -1
- package/dist/peculiar/p-1cbb0d6b.entry.js +0 -110
- package/dist/peculiar/p-1cbb0d6b.entry.js.map +0 -1
- package/dist/peculiar/p-218364f2.entry.js.map +0 -1
- package/dist/peculiar/p-52444a44.system.entry.js.map +0 -1
- package/dist/peculiar/p-BAB4EyrL.system.js.map +0 -1
- package/dist/peculiar/p-BFenL1ap.system.js +0 -6
- package/dist/peculiar/p-BFenL1ap.system.js.map +0 -1
- package/dist/peculiar/p-BmIps4bV.system.js.map +0 -1
- package/dist/peculiar/p-CDh6shXP.system.js.map +0 -1
- package/dist/peculiar/p-CJro0Exb.js.map +0 -1
- package/dist/peculiar/p-CWs-Ocvt.system.js.map +0 -1
- package/dist/peculiar/p-CkwiD_ia.js.map +0 -1
- package/dist/peculiar/p-Cm-ylIxb.system.js.map +0 -1
- package/dist/peculiar/p-CwlxH4oM.system.js +0 -5
- package/dist/peculiar/p-CwlxH4oM.system.js.map +0 -1
- package/dist/peculiar/p-D5BWI7FK.system.js +0 -5
- package/dist/peculiar/p-D5BWI7FK.system.js.map +0 -1
- package/dist/peculiar/p-DDDrq3In.js +0 -6
- package/dist/peculiar/p-DDDrq3In.js.map +0 -1
- package/dist/peculiar/p-DJRm54BZ.system.js.map +0 -1
- package/dist/peculiar/p-DazysL_f.js.map +0 -1
- package/dist/peculiar/p-YHrZ3f_s.system.js.map +0 -1
- package/dist/peculiar/p-ab6a8a44.entry.js.map +0 -1
- package/dist/peculiar/p-d9013293.system.entry.js +0 -111
- package/dist/peculiar/p-d9013293.system.entry.js.map +0 -1
- package/dist/peculiar/p-zVR349KA.js +0 -5
- package/dist/peculiar/p-zVR349KA.js.map +0 -1
- /package/dist/peculiar/{p-7b0e7f43.entry.js.map → p-27ae6a3a.entry.js.map} +0 -0
- /package/dist/peculiar/{p-5b843427.entry.js.map → p-5479a530.entry.js.map} +0 -0
- /package/dist/peculiar/{p-a3c0f753.system.entry.js.map → p-607d08e8.system.entry.js.map} +0 -0
- /package/dist/peculiar/{p-44648a8e.system.entry.js.map → p-84f69023.system.entry.js.map} +0 -0
- /package/dist/peculiar/{p-15c2b820.entry.js.map → p-9d9f24bd.entry.js.map} +0 -0
- /package/dist/peculiar/{p-d16ddef8.system.entry.js.map → p-de857304.system.entry.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __extends=this&&this.__extends||function(){var t=function(e,i){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]};return t(e,i)};return function(e,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(e,i);function r(){this.constructor=e}e.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++){e=arguments[i];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,e,i,r){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r["throw"](t))}catch(t){o(t)}}function u(t){t.done?i(t.value):n(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,n,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return u([t,e])}}function u(s){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(i=0)),i)try{if(r=1,n&&(o=s[0]&2?n["return"]:s[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;if(n=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;n=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(s[0]===6&&i.label<o[1]){i.label=o[1];o=s;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(s);break}if(o[2])i.ops.pop();i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t];n=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(t,e){var i={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0)i[r]=t[r];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var n=0,r=Object.getOwnPropertySymbols(t);n<r.length;n++){if(e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(t,r[n]))i[r[n]]=t[r[n]]}return i};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var r=0,n=e.length,o;r<n;r++){if(o||!(r in e)){if(!o)o=Array.prototype.slice.call(e,0,r);o[r]=e[r]}}return t.concat(o||Array.prototype.slice.call(e))};
|
|
2
2
|
/*!
|
|
3
3
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
4
|
-
*/System.register([],(function(t){"use strict";return{execute:function(){var e;var i=this;t({ad:
|
|
4
|
+
*/System.register([],(function(t){"use strict";return{execute:function(){var e;var i=this;t({ad:Ei,d:r});
|
|
5
5
|
/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -75,14 +75,14 @@ var __extends=this&&this.__extends||function(){var t=function(e,i){t=Object.setP
|
|
|
75
75
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
76
76
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
77
77
|
*
|
|
78
|
-
*/function S(){if(typeof BigInt==="undefined"){throw new Error("BigInt is not defined. Your environment doesn't implement BigInt.")}}function C(t){var e=0;var i=0;for(var r=0;r<t.length;r++){var n=t[r];e+=n.byteLength}var o=new Uint8Array(e);for(var r=0;r<t.length;r++){var n=t[r];o.set(new Uint8Array(n),i);i+=n.byteLength}return o.buffer}function A(t,e,i,r){if(!(e instanceof Uint8Array)){t.error="Wrong parameter: inputBuffer must be 'Uint8Array'";return false}if(!e.byteLength){t.error="Wrong parameter: inputBuffer has zero length";return false}if(i<0){t.error="Wrong parameter: inputOffset less than zero";return false}if(r<0){t.error="Wrong parameter: inputLength less than zero";return false}if(e.byteLength-i-r<0){t.error="End of input reached before message was fully decoded (inconsistent offset and length values)";return false}return true}var m=function(){function t(){this.items=[]}t.prototype.write=function(t){this.items.push(t)};t.prototype.final=function(){return C(this.items)};return t}();var g=[new Uint8Array([1])];var w="0123456789";var E="name";var b="valueHexView";var P="isHexOnly";var D="idBlock";var _="tagClass";var I="tagNumber";var B="isConstructed";var x="fromBER";var T="toBER";var O="local";var M="";var R=new ArrayBuffer(0);var N=new Uint8Array(0);var k="EndOfContent";var K="OCTET STRING";var j="BIT STRING";function H(t){var e;return e=function(t){__extends(e,t);function e(){var e=[];for(var i=0;i<arguments.length;i++){e[i]=arguments[i]}var r;var n=t.apply(this,e)||this;var o=e[0]||{};n.isHexOnly=(r=o.isHexOnly)!==null&&r!==void 0?r:false;n.valueHexView=o.valueHex?u.BufferSourceConverter.toUint8Array(o.valueHex):N;return n}Object.defineProperty(e.prototype,"valueHex",{get:function(){return this.valueHexView.slice().buffer},set:function(t){this.valueHexView=new Uint8Array(t)},enumerable:false,configurable:true});e.prototype.fromBER=function(t,e,i){var r=t instanceof ArrayBuffer?new Uint8Array(t):t;if(!A(this,r,e,i)){return-1}var n=e+i;this.valueHexView=r.subarray(e,n);if(!this.valueHexView.length){this.warnings.push("Zero buffer length");return e}this.blockLength=i;return n};e.prototype.toBER=function(t){if(t===void 0){t=false}if(!this.isHexOnly){this.error="Flag 'isHexOnly' is not set, abort";return R}if(t){return new ArrayBuffer(this.valueHexView.byteLength)}return this.valueHexView.byteLength===this.valueHexView.buffer.byteLength?this.valueHexView.buffer:this.valueHexView.slice().buffer};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{isHexOnly:this.isHexOnly,valueHex:u.Convert.ToHex(this.valueHexView)})};return e}(t),e.NAME="hexBlock",e}var U=function(){function t(t){var e=t===void 0?{}:t,i=e.blockLength,r=i===void 0?0:i,n=e.error,o=n===void 0?M:n,a=e.warnings,s=a===void 0?[]:a,c=e.valueBeforeDecode,f=c===void 0?N:c;this.blockLength=r;this.error=o;this.warnings=s;this.valueBeforeDecodeView=u.BufferSourceConverter.toUint8Array(f)}t.blockName=function(){return this.NAME};Object.defineProperty(t.prototype,"valueBeforeDecode",{get:function(){return this.valueBeforeDecodeView.slice().buffer},set:function(t){this.valueBeforeDecodeView=new Uint8Array(t)},enumerable:false,configurable:true});t.prototype.toJSON=function(){return{blockName:this.constructor.NAME,blockLength:this.blockLength,error:this.error,warnings:this.warnings,valueBeforeDecode:u.Convert.ToHex(this.valueBeforeDecodeView)}};return t}();U.NAME="baseBlock";var F=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.fromBER=function(t,e,i){throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'")};e.prototype.toBER=function(t,e){throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'")};return e}(U);F.NAME="valueBlock";var L=function(t){__extends(e,t);function e(e){var i=e===void 0?{}:e,r=i.idBlock,n=r===void 0?{}:r;var o,a,s,c;var f=t.call(this)||this;if(n){f.isHexOnly=(o=n.isHexOnly)!==null&&o!==void 0?o:false;f.valueHexView=n.valueHex?u.BufferSourceConverter.toUint8Array(n.valueHex):N;f.tagClass=(a=n.tagClass)!==null&&a!==void 0?a:-1;f.tagNumber=(s=n.tagNumber)!==null&&s!==void 0?s:-1;f.isConstructed=(c=n.isConstructed)!==null&&c!==void 0?c:false}else{f.tagClass=-1;f.tagNumber=-1;f.isConstructed=false}return f}e.prototype.toBER=function(t){if(t===void 0){t=false}var e=0;switch(this.tagClass){case 1:e|=0;break;case 2:e|=64;break;case 3:e|=128;break;case 4:e|=192;break;default:this.error="Unknown tag class";return R}if(this.isConstructed)e|=32;if(this.tagNumber<31&&!this.isHexOnly){var i=new Uint8Array(1);if(!t){var r=this.tagNumber;r&=31;e|=r;i[0]=e}return i.buffer}if(!this.isHexOnly){var n=v(this.tagNumber,7);var o=new Uint8Array(n);var a=n.byteLength;var s=new Uint8Array(a+1);s[0]=e|31;if(!t){for(var u=0;u<a-1;u++)s[u+1]=o[u]|128;s[a]=o[a-1]}return s.buffer}var c=new Uint8Array(this.valueHexView.byteLength+1);c[0]=e|31;if(!t){var f=this.valueHexView;for(var u=0;u<f.length-1;u++)c[u+1]=f[u]|128;c[this.valueHexView.byteLength]=f[f.length-1]}return c.buffer};e.prototype.fromBER=function(t,e,i){var r=u.BufferSourceConverter.toUint8Array(t);if(!A(this,r,e,i)){return-1}var n=r.subarray(e,e+i);if(n.length===0){this.error="Zero buffer length";return-1}var o=n[0]&192;switch(o){case 0:this.tagClass=1;break;case 64:this.tagClass=2;break;case 128:this.tagClass=3;break;case 192:this.tagClass=4;break;default:this.error="Unknown tag class";return-1}this.isConstructed=(n[0]&32)===32;this.isHexOnly=false;var a=n[0]&31;if(a!==31){this.tagNumber=a;this.blockLength=1}else{var s=1;var c=this.valueHexView=new Uint8Array(255);var v=255;while(n[s]&128){c[s-1]=n[s]&127;s++;if(s>=n.length){this.error="End of input reached before message was fully decoded";return-1}if(s===v){v+=255;var h=new Uint8Array(v);for(var d=0;d<c.length;d++)h[d]=c[d];c=this.valueHexView=new Uint8Array(v)}}this.blockLength=s+1;c[s-1]=n[s]&127;var l=new Uint8Array(s);for(var d=0;d<s;d++)l[d]=c[d];c=this.valueHexView=new Uint8Array(s);c.set(l);if(this.blockLength<=9)this.tagNumber=f(c,7);else{this.isHexOnly=true;this.warnings.push("Tag too long, represented as hex-coded")}}if(this.tagClass===1&&this.isConstructed){switch(this.tagNumber){case 1:case 2:case 5:case 6:case 9:case 13:case 14:case 23:case 24:case 31:case 32:case 33:case 34:this.error="Constructed encoding used for primitive type";return-1}}return e+this.blockLength};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{tagClass:this.tagClass,tagNumber:this.tagNumber,isConstructed:this.isConstructed})};return e}(H(U));L.NAME="identificationBlock";var V=function(t){__extends(e,t);function e(e){var i=e===void 0?{}:e,r=i.lenBlock,n=r===void 0?{}:r;var o,a,s;var u=t.call(this)||this;u.isIndefiniteForm=(o=n.isIndefiniteForm)!==null&&o!==void 0?o:false;u.longFormUsed=(a=n.longFormUsed)!==null&&a!==void 0?a:false;u.length=(s=n.length)!==null&&s!==void 0?s:0;return u}e.prototype.fromBER=function(t,e,i){var r=u.BufferSourceConverter.toUint8Array(t);if(!A(this,r,e,i)){return-1}var n=r.subarray(e,e+i);if(n.length===0){this.error="Zero buffer length";return-1}if(n[0]===255){this.error="Length block 0xFF is reserved by standard";return-1}this.isIndefiniteForm=n[0]===128;if(this.isIndefiniteForm){this.blockLength=1;return e+this.blockLength}this.longFormUsed=!!(n[0]&128);if(this.longFormUsed===false){this.length=n[0];this.blockLength=1;return e+this.blockLength}var o=n[0]&127;if(o>8){this.error="Too big integer";return-1}if(o+1>n.length){this.error="End of input reached before message was fully decoded";return-1}var a=e+1;var s=r.subarray(a,a+o);if(s[o-1]===0)this.warnings.push("Needlessly long encoded length");this.length=f(s,8);if(this.longFormUsed&&this.length<=127)this.warnings.push("Unnecessary usage of long length form");this.blockLength=o+1;return e+this.blockLength};e.prototype.toBER=function(t){if(t===void 0){t=false}var e;var i;if(this.length>127)this.longFormUsed=true;if(this.isIndefiniteForm){e=new ArrayBuffer(1);if(t===false){i=new Uint8Array(e);i[0]=128}return e}if(this.longFormUsed){var r=v(this.length,8);if(r.byteLength>127){this.error="Too big length";return R}e=new ArrayBuffer(r.byteLength+1);if(t)return e;var n=new Uint8Array(r);i=new Uint8Array(e);i[0]=r.byteLength|128;for(var o=0;o<r.byteLength;o++)i[o+1]=n[o];return e}e=new ArrayBuffer(1);if(t===false){i=new Uint8Array(e);i[0]=this.length}return e};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{isIndefiniteForm:this.isIndefiniteForm,longFormUsed:this.longFormUsed,length:this.length})};return e}(U);V.NAME="lengthBlock";var G={};var W=function(t){__extends(e,t);function e(e,i){if(e===void 0){e={}}var r=this;var n=e.name,o=n===void 0?M:n,a=e.optional,s=a===void 0?false:a,u=e.primitiveSchema,c=__rest(e,["name","optional","primitiveSchema"]);r=t.call(this,c)||this;r.name=o;r.optional=s;if(u){r.primitiveSchema=u}r.idBlock=new L(c);r.lenBlock=new V(c);r.valueBlock=i?new i(c):new F(c);return r}e.prototype.fromBER=function(t,e,i){var r=this.valueBlock.fromBER(t,e,this.lenBlock.isIndefiniteForm?i:this.lenBlock.length);if(r===-1){this.error=this.valueBlock.error;return r}if(!this.idBlock.error.length)this.blockLength+=this.idBlock.blockLength;if(!this.lenBlock.error.length)this.blockLength+=this.lenBlock.blockLength;if(!this.valueBlock.error.length)this.blockLength+=this.valueBlock.blockLength;return r};e.prototype.toBER=function(t,e){var i=e||new m;if(!e){Q(this)}var r=this.idBlock.toBER(t);i.write(r);if(this.lenBlock.isIndefiniteForm){i.write(new Uint8Array([128]).buffer);this.valueBlock.toBER(t,i);i.write(new ArrayBuffer(2))}else{var n=this.valueBlock.toBER(t);this.lenBlock.length=n.byteLength;var o=this.lenBlock.toBER(t);i.write(o);i.write(n)}if(!e){return i.final()}return R};e.prototype.toJSON=function(){var e=__assign(__assign({},t.prototype.toJSON.call(this)),{idBlock:this.idBlock.toJSON(),lenBlock:this.lenBlock.toJSON(),valueBlock:this.valueBlock.toJSON(),name:this.name,optional:this.optional});if(this.primitiveSchema)e.primitiveSchema=this.primitiveSchema.toJSON();return e};e.prototype.toString=function(t){if(t===void 0){t="ascii"}if(t==="ascii"){return this.onAsciiEncoding()}return u.Convert.ToHex(this.toBER())};e.prototype.onAsciiEncoding=function(){return"".concat(this.constructor.NAME," : ").concat(u.Convert.ToHex(this.valueBlock.valueBeforeDecodeView))};e.prototype.isEqual=function(t){if(this===t){return true}if(!(t instanceof this.constructor)){return false}var e=this.toBER();var i=t.toBER();return p(e,i)};return e}(U);W.NAME="BaseBlock";function Q(t){if(t instanceof G.Constructed){for(var e=0,i=t.valueBlock.value;e<i.length;e++){var r=i[e];if(Q(r)){t.lenBlock.isIndefiniteForm=true}}}return!!t.lenBlock.isIndefiniteForm}var q=function(t){__extends(e,t);function e(e,i){if(e===void 0){e={}}var r=this;var n=e.value,o=n===void 0?M:n,a=__rest(e,["value"]);r=t.call(this,a,i)||this;if(o){r.fromString(o)}return r}e.prototype.getValue=function(){return this.valueBlock.value};e.prototype.setValue=function(t){this.valueBlock.value=t};e.prototype.fromBER=function(t,e,i){var r=this.valueBlock.fromBER(t,e,this.lenBlock.isIndefiniteForm?i:this.lenBlock.length);if(r===-1){this.error=this.valueBlock.error;return r}this.fromBuffer(this.valueBlock.valueHexView);if(!this.idBlock.error.length)this.blockLength+=this.idBlock.blockLength;if(!this.lenBlock.error.length)this.blockLength+=this.lenBlock.blockLength;if(!this.valueBlock.error.length)this.blockLength+=this.valueBlock.blockLength;return r};e.prototype.onAsciiEncoding=function(){return"".concat(this.constructor.NAME," : '").concat(this.valueBlock.value,"'")};return e}(W);q.NAME="BaseStringBlock";var z=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.isHexOnly,n=r===void 0?true:r,o=__rest(e,["isHexOnly"]);i=t.call(this,o)||this;i.isHexOnly=n;return i}return e}(H(F));z.NAME="PrimitiveValueBlock";var Z;var $=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e,z)||this;i.idBlock.isConstructed=false;return i}return e}(W);Z=$;(function(){G.Primitive=Z})();$.NAME="PRIMITIVE";function X(t,e){if(t instanceof e){return t}var i=new e;i.idBlock=t.idBlock;i.lenBlock=t.lenBlock;i.warnings=t.warnings;i.valueBeforeDecodeView=t.valueBeforeDecodeView;return i}function Y(t,e,i){if(e===void 0){e=0}if(i===void 0){i=t.length}var r=e;var n=new W({},F);var o=new U;if(!A(o,t,e,i)){n.error=o.error;return{offset:-1,result:n}}var a=t.subarray(e,e+i);if(!a.length){n.error="Zero buffer length";return{offset:-1,result:n}}var s=n.idBlock.fromBER(t,e,i);if(n.idBlock.warnings.length){n.warnings.concat(n.idBlock.warnings)}if(s===-1){n.error=n.idBlock.error;return{offset:-1,result:n}}e=s;i-=n.idBlock.blockLength;s=n.lenBlock.fromBER(t,e,i);if(n.lenBlock.warnings.length){n.warnings.concat(n.lenBlock.warnings)}if(s===-1){n.error=n.lenBlock.error;return{offset:-1,result:n}}e=s;i-=n.lenBlock.blockLength;if(!n.idBlock.isConstructed&&n.lenBlock.isIndefiniteForm){n.error="Indefinite length form used for primitive encoding form";return{offset:-1,result:n}}var u=W;switch(n.idBlock.tagClass){case 1:if(n.idBlock.tagNumber>=37&&n.idBlock.isHexOnly===false){n.error="UNIVERSAL 37 and upper tags are reserved by ASN.1 standard";return{offset:-1,result:n}}switch(n.idBlock.tagNumber){case 0:if(n.idBlock.isConstructed&&n.lenBlock.length>0){n.error="Type [UNIVERSAL 0] is reserved";return{offset:-1,result:n}}u=G.EndOfContent;break;case 1:u=G.Boolean;break;case 2:u=G.Integer;break;case 3:u=G.BitString;break;case 4:u=G.OctetString;break;case 5:u=G.Null;break;case 6:u=G.ObjectIdentifier;break;case 10:u=G.Enumerated;break;case 12:u=G.Utf8String;break;case 13:u=G.RelativeObjectIdentifier;break;case 14:u=G.TIME;break;case 15:n.error="[UNIVERSAL 15] is reserved by ASN.1 standard";return{offset:-1,result:n};case 16:u=G.Sequence;break;case 17:u=G.Set;break;case 18:u=G.NumericString;break;case 19:u=G.PrintableString;break;case 20:u=G.TeletexString;break;case 21:u=G.VideotexString;break;case 22:u=G.IA5String;break;case 23:u=G.UTCTime;break;case 24:u=G.GeneralizedTime;break;case 25:u=G.GraphicString;break;case 26:u=G.VisibleString;break;case 27:u=G.GeneralString;break;case 28:u=G.UniversalString;break;case 29:u=G.CharacterString;break;case 30:u=G.BmpString;break;case 31:u=G.DATE;break;case 32:u=G.TimeOfDay;break;case 33:u=G.DateTime;break;case 34:u=G.Duration;break;default:{var c=n.idBlock.isConstructed?new G.Constructed:new G.Primitive;c.idBlock=n.idBlock;c.lenBlock=n.lenBlock;c.warnings=n.warnings;n=c}}break;case 2:case 3:case 4:default:{u=n.idBlock.isConstructed?G.Constructed:G.Primitive}}n=X(n,u);s=n.fromBER(t,e,n.lenBlock.isIndefiniteForm?i:n.lenBlock.length);n.valueBeforeDecodeView=t.subarray(r,r+n.blockLength);return{offset:s,result:n}}function J(t){if(!t.byteLength){var e=new W({},F);e.error="Input buffer has zero length";return{offset:-1,result:e}}return Y(u.BufferSourceConverter.toUint8Array(t).slice(),0,t.byteLength)}function tt(t,e){if(t){return 1}return e}var et=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.value,n=r===void 0?[]:r,o=e.isIndefiniteForm,a=o===void 0?false:o,s=__rest(e,["value","isIndefiniteForm"]);i=t.call(this,s)||this;i.value=n;i.isIndefiniteForm=a;return i}e.prototype.fromBER=function(t,e,i){var r=u.BufferSourceConverter.toUint8Array(t);if(!A(this,r,e,i)){return-1}this.valueBeforeDecodeView=r.subarray(e,e+i);if(this.valueBeforeDecodeView.length===0){this.warnings.push("Zero buffer length");return e}var n=e;while(tt(this.isIndefiniteForm,i)>0){var o=Y(r,n,i);if(o.offset===-1){this.error=o.result.error;this.warnings.concat(o.result.warnings);return-1}n=o.offset;this.blockLength+=o.result.blockLength;i-=o.result.blockLength;this.value.push(o.result);if(this.isIndefiniteForm&&o.result.constructor.NAME===k){break}}if(this.isIndefiniteForm){if(this.value[this.value.length-1].constructor.NAME===k){this.value.pop()}else{this.warnings.push("No EndOfContent block encoded")}}return n};e.prototype.toBER=function(t,e){var i=e||new m;for(var r=0;r<this.value.length;r++){this.value[r].toBER(t,i)}if(!e){return i.final()}return R};e.prototype.toJSON=function(){var e=__assign(__assign({},t.prototype.toJSON.call(this)),{isIndefiniteForm:this.isIndefiniteForm,value:[]});for(var i=0,r=this.value;i<r.length;i++){var n=r[i];e.value.push(n.toJSON())}return e};return e}(F);et.NAME="ConstructedValueBlock";var it;var rt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e,et)||this;i.idBlock.isConstructed=true;return i}e.prototype.fromBER=function(t,e,i){this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm;var r=this.valueBlock.fromBER(t,e,this.lenBlock.isIndefiniteForm?i:this.lenBlock.length);if(r===-1){this.error=this.valueBlock.error;return r}if(!this.idBlock.error.length)this.blockLength+=this.idBlock.blockLength;if(!this.lenBlock.error.length)this.blockLength+=this.lenBlock.blockLength;if(!this.valueBlock.error.length)this.blockLength+=this.valueBlock.blockLength;return r};e.prototype.onAsciiEncoding=function(){var t=[];for(var e=0,i=this.valueBlock.value;e<i.length;e++){var r=i[e];t.push(r.toString("ascii").split("\n").map((function(t){return" ".concat(t)})).join("\n"))}var n=this.idBlock.tagClass===3?"[".concat(this.idBlock.tagNumber,"]"):this.constructor.NAME;return t.length?"".concat(n," :\n").concat(t.join("\n")):"".concat(n," :")};return e}(W);it=rt;(function(){G.Constructed=it})();rt.NAME="CONSTRUCTED";var nt=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.fromBER=function(t,e,i){return e};e.prototype.toBER=function(t){return R};return e}(F);nt.override="EndOfContentValueBlock";var ot;var at=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e,nt)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=0;return i}return e}(W);ot=at;(function(){G.EndOfContent=ot})();at.NAME=k;var st;var ut=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e,F)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=5;return i}e.prototype.fromBER=function(t,e,i){if(this.lenBlock.length>0)this.warnings.push("Non-zero length of value block for Null type");if(!this.idBlock.error.length)this.blockLength+=this.idBlock.blockLength;if(!this.lenBlock.error.length)this.blockLength+=this.lenBlock.blockLength;this.blockLength+=i;if(e+i>t.byteLength){this.error="End of input reached before message was fully decoded (inconsistent offset and length values)";return-1}return e+i};e.prototype.toBER=function(t,e){var i=new ArrayBuffer(2);if(!t){var r=new Uint8Array(i);r[0]=5;r[1]=0}if(e){e.write(i)}return i};e.prototype.onAsciiEncoding=function(){return"".concat(this.constructor.NAME)};return e}(W);st=ut;(function(){G.Null=st})();ut.NAME="NULL";var ct=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.value,n=__rest(e,["value"]);i=t.call(this,n)||this;if(n.valueHex){i.valueHexView=u.BufferSourceConverter.toUint8Array(n.valueHex)}else{i.valueHexView=new Uint8Array(1)}if(r){i.value=r}return i}Object.defineProperty(e.prototype,"value",{get:function(){for(var t=0,e=this.valueHexView;t<e.length;t++){var i=e[t];if(i>0){return true}}return false},set:function(t){this.valueHexView[0]=t?255:0},enumerable:false,configurable:true});e.prototype.fromBER=function(t,e,i){var r=u.BufferSourceConverter.toUint8Array(t);if(!A(this,r,e,i)){return-1}this.valueHexView=r.subarray(e,e+i);if(i>1)this.warnings.push("Boolean value encoded in more then 1 octet");this.isHexOnly=true;d.call(this);this.blockLength=i;return e+i};e.prototype.toBER=function(){return this.valueHexView.slice()};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{value:this.value})};return e}(H(F));ct.NAME="BooleanValueBlock";var ft;var vt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e,ct)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=1;return i}e.prototype.getValue=function(){return this.valueBlock.value};e.prototype.setValue=function(t){this.valueBlock.value=t};e.prototype.onAsciiEncoding=function(){return"".concat(this.constructor.NAME," : ").concat(this.getValue)};return e}(W);ft=vt;(function(){G.Boolean=ft})();vt.NAME="BOOLEAN";var ht=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.isConstructed,n=r===void 0?false:r,o=__rest(e,["isConstructed"]);i=t.call(this,o)||this;i.isConstructed=n;return i}e.prototype.fromBER=function(e,i,r){var n=0;if(this.isConstructed){this.isHexOnly=false;n=et.prototype.fromBER.call(this,e,i,r);if(n===-1)return n;for(var o=0;o<this.value.length;o++){var a=this.value[o].constructor.NAME;if(a===k){if(this.isIndefiniteForm)break;else{this.error="EndOfContent is unexpected, OCTET STRING may consists of OCTET STRINGs only";return-1}}if(a!==K){this.error="OCTET STRING may consists of OCTET STRINGs only";return-1}}}else{this.isHexOnly=true;n=t.prototype.fromBER.call(this,e,i,r);this.blockLength=r}return n};e.prototype.toBER=function(t,e){if(this.isConstructed)return et.prototype.toBER.call(this,t,e);return t?new ArrayBuffer(this.valueHexView.byteLength):this.valueHexView.slice().buffer};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{isConstructed:this.isConstructed})};return e}(H(et));ht.NAME="OctetStringValueBlock";var dt;var lt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.idBlock,n=r===void 0?{}:r,o=e.lenBlock,a=o===void 0?{}:o,s=__rest(e,["idBlock","lenBlock"]);var u,c;(u=s.isConstructed)!==null&&u!==void 0?u:s.isConstructed=!!((c=s.value)===null||c===void 0?void 0:c.length);i=t.call(this,__assign({idBlock:__assign({isConstructed:s.isConstructed},n),lenBlock:__assign(__assign({},a),{isIndefiniteForm:!!s.isIndefiniteForm})},s),ht)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=4;return i}e.prototype.fromBER=function(e,i,r){this.valueBlock.isConstructed=this.idBlock.isConstructed;this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm;if(r===0){if(this.idBlock.error.length===0)this.blockLength+=this.idBlock.blockLength;if(this.lenBlock.error.length===0)this.blockLength+=this.lenBlock.blockLength;return i}if(!this.valueBlock.isConstructed){var n=e instanceof ArrayBuffer?new Uint8Array(e):e;var o=n.subarray(i,i+r);try{if(o.byteLength){var a=Y(o,0,o.byteLength);if(a.offset!==-1&&a.offset===r){this.valueBlock.value=[a.result]}}}catch(t){}}return t.prototype.fromBER.call(this,e,i,r)};e.prototype.onAsciiEncoding=function(){if(this.valueBlock.isConstructed||this.valueBlock.value&&this.valueBlock.value.length){return rt.prototype.onAsciiEncoding.call(this)}return"".concat(this.constructor.NAME," : ").concat(u.Convert.ToHex(this.valueBlock.valueHexView))};e.prototype.getValue=function(){if(!this.idBlock.isConstructed){return this.valueBlock.valueHexView.slice().buffer}var t=[];for(var i=0,r=this.valueBlock.value;i<r.length;i++){var n=r[i];if(n instanceof e){t.push(n.valueBlock.valueHexView)}}return u.BufferSourceConverter.concat(t)};return e}(W);dt=lt;(function(){G.OctetString=dt})();lt.NAME=K;var pt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.unusedBits,n=r===void 0?0:r,o=e.isConstructed,a=o===void 0?false:o,s=__rest(e,["unusedBits","isConstructed"]);i=t.call(this,s)||this;i.unusedBits=n;i.isConstructed=a;i.blockLength=i.valueHexView.byteLength;return i}e.prototype.fromBER=function(t,e,i){if(!i){return e}var r=-1;if(this.isConstructed){r=et.prototype.fromBER.call(this,t,e,i);if(r===-1)return r;for(var n=0,o=this.value;n<o.length;n++){var a=o[n];var s=a.constructor.NAME;if(s===k){if(this.isIndefiniteForm)break;else{this.error="EndOfContent is unexpected, BIT STRING may consists of BIT STRINGs only";return-1}}if(s!==j){this.error="BIT STRING may consists of BIT STRINGs only";return-1}var c=a.valueBlock;if(this.unusedBits>0&&c.unusedBits>0){this.error='Using of "unused bits" inside constructive BIT STRING allowed for least one only';return-1}this.unusedBits=c.unusedBits}return r}var f=u.BufferSourceConverter.toUint8Array(t);if(!A(this,f,e,i)){return-1}var v=f.subarray(e,e+i);this.unusedBits=v[0];if(this.unusedBits>7){this.error="Unused bits for BitString must be in range 0-7";return-1}if(!this.unusedBits){var h=v.subarray(1);try{if(h.byteLength){var d=Y(h,0,h.byteLength);if(d.offset!==-1&&d.offset===i-1){this.value=[d.result]}}}catch(t){}}this.valueHexView=v.subarray(1);this.blockLength=v.length;return e+i};e.prototype.toBER=function(t,e){if(this.isConstructed){return et.prototype.toBER.call(this,t,e)}if(t){return new ArrayBuffer(this.valueHexView.byteLength+1)}if(!this.valueHexView.byteLength){return R}var i=new Uint8Array(this.valueHexView.length+1);i[0]=this.unusedBits;i.set(this.valueHexView,1);return i.buffer};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{unusedBits:this.unusedBits,isConstructed:this.isConstructed})};return e}(H(et));pt.NAME="BitStringValueBlock";var yt;var St=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.idBlock,n=r===void 0?{}:r,o=e.lenBlock,a=o===void 0?{}:o,s=__rest(e,["idBlock","lenBlock"]);var u,c;(u=s.isConstructed)!==null&&u!==void 0?u:s.isConstructed=!!((c=s.value)===null||c===void 0?void 0:c.length);i=t.call(this,__assign({idBlock:__assign({isConstructed:s.isConstructed},n),lenBlock:__assign(__assign({},a),{isIndefiniteForm:!!s.isIndefiniteForm})},s),pt)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=3;return i}e.prototype.fromBER=function(e,i,r){this.valueBlock.isConstructed=this.idBlock.isConstructed;this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm;return t.prototype.fromBER.call(this,e,i,r)};e.prototype.onAsciiEncoding=function(){if(this.valueBlock.isConstructed||this.valueBlock.value&&this.valueBlock.value.length){return rt.prototype.onAsciiEncoding.call(this)}else{var t=[];var e=this.valueBlock.valueHexView;for(var i=0,r=e;i<r.length;i++){var n=r[i];t.push(n.toString(2).padStart(8,"0"))}var o=t.join("");return"".concat(this.constructor.NAME," : ").concat(o.substring(0,o.length-this.valueBlock.unusedBits))}};return e}(W);yt=St;(function(){G.BitString=yt})();St.NAME=j;var Ct;function At(t,e){var i=new Uint8Array([0]);var r=new Uint8Array(t);var n=new Uint8Array(e);var o=r.slice(0);var a=o.length-1;var s=n.slice(0);var u=s.length-1;var c=0;var f=u<a?a:u;var v=0;for(var d=f;d>=0;d--,v++){switch(true){case v<s.length:c=o[a-v]+s[u-v]+i[0];break;default:c=o[a-v]+i[0]}i[0]=c/10;switch(true){case v>=o.length:o=h(new Uint8Array([c%10]),o);break;default:o[a-v]=c%10}}if(i[0]>0)o=h(i,o);return o}function mt(t){if(t>=g.length){for(var e=g.length;e<=t;e++){var i=new Uint8Array([0]);var r=g[e-1].slice(0);for(var n=r.length-1;n>=0;n--){var o=new Uint8Array([(r[n]<<1)+i[0]]);i[0]=o[0]/10;r[n]=o[0]%10}if(i[0]>0)r=h(i,r);g.push(r)}}return g[t]}function gt(t,e){var i=0;var r=new Uint8Array(t);var n=new Uint8Array(e);var o=r.slice(0);var a=o.length-1;var s=n.slice(0);var u=s.length-1;var c;var f=0;for(var v=u;v>=0;v--,f++){c=o[a-f]-s[u-f]-i;switch(true){case c<0:i=1;o[a-f]=c+10;break;default:i=0;o[a-f]=c}}if(i>0){for(var v=a-u+1;v>=0;v--,f++){c=o[a-f]-i;if(c<0){i=1;o[a-f]=c+10}else{i=0;o[a-f]=c;break}}}return o.slice()}var wt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.value,n=__rest(e,["value"]);i=t.call(this,n)||this;i._valueDec=0;if(n.valueHex){i.setValueHex()}if(r!==undefined){i.valueDec=r}return i}e.prototype.setValueHex=function(){if(this.valueHexView.length>=4){this.warnings.push("Too big Integer for decoding, hex only");this.isHexOnly=true;this._valueDec=0}else{this.isHexOnly=false;if(this.valueHexView.length>0){this._valueDec=d.call(this)}}};Object.defineProperty(e.prototype,"valueDec",{get:function(){return this._valueDec},set:function(t){this._valueDec=t;this.isHexOnly=false;this.valueHexView=new Uint8Array(l(t))},enumerable:false,configurable:true});e.prototype.fromDER=function(t,e,i,r){if(r===void 0){r=0}var n=this.fromBER(t,e,i);if(n===-1)return n;var o=this.valueHexView;if(o[0]===0&&(o[1]&128)!==0){this.valueHexView=o.subarray(1)}else{if(r!==0){if(o.length<r){if(r-o.length>1)r=o.length+1;this.valueHexView=o.subarray(r-o.length)}}}return n};e.prototype.toDER=function(t){if(t===void 0){t=false}var e=this.valueHexView;switch(true){case(e[0]&128)!==0:{var i=new Uint8Array(this.valueHexView.length+1);i[0]=0;i.set(e,1);this.valueHexView=i}break;case e[0]===0&&(e[1]&128)===0:{this.valueHexView=this.valueHexView.subarray(1)}break}return this.toBER(t)};e.prototype.fromBER=function(e,i,r){var n=t.prototype.fromBER.call(this,e,i,r);if(n===-1){return n}this.setValueHex();return n};e.prototype.toBER=function(t){return t?new ArrayBuffer(this.valueHexView.length):this.valueHexView.slice().buffer};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{valueDec:this.valueDec})};e.prototype.toString=function(){var t=this.valueHexView.length*8-1;var e=new Uint8Array(this.valueHexView.length*8/3);var i=0;var r;var n=this.valueHexView;var o="";var a=false;for(var s=n.byteLength-1;s>=0;s--){r=n[s];for(var u=0;u<8;u++){if((r&1)===1){switch(i){case t:e=gt(mt(i),e);o="-";break;default:e=At(e,mt(i))}}i++;r>>=1}}for(var u=0;u<e.length;u++){if(e[u])a=true;if(a)o+=w.charAt(e[u])}if(a===false)o+=w.charAt(0);return o};return e}(H(F));Ct=wt;wt.NAME="IntegerValueBlock";(function(){Object.defineProperty(Ct.prototype,"valueHex",{set:function(t){this.valueHexView=new Uint8Array(t);this.setValueHex()},get:function(){return this.valueHexView.slice().buffer}})})();var Et;var bt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e,wt)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=2;return i}e.prototype.toBigInt=function(){S();return BigInt(this.valueBlock.toString())};e.fromBigInt=function(t){S();var i=BigInt(t);var r=new m;var n=i.toString(16).replace(/^-/,"");var o=new Uint8Array(u.Convert.FromHex(n));if(i<0){var a=new Uint8Array(o.length+(o[0]&128?1:0));a[0]|=128;var s=BigInt("0x".concat(u.Convert.ToHex(a)));var c=s+i;var f=u.BufferSourceConverter.toUint8Array(u.Convert.FromHex(c.toString(16)));f[0]|=128;r.write(f)}else{if(o[0]&128){r.write(new Uint8Array([0]))}r.write(o)}var v=new e({valueHex:r.final()});return v};e.prototype.convertToDER=function(){var t=new e({valueHex:this.valueBlock.valueHexView});t.valueBlock.toDER();return t};e.prototype.convertFromDER=function(){return new e({valueHex:this.valueBlock.valueHexView[0]===0?this.valueBlock.valueHexView.subarray(1):this.valueBlock.valueHexView})};e.prototype.onAsciiEncoding=function(){return"".concat(this.constructor.NAME," : ").concat(this.valueBlock.toString())};return e}(W);Et=bt;(function(){G.Integer=Et})();bt.NAME="INTEGER";var Pt;var Dt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=10;return i}return e}(bt);Pt=Dt;(function(){G.Enumerated=Pt})();Dt.NAME="ENUMERATED";var _t=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.valueDec,n=r===void 0?-1:r,o=e.isFirstSid,a=o===void 0?false:o,s=__rest(e,["valueDec","isFirstSid"]);i=t.call(this,s)||this;i.valueDec=n;i.isFirstSid=a;return i}e.prototype.fromBER=function(t,e,i){if(!i){return e}var r=u.BufferSourceConverter.toUint8Array(t);if(!A(this,r,e,i)){return-1}var n=r.subarray(e,e+i);this.valueHexView=new Uint8Array(i);for(var o=0;o<i;o++){this.valueHexView[o]=n[o]&127;this.blockLength++;if((n[o]&128)===0)break}var a=new Uint8Array(this.blockLength);for(var o=0;o<this.blockLength;o++){a[o]=this.valueHexView[o]}this.valueHexView=a;if((n[this.blockLength-1]&128)!==0){this.error="End of input reached before message was fully decoded";return-1}if(this.valueHexView[0]===0)this.warnings.push("Needlessly long format of SID encoding");if(this.blockLength<=8)this.valueDec=f(this.valueHexView,7);else{this.isHexOnly=true;this.warnings.push("Too big SID for decoding, hex only")}return e+this.blockLength};Object.defineProperty(e.prototype,"valueBigInt",{set:function(t){S();var e=BigInt(t).toString(2);while(e.length%7){e="0"+e}var i=new Uint8Array(e.length/7);for(var r=0;r<i.length;r++){i[r]=parseInt(e.slice(r*7,r*7+7),2)+(r+1<i.length?128:0)}this.fromBER(i.buffer,0,i.length)},enumerable:false,configurable:true});e.prototype.toBER=function(t){if(this.isHexOnly){if(t)return new ArrayBuffer(this.valueHexView.byteLength);var e=this.valueHexView;var i=new Uint8Array(this.blockLength);for(var r=0;r<this.blockLength-1;r++)i[r]=e[r]|128;i[this.blockLength-1]=e[this.blockLength-1];return i.buffer}var n=v(this.valueDec,7);if(n.byteLength===0){this.error="Error during encoding SID value";return R}var o=new Uint8Array(n.byteLength);if(!t){var a=new Uint8Array(n);var s=n.byteLength-1;for(var r=0;r<s;r++)o[r]=a[r]|128;o[s]=a[s]}return o};e.prototype.toString=function(){var t="";if(this.isHexOnly)t=u.Convert.ToHex(this.valueHexView);else{if(this.isFirstSid){var e=this.valueDec;if(this.valueDec<=39)t="0.";else{if(this.valueDec<=79){t="1.";e-=40}else{t="2.";e-=80}}t+=e.toString()}else t=this.valueDec.toString()}return t};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{valueDec:this.valueDec,isFirstSid:this.isFirstSid})};return e}(H(F));_t.NAME="sidBlock";var It=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.value,n=r===void 0?M:r,o=__rest(e,["value"]);i=t.call(this,o)||this;i.value=[];if(n){i.fromString(n)}return i}e.prototype.fromBER=function(t,e,i){var r=e;while(i>0){var n=new _t;r=n.fromBER(t,r,i);if(r===-1){this.blockLength=0;this.error=n.error;return r}if(this.value.length===0)n.isFirstSid=true;this.blockLength+=n.blockLength;i-=n.blockLength;this.value.push(n)}return r};e.prototype.toBER=function(t){var e=[];for(var i=0;i<this.value.length;i++){var r=this.value[i].toBER(t);if(r.byteLength===0){this.error=this.value[i].error;return R}e.push(r)}return C(e)};e.prototype.fromString=function(t){this.value=[];var e=0;var i=0;var r="";var n=false;do{i=t.indexOf(".",e);if(i===-1)r=t.substring(e);else r=t.substring(e,i);e=i+1;if(n){var o=this.value[0];var a=0;switch(o.valueDec){case 0:break;case 1:a=40;break;case 2:a=80;break;default:this.value=[];return}var s=parseInt(r,10);if(isNaN(s))return;o.valueDec=s+a;n=false}else{var o=new _t;if(r>Number.MAX_SAFE_INTEGER){S();var u=BigInt(r);o.valueBigInt=u}else{o.valueDec=parseInt(r,10);if(isNaN(o.valueDec))return}if(!this.value.length){o.isFirstSid=true;n=true}this.value.push(o)}}while(i!==-1)};e.prototype.toString=function(){var t="";var e=false;for(var i=0;i<this.value.length;i++){e=this.value[i].isHexOnly;var r=this.value[i].toString();if(i!==0)t="".concat(t,".");if(e){r="{".concat(r,"}");if(this.value[i].isFirstSid)t="2.{".concat(r," - 80}");else t+=r}else t+=r}return t};e.prototype.toJSON=function(){var e=__assign(__assign({},t.prototype.toJSON.call(this)),{value:this.toString(),sidArray:[]});for(var i=0;i<this.value.length;i++){e.sidArray.push(this.value[i].toJSON())}return e};return e}(F);It.NAME="ObjectIdentifierValueBlock";var Bt;var xt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e,It)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=6;return i}e.prototype.getValue=function(){return this.valueBlock.toString()};e.prototype.setValue=function(t){this.valueBlock.fromString(t)};e.prototype.onAsciiEncoding=function(){return"".concat(this.constructor.NAME," : ").concat(this.valueBlock.toString()||"empty")};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{value:this.getValue()})};return e}(W);Bt=xt;(function(){G.ObjectIdentifier=Bt})();xt.NAME="OBJECT IDENTIFIER";var Tt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.valueDec,n=r===void 0?0:r,o=__rest(e,["valueDec"]);i=t.call(this,o)||this;i.valueDec=n;return i}e.prototype.fromBER=function(t,e,i){if(i===0)return e;var r=u.BufferSourceConverter.toUint8Array(t);if(!A(this,r,e,i))return-1;var n=r.subarray(e,e+i);this.valueHexView=new Uint8Array(i);for(var o=0;o<i;o++){this.valueHexView[o]=n[o]&127;this.blockLength++;if((n[o]&128)===0)break}var a=new Uint8Array(this.blockLength);for(var o=0;o<this.blockLength;o++)a[o]=this.valueHexView[o];this.valueHexView=a;if((n[this.blockLength-1]&128)!==0){this.error="End of input reached before message was fully decoded";return-1}if(this.valueHexView[0]===0)this.warnings.push("Needlessly long format of SID encoding");if(this.blockLength<=8)this.valueDec=f(this.valueHexView,7);else{this.isHexOnly=true;this.warnings.push("Too big SID for decoding, hex only")}return e+this.blockLength};e.prototype.toBER=function(t){if(this.isHexOnly){if(t)return new ArrayBuffer(this.valueHexView.byteLength);var e=this.valueHexView;var i=new Uint8Array(this.blockLength);for(var r=0;r<this.blockLength-1;r++)i[r]=e[r]|128;i[this.blockLength-1]=e[this.blockLength-1];return i.buffer}var n=v(this.valueDec,7);if(n.byteLength===0){this.error="Error during encoding SID value";return R}var o=new Uint8Array(n.byteLength);if(!t){var a=new Uint8Array(n);var s=n.byteLength-1;for(var r=0;r<s;r++)o[r]=a[r]|128;o[s]=a[s]}return o.buffer};e.prototype.toString=function(){var t="";if(this.isHexOnly)t=u.Convert.ToHex(this.valueHexView);else{t=this.valueDec.toString()}return t};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{valueDec:this.valueDec})};return e}(H(U));Tt.NAME="relativeSidBlock";var Ot=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.value,n=r===void 0?M:r,o=__rest(e,["value"]);i=t.call(this,o)||this;i.value=[];if(n){i.fromString(n)}return i}e.prototype.fromBER=function(t,e,i){var r=e;while(i>0){var n=new Tt;r=n.fromBER(t,r,i);if(r===-1){this.blockLength=0;this.error=n.error;return r}this.blockLength+=n.blockLength;i-=n.blockLength;this.value.push(n)}return r};e.prototype.toBER=function(t,e){var i=[];for(var r=0;r<this.value.length;r++){var n=this.value[r].toBER(t);if(n.byteLength===0){this.error=this.value[r].error;return R}i.push(n)}return C(i)};e.prototype.fromString=function(t){this.value=[];var e=0;var i=0;var r="";do{i=t.indexOf(".",e);if(i===-1)r=t.substring(e);else r=t.substring(e,i);e=i+1;var n=new Tt;n.valueDec=parseInt(r,10);if(isNaN(n.valueDec))return true;this.value.push(n)}while(i!==-1);return true};e.prototype.toString=function(){var t="";var e=false;for(var i=0;i<this.value.length;i++){e=this.value[i].isHexOnly;var r=this.value[i].toString();if(i!==0)t="".concat(t,".");if(e){r="{".concat(r,"}");t+=r}else t+=r}return t};e.prototype.toJSON=function(){var e=__assign(__assign({},t.prototype.toJSON.call(this)),{value:this.toString(),sidArray:[]});for(var i=0;i<this.value.length;i++)e.sidArray.push(this.value[i].toJSON());return e};return e}(F);Ot.NAME="RelativeObjectIdentifierValueBlock";var Mt;var Rt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e,Ot)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=13;return i}e.prototype.getValue=function(){return this.valueBlock.toString()};e.prototype.setValue=function(t){this.valueBlock.fromString(t)};e.prototype.onAsciiEncoding=function(){return"".concat(this.constructor.NAME," : ").concat(this.valueBlock.toString()||"empty")};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{value:this.getValue()})};return e}(W);Mt=Rt;(function(){G.RelativeObjectIdentifier=Mt})();Rt.NAME="RelativeObjectIdentifier";var Nt;var kt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=16;return i}return e}(rt);Nt=kt;(function(){G.Sequence=Nt})();kt.NAME="SEQUENCE";var Kt;var jt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=17;return i}return e}(rt);Kt=jt;(function(){G.Set=Kt})();jt.NAME="SET";var Ht=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=__rest(e,[]);i=t.call(this,r)||this;i.isHexOnly=true;i.value=M;return i}e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{value:this.value})};return e}(H(F));Ht.NAME="StringValueBlock";var Ut=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Ht);Ut.NAME="SimpleStringValueBlock";var Ft=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=__rest(e,[]);return t.call(this,i,Ut)||this}e.prototype.fromBuffer=function(t){this.valueBlock.value=String.fromCharCode.apply(null,u.BufferSourceConverter.toUint8Array(t))};e.prototype.fromString=function(t){var e=t.length;var i=this.valueBlock.valueHexView=new Uint8Array(e);for(var r=0;r<e;r++)i[r]=t.charCodeAt(r);this.valueBlock.value=t};return e}(q);Ft.NAME="SIMPLE STRING";var Lt=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.fromBuffer=function(t){this.valueBlock.valueHexView=u.BufferSourceConverter.toUint8Array(t);try{this.valueBlock.value=u.Convert.ToUtf8String(t)}catch(e){this.warnings.push('Error during "decodeURIComponent": '.concat(e,", using raw string"));this.valueBlock.value=u.Convert.ToBinary(t)}};e.prototype.fromString=function(t){this.valueBlock.valueHexView=new Uint8Array(u.Convert.FromUtf8String(t));this.valueBlock.value=t};return e}(Ft);Lt.NAME="Utf8StringValueBlock";var Vt;var Gt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=12;return i}return e}(Lt);Vt=Gt;(function(){G.Utf8String=Vt})();Gt.NAME="UTF8String";var Wt=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.fromBuffer=function(t){this.valueBlock.value=u.Convert.ToUtf16String(t);this.valueBlock.valueHexView=u.BufferSourceConverter.toUint8Array(t)};e.prototype.fromString=function(t){this.valueBlock.value=t;this.valueBlock.valueHexView=new Uint8Array(u.Convert.FromUtf16String(t))};return e}(Ft);Wt.NAME="BmpStringValueBlock";var Qt;var qt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=__rest(e,[]);i=t.call(this,r)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=30;return i}return e}(Wt);Qt=qt;(function(){G.BmpString=Qt})();qt.NAME="BMPString";var zt=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.fromBuffer=function(t){var e=ArrayBuffer.isView(t)?t.slice().buffer:t.slice(0);var i=new Uint8Array(e);for(var r=0;r<i.length;r+=4){i[r]=i[r+3];i[r+1]=i[r+2];i[r+2]=0;i[r+3]=0}this.valueBlock.value=String.fromCharCode.apply(null,new Uint32Array(e))};e.prototype.fromString=function(t){var e=t.length;var i=this.valueBlock.valueHexView=new Uint8Array(e*4);for(var r=0;r<e;r++){var n=v(t.charCodeAt(r),8);var o=new Uint8Array(n);if(o.length>4)continue;var a=4-o.length;for(var s=o.length-1;s>=0;s--)i[r*4+s+a]=o[s]}this.valueBlock.value=t};return e}(Ft);zt.NAME="UniversalStringValueBlock";var Zt;var $t=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=__rest(e,[]);i=t.call(this,r)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=28;return i}return e}(zt);Zt=$t;(function(){G.UniversalString=Zt})();$t.NAME="UniversalString";var Xt;var Yt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=18;return i}return e}(Ft);Xt=Yt;(function(){G.NumericString=Xt})();Yt.NAME="NumericString";var Jt;var te=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=19;return i}return e}(Ft);Jt=te;(function(){G.PrintableString=Jt})();te.NAME="PrintableString";var ee;var ie=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=20;return i}return e}(Ft);ee=ie;(function(){G.TeletexString=ee})();ie.NAME="TeletexString";var re;var ne=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=21;return i}return e}(Ft);re=ne;(function(){G.VideotexString=re})();ne.NAME="VideotexString";var oe;var ae=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=22;return i}return e}(Ft);oe=ae;(function(){G.IA5String=oe})();ae.NAME="IA5String";var se;var ue=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=25;return i}return e}(Ft);se=ue;(function(){G.GraphicString=se})();ue.NAME="GraphicString";var ce;var fe=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=26;return i}return e}(Ft);ce=fe;(function(){G.VisibleString=ce})();fe.NAME="VisibleString";var ve;var he=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=27;return i}return e}(Ft);ve=he;(function(){G.GeneralString=ve})();he.NAME="GeneralString";var de;var le=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=29;return i}return e}(Ft);de=le;(function(){G.CharacterString=de})();le.NAME="CharacterString";var pe;var ye=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.value,n=e.valueDate,o=__rest(e,["value","valueDate"]);i=t.call(this,o)||this;i.year=0;i.month=0;i.day=0;i.hour=0;i.minute=0;i.second=0;if(r){i.fromString(r);i.valueBlock.valueHexView=new Uint8Array(r.length);for(var a=0;a<r.length;a++)i.valueBlock.valueHexView[a]=r.charCodeAt(a)}if(n){i.fromDate(n);i.valueBlock.valueHexView=new Uint8Array(i.toBuffer())}i.idBlock.tagClass=1;i.idBlock.tagNumber=23;return i}e.prototype.fromBuffer=function(t){this.fromString(String.fromCharCode.apply(null,u.BufferSourceConverter.toUint8Array(t)))};e.prototype.toBuffer=function(){var t=this.toString();var e=new ArrayBuffer(t.length);var i=new Uint8Array(e);for(var r=0;r<t.length;r++)i[r]=t.charCodeAt(r);return e};e.prototype.fromDate=function(t){this.year=t.getUTCFullYear();this.month=t.getUTCMonth()+1;this.day=t.getUTCDate();this.hour=t.getUTCHours();this.minute=t.getUTCMinutes();this.second=t.getUTCSeconds()};e.prototype.toDate=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second))};e.prototype.fromString=function(t){var e=/(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})Z/gi;var i=e.exec(t);if(i===null){this.error="Wrong input string for conversion";return}var r=parseInt(i[1],10);if(r>=50)this.year=1900+r;else this.year=2e3+r;this.month=parseInt(i[2],10);this.day=parseInt(i[3],10);this.hour=parseInt(i[4],10);this.minute=parseInt(i[5],10);this.second=parseInt(i[6],10)};e.prototype.toString=function(e){if(e===void 0){e="iso"}if(e==="iso"){var i=new Array(7);i[0]=y(this.year<2e3?this.year-1900:this.year-2e3,2);i[1]=y(this.month,2);i[2]=y(this.day,2);i[3]=y(this.hour,2);i[4]=y(this.minute,2);i[5]=y(this.second,2);i[6]="Z";return i.join("")}return t.prototype.toString.call(this,e)};e.prototype.onAsciiEncoding=function(){return"".concat(this.constructor.NAME," : ").concat(this.toDate().toISOString())};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second})};return e}(fe);pe=ye;(function(){G.UTCTime=pe})();ye.NAME="UTCTime";var Se;var Ce=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i;var r=t.call(this,e)||this;(i=r.millisecond)!==null&&i!==void 0?i:r.millisecond=0;r.idBlock.tagClass=1;r.idBlock.tagNumber=24;return r}e.prototype.fromDate=function(e){t.prototype.fromDate.call(this,e);this.millisecond=e.getUTCMilliseconds()};e.prototype.toDate=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond))};e.prototype.fromString=function(t){var e=false;var i="";var r="";var n=0;var o;var a=0;var s=0;if(t[t.length-1]==="Z"){i=t.substring(0,t.length-1);e=true}else{var u=new Number(t[t.length-1]);if(isNaN(u.valueOf()))throw new Error("Wrong input string for conversion");i=t}if(e){if(i.indexOf("+")!==-1)throw new Error("Wrong input string for conversion");if(i.indexOf("-")!==-1)throw new Error("Wrong input string for conversion")}else{var c=1;var f=i.indexOf("+");var v="";if(f===-1){f=i.indexOf("-");c=-1}if(f!==-1){v=i.substring(f+1);i=i.substring(0,f);if(v.length!==2&&v.length!==4)throw new Error("Wrong input string for conversion");var u=parseInt(v.substring(0,2),10);if(isNaN(u.valueOf()))throw new Error("Wrong input string for conversion");a=c*u;if(v.length===4){u=parseInt(v.substring(2,4),10);if(isNaN(u.valueOf()))throw new Error("Wrong input string for conversion");s=c*u}}}var h=i.indexOf(".");if(h===-1)h=i.indexOf(",");if(h!==-1){var d=new Number("0".concat(i.substring(h)));if(isNaN(d.valueOf()))throw new Error("Wrong input string for conversion");n=d.valueOf();r=i.substring(0,h)}else r=i;switch(true){case r.length===8:o=/(\d{4})(\d{2})(\d{2})/gi;if(h!==-1)throw new Error("Wrong input string for conversion");break;case r.length===10:o=/(\d{4})(\d{2})(\d{2})(\d{2})/gi;if(h!==-1){var l=60*n;this.minute=Math.floor(l);l=60*(l-this.minute);this.second=Math.floor(l);l=1e3*(l-this.second);this.millisecond=Math.floor(l)}break;case r.length===12:o=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})/gi;if(h!==-1){var l=60*n;this.second=Math.floor(l);l=1e3*(l-this.second);this.millisecond=Math.floor(l)}break;case r.length===14:o=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/gi;if(h!==-1){var l=1e3*n;this.millisecond=Math.floor(l)}break;default:throw new Error("Wrong input string for conversion")}var p=o.exec(r);if(p===null)throw new Error("Wrong input string for conversion");for(var y=1;y<p.length;y++){switch(y){case 1:this.year=parseInt(p[y],10);break;case 2:this.month=parseInt(p[y],10);break;case 3:this.day=parseInt(p[y],10);break;case 4:this.hour=parseInt(p[y],10)+a;break;case 5:this.minute=parseInt(p[y],10)+s;break;case 6:this.second=parseInt(p[y],10);break;default:throw new Error("Wrong input string for conversion")}}if(e===false){var S=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond);this.year=S.getUTCFullYear();this.month=S.getUTCMonth();this.day=S.getUTCDay();this.hour=S.getUTCHours();this.minute=S.getUTCMinutes();this.second=S.getUTCSeconds();this.millisecond=S.getUTCMilliseconds()}};e.prototype.toString=function(e){if(e===void 0){e="iso"}if(e==="iso"){var i=[];i.push(y(this.year,4));i.push(y(this.month,2));i.push(y(this.day,2));i.push(y(this.hour,2));i.push(y(this.minute,2));i.push(y(this.second,2));if(this.millisecond!==0){i.push(".");i.push(y(this.millisecond,3))}i.push("Z");return i.join("")}return t.prototype.toString.call(this,e)};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{millisecond:this.millisecond})};return e}(ye);Se=Ce;(function(){G.GeneralizedTime=Se})();Ce.NAME="GeneralizedTime";var Ae;var me=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=31;return i}return e}(Gt);Ae=me;(function(){G.DATE=Ae})();me.NAME="DATE";var ge;var we=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=32;return i}return e}(Gt);ge=we;(function(){G.TimeOfDay=ge})();we.NAME="TimeOfDay";var Ee;var be=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=33;return i}return e}(Gt);Ee=be;(function(){G.DateTime=Ee})();be.NAME="DateTime";var Pe;var De=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=34;return i}return e}(Gt);Pe=De;(function(){G.Duration=Pe})();De.NAME="Duration";var _e;var Ie=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=14;return i}return e}(Gt);_e=Ie;(function(){G.TIME=_e})();Ie.NAME="TIME";var Be=function(){function t(t){var e=t===void 0?{}:t,i=e.name,r=i===void 0?M:i,n=e.optional,o=n===void 0?false:n;this.name=r;this.optional=o}return t}();var xe=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.value,n=r===void 0?[]:r,o=__rest(e,["value"]);i=t.call(this,o)||this;i.value=n;return i}return e}(Be);var Te=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.value,n=r===void 0?new Be:r,o=e.local,a=o===void 0?false:o,s=__rest(e,["value","local"]);i=t.call(this,s)||this;i.value=n;i.local=a;return i}return e}(Be);var Oe=function(){function t(t){var e=t===void 0?{}:t,i=e.data,r=i===void 0?N:i;this.dataView=u.BufferSourceConverter.toUint8Array(r)}Object.defineProperty(t.prototype,"data",{get:function(){return this.dataView.slice().buffer},set:function(t){this.dataView=u.BufferSourceConverter.toUint8Array(t)},enumerable:false,configurable:true});t.prototype.fromBER=function(t,e,i){var r=e+i;this.dataView=u.BufferSourceConverter.toUint8Array(t).subarray(e,r);return r};t.prototype.toBER=function(t){return this.dataView.slice().buffer};return t}();function Me(t,e,i){if(i instanceof xe){for(var r=0;r<i.value.length;r++){var n=Me(t,e,i.value[r]);if(n.verified){return{verified:true,result:t}}}{var o={verified:false,result:{error:"Wrong values for Choice type"}};if(i.hasOwnProperty(E))o.name=i.name;return o}}if(i instanceof Be){if(i.hasOwnProperty(E))t[i.name]=e;return{verified:true,result:t}}if(t instanceof Object===false){return{verified:false,result:{error:"Wrong root object"}}}if(e instanceof Object===false){return{verified:false,result:{error:"Wrong ASN.1 data"}}}if(i instanceof Object===false){return{verified:false,result:{error:"Wrong ASN.1 schema"}}}if(D in i===false){return{verified:false,result:{error:"Wrong ASN.1 schema"}}}if(x in i.idBlock===false){return{verified:false,result:{error:"Wrong ASN.1 schema"}}}if(T in i.idBlock===false){return{verified:false,result:{error:"Wrong ASN.1 schema"}}}var a=i.idBlock.toBER(false);if(a.byteLength===0){return{verified:false,result:{error:"Error encoding idBlock for ASN.1 schema"}}}var s=i.idBlock.fromBER(a,0,a.byteLength);if(s===-1){return{verified:false,result:{error:"Error decoding idBlock for ASN.1 schema"}}}if(i.idBlock.hasOwnProperty(_)===false){return{verified:false,result:{error:"Wrong ASN.1 schema"}}}if(i.idBlock.tagClass!==e.idBlock.tagClass){return{verified:false,result:t}}if(i.idBlock.hasOwnProperty(I)===false){return{verified:false,result:{error:"Wrong ASN.1 schema"}}}if(i.idBlock.tagNumber!==e.idBlock.tagNumber){return{verified:false,result:t}}if(i.idBlock.hasOwnProperty(B)===false){return{verified:false,result:{error:"Wrong ASN.1 schema"}}}if(i.idBlock.isConstructed!==e.idBlock.isConstructed){return{verified:false,result:t}}if(!(P in i.idBlock)){return{verified:false,result:{error:"Wrong ASN.1 schema"}}}if(i.idBlock.isHexOnly!==e.idBlock.isHexOnly){return{verified:false,result:t}}if(i.idBlock.isHexOnly){if(b in i.idBlock===false){return{verified:false,result:{error:"Wrong ASN.1 schema"}}}var u=i.idBlock.valueHexView;var c=e.idBlock.valueHexView;if(u.length!==c.length){return{verified:false,result:t}}for(var f=0;f<u.length;f++){if(u[f]!==c[1]){return{verified:false,result:t}}}}if(i.name){i.name=i.name.replace(/^\s+|\s+$/g,M);if(i.name)t[i.name]=e}if(i instanceof G.Constructed){var v=0;var n={verified:false,result:{error:"Unknown error"}};var h=i.valueBlock.value.length;if(h>0){if(i.valueBlock.value[0]instanceof Te){h=e.valueBlock.value.length}}if(h===0){return{verified:true,result:t}}if(e.valueBlock.value.length===0&&i.valueBlock.value.length!==0){var d=true;for(var f=0;f<i.valueBlock.value.length;f++)d=d&&(i.valueBlock.value[f].optional||false);if(d){return{verified:true,result:t}}if(i.name){i.name=i.name.replace(/^\s+|\s+$/g,M);if(i.name)delete t[i.name]}t.error="Inconsistent object length";return{verified:false,result:t}}for(var f=0;f<h;f++){if(f-v>=e.valueBlock.value.length){if(i.valueBlock.value[f].optional===false){var o={verified:false,result:t};t.error="Inconsistent length between ASN.1 data and schema";if(i.name){i.name=i.name.replace(/^\s+|\s+$/g,M);if(i.name){delete t[i.name];o.name=i.name}}return o}}else{if(i.valueBlock.value[0]instanceof Te){n=Me(t,e.valueBlock.value[f],i.valueBlock.value[0].value);if(n.verified===false){if(i.valueBlock.value[0].optional)v++;else{if(i.name){i.name=i.name.replace(/^\s+|\s+$/g,M);if(i.name)delete t[i.name]}return n}}if(E in i.valueBlock.value[0]&&i.valueBlock.value[0].name.length>0){var l={};if(O in i.valueBlock.value[0]&&i.valueBlock.value[0].local)l=e;else l=t;if(typeof l[i.valueBlock.value[0].name]==="undefined")l[i.valueBlock.value[0].name]=[];l[i.valueBlock.value[0].name].push(e.valueBlock.value[f])}}else{n=Me(t,e.valueBlock.value[f-v],i.valueBlock.value[f]);if(n.verified===false){if(i.valueBlock.value[f].optional)v++;else{if(i.name){i.name=i.name.replace(/^\s+|\s+$/g,M);if(i.name)delete t[i.name]}return n}}}}}if(n.verified===false){var o={verified:false,result:t};if(i.name){i.name=i.name.replace(/^\s+|\s+$/g,M);if(i.name){delete t[i.name];o.name=i.name}}return o}return{verified:true,result:t}}if(i.primitiveSchema&&b in e.valueBlock){var p=Y(e.valueBlock.valueHexView);if(p.offset===-1){var o={verified:false,result:p.result};if(i.name){i.name=i.name.replace(/^\s+|\s+$/g,M);if(i.name){delete t[i.name];o.name=i.name}}return o}return Me(t,p.result,i.primitiveSchema)}return{verified:true,result:t}}function Re(t,e){if(e instanceof Object===false){return{verified:false,result:{error:"Wrong ASN.1 schema type"}}}var i=Y(u.BufferSourceConverter.toUint8Array(t));if(i.offset===-1){return{verified:false,result:i.result}}return Me(i.result,i.result,e)}var Ne=Object.freeze({__proto__:null,Any:Be,BaseBlock:W,BaseStringBlock:q,BitString:St,BmpString:qt,Boolean:vt,CharacterString:le,Choice:xe,Constructed:rt,DATE:me,DateTime:be,Duration:De,EndOfContent:at,Enumerated:Dt,GeneralString:he,GeneralizedTime:Ce,GraphicString:ue,HexBlock:H,IA5String:ae,Integer:bt,Null:ut,NumericString:Yt,ObjectIdentifier:xt,OctetString:lt,Primitive:$,PrintableString:te,RawData:Oe,RelativeObjectIdentifier:Rt,Repeated:Te,Sequence:kt,Set:jt,TIME:Ie,TeletexString:ie,TimeOfDay:we,UTCTime:ye,UniversalString:$t,Utf8String:Gt,ValueBlock:F,VideotexString:ne,ViewWriter:m,VisibleString:fe,compareSchema:Me,fromBER:J,verifySchema:Re});var ke;t("ah",ke);(function(t){t[t["Sequence"]=0]="Sequence";t[t["Set"]=1]="Set";t[t["Choice"]=2]="Choice"})(ke||t("ah",ke={}));var Ke;t("af",Ke);(function(t){t[t["Any"]=1]="Any";t[t["Boolean"]=2]="Boolean";t[t["OctetString"]=3]="OctetString";t[t["BitString"]=4]="BitString";t[t["Integer"]=5]="Integer";t[t["Enumerated"]=6]="Enumerated";t[t["ObjectIdentifier"]=7]="ObjectIdentifier";t[t["Utf8String"]=8]="Utf8String";t[t["BmpString"]=9]="BmpString";t[t["UniversalString"]=10]="UniversalString";t[t["NumericString"]=11]="NumericString";t[t["PrintableString"]=12]="PrintableString";t[t["TeletexString"]=13]="TeletexString";t[t["VideotexString"]=14]="VideotexString";t[t["IA5String"]=15]="IA5String";t[t["GraphicString"]=16]="GraphicString";t[t["VisibleString"]=17]="VisibleString";t[t["GeneralString"]=18]="GeneralString";t[t["CharacterString"]=19]="CharacterString";t[t["UTCTime"]=20]="UTCTime";t[t["GeneralizedTime"]=21]="GeneralizedTime";t[t["DATE"]=22]="DATE";t[t["TimeOfDay"]=23]="TimeOfDay";t[t["DateTime"]=24]="DateTime";t[t["Duration"]=25]="Duration";t[t["TIME"]=26]="TIME";t[t["Null"]=27]="Null"})(Ke||t("af",Ke={}));var je=function(){function t(t,e){if(e===void 0){e=0}this.unusedBits=0;this.value=new ArrayBuffer(0);if(t){if(typeof t==="number"){this.fromNumber(t)}else if(u.BufferSourceConverter.isBufferSource(t)){this.unusedBits=e;this.value=u.BufferSourceConverter.toArrayBuffer(t)}else{throw TypeError("Unsupported type of 'params' argument for BitString")}}}t.prototype.fromASN=function(t){if(!(t instanceof St)){throw new TypeError("Argument 'asn' is not instance of ASN.1 BitString")}this.unusedBits=t.valueBlock.unusedBits;this.value=t.valueBlock.valueHex;return this};t.prototype.toASN=function(){return new St({unusedBits:this.unusedBits,valueHex:this.value})};t.prototype.toSchema=function(t){return new St({name:t})};t.prototype.toNumber=function(){var t="";var e=new Uint8Array(this.value);for(var i=0,r=e;i<r.length;i++){var n=r[i];t+=n.toString(2).padStart(8,"0")}t=t.split("").reverse().join("");if(this.unusedBits){t=t.slice(this.unusedBits).padStart(this.unusedBits,"0")}return parseInt(t,2)};t.prototype.fromNumber=function(t){var e=t.toString(2);var i=e.length+7>>3;this.unusedBits=(i<<3)-e.length;var r=new Uint8Array(i);e=e.padStart(i<<3,"0").split("").reverse().join("");var n=0;while(n<i){r[n]=parseInt(e.slice(n<<3,(n<<3)+8),2);n++}this.value=r.buffer};return t}();var He=function(){function t(t){if(typeof t==="number"){this.buffer=new ArrayBuffer(t)}else{if(u.BufferSourceConverter.isBufferSource(t)){this.buffer=u.BufferSourceConverter.toArrayBuffer(t)}else if(Array.isArray(t)){this.buffer=new Uint8Array(t)}else{this.buffer=new ArrayBuffer(0)}}}Object.defineProperty(t.prototype,"byteLength",{get:function(){return this.buffer.byteLength},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"byteOffset",{get:function(){return 0},enumerable:false,configurable:true});t.prototype.fromASN=function(t){if(!(t instanceof lt)){throw new TypeError("Argument 'asn' is not instance of ASN.1 OctetString")}this.buffer=t.valueBlock.valueHex;return this};t.prototype.toASN=function(){return new lt({valueHex:this.buffer})};t.prototype.toSchema=function(t){return new lt({name:t})};return t}();t("a1",He);var Ue={fromASN:function(t){return t instanceof ut?null:t.valueBeforeDecodeView},toASN:function(t){if(t===null){return new ut}var e=J(t);if(e.result.error){throw new Error(e.result.error)}return e.result}};var Fe={fromASN:function(t){return t.valueBlock.valueHexView.byteLength>=4?t.valueBlock.toString():t.valueBlock.valueDec},toASN:function(t){return new bt({value:+t})}};var Le={fromASN:function(t){return t.valueBlock.valueDec},toASN:function(t){return new Dt({value:t})}};var Ve=t("al",{fromASN:function(t){return t.valueBlock.valueHexView},toASN:function(t){return new bt({valueHex:t})}});var Ge={fromASN:function(t){return t.valueBlock.valueHexView},toASN:function(t){return new St({valueHex:t})}};var We={fromASN:function(t){return t.valueBlock.toString()},toASN:function(t){return new xt({value:t})}};var Qe={fromASN:function(t){return t.valueBlock.value},toASN:function(t){return new vt({value:t})}};var qe={fromASN:function(t){return t.valueBlock.valueHexView},toASN:function(t){return new lt({valueHex:t})}};var ze={fromASN:function(t){return new He(t.getValue())},toASN:function(t){return t.toASN()}};function Ze(t){return{fromASN:function(t){return t.valueBlock.value},toASN:function(e){return new t({value:e})}}}var $e=Ze(Gt);var Xe=Ze(qt);var Ye=Ze($t);var Je=Ze(Yt);var ti=Ze(te);var ei=Ze(ie);var ii=Ze(ne);var ri=Ze(ae);var ni=Ze(ue);var oi=Ze(fe);var ai=Ze(he);var si=Ze(le);var ui={fromASN:function(t){return t.toDate()},toASN:function(t){return new ye({valueDate:t})}};var ci={fromASN:function(t){return t.toDate()},toASN:function(t){return new Ce({valueDate:t})}};var fi={fromASN:function(){return null},toASN:function(){return new ut}};function vi(t){switch(t){case Ke.Any:return Ue;case Ke.BitString:return Ge;case Ke.BmpString:return Xe;case Ke.Boolean:return Qe;case Ke.CharacterString:return si;case Ke.Enumerated:return Le;case Ke.GeneralString:return ai;case Ke.GeneralizedTime:return ci;case Ke.GraphicString:return ni;case Ke.IA5String:return ri;case Ke.Integer:return Fe;case Ke.Null:return fi;case Ke.NumericString:return Je;case Ke.ObjectIdentifier:return We;case Ke.OctetString:return qe;case Ke.PrintableString:return ti;case Ke.TeletexString:return ei;case Ke.UTCTime:return ui;case Ke.UniversalString:return Ye;case Ke.Utf8String:return $e;case Ke.VideotexString:return ii;case Ke.VisibleString:return oi;default:return null}}function hi(t){if(typeof t==="function"&&t.prototype){if(t.prototype.toASN&&t.prototype.fromASN){return true}else{return hi(t.prototype)}}else{return!!(t&&typeof t==="object"&&"toASN"in t&&"fromASN"in t)}}function di(t){var e;if(t){var i=Object.getPrototypeOf(t);if(((e=i===null||i===void 0?void 0:i.prototype)===null||e===void 0?void 0:e.constructor)===Array){return true}return di(i)}return false}function li(t,e){if(!(t&&e)){return false}if(t.byteLength!==e.byteLength){return false}var i=new Uint8Array(t);var r=new Uint8Array(e);for(var n=0;n<t.byteLength;n++){if(i[n]!==r[n]){return false}}return true}var pi=function(){function t(){this.items=new WeakMap}t.prototype.has=function(t){return this.items.has(t)};t.prototype.get=function(t,e){if(e===void 0){e=false}var i=this.items.get(t);if(!i){throw new Error("Cannot get schema for '".concat(t.prototype.constructor.name,"' target"))}if(e&&!i.schema){throw new Error("Schema '".concat(t.prototype.constructor.name,"' doesn't contain ASN.1 schema. Call 'AsnSchemaStorage.cache'."))}return i};t.prototype.cache=function(t){var e=this.get(t);if(!e.schema){e.schema=this.create(t,true)}};t.prototype.createDefault=function(t){var e={type:ke.Sequence,items:{}};var i=this.findParentSchema(t);if(i){Object.assign(e,i);e.items=Object.assign({},e.items,i.items)}return e};t.prototype.create=function(t,e){var i=this.items.get(t)||this.createDefault(t);var r=[];for(var n in i.items){var o=i.items[n];var a=e?n:"";var s=void 0;if(typeof o.type==="number"){var u=Ke[o.type];var c=Ne[u];if(!c){throw new Error("Cannot get ASN1 class by name '".concat(u,"'"))}s=new c({name:a})}else if(hi(o.type)){var f=new o.type;s=f.toSchema(a)}else if(o.optional){var v=this.get(o.type);if(v.type===ke.Choice){s=new Be({name:a})}else{s=this.create(o.type,false);s.name=a}}else{s=new Be({name:a})}var h=!!o.optional||o.defaultValue!==undefined;if(o.repeated){s.name="";var d=o.repeated==="set"?jt:kt;s=new d({name:"",value:[new Te({name:a,value:s})]})}if(o.context!==null&&o.context!==undefined){if(o.implicit){if(typeof o.type==="number"||hi(o.type)){var d=o.repeated?rt:$;r.push(new d({name:a,optional:h,idBlock:{tagClass:3,tagNumber:o.context}}))}else{this.cache(o.type);var l=!!o.repeated;var p=!l?this.get(o.type,true).schema:s;p="valueBlock"in p?p.valueBlock.value:p.value;r.push(new rt({name:!l?a:"",optional:h,idBlock:{tagClass:3,tagNumber:o.context},value:p}))}}else{r.push(new rt({optional:h,idBlock:{tagClass:3,tagNumber:o.context},value:[s]}))}}else{s.optional=h;r.push(s)}}switch(i.type){case ke.Sequence:return new kt({value:r,name:""});case ke.Set:return new jt({value:r,name:""});case ke.Choice:return new xe({value:r,name:""});default:throw new Error("Unsupported ASN1 type in use")}};t.prototype.set=function(t,e){this.items.set(t,e);return this};t.prototype.findParentSchema=function(t){var e=Object.getPrototypeOf(t);if(e){var i=this.items.get(e);return i||this.findParentSchema(e)}return null};return t}();var yi=new pi;var Si=t("ag",(function(t){return function(e){var i;if(!yi.has(e)){i=yi.createDefault(e);yi.set(e,i)}else{i=yi.get(e)}Object.assign(i,t)}}));var Ci=t("ae",(function(t){return function(e,i){var r;if(!yi.has(e.constructor)){r=yi.createDefault(e.constructor);yi.set(e.constructor,r)}else{r=yi.get(e.constructor)}var n=Object.assign({},t);if(typeof n.type==="number"&&!n.converter){var o=vi(t.type);if(!o){throw new Error("Cannot get default converter for property '".concat(i,"' of ").concat(e.constructor.name))}n.converter=o}r.items[i]=n}}));var Ai=function(t){__extends(e,t);function e(){var e=t.apply(this,arguments)||this;e.schemas=[];return e}return e}(Error);var mi=function(){function t(){}t.parse=function(t,e){var i=J(t);if(i.result.error){throw new Error(i.result.error)}var r=this.fromASN(i.result,e);return r};t.fromASN=function(t,e){var i=this;var r;try{if(hi(e)){var n=new e;return n.fromASN(t)}var o=yi.get(e);yi.cache(e);var a=o.schema;if(t.constructor===rt&&o.type!==ke.Choice){a=new rt({idBlock:{tagClass:3,tagNumber:t.idBlock.tagNumber},value:o.schema.valueBlock.value});for(var s in o.items){delete t[s]}}var u=Me({},t,a);if(!u.verified){throw new Ai("Data does not match to ".concat(e.name," ASN1 schema. ").concat(u.result.error))}var c=new e;if(di(e)){if(!("value"in t.valueBlock&&Array.isArray(t.valueBlock.value))){throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.")}var f=o.itemType;if(typeof f==="number"){var v=vi(f);if(!v){throw new Error("Cannot get default converter for array item of ".concat(e.name," ASN1 schema"))}return e.from(t.valueBlock.value,(function(t){return v.fromASN(t)}))}else{return e.from(t.valueBlock.value,(function(t){return i.fromASN(t,f)}))}}var h=function(t){var e=u.result[t];if(!e){return"continue"}var n=o.items[t];var a=n.type;if(typeof a==="number"||hi(a)){var s=(r=n.converter)!==null&&r!==void 0?r:hi(a)?new a:null;if(!s){throw new Error("Converter is empty")}if(n.repeated){if(n.implicit){var f=n.repeated==="sequence"?kt:jt;var v=new f;v.valueBlock=e.valueBlock;var h=J(v.toBER(false));if(h.offset===-1){throw new Error("Cannot parse the child item. ".concat(h.result.error))}if(!("value"in h.result.valueBlock&&Array.isArray(h.result.valueBlock.value))){throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.")}var l=h.result.valueBlock.value;c[t]=Array.from(l,(function(t){return s.fromASN(t)}))}else{c[t]=Array.from(e,(function(t){return s.fromASN(t)}))}}else{var p=e;if(n.implicit){var v=void 0;if(hi(a)){v=(new a).toSchema("")}else{var y=Ke[a];var S=Ne[y];if(!S){throw new Error("Cannot get '".concat(y,"' class from asn1js module"))}v=new S}v.valueBlock=p.valueBlock;p=J(v.toBER(false)).result}c[t]=s.fromASN(p)}}else{if(n.repeated){if(!Array.isArray(e)){throw new Error("Cannot get list of items from the ASN.1 parsed value. ASN.1 value should be iterable.")}c[t]=Array.from(e,(function(t){return i.fromASN(t,a)}))}else{c[t]=d.fromASN(e,a)}}};var d=this;for(var s in o.items){h(s)}return c}catch(t){if(t instanceof Ai){t.schemas.push(e.name)}throw t}};return t}();t("r",mi);var gi=function(){function t(){}t.serialize=function(t){if(t instanceof W){return t.toBER(false)}return this.toASN(t).toBER(false)};t.toASN=function(e){var i=this;if(e&&typeof e==="object"&&hi(e)){return e.toASN()}if(!(e&&typeof e==="object")){throw new TypeError("Parameter 1 should be type of Object.")}var r=e.constructor;var n=yi.get(r);yi.cache(r);var o=[];if(n.itemType){if(!Array.isArray(e)){throw new TypeError("Parameter 1 should be type of Array.")}if(typeof n.itemType==="number"){var a=vi(n.itemType);if(!a){throw new Error("Cannot get default converter for array item of ".concat(r.name," ASN1 schema"))}o=e.map((function(t){return a.toASN(t)}))}else{o=e.map((function(t){return i.toAsnItem({type:n.itemType},"[]",r,t)}))}}else{for(var s in n.items){var u=n.items[s];var c=e[s];if(c===undefined||u.defaultValue===c||typeof u.defaultValue==="object"&&typeof c==="object"&&li(this.serialize(u.defaultValue),this.serialize(c))){continue}var f=t.toAsnItem(u,s,r,c);if(typeof u.context==="number"){if(u.implicit){if(!u.repeated&&(typeof u.type==="number"||hi(u.type))){var v={};v.valueHex=f instanceof ut?f.valueBeforeDecodeView:f.valueBlock.toBER();o.push(new $(__assign({optional:u.optional,idBlock:{tagClass:3,tagNumber:u.context}},v)))}else{o.push(new rt({optional:u.optional,idBlock:{tagClass:3,tagNumber:u.context},value:f.valueBlock.value}))}}else{o.push(new rt({optional:u.optional,idBlock:{tagClass:3,tagNumber:u.context},value:[f]}))}}else if(u.repeated){o=o.concat(f)}else{o.push(f)}}}var h;switch(n.type){case ke.Sequence:h=new kt({value:o});break;case ke.Set:h=new jt({value:o});break;case ke.Choice:if(!o[0]){throw new Error("Schema '".concat(r.name,"' has wrong data. Choice cannot be empty."))}h=o[0];break}return h};t.toAsnItem=function(t,e,i,r){var n=this;var o;if(typeof t.type==="number"){var a=t.converter;if(!a){throw new Error("Property '".concat(e,"' doesn't have converter for type ").concat(Ke[t.type]," in schema '").concat(i.name,"'"))}if(t.repeated){if(!Array.isArray(r)){throw new TypeError("Parameter 'objProp' should be type of Array.")}var s=Array.from(r,(function(t){return a.toASN(t)}));var u=t.repeated==="sequence"?kt:jt;o=new u({value:s})}else{o=a.toASN(r)}}else{if(t.repeated){if(!Array.isArray(r)){throw new TypeError("Parameter 'objProp' should be type of Array.")}var s=Array.from(r,(function(t){return n.toASN(t)}));var u=t.repeated==="sequence"?kt:jt;o=new u({value:s})}else{o=this.toASN(r)}}return o};return t}();var wi=function(t){__extends(e,t);function e(e){if(e===void 0){e=[]}var i=this;if(typeof e==="number"){i=t.call(this,e)||this}else{i=t.call(this)||this;for(var r=0,n=e;r<n.length;r++){var o=n[r];i.push(o)}}return i}return e}(Array);t("ai",wi);var Ei=function(){function t(){}t.serialize=function(t){return gi.serialize(t)};t.parse=function(t,e){return mi.parse(t,e)};t.toString=function(e){var i=u.BufferSourceConverter.isBufferSource(e)?u.BufferSourceConverter.toArrayBuffer(e):t.serialize(e);var r=J(i);if(r.offset===-1){throw new Error("Cannot decode ASN.1 data. ".concat(r.result.error))}return r.result.toString()};return t}();t("e",Ei);function bi(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)if(a=t[s])o=(n<3?a(o):n>3?a(e,i,o):a(e,i))||o;return n>3&&o&&Object.defineProperty(e,i,o),o}typeof SuppressedError==="function"?SuppressedError:function(t,e,i){var r=new Error(i);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};var Pi=function(){function t(){}t.isIPv4=function(t){return/^(\d{1,3}\.){3}\d{1,3}$/.test(t)};t.parseIPv4=function(t){var e=t.split(".");if(e.length!==4){throw new Error("Invalid IPv4 address")}return e.map((function(t){var e=parseInt(t,10);if(isNaN(e)||e<0||e>255){throw new Error("Invalid IPv4 address part")}return e}))};t.parseIPv6=function(t){var e=this.expandIPv6(t);var i=e.split(":");if(i.length!==8){throw new Error("Invalid IPv6 address")}return i.reduce((function(t,e){var i=parseInt(e,16);if(isNaN(i)||i<0||i>65535){throw new Error("Invalid IPv6 address part")}t.push(i>>8&255);t.push(i&255);return t}),[])};t.expandIPv6=function(t){if(!t.includes("::")){return t}var e=t.split("::");if(e.length>2){throw new Error("Invalid IPv6 address")}var i=e[0]?e[0].split(":"):[];var r=e[1]?e[1].split(":"):[];var n=8-(i.length+r.length);if(n<0){throw new Error("Invalid IPv6 address")}return __spreadArray(__spreadArray(__spreadArray([],i,true),Array(n).fill("0"),true),r,true).join(":")};t.formatIPv6=function(t){var e=[];for(var i=0;i<16;i+=2){e.push((t[i]<<8|t[i+1]).toString(16))}return this.compressIPv6(e.join(":"))};t.compressIPv6=function(t){var e=t.split(":");var i=-1;var r=0;var n=-1;var o=0;for(var a=0;a<e.length;a++){if(e[a]==="0"){if(n===-1){n=a}o++}else{if(o>r){i=n;r=o}n=-1;o=0}}if(o>r){i=n;r=o}if(r>1){var s=e.slice(0,i).join(":");var u=e.slice(i+r).join(":");return"".concat(s,"::").concat(u)}return t};t.parseCIDR=function(t){var e=t.split("/"),i=e[0],r=e[1];var n=parseInt(r,10);if(this.isIPv4(i)){if(n<0||n>32){throw new Error("Invalid IPv4 prefix length")}return[this.parseIPv4(i),n]}else{if(n<0||n>128){throw new Error("Invalid IPv6 prefix length")}return[this.parseIPv6(i),n]}};t.decodeIP=function(t){if(t.length===64&&parseInt(t,16)===0){return"::/0"}if(t.length!==16){return t}var e=parseInt(t.slice(8),16).toString(2).split("").reduce((function(t,e){return t+ +e}),0);var i=t.slice(0,8).replace(/(.{2})/g,(function(t){return"".concat(parseInt(t,16),".")}));i=i.slice(0,-1);return"".concat(i,"/").concat(e)};t.toString=function(t){var e=new Uint8Array(t);if(e.length===4){return Array.from(e).join(".")}if(e.length===16){return this.formatIPv6(e)}if(e.length===8||e.length===32){var i=e.length/2;var r=e.slice(0,i);var n=e.slice(i);var o=e.every((function(t){return t===0}));if(o){return e.length===8?"0.0.0.0/0":"::/0"}var a=n.reduce((function(t,e){return t+(e.toString(2).match(/1/g)||[]).length}),0);if(e.length===8){var s=Array.from(r).join(".");return"".concat(s,"/").concat(a)}else{var s=this.formatIPv6(r);return"".concat(s,"/").concat(a)}}return this.decodeIP(u.Convert.ToHex(t))};t.fromString=function(t){if(t.includes("/")){var e=this.parseCIDR(t),i=e[0],r=e[1];var n=new Uint8Array(i.length);var o=r;for(var a=0;a<n.length;a++){if(o>=8){n[a]=255;o-=8}else if(o>0){n[a]=255<<8-o;o=0}}var s=new Uint8Array(i.length*2);s.set(i,0);s.set(n,i.length);return s.buffer}var u=this.isIPv4(t)?this.parseIPv4(t):this.parseIPv6(t);return new Uint8Array(u).buffer};return t}();var Di,_i,Ii;var Bi=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}t.prototype.toString=function(){return this.bmpString||this.printableString||this.teletexString||this.universalString||this.utf8String||""};return t}();bi([Ci({type:Ke.TeletexString})],Bi.prototype,"teletexString",void 0);bi([Ci({type:Ke.PrintableString})],Bi.prototype,"printableString",void 0);bi([Ci({type:Ke.UniversalString})],Bi.prototype,"universalString",void 0);bi([Ci({type:Ke.Utf8String})],Bi.prototype,"utf8String",void 0);bi([Ci({type:Ke.BmpString})],Bi.prototype,"bmpString",void 0);Bi=bi([Si({type:ke.Choice})],Bi);var xi=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;Object.assign(i,e);return i}e.prototype.toString=function(){return this.ia5String||(this.anyValue?u.Convert.ToHex(this.anyValue):t.prototype.toString.call(this))};return e}(Bi);bi([Ci({type:Ke.IA5String})],xi.prototype,"ia5String",void 0);bi([Ci({type:Ke.Any})],xi.prototype,"anyValue",void 0);xi=bi([Si({type:ke.Choice})],xi);var Ti=function(){function t(t){if(t===void 0){t={}}this.type="";this.value=new xi;Object.assign(this,t)}return t}();bi([Ci({type:Ke.ObjectIdentifier})],Ti.prototype,"type",void 0);bi([Ci({type:xi})],Ti.prototype,"value",void 0);var Oi=Di=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Di.prototype);return i}return e}(wi);Oi=Di=bi([Si({type:ke.Set,itemType:Ti})],Oi);var Mi=_i=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,_i.prototype);return i}return e}(wi);Mi=_i=bi([Si({type:ke.Sequence,itemType:Oi})],Mi);var Ri=t("a5",Ii=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Ii.prototype);return i}return e}(Mi));t("a5",Ri=Ii=bi([Si({type:ke.Sequence})],Ri));var Ni={fromASN:function(t){return Pi.toString(qe.fromASN(t))},toASN:function(t){return qe.toASN(Pi.fromString(t))}};var ki=function(){function t(t){if(t===void 0){t={}}this.typeId="";this.value=new ArrayBuffer(0);Object.assign(this,t)}return t}();t("a9",ki);bi([Ci({type:Ke.ObjectIdentifier})],ki.prototype,"typeId",void 0);bi([Ci({type:Ke.Any,context:0})],ki.prototype,"value",void 0);var Ki=function(){function t(t){if(t===void 0){t={}}this.partyName=new Bi;Object.assign(this,t)}return t}();t("ac",Ki);bi([Ci({type:Bi,optional:true,context:0,implicit:true})],Ki.prototype,"nameAssigner",void 0);bi([Ci({type:Bi,context:1,implicit:true})],Ki.prototype,"partyName",void 0);var ji=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:ki,context:0,implicit:true})],ji.prototype,"otherName",void 0);bi([Ci({type:Ke.IA5String,context:1,implicit:true})],ji.prototype,"rfc822Name",void 0);bi([Ci({type:Ke.IA5String,context:2,implicit:true})],ji.prototype,"dNSName",void 0);bi([Ci({type:Ke.Any,context:3,implicit:true})],ji.prototype,"x400Address",void 0);bi([Ci({type:Ri,context:4,implicit:false})],ji.prototype,"directoryName",void 0);bi([Ci({type:Ki,context:5})],ji.prototype,"ediPartyName",void 0);bi([Ci({type:Ke.IA5String,context:6,implicit:true})],ji.prototype,"uniformResourceIdentifier",void 0);bi([Ci({type:Ke.OctetString,context:7,implicit:true,converter:Ni})],ji.prototype,"iPAddress",void 0);bi([Ci({type:Ke.ObjectIdentifier,context:8,implicit:true})],ji.prototype,"registeredID",void 0);ji=bi([Si({type:ke.Choice})],ji);var Hi="1.3.6.1.5.5.7";var Ui="".concat(Hi,".1");var Fi="2.5.29";var Li;var Vi="".concat(Ui,".1");var Gi=function(){function t(t){if(t===void 0){t={}}this.accessMethod="";this.accessLocation=new ji;Object.assign(this,t)}return t}();bi([Ci({type:Ke.ObjectIdentifier})],Gi.prototype,"accessMethod",void 0);bi([Ci({type:ji})],Gi.prototype,"accessLocation",void 0);var Wi=t("av",Li=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Li.prototype);return i}return e}(wi));t("av",Wi=Li=bi([Si({type:ke.Sequence,itemType:Gi})],Wi));var Qi="".concat(Fi,".35");var qi=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(He);var zi=function(){function t(t){if(t===void 0){t={}}if(t){Object.assign(this,t)}}return t}();t("at",zi);bi([Ci({type:qi,context:0,optional:true,implicit:true})],zi.prototype,"keyIdentifier",void 0);bi([Ci({type:ji,context:1,optional:true,implicit:true,repeated:"sequence"})],zi.prototype,"authorityCertIssuer",void 0);bi([Ci({type:Ke.Integer,context:2,optional:true,implicit:true,converter:Ve})],zi.prototype,"authorityCertSerialNumber",void 0);var Zi="".concat(Fi,".19");var $i=function(){function t(t){if(t===void 0){t={}}this.cA=false;Object.assign(this,t)}return t}();t("aq",$i);bi([Ci({type:Ke.Boolean,defaultValue:false})],$i.prototype,"cA",void 0);bi([Ci({type:Ke.Integer,optional:true})],$i.prototype,"pathLenConstraint",void 0);var Xi;var Yi=Xi=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Xi.prototype);return i}return e}(wi);Yi=Xi=bi([Si({type:ke.Sequence,itemType:ji})],Yi);var Ji;var tr="".concat(Fi,".29");var er=t("a8",Ji=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Ji.prototype);return i}return e}(Yi));t("a8",er=Ji=bi([Si({type:ke.Sequence})],er));var ir;var rr="".concat(Fi,".32");var nr=t("aa",function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}t.prototype.toString=function(){return this.ia5String||this.visibleString||this.bmpString||this.utf8String||""};return t}());bi([Ci({type:Ke.IA5String})],nr.prototype,"ia5String",void 0);bi([Ci({type:Ke.VisibleString})],nr.prototype,"visibleString",void 0);bi([Ci({type:Ke.BmpString})],nr.prototype,"bmpString",void 0);bi([Ci({type:Ke.Utf8String})],nr.prototype,"utf8String",void 0);t("aa",nr=bi([Si({type:ke.Choice})],nr));var or=function(){function t(t){if(t===void 0){t={}}this.organization=new nr;this.noticeNumbers=[];Object.assign(this,t)}return t}();bi([Ci({type:nr})],or.prototype,"organization",void 0);bi([Ci({type:Ke.Integer,repeated:"sequence"})],or.prototype,"noticeNumbers",void 0);var ar=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();t("ab",ar);bi([Ci({type:or,optional:true})],ar.prototype,"noticeRef",void 0);bi([Ci({type:nr,optional:true})],ar.prototype,"explicitText",void 0);var sr=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:Ke.IA5String})],sr.prototype,"cPSuri",void 0);bi([Ci({type:ar})],sr.prototype,"userNotice",void 0);sr=bi([Si({type:ke.Choice})],sr);var ur=function(){function t(t){if(t===void 0){t={}}this.policyQualifierId="";this.qualifier=new ArrayBuffer(0);Object.assign(this,t)}return t}();bi([Ci({type:Ke.ObjectIdentifier})],ur.prototype,"policyQualifierId",void 0);bi([Ci({type:Ke.Any})],ur.prototype,"qualifier",void 0);var cr=function(){function t(t){if(t===void 0){t={}}this.policyIdentifier="";Object.assign(this,t)}return t}();bi([Ci({type:Ke.ObjectIdentifier})],cr.prototype,"policyIdentifier",void 0);bi([Ci({type:ur,repeated:"sequence",optional:true})],cr.prototype,"policyQualifiers",void 0);var fr=t("ay",ir=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,ir.prototype);return i}return e}(wi));t("ay",fr=ir=bi([Si({type:ke.Sequence,itemType:cr})],fr));var vr="".concat(Fi,".20");var hr=t("aT",function(){function t(t){if(t===void 0){t=0}this.value=t}return t}());bi([Ci({type:Ke.Integer})],hr.prototype,"value",void 0);t("aT",hr=bi([Si({type:ke.Choice})],hr));var dr="".concat(Fi,".27");var lr=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(hr);lr=bi([Si({type:ke.Choice})],lr);var pr;var yr="".concat(Fi,".31");var Sr;(function(t){t[t["unused"]=1]="unused";t[t["keyCompromise"]=2]="keyCompromise";t[t["cACompromise"]=4]="cACompromise";t[t["affiliationChanged"]=8]="affiliationChanged";t[t["superseded"]=16]="superseded";t[t["cessationOfOperation"]=32]="cessationOfOperation";t[t["certificateHold"]=64]="certificateHold";t[t["privilegeWithdrawn"]=128]="privilegeWithdrawn";t[t["aACompromise"]=256]="aACompromise"})(Sr||(Sr={}));var Cr=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toJSON=function(){var t=[];var e=this.toNumber();if(e&Sr.aACompromise){t.push("aACompromise")}if(e&Sr.affiliationChanged){t.push("affiliationChanged")}if(e&Sr.cACompromise){t.push("cACompromise")}if(e&Sr.certificateHold){t.push("certificateHold")}if(e&Sr.cessationOfOperation){t.push("cessationOfOperation")}if(e&Sr.keyCompromise){t.push("keyCompromise")}if(e&Sr.privilegeWithdrawn){t.push("privilegeWithdrawn")}if(e&Sr.superseded){t.push("superseded")}if(e&Sr.unused){t.push("unused")}return t};e.prototype.toString=function(){return"[".concat(this.toJSON().join(", "),"]")};return e}(je);var Ar=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:ji,context:0,repeated:"sequence",implicit:true})],Ar.prototype,"fullName",void 0);bi([Ci({type:Oi,context:1,implicit:true})],Ar.prototype,"nameRelativeToCRLIssuer",void 0);Ar=bi([Si({type:ke.Choice})],Ar);var mr=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:Ar,context:0,optional:true})],mr.prototype,"distributionPoint",void 0);bi([Ci({type:Cr,context:1,optional:true,implicit:true})],mr.prototype,"reasons",void 0);bi([Ci({type:ji,context:2,optional:true,repeated:"sequence",implicit:true})],mr.prototype,"cRLIssuer",void 0);var gr=t("au",pr=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,pr.prototype);return i}return e}(wi));t("au",gr=pr=bi([Si({type:ke.Sequence,itemType:mr})],gr));var wr;var Er=wr=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,wr.prototype);return i}return e}(gr);Er=wr=bi([Si({type:ke.Sequence,itemType:mr})],Er);var br="".concat(Fi,".28");var Pr=function(){function t(e){if(e===void 0){e={}}this.onlyContainsUserCerts=t.ONLY;this.onlyContainsCACerts=t.ONLY;this.indirectCRL=t.ONLY;this.onlyContainsAttributeCerts=t.ONLY;Object.assign(this,e)}return t}();t("aU",Pr);Pr.ONLY=false;bi([Ci({type:Ar,context:0,optional:true})],Pr.prototype,"distributionPoint",void 0);bi([Ci({type:Ke.Boolean,context:1,defaultValue:Pr.ONLY,implicit:true})],Pr.prototype,"onlyContainsUserCerts",void 0);bi([Ci({type:Ke.Boolean,context:2,defaultValue:Pr.ONLY,implicit:true})],Pr.prototype,"onlyContainsCACerts",void 0);bi([Ci({type:Cr,context:3,optional:true,implicit:true})],Pr.prototype,"onlySomeReasons",void 0);bi([Ci({type:Ke.Boolean,context:4,defaultValue:Pr.ONLY,implicit:true})],Pr.prototype,"indirectCRL",void 0);bi([Ci({type:Ke.Boolean,context:5,defaultValue:Pr.ONLY,implicit:true})],Pr.prototype,"onlyContainsAttributeCerts",void 0);var Dr="".concat(Fi,".21");var _r;(function(t){t[t["unspecified"]=0]="unspecified";t[t["keyCompromise"]=1]="keyCompromise";t[t["cACompromise"]=2]="cACompromise";t[t["affiliationChanged"]=3]="affiliationChanged";t[t["superseded"]=4]="superseded";t[t["cessationOfOperation"]=5]="cessationOfOperation";t[t["certificateHold"]=6]="certificateHold";t[t["removeFromCRL"]=8]="removeFromCRL";t[t["privilegeWithdrawn"]=9]="privilegeWithdrawn";t[t["aACompromise"]=10]="aACompromise"})(_r||(_r={}));var Ir=t("a6",function(){function t(t){if(t===void 0){t=_r.unspecified}this.reason=_r.unspecified;this.reason=t}t.prototype.toJSON=function(){return _r[this.reason]};t.prototype.toString=function(){return this.toJSON()};return t}());bi([Ci({type:Ke.Enumerated})],Ir.prototype,"reason",void 0);t("a6",Ir=bi([Si({type:ke.Choice})],Ir));var Br;var xr="".concat(Fi,".37");var Tr=t("ar",Br=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Br.prototype);return i}return e}(wi));t("ar",Tr=Br=bi([Si({type:ke.Sequence,itemType:Ke.ObjectIdentifier})],Tr));var Or="".concat(Fi,".54");var Mr=function(){function t(t){if(t===void 0){t=new ArrayBuffer(0)}this.value=t}return t}();bi([Ci({type:Ke.Integer,converter:Ve})],Mr.prototype,"value",void 0);Mr=bi([Si({type:ke.Choice})],Mr);var Rr="".concat(Fi,".24");var Nr=t("a7",function(){function t(t){this.value=new Date;if(t){this.value=t}}return t}());bi([Ci({type:Ke.GeneralizedTime})],Nr.prototype,"value",void 0);t("a7",Nr=bi([Si({type:ke.Choice})],Nr));var kr;var Kr="".concat(Fi,".18");var jr=kr=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,kr.prototype);return i}return e}(Yi);jr=kr=bi([Si({type:ke.Sequence})],jr);var Hr="".concat(Fi,".15");var Ur;(function(t){t[t["digitalSignature"]=1]="digitalSignature";t[t["nonRepudiation"]=2]="nonRepudiation";t[t["keyEncipherment"]=4]="keyEncipherment";t[t["dataEncipherment"]=8]="dataEncipherment";t[t["keyAgreement"]=16]="keyAgreement";t[t["keyCertSign"]=32]="keyCertSign";t[t["cRLSign"]=64]="cRLSign";t[t["encipherOnly"]=128]="encipherOnly";t[t["decipherOnly"]=256]="decipherOnly"})(Ur||(Ur={}));var Fr=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toJSON=function(){var t=this.toNumber();var e=[];if(t&Ur.cRLSign){e.push("crlSign")}if(t&Ur.dataEncipherment){e.push("dataEncipherment")}if(t&Ur.decipherOnly){e.push("decipherOnly")}if(t&Ur.digitalSignature){e.push("digitalSignature")}if(t&Ur.encipherOnly){e.push("encipherOnly")}if(t&Ur.keyAgreement){e.push("keyAgreement")}if(t&Ur.keyCertSign){e.push("keyCertSign")}if(t&Ur.keyEncipherment){e.push("keyEncipherment")}if(t&Ur.nonRepudiation){e.push("nonRepudiation")}return e};e.prototype.toString=function(){return"[".concat(this.toJSON().join(", "),"]")};return e}(je);t("ap",Fr);var Lr;var Vr="".concat(Fi,".30");var Gr=function(){function t(t){if(t===void 0){t={}}this.base=new ji;this.minimum=0;Object.assign(this,t)}return t}();bi([Ci({type:ji})],Gr.prototype,"base",void 0);bi([Ci({type:Ke.Integer,context:0,defaultValue:0,implicit:true})],Gr.prototype,"minimum",void 0);bi([Ci({type:Ke.Integer,context:1,optional:true,implicit:true})],Gr.prototype,"maximum",void 0);var Wr=Lr=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Lr.prototype);return i}return e}(wi);Wr=Lr=bi([Si({type:ke.Sequence,itemType:Gr})],Wr);var Qr=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();t("aA",Qr);bi([Ci({type:Wr,context:0,optional:true,implicit:true})],Qr.prototype,"permittedSubtrees",void 0);bi([Ci({type:Wr,context:1,optional:true,implicit:true})],Qr.prototype,"excludedSubtrees",void 0);var qr="".concat(Fi,".36");var zr=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();t("aR",zr);bi([Ci({type:Ke.Integer,context:0,implicit:true,optional:true,converter:Ve})],zr.prototype,"requireExplicitPolicy",void 0);bi([Ci({type:Ke.Integer,context:1,implicit:true,optional:true,converter:Ve})],zr.prototype,"inhibitPolicyMapping",void 0);var Zr;var $r="".concat(Fi,".33");var Xr=function(){function t(t){if(t===void 0){t={}}this.issuerDomainPolicy="";this.subjectDomainPolicy="";Object.assign(this,t)}return t}();bi([Ci({type:Ke.ObjectIdentifier})],Xr.prototype,"issuerDomainPolicy",void 0);bi([Ci({type:Ke.ObjectIdentifier})],Xr.prototype,"subjectDomainPolicy",void 0);var Yr=t("aS",Zr=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Zr.prototype);return i}return e}(wi));t("aS",Yr=Zr=bi([Si({type:ke.Sequence,itemType:Xr})],Yr));var Jr;var tn="".concat(Fi,".17");var en=t("ax",Jr=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Jr.prototype);return i}return e}(Yi));t("ax",en=Jr=bi([Si({type:ke.Sequence})],en));var rn=function(){function t(t){if(t===void 0){t={}}this.type="";this.values=[];Object.assign(this,t)}return t}();t("q",rn);bi([Ci({type:Ke.ObjectIdentifier})],rn.prototype,"type",void 0);bi([Ci({type:Ke.Any,repeated:"set"})],rn.prototype,"values",void 0);var nn;var on="".concat(Fi,".9");var an=t("aL",nn=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,nn.prototype);return i}return e}(wi));t("aL",an=nn=bi([Si({type:ke.Sequence,itemType:rn})],an));var sn="".concat(Fi,".14");var un=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(qi);t("as",un);var cn="".concat(Fi,".16");var fn=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();t("aM",fn);bi([Ci({type:Ke.GeneralizedTime,context:0,implicit:true,optional:true})],fn.prototype,"notBefore",void 0);bi([Ci({type:Ke.GeneralizedTime,context:1,implicit:true,optional:true})],fn.prototype,"notAfter",void 0);var vn="1.2.840.113533.7.65.0";var hn;(function(t){t[t["keyUpdateAllowed"]=1]="keyUpdateAllowed";t[t["newExtensions"]=2]="newExtensions";t[t["pKIXCertificate"]=4]="pKIXCertificate"})(hn||(hn={}));var dn=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toJSON=function(){var t=[];var e=this.toNumber();if(e&hn.pKIXCertificate){t.push("pKIXCertificate")}if(e&hn.newExtensions){t.push("newExtensions")}if(e&hn.keyUpdateAllowed){t.push("keyUpdateAllowed")}return t};e.prototype.toString=function(){return"[".concat(this.toJSON().join(", "),"]")};return e}(je);var ln=function(){function t(t){if(t===void 0){t={}}this.entrustVers="";this.entrustInfoFlags=new dn;Object.assign(this,t)}return t}();t("aN",ln);bi([Ci({type:Ke.GeneralString})],ln.prototype,"entrustVers",void 0);bi([Ci({type:dn})],ln.prototype,"entrustInfoFlags",void 0);var pn;var yn="".concat(Ui,".11");var Sn=t("aw",pn=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,pn.prototype);return i}return e}(wi));t("aw",Sn=pn=bi([Si({type:ke.Sequence,itemType:Gi})],Sn));var Cn=function(){function t(t){if(t===void 0){t={}}this.algorithm="";Object.assign(this,t)}t.prototype.isEqual=function(e){return e instanceof t&&e.algorithm==this.algorithm&&(e.parameters&&this.parameters&&u.isEqual(e.parameters,this.parameters)||e.parameters===this.parameters)};return t}();bi([Ci({type:Ke.ObjectIdentifier})],Cn.prototype,"algorithm",void 0);bi([Ci({type:Ke.Any,optional:true})],Cn.prototype,"parameters",void 0);var An=function(){function t(t){if(t===void 0){t={}}this.algorithm=new Cn;this.subjectPublicKey=new ArrayBuffer(0);Object.assign(this,t)}return t}();bi([Ci({type:Cn})],An.prototype,"algorithm",void 0);bi([Ci({type:Ke.BitString})],An.prototype,"subjectPublicKey",void 0);var mn=function(){function t(t){if(t){if(typeof t==="string"||typeof t==="number"||t instanceof Date){var e=new Date(t);if(e.getUTCFullYear()>2049){this.generalTime=e}else{this.utcTime=e}}else{Object.assign(this,t)}}}t.prototype.getTime=function(){var t=this.utcTime||this.generalTime;if(!t){throw new Error("Cannot get time from CHOICE object")}return t};return t}();bi([Ci({type:Ke.UTCTime})],mn.prototype,"utcTime",void 0);bi([Ci({type:Ke.GeneralizedTime})],mn.prototype,"generalTime",void 0);mn=bi([Si({type:ke.Choice})],mn);var gn=function(){function t(t){this.notBefore=new mn(new Date);this.notAfter=new mn(new Date);if(t){this.notBefore=new mn(t.notBefore);this.notAfter=new mn(t.notAfter)}}return t}();bi([Ci({type:mn})],gn.prototype,"notBefore",void 0);bi([Ci({type:mn})],gn.prototype,"notAfter",void 0);var wn;var En=function(){function t(e){if(e===void 0){e={}}this.extnID="";this.critical=t.CRITICAL;this.extnValue=new He;Object.assign(this,e)}return t}();En.CRITICAL=false;bi([Ci({type:Ke.ObjectIdentifier})],En.prototype,"extnID",void 0);bi([Ci({type:Ke.Boolean,defaultValue:En.CRITICAL})],En.prototype,"critical",void 0);bi([Ci({type:He})],En.prototype,"extnValue",void 0);var bn=wn=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,wn.prototype);return i}return e}(wi);bn=wn=bi([Si({type:ke.Sequence,itemType:En})],bn);var Pn;(function(t){t[t["v1"]=0]="v1";t[t["v2"]=1]="v2";t[t["v3"]=2]="v3"})(Pn||(Pn={}));var Dn=function(){function t(t){if(t===void 0){t={}}this.version=Pn.v1;this.serialNumber=new ArrayBuffer(0);this.signature=new Cn;this.issuer=new Ri;this.validity=new gn;this.subject=new Ri;this.subjectPublicKeyInfo=new An;Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer,context:0,defaultValue:Pn.v1})],Dn.prototype,"version",void 0);bi([Ci({type:Ke.Integer,converter:Ve})],Dn.prototype,"serialNumber",void 0);bi([Ci({type:Cn})],Dn.prototype,"signature",void 0);bi([Ci({type:Ri})],Dn.prototype,"issuer",void 0);bi([Ci({type:gn})],Dn.prototype,"validity",void 0);bi([Ci({type:Ri})],Dn.prototype,"subject",void 0);bi([Ci({type:An})],Dn.prototype,"subjectPublicKeyInfo",void 0);bi([Ci({type:Ke.BitString,context:1,implicit:true,optional:true})],Dn.prototype,"issuerUniqueID",void 0);bi([Ci({type:Ke.BitString,context:2,implicit:true,optional:true})],Dn.prototype,"subjectUniqueID",void 0);bi([Ci({type:bn,context:3,optional:true})],Dn.prototype,"extensions",void 0);var _n=function(){function t(t){if(t===void 0){t={}}this.tbsCertificate=new Dn;this.signatureAlgorithm=new Cn;this.signatureValue=new ArrayBuffer(0);Object.assign(this,t)}return t}();t("C",_n);bi([Ci({type:Dn})],_n.prototype,"tbsCertificate",void 0);bi([Ci({type:Cn})],_n.prototype,"signatureAlgorithm",void 0);bi([Ci({type:Ke.BitString})],_n.prototype,"signatureValue",void 0);var In=function(){function t(t){if(t===void 0){t={}}this.userCertificate=new ArrayBuffer(0);this.revocationDate=new mn;Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer,converter:Ve})],In.prototype,"userCertificate",void 0);bi([Ci({type:mn})],In.prototype,"revocationDate",void 0);bi([Ci({type:En,optional:true,repeated:"sequence"})],In.prototype,"crlEntryExtensions",void 0);var Bn=function(){function t(t){if(t===void 0){t={}}this.signature=new Cn;this.issuer=new Ri;this.thisUpdate=new mn;Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer,optional:true})],Bn.prototype,"version",void 0);bi([Ci({type:Cn})],Bn.prototype,"signature",void 0);bi([Ci({type:Ri})],Bn.prototype,"issuer",void 0);bi([Ci({type:mn})],Bn.prototype,"thisUpdate",void 0);bi([Ci({type:mn,optional:true})],Bn.prototype,"nextUpdate",void 0);bi([Ci({type:In,repeated:"sequence",optional:true})],Bn.prototype,"revokedCertificates",void 0);bi([Ci({type:En,optional:true,context:0,repeated:"sequence"})],Bn.prototype,"crlExtensions",void 0);var xn=function(){function t(t){if(t===void 0){t={}}this.tbsCertList=new Bn;this.signatureAlgorithm=new Cn;this.signature=new ArrayBuffer(0);Object.assign(this,t)}return t}();t("p",xn);bi([Ci({type:Bn})],xn.prototype,"tbsCertList",void 0);bi([Ci({type:Cn})],xn.prototype,"signatureAlgorithm",void 0);bi([Ci({type:Ke.BitString})],xn.prototype,"signature",void 0);var Tn=t("i","1.2.840.10045.2.1");var On="1.2.840.10045.4.1";var Mn="1.2.840.10045.4.3.1";var Rn="1.2.840.10045.4.3.2";var Nn="1.2.840.10045.4.3.3";var kn="1.2.840.10045.4.3.4";function Kn(t){return new Cn({algorithm:t})}Kn(On);Kn(Mn);Kn(Rn);Kn(Nn);Kn(kn);var jn=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:Ke.ObjectIdentifier})],jn.prototype,"fieldType",void 0);bi([Ci({type:Ke.Any})],jn.prototype,"parameters",void 0);jn=bi([Si({type:ke.Sequence})],jn);var Hn=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(He);var Un=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:Ke.OctetString})],Un.prototype,"a",void 0);bi([Ci({type:Ke.OctetString})],Un.prototype,"b",void 0);bi([Ci({type:Ke.BitString,optional:true})],Un.prototype,"seed",void 0);Un=bi([Si({type:ke.Sequence})],Un);var Fn;(function(t){t[t["ecpVer1"]=1]="ecpVer1"})(Fn||(Fn={}));var Ln=function(){function t(t){if(t===void 0){t={}}this.version=Fn.ecpVer1;Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer})],Ln.prototype,"version",void 0);bi([Ci({type:jn})],Ln.prototype,"fieldID",void 0);bi([Ci({type:Un})],Ln.prototype,"curve",void 0);bi([Ci({type:Hn})],Ln.prototype,"base",void 0);bi([Ci({type:Ke.Integer,converter:Ve})],Ln.prototype,"order",void 0);bi([Ci({type:Ke.Integer,optional:true})],Ln.prototype,"cofactor",void 0);Ln=bi([Si({type:ke.Sequence})],Ln);var Vn=t("f",function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}());bi([Ci({type:Ke.ObjectIdentifier})],Vn.prototype,"namedCurve",void 0);bi([Ci({type:Ke.Null})],Vn.prototype,"implicitCurve",void 0);bi([Ci({type:Ln})],Vn.prototype,"specifiedCurve",void 0);t("f",Vn=bi([Si({type:ke.Choice})],Vn));var Gn=function(){function t(t){if(t===void 0){t={}}this.version=1;this.privateKey=new He;Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer})],Gn.prototype,"version",void 0);bi([Ci({type:He})],Gn.prototype,"privateKey",void 0);bi([Ci({type:Vn,context:0,optional:true})],Gn.prototype,"parameters",void 0);bi([Ci({type:Ke.BitString,context:1,optional:true})],Gn.prototype,"publicKey",void 0);var Wn=function(){function t(t){if(t===void 0){t={}}this.r=new ArrayBuffer(0);this.s=new ArrayBuffer(0);Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer,converter:Ve})],Wn.prototype,"r",void 0);bi([Ci({type:Ke.Integer,converter:Ve})],Wn.prototype,"s",void 0);var Qn="1.2.840.113549.1.1";var qn=t("g","".concat(Qn,".1"));var zn="".concat(Qn,".7");var Zn="".concat(Qn,".9");var $n="".concat(Qn,".10");var Xn="".concat(Qn,".2");var Yn="".concat(Qn,".4");var Jn="".concat(Qn,".5");var to="".concat(Qn,".12");var eo="".concat(Qn,".13");var io="".concat(Qn,".15");var ro="".concat(Qn,".16");var no="1.3.14.3.2.26";var oo="2.16.840.1.101.3.4.2.4";var ao="2.16.840.1.101.3.4.2.1";var so="2.16.840.1.101.3.4.2.2";var uo="2.16.840.1.101.3.4.2.3";var co="2.16.840.1.101.3.4.2.5";var fo="2.16.840.1.101.3.4.2.6";var vo="1.2.840.113549.2.2";var ho="1.2.840.113549.2.5";var lo="".concat(Qn,".8");function po(t){return new Cn({algorithm:t,parameters:null})}po(vo);po(ho);var yo=po(no);po(oo);po(ao);po(so);po(uo);po(co);po(fo);var So=new Cn({algorithm:lo,parameters:Ei.serialize(yo)});var Co=new Cn({algorithm:Zn,parameters:Ei.serialize(qe.toASN(new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]).buffer))});po(qn);po(Xn);po(Yn);po(Jn);po(io);po(ro);po(to);po(eo);po(io);po(ro);var Ao=function(){function t(t){if(t===void 0){t={}}this.hashAlgorithm=new Cn(yo);this.maskGenAlgorithm=new Cn({algorithm:lo,parameters:Ei.serialize(yo)});this.pSourceAlgorithm=new Cn(Co);Object.assign(this,t)}return t}();bi([Ci({type:Cn,context:0,defaultValue:yo})],Ao.prototype,"hashAlgorithm",void 0);bi([Ci({type:Cn,context:1,defaultValue:So})],Ao.prototype,"maskGenAlgorithm",void 0);bi([Ci({type:Cn,context:2,defaultValue:Co})],Ao.prototype,"pSourceAlgorithm",void 0);new Cn({algorithm:zn,parameters:Ei.serialize(new Ao)});var mo=function(){function t(t){if(t===void 0){t={}}this.hashAlgorithm=new Cn(yo);this.maskGenAlgorithm=new Cn({algorithm:lo,parameters:Ei.serialize(yo)});this.saltLength=20;this.trailerField=1;Object.assign(this,t)}return t}();bi([Ci({type:Cn,context:0,defaultValue:yo})],mo.prototype,"hashAlgorithm",void 0);bi([Ci({type:Cn,context:1,defaultValue:So})],mo.prototype,"maskGenAlgorithm",void 0);bi([Ci({type:Ke.Integer,context:2,defaultValue:20})],mo.prototype,"saltLength",void 0);bi([Ci({type:Ke.Integer,context:3,defaultValue:1})],mo.prototype,"trailerField",void 0);new Cn({algorithm:$n,parameters:Ei.serialize(new mo)});var go=function(){function t(t){if(t===void 0){t={}}this.digestAlgorithm=new Cn;this.digest=new He;Object.assign(this,t)}return t}();bi([Ci({type:Cn})],go.prototype,"digestAlgorithm",void 0);bi([Ci({type:He})],go.prototype,"digest",void 0);var wo;var Eo=function(){function t(t){if(t===void 0){t={}}this.prime=new ArrayBuffer(0);this.exponent=new ArrayBuffer(0);this.coefficient=new ArrayBuffer(0);Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer,converter:Ve})],Eo.prototype,"prime",void 0);bi([Ci({type:Ke.Integer,converter:Ve})],Eo.prototype,"exponent",void 0);bi([Ci({type:Ke.Integer,converter:Ve})],Eo.prototype,"coefficient",void 0);var bo=wo=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,wo.prototype);return i}return e}(wi);bo=wo=bi([Si({type:ke.Sequence,itemType:Eo})],bo);var Po=function(){function t(t){if(t===void 0){t={}}this.version=0;this.modulus=new ArrayBuffer(0);this.publicExponent=new ArrayBuffer(0);this.privateExponent=new ArrayBuffer(0);this.prime1=new ArrayBuffer(0);this.prime2=new ArrayBuffer(0);this.exponent1=new ArrayBuffer(0);this.exponent2=new ArrayBuffer(0);this.coefficient=new ArrayBuffer(0);Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer})],Po.prototype,"version",void 0);bi([Ci({type:Ke.Integer,converter:Ve})],Po.prototype,"modulus",void 0);bi([Ci({type:Ke.Integer,converter:Ve})],Po.prototype,"publicExponent",void 0);bi([Ci({type:Ke.Integer,converter:Ve})],Po.prototype,"privateExponent",void 0);bi([Ci({type:Ke.Integer,converter:Ve})],Po.prototype,"prime1",void 0);bi([Ci({type:Ke.Integer,converter:Ve})],Po.prototype,"prime2",void 0);bi([Ci({type:Ke.Integer,converter:Ve})],Po.prototype,"exponent1",void 0);bi([Ci({type:Ke.Integer,converter:Ve})],Po.prototype,"exponent2",void 0);bi([Ci({type:Ke.Integer,converter:Ve})],Po.prototype,"coefficient",void 0);bi([Ci({type:bo,optional:true})],Po.prototype,"otherPrimeInfos",void 0);var Do=function(){function t(t){if(t===void 0){t={}}this.modulus=new ArrayBuffer(0);this.publicExponent=new ArrayBuffer(0);Object.assign(this,t)}return t}();t("R",Do);bi([Ci({type:Ke.Integer,converter:Ve})],Do.prototype,"modulus",void 0);bi([Ci({type:Ke.Integer,converter:Ve})],Do.prototype,"publicExponent",void 0);var _o,Io;var Bo=t("k","1.3.6.1.4.1.18227.2.1");var xo=t("m",_o=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,_o.prototype);return i}return e}(wi));t("m",xo=_o=bi([Si({type:ke.Sequence,itemType:Cn})],xo));var To=t("l",Io=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Io.prototype);return i}return e}(wi));t("l",To=Io=bi([Si({type:ke.Sequence,itemType:Ke.BitString})],To));var Oo=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(He);var Mo=function(){function t(t){if(t===void 0){t={}}this.encryptionAlgorithm=new Cn;this.encryptedData=new Oo;Object.assign(this,t)}return t}();bi([Ci({type:Cn})],Mo.prototype,"encryptionAlgorithm",void 0);bi([Ci({type:Oo})],Mo.prototype,"encryptedData",void 0);var Ro;var No;(function(t){t[t["v1"]=0]="v1"})(No||(No={}));var ko=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(He);var Ko=Ro=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Ro.prototype);return i}return e}(wi);Ko=Ro=bi([Si({type:ke.Sequence,itemType:rn})],Ko);var jo=function(){function t(t){if(t===void 0){t={}}this.version=No.v1;this.privateKeyAlgorithm=new Cn;this.privateKey=new ko;Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer})],jo.prototype,"version",void 0);bi([Ci({type:Cn})],jo.prototype,"privateKeyAlgorithm",void 0);bi([Ci({type:ko})],jo.prototype,"privateKey",void 0);bi([Ci({type:Ko,implicit:true,context:0,optional:true})],jo.prototype,"attributes",void 0);var Ho;var Uo;(function(t){t[t["v1"]=0]="v1";t[t["v2"]=1]="v2"})(Uo||(Uo={}));var Fo=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Cn);Fo=bi([Si({type:ke.Sequence})],Fo);var Lo=function(){function t(){this.version=Uo.v1;this.privateKeyAlgorithm=new Cn;this.privateKey=new ArrayBuffer(0)}return t}();bi([Ci({type:Ke.Integer})],Lo.prototype,"version",void 0);bi([Ci({type:Cn})],Lo.prototype,"privateKeyAlgorithm",void 0);bi([Ci({type:Ke.OctetString})],Lo.prototype,"privateKey",void 0);bi([Ci({type:Ko,context:0,implicit:true,optional:true})],Lo.prototype,"attributes",void 0);bi([Ci({type:Ke.BitString,context:1,implicit:true,optional:true})],Lo.prototype,"publicKey",void 0);Lo=bi([Si({type:ke.Sequence})],Lo);var Vo=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Lo);Vo=bi([Si({type:ke.Sequence})],Vo);var Go=Ho=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Ho.prototype);return i}return e}(wi);Go=Ho=bi([Si({type:ke.Sequence,itemType:Lo})],Go);var Wo,Qo;var qo=t("h","2.16.840.1.114027.80.4.1");var zo=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Cn);zo=bi([Si({type:ke.Sequence})],zo);var Zo=t("j",Wo=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Wo.prototype);return i}return e}(wi));t("j",Zo=Wo=bi([Si({type:ke.Sequence,itemType:An})],Zo));var $o=Qo=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Qo.prototype);return i}return e}(wi);$o=Qo=bi([Si({type:ke.Sequence,itemType:Lo})],$o);var Xo={exports:{}};var Yo=Xo.exports;var Jo;function ta(){if(Jo)return Xo.exports;Jo=1;(function(t,e){!function(e,i){t.exports=i()}(Yo,(function(){var t=1e3,e=6e4,i=36e5,r="millisecond",n="second",o="minute",a="hour",s="day",u="week",c="month",f="quarter",v="year",h="date",d="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],i=t%100;return"["+t+(e[(i-20)%10]||e[i]||e[0])+"]"}},S=function(t,e,i){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(i)+t},C={s:S,z:function(t){var e=-t.utcOffset(),i=Math.abs(e),r=Math.floor(i/60),n=i%60;return(e<=0?"+":"-")+S(r,2,"0")+":"+S(n,2,"0")},m:function t(e,i){if(e.date()<i.date())return-t(i,e);var r=12*(i.year()-e.year())+(i.month()-e.month()),n=e.clone().add(r,c),o=i-n<0,a=e.clone().add(r+(o?-1:1),c);return+(-(r+(i-n)/(o?n-a:a-n))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:v,w:u,d:s,D:h,h:a,m:o,s:n,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},A="en",m={};m[A]=y;var g="$isDayjsObject",w=function(t){return t instanceof D||!(!t||!t[g])},E=function t(e,i,r){var n;if(!e)return A;if("string"==typeof e){var o=e.toLowerCase();m[o]&&(n=o),i&&(m[o]=i,n=o);var a=e.split("-");if(!n&&a.length>1)return t(a[0])}else{var s=e.name;m[s]=e,n=s}return!r&&n&&(A=n),n||!r&&A},b=function(t,e){if(w(t))return t.clone();var i="object"==typeof e?e:{};return i.date=t,i.args=arguments,new D(i)},P=C;P.l=E,P.i=w,P.w=function(t,e){return b(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var D=function(){function y(t){this.$L=E(t.locale,null,true),this.parse(t),this.$x=this.$x||t.x||{},this[g]=true}var S=y.prototype;return S.parse=function(t){this.$d=function(t){var e=t.date,i=t.utc;if(null===e)return new Date(NaN);if(P.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(l);if(r){var n=r[2]-1||0,o=(r[7]||"0").substring(0,3);return i?new Date(Date.UTC(r[1],n,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],n,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.init()},S.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},S.$utils=function(){return P},S.isValid=function(){return!(this.$d.toString()===d)},S.isSame=function(t,e){var i=b(t);return this.startOf(e)<=i&&i<=this.endOf(e)},S.isAfter=function(t,e){return b(t)<this.startOf(e)},S.isBefore=function(t,e){return this.endOf(e)<b(t)},S.$g=function(t,e,i){return P.u(t)?this[e]:this.set(i,t)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(t,e){var i=this,r=!!P.u(e)||e,f=P.p(t),d=function(t,e){var n=P.w(i.$u?Date.UTC(i.$y,e,t):new Date(i.$y,e,t),i);return r?n:n.endOf(s)},l=function(t,e){return P.w(i.toDate()[t].apply(i.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),i)},p=this.$W,y=this.$M,S=this.$D,C="set"+(this.$u?"UTC":"");switch(f){case v:return r?d(1,0):d(31,11);case c:return r?d(1,y):d(0,y+1);case u:var A=this.$locale().weekStart||0,m=(p<A?p+7:p)-A;return d(r?S-m:S+(6-m),y);case s:case h:return l(C+"Hours",0);case a:return l(C+"Minutes",1);case o:return l(C+"Seconds",2);case n:return l(C+"Milliseconds",3);default:return this.clone()}},S.endOf=function(t){return this.startOf(t,false)},S.$set=function(t,e){var i,u=P.p(t),f="set"+(this.$u?"UTC":""),d=(i={},i[s]=f+"Date",i[h]=f+"Date",i[c]=f+"Month",i[v]=f+"FullYear",i[a]=f+"Hours",i[o]=f+"Minutes",i[n]=f+"Seconds",i[r]=f+"Milliseconds",i)[u],l=u===s?this.$D+(e-this.$W):e;if(u===c||u===v){var p=this.clone().set(h,1);p.$d[d](l),p.init(),this.$d=p.set(h,Math.min(this.$D,p.daysInMonth())).$d}else d&&this.$d[d](l);return this.init(),this},S.set=function(t,e){return this.clone().$set(t,e)},S.get=function(t){return this[P.p(t)]()},S.add=function(r,f){var h,d=this;r=Number(r);var l=P.p(f),p=function(t){var e=b(d);return P.w(e.date(e.date()+Math.round(t*r)),d)};if(l===c)return this.set(c,this.$M+r);if(l===v)return this.set(v,this.$y+r);if(l===s)return p(1);if(l===u)return p(7);var y=(h={},h[o]=e,h[a]=i,h[n]=t,h)[l]||1,S=this.$d.getTime()+r*y;return P.w(S,this)},S.subtract=function(t,e){return this.add(-1*t,e)},S.format=function(t){var e=this,i=this.$locale();if(!this.isValid())return i.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",n=P.z(this),o=this.$H,a=this.$m,s=this.$M,u=i.weekdays,c=i.months,f=i.meridiem,v=function(t,i,n,o){return t&&(t[i]||t(e,r))||n[i].slice(0,o)},h=function(t){return P.s(o%12||12,t,"0")},l=f||function(t,e,i){var r=t<12?"AM":"PM";return i?r.toLowerCase():r};return r.replace(p,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return P.s(e.$y,4,"0");case"M":return s+1;case"MM":return P.s(s+1,2,"0");case"MMM":return v(i.monthsShort,s,c,3);case"MMMM":return v(c,s);case"D":return e.$D;case"DD":return P.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return v(i.weekdaysMin,e.$W,u,2);case"ddd":return v(i.weekdaysShort,e.$W,u,3);case"dddd":return u[e.$W];case"H":return String(o);case"HH":return P.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return l(o,a,true);case"A":return l(o,a,false);case"m":return String(a);case"mm":return P.s(a,2,"0");case"s":return String(e.$s);case"ss":return P.s(e.$s,2,"0");case"SSS":return P.s(e.$ms,3,"0");case"Z":return n}return null}(t)||n.replace(":","")}))},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(r,h,d){var l,p=this,y=P.p(h),S=b(r),C=(S.utcOffset()-this.utcOffset())*e,A=this-S,m=function(){return P.m(p,S)};switch(y){case v:l=m()/12;break;case c:l=m();break;case f:l=m()/3;break;case u:l=(A-C)/6048e5;break;case s:l=(A-C)/864e5;break;case a:l=A/i;break;case o:l=A/e;break;case n:l=A/t;break;default:l=A}return d?l:P.a(l)},S.daysInMonth=function(){return this.endOf(c).$D},S.$locale=function(){return m[this.$L]},S.locale=function(t,e){if(!t)return this.$L;var i=this.clone(),r=E(t,e,true);return r&&(i.$L=r),i},S.clone=function(){return P.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},y}(),_=D.prototype;return b.prototype=_,[["$ms",r],["$s",n],["$m",o],["$H",a],["$W",s],["$M",c],["$y",v],["$D",h]].forEach((function(t){_[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),b.extend=function(t,e){return t.$i||(t(e,D,b),t.$i=true),b},b.locale=E,b.isDayjs=w,b.unix=function(t){return b(1e3*t)},b.en=m[A],b.Ls=m,b.p={},b}))})(Xo);return Xo.exports}var ea=ta();var ia=n(ea);var ra={exports:{}};var na=ra.exports;var oa;function aa(){if(oa)return ra.exports;oa=1;(function(t,e){!function(e,i){t.exports=i()}(na,(function(){return function(t,e,i){t=t||{};var r=e.prototype,n={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(t,e,i,n){return r.fromToBase(t,e,i,n)}i.en.relativeTime=n,r.fromToBase=function(e,r,o,a,s){for(var u,c,f,v=o.$locale().relativeTime||n,h=t.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],d=h.length,l=0;l<d;l+=1){var p=h[l];p.d&&(u=a?i(e).diff(o,p.d,true):o.diff(e,p.d,true));var y=(t.rounding||Math.round)(Math.abs(u));if(f=u>0,y<=p.r||!p.r){y<=1&&l>0&&(p=h[l-1]);var S=v[p.l];s&&(y=s(""+y)),c="string"==typeof S?S.replace("%d",y):S(y,r,p.l,f);break}}if(r)return c;var C=f?v.future:v.past;return"function"==typeof C?C(c):C.replace("%s",c)},r.to=function(t,e){return o(t,e,this,true)},r.from=function(t,e){return o(t,e,this)};var a=function(t){return t.$u?i.utc():i()};r.toNow=function(t){return this.to(a(this),t)},r.fromNow=function(t){return this.from(a(this),t)}}}))})(ra);return ra.exports}var sa=aa();var ua=n(sa);
|
|
78
|
+
*/function S(){if(typeof BigInt==="undefined"){throw new Error("BigInt is not defined. Your environment doesn't implement BigInt.")}}function C(t){var e=0;var i=0;for(var r=0;r<t.length;r++){var n=t[r];e+=n.byteLength}var o=new Uint8Array(e);for(var r=0;r<t.length;r++){var n=t[r];o.set(new Uint8Array(n),i);i+=n.byteLength}return o.buffer}function A(t,e,i,r){if(!(e instanceof Uint8Array)){t.error="Wrong parameter: inputBuffer must be 'Uint8Array'";return false}if(!e.byteLength){t.error="Wrong parameter: inputBuffer has zero length";return false}if(i<0){t.error="Wrong parameter: inputOffset less than zero";return false}if(r<0){t.error="Wrong parameter: inputLength less than zero";return false}if(e.byteLength-i-r<0){t.error="End of input reached before message was fully decoded (inconsistent offset and length values)";return false}return true}var m=function(){function t(){this.items=[]}t.prototype.write=function(t){this.items.push(t)};t.prototype.final=function(){return C(this.items)};return t}();var g=[new Uint8Array([1])];var w="0123456789";var b="name";var E="valueHexView";var P="isHexOnly";var D="idBlock";var _="tagClass";var I="tagNumber";var B="isConstructed";var x="fromBER";var T="toBER";var O="local";var M="";var R=new ArrayBuffer(0);var N=new Uint8Array(0);var k="EndOfContent";var K="OCTET STRING";var j="BIT STRING";function H(t){var e;return e=function(t){__extends(e,t);function e(){var e=[];for(var i=0;i<arguments.length;i++){e[i]=arguments[i]}var r;var n=t.apply(this,e)||this;var o=e[0]||{};n.isHexOnly=(r=o.isHexOnly)!==null&&r!==void 0?r:false;n.valueHexView=o.valueHex?u.BufferSourceConverter.toUint8Array(o.valueHex):N;return n}Object.defineProperty(e.prototype,"valueHex",{get:function(){return this.valueHexView.slice().buffer},set:function(t){this.valueHexView=new Uint8Array(t)},enumerable:false,configurable:true});e.prototype.fromBER=function(t,e,i){var r=t instanceof ArrayBuffer?new Uint8Array(t):t;if(!A(this,r,e,i)){return-1}var n=e+i;this.valueHexView=r.subarray(e,n);if(!this.valueHexView.length){this.warnings.push("Zero buffer length");return e}this.blockLength=i;return n};e.prototype.toBER=function(t){if(t===void 0){t=false}if(!this.isHexOnly){this.error="Flag 'isHexOnly' is not set, abort";return R}if(t){return new ArrayBuffer(this.valueHexView.byteLength)}return this.valueHexView.byteLength===this.valueHexView.buffer.byteLength?this.valueHexView.buffer:this.valueHexView.slice().buffer};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{isHexOnly:this.isHexOnly,valueHex:u.Convert.ToHex(this.valueHexView)})};return e}(t),e.NAME="hexBlock",e}var U=function(){function t(t){var e=t===void 0?{}:t,i=e.blockLength,r=i===void 0?0:i,n=e.error,o=n===void 0?M:n,a=e.warnings,s=a===void 0?[]:a,c=e.valueBeforeDecode,f=c===void 0?N:c;this.blockLength=r;this.error=o;this.warnings=s;this.valueBeforeDecodeView=u.BufferSourceConverter.toUint8Array(f)}t.blockName=function(){return this.NAME};Object.defineProperty(t.prototype,"valueBeforeDecode",{get:function(){return this.valueBeforeDecodeView.slice().buffer},set:function(t){this.valueBeforeDecodeView=new Uint8Array(t)},enumerable:false,configurable:true});t.prototype.toJSON=function(){return{blockName:this.constructor.NAME,blockLength:this.blockLength,error:this.error,warnings:this.warnings,valueBeforeDecode:u.Convert.ToHex(this.valueBeforeDecodeView)}};return t}();U.NAME="baseBlock";var F=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.fromBER=function(t,e,i){throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'")};e.prototype.toBER=function(t,e){throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'")};return e}(U);F.NAME="valueBlock";var L=function(t){__extends(e,t);function e(e){var i=e===void 0?{}:e,r=i.idBlock,n=r===void 0?{}:r;var o,a,s,c;var f=t.call(this)||this;if(n){f.isHexOnly=(o=n.isHexOnly)!==null&&o!==void 0?o:false;f.valueHexView=n.valueHex?u.BufferSourceConverter.toUint8Array(n.valueHex):N;f.tagClass=(a=n.tagClass)!==null&&a!==void 0?a:-1;f.tagNumber=(s=n.tagNumber)!==null&&s!==void 0?s:-1;f.isConstructed=(c=n.isConstructed)!==null&&c!==void 0?c:false}else{f.tagClass=-1;f.tagNumber=-1;f.isConstructed=false}return f}e.prototype.toBER=function(t){if(t===void 0){t=false}var e=0;switch(this.tagClass){case 1:e|=0;break;case 2:e|=64;break;case 3:e|=128;break;case 4:e|=192;break;default:this.error="Unknown tag class";return R}if(this.isConstructed)e|=32;if(this.tagNumber<31&&!this.isHexOnly){var i=new Uint8Array(1);if(!t){var r=this.tagNumber;r&=31;e|=r;i[0]=e}return i.buffer}if(!this.isHexOnly){var n=v(this.tagNumber,7);var o=new Uint8Array(n);var a=n.byteLength;var s=new Uint8Array(a+1);s[0]=e|31;if(!t){for(var u=0;u<a-1;u++)s[u+1]=o[u]|128;s[a]=o[a-1]}return s.buffer}var c=new Uint8Array(this.valueHexView.byteLength+1);c[0]=e|31;if(!t){var f=this.valueHexView;for(var u=0;u<f.length-1;u++)c[u+1]=f[u]|128;c[this.valueHexView.byteLength]=f[f.length-1]}return c.buffer};e.prototype.fromBER=function(t,e,i){var r=u.BufferSourceConverter.toUint8Array(t);if(!A(this,r,e,i)){return-1}var n=r.subarray(e,e+i);if(n.length===0){this.error="Zero buffer length";return-1}var o=n[0]&192;switch(o){case 0:this.tagClass=1;break;case 64:this.tagClass=2;break;case 128:this.tagClass=3;break;case 192:this.tagClass=4;break;default:this.error="Unknown tag class";return-1}this.isConstructed=(n[0]&32)===32;this.isHexOnly=false;var a=n[0]&31;if(a!==31){this.tagNumber=a;this.blockLength=1}else{var s=1;var c=this.valueHexView=new Uint8Array(255);var v=255;while(n[s]&128){c[s-1]=n[s]&127;s++;if(s>=n.length){this.error="End of input reached before message was fully decoded";return-1}if(s===v){v+=255;var h=new Uint8Array(v);for(var d=0;d<c.length;d++)h[d]=c[d];c=this.valueHexView=new Uint8Array(v)}}this.blockLength=s+1;c[s-1]=n[s]&127;var l=new Uint8Array(s);for(var d=0;d<s;d++)l[d]=c[d];c=this.valueHexView=new Uint8Array(s);c.set(l);if(this.blockLength<=9)this.tagNumber=f(c,7);else{this.isHexOnly=true;this.warnings.push("Tag too long, represented as hex-coded")}}if(this.tagClass===1&&this.isConstructed){switch(this.tagNumber){case 1:case 2:case 5:case 6:case 9:case 13:case 14:case 23:case 24:case 31:case 32:case 33:case 34:this.error="Constructed encoding used for primitive type";return-1}}return e+this.blockLength};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{tagClass:this.tagClass,tagNumber:this.tagNumber,isConstructed:this.isConstructed})};return e}(H(U));L.NAME="identificationBlock";var V=function(t){__extends(e,t);function e(e){var i=e===void 0?{}:e,r=i.lenBlock,n=r===void 0?{}:r;var o,a,s;var u=t.call(this)||this;u.isIndefiniteForm=(o=n.isIndefiniteForm)!==null&&o!==void 0?o:false;u.longFormUsed=(a=n.longFormUsed)!==null&&a!==void 0?a:false;u.length=(s=n.length)!==null&&s!==void 0?s:0;return u}e.prototype.fromBER=function(t,e,i){var r=u.BufferSourceConverter.toUint8Array(t);if(!A(this,r,e,i)){return-1}var n=r.subarray(e,e+i);if(n.length===0){this.error="Zero buffer length";return-1}if(n[0]===255){this.error="Length block 0xFF is reserved by standard";return-1}this.isIndefiniteForm=n[0]===128;if(this.isIndefiniteForm){this.blockLength=1;return e+this.blockLength}this.longFormUsed=!!(n[0]&128);if(this.longFormUsed===false){this.length=n[0];this.blockLength=1;return e+this.blockLength}var o=n[0]&127;if(o>8){this.error="Too big integer";return-1}if(o+1>n.length){this.error="End of input reached before message was fully decoded";return-1}var a=e+1;var s=r.subarray(a,a+o);if(s[o-1]===0)this.warnings.push("Needlessly long encoded length");this.length=f(s,8);if(this.longFormUsed&&this.length<=127)this.warnings.push("Unnecessary usage of long length form");this.blockLength=o+1;return e+this.blockLength};e.prototype.toBER=function(t){if(t===void 0){t=false}var e;var i;if(this.length>127)this.longFormUsed=true;if(this.isIndefiniteForm){e=new ArrayBuffer(1);if(t===false){i=new Uint8Array(e);i[0]=128}return e}if(this.longFormUsed){var r=v(this.length,8);if(r.byteLength>127){this.error="Too big length";return R}e=new ArrayBuffer(r.byteLength+1);if(t)return e;var n=new Uint8Array(r);i=new Uint8Array(e);i[0]=r.byteLength|128;for(var o=0;o<r.byteLength;o++)i[o+1]=n[o];return e}e=new ArrayBuffer(1);if(t===false){i=new Uint8Array(e);i[0]=this.length}return e};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{isIndefiniteForm:this.isIndefiniteForm,longFormUsed:this.longFormUsed,length:this.length})};return e}(U);V.NAME="lengthBlock";var G={};var W=function(t){__extends(e,t);function e(e,i){if(e===void 0){e={}}var r=this;var n=e.name,o=n===void 0?M:n,a=e.optional,s=a===void 0?false:a,u=e.primitiveSchema,c=__rest(e,["name","optional","primitiveSchema"]);r=t.call(this,c)||this;r.name=o;r.optional=s;if(u){r.primitiveSchema=u}r.idBlock=new L(c);r.lenBlock=new V(c);r.valueBlock=i?new i(c):new F(c);return r}e.prototype.fromBER=function(t,e,i){var r=this.valueBlock.fromBER(t,e,this.lenBlock.isIndefiniteForm?i:this.lenBlock.length);if(r===-1){this.error=this.valueBlock.error;return r}if(!this.idBlock.error.length)this.blockLength+=this.idBlock.blockLength;if(!this.lenBlock.error.length)this.blockLength+=this.lenBlock.blockLength;if(!this.valueBlock.error.length)this.blockLength+=this.valueBlock.blockLength;return r};e.prototype.toBER=function(t,e){var i=e||new m;if(!e){Q(this)}var r=this.idBlock.toBER(t);i.write(r);if(this.lenBlock.isIndefiniteForm){i.write(new Uint8Array([128]).buffer);this.valueBlock.toBER(t,i);i.write(new ArrayBuffer(2))}else{var n=this.valueBlock.toBER(t);this.lenBlock.length=n.byteLength;var o=this.lenBlock.toBER(t);i.write(o);i.write(n)}if(!e){return i.final()}return R};e.prototype.toJSON=function(){var e=__assign(__assign({},t.prototype.toJSON.call(this)),{idBlock:this.idBlock.toJSON(),lenBlock:this.lenBlock.toJSON(),valueBlock:this.valueBlock.toJSON(),name:this.name,optional:this.optional});if(this.primitiveSchema)e.primitiveSchema=this.primitiveSchema.toJSON();return e};e.prototype.toString=function(t){if(t===void 0){t="ascii"}if(t==="ascii"){return this.onAsciiEncoding()}return u.Convert.ToHex(this.toBER())};e.prototype.onAsciiEncoding=function(){var t=this.constructor.NAME;var e=u.Convert.ToHex(this.valueBlock.valueBeforeDecodeView);return"".concat(t," : ").concat(e)};e.prototype.isEqual=function(t){if(this===t){return true}if(!(t instanceof this.constructor)){return false}var e=this.toBER();var i=t.toBER();return p(e,i)};return e}(U);W.NAME="BaseBlock";function Q(t){var e;if(t instanceof G.Constructed){for(var i=0,r=t.valueBlock.value;i<r.length;i++){var n=r[i];if(Q(n)){t.lenBlock.isIndefiniteForm=true}}}return!!((e=t.lenBlock)===null||e===void 0?void 0:e.isIndefiniteForm)}var q=function(t){__extends(e,t);function e(e,i){if(e===void 0){e={}}var r=this;var n=e.value,o=n===void 0?M:n,a=__rest(e,["value"]);r=t.call(this,a,i)||this;if(o){r.fromString(o)}return r}e.prototype.getValue=function(){return this.valueBlock.value};e.prototype.setValue=function(t){this.valueBlock.value=t};e.prototype.fromBER=function(t,e,i){var r=this.valueBlock.fromBER(t,e,this.lenBlock.isIndefiniteForm?i:this.lenBlock.length);if(r===-1){this.error=this.valueBlock.error;return r}this.fromBuffer(this.valueBlock.valueHexView);if(!this.idBlock.error.length)this.blockLength+=this.idBlock.blockLength;if(!this.lenBlock.error.length)this.blockLength+=this.lenBlock.blockLength;if(!this.valueBlock.error.length)this.blockLength+=this.valueBlock.blockLength;return r};e.prototype.onAsciiEncoding=function(){return"".concat(this.constructor.NAME," : '").concat(this.valueBlock.value,"'")};return e}(W);q.NAME="BaseStringBlock";var z=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.isHexOnly,n=r===void 0?true:r,o=__rest(e,["isHexOnly"]);i=t.call(this,o)||this;i.isHexOnly=n;return i}return e}(H(F));z.NAME="PrimitiveValueBlock";var Z;var $=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e,z)||this;i.idBlock.isConstructed=false;return i}return e}(W);Z=$;(function(){G.Primitive=Z})();$.NAME="PRIMITIVE";function X(t,e){if(t instanceof e){return t}var i=new e;i.idBlock=t.idBlock;i.lenBlock=t.lenBlock;i.warnings=t.warnings;i.valueBeforeDecodeView=t.valueBeforeDecodeView;return i}function Y(t,e,i){if(e===void 0){e=0}if(i===void 0){i=t.length}var r=e;var n=new W({},F);var o=new U;if(!A(o,t,e,i)){n.error=o.error;return{offset:-1,result:n}}var a=t.subarray(e,e+i);if(!a.length){n.error="Zero buffer length";return{offset:-1,result:n}}var s=n.idBlock.fromBER(t,e,i);if(n.idBlock.warnings.length){n.warnings.concat(n.idBlock.warnings)}if(s===-1){n.error=n.idBlock.error;return{offset:-1,result:n}}e=s;i-=n.idBlock.blockLength;s=n.lenBlock.fromBER(t,e,i);if(n.lenBlock.warnings.length){n.warnings.concat(n.lenBlock.warnings)}if(s===-1){n.error=n.lenBlock.error;return{offset:-1,result:n}}e=s;i-=n.lenBlock.blockLength;if(!n.idBlock.isConstructed&&n.lenBlock.isIndefiniteForm){n.error="Indefinite length form used for primitive encoding form";return{offset:-1,result:n}}var u=W;switch(n.idBlock.tagClass){case 1:if(n.idBlock.tagNumber>=37&&n.idBlock.isHexOnly===false){n.error="UNIVERSAL 37 and upper tags are reserved by ASN.1 standard";return{offset:-1,result:n}}switch(n.idBlock.tagNumber){case 0:if(n.idBlock.isConstructed&&n.lenBlock.length>0){n.error="Type [UNIVERSAL 0] is reserved";return{offset:-1,result:n}}u=G.EndOfContent;break;case 1:u=G.Boolean;break;case 2:u=G.Integer;break;case 3:u=G.BitString;break;case 4:u=G.OctetString;break;case 5:u=G.Null;break;case 6:u=G.ObjectIdentifier;break;case 10:u=G.Enumerated;break;case 12:u=G.Utf8String;break;case 13:u=G.RelativeObjectIdentifier;break;case 14:u=G.TIME;break;case 15:n.error="[UNIVERSAL 15] is reserved by ASN.1 standard";return{offset:-1,result:n};case 16:u=G.Sequence;break;case 17:u=G.Set;break;case 18:u=G.NumericString;break;case 19:u=G.PrintableString;break;case 20:u=G.TeletexString;break;case 21:u=G.VideotexString;break;case 22:u=G.IA5String;break;case 23:u=G.UTCTime;break;case 24:u=G.GeneralizedTime;break;case 25:u=G.GraphicString;break;case 26:u=G.VisibleString;break;case 27:u=G.GeneralString;break;case 28:u=G.UniversalString;break;case 29:u=G.CharacterString;break;case 30:u=G.BmpString;break;case 31:u=G.DATE;break;case 32:u=G.TimeOfDay;break;case 33:u=G.DateTime;break;case 34:u=G.Duration;break;default:{var c=n.idBlock.isConstructed?new G.Constructed:new G.Primitive;c.idBlock=n.idBlock;c.lenBlock=n.lenBlock;c.warnings=n.warnings;n=c}}break;case 2:case 3:case 4:default:{u=n.idBlock.isConstructed?G.Constructed:G.Primitive}}n=X(n,u);s=n.fromBER(t,e,n.lenBlock.isIndefiniteForm?i:n.lenBlock.length);n.valueBeforeDecodeView=t.subarray(r,r+n.blockLength);return{offset:s,result:n}}function J(t){if(!t.byteLength){var e=new W({},F);e.error="Input buffer has zero length";return{offset:-1,result:e}}return Y(u.BufferSourceConverter.toUint8Array(t).slice(),0,t.byteLength)}function tt(t,e){if(t){return 1}return e}var et=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.value,n=r===void 0?[]:r,o=e.isIndefiniteForm,a=o===void 0?false:o,s=__rest(e,["value","isIndefiniteForm"]);i=t.call(this,s)||this;i.value=n;i.isIndefiniteForm=a;return i}e.prototype.fromBER=function(t,e,i){var r=u.BufferSourceConverter.toUint8Array(t);if(!A(this,r,e,i)){return-1}this.valueBeforeDecodeView=r.subarray(e,e+i);if(this.valueBeforeDecodeView.length===0){this.warnings.push("Zero buffer length");return e}var n=e;while(tt(this.isIndefiniteForm,i)>0){var o=Y(r,n,i);if(o.offset===-1){this.error=o.result.error;this.warnings.concat(o.result.warnings);return-1}n=o.offset;this.blockLength+=o.result.blockLength;i-=o.result.blockLength;this.value.push(o.result);if(this.isIndefiniteForm&&o.result.constructor.NAME===k){break}}if(this.isIndefiniteForm){if(this.value[this.value.length-1].constructor.NAME===k){this.value.pop()}else{this.warnings.push("No EndOfContent block encoded")}}return n};e.prototype.toBER=function(t,e){var i=e||new m;for(var r=0;r<this.value.length;r++){this.value[r].toBER(t,i)}if(!e){return i.final()}return R};e.prototype.toJSON=function(){var e=__assign(__assign({},t.prototype.toJSON.call(this)),{isIndefiniteForm:this.isIndefiniteForm,value:[]});for(var i=0,r=this.value;i<r.length;i++){var n=r[i];e.value.push(n.toJSON())}return e};return e}(F);et.NAME="ConstructedValueBlock";var it;var rt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e,et)||this;i.idBlock.isConstructed=true;return i}e.prototype.fromBER=function(t,e,i){this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm;var r=this.valueBlock.fromBER(t,e,this.lenBlock.isIndefiniteForm?i:this.lenBlock.length);if(r===-1){this.error=this.valueBlock.error;return r}if(!this.idBlock.error.length)this.blockLength+=this.idBlock.blockLength;if(!this.lenBlock.error.length)this.blockLength+=this.lenBlock.blockLength;if(!this.valueBlock.error.length)this.blockLength+=this.valueBlock.blockLength;return r};e.prototype.onAsciiEncoding=function(){var t=[];for(var e=0,i=this.valueBlock.value;e<i.length;e++){var r=i[e];t.push(r.toString("ascii").split("\n").map((function(t){return" ".concat(t)})).join("\n"))}var n=this.idBlock.tagClass===3?"[".concat(this.idBlock.tagNumber,"]"):this.constructor.NAME;return t.length?"".concat(n," :\n").concat(t.join("\n")):"".concat(n," :")};return e}(W);it=rt;(function(){G.Constructed=it})();rt.NAME="CONSTRUCTED";var nt=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.fromBER=function(t,e,i){return e};e.prototype.toBER=function(t){return R};return e}(F);nt.override="EndOfContentValueBlock";var ot;var at=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e,nt)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=0;return i}return e}(W);ot=at;(function(){G.EndOfContent=ot})();at.NAME=k;var st;var ut=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e,F)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=5;return i}e.prototype.fromBER=function(t,e,i){if(this.lenBlock.length>0)this.warnings.push("Non-zero length of value block for Null type");if(!this.idBlock.error.length)this.blockLength+=this.idBlock.blockLength;if(!this.lenBlock.error.length)this.blockLength+=this.lenBlock.blockLength;this.blockLength+=i;if(e+i>t.byteLength){this.error="End of input reached before message was fully decoded (inconsistent offset and length values)";return-1}return e+i};e.prototype.toBER=function(t,e){var i=new ArrayBuffer(2);if(!t){var r=new Uint8Array(i);r[0]=5;r[1]=0}if(e){e.write(i)}return i};e.prototype.onAsciiEncoding=function(){return"".concat(this.constructor.NAME)};return e}(W);st=ut;(function(){G.Null=st})();ut.NAME="NULL";var ct=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.value,n=__rest(e,["value"]);i=t.call(this,n)||this;if(n.valueHex){i.valueHexView=u.BufferSourceConverter.toUint8Array(n.valueHex)}else{i.valueHexView=new Uint8Array(1)}if(r){i.value=r}return i}Object.defineProperty(e.prototype,"value",{get:function(){for(var t=0,e=this.valueHexView;t<e.length;t++){var i=e[t];if(i>0){return true}}return false},set:function(t){this.valueHexView[0]=t?255:0},enumerable:false,configurable:true});e.prototype.fromBER=function(t,e,i){var r=u.BufferSourceConverter.toUint8Array(t);if(!A(this,r,e,i)){return-1}this.valueHexView=r.subarray(e,e+i);if(i>1)this.warnings.push("Boolean value encoded in more then 1 octet");this.isHexOnly=true;d.call(this);this.blockLength=i;return e+i};e.prototype.toBER=function(){return this.valueHexView.slice()};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{value:this.value})};return e}(H(F));ct.NAME="BooleanValueBlock";var ft;var vt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e,ct)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=1;return i}e.prototype.getValue=function(){return this.valueBlock.value};e.prototype.setValue=function(t){this.valueBlock.value=t};e.prototype.onAsciiEncoding=function(){return"".concat(this.constructor.NAME," : ").concat(this.getValue)};return e}(W);ft=vt;(function(){G.Boolean=ft})();vt.NAME="BOOLEAN";var ht=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.isConstructed,n=r===void 0?false:r,o=__rest(e,["isConstructed"]);i=t.call(this,o)||this;i.isConstructed=n;return i}e.prototype.fromBER=function(e,i,r){var n=0;if(this.isConstructed){this.isHexOnly=false;n=et.prototype.fromBER.call(this,e,i,r);if(n===-1)return n;for(var o=0;o<this.value.length;o++){var a=this.value[o].constructor.NAME;if(a===k){if(this.isIndefiniteForm)break;else{this.error="EndOfContent is unexpected, OCTET STRING may consists of OCTET STRINGs only";return-1}}if(a!==K){this.error="OCTET STRING may consists of OCTET STRINGs only";return-1}}}else{this.isHexOnly=true;n=t.prototype.fromBER.call(this,e,i,r);this.blockLength=r}return n};e.prototype.toBER=function(t,e){if(this.isConstructed)return et.prototype.toBER.call(this,t,e);return t?new ArrayBuffer(this.valueHexView.byteLength):this.valueHexView.slice().buffer};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{isConstructed:this.isConstructed})};return e}(H(et));ht.NAME="OctetStringValueBlock";var dt;var lt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.idBlock,n=r===void 0?{}:r,o=e.lenBlock,a=o===void 0?{}:o,s=__rest(e,["idBlock","lenBlock"]);var u,c;(u=s.isConstructed)!==null&&u!==void 0?u:s.isConstructed=!!((c=s.value)===null||c===void 0?void 0:c.length);i=t.call(this,__assign({idBlock:__assign({isConstructed:s.isConstructed},n),lenBlock:__assign(__assign({},a),{isIndefiniteForm:!!s.isIndefiniteForm})},s),ht)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=4;return i}e.prototype.fromBER=function(e,i,r){this.valueBlock.isConstructed=this.idBlock.isConstructed;this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm;if(r===0){if(this.idBlock.error.length===0)this.blockLength+=this.idBlock.blockLength;if(this.lenBlock.error.length===0)this.blockLength+=this.lenBlock.blockLength;return i}if(!this.valueBlock.isConstructed){var n=e instanceof ArrayBuffer?new Uint8Array(e):e;var o=n.subarray(i,i+r);try{if(o.byteLength){var a=Y(o,0,o.byteLength);if(a.offset!==-1&&a.offset===r){this.valueBlock.value=[a.result]}}}catch(t){}}return t.prototype.fromBER.call(this,e,i,r)};e.prototype.onAsciiEncoding=function(){if(this.valueBlock.isConstructed||this.valueBlock.value&&this.valueBlock.value.length){return rt.prototype.onAsciiEncoding.call(this)}var t=this.constructor.NAME;var e=u.Convert.ToHex(this.valueBlock.valueHexView);return"".concat(t," : ").concat(e)};e.prototype.getValue=function(){if(!this.idBlock.isConstructed){return this.valueBlock.valueHexView.slice().buffer}var t=[];for(var e=0,i=this.valueBlock.value;e<i.length;e++){var r=i[e];if(r instanceof dt){t.push(r.valueBlock.valueHexView)}}return u.BufferSourceConverter.concat(t)};return e}(W);dt=lt;(function(){G.OctetString=dt})();lt.NAME=K;var pt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.unusedBits,n=r===void 0?0:r,o=e.isConstructed,a=o===void 0?false:o,s=__rest(e,["unusedBits","isConstructed"]);i=t.call(this,s)||this;i.unusedBits=n;i.isConstructed=a;i.blockLength=i.valueHexView.byteLength;return i}e.prototype.fromBER=function(t,e,i){if(!i){return e}var r=-1;if(this.isConstructed){r=et.prototype.fromBER.call(this,t,e,i);if(r===-1)return r;for(var n=0,o=this.value;n<o.length;n++){var a=o[n];var s=a.constructor.NAME;if(s===k){if(this.isIndefiniteForm)break;else{this.error="EndOfContent is unexpected, BIT STRING may consists of BIT STRINGs only";return-1}}if(s!==j){this.error="BIT STRING may consists of BIT STRINGs only";return-1}var c=a.valueBlock;if(this.unusedBits>0&&c.unusedBits>0){this.error='Using of "unused bits" inside constructive BIT STRING allowed for least one only';return-1}this.unusedBits=c.unusedBits}return r}var f=u.BufferSourceConverter.toUint8Array(t);if(!A(this,f,e,i)){return-1}var v=f.subarray(e,e+i);this.unusedBits=v[0];if(this.unusedBits>7){this.error="Unused bits for BitString must be in range 0-7";return-1}if(!this.unusedBits){var h=v.subarray(1);try{if(h.byteLength){var d=Y(h,0,h.byteLength);if(d.offset!==-1&&d.offset===i-1){this.value=[d.result]}}}catch(t){}}this.valueHexView=v.subarray(1);this.blockLength=v.length;return e+i};e.prototype.toBER=function(t,e){if(this.isConstructed){return et.prototype.toBER.call(this,t,e)}if(t){return new ArrayBuffer(this.valueHexView.byteLength+1)}if(!this.valueHexView.byteLength){return R}var i=new Uint8Array(this.valueHexView.length+1);i[0]=this.unusedBits;i.set(this.valueHexView,1);return i.buffer};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{unusedBits:this.unusedBits,isConstructed:this.isConstructed})};return e}(H(et));pt.NAME="BitStringValueBlock";var yt;var St=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.idBlock,n=r===void 0?{}:r,o=e.lenBlock,a=o===void 0?{}:o,s=__rest(e,["idBlock","lenBlock"]);var u,c;(u=s.isConstructed)!==null&&u!==void 0?u:s.isConstructed=!!((c=s.value)===null||c===void 0?void 0:c.length);i=t.call(this,__assign({idBlock:__assign({isConstructed:s.isConstructed},n),lenBlock:__assign(__assign({},a),{isIndefiniteForm:!!s.isIndefiniteForm})},s),pt)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=3;return i}e.prototype.fromBER=function(e,i,r){this.valueBlock.isConstructed=this.idBlock.isConstructed;this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm;return t.prototype.fromBER.call(this,e,i,r)};e.prototype.onAsciiEncoding=function(){if(this.valueBlock.isConstructed||this.valueBlock.value&&this.valueBlock.value.length){return rt.prototype.onAsciiEncoding.call(this)}else{var t=[];var e=this.valueBlock.valueHexView;for(var i=0,r=e;i<r.length;i++){var n=r[i];t.push(n.toString(2).padStart(8,"0"))}var o=t.join("");var a=this.constructor.NAME;var s=o.substring(0,o.length-this.valueBlock.unusedBits);return"".concat(a," : ").concat(s)}};return e}(W);yt=St;(function(){G.BitString=yt})();St.NAME=j;var Ct;function At(t,e){var i=new Uint8Array([0]);var r=new Uint8Array(t);var n=new Uint8Array(e);var o=r.slice(0);var a=o.length-1;var s=n.slice(0);var u=s.length-1;var c=0;var f=u<a?a:u;var v=0;for(var d=f;d>=0;d--,v++){switch(true){case v<s.length:c=o[a-v]+s[u-v]+i[0];break;default:c=o[a-v]+i[0]}i[0]=c/10;switch(true){case v>=o.length:o=h(new Uint8Array([c%10]),o);break;default:o[a-v]=c%10}}if(i[0]>0)o=h(i,o);return o}function mt(t){if(t>=g.length){for(var e=g.length;e<=t;e++){var i=new Uint8Array([0]);var r=g[e-1].slice(0);for(var n=r.length-1;n>=0;n--){var o=new Uint8Array([(r[n]<<1)+i[0]]);i[0]=o[0]/10;r[n]=o[0]%10}if(i[0]>0)r=h(i,r);g.push(r)}}return g[t]}function gt(t,e){var i=0;var r=new Uint8Array(t);var n=new Uint8Array(e);var o=r.slice(0);var a=o.length-1;var s=n.slice(0);var u=s.length-1;var c;var f=0;for(var v=u;v>=0;v--,f++){c=o[a-f]-s[u-f]-i;switch(true){case c<0:i=1;o[a-f]=c+10;break;default:i=0;o[a-f]=c}}if(i>0){for(var v=a-u+1;v>=0;v--,f++){c=o[a-f]-i;if(c<0){i=1;o[a-f]=c+10}else{i=0;o[a-f]=c;break}}}return o.slice()}var wt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.value,n=__rest(e,["value"]);i=t.call(this,n)||this;i._valueDec=0;if(n.valueHex){i.setValueHex()}if(r!==undefined){i.valueDec=r}return i}e.prototype.setValueHex=function(){if(this.valueHexView.length>=4){this.warnings.push("Too big Integer for decoding, hex only");this.isHexOnly=true;this._valueDec=0}else{this.isHexOnly=false;if(this.valueHexView.length>0){this._valueDec=d.call(this)}}};Object.defineProperty(e.prototype,"valueDec",{get:function(){return this._valueDec},set:function(t){this._valueDec=t;this.isHexOnly=false;this.valueHexView=new Uint8Array(l(t))},enumerable:false,configurable:true});e.prototype.fromDER=function(t,e,i,r){if(r===void 0){r=0}var n=this.fromBER(t,e,i);if(n===-1)return n;var o=this.valueHexView;if(o[0]===0&&(o[1]&128)!==0){this.valueHexView=o.subarray(1)}else{if(r!==0){if(o.length<r){if(r-o.length>1)r=o.length+1;this.valueHexView=o.subarray(r-o.length)}}}return n};e.prototype.toDER=function(t){if(t===void 0){t=false}var e=this.valueHexView;switch(true){case(e[0]&128)!==0:{var i=new Uint8Array(this.valueHexView.length+1);i[0]=0;i.set(e,1);this.valueHexView=i}break;case e[0]===0&&(e[1]&128)===0:{this.valueHexView=this.valueHexView.subarray(1)}break}return this.toBER(t)};e.prototype.fromBER=function(e,i,r){var n=t.prototype.fromBER.call(this,e,i,r);if(n===-1){return n}this.setValueHex();return n};e.prototype.toBER=function(t){return t?new ArrayBuffer(this.valueHexView.length):this.valueHexView.slice().buffer};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{valueDec:this.valueDec})};e.prototype.toString=function(){var t=this.valueHexView.length*8-1;var e=new Uint8Array(this.valueHexView.length*8/3);var i=0;var r;var n=this.valueHexView;var o="";var a=false;for(var s=n.byteLength-1;s>=0;s--){r=n[s];for(var u=0;u<8;u++){if((r&1)===1){switch(i){case t:e=gt(mt(i),e);o="-";break;default:e=At(e,mt(i))}}i++;r>>=1}}for(var u=0;u<e.length;u++){if(e[u])a=true;if(a)o+=w.charAt(e[u])}if(a===false)o+=w.charAt(0);return o};return e}(H(F));Ct=wt;wt.NAME="IntegerValueBlock";(function(){Object.defineProperty(Ct.prototype,"valueHex",{set:function(t){this.valueHexView=new Uint8Array(t);this.setValueHex()},get:function(){return this.valueHexView.slice().buffer}})})();var bt;var Et=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e,wt)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=2;return i}e.prototype.toBigInt=function(){S();return BigInt(this.valueBlock.toString())};e.fromBigInt=function(t){S();var e=BigInt(t);var i=new m;var r=e.toString(16).replace(/^-/,"");var n=new Uint8Array(u.Convert.FromHex(r));if(e<0){var o=new Uint8Array(n.length+(n[0]&128?1:0));o[0]|=128;var a=BigInt("0x".concat(u.Convert.ToHex(o)));var s=a+e;var c=u.BufferSourceConverter.toUint8Array(u.Convert.FromHex(s.toString(16)));c[0]|=128;i.write(c)}else{if(n[0]&128){i.write(new Uint8Array([0]))}i.write(n)}var f=new bt({valueHex:i.final()});return f};e.prototype.convertToDER=function(){var t=new bt({valueHex:this.valueBlock.valueHexView});t.valueBlock.toDER();return t};e.prototype.convertFromDER=function(){return new bt({valueHex:this.valueBlock.valueHexView[0]===0?this.valueBlock.valueHexView.subarray(1):this.valueBlock.valueHexView})};e.prototype.onAsciiEncoding=function(){return"".concat(this.constructor.NAME," : ").concat(this.valueBlock.toString())};return e}(W);bt=Et;(function(){G.Integer=bt})();Et.NAME="INTEGER";var Pt;var Dt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=10;return i}return e}(Et);Pt=Dt;(function(){G.Enumerated=Pt})();Dt.NAME="ENUMERATED";var _t=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.valueDec,n=r===void 0?-1:r,o=e.isFirstSid,a=o===void 0?false:o,s=__rest(e,["valueDec","isFirstSid"]);i=t.call(this,s)||this;i.valueDec=n;i.isFirstSid=a;return i}e.prototype.fromBER=function(t,e,i){if(!i){return e}var r=u.BufferSourceConverter.toUint8Array(t);if(!A(this,r,e,i)){return-1}var n=r.subarray(e,e+i);this.valueHexView=new Uint8Array(i);for(var o=0;o<i;o++){this.valueHexView[o]=n[o]&127;this.blockLength++;if((n[o]&128)===0)break}var a=new Uint8Array(this.blockLength);for(var o=0;o<this.blockLength;o++){a[o]=this.valueHexView[o]}this.valueHexView=a;if((n[this.blockLength-1]&128)!==0){this.error="End of input reached before message was fully decoded";return-1}if(this.valueHexView[0]===0)this.warnings.push("Needlessly long format of SID encoding");if(this.blockLength<=8)this.valueDec=f(this.valueHexView,7);else{this.isHexOnly=true;this.warnings.push("Too big SID for decoding, hex only")}return e+this.blockLength};Object.defineProperty(e.prototype,"valueBigInt",{set:function(t){S();var e=BigInt(t).toString(2);while(e.length%7){e="0"+e}var i=new Uint8Array(e.length/7);for(var r=0;r<i.length;r++){i[r]=parseInt(e.slice(r*7,r*7+7),2)+(r+1<i.length?128:0)}this.fromBER(i.buffer,0,i.length)},enumerable:false,configurable:true});e.prototype.toBER=function(t){if(this.isHexOnly){if(t)return new ArrayBuffer(this.valueHexView.byteLength);var e=this.valueHexView;var i=new Uint8Array(this.blockLength);for(var r=0;r<this.blockLength-1;r++)i[r]=e[r]|128;i[this.blockLength-1]=e[this.blockLength-1];return i.buffer}var n=v(this.valueDec,7);if(n.byteLength===0){this.error="Error during encoding SID value";return R}var o=new Uint8Array(n.byteLength);if(!t){var a=new Uint8Array(n);var s=n.byteLength-1;for(var r=0;r<s;r++)o[r]=a[r]|128;o[s]=a[s]}return o};e.prototype.toString=function(){var t="";if(this.isHexOnly)t=u.Convert.ToHex(this.valueHexView);else{if(this.isFirstSid){var e=this.valueDec;if(this.valueDec<=39)t="0.";else{if(this.valueDec<=79){t="1.";e-=40}else{t="2.";e-=80}}t+=e.toString()}else t=this.valueDec.toString()}return t};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{valueDec:this.valueDec,isFirstSid:this.isFirstSid})};return e}(H(F));_t.NAME="sidBlock";var It=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.value,n=r===void 0?M:r,o=__rest(e,["value"]);i=t.call(this,o)||this;i.value=[];if(n){i.fromString(n)}return i}e.prototype.fromBER=function(t,e,i){var r=e;while(i>0){var n=new _t;r=n.fromBER(t,r,i);if(r===-1){this.blockLength=0;this.error=n.error;return r}if(this.value.length===0)n.isFirstSid=true;this.blockLength+=n.blockLength;i-=n.blockLength;this.value.push(n)}return r};e.prototype.toBER=function(t){var e=[];for(var i=0;i<this.value.length;i++){var r=this.value[i].toBER(t);if(r.byteLength===0){this.error=this.value[i].error;return R}e.push(r)}return C(e)};e.prototype.fromString=function(t){this.value=[];var e=0;var i=0;var r="";var n=false;do{i=t.indexOf(".",e);if(i===-1)r=t.substring(e);else r=t.substring(e,i);e=i+1;if(n){var o=this.value[0];var a=0;switch(o.valueDec){case 0:break;case 1:a=40;break;case 2:a=80;break;default:this.value=[];return}var s=parseInt(r,10);if(isNaN(s))return;o.valueDec=s+a;n=false}else{var o=new _t;if(r>Number.MAX_SAFE_INTEGER){S();var u=BigInt(r);o.valueBigInt=u}else{o.valueDec=parseInt(r,10);if(isNaN(o.valueDec))return}if(!this.value.length){o.isFirstSid=true;n=true}this.value.push(o)}}while(i!==-1)};e.prototype.toString=function(){var t="";var e=false;for(var i=0;i<this.value.length;i++){e=this.value[i].isHexOnly;var r=this.value[i].toString();if(i!==0)t="".concat(t,".");if(e){r="{".concat(r,"}");if(this.value[i].isFirstSid)t="2.{".concat(r," - 80}");else t+=r}else t+=r}return t};e.prototype.toJSON=function(){var e=__assign(__assign({},t.prototype.toJSON.call(this)),{value:this.toString(),sidArray:[]});for(var i=0;i<this.value.length;i++){e.sidArray.push(this.value[i].toJSON())}return e};return e}(F);It.NAME="ObjectIdentifierValueBlock";var Bt;var xt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e,It)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=6;return i}e.prototype.getValue=function(){return this.valueBlock.toString()};e.prototype.setValue=function(t){this.valueBlock.fromString(t)};e.prototype.onAsciiEncoding=function(){return"".concat(this.constructor.NAME," : ").concat(this.valueBlock.toString()||"empty")};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{value:this.getValue()})};return e}(W);Bt=xt;(function(){G.ObjectIdentifier=Bt})();xt.NAME="OBJECT IDENTIFIER";var Tt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.valueDec,n=r===void 0?0:r,o=__rest(e,["valueDec"]);i=t.call(this,o)||this;i.valueDec=n;return i}e.prototype.fromBER=function(t,e,i){if(i===0)return e;var r=u.BufferSourceConverter.toUint8Array(t);if(!A(this,r,e,i))return-1;var n=r.subarray(e,e+i);this.valueHexView=new Uint8Array(i);for(var o=0;o<i;o++){this.valueHexView[o]=n[o]&127;this.blockLength++;if((n[o]&128)===0)break}var a=new Uint8Array(this.blockLength);for(var o=0;o<this.blockLength;o++)a[o]=this.valueHexView[o];this.valueHexView=a;if((n[this.blockLength-1]&128)!==0){this.error="End of input reached before message was fully decoded";return-1}if(this.valueHexView[0]===0)this.warnings.push("Needlessly long format of SID encoding");if(this.blockLength<=8)this.valueDec=f(this.valueHexView,7);else{this.isHexOnly=true;this.warnings.push("Too big SID for decoding, hex only")}return e+this.blockLength};e.prototype.toBER=function(t){if(this.isHexOnly){if(t)return new ArrayBuffer(this.valueHexView.byteLength);var e=this.valueHexView;var i=new Uint8Array(this.blockLength);for(var r=0;r<this.blockLength-1;r++)i[r]=e[r]|128;i[this.blockLength-1]=e[this.blockLength-1];return i.buffer}var n=v(this.valueDec,7);if(n.byteLength===0){this.error="Error during encoding SID value";return R}var o=new Uint8Array(n.byteLength);if(!t){var a=new Uint8Array(n);var s=n.byteLength-1;for(var r=0;r<s;r++)o[r]=a[r]|128;o[s]=a[s]}return o.buffer};e.prototype.toString=function(){var t="";if(this.isHexOnly)t=u.Convert.ToHex(this.valueHexView);else{t=this.valueDec.toString()}return t};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{valueDec:this.valueDec})};return e}(H(U));Tt.NAME="relativeSidBlock";var Ot=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.value,n=r===void 0?M:r,o=__rest(e,["value"]);i=t.call(this,o)||this;i.value=[];if(n){i.fromString(n)}return i}e.prototype.fromBER=function(t,e,i){var r=e;while(i>0){var n=new Tt;r=n.fromBER(t,r,i);if(r===-1){this.blockLength=0;this.error=n.error;return r}this.blockLength+=n.blockLength;i-=n.blockLength;this.value.push(n)}return r};e.prototype.toBER=function(t,e){var i=[];for(var r=0;r<this.value.length;r++){var n=this.value[r].toBER(t);if(n.byteLength===0){this.error=this.value[r].error;return R}i.push(n)}return C(i)};e.prototype.fromString=function(t){this.value=[];var e=0;var i=0;var r="";do{i=t.indexOf(".",e);if(i===-1)r=t.substring(e);else r=t.substring(e,i);e=i+1;var n=new Tt;n.valueDec=parseInt(r,10);if(isNaN(n.valueDec))return true;this.value.push(n)}while(i!==-1);return true};e.prototype.toString=function(){var t="";var e=false;for(var i=0;i<this.value.length;i++){e=this.value[i].isHexOnly;var r=this.value[i].toString();if(i!==0)t="".concat(t,".");if(e){r="{".concat(r,"}");t+=r}else t+=r}return t};e.prototype.toJSON=function(){var e=__assign(__assign({},t.prototype.toJSON.call(this)),{value:this.toString(),sidArray:[]});for(var i=0;i<this.value.length;i++)e.sidArray.push(this.value[i].toJSON());return e};return e}(F);Ot.NAME="RelativeObjectIdentifierValueBlock";var Mt;var Rt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e,Ot)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=13;return i}e.prototype.getValue=function(){return this.valueBlock.toString()};e.prototype.setValue=function(t){this.valueBlock.fromString(t)};e.prototype.onAsciiEncoding=function(){return"".concat(this.constructor.NAME," : ").concat(this.valueBlock.toString()||"empty")};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{value:this.getValue()})};return e}(W);Mt=Rt;(function(){G.RelativeObjectIdentifier=Mt})();Rt.NAME="RelativeObjectIdentifier";var Nt;var kt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=16;return i}return e}(rt);Nt=kt;(function(){G.Sequence=Nt})();kt.NAME="SEQUENCE";var Kt;var jt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=17;return i}return e}(rt);Kt=jt;(function(){G.Set=Kt})();jt.NAME="SET";var Ht=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=__rest(e,[]);i=t.call(this,r)||this;i.isHexOnly=true;i.value=M;return i}e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{value:this.value})};return e}(H(F));Ht.NAME="StringValueBlock";var Ut=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Ht);Ut.NAME="SimpleStringValueBlock";var Ft=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=__rest(e,[]);return t.call(this,i,Ut)||this}e.prototype.fromBuffer=function(t){this.valueBlock.value=String.fromCharCode.apply(null,u.BufferSourceConverter.toUint8Array(t))};e.prototype.fromString=function(t){var e=t.length;var i=this.valueBlock.valueHexView=new Uint8Array(e);for(var r=0;r<e;r++)i[r]=t.charCodeAt(r);this.valueBlock.value=t};return e}(q);Ft.NAME="SIMPLE STRING";var Lt=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.fromBuffer=function(t){this.valueBlock.valueHexView=u.BufferSourceConverter.toUint8Array(t);try{this.valueBlock.value=u.Convert.ToUtf8String(t)}catch(e){this.warnings.push('Error during "decodeURIComponent": '.concat(e,", using raw string"));this.valueBlock.value=u.Convert.ToBinary(t)}};e.prototype.fromString=function(t){this.valueBlock.valueHexView=new Uint8Array(u.Convert.FromUtf8String(t));this.valueBlock.value=t};return e}(Ft);Lt.NAME="Utf8StringValueBlock";var Vt;var Gt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=12;return i}return e}(Lt);Vt=Gt;(function(){G.Utf8String=Vt})();Gt.NAME="UTF8String";var Wt=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.fromBuffer=function(t){this.valueBlock.value=u.Convert.ToUtf16String(t);this.valueBlock.valueHexView=u.BufferSourceConverter.toUint8Array(t)};e.prototype.fromString=function(t){this.valueBlock.value=t;this.valueBlock.valueHexView=new Uint8Array(u.Convert.FromUtf16String(t))};return e}(Ft);Wt.NAME="BmpStringValueBlock";var Qt;var qt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=__rest(e,[]);i=t.call(this,r)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=30;return i}return e}(Wt);Qt=qt;(function(){G.BmpString=Qt})();qt.NAME="BMPString";var zt=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.fromBuffer=function(t){var e=ArrayBuffer.isView(t)?t.slice().buffer:t.slice(0);var i=new Uint8Array(e);for(var r=0;r<i.length;r+=4){i[r]=i[r+3];i[r+1]=i[r+2];i[r+2]=0;i[r+3]=0}this.valueBlock.value=String.fromCharCode.apply(null,new Uint32Array(e))};e.prototype.fromString=function(t){var e=t.length;var i=this.valueBlock.valueHexView=new Uint8Array(e*4);for(var r=0;r<e;r++){var n=v(t.charCodeAt(r),8);var o=new Uint8Array(n);if(o.length>4)continue;var a=4-o.length;for(var s=o.length-1;s>=0;s--)i[r*4+s+a]=o[s]}this.valueBlock.value=t};return e}(Ft);zt.NAME="UniversalStringValueBlock";var Zt;var $t=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=__rest(e,[]);i=t.call(this,r)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=28;return i}return e}(zt);Zt=$t;(function(){G.UniversalString=Zt})();$t.NAME="UniversalString";var Xt;var Yt=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=18;return i}return e}(Ft);Xt=Yt;(function(){G.NumericString=Xt})();Yt.NAME="NumericString";var Jt;var te=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=19;return i}return e}(Ft);Jt=te;(function(){G.PrintableString=Jt})();te.NAME="PrintableString";var ee;var ie=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=20;return i}return e}(Ft);ee=ie;(function(){G.TeletexString=ee})();ie.NAME="TeletexString";var re;var ne=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=21;return i}return e}(Ft);re=ne;(function(){G.VideotexString=re})();ne.NAME="VideotexString";var oe;var ae=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=22;return i}return e}(Ft);oe=ae;(function(){G.IA5String=oe})();ae.NAME="IA5String";var se;var ue=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=25;return i}return e}(Ft);se=ue;(function(){G.GraphicString=se})();ue.NAME="GraphicString";var ce;var fe=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=26;return i}return e}(Ft);ce=fe;(function(){G.VisibleString=ce})();fe.NAME="VisibleString";var ve;var he=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=27;return i}return e}(Ft);ve=he;(function(){G.GeneralString=ve})();he.NAME="GeneralString";var de;var le=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=29;return i}return e}(Ft);de=le;(function(){G.CharacterString=de})();le.NAME="CharacterString";var pe;var ye=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.value,n=e.valueDate,o=__rest(e,["value","valueDate"]);i=t.call(this,o)||this;i.year=0;i.month=0;i.day=0;i.hour=0;i.minute=0;i.second=0;if(r){i.fromString(r);i.valueBlock.valueHexView=new Uint8Array(r.length);for(var a=0;a<r.length;a++)i.valueBlock.valueHexView[a]=r.charCodeAt(a)}if(n){i.fromDate(n);i.valueBlock.valueHexView=new Uint8Array(i.toBuffer())}i.idBlock.tagClass=1;i.idBlock.tagNumber=23;return i}e.prototype.fromBuffer=function(t){this.fromString(String.fromCharCode.apply(null,u.BufferSourceConverter.toUint8Array(t)))};e.prototype.toBuffer=function(){var t=this.toString();var e=new ArrayBuffer(t.length);var i=new Uint8Array(e);for(var r=0;r<t.length;r++)i[r]=t.charCodeAt(r);return e};e.prototype.fromDate=function(t){this.year=t.getUTCFullYear();this.month=t.getUTCMonth()+1;this.day=t.getUTCDate();this.hour=t.getUTCHours();this.minute=t.getUTCMinutes();this.second=t.getUTCSeconds()};e.prototype.toDate=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second))};e.prototype.fromString=function(t){var e=/(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})Z/gi;var i=e.exec(t);if(i===null){this.error="Wrong input string for conversion";return}var r=parseInt(i[1],10);if(r>=50)this.year=1900+r;else this.year=2e3+r;this.month=parseInt(i[2],10);this.day=parseInt(i[3],10);this.hour=parseInt(i[4],10);this.minute=parseInt(i[5],10);this.second=parseInt(i[6],10)};e.prototype.toString=function(e){if(e===void 0){e="iso"}if(e==="iso"){var i=new Array(7);i[0]=y(this.year<2e3?this.year-1900:this.year-2e3,2);i[1]=y(this.month,2);i[2]=y(this.day,2);i[3]=y(this.hour,2);i[4]=y(this.minute,2);i[5]=y(this.second,2);i[6]="Z";return i.join("")}return t.prototype.toString.call(this,e)};e.prototype.onAsciiEncoding=function(){return"".concat(this.constructor.NAME," : ").concat(this.toDate().toISOString())};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second})};return e}(fe);pe=ye;(function(){G.UTCTime=pe})();ye.NAME="UTCTime";var Se;var Ce=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i;var r=t.call(this,e)||this;(i=r.millisecond)!==null&&i!==void 0?i:r.millisecond=0;r.idBlock.tagClass=1;r.idBlock.tagNumber=24;return r}e.prototype.fromDate=function(e){t.prototype.fromDate.call(this,e);this.millisecond=e.getUTCMilliseconds()};e.prototype.toDate=function(){var t=Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond);return new Date(t)};e.prototype.fromString=function(t){var e=false;var i="";var r="";var n=0;var o;var a=0;var s=0;if(t[t.length-1]==="Z"){i=t.substring(0,t.length-1);e=true}else{var u=new Number(t[t.length-1]);if(isNaN(u.valueOf()))throw new Error("Wrong input string for conversion");i=t}if(e){if(i.indexOf("+")!==-1)throw new Error("Wrong input string for conversion");if(i.indexOf("-")!==-1)throw new Error("Wrong input string for conversion")}else{var c=1;var f=i.indexOf("+");var v="";if(f===-1){f=i.indexOf("-");c=-1}if(f!==-1){v=i.substring(f+1);i=i.substring(0,f);if(v.length!==2&&v.length!==4)throw new Error("Wrong input string for conversion");var u=parseInt(v.substring(0,2),10);if(isNaN(u.valueOf()))throw new Error("Wrong input string for conversion");a=c*u;if(v.length===4){u=parseInt(v.substring(2,4),10);if(isNaN(u.valueOf()))throw new Error("Wrong input string for conversion");s=c*u}}}var h=i.indexOf(".");if(h===-1)h=i.indexOf(",");if(h!==-1){var d=new Number("0".concat(i.substring(h)));if(isNaN(d.valueOf()))throw new Error("Wrong input string for conversion");n=d.valueOf();r=i.substring(0,h)}else r=i;switch(true){case r.length===8:o=/(\d{4})(\d{2})(\d{2})/gi;if(h!==-1)throw new Error("Wrong input string for conversion");break;case r.length===10:o=/(\d{4})(\d{2})(\d{2})(\d{2})/gi;if(h!==-1){var l=60*n;this.minute=Math.floor(l);l=60*(l-this.minute);this.second=Math.floor(l);l=1e3*(l-this.second);this.millisecond=Math.floor(l)}break;case r.length===12:o=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})/gi;if(h!==-1){var l=60*n;this.second=Math.floor(l);l=1e3*(l-this.second);this.millisecond=Math.floor(l)}break;case r.length===14:o=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/gi;if(h!==-1){var l=1e3*n;this.millisecond=Math.floor(l)}break;default:throw new Error("Wrong input string for conversion")}var p=o.exec(r);if(p===null)throw new Error("Wrong input string for conversion");for(var y=1;y<p.length;y++){switch(y){case 1:this.year=parseInt(p[y],10);break;case 2:this.month=parseInt(p[y],10);break;case 3:this.day=parseInt(p[y],10);break;case 4:this.hour=parseInt(p[y],10)+a;break;case 5:this.minute=parseInt(p[y],10)+s;break;case 6:this.second=parseInt(p[y],10);break;default:throw new Error("Wrong input string for conversion")}}if(e===false){var S=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond);this.year=S.getUTCFullYear();this.month=S.getUTCMonth();this.day=S.getUTCDay();this.hour=S.getUTCHours();this.minute=S.getUTCMinutes();this.second=S.getUTCSeconds();this.millisecond=S.getUTCMilliseconds()}};e.prototype.toString=function(e){if(e===void 0){e="iso"}if(e==="iso"){var i=[];i.push(y(this.year,4));i.push(y(this.month,2));i.push(y(this.day,2));i.push(y(this.hour,2));i.push(y(this.minute,2));i.push(y(this.second,2));if(this.millisecond!==0){i.push(".");i.push(y(this.millisecond,3))}i.push("Z");return i.join("")}return t.prototype.toString.call(this,e)};e.prototype.toJSON=function(){return __assign(__assign({},t.prototype.toJSON.call(this)),{millisecond:this.millisecond})};return e}(ye);Se=Ce;(function(){G.GeneralizedTime=Se})();Ce.NAME="GeneralizedTime";var Ae;var me=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=31;return i}return e}(Gt);Ae=me;(function(){G.DATE=Ae})();me.NAME="DATE";var ge;var we=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=32;return i}return e}(Gt);ge=we;(function(){G.TimeOfDay=ge})();we.NAME="TimeOfDay";var be;var Ee=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=33;return i}return e}(Gt);be=Ee;(function(){G.DateTime=be})();Ee.NAME="DateTime";var Pe;var De=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=34;return i}return e}(Gt);Pe=De;(function(){G.Duration=Pe})();De.NAME="Duration";var _e;var Ie=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;i.idBlock.tagClass=1;i.idBlock.tagNumber=14;return i}return e}(Gt);_e=Ie;(function(){G.TIME=_e})();Ie.NAME="TIME";var Be=function(){function t(t){var e=t===void 0?{}:t,i=e.name,r=i===void 0?M:i,n=e.optional,o=n===void 0?false:n;this.name=r;this.optional=o}return t}();var xe=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.value,n=r===void 0?[]:r,o=__rest(e,["value"]);i=t.call(this,o)||this;i.value=n;return i}return e}(Be);var Te=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=this;var r=e.value,n=r===void 0?new Be:r,o=e.local,a=o===void 0?false:o,s=__rest(e,["value","local"]);i=t.call(this,s)||this;i.value=n;i.local=a;return i}return e}(Be);var Oe=function(){function t(t){var e=t===void 0?{}:t,i=e.data,r=i===void 0?N:i;this.dataView=u.BufferSourceConverter.toUint8Array(r)}Object.defineProperty(t.prototype,"data",{get:function(){return this.dataView.slice().buffer},set:function(t){this.dataView=u.BufferSourceConverter.toUint8Array(t)},enumerable:false,configurable:true});t.prototype.fromBER=function(t,e,i){var r=e+i;this.dataView=u.BufferSourceConverter.toUint8Array(t).subarray(e,r);return r};t.prototype.toBER=function(t){return this.dataView.slice().buffer};return t}();function Me(t,e,i){if(i instanceof xe){for(var r=0,n=i.value;r<n.length;r++){var o=n[r];var a=Me(t,e,o);if(a.verified){return{verified:true,result:t}}}{var s={verified:false,result:{error:"Wrong values for Choice type"}};if(i.hasOwnProperty(b))s.name=i.name;return s}}if(i instanceof Be){if(i.hasOwnProperty(b))t[i.name]=e;return{verified:true,result:t}}if(t instanceof Object===false){return{verified:false,result:{error:"Wrong root object"}}}if(e instanceof Object===false){return{verified:false,result:{error:"Wrong ASN.1 data"}}}if(i instanceof Object===false){return{verified:false,result:{error:"Wrong ASN.1 schema"}}}if(D in i===false){return{verified:false,result:{error:"Wrong ASN.1 schema"}}}if(x in i.idBlock===false){return{verified:false,result:{error:"Wrong ASN.1 schema"}}}if(T in i.idBlock===false){return{verified:false,result:{error:"Wrong ASN.1 schema"}}}var u=i.idBlock.toBER(false);if(u.byteLength===0){return{verified:false,result:{error:"Error encoding idBlock for ASN.1 schema"}}}var c=i.idBlock.fromBER(u,0,u.byteLength);if(c===-1){return{verified:false,result:{error:"Error decoding idBlock for ASN.1 schema"}}}if(i.idBlock.hasOwnProperty(_)===false){return{verified:false,result:{error:"Wrong ASN.1 schema"}}}if(i.idBlock.tagClass!==e.idBlock.tagClass){return{verified:false,result:t}}if(i.idBlock.hasOwnProperty(I)===false){return{verified:false,result:{error:"Wrong ASN.1 schema"}}}if(i.idBlock.tagNumber!==e.idBlock.tagNumber){return{verified:false,result:t}}if(i.idBlock.hasOwnProperty(B)===false){return{verified:false,result:{error:"Wrong ASN.1 schema"}}}if(i.idBlock.isConstructed!==e.idBlock.isConstructed){return{verified:false,result:t}}if(!(P in i.idBlock)){return{verified:false,result:{error:"Wrong ASN.1 schema"}}}if(i.idBlock.isHexOnly!==e.idBlock.isHexOnly){return{verified:false,result:t}}if(i.idBlock.isHexOnly){if(E in i.idBlock===false){return{verified:false,result:{error:"Wrong ASN.1 schema"}}}var f=i.idBlock.valueHexView;var v=e.idBlock.valueHexView;if(f.length!==v.length){return{verified:false,result:t}}for(var h=0;h<f.length;h++){if(f[h]!==v[1]){return{verified:false,result:t}}}}if(i.name){i.name=i.name.replace(/^\s+|\s+$/g,M);if(i.name)t[i.name]=e}if(i instanceof G.Constructed){var d=0;var a={verified:false,result:{error:"Unknown error"}};var l=i.valueBlock.value.length;if(l>0){if(i.valueBlock.value[0]instanceof Te){l=e.valueBlock.value.length}}if(l===0){return{verified:true,result:t}}if(e.valueBlock.value.length===0&&i.valueBlock.value.length!==0){var p=true;for(var h=0;h<i.valueBlock.value.length;h++)p=p&&(i.valueBlock.value[h].optional||false);if(p){return{verified:true,result:t}}if(i.name){i.name=i.name.replace(/^\s+|\s+$/g,M);if(i.name)delete t[i.name]}t.error="Inconsistent object length";return{verified:false,result:t}}for(var h=0;h<l;h++){if(h-d>=e.valueBlock.value.length){if(i.valueBlock.value[h].optional===false){var s={verified:false,result:t};t.error="Inconsistent length between ASN.1 data and schema";if(i.name){i.name=i.name.replace(/^\s+|\s+$/g,M);if(i.name){delete t[i.name];s.name=i.name}}return s}}else{if(i.valueBlock.value[0]instanceof Te){a=Me(t,e.valueBlock.value[h],i.valueBlock.value[0].value);if(a.verified===false){if(i.valueBlock.value[0].optional)d++;else{if(i.name){i.name=i.name.replace(/^\s+|\s+$/g,M);if(i.name)delete t[i.name]}return a}}if(b in i.valueBlock.value[0]&&i.valueBlock.value[0].name.length>0){var y={};if(O in i.valueBlock.value[0]&&i.valueBlock.value[0].local)y=e;else y=t;if(typeof y[i.valueBlock.value[0].name]==="undefined")y[i.valueBlock.value[0].name]=[];y[i.valueBlock.value[0].name].push(e.valueBlock.value[h])}}else{a=Me(t,e.valueBlock.value[h-d],i.valueBlock.value[h]);if(a.verified===false){if(i.valueBlock.value[h].optional)d++;else{if(i.name){i.name=i.name.replace(/^\s+|\s+$/g,M);if(i.name)delete t[i.name]}return a}}}}}if(a.verified===false){var s={verified:false,result:t};if(i.name){i.name=i.name.replace(/^\s+|\s+$/g,M);if(i.name){delete t[i.name];s.name=i.name}}return s}return{verified:true,result:t}}if(i.primitiveSchema&&E in e.valueBlock){var S=Y(e.valueBlock.valueHexView);if(S.offset===-1){var s={verified:false,result:S.result};if(i.name){i.name=i.name.replace(/^\s+|\s+$/g,M);if(i.name){delete t[i.name];s.name=i.name}}return s}return Me(t,S.result,i.primitiveSchema)}return{verified:true,result:t}}function Re(t,e){if(e instanceof Object===false){return{verified:false,result:{error:"Wrong ASN.1 schema type"}}}var i=Y(u.BufferSourceConverter.toUint8Array(t));if(i.offset===-1){return{verified:false,result:i.result}}return Me(i.result,i.result,e)}var Ne=Object.freeze({__proto__:null,Any:Be,BaseBlock:W,BaseStringBlock:q,BitString:St,BmpString:qt,Boolean:vt,CharacterString:le,Choice:xe,Constructed:rt,DATE:me,DateTime:Ee,Duration:De,EndOfContent:at,Enumerated:Dt,GeneralString:he,GeneralizedTime:Ce,GraphicString:ue,HexBlock:H,IA5String:ae,Integer:Et,Null:ut,NumericString:Yt,ObjectIdentifier:xt,OctetString:lt,Primitive:$,PrintableString:te,RawData:Oe,RelativeObjectIdentifier:Rt,Repeated:Te,Sequence:kt,Set:jt,TIME:Ie,TeletexString:ie,TimeOfDay:we,UTCTime:ye,UniversalString:$t,Utf8String:Gt,ValueBlock:F,VideotexString:ne,ViewWriter:m,VisibleString:fe,compareSchema:Me,fromBER:J,verifySchema:Re});var ke;t("ah",ke);(function(t){t[t["Sequence"]=0]="Sequence";t[t["Set"]=1]="Set";t[t["Choice"]=2]="Choice"})(ke||t("ah",ke={}));var Ke;t("af",Ke);(function(t){t[t["Any"]=1]="Any";t[t["Boolean"]=2]="Boolean";t[t["OctetString"]=3]="OctetString";t[t["BitString"]=4]="BitString";t[t["Integer"]=5]="Integer";t[t["Enumerated"]=6]="Enumerated";t[t["ObjectIdentifier"]=7]="ObjectIdentifier";t[t["Utf8String"]=8]="Utf8String";t[t["BmpString"]=9]="BmpString";t[t["UniversalString"]=10]="UniversalString";t[t["NumericString"]=11]="NumericString";t[t["PrintableString"]=12]="PrintableString";t[t["TeletexString"]=13]="TeletexString";t[t["VideotexString"]=14]="VideotexString";t[t["IA5String"]=15]="IA5String";t[t["GraphicString"]=16]="GraphicString";t[t["VisibleString"]=17]="VisibleString";t[t["GeneralString"]=18]="GeneralString";t[t["CharacterString"]=19]="CharacterString";t[t["UTCTime"]=20]="UTCTime";t[t["GeneralizedTime"]=21]="GeneralizedTime";t[t["DATE"]=22]="DATE";t[t["TimeOfDay"]=23]="TimeOfDay";t[t["DateTime"]=24]="DateTime";t[t["Duration"]=25]="Duration";t[t["TIME"]=26]="TIME";t[t["Null"]=27]="Null"})(Ke||t("af",Ke={}));var je=function(){function t(t,e){if(e===void 0){e=0}this.unusedBits=0;this.value=new ArrayBuffer(0);if(t){if(typeof t==="number"){this.fromNumber(t)}else if(u.BufferSourceConverter.isBufferSource(t)){this.unusedBits=e;this.value=u.BufferSourceConverter.toArrayBuffer(t)}else{throw TypeError("Unsupported type of 'params' argument for BitString")}}}t.prototype.fromASN=function(t){if(!(t instanceof St)){throw new TypeError("Argument 'asn' is not instance of ASN.1 BitString")}this.unusedBits=t.valueBlock.unusedBits;this.value=t.valueBlock.valueHex;return this};t.prototype.toASN=function(){return new St({unusedBits:this.unusedBits,valueHex:this.value})};t.prototype.toSchema=function(t){return new St({name:t})};t.prototype.toNumber=function(){var t="";var e=new Uint8Array(this.value);for(var i=0,r=e;i<r.length;i++){var n=r[i];t+=n.toString(2).padStart(8,"0")}t=t.split("").reverse().join("");if(this.unusedBits){t=t.slice(this.unusedBits).padStart(this.unusedBits,"0")}return parseInt(t,2)};t.prototype.fromNumber=function(t){var e=t.toString(2);var i=e.length+7>>3;this.unusedBits=(i<<3)-e.length;var r=new Uint8Array(i);e=e.padStart(i<<3,"0").split("").reverse().join("");var n=0;while(n<i){r[n]=parseInt(e.slice(n<<3,(n<<3)+8),2);n++}this.value=r.buffer};return t}();var He=function(){function t(t){if(typeof t==="number"){this.buffer=new ArrayBuffer(t)}else{if(u.BufferSourceConverter.isBufferSource(t)){this.buffer=u.BufferSourceConverter.toArrayBuffer(t)}else if(Array.isArray(t)){this.buffer=new Uint8Array(t)}else{this.buffer=new ArrayBuffer(0)}}}Object.defineProperty(t.prototype,"byteLength",{get:function(){return this.buffer.byteLength},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"byteOffset",{get:function(){return 0},enumerable:false,configurable:true});t.prototype.fromASN=function(t){if(!(t instanceof lt)){throw new TypeError("Argument 'asn' is not instance of ASN.1 OctetString")}this.buffer=t.valueBlock.valueHex;return this};t.prototype.toASN=function(){return new lt({valueHex:this.buffer})};t.prototype.toSchema=function(t){return new lt({name:t})};return t}();t("a1",He);var Ue={fromASN:function(t){return t instanceof ut?null:t.valueBeforeDecodeView},toASN:function(t){if(t===null){return new ut}var e=J(t);if(e.result.error){throw new Error(e.result.error)}return e.result}};var Fe={fromASN:function(t){return t.valueBlock.valueHexView.byteLength>=4?t.valueBlock.toString():t.valueBlock.valueDec},toASN:function(t){return new Et({value:+t})}};var Le={fromASN:function(t){return t.valueBlock.valueDec},toASN:function(t){return new Dt({value:t})}};var Ve=t("al",{fromASN:function(t){return t.valueBlock.valueHexView},toASN:function(t){return new Et({valueHex:t})}});var Ge={fromASN:function(t){return t.valueBlock.valueHexView},toASN:function(t){return new St({valueHex:t})}};var We={fromASN:function(t){return t.valueBlock.toString()},toASN:function(t){return new xt({value:t})}};var Qe={fromASN:function(t){return t.valueBlock.value},toASN:function(t){return new vt({value:t})}};var qe={fromASN:function(t){return t.valueBlock.valueHexView},toASN:function(t){return new lt({valueHex:t})}};var ze={fromASN:function(t){return new He(t.getValue())},toASN:function(t){return t.toASN()}};function Ze(t){return{fromASN:function(t){return t.valueBlock.value},toASN:function(e){return new t({value:e})}}}var $e=Ze(Gt);var Xe=Ze(qt);var Ye=Ze($t);var Je=Ze(Yt);var ti=Ze(te);var ei=Ze(ie);var ii=Ze(ne);var ri=Ze(ae);var ni=Ze(ue);var oi=Ze(fe);var ai=Ze(he);var si=Ze(le);var ui={fromASN:function(t){return t.toDate()},toASN:function(t){return new ye({valueDate:t})}};var ci={fromASN:function(t){return t.toDate()},toASN:function(t){return new Ce({valueDate:t})}};var fi={fromASN:function(){return null},toASN:function(){return new ut}};function vi(t){switch(t){case Ke.Any:return Ue;case Ke.BitString:return Ge;case Ke.BmpString:return Xe;case Ke.Boolean:return Qe;case Ke.CharacterString:return si;case Ke.Enumerated:return Le;case Ke.GeneralString:return ai;case Ke.GeneralizedTime:return ci;case Ke.GraphicString:return ni;case Ke.IA5String:return ri;case Ke.Integer:return Fe;case Ke.Null:return fi;case Ke.NumericString:return Je;case Ke.ObjectIdentifier:return We;case Ke.OctetString:return qe;case Ke.PrintableString:return ti;case Ke.TeletexString:return ei;case Ke.UTCTime:return ui;case Ke.UniversalString:return Ye;case Ke.Utf8String:return $e;case Ke.VideotexString:return ii;case Ke.VisibleString:return oi;default:return null}}function hi(t){if(typeof t==="function"&&t.prototype){if(t.prototype.toASN&&t.prototype.fromASN){return true}else{return hi(t.prototype)}}else{return!!(t&&typeof t==="object"&&"toASN"in t&&"fromASN"in t)}}function di(t){var e;if(t){var i=Object.getPrototypeOf(t);if(((e=i===null||i===void 0?void 0:i.prototype)===null||e===void 0?void 0:e.constructor)===Array){return true}return di(i)}return false}function li(t,e){if(!(t&&e)){return false}if(t.byteLength!==e.byteLength){return false}var i=new Uint8Array(t);var r=new Uint8Array(e);for(var n=0;n<t.byteLength;n++){if(i[n]!==r[n]){return false}}return true}var pi=function(){function t(){this.items=new WeakMap}t.prototype.has=function(t){return this.items.has(t)};t.prototype.get=function(t,e){if(e===void 0){e=false}var i=this.items.get(t);if(!i){throw new Error("Cannot get schema for '".concat(t.prototype.constructor.name,"' target"))}if(e&&!i.schema){throw new Error("Schema '".concat(t.prototype.constructor.name,"' doesn't contain ASN.1 schema. Call 'AsnSchemaStorage.cache'."))}return i};t.prototype.cache=function(t){var e=this.get(t);if(!e.schema){e.schema=this.create(t,true)}};t.prototype.createDefault=function(t){var e={type:ke.Sequence,items:{}};var i=this.findParentSchema(t);if(i){Object.assign(e,i);e.items=Object.assign({},e.items,i.items)}return e};t.prototype.create=function(t,e){var i=this.items.get(t)||this.createDefault(t);var r=[];for(var n in i.items){var o=i.items[n];var a=e?n:"";var s=void 0;if(typeof o.type==="number"){var u=Ke[o.type];var c=Ne[u];if(!c){throw new Error("Cannot get ASN1 class by name '".concat(u,"'"))}s=new c({name:a})}else if(hi(o.type)){var f=new o.type;s=f.toSchema(a)}else if(o.optional){var v=this.get(o.type);if(v.type===ke.Choice){s=new Be({name:a})}else{s=this.create(o.type,false);s.name=a}}else{s=new Be({name:a})}var h=!!o.optional||o.defaultValue!==undefined;if(o.repeated){s.name="";var d=o.repeated==="set"?jt:kt;s=new d({name:"",value:[new Te({name:a,value:s})]})}if(o.context!==null&&o.context!==undefined){if(o.implicit){if(typeof o.type==="number"||hi(o.type)){var d=o.repeated?rt:$;r.push(new d({name:a,optional:h,idBlock:{tagClass:3,tagNumber:o.context}}))}else{this.cache(o.type);var l=!!o.repeated;var p=!l?this.get(o.type,true).schema:s;p="valueBlock"in p?p.valueBlock.value:p.value;r.push(new rt({name:!l?a:"",optional:h,idBlock:{tagClass:3,tagNumber:o.context},value:p}))}}else{r.push(new rt({optional:h,idBlock:{tagClass:3,tagNumber:o.context},value:[s]}))}}else{s.optional=h;r.push(s)}}switch(i.type){case ke.Sequence:return new kt({value:r,name:""});case ke.Set:return new jt({value:r,name:""});case ke.Choice:return new xe({value:r,name:""});default:throw new Error("Unsupported ASN1 type in use")}};t.prototype.set=function(t,e){this.items.set(t,e);return this};t.prototype.findParentSchema=function(t){var e=Object.getPrototypeOf(t);if(e){var i=this.items.get(e);return i||this.findParentSchema(e)}return null};return t}();var yi=new pi;var Si=t("ag",(function(t){return function(e){var i;if(!yi.has(e)){i=yi.createDefault(e);yi.set(e,i)}else{i=yi.get(e)}Object.assign(i,t)}}));var Ci=t("ae",(function(t){return function(e,i){var r;if(!yi.has(e.constructor)){r=yi.createDefault(e.constructor);yi.set(e.constructor,r)}else{r=yi.get(e.constructor)}var n=Object.assign({},t);if(typeof n.type==="number"&&!n.converter){var o=vi(t.type);if(!o){throw new Error("Cannot get default converter for property '".concat(i,"' of ").concat(e.constructor.name))}n.converter=o}r.items[i]=n}}));var Ai=function(t){__extends(e,t);function e(){var e=t.apply(this,arguments)||this;e.schemas=[];return e}return e}(Error);var mi=function(){function t(){}t.parse=function(t,e){var i=J(t);if(i.result.error){throw new Error(i.result.error)}var r=this.fromASN(i.result,e);return r};t.fromASN=function(t,e){try{if(hi(e)){var i=new e;return i.fromASN(t)}var r=yi.get(e);yi.cache(e);var n=r.schema;var o=this.handleChoiceTypes(t,r,e,n);if(o===null||o===void 0?void 0:o.result){return o.result}if(o===null||o===void 0?void 0:o.targetSchema){n=o.targetSchema}var a=this.handleSequenceTypes(t,r,e,n);if(a&&"isManualMapping"in a){return a.result}var s=a;var u=new e;if(di(e)){return this.handleArrayTypes(t,r,e)}this.processSchemaItems(r,s,u);return u}catch(t){if(t instanceof Ai){t.schemas.push(e.name)}throw t}};t.handleChoiceTypes=function(t,e,i,r){if(t.constructor===rt&&e.type===ke.Choice&&t.idBlock.tagClass===3){for(var n in e.items){var o=e.items[n];if(o.context===t.idBlock.tagNumber&&o.implicit){if(typeof o.type==="function"&&yi.has(o.type)){var a=yi.get(o.type);if(a&&a.type===ke.Sequence){var s=new kt;if("value"in t.valueBlock&&Array.isArray(t.valueBlock.value)&&"value"in s.valueBlock){s.valueBlock.value=t.valueBlock.value;var u=this.fromASN(s,o.type);var c=new i;c[n]=u;return{result:c}}}}}}}else if(t.constructor===rt&&e.type!==ke.Choice){var f=new rt({idBlock:{tagClass:3,tagNumber:t.idBlock.tagNumber},value:e.schema.valueBlock.value});for(var n in e.items){delete t[n]}return{targetSchema:f}}return null};t.handleSequenceTypes=function(t,e,i,r){if(e.type===ke.Sequence){var n=Object.keys(e.items).filter((function(t){var i=e.items[t];return i.optional&&typeof i.type==="function"&&yi.has(i.type)&&yi.get(i.type).type===ke.Choice}));if(n.length>0&&"value"in t.valueBlock&&Array.isArray(t.valueBlock.value)&&i.name==="CertReqMsg"){return this.handleManualMapping(t,e,i)}var o=Me({},t,r);if(!o.verified){throw new Ai("Data does not match to ".concat(i.name," ASN1 schema. ").concat(o.result.error))}return o}else{var o=Me({},t,r);if(!o.verified){throw new Ai("Data does not match to ".concat(i.name," ASN1 schema. ").concat(o.result.error))}return o}};t.handleManualMapping=function(t,e,i){var r=new i;var n=t.valueBlock.value;var o=Object.keys(e.items);var a=0;for(var s=0;s<o.length;s++){var u=o[s];var c=e.items[u];if(a>=n.length)break;if(c.repeated){r[u]=this.processRepeatedField(n,a,c);break}else if(typeof c.type==="number"){r[u]=this.processPrimitiveField(n[a],c);a++}else if(this.isOptionalChoiceField(c)){var f=this.processOptionalChoiceField(n[a],c);if(f.processed){r[u]=f.value;a++}}else{r[u]=this.fromASN(n[a],c.type);a++}}return{result:r,verified:true,isManualMapping:true}};t.processRepeatedField=function(t,e,i){var r=this;var n=t.slice(e);if(n.length===1&&n[0].constructor.name==="Sequence"){var o=n[0];if(o.valueBlock&&o.valueBlock.value&&Array.isArray(o.valueBlock.value)){n=o.valueBlock.value}}if(typeof i.type==="number"){var a=vi(i.type);if(!a)throw new Error("No converter for ASN.1 type ".concat(i.type));return n.filter((function(t){return t&&t.valueBlock})).map((function(t){try{return a.fromASN(t)}catch(t){return undefined}})).filter((function(t){return t!==undefined}))}else{return n.filter((function(t){return t&&t.valueBlock})).map((function(t){try{return r.fromASN(t,i.type)}catch(t){return undefined}})).filter((function(t){return t!==undefined}))}};t.processPrimitiveField=function(t,e){var i=vi(e.type);if(!i)throw new Error("No converter for ASN.1 type ".concat(e.type));return i.fromASN(t)};t.isOptionalChoiceField=function(t){return t.optional&&typeof t.type==="function"&&yi.has(t.type)&&yi.get(t.type).type===ke.Choice};t.processOptionalChoiceField=function(t,e){try{var i=this.fromASN(t,e.type);return{processed:true,value:i}}catch(t){if(t instanceof Ai&&/Wrong values for Choice type/.test(t.message)){return{processed:false}}throw t}};t.handleArrayTypes=function(t,e,i){var r=this;if(!("value"in t.valueBlock&&Array.isArray(t.valueBlock.value))){throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.")}var n=e.itemType;if(typeof n==="number"){var o=vi(n);if(!o){throw new Error("Cannot get default converter for array item of ".concat(i.name," ASN1 schema"))}return i.from(t.valueBlock.value,(function(t){return o.fromASN(t)}))}else{return i.from(t.valueBlock.value,(function(t){return r.fromASN(t,n)}))}};t.processSchemaItems=function(t,e,i){for(var r in t.items){var n=e.result[r];if(!n){continue}var o=t.items[r];var a=o.type;if(typeof a==="number"||hi(a)){i[r]=this.processPrimitiveSchemaItem(n,o,a)}else{i[r]=this.processComplexSchemaItem(n,o,a)}}};t.processPrimitiveSchemaItem=function(t,e,i){var r;var n=(r=e.converter)!==null&&r!==void 0?r:hi(i)?new i:null;if(!n){throw new Error("Converter is empty")}if(e.repeated){return this.processRepeatedPrimitiveItem(t,e,n)}else{return this.processSinglePrimitiveItem(t,e,i,n)}};t.processRepeatedPrimitiveItem=function(t,e,i){if(e.implicit){var r=e.repeated==="sequence"?kt:jt;var n=new r;n.valueBlock=t.valueBlock;var o=J(n.toBER(false));if(o.offset===-1){throw new Error("Cannot parse the child item. ".concat(o.result.error))}if(!("value"in o.result.valueBlock&&Array.isArray(o.result.valueBlock.value))){throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.")}var a=o.result.valueBlock.value;return Array.from(a,(function(t){return i.fromASN(t)}))}else{return Array.from(t,(function(t){return i.fromASN(t)}))}};t.processSinglePrimitiveItem=function(t,e,i,r){var n=t;if(e.implicit){var o=void 0;if(hi(i)){o=(new i).toSchema("")}else{var a=Ke[i];var s=Ne[a];if(!s){throw new Error("Cannot get '".concat(a,"' class from asn1js module"))}o=new s}o.valueBlock=n.valueBlock;n=J(o.toBER(false)).result}return r.fromASN(n)};t.processComplexSchemaItem=function(t,e,i){var r=this;if(e.repeated){if(!Array.isArray(t)){throw new Error("Cannot get list of items from the ASN.1 parsed value. ASN.1 value should be iterable.")}return Array.from(t,(function(t){return r.fromASN(t,i)}))}else{var n=this.handleImplicitTagging(t,e,i);if(this.isOptionalChoiceField(e)){try{return this.fromASN(n,i)}catch(t){if(t instanceof Ai&&/Wrong values for Choice type/.test(t.message)){return undefined}throw t}}else{return this.fromASN(n,i)}}};t.handleImplicitTagging=function(t,e,i){if(e.implicit&&typeof e.context==="number"){var r=yi.get(i);if(r.type===ke.Sequence){var n=new kt;if("value"in t.valueBlock&&Array.isArray(t.valueBlock.value)&&"value"in n.valueBlock){n.valueBlock.value=t.valueBlock.value;return n}}else if(r.type===ke.Set){var o=new jt;if("value"in t.valueBlock&&Array.isArray(t.valueBlock.value)&&"value"in o.valueBlock){o.valueBlock.value=t.valueBlock.value;return o}}}return t};return t}();t("r",mi);var gi=function(){function t(){}t.serialize=function(t){if(t instanceof W){return t.toBER(false)}return this.toASN(t).toBER(false)};t.toASN=function(e){var i=this;if(e&&typeof e==="object"&&hi(e)){return e.toASN()}if(!(e&&typeof e==="object")){throw new TypeError("Parameter 1 should be type of Object.")}var r=e.constructor;var n=yi.get(r);yi.cache(r);var o=[];if(n.itemType){if(!Array.isArray(e)){throw new TypeError("Parameter 1 should be type of Array.")}if(typeof n.itemType==="number"){var a=vi(n.itemType);if(!a){throw new Error("Cannot get default converter for array item of ".concat(r.name," ASN1 schema"))}o=e.map((function(t){return a.toASN(t)}))}else{o=e.map((function(t){return i.toAsnItem({type:n.itemType},"[]",r,t)}))}}else{for(var s in n.items){var u=n.items[s];var c=e[s];if(c===undefined||u.defaultValue===c||typeof u.defaultValue==="object"&&typeof c==="object"&&li(this.serialize(u.defaultValue),this.serialize(c))){continue}var f=t.toAsnItem(u,s,r,c);if(typeof u.context==="number"){if(u.implicit){if(!u.repeated&&(typeof u.type==="number"||hi(u.type))){var v={};v.valueHex=f instanceof ut?f.valueBeforeDecodeView:f.valueBlock.toBER();o.push(new $(__assign({optional:u.optional,idBlock:{tagClass:3,tagNumber:u.context}},v)))}else{o.push(new rt({optional:u.optional,idBlock:{tagClass:3,tagNumber:u.context},value:f.valueBlock.value}))}}else{o.push(new rt({optional:u.optional,idBlock:{tagClass:3,tagNumber:u.context},value:[f]}))}}else if(u.repeated){o=o.concat(f)}else{o.push(f)}}}var h;switch(n.type){case ke.Sequence:h=new kt({value:o});break;case ke.Set:h=new jt({value:o});break;case ke.Choice:if(!o[0]){throw new Error("Schema '".concat(r.name,"' has wrong data. Choice cannot be empty."))}h=o[0];break}return h};t.toAsnItem=function(t,e,i,r){var n=this;var o;if(typeof t.type==="number"){var a=t.converter;if(!a){throw new Error("Property '".concat(e,"' doesn't have converter for type ").concat(Ke[t.type]," in schema '").concat(i.name,"'"))}if(t.repeated){if(!Array.isArray(r)){throw new TypeError("Parameter 'objProp' should be type of Array.")}var s=Array.from(r,(function(t){return a.toASN(t)}));var u=t.repeated==="sequence"?kt:jt;o=new u({value:s})}else{o=a.toASN(r)}}else{if(t.repeated){if(!Array.isArray(r)){throw new TypeError("Parameter 'objProp' should be type of Array.")}var s=Array.from(r,(function(t){return n.toASN(t)}));var u=t.repeated==="sequence"?kt:jt;o=new u({value:s})}else{o=this.toASN(r)}}return o};return t}();var wi=function(t){__extends(e,t);function e(e){if(e===void 0){e=[]}var i=this;if(typeof e==="number"){i=t.call(this,e)||this}else{i=t.call(this)||this;for(var r=0,n=e;r<n.length;r++){var o=n[r];i.push(o)}}return i}return e}(Array);t("ai",wi);var bi=function(){function t(){}t.serialize=function(t){return gi.serialize(t)};t.parse=function(t,e){return mi.parse(t,e)};t.toString=function(e){var i=u.BufferSourceConverter.isBufferSource(e)?u.BufferSourceConverter.toArrayBuffer(e):t.serialize(e);var r=J(i);if(r.offset===-1){throw new Error("Cannot decode ASN.1 data. ".concat(r.result.error))}return r.result.toString()};return t}();t("e",bi);function Ei(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)if(a=t[s])o=(n<3?a(o):n>3?a(e,i,o):a(e,i))||o;return n>3&&o&&Object.defineProperty(e,i,o),o}typeof SuppressedError==="function"?SuppressedError:function(t,e,i){var r=new Error(i);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};var Pi=function(){function t(){}t.isIPv4=function(t){return/^(\d{1,3}\.){3}\d{1,3}$/.test(t)};t.parseIPv4=function(t){var e=t.split(".");if(e.length!==4){throw new Error("Invalid IPv4 address")}return e.map((function(t){var e=parseInt(t,10);if(isNaN(e)||e<0||e>255){throw new Error("Invalid IPv4 address part")}return e}))};t.parseIPv6=function(t){var e=this.expandIPv6(t);var i=e.split(":");if(i.length!==8){throw new Error("Invalid IPv6 address")}return i.reduce((function(t,e){var i=parseInt(e,16);if(isNaN(i)||i<0||i>65535){throw new Error("Invalid IPv6 address part")}t.push(i>>8&255);t.push(i&255);return t}),[])};t.expandIPv6=function(t){if(!t.includes("::")){return t}var e=t.split("::");if(e.length>2){throw new Error("Invalid IPv6 address")}var i=e[0]?e[0].split(":"):[];var r=e[1]?e[1].split(":"):[];var n=8-(i.length+r.length);if(n<0){throw new Error("Invalid IPv6 address")}return __spreadArray(__spreadArray(__spreadArray([],i,true),Array(n).fill("0"),true),r,true).join(":")};t.formatIPv6=function(t){var e=[];for(var i=0;i<16;i+=2){e.push((t[i]<<8|t[i+1]).toString(16))}return this.compressIPv6(e.join(":"))};t.compressIPv6=function(t){var e=t.split(":");var i=-1;var r=0;var n=-1;var o=0;for(var a=0;a<e.length;a++){if(e[a]==="0"){if(n===-1){n=a}o++}else{if(o>r){i=n;r=o}n=-1;o=0}}if(o>r){i=n;r=o}if(r>1){var s=e.slice(0,i).join(":");var u=e.slice(i+r).join(":");return"".concat(s,"::").concat(u)}return t};t.parseCIDR=function(t){var e=t.split("/"),i=e[0],r=e[1];var n=parseInt(r,10);if(this.isIPv4(i)){if(n<0||n>32){throw new Error("Invalid IPv4 prefix length")}return[this.parseIPv4(i),n]}else{if(n<0||n>128){throw new Error("Invalid IPv6 prefix length")}return[this.parseIPv6(i),n]}};t.decodeIP=function(t){if(t.length===64&&parseInt(t,16)===0){return"::/0"}if(t.length!==16){return t}var e=parseInt(t.slice(8),16).toString(2).split("").reduce((function(t,e){return t+ +e}),0);var i=t.slice(0,8).replace(/(.{2})/g,(function(t){return"".concat(parseInt(t,16),".")}));i=i.slice(0,-1);return"".concat(i,"/").concat(e)};t.toString=function(t){var e=new Uint8Array(t);if(e.length===4){return Array.from(e).join(".")}if(e.length===16){return this.formatIPv6(e)}if(e.length===8||e.length===32){var i=e.length/2;var r=e.slice(0,i);var n=e.slice(i);var o=e.every((function(t){return t===0}));if(o){return e.length===8?"0.0.0.0/0":"::/0"}var a=n.reduce((function(t,e){return t+(e.toString(2).match(/1/g)||[]).length}),0);if(e.length===8){var s=Array.from(r).join(".");return"".concat(s,"/").concat(a)}else{var s=this.formatIPv6(r);return"".concat(s,"/").concat(a)}}return this.decodeIP(u.Convert.ToHex(t))};t.fromString=function(t){if(t.includes("/")){var e=this.parseCIDR(t),i=e[0],r=e[1];var n=new Uint8Array(i.length);var o=r;for(var a=0;a<n.length;a++){if(o>=8){n[a]=255;o-=8}else if(o>0){n[a]=255<<8-o;o=0}}var s=new Uint8Array(i.length*2);s.set(i,0);s.set(n,i.length);return s.buffer}var u=this.isIPv4(t)?this.parseIPv4(t):this.parseIPv6(t);return new Uint8Array(u).buffer};return t}();var Di,_i,Ii;var Bi=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}t.prototype.toString=function(){return this.bmpString||this.printableString||this.teletexString||this.universalString||this.utf8String||""};return t}();Ei([Ci({type:Ke.TeletexString})],Bi.prototype,"teletexString",void 0);Ei([Ci({type:Ke.PrintableString})],Bi.prototype,"printableString",void 0);Ei([Ci({type:Ke.UniversalString})],Bi.prototype,"universalString",void 0);Ei([Ci({type:Ke.Utf8String})],Bi.prototype,"utf8String",void 0);Ei([Ci({type:Ke.BmpString})],Bi.prototype,"bmpString",void 0);Bi=Ei([Si({type:ke.Choice})],Bi);var xi=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}var i=t.call(this,e)||this;Object.assign(i,e);return i}e.prototype.toString=function(){return this.ia5String||(this.anyValue?u.Convert.ToHex(this.anyValue):t.prototype.toString.call(this))};return e}(Bi);Ei([Ci({type:Ke.IA5String})],xi.prototype,"ia5String",void 0);Ei([Ci({type:Ke.Any})],xi.prototype,"anyValue",void 0);xi=Ei([Si({type:ke.Choice})],xi);var Ti=function(){function t(t){if(t===void 0){t={}}this.type="";this.value=new xi;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.ObjectIdentifier})],Ti.prototype,"type",void 0);Ei([Ci({type:xi})],Ti.prototype,"value",void 0);var Oi=Di=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Di.prototype);return i}return e}(wi);Oi=Di=Ei([Si({type:ke.Set,itemType:Ti})],Oi);var Mi=_i=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,_i.prototype);return i}return e}(wi);Mi=_i=Ei([Si({type:ke.Sequence,itemType:Oi})],Mi);var Ri=t("a5",Ii=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Ii.prototype);return i}return e}(Mi));t("a5",Ri=Ii=Ei([Si({type:ke.Sequence})],Ri));var Ni={fromASN:function(t){return Pi.toString(qe.fromASN(t))},toASN:function(t){return qe.toASN(Pi.fromString(t))}};var ki=function(){function t(t){if(t===void 0){t={}}this.typeId="";this.value=new ArrayBuffer(0);Object.assign(this,t)}return t}();t("a9",ki);Ei([Ci({type:Ke.ObjectIdentifier})],ki.prototype,"typeId",void 0);Ei([Ci({type:Ke.Any,context:0})],ki.prototype,"value",void 0);var Ki=function(){function t(t){if(t===void 0){t={}}this.partyName=new Bi;Object.assign(this,t)}return t}();t("ac",Ki);Ei([Ci({type:Bi,optional:true,context:0,implicit:true})],Ki.prototype,"nameAssigner",void 0);Ei([Ci({type:Bi,context:1,implicit:true})],Ki.prototype,"partyName",void 0);var ji=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:ki,context:0,implicit:true})],ji.prototype,"otherName",void 0);Ei([Ci({type:Ke.IA5String,context:1,implicit:true})],ji.prototype,"rfc822Name",void 0);Ei([Ci({type:Ke.IA5String,context:2,implicit:true})],ji.prototype,"dNSName",void 0);Ei([Ci({type:Ke.Any,context:3,implicit:true})],ji.prototype,"x400Address",void 0);Ei([Ci({type:Ri,context:4,implicit:false})],ji.prototype,"directoryName",void 0);Ei([Ci({type:Ki,context:5})],ji.prototype,"ediPartyName",void 0);Ei([Ci({type:Ke.IA5String,context:6,implicit:true})],ji.prototype,"uniformResourceIdentifier",void 0);Ei([Ci({type:Ke.OctetString,context:7,implicit:true,converter:Ni})],ji.prototype,"iPAddress",void 0);Ei([Ci({type:Ke.ObjectIdentifier,context:8,implicit:true})],ji.prototype,"registeredID",void 0);ji=Ei([Si({type:ke.Choice})],ji);var Hi="1.3.6.1.5.5.7";var Ui="".concat(Hi,".1");var Fi="2.5.29";var Li;var Vi="".concat(Ui,".1");var Gi=function(){function t(t){if(t===void 0){t={}}this.accessMethod="";this.accessLocation=new ji;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.ObjectIdentifier})],Gi.prototype,"accessMethod",void 0);Ei([Ci({type:ji})],Gi.prototype,"accessLocation",void 0);var Wi=t("av",Li=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Li.prototype);return i}return e}(wi));t("av",Wi=Li=Ei([Si({type:ke.Sequence,itemType:Gi})],Wi));var Qi="".concat(Fi,".35");var qi=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(He);var zi=function(){function t(t){if(t===void 0){t={}}if(t){Object.assign(this,t)}}return t}();t("at",zi);Ei([Ci({type:qi,context:0,optional:true,implicit:true})],zi.prototype,"keyIdentifier",void 0);Ei([Ci({type:ji,context:1,optional:true,implicit:true,repeated:"sequence"})],zi.prototype,"authorityCertIssuer",void 0);Ei([Ci({type:Ke.Integer,context:2,optional:true,implicit:true,converter:Ve})],zi.prototype,"authorityCertSerialNumber",void 0);var Zi="".concat(Fi,".19");var $i=function(){function t(t){if(t===void 0){t={}}this.cA=false;Object.assign(this,t)}return t}();t("aq",$i);Ei([Ci({type:Ke.Boolean,defaultValue:false})],$i.prototype,"cA",void 0);Ei([Ci({type:Ke.Integer,optional:true})],$i.prototype,"pathLenConstraint",void 0);var Xi;var Yi=Xi=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Xi.prototype);return i}return e}(wi);Yi=Xi=Ei([Si({type:ke.Sequence,itemType:ji})],Yi);var Ji;var tr="".concat(Fi,".29");var er=t("a8",Ji=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Ji.prototype);return i}return e}(Yi));t("a8",er=Ji=Ei([Si({type:ke.Sequence})],er));var ir;var rr="".concat(Fi,".32");var nr=t("aa",function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}t.prototype.toString=function(){return this.ia5String||this.visibleString||this.bmpString||this.utf8String||""};return t}());Ei([Ci({type:Ke.IA5String})],nr.prototype,"ia5String",void 0);Ei([Ci({type:Ke.VisibleString})],nr.prototype,"visibleString",void 0);Ei([Ci({type:Ke.BmpString})],nr.prototype,"bmpString",void 0);Ei([Ci({type:Ke.Utf8String})],nr.prototype,"utf8String",void 0);t("aa",nr=Ei([Si({type:ke.Choice})],nr));var or=function(){function t(t){if(t===void 0){t={}}this.organization=new nr;this.noticeNumbers=[];Object.assign(this,t)}return t}();Ei([Ci({type:nr})],or.prototype,"organization",void 0);Ei([Ci({type:Ke.Integer,repeated:"sequence"})],or.prototype,"noticeNumbers",void 0);var ar=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();t("ab",ar);Ei([Ci({type:or,optional:true})],ar.prototype,"noticeRef",void 0);Ei([Ci({type:nr,optional:true})],ar.prototype,"explicitText",void 0);var sr=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:Ke.IA5String})],sr.prototype,"cPSuri",void 0);Ei([Ci({type:ar})],sr.prototype,"userNotice",void 0);sr=Ei([Si({type:ke.Choice})],sr);var ur=function(){function t(t){if(t===void 0){t={}}this.policyQualifierId="";this.qualifier=new ArrayBuffer(0);Object.assign(this,t)}return t}();Ei([Ci({type:Ke.ObjectIdentifier})],ur.prototype,"policyQualifierId",void 0);Ei([Ci({type:Ke.Any})],ur.prototype,"qualifier",void 0);var cr=function(){function t(t){if(t===void 0){t={}}this.policyIdentifier="";Object.assign(this,t)}return t}();Ei([Ci({type:Ke.ObjectIdentifier})],cr.prototype,"policyIdentifier",void 0);Ei([Ci({type:ur,repeated:"sequence",optional:true})],cr.prototype,"policyQualifiers",void 0);var fr=t("ay",ir=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,ir.prototype);return i}return e}(wi));t("ay",fr=ir=Ei([Si({type:ke.Sequence,itemType:cr})],fr));var vr="".concat(Fi,".20");var hr=t("aT",function(){function t(t){if(t===void 0){t=0}this.value=t}return t}());Ei([Ci({type:Ke.Integer})],hr.prototype,"value",void 0);t("aT",hr=Ei([Si({type:ke.Choice})],hr));var dr="".concat(Fi,".27");var lr=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(hr);lr=Ei([Si({type:ke.Choice})],lr);var pr;var yr="".concat(Fi,".31");var Sr;(function(t){t[t["unused"]=1]="unused";t[t["keyCompromise"]=2]="keyCompromise";t[t["cACompromise"]=4]="cACompromise";t[t["affiliationChanged"]=8]="affiliationChanged";t[t["superseded"]=16]="superseded";t[t["cessationOfOperation"]=32]="cessationOfOperation";t[t["certificateHold"]=64]="certificateHold";t[t["privilegeWithdrawn"]=128]="privilegeWithdrawn";t[t["aACompromise"]=256]="aACompromise"})(Sr||(Sr={}));var Cr=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toJSON=function(){var t=[];var e=this.toNumber();if(e&Sr.aACompromise){t.push("aACompromise")}if(e&Sr.affiliationChanged){t.push("affiliationChanged")}if(e&Sr.cACompromise){t.push("cACompromise")}if(e&Sr.certificateHold){t.push("certificateHold")}if(e&Sr.cessationOfOperation){t.push("cessationOfOperation")}if(e&Sr.keyCompromise){t.push("keyCompromise")}if(e&Sr.privilegeWithdrawn){t.push("privilegeWithdrawn")}if(e&Sr.superseded){t.push("superseded")}if(e&Sr.unused){t.push("unused")}return t};e.prototype.toString=function(){return"[".concat(this.toJSON().join(", "),"]")};return e}(je);var Ar=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:ji,context:0,repeated:"sequence",implicit:true})],Ar.prototype,"fullName",void 0);Ei([Ci({type:Oi,context:1,implicit:true})],Ar.prototype,"nameRelativeToCRLIssuer",void 0);Ar=Ei([Si({type:ke.Choice})],Ar);var mr=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:Ar,context:0,optional:true})],mr.prototype,"distributionPoint",void 0);Ei([Ci({type:Cr,context:1,optional:true,implicit:true})],mr.prototype,"reasons",void 0);Ei([Ci({type:ji,context:2,optional:true,repeated:"sequence",implicit:true})],mr.prototype,"cRLIssuer",void 0);var gr=t("au",pr=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,pr.prototype);return i}return e}(wi));t("au",gr=pr=Ei([Si({type:ke.Sequence,itemType:mr})],gr));var wr;var br=wr=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,wr.prototype);return i}return e}(gr);br=wr=Ei([Si({type:ke.Sequence,itemType:mr})],br);var Er="".concat(Fi,".28");var Pr=function(){function t(e){if(e===void 0){e={}}this.onlyContainsUserCerts=t.ONLY;this.onlyContainsCACerts=t.ONLY;this.indirectCRL=t.ONLY;this.onlyContainsAttributeCerts=t.ONLY;Object.assign(this,e)}return t}();t("aU",Pr);Pr.ONLY=false;Ei([Ci({type:Ar,context:0,optional:true})],Pr.prototype,"distributionPoint",void 0);Ei([Ci({type:Ke.Boolean,context:1,defaultValue:Pr.ONLY,implicit:true})],Pr.prototype,"onlyContainsUserCerts",void 0);Ei([Ci({type:Ke.Boolean,context:2,defaultValue:Pr.ONLY,implicit:true})],Pr.prototype,"onlyContainsCACerts",void 0);Ei([Ci({type:Cr,context:3,optional:true,implicit:true})],Pr.prototype,"onlySomeReasons",void 0);Ei([Ci({type:Ke.Boolean,context:4,defaultValue:Pr.ONLY,implicit:true})],Pr.prototype,"indirectCRL",void 0);Ei([Ci({type:Ke.Boolean,context:5,defaultValue:Pr.ONLY,implicit:true})],Pr.prototype,"onlyContainsAttributeCerts",void 0);var Dr="".concat(Fi,".21");var _r;(function(t){t[t["unspecified"]=0]="unspecified";t[t["keyCompromise"]=1]="keyCompromise";t[t["cACompromise"]=2]="cACompromise";t[t["affiliationChanged"]=3]="affiliationChanged";t[t["superseded"]=4]="superseded";t[t["cessationOfOperation"]=5]="cessationOfOperation";t[t["certificateHold"]=6]="certificateHold";t[t["removeFromCRL"]=8]="removeFromCRL";t[t["privilegeWithdrawn"]=9]="privilegeWithdrawn";t[t["aACompromise"]=10]="aACompromise"})(_r||(_r={}));var Ir=t("a6",function(){function t(t){if(t===void 0){t=_r.unspecified}this.reason=_r.unspecified;this.reason=t}t.prototype.toJSON=function(){return _r[this.reason]};t.prototype.toString=function(){return this.toJSON()};return t}());Ei([Ci({type:Ke.Enumerated})],Ir.prototype,"reason",void 0);t("a6",Ir=Ei([Si({type:ke.Choice})],Ir));var Br;var xr="".concat(Fi,".37");var Tr=t("ar",Br=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Br.prototype);return i}return e}(wi));t("ar",Tr=Br=Ei([Si({type:ke.Sequence,itemType:Ke.ObjectIdentifier})],Tr));var Or="".concat(Fi,".54");var Mr=function(){function t(t){if(t===void 0){t=new ArrayBuffer(0)}this.value=t}return t}();Ei([Ci({type:Ke.Integer,converter:Ve})],Mr.prototype,"value",void 0);Mr=Ei([Si({type:ke.Choice})],Mr);var Rr="".concat(Fi,".24");var Nr=t("a7",function(){function t(t){this.value=new Date;if(t){this.value=t}}return t}());Ei([Ci({type:Ke.GeneralizedTime})],Nr.prototype,"value",void 0);t("a7",Nr=Ei([Si({type:ke.Choice})],Nr));var kr;var Kr="".concat(Fi,".18");var jr=kr=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,kr.prototype);return i}return e}(Yi);jr=kr=Ei([Si({type:ke.Sequence})],jr);var Hr="".concat(Fi,".15");var Ur;(function(t){t[t["digitalSignature"]=1]="digitalSignature";t[t["nonRepudiation"]=2]="nonRepudiation";t[t["keyEncipherment"]=4]="keyEncipherment";t[t["dataEncipherment"]=8]="dataEncipherment";t[t["keyAgreement"]=16]="keyAgreement";t[t["keyCertSign"]=32]="keyCertSign";t[t["cRLSign"]=64]="cRLSign";t[t["encipherOnly"]=128]="encipherOnly";t[t["decipherOnly"]=256]="decipherOnly"})(Ur||(Ur={}));var Fr=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toJSON=function(){var t=this.toNumber();var e=[];if(t&Ur.cRLSign){e.push("crlSign")}if(t&Ur.dataEncipherment){e.push("dataEncipherment")}if(t&Ur.decipherOnly){e.push("decipherOnly")}if(t&Ur.digitalSignature){e.push("digitalSignature")}if(t&Ur.encipherOnly){e.push("encipherOnly")}if(t&Ur.keyAgreement){e.push("keyAgreement")}if(t&Ur.keyCertSign){e.push("keyCertSign")}if(t&Ur.keyEncipherment){e.push("keyEncipherment")}if(t&Ur.nonRepudiation){e.push("nonRepudiation")}return e};e.prototype.toString=function(){return"[".concat(this.toJSON().join(", "),"]")};return e}(je);t("ap",Fr);var Lr;var Vr="".concat(Fi,".30");var Gr=function(){function t(t){if(t===void 0){t={}}this.base=new ji;this.minimum=0;Object.assign(this,t)}return t}();Ei([Ci({type:ji})],Gr.prototype,"base",void 0);Ei([Ci({type:Ke.Integer,context:0,defaultValue:0,implicit:true})],Gr.prototype,"minimum",void 0);Ei([Ci({type:Ke.Integer,context:1,optional:true,implicit:true})],Gr.prototype,"maximum",void 0);var Wr=Lr=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Lr.prototype);return i}return e}(wi);Wr=Lr=Ei([Si({type:ke.Sequence,itemType:Gr})],Wr);var Qr=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();t("aA",Qr);Ei([Ci({type:Wr,context:0,optional:true,implicit:true})],Qr.prototype,"permittedSubtrees",void 0);Ei([Ci({type:Wr,context:1,optional:true,implicit:true})],Qr.prototype,"excludedSubtrees",void 0);var qr="".concat(Fi,".36");var zr=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();t("aR",zr);Ei([Ci({type:Ke.Integer,context:0,implicit:true,optional:true,converter:Ve})],zr.prototype,"requireExplicitPolicy",void 0);Ei([Ci({type:Ke.Integer,context:1,implicit:true,optional:true,converter:Ve})],zr.prototype,"inhibitPolicyMapping",void 0);var Zr;var $r="".concat(Fi,".33");var Xr=function(){function t(t){if(t===void 0){t={}}this.issuerDomainPolicy="";this.subjectDomainPolicy="";Object.assign(this,t)}return t}();Ei([Ci({type:Ke.ObjectIdentifier})],Xr.prototype,"issuerDomainPolicy",void 0);Ei([Ci({type:Ke.ObjectIdentifier})],Xr.prototype,"subjectDomainPolicy",void 0);var Yr=t("aS",Zr=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Zr.prototype);return i}return e}(wi));t("aS",Yr=Zr=Ei([Si({type:ke.Sequence,itemType:Xr})],Yr));var Jr;var tn="".concat(Fi,".17");var en=t("ax",Jr=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Jr.prototype);return i}return e}(Yi));t("ax",en=Jr=Ei([Si({type:ke.Sequence})],en));var rn=function(){function t(t){if(t===void 0){t={}}this.type="";this.values=[];Object.assign(this,t)}return t}();t("q",rn);Ei([Ci({type:Ke.ObjectIdentifier})],rn.prototype,"type",void 0);Ei([Ci({type:Ke.Any,repeated:"set"})],rn.prototype,"values",void 0);var nn;var on="".concat(Fi,".9");var an=t("aL",nn=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,nn.prototype);return i}return e}(wi));t("aL",an=nn=Ei([Si({type:ke.Sequence,itemType:rn})],an));var sn="".concat(Fi,".14");var un=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(qi);t("as",un);var cn="".concat(Fi,".16");var fn=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();t("aM",fn);Ei([Ci({type:Ke.GeneralizedTime,context:0,implicit:true,optional:true})],fn.prototype,"notBefore",void 0);Ei([Ci({type:Ke.GeneralizedTime,context:1,implicit:true,optional:true})],fn.prototype,"notAfter",void 0);var vn="1.2.840.113533.7.65.0";var hn;(function(t){t[t["keyUpdateAllowed"]=1]="keyUpdateAllowed";t[t["newExtensions"]=2]="newExtensions";t[t["pKIXCertificate"]=4]="pKIXCertificate"})(hn||(hn={}));var dn=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toJSON=function(){var t=[];var e=this.toNumber();if(e&hn.pKIXCertificate){t.push("pKIXCertificate")}if(e&hn.newExtensions){t.push("newExtensions")}if(e&hn.keyUpdateAllowed){t.push("keyUpdateAllowed")}return t};e.prototype.toString=function(){return"[".concat(this.toJSON().join(", "),"]")};return e}(je);var ln=function(){function t(t){if(t===void 0){t={}}this.entrustVers="";this.entrustInfoFlags=new dn;Object.assign(this,t)}return t}();t("aN",ln);Ei([Ci({type:Ke.GeneralString})],ln.prototype,"entrustVers",void 0);Ei([Ci({type:dn})],ln.prototype,"entrustInfoFlags",void 0);var pn;var yn="".concat(Ui,".11");var Sn=t("aw",pn=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,pn.prototype);return i}return e}(wi));t("aw",Sn=pn=Ei([Si({type:ke.Sequence,itemType:Gi})],Sn));var Cn=function(){function t(t){if(t===void 0){t={}}this.algorithm="";Object.assign(this,t)}t.prototype.isEqual=function(e){return e instanceof t&&e.algorithm==this.algorithm&&(e.parameters&&this.parameters&&u.isEqual(e.parameters,this.parameters)||e.parameters===this.parameters)};return t}();Ei([Ci({type:Ke.ObjectIdentifier})],Cn.prototype,"algorithm",void 0);Ei([Ci({type:Ke.Any,optional:true})],Cn.prototype,"parameters",void 0);var An=function(){function t(t){if(t===void 0){t={}}this.algorithm=new Cn;this.subjectPublicKey=new ArrayBuffer(0);Object.assign(this,t)}return t}();Ei([Ci({type:Cn})],An.prototype,"algorithm",void 0);Ei([Ci({type:Ke.BitString})],An.prototype,"subjectPublicKey",void 0);var mn=function(){function t(t){if(t){if(typeof t==="string"||typeof t==="number"||t instanceof Date){var e=new Date(t);if(e.getUTCFullYear()>2049){this.generalTime=e}else{this.utcTime=e}}else{Object.assign(this,t)}}}t.prototype.getTime=function(){var t=this.utcTime||this.generalTime;if(!t){throw new Error("Cannot get time from CHOICE object")}return t};return t}();Ei([Ci({type:Ke.UTCTime})],mn.prototype,"utcTime",void 0);Ei([Ci({type:Ke.GeneralizedTime})],mn.prototype,"generalTime",void 0);mn=Ei([Si({type:ke.Choice})],mn);var gn=function(){function t(t){this.notBefore=new mn(new Date);this.notAfter=new mn(new Date);if(t){this.notBefore=new mn(t.notBefore);this.notAfter=new mn(t.notAfter)}}return t}();Ei([Ci({type:mn})],gn.prototype,"notBefore",void 0);Ei([Ci({type:mn})],gn.prototype,"notAfter",void 0);var wn;var bn=function(){function t(e){if(e===void 0){e={}}this.extnID="";this.critical=t.CRITICAL;this.extnValue=new He;Object.assign(this,e)}return t}();bn.CRITICAL=false;Ei([Ci({type:Ke.ObjectIdentifier})],bn.prototype,"extnID",void 0);Ei([Ci({type:Ke.Boolean,defaultValue:bn.CRITICAL})],bn.prototype,"critical",void 0);Ei([Ci({type:He})],bn.prototype,"extnValue",void 0);var En=wn=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,wn.prototype);return i}return e}(wi);En=wn=Ei([Si({type:ke.Sequence,itemType:bn})],En);var Pn;(function(t){t[t["v1"]=0]="v1";t[t["v2"]=1]="v2";t[t["v3"]=2]="v3"})(Pn||(Pn={}));var Dn=function(){function t(t){if(t===void 0){t={}}this.version=Pn.v1;this.serialNumber=new ArrayBuffer(0);this.signature=new Cn;this.issuer=new Ri;this.validity=new gn;this.subject=new Ri;this.subjectPublicKeyInfo=new An;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer,context:0,defaultValue:Pn.v1})],Dn.prototype,"version",void 0);Ei([Ci({type:Ke.Integer,converter:Ve})],Dn.prototype,"serialNumber",void 0);Ei([Ci({type:Cn})],Dn.prototype,"signature",void 0);Ei([Ci({type:Ri})],Dn.prototype,"issuer",void 0);Ei([Ci({type:gn})],Dn.prototype,"validity",void 0);Ei([Ci({type:Ri})],Dn.prototype,"subject",void 0);Ei([Ci({type:An})],Dn.prototype,"subjectPublicKeyInfo",void 0);Ei([Ci({type:Ke.BitString,context:1,implicit:true,optional:true})],Dn.prototype,"issuerUniqueID",void 0);Ei([Ci({type:Ke.BitString,context:2,implicit:true,optional:true})],Dn.prototype,"subjectUniqueID",void 0);Ei([Ci({type:En,context:3,optional:true})],Dn.prototype,"extensions",void 0);var _n=function(){function t(t){if(t===void 0){t={}}this.tbsCertificate=new Dn;this.signatureAlgorithm=new Cn;this.signatureValue=new ArrayBuffer(0);Object.assign(this,t)}return t}();t("C",_n);Ei([Ci({type:Dn})],_n.prototype,"tbsCertificate",void 0);Ei([Ci({type:Cn})],_n.prototype,"signatureAlgorithm",void 0);Ei([Ci({type:Ke.BitString})],_n.prototype,"signatureValue",void 0);var In=function(){function t(t){if(t===void 0){t={}}this.userCertificate=new ArrayBuffer(0);this.revocationDate=new mn;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer,converter:Ve})],In.prototype,"userCertificate",void 0);Ei([Ci({type:mn})],In.prototype,"revocationDate",void 0);Ei([Ci({type:bn,optional:true,repeated:"sequence"})],In.prototype,"crlEntryExtensions",void 0);var Bn=function(){function t(t){if(t===void 0){t={}}this.signature=new Cn;this.issuer=new Ri;this.thisUpdate=new mn;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer,optional:true})],Bn.prototype,"version",void 0);Ei([Ci({type:Cn})],Bn.prototype,"signature",void 0);Ei([Ci({type:Ri})],Bn.prototype,"issuer",void 0);Ei([Ci({type:mn})],Bn.prototype,"thisUpdate",void 0);Ei([Ci({type:mn,optional:true})],Bn.prototype,"nextUpdate",void 0);Ei([Ci({type:In,repeated:"sequence",optional:true})],Bn.prototype,"revokedCertificates",void 0);Ei([Ci({type:bn,optional:true,context:0,repeated:"sequence"})],Bn.prototype,"crlExtensions",void 0);var xn=function(){function t(t){if(t===void 0){t={}}this.tbsCertList=new Bn;this.signatureAlgorithm=new Cn;this.signature=new ArrayBuffer(0);Object.assign(this,t)}return t}();t("p",xn);Ei([Ci({type:Bn})],xn.prototype,"tbsCertList",void 0);Ei([Ci({type:Cn})],xn.prototype,"signatureAlgorithm",void 0);Ei([Ci({type:Ke.BitString})],xn.prototype,"signature",void 0);var Tn=t("i","1.2.840.10045.2.1");var On="1.2.840.10045.4.1";var Mn="1.2.840.10045.4.3.1";var Rn="1.2.840.10045.4.3.2";var Nn="1.2.840.10045.4.3.3";var kn="1.2.840.10045.4.3.4";function Kn(t){return new Cn({algorithm:t})}Kn(On);Kn(Mn);Kn(Rn);Kn(Nn);Kn(kn);var jn=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:Ke.ObjectIdentifier})],jn.prototype,"fieldType",void 0);Ei([Ci({type:Ke.Any})],jn.prototype,"parameters",void 0);jn=Ei([Si({type:ke.Sequence})],jn);var Hn=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(He);var Un=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:Ke.OctetString})],Un.prototype,"a",void 0);Ei([Ci({type:Ke.OctetString})],Un.prototype,"b",void 0);Ei([Ci({type:Ke.BitString,optional:true})],Un.prototype,"seed",void 0);Un=Ei([Si({type:ke.Sequence})],Un);var Fn;(function(t){t[t["ecpVer1"]=1]="ecpVer1"})(Fn||(Fn={}));var Ln=function(){function t(t){if(t===void 0){t={}}this.version=Fn.ecpVer1;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer})],Ln.prototype,"version",void 0);Ei([Ci({type:jn})],Ln.prototype,"fieldID",void 0);Ei([Ci({type:Un})],Ln.prototype,"curve",void 0);Ei([Ci({type:Hn})],Ln.prototype,"base",void 0);Ei([Ci({type:Ke.Integer,converter:Ve})],Ln.prototype,"order",void 0);Ei([Ci({type:Ke.Integer,optional:true})],Ln.prototype,"cofactor",void 0);Ln=Ei([Si({type:ke.Sequence})],Ln);var Vn=t("f",function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}());Ei([Ci({type:Ke.ObjectIdentifier})],Vn.prototype,"namedCurve",void 0);Ei([Ci({type:Ke.Null})],Vn.prototype,"implicitCurve",void 0);Ei([Ci({type:Ln})],Vn.prototype,"specifiedCurve",void 0);t("f",Vn=Ei([Si({type:ke.Choice})],Vn));var Gn=function(){function t(t){if(t===void 0){t={}}this.version=1;this.privateKey=new He;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer})],Gn.prototype,"version",void 0);Ei([Ci({type:He})],Gn.prototype,"privateKey",void 0);Ei([Ci({type:Vn,context:0,optional:true})],Gn.prototype,"parameters",void 0);Ei([Ci({type:Ke.BitString,context:1,optional:true})],Gn.prototype,"publicKey",void 0);var Wn=function(){function t(t){if(t===void 0){t={}}this.r=new ArrayBuffer(0);this.s=new ArrayBuffer(0);Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer,converter:Ve})],Wn.prototype,"r",void 0);Ei([Ci({type:Ke.Integer,converter:Ve})],Wn.prototype,"s",void 0);var Qn="1.2.840.113549.1.1";var qn=t("g","".concat(Qn,".1"));var zn="".concat(Qn,".7");var Zn="".concat(Qn,".9");var $n="".concat(Qn,".10");var Xn="".concat(Qn,".2");var Yn="".concat(Qn,".4");var Jn="".concat(Qn,".5");var to="".concat(Qn,".12");var eo="".concat(Qn,".13");var io="".concat(Qn,".15");var ro="".concat(Qn,".16");var no="1.3.14.3.2.26";var oo="2.16.840.1.101.3.4.2.4";var ao="2.16.840.1.101.3.4.2.1";var so="2.16.840.1.101.3.4.2.2";var uo="2.16.840.1.101.3.4.2.3";var co="2.16.840.1.101.3.4.2.5";var fo="2.16.840.1.101.3.4.2.6";var vo="1.2.840.113549.2.2";var ho="1.2.840.113549.2.5";var lo="".concat(Qn,".8");function po(t){return new Cn({algorithm:t,parameters:null})}po(vo);po(ho);var yo=po(no);po(oo);po(ao);po(so);po(uo);po(co);po(fo);var So=new Cn({algorithm:lo,parameters:bi.serialize(yo)});var Co=new Cn({algorithm:Zn,parameters:bi.serialize(qe.toASN(new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]).buffer))});po(qn);po(Xn);po(Yn);po(Jn);po(io);po(ro);po(to);po(eo);po(io);po(ro);var Ao=function(){function t(t){if(t===void 0){t={}}this.hashAlgorithm=new Cn(yo);this.maskGenAlgorithm=new Cn({algorithm:lo,parameters:bi.serialize(yo)});this.pSourceAlgorithm=new Cn(Co);Object.assign(this,t)}return t}();Ei([Ci({type:Cn,context:0,defaultValue:yo})],Ao.prototype,"hashAlgorithm",void 0);Ei([Ci({type:Cn,context:1,defaultValue:So})],Ao.prototype,"maskGenAlgorithm",void 0);Ei([Ci({type:Cn,context:2,defaultValue:Co})],Ao.prototype,"pSourceAlgorithm",void 0);new Cn({algorithm:zn,parameters:bi.serialize(new Ao)});var mo=function(){function t(t){if(t===void 0){t={}}this.hashAlgorithm=new Cn(yo);this.maskGenAlgorithm=new Cn({algorithm:lo,parameters:bi.serialize(yo)});this.saltLength=20;this.trailerField=1;Object.assign(this,t)}return t}();Ei([Ci({type:Cn,context:0,defaultValue:yo})],mo.prototype,"hashAlgorithm",void 0);Ei([Ci({type:Cn,context:1,defaultValue:So})],mo.prototype,"maskGenAlgorithm",void 0);Ei([Ci({type:Ke.Integer,context:2,defaultValue:20})],mo.prototype,"saltLength",void 0);Ei([Ci({type:Ke.Integer,context:3,defaultValue:1})],mo.prototype,"trailerField",void 0);new Cn({algorithm:$n,parameters:bi.serialize(new mo)});var go=function(){function t(t){if(t===void 0){t={}}this.digestAlgorithm=new Cn;this.digest=new He;Object.assign(this,t)}return t}();Ei([Ci({type:Cn})],go.prototype,"digestAlgorithm",void 0);Ei([Ci({type:He})],go.prototype,"digest",void 0);var wo;var bo=function(){function t(t){if(t===void 0){t={}}this.prime=new ArrayBuffer(0);this.exponent=new ArrayBuffer(0);this.coefficient=new ArrayBuffer(0);Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer,converter:Ve})],bo.prototype,"prime",void 0);Ei([Ci({type:Ke.Integer,converter:Ve})],bo.prototype,"exponent",void 0);Ei([Ci({type:Ke.Integer,converter:Ve})],bo.prototype,"coefficient",void 0);var Eo=wo=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,wo.prototype);return i}return e}(wi);Eo=wo=Ei([Si({type:ke.Sequence,itemType:bo})],Eo);var Po=function(){function t(t){if(t===void 0){t={}}this.version=0;this.modulus=new ArrayBuffer(0);this.publicExponent=new ArrayBuffer(0);this.privateExponent=new ArrayBuffer(0);this.prime1=new ArrayBuffer(0);this.prime2=new ArrayBuffer(0);this.exponent1=new ArrayBuffer(0);this.exponent2=new ArrayBuffer(0);this.coefficient=new ArrayBuffer(0);Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer})],Po.prototype,"version",void 0);Ei([Ci({type:Ke.Integer,converter:Ve})],Po.prototype,"modulus",void 0);Ei([Ci({type:Ke.Integer,converter:Ve})],Po.prototype,"publicExponent",void 0);Ei([Ci({type:Ke.Integer,converter:Ve})],Po.prototype,"privateExponent",void 0);Ei([Ci({type:Ke.Integer,converter:Ve})],Po.prototype,"prime1",void 0);Ei([Ci({type:Ke.Integer,converter:Ve})],Po.prototype,"prime2",void 0);Ei([Ci({type:Ke.Integer,converter:Ve})],Po.prototype,"exponent1",void 0);Ei([Ci({type:Ke.Integer,converter:Ve})],Po.prototype,"exponent2",void 0);Ei([Ci({type:Ke.Integer,converter:Ve})],Po.prototype,"coefficient",void 0);Ei([Ci({type:Eo,optional:true})],Po.prototype,"otherPrimeInfos",void 0);var Do=function(){function t(t){if(t===void 0){t={}}this.modulus=new ArrayBuffer(0);this.publicExponent=new ArrayBuffer(0);Object.assign(this,t)}return t}();t("R",Do);Ei([Ci({type:Ke.Integer,converter:Ve})],Do.prototype,"modulus",void 0);Ei([Ci({type:Ke.Integer,converter:Ve})],Do.prototype,"publicExponent",void 0);var _o,Io;var Bo=t("k","1.3.6.1.4.1.18227.2.1");var xo=t("m",_o=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,_o.prototype);return i}return e}(wi));t("m",xo=_o=Ei([Si({type:ke.Sequence,itemType:Cn})],xo));var To=t("l",Io=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Io.prototype);return i}return e}(wi));t("l",To=Io=Ei([Si({type:ke.Sequence,itemType:Ke.BitString})],To));var Oo=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(He);var Mo=function(){function t(t){if(t===void 0){t={}}this.encryptionAlgorithm=new Cn;this.encryptedData=new Oo;Object.assign(this,t)}return t}();Ei([Ci({type:Cn})],Mo.prototype,"encryptionAlgorithm",void 0);Ei([Ci({type:Oo})],Mo.prototype,"encryptedData",void 0);var Ro;var No;(function(t){t[t["v1"]=0]="v1"})(No||(No={}));var ko=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(He);var Ko=Ro=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Ro.prototype);return i}return e}(wi);Ko=Ro=Ei([Si({type:ke.Sequence,itemType:rn})],Ko);var jo=function(){function t(t){if(t===void 0){t={}}this.version=No.v1;this.privateKeyAlgorithm=new Cn;this.privateKey=new ko;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer})],jo.prototype,"version",void 0);Ei([Ci({type:Cn})],jo.prototype,"privateKeyAlgorithm",void 0);Ei([Ci({type:ko})],jo.prototype,"privateKey",void 0);Ei([Ci({type:Ko,implicit:true,context:0,optional:true})],jo.prototype,"attributes",void 0);var Ho;var Uo;(function(t){t[t["v1"]=0]="v1";t[t["v2"]=1]="v2"})(Uo||(Uo={}));var Fo=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Cn);Fo=Ei([Si({type:ke.Sequence})],Fo);var Lo=function(){function t(){this.version=Uo.v1;this.privateKeyAlgorithm=new Cn;this.privateKey=new ArrayBuffer(0)}return t}();Ei([Ci({type:Ke.Integer})],Lo.prototype,"version",void 0);Ei([Ci({type:Cn})],Lo.prototype,"privateKeyAlgorithm",void 0);Ei([Ci({type:Ke.OctetString})],Lo.prototype,"privateKey",void 0);Ei([Ci({type:Ko,context:0,implicit:true,optional:true})],Lo.prototype,"attributes",void 0);Ei([Ci({type:Ke.BitString,context:1,implicit:true,optional:true})],Lo.prototype,"publicKey",void 0);Lo=Ei([Si({type:ke.Sequence})],Lo);var Vo=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Lo);Vo=Ei([Si({type:ke.Sequence})],Vo);var Go=Ho=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Ho.prototype);return i}return e}(wi);Go=Ho=Ei([Si({type:ke.Sequence,itemType:Lo})],Go);var Wo,Qo;var qo=t("h","2.16.840.1.114027.80.4.1");var zo=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Cn);zo=Ei([Si({type:ke.Sequence})],zo);var Zo=t("j",Wo=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Wo.prototype);return i}return e}(wi));t("j",Zo=Wo=Ei([Si({type:ke.Sequence,itemType:An})],Zo));var $o=Qo=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Qo.prototype);return i}return e}(wi);$o=Qo=Ei([Si({type:ke.Sequence,itemType:Lo})],$o);var Xo={exports:{}};var Yo=Xo.exports;var Jo;function ta(){if(Jo)return Xo.exports;Jo=1;(function(t,e){!function(e,i){t.exports=i()}(Yo,(function(){var t=1e3,e=6e4,i=36e5,r="millisecond",n="second",o="minute",a="hour",s="day",u="week",c="month",f="quarter",v="year",h="date",d="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],i=t%100;return"["+t+(e[(i-20)%10]||e[i]||e[0])+"]"}},S=function(t,e,i){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(i)+t},C={s:S,z:function(t){var e=-t.utcOffset(),i=Math.abs(e),r=Math.floor(i/60),n=i%60;return(e<=0?"+":"-")+S(r,2,"0")+":"+S(n,2,"0")},m:function t(e,i){if(e.date()<i.date())return-t(i,e);var r=12*(i.year()-e.year())+(i.month()-e.month()),n=e.clone().add(r,c),o=i-n<0,a=e.clone().add(r+(o?-1:1),c);return+(-(r+(i-n)/(o?n-a:a-n))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:v,w:u,d:s,D:h,h:a,m:o,s:n,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},A="en",m={};m[A]=y;var g="$isDayjsObject",w=function(t){return t instanceof D||!(!t||!t[g])},b=function t(e,i,r){var n;if(!e)return A;if("string"==typeof e){var o=e.toLowerCase();m[o]&&(n=o),i&&(m[o]=i,n=o);var a=e.split("-");if(!n&&a.length>1)return t(a[0])}else{var s=e.name;m[s]=e,n=s}return!r&&n&&(A=n),n||!r&&A},E=function(t,e){if(w(t))return t.clone();var i="object"==typeof e?e:{};return i.date=t,i.args=arguments,new D(i)},P=C;P.l=b,P.i=w,P.w=function(t,e){return E(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var D=function(){function y(t){this.$L=b(t.locale,null,true),this.parse(t),this.$x=this.$x||t.x||{},this[g]=true}var S=y.prototype;return S.parse=function(t){this.$d=function(t){var e=t.date,i=t.utc;if(null===e)return new Date(NaN);if(P.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(l);if(r){var n=r[2]-1||0,o=(r[7]||"0").substring(0,3);return i?new Date(Date.UTC(r[1],n,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],n,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.init()},S.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},S.$utils=function(){return P},S.isValid=function(){return!(this.$d.toString()===d)},S.isSame=function(t,e){var i=E(t);return this.startOf(e)<=i&&i<=this.endOf(e)},S.isAfter=function(t,e){return E(t)<this.startOf(e)},S.isBefore=function(t,e){return this.endOf(e)<E(t)},S.$g=function(t,e,i){return P.u(t)?this[e]:this.set(i,t)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(t,e){var i=this,r=!!P.u(e)||e,f=P.p(t),d=function(t,e){var n=P.w(i.$u?Date.UTC(i.$y,e,t):new Date(i.$y,e,t),i);return r?n:n.endOf(s)},l=function(t,e){return P.w(i.toDate()[t].apply(i.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),i)},p=this.$W,y=this.$M,S=this.$D,C="set"+(this.$u?"UTC":"");switch(f){case v:return r?d(1,0):d(31,11);case c:return r?d(1,y):d(0,y+1);case u:var A=this.$locale().weekStart||0,m=(p<A?p+7:p)-A;return d(r?S-m:S+(6-m),y);case s:case h:return l(C+"Hours",0);case a:return l(C+"Minutes",1);case o:return l(C+"Seconds",2);case n:return l(C+"Milliseconds",3);default:return this.clone()}},S.endOf=function(t){return this.startOf(t,false)},S.$set=function(t,e){var i,u=P.p(t),f="set"+(this.$u?"UTC":""),d=(i={},i[s]=f+"Date",i[h]=f+"Date",i[c]=f+"Month",i[v]=f+"FullYear",i[a]=f+"Hours",i[o]=f+"Minutes",i[n]=f+"Seconds",i[r]=f+"Milliseconds",i)[u],l=u===s?this.$D+(e-this.$W):e;if(u===c||u===v){var p=this.clone().set(h,1);p.$d[d](l),p.init(),this.$d=p.set(h,Math.min(this.$D,p.daysInMonth())).$d}else d&&this.$d[d](l);return this.init(),this},S.set=function(t,e){return this.clone().$set(t,e)},S.get=function(t){return this[P.p(t)]()},S.add=function(r,f){var h,d=this;r=Number(r);var l=P.p(f),p=function(t){var e=E(d);return P.w(e.date(e.date()+Math.round(t*r)),d)};if(l===c)return this.set(c,this.$M+r);if(l===v)return this.set(v,this.$y+r);if(l===s)return p(1);if(l===u)return p(7);var y=(h={},h[o]=e,h[a]=i,h[n]=t,h)[l]||1,S=this.$d.getTime()+r*y;return P.w(S,this)},S.subtract=function(t,e){return this.add(-1*t,e)},S.format=function(t){var e=this,i=this.$locale();if(!this.isValid())return i.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",n=P.z(this),o=this.$H,a=this.$m,s=this.$M,u=i.weekdays,c=i.months,f=i.meridiem,v=function(t,i,n,o){return t&&(t[i]||t(e,r))||n[i].slice(0,o)},h=function(t){return P.s(o%12||12,t,"0")},l=f||function(t,e,i){var r=t<12?"AM":"PM";return i?r.toLowerCase():r};return r.replace(p,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return P.s(e.$y,4,"0");case"M":return s+1;case"MM":return P.s(s+1,2,"0");case"MMM":return v(i.monthsShort,s,c,3);case"MMMM":return v(c,s);case"D":return e.$D;case"DD":return P.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return v(i.weekdaysMin,e.$W,u,2);case"ddd":return v(i.weekdaysShort,e.$W,u,3);case"dddd":return u[e.$W];case"H":return String(o);case"HH":return P.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return l(o,a,true);case"A":return l(o,a,false);case"m":return String(a);case"mm":return P.s(a,2,"0");case"s":return String(e.$s);case"ss":return P.s(e.$s,2,"0");case"SSS":return P.s(e.$ms,3,"0");case"Z":return n}return null}(t)||n.replace(":","")}))},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(r,h,d){var l,p=this,y=P.p(h),S=E(r),C=(S.utcOffset()-this.utcOffset())*e,A=this-S,m=function(){return P.m(p,S)};switch(y){case v:l=m()/12;break;case c:l=m();break;case f:l=m()/3;break;case u:l=(A-C)/6048e5;break;case s:l=(A-C)/864e5;break;case a:l=A/i;break;case o:l=A/e;break;case n:l=A/t;break;default:l=A}return d?l:P.a(l)},S.daysInMonth=function(){return this.endOf(c).$D},S.$locale=function(){return m[this.$L]},S.locale=function(t,e){if(!t)return this.$L;var i=this.clone(),r=b(t,e,true);return r&&(i.$L=r),i},S.clone=function(){return P.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},y}(),_=D.prototype;return E.prototype=_,[["$ms",r],["$s",n],["$m",o],["$H",a],["$W",s],["$M",c],["$y",v],["$D",h]].forEach((function(t){_[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),E.extend=function(t,e){return t.$i||(t(e,D,E),t.$i=true),E},E.locale=b,E.isDayjs=w,E.unix=function(t){return E(1e3*t)},E.en=m[A],E.Ls=m,E.p={},E}))})(Xo);return Xo.exports}var ea=ta();var ia=n(ea);var ra={exports:{}};var na=ra.exports;var oa;function aa(){if(oa)return ra.exports;oa=1;(function(t,e){!function(e,i){t.exports=i()}(na,(function(){return function(t,e,i){t=t||{};var r=e.prototype,n={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(t,e,i,n){return r.fromToBase(t,e,i,n)}i.en.relativeTime=n,r.fromToBase=function(e,r,o,a,s){for(var u,c,f,v=o.$locale().relativeTime||n,h=t.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],d=h.length,l=0;l<d;l+=1){var p=h[l];p.d&&(u=a?i(e).diff(o,p.d,true):o.diff(e,p.d,true));var y=(t.rounding||Math.round)(Math.abs(u));if(f=u>0,y<=p.r||!p.r){y<=1&&l>0&&(p=h[l-1]);var S=v[p.l];s&&(y=s(""+y)),c="string"==typeof S?S.replace("%d",y):S(y,r,p.l,f);break}}if(r)return c;var C=f?v.future:v.past;return"function"==typeof C?C(c):C.replace("%s",c)},r.to=function(t,e){return o(t,e,this,true)},r.from=function(t,e){return o(t,e,this)};var a=function(t){return t.$u?i.utc():i()};r.toNow=function(t){return this.to(a(this),t)},r.fromNow=function(t){return this.from(a(this),t)}}}))})(ra);return ra.exports}var sa=aa();var ua=n(sa);
|
|
79
79
|
/**
|
|
80
80
|
* @license
|
|
81
81
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
82
82
|
*
|
|
83
83
|
* This source code is licensed under the MIT license found in the
|
|
84
84
|
* LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/ia.extend(ua);var ca=t("Z",(function(t){return new Date(t).toUTCString()}));var fa=t("a",(function(t,e){if(!t||!e){return""}var i=ia(t);var r=ia(e);return i.to(r,true)}));var va="Basic Information";var ha="Subject Name";var da="Issuer Name";var la="Public Key Info";var pa="Signature";var ya="Extensions";var Sa="Miscellaneous";var Ca="Download";var Aa="Serial Number";var ma="Version";var ga="Validity";var wa="Issued";var
|
|
85
|
+
*/ia.extend(ua);var ca=t("Z",(function(t){return new Date(t).toUTCString()}));var fa=t("a",(function(t,e){if(!t||!e){return""}var i=ia(t);var r=ia(e);return i.to(r,true)}));var va="Basic Information";var ha="Subject Name";var da="Issuer Name";var la="Public Key Info";var pa="Signature";var ya="Extensions";var Sa="Miscellaneous";var Ca="Download";var Aa="Serial Number";var ma="Version";var ga="Validity";var wa="Issued";var ba="Expired";var Ea="Last Update";var Pa="Next Update";var Da="Algorithm";var _a="Named Curve";var Ia="Exponent";var Ba="Modulus";var xa="Value";var Ta="Valid";var Oa="Revoked";var Ma="Issuer";var Ra="Name";var Na="Public Key";var ka="Fingerprint";var Ka="Fingerprints";var ja="Test URLs";var Ha="Certificate Details";var Ua="Holder";var Fa="Digest Info";var La="Type";var Va="Revoked Certificates";var Ga="Revocation Date";var Wa="Yes";var Qa="No";var qa="Only User Certificates";var za="Only Attribute Certificates";var Za="Only CA Certificates";var $a="Indirect CRL";var Xa="Only Reasons";var Ya="CRL Entry Extensions";var Ja="Preview certificate";var ts="View details";var es="Download options";var is={basicInformation:va,subjectName:ha,issuerName:da,publicKeyInfo:la,signature:pa,extensions:ya,miscellaneous:Sa,download:Ca,"download.pem":"Download PEM","download.der":"Download DER",serialNumber:Aa,version:ma,validity:ga,issued:wa,expired:ba,lastUpdate:Ea,nextUpdate:Pa,algorithm:Da,namedCurve:_a,exponent:Ia,modulus:Ba,value:xa,valid:Ta,revoked:Oa,issuer:Ma,name:Ra,publicKey:Na,fingerprint:ka,fingerprints:Ka,testURLs:ja,certificateDetails:Ha,holder:Ua,digestInfo:Fa,type:La,revokedCertificates:Va,revocationDate:Ga,yes:Wa,no:Qa,onlyUserCertificates:qa,onlyAttributeCertificates:za,onlyCACertificates:Za,indirectCRL:$a,onlyReasons:Xa,crlEntryExtensions:Ya,previewCertificate:Ja,viewDetails:ts,downloadOptions:es};
|
|
86
86
|
/**
|
|
87
87
|
* @license
|
|
88
88
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -103,21 +103,21 @@ var __extends=this&&this.__extends||function(){var t=function(e,i){t=Object.setP
|
|
|
103
103
|
*
|
|
104
104
|
* This source code is licensed under the MIT license found in the
|
|
105
105
|
* LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/var us=undefined&&undefined.__classPrivateFieldSet||function(t,e,i,r,n){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?n.call(t,i):n?n.value=i:e.set(t,i),i};var cs=undefined&&undefined.__classPrivateFieldGet||function(t,e,i,r){if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?r:i==="a"?r.call(t):r?r.value:e.get(t)};var fs;var vs=function(){function t(t){fs.set(this,new Ri);if(u.BufferSourceConverter.isBufferSource(t)){us(this,fs,mi.parse(t,Ri),"f")}else{us(this,fs,t,"f")}}t.prototype.toJSON=function(){var t=[];cs(this,fs,"f").forEach((function(e){return e.forEach((function(e){t.push({type:e.type,name:ss[e.type],shortName:as[e.type],value:e.value.toString()})}))}));return t};return t}();t("N",vs);fs=new WeakMap;var hs;var ds="".concat(Ui,".2");var ls;(function(t){t[t["picture"]=0]="picture";t[t["handwrittenSignature"]=1]="handwrittenSignature"})(ls||(ls={}));var ps=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer})],ps.prototype,"predefinedBiometricType",void 0);bi([Ci({type:Ke.ObjectIdentifier})],ps.prototype,"biometricDataOid",void 0);ps=bi([Si({type:ke.Choice})],ps);var ys=function(){function t(t){if(t===void 0){t={}}this.typeOfBiometricData=new ps;this.hashAlgorithm=new Cn;this.biometricDataHash=new He;Object.assign(this,t)}return t}();bi([Ci({type:ps})],ys.prototype,"typeOfBiometricData",void 0);bi([Ci({type:Cn})],ys.prototype,"hashAlgorithm",void 0);bi([Ci({type:He})],ys.prototype,"biometricDataHash",void 0);bi([Ci({type:Ke.IA5String,optional:true})],ys.prototype,"sourceDataUri",void 0);var Ss=t("aO",hs=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,hs.prototype);return i}return e}(wi));t("aO",Ss=hs=bi([Si({type:ke.Sequence,itemType:ys})],Ss));var Cs="".concat(Hi,".11");var As,ms;var gs="".concat(Ui,".3");var ws=function(){function t(){this.statementId="";this.statementInfo=new ArrayBuffer(0)}return t}();bi([Ci({type:Ke.ObjectIdentifier})],ws.prototype,"statementId",void 0);bi([Ci({type:Ke.Any,optional:true})],ws.prototype,"statementInfo",void 0);var Es=t("aj","".concat(Cs,".2"));var bs=As=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,As.prototype);return i}return e}(wi);bs=As=bi([Si({type:ke.Sequence,itemType:ji})],bs);var Ps=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();t("ak",Ps);bi([Ci({type:Ke.ObjectIdentifier,optional:true})],Ps.prototype,"semanticsIdentifier",void 0);bi([Ci({type:bs,optional:true})],Ps.prototype,"nameRegistrationAuthorities",void 0);var Ds=t("aE",ms=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,ms.prototype);return i}return e}(wi));t("aE",Ds=ms=bi([Si({type:ke.Sequence,itemType:ws})],Ds));var _s=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Bi);_s=bi([Si({type:ke.Choice})],_s);var Is;(function(t){t["M"]="M";t["F"]="F";t["m"]="m";t["f"]="f"})(Is||(Is={}));var Bs;var xs=Bs=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Bs.prototype);return i}return e}(fr);xs=Bs=bi([Si({type:ke.Sequence})],xs);var Ts="1.3.6.1.4.1.311.21.7";var Os=function(){function t(t){if(t===void 0){t={}}this.templateID="";this.templateMajorVersion=0;this.templateMinorVersion=0;Object.assign(this,t)}return t}();t("aB",Os);bi([Ci({type:Ke.ObjectIdentifier})],Os.prototype,"templateID",void 0);bi([Ci({type:Ke.Integer})],Os.prototype,"templateMajorVersion",void 0);bi([Ci({type:Ke.Integer})],Os.prototype,"templateMinorVersion",void 0);var Ms="1.3.6.1.4.1.311.20.2";var Rs=function(){function t(t){if(t===void 0){t={}}this.name="";Object.assign(this,t)}return t}();bi([Ci({type:Ke.Utf8String})],Rs.prototype,"name",void 0);var Ns=t("aC",function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}t.prototype.toString=function(){var t,e;return((t=this.name)===null||t===void 0?void 0:t.toString())||((e=this.spec)===null||e===void 0?void 0:e.name)||""};return t}());bi([Ci({type:Bi})],Ns.prototype,"name",void 0);bi([Ci({type:Rs})],Ns.prototype,"spec",void 0);t("aC",Ns=bi([Si({type:ke.Choice})],Ns));var ks="1.3.6.1.4.1.311.21.1";var Ks=t("aD",function(){function t(){this.value=new ArrayBuffer(0)}t.prototype.toString=function(){var t=this.getVersion();return"V".concat(t.certificateIndex,".").concat(t.keyIndex)};t.prototype.getVersion=function(){var t=new Uint8Array(this.value);if(this.value.byteLength<4){t=new Uint8Array(4);t.set(new Uint8Array(this.value),4-this.value.byteLength)}return{keyIndex:parseInt(u.Convert.ToHex(t.slice(0,2)),16),certificateIndex:parseInt(u.Convert.ToHex(t.slice(2)),16)}};return t}());bi([Ci({type:Ke.Integer,converter:Ve})],Ks.prototype,"value",void 0);t("aD",Ks=bi([Si({type:ke.Choice})],Ks));var js=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:Ke.NumericString})],js.prototype,"numericString",void 0);bi([Ci({type:Ke.PrintableString})],js.prototype,"printableString",void 0);bi([Ci({type:Ke.TeletexString})],js.prototype,"teletexString",void 0);bi([Ci({type:Ke.VideotexString})],js.prototype,"videotexString",void 0);bi([Ci({type:Ke.IA5String})],js.prototype,"ia5String",void 0);bi([Ci({type:Ke.GraphicString})],js.prototype,"graphicString",void 0);bi([Ci({type:Ke.VisibleString})],js.prototype,"visibleString",void 0);bi([Ci({type:Ke.GeneralString})],js.prototype,"generalString",void 0);bi([Ci({type:Ke.UniversalString})],js.prototype,"universalString",void 0);bi([Ci({type:Ke.BmpString})],js.prototype,"bmpString",void 0);js=bi([Si({type:ke.Choice})],js);var Hs=function(){function t(t){if(t===void 0){t=new ArrayBuffer(0)}this.value=t}return t}();bi([Ci({type:Ke.Any})],Hs.prototype,"value",void 0);Hs=bi([Si({type:ke.Choice})],Hs);var Us;var Fs=Us=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Us.prototype);return i}return e}(bn);Fs=Us=bi([Si({type:ke.Sequence})],Fs);var Ls=function(){function t(t){if(t===void 0){t={}}this.keySpec=0;this.cspName="";this.signature=new ArrayBuffer(0);Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer})],Ls.prototype,"keySpec",void 0);bi([Ci({type:Ke.BmpString})],Ls.prototype,"cspName",void 0);bi([Ci({type:Ke.BitString})],Ls.prototype,"signature",void 0);var Vs;var Gs=Vs=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Vs.prototype);return i}return e}(wi);Gs=Vs=bi([Si({type:ke.Sequence,itemType:Ke.Any})],Gs);var Ws;var Qs=Ws=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Ws.prototype);return i}return e}(wi);Qs=Ws=bi([Si({type:ke.Sequence,itemType:Ke.Any})],Qs);var qs;var zs=function(){function t(t){if(t===void 0){t={}}this.name="";this.value="";Object.assign(this,t)}return t}();bi([Ci({type:Ke.BmpString})],zs.prototype,"name",void 0);bi([Ci({type:Ke.BmpString})],zs.prototype,"value",void 0);var Zs=qs=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,qs.prototype);return i}return e}(wi);Zs=qs=bi([Si({type:ke.Sequence,itemType:zs})],Zs);var $s=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ki);$s=bi([Si({type:ke.Sequence})],$s);var Xs=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ki);Xs=bi([Si({type:ke.Sequence})],Xs);var Ys=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(_n);Ys=bi([Si({type:ke.Sequence})],Ys);var Js=function(){function t(t){if(t===void 0){t={}}this.clientId=0;this.machineName="";this.userName="";this.processName="";Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer})],Js.prototype,"clientId",void 0);bi([Ci({type:Ke.Utf8String})],Js.prototype,"machineName",void 0);bi([Ci({type:Ke.Utf8String})],Js.prototype,"userName",void 0);bi([Ci({type:Ke.Utf8String})],Js.prototype,"processName",void 0);var tu="2.16.840.1.113730";var eu="".concat(tu,".1");var iu=function(){function t(t){this.value="";if(t){this.value=t}}return t}();bi([Ci({type:Ke.IA5String})],iu.prototype,"value",void 0);iu=bi([Si({type:ke.Choice})],iu);var ru=function(){function t(t){this.value="";if(t){this.value=t}}return t}();bi([Ci({type:Ke.IA5String})],ru.prototype,"value",void 0);ru=bi([Si({type:ke.Choice})],ru);var nu=function(){function t(t){this.value="";if(t){this.value=t}}return t}();bi([Ci({type:Ke.IA5String})],nu.prototype,"value",void 0);nu=bi([Si({type:ke.Choice})],nu);var ou=function(){function t(t){this.value="";if(t){this.value=t}}return t}();bi([Ci({type:Ke.IA5String})],ou.prototype,"value",void 0);ou=bi([Si({type:ke.Choice})],ou);var au="".concat(eu,".1");var su;(function(t){t[t["sslClient"]=1]="sslClient";t[t["sslServer"]=2]="sslServer";t[t["sMime"]=4]="sMime";t[t["objectSigning"]=8]="objectSigning";t[t["sslCa"]=32]="sslCa";t[t["sMimeCa"]=64]="sMimeCa";t[t["objectSigningCa"]=128]="objectSigningCa"})(su||(su={}));var uu=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toJSON=function(){var t=this.toNumber();var e=[];if(t&su.objectSigning){e.push("objectSigning")}if(t&su.objectSigningCa){e.push("objectSigningCa")}if(t&su.sMime){e.push("sMime")}if(t&su.sMimeCa){e.push("sMimeCa")}if(t&su.sslCa){e.push("sslCa")}if(t&su.sslClient){e.push("sslClient")}if(t&su.sslServer){e.push("sslServer")}return e};e.prototype.toString=function(){return"[".concat(this.toJSON().join(", "),"]")};return e}(je);t("aG",uu);var cu="".concat(eu,".13");var fu=t("aF",function(){function t(t){this.value="";if(t){this.value=t}}return t}());bi([Ci({type:Ke.IA5String})],fu.prototype,"value",void 0);t("aF",fu=bi([Si({type:ke.Choice})],fu));var vu=function(){function t(t){this.value="";if(t){this.value=t}}return t}();bi([Ci({type:Ke.IA5String})],vu.prototype,"value",void 0);vu=bi([Si({type:ke.Choice})],vu);var hu=function(){function t(t){this.value="";if(t){this.value=t}}return t}();bi([Ci({type:Ke.IA5String})],hu.prototype,"value",void 0);hu=bi([Si({type:ke.Choice})],hu);var du="1.3.6.1.4.1.52266.1";var lu=function(){function t(t){if(t===void 0){t={}}this.leiCode="";Object.assign(this,t)}return t}();bi([Ci({type:te})],lu.prototype,"leiCode",void 0);bi([Ci({type:te,context:0,optional:true})],lu.prototype,"leiRole",void 0);lu=bi([Si({type:ke.Sequence})],lu);var pu=function(){function t(t){if(t){this.text=t}}Object.defineProperty(t.prototype,"text",{get:function(){if(this.bmpString!==undefined){return this.bmpString}if(this.ia5String!==undefined){return this.ia5String}if(this.printableString!==undefined){return this.printableString}if(this.utf8String!==undefined){return this.utf8String}if(this.visibleString!==undefined){return this.visibleString}return undefined},set:function(t){this.printableString=t},enumerable:false,configurable:true});return t}();bi([Ci({type:Ke.IA5String})],pu.prototype,"ia5String",void 0);bi([Ci({type:Ke.VisibleString})],pu.prototype,"visibleString",void 0);bi([Ci({type:Ke.BmpString})],pu.prototype,"bmpString",void 0);bi([Ci({type:Ke.Utf8String})],pu.prototype,"utf8String",void 0);bi([Ci({type:Ke.PrintableString})],pu.prototype,"printableString",void 0);pu=bi([Si({type:ke.Choice})],pu);var yu=t("aI",function(t){__extends(e,t);function e(e){var i=t.call(this)||this;if(typeof e==="string"){i.text=e}else if(e instanceof lu){i.struct=e}return i}return e}(pu));bi([Ci({type:lu})],yu.prototype,"struct",void 0);t("aI",yu=bi([Si({type:ke.Choice})],yu));var Su="1.3.6.1.4.1.52266.2";var Cu=t("aH",function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(pu));t("aH",Cu=bi([Si({type:ke.Choice})],Cu));var Au=function(){function t(t){this.offset=0;this.view=u.BufferSourceConverter.toUint8Array(t)}Object.defineProperty(t.prototype,"position",{get:function(){return this.offset},enumerable:false,configurable:true});t.prototype.read=function(t){if(t===void 0){t=1}var e=this.view.slice(this.offset,this.offset+t);this.offset=this.offset+e.length;return e};t.prototype.readByte=function(){var t=this.read();if(!t.length){throw new Error("End of stream")}return t[0]};t.prototype.readNumber=function(t){var e=this.read(t);var i=u.Convert.ToHex(e);return parseInt(i,16)};t.prototype.readEnd=function(){return this.read(this.view.length-this.offset)};t.prototype.reset=function(){this.offset=0};return t}();var mu=function(){function t(){}t.createStream=function(t){var e=u.BufferSourceConverter.toUint8Array(t);return new Au(e)};return t}();var gu;(function(t){t[t["certificateTimestamp"]=0]="certificateTimestamp";t[t["treeHash"]=1]="treeHash"})(gu||(gu={}));var wu;(function(t){t[t["none"]=0]="none";t[t["md5"]=1]="md5";t[t["sha1"]=2]="sha1";t[t["sha224"]=3]="sha224";t[t["sha256"]=4]="sha256";t[t["sha384"]=5]="sha384";t[t["sha512"]=6]="sha512"})(wu||(wu={}));var Eu;(function(t){t[t["anonymous"]=0]="anonymous";t[t["rsa"]=1]="rsa";t[t["dsa"]=2]="dsa";t[t["ecdsa"]=3]="ecdsa"})(Eu||(Eu={}));var bu=function(t){__extends(e,t);function e(e){var i=t.call(this)||this;i.version=0;i.logId=new ArrayBuffer(32);i.timestamp=new Date;i.extensions=new ArrayBuffer(0);i.hashAlgorithm=0;i.signatureAlgorithm=0;i.signature=new ArrayBuffer(0);if(e){i.parse(e)}return i}e.prototype.parse=function(t){this.version=t.readByte();t.read(2);this.logId=u.BufferSourceConverter.toArrayBuffer(t.read(32));this.timestamp=new Date(t.readNumber(8));var e=t.readNumber(2);this.extensions=t.read(e).buffer;this.hashAlgorithm=t.readByte();this.signatureAlgorithm=t.readByte();this.signature=t.read(t.readNumber(2)).buffer};e.prototype.toJSON=function(){return{version:this.version,logId:u.Convert.ToHex(this.logId),timestamp:this.timestamp,extensions:u.Convert.ToBase64(this.extensions),hashAlgorithm:wu[this.hashAlgorithm]||"undefined",signatureAlgorithm:Eu[this.signatureAlgorithm]||"undefined",signature:u.Convert.ToBase64(this.signature)}};return e}(mu);var Pu="1.3.6.1.4.1.11129.2.4.2";var Du=function(t){__extends(e,t);function e(){var e=t.apply(this,arguments)||this;e.items=[];return e}e.prototype.fromASN=function(e){t.prototype.fromASN.call(this,e);var i=new Au(this.buffer);var r=i.readNumber(2);this.items=[];while(i.position<r){this.items.push(new bu(i))}return this};e.prototype.toJSON=function(){return this.items.map((function(t){return t.toJSON()}))};return e}(He);t("az",Du);var _u;(function(t){t[t["v1"]=1]="v1"})(_u||(_u={}));var Iu="1.2.840.113583.1.1.9.2";var Bu=function(){function t(t){if(t===void 0){t={}}this.version=_u.v1;Object.assign(this,t)}return t}();t("aK",Bu);bi([Ci({type:Ke.Integer})],Bu.prototype,"version",void 0);var xu="1.2.840.113583.1.1.9.1";var Tu=function(){function t(t){if(t===void 0){t={}}this.version=_u.v1;this.location=new ji;this.requiresAuth=false;Object.assign(this,t)}return t}();t("aJ",Tu);bi([Ci({type:Ke.Integer})],Tu.prototype,"version",void 0);bi([Ci({type:ji})],Tu.prototype,"location",void 0);bi([Ci({type:Ke.Boolean,defaultValue:false,optional:true})],Tu.prototype,"requiresAuth",void 0);var Ou=function(){function t(t){if(t===void 0){t={}}this.hashAlg=new Cn;this.hashValue=new He;Object.assign(this,t)}return t}();bi([Ci({type:Cn})],Ou.prototype,"hashAlg",void 0);bi([Ci({type:He})],Ou.prototype,"hashValue",void 0);var Mu=function(){function t(t){if(t===void 0){t={}}this.mediaType="";this.logotypeHash=[];this.logotypeURI=[];Object.assign(this,t)}return t}();bi([Ci({type:Ke.IA5String})],Mu.prototype,"mediaType",void 0);bi([Ci({type:Ou,repeated:"sequence"})],Mu.prototype,"logotypeHash",void 0);bi([Ci({type:Ke.IA5String,repeated:"sequence"})],Mu.prototype,"logotypeURI",void 0);var Ru;(function(t){t[t["mono"]=1]="mono";t[t["stereo"]=2]="stereo";t[t["quad"]=4]="quad"})(Ru||(Ru={}));var Nu=function(){function t(t){if(t===void 0){t={}}this.fileSize=0;this.playTime=0;this.channels=Ru.mono;Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer})],Nu.prototype,"fileSize",void 0);bi([Ci({type:Ke.Integer})],Nu.prototype,"playTime",void 0);bi([Ci({type:Ke.Integer})],Nu.prototype,"channels",void 0);bi([Ci({type:Ke.Integer,implicit:true,context:3,optional:true})],Nu.prototype,"sampleRate",void 0);bi([Ci({type:Ke.IA5String,implicit:true,context:4,optional:true})],Nu.prototype,"language",void 0);var ku=function(){function t(t){if(t===void 0){t={}}this.audioDetails=new Mu;Object.assign(this,t)}return t}();bi([Ci({type:Mu})],ku.prototype,"audioDetails",void 0);bi([Ci({type:Nu,optional:true})],ku.prototype,"audioInfo",void 0);var Ku=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer,context:1,implicit:true})],Ku.prototype,"numBits",void 0);bi([Ci({type:Ke.Integer,context:2,implicit:true})],Ku.prototype,"tableSize",void 0);Ku=bi([Si({type:ke.Choice})],Ku);var ju;(function(t){t[t["grayScale"]=0]="grayScale";t[t["color"]=1]="color"})(ju||(ju={}));var Hu=function(){function t(t){if(t===void 0){t={}}this.type=ju.color;this.fileSize=0;this.xSize=0;this.ySize=0;Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer,context:0,implicit:true,defaultValue:ju.color})],Hu.prototype,"type",void 0);bi([Ci({type:Ke.Integer})],Hu.prototype,"fileSize",void 0);bi([Ci({type:Ke.Integer})],Hu.prototype,"xSize",void 0);bi([Ci({type:Ke.Integer})],Hu.prototype,"ySize",void 0);bi([Ci({type:Ku})],Hu.prototype,"resolution",void 0);bi([Ci({type:Ke.IA5String,context:4,implicit:true,optional:true})],Hu.prototype,"language",void 0);var Uu=function(){function t(t){if(t===void 0){t={}}this.imageDetails=new Mu;Object.assign(this,t)}return t}();bi([Ci({type:Mu})],Uu.prototype,"imageDetails",void 0);bi([Ci({type:Hu,optional:true})],Uu.prototype,"imageInfo",void 0);var Fu=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:Uu,repeated:"sequence",optional:true})],Fu.prototype,"image",void 0);bi([Ci({type:ku,repeated:"sequence",context:1,optional:true})],Fu.prototype,"audio",void 0);var Lu=function(){function t(t){if(t===void 0){t={}}this.refStructHash=[];this.refStructURI=[];Object.assign(this,t)}return t}();bi([Ci({type:Ou,repeated:"sequence"})],Lu.prototype,"refStructHash",void 0);bi([Ci({type:Ke.IA5String,repeated:"sequence"})],Lu.prototype,"refStructURI",void 0);var Vu=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:Fu,implicit:true,context:0})],Vu.prototype,"direct",void 0);bi([Ci({type:Lu,implicit:true,context:1})],Vu.prototype,"indirect",void 0);Vu=bi([Si({type:ke.Choice})],Vu);var Gu=function(){function t(t){if(t===void 0){t={}}this.logotypeType="";this.info=new Vu;Object.assign(this,t)}return t}();bi([Ci({type:Ke.ObjectIdentifier})],Gu.prototype,"logotypeType",void 0);bi([Ci({type:Vu})],Gu.prototype,"info",void 0);var Wu=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();t("aP",Wu);bi([Ci({type:Vu,context:0,repeated:"sequence",optional:true})],Wu.prototype,"communityLogos",void 0);bi([Ci({type:Vu,context:1,optional:true})],Wu.prototype,"issuerLogo",void 0);bi([Ci({type:Vu,context:2,optional:true})],Wu.prototype,"subjectLogo",void 0);bi([Ci({type:Gu,context:3,repeated:"sequence",optional:true})],Wu.prototype,"otherLogos",void 0);var Qu="1.3.6.1.5.5.7.1.12";var qu,zu,Zu;var $u="1.3.6.1.5.5.7";var Xu="".concat($u,".1");var Yu=qu=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,qu.prototype);return i}return e}(wi);Yu=qu=bi([Si({type:ke.Sequence,itemType:Ke.IA5String})],Yu);var Ju=function(){function t(t){if(t===void 0){t={}}this.claim="";this.permitted=[];Object.assign(this,t)}return t}();bi([Ci({type:Ke.IA5String})],Ju.prototype,"claim",void 0);bi([Ci({type:Ke.Utf8String,repeated:"sequence"})],Ju.prototype,"permitted",void 0);var tc=zu=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,zu.prototype);return i}return e}(wi);tc=zu=bi([Si({type:ke.Sequence,itemType:Ju})],tc);var ec=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:Yu,optional:true,context:0})],ec.prototype,"mustInclude",void 0);bi([Ci({type:tc,optional:true,context:1})],ec.prototype,"permittedValues",void 0);var ic="".concat(Xu,".26");var rc=function(){function t(){this.start="";this.count=2}return t}();bi([Ci({type:Ke.IA5String})],rc.prototype,"start",void 0);bi([Ci({type:Ke.Integer})],rc.prototype,"count",void 0);var nc=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:Ke.IA5String,context:0})],nc.prototype,"spc",void 0);bi([Ci({type:rc,context:1})],nc.prototype,"range",void 0);bi([Ci({type:Ke.IA5String,context:2})],nc.prototype,"one",void 0);nc=bi([Si({type:ke.Choice})],nc);var oc=t("aQ",Zu=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Zu.prototype);return i}return e}(wi));t("aQ",oc=Zu=bi([Si({type:ke.Sequence,itemType:nc})],oc));var ac;var sc="1.3.6.1.4.1.11129.2.1.17";var uc;(function(t){t[t["verified"]=0]="verified";t[t["selfSigned"]=1]="selfSigned";t[t["unverified"]=2]="unverified";t[t["failed"]=3]="failed"})(uc||(uc={}));var cc=function(){function t(t){if(t===void 0){t={}}this.verifiedBootKey=new He;this.deviceLocked=false;this.verifiedBootState=uc.verified;Object.assign(this,t)}return t}();t("an",cc);bi([Ci({type:He})],cc.prototype,"verifiedBootKey",void 0);bi([Ci({type:Ke.Boolean})],cc.prototype,"deviceLocked",void 0);bi([Ci({type:Ke.Enumerated})],cc.prototype,"verifiedBootState",void 0);bi([Ci({type:He,optional:true})],cc.prototype,"verifiedBootHash",void 0);var fc=t("ao",ac=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,ac.prototype);return i}return e}(wi));t("ao",fc=ac=bi([Si({type:ke.Set,itemType:Ke.Integer})],fc));var vc=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({context:1,type:fc,optional:true})],vc.prototype,"purpose",void 0);bi([Ci({context:2,type:Ke.Integer,optional:true})],vc.prototype,"algorithm",void 0);bi([Ci({context:3,type:Ke.Integer,optional:true})],vc.prototype,"keySize",void 0);bi([Ci({context:5,type:fc,optional:true})],vc.prototype,"digest",void 0);bi([Ci({context:6,type:fc,optional:true})],vc.prototype,"padding",void 0);bi([Ci({context:10,type:Ke.Integer,optional:true})],vc.prototype,"ecCurve",void 0);bi([Ci({context:200,type:Ke.Integer,optional:true})],vc.prototype,"rsaPublicExponent",void 0);bi([Ci({context:203,type:fc,optional:true})],vc.prototype,"mgfDigest",void 0);bi([Ci({context:303,type:Ke.Null,optional:true})],vc.prototype,"rollbackResistance",void 0);bi([Ci({context:305,type:Ke.Null,optional:true})],vc.prototype,"earlyBootOnly",void 0);bi([Ci({context:400,type:Ke.Integer,optional:true})],vc.prototype,"activeDateTime",void 0);bi([Ci({context:401,type:Ke.Integer,optional:true})],vc.prototype,"originationExpireDateTime",void 0);bi([Ci({context:402,type:Ke.Integer,optional:true})],vc.prototype,"usageExpireDateTime",void 0);bi([Ci({context:405,type:Ke.Integer,optional:true})],vc.prototype,"usageCountLimit",void 0);bi([Ci({context:503,type:Ke.Null,optional:true})],vc.prototype,"noAuthRequired",void 0);bi([Ci({context:504,type:Ke.Integer,optional:true})],vc.prototype,"userAuthType",void 0);bi([Ci({context:505,type:Ke.Integer,optional:true})],vc.prototype,"authTimeout",void 0);bi([Ci({context:506,type:Ke.Null,optional:true})],vc.prototype,"allowWhileOnBody",void 0);bi([Ci({context:507,type:Ke.Null,optional:true})],vc.prototype,"trustedUserPresenceRequired",void 0);bi([Ci({context:508,type:Ke.Null,optional:true})],vc.prototype,"trustedConfirmationRequired",void 0);bi([Ci({context:509,type:Ke.Null,optional:true})],vc.prototype,"unlockedDeviceRequired",void 0);bi([Ci({context:600,type:Ke.Null,optional:true})],vc.prototype,"allApplications",void 0);bi([Ci({context:601,type:He,optional:true})],vc.prototype,"applicationId",void 0);bi([Ci({context:701,type:Ke.Integer,optional:true})],vc.prototype,"creationDateTime",void 0);bi([Ci({context:702,type:Ke.Integer,optional:true})],vc.prototype,"origin",void 0);bi([Ci({context:703,type:Ke.Null,optional:true})],vc.prototype,"rollbackResistant",void 0);bi([Ci({context:704,type:cc,optional:true})],vc.prototype,"rootOfTrust",void 0);bi([Ci({context:705,type:Ke.Integer,optional:true})],vc.prototype,"osVersion",void 0);bi([Ci({context:706,type:Ke.Integer,optional:true})],vc.prototype,"osPatchLevel",void 0);bi([Ci({context:709,type:He,optional:true})],vc.prototype,"attestationApplicationId",void 0);bi([Ci({context:710,type:He,optional:true})],vc.prototype,"attestationIdBrand",void 0);bi([Ci({context:711,type:He,optional:true})],vc.prototype,"attestationIdDevice",void 0);bi([Ci({context:712,type:He,optional:true})],vc.prototype,"attestationIdProduct",void 0);bi([Ci({context:713,type:He,optional:true})],vc.prototype,"attestationIdSerial",void 0);bi([Ci({context:714,type:He,optional:true})],vc.prototype,"attestationIdImei",void 0);bi([Ci({context:715,type:He,optional:true})],vc.prototype,"attestationIdMeid",void 0);bi([Ci({context:716,type:He,optional:true})],vc.prototype,"attestationIdManufacturer",void 0);bi([Ci({context:717,type:He,optional:true})],vc.prototype,"attestationIdModel",void 0);bi([Ci({context:718,type:Ke.Integer,optional:true})],vc.prototype,"vendorPatchLevel",void 0);bi([Ci({context:719,type:Ke.Integer,optional:true})],vc.prototype,"bootPatchLevel",void 0);bi([Ci({context:720,type:Ke.Null,optional:true})],vc.prototype,"deviceUniqueAttestation",void 0);bi([Ci({context:723,type:He,optional:true})],vc.prototype,"attestationIdSecondImei",void 0);bi([Ci({context:724,type:He,optional:true})],vc.prototype,"moduleHash",void 0);var hc;(function(t){t[t["software"]=0]="software";t[t["trustedEnvironment"]=1]="trustedEnvironment";t[t["strongBox"]=2]="strongBox"})(hc||(hc={}));var dc;(function(t){t[t["KM2"]=1]="KM2";t[t["KM3"]=2]="KM3";t[t["KM4"]=3]="KM4";t[t["KM4_1"]=4]="KM4_1";t[t["keyMint1"]=100]="keyMint1";t[t["keyMint2"]=200]="keyMint2";t[t["keyMint3"]=300]="keyMint3";t[t["keyMint4"]=400]="keyMint4"})(dc||(dc={}));var lc=function(){function t(t){if(t===void 0){t={}}this.attestationVersion=dc.KM4;this.attestationSecurityLevel=hc.software;this.keymasterVersion=0;this.keymasterSecurityLevel=hc.software;this.attestationChallenge=new He;this.uniqueId=new He;this.softwareEnforced=new vc;this.teeEnforced=new vc;Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer})],lc.prototype,"attestationVersion",void 0);bi([Ci({type:Ke.Enumerated})],lc.prototype,"attestationSecurityLevel",void 0);bi([Ci({type:Ke.Integer})],lc.prototype,"keymasterVersion",void 0);bi([Ci({type:Ke.Enumerated})],lc.prototype,"keymasterSecurityLevel",void 0);bi([Ci({type:He})],lc.prototype,"attestationChallenge",void 0);bi([Ci({type:He})],lc.prototype,"uniqueId",void 0);bi([Ci({type:vc})],lc.prototype,"softwareEnforced",void 0);bi([Ci({type:vc})],lc.prototype,"teeEnforced",void 0);var pc=function(){function t(t){if(t===void 0){t={}}this.attestationVersion=dc.keyMint4;this.attestationSecurityLevel=hc.software;this.keyMintVersion=0;this.keyMintSecurityLevel=hc.software;this.attestationChallenge=new He;this.uniqueId=new He;this.softwareEnforced=new vc;this.hardwareEnforced=new vc;Object.assign(this,t)}t.prototype.toLegacyKeyDescription=function(){return new lc({attestationVersion:this.attestationVersion,attestationSecurityLevel:this.attestationSecurityLevel,keymasterVersion:this.keyMintVersion,keymasterSecurityLevel:this.keyMintSecurityLevel,attestationChallenge:this.attestationChallenge,uniqueId:this.uniqueId,softwareEnforced:this.softwareEnforced,teeEnforced:this.hardwareEnforced})};t.fromLegacyKeyDescription=function(e){return new t({attestationVersion:e.attestationVersion,attestationSecurityLevel:e.attestationSecurityLevel,keyMintVersion:e.keymasterVersion,keyMintSecurityLevel:e.keymasterSecurityLevel,attestationChallenge:e.attestationChallenge,uniqueId:e.uniqueId,softwareEnforced:e.softwareEnforced,hardwareEnforced:e.teeEnforced})};return t}();bi([Ci({type:Ke.Integer})],pc.prototype,"attestationVersion",void 0);bi([Ci({type:Ke.Enumerated})],pc.prototype,"attestationSecurityLevel",void 0);bi([Ci({type:Ke.Integer})],pc.prototype,"keyMintVersion",void 0);bi([Ci({type:Ke.Enumerated})],pc.prototype,"keyMintSecurityLevel",void 0);bi([Ci({type:He})],pc.prototype,"attestationChallenge",void 0);bi([Ci({type:He})],pc.prototype,"uniqueId",void 0);bi([Ci({type:vc})],pc.prototype,"softwareEnforced",void 0);bi([Ci({type:vc})],pc.prototype,"hardwareEnforced",void 0);var yc;var Sc=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(vc);Sc=bi([Si({type:ke.Choice})],Sc);var Cc=yc=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,yc.prototype);return i}e.prototype.findProperty=function(t){var e=this.find((function(e){return t in e}));if(e){return e[t]}return undefined};return e}(wi);Cc=yc=bi([Si({type:ke.Sequence,itemType:Sc})],Cc);var Ac=function(){function t(t){if(t===void 0){t={}}this.attestationVersion=dc.KM4;this.attestationSecurityLevel=hc.software;this.keymasterVersion=0;this.keymasterSecurityLevel=hc.software;this.attestationChallenge=new He;this.uniqueId=new He;this.softwareEnforced=new Cc;this.teeEnforced=new Cc;Object.assign(this,t)}Object.defineProperty(t.prototype,"keyMintVersion",{get:function(){return this.keymasterVersion},set:function(t){this.keymasterVersion=t},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"keyMintSecurityLevel",{get:function(){return this.keymasterSecurityLevel},set:function(t){this.keymasterSecurityLevel=t},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"hardwareEnforced",{get:function(){return this.teeEnforced},set:function(t){this.teeEnforced=t},enumerable:false,configurable:true});return t}();t("aV",Ac);bi([Ci({type:Ke.Integer})],Ac.prototype,"attestationVersion",void 0);bi([Ci({type:Ke.Enumerated})],Ac.prototype,"attestationSecurityLevel",void 0);bi([Ci({type:Ke.Integer})],Ac.prototype,"keymasterVersion",void 0);bi([Ci({type:Ke.Enumerated})],Ac.prototype,"keymasterSecurityLevel",void 0);bi([Ci({type:He})],Ac.prototype,"attestationChallenge",void 0);bi([Ci({type:He})],Ac.prototype,"uniqueId",void 0);bi([Ci({type:Cc})],Ac.prototype,"softwareEnforced",void 0);bi([Ci({type:Cc})],Ac.prototype,"teeEnforced",void 0);var mc=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}if("keymasterVersion"in e&&!("keyMintVersion"in e)){e.keyMintVersion=e.keymasterVersion}if("keymasterSecurityLevel"in e&&!("keyMintSecurityLevel"in e)){e.keyMintSecurityLevel=e.keymasterSecurityLevel}if("teeEnforced"in e&&!("hardwareEnforced"in e)){e.hardwareEnforced=e.teeEnforced}return t.call(this,e)||this}return e}(Ac);mc=bi([Si({type:ke.Sequence})],mc);var gc=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:Ke.OctetString})],gc.prototype,"packageName",void 0);bi([Ci({type:Ke.Integer})],gc.prototype,"version",void 0);var wc=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();t("am",wc);bi([Ci({type:gc,repeated:"set"})],wc.prototype,"packageInfos",void 0);bi([Ci({type:Ke.OctetString,repeated:"set"})],wc.prototype,"signatureDigests",void 0);var Ec=undefined&&undefined.__decorate||function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)if(a=t[s])o=(n<3?a(o):n>3?a(e,i,o):a(e,i))||o;return n>3&&o&&Object.defineProperty(e,i,o),o};var bc="2.23.140.3.1";var Pc=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();t("aW",Pc);Ec([Ci({type:Ke.PrintableString})],Pc.prototype,"registrationSchemeIdentifier",void 0);Ec([Ci({type:Ke.PrintableString})],Pc.prototype,"registrationCountry",void 0);Ec([Ci({type:Ke.PrintableString,optional:true,context:0,implicit:true})],Pc.prototype,"registrationStateOrProvince",void 0);Ec([Ci({type:Ke.Utf8String})],Pc.prototype,"registrationReference",void 0);
|
|
106
|
+
*/var us=undefined&&undefined.__classPrivateFieldSet||function(t,e,i,r,n){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?n.call(t,i):n?n.value=i:e.set(t,i),i};var cs=undefined&&undefined.__classPrivateFieldGet||function(t,e,i,r){if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?r:i==="a"?r.call(t):r?r.value:e.get(t)};var fs;var vs=function(){function t(t){fs.set(this,new Ri);if(u.BufferSourceConverter.isBufferSource(t)){us(this,fs,mi.parse(t,Ri),"f")}else{us(this,fs,t,"f")}}t.prototype.toJSON=function(){var t=[];cs(this,fs,"f").forEach((function(e){return e.forEach((function(e){t.push({type:e.type,name:ss[e.type],shortName:as[e.type],value:e.value.toString()})}))}));return t};return t}();t("N",vs);fs=new WeakMap;var hs;var ds="".concat(Ui,".2");var ls;(function(t){t[t["picture"]=0]="picture";t[t["handwrittenSignature"]=1]="handwrittenSignature"})(ls||(ls={}));var ps=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer})],ps.prototype,"predefinedBiometricType",void 0);Ei([Ci({type:Ke.ObjectIdentifier})],ps.prototype,"biometricDataOid",void 0);ps=Ei([Si({type:ke.Choice})],ps);var ys=function(){function t(t){if(t===void 0){t={}}this.typeOfBiometricData=new ps;this.hashAlgorithm=new Cn;this.biometricDataHash=new He;Object.assign(this,t)}return t}();Ei([Ci({type:ps})],ys.prototype,"typeOfBiometricData",void 0);Ei([Ci({type:Cn})],ys.prototype,"hashAlgorithm",void 0);Ei([Ci({type:He})],ys.prototype,"biometricDataHash",void 0);Ei([Ci({type:Ke.IA5String,optional:true})],ys.prototype,"sourceDataUri",void 0);var Ss=t("aO",hs=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,hs.prototype);return i}return e}(wi));t("aO",Ss=hs=Ei([Si({type:ke.Sequence,itemType:ys})],Ss));var Cs="".concat(Hi,".11");var As,ms;var gs="".concat(Ui,".3");var ws=function(){function t(){this.statementId="";this.statementInfo=new ArrayBuffer(0)}return t}();Ei([Ci({type:Ke.ObjectIdentifier})],ws.prototype,"statementId",void 0);Ei([Ci({type:Ke.Any,optional:true})],ws.prototype,"statementInfo",void 0);var bs=t("aj","".concat(Cs,".2"));var Es=As=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,As.prototype);return i}return e}(wi);Es=As=Ei([Si({type:ke.Sequence,itemType:ji})],Es);var Ps=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();t("ak",Ps);Ei([Ci({type:Ke.ObjectIdentifier,optional:true})],Ps.prototype,"semanticsIdentifier",void 0);Ei([Ci({type:Es,optional:true})],Ps.prototype,"nameRegistrationAuthorities",void 0);var Ds=t("aE",ms=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,ms.prototype);return i}return e}(wi));t("aE",Ds=ms=Ei([Si({type:ke.Sequence,itemType:ws})],Ds));var _s=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Bi);_s=Ei([Si({type:ke.Choice})],_s);var Is;(function(t){t["M"]="M";t["F"]="F";t["m"]="m";t["f"]="f"})(Is||(Is={}));var Bs;var xs=Bs=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Bs.prototype);return i}return e}(fr);xs=Bs=Ei([Si({type:ke.Sequence})],xs);var Ts="1.3.6.1.4.1.311.21.7";var Os=function(){function t(t){if(t===void 0){t={}}this.templateID="";this.templateMajorVersion=0;this.templateMinorVersion=0;Object.assign(this,t)}return t}();t("aB",Os);Ei([Ci({type:Ke.ObjectIdentifier})],Os.prototype,"templateID",void 0);Ei([Ci({type:Ke.Integer})],Os.prototype,"templateMajorVersion",void 0);Ei([Ci({type:Ke.Integer})],Os.prototype,"templateMinorVersion",void 0);var Ms="1.3.6.1.4.1.311.20.2";var Rs=function(){function t(t){if(t===void 0){t={}}this.name="";Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Utf8String})],Rs.prototype,"name",void 0);var Ns=t("aC",function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}t.prototype.toString=function(){var t,e;return((t=this.name)===null||t===void 0?void 0:t.toString())||((e=this.spec)===null||e===void 0?void 0:e.name)||""};return t}());Ei([Ci({type:Bi})],Ns.prototype,"name",void 0);Ei([Ci({type:Rs})],Ns.prototype,"spec",void 0);t("aC",Ns=Ei([Si({type:ke.Choice})],Ns));var ks="1.3.6.1.4.1.311.21.1";var Ks=t("aD",function(){function t(){this.value=new ArrayBuffer(0)}t.prototype.toString=function(){var t=this.getVersion();return"V".concat(t.certificateIndex,".").concat(t.keyIndex)};t.prototype.getVersion=function(){var t=new Uint8Array(this.value);if(this.value.byteLength<4){t=new Uint8Array(4);t.set(new Uint8Array(this.value),4-this.value.byteLength)}return{keyIndex:parseInt(u.Convert.ToHex(t.slice(0,2)),16),certificateIndex:parseInt(u.Convert.ToHex(t.slice(2)),16)}};return t}());Ei([Ci({type:Ke.Integer,converter:Ve})],Ks.prototype,"value",void 0);t("aD",Ks=Ei([Si({type:ke.Choice})],Ks));var js=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:Ke.NumericString})],js.prototype,"numericString",void 0);Ei([Ci({type:Ke.PrintableString})],js.prototype,"printableString",void 0);Ei([Ci({type:Ke.TeletexString})],js.prototype,"teletexString",void 0);Ei([Ci({type:Ke.VideotexString})],js.prototype,"videotexString",void 0);Ei([Ci({type:Ke.IA5String})],js.prototype,"ia5String",void 0);Ei([Ci({type:Ke.GraphicString})],js.prototype,"graphicString",void 0);Ei([Ci({type:Ke.VisibleString})],js.prototype,"visibleString",void 0);Ei([Ci({type:Ke.GeneralString})],js.prototype,"generalString",void 0);Ei([Ci({type:Ke.UniversalString})],js.prototype,"universalString",void 0);Ei([Ci({type:Ke.BmpString})],js.prototype,"bmpString",void 0);js=Ei([Si({type:ke.Choice})],js);var Hs=function(){function t(t){if(t===void 0){t=new ArrayBuffer(0)}this.value=t}return t}();Ei([Ci({type:Ke.Any})],Hs.prototype,"value",void 0);Hs=Ei([Si({type:ke.Choice})],Hs);var Us;var Fs=Us=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Us.prototype);return i}return e}(En);Fs=Us=Ei([Si({type:ke.Sequence})],Fs);var Ls=function(){function t(t){if(t===void 0){t={}}this.keySpec=0;this.cspName="";this.signature=new ArrayBuffer(0);Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer})],Ls.prototype,"keySpec",void 0);Ei([Ci({type:Ke.BmpString})],Ls.prototype,"cspName",void 0);Ei([Ci({type:Ke.BitString})],Ls.prototype,"signature",void 0);var Vs;var Gs=Vs=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Vs.prototype);return i}return e}(wi);Gs=Vs=Ei([Si({type:ke.Sequence,itemType:Ke.Any})],Gs);var Ws;var Qs=Ws=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Ws.prototype);return i}return e}(wi);Qs=Ws=Ei([Si({type:ke.Sequence,itemType:Ke.Any})],Qs);var qs;var zs=function(){function t(t){if(t===void 0){t={}}this.name="";this.value="";Object.assign(this,t)}return t}();Ei([Ci({type:Ke.BmpString})],zs.prototype,"name",void 0);Ei([Ci({type:Ke.BmpString})],zs.prototype,"value",void 0);var Zs=qs=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,qs.prototype);return i}return e}(wi);Zs=qs=Ei([Si({type:ke.Sequence,itemType:zs})],Zs);var $s=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ki);$s=Ei([Si({type:ke.Sequence})],$s);var Xs=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ki);Xs=Ei([Si({type:ke.Sequence})],Xs);var Ys=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(_n);Ys=Ei([Si({type:ke.Sequence})],Ys);var Js=function(){function t(t){if(t===void 0){t={}}this.clientId=0;this.machineName="";this.userName="";this.processName="";Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer})],Js.prototype,"clientId",void 0);Ei([Ci({type:Ke.Utf8String})],Js.prototype,"machineName",void 0);Ei([Ci({type:Ke.Utf8String})],Js.prototype,"userName",void 0);Ei([Ci({type:Ke.Utf8String})],Js.prototype,"processName",void 0);var tu="2.16.840.1.113730";var eu="".concat(tu,".1");var iu=function(){function t(t){this.value="";if(t){this.value=t}}return t}();Ei([Ci({type:Ke.IA5String})],iu.prototype,"value",void 0);iu=Ei([Si({type:ke.Choice})],iu);var ru=function(){function t(t){this.value="";if(t){this.value=t}}return t}();Ei([Ci({type:Ke.IA5String})],ru.prototype,"value",void 0);ru=Ei([Si({type:ke.Choice})],ru);var nu=function(){function t(t){this.value="";if(t){this.value=t}}return t}();Ei([Ci({type:Ke.IA5String})],nu.prototype,"value",void 0);nu=Ei([Si({type:ke.Choice})],nu);var ou=function(){function t(t){this.value="";if(t){this.value=t}}return t}();Ei([Ci({type:Ke.IA5String})],ou.prototype,"value",void 0);ou=Ei([Si({type:ke.Choice})],ou);var au="".concat(eu,".1");var su;(function(t){t[t["sslClient"]=1]="sslClient";t[t["sslServer"]=2]="sslServer";t[t["sMime"]=4]="sMime";t[t["objectSigning"]=8]="objectSigning";t[t["sslCa"]=32]="sslCa";t[t["sMimeCa"]=64]="sMimeCa";t[t["objectSigningCa"]=128]="objectSigningCa"})(su||(su={}));var uu=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toJSON=function(){var t=this.toNumber();var e=[];if(t&su.objectSigning){e.push("objectSigning")}if(t&su.objectSigningCa){e.push("objectSigningCa")}if(t&su.sMime){e.push("sMime")}if(t&su.sMimeCa){e.push("sMimeCa")}if(t&su.sslCa){e.push("sslCa")}if(t&su.sslClient){e.push("sslClient")}if(t&su.sslServer){e.push("sslServer")}return e};e.prototype.toString=function(){return"[".concat(this.toJSON().join(", "),"]")};return e}(je);t("aG",uu);var cu="".concat(eu,".13");var fu=t("aF",function(){function t(t){this.value="";if(t){this.value=t}}return t}());Ei([Ci({type:Ke.IA5String})],fu.prototype,"value",void 0);t("aF",fu=Ei([Si({type:ke.Choice})],fu));var vu=function(){function t(t){this.value="";if(t){this.value=t}}return t}();Ei([Ci({type:Ke.IA5String})],vu.prototype,"value",void 0);vu=Ei([Si({type:ke.Choice})],vu);var hu=function(){function t(t){this.value="";if(t){this.value=t}}return t}();Ei([Ci({type:Ke.IA5String})],hu.prototype,"value",void 0);hu=Ei([Si({type:ke.Choice})],hu);var du="1.3.6.1.4.1.52266.1";var lu=function(){function t(t){if(t===void 0){t={}}this.leiCode="";Object.assign(this,t)}return t}();Ei([Ci({type:te})],lu.prototype,"leiCode",void 0);Ei([Ci({type:te,context:0,optional:true})],lu.prototype,"leiRole",void 0);lu=Ei([Si({type:ke.Sequence})],lu);var pu=function(){function t(t){if(t){this.text=t}}Object.defineProperty(t.prototype,"text",{get:function(){if(this.bmpString!==undefined){return this.bmpString}if(this.ia5String!==undefined){return this.ia5String}if(this.printableString!==undefined){return this.printableString}if(this.utf8String!==undefined){return this.utf8String}if(this.visibleString!==undefined){return this.visibleString}return undefined},set:function(t){this.printableString=t},enumerable:false,configurable:true});return t}();Ei([Ci({type:Ke.IA5String})],pu.prototype,"ia5String",void 0);Ei([Ci({type:Ke.VisibleString})],pu.prototype,"visibleString",void 0);Ei([Ci({type:Ke.BmpString})],pu.prototype,"bmpString",void 0);Ei([Ci({type:Ke.Utf8String})],pu.prototype,"utf8String",void 0);Ei([Ci({type:Ke.PrintableString})],pu.prototype,"printableString",void 0);pu=Ei([Si({type:ke.Choice})],pu);var yu=t("aI",function(t){__extends(e,t);function e(e){var i=t.call(this)||this;if(typeof e==="string"){i.text=e}else if(e instanceof lu){i.struct=e}return i}return e}(pu));Ei([Ci({type:lu})],yu.prototype,"struct",void 0);t("aI",yu=Ei([Si({type:ke.Choice})],yu));var Su="1.3.6.1.4.1.52266.2";var Cu=t("aH",function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(pu));t("aH",Cu=Ei([Si({type:ke.Choice})],Cu));var Au=function(){function t(t){this.offset=0;this.view=u.BufferSourceConverter.toUint8Array(t)}Object.defineProperty(t.prototype,"position",{get:function(){return this.offset},enumerable:false,configurable:true});t.prototype.read=function(t){if(t===void 0){t=1}var e=this.view.slice(this.offset,this.offset+t);this.offset=this.offset+e.length;return e};t.prototype.readByte=function(){var t=this.read();if(!t.length){throw new Error("End of stream")}return t[0]};t.prototype.readNumber=function(t){var e=this.read(t);var i=u.Convert.ToHex(e);return parseInt(i,16)};t.prototype.readEnd=function(){return this.read(this.view.length-this.offset)};t.prototype.reset=function(){this.offset=0};return t}();var mu=function(){function t(){}t.createStream=function(t){var e=u.BufferSourceConverter.toUint8Array(t);return new Au(e)};return t}();var gu;(function(t){t[t["certificateTimestamp"]=0]="certificateTimestamp";t[t["treeHash"]=1]="treeHash"})(gu||(gu={}));var wu;(function(t){t[t["none"]=0]="none";t[t["md5"]=1]="md5";t[t["sha1"]=2]="sha1";t[t["sha224"]=3]="sha224";t[t["sha256"]=4]="sha256";t[t["sha384"]=5]="sha384";t[t["sha512"]=6]="sha512"})(wu||(wu={}));var bu;(function(t){t[t["anonymous"]=0]="anonymous";t[t["rsa"]=1]="rsa";t[t["dsa"]=2]="dsa";t[t["ecdsa"]=3]="ecdsa"})(bu||(bu={}));var Eu=function(t){__extends(e,t);function e(e){var i=t.call(this)||this;i.version=0;i.logId=new ArrayBuffer(32);i.timestamp=new Date;i.extensions=new ArrayBuffer(0);i.hashAlgorithm=0;i.signatureAlgorithm=0;i.signature=new ArrayBuffer(0);if(e){i.parse(e)}return i}e.prototype.parse=function(t){this.version=t.readByte();t.read(2);this.logId=u.BufferSourceConverter.toArrayBuffer(t.read(32));this.timestamp=new Date(t.readNumber(8));var e=t.readNumber(2);this.extensions=t.read(e).buffer;this.hashAlgorithm=t.readByte();this.signatureAlgorithm=t.readByte();this.signature=t.read(t.readNumber(2)).buffer};e.prototype.toJSON=function(){return{version:this.version,logId:u.Convert.ToHex(this.logId),timestamp:this.timestamp,extensions:u.Convert.ToBase64(this.extensions),hashAlgorithm:wu[this.hashAlgorithm]||"undefined",signatureAlgorithm:bu[this.signatureAlgorithm]||"undefined",signature:u.Convert.ToBase64(this.signature)}};return e}(mu);var Pu="1.3.6.1.4.1.11129.2.4.2";var Du=function(t){__extends(e,t);function e(){var e=t.apply(this,arguments)||this;e.items=[];return e}e.prototype.fromASN=function(e){t.prototype.fromASN.call(this,e);var i=new Au(this.buffer);var r=i.readNumber(2);this.items=[];while(i.position<r){this.items.push(new Eu(i))}return this};e.prototype.toJSON=function(){return this.items.map((function(t){return t.toJSON()}))};return e}(He);t("az",Du);var _u;(function(t){t[t["v1"]=1]="v1"})(_u||(_u={}));var Iu="1.2.840.113583.1.1.9.2";var Bu=function(){function t(t){if(t===void 0){t={}}this.version=_u.v1;Object.assign(this,t)}return t}();t("aK",Bu);Ei([Ci({type:Ke.Integer})],Bu.prototype,"version",void 0);var xu="1.2.840.113583.1.1.9.1";var Tu=function(){function t(t){if(t===void 0){t={}}this.version=_u.v1;this.location=new ji;this.requiresAuth=false;Object.assign(this,t)}return t}();t("aJ",Tu);Ei([Ci({type:Ke.Integer})],Tu.prototype,"version",void 0);Ei([Ci({type:ji})],Tu.prototype,"location",void 0);Ei([Ci({type:Ke.Boolean,defaultValue:false,optional:true})],Tu.prototype,"requiresAuth",void 0);var Ou=function(){function t(t){if(t===void 0){t={}}this.hashAlg=new Cn;this.hashValue=new He;Object.assign(this,t)}return t}();Ei([Ci({type:Cn})],Ou.prototype,"hashAlg",void 0);Ei([Ci({type:He})],Ou.prototype,"hashValue",void 0);var Mu=function(){function t(t){if(t===void 0){t={}}this.mediaType="";this.logotypeHash=[];this.logotypeURI=[];Object.assign(this,t)}return t}();Ei([Ci({type:Ke.IA5String})],Mu.prototype,"mediaType",void 0);Ei([Ci({type:Ou,repeated:"sequence"})],Mu.prototype,"logotypeHash",void 0);Ei([Ci({type:Ke.IA5String,repeated:"sequence"})],Mu.prototype,"logotypeURI",void 0);var Ru;(function(t){t[t["mono"]=1]="mono";t[t["stereo"]=2]="stereo";t[t["quad"]=4]="quad"})(Ru||(Ru={}));var Nu=function(){function t(t){if(t===void 0){t={}}this.fileSize=0;this.playTime=0;this.channels=Ru.mono;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer})],Nu.prototype,"fileSize",void 0);Ei([Ci({type:Ke.Integer})],Nu.prototype,"playTime",void 0);Ei([Ci({type:Ke.Integer})],Nu.prototype,"channels",void 0);Ei([Ci({type:Ke.Integer,implicit:true,context:3,optional:true})],Nu.prototype,"sampleRate",void 0);Ei([Ci({type:Ke.IA5String,implicit:true,context:4,optional:true})],Nu.prototype,"language",void 0);var ku=function(){function t(t){if(t===void 0){t={}}this.audioDetails=new Mu;Object.assign(this,t)}return t}();Ei([Ci({type:Mu})],ku.prototype,"audioDetails",void 0);Ei([Ci({type:Nu,optional:true})],ku.prototype,"audioInfo",void 0);var Ku=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer,context:1,implicit:true})],Ku.prototype,"numBits",void 0);Ei([Ci({type:Ke.Integer,context:2,implicit:true})],Ku.prototype,"tableSize",void 0);Ku=Ei([Si({type:ke.Choice})],Ku);var ju;(function(t){t[t["grayScale"]=0]="grayScale";t[t["color"]=1]="color"})(ju||(ju={}));var Hu=function(){function t(t){if(t===void 0){t={}}this.type=ju.color;this.fileSize=0;this.xSize=0;this.ySize=0;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer,context:0,implicit:true,defaultValue:ju.color})],Hu.prototype,"type",void 0);Ei([Ci({type:Ke.Integer})],Hu.prototype,"fileSize",void 0);Ei([Ci({type:Ke.Integer})],Hu.prototype,"xSize",void 0);Ei([Ci({type:Ke.Integer})],Hu.prototype,"ySize",void 0);Ei([Ci({type:Ku})],Hu.prototype,"resolution",void 0);Ei([Ci({type:Ke.IA5String,context:4,implicit:true,optional:true})],Hu.prototype,"language",void 0);var Uu=function(){function t(t){if(t===void 0){t={}}this.imageDetails=new Mu;Object.assign(this,t)}return t}();Ei([Ci({type:Mu})],Uu.prototype,"imageDetails",void 0);Ei([Ci({type:Hu,optional:true})],Uu.prototype,"imageInfo",void 0);var Fu=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:Uu,repeated:"sequence",optional:true})],Fu.prototype,"image",void 0);Ei([Ci({type:ku,repeated:"sequence",context:1,optional:true})],Fu.prototype,"audio",void 0);var Lu=function(){function t(t){if(t===void 0){t={}}this.refStructHash=[];this.refStructURI=[];Object.assign(this,t)}return t}();Ei([Ci({type:Ou,repeated:"sequence"})],Lu.prototype,"refStructHash",void 0);Ei([Ci({type:Ke.IA5String,repeated:"sequence"})],Lu.prototype,"refStructURI",void 0);var Vu=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:Fu,implicit:true,context:0})],Vu.prototype,"direct",void 0);Ei([Ci({type:Lu,implicit:true,context:1})],Vu.prototype,"indirect",void 0);Vu=Ei([Si({type:ke.Choice})],Vu);var Gu=function(){function t(t){if(t===void 0){t={}}this.logotypeType="";this.info=new Vu;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.ObjectIdentifier})],Gu.prototype,"logotypeType",void 0);Ei([Ci({type:Vu})],Gu.prototype,"info",void 0);var Wu=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();t("aP",Wu);Ei([Ci({type:Vu,context:0,repeated:"sequence",optional:true})],Wu.prototype,"communityLogos",void 0);Ei([Ci({type:Vu,context:1,optional:true})],Wu.prototype,"issuerLogo",void 0);Ei([Ci({type:Vu,context:2,optional:true})],Wu.prototype,"subjectLogo",void 0);Ei([Ci({type:Gu,context:3,repeated:"sequence",optional:true})],Wu.prototype,"otherLogos",void 0);var Qu="1.3.6.1.5.5.7.1.12";var qu,zu,Zu;var $u="1.3.6.1.5.5.7";var Xu="".concat($u,".1");var Yu=qu=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,qu.prototype);return i}return e}(wi);Yu=qu=Ei([Si({type:ke.Sequence,itemType:Ke.IA5String})],Yu);var Ju=function(){function t(t){if(t===void 0){t={}}this.claim="";this.permitted=[];Object.assign(this,t)}return t}();Ei([Ci({type:Ke.IA5String})],Ju.prototype,"claim",void 0);Ei([Ci({type:Ke.Utf8String,repeated:"sequence"})],Ju.prototype,"permitted",void 0);var tc=zu=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,zu.prototype);return i}return e}(wi);tc=zu=Ei([Si({type:ke.Sequence,itemType:Ju})],tc);var ec=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:Yu,optional:true,context:0})],ec.prototype,"mustInclude",void 0);Ei([Ci({type:tc,optional:true,context:1})],ec.prototype,"permittedValues",void 0);var ic="".concat(Xu,".26");var rc=function(){function t(){this.start="";this.count=2}return t}();Ei([Ci({type:Ke.IA5String})],rc.prototype,"start",void 0);Ei([Ci({type:Ke.Integer})],rc.prototype,"count",void 0);var nc=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:Ke.IA5String,context:0})],nc.prototype,"spc",void 0);Ei([Ci({type:rc,context:1})],nc.prototype,"range",void 0);Ei([Ci({type:Ke.IA5String,context:2})],nc.prototype,"one",void 0);nc=Ei([Si({type:ke.Choice})],nc);var oc=t("aQ",Zu=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Zu.prototype);return i}return e}(wi));t("aQ",oc=Zu=Ei([Si({type:ke.Sequence,itemType:nc})],oc));var ac;var sc="1.3.6.1.4.1.11129.2.1.17";var uc;(function(t){t[t["verified"]=0]="verified";t[t["selfSigned"]=1]="selfSigned";t[t["unverified"]=2]="unverified";t[t["failed"]=3]="failed"})(uc||(uc={}));var cc=function(){function t(t){if(t===void 0){t={}}this.verifiedBootKey=new He;this.deviceLocked=false;this.verifiedBootState=uc.verified;Object.assign(this,t)}return t}();t("an",cc);Ei([Ci({type:He})],cc.prototype,"verifiedBootKey",void 0);Ei([Ci({type:Ke.Boolean})],cc.prototype,"deviceLocked",void 0);Ei([Ci({type:Ke.Enumerated})],cc.prototype,"verifiedBootState",void 0);Ei([Ci({type:He,optional:true})],cc.prototype,"verifiedBootHash",void 0);var fc=t("ao",ac=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,ac.prototype);return i}return e}(wi));t("ao",fc=ac=Ei([Si({type:ke.Set,itemType:Ke.Integer})],fc));var vc=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({context:1,type:fc,optional:true})],vc.prototype,"purpose",void 0);Ei([Ci({context:2,type:Ke.Integer,optional:true})],vc.prototype,"algorithm",void 0);Ei([Ci({context:3,type:Ke.Integer,optional:true})],vc.prototype,"keySize",void 0);Ei([Ci({context:5,type:fc,optional:true})],vc.prototype,"digest",void 0);Ei([Ci({context:6,type:fc,optional:true})],vc.prototype,"padding",void 0);Ei([Ci({context:10,type:Ke.Integer,optional:true})],vc.prototype,"ecCurve",void 0);Ei([Ci({context:200,type:Ke.Integer,optional:true})],vc.prototype,"rsaPublicExponent",void 0);Ei([Ci({context:203,type:fc,optional:true})],vc.prototype,"mgfDigest",void 0);Ei([Ci({context:303,type:Ke.Null,optional:true})],vc.prototype,"rollbackResistance",void 0);Ei([Ci({context:305,type:Ke.Null,optional:true})],vc.prototype,"earlyBootOnly",void 0);Ei([Ci({context:400,type:Ke.Integer,optional:true})],vc.prototype,"activeDateTime",void 0);Ei([Ci({context:401,type:Ke.Integer,optional:true})],vc.prototype,"originationExpireDateTime",void 0);Ei([Ci({context:402,type:Ke.Integer,optional:true})],vc.prototype,"usageExpireDateTime",void 0);Ei([Ci({context:405,type:Ke.Integer,optional:true})],vc.prototype,"usageCountLimit",void 0);Ei([Ci({context:503,type:Ke.Null,optional:true})],vc.prototype,"noAuthRequired",void 0);Ei([Ci({context:504,type:Ke.Integer,optional:true})],vc.prototype,"userAuthType",void 0);Ei([Ci({context:505,type:Ke.Integer,optional:true})],vc.prototype,"authTimeout",void 0);Ei([Ci({context:506,type:Ke.Null,optional:true})],vc.prototype,"allowWhileOnBody",void 0);Ei([Ci({context:507,type:Ke.Null,optional:true})],vc.prototype,"trustedUserPresenceRequired",void 0);Ei([Ci({context:508,type:Ke.Null,optional:true})],vc.prototype,"trustedConfirmationRequired",void 0);Ei([Ci({context:509,type:Ke.Null,optional:true})],vc.prototype,"unlockedDeviceRequired",void 0);Ei([Ci({context:600,type:Ke.Null,optional:true})],vc.prototype,"allApplications",void 0);Ei([Ci({context:601,type:He,optional:true})],vc.prototype,"applicationId",void 0);Ei([Ci({context:701,type:Ke.Integer,optional:true})],vc.prototype,"creationDateTime",void 0);Ei([Ci({context:702,type:Ke.Integer,optional:true})],vc.prototype,"origin",void 0);Ei([Ci({context:703,type:Ke.Null,optional:true})],vc.prototype,"rollbackResistant",void 0);Ei([Ci({context:704,type:cc,optional:true})],vc.prototype,"rootOfTrust",void 0);Ei([Ci({context:705,type:Ke.Integer,optional:true})],vc.prototype,"osVersion",void 0);Ei([Ci({context:706,type:Ke.Integer,optional:true})],vc.prototype,"osPatchLevel",void 0);Ei([Ci({context:709,type:He,optional:true})],vc.prototype,"attestationApplicationId",void 0);Ei([Ci({context:710,type:He,optional:true})],vc.prototype,"attestationIdBrand",void 0);Ei([Ci({context:711,type:He,optional:true})],vc.prototype,"attestationIdDevice",void 0);Ei([Ci({context:712,type:He,optional:true})],vc.prototype,"attestationIdProduct",void 0);Ei([Ci({context:713,type:He,optional:true})],vc.prototype,"attestationIdSerial",void 0);Ei([Ci({context:714,type:He,optional:true})],vc.prototype,"attestationIdImei",void 0);Ei([Ci({context:715,type:He,optional:true})],vc.prototype,"attestationIdMeid",void 0);Ei([Ci({context:716,type:He,optional:true})],vc.prototype,"attestationIdManufacturer",void 0);Ei([Ci({context:717,type:He,optional:true})],vc.prototype,"attestationIdModel",void 0);Ei([Ci({context:718,type:Ke.Integer,optional:true})],vc.prototype,"vendorPatchLevel",void 0);Ei([Ci({context:719,type:Ke.Integer,optional:true})],vc.prototype,"bootPatchLevel",void 0);Ei([Ci({context:720,type:Ke.Null,optional:true})],vc.prototype,"deviceUniqueAttestation",void 0);Ei([Ci({context:723,type:He,optional:true})],vc.prototype,"attestationIdSecondImei",void 0);Ei([Ci({context:724,type:He,optional:true})],vc.prototype,"moduleHash",void 0);var hc;(function(t){t[t["software"]=0]="software";t[t["trustedEnvironment"]=1]="trustedEnvironment";t[t["strongBox"]=2]="strongBox"})(hc||(hc={}));var dc;(function(t){t[t["KM2"]=1]="KM2";t[t["KM3"]=2]="KM3";t[t["KM4"]=3]="KM4";t[t["KM4_1"]=4]="KM4_1";t[t["keyMint1"]=100]="keyMint1";t[t["keyMint2"]=200]="keyMint2";t[t["keyMint3"]=300]="keyMint3";t[t["keyMint4"]=400]="keyMint4"})(dc||(dc={}));var lc=function(){function t(t){if(t===void 0){t={}}this.attestationVersion=dc.KM4;this.attestationSecurityLevel=hc.software;this.keymasterVersion=0;this.keymasterSecurityLevel=hc.software;this.attestationChallenge=new He;this.uniqueId=new He;this.softwareEnforced=new vc;this.teeEnforced=new vc;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer})],lc.prototype,"attestationVersion",void 0);Ei([Ci({type:Ke.Enumerated})],lc.prototype,"attestationSecurityLevel",void 0);Ei([Ci({type:Ke.Integer})],lc.prototype,"keymasterVersion",void 0);Ei([Ci({type:Ke.Enumerated})],lc.prototype,"keymasterSecurityLevel",void 0);Ei([Ci({type:He})],lc.prototype,"attestationChallenge",void 0);Ei([Ci({type:He})],lc.prototype,"uniqueId",void 0);Ei([Ci({type:vc})],lc.prototype,"softwareEnforced",void 0);Ei([Ci({type:vc})],lc.prototype,"teeEnforced",void 0);var pc=function(){function t(t){if(t===void 0){t={}}this.attestationVersion=dc.keyMint4;this.attestationSecurityLevel=hc.software;this.keyMintVersion=0;this.keyMintSecurityLevel=hc.software;this.attestationChallenge=new He;this.uniqueId=new He;this.softwareEnforced=new vc;this.hardwareEnforced=new vc;Object.assign(this,t)}t.prototype.toLegacyKeyDescription=function(){return new lc({attestationVersion:this.attestationVersion,attestationSecurityLevel:this.attestationSecurityLevel,keymasterVersion:this.keyMintVersion,keymasterSecurityLevel:this.keyMintSecurityLevel,attestationChallenge:this.attestationChallenge,uniqueId:this.uniqueId,softwareEnforced:this.softwareEnforced,teeEnforced:this.hardwareEnforced})};t.fromLegacyKeyDescription=function(e){return new t({attestationVersion:e.attestationVersion,attestationSecurityLevel:e.attestationSecurityLevel,keyMintVersion:e.keymasterVersion,keyMintSecurityLevel:e.keymasterSecurityLevel,attestationChallenge:e.attestationChallenge,uniqueId:e.uniqueId,softwareEnforced:e.softwareEnforced,hardwareEnforced:e.teeEnforced})};return t}();Ei([Ci({type:Ke.Integer})],pc.prototype,"attestationVersion",void 0);Ei([Ci({type:Ke.Enumerated})],pc.prototype,"attestationSecurityLevel",void 0);Ei([Ci({type:Ke.Integer})],pc.prototype,"keyMintVersion",void 0);Ei([Ci({type:Ke.Enumerated})],pc.prototype,"keyMintSecurityLevel",void 0);Ei([Ci({type:He})],pc.prototype,"attestationChallenge",void 0);Ei([Ci({type:He})],pc.prototype,"uniqueId",void 0);Ei([Ci({type:vc})],pc.prototype,"softwareEnforced",void 0);Ei([Ci({type:vc})],pc.prototype,"hardwareEnforced",void 0);var yc;var Sc=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(vc);Sc=Ei([Si({type:ke.Choice})],Sc);var Cc=yc=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,yc.prototype);return i}e.prototype.findProperty=function(t){var e=this.find((function(e){return t in e}));if(e){return e[t]}return undefined};return e}(wi);Cc=yc=Ei([Si({type:ke.Sequence,itemType:Sc})],Cc);var Ac=function(){function t(t){if(t===void 0){t={}}this.attestationVersion=dc.KM4;this.attestationSecurityLevel=hc.software;this.keymasterVersion=0;this.keymasterSecurityLevel=hc.software;this.attestationChallenge=new He;this.uniqueId=new He;this.softwareEnforced=new Cc;this.teeEnforced=new Cc;Object.assign(this,t)}Object.defineProperty(t.prototype,"keyMintVersion",{get:function(){return this.keymasterVersion},set:function(t){this.keymasterVersion=t},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"keyMintSecurityLevel",{get:function(){return this.keymasterSecurityLevel},set:function(t){this.keymasterSecurityLevel=t},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"hardwareEnforced",{get:function(){return this.teeEnforced},set:function(t){this.teeEnforced=t},enumerable:false,configurable:true});return t}();t("aV",Ac);Ei([Ci({type:Ke.Integer})],Ac.prototype,"attestationVersion",void 0);Ei([Ci({type:Ke.Enumerated})],Ac.prototype,"attestationSecurityLevel",void 0);Ei([Ci({type:Ke.Integer})],Ac.prototype,"keymasterVersion",void 0);Ei([Ci({type:Ke.Enumerated})],Ac.prototype,"keymasterSecurityLevel",void 0);Ei([Ci({type:He})],Ac.prototype,"attestationChallenge",void 0);Ei([Ci({type:He})],Ac.prototype,"uniqueId",void 0);Ei([Ci({type:Cc})],Ac.prototype,"softwareEnforced",void 0);Ei([Ci({type:Cc})],Ac.prototype,"teeEnforced",void 0);var mc=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}if("keymasterVersion"in e&&!("keyMintVersion"in e)){e.keyMintVersion=e.keymasterVersion}if("keymasterSecurityLevel"in e&&!("keyMintSecurityLevel"in e)){e.keyMintSecurityLevel=e.keymasterSecurityLevel}if("teeEnforced"in e&&!("hardwareEnforced"in e)){e.hardwareEnforced=e.teeEnforced}return t.call(this,e)||this}return e}(Ac);mc=Ei([Si({type:ke.Sequence})],mc);var gc=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:Ke.OctetString})],gc.prototype,"packageName",void 0);Ei([Ci({type:Ke.Integer})],gc.prototype,"version",void 0);var wc=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();t("am",wc);Ei([Ci({type:gc,repeated:"set"})],wc.prototype,"packageInfos",void 0);Ei([Ci({type:Ke.OctetString,repeated:"set"})],wc.prototype,"signatureDigests",void 0);var bc=undefined&&undefined.__decorate||function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)if(a=t[s])o=(n<3?a(o):n>3?a(e,i,o):a(e,i))||o;return n>3&&o&&Object.defineProperty(e,i,o),o};var Ec="2.23.140.3.1";var Pc=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();t("aW",Pc);bc([Ci({type:Ke.PrintableString})],Pc.prototype,"registrationSchemeIdentifier",void 0);bc([Ci({type:Ke.PrintableString})],Pc.prototype,"registrationCountry",void 0);bc([Ci({type:Ke.PrintableString,optional:true,context:0,implicit:true})],Pc.prototype,"registrationStateOrProvince",void 0);bc([Ci({type:Ke.Utf8String})],Pc.prototype,"registrationReference",void 0);
|
|
107
107
|
/**
|
|
108
108
|
* @license
|
|
109
109
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
110
110
|
*
|
|
111
111
|
* This source code is licensed under the MIT license found in the
|
|
112
112
|
* LICENSE file in the root directory of this source tree.
|
|
113
|
-
*/var Dc=undefined&&undefined.__classPrivateFieldSet||function(t,e,i,r,n){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?n.call(t,i):n?n.value=i:e.set(t,i),i};var _c=undefined&&undefined.__classPrivateFieldGet||function(t,e,i,r){if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?r:i==="a"?r.call(t):r?r.value:e.get(t)};var Ic,Bc;var xc=function(){function t(){var t=[];for(var e=0;e<arguments.length;e++){t[e]=arguments[e]}Ic.set(this,void 0);Bc.set(this,void 0);if(t.length===1){Dc(this,Ic,t[0],"f");Dc(this,Bc,
|
|
113
|
+
*/var Dc=undefined&&undefined.__classPrivateFieldSet||function(t,e,i,r,n){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?n.call(t,i):n?n.value=i:e.set(t,i),i};var _c=undefined&&undefined.__classPrivateFieldGet||function(t,e,i,r){if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?r:i==="a"?r.call(t):r?r.value:e.get(t)};var Ic,Bc;var xc=function(){function t(){var t=[];for(var e=0;e<arguments.length;e++){t[e]=arguments[e]}Ic.set(this,void 0);Bc.set(this,void 0);if(t.length===1){Dc(this,Ic,t[0],"f");Dc(this,Bc,bi.serialize(_c(this,Ic,"f")),"f")}else{Dc(this,Ic,bi.parse(t[0],t[1]),"f");Dc(this,Bc,u.BufferSourceConverter.toArrayBuffer(t[0]),"f")}}Object.defineProperty(t.prototype,"asn",{get:function(){return _c(this,Ic,"f")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"raw",{get:function(){return _c(this,Bc,"f")},enumerable:false,configurable:true});return t}();t("A",xc);Ic=new WeakMap,Bc=new WeakMap;
|
|
114
114
|
/**
|
|
115
115
|
* @license
|
|
116
116
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
117
117
|
*
|
|
118
118
|
* This source code is licensed under the MIT license found in the
|
|
119
119
|
* LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/var Tc=(e={},e[Vi]=Wi,e[Qi]=zi,e[Zi]=$i,e[tr]=er,e[rr]=fr,e[yr]=gr,e["2.5.29.46"]=gr,e[
|
|
120
|
+
*/var Tc=(e={},e[Vi]=Wi,e[Qi]=zi,e[Zi]=$i,e[tr]=er,e[rr]=fr,e[yr]=gr,e["2.5.29.46"]=gr,e[Er]=Pr,e[Dr]=Ir,e[xr]=Tr,e[Or]=Mr,e[Rr]=Nr,e[Kr]=jr,e[Hr]=Fr,e[Vr]=Qr,e[qr]=zr,e[$r]=Yr,e[tn]=en,e[on]=an,e[sn]=un,e[gs]=Ds,e[Ts]=Os,e[Ms]=Ns,e[cu]=fu,e[au]=uu,e[ks]=Ks,e[Pu]=Du,e[du]=yu,e[Su]=Cu,e[xu]=Tu,e[Iu]=Bu,e[cn]=fn,e[vn]=ln,e["2.16.724.1.2.2.4.1"]=Ss,e[ds]=Ss,e[Qu]=Wu,e[ic]=oc,e[yn]=Sn,e[vr]=hr,e[dr]=lr,e[sc]=Ac,e[Ec]=Pc,e);var Oc=function(t){__extends(e,t);function e(e){var i=t.call(this,e,bn)||this;var r=i.getAsnExtnValue();try{var n=Tc[i.asn.extnID];if(n){i.value=mi.parse(r,n)}else{console.warn("Didn't detect parser for \"".concat(i.asn.extnID,'" extension.'));i.value=u.Convert.ToHex(r)}}catch(t){console.error('Error parse "'.concat(i.asn.extnID,'" extension:'),t.message);i.value=u.Convert.ToHex(r)}return i}e.prototype.getAsnExtnValue=function(){return this.asn.extnValue.buffer};return e}(xc);t("E",Oc);
|
|
121
121
|
/**
|
|
122
122
|
* @license
|
|
123
123
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -138,5 +138,5 @@ var __extends=this&&this.__extends||function(){var t=function(e,i){t=Object.setP
|
|
|
138
138
|
*
|
|
139
139
|
* This source code is licensed under the MIT license found in the
|
|
140
140
|
* LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/var qc=t("c",(function(t){if(Gc.isPem(t)){return Gc.decode(t)[0]}if(u.Convert.isHex(t)){return u.Convert.FromHex(t)}if(u.Convert.isBase64(t)){return u.Convert.FromBase64(t)}if(u.Convert.isBase64Url(t)){return u.Convert.FromBase64Url(t)}return u.Convert.FromBinary(t)}));var zc=t("n",(function(t,e){return __awaiter(i,void 0,void 0,(function(){var i;return __generator(this,(function(r){i=Qc.get();if(i.subtle){return[2,i.subtle.digest(t,e)]}return[2,undefined]}))}))}));var Zc=function(){function t(t){if(t===void 0){t={}}this.acIssuer=new ji;this.acSerial=0;this.attrs=[];Object.assign(this,t)}return t}();bi([Ci({type:ji})],Zc.prototype,"acIssuer",void 0);bi([Ci({type:Ke.Integer})],Zc.prototype,"acSerial",void 0);bi([Ci({type:rn,repeated:"sequence"})],Zc.prototype,"attrs",void 0);var $c;var Xc=$c=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,$c.prototype);return i}return e}(wi);Xc=$c=bi([Si({type:ke.Sequence,itemType:Ke.ObjectIdentifier})],Xc);var Yc=function(){function t(t){if(t===void 0){t={}}this.permitUnSpecified=true;Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer,optional:true})],Yc.prototype,"pathLenConstraint",void 0);bi([Ci({type:Xc,implicit:true,context:0,optional:true})],Yc.prototype,"permittedAttrs",void 0);bi([Ci({type:Xc,implicit:true,context:1,optional:true})],Yc.prototype,"excludedAttrs",void 0);bi([Ci({type:Ke.Boolean,defaultValue:true})],Yc.prototype,"permitUnSpecified",void 0);var Jc=function(){function t(t){if(t===void 0){t={}}this.issuer=new Yi;this.serial=new ArrayBuffer(0);this.issuerUID=new ArrayBuffer(0);Object.assign(this,t)}return t}();bi([Ci({type:Yi})],Jc.prototype,"issuer",void 0);bi([Ci({type:Ke.Integer,converter:Ve})],Jc.prototype,"serial",void 0);bi([Ci({type:Ke.BitString,optional:true})],Jc.prototype,"issuerUID",void 0);var tf;(function(t){t[t["publicKey"]=0]="publicKey";t[t["publicKeyCert"]=1]="publicKeyCert";t[t["otherObjectTypes"]=2]="otherObjectTypes"})(tf||(tf={}));var ef=function(){function t(t){if(t===void 0){t={}}this.digestedObjectType=tf.publicKey;this.digestAlgorithm=new Cn;this.objectDigest=new ArrayBuffer(0);Object.assign(this,t)}return t}();bi([Ci({type:Ke.Enumerated})],ef.prototype,"digestedObjectType",void 0);bi([Ci({type:Ke.ObjectIdentifier,optional:true})],ef.prototype,"otherObjectTypeID",void 0);bi([Ci({type:Cn})],ef.prototype,"digestAlgorithm",void 0);bi([Ci({type:Ke.BitString})],ef.prototype,"objectDigest",void 0);var rf=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:Yi,optional:true})],rf.prototype,"issuerName",void 0);bi([Ci({type:Jc,context:0,implicit:true,optional:true})],rf.prototype,"baseCertificateID",void 0);bi([Ci({type:ef,context:1,implicit:true,optional:true})],rf.prototype,"objectDigestInfo",void 0);var nf=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:ji,repeated:"sequence"})],nf.prototype,"v1Form",void 0);bi([Ci({type:rf,context:0,implicit:true})],nf.prototype,"v2Form",void 0);nf=bi([Si({type:ke.Choice})],nf);var of=function(){function t(t){if(t===void 0){t={}}this.notBeforeTime=new Date;this.notAfterTime=new Date;Object.assign(this,t)}return t}();bi([Ci({type:Ke.GeneralizedTime})],of.prototype,"notBeforeTime",void 0);bi([Ci({type:Ke.GeneralizedTime})],of.prototype,"notAfterTime",void 0);var af=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:Jc,implicit:true,context:0,optional:true})],af.prototype,"baseCertificateID",void 0);bi([Ci({type:Yi,implicit:true,context:1,optional:true})],af.prototype,"entityName",void 0);bi([Ci({type:ef,implicit:true,context:2,optional:true})],af.prototype,"objectDigestInfo",void 0);var sf;(function(t){t[t["v2"]=1]="v2"})(sf||(sf={}));var uf=function(){function t(t){if(t===void 0){t={}}this.version=sf.v2;this.holder=new af;this.issuer=new nf;this.signature=new Cn;this.serialNumber=new ArrayBuffer(0);this.attrCertValidityPeriod=new of;this.attributes=[];Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer})],uf.prototype,"version",void 0);bi([Ci({type:af})],uf.prototype,"holder",void 0);bi([Ci({type:nf})],uf.prototype,"issuer",void 0);bi([Ci({type:Cn})],uf.prototype,"signature",void 0);bi([Ci({type:Ke.Integer,converter:Ve})],uf.prototype,"serialNumber",void 0);bi([Ci({type:of})],uf.prototype,"attrCertValidityPeriod",void 0);bi([Ci({type:rn,repeated:"sequence"})],uf.prototype,"attributes",void 0);bi([Ci({type:Ke.BitString,optional:true})],uf.prototype,"issuerUniqueID",void 0);bi([Ci({type:bn,optional:true})],uf.prototype,"extensions",void 0);var cf=function(){function t(t){if(t===void 0){t={}}this.acinfo=new uf;this.signatureAlgorithm=new Cn;this.signatureValue=new ArrayBuffer(0);Object.assign(this,t)}return t}();t("o",cf);bi([Ci({type:uf})],cf.prototype,"acinfo",void 0);bi([Ci({type:Cn})],cf.prototype,"signatureAlgorithm",void 0);bi([Ci({type:Ke.BitString})],cf.prototype,"signatureValue",void 0);var ff;(function(t){t[t["unmarked"]=1]="unmarked";t[t["unclassified"]=2]="unclassified";t[t["restricted"]=4]="restricted";t[t["confidential"]=8]="confidential";t[t["secret"]=16]="secret";t[t["topSecret"]=32]="topSecret"})(ff||(ff={}));var vf=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(je);var hf=function(){function t(t){if(t===void 0){t={}}this.type="";this.value=new ArrayBuffer(0);Object.assign(this,t)}return t}();bi([Ci({type:Ke.ObjectIdentifier,implicit:true,context:0})],hf.prototype,"type",void 0);bi([Ci({type:Ke.Any,implicit:true,context:1})],hf.prototype,"value",void 0);var df=function(){function t(t){if(t===void 0){t={}}this.policyId="";this.classList=new vf(ff.unclassified);Object.assign(this,t)}return t}();bi([Ci({type:Ke.ObjectIdentifier})],df.prototype,"policyId",void 0);bi([Ci({type:vf,defaultValue:new vf(ff.unclassified)})],df.prototype,"classList",void 0);bi([Ci({type:hf,repeated:"set"})],df.prototype,"securityCategories",void 0);var lf=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:He})],lf.prototype,"cotets",void 0);bi([Ci({type:Ke.ObjectIdentifier})],lf.prototype,"oid",void 0);bi([Ci({type:Ke.Utf8String})],lf.prototype,"string",void 0);var pf=function(){function t(t){if(t===void 0){t={}}this.values=[];Object.assign(this,t)}return t}();bi([Ci({type:Yi,implicit:true,context:0,optional:true})],pf.prototype,"policyAuthority",void 0);bi([Ci({type:lf,repeated:"sequence"})],pf.prototype,"values",void 0);var yf;var Sf=function(){function t(t){if(t===void 0){t={}}this.targetCertificate=new Jc;Object.assign(this,t)}return t}();bi([Ci({type:Jc})],Sf.prototype,"targetCertificate",void 0);bi([Ci({type:ji,optional:true})],Sf.prototype,"targetName",void 0);bi([Ci({type:ef,optional:true})],Sf.prototype,"certDigestInfo",void 0);var Cf=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:ji,context:0,implicit:true})],Cf.prototype,"targetName",void 0);bi([Ci({type:ji,context:1,implicit:true})],Cf.prototype,"targetGroup",void 0);bi([Ci({type:Sf,context:2,implicit:true})],Cf.prototype,"targetCert",void 0);Cf=bi([Si({type:ke.Choice})],Cf);var Af=yf=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,yf.prototype);return i}return e}(wi);Af=yf=bi([Si({type:ke.Sequence,itemType:Cf})],Af);var mf;var gf=mf=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,mf.prototype);return i}return e}(wi);gf=mf=bi([Si({type:ke.Sequence,itemType:Af})],gf);var wf=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:Yi,implicit:true,context:0,optional:true})],wf.prototype,"roleAuthority",void 0);bi([Ci({type:ji,implicit:true,context:1})],wf.prototype,"roleName",void 0);var Ef=function(){function t(t){if(t===void 0){t={}}this.service=new ji;this.ident=new ji;Object.assign(this,t)}return t}();bi([Ci({type:ji})],Ef.prototype,"service",void 0);bi([Ci({type:ji})],Ef.prototype,"ident",void 0);bi([Ci({type:He,optional:true})],Ef.prototype,"authInfo",void 0);var bf="0.4.0.9496";var Pf=t("K","".concat(bf,".6"));var Df=t("u",function(){function t(t){if(t===void 0){t={}}this.codeAuthority=new ji;this.codeId=new ji;this.shortName="";this.shortDescription="";Object.assign(this,t)}return t}());bi([Ci({type:ji,context:0})],Df.prototype,"codeAuthority",void 0);bi([Ci({type:ji,context:1})],Df.prototype,"codeId",void 0);bi([Ci({type:Ke.Utf8String,context:2})],Df.prototype,"shortName",void 0);bi([Ci({type:Ke.Utf8String,context:3})],Df.prototype,"shortDescription",void 0);t("u",Df=bi([Si({type:ke.Sequence})],Df));var _f=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Ri.prototype);return i}return e}(Ri);_f=bi([Si({type:ke.Sequence})],_f);var If=t("S","".concat(bf,".1"));var Bf=t("y",function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Ri.prototype);return i}return e}(_f));t("y",Bf=bi([Si({type:ke.Sequence})],Bf));var xf=t("Q","".concat(bf,".2"));var Tf=t("x",function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Ri.prototype);return i}return e}(_f));t("x",Tf=bi([Si({type:ke.Sequence})],Tf));var Of=t("O","".concat(bf,".3"));var Mf=t("w",function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Ri.prototype);return i}return e}(_f));t("w",Mf=bi([Si({type:ke.Sequence})],Mf));var Rf=t("M","".concat(bf,".4"));var Nf=t("v",function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Ri.prototype);return i}return e}(_f));t("v",Nf=bi([Si({type:ke.Sequence})],Nf));var kf=t("H","".concat(bf,".8"));var Kf=t("I",function(){function t(t){if(t===void 0){t={}}this.location="";this.base=0;this.degree=0;Object.assign(this,t)}t.prototype.toString=function(){return"".concat(this.base," x 10^").concat(this.degree," ").concat(this.location)};return t}());bi([Ci({type:Ke.PrintableString})],Kf.prototype,"location",void 0);bi([Ci({type:Ke.Integer})],Kf.prototype,"base",void 0);bi([Ci({type:Ke.Integer})],Kf.prototype,"degree",void 0);t("I",Kf=bi([Si({type:ke.Sequence})],Kf));var jf=t("G","".concat(bf,".9"));var Hf=t("V",function(){function t(t){if(t===void 0){t={}}this.stars5=0;this.stars4=0;this.stars3=0;this.stars2=0;this.stars1=0;Object.assign(this,t)}return t}());bi([Ci({type:Ke.Integer})],Hf.prototype,"stars5",void 0);bi([Ci({type:Ke.Integer})],Hf.prototype,"stars4",void 0);bi([Ci({type:Ke.Integer})],Hf.prototype,"stars3",void 0);bi([Ci({type:Ke.Integer})],Hf.prototype,"stars2",void 0);bi([Ci({type:Ke.Integer})],Hf.prototype,"stars1",void 0);t("V",Hf=bi([Si({type:ke.Sequence})],Hf));var Uf=t("L","".concat(bf,".5"));var Ff=t("T",function(){function t(t){if(t===void 0){t={}}this.DNBvsDNO=new je(0);this.DNBvsDNT=new je(0);this.DNOvsDNT=new je(0);Object.assign(this,t)}return t}());bi([Ci({type:je,context:0})],Ff.prototype,"DNBvsDNO",void 0);bi([Ci({type:je,context:1})],Ff.prototype,"DNBvsDNT",void 0);bi([Ci({type:je,context:2})],Ff.prototype,"DNOvsDNT",void 0);t("T",Ff=bi([Si({type:ke.Sequence})],Ff));var Lf=t("J","".concat(bf,".7"));var Vf=t("W",function(){function t(t){if(t===void 0){t={}}this.assessmentAuthority=new ji;this.assessmentRef=new ji;this.assessmentLocation=new ji;this.dataStorageTerritory="";this.description="";Object.assign(this,t)}return t}());bi([Ci({type:ji,context:0})],Vf.prototype,"assessmentAuthority",void 0);bi([Ci({type:ji,context:1})],Vf.prototype,"assessmentRef",void 0);bi([Ci({type:ji,context:2})],Vf.prototype,"assessmentLocation",void 0);bi([Ci({type:Ke.PrintableString,context:3})],Vf.prototype,"dataStorageTerritory",void 0);bi([Ci({type:Ke.Utf8String,context:4})],Vf.prototype,"description",void 0);t("W",Vf=bi([Si({type:ke.Sequence})],Vf));var Gf=function(){function t(t){if(t===void 0){t={}}this.issuer=new Ri;this.serialNumber=new ArrayBuffer(0);Object.assign(this,t)}return t}();bi([Ci({type:Ri})],Gf.prototype,"issuer",void 0);bi([Ci({type:Ke.Integer,converter:Ve})],Gf.prototype,"serialNumber",void 0);var Wf=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:un,context:0,implicit:true})],Wf.prototype,"subjectKeyIdentifier",void 0);bi([Ci({type:Gf})],Wf.prototype,"issuerAndSerialNumber",void 0);Wf=bi([Si({type:ke.Choice})],Wf);var Qf;(function(t){t[t["v0"]=0]="v0";t[t["v1"]=1]="v1";t[t["v2"]=2]="v2";t[t["v3"]=3]="v3";t[t["v4"]=4]="v4";t[t["v5"]=5]="v5"})(Qf||(Qf={}));var qf=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Cn);qf=bi([Si({type:ke.Sequence})],qf);var zf=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Cn);zf=bi([Si({type:ke.Sequence})],zf);var Zf=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Cn);Zf=bi([Si({type:ke.Sequence})],Zf);var $f=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Cn);$f=bi([Si({type:ke.Sequence})],$f);var Xf=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Cn);Xf=bi([Si({type:ke.Sequence})],Xf);var Yf=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Cn);Yf=bi([Si({type:ke.Sequence})],Yf);var Jf=function(){function t(t){if(t===void 0){t={}}this.attrType="";this.attrValues=[];Object.assign(this,t)}return t}();bi([Ci({type:Ke.ObjectIdentifier})],Jf.prototype,"attrType",void 0);bi([Ci({type:Ke.Any,repeated:"set"})],Jf.prototype,"attrValues",void 0);var tv;var ev=function(){function t(t){if(t===void 0){t={}}this.version=Qf.v0;this.sid=new Wf;this.digestAlgorithm=new qf;this.signatureAlgorithm=new zf;this.signature=new He;Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer})],ev.prototype,"version",void 0);bi([Ci({type:Wf})],ev.prototype,"sid",void 0);bi([Ci({type:qf})],ev.prototype,"digestAlgorithm",void 0);bi([Ci({type:Jf,repeated:"set",context:0,implicit:true,optional:true})],ev.prototype,"signedAttrs",void 0);bi([Ci({type:zf})],ev.prototype,"signatureAlgorithm",void 0);bi([Ci({type:He})],ev.prototype,"signature",void 0);bi([Ci({type:Jf,repeated:"set",context:1,implicit:true,optional:true})],ev.prototype,"unsignedAttrs",void 0);var iv=tv=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,tv.prototype);return i}return e}(wi);iv=tv=bi([Si({type:ke.Set,itemType:ev})],iv);var rv=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(mn);rv=bi([Si({type:ke.Choice})],rv);var nv=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ev);nv=bi([Si({type:ke.Sequence})],nv);var ov;var av=function(){function t(t){if(t===void 0){t={}}this.otherCertFormat="";this.otherCert=new ArrayBuffer(0);Object.assign(this,t)}return t}();bi([Ci({type:Ke.ObjectIdentifier})],av.prototype,"otherCertFormat",void 0);bi([Ci({type:Ke.Any})],av.prototype,"otherCert",void 0);var sv=t("a3",function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}());bi([Ci({type:_n})],sv.prototype,"certificate",void 0);bi([Ci({type:cf,context:2,implicit:true})],sv.prototype,"v2AttrCert",void 0);bi([Ci({type:av,context:3,implicit:true})],sv.prototype,"other",void 0);t("a3",sv=bi([Si({type:ke.Choice})],sv));var uv=t("a2",ov=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,ov.prototype);return i}return e}(wi));t("a2",uv=ov=bi([Si({type:ke.Set,itemType:sv})],uv));var cv=function(){function t(t){if(t===void 0){t={}}this.contentType="";this.content=new ArrayBuffer(0);Object.assign(this,t)}return t}();t("a4",cv);bi([Ci({type:Ke.ObjectIdentifier})],cv.prototype,"contentType",void 0);bi([Ci({type:Ke.Any,context:0})],cv.prototype,"content",void 0);var fv=t("a0",function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}());bi([Ci({type:He})],fv.prototype,"single",void 0);bi([Ci({type:Ke.Any})],fv.prototype,"any",void 0);t("a0",fv=bi([Si({type:ke.Choice})],fv));var vv=function(){function t(t){if(t===void 0){t={}}this.eContentType="";Object.assign(this,t)}return t}();bi([Ci({type:Ke.ObjectIdentifier})],vv.prototype,"eContentType",void 0);bi([Ci({type:fv,context:0,optional:true})],vv.prototype,"eContent",void 0);var hv=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:He,context:0,implicit:true,optional:true})],hv.prototype,"value",void 0);bi([Ci({type:He,converter:ze,context:0,implicit:true,optional:true,repeated:"sequence"})],hv.prototype,"constructedValue",void 0);hv=bi([Si({type:ke.Choice})],hv);var dv=function(){function t(t){if(t===void 0){t={}}this.contentType="";this.contentEncryptionAlgorithm=new $f;Object.assign(this,t)}return t}();bi([Ci({type:Ke.ObjectIdentifier})],dv.prototype,"contentType",void 0);bi([Ci({type:$f})],dv.prototype,"contentEncryptionAlgorithm",void 0);bi([Ci({type:hv,optional:true})],dv.prototype,"encryptedContent",void 0);var lv=function(){function t(t){if(t===void 0){t={}}this.keyAttrId="";Object.assign(this,t)}return t}();bi([Ci({type:Ke.ObjectIdentifier})],lv.prototype,"keyAttrId",void 0);bi([Ci({type:Ke.Any,optional:true})],lv.prototype,"keyAttr",void 0);var pv;var yv=function(){function t(t){if(t===void 0){t={}}this.subjectKeyIdentifier=new un;Object.assign(this,t)}return t}();bi([Ci({type:un})],yv.prototype,"subjectKeyIdentifier",void 0);bi([Ci({type:Ke.GeneralizedTime,optional:true})],yv.prototype,"date",void 0);bi([Ci({type:lv,optional:true})],yv.prototype,"other",void 0);var Sv=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:yv,context:0,implicit:true,optional:true})],Sv.prototype,"rKeyId",void 0);bi([Ci({type:Gf,optional:true})],Sv.prototype,"issuerAndSerialNumber",void 0);Sv=bi([Si({type:ke.Choice})],Sv);var Cv=function(){function t(t){if(t===void 0){t={}}this.rid=new Sv;this.encryptedKey=new He;Object.assign(this,t)}return t}();bi([Ci({type:Sv})],Cv.prototype,"rid",void 0);bi([Ci({type:He})],Cv.prototype,"encryptedKey",void 0);var Av=pv=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,pv.prototype);return i}return e}(wi);Av=pv=bi([Si({type:ke.Sequence,itemType:Cv})],Av);var mv=function(){function t(t){if(t===void 0){t={}}this.algorithm=new Cn;this.publicKey=new ArrayBuffer(0);Object.assign(this,t)}return t}();bi([Ci({type:Cn})],mv.prototype,"algorithm",void 0);bi([Ci({type:Ke.BitString})],mv.prototype,"publicKey",void 0);var gv=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:un,context:0,implicit:true,optional:true})],gv.prototype,"subjectKeyIdentifier",void 0);bi([Ci({type:mv,context:1,implicit:true,optional:true})],gv.prototype,"originatorKey",void 0);bi([Ci({type:Gf,optional:true})],gv.prototype,"issuerAndSerialNumber",void 0);gv=bi([Si({type:ke.Choice})],gv);var wv=function(){function t(t){if(t===void 0){t={}}this.version=Qf.v3;this.originator=new gv;this.keyEncryptionAlgorithm=new Zf;this.recipientEncryptedKeys=new Av;Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer})],wv.prototype,"version",void 0);bi([Ci({type:gv,context:0})],wv.prototype,"originator",void 0);bi([Ci({type:He,context:1,optional:true})],wv.prototype,"ukm",void 0);bi([Ci({type:Zf})],wv.prototype,"keyEncryptionAlgorithm",void 0);bi([Ci({type:Av})],wv.prototype,"recipientEncryptedKeys",void 0);var Ev=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:un,context:0,implicit:true})],Ev.prototype,"subjectKeyIdentifier",void 0);bi([Ci({type:Gf})],Ev.prototype,"issuerAndSerialNumber",void 0);Ev=bi([Si({type:ke.Choice})],Ev);var bv=function(){function t(t){if(t===void 0){t={}}this.version=Qf.v0;this.rid=new Ev;this.keyEncryptionAlgorithm=new Zf;this.encryptedKey=new He;Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer})],bv.prototype,"version",void 0);bi([Ci({type:Ev})],bv.prototype,"rid",void 0);bi([Ci({type:Zf})],bv.prototype,"keyEncryptionAlgorithm",void 0);bi([Ci({type:He})],bv.prototype,"encryptedKey",void 0);var Pv=function(){function t(t){if(t===void 0){t={}}this.keyIdentifier=new He;Object.assign(this,t)}return t}();bi([Ci({type:He})],Pv.prototype,"keyIdentifier",void 0);bi([Ci({type:Ke.GeneralizedTime,optional:true})],Pv.prototype,"date",void 0);bi([Ci({type:lv,optional:true})],Pv.prototype,"other",void 0);var Dv=function(){function t(t){if(t===void 0){t={}}this.version=Qf.v4;this.kekid=new Pv;this.keyEncryptionAlgorithm=new Zf;this.encryptedKey=new He;Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer})],Dv.prototype,"version",void 0);bi([Ci({type:Pv})],Dv.prototype,"kekid",void 0);bi([Ci({type:Zf})],Dv.prototype,"keyEncryptionAlgorithm",void 0);bi([Ci({type:He})],Dv.prototype,"encryptedKey",void 0);var _v=function(){function t(t){if(t===void 0){t={}}this.version=Qf.v0;this.keyEncryptionAlgorithm=new Zf;this.encryptedKey=new He;Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer})],_v.prototype,"version",void 0);bi([Ci({type:Yf,context:0,optional:true})],_v.prototype,"keyDerivationAlgorithm",void 0);bi([Ci({type:Zf})],_v.prototype,"keyEncryptionAlgorithm",void 0);bi([Ci({type:He})],_v.prototype,"encryptedKey",void 0);var Iv=function(){function t(t){if(t===void 0){t={}}this.oriType="";this.oriValue=new ArrayBuffer(0);Object.assign(this,t)}return t}();bi([Ci({type:Ke.ObjectIdentifier})],Iv.prototype,"oriType",void 0);bi([Ci({type:Ke.Any})],Iv.prototype,"oriValue",void 0);var Bv=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:bv,optional:true})],Bv.prototype,"ktri",void 0);bi([Ci({type:wv,context:1,implicit:true,optional:true})],Bv.prototype,"kari",void 0);bi([Ci({type:Dv,context:2,implicit:true,optional:true})],Bv.prototype,"kekri",void 0);bi([Ci({type:_v,context:3,implicit:true,optional:true})],Bv.prototype,"pwri",void 0);bi([Ci({type:Iv,context:4,implicit:true,optional:true})],Bv.prototype,"ori",void 0);Bv=bi([Si({type:ke.Choice})],Bv);var xv;var Tv=xv=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,xv.prototype);return i}return e}(wi);Tv=xv=bi([Si({type:ke.Set,itemType:Bv})],Tv);var Ov;var Mv=function(){function t(t){if(t===void 0){t={}}this.otherRevInfoFormat="";this.otherRevInfo=new ArrayBuffer(0);Object.assign(this,t)}return t}();bi([Ci({type:Ke.ObjectIdentifier})],Mv.prototype,"otherRevInfoFormat",void 0);bi([Ci({type:Ke.Any})],Mv.prototype,"otherRevInfo",void 0);var Rv=function(){function t(t){if(t===void 0){t={}}this.other=new Mv;Object.assign(this,t)}return t}();bi([Ci({type:Mv,context:1,implicit:true})],Rv.prototype,"other",void 0);Rv=bi([Si({type:ke.Choice})],Rv);var Nv=Ov=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Ov.prototype);return i}return e}(wi);Nv=Ov=bi([Si({type:ke.Set,itemType:Rv})],Nv);var kv=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();bi([Ci({type:uv,context:0,implicit:true,optional:true})],kv.prototype,"certs",void 0);bi([Ci({type:Nv,context:1,implicit:true,optional:true})],kv.prototype,"crls",void 0);var Kv;var jv=Kv=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Kv.prototype);return i}return e}(wi);jv=Kv=bi([Si({type:ke.Set,itemType:Jf})],jv);var Hv=function(){function t(t){if(t===void 0){t={}}this.version=Qf.v0;this.recipientInfos=new Tv;this.encryptedContentInfo=new dv;Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer})],Hv.prototype,"version",void 0);bi([Ci({type:kv,context:0,implicit:true,optional:true})],Hv.prototype,"originatorInfo",void 0);bi([Ci({type:Tv})],Hv.prototype,"recipientInfos",void 0);bi([Ci({type:dv})],Hv.prototype,"encryptedContentInfo",void 0);bi([Ci({type:jv,context:1,implicit:true,optional:true})],Hv.prototype,"unprotectedAttrs",void 0);var Uv;var Fv=Uv=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Uv.prototype);return i}return e}(wi);Fv=Uv=bi([Si({type:ke.Set,itemType:qf})],Fv);var Lv=function(){function t(t){if(t===void 0){t={}}this.version=Qf.v0;this.digestAlgorithms=new Fv;this.encapContentInfo=new vv;this.signerInfos=new iv;Object.assign(this,t)}return t}();t("$",Lv);bi([Ci({type:Ke.Integer})],Lv.prototype,"version",void 0);bi([Ci({type:Fv})],Lv.prototype,"digestAlgorithms",void 0);bi([Ci({type:vv})],Lv.prototype,"encapContentInfo",void 0);bi([Ci({type:uv,context:0,implicit:true,optional:true})],Lv.prototype,"certificates",void 0);bi([Ci({type:Nv,context:1,implicit:true,optional:true})],Lv.prototype,"crls",void 0);bi([Ci({type:iv})],Lv.prototype,"signerInfos",void 0);var Vv;var Gv=function(){function t(t){if(t===void 0){t={}}this.attrId="";this.attrValues=[];Object.assign(t)}return t}();bi([Ci({type:Ke.ObjectIdentifier})],Gv.prototype,"attrId",void 0);bi([Ci({type:Ke.Any,repeated:"set"})],Gv.prototype,"attrValues",void 0);var Wv=Vv=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Vv.prototype);return i}return e}(wi);Wv=Vv=bi([Si({type:ke.Sequence,itemType:Gv})],Wv);var Qv;var qv=Qv=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Qv.prototype);return i}return e}(wi);qv=Qv=bi([Si({type:ke.Sequence,itemType:cv})],qv);var zv=function(){function t(t){if(t===void 0){t={}}this.certId="";this.certValue=new ArrayBuffer(0);Object.assign(this,t)}return t}();bi([Ci({type:Ke.ObjectIdentifier})],zv.prototype,"certId",void 0);bi([Ci({type:Ke.Any,context:0})],zv.prototype,"certValue",void 0);var Zv=function(){function t(t){if(t===void 0){t={}}this.crlId="";this.crltValue=new ArrayBuffer(0);Object.assign(this,t)}return t}();bi([Ci({type:Ke.ObjectIdentifier})],Zv.prototype,"crlId",void 0);bi([Ci({type:Ke.Any,context:0})],Zv.prototype,"crltValue",void 0);var $v=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(jo);$v=bi([Si({type:ke.Sequence})],$v);var Xv=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Mo);Xv=bi([Si({type:ke.Sequence})],Xv);var Yv=function(){function t(t){if(t===void 0){t={}}this.secretTypeId="";this.secretValue=new ArrayBuffer(0);Object.assign(this,t)}return t}();bi([Ci({type:Ke.ObjectIdentifier})],Yv.prototype,"secretTypeId",void 0);bi([Ci({type:Ke.Any,context:0})],Yv.prototype,"secretValue",void 0);var Jv=function(){function t(t){if(t===void 0){t={}}this.mac=new go;this.macSalt=new He;this.iterations=1;Object.assign(this,t)}return t}();bi([Ci({type:go})],Jv.prototype,"mac",void 0);bi([Ci({type:He})],Jv.prototype,"macSalt",void 0);bi([Ci({type:Ke.Integer,defaultValue:1})],Jv.prototype,"iterations",void 0);var th=function(){function t(t){if(t===void 0){t={}}this.version=3;this.authSafe=new cv;this.macData=new Jv;Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer})],th.prototype,"version",void 0);bi([Ci({type:cv})],th.prototype,"authSafe",void 0);bi([Ci({type:Jv,optional:true})],th.prototype,"macData",void 0);var eh;var ih=function(){function t(t){if(t===void 0){t={}}this.bagId="";this.bagValue=new ArrayBuffer(0);Object.assign(this,t)}return t}();bi([Ci({type:Ke.ObjectIdentifier})],ih.prototype,"bagId",void 0);bi([Ci({type:Ke.Any,context:0})],ih.prototype,"bagValue",void 0);bi([Ci({type:Gv,repeated:"set",optional:true})],ih.prototype,"bagAttributes",void 0);var rh=eh=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,eh.prototype);return i}return e}(wi);rh=eh=bi([Si({type:ke.Sequence,itemType:ih})],rh);var nh,oh,ah;var sh="1.2.840.113549.1.9";var uh=t("B","".concat(sh,".2"));var ch=t("F","".concat(sh,".7"));var fh=t("z","".concat(sh,".14"));var vh=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}return t.call(this,e)||this}e.prototype.toString=function(){return this.ia5String||t.prototype.toString.call(this)};return e}(Bi);bi([Ci({type:Ke.IA5String})],vh.prototype,"ia5String",void 0);vh=bi([Si({type:ke.Choice})],vh);var hh=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(cv);hh=bi([Si({type:ke.Sequence})],hh);var dh=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(th);dh=bi([Si({type:ke.Sequence})],dh);var lh=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Mo);lh=bi([Si({type:ke.Sequence})],lh);var ph=function(){function t(t){if(t===void 0){t=""}this.value=t}t.prototype.toString=function(){return this.value};return t}();bi([Ci({type:Ke.IA5String})],ph.prototype,"value",void 0);ph=bi([Si({type:ke.Choice})],ph);var yh=t("U",function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(vh));t("U",yh=bi([Si({type:ke.Choice})],yh));var Sh=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Bi);Sh=bi([Si({type:ke.Choice})],Sh);var Ch=function(){function t(t){if(t===void 0){t=new Date}this.value=t}return t}();bi([Ci({type:Ke.GeneralizedTime})],Ch.prototype,"value",void 0);Ch=bi([Si({type:ke.Choice})],Ch);var Ah=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Bi);Ah=bi([Si({type:ke.Choice})],Ah);var mh=function(){function t(t){if(t===void 0){t="M"}this.value=t}t.prototype.toString=function(){return this.value};return t}();bi([Ci({type:Ke.PrintableString})],mh.prototype,"value",void 0);mh=bi([Si({type:ke.Choice})],mh);var gh=function(){function t(t){if(t===void 0){t=""}this.value=t}t.prototype.toString=function(){return this.value};return t}();bi([Ci({type:Ke.PrintableString})],gh.prototype,"value",void 0);gh=bi([Si({type:ke.Choice})],gh);var wh=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(gh);wh=bi([Si({type:ke.Choice})],wh);var Eh=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Bi);Eh=bi([Si({type:ke.Choice})],Eh);var bh=function(){function t(t){if(t===void 0){t=""}this.value=t}t.prototype.toString=function(){return this.value};return t}();bi([Ci({type:Ke.ObjectIdentifier})],bh.prototype,"value",void 0);bh=bi([Si({type:ke.Choice})],bh);var Ph=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(mn);Ph=bi([Si({type:ke.Choice})],Ph);var Dh=function(){function t(t){if(t===void 0){t=0}this.value=t}t.prototype.toString=function(){return this.value.toString()};return t}();bi([Ci({type:Ke.Integer})],Dh.prototype,"value",void 0);Dh=bi([Si({type:ke.Choice})],Dh);var _h=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ev);_h=bi([Si({type:ke.Sequence})],_h);var Ih=t("t",function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Bi));t("t",Ih=bi([Si({type:ke.Choice})],Ih));var Bh=t("s",nh=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,nh.prototype);return i}return e}(bn));t("s",Bh=nh=bi([Si({type:ke.Sequence})],Bh));var xh=oh=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,oh.prototype);return i}return e}(wi);xh=oh=bi([Si({type:ke.Set,itemType:Jf})],xh);var Th=function(){function t(t){if(t===void 0){t=""}this.value=t}t.prototype.toString=function(){return this.value};return t}();bi([Ci({type:Ke.BmpString})],Th.prototype,"value",void 0);Th=bi([Si({type:ke.Choice})],Th);var Oh=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Cn);Oh=bi([Si({type:ke.Sequence})],Oh);var Mh=ah=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,ah.prototype);return i}return e}(wi);Mh=ah=bi([Si({type:ke.Sequence,itemType:Oh})],Mh);var Rh;var Nh=Rh=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Rh.prototype);return i}return e}(wi);Nh=Rh=bi([Si({type:ke.Sequence,itemType:rn})],Nh);var kh=function(){function t(t){if(t===void 0){t={}}this.version=0;this.subject=new Ri;this.subjectPKInfo=new An;this.attributes=new Nh;Object.assign(this,t)}return t}();bi([Ci({type:Ke.Integer})],kh.prototype,"version",void 0);bi([Ci({type:Ri})],kh.prototype,"subject",void 0);bi([Ci({type:An})],kh.prototype,"subjectPKInfo",void 0);bi([Ci({type:Nh,implicit:true,context:0})],kh.prototype,"attributes",void 0);var Kh=function(){function t(t){if(t===void 0){t={}}this.certificationRequestInfo=new kh;this.signatureAlgorithm=new Cn;this.signature=new ArrayBuffer(0);Object.assign(this,t)}return t}();t("X",Kh);bi([Ci({type:kh})],Kh.prototype,"certificationRequestInfo",void 0);bi([Ci({type:Cn})],Kh.prototype,"signatureAlgorithm",void 0);bi([Ci({type:Ke.BitString})],Kh.prototype,"signature",void 0)}}}));
|
|
142
|
-
//# sourceMappingURL=p-
|
|
141
|
+
*/var qc=t("c",(function(t){if(Gc.isPem(t)){return Gc.decode(t)[0]}if(u.Convert.isHex(t)){return u.Convert.FromHex(t)}if(u.Convert.isBase64(t)){return u.Convert.FromBase64(t)}if(u.Convert.isBase64Url(t)){return u.Convert.FromBase64Url(t)}return u.Convert.FromBinary(t)}));var zc=t("n",(function(t,e){return __awaiter(i,void 0,void 0,(function(){var i;return __generator(this,(function(r){i=Qc.get();if(i.subtle){return[2,i.subtle.digest(t,e)]}return[2,undefined]}))}))}));var Zc=function(){function t(t){if(t===void 0){t={}}this.acIssuer=new ji;this.acSerial=0;this.attrs=[];Object.assign(this,t)}return t}();Ei([Ci({type:ji})],Zc.prototype,"acIssuer",void 0);Ei([Ci({type:Ke.Integer})],Zc.prototype,"acSerial",void 0);Ei([Ci({type:rn,repeated:"sequence"})],Zc.prototype,"attrs",void 0);var $c;var Xc=$c=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,$c.prototype);return i}return e}(wi);Xc=$c=Ei([Si({type:ke.Sequence,itemType:Ke.ObjectIdentifier})],Xc);var Yc=function(){function t(t){if(t===void 0){t={}}this.permitUnSpecified=true;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer,optional:true})],Yc.prototype,"pathLenConstraint",void 0);Ei([Ci({type:Xc,implicit:true,context:0,optional:true})],Yc.prototype,"permittedAttrs",void 0);Ei([Ci({type:Xc,implicit:true,context:1,optional:true})],Yc.prototype,"excludedAttrs",void 0);Ei([Ci({type:Ke.Boolean,defaultValue:true})],Yc.prototype,"permitUnSpecified",void 0);var Jc=function(){function t(t){if(t===void 0){t={}}this.issuer=new Yi;this.serial=new ArrayBuffer(0);this.issuerUID=new ArrayBuffer(0);Object.assign(this,t)}return t}();Ei([Ci({type:Yi})],Jc.prototype,"issuer",void 0);Ei([Ci({type:Ke.Integer,converter:Ve})],Jc.prototype,"serial",void 0);Ei([Ci({type:Ke.BitString,optional:true})],Jc.prototype,"issuerUID",void 0);var tf;(function(t){t[t["publicKey"]=0]="publicKey";t[t["publicKeyCert"]=1]="publicKeyCert";t[t["otherObjectTypes"]=2]="otherObjectTypes"})(tf||(tf={}));var ef=function(){function t(t){if(t===void 0){t={}}this.digestedObjectType=tf.publicKey;this.digestAlgorithm=new Cn;this.objectDigest=new ArrayBuffer(0);Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Enumerated})],ef.prototype,"digestedObjectType",void 0);Ei([Ci({type:Ke.ObjectIdentifier,optional:true})],ef.prototype,"otherObjectTypeID",void 0);Ei([Ci({type:Cn})],ef.prototype,"digestAlgorithm",void 0);Ei([Ci({type:Ke.BitString})],ef.prototype,"objectDigest",void 0);var rf=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:Yi,optional:true})],rf.prototype,"issuerName",void 0);Ei([Ci({type:Jc,context:0,implicit:true,optional:true})],rf.prototype,"baseCertificateID",void 0);Ei([Ci({type:ef,context:1,implicit:true,optional:true})],rf.prototype,"objectDigestInfo",void 0);var nf=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:ji,repeated:"sequence"})],nf.prototype,"v1Form",void 0);Ei([Ci({type:rf,context:0,implicit:true})],nf.prototype,"v2Form",void 0);nf=Ei([Si({type:ke.Choice})],nf);var of=function(){function t(t){if(t===void 0){t={}}this.notBeforeTime=new Date;this.notAfterTime=new Date;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.GeneralizedTime})],of.prototype,"notBeforeTime",void 0);Ei([Ci({type:Ke.GeneralizedTime})],of.prototype,"notAfterTime",void 0);var af=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:Jc,implicit:true,context:0,optional:true})],af.prototype,"baseCertificateID",void 0);Ei([Ci({type:Yi,implicit:true,context:1,optional:true})],af.prototype,"entityName",void 0);Ei([Ci({type:ef,implicit:true,context:2,optional:true})],af.prototype,"objectDigestInfo",void 0);var sf;(function(t){t[t["v2"]=1]="v2"})(sf||(sf={}));var uf=function(){function t(t){if(t===void 0){t={}}this.version=sf.v2;this.holder=new af;this.issuer=new nf;this.signature=new Cn;this.serialNumber=new ArrayBuffer(0);this.attrCertValidityPeriod=new of;this.attributes=[];Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer})],uf.prototype,"version",void 0);Ei([Ci({type:af})],uf.prototype,"holder",void 0);Ei([Ci({type:nf})],uf.prototype,"issuer",void 0);Ei([Ci({type:Cn})],uf.prototype,"signature",void 0);Ei([Ci({type:Ke.Integer,converter:Ve})],uf.prototype,"serialNumber",void 0);Ei([Ci({type:of})],uf.prototype,"attrCertValidityPeriod",void 0);Ei([Ci({type:rn,repeated:"sequence"})],uf.prototype,"attributes",void 0);Ei([Ci({type:Ke.BitString,optional:true})],uf.prototype,"issuerUniqueID",void 0);Ei([Ci({type:En,optional:true})],uf.prototype,"extensions",void 0);var cf=function(){function t(t){if(t===void 0){t={}}this.acinfo=new uf;this.signatureAlgorithm=new Cn;this.signatureValue=new ArrayBuffer(0);Object.assign(this,t)}return t}();t("o",cf);Ei([Ci({type:uf})],cf.prototype,"acinfo",void 0);Ei([Ci({type:Cn})],cf.prototype,"signatureAlgorithm",void 0);Ei([Ci({type:Ke.BitString})],cf.prototype,"signatureValue",void 0);var ff;(function(t){t[t["unmarked"]=1]="unmarked";t[t["unclassified"]=2]="unclassified";t[t["restricted"]=4]="restricted";t[t["confidential"]=8]="confidential";t[t["secret"]=16]="secret";t[t["topSecret"]=32]="topSecret"})(ff||(ff={}));var vf=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(je);var hf=function(){function t(t){if(t===void 0){t={}}this.type="";this.value=new ArrayBuffer(0);Object.assign(this,t)}return t}();Ei([Ci({type:Ke.ObjectIdentifier,implicit:true,context:0})],hf.prototype,"type",void 0);Ei([Ci({type:Ke.Any,implicit:true,context:1})],hf.prototype,"value",void 0);var df=function(){function t(t){if(t===void 0){t={}}this.policyId="";this.classList=new vf(ff.unclassified);Object.assign(this,t)}return t}();Ei([Ci({type:Ke.ObjectIdentifier})],df.prototype,"policyId",void 0);Ei([Ci({type:vf,defaultValue:new vf(ff.unclassified)})],df.prototype,"classList",void 0);Ei([Ci({type:hf,repeated:"set"})],df.prototype,"securityCategories",void 0);var lf=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:He})],lf.prototype,"cotets",void 0);Ei([Ci({type:Ke.ObjectIdentifier})],lf.prototype,"oid",void 0);Ei([Ci({type:Ke.Utf8String})],lf.prototype,"string",void 0);var pf=function(){function t(t){if(t===void 0){t={}}this.values=[];Object.assign(this,t)}return t}();Ei([Ci({type:Yi,implicit:true,context:0,optional:true})],pf.prototype,"policyAuthority",void 0);Ei([Ci({type:lf,repeated:"sequence"})],pf.prototype,"values",void 0);var yf;var Sf=function(){function t(t){if(t===void 0){t={}}this.targetCertificate=new Jc;Object.assign(this,t)}return t}();Ei([Ci({type:Jc})],Sf.prototype,"targetCertificate",void 0);Ei([Ci({type:ji,optional:true})],Sf.prototype,"targetName",void 0);Ei([Ci({type:ef,optional:true})],Sf.prototype,"certDigestInfo",void 0);var Cf=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:ji,context:0,implicit:true})],Cf.prototype,"targetName",void 0);Ei([Ci({type:ji,context:1,implicit:true})],Cf.prototype,"targetGroup",void 0);Ei([Ci({type:Sf,context:2,implicit:true})],Cf.prototype,"targetCert",void 0);Cf=Ei([Si({type:ke.Choice})],Cf);var Af=yf=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,yf.prototype);return i}return e}(wi);Af=yf=Ei([Si({type:ke.Sequence,itemType:Cf})],Af);var mf;var gf=mf=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,mf.prototype);return i}return e}(wi);gf=mf=Ei([Si({type:ke.Sequence,itemType:Af})],gf);var wf=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:Yi,implicit:true,context:0,optional:true})],wf.prototype,"roleAuthority",void 0);Ei([Ci({type:ji,implicit:true,context:1})],wf.prototype,"roleName",void 0);var bf=function(){function t(t){if(t===void 0){t={}}this.service=new ji;this.ident=new ji;Object.assign(this,t)}return t}();Ei([Ci({type:ji})],bf.prototype,"service",void 0);Ei([Ci({type:ji})],bf.prototype,"ident",void 0);Ei([Ci({type:He,optional:true})],bf.prototype,"authInfo",void 0);var Ef="0.4.0.9496";var Pf=t("K","".concat(Ef,".6"));var Df=t("u",function(){function t(t){if(t===void 0){t={}}this.codeAuthority=new ji;this.codeId=new ji;this.shortName="";this.shortDescription="";Object.assign(this,t)}return t}());Ei([Ci({type:ji,context:0})],Df.prototype,"codeAuthority",void 0);Ei([Ci({type:ji,context:1})],Df.prototype,"codeId",void 0);Ei([Ci({type:Ke.Utf8String,context:2})],Df.prototype,"shortName",void 0);Ei([Ci({type:Ke.Utf8String,context:3})],Df.prototype,"shortDescription",void 0);t("u",Df=Ei([Si({type:ke.Sequence})],Df));var _f=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Ri.prototype);return i}return e}(Ri);_f=Ei([Si({type:ke.Sequence})],_f);var If=t("S","".concat(Ef,".1"));var Bf=t("y",function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Ri.prototype);return i}return e}(_f));t("y",Bf=Ei([Si({type:ke.Sequence})],Bf));var xf=t("Q","".concat(Ef,".2"));var Tf=t("x",function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Ri.prototype);return i}return e}(_f));t("x",Tf=Ei([Si({type:ke.Sequence})],Tf));var Of=t("O","".concat(Ef,".3"));var Mf=t("w",function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Ri.prototype);return i}return e}(_f));t("w",Mf=Ei([Si({type:ke.Sequence})],Mf));var Rf=t("M","".concat(Ef,".4"));var Nf=t("v",function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Ri.prototype);return i}return e}(_f));t("v",Nf=Ei([Si({type:ke.Sequence})],Nf));var kf=t("H","".concat(Ef,".8"));var Kf=t("I",function(){function t(t){if(t===void 0){t={}}this.location="";this.base=0;this.degree=0;Object.assign(this,t)}t.prototype.toString=function(){return"".concat(this.base," x 10^").concat(this.degree," ").concat(this.location)};return t}());Ei([Ci({type:Ke.PrintableString})],Kf.prototype,"location",void 0);Ei([Ci({type:Ke.Integer})],Kf.prototype,"base",void 0);Ei([Ci({type:Ke.Integer})],Kf.prototype,"degree",void 0);t("I",Kf=Ei([Si({type:ke.Sequence})],Kf));var jf=t("G","".concat(Ef,".9"));var Hf=t("V",function(){function t(t){if(t===void 0){t={}}this.stars5=0;this.stars4=0;this.stars3=0;this.stars2=0;this.stars1=0;Object.assign(this,t)}return t}());Ei([Ci({type:Ke.Integer})],Hf.prototype,"stars5",void 0);Ei([Ci({type:Ke.Integer})],Hf.prototype,"stars4",void 0);Ei([Ci({type:Ke.Integer})],Hf.prototype,"stars3",void 0);Ei([Ci({type:Ke.Integer})],Hf.prototype,"stars2",void 0);Ei([Ci({type:Ke.Integer})],Hf.prototype,"stars1",void 0);t("V",Hf=Ei([Si({type:ke.Sequence})],Hf));var Uf=t("L","".concat(Ef,".5"));var Ff=t("T",function(){function t(t){if(t===void 0){t={}}this.DNBvsDNO=new je(0);this.DNBvsDNT=new je(0);this.DNOvsDNT=new je(0);Object.assign(this,t)}return t}());Ei([Ci({type:je,context:0})],Ff.prototype,"DNBvsDNO",void 0);Ei([Ci({type:je,context:1})],Ff.prototype,"DNBvsDNT",void 0);Ei([Ci({type:je,context:2})],Ff.prototype,"DNOvsDNT",void 0);t("T",Ff=Ei([Si({type:ke.Sequence})],Ff));var Lf=t("J","".concat(Ef,".7"));var Vf=t("W",function(){function t(t){if(t===void 0){t={}}this.assessmentAuthority=new ji;this.assessmentRef=new ji;this.assessmentLocation=new ji;this.dataStorageTerritory="";this.description="";Object.assign(this,t)}return t}());Ei([Ci({type:ji,context:0})],Vf.prototype,"assessmentAuthority",void 0);Ei([Ci({type:ji,context:1})],Vf.prototype,"assessmentRef",void 0);Ei([Ci({type:ji,context:2})],Vf.prototype,"assessmentLocation",void 0);Ei([Ci({type:Ke.PrintableString,context:3})],Vf.prototype,"dataStorageTerritory",void 0);Ei([Ci({type:Ke.Utf8String,context:4})],Vf.prototype,"description",void 0);t("W",Vf=Ei([Si({type:ke.Sequence})],Vf));var Gf=function(){function t(t){if(t===void 0){t={}}this.issuer=new Ri;this.serialNumber=new ArrayBuffer(0);Object.assign(this,t)}return t}();Ei([Ci({type:Ri})],Gf.prototype,"issuer",void 0);Ei([Ci({type:Ke.Integer,converter:Ve})],Gf.prototype,"serialNumber",void 0);var Wf=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:un,context:0,implicit:true})],Wf.prototype,"subjectKeyIdentifier",void 0);Ei([Ci({type:Gf})],Wf.prototype,"issuerAndSerialNumber",void 0);Wf=Ei([Si({type:ke.Choice})],Wf);var Qf;(function(t){t[t["v0"]=0]="v0";t[t["v1"]=1]="v1";t[t["v2"]=2]="v2";t[t["v3"]=3]="v3";t[t["v4"]=4]="v4";t[t["v5"]=5]="v5"})(Qf||(Qf={}));var qf=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Cn);qf=Ei([Si({type:ke.Sequence})],qf);var zf=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Cn);zf=Ei([Si({type:ke.Sequence})],zf);var Zf=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Cn);Zf=Ei([Si({type:ke.Sequence})],Zf);var $f=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Cn);$f=Ei([Si({type:ke.Sequence})],$f);var Xf=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Cn);Xf=Ei([Si({type:ke.Sequence})],Xf);var Yf=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Cn);Yf=Ei([Si({type:ke.Sequence})],Yf);var Jf=function(){function t(t){if(t===void 0){t={}}this.attrType="";this.attrValues=[];Object.assign(this,t)}return t}();Ei([Ci({type:Ke.ObjectIdentifier})],Jf.prototype,"attrType",void 0);Ei([Ci({type:Ke.Any,repeated:"set"})],Jf.prototype,"attrValues",void 0);var tv;var ev=function(){function t(t){if(t===void 0){t={}}this.version=Qf.v0;this.sid=new Wf;this.digestAlgorithm=new qf;this.signatureAlgorithm=new zf;this.signature=new He;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer})],ev.prototype,"version",void 0);Ei([Ci({type:Wf})],ev.prototype,"sid",void 0);Ei([Ci({type:qf})],ev.prototype,"digestAlgorithm",void 0);Ei([Ci({type:Jf,repeated:"set",context:0,implicit:true,optional:true})],ev.prototype,"signedAttrs",void 0);Ei([Ci({type:zf})],ev.prototype,"signatureAlgorithm",void 0);Ei([Ci({type:He})],ev.prototype,"signature",void 0);Ei([Ci({type:Jf,repeated:"set",context:1,implicit:true,optional:true})],ev.prototype,"unsignedAttrs",void 0);var iv=tv=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,tv.prototype);return i}return e}(wi);iv=tv=Ei([Si({type:ke.Set,itemType:ev})],iv);var rv=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(mn);rv=Ei([Si({type:ke.Choice})],rv);var nv=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ev);nv=Ei([Si({type:ke.Sequence})],nv);var ov;var av=function(){function t(t){if(t===void 0){t={}}this.otherCertFormat="";this.otherCert=new ArrayBuffer(0);Object.assign(this,t)}return t}();Ei([Ci({type:Ke.ObjectIdentifier})],av.prototype,"otherCertFormat",void 0);Ei([Ci({type:Ke.Any})],av.prototype,"otherCert",void 0);var sv=t("a3",function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}());Ei([Ci({type:_n})],sv.prototype,"certificate",void 0);Ei([Ci({type:cf,context:2,implicit:true})],sv.prototype,"v2AttrCert",void 0);Ei([Ci({type:av,context:3,implicit:true})],sv.prototype,"other",void 0);t("a3",sv=Ei([Si({type:ke.Choice})],sv));var uv=t("a2",ov=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,ov.prototype);return i}return e}(wi));t("a2",uv=ov=Ei([Si({type:ke.Set,itemType:sv})],uv));var cv=function(){function t(t){if(t===void 0){t={}}this.contentType="";this.content=new ArrayBuffer(0);Object.assign(this,t)}return t}();t("a4",cv);Ei([Ci({type:Ke.ObjectIdentifier})],cv.prototype,"contentType",void 0);Ei([Ci({type:Ke.Any,context:0})],cv.prototype,"content",void 0);var fv=t("a0",function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}());Ei([Ci({type:He})],fv.prototype,"single",void 0);Ei([Ci({type:Ke.Any})],fv.prototype,"any",void 0);t("a0",fv=Ei([Si({type:ke.Choice})],fv));var vv=function(){function t(t){if(t===void 0){t={}}this.eContentType="";Object.assign(this,t)}return t}();Ei([Ci({type:Ke.ObjectIdentifier})],vv.prototype,"eContentType",void 0);Ei([Ci({type:fv,context:0,optional:true})],vv.prototype,"eContent",void 0);var hv=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:He,context:0,implicit:true,optional:true})],hv.prototype,"value",void 0);Ei([Ci({type:He,converter:ze,context:0,implicit:true,optional:true,repeated:"sequence"})],hv.prototype,"constructedValue",void 0);hv=Ei([Si({type:ke.Choice})],hv);var dv=function(){function t(t){if(t===void 0){t={}}this.contentType="";this.contentEncryptionAlgorithm=new $f;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.ObjectIdentifier})],dv.prototype,"contentType",void 0);Ei([Ci({type:$f})],dv.prototype,"contentEncryptionAlgorithm",void 0);Ei([Ci({type:hv,optional:true})],dv.prototype,"encryptedContent",void 0);var lv=function(){function t(t){if(t===void 0){t={}}this.keyAttrId="";Object.assign(this,t)}return t}();Ei([Ci({type:Ke.ObjectIdentifier})],lv.prototype,"keyAttrId",void 0);Ei([Ci({type:Ke.Any,optional:true})],lv.prototype,"keyAttr",void 0);var pv;var yv=function(){function t(t){if(t===void 0){t={}}this.subjectKeyIdentifier=new un;Object.assign(this,t)}return t}();Ei([Ci({type:un})],yv.prototype,"subjectKeyIdentifier",void 0);Ei([Ci({type:Ke.GeneralizedTime,optional:true})],yv.prototype,"date",void 0);Ei([Ci({type:lv,optional:true})],yv.prototype,"other",void 0);var Sv=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:yv,context:0,implicit:true,optional:true})],Sv.prototype,"rKeyId",void 0);Ei([Ci({type:Gf,optional:true})],Sv.prototype,"issuerAndSerialNumber",void 0);Sv=Ei([Si({type:ke.Choice})],Sv);var Cv=function(){function t(t){if(t===void 0){t={}}this.rid=new Sv;this.encryptedKey=new He;Object.assign(this,t)}return t}();Ei([Ci({type:Sv})],Cv.prototype,"rid",void 0);Ei([Ci({type:He})],Cv.prototype,"encryptedKey",void 0);var Av=pv=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,pv.prototype);return i}return e}(wi);Av=pv=Ei([Si({type:ke.Sequence,itemType:Cv})],Av);var mv=function(){function t(t){if(t===void 0){t={}}this.algorithm=new Cn;this.publicKey=new ArrayBuffer(0);Object.assign(this,t)}return t}();Ei([Ci({type:Cn})],mv.prototype,"algorithm",void 0);Ei([Ci({type:Ke.BitString})],mv.prototype,"publicKey",void 0);var gv=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:un,context:0,implicit:true,optional:true})],gv.prototype,"subjectKeyIdentifier",void 0);Ei([Ci({type:mv,context:1,implicit:true,optional:true})],gv.prototype,"originatorKey",void 0);Ei([Ci({type:Gf,optional:true})],gv.prototype,"issuerAndSerialNumber",void 0);gv=Ei([Si({type:ke.Choice})],gv);var wv=function(){function t(t){if(t===void 0){t={}}this.version=Qf.v3;this.originator=new gv;this.keyEncryptionAlgorithm=new Zf;this.recipientEncryptedKeys=new Av;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer})],wv.prototype,"version",void 0);Ei([Ci({type:gv,context:0})],wv.prototype,"originator",void 0);Ei([Ci({type:He,context:1,optional:true})],wv.prototype,"ukm",void 0);Ei([Ci({type:Zf})],wv.prototype,"keyEncryptionAlgorithm",void 0);Ei([Ci({type:Av})],wv.prototype,"recipientEncryptedKeys",void 0);var bv=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:un,context:0,implicit:true})],bv.prototype,"subjectKeyIdentifier",void 0);Ei([Ci({type:Gf})],bv.prototype,"issuerAndSerialNumber",void 0);bv=Ei([Si({type:ke.Choice})],bv);var Ev=function(){function t(t){if(t===void 0){t={}}this.version=Qf.v0;this.rid=new bv;this.keyEncryptionAlgorithm=new Zf;this.encryptedKey=new He;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer})],Ev.prototype,"version",void 0);Ei([Ci({type:bv})],Ev.prototype,"rid",void 0);Ei([Ci({type:Zf})],Ev.prototype,"keyEncryptionAlgorithm",void 0);Ei([Ci({type:He})],Ev.prototype,"encryptedKey",void 0);var Pv=function(){function t(t){if(t===void 0){t={}}this.keyIdentifier=new He;Object.assign(this,t)}return t}();Ei([Ci({type:He})],Pv.prototype,"keyIdentifier",void 0);Ei([Ci({type:Ke.GeneralizedTime,optional:true})],Pv.prototype,"date",void 0);Ei([Ci({type:lv,optional:true})],Pv.prototype,"other",void 0);var Dv=function(){function t(t){if(t===void 0){t={}}this.version=Qf.v4;this.kekid=new Pv;this.keyEncryptionAlgorithm=new Zf;this.encryptedKey=new He;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer})],Dv.prototype,"version",void 0);Ei([Ci({type:Pv})],Dv.prototype,"kekid",void 0);Ei([Ci({type:Zf})],Dv.prototype,"keyEncryptionAlgorithm",void 0);Ei([Ci({type:He})],Dv.prototype,"encryptedKey",void 0);var _v=function(){function t(t){if(t===void 0){t={}}this.version=Qf.v0;this.keyEncryptionAlgorithm=new Zf;this.encryptedKey=new He;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer})],_v.prototype,"version",void 0);Ei([Ci({type:Yf,context:0,optional:true})],_v.prototype,"keyDerivationAlgorithm",void 0);Ei([Ci({type:Zf})],_v.prototype,"keyEncryptionAlgorithm",void 0);Ei([Ci({type:He})],_v.prototype,"encryptedKey",void 0);var Iv=function(){function t(t){if(t===void 0){t={}}this.oriType="";this.oriValue=new ArrayBuffer(0);Object.assign(this,t)}return t}();Ei([Ci({type:Ke.ObjectIdentifier})],Iv.prototype,"oriType",void 0);Ei([Ci({type:Ke.Any})],Iv.prototype,"oriValue",void 0);var Bv=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:Ev,optional:true})],Bv.prototype,"ktri",void 0);Ei([Ci({type:wv,context:1,implicit:true,optional:true})],Bv.prototype,"kari",void 0);Ei([Ci({type:Dv,context:2,implicit:true,optional:true})],Bv.prototype,"kekri",void 0);Ei([Ci({type:_v,context:3,implicit:true,optional:true})],Bv.prototype,"pwri",void 0);Ei([Ci({type:Iv,context:4,implicit:true,optional:true})],Bv.prototype,"ori",void 0);Bv=Ei([Si({type:ke.Choice})],Bv);var xv;var Tv=xv=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,xv.prototype);return i}return e}(wi);Tv=xv=Ei([Si({type:ke.Set,itemType:Bv})],Tv);var Ov;var Mv=function(){function t(t){if(t===void 0){t={}}this.otherRevInfoFormat="";this.otherRevInfo=new ArrayBuffer(0);Object.assign(this,t)}return t}();Ei([Ci({type:Ke.ObjectIdentifier})],Mv.prototype,"otherRevInfoFormat",void 0);Ei([Ci({type:Ke.Any})],Mv.prototype,"otherRevInfo",void 0);var Rv=function(){function t(t){if(t===void 0){t={}}this.other=new Mv;Object.assign(this,t)}return t}();Ei([Ci({type:Mv,context:1,implicit:true})],Rv.prototype,"other",void 0);Rv=Ei([Si({type:ke.Choice})],Rv);var Nv=Ov=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Ov.prototype);return i}return e}(wi);Nv=Ov=Ei([Si({type:ke.Set,itemType:Rv})],Nv);var kv=function(){function t(t){if(t===void 0){t={}}Object.assign(this,t)}return t}();Ei([Ci({type:uv,context:0,implicit:true,optional:true})],kv.prototype,"certs",void 0);Ei([Ci({type:Nv,context:1,implicit:true,optional:true})],kv.prototype,"crls",void 0);var Kv;var jv=Kv=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Kv.prototype);return i}return e}(wi);jv=Kv=Ei([Si({type:ke.Set,itemType:Jf})],jv);var Hv=function(){function t(t){if(t===void 0){t={}}this.version=Qf.v0;this.recipientInfos=new Tv;this.encryptedContentInfo=new dv;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer})],Hv.prototype,"version",void 0);Ei([Ci({type:kv,context:0,implicit:true,optional:true})],Hv.prototype,"originatorInfo",void 0);Ei([Ci({type:Tv})],Hv.prototype,"recipientInfos",void 0);Ei([Ci({type:dv})],Hv.prototype,"encryptedContentInfo",void 0);Ei([Ci({type:jv,context:1,implicit:true,optional:true})],Hv.prototype,"unprotectedAttrs",void 0);var Uv;var Fv=Uv=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Uv.prototype);return i}return e}(wi);Fv=Uv=Ei([Si({type:ke.Set,itemType:qf})],Fv);var Lv=function(){function t(t){if(t===void 0){t={}}this.version=Qf.v0;this.digestAlgorithms=new Fv;this.encapContentInfo=new vv;this.signerInfos=new iv;Object.assign(this,t)}return t}();t("$",Lv);Ei([Ci({type:Ke.Integer})],Lv.prototype,"version",void 0);Ei([Ci({type:Fv})],Lv.prototype,"digestAlgorithms",void 0);Ei([Ci({type:vv})],Lv.prototype,"encapContentInfo",void 0);Ei([Ci({type:uv,context:0,implicit:true,optional:true})],Lv.prototype,"certificates",void 0);Ei([Ci({type:Nv,context:1,implicit:true,optional:true})],Lv.prototype,"crls",void 0);Ei([Ci({type:iv})],Lv.prototype,"signerInfos",void 0);var Vv;var Gv=function(){function t(t){if(t===void 0){t={}}this.attrId="";this.attrValues=[];Object.assign(t)}return t}();Ei([Ci({type:Ke.ObjectIdentifier})],Gv.prototype,"attrId",void 0);Ei([Ci({type:Ke.Any,repeated:"set"})],Gv.prototype,"attrValues",void 0);var Wv=Vv=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Vv.prototype);return i}return e}(wi);Wv=Vv=Ei([Si({type:ke.Sequence,itemType:Gv})],Wv);var Qv;var qv=Qv=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Qv.prototype);return i}return e}(wi);qv=Qv=Ei([Si({type:ke.Sequence,itemType:cv})],qv);var zv=function(){function t(t){if(t===void 0){t={}}this.certId="";this.certValue=new ArrayBuffer(0);Object.assign(this,t)}return t}();Ei([Ci({type:Ke.ObjectIdentifier})],zv.prototype,"certId",void 0);Ei([Ci({type:Ke.Any,context:0})],zv.prototype,"certValue",void 0);var Zv=function(){function t(t){if(t===void 0){t={}}this.crlId="";this.crltValue=new ArrayBuffer(0);Object.assign(this,t)}return t}();Ei([Ci({type:Ke.ObjectIdentifier})],Zv.prototype,"crlId",void 0);Ei([Ci({type:Ke.Any,context:0})],Zv.prototype,"crltValue",void 0);var $v=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(jo);$v=Ei([Si({type:ke.Sequence})],$v);var Xv=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Mo);Xv=Ei([Si({type:ke.Sequence})],Xv);var Yv=function(){function t(t){if(t===void 0){t={}}this.secretTypeId="";this.secretValue=new ArrayBuffer(0);Object.assign(this,t)}return t}();Ei([Ci({type:Ke.ObjectIdentifier})],Yv.prototype,"secretTypeId",void 0);Ei([Ci({type:Ke.Any,context:0})],Yv.prototype,"secretValue",void 0);var Jv=function(){function t(t){if(t===void 0){t={}}this.mac=new go;this.macSalt=new He;this.iterations=1;Object.assign(this,t)}return t}();Ei([Ci({type:go})],Jv.prototype,"mac",void 0);Ei([Ci({type:He})],Jv.prototype,"macSalt",void 0);Ei([Ci({type:Ke.Integer,defaultValue:1})],Jv.prototype,"iterations",void 0);var th=function(){function t(t){if(t===void 0){t={}}this.version=3;this.authSafe=new cv;this.macData=new Jv;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer})],th.prototype,"version",void 0);Ei([Ci({type:cv})],th.prototype,"authSafe",void 0);Ei([Ci({type:Jv,optional:true})],th.prototype,"macData",void 0);var eh;var ih=function(){function t(t){if(t===void 0){t={}}this.bagId="";this.bagValue=new ArrayBuffer(0);Object.assign(this,t)}return t}();Ei([Ci({type:Ke.ObjectIdentifier})],ih.prototype,"bagId",void 0);Ei([Ci({type:Ke.Any,context:0})],ih.prototype,"bagValue",void 0);Ei([Ci({type:Gv,repeated:"set",optional:true})],ih.prototype,"bagAttributes",void 0);var rh=eh=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,eh.prototype);return i}return e}(wi);rh=eh=Ei([Si({type:ke.Sequence,itemType:ih})],rh);var nh,oh,ah;var sh="1.2.840.113549.1.9";var uh=t("B","".concat(sh,".2"));var ch=t("F","".concat(sh,".7"));var fh=t("z","".concat(sh,".14"));var vh=function(t){__extends(e,t);function e(e){if(e===void 0){e={}}return t.call(this,e)||this}e.prototype.toString=function(){return this.ia5String||t.prototype.toString.call(this)};return e}(Bi);Ei([Ci({type:Ke.IA5String})],vh.prototype,"ia5String",void 0);vh=Ei([Si({type:ke.Choice})],vh);var hh=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(cv);hh=Ei([Si({type:ke.Sequence})],hh);var dh=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(th);dh=Ei([Si({type:ke.Sequence})],dh);var lh=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Mo);lh=Ei([Si({type:ke.Sequence})],lh);var ph=function(){function t(t){if(t===void 0){t=""}this.value=t}t.prototype.toString=function(){return this.value};return t}();Ei([Ci({type:Ke.IA5String})],ph.prototype,"value",void 0);ph=Ei([Si({type:ke.Choice})],ph);var yh=t("U",function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(vh));t("U",yh=Ei([Si({type:ke.Choice})],yh));var Sh=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Bi);Sh=Ei([Si({type:ke.Choice})],Sh);var Ch=function(){function t(t){if(t===void 0){t=new Date}this.value=t}return t}();Ei([Ci({type:Ke.GeneralizedTime})],Ch.prototype,"value",void 0);Ch=Ei([Si({type:ke.Choice})],Ch);var Ah=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Bi);Ah=Ei([Si({type:ke.Choice})],Ah);var mh=function(){function t(t){if(t===void 0){t="M"}this.value=t}t.prototype.toString=function(){return this.value};return t}();Ei([Ci({type:Ke.PrintableString})],mh.prototype,"value",void 0);mh=Ei([Si({type:ke.Choice})],mh);var gh=function(){function t(t){if(t===void 0){t=""}this.value=t}t.prototype.toString=function(){return this.value};return t}();Ei([Ci({type:Ke.PrintableString})],gh.prototype,"value",void 0);gh=Ei([Si({type:ke.Choice})],gh);var wh=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(gh);wh=Ei([Si({type:ke.Choice})],wh);var bh=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Bi);bh=Ei([Si({type:ke.Choice})],bh);var Eh=function(){function t(t){if(t===void 0){t=""}this.value=t}t.prototype.toString=function(){return this.value};return t}();Ei([Ci({type:Ke.ObjectIdentifier})],Eh.prototype,"value",void 0);Eh=Ei([Si({type:ke.Choice})],Eh);var Ph=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(mn);Ph=Ei([Si({type:ke.Choice})],Ph);var Dh=function(){function t(t){if(t===void 0){t=0}this.value=t}t.prototype.toString=function(){return this.value.toString()};return t}();Ei([Ci({type:Ke.Integer})],Dh.prototype,"value",void 0);Dh=Ei([Si({type:ke.Choice})],Dh);var _h=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ev);_h=Ei([Si({type:ke.Sequence})],_h);var Ih=t("t",function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Bi));t("t",Ih=Ei([Si({type:ke.Choice})],Ih));var Bh=t("s",nh=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,nh.prototype);return i}return e}(En));t("s",Bh=nh=Ei([Si({type:ke.Sequence})],Bh));var xh=oh=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,oh.prototype);return i}return e}(wi);xh=oh=Ei([Si({type:ke.Set,itemType:Jf})],xh);var Th=function(){function t(t){if(t===void 0){t=""}this.value=t}t.prototype.toString=function(){return this.value};return t}();Ei([Ci({type:Ke.BmpString})],Th.prototype,"value",void 0);Th=Ei([Si({type:ke.Choice})],Th);var Oh=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Cn);Oh=Ei([Si({type:ke.Sequence})],Oh);var Mh=ah=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,ah.prototype);return i}return e}(wi);Mh=ah=Ei([Si({type:ke.Sequence,itemType:Oh})],Mh);var Rh;var Nh=Rh=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;Object.setPrototypeOf(i,Rh.prototype);return i}return e}(wi);Nh=Rh=Ei([Si({type:ke.Sequence,itemType:rn})],Nh);var kh=function(){function t(t){if(t===void 0){t={}}this.version=0;this.subject=new Ri;this.subjectPKInfo=new An;this.attributes=new Nh;Object.assign(this,t)}return t}();Ei([Ci({type:Ke.Integer})],kh.prototype,"version",void 0);Ei([Ci({type:Ri})],kh.prototype,"subject",void 0);Ei([Ci({type:An})],kh.prototype,"subjectPKInfo",void 0);Ei([Ci({type:Nh,implicit:true,context:0})],kh.prototype,"attributes",void 0);var Kh=function(){function t(t){if(t===void 0){t={}}this.certificationRequestInfo=new kh;this.signatureAlgorithm=new Cn;this.signature=new ArrayBuffer(0);Object.assign(this,t)}return t}();t("X",Kh);Ei([Ci({type:kh})],Kh.prototype,"certificationRequestInfo",void 0);Ei([Ci({type:Cn})],Kh.prototype,"signatureAlgorithm",void 0);Ei([Ci({type:Ke.BitString})],Kh.prototype,"signature",void 0)}}}));
|
|
142
|
+
//# sourceMappingURL=p-BipKYW6e.system.js.map
|