@react-pdf-kit/viewer 2.8.0-beta.1 → 2.8.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/dist/{AnnotationLayer-C6UTOVmc.js → AnnotationLayer-CAIvKf_O.js} +1 -1
  2. package/dist/{Button-DBu3SaMk.js → Button-BNlmxWrV.js} +1 -1
  3. package/dist/{Checkbox-CSIEUyO8.js → Checkbox-Brta-YKG.js} +4 -4
  4. package/dist/{Combination-11kyhTGt.js → Combination-DqNkTtir.js} +15 -15
  5. package/dist/{Container-BuamPhw4.js → Container-BxNZX82X.js} +1 -1
  6. package/dist/{DocumentDialog-cRr9sSSH.js → DocumentDialog-C9G7lVTh.js} +4 -4
  7. package/dist/{DropDown-CM6xEwZC.js → DropDown-DikL-krI.js} +2 -2
  8. package/dist/{Input-Dpo1Xfxe.js → Input-DjSWOjCI.js} +1 -1
  9. package/dist/{LoaderIcon-B3ddfd0D.js → LoaderIcon-D9YjinGf.js} +1 -1
  10. package/dist/{LoadingIndicator-Bzzf28Xv.js → LoadingIndicator-DiWoWs4Y.js} +1 -1
  11. package/dist/{MenuItem-9kCH_GQ0.js → MenuItem-BJDWfzAw.js} +2 -2
  12. package/dist/{MenuSeparator-CaFxd8b5.js → MenuSeparator-D1H5l8Ej.js} +1 -1
  13. package/dist/{PaginationContext-C5CJiEW-.js → PaginationContext-Cwf8sCpK.js} +1 -1
  14. package/dist/{PasswordModal-BeLyLUsu.js → PasswordModal-BIr84lGN.js} +1 -1
  15. package/dist/{RPDropFileZone-Bq1bzWmO.js → RPDropFileZone-D1C3ouep.js} +1 -1
  16. package/dist/{RPPage-BsDixmqF.js → RPPage-C_r8aeTc.js} +1 -1
  17. package/dist/{RPPages-Cf-FDd0a.js → RPPages-k-pnadyq.js} +12 -12
  18. package/dist/{RPTooltip-CXBVXusS.js → RPTooltip-ZZoFqP7C.js} +4 -4
  19. package/dist/{Thumbnail-BO3QHzxR.js → Thumbnail-CzclS3h_.js} +3 -3
  20. package/dist/{Thumbnails-DyeBsQJT.js → Thumbnails-DnAsrttK.js} +2 -2
  21. package/dist/{clsx-DSGuh5YW.js → clsx-B7LyVm5O.js} +1 -1
  22. package/dist/components/RPController.js +1 -1
  23. package/dist/components/RPDropFileZone.js +1 -1
  24. package/dist/components/RPPages.js +1 -1
  25. package/dist/components/icons/LoaderIcon.js +1 -1
  26. package/dist/components/layout/Container.js +1 -1
  27. package/dist/components/layout/LayoutContainer.js +1 -1
  28. package/dist/components/layout/RPDefaultLayout.js +2 -2
  29. package/dist/components/layout/RPLayout.js +2 -2
  30. package/dist/components/layout/sidebar/RPSidebar.js +3 -3
  31. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  32. package/dist/components/layout/sidebar/Thumbnails.js +1 -1
  33. package/dist/components/layout/toolbar/DarkModeTool.js +2 -2
  34. package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
  35. package/dist/components/layout/toolbar/DocumentProperties.js +3 -3
  36. package/dist/components/layout/toolbar/FileDownloadTool.js +3 -3
  37. package/dist/components/layout/toolbar/FileUploadTool.js +3 -3
  38. package/dist/components/layout/toolbar/FullScreenTool.js +3 -3
  39. package/dist/components/layout/toolbar/MenuItem.js +1 -1
  40. package/dist/components/layout/toolbar/MenuSeparator.js +1 -1
  41. package/dist/components/layout/toolbar/MostPageTool.js +5 -5
  42. package/dist/components/layout/toolbar/OtherTool.js +6 -6
  43. package/dist/components/layout/toolbar/Paginate.js +4 -4
  44. package/dist/components/layout/toolbar/PrintTool.js +3 -3
  45. package/dist/components/layout/toolbar/RPMenuItem.js +3 -3
  46. package/dist/components/layout/toolbar/RPMoreOptions.js +6 -6
  47. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  48. package/dist/components/layout/toolbar/RotateTool.js +4 -4
  49. package/dist/components/layout/toolbar/ScrollModeTool.js +3 -3
  50. package/dist/components/layout/toolbar/SearchCloseButton.js +2 -2
  51. package/dist/components/layout/toolbar/SearchResultNavigator.js +2 -2
  52. package/dist/components/layout/toolbar/SearchTool.js +6 -6
  53. package/dist/components/layout/toolbar/SelectionModeTool.js +4 -4
  54. package/dist/components/layout/toolbar/ThumbnailTool.js +2 -2
  55. package/dist/components/layout/toolbar/ToolbarCustom.js +2 -2
  56. package/dist/components/layout/toolbar/ToolbarDefault.js +2 -2
  57. package/dist/components/layout/toolbar/ViewModeTool.js +4 -4
  58. package/dist/components/layout/toolbar/ZoomTool.js +7 -7
  59. package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +3 -3
  60. package/dist/components/layout/toolbar/tools/DualPageTool.js +2 -2
  61. package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +1 -1
  62. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +2 -2
  63. package/dist/components/layout/toolbar/tools/FileUploadTool.js +2 -2
  64. package/dist/components/layout/toolbar/tools/FirstPageTool.js +1 -1
  65. package/dist/components/layout/toolbar/tools/FullScreenTool.js +2 -2
  66. package/dist/components/layout/toolbar/tools/HorizontalScrollingTool.js +2 -2
  67. package/dist/components/layout/toolbar/tools/InputPageTool.js +3 -3
  68. package/dist/components/layout/toolbar/tools/LastPageTool.js +1 -1
  69. package/dist/components/layout/toolbar/tools/NextPageTool.js +3 -3
  70. package/dist/components/layout/toolbar/tools/PageScrollingTool.js +2 -2
  71. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +3 -3
  72. package/dist/components/layout/toolbar/tools/PrintTool.js +2 -2
  73. package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +2 -2
  74. package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +2 -2
  75. package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +2 -2
  76. package/dist/components/layout/toolbar/tools/SinglePageTool.js +2 -2
  77. package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +2 -2
  78. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +2 -2
  79. package/dist/components/layout/toolbar/tools/VerticalScrollingTool.js +2 -2
  80. package/dist/components/layout/toolbar/tools/ZoomInTool.js +2 -2
  81. package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +6 -6
  82. package/dist/components/layout/toolbar/tools/ZoomOutTool.js +2 -2
  83. package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +2 -2
  84. package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +2 -2
  85. package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +2 -2
  86. package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +2 -2
  87. package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +5 -5
  88. package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +2 -2
  89. package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +4 -4
  90. package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +3 -3
  91. package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +4 -4
  92. package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +4 -4
  93. package/dist/components/page/AnnotationLayer.js +1 -1
  94. package/dist/components/page/DualPage.js +2 -2
  95. package/dist/components/page/DualPageWithCover.js +2 -2
  96. package/dist/components/page/RPPage.js +1 -1
  97. package/dist/components/page/SinglePage.js +2 -2
  98. package/dist/components/ui/Button.js +1 -1
  99. package/dist/components/ui/Checkbox.js +1 -1
  100. package/dist/components/ui/DropDown.js +1 -1
  101. package/dist/components/ui/Input.js +1 -1
  102. package/dist/components/ui/LoadingIndicator.js +1 -1
  103. package/dist/components/ui/PasswordModal.js +1 -1
  104. package/dist/components/ui/RPTooltip.js +1 -1
  105. package/dist/contexts/ElementThumbnailContext.js +1 -1
  106. package/dist/contexts/LoaderContext.js +1 -1
  107. package/dist/contexts/PaginationContext.js +1 -1
  108. package/dist/contexts/RenderQueueProvider.js +1 -1
  109. package/dist/{dist-B2hwhF6G.js → dist-7FA4Do6I.js} +7 -7
  110. package/dist/{dist-BfuBBQ14.js → dist-BRVqFn7R.js} +6 -6
  111. package/dist/{dist-CNbFpoT1.js → dist-C3WNMuW2.js} +2 -2
  112. package/dist/{dist-VbpVNBs6.js → dist-CKteKPPA.js} +7 -7
  113. package/dist/{dist-CgoP608h.js → dist-bK-AHWLF.js} +7 -7
  114. package/dist/icons.js +1 -1
  115. package/dist/{lib-CSInlR9T.js → lib-BiapEtK1.js} +237 -142
  116. package/dist/{main-0RC2E65p.js → main-CKr9unOk.js} +3 -3
  117. package/dist/main.js +5 -5
  118. package/dist/utils/hooks/useLicense.js +2 -2
  119. package/dist/utils/hooks/usePaginate.js +1 -1
  120. package/dist/utils/hooks/usePresentPage.js +1 -1
  121. package/dist/utils/hooks/useScrollToPage.js +1 -1
  122. package/dist/utils/hooks/useSearch.js +1 -1
  123. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./chunk-C_CI6nMA.js";
2
- //#region node_modules/node-forge/lib/forge.js
2
+ //#region node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/forge.js
3
3
  var t = /* @__PURE__ */ e(((e, t) => {
4
4
  t.exports = { options: { usePureJavaScript: !1 } };
5
5
  })), n = /* @__PURE__ */ e(((e, t) => {
@@ -1216,7 +1216,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
1216
1216
  function o(e, t) {
1217
1217
  i[e] = t;
1218
1218
  }
1219
- a("1.2.840.113549.1.1.1", "rsaEncryption"), a("1.2.840.113549.1.1.4", "md5WithRSAEncryption"), a("1.2.840.113549.1.1.5", "sha1WithRSAEncryption"), a("1.2.840.113549.1.1.7", "RSAES-OAEP"), a("1.2.840.113549.1.1.8", "mgf1"), a("1.2.840.113549.1.1.9", "pSpecified"), a("1.2.840.113549.1.1.10", "RSASSA-PSS"), a("1.2.840.113549.1.1.11", "sha256WithRSAEncryption"), a("1.2.840.113549.1.1.12", "sha384WithRSAEncryption"), a("1.2.840.113549.1.1.13", "sha512WithRSAEncryption"), a("1.3.101.112", "EdDSA25519"), a("1.2.840.10040.4.3", "dsa-with-sha1"), a("1.3.14.3.2.7", "desCBC"), a("1.3.14.3.2.26", "sha1"), a("1.3.14.3.2.29", "sha1WithRSASignature"), a("2.16.840.1.101.3.4.2.1", "sha256"), a("2.16.840.1.101.3.4.2.2", "sha384"), a("2.16.840.1.101.3.4.2.3", "sha512"), a("2.16.840.1.101.3.4.2.4", "sha224"), a("2.16.840.1.101.3.4.2.5", "sha512-224"), a("2.16.840.1.101.3.4.2.6", "sha512-256"), a("1.2.840.113549.2.2", "md2"), a("1.2.840.113549.2.5", "md5"), a("1.2.840.113549.1.7.1", "data"), a("1.2.840.113549.1.7.2", "signedData"), a("1.2.840.113549.1.7.3", "envelopedData"), a("1.2.840.113549.1.7.4", "signedAndEnvelopedData"), a("1.2.840.113549.1.7.5", "digestedData"), a("1.2.840.113549.1.7.6", "encryptedData"), a("1.2.840.113549.1.9.1", "emailAddress"), a("1.2.840.113549.1.9.2", "unstructuredName"), a("1.2.840.113549.1.9.3", "contentType"), a("1.2.840.113549.1.9.4", "messageDigest"), a("1.2.840.113549.1.9.5", "signingTime"), a("1.2.840.113549.1.9.6", "counterSignature"), a("1.2.840.113549.1.9.7", "challengePassword"), a("1.2.840.113549.1.9.8", "unstructuredAddress"), a("1.2.840.113549.1.9.14", "extensionRequest"), a("1.2.840.113549.1.9.20", "friendlyName"), a("1.2.840.113549.1.9.21", "localKeyId"), a("1.2.840.113549.1.9.22.1", "x509Certificate"), a("1.2.840.113549.1.12.10.1.1", "keyBag"), a("1.2.840.113549.1.12.10.1.2", "pkcs8ShroudedKeyBag"), a("1.2.840.113549.1.12.10.1.3", "certBag"), a("1.2.840.113549.1.12.10.1.4", "crlBag"), a("1.2.840.113549.1.12.10.1.5", "secretBag"), a("1.2.840.113549.1.12.10.1.6", "safeContentsBag"), a("1.2.840.113549.1.5.13", "pkcs5PBES2"), a("1.2.840.113549.1.5.12", "pkcs5PBKDF2"), a("1.2.840.113549.1.12.1.1", "pbeWithSHAAnd128BitRC4"), a("1.2.840.113549.1.12.1.2", "pbeWithSHAAnd40BitRC4"), a("1.2.840.113549.1.12.1.3", "pbeWithSHAAnd3-KeyTripleDES-CBC"), a("1.2.840.113549.1.12.1.4", "pbeWithSHAAnd2-KeyTripleDES-CBC"), a("1.2.840.113549.1.12.1.5", "pbeWithSHAAnd128BitRC2-CBC"), a("1.2.840.113549.1.12.1.6", "pbewithSHAAnd40BitRC2-CBC"), a("1.2.840.113549.2.7", "hmacWithSHA1"), a("1.2.840.113549.2.8", "hmacWithSHA224"), a("1.2.840.113549.2.9", "hmacWithSHA256"), a("1.2.840.113549.2.10", "hmacWithSHA384"), a("1.2.840.113549.2.11", "hmacWithSHA512"), a("1.2.840.113549.3.7", "des-EDE3-CBC"), a("2.16.840.1.101.3.4.1.2", "aes128-CBC"), a("2.16.840.1.101.3.4.1.22", "aes192-CBC"), a("2.16.840.1.101.3.4.1.42", "aes256-CBC"), a("2.5.4.3", "commonName"), a("2.5.4.4", "surname"), a("2.5.4.5", "serialNumber"), a("2.5.4.6", "countryName"), a("2.5.4.7", "localityName"), a("2.5.4.8", "stateOrProvinceName"), a("2.5.4.9", "streetAddress"), a("2.5.4.10", "organizationName"), a("2.5.4.11", "organizationalUnitName"), a("2.5.4.12", "title"), a("2.5.4.13", "description"), a("2.5.4.15", "businessCategory"), a("2.5.4.17", "postalCode"), a("2.5.4.42", "givenName"), a("1.3.6.1.4.1.311.60.2.1.2", "jurisdictionOfIncorporationStateOrProvinceName"), a("1.3.6.1.4.1.311.60.2.1.3", "jurisdictionOfIncorporationCountryName"), a("2.16.840.1.113730.1.1", "nsCertType"), a("2.16.840.1.113730.1.13", "nsComment"), o("2.5.29.1", "authorityKeyIdentifier"), o("2.5.29.2", "keyAttributes"), o("2.5.29.3", "certificatePolicies"), o("2.5.29.4", "keyUsageRestriction"), o("2.5.29.5", "policyMapping"), o("2.5.29.6", "subtreesConstraint"), o("2.5.29.7", "subjectAltName"), o("2.5.29.8", "issuerAltName"), o("2.5.29.9", "subjectDirectoryAttributes"), o("2.5.29.10", "basicConstraints"), o("2.5.29.11", "nameConstraints"), o("2.5.29.12", "policyConstraints"), o("2.5.29.13", "basicConstraints"), a("2.5.29.14", "subjectKeyIdentifier"), a("2.5.29.15", "keyUsage"), o("2.5.29.16", "privateKeyUsagePeriod"), a("2.5.29.17", "subjectAltName"), a("2.5.29.18", "issuerAltName"), a("2.5.29.19", "basicConstraints"), o("2.5.29.20", "cRLNumber"), o("2.5.29.21", "cRLReason"), o("2.5.29.22", "expirationDate"), o("2.5.29.23", "instructionCode"), o("2.5.29.24", "invalidityDate"), o("2.5.29.25", "cRLDistributionPoints"), o("2.5.29.26", "issuingDistributionPoint"), o("2.5.29.27", "deltaCRLIndicator"), o("2.5.29.28", "issuingDistributionPoint"), o("2.5.29.29", "certificateIssuer"), o("2.5.29.30", "nameConstraints"), a("2.5.29.31", "cRLDistributionPoints"), a("2.5.29.32", "certificatePolicies"), o("2.5.29.33", "policyMappings"), o("2.5.29.34", "policyConstraints"), a("2.5.29.35", "authorityKeyIdentifier"), o("2.5.29.36", "policyConstraints"), a("2.5.29.37", "extKeyUsage"), o("2.5.29.46", "freshestCRL"), o("2.5.29.54", "inhibitAnyPolicy"), a("1.3.6.1.4.1.11129.2.4.2", "timestampList"), a("1.3.6.1.5.5.7.1.1", "authorityInfoAccess"), a("1.3.6.1.5.5.7.3.1", "serverAuth"), a("1.3.6.1.5.5.7.3.2", "clientAuth"), a("1.3.6.1.5.5.7.3.3", "codeSigning"), a("1.3.6.1.5.5.7.3.4", "emailProtection"), a("1.3.6.1.5.5.7.3.8", "timeStamping");
1219
+ a("1.2.840.113549.1.1.1", "rsaEncryption"), a("1.2.840.113549.1.1.4", "md5WithRSAEncryption"), a("1.2.840.113549.1.1.5", "sha1WithRSAEncryption"), a("1.2.840.113549.1.1.7", "RSAES-OAEP"), a("1.2.840.113549.1.1.8", "mgf1"), a("1.2.840.113549.1.1.9", "pSpecified"), a("1.2.840.113549.1.1.10", "RSASSA-PSS"), a("1.2.840.113549.1.1.11", "sha256WithRSAEncryption"), a("1.2.840.113549.1.1.12", "sha384WithRSAEncryption"), a("1.2.840.113549.1.1.13", "sha512WithRSAEncryption"), a("1.3.101.112", "EdDSA25519"), a("1.2.840.10040.4.3", "dsa-with-sha1"), a("1.3.14.3.2.7", "desCBC"), a("1.3.14.3.2.26", "sha1"), a("1.3.14.3.2.29", "sha1WithRSASignature"), a("2.16.840.1.101.3.4.2.1", "sha256"), a("2.16.840.1.101.3.4.2.2", "sha384"), a("2.16.840.1.101.3.4.2.3", "sha512"), a("2.16.840.1.101.3.4.2.4", "sha224"), a("2.16.840.1.101.3.4.2.5", "sha512-224"), a("2.16.840.1.101.3.4.2.6", "sha512-256"), a("1.2.840.113549.2.2", "md2"), a("1.2.840.113549.2.5", "md5"), a("1.2.840.113549.1.7.1", "data"), a("1.2.840.113549.1.7.2", "signedData"), a("1.2.840.113549.1.7.3", "envelopedData"), a("1.2.840.113549.1.7.4", "signedAndEnvelopedData"), a("1.2.840.113549.1.7.5", "digestedData"), a("1.2.840.113549.1.7.6", "encryptedData"), a("1.2.840.113549.1.9.1", "emailAddress"), a("1.2.840.113549.1.9.2", "unstructuredName"), a("1.2.840.113549.1.9.3", "contentType"), a("1.2.840.113549.1.9.4", "messageDigest"), a("1.2.840.113549.1.9.5", "signingTime"), a("1.2.840.113549.1.9.6", "counterSignature"), a("1.2.840.113549.1.9.7", "challengePassword"), a("1.2.840.113549.1.9.8", "unstructuredAddress"), a("1.2.840.113549.1.9.14", "extensionRequest"), a("1.2.840.113549.1.9.20", "friendlyName"), a("1.2.840.113549.1.9.21", "localKeyId"), a("1.2.840.113549.1.9.22.1", "x509Certificate"), a("1.2.840.113549.1.12.10.1.1", "keyBag"), a("1.2.840.113549.1.12.10.1.2", "pkcs8ShroudedKeyBag"), a("1.2.840.113549.1.12.10.1.3", "certBag"), a("1.2.840.113549.1.12.10.1.4", "crlBag"), a("1.2.840.113549.1.12.10.1.5", "secretBag"), a("1.2.840.113549.1.12.10.1.6", "safeContentsBag"), a("1.2.840.113549.1.5.13", "pkcs5PBES2"), a("1.2.840.113549.1.5.12", "pkcs5PBKDF2"), a("1.2.840.113549.1.12.1.1", "pbeWithSHAAnd128BitRC4"), a("1.2.840.113549.1.12.1.2", "pbeWithSHAAnd40BitRC4"), a("1.2.840.113549.1.12.1.3", "pbeWithSHAAnd3-KeyTripleDES-CBC"), a("1.2.840.113549.1.12.1.4", "pbeWithSHAAnd2-KeyTripleDES-CBC"), a("1.2.840.113549.1.12.1.5", "pbeWithSHAAnd128BitRC2-CBC"), a("1.2.840.113549.1.12.1.6", "pbewithSHAAnd40BitRC2-CBC"), a("1.2.840.113549.2.7", "hmacWithSHA1"), a("1.2.840.113549.2.8", "hmacWithSHA224"), a("1.2.840.113549.2.9", "hmacWithSHA256"), a("1.2.840.113549.2.10", "hmacWithSHA384"), a("1.2.840.113549.2.11", "hmacWithSHA512"), a("1.2.840.113549.3.7", "des-EDE3-CBC"), a("2.16.840.1.101.3.4.1.2", "aes128-CBC"), a("2.16.840.1.101.3.4.1.22", "aes192-CBC"), a("2.16.840.1.101.3.4.1.42", "aes256-CBC"), a("2.5.4.3", "commonName"), a("2.5.4.4", "surname"), a("2.5.4.5", "serialNumber"), a("2.5.4.6", "countryName"), a("2.5.4.7", "localityName"), a("2.5.4.8", "stateOrProvinceName"), a("2.5.4.9", "streetAddress"), a("2.5.4.10", "organizationName"), a("2.5.4.11", "organizationalUnitName"), a("2.5.4.12", "title"), a("2.5.4.13", "description"), a("2.5.4.15", "businessCategory"), a("2.5.4.17", "postalCode"), a("2.5.4.42", "givenName"), a("2.5.4.65", "pseudonym"), a("1.3.6.1.4.1.311.60.2.1.2", "jurisdictionOfIncorporationStateOrProvinceName"), a("1.3.6.1.4.1.311.60.2.1.3", "jurisdictionOfIncorporationCountryName"), a("2.16.840.1.113730.1.1", "nsCertType"), a("2.16.840.1.113730.1.13", "nsComment"), o("2.5.29.1", "authorityKeyIdentifier"), o("2.5.29.2", "keyAttributes"), o("2.5.29.3", "certificatePolicies"), o("2.5.29.4", "keyUsageRestriction"), o("2.5.29.5", "policyMapping"), o("2.5.29.6", "subtreesConstraint"), o("2.5.29.7", "subjectAltName"), o("2.5.29.8", "issuerAltName"), o("2.5.29.9", "subjectDirectoryAttributes"), o("2.5.29.10", "basicConstraints"), o("2.5.29.11", "nameConstraints"), o("2.5.29.12", "policyConstraints"), o("2.5.29.13", "basicConstraints"), a("2.5.29.14", "subjectKeyIdentifier"), a("2.5.29.15", "keyUsage"), o("2.5.29.16", "privateKeyUsagePeriod"), a("2.5.29.17", "subjectAltName"), a("2.5.29.18", "issuerAltName"), a("2.5.29.19", "basicConstraints"), o("2.5.29.20", "cRLNumber"), o("2.5.29.21", "cRLReason"), o("2.5.29.22", "expirationDate"), o("2.5.29.23", "instructionCode"), o("2.5.29.24", "invalidityDate"), o("2.5.29.25", "cRLDistributionPoints"), o("2.5.29.26", "issuingDistributionPoint"), o("2.5.29.27", "deltaCRLIndicator"), o("2.5.29.28", "issuingDistributionPoint"), o("2.5.29.29", "certificateIssuer"), o("2.5.29.30", "nameConstraints"), a("2.5.29.31", "cRLDistributionPoints"), a("2.5.29.32", "certificatePolicies"), o("2.5.29.33", "policyMappings"), o("2.5.29.34", "policyConstraints"), a("2.5.29.35", "authorityKeyIdentifier"), o("2.5.29.36", "policyConstraints"), a("2.5.29.37", "extKeyUsage"), o("2.5.29.46", "freshestCRL"), o("2.5.29.54", "inhibitAnyPolicy"), a("1.3.6.1.4.1.11129.2.4.2", "timestampList"), a("1.3.6.1.5.5.7.1.1", "authorityInfoAccess"), a("1.3.6.1.5.5.7.3.1", "serverAuth"), a("1.3.6.1.5.5.7.3.2", "clientAuth"), a("1.3.6.1.5.5.7.3.3", "codeSigning"), a("1.3.6.1.5.5.7.3.4", "emailProtection"), a("1.3.6.1.5.5.7.3.8", "timeStamping");
1220
1220
  })), c = /* @__PURE__ */ e(((e, n) => {
1221
1221
  var i = t();
1222
1222
  r(), s();
@@ -3763,7 +3763,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
3763
3763
  function Z() {
3764
3764
  return (this.t > 0 ? this.data[0] & 1 : this.s) == 0;
3765
3765
  }
3766
- function Q(e, t) {
3766
+ function ee(e, t) {
3767
3767
  if (e > 4294967295 || e < 1) return o.ONE;
3768
3768
  var n = s(), r = s(), i = t.convert(this), a = D(e) - 1;
3769
3769
  for (i.copyTo(n); --a >= 0;) if (t.sqrTo(n, r), (e & 1 << a) > 0) t.mulTo(r, i, n);
@@ -3773,11 +3773,11 @@ var t = /* @__PURE__ */ e(((e, t) => {
3773
3773
  }
3774
3774
  return t.revert(n);
3775
3775
  }
3776
- function ee(e, t) {
3776
+ function Q(e, t) {
3777
3777
  var n = e < 256 || t.isEven() ? new R(t) : new G(t);
3778
3778
  return this.exp(e, n);
3779
3779
  }
3780
- o.prototype.copyTo = v, o.prototype.fromInt = y, o.prototype.fromString = x, o.prototype.clamp = S, o.prototype.dlShiftTo = k, o.prototype.drShiftTo = A, o.prototype.lShiftTo = j, o.prototype.rShiftTo = M, o.prototype.subTo = N, o.prototype.multiplyTo = P, o.prototype.squareTo = F, o.prototype.divRemTo = I, o.prototype.invDigit = W, o.prototype.isEven = Z, o.prototype.exp = Q, o.prototype.toString = C, o.prototype.negate = w, o.prototype.abs = T, o.prototype.compareTo = E, o.prototype.bitLength = O, o.prototype.mod = L, o.prototype.modPowInt = ee, o.ZERO = b(0), o.ONE = b(1);
3780
+ o.prototype.copyTo = v, o.prototype.fromInt = y, o.prototype.fromString = x, o.prototype.clamp = S, o.prototype.dlShiftTo = k, o.prototype.drShiftTo = A, o.prototype.lShiftTo = j, o.prototype.rShiftTo = M, o.prototype.subTo = N, o.prototype.multiplyTo = P, o.prototype.squareTo = F, o.prototype.divRemTo = I, o.prototype.invDigit = W, o.prototype.isEven = Z, o.prototype.exp = ee, o.prototype.toString = C, o.prototype.negate = w, o.prototype.abs = T, o.prototype.compareTo = E, o.prototype.bitLength = O, o.prototype.mod = L, o.prototype.modPowInt = Q, o.ZERO = b(0), o.ONE = b(1);
3781
3781
  function te() {
3782
3782
  var e = s();
3783
3783
  return this.copyTo(e), e;
@@ -3953,42 +3953,46 @@ var t = /* @__PURE__ */ e(((e, t) => {
3953
3953
  var t = s();
3954
3954
  return this.multiplyTo(e, t), t;
3955
3955
  }
3956
- function ze(e) {
3956
+ function ze() {
3957
+ var e = s();
3958
+ return this.squareTo(e), e;
3959
+ }
3960
+ function Be(e) {
3957
3961
  var t = s();
3958
3962
  return this.divRemTo(e, t, null), t;
3959
3963
  }
3960
- function Be(e) {
3964
+ function Ve(e) {
3961
3965
  var t = s();
3962
3966
  return this.divRemTo(e, null, t), t;
3963
3967
  }
3964
- function Ve(e) {
3968
+ function He(e) {
3965
3969
  var t = s(), n = s();
3966
3970
  return this.divRemTo(e, t, n), [t, n];
3967
3971
  }
3968
- function He(e) {
3972
+ function Ue(e) {
3969
3973
  this.data[this.t] = this.am(0, e - 1, this, 0, 0, this.t), ++this.t, this.clamp();
3970
3974
  }
3971
- function Ue(e, t) {
3975
+ function We(e, t) {
3972
3976
  if (e != 0) {
3973
3977
  for (; this.t <= t;) this.data[this.t++] = 0;
3974
3978
  for (this.data[t] += e; this.data[t] >= this.DV;) this.data[t] -= this.DV, ++t >= this.t && (this.data[this.t++] = 0), ++this.data[t];
3975
3979
  }
3976
3980
  }
3977
- function We() {}
3978
- function Ge(e) {
3981
+ function Ge() {}
3982
+ function Ke(e) {
3979
3983
  return e;
3980
3984
  }
3981
- function Ke(e, t, n) {
3985
+ function qe(e, t, n) {
3982
3986
  e.multiplyTo(t, n);
3983
3987
  }
3984
- function qe(e, t) {
3988
+ function Je(e, t) {
3985
3989
  e.squareTo(t);
3986
3990
  }
3987
- We.prototype.convert = Ge, We.prototype.revert = Ge, We.prototype.mulTo = Ke, We.prototype.sqrTo = qe;
3988
- function Je(e) {
3989
- return this.exp(e, new We());
3991
+ Ge.prototype.convert = Ke, Ge.prototype.revert = Ke, Ge.prototype.mulTo = qe, Ge.prototype.sqrTo = Je;
3992
+ function Ye(e) {
3993
+ return this.exp(e, new Ge());
3990
3994
  }
3991
- function Ye(e, t, n) {
3995
+ function Xe(e, t, n) {
3992
3996
  var r = Math.min(this.t + e.t, t);
3993
3997
  for (n.s = 0, n.t = r; r > 0;) n.data[--r] = 0;
3994
3998
  var i;
@@ -3996,40 +4000,40 @@ var t = /* @__PURE__ */ e(((e, t) => {
3996
4000
  for (i = Math.min(e.t, t); r < i; ++r) this.am(0, e.data[r], n, r, 0, t - r);
3997
4001
  n.clamp();
3998
4002
  }
3999
- function Xe(e, t, n) {
4003
+ function Ze(e, t, n) {
4000
4004
  --t;
4001
4005
  var r = n.t = this.t + e.t - t;
4002
4006
  for (n.s = 0; --r >= 0;) n.data[r] = 0;
4003
4007
  for (r = Math.max(t - this.t, 0); r < e.t; ++r) n.data[this.t + r - t] = this.am(t - r, e.data[r], n, 0, 0, this.t + r - t);
4004
4008
  n.clamp(), n.drShiftTo(1, n);
4005
4009
  }
4006
- function Ze(e) {
4010
+ function Qe(e) {
4007
4011
  this.r2 = s(), this.q3 = s(), o.ONE.dlShiftTo(2 * e.t, this.r2), this.mu = this.r2.divide(e), this.m = e;
4008
4012
  }
4009
- function Qe(e) {
4013
+ function $e(e) {
4010
4014
  if (e.s < 0 || e.t > 2 * this.m.t) return e.mod(this.m);
4011
4015
  if (e.compareTo(this.m) < 0) return e;
4012
4016
  var t = s();
4013
4017
  return e.copyTo(t), this.reduce(t), t;
4014
4018
  }
4015
- function $e(e) {
4019
+ function et(e) {
4016
4020
  return e;
4017
4021
  }
4018
- function et(e) {
4022
+ function tt(e) {
4019
4023
  for (e.drShiftTo(this.m.t - 1, this.r2), e.t > this.m.t + 1 && (e.t = this.m.t + 1, e.clamp()), this.mu.multiplyUpperTo(this.r2, this.m.t + 1, this.q3), this.m.multiplyLowerTo(this.q3, this.m.t + 1, this.r2); e.compareTo(this.r2) < 0;) e.dAddOffset(1, this.m.t + 1);
4020
4024
  for (e.subTo(this.r2, e); e.compareTo(this.m) >= 0;) e.subTo(this.m, e);
4021
4025
  }
4022
- function tt(e, t) {
4026
+ function nt(e, t) {
4023
4027
  e.squareTo(t), this.reduce(t);
4024
4028
  }
4025
- function nt(e, t, n) {
4029
+ function rt(e, t, n) {
4026
4030
  e.multiplyTo(t, n), this.reduce(n);
4027
4031
  }
4028
- Ze.prototype.convert = Qe, Ze.prototype.revert = $e, Ze.prototype.reduce = et, Ze.prototype.mulTo = nt, Ze.prototype.sqrTo = tt;
4029
- function rt(e, t) {
4032
+ Qe.prototype.convert = $e, Qe.prototype.revert = et, Qe.prototype.reduce = tt, Qe.prototype.mulTo = rt, Qe.prototype.sqrTo = nt;
4033
+ function it(e, t) {
4030
4034
  var n = e.bitLength(), r, i = b(1), a;
4031
4035
  if (n <= 0) return i;
4032
- r = n < 18 ? 1 : n < 48 ? 3 : n < 144 ? 4 : n < 768 ? 5 : 6, a = n < 8 ? new R(t) : t.isEven() ? new Ze(t) : new G(t);
4036
+ r = n < 18 ? 1 : n < 48 ? 3 : n < 144 ? 4 : n < 768 ? 5 : 6, a = n < 8 ? new R(t) : t.isEven() ? new Qe(t) : new G(t);
4033
4037
  var o = [], c = 3, l = r - 1, u = (1 << r) - 1;
4034
4038
  if (o[1] = a.convert(this), r > 1) {
4035
4039
  var d = s();
@@ -4047,7 +4051,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
4047
4051
  }
4048
4052
  return a.revert(i);
4049
4053
  }
4050
- function it(e) {
4054
+ function at(e) {
4051
4055
  var t = this.s < 0 ? this.negate() : this.clone(), n = e.s < 0 ? e.negate() : e.clone();
4052
4056
  if (t.compareTo(n) < 0) {
4053
4057
  var r = t;
@@ -4058,14 +4062,15 @@ var t = /* @__PURE__ */ e(((e, t) => {
4058
4062
  for (i < a && (a = i), a > 0 && (t.rShiftTo(a, t), n.rShiftTo(a, n)); t.signum() > 0;) (i = t.getLowestSetBit()) > 0 && t.rShiftTo(i, t), (i = n.getLowestSetBit()) > 0 && n.rShiftTo(i, n), t.compareTo(n) >= 0 ? (t.subTo(n, t), t.rShiftTo(1, t)) : (n.subTo(t, n), n.rShiftTo(1, n));
4059
4063
  return a > 0 && n.lShiftTo(a, n), n;
4060
4064
  }
4061
- function at(e) {
4065
+ function ot(e) {
4062
4066
  if (e <= 0) return 0;
4063
4067
  var t = this.DV % e, n = this.s < 0 ? e - 1 : 0;
4064
4068
  if (this.t > 0) if (t == 0) n = this.data[0] % e;
4065
4069
  else for (var r = this.t - 1; r >= 0; --r) n = (t * n + this.data[r]) % e;
4066
4070
  return n;
4067
4071
  }
4068
- function ot(e) {
4072
+ function st(e) {
4073
+ if (this.signum() == 0) return o.ZERO;
4069
4074
  var t = e.isEven();
4070
4075
  if (this.isEven() && t || e.signum() == 0) return o.ZERO;
4071
4076
  for (var n = e.clone(), r = this.clone(), i = b(1), a = b(0), s = b(0), c = b(1); n.signum() != 0;) {
@@ -4176,9 +4181,80 @@ var t = /* @__PURE__ */ e(((e, t) => {
4176
4181
  491,
4177
4182
  499,
4178
4183
  503,
4179
- 509
4180
- ], st = (1 << 26) / $[$.length - 1];
4181
- function ct(e) {
4184
+ 509,
4185
+ 521,
4186
+ 523,
4187
+ 541,
4188
+ 547,
4189
+ 557,
4190
+ 563,
4191
+ 569,
4192
+ 571,
4193
+ 577,
4194
+ 587,
4195
+ 593,
4196
+ 599,
4197
+ 601,
4198
+ 607,
4199
+ 613,
4200
+ 617,
4201
+ 619,
4202
+ 631,
4203
+ 641,
4204
+ 643,
4205
+ 647,
4206
+ 653,
4207
+ 659,
4208
+ 661,
4209
+ 673,
4210
+ 677,
4211
+ 683,
4212
+ 691,
4213
+ 701,
4214
+ 709,
4215
+ 719,
4216
+ 727,
4217
+ 733,
4218
+ 739,
4219
+ 743,
4220
+ 751,
4221
+ 757,
4222
+ 761,
4223
+ 769,
4224
+ 773,
4225
+ 787,
4226
+ 797,
4227
+ 809,
4228
+ 811,
4229
+ 821,
4230
+ 823,
4231
+ 827,
4232
+ 829,
4233
+ 839,
4234
+ 853,
4235
+ 857,
4236
+ 859,
4237
+ 863,
4238
+ 877,
4239
+ 881,
4240
+ 883,
4241
+ 887,
4242
+ 907,
4243
+ 911,
4244
+ 919,
4245
+ 929,
4246
+ 937,
4247
+ 941,
4248
+ 947,
4249
+ 953,
4250
+ 967,
4251
+ 971,
4252
+ 977,
4253
+ 983,
4254
+ 991,
4255
+ 997
4256
+ ], ct = (1 << 26) / $[$.length - 1];
4257
+ function lt(e) {
4182
4258
  var t, n = this.abs();
4183
4259
  if (n.t == 1 && n.data[0] <= $[$.length - 1]) {
4184
4260
  for (t = 0; t < $.length; ++t) if (n.data[0] == $[t]) return !0;
@@ -4186,15 +4262,15 @@ var t = /* @__PURE__ */ e(((e, t) => {
4186
4262
  }
4187
4263
  if (n.isEven()) return !1;
4188
4264
  for (t = 1; t < $.length;) {
4189
- for (var r = $[t], i = t + 1; i < $.length && r < st;) r *= $[i++];
4265
+ for (var r = $[t], i = t + 1; i < $.length && r < ct;) r *= $[i++];
4190
4266
  for (r = n.modInt(r); t < i;) if (r % $[t++] == 0) return !1;
4191
4267
  }
4192
4268
  return n.millerRabin(e);
4193
4269
  }
4194
- function lt(e) {
4270
+ function ut(e) {
4195
4271
  var t = this.subtract(o.ONE), n = t.getLowestSetBit();
4196
4272
  if (n <= 0) return !1;
4197
- for (var r = t.shiftRight(n), i = ut(), a, s = 0; s < e; ++s) {
4273
+ for (var r = t.shiftRight(n), i = dt(), a, s = 0; s < e; ++s) {
4198
4274
  do
4199
4275
  a = new o(this.bitLength(), i);
4200
4276
  while (a.compareTo(o.ONE) <= 0 || a.compareTo(t) >= 0);
@@ -4206,12 +4282,12 @@ var t = /* @__PURE__ */ e(((e, t) => {
4206
4282
  }
4207
4283
  return !0;
4208
4284
  }
4209
- function ut() {
4285
+ function dt() {
4210
4286
  return { nextBytes: function(e) {
4211
4287
  for (var t = 0; t < e.length; ++t) e[t] = Math.floor(Math.random() * 256);
4212
4288
  } };
4213
4289
  }
4214
- o.prototype.chunkSize = ae, o.prototype.toRadix = se, o.prototype.fromRadix = ce, o.prototype.fromNumber = le, o.prototype.bitwiseTo = me, o.prototype.changeBit = je, o.prototype.addTo = Fe, o.prototype.dMultiply = He, o.prototype.dAddOffset = Ue, o.prototype.multiplyLowerTo = Ye, o.prototype.multiplyUpperTo = Xe, o.prototype.modInt = at, o.prototype.millerRabin = lt, o.prototype.clone = te, o.prototype.intValue = ne, o.prototype.byteValue = re, o.prototype.shortValue = ie, o.prototype.signum = oe, o.prototype.toByteArray = ue, o.prototype.equals = de, o.prototype.min = fe, o.prototype.max = pe, o.prototype.and = ge, o.prototype.or = ve, o.prototype.xor = be, o.prototype.andNot = Se, o.prototype.not = Ce, o.prototype.shiftLeft = we, o.prototype.shiftRight = Te, o.prototype.getLowestSetBit = De, o.prototype.bitCount = ke, o.prototype.testBit = Ae, o.prototype.setBit = Me, o.prototype.clearBit = Ne, o.prototype.flipBit = Pe, o.prototype.add = Ie, o.prototype.subtract = Le, o.prototype.multiply = Re, o.prototype.divide = ze, o.prototype.remainder = Be, o.prototype.divideAndRemainder = Ve, o.prototype.modPow = rt, o.prototype.modInverse = ot, o.prototype.pow = Je, o.prototype.gcd = it, o.prototype.isProbablePrime = ct;
4290
+ o.prototype.chunkSize = ae, o.prototype.toRadix = se, o.prototype.fromRadix = ce, o.prototype.fromNumber = le, o.prototype.bitwiseTo = me, o.prototype.changeBit = je, o.prototype.addTo = Fe, o.prototype.dMultiply = Ue, o.prototype.dAddOffset = We, o.prototype.multiplyLowerTo = Xe, o.prototype.multiplyUpperTo = Ze, o.prototype.modInt = ot, o.prototype.millerRabin = ut, o.prototype.clone = te, o.prototype.intValue = ne, o.prototype.byteValue = re, o.prototype.shortValue = ie, o.prototype.signum = oe, o.prototype.toByteArray = ue, o.prototype.equals = de, o.prototype.min = fe, o.prototype.max = pe, o.prototype.and = ge, o.prototype.or = ve, o.prototype.xor = be, o.prototype.andNot = Se, o.prototype.not = Ce, o.prototype.shiftLeft = we, o.prototype.shiftRight = Te, o.prototype.getLowestSetBit = De, o.prototype.bitCount = ke, o.prototype.testBit = Ae, o.prototype.setBit = Me, o.prototype.clearBit = Ne, o.prototype.flipBit = Pe, o.prototype.add = Ie, o.prototype.subtract = Le, o.prototype.multiply = Re, o.prototype.divide = Be, o.prototype.remainder = Ve, o.prototype.divideAndRemainder = He, o.prototype.modPow = it, o.prototype.modInverse = st, o.prototype.pow = Ye, o.prototype.gcd = at, o.prototype.isProbablePrime = lt, o.prototype.square = ze;
4215
4291
  })), x = /* @__PURE__ */ e(((e, n) => {
4216
4292
  var i = t();
4217
4293
  l(), r();
@@ -4804,10 +4880,13 @@ var t = /* @__PURE__ */ e(((e, t) => {
4804
4880
  var a = t.encode(e, n, !0);
4805
4881
  return d.rsa.encrypt(a, n, !0);
4806
4882
  }, n.verify = function(e, t, r, a) {
4807
- typeof r == "string" ? r = r.toUpperCase() : r === void 0 && (r = "RSASSA-PKCS1-V1_5"), a === void 0 && (a = { _parseAllDigestBytes: !0 }), "_parseAllDigestBytes" in a || (a._parseAllDigestBytes = !0), r === "RSASSA-PKCS1-V1_5" ? r = { verify: function(e, t) {
4808
- t = E(t, n, !0);
4883
+ typeof r == "string" ? r = r.toUpperCase() : r === void 0 && (r = "RSASSA-PKCS1-V1_5"), a === void 0 && (a = {
4884
+ _parseAllDigestBytes: !0,
4885
+ _skipPaddingChecks: !1
4886
+ }), "_parseAllDigestBytes" in a || (a._parseAllDigestBytes = !0), "_skipPaddingChecks" in a || (a._skipPaddingChecks = !1), r === "RSASSA-PKCS1-V1_5" ? r = { verify: function(e, t) {
4887
+ t = E(t, n, !0, void 0, a);
4809
4888
  var r = l.fromDer(t, { parseAllBytes: a._parseAllDigestBytes }), o = {}, s = [];
4810
- if (!l.validate(r, y, o, s)) {
4889
+ if (!l.validate(r, y, o, s) || r.value.length !== 2) {
4811
4890
  var c = /* @__PURE__ */ Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.");
4812
4891
  throw c.errors = s, c;
4813
4892
  }
@@ -4819,7 +4898,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
4819
4898
  if ((u === i.oids.md2 || u === i.oids.md5) && !("parameters" in o)) throw Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifier NULL parameters.");
4820
4899
  return e === o.digest;
4821
4900
  } } : (r === "NONE" || r === "NULL" || r === null) && (r = { verify: function(e, t) {
4822
- return t = E(t, n, !0), e === t;
4901
+ return t = E(t, n, !0, void 0, a), e === t;
4823
4902
  } });
4824
4903
  var o = d.rsa.decrypt(t, n, !0, !1);
4825
4904
  return r.verify(e, o, n.n.bitLength());
@@ -4924,29 +5003,34 @@ var t = /* @__PURE__ */ e(((e, t) => {
4924
5003
  }
4925
5004
  return r.putByte(0), r.putBytes(e), r;
4926
5005
  }
4927
- function E(e, t, n, r) {
4928
- var a = Math.ceil(t.n.bitLength() / 8), o = i.util.createBuffer(e), s = o.getByte(), c = o.getByte();
4929
- if (s !== 0 || n && c !== 0 && c !== 1 || !n && c != 2 || n && c === 0 && r === void 0) throw Error("Encryption block is invalid.");
4930
- var l = 0;
4931
- if (c === 0) {
4932
- l = a - 3 - r;
4933
- for (var u = 0; u < l; ++u) if (o.getByte() !== 0) throw Error("Encryption block is invalid.");
4934
- } else if (c === 1) for (l = 0; o.length() > 1;) {
4935
- if (o.getByte() !== 255) {
4936
- --o.read;
4937
- break;
5006
+ function E(e, t, n, r, a) {
5007
+ var o = Math.ceil(t.n.bitLength() / 8), s = i.util.createBuffer(e), c = s.getByte(), l = s.getByte();
5008
+ if (c !== 0 || n && l !== 0 && l !== 1 || !n && l !== 2 || n && l === 0 && r === void 0) throw Error("Encryption block is invalid.");
5009
+ var u = 0;
5010
+ if (l === 0) {
5011
+ u = o - 3 - r;
5012
+ for (var d = 0; d < u; ++d) if (s.getByte() !== 0) throw Error("Encryption block is invalid.");
5013
+ } else if (l === 1) {
5014
+ for (u = 0; s.length() > 1;) {
5015
+ if (s.getByte() !== 255) {
5016
+ --s.read;
5017
+ break;
5018
+ }
5019
+ ++u;
4938
5020
  }
4939
- ++l;
4940
- }
4941
- else if (c === 2) for (l = 0; o.length() > 1;) {
4942
- if (o.getByte() === 0) {
4943
- --o.read;
4944
- break;
5021
+ if (u < 8 && !(a && a._skipPaddingChecks)) throw Error("Encryption block is invalid.");
5022
+ } else if (l === 2) {
5023
+ for (u = 0; s.length() > 1;) {
5024
+ if (s.getByte() === 0) {
5025
+ --s.read;
5026
+ break;
5027
+ }
5028
+ ++u;
4945
5029
  }
4946
- ++l;
5030
+ if (u < 8 && !(a && a._skipPaddingChecks)) throw Error("Encryption block is invalid.");
4947
5031
  }
4948
- if (o.getByte() !== 0 || l !== a - 3 - o.length()) throw Error("Encryption block is invalid.");
4949
- return o.getBytes();
5032
+ if (s.getByte() !== 0 || u !== o - 3 - s.length()) throw Error("Encryption block is invalid.");
5033
+ return s.getBytes();
4950
5034
  }
4951
5035
  function D(e, t, n) {
4952
5036
  typeof t == "function" && (n = t, t = {}), t ||= {};
@@ -6798,6 +6882,9 @@ var t = /* @__PURE__ */ e(((e, t) => {
6798
6882
  y !== null && (!y.keyCertSign || v === null) && (s = {
6799
6883
  message: "Certificate keyUsage or basicConstraints conflict or indicate that the certificate is not a CA. If the certificate is the only one in the chain or isn't the first then the certificate must be a valid CA.",
6800
6884
  error: u.certificateError.bad_certificate
6885
+ }), s === null && v === null && (s = {
6886
+ message: "Certificate is missing basicConstraints extension and cannot be used as a CA.",
6887
+ error: u.certificateError.bad_certificate
6801
6888
  }), s === null && v !== null && !v.cA && (s = {
6802
6889
  message: "Certificate basicConstraints indicates the certificate is not a CA.",
6803
6890
  error: u.certificateError.bad_certificate
@@ -8181,7 +8268,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
8181
8268
  F
8182
8269
  ]
8183
8270
  ];
8184
- var X = h.handleClientHello, Z = h.handleClientKeyExchange, Q = h.handleCertificateVerify;
8271
+ var X = h.handleClientHello, Z = h.handleClientKeyExchange, ee = h.handleCertificateVerify;
8185
8272
  Y[h.ConnectionEnd.server] = [
8186
8273
  [
8187
8274
  F,
@@ -8268,7 +8355,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
8268
8355
  F,
8269
8356
  F,
8270
8357
  F,
8271
- Q,
8358
+ ee,
8272
8359
  F,
8273
8360
  F,
8274
8361
  F,
@@ -8626,7 +8713,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
8626
8713
  }
8627
8714
  return e.records = [], e.tlsDataReady(e);
8628
8715
  };
8629
- var ee = function(e) {
8716
+ var Q = function(e) {
8630
8717
  switch (e) {
8631
8718
  case !0: return !0;
8632
8719
  case i.pki.certificateError.bad_certificate: return h.Alert.Description.bad_certificate;
@@ -8654,7 +8741,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
8654
8741
  var n = {};
8655
8742
  for (var r in e.verifyOptions) n[r] = e.verifyOptions[r];
8656
8743
  n.verify = function(t, n, r) {
8657
- ee(t);
8744
+ Q(t);
8658
8745
  var a = e.verify(e, t, n, r);
8659
8746
  if (a !== !0) {
8660
8747
  if (typeof a == "object" && !i.util.isArray(a)) {
@@ -8674,11 +8761,11 @@ var t = /* @__PURE__ */ e(((e, t) => {
8674
8761
  send: !0,
8675
8762
  alert: {
8676
8763
  level: h.Alert.Level.fatal,
8677
- description: ee(t)
8764
+ description: Q(t)
8678
8765
  }
8679
8766
  }), "send" in a || (a.send = !0), "alert" in a || (a.alert = {
8680
8767
  level: h.Alert.Level.fatal,
8681
- description: ee(a.error)
8768
+ description: Q(a.error)
8682
8769
  }), e.error(e, a);
8683
8770
  }
8684
8771
  return !e.fail;
@@ -9277,7 +9364,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
9277
9364
  for (var r = new u(t.length()), i = 0; i < r.length; ++i) r[i] = t.at(i);
9278
9365
  return r;
9279
9366
  }
9280
- var p = J(), m = J([1]), h = J([
9367
+ var p = Y(), m = Y([1]), h = Y([
9281
9368
  30883,
9282
9369
  4953,
9283
9370
  19914,
@@ -9294,7 +9381,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
9294
9381
  11119,
9295
9382
  27886,
9296
9383
  20995
9297
- ]), g = J([
9384
+ ]), g = Y([
9298
9385
  61785,
9299
9386
  9906,
9300
9387
  39828,
@@ -9311,7 +9398,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
9311
9398
  22239,
9312
9399
  55772,
9313
9400
  9222
9314
- ]), _ = J([
9401
+ ]), _ = Y([
9315
9402
  54554,
9316
9403
  36645,
9317
9404
  11616,
@@ -9328,7 +9415,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
9328
9415
  52590,
9329
9416
  14035,
9330
9417
  8553
9331
- ]), y = J([
9418
+ ]), y = Y([
9332
9419
  26200,
9333
9420
  26214,
9334
9421
  26214,
@@ -9378,7 +9465,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
9378
9465
  0,
9379
9466
  0,
9380
9467
  16
9381
- ]), S = J([
9468
+ ]), S = Y([
9382
9469
  41136,
9383
9470
  18958,
9384
9471
  6951,
@@ -9406,50 +9493,50 @@ var t = /* @__PURE__ */ e(((e, t) => {
9406
9493
  }
9407
9494
  function w(e, t) {
9408
9495
  var n = [
9409
- J(),
9410
- J(),
9411
- J(),
9412
- J()
9496
+ Y(),
9497
+ Y(),
9498
+ Y(),
9499
+ Y()
9413
9500
  ], r, i = C(t, 32);
9414
- for (i[0] &= 248, i[31] &= 127, i[31] |= 64, U(n, i), j(e, n), r = 0; r < 32; ++r) t[r + 32] = e[r];
9501
+ for (i[0] &= 248, i[31] &= 127, i[31] |= 64, W(n, i), M(e, n), r = 0; r < 32; ++r) t[r + 32] = e[r];
9415
9502
  return 0;
9416
9503
  }
9417
9504
  function T(e, t, n, r) {
9418
9505
  var i, a, o = new Float64Array(64), s = [
9419
- J(),
9420
- J(),
9421
- J(),
9422
- J()
9506
+ Y(),
9507
+ Y(),
9508
+ Y(),
9509
+ Y()
9423
9510
  ], c = C(r, 32);
9424
9511
  c[0] &= 248, c[31] &= 127, c[31] |= 64;
9425
9512
  var l = n + 64;
9426
9513
  for (i = 0; i < n; ++i) e[64 + i] = t[i];
9427
9514
  for (i = 0; i < 32; ++i) e[32 + i] = c[32 + i];
9428
9515
  var u = C(e.subarray(32), n + 32);
9429
- for (O(u), U(s, u), j(e, s), i = 32; i < 64; ++i) e[i] = r[i];
9516
+ for (k(u), W(s, u), M(e, s), i = 32; i < 64; ++i) e[i] = r[i];
9430
9517
  var d = C(e, n + 64);
9431
- for (O(d), i = 32; i < 64; ++i) o[i] = 0;
9518
+ for (k(d), i = 32; i < 64; ++i) o[i] = 0;
9432
9519
  for (i = 0; i < 32; ++i) o[i] = u[i];
9433
9520
  for (i = 0; i < 32; ++i) for (a = 0; a < 32; a++) o[i + a] += d[i] * c[a];
9434
- return D(e.subarray(32), o), l;
9521
+ return O(e.subarray(32), o), l;
9435
9522
  }
9436
9523
  function E(e, t, n, r) {
9437
9524
  var i, a, o = new u(32), s = [
9438
- J(),
9439
- J(),
9440
- J(),
9441
- J()
9525
+ Y(),
9526
+ Y(),
9527
+ Y(),
9528
+ Y()
9442
9529
  ], c = [
9443
- J(),
9444
- J(),
9445
- J(),
9446
- J()
9530
+ Y(),
9531
+ Y(),
9532
+ Y(),
9533
+ Y()
9447
9534
  ];
9448
- if (a = -1, n < 64 || N(c, r)) return -1;
9535
+ if (a = -1, n < 64 || P(c, r) || !D(t, 32)) return -1;
9449
9536
  for (i = 0; i < n; ++i) e[i] = t[i];
9450
9537
  for (i = 0; i < 32; ++i) e[i + 32] = r[i];
9451
9538
  var l = C(e, n);
9452
- if (O(l), H(s, c, l), U(c, t.subarray(32)), k(s, c), j(o, s), n -= 64, z(t, 0, o, 0)) {
9539
+ if (k(l), U(s, c, l), W(c, t.subarray(32)), A(s, c), M(o, s), n -= 64, B(t, 0, o, 0)) {
9453
9540
  for (i = 0; i < n; ++i) e[i] = 0;
9454
9541
  return -1;
9455
9542
  }
@@ -9457,6 +9544,14 @@ var t = /* @__PURE__ */ e(((e, t) => {
9457
9544
  return a = n, a;
9458
9545
  }
9459
9546
  function D(e, t) {
9547
+ var n;
9548
+ for (n = 31; n >= 0; --n) {
9549
+ if (e[t + n] < x[n]) return !0;
9550
+ if (e[t + n] > x[n]) return !1;
9551
+ }
9552
+ return !1;
9553
+ }
9554
+ function O(e, t) {
9460
9555
  var n, r, i, a;
9461
9556
  for (r = 63; r >= 32; --r) {
9462
9557
  for (n = 0, i = r - 32, a = r - 12; i < a; ++i) t[i] += n - 16 * t[r] * x[i - (r - 32)], n = t[i] + 128 >> 8, t[i] -= n * 256;
@@ -9466,104 +9561,104 @@ var t = /* @__PURE__ */ e(((e, t) => {
9466
9561
  for (i = 0; i < 32; ++i) t[i] -= n * x[i];
9467
9562
  for (r = 0; r < 32; ++r) t[r + 1] += t[r] >> 8, e[r] = t[r] & 255;
9468
9563
  }
9469
- function O(e) {
9564
+ function k(e) {
9470
9565
  for (var t = new Float64Array(64), n = 0; n < 64; ++n) t[n] = e[n], e[n] = 0;
9471
- D(e, t);
9472
- }
9473
- function k(e, t) {
9474
- var n = J(), r = J(), i = J(), a = J(), o = J(), s = J(), c = J(), l = J(), u = J();
9475
- X(n, e[1], e[0]), X(u, t[1], t[0]), Q(n, n, u), Y(r, e[0], e[1]), Y(u, t[0], t[1]), Q(r, r, u), Q(i, e[3], t[3]), Q(i, i, g), Q(a, e[2], t[2]), Y(a, a, a), X(o, r, n), X(s, a, i), Y(c, a, i), Y(l, r, n), Q(e[0], o, s), Q(e[1], l, c), Q(e[2], c, s), Q(e[3], o, l);
9566
+ O(e, t);
9476
9567
  }
9477
- function A(e, t, n) {
9478
- for (var r = 0; r < 4; ++r) q(e[r], t[r], n);
9568
+ function A(e, t) {
9569
+ var n = Y(), r = Y(), i = Y(), a = Y(), o = Y(), s = Y(), c = Y(), l = Y(), u = Y();
9570
+ Z(n, e[1], e[0]), Z(u, t[1], t[0]), Q(n, n, u), X(r, e[0], e[1]), X(u, t[0], t[1]), Q(r, r, u), Q(i, e[3], t[3]), Q(i, i, g), Q(a, e[2], t[2]), X(a, a, a), Z(o, r, n), Z(s, a, i), X(c, a, i), X(l, r, n), Q(e[0], o, s), Q(e[1], l, c), Q(e[2], c, s), Q(e[3], o, l);
9479
9571
  }
9480
- function j(e, t) {
9481
- var n = J(), r = J(), i = J();
9482
- G(i, t[2]), Q(n, t[0], i), Q(r, t[1], i), M(e, r), e[31] ^= V(n) << 7;
9572
+ function j(e, t, n) {
9573
+ for (var r = 0; r < 4; ++r) J(e[r], t[r], n);
9483
9574
  }
9484
9575
  function M(e, t) {
9485
- var n, r, i, a = J(), o = J();
9576
+ var n = Y(), r = Y(), i = Y();
9577
+ K(i, t[2]), Q(n, t[0], i), Q(r, t[1], i), N(e, r), e[31] ^= H(n) << 7;
9578
+ }
9579
+ function N(e, t) {
9580
+ var n, r, i, a = Y(), o = Y();
9486
9581
  for (n = 0; n < 16; ++n) o[n] = t[n];
9487
- for (K(o), K(o), K(o), r = 0; r < 2; ++r) {
9582
+ for (q(o), q(o), q(o), r = 0; r < 2; ++r) {
9488
9583
  for (a[0] = o[0] - 65517, n = 1; n < 15; ++n) a[n] = o[n] - 65535 - (a[n - 1] >> 16 & 1), a[n - 1] &= 65535;
9489
- a[15] = o[15] - 32767 - (a[14] >> 16 & 1), i = a[15] >> 16 & 1, a[14] &= 65535, q(o, a, 1 - i);
9584
+ a[15] = o[15] - 32767 - (a[14] >> 16 & 1), i = a[15] >> 16 & 1, a[14] &= 65535, J(o, a, 1 - i);
9490
9585
  }
9491
9586
  for (n = 0; n < 16; n++) e[2 * n] = o[n] & 255, e[2 * n + 1] = o[n] >> 8;
9492
9587
  }
9493
- function N(e, t) {
9494
- var n = J(), r = J(), i = J(), a = J(), o = J(), s = J(), c = J();
9495
- return W(e[2], m), P(e[1], t), Z(i, e[1]), Q(a, i, h), X(i, i, e[2]), Y(a, e[2], a), Z(o, a), Z(s, o), Q(c, s, o), Q(n, c, i), Q(n, n, a), L(n, n), Q(n, n, i), Q(n, n, a), Q(n, n, a), Q(e[0], n, a), Z(r, e[0]), Q(r, r, a), R(r, i) && Q(e[0], e[0], S), Z(r, e[0]), Q(r, r, a), R(r, i) ? -1 : (V(e[0]) === t[31] >> 7 && X(e[0], p, e[0]), Q(e[3], e[0], e[1]), 0);
9496
- }
9497
9588
  function P(e, t) {
9589
+ var n = Y(), r = Y(), i = Y(), a = Y(), o = Y(), s = Y(), c = Y();
9590
+ return G(e[2], m), L(e[1], t), ee(i, e[1]), Q(a, i, h), Z(i, i, e[2]), X(a, e[2], a), ee(o, a), ee(s, o), Q(c, s, o), Q(n, c, i), Q(n, n, a), R(n, n), Q(n, n, i), Q(n, n, a), Q(n, n, a), Q(e[0], n, a), ee(r, e[0]), Q(r, r, a), z(r, i) && Q(e[0], e[0], S), ee(r, e[0]), Q(r, r, a), z(r, i) ? -1 : (H(e[0]) === t[31] >> 7 && Z(e[0], p, e[0]), Q(e[3], e[0], e[1]), 0);
9591
+ }
9592
+ function L(e, t) {
9498
9593
  var n;
9499
9594
  for (n = 0; n < 16; ++n) e[n] = t[2 * n] + (t[2 * n + 1] << 8);
9500
9595
  e[15] &= 32767;
9501
9596
  }
9502
- function L(e, t) {
9503
- var n = J(), r;
9597
+ function R(e, t) {
9598
+ var n = Y(), r;
9504
9599
  for (r = 0; r < 16; ++r) n[r] = t[r];
9505
- for (r = 250; r >= 0; --r) Z(n, n), r !== 1 && Q(n, n, t);
9600
+ for (r = 250; r >= 0; --r) ee(n, n), r !== 1 && Q(n, n, t);
9506
9601
  for (r = 0; r < 16; ++r) e[r] = n[r];
9507
9602
  }
9508
- function R(e, t) {
9603
+ function z(e, t) {
9509
9604
  var n = new u(32), r = new u(32);
9510
- return M(n, e), M(r, t), z(n, 0, r, 0);
9605
+ return N(n, e), N(r, t), B(n, 0, r, 0);
9511
9606
  }
9512
- function z(e, t, n, r) {
9513
- return B(e, t, n, r, 32);
9607
+ function B(e, t, n, r) {
9608
+ return V(e, t, n, r, 32);
9514
9609
  }
9515
- function B(e, t, n, r, i) {
9610
+ function V(e, t, n, r, i) {
9516
9611
  var a, o = 0;
9517
9612
  for (a = 0; a < i; ++a) o |= e[t + a] ^ n[r + a];
9518
9613
  return (1 & o - 1 >>> 8) - 1;
9519
9614
  }
9520
- function V(e) {
9615
+ function H(e) {
9521
9616
  var t = new u(32);
9522
- return M(t, e), t[0] & 1;
9617
+ return N(t, e), t[0] & 1;
9523
9618
  }
9524
- function H(e, t, n) {
9619
+ function U(e, t, n) {
9525
9620
  var r, i;
9526
- for (W(e[0], p), W(e[1], m), W(e[2], m), W(e[3], p), i = 255; i >= 0; --i) r = n[i / 8 | 0] >> (i & 7) & 1, A(e, t, r), k(t, e), k(e, e), A(e, t, r);
9621
+ for (G(e[0], p), G(e[1], m), G(e[2], m), G(e[3], p), i = 255; i >= 0; --i) r = n[i / 8 | 0] >> (i & 7) & 1, j(e, t, r), A(t, e), A(e, e), j(e, t, r);
9527
9622
  }
9528
- function U(e, t) {
9623
+ function W(e, t) {
9529
9624
  var n = [
9530
- J(),
9531
- J(),
9532
- J(),
9533
- J()
9625
+ Y(),
9626
+ Y(),
9627
+ Y(),
9628
+ Y()
9534
9629
  ];
9535
- W(n[0], _), W(n[1], y), W(n[2], m), Q(n[3], _, y), H(e, n, t);
9630
+ G(n[0], _), G(n[1], y), G(n[2], m), Q(n[3], _, y), U(e, n, t);
9536
9631
  }
9537
- function W(e, t) {
9632
+ function G(e, t) {
9538
9633
  var n;
9539
9634
  for (n = 0; n < 16; n++) e[n] = t[n] | 0;
9540
9635
  }
9541
- function G(e, t) {
9542
- var n = J(), r;
9636
+ function K(e, t) {
9637
+ var n = Y(), r;
9543
9638
  for (r = 0; r < 16; ++r) n[r] = t[r];
9544
- for (r = 253; r >= 0; --r) Z(n, n), r !== 2 && r !== 4 && Q(n, n, t);
9639
+ for (r = 253; r >= 0; --r) ee(n, n), r !== 2 && r !== 4 && Q(n, n, t);
9545
9640
  for (r = 0; r < 16; ++r) e[r] = n[r];
9546
9641
  }
9547
- function K(e) {
9642
+ function q(e) {
9548
9643
  var t, n, r = 1;
9549
9644
  for (t = 0; t < 16; ++t) n = e[t] + r + 65535, r = Math.floor(n / 65536), e[t] = n - r * 65536;
9550
9645
  e[0] += r - 1 + 37 * (r - 1);
9551
9646
  }
9552
- function q(e, t, n) {
9647
+ function J(e, t, n) {
9553
9648
  for (var r, i = ~(n - 1), a = 0; a < 16; ++a) r = i & (e[a] ^ t[a]), e[a] ^= r, t[a] ^= r;
9554
9649
  }
9555
- function J(e) {
9650
+ function Y(e) {
9556
9651
  var t, n = new Float64Array(16);
9557
9652
  if (e) for (t = 0; t < e.length; ++t) n[t] = e[t];
9558
9653
  return n;
9559
9654
  }
9560
- function Y(e, t, n) {
9655
+ function X(e, t, n) {
9561
9656
  for (var r = 0; r < 16; ++r) e[r] = t[r] + n[r];
9562
9657
  }
9563
- function X(e, t, n) {
9658
+ function Z(e, t, n) {
9564
9659
  for (var r = 0; r < 16; ++r) e[r] = t[r] - n[r];
9565
9660
  }
9566
- function Z(e, t) {
9661
+ function ee(e, t) {
9567
9662
  Q(e, t, t);
9568
9663
  }
9569
9664
  function Q(e, t, n) {